function playVideo(a){if(window.$SINAPlayer.util.urlDetection()){console.log("player_version:1.0.0 core:"+window.playerVersion);return window.sinavideo(a)}var b=window.$SINAPLAYEROBJ=window.$SINAPlayer.playerInit(a);return b.player}if(window.$SINAPlayer==undefined){window.$SINAPlayer={};window.$SINAPlayer.players=[];window.$SINAPlayer.configs=[];window.$SINAPlayer.util={};window.$SINAPlayer.time={};window.$SINAPlayer.videoFileInfo={};window.$SINAPlayer.time.firstOpenTime=(new Date).getTime();window.$SINAPlayer.player={init:!1,type:1,load:!1};window.$SINAPLAYEROBJ=null;window.$SINAFLASHURL="//p.you.video.sina.com.cn/swf/opPlayer20200105_V5_1_1_65.swf"}; window.$SINAPlayer.cacheFuns=function(){var a=[],b={};b.add=function(b,c){a.push({name:b,args:c||[]})};b.forExec=function(b){for(i in a){var c=a[i];b(c.name,c.args)}};b.clear=function(){a=[]};return b}(); window.$SINAPlayer.playersControl=function(){var a={};return{add:function(b,c){a[b]={dom:document.getElementById(b),obj:c}},getplayer:function(b){return a[b]?a[b]:null}}}(); window.$SINAPlayer.getPlayer=function(){var a=window.$SINAPlayer.playersControl;return{getPlayer:function(b){return a.getplayer(b)}}}(); window.$SINAPlayer.playerCallJs=function(){var a={},b=window.$SINAPlayer.cacheFuns,c=window.$SINAPlayer.getPlayer,d=!1,e=function(){if(arguments.length==0)throw new Error("播放器回调js方法必须传入播放器id");var a=Array.prototype.slice.call(arguments,0);a.push((new Date).getTime());return a},f=function(a){$PlayerCallJs[a]=function(){var f=e.apply(null,arguments);b.add(a,f);if(a=="flashInitCompleted"){window.$SINAPlayer.player.load=!0;var g=setInterval(function(){if(!!$SCOPE&&typeof $SCOPE=="object"&&typeof $SCOPE.video=="object"){var a=c.getPlayer(f[f.length-2]),b=a.obj;if(!d){d=!0;b.callback.fire("flashInitCompleted",a.obj.playerid)}$SCOPE.video.videoId&&($SCOPE.video.video_id=$SCOPE.video.videoId);var e=setInterval(function(){if(b.playVideo){clearInterval(e);b.playVideo($SCOPE.video)}},20);clearInterval(g)}},20)}if(a=="playComplete"){var h=c.getPlayer(f[f.length-2]);h&&h.obj.callback.fire("playCompleted",h.obj.playerid)}if(a=="h5RecordeValue"){var i=f[f.length-3],h=c.getPlayer(f[f.length-2]);h.obj.callback.fire("h5RecordeValue",i,h.obj.playerid)}}},g=function(a,b){$PlayerCallJs[a]=function(){var a=e.apply(null,arguments);b.apply(null,a)}};if(typeof window.$PlayerCallJs=="undefined"){window.$PlayerCallJs={};window.$PlayerCallNameArr=["flashInitCompleted","playComplete","playOutside","playStart","videoError","toWide","toNarrow","setLight","recordValue","h5RecordeValue","adComplete"]}for(var h=0,i=$PlayerCallNameArr.length;h',""].join("")}; window.$SINAPlayer.util.jsonp=function(a,b){var c=(new Date).getTime(),d=document.getElementsByTagName("head")[0]||document.documentElement,e=document.createElement("script"),f="HTML5_"+c;e.src=a+"&jsonp="+f;e.charset="utf-8";window[f]=function(a){if(b||typeof b=="function"){b(a);delete window[b];d.removeChild(e)}};d.appendChild(e)}; window.$SINAPlayer.util.callback=function(){var a={};this.add=function(b,c){a[b]||(a[b]=[]);a[b].push(c)};this.fire=function(b,c){var d=Array.prototype.slice.call(arguments,0);d.shift();var e=a[b];if(e){var f=e.length;for(var g=0;g');return'"+e+""}var g='b)return!0;if(a.maxversion!=b)return!1;if(c!=undefined)return a.minversion>=c?!0:!1};return a}(); window.$SINAPlayer.util.browserType=function(){var a=navigator.userAgent,b=a.indexOf("Opera")>-1,c=a.indexOf("compatible")>-1&&a.indexOf("MSIE")>-1&&!b,d=a.indexOf("Windows NT 6.1; Trident/7.0;")>-1&&!c,e=a.indexOf("Firefox")>-1,f=a.indexOf("Safari")>-1&&a.indexOf("Chrome")==-1,g=a.indexOf("Chrome")>-1&&a.indexOf("Safari")>-1;if(c){var h=new RegExp("MSIE (\\d+\\.\\d+);");h.test(a);var i=parseFloat(RegExp.$1);return i==7?"IE7":i==8?"IE8":i==9?"IE9":i==10?"IE10":i==11?"IE11":"0"}if(e)return"FF";if(b)return"Opera";if(f)return"Safari";if(g)return"Chrome";if(d)return"Edge"}; window.$SINAPlayer.checkFlash=function(a){var b=window.$SINAPlayer.util.checkFlashPlugins,c=window.$SINAPlayer.util.browserType(),d=function(b,c){b?a.innerHTML='
亲,您没有安装flash插件不能播放哦~ 请 立即安装'+""+c+"
":a.innerHTML='
'+c+"
"};if(b.flash){if(!b.support(11,0)){d("//www.adobe.com/go/getflashplayer","升级您的Flash Player版本,最低版本要求:11.0");return!1}return!0}"Safari"==c?window.location.href="//www.adobe.com/go/getflashplayer":"FF"==c?confirm("因本页面视频需要flash插件支持,请确定您的浏览器已安装flash插件并允许开启")&&(window.location.href="//support.mozilla.org/zh-CN/kb/flash-blocklists"):d("//www.adobe.com/go/getflashplayer","")}; window.$SINAPlayer.util.snvdLog=function(a){function i(){var a=d.os;for(key in a)if(a[key])return key}function j(){var a="";e.video_id?a=e.video_id:e.fcid&&(a=e.fcid);return a}function k(a){var b=a.toString().split(".");return parseFloat(b.join(""))}function l(a){return parseInt(a/1e3)}var b=window.$SINAPlayer.getUser(),c=window.$SINAPlayer.util.browserType(),d=window.$SINAPlayer.util.platform,e=window.$SINAPlayer.videoFileInfo,f=window.location.hostname,g=f.substring(0,f.indexOf(".")),h={sid:"",app:"sinaplayerH5",logv:"0.0.1",uid:"",gusr:"",did:"",ape:"H5_browser",os:i(),tpxi:"brws:"+c+",brwsV:"+d.browser.version,dv:d.appDevice,lov:"vod",vot:"",lt:"",vd:l(e.duration)||l(k(a.duration)),vwd:e.width||a.width,vht:e.height||a.height,purl:a.currentSrc,atq:1,vpid:j(),fcid:e.fcid||"",vtl:e.title||document.title||"",pctx:e.pctx||"",psrc:e.psrc,vsrc:e.vsrc};if(b.gusr){h.uid="";h.gusr=b.gusrId;h.did=b.gusrId;h.sid=b.gusrId}else{h.uid=b.uid;h.gusr="";h.did=b.uid;h.sid=b.uid}return h}; window.$SINAPlayer.playerInit=function(opt){function argsinit(){var a=opt.flashvars;for(var b in a)a[b]=encodeURIComponent(a[b]);$extend(config,opt||{});config.url||(config.url=window.$SINAFLASHURL);config.flashvars.playerId=config.id;config.flashvars.jsNamespace="window.$PlayerCallJs";container=document.getElementById(config.container)}function buildPlayer(){$control.add(that.player.playerid,that.player)}function chechFlashInit(){if(window.$SINAPlayer.checkFlash(container)){that.player=new window.$SINAPlayer.sinaFlashPlayer(config);window.$SINAPlayer.player.type=1;window.$SINAPlayer.player.init=!0;that.player.buildDom();buildPlayer()}else initH5Player()}function initH5Player(){var snvdLog,sidTime,videoSoureIsVideo_id=!0;window.$SINAPlayer.sinaH5Player.prototype.playVideo=function(a){if(!a||a==-1)return;var b=this;a.poster&&(this.player.poster=a.poster);var c=document.getElementById(config.container),d=function(c){if(typeof c=="object"&&c.file_id){var d=c.file_id;b.player.src=c.dispatch_result.url;window.$SINAPlayer.videoFileInfo.width=c.width;window.$SINAPlayer.videoFileInfo.height=c.height;window.$SINAPlayer.videoFileInfo.duration=c.length;window.$SINAPlayer.videoFileInfo.fcid=c.file_id;window.$SINAPlayer.videoFileInfo.vsrc="vms";window.$SINAPlayer.videoFileInfo.pctx="videosource:vms";$jsonp("//count.video.sina.com.cn/videoView?video_id="+a.video_id+"&vid="+d+"&r="+window.location.href)}else{b.player.src=c;if(config.flashvars.videosource){window.$SINAPlayer.videoFileInfo.vsrc=config.flashvars.videosource;window.$SINAPlayer.videoFileInfo.pctx="videosource:"+config.flashvars.videosource}else e(c);window.$SINAPlayer.videoFileInfo.fcid=config.flashvars.pageid||""}window.$SINAPlayer.videoFileInfo.psrc=config.flashvars.feedRefer||"";$PlayerCallJs.h5RecordeValue(c,b.playerid)},e=function(a){if(a)if(a.indexOf("miaopai")>0){window.$SINAPlayer.videoFileInfo.vsrc="miaopai";window.$SINAPlayer.videoFileInfo.pctx="videosource:miaopai"}else if(a.indexOf("kandian")>0){window.$SINAPlayer.videoFileInfo.vsrc="kandian";window.$SINAPlayer.videoFileInfo.pctx="videosource:kandian"}else if(a.indexOf("weibo")>0){window.$SINAPlayer.videoFileInfo.vsrc="weibo";window.$SINAPlayer.videoFileInfo.pctx="videosource:weibo"}else if(a.indexOf("ad")>0){window.$SINAPlayer.videoFileInfo.vsrc="ad";window.$SINAPlayer.videoFileInfo.pctx="videosource:ad"}else if(a.indexOf("kuaishou")>0){window.$SINAPlayer.videoFileInfo.vsrc="kuaishou";window.$SINAPlayer.videoFileInfo.pctx="videosource:kuaishou"}else if(a.indexOf("acfun")>0){window.$SINAPlayer.videoFileInfo.vsrc="acfun";window.$SINAPlayer.videoFileInfo.pctx="videosource:acfun"}else if(a.indexOf("bilibili")>0){window.$SINAPlayer.videoFileInfo.vsrc="bilibili";window.$SINAPlayer.videoFileInfo.pctx="videosource:bilibili"}else{window.$SINAPlayer.videoFileInfo.vsrc="";window.$SINAPlayer.videoFileInfo.pctx="videosource:"}};if(a.video_id){var f="appver=1.1&appname=h5VideoLog&applt=mobile&tags=video&player=all&video_id=";$jsonp("//api.ivideo.sina.com.cn/public/video/play?"+f+a.video_id+"&pageUrl="+encodeURIComponent(window.location.href),function(e){if(e&&e.code=="1"){window.$SINAPlayer.videoFileInfo.title=e.data.title||a.title;window.$SINAPlayer.videoFileInfo.video_id=e.data.video_id;var f=e.data.videos,g=!1,h,i,j,k;for(var l=0,m=f.length;l'+b.player.error.message+"";b.callback.fire("videoError",b.playerid)}})}else if(opt.flashvars.streamurl){videoSoureIsVideo_id=!1;d(decodeURIComponent(opt.flashvars.streamurl));b.callback.fire("streamurl",b.playerid)}else{videoError=!0;c.innerHTML='
'+b.player.error.message+"
";b.callback.fire("videoError",b.playerid)}};window.$SINAPlayer.sinaH5Player.prototype.bindEvt=function(){var a=this,b=!0,c=!1,d=!1,e={h5canplay:function(){},h5play:function(){if(videoError)return;var c=(new Date).getTime();if(b){sidTime=(new Date).getTime();snvdLog=window.$SINAPlayer.util.snvdLog(a.player);snvdLog.sid=snvdLog.sid+"_"+snvdLog.os+"_"+c;H5playCfg.sno=1;H5playCfg.shno=1;H5playCfg.startTime=0;H5playCfg.isPlayStart=!1;H5playCfg.isFirstFrame=!1;H5playCfg.playDur=[];H5playCfg.pause.count=0;H5playCfg.pause.isPaused=!1;H5playCfg.pause.pauseStartTime=0;H5playCfg.pause.pauseEndTime=0;H5playCfg.pause.pauseDurTime=[];_firstPlay(a.player,c);b=!1;a.callback.fire("playStart",a.playerid)}else{_playFromPause(a.player,c);a.callback.fire("unpauseNotify",a.playerid)}},h5timeupdate:function(){if(a.player&&H5playCfg.isFirstFrame){if(!snvdLog.vd){var b=a.player.duration.toString().split(".");b=parseFloat(b.join(""));snvdLog.vd=parseFloat(b/1e3)}_firstFrame(a.player);a.callback.fire("onFirstframe",a.playerid)}},h5pause:function(){if(videoError)return;_pause(a.player);a.callback.fire("pauseNotify",a.playerid)},h5stop:function(){_earlyStop(a.player)},h5ended:function(){b=!0;_playEnded(a.player);a.callback.fire("playComplete",a.playerid)},h5volumechange:function(){if(a.player.muted){a.callback.fire("volumeOff",a.playerid);c=!0}else if(c){a.callback.fire("volumeOn",a.playerid);c=!1}},h5requestFullScreen:function(){var a=document.documentElement;a.requestFullscreen?a.requestFullscreen():a.mozRequestFullScreen?a.mozRequestFullScreen():a.webkitRequestFullScreen&&a.webkitRequestFullScreen()},h5exitFullscreen:function(){var a=document;a.exitFullscreen?a.exitFullscreen():a.mozCancelFullScreen?a.mozCancelFullScreen():a.webkitCancelFullScreen&&a.webkitCancelFullScreen()}};a.player.addEventListener("canplay",e.h5canplay);a.player.addEventListener("play",e.h5play);a.player.addEventListener("pause",e.h5pause);a.player.addEventListener("timeupdate",e.h5timeupdate,!1);a.player.addEventListener("ended",e.h5ended);a.player.addEventListener("volumechange",e.h5volumechange);window.addEventListener("beforeunload",e.h5stop,!1);a.player.addEventListener("click",function(){if(d){e.h5exitFullscreen();d=!1;a.callback.fire("toNomalScreen",a.playerid)}else{e.h5requestFullScreen();d=!0;a.callback.fire("toFullScreen",a.playerid)}},!1)};that.player=new window.$SINAPlayer.sinaH5Player(config);window.$SINAPlayer.player.type=2;window.$SINAPlayer.player.init=!0;var earr=[{playerInitCompleted:"flashInitCompleted"},{playStart:"playStart"},{videoError:"videoError"},{playComplete:"playComplete"},{onFirstframe:"onFirstframe"},{pauseNotify:"pauseNotify"},{unpauseNotify:"unpauseNotify"},{volumeOn:"volumeOn"},{volumeOff:"volumeOff"},{toFullScreen:"toFullScreen"},{toNomalScreen:"toNomalScreen"}];for(var i=0,len=earr.length;i19&&(H5playCfg.onlineTag=setInterval(function(){_onlineStatus(a)},3e4));H5playCfg.heartBeats=0},_playEnded=function(a){var b=(new Date).getTime(),c=timeSort(H5playCfg.playDur),d=timeSort(H5playCfg.pause.pauseDurTime),e={le:4,sno:H5playCfg.sno++,sts:(b-sidTime)/1e3,ts:(b/1e3).toFixed(0),endt:"playfinish",pds:c,pus:d,puc:H5playCfg.pause.count,ppos:parseInt(a.currentTime)};sendSvndLog(e);clearInterval(H5playCfg.onlineTag)},_earlyStop=function(a){var b={};if(H5playCfg.startTime||b.endt=="playfinish")return;var c=timeSort(H5playCfg.playDur),d=timeSort(H5playCfg.pause.pauseDurTime),e=(new Date).getTime();b={le:4,sno:H5playCfg.sno++,sts:(e-sidTime)/1e3,ts:(e/1e3).toFixed(0),endt:"byclose",pds:c,pus:d,puc:H5playCfg.pause.count,ppos:parseInt(a.currentTime)};sendSvndLog(b);clearInterval(H5playCfg.onlineTag);setTimeout(function(){},1e3)},_firstFrame=function(a){var b=(new Date).getTime();H5playCfg.isFirstFrame=!1;var c={le:3,sno:H5playCfg.sno++,sts:(b-sidTime)/1e3,ts:(b/1e3).toFixed(0),ppos:parseInt(a.currentTime)};sendSvndLog(c);H5playCfg.onlineTag=setInterval(function(){_onlineStatus(a)},3e4)},_onlineStatus=function(a){var b=(new Date).getTime(),c=timeSort(H5playCfg.playDur),d=timeSort(H5playCfg.pause.pauseDurTime);H5playCfg.pause.isPaused&&H5playCfg.heartBeats++;H5playCfg.pause.isPaused&&H5playCfg.heartBeats>19&&clearInterval(H5playCfg.onlineTag);var e={le:5,sno:H5playCfg.sno++,shno:H5playCfg.shno++,sts:(b-H5playCfg.startTime)/1e3,ts:(b/1e3).toFixed(0),pds:c,pus:d,puc:H5playCfg.pause.count,ppos:parseInt(a.currentTime)};sendSvndLog(e)},sendSvndLog=function(a){var b="//beacon.sina.com.cn/l.gif?snvd&";for(var c in a)b+=c+"="+a[c]+"&";for(var c in snvdLog)b+=c+"="+snvdLog[c]+"&";b=b.substring(0,b.length-1);var d=new Image;d.src=b},timeSort=function(arr){var timeArr=[],maxTime=0,minTime=0,sumTime=0;if(arr.length){maxTime=Math.max.apply(null,arr);minTime=Math.min.apply(null,arr);sumTime=eval(arr.join("+"))}else{maxTime=0;minTime=0;sumTime=0}timeArr.push(sumTime);timeArr.push(minTime);timeArr.push(maxTime);return timeArr}}function playerInit(){window.$SINAPlayer.time.initPlayerStart=(new Date).getTime();window.$SINAPlayer.player.init=!1;/phone|pad|android/i.test(navigator.userAgent)?initH5Player():chechFlashInit()}function init(){argsinit();$playerCallJs();playerInit()}function singlePlay(){var a=players.length;if(typeof configs[0].isSingle=="undefined")return!1;var b=configs[0].isSingle;if(a!==1){for(var c=1;c-1||a.indexOf("trident")>-1}var a=!0,b=h();if(!b)return!1;var c=i();if(!c)return!0;var d=window.location.href,e=[],f=[];for(var g=e.length-1;g>=0;g--)if(String(d).indexOf(e[g])>=0)return!1;for(var g=f.length-1;g>=0;g--)if(String(d).search(f[g])>=0)return!1;return a}; window.$SINAPlayer.newH5Player=function(){(function(a){function c(d){if(b[d])return b[d].exports;var e=b[d]={i:d,l:!1,exports:{}};a[d].call(e.exports,e,e.exports,c);e.l=!0;return e.exports}var b={};c.m=a;c.c=b;c.d=function(a,b,d){c.o(a,b)||Object.defineProperty(a,b,{configurable:!1,enumerable:!0,get:d})};c.n=function(a){var b=a&&a.__esModule?function(){return a["default"]}:function(){return a};c.d(b,"a",b);return b};c.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};c.p="http://test888.video.sina.com.cn/dist/";return c(c.s=205)})([function(a,b,c){var d=c(5),e=c(17),f=c(24),g=c(19),h=c(36),i="prototype",j=function(a,b,c){var k=a&j.F,l=a&j.G,m=a&j.S,n=a&j.P,o=a&j.B,p=l?d:m?d[b]||(d[b]={}):(d[b]||{})[i],q=l?e:e[b]||(e[b]={}),r=q[i]||(q[i]={}),s,t,u,v;l&&(c=b);for(s in c){t=!k&&p&&p[s]!==undefined;u=(t?p:c)[s];v=o&&t?h(u,d):n&&typeof u=="function"?h(Function.call,u):u;p&&g(p,s,u,a&j.U);q[s]!=u&&f(q,s,v);n&&r[s]!=u&&(r[s]=u)}};d.core=e;j.F=1;j.G=2;j.S=4;j.P=8;j.B=16;j.W=32;j.U=64;j.R=128;a.exports=j},function(module,exports,__webpack_require__){(function(Promise){(function(a,b){module.exports=b(__webpack_require__(379),__webpack_require__(380))})(this,function(window$1,document){function createLogger(a){var b="info",c,d=function(){for(var d=arguments.length,e=new Array(d),f=0;f1?b-1:0),d=1;d0){var d=a.attributes;for(var e=d.length-1;e>=0;e--){var f=d[e].name,g=d[e].value;if(typeof a[f]=="boolean"||c.indexOf(","+f+",")!==-1)g=g!==null?!0:!1;b[f]=g}}return b}function getAttribute(a,b){return a.getAttribute(b)}function setAttribute(a,b,c){a.setAttribute(b,c)}function removeAttribute(a,b){a.removeAttribute(b)}function blockTextSelection(){document.body.focus();document.onselectstart=function(){return!1}}function unblockTextSelection(){document.onselectstart=function(){return!0}}function getBoundingClientRect(a){if(a&&a.getBoundingClientRect&&a.parentNode){var b=a.getBoundingClientRect(),c={};["bottom","height","left","right","top","width"].forEach(function(a){b[a]!==undefined&&(c[a]=b[a])});c.height||(c.height=parseFloat(computedStyle(a,"height")));c.width||(c.width=parseFloat(computedStyle(a,"width")));return c}}function findPosition(a){var b;a.getBoundingClientRect&&a.parentNode&&(b=a.getBoundingClientRect());if(!b)return{left:0,top:0};var c=document.documentElement,d=document.body,e=c.clientLeft||d.clientLeft||0,f=window$1.pageXOffset||d.scrollLeft,g=b.left+f-e,h=c.clientTop||d.clientTop||0,i=window$1.pageYOffset||d.scrollTop,j=b.top+i-h;return{left:Math.round(g),top:Math.round(j)}}function getPointerPosition(a,b){var c={},d=findPosition(a),e=a.offsetWidth,f=a.offsetHeight,g=d.top,h=d.left,i=b.pageY,j=b.pageX;if(b.changedTouches){j=b.changedTouches[0].pageX;i=b.changedTouches[0].pageY}c.y=Math.max(0,Math.min(1,(g-i+f)/f));c.x=Math.max(0,Math.min(1,(j-h)/e));return c}function isTextNode(a){return isObject(a)&&a.nodeType===3}function emptyEl(a){while(a.firstChild)a.removeChild(a.firstChild);return a}function normalizeContent(a){typeof a=="function"&&(a=a());return(Array.isArray(a)?a:[a]).map(function(a){typeof a=="function"&&(a=a());if(isEl(a)||isTextNode(a))return a;if(typeof a=="string"&&/\S/.test(a))return document.createTextNode(a)}).filter(function(a){return a})}function appendContent(a,b){normalizeContent(b).forEach(function(b){return a.appendChild(b)});return a}function insertContent(a,b){return appendContent(emptyEl(a),b)}function isSingleLeftClick(a){return a.button===undefined&&a.buttons===undefined?!0:a.button===0&&a.buttons===undefined?!0:a.type==="mouseup"&&a.button===0&&a.buttons===0?!0:a.button!==0||a.buttons!==1?!1:!0}function autoSetupTimeout(a,b){b&&(videojs=b);window$1.setTimeout(autoSetup,a)}function setWindowLoaded(){_windowLoaded=!0;window$1.removeEventListener("load",setWindowLoaded)}function newGUID(){return _guid++}function _cleanUpEvents(a,b){if(!DomData.has(a))return;var c=DomData.get(a);if(c.handlers[b].length===0){delete c.handlers[b];a.removeEventListener?a.removeEventListener(b,c.dispatcher,!1):a.detachEvent&&a.detachEvent("on"+b,c.dispatcher)}if(Object.getOwnPropertyNames(c.handlers).length<=0){delete c.handlers;delete c.dispatcher;delete c.disabled}Object.getOwnPropertyNames(c).length===0&&DomData["delete"](a)}function _handleMultipleEvents(a,b,c,d){c.forEach(function(c){a(b,c,d)})}function fixEvent(a){function b(){return!0}function c(){return!1}if(!a||!a.isPropagationStopped){var d=a||window$1.event;a={};for(var e in d)e!=="layerX"&&e!=="layerY"&&e!=="keyLocation"&&e!=="webkitMovementX"&&e!=="webkitMovementY"&&(e!=="returnValue"||!d.preventDefault)&&(a[e]=d[e]);a.target||(a.target=a.srcElement||document);a.relatedTarget||(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);a.preventDefault=function(){d.preventDefault&&d.preventDefault();a.returnValue=!1;d.returnValue=!1;a.defaultPrevented=!0};a.defaultPrevented=!1;a.stopPropagation=function(){d.stopPropagation&&d.stopPropagation();a.cancelBubble=!0;d.cancelBubble=!0;a.isPropagationStopped=b};a.isPropagationStopped=c;a.stopImmediatePropagation=function(){d.stopImmediatePropagation&&d.stopImmediatePropagation();a.isImmediatePropagationStopped=b;a.stopPropagation()};a.isImmediatePropagationStopped=c;if(a.clientX!==null&&a.clientX!==undefined){var f=document.documentElement,g=document.body;a.pageX=a.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0);a.pageY=a.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)}a.which=a.charCode||a.keyCode;a.button!==null&&a.button!==undefined&&(a.button=a.button&1?0:a.button&4?1:a.button&2?2:0)}return a}function on(a,b,c){if(Array.isArray(b))return _handleMultipleEvents(on,a,b,c);DomData.has(a)||DomData.set(a,{});var d=DomData.get(a);d.handlers||(d.handlers={});d.handlers[b]||(d.handlers[b]=[]);c.guid||(c.guid=newGUID());d.handlers[b].push(c);if(!d.dispatcher){d.disabled=!1;d.dispatcher=function(b,c){if(d.disabled)return;b=fixEvent(b);var e=d.handlers[b.type];if(e){var f=e.slice(0);for(var g=0,h=f.length;g-1&&(e={passive:!0});a.addEventListener(b,d.dispatcher,e)}else a.attachEvent&&a.attachEvent("on"+b,d.dispatcher)}function off(a,b,c){if(!DomData.has(a))return;var d=DomData.get(a);if(!d.handlers)return;if(Array.isArray(b))return _handleMultipleEvents(off,a,b,c);var e=function(b,c){d.handlers[c]=[];_cleanUpEvents(b,c)};if(b===undefined){for(var f in d.handlers)Object.prototype.hasOwnProperty.call(d.handlers||{},f)&&e(a,f);return}var g=d.handlers[b];if(!g)return;if(!c){e(a,b);return}if(c.guid)for(var h=0;hc)throw new Error("Failed to execute '"+a+"' on 'TimeRanges': The index provided ("+b+") is non-numeric or out of bounds (0-"+c+").")}function getRange(a,b,c,d){rangeCheck(a,d,c.length-1);return c[d][b]}function createTimeRangesObj(a){return a===undefined||a.length===0?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:a.length,start:getRange.bind(null,"start",0,a),end:getRange.bind(null,"end",1,a)}}function createTimeRanges(a,b){return Array.isArray(a)?createTimeRangesObj(a):a===undefined||b===undefined?createTimeRangesObj():createTimeRangesObj([[a,b]])}function bufferedPercent(a,b){var c=0,d,e;if(!b)return 0;if(!a||!a.length)a=createTimeRanges(0,0);for(var f=0;fb&&(e=b);c+=e-d}return c/b}function MediaError(a){if(a instanceof MediaError)return a;if(typeof a=="number")this.code=a;else if(typeof a=="string")this.message=a;else if(isObject(a)){typeof a.code=="number"&&(this.code=a.code);assign(this,a)}this.message||(this.message=MediaError.defaultMessages[this.code]||"")}function SafeParseTuple(a,b){var c,d=null;try{c=JSON.parse(a,b)}catch(e){d=e}return[d,c]}function isPromise(a){return a!==undefined&&a!==null&&typeof a.then=="function"}function silencePromise(a){isPromise(a)&&a.then(null,function(a){})}function createCommonjsModule(a,b){return b={exports:{}},a(b,b.exports),b.exports}function isFunction(a){var b=toString$1.call(a);return b==="[object Function]"||typeof a=="function"&&b!=="[object RegExp]"||a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt}function extend(){var a={};for(var b=0;b0&&(q=setTimeout(function(){if(j)return;j=!0;h.abort("timeout");var a=new Error("XMLHttpRequest timeout");a.code="ETIMEDOUT";f(a)},a.timeout));if(h.setRequestHeader)for(i in n)n.hasOwnProperty(i)&&h.setRequestHeader(i,n[i]);else if(a.headers&&!isEmpty(a.headers))throw new Error("Headers cannot be set on an XDomainRequest object");"responseType"in a&&(h.responseType=a.responseType);"beforeSend"in a&&typeof a.beforeSend=="function"&&a.beforeSend(h);h.send(m||null);return h}function getXml(a){if(a.responseType==="document")return a.responseXML;var b=a.responseXML&&a.responseXML.documentElement.nodeName==="parsererror";return a.responseType===""&&!b?a.responseXML:null}function noop(){}function ParsingError(a,b){this.name="ParsingError";this.code=a.code;this.message=b||a.message}function parseTimeStamp(a){function b(a,b,c,d){return(a|0)*3600+(b|0)*60+(c|0)+(d|0)/1e3}var c=a.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return c?c[3]?b(c[1],c[2],c[3].replace(":",""),c[4]):c[1]>59?b(c[1],c[2],0,c[4]):b(0,c[1],c[2],c[4]):null}function Settings(){this.values=_objCreate(null)}function parseOptions(a,b,c,d){var e=d?a.split(d):[a];for(var f in e){if(typeof e[f]!="string")continue;var g=e[f].split(c);if(g.length!==2)continue;var h=g[0],i=g[1];b(h,i)}}function parseCue(a,b,c){function e(){var b=parseTimeStamp(a);if(b===null)throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed timestamp: "+d);a=a.replace(/^[^\sa-zA-Z-]+/,"");return b}function f(a,b){var d=new Settings;parseOptions(a,function(a,b){switch(a){case"region":for(var e=c.length-1;e>=0;e--)if(c[e].id===b){d.set(a,c[e].region);break}break;case"vertical":d.alt(a,b,["rl","lr"]);break;case"line":var f=b.split(","),g=f[0];d.integer(a,g);d.percent(a,g)?d.set("snapToLines",!1):null;d.alt(a,g,["auto"]);f.length===2&&d.alt("lineAlign",f[1],["start","middle","end"]);break;case"position":f=b.split(",");d.percent(a,f[0]);f.length===2&&d.alt("positionAlign",f[1],["start","middle","end"]);break;case"size":d.percent(a,b);break;case"align":d.alt(a,b,["start","middle","end","left","right"])}},/:/,/\s/);b.region=d.get("region",null);b.vertical=d.get("vertical","");b.line=d.get("line","auto");b.lineAlign=d.get("lineAlign","start");b.snapToLines=d.get("snapToLines",!0);b.size=d.get("size",100);b.align=d.get("align","middle");b.position=d.get("position",{start:0,left:0,middle:50,end:100,right:100},b.align);b.positionAlign=d.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},b.align)}function g(){a=a.replace(/^\s+/,"")}var d=a;g();b.startTime=e();g();if(a.substr(0,3)!=="-->")throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+d);a=a.substr(3);g();b.endTime=e();g();f(a,b)}function parseContent(a,b){function c(){function a(a){b=b.substr(a.length);return a}if(!b)return null;var c=b.match(/^([^<]*)(<[^>]*>?)?/);return a(c[1]?c[1]:c[2])}function d(a){return ESCAPE[a]}function e(a){while(n=a.match(/&(amp|lt|gt|lrm|rlm|nbsp);/))a=a.replace(n[0],d);return a}function f(a,b){return!NEEDS_PARENT[b.localName]||NEEDS_PARENT[b.localName]===a.localName}function g(b,c){var d=TAG_NAME[b];if(!d)return null;var e=a.document.createElement(d);e.localName=d;var f=TAG_ANNOTATION[b];f&&c&&(e[f]=c.trim());return e}var h=a.document.createElement("div"),i=h,j,k=[];while((j=c())!==null){if(j[0]==="<"){if(j[1]==="/"){if(k.length&&k[k.length-1]===j.substr(2).replace(">","")){k.pop();i=i.parentNode}continue}var l=parseTimeStamp(j.substr(1,j.length-2)),m;if(l){m=a.document.createProcessingInstruction("timestamp",l);i.appendChild(m);continue}var n=j.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!n)continue;m=g(n[1],n[3]);if(!m)continue;if(!f(i,m))continue;n[2]&&(m.className=n[2].substr(1).replace("."," "));k.push(n[1]);i.appendChild(m);i=m;continue}i.appendChild(a.document.createTextNode(e(j)))}return h}function isStrongRTLChar(a){for(var b=0;b=c[0]&&a<=c[1])return!0}return!1}function determineBidi(a){function e(a,b){for(var c=b.childNodes.length-1;c>=0;c--)a.push(b.childNodes[c])}function f(a){if(!a||!a.length)return null;var b=a.pop(),c=b.textContent||b.innerText;if(c){var d=c.match(/^.*(\n|\r)/);if(d){a.length=0;return d[0]}return c}if(b.tagName==="ruby")return f(a);if(b.childNodes){e(a,b);return f(a)}}var b=[],c="",d;if(!a||!a.childNodes)return"ltr";e(b,a);while(c=f(b))for(var g=0;g=0&&a.line<=100))return a.line;if(!a.track||!a.track.textTrackList||!a.track.textTrackList.mediaElement)return-1;var b=a.track,c=b.textTrackList,d=0;for(var e=0;ei){e=new BoxPosition(a);g=i}a=new BoxPosition(f)}return e||f}var f=new BoxPosition(b),g=b.cue,h=computeLinePos(g),i=[];if(g.snapToLines){var j;switch(g.vertical){case"":i=["+y","-y"];j="height";break;case"rl":i=["+x","-x"];j="width";break;case"lr":i=["-x","+x"];j="width"}var k=f.lineHeight,l=k*Math.round(h),m=c[j]+k,n=i[0];if(Math.abs(l)>m){l=l<0?-1:1;l*=Math.ceil(m/k)*k}if(h<0){l+=g.vertical===""?c.height:c.width;i=i.reverse()}f.move(n,l)}else{var o=f.lineHeight/c.height*100;switch(g.lineAlign){case"middle":h-=o/2;break;case"end":h-=o}switch(g.vertical){case"":b.applyStyles({top:b.formatStyle(h,"%")});break;case"rl":b.applyStyles({left:b.formatStyle(h,"%")});break;case"lr":b.applyStyles({right:b.formatStyle(h,"%")})}i=["+y","-x","+x","-y"];f=new BoxPosition(b)}var p=e(f,i);b.move(p.toCSSCompatValues(c))}function WebVTT$1(){}function findDirectionSetting(a){if(typeof a!="string")return!1;var b=directionSetting[a.toLowerCase()];return b?a.toLowerCase():!1}function findAlignSetting(a){if(typeof a!="string")return!1;var b=alignSetting[a.toLowerCase()];return b?a.toLowerCase():!1}function VTTCue(a,b,c){this.hasBeenReset=!1;var d="",e=!1,f=a,g=b,h=c,i=null,j="",k=!0,l="auto",m="start",n=50,o="middle",p=50,q="middle";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return d},set:function(b){d=""+b}},pauseOnExit:{enumerable:!0,get:function(){return e},set:function(b){e=!!b}},startTime:{enumerable:!0,get:function(){return f},set:function(b){if(typeof b!="number")throw new TypeError("Start time must be set to a number.");f=b;this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return g},set:function(b){if(typeof b!="number")throw new TypeError("End time must be set to a number.");g=b;this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return h},set:function(b){h=""+b;this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return i},set:function(b){i=b;this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return j},set:function(b){var c=findDirectionSetting(b);if(c===!1)throw new SyntaxError("An invalid or illegal string was specified.");j=c;this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return k},set:function(b){k=!!b;this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return l},set:function(b){if(typeof b!="number"&&b!==autoKeyword)throw new SyntaxError("An invalid number or illegal string was specified.");l=b;this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return m},set:function(b){var c=findAlignSetting(b);if(!c)throw new SyntaxError("An invalid or illegal string was specified.");m=c;this.hasBeenReset=!0}},position:{enumerable:!0,get:function(){return n},set:function(b){if(b<0||b>100)throw new Error("Position must be between 0 and 100.");n=b;this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return o},set:function(b){var c=findAlignSetting(b);if(!c)throw new SyntaxError("An invalid or illegal string was specified.");o=c;this.hasBeenReset=!0}},size:{enumerable:!0,get:function(){return p},set:function(b){if(b<0||b>100)throw new Error("Size must be between 0 and 100.");p=b;this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return q},set:function(b){var c=findAlignSetting(b);if(!c)throw new SyntaxError("An invalid or illegal string was specified.");q=c;this.hasBeenReset=!0}}});this.displayState=undefined}function findScrollSetting(a){if(typeof a!="string")return!1;var b=scrollSetting[a.toLowerCase()];return b?a.toLowerCase():!1}function isValidPercentValue(a){return typeof a=="number"&&a>=0&&a<=100}function VTTRegion(){var a=100,b=3,c=0,d=100,e=0,f=100,g="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return a},set:function(c){if(!isValidPercentValue(c))throw new Error("Width must be between 0 and 100.");a=c}},lines:{enumerable:!0,get:function(){return b},set:function(c){if(typeof c!="number")throw new TypeError("Lines must be set to a number.");b=c}},regionAnchorY:{enumerable:!0,get:function(){return d},set:function(b){if(!isValidPercentValue(b))throw new Error("RegionAnchorX must be between 0 and 100.");d=b}},regionAnchorX:{enumerable:!0,get:function(){return c},set:function(b){if(!isValidPercentValue(b))throw new Error("RegionAnchorY must be between 0 and 100.");c=b}},viewportAnchorY:{enumerable:!0,get:function(){return f},set:function(b){if(!isValidPercentValue(b))throw new Error("ViewportAnchorY must be between 0 and 100.");f=b}},viewportAnchorX:{enumerable:!0,get:function(){return e},set:function(b){if(!isValidPercentValue(b))throw new Error("ViewportAnchorX must be between 0 and 100.");e=b}},scroll:{enumerable:!0,get:function(){return g},set:function(b){var c=findScrollSetting(b);if(c===!1)throw new SyntaxError("An invalid or illegal string was specified.");g=c}}})}function createTrackHelper(a,b,c,d,e){e===void 0&&(e={});var f=a.textTracks();e.kind=b;c&&(e.label=c);d&&(e.language=d);e.tech=a;var g=new ALL.text.TrackClass(e);f.addTrack(g);return g}function use(a,b){middlewares[a]=middlewares[a]||[];middlewares[a].push(b)}function setSource(a,b,c){a.setTimeout(function(){return setSourceHelper(b,middlewares[b.type],c,a)},1)}function setTech(a,b){a.forEach(function(a){return a.setTech&&a.setTech(b)})}function get(a,b,c){return a.reduceRight(middlewareIterator(c),b[c]())}function set(a,b,c,d){return b[c](a.reduce(middlewareIterator(c),d))}function mediate(a,b,c,d){d===void 0&&(d=null);var e="call"+toTitleCase(c),f=a.reduce(middlewareIterator(e),d),g=f===TERMINATOR,h=g?null:b[c](f);executeRight(a,c,h,g);return h}function middlewareIterator(a){return function(b,c){return b===TERMINATOR?TERMINATOR:c[a]?c[a](b):b}}function executeRight(a,b,c,d){for(var e=a.length-1;e>=0;e--){var f=a[e];f[b]&&f[b](d,c)}}function clearCacheForPlayer(a){middlewareInstances[a.id()]=null}function getOrCreateFactory(a,b){var c=middlewareInstances[a.id()],d=null;if(c===undefined||c===null){d=b(a);middlewareInstances[a.id()]=[[b,d]];return d}for(var e=0;e0)for(var f=0,g=e.length;f=c){b.apply(void 0,arguments);d=e}};return e},debounce=function(b,c,d,e){e===void 0&&(e=window$1);var f,g=function(){e.clearTimeout(f);f=null},h=function(){var g=this,h=arguments,i=function(){f=null;i=null;d||b.apply(g,h)};!f&&d&&b.apply(g,h);e.clearTimeout(f);f=e.setTimeout(i,c)};h.cancel=g;return h},EventTarget=function(){};EventTarget.prototype.allowedEvents_={};EventTarget.prototype.on=function(a,b){var c=this.addEventListener;this.addEventListener=function(){};on(this,a,b);this.addEventListener=c};EventTarget.prototype.addEventListener=EventTarget.prototype.on;EventTarget.prototype.off=function(a,b){off(this,a,b)};EventTarget.prototype.removeEventListener=EventTarget.prototype.off;EventTarget.prototype.one=function(a,b){var c=this.addEventListener;this.addEventListener=function(){};one(this,a,b);this.addEventListener=c};EventTarget.prototype.any=function(a,b){var c=this.addEventListener;this.addEventListener=function(){};any(this,a,b);this.addEventListener=c};EventTarget.prototype.trigger=function(a){var b=a.type||a;typeof a=="string"&&(a={type:b});a=fixEvent(a);this.allowedEvents_[b]&&this["on"+b]&&this["on"+b](a);trigger(this,a)};EventTarget.prototype.dispatchEvent=EventTarget.prototype.trigger;var EVENT_MAP;EventTarget.prototype.queueTrigger=function(a){var b=this;EVENT_MAP||(EVENT_MAP=new Map);var c=a.type||a,d=EVENT_MAP.get(this);if(!d){d=new Map;EVENT_MAP.set(this,d)}var e=d.get(c);d["delete"](c);window$1.clearTimeout(e);var f=window$1.setTimeout(function(){if(d.size===0){d=null;EVENT_MAP["delete"](b)}b.trigger(a)},0);d.set(c,f)};var isEvented=function(b){return b instanceof EventTarget||!!b.eventBusEl_&&["on","one","off","trigger"].every(function(a){return typeof b[a]=="function"})},addEventedCallback=function(b,c){if(isEvented(b))c();else{b.eventedCallbacks||(b.eventedCallbacks=[]);b.eventedCallbacks.push(c)}},isValidEventType=function(b){return typeof b=="string"&&/\S/.test(b)||Array.isArray(b)&&!!b.length},validateTarget=function(b){if(!b.nodeName&&!isEvented(b))throw new Error("Invalid target; must be a DOM node or evented object.")},validateEventType=function(b){if(!isValidEventType(b))throw new Error("Invalid event type; must be a non-empty string or array.")},validateListener=function(b){if(typeof b!="function")throw new Error("Invalid listener; must be a function.")},normalizeListenArgs=function(b,c){var d=c.length<3||c[0]===b||c[0]===b.eventBusEl_,e,f,g;if(d){e=b.eventBusEl_;c.length>=3&&c.shift();f=c[0];g=c[1]}else{e=c[0];f=c[1];g=c[2]}validateTarget(e);validateEventType(f);validateListener(g);g=bind(b,g);return{isTargetingSelf:d,target:e,type:f,listener:g}},listen=function(b,c,d,e){validateTarget(b);b.nodeName?Events[c](b,d,e):b[c](d,e)},EventedMixin={on:function(){var b=this;for(var c=arguments.length,d=new Array(c),e=0;e=0;b--)this.children_[b].dispose&&this.children_[b].dispose();this.children_=null;this.childIndex_=null;this.childNameIndex_=null;this.parentComponent_=null;if(this.el_){this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_);DomData.has(this.el_)&&DomData["delete"](this.el_);this.el_=null}this.player_=null};b.player=function(){return this.player_};b.options=function(b){if(!b)return this.options_;this.options_=mergeOptions(this.options_,b);return this.options_};b.el=function(){return this.el_};b.createEl=function(b,c,d){return createEl(b,c,d)};b.localize=function(b,c,d){d===void 0&&(d=b);var e=this.player_.language&&this.player_.language(),f=this.player_.languages&&this.player_.languages(),g=f&&f[e],h=e&&e.split("-")[0],i=f&&f[h],j=d;g&&g[b]?j=g[b]:i&&i[b]&&(j=i[b]);c&&(j=j.replace(/\{(\d+)\}/g,function(a,b){var d=c[b-1],e=d;typeof d=="undefined"&&(e=a);return e}));return j};b.contentEl=function(){return this.contentEl_||this.el_};b.id=function(){return this.id_};b.name=function(){return this.name_};b.children=function(){return this.children_};b.getChildById=function(b){return this.childIndex_[b]};b.getChild=function(b){if(!b)return;return this.childNameIndex_[b]};b.addChild=function(c,d,e){d===void 0&&(d={});e===void 0&&(e=this.children_.length);var f,g;if(typeof c=="string"){g=toTitleCase(c);var h=d.componentClass||g;d.name=g;var i=a.getComponent(h);if(!i)throw new Error("Component "+h+" does not exist");if(typeof i!="function")return null;f=new i(this.player_||this,d)}else f=c;f.parentComponent_&&f.parentComponent_.removeChild(f);this.children_.splice(e,0,f);f.parentComponent_=this;typeof f.id=="function"&&(this.childIndex_[f.id()]=f);g=g||f.name&&toTitleCase(f.name());if(g){this.childNameIndex_[g]=f;this.childNameIndex_[toLowerCase(g)]=f}if(typeof f.el=="function"&&f.el()){var j=this.contentEl().children,k=j[e]||null;this.contentEl().insertBefore(f.el(),k)}return f};b.removeChild=function(b){typeof b=="string"&&(b=this.getChild(b));if(!b||!this.children_)return;var c=!1;for(var d=this.children_.length-1;d>=0;d--)if(this.children_[d]===b){c=!0;this.children_.splice(d,1);break}if(!c)return;b.parentComponent_=null;this.childIndex_[b.id()]=null;this.childNameIndex_[toTitleCase(b.name())]=null;this.childNameIndex_[toLowerCase(b.name())]=null;var e=b.el();e&&e.parentNode===this.contentEl()&&this.contentEl().removeChild(b.el())};b.initChildren=function(){var c=this,d=this.options_.children;if(d){var e=this.options_,f=function(b){var d=b.name,f=b.opts;e[d]!==undefined&&(f=e[d]);if(f===!1)return;f===!0&&(f={});f.playerOptions=c.options_.playerOptions;var g=c.addChild(d,f);g&&(c[d]=g)},g,h=a.getComponent("Tech");Array.isArray(d)?g=d:g=Object.keys(d);g.concat(Object.keys(this.options_).filter(function(a){return!g.some(function(b){return typeof b=="string"?a===b:a===b.name})})).map(function(a){var b,e;if(typeof a=="string"){b=a;e=d[b]||c.options_[b]||{}}else{b=a.name;e=a}return{name:b,opts:e}}).filter(function(b){var c=a.getComponent(b.opts.componentClass||toTitleCase(b.name));return c&&!h.isTech(c)}).forEach(f)}};b.buildCSSClass=function(){return""};b.ready=function(b,c){c===void 0&&(c=!1);if(!b)return;if(!this.isReady_){this.readyQueue_=this.readyQueue_||[];this.readyQueue_.push(b);return}c?b.call(this):this.setTimeout(b,1)};b.triggerReady=function(){this.isReady_=!0;this.setTimeout(function(){var a=this.readyQueue_;this.readyQueue_=[];a&&a.length>0&&a.forEach(function(a){a.call(this)},this);this.trigger("ready")},1)};b.$=function(b,c){return $(b,c||this.contentEl())};b.$$=function(b,c){return $$(b,c||this.contentEl())};b.hasClass=function(b){return hasClass(this.el_,b)};b.addClass=function(b){addClass(this.el_,b)};b.removeClass=function(b){removeClass(this.el_,b)};b.toggleClass=function(b,c){toggleClass(this.el_,b,c)};b.show=function(){this.removeClass("vjs-hidden")};b.hide=function(){this.addClass("vjs-hidden")};b.lockShowing=function(){this.addClass("vjs-lock-showing")};b.unlockShowing=function(){this.removeClass("vjs-lock-showing")};b.getAttribute=function(b){return getAttribute(this.el_,b)};b.setAttribute=function(b,c){setAttribute(this.el_,b,c)};b.removeAttribute=function(b){removeAttribute(this.el_,b)};b.width=function(b,c){return this.dimension("width",b,c)};b.height=function(b,c){return this.dimension("height",b,c)};b.dimensions=function(b,c){this.width(b,!0);this.height(c)};b.dimension=function(b,c,d){if(c!==undefined){if(c===null||c!==c)c=0;(""+c).indexOf("%")!==-1||(""+c).indexOf("px")!==-1?this.el_.style[b]=c:c==="auto"?this.el_.style[b]="":this.el_.style[b]=c+"px";d||this.trigger("componentresize");return}if(!this.el_)return 0;var e=this.el_.style[b],f=e.indexOf("px");return f!==-1?parseInt(e.slice(0,f),10):parseInt(this.el_["offset"+toTitleCase(b)],10)};b.currentDimension=function(b){var c=0;if(b!=="width"&&b!=="height")throw new Error("currentDimension only accepts width or height value");c=computedStyle(this.el_,b);c=parseFloat(c);if(c===0||isNaN(c)){var d="offset"+toTitleCase(b);c=this.el_[d]}return c};b.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}};b.currentWidth=function(){return this.currentDimension("width")};b.currentHeight=function(){return this.currentDimension("height")};b.focus=function(){this.el_.focus()};b.blur=function(){this.el_.blur()};b.handleKeyDown=function(b){if(this.player_){b.stopPropagation();this.player_.handleKeyDown(b)}};b.handleKeyPress=function(b){this.handleKeyDown(b)};b.emitTapEvents=function(){var b=0,c=null,d=10,e=200,f;this.on("touchstart",function(a){if(a.touches.length===1){c={pageX:a.touches[0].pageX,pageY:a.touches[0].pageY};b=window$1.performance.now();f=!0}});this.on("touchmove",function(a){if(a.touches.length>1)f=!1;else if(c){var b=a.touches[0].pageX-c.pageX,e=a.touches[0].pageY-c.pageY,g=Math.sqrt(b*b+e*e);g>d&&(f=!1)}});var g=function(){f=!1};this.on("touchleave",g);this.on("touchcancel",g);this.on("touchend",function(a){c=null;if(f===!0){var d=window$1.performance.now()-b;if(d0&&k.map(function(a){return j[a]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}a.components_[c]=d;a.components_[toLowerCase(c)]=d;return d};a.getComponent=function(c){if(!c||!a.components_)return;return a.components_[c]};return a}();Component.prototype.supportsRaf_=typeof window$1.requestAnimationFrame=="function"&&typeof window$1.cancelAnimationFrame=="function";Component.registerComponent("Component",Component);var USER_AGENT=window$1.navigator&&window$1.navigator.userAgent||"",webkitVersionMap=/AppleWebKit\/([\d.]+)/i.exec(USER_AGENT),appleWebkitVersion=webkitVersionMap?parseFloat(webkitVersionMap.pop()):null,IS_IPAD=/iPad/i.test(USER_AGENT),IS_IPHONE=/iPhone/i.test(USER_AGENT)&&!IS_IPAD,IS_IPOD=/iPod/i.test(USER_AGENT),IS_IOS=IS_IPHONE||IS_IPAD||IS_IPOD,IOS_VERSION=function(){var a=USER_AGENT.match(/OS (\d+)_/i);return a&&a[1]?a[1]:null}(),IS_ANDROID=/Android/i.test(USER_AGENT),ANDROID_VERSION=function(){var a=USER_AGENT.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!a)return null;var b=a[1]&&parseFloat(a[1]),c=a[2]&&parseFloat(a[2]);return b&&c?parseFloat(a[1]+"."+a[2]):b?b:null}(),IS_NATIVE_ANDROID=IS_ANDROID&&ANDROID_VERSION<5&&appleWebkitVersion<537,IS_FIREFOX=/Firefox/i.test(USER_AGENT),IS_EDGE=/Edge/i.test(USER_AGENT),IS_CHROME=!IS_EDGE&&(/Chrome/i.test(USER_AGENT)||/CriOS/i.test(USER_AGENT)),CHROME_VERSION=function(){var a=USER_AGENT.match(/(Chrome|CriOS)\/(\d+)/);return a&&a[2]?parseFloat(a[2]):null}(),IE_VERSION=function(){var a=/MSIE\s(\d+)\.\d/.exec(USER_AGENT),b=a&&parseFloat(a[1]);!b&&/Trident\/7.0/i.test(USER_AGENT)&&/rv:11.0/.test(USER_AGENT)&&(b=11);return b}(),IS_SAFARI=/Safari/i.test(USER_AGENT)&&!IS_CHROME&&!IS_ANDROID&&!IS_EDGE,IS_ANY_SAFARI=(IS_SAFARI||IS_IOS)&&!IS_CHROME,IS_WINDOWS=/Windows/i.test(USER_AGENT),TOUCH_ENABLED=isReal()&&("ontouchstart"in window$1||window$1.navigator.maxTouchPoints||window$1.DocumentTouch&&window$1.document instanceof window$1.DocumentTouch),browser=Object.freeze({IS_IPAD:IS_IPAD,IS_IPHONE:IS_IPHONE,IS_IPOD:IS_IPOD,IS_IOS:IS_IOS,IOS_VERSION:IOS_VERSION,IS_ANDROID:IS_ANDROID,ANDROID_VERSION:ANDROID_VERSION,IS_NATIVE_ANDROID:IS_NATIVE_ANDROID,IS_FIREFOX:IS_FIREFOX,IS_EDGE:IS_EDGE,IS_CHROME:IS_CHROME,CHROME_VERSION:CHROME_VERSION,IE_VERSION:IE_VERSION,IS_SAFARI:IS_SAFARI,IS_ANY_SAFARI:IS_ANY_SAFARI,IS_WINDOWS:IS_WINDOWS,TOUCH_ENABLED:TOUCH_ENABLED}),FullscreenApi={prefixed:!0},apiMap=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],specApi=apiMap[0],browserApi;for(var i=0;i=0;d--)if(b[d].enabled){disableOthers(b,b[d]);break}c=a.call(this,b)||this;c.changing_=!1;return c}_inheritsLoose(b,a);var c=b.prototype;c.addTrack=function(c){var d=this;c.enabled&&disableOthers(this,c);a.prototype.addTrack.call(this,c);if(!c.addEventListener)return;c.enabledChange_=function(){if(d.changing_)return;d.changing_=!0;disableOthers(d,c);d.changing_=!1;d.trigger("change")};c.addEventListener("enabledchange",c.enabledChange_)};c.removeTrack=function(c){a.prototype.removeTrack.call(this,c);if(c.removeEventListener&&c.enabledChange_){c.removeEventListener("enabledchange",c.enabledChange_);c.enabledChange_=null}};return b}(TrackList),disableOthers$1=function(b,c){for(var d=0;d=0;d--)if(b[d].selected){disableOthers$1(b,b[d]);break}c=a.call(this,b)||this;c.changing_=!1;Object.defineProperty(_assertThisInitialized(c),"selectedIndex",{get:function(){for(var b=0;b';d=f.firstChild;f.setAttribute("style","display:none; position:absolute;");document.body.appendChild(f)}var g={};for(var h=0;hx';b=c.firstChild.href}return b},getFileExtension=function(b){if(typeof b=="string"){var c=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/,d=c.exec(b);if(d)return d.pop().toLowerCase()}return""},isCrossOrigin=function(b){var c=window$1.location,d=parseUrl(b),e=d.protocol===":"?c.protocol:d.protocol,f=e+d.host!==c.protocol+c.host;return f},Url=Object.freeze({parseUrl:parseUrl,getAbsoluteURL:getAbsoluteURL,getFileExtension:getFileExtension,isCrossOrigin:isCrossOrigin}),isFunction_1=isFunction,toString$1=Object.prototype.toString,ERROR_MESSAGE="Function.prototype.bind called on incompatible ",slice=Array.prototype.slice,toStr=Object.prototype.toString,funcType="[object Function]",implementation=function(b){var c=this;if(typeof c!="function"||toStr.call(c)!==funcType)throw new TypeError(ERROR_MESSAGE+c);var d=slice.call(arguments,1),e,f=function(){if(this instanceof e){var f=c.apply(this,d.concat(slice.call(arguments)));return Object(f)===f?f:this}return c.apply(b,d.concat(slice.call(arguments)))},g=Math.max(0,c.length-d.length),h=[];for(var i=0;i=0&&toStr$1.call(b.callee)==="[object Function]");return d},keysShim;if(!Object.keys){var has=Object.prototype.hasOwnProperty,toStr$2=Object.prototype.toString,isArgs=isArguments,isEnumerable=Object.prototype.propertyIsEnumerable,hasDontEnumBug=!isEnumerable.call({toString:null},"toString"),hasProtoEnumBug=isEnumerable.call(function(){},"prototype"),dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],equalsConstructorPrototype=function(b){var c=b.constructor;return c&&c.prototype===b},excludedKeys={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},hasAutomationEqualityBug=function(){for(var a in window)try{if(!excludedKeys["$"+a]&&has.call(window,a)&&window[a]!==null&&typeof window[a]=="object")try{equalsConstructorPrototype(window[a])}catch(b){return!0}}catch(b){return!0}return!1}(),equalsConstructorPrototypeIfNotBuggy=function(b){if(!hasAutomationEqualityBug)return equalsConstructorPrototype(b);try{return equalsConstructorPrototype(b)}catch(c){return!1}};keysShim=function(b){var c=b!==null&&typeof b=="object",d=toStr$2.call(b)==="[object Function]",e=isArgs(b),f=c&&toStr$2.call(b)==="[object String]",g=[];if(!c&&!d&&!e)throw new TypeError("Object.keys called on a non-object");var h=hasProtoEnumBug&&d;if(f&&b.length>0&&!has.call(b,0))for(var i=0;i0)for(var j=0;j2?arguments[2]:{},e=objectKeys(c);hasSymbols&&(e=concat.call(e,Object.getOwnPropertySymbols(c)));for(var f=0;f1&&typeof c!="boolean")throw new TypeError('"allowMissing" argument must be a boolean');var d="$ "+b;if(d in INTRINSICS){if(typeof INTRINSICS[d]=="undefined"&&!c)throw new TypeError("intrinsic "+b+" exists, but is not available. Please file an issue!");return INTRINSICS[d]}throw new SyntaxError("intrinsic "+b+" does not exist!")},src=functionBind.call(Function.call,Object.prototype.hasOwnProperty),$TypeError=GetIntrinsic("%TypeError%"),$SyntaxError=GetIntrinsic("%SyntaxError%"),predicates={"Property Descriptor":function(b,c){if(b.Type(c)!=="Object")return!1;var d={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var e in c)if(src(c,e)&&!d[e])return!1;var f=src(c,"[[Value]]"),g=src(c,"[[Get]]")||src(c,"[[Set]]");if(f&&g)throw new $TypeError("Property Descriptors may not be both accessor and data descriptors");return!0}},assertRecord=function(b,c,d,e){var f=predicates[c];if(typeof f!="function")throw new $SyntaxError("unknown record type: "+c);if(!f(b,e))throw new $TypeError(d+" must be a "+c);console.log(f(b,e),e)},_isNaN=Number.isNaN||function(b){return b!==b},$isNaN=Number.isNaN||function(a){return a!==a},_isFinite=Number.isFinite||function(a){return typeof a=="number"&&!$isNaN(a)&&a!==Infinity&&a!==-Infinity},sign=function(b){return b>=0?1:-1},mod=function(b,c){var d=b%c;return Math.floor(d>=0?d:d+c)},fnToStr=Function.prototype.toString,constructorRegex=/^\s*class\b/,isES6ClassFn=function(b){try{var c=fnToStr.call(b);return constructorRegex.test(c)}catch(d){return!1}},tryFunctionObject=function(b){try{if(isES6ClassFn(b))return!1;fnToStr.call(b);return!0}catch(c){return!1}},toStr$4=Object.prototype.toString,fnClass="[object Function]",genClass="[object GeneratorFunction]",hasToStringTag=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",isCallable=function(b){if(!b)return!1;if(typeof b!="function"&&typeof b!="object")return!1;if(typeof b=="function"&&!b.prototype)return!0;if(hasToStringTag)return tryFunctionObject(b);if(isES6ClassFn(b))return!1;var c=toStr$4.call(b);return c===fnClass||c===genClass},isPrimitive=function(b){return b===null||typeof b!="function"&&typeof b!="object"},toStr$5=Object.prototype.toString,ES5internalSlots={"[[DefaultValue]]":function(b){var c;arguments.length>1?c=arguments[1]:c=toStr$5.call(b)==="[object Date]"?String:Number;if(c===String||c===Number){var d=c===String?["toString","valueOf"]:["valueOf","toString"],e,f;for(f=0;f1?ES5internalSlots["[[DefaultValue]]"](b,arguments[1]):ES5internalSlots["[[DefaultValue]]"](b)},$Object=GetIntrinsic("%Object%"),$TypeError$1=GetIntrinsic("%TypeError%"),$String=GetIntrinsic("%String%"),ES5={ToPrimitive:es5,ToBoolean:function(b){return!!b},ToNumber:function(b){return+b},ToInteger:function(b){var c=this.ToNumber(b);return _isNaN(c)?0:c===0||!_isFinite(c)?c:sign(c)*Math.floor(Math.abs(c))},ToInt32:function(b){return this.ToNumber(b)>>0},ToUint32:function(b){return this.ToNumber(b)>>>0},ToUint16:function(b){var c=this.ToNumber(b);if(_isNaN(c)||c===0||!_isFinite(c))return 0;var d=sign(c)*Math.floor(Math.abs(c));return mod(d,65536)},ToString:function(b){return $String(b)},ToObject:function(b){this.CheckObjectCoercible(b);return $Object(b)},CheckObjectCoercible:function(b,c){if(b==null)throw new $TypeError$1(c||"Cannot call method on "+b);return b},IsCallable:isCallable,SameValue:function(b,c){return b===c?b===0?1/b===1/c:!0:_isNaN(b)&&_isNaN(c)},Type:function(b){if(b===null)return"Null";if(typeof b=="undefined")return"Undefined";if(typeof b=="function"||typeof b=="object")return"Object";if(typeof b=="number")return"Number";if(typeof b=="boolean")return"Boolean";if(typeof b=="string")return"String"},IsPropertyDescriptor:function(b){if(this.Type(b)!=="Object")return!1;var c={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var d in b)if(src(b,d)&&!c[d])return!1;var e=src(b,"[[Value]]"),f=src(b,"[[Get]]")||src(b,"[[Set]]");if(e&&f)throw new $TypeError$1("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(b){if(typeof b=="undefined")return!1;assertRecord(this,"Property Descriptor","Desc",b);return!src(b,"[[Get]]")&&!src(b,"[[Set]]")?!1:!0},IsDataDescriptor:function(b){if(typeof b=="undefined")return!1;assertRecord(this,"Property Descriptor","Desc",b);return!src(b,"[[Value]]")&&!src(b,"[[Writable]]")?!1:!0},IsGenericDescriptor:function(b){if(typeof b=="undefined")return!1;assertRecord(this,"Property Descriptor","Desc",b);return!this.IsAccessorDescriptor(b)&&!this.IsDataDescriptor(b)?!0:!1},FromPropertyDescriptor:function(b){if(typeof b=="undefined")return b;assertRecord(this,"Property Descriptor","Desc",b);if(this.IsDataDescriptor(b))return{value:b["[[Value]]"],writable:!!b["[[Writable]]"],enumerable:!!b["[[Enumerable]]"],configurable:!!b["[[Configurable]]"]};if(this.IsAccessorDescriptor(b))return{get:b["[[Get]]"],set:b["[[Set]]"],enumerable:!!b["[[Enumerable]]"],configurable:!!b["[[Configurable]]"]};throw new $TypeError$1("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(b){if(this.Type(b)!=="Object")throw new $TypeError$1("ToPropertyDescriptor requires an object");var c={};src(b,"enumerable")&&(c["[[Enumerable]]"]=this.ToBoolean(b.enumerable));src(b,"configurable")&&(c["[[Configurable]]"]=this.ToBoolean(b.configurable));src(b,"value")&&(c["[[Value]]"]=b.value);src(b,"writable")&&(c["[[Writable]]"]=this.ToBoolean(b.writable));if(src(b,"get")){var d=b.get;if(typeof d!="undefined"&&!this.IsCallable(d))throw new TypeError("getter must be a function");c["[[Get]]"]=d}if(src(b,"set")){var e=b.set;if(typeof e!="undefined"&&!this.IsCallable(e))throw new $TypeError$1("setter must be a function");c["[[Set]]"]=e}if((src(c,"[[Get]]")||src(c,"[[Set]]"))&&(src(c,"[[Value]]")||src(c,"[[Writable]]")))throw new $TypeError$1("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return c}},es5$1=ES5,replace=functionBind.call(Function.call,String.prototype.replace),leftWhitespace=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,rightWhitespace=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/,implementation$2=function(){var b=es5$1.ToString(es5$1.CheckObjectCoercible(this));return replace(replace(b,leftWhitespace,""),rightWhitespace,"")},zeroWidthSpace="​",polyfill=function(){return String.prototype.trim&&zeroWidthSpace.trim()===zeroWidthSpace?String.prototype.trim:implementation$2},shim=function(){var b=polyfill();defineProperties_1(String.prototype,{trim:b},{trim:function(){return String.prototype.trim!==b}});return b},boundTrim=functionBind.call(Function.call,polyfill());defineProperties_1(boundTrim,{getPolyfill:polyfill,implementation:implementation$2,shim:shim});var string_prototype_trim=boundTrim,toStr$6=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty,forEachArray=function(b,c,d){for(var e=0,f=b.length;e=3&&(e=d);toStr$6.call(b)==="[object Array]"?forEachArray(b,c,e):typeof b=="string"?forEachString(b,c,e):forEachObject(b,c,e)},forEach_1=forEach,isArray=function(b){return Object.prototype.toString.call(b)==="[object Array]"},parseHeaders=function(b){if(!b)return{};var c={};forEach_1(string_prototype_trim(b).split("\n"),function(a){var b=a.indexOf(":"),d=string_prototype_trim(a.slice(0,b)).toLowerCase(),e=string_prototype_trim(a.slice(b+1));typeof c[d]=="undefined"?c[d]=e:isArray(c[d])?c[d].push(e):c[d]=[c[d],e]});return c},immutable=extend,hasOwnProperty$1=Object.prototype.hasOwnProperty,xhr=createXHR;createXHR.XMLHttpRequest=window$1.XMLHttpRequest||noop;createXHR.XDomainRequest="withCredentials"in new createXHR.XMLHttpRequest?createXHR.XMLHttpRequest:window$1.XDomainRequest;forEachArray$1(["get","put","post","patch","head","delete"],function(a){createXHR[a==="delete"?"del":a]=function(b,c,d){c=initParams(b,c,d);c.method=a.toUpperCase();return _createXHR(c)}});var parseCues=function(b,c){var d=new window$1.WebVTT.Parser(window$1,window$1.vttjs,window$1.WebVTT.StringDecoder()),e=[];d.oncue=function(a){c.addCue(a)};d.onparsingerror=function(a){e.push(a)};d.onflush=function(){c.trigger({type:"loadeddata",target:c})};d.parse(b);if(e.length>0){window$1.console&&window$1.console.groupCollapsed&&window$1.console.groupCollapsed("Text Track parsing errors for "+c.src);e.forEach(function(a){return log.error(a)});window$1.console&&window$1.console.groupEnd&&window$1.console.groupEnd()}d.flush()},loadTrack=function(b,c){var d={uri:b},e=isCrossOrigin(b);e&&(d.cors=e);xhr(d,bind(this,function(a,b,d){if(a)return log.error(a,b);c.loaded_=!0;typeof window$1.WebVTT!="function"?c.tech_&&c.tech_.any(["vttjsloaded","vttjserror"],function(a){if(a.type==="vttjserror"){log.error("vttjs failed to load, stopping trying to process "+c.src);return}return parseCues(d,c)}):parseCues(d,c)}))},TextTrack=function(a){function b(b){var c;b===void 0&&(b={});if(!b.tech)throw new Error("A tech was not provided.");var d=mergeOptions(b,{kind:TextTrackKind[b.kind]||"subtitles",language:b.language||b.srclang||""}),e=TextTrackMode[d.mode]||"disabled",f=d["default"];if(d.kind==="metadata"||d.kind==="chapters")e="hidden";c=a.call(this,d)||this;c.tech_=d.tech;c.cues_=[];c.activeCues_=[];var g=new TextTrackCueList(c.cues_),h=new TextTrackCueList(c.activeCues_),i=!1,j=bind(_assertThisInitialized(c),function(){this.activeCues=this.activeCues;if(i){this.trigger("cuechange");i=!1}});e!=="disabled"&&c.tech_.ready(function(){c.tech_.on("timeupdate",j)},!0);Object.defineProperties(_assertThisInitialized(c),{"default":{get:function(){return f},set:function(){}},mode:{get:function(){return e},set:function(b){var c=this;if(!TextTrackMode[b])return;e=b;e!=="disabled"?this.tech_.ready(function(){c.tech_.on("timeupdate",j)},!0):this.tech_.off("timeupdate",j);this.trigger("modechange")}},cues:{get:function(){return this.loaded_?g:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(this.cues.length===0)return h;var b=this.tech_.currentTime(),c=[];for(var d=0,e=this.cues.length;d=b?c.push(f):f.startTime===f.endTime&&f.startTime<=b&&f.startTime+.5>=b&&c.push(f)}i=!1;if(c.length!==this.activeCues_.length)i=!0;else for(var g=0;g=0&&c<=100){this.set(b,c);return!0}}return!1}};var ESCAPE={"&":"&","<":"<",">":">","‎":"‎","‏":"‏"," ":" "},TAG_NAME={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},TAG_ANNOTATION={v:"title",lang:"lang"},NEEDS_PARENT={rt:"ruby"},strongRTLRanges=[[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]];StyleBox.prototype.applyStyles=function(a,b){b=b||this.div;for(var c in a)a.hasOwnProperty(c)&&(b.style[c]=a[c])};StyleBox.prototype.formatStyle=function(a,b){return a===0?0:a+b};CueStyleBox.prototype=_objCreate(StyleBox.prototype);CueStyleBox.prototype.constructor=CueStyleBox;BoxPosition.prototype.move=function(a,b){b=b!==undefined?b:this.lineHeight;switch(a){case"+x":this.left+=b;this.right+=b;break;case"-x":this.left-=b;this.right-=b;break;case"+y":this.top+=b;this.bottom+=b;break;case"-y":this.top-=b;this.bottom-=b}};BoxPosition.prototype.overlaps=function(a){return this.lefta.left&&this.topa.top};BoxPosition.prototype.overlapsAny=function(a){for(var b=0;b=a.top&&this.bottom<=a.bottom&&this.left>=a.left&&this.right<=a.right};BoxPosition.prototype.overlapsOppositeAxis=function(a,b){switch(b){case"+x":return this.lefta.right;case"+y":return this.topa.bottom}};BoxPosition.prototype.intersectPercentage=function(a){var b=Math.max(0,Math.min(this.right,a.right)-Math.max(this.left,a.left)),c=Math.max(0,Math.min(this.bottom,a.bottom)-Math.max(this.top,a.top)),d=b*c;return d/(this.height*this.width)};BoxPosition.prototype.toCSSCompatValues=function(a){return{top:this.top-a.top,bottom:a.bottom-this.bottom,left:this.left-a.left,right:a.right-this.right,height:this.height,width:this.width}};BoxPosition.getSimpleBoxPosition=function(a){var b=a.div?a.div.offsetHeight:a.tagName?a.offsetHeight:0,c=a.div?a.div.offsetWidth:a.tagName?a.offsetWidth:0,d=a.div?a.div.offsetTop:a.tagName?a.offsetTop:0;a=a.div?a.div.getBoundingClientRect():a.tagName?a.getBoundingClientRect():a;var e={left:a.left,right:a.right,top:a.top||d,height:a.height||b,bottom:a.bottom||d+(a.height||b),width:a.width||c};return e};WebVTT$1.StringDecoder=function(){return{decode:function(b){if(!b)return"";if(typeof b!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(b))}}};WebVTT$1.convertCueToDOMTree=function(a,b){return!a||!b?null:parseContent(a,b)};var FONT_SIZE_PERCENT=.05,FONT_STYLE="sans-serif",CUE_BACKGROUND_PADDING="1.5%";WebVTT$1.processCues=function(a,b,c){function e(a){for(var b=0;b")===-1){c.cue.id=h;continue};case"CUE":try{parseCue(h,c.cue,c.regionList)}catch(k){c.reportOrThrowError(k);c.cue=null;c.state="BADCUE";continue}c.state="CUETEXT";continue;case"CUETEXT":var l=h.indexOf("-->")!==-1;if(!h||l&&(j=!0)){c.oncue&&c.oncue(c.cue);c.cue=null;c.state="ID";continue}c.cue.text&&(c.cue.text+="\n");c.cue.text+=h;continue;case"BADCUE":h||(c.state="ID");continue}}}catch(k){c.reportOrThrowError(k);c.state==="CUETEXT"&&c.cue&&c.oncue&&c.oncue(c.cue);c.cue=null;c.state=c.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var b=this;try{b.buffer+=b.decoder.decode();if(b.cue||b.state==="HEADER"){b.buffer+="\n\n";b.parse()}if(b.state==="INITIAL")throw new ParsingError(ParsingError.Errors.BadSignature)}catch(c){b.reportOrThrowError(c)}b.onflush&&b.onflush();return this}};var vtt=WebVTT$1,autoKeyword="auto",directionSetting={"":1,lr:1,rl:1},alignSetting={start:1,middle:1,end:1,left:1,right:1};VTTCue.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var vttcue=VTTCue,scrollSetting={"":!0,up:!0},vttregion=VTTRegion,browserIndex=createCommonjsModule(function(a){var b=a.exports={WebVTT:vtt,VTTCue:vttcue,VTTRegion:vttregion};window$1.vttjs=b;window$1.WebVTT=b.WebVTT;var c=b.VTTCue,d=b.VTTRegion,e=window$1.VTTCue,f=window$1.VTTRegion;b.shim=function(){window$1.VTTCue=c;window$1.VTTRegion=d};b.restore=function(){window$1.VTTCue=e;window$1.VTTRegion=f};window$1.VTTCue||b.shim()}),browserIndex_1=browserIndex.WebVTT,browserIndex_2=browserIndex.VTTCue,browserIndex_3=browserIndex.VTTRegion,Tech=function(a){function b(b,c){var d;b===void 0&&(b={});c===void 0&&(c=function(){});b.reportTouchActivity=!1;d=a.call(this,null,b,c)||this;d.hasStarted_=!1;d.on("playing",function(){this.hasStarted_=!0});d.on("loadstart",function(){this.hasStarted_=!1});ALL.names.forEach(function(a){var c=ALL[a];b&&b[c.getterName]&&(d[c.privateName]=b[c.getterName])});d.featuresProgressEvents||d.manualProgressOn();d.featuresTimeupdateEvents||d.manualTimeUpdatesOn();["Text","Audio","Video"].forEach(function(a){b["native"+a+"Tracks"]===!1&&(d["featuresNative"+a+"Tracks"]=!1)});if(b.nativeCaptions===!1||b.nativeTextTracks===!1)d.featuresNativeTextTracks=!1;else if(b.nativeCaptions===!0||b.nativeTextTracks===!0)d.featuresNativeTextTracks=!0;d.featuresNativeTextTracks||d.emulateTextTracks();d.autoRemoteTextTracks_=new ALL.text.ListClass;d.initTrackListeners();b.nativeControlsForTouch||d.emitTapEvents();d.constructor&&(d.name_=d.constructor.name||"Unknown Tech");return d}_inheritsLoose(b,a);var c=b.prototype;c.triggerSourceset=function(b){var c=this;this.isReady_||this.one("ready",function(){return c.setTimeout(function(){return c.triggerSourceset(b)},1)});this.trigger({src:b,type:"sourceset"})};c.manualProgressOn=function(){this.on("durationchange",this.onDurationChange);this.manualProgress=!0;this.one("ready",this.trackProgress)};c.manualProgressOff=function(){this.manualProgress=!1;this.stopTrackingProgress();this.off("durationchange",this.onDurationChange)};c.trackProgress=function(b){this.stopTrackingProgress();this.progressInterval=this.setInterval(bind(this,function(){var a=this.bufferedPercent();this.bufferedPercent_!==a&&this.trigger("progress");this.bufferedPercent_=a;a===1&&this.stopTrackingProgress()}),500)};c.onDurationChange=function(b){this.duration_=this.duration()};c.buffered=function(){return createTimeRanges(0,0)};c.bufferedPercent=function(){return bufferedPercent(this.buffered(),this.duration_)};c.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)};c.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0;this.on("play",this.trackCurrentTime);this.on("pause",this.stopTrackingCurrentTime)};c.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1;this.stopTrackingCurrentTime();this.off("play",this.trackCurrentTime);this.off("pause",this.stopTrackingCurrentTime)};c.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime();this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)};c.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval);this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})};c.dispose=function(){this.clearTracks(NORMAL.names);this.manualProgress&&this.manualProgressOff();this.manualTimeUpdates&&this.manualTimeUpdatesOff();a.prototype.dispose.call(this)};c.clearTracks=function(b){var c=this;b=[].concat(b);b.forEach(function(a){var b=c[a+"Tracks"]()||[],d=b.length;while(d--){var e=b[d];a==="text"&&c.removeRemoteTextTrack(e);b.removeTrack(e)}})};c.cleanupAutoTextTracks=function(){var b=this.autoRemoteTextTracks_||[],c=b.length;while(c--){var d=b[c];this.removeRemoteTextTrack(d)}};c.reset=function(){};c.error=function(b){if(b!==undefined){this.error_=new MediaError(b);this.trigger("error")}return this.error_};c.played=function(){return this.hasStarted_?createTimeRanges(0,0):createTimeRanges()};c.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})};c.initTrackListeners=function(){var b=this;NORMAL.names.forEach(function(a){var c=NORMAL[a],d=function(){b.trigger(a+"trackchange")},e=b[c.getterName]();e.addEventListener("removetrack",d);e.addEventListener("addtrack",d);b.on("dispose",function(){e.removeEventListener("removetrack",d);e.removeEventListener("addtrack",d)})})};c.addWebVttScript_=function(){var b=this;if(window$1.WebVTT)return;if(document.body.contains(this.el())){if(!this.options_["vtt.js"]&&isPlain(browserIndex)&&Object.keys(browserIndex).length>0){this.trigger("vttjsloaded");return}var c=document.createElement("script");c.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js";c.onload=function(){b.trigger("vttjsloaded")};c.onerror=function(){b.trigger("vttjserror")};this.on("dispose",function(){c.onload=null;c.onerror=null});window$1.WebVTT=!0;this.el().parentNode.appendChild(c)}else this.ready(this.addWebVttScript_)};c.emulateTextTracks=function(){var b=this,c=this.textTracks(),d=this.remoteTextTracks(),e=function(b){return c.addTrack(b.track)},f=function(b){return c.removeTrack(b.track)};d.on("addtrack",e);d.on("removetrack",f);this.addWebVttScript_();var g=function(){return b.trigger("texttrackchange")},h=function(){g();for(var b=0;b