!function(t,e){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define(e):t.videojs=e()}(this,function(){functiont(t,e){returne={exports:{}},t(e,e.exports),e.exports}functione(t,e){qe(t).forEach(function(r){returne(t[r],r)})}functionr(t,e){varr=arguments.length>2&&void0!==arguments[2]?arguments[2]:0;returnqe(t).reduce(function(r,n){returne(r,t[n],n)},r)}functionn(t){for(varr=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];returnObject.assign?Object.assign.apply(Object,[t].concat(n)):(n.forEach(function(r){r&&e(r,function(e,r){t[r]=e})}),t)}functioni(t){return!!t&&"object"===(void0===t?"undefined":He(t))}functiono(t){returni(t)&&"[object Object]"===Xe.call(t)&&t.constructor===Object}functions(t){vare="info",r=void0,n=functiont(){for(varn=t.stringify||Ie&&Ie<11,i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];r("log",e,o,n)};returnr=$e(t,n),n.createLogger=function(e){returns(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"==typeoft){if(!n.levels.hasOwnProperty(t))thrownewError('"'+t+'" in not a valid log level');e=t}returne},n.history=function(){returnKe?[].concat(Ke):[]},n.history.filter=function(t){return(Ke||[]).filter(function(e){returnnewRegExp(".*"+t+".*").test(e[0])})},n.history.clear=function(){Ke&&(Ke.length=0)},n.history.disable=function(){null!==Ke&&(Ke.length=0,Ke=null)},n.history.enable=function(){null===Ke&&(Ke=[])},n.error=function(){for(vart=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];returnr("error",e,n)},n.warn=function(){for(vart=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];returnr("warn",e,n)},n.debug=function(){for(vart=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];returnr("debug",e,n)},n}functiona(t){returnt.replace(/\n\r?\s*/g,"")}functionl(t,e){if(!t||!e)return"";if("function"==typeofhe.getComputedStyle){varr=he.getComputedStyle(t);returnr?r[e]:""}returnt.currentStyle[e]||""}functionc(t){return"string"==typeoft&&/\S/.test(t)}functionu(t){if(/\s/.test(t))thrownewError("class has illegal whitespace characters")}functionh(t){returnnewRegExp("(^|\\s)"+t+"($|\\s)")}functionp(){returnye===he.document&&void0!==ye.createElement}functiond(t){returni(t)&&1===t.nodeType}functionf(){try{returnhe.parent!==he.self}catch(t){return!0}}functionv(t){returnfunction(e,r){if(!c(e))returnye[t](null);c(r)&&(r=ye.querySelector(r));varn=d(r)?r:ye;returnn[t]&&n[t](e)}}functiony(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:"div",e=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void0!==arguments[2]?arguments[2]:{},n=arguments[3],i=ye.createElement(t);returnObject.getOwnPropertyNames(e).forEach(function(t){varr=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(Ye.warn(Je(Qe,t,r)),i.setAttribute(t,r)):"textContent"===t?g(i,r):i[t]=r}),Object.getOwnPropertyNames(r).forEach(function(t){i.setAttribute(t,r[t])}),n&&D(i,n),i}functiong(t,e){returnvoid0===t.textContent?t.innerText=e:t.textContent=e,t}functionm(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function_(t,e){returnu(e),t.classList?t.classList.contains(e):h(e).test(t.className)}functionb(t,e){returnt.classList?t.classList.add(e):_(t,e)||(t.className=(t.className+" "+e).trim()),t}functionT(t,e){returnt.classList?t.classList.remove(e):(u(e),t.className=t.className.split(/\s+/).filter(function(t){returnt!==e}).join(" ")),t}functionC(t,e,r){varn=_(t,e);if("function"==typeofr&&(r=r(t,e)),"boolean"!=typeofr&&(r=!n),r!==n)returnr?b(t,e):T(t,e),t}functionk(t,e){Object.getOwnPropertyNames(e).forEach(function(r){varn=e[r];null===n||void0===n||!1===n?t.removeAttribute(r):t.setAttribute(r,!0===n?"":n)})}functionE(t){vare={};if(t&&t.attributes&&t.attributes.length>0)for(varr=t.attributes,n=r.length-1;n>=0;n--){vari=r[n].name,o=r[n].value;"boolean"!=typeoft[i]&&-1===
},Qe=Ue(["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 ","."]),Ze=v("querySelector"),tr=v("querySelectorAll"),er=(Object.freeze||Object)({isReal:p,isEl:d,isInFrame:f,createEl:y,textContent:g,prependTo:m,hasClass:_,addClass:b,removeClass:T,toggleClass:C,setAttributes:k,getAttributes:E,getAttribute:w,setAttribute:S,removeAttribute:x,blockTextSelection:j,unblockTextSelection:A,getBoundingClientRect:P,findPosition:O,getPointerPosition:M,isTextNode:N,emptyEl:I,normalizeContent:L,appendContent:D,insertContent:R,isSingleLeftClick:B,$:Ze,$$:tr}),rr=1,nr={},ir="vdata"+(newDate).getTime(),or=!1;!function(){try{vart=Object.defineProperty({},"passive",{get:function(){or=!0}});he.addEventListener("test",null,t),he.removeEventListener("test",null,t)}catch(t){}}();varsr=["touchstart","touchmove"],ar=(Object.freeze||Object)({fixEvent:X,on:q,off:K,trigger:$,one:Y}),lr=!1,cr=void0,ur=function(){if(p()&&!1!==cr.options.autoSetup){vart=ye.getElementsByTagName("video"),e=ye.getElementsByTagName("audio"),r=ye.getElementsByTagName("video-js"),n=[];if(t&&t.length>0)for(vari=0,o=t.length;i<o;i++)n.push(t[i]);if(e&&e.length>0)for(vars=0,a=e.length;s<a;s++)n.push(e[s]);if(r&&r.length>0)for(varl=0,c=r.length;l<c;l++)n.push(r[l]);if(n&&n.length>0)for(varu=0,h=n.length;u<h;u++){vard=n[u];if(!d||!d.getAttribute){G(1);break}if(void0===d.player){varf=d.getAttribute("data-setup");null!==f&&cr(d)}}elselr||G(1)}};p()&&"complete"===ye.readyState?lr=!0:Y(he,"load",function(){lr=!0});varhr=function(t){vare=ye.createElement("style");returne.className=t,e},pr=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e},dr=function(t,e,r){e.guid||(e.guid=F());varn=function(){returne.apply(t,arguments)};returnn.guid=r?r+"_"+e.guid:e.guid,n},fr=function(t,e){varr=Date.now();returnfunction(){varn=Date.now();n-r>=e&&(t.apply(void0,arguments),r=n)}},vr=function(t,e,r){varn=arguments.length>3&&void0!==arguments[3]?arguments[3]:he,i=void0,o=function(){n.clearTimeout(i),i=null},s=function(){varo=this,s=arguments,a=function(){i=null,a=null,r||t.apply(o,s)};!i&&r&&t.apply(o,s),n.clearTimeout(i),i=n.setTimeout(a,e)};returns.cancel=o,s},yr=function(){};yr.prototype.allowedEvents_={},yr.prototype.on=function(t,e){varr=this.addEventListener;this.addEventListener=function(){},q(this,t,e),this.addEventListener=r},yr.prototype.addEventListener=yr.prototype.on,yr.prototype.off=function(t,e){K(this,t,e)},yr.prototype.removeEventListener=yr.prototype.off,yr.prototype.one=function(t,e){varr=this.addEventListener;this.addEventListener=function(){},Y(this,t,e),this.addEventListener=r},yr.prototype.trigger=function(t){vare=t.type||t;"string"==typeoft&&(t={type:e}),t=X(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),$(this,t)},yr.prototype.dispatchEvent=yr.prototype.trigger;vargr=function(t){returntinstanceofyr||!!t.eventBusEl_&&["on","one","off","trigger"].every(function(e){return"function"==typeoft[e]})},mr=function(t){return"string"==typeoft&&/\S/.test(t)||Array.isArray(t)&&!!t.length},_r=function(t){if(!t.nodeName&&!gr(t))thrownewError("Invalid target; must be a DOM node or evented object.")},br=function(t){if(!mr(t))thrownewError("Invalid event type; must be a non-empty string or array.")},Tr=function(t){if("function"!=typeoft)thrownewError("Invalid listener; must be a function.")},Cr=function(t,e){varr=e.length<3||e[0]===t||e[0]===t.eventBusEl_,n=void0,i=void0,o=void0;returnr?(n=t.eventBusEl_,e.length>=3&&e.shift(),i=e[0],o=e[1]):(n=e[0],i=e[1],o=e[2]),_r(n),br(i),Tr(o),o=dr(t,o),{isTargetingSelf:r,target:n,type:i,listener:o}},kr=function(t,e,r,n){_r(t),t.nodeName?ar[e](t,r,n):t[e](r,n)},Er={on:function(){for(vart=this,e=arguments.length,r=Ar
varr,n,i=arguments.length>0&&void0!==arguments[0]?arguments[0]:{};if(Ve(this,e),!i.tech)thrownewError("A tech was not provided.");varo=et(i,{kind:Qr[i.kind]||"subtitles",language:i.language||i.srclang||""}),s=Zr[o.mode]||"disabled",a=o.default;"metadata"!==o.kind&&"chapters"!==o.kind||(s="hidden");varl=r=We(this,t.call(this,o));if(l.tech_=o.tech,Ne)for(varcine.prototype)"constructor"!==c&&(l[c]=e.prototype[c]);l.cues_=[],l.activeCues_=[];varu=newYr(l.cues_),h=newYr(l.activeCues_),p=!1,d=dr(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(){returna},set:function(){}}),Object.defineProperty(l,"mode",{get:function(){returns},set:function(t){vare=this;Zr[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(){returnthis.loaded_?u:null},set:function(){}}),Object.defineProperty(l,"activeCues",{get:function(){if(!this.loaded_)returnnull;if(0===this.cues.length)returnh;for(vart=this.tech_.currentTime(),e=[],r=0,n=this.cues.length;r<n;r++){vari=this.cues[r];i.startTime<=t&&i.endTime>=t?e.push(i):i.startTime===i.endTime&&i.startTime<=t&&i.startTime+.5>=t&&e.push(i)}if(p=!1,e.length!==this.activeCues_.length)p=!0;elsefor(varo=0;o<e.length;o++)-1===this.activeCues_.indexOf(e[o])&&(p=!0);returnthis.activeCues_=e,h.setCues_(this.activeCues_),h},set:function(){}}),o.src?(l.src=o.src,Pn(o.src,l)):l.loaded_=!0,n=l,We(r,n)}returnze(e,t),e.prototype.addCue=function(t){vare=t;if(he.vttjs&&!(tinstanceofhe.vttjs.VTTCue)){e=newhe.vttjs.VTTCue(t.startTime,t.endTime,t.text);for(varrint)rine||(e[r]=t[r]);e.id=t.id,e.originalCue_=t}for(varn=this.tech_.textTracks(),i=0;i<n.length;i++)n[i]!==this&&n[i].removeCue(e);this.cues_.push(e),this.cues.setCues_(this.cues_)},e.prototype.removeCue=function(t){for(vare=this.cues_.length;e--;){varr=this.cues_[e];if(r===t||r.originalCue_&&r.originalCue_===t){this.cues_.splice(e,1),this.cues.setCues_(this.cues_);break}}},e}(tn);On.prototype.allowedEvents_={cuechange:"cuechange"};varMn=function(t){functione(){varr,n,i=arguments.length>0&&void0!==arguments[0]?arguments[0]:{};Ve(this,e);varo=et(i,{kind:Jr[i.kind]||""}),s=r=We(this,t.call(this,o)),a=!1;if(Ne)for(varline.prototype)"constructor"!==l&&(s[l]=e.prototype[l]);returnObject.defineProperty(s,"enabled",{get:function(){returna},set:function(t){"boolean"==typeoft&&t!==a&&(a=t,this.trigger("enabledchange"))}}),o.enabled&&(s.enabled=o.enabled),s.loaded_=!0,n=s,We(r,n)}returnze(e,t),e}(tn),Nn=function(t){functione(){varr,n,i=arguments.length>0&&void0!==arguments[0]?arguments[0]:{};Ve(this,e);varo=et(i,{kind:Gr[i.kind]||""}),s=r=We(this,t.call(this,o)),a=!1;if(Ne)for(varline.prototype)"constructor"!==l&&(s[l]=e.prototype[l]);returnObject.defineProperty(s,"selected",{get:function(){returna},set:function(t){"boolean"==typeoft&&t!==a&&(a=t,this.trigger("selectedchange"))}}),o.selected&&(s.selected=o.selected),n=s,We(r,n)}returnze(e,t),e}(tn),In=0,Ln=2,Dn=function(t){functione(){varr=arguments.length>0&&void0!==arguments[0]?arguments[0]:{};Ve(this,e);varn=We(this,t.call(this)),i=void0,o=n;if(Ne){o=ye.createElement("custom");for(varsine.prototype)"constructor"!==s&&(o[s]=e.prototype[s])}vara=newOn(r);if(o.kind=a.kind,o.src=a.src,o.srclang=a.language,o.label=a.label,o.default=a.default,Object.defineProperty(o,"readyState",{get:function(){returni}}),Object.defineProperty(o,"track",{get:function(){returna}}),i=In,a.addEventListener("loadeddata",function(){i=Ln,o.trigger({type:"load",target:o})}),Ne){varl;returnl=o,We(n,l)}returnn}returnze(e,t),e}(yr);Dn.prototype.allowedEvents_={load:"load"},Dn.NONE=In,Dn.LOADING=1,Dn.LOADED=Ln,Dn.ERROR=3;varRn={audio:{ListClass:Ur,TrackClass:Mn,capitalName:"Audio"},video:{ListClass:qr,TrackClass:Nn,capitalName:"Video"},text:{ListClass:Kr,TrackClass:On,capitalName:"Text"}};
We(this,t.apply(this,arguments))}returnze(e,t),e.prototype.createEl=function(t){vare=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void0!==arguments[2]?arguments[2]:{};t="button",e=n({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},e),r=n({type:"button"},r);vari=Sr.prototype.createEl.call(this,t,e,r);returnthis.createControlTextEl(i),i},e.prototype.addChild=function(t){vare=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},r=this.constructor.name;returnYe.warn("Adding an actionable (user controllable) child to a Button ("+r+") is not supported; use a ClickableComponent instead."),Sr.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}(pi);Sr.registerComponent("Button",gi);varmi=function(t){functione(r,n){Ve(this,e);vari=We(this,t.call(this,r,n));returni.mouseused_=!1,i.on("mousedown",i.handleMouseDown),i}returnze(e,t),e.prototype.buildCSSClass=function(){return"vjs-big-play-button"},e.prototype.handleClick=function(t){vare=this.player_.play();if(this.mouseused_&&t.clientX&&t.clientY)returnvoidut(e);varr=this.player_.getChild("controlBar"),n=r&&r.getChild("playToggle");if(!n)returnvoidthis.player_.focus();vari=function(){returnn.focus()};ct(e)?e.then(i,function(){}):this.setTimeout(i,1)},e.prototype.handleKeyPress=function(e){this.mouseused_=!1,t.prototype.handleKeyPress.call(this,e)},e.prototype.handleMouseDown=function(t){this.mouseused_=!0},e}(gi);mi.prototype.controlText_="Play Video",Sr.registerComponent("BigPlayButton",mi);var_i=function(t){functione(r,n){Ve(this,e);vari=We(this,t.call(this,r,n));returni.controlText(n&&n.controlText||i.localize("Close")),i}returnze(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}(gi);Sr.registerComponent("CloseButton",_i);varbi=function(t){functione(r,n){Ve(this,e);vari=We(this,t.call(this,r,n));returni.on(r,"play",i.handlePlay),i.on(r,"pause",i.handlePause),i.on(r,"ended",i.handleEnded),i}returnze(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}(gi);bi.prototype.controlText_="Play",Sr.registerComponent("PlayToggle",bi);varTi=function(t,e){t=t<0?0:t;varr=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},Ci=Ti,ki=function(t){vare=arguments.length>1&&void0!==arguments[1]?arguments[1]:t;returnCi(t,e)},Ei=function(t){functione(r,n){Ve(this,e);vari=We(this,t.call(this,r,n));returni.throttledUpdateContent=fr(dr(i,i.updateContent),25),i.on(r,"timeupdate",i.throttledUpdateContent),i}returnze(e,t),e.prototype.createEl=function(e){varr=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>"});returnthis.con
i.selectable?i.multiSelectable?i.el_.setAttribute("role","menuitemcheckbox"):i.el_.setAttribute("role","menuitemradio"):i.el_.setAttribute("role","menuitem"),i}returnze(e,t),e.prototype.createEl=function(e,r,i){returnthis.nonIconControl=!0,t.prototype.createEl.call(this,"li",n({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},r),i)},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}(pi);Sr.registerComponent("MenuItem",$i);varYi=function(t){functione(r,n){Ve(this,e);vari=n.track,o=r.textTracks();n.label=i.label||i.language||"Unknown",n.selected="showing"===i.mode;vars=We(this,t.call(this,r,n));s.track=i;vara=function(){for(vart=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];s.handleTracksChange.apply(s,e)},l=function(){for(vart=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];s.handleSelectedLanguageChange.apply(s,e)};if(r.on(["loadstart","texttrackchange"],a),o.addEventListener("change",a),o.addEventListener("selectedlanguagechange",l),s.on("dispose",function(){r.off(["loadstart","texttrackchange"],a),o.removeEventListener("change",a),o.removeEventListener("selectedlanguagechange",l)}),void0===o.onchange){varc=void0;s.on(["tap","click"],function(){if("object"!==He(he.Event))try{c=newhe.Event("change")}catch(t){}c||(c=ye.createEvent("Event"),c.initEvent("change",!0,!0)),o.dispatchEvent(c)})}returns.handleTracksChange(),s}returnze(e,t),e.prototype.handleClick=function(e){varr=this.track.kind,n=this.track.kinds,i=this.player_.textTracks();if(n||(n=[r]),t.prototype.handleClick.call(this,e),i)for(varo=0;o<i.length;o++){vars=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){vare="showing"===this.track.mode;e!==this.isSelected_&&this.selected(e)},e.prototype.handleSelectedLanguageChange=function(t){if("showing"===this.track.mode){vare=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}($i);Sr.registerComponent("TextTrackMenuItem",Yi);varGi=function(t){functione(r,n){returnVe(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,We(this,t.call(this,r,n))}returnze(e,t),e.prototype.handleTracksChange=function(t){for(vare=this.player().textTracks(),r=!0,n=0,i=e.length;n<i;n++){varo=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(vare=this.player().textTracks(),r=!0,n=0,i=e.length;n<i;n++){varo=e[n];if(["captions","descriptions","subtitles"].indexOf(o.kind)>-1&&"showing"===o.mode){r=!1;break}}r&&(this.player_.cache_.selectedLanguage={enabled:!1})},e}(Yi);Sr.registerComponent("OffTextTrackMenuItem",Gi);varJi=function(t){functione(r){varn=arguments.length>1&&void0!==arguments[1]?arguments[1]:{};returnVe(this,e),n.tracks=r.textTracks(),We(this,t.call(this,r,n))}returnze(e,t),e.prototype.createItems=function(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void0!==arguments[1]?arguments[1]:Yi,r=void0;this.label_&&(r=this.label_+" off"),t.push(newGi(this.player_,{kinds:this.kinds_,kind:this.kind_,label:r})),this.hideThreshold_+=1;varn=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.
t.el_.currentTime>0&&(t.el_.duration===1/0&&t.trigger("durationchange"),t.off("timeupdate",e))};returnthis.on("timeupdate",e),NaN}returnthis.el_.duration||NaN},e.prototype.width=function(){returnthis.el_.offsetWidth},e.prototype.height=function(){returnthis.el_.offsetHeight},e.prototype.proxyWebkitFullscreen_=function(){vart=this;if("webkitDisplayingFullscreen"inthis.el_){vare=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},r=function(){"webkitPresentationMode"inthis.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"==typeofthis.el_.webkitEnterFullScreen){vart=he.navigator&&he.navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},e.prototype.enterFullScreen=function(){vart=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(void0===t)returnthis.el_.src;this.setSrc(t)},e.prototype.reset=function(){e.resetMediaElement(this.el_)},e.prototype.currentSrc=function(){returnthis.currentSource_?this.currentSource_.src:this.el_.currentSrc},e.prototype.setControls=function(t){this.el_.controls=!!t},e.prototype.addTextTrack=function(e,r,n){returnthis.featuresNativeTextTracks?this.el_.addTextTrack(e,r,n):t.prototype.addTextTrack.call(this,e,r,n)},e.prototype.createRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)returnt.prototype.createRemoteTextTrack.call(this,e);varr=ye.createElement("track");returne.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){varn=t.prototype.addRemoteTextTrack.call(this,e,r);returnthis.featuresNativeTextTracks&&this.el().appendChild(n),n},e.prototype.removeRemoteTextTrack=function(e){if(t.prototype.removeRemoteTextTrack.call(this,e),this.featuresNativeTextTracks)for(varr=this.$$("track"),n=r.length;n--;)e!==r[n]&&e!==r[n].track||this.el().removeChild(r[n])},e.prototype.getVideoPlaybackQuality=function(){if("function"==typeofthis.el().getVideoPlaybackQuality)returnthis.el().getVideoPlaybackQuality();vart={};returnvoid0!==this.el().webkitDroppedFrameCount&&void0!==this.el().webkitDecodedFrameCount&&(t.droppedVideoFrames=this.el().webkitDroppedFrameCount,t.totalVideoFrames=this.el().webkitDecodedFrameCount),he.performance&&"function"==typeofhe.performance.now?t.creationTime=he.performance.now():he.performance&&he.performance.timing&&"number"==typeofhe.performance.timing.navigationStart&&(t.creationTime=he.Date.now()-he.performance.timing.navigationStart),t},e}(ti);if(p()){Bo.TEST_VID=ye.createElement("video");varFo=ye.createElement("track");Fo.kind="captions",Fo.srclang="en",Fo.label="English",Bo.TEST_VID.appendChild(Fo)}Bo.isSupported=function(){try{Bo.TEST_VID.volume=.5}catch(t){return!1}return!(!Bo.TEST_VID||!Bo.TEST_VID.canPlayType)},Bo.canPlayType=function(t){returnBo.TEST_VID.canPlayType(t)},Bo.canPlaySource=function(t,e){returnBo.canPlayType(t.type)},Bo.canControlVolume=function(){try{vart=Bo.TEST_VID.volume;returnBo.TEST_VID.volume=t/2+.1,t!==Bo.TEST_VID.volume}catch(t){return!1}},Bo.canMuteVolume=function(){try{vart=Bo.TEST_VID.muted;returnBo.TEST_VID.muted=!t,Bo.TEST_VID.muted?S(Bo.TEST_VID,"muted","muted"):x(Bo.TEST_VID,"muted"),t!==Bo.TEST_VID.muted}catch(t){return!1}},Bo.canControlPlaybackRate=function(){if(we&&Oe&&Me<58)return!1;try{vart=Bo.TEST_VID.playbackRate;returnBo.TEST_VID.playbackRate=t/2+.1,t!==Bo.TEST_VID.playbackRate}catch(t){return!1}},Bo.canOverrideAttributes=function(){if(Ne)return!1;try{vart=function(){};Obje