/
home
/
henzagold
/
admin_report
/
js
/
File Upload :
llllll
Current File: /home/henzagold/admin_report/js/chunk-08f255d3.f072444f.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-08f255d3"],{13:function(t,e){},"1b8d":function(t,e){function r(t){return t.replace(/\n\r?\s*/g,"")}t.exports=function(t){for(var e="",n=0;n<arguments.length;n++)e+=r(t[n])+(arguments[n+1]||"");return e}},"2b8c":function(t,e,r){var n=r("be09"),i=t.exports={WebVTT:r("d02c4"),VTTCue:r("b03c"),VTTRegion:r("f97d")};n.vttjs=i,n.WebVTT=i.WebVTT;var o=i.VTTCue,s=i.VTTRegion,a=n.VTTCue,l=n.VTTRegion;i.shim=function(){n.VTTCue=o,n.VTTRegion=s},i.restore=function(){n.VTTCue=a,n.VTTRegion=l},n.VTTCue||i.shim()},3095:function(t,e,r){},"3d33":function(t,e,r){ /** * @license * Video.js 6.13.0 <http://videojs.com/> * Copyright Brightcove, Inc. <https://www.brightcove.com/> * Available under Apache License Version 2.0 * <https://github.com/videojs/video.js/blob/master/LICENSE> * * Includes vtt.js <https://github.com/mozilla/vtt.js> * Available under Apache License Version 2.0 * <https://github.com/mozilla/vtt.js/blob/master/LICENSE> */ function n(t){return t&&"object"===typeof t&&"default"in t?t["default"]:t}var i=n(r("be09")),o=n(r("ef34")),s=n(r("1b8d")),a=n(r("8c10")),l=n(r("eec7")),c=n(r("2b8c")),u="6.13.0",h=i.navigator&&i.navigator.userAgent||"",p=/AppleWebKit\/([\d.]+)/i.exec(h),d=p?parseFloat(p.pop()):null,f=/iPad/i.test(h),v=/iPhone/i.test(h)&&!f,g=/iPod/i.test(h),y=v||f||g,m=function(){var t=h.match(/OS (\d+)_/i);return t&&t[1]?t[1]:null}(),_=/Android/i.test(h),b=function(){var t=h.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;var e=t[1]&&parseFloat(t[1]),r=t[2]&&parseFloat(t[2]);return e&&r?parseFloat(t[1]+"."+t[2]):e||null}(),T=_&&/webkit/i.test(h)&&b<2.3,C=_&&b<5&&d<537,k=/Firefox/i.test(h),w=/Edge/i.test(h),E=!w&&(/Chrome/i.test(h)||/CriOS/i.test(h)),x=function(){var t=h.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),S=/MSIE\s8\.0/.test(h),j=function(){var t=/MSIE\s(\d+)\.\d/.exec(h),e=t&&parseFloat(t[1]);return!e&&/Trident\/7.0/i.test(h)&&/rv:11.0/.test(h)&&(e=11),e}(),A=/Safari/i.test(h)&&!E&&!_&&!w,P=(A||y)&&!E,M=rt()&&("ontouchstart"in i||i.navigator.maxTouchPoints||i.DocumentTouch&&i.document instanceof i.DocumentTouch),O=rt()&&"backgroundSize"in i.document.createElement("video").style,L=(Object.freeze||Object)({IS_IPAD:f,IS_IPHONE:v,IS_IPOD:g,IS_IOS:y,IOS_VERSION:m,IS_ANDROID:_,ANDROID_VERSION:b,IS_OLD_ANDROID:T,IS_NATIVE_ANDROID:C,IS_FIREFOX:k,IS_EDGE:w,IS_CHROME:E,CHROME_VERSION:x,IS_IE8:S,IE_VERSION:j,IS_SAFARI:A,IS_ANY_SAFARI:P,TOUCH_ENABLED:M,BACKGROUND_SIZE_SUPPORTED:O}),R="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},I=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},D=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e},B=function(t,e){return t.raw=e,t},F=Object.prototype.toString,H=function(t){return Y(t)?Object.keys(t):[]};function W(t,e){H(t).forEach((function(r){return e(t[r],r)}))}function V(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return H(t).reduce((function(r,n){return e(r,t[n],n)}),r)}function X(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return Object.assign?Object.assign.apply(Object,[t].concat(r)):(r.forEach((function(e){e&&W(e,(function(e,r){t[r]=e}))})),t)}function Y(t){return!!t&&"object"===("undefined"===typeof t?"undefined":R(t))}function z(t){return Y(t)&&"[object Object]"===F.call(t)&&t.constructor===Object}var U=[],$=function(t,e){return function(r,n,o,s){var a=e.levels[n],l=new RegExp("^("+a+")$");if("log"!==r&&o.unshift(r.toUpperCase()+":"),o.unshift(t+":"),U&&U.push([].concat(o)),i.console){var c=i.console[r];c||"debug"!==r||(c=i.console.info||i.console.log),c&&a&&l.test(r)&&(s&&(o=o.map((function(t){if(Y(t)||Array.isArray(t))try{return JSON.stringify(t)}catch(e){return String(t)}return String(t)})).join(" ")),c.apply?c[Array.isArray(o)?"apply":"call"](i.console,o):c(o))}}};function q(t){var e="info",r=void 0,n=function t(){for(var n=t.stringify||j&&j<11,i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];r("log",e,o,n)};return r=$(t,n),n.createLogger=function(e){return q(t+": "+e)},n.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:e},n.level=function(t){if("string"===typeof t){if(!n.levels.hasOwnProperty(t))throw new Error('"'+t+'" in not a valid log level');e=t}return e},n.history=function(){return U?[].concat(U):[]},n.history.filter=function(t){return(U||[]).filter((function(e){return new RegExp(".*"+t+".*").test(e[0])}))},n.history.clear=function(){U&&(U.length=0)},n.history.disable=function(){null!==U&&(U.length=0,U=null)},n.history.enable=function(){null===U&&(U=[])},n.error=function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return r("error",e,n)},n.warn=function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return r("warn",e,n)},n.debug=function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return r("debug",e,n)},n}var K=q("VIDEOJS"),G=K.createLogger;function J(t,e){if(!t||!e)return"";if("function"===typeof i.getComputedStyle){var r=i.getComputedStyle(t);return r?r[e]:""}return t.currentStyle[e]||""}var Q=B(["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."]);function Z(t){return"string"===typeof t&&/\S/.test(t)}function tt(t){if(/\s/.test(t))throw new Error("class has illegal whitespace characters")}function et(t){return new RegExp("(^|\\s)"+t+"($|\\s)")}function rt(){return o===i.document&&"undefined"!==typeof o.createElement}function nt(t){return Y(t)&&1===t.nodeType}function it(){try{return i.parent!==i.self}catch(t){return!0}}function ot(t){return function(e,r){if(!Z(e))return o[t](null);Z(r)&&(r=o.querySelector(r));var n=nt(r)?r:o;return n[t]&&n[t](e)}}function st(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments[3],i=o.createElement(t);return Object.getOwnPropertyNames(e).forEach((function(t){var r=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(K.warn(s(Q,t,r)),i.setAttribute(t,r)):"textContent"===t?at(i,r):i[t]=r})),Object.getOwnPropertyNames(r).forEach((function(t){i.setAttribute(t,r[t])})),n&&xt(i,n),i}function at(t,e){return"undefined"===typeof t.textContent?t.innerText=e:t.textContent=e,t}function lt(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function ct(t,e){return tt(e),t.classList?t.classList.contains(e):et(e).test(t.className)}function ut(t,e){return t.classList?t.classList.add(e):ct(t,e)||(t.className=(t.className+" "+e).trim()),t}function ht(t,e){return t.classList?t.classList.remove(e):(tt(e),t.className=t.className.split(/\s+/).filter((function(t){return t!==e})).join(" ")),t}function pt(t,e,r){var n=ct(t,e);if("function"===typeof r&&(r=r(t,e)),"boolean"!==typeof r&&(r=!n),r!==n)return r?ut(t,e):ht(t,e),t}function dt(t,e){Object.getOwnPropertyNames(e).forEach((function(r){var n=e[r];null===n||"undefined"===typeof n||!1===n?t.removeAttribute(r):t.setAttribute(r,!0===n?"":n)}))}function ft(t){var e={},r=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(t&&t.attributes&&t.attributes.length>0)for(var n=t.attributes,i=n.length-1;i>=0;i--){var o=n[i].name,s=n[i].value;"boolean"!==typeof t[o]&&-1===r.indexOf(","+o+",")||(s=null!==s),e[o]=s}return e}function vt(t,e){return t.getAttribute(e)}function gt(t,e,r){t.setAttribute(e,r)}function yt(t,e){t.removeAttribute(e)}function mt(){o.body.focus(),o.onselectstart=function(){return!1}}function _t(){o.onselectstart=function(){return!0}}function bt(t){if(t&&t.getBoundingClientRect&&t.parentNode){var e=t.getBoundingClientRect(),r={};return["bottom","height","left","right","top","width"].forEach((function(t){void 0!==e[t]&&(r[t]=e[t])})),r.height||(r.height=parseFloat(J(t,"height"))),r.width||(r.width=parseFloat(J(t,"width"))),r}}function Tt(t){var e=void 0;if(t.getBoundingClientRect&&t.parentNode&&(e=t.getBoundingClientRect()),!e)return{left:0,top:0};var r=o.documentElement,n=o.body,s=r.clientLeft||n.clientLeft||0,a=i.pageXOffset||n.scrollLeft,l=e.left+a-s,c=r.clientTop||n.clientTop||0,u=i.pageYOffset||n.scrollTop,h=e.top+u-c;return{left:Math.round(l),top:Math.round(h)}}function Ct(t,e){var r={},n=Tt(t),i=t.offsetWidth,o=t.offsetHeight,s=n.top,a=n.left,l=e.pageY,c=e.pageX;return e.changedTouches&&(c=e.changedTouches[0].pageX,l=e.changedTouches[0].pageY),r.y=Math.max(0,Math.min(1,(s-l+o)/o)),r.x=Math.max(0,Math.min(1,(c-a)/i)),r}function kt(t){return Y(t)&&3===t.nodeType}function wt(t){while(t.firstChild)t.removeChild(t.firstChild);return t}function Et(t){return"function"===typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map((function(t){return"function"===typeof t&&(t=t()),nt(t)||kt(t)?t:"string"===typeof t&&/\S/.test(t)?o.createTextNode(t):void 0})).filter((function(t){return t}))}function xt(t,e){return Et(e).forEach((function(e){return t.appendChild(e)})),t}function St(t,e){return xt(wt(t),e)}function jt(t){return void 0===t.button&&void 0===t.buttons||(0===t.button&&void 0===t.buttons||(9===j||0===t.button&&1===t.buttons))}var At=ot("querySelector"),Pt=ot("querySelectorAll"),Mt=(Object.freeze||Object)({isReal:rt,isEl:nt,isInFrame:it,createEl:st,textContent:at,prependTo:lt,hasClass:ct,addClass:ut,removeClass:ht,toggleClass:pt,setAttributes:dt,getAttributes:ft,getAttribute:vt,setAttribute:gt,removeAttribute:yt,blockTextSelection:mt,unblockTextSelection:_t,getBoundingClientRect:bt,findPosition:Tt,getPointerPosition:Ct,isTextNode:kt,emptyEl:wt,normalizeContent:Et,appendContent:xt,insertContent:St,isSingleLeftClick:jt,$:At,$$:Pt}),Ot=1;function Lt(){return Ot++}var Rt={},Nt="vdata"+(new Date).getTime();function It(t){var e=t[Nt];return e||(e=t[Nt]=Lt()),Rt[e]||(Rt[e]={}),Rt[e]}function Dt(t){var e=t[Nt];return!!e&&!!Object.getOwnPropertyNames(Rt[e]).length}function Bt(t){var e=t[Nt];if(e){delete Rt[e];try{delete t[Nt]}catch(r){t.removeAttribute?t.removeAttribute(Nt):t[Nt]=null}}}function Ft(t,e){var r=It(t);0===r.handlers[e].length&&(delete r.handlers[e],t.removeEventListener?t.removeEventListener(e,r.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,r.dispatcher)),Object.getOwnPropertyNames(r.handlers).length<=0&&(delete r.handlers,delete r.dispatcher,delete r.disabled),0===Object.getOwnPropertyNames(r).length&&Bt(t)}function Ht(t,e,r,n){r.forEach((function(r){t(e,r,n)}))}function Wt(t){function e(){return!0}function r(){return!1}if(!t||!t.isPropagationStopped){var n=t||i.event;for(var s in t={},n)"layerX"!==s&&"layerY"!==s&&"keyLocation"!==s&&"webkitMovementX"!==s&&"webkitMovementY"!==s&&("returnValue"===s&&n.preventDefault||(t[s]=n[s]));if(t.target||(t.target=t.srcElement||o),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){n.preventDefault&&n.preventDefault(),t.returnValue=!1,n.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){n.stopPropagation&&n.stopPropagation(),t.cancelBubble=!0,n.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=r,t.stopImmediatePropagation=function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=r,null!==t.clientX&&void 0!==t.clientX){var a=o.documentElement,l=o.body;t.pageX=t.clientX+(a&&a.scrollLeft||l&&l.scrollLeft||0)-(a&&a.clientLeft||l&&l.clientLeft||0),t.pageY=t.clientY+(a&&a.scrollTop||l&&l.scrollTop||0)-(a&&a.clientTop||l&&l.clientTop||0)}t.which=t.charCode||t.keyCode,null!==t.button&&void 0!==t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t}var Vt=!1;(function(){try{var t=Object.defineProperty({},"passive",{get:function(){Vt=!0}});i.addEventListener("test",null,t),i.removeEventListener("test",null,t)}catch(e){}})();var Xt=["touchstart","touchmove"];function Yt(t,e,r){if(Array.isArray(e))return Ht(Yt,t,e,r);var n=It(t);if(n.handlers||(n.handlers={}),n.handlers[e]||(n.handlers[e]=[]),r.guid||(r.guid=Lt()),n.handlers[e].push(r),n.dispatcher||(n.disabled=!1,n.dispatcher=function(e,r){if(!n.disabled){e=Wt(e);var i=n.handlers[e.type];if(i)for(var o=i.slice(0),s=0,a=o.length;s<a;s++){if(e.isImmediatePropagationStopped())break;try{o[s].call(t,e,r)}catch(l){K.error(l)}}}}),1===n.handlers[e].length)if(t.addEventListener){var i=!1;Vt&&Xt.indexOf(e)>-1&&(i={passive:!0}),t.addEventListener(e,n.dispatcher,i)}else t.attachEvent&&t.attachEvent("on"+e,n.dispatcher)}function zt(t,e,r){if(Dt(t)){var n=It(t);if(n.handlers){if(Array.isArray(e))return Ht(zt,t,e,r);var i=function(t,e){n.handlers[e]=[],Ft(t,e)};if(void 0!==e){var o=n.handlers[e];if(o)if(r){if(r.guid)for(var s=0;s<o.length;s++)o[s].guid===r.guid&&o.splice(s--,1);Ft(t,e)}else i(t,e)}else for(var a in n.handlers)Object.prototype.hasOwnProperty.call(n.handlers||{},a)&&i(t,a)}}}function Ut(t,e,r){var n=Dt(t)?It(t):{},i=t.parentNode||t.ownerDocument;if("string"===typeof e?e={type:e,target:t}:e.target||(e.target=t),e=Wt(e),n.dispatcher&&n.dispatcher.call(t,e,r),i&&!e.isPropagationStopped()&&!0===e.bubbles)Ut.call(null,i,e,r);else if(!i&&!e.defaultPrevented){var o=It(e.target);e.target[e.type]&&(o.disabled=!0,"function"===typeof e.target[e.type]&&e.target[e.type](),o.disabled=!1)}return!e.defaultPrevented}function $t(t,e,r){if(Array.isArray(e))return Ht($t,t,e,r);var n=function n(){zt(t,e,n),r.apply(this,arguments)};n.guid=r.guid=r.guid||Lt(),Yt(t,e,n)}var qt=(Object.freeze||Object)({fixEvent:Wt,on:Yt,off:zt,trigger:Ut,one:$t}),Kt=!1,Gt=void 0,Jt=function(){if(rt()&&!1!==Gt.options.autoSetup){var t=o.getElementsByTagName("video"),e=o.getElementsByTagName("audio"),r=o.getElementsByTagName("video-js"),n=[];if(t&&t.length>0)for(var i=0,s=t.length;i<s;i++)n.push(t[i]);if(e&&e.length>0)for(var a=0,l=e.length;a<l;a++)n.push(e[a]);if(r&&r.length>0)for(var c=0,u=r.length;c<u;c++)n.push(r[c]);if(n&&n.length>0)for(var h=0,p=n.length;h<p;h++){var d=n[h];if(!d||!d.getAttribute){Qt(1);break}if(void 0===d.player){var f=d.getAttribute("data-setup");null!==f&&Gt(d)}}else Kt||Qt(1)}};function Qt(t,e){e&&(Gt=e),i.setTimeout(Jt,t)}rt()&&"complete"===o.readyState?Kt=!0:$t(i,"load",(function(){Kt=!0}));var Zt=function(t){var e=o.createElement("style");return e.className=t,e},te=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e},ee=function(t,e,r){e.guid||(e.guid=Lt());var n=function(){return e.apply(t,arguments)};return n.guid=r?r+"_"+e.guid:e.guid,n},re=function(t,e){var r=Date.now(),n=function(){var n=Date.now();n-r>=e&&(t.apply(void 0,arguments),r=n)};return n},ne=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i,o=void 0,s=function(){n.clearTimeout(o),o=null},a=function(){var i=this,s=arguments,a=function(){o=null,a=null,r||t.apply(i,s)};!o&&r&&t.apply(i,s),n.clearTimeout(o),o=n.setTimeout(a,e)};return a.cancel=s,a},ie=function(){};ie.prototype.allowedEvents_={},ie.prototype.on=function(t,e){var r=this.addEventListener;this.addEventListener=function(){},Yt(this,t,e),this.addEventListener=r},ie.prototype.addEventListener=ie.prototype.on,ie.prototype.off=function(t,e){zt(this,t,e)},ie.prototype.removeEventListener=ie.prototype.off,ie.prototype.one=function(t,e){var r=this.addEventListener;this.addEventListener=function(){},$t(this,t,e),this.addEventListener=r},ie.prototype.trigger=function(t){var e=t.type||t;"string"===typeof t&&(t={type:e}),t=Wt(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),Ut(this,t)},ie.prototype.dispatchEvent=ie.prototype.trigger;var oe=function(t){return t instanceof ie||!!t.eventBusEl_&&["on","one","off","trigger"].every((function(e){return"function"===typeof t[e]}))},se=function(t){return"string"===typeof t&&/\S/.test(t)||Array.isArray(t)&&!!t.length},ae=function(t){if(!t.nodeName&&!oe(t))throw new Error("Invalid target; must be a DOM node or evented object.")},le=function(t){if(!se(t))throw new Error("Invalid event type; must be a non-empty string or array.")},ce=function(t){if("function"!==typeof t)throw new Error("Invalid listener; must be a function.")},ue=function(t,e){var r=e.length<3||e[0]===t||e[0]===t.eventBusEl_,n=void 0,i=void 0,o=void 0;return r?(n=t.eventBusEl_,e.length>=3&&e.shift(),i=e[0],o=e[1]):(n=e[0],i=e[1],o=e[2]),ae(n),le(i),ce(o),o=ee(t,o),{isTargetingSelf:r,target:n,type:i,listener:o}},he=function(t,e,r,n){ae(t),t.nodeName?qt[e](t,r,n):t[e](r,n)},pe={on:function(){for(var t=this,e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=ue(this,r),o=i.isTargetingSelf,s=i.target,a=i.type,l=i.listener;if(he(s,"on",a,l),!o){var c=function(){return t.off(s,a,l)};c.guid=l.guid;var u=function(){return t.off("dispose",c)};u.guid=l.guid,he(this,"on","dispose",c),he(s,"on","dispose",u)}},one:function(){for(var t=this,e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=ue(this,r),o=i.isTargetingSelf,s=i.target,a=i.type,l=i.listener;if(o)he(s,"one",a,l);else{var c=function e(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];t.off(s,a,e),l.apply(null,n)};c.guid=l.guid,he(s,"one",a,c)}},off:function(t,e,r){if(!t||se(t))zt(this.eventBusEl_,t,e);else{var n=t,i=e;ae(n),le(i),ce(r),r=ee(this,r),this.off("dispose",r),n.nodeName?(zt(n,i,r),zt(n,"dispose",r)):oe(n)&&(n.off(i,r),n.off("dispose",r))}},trigger:function(t,e){return Ut(this.eventBusEl_,t,e)}};function de(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.eventBusKey;if(r){if(!t[r].nodeName)throw new Error('The eventBusKey "'+r+'" does not refer to an element.');t.eventBusEl_=t[r]}else t.eventBusEl_=st("span",{className:"vjs-event-bus"});return X(t,pe),t.on("dispose",(function(){t.off(),i.setTimeout((function(){t.eventBusEl_=null}),0)})),t}var fe={state:{},setState:function(t){var e=this;"function"===typeof t&&(t=t());var r=void 0;return W(t,(function(t,n){e.state[n]!==t&&(r=r||{},r[n]={from:e.state[n],to:t}),e.state[n]=t})),r&&oe(this)&&this.trigger({changes:r,type:"statechanged"}),r}};function ve(t,e){return X(t,fe),t.state=X({},t.state,e),"function"===typeof t.handleStateChanged&&oe(t)&&t.on("statechanged",t.handleStateChanged),t}function ge(t){return"string"!==typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}function ye(t,e){return ge(t)===ge(e)}function me(){for(var t={},e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return r.forEach((function(e){e&&W(e,(function(e,r){z(e)?(z(t[r])||(t[r]={}),t[r]=me(t[r],e)):t[r]=e}))})),t}var _e=function(){function t(e,r,n){if(N(this,t),!e&&this.play?this.player_=e=this:this.player_=e,this.options_=me({},this.options_),r=this.options_=me(this.options_,r),this.id_=r.id||r.el&&r.el.id,!this.id_){var i=e&&e.id&&e.id()||"no_player";this.id_=i+"_component_"+Lt()}this.name_=r.name||null,r.el?this.el_=r.el:!1!==r.createEl&&(this.el_=this.createEl()),!1!==r.evented&&de(this,{eventBusKey:this.el_?"el_":null}),ve(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},!1!==r.initChildren&&this.initChildren(),this.ready(n),!1!==r.reportTouchActivity&&this.enableTouchActivity()}return t.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Bt(this.el_),this.el_=null),this.player_=null},t.prototype.player=function(){return this.player_},t.prototype.options=function(t){return K.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.options_=me(this.options_,t),this.options_):this.options_},t.prototype.el=function(){return this.el_},t.prototype.createEl=function(t,e,r){return st(t,e,r)},t.prototype.localize=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,n=this.player_.language&&this.player_.language(),i=this.player_.languages&&this.player_.languages(),o=i&&i[n],s=n&&n.split("-")[0],a=i&&i[s],l=r;return o&&o[t]?l=o[t]:a&&a[t]&&(l=a[t]),e&&(l=l.replace(/\{(\d+)\}/g,(function(t,r){var n=e[r-1],i=n;return"undefined"===typeof n&&(i=t),i}))),l},t.prototype.contentEl=function(){return this.contentEl_||this.el_},t.prototype.id=function(){return this.id_},t.prototype.name=function(){return this.name_},t.prototype.children=function(){return this.children_},t.prototype.getChildById=function(t){return this.childIndex_[t]},t.prototype.getChild=function(t){if(t)return t=ge(t),this.childNameIndex_[t]},t.prototype.addChild=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,i=void 0,o=void 0;if("string"===typeof e){o=ge(e);var s=r.componentClass||o;r.name=o;var a=t.getComponent(s);if(!a)throw new Error("Component "+s+" does not exist");if("function"!==typeof a)return null;i=new a(this.player_||this,r)}else i=e;if(this.children_.splice(n,0,i),"function"===typeof i.id&&(this.childIndex_[i.id()]=i),o=o||i.name&&ge(i.name()),o&&(this.childNameIndex_[o]=i),"function"===typeof i.el&&i.el()){var l=this.contentEl().children,c=l[n]||null;this.contentEl().insertBefore(i.el(),c)}return i},t.prototype.removeChild=function(t){if("string"===typeof t&&(t=this.getChild(t)),t&&this.children_){for(var e=!1,r=this.children_.length-1;r>=0;r--)if(this.children_[r]===t){e=!0,this.children_.splice(r,1);break}if(e){this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null;var n=t.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},t.prototype.initChildren=function(){var e=this,r=this.options_.children;if(r){var n=this.options_,i=function(t){var r=t.name,i=t.opts;if(void 0!==n[r]&&(i=n[r]),!1!==i){!0===i&&(i={}),i.playerOptions=e.options_.playerOptions;var o=e.addChild(r,i);o&&(e[r]=o)}},o=void 0,s=t.getComponent("Tech");o=Array.isArray(r)?r:Object.keys(r),o.concat(Object.keys(this.options_).filter((function(t){return!o.some((function(e){return"string"===typeof e?t===e:t===e.name}))}))).map((function(t){var n=void 0,i=void 0;return"string"===typeof t?(n=t,i=r[n]||e.options_[n]||{}):(n=t.name,i=t),{name:n,opts:i}})).filter((function(e){var r=t.getComponent(e.opts.componentClass||ge(e.name));return r&&!s.isTech(r)})).forEach(i)}},t.prototype.buildCSSClass=function(){return""},t.prototype.ready=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.isReady_?void(e?t.call(this):this.setTimeout(t,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(t))},t.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach((function(t){t.call(this)}),this),this.trigger("ready")}),1)},t.prototype.$=function(t,e){return At(t,e||this.contentEl())},t.prototype.$$=function(t,e){return Pt(t,e||this.contentEl())},t.prototype.hasClass=function(t){return ct(this.el_,t)},t.prototype.addClass=function(t){ut(this.el_,t)},t.prototype.removeClass=function(t){ht(this.el_,t)},t.prototype.toggleClass=function(t,e){pt(this.el_,t,e)},t.prototype.show=function(){this.removeClass("vjs-hidden")},t.prototype.hide=function(){this.addClass("vjs-hidden")},t.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},t.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.prototype.getAttribute=function(t){return vt(this.el_,t)},t.prototype.setAttribute=function(t,e){gt(this.el_,t,e)},t.prototype.removeAttribute=function(t){yt(this.el_,t)},t.prototype.width=function(t,e){return this.dimension("width",t,e)},t.prototype.height=function(t,e){return this.dimension("height",t,e)},t.prototype.dimensions=function(t,e){this.width(t,!0),this.height(e)},t.prototype.dimension=function(t,e,r){if(void 0!==e)return null!==e&&e===e||(e=0),-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?this.el_.style[t]=e:this.el_.style[t]="auto"===e?"":e+"px",void(r||this.trigger("componentresize"));if(!this.el_)return 0;var n=this.el_.style[t],i=n.indexOf("px");return-1!==i?parseInt(n.slice(0,i),10):parseInt(this.el_["offset"+ge(t)],10)},t.prototype.currentDimension=function(t){var e=0;if("width"!==t&&"height"!==t)throw new Error("currentDimension only accepts width or height value");if("function"===typeof i.getComputedStyle){var r=i.getComputedStyle(this.el_);e=r.getPropertyValue(t)||r[t]}if(e=parseFloat(e),0===e){var n="offset"+ge(t);e=this.el_[n]}return e},t.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.prototype.currentWidth=function(){return this.currentDimension("width")},t.prototype.currentHeight=function(){return this.currentDimension("height")},t.prototype.focus=function(){this.el_.focus()},t.prototype.blur=function(){this.el_.blur()},t.prototype.emitTapEvents=function(){var t=0,e=null,r=10,n=200,i=void 0;this.on("touchstart",(function(r){1===r.touches.length&&(e={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},t=(new Date).getTime(),i=!0)})),this.on("touchmove",(function(t){if(t.touches.length>1)i=!1;else if(e){var n=t.touches[0].pageX-e.pageX,o=t.touches[0].pageY-e.pageY,s=Math.sqrt(n*n+o*o);s>r&&(i=!1)}}));var o=function(){i=!1};this.on("touchleave",o),this.on("touchcancel",o),this.on("touchend",(function(r){if(e=null,!0===i){var o=(new Date).getTime()-t;o<n&&(r.preventDefault(),this.trigger("tap"))}}))},t.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t=ee(this.player(),this.player().reportUserActivity),e=void 0;this.on("touchstart",(function(){t(),this.clearInterval(e),e=this.setInterval(t,250)}));var r=function(r){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",r),this.on("touchcancel",r)}},t.prototype.setTimeout=function(t,e){var r,n,o=this;return t=ee(this,t),r=i.setTimeout((function(){o.off("dispose",n),t()}),e),n=function(){return o.clearTimeout(r)},n.guid="vjs-timeout-"+r,this.on("dispose",n),r},t.prototype.clearTimeout=function(t){i.clearTimeout(t);var e=function(){};return e.guid="vjs-timeout-"+t,this.off("dispose",e),t},t.prototype.setInterval=function(t,e){var r=this;t=ee(this,t);var n=i.setInterval(t,e),o=function(){return r.clearInterval(n)};return o.guid="vjs-interval-"+n,this.on("dispose",o),n},t.prototype.clearInterval=function(t){i.clearInterval(t);var e=function(){};return e.guid="vjs-interval-"+t,this.off("dispose",e),t},t.prototype.requestAnimationFrame=function(t){var e,r,n=this;return this.supportsRaf_?(t=ee(this,t),e=i.requestAnimationFrame((function(){n.off("dispose",r),t()})),r=function(){return n.cancelAnimationFrame(e)},r.guid="vjs-raf-"+e,this.on("dispose",r),e):this.setTimeout(t,1e3/60)},t.prototype.cancelAnimationFrame=function(t){if(this.supportsRaf_){i.cancelAnimationFrame(t);var e=function(){};return e.guid="vjs-raf-"+t,this.off("dispose",e),t}return this.clearTimeout(t)},t.registerComponent=function(e,r){if("string"!==typeof e||!e)throw new Error('Illegal component name, "'+e+'"; must be a non-empty string.');var n=t.getComponent("Tech"),i=n&&n.isTech(r),o=t===r||t.prototype.isPrototypeOf(r.prototype);if(i||!o){var s=void 0;throw s=i?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+e+'"; '+s+".")}e=ge(e),t.components_||(t.components_={});var a=t.getComponent("Player");if("Player"===e&&a&&a.players){var l=a.players,c=Object.keys(l);if(l&&c.length>0&&c.map((function(t){return l[t]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return t.components_[e]=r,r},t.getComponent=function(e){if(e)return e=ge(e),t.components_&&t.components_[e]?t.components_[e]:void 0},t}();function be(t,e,r){if("number"!==typeof e||e<0||e>r)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is non-numeric or out of bounds (0-"+r+").")}function Te(t,e,r,n){return be(t,n,r.length-1),r[n][e]}function Ce(t){return void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:Te.bind(null,"start",0,t),end:Te.bind(null,"end",1,t)}}function ke(t,e){return Array.isArray(t)?Ce(t):void 0===t||void 0===e?Ce():Ce([[t,e]])}function we(t,e){var r=0,n=void 0,i=void 0;if(!e)return 0;t&&t.length||(t=ke(0,0));for(var o=0;o<t.length;o++)n=t.start(o),i=t.end(o),i>e&&(i=e),r+=i-n;return r/e}_e.prototype.supportsRaf_="function"===typeof i.requestAnimationFrame&&"function"===typeof i.cancelAnimationFrame,_e.registerComponent("Component",_e);for(var Ee={},xe=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Se=xe[0],je=void 0,Ae=0;Ae<xe.length;Ae++)if(xe[Ae][1]in o){je=xe[Ae];break}if(je)for(var Pe=0;Pe<je.length;Pe++)Ee[Se[Pe]]=je[Pe];function Me(t){if(t instanceof Me)return t;"number"===typeof t?this.code=t:"string"===typeof t?this.message=t:Y(t)&&("number"===typeof t.code&&(this.code=t.code),X(this,t)),this.message||(this.message=Me.defaultMessages[this.code]||"")}Me.prototype.code=0,Me.prototype.message="",Me.prototype.status=null,Me.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Me.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 Oe=0;Oe<Me.errorTypes.length;Oe++)Me[Me.errorTypes[Oe]]=Oe,Me.prototype[Me.errorTypes[Oe]]=Oe;function Le(t){return void 0!==t&&null!==t&&"function"===typeof t.then}function Re(t){Le(t)&&t.then(null,(function(t){}))}var Ne=function(t){var e=["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((function(e,r,n){return t[r]&&(e[r]=t[r]),e}),{cues:t.cues&&Array.prototype.map.call(t.cues,(function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}}))});return e},Ie=function(t){var e=t.$$("track"),r=Array.prototype.map.call(e,(function(t){return t.track})),n=Array.prototype.map.call(e,(function(t){var e=Ne(t.track);return t.src&&(e.src=t.src),e}));return n.concat(Array.prototype.filter.call(t.textTracks(),(function(t){return-1===r.indexOf(t)})).map(Ne))},De=function(t,e){return t.forEach((function(t){var r=e.addRemoteTextTrack(t).track;!t.src&&t.cues&&t.cues.forEach((function(t){return r.addCue(t)}))})),e.textTracks()},Be={textTracksToJson:Ie,jsonToTextTracks:De,trackToJson_:Ne},Fe="vjs-modal-dialog",He=27,We=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n));return i.opened_=i.hasBeenOpened_=i.hasBeenFilled_=!1,i.closeable(!i.options_.uncloseable),i.content(i.options_.content),i.contentEl_=st("div",{className:Fe+"-content"},{role:"document"}),i.descEl_=st("p",{className:Fe+"-description vjs-control-text",id:i.el().getAttribute("aria-describedby")}),at(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}return I(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},e.prototype.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,t.prototype.dispose.call(this)},e.prototype.buildCSSClass=function(){return Fe+" vjs-hidden "+t.prototype.buildCSSClass.call(this)},e.prototype.handleKeyPress=function(t){t.which===He&&this.closeable()&&this.close()},e.prototype.label=function(){return this.localize(this.options_.label||"Modal Window")},e.prototype.description=function(){var t=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},e.prototype.open=function(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!t.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&t.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",ee(this,this.handleKeyPress)),this.hadControls_=t.controls(),t.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},e.prototype.opened=function(t){return"boolean"===typeof t&&this[t?"open":"close"](),this.opened_},e.prototype.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&t.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",ee(this,this.handleKeyPress)),this.hadControls_&&t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},e.prototype.closeable=function(t){if("boolean"===typeof t){var e=this.closeable_=!!t,r=this.getChild("closeButton");if(e&&!r){var n=this.contentEl_;this.contentEl_=this.el_,r=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=n,this.on(r,"close",this.close)}!e&&r&&(this.off(r,"close",this.close),this.removeChild(r),r.dispose())}return this.closeable_},e.prototype.fill=function(){this.fillWith(this.content())},e.prototype.fillWith=function(t){var e=this.contentEl(),r=e.parentNode,n=e.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,r.removeChild(e),this.empty(),St(e,t),this.trigger("modalfill"),n?r.insertBefore(e,n):r.appendChild(e);var i=this.getChild("closeButton");i&&r.appendChild(i.el_)},e.prototype.empty=function(){this.trigger("beforemodalempty"),wt(this.contentEl()),this.trigger("modalempty")},e.prototype.content=function(t){return"undefined"!==typeof t&&(this.content_=t),this.content_},e.prototype.conditionalFocus_=function(){var t=o.activeElement,e=this.player_.el_;this.previouslyActiveEl_=null,(e.contains(t)||e===t)&&(this.previouslyActiveEl_=t,this.focus(),this.on(o,"keydown",this.handleKeyDown))},e.prototype.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null),this.off(o,"keydown",this.handleKeyDown)},e.prototype.handleKeyDown=function(t){if(9===t.which){for(var e=this.focusableEls_(),r=this.el_.querySelector(":focus"),n=void 0,i=0;i<e.length;i++)if(r===e[i]){n=i;break}o.activeElement===this.el_&&(n=0),t.shiftKey&&0===n?(e[e.length-1].focus(),t.preventDefault()):t.shiftKey||n!==e.length-1||(e[0].focus(),t.preventDefault())}},e.prototype.focusableEls_=function(){var t=this.el_.querySelectorAll("*");return Array.prototype.filter.call(t,(function(t){return(t instanceof i.HTMLAnchorElement||t instanceof i.HTMLAreaElement)&&t.hasAttribute("href")||(t instanceof i.HTMLInputElement||t instanceof i.HTMLSelectElement||t instanceof i.HTMLTextAreaElement||t instanceof i.HTMLButtonElement)&&!t.hasAttribute("disabled")||t instanceof i.HTMLIFrameElement||t instanceof i.HTMLObjectElement||t instanceof i.HTMLEmbedElement||t.hasAttribute("tabindex")&&-1!==t.getAttribute("tabindex")||t.hasAttribute("contenteditable")}))},e}(_e);We.prototype.options_={pauseOnOpen:!0,temporary:!0},_e.registerComponent("ModalDialog",We);var Ve=function(t){function e(){var r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;N(this,e);var s=D(this,t.call(this));if(!i&&(i=s,S))for(var a in i=o.createElement("custom"),e.prototype)"constructor"!==a&&(i[a]=e.prototype[a]);i.tracks_=[],Object.defineProperty(i,"length",{get:function(){return this.tracks_.length}});for(var l=0;l<n.length;l++)i.addTrack(n[l]);return r=i,D(s,r)}return I(e,t),e.prototype.addTrack=function(t){var e=this.tracks_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.tracks_[e]}}),-1===this.tracks_.indexOf(t)&&(this.tracks_.push(t),this.trigger({track:t,type:"addtrack"}))},e.prototype.removeTrack=function(t){for(var e=void 0,r=0,n=this.length;r<n;r++)if(this[r]===t){e=this[r],e.off&&e.off(),this.tracks_.splice(r,1);break}e&&this.trigger({track:e,type:"removetrack"})},e.prototype.getTrackById=function(t){for(var e=null,r=0,n=this.length;r<n;r++){var i=this[r];if(i.id===t){e=i;break}}return e},e}(ie);for(var Xe in Ve.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},Ve.prototype.allowedEvents_)Ve.prototype["on"+Xe]=null;var Ye=function(t,e){for(var r=0;r<t.length;r++)Object.keys(t[r]).length&&e.id!==t[r].id&&(t[r].enabled=!1)},ze=function(t){function e(){var r,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];N(this,e);for(var s=void 0,a=i.length-1;a>=0;a--)if(i[a].enabled){Ye(i,i[a]);break}if(S){for(var l in s=o.createElement("custom"),Ve.prototype)"constructor"!==l&&(s[l]=Ve.prototype[l]);for(var c in e.prototype)"constructor"!==c&&(s[c]=e.prototype[c])}return r=D(this,t.call(this,i,s)),s=r,s.changing_=!1,n=s,D(r,n)}return I(e,t),e.prototype.addTrack=function(e){var r=this;e.enabled&&Ye(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&&e.addEventListener("enabledchange",(function(){r.changing_||(r.changing_=!0,Ye(r,e),r.changing_=!1,r.trigger("change"))}))},e}(Ve),Ue=function(t,e){for(var r=0;r<t.length;r++)Object.keys(t[r]).length&&e.id!==t[r].id&&(t[r].selected=!1)},$e=function(t){function e(){var r,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];N(this,e);for(var s=void 0,a=i.length-1;a>=0;a--)if(i[a].selected){Ue(i,i[a]);break}if(S){for(var l in s=o.createElement("custom"),Ve.prototype)"constructor"!==l&&(s[l]=Ve.prototype[l]);for(var c in e.prototype)"constructor"!==c&&(s[c]=e.prototype[c])}return r=D(this,t.call(this,i,s)),s=r,s.changing_=!1,Object.defineProperty(s,"selectedIndex",{get:function(){for(var t=0;t<this.length;t++)if(this[t].selected)return t;return-1},set:function(){}}),n=s,D(r,n)}return I(e,t),e.prototype.addTrack=function(e){var r=this;e.selected&&Ue(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&&e.addEventListener("selectedchange",(function(){r.changing_||(r.changing_=!0,Ue(r,e),r.changing_=!1,r.trigger("change"))}))},e}(Ve),qe=function(t){function e(){var r,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];N(this,e);var s=void 0;if(S){for(var a in s=o.createElement("custom"),Ve.prototype)"constructor"!==a&&(s[a]=Ve.prototype[a]);for(var l in e.prototype)"constructor"!==l&&(s[l]=e.prototype[l])}return r=D(this,t.call(this,i,s)),s=r,n=s,D(r,n)}return I(e,t),e.prototype.addTrack=function(e){t.prototype.addTrack.call(this,e),e.addEventListener("modechange",ee(this,(function(){this.trigger("change")})));var r=["metadata","chapters"];-1===r.indexOf(e.kind)&&e.addEventListener("modechange",ee(this,(function(){this.trigger("selectedlanguagechange")})))},e}(Ve),Ke=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];N(this,t);var r=this;if(S)for(var n in r=o.createElement("custom"),t.prototype)"constructor"!==n&&(r[n]=t.prototype[n]);r.trackElements_=[],Object.defineProperty(r,"length",{get:function(){return this.trackElements_.length}});for(var i=0,s=e.length;i<s;i++)r.addTrackElement_(e[i]);if(S)return r}return t.prototype.addTrackElement_=function(t){var e=this.trackElements_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.trackElements_[e]}}),-1===this.trackElements_.indexOf(t)&&this.trackElements_.push(t)},t.prototype.getTrackElementByTrack_=function(t){for(var e=void 0,r=0,n=this.trackElements_.length;r<n;r++)if(t===this.trackElements_[r].track){e=this.trackElements_[r];break}return e},t.prototype.removeTrackElement_=function(t){for(var e=0,r=this.trackElements_.length;e<r;e++)if(t===this.trackElements_[e]){this.trackElements_.splice(e,1);break}},t}(),Ge=function(){function t(e){N(this,t);var r=this;if(S)for(var n in r=o.createElement("custom"),t.prototype)"constructor"!==n&&(r[n]=t.prototype[n]);if(t.prototype.setCues_.call(r,e),Object.defineProperty(r,"length",{get:function(){return this.length_}}),S)return r}return t.prototype.setCues_=function(t){var e=this.length||0,r=0,n=t.length;this.cues_=t,this.length_=t.length;var i=function(t){""+t in this||Object.defineProperty(this,""+t,{get:function(){return this.cues_[t]}})};if(e<n)for(r=e;r<n;r++)i.call(this,r)},t.prototype.getCueById=function(t){for(var e=null,r=0,n=this.length;r<n;r++){var i=this[r];if(i.id===t){e=i;break}}return e},t}(),Je={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Qe={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Ze={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},tr={disabled:"disabled",hidden:"hidden",showing:"showing"},er=function(t){function e(){var r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};N(this,e);var i=D(this,t.call(this)),s=i;if(S)for(var a in s=o.createElement("custom"),e.prototype)"constructor"!==a&&(s[a]=e.prototype[a]);var l={id:n.id||"vjs_track_"+Lt(),kind:n.kind||"",label:n.label||"",language:n.language||""},c=function(t){Object.defineProperty(s,t,{get:function(){return l[t]},set:function(){}})};for(var u in l)c(u);return r=s,D(i,r)}return I(e,t),e}(ie),rr=function(t){var e=["protocol","hostname","port","pathname","search","hash","host"],r=o.createElement("a");r.href=t;var n=""===r.host&&"file:"!==r.protocol,s=void 0;n&&(s=o.createElement("div"),s.innerHTML='<a href="'+t+'"></a>',r=s.firstChild,s.setAttribute("style","display:none; position:absolute;"),o.body.appendChild(s));for(var a={},l=0;l<e.length;l++)a[e[l]]=r[e[l]];return"http:"===a.protocol&&(a.host=a.host.replace(/:80$/,"")),"https:"===a.protocol&&(a.host=a.host.replace(/:443$/,"")),a.protocol||(a.protocol=i.location.protocol),n&&o.body.removeChild(s),a},nr=function(t){if(!t.match(/^https?:\/\//)){var e=o.createElement("div");e.innerHTML='<a href="'+t+'">x</a>',t=e.firstChild.href}return t},ir=function(t){if("string"===typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,r=e.exec(t);if(r)return r.pop().toLowerCase()}return""},or=function(t){var e=i.location,r=rr(t),n=":"===r.protocol?e.protocol:r.protocol,o=n+r.host!==e.protocol+e.host;return o},sr=(Object.freeze||Object)({parseUrl:rr,getAbsoluteURL:nr,getFileExtension:ir,isCrossOrigin:or}),ar=function(t,e){var r=new i.WebVTT.Parser(i,i.vttjs,i.WebVTT.StringDecoder()),n=[];r.oncue=function(t){e.addCue(t)},r.onparsingerror=function(t){n.push(t)},r.onflush=function(){e.trigger({type:"loadeddata",target:e})},r.parse(t),n.length>0&&(i.console&&i.console.groupCollapsed&&i.console.groupCollapsed("Text Track parsing errors for "+e.src),n.forEach((function(t){return K.error(t)})),i.console&&i.console.groupEnd&&i.console.groupEnd()),r.flush()},lr=function(t,e){var r={uri:t},n=or(t);n&&(r.cors=n),l(r,ee(this,(function(t,r,n){if(t)return K.error(t,r);if(e.loaded_=!0,"function"!==typeof i.WebVTT){if(e.tech_){var o=function(){return ar(n,e)};e.tech_.on("vttjsloaded",o),e.tech_.on("vttjserror",(function(){K.error("vttjs failed to load, stopping trying to process "+e.src),e.tech_.off("vttjsloaded",o)}))}}else ar(n,e)})))},cr=function(t){function e(){var r,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(N(this,e),!i.tech)throw new Error("A tech was not provided.");var o=me(i,{kind:Ze[i.kind]||"subtitles",language:i.language||i.srclang||""}),s=tr[o.mode]||"disabled",a=o["default"];"metadata"!==o.kind&&"chapters"!==o.kind||(s="hidden");var l=(r=D(this,t.call(this,o)),r);if(l.tech_=o.tech,S)for(var c in e.prototype)"constructor"!==c&&(l[c]=e.prototype[c]);l.cues_=[],l.activeCues_=[];var u=new Ge(l.cues_),h=new Ge(l.activeCues_),p=!1,d=ee(l,(function(){this.activeCues=this.activeCues,p&&(this.trigger("cuechange"),p=!1)}));return"disabled"!==s&&l.tech_.ready((function(){l.tech_.on("timeupdate",d)}),!0),Object.defineProperty(l,"default",{get:function(){return a},set:function(){}}),Object.defineProperty(l,"mode",{get:function(){return s},set:function(t){var e=this;tr[t]&&(s=t,"disabled"!==s?this.tech_.ready((function(){e.tech_.on("timeupdate",d)}),!0):this.tech_.off("timeupdate",d),this.trigger("modechange"))}}),Object.defineProperty(l,"cues",{get:function(){return this.loaded_?u:null},set:function(){}}),Object.defineProperty(l,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return h;for(var t=this.tech_.currentTime(),e=[],r=0,n=this.cues.length;r<n;r++){var i=this.cues[r];(i.startTime<=t&&i.endTime>=t||i.startTime===i.endTime&&i.startTime<=t&&i.startTime+.5>=t)&&e.push(i)}if(p=!1,e.length!==this.activeCues_.length)p=!0;else for(var o=0;o<e.length;o++)-1===this.activeCues_.indexOf(e[o])&&(p=!0);return this.activeCues_=e,h.setCues_(this.activeCues_),h},set:function(){}}),o.src?(l.src=o.src,lr(o.src,l)):l.loaded_=!0,n=l,D(r,n)}return I(e,t),e.prototype.addCue=function(t){var e=t;if(i.vttjs&&!(t instanceof i.vttjs.VTTCue)){for(var r in e=new i.vttjs.VTTCue(t.startTime,t.endTime,t.text),t)r in e||(e[r]=t[r]);e.id=t.id,e.originalCue_=t}for(var n=this.tech_.textTracks(),o=0;o<n.length;o++)n[o]!==this&&n[o].removeCue(e);this.cues_.push(e),this.cues.setCues_(this.cues_)},e.prototype.removeCue=function(t){var e=this.cues_.length;while(e--){var r=this.cues_[e];if(r===t||r.originalCue_&&r.originalCue_===t){this.cues_.splice(e,1),this.cues.setCues_(this.cues_);break}}},e}(er);cr.prototype.allowedEvents_={cuechange:"cuechange"};var ur=function(t){function e(){var r,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};N(this,e);var o=me(i,{kind:Qe[i.kind]||""}),s=(r=D(this,t.call(this,o)),r),a=!1;if(S)for(var l in e.prototype)"constructor"!==l&&(s[l]=e.prototype[l]);return Object.defineProperty(s,"enabled",{get:function(){return a},set:function(t){"boolean"===typeof t&&t!==a&&(a=t,this.trigger("enabledchange"))}}),o.enabled&&(s.enabled=o.enabled),s.loaded_=!0,n=s,D(r,n)}return I(e,t),e}(er),hr=function(t){function e(){var r,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};N(this,e);var o=me(i,{kind:Je[i.kind]||""}),s=(r=D(this,t.call(this,o)),r),a=!1;if(S)for(var l in e.prototype)"constructor"!==l&&(s[l]=e.prototype[l]);return Object.defineProperty(s,"selected",{get:function(){return a},set:function(t){"boolean"===typeof t&&t!==a&&(a=t,this.trigger("selectedchange"))}}),o.selected&&(s.selected=o.selected),n=s,D(r,n)}return I(e,t),e}(er),pr=0,dr=1,fr=2,vr=3,gr=function(t){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};N(this,e);var n=D(this,t.call(this)),i=void 0,s=n;if(S)for(var a in s=o.createElement("custom"),e.prototype)"constructor"!==a&&(s[a]=e.prototype[a]);var l,c=new cr(r);return s.kind=c.kind,s.src=c.src,s.srclang=c.language,s.label=c.label,s["default"]=c["default"],Object.defineProperty(s,"readyState",{get:function(){return i}}),Object.defineProperty(s,"track",{get:function(){return c}}),i=pr,c.addEventListener("loadeddata",(function(){i=fr,s.trigger({type:"load",target:s})})),S?(l=s,D(n,l)):n}return I(e,t),e}(ie);gr.prototype.allowedEvents_={load:"load"},gr.NONE=pr,gr.LOADING=dr,gr.LOADED=fr,gr.ERROR=vr;var yr={audio:{ListClass:ze,TrackClass:ur,capitalName:"Audio"},video:{ListClass:$e,TrackClass:hr,capitalName:"Video"},text:{ListClass:qe,TrackClass:cr,capitalName:"Text"}};Object.keys(yr).forEach((function(t){yr[t].getterName=t+"Tracks",yr[t].privateName=t+"Tracks_"}));var mr={remoteText:{ListClass:qe,TrackClass:cr,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Ke,TrackClass:gr,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},_r=me(yr,mr);function br(t,e,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=t.textTracks();i.kind=e,r&&(i.label=r),n&&(i.language=n),i.tech=t;var s=new _r.text.TrackClass(i);return o.addTrack(s),s}mr.names=Object.keys(mr),yr.names=Object.keys(yr),_r.names=[].concat(mr.names).concat(yr.names);var Tr=function(t){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};N(this,e),r.reportTouchActivity=!1;var i=D(this,t.call(this,null,r,n));return i.hasStarted_=!1,i.on("playing",(function(){this.hasStarted_=!0})),i.on("loadstart",(function(){this.hasStarted_=!1})),_r.names.forEach((function(t){var e=_r[t];r&&r[e.getterName]&&(i[e.privateName]=r[e.getterName])})),i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(t){!1===r["native"+t+"Tracks"]&&(i["featuresNative"+t+"Tracks"]=!1)})),!1===r.nativeCaptions||!1===r.nativeTextTracks?i.featuresNativeTextTracks=!1:!0!==r.nativeCaptions&&!0!==r.nativeTextTracks||(i.featuresNativeTextTracks=!0),i.featuresNativeTextTracks||i.emulateTextTracks(),i.autoRemoteTextTracks_=new _r.text.ListClass,i.initTrackListeners(),r.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}return I(e,t),e.prototype.triggerSourceset=function(t){var e=this;this.isReady_||this.one("ready",(function(){return e.setTimeout((function(){return e.triggerSourceset(t)}),1)})),this.trigger({src:t,type:"sourceset"})},e.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},e.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},e.prototype.trackProgress=function(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(ee(this,(function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),this.bufferedPercent_=t,1===t&&this.stopTrackingProgress()})),500)},e.prototype.onDurationChange=function(t){this.duration_=this.duration()},e.prototype.buffered=function(){return ke(0,0)},e.prototype.bufferedPercent=function(){return we(this.buffered(),this.duration_)},e.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},e.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},e.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},e.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},e.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.dispose=function(){this.clearTracks(yr.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},e.prototype.clearTracks=function(t){var e=this;t=[].concat(t),t.forEach((function(t){var r=e[t+"Tracks"]()||[],n=r.length;while(n--){var i=r[n];"text"===t&&e.removeRemoteTextTrack(i),r.removeTrack(i)}}))},e.prototype.cleanupAutoTextTracks=function(){var t=this.autoRemoteTextTracks_||[],e=t.length;while(e--){var r=t[e];this.removeRemoteTextTrack(r)}},e.prototype.reset=function(){},e.prototype.error=function(t){return void 0!==t&&(this.error_=new Me(t),this.trigger("error")),this.error_},e.prototype.played=function(){return this.hasStarted_?ke(0,0):ke()},e.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.initTrackListeners=function(){var t=this;yr.names.forEach((function(e){var r=yr[e],n=function(){t.trigger(e+"trackchange")},i=t[r.getterName]();i.addEventListener("removetrack",n),i.addEventListener("addtrack",n),t.on("dispose",(function(){i.removeEventListener("removetrack",n),i.removeEventListener("addtrack",n)}))}))},e.prototype.addWebVttScript_=function(){var t=this;if(!i.WebVTT)if(o.body.contains(this.el())){if(!this.options_["vtt.js"]&&z(c)&&Object.keys(c).length>0)return void this.trigger("vttjsloaded");var e=o.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",e.onload=function(){t.trigger("vttjsloaded")},e.onerror=function(){t.trigger("vttjserror")},this.on("dispose",(function(){e.onload=null,e.onerror=null})),i.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)},e.prototype.emulateTextTracks=function(){var t=this,e=this.textTracks(),r=this.remoteTextTracks(),n=function(t){return e.addTrack(t.track)},i=function(t){return e.removeTrack(t.track)};r.on("addtrack",n),r.on("removetrack",i),this.addWebVttScript_();var o=function(){return t.trigger("texttrackchange")},s=function(){o();for(var t=0;t<e.length;t++){var r=e[t];r.removeEventListener("cuechange",o),"showing"===r.mode&&r.addEventListener("cuechange",o)}};s(),e.addEventListener("change",s),e.addEventListener("addtrack",s),e.addEventListener("removetrack",s),this.on("dispose",(function(){r.off("addtrack",n),r.off("removetrack",i),e.removeEventListener("change",s),e.removeEventListener("addtrack",s),e.removeEventListener("removetrack",s);for(var t=0;t<e.length;t++){var a=e[t];a.removeEventListener("cuechange",o)}}))},e.prototype.addTextTrack=function(t,e,r){if(!t)throw new Error("TextTrack kind is required but was not provided");return br(this,t,e,r)},e.prototype.createRemoteTextTrack=function(t){var e=me(t,{tech:this});return new mr.remoteTextEl.TrackClass(e)},e.prototype.addRemoteTextTrack=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments[1],n=this.createRemoteTextTrack(e);return!0!==r&&!1!==r&&(K.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),r=!0),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack(n.track),!0!==r&&this.ready((function(){return t.autoRemoteTextTracks_.addTrack(n.track)})),n},e.prototype.removeRemoteTextTrack=function(t){var e=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(e),this.remoteTextTracks().removeTrack(t),this.autoRemoteTextTracks_.removeTrack(t)},e.prototype.getVideoPlaybackQuality=function(){return{}},e.prototype.setPoster=function(){},e.prototype.playsinline=function(){},e.prototype.setPlaysinline=function(){},e.prototype.canPlayType=function(){return""},e.canPlayType=function(){return""},e.canPlaySource=function(t,r){return e.canPlayType(t.type)},e.isTech=function(t){return t.prototype instanceof e||t instanceof e||t===e},e.registerTech=function(t,r){if(e.techs_||(e.techs_={}),!e.isTech(r))throw new Error("Tech "+t+" must be a Tech");if(!e.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!e.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return t=ge(t),e.techs_[t]=r,"Tech"!==t&&e.defaultTechOrder_.push(t),r},e.getTech=function(t){if(t)return t=ge(t),e.techs_&&e.techs_[t]?e.techs_[t]:i&&i.videojs&&i.videojs[t]?(K.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),i.videojs[t]):void 0},e}(_e);_r.names.forEach((function(t){var e=_r[t];Tr.prototype[e.getterName]=function(){return this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName]}})),Tr.prototype.featuresVolumeControl=!0,Tr.prototype.featuresMuteControl=!0,Tr.prototype.featuresFullscreenResize=!1,Tr.prototype.featuresPlaybackRate=!1,Tr.prototype.featuresProgressEvents=!1,Tr.prototype.featuresSourceset=!1,Tr.prototype.featuresTimeupdateEvents=!1,Tr.prototype.featuresNativeTextTracks=!1,Tr.withSourceHandlers=function(t){t.registerSourceHandler=function(e,r){var n=t.sourceHandlers;n||(n=t.sourceHandlers=[]),void 0===r&&(r=n.length),n.splice(r,0,e)},t.canPlayType=function(e){for(var r=t.sourceHandlers||[],n=void 0,i=0;i<r.length;i++)if(n=r[i].canPlayType(e),n)return n;return""},t.selectSourceHandler=function(e,r){for(var n=t.sourceHandlers||[],i=void 0,o=0;o<n.length;o++)if(i=n[o].canHandleSource(e,r),i)return n[o];return null},t.canPlaySource=function(e,r){var n=t.selectSourceHandler(e,r);return n?n.canHandleSource(e,r):""};var e=["seekable","seeking","duration"];e.forEach((function(t){var e=this[t];"function"===typeof e&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):e.apply(this,arguments)})}),t.prototype),t.prototype.setSource=function(e){var r=t.selectSourceHandler(e,this.options_);r||(t.nativeSourceHandler?r=t.nativeSourceHandler:K.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),r!==t.nativeSourceHandler&&(this.currentSource_=e),this.sourceHandler_=r.handleSource(e,this,this.options_),this.on("dispose",this.disposeSourceHandler)},t.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)}},_e.registerComponent("Tech",Tr),Tr.registerTech("Tech",Tr),Tr.defaultTechOrder_=[];var Cr={},kr={},wr={};function Er(t,e){Cr[t]=Cr[t]||[],Cr[t].push(e)}function xr(t,e,r){t.setTimeout((function(){return Br(e,Cr[e.type],r,t)}),1)}function Sr(t,e){t.forEach((function(t){return t.setTech&&t.setTech(e)}))}function jr(t,e,r){return t.reduceRight(Rr(r),e[r]())}function Ar(t,e,r,n){return e[r](t.reduce(Rr(r),n))}function Pr(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i="call"+ge(r),o=t.reduce(Rr(i),n),s=o===wr,a=s?null:e[r](o);return Nr(t,r,a,s),a}var Mr={buffered:1,currentTime:1,duration:1,seekable:1,played:1,paused:1},Or={setCurrentTime:1},Lr={play:1,pause:1};function Rr(t){return function(e,r){return e===wr?wr:r[t]?r[t](e):e}}function Nr(t,e,r,n){for(var i=t.length-1;i>=0;i--){var o=t[i];o[e]&&o[e](n,r)}}function Ir(t){kr[t.id()]=null}function Dr(t,e){var r=kr[t.id()],n=null;if(void 0===r||null===r)return n=e(t),kr[t.id()]=[[e,n]],n;for(var i=0;i<r.length;i++){var o=r[i],s=o[0],a=o[1];s===e&&(n=a)}return null===n&&(n=e(t),r.push([e,n])),n}function Br(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments[2],n=arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=e[0],a=e.slice(1);if("string"===typeof s)Br(t,Cr[s],r,n,i,o);else if(s){var l=Dr(n,s);if(!l.setSource)return i.push(l),Br(t,a,r,n,i,o);l.setSource(X({},t),(function(e,s){if(e)return Br(t,a,r,n,i,o);i.push(l),Br(s,t.type===s.type?a:Cr[s.type],r,n,i,o)}))}else a.length?Br(t,a,r,n,i,o):o?r(t,i):Br(t,Cr["*"],r,n,i,!0)}var Fr={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",mp3:"audio/mpeg",aac:"audio/aac",oga:"audio/ogg",m3u8:"application/x-mpegURL"},Hr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=ir(t),r=Fr[e.toLowerCase()];return r||""},Wr=function(t,e){if(!e)return"";if(t.cache_.source.src===e&&t.cache_.source.type)return t.cache_.source.type;var r=t.cache_.sources.filter((function(t){return t.src===e}));if(r.length)return r[0].type;for(var n=t.$$("source"),i=0;i<n.length;i++){var o=n[i];if(o.type&&o.src&&o.src===e)return o.type}return Hr(e)},Vr=function t(e){if(Array.isArray(e)){var r=[];e.forEach((function(e){e=t(e),Array.isArray(e)?r=r.concat(e):Y(e)&&r.push(e)})),e=r}else e="string"===typeof e&&e.trim()?[Xr({src:e})]:Y(e)&&"string"===typeof e.src&&e.src&&e.src.trim()?[Xr(e)]:[];return e};function Xr(t){var e=Hr(t.src);return!t.type&&e&&(t.type=e),t}var Yr=function(t){function e(r,n,i){N(this,e);var o=me({createEl:!1},n),s=D(this,t.call(this,r,o,i));if(n.playerOptions.sources&&0!==n.playerOptions.sources.length)r.src(n.playerOptions.sources);else for(var a=0,l=n.playerOptions.techOrder;a<l.length;a++){var c=ge(l[a]),u=Tr.getTech(c);if(c||(u=_e.getComponent(c)),u&&u.isSupported()){r.loadTech_(c);break}}return s}return I(e,t),e}(_e);_e.registerComponent("MediaLoader",Yr);var zr=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n));return i.emitTapEvents(),i.enable(),i}return I(e,t),e.prototype.createEl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r=X({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},r),"button"===e&&K.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),n=X({role:"button"},n),this.tabIndex_=r.tabIndex;var i=t.prototype.createEl.call(this,e,r,n);return this.createControlTextEl(i),i},e.prototype.dispose=function(){this.controlTextEl_=null,t.prototype.dispose.call(this)},e.prototype.createControlTextEl=function(t){return this.controlTextEl_=st("span",{className:"vjs-control-text"},{"aria-live":"polite"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_,t),this.controlTextEl_},e.prototype.controlText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(void 0===t)return this.controlText_||"Need Text";var r=this.localize(t);this.controlText_=t,at(this.controlTextEl_,r),this.nonIconControl||e.setAttribute("title",r)},e.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},e.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!==typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},e.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!==typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},e.prototype.handleClick=function(t){},e.prototype.handleFocus=function(t){Yt(o,"keydown",ee(this,this.handleKeyPress))},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which?(e.preventDefault(),this.trigger("click")):t.prototype.handleKeyPress&&t.prototype.handleKeyPress.call(this,e)},e.prototype.handleBlur=function(t){zt(o,"keydown",ee(this,this.handleKeyPress))},e}(_e);_e.registerComponent("ClickableComponent",zr);var Ur=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n));return i.update(),r.on("posterchange",ee(i,i.update)),i}return I(e,t),e.prototype.dispose=function(){this.player().off("posterchange",this.update),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var t=st("div",{className:"vjs-poster",tabIndex:-1});return O||(this.fallbackImg_=st("img"),t.appendChild(this.fallbackImg_)),t},e.prototype.update=function(t){var e=this.player().poster();this.setSrc(e),e?this.show():this.hide()},e.prototype.setSrc=function(t){if(this.fallbackImg_)this.fallbackImg_.src=t;else{var e="";t&&(e='url("'+t+'")'),this.el_.style.backgroundImage=e}},e.prototype.handleClick=function(t){this.player_.controls()&&(this.player_.paused()?Re(this.player_.play()):this.player_.pause())},e}(zr);_e.registerComponent("PosterImage",Ur);var $r="#222",qr="#ccc",Kr={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 Gr(t,e){var r=void 0;if(4===t.length)r=t[1]+t[1]+t[2]+t[2]+t[3]+t[3];else{if(7!==t.length)throw new Error("Invalid color code provided, "+t+"; must be formatted as e.g. #f0e or #f604e2.");r=t.slice(1)}return"rgba("+parseInt(r.slice(0,2),16)+","+parseInt(r.slice(2,4),16)+","+parseInt(r.slice(4,6),16)+","+e+")"}function Jr(t,e,r){try{t.style[e]=r}catch(n){return}}var Qr=function(t){function e(r,n,o){N(this,e);var s=D(this,t.call(this,r,n,o)),a=ee(s,s.updateDisplay);return r.on("loadstart",ee(s,s.toggleDisplay)),r.on("texttrackchange",a),r.on("loadstart",ee(s,s.preselectTrack)),r.ready(ee(s,(function(){if(r.tech_&&r.tech_.featuresNativeTextTracks)this.hide();else{r.on("fullscreenchange",a),r.on("playerresize",a),i.addEventListener&&i.addEventListener("orientationchange",a),r.on("dispose",(function(){return i.removeEventListener("orientationchange",a)}));for(var t=this.options_.playerOptions.tracks||[],e=0;e<t.length;e++)this.player_.addRemoteTextTrack(t[e],!0);this.preselectTrack()}}))),s}return I(e,t),e.prototype.preselectTrack=function(){for(var t={captions:1,subtitles:1},e=this.player_.textTracks(),r=this.player_.cache_.selectedLanguage,n=void 0,i=void 0,o=void 0,s=0;s<e.length;s++){var a=e[s];r&&r.enabled&&r.language===a.language?a.kind===r.kind?o=a:o||(o=a):r&&!r.enabled?(o=null,n=null,i=null):a["default"]&&("descriptions"!==a.kind||n?a.kind in t&&!i&&(i=a):n=a)}o?o.mode="showing":i?i.mode="showing":n&&(n.mode="showing")},e.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},e.prototype.clearDisplay=function(){"function"===typeof i.WebVTT&&i.WebVTT.processCues(i,[],this.el_)},e.prototype.updateDisplay=function(){var t=this.player_.textTracks();this.clearDisplay();var e=null,r=null,n=t.length;while(n--){var i=t[n];"showing"===i.mode&&("descriptions"===i.kind?e=i:r=i)}r?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(r)):e&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(e))},e.prototype.updateForTrack=function(t){if("function"===typeof i.WebVTT&&t.activeCues){for(var e=[],r=0;r<t.activeCues.length;r++)e.push(t.activeCues[r]);if(i.WebVTT.processCues(i,e,this.el_),this.player_.textTrackSettings){var n=this.player_.textTrackSettings.getValues(),o=e.length;while(o--){var s=e[o];if(s){var a=s.displayState;if(n.color&&(a.firstChild.style.color=n.color),n.textOpacity&&Jr(a.firstChild,"color",Gr(n.color||"#fff",n.textOpacity)),n.backgroundColor&&(a.firstChild.style.backgroundColor=n.backgroundColor),n.backgroundOpacity&&Jr(a.firstChild,"backgroundColor",Gr(n.backgroundColor||"#000",n.backgroundOpacity)),n.windowColor&&(n.windowOpacity?Jr(a,"backgroundColor",Gr(n.windowColor,n.windowOpacity)):a.style.backgroundColor=n.windowColor),n.edgeStyle&&("dropshadow"===n.edgeStyle?a.firstChild.style.textShadow="2px 2px 3px "+$r+", 2px 2px 4px "+$r+", 2px 2px 5px "+$r:"raised"===n.edgeStyle?a.firstChild.style.textShadow="1px 1px "+$r+", 2px 2px "+$r+", 3px 3px "+$r:"depressed"===n.edgeStyle?a.firstChild.style.textShadow="1px 1px "+qr+", 0 1px "+qr+", -1px -1px "+$r+", 0 -1px "+$r:"uniform"===n.edgeStyle&&(a.firstChild.style.textShadow="0 0 4px "+$r+", 0 0 4px "+$r+", 0 0 4px "+$r+", 0 0 4px "+$r)),n.fontPercent&&1!==n.fontPercent){var l=i.parseFloat(a.style.fontSize);a.style.fontSize=l*n.fontPercent+"px",a.style.height="auto",a.style.top="auto",a.style.bottom="2px"}n.fontFamily&&"default"!==n.fontFamily&&("small-caps"===n.fontFamily?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=Kr[n.fontFamily])}}}}},e}(_e);_e.registerComponent("TextTrackDisplay",Qr);var Zr=function(t){function e(){return N(this,e),D(this,t.apply(this,arguments))}return I(e,t),e.prototype.createEl=function(){var e=this.player_.isAudio(),r=this.localize(e?"Audio Player":"Video Player"),n=st("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[r])}),i=t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return i.appendChild(n),i},e}(_e);_e.registerComponent("LoadingSpinner",Zr);var tn=function(t){function e(){return N(this,e),D(this,t.apply(this,arguments))}return I(e,t),e.prototype.createEl=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t="button",e=X({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},e),r=X({type:"button"},r);var n=_e.prototype.createEl.call(this,t,e,r);return this.createControlTextEl(n),n},e.prototype.addChild=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.constructor.name;return K.warn("Adding an actionable (user controllable) child to a Button ("+r+") is not supported; use a ClickableComponent instead."),_e.prototype.addChild.call(this,t,e)},e.prototype.enable=function(){t.prototype.enable.call(this),this.el_.removeAttribute("disabled")},e.prototype.disable=function(){t.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},e.prototype.handleKeyPress=function(e){32!==e.which&&13!==e.which&&t.prototype.handleKeyPress.call(this,e)},e}(zr);_e.registerComponent("Button",tn);var en=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n));return i.mouseused_=!1,i.on("mousedown",i.handleMouseDown),i}return I(e,t),e.prototype.buildCSSClass=function(){return"vjs-big-play-button"},e.prototype.handleClick=function(t){var e=this.player_.play();if(this.mouseused_&&t.clientX&&t.clientY)Re(e);else{var r=this.player_.getChild("controlBar"),n=r&&r.getChild("playToggle");if(n){var i=function(){return n.focus()};Le(e)?e.then(i,(function(){})):this.setTimeout(i,1)}else this.player_.focus()}},e.prototype.handleKeyPress=function(e){this.mouseused_=!1,t.prototype.handleKeyPress.call(this,e)},e.prototype.handleMouseDown=function(t){this.mouseused_=!0},e}(tn);en.prototype.controlText_="Play Video",_e.registerComponent("BigPlayButton",en);var rn=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n));return i.controlText(n&&n.controlText||i.localize("Close")),i}return I(e,t),e.prototype.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(t){this.trigger({type:"close",bubbles:!1})},e}(tn);_e.registerComponent("CloseButton",rn);var nn=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n));return i.on(r,"play",i.handlePlay),i.on(r,"pause",i.handlePause),i.on(r,"ended",i.handleEnded),i}return I(e,t),e.prototype.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},e.prototype.handleSeeked=function(t){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(t):this.handlePlay(t)},e.prototype.handlePlay=function(t){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},e.prototype.handlePause=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},e.prototype.handleEnded=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},e}(tn);nn.prototype.controlText_="Play",_e.registerComponent("PlayToggle",nn);var on=function(t,e){t=t<0?0:t;var r=Math.floor(t%60),n=Math.floor(t/60%60),i=Math.floor(t/3600),o=Math.floor(e/60%60),s=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(i=n=r="-"),i=i>0||s>0?i+":":"",n=((i||o>=10)&&n<10?"0"+n:n)+":",r=r<10?"0"+r:r,i+n+r},sn=on;function an(t){sn=t}function ln(){sn=on}var cn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return sn(t,e)},un=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n));return i.throttledUpdateContent=re(ee(i,i.updateContent),25),i.on(r,"timeupdate",i.throttledUpdateContent),i}return I(e,t),e.prototype.createEl=function(e){var r=this.buildCSSClass(),n=t.prototype.createEl.call(this,"div",{className:r+" vjs-time-control vjs-control",innerHTML:'<span class="vjs-control-text">'+this.localize(this.labelText_)+" </span>"});return this.contentEl_=st("span",{className:r+"-display"},{"aria-live":"off"}),this.updateTextNode_(),n.appendChild(this.contentEl_),n},e.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,t.prototype.dispose.call(this)},e.prototype.updateTextNode_=function(){if(this.contentEl_){while(this.contentEl_.firstChild)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=o.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},e.prototype.formatTime_=function(t){return cn(t)},e.prototype.updateFormattedTime_=function(t){var e=this.formatTime_(t);e!==this.formattedTime_&&(this.formattedTime_=e,this.requestAnimationFrame(this.updateTextNode_))},e.prototype.updateContent=function(t){},e}(_e);un.prototype.labelText_="Time",un.prototype.controlText_="Time",_e.registerComponent("TimeDisplay",un);var hn=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n));return i.on(r,"ended",i.handleEnded),i}return I(e,t),e.prototype.buildCSSClass=function(){return"vjs-current-time"},e.prototype.updateContent=function(t){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(e)},e.prototype.handleEnded=function(t){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},e}(un);hn.prototype.labelText_="Current Time",hn.prototype.controlText_="Current Time",_e.registerComponent("CurrentTimeDisplay",hn);var pn=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n));return i.on(r,"durationchange",i.updateContent),i.on(r,"loadedmetadata",i.throttledUpdateContent),i}return I(e,t),e.prototype.buildCSSClass=function(){return"vjs-duration"},e.prototype.updateContent=function(t){var e=this.player_.duration();e&&this.duration_!==e&&(this.duration_=e,this.updateFormattedTime_(e))},e}(un);pn.prototype.labelText_="Duration",pn.prototype.controlText_="Duration",_e.registerComponent("DurationDisplay",pn);var dn=function(t){function e(){return N(this,e),D(this,t.apply(this,arguments))}return I(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},e}(_e);_e.registerComponent("TimeDivider",dn);var fn=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n));return i.on(r,"durationchange",i.throttledUpdateContent),i.on(r,"ended",i.handleEnded),i}return I(e,t),e.prototype.buildCSSClass=function(){return"vjs-remaining-time"},e.prototype.formatTime_=function(e){return"-"+t.prototype.formatTime_.call(this,e)},e.prototype.updateContent=function(t){this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},e.prototype.handleEnded=function(t){this.player_.duration()&&this.updateFormattedTime_(0)},e}(un);fn.prototype.labelText_="Remaining Time",fn.prototype.controlText_="Remaining Time",_e.registerComponent("RemainingTimeDisplay",fn);var vn=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n));return i.updateShowing(),i.on(i.player(),"durationchange",i.updateShowing),i}return I(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=st("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+" </span>"+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.dispose=function(){this.contentEl_=null,t.prototype.dispose.call(this)},e.prototype.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},e}(_e);_e.registerComponent("LiveDisplay",vn);var gn=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n));return i.bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}return I(e,t),e.prototype.enabled=function(){return this.enabled_},e.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),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)},e.prototype.disable=function(){if(this.enabled()){var t=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},e.prototype.createEl=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r.className=r.className+" vjs-slider",r=X({tabIndex:0},r),n=X({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},n),t.prototype.createEl.call(this,e,r,n)},e.prototype.handleMouseDown=function(t){var e=this.bar.el_.ownerDocument;"mousedown"===t.type&&t.preventDefault(),"touchstart"!==t.type||E||t.preventDefault(),mt(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(e,"mousemove",this.handleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchmove",this.handleMouseMove),this.on(e,"touchend",this.handleMouseUp),this.handleMouseMove(t)},e.prototype.handleMouseMove=function(t){},e.prototype.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;_t(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.update()},e.prototype.update=function(){if(this.el_){var t=this.getPercent(),e=this.bar;if(e){("number"!==typeof t||t!==t||t<0||t===1/0)&&(t=0);var r=(100*t).toFixed(2)+"%",n=e.el().style;return this.vertical()?n.height=r:n.width=r,t}}},e.prototype.calculateDistance=function(t){var e=Ct(this.el_,t);return this.vertical()?e.y:e.x},e.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepBack()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepForward())},e.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleClick=function(t){t.stopImmediatePropagation(),t.preventDefault()},e.prototype.vertical=function(t){if(void 0===t)return this.vertical_||!1;this.vertical_=!!t,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},e}(_e);_e.registerComponent("Slider",gn);var yn=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n));return i.partEls_=[],i.on(r,"progress",i.update),i}return I(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},e.prototype.dispose=function(){this.partEls_=null,t.prototype.dispose.call(this)},e.prototype.update=function(t){var e=this.player_.buffered(),r=this.player_.duration(),n=this.player_.bufferedEnd(),i=this.partEls_,o=function(t,e){var r=t/e||0;return 100*(r>=1?1:r)+"%"};this.el_.style.width=o(n,r);for(var s=0;s<e.length;s++){var a=e.start(s),l=e.end(s),c=i[s];c||(c=this.el_.appendChild(st()),i[s]=c),c.style.left=o(a,n),c.style.width=o(l-a,n)}for(var u=i.length;u>e.length;u--)this.el_.removeChild(i[u-1]);i.length=e.length},e}(_e);_e.registerComponent("LoadProgressBar",yn);var mn=function(t){function e(){return N(this,e),D(this,t.apply(this,arguments))}return I(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},e.prototype.update=function(t,e,r){var n=bt(this.el_),i=bt(this.player_.el()),o=t.width*e;if(i&&n){var s=t.left-i.left+o,a=t.width-o+(i.right-t.right),l=n.width/2;s<l?l+=l-s:a<l&&(l=a),l<0?l=0:l>n.width&&(l=n.width),this.el_.style.right="-"+l+"px",at(this.el_,r)}},e}(_e);_e.registerComponent("TimeTooltip",mn);var _n=function(t){function e(){return N(this,e),D(this,t.apply(this,arguments))}return I(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},e.prototype.update=function(t,e){var r=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var n=r.player_.scrubbing()?r.player_.getCache().currentTime:r.player_.currentTime(),i=cn(n,r.player_.duration()),o=r.getChild("timeTooltip");o&&o.update(t,e,i)}))},e}(_e);_n.prototype.options_={children:[]},j&&!(j>8)||y||_||_n.prototype.options_.children.push("timeTooltip"),_e.registerComponent("PlayProgressBar",_n);var bn=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n));return i.update=re(ee(i,i.update),25),i}return I(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},e.prototype.update=function(t,e){var r=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var n=r.player_.duration(),i=cn(e*n,n);r.el_.style.left=t.width*e+"px",r.getChild("timeTooltip").update(t,e,i)}))},e}(_e);bn.prototype.options_={children:["timeTooltip"]},_e.registerComponent("MouseTimeDisplay",bn);var Tn=5,Cn=30,kn=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n));return i.setEventHandlers_(),i}return I(e,t),e.prototype.setEventHandlers_=function(){var t=this;this.update=re(ee(this,this.update),Cn),this.on(this.player_,"timeupdate",this.update),this.on(this.player_,"ended",this.handleEnded),this.updateInterval=null,this.on(this.player_,["playing"],(function(){t.clearInterval(t.updateInterval),t.updateInterval=t.setInterval((function(){t.requestAnimationFrame((function(){t.update()}))}),Cn)})),this.on(this.player_,["ended","pause","waiting"],(function(){t.clearInterval(t.updateInterval)})),this.on(this.player_,["timeupdate","ended"],this.update)},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},e.prototype.update_=function(t,e){var r=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*e).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[cn(t,r),cn(r,r)],"{1} of {2}")),this.bar.update(bt(this.el_),e)},e.prototype.update=function(e){var r=t.prototype.update.call(this);return this.update_(this.getCurrentTime_(),r),r},e.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},e.prototype.handleEnded=function(t){this.update_(this.player_.duration(),1)},e.prototype.getPercent=function(){var t=this.getCurrentTime_()/this.player_.duration();return t>=1?1:t},e.prototype.handleMouseDown=function(e){jt(e)&&(e.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),t.prototype.handleMouseDown.call(this,e))},e.prototype.handleMouseMove=function(t){if(jt(t)){var e=this.calculateDistance(t)*this.player_.duration();e===this.player_.duration()&&(e-=.1),this.player_.currentTime(e)}},e.prototype.enable=function(){t.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()},e.prototype.disable=function(){t.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()},e.prototype.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&Re(this.player_.play())},e.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+Tn)},e.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-Tn)},e.prototype.handleAction=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which?(e.preventDefault(),this.handleAction(e)):t.prototype.handleKeyPress&&t.prototype.handleKeyPress.call(this,e)},e}(gn);kn.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},j&&!(j>8)||y||_||kn.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),kn.prototype.playerEvent="timeupdate",_e.registerComponent("SeekBar",kn);var wn=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n));return i.handleMouseMove=re(ee(i,i.handleMouseMove),25),i.throttledHandleMouseSeek=re(ee(i,i.handleMouseSeek),25),i.enable(),i}return I(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},e.prototype.handleMouseMove=function(t){var e=this.getChild("seekBar");if(e){var r=e.getChild("mouseTimeDisplay"),n=e.el(),i=bt(n),o=Ct(n,t).x;o>1?o=1:o<0&&(o=0),r&&r.update(i,o)}},e.prototype.handleMouseSeek=function(t){var e=this.getChild("seekBar");e&&e.handleMouseMove(t)},e.prototype.enabled=function(){return this.enabled_},e.prototype.disable=function(){this.children().forEach((function(t){return t.disable&&t.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},e.prototype.enable=function(){this.children().forEach((function(t){return t.enable&&t.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},e.prototype.handleMouseDown=function(t){var e=this.el_.ownerDocument,r=this.getChild("seekBar");r&&r.handleMouseDown(t),this.on(e,"mousemove",this.throttledHandleMouseSeek),this.on(e,"touchmove",this.throttledHandleMouseSeek),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchend",this.handleMouseUp)},e.prototype.handleMouseUp=function(t){var e=this.el_.ownerDocument,r=this.getChild("seekBar");r&&r.handleMouseUp(t),this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchend",this.handleMouseUp)},e}(_e);wn.prototype.options_={children:["seekBar"]},_e.registerComponent("ProgressControl",wn);var En=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n));return i.on(r,"fullscreenchange",i.handleFullscreenChange),!1===o[Ee.fullscreenEnabled]&&i.disable(),i}return I(e,t),e.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleFullscreenChange=function(t){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},e.prototype.handleClick=function(t){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},e}(tn);En.prototype.controlText_="Fullscreen",_e.registerComponent("FullscreenToggle",En);var xn=function(t,e){e.tech_&&!e.tech_.featuresVolumeControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",(function(){e.tech_.featuresVolumeControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")}))},Sn=function(t){function e(){return N(this,e),D(this,t.apply(this,arguments))}return I(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},e}(_e);_e.registerComponent("VolumeLevel",Sn);var jn=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n));return i.on("slideractive",i.updateLastVolume_),i.on(r,"volumechange",i.updateARIAAttributes),r.ready((function(){return i.updateARIAAttributes()})),i}return I(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},e.prototype.handleMouseDown=function(e){jt(e)&&t.prototype.handleMouseDown.call(this,e)},e.prototype.handleMouseMove=function(t){jt(t)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(t)))},e.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},e.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},e.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},e.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},e.prototype.updateARIAAttributes=function(t){var e=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",e),this.el_.setAttribute("aria-valuetext",e+"%")},e.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},e.prototype.updateLastVolume_=function(){var t=this,e=this.player_.volume();this.one("sliderinactive",(function(){0===t.player_.volume()&&t.player_.lastVolume_(e)}))},e}(gn);jn.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},jn.prototype.playerEvent="volumechange",_e.registerComponent("VolumeBar",jn);var An=function(t){function e(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};N(this,e),n.vertical=n.vertical||!1,("undefined"===typeof n.volumeBar||z(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical);var i=D(this,t.call(this,r,n));return xn(i,r),i.throttledHandleMouseMove=re(ee(i,i.handleMouseMove),25),i.on("mousedown",i.handleMouseDown),i.on("touchstart",i.handleMouseDown),i.on(i.volumeBar,["focus","slideractive"],(function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")})),i.on(i.volumeBar,["blur","sliderinactive"],(function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")})),i}return I(e,t),e.prototype.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},e.prototype.handleMouseDown=function(t){var e=this.el_.ownerDocument;this.on(e,"mousemove",this.throttledHandleMouseMove),this.on(e,"touchmove",this.throttledHandleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchend",this.handleMouseUp)},e.prototype.handleMouseUp=function(t){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseMove),this.off(e,"touchmove",this.throttledHandleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchend",this.handleMouseUp)},e.prototype.handleMouseMove=function(t){this.volumeBar.handleMouseMove(t)},e}(_e);An.prototype.options_={children:["volumeBar"]},_e.registerComponent("VolumeControl",An);var Pn=function(t,e){e.tech_&&!e.tech_.featuresMuteControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",(function(){e.tech_.featuresMuteControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")}))},Mn=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n));return Pn(i,r),i.on(r,["loadstart","volumechange"],i.update),i}return I(e,t),e.prototype.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(t){var e=this.player_.volume(),r=this.player_.lastVolume_();if(0===e){var n=r<.1?.1:r;this.player_.volume(n),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},e.prototype.update=function(t){this.updateIcon_(),this.updateControlText_()},e.prototype.updateIcon_=function(){var t=this.player_.volume(),e=3;y&&this.player_.muted(this.player_.tech_.el_.muted),0===t||this.player_.muted()?e=0:t<.33?e=1:t<.67&&(e=2);for(var r=0;r<4;r++)ht(this.el_,"vjs-vol-"+r);ut(this.el_,"vjs-vol-"+e)},e.prototype.updateControlText_=function(){var t=this.player_.muted()||0===this.player_.volume(),e=t?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},e}(tn);Mn.prototype.controlText_="Mute",_e.registerComponent("MuteToggle",Mn);var On=function(t){function e(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};N(this,e),"undefined"!==typeof n.inline?n.inline=n.inline:n.inline=!0,("undefined"===typeof n.volumeControl||z(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline);var i=D(this,t.call(this,r,n));return i.on(r,["loadstart"],i.volumePanelState_),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}return I(e,t),e.prototype.sliderActive_=function(){this.addClass("vjs-slider-active")},e.prototype.sliderInactive_=function(){this.removeClass("vjs-slider-active")},e.prototype.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")},e.prototype.createEl=function(){var e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+e})},e}(_e);On.prototype.options_={children:["muteToggle","volumeControl"]},_e.registerComponent("VolumePanel",On);var Ln=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n));return n&&(i.menuButton_=n.menuButton),i.focusedChild_=-1,i.on("keydown",i.handleKeyPress),i}return I(e,t),e.prototype.addItem=function(t){this.addChild(t),t.on("click",ee(this,(function(e){this.menuButton_&&(this.menuButton_.unpressButton(),"CaptionSettingsMenuItem"!==t.name()&&this.menuButton_.focus())})))},e.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=st(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var r=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return r.appendChild(this.contentEl_),Yt(r,"click",(function(t){t.preventDefault(),t.stopImmediatePropagation()})),r},e.prototype.dispose=function(){this.contentEl_=null,t.prototype.dispose.call(this)},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepForward()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepBack())},e.prototype.stepForward=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_+1),this.focus(t)},e.prototype.stepBack=function(){var t=0;void 0!==this.focusedChild_&&(t=this.focusedChild_-1),this.focus(t)},e.prototype.focus=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=this.children().slice(),r=e.length&&e[0].className&&/vjs-menu-title/.test(e[0].className);r&&e.shift(),e.length>0&&(t<0?t=0:t>=e.length&&(t=e.length-1),this.focusedChild_=t,e[t].el_.focus())},e}(_e);_e.registerComponent("Menu",Ln);var Rn=function(t){function e(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};N(this,e);var i=D(this,t.call(this,r,n));i.menuButton_=new tn(r,n),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true");var o=tn.prototype.buildCSSClass();return i.menuButton_.el_.className=i.buildCSSClass()+" "+o,i.menuButton_.removeClass("vjs-control"),i.addChild(i.menuButton_),i.update(),i.enabled_=!0,i.on(i.menuButton_,"tap",i.handleClick),i.on(i.menuButton_,"click",i.handleClick),i.on(i.menuButton_,"focus",i.handleFocus),i.on(i.menuButton_,"blur",i.handleBlur),i.on("keydown",i.handleSubmenuKeyPress),i}return I(e,t),e.prototype.update=function(){var t=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=t,this.addChild(t),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},e.prototype.createMenu=function(){var t=new Ln(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var e=st("li",{className:"vjs-menu-title",innerHTML:ge(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,t.children_.unshift(e),lt(e,t.contentEl())}if(this.items=this.createItems(),this.items)for(var r=0;r<this.items.length;r++)t.addItem(this.items[r]);return t},e.prototype.createItems=function(){},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},e.prototype.buildWrapperCSSClass=function(){var e="vjs-menu-button";!0===this.options_.inline?e+="-inline":e+="-popup";var r=tn.prototype.buildCSSClass();return"vjs-menu-button "+e+" "+r+" "+t.prototype.buildCSSClass.call(this)},e.prototype.buildCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+t.prototype.buildCSSClass.call(this)},e.prototype.controlText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(t,e)},e.prototype.handleClick=function(t){this.one(this.menu.contentEl(),"mouseleave",ee(this,(function(t){this.unpressButton(),this.el_.blur()}))),this.buttonPressed_?this.unpressButton():this.pressButton()},e.prototype.focus=function(){this.menuButton_.focus()},e.prototype.blur=function(){this.menuButton_.blur()},e.prototype.handleFocus=function(){Yt(o,"keydown",ee(this,this.handleKeyPress))},e.prototype.handleBlur=function(){zt(o,"keydown",ee(this,this.handleKeyPress))},e.prototype.handleKeyPress=function(t){27===t.which||9===t.which?(this.buttonPressed_&&this.unpressButton(),9!==t.which&&(t.preventDefault(),this.menuButton_.el_.focus())):38!==t.which&&40!==t.which||this.buttonPressed_||(this.pressButton(),t.preventDefault())},e.prototype.handleSubmenuKeyPress=function(t){27!==t.which&&9!==t.which||(this.buttonPressed_&&this.unpressButton(),9!==t.which&&(t.preventDefault(),this.menuButton_.el_.focus()))},e.prototype.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),y&&it())return;this.menu.focus()}},e.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},e.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},e.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},e}(_e);_e.registerComponent("MenuButton",Rn);var Nn=function(t){function e(r,n){N(this,e);var i=n.tracks,o=D(this,t.call(this,r,n));if(o.items.length<=1&&o.hide(),!i)return D(o);var s=ee(o,o.update);return i.addEventListener("removetrack",s),i.addEventListener("addtrack",s),o.player_.on("ready",s),o.player_.on("dispose",(function(){i.removeEventListener("removetrack",s),i.removeEventListener("addtrack",s)})),o}return I(e,t),e}(Rn);_e.registerComponent("TrackButton",Nn);var In=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n));return i.selectable=n.selectable,i.isSelected_=n.selected||!1,i.multiSelectable=n.multiSelectable,i.selected(i.isSelected_),i.selectable?i.multiSelectable?i.el_.setAttribute("role","menuitemcheckbox"):i.el_.setAttribute("role","menuitemradio"):i.el_.setAttribute("role","menuitem"),i}return I(e,t),e.prototype.createEl=function(e,r,n){return this.nonIconControl=!0,t.prototype.createEl.call(this,"li",X({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},r),n)},e.prototype.handleClick=function(t){this.selected(!0)},e.prototype.selected=function(t){this.selectable&&(t?(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))},e}(zr);_e.registerComponent("MenuItem",In);var Dn=function(t){function e(r,n){N(this,e);var s=n.track,a=r.textTracks();n.label=s.label||s.language||"Unknown",n.selected="showing"===s.mode;var l=D(this,t.call(this,r,n));l.track=s;var c=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];l.handleTracksChange.apply(l,e)},u=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];l.handleSelectedLanguageChange.apply(l,e)};if(r.on(["loadstart","texttrackchange"],c),a.addEventListener("change",c),a.addEventListener("selectedlanguagechange",u),l.on("dispose",(function(){r.off(["loadstart","texttrackchange"],c),a.removeEventListener("change",c),a.removeEventListener("selectedlanguagechange",u)})),void 0===a.onchange){var h=void 0;l.on(["tap","click"],(function(){if("object"!==R(i.Event))try{h=new i.Event("change")}catch(t){}h||(h=o.createEvent("Event"),h.initEvent("change",!0,!0)),a.dispatchEvent(h)}))}return l.handleTracksChange(),l}return I(e,t),e.prototype.handleClick=function(e){var r=this.track.kind,n=this.track.kinds,i=this.player_.textTracks();if(n||(n=[r]),t.prototype.handleClick.call(this,e),i)for(var o=0;o<i.length;o++){var s=i[o];s===this.track&&n.indexOf(s.kind)>-1?"showing"!==s.mode&&(s.mode="showing"):"disabled"!==s.mode&&(s.mode="disabled")}},e.prototype.handleTracksChange=function(t){var e="showing"===this.track.mode;e!==this.isSelected_&&this.selected(e)},e.prototype.handleSelectedLanguageChange=function(t){if("showing"===this.track.mode){var e=this.player_.cache_.selectedLanguage;if(e&&e.enabled&&e.language===this.track.language&&e.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},e.prototype.dispose=function(){this.track=null,t.prototype.dispose.call(this)},e}(In);_e.registerComponent("TextTrackMenuItem",Dn);var Bn=function(t){function e(r,n){return N(this,e),n.track={player:r,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,D(this,t.call(this,r,n))}return I(e,t),e.prototype.handleTracksChange=function(t){for(var e=this.player().textTracks(),r=!0,n=0,i=e.length;n<i;n++){var o=e[n];if(this.options_.kinds.indexOf(o.kind)>-1&&"showing"===o.mode){r=!1;break}}r!==this.isSelected_&&this.selected(r)},e.prototype.handleSelectedLanguageChange=function(t){for(var e=this.player().textTracks(),r=!0,n=0,i=e.length;n<i;n++){var o=e[n];if(["captions","descriptions","subtitles"].indexOf(o.kind)>-1&&"showing"===o.mode){r=!1;break}}r&&(this.player_.cache_.selectedLanguage={enabled:!1})},e}(Dn);_e.registerComponent("OffTextTrackMenuItem",Bn);var Fn=function(t){function e(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return N(this,e),n.tracks=r.textTracks(),D(this,t.call(this,r,n))}return I(e,t),e.prototype.createItems=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dn,r=void 0;this.label_&&(r=this.label_+" off"),t.push(new Bn(this.player_,{kinds:this.kinds_,kind:this.kind_,label:r})),this.hideThreshold_+=1;var n=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var i=0;i<n.length;i++){var o=n[i];if(this.kinds_.indexOf(o.kind)>-1){var s=new e(this.player_,{track:o,selectable:!0,multiSelectable:!1});s.addClass("vjs-"+o.kind+"-menu-item"),t.push(s)}}return t},e}(Nn);_e.registerComponent("TextTrackButton",Fn);var Hn=function(t){function e(r,n){N(this,e);var i=n.track,o=n.cue,s=r.currentTime();n.selectable=!0,n.multiSelectable=!1,n.label=o.text,n.selected=o.startTime<=s&&s<o.endTime;var a=D(this,t.call(this,r,n));return a.track=i,a.cue=o,i.addEventListener("cuechange",ee(a,a.update)),a}return I(e,t),e.prototype.handleClick=function(e){t.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},e.prototype.update=function(t){var e=this.cue,r=this.player_.currentTime();this.selected(e.startTime<=r&&r<e.endTime)},e}(In);_e.registerComponent("ChaptersTrackMenuItem",Hn);var Wn=function(t){function e(r,n,i){return N(this,e),D(this,t.call(this,r,n,i))}return I(e,t),e.prototype.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.update=function(e){this.track_&&(!e||"addtrack"!==e.type&&"removetrack"!==e.type)||this.setTrack(this.findChaptersTrack()),t.prototype.update.call(this)},e.prototype.setTrack=function(t){if(this.track_!==t){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=t,this.track_){this.track_.mode="hidden";var r=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);r&&r.addEventListener("load",this.updateHandler_)}}},e.prototype.findChaptersTrack=function(){for(var t=this.player_.textTracks()||[],e=t.length-1;e>=0;e--){var r=t[e];if(r.kind===this.kind_)return r}},e.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(ge(this.kind_))},e.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),t.prototype.createMenu.call(this)},e.prototype.createItems=function(){var t=[];if(!this.track_)return t;var e=this.track_.cues;if(!e)return t;for(var r=0,n=e.length;r<n;r++){var i=e[r],o=new Hn(this.player_,{track:this.track_,cue:i});t.push(o)}return t},e}(Fn);Wn.prototype.kind_="chapters",Wn.prototype.controlText_="Chapters",_e.registerComponent("ChaptersButton",Wn);var Vn=function(t){function e(r,n,i){N(this,e);var o=D(this,t.call(this,r,n,i)),s=r.textTracks(),a=ee(o,o.handleTracksChange);return s.addEventListener("change",a),o.on("dispose",(function(){s.removeEventListener("change",a)})),o}return I(e,t),e.prototype.handleTracksChange=function(t){for(var e=this.player().textTracks(),r=!1,n=0,i=e.length;n<i;n++){var o=e[n];if(o.kind!==this.kind_&&"showing"===o.mode){r=!0;break}}r?this.disable():this.enable()},e.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(Fn);Vn.prototype.kind_="descriptions",Vn.prototype.controlText_="Descriptions",_e.registerComponent("DescriptionsButton",Vn);var Xn=function(t){function e(r,n,i){return N(this,e),D(this,t.call(this,r,n,i))}return I(e,t),e.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(Fn);Xn.prototype.kind_="subtitles",Xn.prototype.controlText_="Subtitles",_e.registerComponent("SubtitlesButton",Xn);var Yn=function(t){function e(r,n){N(this,e),n.track={player:r,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem";var i=D(this,t.call(this,r,n));return i.addClass("vjs-texttrack-settings"),i.controlText(", opens "+n.kind+" settings dialog"),i}return I(e,t),e.prototype.handleClick=function(t){this.player().getChild("textTrackSettings").open()},e}(Dn);_e.registerComponent("CaptionSettingsMenuItem",Yn);var zn=function(t){function e(r,n,i){return N(this,e),D(this,t.call(this,r,n,i))}return I(e,t),e.prototype.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-captions-button "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Yn(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),t.prototype.createItems.call(this,e)},e}(Fn);zn.prototype.kind_="captions",zn.prototype.controlText_="Captions",_e.registerComponent("CaptionsButton",zn);var Un=function(t){function e(){return N(this,e),D(this,t.apply(this,arguments))}return I(e,t),e.prototype.createEl=function(e,r,n){var i='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);"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>";var o=t.prototype.createEl.call(this,e,X({innerHTML:i},r),n);return o},e}(Dn);_e.registerComponent("SubsCapsMenuItem",Un);var $n=function(t){function e(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};N(this,e);var i=D(this,t.call(this,r,n));return i.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(i.player_.language_)>-1&&(i.label_="captions"),i.menuButton_.controlText(ge(i.label_)),i}return I(e,t),e.prototype.buildCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Yn(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=t.prototype.createItems.call(this,e,Un),e},e}(Fn);$n.prototype.kinds_=["captions","subtitles"],$n.prototype.controlText_="Subtitles",_e.registerComponent("SubsCapsButton",$n);var qn=function(t){function e(r,n){N(this,e);var i=n.track,o=r.audioTracks();n.label=i.label||i.language||"Unknown",n.selected=i.enabled;var s=D(this,t.call(this,r,n));s.track=i,s.addClass("vjs-"+i.kind+"-menu-item");var a=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];s.handleTracksChange.apply(s,e)};return o.addEventListener("change",a),s.on("dispose",(function(){o.removeEventListener("change",a)})),s}return I(e,t),e.prototype.createEl=function(e,r,n){var i='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);"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>";var o=t.prototype.createEl.call(this,e,X({innerHTML:i},r),n);return o},e.prototype.handleClick=function(e){var r=this.player_.audioTracks();t.prototype.handleClick.call(this,e);for(var n=0;n<r.length;n++){var i=r[n];i.enabled=i===this.track}},e.prototype.handleTracksChange=function(t){this.selected(this.track.enabled)},e}(In);_e.registerComponent("AudioTrackMenuItem",qn);var Kn=function(t){function e(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return N(this,e),n.tracks=r.audioTracks(),D(this,t.call(this,r,n))}return I(e,t),e.prototype.buildCSSClass=function(){return"vjs-audio-button "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-audio-button "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.createItems=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.hideThreshold_=1;for(var e=this.player_.audioTracks(),r=0;r<e.length;r++){var n=e[r];t.push(new qn(this.player_,{track:n,selectable:!0,multiSelectable:!1}))}return t},e}(Nn);Kn.prototype.controlText_="Audio Track",_e.registerComponent("AudioTrackButton",Kn);var Gn=function(t){function e(r,n){N(this,e);var i=n.rate,o=parseFloat(i,10);n.label=i,n.selected=1===o,n.selectable=!0,n.multiSelectable=!1;var s=D(this,t.call(this,r,n));return s.label=i,s.rate=o,s.on(r,"ratechange",s.update),s}return I(e,t),e.prototype.handleClick=function(e){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},e.prototype.update=function(t){this.selected(this.player().playbackRate()===this.rate)},e}(In);Gn.prototype.contentElType="button",_e.registerComponent("PlaybackRateMenuItem",Gn);var Jn=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n));return i.updateVisibility(),i.updateLabel(),i.on(r,"loadstart",i.updateVisibility),i.on(r,"ratechange",i.updateLabel),i}return I(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this);return this.labelEl_=st("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),e.appendChild(this.labelEl_),e},e.prototype.dispose=function(){this.labelEl_=null,t.prototype.dispose.call(this)},e.prototype.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},e.prototype.buildWrapperCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildWrapperCSSClass.call(this)},e.prototype.createMenu=function(){var t=new Ln(this.player()),e=this.playbackRates();if(e)for(var r=e.length-1;r>=0;r--)t.addChild(new Gn(this.player(),{rate:e[r]+"x"}));return t},e.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},e.prototype.handleClick=function(t){for(var e=this.player().playbackRate(),r=this.playbackRates(),n=r[0],i=0;i<r.length;i++)if(r[i]>e){n=r[i];break}this.player().playbackRate(n)},e.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},e.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},e.prototype.updateVisibility=function(t){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},e.prototype.updateLabel=function(t){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},e}(Rn);Jn.prototype.controlText_="Playback Rate",_e.registerComponent("PlaybackRateMenuButton",Jn);var Qn=function(t){function e(){return N(this,e),D(this,t.apply(this,arguments))}return I(e,t),e.prototype.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e}(_e);_e.registerComponent("Spacer",Qn);var Zn=function(t){function e(){return N(this,e),D(this,t.apply(this,arguments))}return I(e,t),e.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,{className:this.buildCSSClass()});return e.innerHTML=" ",e},e}(Qn);_e.registerComponent("CustomControlSpacer",Zn);var ti=function(t){function e(){return N(this,e),D(this,t.apply(this,arguments))}return I(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},e}(_e);ti.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},_e.registerComponent("ControlBar",ti);var ei=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n));return i.on(r,"error",i.open),i}return I(e,t),e.prototype.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},e.prototype.content=function(){var t=this.player().error();return t?this.localize(t.message):""},e}(We);ei.prototype.options_=me(We.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),_e.registerComponent("ErrorDisplay",ei);var ri="vjs-text-track-settings",ni=["#000","Black"],ii=["#00F","Blue"],oi=["#0FF","Cyan"],si=["#0F0","Green"],ai=["#F0F","Magenta"],li=["#F00","Red"],ci=["#FFF","White"],ui=["#FF0","Yellow"],hi=["1","Opaque"],pi=["0.5","Semi-Transparent"],di=["0","Transparent"],fi={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[ni,ci,li,si,ii,ui,ai,oi]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[hi,pi,di]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[ci,ni,li,si,ii,ui,ai,oi]},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(t){return"1.00"===t?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[hi,pi]},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:[di,pi,hi]}};function vi(t,e){if(e&&(t=e(t)),t&&"none"!==t)return t}function gi(t,e){var r=t.options[t.options.selectedIndex].value;return vi(r,e)}function yi(t,e,r){if(e)for(var n=0;n<t.options.length;n++)if(vi(t.options[n].value,r)===e){t.selectedIndex=n;break}}fi.windowColor.options=fi.backgroundColor.options;var mi=function(t){function e(r,n){N(this,e),n.temporary=!1;var i=D(this,t.call(this,r,n));return i.updateDisplay=ee(i,i.updateDisplay),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=st("p",{className:"vjs-control-text",textContent:i.localize("End of dialog window.")}),i.el().appendChild(i.endDialog),i.setDefaults(),void 0===n.persistTextTrackSettings&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",(function(){i.saveSettings(),i.close()})),i.on(i.$(".vjs-default-button"),"click",(function(){i.setDefaults(),i.updateDisplay()})),W(fi,(function(t){i.on(i.$(t.selector),"change",i.updateDisplay)})),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}return I(e,t),e.prototype.dispose=function(){this.endDialog=null,t.prototype.dispose.call(this)},e.prototype.createElSelect_=function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"label",i=fi[t],o=i.id.replace("%s",this.id_),s=[r,o].join(" ").trim();return["<"+n+' id="'+o+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(i.label),"</"+n+">",'<select aria-labelledby="'+s+'">'].concat(i.options.map((function(t){var r=o+"-"+t[1].replace(/\W+/g,"");return['<option id="'+r+'" value="'+t[0]+'" ','aria-labelledby="'+s+" "+r+'">',e.localize(t[1]),"</option>"].join("")}))).concat("</select>").join("")},e.prototype.createElFgColor_=function(){var t="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",t),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",t),"</span>","</fieldset>"].join("")},e.prototype.createElBgColor_=function(){var t="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",t),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",t),"</span>","</fieldset>"].join("")},e.prototype.createElWinColor_=function(){var t="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",t),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",t),"</span>","</fieldset>"].join("")},e.prototype.createElColors_=function(){return st("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},e.prototype.createElFont_=function(){return st("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("")})},e.prototype.createElControls_=function(){var t=this.localize("restore all settings to the default values");return st("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+t+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+t+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},e.prototype.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},e.prototype.label=function(){return this.localize("Caption Settings Dialog")},e.prototype.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},e.prototype.buildCSSClass=function(){return t.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},e.prototype.getValues=function(){var t=this;return V(fi,(function(e,r,n){var i=gi(t.$(r.selector),r.parser);return void 0!==i&&(e[n]=i),e}),{})},e.prototype.setValues=function(t){var e=this;W(fi,(function(r,n){yi(e.$(r.selector),t[n],r.parser)}))},e.prototype.setDefaults=function(){var t=this;W(fi,(function(e){var r=e.hasOwnProperty("default")?e["default"]:0;t.$(e.selector).selectedIndex=r}))},e.prototype.restoreSettings=function(){var t=void 0;try{t=JSON.parse(i.localStorage.getItem(ri))}catch(e){K.warn(e)}t&&this.setValues(t)},e.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var t=this.getValues();try{Object.keys(t).length?i.localStorage.setItem(ri,JSON.stringify(t)):i.localStorage.removeItem(ri)}catch(e){K.warn(e)}}},e.prototype.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()},e.prototype.conditionalBlur_=function(){this.previouslyActiveEl_=null,this.off(o,"keydown",this.handleKeyDown);var t=this.player_.controlBar,e=t&&t.subsCapsButton,r=t&&t.captionsButton;e?e.focus():r&&r.focus()},e}(We);_e.registerComponent("TextTrackSettings",mi);var _i=function(t){function e(r,n){N(this,e);var o=n.ResizeObserver||i.ResizeObserver;null===n.ResizeObserver&&(o=!1);var s=me({createEl:!o},n),a=D(this,t.call(this,r,s));return a.ResizeObserver=n.ResizeObserver||i.ResizeObserver,a.loadListener_=null,a.resizeObserver_=null,a.debouncedHandler_=ne((function(){a.resizeHandler()}),100,!1,a),o?(a.resizeObserver_=new a.ResizeObserver(a.debouncedHandler_),a.resizeObserver_.observe(r.el())):(a.loadListener_=function(){a.el_&&a.el_.contentWindow&&Yt(a.el_.contentWindow,"resize",a.debouncedHandler_)},a.one("load",a.loadListener_)),a}return I(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager"})},e.prototype.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},e.prototype.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.el_&&this.el_.contentWindow&&zt(this.el_.contentWindow,"resize",this.debouncedHandler_),this.loadListener_&&this.off("load",this.loadListener_),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null},e}(_e);_e.registerComponent("ResizeManager",_i);var bi=function(t){var e=t.el();if(e.hasAttribute("src"))return t.triggerSourceset(e.src),!0;var r=t.$$("source"),n=[],i="";if(!r.length)return!1;for(var o=0;o<r.length;o++){var s=r[o].src;s&&-1===n.indexOf(s)&&n.push(s)}return!!n.length&&(1===n.length&&(i=n[0]),t.triggerSourceset(i),!0)},Ti={};S||(Ti=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(t){var e=o.createElement(this.nodeName.toLowerCase());e.innerHTML=t;var r=o.createDocumentFragment();while(e.childNodes.length)r.appendChild(e.childNodes[0]);return this.innerText="",i.Element.prototype.appendChild.call(this,r),this.innerHTML}}));var Ci=function(t,e){for(var r={},n=0;n<t.length;n++)if(r=Object.getOwnPropertyDescriptor(t[n],e),r&&r.set&&r.get)break;return r.enumerable=!0,r.configurable=!0,r},ki=function(t){return Ci([t.el(),i.HTMLMediaElement.prototype,i.Element.prototype,Ti],"innerHTML")},wi=function(t){var e=t.el();if(!e.resetSourceWatch_){var r={},n=ki(t),i=function(r){return function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];var s=r.apply(e,i);return bi(t),s}};["append","appendChild","insertAdjacentHTML"].forEach((function(t){e[t]&&(r[t]=e[t],e[t]=i(r[t]))})),Object.defineProperty(e,"innerHTML",me(n,{set:i(n.set)})),e.resetSourceWatch_=function(){e.resetSourceWatch_=null,Object.keys(r).forEach((function(t){e[t]=r[t]})),Object.defineProperty(e,"innerHTML",n)},t.one("sourceset",e.resetSourceWatch_)}},Ei={};S||(Ei=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?nr(i.Element.prototype.getAttribute.call(this,"src")):""},set:function(t){return i.Element.prototype.setAttribute.call(this,"src",t),t}}));var xi=function(t){return Ci([t.el(),i.HTMLMediaElement.prototype,Ei],"src")},Si=function(t){if(t.featuresSourceset){var e=t.el();if(!e.resetSourceset_){var r=xi(t),n=e.setAttribute,i=e.load;Object.defineProperty(e,"src",me(r,{set:function(n){var i=r.set.call(e,n);return t.triggerSourceset(e.src),i}})),e.setAttribute=function(r,i){var o=n.call(e,r,i);return/src/i.test(r)&&t.triggerSourceset(e.src),o},e.load=function(){var r=i.call(e);return bi(t)||(t.triggerSourceset(""),wi(t)),r},e.currentSrc?t.triggerSourceset(e.currentSrc):bi(t)||wi(t),e.resetSourceset_=function(){e.resetSourceset_=null,e.load=i,e.setAttribute=n,Object.defineProperty(e,"src",r),e.resetSourceWatch_&&e.resetSourceWatch_()}}}},ji=B(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."],["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."]),Ai=function(t){function e(r,n){N(this,e);var i=D(this,t.call(this,r,n)),o=r.source,a=!1;if(o&&(i.el_.currentSrc!==o.src||r.tag&&3===r.tag.initNetworkState_)?i.setSource(o):i.handleLateInit_(i.el_),r.enableSourceset&&i.setupSourcesetHandling_(),i.el_.hasChildNodes()){var l=i.el_.childNodes,c=l.length,u=[];while(c--){var h=l[c],p=h.nodeName.toLowerCase();"track"===p&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(h),i.remoteTextTracks().addTrack(h.track),i.textTracks().addTrack(h.track),a||i.el_.hasAttribute("crossorigin")||!or(h.src)||(a=!0)):u.push(h))}for(var d=0;d<u.length;d++)i.el_.removeChild(u[d])}return i.proxyNativeTracks_(),i.featuresNativeTextTracks&&a&&K.warn(s(ji)),i.restoreMetadataTracksInIOSNativePlayer_(),(M||v||C)&&!0===r.nativeControlsForTouch&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}return I(e,t),e.prototype.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),e.disposeMediaElement(this.el_),this.options_=null,t.prototype.dispose.call(this)},e.prototype.setupSourcesetHandling_=function(){Si(this)},e.prototype.restoreMetadataTracksInIOSNativePlayer_=function(){var t=this.textTracks(),e=void 0,r=function(){e=[];for(var r=0;r<t.length;r++){var n=t[r];"metadata"===n.kind&&e.push({track:n,storedMode:n.mode})}};r(),t.addEventListener("change",r),this.on("dispose",(function(){return t.removeEventListener("change",r)}));var n=function r(){for(var n=0;n<e.length;n++){var i=e[n];"disabled"===i.track.mode&&i.track.mode!==i.storedMode&&(i.track.mode=i.storedMode)}t.removeEventListener("change",r)};this.on("webkitbeginfullscreen",(function(){t.removeEventListener("change",r),t.removeEventListener("change",n),t.addEventListener("change",n)})),this.on("webkitendfullscreen",(function(){t.removeEventListener("change",r),t.addEventListener("change",r),t.removeEventListener("change",n)}))},e.prototype.proxyNativeTracks_=function(){var t=this;yr.names.forEach((function(e){var r=yr[e],n=t.el()[r.getterName],i=t[r.getterName]();if(t["featuresNative"+r.capitalName+"Tracks"]&&n&&n.addEventListener){var o={change:function(t){i.trigger({type:"change",target:i,currentTarget:i,srcElement:i})},addtrack:function(t){i.addTrack(t.track)},removetrack:function(t){i.removeTrack(t.track)}},s=function(){for(var t=[],e=0;e<i.length;e++){for(var r=!1,o=0;o<n.length;o++)if(n[o]===i[e]){r=!0;break}r||t.push(i[e])}while(t.length)i.removeTrack(t.shift())};Object.keys(o).forEach((function(e){var r=o[e];n.addEventListener(e,r),t.on("dispose",(function(t){return n.removeEventListener(e,r)}))})),t.on("loadstart",s),t.on("dispose",(function(e){return t.off("loadstart",s)}))}}))},e.prototype.createEl=function(){var t=this.options_.tag;if(!t||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(t){var r=t.cloneNode(!0);t.parentNode&&t.parentNode.insertBefore(r,t),e.disposeMediaElement(t),t=r}else{t=o.createElement("video");var n=this.options_.tag&&ft(this.options_.tag),i=me({},n);M&&!0===this.options_.nativeControlsForTouch||delete i.controls,dt(t,X(i,{id:this.options_.techId,class:"vjs-tech"}))}t.playerId=this.options_.playerId}"undefined"!==typeof this.options_.preload&>(t,"preload",this.options_.preload);for(var s=["loop","muted","playsinline","autoplay"],a=0;a<s.length;a++){var l=s[a],c=this.options_[l];"undefined"!==typeof c&&(c?gt(t,l,l):yt(t,l),t[l]=c)}return t},e.prototype.handleLateInit_=function(t){if(0!==t.networkState&&3!==t.networkState){if(0===t.readyState){var e=!1,r=function(){e=!0};this.on("loadstart",r);var n=function(){e||this.trigger("loadstart")};return this.on("loadedmetadata",n),void this.ready((function(){this.off("loadstart",r),this.off("loadedmetadata",n),e||this.trigger("loadstart")}))}var i=["loadstart"];i.push("loadedmetadata"),t.readyState>=2&&i.push("loadeddata"),t.readyState>=3&&i.push("canplay"),t.readyState>=4&&i.push("canplaythrough"),this.ready((function(){i.forEach((function(t){this.trigger(t)}),this)}))}},e.prototype.setCurrentTime=function(t){try{this.el_.currentTime=t}catch(e){K(e,"Video is not ready. (Video.js)")}},e.prototype.duration=function(){var t=this;if(this.el_.duration===1/0&&_&&E&&0===this.el_.currentTime){var e=function e(){t.el_.currentTime>0&&(t.el_.duration===1/0&&t.trigger("durationchange"),t.off("timeupdate",e))};return this.on("timeupdate",e),NaN}return this.el_.duration||NaN},e.prototype.width=function(){return this.el_.offsetWidth},e.prototype.height=function(){return this.el_.offsetHeight},e.prototype.proxyWebkitFullscreen_=function(){var t=this;if("webkitDisplayingFullscreen"in this.el_){var e=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},r=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",r),this.on("dispose",(function(){t.off("webkitbeginfullscreen",r),t.off("webkitendfullscreen",e)}))}},e.prototype.supportsFullScreen=function(){if("function"===typeof this.el_.webkitEnterFullScreen){var t=i.navigator&&i.navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},e.prototype.enterFullScreen=function(){var t=this.el_;t.paused&&t.networkState<=t.HAVE_METADATA?(this.el_.play(),this.setTimeout((function(){t.pause(),t.webkitEnterFullScreen()}),0)):t.webkitEnterFullScreen()},e.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},e.prototype.src=function(t){if(void 0===t)return this.el_.src;this.setSrc(t)},e.prototype.reset=function(){e.resetMediaElement(this.el_)},e.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},e.prototype.setControls=function(t){this.el_.controls=!!t},e.prototype.addTextTrack=function(e,r,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,r,n):t.prototype.addTextTrack.call(this,e,r,n)},e.prototype.createRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return t.prototype.createRemoteTextTrack.call(this,e);var r=o.createElement("track");return e.kind&&(r.kind=e.kind),e.label&&(r.label=e.label),(e.language||e.srclang)&&(r.srclang=e.language||e.srclang),e["default"]&&(r["default"]=e["default"]),e.id&&(r.id=e.id),e.src&&(r.src=e.src),r},e.prototype.addRemoteTextTrack=function(e,r){var n=t.prototype.addRemoteTextTrack.call(this,e,r);return this.featuresNativeTextTracks&&this.el().appendChild(n),n},e.prototype.removeRemoteTextTrack=function(e){if(t.prototype.removeRemoteTextTrack.call(this,e),this.featuresNativeTextTracks){var r=this.$$("track"),n=r.length;while(n--)e!==r[n]&&e!==r[n].track||this.el().removeChild(r[n])}},e.prototype.getVideoPlaybackQuality=function(){if("function"===typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var t={};return"undefined"!==typeof this.el().webkitDroppedFrameCount&&"undefined"!==typeof this.el().webkitDecodedFrameCount&&(t.droppedVideoFrames=this.el().webkitDroppedFrameCount,t.totalVideoFrames=this.el().webkitDecodedFrameCount),i.performance&&"function"===typeof i.performance.now?t.creationTime=i.performance.now():i.performance&&i.performance.timing&&"number"===typeof i.performance.timing.navigationStart&&(t.creationTime=i.Date.now()-i.performance.timing.navigationStart),t},e}(Tr);if(rt()){Ai.TEST_VID=o.createElement("video");var Pi=o.createElement("track");Pi.kind="captions",Pi.srclang="en",Pi.label="English",Ai.TEST_VID.appendChild(Pi)}Ai.isSupported=function(){try{Ai.TEST_VID.volume=.5}catch(t){return!1}return!(!Ai.TEST_VID||!Ai.TEST_VID.canPlayType)},Ai.canPlayType=function(t){return Ai.TEST_VID.canPlayType(t)},Ai.canPlaySource=function(t,e){return Ai.canPlayType(t.type)},Ai.canControlVolume=function(){try{var t=Ai.TEST_VID.volume;return Ai.TEST_VID.volume=t/2+.1,t!==Ai.TEST_VID.volume}catch(e){return!1}},Ai.canMuteVolume=function(){try{var t=Ai.TEST_VID.muted;return Ai.TEST_VID.muted=!t,Ai.TEST_VID.muted?gt(Ai.TEST_VID,"muted","muted"):yt(Ai.TEST_VID,"muted","muted"),t!==Ai.TEST_VID.muted}catch(e){return!1}},Ai.canControlPlaybackRate=function(){if(_&&E&&x<58)return!1;try{var t=Ai.TEST_VID.playbackRate;return Ai.TEST_VID.playbackRate=t/2+.1,t!==Ai.TEST_VID.playbackRate}catch(e){return!1}},Ai.canOverrideAttributes=function(){if(S)return!1;try{var t=function(){};Object.defineProperty(o.createElement("video"),"src",{get:t,set:t}),Object.defineProperty(o.createElement("audio"),"src",{get:t,set:t}),Object.defineProperty(o.createElement("video"),"innerHTML",{get:t,set:t}),Object.defineProperty(o.createElement("audio"),"innerHTML",{get:t,set:t})}catch(e){return!1}return!0},Ai.supportsNativeTextTracks=function(){return P||y&&E},Ai.supportsNativeVideoTracks=function(){return!(!Ai.TEST_VID||!Ai.TEST_VID.videoTracks)},Ai.supportsNativeAudioTracks=function(){return!(!Ai.TEST_VID||!Ai.TEST_VID.audioTracks)},Ai.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],Ai.prototype.featuresVolumeControl=Ai.canControlVolume(),Ai.prototype.featuresMuteControl=Ai.canMuteVolume(),Ai.prototype.featuresPlaybackRate=Ai.canControlPlaybackRate(),Ai.prototype.featuresSourceset=Ai.canOverrideAttributes(),Ai.prototype.movingMediaElementInDOM=!y,Ai.prototype.featuresFullscreenResize=!0,Ai.prototype.featuresProgressEvents=!0,Ai.prototype.featuresTimeupdateEvents=!0,Ai.prototype.featuresNativeTextTracks=Ai.supportsNativeTextTracks(),Ai.prototype.featuresNativeVideoTracks=Ai.supportsNativeVideoTracks(),Ai.prototype.featuresNativeAudioTracks=Ai.supportsNativeAudioTracks();var Mi=Ai.TEST_VID&&Ai.TEST_VID.constructor.prototype.canPlayType,Oi=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,Li=/^video\/mp4/i;Ai.patchCanPlayType=function(){b>=4&&!k&&!E?Ai.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&Oi.test(t)?"maybe":Mi.call(this,t)}:T&&(Ai.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&Li.test(t)?"maybe":Mi.call(this,t)})},Ai.unpatchCanPlayType=function(){var t=Ai.TEST_VID.constructor.prototype.canPlayType;return Ai.TEST_VID.constructor.prototype.canPlayType=Mi,t},Ai.patchCanPlayType(),Ai.disposeMediaElement=function(t){if(t){t.parentNode&&t.parentNode.removeChild(t);while(t.hasChildNodes())t.removeChild(t.firstChild);t.removeAttribute("src"),"function"===typeof t.load&&function(){try{t.load()}catch(e){}}()}},Ai.resetMediaElement=function(t){if(t){var e=t.querySelectorAll("source"),r=e.length;while(r--)t.removeChild(e[r]);t.removeAttribute("src"),"function"===typeof t.load&&function(){try{t.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(t){Ai.prototype[t]=function(){return this.el_[t]||this.el_.hasAttribute(t)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(t){Ai.prototype["set"+ge(t)]=function(e){this.el_[t]=e,e?this.el_.setAttribute(t,t):this.el_.removeAttribute(t)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach((function(t){Ai.prototype[t]=function(){return this.el_[t]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate"].forEach((function(t){Ai.prototype["set"+ge(t)]=function(e){this.el_[t]=e}})),["pause","load","play"].forEach((function(t){Ai.prototype[t]=function(){return this.el_[t]()}})),Tr.withSourceHandlers(Ai),Ai.nativeSourceHandler={},Ai.nativeSourceHandler.canPlayType=function(t){try{return Ai.TEST_VID.canPlayType(t)}catch(e){return""}},Ai.nativeSourceHandler.canHandleSource=function(t,e){if(t.type)return Ai.nativeSourceHandler.canPlayType(t.type);if(t.src){var r=ir(t.src);return Ai.nativeSourceHandler.canPlayType("video/"+r)}return""},Ai.nativeSourceHandler.handleSource=function(t,e,r){e.setSrc(t.src)},Ai.nativeSourceHandler.dispose=function(){},Ai.registerSourceHandler(Ai.nativeSourceHandler),Tr.registerTech("Html5",Ai);var Ri=B(["\n Using the tech directly can be dangerous. I hope you know what you're doing.\n See https://github.com/videojs/video.js/issues/2617 for more info.\n "],["\n Using the tech directly can be dangerous. I hope you know what you're doing.\n See https://github.com/videojs/video.js/issues/2617 for more info.\n "]),Ni=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Ii={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Di=["tiny","xsmall","small","medium","large","xlarge","huge"],Bi={};Di.forEach((function(t){var e="x"===t.charAt(0)?"x-"+t.substring(1):t;Bi[t]="vjs-layout-"+e}));var Fi={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Hi=function(t){function e(r,n,i){if(N(this,e),r.id=r.id||n.id||"vjs_video_"+Lt(),n=X(e.getTagSettings(r),n),n.initChildren=!1,n.createEl=!1,n.evented=!1,n.reportTouchActivity=!1,!n.language)if("function"===typeof r.closest){var o=r.closest("[lang]");o&&o.getAttribute&&(n.language=o.getAttribute("lang"))}else{var s=r;while(s&&1===s.nodeType){if(ft(s).hasOwnProperty("lang")){n.language=s.getAttribute("lang");break}s=s.parentNode}}var a=D(this,t.call(this,null,n,i));if(a.log=G(a.id_),a.isPosterFromTech_=!1,a.queuedCallbacks_=[],a.isReady_=!1,a.hasStarted_=!1,a.userActive_=!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&&ft(r),a.language(a.options_.language),n.languages){var l={};Object.getOwnPropertyNames(n.languages).forEach((function(t){l[t.toLowerCase()]=n.languages[t]})),a.languages_=l}else a.languages_=e.prototype.options_.languages;a.cache_={},a.poster_=n.poster||"",a.controls_=!!n.controls,a.cache_.lastVolume=1,r.controls=!1,r.removeAttribute("controls"),r.hasAttribute("autoplay")?a.options_.autoplay=!0:a.autoplay(a.options_.autoplay),a.scrubbing_=!1,a.el_=a.createEl(),a.cache_.lastPlaybackRate=a.defaultPlaybackRate(),de(a,{eventBusKey:"el_"});var c=me(a.options_);if(n.plugins){var h=n.plugins;Object.keys(h).forEach((function(t){if("function"!==typeof this[t])throw new Error('plugin "'+t+'" does not exist');this[t](h[t])}),a)}a.options_.playerOptions=c,a.middleware_=[],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"),y||a.addClass("vjs-workinghover"),e.players[a.id_]=a;var p=u.split(".")[0];return a.addClass("vjs-v"+p),a.userActive(!0),a.reportUserActivity(),a.one("play",a.listenForUserActivity_),a.on("fullscreenchange",a.handleFullscreenChange_),a.on("stageclick",a.handleStageClick_),a.breakpoints(a.options_.breakpoints),a.responsive(a.options_.responsive),a.changingSrc_=!1,a.playWaitingForReady_=!1,a.playOnLoadstart_=null,a}return I(e,t),e.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),e.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),Ir(this),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var e=this.tag,r=void 0,n=this.playerElIngest_=e.parentNode&&e.parentNode.hasAttribute&&e.parentNode.hasAttribute("data-vjs-player"),s="video-js"===this.tag.tagName.toLowerCase();n?r=this.el_=e.parentNode:s||(r=this.el_=t.prototype.createEl.call(this,"div"));var a=ft(e);if(s){r=this.el_=e,e=this.tag=o.createElement("video");while(r.children.length)e.appendChild(r.firstChild);ct(r,"video-js")||ut(r,"video-js"),r.appendChild(e),n=this.playerElIngest_=r,["autoplay","controls","crossOrigin","defaultMuted","defaultPlaybackRate","loop","muted","playbackRate","src","volume"].forEach((function(t){"undefined"!==typeof r[t]&&(e[t]=r[t])}))}if(e.setAttribute("tabindex","-1"),a.tabindex="-1",j&&(e.setAttribute("role","application"),a.role="application"),e.removeAttribute("width"),e.removeAttribute("height"),"width"in a&&delete a.width,"height"in a&&delete a.height,Object.getOwnPropertyNames(a).forEach((function(t){"class"===t?(r.className+=" "+a[t],s&&(e.className+=" "+a[t])):(r.setAttribute(t,a[t]),s&&e.setAttribute(t,a[t]))})),e.playerId=e.id,e.id+="_html5_api",e.className="vjs-tech",e.player=r.player=this,this.addClass("vjs-paused"),!0!==i.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Zt("vjs-styles-dimensions");var l=At(".vjs-styles-defaults"),c=At("head");c.insertBefore(this.styleEl_,l?l.nextSibling:c.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);for(var u=e.getElementsByTagName("a"),h=0;h<u.length;h++){var p=u.item(h);ut(p,"vjs-hidden"),p.setAttribute("hidden","hidden")}return e.initNetworkState_=e.networkState,e.parentNode&&!n&&e.parentNode.insertBefore(r,e),lt(e,r),this.children_.unshift(e),this.el_.setAttribute("lang",this.language_),this.el_=r,r},e.prototype.width=function(t){return this.dimension("width",t)},e.prototype.height=function(t){return this.dimension("height",t)},e.prototype.dimension=function(t,e){var r=t+"_";if(void 0===e)return this[r]||0;if(""===e)return this[r]=void 0,void this.updateStyleEl_();var n=parseFloat(e);isNaN(n)?K.error('Improper value "'+e+'" supplied for for '+t):(this[r]=n,this.updateStyleEl_())},e.prototype.fluid=function(t){if(void 0===t)return!!this.fluid_;this.fluid_=!!t,t?(this.addClass("vjs-fluid"),this.fill(!1)):this.removeClass("vjs-fluid"),this.updateStyleEl_()},e.prototype.fill=function(t){if(void 0===t)return!!this.fill_;this.fill_=!!t,t?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},e.prototype.aspectRatio=function(t){if(void 0===t)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(t))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=t,this.fluid(!0),this.updateStyleEl_()},e.prototype.updateStyleEl_=function(){if(!0!==i.VIDEOJS_NO_DYNAMIC_STYLE){var t=void 0,e=void 0,r=void 0,n=void 0;r=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";var o=r.split(":"),s=o[1]/o[0];t=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/s:this.videoWidth()||300,e=void 0!==this.height_?this.height_:t*s,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),te(this.styleEl_,"\n ."+n+" {\n width: "+t+"px;\n height: "+e+"px;\n }\n\n ."+n+".vjs-fluid {\n padding-top: "+100*s+"%;\n }\n ")}else{var a="number"===typeof this.width_?this.width_:this.options_.width,l="number"===typeof this.height_?this.height_:this.options_.height,c=this.tech_&&this.tech_.el();c&&(a>=0&&(c.width=a),l>=0&&(c.height=l))}},e.prototype.loadTech_=function(t,e){var r=this;this.tech_&&this.unloadTech_();var n=ge(t),i=t.charAt(0).toLowerCase()+t.slice(1);"Html5"!==n&&this.tag&&(Tr.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1;var o="string"!==typeof this.autoplay()&&this.autoplay(),s={source:e,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,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};_r.names.forEach((function(t){var e=_r[t];s[e.getterName]=r[e.privateName]})),X(s,this.options_[n]),X(s,this.options_[i]),X(s,this.options_[t.toLowerCase()]),this.tag&&(s.tag=this.tag),e&&e.src===this.cache_.src&&this.cache_.currentTime>0&&(s.startTime=this.cache_.currentTime);var a=Tr.getTech(t);if(!a)throw new Error("No Tech named '"+n+"' exists! '"+n+"' should be registered using videojs.registerTech()'");this.tech_=new a(s),this.tech_.ready(ee(this,this.handleTechReady_),!0),Be.jsonToTextTracks(this.textTracksJson_||[],this.tech_),Ni.forEach((function(t){r.on(r.tech_,t,r["handleTech"+ge(t)+"_"])})),Object.keys(Ii).forEach((function(t){r.on(r.tech_,t,(function(e){0===r.tech_.playbackRate()&&r.tech_.seeking()?r.queuedCallbacks_.push({callback:r["handleTech"+Ii[t]+"_"].bind(r),event:e}):r["handleTech"+Ii[t]+"_"](e)}))})),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"sourceset",this.handleTechSourceset_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===n&&this.tag||lt(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},e.prototype.unloadTech_=function(){var t=this;_r.names.forEach((function(e){var r=_r[e];t[r.privateName]=t[r.getterName]()})),this.textTracksJson_=Be.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},e.prototype.tech=function(t){return void 0===t&&K.warn(s(Ri)),this.tech_},e.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},e.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},e.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused())try{delete this.tag.poster}catch(t){K("deleting tag.poster throws in some browsers",t)}},e.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay())},e.prototype.manualAutoplay_=function(t){var e=this;if(this.tech_&&"string"===typeof t){var r=function(){var t=e.muted();e.muted(!0);var r=e.play();if(r&&r.then&&r["catch"])return r["catch"]((function(r){e.muted(t)}))},n=void 0;if("any"===t?(n=this.play(),n&&n.then&&n["catch"]&&n["catch"]((function(){return r()}))):n="muted"===t?r():this.play(),n&&n.then&&n["catch"])return n.then((function(){e.trigger({type:"autoplay-success",autoplay:t})}))["catch"]((function(r){e.trigger({type:"autoplay-failure",autoplay:t})}))}},e.prototype.updateSourceCaches_=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t,r="";"string"!==typeof e&&(e=t.src,r=t.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],e&&!r&&(r=Wr(this,e)),this.cache_.source=me({},t,{src:e,type:r});for(var n=this.cache_.sources.filter((function(t){return t.src&&t.src===e})),i=[],o=this.$$("source"),s=[],a=0;a<o.length;a++){var l=ft(o[a]);i.push(l),l.src&&l.src===e&&s.push(l.src)}s.length&&!n.length?this.cache_.sources=i:n.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=e},e.prototype.handleTechSourceset_=function(t){var e=this;if(!this.changingSrc_){var r=function(t){return e.updateSourceCaches_(t)},n=this.currentSource().src,i=t.src;if(n&&!/^blob:/.test(n)&&/^blob:/.test(i)&&(!this.lastSource_||this.lastSource_.tech!==i&&this.lastSource_.player!==n)&&(r=function(){}),r(i),!t.src){var o=function t(r){if("sourceset"!==r.type){var n=e.techGet("currentSrc");e.lastSource_.tech=n,e.updateSourceCaches_(n)}e.tech_.off(["sourceset","loadstart"],t)};this.tech_.one(["sourceset","loadstart"],o)}}this.lastSource_={player:this.currentSource().src,tech:t.src},this.trigger({src:t.src,type:"sourceset"})},e.prototype.hasStarted=function(t){if(void 0===t)return this.hasStarted_;t!==this.hasStarted_&&(this.hasStarted_=t,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},e.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},e.prototype.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach((function(t){return t.callback(t.event)})),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},e.prototype.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",(function(){return t.removeClass("vjs-waiting")}))},e.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},e.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},e.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},e.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},e.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},e.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&(K.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")},e.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},e.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},e.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},e.prototype.handleTechClick_=function(t){jt(t)&&this.controls_&&(this.paused()?Re(this.play()):this.pause())},e.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},e.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},e.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},e.prototype.handleTechTouchEnd_=function(t){t.preventDefault()},e.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},e.prototype.handleStageClick_=function(){this.reportUserActivity()},e.prototype.handleTechFullscreenChange_=function(t,e){e&&this.isFullscreen(e.isFullscreen),this.trigger("fullscreenchange")},e.prototype.handleTechError_=function(){var t=this.tech_.error();this.error(t)},e.prototype.handleTechTextData_=function(){var t=null;arguments.length>1&&(t=arguments[1]),this.trigger("textdata",t)},e.prototype.getCache=function(){return this.cache_},e.prototype.techCall_=function(t,e){this.ready((function(){if(t in Or)return Ar(this.middleware_,this.tech_,t,e);if(t in Lr)return Pr(this.middleware_,this.tech_,t,e);try{this.tech_&&this.tech_[t](e)}catch(r){throw K(r),r}}),!0)},e.prototype.techGet_=function(t){if(this.tech_&&this.tech_.isReady_){if(t in Mr)return jr(this.middleware_,this.tech_,t);if(t in Lr)return Pr(this.middleware_,this.tech_,t);try{return this.tech_[t]()}catch(e){if(void 0===this.tech_[t])throw K("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e),e;if("TypeError"===e.name)throw K("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1,e;throw K(e),e}}},e.prototype.play=function(){var t=this,e=this.options_.Promise||i.Promise;return e?new e((function(e){t.play_(e)})):this.play_()},e.prototype.play_=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Re;if(this.playOnLoadstart_&&this.off("loadstart",this.playOnLoadstart_),this.isReady_){if(!this.changingSrc_&&(this.src()||this.currentSrc()))return void e(this.techGet_("play"));this.playOnLoadstart_=function(){t.playOnLoadstart_=null,e(t.play())},this.one("loadstart",this.playOnLoadstart_)}else{if(this.playWaitingForReady_)return;this.playWaitingForReady_=!0,this.ready((function(){t.playWaitingForReady_=!1,e(t.play())}))}},e.prototype.pause=function(){this.techCall_("pause")},e.prototype.paused=function(){return!1!==this.techGet_("paused")},e.prototype.played=function(){return this.techGet_("played")||ke(0,0)},e.prototype.scrubbing=function(t){if("undefined"===typeof t)return this.scrubbing_;this.scrubbing_=!!t,t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},e.prototype.currentTime=function(t){return"undefined"!==typeof t?(t<0&&(t=0),void this.techCall_("setCurrentTime",t)):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},e.prototype.duration=function(t){if(void 0===t)return void 0!==this.cache_.duration?this.cache_.duration:NaN;t=parseFloat(t),t<0&&(t=1/0),t!==this.cache_.duration&&(this.cache_.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange"))},e.prototype.remainingTime=function(){return this.duration()-this.currentTime()},e.prototype.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},e.prototype.buffered=function(){var t=this.techGet_("buffered");return t&&t.length||(t=ke(0,0)),t},e.prototype.bufferedPercent=function(){return we(this.buffered(),this.duration())},e.prototype.bufferedEnd=function(){var t=this.buffered(),e=this.duration(),r=t.end(t.length-1);return r>e&&(r=e),r},e.prototype.volume=function(t){var e=void 0;return void 0!==t?(e=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=e,this.techCall_("setVolume",e),void(e>0&&this.lastVolume_(e))):(e=parseFloat(this.techGet_("volume")),isNaN(e)?1:e)},e.prototype.muted=function(t){if(void 0===t)return this.techGet_("muted")||!1;this.techCall_("setMuted",t)},e.prototype.defaultMuted=function(t){return void 0!==t?this.techCall_("setDefaultMuted",t):this.techGet_("defaultMuted")||!1},e.prototype.lastVolume_=function(t){if(void 0===t||0===t)return this.cache_.lastVolume;this.cache_.lastVolume=t},e.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},e.prototype.isFullscreen=function(t){if(void 0===t)return!!this.isFullscreen_;this.isFullscreen_=!!t},e.prototype.requestFullscreen=function(){var t=Ee;this.isFullscreen(!0),t.requestFullscreen?(Yt(o,t.fullscreenchange,ee(this,(function e(r){this.isFullscreen(o[t.fullscreenElement]),!1===this.isFullscreen()&&zt(o,t.fullscreenchange,e),this.trigger("fullscreenchange")}))),this.el_[t.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"))},e.prototype.exitFullscreen=function(){var t=Ee;this.isFullscreen(!1),t.requestFullscreen?o[t.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange"))},e.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=o.documentElement.style.overflow,Yt(o,"keydown",ee(this,this.fullWindowOnEscKey)),o.documentElement.style.overflow="hidden",ut(o.body,"vjs-full-window"),this.trigger("enterFullWindow")},e.prototype.fullWindowOnEscKey=function(t){27===t.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},e.prototype.exitFullWindow=function(){this.isFullWindow=!1,zt(o,"keydown",this.fullWindowOnEscKey),o.documentElement.style.overflow=this.docOrigOverflow,ht(o.body,"vjs-full-window"),this.trigger("exitFullWindow")},e.prototype.canPlayType=function(t){for(var e=void 0,r=0,n=this.options_.techOrder;r<n.length;r++){var i=n[r],o=Tr.getTech(i);if(o||(o=_e.getComponent(i)),o){if(o.isSupported()&&(e=o.canPlayType(t),e))return e}else K.error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.')}return""},e.prototype.selectSource=function(t){var e=this,r=this.options_.techOrder.map((function(t){return[t,Tr.getTech(t)]})).filter((function(t){var e=t[0],r=t[1];return r?r.isSupported():(K.error('The "'+e+'" tech is undefined. Skipped browser support check for that tech.'),!1)})),n=function(t,e,r){var n=void 0;return t.some((function(t){return e.some((function(e){if(n=r(t,e),n)return!0}))})),n},i=void 0,o=function(t){return function(e,r){return t(r,e)}},s=function(t,r){var n=t[0],i=t[1];if(i.canPlaySource(r,e.options_[n.toLowerCase()]))return{source:r,tech:n}};return i=this.options_.sourceOrder?n(t,r,o(s)):n(r,t,s),i||!1},e.prototype.src=function(t){var e=this;if("undefined"===typeof t)return this.cache_.src||"";var r=Vr(t);r.length?(this.changingSrc_=!0,this.cache_.sources=r,this.updateSourceCaches_(r[0]),xr(this,r[0],(function(t,n){e.middleware_=n,e.cache_.sources=r,e.updateSourceCaches_(t);var i=e.src_(t);if(i)return r.length>1?e.src(r.slice(1)):(e.changingSrc_=!1,e.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0),void e.triggerReady());Sr(n,e.tech_)}))):this.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0)},e.prototype.src_=function(t){var e=this,r=this.selectSource([t]);return!r||(ye(r.tech,this.techName_)?(this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",t):this.techCall_("src",t.src),this.changingSrc_=!1}),!0),!1):(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),this.tech_.ready((function(){e.changingSrc_=!1})),!1))},e.prototype.load=function(){this.techCall_("load")},e.prototype.reset=function(){this.tech_&&this.tech_.clearTracks("text"),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset")},e.prototype.currentSources=function(){var t=this.currentSource(),e=[];return 0!==Object.keys(t).length&&e.push(t),this.cache_.sources||e},e.prototype.currentSource=function(){return this.cache_.source||{}},e.prototype.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},e.prototype.currentType=function(){return this.currentSource()&&this.currentSource().type||""},e.prototype.preload=function(t){return void 0!==t?(this.techCall_("setPreload",t),void(this.options_.preload=t)):this.techGet_("preload")},e.prototype.autoplay=function(t){if(void 0===t)return this.options_.autoplay||!1;var e=void 0;"string"===typeof t&&/(any|play|muted)/.test(t)?(this.options_.autoplay=t,this.manualAutoplay_(t),e=!1):this.options_.autoplay=!!t,e=e||this.options_.autoplay,this.tech_&&this.techCall_("setAutoplay",e)},e.prototype.playsinline=function(t){return void 0!==t?(this.techCall_("setPlaysinline",t),this.options_.playsinline=t,this):this.techGet_("playsinline")},e.prototype.loop=function(t){return void 0!==t?(this.techCall_("setLoop",t),void(this.options_.loop=t)):this.techGet_("loop")},e.prototype.poster=function(t){if(void 0===t)return this.poster_;t||(t=""),t!==this.poster_&&(this.poster_=t,this.techCall_("setPoster",t),this.isPosterFromTech_=!1,this.trigger("posterchange"))},e.prototype.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var t=this.tech_.poster()||"";t!==this.poster_&&(this.poster_=t,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},e.prototype.controls=function(t){if(void 0===t)return!!this.controls_;t=!!t,this.controls_!==t&&(this.controls_=t,this.usingNativeControls()&&this.techCall_("setControls",t),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_()))},e.prototype.usingNativeControls=function(t){if(void 0===t)return!!this.usingNativeControls_;t=!!t,this.usingNativeControls_!==t&&(this.usingNativeControls_=t,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},e.prototype.error=function(t){return void 0===t?this.error_||null:null===t?(this.error_=t,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close())):(this.error_=new Me(t),this.addClass("vjs-error"),K.error("(CODE:"+this.error_.code+" "+Me.errorTypes[this.error_.code]+")",this.error_.message,this.error_),void this.trigger("error"))},e.prototype.reportUserActivity=function(t){this.userActivity_=!0},e.prototype.userActive=function(t){if(void 0===t)return this.userActive_;if(t=!!t,t!==this.userActive_){if(this.userActive_=t,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(t){t.stopPropagation(),t.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},e.prototype.listenForUserActivity_=function(){var t=void 0,e=void 0,r=void 0,n=ee(this,this.reportUserActivity),i=function(t){t.screenX===e&&t.screenY===r||(e=t.screenX,r=t.screenY,n())},o=function(){n(),this.clearInterval(t),t=this.setInterval(n,250)},s=function(e){n(),this.clearInterval(t)};this.on("mousedown",o),this.on("mousemove",i),this.on("mouseup",s),this.on("keydown",n),this.on("keyup",n);var a=void 0;this.setInterval((function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(a);var t=this.options_.inactivityTimeout;t<=0||(a=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),t))}}),250)},e.prototype.playbackRate=function(t){if(void 0===t)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",t)},e.prototype.defaultPlaybackRate=function(t){return void 0!==t?this.techCall_("setDefaultPlaybackRate",t):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},e.prototype.isAudio=function(t){if(void 0===t)return!!this.isAudio_;this.isAudio_=!!t},e.prototype.addTextTrack=function(t,e,r){if(this.tech_)return this.tech_.addTextTrack(t,e,r)},e.prototype.addRemoteTextTrack=function(t,e){if(this.tech_)return this.tech_.addRemoteTextTrack(t,e)},e.prototype.removeRemoteTextTrack=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.track,r=void 0===e?arguments[0]:e;if(this.tech_)return this.tech_.removeRemoteTextTrack(r)},e.prototype.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},e.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},e.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},e.prototype.language=function(t){if(void 0===t)return this.language_;this.language_=String(t).toLowerCase()},e.prototype.languages=function(){return me(e.prototype.options_.languages,this.languages_)},e.prototype.toJSON=function(){var t=me(this.options_),e=t.tracks;t.tracks=[];for(var r=0;r<e.length;r++){var n=e[r];n=me(n),n.player=void 0,t.tracks[r]=n}return t},e.prototype.createModal=function(t,e){var r=this;e=e||{},e.content=t||"";var n=new We(this,e);return this.addChild(n),n.on("dispose",(function(){r.removeChild(n)})),n.open(),n},e.prototype.updateCurrentBreakpoint_=function(){if(this.responsive())for(var t=this.currentBreakpoint(),e=this.currentWidth(),r=0;r<Di.length;r++){var n=Di[r],i=this.breakpoints_[n];if(e<=i){if(t===n)return;t&&this.removeClass(Bi[t]),this.addClass(Bi[n]),this.breakpoint_=n;break}}},e.prototype.removeCurrentBreakpoint_=function(){var t=this.currentBreakpointClass();this.breakpoint_="",t&&this.removeClass(t)},e.prototype.breakpoints=function(t){return void 0===t||(this.breakpoint_="",this.breakpoints_=X({},Fi,t),this.updateCurrentBreakpoint_()),X(this.breakpoints_)},e.prototype.responsive=function(t){if(void 0===t)return this.responsive_;t=Boolean(t);var e=this.responsive_;return t!==e?(this.responsive_=t,t?(this.on("playerresize",this.updateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.updateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),t):void 0},e.prototype.currentBreakpoint=function(){return this.breakpoint_},e.prototype.currentBreakpointClass=function(){return Bi[this.breakpoint_]||""},e.getTagSettings=function(t){var e={sources:[],tracks:[]},r=ft(t),n=r["data-setup"];if(ct(t,"vjs-fill")&&(r.fill=!0),ct(t,"vjs-fluid")&&(r.fluid=!0),null!==n){var i=a(n||"{}"),o=i[0],s=i[1];o&&K.error(o),X(r,s)}if(X(e,r),t.hasChildNodes())for(var l=t.childNodes,c=0,u=l.length;c<u;c++){var h=l[c],p=h.nodeName.toLowerCase();"source"===p?e.sources.push(ft(h)):"track"===p&&e.tracks.push(ft(h))}return e},e.prototype.flexNotSupported_=function(){var t=o.createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},e}(_e);_r.names.forEach((function(t){var e=_r[t];Hi.prototype[e.getterName]=function(){return this.tech_?this.tech_[e.getterName]():(this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName])}})),Hi.players={};var Wi=i.navigator;Hi.prototype.options_={techOrder:Tr.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:Wi&&(Wi.languages&&Wi.languages[0]||Wi.userLanguage||Wi.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",breakpoints:{},responsive:!1},S||Hi.prototype.options_.children.push("resizeManager"),["ended","seeking","seekable","networkState","readyState"].forEach((function(t){Hi.prototype[t]=function(){return this.techGet_(t)}})),Ni.forEach((function(t){Hi.prototype["handleTech"+ge(t)+"_"]=function(){return this.trigger(t)}})),_e.registerComponent("Player",Hi);var Vi="plugin",Xi="activePlugins_",Yi={},zi=function(t){return Yi.hasOwnProperty(t)},Ui=function(t){return zi(t)?Yi[t]:void 0},$i=function(t,e){t[Xi]=t[Xi]||{},t[Xi][e]=!0},qi=function(t,e,r){var n=(r?"before":"")+"pluginsetup";t.trigger(n,e),t.trigger(n+":"+e.name,e)},Ki=function(t,e){var r=function(){qi(this,{name:t,plugin:e,instance:null},!0);var r=e.apply(this,arguments);return $i(this,t),qi(this,{name:t,plugin:e,instance:r}),r};return Object.keys(e).forEach((function(t){r[t]=e[t]})),r},Gi=function(t,e){return e.prototype.name=t,function(){qi(this,{name:t,plugin:e,instance:null},!0);for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var o=new(Function.prototype.bind.apply(e,[null].concat([this].concat(n))));return this[t]=function(){return o},qi(this,o.getEventHash()),o}},Ji=function(){function t(e){if(N(this,t),this.constructor===t)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,de(this),delete this.trigger,ve(this,this.constructor.defaultState),$i(e,this.name),this.dispose=ee(this,this.dispose),e.on("dispose",this.dispose)}return t.prototype.version=function(){return this.constructor.VERSION},t.prototype.getEventHash=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.name=this.name,t.plugin=this.constructor,t.instance=this,t},t.prototype.trigger=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ut(this.eventBusEl_,t,this.getEventHash(e))},t.prototype.handleStateChanged=function(t){},t.prototype.dispose=function(){var t=this.name,e=this.player;this.trigger("dispose"),this.off(),e.off("dispose",this.dispose),e[Xi][t]=!1,this.player=this.state=null,e[t]=Gi(t,Yi[t])},t.isBasic=function(e){var r="string"===typeof e?Ui(e):e;return"function"===typeof r&&!t.prototype.isPrototypeOf(r.prototype)},t.registerPlugin=function(e,r){if("string"!==typeof e)throw new Error('Illegal plugin name, "'+e+'", must be a string, was '+("undefined"===typeof e?"undefined":R(e))+".");if(zi(e))K.warn('A plugin named "'+e+'" already exists. You may want to avoid re-registering plugins!');else if(Hi.prototype.hasOwnProperty(e))throw new Error('Illegal plugin name, "'+e+'", cannot share a name with an existing player method!');if("function"!==typeof r)throw new Error('Illegal plugin for "'+e+'", must be a function, was '+("undefined"===typeof r?"undefined":R(r))+".");return Yi[e]=r,e!==Vi&&(t.isBasic(r)?Hi.prototype[e]=Ki(e,r):Hi.prototype[e]=Gi(e,r)),r},t.deregisterPlugin=function(t){if(t===Vi)throw new Error("Cannot de-register base plugin.");zi(t)&&(delete Yi[t],delete Hi.prototype[t])},t.getPlugins=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.keys(Yi),e=void 0;return t.forEach((function(t){var r=Ui(t);r&&(e=e||{},e[t]=r)})),e},t.getPluginVersion=function(t){var e=Ui(t);return e&&e.VERSION||""},t}();Ji.getPlugin=Ui,Ji.BASE_PLUGIN_NAME=Vi,Ji.registerPlugin(Vi,Ji),Hi.prototype.usingPlugin=function(t){return!!this[Xi]&&!0===this[Xi][t]},Hi.prototype.hasPlugin=function(t){return!!zi(t)};var Qi=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof e?"undefined":R(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.super_=e)},Zi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=function(){t.apply(this,arguments)},n={};for(var i in"object"===("undefined"===typeof e?"undefined":R(e))?(e.constructor!==Object.prototype.constructor&&(r=e.constructor),n=e):"function"===typeof e&&(r=e),Qi(r,t),n)n.hasOwnProperty(i)&&(r.prototype[i]=n[i]);return r};"undefined"===typeof HTMLVideoElement&&rt()&&(o.createElement("video"),o.createElement("audio"),o.createElement("track"),o.createElement("video-js"));var to=function(t){return 0===t.indexOf("#")?t.slice(1):t};function eo(t,e,r){var n=eo.getPlayer(t);if(n)return e&&K.warn('Player "'+t+'" is already initialised. Options will not be applied.'),r&&n.ready(r),n;var i="string"===typeof t?At("#"+to(t)):t;if(!nt(i))throw new TypeError("The element or ID supplied is not valid. (videojs)");o.body.contains(i)||K.warn("The element supplied is not included in the DOM"),e=e||{},eo.hooks("beforesetup").forEach((function(t){var r=t(i,me(e));Y(r)&&!Array.isArray(r)?e=me(e,r):K.error("please return an object in beforesetup hooks")}));var s=_e.getComponent("Player");return n=new s(i,e,r),eo.hooks("setup").forEach((function(t){return t(n)})),n}if(eo.hooks_={},eo.hooks=function(t,e){return eo.hooks_[t]=eo.hooks_[t]||[],e&&(eo.hooks_[t]=eo.hooks_[t].concat(e)),eo.hooks_[t]},eo.hook=function(t,e){eo.hooks(t,e)},eo.hookOnce=function(t,e){eo.hooks(t,[].concat(e).map((function(e){var r=function r(){return eo.removeHook(t,r),e.apply(void 0,arguments)};return r})))},eo.removeHook=function(t,e){var r=eo.hooks(t).indexOf(e);return!(r<=-1)&&(eo.hooks_[t]=eo.hooks_[t].slice(),eo.hooks_[t].splice(r,1),!0)},!0!==i.VIDEOJS_NO_DYNAMIC_STYLE&&rt()){var ro=At(".vjs-styles-defaults");if(!ro){ro=Zt("vjs-styles-defaults");var no=At("head");no&&no.insertBefore(ro,no.firstChild),te(ro,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}Qt(1,eo),eo.VERSION=u,eo.options=Hi.prototype.options_,eo.getPlayers=function(){return Hi.players},eo.getPlayer=function(t){var e=Hi.players,r=void 0;if("string"===typeof t){var n=to(t),i=e[n];if(i)return i;r=At("#"+n)}else r=t;if(nt(r)){var o=r,s=o.player,a=o.playerId;if(s||e[a])return s||e[a]}},eo.getAllPlayers=function(){return Object.keys(Hi.players).map((function(t){return Hi.players[t]})).filter(Boolean)},eo.players=Hi.players,eo.getComponent=_e.getComponent,eo.registerComponent=function(t,e){Tr.isTech(e)&&K.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),_e.registerComponent.call(_e,t,e)},eo.getTech=Tr.getTech,eo.registerTech=Tr.registerTech,eo.use=Er,!S&&Object.defineProperty?(Object.defineProperty(eo,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(eo.middleware,"TERMINATOR",{value:wr,writeable:!1,enumerable:!0})):eo.middleware={TERMINATOR:wr},eo.browser=L,eo.TOUCH_ENABLED=M,eo.extend=Zi,eo.mergeOptions=me,eo.bind=ee,eo.registerPlugin=Ji.registerPlugin,eo.deregisterPlugin=Ji.deregisterPlugin,eo.plugin=function(t,e){return K.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Ji.registerPlugin(t,e)},eo.getPlugins=Ji.getPlugins,eo.getPlugin=Ji.getPlugin,eo.getPluginVersion=Ji.getPluginVersion,eo.addLanguage=function(t,e){var r;return t=(""+t).toLowerCase(),eo.options.languages=me(eo.options.languages,(r={},r[t]=e,r)),eo.options.languages[t]},eo.log=K,eo.createLogger=G,eo.createTimeRange=eo.createTimeRanges=ke,eo.formatTime=cn,eo.setFormatTime=an,eo.resetFormatTime=ln,eo.parseUrl=rr,eo.isCrossOrigin=or,eo.EventTarget=ie,eo.on=Yt,eo.one=$t,eo.off=zt,eo.trigger=Ut,eo.xhr=l,eo.TextTrack=cr,eo.AudioTrack=ur,eo.VideoTrack=hr,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((function(t){eo[t]=function(){return K.warn("videojs."+t+"() is deprecated; use videojs.dom."+t+"() instead"),Mt[t].apply(null,arguments)}})),eo.computedStyle=J,eo.dom=Mt,eo.url=sr,t.exports=eo},"4b15":function(t,e,r){"use strict";r("3095")},"53a8":function(t,e){t.exports=n;var r=Object.prototype.hasOwnProperty;function n(){for(var t={},e=0;e<arguments.length;e++){var n=arguments[e];for(var i in n)r.call(n,i)&&(t[i]=n[i])}return t}},6444:function(t,e){var r=function(t){return t.replace(/^\s+|\s+$/g,"")},n=function(t){return"[object Array]"===Object.prototype.toString.call(t)};t.exports=function(t){if(!t)return{};for(var e={},i=r(t).split("\n"),o=0;o<i.length;o++){var s=i[o],a=s.indexOf(":"),l=r(s.slice(0,a)).toLowerCase(),c=r(s.slice(a+1));"undefined"===typeof e[l]?e[l]=c:n(e[l])?e[l].push(c):e[l]=[e[l],c]}return e}},"70d8":function(t,e,r){"use strict";r.r(e);r("7f7f");var n=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"demo-basic-card"}},[e("div",{staticClass:"vx-row"},[e("div",{staticClass:"vx-col w-full sm:w-1/2 lg:w-1/3 mb-base"},[e("vx-card",[e("div",{attrs:{slot:"no-body"},slot:"no-body"},[e("img",{staticClass:"responsive card-img-top",attrs:{src:t.card_1.img,alt:"content-img"}})]),e("h5",{staticClass:"mb-2"},[t._v(t._s(t.card_1.title))]),e("p",{staticClass:"text-grey"},[t._v(t._s(t.card_1.subtitle))]),e("p",{staticClass:"text-grey"},[t._v(t._s(t.card_1.subtitle_2))]),e("div",{staticClass:"flex justify-between flex-wrap"},[e("vs-button",{staticClass:"mt-4 mr-2 shadow-lg",attrs:{type:"gradient",color:"#7367F0","gradient-color-secondary":"#CE9FFC"}},[t._v("Download")]),e("vs-button",{staticClass:"mt-4",attrs:{type:"border",color:"#b9b9b9"}},[t._v("View All")])],1)])],1),e("div",{staticClass:"vx-col w-full sm:w-1/2 lg:w-1/3 mb-base"},[e("vx-card",[e("img",{staticClass:"responsive rounded-lg",attrs:{src:t.card_2.img,alt:"content-img"}}),e("div",{staticClass:"my-6"},[e("h5",{staticClass:"mb-2"},[t._v(t._s(t.card_2.title))]),e("p",{staticClass:"text-grey"},[t._v(t._s(t.card_2.subtitle))])]),e("vs-divider"),e("div",{staticClass:"flex justify-between flex-wrap"},[e("span",[e("p",{staticClass:"text-xl"},[t._v(t._s(t.card_2.footer_text_left_value))]),e("p",{staticClass:"text-grey"},[t._v(t._s(t.card_2.footer_text_left_label))])]),e("span",[e("p",{staticClass:"text-xl"},[t._v(t._s(t.card_2.footer_text_right_value))]),e("p",{staticClass:"text-grey"},[t._v(t._s(t.card_2.footer_text_right_label))])])])],1)],1),e("div",{staticClass:"vx-col w-full sm:w-1/2 lg:w-1/3 mb-base"},[e("vx-card",[e("img",{staticClass:"responsive rounded-lg",attrs:{src:t.card_3.img,alt:"content-img"}}),e("div",{staticClass:"my-6"},[e("h5",{staticClass:"mb-2"},[t._v(t._s(t.card_3.title))])]),e("div",{staticClass:"mb-4"},[e("div",{staticClass:"flex justify-between"},[e("small",{staticClass:"font-semibold"},[t._v(t._s(t.card_3.current_progress))]),e("small",{staticClass:"text-grey"},[t._v(t._s(t.card_3.progress_goal))])]),e("vs-progress",{staticClass:"block mt-1 shadow-md",attrs:{percent:t.card_3.progress_done_per}})],1),e("div",{staticClass:"flex justify-between flex-wrap"},[e("vs-button",{staticClass:"mt-4 mr-2 shadow-lg",attrs:{type:"gradient",color:"#7367F0","gradient-color-secondary":"#CE9FFC"}},[t._v(t._s(t.card_3.btn_left_text))]),e("vs-button",{staticClass:"mt-4",attrs:{type:"border",color:"#b9b9b9"}},[t._v(t._s(t.card_3.btn_right_text))])],1)])],1),e("div",{staticClass:"vx-col w-full sm:w-1/2 lg:w-1/3 mb-base"},[e("vx-card",{staticClass:"p-2"},[e("vs-avatar",{staticClass:"mx-auto mb-6 block",attrs:{size:"80px",src:t.card_4.userImg}}),e("div",{staticClass:"text-center"},[e("h4",[t._v(t._s(t.card_4.name))]),e("p",{staticClass:"text-grey"},[t._v(t._s(t.card_4.profession))])]),e("div",{staticClass:"flex justify-between flex-wrap"},[e("vs-button",{staticClass:"mt-4 mr-2 shadow-lg",attrs:{type:"gradient",color:"#7367F0","gradient-color-secondary":"#CE9FFC"}},[t._v(t._s(t.card_4.btn_1_text))]),e("vs-button",{staticClass:"mt-4",attrs:{type:"border",color:"#b9b9b9"}},[t._v(t._s(t.card_4.btn_2_text))])],1),e("template",{slot:"footer"},[e("vs-divider"),e("div",{staticClass:"flex justify-between"},[e("span",{staticClass:"flex items-center"},[e("feather-icon",{attrs:{icon:t.card_4.footer_text_1_icon,svgClasses:"h-5 w-5 text-warning stroke-current"}}),e("span",{staticClass:"ml-2"},[t._v(t._s(t.card_4.footer_text_1))])],1),e("span",{staticClass:"flex items-center"},[e("feather-icon",{attrs:{icon:t.card_4.footer_text_2_icon,svgClasses:"h-5 w-5 text-primary stroke-current"}}),e("span",{staticClass:"ml-2"},[t._v(t._s(t.card_4.footer_text_2))])],1)])],1)],2)],1),e("div",{staticClass:"vx-col w-full lg:w-1/3 sm:w-1/2 mb-base"},[e("vx-card",{staticClass:"p-2"},[e("div",{staticClass:"text-center"},[e("h4",[t._v(t._s(t.card_5.name))]),e("p",{staticClass:"text-grey"},[t._v(t._s(t.card_5.profession))])]),e("vs-avatar",{staticClass:"mx-auto my-6 block",attrs:{size:"80px",src:t.card_5.userImg}}),e("div",{staticClass:"flex justify-between text-center"},[e("span",[e("p",{staticClass:"text-xl font-semibold"},[t._v(t._s(t.card_5.user_meta_1_title))]),e("small",{staticClass:"text-grey"},[t._v(t._s(t.card_5.user_meta_1_label))])]),e("span",[e("p",{staticClass:"text-xl font-semibold"},[t._v(t._s(t.card_5.user_meta_2_title))]),e("small",{staticClass:"text-grey"},[t._v(t._s(t.card_5.user_meta_2_label))])]),e("span",[e("p",{staticClass:"text-xl font-semibold"},[t._v(t._s(t.card_5.user_meta_3_title))]),e("small",{staticClass:"text-grey"},[t._v(t._s(t.card_5.user_meta_3_label))])])]),e("vs-button",{staticClass:"w-full mt-6",attrs:{type:"gradient",color:"#7367F0","gradient-color-secondary":"#CE9FFC"}},[t._v(t._s(t.card_5.btn_text))])],1)],1),e("div",{staticClass:"vx-col w-full lg:w-1/3 sm:w-1/2 mb-base"},[e("vx-card",{staticClass:"p-2"},[e("vs-avatar",{staticClass:"mx-auto mb-6 block",attrs:{size:"80px",src:t.card_6.userImg}}),e("div",{staticClass:"text-center"},[e("h4",[t._v(t._s(t.card_6.name))]),e("p",{staticClass:"text-grey"},[t._v(t._s(t.card_6.profession))])]),e("div",{staticClass:"mb-4 mt-base"},[e("div",{staticClass:"flex justify-between"},[e("small",{staticClass:"font-semibold"},[t._v(t._s(t.card_6.current_progress))]),e("small",{staticClass:"text-grey"},[t._v(t._s(t.card_6.progress_goal))])]),e("vs-progress",{staticClass:"block mt-1 shadow-md",attrs:{percent:t.card_6.progress_done_per}})],1),e("div",{staticClass:"flex justify-between flex-wrap"},[e("vs-button",{staticClass:"mt-4 mr-2 shadow-lg",attrs:{type:"gradient",color:"#7367F0","gradient-color-secondary":"#CE9FFC"}},[t._v(t._s(t.card_6.btn_left_text))]),e("vs-button",{staticClass:"mt-4",attrs:{type:"border",color:"#b9b9b9"}},[t._v(t._s(t.card_6.btn_right_text))])],1)],1)],1),e("div",{staticClass:"vx-col w-full lg:w-1/3 sm:w-1/2 mb-base"},[e("vx-card",{staticClass:"overlay-card overflow-hidden"},[e("template",{slot:"no-body"},[e("img",{staticClass:"responsive",attrs:{src:t.card_7.overlay_img,alt:"user-profile-cover"}}),e("div",{staticClass:"card-overlay text-white flex flex-col justify-between"},[e("h4",{staticClass:"text-white mb-4"},[t._v(t._s(t.card_7.title))]),e("p",[t._v(t._s(t.card_7.text))])])])],2)],1),e("div",{staticClass:"vx-col w-full lg:w-1/3 sm:w-1/2 mb-base"},[e("vx-card",{staticClass:"overlay-card overflow-hidden"},[e("template",{slot:"no-body"},[e("img",{staticClass:"responsive blur-1",attrs:{src:t.card_8.overlay_img,alt:"user-profile-cover"}}),e("div",{staticClass:"card-overlay text-white"},[e("div",{staticClass:"flex flex-col justify-between h-full"},[e("div",{staticClass:"text-center mt-8 w-full"},[e("h3",{staticClass:"text-white mb-2 tracking-wide"},[t._v(t._s(t.card_8.weather))]),e("p",{staticClass:"mb-6"},[t._v(t._s(t.card_8.place_name))]),e("div",{staticClass:"flex justify-around"},[e("feather-icon",{attrs:{icon:t.card_8.weather_icon,svgClasses:"w-24 h-24 text-white"}}),e("h2",{staticClass:"text-white text-big"},[t._v(t._s(t.card_8.temperature)+" "),e("sup",{staticClass:"text-2xl"},[t._v("o")])])],1)]),e("div",{staticClass:"text-center w-full"},t._l(t.card_8.meta,(function(r){return e("div",{key:r.label,staticClass:"flex justify-between px-8 mb-8 text-xl"},[e("span",[t._v(t._s(r.label))]),e("span",[t._v(t._s(r.value))])])})),0)])])])],2)],1),e("div",{staticClass:"vx-col w-full lg:w-1/3 sm:w-1/2 mb-base"},[e("vx-card",{staticClass:"overflow-hidden",attrs:{title:"Chat"}},[e("template",{slot:"no-body"},[e("div",{staticClass:"chat-card-log"},[e(t.scrollbarTag,{key:t.$vs.rtl,ref:"chatLogPS",tag:"component",staticClass:"scroll-area pt-6 px-6",attrs:{settings:t.settings}},[e("ul",{ref:"chatLog"},t._l(t.chatLog,(function(r,n){return e("li",{key:n,staticClass:"flex items-start",class:{"flex-row-reverse":r.isSent,"mt-4":n}},[e("vs-avatar",{staticClass:"m-0 flex-shrink-0",class:r.isSent?"ml-3":"mr-3",attrs:{size:"40px",src:r.senderImg}}),e("div",{staticClass:"msg relative bg-white shadow-md py-3 px-4 mb-2 rounded-lg max-w-md",class:{"chat-sent-msg bg-primary-gradient text-white":r.isSent,"border border-solid d-theme-border-grey-light":!r.isSent}},[e("span",[t._v(t._s(r.msg))])])],1)})),0)])],1),e("div",{staticClass:"flex bg-white p-6 chat-input-container"},[e("vs-input",{staticClass:"mr-3 w-full",attrs:{placeholder:"Type Your Message"},on:{keyup:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.chatMsgInput=""}},model:{value:t.chatMsgInput,callback:function(e){t.chatMsgInput=e},expression:"chatMsgInput"}}),e("vs-button",{attrs:{"icon-pack":"feather",icon:"icon-send"},on:{click:function(e){t.chatMsgInput=""}}})],1)])],2)],1),e("div",{staticClass:"vx-col w-full lg:w-1/3 sm:w-1/2 mb-base"},[t.card_9.title?e("vx-card",{attrs:{title:t.card_9.title,subtitle:t.card_9.subtitle}},[e("template",{slot:"actions"},[e("feather-icon",{attrs:{icon:"MoreVerticalIcon",svgClasses:"w-6 h-6 text-grey"}})],1),e("img",{staticClass:"responsive rounded-lg",attrs:{src:t.card_9.img,alt:"content-img"}}),e("div",{staticClass:"flex mt-6 flex-wrap"},[e("span",{staticClass:"flex mr-6"},[e("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:"ThumbsUpIcon",svgClasses:"text-success stroke-current h-6 w-6"}}),e("span",{staticClass:"ml-2"},[t._v(t._s(t.card_9.meta.likes))])],1),e("span",{staticClass:"flex mr-6"},[e("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:"MessageSquareIcon",svgClasses:"text-primary stroke-current h-6 w-6"}}),e("span",{staticClass:"ml-2"},[t._v(t._s(t.card_9.meta.comments))])],1),e("span",{staticClass:"flex mr-6"},[e("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:"ThumbsDownIcon",svgClasses:"text-danger stroke-current h-6 w-6"}}),e("span",{staticClass:"ml-2"},[t._v(t._s(t.card_9.meta.dislikes))])],1)])],2):t._e()],1),e("div",{staticClass:"vx-col w-full lg:w-2/3 mb-base"},[e("vx-card",{staticClass:"overflow-hidden"},[e("template",{slot:"no-body"},[e("video-player",{ref:"player",staticClass:"media-video-player card-video",attrs:{options:t.playerOptions}})],1)],2)],1),e("div",{staticClass:"vx-col w-full sm:w-1/2 md:w-1/2 mb-base"},[e("vx-card",{attrs:{title:"Activity Timeline"}},[e("vx-timeline",{attrs:{data:t.timelineData}})],1)],1),e("div",{staticClass:"vx-col w-full sm:w-1/2 md:w-1/2 mb-base"},[e("vx-card",{attrs:{title:"Contact Form"}},[e("vs-input",{staticClass:"w-full mb-4",attrs:{placeholder:"Name"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),e("vs-input",{staticClass:"w-full mb-4",attrs:{placeholder:"Email",type:"email"},model:{value:t.email,callback:function(e){t.email=e},expression:"email"}}),e("vs-textarea",{attrs:{label:"Message"},model:{value:t.msg,callback:function(e){t.msg=e},expression:"msg"}}),e("vs-button",{staticClass:"mr-4",on:{click:function(e){t.name=t.email=t.msg=""}}},[t._v("Submit")]),e("vs-button",{staticClass:"mt-3",attrs:{type:"border",color:"warning"},on:{click:function(e){t.name=t.email=t.msg=""}}},[t._v("Cancel")])],1)],1)]),e("div",{staticClass:"vx-row match-height"},[e("div",{staticClass:"vx-col w-full md:w-1/2 mb-base"},[e("vx-card",[e("vs-tabs",[e("vs-tab",{attrs:{"vs-label":"HTML"}},[e("div",{staticClass:"mt-3"},[e("p",[t._v("Lollipop chocolate cake muffin pudding biscuit cheesecake. Pudding biscuit caramels jelly beans caramels. Pie macaroon wafer danish sweet caramels. Icing jelly-o cotton candy sweet roll brownie marshmallow marzipan icing. Candy canes apple pie icing. Tart macaroon pastry caramels chocolate bar. Gummies cupcake sesame snaps chocolate cookie sugar plum bear claw. Cheesecake chocolate cake dessert bear claw candy tiramisu soufflé.")])])]),e("vs-tab",{attrs:{"vs-label":"JS"}},[e("div",{staticClass:"mt-3"},[e("p",[t._v("Wafer sesame snaps toffee brownie liquorice danish icing fruitcake croissant. Gingerbread chocolate cake danish pie gingerbread. Muffin donut fruitcake powder jelly lemon drops cheesecake. Croissant oat cake carrot cake tiramisu halvah. Cupcake cupcake wafer muffin topping danish cheesecake croissant. Liquorice donut liquorice lollipop sesame snaps lollipop ice cream macaroon danish. Cupcake chocolate cake chupa chups gummi bears macaroon.")])])]),e("vs-tab",{attrs:{"vs-label":"OUTPUT"}},[e("div",{staticClass:"mt-3"},[e("p",[t._v("Cookie cheesecake fruitcake sweet roll gummi bears marzipan marshmallow marshmallow. Cheesecake muffin jujubes chocolate cake carrot cake jujubes croissant. Cake toffee carrot cake topping oat cake lemon drops toffee toffee marzipan. Gingerbread toffee marshmallow marshmallow caramels brownie donut cake. Cheesecake candy topping tart cotton candy chocolate bar jujubes powder chupa chups. Cupcake candy soufflé jelly beans. Icing lollipop tiramisu oat cake dessert.")])])])],1)],1)],1),e("div",{staticClass:"vx-col w-full md:w-1/2 mb-base"},[e("vx-card",[e("template",{slot:"no-body"},[e("vs-tabs",{attrs:{"vs-position":"left","vs-alignment":"fixed"}},[e("vs-tab",{attrs:{"vs-label":"Features"}},[e("div",{staticClass:"mt-1 pl-2"},[e("p",[t._v("Powder halvah dragée. Powder cupcake bear claw cookie sugar plum. Danish sesame snaps sugar plum brownie. Carrot cake fruitcake chocolate cake jelly beans toffee. Icing chocolate brownie. Biscuit candy canes jelly-o bonbon wafer jujubes. Chocolate cake sweet roll jelly-o chocolate bar. Liquorice tootsie roll ice cream sweet. Candy pie donut caramels bonbon macaroon dragée chupa chups gingerbread. Dragée fruitcake jujubes. Brownie caramels muffin caramels jelly apple pie.")])])]),e("vs-tab",{attrs:{"vs-label":"Products"}},[e("div",{staticClass:"mt-1 pl-2"},[e("p",[t._v("Cotton candy dessert dragée bonbon jelly beans icing sweet roll. Sesame snaps cake dessert chupa chups sweet powder biscuit. Jelly beans caramels croissant cheesecake. Liquorice chocolate cake macaroon cake. Fruitcake croissant carrot cake cookie halvah sesame snaps toffee. Cake tootsie roll cake jelly beans croissant sugar plum jujubes. Bear claw sesame snaps lollipop. Pudding biscuit donut sweet roll pie apple pie wafer jelly beans brownie. Lemon drops ice cream candy canes soufflé muffin.")])])]),e("vs-tab",{attrs:{"vs-label":"Updates"}},[e("div",{staticClass:"mt-1 pl-2"},[e("p",[t._v("Bear claw sesame snaps lollipop. Pudding biscuit donut sweet roll pie apple pie wafer jelly beans brownie. Lemon drops ice cream candy canes soufflé muffin. Caramels cookie macaroon sweet roll muffin liquorice brownie pie. Cupcake tootsie roll cupcake candy brownie icing bear claw jujubes cupcake. Marzipan pastry sesame snaps cotton candy chocolate cake tiramisu. Wafer apple pie cotton candy cotton candy icing.")])])]),e("vs-tab",{attrs:{"vs-label":"Links"}},[e("div",{staticClass:"mt-1 pl-2"},[e("p",[t._v("Gingerbread dessert apple pie. Bear claw cake ice cream cookie. Toffee jujubes jelly beans cookie muffin. Wafer sugar plum bonbon sweet roll chocolate cake pie tootsie roll jelly chocolate. Apple pie oat cake chocolate cake toffee lollipop sesame snaps chocolate bar. Chocolate liquorice pudding fruitcake toffee topping liquorice. Wafer topping cotton candy dessert carrot cake cotton candy. Pudding chocolate cake dragée cupcake. Pastry marzipan donut. Ice cream chocolate tart chupa chups liquorice marshmallow sweet roll jelly soufflé.")])])])],1)],1)],2)],1),e("div",{staticClass:"vx-col w-full md:w-1/2"},[e("vx-card",[e("vs-tabs",{attrs:{"vs-alignment":"fixed",alignment:"fixed"}},[e("vs-tab",{attrs:{"vs-label":"Profile","vs-icon":"account_circle"}},[e("div",{staticClass:"mt-3"},[e("p",[t._v("Liquorice croissant chocolate chocolate cake. Bonbon dessert carrot cake fruitcake pudding sugar plum sweet gummies bear claw. Gummies marshmallow chocolate cake. Jelly icing cake carrot cake. Gummies marshmallow chocolate carrot cake lemon drops. Soufflé gingerbread cupcake chupa chups dragée halvah toffee liquorice. Jelly-o pie ice cream ice cream pudding sweet. ")])])]),e("vs-tab",{attrs:{"vs-label":"Messages","vs-icon":"message"}},[e("div",{staticClass:"mt-3"},[e("p",[t._v("Jelly-o soufflé danish jelly-o jujubes oat cake caramels chocolate. Danish jelly chocolate bar jelly jujubes gummies halvah. Candy jujubes jujubes cheesecake bear claw sesame snaps cheesecake gingerbread. Toffee bonbon candy canes macaroon candy lollipop dragée. Brownie lemon drops chocolate cake pastry jelly biscuit.")])])])],1)],1)],1),e("div",{staticClass:"vx-col w-full md:w-1/2 md:mt-0 mt-base"},[e("vx-card",[e("template",{slot:"no-body"},[e("vs-tabs",{attrs:{"vs-position":"left",alignment:"fixed"}},[e("vs-tab",{attrs:{"vs-label":"Features","vs-icon":"extension"}},[e("div",{staticClass:"mt-1 pl-2"},[e("p",[t._v("Chocolate cake brownie candy canes marzipan. Chocolate cake powder jujubes bonbon tart cake bonbon sweet roll. Carrot cake sweet dragée ice cream pie candy canes sesame snaps tart halvah. Lemon drops pastry tart candy. Caramels jelly beans dessert dessert cupcake lollipop cake cotton candy. Pudding chupa chups ice cream tiramisu liquorice. Lollipop jelly pie tiramisu pudding marshmallow.")])])]),e("vs-tab",{attrs:{"vs-label":"Products","vs-icon":"store"}},[e("div",{staticClass:"mt-1 pl-2"},[e("p",[t._v("Bear claw liquorice candy liquorice chocolate cake wafer. Gummi bears muffin cake icing pastry marshmallow lemon drops sweet chocolate. Marzipan apple pie jelly beans marshmallow jelly-o. Brownie danish bear claw. Dragée oat cake marzipan fruitcake caramels croissant tootsie roll cupcake sesame snaps. Cheesecake jujubes gingerbread apple pie bonbon caramels chocolate bar.")])])]),e("vs-tab",{attrs:{"vs-label":"Updates","vs-icon":"get_app"}},[e("div",{staticClass:"mt-1 pl-2"},[e("p",[t._v("Cheesecake pie lollipop dragée candy icing jujubes fruitcake. Apple pie caramels apple pie gingerbread danish candy canes brownie liquorice topping. Icing dragée donut jelly caramels cake. Toffee gummi bears ice cream apple pie. Jujubes candy marzipan lollipop tiramisu biscuit apple pie liquorice. Lemon drops icing gummies cake marshmallow. ")])])]),e("vs-tab",{attrs:{"vs-label":"Links","vs-icon":"link"}},[e("div",{staticClass:"mt-1 pl-2"},[e("p",[t._v("Brownie marshmallow halvah wafer tart jelly. Chocolate cake apple pie halvah brownie pastry icing pudding marshmallow. Jelly beans candy canes sesame snaps chocolate cake sesame snaps chocolate cake candy tiramisu. Caramels sesame snaps candy canes cheesecake. Chocolate bar pie pastry liquorice tart. Cupcake biscuit cupcake halvah tiramisu muffin.")])])])],1)],1)],2)],1)])])},i=[],o=r("9d63"),s=r.n(o),a=r("d6d3"),l=function(){var t=this,e=t._self._c;return e("ul",{staticClass:"vx-timeline"},t._l(t.data,(function(r){return e("li",{key:r.title},[e("div",{staticClass:"timeline-icon",class:"bg-".concat(r.color)},[e("feather-icon",{attrs:{icon:r.icon,svgClasses:"text-white stroke-current w-5 h-5"}})],1),e("div",{staticClass:"timeline-info"},[e("p",{staticClass:"font-semibold"},[t._v(t._s(r.title))]),e("span",{staticClass:"activity-desc"},[t._v(t._s(r.desc))])]),e("small",{staticClass:"text-grey activity-e-time"},[t._v(t._s(r.time))])])})),0)},c=[],u={name:"vx-timeline",props:{data:{type:Array,required:!0}}},h=u,p=(r("f81d"),r("2877")),d=Object(p["a"])(h,l,c,!1,null,null,null),f=d.exports,v=(r("fda2"),{components:{VuePerfectScrollbar:s.a,videoPlayer:a["videoPlayer"],VxTimeline:f},data:function(){return{card_1:{},card_2:{},card_3:{},card_4:{},card_5:{},card_6:{},card_7:{},card_8:{},chatLog:[],chatMsgInput:"",card_9:{},timelineData:[{color:"primary",icon:"PlusIcon",title:"New Task Added",desc:"Bonbon macaroon jelly beans gummi bears jelly lollipop apple",time:"25 Days Ago"},{color:"warning",icon:"AlertCircleIcon",title:"Task Update Found",desc:"Cupcake gummi bears soufflé caramels candy",time:"15 Days Ago"},{color:"success",icon:"CheckIcon",title:"Task Finished",desc:"Candy ice cream cake. Halvah gummi bears",time:"20 mins ago"}],name:"",email:"",msg:"",playerOptions:{},settings:{maxScrollbarLength:60,wheelSpeed:.6}}},computed:{scrollbarTag:function(){return this.$store.getters.scrollbarTag}},mounted:function(){var t=this.$refs.chatLogPS.$el||this.$refs.chatLogPS;t.scrollTop=this.$refs.chatLog.scrollHeight},created:function(){var t=this;this.$http.get("/api/users/pixinvent/product/1").then((function(e){t.card_1=e.data})).catch((function(t){console.log(t)})),this.$http.get("/api/users/pixinvent/product/sales/1").then((function(e){t.card_2=e.data})).catch((function(t){console.log(t)})),this.$http.get("/api/users/pixinvent/product/goals/1").then((function(e){t.card_3=e.data})).catch((function(t){console.log(t)})),this.$http.get("/api/users/89").then((function(e){t.card_4=e.data})).catch((function(t){console.log(t)})),this.$http.get("/api/users/58").then((function(e){t.card_5=e.data})).catch((function(t){console.log(t)})),this.$http.get("/api/users/16").then((function(e){t.card_6=e.data})).catch((function(t){console.log(t)})),this.$http.get("/api/place/18").then((function(e){t.card_7=e.data})).catch((function(t){console.log(t)})),this.$http.get("/api/place/76/weather").then((function(e){t.card_8=e.data})).catch((function(t){console.log(t)})),this.$http.get("/api/chat/demo-1/log").then((function(e){t.chatLog=e.data})).catch((function(t){console.log(t)})),this.$http.get("/api/item/12/review").then((function(e){t.card_9=e.data})).catch((function(t){console.log(t)})),this.$http.get("/api/card/card-basic/player-option").then((function(e){t.playerOptions=e.data})).catch((function(t){console.log(t)}))}}),g=v,y=(r("4b15"),Object(p["a"])(g,n,i,!1,null,null,null));e["default"]=y.exports},8362:function(t,e){t.exports=n;var r=Object.prototype.toString;function n(t){if(!t)return!1;var e=r.call(t);return"[object Function]"===e||"function"===typeof t&&"[object RegExp]"!==e||"undefined"!==typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)}},"8c10":function(t,e){function r(t,e){var r,n=null;try{r=JSON.parse(t,e)}catch(i){n=i}return[n,r]}t.exports=r},"9d63":function(t,e){t.exports=function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=2)}([function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var r=this[e];r[2]?t.push("@media "+r[2]+"{"+r[1]+"}"):t.push(r[1])}return t.join("")},t.i=function(e,r){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(n[o]=!0)}for(i=0;i<e.length;i++){var s=e[i];"number"==typeof s[0]&&n[s[0]]||(r&&!s[2]?s[2]=r:r&&(s[2]="("+s[2]+") and ("+r+")"),t.push(s))}},t}},function(t,e,r){r(10);var n=r(7)(r(3),r(8),null,null);t.exports=n.exports},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r.n(n);e.default=i.a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(6);e.default={name:"vue-perfect-scrollbar",props:{settings:{default:void 0},tagname:{type:String,default:"section"}},data:function(){return{ps:null}},methods:{update:function(){this.ps&&this.ps.update()},__init:function(){this.ps||(this.ps=new n.a(this.$el,this.settings))},__uninit:function(){this.ps&&(this.ps.destroy(),this.ps=null)}},watch:{$route:function(){this.update()}},mounted:function(){this.$isServer||this.__init()},updated:function(){this.$nextTick(this.update)},activated:function(){this.__init()},deactivated:function(){this.__uninit()},beforeDestroy:function(){this.__uninit()}}},function(t,e,r){e=t.exports=r(0)(),e.push([t.i,".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{height:15px;bottom:0}.ps__rail-x,.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;position:absolute}.ps__rail-y{width:15px;right:0}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px}.ps__thumb-x,.ps__thumb-y{background-color:#aaa;border-radius:6px;position:absolute}.ps__thumb-y{transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.ps{overflow:auto!important}}",""])},function(t,e,r){e=t.exports=r(0)(),e.i(r(4),""),e.push([t.i,".ps-container{position:relative}",""])},function(t,e,r){"use strict"; /*! * perfect-scrollbar v1.4.0 * (c) 2018 Hyunje Jun * @license MIT */function n(t){return getComputedStyle(t)}function i(t,e){for(var r in e){var n=e[r];"number"==typeof n&&(n+="px"),t.style[r]=n}return t}function o(t){var e=document.createElement("div");return e.className=t,e}function s(t,e){if(!b)throw new Error("No element matching method supported");return b.call(t,e)}function a(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function l(t,e){return Array.prototype.filter.call(t.children,(function(t){return s(t,e)}))}function c(t,e){var r=t.element.classList,n=T.state.scrolling(e);r.contains(n)?clearTimeout(C[e]):r.add(n)}function u(t,e){C[e]=setTimeout((function(){return t.isAlive&&t.element.classList.remove(T.state.scrolling(e))}),t.settings.scrollingThreshold)}function h(t,e){c(t,e),u(t,e)}function p(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function d(t,e,r,n,i){var o=r[0],s=r[1],a=r[2],l=r[3],c=r[4],u=r[5];void 0===n&&(n=!0),void 0===i&&(i=!1);var d=t.element;t.reach[l]=null,d[a]<1&&(t.reach[l]="start"),d[a]>t[o]-t[s]-1&&(t.reach[l]="end"),e&&(d.dispatchEvent(p("ps-scroll-"+l)),e<0?d.dispatchEvent(p("ps-scroll-"+c)):e>0&&d.dispatchEvent(p("ps-scroll-"+u)),n&&h(t,l)),t.reach[l]&&(e||i)&&d.dispatchEvent(p("ps-"+l+"-reach-"+t.reach[l]))}function f(t){return parseInt(t,10)||0}function v(t){return s(t,"input,[contenteditable]")||s(t,"select,[contenteditable]")||s(t,"textarea,[contenteditable]")||s(t,"button,[contenteditable]")}function g(t){var e=n(t);return f(e.width)+f(e.paddingLeft)+f(e.paddingRight)+f(e.borderLeftWidth)+f(e.borderRightWidth)}function y(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function m(t,e){var r={width:e.railXWidth},n=Math.floor(t.scrollTop);e.isRtl?r.left=e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:r.left=t.scrollLeft,e.isScrollbarXUsingBottom?r.bottom=e.scrollbarXBottom-n:r.top=e.scrollbarXTop+n,i(e.scrollbarXRail,r);var o={top:n,height:e.railYHeight};e.isScrollbarYUsingRight?e.isRtl?o.right=e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth:o.right=e.scrollbarYRight-t.scrollLeft:e.isRtl?o.left=e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:o.left=e.scrollbarYLeft+t.scrollLeft,i(e.scrollbarYRail,o),i(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),i(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}function _(t,e){function r(e){v[p]=g+m*(e[s]-y),c(t,d),j(t),e.stopPropagation(),e.preventDefault()}function n(){u(t,d),t[f].classList.remove(T.state.clicking),t.event.unbind(t.ownerDocument,"mousemove",r)}var i=e[0],o=e[1],s=e[2],a=e[3],l=e[4],h=e[5],p=e[6],d=e[7],f=e[8],v=t.element,g=null,y=null,m=null;t.event.bind(t[l],"mousedown",(function(e){g=v[p],y=e[s],m=(t[o]-t[i])/(t[a]-t[h]),t.event.bind(t.ownerDocument,"mousemove",r),t.event.once(t.ownerDocument,"mouseup",n),t[f].classList.add(T.state.clicking),e.stopPropagation(),e.preventDefault()}))}var b="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector),T={main:"ps",element:{thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}}},C={x:null,y:null},k=function(t){this.element=t,this.handlers={}},w={isEmpty:{configurable:!0}};k.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},k.prototype.unbind=function(t,e){var r=this;this.handlers[t]=this.handlers[t].filter((function(n){return!(!e||n===e)||(r.element.removeEventListener(t,n,!1),!1)}))},k.prototype.unbindAll=function(){var t=this;for(var e in t.handlers)t.unbind(e)},w.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every((function(e){return 0===t.handlers[e].length}))},Object.defineProperties(k.prototype,w);var E=function(){this.eventElements=[]};E.prototype.eventElement=function(t){var e=this.eventElements.filter((function(e){return e.element===t}))[0];return e||(e=new k(t),this.eventElements.push(e)),e},E.prototype.bind=function(t,e,r){this.eventElement(t).bind(e,r)},E.prototype.unbind=function(t,e,r){var n=this.eventElement(t);n.unbind(e,r),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)},E.prototype.unbindAll=function(){this.eventElements.forEach((function(t){return t.unbindAll()})),this.eventElements=[]},E.prototype.once=function(t,e,r){var n=this.eventElement(t),i=function(t){n.unbind(e,i),r(t)};n.bind(e,i)};var x=function(t,e,r,n,i){var o;if(void 0===n&&(n=!0),void 0===i&&(i=!1),"top"===e)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}d(t,r,o,n,i)},S={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)},j=function(t){var e=t.element,r=Math.floor(e.scrollTop);t.containerWidth=e.clientWidth,t.containerHeight=e.clientHeight,t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(l(e,T.element.rail("x")).forEach((function(t){return a(t)})),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(l(e,T.element.rail("y")).forEach((function(t){return a(t)})),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=y(t,f(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=f((t.negativeScrollAdjustment+e.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=y(t,f(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=f(r*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),m(e,t),t.scrollbarXActive?e.classList.add(T.state.active("x")):(e.classList.remove(T.state.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=0),t.scrollbarYActive?e.classList.add(T.state.active("y")):(e.classList.remove(T.state.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)},A=function(t){t.event.bind(t.scrollbarY,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarYRail,"mousedown",(function(e){var r=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top,n=r>t.scrollbarYTop?1:-1;t.element.scrollTop+=n*t.containerHeight,j(t),e.stopPropagation()})),t.event.bind(t.scrollbarX,"mousedown",(function(t){return t.stopPropagation()})),t.event.bind(t.scrollbarXRail,"mousedown",(function(e){var r=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left,n=r>t.scrollbarXLeft?1:-1;t.element.scrollLeft+=n*t.containerWidth,j(t),e.stopPropagation()}))},P=function(t){_(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),_(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},M=function(t){function e(e,n){var i=Math.floor(r.scrollTop);if(0===e){if(!t.scrollbarYActive)return!1;if(0===i&&n>0||i>=t.contentHeight-t.containerHeight&&n<0)return!t.settings.wheelPropagation}var o=r.scrollLeft;if(0===n){if(!t.scrollbarXActive)return!1;if(0===o&&e<0||o>=t.contentWidth-t.containerWidth&&e>0)return!t.settings.wheelPropagation}return!0}var r=t.element,n=function(){return s(r,":hover")},i=function(){return s(t.scrollbarX,":focus")||s(t.scrollbarY,":focus")};t.event.bind(t.ownerDocument,"keydown",(function(o){if(!(o.isDefaultPrevented&&o.isDefaultPrevented()||o.defaultPrevented)&&(n()||i())){var s=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(s){if("IFRAME"===s.tagName)s=s.contentDocument.activeElement;else for(;s.shadowRoot;)s=s.shadowRoot.activeElement;if(v(s))return}var a=0,l=0;switch(o.which){case 37:a=o.metaKey?-t.contentWidth:o.altKey?-t.containerWidth:-30;break;case 38:l=o.metaKey?t.contentHeight:o.altKey?t.containerHeight:30;break;case 39:a=o.metaKey?t.contentWidth:o.altKey?t.containerWidth:30;break;case 40:l=o.metaKey?-t.contentHeight:o.altKey?-t.containerHeight:-30;break;case 32:l=o.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:l=t.containerHeight;break;case 34:l=-t.containerHeight;break;case 36:l=t.contentHeight;break;case 35:l=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==a||t.settings.suppressScrollY&&0!==l||(r.scrollTop-=l,r.scrollLeft+=a,j(t),e(a,l)&&o.preventDefault())}}))},O=function(t){function e(e,r){var n=Math.floor(s.scrollTop),i=0===s.scrollTop,o=n+s.offsetHeight===s.scrollHeight,a=0===s.scrollLeft,l=s.scrollLeft+s.offsetWidth===s.scrollWidth;return!(Math.abs(r)>Math.abs(e)?i||o:a||l)||!t.settings.wheelPropagation}function r(t){var e=t.deltaX,r=-1*t.deltaY;return void 0!==e&&void 0!==r||(e=-1*t.wheelDeltaX/6,r=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,r*=10),e!==e&&r!==r&&(e=0,r=t.wheelDelta),t.shiftKey?[-r,-e]:[e,r]}function i(t,e,r){if(!S.isWebKit&&s.querySelector("select:focus"))return!0;if(!s.contains(t))return!1;for(var i=t;i&&i!==s;){if(i.classList.contains(T.element.consuming))return!0;var o=n(i);if([o.overflow,o.overflowX,o.overflowY].join("").match(/(scroll|auto)/)){var a=i.scrollHeight-i.clientHeight;if(a>0&&!(0===i.scrollTop&&r>0||i.scrollTop===a&&r<0))return!0;var l=i.scrollWidth-i.clientWidth;if(l>0&&!(0===i.scrollLeft&&e<0||i.scrollLeft===l&&e>0))return!0}i=i.parentNode}return!1}function o(n){var o=r(n),a=o[0],l=o[1];if(!i(n.target,a,l)){var c=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(l?s.scrollTop-=l*t.settings.wheelSpeed:s.scrollTop+=a*t.settings.wheelSpeed,c=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(a?s.scrollLeft+=a*t.settings.wheelSpeed:s.scrollLeft-=l*t.settings.wheelSpeed,c=!0):(s.scrollTop-=l*t.settings.wheelSpeed,s.scrollLeft+=a*t.settings.wheelSpeed),j(t),c=c||e(a,l),c&&!n.ctrlKey&&(n.stopPropagation(),n.preventDefault())}}var s=t.element;void 0!==window.onwheel?t.event.bind(s,"wheel",o):void 0!==window.onmousewheel&&t.event.bind(s,"mousewheel",o)},L=function(t){function e(e,r){var n=Math.floor(u.scrollTop),i=u.scrollLeft,o=Math.abs(e),s=Math.abs(r);if(s>o){if(r<0&&n===t.contentHeight-t.containerHeight||r>0&&0===n)return 0===window.scrollY&&r>0&&S.isChrome}else if(o>s&&(e<0&&i===t.contentWidth-t.containerWidth||e>0&&0===i))return!0;return!0}function r(e,r){u.scrollTop-=r,u.scrollLeft-=e,j(t)}function i(t){return t.targetTouches?t.targetTouches[0]:t}function o(t){return(!t.pointerType||"pen"!==t.pointerType||0!==t.buttons)&&(!(!t.targetTouches||1!==t.targetTouches.length)||!(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function s(t){if(o(t)){var e=i(t);h.pageX=e.pageX,h.pageY=e.pageY,p=(new Date).getTime(),null!==f&&clearInterval(f)}}function a(t,e,r){if(!u.contains(t))return!1;for(var i=t;i&&i!==u;){if(i.classList.contains(T.element.consuming))return!0;var o=n(i);if([o.overflow,o.overflowX,o.overflowY].join("").match(/(scroll|auto)/)){var s=i.scrollHeight-i.clientHeight;if(s>0&&!(0===i.scrollTop&&r>0||i.scrollTop===s&&r<0))return!0;var a=i.scrollLeft-i.clientWidth;if(a>0&&!(0===i.scrollLeft&&e<0||i.scrollLeft===a&&e>0))return!0}i=i.parentNode}return!1}function l(t){if(o(t)){var n=i(t),s={pageX:n.pageX,pageY:n.pageY},l=s.pageX-h.pageX,c=s.pageY-h.pageY;if(a(t.target,l,c))return;r(l,c),h=s;var u=(new Date).getTime(),f=u-p;f>0&&(d.x=l/f,d.y=c/f,p=u),e(l,c)&&t.preventDefault()}}function c(){t.settings.swipeEasing&&(clearInterval(f),f=setInterval((function(){return t.isInitialized?void clearInterval(f):d.x||d.y?Math.abs(d.x)<.01&&Math.abs(d.y)<.01?void clearInterval(f):(r(30*d.x,30*d.y),d.x*=.8,void(d.y*=.8)):void clearInterval(f)}),10))}if(S.supportsTouch||S.supportsIePointer){var u=t.element,h={},p=0,d={},f=null;S.supportsTouch?(t.event.bind(u,"touchstart",s),t.event.bind(u,"touchmove",l),t.event.bind(u,"touchend",c)):S.supportsIePointer&&(window.PointerEvent?(t.event.bind(u,"pointerdown",s),t.event.bind(u,"pointermove",l),t.event.bind(u,"pointerup",c)):window.MSPointerEvent&&(t.event.bind(u,"MSPointerDown",s),t.event.bind(u,"MSPointerMove",l),t.event.bind(u,"MSPointerUp",c)))}},R=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},N={"click-rail":A,"drag-thumb":P,keyboard:M,wheel:O,touch:L},I=function(t,e){var r=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var s in this.element=t,t.classList.add(T.main),this.settings=R(),e)r.settings[s]=e[s];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var a=function(){return t.classList.add(T.state.focus)},l=function(){return t.classList.remove(T.state.focus)};this.isRtl="rtl"===n(t).direction,this.isNegativeScroll=function(){var e=t.scrollLeft,r=null;return t.scrollLeft=-1,r=t.scrollLeft<0,t.scrollLeft=e,r}(),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new E,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=o(T.element.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=o(T.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",a),this.event.bind(this.scrollbarX,"blur",l),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=n(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=f(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=f(c.borderLeftWidth)+f(c.borderRightWidth),i(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=f(c.marginLeft)+f(c.marginRight),i(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=o(T.element.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=o(T.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",a),this.event.bind(this.scrollbarY,"blur",l),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var u=n(this.scrollbarYRail);this.scrollbarYRight=parseInt(u.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=f(u.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?g(this.scrollbarY):null,this.railBorderYWidth=f(u.borderTopWidth)+f(u.borderBottomWidth),i(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=f(u.marginTop)+f(u.marginBottom),i(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach((function(t){return N[t](r)})),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",(function(t){return r.onScroll(t)})),j(this)};I.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,i(this.scrollbarXRail,{display:"block"}),i(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=f(n(this.scrollbarXRail).marginLeft)+f(n(this.scrollbarXRail).marginRight),this.railYMarginHeight=f(n(this.scrollbarYRail).marginTop)+f(n(this.scrollbarYRail).marginBottom),i(this.scrollbarXRail,{display:"none"}),i(this.scrollbarYRail,{display:"none"}),j(this),x(this,"top",0,!1,!0),x(this,"left",0,!1,!0),i(this.scrollbarXRail,{display:""}),i(this.scrollbarYRail,{display:""}))},I.prototype.onScroll=function(t){this.isAlive&&(j(this),x(this,"top",this.element.scrollTop-this.lastScrollTop),x(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},I.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),a(this.scrollbarX),a(this.scrollbarY),a(this.scrollbarXRail),a(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},I.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(t){return!t.match(/^ps([-_].+|)$/)})).join(" ")},e.a=I},function(t,e){t.exports=function(t,e,r,n){var i,o=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(i=t,o=t.default);var a="function"==typeof o?o.options:o;if(e&&(a.render=e.render,a.staticRenderFns=e.staticRenderFns),r&&(a._scopeId=r),n){var l=a.computed||(a.computed={});Object.keys(n).forEach((function(t){var e=n[t];l[t]=function(){return e}}))}return{esModule:i,exports:o,options:a}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)(t.$props.tagname,t._g({tag:"section",staticClass:"ps-container",on:{"~mouseover":function(e){return t.update(e)}}},t.$listeners),[t._t("default")],2)},staticRenderFns:[]}},function(t,e){function r(t,e){for(var r=0;r<t.length;r++){var n=t[r],i=u[n.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](n.parts[o]);for(;o<n.parts.length;o++)i.parts.push(a(n.parts[o],e))}else{var s=[];for(o=0;o<n.parts.length;o++)s.push(a(n.parts[o],e));u[n.id]={id:n.id,refs:1,parts:s}}}}function n(t){for(var e=[],r={},n=0;n<t.length;n++){var i=t[n],o=i[0],s=i[1],a=i[2],l=i[3],c={css:s,media:a,sourceMap:l};r[o]?r[o].parts.push(c):e.push(r[o]={id:o,parts:[c]})}return e}function i(t,e){var r=d(),n=g[g.length-1];if("top"===t.insertAt)n?n.nextSibling?r.insertBefore(e,n.nextSibling):r.appendChild(e):r.insertBefore(e,r.firstChild),g.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");r.appendChild(e)}}function o(t){t.parentNode.removeChild(t);var e=g.indexOf(t);e>=0&&g.splice(e,1)}function s(t){var e=document.createElement("style");return e.type="text/css",i(t,e),e}function a(t,e){var r,n,i;if(e.singleton){var a=v++;r=f||(f=s(e)),n=l.bind(null,r,a,!1),i=l.bind(null,r,a,!0)}else r=s(e),n=c.bind(null,r),i=function(){o(r)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else i()}}function l(t,e,r,n){var i=r?"":n.css;if(t.styleSheet)t.styleSheet.cssText=y(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function c(t,e){var r=e.css,n=e.media,i=e.sourceMap;if(n&&t.setAttribute("media",n),i&&(r+="\n/*# sourceURL="+i.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var u={},h=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}},p=h((function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())})),d=h((function(){return document.head||document.getElementsByTagName("head")[0]})),f=null,v=0,g=[];t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},void 0===e.singleton&&(e.singleton=p()),void 0===e.insertAt&&(e.insertAt="bottom");var i=n(t);return r(i,e),function(t){for(var o=[],s=0;s<i.length;s++){var a=i[s],l=u[a.id];l.refs--,o.push(l)}t&&r(n(t),e);for(s=0;s<o.length;s++){l=o[s];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete u[l.id]}}}};var y=function(){var t=[];return function(e,r){return t[e]=r,t.filter(Boolean).join("\n")}}()},function(t,e,r){var n=r(5);"string"==typeof n&&(n=[[t.i,n,""]]),r(9)(n,{}),n.locals&&(t.exports=n.locals)}])},b03c:function(t,e){var r="auto",n={"":!0,lr:!0,rl:!0},i={start:!0,middle:!0,end:!0,left:!0,right:!0};function o(t){if("string"!==typeof t)return!1;var e=n[t.toLowerCase()];return!!e&&t.toLowerCase()}function s(t){if("string"!==typeof t)return!1;var e=i[t.toLowerCase()];return!!e&&t.toLowerCase()}function a(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}function l(t,e,n){var i=this,l=/MSIE\s8\.0/.test(navigator.userAgent),c={};l?i=document.createElement("custom"):c.enumerable=!0,i.hasBeenReset=!1;var u="",h=!1,p=t,d=e,f=n,v=null,g="",y=!0,m="auto",_="start",b=50,T="middle",C=50,k="middle";if(Object.defineProperty(i,"id",a({},c,{get:function(){return u},set:function(t){u=""+t}})),Object.defineProperty(i,"pauseOnExit",a({},c,{get:function(){return h},set:function(t){h=!!t}})),Object.defineProperty(i,"startTime",a({},c,{get:function(){return p},set:function(t){if("number"!==typeof t)throw new TypeError("Start time must be set to a number.");p=t,this.hasBeenReset=!0}})),Object.defineProperty(i,"endTime",a({},c,{get:function(){return d},set:function(t){if("number"!==typeof t)throw new TypeError("End time must be set to a number.");d=t,this.hasBeenReset=!0}})),Object.defineProperty(i,"text",a({},c,{get:function(){return f},set:function(t){f=""+t,this.hasBeenReset=!0}})),Object.defineProperty(i,"region",a({},c,{get:function(){return v},set:function(t){v=t,this.hasBeenReset=!0}})),Object.defineProperty(i,"vertical",a({},c,{get:function(){return g},set:function(t){var e=o(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");g=e,this.hasBeenReset=!0}})),Object.defineProperty(i,"snapToLines",a({},c,{get:function(){return y},set:function(t){y=!!t,this.hasBeenReset=!0}})),Object.defineProperty(i,"line",a({},c,{get:function(){return m},set:function(t){if("number"!==typeof t&&t!==r)throw new SyntaxError("An invalid number or illegal string was specified.");m=t,this.hasBeenReset=!0}})),Object.defineProperty(i,"lineAlign",a({},c,{get:function(){return _},set:function(t){var e=s(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");_=e,this.hasBeenReset=!0}})),Object.defineProperty(i,"position",a({},c,{get:function(){return b},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");b=t,this.hasBeenReset=!0}})),Object.defineProperty(i,"positionAlign",a({},c,{get:function(){return T},set:function(t){var e=s(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");T=e,this.hasBeenReset=!0}})),Object.defineProperty(i,"size",a({},c,{get:function(){return C},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");C=t,this.hasBeenReset=!0}})),Object.defineProperty(i,"align",a({},c,{get:function(){return k},set:function(t){var e=s(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");k=e,this.hasBeenReset=!0}})),i.displayState=void 0,l)return i}l.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=l},be09:function(t,e,r){(function(e){var r;r="undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{},t.exports=r}).call(this,r("c8ba"))},d02c4:function(t,e){var r=Object.create||function(){function t(){}return function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();function n(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function i(t){function e(t,e,r,n){return 3600*(0|t)+60*(0|e)+(0|r)+(0|n)/1e3}var r=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return r?r[3]?e(r[1],r[2],r[3].replace(":",""),r[4]):r[1]>59?e(r[1],r[2],0,r[4]):e(0,r[1],r[2],r[4]):null}function o(){this.values=r(null)}function s(t,e,r,n){var i=n?t.split(n):[t];for(var o in i)if("string"===typeof i[o]){var s=i[o].split(r);if(2===s.length){var a=s[0],l=s[1];e(a,l)}}}function a(t,e,r){var a=t;function l(){var e=i(t);if(null===e)throw new n(n.Errors.BadTimeStamp,"Malformed timestamp: "+a);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function c(t,e){var n=new o;s(t,(function(t,e){switch(t){case"region":for(var i=r.length-1;i>=0;i--)if(r[i].id===e){n.set(t,r[i].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":var o=e.split(","),s=o[0];n.integer(t,s),n.percent(t,s)&&n.set("snapToLines",!1),n.alt(t,s,["auto"]),2===o.length&&n.alt("lineAlign",o[1],["start","middle","end"]);break;case"position":o=e.split(","),n.percent(t,o[0]),2===o.length&&n.alt("positionAlign",o[1],["start","middle","end"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start","middle","end","left","right"]);break}}),/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical",""),e.line=n.get("line","auto"),e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100),e.align=n.get("align","middle"),e.position=n.get("position",{start:0,left:0,middle:50,end:100,right:100},e.align),e.positionAlign=n.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},e.align)}function u(){t=t.replace(/^\s+/,"")}if(u(),e.startTime=l(),u(),"--\x3e"!==t.substr(0,3))throw new n(n.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+a);t=t.substr(3),u(),e.endTime=l(),u(),c(t,e)}n.prototype=r(Error.prototype),n.prototype.constructor=n,n.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},o.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,r){return r?this.has(t)?this.values[t]:e[r]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,r){for(var n=0;n<r.length;++n)if(e===r[n]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return!!(e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(e=parseFloat(e),e>=0&&e<=100))&&(this.set(t,e),!0)}};var l={"&":"&","<":"<",">":">","‎":"","‏":""," ":" "},c={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},u={v:"title",lang:"lang"},h={rt:"ruby"};function p(t,e){function r(){if(!e)return null;function t(t){return e=e.substr(t.length),t}var r=e.match(/^([^<]*)(<[^>]*>?)?/);return t(r[1]?r[1]:r[2])}function n(t){return l[t]}function o(t){while(m=t.match(/&(amp|lt|gt|lrm|rlm|nbsp);/))t=t.replace(m[0],n);return t}function s(t,e){return!h[e.localName]||h[e.localName]===t.localName}function a(e,r){var n=c[e];if(!n)return null;var i=t.document.createElement(n);i.localName=n;var o=u[e];return o&&r&&(i[o]=r.trim()),i}var p,d=t.document.createElement("div"),f=d,v=[];while(null!==(p=r()))if("<"!==p[0])f.appendChild(t.document.createTextNode(o(p)));else{if("/"===p[1]){v.length&&v[v.length-1]===p.substr(2).replace(">","")&&(v.pop(),f=f.parentNode);continue}var g,y=i(p.substr(1,p.length-2));if(y){g=t.document.createProcessingInstruction("timestamp",y),f.appendChild(g);continue}var m=p.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!m)continue;if(g=a(m[1],m[3]),!g)continue;if(!s(f,g))continue;m[2]&&(g.className=m[2].substr(1).replace("."," ")),v.push(m[1]),f.appendChild(g),f=g}return d}var d=[[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 f(t){for(var e=0;e<d.length;e++){var r=d[e];if(t>=r[0]&&t<=r[1])return!0}return!1}function v(t){var e,r=[],n="";if(!t||!t.childNodes)return"ltr";function i(t,e){for(var r=e.childNodes.length-1;r>=0;r--)t.push(e.childNodes[r])}function o(t){if(!t||!t.length)return null;var e=t.pop(),r=e.textContent||e.innerText;if(r){var n=r.match(/^.*(\n|\r)/);return n?(t.length=0,n[0]):r}return"ruby"===e.tagName?o(t):e.childNodes?(i(t,e),o(t)):void 0}i(r,t);while(n=o(r))for(var s=0;s<n.length;s++)if(e=n.charCodeAt(s),f(e))return"rtl";return"ltr"}function g(t){if("number"===typeof t.line&&(t.snapToLines||t.line>=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,r=e.textTrackList,n=0,i=0;i<r.length&&r[i]!==e;i++)"showing"===r[i].mode&&n++;return-1*++n}function y(){}function m(t,e,r){var n=/MSIE\s8\.0/.test(navigator.userAgent),i="rgba(255, 255, 255, 1)",o="rgba(0, 0, 0, 0.8)";n&&(i="rgb(255, 255, 255)",o="rgb(0, 0, 0)"),y.call(this),this.cue=e,this.cueDiv=p(t,e.text);var s={color:i,backgroundColor:o,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};n||(s.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",s.unicodeBidi="plaintext"),this.applyStyles(s,this.cueDiv),this.div=t.document.createElement("div"),s={textAlign:"middle"===e.align?"center":e.align,font:r.font,whiteSpace:"pre-line",position:"absolute"},n||(s.direction=v(this.cueDiv),s.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(s),this.div.appendChild(this.cueDiv);var a=0;switch(e.positionAlign){case"start":a=e.position;break;case"middle":a=e.position-e.size/2;break;case"end":a=e.position-e.size;break}""===e.vertical?this.applyStyles({left:this.formatStyle(a,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(a,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:this.formatStyle(t.height,"px"),width:this.formatStyle(t.width,"px")})}}function _(t){var e,r,n,i,o=/MSIE\s8\.0/.test(navigator.userAgent);if(t.div){r=t.div.offsetHeight,n=t.div.offsetWidth,i=t.div.offsetTop;var s=(s=t.div.childNodes)&&(s=s[0])&&s.getClientRects&&s.getClientRects();t=t.div.getBoundingClientRect(),e=s?Math.max(s[0]&&s[0].height||0,t.height/s.length):0}this.left=t.left,this.right=t.right,this.top=t.top||i,this.height=t.height||r,this.bottom=t.bottom||i+(t.height||r),this.width=t.width||n,this.lineHeight=void 0!==e?e:t.lineHeight,o&&!this.lineHeight&&(this.lineHeight=13)}function b(t,e,r,n){function i(t,e){for(var i,o=new _(t),s=1,a=0;a<e.length;a++){while(t.overlapsOppositeAxis(r,e[a])||t.within(r)&&t.overlapsAny(n))t.move(e[a]);if(t.within(r))return t;var l=t.intersectPercentage(r);s>l&&(i=new _(t),s=l),t=new _(o)}return i||o}var o=new _(e),s=e.cue,a=g(s),l=[];if(s.snapToLines){var c;switch(s.vertical){case"":l=["+y","-y"],c="height";break;case"rl":l=["+x","-x"],c="width";break;case"lr":l=["-x","+x"],c="width";break}var u=o.lineHeight,h=u*Math.round(a),p=r[c]+u,d=l[0];Math.abs(h)>p&&(h=h<0?-1:1,h*=Math.ceil(p/u)*u),a<0&&(h+=""===s.vertical?r.height:r.width,l=l.reverse()),o.move(d,h)}else{var f=o.lineHeight/r.height*100;switch(s.lineAlign){case"middle":a-=f/2;break;case"end":a-=f;break}switch(s.vertical){case"":e.applyStyles({top:e.formatStyle(a,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(a,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(a,"%")});break}l=["+y","-x","+x","-y"],o=new _(e)}var v=i(o,l);e.move(v.toCSSCompatValues(r))}function T(){}y.prototype.applyStyles=function(t,e){for(var r in e=e||this.div,t)t.hasOwnProperty(r)&&(e.style[r]=t[r])},y.prototype.formatStyle=function(t,e){return 0===t?0:t+e},m.prototype=r(y.prototype),m.prototype.constructor=m,_.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e;break}},_.prototype.overlaps=function(t){return this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top},_.prototype.overlapsAny=function(t){for(var e=0;e<t.length;e++)if(this.overlaps(t[e]))return!0;return!1},_.prototype.within=function(t){return this.top>=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},_.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left<t.left;case"-x":return this.right>t.right;case"+y":return this.top<t.top;case"-y":return this.bottom>t.bottom}},_.prototype.intersectPercentage=function(t){var e=Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left)),r=Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top)),n=e*r;return n/(this.height*this.width)},_.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},_.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,r=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,n=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t;var i={left:t.left,right:t.right,top:t.top||n,height:t.height||e,bottom:t.bottom||n+(t.height||e),width:t.width||r};return i},T.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!==typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},T.convertCueToDOMTree=function(t,e){return t&&e?p(t,e):null};var C=.05,k="sans-serif",w="1.5%";T.processCues=function(t,e,r){if(!t||!e||!r)return null;while(r.firstChild)r.removeChild(r.firstChild);var n=t.document.createElement("div");function i(t){for(var e=0;e<t.length;e++)if(t[e].hasBeenReset||!t[e].displayState)return!0;return!1}if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin=w,r.appendChild(n),i(e)){var o=[],s=_.getSimpleBoxPosition(n),a=Math.round(s.height*C*100)/100,l={font:a+"px "+k};(function(){for(var r,i,a=0;a<e.length;a++)i=e[a],r=new m(t,i,l),n.appendChild(r.div),b(t,r,s,o),i.displayState=r.div,o.push(_.getSimpleBoxPosition(r))})()}else for(var c=0;c<e.length;c++)n.appendChild(e[c].displayState)},T.Parser=function(t,e,r){r||(r=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=r||new TextDecoder("utf8"),this.regionList=[]},T.Parser.prototype={reportOrThrowError:function(t){if(!(t instanceof n))throw t;this.onparsingerror&&this.onparsingerror(t)},parse:function(t){var e=this;function r(){var t=e.buffer,r=0;while(r<t.length&&"\r"!==t[r]&&"\n"!==t[r])++r;var n=t.substr(0,r);return"\r"===t[r]&&++r,"\n"===t[r]&&++r,e.buffer=t.substr(r),n}function l(t){var r=new o;if(s(t,(function(t,e){switch(t){case"id":r.set(t,e);break;case"width":r.percent(t,e);break;case"lines":r.integer(t,e);break;case"regionanchor":case"viewportanchor":var n=e.split(",");if(2!==n.length)break;var i=new o;if(i.percent("x",n[0]),i.percent("y",n[1]),!i.has("x")||!i.has("y"))break;r.set(t+"X",i.get("x")),r.set(t+"Y",i.get("y"));break;case"scroll":r.alt(t,e,["up"]);break}}),/=/,/\s/),r.has("id")){var n=new(e.vttjs.VTTRegion||e.window.VTTRegion);n.width=r.get("width",100),n.lines=r.get("lines",3),n.regionAnchorX=r.get("regionanchorX",0),n.regionAnchorY=r.get("regionanchorY",100),n.viewportAnchorX=r.get("viewportanchorX",0),n.viewportAnchorY=r.get("viewportanchorY",100),n.scroll=r.get("scroll",""),e.onregion&&e.onregion(n),e.regionList.push({id:r.get("id"),region:n})}}function c(t){var r=new o;s(t,(function(t,e){switch(t){case"MPEGT":r.integer(t+"S",e);break;case"LOCA":r.set(t+"L",i(e));break}}),/[^\d]:/,/,/),e.ontimestampmap&&e.ontimestampmap({MPEGTS:r.get("MPEGTS"),LOCAL:r.get("LOCAL")})}function u(t){t.match(/X-TIMESTAMP-MAP/)?s(t,(function(t,e){switch(t){case"X-TIMESTAMP-MAP":c(e);break}}),/=/):s(t,(function(t,e){switch(t){case"Region":l(e);break}}),/:/)}t&&(e.buffer+=e.decoder.decode(t,{stream:!0}));try{var h;if("INITIAL"===e.state){if(!/\r\n|\n/.test(e.buffer))return this;h=r();var p=h.match(/^WEBVTT([ \t].*)?$/);if(!p||!p[0])throw new n(n.Errors.BadSignature);e.state="HEADER"}var d=!1;while(e.buffer){if(!/\r\n|\n/.test(e.buffer))return this;switch(d?d=!1:h=r(),e.state){case"HEADER":/:/.test(h)?u(h):h||(e.state="ID");continue;case"NOTE":h||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(h)){e.state="NOTE";break}if(!h)continue;if(e.cue=new(e.vttjs.VTTCue||e.window.VTTCue)(0,0,""),e.state="CUE",-1===h.indexOf("--\x3e")){e.cue.id=h;continue}case"CUE":try{a(h,e.cue,e.regionList)}catch(v){e.reportOrThrowError(v),e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var f=-1!==h.indexOf("--\x3e");if(!h||f&&(d=!0)){e.oncue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&&(e.cue.text+="\n"),e.cue.text+=h;continue;case"BADCUE":h||(e.state="ID");continue}}}catch(v){e.reportOrThrowError(v),"CUETEXT"===e.state&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state="INITIAL"===e.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),(t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new n(n.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}},t.exports=T},d6d3:function(t,e,r){!function(e,n){t.exports=n(r("3d33"))}(0,(function(t){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=3)}([function(e,r){e.exports=t},function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Object.defineProperty(e,"__esModule",{value:!0});var i=r(0),o=function(t){return t&&t.__esModule?t:{default:t}}(i),s=window.videojs||o.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])}return r},writable:!0,configurable:!0});var a=["loadeddata","canplay","canplaythrough","play","pause","waiting","playing","ended","error"];e.default={name:"video-player",props:{start:{type:Number,default:0},crossOrigin:{type:String,default:""},playsinline:{type:Boolean,default:!1},customEventName:{type:String,default:"statechanged"},options:{type:Object,required:!0},events:{type:Array,default:function(){return[]}},globalOptions:{type:Object,default:function(){return{controls:!0,controlBar:{remainingTimeDisplay:!1,playToggle:{},progressControl:{},fullscreenToggle:{},volumeMenuButton:{inline:!1,vertical:!0}},techOrder:["html5"],plugins:{}}}},globalEvents:{type:Array,default:function(){return[]}}},data:function(){return{player:null,reseted:!0}},mounted:function(){this.player||this.initialize()},beforeDestroy:function(){this.player&&this.dispose()},methods:{initialize:function(){var t=this,e=Object.assign({},this.globalOptions,this.options);this.playsinline&&(this.$refs.video.setAttribute("playsinline",this.playsinline),this.$refs.video.setAttribute("webkit-playsinline",this.playsinline),this.$refs.video.setAttribute("x5-playsinline",this.playsinline),this.$refs.video.setAttribute("x5-video-player-type","h5"),this.$refs.video.setAttribute("x5-video-player-fullscreen",!1)),""!==this.crossOrigin&&(this.$refs.video.crossOrigin=this.crossOrigin,this.$refs.video.setAttribute("crossOrigin",this.crossOrigin));var r=function(e,r){e&&t.$emit(e,t.player),r&&t.$emit(t.customEventName,n({},e,r))};e.plugins&&delete e.plugins.__ob__;var i=this;this.player=s(this.$refs.video,e,(function(){for(var t=this,e=a.concat(i.events).concat(i.globalEvents),n={},o=0;o<e.length;o++)"string"==typeof e[o]&&void 0===n[e[o]]&&function(e){n[e]=null,t.on(e,(function(){r(e,!0)}))}(e[o]);this.on("timeupdate",(function(){r("timeupdate",this.currentTime())})),i.$emit("ready",this)}))},dispose:function(t){var e=this;this.player&&this.player.dispose&&("Flash"!==this.player.techName_&&this.player.pause&&this.player.pause(),this.player.dispose(),this.player=null,this.$nextTick((function(){e.reseted=!1,e.$nextTick((function(){e.reseted=!0,e.$nextTick((function(){t&&t()}))}))})))}},watch:{options:{deep:!0,handler:function(t,e){var r=this;this.dispose((function(){t&&t.sources&&t.sources.length&&r.initialize()}))}}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r.n(n);for(var o in n)["default","default"].indexOf(o)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(o);var s=r(5),a=r(4),l=a(i.a,s.a,!1,null,null,null);e.default=l.exports},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.install=e.videoPlayer=e.videojs=void 0;var i=r(0),o=n(i),s=r(2),a=n(s),l=window.videojs||o.default,c=function(t,e){e&&(e.options&&(a.default.props.globalOptions.default=function(){return e.options}),e.events&&(a.default.props.globalEvents.default=function(){return e.events})),t.component(a.default.name,a.default)},u={videojs:l,videoPlayer:a.default,install:c};e.default=u,e.videojs=l,e.videoPlayer=a.default,e.install=c},function(t,e){t.exports=function(t,e,r,n,i,o){var s,a=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(s=t,a=t.default);var c,u="function"==typeof a?a.options:a;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId=i),o?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=c):n&&(c=n),c){var h=u.functional,p=h?u.render:u.beforeCreate;h?(u._injectStyles=c,u.render=function(t,e){return c.call(e),p(t,e)}):u.beforeCreate=p?[].concat(p,c):[c]}return{esModule:s,exports:a,options:u}}},function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.reseted?r("div",{staticClass:"video-player"},[r("video",{ref:"video",staticClass:"video-js"})]):t._e()},i=[],o={render:n,staticRenderFns:i};e.a=o}])}))},eec7:function(t,e,r){"use strict";var n=r("be09"),i=r("8362"),o=r("6444"),s=r("53a8");function a(t,e){for(var r=0;r<t.length;r++)e(t[r])}function l(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function c(t,e,r){var n=t;return i(e)?(r=e,"string"===typeof t&&(n={uri:t})):n=s(e,{uri:t}),n.callback=r,n}function u(t,e,r){return e=c(t,e,r),h(e)}function h(t){if("undefined"===typeof t.callback)throw new Error("callback argument missing");var e=!1,r=function(r,n,i){e||(e=!0,t.callback(r,n,i))};function n(){4===d.readyState&&setTimeout(a,0)}function i(){var t=void 0;if(t=d.response?d.response:d.responseText||p(d),b)try{t=JSON.parse(t)}catch(e){}return t}function s(t){return clearTimeout(f),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,r(t,T)}function a(){if(!h){var e;clearTimeout(f),e=t.useXDR&&void 0===d.status?200:1223===d.status?204:d.status;var n=T,s=null;return 0!==e?(n={body:i(),statusCode:e,method:g,headers:{},url:v,rawRequest:d},d.getAllResponseHeaders&&(n.headers=o(d.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),r(s,n,n.body)}}var c,h,d=t.xhr||null;d||(d=t.cors||t.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var f,v=d.url=t.uri||t.url,g=d.method=t.method||"GET",y=t.body||t.data,m=d.headers=t.headers||{},_=!!t.sync,b=!1,T={body:void 0,headers:{},statusCode:0,method:g,url:v,rawRequest:d};if("json"in t&&!1!==t.json&&(b=!0,m["accept"]||m["Accept"]||(m["Accept"]="application/json"),"GET"!==g&&"HEAD"!==g&&(m["content-type"]||m["Content-Type"]||(m["Content-Type"]="application/json"),y=JSON.stringify(!0===t.json?y:t.json))),d.onreadystatechange=n,d.onload=a,d.onerror=s,d.onprogress=function(){},d.onabort=function(){h=!0},d.ontimeout=s,d.open(g,v,!_,t.username,t.password),_||(d.withCredentials=!!t.withCredentials),!_&&t.timeout>0&&(f=setTimeout((function(){if(!h){h=!0,d.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",s(t)}}),t.timeout)),d.setRequestHeader)for(c in m)m.hasOwnProperty(c)&&d.setRequestHeader(c,m[c]);else if(t.headers&&!l(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(d.responseType=t.responseType),"beforeSend"in t&&"function"===typeof t.beforeSend&&t.beforeSend(d),d.send(y||null),d}function p(t){if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;return""!==t.responseType||e?null:t.responseXML}function d(){}t.exports=u,u.XMLHttpRequest=n.XMLHttpRequest||d,u.XDomainRequest="withCredentials"in new u.XMLHttpRequest?u.XMLHttpRequest:n.XDomainRequest,a(["get","put","post","patch","head","delete"],(function(t){u["delete"===t?"del":t]=function(e,r,n){return r=c(e,r,n),r.method=t.toUpperCase(),h(r)}}))},ef34:function(t,e,r){(function(e){var n,i="undefined"!==typeof e?e:"undefined"!==typeof window?window:{},o=r(13);"undefined"!==typeof document?n=document:(n=i["__GLOBAL_DOCUMENT_CACHE@4"],n||(n=i["__GLOBAL_DOCUMENT_CACHE@4"]=o)),t.exports=n}).call(this,r("c8ba"))},f6dd:function(t,e,r){},f81d:function(t,e,r){"use strict";r("f6dd")},f97d:function(t,e){var r={"":!0,up:!0};function n(t){if("string"!==typeof t)return!1;var e=r[t.toLowerCase()];return!!e&&t.toLowerCase()}function i(t){return"number"===typeof t&&t>=0&&t<=100}function o(){var t=100,e=3,r=0,o=100,s=0,a=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!i(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!==typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return o},set:function(t){if(!i(t))throw new Error("RegionAnchorX must be between 0 and 100.");o=t}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(t){if(!i(t))throw new Error("RegionAnchorY must be between 0 and 100.");r=t}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(t){if(!i(t))throw new Error("ViewportAnchorY must be between 0 and 100.");a=t}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(t){if(!i(t))throw new Error("ViewportAnchorX must be between 0 and 100.");s=t}},scroll:{enumerable:!0,get:function(){return l},set:function(t){var e=n(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");l=e}}})}t.exports=o},fda2:function(t,e,r){}}]); //# sourceMappingURL=chunk-08f255d3.f072444f.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure