cloudinary-video-player 1.6.2-edge.13
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.
- package/.eslintignore +4 -0
- package/.snyk +19 -0
- package/.travis.yml +8 -0
- package/CHANGELOG.md +329 -0
- package/LICENSE +21 -0
- package/README.md +87 -0
- package/dist/cld-video-player.css +2110 -0
- package/dist/cld-video-player.js +5249 -0
- package/dist/cld-video-player.light.css +1766 -0
- package/dist/cld-video-player.light.js +1399 -0
- package/dist/cld-video-player.light.min.css +1 -0
- package/dist/cld-video-player.light.min.js +2 -0
- package/dist/cld-video-player.light.min.js.LICENSE.txt +23 -0
- package/dist/cld-video-player.min.css +1 -0
- package/dist/cld-video-player.min.js +2 -0
- package/dist/cld-video-player.min.js.LICENSE.txt +26 -0
- package/dist/fonts/cloudinary_icon_for_black_bg.svg +69 -0
- package/dist/fonts/cloudinary_icon_for_white_bg.svg +69 -0
- package/docs/360.html +102 -0
- package/docs/_template.html +93 -0
- package/docs/adaptive-streaming.html +297 -0
- package/docs/analytics.html +140 -0
- package/docs/api.html +302 -0
- package/docs/audio.html +136 -0
- package/docs/autoplay-fallback.html +138 -0
- package/docs/autoplay-on-scroll.html +107 -0
- package/docs/codec-fallback.html +158 -0
- package/docs/colors.html +135 -0
- package/docs/components.html +284 -0
- package/docs/custom-cld-errors.html +134 -0
- package/docs/floating-player.html +98 -0
- package/docs/fluid.html +117 -0
- package/docs/force-hls-subtitles-ios.html +159 -0
- package/docs/index.html +83 -0
- package/docs/interaction-area.html +398 -0
- package/docs/live-customer.html +128 -0
- package/docs/multiple-players.html +125 -0
- package/docs/playlist-by-tag-cap.html +182 -0
- package/docs/playlist-by-tag.html +133 -0
- package/docs/playlist.html +133 -0
- package/docs/poster.html +155 -0
- package/docs/raw-url.html +104 -0
- package/docs/recommendations.html +155 -0
- package/docs/scripts.js +156 -0
- package/docs/seek-thumbs.html +90 -0
- package/docs/shoppable.html +335 -0
- package/docs/subtitles-and-captions.html +267 -0
- package/docs/transformations.html +171 -0
- package/docs/ui-config.html +108 -0
- package/docs/vast-vpaid.html +149 -0
- package/env.example.js +6 -0
- package/env.js +6 -0
- package/jest-puppeteer.config.js +14 -0
- package/jest.config.js +196 -0
- package/package.json +99 -0
- package/sandbox.config.json +3 -0
- package/setupJest.js +1 -0
- package/src/assets/fonts/VideoJS.svg +120 -0
- package/src/assets/fonts/VideoJS.ttf +0 -0
- package/src/assets/fonts/VideoJS.woff +0 -0
- package/src/assets/fonts/icons.json +120 -0
- package/src/assets/icons/cloudinary_icon_for_black_bg.svg +69 -0
- package/src/assets/icons/cloudinary_icon_for_white_bg.svg +69 -0
- package/src/assets/icons/cloudinary_logo_for_dark_bg.svg +188 -0
- package/src/assets/icons/cloudinary_logo_for_white_bg.svg +188 -0
- package/src/assets/icons/info-circle.svg +17 -0
- package/src/assets/styles/ads-label.scss +16 -0
- package/src/assets/styles/components/interaction-areas.scss +158 -0
- package/src/assets/styles/components/playlist.scss +213 -0
- package/src/assets/styles/components/themedButton.scss +48 -0
- package/src/assets/styles/components/thumbnail.scss +94 -0
- package/src/assets/styles/components/title-bar.scss +67 -0
- package/src/assets/styles/components/triangle-volume-bar.scss +52 -0
- package/src/assets/styles/icons.scss +257 -0
- package/src/assets/styles/main.scss +324 -0
- package/src/assets/styles/mixins/aspect-ratio.scss +16 -0
- package/src/assets/styles/mixins/disable-transition.scss +3 -0
- package/src/assets/styles/mixins/mixins.scss +5 -0
- package/src/assets/styles/mixins/skin.scss +64 -0
- package/src/assets/styles/variables.scss +2 -0
- package/src/assets/styles/videojs-ima.scss +252 -0
- package/src/components/component-utils.js +20 -0
- package/src/components/index.js +21 -0
- package/src/components/interaction-area/interaction-area.const.js +30 -0
- package/src/components/interaction-area/interaction-area.service.js +223 -0
- package/src/components/interaction-area/interaction-area.utils.js +236 -0
- package/src/components/jumpButtons/jump-10-minus.js +21 -0
- package/src/components/jumpButtons/jump-10-plus.js +20 -0
- package/src/components/logoButton/logo-button.const.js +3 -0
- package/src/components/logoButton/logo-button.js +30 -0
- package/src/components/logoButton/logo-button.scss +15 -0
- package/src/components/playlist/components/playlist-button.js +34 -0
- package/src/components/playlist/components/playlist-next-button.js +18 -0
- package/src/components/playlist/components/playlist-previous-button.js +18 -0
- package/src/components/playlist/components/playlist.js +5 -0
- package/src/components/playlist/components/playlist.scss +15 -0
- package/src/components/playlist/components/upcoming-video-overlay.js +149 -0
- package/src/components/playlist/components/upcoming-video-overlay.scss +86 -0
- package/src/components/playlist/layout/playlist-layout-custom.js +21 -0
- package/src/components/playlist/layout/playlist-layout-horizontal.js +16 -0
- package/src/components/playlist/layout/playlist-layout-vertical.js +19 -0
- package/src/components/playlist/layout/playlist-layout.js +110 -0
- package/src/components/playlist/panel/playlist-panel-item.js +86 -0
- package/src/components/playlist/panel/playlist-panel.js +92 -0
- package/src/components/playlist/playlist-widget.js +119 -0
- package/src/components/playlist/playlist.const.js +14 -0
- package/src/components/playlist/playlist.js +413 -0
- package/src/components/playlist/thumbnail/thumbnail.js +69 -0
- package/src/components/progress-control-events-blocker/progress-control-events-blocker.js +17 -0
- package/src/components/qualitySelector/quality-selector.scss +10 -0
- package/src/components/qualitySelector/qualitySelector.js +152 -0
- package/src/components/recommendations-overlay/index.js +3 -0
- package/src/components/recommendations-overlay/recommendations-overlay-content.js +57 -0
- package/src/components/recommendations-overlay/recommendations-overlay-hide-button.js +18 -0
- package/src/components/recommendations-overlay/recommendations-overlay-item.js +35 -0
- package/src/components/recommendations-overlay/recommendations-overlay-primary-item.js +81 -0
- package/src/components/recommendations-overlay/recommendations-overlay-secondary-item.js +48 -0
- package/src/components/recommendations-overlay/recommendations-overlay-secondary-items-container.js +35 -0
- package/src/components/recommendations-overlay/recommendations-overlay.js +94 -0
- package/src/components/recommendations-overlay/recommendations-overlay.scss +182 -0
- package/src/components/shoppable-bar/layout/bar-layout.js +111 -0
- package/src/components/shoppable-bar/layout/shoppable-panel-toggle.js +64 -0
- package/src/components/shoppable-bar/layout/shoppable-products-overlay.js +87 -0
- package/src/components/shoppable-bar/panel/shoppable-panel-item.js +105 -0
- package/src/components/shoppable-bar/panel/shoppable-panel.js +172 -0
- package/src/components/shoppable-bar/shoppable-post-widget.js +110 -0
- package/src/components/shoppable-bar/shoppable-widget.const.js +52 -0
- package/src/components/shoppable-bar/shoppable-widget.js +111 -0
- package/src/components/shoppable-bar/shoppable-widget.scss +359 -0
- package/src/components/themeButton/themedButton.const.js +3 -0
- package/src/components/themeButton/themedButton.js +25 -0
- package/src/components/title-bar/title-bar.js +79 -0
- package/src/config/defaults.js +25 -0
- package/src/extended-events.js +228 -0
- package/src/index.js +18 -0
- package/src/mixins/eventable.js +54 -0
- package/src/mixins/playlistable.js +106 -0
- package/src/plugins/analytics/index.js +245 -0
- package/src/plugins/autoplay-on-scroll/index.js +86 -0
- package/src/plugins/cloudinary/common.js +216 -0
- package/src/plugins/cloudinary/event-handler-registry.js +46 -0
- package/src/plugins/cloudinary/index.js +345 -0
- package/src/plugins/cloudinary/models/audio-source/audio-source.const.js +11 -0
- package/src/plugins/cloudinary/models/audio-source/audio-source.js +82 -0
- package/src/plugins/cloudinary/models/base-source.js +107 -0
- package/src/plugins/cloudinary/models/image-source.js +26 -0
- package/src/plugins/cloudinary/models/video-source/video-source.const.js +32 -0
- package/src/plugins/cloudinary/models/video-source/video-source.js +239 -0
- package/src/plugins/cloudinary/models/video-source/video-source.utils.js +57 -0
- package/src/plugins/colors/index.js +303 -0
- package/src/plugins/context-menu/components/context-menu-item.js +12 -0
- package/src/plugins/context-menu/components/context-menu.js +63 -0
- package/src/plugins/context-menu/context-menu.scss +30 -0
- package/src/plugins/context-menu/contextMenuContent.js +53 -0
- package/src/plugins/context-menu/index.js +134 -0
- package/src/plugins/dash/index.js +26 -0
- package/src/plugins/dash/setup-audio-tracks.js +112 -0
- package/src/plugins/dash/setup-text-tracks.js +195 -0
- package/src/plugins/dash/videojs-dash.js +372 -0
- package/src/plugins/floating-player/floating-player.scss +74 -0
- package/src/plugins/floating-player/index.js +129 -0
- package/src/plugins/ima/index.js +1775 -0
- package/src/plugins/index.js +31 -0
- package/src/plugins/interactive-plugin/index.js +10 -0
- package/src/plugins/videojs-http-source-selector/components/SourceMenuButton.js +98 -0
- package/src/plugins/videojs-http-source-selector/components/SourceMenuItem.js +52 -0
- package/src/plugins/videojs-http-source-selector/plugin.js +82 -0
- package/src/plugins/videojs-http-source-selector/plugin.scss +9 -0
- package/src/plugins/vtt-thumbnails/index.js +526 -0
- package/src/plugins/vtt-thumbnails/vtt-thumbnails.scss +29 -0
- package/src/utils/api.js +32 -0
- package/src/utils/apply-with-props.js +32 -0
- package/src/utils/array.js +22 -0
- package/src/utils/assign.js +27 -0
- package/src/utils/attributes-normalizer.js +72 -0
- package/src/utils/cloudinary.js +165 -0
- package/src/utils/css-prefix.js +43 -0
- package/src/utils/dom.js +74 -0
- package/src/utils/find.js +28 -0
- package/src/utils/fontFace.js +25 -0
- package/src/utils/groupBy.js +12 -0
- package/src/utils/index.js +29 -0
- package/src/utils/matches.js +11 -0
- package/src/utils/mixin.js +5 -0
- package/src/utils/object.js +26 -0
- package/src/utils/playButton.js +9 -0
- package/src/utils/positioning.js +78 -0
- package/src/utils/querystring.js +12 -0
- package/src/utils/slicing.js +21 -0
- package/src/utils/string.js +15 -0
- package/src/utils/throttle.js +30 -0
- package/src/utils/time.js +77 -0
- package/src/utils/type-inference.js +35 -0
- package/src/validators/validators-functions.js +48 -0
- package/src/validators/validators-types.js +78 -0
- package/src/validators/validators.js +110 -0
- package/src/video-player.const.js +68 -0
- package/src/video-player.js +761 -0
- package/src/video-player.utils.js +123 -0
- package/test/adaptive-streaming.test.js +38 -0
- package/test/ads.test.js +35 -0
- package/test/analytics.test.js +111 -0
- package/test/api.test.js +111 -0
- package/test/autoplay.scroll.test.js +23 -0
- package/test/basic-ui.test.js +59 -0
- package/test/colors.test.js +58 -0
- package/test/components.test.js +21 -0
- package/test/custom-error.test.js +24 -0
- package/test/fluid.test.js +36 -0
- package/test/isValidConfig.test.js +224 -0
- package/test/mocks/cloudinary-core-mock.js +0 -0
- package/test/mocks/styleMock.js +1 -0
- package/test/multiplayer.test.js +25 -0
- package/test/playlist.test.js +60 -0
- package/test/puppeteer/vp-env.js +19 -0
- package/test/recommendations.test.js +38 -0
- package/test/title-bar.test.js +28 -0
- package/test/ui-conf.test.js +49 -0
- package/test/unit/cloudinaryConfig.test.js +22 -0
- package/test/unit/cloudinaryUtils.test.js +53 -0
- package/test/unit/utils.test.js +27 -0
- package/test/unit/videoSource.test.js +454 -0
- package/tsconfig.json +15 -0
- package/types/video-player-tests.js +12 -0
- package/types/video-player-tests.ts +31 -0
- package/types/video-player.d.ts +570 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see cld-video-player.light.min.js.LICENSE.txt */
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("cloudinary-core")):"function"==typeof define&&define.amd?define(["cloudinary-core"],t):"object"==typeof exports?exports.cloudinaryVideoPlayer=t(require("cloudinary-core")):e.cloudinaryVideoPlayer=t(e.cloudinary)}(window,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=37)}([function(e,t,n){(function(t){e.exports=t.videojs=n(40)}).call(this,n(5))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assign=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(Object.assign)return Object.assign.apply(Object,[e].concat(n));return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var r=t[n];e[n]=r}))})),e}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=function(e){return null!==e&&"object"===r(e)&&"[object Object]"===Object.prototype.toString.call(e)},t.isString=function(e){return e instanceof String||"string"==typeof e},t.isInteger=function(e){return"number"==typeof e&&e%1==0},t.isNumber=function(e){return e instanceof Number||"number"==typeof e},t.isElement=function(e){return e instanceof Element},t.noop=function(){return null},t.isFunction=function(e){return"function"==typeof e},t.isBoolean=function(e){return"boolean"==typeof e}},function(e,t,n){"use strict";function r(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return r.reduce((function(n,r){return Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r],t&&delete e[r]),n}),{})}Object.defineProperty(t,"__esModule",{value:!0}),t.sliceProperties=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[e,!1].concat(n))},t.sliceAndUnsetProperties=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[e,!0].concat(n))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_CODE=t.codecToSrcTransformation=t.h264avcToString=t.codecShorthandTrans=t.cloudinaryErrorsConverter=t.mergeTransformation=t.mergeCloudinaryConfig=t.isSrcEqual=t.normalizeOptions=t.VIDEO_CODEC=void 0;var r,i=(r=n(8))&&r.__esModule?r:{default:r},o=n(1),a=n(3),s=n(2);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.normalizeOptions=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.tolerateMissingId,i=void 0!==r&&r;if((0,s.isPlainObject)(e)){var l=(0,o.assign)({},e);if(e=(0,a.sliceAndUnsetProperties)(l,"publicId").publicId,!(0,s.isString)(e)&&!i)throw new Error("Source is missing 'publicId'.");t&&(t=(0,o.assign)({},l,t))}return{publicId:e,options:t}};t.isSrcEqual=function(e,t){var n=e,r=t;return"object"===l(e)&&(n=e.src),"object"===l(t)&&(r=t.src),/^\/\//.test(n)&&(r=r.slice(r.indexOf("//"))),/^\/\//.test(r)&&(n=n.slice(n.indexOf("//"))),n===r};t.mergeCloudinaryConfig=function(e,t){"Cloudinary"===e.constructor.name&&e.config&&(e=e.config());var n=new i.default.Cloudinary(e);return"Cloudinary"===t.constructor.name&&t.config&&(t=e.config()),n.config(t)};t.mergeTransformation=function(e,t){return"Transformation"===e.constructor.name&&e.toOptions&&(e=e.toOptions()),new i.default.Transformation(e).fromOptions(t)};var u={NO_SUPPORTED_MEDIA:6,CUSTOM:10,UNKNOWN_CUSTOMER:11,RESOURCE_NOT_FOUND:12,PRIVATE_RESOURCE:13,UNAUTHENTICATED:14};t.ERROR_CODE=u;t.cloudinaryErrorsConverter=function(e){var t=e.errorMsg,n=e.publicId,r=e.cloudName,i=e.statusCode,o="Video cannot be played",a={code:u.CUSTOM,message:"".concat(o).concat(t?"- "+t:""),statusCode:i},s=t.toLowerCase();return s.startsWith("unknown customer")&&(a.code=u.UNKNOWN_CUSTOMER,a.message="".concat(o," Unknown cloud-name ").concat(r)),s.startsWith("resource not found")&&(a.code=u.RESOURCE_NOT_FOUND,a.message="".concat(o," Public ID ").concat(n," not found")),s.startsWith("private resource")&&(a.code=u.PRIVATE_RESOURCE,a.message="".concat(o," Private video")),s.startsWith("unauthenticated access")&&(a.message="".concat(o," Requires authentication"),a.code=u.UNAUTHENTICATED),a};t.codecShorthandTrans=function(e){var t={h265:"hev1.1.6.L93.B0",vp9:"vp09.00.50.08",h264:"avc1.42E01E"};return t[e]?t[e]:e};var c={avc1:"h264",avc2:"h264",svc1:"Scalable Video Coding",mvc1:"Multiview Video Coding",mvc2:"Multiview Video Coding"},f={0:"No",42:"baseline","4d":"main",58:"extended",64:"high","6e":"high 10","7a":"high 4:2:2",f4:"high 4:4:4","2c":"CAVLC 4:4:4",53:"Scalable Baseline",56:"Scalable High",80:"Stereo High",76:"Multiview High","8a":"Multiview Depth High"};var h=function(e){var t=/(avc1|avc2|svc1|mvc1|mvc2)\.([0-9a-f]{6})/i;if(!1===t.test("avc1.42001e"))throw new Error("Codec string is not formatted according to H.264/AVC standards for example avc1.42001e (maybe an iOS friendly version...)");var n=e.match(t);if(null!==n){n.shift();return c[n[0]]+":"+function(e){var t=/([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})/i;if(!1===t.test(e))throw new Error("error: please provide a 3-bytes hex-sequence for example: 42001e");var n=e.match(t);n.shift();var r=n[0];r="string"==typeof(r=f[r])?r:"Unknown";var i=n[2];return i=parseInt(i,16),i=String(i).split("").join("."),"".concat(r,":").concat(i)}(n[1])}return e};t.h264avcToString=h;var d={VP9:"vp9",HEV1:"hev1",H265:"h265",H264:"h264"};t.VIDEO_CODEC=d;t.codecToSrcTransformation=function(e){if(!e)return{};switch(e){case d.VP9:return{video_codec:d.VP9};case d.HEV1:return{video_codec:d.H265};case d.H264:return{video_codec:"".concat(d.H264,":baseline:3.0")};default:return{video_codec:h(e)}}}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function r(e){var t=e.getBoundingClientRect(),n=document.body,r=document.documentElement,i=window.pageYOffset||r.scrollTop||n.scrollTop,o=window.pageXOffset||r.scrollLeft||n.scrollLeft,a=r.clientTop||n.clientTop||0,s=r.clientLeft||n.clientLeft||0,l=t.top+i-a,u=t.left+o-s;return{top:Math.round(l),left:Math.round(u)}}Object.defineProperty(t,"__esModule",{value:!0}),t.getElementPosition=r,t.getPointerPosition=function(e,t){var n={},i=r(e),o=e.offsetWidth,a=e.offsetHeight,s=i.top,l=i.left,u=t.pageY,c=t.pageX;t.changedTouches&&(c=t.changedTouches[0].pageX,u=t.changedTouches[0].pageY);return n.y=Math.max(0,Math.min(1,(s-u+a)/a)),n.x=Math.max(0,Math.min(1,(c-l)/o)),n},t.isElementInViewport=function(e,t){var n=t.fraction,i=r(e),o=i.left,a=i.top,s=e.offsetHeight,l=e.offsetWidth,u=o+l,c=a+s,f=Math.max(0,Math.min(l,window.pageXOffset+window.innerWidth-o,u-window.pageXOffset)),h=Math.max(0,Math.min(l,window.pageYOffset+window.innerHeight-a,c-window.pageYOffset));return f*h/(l*s)>n},t.setPosition=function(e,t,n){e.style.left="".concat(t,"px"),e.style.top="".concat(n,"px")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PRELOAD=t.ADS_IN_PLAYLIST=t.FLOATING_TO=t.AUTO_PLAY_MODE=t.FLUID_CLASS_NAME=t.DEFAULT_HLS_OPTIONS=t.PLAYER_PARAMS=t.CLOUDINARY_PARAMS=void 0;var r,i=(r=n(0))&&r.__esModule?r:{default:r};var o=["cloudinaryConfig","transformation","sourceTypes","sourceTransformation","posterOptions","autoShowRecommendations","fontFace","secure"];t.CLOUDINARY_PARAMS=o;var a=o.concat(["publicId","source","autoplayMode","playedEventPercents","playedEventTimes","analytics","fluid","ima","playlistWidget","hideContextMenu","colors","floatingWhenNotVisible","ads","showJumpControls","textTracks","qualitySelector","fetchErrorUsingGet","withCredentials","seekThumbnails"]);t.PLAYER_PARAMS=a;var s={html5:{handlePartialData:!1,hls:{overrideNative:!i.default||!i.default.browser||!i.default.browser.IS_IOS&&!i.default.browser.IS_SAFARI}}};t.DEFAULT_HLS_OPTIONS=s;t.FLUID_CLASS_NAME="cld-fluid";t.AUTO_PLAY_MODE={ALWAYS:"always",ON_SCROLL:"on-scroll",NEVER:"never"};t.FLOATING_TO={LEFT:"left",RIGHT:"right",NONE:"none"};t.ADS_IN_PLAYLIST={FIRST_VIDEO:"first-video",EVERY_VIDEO:"every-video"};t.PRELOAD={AUTO:"auto",METADATA:"metadata",NONE:"none"}},function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelize=function(e){return e.replace(/[_.-](\w|$)/g,(function(e,t){return t.toUpperCase()}))},t.startsWith=function(e,t,n){if(String.prototype.startsWith)return e.startsWith(t,n);var r=r||0;return e.indexOf(t,r)===r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCloudinaryInstanceOf=function e(t,n){if(Array.isArray(n))return n.map((function(n){return e(t,n)}));return n instanceof t?n:new t(n)},t.filterAndAddTextTracks=t.isKeyInTransformation=t.handleCldError=void 0;var r=s(n(15)),i=s(n(22)),o=n(4),a=n(16);function s(e){return e&&e.__esModule?e:{default:e}}var l=(0,i.default)({Promise:r.default}).fetch,u={method:"head"},c={method:"get",credentials:"include",headers:{"Content-Range":"bytes=0-0"}};function f(e){for(var t={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},n=t.parser[t.strictMode?"strict":"loose"].exec(e),r={},i=14;i--;)r[t.key[i]]=n[i]||"";return r[t.q.name]={},r[t.key[12]].replace(t.q.parser,(function(e,n,i){n&&(r[t.q.name][n]=i)})),r}t.handleCldError=function(e,t){var n=t.fetchErrorUsingGet?c:u,i=e.videojs.cloudinary.getCurrentSources();i.length>0?r.default.all(i.map((function(e){return l(e.src,n)}))).then((function(t){var n=function(e){return e.reduce((function(e,t){if(t.status>=200&&t.status<399&&""!==t.url){var n=f(t.url);e.push(n.host+n.path)}return e}),[])}(t),r=t[0];if(n.length){var a=function(e,t){return e.filter((function(e){var n=f(e.src);return-1!==t.indexOf(n.host+n.path)&&!0!==e.try}))}(i,n);a&&a.length?function(e,t){JSON.stringify(t),t.forEach((function(e){e.try=!0})),e.videojs.autoplay(e.videojs.autoplay()||e.playWasCalled),e.videojs.src(t)}(e,a):e.videojs.error({code:o.ERROR_CODE.NO_SUPPORTED_MEDIA,message:"No supported media sources",statusCode:t.status})}else!function(e,t){e.videojs.error((0,o.cloudinaryErrorsConverter)({errorMsg:t.headers.get("x-cld-error")||"",publicId:e.currentPublicId(),cloudName:e.cloudinaryConfig().config().cloud_name,error:t,statusCode:t.status}))}(e,r)})).catch((function(t){e.videojs.error({code:7,message:t&&t.message?t.message:"Failed to test sources"})})):e.videojs.error({code:o.ERROR_CODE.NO_SUPPORTED_MEDIA,message:"No supported media sources"})};t.isKeyInTransformation=function e(t,n){return!(!t||!n)&&(Array.isArray(t)?!!(0,a.find)(t,(function(t){return e(t,n)})):t.getValue?!!t.getValue(n):!!t[n])};t.filterAndAddTextTracks=function(e,t){e.forEach((function(e){l(e.src,u).then((function(n){n.status>=200&&n.status<=399&&t.addRemoteTextTrack(e,!0)}))}))}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(29))&&i.__esModule?i:{default:i},a=n(4),s=n(1);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=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(e){return!1}}();return function(){var n,r=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=RegExp("\\.(".concat(["jpg","png","gif","webp"].join("|"),")$$")),p={resource_type:"image",type:"upload",transformation:[]},v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(n,e);var t=c(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l(this,n);var o=(0,a.normalizeOptions)(e,i);return e=o.publicId,i=o.options,e=e.replace(d,""),i=(0,s.assign)({},p,i),(r=t.call(this,e,i))._type="ImageSource",r}return n}(o.default);t.default=v},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=p(n(29)),o=p(n(11)),a=n(4),s=n(3),l=n(1),u=n(19),c=p(n(0)),f=n(31),h=n(89),d=n(13);function p(e){return e&&e.__esModule?e:{default:e}}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(e,t)||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 y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=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(e){return!1}}();return function(){var n,r=E(e);if(t){var i=E(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=0,C=function(){return w++},k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(p,e);var t,n,r,i=b(p);function p(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};m(this,p);var r=f.URL_PATTERN.test(e),o=(0,a.normalizeOptions)(e,n),u=o.publicId,c=o.options;r||(u=u.replace(f.VIDEO_SUFFIX_REMOVAL_PATTERN,"")),(c=(0,l.assign)({},f.DEFAULT_VIDEO_PARAMS,c)).poster||(c.poster=(0,l.assign)({publicId:u},f.DEFAULT_POSTER_PARAMS));var h=(0,s.sliceAndUnsetProperties)(c,"poster","sourceTypes","sourceTransformation","info","recommendations","textTracks","withCredentials","interactionAreas"),d=h.poster,v=h.sourceTypes,y=h.sourceTransformation,g=h.info,_=h.recommendations,b=h.textTracks,T=h.withCredentials,E=h.interactionAreas;return(t=i.call(this,u,c))._sourceTypes=null,t._recommendations=null,t._textTracks=null,t._poster=null,t._info=null,t._sourceTransformation=null,t._interactionAreas=null,t._type="VideoSource",t.isRawUrl=r,t._rawTransformation=c.raw_transformation,t.withCredentials=!!T,t.getInitOptions=function(){return n},t.poster(d),t.sourceTypes(v),t.sourceTransformation(y),t.info(g),t.interactionAreas(E),t.recommendations(_),t.textTracks(b),t.objectId=C(),t}return t=p,(n=[{key:"textTracks",value:function(e){return void 0===e?this._textTracks:(this._textTracks=e,this)}},{key:"recommendations",value:function(e){return void 0===e?this._recommendations:(this._recommendations=e,this)}},{key:"sourceTypes",value:function(e){return e?(this._sourceTypes=e,this):this._sourceTypes}},{key:"info",value:function(e){return e?(this._info=e,this):this._info}},{key:"interactionAreas",value:function(e){return e?(this._interactionAreas=e,this):this._interactionAreas}},{key:"sourceTransformation",value:function(e){return e?(this._sourceTransformation=e,this):this._sourceTransformation}},{key:"poster",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return this._poster;if(e instanceof o.default)return this._poster=e,this;var n=(0,a.normalizeOptions)(e,t,{tolerateMissingId:!0});return e=n.publicId,t=n.options,e||(e=this.publicId(),t=(0,l.assign)({},t,f.DEFAULT_POSTER_PARAMS)),t.cloudinaryConfig=t.cloudinaryConfig||this.cloudinaryConfig(),this._poster=new o.default(e,t),this}},{key:"contains",value:function(e){return this.generateSources().some((function(t){return(0,a.isSrcEqual)(t,e)}))}},{key:"generateSources",value:function(){var e=this;if(this.isRawUrl){var t=this.sourceTypes().length>1?null:this.sourceTypes()[0];return[this.generateRawSource(this.publicId(),t)]}var n=this.sourceTypes().map((function(t){var n=e.sourceTransformation()[t]||e.transformation(),r=(0,h.normalizeFormat)(t),i=-1!==["mpd","m3u8"].indexOf(r),o={};n&&(o.transformation=(0,d.castArray)(n)),(0,l.assign)(o,{resource_type:"video",format:r});var a=v((0,h.formatToMimeTypeAndTransformation)(t),2),s=a[0],c=a[1];c&&!(0,h.isCodecAlreadyExist)(o.transformation,e._rawTransformation)&&o.transformation.push(c),"auto"===o.format&&delete o.format;var f=e.queryParams()?(0,u.objectToQuerystring)(e.queryParams()):"",p=e.config().url(e.publicId(),o),y=p.indexOf("?")>-1?f.replace("?","&"):f;return{type:s,src:p+y,cldSrc:e,isAdaptive:i,withCredentials:e.withCredentials}}));return"undefined"!=typeof navigator&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))?n.filter((function(e){return'video/mp4; codec="hev1.1.6.L93.B0"'!==e.type})):c.default.browser.IS_ANY_SAFARI?n.filter((function(e){return-1===e.type.indexOf("application/dash+xml")})):n}},{key:"generateRawSource",value:function(e,t){var n=t||e.split(".").pop(),r=!!f.CONTAINER_MIME_TYPES[n];return{type:t=r?f.CONTAINER_MIME_TYPES[n][0]:t?"video/".concat(t):null,src:e,cldSrc:this,isAdaptive:r,withCredentials:this.withCredentials}}},{key:"getInteractionAreas",value:function(){return this._interactionAreas}}])&&g(t.prototype,n),r&&g(t,r),p}(i.default);t.default=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.map=t.some=t.forEach=t.castArray=void 0;t.castArray=function(e){return Array.isArray(e)?e:[e]};t.forEach=function(e,t){Array.isArray(e)&&e.length&&e.forEach(t)};t.some=function(e,t){return!(!Array.isArray(e)||!e.length)&&e.some(t)};t.map=function(e,t){if(Array.isArray(e)&&e.length)return e.map(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.overrideDefaultVideojsComponents=t.extractOptions=t.normalizeAutoplay=t.getResolveVideoElement=t.isLight=t.addMetadataTrack=void 0;var r=l(n(0)),i=l(n(21)),o=l(n(18)),a=n(7),s=n(2);function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e)||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(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.addMetadataTrack=function(e,t){return e.addRemoteTextTrack({kind:"metadata",srclang:"en",src:t,default:!0},!0).track};t.isLight=function(e){return e.class.indexOf("cld-video-player-skin-light")>-1||"light"===e.skin};t.getResolveVideoElement=function(e){if((0,s.isString)(e)){var t=e;0===t.indexOf("#")&&(t=t.slice(1));try{e=document.querySelector("#".concat(t))||r.default.getPlayer(t)}catch(t){e=null}if(!e)throw new Error("Could not find element with id ".concat(t))}if(!e.tagName)throw new Error("Must specify either an element or an element id.");if("VIDEO"!==e.tagName)throw new Error("Element is not a video tag.");return e};var f=function(e){var t=e.autoplayMode;if(t)switch(t){case a.AUTO_PLAY_MODE.ALWAYS:e.autoplay=!0;break;case a.AUTO_PLAY_MODE.ON_SCROLL:case a.AUTO_PLAY_MODE.NEVER:default:e.autoplay=!1}};t.normalizeAutoplay=f;t.extractOptions=function(e,t){var n=i.default.normalizeAttributes(e);(r.default.dom.hasClass(e,a.FLUID_CLASS_NAME)||r.default.dom.hasClass(e,"vjs-fluid"))&&(t.fluid=!0),t=i.default.assign({},a.DEFAULT_HLS_OPTIONS,o.default,n,t),f(t);var s=i.default.sliceAndUnsetProperties.apply(i.default,[t].concat(u(a.PLAYER_PARAMS)));return s.cloudinary=i.default.sliceAndUnsetProperties.apply(i.default,[s].concat(u(a.CLOUDINARY_PARAMS))),t.videojs&&(i.default.assign(t,t.videojs),delete t.videojs),{playerOptions:s,videojsOptions:t}};t.overrideDefaultVideojsComponents=function(){var e=r.default.getComponent("Player").prototype.options_.children;e.push("titleBar"),e.push("upcomingVideoOverlay"),e.push("recommendationsOverlay");var t=r.default.getComponent("ControlBar");t&&((e=t.prototype.options_.children).splice(e.indexOf("progressControl"),0,"spacer","progressControlEventsBlocker"),e.splice(e.indexOf("playToggle"),1,"playlistPreviousButton","JumpBackButton","playToggle","JumpForwardButton","playlistNextButton"),e.splice(e.indexOf("fullscreenToggle"),1,"logoButton","fullscreenToggle"))}},function(e,t,n){"use strict";n.r(t),function(e){var r=n(35),i=n(36),o=setTimeout;function a(e){return Boolean(e&&void 0!==e.length)}function s(){}function l(e){if(!(this instanceof l))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],p(e,this)}function u(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,l._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void f(t.promise,e)}c(t.promise,r)}else(1===e._state?c:f)(t.promise,e._value)}))):e._deferreds.push(t)}function c(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof l)return e._state=3,e._value=t,void h(e);if("function"==typeof n)return void p((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,h(e)}catch(t){f(e,t)}var r,i}function f(e,t){e._state=2,e._value=t,h(e)}function h(e){2===e._state&&0===e._deferreds.length&&l._immediateFn((function(){e._handled||l._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)u(e,e._deferreds[t]);e._deferreds=null}function d(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function p(e,t){var n=!1;try{e((function(e){n||(n=!0,c(t,e))}),(function(e){n||(n=!0,f(t,e))}))}catch(e){if(n)return;n=!0,f(t,e)}}l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){var n=new this.constructor(s);return u(this,new d(e,t,n)),n},l.prototype.finally=r.a,l.all=function(e){return new l((function(t,n){if(!a(e))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var i=r.length;function o(e,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,(function(t){o(e,t)}),n)}r[e]=a,0==--i&&t(r)}catch(e){n(e)}}for(var s=0;s<r.length;s++)o(s,r[s])}))},l.allSettled=i.a,l.resolve=function(e){return e&&"object"==typeof e&&e.constructor===l?e:new l((function(t){t(e)}))},l.reject=function(e){return new l((function(t,n){n(e)}))},l.race=function(e){return new l((function(t,n){if(!a(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,i=e.length;r<i;r++)l.resolve(e[r]).then(t,n)}))},l._immediateFn="function"==typeof e&&function(t){e(t)}||function(e){o(e,0)},l._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console},t.default=l}.call(this,n(47).setImmediate)},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r,n,e))return[r,n]}return[void 0,-1]}Object.defineProperty(t,"__esModule",{value:!0}),t.find=function(e,t){if(Array.prototype.find&&Array.isArray(e))return e.find(t);return r(e,t)[0]},t.findIndex=function(e,t){if(Array.prototype.findIndex)return e.findIndex(t);return r(e,t)[1]},t.findElementAndIndex=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setSkinClassPrefix=t.skinClass=t.skinClassPrefix=t.playerClassPrefix=t.CLASS_PREFIX=void 0;var r,i=n(9),o=(r=n(18))&&r.__esModule?r:{default:r},a=n(16);var s="cld-video-player";t.CLASS_PREFIX=s;var l="".concat(s,"-skin-");t.playerClassPrefix=function(e){return"".concat(s,"-").concat(e.id_)};var u=function(e){return"".concat(l).concat(e)};t.skinClass=u;var c=function(e){return(0,a.find)(e.el().classList,(function(e){return(0,i.startsWith)(e,l)}))};t.skinClassPrefix=c;t.setSkinClassPrefix=function(e,t){var n=c(e),r=!!t&&t.replace(l,""),i="";(i=r?u(r):e.options_.skin?u(e.options_.skin):u(o.default.skin))!==n&&(n&&e.removeClass(n),e.addClass(i)),r&&e.options_.skin!==r&&(e.options_.skin=r)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(54))&&r.__esModule?r:{default:r},o=n(7);var a={logoOnclickUrl:"https://cloudinary.com/",showLogo:!0,showJumpControls:!1,skin:"dark",controls:!1,controlBar:{pictureInPictureToggle:!1},preload:o.PRELOAD.AUTO,loop:!1,muted:!1,posterOptions:{},sourceTypes:["webm/vp9","mp4/h265","mp4"],contextMenu:{content:i.default},floatingWhenNotVisible:o.FLOATING_TO.NONE,hideContextMenu:!1,analytics:!1,playedEventPercents:[25,50,75,100]};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectToQuerystring=void 0;t.objectToQuerystring=function(e){var t=Object.keys(e);if(!t.length)return"";var n=t.map((function(t){return"".concat(t,"=").concat(e[t])})).join("&");return"?".concat(n)}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=n(103),s=n(17);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=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(e){return!1}}();return function(){var n,r=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?v(e):t}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t,n){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=o.default.dom||o.default,_=o.default.getComponent("Component"),b={wrap:!1},T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(o,e);var t,n,r,i=d(o);function o(e,t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var s=u(u({},b),t);(r=i.call(this,e,s)).player_=e,r.setCls();var l,c=function(e,t){r.options_.fluid=t,r.removeCls(),r.setCls()};return s.wrap&&(l=r.el(),r.videoWrap_=g.createEl("div",{className:"cld-plw-col-player"}),r.contentEl_=r.contentEl_=g.createEl("div",{className:"cld-plw-col-list"}),(0,a.wrap)(r.player().el(),l),l.appendChild(r.videoWrap_),l.appendChild(r.contentEl_),(0,a.wrap)(r.player().el(),r.videoWrap_)),e.on("fluid",c),r.addChild("PlaylistPanel",r.options_),r.dispose=function(){r.removeLayout(),y((n=v(r),m(o.prototype)),"dispose",n).call(n),e.off("fluid",c)},r}return t=o,(n=[{key:"getCls",value:function(){var e=["cld-video-player","cld-plw-layout"];return e.push((0,s.skinClassPrefix)(this.player())),e.push((0,s.playerClassPrefix)(this.player())),this.options_.fluid&&e.push("cld-plw-layout-fluid"),e}},{key:"setCls",value:function(){var e=this;this.removeClass((0,s.skinClassPrefix)(this)),this.getCls().forEach((function(t){e.addClass(t)}))}},{key:"removeCls",value:function(){var e=this;this.getCls().forEach((function(t){e.removeClass(t)}))}},{key:"update",value:function(e,t){this.options(t),this.removeChild("PlaylistPanel"),this.addChild("PlaylistPanel",this.options_),this.trigger("playlistlayoutupdate")}},{key:"removeLayout",value:function(){var e=this.el().parentElement;e&&e.appendChild(this.player().el())}},{key:"createEl",value:function(){var e=y(m(o.prototype),"createEl",this).call(this,"div");return e.style.fontFamily=this.player().el().style.fontFamily,e}}])&&f(t.prototype,n),r&&f(t,r),o}(_);o.default.registerComponent("playlistLayout",T);var E=T;t.default=E},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=m(n(1)),o=m(n(3)),a=m(n(6)),s=m(n(9)),l=m(n(10)),u=m(n(23)),c=m(n(50)),f=m(n(24)),h=m(n(51)),d=m(n(53)),p=m(n(17)),v=m(n(55));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}function m(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=e[a]}return i.default=e,n&&n.set(e,i),i}var g=i.assign({},i,o,a,s,l,h,d,c,u,f,p,v);t.default=g},function(e,t,n){(function(r){var i;!function(r){"use strict";function o(e){var n=e&&e.Promise||r.Promise,i=e&&e.XMLHttpRequest||r.XMLHttpRequest;return function(){var e=Object.create(r,{fetch:{value:void 0,writable:!0}});return function(t){var r=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==r&&r,o={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function a(e){return e&&DataView.prototype.isPrototypeOf(e)}if(o.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o.iterable&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function d(e){if(e.bodyUsed)return n.reject(new TypeError("Already read"));e.bodyUsed=!0}function p(e){return new n((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function v(e){var t=new FileReader,n=p(t);return t.readAsArrayBuffer(e),n}function y(e){var t=new FileReader,n=p(t);return t.readAsText(e),n}function m(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o.arrayBuffer&&o.blob&&a(e)?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return n.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return n.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return n.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=d(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?n.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):n.resolve(this._bodyArrayBuffer))}return this.blob().then(v)}),this.text=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return y(this._bodyBlob);if(this._bodyArrayBuffer)return n.resolve(m(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return n.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=u(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},h.prototype.delete=function(e){delete this.map[u(e)]},h.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},h.prototype.set=function(e,t){this.map[u(e)]=c(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),f(e)},h.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),f(e)},h.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),f(e)},o.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function T(e){var t=e.toUpperCase();return b.indexOf(t)>-1?t:e}function E(e,t){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n=(t=t||{}).body;if(e instanceof E){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=T(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{var i=/\?/;this.url+=(i.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function C(e){var t=new h;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t}function k(e,t){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})},_.call(E.prototype),_.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},k.error=function(){var e=new k(null,{status:0,statusText:""});return e.type="error",e};var S=[301,302,303,307,308];k.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new k(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function O(e,a){return new n((function(n,s){var l=new E(e,a);if(l.signal&&l.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var u=new i;function f(){u.abort()}function d(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}u.onload=function(){var e={status:u.status,statusText:u.statusText,headers:C(u.getAllResponseHeaders()||"")};e.url="responseURL"in u?u.responseURL:e.headers.get("X-Request-URL");var t="response"in u?u.response:u.responseText;setTimeout((function(){n(new k(t,e))}),0)},u.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){s(new t.DOMException("Aborted","AbortError"))}),0)},u.open(l.method,d(l.url),!0),"include"===l.credentials?u.withCredentials=!0:"omit"===l.credentials&&(u.withCredentials=!1),"responseType"in u&&(o.blob?u.responseType="blob":o.arrayBuffer&&l.headers.get("Content-Type")&&-1!==l.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!a||"object"!=typeof a.headers||a.headers instanceof h?l.headers.forEach((function(e,t){u.setRequestHeader(t,e)})):Object.getOwnPropertyNames(a.headers).forEach((function(e){u.setRequestHeader(e,c(a.headers[e]))})),l.signal&&(l.signal.addEventListener("abort",f),u.onreadystatechange=function(){4===u.readyState&&l.signal.removeEventListener("abort",f)}),u.send(void 0===l._bodyInit?null:l._bodyInit)}))}O.polyfill=!0,r.fetch||(r.fetch=O,r.Headers=h,r.Request=E,r.Response=k),t.Headers=h,t.Request=E,t.Response=k,t.fetch=O,Object.defineProperty(t,"__esModule",{value:!0})}(t),{fetch:e.fetch,Headers:e.Headers,Request:e.Request,Response:e.Response,DOMException:e.DOMException}}()}void 0===(i=function(){return o}.call(t,n,t,e))||(e.exports=i)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==r?r:this)}).call(this,n(5))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyWithProps=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.order,a=void 0===o?null:o,s=t,l=function(n){var r=t[n];void 0!==r&&e[n]&&(0,i.isFunction)(e[n])&&e[n](r)};a&&(s=(0,r.assign)({},t),a.forEach((function(e){l(e),delete s[e]})));Object.keys(s).forEach((function(e){l(e)}))};var r=n(1),i=n(2)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.mixin=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return t(e)}),(function e(){r(this,e)}))}},function(e,t,n){"use strict";n.r(t)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i;function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=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(e){return!1}}();return function(){var n,r=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(c,e);var t,n,r,i=u(c);function c(){return o(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"setItem",value:function(e){var t=e.action,n=e.source;this.source=n;var r=n.info();this.setTitle(r.title||n.publicId()),this.setPoster(this.source.poster().url({transformation:{aspect_ratio:"16:9",crop:"pad",background:"black"}})),this.setAction(t)}},{key:"setTitle",value:function(e){this.title.innerText=e}},{key:"setAction",value:function(e){this.action=e}},{key:"handleClick",value:function(){s(f(c.prototype),"handleClick",this).call(this),this.player().trigger("recommendationshide"),this.action()}}])&&a(t.prototype,n),r&&a(t,r),c}(((i=n(0))&&i.__esModule?i:{default:i}).default.getComponent("ClickableComponent"));t.default=h},function(e,t,n){"use strict";var r=function(e){e.style.display="none"},i=function(e){e.style.display=""};e.exports={hide:r,show:i,setText:function(e,t){if(!t||t.length<=0)return e.innerText="",void r(e);e.innerText=t,i(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=t.debounce=t.parseTime=t.parseISO8601=void 0;var r=void 0;function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e,t)||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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a=[1,4,5,6,7,10,11];t.parseISO8601=function(e){var t=0,n=0,r=0;if(n=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/.exec(e)){for(var i,o=0;i=a[o];++o)n[i]=+n[i]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,"Z"!==n[8]&&void 0!==n[9]&&(r=60*n[10]+n[11],"+"===n[9]&&(r=0-r)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+r,n[6],n[7])}else t=NaN;return t};t.parseTime=function(e){var t=i(e.split(":").reverse(),3),n=t[0],r=t[1],o=t[2],a=null;return isNaN(n)||(a=60*(+o||0)*60+60*(+r||0)+ +n),a};t.debounce=function(e,t){var n=null;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){e.apply(r,o)}),t)}};t.throttle=function(e,t){var n=0;return function(){var i=new Date;if(i-n>=t){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];e.apply(r,a),n=i}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(8))&&r.__esModule?r:{default:r},o=n(4),a=n(3),s=n(10),l=n(19);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var f=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,e);var l=(0,o.normalizeOptions)(t,r);t=l.publicId,r=l.options;var c=null,f=null,h=null,d=null,p=null;this.publicId=function(e){return e?(c=e,n):c},this.cloudinaryConfig=function(e){return e?(f=(0,s.getCloudinaryInstanceOf)(i.default.Cloudinary,e),n):f},this.resourceConfig=function(e){return e?(d=e,n):d},this.transformation=function(e){return e?(h=(0,s.getCloudinaryInstanceOf)(i.default.Transformation,e),n):h},this.queryParams=function(e){return e?(p=e,n):p},this.getType=function(){return n._type};var v=(0,a.sliceAndUnsetProperties)(r,"cloudinaryConfig"),y=v.cloudinaryConfig;if(!y)throw new Error("Source is missing 'cloudinaryConfig'.");this.cloudinaryConfig(y);var m=(0,a.sliceAndUnsetProperties)(r,"transformation"),g=m.transformation;this.transformation(g);var _=(0,a.sliceAndUnsetProperties)(r,"queryParams"),b=_.queryParams;this.queryParams(b),this.resourceConfig(r),this.publicId(t)}var t,n,r;return t=e,(n=[{key:"config",value:function(){var e=new i.default.Cloudinary(this.cloudinaryConfig().config());return e.config(this.resourceConfig()),e}},{key:"url",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.transformation,n=this.config().url(this.publicId(),{transformation:t||this.transformation()}),r="";return this.queryParams()&&(r=(0,l.objectToQuerystring)(this.queryParams())),"".concat(n).concat(r)}}])&&c(t.prototype,n),r&&c(t,r),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CLD_SPBL_IMAGE=t.CLD_SPBL_ITEM=t.SHOPPABLE_ANIMATION_CLASS=t.CLOSE_ICON_CLASS=t.ICON_CART_CLASS=t.CLD_SPBL_TOGGLE_CUSTOM_ICON_CLASS=t.CLD_SPBL_INNER_BAR=t.CLD_SPBL_TOGGLE_ICON_CLASS=t.CLD_SPBL_TOGGLE_CLASS=t.CLD_SPBL_PANEL_CLASS=t.SHOPPABLE_PRODUCTS_OVERLAY_CLASS=t.SHOPPABLE_PANEL_HIDDEN_CLASS=t.SHOPPABLE_PANEL_VISIBLE_CLASS=t.SHOPPABLE_WIDGET_RESPONSIVE_CLASS=t.SHOPPABLE_HOVER_ACTIONS=t.SHOPPABLE_CLICK_ACTIONS=t.SHOPPABLE_WIDGET_OPTIONS_DEFAULTS=void 0;t.SHOPPABLE_WIDGET_OPTIONS_DEFAULTS={location:"right",toggleIcon:"",width:"20%",startState:"openOnPlay",autoClose:2,transformation:{quality:"auto",width:"auto",fetch_format:"auto",crop:"scale"},products:[],showPostPlayOverlay:!1};t.SHOPPABLE_CLICK_ACTIONS={GO_TO:"goto",SEEk:"seek"};t.SHOPPABLE_HOVER_ACTIONS={OVERLAY:"overlay"};t.SHOPPABLE_WIDGET_RESPONSIVE_CLASS="cld-vp-responsive";t.SHOPPABLE_PANEL_VISIBLE_CLASS="shoppable-panel-visible";t.SHOPPABLE_PANEL_HIDDEN_CLASS="shoppable-panel-hidden";t.SHOPPABLE_PRODUCTS_OVERLAY_CLASS="shoppable-products-overlay";t.CLD_SPBL_PANEL_CLASS="cld-spbl-panel";t.CLD_SPBL_TOGGLE_CLASS="cld-spbl-toggle";t.CLD_SPBL_TOGGLE_ICON_CLASS="cld-spbl-toggle-icon";t.CLD_SPBL_INNER_BAR="cld-spbl-bar-inner";t.CLD_SPBL_TOGGLE_CUSTOM_ICON_CLASS="cld-spbl-toggle-custom-icon";t.ICON_CART_CLASS="vjs-icon-cart";t.CLOSE_ICON_CLASS="vjs-icon-close";t.SHOPPABLE_ANIMATION_CLASS="animate";t.CLD_SPBL_ITEM="cld-spbl-item";t.CLD_SPBL_IMAGE="cld-spbl-img"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FORMAT_MAPPINGS=t.CONTAINER_MIME_TYPES=t.URL_PATTERN=t.VIDEO_SUFFIX_REMOVAL_PATTERN=t.DEFAULT_VIDEO_PARAMS=t.DEFAULT_POSTER_PARAMS=void 0;t.DEFAULT_POSTER_PARAMS={format:"jpg",resource_type:"video"};var r=["webm/vp9","mp4/h265","mp4"],i={resource_type:"video",type:"upload",transformation:[],sourceTransformation:{},sourceTypes:r,recommendations:null,info:{},interactionAreas:{}};t.DEFAULT_VIDEO_PARAMS=i;var o=RegExp("\\.(".concat(r.join("|"),")$$"));t.VIDEO_SUFFIX_REMOVAL_PATTERN=o;var a=RegExp("https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_+.~#?&/=]*)");t.URL_PATTERN=a;t.CONTAINER_MIME_TYPES={dash:["application/dash+xml"],hls:["application/x-mpegURL"],mpd:["application/dash+xml"],m3u8:["application/x-mpegURL"]};t.FORMAT_MAPPINGS={hls:"m3u8",dash:"mpd"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PLAYLIST_DEFAULTS_OPTIONS=t.UPCOMING_VIDEO_TRANSITION=t.DEFAULT_PRESENT_UPCOMING=t.DEFAULT_AUTO_ADVANCE=void 0;t.DEFAULT_AUTO_ADVANCE=0;t.DEFAULT_PRESENT_UPCOMING=10;t.UPCOMING_VIDEO_TRANSITION=1;t.PLAYLIST_DEFAULTS_OPTIONS={fluid:!1,show:!0,direction:"vertical",total:4,selector:!1,renderTo:[]}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.normalizeEventsParam=void 0;var i=l(n(0)),o=l(n(97)),a=n(1),s=n(2);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=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(e){return!1}}();return function(){var n,r=p(e);if(t){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v={percentsplayed:{percents:[25,50,75,100]}},y={events:["percentsplayed","pausenoseek","seek","mute","unmute","qualitychanged"]},m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(n,e);var t=f(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,n),(r=t.call(this)).player=e;var a=i.default.mergeOptions(y,o),s={lastState:void 0},l=0,c=0,f=!1,h=[],p=[],m=null,T=!1,E=function(e){r.player.muted()&&"muted"!==s.lastState?(s.lastState="muted",r.emit("mute",e)):r.player.muted()||"unmuted"===s.lastState||(s.lastState="unmuted",r.emit("unmute",e))},w=function(e){var t=r.player.currentTime(),n=r.player.duration(),i=function(t,n){n.originalType="timeupdate",r.emit(t,e,n)};if(r.events.percentsplayed&&r.events.percentsplayed.percents.forEach((function(e){_(t,n,e)&&-1===h.indexOf(e)&&(h.push(e),i("percentsplayed",{percent:e}))})),r.events.timeplayed){var o=r.events.timeplayed;(o.interval?[Math.floor(t/o.interval)*o.interval]:o.times).forEach((function(e){b(t,e)&&-1===p.indexOf(e)&&(p.push(e),i("timeplayed",{time:e}))}))}r.events.seek&&(l=c,c=t,Math.abs(l-c)>1&&(f=!0,A(),i("seek",{seekStart:l,seekEnd:c})))},C=function(e){Math.round(r.player.currentTime())===Math.round(r.player.duration())||f||r.emit("pausenoseek",e)},k=function(){f=!1},S=function(){T&&(r.player.trigger("replay"),T=!1)},O=function(){r.player.currentSource().src!==m&&(A(),m=r.player.currentSource().src)},P=function(e){for(var t=d(r),n=r.player.textTracks(),i=null,o=0;o<n.length;o++)"segment-metadata"===n[o].label&&(i=n[o]);var a=null;i&&i.on("cuechange",(function(){var n=i.activeCues[0];if(n){var r=n.value.resolution;if(a!==r){var o={from:a,to:r};t.emit("qualitychanged",e,o)}a=r}}))},j=function(){s={lastState:void 0},l=c=0,f=!1,A()},A=function(){h=[],p=[]},x=function(){T=!0};return r.events=g(a.events,v),j(),r.player.on("play",S.bind(d(r))),r.player.on("ended",x.bind(d(r))),(r.events.percentsplayed||r.events.timeplayed||r.events.seek||r.events.totaltimeplayed)&&r.player.on("timeupdate",w.bind(d(r))),(r.events.mute||r.events.unmute)&&r.player.on("volumechange",E.bind(d(r))),r.events.pausenoseek&&(r.player.on("pause",C.bind(d(r))),r.player.on("play",k.bind(d(r)))),r.player.on("loadedmetadata",O.bind(d(r))),r.player.on("loadeddata",P.bind(d(r))),r}return n}(o.default),g=function(e,t){var n=e;return"Array"===e.constructor.name&&(n=e.reduce((function(e,n){var r=t[n]||{};return(0,s.isPlainObject)(n)?e[n.type]=(0,a.assign)({},r,n):e[n]=r,e}),{})),n};t.normalizeEventsParam=g;var _=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,i=t*n/100;return b(e,i,r)},b=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5;return e<=t+n&&e>=t-n},T=m;t.default=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidConfig=t.isValueValid=t.getValidatorItem=void 0;var r=n(2),i=function(e){return(0,r.isFunction)(e)?e():e};t.getValidatorItem=i;var o=function(e,t,n){var r=i(e),o=r.value(t);return o||console.error("cloudinary video player: ".concat(r.message(n))),o};t.isValueValid=o;t.isValidConfig=function e(t,n){if((0,r.isPlainObject)(n))for(var i in t)if(Object.prototype.hasOwnProperty.call(n,i)){var a=t[i],s=n[i],l=(0,r.isPlainObject)(a);if(l&&!e(a,s))return!1;if(!l&&!o(s,a,i))return!1}return!0}},function(e,t,n){"use strict";t.a=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}},function(e,t,n){"use strict";t.a=function(e){return new this((function(t,n){if(!e||void 0===e.length)return n(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var i=r.length;function o(e,n){if(n&&("object"==typeof n||"function"==typeof n)){var a=n.then;if("function"==typeof a)return void a.call(n,(function(t){o(e,t)}),(function(n){r[e]={status:"rejected",reason:n},0==--i&&t(r)}))}r[e]={status:"fulfilled",value:n},0==--i&&t(r)}for(var a=0;a<r.length;a++)o(a,r[a])}))}},function(e,t,n){"use strict";n(38);var r=a(n(8)),i=a(n(39)),o=n(1);function a(e){return e&&e.__esModule?e:{default:e}}r.default.VideoPlayer=i.default;var s=r.default.Cloudinary.prototype;s.videoPlayer=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,o.assign)(t,{cloudinaryConfig:this}),new i.default(e,t,n)},s.videoPlayers=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,o.assign)(t,{cloudinaryConfig:this}),i.default.all(e,t,n)}},function(e,t,n){"use strict";n.r(t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=y(n(0));n(41);var i=y(n(76)),o=y(n(21)),a=y(n(18)),s=y(n(100)),l=y(n(33)),u=y(n(101)),c=y(n(12)),f=n(2),h=n(14),d=n(7),p=n(34),v=n(106);function y(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return(m=E()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&b(i,n.prototype),i}).apply(null,arguments)}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E(){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(e){return!1}}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.keys(i.default).forEach((function(e){r.default.registerPlugin(e,i.default[e])})),(0,h.overrideDefaultVideojsComponents)();var C=!0,k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(O,e);var t,n,s,y,k,S=(t=O,n=E(),function(){var e,r=w(t);if(n){var i=w(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return T(this,e)});function O(e,t,n){var a;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,O),(a=S.call(this))._playlistWidget=null,a.nbCalls=0,a._firstPlayed=!1,a.videoElement=(0,h.getResolveVideoElement)(e),a.options=(0,h.extractOptions)(a.videoElement,t),a._videojsOptions=a.options.videojsOptions,a.videoElement.classList.add("video-js"),o.default.fontFace(a.videoElement,a.playerOptions),o.default.playButton(a.videoElement,a._videojsOptions),i.default.dashPlugin&&i.default.dashPlugin(),a.videojs=(0,r.default)(a.videoElement,a._videojsOptions),a._isPlayerConfigValid=(0,p.isValidConfig)(a.options,v.playerValidators),!a._isPlayerConfigValid)return a.videojs.error("invalid player configuration"),T(a);a._videojsOptions.muted&&a.videojs.volume(.4),a.playerOptions.fluid&&a.fluid(a.playerOptions.fluid);var s={contribAdsLoaded:(0,f.isFunction)(a.videojs.ads),imaAdsLoaded:"object"===("undefined"==typeof google?"undefined":g(google))&&"object"===g(google.ima)};return a._setCssClasses(),a._initPlugins(s),a._initPlaylistWidget(),a._initJumpButtons(),a._setVideoJsListeners(n),a}return s=O,k=[{key:"all",value:function(e){for(var t=document.querySelectorAll(e),n=[],r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];for(var a=0;a<t.length;a++)n.push(m(O,[t[a]].concat(i)));return n}},{key:"allowUsageReport",value:function(e){return void 0===e?C:C=!!e}},{key:"buildTextTrackObj",value:function(e,t){return{kind:e,label:t.label,srclang:t.language,default:!!t.default,src:t.url}}}],(y=[{key:"_setVideoJsListeners",value:function(e){var t=this;this.videojs.on("error",(function(){var e=t.videojs.error();if(e){var n=t._isPlayerConfigValid&&t.videojs.cloudinary.currentSourceType();4!==e.code||"VideoSource"!==n&&"AudioSource"!==n?t.videojs.clearTimeout(t.reTryId):(t.videojs.error(null),o.default.handleCldError(t,t.playerOptions))}})),this.videojs.on("play",(function(){t.videojs.clearTimeout(t.reTryId)})),this.videojs.on("canplaythrough",(function(){t.videojs.clearTimeout(t.reTryId)})),this.videojs.ready((function(){t._onReady(),e&&e(t)})),this.adsEnabled&&Object.keys(this.playerOptions.ads).length>0&&"object"===g(this.videojs.ima)&&("first-video"===this.playerOptions.ads.adsInPlaylist?this.videojs.one("sourcechanged",(function(){t.videojs.ima.playAd()})):this.videojs.on("sourcechanged",(function(){t.videojs.ima.playAd()})))}},{key:"_initPlugins",value:function(e){this._initAutoplay(),this._initContextMenu(),this._initPerSrcBehaviors(),this._initCloudinary(),this._initAnalytics(),this._initFloatingPlayer(),this._initColors(),this._initTextTracks(),this._initSeekThumbs()}},{key:"_isFullScreen",value:function(){return this.videojs.player().isFullscreen()}},{key:"_initIma",value:function(e){if(!e.contribAdsLoaded||!e.imaAdsLoaded)return this.playerOptions.ads&&(e.contribAdsLoaded,e.imaAdsLoaded),!1;this.playerOptions.ads||(this.playerOptions.ads={});var t=this.playerOptions.ads;return 0!==Object.keys(t).length&&(this.videojs.ima({id:this.el().id,adTagUrl:t.adTagUrl,disableFlashAds:!0,prerollTimeout:t.prerollTimeout||5e3,postrollTimeout:t.postrollTimeout||5e3,showCountdown:!1!==t.showCountdown,adLabel:t.adLabel||"Advertisement",locale:t.locale||"en",autoPlayAdBreaks:!1!==t.autoPlayAdBreaks,debug:!0}),!0)}},{key:"setTextTracks",value:function(e){var t=this.videojs.remoteTextTracks();if(t)for(var n=t.tracks_.length-1;n>=0;n--)this.videojs.removeRemoteTextTrack(t.tracks_[n]);if(e){for(var r=[],i=0,a=Object.keys(e);i<a.length;i++){var s=a[i];if(Array.isArray(e[s]))for(var l=e[s],u=0;u<l.length;u++)r.push(O.buildTextTrackObj(s,l[u]));else r.push(O.buildTextTrackObj(s,e[s]))}o.default.filterAndAddTextTracks(r,this.videojs)}}},{key:"_initSeekThumbs",value:function(){var e=this;this.playerOptions.seekThumbnails&&this.videojs.on("cldsourcechanged",(function(t,n){var r=n.source;if(!("AudioSource"===r.getType()||e.videojs&&e.videojs.activePlugins_&&e.videojs.activePlugins_.vr)){var i=r.cloudinaryConfig(),o=r.publicId(),a=r.transformation().toOptions();a&&a.streaming_profile&&delete a.streaming_profile,a.flags=a.flags||[],a.flags.push("sprite");var s=i.video_url(o+".vtt",{transformation:a});(0,f.isFunction)(e.videojs.vttThumbnails)?e.videojs.vttThumbnails({src:s}):e.videojs.vttThumbnails.src(s)}}))}},{key:"_initColors",value:function(){this.videojs.colors(this.playerOptions.colors?{colors:this.playerOptions.colors}:{})}},{key:"_initTextTracks",value:function(){var e=this;this.videojs.on("refreshTextTracks",(function(t,n){e.setTextTracks(n)}))}},{key:"_initPerSrcBehaviors",value:function(){this.videojs.perSourceBehaviors&&this.videojs.perSourceBehaviors()}},{key:"_initJumpButtons",value:function(){!this.playerOptions.showJumpControls&&this.videojs.controlBar&&(this.videojs.controlBar.removeChild("JumpForwardButton"),this.videojs.controlBar.removeChild("JumpBackButton"))}},{key:"_initCloudinary",value:function(){var e=this.playerOptions.cloudinary;e.chainTarget=this,!1!==e.secure&&this.playerOptions.cloudinary.cloudinaryConfig.config("secure",!0),this.videojs.cloudinary(this.playerOptions.cloudinary)}},{key:"_initAnalytics",value:function(){var e=this.playerOptions.analytics;if(window.ga||!e){if(e){var t="object"===g(e)?e:{};this.videojs.analytics(t)}}else console.error("Google Analytics script is missing")}},{key:"reTryVideo",value:function(e,t){var n=this;if(!this.isVideoReady())if(this.nbCalls<e)this.nbCalls++,this.reTryId=this.videojs.setTimeout((function(){return n.reTryVideo(e,t)}),t);else{var r=new Error("Video is not ready please try later");this.videojs.trigger("error",r)}}},{key:"isVideoReady",value:function(){return this.videojs.readyState()>=(/iPad|iPhone|iPod/.test(navigator.userAgent)?1:4)&&(this.nbCalls=0,!0)}},{key:"_initPlaylistWidget",value:function(){var e=this;this.videojs.on("playlistcreated",(function(){e._playlistWidget&&e._playlistWidget.dispose();var t=e.playerOptions.playlistWidget;(0,f.isPlainObject)(t)&&(e.playerOptions.fluid&&(t.fluid=!0),e.playerOptions.cloudinary.fontFace&&(t.fontFace=e.playerOptions.cloudinary.fontFace),e._playlistWidget=new u.default(e.videojs,t))}))}},{key:"playlistWidget",value:function(e){return!(!e&&!this._playlistWidget)&&(!e&&this._playlistWidget||(0,f.isPlainObject)(e)&&this._playlistWidget.options(e),this._playlistWidget)}},{key:"_initAutoplay",value:function(){"on-scroll"===this.playerOptions.autoplayMode&&this.videojs.autoplayOnScroll()}},{key:"_initContextMenu",value:function(){this.playerOptions.hideContextMenu||this.videojs.contextMenu(a.default.contextMenu)}},{key:"_initFloatingPlayer",value:function(){this.playerOptions.floatingWhenNotVisible!==d.FLOATING_TO.NONE&&this.videojs.floatingPlayer({floatTo:this.playerOptions.floatingWhenNotVisible})}},{key:"_setCssClasses",value:function(){this.videojs.addClass(o.default.CLASS_PREFIX),this.videojs.addClass(o.default.playerClassPrefix(this.videojs)),o.default.setSkinClassPrefix(this.videojs,o.default.skinClassPrefix(this.videojs)),11===r.default.browser.IE_VERSION&&this.videojs.addClass("cld-ie11")}},{key:"_onReady",value:function(){this._setExtendedEvents();var e=this.playerOptions.source||this.playerOptions.publicId;e&&this.source(e,this.playerOptions)}},{key:"_setExtendedEvents",value:function(){var e=this,t=[];this.playerOptions.playedEventPercents&&t.push({type:"percentsplayed",percents:this.playerOptions.playedEventPercents}),this.playerOptions.playedEventTimes&&t.push({type:"timeplayed",times:this.playerOptions.playedEventTimes}),t.push.apply(t,["seek","mute","unmute","qualitychanged"]);var n=new l.default(this.videojs,{events:t});Object.keys(n.events).forEach((function(t){n.on(t,(function(n,r){e.videojs.trigger({type:t,eventData:r})}))}))}},{key:"cloudinaryConfig",value:function(e){return this.videojs.cloudinary.cloudinaryConfig(e)}},{key:"playerOptions",get:function(){return this.options.playerOptions}},{key:"currentPublicId",value:function(){return this.videojs.cloudinary.currentPublicId()}},{key:"currentSourceUrl",value:function(){return this.videojs.currentSource().src}},{key:"currentPoster",value:function(){return this.videojs.cloudinary.currentPoster()}},{key:"source",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._isPlayerConfigValid){var n=(0,p.isValidConfig)(t,v.sourceValidators);if(n){if(e instanceof c.default)return this.videojs.cloudinary.source(e,t);this.videojs.interactive&&this.videojs.interactive(this.videojs,t),O.allowUsageReport()&&(t.usageReport=!0),this.setTextTracks(t.textTracks),clearTimeout(this.reTryId),this.nbCalls=0;var r=this.videojs.options_.maxTries||3,i=this.videojs.options_.videoTimeout||55e3;return this.reTryVideo(r,i),this.videojs.cloudinary.source(e,t)}this.videojs.error("invalid source configuration")}}},{key:"posterOptions",value:function(e){return this.videojs.cloudinary.posterOptions(e)}},{key:"skin",value:function(e){if(void 0!==e&&(0,f.isString)(e)){o.default.setSkinClassPrefix(this.videojs,e);var t=this.playlistWidget();this.playlistWidget()&&t.setSkin()}return o.default.skinClassPrefix(this.videojs)}},{key:"playlist",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.videojs.cloudinary.playlist(e,t)}},{key:"playlistByTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.videojs.cloudinary.playlistByTag(e,t)}},{key:"sourcesByTag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.videojs.cloudinary.sourcesByTag(e,t)}},{key:"fluid",value:function(e){return void 0===e?this.videojs.fluid():(e?this.videojs.addClass(d.FLUID_CLASS_NAME):this.videojs.removeClass(d.FLUID_CLASS_NAME),this.videojs.fluid(e),this.videojs.trigger("fluid",e),this)}},{key:"play",value:function(){return this.playWasCalled=!0,this.videojs.play(),this}},{key:"stop",value:function(){return this.pause(),this.currentTime(0),this}},{key:"playPrevious",value:function(){return this.playlist().playPrevious(),this}},{key:"playNext",value:function(){return this.playlist().playNext(),this}},{key:"transformation",value:function(e){return this.videojs.cloudinary.transformation(e)}},{key:"sourceTypes",value:function(e){return this.videojs.cloudinary.sourceTypes(e)}},{key:"sourceTransformation",value:function(e){return this.videojs.cloudinary.sourceTransformation(e)}},{key:"autoShowRecommendations",value:function(e){return this.videojs.cloudinary.autoShowRecommendations(e)}},{key:"duration",value:function(){return this.videojs.duration()}},{key:"height",value:function(e){return e?(this.videojs.height(e),this):this.videojs.height()}},{key:"width",value:function(e){return e?(this.videojs.width(e),this):this.videojs.width()}},{key:"volume",value:function(e){return e?(this.videojs.volume(e),this):this.videojs.volume()}},{key:"mute",value:function(){return this.isMuted()||this.videojs.muted(!0),this}},{key:"unmute",value:function(){return this.isMuted()&&this.videojs.muted(!1),this}},{key:"isMuted",value:function(){return this.videojs.muted()}},{key:"pause",value:function(){return this.videojs.pause(),this}},{key:"currentTime",value:function(e){return e||0===e?(this.videojs.currentTime(e),this):this.videojs.currentTime()}},{key:"maximize",value:function(){return this.isMaximized()||this.videojs.requestFullscreen(),this}},{key:"exitMaximize",value:function(){return this.isMaximized()&&this.videojs.exitFullscreen(),this}},{key:"isMaximized",value:function(){return this.videojs.isFullscreen()}},{key:"dispose",value:function(){this.videojs.dispose()}},{key:"controls",value:function(e){return void 0===e?this.videojs.controls():(this.videojs.controls(e),this)}},{key:"ima",value:function(){return{playAd:this.videojs.ima.playAd}}},{key:"loop",value:function(e){return void 0===e?this.videojs.loop():(this.videojs.loop(e),this)}},{key:"el",value:function(){return this.videojs.el()}}])&&_(s.prototype,y),k&&_(s,k),O}(o.default.mixin(s.default));t.default=k},function(e,t,n){(function(t){var n;n=function(){"use strict";var e="7.13.3",n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function r(e,t){return e(t={exports:{}},t.exports),t.exports}var i,o="undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:{},a=void 0!==n?n:"undefined"!=typeof window?window:{};"undefined"!=typeof document?i=document:(i=a["__GLOBAL_DOCUMENT_CACHE@4"])||(i=a["__GLOBAL_DOCUMENT_CACHE@4"]={});for(var s,l=i,u={prefixed:!0},c=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],f=c[0],h=0;h<c.length;h++)if(c[h][1]in l){s=c[h];break}if(s){for(var d=0;d<s.length;d++)u[f[d]]=s[d];u.prefixed=s[0]!==f[0]}var p=[],v=function e(t){var n,r="info",i=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n("log",r,t)};return n=function(e,t){return function(n,r,i){var a=t.levels[r],s=new RegExp("^("+a+")$");if("log"!==n&&i.unshift(n.toUpperCase()+":"),i.unshift(e+":"),p){p.push([].concat(i));var l=p.length-1e3;p.splice(0,l>0?l:0)}if(o.console){var u=o.console[n];u||"debug"!==n||(u=o.console.info||o.console.log),u&&a&&s.test(n)&&u[Array.isArray(i)?"apply":"call"](o.console,i)}}}(t,i),i.createLogger=function(n){return e(t+": "+n)},i.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:r},i.level=function(e){if("string"==typeof e){if(!i.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');r=e}return r},(i.history=function(){return p?[].concat(p):[]}).filter=function(e){return(p||[]).filter((function(t){return new RegExp(".*"+e+".*").test(t[0])}))},i.history.clear=function(){p&&(p.length=0)},i.history.disable=function(){null!==p&&(p.length=0,p=null)},i.history.enable=function(){null===p&&(p=[])},i.error=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n("error",r,t)},i.warn=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n("warn",r,t)},i.debug=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n("debug",r,t)},i}("VIDEOJS"),y=v.createLogger,m=r((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}e.exports=t})),g=Object.prototype.toString,_=function(e){return E(e)?Object.keys(e):[]};function b(e,t){_(e).forEach((function(n){return t(e[n],n)}))}function T(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.assign?m.apply(void 0,[e].concat(n)):(n.forEach((function(t){t&&b(t,(function(t,n){e[n]=t}))})),e)}function E(e){return!!e&&"object"==typeof e}function w(e){return E(e)&&"[object Object]"===g.call(e)&&e.constructor===Object}function C(e,t){if(!e||!t)return"";if("function"==typeof o.getComputedStyle){var n;try{n=o.getComputedStyle(e)}catch(e){return""}return n?n.getPropertyValue(t)||n[t]:""}return""}var k,S=o.navigator&&o.navigator.userAgent||"",O=/AppleWebKit\/([\d.]+)/i.exec(S),P=O?parseFloat(O.pop()):null,j=/iPod/i.test(S),A=(k=S.match(/OS (\d+)_/i))&&k[1]?k[1]:null,x=/Android/i.test(S),R=function(){var e=S.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),I=x&&R<5&&P<537,L=/Firefox/i.test(S),M=/Edg/i.test(S),N=!M&&(/Chrome/i.test(S)||/CriOS/i.test(S)),D=function(){var e=S.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),B=function(){var e=/MSIE\s(\d+)\.\d/.exec(S),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(S)&&/rv:11.0/.test(S)&&(t=11),t}(),F=/Safari/i.test(S)&&!N&&!x&&!M,H=/Windows/i.test(S),U=Boolean(G()&&("ontouchstart"in o||o.navigator.maxTouchPoints||o.DocumentTouch&&o.document instanceof o.DocumentTouch)),V=/iPad/i.test(S)||F&&U&&!/iPhone/i.test(S),W=/iPhone/i.test(S)&&!V,z=W||V||j,Y=(F||z)&&!N,X=Object.freeze({__proto__:null,IS_IPOD:j,IOS_VERSION:A,IS_ANDROID:x,ANDROID_VERSION:R,IS_NATIVE_ANDROID:I,IS_FIREFOX:L,IS_EDGE:M,IS_CHROME:N,CHROME_VERSION:D,IE_VERSION:B,IS_SAFARI:F,IS_WINDOWS:H,TOUCH_ENABLED:U,IS_IPAD:V,IS_IPHONE:W,IS_IOS:z,IS_ANY_SAFARI:Y});function K(e){return"string"==typeof e&&Boolean(e.trim())}function q(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function G(){return l===o.document}function $(e){return E(e)&&1===e.nodeType}function J(){try{return o.parent!==o.self}catch(e){return!0}}function Q(e){return function(t,n){if(!K(t))return l[e](null);K(n)&&(n=l.querySelector(n));var r=$(n)?n:l;return r[e]&&r[e](t)}}function Z(e,t,n,r){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={});var i=l.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(v.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+n+"."),i.setAttribute(e,n)):"textContent"===e?ee(i,n):i[e]===n&&"tabIndex"!==e||(i[e]=n)})),Object.getOwnPropertyNames(n).forEach((function(e){i.setAttribute(e,n[e])})),r&&_e(i,r),i}function ee(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function te(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function ne(e,t){return q(t),e.classList?e.classList.contains(t):(n=t,new RegExp("(^|\\s)"+n+"($|\\s)")).test(e.className);var n}function re(e,t){return e.classList?e.classList.add(t):ne(e,t)||(e.className=(e.className+" "+t).trim()),e}function ie(e,t){return e.classList?e.classList.remove(t):(q(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e}function oe(e,t,n){var r=ne(e,t);if("function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=!r),n!==r)return n?re(e,t):ie(e,t),e}function ae(e,t){Object.getOwnPropertyNames(t).forEach((function(n){var r=t[n];null==r||!1===r?e.removeAttribute(n):e.setAttribute(n,!0===r?"":r)}))}function se(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var r=e.attributes,i=r.length-1;i>=0;i--){var o=r[i].name,a=r[i].value;"boolean"!=typeof e[o]&&-1===n.indexOf(","+o+",")||(a=null!==a),t[o]=a}return t}function le(e,t){return e.getAttribute(t)}function ue(e,t,n){e.setAttribute(t,n)}function ce(e,t){e.removeAttribute(t)}function fe(){l.body.focus(),l.onselectstart=function(){return!1}}function he(){l.onselectstart=function(){return!0}}function de(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((function(e){void 0!==t[e]&&(n[e]=t[e])})),n.height||(n.height=parseFloat(C(e,"height"))),n.width||(n.width=parseFloat(C(e,"width"))),n}}function pe(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,n=e.offsetHeight,r=0,i=0;e.offsetParent&&e!==l[u.fullscreenElement];)r+=e.offsetLeft,i+=e.offsetTop,e=e.offsetParent;return{left:r,top:i,width:t,height:n}}function ve(e,t){var n={x:0,y:0};if(z)for(var r=e;r&&"html"!==r.nodeName.toLowerCase();){var i=C(r,"transform");if(/^matrix/.test(i)){var o=i.slice(7,-1).split(/,\s/).map(Number);n.x+=o[4],n.y+=o[5]}else if(/^matrix3d/.test(i)){var a=i.slice(9,-1).split(/,\s/).map(Number);n.x+=a[12],n.y+=a[13]}r=r.parentNode}var s={},l=pe(t.target),u=pe(e),c=u.width,f=u.height,h=t.offsetY-(u.top-l.top),d=t.offsetX-(u.left-l.left);return t.changedTouches&&(d=t.changedTouches[0].pageX-u.left,h=t.changedTouches[0].pageY+u.top,z&&(d-=n.x,h-=n.y)),s.y=1-Math.max(0,Math.min(1,h/f)),s.x=Math.max(0,Math.min(1,d/c)),s}function ye(e){return E(e)&&3===e.nodeType}function me(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function ge(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return"function"==typeof e&&(e=e()),$(e)||ye(e)?e:"string"==typeof e&&/\S/.test(e)?l.createTextNode(e):void 0})).filter((function(e){return e}))}function _e(e,t){return ge(t).forEach((function(t){return e.appendChild(t)})),e}function be(e,t){return _e(me(e),t)}function Te(e){return void 0===e.button&&void 0===e.buttons||0===e.button&&void 0===e.buttons||"mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons}var Ee,we=Q("querySelector"),Ce=Q("querySelectorAll"),ke=Object.freeze({__proto__:null,isReal:G,isEl:$,isInFrame:J,createEl:Z,textContent:ee,prependTo:te,hasClass:ne,addClass:re,removeClass:ie,toggleClass:oe,setAttributes:ae,getAttributes:se,getAttribute:le,setAttribute:ue,removeAttribute:ce,blockTextSelection:fe,unblockTextSelection:he,getBoundingClientRect:de,findPosition:pe,getPointerPosition:ve,isTextNode:ye,emptyEl:me,normalizeContent:ge,appendContent:_e,insertContent:be,isSingleLeftClick:Te,$:we,$$:Ce}),Se=!1,Oe=function(){if(!1!==Ee.options.autoSetup){var e=Array.prototype.slice.call(l.getElementsByTagName("video")),t=Array.prototype.slice.call(l.getElementsByTagName("audio")),n=Array.prototype.slice.call(l.getElementsByTagName("video-js")),r=e.concat(t,n);if(r&&r.length>0)for(var i=0,o=r.length;i<o;i++){var a=r[i];if(!a||!a.getAttribute){Pe(1);break}void 0===a.player&&null!==a.getAttribute("data-setup")&&Ee(a)}else Se||Pe(1)}};function Pe(e,t){G()&&(t&&(Ee=t),o.setTimeout(Oe,e))}function je(){Se=!0,o.removeEventListener("load",je)}G()&&("complete"===l.readyState?je():o.addEventListener("load",je));var Ae,xe=function(e){var t=l.createElement("style");return t.className=e,t},Re=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},Ie=3;function Le(){return Ie++}o.WeakMap||(Ae=function(){function e(){this.vdata="vdata"+Math.floor(o.performance&&o.performance.now()||Date.now()),this.data={}}var t=e.prototype;return t.set=function(e,t){var n=e[this.vdata]||Le();return e[this.vdata]||(e[this.vdata]=n),this.data[n]=t,this},t.get=function(e){var t=e[this.vdata];if(t)return this.data[t];v("We have no data for this element",e)},t.has=function(e){return e[this.vdata]in this.data},t.delete=function(e){var t=e[this.vdata];t&&(delete this.data[t],delete e[this.vdata])},e}());var Me,Ne=o.WeakMap?new WeakMap:new Ae;function De(e,t){if(Ne.has(e)){var n=Ne.get(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&Ne.delete(e)}}function Be(e,t,n,r){n.forEach((function(n){e(t,n,r)}))}function Fe(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped){var r=e||o.event;for(var i in e={},r)"layerX"!==i&&"layerY"!==i&&"keyLocation"!==i&&"webkitMovementX"!==i&&"webkitMovementY"!==i&&("returnValue"===i&&r.preventDefault||(e[i]=r[i]));if(e.target||(e.target=e.srcElement||l),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){r.preventDefault&&r.preventDefault(),e.returnValue=!1,r.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),e.cancelBubble=!0,r.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){var a=l.documentElement,s=l.body;e.pageX=e.clientX+(a&&a.scrollLeft||s&&s.scrollLeft||0)-(a&&a.clientLeft||s&&s.clientLeft||0),e.pageY=e.clientY+(a&&a.scrollTop||s&&s.scrollTop||0)-(a&&a.clientTop||s&&s.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}var He=["touchstart","touchmove"];function Ue(e,t,n){if(Array.isArray(t))return Be(Ue,e,t,n);Ne.has(e)||Ne.set(e,{});var r=Ne.get(e);if(r.handlers||(r.handlers={}),r.handlers[t]||(r.handlers[t]=[]),n.guid||(n.guid=Le()),r.handlers[t].push(n),r.dispatcher||(r.disabled=!1,r.dispatcher=function(t,n){if(!r.disabled){t=Fe(t);var i=r.handlers[t.type];if(i)for(var o=i.slice(0),a=0,s=o.length;a<s&&!t.isImmediatePropagationStopped();a++)try{o[a].call(e,t,n)}catch(e){v.error(e)}}}),1===r.handlers[t].length)if(e.addEventListener){var i=!1;(function(){if("boolean"!=typeof Me){Me=!1;try{var e=Object.defineProperty({},"passive",{get:function(){Me=!0}});o.addEventListener("test",null,e),o.removeEventListener("test",null,e)}catch(e){}}return Me})()&&He.indexOf(t)>-1&&(i={passive:!0}),e.addEventListener(t,r.dispatcher,i)}else e.attachEvent&&e.attachEvent("on"+t,r.dispatcher)}function Ve(e,t,n){if(Ne.has(e)){var r=Ne.get(e);if(r.handlers){if(Array.isArray(t))return Be(Ve,e,t,n);var i=function(e,t){r.handlers[t]=[],De(e,t)};if(void 0!==t){var o=r.handlers[t];if(o)if(n){if(n.guid)for(var a=0;a<o.length;a++)o[a].guid===n.guid&&o.splice(a--,1);De(e,t)}else i(e,t)}else for(var s in r.handlers)Object.prototype.hasOwnProperty.call(r.handlers||{},s)&&i(e,s)}}}function We(e,t,n){var r=Ne.has(e)?Ne.get(e):{},i=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=Fe(t),r.dispatcher&&r.dispatcher.call(e,t,n),i&&!t.isPropagationStopped()&&!0===t.bubbles)We.call(null,i,t,n);else if(!i&&!t.defaultPrevented&&t.target&&t.target[t.type]){Ne.has(t.target)||Ne.set(t.target,{});var o=Ne.get(t.target);t.target[t.type]&&(o.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),o.disabled=!1)}return!t.defaultPrevented}function ze(e,t,n){if(Array.isArray(t))return Be(ze,e,t,n);var r=function r(){Ve(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||Le(),Ue(e,t,r)}function Ye(e,t,n){var r=function r(){Ve(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||Le(),Ue(e,t,r)}var Xe,Ke=Object.freeze({__proto__:null,fixEvent:Fe,on:Ue,off:Ve,trigger:We,one:ze,any:Ye}),qe=30,Ge=function(e,t,n){t.guid||(t.guid=Le());var r=t.bind(e);return r.guid=n?n+"_"+t.guid:t.guid,r},$e=function(e,t){var n=o.performance.now();return function(){var r=o.performance.now();r-n>=t&&(e.apply(void 0,arguments),n=r)}},Je=function(){};Je.prototype.allowedEvents_={},Je.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Ue(this,e,t),this.addEventListener=n},Je.prototype.addEventListener=Je.prototype.on,Je.prototype.off=function(e,t){Ve(this,e,t)},Je.prototype.removeEventListener=Je.prototype.off,Je.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},ze(this,e,t),this.addEventListener=n},Je.prototype.any=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Ye(this,e,t),this.addEventListener=n},Je.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=Fe(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),We(this,e)},Je.prototype.dispatchEvent=Je.prototype.trigger,Je.prototype.queueTrigger=function(e){var t=this;Xe||(Xe=new Map);var n=e.type||e,r=Xe.get(this);r||(r=new Map,Xe.set(this,r));var i=r.get(n);r.delete(n),o.clearTimeout(i);var a=o.setTimeout((function(){0===r.size&&(r=null,Xe.delete(t)),t.trigger(e)}),0);r.set(n,a)};var Qe=function(e){return"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e},Ze=function(e){return e instanceof Je||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"==typeof e[t]}))},et=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},tt=function(e,t,n){if(!e||!e.nodeName&&!Ze(e))throw new Error("Invalid target for "+Qe(t)+"#"+n+"; must be a DOM node or evented object.")},nt=function(e,t,n){if(!et(e))throw new Error("Invalid event type for "+Qe(t)+"#"+n+"; must be a non-empty string or array.")},rt=function(e,t,n){if("function"!=typeof e)throw new Error("Invalid listener for "+Qe(t)+"#"+n+"; must be a function.")},it=function(e,t,n){var r,i,o,a=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return a?(r=e.eventBusEl_,t.length>=3&&t.shift(),i=t[0],o=t[1]):(r=t[0],i=t[1],o=t[2]),tt(r,e,n),nt(i,e,n),rt(o,e,n),{isTargetingSelf:a,target:r,type:i,listener:o=Ge(e,o)}},ot=function(e,t,n,r){tt(e,e,t),e.nodeName?Ke[t](e,n,r):e[t](n,r)},at={on:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=it(this,n,"on"),o=i.isTargetingSelf,a=i.target,s=i.type,l=i.listener;if(ot(a,"on",s,l),!o){var u=function(){return e.off(a,s,l)};u.guid=l.guid;var c=function(){return e.off("dispose",u)};c.guid=l.guid,ot(this,"on","dispose",u),ot(a,"on","dispose",c)}},one:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=it(this,n,"one"),o=i.isTargetingSelf,a=i.target,s=i.type,l=i.listener;if(o)ot(a,"one",s,l);else{var u=function t(){e.off(a,s,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];l.apply(null,r)};u.guid=l.guid,ot(a,"one",s,u)}},any:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=it(this,n,"any"),o=i.isTargetingSelf,a=i.target,s=i.type,l=i.listener;if(o)ot(a,"any",s,l);else{var u=function t(){e.off(a,s,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];l.apply(null,r)};u.guid=l.guid,ot(a,"any",s,u)}},off:function(e,t,n){if(!e||et(e))Ve(this.eventBusEl_,e,t);else{var r=e,i=t;tt(r,this,"off"),nt(i,this,"off"),rt(n,this,"off"),n=Ge(this,n),this.off("dispose",n),r.nodeName?(Ve(r,i,n),Ve(r,"dispose",n)):Ze(r)&&(r.off(i,n),r.off("dispose",n))}},trigger:function(e,t){tt(this.eventBusEl_,this,"trigger");var n=e&&"string"!=typeof e?e.type:e;if(!et(n)){var r="Invalid event type for "+Qe(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(!e)throw new Error(r);(this.log||v).error(r)}return We(this.eventBusEl_,e,t)}};function st(e,t){void 0===t&&(t={});var n=t.eventBusKey;if(n){if(!e[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');e.eventBusEl_=e[n]}else e.eventBusEl_=Z("span",{className:"vjs-event-bus"});return T(e,at),e.eventedCallbacks&&e.eventedCallbacks.forEach((function(e){e()})),e.on("dispose",(function(){e.off(),o.setTimeout((function(){e.eventBusEl_=null}),0)})),e}var lt={state:{},setState:function(e){var t,n=this;return"function"==typeof e&&(e=e()),b(e,(function(e,r){n.state[r]!==e&&((t=t||{})[r]={from:n.state[r],to:e}),n.state[r]=e})),t&&Ze(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function ut(e,t){return T(e,lt),e.state=T({},e.state,t),"function"==typeof e.handleStateChanged&&Ze(e)&&e.on("statechanged",e.handleStateChanged),e}var ct=function(e){return"string"!=typeof e?e:e.replace(/./,(function(e){return e.toLowerCase()}))},ft=function(e){return"string"!=typeof e?e:e.replace(/./,(function(e){return e.toUpperCase()}))};function ht(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&b(t,(function(t,n){w(t)?(w(e[n])||(e[n]={}),e[n]=ht(e[n],t)):e[n]=t}))})),e}var dt=function(){function e(){this.map_={}}var t=e.prototype;return t.has=function(e){return e in this.map_},t.delete=function(e){var t=this.has(e);return delete this.map_[e],t},t.set=function(e,t){return this.map_[e]=t,this},t.forEach=function(e,t){for(var n in this.map_)e.call(t,this.map_[n],n,this)},e}(),pt=o.Map?o.Map:dt,vt=function(){function e(){this.set_={}}var t=e.prototype;return t.has=function(e){return e in this.set_},t.delete=function(e){var t=this.has(e);return delete this.set_[e],t},t.add=function(e){return this.set_[e]=1,this},t.forEach=function(e,t){for(var n in this.set_)e.call(t,n,n,this)},e}(),yt=o.Set?o.Set:vt,mt=function(){function e(e,t,n){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=ht({},this.options_),t=this.options_=ht(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){var r=e&&e.id&&e.id()||"no_player";this.id_=r+"_component_"+Le()}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),!1!==t.evented&&(st(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),ut(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new yt,this.setIntervalIds_=new yt,this.rafIds_=new yt,this.namedRafs_=new pt,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(n),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var t=e.prototype;return t.dispose=function(){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Ne.has(this.el_)&&Ne.delete(this.el_),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e?(this.options_=ht(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,n){return Z(e,t,n)},t.localize=function(e,t,n){void 0===n&&(n=e);var r=this.player_.language&&this.player_.language(),i=this.player_.languages&&this.player_.languages(),o=i&&i[r],a=r&&r.split("-")[0],s=i&&i[a],l=n;return o&&o[e]?l=o[e]:s&&s[e]&&(l=s[e]),t&&(l=l.replace(/\{(\d+)\}/g,(function(e,n){var r=t[n-1],i=r;return void 0===r&&(i=e),i}))),l},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=t.reduce((function(e,t){return e.concat(t)}),[]);for(var r=this,i=0;i<t.length;i++)if(!(r=r.getChild(t[i]))||!r.getChild)return;return r},t.addChild=function(t,n,r){var i,o;if(void 0===n&&(n={}),void 0===r&&(r=this.children_.length),"string"==typeof t){o=ft(t);var a=n.componentClass||o;n.name=o;var s=e.getComponent(a);if(!s)throw new Error("Component "+a+" does not exist");if("function"!=typeof s)return null;i=new s(this.player_||this,n)}else i=t;if(i.parentComponent_&&i.parentComponent_.removeChild(i),this.children_.splice(r,0,i),i.parentComponent_=this,"function"==typeof i.id&&(this.childIndex_[i.id()]=i),(o=o||i.name&&ft(i.name()))&&(this.childNameIndex_[o]=i,this.childNameIndex_[ct(o)]=i),"function"==typeof i.el&&i.el()){var l=null;this.children_[r+1]&&(this.children_[r+1].el_?l=this.children_[r+1].el_:$(this.children_[r+1])&&(l=this.children_[r+1])),this.contentEl().insertBefore(i.el(),l)}return i},t.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[ft(e.name())]=null,this.childNameIndex_[ct(e.name())]=null;var r=e.el();r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,n=this.options_.children;if(n){var r,i=this.options_,o=e.getComponent("Tech");(r=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter((function(e){return!r.some((function(t){return"string"==typeof t?e===t:e===t.name}))}))).map((function(e){var r,i;return"string"==typeof e?i=n[r=e]||t.options_[r]||{}:(r=e.name,i=e),{name:r,opts:i}})).filter((function(t){var n=e.getComponent(t.opts.componentClass||ft(t.name));return n&&!o.isTech(n)})).forEach((function(e){var n=e.name,r=e.opts;if(void 0!==i[n]&&(r=i[n]),!1!==r){!0===r&&(r={}),r.playerOptions=t.options_.playerOptions;var o=t.addChild(n,r);o&&(t[n]=o)}}))}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)},t.$=function(e,t){return we(e,t||this.contentEl())},t.$$=function(e,t){return Ce(e,t||this.contentEl())},t.hasClass=function(e){return ne(this.el_,e)},t.addClass=function(e){re(this.el_,e)},t.removeClass=function(e){ie(this.el_,e)},t.toggleClass=function(e,t){oe(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return le(this.el_,e)},t.setAttribute=function(e,t){ue(this.el_,e,t)},t.removeAttribute=function(e){ce(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t==t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var r=this.el_.style[e],i=r.indexOf("px");return-1!==i?parseInt(r.slice(0,i),10):parseInt(this.el_["offset"+ft(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=C(this.el_,e),0===(t=parseFloat(t))||isNaN(t)){var n="offset"+ft(e);t=this.el_[n]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,n=null;this.on("touchstart",(function(r){1===r.touches.length&&(n={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},t=o.performance.now(),e=!0)})),this.on("touchmove",(function(t){if(t.touches.length>1)e=!1;else if(n){var r=t.touches[0].pageX-n.pageX,i=t.touches[0].pageY-n.pageY;Math.sqrt(r*r+i*i)>10&&(e=!1)}}));var r=function(){e=!1};this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",(function(r){n=null,!0===e&&o.performance.now()-t<200&&(r.preventDefault(),this.trigger("tap"))}))},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=Ge(this.player(),this.player().reportUserActivity);this.on("touchstart",(function(){t(),this.clearInterval(e),e=this.setInterval(t,250)}));var n=function(n){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.setTimeout=function(e,t){var n,r=this;return e=Ge(this,e),this.clearTimersOnDispose_(),n=o.setTimeout((function(){r.setTimeoutIds_.has(n)&&r.setTimeoutIds_.delete(n),e()}),t),this.setTimeoutIds_.add(n),n},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),o.clearTimeout(e)),e},t.setInterval=function(e,t){e=Ge(this,e),this.clearTimersOnDispose_();var n=o.setInterval(e,t);return this.setIntervalIds_.add(n),n},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),o.clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=Ge(this,e),t=o.requestAnimationFrame((function(){n.rafIds_.has(t)&&n.rafIds_.delete(t),e()})),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.requestNamedAnimationFrame=function(e,t){var n=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=Ge(this,t);var r=this.requestAnimationFrame((function(){t(),n.namedRafs_.has(e)&&n.namedRafs_.delete(e)}));return this.namedRafs_.set(e,r),e}},t.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),o.cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach((function(t){var n=t[0],r=t[1];e[n].forEach((function(t,n){return e[r](n)}))})),e.clearingTimersOnDispose_=!1})))},e.registerComponent=function(t,n){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var r,i=e.getComponent("Tech"),o=i&&i.isTech(n),a=e===n||e.prototype.isPrototypeOf(n.prototype);if(o||!a)throw r=o?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+r+".");t=ft(t),e.components_||(e.components_={});var s=e.getComponent("Player");if("Player"===t&&s&&s.players){var l=s.players,u=Object.keys(l);if(l&&u.length>0&&u.map((function(e){return l[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[ct(t)]=n,n},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();mt.prototype.supportsRaf_="function"==typeof o.requestAnimationFrame&&"function"==typeof o.cancelAnimationFrame,mt.registerComponent("Component",mt);var gt=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},_t=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t};function bt(e,t,n,r){return function(e,t,n){if("number"!=typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}(e,r,n.length-1),n[r][t]}function Tt(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:bt.bind(null,"start",0,e),end:bt.bind(null,"end",1,e)}}function Et(e,t){return Array.isArray(e)?Tt(e):void 0===e||void 0===t?Tt():Tt([[e,t]])}function wt(e,t){var n,r,i=0;if(!t)return 0;e&&e.length||(e=Et(0,0));for(var o=0;o<e.length;o++)n=e.start(o),(r=e.end(o))>t&&(r=t),i+=r-n;return i/t}function Ct(e){if(e instanceof Ct)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:E(e)&&("number"==typeof e.code&&(this.code=e.code),T(this,e)),this.message||(this.message=Ct.defaultMessages[this.code]||"")}Ct.prototype.code=0,Ct.prototype.message="",Ct.prototype.status=null,Ct.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Ct.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var kt=0;kt<Ct.errorTypes.length;kt++)Ct[Ct.errorTypes[kt]]=kt,Ct.prototype[Ct.errorTypes[kt]]=kt;var St=function(e,t){var n,r=null;try{n=JSON.parse(e,t)}catch(e){r=e}return[r,n]};function Ot(e){return null!=e&&"function"==typeof e.then}function Pt(e){Ot(e)&&e.then(null,(function(e){}))}var jt=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((function(t,n,r){return e[n]&&(t[n]=e[n]),t}),{cues:e.cues&&Array.prototype.map.call(e.cues,(function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}}))})},At=function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,(function(e){return e.track}));return Array.prototype.map.call(t,(function(e){var t=jt(e.track);return e.src&&(t.src=e.src),t})).concat(Array.prototype.filter.call(e.textTracks(),(function(e){return-1===n.indexOf(e)})).map(jt))},xt=function(e,t){return e.forEach((function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach((function(e){return n.addCue(e)}))})),t.textTracks()},Rt=r((function(e,t){function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return a[e];var n,o=String(e);return(n=r[o.toLowerCase()])?n:(n=i[o.toLowerCase()])||(1===o.length?o.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if("string"==typeof t){var o;if(o=r[t.toLowerCase()])return o===n;if(o=i[t.toLowerCase()])return o===n}else if("number"==typeof t)return t===n;return!1}};var r=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(o=97;o<123;o++)r[String.fromCharCode(o)]=o-32;for(var o=48;o<58;o++)r[o-48]=o;for(o=1;o<13;o++)r["f"+o]=o+111;for(o=0;o<10;o++)r["numpad "+o]=o+96;var a=t.names=t.title={};for(o in r)a[r[o]]=o;for(var s in i)r[s]=i[s]}));Rt.code,Rt.codes,Rt.aliases,Rt.names,Rt.title;var It=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).handleKeyDown_=function(e){return r.handleKeyDown(e)},r.close_=function(e){return r.close(e)},r.opened_=r.hasBeenOpened_=r.hasBeenFilled_=!1,r.closeable(!r.options_.uncloseable),r.content(r.options_.content),r.contentEl_=Z("div",{className:"vjs-modal-dialog-content"},{role:"document"}),r.descEl_=Z("p",{className:"vjs-modal-dialog-description vjs-control-text",id:r.el().getAttribute("aria-describedby")}),ee(r.descEl_,r.description()),r.el_.appendChild(r.descEl_),r.el_.appendChild(r.contentEl_),r}_t(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},n.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-modal-dialog vjs-hidden "+e.prototype.buildCSSClass.call(this)},n.label=function(){return this.localize(this.options_.label||"Modal Window")},n.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},n.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},n.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},n.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},n.closeable=function(e){if("boolean"==typeof e){var t=this.closeable_=!!e,n=this.getChild("closeButton");if(t&&!n){var r=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(n,"close",this.close_)}!t&&n&&(this.off(n,"close",this.close_),this.removeChild(n),n.dispose())}return this.closeable_},n.fill=function(){this.fillWith(this.content())},n.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,r=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),be(t,e),this.trigger("modalfill"),r?n.insertBefore(t,r):n.appendChild(t);var i=this.getChild("closeButton");i&&n.appendChild(i.el_)},n.empty=function(){this.trigger("beforemodalempty"),me(this.contentEl()),this.trigger("modalempty")},n.content=function(e){return void 0!==e&&(this.content_=e),this.content_},n.conditionalFocus_=function(){var e=l.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())},n.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},n.handleKeyDown=function(e){if(e.stopPropagation(),Rt.isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(Rt.isEventKey(e,"Tab")){for(var t,n=this.focusableEls_(),r=this.el_.querySelector(":focus"),i=0;i<n.length;i++)if(r===n[i]){t=i;break}l.activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(n[n.length-1].focus(),e.preventDefault()):e.shiftKey||t!==n.length-1||(n[0].focus(),e.preventDefault())}},n.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,(function(e){return(e instanceof o.HTMLAnchorElement||e instanceof o.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof o.HTMLInputElement||e instanceof o.HTMLSelectElement||e instanceof o.HTMLTextAreaElement||e instanceof o.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof o.HTMLIFrameElement||e instanceof o.HTMLObjectElement||e instanceof o.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")}))},t}(mt);It.prototype.options_={pauseOnOpen:!0,temporary:!0},mt.registerComponent("ModalDialog",It);var Lt=function(e){function t(t){var n;void 0===t&&(t=[]),(n=e.call(this)||this).tracks_=[],Object.defineProperty(gt(n),"length",{get:function(){return this.tracks_.length}});for(var r=0;r<t.length;r++)n.addTrack(t[r]);return n}_t(t,e);var n=t.prototype;return n.addTrack=function(e){var t=this,n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get:function(){return this.tracks_[n]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=function(){t.trigger({track:e,type:"labelchange",target:t})},Ze(e)&&e.addEventListener("labelchange",e.labelchange_)},n.removeTrack=function(e){for(var t,n=0,r=this.length;n<r;n++)if(this[n]===e){(t=this[n]).off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})},n.getTrackById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===e){t=i;break}}return t},t}(Je);for(var Mt in Lt.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},Lt.prototype.allowedEvents_)Lt.prototype["on"+Mt]=null;var Nt=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].enabled=!1)},Dt=function(e){function t(t){var n;void 0===t&&(t=[]);for(var r=t.length-1;r>=0;r--)if(t[r].enabled){Nt(t,t[r]);break}return(n=e.call(this,t)||this).changing_=!1,n}_t(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.enabled&&Nt(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){n.changing_||(n.changing_=!0,Nt(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(Lt),Bt=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].selected=!1)},Ft=function(e){function t(t){var n;void 0===t&&(t=[]);for(var r=t.length-1;r>=0;r--)if(t[r].selected){Bt(t,t[r]);break}return(n=e.call(this,t)||this).changing_=!1,Object.defineProperty(gt(n),"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),n}_t(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.selected&&Bt(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.selectedChange_=function(){n.changing_||(n.changing_=!0,Bt(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("selectedchange",t.selectedChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.selectedChange_&&(t.removeEventListener("selectedchange",t.selectedChange_),t.selectedChange_=null)},t}(Lt),Ht=function(e){function t(){return e.apply(this,arguments)||this}_t(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;e.prototype.addTrack.call(this,t),this.queueChange_||(this.queueChange_=function(){return n.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return n.trigger("selectedlanguagechange")}),t.addEventListener("modechange",this.queueChange_),-1===["metadata","chapters"].indexOf(t.kind)&&t.addEventListener("modechange",this.triggerSelectedlanguagechange_)},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&(this.queueChange_&&t.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&t.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},t}(Lt),Ut=function(){function e(e){void 0===e&&(e=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}var t=e.prototype;return t.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},t.getTrackElementByTrack_=function(e){for(var t,n=0,r=this.trackElements_.length;n<r;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},t.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}},e}(),Vt=function(){function e(t){e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var t=e.prototype;return t.setCues_=function(e){var t=this.length||0,n=0,r=e.length;this.cues_=e,this.length_=e.length;var i=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<r)for(n=t;n<r;n++)i.call(this,n)},t.getCueById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===e){t=i;break}}return t},e}(),Wt={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},zt={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Yt={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Xt={disabled:"disabled",hidden:"hidden",showing:"showing"},Kt=function(e){function t(t){var n;void 0===t&&(t={}),n=e.call(this)||this;var r={id:t.id||"vjs_track_"+Le(),kind:t.kind||"",language:t.language||""},i=t.label||"",o=function(e){Object.defineProperty(gt(n),e,{get:function(){return r[e]},set:function(){}})};for(var a in r)o(a);return Object.defineProperty(gt(n),"label",{get:function(){return i},set:function(e){e!==i&&(i=e,this.trigger("labelchange"))}}),n}return _t(t,e),t}(Je),qt=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=l.createElement("a");n.href=e;var r,i=""===n.host&&"file:"!==n.protocol;i&&((r=l.createElement("div")).innerHTML='<a href="'+e+'"></a>',n=r.firstChild,r.setAttribute("style","display:none; position:absolute;"),l.body.appendChild(r));for(var a={},s=0;s<t.length;s++)a[t[s]]=n[t[s]];return"http:"===a.protocol&&(a.host=a.host.replace(/:80$/,"")),"https:"===a.protocol&&(a.host=a.host.replace(/:443$/,"")),a.protocol||(a.protocol=o.location.protocol),i&&l.body.removeChild(r),a},Gt=function(e){if(!e.match(/^https?:\/\//)){var t=l.createElement("div");t.innerHTML='<a href="'+e+'">x</a>',e=t.firstChild.href}return e},$t=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""},Jt=function(e,t){void 0===t&&(t=o.location);var n=qt(e);return(":"===n.protocol?t.protocol:n.protocol)+n.host!==t.protocol+t.host},Qt=Object.freeze({__proto__:null,parseUrl:qt,getAbsoluteURL:Gt,getFileExtension:$t,isCrossOrigin:Jt}),Zt=function(e){if(!e)return!1;var t=en.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)},en=Object.prototype.toString,tn=on,nn=on;function rn(e,t,n){var r=e;return Zt(t)?(n=t,"string"==typeof e&&(r={uri:e})):r=m({},t,{uri:e}),r.callback=n,r}function on(e,t,n){return an(t=rn(e,t,n))}function an(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,r,i){t||(t=!0,e.callback(n,r,i))};function r(){var e=void 0;if(e=l.response?l.response:l.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(l),v)try{e=JSON.parse(e)}catch(e){}return e}function i(e){return clearTimeout(u),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,y)}function o(){if(!s){var t;clearTimeout(u),t=e.useXDR&&void 0===l.status?200:1223===l.status?204:l.status;var i=y,o=null;return 0!==t?(i={body:r(),statusCode:t,method:f,headers:{},url:c,rawRequest:l},l.getAllResponseHeaders&&(i.headers=function(e){var t={};return e?(e.trim().split("\n").forEach((function(e){var n=e.indexOf(":"),r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]})),t):t}(l.getAllResponseHeaders()))):o=new Error("Internal XMLHttpRequest Error"),n(o,i,i.body)}}var a,s,l=e.xhr||null;l||(l=e.cors||e.useXDR?new on.XDomainRequest:new on.XMLHttpRequest);var u,c=l.url=e.uri||e.url,f=l.method=e.method||"GET",h=e.body||e.data,d=l.headers=e.headers||{},p=!!e.sync,v=!1,y={body:void 0,headers:{},statusCode:0,method:f,url:c,rawRequest:l};if("json"in e&&!1!==e.json&&(v=!0,d.accept||d.Accept||(d.Accept="application/json"),"GET"!==f&&"HEAD"!==f&&(d["content-type"]||d["Content-Type"]||(d["Content-Type"]="application/json"),h=JSON.stringify(!0===e.json?h:e.json))),l.onreadystatechange=function(){4===l.readyState&&setTimeout(o,0)},l.onload=o,l.onerror=i,l.onprogress=function(){},l.onabort=function(){s=!0},l.ontimeout=i,l.open(f,c,!p,e.username,e.password),p||(l.withCredentials=!!e.withCredentials),!p&&e.timeout>0&&(u=setTimeout((function(){if(!s){s=!0,l.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",i(e)}}),e.timeout)),l.setRequestHeader)for(a in d)d.hasOwnProperty(a)&&l.setRequestHeader(a,d[a]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(l.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(l),l.send(h||null),l}on.XMLHttpRequest=o.XMLHttpRequest||function(){},on.XDomainRequest="withCredentials"in new on.XMLHttpRequest?on.XMLHttpRequest:o.XDomainRequest,function(e,t){for(var n=0;n<e.length;n++)t(e[n])}(["get","put","post","patch","head","delete"],(function(e){on["delete"===e?"del":e]=function(t,n,r){return(n=rn(t,n,r)).method=e.toUpperCase(),an(n)}})),tn.default=nn;var sn=function(e,t){var n=new o.WebVTT.Parser(o,o.vttjs,o.WebVTT.StringDecoder()),r=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){r.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),r.length>0&&(o.console&&o.console.groupCollapsed&&o.console.groupCollapsed("Text Track parsing errors for "+t.src),r.forEach((function(e){return v.error(e)})),o.console&&o.console.groupEnd&&o.console.groupEnd()),n.flush()},ln=function(e,t){var n={uri:e},r=Jt(e);r&&(n.cors=r);var i="use-credentials"===t.tech_.crossOrigin();i&&(n.withCredentials=i),tn(n,Ge(this,(function(e,n,r){if(e)return v.error(e,n);t.loaded_=!0,"function"!=typeof o.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],(function(e){if("vttjserror"!==e.type)return sn(r,t);v.error("vttjs failed to load, stopping trying to process "+t.src)})):sn(r,t)})))},un=function(e){function t(t){var n;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var r=ht(t,{kind:Yt[t.kind]||"subtitles",language:t.language||t.srclang||""}),i=Xt[r.mode]||"disabled",o=r.default;"metadata"!==r.kind&&"chapters"!==r.kind||(i="hidden"),(n=e.call(this,r)||this).tech_=r.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var a=new Vt(n.cues_),s=new Vt(n.activeCues_),l=!1,u=Ge(gt(n),(function(){this.tech_.isReady_&&!this.tech_.isDisposed()&&(this.activeCues=this.activeCues,l&&(this.trigger("cuechange"),l=!1))}));return n.tech_.one("dispose",(function(){n.tech_.off("timeupdate",u)})),"disabled"!==i&&n.tech_.on("timeupdate",u),Object.defineProperties(gt(n),{default:{get:function(){return o},set:function(){}},mode:{get:function(){return i},set:function(e){Xt[e]&&i!==e&&(i=e,this.preload_||"disabled"===i||0!==this.cues.length||ln(this.src,this),this.tech_.off("timeupdate",u),"disabled"!==i&&this.tech_.on("timeupdate",u),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?a:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return s;for(var e=this.tech_.currentTime(),t=[],n=0,r=this.cues.length;n<r;n++){var i=this.cues[n];(i.startTime<=e&&i.endTime>=e||i.startTime===i.endTime&&i.startTime<=e&&i.startTime+.5>=e)&&t.push(i)}if(l=!1,t.length!==this.activeCues_.length)l=!0;else for(var o=0;o<t.length;o++)-1===this.activeCues_.indexOf(t[o])&&(l=!0);return this.activeCues_=t,s.setCues_(this.activeCues_),s},set:function(){}}}),r.src?(n.src=r.src,n.preload_||(n.loaded_=!0),(n.preload_||"subtitles"!==r.kind&&"captions"!==r.kind)&&ln(n.src,gt(n))):n.loaded_=!0,n}_t(t,e);var n=t.prototype;return n.addCue=function(e){var t=e;if(o.vttjs&&!(e instanceof o.vttjs.VTTCue)){for(var n in t=new o.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}for(var r=this.tech_.textTracks(),i=0;i<r.length;i++)r[i]!==this&&r[i].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},n.removeCue=function(e){for(var t=this.cues_.length;t--;){var n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},t}(Kt);un.prototype.allowedEvents_={cuechange:"cuechange"};var cn=function(e){function t(t){var n;void 0===t&&(t={});var r=ht(t,{kind:zt[t.kind]||""});n=e.call(this,r)||this;var i=!1;return Object.defineProperty(gt(n),"enabled",{get:function(){return i},set:function(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("enabledchange"))}}),r.enabled&&(n.enabled=r.enabled),n.loaded_=!0,n}return _t(t,e),t}(Kt),fn=function(e){function t(t){var n;void 0===t&&(t={});var r=ht(t,{kind:Wt[t.kind]||""});n=e.call(this,r)||this;var i=!1;return Object.defineProperty(gt(n),"selected",{get:function(){return i},set:function(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("selectedchange"))}}),r.selected&&(n.selected=r.selected),n}return _t(t,e),t}(Kt),hn=function(e){function t(t){var n,r;void 0===t&&(t={}),n=e.call(this)||this;var i=new un(t);return n.kind=i.kind,n.src=i.src,n.srclang=i.language,n.label=i.label,n.default=i.default,Object.defineProperties(gt(n),{readyState:{get:function(){return r}},track:{get:function(){return i}}}),r=0,i.addEventListener("loadeddata",(function(){r=2,n.trigger({type:"load",target:gt(n)})})),n}return _t(t,e),t}(Je);hn.prototype.allowedEvents_={load:"load"},hn.NONE=0,hn.LOADING=1,hn.LOADED=2,hn.ERROR=3;var dn={audio:{ListClass:Dt,TrackClass:cn,capitalName:"Audio"},video:{ListClass:Ft,TrackClass:fn,capitalName:"Video"},text:{ListClass:Ht,TrackClass:un,capitalName:"Text"}};Object.keys(dn).forEach((function(e){dn[e].getterName=e+"Tracks",dn[e].privateName=e+"Tracks_"}));var pn={remoteText:{ListClass:Ht,TrackClass:un,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Ut,TrackClass:hn,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},vn=m({},dn,pn);pn.names=Object.keys(pn),dn.names=Object.keys(dn),vn.names=[].concat(pn.names).concat(dn.names);var yn=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function mn(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function gn(e){function t(e,t,n,r){return 3600*(0|e)+60*(0|t)+(0|n)+(0|r)/1e3}var n=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function _n(){this.values=yn(null)}function bn(e,t,n,r){var i=r?e.split(r):[e];for(var o in i)if("string"==typeof i[o]){var a=i[o].split(n);2===a.length&&t(a[0],a[1])}}function Tn(e,t,n){var r=e;function i(){var t=gn(e);if(null===t)throw new mn(mn.Errors.BadTimeStamp,"Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function o(){e=e.replace(/^\s+/,"")}if(o(),t.startTime=i(),o(),"--\x3e"!==e.substr(0,3))throw new mn(mn.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);e=e.substr(3),o(),t.endTime=i(),o(),function(e,t){var r=new _n;bn(e,(function(e,t){switch(e){case"region":for(var i=n.length-1;i>=0;i--)if(n[i].id===t){r.set(e,n[i].region);break}break;case"vertical":r.alt(e,t,["rl","lr"]);break;case"line":var o=t.split(","),a=o[0];r.integer(e,a),r.percent(e,a)&&r.set("snapToLines",!1),r.alt(e,a,["auto"]),2===o.length&&r.alt("lineAlign",o[1],["start","center","end"]);break;case"position":o=t.split(","),r.percent(e,o[0]),2===o.length&&r.alt("positionAlign",o[1],["start","center","end"]);break;case"size":r.percent(e,t);break;case"align":r.alt(e,t,["start","center","end","left","right"])}}),/:/,/\s/),t.region=r.get("region",null),t.vertical=r.get("vertical","");try{t.line=r.get("line","auto")}catch(e){}t.lineAlign=r.get("lineAlign","start"),t.snapToLines=r.get("snapToLines",!0),t.size=r.get("size",100);try{t.align=r.get("align","center")}catch(e){t.align=r.get("align","middle")}try{t.position=r.get("position","auto")}catch(e){t.position=r.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=r.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}mn.prototype=yn(Error.prototype),mn.prototype.constructor=mn,mn.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},_n.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var En=l.createElement&&l.createElement("textarea"),wn={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},Cn={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},kn={v:"title",lang:"lang"},Sn={rt:"ruby"};function On(e,t){function n(){if(!t)return null;var e,n=t.match(/^([^<]*)(<[^>]*>?)?/);return e=n[1]?n[1]:n[2],t=t.substr(e.length),e}function r(e,t){return!Sn[t.localName]||Sn[t.localName]===e.localName}function i(t,n){var r=wn[t];if(!r)return null;var i=e.document.createElement(r),o=kn[t];return o&&n&&(i[o]=n.trim()),i}for(var o,a,s=e.document.createElement("div"),l=s,u=[];null!==(o=n());)if("<"!==o[0])l.appendChild(e.document.createTextNode((a=o,En.innerHTML=a,a=En.textContent,En.textContent="",a)));else{if("/"===o[1]){u.length&&u[u.length-1]===o.substr(2).replace(">","")&&(u.pop(),l=l.parentNode);continue}var c,f=gn(o.substr(1,o.length-2));if(f){c=e.document.createProcessingInstruction("timestamp",f),l.appendChild(c);continue}var h=o.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!h)continue;if(!(c=i(h[1],h[3])))continue;if(!r(l,c))continue;if(h[2]){var d=h[2].split(".");d.forEach((function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;if(Cn.hasOwnProperty(n)){var r=t?"background-color":"color",i=Cn[n];c.style[r]=i}})),c.className=d.join(" ")}u.push(h[1]),l.appendChild(c),l=c}return s}var Pn=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function jn(e){for(var t=0;t<Pn.length;t++){var n=Pn[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function An(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function r(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function i(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var o=n.match(/^.*(\n|\r)/);return o?(e.length=0,o[0]):n}return"ruby"===t.tagName?i(e):t.childNodes?(r(e,t),i(e)):void 0}for(r(t,e);n=i(t);)for(var o=0;o<n.length;o++)if(jn(n.charCodeAt(o)))return"rtl";return"ltr"}function xn(){}function Rn(e,t,n){xn.call(this),this.cue=t,this.cueDiv=On(e,t.text);var r={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(r,this.cueDiv),this.div=e.document.createElement("div"),r={direction:An(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(r),this.div.appendChild(this.cueDiv);var i=0;switch(t.positionAlign){case"start":i=t.position;break;case"center":i=t.position-t.size/2;break;case"end":i=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(i,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(i,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function In(e){var t,n,r,i;if(e.div){n=e.div.offsetHeight,r=e.div.offsetWidth,i=e.div.offsetTop;var o=(o=e.div.childNodes)&&(o=o[0])&&o.getClientRects&&o.getClientRects();e=e.div.getBoundingClientRect(),t=o?Math.max(o[0]&&o[0].height||0,e.height/o.length):0}this.left=e.left,this.right=e.right,this.top=e.top||i,this.height=e.height||n,this.bottom=e.bottom||i+(e.height||n),this.width=e.width||r,this.lineHeight=void 0!==t?t:e.lineHeight}function Ln(e,t,n,r){var i=new In(t),o=t.cue,a=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,r=0,i=0;i<n.length&&n[i]!==t;i++)"showing"===n[i].mode&&r++;return-1*++r}(o),s=[];if(o.snapToLines){var l;switch(o.vertical){case"":s=["+y","-y"],l="height";break;case"rl":s=["+x","-x"],l="width";break;case"lr":s=["-x","+x"],l="width"}var u=i.lineHeight,c=u*Math.round(a),f=n[l]+u,h=s[0];Math.abs(c)>f&&(c=c<0?-1:1,c*=Math.ceil(f/u)*u),a<0&&(c+=""===o.vertical?n.height:n.width,s=s.reverse()),i.move(h,c)}else{var d=i.lineHeight/n.height*100;switch(o.lineAlign){case"center":a-=d/2;break;case"end":a-=d}switch(o.vertical){case"":t.applyStyles({top:t.formatStyle(a,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(a,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(a,"%")})}s=["+y","-x","+x","-y"],i=new In(t)}var p=function(e,t){for(var i,o=new In(e),a=1,s=0;s<t.length;s++){for(;e.overlapsOppositeAxis(n,t[s])||e.within(n)&&e.overlapsAny(r);)e.move(t[s]);if(e.within(n))return e;var l=e.intersectPercentage(n);a>l&&(i=new In(e),a=l),e=new In(o)}return i||o}(i,s);t.move(p.toCSSCompatValues(n))}function Mn(){}xn.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},xn.prototype.formatStyle=function(e,t){return 0===e?0:e+t},Rn.prototype=yn(xn.prototype),Rn.prototype.constructor=Rn,In.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},In.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},In.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},In.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},In.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},In.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},In.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},In.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,r=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||r,height:e.height||t,bottom:e.bottom||r+(e.height||t),width:e.width||n}},Mn.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},Mn.convertCueToDOMTree=function(e,t){return e&&t?On(e,t):null},Mn.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var r=e.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",n.appendChild(r),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var i=[],o=In.getSimpleBoxPosition(r),a={font:Math.round(.05*o.height*100)/100+"px sans-serif"};!function(){for(var n,s,l=0;l<t.length;l++)s=t[l],n=new Rn(e,s,a),r.appendChild(n.div),Ln(0,n,o,i),s.displayState=n.div,i.push(In.getSimpleBoxPosition(n))}()}else for(var s=0;s<t.length;s++)r.appendChild(t[s].displayState)},Mn.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},Mn.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof mn))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var r=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),r}function r(e){e.match(/X-TIMESTAMP-MAP/)?bn(e,(function(e,n){switch(e){case"X-TIMESTAMP-MAP":!function(e){var n=new _n;bn(e,(function(e,t){switch(e){case"MPEGT":n.integer(e+"S",t);break;case"LOCA":n.set(e+"L",gn(t))}}),/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})}(n)}}),/=/):bn(e,(function(e,n){switch(e){case"Region":!function(e){var n=new _n;if(bn(e,(function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var r=t.split(",");if(2!==r.length)break;var i=new _n;if(i.percent("x",r[0]),i.percent("y",r[1]),!i.has("x")||!i.has("y"))break;n.set(e+"X",i.get("x")),n.set(e+"Y",i.get("y"));break;case"scroll":n.alt(e,t,["up"])}}),/=/,/\s/),n.has("id")){var r=new(t.vttjs.VTTRegion||t.window.VTTRegion);r.width=n.get("width",100),r.lines=n.get("lines",3),r.regionAnchorX=n.get("regionanchorX",0),r.regionAnchorY=n.get("regionanchorY",100),r.viewportAnchorX=n.get("viewportanchorX",0),r.viewportAnchorY=n.get("viewportanchorY",100),r.scroll=n.get("scroll",""),t.onregion&&t.onregion(r),t.regionList.push({id:n.get("id"),region:r})}}(n)}}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var i;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var o=(i=n()).match(/^WEBVTT([ \t].*)?$/);if(!o||!o[0])throw new mn(mn.Errors.BadSignature);t.state="HEADER"}for(var a=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(a?a=!1:i=n(),t.state){case"HEADER":/:/.test(i)?r(i):i||(t.state="ID");continue;case"NOTE":i||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){t.state="NOTE";break}if(!i)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(e){t.cue.align="middle"}if(t.state="CUE",-1===i.indexOf("--\x3e")){t.cue.id=i;continue}case"CUE":try{Tn(i,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var s=-1!==i.indexOf("--\x3e");if(!i||s&&(a=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=i.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":i||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new mn(mn.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}};var Nn=Mn,Dn={"":1,lr:1,rl:1},Bn={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function Fn(e){return"string"==typeof e&&!!Bn[e.toLowerCase()]&&e.toLowerCase()}function Hn(e,t,n){this.hasBeenReset=!1;var r="",i=!1,o=e,a=t,s=n,l=null,u="",c=!0,f="auto",h="start",d="auto",p="auto",v=100,y="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return r},set:function(e){r=""+e}},pauseOnExit:{enumerable:!0,get:function(){return i},set:function(e){i=!!e}},startTime:{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");o=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");a=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return s},set:function(e){s=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return l},set:function(e){l=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return u},set:function(e){var t=function(e){return"string"==typeof e&&!!Dn[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");u=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return c},set:function(e){c=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return f},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");f=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return h},set:function(e){var t=Fn(e);t&&(h=t,this.hasBeenReset=!0)}},position:{enumerable:!0,get:function(){return d},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");d=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return p},set:function(e){var t=Fn(e);t&&(p=t,this.hasBeenReset=!0)}},size:{enumerable:!0,get:function(){return v},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");v=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(e){var t=Fn(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");y=t,this.hasBeenReset=!0}}}),this.displayState=void 0}Hn.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var Un=Hn,Vn={"":!0,up:!0};function Wn(e){return"number"==typeof e&&e>=0&&e<=100}var zn=function(){var e=100,t=3,n=0,r=100,i=0,o=100,a="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!Wn(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(e){if(!Wn(e))throw new Error("RegionAnchorX must be between 0 and 100.");r=e}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(e){if(!Wn(e))throw new Error("RegionAnchorY must be between 0 and 100.");n=e}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!Wn(e))throw new Error("ViewportAnchorY must be between 0 and 100.");o=e}},viewportAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!Wn(e))throw new Error("ViewportAnchorX must be between 0 and 100.");i=e}},scroll:{enumerable:!0,get:function(){return a},set:function(e){var t=function(e){return"string"==typeof e&&!!Vn[e.toLowerCase()]&&e.toLowerCase()}(e);!1===t||(a=t)}}})},Yn=r((function(e){var t=e.exports={WebVTT:Nn,VTTCue:Un,VTTRegion:zn};o.vttjs=t,o.WebVTT=t.WebVTT;var n=t.VTTCue,r=t.VTTRegion,i=o.VTTCue,a=o.VTTRegion;t.shim=function(){o.VTTCue=n,o.VTTRegion=r},t.restore=function(){o.VTTCue=i,o.VTTRegion=a},o.VTTCue||t.shim()}));Yn.WebVTT,Yn.VTTCue,Yn.VTTRegion;var Xn=function(e){function t(t,n){var r;return void 0===t&&(t={}),void 0===n&&(n=function(){}),t.reportTouchActivity=!1,(r=e.call(this,null,t,n)||this).onDurationChange_=function(e){return r.onDurationChange(e)},r.trackProgress_=function(e){return r.trackProgress(e)},r.trackCurrentTime_=function(e){return r.trackCurrentTime(e)},r.stopTrackingCurrentTime_=function(e){return r.stopTrackingCurrentTime(e)},r.disposeSourceHandler_=function(e){return r.disposeSourceHandler(e)},r.hasStarted_=!1,r.on("playing",(function(){this.hasStarted_=!0})),r.on("loadstart",(function(){this.hasStarted_=!1})),vn.names.forEach((function(e){var n=vn[e];t&&t[n.getterName]&&(r[n.privateName]=t[n.getterName])})),r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(e){!1===t["native"+e+"Tracks"]&&(r["featuresNative"+e+"Tracks"]=!1)})),!1===t.nativeCaptions||!1===t.nativeTextTracks?r.featuresNativeTextTracks=!1:!0!==t.nativeCaptions&&!0!==t.nativeTextTracks||(r.featuresNativeTextTracks=!0),r.featuresNativeTextTracks||r.emulateTextTracks(),r.preloadTextTracks=!1!==t.preloadTextTracks,r.autoRemoteTextTracks_=new vn.text.ListClass,r.initTrackListeners(),t.nativeControlsForTouch||r.emitTapEvents(),r.constructor&&(r.name_=r.constructor.name||"Unknown Tech"),r}_t(t,e);var n=t.prototype;return n.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",(function(){return t.setTimeout((function(){return t.triggerSourceset(e)}),1)})),this.trigger({src:e,type:"sourceset"})},n.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)},n.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)},n.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Ge(this,(function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()})),500)},n.onDurationChange=function(e){this.duration_=this.duration()},n.buffered=function(){return Et(0,0)},n.bufferedPercent=function(){return wt(this.buffered(),this.duration_)},n.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},n.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)},n.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)},n.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},n.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.dispose=function(){this.clearTracks(dn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},n.clearTracks=function(e){var t=this;(e=[].concat(e)).forEach((function(e){for(var n=t[e+"Tracks"]()||[],r=n.length;r--;){var i=n[r];"text"===e&&t.removeRemoteTextTrack(i),n.removeTrack(i)}}))},n.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;){var n=e[t];this.removeRemoteTextTrack(n)}},n.reset=function(){},n.crossOrigin=function(){},n.setCrossOrigin=function(){},n.error=function(e){return void 0!==e&&(this.error_=new Ct(e),this.trigger("error")),this.error_},n.played=function(){return this.hasStarted_?Et(0,0):Et()},n.play=function(){},n.setScrubbing=function(){},n.scrubbing=function(){},n.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.initTrackListeners=function(){var e=this;dn.names.forEach((function(t){var n=dn[t],r=function(){e.trigger(t+"trackchange")},i=e[n.getterName]();i.addEventListener("removetrack",r),i.addEventListener("addtrack",r),e.on("dispose",(function(){i.removeEventListener("removetrack",r),i.removeEventListener("addtrack",r)}))}))},n.addWebVttScript_=function(){var e=this;if(!o.WebVTT)if(l.body.contains(this.el())){if(!this.options_["vtt.js"]&&w(Yn)&&Object.keys(Yn).length>0)return void this.trigger("vttjsloaded");var t=l.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",(function(){t.onload=null,t.onerror=null})),o.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),r=function(e){return t.addTrack(e.track)},i=function(e){return t.removeTrack(e.track)};n.on("addtrack",r),n.on("removetrack",i),this.addWebVttScript_();var o=function(){return e.trigger("texttrackchange")},a=function(){o();for(var e=0;e<t.length;e++){var n=t[e];n.removeEventListener("cuechange",o),"showing"===n.mode&&n.addEventListener("cuechange",o)}};a(),t.addEventListener("change",a),t.addEventListener("addtrack",a),t.addEventListener("removetrack",a),this.on("dispose",(function(){n.off("addtrack",r),n.off("removetrack",i),t.removeEventListener("change",a),t.removeEventListener("addtrack",a),t.removeEventListener("removetrack",a);for(var e=0;e<t.length;e++)t[e].removeEventListener("cuechange",o)}))},n.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,n,r,i){void 0===i&&(i={});var o=e.textTracks();i.kind=t,n&&(i.label=n),r&&(i.language=r),i.tech=e;var a=new vn.text.TrackClass(i);return o.addTrack(a),a}(this,e,t,n)},n.createRemoteTextTrack=function(e){var t=ht(e,{tech:this});return new pn.remoteTextEl.TrackClass(t)},n.addRemoteTextTrack=function(e,t){var n=this;void 0===e&&(e={});var r=this.createRemoteTextTrack(e);return!0!==t&&!1!==t&&(v.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),!0!==t&&this.ready((function(){return n.autoRemoteTextTracks_.addTrack(r.track)})),r},n.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},n.getVideoPlaybackQuality=function(){return{}},n.requestPictureInPicture=function(){var e=this.options_.Promise||o.Promise;if(e)return e.reject()},n.disablePictureInPicture=function(){return!0},n.setDisablePictureInPicture=function(){},n.setPoster=function(){},n.playsinline=function(){},n.setPlaysinline=function(){},n.overrideNativeAudioTracks=function(){},n.overrideNativeVideoTracks=function(){},n.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=ft(e),t.techs_[e]=n,t.techs_[ct(e)]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return t.techs_&&t.techs_[e]?t.techs_[e]:(e=ft(e),o&&o.videojs&&o.videojs[e]?(v.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),o.videojs[e]):void 0)},t}(mt);vn.names.forEach((function(e){var t=vn[e];Xn.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),Xn.prototype.featuresVolumeControl=!0,Xn.prototype.featuresMuteControl=!0,Xn.prototype.featuresFullscreenResize=!1,Xn.prototype.featuresPlaybackRate=!1,Xn.prototype.featuresProgressEvents=!1,Xn.prototype.featuresSourceset=!1,Xn.prototype.featuresTimeupdateEvents=!1,Xn.prototype.featuresNativeTextTracks=!1,Xn.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var r=e.sourceHandlers;r||(r=e.sourceHandlers=[]),void 0===n&&(n=r.length),r.splice(n,0,t)},e.canPlayType=function(t){for(var n,r=e.sourceHandlers||[],i=0;i<r.length;i++)if(n=r[i].canPlayType(t))return n;return""},e.selectSourceHandler=function(t,n){for(var r=e.sourceHandlers||[],i=0;i<r.length;i++)if(r[i].canHandleSource(t,n))return r[i];return null},e.canPlaySource=function(t,n){var r=e.selectSourceHandler(t,n);return r?r.canHandleSource(t,n):""},["seekable","seeking","duration"].forEach((function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})}),e.prototype),e.prototype.setSource=function(t){var n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:v.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},mt.registerComponent("Tech",Xn),Xn.registerTech("Tech",Xn),Xn.defaultTechOrder_=[];var Kn={},qn={},Gn={};function $n(e,t,n){e.setTimeout((function(){return nr(t,Kn[t.type],n,e)}),1)}function Jn(e,t,n,r){void 0===r&&(r=null);var i="call"+ft(n),o=e.reduce(tr(i),r),a=o===Gn,s=a?null:t[n](o);return function(e,t,n,r){for(var i=e.length-1;i>=0;i--){var o=e[i];o[t]&&o[t](r,n)}}(e,n,s,a),s}var Qn={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1},Zn={setCurrentTime:1,setMuted:1,setVolume:1},er={play:1,pause:1};function tr(e){return function(t,n){return t===Gn?Gn:n[e]?n[e](t):t}}function nr(e,t,n,r,i,o){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===i&&(i=[]),void 0===o&&(o=!1);var a=t,s=a[0],l=a.slice(1);if("string"==typeof s)nr(e,Kn[s],n,r,i,o);else if(s){var u=function(e,t){var n=qn[e.id()],r=null;if(null==n)return r=t(e),qn[e.id()]=[[t,r]],r;for(var i=0;i<n.length;i++){var o=n[i],a=o[0],s=o[1];a===t&&(r=s)}return null===r&&(r=t(e),n.push([t,r])),r}(r,s);if(!u.setSource)return i.push(u),nr(e,l,n,r,i,o);u.setSource(T({},e),(function(t,a){if(t)return nr(e,l,n,r,i,o);i.push(u),nr(a,e.type===a.type?l:Kn[a.type],n,r,i,o)}))}else l.length?nr(e,l,n,r,i,o):o?n(e,i):nr(e,Kn["*"],n,r,i,!0)}var rr={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},ir=function(e){void 0===e&&(e="");var t=$t(e);return rr[t.toLowerCase()]||""},or=function e(t){if(Array.isArray(t)){var n=[];t.forEach((function(t){t=e(t),Array.isArray(t)?n=n.concat(t):E(t)&&n.push(t)})),t=n}else t="string"==typeof t&&t.trim()?[ar({src:t})]:E(t)&&"string"==typeof t.src&&t.src&&t.src.trim()?[ar(t)]:[];return t};function ar(e){if(!e.type){var t=ir(e.src);t&&(e.type=t)}return e}var sr=function(e){function t(t,n,r){var i,o=ht({createEl:!1},n);if(i=e.call(this,t,o,r)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)t.src(n.playerOptions.sources);else for(var a=0,s=n.playerOptions.techOrder;a<s.length;a++){var l=ft(s[a]),u=Xn.getTech(l);if(l||(u=mt.getComponent(l)),u&&u.isSupported()){t.loadTech_(l);break}}return i}return _t(t,e),t}(mt);mt.registerComponent("MediaLoader",sr);var lr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).handleMouseOver_=function(e){return r.handleMouseOver(e)},r.handleMouseOut_=function(e){return r.handleMouseOut(e)},r.handleClick_=function(e){return r.handleClick(e)},r.handleKeyDown_=function(e){return r.handleKeyDown(e)},r.emitTapEvents(),r.enable(),r}_t(t,e);var n=t.prototype;return n.createEl=function(t,n,r){void 0===t&&(t="div"),void 0===n&&(n={}),void 0===r&&(r={}),n=T({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},n),"button"===t&&v.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),r=T({role:"button"},r),this.tabIndex_=n.tabIndex;var i=e.prototype.createEl.call(this,t,n,r);return this.createControlTextEl(i),i},n.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},n.createControlTextEl=function(e){return this.controlTextEl_=Z("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},n.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,ee(this.controlTextEl_,n),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",n)},n.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)},n.handleLanguagechange=function(){this.controlText(this.controlText_)},n.handleClick=function(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},n.handleKeyDown=function(t){Rt.isEventKey(t,"Space")||Rt.isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(mt);mt.registerComponent("ClickableComponent",lr);var ur=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update(),r.update_=function(e){return r.update(e)},t.on("posterchange",r.update_),r}_t(t,e);var n=t.prototype;return n.dispose=function(){this.player().off("posterchange",this.update_),e.prototype.dispose.call(this)},n.createEl=function(){return Z("div",{className:"vjs-poster",tabIndex:-1})},n.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},n.setSrc=function(e){var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t},n.handleClick=function(e){if(this.player_.controls()){var t=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;!this.player_.tech(!0)||(B||M)&&t||this.player_.tech(!0).focus(),this.player_.paused()?Pt(this.player_.play()):this.player_.pause()}},t}(lr);mt.registerComponent("PosterImage",ur);var cr={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function fr(e,t){var n;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function hr(e,t,n){try{e.style[t]=n}catch(e){return}}var dr=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var a=function(e){return i.updateDisplay(e)};return t.on("loadstart",(function(e){return i.toggleDisplay(e)})),t.on("texttrackchange",a),t.on("loadedmetadata",(function(e){return i.preselectTrack(e)})),t.ready(Ge(gt(i),(function(){if(t.tech_&&t.tech_.featuresNativeTextTracks)this.hide();else{t.on("fullscreenchange",a),t.on("playerresize",a),o.addEventListener("orientationchange",a),t.on("dispose",(function(){return o.removeEventListener("orientationchange",a)}));for(var e=this.options_.playerOptions.tracks||[],n=0;n<e.length;n++)this.player_.addRemoteTextTrack(e[n],!0);this.preselectTrack()}}))),i}_t(t,e);var n=t.prototype;return n.preselectTrack=function(){for(var e,t,n,r={captions:1,subtitles:1},i=this.player_.textTracks(),o=this.player_.cache_.selectedLanguage,a=0;a<i.length;a++){var s=i[a];o&&o.enabled&&o.language&&o.language===s.language&&s.kind in r?s.kind===o.kind?n=s:n||(n=s):o&&!o.enabled?(n=null,e=null,t=null):s.default&&("descriptions"!==s.kind||e?s.kind in r&&!t&&(t=s):e=s)}n?n.mode="showing":t?t.mode="showing":e&&(e.mode="showing")},n.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},n.clearDisplay=function(){"function"==typeof o.WebVTT&&o.WebVTT.processCues(o,[],this.el_)},n.updateDisplay=function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){for(var n=[],r=0;r<e.length;++r){var i=e[r];"showing"===i.mode&&n.push(i)}this.updateForTrack(n)}else{for(var o=null,a=null,s=e.length;s--;){var l=e[s];"showing"===l.mode&&("descriptions"===l.kind?o=l:a=l)}a?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(a)):o&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(o))}},n.updateDisplayState=function(e){for(var t=this.player_.textTrackSettings.getValues(),n=e.activeCues,r=n.length;r--;){var i=n[r];if(i){var a=i.displayState;if(t.color&&(a.firstChild.style.color=t.color),t.textOpacity&&hr(a.firstChild,"color",fr(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(a.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&hr(a.firstChild,"backgroundColor",fr(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?hr(a,"backgroundColor",fr(t.windowColor,t.windowOpacity)):a.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?a.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===t.edgeStyle&&(a.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),t.fontPercent&&1!==t.fontPercent){var s=o.parseFloat(a.style.fontSize);a.style.fontSize=s*t.fontPercent+"px",a.style.height="auto",a.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=cr[t.fontFamily])}}},n.updateForTrack=function(e){if(Array.isArray(e)||(e=[e]),"function"==typeof o.WebVTT&&!e.every((function(e){return!e.activeCues}))){for(var t=[],n=0;n<e.length;++n)for(var r=e[n],i=0;i<r.activeCues.length;++i)t.push(r.activeCues[i]);o.WebVTT.processCues(o,t,this.el_);for(var a=0;a<e.length;++a){for(var s=e[a],l=0;l<s.activeCues.length;++l){var u=s.activeCues[l].displayState;re(u,"vjs-text-track-cue"),re(u,"vjs-text-track-cue-"+(s.language?s.language:a))}this.player_.textTrackSettings&&this.updateDisplayState(s)}}},t}(mt);mt.registerComponent("TextTrackDisplay",dr);var pr=function(e){function t(){return e.apply(this,arguments)||this}return _t(t,e),t.prototype.createEl=function(){var t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"Video Player"),r=Z("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[n])}),i=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return i.appendChild(r),i},t}(mt);mt.registerComponent("LoadingSpinner",pr);var vr=function(e){function t(){return e.apply(this,arguments)||this}_t(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={}),t=T({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},t),n=T({type:"button"},n);var r=mt.prototype.createEl.call(this,"button",t,n);return this.createControlTextEl(r),r},n.addChild=function(e,t){void 0===t&&(t={});var n=this.constructor.name;return v.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),mt.prototype.addChild.call(this,e,t)},n.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(t){Rt.isEventKey(t,"Space")||Rt.isEventKey(t,"Enter")?t.stopPropagation():e.prototype.handleKeyDown.call(this,t)},t}(lr);mt.registerComponent("Button",vr);var yr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).mouseused_=!1,r.on("mousedown",(function(e){return r.handleMouseDown(e)})),r}_t(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY){var n=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;return Pt(t),void(!this.player_.tech(!0)||(B||M)&&n||this.player_.tech(!0).focus())}var r=this.player_.getChild("controlBar"),i=r&&r.getChild("playToggle");if(i){var o=function(){return i.focus()};Ot(t)?t.then(o,(function(){})):this.setTimeout(o,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(t){this.mouseused_=!1,e.prototype.handleKeyDown.call(this,t)},n.handleMouseDown=function(e){this.mouseused_=!0},t}(vr);yr.prototype.controlText_="Play Video",mt.registerComponent("BigPlayButton",yr);var mr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).controlText(n&&n.controlText||r.localize("Close")),r}_t(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(t){Rt.isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(vr);mt.registerComponent("CloseButton",mr);var gr=function(e){function t(t,n){var r;return void 0===n&&(n={}),r=e.call(this,t,n)||this,n.replay=void 0===n.replay||n.replay,r.on(t,"play",(function(e){return r.handlePlay(e)})),r.on(t,"pause",(function(e){return r.handlePause(e)})),n.replay&&r.on(t,"ended",(function(e){return r.handleEnded(e)})),r}_t(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.player_.paused()?Pt(this.player_.play()):this.player_.pause()},n.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},n.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",(function(e){return t.handleSeeked(e)}))},t}(vr);gr.prototype.controlText_="Play",mt.registerComponent("PlayToggle",gr);var _r=function(e,t){e=e<0?0:e;var n=Math.floor(e%60),r=Math.floor(e/60%60),i=Math.floor(e/3600),o=Math.floor(t/60%60),a=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(i=r=n="-"),(i=i>0||a>0?i+":":"")+(r=((i||o>=10)&&r<10?"0"+r:r)+":")+(n=n<10?"0"+n:n)},br=_r;function Tr(e,t){return void 0===t&&(t=e),br(e,t)}var Er=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,["timeupdate","ended"],(function(e){return r.updateContent(e)})),r.updateTextNode_(),r}_t(t,e);var n=t.prototype;return n.createEl=function(){var t=this.buildCSSClass(),n=e.prototype.createEl.call(this,"div",{className:t+" vjs-time-control vjs-control",innerHTML:'<span class="vjs-control-text" role="presentation">'+this.localize(this.labelText_)+" </span>"});return this.contentEl_=Z("span",{className:t+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},n.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},n.updateTextNode_=function(e){var t=this;void 0===e&&(e=0),e=Tr(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",(function(){if(t.contentEl_){var e=t.textNode_;e&&t.contentEl_.firstChild!==e&&(e=null,v.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=l.createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_))}})))},n.updateContent=function(e){},t}(mt);Er.prototype.labelText_="Time",Er.prototype.controlText_="Time",mt.registerComponent("TimeDisplay",Er);var wr=function(e){function t(){return e.apply(this,arguments)||this}_t(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(e){var t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)},t}(Er);wr.prototype.labelText_="Current Time",wr.prototype.controlText_="Current Time",mt.registerComponent("CurrentTimeDisplay",wr);var Cr=function(e){function t(t,n){var r,i=function(e){return r.updateContent(e)};return(r=e.call(this,t,n)||this).on(t,"durationchange",i),r.on(t,"loadstart",i),r.on(t,"loadedmetadata",i),r}_t(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},t}(Er);Cr.prototype.labelText_="Duration",Cr.prototype.controlText_="Duration",mt.registerComponent("DurationDisplay",Cr);var kr=function(e){function t(){return e.apply(this,arguments)||this}return _t(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"},{"aria-hidden":!0})},t}(mt);mt.registerComponent("TimeDivider",kr);var Sr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"durationchange",(function(e){return r.updateContent(e)})),r}_t(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var t=e.prototype.createEl.call(this);return t.insertBefore(Z("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},n.updateContent=function(e){var t;"number"==typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},t}(Er);Sr.prototype.labelText_="Remaining Time",Sr.prototype.controlText_="Remaining Time",mt.registerComponent("RemainingTimeDisplay",Sr);var Or=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).updateShowing(),r.on(r.player(),"durationchange",(function(e){return r.updateShowing(e)})),r}_t(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=Z("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+" </span>"+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},n.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},n.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(mt);mt.registerComponent("LiveDisplay",Or);var Pr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).updateLiveEdgeStatus(),r.player_.liveTracker&&(r.updateLiveEdgeStatusHandler_=function(e){return r.updateLiveEdgeStatus(e)},r.on(r.player_.liveTracker,"liveedgechange",r.updateLiveEdgeStatusHandler_)),r}_t(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=Z("span",{className:"vjs-seek-to-live-text",innerHTML:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},n.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,e.prototype.dispose.call(this)},t}(vr);Pr.prototype.controlText_="Seek to live, currently playing live",mt.registerComponent("SeekToLive",Pr);var jr=function(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))},Ar=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).handleMouseDown_=function(e){return r.handleMouseDown(e)},r.handleMouseUp_=function(e){return r.handleMouseUp(e)},r.handleKeyDown_=function(e){return r.handleKeyDown(e)},r.handleClick_=function(e){return r.handleClick(e)},r.handleMouseMove_=function(e){return r.handleMouseMove(e)},r.update_=function(e){return r.update(e)},r.bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.enable(),r}_t(t,e);var n=t.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(t,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),n.className=n.className+" vjs-slider",n=T({tabIndex:0},n),r=T({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),e.prototype.createEl.call(this,t,n,r)},n.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||N||e.preventDefault(),fe(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e)},n.handleMouseMove=function(e){},n.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;he(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.update()},n.update=function(){var e=this;if(this.el_&&this.bar){var t=this.getProgress();return t===this.progress_||(this.progress_=t,this.requestNamedAnimationFrame("Slider#update",(function(){var n=e.vertical()?"height":"width";e.bar.el().style[n]=(100*t).toFixed(2)+"%"}))),t}},n.getProgress=function(){return Number(jr(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(e){var t=ve(this.el_,e);return this.vertical()?t.y:t.x},n.handleKeyDown=function(t){Rt.isEventKey(t,"Left")||Rt.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):Rt.isEventKey(t,"Right")||Rt.isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){e.stopPropagation(),e.preventDefault()},n.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(mt);mt.registerComponent("Slider",Ar);var xr=function(e,t){return jr(e/t*100,0,100).toFixed(2)+"%"},Rr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).partEls_=[],r.on(t,"progress",(function(e){return r.update(e)})),r}_t(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),n=Z("span",{className:"vjs-control-text"}),r=Z("span",{textContent:this.localize("Loaded")}),i=l.createTextNode(": ");return this.percentageEl_=Z("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(n),n.appendChild(r),n.appendChild(i),n.appendChild(this.percentageEl_),t},n.dispose=function(){this.partEls_=null,this.percentageEl_=null,e.prototype.dispose.call(this)},n.update=function(e){var t=this;this.requestNamedAnimationFrame("LoadProgressBar#update",(function(){var e=t.player_.liveTracker,n=t.player_.buffered(),r=e&&e.isLive()?e.seekableEnd():t.player_.duration(),i=t.player_.bufferedEnd(),o=t.partEls_,a=xr(i,r);t.percent_!==a&&(t.el_.style.width=a,ee(t.percentageEl_,a),t.percent_=a);for(var s=0;s<n.length;s++){var l=n.start(s),u=n.end(s),c=o[s];c||(c=t.el_.appendChild(Z()),o[s]=c),c.dataset.start===l&&c.dataset.end===u||(c.dataset.start=l,c.dataset.end=u,c.style.left=xr(l,i),c.style.width=xr(u-l,i))}for(var f=o.length;f>n.length;f--)t.el_.removeChild(o[f-1]);o.length=n.length}))},t}(mt);mt.registerComponent("LoadProgressBar",Rr);var Ir=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=$e(Ge(gt(r),r.update),qe),r}_t(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n){var r=pe(this.el_),i=de(this.player_.el()),o=e.width*t;if(i&&r){var a=e.left-i.left+o,s=e.width-o+(i.right-e.right),l=r.width/2;a<l?l+=l-a:s<l&&(l=s),l<0?l=0:l>r.width&&(l=r.width),l=Math.round(l),this.el_.style.right="-"+l+"px",this.write(n)}},n.write=function(e){ee(this.el_,e)},n.updateTime=function(e,t,n,r){var i=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",(function(){var o,a=i.player_.duration();if(i.player_.liveTracker&&i.player_.liveTracker.isLive()){var s=i.player_.liveTracker.liveWindow(),l=s-t*s;o=(l<1?"":"-")+Tr(l,s)}else o=Tr(n,a);i.update(e,t,o),r&&r()}))},t}(mt);mt.registerComponent("TimeTooltip",Ir);var Lr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=$e(Ge(gt(r),r.update),qe),r}_t(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(e,t){var n=this.getChild("timeTooltip");if(n){var r=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(e,t,r)}},t}(mt);Lr.prototype.options_={children:[]},z||x||Lr.prototype.options_.children.push("timeTooltip"),mt.registerComponent("PlayProgressBar",Lr);var Mr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=$e(Ge(gt(r),r.update),qe),r}_t(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t){var n=this,r=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,r,(function(){n.el_.style.left=e.width*t+"px"}))},t}(mt);Mr.prototype.options_={children:["timeTooltip"]},mt.registerComponent("MouseTimeDisplay",Mr);var Nr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).setEventHandlers_(),r}_t(t,e);var n=t.prototype;return n.setEventHandlers_=function(){var e=this;this.update_=Ge(this,this.update),this.update=$e(this.update_,qe),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(t){return e.enableInterval_(t)},this.disableIntervalHandler_=function(t){return e.disableInterval_(t)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in l&&"visibilityState"in l&&this.on(l,"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(e){"hidden"===l.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,qe))},n.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(t){var n=this;if("hidden"!==l.visibilityState){var r=e.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",(function(){var e=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),t=n.player_.liveTracker,i=n.player_.duration();t&&t.isLive()&&(i=n.player_.liveTracker.liveCurrentTime()),n.percent_!==r&&(n.el_.setAttribute("aria-valuenow",(100*r).toFixed(2)),n.percent_=r),n.currentTime_===e&&n.duration_===i||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[Tr(e,i),Tr(i,i)],"{1} of {2}")),n.currentTime_=e,n.duration_=i),n.bar&&n.bar.update(de(n.el()),n.getProgress())})),r}},n.userSeek_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=function(){var e,t=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(e=(t-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},n.handleMouseDown=function(t){Te(t)&&(t.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},n.handleMouseMove=function(e){if(Te(e)){var t,n=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(n>=.99)return void r.seekToLiveEdge();var i=r.seekableStart(),o=r.liveCurrentTime();if((t=i+n*r.liveWindow())>=o&&(t=o),t<=i&&(t=i+.1),t===1/0)return}else(t=n*this.player_.duration())===this.player_.duration()&&(t-=.1);this.userSeek_(t)}},n.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},n.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},n.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Pt(this.player_.play()):this.update_()},n.stepForward=function(){this.userSeek_(this.player_.currentTime()+5)},n.stepBack=function(){this.userSeek_(this.player_.currentTime()-5)},n.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(t){var n=this.player_.liveTracker;if(Rt.isEventKey(t,"Space")||Rt.isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(Rt.isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.userSeek_(0);else if(Rt.isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(Rt(t))){t.preventDefault(),t.stopPropagation();var r=10*(Rt.codes[Rt(t)]-Rt.codes[0])/100;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*r):this.userSeek_(this.player_.duration()*r)}else Rt.isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):Rt.isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):e.prototype.handleKeyDown.call(this,t)},n.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in l&&"visibilityState"in l&&this.off(l,"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(Ar);Nr.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},z||x||Nr.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),mt.registerComponent("SeekBar",Nr);var Dr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).handleMouseMove=$e(Ge(gt(r),r.handleMouseMove),qe),r.throttledHandleMouseSeek=$e(Ge(gt(r),r.handleMouseSeek),qe),r.handleMouseUpHandler_=function(e){return r.handleMouseUp(e)},r.handleMouseDownHandler_=function(e){return r.handleMouseDown(e)},r.enable(),r}_t(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("playProgressBar"),r=t.getChild("mouseTimeDisplay");if(n||r){var i=t.el(),o=pe(i),a=ve(i,e).x;a=jr(a,0,1),r&&r.update(o,a),n&&n.update(o,t.getProgress())}}},n.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},n.enabled=function(){return this.enabled_},n.disable=function(){if(this.children().forEach((function(e){return e.disable&&e.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&Pt(this.player_.play())}},n.enable=function(){this.children().forEach((function(e){return e.enable&&e.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.removeListenersAddedOnMousedownAndTouchstart=function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()},t}(mt);Dr.prototype.options_={children:["seekBar"]},mt.registerComponent("ProgressControl",Dr);var Br=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,["enterpictureinpicture","leavepictureinpicture"],(function(e){return r.handlePictureInPictureChange(e)})),r.on(t,["disablepictureinpicturechanged","loadedmetadata"],(function(e){return r.handlePictureInPictureEnabledChange(e)})),r.disable(),r}_t(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){l.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},n.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},n.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}(vr);Br.prototype.controlText_="Picture-in-Picture",mt.registerComponent("PictureInPictureToggle",Br);var Fr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"fullscreenchange",(function(e){return r.handleFullscreenChange(e)})),!1===l[t.fsApi_.fullscreenEnabled]&&r.disable(),r}_t(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(vr);Fr.prototype.controlText_="Fullscreen",mt.registerComponent("FullscreenToggle",Fr);var Hr=function(e){function t(){return e.apply(this,arguments)||this}return _t(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(mt);mt.registerComponent("VolumeLevel",Hr);var Ur=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=$e(Ge(gt(r),r.update),qe),r}_t(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n,r){if(!n){var i=de(this.el_),o=de(this.player_.el()),a=e.width*t;if(!o||!i)return;var s=e.left-o.left+a,l=e.width-a+(o.right-e.right),u=i.width/2;s<u?u+=u-s:l<u&&(u=l),u<0?u=0:u>i.width&&(u=i.width),this.el_.style.right="-"+u+"px"}this.write(r+"%")},n.write=function(e){ee(this.el_,e)},n.updateVolume=function(e,t,n,r,i){var o=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",(function(){o.update(e,t,n,r.toFixed(0)),i&&i()}))},t}(mt);mt.registerComponent("VolumeLevelTooltip",Ur);var Vr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=$e(Ge(gt(r),r.update),qe),r}_t(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t,n){var r=this,i=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,n,i,(function(){n?r.el_.style.bottom=e.height*t+"px":r.el_.style.left=e.width*t+"px"}))},t}(mt);Vr.prototype.options_={children:["volumeLevelTooltip"]},mt.registerComponent("MouseVolumeLevelDisplay",Vr);var Wr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on("slideractive",(function(e){return r.updateLastVolume_(e)})),r.on(t,"volumechange",(function(e){return r.updateARIAAttributes(e)})),t.ready((function(){return r.updateARIAAttributes()})),r}_t(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(t){Te(t)&&e.prototype.handleMouseDown.call(this,t)},n.handleMouseMove=function(e){var t=this.getChild("mouseVolumeLevelDisplay");if(t){var n=this.el(),r=de(n),i=this.vertical(),o=ve(n,e);o=i?o.y:o.x,o=jr(o,0,1),t.update(r,o,i)}Te(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",(function(){0===e.player_.volume()&&e.player_.lastVolume_(t)}))},t}(Ar);Wr.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},z||x||Wr.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),Wr.prototype.playerEvent="volumechange",mt.registerComponent("VolumeBar",Wr);var zr=function(e){function t(t,n){var r;return void 0===n&&(n={}),n.vertical=n.vertical||!1,(void 0===n.volumeBar||w(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),r=e.call(this,t,n)||this,function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))}(gt(r),t),r.throttledHandleMouseMove=$e(Ge(gt(r),r.handleMouseMove),qe),r.handleMouseUpHandler_=function(e){return r.handleMouseUp(e)},r.on("mousedown",(function(e){return r.handleMouseDown(e)})),r.on("touchstart",(function(e){return r.handleMouseDown(e)})),r.on("mousemove",(function(e){return r.handleMouseMove(e)})),r.on(r.volumeBar,["focus","slideractive"],(function(){r.volumeBar.addClass("vjs-slider-active"),r.addClass("vjs-slider-active"),r.trigger("slideractive")})),r.on(r.volumeBar,["blur","sliderinactive"],(function(){r.volumeBar.removeClass("vjs-slider-active"),r.removeClass("vjs-slider-active"),r.trigger("sliderinactive")})),r}_t(t,e);var n=t.prototype;return n.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},n.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(mt);zr.prototype.options_={children:["volumeBar"]},mt.registerComponent("VolumeControl",zr);var Yr=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))}(gt(r),t),r.on(t,["loadstart","volumechange"],(function(e){return r.update(e)})),r}_t(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var r=n<.1?.1:n;this.player_.volume(r),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(e){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var e=this.player_.volume(),t=3;z&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)ie(this.el_,"vjs-vol-"+n);re(this.el_,"vjs-vol-"+t)},n.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},t}(vr);Yr.prototype.controlText_="Mute",mt.registerComponent("MuteToggle",Yr);var Xr=function(e){function t(t,n){var r;return void 0===n&&(n={}),void 0!==n.inline?n.inline=n.inline:n.inline=!0,(void 0===n.volumeControl||w(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),(r=e.call(this,t,n)||this).handleKeyPressHandler_=function(e){return r.handleKeyPress(e)},r.on(t,["loadstart"],(function(e){return r.volumePanelState_(e)})),r.on(r.muteToggle,"keyup",(function(e){return r.handleKeyPress(e)})),r.on(r.volumeControl,"keyup",(function(e){return r.handleVolumeControlKeyUp(e)})),r.on("keydown",(function(e){return r.handleKeyPress(e)})),r.on("mouseover",(function(e){return r.handleMouseOver(e)})),r.on("mouseout",(function(e){return r.handleMouseOut(e)})),r.on(r.volumeControl,["slideractive"],r.sliderActive_),r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_),r}_t(t,e);var n=t.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},n.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},n.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(e){Rt.isEventKey(e,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(e){this.addClass("vjs-hover"),Ue(l,"keyup",this.handleKeyPressHandler_)},n.handleMouseOut=function(e){this.removeClass("vjs-hover"),Ve(l,"keyup",this.handleKeyPressHandler_)},n.handleKeyPress=function(e){Rt.isEventKey(e,"Esc")&&this.handleMouseOut()},t}(mt);Xr.prototype.options_={children:["muteToggle","volumeControl"]},mt.registerComponent("VolumePanel",Xr);var Kr=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,n&&(r.menuButton_=n.menuButton),r.focusedChild_=-1,r.on("keydown",(function(e){return r.handleKeyDown(e)})),r.boundHandleBlur_=function(e){return r.handleBlur(e)},r.boundHandleTapClick_=function(e){return r.handleTapClick(e)},r}_t(t,e);var n=t.prototype;return n.addEventListenerForItem=function(e){e instanceof mt&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(e){e instanceof mt&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(t){"string"==typeof t&&(t=this.getChild(t)),this.removeEventListenerForItem(t),e.prototype.removeChild.call(this,t)},n.addItem=function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)},n.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=Z(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),Ue(n,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),n},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},n.handleBlur=function(e){var t=e.relatedTarget||l.activeElement;if(!this.children().some((function(e){return e.el()===t}))){var n=this.menuButton_;n&&n.buttonPressed_&&t!==n.el().firstChild&&n.unpressButton()}},n.handleTapClick=function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(!Array.isArray(t))return;var n=t.filter((function(t){return t.el()===e.target}))[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},n.handleKeyDown=function(e){Rt.isEventKey(e,"Left")||Rt.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(Rt.isEventKey(e,"Right")||Rt.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},n.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},n.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},n.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(mt);mt.registerComponent("Menu",Kr);var qr=function(e){function t(t,n){var r;void 0===n&&(n={}),(r=e.call(this,t,n)||this).menuButton_=new vr(t,n),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var i=vr.prototype.buildCSSClass();r.menuButton_.el_.className=r.buildCSSClass()+" "+i,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0;var o=function(e){return r.handleClick(e)};return r.handleMenuKeyUp_=function(e){return r.handleMenuKeyUp(e)},r.on(r.menuButton_,"tap",o),r.on(r.menuButton_,"click",o),r.on(r.menuButton_,"keydown",(function(e){return r.handleKeyDown(e)})),r.on(r.menuButton_,"mouseenter",(function(){r.addClass("vjs-hover"),r.menu.show(),Ue(l,"keyup",r.handleMenuKeyUp_)})),r.on("mouseleave",(function(e){return r.handleMouseLeave(e)})),r.on("keydown",(function(e){return r.handleSubmenuKeyDown(e)})),r}_t(t,e);var n=t.prototype;return n.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},n.createMenu=function(){var e=new Kr(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=Z("li",{className:"vjs-menu-title",innerHTML:ft(this.options_.title),tabIndex:-1}),n=new mt(this.player_,{el:t});e.addItem(n)}if(this.items=this.createItems(),this.items)for(var r=0;r<this.items.length;r++)e.addItem(this.items[r]);return e},n.createItems=function(){},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},n.buildWrapperCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+vr.prototype.buildCSSClass()+" "+e.prototype.buildCSSClass.call(this)},n.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},n.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)},n.dispose=function(){this.handleMouseLeave(),e.prototype.dispose.call(this)},n.handleClick=function(e){this.buttonPressed_?this.unpressButton():this.pressButton()},n.handleMouseLeave=function(e){this.removeClass("vjs-hover"),Ve(l,"keyup",this.handleMenuKeyUp_)},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleKeyDown=function(e){Rt.isEventKey(e,"Esc")||Rt.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),Rt.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(Rt.isEventKey(e,"Up")||Rt.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))},n.handleMenuKeyUp=function(e){(Rt.isEventKey(e,"Esc")||Rt.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},n.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},n.handleSubmenuKeyDown=function(e){(Rt.isEventKey(e,"Esc")||Rt.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),Rt.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))},n.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),z&&J())return;this.menu.focus()}},n.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},n.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},n.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(mt);mt.registerComponent("MenuButton",qr);var Gr=function(e){function t(t,n){var r,i=n.tracks;if((r=e.call(this,t,n)||this).items.length<=1&&r.hide(),!i)return gt(r);var o=Ge(gt(r),r.update);return i.addEventListener("removetrack",o),i.addEventListener("addtrack",o),i.addEventListener("labelchange",o),r.player_.on("ready",o),r.player_.on("dispose",(function(){i.removeEventListener("removetrack",o),i.removeEventListener("addtrack",o),i.removeEventListener("labelchange",o)})),r}return _t(t,e),t}(qr);mt.registerComponent("TrackButton",Gr);var $r=["Tab","Esc","Up","Down","Right","Left"],Jr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).selectable=n.selectable,r.isSelected_=n.selected||!1,r.multiSelectable=n.multiSelectable,r.selected(r.isSelected_),r.selectable?r.multiSelectable?r.el_.setAttribute("role","menuitemcheckbox"):r.el_.setAttribute("role","menuitemradio"):r.el_.setAttribute("role","menuitem"),r}_t(t,e);var n=t.prototype;return n.createEl=function(t,n,r){return this.nonIconControl=!0,e.prototype.createEl.call(this,"li",T({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},n),r)},n.handleKeyDown=function(t){$r.some((function(e){return Rt.isEventKey(t,e)}))||e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){this.selected(!0)},n.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},t}(lr);mt.registerComponent("MenuItem",Jr);var Qr=function(e){function t(t,n){var r,i=n.track,a=t.textTracks();n.label=i.label||i.language||"Unknown",n.selected="showing"===i.mode,(r=e.call(this,t,n)||this).track=i,r.kinds=(n.kinds||[n.kind||r.track.kind]).filter(Boolean);var s,u=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleTracksChange.apply(gt(r),t)},c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleSelectedLanguageChange.apply(gt(r),t)};return t.on(["loadstart","texttrackchange"],u),a.addEventListener("change",u),a.addEventListener("selectedlanguagechange",c),r.on("dispose",(function(){t.off(["loadstart","texttrackchange"],u),a.removeEventListener("change",u),a.removeEventListener("selectedlanguagechange",c)})),void 0===a.onchange&&r.on(["tap","click"],(function(){if("object"!=typeof o.Event)try{s=new o.Event("change")}catch(e){}s||(s=l.createEvent("Event")).initEvent("change",!0,!0),a.dispatchEvent(s)})),r.handleTracksChange(),r}_t(t,e);var n=t.prototype;return n.handleClick=function(t){var n=this.track,r=this.player_.textTracks();if(e.prototype.handleClick.call(this,t),r)for(var i=0;i<r.length;i++){var o=r[i];-1!==this.kinds.indexOf(o.kind)&&(o===n?"showing"!==o.mode&&(o.mode="showing"):"disabled"!==o.mode&&(o.mode="disabled"))}},n.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},n.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},n.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(Jr);mt.registerComponent("TextTrackMenuItem",Qr);var Zr=function(e){function t(t,n){return n.track={player:t,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,e.call(this,t,n)||this}_t(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,r=0,i=t.length;r<i;r++){var o=t[r];if(this.options_.kinds.indexOf(o.kind)>-1&&"showing"===o.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,r=0,i=t.length;r<i;r++){var o=t[r];if(["captions","descriptions","subtitles"].indexOf(o.kind)>-1&&"showing"===o.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(Qr);mt.registerComponent("OffTextTrackMenuItem",Zr);var ei=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.textTracks(),e.call(this,t,n)||this}return _t(t,e),t.prototype.createItems=function(e,t){var n;void 0===e&&(e=[]),void 0===t&&(t=Qr),this.label_&&(n=this.label_+" off"),e.push(new Zr(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var i=0;i<r.length;i++){var o=r[i];if(this.kinds_.indexOf(o.kind)>-1){var a=new t(this.player_,{track:o,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});a.addClass("vjs-"+o.kind+"-menu-item"),e.push(a)}}return e},t}(Gr);mt.registerComponent("TextTrackButton",ei);var ti=function(e){function t(t,n){var r,i=n.track,o=n.cue,a=t.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=o.text,n.selected=o.startTime<=a&&a<o.endTime,(r=e.call(this,t,n)||this).track=i,r.cue=o,i.addEventListener("cuechange",Ge(gt(r),r.update)),r}_t(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},n.update=function(e){var t=this.cue,n=this.player_.currentTime();this.selected(t.startTime<=n&&n<t.endTime)},t}(Jr);mt.registerComponent("ChaptersTrackMenuItem",ti);var ni=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}_t(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},n.update=function(t){this.track_&&(!t||"addtrack"!==t.type&&"removetrack"!==t.type)||this.setTrack(this.findChaptersTrack()),e.prototype.update.call(this)},n.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_)}}},n.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(ft(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},n.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,r=t.length;n<r;n++){var i=t[n],o=new ti(this.player_,{track:this.track_,cue:i});e.push(o)}return e},t}(ei);ni.prototype.kind_="chapters",ni.prototype.controlText_="Chapters",mt.registerComponent("ChaptersButton",ni);var ri=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=t.textTracks(),a=Ge(gt(i),i.handleTracksChange);return o.addEventListener("change",a),i.on("dispose",(function(){o.removeEventListener("change",a)})),i}_t(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!1,r=0,i=t.length;r<i;r++){var o=t[r];if(o.kind!==this.kind_&&"showing"===o.mode){n=!0;break}}n?this.disable():this.enable()},n.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(ei);ri.prototype.kind_="descriptions",ri.prototype.controlText_="Descriptions",mt.registerComponent("DescriptionsButton",ri);var ii=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}_t(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(ei);ii.prototype.kind_="subtitles",ii.prototype.controlText_="Subtitles",mt.registerComponent("SubtitlesButton",ii);var oi=function(e){function t(t,n){var r;return n.track={player:t,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",(r=e.call(this,t,n)||this).addClass("vjs-texttrack-settings"),r.controlText(", opens "+n.kind+" settings dialog"),r}return _t(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(Qr);mt.registerComponent("CaptionSettingsMenuItem",oi);var ai=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}_t(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new oi(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(ei);ai.prototype.kind_="captions",ai.prototype.controlText_="Captions",mt.registerComponent("CaptionsButton",ai);var si=function(e){function t(){return e.apply(this,arguments)||this}return _t(t,e),t.prototype.createEl=function(t,n,r){var i='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"captions"===this.options_.track.kind&&(i+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Captions")+"</span>\n "),i+="</span>",e.prototype.createEl.call(this,t,T({innerHTML:i},n),r)},t}(Qr);mt.registerComponent("SubsCapsMenuItem",si);var li=function(e){function t(t,n){var r;return void 0===n&&(n={}),(r=e.call(this,t,n)||this).label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(r.player_.language_)>-1&&(r.label_="captions"),r.menuButton_.controlText(ft(r.label_)),r}_t(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new oi(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,si)},t}(ei);li.prototype.kinds_=["captions","subtitles"],li.prototype.controlText_="Subtitles",mt.registerComponent("SubsCapsButton",li);var ui=function(e){function t(t,n){var r,i=n.track,o=t.audioTracks();n.label=i.label||i.language||"Unknown",n.selected=i.enabled,(r=e.call(this,t,n)||this).track=i,r.addClass("vjs-"+i.kind+"-menu-item");var a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleTracksChange.apply(gt(r),t)};return o.addEventListener("change",a),r.on("dispose",(function(){o.removeEventListener("change",a)})),r}_t(t,e);var n=t.prototype;return n.createEl=function(t,n,r){var i='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"main-desc"===this.options_.track.kind&&(i+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Descriptions")+"</span>\n "),i+="</span>",e.prototype.createEl.call(this,t,T({innerHTML:i},n),r)},n.handleClick=function(t){e.prototype.handleClick.call(this,t),this.track.enabled=!0},n.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(Jr);mt.registerComponent("AudioTrackMenuItem",ui);var ci=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.audioTracks(),e.call(this,t,n)||this}_t(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(e){void 0===e&&(e=[]),this.hideThreshold_=1;for(var t=this.player_.audioTracks(),n=0;n<t.length;n++){var r=t[n];e.push(new ui(this.player_,{track:r,selectable:!0,multiSelectable:!1}))}return e},t}(Gr);ci.prototype.controlText_="Audio Track",mt.registerComponent("AudioTrackButton",ci);var fi=function(e){function t(t,n){var r,i=n.rate,o=parseFloat(i,10);return n.label=i,n.selected=o===t.playbackRate(),n.selectable=!0,n.multiSelectable=!1,(r=e.call(this,t,n)||this).label=i,r.rate=o,r.on(t,"ratechange",(function(e){return r.update(e)})),r}_t(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(Jr);fi.prototype.contentElType="button",mt.registerComponent("PlaybackRateMenuItem",fi);var hi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).menuButton_.el_.setAttribute("aria-describedby",r.labelElId_),r.updateVisibility(),r.updateLabel(),r.on(t,"loadstart",(function(e){return r.updateVisibility(e)})),r.on(t,"ratechange",(function(e){return r.updateLabel(e)})),r.on(t,"playbackrateschange",(function(e){return r.handlePlaybackRateschange(e)})),r}_t(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=Z("div",{className:"vjs-playback-rate-value",id:this.labelElId_,innerHTML:"1x"}),t.appendChild(this.labelEl_),t},n.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){for(var e=this.playbackRates(),t=[],n=e.length-1;n>=0;n--)t.push(new fi(this.player(),{rate:e[n]+"x"}));return t},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(e){for(var t=this.player().playbackRate(),n=this.playbackRates(),r=n[0],i=0;i<n.length;i++)if(n[i]>t){r=n[i];break}this.player().playbackRate(r)},n.handlePlaybackRateschange=function(e){this.update()},n.playbackRates=function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},t}(qr);hi.prototype.controlText_="Playback Rate",mt.registerComponent("PlaybackRateMenuButton",hi);var di=function(e){function t(){return e.apply(this,arguments)||this}_t(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(mt);mt.registerComponent("Spacer",di);var pi=function(e){function t(){return e.apply(this,arguments)||this}_t(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){var t=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML=" ",t},t}(di);mt.registerComponent("CustomControlSpacer",pi);var vi=function(e){function t(){return e.apply(this,arguments)||this}return _t(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(mt);vi.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in l&&vi.prototype.options_.children.splice(vi.prototype.options_.children.length-1,0,"pictureInPictureToggle"),mt.registerComponent("ControlBar",vi);var yi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"error",(function(e){return r.open(e)})),r}_t(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},n.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(It);yi.prototype.options_=m({},It.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),mt.registerComponent("ErrorDisplay",yi);var mi="vjs-text-track-settings",gi=["#000","Black"],_i=["#00F","Blue"],bi=["#0FF","Cyan"],Ti=["#0F0","Green"],Ei=["#F0F","Magenta"],wi=["#F00","Red"],Ci=["#FFF","White"],ki=["#FF0","Yellow"],Si=["1","Opaque"],Oi=["0.5","Semi-Transparent"],Pi=["0","Transparent"],ji={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[gi,Ci,wi,Ti,_i,ki,Ei,bi]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Si,Oi,Pi]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Ci,gi,wi,Ti,_i,ki,Ei,bi]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Si,Oi]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Pi,Oi,Si]}};function Ai(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}ji.windowColor.options=ji.backgroundColor.options;var xi=function(e){function t(t,n){var r;return n.temporary=!1,(r=e.call(this,t,n)||this).updateDisplay=r.updateDisplay.bind(gt(r)),r.fill(),r.hasBeenOpened_=r.hasBeenFilled_=!0,r.endDialog=Z("p",{className:"vjs-control-text",textContent:r.localize("End of dialog window.")}),r.el().appendChild(r.endDialog),r.setDefaults(),void 0===n.persistTextTrackSettings&&(r.options_.persistTextTrackSettings=r.options_.playerOptions.persistTextTrackSettings),r.on(r.$(".vjs-done-button"),"click",(function(){r.saveSettings(),r.close()})),r.on(r.$(".vjs-default-button"),"click",(function(){r.setDefaults(),r.updateDisplay()})),b(ji,(function(e){r.on(r.$(e.selector),"change",r.updateDisplay)})),r.options_.persistTextTrackSettings&&r.restoreSettings(),r}_t(t,e);var n=t.prototype;return n.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},n.createElSelect_=function(e,t,n){var r=this;void 0===t&&(t=""),void 0===n&&(n="label");var i=ji[e],o=i.id.replace("%s",this.id_),a=[t,o].join(" ").trim();return["<"+n+' id="'+o+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(i.label),"</"+n+">",'<select aria-labelledby="'+a+'">'].concat(i.options.map((function(e){var t=o+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+a+" "+t+'">',r.localize(e[1]),"</option>"].join("")}))).concat("</select>").join("")},n.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},n.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},n.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},n.createElColors_=function(){return Z("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return Z("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},n.createElControls_=function(){var e=this.localize("restore all settings to the default values");return Z("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var e,t,n,r=this;return t=function(e,t,n){var i,o,a=(i=r.$(t.selector),o=t.parser,Ai(i.options[i.options.selectedIndex].value,o));return void 0!==a&&(e[n]=a),e},void 0===(n={})&&(n=0),_(e=ji).reduce((function(n,r){return t(n,e[r],r)}),n)},n.setValues=function(e){var t=this;b(ji,(function(n,r){!function(e,t,n){if(t)for(var r=0;r<e.options.length;r++)if(Ai(e.options[r].value,n)===t){e.selectedIndex=r;break}}(t.$(n.selector),e[r],n.parser)}))},n.setDefaults=function(){var e=this;b(ji,(function(t){var n=t.hasOwnProperty("default")?t.default:0;e.$(t.selector).selectedIndex=n}))},n.restoreSettings=function(){var e;try{e=JSON.parse(o.localStorage.getItem(mi))}catch(e){v.warn(e)}e&&this.setValues(e)},n.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?o.localStorage.setItem(mi,JSON.stringify(e)):o.localStorage.removeItem(mi)}catch(e){v.warn(e)}}},n.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},n.conditionalBlur_=function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()},t}(It);mt.registerComponent("TextTrackSettings",xi);var Ri=function(e){function t(t,n){var r,i=n.ResizeObserver||o.ResizeObserver;null===n.ResizeObserver&&(i=!1);var a=ht({createEl:!i,reportTouchActivity:!1},n);return(r=e.call(this,t,a)||this).ResizeObserver=n.ResizeObserver||o.ResizeObserver,r.loadListener_=null,r.resizeObserver_=null,r.debouncedHandler_=function(e,t,n,r){var i;void 0===r&&(r=o);var a=function(){var o=this,a=arguments,s=function(){i=null,s=null,n||e.apply(o,a)};!i&&n&&e.apply(o,a),r.clearTimeout(i),i=r.setTimeout(s,t)};return a.cancel=function(){r.clearTimeout(i),i=null},a}((function(){r.resizeHandler()}),100,!1,gt(r)),i?(r.resizeObserver_=new r.ResizeObserver(r.debouncedHandler_),r.resizeObserver_.observe(t.el())):(r.loadListener_=function(){if(r.el_&&r.el_.contentWindow){var e=r.debouncedHandler_,t=r.unloadListener_=function(){Ve(this,"resize",e),Ve(this,"unload",t),t=null};Ue(r.el_.contentWindow,"unload",t),Ue(r.el_.contentWindow,"resize",e)}},r.one("load",r.loadListener_)),r}_t(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1},{"aria-hidden":"true"})},n.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},n.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,e.prototype.dispose.call(this)},t}(mt);mt.registerComponent("ResizeManager",Ri);var Ii={trackingThreshold:30,liveTolerance:15},Li=function(e){function t(t,n){var r,i=ht(Ii,n,{createEl:!1});return(r=e.call(this,t,i)||this).handleVisibilityChange_=function(e){return r.handleVisibilityChange(e)},r.trackLiveHandler_=function(){return r.trackLive_()},r.handlePlay_=function(e){return r.handlePlay(e)},r.handleFirstTimeupdate_=function(e){return r.handleFirstTimeupdate(e)},r.handleSeeked_=function(e){return r.handleSeeked(e)},r.seekToLiveEdge_=function(e){return r.seekToLiveEdge(e)},r.reset_(),r.on(r.player_,"durationchange",(function(e){return r.handleDurationchange(e)})),r.one(r.player_,"canplay",(function(){return r.toggleTracking()})),B&&"hidden"in l&&"visibilityState"in l&&r.on(l,"visibilitychange",r.handleVisibilityChange_),r}_t(t,e);var n=t.prototype;return n.handleVisibilityChange=function(){this.player_.duration()===1/0&&(l.hidden?this.stopTracking():this.startTracking())},n.trackLive_=function(){var e=this.player_.seekable();if(e&&e.length){var t=Number(o.performance.now().toFixed(4)),n=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+n;var r=this.liveCurrentTime(),i=this.player_.currentTime(),a=this.player_.paused()||this.seekedBehindLive_||Math.abs(r-i)>this.options_.liveTolerance;this.timeupdateSeen_&&r!==1/0||(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}},n.handleDurationchange=function(){this.toggleTracking()},n.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},n.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,qe),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},n.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},n.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()},n.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},n.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},n.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},n.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},n.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.end(n));return t.length?t.sort()[t.length-1]:1/0},n.seekableStart=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.start(n));return t.length?t.sort()[0]:0},n.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},n.isLive=function(){return this.isTracking()},n.atLiveEdge=function(){return!this.behindLiveEdge()},n.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},n.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},n.behindLiveEdge=function(){return this.behindLiveEdge_},n.isTracking=function(){return"number"==typeof this.trackingInterval_},n.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},n.dispose=function(){this.off(l,"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),e.prototype.dispose.call(this)},t}(mt);mt.registerComponent("LiveTracker",Li);var Mi,Ni=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var n=e.$$("source"),r=[],i="";if(!n.length)return!1;for(var o=0;o<n.length;o++){var a=n[o].src;a&&-1===r.indexOf(a)&&r.push(a)}return!!r.length&&(1===r.length&&(i=r[0]),e.triggerSourceset(i),!0)},Di=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=l.createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var n=l.createDocumentFragment();t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",o.Element.prototype.appendChild.call(this,n),this.innerHTML}}),Bi=function(e,t){for(var n={},r=0;r<e.length&&!((n=Object.getOwnPropertyDescriptor(e[r],t))&&n.set&&n.get);r++);return n.enumerable=!0,n.configurable=!0,n},Fi=function(e){var t=e.el();if(!t.resetSourceWatch_){var n={},r=function(e){return Bi([e.el(),o.HTMLMediaElement.prototype,o.Element.prototype,Di],"innerHTML")}(e),i=function(n){return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=n.apply(t,i);return Ni(e),a}};["append","appendChild","insertAdjacentHTML"].forEach((function(e){t[e]&&(n[e]=t[e],t[e]=i(n[e]))})),Object.defineProperty(t,"innerHTML",ht(r,{set:i(r.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(n).forEach((function(e){t[e]=n[e]})),Object.defineProperty(t,"innerHTML",r)},e.one("sourceset",t.resetSourceWatch_)}},Hi=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?Gt(o.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return o.Element.prototype.setAttribute.call(this,"src",e),e}}),Ui=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var n=function(e){return Bi([e.el(),o.HTMLMediaElement.prototype,Hi],"src")}(e),r=t.setAttribute,i=t.load;Object.defineProperty(t,"src",ht(n,{set:function(r){var i=n.set.call(t,r);return e.triggerSourceset(t.src),i}})),t.setAttribute=function(n,i){var o=r.call(t,n,i);return/src/i.test(n)&&e.triggerSourceset(t.src),o},t.load=function(){var n=i.call(t);return Ni(e)||(e.triggerSourceset(""),Fi(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):Ni(e)||Fi(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=i,t.setAttribute=r,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},Vi=function(e,t,n,r){void 0===r&&(r=!0);var i=function(n){return Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0})},o={configurable:!0,enumerable:!0,get:function(){var e=n();return i(e),e}};return r&&(o.set=i),Object.defineProperty(e,t,o)},Wi=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i=t.source,o=!1;if(i&&(r.el_.currentSrc!==i.src||t.tag&&3===t.tag.initNetworkState_)?r.setSource(i):r.handleLateInit_(r.el_),t.enableSourceset&&r.setupSourcesetHandling_(),r.isScrubbing_=!1,r.el_.hasChildNodes()){for(var a=r.el_.childNodes,s=a.length,l=[];s--;){var u=a[s];"track"===u.nodeName.toLowerCase()&&(r.featuresNativeTextTracks?(r.remoteTextTrackEls().addTrackElement_(u),r.remoteTextTracks().addTrack(u.track),r.textTracks().addTrack(u.track),o||r.el_.hasAttribute("crossorigin")||!Jt(u.src)||(o=!0)):l.push(u))}for(var c=0;c<l.length;c++)r.el_.removeChild(l[c])}return r.proxyNativeTracks_(),r.featuresNativeTextTracks&&o&&v.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),r.restoreMetadataTracksInIOSNativePlayer_(),(U||W||I)&&!0===t.nativeControlsForTouch&&r.setControls(!0),r.proxyWebkitFullscreen_(),r.triggerReady(),r}_t(t,e);var n=t.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.disposeMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){Ui(this)},n.restoreMetadataTracksInIOSNativePlayer_=function(){var e,t=this.textTracks(),n=function(){e=[];for(var n=0;n<t.length;n++){var r=t[n];"metadata"===r.kind&&e.push({track:r,storedMode:r.mode})}};n(),t.addEventListener("change",n),this.on("dispose",(function(){return t.removeEventListener("change",n)}));var r=function n(){for(var r=0;r<e.length;r++){var i=e[r];"disabled"===i.track.mode&&i.track.mode!==i.storedMode&&(i.track.mode=i.storedMode)}t.removeEventListener("change",n)};this.on("webkitbeginfullscreen",(function(){t.removeEventListener("change",n),t.removeEventListener("change",r),t.addEventListener("change",r)})),this.on("webkitendfullscreen",(function(){t.removeEventListener("change",n),t.addEventListener("change",n),t.removeEventListener("change",r)}))},n.overrideNative_=function(e,t){var n=this;if(t===this["featuresNative"+e+"Tracks"]){var r=e.toLowerCase();this[r+"TracksListeners_"]&&Object.keys(this[r+"TracksListeners_"]).forEach((function(e){n.el()[r+"Tracks"].removeEventListener(e,n[r+"TracksListeners_"][e])})),this["featuresNative"+e+"Tracks"]=!t,this[r+"TracksListeners_"]=null,this.proxyNativeTracksForType_(r)}},n.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},n.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},n.proxyNativeTracksForType_=function(e){var t=this,n=dn[e],r=this.el()[n.getterName],i=this[n.getterName]();if(this["featuresNative"+n.capitalName+"Tracks"]&&r&&r.addEventListener){var o={change:function(n){var r={type:"change",target:i,currentTarget:i,srcElement:i};i.trigger(r),"text"===e&&t[pn.remoteText.getterName]().trigger(r)},addtrack:function(e){i.addTrack(e.track)},removetrack:function(e){i.removeTrack(e.track)}},a=function(){for(var e=[],t=0;t<i.length;t++){for(var n=!1,o=0;o<r.length;o++)if(r[o]===i[t]){n=!0;break}n||e.push(i[t])}for(;e.length;)i.removeTrack(e.shift())};this[n.getterName+"Listeners_"]=o,Object.keys(o).forEach((function(e){var n=o[e];r.addEventListener(e,n),t.on("dispose",(function(t){return r.removeEventListener(e,n)}))})),this.on("loadstart",a),this.on("dispose",(function(e){return t.off("loadstart",a)}))}},n.proxyNativeTracks_=function(){var e=this;dn.names.forEach((function(t){e.proxyNativeTracksForType_(t)}))},n.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=l.createElement("video");var r=ht({},this.options_.tag&&se(this.options_.tag));U&&!0===this.options_.nativeControlsForTouch||delete r.controls,ae(e,T(r,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&ue(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);for(var i=["loop","muted","playsinline","autoplay"],o=0;o<i.length;o++){var a=i[o],s=this.options_[a];void 0!==s&&(s?ue(e,a,a):ce(e,a),e[a]=s)}return e},n.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,n=function(){t=!0};this.on("loadstart",n);var r=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",r),void this.ready((function(){this.off("loadstart",n),this.off("loadedmetadata",r),t||this.trigger("loadstart")}))}var i=["loadstart"];i.push("loadedmetadata"),e.readyState>=2&&i.push("loadeddata"),e.readyState>=3&&i.push("canplay"),e.readyState>=4&&i.push("canplaythrough"),this.ready((function(){i.forEach((function(e){this.trigger(e)}),this)}))}},n.setScrubbing=function(e){this.isScrubbing_=e},n.scrubbing=function(){return this.isScrubbing_},n.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&Y?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){v(e,"Video is not ready. (Video.js)")}},n.duration=function(){var e=this;return this.el_.duration===1/0&&x&&N&&0===this.el_.currentTime?(this.on("timeupdate",(function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))})),NaN):this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",(function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)}))}},n.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=o.navigator&&o.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},n.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)Pt(this.el_.play()),this.setTimeout((function(){e.pause();try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}}),0);else try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},n.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},n.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},n.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},n.reset=function(){t.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(e){this.el_.controls=!!e},n.addTextTrack=function(t,n,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,r):e.prototype.addTextTrack.call(this,t,n,r)},n.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=l.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t.default&&(n.default=t.default),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},n.addRemoteTextTrack=function(t,n){var r=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(r),r},n.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var n=this.$$("track"),r=n.length;r--;)t!==n[r]&&t!==n[r].track||this.el().removeChild(n[r])},n.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),o.performance&&"function"==typeof o.performance.now?e.creationTime=o.performance.now():o.performance&&o.performance.timing&&"number"==typeof o.performance.timing.navigationStart&&(e.creationTime=o.Date.now()-o.performance.timing.navigationStart),e},t}(Xn);Vi(Wi,"TEST_VID",(function(){if(G()){var e=l.createElement("video"),t=l.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}})),Wi.isSupported=function(){try{Wi.TEST_VID.volume=.5}catch(e){return!1}return!(!Wi.TEST_VID||!Wi.TEST_VID.canPlayType)},Wi.canPlayType=function(e){return Wi.TEST_VID.canPlayType(e)},Wi.canPlaySource=function(e,t){return Wi.canPlayType(e.type)},Wi.canControlVolume=function(){try{var e=Wi.TEST_VID.volume;return Wi.TEST_VID.volume=e/2+.1,e!==Wi.TEST_VID.volume}catch(e){return!1}},Wi.canMuteVolume=function(){try{var e=Wi.TEST_VID.muted;return Wi.TEST_VID.muted=!e,Wi.TEST_VID.muted?ue(Wi.TEST_VID,"muted","muted"):ce(Wi.TEST_VID,"muted"),e!==Wi.TEST_VID.muted}catch(e){return!1}},Wi.canControlPlaybackRate=function(){if(x&&N&&D<58)return!1;try{var e=Wi.TEST_VID.playbackRate;return Wi.TEST_VID.playbackRate=e/2+.1,e!==Wi.TEST_VID.playbackRate}catch(e){return!1}},Wi.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(l.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(l.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(l.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(l.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},Wi.supportsNativeTextTracks=function(){return Y||z&&N},Wi.supportsNativeVideoTracks=function(){return!(!Wi.TEST_VID||!Wi.TEST_VID.videoTracks)},Wi.supportsNativeAudioTracks=function(){return!(!Wi.TEST_VID||!Wi.TEST_VID.audioTracks)},Wi.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresVolumeControl","canControlVolume"],["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach((function(e){var t=e[0],n=e[1];Vi(Wi.prototype,t,(function(){return Wi[n]()}),!0)})),Wi.prototype.movingMediaElementInDOM=!z,Wi.prototype.featuresFullscreenResize=!0,Wi.prototype.featuresProgressEvents=!0,Wi.prototype.featuresTimeupdateEvents=!0,Wi.patchCanPlayType=function(){R>=4&&!L&&!N&&(Mi=Wi.TEST_VID&&Wi.TEST_VID.constructor.prototype.canPlayType,Wi.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":Mi.call(this,e)})},Wi.unpatchCanPlayType=function(){var e=Wi.TEST_VID.constructor.prototype.canPlayType;return Mi&&(Wi.TEST_VID.constructor.prototype.canPlayType=Mi),e},Wi.patchCanPlayType(),Wi.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},Wi.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),n=t.length;n--;)e.removeChild(t[n]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(e){Wi.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){Wi.prototype["set"+ft(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach((function(e){Wi.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(e){Wi.prototype["set"+ft(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){Wi.prototype[e]=function(){return this.el_[e]()}})),Xn.withSourceHandlers(Wi),Wi.nativeSourceHandler={},Wi.nativeSourceHandler.canPlayType=function(e){try{return Wi.TEST_VID.canPlayType(e)}catch(e){return""}},Wi.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Wi.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=$t(e.src);return Wi.nativeSourceHandler.canPlayType("video/"+n)}return""},Wi.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},Wi.nativeSourceHandler.dispose=function(){},Wi.registerSourceHandler(Wi.nativeSourceHandler),Xn.registerTech("Html5",Wi);var zi=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Yi={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Xi=["tiny","xsmall","small","medium","large","xlarge","huge"],Ki={};Xi.forEach((function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;Ki[e]="vjs-layout-"+t}));var qi={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Gi=function(t){function n(r,i,o){var a;if(r.id=r.id||i.id||"vjs_video_"+Le(),(i=T(n.getTagSettings(r),i)).initChildren=!1,i.createEl=!1,i.evented=!1,i.reportTouchActivity=!1,!i.language)if("function"==typeof r.closest){var s=r.closest("[lang]");s&&s.getAttribute&&(i.language=s.getAttribute("lang"))}else for(var c=r;c&&1===c.nodeType;){if(se(c).hasOwnProperty("lang")){i.language=c.getAttribute("lang");break}c=c.parentNode}if((a=t.call(this,null,i,o)||this).boundDocumentFullscreenChange_=function(e){return a.documentFullscreenChange_(e)},a.boundFullWindowOnEscKey_=function(e){return a.fullWindowOnEscKey(e)},a.boundUpdateStyleEl_=function(e){return a.updateStyleEl_(e)},a.boundApplyInitTime_=function(e){return a.applyInitTime_(e)},a.boundUpdateCurrentBreakpoint_=function(e){return a.updateCurrentBreakpoint_(e)},a.boundHandleTechClick_=function(e){return a.handleTechClick_(e)},a.boundHandleTechDoubleClick_=function(e){return a.handleTechDoubleClick_(e)},a.boundHandleTechTouchStart_=function(e){return a.handleTechTouchStart_(e)},a.boundHandleTechTouchMove_=function(e){return a.handleTechTouchMove_(e)},a.boundHandleTechTouchEnd_=function(e){return a.handleTechTouchEnd_(e)},a.boundHandleTechTap_=function(e){return a.handleTechTap_(e)},a.isFullscreen_=!1,a.log=y(a.id_),a.fsApi_=u,a.isPosterFromTech_=!1,a.queuedCallbacks_=[],a.isReady_=!1,a.hasStarted_=!1,a.userActive_=!1,a.debugEnabled_=!1,!a.options_||!a.options_.techOrder||!a.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(a.tag=r,a.tagAttributes=r&&se(r),a.language(a.options_.language),i.languages){var f={};Object.getOwnPropertyNames(i.languages).forEach((function(e){f[e.toLowerCase()]=i.languages[e]})),a.languages_=f}else a.languages_=n.prototype.options_.languages;a.resetCache_(),a.poster_=i.poster||"",a.controls_=!!i.controls,r.controls=!1,r.removeAttribute("controls"),a.changingSrc_=!1,a.playCallbacks_=[],a.playTerminatedQueue_=[],r.hasAttribute("autoplay")?a.autoplay(!0):a.autoplay(a.options_.autoplay),i.plugins&&Object.keys(i.plugins).forEach((function(e){if("function"!=typeof a[e])throw new Error('plugin "'+e+'" does not exist')})),a.scrubbing_=!1,a.el_=a.createEl(),st(gt(a),{eventBusKey:"el_"}),a.fsApi_.requestFullscreen&&(Ue(l,a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_),a.on(a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_)),a.fluid_&&a.on(["playerreset","resize"],a.boundUpdateStyleEl_);var h=ht(a.options_);i.plugins&&Object.keys(i.plugins).forEach((function(e){a[e](i.plugins[e])})),i.debug&&a.debug(!0),a.options_.playerOptions=h,a.middleware_=[],a.playbackRates(i.playbackRates),a.initChildren(),a.isAudio("audio"===r.nodeName.toLowerCase()),a.controls()?a.addClass("vjs-controls-enabled"):a.addClass("vjs-controls-disabled"),a.el_.setAttribute("role","region"),a.isAudio()?a.el_.setAttribute("aria-label",a.localize("Audio Player")):a.el_.setAttribute("aria-label",a.localize("Video Player")),a.isAudio()&&a.addClass("vjs-audio"),a.flexNotSupported_()&&a.addClass("vjs-no-flex"),U&&a.addClass("vjs-touch-enabled"),z||a.addClass("vjs-workinghover"),n.players[a.id_]=gt(a);var d=e.split(".")[0];return a.addClass("vjs-v"+d),a.userActive(!0),a.reportUserActivity(),a.one("play",(function(e){return a.listenForUserActivity_(e)})),a.on("stageclick",(function(e){return a.handleStageClick_(e)})),a.on("keydown",(function(e){return a.handleKeyDown(e)})),a.on("languagechange",(function(e){return a.handleLanguagechange(e)})),a.breakpoints(a.options_.breakpoints),a.responsive(a.options_.responsive),a}_t(n,t);var r=n.prototype;return r.dispose=function(){var e=this;this.trigger("dispose"),this.off("dispose"),Ve(l,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),Ve(l,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),n.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),qn[this.id()]=null,vn.names.forEach((function(t){var n=vn[t],r=e[n.getterName]();r&&r.off&&r.off()})),t.prototype.dispose.call(this)},r.createEl=function(){var e,n=this.tag,r=this.playerElIngest_=n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player"),i="video-js"===this.tag.tagName.toLowerCase();r?e=this.el_=n.parentNode:i||(e=this.el_=t.prototype.createEl.call(this,"div"));var a=se(n);if(i){for(e=this.el_=n,n=this.tag=l.createElement("video");e.children.length;)n.appendChild(e.firstChild);ne(e,"video-js")||re(e,"video-js"),e.appendChild(n),r=this.playerElIngest_=e,Object.keys(e).forEach((function(t){try{n[t]=e[t]}catch(e){}}))}if(n.setAttribute("tabindex","-1"),a.tabindex="-1",(B||N&&H)&&(n.setAttribute("role","application"),a.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in a&&delete a.width,"height"in a&&delete a.height,Object.getOwnPropertyNames(a).forEach((function(t){i&&"class"===t||e.setAttribute(t,a[t]),i&&n.setAttribute(t,a[t])})),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=e.player=this,this.addClass("vjs-paused"),!0!==o.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=xe("vjs-styles-dimensions");var s=we(".vjs-styles-defaults"),u=we("head");u.insertBefore(this.styleEl_,s?s.nextSibling:u.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var c=n.getElementsByTagName("a"),f=0;f<c.length;f++){var h=c.item(f);re(h,"vjs-hidden"),h.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!r&&n.parentNode.insertBefore(e,n),te(n,e),this.children_.unshift(n),this.el_.setAttribute("lang",this.language_),this.el_=e,e},r.crossOrigin=function(e){if(!e)return this.techGet_("crossOrigin");"anonymous"===e||"use-credentials"===e?this.techCall_("setCrossOrigin",e):v.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+e+'"')},r.width=function(e){return this.dimension("width",e)},r.height=function(e){return this.dimension("height",e)},r.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t||"auto"===t)return this[n]=void 0,void this.updateStyleEl_();var r=parseFloat(t);isNaN(r)?v.error('Improper value "'+t+'" supplied for for '+e):(this[n]=r,this.updateStyleEl_())},r.fluid=function(e){var t,n,r=this;if(void 0===e)return!!this.fluid_;this.fluid_=!!e,Ze(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),n=function(){r.on(["playerreset","resize"],r.boundUpdateStyleEl_)},Ze(t=this)?n():(t.eventedCallbacks||(t.eventedCallbacks=[]),t.eventedCallbacks.push(n))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},r.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},r.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},r.updateStyleEl_=function(){if(!0!==o.VIDEOJS_NO_DYNAMIC_STYLE){var e,t,n,r=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),i=r[1]/r[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/i:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*i,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),Re(this.styleEl_,"\n ."+n+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+n+".vjs-fluid {\n padding-top: "+100*i+"%;\n }\n ")}else{var a="number"==typeof this.width_?this.width_:this.options_.width,s="number"==typeof this.height_?this.height_:this.options_.height,l=this.tech_&&this.tech_.el();l&&(a>=0&&(l.width=a),s>=0&&(l.height=s))}},r.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_();var r=ft(e),i=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==r&&this.tag&&(Xn.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=r,this.isReady_=!1;var o=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(o=!1);var a={source:t,autoplay:o,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+i+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};vn.names.forEach((function(e){var t=vn[e];a[t.getterName]=n[t.privateName]})),T(a,this.options_[r]),T(a,this.options_[i]),T(a,this.options_[e.toLowerCase()]),this.tag&&(a.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(a.startTime=this.cache_.currentTime);var s=Xn.getTech(e);if(!s)throw new Error("No Tech named '"+r+"' exists! '"+r+"' should be registered using videojs.registerTech()'");this.tech_=new s(a),this.tech_.ready(Ge(this,this.handleTechReady_),!0),xt(this.textTracksJson_||[],this.tech_),zi.forEach((function(e){n.on(n.tech_,e,(function(t){return n["handleTech"+ft(e)+"_"](t)}))})),Object.keys(Yi).forEach((function(e){n.on(n.tech_,e,(function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+Yi[e]+"_"].bind(n),event:t}):n["handleTech"+Yi[e]+"_"](t)}))})),this.on(this.tech_,"loadstart",(function(e){return n.handleTechLoadStart_(e)})),this.on(this.tech_,"sourceset",(function(e){return n.handleTechSourceset_(e)})),this.on(this.tech_,"waiting",(function(e){return n.handleTechWaiting_(e)})),this.on(this.tech_,"ended",(function(e){return n.handleTechEnded_(e)})),this.on(this.tech_,"seeking",(function(e){return n.handleTechSeeking_(e)})),this.on(this.tech_,"play",(function(e){return n.handleTechPlay_(e)})),this.on(this.tech_,"firstplay",(function(e){return n.handleTechFirstPlay_(e)})),this.on(this.tech_,"pause",(function(e){return n.handleTechPause_(e)})),this.on(this.tech_,"durationchange",(function(e){return n.handleTechDurationChange_(e)})),this.on(this.tech_,"fullscreenchange",(function(e,t){return n.handleTechFullscreenChange_(e,t)})),this.on(this.tech_,"fullscreenerror",(function(e,t){return n.handleTechFullscreenError_(e,t)})),this.on(this.tech_,"enterpictureinpicture",(function(e){return n.handleTechEnterPictureInPicture_(e)})),this.on(this.tech_,"leavepictureinpicture",(function(e){return n.handleTechLeavePictureInPicture_(e)})),this.on(this.tech_,"error",(function(e){return n.handleTechError_(e)})),this.on(this.tech_,"posterchange",(function(e){return n.handleTechPosterChange_(e)})),this.on(this.tech_,"textdata",(function(e){return n.handleTechTextData_(e)})),this.on(this.tech_,"ratechange",(function(e){return n.handleTechRateChange_(e)})),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===r&&this.tag||te(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},r.unloadTech_=function(){var e=this;vn.names.forEach((function(t){var n=vn[t];e[n.privateName]=e[n.getterName]()})),this.textTracksJson_=At(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},r.tech=function(e){return void 0===e&&v.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},r.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mouseup",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},r.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"mouseup",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},r.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},r.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},r.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"==typeof e){var n,r=function(){var e=t.muted();t.muted(!0);var n=function(){t.muted(e)};t.playTerminatedQueue_.push(n);var r=t.play();if(Ot(r))return r.catch(n)};if("any"===e&&!0!==this.muted()?Ot(n=this.play())&&(n=n.catch(r)):n="muted"===e&&!0!==this.muted()?r():this.play(),Ot(n))return n.then((function(){t.trigger({type:"autoplay-success",autoplay:e})})).catch((function(n){t.trigger({type:"autoplay-failure",autoplay:e})}))}},r.updateSourceCaches_=function(e){void 0===e&&(e="");var t=e,n="";"string"!=typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter((function(e){return e.src===t}));if(n.length)return n[0].type;for(var r=e.$$("source"),i=0;i<r.length;i++){var o=r[i];if(o.type&&o.src&&o.src===t)return o.type}return ir(t)}(this,t)),this.cache_.source=ht({},e,{src:t,type:n});for(var r=this.cache_.sources.filter((function(e){return e.src&&e.src===t})),i=[],o=this.$$("source"),a=[],s=0;s<o.length;s++){var l=se(o[s]);i.push(l),l.src&&l.src===t&&a.push(l.src)}a.length&&!r.length?this.cache_.sources=i:r.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},r.handleTechSourceset_=function(e){var t=this;if(!this.changingSrc_){var n=function(e){return t.updateSourceCaches_(e)},r=this.currentSource().src,i=e.src;r&&!/^blob:/.test(r)&&/^blob:/.test(i)&&(!this.lastSource_||this.lastSource_.tech!==i&&this.lastSource_.player!==r)&&(n=function(){}),n(i),e.src||this.tech_.any(["sourceset","loadstart"],(function(e){if("sourceset"!==e.type){var n=t.techGet("currentSrc");t.lastSource_.tech=n,t.updateSourceCaches_(n)}}))}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},r.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},r.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},r.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach((function(e){return e.callback(e.event)})),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},r.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime();this.on("timeupdate",(function n(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",n))}))},r.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},r.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},r.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},r.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},r.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},r.handleTechFirstPlay_=function(){this.options_.starttime&&(v.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},r.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},r.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},r.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},r.handleTechClick_=function(e){Te(e)&&this.controls_&&(this.paused()?Pt(this.play()):this.pause())},r.handleTechDoubleClick_=function(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),(function(t){return t.contains(e.target)}))||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},r.handleTechTap_=function(){this.userActive(!this.userActive())},r.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},r.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},r.handleTechTouchEnd_=function(e){e.cancelable&&e.preventDefault()},r.handleStageClick_=function(){this.reportUserActivity()},r.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},r.documentFullscreenChange_=function(e){var t=e.target.player;if(!t||t===this){var n=this.el(),r=l[this.fsApi_.fullscreenElement]===n;!r&&n.matches?r=n.matches(":"+this.fsApi_.fullscreen):!r&&n.msMatchesSelector&&(r=n.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(r)}},r.handleTechFullscreenChange_=function(e,t){t&&(t.nativeIOSFullscreen&&this.toggleClass("vjs-ios-native-fs"),this.isFullscreen(t.isFullscreen))},r.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},r.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},r.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},r.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},r.handleTechError_=function(){var e=this.tech_.error();this.error(e)},r.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},r.getCache=function(){return this.cache_},r.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},r.techCall_=function(e,t){this.ready((function(){if(e in Zn)return function(e,t,n,r){return t[n](e.reduce(tr(n),r))}(this.middleware_,this.tech_,e,t);if(e in er)return Jn(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw v(e),e}}),!0)},r.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in Qn)return function(e,t,n){return e.reduceRight(tr(n),t[n]())}(this.middleware_,this.tech_,e);if(e in er)return Jn(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw v("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw v("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw v(t),t}}},r.play=function(){var e=this,t=this.options_.Promise||o.Promise;return t?new t((function(t){e.play_(t)})):this.play_()},r.play_=function(e){var t=this;void 0===e&&(e=Pt),this.playCallbacks_.push(e);var n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(n||!Y&&!z||this.load());var r=this.techGet_("play");null===r?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(r)},r.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach((function(e){e()}))},r.runPlayCallbacks_=function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach((function(t){t(e)}))},r.pause=function(){this.techCall_("pause")},r.paused=function(){return!1!==this.techGet_("paused")},r.played=function(){return this.techGet_("played")||Et(0,0)},r.scrubbing=function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},r.currentTime=function(e){return void 0!==e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},r.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},r.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},r.remainingTime=function(){return this.duration()-this.currentTime()},r.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},r.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=Et(0,0)),e},r.bufferedPercent=function(){return wt(this.buffered(),this.duration())},r.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},r.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},r.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},r.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},r.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},r.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},r.isFullscreen=function(e){if(void 0!==e){var t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},r.requestFullscreen=function(e){var t=this.options_.Promise||o.Promise;if(t){var n=this;return new t((function(t,r){function i(){n.off("fullscreenerror",a),n.off("fullscreenchange",o)}function o(){i(),t()}function a(e,t){i(),r(t)}n.one("fullscreenchange",o),n.one("fullscreenerror",a);var s=n.requestFullscreenHelper_(e);if(s)return s.then(i,i),s}))}return this.requestFullscreenHelper_()},r.requestFullscreenHelper_=function(e){var t,n=this;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){var r=this.el_[this.fsApi_.requestFullscreen](t);return r&&r.then((function(){return n.isFullscreen(!0)}),(function(){return n.isFullscreen(!1)})),r}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},r.exitFullscreen=function(){var e=this.options_.Promise||o.Promise;if(e){var t=this;return new e((function(e,n){function r(){t.off("fullscreenerror",o),t.off("fullscreenchange",i)}function i(){r(),e()}function o(e,t){r(),n(t)}t.one("fullscreenchange",i),t.one("fullscreenerror",o);var a=t.exitFullscreenHelper_();if(a)return a.then(r,r),a}))}return this.exitFullscreenHelper_()},r.exitFullscreenHelper_=function(){var e=this;if(this.fsApi_.requestFullscreen){var t=l[this.fsApi_.exitFullscreen]();return t&&t.then((function(){return e.isFullscreen(!1)})),t}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},r.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=l.documentElement.style.overflow,Ue(l,"keydown",this.boundFullWindowOnEscKey_),l.documentElement.style.overflow="hidden",re(l.body,"vjs-full-window"),this.trigger("enterFullWindow")},r.fullWindowOnEscKey=function(e){Rt.isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},r.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,Ve(l,"keydown",this.boundFullWindowOnEscKey_),l.documentElement.style.overflow=this.docOrigOverflow,ie(l.body,"vjs-full-window"),this.trigger("exitFullWindow")},r.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},r.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},r.requestPictureInPicture=function(){if("pictureInPictureEnabled"in l&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},r.exitPictureInPicture=function(){if("pictureInPictureEnabled"in l)return l.exitPictureInPicture()},r.handleKeyDown=function(e){var t,n,r=this.options_.userActions;r&&r.hotkeys&&(t=this.el_.ownerDocument.activeElement,n=t.tagName.toLowerCase(),t.isContentEditable||("input"===n?-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(t.type):-1!==["textarea"].indexOf(n))||("function"==typeof r.hotkeys?r.hotkeys.call(this,e):this.handleHotkeys(e)))},r.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},n=t.fullscreenKey,r=void 0===n?function(e){return Rt.isEventKey(e,"f")}:n,i=t.muteKey,o=void 0===i?function(e){return Rt.isEventKey(e,"m")}:i,a=t.playPauseKey,s=void 0===a?function(e){return Rt.isEventKey(e,"k")||Rt.isEventKey(e,"Space")}:a;if(r.call(this,e)){e.preventDefault(),e.stopPropagation();var u=mt.getComponent("FullscreenToggle");!1!==l[this.fsApi_.fullscreenEnabled]&&u.prototype.handleClick.call(this,e)}else o.call(this,e)?(e.preventDefault(),e.stopPropagation(),mt.getComponent("MuteToggle").prototype.handleClick.call(this,e)):s.call(this,e)&&(e.preventDefault(),e.stopPropagation(),mt.getComponent("PlayToggle").prototype.handleClick.call(this,e))},r.canPlayType=function(e){for(var t,n=0,r=this.options_.techOrder;n<r.length;n++){var i=r[n],o=Xn.getTech(i);if(o||(o=mt.getComponent(i)),o){if(o.isSupported()&&(t=o.canPlayType(e)))return t}else v.error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.')}return""},r.selectSource=function(e){var t,n=this,r=this.options_.techOrder.map((function(e){return[e,Xn.getTech(e)]})).filter((function(e){var t=e[0],n=e[1];return n?n.isSupported():(v.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)})),i=function(e,t,n){var r;return e.some((function(e){return t.some((function(t){if(r=n(e,t))return!0}))})),r},o=function(e,t){var r=e[0];if(e[1].canPlaySource(t,n.options_[r.toLowerCase()]))return{source:t,tech:r}};return(this.options_.sourceOrder?i(e,r,(t=o,function(e,n){return t(n,e)})):i(r,e,o))||!1},r.handleSrc_=function(e,t){var n=this;if(void 0===e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var r=or(e);if(r.length){if(this.changingSrc_=!0,t||(this.cache_.sources=r),this.updateSourceCaches_(r[0]),$n(this,r[0],(function(e,i){var o,a;if(n.middleware_=i,t||(n.cache_.sources=r),n.updateSourceCaches_(e),n.src_(e))return r.length>1?n.handleSrc_(r.slice(1)):(n.changingSrc_=!1,n.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0),void n.triggerReady());o=i,a=n.tech_,o.forEach((function(e){return e.setTech&&e.setTech(a)}))})),this.options_.retryOnError&&r.length>1){var i=function(){n.error(null),n.handleSrc_(r.slice(1),!0)},o=function(){n.off("error",i)};this.one("error",i),this.one("playing",o),this.resetRetryOnError_=function(){n.off("error",i),n.off("playing",o)}}}else this.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0)},r.src=function(e){return this.handleSrc_(e,!1)},r.src_=function(e){var t,n,r=this,i=this.selectSource([e]);return!i||(t=i.tech,n=this.techName_,ft(t)!==ft(n)?(this.changingSrc_=!0,this.loadTech_(i.tech,i.source),this.tech_.ready((function(){r.changingSrc_=!1})),!1):(this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1}),!0),!1))},r.load=function(){this.techCall_("load")},r.reset=function(){var e=this,t=this.options_.Promise||o.Promise;this.paused()||!t?this.doReset_():Pt(this.play().then((function(){return e.doReset_()})))},r.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),Ze(this)&&this.trigger("playerreset")},r.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},r.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar,t=e.durationDisplay,n=e.remainingTimeDisplay;t&&t.updateContent(),n&&n.updateContent()},r.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},r.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},r.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},r.currentSource=function(){return this.cache_.source||{}},r.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},r.currentType=function(){return this.currentSource()&&this.currentSource().type||""},r.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},r.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},r.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},r.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},r.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},r.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},r.controls=function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},r.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},r.error=function(e){if(void 0===e)return this.error_||null;if(this.options_.suppressNotSupportedError&&e&&4===e.code){var t=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],t),void this.one("loadstart",(function(){this.off(["click","touchstart"],t)}))}if(null===e)return this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new Ct(e),this.addClass("vjs-error"),v.error("(CODE:"+this.error_.code+" "+Ct.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error")},r.reportUserActivity=function(e){this.userActivity_=!0},r.userActive=function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",(function(e){e.stopPropagation(),e.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},r.listenForUserActivity_=function(){var e,t,n,r=Ge(this,this.reportUserActivity),i=function(t){r(),this.clearInterval(e)};this.on("mousedown",(function(){r(),this.clearInterval(e),e=this.setInterval(r,250)})),this.on("mousemove",(function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,r())})),this.on("mouseup",i),this.on("mouseleave",i);var o,a=this.getChild("controlBar");!a||z||x||(a.on("mouseenter",(function(e){this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout,this.player().options_.inactivityTimeout=0})),a.on("mouseleave",(function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout}))),this.on("keydown",r),this.on("keyup",r),this.setInterval((function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(o);var e=this.options_.inactivityTimeout;e<=0||(o=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),e))}}),250)},r.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},r.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},r.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},r.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},r.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},r.removeRemoteTextTrack=function(e){void 0===e&&(e={});var t=e.track;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)},r.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},r.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},r.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},r.language=function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),Ze(this)&&this.trigger("languagechange"))},r.languages=function(){return ht(n.prototype.options_.languages,this.languages_)},r.toJSON=function(){var e=ht(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var r=t[n];(r=ht(r)).player=void 0,e.tracks[n]=r}return e},r.createModal=function(e,t){var n=this;(t=t||{}).content=e||"";var r=new It(this,t);return this.addChild(r),r.on("dispose",(function(){n.removeChild(r)})),r.open(),r},r.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),n=0;n<Xi.length;n++){var r=Xi[n];if(t<=this.breakpoints_[r]){if(e===r)return;e&&this.removeClass(Ki[e]),this.addClass(Ki[r]),this.breakpoint_=r;break}}},r.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},r.breakpoints=function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=T({},qi,e),this.updateCurrentBreakpoint_()),T(this.breakpoints_)},r.responsive=function(e){return void 0===e?this.responsive_:(e=Boolean(e))!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},r.currentBreakpoint=function(){return this.breakpoint_},r.currentBreakpointClass=function(){return Ki[this.breakpoint_]||""},r.loadMedia=function(e,t){var n=this;if(e&&"object"==typeof e){this.reset(),this.cache_.media=ht(e);var r=this.cache_.media,i=r.artwork,o=r.poster,a=r.src,s=r.textTracks;!i&&o&&(this.cache_.media.artwork=[{src:o,type:ir(o)}]),a&&this.src(a),o&&this.poster(o),Array.isArray(s)&&s.forEach((function(e){return n.addRemoteTextTrack(e,!1)})),this.ready(t)}},r.getMedia=function(){if(!this.cache_.media){var e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),(function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}}))};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:ir(t.poster)}]),t}return ht(this.cache_.media)},n.getTagSettings=function(e){var t={sources:[],tracks:[]},n=se(e),r=n["data-setup"];if(ne(e,"vjs-fill")&&(n.fill=!0),ne(e,"vjs-fluid")&&(n.fluid=!0),null!==r){var i=St(r||"{}"),o=i[0],a=i[1];o&&v.error(o),T(n,a)}if(T(t,n),e.hasChildNodes())for(var s=e.childNodes,l=0,u=s.length;l<u;l++){var c=s[l],f=c.nodeName.toLowerCase();"source"===f?t.sources.push(se(c)):"track"===f&&t.tracks.push(se(c))}return t},r.flexNotSupported_=function(){var e=l.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},r.debug=function(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},r.playbackRates=function(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every((function(e){return"number"==typeof e}))&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))},n}(mt);vn.names.forEach((function(e){var t=vn[e];Gi.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}})),Gi.prototype.crossorigin=Gi.prototype.crossOrigin,Gi.players={};var $i=o.navigator;Gi.prototype.options_={techOrder:Xn.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:$i&&($i.languages&&$i.languages[0]||$i.userLanguage||$i.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1},["ended","seeking","seekable","networkState","readyState"].forEach((function(e){Gi.prototype[e]=function(){return this.techGet_(e)}})),zi.forEach((function(e){Gi.prototype["handleTech"+ft(e)+"_"]=function(){return this.trigger(e)}})),mt.registerComponent("Player",Gi);var Ji=r((function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(n,r)}e.exports=t})),Qi=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}},Zi=r((function(e){function t(n,r,i){return Qi()?e.exports=t=Reflect.construct:e.exports=t=function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Ji(i,n.prototype),i},t.apply(null,arguments)}e.exports=t})),eo="plugin",to={},no=function(e){return to.hasOwnProperty(e)},ro=function(e){return no(e)?to[e]:void 0},io=function(e,t){e.activePlugins_=e.activePlugins_||{},e.activePlugins_[t]=!0},oo=function(e,t,n){var r=(n?"before":"")+"pluginsetup";e.trigger(r,t),e.trigger(r+":"+t.name,t)},ao=function(e,t){return t.prototype.name=e,function(){oo(this,{name:e,plugin:t,instance:null},!0);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=Zi(t,[this].concat(r));return this[e]=function(){return o},oo(this,o.getEventHash()),o}},so=function(){function e(t){if(this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),st(this),delete this.trigger,ut(this,this.constructor.defaultState),io(t,this.name),this.dispose=this.dispose.bind(this),t.on("dispose",this.dispose)}var t=e.prototype;return t.version=function(){return this.constructor.VERSION},t.getEventHash=function(e){return void 0===e&&(e={}),e.name=this.name,e.plugin=this.constructor,e.instance=this,e},t.trigger=function(e,t){return void 0===t&&(t={}),We(this.eventBusEl_,e,this.getEventHash(t))},t.handleStateChanged=function(e){},t.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t.activePlugins_[e]=!1,this.player=this.state=null,t[e]=ao(e,to[e])},e.isBasic=function(t){var n="string"==typeof t?ro(t):t;return"function"==typeof n&&!e.prototype.isPrototypeOf(n.prototype)},e.registerPlugin=function(t,n){if("string"!=typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+typeof t+".");if(no(t))v.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(Gi.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!=typeof n)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+typeof n+".");return to[t]=n,t!==eo&&(e.isBasic(n)?Gi.prototype[t]=function(e,t){var n=function(){oo(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return io(this,e),oo(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach((function(e){n[e]=t[e]})),n}(t,n):Gi.prototype[t]=ao(t,n)),n},e.deregisterPlugin=function(e){if(e===eo)throw new Error("Cannot de-register base plugin.");no(e)&&(delete to[e],delete Gi.prototype[e])},e.getPlugins=function(e){var t;return void 0===e&&(e=Object.keys(to)),e.forEach((function(e){var n=ro(e);n&&((t=t||{})[e]=n)})),t},e.getPluginVersion=function(e){var t=ro(e);return t&&t.VERSION||""},e}();so.getPlugin=ro,so.BASE_PLUGIN_NAME=eo,so.registerPlugin(eo,so),Gi.prototype.usingPlugin=function(e){return!!this.activePlugins_&&!0===this.activePlugins_[e]},Gi.prototype.hasPlugin=function(e){return!!no(e)};var lo=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ji(e,t)},uo=function(e){return 0===e.indexOf("#")?e.slice(1):e};function co(e,t,n){var r=co.getPlayer(e);if(r)return t&&v.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&r.ready(n),r;var i="string"==typeof e?we("#"+uo(e)):e;if(!$(i))throw new TypeError("The element or ID supplied is not valid. (videojs)");i.ownerDocument.defaultView&&i.ownerDocument.body.contains(i)||v.warn("The element supplied is not included in the DOM"),t=t||{},co.hooks("beforesetup").forEach((function(e){var n=e(i,ht(t));E(n)&&!Array.isArray(n)?t=ht(t,n):v.error("please return an object in beforesetup hooks")}));var o=mt.getComponent("Player");return r=new o(i,t,n),co.hooks("setup").forEach((function(e){return e(r)})),r}if(co.hooks_={},co.hooks=function(e,t){return co.hooks_[e]=co.hooks_[e]||[],t&&(co.hooks_[e]=co.hooks_[e].concat(t)),co.hooks_[e]},co.hook=function(e,t){co.hooks(e,t)},co.hookOnce=function(e,t){co.hooks(e,[].concat(t).map((function(t){return function n(){return co.removeHook(e,n),t.apply(void 0,arguments)}})))},co.removeHook=function(e,t){var n=co.hooks(e).indexOf(t);return!(n<=-1||(co.hooks_[e]=co.hooks_[e].slice(),co.hooks_[e].splice(n,1),0))},!0!==o.VIDEOJS_NO_DYNAMIC_STYLE&&G()){var fo=we(".vjs-styles-defaults");if(!fo){fo=xe("vjs-styles-defaults");var ho=we("head");ho&&ho.insertBefore(fo,ho.firstChild),Re(fo,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}return Pe(1,co),co.VERSION=e,co.options=Gi.prototype.options_,co.getPlayers=function(){return Gi.players},co.getPlayer=function(e){var t,n=Gi.players;if("string"==typeof e){var r=uo(e),i=n[r];if(i)return i;t=we("#"+r)}else t=e;if($(t)){var o=t,a=o.player,s=o.playerId;if(a||n[s])return a||n[s]}},co.getAllPlayers=function(){return Object.keys(Gi.players).map((function(e){return Gi.players[e]})).filter(Boolean)},co.players=Gi.players,co.getComponent=mt.getComponent,co.registerComponent=function(e,t){Xn.isTech(t)&&v.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),mt.registerComponent.call(mt,e,t)},co.getTech=Xn.getTech,co.registerTech=Xn.registerTech,co.use=function(e,t){Kn[e]=Kn[e]||[],Kn[e].push(t)},Object.defineProperty(co,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(co.middleware,"TERMINATOR",{value:Gn,writeable:!1,enumerable:!0}),co.browser=X,co.TOUCH_ENABLED=U,co.extend=function(e,t){void 0===t&&(t={});var n=function(){e.apply(this,arguments)},r={};for(var i in"object"==typeof t?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),r=t):"function"==typeof t&&(n=t),lo(n,e),e&&(n.super_=e),r)r.hasOwnProperty(i)&&(n.prototype[i]=r[i]);return n},co.mergeOptions=ht,co.bind=Ge,co.registerPlugin=so.registerPlugin,co.deregisterPlugin=so.deregisterPlugin,co.plugin=function(e,t){return v.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),so.registerPlugin(e,t)},co.getPlugins=so.getPlugins,co.getPlugin=so.getPlugin,co.getPluginVersion=so.getPluginVersion,co.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),co.options.languages=ht(co.options.languages,((n={})[e]=t,n)),co.options.languages[e]},co.log=v,co.createLogger=y,co.createTimeRange=co.createTimeRanges=Et,co.formatTime=Tr,co.setFormatTime=function(e){br=e},co.resetFormatTime=function(){br=_r},co.parseUrl=qt,co.isCrossOrigin=Jt,co.EventTarget=Je,co.on=Ue,co.one=ze,co.off=Ve,co.trigger=We,co.xhr=tn,co.TextTrack=un,co.AudioTrack=cn,co.VideoTrack=fn,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((function(e){co[e]=function(){return v.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),ke[e].apply(null,arguments)}})),co.computedStyle=C,co.dom=ke,co.url=Qt,co.defineLazyProperty=Vi,co.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"}),co},e.exports=n()}).call(this,n(5))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"JumpForwardButton",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"JumpBackButton",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"LogoButton",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"PlaylistPanel",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"ProgressControlEventsBlocker",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"RecommendationsOverlay",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"ShoppablePanel",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"TitleBar",{enumerable:!0,get:function(){return c.default}});var r=f(n(42)),i=f(n(43)),o=f(n(44)),a=f(n(56)),s=f(n(60)),l=f(n(61)),u=f(n(69)),c=f(n(73));function f(e){return e&&e.__esModule?e:{default:e}}n(75)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i};function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=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(e){return!1}}();return function(){var n,r=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(f,e);var t,n,r,i=c(f);function f(){return a(this,f),i.apply(this,arguments)}return t=f,(n=[{key:"handleClick",value:function(e){l(h(f.prototype),"handleClick",this).call(this,e),this.player().currentTime(this.player().currentTime()+10)}},{key:"createEl",value:function(){return o.default.dom.createEl("button",{className:"vjs-control vjs-icon-skip-10-plus vjs-button"})}}])&&s(t.prototype,n),r&&s(t,r),f}(o.default.getComponent("ClickableComponent"));o.default.registerComponent("JumpForwardButton",d);var p=d;t.default=p},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i};function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=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(e){return!1}}();return function(){var n,r=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(f,e);var t,n,r,i=c(f);function f(){return a(this,f),i.apply(this,arguments)}return t=f,(n=[{key:"handleClick",value:function(e){l(h(f.prototype),"handleClick",this).call(this,e),this.player().currentTime(this.player().currentTime()-10)}},{key:"createEl",value:function(){return o.default.dom.createEl("button",{className:"vjs-control vjs-icon-skip-10-min vjs-button"})}}])&&s(t.prototype,n),r&&s(t,r),f}(o.default.getComponent("ClickableComponent"));o.default.registerComponent("JumpBackButton",d);var p=d;t.default=p},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i};n(45);var a=n(46),s=n(14);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=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(e){return!1}}();return function(){var n,r=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(h,e);var t,n,r,i=f(h);function h(){return l(this,h),i.apply(this,arguments)}return t=h,(n=[{key:"createEl",value:function(){var e=this.options_.playerOptions,t=e.showLogo?"block":"none",n=(0,s.isLight)(e)?a.LIGHT_BG_ICON:a.DARK_BG_ICON,r=e.logoImageUrl?e.logoImageUrl:n;return o.default.dom.createEl("a",{},{class:"vjs-control vjs-cloudinary-button vjs-button",href:e.logoOnclickUrl,target:"_blank",style:"display: ".concat(t,"; background-image: url(").concat(r,")")})}}])&&u(t.prototype,n),r&&u(t,r),h}(o.default.getComponent("ClickableComponent"));o.default.registerComponent("logoButton",p);var v=p;t.default=v},function(e,t,n){"use strict";n.r(t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DARK_BG_ICON=t.LIGHT_BG_ICON=void 0;t.LIGHT_BG_ICON="https://res.cloudinary.com/cloudinary-marketing/image/upload/v1597164189/creative_source/Logo/Cloud%20Glyph/cloudinary_cloud_glyph_regular.svg";t.DARK_BG_ICON="https://res.cloudinary.com/cloudinary-marketing/image/upload/v1597164191/creative_source/Logo/Cloud%20Glyph/cloudinary_cloud_glyph_white.svg"},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(48),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(5))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,s,l=1,u={},c=!1,f=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){o.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return u[l]=i,r(l),l++},h.clearImmediate=d}function d(e){delete u[e]}function p(e){if(c)setTimeout(p,0,e);else{var t=u[e];if(t){c=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{d(e),c=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(5),n(49))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,u=[],c=!1,f=-1;function h(){c&&l&&(c=!1,l.length?u=l.concat(u):f=-1,u.length&&d())}function d(){if(!c){var e=s(h);c=!0;for(var t=u.length;t;){for(l=u,u=[];++f<t;)l&&l[f].run();f=-1,t=u.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||c||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=void 0;t.groupBy=function(e,t){return e.reduce((function(e,n,r){return r=t(n),Object.prototype.hasOwnProperty.call(e,r)?e[r].push(n):e[r]=[n],e}),{})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fontFace=void 0;var r,i=(r=n(52))&&r.__esModule?r:{default:r};t.fontFace=function(e,t){var n=t.cloudinary.fontFace;void 0===n&&(n="Fira Sans"),n&&"inherit"!==n?(i.default.load({google:{families:[n]}}),e.style.fontFamily=n):"inherit"===n&&(e.style.fontFamily="inherit")}},function(e,t,n){var r;!function(){function i(e,t,n){return e.call.apply(e.bind,arguments)}function o(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function a(e,t,n){return(a=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?i:o).apply(null,arguments)}var s=Date.now||function(){return+new Date};function l(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var u=!!window.FontFace;function c(e,t,n,r){if(t=e.c.createElement(t),n)for(var i in n)n.hasOwnProperty(i)&&("style"==i?t.style.cssText=n[i]:t.setAttribute(i,n[i]));return r&&t.appendChild(e.c.createTextNode(r)),t}function f(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function h(e){e.parentNode&&e.parentNode.removeChild(e)}function d(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),i=0;i<t.length;i+=1){for(var o=!1,a=0;a<r.length;a+=1)if(t[i]===r[a]){o=!0;break}o||r.push(t[i])}for(t=[],i=0;i<r.length;i+=1){for(o=!1,a=0;a<n.length;a+=1)if(r[i]===n[a]){o=!0;break}o||t.push(r[i])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function p(e,t){for(var n=e.className.split(/\s+/),r=0,i=n.length;r<i;r++)if(n[r]==t)return!0;return!1}function v(e,t,n){function r(){s&&i&&o&&(s(a),s=null)}t=c(e,"link",{rel:"stylesheet",href:t,media:"all"});var i=!1,o=!0,a=null,s=n||null;u?(t.onload=function(){i=!0,r()},t.onerror=function(){i=!0,a=Error("Stylesheet failed to load"),r()}):setTimeout((function(){i=!0,r()}),0),f(e,"head",t)}function y(e,t,n,r){var i=e.c.getElementsByTagName("head")[0];if(i){var o=c(e,"script",{src:t}),a=!1;return o.onload=o.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),o.onload=o.onreadystatechange=null,"HEAD"==o.parentNode.tagName&&i.removeChild(o))},i.appendChild(o),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),o}return null}function m(){this.a=0,this.c=null}function g(e){return e.a++,function(){e.a--,b(e)}}function _(e,t){e.c=t,b(e)}function b(e){0==e.a&&e.c&&(e.c(),e.c=null)}function T(e){this.a=e||"-"}function E(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function C(e){return e.a+e.f}function k(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function S(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function O(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new T("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function P(e){if(e.g){var t=p(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),d(e.f,n,r)}j(e,"inactive")}function j(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,C(n)):e.h[t]())}function A(){this.c={}}function x(e,t){this.c=e,this.f=t,this.a=c(this.c,"span",{"aria-hidden":"true"},this.f)}function R(e){f(e.c,"body",e.a)}function I(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+w(e.c)+";font-style:"+k(e)+";font-weight:"+e.f+"00;"}function L(e,t,n,r,i,o){this.g=e,this.j=t,this.a=r,this.c=n,this.f=i||3e3,this.h=o||void 0}function M(e,t,n,r,i,o,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=i||3e3,this.u=o||null,this.m=this.j=this.h=this.g=null,this.g=new x(this.c,this.s),this.h=new x(this.c,this.s),this.j=new x(this.c,this.s),this.m=new x(this.c,this.s),e=I(e=new E(this.a.c+",serif",C(this.a))),this.g.a.style.cssText=e,e=I(e=new E(this.a.c+",sans-serif",C(this.a))),this.h.a.style.cssText=e,e=I(e=new E("serif",C(this.a))),this.j.a.style.cssText=e,e=I(e=new E("sans-serif",C(this.a))),this.m.a.style.cssText=e,R(this.g),R(this.h),R(this.j),R(this.m)}T.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},L.prototype.start=function(){var e=this.c.o.document,t=this,n=s(),r=new Promise((function(r,i){!function o(){s()-n>=t.f?i():e.fonts.load(function(e){return k(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(o,25)}),(function(){i()}))}()})),i=null,o=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([o,r]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var N={D:"serif",C:"sans-serif"},D=null;function B(){if(null===D){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);D=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return D}function F(e,t,n){for(var r in N)if(N.hasOwnProperty(r)&&t===e.f[N[r]]&&n===e.f[N[r]])return!0;return!1}function H(e){var t,n=e.g.a.offsetWidth,r=e.h.a.offsetWidth;(t=n===e.f.serif&&r===e.f["sans-serif"])||(t=B()&&F(e,n,r)),t?s()-e.A>=e.w?B()&&F(e,n,r)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?U(e,e.v):U(e,e.B):function(e){setTimeout(a((function(){H(this)}),e),50)}(e):U(e,e.v)}function U(e,t){setTimeout(a((function(){h(this.g.a),h(this.h.a),h(this.j.a),h(this.m.a),t(this.a)}),e),0)}function V(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}M.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=s(),H(this)};var W=null;function z(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&d(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),j(e,"active")):P(e.a))}function Y(e){this.j=e,this.a=new A,this.h=0,this.f=this.g=!0}function X(e,t,n,r,i){var o=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,s=r||{};if(0===n.length&&o)P(t.a);else{t.f+=n.length,o&&(t.j=o);var l,u=[];for(l=0;l<n.length;l++){var c=n[l],f=s[c.c],h=t.a,p=c;if(h.g&&d(h.f,[h.a.c("wf",p.c,C(p).toString(),"loading")]),j(h,"fontloading",p),h=null,null===W)if(window.FontFace){p=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var v=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);W=p?42<parseInt(p[1],10):!v}else W=!1;h=W?new L(a(t.g,t),a(t.h,t),t.c,c,t.s,f):new M(a(t.g,t),a(t.h,t),t.c,c,t.s,e,f),u.push(h)}for(l=0;l<u.length;l++)u[l].start()}}),0)}function K(e,t){this.c=e,this.a=t}function q(e,t){this.c=e,this.a=t}function G(e,t){this.c=e||$,this.a=[],this.f=[],this.g=t||""}V.prototype.g=function(e){var t=this.a;t.g&&d(t.f,[t.a.c("wf",e.c,C(e).toString(),"active")],[t.a.c("wf",e.c,C(e).toString(),"loading"),t.a.c("wf",e.c,C(e).toString(),"inactive")]),j(t,"fontactive",e),this.m=!0,z(this)},V.prototype.h=function(e){var t=this.a;if(t.g){var n=p(t.f,t.a.c("wf",e.c,C(e).toString(),"active")),r=[],i=[t.a.c("wf",e.c,C(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,C(e).toString(),"inactive")),d(t.f,r,i)}j(t,"fontinactive",e),z(this)},Y.prototype.load=function(e){this.c=new l(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],i=n.timeout;!function(e){e.g&&d(e.f,[e.a.c("wf","loading")]),j(e,"loading")}(t);r=function(e,t,n){var r,i=[];for(r in t)if(t.hasOwnProperty(r)){var o=e.c[r];o&&i.push(o(t[r],n))}return i}(e.a,n,e.c);var o=new V(e.c,t,i);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){X(e,o,t,n,r)}))}(this,new O(this.c,e),e)},K.prototype.load=function(e){function t(){if(o["__mti_fntLst"+r]){var n,i=o["__mti_fntLst"+r](),a=[];if(i)for(var s=0;s<i.length;s++){var l=i[s].fontfamily;null!=i[s].fontStyle&&null!=i[s].fontWeight?(n=i[s].fontStyle+i[s].fontWeight,a.push(new E(l,n))):a.push(new E(l))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,i=n.a.version;if(r){var o=n.c.o;y(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(i?"?v="+i:""),(function(i){i?e([]):(o["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},q.prototype.load=function(e){var t,n,r=this.a.urls||[],i=this.a.families||[],o=this.a.testStrings||{},a=new m;for(t=0,n=r.length;t<n;t++)v(this.c,r[t],g(a));var s=[];for(t=0,n=i.length;t<n;t++)if((r=i[t].split(":"))[1])for(var l=r[1].split(","),u=0;u<l.length;u+=1)s.push(new E(r[0],l[u]));else s.push(new E(r[0]));_(a,(function(){e(s,o)}))};var $="https://fonts.googleapis.com/css";function J(e){this.f=e,this.a=[],this.c={}}var Q={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Z={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},ee={i:"i",italic:"i",n:"n",normal:"n"},te=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function ne(e,t){this.c=e,this.a=t}var re={Arimo:!0,Cousine:!0,Tinos:!0};function ie(e,t){this.c=e,this.a=t}function oe(e,t){this.c=e,this.f=t,this.a=[]}ne.prototype.load=function(e){var t=new m,n=this.c,r=new G(this.a.api,this.a.text),i=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var i=t[r].split(":");3==i.length&&e.f.push(i.pop());var o="";2==i.length&&""!=i[1]&&(o=":"),e.a.push(i.join(o))}}(r,i);var o=new J(i);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),i=r[0].replace(/\+/g," "),o=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,l=(s=s.split(",")).length,u=0;u<l;u++){var c;if((c=s[u]).match(/^[\w-]+$/))if(null==(f=te.exec(c.toLowerCase())))c="";else{if(c=null==(c=f[2])||""==c?"n":ee[c],null==(f=f[1])||""==f)f="4";else var f=Z[f]||(isNaN(f)?"4":f.substr(0,1));c=[c,f].join("")}else c="";c&&a.push(c)}0<a.length&&(o=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=Q[r[0]])&&(e.c[i]=r))}for(e.c[i]||(r=Q[i])&&(e.c[i]=r),r=0;r<o.length;r+=1)e.a.push(new E(i,o[r]))}}(o),v(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),g(t)),_(t,(function(){e(o.a,o.c,re)}))},ie.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?y(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],i=0;i<t.length;i+=2)for(var o=t[i],a=t[i+1],s=0;s<a.length;s++)r.push(new E(o,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},oe.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var i=0,o=n.fonts.length;i<o;++i){var a=n.fonts[i];r.a.push(new E(a.name,S("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},y(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var ae=new Y(window);ae.a.c.custom=function(e,t){return new q(t,e)},ae.a.c.fontdeck=function(e,t){return new oe(t,e)},ae.a.c.monotype=function(e,t){return new K(t,e)},ae.a.c.typekit=function(e,t){return new ie(t,e)},ae.a.c.google=function(e,t){return new ne(t,e)};var se={load:a(ae.load,ae)};void 0===(r=function(){return se}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.playButton=void 0;t.playButton=function(e,t){"init"===t.bigPlayButton&&(e.classList.add("vjs-big-play-button-init-only"),t.bigPlayButton=!0)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){var t=e.loop(),n=e.paused(),r=e.muted(),i=e.isFullscreen(),o={label:'<span class="player-version">Cloudinary Player v1.6.2-edge.13</span>'};return e.controls()?[{label:t?"Unloop":"Loop",listener:function(){e.loop(!t)}},{label:n?"Play":"Pause",listener:function(){n?e.play():e.pause()}},{label:r?"Unmute":"Mute",listener:function(){e.muted(!r)}},{label:i?"Exit Fullscreen":"Fullscreen",listener:function(){i?e.exitFullscreen():e.requestFullscreen()}},o]:[o]};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeAttributes=void 0;var r=n(9),i=/^(data-cld-)(\w+)/,o={};var a=function(e){return function(e){var t=null;if(""===e)return!0;try{t=JSON.parse(e)}catch(e){}return t||(t=Number(e))||e}(e)};t.normalizeAttributes=function(e){var t={};if(e&&e.attributes&&e.attributes.length>0)for(var n=e.attributes,s=n.length-1;s>=0;s--){var l=n[s].name,u=n[s].value;if(l.match(i)&&(l=(0,r.camelize)(l.replace(i,"$2"))),"boolean"==typeof e[l])u=null!==u;else u=(o[l]||a)(u);t[l]=u}return t}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(0));n(25);var o=a(n(57));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=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(e){return!1}}();return function(){var n,r=p(e);if(t){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(f,e);var t,n,r,a=c(f);function f(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,f),n=a.call(this,e,r);var i=function(){n.render()};return e.on("playlistitemchanged",i),n.render(),n.dispose=function(){d((t=h(n),p(f.prototype)),"dispose",t).call(t),e.off("playlistitemchanged",i)},n}return t=f,(n=[{key:"createEl",value:function(){var e=d(p(f.prototype),"createEl",this).call(this);return e.classList.add("cld-plw-panel"),e}},{key:"removeAll",value:function(){for(var e=this.children(),t=e.length-1;t>=0;--t)this.removeChild(e[t])}},{key:"getItems",value:function(){var e=this.player().cloudinary.playlist(),t=e._repeat;if(this.options_.showAll)return e.list();var n=[],r=this.options_.total,i=e.currentIndex(),o=e.list()[i];for(n.push(o);n.length<r;){if(-1===(i=e.nextIndex(i))){if(!t&&n.length>0)break;i=0}o=e.list()[i],n.push(o)}return n}},{key:"render",value:function(){var e=this,t=this.getItems();this.removeAll(),t.forEach((function(t,n){var r=new o.default(e.player(),i.default.mergeOptions(e.options_,{item:t,next:1===n,current:0===n}));e.addChild(r)}))}}])&&l(t.prototype,n),r&&l(t,r),f}(i.default.getComponent("Component"));i.default.registerComponent("playlistPanel",v);var y=v;t.default=y},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(0)),o=a(n(58));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=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(e){return!1}}();return function(){var n,r=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=i.default.dom||i.default,p={source:null,next:!1},v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(a,e);var t,n,r,o=c(a);function a(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var n=i.default.mergeOptions(p,t);return o.call(this,e,n)}return t=a,(n=[{key:"handleClick",value:function(e){l(h(a.prototype),"handleClick",this).call(this,e),this.play()}},{key:"play",value:function(){var e=this.getItem(),t=this.player().cloudinary.playlist().list().indexOf(e);if(-1===t)throw new Error("Invalid playlist item...");this.player().cloudinary.playlist().playAtIndex(t)}},{key:"isCurrent",value:function(){return this.options_.current}},{key:"getTitle",value:function(){return l(h(a.prototype),"getTitle",this).call(this)}},{key:"getDuration",value:function(){return l(h(a.prototype),"getDuration",this).call(this)}},{key:"createEl",value:function(){var e=l(h(a.prototype),"createEl",this).call(this);e.classList.add("cld-plw-panel-item");var t=d.createEl("div",{className:"cld-plw-item-info-wrap"}),n=d.createEl("div",{className:"cld-plw-item-title"});if(this.isCurrent()){e.classList.add("cld-plw-panel-item-active");var r=d.createEl("span",{className:"cld-plw-item-title-curr"},{},"Now Playing: ");n.appendChild(r)}var i=d.createEl("span",{className:"cld-plw-item-title"},{},this.getTitle());n.appendChild(i);var o=d.createEl("div",{className:"cld-plw-item-duration"},{},this.getDuration());return t.appendChild(n),t.appendChild(o),e&&e.appendChild(t),e.appendChild(t),e}}])&&s(t.prototype,n),r&&s(t,r),a}(o.default);i.default.registerComponent("playlistPanelItem",v);var y=v;t.default=y},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i};function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=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(e){return!1}}();return function(){var n,r=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(59);var h=o.default.getComponent("ClickableComponent"),d={item:null,transformation:{width:300,aspect_ratio:"16:9",crop:"pad",background:"black"}},p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(c,e);var t,n,r,i=u(c);function c(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var n=o.default.mergeOptions(d,t);return i.call(this,e,n)}return t=c,(n=[{key:"getItem",value:function(){return this.options_.item}},{key:"getTitle",value:function(){return this.getItem().info().title}},{key:"getDuration",value:function(){return" "}},{key:"getThumbnail",value:function(){return this.getItem().poster().url({transformation:this.options_.transformation})}},{key:"handleClick",value:function(e){e.preventDefault()}},{key:"createControlTextEl",value:function(){}},{key:"createEl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"a",t=s(f(c.prototype),"createEl",this).call(this,e,{className:"cld-thumbnail",href:"#"}),n=s(f(c.prototype),"createEl",this).call(this,"img",{className:"cld-thumbnail-img",src:this.getThumbnail()});return t.appendChild(n),t.style.backgroundImage="url('".concat(this.getThumbnail(),"')"),t}}])&&a(t.prototype,n),r&&a(t,r),c}(h);t.default=p},function(e,t,n){"use strict";n.r(t)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i,o=(i=n(0))&&i.__esModule?i:{default:i};function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=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(e){return!1}}();return function(){var n,r=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(o,e);var t,n,r,i=c(o);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(this,o),i.call(this,e,t)}return t=o,(n=[{key:"createEl",value:function(){return l(h(o.prototype),"createEl",this).call(this,"div",{className:"vjs-progress-control-events-blocker"})}}])&&s(t.prototype,n),r&&s(t,r),o}(o.default.getComponent("Component"));o.default.registerComponent("progressControlEventsBlocker",d)},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=((r=n(62))&&r.__esModule?r:{default:r}).default;t.default=i},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(0)),o=s(n(63)),a=s(n(67));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e)||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(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){return(c=y()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&p(i,n.prototype),i}).apply(null,arguments)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(){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(e){return!1}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(68);var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(_,e);var t,n,r,s,u,g=(t=_,n=y(),function(){var e,r=m(t);if(n){var i=m(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return v(this,e)});function _(e,t){var n;f(this,_);for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];return(n=g.call.apply(g,[this,e].concat(i)))._content=new o.default(e),n.addChild(n._content),n.addChild(c(a.default,[e,{clickHandler:function(){n.close()}}].concat(i))),n.setEvents(e),n.doNotOpen=!1,n}return r=_,(s=[{key:"setEvents",value:function(e){var t=this;this.on(e,"recommendationschanged",(function(e,n){t.setItems.apply(t,l(n.items))})),this.on(e,"recommendationsnoshow",this.setDoNotOpen),this.on(e,"recommendationsshow",this.open),this.on(e,"recommendationshide",this.close),this.on(e,"cldsourcechanged",(function(){t.clearItems(),t.close()}))}},{key:"setDoNotOpen",value:function(){this.doNotOpen=!0}},{key:"open",value:function(){this.doNotOpen||(this._showControlsOnClose=this.player().controls(),this.player().controls(!1),this.el().style.visibility="visible")}},{key:"clearItems",value:function(){this._content.clearItems()}},{key:"close",value:function(){this.el().style.visibility="hidden",this._showControlsOnClose&&this.player().controls(!0)}},{key:"createEl",value:function(){var e="vjs-recommendations-overlay",t=d(m(_.prototype),"createEl",this).call(this,"div",{className:e});return i.default.dom.addClass(t,e),t}},{key:"setItems",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.doNotOpen=!1,r=r.slice(0,3),(t=this._content).setItems.apply(t,[e].concat(l(r)))}},{key:"handleClick",value:function(){this.stopPropagation()}},{key:"dispose",value:function(){d(m(_.prototype),"dispose",this).call(this)}}])&&h(r.prototype,s),u&&h(r,u),_}(i.default.getComponent("Component"));i.default.registerComponent("recommendationsOverlay",g);var _=g;t.default=_},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(0)),o=s(n(64)),a=s(n(65));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function f(e,t,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=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(e){return!1}}();return function(){var n,r=y(e);if(t){var i=y(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=i.default.getComponent("Component"),g=function(e){h(n,e);var t=p(n);function n(e){var r;l(this,n);for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(o)))._content=new _(e),r.addChild(r._content),r}return c(n,[{key:"setItems",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=this._content).setItems.apply(t,[e].concat(r))}},{key:"clearItems",value:function(){this._content._primary.clearItem(),this._content._secondaryContainer.clearItems()}},{key:"createEl",value:function(){return f(y(n.prototype),"createEl",this).call(this,"div",{className:"vjs-recommendations-overlay-content"})}}]),n}(m),_=function(e){h(n,e);var t=p(n);function n(e){var r;l(this,n);for(var i=arguments.length,s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];return(r=t.call.apply(t,[this,e].concat(s)))._primary=new o.default(e),r._secondaryContainer=new a.default(e),r.addChild(r._primary),r.addChild(r._secondaryContainer),r}return c(n,[{key:"setItems",value:function(e){var t;this._primary.setItem(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=this._secondaryContainer).setItems.apply(t,r)}},{key:"createEl",value:function(){return f(y(n.prototype),"createEl",this).call(this,"div",{className:"aspect-ratio-content"})}}]),n}(m),b=g;t.default=b},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(0)),o=s(n(26)),a=s(n(27));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=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(e){return!1}}();return function(){var n,r=p(e);if(t){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=i.default.dom||i.default,y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(o,e);var t,n,r,i=h(o);function o(){return l(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"setItem",value:function(e){c(p(o.prototype),"setItem",this).call(this,e);var t=this.source.info();if(this.setTitle(t.title),this.setSubtitle(t.subtitle),t.description){var n=t.description.length>300?t.description.substring(0,300)+"...":t.description;this.setDescription(n)}}},{key:"setPoster",value:function(e){this.poster.style.backgroundImage="url('".concat(e,"')")}},{key:"setTitle",value:function(e){a.default.setText(this.title,e)}},{key:"setSubtitle",value:function(e){a.default.setText(this.subtitle,e)}},{key:"setDescription",value:function(e){a.default.setText(this.description,e)}},{key:"clearItem",value:function(){this.setTitle(""),this.setSubtitle(""),this.setDescription(""),this.poster.style.backgroundImage=null}},{key:"createEl",value:function(){var e=c(p(o.prototype),"createEl",this).call(this,"div",{className:"vjs-recommendations-overlay-item vjs-recommendations-overlay-item-primary"});return this.poster=v.createEl("div",{className:"vjs-recommendations-overlay-item-primary-image"}),this.title=v.createEl("h2"),this.title.innerHTML="",this.subtitle=v.createEl("h3"),this.subtitle.innerHTML="",this.description=v.createEl("p"),this.description.innerHTML="",this.content=v.createEl("div",{className:"vjs-recommendations-overlay-item-info vjs-recommendations-overlay-item-primary-content"}),this.content.appendChild(this.title),this.content.appendChild(this.subtitle),this.content.appendChild(this.description),e.appendChild(this.poster),e.appendChild(this.content),e}}])&&u(t.prototype,n),r&&u(t,r),o}(o.default);t.default=y},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(0)),o=a(n(66));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=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(e){return!1}}();return function(){var n,r=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(a,e);var t,n,r,i=f(a);function a(){return s(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"setItems",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.clearItems(),n&&n.forEach((function(t){var n=new o.default(e.player());n.setItem(t),e.addChild(n)}))}},{key:"clearItems",value:function(){var e=this;this.children().forEach((function(){e.removeChild(e.children()[0])}))}},{key:"createEl",value:function(){return u(d(a.prototype),"createEl",this).call(this,"div",{className:"vjs-recommendations-overlay-item-secondary-container"})}}])&&l(t.prototype,n),r&&l(t,r),a}(i.default.getComponent("Component"));t.default=p},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(0)),o=a(n(26));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=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(e){return!1}}();return function(){var n,r=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=i.default.dom||i.default,v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(o,e);var t,n,r,i=f(o);function o(){return s(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"setItem",value:function(e){u(d(o.prototype),"setItem",this).call(this,e),this.setDuration("")}},{key:"setPoster",value:function(e){this.el().style.backgroundImage="url('".concat(e,"')")}},{key:"setDuration",value:function(e){this.duration.innerText=e}},{key:"createEl",value:function(){var e=u(d(o.prototype),"createEl",this).call(this,"div",{className:"vjs-recommendations-overlay-item vjs-recommendations-overlay-item-secondary"});this.title=p.createEl("span",{className:"vjs-recommendations-overlay-item-secondary-title"}),this.title.innerHTML="",this.duration=p.createEl("span",{className:"vjs-recommendations-overlay-item-secondary-duration"}),this.duration.innerHTML="";var t=p.createEl("div",{className:"vjs-recommendations-overlay-item-info"});return t.appendChild(this.title),t.appendChild(this.duration),e.appendChild(t),e}},{key:"handleClick",value:function(){u(d(o.prototype),"handleClick",this).call(this),this.action()}}])&&l(t.prototype,n),r&&l(t,r),o}(o.default);t.default=v},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i;function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=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(e){return!1}}();return function(){var n,r=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(c,e);var t,n,r,i=u(c);function c(){return o(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"createEl",value:function(){return s(f(c.prototype),"createEl",this).call(this,"span",{className:"vjs-recommendations-overlay-hide vjs-icon-close"})}},{key:"handleClick",value:function(){this.options_.clickHandler()}}])&&a(t.prototype,n),r&&a(t,r),c}(((i=n(0))&&i.__esModule?i:{default:i}).default.getComponent("ClickableComponent"));t.default=h},function(e,t,n){"use strict";n.r(t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(0)),i=n(1),o=n(70),a=n(28);n(25);var s=c(n(71)),l=c(n(11)),u=n(30);function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=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(e){return!1}}();return function(){var n,r=_(e);if(t){var i=_(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t,n){return(g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(y,e);var t,n,r,c=v(y);function y(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,y),(n=c.call(this,e,r)).options=r;var i=function(){n.render()};return e.on("shoppableitemchanged",i),n.render(),n.dispose=function(){g((t=m(n),_(y.prototype)),"dispose",t).call(t),e.off("shoppableitemchanged",i)},n}return t=y,(n=[{key:"createEl",value:function(){var e=g(_(y.prototype),"createEl",this).call(this);return[u.CLD_SPBL_PANEL_CLASS,"base-color-bg"].map((function(t){return e.classList.add(t)})),e}},{key:"removeAll",value:function(){for(var e=this.children(),t=e.length-1;t>=0;--t)this.removeChild(e[t])}},{key:"getItems",value:function(){var e=this,t=this.player_.cloudinary.cloudinaryConfig();return this.options.products.map((function(n){n.onHover&&"object"===f(n.onHover.args)&&(n.onHover.args.transformation=(0,i.assign)({},e.options.transformation,n.onHover.args.transformation));var r={productId:n.productId,productName:n.productName,title:n.title,onHover:n.onHover,onClick:n.onClick,startTime:n.startTime,endTime:n.endTime};return{imageSrc:new l.default(n.publicId,{cloudinaryConfig:t,transformation:(0,i.assign)({},e.options.transformation,n.transformation)}),conf:r}}))}},{key:"scrollToActiveItem",value:function(){var e=this.el_.getElementsByClassName("active");if(e.length>0){var t=e[0].offsetTop-12;"scrollBehavior"in document.documentElement.style?this.el_.scrollTo({top:t,behavior:"smooth"}):this.el_.scrollTop=t}}},{key:"render",value:function(){var e=this;this.removeAll();var t=this.getItems(),n=(0,o.throttle)((function(){return e.scrollToActiveItem()}),1e3);t.forEach((function(t,r){var i=new s.default(e.player(),{item:t.imageSrc,conf:t.conf,next:1===r,current:0===r,clickHandler:function(t){var n=t.currentTarget||t.target,r=e.player_.ended()?"productClickPost":"productClick";if(e.player_.trigger(r,{productId:n.dataset.productId,productName:n.dataset.productName}),n.dataset.clickAction===u.SHOPPABLE_CLICK_ACTIONS.GO_TO)window.open(n.dataset.gotoUrl,"_blank");else if(n.dataset.clickAction===u.SHOPPABLE_CLICK_ACTIONS.SEEk){var i=(0,a.parseTime)(n.dataset.seek);null!==i&&(e.player_.addClass("vjs-has-started"),e.player_.postModal&&e.player_.postModal.close(),e.player_.currentTime(i),e.player_.removeClass(u.SHOPPABLE_PANEL_VISIBLE_CLASS),e.player_.addClass(u.SHOPPABLE_PANEL_HIDDEN_CLASS),e.player_.addClass(u.SHOPPABLE_PRODUCTS_OVERLAY_CLASS),e.player_.one("seeked",(function(){return e.player_.trigger("showProductsOverlay")})))}"false"!==n.dataset.pause&&(e.player_.pause(),(0,a.parseTime)(n.dataset.pause)&&setTimeout((function(){e.player_.play()}),1e3*(0,a.parseTime)(n.dataset.pause)))}});i.on("mouseover",(function(t){var n=t.currentTarget||t.target,r=e.player_.ended()?"productHoverPost":"productHover";e.player_.trigger(r,{productId:n.dataset.productId,productName:n.dataset.productName})})),void 0!==t.conf.startTime&&void 0!==t.conf.endTime&&e.player_.on("timeupdate",(function(){var r=e.player_.currentTime();r>=t.conf.startTime&&r<t.conf.endTime?(i.el_.classList.add("active"),n()):i.el_.classList.contains("active")&&i.el_.classList.remove("active")})),e.addChild(i)}))}}])&&d(t.prototype,n),r&&d(t,r),y}(r.default.getComponent("Component"));r.default.registerComponent("shoppablePanel",b);var T=b;t.default=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=function(e,t){var n=window.performance.now();return function(){var r=window.performance.now();r-n>=t&&(e.apply(void 0,arguments),n=r)}}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=l(n(0)),o=n(72),a=l(n(11)),s=n(30);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=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(e){return!1}}();return function(){var n,r=p(e);if(t){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=i.default.getComponent("ClickableComponent"),y=i.default.dom||i.default,m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(a,e);var t,n,r,i=h(a);function a(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=i.call(this,e,t)).options_=t,n.isDragged=!1,n}return t=a,(n=[{key:"handleClick",value:function(e){e.preventDefault(),e.stopPropagation(),(0,o.elMatches)(this.el_,".dragged .".concat(s.CLD_SPBL_ITEM))||this.options_.clickHandler(e),this.isDragged=!1}},{key:"getTitle",value:function(){return this.options_.conf.title}},{key:"createEl",value:function(){var e=c(p(a.prototype),"createEl",this).call(this,"a",{className:"".concat(s.CLD_SPBL_ITEM," base-color-bg accent-color-text"),href:"#"});e.setAttribute("data-product-id",this.options_.conf.productId||""),e.setAttribute("data-product-name",this.options_.conf.productName||""),this.options_.conf.onHover&&g(e,this.options_.conf.onHover,this.options_.item.cloudinaryConfig()),this.options_.conf.onClick&&_(e,this.options_.conf.onClick);var t=c(p(a.prototype),"createEl",this).call(this,"img",{className:"".concat(s.CLD_SPBL_IMAGE," ").concat(s.SHOPPABLE_WIDGET_RESPONSIVE_CLASS)},{"data-src":this.options_.item.url()});if(e.appendChild(t),this.getTitle()){var n=y.createEl("div",{className:"cld-spbl-item-info base-color-semi-bg text-color-text"}),r=y.createEl("span",{className:"cld-spbl-item-title"},{},this.getTitle());n.appendChild(r),e.appendChild(n)}return e}}])&&u(t.prototype,n),r&&u(t,r),a}(v),g=function(e,t,n){if(e.setAttribute("data-hover-action",t.action),t.action===s.SHOPPABLE_HOVER_ACTIONS.OVERLAY){var r=y.createEl("span",{className:"cld-spbl-overlay-text base-color-text"},{},t.args),i=y.createEl("span",{className:"cld-spbl-overlay text-color-semi-bg base-color-text"},{title:t.args},r);e.appendChild(i)}else{var o=new a.default(t.args.publicId,{cloudinaryConfig:n,transformation:t.args.transformation}),l=y.createEl("img",{className:"".concat(s.CLD_SPBL_IMAGE," cld-spbl-hover-img ").concat(s.SHOPPABLE_WIDGET_RESPONSIVE_CLASS)},{"data-src":o.url()});e.appendChild(l)}},_=function(e,t){e.setAttribute("data-click-action",t.action),e.setAttribute("data-pause",t.pause),t.action===s.SHOPPABLE_CLICK_ACTIONS.SEEk?e.setAttribute("data-seek",t.args.time):t.action===s.SHOPPABLE_CLICK_ACTIONS.GO_TO&&e.setAttribute("data-goto-url",t.args.url)};i.default.registerComponent("shoppablePanelItem",m);var b=m;t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.elMatches=void 0;t.elMatches=function(e,t){var n=Element.prototype;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(e){return-1!==[].indexOf.call(document.querySelectorAll(e),this)}).call(e,t)}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(0));n(74);var o=a(n(27));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=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(e){return!1}}();return function(){var n,r=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=i.default.dom||i.default,v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(a,e);var t,n,r,i=f(a);function a(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(this,a),(t=i.call(this,e,n)).on(e,"cldsourcechanged",(function(e,n){var r=n.source;return t.setItem(r)})),t}return t=a,(n=[{key:"setItem",value:function(e){if(!e)return this.setTitle(""),void this.setSubtitle("");var t=e.info();this.setTitle(t.title),this.setSubtitle(t.subtitle)}},{key:"setTitle",value:function(e){return o.default.setText(this.titleEl,e),this.refresh(),e}},{key:"setSubtitle",value:function(e){return o.default.setText(this.subtitleEl,e),this.refresh(),e}},{key:"refresh",value:function(){var e=this;e.titleEl.innerText||e.subtitleEl.innerText?this.show():this.hide()}},{key:"createEl",value:function(){this.titleEl=p.createEl("div",{className:"vjs-title-bar-title"}),this.subtitleEl=p.createEl("div",{className:"vjs-title-bar-subtitle"});var e=u(d(a.prototype),"createEl",this).call(this,"div",{append:this.titleEl,className:"vjs-title-bar"});return e.appendChild(this.titleEl),e.appendChild(this.subtitleEl),e}}])&&l(t.prototype,n),r&&l(t,r),a}(i.default.getComponent("Component"));i.default.registerComponent("titleBar",v);var y=v;t.default=y},function(e,t,n){"use strict";n.r(t)},function(e,t,n){"use strict";n.r(t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(77)),i=c(n(78)),o=c(n(80)),a=c(n(81)),s=c(n(86)),l=c(n(96)),u=c(n(98));function c(e){return e&&e.__esModule?e:{default:e}}var f={autoplayOnScroll:r.default,floatingPlayer:i.default,colors:o.default,contextMenu:a.default,cloudinary:s.default,analytics:l.default,vttThumbnails:u.default};t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new l(this,e).init()};var r=n(6),i=n(3),o=n(1);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s={fraction:.5,isMuted:!0},l=function e(t){var n=this,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,e),l=(0,o.assign)({},s,l),this.player=t;var u=(0,i.sliceProperties)(l,"fraction"),c=!1,f=!1,h=null,d=null;this.init=function(){g(),m()};var p=function(){window.removeEventListener("DOMContentLoaded",m,!1),window.removeEventListener("load",m,!1),window.removeEventListener("scroll",m,!1),window.removeEventListener("resize",m,!1),n.player.off("pause",h),n.player.off("play",d)},v=function(){c=!0,f=!1,n.player.pause()},y=function(){c=!1,f=!0,n.player.play()},m=function(){(0,r.isElementInViewport)(n.player.el(),{fraction:u.fraction})?n.player.paused()&&y():n.player.paused()||n.player.activePlugins_.floatingPlayer||v()},g=function(){h=function(){n.player.waiting||c||p()},d=function(){f||p()},window.addEventListener("DOMContentLoaded",m,!1),window.addEventListener("load",m,!1),window.addEventListener("scroll",m,!1),window.addEventListener("resize",m,!1),n.player.on("pause",h),n.player.on("play",d)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new u(this,e).init()};var r=n(6),i=n(3),o=n(1);n(79);var a=n(7);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var l={fraction:.5,collapsedWidth:300,floatTo:"right"},u=function e(t){var n=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),(u=(0,o.assign)({},l,u)).floatTo&&u.floatTo!==a.FLOATING_TO.LEFT&&u.floatTo!==a.FLOATING_TO.RIGHT&&(u.floatTo=l.floatTo),this.player=t;var c=(0,i.sliceProperties)(u,"fraction"),f=null,h=!1,d=!1;this.init=function(){m()};var p=function(e){var t=document.createElement("div");for(e.appendChild(t);e.firstChild!==t;)t.appendChild(e.firstChild);return t},v=function(){window.removeEventListener("DOMContentLoaded",T,!1),window.removeEventListener("load",T,!1),window.removeEventListener("scroll",T,!1),window.removeEventListener("resize",T,!1)},y=function(){window.addEventListener("DOMContentLoaded",T,!1),window.addEventListener("load",T,!1),window.addEventListener("scroll",T,!1),window.addEventListener("resize",T,!1)},m=function(){n.player.on("play",T),n.player.on("play",y),n.player.on("dispose",v)},g=function(){var e=n.player.el(),t=e.getBoundingClientRect();if(!d){(f=p(e)).setAttribute("class","cld-video-player-floater cld-video-player-floater-bottom-"+u.floatTo),f.setAttribute("style",["width: "+u.collapsedWidth+"px;","top: "+t.top+"px;","left: "+t.left+"px;","right: "+(document.documentElement.clientWidth-t.right)+"px;","bottom: "+(document.documentElement.clientHeight-t.bottom)+"px;"].join(""));var r=p(f);r.setAttribute("class","cld-video-player-floater-inner"),r.setAttribute("style","padding-bottom: "+100*t.height/t.width+"%;");var i=document.createElement("button");i.setAttribute("class","cld-video-player-floater-close"),i.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><polygon fill-rule="evenodd" points="370 7.41 368.59 6 364 10.59 359.41 6 358 7.41 362.59 12 358 16.59 359.41 18 364 13.41 368.59 18 370 16.59 365.41 12" transform="translate(-358 -6)"/></svg>',i.onclick=function(){_(),b()},f.appendChild(i),d=!0}setTimeout((function(){f.classList.add("cld-video-player-floating")})),h=!0},_=function(){f.classList.remove("cld-video-player-floating"),h=!1},b=function(){v(),n.player.off("play",T),n.player.off("play",y)},T=function(){(0,r.isElementInViewport)(n.player.el(),{fraction:c.fraction})?h&&_():h||g()}}},function(e,t,n){"use strict";n.r(t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new h(this,e).init()},t.getDefaultPlayerColor=void 0;var r=n(1),i=n(17),o=n(14);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s="\n .PLAYER-CLASS-PREFIX {\n --color-accent: --accent-color;\n --color-base: --base-color;\n --color-text: --text-color;\n\n color: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-time-tooltip,\n .PLAYER-CLASS-PREFIX .vjs-mouse-display:after,\n .PLAYER-CLASS-PREFIX .vjs-play-progress:after {\n color: --base-color;\n background-color: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-slider {\n background-color: rgba(--accent-color, 0.3);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-load-progress,\n .PLAYER-CLASS-PREFIX .vjs-load-progress div {\n background: rgba(--accent-color, 0.2);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-volume-level,\n .PLAYER-CLASS-PREFIX .vjs-play-progress {\n background: --accent-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-volume-vertical {\n background-color: rgba(--base-color, 0.7);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-volume-panel-horizontal .vjs-control:before {\n border-color: transparent transparent rgba(--accent-color, 0.4) transparent;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-volume-panel-horizontal .vjs-volume-level:before {\n border-color: transparent transparent --accent-color transparent;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-title-bar {\n color: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay {\n color: --text-color;\n background-color: rgba(--base-color, 0.4);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item {\n box-shadow: 0 0.5em 1.2em 0px --base-color;\n color: --text-color;\n border: 1px solid --text-color !important;\n position: relative;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item:active,\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item:hover {\n border: 1px solid --accent-color !important;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-context-menu-ui .vjs-menu-content .vjs-menu-item:active,\n .PLAYER-CLASS-PREFIX .vjs-context-menu-ui .vjs-menu-content .vjs-menu-item:hover {\n color: --text-color;\n background-color: --accent-color;\n }\n\n .PLAYER-CLASS-PREFIX.vjs-ad-playing .vjs-progress-control .vjs-play-progress {\n background: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX.cld-plw-layout {\n background-color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .cld-plw-item-info-wrap {\n color: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .cld-plw-panel-item {\n border-color: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .cld-video-player-floater-close polygon {\n fill: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .cld-spbl-product-hotspot:after {\n background: --base-color;\n box-shadow: 0 0 0 4px --accent-color, 0 0 0 8px rgba(--text-color, 0.24);\n }\n\n .PLAYER-CLASS-PREFIX .cld-spbl-product-tooltip {\n color: --base-color;\n background: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .base-color-semi-bg {\n background: rgba(--base-color, 0.7);\n }\n\n .PLAYER-CLASS-PREFIX .text-color-semi-bg {\n background: rgba(--text-color, 0.7);\n }\n\n .PLAYER-CLASS-PREFIX .text-color-text {\n color: --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .base-color-text {\n color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .accent-color-text {\n color: --accent-color;\n }\n",l="\n\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-dark .base-color-bg,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-dark .vjs-control-bar,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-dark .vjs-big-play-button,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-dark .vjs-menu-button\n .vjs-menu-content {\n background-color: rgba(--base-color, 0.6);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-title-bar {\n background-image: linear-gradient(--base-color, rgba(255, 255, 255, 0) 100%);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-primary .vjs-recommendations-overlay-item-primary-content {\n background-color: rgba(--base-color, 0.6);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-secondary div {\n background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 80%);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-upcoming-video {\n border: 1px solid rgba(--text-color, 0.5);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-upcoming-video .vjs-upcoming-video-bar {\n background-color: rgba(--base-color, 0.6);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-context-menu-ui .vjs-menu-content {\n background-color: rgba(--base-color, 0.6);\n }\n",u="\n .PLAYER-CLASS-PREFIX .vjs-title-bar {\n flex-direction: row;\n justify-content: left;\n height: 3.6em;\n background: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-title-bar div {\n width: auto;\n padding: 0 inherit;\n margin: 0;\n }\n\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-light .base-color-bg,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-light .vjs-control-bar,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-light .vjs-big-play-button,\n .PLAYER-CLASS-PREFIX.cld-video-player-skin-light .vjs-menu-button .vjs-menu-content {\n background-color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-primary .vjs-recommendations-overlay-item-primary-content {\n background-color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-primary:active .vjs-recommendations-overlay-item-primary-content,\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-primary:hover .vjs-recommendations-overlay-item-primary-content {\n color: --base-color;\n background-color: rgba(--accent-color, 0.8);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-secondary:active div,\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-secondary:hover div {\n color: --base-color;\n background-color: rgba(--accent-color, 0.8);\n }\n\n .PLAYER-CLASS-PREFIX .vjs-recommendations-overlay .vjs-recommendations-overlay-item.vjs-recommendations-overlay-item-secondary div {\n background: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-upcoming-video {\n border: 1px solid --text-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-upcoming-video .vjs-upcoming-video-bar {\n background-color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .vjs-context-menu-ui .vjs-menu-content {\n background-color: --base-color;\n }\n\n .PLAYER-CLASS-PREFIX .cld-plw-item-info-wrap {\n color: --text-color;\n }\n\n @media only screen and (max-width: 768px) {\n .PLAYER-CLASS-PREFIX.cld-plw-vertical .cld-plw-item-info-wrap {\n color: --accent-color;\n }\n }\n",c={colorsDark:{base:"#000000",accent:"#FF620C",text:"#FFFFFF"},colorsLight:{base:"#FFFFFF",accent:"#0078FF",text:"#0E2F5A"}},f=function(e){return(0,o.isLight)(e)?c.colorsLight:c.colorsDark};t.getDefaultPlayerColor=f;var h=function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,e),this.player=t;var c=f(this.player.options_);o.colors=(0,r.assign)({},c,o.colors),this.init=function(){h(p(s)),"light"===n.player.options_.skin?h(p(u)):h(p(l))};var h=function(e){var t=document.createElement("style");t.innerHTML=e,n.player.el_.appendChild(t)},d=function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r}));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?parseInt(t[1],16)+", "+parseInt(t[2],16)+", "+parseInt(t[3],16):null},p=function(e){return e.replace(/PLAYER\-CLASS\-PREFIX/g,(0,i.playerClassPrefix)(n.player)).replace(/rgba\(\-\-base\-color/g,"rgba("+d(o.colors.base)).replace(/rgba\(\-\-accent\-color/g,"rgba("+d(o.colors.accent)).replace(/rgba\(\-\-text\-color/g,"rgba("+d(o.colors.text)).replace(/\-\-base\-color/g,o.colors.base).replace(/\-\-accent\-color/g,o.colors.accent).replace(/\-\-text\-color/g,o.colors.text)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new f(this,e).init()};var r=u(n(0));n(82),n(83);var i=u(n(84)),o=n(6),a=n(3),s=n(1),l=n(2);function u(e){return e&&e.__esModule?e:{default:e}}var c={showNativeOnRecurringEvent:!1},f=function e(t,n){var u=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!Array.isArray(n.content)&&!(0,l.isFunction)(n.content))throw new Error('"content" required');var f=(0,s.assign)({},c,n);this.player=t;var h=(0,a.sliceProperties)(f,"content","showNativeOnRecurringEvent");this.init=function(){u.player.contextmenu(),u.player.on("vjs-contextmenu",d),u.player.ready((function(){return u.player.addClass("vjs-context-menu")}))};var d=function(e){if(!u.menu||(u.menu.dispose(),!h.showNativeOnRecurringEvent)){h.showNativeOnRecurringEvent&&(u.player.contextmenu.options.cancel=!1),e.preventDefault();var t=h.content;(0,l.isFunction)(t)&&(t=t(u.player)),u.menu=new i.default(u.player,{content:t});var n=function(e){var t=u.menu.el();t.style.visibility="hidden",u.player.el().appendChild(t);var n=t.getBoundingClientRect();u.player.el().removeChild(t),t.style.visibility="visible";var r=(0,o.getPointerPosition)(u.player.el(),e),i=u.player.el().getBoundingClientRect(),a=i.height-i.height*r.y+1,s=Math.round(i.width*r.x)+1,l=a,c=s;return a+n.height>i.height&&(l=a+n.height-i.height>n.height/2?a-n.height-1:i.height-n.height),s+n.width>i.width&&(c=s+n.width-i.width>n.width/2?s-n.width-1:i.width-n.width),l<a&&c<s&&(l=a-n.height-1,c=s-n.width-1),l=Math.max(0,l),{left:c=Math.max(0,c),top:l}}(e),a=n.left,s=n.top;u.menu.setPosition(a,s);var c=function(e){("click"!==e.type||3!==e.which&&2!==e.button)&&u.menu.dispose()};u.menu.on("dispose",(function(){u.player.contextmenu.options.cancel=!0,u.player.removeChild(u.menu),r.default.off(document,["click","tap"],c),delete u.menu})),u.player.addChild(u.menu),r.default.on(document,["click","tap"],c)}}}},function(e,t,n){"use strict";n.r(t)},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),o=i.a.registerPlugin||i.a.plugin,a={cancel:!0,sensitivity:10,wait:500,disabled:!1},s="vjs-contextmenu";function l(e,t){if(e.contextmenu.options.disabled)return e;var n={target:e,type:s};return["clientX","clientY","pageX","pageY","screenX","screenY"].forEach((function(e){n[e]=t[e]})),e.trigger(n)}function u(e){var t=this.contextmenu.current;if(t){var n=this.contextmenu.options.wait;"touchend"===e.type&&Number(new Date)-t.time>=n&&l(this,e),this.contextmenu.current=null}}function c(e){var t=this.contextmenu.current;if(t){var n=e.touches[0],r=this.contextmenu.options.sensitivity;(n.screenX-t.screenX>r||n.screenY-t.screenY>r)&&(this.contextmenu.current=null)}}function f(e){if(!this.contextmenu.current){var t=e.touches[0];this.contextmenu.current={screenX:t.screenX,screenY:t.screenY,time:Number(new Date)}}}function h(e){this.contextmenu.options.cancel&&!this.contextmenu.options.disabled&&e.preventDefault(),l(this,e),this.off(["touchcancel","touchend"],u),this.off("touchmove",c),this.off("touchstart",f)}function d(e){var t=this;this.contextmenu.options=i.a.mergeOptions(a,e),this.contextmenu.VERSION="__VERSION__",this.on("contextmenu",h),this.on(["touchcancel","touchend"],u),this.on("touchmove",c),this.on("touchstart",f),this.ready((function(){return t.addClass(s)}))}o("contextmenu",d),d.VERSION="2.0.2",t.default=d},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=l(n(0)),o=l(n(85)),a=n(6),s=n(2);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=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(e){return!1}}();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?p(e):t}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=i.default.getComponent("Menu"),m=i.default.dom||i.default,g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(d,e);var t,n,r,l=h(d);function d(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(n=l.call(this,e,t)).dispose=i.default.bind(p(n),n.dispose),t.content.forEach((function(t){var r=null;r=(0,s.isFunction)(t.listener)?t.listener:"string"==typeof t.href?function(){return window.open(t.href)}:function(){return!0};var a=p(n);n.addItem(new o.default(e,{label:t.label,listener:i.default.bind(e,(function(){r(this),window.setTimeout((function(){a.dispose()}),1)}))}))})),n}return t=d,(n=[{key:"setPosition",value:function(e,t){(0,a.setPosition)(this.el(),e,t)}},{key:"createEl",value:function(){var e=c(v(d.prototype),"createEl",this).call(this);if(m.addClass(e,"vjs-context-menu-ui"),this.options_.position){var t=this.options_.position,n=t.left,r=t.top;this.setPosition(n,r)}return e}}])&&u(t.prototype,n),r&&u(t,r),d}(y);t.default=g},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i;function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=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(e){return!1}}();return function(){var n,r=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(c,e);var t,n,r,i=u(c);function c(){return o(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"handleClick",value:function(){s(f(c.prototype),"handleClick",this).call(this),this.options_.listener()}}])&&a(t.prototype,n),r&&a(t,r),c}(((i=n(0))&&i.__esModule?i:{default:i}).default.getComponent("MenuItem"));t.default=h},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.chainTarget=e.chainTarget||this,this.cloudinary=new O(this,e)},t.CONSTRUCTOR_PARAMS=void 0;var i=m(n(8)),o=m(n(0)),a=n(24),s=n(23),l=n(3),u=n(10),c=n(1),f=n(4),h=m(n(87)),d=m(n(12)),p=m(n(93)),v=m(n(94)),y=n(2);function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(e){var t=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(e){return!1}}();return function(){var n,r=C(e);if(t){var i=C(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?w(e):t}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k={transformation:{},sourceTypes:[],sourceTransformation:[],posterOptions:{}},S=["cloudinaryConfig","transformation","sourceTypes","sourceTransformation","posterOptions","autoShowRecommendations"];t.CONSTRUCTOR_PARAMS=S;var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(h,e);var t,n,r,a=T(h);function h(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};g(this,h),(t=a.call(this,e,n)).player=e,n=(0,c.assign)({},k,n);var r=null,m=null,_=null,b=null,T=null,E=null,C=null,O=null,P=null,j=n.chainTarget,A=null,x=null,R=!1;t.source=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n=(0,c.assign)({},n),!e)return r;var i=null;if(e instanceof d.default)i=e;else{var o=(0,f.normalizeOptions)(e,n),a=o.publicId,s=o.options;i=t.buildSource(a,s)}if(i.recommendations()){var u=i.recommendations(),h=null,p=!1;if(n.recommendationOptions){var v=(0,l.sliceAndUnsetProperties)(n.recommendationOptions,"disableAutoShow","itemBuilder");p=v.disableAutoShow,h=v.itemBuilder}I(u,{disableAutoShow:p,itemBuilder:h})}else L();return r=i,n.skipRefresh||M(),t.player.trigger("cldsourcechanged",{source:i}),j},t.buildSource=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,f.normalizeOptions)(e,n);return e=r.publicId,(n=r.options).cloudinaryConfig=(0,f.mergeCloudinaryConfig)(t.cloudinaryConfig(),n.cloudinaryConfig||{}),n.transformation=(0,f.mergeTransformation)(t.transformation(),n.transformation||{}),n.sourceTransformation=n.sourceTransformation||t.sourceTransformation(),n.sourceTypes=n.sourceTypes||t.sourceTypes(),n.poster=n.poster||D(),n.queryParams=n.usageReport?{_s:"vp-".concat("1.6.2-edge.13")}:{},n.sourceTypes.indexOf("audio")>-1?new v.default(e,n):new d.default(e,n)},t.posterOptions=function(e){return e?(T=e,j):T},t.cloudinaryConfig=function(e){return e?(E=(0,u.getCloudinaryInstanceOf)(i.default.Cloudinary,e),j):E},t.transformation=function(e){return e?(C=(0,u.getCloudinaryInstanceOf)(i.default.Transformation,e),j):C},t.sourceTypes=function(e){return e?(O=e,j):O},t.getCurrentSources=function(){return m},t.sourceTransformation=function(e){return e?(P=e,j):P},t.on=function(){var e;return(e=A).on.apply(e,arguments)},t.one=function(){var e;return(e=A).one.apply(e,arguments)},t.off=function(){var e;return(e=A).off.apply(e,arguments)},t.autoShowRecommendations=function(e){return void 0===e?R:(R=e,j)},t.dispose=function(){t.playlist()&&t.disposePlaylist(),L(),r=void 0,A.removeAllListeners()};var I=function(e,n){var r=n.disableAutoShow,i=void 0!==r&&r,o=n.itemBuilder,a=void 0===o?null:o;if(L(),!Array.isArray(e)&&"function"!=typeof e&&!e.then)throw new Error('"recommendations" must be either an array or a function');a=a||function(e){return{source:e instanceof d.default?e:t.buildSource(e),action:function(){return t.source(e)}}},(x={}).sourceChangedHandler=function(){var n=function(e){if(void 0!==e&&e.length>0){var n=e.map((function(e){return a(e)}));t.player.trigger("recommendationschanged",{items:n})}else t.player.trigger("recommendationsnoshow");x.sources=e};(0,y.isFunction)(e)?n(e()):e.then?e.then(n):n(e)},t.one("cldsourcechanged",x.sourceChangedHandler),x.endedHandler=function(){!i&&t.autoShowRecommendations()&&t.player.trigger("recommendationsshow")},t.on("ended",x.endedHandler)},L=function(){x&&(t.off("cldsourcechanged",x.sourceChangedHandler),t.off("ended",x.endedHandler),delete x.endedHandler,delete x.sourceChangedHandler),x=null},M=function(){var e=t.source();e.poster()&&t.player.poster(e.poster().url()),m=e.generateSources().reduce((function(e,t){if(t.isAdaptive)if((t.type.split("; ")[1]||null)&&"MediaSource"in window){var n=t.type.split("; "),r="video/mp4; ".concat(n[1]||""),i=N(r);o.default.browser.IS_ANY_SAFARI&&(t.type="".concat(n[0],"; ").concat((0,f.codecShorthandTrans)("h264"))),i&&e.push(t)}else e.push(t);else e.push(t);return e}),[]),t.player.src(m),_=e,b=t.playlist()},N=function(e){return document.createElement("video").canPlayType(e)||"MediaSource"in window&&MediaSource.isTypeSupported(e)},D=function(){var e=(0,c.assign)({},t.posterOptions());e.transformation&&(!e.transformation.width&&!e.transformation.height||e.transformation.crop||(e.transformation.crop="scale")),e.transformation=(0,u.getCloudinaryInstanceOf)(i.default.Transformation,e.transformation||{});var n=t.player.el();if(n&&n.clientWidth&&n.clientHeight&&!(0,u.isKeyInTransformation)(e.transformation,"width")&&!(0,u.isKeyInTransformation)(e.transformation,"height")){var r=function(e){return 100*Math.ceil(e/100)};e.transformation.width(r(n.clientWidth)).height(r(n.clientHeight)).crop("limit")}return e},B=function(e,n){var r=n.to;_&&_.contains(r)?t.source()||(b&&t.playlist(b),t.source(_,{skipRefresh:!0})):(t.player.trigger("cldsourcechanged",{}),t.dispose())};A=new p.default(t.player);var F=l.sliceAndUnsetProperties.apply(void 0,[n].concat(S));return(0,s.applyWithProps)(w(t),F),t.on("sourcechanged",B),t}return t=h,(n=[{key:"currentSourceType",value:function(){return this.source().getType()}},{key:"currentPublicId",value:function(){return this.source()&&this.source().publicId()}},{key:"currentPoster",value:function(){return this.source()&&this.source().poster()}}])&&_(t.prototype,n),r&&_(t,r),h}((0,a.mixin)(h.default))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=c(n(88)),o=c(n(15)),a=c(n(22)),s=n(3),l=n(92),u=n(1);function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=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(e){return!1}}();return function(){var n,r=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=(0,a.default)({Promise:o.default}).fetch,_={format:"json",resource_type:"video",type:"list"},b=function(e){return function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(a,e);var t,n,r,o=p(a);function a(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f(this,a),t=o.call(this);var r=(0,s.sliceProperties)(n,"chainTarget").chainTarget,l=null,u=null;t.playlist=function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return void 0===n?l:(t.playlist()&&t.disposePlaylist(),c(n,i),e.trigger("playlistcreated"),r)},t.disposePlaylist=function(){e.removeClass("vjs-playlist");var n=t.playlist();l=void 0,n.dispose(),t.off("cldsourcechanged",u)};var c=function(n,r){n instanceof i.default?((l=n).resetState(),l.currentIndex(l.currentIndex())):(l=new i.default(y(t),n,r)).currentIndex(0),u=h(),e.addClass("vjs-playlist")},h=function(){var e=function(){t.playlist()&&!t.playlist().currentSource().contains(t.player.currentSource())&&t.disposePlaylist()};return t.on("cldsourcechanged",e),e};return t}return t=a,(n=[{key:"playlistByTag",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.sourcesByTag(e,n).then((function(e){return t.playlist(e,n)}))}},{key:"sourcesByTag",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.cloudinaryConfig().url(e,_);return g(r).then((function(e){return e.json()})).then((function(e){var r=(0,l.normalizeJsonResponse)(e.resources);return n.sorter&&r.sort(n.sorter),r.map((function(e){var r=n.sourceParams||{};"function"==typeof r&&(r=r(e));var i=e.context&&e.context.custom||{},o=(0,u.assign)({info:i},r,{publicId:e.publicId});return t.buildSource(o)}))}))}}])&&h(t.prototype,n),r&&h(t,r),a}(e)};t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(12))&&r.__esModule?r:{default:r},o=n(2);n(90);var a=n(32);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.repeat,a=void 0!==o&&o,l=i.autoAdvance,u=void 0!==l&&l,c=i.presentUpcoming,f=void 0!==c&&c;s(this,e),this._context=t,this._sources=[],this._defaultRecResolverCache={},this._currentIndex=null,this._recommendationsHandler=null,this._autoAdvance=null,this._presentUpcoming=null,this.resetState=function(){n.repeat(a),n.autoAdvance(u),n.presentUpcoming(f)},r.forEach((function(e){return n.enqueue(e)})),this.resetState()}var t,n,r;return t=e,(n=[{key:"list",value:function(){return this._sources}},{key:"player",value:function(){return this._context.player}},{key:"presentUpcoming",value:function(e){if(this._presentUpcoming=this._presentUpcoming||{},void 0===e)return this._presentUpcoming.delay;if(!0===e)e=a.DEFAULT_PRESENT_UPCOMING;else if(!1===e)e=!1;else if(!(0,o.isInteger)(e)||e<0)throw new Error("presentUpcoming 'delay' must be either a boolean or a positive integer.");return this._presentUpcoming.delay=e,this._setupPresentUpcoming(),this._presentUpcoming.delay}},{key:"autoAdvance",value:function(e){if(this._autoAdvance=this._autoAdvance||{},void 0===e)return this._autoAdvance.delay;if(!0===e)e=a.DEFAULT_AUTO_ADVANCE;else if(!1===e)e=!1;else if(!(0,o.isInteger)(e)||e<0)throw new Error("Auto advance 'delay' must be either a boolean or a positive integer.");return this._autoAdvance.delay=e,this._setupAutoAdvance(),this._autoAdvance.delay}},{key:"_setupAutoAdvance",value:function(){var e=this;this._resetAutoAdvance();var t=this._autoAdvance.delay;!1!==t&&(this._autoAdvance={delay:t,trigger:function(){e.player().ended()&&(e._autoAdvance.timeout=setTimeout((function(){e.playNext()}),1e3*t))}},this._context.on("ended",this._autoAdvance.trigger))}},{key:"dispose",value:function(){this._resetAutoAdvance(),this._resetPresentUpcoming(),this._resetRecommendations()}},{key:"_resetPresentUpcoming",value:function(){this.player().trigger("upcomingvideohide"),this._presentUpcoming||(this._presentUpcoming={}),this._presentUpcoming.trigger&&this._context.off("timeupdate",this._presentUpcoming.trigger),this._presentUpcoming.trigger=null,this._presentUpcoming.showTriggered=!1}},{key:"_setupPresentUpcoming",value:function(){var e=this;this._resetPresentUpcoming(),!1!==this._presentUpcoming.delay&&(this._presentUpcoming.trigger=function(){var t=e.player().currentTime(),n=e.player().duration()-t;n<a.UPCOMING_VIDEO_TRANSITION+.5?e._presentUpcoming.showTriggered&&(e.player().trigger("upcomingvideohide"),e._presentUpcoming.showTriggered=!1):n<=e._presentUpcoming.delay&&!e._presentUpcoming.showTriggered&&!e.player().loop()?(e.player().trigger("upcomingvideoshow"),e._presentUpcoming.showTriggered=!0):e._presentUpcoming.showTriggered&&(n>e._presentUpcoming.delay||e.player().loop())&&(e.player().trigger("upcomingvideohide"),e._presentUpcoming.showTriggered=!1)},this._context.on("timeupdate",this._presentUpcoming.trigger))}},{key:"_resetAutoAdvance",value:function(){this._autoAdvance||(this._autoAdvance={}),this._autoAdvance.timeout&&clearTimeout(this._autoAdvance.timeout),this._autoAdvance.trigger&&this._context.off("ended",this._autoAdvance.trigger),this._autoAdvance.timeout=null,this._autoAdvance.trigger=null}},{key:"_resetRecommendations",value:function(){this._recommendationsHandler&&this._context.off("ended",this._recommendationsHandler)}},{key:"_refreshRecommendations",value:function(){var e=this;this._resetRecommendations(),this._recommendationsHandler=function(){!1===e.autoAdvance()&&e._context.autoShowRecommendations()&&e.player().trigger("recommendationsshow")},this._context.on("ended",this._recommendationsHandler)}},{key:"_refreshTextTracks",value:function(){this.player().trigger("refreshTextTracks",this.currentSource().textTracks())}},{key:"_recommendationItemBuilder",value:function(e){var t=this,n=this._defaultRecResolverCache[e.objectId];if(!e.recommendations()||n&&e.recommendations()===n)return function(e){return{source:e,action:function(){return t.playItem(e)}}}}},{key:"currentIndex",value:function(e){if(void 0===e)return this._currentIndex;if(e>=this.length()||e<0)throw new Error("Invalid playlist index.");this._currentIndex=e;var t=this.currentSource(),n=this._recommendationItemBuilder(t);t.recommendations()||t.recommendations(this._defaultRecommendationsResolver(t)),this._context.source(t,{recommendationOptions:{disableAutoShow:!0,itemBuilder:n}});var r={playlist:this,current:t,next:this.next()};return this.player().trigger("playlistitemchanged",r),this._refreshRecommendations(),this._refreshTextTracks(),t}},{key:"_defaultRecommendationsResolver",value:function(e){var t=this,n=this._defaultRecResolverCache[e.objectId];return n||(this._defaultRecResolverCache[e.objectId]=function(){for(var n=t.list().indexOf(e),r=[],i=Math.min(4,t.length()-1);r.length<i&&-1!==(n=t.nextIndex(n));){var o=t.list()[n];r.push(o)}return r},this._defaultRecResolverCache[e.objectId])}},{key:"buildSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._context.buildSource(e,t)}},{key:"enqueue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e instanceof i.default?e:this.buildSource(e,t);return this._sources.push(n),n}},{key:"playItem",value:function(e){var t=this.list().indexOf(e);if(-1===t)throw new Error("Invalid playlist item.");this.playAtIndex(t)}},{key:"playAtIndex",value:function(e){return this.currentIndex(e),this.player().play(),this.currentSource()}},{key:"currentSource",value:function(){return this.list()[this.currentIndex()]}},{key:"removeAt",value:function(e){if(e>=this.length()||e<0)throw new Error("Invalid playlist index.");return this._sources.splice(e,1),this}},{key:"repeat",value:function(e){return void 0===e||(this._repeat=!!e),this._repeat}},{key:"first",value:function(){return this.list()[0]}},{key:"last",value:function(){return this.list()[this.length()-1]}},{key:"next",value:function(){var e=this.nextIndex();return-1===e?null:this.list()[e]}},{key:"nextIndex",value:function(e){if((e=void 0!==e?e:this.currentIndex())>=this.length()||e<0)throw new Error("Invalid playlist index.");var t=e+1;if(e===this.length()-1){if(!this.repeat())return-1;t=0}return t}},{key:"previousIndex",value:function(){return this.isFirst()?-1:this.currentIndex()-1}},{key:"playFirst",value:function(){return this.playAtIndex(0)}},{key:"playLast",value:function(){var e=this.list().length-1;return this.playAtIndex(e)}},{key:"isLast",value:function(){return this.currentIndex()>=this.length()-1}},{key:"isFirst",value:function(){return 0===this.currentIndex()}},{key:"length",value:function(){return this.list().length}},{key:"playNext",value:function(){var e=this.nextIndex();return-1===e?null:this.playAtIndex(e)}},{key:"playPrevious",value:function(){var e=this.previousIndex();return-1===e?null:this.playAtIndex(e)}}])&&l(t.prototype,n),r&&l(t,r),e}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatToMimeTypeAndTransformation=function(e){var t=(u=e.toLowerCase().split("/"),c=2,function(e){if(Array.isArray(e))return e}(u)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(u,c)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(u,c)||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.")}()),n=t[0],o=t[1],a=r.CONTAINER_MIME_TYPES[n],s=null;var u,c;a||(a=["video/".concat(n),s]);o&&(s=(0,i.codecToSrcTransformation)(o),a=["".concat(a[0],'; codecs="').concat((0,i.codecShorthandTrans)(o),'"'),s]);return a},t.normalizeFormat=function(e){e=e.toLowerCase().split("/").shift();var t=r.FORMAT_MAPPINGS[e];t||(t=e.split("/").shift());return t},t.isCodecAlreadyExist=void 0;var r=n(31),i=n(4),o=n(2),a=n(10),s=n(13);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u=function(e){return e&&(0,s.some)(Object.values(i.VIDEO_CODEC),(function(t){return e.includes(t)}))};t.isCodecAlreadyExist=function(e,t){return!(!e&&!t)&&(!!function(e){return(0,s.some)(["video_codec","streaming_profile"],(function(t){return(0,a.isKeyInTransformation)(e,t)}))}(e)||((0,o.isString)(t)?u(t):(0,s.some)(e,(function(e){var t=e.toOptions();return(0,s.some)(t&&t.transformation,(function(e){return u((0,o.isPlainObject)(e)?e.video_codec:e)}))}))))}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i};function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=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(e){return!1}}();return function(){var n,r=p(e);if(t){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n(91);var v=o.default.dom||o.default,y=o.default.getComponent("Component"),m=function(e){c(n,e);var t=h(n);function n(e){var r;a(this,n);for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];return(r=t.call.apply(t,[this,e].concat(o)))._setEvents(e),r}return l(n,[{key:"_setEvents",value:function(e){e.on("upcomingvideoshow",this._show.bind(this)),e.on("upcomingvideohide",this._hide.bind(this)),e.on("playlistitemchanged",this._onPlaylistItemChange.bind(this))}},{key:"_hide",value:function(){this.removeClass("vjs-upcoming-video-show")}},{key:"_disableTransition",value:function(e){this.addClass("disable-transition"),e(),this.removeClass("disable-transition")}},{key:"_onPlaylistItemChange",value:function(e,t){var n=this;this._hide(),this._disableTransition((function(){t.next&&n.setItem(t.next)}))}},{key:"_show",value:function(){var e="vjs-upcoming-video-show",t=this.player().ima,n="object"===t&&t.getAdsManager();n&&n.getCurrentAd()&&!n.getCurrentAd().isLinear()||this.addClass(e)}},{key:"setTitle",value:function(e){this.getChild("upcomingVideoOverlayContent").getChild("upcomingVideoOverlayBar").getChild("upcomingVideoOverlayTitle").setContent(e.info().title||e.publicId())}},{key:"setItem",value:function(e){this._source=e;var t=parseInt(window.getComputedStyle(this.el(),null).getPropertyValue("max-width"),10),n={crop:"pad",background:"auto:predominant",width:t,height:Math.round(t*(9/16))},r=this.getChild("upcomingVideoOverlayContent");this.setTitle(e),r.el().style.backgroundImage="url(".concat(this._source.poster().url({transformation:n}),")")}},{key:"handleClick",value:function(){u(p(n.prototype),"handleClick",this).call(this,event),this.player().cloudinary.playlist().playNext()}},{key:"createEl",value:function(){return u(p(n.prototype),"createEl",this).call(this,"div",{className:"vjs-upcoming-video"})}}]),n}(o.default.getComponent("ClickableComponent")),g=function(e){c(n,e);var t=h(n);function n(){return a(this,n),t.apply(this,arguments)}return l(n,[{key:"createEl",value:function(){return u(p(n.prototype),"createEl",this).call(this,"div",{className:"aspect-ratio-content"})}}]),n}(y),_=function(e){c(n,e);var t=h(n);function n(){return a(this,n),t.apply(this,arguments)}return l(n,[{key:"setContent",value:function(e){this._contentSpan.innerText=e}},{key:"createEl",value:function(){var e=u(p(n.prototype),"createEl",this).call(this,"div",{className:"vjs-control vjs-upcoming-video-title"}),t=v.createEl("div",{className:"vjs-upcoming-video-title-display",innerHTML:'<span class="vjs-control-text">Next up</span>Next up: '});return this._contentSpan=v.createEl("span",{className:"vjs-upcoming-video-title-display-label"}),t.appendChild(this._contentSpan),e.appendChild(t),e}}]),n}(y),b=function(e){c(n,e);var t=h(n);function n(){return a(this,n),t.apply(this,arguments)}return l(n,[{key:"createEl",value:function(){return u(p(n.prototype),"createEl",this).call(this,"div",{className:"vjs-upcoming-video-bar"})}}]),n}(y);m.prototype.options_={children:["upcomingVideoOverlayContent"]},o.default.registerComponent("upcomingVideoOverlay",m),g.prototype.options_={children:["upcomingVideoOverlayBar"]},o.default.registerComponent("upcomingVideoOverlayContent",g),b.prototype.options_={children:["upcomingVideoOverlayTitle","playlistNextButton"]},o.default.registerComponent("upcomingVideoOverlayBar",b),o.default.registerComponent("upcomingVideoOverlayTitle",_);var T=m;t.default=T},function(e,t,n){"use strict";n.r(t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeJsonResponse=void 0;var r=n(2),i=n(9),o=n(28),a=["created_at","updated_at"];t.normalizeJsonResponse=function e(t){var n={};return(0,r.isPlainObject)(t)?(Object.keys(t).reduce((function(n,r){var s=(0,i.camelize)(r);return-1!==a.indexOf(r)?n[s]=new Date((0,o.parseISO8601)(t[r])):n[s]=e(t[r]),n}),n),n):Array.isArray(t)?t.map((function(t){return e(t)})):t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(16);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._emitter=t,this._eventHandlers=[]}var t,n,o;return t=e,(n=[{key:"on",value:function(e,t){this._eventHandlers.push({type:e,handler:t}),this._emitter.on(e,t)}},{key:"one",value:function(e,t){var n=this;this._eventHandlers.push({type:e,handler:t,wrapper:function(){t.apply(void 0,arguments),n.off(e,t)}}),this._emitter.one(e,t)}},{key:"off",value:function(e,t){var n=(0,r.findIndex)(this._eventHandlers,(function(n){return n.type===e&&n.handler===t}));if(-1!==n){var i=this._eventHandlers[n];this._emitter.off(e,i.wrapper||i.handler),this._eventHandlers.splice(n,1)}}},{key:"removeAllListeners",value:function(){var e=this;this._eventHandlers.forEach((function(t){e.off(t)}))}}])&&i(t.prototype,n),o&&i(t,o),e}();t.default=o},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=f(n(12)),o=f(n(11)),a=n(4),s=n(3),l=n(1),u=n(19),c=n(95);function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=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(e){return!1}}();return function(){var n,r=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(f,e);var t,n,r,i=v(f);function f(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,f);var r=(0,a.normalizeOptions)(e,n);e=r.publicId,n=r.options,e=e.replace(c.AUDIO_SUFFIX_REMOVAL_PATTERN,""),n=(0,l.assign)({},c.DEFAULT_AUDIO_PARAMS,n);var o=(0,s.sliceAndUnsetProperties)(n,"poster"),u=o.poster;return(t=i.call(this,e,n))._poster=null,t._type="AudioSource",t.poster(u),t}return t=f,(n=[{key:"getPoster",value:function(){return this._poster}},{key:"poster",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return this._poster;if(e instanceof o.default)return this._poster=e,this;var n=(0,a.normalizeOptions)(e,t,{tolerateMissingId:!0});return e=n.publicId,t=n.options,e||(e=this.publicId(),t=(0,l.assign)({},t,c.DEFAULT_POSTER_PARAMS)),t.cloudinaryConfig=t.cloudinaryConfig||this.cloudinaryConfig(),this._poster=new o.default(e,t),this}},{key:"generateSources",value:function(){var e=this;return this.sourceTypes().map((function(t){if("audio"===t){var n={},r=e.sourceTransformation()[t]||[e.transformation()];r&&(n.transformation=r),(0,l.assign)(n,{resource_type:"video",format:"mp3"});var i="";return e.queryParams()&&(i=(0,u.objectToQuerystring)(e.queryParams())),{type:"video/mp4",src:"".concat(e.config().url(e.publicId(),n)).concat(i),cldSrc:e,poster:e.getPoster().url()}}return null}),this)}}])&&d(t.prototype,n),r&&d(t,r),f}(i.default);t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_AUDIO_PARAMS=t.AUDIO_SUFFIX_REMOVAL_PATTERN=t.COMMON_AUDIO_FORMATS=t.DEFAULT_POSTER_PARAMS=void 0;t.DEFAULT_POSTER_PARAMS={format:"jpg",resource_type:"video",transformation:{flags:"waveform"}};var r=["mp3","ogg","wav","mp4"];t.COMMON_AUDIO_FORMATS=r;var i=RegExp("\\.(".concat(r.join("|"),")$$"));t.AUDIO_SUFFIX_REMOVAL_PATTERN=i;t.DEFAULT_AUDIO_PARAMS={resource_type:"video",type:"upload",transformation:[]}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new d(this,e).init()};var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=n(3),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=e[a]}i.default=e,n&&n.set(e,i);return i}(n(33));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var f={percentsplayed:{percents:[25,50,75,100]}},h={events:["play","pause","ended","volumechange","resize","error","fullscreenchange","start","videoload","percentsplayed","seek","playerload"],category:"Video",defaultLabel:function(e){return e.cloudinary&&e.cloudinary.currentPublicId()||e.currentSource().src}},d=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,e),this.player=t,this.options=o.default.mergeOptions(h,n),this.events=(0,s.normalizeEventsParam)(this.options.events,f);var r=(0,a.sliceProperties)(this.events,"percentsplayed","timeplayed","pause","seek");r.pause&&(delete r.pause,r.pausenoseek={}),this._extendedEvents=new s.default(t,{events:r}),this._currentSource=null,this._startTracked=null,this._endTracked=null,this.resetState()}var t,n,r;return t=e,(n=[{key:"init",value:function(){var e=this;this.events.shoppable&&(this.player.on("productHover",function(t,n){e.track({action:"productHover",label:n.productName})}.bind(this)),this.player.on("productClick",function(t,n){e.track({action:"productClick",label:n.productName})}.bind(this)),this.player.on("productHoverPost",function(t,n){e.track({action:"productHoverPostPlay",label:n.productName})}.bind(this)),this.player.on("productClickPost",function(t,n){e.track({action:"productClickPostPlay",label:n.productName})}.bind(this)),this.player.on("productBarMin",function(){e.track({action:"shoppableBar",label:"closed"})}.bind(this)),this.player.on("productBarMax",function(){e.track({action:"shoppableBar",label:"opened"})}.bind(this)),this.player.on("replay",function(){e.track({action:"replay"})}.bind(this))),this.events.play&&this.player.on("play",function(){e.track({action:"Play"})}.bind(this)),this.events.ended&&this.player.on("ended",function(){e._endTracked||(e.track({action:"Ended",nonInteraction:!0}),e._endTracked=!0)}.bind(this)),this.events.volumechange&&this.player.on("volumechange",function(){var t=e.player.muted()?0:e.player.volume();e.track({action:"Volume Change",value:t})}.bind(this)),this.events.resize&&this.player.on("resize",function(){var t="Resize - ".concat(e.player.width(),"x").concat(e.player.height(),"}");e.track({action:t})}.bind(this)),this.events.error&&this.player.on("error",function(){e.track({action:"Error",nonInteraction:!0})}.bind(this)),this.events.start&&this.player.on("playing",function(){e._startTracked&&(e.track({action:"Start"}),e._startTracked=!0)}.bind(this)),this.events.fullscreenchange&&this.player.on("fullscreenchange",function(){var t=e.player.isFullscreen()?"Enter Fullscreen":"Exit Fullscreen";e.track({action:t})}.bind(this)),this.events.percentsplayed&&this._extendedEvents.on("percentsplayed",function(t,n){var r=n.percent;e.track({action:"".concat(r," Percents Played"),nonInteraction:!0})}.bind(this)),this.events.timeplayed&&this._extendedEvents.on("timeplayed",function(t,n){var r=n.time;e.track({action:"".concat(r," Seconds Played"),value:r,nonInteraction:!0})}.bind(this)),this.events.pause&&this._extendedEvents.on("pausenoseek",function(){e.track({action:"Pause"})}.bind(this)),this.events.seek&&this._extendedEvents.on("seek",function(t,n){var r=n.seekStart,i=n.seekEnd;e.track({action:"Seek Start",value:r}),e.track({action:"Seek End",value:i})}.bind(this)),this.events.playerload&&e.track({action:"Player Load",label:window.location.href,nonInteraction:!0}),this.player.on("loadedmetadata",this.loadedmetadata.bind(this))}},{key:"track",value:function(e){var t=e.action,n=e.label,r=e.value,i=void 0===r?null:r,o=e.nonInteraction,a=void 0!==o&&o,s={eventCategory:this.options.category,eventAction:t,eventLabel:n||this.options.defaultLabel(this.player),eventValue:i||Math.round(this.player.currentTime()),nonInteraction:a};window.ga("send","event",s)}},{key:"videoload",value:function(){this.track({action:"Video Load",nonInteraction:!0})}},{key:"resetState",value:function(){this._currentSource="",this._startTracked=!1,this._endTracked=!1}},{key:"loadedmetadata",value:function(){var e=this.player.currentSource().src;e!==this._currentSource&&(this.resetState(),this._currentSource=e,this.events.videoload&&this.videoload())}}])&&c(t.prototype,n),r&&c(t,r),e}()},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var i,o,a;if(u(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,console&&console.warn}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):y(i,i.length)}function v(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return c(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)o(l,this,t);else{var u=l.length,c=y(l,u);for(n=0;n<u;++n)o(c[n],this,t)}return!0},s.prototype.addListener=function(e,t){return f(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return f(this,e,t,!0)},s.prototype.once=function(e,t){return u(t),this.on(e,d(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,d(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,o,a;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},s.prototype.listenerCount=v,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(0)),i=o(n(15));function o(e){return e&&e.__esModule?e:{default:e}}n(99);var a={},s={},l=function(){function e(e,t){return this.player=e,this.options=t,this.listenForDurationChange(),this.initializeThumbnails(),this.registeredEvents={},this}return e.prototype.src=function(e){this.resetPlugin(),this.options.src=e,this.initializeThumbnails()},e.prototype.detach=function(){this.resetPlugin()},e.prototype.resetPlugin=function(){this.thumbnailHolder&&this.thumbnailHolder.parentNode.removeChild(this.thumbnailHolder),this.progressBar&&(this.progressBar.removeEventListener("mouseenter",this.registeredEvents.progressBarMouseEnter),this.progressBar.removeEventListener("mouseleave",this.registeredEvents.progressBarMouseLeave),this.progressBar.removeEventListener("mousemove",this.registeredEvents.progressBarMouseMove)),delete this.registeredEvents.progressBarMouseEnter,delete this.registeredEvents.progressBarMouseLeave,delete this.registeredEvents.progressBarMouseMove,delete this.progressBar,delete this.vttData,delete this.thumbnailHolder,delete this.lastStyle},e.prototype.listenForDurationChange=function(){this.player.on("durationchange",(function(){}))},e.prototype.initializeThumbnails=function(){var e=this;if(this.options.src){var t=this.getBaseUrl(),n=this.getFullyQualifiedUrl(this.options.src,t);this.getVttFile(n).then((function(t){e.vttData=e.processVtt(t),e.setupThumbnailElement()}))}},e.prototype.getBaseUrl=function(){return[window.location.protocol,"//",window.location.hostname,window.location.port?":"+window.location.port:"",window.location.pathname].join("").split(/([^\/]*)$/gi).shift()},e.prototype.getVttFile=function(e){var t=this;return new i.default((function(n){var r=new XMLHttpRequest;r.data={resolve:n},r.addEventListener("load",t.vttFileLoaded),r.open("GET",e),r.send()}))},e.prototype.vttFileLoaded=function(){this.data.resolve(this.responseText)},e.prototype.setupThumbnailElement=function(){var e=this,t=this.player.$(".vjs-mouse-display");this.progressBar=this.player.$(".vjs-progress-control");var n=document.createElement("div");n.setAttribute("class","vjs-vtt-thumbnail-display"),this.progressBar.appendChild(n),this.thumbnailHolder=n;var r=document.createElement("div");r.setAttribute("class","vjs-vtt-time-display"),this.thumbnailHolder.appendChild(r),this.timeHolder=r,t&&t.classList.add("vjs-hidden"),this.registeredEvents.progressBarMouseEnter=function(){return e.onBarMouseenter()},this.registeredEvents.progressBarMouseLeave=function(){return e.onBarMouseleave()},this.progressBar.addEventListener("mouseenter",this.registeredEvents.progressBarMouseEnter),this.progressBar.addEventListener("mouseleave",this.registeredEvents.progressBarMouseLeave)},e.prototype.onBarMouseenter=function(){var e=this;this.progressBar.offsetWidth<400||(this.mouseMoveCallback=function(t){e.onBarMousemove(t)},this.registeredEvents.progressBarMouseMove=this.mouseMoveCallback,this.progressBar.addEventListener("mousemove",this.registeredEvents.progressBarMouseMove),this.showThumbnailHolder())},e.prototype.onBarMouseleave=function(){this.registeredEvents.progressBarMouseMove&&this.progressBar.removeEventListener("mousemove",this.registeredEvents.progressBarMouseMove),this.hideThumbnailHolder()},e.prototype.getXCoord=function(e,t){var n=e.getBoundingClientRect(),r=document.documentElement;return t-(n.left+(window.pageXOffset||r.scrollLeft||0))},e.prototype.onBarMousemove=function(e){this.updateThumbnailStyle(r.default.dom.getPointerPosition(this.progressBar,e).x,this.progressBar.offsetWidth)},e.prototype.getStyleForTime=function(e){for(var t=0;t<this.vttData.length;++t){var n=this.vttData[t];if(e>=n.start&&e<n.end){if(n.css.url&&!s[n.css.url]){var r=new Image;r.src=n.css.url,s[n.css.url]=r}return n.css}}},e.prototype.showThumbnailHolder=function(){this.thumbnailHolder.style.opacity="1"},e.prototype.hideThumbnailHolder=function(){this.thumbnailHolder.style.opacity="0"},e.prototype.updateThumbnailStyle=function(e,t){var n=e*this.player.duration(),r=this.getStyleForTime(n);if(!r)return this.hideThumbnailHolder();var i=e*t,o=parseInt(r.width,10),a=o/2,s=t-(i+a),l=i-a;if(l>0&&s>0?this.thumbnailHolder.style.transform="translateX("+(i-a)+"px)":l<=0?this.thumbnailHolder.style.transform="translateX(0px)":s<=0&&(this.thumbnailHolder.style.transform="translateX("+(t-o)+"px)"),this.timeHolder.innerHTML=this.getTimestampFromSeconds(n),!this.lastStyle||this.lastStyle!==r)for(var u in this.lastStyle=r,r)Object.prototype.hasOwnProperty.call(r,u)&&(this.thumbnailHolder.style[u]=r[u])},e.prototype.processVtt=function(e){var t=this,n=[];return e.split(/[\r\n][\r\n]/i).forEach((function(e){if(e.match(/([0-9]{2}:)?([0-9]{2}:)?[0-9]{2}(.[0-9]{3})?( ?--> ?)([0-9]{2}:)?([0-9]{2}:)?[0-9]{2}(.[0-9]{3})?[\r\n]{1}.*/gi)){var r=e.split(/[\r\n]/i),i=r[0].split(/ ?--> ?/i),o=i[0],a=i[1],s=r[1].split("/").pop(),l=t.getVttCss(s);n.push({start:t.getSecondsFromTimestamp(o),end:t.getSecondsFromTimestamp(a),css:l})}})),n},e.prototype.getFullyQualifiedUrl=function(e,t){return e.indexOf("//")>=0?e:0===t.indexOf("//")?[t.replace(/\/$/gi,""),this.trim(e,"/")].join("/"):t.indexOf("//")>0?[this.trim(t,"/"),this.trim(e,"/")].join("/"):e},e.prototype.getPropsFromDef=function(e){var t=e.split(/#xywh=/i),n=t[0],r=t[1].match(/[0-9]+/gi);return{x:r[0],y:r[1],w:r[2],h:r[3],image:n}},e.prototype.getVttCss=function(e){var t={},n="";if(n=this.options.src.indexOf("//")>=0?this.options.src.split(/([^\/]*)$/gi).shift():this.getBaseUrl()+this.options.src.split(/([^\/]*)$/gi).shift(),!(e=this.getFullyQualifiedUrl(e,n)).match(/#xywh=/i))return t.background='url("'+e+'")',t;var r=this.getPropsFromDef(e);return t.background='url("'+r.image+'") no-repeat -'+r.x+"px -"+r.y+"px",t.width=r.w+"px",t.height=r.h+"px",t.url=r.image,t},e.prototype.doconstructTimestamp=function(e){var t=e.split("."),n=t[0].split(":");return{milliseconds:parseInt(t[1],10)||0,seconds:parseInt(n.pop(),10)||0,minutes:parseInt(n.pop(),10)||0,hours:parseInt(n.pop(),10)||0}},e.prototype.getSecondsFromTimestamp=function(e){var t=this.doconstructTimestamp(e);return parseInt(3600*t.hours+60*t.minutes+t.seconds+t.milliseconds/1e3,10)},e.prototype.getTimestampFromSeconds=function(e){var t=Math.floor(e/60),n=Math.floor(e%60);return n<10&&(n="0"+n),t+":"+n},e.prototype.trim=function(e,t){var n=[" ","\n","\r","\t","\f","\v"," "," "," "," "," "," "," "," "," "," "," "," ","","\u2028","\u2029"," "].join(""),r=0,i=0;for(e+="",t&&(n=(t+"").replace(/([[\]().?/*{}+$^:])/g,"$1")),r=e.length,i=0;i<r;i++)if(-1===n.indexOf(e.charAt(i))){e=e.substring(i);break}for(i=(r=e.length)-1;i>=0;i--)if(-1===n.indexOf(e.charAt(i))){e=e.substring(0,i+1);break}return-1===n.indexOf(e.charAt(0))?e:""},e}(),u=function(e){var t=this;this.ready((function(){!function(e,t){e.addClass("vjs-vtt-thumbnails"),e.vttThumbnails=new l(e,t)}(t,r.default.mergeOptions(a,e))}))};t.default=u},function(e,t,n){"use strict";n.r(t)},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=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(e){return!1}}();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?s(e):t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=function(e){return function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(n,e);var t=o(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),e=t.call(this);var r={data:{},handlers:{}};return e.on=function(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i.length-1,l=i[a];return r.handlers[l]=function(t){t.Player=s(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];l.apply(void 0,[t].concat(r))},i[a]=r.handlers[l],(t=e.videojs).on.apply(t,i)},e.one=function(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i.length-1,l=i[a];return r.handlers[l]=function(t){t.Player=s(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];l.apply(void 0,[t].concat(i)),delete r.handlers[l]},i[a]=r.handlers[l],(t=e.videojs).one.apply(t,i)},e.off=function(){for(var t,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i.length-1,s=i[a];i[a]=r.handlers[s];var l=(t=e.videojs).off.apply(t,i);return delete r.handlers[s],l},e.trigger=function(){var t;(t=e.videojs).trigger.apply(t,arguments)},e}return n}(e)};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(0)),i=l(n(102)),o=l(n(104)),a=l(n(105)),s=n(32);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e,t){var n=h(h({},s.PLAYLIST_DEFAULTS_OPTIONS),t);if(n.show&&"string"==typeof n.selector&&(n.useDefaultLayout=!1,n.useCustomLayout=!0,n.renderTo=document.querySelector(n.selector),n.showAll=!0,0===!n.renderTo.length))throw new Error("Couldn't find element(s) by selector '".concat(n.selector,"' for playlist"));return n.show&&!n.selector&&(n.useDefaultLayout=!0,n.useCustomLayout=!1),n.direction="horizontal"===n.direction.toLowerCase()?"horizontal":"vertical",n.skin=e.options_.skin,n},v=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,e),i=p(t,i),this.options_=i,this.player_=t,this.render();var o=function(e,t){n.options_.fluid=t};t.on("fluid",o),this.options=function(e){return e?(n.options_=r.default.mergeOptions(n.options_,e),t.trigger("playlistwidgetoption",n.options_.playlistWidget),n.options_):n.options_},this.dispose=function(){n.layout_.dispose(),t.off("fluid",o)}}var t,n,l;return t=e,(n=[{key:"render",value:function(){this.options_.useDefaultLayout&&("horizontal"===this.options_.direction?this.layout_=new i.default(this.player_,this.options_):this.layout_=new o.default(this.player_,this.options_)),this.options_.useCustomLayout&&(this.layout_=new a.default(this.player_,this.options_))}},{key:"getLayout",value:function(){return this.layout_}},{key:"update",value:function(e,t){this.options(t),"direction"===e?(this.layout_.removeLayout(),this.layout_.dispose(),this.render()):this.layout_.update(e,this.options_)}},{key:"setSkin",value:function(){this.layout_.setCls()}},{key:"total",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.PLAYLIST_DEFAULTS_OPTIONS.total,t=parseInt(e,10);return t!==this.options_.total&&"number"==typeof t&&t>0&&this.update("total",{total:t}),this}},{key:"direction",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.PLAYLIST_DEFAULTS_OPTIONS.direction;return"horizontal"!==e&&"vertical"!==e||this.update("direction",{direction:e}),this}}])&&c(t.prototype,n),l&&c(t,l),e}();t.default=v},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i;function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=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(e){return!1}}();return function(){var n,r=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,r,i=l(u);function u(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),t.wrap=!0,i.call(this,e,t)}return t=u,(n=[{key:"getCls",value:function(){var e=a(c(u.prototype),"getCls",this).call(this);return e.push("cld-plw-horizontal"),e}}])&&o(t.prototype,n),r&&o(t,r),u}(((i=n(20))&&i.__esModule?i:{default:i}).default);t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addEventListener=t.elementsCreator=t.createElement=t.wrap=t.styleElement=void 0;var r=n(13),i=n(2);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.wrap=function(e,t){return e.parentNode.insertBefore(t,e),t.appendChild(e),t};var a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=document.createElement(e);for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&i.setAttribute(o,t[o]);return(0,r.castArray)(n).forEach((function(e){return s(e,i)})),i};t.createElement=a;var s=function(e,t){if((0,i.isElement)(e))t.appendChild(e);else if(e&&"object"!==o(e)){var n=document.createTextNode(e);t.appendChild(n)}},l=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e.style[n]=t[n]);return e};t.styleElement=l;t.elementsCreator=function e(t){var n=Array.isArray(t.children)?t.children.map(e):t.children,r=(0,i.isElement)(t)?t:a(t.tag,t.attr,n);return t.onClick&&(t.event={name:"click",callback:t.onClick}),t.event&&r.addEventListener(t.event.name,t.event.callback,!1),t.style&&l(r,t.style),r};t.addEventListener=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i;function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=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(e){return!1}}();return function(){var n,r=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,r,i=l(u);function u(e,t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),t.wrap=!0,i.call(this,e,t)}return t=u,(n=[{key:"getCls",value:function(){var e=a(c(u.prototype),"getCls",this).call(this);return e.push("cld-plw-vertical"),e}}])&&o(t.prototype,n),r&&o(t,r),u}(((i=n(20))&&i.__esModule?i:{default:i}).default);t.default=f},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i;function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=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(e){return!1}}();return function(){var n,r=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(c,e);var t,n,r,i=u(c);function c(){return o(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"getCls",value:function(){var e=s(f(c.prototype),"getCls",this).call(this);return e.push("cld-plw-custom"),e}},{key:"createEl",value:function(){var e=s(f(c.prototype),"createEl",this).call(this);return this.options_.renderTo.appendChild(e),e}}])&&a(t.prototype,n),r&&a(t,r),c}(((i=n(20))&&i.__esModule?i:{default:i}).default);t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sourceValidators=t.playerValidators=void 0;var r=n(7),i=n(107),o=n(108),a={videojsOptions:{loop:o.validator.isBoolean,controls:o.validator.isBoolean,autoplay:o.validator.isBoolean,autoplayMode:o.validator.isString(r.AUTO_PLAY_MODE),bigPlayButton:o.validator.isBoolean,playbackRates:o.validator.isArray,showLogo:o.validator.isBoolean,logoImageUrl:o.validator.isString,logoOnclickUrl:o.validator.isString,videoJS:o.validator.isPlainObject,maxTries:o.validator.isNumber,muted:o.validator.isBoolean,playsinline:o.validator.isBoolean,videoTimeout:o.validator.isNumber,preload:o.validator.isString,sourceTransformation:o.validator.isPlainObject,allowUsageReport:o.validator.isBoolean,interactionAreas:{theme:{template:o.validator.isString(i.INTERACTION_AREAS_THEME)},layout:{enable:o.validator.isBoolean,showAgain:o.validator.isBoolean}}},playerOptions:{publicId:o.validator.isString,fluid:o.validator.isBoolean,analytics:o.validator.isBoolean,hideContextMenu:o.validator.isBoolean,playedEventPercents:o.validator.isArrayOfNumbers,showJumpControls:o.validator.isBoolean,seekThumbnails:o.validator.isBoolean,floatingWhenNotVisible:o.validator.isString(r.FLOATING_TO),playedEventTimes:o.validator.isArray,playlistWidget:{direction:o.validator.isString,total:o.validator.isNumber},colors:{base:o.validator.isString,accent:o.validator.isString,text:o.validator.isString},ads:{adTagUrl:o.validator.isString,showCountdown:o.validator.isBoolean,adLabel:o.validator.isString,locale:o.validator.isString,prerollTimeout:o.validator.isNumber,postrollTimeout:o.validator.isNumber,adsInPlaylist:o.validator.isString(r.ADS_IN_PLAYLIST)},cloudinary:{autoShowRecommendations:o.validator.isBoolean,sourceTypes:o.validator.isArrayOfStrings,transformation:o.validator.isObject,fontFace:o.validator.isString,posterOptions:{publicId:o.validator.isString,transformation:o.validator.isObject}}}};t.playerValidators=a;var s={raw_transformation:o.validator.isString,shoppable:o.validator.isPlainObject,withCredentials:o.validator.isBoolean,interactionAreas:{enable:o.validator.isBoolean,template:o.validator.or(o.validator.isString(i.INTERACTION_AREAS_TEMPLATE),o.validator.isArray),vttUrl:o.validator.isString,onClick:o.validator.isFunction},textTracks:{captions:{label:o.validator.isString,language:o.validator.isString,default:o.validator.isBoolean,url:o.validator.isString},subtitles:o.validator.isArrayOfObjects({label:o.validator.isString,language:o.validator.isString,url:o.validator.isString})},info:{title:o.validator.isString,subtitle:o.validator.isString,description:o.validator.isString},cloudinary:{sourceTypes:o.validator.isArrayOfStrings,transformation:o.validator.isObject}};t.sourceValidators=s},function(e,t,n){"use strict";var r;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_INTERACTION_ARE_TRANSITION=t.CLOSE_INTERACTION_AREA_LAYOUT_DELAY=t.INTERACTION_AREA_HAND_ICON=t.TEMPLATE_INTERACTION_AREAS_VTT=t.INTERACTION_AREAS_THEME=t.INTERACTION_AREAS_TEMPLATE=t.INTERACTION_AREAS_CONTAINER_CLASS_NAME=t.INTERACTION_AREAS_PREFIX=t.INTERACTION_AREA_LAYOUT_LOCAL_STORAGE_NAME=void 0;t.INTERACTION_AREA_LAYOUT_LOCAL_STORAGE_NAME="cld-ia-layout-state";t.INTERACTION_AREAS_PREFIX="vp-ia";t.INTERACTION_AREAS_CONTAINER_CLASS_NAME="interaction-areas-container";var o={PORTRAIT:"portrait",LANDSCAPE:"landscape",All:"all",CENTER:"center"};t.INTERACTION_AREAS_TEMPLATE=o;t.INTERACTION_AREAS_THEME={PULSING:"pulsing",SHADOWED:"shadowed"};var a=(i(r={},o.PORTRAIT,"https://res.cloudinary.com/prod/raw/upload/v1623772481/video-player/vtts/portrait.vtt"),i(r,o.LANDSCAPE,"https://res.cloudinary.com/prod/raw/upload/v1623772303/video-player/vtts/landscape.vtt"),i(r,o.All,"https://res.cloudinary.com/prod/raw/upload/v1623250266/video-player/vtts/all.vtt"),i(r,o.CENTER,"https://res.cloudinary.com/prod/raw/upload/v1623250265/video-player/vtts/center.vtt"),r);t.TEMPLATE_INTERACTION_AREAS_VTT=a;t.INTERACTION_AREA_HAND_ICON="https://res.cloudinary.com/prod/image/upload/v1626764643/video-player/interaction-area-hand.svg";t.CLOSE_INTERACTION_AREA_LAYOUT_DELAY=4500;t.DEFAULT_INTERACTION_ARE_TRANSITION=250},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validator=void 0;var r=n(2),i=n(34),o=n(13);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s=function(e){return(0,r.isPlainObject)(e)?":(".concat(Object.values(e).join("/"),")"):""},l={isString:function(e){return{value:r.isString,message:function(t){return"'".concat(t,"' should be a string").concat(s(e))}}},isNumber:function(e){return{value:r.isNumber,message:function(t){return"'".concat(t,"' should be a number").concat(s(e))}}},isBoolean:function(){return{value:r.isBoolean,message:function(e){return"'".concat(e,"' should be a boolean")}}},isFunction:function(){return{value:r.isFunction,message:function(e){return"'".concat(e,"' should be a function")}}},isPlainObject:function(){return{value:r.isPlainObject,message:function(e){return"'".concat(e,"' should be an object")}}},isObject:function(){return{value:function(e){return e&&"object"===a(e)},message:function(e){return"'".concat(e,"' should be an object")}}},isArray:function(){return{value:Array.isArray,message:function(e){return"'".concat(e,"' should be an array")}}},isArrayOfNumbers:function(){return{value:function(e){return Array.isArray(e)&&e.every(r.isNumber)},message:function(e){return"'".concat(e,"' should be an array of numbers")}}},isArrayOfStrings:function(){return{value:function(e){return Array.isArray(e)&&e.every(r.isString)},message:function(e){return"'".concat(e,"' should be an array of strings")}}},isArrayOfObjects:function(e){return{value:function(t){return t.every((function(t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n],o=e[n];if(!(o&&(0,i.isValueValid)(o(r),r,n)))return!1}return!0}))},message:function(){return"invalid array"}}},or:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){return{value:function(e){return(0,o.some)(t,(function(t){return(0,i.getValidatorItem)(t).value(e)}))},message:function(e){return(0,o.map)(t,(function(t){return(0,i.getValidatorItem)(t).message(e)})).join(" or ")}}}}};t.validator=l}])}));
|