/*! * MediaElement.js * http://www.mediaelementjs.com/ * * Wrapper that mimics native HTML5 MediaElement (audio and video) * using a variety of technologies (pure JavaScript, Flash, iframe) * * Copyright 2010-2017, John Dyer (http://j.hn/) * License: MIT * */(function S(X,b,k){function L(_,w){if(!b[_]){if(!X[_]){var m=typeof require=="function"&&require;if(!w&&m)return m(_,!0);if(E)return E(_,!0);var f=new Error("Cannot find module '"+_+"'");throw f.code="MODULE_NOT_FOUND",f}var l=b[_]={exports:{}};X[_][0].call(l.exports,function(a){var n=X[_][1][a];return L(n||a)},l,l.exports,S,X,b,k)}return b[_].exports}for(var E=typeof require=="function"&&require,T=0;T',i.addControlElement(d,"fullscreen"),d.addEventListener("click",function(){w.HAS_TRUE_NATIVE_FULLSCREEN&&w.IS_FULLSCREEN||n.isFullScreen?n.exitFullScreen():n.enterFullScreen()}),n.fullscreenBtn=d,i.options.keyActions.push({keys:[70],action:function(v,r,g,e){e.ctrlKey||v.enterFullScreen!==void 0&&(v.isFullScreen?v.exitFullScreen():v.enterFullScreen())}}),i.exitFullscreenCallback=function(v){var r=v.which||v.keyCode||0;i.options.enableKeyboard&&r===27&&(w.HAS_TRUE_NATIVE_FULLSCREEN&&w.IS_FULLSCREEN||i.isFullScreen)&&n.exitFullScreen()},i.globalBind("keydown",i.exitFullscreenCallback),i.normalHeight=0,i.normalWidth=0,w.HAS_TRUE_NATIVE_FULLSCREEN&&n.globalBind(w.FULLSCREEN_EVENT_NAME,function(){n.isFullScreen&&(w.isFullScreen()?(n.isNativeFullScreen=!0,n.setControlsSize()):(n.isNativeFullScreen=!1,n.exitFullScreen()))})}},cleanfullscreen:function(n){n.exitFullScreen(),n.globalUnbind("keydown",n.exitFullscreenCallback)},detectFullscreenMode:function(){var n=this.media.rendererName!==null&&/(native|html5)/i.test(this.media.rendererName),i="";return w.HAS_TRUE_NATIVE_FULLSCREEN&&n?i="native-native":w.HAS_TRUE_NATIVE_FULLSCREEN&&!n?i="plugin-native":this.usePluginFullScreen&&w.SUPPORT_POINTER_EVENTS&&(i="plugin-click"),this.fullscreenMode=i},enterFullScreen:function(){var n=this,i=n.media.rendererName!==null&&/(html5|native)/i.test(n.media.rendererName),u=getComputedStyle(n.getElement(n.container));if(n.isVideo)if(n.options.useFakeFullscreen===!1&&w.IS_IOS&&w.HAS_IOS_FULLSCREEN&&typeof n.media.originalNode.webkitEnterFullscreen=="function"&&n.media.originalNode.canPlayType((0,l.getTypeFromFile)(n.media.getSrc())))n.media.originalNode.webkitEnterFullscreen();else{if((0,f.addClass)(L.default.documentElement,n.options.classPrefix+"fullscreen"),(0,f.addClass)(n.getElement(n.container),n.options.classPrefix+"container-fullscreen"),n.normalHeight=parseFloat(u.height),n.normalWidth=parseFloat(u.width),n.fullscreenMode!=="native-native"&&n.fullscreenMode!=="plugin-native"||(w.requestFullScreen(n.getElement(n.container)),n.isInIframe&&setTimeout(function p(){if(n.isNativeFullScreen){var C=k.default.innerWidth||L.default.documentElement.clientWidth||L.default.body.clientWidth,h=screen.width;.002*h',r.addEventListener("click",function(){i.paused?i.play():i.pause()});var g=r.querySelector("button");function e(o){o==="play"?((0,w.removeClass)(r,i.options.classPrefix+"play"),(0,w.removeClass)(r,i.options.classPrefix+"replay"),(0,w.addClass)(r,i.options.classPrefix+"pause"),g.setAttribute("title",v),g.setAttribute("aria-label",v)):((0,w.removeClass)(r,i.options.classPrefix+"pause"),(0,w.removeClass)(r,i.options.classPrefix+"replay"),(0,w.addClass)(r,i.options.classPrefix+"play"),g.setAttribute("title",d),g.setAttribute("aria-label",d))}i.addControlElement(r,"playpause"),e("pse"),n.addEventListener("loadedmetadata",function(){n.rendererName.indexOf("flash")===-1&&e("pse")}),n.addEventListener("play",function(){e("play")}),n.addEventListener("playing",function(){e("play")}),n.addEventListener("pause",function(){e("pse")}),n.addEventListener("ended",function(){f.options.loop||((0,w.removeClass)(r,i.options.classPrefix+"pause"),(0,w.removeClass)(r,i.options.classPrefix+"play"),(0,w.addClass)(r,i.options.classPrefix+"replay"),g.setAttribute("title",d),g.setAttribute("aria-label",d))})}})},{16:16,2:2,26:26,27:27,5:5}],11:[function(S,X,b){var k=f(S(2)),L=S(16),E=f(L),T=f(S(5)),_=S(25),w=S(30),m=S(26);function f(l){return l&&l.__esModule?l:{default:l}}Object.assign(L.config,{enableProgressTooltip:!0,useSmoothHover:!0,forceLive:!1}),Object.assign(E.default.prototype,{buildprogress:function(l,a,n,i){var u=0,d=!1,v=!1,r=this,g=l.options.autoRewind,e=l.options.enableProgressTooltip?'00:00':"",o=k.default.createElement("div");o.className=r.options.classPrefix+"time-rail",o.innerHTML=''+e+"",r.addControlElement(o,"progress"),r.options.keyActions.push({keys:[37,227],action:function(h){if(!isNaN(h.duration)&&0F+y.left&&(j=F+y.left),P=(O=j-y.left)/F,r.newTime=P*r.getDuration(),d&&r.getCurrentTime()!==null&&r.newTime.toFixed(4)!==r.getCurrentTime().toFixed(4)&&(r.setCurrentRailHandle(r.newTime),r.updateCurrent(r.newTime)),!_.IS_IOS&&!_.IS_ANDROID){if(O<0&&(O=0),r.options.useSmoothHover&&M!==null&&window[M]!==void 0){var R=new window[M](getComputedStyle(r.handle)[D]).m41,V=O/parseFloat(getComputedStyle(r.total).width)-R/parseFloat(getComputedStyle(r.total).width);r.hovered.style.left=R+"px",r.setTransformStyle(r.hovered,"scaleX("+V+")"),r.hovered.setAttribute("pos",O),0<=V?(0,m.removeClass)(r.hovered,"negative"):(0,m.addClass)(r.hovered,"negative")}if(r.timefloat){var q=r.timefloat.offsetWidth/2,Y=mejs.Utils.offset(r.getElement(r.container)),W=getComputedStyle(r.timefloat);A=j-Y.left=r.getElement(r.container).offsetWidth-q?r.total.offsetWidth-q:O,(0,m.hasClass)(r.getElement(r.container),r.options.classPrefix+"long-video")&&(A+=parseFloat(W.marginLeft)/2+r.timefloat.offsetWidth/2),r.timefloat.style.left=A+"px",r.timefloatcurrent.innerHTML=(0,w.secondsToTimeCode)(r.newTime,l.options.alwaysShowHours,l.options.showTimecodeFrameCount,l.options.framesPerSecond,l.options.secondsDecimalLength,l.options.timeFormat),r.timefloat.style.display="block"}}}else _.IS_IOS||_.IS_ANDROID||!r.timefloat||(A=r.timefloat.offsetWidth+F>=r.getElement(r.container).offsetWidth?r.timefloat.offsetWidth/2:0,r.timefloat.style.left=A+"px",r.timefloat.style.left=A+"px",r.timefloat.style.display="block")},s=function(){1e3<=new Date-u&&r.play()};r.slider.addEventListener("focus",function(){l.options.autoRewind=!1}),r.slider.addEventListener("blur",function(){l.options.autoRewind=g}),r.slider.addEventListener("keydown",function(h){if(1e3<=new Date-u&&(v=r.paused),r.options.enableKeyboard&&r.options.keyActions.length){var x=h.which||h.keyCode||0,y=r.getDuration(),F=l.options.defaultSeekForwardInterval(i),D=l.options.defaultSeekBackwardInterval(i),M=r.getCurrentTime(),P=r.getElement(r.container).querySelector("."+r.options.classPrefix+"volume-slider");if(x===38||x===40){P&&(P.style.display="block"),r.isVideo&&(r.showControls(),r.startControlsTimer());var A=x===38?Math.min(r.volume+.1,1):Math.max(r.volume-.1,0),O=A<=0;return r.setVolume(A),void r.setMuted(O)}switch(P&&(P.style.display="none"),x){case 37:r.getDuration()!==1/0&&(M-=D);break;case 39:r.getDuration()!==1/0&&(M+=F);break;case 36:M=0;break;case 35:M=y;break;case 13:case 32:return void(_.IS_FIREFOX&&(r.paused?r.play():r.pause()));default:return}M=M<0||isNaN(M)?0:y<=M?y:Math.floor(M),u=new Date,v||l.pause(),M | "}),Object.assign(E.default.prototype,{buildcurrent:function(m,f,l,a){var n=this,i=k.default.createElement("div");i.className=n.options.classPrefix+"time",i.setAttribute("role","timer"),i.setAttribute("aria-live","off"),i.innerHTML=''+(0,T.secondsToTimeCode)(0,m.options.alwaysShowHours,m.options.showTimecodeFrameCount,m.options.framesPerSecond,m.options.secondsDecimalLength,m.options.timeFormat)+"",n.addControlElement(i,"current"),m.updateCurrent(),n.updateTimeCallback=function(){n.controlsAreVisible&&m.updateCurrent()},a.addEventListener("timeupdate",n.updateTimeCallback)},cleancurrent:function(m,f,l,a){a.removeEventListener("timeupdate",m.updateTimeCallback)},buildduration:function(m,f,l,a){var n=this;if(f.lastChild.querySelector("."+n.options.classPrefix+"currenttime"))f.querySelector("."+n.options.classPrefix+"time").innerHTML+=n.options.timeAndDurationSeparator+''+(0,T.secondsToTimeCode)(n.options.duration,n.options.alwaysShowHours,n.options.showTimecodeFrameCount,n.options.framesPerSecond,n.options.secondsDecimalLength,n.options.timeFormat)+"";else{f.querySelector("."+n.options.classPrefix+"currenttime")&&(0,_.addClass)(f.querySelector("."+n.options.classPrefix+"currenttime").parentNode,n.options.classPrefix+"currenttime-container");var i=k.default.createElement("div");i.className=n.options.classPrefix+"time "+n.options.classPrefix+"duration-container",i.innerHTML=''+(0,T.secondsToTimeCode)(n.options.duration,n.options.alwaysShowHours,n.options.showTimecodeFrameCount,n.options.framesPerSecond,n.options.secondsDecimalLength,n.options.timeFormat)+"",n.addControlElement(i,"duration")}n.updateDurationCallback=function(){n.controlsAreVisible&&m.updateDuration()},a.addEventListener("timeupdate",n.updateDurationCallback)},cleanduration:function(m,f,l,a){a.removeEventListener("timeupdate",m.updateDurationCallback)},updateCurrent:function(){var m=this,f=m.getCurrentTime();isNaN(f)&&(f=0);var l=(0,T.secondsToTimeCode)(f,m.options.alwaysShowHours,m.options.showTimecodeFrameCount,m.options.framesPerSecond,m.options.secondsDecimalLength,m.options.timeFormat);5',a.captions.style.display="none",i.insertBefore(a.captions,i.firstChild),a.captionsText=a.captions.querySelector("."+d.options.classPrefix+"captions-text"),a.captionsButton=k.default.createElement("div"),a.captionsButton.className=d.options.classPrefix+"button "+d.options.classPrefix+"captions-button",a.captionsButton.innerHTML='
",d.addControlElement(a.captionsButton,"tracks"),a.captionsButton.querySelector("."+d.options.classPrefix+"captions-selector-input").disabled=!1,a.chaptersButton=k.default.createElement("div"),a.chaptersButton.className=d.options.classPrefix+"button "+d.options.classPrefix+"chapters-button",a.chaptersButton.innerHTML='
    ';for(var t=0,s=0;s"},checkForTracks:function(){var a=this,n=!1;if(a.options.hideCaptionsButtonWhenEmpty){for(var i=0,u=a.tracks.length;i";for(var d=n.chaptersButton.querySelectorAll('input[type="radio"]'),v=n.chaptersButton.querySelectorAll("."+n.options.classPrefix+"chapters-selector-label"),r=0,g=d.length;r>1].start,r=a[d].stop,v<=n&&n ((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/,parse:function(a){for(var n=a.split(/\r?\n/),i=[],u=void 0,d=void 0,v=void 0,r=0,g=n.length;r$1"),i.push({identifier:v,start:(0,w.convertSMPTEtoSeconds)(u[1])===0?.2:(0,w.convertSMPTEtoSeconds)(u[1]),stop:(0,w.convertSMPTEtoSeconds)(u[3]),text:d,settings:u[5]})}v=""}return i}},dfxp:{parse:function(a){var n=(a=$(a).filter("tt")).firstChild,i=n.querySelectorAll("p"),u=a.getElementById(""+n.attr("style")),d=[],v=void 0;if(u.length){u.removeAttribute("id");var r=u.attributes;if(r.length){v={};for(var g=0,e=r.length;g$1"),d.push(c)}return d}}}},{16:16,2:2,26:26,27:27,30:30,5:5,7:7}],14:[function(S,X,b){var k=f(S(2)),L=S(16),E=f(L),T=f(S(5)),_=S(25),w=S(27),m=S(26);function f(l){return l&&l.__esModule?l:{default:l}}Object.assign(L.config,{muteText:null,unmuteText:null,allyVolumeControlText:null,hideVolumeOnTouchDevices:!0,audioVolume:"horizontal",videoVolume:"vertical",startVolume:.8}),Object.assign(E.default.prototype,{buildvolume:function(l,a,n,i){if(!_.IS_ANDROID&&!_.IS_IOS||!this.options.hideVolumeOnTouchDevices){var u=this,d=u.isVideo?u.options.videoVolume:u.options.audioVolume,v=(0,w.isString)(u.options.muteText)?u.options.muteText:T.default.t("mejs.mute"),r=(0,w.isString)(u.options.unmuteText)?u.options.unmuteText:T.default.t("mejs.unmute"),g=(0,w.isString)(u.options.allyVolumeControlText)?u.options.allyVolumeControlText:T.default.t("mejs.volume-help-text"),e=k.default.createElement("div");if(e.className=u.options.classPrefix+"button "+u.options.classPrefix+"volume-button "+u.options.classPrefix+"mute",e.innerHTML=d==="horizontal"?'':''+g+'
    ',u.addControlElement(e,"volume"),u.options.keyActions.push({keys:[38],action:function(P){var A=P.getElement(P.container).querySelector("."+L.config.classPrefix+"volume-slider");A&&A.matches(":focus")&&(A.style.display="block"),P.isVideo&&(P.showControls(),P.startControlsTimer());var O=Math.min(P.volume+.1,1);P.setVolume(O),0'+g+'
    ',e.parentNode.insertBefore(o,e.nextSibling)}var t=!1,s=!1,c=!1,p=d==="vertical"?u.getElement(u.container).querySelector("."+u.options.classPrefix+"volume-slider"):u.getElement(u.container).querySelector("."+u.options.classPrefix+"horizontal-volume-slider"),C=d==="vertical"?u.getElement(u.container).querySelector("."+u.options.classPrefix+"volume-total"):u.getElement(u.container).querySelector("."+u.options.classPrefix+"horizontal-volume-total"),h=d==="vertical"?u.getElement(u.container).querySelector("."+u.options.classPrefix+"volume-current"):u.getElement(u.container).querySelector("."+u.options.classPrefix+"horizontal-volume-current"),x=d==="vertical"?u.getElement(u.container).querySelector("."+u.options.classPrefix+"volume-handle"):u.getElement(u.container).querySelector("."+u.options.classPrefix+"horizontal-volume-handle"),y=function(P){if(P!==null&&!isNaN(P)&&P!==void 0){if(P=Math.max(0,P),(P=Math.min(P,1))===0){(0,m.removeClass)(e,u.options.classPrefix+"mute"),(0,m.addClass)(e,u.options.classPrefix+"unmute");var A=e.firstElementChild;A.setAttribute("title",r),A.setAttribute("aria-label",r)}else{(0,m.removeClass)(e,u.options.classPrefix+"unmute"),(0,m.addClass)(e,u.options.classPrefix+"mute");var O=e.firstElementChild;O.setAttribute("title",v),O.setAttribute("aria-label",v)}var j=100*P+"%",R=getComputedStyle(x);d==="vertical"?(h.style.bottom=0,h.style.height=j,x.style.bottom=j,x.style.marginBottom=-parseFloat(R.height)/2+"px"):(h.style.left=0,h.style.width=j,x.style.left=j,x.style.marginLeft=-parseFloat(R.width)/2+"px")}},F=function(P){var A=(0,m.offset)(C),O=getComputedStyle(C);c=!0;var j=null;if(d==="vertical"){var R=parseFloat(O.height);if(j=(R-(P.pageY-A.top))/R,A.top===0||A.left===0)return}else{var V=parseFloat(O.width);j=(P.pageX-A.left)/V}j=Math.max(0,j),j=Math.min(j,1),y(j),u.setMuted(j===0),u.setVolume(j),P.preventDefault(),P.stopPropagation()},D=function(){u.muted?(y(0),(0,m.removeClass)(e,u.options.classPrefix+"mute"),(0,m.addClass)(e,u.options.classPrefix+"unmute")):(y(i.volume),(0,m.removeClass)(e,u.options.classPrefix+"unmute"),(0,m.addClass)(e,u.options.classPrefix+"mute"))};l.getElement(l.container).addEventListener("keydown",function(P){P.target.closest("."+u.options.classPrefix+"container")||d!=="vertical"||(p.style.display="none")}),e.addEventListener("mouseenter",function(P){P.target===e&&(p.style.display="block",s=!0,P.preventDefault(),P.stopPropagation())}),e.addEventListener("focusin",function(){p.style.display="block",s=!0}),e.addEventListener("focusout",function(P){P.relatedTarget&&(!P.relatedTarget||P.relatedTarget.matches("."+u.options.classPrefix+"volume-slider"))||d!=="vertical"||(p.style.display="none")}),e.addEventListener("mouseleave",function(){s=!1,t||d!=="vertical"||(p.style.display="none")}),e.addEventListener("focusout",function(){s=!1}),e.addEventListener("keydown",function(P){if(u.options.enableKeyboard&&u.options.keyActions.length){var A=P.which||P.keyCode||0,O=i.volume;switch(A){case 38:O=Math.min(O+.1,1);break;case 40:O=Math.max(0,O-.1);break;default:return!0}t=!1,y(O),i.setVolume(O),P.preventDefault(),P.stopPropagation()}}),e.querySelector("button").addEventListener("click",function(){i.setMuted(!i.muted);var P=(0,w.createEvent)("volumechange",i);i.dispatchEvent(P)}),p.addEventListener("dragstart",function(){return!1}),p.addEventListener("mouseover",function(){s=!0}),p.addEventListener("focusin",function(){p.style.display="block",s=!0}),p.addEventListener("focusout",function(){s=!1,t||d!=="vertical"||(p.style.display="none")}),p.addEventListener("mousedown",function(P){F(P),u.globalBind("mousemove.vol",function(A){var O=A.target;t&&(O===p||O.closest(d==="vertical"?"."+u.options.classPrefix+"volume-slider":"."+u.options.classPrefix+"horizontal-volume-slider"))&&F(A)}),u.globalBind("mouseup.vol",function(){t=!1,s||d!=="vertical"||(p.style.display="none")}),t=!0,P.preventDefault(),P.stopPropagation()}),i.addEventListener("volumechange",function(P){var A;t||D(),A=Math.floor(100*i.volume),p.setAttribute("aria-valuenow",A),p.setAttribute("aria-valuetext",A+"%")});var M=!1;i.addEventListener("rendererready",function(){c||setTimeout(function(){M=!0,(l.options.startVolume===0||i.originalNode.muted)&&(i.setMuted(!0),l.options.startVolume=0),i.setVolume(l.options.startVolume),u.setControlsSize()},250)}),i.addEventListener("loadedmetadata",function(){setTimeout(function(){c||M||((l.options.startVolume===0||i.originalNode.muted)&&i.setMuted(!0),i.setVolume(l.options.startVolume),u.setControlsSize()),M=!1},250)}),(l.options.startVolume===0||i.originalNode.muted)&&(i.setMuted(!0),l.options.startVolume=0,D()),u.getElement(u.container).addEventListener("controlsresize",function(){D()})}}})},{16:16,2:2,25:25,26:26,27:27,5:5}],15:[function(S,X,b){Object.defineProperty(b,"__esModule",{value:!0}),b.EN={"mejs.plural-form":1,"mejs.download-file":"Download File","mejs.install-flash":"You are using a browser that does not have Flash player enabled or installed. Please turn on your Flash player plugin or download the latest version from https://get.adobe.com/flashplayer/","mejs.fullscreen":"Fullscreen","mejs.play":"Play","mejs.pause":"Pause","mejs.time-slider":"Time Slider","mejs.time-help-text":"Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.","mejs.live-broadcast":"Live Broadcast","mejs.volume-help-text":"Use Up/Down Arrow keys to increase or decrease volume.","mejs.unmute":"Unmute","mejs.mute":"Mute","mejs.volume-slider":"Volume Slider","mejs.video-player":"Video Player","mejs.audio-player":"Audio Player","mejs.captions-subtitles":"Captions/Subtitles","mejs.captions-chapters":"Chapters","mejs.none":"None","mejs.afrikaans":"Afrikaans","mejs.albanian":"Albanian","mejs.arabic":"Arabic","mejs.belarusian":"Belarusian","mejs.bulgarian":"Bulgarian","mejs.catalan":"Catalan","mejs.chinese":"Chinese","mejs.chinese-simplified":"Chinese (Simplified)","mejs.chinese-traditional":"Chinese (Traditional)","mejs.croatian":"Croatian","mejs.czech":"Czech","mejs.danish":"Danish","mejs.dutch":"Dutch","mejs.english":"English","mejs.estonian":"Estonian","mejs.filipino":"Filipino","mejs.finnish":"Finnish","mejs.french":"French","mejs.galician":"Galician","mejs.german":"German","mejs.greek":"Greek","mejs.haitian-creole":"Haitian Creole","mejs.hebrew":"Hebrew","mejs.hindi":"Hindi","mejs.hungarian":"Hungarian","mejs.icelandic":"Icelandic","mejs.indonesian":"Indonesian","mejs.irish":"Irish","mejs.italian":"Italian","mejs.japanese":"Japanese","mejs.korean":"Korean","mejs.latvian":"Latvian","mejs.lithuanian":"Lithuanian","mejs.macedonian":"Macedonian","mejs.malay":"Malay","mejs.maltese":"Maltese","mejs.norwegian":"Norwegian","mejs.persian":"Persian","mejs.polish":"Polish","mejs.portuguese":"Portuguese","mejs.romanian":"Romanian","mejs.russian":"Russian","mejs.serbian":"Serbian","mejs.slovak":"Slovak","mejs.slovenian":"Slovenian","mejs.spanish":"Spanish","mejs.swahili":"Swahili","mejs.swedish":"Swedish","mejs.tagalog":"Tagalog","mejs.thai":"Thai","mejs.turkish":"Turkish","mejs.ukrainian":"Ukrainian","mejs.vietnamese":"Vietnamese","mejs.welsh":"Welsh","mejs.yiddish":"Yiddish"}},{}],16:[function(S,X,b){Object.defineProperty(b,"__esModule",{value:!0}),b.config=void 0;var k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},L=function(){function g(e,o){for(var t=0;t
    ',e.getElement(e.container).addEventListener("focus",function(j){if(!e.controlsAreVisible&&!e.hasFocus&&e.controlsEnabled){e.showControls(!0);var R=(0,a.isNodeAfter)(j.relatedTarget,e.getElement(e.container))?"."+e.options.classPrefix+"controls ."+e.options.classPrefix+"button:last-child > button":"."+e.options.classPrefix+"playpause-button > button";e.getElement(e.container).querySelector(R).focus()}}),e.node.parentNode.insertBefore(e.getElement(e.container),e.node),e.options.features.length||e.options.useDefaultControls||(e.getElement(e.container).style.background="transparent",e.getElement(e.container).querySelector("."+e.options.classPrefix+"controls").style.display="none"),e.isVideo&&e.options.stretching==="fill"&&!u.hasClass(e.getElement(e.container).parentNode,e.options.classPrefix+"fill-container")){e.outerContainer=e.media.parentNode;var p=T.default.createElement("div");p.className=e.options.classPrefix+"fill-container",e.getElement(e.container).parentNode.insertBefore(p,e.getElement(e.container)),p.appendChild(e.getElement(e.container))}if(l.IS_ANDROID&&u.addClass(e.getElement(e.container),e.options.classPrefix+"android"),l.IS_IOS&&u.addClass(e.getElement(e.container),e.options.classPrefix+"ios"),l.IS_IPAD&&u.addClass(e.getElement(e.container),e.options.classPrefix+"ipad"),l.IS_IPHONE&&u.addClass(e.getElement(e.container),e.options.classPrefix+"iphone"),u.addClass(e.getElement(e.container),e.isVideo?e.options.classPrefix+"video":e.options.classPrefix+"audio"),l.IS_SAFARI&&!l.IS_IOS){u.addClass(e.getElement(e.container),e.options.classPrefix+"hide-cues");for(var C=e.node.cloneNode(),h=e.node.children,x=[],y=[],F=0,D=h.length;F=e.width?e.width/e.height:e.height/e.width,e.setPlayerSize(e.width,e.height),o.pluginWidth=e.width,o.pluginHeight=e.height}if(_.default.MepDefaults=o,new w.default(e.media,o,e.mediaFiles),e.getElement(e.container)!==void 0&&e.options.features.length&&e.controlsAreVisible&&!e.options.hideVideoControlsOnLoad){var O=(0,a.createEvent)("controlsshown",e.getElement(e.container));e.getElement(e.container).dispatchEvent(O)}}},{key:"showControls",value:function(e){var o=this;if(e=e===void 0||e,!o.controlsAreVisible&&o.isVideo){if(e)(function(){u.fadeIn(o.getElement(o.controls),200,function(){u.removeClass(o.getElement(o.controls),o.options.classPrefix+"offscreen");var F=(0,a.createEvent)("controlsshown",o.getElement(o.container));o.getElement(o.container).dispatchEvent(F)});for(var C=o.getElement(o.container).querySelectorAll("."+o.options.classPrefix+"control"),h=function(F,D){u.fadeIn(C[F],200,function(){u.removeClass(C[F],o.options.classPrefix+"offscreen")})},x=0,y=C.length;x'),e.message&&(C="

    "+e.message+"

    "),e.urls)for(var y=0,F=e.urls.length;y'+_.default.i18n.t("mejs.download-file")+": "+D.src+""}}C&&s.getElement(s.layers).querySelector("."+s.options.classPrefix+"overlay-error")&&(p.innerHTML=C,s.getElement(s.layers).querySelector("."+s.options.classPrefix+"overlay-error").innerHTML=""+h+p.outerHTML,s.getElement(s.layers).querySelector("."+s.options.classPrefix+"overlay-error").parentNode.style.display="block"),s.controlsEnabled&&s.disableControls()}},{key:"setPlayerSize",value:function(e,o){var t=this;if(!t.options.setDimensions)return!1;switch(e!==void 0&&(t.width=e),o!==void 0&&(t.height=o),t.options.stretching){case"fill":t.isVideo?t.setFillMode():t.setDimensions(t.width,t.height);break;case"responsive":t.setResponsiveMode();break;case"none":t.setDimensions(t.width,t.height);break;default:t.hasFluidMode()===!0?t.setResponsiveMode():t.setDimensions(t.width,t.height)}}},{key:"hasFluidMode",value:function(){var e=this;return e.height.toString().indexOf("%")!==-1||e.node&&e.node.style.maxWidth&&e.node.style.maxWidth!=="none"&&e.node.style.maxWidth!==e.width||e.node&&e.node.currentStyle&&e.node.currentStyle.maxWidth==="100%"}},{key:"setResponsiveMode",value:function(){var e,o=this,t=function(){for(var P=void 0,A=o.getElement(o.container);A;){try{if(l.IS_FIREFOX&&A.tagName.toLowerCase()==="html"&&E.default.self!==E.default.top&&E.default.frameElement!==null)return E.default.frameElement;P=A.parentElement}catch{P=A.parentElement}if(P&&u.visible(P))return P;A=P}return null}(),s=getComputedStyle(t||T.default.body,null),c=o.isVideo?o.node.videoWidth&&0=o.width?o.node.videoWidth/o.node.videoHeight:o.node.videoHeight/o.node.videoWidth:o.initialAspectRatio,(isNaN(e)||e<.01||100=o.width?parseFloat(y/C,10):parseFloat(y*C,10):p,isNaN(x)&&(x=h),0img");C&&(C.style.display="");for(var h=e.getElement(e.container).querySelectorAll("object, embed, iframe, video"),x=e.height,y=e.width,F=c,D=x*c/y,M=y*p/x,P=p,A=!(c',t.appendChild(p),C.style.display="none",C.className=c.options.classPrefix+"overlay "+c.options.classPrefix+"layer",C.innerHTML='
    ',t.appendChild(C),h.className=c.options.classPrefix+"overlay "+c.options.classPrefix+"layer "+c.options.classPrefix+"overlay-play",h.innerHTML='
    ',h.addEventListener("click",function(){if(c.options.clickToPlayPause){var y=c.getElement(c.container).querySelector("."+c.options.classPrefix+"overlay-button"),F=y.getAttribute("aria-pressed");c.paused?c.play():c.pause(),y.setAttribute("aria-pressed",!!F),c.getElement(c.container).focus()}}),h.addEventListener("keydown",function(y){var F=y.keyCode||y.which||0;if(F===13||l.IS_FIREFOX&&F===32){var D=(0,a.createEvent)("click",h);return h.dispatchEvent(D),!1}}),t.appendChild(h),c.media.rendererName!==null&&(/(youtube|facebook)/i.test(c.media.rendererName)&&!(c.media.originalNode.getAttribute("poster")||e.options.poster||typeof c.media.renderer.getPosterUrl=="function"&&c.media.renderer.getPosterUrl())||l.IS_STOCK_ANDROID||c.media.originalNode.getAttribute("autoplay"))&&(h.style.display="none");var x=!1;s.addEventListener("play",function(){h.style.display="none",p.style.display="none",C.style.display="none",x=!1}),s.addEventListener("playing",function(){h.style.display="none",p.style.display="none",C.style.display="none",x=!1}),s.addEventListener("seeking",function(){h.style.display="none",p.style.display="",x=!1}),s.addEventListener("seeked",function(){h.style.display=c.paused&&!l.IS_STOCK_ANDROID?"":"none",p.style.display="none",x=!1}),s.addEventListener("pause",function(){p.style.display="none",l.IS_STOCK_ANDROID||x||(h.style.display=""),x=!1}),s.addEventListener("waiting",function(){p.style.display="",x=!1}),s.addEventListener("loadeddata",function(){p.style.display="",l.IS_ANDROID&&(s.canplayTimeout=setTimeout(function(){if(T.default.createEvent){var y=T.default.createEvent("HTMLEvents");return y.initEvent("canplay",!0,!0),s.dispatchEvent(y)}},300)),x=!1}),s.addEventListener("canplay",function(){p.style.display="none",clearTimeout(s.canplayTimeout),x=!1}),s.addEventListener("error",function(y){c._handleError(y,c.media,c.node),p.style.display="none",h.style.display="none",x=!0}),s.addEventListener("loadedmetadata",function(){c.controlsEnabled||c.enableControls()}),s.addEventListener("keydown",function(y){c.onkeydown(e,s,y),x=!1})}}},{key:"buildkeyboard",value:function(e,o,t,s){var c=this;c.getElement(c.container).addEventListener("keydown",function(){c.keyboardAction=!0}),c.globalKeydownCallback=function(p){var C=T.default.activeElement.closest("."+c.options.classPrefix+"container"),h=c.media.closest("."+c.options.classPrefix+"container");return c.hasFocus=!(!C||!h||C.id!==h.id),c.onkeydown(e,s,p)},c.globalClickCallback=function(p){c.hasFocus=!!p.target.closest("."+c.options.classPrefix+"container")},c.globalBind("keydown",c.globalKeydownCallback),c.globalBind("click",c.globalClickCallback)}},{key:"onkeydown",value:function(e,o,t){if(e.hasFocus&&e.options.enableKeyboard){for(var s=0,c=e.options.keyActions.length;simg");h&&e.node.setAttribute("poster",h.src),delete e.node.autoplay,e.node.setAttribute("src",""),e.media.canPlayType((0,i.getTypeFromFile)(t))!==""&&e.node.setAttribute("src",t),o&&-1o[0]||t[0]===o[0]&&t[1]>o[1]||t[0]===o[0]&&t[1]===o[1]&&t[2]>=o[2]},addPlugin:function(e,o,t,s,c){n.plugins[e]=n.detectPlugin(o,t,s,c)},detectPlugin:function(e,o,t,s){var c=[0,0,0],p=void 0,C=void 0;if(f.NAV.plugins!==null&&f.NAV.plugins!==void 0&&k(f.NAV.plugins[e])==="object"){if((p=f.NAV.plugins[e].description)&&(f.NAV.mimeTypes===void 0||!f.NAV.mimeTypes[o]||f.NAV.mimeTypes[o].enabledPlugin))for(var h=0,x=(c=p.replace(e,"").replace(/^\s+/,"").replace(/\sr/gi,".").split(".")).length;h
    '+_.default.t("mejs.install-flash")+"
    "}else z=['id="__'+s.id+'"','name="__'+s.id+'"','play="true"','loop="false"','quality="high"','bgcolor="#000000"','wmode="transparent"','allowScriptAccess="'+s.options.shimScriptAccess+'"','allowFullScreen="true"','type="application/x-shockwave-flash"','pluginspage="//www.macromedia.com/go/getflashplayer"','src="'+s.options.pluginPath+s.options.filename+'"','flashvars="'+V.join("&")+'"'],q?(z.push('width="'+W+'"'),z.push('height="'+Y+'"')):z.push('style="position: fixed; left: -9999em; top: -9999em;"'),s.flashWrapper.innerHTML="";if(s.flashNode=s.flashWrapper.lastChild,s.hide=function(){c=!1,q&&(s.flashNode.style.display="none")},s.show=function(){c=!0,q&&(s.flashNode.style.display="")},s.setSize=function(N,U){s.flashNode.style.width=N+"px",s.flashNode.style.height=U+"px",s.flashApi!==null&&typeof s.flashApi.fire_setSize=="function"&&s.flashApi.fire_setSize(N,U)},s.destroy=function(){s.flashNode.remove()},t&&0":">",'"':"""};return n.replace(/[&<>"]/g,function(u){return i[u]})}function _(n,i){var u=this,d=arguments,v=2x',u.firstChild.href}function m(i){var u=1