(function(c,d,h){var n=d.audio&&d.video,s=!1,m=h.cfg.mediaelement,k=h.bugs,v="jwplayer"==m.player?"mediaelement-swf":"mediaelement-jaris",x=function(){h.ready(v,function(){if(!h.mediaelement.createSWF)h.mediaelement.loadSwf=!0,h.reTest([v],n)})},o;if(n){var q=document.createElement("video");d.videoBuffered="buffered"in q;s="loop"in q;h.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));d.videoBuffered||(h.addPolyfill("mediaelement-native-fix", {f:"mediaelement",test:d.videoBuffered,d:["dom-support"]}),h.reTest("mediaelement-native-fix"))}if(n&&!m.preferFlash){var u=function(t){var d=t.target.parentNode;!m.preferFlash&&(c(t.target).is("audio, video")||d&&c("source:last",d)[0]==t.target)&&h.ready("DOM mediaelement",function(){o&&x();h.ready("WINDOWLOAD "+v,function(){setTimeout(function(){o&&!m.preferFlash&&h.mediaelement.createSWF&&!c(t.target).closest("audio, video").is(".nonnative-api-active")?(m.preferFlash=!0,document.removeEventListener("error", u,!0),c("audio, video").mediaLoad(),h.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+t.target.src)):o||document.removeEventListener("error",u,!0)},20)})})};document.addEventListener("error",u,!0);c("audio, video").each(function(){this.error&&u({target:this})})}k.track=!1;d.track&&function(){if(!k.track)k.track="number"!=typeof c("")[0].readyState;if(!k.track)try{new TextTrackCue(2,3,"")}catch(t){k.track=!0}var d=h.cfg.track,m=function(d){c(d.target).filter("track").each(l)}, l=function(){if(k.track||!d.override&&3==c.prop(this,"readyState"))d.override=!0,h.reTest("track"),document.removeEventListener("error",m,!0),this&&c.nodeName(this,"track")?h.error("track support was overwritten. Please check your vtt including your vtt mime-type"):h.info("track support was overwritten. due to bad browser support")},n=function(){document.addEventListener("error",m,!0);k.track?l():c("track").each(l)};d.override||(h.isReady("track")?n():c(n))}();h.register("mediaelement-core",function(c, j,h,l,r){o=swfobject.hasFlashPlayerVersion("9.0.115");var g=j.mediaelement,q=function(f,e){var f=c(f),d={src:f.attr("src")||"",elem:f,srcProp:f.prop("src")};if(!d.src)return d;var i=f.attr("type");if(i)d.type=i,d.container=c.trim(i.split(";")[0]);else if(e||(e=f[0].nodeName.toLowerCase(),"source"==e&&(e=(f.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),i=g.getTypeForSrc(d.src,e))d.type=i,d.container=i;if(i=f.attr("media"))d.media=i;return d},w=!o&&"postMessage"in h&&n,u= function(){var f;return function(){!f&&w&&(f=!0,j.loader.loadScript("https://www.youtube.com/player_api"),c(function(){j.polyfill("mediaelement-yt")}))}}(),p=function(){o?x():u()};j.addPolyfill("mediaelement-yt",{test:!w,d:["dom-support"]});g.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],'audio/ogg;codecs="opus"':"opus","audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":"mp4,mpg4,m4r,m4a,m4p,m4b,aac".split(","),"audio/wav":["wav"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"],"audio/fla":["flv", "f4a","fla"],"application/x-mpegURL":["m3u8","m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};g.mimeTypes.source=c.extend({},g.mimeTypes.audio,g.mimeTypes.video);g.getTypeForSrc=function(f,e){if(-1!=f.indexOf("youtube.com/watch?")|| -1!=f.indexOf("youtube.com/v/"))return"video/youtube";var f=f.split("?")[0].split("."),f=f[f.length-1],d;c.each(g.mimeTypes[e],function(c,e){if(-1!==e.indexOf(f))return d=c,!1});return d};g.srces=function(f,e){f=c(f);if(e)f.removeAttr("src").removeAttr("type").find("source").remove(),c.isArray(e)||(e=[e]),e.forEach(function(c){var e=l.createElement("source");"string"==typeof c&&(c={src:c});e.setAttribute("src",c.src);c.type&&e.setAttribute("type",c.type);c.media&&e.setAttribute("media",c.media);f.append(e)}); else{var e=[],d=f[0].nodeName.toLowerCase(),g=q(f,d);g.src?e.push(g):c("source",f).each(function(){g=q(this,d);g.src&&e.push(g)});return e}};c.fn.loadMediaSrc=function(f,e){return this.each(function(){e!==r&&(c(this).removeAttr("poster"),e&&c.attr(this,"poster",e));g.srces(this,f);c(this).mediaLoad()})};g.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(","); g.canThirdPlaySrces=function(f,e){var d="";if(o||w)f=c(f),e=e||g.srces(f),c.each(e,function(c,f){if(f.container&&f.src&&(o&&-1!=g.swfMimeTypes.indexOf(f.container)||w&&"video/youtube"==f.container))return d=f,!1});return d};var y={};g.canNativePlaySrces=function(f,e){var d="";if(n){var f=c(f),i=(f[0].nodeName||"").toLowerCase();if(!y[i])return d;e=e||g.srces(f);c.each(e,function(c,e){if(e.type&&y[i].prop._supvalue.call(f[0],e.type))return d=e,!1})}return d};g.setError=function(f,e){e||(e="can't play sources"); c(f).pause().data("mediaerror",e);j.warn("mediaelementError: "+e);setTimeout(function(){c(f).data("mediaerror")&&c(f).trigger("mediaerror")},1)};var E=function(){var c;return function(e,d,i){j.ready(o?v:"mediaelement-yt",function(){g.createSWF?g.createSWF(e,d,i):c||(c=!0,p(),E(e,d,i))});!c&&w&&!g.createSWF&&u()}}(),A=function(c,e,d,i,h){d||!1!==d&&e&&"third"==e.isActive?(d=g.canThirdPlaySrces(c,i))?E(c,d,e):h?g.setError(c,!1):A(c,e,!1,i,!0):(d=g.canNativePlaySrces(c,i))?e&&"third"==e.isActive&&g.setActive(c, "html5",e):h?(g.setError(c,!1),e&&"third"==e.isActive&&g.setActive(c,"html5",e)):A(c,e,!0,i,!0)},B=/^(?:embed|object|datalist)$/i,z=function(d,e){var h=j.data(d,"mediaelementBase")||j.data(d,"mediaelementBase",{}),i=g.srces(d),k=d.parentNode;clearTimeout(h.loadTimer);c.data(d,"mediaerror",!1);if(i.length&&k&&!(1!=k.nodeType||B.test(k.nodeName||"")))e=e||j.data(d,"mediaelement"),A(d,e,m.preferFlash||r,i)};c(l).on("ended",function(d){var e=j.data(d.target,"mediaelement");(!s||e&&"html5"!=e.isActive|| c.prop(d.target,"loop"))&&setTimeout(function(){!c.prop(d.target,"paused")&&c.prop(d.target,"loop")&&c(d.target).prop("currentTime",0).play()},1)});s||j.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(d){var e=j.defineNodeNameProperty(d,"load",{prop:{value:function(){var c=j.data(this,"mediaelement");z(this,c);n&&(!c||"html5"==c.isActive)&&e.prop._supvalue&&e.prop._supvalue.apply(this,arguments)}}});y[d]=j.defineNodeNameProperty(d,"canPlayType",{prop:{value:function(e){var i= "";n&&y[d].prop._supvalue&&(i=y[d].prop._supvalue.call(this,e),"no"==i&&(i=""));!i&&o&&(e=c.trim((e||"").split(";")[0]),-1!=g.swfMimeTypes.indexOf(e)&&(i="maybe"));return i}}})});j.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var c=this,d=j.data(c,"mediaelementBase")||j.data(c,"mediaelementBase",{});clearTimeout(d.loadTimer);d.loadTimer=setTimeout(function(){z(c);c=null},9)}});h=function(){j.addReady(function(d,e){c("video, audio",d).add(e.filter("video, audio")).each(function(){c.browser.msie&& 8=a.duration||a.duration===a._lastDuration)a.duration=d}catch(e){}a.duration&& a.duration!=a._lastDuration?(g(a._elem,"durationchange"),("audio"==a._elemNodeName||a._callMeta)&&k.jwEvents.Model.META(c.extend({duration:a.duration},b),a),a._durationCalcs--):a._durationCalcs++}},p=function(a,b){3>a&&clearTimeout(b._canplaythroughTimer);if(3<=a&&3>b.readyState)b.readyState=a,g(b._elem,"canplay"),clearTimeout(b._canplaythroughTimer),b._canplaythroughTimer=setTimeout(function(){p(4,b)},4E3);if(4<=a&&4>b.readyState)b.readyState=a,g(b._elem,"canplaythrough");b.readyState=a};c.extend(c.event.customEvent, {updatemediaelementdimensions:!0,flashblocker:!0,swfstageresize:!0,mediaelementapichange:!0});k.jwEvents={View:{PLAY:function(a){var b=l(a.id);if(b&&!b.stopPlayPause&&(b._ppFlag=!0,b.paused==a.state)){b.paused=!a.state;if(b.ended)b.ended=!1;g(b._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(a){var b=l(a.id);if(b&&"percentage"in a&&b._bufferedEnd!=a.percentage){b.networkState=100==a.percentage?1:2;(isNaN(b.duration)||5a.percentage||100===a.percentage)&&G(b,a);if(b.ended)b.ended= !1;if(b.duration){2a.percentage?p(3,b):20a.percentage)b._bufferedStart=b.currentTime||0;b._bufferedEnd=a.percentage;b.buffered.length=1;if(100==a.percentage)b.networkState=1,p(4,b);c.event.trigger("progress",s,b._elem,!0)}}},META:function(a,b){if(b=b&&b.networkState?b:l(a.id))if("duration"in a){if(!b._metadata||!((!a.height||b.videoHeight==a.height)&&a.duration===b.duration)){b._metadata=!0;var c=b.duration;if(a.duration)b.duration= a.duration;b._lastDuration=b.duration;if(a.height||a.width)b.videoHeight=a.height||0,b.videoWidth=a.width||0;if(!b.networkState)b.networkState=2;1>b.readyState&&p(1,b);b.duration&&c!==b.duration&&g(b._elem,"durationchange");g(b._elem,"loadedmetadata")}}else b._callMeta=!0},TIME:function(a){var b=l(a.id);if(b&&b.currentTime!==a.position){b.currentTime=a.position;b.duration&&b.durationb.readyState&&p(2,b);if(b.ended)b.ended=!1;g(b._elem,"timeupdate")}},STATE:function(a){var b= l(a.id);if(b)switch(a.newstate){case "BUFFERING":if(b.ended)b.ended=!1;p(1,b);g(b._elem,"waiting");break;case "PLAYING":b.paused=!1;b._ppFlag=!0;b.duration||G(b,a);3>b.readyState&&p(3,b);if(b.ended)b.ended=!1;g(b._elem,"playing");break;case "PAUSED":if(!b.paused&&!b.stopPlayPause)b.paused=!0,b._ppFlag=!0,g(b._elem,"pause");break;case "COMPLETED":4>b.readyState&&p(4,b),b.ended=!0,g(b._elem,"ended")}}},Controller:{ERROR:function(a){var b=l(a.id);b&&k.setError(b._elem,a.message)},SEEK:function(a){var b= l(a.id);if(b){if(b.ended)b.ended=!1;if(b.paused)try{b.jwapi.sendEvent("play","false")}catch(c){}if(b.currentTime!=a.position)b.currentTime=a.position,g(b._elem,"timeupdate")}},VOLUME:function(a){var b=l(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,g(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=l(a.id);if(b&&b.muted!=a.state)b.muted=a.state,g(b._elem,"volumechange")}}}};var y=function(a){var b=!0;c.each(k.jwEvents,function(d,e){c.each(e,function(c){try{a.jwapi["add"+d+"Listener"](c, "jQuery.webshims.mediaelement.jwEvents."+d+"."+c)}catch(e){return b=!1}})});return b},E=function(a){var b=a.actionQueue.length,c=0,d;if(b&&"third"==a.isActive)for(;a.actionQueue.length&&b>c;)c++,d=a.actionQueue.shift(),a.jwapi[d.fn].apply(a.jwapi,d.args);if(a.actionQueue.length)a.actionQueue=[]},A=function(a){a&&(a._ppFlag===s&&c.prop(a._elem,"autoplay")||!a.paused)&&setTimeout(function(){if("third"==a.isActive&&(a._ppFlag===s||!a.paused))try{c(a._elem).play()}catch(b){}},1)};k.playerResize=function(a){a&& (a=n.getElementById(a.replace(I,"")))&&c(a).triggerHandler("swfstageresize")};c(n).on("emptied",function(a){a=r(a.target);A(a)});var B;k.jwPlayerReady=function(a){var b=l(a.id),e=0,f=function(){if(!(9g||6<=g)&&d.warn("mediaelement-swf is only testet with jwplayer 5.6+")}b.wasSwfReady=!0;b.tryedReframeing=0;E(b);A(b)}else clearTimeout(b.reframeTimer),b.reframeTimer=setTimeout(f,9*e),2b.tryedReframeing&& (b.tryedReframeing++,b.shadowElem.css({overflow:"visible"}),setTimeout(function(){b.shadowElem.css({overflow:"hidden"})},16))};if(b&&b.jwapi){if(!b.tryedReframeing)b.tryedReframeing=0;clearTimeout(B);b.jwData=a;b.shadowElem.removeClass("flashblocker-assumed");c.prop(b._elem,"volume",b.volume);c.prop(b._elem,"muted",b.muted);f()}};var z=c.noop;if(x){var f={play:1,playing:1},e="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),J=e.map(function(a){return a+ ".webshimspolyfill"}).join(" "),i=function(a){var b=d.data(a.target,"mediaelement");b&&(a.originalEvent&&a.originalEvent.type===a.type)==("third"==b.activating)&&(a.stopImmediatePropagation(),f[a.type]&&b.isActive!=b.activating&&c(a.target).pause())},z=function(a){c(a).off(J).on(J,i);e.forEach(function(b){d.moveToFirstEvent(a,b)})};z(n)}k.setActive=function(a,b,e){e||(e=d.data(a,"mediaelement"));if(e&&e.isActive!=b){"html5"!=b&&"third"!=b&&d.warn("wrong type for mediaelement activating: "+b);var f= d.data(a,"shadowData");e.activating=b;c(a).pause();e.isActive=b;"third"==b?(f.shadowElement=f.shadowFocusElement=e.shadowElem[0],c(a).addClass("swf-api-active nonnative-api-active").hide().getShadowElement().show()):(c(a).removeClass("swf-api-active nonnative-api-active").show().getShadowElement().hide(),f.shadowElement=f.shadowFocusElement=!1);c(a).trigger("mediaelementapichange")}};var L=function(){var a="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","), b=a.length;return function(c){if(c){var d=b,e=c.networkState;for(p(0,c);--d;)delete c[a[d]];c.actionQueue=[];c.buffered.length=0;e&&g(c._elem,"emptied")}}}(),H=function(a,b){var d=a._elem,e=a.shadowElem;c(d)[b?"addClass":"removeClass"]("webshims-controls");"audio"==a._elemNodeName&&!b?e.css({width:0,height:0}):e.css({width:d.style.width||c(d).width(),height:d.style.height||c(d).height()})};k.createSWF=function(a,b,e){if(o){1>q?q=1:q++;var f=c.extend({},m.vars,{image:c.prop(a,"poster")||"",file:b.srcProp}), g=c(a).data("vars")||{};e||(e=d.data(a,"mediaelement"));if(e&&e.swfCreated)k.setActive(a,"third",e),L(e),e.currentSrc=b.srcProp,c.extend(f,g),m.changeSWF(f,a,b,e,"load"),C(a,"sendEvent",["LOAD",f]);else{var F=c.prop(a,"controls"),D="jwplayer-"+d.getID(a),h=c.extend({},m.params,c(a).data("params")),i=a.nodeName.toLowerCase(),n=c.extend({},m.attrs,{name:D,id:D},c(a).data("attrs")),l=c('
').css({position:"relative", overflow:"hidden"}),e=d.data(a,"mediaelement",d.objectCreate(j,{actionQueue:{value:[]},shadowElem:{value:l},_elemNodeName:{value:i},_elem:{value:a},currentSrc:{value:b.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(a){if(a>=e.buffered.length)d.error("buffered index size error");else return 0},end:function(a){if(a>=e.buffered.length)d.error("buffered index size error");else return(e.duration-e._bufferedStart)*e._bufferedEnd/100+e._bufferedStart},length:0}}}));H(e,F);l.insertBefore(a); x&&c.extend(e,{volume:c.prop(a,"volume"),muted:c.prop(a,"muted")});c.extend(f,{id:D,controlbar:F?m.vars.controlbar||("video"==i?"over":"bottom"):"video"==i?"none":"bottom",icons:""+(F&&"video"==i)},g,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});f.plugins=f.plugins?f.plugins+(","+w):w;d.addShadowDom(a,l);z(a);k.setActive(a,"third",e);m.changeSWF(f,a,b,e,"embed");c(a).on("updatemediaelementdimensions updateshadowdom",function(){H(e,c.prop(a,"controls"))});v.embedSWF(K,D,"100%","100%", "9.0.0",!1,f,h,n,function(b){if(b.success)e.jwapi=b.ref,F||c(b.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!b.ref.parentNode&&l[0].parentNode||"none"==b.ref.style.display)l.addClass("flashblocker-assumed"),c(a).trigger("flashblocker"),d.warn("flashblocker assumed");c(b.ref).css({minHeight:"2px",minWidth:"2px",display:"block"})},9),B||(clearTimeout(B),B=setTimeout(function(){var a=c(b.ref);1a[0].offsetWidth||2>a[0].offsetHeight)&&d.warn("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){c(a).mediaLoad()},1)};var C=function(a,b,c,d){return(d=d||r(a))?(d.jwapi&&d.jwapi[b]?d.jwapi[b].apply(d.jwapi,c||[]):(d.actionQueue.push({fn:b,args:c}),10< d.actionQueue.length&&setTimeout(function(){5a||100d.browserVersion,O={object:1,OBJECT:1};c.cleanData=function(a){var b,c,d;if(a&&(c=a.length)&&q)for(b=0;b