// Avoid `console` errors in browsers that lack a console.
(function(){var method;var noop=function(){};var methods=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"];var length=methods.length;var console=window.console=window.console||{};while(length--){method=methods[length];
// Only stub undefined methods.
if(!console[method]){console[method]=noop}}})();
// Place any jQuery/helper plugins in here.
/*
 * jQuery FlexSlider v2.2.2
 * Copyright 2012 WooThemes
 * Contributing Author: Tyler Smith
 */(function($){
//FlexSlider: Object Instance
$.flexslider=function(el,options){var slider=$(el);
// making variables public
slider.vars=$.extend({},$.flexslider.defaults,options);var namespace=slider.vars.namespace,msGesture=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,touch=("ontouchstart"in window||msGesture||window.DocumentTouch&&document instanceof DocumentTouch)&&slider.vars.touch,
// depricating this idea, as devices are being released with both of these events
//eventType = (touch) ? "touchend" : "click",
eventType="click touchend MSPointerUp",watchedEvent="",watchedEventClearTimer,vertical=slider.vars.direction==="vertical",reverse=slider.vars.reverse,carousel=slider.vars.itemWidth>0,fade=slider.vars.animation==="fade",asNav=slider.vars.asNavFor!=="",methods={},focused=true;
// Store a reference to the slider object
$.data(el,"flexslider",slider);
// Private slider methods
methods={init:function(){slider.animating=false;
// Get current slide and make sure it is a number
slider.currentSlide=parseInt(slider.vars.startAt?slider.vars.startAt:0,10);if(isNaN(slider.currentSlide))slider.currentSlide=0;slider.animatingTo=slider.currentSlide;slider.atEnd=slider.currentSlide===0||slider.currentSlide===slider.last;slider.containerSelector=slider.vars.selector.substr(0,slider.vars.selector.search(" "));slider.slides=$(slider.vars.selector,slider);slider.container=$(slider.containerSelector,slider);slider.count=slider.slides.length;
// SYNC:
slider.syncExists=$(slider.vars.sync).length>0;
// SLIDE:
if(slider.vars.animation==="slide")slider.vars.animation="swing";slider.prop=vertical?"top":"marginLeft";slider.args={};
// SLIDESHOW:
slider.manualPause=false;slider.stopped=false;
//PAUSE WHEN INVISIBLE
slider.started=false;slider.startTimeout=null;
// TOUCH/USECSS:
slider.transitions=!slider.vars.video&&!fade&&slider.vars.useCSS&&function(){var obj=document.createElement("div"),props=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var i in props){if(obj.style[props[i]]!==undefined){slider.pfx=props[i].replace("Perspective","").toLowerCase();slider.prop="-"+slider.pfx+"-transform";return true}}return false}();
// CONTROLSCONTAINER:
if(slider.vars.controlsContainer!=="")slider.controlsContainer=$(slider.vars.controlsContainer).length>0&&$(slider.vars.controlsContainer);
// MANUAL:
if(slider.vars.manualControls!=="")slider.manualControls=$(slider.vars.manualControls).length>0&&$(slider.vars.manualControls);
// RANDOMIZE:
if(slider.vars.randomize){slider.slides.sort(function(){return Math.round(Math.random())-.5});slider.container.empty().append(slider.slides)}slider.doMath();
// INIT
slider.setup("init");
// CONTROLNAV:
if(slider.vars.controlNav)methods.controlNav.setup();
// DIRECTIONNAV:
if(slider.vars.directionNav)methods.directionNav.setup();
// KEYBOARD:
if(slider.vars.keyboard&&($(slider.containerSelector).length===1||slider.vars.multipleKeyboard)){$(document).bind("keyup",function(event){var keycode=event.keyCode;if(!slider.animating&&(keycode===39||keycode===37)){var target=keycode===39?slider.getTarget("next"):keycode===37?slider.getTarget("prev"):false;slider.flexAnimate(target,slider.vars.pauseOnAction)}})}
// MOUSEWHEEL:
if(slider.vars.mousewheel){slider.bind("mousewheel",function(event,delta,deltaX,deltaY){event.preventDefault();var target=delta<0?slider.getTarget("next"):slider.getTarget("prev");slider.flexAnimate(target,slider.vars.pauseOnAction)})}
// PAUSEPLAY
if(slider.vars.pausePlay)methods.pausePlay.setup();
//PAUSE WHEN INVISIBLE
if(slider.vars.slideshow&&slider.vars.pauseInvisible)methods.pauseInvisible.init();
// SLIDSESHOW
if(slider.vars.slideshow){if(slider.vars.pauseOnHover){slider.hover(function(){if(!slider.manualPlay&&!slider.manualPause)slider.pause()},function(){if(!slider.manualPause&&!slider.manualPlay&&!slider.stopped)slider.play()})}
// initialize animation
//If we're visible, or we don't use PageVisibility API
if(!slider.vars.pauseInvisible||!methods.pauseInvisible.isHidden()){slider.vars.initDelay>0?slider.startTimeout=setTimeout(slider.play,slider.vars.initDelay):slider.play()}}
// ASNAV:
if(asNav)methods.asNav.setup();
// TOUCH
if(touch&&slider.vars.touch)methods.touch();
// FADE&&SMOOTHHEIGHT || SLIDE:
if(!fade||fade&&slider.vars.smoothHeight)$(window).bind("resize orientationchange focus",methods.resize);slider.find("img").attr("draggable","false");
// API: start() Callback
setTimeout(function(){slider.vars.start(slider)},200)},asNav:{setup:function(){slider.asNav=true;slider.animatingTo=Math.floor(slider.currentSlide/slider.move);slider.currentItem=slider.currentSlide;slider.slides.removeClass(namespace+"active-slide").eq(slider.currentItem).addClass(namespace+"active-slide");if(!msGesture){slider.slides.on(eventType,function(e){e.preventDefault();var $slide=$(this),target=$slide.index();var posFromLeft=$slide.offset().left-$(slider).scrollLeft();// Find position of slide relative to left of slider container
if(posFromLeft<=0&&$slide.hasClass(namespace+"active-slide")){slider.flexAnimate(slider.getTarget("prev"),true)}else if(!$(slider.vars.asNavFor).data("flexslider").animating&&!$slide.hasClass(namespace+"active-slide")){slider.direction=slider.currentItem<target?"next":"prev";slider.flexAnimate(target,slider.vars.pauseOnAction,false,true,true)}})}else{el._slider=slider;slider.slides.each(function(){var that=this;that._gesture=new MSGesture;that._gesture.target=that;that.addEventListener("MSPointerDown",function(e){e.preventDefault();if(e.currentTarget._gesture)e.currentTarget._gesture.addPointer(e.pointerId)},false);that.addEventListener("MSGestureTap",function(e){e.preventDefault();var $slide=$(this),target=$slide.index();if(!$(slider.vars.asNavFor).data("flexslider").animating&&!$slide.hasClass("active")){slider.direction=slider.currentItem<target?"next":"prev";slider.flexAnimate(target,slider.vars.pauseOnAction,false,true,true)}})})}}},controlNav:{setup:function(){if(!slider.manualControls){methods.controlNav.setupPaging()}else{// MANUALCONTROLS:
methods.controlNav.setupManual()}},setupPaging:function(){var type=slider.vars.controlNav==="thumbnails"?"control-thumbs":"control-paging",j=1,item,slide;slider.controlNavScaffold=$('<ol class="'+namespace+"control-nav "+namespace+type+'"></ol>');if(slider.pagingCount>1){for(var i=0;i<slider.pagingCount;i++){slide=slider.slides.eq(i);item=slider.vars.controlNav==="thumbnails"?'<img src="'+slide.attr("data-thumb")+'"/>':"<a>"+j+"</a>";if("thumbnails"===slider.vars.controlNav&&true===slider.vars.thumbCaptions){var captn=slide.attr("data-thumbcaption");if(""!=captn&&undefined!=captn)item+='<span class="'+namespace+'caption">'+captn+"</span>"}slider.controlNavScaffold.append("<li>"+item+"</li>");j++}}
// CONTROLSCONTAINER:
slider.controlsContainer?$(slider.controlsContainer).append(slider.controlNavScaffold):slider.append(slider.controlNavScaffold);methods.controlNav.set();methods.controlNav.active();slider.controlNavScaffold.delegate("a, img",eventType,function(event){event.preventDefault();if(watchedEvent===""||watchedEvent===event.type){var $this=$(this),target=slider.controlNav.index($this);if(!$this.hasClass(namespace+"active")){slider.direction=target>slider.currentSlide?"next":"prev";slider.flexAnimate(target,slider.vars.pauseOnAction)}}
// setup flags to prevent event duplication
if(watchedEvent===""){watchedEvent=event.type}methods.setToClearWatchedEvent()})},setupManual:function(){slider.controlNav=slider.manualControls;methods.controlNav.active();slider.controlNav.bind(eventType,function(event){event.preventDefault();if(watchedEvent===""||watchedEvent===event.type){var $this=$(this),target=slider.controlNav.index($this);if(!$this.hasClass(namespace+"active")){target>slider.currentSlide?slider.direction="next":slider.direction="prev";slider.flexAnimate(target,slider.vars.pauseOnAction)}}
// setup flags to prevent event duplication
if(watchedEvent===""){watchedEvent=event.type}methods.setToClearWatchedEvent()})},set:function(){var selector=slider.vars.controlNav==="thumbnails"?"img":"a";slider.controlNav=$("."+namespace+"control-nav li "+selector,slider.controlsContainer?slider.controlsContainer:slider)},active:function(){slider.controlNav.removeClass(namespace+"active").eq(slider.animatingTo).addClass(namespace+"active")},update:function(action,pos){if(slider.pagingCount>1&&action==="add"){slider.controlNavScaffold.append($("<li><a>"+slider.count+"</a></li>"))}else if(slider.pagingCount===1){slider.controlNavScaffold.find("li").remove()}else{slider.controlNav.eq(pos).closest("li").remove()}methods.controlNav.set();slider.pagingCount>1&&slider.pagingCount!==slider.controlNav.length?slider.update(pos,action):methods.controlNav.active()}},directionNav:{setup:function(){var directionNavScaffold=$('<ul class="'+namespace+'direction-nav"><li><a class="'+namespace+'prev" href="#">'+slider.vars.prevText+'</a></li><li><a class="'+namespace+'next" href="#">'+slider.vars.nextText+"</a></li></ul>");
// CONTROLSCONTAINER:
if(slider.controlsContainer){$(slider.controlsContainer).append(directionNavScaffold);slider.directionNav=$("."+namespace+"direction-nav li a",slider.controlsContainer)}else{slider.append(directionNavScaffold);slider.directionNav=$("."+namespace+"direction-nav li a",slider)}methods.directionNav.update();slider.directionNav.bind(eventType,function(event){event.preventDefault();var target;if(watchedEvent===""||watchedEvent===event.type){target=$(this).hasClass(namespace+"next")?slider.getTarget("next"):slider.getTarget("prev");slider.flexAnimate(target,slider.vars.pauseOnAction)}
// setup flags to prevent event duplication
if(watchedEvent===""){watchedEvent=event.type}methods.setToClearWatchedEvent()})},update:function(){var disabledClass=namespace+"disabled";if(slider.pagingCount===1){slider.directionNav.addClass(disabledClass).attr("tabindex","-1")}else if(!slider.vars.animationLoop){if(slider.animatingTo===0){slider.directionNav.removeClass(disabledClass).filter("."+namespace+"prev").addClass(disabledClass).attr("tabindex","-1")}else if(slider.animatingTo===slider.last){slider.directionNav.removeClass(disabledClass).filter("."+namespace+"next").addClass(disabledClass).attr("tabindex","-1")}else{slider.directionNav.removeClass(disabledClass).removeAttr("tabindex")}}else{slider.directionNav.removeClass(disabledClass).removeAttr("tabindex")}}},pausePlay:{setup:function(){var pausePlayScaffold=$('<div class="'+namespace+'pauseplay"><a></a></div>');
// CONTROLSCONTAINER:
if(slider.controlsContainer){slider.controlsContainer.append(pausePlayScaffold);slider.pausePlay=$("."+namespace+"pauseplay a",slider.controlsContainer)}else{slider.append(pausePlayScaffold);slider.pausePlay=$("."+namespace+"pauseplay a",slider)}methods.pausePlay.update(slider.vars.slideshow?namespace+"pause":namespace+"play");slider.pausePlay.bind(eventType,function(event){event.preventDefault();if(watchedEvent===""||watchedEvent===event.type){if($(this).hasClass(namespace+"pause")){slider.manualPause=true;slider.manualPlay=false;slider.pause()}else{slider.manualPause=false;slider.manualPlay=true;slider.play()}}
// setup flags to prevent event duplication
if(watchedEvent===""){watchedEvent=event.type}methods.setToClearWatchedEvent()})},update:function(state){state==="play"?slider.pausePlay.removeClass(namespace+"pause").addClass(namespace+"play").html(slider.vars.playText):slider.pausePlay.removeClass(namespace+"play").addClass(namespace+"pause").html(slider.vars.pauseText)}},touch:function(){var startX,startY,offset,cwidth,dx,startT,scrolling=false,localX=0,localY=0,accDx=0;if(!msGesture){el.addEventListener("touchstart",onTouchStart,false);function onTouchStart(e){if(slider.animating){e.preventDefault()}else if(window.navigator.msPointerEnabled||e.touches.length===1){slider.pause();
// CAROUSEL:
cwidth=vertical?slider.h:slider.w;startT=Number(new Date);
// CAROUSEL:
// Local vars for X and Y points.
localX=e.touches[0].pageX;localY=e.touches[0].pageY;offset=carousel&&reverse&&slider.animatingTo===slider.last?0:carousel&&reverse?slider.limit-(slider.itemW+slider.vars.itemMargin)*slider.move*slider.animatingTo:carousel&&slider.currentSlide===slider.last?slider.limit:carousel?(slider.itemW+slider.vars.itemMargin)*slider.move*slider.currentSlide:reverse?(slider.last-slider.currentSlide+slider.cloneOffset)*cwidth:(slider.currentSlide+slider.cloneOffset)*cwidth;startX=vertical?localY:localX;startY=vertical?localX:localY;el.addEventListener("touchmove",onTouchMove,false);el.addEventListener("touchend",onTouchEnd,false)}}function onTouchMove(e){
// Local vars for X and Y points.
localX=e.touches[0].pageX;localY=e.touches[0].pageY;dx=vertical?startX-localY:startX-localX;scrolling=vertical?Math.abs(dx)<Math.abs(localX-startY):Math.abs(dx)<Math.abs(localY-startY);var fxms=500;if(!scrolling||Number(new Date)-startT>fxms){e.preventDefault();if(!fade&&slider.transitions){if(!slider.vars.animationLoop){dx=dx/(slider.currentSlide===0&&dx<0||slider.currentSlide===slider.last&&dx>0?Math.abs(dx)/cwidth+2:1)}slider.setProps(offset+dx,"setTouch")}}}function onTouchEnd(e){
// finish the touch by undoing the touch session
el.removeEventListener("touchmove",onTouchMove,false);if(slider.animatingTo===slider.currentSlide&&!scrolling&&!(dx===null)){var updateDx=reverse?-dx:dx,target=updateDx>0?slider.getTarget("next"):slider.getTarget("prev");if(slider.canAdvance(target)&&(Number(new Date)-startT<550&&Math.abs(updateDx)>50||Math.abs(updateDx)>cwidth/2)){slider.flexAnimate(target,slider.vars.pauseOnAction)}else{if(!fade)slider.flexAnimate(slider.currentSlide,slider.vars.pauseOnAction,true)}}el.removeEventListener("touchend",onTouchEnd,false);startX=null;startY=null;dx=null;offset=null}}else{el.style.msTouchAction="none";el._gesture=new MSGesture;el._gesture.target=el;el.addEventListener("MSPointerDown",onMSPointerDown,false);el._slider=slider;el.addEventListener("MSGestureChange",onMSGestureChange,false);el.addEventListener("MSGestureEnd",onMSGestureEnd,false);function onMSPointerDown(e){e.stopPropagation();if(slider.animating){e.preventDefault()}else{slider.pause();el._gesture.addPointer(e.pointerId);accDx=0;cwidth=vertical?slider.h:slider.w;startT=Number(new Date);
// CAROUSEL:
offset=carousel&&reverse&&slider.animatingTo===slider.last?0:carousel&&reverse?slider.limit-(slider.itemW+slider.vars.itemMargin)*slider.move*slider.animatingTo:carousel&&slider.currentSlide===slider.last?slider.limit:carousel?(slider.itemW+slider.vars.itemMargin)*slider.move*slider.currentSlide:reverse?(slider.last-slider.currentSlide+slider.cloneOffset)*cwidth:(slider.currentSlide+slider.cloneOffset)*cwidth}}function onMSGestureChange(e){e.stopPropagation();var slider=e.target._slider;if(!slider){return}var transX=-e.translationX,transY=-e.translationY;
//Accumulate translations.
accDx=accDx+(vertical?transY:transX);dx=accDx;scrolling=vertical?Math.abs(accDx)<Math.abs(-transX):Math.abs(accDx)<Math.abs(-transY);if(e.detail===e.MSGESTURE_FLAG_INERTIA){setImmediate(function(){el._gesture.stop()});return}if(!scrolling||Number(new Date)-startT>500){e.preventDefault();if(!fade&&slider.transitions){if(!slider.vars.animationLoop){dx=accDx/(slider.currentSlide===0&&accDx<0||slider.currentSlide===slider.last&&accDx>0?Math.abs(accDx)/cwidth+2:1)}slider.setProps(offset+dx,"setTouch")}}}function onMSGestureEnd(e){e.stopPropagation();var slider=e.target._slider;if(!slider){return}if(slider.animatingTo===slider.currentSlide&&!scrolling&&!(dx===null)){var updateDx=reverse?-dx:dx,target=updateDx>0?slider.getTarget("next"):slider.getTarget("prev");if(slider.canAdvance(target)&&(Number(new Date)-startT<550&&Math.abs(updateDx)>50||Math.abs(updateDx)>cwidth/2)){slider.flexAnimate(target,slider.vars.pauseOnAction)}else{if(!fade)slider.flexAnimate(slider.currentSlide,slider.vars.pauseOnAction,true)}}startX=null;startY=null;dx=null;offset=null;accDx=0}}},resize:function(){if(!slider.animating&&slider.is(":visible")){if(!carousel)slider.doMath();if(fade){
// SMOOTH HEIGHT:
methods.smoothHeight()}else if(carousel){//CAROUSEL:
slider.slides.width(slider.computedW);slider.update(slider.pagingCount);slider.setProps()}else if(vertical){//VERTICAL:
slider.viewport.height(slider.h);slider.setProps(slider.h,"setTotal")}else{
// SMOOTH HEIGHT:
if(slider.vars.smoothHeight)methods.smoothHeight();slider.newSlides.width(slider.computedW);slider.setProps(slider.computedW,"setTotal")}}},smoothHeight:function(dur){if(!vertical||fade){var $obj=fade?slider:slider.viewport;dur?$obj.animate({height:slider.slides.eq(slider.animatingTo).height()},dur):$obj.height(slider.slides.eq(slider.animatingTo).height())}},sync:function(action){var $obj=$(slider.vars.sync).data("flexslider"),target=slider.animatingTo;switch(action){case"animate":$obj.flexAnimate(target,slider.vars.pauseOnAction,false,true);break;case"play":if(!$obj.playing&&!$obj.asNav){$obj.play()}break;case"pause":$obj.pause();break}},uniqueID:function($clone){$clone.find("[id]").each(function(){var $this=$(this);$this.attr("id",$this.attr("id")+"_clone")});return $clone},pauseInvisible:{visProp:null,init:function(){var prefixes=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var i=0;i<prefixes.length;i++){if(prefixes[i]+"Hidden"in document)methods.pauseInvisible.visProp=prefixes[i]+"Hidden"}if(methods.pauseInvisible.visProp){var evtname=methods.pauseInvisible.visProp.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(evtname,function(){if(methods.pauseInvisible.isHidden()){if(slider.startTimeout)clearTimeout(slider.startTimeout);//If clock is ticking, stop timer and prevent from starting while invisible
else slider.pause();//Or just pause
}else{if(slider.started)slider.play();//Initiated before, just play
else slider.vars.initDelay>0?setTimeout(slider.play,slider.vars.initDelay):slider.play();//Didn't init before: simply init or wait for it
}})}},isHidden:function(){return document[methods.pauseInvisible.visProp]||false}},setToClearWatchedEvent:function(){clearTimeout(watchedEventClearTimer);watchedEventClearTimer=setTimeout(function(){watchedEvent=""},3e3)}};
// public methods
slider.flexAnimate=function(target,pause,override,withSync,fromNav){if(!slider.vars.animationLoop&&target!==slider.currentSlide){slider.direction=target>slider.currentSlide?"next":"prev"}if(asNav&&slider.pagingCount===1)slider.direction=slider.currentItem<target?"next":"prev";if(!slider.animating&&(slider.canAdvance(target,fromNav)||override)&&slider.is(":visible")){if(asNav&&withSync){var master=$(slider.vars.asNavFor).data("flexslider");slider.atEnd=target===0||target===slider.count-1;master.flexAnimate(target,true,false,true,fromNav);slider.direction=slider.currentItem<target?"next":"prev";master.direction=slider.direction;if(Math.ceil((target+1)/slider.visible)-1!==slider.currentSlide&&target!==0){slider.currentItem=target;slider.slides.removeClass(namespace+"active-slide").eq(target).addClass(namespace+"active-slide");target=Math.floor(target/slider.visible)}else{slider.currentItem=target;slider.slides.removeClass(namespace+"active-slide").eq(target).addClass(namespace+"active-slide");return false}}slider.animating=true;slider.animatingTo=target;
// SLIDESHOW:
if(pause)slider.pause();
// API: before() animation Callback
slider.vars.before(slider);
// SYNC:
if(slider.syncExists&&!fromNav)methods.sync("animate");
// CONTROLNAV
if(slider.vars.controlNav)methods.controlNav.active();
// !CAROUSEL:
// CANDIDATE: slide active class (for add/remove slide)
if(!carousel)slider.slides.removeClass(namespace+"active-slide").eq(target).addClass(namespace+"active-slide");
// INFINITE LOOP:
// CANDIDATE: atEnd
slider.atEnd=target===0||target===slider.last;
// DIRECTIONNAV:
if(slider.vars.directionNav)methods.directionNav.update();if(target===slider.last){
// API: end() of cycle Callback
slider.vars.end(slider);
// SLIDESHOW && !INFINITE LOOP:
if(!slider.vars.animationLoop)slider.pause()}
// SLIDE:
if(!fade){var dimension=vertical?slider.slides.filter(":first").height():slider.computedW,margin,slideString,calcNext;
// INFINITE LOOP / REVERSE:
if(carousel){
//margin = (slider.vars.itemWidth > slider.w) ? slider.vars.itemMargin * 2 : slider.vars.itemMargin;
margin=slider.vars.itemMargin;calcNext=(slider.itemW+margin)*slider.move*slider.animatingTo;slideString=calcNext>slider.limit&&slider.visible!==1?slider.limit:calcNext}else if(slider.currentSlide===0&&target===slider.count-1&&slider.vars.animationLoop&&slider.direction!=="next"){slideString=reverse?(slider.count+slider.cloneOffset)*dimension:0}else if(slider.currentSlide===slider.last&&target===0&&slider.vars.animationLoop&&slider.direction!=="prev"){slideString=reverse?0:(slider.count+1)*dimension}else{slideString=reverse?(slider.count-1-target+slider.cloneOffset)*dimension:(target+slider.cloneOffset)*dimension}slider.setProps(slideString,"",slider.vars.animationSpeed);if(slider.transitions){if(!slider.vars.animationLoop||!slider.atEnd){slider.animating=false;slider.currentSlide=slider.animatingTo}slider.container.unbind("webkitTransitionEnd transitionend");slider.container.bind("webkitTransitionEnd transitionend",function(){slider.wrapup(dimension)})}else{slider.container.animate(slider.args,slider.vars.animationSpeed,slider.vars.easing,function(){slider.wrapup(dimension)})}}else{// FADE:
if(!touch){
//slider.slides.eq(slider.currentSlide).fadeOut(slider.vars.animationSpeed, slider.vars.easing);
//slider.slides.eq(target).fadeIn(slider.vars.animationSpeed, slider.vars.easing, slider.wrapup);
slider.slides.eq(slider.currentSlide).css({zIndex:1}).animate({opacity:0},slider.vars.animationSpeed,slider.vars.easing);slider.slides.eq(target).css({zIndex:2}).animate({opacity:1},slider.vars.animationSpeed,slider.vars.easing,slider.wrapup)}else{slider.slides.eq(slider.currentSlide).css({opacity:0,zIndex:1});slider.slides.eq(target).css({opacity:1,zIndex:2});slider.wrapup(dimension)}}
// SMOOTH HEIGHT:
if(slider.vars.smoothHeight)methods.smoothHeight(slider.vars.animationSpeed)}};slider.wrapup=function(dimension){
// SLIDE:
if(!fade&&!carousel){if(slider.currentSlide===0&&slider.animatingTo===slider.last&&slider.vars.animationLoop){slider.setProps(dimension,"jumpEnd")}else if(slider.currentSlide===slider.last&&slider.animatingTo===0&&slider.vars.animationLoop){slider.setProps(dimension,"jumpStart")}}slider.animating=false;slider.currentSlide=slider.animatingTo;
// API: after() animation Callback
slider.vars.after(slider)};
// SLIDESHOW:
slider.animateSlides=function(){if(!slider.animating&&focused)slider.flexAnimate(slider.getTarget("next"))};
// SLIDESHOW:
slider.pause=function(){clearInterval(slider.animatedSlides);slider.animatedSlides=null;slider.playing=false;
// PAUSEPLAY:
if(slider.vars.pausePlay)methods.pausePlay.update("play");
// SYNC:
if(slider.syncExists)methods.sync("pause")};
// SLIDESHOW:
slider.play=function(){if(slider.playing)clearInterval(slider.animatedSlides);slider.animatedSlides=slider.animatedSlides||setInterval(slider.animateSlides,slider.vars.slideshowSpeed);slider.started=slider.playing=true;
// PAUSEPLAY:
if(slider.vars.pausePlay)methods.pausePlay.update("pause");
// SYNC:
if(slider.syncExists)methods.sync("play")};
// STOP:
slider.stop=function(){slider.pause();slider.stopped=true};slider.canAdvance=function(target,fromNav){
// ASNAV:
var last=asNav?slider.pagingCount-1:slider.last;return fromNav?true:asNav&&slider.currentItem===slider.count-1&&target===0&&slider.direction==="prev"?true:asNav&&slider.currentItem===0&&target===slider.pagingCount-1&&slider.direction!=="next"?false:target===slider.currentSlide&&!asNav?false:slider.vars.animationLoop?true:slider.atEnd&&slider.currentSlide===0&&target===last&&slider.direction!=="next"?false:slider.atEnd&&slider.currentSlide===last&&target===0&&slider.direction==="next"?false:true};slider.getTarget=function(dir){slider.direction=dir;if(dir==="next"){return slider.currentSlide===slider.last?0:slider.currentSlide+1}else{return slider.currentSlide===0?slider.last:slider.currentSlide-1}};
// SLIDE:
slider.setProps=function(pos,special,dur){var target=function(){var posCheck=pos?pos:(slider.itemW+slider.vars.itemMargin)*slider.move*slider.animatingTo,posCalc=function(){if(carousel){return special==="setTouch"?pos:reverse&&slider.animatingTo===slider.last?0:reverse?slider.limit-(slider.itemW+slider.vars.itemMargin)*slider.move*slider.animatingTo:slider.animatingTo===slider.last?slider.limit:posCheck}else{switch(special){case"setTotal":return reverse?(slider.count-1-slider.currentSlide+slider.cloneOffset)*pos:(slider.currentSlide+slider.cloneOffset)*pos;case"setTouch":return reverse?pos:pos;case"jumpEnd":return reverse?pos:slider.count*pos;case"jumpStart":return reverse?slider.count*pos:pos;default:return pos}}}();return posCalc*-1+"px"}();if(slider.transitions){target=vertical?"translate3d(0,"+target+",0)":"translate3d("+target+",0,0)";dur=dur!==undefined?dur/1e3+"s":"0s";slider.container.css("-"+slider.pfx+"-transition-duration",dur);slider.container.css("transition-duration",dur)}slider.args[slider.prop]=target;if(slider.transitions||dur===undefined)slider.container.css(slider.args);slider.container.css("transform",target)};slider.setup=function(type){
// SLIDE:
if(!fade){var sliderOffset,arr;if(type==="init"){slider.viewport=$('<div class="'+namespace+'viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(slider).append(slider.container);
// INFINITE LOOP:
slider.cloneCount=0;slider.cloneOffset=0;
// REVERSE:
if(reverse){arr=$.makeArray(slider.slides).reverse();slider.slides=$(arr);slider.container.empty().append(slider.slides)}}
// INFINITE LOOP && !CAROUSEL:
if(slider.vars.animationLoop&&!carousel){slider.cloneCount=2;slider.cloneOffset=1;
// clear out old clones
if(type!=="init")slider.container.find(".clone").remove();slider.container.append(slider.slides.first().clone().addClass("clone").attr("aria-hidden","true")).prepend(slider.slides.last().clone().addClass("clone").attr("aria-hidden","true"));methods.uniqueID(slider.slides.first().clone().addClass("clone")).appendTo(slider.container);methods.uniqueID(slider.slides.last().clone().addClass("clone")).prependTo(slider.container)}slider.newSlides=$(slider.vars.selector,slider);sliderOffset=reverse?slider.count-1-slider.currentSlide+slider.cloneOffset:slider.currentSlide+slider.cloneOffset;
// VERTICAL:
if(vertical&&!carousel){slider.container.height((slider.count+slider.cloneCount)*200+"%").css("position","absolute").width("100%");setTimeout(function(){slider.newSlides.css({display:"block"});slider.doMath();slider.viewport.height(slider.h);slider.setProps(sliderOffset*slider.h,"init")},type==="init"?100:0)}else{slider.container.width((slider.count+slider.cloneCount)*200+"%");slider.setProps(sliderOffset*slider.computedW,"init");setTimeout(function(){slider.doMath();slider.newSlides.css({width:slider.computedW,float:"left",display:"block"});
// SMOOTH HEIGHT:
if(slider.vars.smoothHeight)methods.smoothHeight()},type==="init"?100:0)}}else{// FADE:
slider.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"});if(type==="init"){if(!touch){
//slider.slides.eq(slider.currentSlide).fadeIn(slider.vars.animationSpeed, slider.vars.easing);
slider.slides.css({opacity:0,display:"block",zIndex:1}).eq(slider.currentSlide).css({zIndex:2}).animate({opacity:1},slider.vars.animationSpeed,slider.vars.easing)}else{slider.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+slider.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(slider.currentSlide).css({opacity:1,zIndex:2})}}
// SMOOTH HEIGHT:
if(slider.vars.smoothHeight)methods.smoothHeight()}
// !CAROUSEL:
// CANDIDATE: active slide
if(!carousel)slider.slides.removeClass(namespace+"active-slide").eq(slider.currentSlide).addClass(namespace+"active-slide");
//FlexSlider: init() Callback
slider.vars.init(slider)};slider.doMath=function(){var slide=slider.slides.first(),slideMargin=slider.vars.itemMargin,minItems=slider.vars.minItems,maxItems=slider.vars.maxItems;slider.w=slider.viewport===undefined?slider.width():slider.viewport.width();slider.h=slide.height();slider.boxPadding=slide.outerWidth()-slide.width();
// CAROUSEL:
if(carousel){slider.itemT=slider.vars.itemWidth+slideMargin;slider.minW=minItems?minItems*slider.itemT:slider.w;slider.maxW=maxItems?maxItems*slider.itemT-slideMargin:slider.w;slider.itemW=slider.minW>slider.w?(slider.w-slideMargin*(minItems-1))/minItems:slider.maxW<slider.w?(slider.w-slideMargin*(maxItems-1))/maxItems:slider.vars.itemWidth>slider.w?slider.w:slider.vars.itemWidth;slider.visible=Math.floor(slider.w/slider.itemW);slider.move=slider.vars.move>0&&slider.vars.move<slider.visible?slider.vars.move:slider.visible;slider.pagingCount=Math.ceil((slider.count-slider.visible)/slider.move+1);slider.last=slider.pagingCount-1;slider.limit=slider.pagingCount===1?0:slider.vars.itemWidth>slider.w?slider.itemW*(slider.count-1)+slideMargin*(slider.count-1):(slider.itemW+slideMargin)*slider.count-slider.w-slideMargin}else{slider.itemW=slider.w;slider.pagingCount=slider.count;slider.last=slider.count-1}slider.computedW=slider.itemW-slider.boxPadding};slider.update=function(pos,action){slider.doMath();
// update currentSlide and slider.animatingTo if necessary
if(!carousel){if(pos<slider.currentSlide){slider.currentSlide+=1}else if(pos<=slider.currentSlide&&pos!==0){slider.currentSlide-=1}slider.animatingTo=slider.currentSlide}
// update controlNav
if(slider.vars.controlNav&&!slider.manualControls){if(action==="add"&&!carousel||slider.pagingCount>slider.controlNav.length){methods.controlNav.update("add")}else if(action==="remove"&&!carousel||slider.pagingCount<slider.controlNav.length){if(carousel&&slider.currentSlide>slider.last){slider.currentSlide-=1;slider.animatingTo-=1}methods.controlNav.update("remove",slider.last)}}
// update directionNav
if(slider.vars.directionNav)methods.directionNav.update()};slider.addSlide=function(obj,pos){var $obj=$(obj);slider.count+=1;slider.last=slider.count-1;
// append new slide
if(vertical&&reverse){pos!==undefined?slider.slides.eq(slider.count-pos).after($obj):slider.container.prepend($obj)}else{pos!==undefined?slider.slides.eq(pos).before($obj):slider.container.append($obj)}
// update currentSlide, animatingTo, controlNav, and directionNav
slider.update(pos,"add");
// update slider.slides
slider.slides=$(slider.vars.selector+":not(.clone)",slider);
// re-setup the slider to accomdate new slide
slider.setup();
//FlexSlider: added() Callback
slider.vars.added(slider)};slider.removeSlide=function(obj){var pos=isNaN(obj)?slider.slides.index($(obj)):obj;
// update count
slider.count-=1;slider.last=slider.count-1;
// remove slide
if(isNaN(obj)){$(obj,slider.slides).remove()}else{vertical&&reverse?slider.slides.eq(slider.last).remove():slider.slides.eq(obj).remove()}
// update currentSlide, animatingTo, controlNav, and directionNav
slider.doMath();slider.update(pos,"remove");
// update slider.slides
slider.slides=$(slider.vars.selector+":not(.clone)",slider);
// re-setup the slider to accomdate new slide
slider.setup();
// FlexSlider: removed() Callback
slider.vars.removed(slider)};
//FlexSlider: Initialize
methods.init()};
// Ensure the slider isn't focussed if the window loses focus.
$(window).blur(function(e){focused=false}).focus(function(e){focused=true});
//FlexSlider: Default Settings
$.flexslider.defaults={namespace:"flex-",//{NEW} String: Prefix string attached to the class of every element generated by the plugin
selector:".slides > li",//{NEW} Selector: Must match a simple pattern. '{container} > {slide}' -- Ignore pattern at your own peril
animation:"fade",//String: Select your animation type, "fade" or "slide"
easing:"swing",//{NEW} String: Determines the easing method used in jQuery transitions. jQuery easing plugin is supported!
direction:"horizontal",//String: Select the sliding direction, "horizontal" or "vertical"
reverse:false,//{NEW} Boolean: Reverse the animation direction
animationLoop:true,//Boolean: Should the animation loop? If false, directionNav will received "disable" classes at either end
smoothHeight:false,//{NEW} Boolean: Allow height of the slider to animate smoothly in horizontal mode
startAt:0,//Integer: The slide that the slider should start on. Array notation (0 = first slide)
slideshow:true,//Boolean: Animate slider automatically
slideshowSpeed:7e3,//Integer: Set the speed of the slideshow cycling, in milliseconds
animationSpeed:600,//Integer: Set the speed of animations, in milliseconds
initDelay:0,//{NEW} Integer: Set an initialization delay, in milliseconds
randomize:false,//Boolean: Randomize slide order
thumbCaptions:false,//Boolean: Whether or not to put captions on thumbnails when using the "thumbnails" controlNav.
// Usability features
pauseOnAction:true,//Boolean: Pause the slideshow when interacting with control elements, highly recommended.
pauseOnHover:false,//Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering
pauseInvisible:true,//{NEW} Boolean: Pause the slideshow when tab is invisible, resume when visible. Provides better UX, lower CPU usage.
useCSS:true,//{NEW} Boolean: Slider will use CSS3 transitions if available
touch:true,//{NEW} Boolean: Allow touch swipe navigation of the slider on touch-enabled devices
video:false,//{NEW} Boolean: If using video in the slider, will prevent CSS3 3D Transforms to avoid graphical glitches
// Primary Controls
controlNav:true,//Boolean: Create navigation for paging control of each clide? Note: Leave true for manualControls usage
directionNav:true,//Boolean: Create navigation for previous/next navigation? (true/false)
prevText:"Previous",//String: Set the text for the "previous" directionNav item
nextText:"Next",//String: Set the text for the "next" directionNav item
// Secondary Navigation
keyboard:true,//Boolean: Allow slider navigating via keyboard left/right keys
multipleKeyboard:false,//{NEW} Boolean: Allow keyboard navigation to affect multiple sliders. Default behavior cuts out keyboard navigation with more than one slider present.
mousewheel:false,//{UPDATED} Boolean: Requires jquery.mousewheel.js (https://github.com/brandonaaron/jquery-mousewheel) - Allows slider navigating via mousewheel
pausePlay:false,//Boolean: Create pause/play dynamic element
pauseText:"Pause",//String: Set the text for the "pause" pausePlay item
playText:"Play",//String: Set the text for the "play" pausePlay item
// Special properties
controlsContainer:"",//{UPDATED} jQuery Object/Selector: Declare which container the navigation elements should be appended too. Default container is the FlexSlider element. Example use would be $(".flexslider-container"). Property is ignored if given element is not found.
manualControls:"",//{UPDATED} jQuery Object/Selector: Declare custom control navigation. Examples would be $(".flex-control-nav li") or "#tabs-nav li img", etc. The number of elements in your controlNav should match the number of slides/tabs.
sync:"",//{NEW} Selector: Mirror the actions performed on this slider with another slider. Use with care.
asNavFor:"",//{NEW} Selector: Internal property exposed for turning the slider into a thumbnail navigation for another slider
// Carousel Options
itemWidth:0,//{NEW} Integer: Box-model width of individual carousel items, including horizontal borders and padding.
itemMargin:0,//{NEW} Integer: Margin between carousel items.
minItems:1,//{NEW} Integer: Minimum number of carousel items that should be visible. Items will resize fluidly when below this.
maxItems:0,//{NEW} Integer: Maxmimum number of carousel items that should be visible. Items will resize fluidly when above this limit.
move:0,//{NEW} Integer: Number of carousel items that should move on animation. If 0, slider will move all visible items.
allowOneSlide:true,//{NEW} Boolean: Whether or not to allow a slider comprised of a single slide
// Callback API
start:function(){},//Callback: function(slider) - Fires when the slider loads the first slide
before:function(){},//Callback: function(slider) - Fires asynchronously with each slider animation
after:function(){},//Callback: function(slider) - Fires after each slider animation completes
end:function(){},//Callback: function(slider) - Fires when the slider reaches the last slide (asynchronous)
added:function(){},//{NEW} Callback: function(slider) - Fires after a slide is added
removed:function(){},//{NEW} Callback: function(slider) - Fires after a slide is removed
init:function(){}//{NEW} Callback: function(slider) - Fires after the slider is initially setup
};
//FlexSlider: Plugin Function
$.fn.flexslider=function(options){if(options===undefined)options={};if(typeof options==="object"){return this.each(function(){var $this=$(this),selector=options.selector?options.selector:".slides > li",$slides=$this.find(selector);if($slides.length===1&&options.allowOneSlide===true||$slides.length===0){$slides.fadeIn(400);if(options.start)options.start($this)}else if($this.data("flexslider")===undefined){new $.flexslider(this,options)}})}else{
// Helper strings to quickly perform functions on the slider
var $slider=$(this).data("flexslider");switch(options){case"play":$slider.play();break;case"pause":$slider.pause();break;case"stop":$slider.stop();break;case"next":$slider.flexAnimate($slider.getTarget("next"),true);break;case"prev":case"previous":$slider.flexAnimate($slider.getTarget("prev"),true);break;default:if(typeof options==="number")$slider.flexAnimate(options,true)}}}})(jQuery);
/*
* JAIL: jQuery Asynchronous Image Loader
*
* Copyright (c) 2011-12 Sebastiano Armeli-Battana (http://www.sebastianoarmelibattana.com)
*
* By Sebastiano Armeli-Battana (@sebarmeli)
* Licensed under the MIT license.
* https://github.com/sebarmeli/JAIL/blob/master/MIT-LICENSE.txt
*
* Tested with jQuery 1.3.2+ on FF 2+, Opera 10+, Safari 4+, Chrome 8+ on Win/Mac/Linux
* and IE 6/7/8 on Win.
*
* Contributor : Derek Lindahl - @dlindahl
*
* @link http://github.com/sebarmeli/JAIL
* @author Sebastiano Armeli-Battana
* @date 14/10/2012
* @version 1.0.0
*
*/(function(name,definition){var theModule=definition(jQuery),hasDefine=typeof define==="function"&&define.amd;if(hasDefine){// AMD module
define(name,["jquery"],theModule)}else{// assign 'jail' to global objects
(this.jQuery||this.$||this)[name]=theModule}})("jail",function($){var $window=$(window),
// Defaults parameters
defaults={id:"jail",timeout:1,effect:false,speed:400,triggerElement:null,offset:0,event:"load",callback:null,callbackAfterEachImage:null,placeholder:false,loadHiddenImages:false},
// current stack of images
currentStack=[],
// true if 'callback' fn is called
isCallbackDone=false;
/*
* Public function defining 'jail'
*
* @module jail
* @param elems : images to load - jQuery elements
* @param opts : configurations object
*/$.jail=function(elems,opts){var elements=elems||{},options=$.extend({},defaults,opts);
// Initialize plugin
$.jail.prototype.init(elements,options);
// When the event is not specified the images will be loaded with a delay
if(/^(load|scroll)/.test(options.event)){
// 'load' event
$.jail.prototype.later.call(elements,options)}else{$.jail.prototype.onEvent.call(elements,options)}};
/*
* Method in charge of initializing the plugin, storing
* the 'element triggering the image to load' in a data attribute
* for each image and displaying the placeholder image (if existing)
*
* @method init
* @param {Array} elems Images to load - jQuery elements
* @param {Object} opts Configurations object
*/$.jail.prototype.init=function(elements,options){
// Store the selector triggering jail into 'triggerElem' data for the images selected
elements.data("triggerElem",options.triggerElement?$(options.triggerElement):$window);
// Use a placeholder in case it is specified
if(!!options.placeholder){elements.each(function(){$(this).attr("src",options.placeholder)})}};
/*
* Function called when 'event' is different from "load" or "scroll". Two scenarios:
* a) Element triggering the images to be loaded (events available on the element: "click", "mouseover", "scroll")
* b) Event on the image itself triggering the image to be loaded
*
* @param options : configurations object
*/$.jail.prototype.onEvent=function(options){var images=this;if(!!options.triggerElement){
// Event on the 'triggerElement' obj
_bindEvent(options,images)}else{
// Event on the image itself
images.on(options.event+"."+options.id,{options:options,images:images},function(e){var $img=$(this),options=e.data.options,images=e.data.images;currentStack=$.extend({},images);
// Load the image
_loadImage(options,$img);
// Image has been loaded so there is no need to listen anymore
$(e.currentTarget).unbind(e.type+"."+options.id)})}};
/*
* Method called when "event" is equals to "load" (default) or "scroll". The visible images will be
* loaded after a specified timeout (or after 1 ms). The scroll method will be bound to the window
* to load the images not visible onload.
*
* @param options : configurations object
*/$.jail.prototype.later=function(options){var images=this;
// After [timeout] has elapsed, load the visible images
setTimeout(function(){currentStack=$.extend({},images);
//Load the visible ones
images.each(function(){_loadImageIfVisible(options,this,images)});
// When images become available (scrolling or resizing), they will be loaded
options.event="scroll";_bindEvent(options,images)},options.timeout)};
/*
* Bind _bufferedEventListener() to the event on window/triggerElement. The handler is bound to
* resizing the window as well
*
* @param options : configurations object
* @param images : images in the current stack
*/function _bindEvent(options,images){var triggerElem=false;if(!!images){triggerElem=images.data("triggerElem")}
// Check if there are images to load
if(!!triggerElem&&typeof triggerElem.on==="function"){triggerElem.on(options.event+"."+options.id,{options:options,images:images},_bufferedEventListener);$window.on("resize."+options.id,{options:options,images:images},_bufferedEventListener)}}
/*
* Remove any elements that have been loaded from the jQuery stack.
* This should speed up subsequent calls by not having to iterate over the loaded elements.
*
* @param stack : current images stack
*/function _purgeStack(stack){
// number of images not loaded
var i=0;if(stack.length===0){return}
// Check on existence of 'data-src' attribute to verify if the image has been loaded
while(true){if(i===stack.length){break}else{if($(stack[i]).attr("data-src")){i++}else{stack.splice(i,1)}}}}
/*
* Event handler for the images to be loaded. Function called when
* there is a triggerElement or when there are images to be loaded after scrolling
* or resizing window/container
*
* @param e : event
*/function _bufferedEventListener(e){var images=e.data.images,options=e.data.options;
// Don't set a timer if one is set.
if(images.data("poller")){return}images.data("poller",setTimeout(function(){currentStack=$.extend({},images);_purgeStack(currentStack);
// Load only the images left
$(currentStack).each(function(){if(this===window){return}_loadImageIfVisible(options,this,currentStack)});
//Unbind when there are no images
if(_isAllImagesLoaded(currentStack)){$(e.currentTarget).unbind(e.type+"."+options.id);return}
// When images are not in the viewport, let's load them when they become available
else if(options.event!=="scroll"){
// When images become available (scrolling or resizing), they will be loaded
var container=/scroll/i.test(options.event)?images.data("triggerElem"):$window;options.event="scroll";images.data("triggerElem",container);_bindEvent(options,$(currentStack))}images.data("poller",null)},options.timeout))}
/*
* Check if all the images are loaded
*
* @param images : images under analysis
* @return boolean
*/function _isAllImagesLoaded(images){var bool=true;$(images).each(function(){if(!!$(this).attr("data-src")){bool=false}});return bool}
/*
* Load the image if visible in the viewport
*
* @param options : configurations object
* @param image : image under analysis
* @param images : list of images to load
*/function _loadImageIfVisible(options,image,images){var $img=$(image),container=/scroll/i.test(options.event)?images.data("triggerElem"):$window,isVisible=true;
// If don't you want to load hidden images (default beahviour)
if(!options.loadHiddenImages){isVisible=_isVisibleInContainer($img,container,options)&&$img.is(":visible")}
// Load the image if it is not hidden and visible in the screen
if(isVisible&&_isInTheScreen(container,$img,options.offset)){_loadImage(options,$img)}}
/*
* Function that returns true if the image is visible inside the "window" (or specified container element)
*
* @param $ct : container - jQuery obj
* @param $img : image selected - jQuery obj
* @param optionOffset : offset
*/function _isInTheScreen($ct,$img,optionOffset){var is_ct_window=$ct[0]===window,ct_offset=is_ct_window?{top:0,left:0}:$ct.offset(),ct_top=ct_offset.top+(is_ct_window?$ct.scrollTop():0),ct_left=ct_offset.left+(is_ct_window?$ct.scrollLeft():0),ct_right=ct_left+$ct.width(),ct_bottom=ct_top+$ct.height(),img_offset=$img.offset(),img_width=$img.width(),img_height=$img.height();return ct_top-optionOffset<=img_offset.top+img_height&&ct_bottom+optionOffset>=img_offset.top&&ct_left-optionOffset<=img_offset.left+img_width&&ct_right+optionOffset>=img_offset.left}
/*
* Main function --> Load the images copying the "data-href" attribute into the "src" attribute
*
* @param options : configurations object
* @param $img : image selected - jQuery obj
*/function _loadImage(options,$img){
// Use cache Image object to show images only when ready
var cache=new Image;cache.onload=function(){$img.hide().attr("src",cache.src);$img.removeAttr("data-src");
// Images loaded with some effect if existing
if(options.effect){if(options.speed){$img[options.effect](options.speed)}else{$img[options.effect]()}$img.css("opacity",1);$img.show()}else{$img.show()}_purgeStack(currentStack);
// Callback after each image is loaded
if(!!options.callbackAfterEachImage){options.callbackAfterEachImage.call(this,$img,options)}if(_isAllImagesLoaded(currentStack)&&!!options.callback&&!isCallbackDone){options.callback.call($.jail,options);isCallbackDone=true}};
/*
* Basic on error handler. For now we limit
* the plugin to exectute any callback passed
* in the options object. Let the developer
* decide what to do with it.
*/cache.onerror=function(){if(!("error"in options)){return}var args=Array.prototype.slice.call(arguments,0);args=[$img,options].concat(args);options.error.apply($.jail,args)};cache.src=$img.attr("data-src")}
/*
* Return if the image is visible inside a "container" / window. There are checks around
* "visibility" CSS property and around "overflow" property of the "container"
*
* @param $img : image selected - jQuery obj
* @param container : container object
* @param options : configurations object
*/function _isVisibleInContainer($img,container,options){var parent=$img.parent(),isVisible=true;while(parent.length&&parent.get(0).nodeName.toUpperCase()!=="BODY"){
// Consider the 'overflow' property
if(parent.css("overflow")==="hidden"){if(!_isInTheScreen(parent,$img,options.offset)){isVisible=false;break}}else if(parent.css("overflow")==="scroll"){if(!_isInTheScreen(parent,$img,options.offset)){isVisible=false;$(currentStack).data("triggerElem",parent);options.event="scroll";_bindEvent(options,$(currentStack));break}}if(parent.css("visibility")==="hidden"||$img.css("visibility")==="hidden"){isVisible=false;break}
// If container is not the window, and the parent is the container, exit from the loop
if(container!==$window&&parent===container){break}parent=parent.parent()}return isVisible}
// Small wrapper
$.fn.jail=function(options){new $.jail(this,options);
// Empty current stack
currentStack=[];return this};return $.jail});
/*
*  JAIL: jQuery Asynchronous Image Loader
*
* Copyright (c) 2011-12 Sebastiano Armeli-Battana (http://www.sebastianoarmelibattana.com)
*
* By Sebastiano Armeli-Battana (@sebarmeli)
* Licensed under the MIT license.
* https://github.com/sebarmeli/JAIL/blob/master/MIT-LICENSE.txt
*
* Tested with jQuery 1.3.2+ on FF 2+, Opera 10+, Safari 4+, Chrome 8+ on Win/Mac/Linux
* and IE 6/7/8 on Win.
*
* Contributor : Derek Lindahl - @dlindahl
*
* @link http://github.com/sebarmeli/JAIL
* @author Sebastiano Armeli-Battana
* @date 14/10/2012
* @version 1.0.0
*
*/(function(name,definition){var theModule=definition(jQuery),hasDefine=typeof define==="function"&&define.amd;if(hasDefine){// AMD module
define(name,["jquery"],theModule)}else{// assign 'jail' to global objects
(this.jQuery||this.$||this)[name]=theModule}})("jail",function($){var $window=$(window),
// Defaults parameters
defaults={id:"jail",timeout:1,effect:false,speed:400,triggerElement:null,offset:0,event:"load",callback:null,callbackAfterEachImage:null,placeholder:false,loadHiddenImages:false},
// current stack of images
currentStack=[],
// true if 'callback' fn is called
isCallbackDone=false;
/* 
	* Public function defining 'jail'
	*
	* @module jail
	* @param elems : images to load - jQuery elements
	* @param opts : configurations object
	*/$.jail=function(elems,opts){var elements=elems||{},options=$.extend({},defaults,opts);
// Initialize plugin
$.jail.prototype.init(elements,options);
// When the event is not specified the images will be loaded with a delay
if(/^(load|scroll)/.test(options.event)){
// 'load' event
$.jail.prototype.later.call(elements,options)}else{$.jail.prototype.onEvent.call(elements,options)}};
/* 
	* Method in charge of initializing the plugin, storing
	* the 'element triggering the image to load' in a data attribute 
	* for each image and displaying the placeholder image (if existing)
	*
	* @method init
	* @param {Array} elems Images to load - jQuery elements
	* @param {Object} opts Configurations object
	*/$.jail.prototype.init=function(elements,options){
// Store the selector triggering jail into 'triggerElem' data for the images selected 
elements.data("triggerElem",options.triggerElement?$(options.triggerElement):$window);
// Use a placeholder in case it is specified
if(!!options.placeholder){elements.each(function(){$(this).attr("src",options.placeholder)})}};
/* 
	* Function called when 'event' is different from "load" or "scroll". Two scenarios:
	* a) Element triggering the images to be loaded (events available on the element: "click", "mouseover", "scroll")
	* b) Event on the image itself triggering the image to be loaded
	*
	* @param options : configurations object
	*/$.jail.prototype.onEvent=function(options){var images=this;if(!!options.triggerElement){
// Event on the 'triggerElement' obj
_bindEvent(options,images)}else{
// Event on the image itself
images.on(options.event+"."+options.id,{options:options,images:images},function(e){var $img=$(this),options=e.data.options,images=e.data.images;currentStack=$.extend({},images);
// Load the image
_loadImage(options,$img);
// Image has been loaded so there is no need to listen anymore
$(e.currentTarget).unbind(e.type+"."+options.id)})}};
/* 
	* Method called when "event" is equals to "load" (default) or "scroll". The visible images will be 
	* loaded after a specified timeout (or after 1 ms). The scroll method will be bound to the window
	* to load  the images not visible onload.
	*
	* @param options : configurations object
	*/$.jail.prototype.later=function(options){var images=this;
// After [timeout] has elapsed, load the visible images
setTimeout(function(){currentStack=$.extend({},images);
//Load the visible ones
images.each(function(){_loadImageIfVisible(options,this,images)});
// When images become available (scrolling or resizing), they will be loaded 
options.event="scroll";_bindEvent(options,images)},options.timeout)};
/* 
	* Bind _bufferedEventListener() to the event on window/triggerElement. The handler is bound to 
	* resizing the window as well
	*
	* @param options : configurations object
	* @param images : images in the current stack
	*/function _bindEvent(options,images){var triggerElem=false;if(!!images){triggerElem=images.data("triggerElem")}
// Check if there are images to load
if(!!triggerElem&&typeof triggerElem.on==="function"){triggerElem.on(options.event+"."+options.id,{options:options,images:images},_bufferedEventListener);$window.on("resize."+options.id,{options:options,images:images},_bufferedEventListener)}}
/* 
	* Remove any elements that have been loaded from the jQuery stack.
	* This should speed up subsequent calls by not having to iterate over the loaded elements.
	*
	* @param stack : current images stack
	*/function _purgeStack(stack){
// number of images not loaded
var i=0;if(stack.length===0){return}
// Check on existence of 'data-src' attribute to verify if the image has been loaded
while(true){if(i===stack.length){break}else{if($(stack[i]).attr("data-src")){i++}else{stack.splice(i,1)}}}}
/* 
	* Event handler for the images to be loaded. Function called when 
	* there is a triggerElement or when there are images to be loaded after scrolling 
	* or resizing window/container 
	*
	* @param e : event
	*/function _bufferedEventListener(e){var images=e.data.images,options=e.data.options;
// Don't set a timer if one is set.
if(images.data("poller")){return}images.data("poller",setTimeout(function(){currentStack=$.extend({},images);_purgeStack(currentStack);
// Load only the images left
$(currentStack).each(function(){if(this===window){return}_loadImageIfVisible(options,this,currentStack)});
//Unbind when there are no images
if(_isAllImagesLoaded(currentStack)){$(e.currentTarget).unbind(e.type+"."+options.id);return}
// When images are not in the viewport, let's load them when they become available
else if(options.event!=="scroll"){
// When images become available (scrolling or resizing), they will be loaded 
var container=/scroll/i.test(options.event)?images.data("triggerElem"):$window;options.event="scroll";images.data("triggerElem",container);_bindEvent(options,$(currentStack))}images.data("poller",null)},options.timeout))}
/* 
	* Check if all the images are loaded
	*
	* @param images : images under analysis
	* @return boolean
	*/function _isAllImagesLoaded(images){var bool=true;$(images).each(function(){if(!!$(this).attr("data-src")){bool=false}});return bool}
/* 
	* Load the image if visible in the viewport
	*
	* @param options : configurations object
	* @param image : image under analysis
	* @param images : list of images to load
	*/function _loadImageIfVisible(options,image,images){var $img=$(image),container=/scroll/i.test(options.event)?images.data("triggerElem"):$window,isVisible=true;
// If don't you want to load hidden images (default beahviour)
if(!options.loadHiddenImages){isVisible=_isVisibleInContainer($img,container,options)&&$img.is(":visible")}
// Load the image if it is not hidden and visible in the screen
if(isVisible&&_isInTheScreen(container,$img,options.offset)){_loadImage(options,$img)}}
/* 
	* Function that returns true if the image is visible inside the "window" (or specified container element)
	*
	* @param $ct : container - jQuery obj
	* @param $img : image selected - jQuery obj
	* @param optionOffset : offset
	*/function _isInTheScreen($ct,$img,optionOffset){var is_ct_window=$ct[0]===window,ct_offset=is_ct_window?{top:0,left:0}:$ct.offset(),ct_top=ct_offset.top+(is_ct_window?$ct.scrollTop():0),ct_left=ct_offset.left+(is_ct_window?$ct.scrollLeft():0),ct_right=ct_left+$ct.width(),ct_bottom=ct_top+$ct.height(),img_offset=$img.offset(),img_width=$img.width(),img_height=$img.height();return ct_top-optionOffset<=img_offset.top+img_height&&ct_bottom+optionOffset>=img_offset.top&&ct_left-optionOffset<=img_offset.left+img_width&&ct_right+optionOffset>=img_offset.left}
/* 
	* Main function --> Load the images copying the "data-href" attribute into the "src" attribute
	*
	* @param options : configurations object
	* @param $img : image selected - jQuery obj
	*/function _loadImage(options,$img){
// Use cache Image object to show images only when ready
var cache=new Image;cache.onload=function(){$img.hide().attr("src",cache.src);$img.removeAttr("data-src");
// Images loaded with some effect if existing
if(options.effect){if(options.speed){$img[options.effect](options.speed)}else{$img[options.effect]()}$img.css("opacity",1);$img.show()}else{$img.show()}_purgeStack(currentStack);
// Callback after each image is loaded
if(!!options.callbackAfterEachImage){options.callbackAfterEachImage.call(this,$img,options)}if(_isAllImagesLoaded(currentStack)&&!!options.callback&&!isCallbackDone){options.callback.call($.jail,options);isCallbackDone=true}};
/*
		 * Basic on error handler. For now we limit
		 * the plugin to exectute any callback passed
		 * in the options object. Let the developer
		 * decide what to do with it.
		 */cache.onerror=function(){if(!("error"in options)){return}var args=Array.prototype.slice.call(arguments,0);args=[$img,options].concat(args);options.error.apply($.jail,args)};cache.src=$img.attr("data-src")}
/* 
	* Return if the image is visible inside a "container" / window. There are checks around
	* "visibility" CSS property and around "overflow" property of the "container"
	*
	* @param $img : image selected - jQuery obj
	* @param container : container object
	* @param options : configurations object
	*/function _isVisibleInContainer($img,container,options){var parent=$img.parent(),isVisible=true;while(parent.length&&parent.get(0).nodeName.toUpperCase()!=="BODY"){
// Consider the 'overflow' property
if(parent.css("overflow")==="hidden"){if(!_isInTheScreen(parent,$img,options.offset)){isVisible=false;break}}else if(parent.css("overflow")==="scroll"){if(!_isInTheScreen(parent,$img,options.offset)){isVisible=false;$(currentStack).data("triggerElem",parent);options.event="scroll";_bindEvent(options,$(currentStack));break}}if(parent.css("visibility")==="hidden"||$img.css("visibility")==="hidden"){isVisible=false;break}
// If container is not the window, and the parent is the container, exit from the loop
if(container!==$window&&parent===container){break}parent=parent.parent()}return isVisible}
// Small wrapper
$.fn.jail=function(options){new $.jail(this,options);
// Empty current stack
currentStack=[];return this};return $.jail});
/*! Picturefill - v3.0.1
 * http://scottjehl.github.io/picturefill
 * Copyright (c) 2015 https://github.com/scottjehl/picturefill/blob/master/Authors.txt;
 *  License: MIT
 */
(function(window,document,undefined){
// Enable strict mode
"use strict";
// HTML shim|v it for old IE (IE9 will still need the HTML video tag workaround)
document.createElement("picture");var warn,eminpx,alwaysCheckWDescriptor,evalId;
// local object for method references and testing exposure
var pf={};var noop=function(){};var image=document.createElement("img");var getImgAttr=image.getAttribute;var setImgAttr=image.setAttribute;var removeImgAttr=image.removeAttribute;var docElem=document.documentElement;var types={};var cfg={
//resource selection:
algorithm:""};var srcAttr="data-pfsrc";var srcsetAttr=srcAttr+"set";
// ua sniffing is done for undetectable img loading features,
// to do some non crucial perf optimizations
var ua=navigator.userAgent;var supportAbort=/rident/.test(ua)||/ecko/.test(ua)&&ua.match(/rv\:(\d+)/)&&RegExp.$1>35;var curSrcProp="currentSrc";var regWDesc=/\s+\+?\d+(e\d+)?w/;var regSize=/(\([^)]+\))?\s*(.+)/;var setOptions=window.picturefillCFG;
/**
	 * Shortcut property for https://w3c.github.io/webappsec/specs/mixedcontent/#restricts-mixed-content ( for easy overriding in tests )
	 */
// baseStyle also used by getEmValue (i.e.: width: 1em is important)
var baseStyle="position:absolute;left:0;visibility:hidden;display:block;padding:0;border:none;font-size:1em;width:1em;overflow:hidden;clip:rect(0px, 0px, 0px, 0px)";var fsCss="font-size:100%!important;";var isVwDirty=true;var cssCache={};var sizeLengthCache={};var DPR=window.devicePixelRatio;var units={px:1,in:96};var anchor=document.createElement("a");
/**
	 * alreadyRun flag used for setOptions. is it true setOptions will reevaluate
	 * @type {boolean}
	 */var alreadyRun=false;
// Reusable, non-"g" Regexes
// (Don't use \s, to avoid matching non-breaking space.)
var regexLeadingSpaces=/^[ \t\n\r\u000c]+/,regexLeadingCommasOrSpaces=/^[, \t\n\r\u000c]+/,regexLeadingNotSpaces=/^[^ \t\n\r\u000c]+/,regexTrailingCommas=/[,]+$/,regexNonNegativeInteger=/^\d+$/,
// ( Positive or negative or unsigned integers or decimals, without or without exponents.
// Must include at least one digit.
// According to spec tests any decimal point must be followed by a digit.
// No leading plus sign is allowed.)
// https://html.spec.whatwg.org/multipage/infrastructure.html#valid-floating-point-number
regexFloatingPoint=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;var on=function(obj,evt,fn,capture){if(obj.addEventListener){obj.addEventListener(evt,fn,capture||false)}else if(obj.attachEvent){obj.attachEvent("on"+evt,fn)}};
/**
	 * simple memoize function:
	 */var memoize=function(fn){var cache={};return function(input){if(!(input in cache)){cache[input]=fn(input)}return cache[input]}};
// UTILITY FUNCTIONS
// Manual is faster than RegEx
// http://jsperf.com/whitespace-character/5
function isSpace(c){return c===" "||// space
c==="\t"||// horizontal tab
c==="\n"||// new line
c==="\f"||// form feed
c==="\r";// carriage return
}
/**
	 * gets a mediaquery and returns a boolean or gets a css length and returns a number
	 * @param css mediaqueries or css length
	 * @returns {boolean|number}
	 *
	 * based on: https://gist.github.com/jonathantneal/db4f77009b155f083738
	 */var evalCSS=function(){var regLength=/^([\d\.]+)(em|vw|px)$/;var replace=function(){var args=arguments,index=0,string=args[0];while(++index in args){string=string.replace(args[index],args[++index])}return string};var buildStr=memoize(function(css){return"return "+replace((css||"").toLowerCase(),
// interpret `and`
/\band\b/g,"&&",
// interpret `,`
/,/g,"||",
// interpret `min-` as >=
/min-([a-z-\s]+):/g,"e.$1>=",
// interpret `max-` as <=
/max-([a-z-\s]+):/g,"e.$1<=",
//calc value
/calc([^)]+)/g,"($1)",
// interpret css values
/(\d+[\.]*[\d]*)([a-z]+)/g,"($1 * e.$2)",
//make eval less evil
/^(?!(e.[a-z]|[0-9\.&=|><\+\-\*\(\)\/])).*/gi,"")+";"});return function(css,length){var parsedLength;if(!(css in cssCache)){cssCache[css]=false;if(length&&(parsedLength=css.match(regLength))){cssCache[css]=parsedLength[1]*units[parsedLength[2]]}else{
/*jshint evil:true */
try{cssCache[css]=new Function("e",buildStr(css))(units)}catch(e){}
/*jshint evil:false */}}return cssCache[css]}}();var setResolution=function(candidate,sizesattr){if(candidate.w){// h = means height: || descriptor.type === 'h' do not handle yet...
candidate.cWidth=pf.calcListLength(sizesattr||"100vw");candidate.res=candidate.w/candidate.cWidth}else{candidate.res=candidate.d}return candidate};
/**
	 *
	 * @param opt
	 */var picturefill=function(opt){var elements,i,plen;var options=opt||{};if(options.elements&&options.elements.nodeType===1){if(options.elements.nodeName.toUpperCase()==="IMG"){options.elements=[options.elements]}else{options.context=options.elements;options.elements=null}}elements=options.elements||pf.qsa(options.context||document,options.reevaluate||options.reselect?pf.sel:pf.selShort);if(plen=elements.length){pf.setupRun(options);alreadyRun=true;
// Loop through all elements
for(i=0;i<plen;i++){pf.fillImg(elements[i],options)}pf.teardownRun(options)}};
/**
	 * outputs a warning for the developer
	 * @param {message}
	 * @type {Function}
	 */warn=window.console&&console.warn?function(message){console.warn(message)}:noop;if(!(curSrcProp in image)){curSrcProp="src"}
// Add support for standard mime types.
types["image/jpeg"]=true;types["image/gif"]=true;types["image/png"]=true;function detectTypeSupport(type,typeUri){
// based on Modernizr's lossless img-webp test
// note: asynchronous
var image=new window.Image;image.onerror=function(){types[type]=false;picturefill()};image.onload=function(){types[type]=image.width===1;picturefill()};image.src=typeUri;return"pending"}
// test svg support
types["image/svg+xml"]=document.implementation.hasFeature("http://wwwindow.w3.org/TR/SVG11/feature#Image","1.1");
/**
	 * updates the internal vW property with the current viewport width in px
	 */function updateMetrics(){isVwDirty=false;DPR=window.devicePixelRatio;cssCache={};sizeLengthCache={};pf.DPR=DPR||1;units.width=Math.max(window.innerWidth||0,docElem.clientWidth);units.height=Math.max(window.innerHeight||0,docElem.clientHeight);units.vw=units.width/100;units.vh=units.height/100;evalId=[units.height,units.width,DPR].join("-");units.em=pf.getEmValue();units.rem=units.em}function chooseLowRes(lowerValue,higherValue,dprValue,isCached){var bonusFactor,tooMuch,bonus,meanDensity;
//experimental
if(cfg.algorithm==="saveData"){if(lowerValue>2.7){meanDensity=dprValue+1}else{tooMuch=higherValue-dprValue;bonusFactor=Math.pow(lowerValue-.6,1.5);bonus=tooMuch*bonusFactor;if(isCached){bonus+=.1*bonusFactor}meanDensity=lowerValue+bonus}}else{meanDensity=dprValue>1?Math.sqrt(lowerValue*higherValue):lowerValue}return meanDensity>dprValue}function applyBestCandidate(img){var srcSetCandidates;var matchingSet=pf.getSet(img);var evaluated=false;if(matchingSet!=="pending"){evaluated=evalId;if(matchingSet){srcSetCandidates=pf.setRes(matchingSet);pf.applySetCandidate(srcSetCandidates,img)}}img[pf.ns].evaled=evaluated}function ascendingSort(a,b){return a.res-b.res}function setSrcToCur(img,src,set){var candidate;if(!set&&src){set=img[pf.ns].sets;set=set&&set[set.length-1]}candidate=getCandidateForSrc(src,set);if(candidate){src=pf.makeUrl(src);img[pf.ns].curSrc=src;img[pf.ns].curCan=candidate;if(!candidate.res){setResolution(candidate,candidate.set.sizes)}}return candidate}function getCandidateForSrc(src,set){var i,candidate,candidates;if(src&&set){candidates=pf.parseSet(set);src=pf.makeUrl(src);for(i=0;i<candidates.length;i++){if(src===pf.makeUrl(candidates[i].url)){candidate=candidates[i];break}}}return candidate}function getAllSourceElements(picture,candidates){var i,len,source,srcset;
// SPEC mismatch intended for size and perf:
// actually only source elements preceding the img should be used
// also note: don't use qsa here, because IE8 sometimes doesn't like source as the key part in a selector
var sources=picture.getElementsByTagName("source");for(i=0,len=sources.length;i<len;i++){source=sources[i];source[pf.ns]=true;srcset=source.getAttribute("srcset");
// if source does not have a srcset attribute, skip
if(srcset){candidates.push({srcset:srcset,media:source.getAttribute("media"),type:source.getAttribute("type"),sizes:source.getAttribute("sizes")})}}}
/**
	 * Srcset Parser
	 * By Alex Bell |  MIT License
	 *
	 * @returns Array [{url: _, d: _, w: _, h:_, set:_(????)}, ...]
	 *
	 * Based super duper closely on the reference algorithm at:
	 * https://html.spec.whatwg.org/multipage/embedded-content.html#parse-a-srcset-attribute
	 */
// 1. Let input be the value passed to this algorithm.
// (TO-DO : Explain what "set" argument is here. Maybe choose a more
// descriptive & more searchable name.  Since passing the "set" in really has
// nothing to do with parsing proper, I would prefer this assignment eventually
// go in an external fn.)
function parseSrcset(input,set){function collectCharacters(regEx){var chars,match=regEx.exec(input.substring(pos));if(match){chars=match[0];pos+=chars.length;return chars}}var inputLength=input.length,url,descriptors,currentDescriptor,state,c,
// 2. Let position be a pointer into input, initially pointing at the start
//    of the string.
pos=0,
// 3. Let candidates be an initially empty source set.
candidates=[];
/**
		* Adds descriptor properties to a candidate, pushes to the candidates array
		* @return undefined
		*/
// (Declared outside of the while loop so that it's only created once.
// (This fn is defined before it is used, in order to pass JSHINT.
// Unfortunately this breaks the sequencing of the spec comments. :/ )
function parseDescriptors(){
// 9. Descriptor parser: Let error be no.
var pError=false,
// 10. Let width be absent.
// 11. Let density be absent.
// 12. Let future-compat-h be absent. (We're implementing it now as h)
w,d,h,i,candidate={},desc,lastChar,value,intVal,floatVal;
// 13. For each descriptor in descriptors, run the appropriate set of steps
// from the following list:
for(i=0;i<descriptors.length;i++){desc=descriptors[i];lastChar=desc[desc.length-1];value=desc.substring(0,desc.length-1);intVal=parseInt(value,10);floatVal=parseFloat(value);
// If the descriptor consists of a valid non-negative integer followed by
// a U+0077 LATIN SMALL LETTER W character
if(regexNonNegativeInteger.test(value)&&lastChar==="w"){
// If width and density are not both absent, then let error be yes.
if(w||d){pError=true}
// Apply the rules for parsing non-negative integers to the descriptor.
// If the result is zero, let error be yes.
// Otherwise, let width be the result.
if(intVal===0){pError=true}else{w=intVal}
// If the descriptor consists of a valid floating-point number followed by
// a U+0078 LATIN SMALL LETTER X character
}else if(regexFloatingPoint.test(value)&&lastChar==="x"){
// If width, density and future-compat-h are not all absent, then let error
// be yes.
if(w||d||h){pError=true}
// Apply the rules for parsing floating-point number values to the descriptor.
// If the result is less than zero, let error be yes. Otherwise, let density
// be the result.
if(floatVal<0){pError=true}else{d=floatVal}
// If the descriptor consists of a valid non-negative integer followed by
// a U+0068 LATIN SMALL LETTER H character
}else if(regexNonNegativeInteger.test(value)&&lastChar==="h"){
// If height and density are not both absent, then let error be yes.
if(h||d){pError=true}
// Apply the rules for parsing non-negative integers to the descriptor.
// If the result is zero, let error be yes. Otherwise, let future-compat-h
// be the result.
if(intVal===0){pError=true}else{h=intVal}
// Anything else, Let error be yes.
}else{pError=true}}// (close step 13 for loop)
// 15. If error is still no, then append a new image source to candidates whose
// URL is url, associated with a width width if not absent and a pixel
// density density if not absent. Otherwise, there is a parse error.
if(!pError){candidate.url=url;if(w){candidate.w=w}if(d){candidate.d=d}if(h){candidate.h=h}if(!h&&!d&&!w){candidate.d=1}if(candidate.d===1){set.has1x=true}candidate.set=set;candidates.push(candidate)}}// (close parseDescriptors fn)
/**
		* Tokenizes descriptor properties prior to parsing
		* Returns undefined.
		* (Again, this fn is defined before it is used, in order to pass JSHINT.
		* Unfortunately this breaks the logical sequencing of the spec comments. :/ )
		*/function tokenize(){
// 8.1. Descriptor tokeniser: Skip whitespace
collectCharacters(regexLeadingSpaces);
// 8.2. Let current descriptor be the empty string.
currentDescriptor="";
// 8.3. Let state be in descriptor.
state="in descriptor";while(true){
// 8.4. Let c be the character at position.
c=input.charAt(pos);
//  Do the following depending on the value of state.
//  For the purpose of this step, "EOF" is a special character representing
//  that position is past the end of input.
// In descriptor
if(state==="in descriptor"){
// Do the following, depending on the value of c:
// Space character
// If current descriptor is not empty, append current descriptor to
// descriptors and let current descriptor be the empty string.
// Set state to after descriptor.
if(isSpace(c)){if(currentDescriptor){descriptors.push(currentDescriptor);currentDescriptor="";state="after descriptor"}
// U+002C COMMA (,)
// Advance position to the next character in input. If current descriptor
// is not empty, append current descriptor to descriptors. Jump to the step
// labeled descriptor parser.
}else if(c===","){pos+=1;if(currentDescriptor){descriptors.push(currentDescriptor)}parseDescriptors();return;
// U+0028 LEFT PARENTHESIS (()
// Append c to current descriptor. Set state to in parens.
}else if(c==="("){currentDescriptor=currentDescriptor+c;state="in parens";
// EOF
// If current descriptor is not empty, append current descriptor to
// descriptors. Jump to the step labeled descriptor parser.
}else if(c===""){if(currentDescriptor){descriptors.push(currentDescriptor)}parseDescriptors();return;
// Anything else
// Append c to current descriptor.
}else{currentDescriptor=currentDescriptor+c}
// (end "in descriptor"
// In parens
}else if(state==="in parens"){
// U+0029 RIGHT PARENTHESIS ())
// Append c to current descriptor. Set state to in descriptor.
if(c===")"){currentDescriptor=currentDescriptor+c;state="in descriptor";
// EOF
// Append current descriptor to descriptors. Jump to the step labeled
// descriptor parser.
}else if(c===""){descriptors.push(currentDescriptor);parseDescriptors();return;
// Anything else
// Append c to current descriptor.
}else{currentDescriptor=currentDescriptor+c}
// After descriptor
}else if(state==="after descriptor"){
// Do the following, depending on the value of c:
// Space character: Stay in this state.
if(isSpace(c)){
// EOF: Jump to the step labeled descriptor parser.
}else if(c===""){parseDescriptors();return;
// Anything else
// Set state to in descriptor. Set position to the previous character in input.
}else{state="in descriptor";pos-=1}}
// Advance position to the next character in input.
pos+=1;
// Repeat this step.
}// (close while true loop)
}
// 4. Splitting loop: Collect a sequence of characters that are space
//    characters or U+002C COMMA characters. If any U+002C COMMA characters
//    were collected, that is a parse error.
while(true){collectCharacters(regexLeadingCommasOrSpaces);
// 5. If position is past the end of input, return candidates and abort these steps.
if(pos>=inputLength){return candidates;// (we're done, this is the sole return path)
}
// 6. Collect a sequence of characters that are not space characters,
//    and let that be url.
url=collectCharacters(regexLeadingNotSpaces);
// 7. Let descriptors be a new empty list.
descriptors=[];
// 8. If url ends with a U+002C COMMA character (,), follow these substeps:
//		(1). Remove all trailing U+002C COMMA characters from url. If this removed
//         more than one character, that is a parse error.
if(url.slice(-1)===","){url=url.replace(regexTrailingCommas,"");
// (Jump ahead to step 9 to skip tokenization and just push the candidate).
parseDescriptors();
//	Otherwise, follow these substeps:
}else{tokenize()}// (close else of step 8)
// 16. Return to the step labeled splitting loop.
}// (Close of big while loop.)
}
/*
	 * Sizes Parser
	 *
	 * By Alex Bell |  MIT License
	 *
	 * Non-strict but accurate and lightweight JS Parser for the string value <img sizes="here">
	 *
	 * Reference algorithm at:
	 * https://html.spec.whatwg.org/multipage/embedded-content.html#parse-a-sizes-attribute
	 *
	 * Most comments are copied in directly from the spec
	 * (except for comments in parens).
	 *
	 * Grammar is:
	 * <source-size-list> = <source-size># [ , <source-size-value> ]? | <source-size-value>
	 * <source-size> = <media-condition> <source-size-value>
	 * <source-size-value> = <length>
	 * http://www.w3.org/html/wg/drafts/html/master/embedded-content.html#attr-img-sizes
	 *
	 * E.g. "(max-width: 30em) 100vw, (max-width: 50em) 70vw, 100vw"
	 * or "(min-width: 30em), calc(30vw - 15px)" or just "30vw"
	 *
	 * Returns the first valid <css-length> with a media condition that evaluates to true,
	 * or "100vw" if all valid media conditions evaluate to false.
	 *
	 */function parseSizes(strValue){
// (Percentage CSS lengths are not allowed in this case, to avoid confusion:
// https://html.spec.whatwg.org/multipage/embedded-content.html#valid-source-size-list
// CSS allows a single optional plus or minus sign:
// http://www.w3.org/TR/CSS2/syndata.html#numbers
// CSS is ASCII case-insensitive:
// http://www.w3.org/TR/CSS2/syndata.html#characters )
// Spec allows exponential notation for <number> type:
// http://dev.w3.org/csswg/css-values/#numbers
var regexCssLengthWithUnits=/^(?:[+-]?[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?(?:ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmin|vmax|vw)$/i;
// (This is a quick and lenient test. Because of optional unlimited-depth internal
// grouping parens and strict spacing rules, this could get very complicated.)
var regexCssCalc=/^calc\((?:[0-9a-z \.\+\-\*\/\(\)]+)\)$/i;var i;var unparsedSizesList;var unparsedSizesListLength;var unparsedSize;var lastComponentValue;var size;
// UTILITY FUNCTIONS
//  (Toy CSS parser. The goals here are:
//  1) expansive test coverage without the weight of a full CSS parser.
//  2) Avoiding regex wherever convenient.
//  Quick tests: http://jsfiddle.net/gtntL4gr/3/
//  Returns an array of arrays.)
function parseComponentValues(str){var chrctr;var component="";var componentArray=[];var listArray=[];var parenDepth=0;var pos=0;var inComment=false;function pushComponent(){if(component){componentArray.push(component);component=""}}function pushComponentArray(){if(componentArray[0]){listArray.push(componentArray);componentArray=[]}}
// (Loop forwards from the beginning of the string.)
while(true){chrctr=str.charAt(pos);if(chrctr===""){// ( End of string reached.)
pushComponent();pushComponentArray();return listArray}else if(inComment){if(chrctr==="*"&&str[pos+1]==="/"){// (At end of a comment.)
inComment=false;pos+=2;pushComponent();continue}else{pos+=1;// (Skip all characters inside comments.)
continue}}else if(isSpace(chrctr)){
// (If previous character in loop was also a space, or if
// at the beginning of the string, do not add space char to
// component.)
if(str.charAt(pos-1)&&isSpace(str.charAt(pos-1))||!component){pos+=1;continue}else if(parenDepth===0){pushComponent();pos+=1;continue}else{
// (Replace any space character with a plain space for legibility.)
chrctr=" "}}else if(chrctr==="("){parenDepth+=1}else if(chrctr===")"){parenDepth-=1}else if(chrctr===","){pushComponent();pushComponentArray();pos+=1;continue}else if(chrctr==="/"&&str.charAt(pos+1)==="*"){inComment=true;pos+=2;continue}component=component+chrctr;pos+=1}}function isValidNonNegativeSourceSizeValue(s){if(regexCssLengthWithUnits.test(s)&&parseFloat(s)>=0){return true}if(regexCssCalc.test(s)){return true}
// ( http://www.w3.org/TR/CSS2/syndata.html#numbers says:
// "-0 is equivalent to 0 and is not a negative number." which means that
// unitless zero and unitless negative zero must be accepted as special cases.)
if(s==="0"||s==="-0"||s==="+0"){return true}return false}
// When asked to parse a sizes attribute from an element, parse a
// comma-separated list of component values from the value of the element's
// sizes attribute (or the empty string, if the attribute is absent), and let
// unparsed sizes list be the result.
// http://dev.w3.org/csswg/css-syntax/#parse-comma-separated-list-of-component-values
unparsedSizesList=parseComponentValues(strValue);unparsedSizesListLength=unparsedSizesList.length;
// For each unparsed size in unparsed sizes list:
for(i=0;i<unparsedSizesListLength;i++){unparsedSize=unparsedSizesList[i];
// 1. Remove all consecutive <whitespace-token>s from the end of unparsed size.
// ( parseComponentValues() already omits spaces outside of parens. )
// If unparsed size is now empty, that is a parse error; continue to the next
// iteration of this algorithm.
// ( parseComponentValues() won't push an empty array. )
// 2. If the last component value in unparsed size is a valid non-negative
// <source-size-value>, let size be its value and remove the component value
// from unparsed size. Any CSS function other than the calc() function is
// invalid. Otherwise, there is a parse error; continue to the next iteration
// of this algorithm.
// http://dev.w3.org/csswg/css-syntax/#parse-component-value
lastComponentValue=unparsedSize[unparsedSize.length-1];if(isValidNonNegativeSourceSizeValue(lastComponentValue)){size=lastComponentValue;unparsedSize.pop()}else{continue}
// 3. Remove all consecutive <whitespace-token>s from the end of unparsed
// size. If unparsed size is now empty, return size and exit this algorithm.
// If this was not the last item in unparsed sizes list, that is a parse error.
if(unparsedSize.length===0){return size}
// 4. Parse the remaining component values in unparsed size as a
// <media-condition>. If it does not parse correctly, or it does parse
// correctly but the <media-condition> evaluates to false, continue to the
// next iteration of this algorithm.
// (Parsing all possible compound media conditions in JS is heavy, complicated,
// and the payoff is unclear. Is there ever an situation where the
// media condition parses incorrectly but still somehow evaluates to true?
// Can we just rely on the browser/polyfill to do it?)
unparsedSize=unparsedSize.join(" ");if(!pf.matchesMedia(unparsedSize)){continue}
// 5. Return size and exit this algorithm.
return size}
// If the above algorithm exhausts unparsed sizes list without returning a
// size value, return 100vw.
return"100vw"}
// namespace
pf.ns=("pf"+(new Date).getTime()).substr(0,9);
// srcset support test
pf.supSrcset="srcset"in image;pf.supSizes="sizes"in image;pf.supPicture=!!window.HTMLPictureElement;if(pf.supSrcset&&pf.supPicture&&!pf.supSizes){(function(image2){image.srcset="data:,a";image2.src="data:,a";pf.supSrcset=image.complete===image2.complete;pf.supPicture=pf.supSrcset&&pf.supPicture})(document.createElement("img"))}
// using pf.qsa instead of dom traversing does scale much better,
// especially on sites mixing responsive and non-responsive images
pf.selShort="picture>img,img[srcset]";pf.sel=pf.selShort;pf.cfg=cfg;if(pf.supSrcset){pf.sel+=",img["+srcsetAttr+"]"}
/**
	 * Shortcut property for `devicePixelRatio` ( for easy overriding in tests )
	 */pf.DPR=DPR||1;pf.u=units;
// container of supported mime types that one might need to qualify before using
pf.types=types;alwaysCheckWDescriptor=pf.supSrcset&&!pf.supSizes;pf.setSize=noop;
/**
	 * Gets a string and returns the absolute URL
	 * @param src
	 * @returns {String} absolute URL
	 */pf.makeUrl=memoize(function(src){anchor.href=src;return anchor.href});
/**
	 * Gets a DOM element or document and a selctor and returns the found matches
	 * Can be extended with jQuery/Sizzle for IE7 support
	 * @param context
	 * @param sel
	 * @returns {NodeList}
	 */pf.qsa=function(context,sel){return context.querySelectorAll(sel)};
/**
	 * Shortcut method for matchMedia ( for easy overriding in tests )
	 * wether native or pf.mMQ is used will be decided lazy on first call
	 * @returns {boolean}
	 */pf.matchesMedia=function(){if(window.matchMedia&&(matchMedia("(min-width: 0.1em)")||{}).matches){pf.matchesMedia=function(media){return!media||matchMedia(media).matches}}else{pf.matchesMedia=pf.mMQ}return pf.matchesMedia.apply(this,arguments)};
/**
	 * A simplified matchMedia implementation for IE8 and IE9
	 * handles only min-width/max-width with px or em values
	 * @param media
	 * @returns {boolean}
	 */pf.mMQ=function(media){return media?evalCSS(media):true};
/**
	 * Returns the calculated length in css pixel from the given sourceSizeValue
	 * http://dev.w3.org/csswg/css-values-3/#length-value
	 * intended Spec mismatches:
	 * * Does not check for invalid use of CSS functions
	 * * Does handle a computed length of 0 the same as a negative and therefore invalid value
	 * @param sourceSizeValue
	 * @returns {Number}
	 */pf.calcLength=function(sourceSizeValue){var value=evalCSS(sourceSizeValue,true)||false;if(value<0){value=false}return value};
/**
	 * Takes a type string and checks if its supported
	 */pf.supportsType=function(type){return type?types[type]:true};
/**
	 * Parses a sourceSize into mediaCondition (media) and sourceSizeValue (length)
	 * @param sourceSizeStr
	 * @returns {*}
	 */pf.parseSize=memoize(function(sourceSizeStr){var match=(sourceSizeStr||"").match(regSize);return{media:match&&match[1],length:match&&match[2]}});pf.parseSet=function(set){if(!set.cands){set.cands=parseSrcset(set.srcset,set)}return set.cands};
/**
	 * returns 1em in css px for html/body default size
	 * function taken from respondjs
	 * @returns {*|number}
	 */pf.getEmValue=function(){var body;if(!eminpx&&(body=document.body)){var div=document.createElement("div"),originalHTMLCSS=docElem.style.cssText,originalBodyCSS=body.style.cssText;div.style.cssText=baseStyle;
// 1em in a media query is the value of the default font size of the browser
// reset docElem and body to ensure the correct value is returned
docElem.style.cssText=fsCss;body.style.cssText=fsCss;body.appendChild(div);eminpx=div.offsetWidth;body.removeChild(div);
//also update eminpx before returning
eminpx=parseFloat(eminpx,10);
// restore the original values
docElem.style.cssText=originalHTMLCSS;body.style.cssText=originalBodyCSS}return eminpx||16};
/**
	 * Takes a string of sizes and returns the width in pixels as a number
	 */pf.calcListLength=function(sourceSizeListStr){
// Split up source size list, ie ( max-width: 30em ) 100%, ( max-width: 50em ) 50%, 33%
//
//                           or (min-width:30em) calc(30% - 15px)
if(!(sourceSizeListStr in sizeLengthCache)||cfg.uT){var winningLength=pf.calcLength(parseSizes(sourceSizeListStr));sizeLengthCache[sourceSizeListStr]=!winningLength?units.width:winningLength}return sizeLengthCache[sourceSizeListStr]};
/**
	 * Takes a candidate object with a srcset property in the form of url/
	 * ex. "images/pic-medium.png 1x, images/pic-medium-2x.png 2x" or
	 *     "images/pic-medium.png 400w, images/pic-medium-2x.png 800w" or
	 *     "images/pic-small.png"
	 * Get an array of image candidates in the form of
	 *      {url: "/foo/bar.png", resolution: 1}
	 * where resolution is http://dev.w3.org/csswg/css-values-3/#resolution-value
	 * If sizes is specified, res is calculated
	 */pf.setRes=function(set){var candidates;if(set){candidates=pf.parseSet(set);for(var i=0,len=candidates.length;i<len;i++){setResolution(candidates[i],set.sizes)}}return candidates};pf.setRes.res=setResolution;pf.applySetCandidate=function(candidates,img){if(!candidates.length){return}var candidate,i,j,length,bestCandidate,curSrc,curCan,candidateSrc,abortCurSrc;var imageData=img[pf.ns];var dpr=pf.DPR;curSrc=imageData.curSrc||img[curSrcProp];curCan=imageData.curCan||setSrcToCur(img,curSrc,candidates[0].set);
// if we have a current source, we might either become lazy or give this source some advantage
if(curCan&&curCan.set===candidates[0].set){
// if browser can abort image request and the image has a higher pixel density than needed
// and this image isn't downloaded yet, we skip next part and try to save bandwidth
abortCurSrc=supportAbort&&!img.complete&&curCan.res-.1>dpr;if(!abortCurSrc){curCan.cached=true;
// if current candidate is "best", "better" or "okay",
// set it to bestCandidate
if(curCan.res>=dpr){bestCandidate=curCan}}}if(!bestCandidate){candidates.sort(ascendingSort);length=candidates.length;bestCandidate=candidates[length-1];for(i=0;i<length;i++){candidate=candidates[i];if(candidate.res>=dpr){j=i-1;
// we have found the perfect candidate,
// but let's improve this a little bit with some assumptions ;-)
if(candidates[j]&&(abortCurSrc||curSrc!==pf.makeUrl(candidate.url))&&chooseLowRes(candidates[j].res,candidate.res,dpr,candidates[j].cached)){bestCandidate=candidates[j]}else{bestCandidate=candidate}break}}}if(bestCandidate){candidateSrc=pf.makeUrl(bestCandidate.url);imageData.curSrc=candidateSrc;imageData.curCan=bestCandidate;if(candidateSrc!==curSrc){pf.setSrc(img,bestCandidate)}pf.setSize(img)}};pf.setSrc=function(img,bestCandidate){var origWidth;img.src=bestCandidate.url;
// although this is a specific Safari issue, we don't want to take too much different code paths
if(bestCandidate.set.type==="image/svg+xml"){origWidth=img.style.width;img.style.width=img.offsetWidth+1+"px";
// next line only should trigger a repaint
// if... is only done to trick dead code removal
if(img.offsetWidth+1){img.style.width=origWidth}}};pf.getSet=function(img){var i,set,supportsType;var match=false;var sets=img[pf.ns].sets;for(i=0;i<sets.length&&!match;i++){set=sets[i];if(!set.srcset||!pf.matchesMedia(set.media)||!(supportsType=pf.supportsType(set.type))){continue}if(supportsType==="pending"){set=supportsType}match=set;break}return match};pf.parseSets=function(element,parent,options){var srcsetAttribute,imageSet,isWDescripor,srcsetParsed;var hasPicture=parent&&parent.nodeName.toUpperCase()==="PICTURE";var imageData=element[pf.ns];if(imageData.src===undefined||options.src){imageData.src=getImgAttr.call(element,"src");if(imageData.src){setImgAttr.call(element,srcAttr,imageData.src)}else{removeImgAttr.call(element,srcAttr)}}if(imageData.srcset===undefined||options.srcset||!pf.supSrcset||element.srcset){srcsetAttribute=getImgAttr.call(element,"srcset");imageData.srcset=srcsetAttribute;srcsetParsed=true}imageData.sets=[];if(hasPicture){imageData.pic=true;getAllSourceElements(parent,imageData.sets)}if(imageData.srcset){imageSet={srcset:imageData.srcset,sizes:getImgAttr.call(element,"sizes")};imageData.sets.push(imageSet);isWDescripor=(alwaysCheckWDescriptor||imageData.src)&&regWDesc.test(imageData.srcset||"");
// add normal src as candidate, if source has no w descriptor
if(!isWDescripor&&imageData.src&&!getCandidateForSrc(imageData.src,imageSet)&&!imageSet.has1x){imageSet.srcset+=", "+imageData.src;imageSet.cands.push({url:imageData.src,d:1,set:imageSet})}}else if(imageData.src){imageData.sets.push({srcset:imageData.src,sizes:null})}imageData.curCan=null;imageData.curSrc=undefined;
// if img has picture or the srcset was removed or has a srcset and does not support srcset at all
// or has a w descriptor (and does not support sizes) set support to false to evaluate
imageData.supported=!(hasPicture||imageSet&&!pf.supSrcset||isWDescripor);if(srcsetParsed&&pf.supSrcset&&!imageData.supported){if(srcsetAttribute){setImgAttr.call(element,srcsetAttr,srcsetAttribute);element.srcset=""}else{removeImgAttr.call(element,srcsetAttr)}}if(imageData.supported&&!imageData.srcset&&(!imageData.src&&element.src||element.src!==pf.makeUrl(imageData.src))){if(imageData.src===null){element.removeAttribute("src")}else{element.src=imageData.src}}imageData.parsed=true};pf.fillImg=function(element,options){var imageData;var extreme=options.reselect||options.reevaluate;
// expando for caching data on the img
if(!element[pf.ns]){element[pf.ns]={}}imageData=element[pf.ns];
// if the element has already been evaluated, skip it
// unless `options.reevaluate` is set to true ( this, for example,
// is set to true when running `picturefill` on `resize` ).
if(!extreme&&imageData.evaled===evalId){return}if(!imageData.parsed||options.reevaluate){pf.parseSets(element,element.parentNode,options)}if(!imageData.supported){applyBestCandidate(element)}else{imageData.evaled=evalId}};pf.setupRun=function(){if(!alreadyRun||isVwDirty||DPR!==window.devicePixelRatio){updateMetrics()}};
// If picture is supported, well, that's awesome.
if(pf.supPicture){picturefill=noop;pf.fillImg=noop}else{
// Set up picture polyfill by polling the document
(function(){var isDomReady;var regReady=window.attachEvent?/d$|^c/:/d$|^c|^i/;var run=function(){var readyState=document.readyState||"";timerId=setTimeout(run,readyState==="loading"?200:999);if(document.body){pf.fillImgs();isDomReady=isDomReady||regReady.test(readyState);if(isDomReady){clearTimeout(timerId)}}};var timerId=setTimeout(run,document.body?9:99);
// Also attach picturefill on resize and readystatechange
// http://modernjavascript.blogspot.com/2013/08/building-better-debounce.html
var debounce=function(func,wait){var timeout,timestamp;var later=function(){var last=new Date-timestamp;if(last<wait){timeout=setTimeout(later,wait-last)}else{timeout=null;func()}};return function(){timestamp=new Date;if(!timeout){timeout=setTimeout(later,wait)}}};var lastClientWidth=docElem.clientHeight;var onResize=function(){isVwDirty=Math.max(window.innerWidth||0,docElem.clientWidth)!==units.width||docElem.clientHeight!==lastClientWidth;lastClientWidth=docElem.clientHeight;if(isVwDirty){pf.fillImgs()}};on(window,"resize",debounce(onResize,99));on(document,"readystatechange",run)})()}pf.picturefill=picturefill;
//use this internally for easy monkey patching/performance testing
pf.fillImgs=picturefill;pf.teardownRun=noop;
/* expose methods for testing */picturefill._=pf;window.picturefillCFG={pf:pf,push:function(args){var name=args.shift();if(typeof pf[name]==="function"){pf[name].apply(pf,args)}else{cfg[name]=args[0];if(alreadyRun){pf.fillImgs({reselect:true})}}}};while(setOptions&&setOptions.length){window.picturefillCFG.push(setOptions.shift())}
/* expose picturefill */window.picturefill=picturefill;
/* expose picturefill */if(typeof module==="object"&&typeof module.exports==="object"){
// CommonJS, just export
module.exports=picturefill}else if(typeof define==="function"&&define.amd){
// AMD support
define("picturefill",function(){return picturefill})}
// IE8 evals this sync, so it must be the last thing we do
if(!pf.supPicture){types["image/webp"]=detectTypeSupport("image/webp","data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA==")}})(window,document);
/**
 * jQuery Unveil
 * A very lightweight jQuery plugin to lazy load images
 * http://luis-almeida.github.com/unveil
 *
 * Licensed under the MIT license.
 * Copyright 2013 Luís Almeida
 * https://github.com/luis-almeida
 */(function($){$.fn.unveil=function(threshold,callback){var $w=$(window),th=threshold||0,retina=window.devicePixelRatio>1,attrib=retina?"data-src-retina":"data-src",images=this,loaded;this.one("unveil",function(){var source=this.getAttribute(attrib);source=source||this.getAttribute("data-src");if(source){this.setAttribute("src",source);if(typeof callback==="function")callback.call(this)}});function unveil(){var inview=images.filter(function(){var $e=$(this);if($e.is(":hidden"))return;var wt=$w.scrollTop(),wb=wt+$w.height(),et=$e.offset().top,eb=et+$e.height();return eb>=wt-th&&et<=wb+th});loaded=inview.trigger("unveil");images=images.not(loaded)}$w.on("scroll.unveil resize.unveil lookup.unveil",unveil);unveil();return this}})(window.jQuery||window.Zepto);var fahrtechnik=fahrtechnik||{};
/**
 * The Sub Navigation.
 * @param element the form node surrounding the questionnaire form.
 * @param agbArtilceUrl
 * @param isBox boolean determining if its a ContentBox or in article.
 */fahrtechnik.Questionnaire=function(element,agbArtilceUrl,isBox){var self=this;
/**
     * The form node we use as reference.
     */var node=$(element);
/**
     * We save this object in the form node.
     */node.data("questionnaire",self);
/**
     * Shows a message of a given type.
     * @param message the message to show.
     * @param type the type of the message, either 'error' or 'info'
     * @return void
     */self.showMessage=function(message,type){
// for now we dont need the type, maybe we need to add it for styling
node.find(".jsQuestionnaireChoices").removeClass("loading").html(message);node.find(".jsQuestionnaireButtons .buttonsmall").hide();$(".agb-input").parent().remove()};
/**
     * Shows a result given by a json.
     * @param json Json representing a result.
     * @return void
     */self.showResult=function(json){$(".agb-input").parent().remove();if(isBox){var list=$("<ul></ul>");if(typeof json.questions!=="undefined"){list.append($("<li>"+json.completeUserCount+" Mitspieler.</li>"));list.append($("<li>Du hast "+json.correctAnswerRatio+"% richtig.</li>"));list.append($("<li>Mehr erfährst du auf der Quizseite.</li>"))}else{
// show the result
for(var i in json){if(json.length>1){node.find(".questionText").text("");list.append("<li>"+json[i].text+"<span>"+json[i].count+"</span></li>")}else{node.find(".questionText").html(json[i].text+"<span>"+json[i].count+"</span>")}if($.map(json[i].choices,function(n,i){return i}).length>3){list.append($('<li><span class="resulttext">Danke für Deine Stimme!</span></li>'));list.append($('<li><span class="resulttext">Das Ergebnis erfährst Du auf der Umfrageseite.</span></li>'))}else{for(var j in json[i].choices){var choice=json[i].choices[j];list.append($('<li><span class="resulttext">'+choice.text+'</span><div class="resultcontainer"><span class="bar" style="width:'+choice.percentage+'%"><span class="percent">'+choice.percentage+'%</span></span></div><div class="clear"></div></li>'))}}}}node.find(".jsQuestionnaireChoices").replaceWith($('<div class="jsQuestionnaireChoices" />').append(list));node.find(".jsQuestionnaireButtons .buttonsmall").hide()}else{var list=$("<ul></ul>");if(typeof json.questions!=="undefined"){node.find(".jsQuestionnaireText").text("");
// quiz
node.find(".jsQuestionnaireChoices").removeClass("loading");node.find(".questioncount").empty().append($('<span class="openbold">Auflösung</span>'));var container=node.find(".questioncontainer");container.empty();var statusText="Sie verfügen über ein solides Grundwissen auf diesem Gebiet. Weiter so!";if(json.correctAnswerRatio>66){statusText="Sehr gut gemacht! Ihnen kann auf diesem Gebiet keiner etwas vormachen."}else if(json.correctAnswerRatio<33){statusText="Da geht noch was. Ihre Fachgebiete liegen offenbar in anderen Bereichen."}container.prepend($('<span class="blockcontent">Sie haben '+json.correctAnswerCount+" von "+json.questionCount+" Fragen richtig beantwortet. "+statusText+"</span>"));var list=$("<ul></ul>");var questionIndex=1;for(var i in json.questions){var listitem=$('<li class="question"><span class="blockletters">Frage '+questionIndex+++"</span></li>");listitem.append($('<h2 class="">'+json.questions[i].text+"</h2>"));if(typeof json.questions[i].imageUrl!=="undefined"){listitem.append($('<img src="'+json.questions[i].imageUrl+'" alt="'+json.questions[i].text+'" /><span class="questionImageCaption">'+json.questions[i].imageDescription+"</span>"))}var choices=$('<ul class="withimg"></ul>');for(var j in json.questions[i].choices){var cssClass="";var conclusion="";if(json.questions[i].choices[j].userAnswer&&json.questions[i].choices[j].correctAnswer){cssClass="green";conclusion="richtig"}else if(json.questions[i].choices[j].correctAnswer){cssClass="green";conclusion=""}else if(json.questions[i].choices[j].userAnswer&&!json.questions[i].choices[j].correctAnswer){cssClass="red";conclusion="falsch"}var choiceElement=$('<label for="choice-'+j+'" class="'+cssClass+'"></label>');if(conclusion!==""){choiceElement.append($('<span class="conclusion blockletters">'+conclusion+"</span>"))}if(json.questions[i].choices[j].userAnswer){choiceElement.append($('<input name="choices['+i+'][]" type="radio" disabled checked id="choice-'+j+'">'))}else{choiceElement.append($('<input name="choices['+i+'][]" type="radio" disabled id="choice-'+j+'">'))}if(json.questions[i].choices[j].relatedContent){for(var k in json.questions[i].choices[j].relatedContent){var text=json.questions[i].choices[j].text;var imageUrl=json.questions[i].choices[j].relatedContent[k].imageUrl;if(!imageUrl){continue}choiceElement.append($('<span class="answer"><img src="'+imageUrl+'" height="80" alt="'+text+'"/></span>'));break}}else{choiceElement.append($('<span class="answer">'+json.questions[i].choices[j].text+"</span>"))}choiceElement.append($('<div class="clear"></div>'));choices.append($("<li></li>").append(choiceElement))}listitem.append(choices);list.append(listitem)}container.append(list);$(".type_buzzquiz div.questionnaireContainer").addClass("hide");$(".type_buzzquiz hgroup, .type_buzzquiz figure").removeClass("hide")}else if(typeof json.resultcategorytext!=="undefined"){node.find(".questionnaireResultText").removeClass("hide");if(typeof json.imageUrl!=="undefined"){$(".type_buzzquiz .inner figure img").attr("src",json.imageUrl).css({display:"block",margin:"10px 0"});$(".type_buzzquiz .inner figure").addClass("relative");$(".type_buzzquiz .inner figure").append('<span class="buzzfeed-img-copyright">'+json.imageCopyright+"</span>");$(".type_buzzquiz .inner figure").removeClass("hide")}$(".type_buzzquiz hgroup h1").text(json.title);$(".type_buzzquiz hgroup .textsection").html(json.resultcategorytext);$(".type_buzzquiz div.questionnaireContainer").addClass("hide");$(".type_buzzquiz hgroup").removeClass("hide");if(typeof json.color!=="undefined"){$(".quizcontainer").css("background-color",json.color)}}else{
// poll
node.find(".jsQuestionnaireChoices").removeClass("loading");for(var i in json){if(json.length>1){node.find(".questionText").text("");list.append("<li>"+json[i].text+"<span>"+json[i].count+"</span></li>")}else{node.find(".questionText").html(json[i].text+"<span>"+json[i].count+"</span>")}for(var j in json[i].choices){var choice=json[i].choices[j];list.append($('<li><span class="resulttext block">'+choice.text+'</span><div class="resultcontainer"><span class="percent">'+choice.percentage+'%</span><span class="percentdivider"></span><span class="bar" style="width:'+Math.round(choice.percentage)+'%"></span></div><div class="clear"></div></li>'))}}}node.find(".jsQuestionnaireChoices").empty().append(list);node.find(".jsQuestionnaireButtons .buttonsmall").hide()}};
/**
     * Shows a question given by a json.
     * @param json Json representing a question.
     * @return void
     */self.showQuestion=function(json){var list=$("<ul></ul>");node.attr("action",json.action);$userReference=node.find("input[name=userReference]");if($userReference.length===0){$userReference=$('<input type="hidden" name="userReference" value="'+json.userReference+'">')}node.append($userReference);if(isBox){node.find(".questionText").html(json.text);for(var i in json.choices){var label=$('<label for="choice-'+i+'"></label>');label.append($('<input name="choice[]" type="radio" value="'+i+'" id="choice-'+i+'">'));label.append($('<span class="blockcontent">'+json.choices[i].text+'</span><span class="clear"></span>'));list.append($("<li></li>").append(label))}}else{
// new question
node.find(".jsQuestionnaireText").html(json.text);node.find(".buzzfeed-question-sub-text").removeClass("hide");node.find(".jsQuestionIndex").text(json.index+1);node.find(".bullets .bullet").removeClass("active").eq(json.index).addClass("active");if(typeof json.imageUrl!=="undefined"){node.find(".questionImageContainer .questionImage").attr({src:json.imageUrl,alt:json.text,style:""}).removeClass("hide");node.find(".buzzfeed-img-copyright").removeClass("hide");node.find(".questionImageContainer .questionImageCaption").text(json.imageDescription);if(typeof json.imageCopyright!=="undefined"&&json.imageCopyright!=null){if(json.questionnaire.type===5){node.find(".buzzfeed-textimage .buzzfeed-img-copyright").text(json.imageCopyright)}if(json.imageDescription.length!==0){node.find(".questionImageContainer .questionImageCopyright").text(" - "+json.imageCopyright)}else{node.find(".questionImageContainer .questionImageCopyright").text(json.imageCopyright)}}if(typeof json.imageCopyrightUri!=="undefined"&&json.imageCopyrightUri!=null){if(json.imageCopyright.length!==0){node.find(".questionImageContainer .questionImageCopyrightUri").text(" - "+json.imageCopyrightUri)}else{node.find(".questionImageContainer .questionImageCopyrightUri").text(json.imageCopyrightUri)}}}else{node.find(".buzzfeed-question-sub-text").addClass("hide");node.find(".buzzfeed-img-copyright").addClass("hide");node.find(".questionImageContainer .questionImage").addClass("hide")}for(var i in json.choices){var labelContent;if(json.choices[i].relatedContent){for(var j in json.choices[i].relatedContent){if(json.questionnaire.type===5){labelContent='<span class="answer down">'+json.choices[i].text+"</span>";labelContent+='<img src="'+json.choices[i].relatedContent[j].imageUrl+'" width="195" height="137" alt="'+json.choices[i].text+'" /><span class="buzzfeed-img-copyright">'+json.choices[i].relatedContent[j].imageCopyright+"</span>"}else if(json.questionnaire.styleSheet){labelContent='<img src="'+json.choices[i].relatedContent[j].imageUrl+'" width="195" height="137" alt="'+json.choices[i].text+'" />'}else{labelContent='<img src="'+json.choices[i].relatedContent[j].imageUrl+'" height="80" alt="'+json.choices[i].text+'" />'}break}}else{labelContent=json.choices[i].text}var label=$('<label for="choice-'+i+'"></label>');label.append($('<input name="choice[]" type="radio" value="'+i+'" id="choice-'+i+'">'));if(json.questionnaire.styleSheet&&json.choices[i].relatedContent){for(var j in json.choices[i].relatedContent){if(json.choices[i].relatedContent[j].imageUrl!=null){label.append($('<span class="answer down">'+json.choices[i].text+'</span><span class="clear"></span>'+labelContent));label.addClass("block")}}}else{label.append($('<span class="answer">'+labelContent+'</span><span class="clear"></span>'))}if(json.questionnaire.styleSheet){list.append($('<li style="background-color: '+json.questionnaire.styleSheet+';"></li>').append(label))}else{list.append($("<li></li>").append(label))}}if(typeof json.uploadAction!=="undefined"){var label=$('<iframe height="75" width="400" src="'+json.uploadAction+'" border="0" frameborder="0" allowTransparency="true"></iframe>');list.append($("<li></li>").append(label))}if(json.freeTextAllowed){var label=$('<label for="question-'+json.id+'-freechoice"></label>');label.append($('<input name="choice[]" type="text" id="question-'+json.id+'-freechoice">'));list.append($("<li></li>").append(label))}if(json.last===true){var input=$('<input name="agb" type="checkbox" id="agb"><label for="agb">Akzeptieren Sie <a href="'+agbArtilceUrl+'" target="_blank">die Teilnahmebedingungen</a>, um an dem Gewinnspiel teilnehmen zu können.</label>');list.append($('<li class="wrap-accept-agb" style="opacity:1 !important"><div class="agb-feedback"  > Dieses Feld muss ausgefüllt werden. </div></li>').append(input))}}node.find(".jsQuestionnaireChoices").replaceWith($('<div class="jsQuestionnaireChoices" />').append(list));var inputs=node.find("input");self.buttonControl(inputs);node.find(".jsQuestionnaireButtons").addClass("buttonsmall-inactive")};self.buttonControl=function(inputs){node.find(".jsQuestionnaireButtons").show();if(inputs.length==0){var txtArea=node.find("textarea");var upload_iFrame=node.find("iframe");if(txtArea){for(var i=0,len=txtArea.length;i<len;i++){$(txtArea[i]).bind("keydown",function(){node.find(".jsQuestionnaireButtons").removeClass("buttonsmall-inactive");$(this).unbind("keydown")})}}if(upload_iFrame){node.find(".jsQuestionnaireButtons").removeClass("buttonsmall-inactive")}}else{for(var i=0,len=inputs.length;i<len;i++){var inputType=inputs[i].type;if(inputType=="radio"){$(inputs[i]).bind("change",function(){node.find(".jsQuestionnaireButtons").removeClass("buttonsmall-inactive");$(this).unbind("change")})}else if(inputType=="text"){$(inputs[i]).bind("keydown",function(){node.find(".jsQuestionnaireButtons").removeClass("buttonsmall-inactive");$(this).unbind("keydown")})}else{node.find(".jsQuestionnaireButtons").removeClass("buttonsmall-inactive")}}}if($(".type_buzzquiz div.questionnaireContainer")){node.find('input[type="radio"]').click(function(){$(".jsQuestionnaireChoices ul li").css("opacity",.5);$(this).closest("li").css("opacity",1)})}};
/**
     * Constructor.
     */
(function(){var inputs=node.find("input");self.buttonControl(inputs);$(document).on(fahrtechnik.events.SESSION_LOADED,function(event,data){if(data&&!$.isEmptyObject(data)){node.find(".questionnaireContainer").removeClass("hide");node.find(".loginNotice").addClass("hide")}});node.find("a.login").on("click",function(evt){var $login=$(".topmenus .minimenu .symbol.login");if($login){$login.click()}return false});node.find(".submitButton").on("click",function(){
//check if one radio button is checked
var $agbInputNode=node.find("input[name=agb]");var $agbFeedbackNode=node.find(".agb-feedback");$agbFeedbackNode.hide();var input=node.find("input");var checked=false;if(input.length==0){var txtArea=node.find("textarea");if(txtArea){for(var i=0,len=txtArea.length;i<len;i++){if(txtArea[0].value!=""){checked=true;break}}}}else{for(var i=0,len=input.length;i<len;i++){if(input[i].type=="radio"){if(input[i].checked==true){checked=true;break}}else if(input[i].type=="text"){if(input[i].value!=""){checked=true;break}}else if(input[i].type=="file"){if(input[i].value!=""){checked=true;break}}}}if(!checked){return false}if($agbInputNode.length){if(!$agbInputNode.prop("checked")){
// agb input
$agbFeedbackNode.show();return false}}node.find(".jsQuestionnaireButtons").hide();node.find(".jsQuestionnaireButtons").addClass("buttonsmall-inactive");
// so we can be sure that its a json object.
var url=node.attr("action");var data=node.serialize();if(data.length==0){return false}node.find(".jsQuestionnaireChoices").addClass("loading").html("");
//reloadOewa('umfrageclick');
$.ajax({url:url,type:"POST",data:data,dataType:"JSON",success:function(data,textStatus,jqXHR){if(typeof data.error!=="undefined"){self.showMessage(data.error.message,"error")}else if(typeof data.message!=="undefined"){self.showMessage(data.message,"info")}else if(typeof data.result!=="undefined"){self.showResult(data.result)}else if(typeof data.question!=="undefined"){self.showQuestion(data.question)}}});return false});node.find(".freeTextChoice").keypress(function(event){if(event.which===13){node.find(".submitButton").focus().click();return false}});
// show result if user already voted
if(node.data("questionnaire-type")=="1"){
// only for poll
var url=node.data("result-url");$.ajax({url:url,type:"GET",dataType:"JSON",success:function(data,textStatus,jqXHR){if(typeof data.error!=="undefined"){self.showMessage(data.error.message,"error")}else if(typeof data.message!=="undefined"){self.showMessage(data.message,"info")}else if(typeof data.result!=="undefined"){self.showResult(data.result)}}})}})()};var search=search||{};
/**
 * InstantSearch | requests result while typing.
 * @param object options Object containing nodes and init stuff.
 * @code example
 *   new search.InstantSearch({
 *      'inputNode': '.search-input-element',
 *      'ajaxUrl': /_ajax/search/term',
 *      'pageUrl': /search/term',
 *      'destinationNode': 'div.destination-element',
 *      'limit': '5'
 *   });
 * @endcode
 */search.InstantSearch=function(options){var required_options=["inputNode","ajaxUrl","pageUrl"];var error=false;for(var i=0;i<required_options.length;i++){if(typeof options[required_options[i]]==="undefined"||!options[required_options[i]]){console.error('InstantSearch: option "'+required_options[i]+'" required.');error=true}}if(error){return null}options=$.extend(true,{typingTimeout:300},options);var self=this;self.eventHandler={beforeSearch:[],success:[],error:[],complete:[],init:[],empty:[]};self.$input=$(options.inputNode);self.$destination=$(options.destinationNode);self.options=options;self.term=null;self.typing_timeout=null;self.requests=[];self.$input.on("keyup",function(e){if(typeof e.keyCode==="undefined"||e.keyCode===16||e.keyCode===17||e.keyCode===18||e.keyCode===19||e.keyCode===20||e.keyCode===27||e.keyCode===33||e.keyCode===34||e.keyCode===35||e.keyCode===36||e.keyCode===37||e.keyCode===38||e.keyCode===39||e.keyCode===40||e.keyCode===42||e.keyCode===45||e.keyCode===92||e.keyCode>=112&&e.keyCode<=123||e.keyCode===144||e.keyCode===145||e.keyCode===224||e.keyCode===225){return false}self.perform(e);return false});return self};
/**
 * Adds a Event handler for a given event.
 * @param string event
 * @param function handler
 */search.InstantSearch.prototype.on=function(event,handler){var self=this;$.each(event.split(" "),function(i,val){if(typeof self.eventHandler[val]==="undefined"){self.eventHandler[val]=[]}self.eventHandler[val].push(handler)});return self};
/**
 * Triggers an event.
 * @param string event
 * @param any data
 */search.InstantSearch.prototype.trigger=function(event,params){var self=this;returnValues=[];if(typeof self.eventHandler[event]==="undefined"){return returnValues}for(var i=0;i<self.eventHandler[event].length;i++){var handler=self.eventHandler[event][i];var returnValue=handler.apply(handler,params);returnValues.push(returnValue)}return returnValues};
/**
 * Triggers init.
 */search.InstantSearch.prototype.init=function(){return this.trigger("init",[this])};
/**
 * Triggers empty.
 */search.InstantSearch.prototype.empty=function(){return this.trigger("empty",[this])};
/**
 * Performs search.
 */search.InstantSearch.prototype.perform=function(e){var self=this;if(self.$input.val().length<2){self.trigger("init",[self]);return false}self.term=self.$input.val();if(self.typing_timeout!==null){return false}if(typeof e.keyCode!=="undefined"&&e.keyCode===13){window.location=self.options.pageUrl+"/"+self.term}if(self.term===self.$input.val()){clearTimeout(self.typing_timeout)}for(var i=0;i<self.requests.length;i++){self.requests[i].abort()}self.requests=[];self.typing_timeout=setTimeout(function(){clearTimeout(self.typing_timeout);self.typing_timeout=null;self.trigger("beforeSearch",[self]);var url=self.options.ajaxUrl+"/"+self.$input.val();if(typeof self.options.limit!=="undefined"){url+="/"+self.options.limit}self.requests.push($.ajax({type:"GET",url:url,success:function(data){if(data.length==0){self.trigger("empty",[self,data]);return false}self.$destination.html(data);self.trigger("success",[self,data])},error:function(jqXHR){self.trigger("error",[self,jqXHR])},complete:function(jqXHR){self.trigger("complete",[self,jqXHR])}}))},self.options.typingTimeout)};
/*!
   JW Player version 8.19.1
   Copyright (c) 2021, JW Player, All Rights Reserved
   This source code and its use and distribution is subject to the terms
   and conditions of the applicable license agreement.
   https://www.jwplayer.com/tos/
   This product includes portions of other software. For the full text of licenses, see
   https://ssl.p.jwpcdn.com/player/v/8.19.1/notice.txt
*/window.jwplayer=function(t){function e(e){for(var n,i,o=e[0],u=e[1],a=0,s=[];a<o.length;a++)i=o[a],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&s.push(r[i][0]),r[i]=0;for(n in u)Object.prototype.hasOwnProperty.call(u,n)&&(t[n]=u[n]);for(c&&c(e);s.length;)s.shift()()}var n={},r={0:0};function i(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(t){var e=[],n=r[t];if(0!==n)if(n)e.push(n[2]);else{var o=new Promise(function(e,i){n=r[t]=[e,i]});e.push(n[2]=o);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=55,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(t){return i.p+""+({1:"jwplayer.amp",2:"jwplayer.controls",3:"jwplayer.controls.tizen",4:"jwplayer.core",5:"jwplayer.core.controls",6:"jwplayer.core.controls.html5",7:"jwplayer.core.controls.polyfills",8:"jwplayer.core.controls.polyfills.html5",9:"polyfills.intersection-observer",10:"polyfills.webvtt",11:"provider.airplay",12:"provider.cast",13:"provider.hlsjs",14:"provider.hlsjs-alt",15:"provider.html5",16:"provider.shaka",17:"related",18:"vttparser"}[t]||t)+".js"}(t);var c=new Error;u=function(e){a.onerror=a.onload=null,clearTimeout(s);var n=r[t];if(0!==n){if(n){var i=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src;c.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",c.name="ChunkLoadError",c.type=i,c.request=o,n[1](c)}r[t]=void 0}};var s=setTimeout(function(){u({type:"timeout",target:a})},55e3);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(e)},i.m=t,i.c=n,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i.oe=function(t){throw console.error(t),t};var o=window.webpackJsonpjwplayer=window.webpackJsonpjwplayer||[],u=o.push.bind(o);o.push=e,o=o.slice();for(var a=0;a<o.length;a++)e(o[a]);var c=u;return i(i.s=51)}([function(t,e,n){"use strict";n.d(e,"i",function(){return k}),n.d(e,"A",function(){return x}),n.d(e,"F",function(){return T}),n.d(e,"l",function(){return _}),n.d(e,"k",function(){return I}),n.d(e,"a",function(){return L}),n.d(e,"b",function(){return R}),n.d(e,"G",function(){return B}),n.d(e,"n",function(){return H}),n.d(e,"H",function(){return W}),n.d(e,"e",function(){return U}),n.d(e,"J",function(){return Y}),n.d(e,"m",function(){return J}),n.d(e,"h",function(){return K}),n.d(e,"p",function(){return $}),n.d(e,"c",function(){return G}),n.d(e,"C",function(){return nt}),n.d(e,"I",function(){return ot}),n.d(e,"q",function(){return ct}),n.d(e,"g",function(){return st}),n.d(e,"j",function(){return lt}),n.d(e,"D",function(){return ft}),n.d(e,"w",function(){return pt}),n.d(e,"t",function(){return mt}),n.d(e,"v",function(){return bt}),n.d(e,"x",function(){return yt}),n.d(e,"s",function(){return jt}),n.d(e,"u",function(){return wt}),n.d(e,"r",function(){return Ot}),n.d(e,"y",function(){return kt}),n.d(e,"o",function(){return xt}),n.d(e,"d",function(){return Pt}),n.d(e,"E",function(){return St}),n.d(e,"B",function(){return Tt}),n.d(e,"z",function(){return At});var r=n(18),i={},o=Array.prototype,u=Object.prototype,a=Function.prototype,c=o.slice,s=o.concat,l=u.toString,f=u.hasOwnProperty,d=o.map,p=o.reduce,h=o.forEach,v=o.filter,g=o.every,m=o.some,b=o.indexOf,y=Array.isArray,j=Object.keys,w=a.bind,O=window.isFinite,k=function(t,e,n){var r,o;if(null==t)return t;if(h&&t.forEach===h)t.forEach(e,n);else if(t.length===+t.length){for(r=0,o=t.length;r<o;r++)if(e.call(n,t[r],r,t)===i)return}else{var u=ut(t);for(r=0,o=u.length;r<o;r++)if(e.call(n,t[u[r]],u[r],t)===i)return}return t},C=k,x=function(t,e,n){var r=[];return null==t?r:d&&t.map===d?t.map(e,n):(k(t,function(t,i,o){r.push(e.call(n,t,i,o))}),r)},P=x,S="Reduce of empty array with no initial value",T=function(t,e,n,r){var i=arguments.length>2;if(null==t&&(t=[]),p&&t.reduce===p)return r&&(e=G(e,r)),i?t.reduce(e,n):t.reduce(e);if(k(t,function(t,o,u){i?n=e.call(r,n,t,o,u):(n=t,i=!0)}),!i)throw new TypeError(S);return n},E=T,A=T,_=function(t,e,n){var r;return R(t,function(t,i,o){if(e.call(n,t,i,o))return r=t,!0}),r},F=_,I=function(t,e,n){var r=[];return null==t?r:v&&t.filter===v?t.filter(e,n):(k(t,function(t,i,o){e.call(n,t,i,o)&&r.push(t)}),r)},M=I,L=function(t,e,n){e||(e=xt);var r=!0;return null==t?r:g&&t.every===g?t.every(e,n):(k(t,function(t,o,u){if(!(r=r&&e.call(n,t,o,u)))return i}),!!r)},N=L,R=function(t,e,n){e||(e=xt);var r=!1;return null==t?r:m&&t.some===m?t.some(e,n):(k(t,function(t,o,u){if(r||(r=e.call(n,t,o,u)))return i}),!!r)},D=R,B=function(t){return null==t?0:t.length===+t.length?t.length:ut(t).length},q=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},z=function(t){return null==t?xt:mt(t)?t:St(t)},V=function(t){return function(e,n,r){var i={};return n=z(n),k(e,function(o,u){var a=n.call(r,o,u,e);t(i,a,o)}),i}},H=V(function(t,e,n){Ct(t,e)?t[e].push(n):t[e]=[n]}),Q=V(function(t,e,n){t[e]=n}),W=function(t,e,n,r){for(var i=(n=z(n)).call(r,e),o=0,u=t.length;o<u;){var a=o+u>>>1;n.call(r,t[a])<i?o=a+1:u=a}return o},U=function(t,e){return null!=t&&(t.length!==+t.length&&(t=at(t)),$(t,e)>=0)},X=U,Y=function(t,e){return I(t,Tt(e))},J=function(t,e){return _(t,Tt(e))},K=function(t){var e=s.apply(o,c.call(arguments,1));return I(t,function(t){return!U(e,t)})},$=function(t,e,n){if(null==t)return-1;var r=0,i=t.length;if(n){if("number"!=typeof n)return t[r=W(t,e)]===e?r:-1;r=n<0?Math.max(0,i+n):n}if(b&&t.indexOf===b)return t.indexOf(e,n);for(;r<i;r++)if(t[r]===e)return r;return-1},Z=function(){},G=function(t,e){var n,r;if(w&&t.bind===w)return w.apply(t,c.call(arguments,1));if(!mt(t))throw new TypeError;return n=c.call(arguments,2),r=function(){if(!(this instanceof r))return t.apply(e,n.concat(c.call(arguments)));Z.prototype=t.prototype;var i=new Z;Z.prototype=null;var o=t.apply(i,n.concat(c.call(arguments)));return Object(o)===o?o:i}},tt=function(t){var e=c.call(arguments,1);return function(){for(var n=0,r=e.slice(),i=0,o=r.length;i<o;i++)Ct(r[i],"partial")&&(r[i]=arguments[n++]);for(;n<arguments.length;)r.push(arguments[n++]);return t.apply(this,r)}},et=tt(q,2),nt=function(t,e){var n={};return e||(e=xt),function(){var r=e.apply(this,arguments);return Ct(n,r)?n[r]:n[r]=t.apply(this,arguments)}},rt=function(t,e){var n=c.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},it=tt(rt,{partial:tt},1),ot=function(t,e,n){var r,i,o,u=null,a=0;n||(n={});var c=function(){a=!1===n.leading?0:Et(),u=null,o=t.apply(r,i),r=i=null};return function(){a||!1!==n.leading||(a=Et);var s=e-(Et-a);return r=this,i=arguments,s<=0?(clearTimeout(u),u=null,a=Et,o=t.apply(r,i),r=i=null):u||!1===n.trailing||(u=setTimeout(c,s)),o}},ut=function(t){if(!pt(t))return[];if(j)return j(t);var e=[];for(var n in t)Ct(t,n)&&e.push(n);return e},at=function(t){for(var e=ut(t),n=ut.length,r=Array(n),i=0;i<n;i++)r[i]=t[e[i]];return r},ct=function(t){for(var e={},n=ut(t),r=0,i=n.length;r<i;r++)e[t[n[r]]]=n[r];return e},st=function(t){return k(c.call(arguments,1),function(e){if(e)for(var n in e)void 0===t[n]&&(t[n]=e[n])}),t},lt=Object.assign||function(t){return k(c.call(arguments,1),function(e){if(e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}),t},ft=function(t){var e={},n=s.apply(o,c.call(arguments,1));return k(n,function(n){n in t&&(e[n]=t[n])}),e},dt=y||function(t){return"[object Array]"==l.call(t)},pt=function(t){return t===Object(t)},ht=[];k(["Function","String","Number","Date","RegExp"],function(t){ht[t]=function(e){return l.call(e)=="[object "+t+"]"}}),ht.Function=function(t){return"function"==typeof t};var vt=ht.Date,gt=ht.RegExp,mt=ht.Function,bt=ht.Number,yt=ht.String,jt=function(t){return O(t)&&!wt(parseFloat(t))},wt=function(t){return bt(t)&&t!=+t},Ot=function(t){return!0===t||!1===t||"[object Boolean]"==l.call(t)},kt=function(t){return void 0===t},Ct=function(t,e){return f.call(t,e)},xt=function(t){return t},Pt=function(t){return function(){return t}},St=function(t){return function(e){return e[t]}},Tt=function(t){return function(e){if(e===t)return!0;for(var n in t)if(t[n]!==e[n])return!1;return!0}},Et=r.a,At=function(t){return bt(t)&&!wt(t)};e.f={after:function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},all:L,any:R,before:q,bind:G,clone:function(t){return pt(t)?dt(t)?t.slice():lt({},t):t},collect:P,compact:function(t){return I(t,xt)},constant:Pt,contains:U,debounce:function(t,e){var n;return void 0===e&&(e=100),function(){for(var r=this,i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];clearTimeout(n),n=setTimeout(function(){t.apply(r,o)},e)}},defaults:st,defer:it,delay:rt,detect:F,difference:K,each:k,every:N,extend:lt,filter:I,find:_,findWhere:J,foldl:E,forEach:C,groupBy:H,has:Ct,identity:xt,include:X,indexBy:Q,indexOf:$,inject:A,invert:ct,isArray:dt,isBoolean:Ot,isDate:vt,isFinite:jt,isFunction:mt,isNaN:wt,isNull:function(t){return null===t},isNumber:bt,isObject:pt,isRegExp:gt,isString:yt,isUndefined:kt,isValidNumber:At,keys:ut,last:function(t,e,n){if(null!=t)return null==e||n?t[t.length-1]:c.call(t,Math.max(t.length-e,0))},map:x,matches:Tt,max:function(t,e,n){if(!e&&dt(t)&&t[0]===+t[0]&&t.length<65535)return Math.max.apply(Math,t);var r=-1/0,i=-1/0;return k(t,function(t,o,u){var a=e?e.call(n,t,o,u):t;a>i&&(r=t,i=a)}),r},memoize:nt,now:Et,omit:function(t){var e={},n=s.apply(o,c.call(arguments,1));for(var r in t)U(n,r)||(e[r]=t[r]);return e},once:et,partial:tt,pick:ft,pluck:function(t,e){return x(t,St(e))},property:St,propertyOf:function(t){return null==t?function(){}:function(e){return t[e]}},reduce:T,reject:function(t,e,n){return I(t,function(t,r,i){return!e.call(n,t,r,i)},n)},result:function(t,e){if(null!=t){var n=t[e];return mt(n)?n.call(t):n}},select:M,size:B,some:D,sortedIndex:W,throttle:ot,where:Y,without:function(t){return K(t,c.call(arguments,1))}}},function(t,e,n){"use strict";n.d(e,"x",function(){return i}),n.d(e,"w",function(){return o}),n.d(e,"v",function(){return u}),n.d(e,"s",function(){return a}),n.d(e,"t",function(){return c}),n.d(e,"r",function(){return s}),n.d(e,"b",function(){return l}),n.d(e,"d",function(){return f}),n.d(e,"u",function(){return d}),n.d(e,"e",function(){return p}),n.d(e,"i",function(){return h}),n.d(e,"a",function(){return v}),n.d(e,"f",function(){return g}),n.d(e,"c",function(){return m}),n.d(e,"g",function(){return b}),n.d(e,"h",function(){return y}),n.d(e,"m",function(){return j}),n.d(e,"j",function(){return w}),n.d(e,"k",function(){return O}),n.d(e,"l",function(){return k}),n.d(e,"n",function(){return C}),n.d(e,"o",function(){return x}),n.d(e,"p",function(){return P}),n.d(e,"q",function(){return S}),n.d(e,"z",function(){return T}),n.d(e,"y",function(){return E}),n.d(e,"A",function(){return A});var r=n(0),i=1e5,o=100001,u=100002,a=101e3,c=102e3,s=102700,l=200001,f=202e3,d=104e3,p=203e3,h=203640,v=203700,g=204e3,m=306e3,b=308e3,y=308640,j="cantPlayVideo",w="badConnection",O="cantLoadPlayer",k="cantPlayInBrowser",C="liveStreamDown",x="protectedContent",P="technicalError",S=function(){function t(t,e,n){this.code=Object(r.z)(e)?e:0,this.sourceError=n||null,t&&(this.key=t)}return t.logMessage=function(t){var e=t%1e3,n=Math.floor((t-e)/1e3),r=t.toString();return e>=400&&e<600&&(r=n+"400-"+n+"599"),"JW Player "+(t>299999&&t<4e5?"Warning":"Error")+" "+t+". For more information see https://developer.jwplayer.com/jw-player/docs/developer-guide/api/errors-reference#"+r},t}();function T(t,e,n){return n instanceof S&&n.code?n:new S(t,e,n)}function E(t,e){var n=T(P,e,t);return n.code=(t&&t instanceof S&&t.code||0)+e,n}function A(t){var e=t.name,n=t.message;switch(e){case"AbortError":return/pause/.test(n)?303213:/load/.test(n)?303212:303210;case"NotAllowedError":return 303220;case"NotSupportedError":return 303230;default:return 303200}}},function(t,e,n){"use strict";n.d(e,"i",function(){return o}),n.d(e,"e",function(){return u}),n.d(e,"j",function(){return a}),n.d(e,"a",function(){return c}),n.d(e,"b",function(){return s}),n.d(e,"g",function(){return l}),n.d(e,"d",function(){return f}),n.d(e,"f",function(){return d}),n.d(e,"h",function(){return p}),n.d(e,"c",function(){return h});var r=n(0),i=window.parseFloat;function o(t){return t.replace(/^\s+|\s+$/g,"")}function u(t,e,n){for(t=""+t,n=n||"0";t.length<e;)t=n+t;return t}function a(t,e){for(var n=t.attributes,r=0;r<n.length;r++)if(n[r].name&&n[r].name.toLowerCase()===e.toLowerCase())return n[r].value.toString();return""}function c(t){if(!t||"rtmp"===t.substr(0,4))return"";var e=/[(,]format=(m3u8|mpd)-/i.exec(t);if(e)return e[1];var n=t.replace(/^.+?\.(\w+)(?:[;].*)?(?:[?#].*)?$/,"$1");return n!==t?n.toLowerCase():(t=t.split("?")[0].split("#")[0]).lastIndexOf(".")>-1?t.substr(t.lastIndexOf(".")+1,t.length).toLowerCase():""}function s(t){var e=(t/60|0)%60,n=t%60;return u((t/3600|0).toString(),2)+":"+u(e.toString(),2)+":"+u(n.toFixed(3),6)}function l(t,e){if(!t)return 0;if(Object(r.z)(t))return t;var n=t.replace(",","."),o=n.slice(-1),u=n.split(":"),a=u.length,c=0;if("s"===o)c=i(n);else if("m"===o)c=60*i(n);else if("h"===o)c=3600*i(n);else if(a>1){var s=a-1;4===a&&(e&&(c=i(u[s])/e),s-=1),c+=i(u[s]),c+=60*i(u[s-1]),a>=3&&(c+=3600*i(u[s-2]))}else c=i(n);return Object(r.z)(c)?c:0}function f(t,e,n){if(Object(r.x)(t)&&"%"===t.slice(-1)){var o=i(t);return e&&Object(r.z)(e)&&Object(r.z)(o)?e*o/100:null}return l(t,n)}function d(t,e){return t.map(function(t){return e+t})}function p(t,e){return t.map(function(t){return t+e})}function h(t){return!!t&&Object(r.x)(t)&&"%"===t.slice(-1)}},function(t,e,n){"use strict";n.d(e,"jb",function(){return r}),n.d(e,"mb",function(){return i}),n.d(e,"kb",function(){return o}),n.d(e,"ob",function(){return u}),n.d(e,"pb",function(){return a}),n.d(e,"lb",function(){return c}),n.d(e,"nb",function(){return s}),n.d(e,"qb",function(){return l}),n.d(e,"s",function(){return f}),n.d(e,"u",function(){return d}),n.d(e,"t",function(){return p}),n.d(e,"n",function(){return h}),n.d(e,"q",function(){return v}),n.d(e,"tb",function(){return g}),n.d(e,"r",function(){return m}),n.d(e,"Z",function(){return b}),n.d(e,"W",function(){return y}),n.d(e,"v",function(){return j}),n.d(e,"Y",function(){return w}),n.d(e,"w",function(){return O}),n.d(e,"vb",function(){return k}),n.d(e,"a",function(){return C}),n.d(e,"b",function(){return x}),n.d(e,"c",function(){return P}),n.d(e,"d",function(){return S}),n.d(e,"e",function(){return T}),n.d(e,"h",function(){return E}),n.d(e,"F",function(){return A}),n.d(e,"gb",function(){return _}),n.d(e,"Q",function(){return F}),n.d(e,"C",function(){return I}),n.d(e,"B",function(){return M}),n.d(e,"E",function(){return L}),n.d(e,"p",function(){return N}),n.d(e,"cb",function(){return R}),n.d(e,"m",function(){return D}),n.d(e,"G",function(){return B}),n.d(e,"H",function(){return q}),n.d(e,"N",function(){return z}),n.d(e,"O",function(){return V}),n.d(e,"R",function(){return H}),n.d(e,"ib",function(){return Q}),n.d(e,"bb",function(){return W}),n.d(e,"D",function(){return U}),n.d(e,"S",function(){return X}),n.d(e,"P",function(){return Y}),n.d(e,"T",function(){return J}),n.d(e,"V",function(){return K}),n.d(e,"M",function(){return $}),n.d(e,"L",function(){return Z}),n.d(e,"K",function(){return G}),n.d(e,"I",function(){return tt}),n.d(e,"J",function(){return et}),n.d(e,"U",function(){return nt}),n.d(e,"o",function(){return rt}),n.d(e,"y",function(){return it}),n.d(e,"hb",function(){return ot}),n.d(e,"db",function(){return ut}),n.d(e,"eb",function(){return at}),n.d(e,"f",function(){return ct}),n.d(e,"g",function(){return st}),n.d(e,"rb",function(){return lt}),n.d(e,"sb",function(){return ft}),n.d(e,"ab",function(){return dt}),n.d(e,"A",function(){return pt}),n.d(e,"l",function(){return ht}),n.d(e,"k",function(){return vt}),n.d(e,"fb",function(){return gt}),n.d(e,"ub",function(){return mt}),n.d(e,"z",function(){return bt}),n.d(e,"j",function(){return yt}),n.d(e,"X",function(){return jt}),n.d(e,"i",function(){return wt}),n.d(e,"x",function(){return Ot});var r="buffering",i="idle",o="complete",u="paused",a="playing",c="error",s="loading",l="stalled",f="drag",d="dragStart",p="dragEnd",h="click",v="doubleClick",g="tap",m="doubleTap",b="over",y="move",j="enter",w="out",O=c,k="warning",C="adClick",x="adPause",P="adPlay",S="adSkipped",T="adTime",E="autostartNotAllowed",A=o,_="ready",F="seek",I="beforePlay",M="beforeComplete",L="bufferFull",N="displayClick",R="playlistComplete",D="cast",B="mediaError",q="firstFrame",z="playAttempt",V="playAttemptFailed",H="seeked",Q="setupError",W="state",U="bufferChange",X="time",Y="ratechange",J="mediaType",K="volume",$="mute",Z="metadataCueParsed",G="meta",tt="levels",et="levelsChanged",nt="visualQuality",rt="controls",it="fullscreen",ot="resize",ut="playlistItem",at="playlist",ct="audioTracks",st="audioTrackChanged",lt="subtitlesTracks",ft="subtitlesTrackChanged",dt="playbackRateChanged",pt="logoClick",ht="captionsList",vt="captionsChanged",gt="providerFirstFrame",mt="userAction",bt="instreamClick",yt="breakpoint",jt="fullscreenchange",wt="bandwidthEstimate",Ot="float"},function(t,e,n){"use strict";n.r(e);var r=n(6);function i(t,e){var n;return t&&t.length>e&&(n=t[e]),n}var o=n(0);n.d(e,"Browser",function(){return c}),n.d(e,"OS",function(){return s}),n.d(e,"Features",function(){return l});var u=navigator.userAgent,a=function(){};var c={},s={},l={};Object.defineProperties(c,{androidNative:{get:Object(o.C)(r.c),enumerable:!0},chrome:{get:Object(o.C)(r.d),enumerable:!0},edge:{get:Object(o.C)(r.e),enumerable:!0},facebook:{get:Object(o.C)(r.g),enumerable:!0},firefox:{get:Object(o.C)(r.f),enumerable:!0},ie:{get:Object(o.C)(r.i),enumerable:!0},msie:{get:Object(o.C)(r.n),enumerable:!0},safari:{get:Object(o.C)(r.q),enumerable:!0},version:{get:Object(o.C)(function(t,e){var n,r,i,o;return t.chrome?n=-1!==e.indexOf("Chrome")?e.substring(e.indexOf("Chrome")+7):e.substring(e.indexOf("CriOS")+6):t.safari?n=e.substring(e.indexOf("Version")+8):t.firefox?n=e.substring(e.indexOf("Firefox")+8):t.edge?n=e.substring(e.indexOf("Edge")+5):t.ie&&(-1!==e.indexOf("rv:")?n=e.substring(e.indexOf("rv:")+3):-1!==e.indexOf("MSIE")&&(n=e.substring(e.indexOf("MSIE")+5))),n&&(-1!==(o=n.indexOf(";"))&&(n=n.substring(0,o)),-1!==(o=n.indexOf(" "))&&(n=n.substring(0,o)),-1!==(o=n.indexOf(")"))&&(n=n.substring(0,o)),r=parseInt(n,10),i=parseInt(n.split(".")[1],10)),{version:n,major:r,minor:i}}.bind(void 0,c,u)),enumerable:!0}}),Object.defineProperties(s,{android:{get:Object(o.C)(r.b),enumerable:!0},iOS:{get:Object(o.C)(r.j),enumerable:!0},mobile:{get:Object(o.C)(r.o),enumerable:!0},mac:{get:Object(o.C)(r.p),enumerable:!0},iPad:{get:Object(o.C)(r.k),enumerable:!0},iPhone:{get:Object(o.C)(r.l),enumerable:!0},windows:{get:Object(o.C)(function(){return u.indexOf("Windows")>-1}),enumerable:!0},tizen:{get:Object(o.C)(r.r),enumerable:!0},tizenApp:{get:Object(o.C)(r.s),enumerable:!0},version:{get:Object(o.C)(function(t,e){var n,r,o;if(t.windows)switch(n=i(/Windows(?: NT|)? ([._\d]+)/.exec(e),1)){case"6.1":n="7.0";break;case"6.2":n="8.0";break;case"6.3":n="8.1"}else t.android?n=i(/Android ([._\d]+)/.exec(e),1):t.iOS?n=i(/OS ([._\d]+)/.exec(e),1):t.mac?n=i(/Mac OS X (10[._\d]+)/.exec(e),1):t.tizen&&(n=i(/Tizen ([._\d]+)/.exec(e),1));if(n){r=parseInt(n,10);var u=n.split(/[._]/);u&&(o=parseInt(u[1],10))}return{version:n,major:r,minor:o}}.bind(void 0,s,u)),enumerable:!0}}),Object.defineProperties(l,{flash:{get:Object(o.C)(r.h),enumerable:!1},flashVersion:{get:Object(o.C)(r.a),enumerable:!1},iframe:{get:Object(o.C)(r.m),enumerable:!0},passiveEvents:{get:Object(o.C)(function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0}});window.addEventListener("testPassive",a,e),window.removeEventListener("testPassive",a,e)}catch(t){}return t}),enumerable:!0},backgroundLoading:{get:Object(o.C)(function(){return!(s.iOS||c.safari||s.tizen)}),enumerable:!0}})},function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"d",function(){return o}),n.d(e,"a",function(){return u}),n.d(e,"c",function(){return a});var r=n(2);function i(t){var e="";return t&&(t.localName?e=t.localName:t.baseName&&(e=t.baseName)),e}function o(t){var e="";return t&&(t.textContent?e=Object(r.i)(t.textContent):t.text&&(e=Object(r.i)(t.text))),e}function u(t,e){return t.childNodes[e]}function a(t){return t.childNodes?t.childNodes.length:0}},function(t,e,n){"use strict";n.d(e,"h",function(){return u}),n.d(e,"f",function(){return c}),n.d(e,"l",function(){return l}),n.d(e,"k",function(){return f}),n.d(e,"p",function(){return d}),n.d(e,"g",function(){return p}),n.d(e,"e",function(){return h}),n.d(e,"n",function(){return v}),n.d(e,"r",function(){return g}),n.d(e,"s",function(){return m}),n.d(e,"d",function(){return b}),n.d(e,"i",function(){return y}),n.d(e,"q",function(){return j}),n.d(e,"j",function(){return w}),n.d(e,"c",function(){return O}),n.d(e,"b",function(){return k}),n.d(e,"o",function(){return C}),n.d(e,"m",function(){return x}),n.d(e,"a",function(){return P});var r=navigator.userAgent;function i(t){return null!==r.match(t)}function o(t){return function(){return i(t)}}function u(){return!1}var a=function(){return"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1},c=o(/gecko\//i),s=o(/trident\/.+rv:\s*11/i),l=o(/iP(hone|od)/i),f=function(){return i(/iPad/i)||a()},d=function(){return i(/Macintosh/i)&&!a()},p=o(/FBAV/i);function h(){return i(/\sEdge\/\d+/i)}function v(){return i(/msie/i)}function g(){return i(/SMART-TV/)}function m(){return g()&&!i(/SamsungBrowser/)}function b(){return i(/\s(?:(?:Headless)?Chrome|CriOS)\//i)&&!h()&&!i(/UCBrowser/i)&&!g()}function y(){return h()||s()||v()}function j(){return i(/safari/i)&&!i(/(?:Chrome|CriOS|chromium|android|phantom)/i)||g()}function w(){return i(/iP(hone|ad|od)/i)||a()}function O(){return!(i(/chrome\/[123456789]/i)&&!i(/chrome\/18/i)&&!c())&&k()}function k(){return i(/Android/i)&&!i(/Windows Phone/i)}function C(){return w()||k()||i(/Windows Phone/i)}function x(){try{return window.self!==window.top}catch(t){return!0}}function P(){return 0}},function(t,e,n){"use strict";n.d(e,"i",function(){return s}),n.d(e,"e",function(){return l}),n.d(e,"q",function(){return f}),n.d(e,"j",function(){return d}),n.d(e,"s",function(){return p}),n.d(e,"r",function(){return h}),n.d(e,"u",function(){return v}),n.d(e,"d",function(){return b}),n.d(e,"a",function(){return y}),n.d(e,"o",function(){return j}),n.d(e,"p",function(){return w}),n.d(e,"v",function(){return O}),n.d(e,"t",function(){return k}),n.d(e,"h",function(){return C}),n.d(e,"b",function(){return x}),n.d(e,"g",function(){return P}),n.d(e,"c",function(){return S}),n.d(e,"m",function(){return T}),n.d(e,"k",function(){return E}),n.d(e,"n",function(){return A}),n.d(e,"l",function(){return _}),n.d(e,"f",function(){return F});var r,i=n(0),o=n(2),u=n(4),a=window.DOMParser,c=!0;function s(t,e){return t.classList.contains(e)}function l(t){return d(t).firstChild}function f(t,e){C(t),function(t,e){if(!e)return;for(var n=document.createDocumentFragment(),r=d(e).childNodes,i=0;i<r.length;i++)n.appendChild(r[i].cloneNode(!0));t.appendChild(n)}(t,e)}function d(t){var e=function(t){r||(r=new a,c=function(){try{if(r.parseFromString("","text/html"))return!0}catch(t){}return!1}());if(c)return r.parseFromString(t,"text/html").body;var e=document.implementation.createHTMLDocument("");t.toLowerCase().indexOf("<!doctype")>-1?e.documentElement.innerHTML=t:e.body.innerHTML=t;return e.body}(t);p(e);for(var n=e.querySelectorAll("*"),i=n.length;i--;){h(n[i])}return e}function p(t){for(var e=t.querySelectorAll("script,object,iframe,meta"),n=e.length;n--;){var r=e[n];r.parentNode.removeChild(r)}return t}function h(t){for(var e=t.attributes,n=e.length;n--;){var r=e[n].name;if(/^on/.test(r)&&t.removeAttribute(r),/href/.test(r)){var i=e[n].value;/javascript:|javascript&colon;/.test(i)&&t.removeAttribute(r)}}return t}function v(t){return t+(t.toString().indexOf("%")>0?"":"px")}function g(t){return Object(i.x)(t.className)?t.className.split(" "):[]}function m(t,e){e=Object(o.i)(e),t.className!==e&&(t.className=e)}function b(t){return t.classList?t.classList:g(t)}function y(t,e){var n=g(t);(Array.isArray(e)?e:e.split(" ")).forEach(function(t){Object(i.e)(n,t)||n.push(t)}),m(t,n.join(" "))}function j(t,e){var n=g(t),r=Array.isArray(e)?e:e.split(" ");m(t,Object(i.h)(n,r).join(" "))}function w(t,e,n){var r=t.className||"";e.test(r)?r=r.replace(e,n):n&&(r+=" "+n),m(t,r)}function O(t,e,n){var r=s(t,e);(n=Object(i.r)(n)?n:!r)!==r&&(n?y(t,e):j(t,e))}function k(t,e,n){t.setAttribute(e,n)}function C(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function x(t){var e=document.createElement("link");e.rel="stylesheet",e.href=t,document.getElementsByTagName("head")[0].appendChild(e)}function P(t){t&&C(t)}function S(t){var e={left:0,right:0,width:0,height:0,top:0,bottom:0};if(!t||!document.body.contains(t))return e;var n=t.getBoundingClientRect(),r=window.pageYOffset,i=window.pageXOffset;return n.width||n.height||n.left||n.top?(e.left=n.left+i,e.right=n.right+i,e.top=n.top+r,e.bottom=n.bottom+r,e.width=n.right-n.left,e.height=n.bottom-n.top,e):e}function T(t,e){t.insertBefore(e,t.firstChild)}function E(t){return t.nextElementSibling}function A(t){return t.previousElementSibling}function _(t,e,n){void 0===n&&(n={});var r=document.createElement("a");r.href=t,r.target=e,r=Object(i.j)(r,n),u.Browser.firefox?r.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})):r.click()}function F(){var t=window.screen.orientation;return!!t&&("landscape-primary"===t.type||"landscape-secondary"===t.type)||90===window.orientation||-90===window.orientation}},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o}),n.d(e,"c",function(){return u}),n.d(e,"d",function(){return a});var r=n(1),i={};function o(t,e){return function(){throw new r.q(r.k,t,e)}}function u(t,e){return function(){throw new r.q(null,t,e)}}function a(){return n.e(4).then(function(t){return n(71).default}.bind(null,n)).catch(o(r.s+101))}},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"c",function(){return i}),n.d(e,"d",function(){return o}),n.d(e,"b",function(){return u}),n.d(e,"e",function(){return a}),n.d(e,"f",function(){return c});var r=function(){function t(){}var e=t.prototype;return e.on=function(t,e,n){if(!l(this,"on",t,[e,n])||!e)return this;var r=this._events||(this._events={});return(r[t]||(r[t]=[])).push({callback:e,context:n}),this},e.once=function(t,e,n){if(!l(this,"once",t,[e,n])||!e)return this;var r=0,i=this,o=function n(){r++||(i.off(t,n),e.apply(this,arguments))};return o._callback=e,this.on(t,o,n)},e.off=function(t,e,n){if(!this._events||!l(this,"off",t,[e,n]))return this;if(!t&&!e&&!n)return delete this._events,this;for(var r=t?[t]:Object.keys(this._events),i=0,o=r.length;i<o;i++){t=r[i];var u=this._events[t];if(u){var a=this._events[t]=[];if(e||n)for(var c=0,s=u.length;c<s;c++){var f=u[c];(e&&e!==f.callback&&e!==f.callback._callback||n&&n!==f.context)&&a.push(f)}a.length||delete this._events[t]}}return this},e.trigger=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!this._events)return this;if(!l(this,"trigger",t,n))return this;var i=this._events[t],o=this._events.all;return i&&f(i,n,this),o&&f(o,arguments,this),this},e.triggerSafe=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!this._events)return this;if(!l(this,"trigger",t,n))return this;var i=this._events[t],o=this._events.all;return i&&f(i,n,this,t),o&&f(o,arguments,this,t),this},t}(),i=r.prototype.on,o=r.prototype.once,u=r.prototype.off,a=r.prototype.trigger,c=r.prototype.triggerSafe;r.on=i,r.once=o,r.off=u,r.trigger=a;var s=/\s+/;function l(t,e,n,r){if(!n)return!0;if("object"==typeof n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t[e].apply(t,[i,n[i]].concat(r));return!1}if(s.test(n)){for(var o=n.split(s),u=0,a=o.length;u<a;u++)t[e].apply(t,[o[u]].concat(r));return!1}return!0}function f(t,e,n,r){for(var i=-1,o=t.length;++i<o;){var u=t[i];if(r)try{u.callback.apply(u.context||n,e)}catch(t){console.log('Error in "'+r+'" event handler:',t)}else u.callback.apply(u.context||n,e)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"exists",function(){return i}),n.d(e,"isHTTPS",function(){return o}),n.d(e,"isFileProtocol",function(){return u}),n.d(e,"isRtmp",function(){return a}),n.d(e,"isYouTube",function(){return c}),n.d(e,"typeOf",function(){return s}),n.d(e,"isDeepKeyCompliant",function(){return l});var r=window.location.protocol;function i(t){switch(typeof t){case"string":return t.length>0;case"object":return null!==t;case"undefined":return!1;default:return!0}}function o(){return"https:"===r}function u(){return"file:"===r}function a(t,e){return 0===t.indexOf("rtmp:")||"rtmp"===e}function c(t,e){return"youtube"===e||/^(http|\/\/).*(youtube\.com|youtu\.be)\/.+/.test(t)}function s(t){if(null===t)return"null";var e=typeof t;return"object"===e&&Array.isArray(t)?"array":e}function l(t,e,n){var r=Object.keys(t);return Object.keys(e).length>=r.length&&r.every(function(r){var i=t[r],o=e[r];return i&&"object"==typeof i?!(!o||"object"!=typeof o)&&l(i,o,n):n(r,t)})}},function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return c}),n.d(e,"d",function(){return s}),n.d(e,"e",function(){return d}),n.d(e,"c",function(){return p});var r,i=n(2),o=n(41),u=n.n(o),a=u.a.clear;function c(t,e,n,r){n=n||"all-players";var i="";if("object"==typeof e){var o=document.createElement("div");s(o,e);var a=o.style.cssText;Object.prototype.hasOwnProperty.call(e,"content")&&a&&(a=a+' content: "'+e.content+'";'),r&&a&&(a=a.replace(/;/g," !important;")),i="{"+a+"}"}else"string"==typeof e&&(i=e);""!==i&&"{}"!==i?u.a.style([[t,t+i]],n):u.a.clear(n,t)}function s(t,e){if(null!=t){var n;void 0===t.length&&(t=[t]);var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=f(n,e[n]));for(var i=0;i<t.length;i++){var o=t[i],u=void 0;if(null!=o)for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(u=l(n),o.style[u]!==r[n]&&(o.style[u]=r[n]))}}}function l(t){t=t.split("-");for(var e=1;e<t.length;e++)t[e]=t[e].charAt(0).toUpperCase()+t[e].slice(1);return t.join("")}function f(t,e){return""===e||null==e?"":"string"==typeof e&&isNaN(e)?/png|gif|jpe?g/i.test(e)&&e.indexOf("url")<0?"url("+e+")":e:0===e||"z-index"===t||"opacity"===t?""+e:/color/i.test(t)?"#"+Object(i.e)(e.toString(16).replace(/^0x/i,""),6):Math.ceil(e)+"px"}function d(t,e){s(t,{transform:e,webkitTransform:e,msTransform:e,mozTransform:e,oTransform:e})}function p(t,e){var n="rgb",i=void 0!==e&&100!==e;if(i&&(n+="a"),!r){var o=document.createElement("canvas");o.height=1,o.width=1,r=o.getContext("2d")}t?isNaN(parseInt(t,16))||(t="#"+t):t="#000000",r.clearRect(0,0,1,1),r.fillStyle=t,r.fillRect(0,0,1,1);var u=r.getImageData(0,0,1,1).data;return n+="("+u[0]+", "+u[1]+", "+u[2],i&&(n+=", "+e/100),n+")"}},function(t,e,n){"use strict";n.r(e),n.d(e,"getAbsolutePath",function(){return o}),n.d(e,"isAbsolutePath",function(){return u}),n.d(e,"parseXML",function(){return a}),n.d(e,"serialize",function(){return c}),n.d(e,"parseDimension",function(){return s}),n.d(e,"timeFormat",function(){return l});var r=n(10),i=n(0);function o(t,e){if(e&&Object(r.exists)(e)||(e=document.location.href),!Object(r.exists)(t))return"";if(u(t))return t;var n,i=e.substring(0,e.indexOf("://")+3),o=e.substring(i.length,e.indexOf("/",i.length+1));if(0===t.indexOf("/"))n=t.split("/");else{var a=e.split("?")[0];n=(a=a.substring(i.length+o.length+1,a.lastIndexOf("/"))).split("/").concat(t.split("/"))}for(var c=[],s=0;s<n.length;s++)n[s]&&Object(r.exists)(n[s])&&"."!==n[s]&&(".."===n[s]?c.pop():c.push(n[s]));return i+o+"/"+c.join("/")}function u(t){return/^(?:(?:https?|file):)?\/\//.test(t)}function a(t){var e=null;try{(e=(new window.DOMParser).parseFromString(t,"text/xml")).querySelector("parsererror")&&(e=null)}catch(t){}return e}function c(t){if(void 0===t)return null;if("string"==typeof t&&t.length<6){var e=t.toLowerCase();if("true"===e)return!0;if("false"===e)return!1;if(!Object(i.u)(Number(t))&&!Object(i.u)(parseFloat(t)))return Number(t)}return t}function s(t){return Object(i.z)(t)?t:""===t?0:t.lastIndexOf("%")>-1?t:parseInt(t.replace("px",""),10)}function l(t,e){if(Object(i.u)(t)&&(t=parseInt(t.toString())),Object(i.u)(t)||!isFinite(t)||t<=0&&!e)return"00:00";var n=t<0?"-":"";t=Math.abs(t);var r=Math.floor(t/3600),o=Math.floor((t-3600*r)/60),u=Math.floor(t%60);return n+(r?r+":":"")+(o<10?"0":"")+o+":"+(u<10?"0":"")+u}},function(t,e,n){"use strict";n.d(e,"j",function(){return p}),n.d(e,"d",function(){return h}),n.d(e,"b",function(){return v}),n.d(e,"e",function(){return m}),n.d(e,"g",function(){return y}),n.d(e,"h",function(){return j}),n.d(e,"c",function(){return w}),n.d(e,"f",function(){return k}),n.d(e,"i",function(){return C}),n.d(e,"a",function(){return x});var r=n(0),i=n(6),o=n(27),u=n(10),a=n(40),c={},s={zh:"Chinese",nl:"Dutch",en:"English",fr:"French",de:"German",it:"Italian",ja:"Japanese",pt:"Portuguese",ru:"Russian",es:"Spanish",el:"Greek",fi:"Finnish",id:"Indonesian",ko:"Korean",th:"Thai",vi:"Vietnamese"},l=Object(r.q)(s);function f(t){var e=d(t),n=e.indexOf("_");return-1===n?e:e.substring(0,n)}function d(t){return t.toLowerCase().replace("-","_")}function p(t){return t?Object.keys(t).reduce(function(e,n){return e[d(n)]=t[n],e},{}):{}}function h(t){if(t)return 3===t.length?t:s[f(t)]||t}function v(t){return l[t]||""}function g(t){var e=t.querySelector("html");return e?e.getAttribute("lang"):null}function m(){var t=g(document);if(!t&&Object(i.m)())try{t=g(window.top.document)}catch(t){}return t||navigator.language||"en"}var b=["ar","da","de","el","es","fi","fr","he","id","it","ja","ko","nb","nl","nn","no","oc","pt","ro","ru","sl","sv","th","tr","vi","zh"];function y(t){return 8207===t.charCodeAt(0)||/^[\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC]/.test(t)}function j(t){return b.indexOf(f(t))>=0}function w(t,e,n){return Object(r.j)({},function(t){var e=t.advertising,n=t.related,i=t.sharing,o=t.abouttext,u=Object(r.j)({},t.localization);e&&(u.advertising=u.advertising||{},O(u.advertising,e,"admessage"),O(u.advertising,e,"cuetext"),O(u.advertising,e,"loadingAd"),O(u.advertising,e,"podmessage"),O(u.advertising,e,"skipmessage"),O(u.advertising,e,"skiptext"));"string"==typeof u.related?u.related={heading:u.related}:u.related=u.related||{};n&&O(u.related,n,"autoplaymessage");i&&(u.sharing=u.sharing||{},O(u.sharing,i,"heading"),O(u.sharing,i,"copied"));o&&O(u,t,"abouttext");var a=u.close||u.nextUpClose;a&&(u.close=a);return u}(t),e[f(n)],e[d(n)])}function O(t,e,n){var r=t[n]||e[n];r&&(t[n]=r)}function k(t){return Object(u.isDeepKeyCompliant)(a.a,t,function(t,e){return"string"==typeof e[t]})}function C(t,e){var n,r=c[e];if(!r){var i=t+"translations/"+(n=f(e),(/^n[bn]$/.test(n)?"no":n)+".json");c[e]=r=new Promise(function(t,n){Object(o.b)({url:i,oncomplete:t,onerror:function(t,r,i,o){c[e]=null,n(o)},responseType:"json"})})}return r}function x(t,e){var n=Object(r.j)({},t,e);return P(n,"errors",t,e),P(n,"related",t,e),P(n,"sharing",t,e),P(n,"advertising",t,e),P(n,"shortcuts",t,e),P(n,"captionsStyles",t,e),n}function P(t,e,n,i){t[e]=Object(r.j)({},n[e],i[e])}},function(t,e,n){"use strict";e.a=[]},function(t,e,n){"use strict";e.a={debug:!1}},function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n(31),i=n(4),o=n(20),u=n(0),a=n(37),c=n(22),s=Object(u.l)(r.a,Object(u.B)({name:"html5"})),l=s.supports;function f(t){var e=window.MediaSource;return Object(u.a)(t,function(t){return!!e&&!!e.isTypeSupported&&e.isTypeSupported(t)})}function d(t){if(t.drm)return!1;var e=t.file.indexOf(".m3u8")>-1,n="hls"===t.type||"m3u8"===t.type;if(!e&&!n)return!1;var r=i.Browser.chrome||i.Browser.firefox||i.Browser.edge||i.Browser.ie&&11===i.Browser.version.major||i.OS.tizen,o=i.Browser.safari&&(!c.a.canPlayType||!c.a.canPlayType("application/vnd.apple.mpegURL")),u=i.OS.android&&!1===t.hlsjsdefault,a=i.Browser.safari&&!!t.safarihlsjs;return f(t.mediaTypes||['video/mp4;codecs="avc1.4d400d,mp4a.40.2"'])&&(r||a||o)&&!u}s.supports=function(t,e){var n=l.apply(this,arguments);if(n&&t.drm&&"hls"===t.type){var r=Object(o.a)(e),i=r("drm");if(i&&t.drm.fairplay){var u=window.WebKitMediaKeys;return u&&u.isTypeSupported&&u.isTypeSupported("com.apple.fps.1_0","video/mp4")}return i}return n},r.a.push({name:"shaka",supports:function(t){return!(t.drm&&!Object(a.a)(t.drm))&&(!(!window.HTMLVideoElement||!window.MediaSource)&&(f(t.mediaTypes)&&("dash"===t.type||"mpd"===t.type||(t.file||"").indexOf("mpd-time-csf")>-1)))}}),r.a.unshift({name:"hlsjs",supports:function(t){return d(t)}}),r.a.unshift({name:"hlsjsAlt",supports:function(t){return t._hlsjsProgressive&&d(t)}});var p=r.a},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(32),i=n(16),o=n(57),u=n(0);n(9);function a(t){var e=t.getName().name;if(!r.a[e]){if(!Object(u.l)(i.a,Object(u.B)({name:e}))){if(!Object(u.t)(t.supports))throw new Error("Tried to register a provider with an invalid object");i.a.unshift({name:e,supports:t.supports})}0,Object(u.g)(t.prototype,o.a),r.a[e]=t}}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Date.now||function(){return(new Date).getTime()}},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"c",function(){return o}),n.d(e,"b",function(){return u});var r=n(38),i=r.a,o=r.c;function u(t){var e=Object(r.b)(t);if(!t)return e;switch(Object(r.c)(t)){case"jwpsrv":e=305001;break;case"googima":e=305002;break;case"vast":e=305003;break;case"freewheel":e=305004;break;case"dai":e=305005;break;case"gapro":e=305006;break;case"bidding":e=305007}return e}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});function r(t){var e={setup:["free","starter","business","premium","enterprise","developer","ads","unlimited","trial","platinum"],drm:["enterprise","developer","ads","unlimited","trial"],ads:["ads","unlimited","trial","platinum","enterprise","developer","business"],jwpsrv:["free","starter","business","premium","enterprise","developer","ads","trial","platinum","invalid"],discovery:["ads","enterprise","developer","trial","unlimited"]};return function(n){return e[n]&&e[n].indexOf(t)>-1}}},function(t,e,n){"use strict";n.r(e),n.d(e,"getScriptPath",function(){return o}),n.d(e,"repo",function(){return u}),n.d(e,"versionCheck",function(){return a}),n.d(e,"loadFrom",function(){return c});var r=n(29),i=n(10),o=function(t){for(var e=document.getElementsByTagName("script"),n=0;n<e.length;n++){var r=e[n].src;if(r){var i=r.lastIndexOf("/"+t);if(i>=0)return r.substr(0,i+1)}}return""},u=function(){var t="//ssl.p.jwpcdn.com/player/v/8.19.1/";return""+(Object(i.isFileProtocol)()?"https:":"")+t},a=function(t){var e=("0"+t).split(/\W/),n=r.a.split(/\W/),i=parseFloat(e[0]),o=parseFloat(n[0]);return!(i>o)&&!(i===o&&parseFloat("0"+e[1])>parseFloat(n[1]))},c=function(){return u()}},function(t,e,n){"use strict";var r=document.createElement("video");e.a=r},function(t,e,n){"use strict";var r=n(0),i={none:!0,metadata:!0,auto:!0};function o(t,e){return i[t]?t:i[e]?e:"metadata"}var u=n(28),a=n(33),c=n(42),s=n(1);n.d(e,"b",function(){return l}),n.d(e,"e",function(){return f}),n.d(e,"d",function(){return d}),n.d(e,"f",function(){return p}),n.d(e,"c",function(){return h});function l(t,e,n){var i=Object(r.j)({},n);return delete i.playlist,t.map(function(t){return d(e,t,i)}).filter(function(t){return!!t})}function f(t){if(!Array.isArray(t)||0===t.length)throw new s.q(s.m,630)}function d(t,e,n){var i=t.getProviders(),u=t.get("preload"),a=Object(r.j)({},e);if(a.preload=o(e.preload,u),a.allSources=v(a,t),a.sources=g(a.allSources,i),a.sources.length)return a.file=a.sources[0].file,a.feedData=n,function(t){var e=t.sources[0].liveSyncDuration;e&&(t.liveSyncDuration=t.dvrSeekLimit=e);return t}(a)}function p(t,e){var n=(parseInt(t,10)||0)%e;return n<0&&(n+=e),n}var h=function(t,e){return g(v(t,e),e.getProviders())};function v(t,e){var n=e.attributes,r=t.sources,i=t.allSources,u=t.preload,c=t.drm,s=m(t.withCredentials,n.withCredentials);return(i||r).map(function(e){if(e!==Object(e))return null;b(e,n,"androidhls"),b(e,n,"hlsjsdefault"),b(e,n,"safarihlsjs"),function(t,e,n){if(t.liveSyncDuration)return;var r=e.liveSyncDuration?e:n;b(t,r,"liveSyncDuration")}(e,t,n),b(e,n,"_hlsjsProgressive"),e.preload=o(e.preload,u);var r=e.drm||c||n.drm;r&&(e.drm=r);var i=m(e.withCredentials,s);return void 0!==i&&(e.withCredentials=i),Object(a.a)(e)}).filter(function(t){return!!t})}function g(t,e){e&&e.choose||(e=new c.a);var n=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e.choose(r).providerToCheck;if(i)return{type:r.type,provider:i}}return null}(t,e);if(!n)return[];var r=n.provider,i=n.type;return t.filter(function(t){return t.type===i&&e.providerSupports(r,t)})}function m(t,e){return void 0===t?e:t}function b(t,e,n){n in e&&(t[n]=e[n])}e.a=function(t){return(Array.isArray(t)?t:[t]).map(u.a)}},function(t,e,n){"use strict";var r=n(0),i=n(9),o=n(3),u={};function a(t){var e=document.createElement("link");return e.type="text/css",e.rel="stylesheet",e.href=t,e}function c(t,e){var n=document.createElement("script");return n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=e||45e3,n.src=t,n}var s=function(t,e,n){var r=this,i=0;function s(t){i=2,r.trigger(o.w,t).off()}function l(t){i=3,r.trigger(o.kb,t).off()}this.getStatus=function(){return i},this.load=function(){var r=u[t];return 0!==i||(r&&r.then(l).catch(s),i=1,r=new Promise(function(r,i){var o=(e?a:c)(t,n),u=function(){o.onerror=o.onload=null,clearTimeout(d)},f=function(t){u(),s(t),i(t)},d=setTimeout(function(){f(new Error("Network timeout "+t))},45e3);o.onerror=function(){f(new Error("Failed to load "+t))},o.onload=function(t){u(),l(t),r(t)};var p=document.getElementsByTagName("head")[0]||document.documentElement;p.insertBefore(o,p.firstChild)}),u[t]=r),r}};Object(r.j)(s.prototype,i.a),e.a=s},function(t,e,n){"use strict";var r=n(1),i=n(19),o=function(){this.load=function(t,e,n,o){return n&&"object"==typeof n?Promise.all(Object.keys(n).filter(function(t){return t}).map(function(u){var a=n[u];return e.setupPlugin(u).then(function(e){if(!o.attributes._destroyed)return Object(i.a)(e,a,t)}).catch(function(t){return e.removePlugin(u),t.code?t:new r.q(null,Object(i.b)(u),t)})})):Promise.resolve()}},u=n(58),a=n(47),c={},s=function(){function t(){}var e=t.prototype;return e.setupPlugin=function(t){var e=this.getPlugin(t);return e?(e.url!==t&&Object(a.a)('JW Plugin "'+Object(i.c)(t)+'" already loaded from "'+e.url+'". Ignoring "'+t+'."'),e.promise):this.addPlugin(t).load()},e.addPlugin=function(t){var e=Object(i.c)(t),n=c[e];return n||(n=new u.a(t),c[e]=n),n},e.getPlugin=function(t){return c[Object(i.c)(t)]},e.removePlugin=function(t){delete c[Object(i.c)(t)]},e.getPlugins=function(){return c},t}();n.d(e,"b",function(){return f}),n.d(e,"a",function(){return d});var l=new s,f=function(t,e,n){var r=l.addPlugin(t);r.js||r.registerPlugin(t,e,n)};function d(t,e){var n=t.get("plugins");return window.jwplayerPluginJsonp=f,(t.pluginLoader=t.pluginLoader||new o).load(e,l,n,t).then(function(e){if(!t.attributes._destroyed)return delete window.jwplayerPluginJsonp,e})}},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(48),i=n(20),o=n(45),u=n(1),a=100013;e.b=function(t){var e,n,c;try{var s=Object(r.a)(t||"",Object(o.a)("NDh2aU1Cb0NHRG5hcDFRZQ==")).split("/");if("pro"===(e=s[0])&&(e="premium"),Object(i.a)(e)("setup")||(e="invalid"),s.length>2){n=s[1];var l=parseInt(s[2]);l>0&&(c=new Date).setTime(l)}}catch(t){e="invalid"}this.edition=function(){return e},this.token=function(){return n},this.expiration=function(){return c},this.duration=function(){return c?c.getTime()-(new Date).getTime():0},this.error=function(){var r;return void 0===t?r=100011:"invalid"!==e&&n?this.duration()<0&&(r=a):r=100012,r?new u.q(u.k,r):null}}},function(t,e,n){"use strict";n.d(e,"b",function(){return c}),n.d(e,"a",function(){return s});var r=n(0),i=n(12),o=n(10),u=n(1),a=function(){};function c(t,e,n,d){var p;t===Object(t)&&(t=(d=t).url);var h=Object(r.j)({xhr:null,url:t,withCredentials:!1,retryWithoutCredentials:!1,timeout:6e4,timeoutId:-1,oncomplete:e||a,onerror:n||a,mimeType:d&&!d.responseType?"text/xml":"",requireValidXML:!1,responseType:d&&d.plainText?"text":"",useDomParser:!1,requestFilter:null},d),v=function(t,e){return function(t,n){var i=t.currentTarget||e.xhr;if(clearTimeout(e.timeoutId),e.retryWithoutCredentials&&e.xhr.withCredentials)return s(i),void c(Object(r.j)({},e,{xhr:null,withCredentials:!1,retryWithoutCredentials:!1}));!n&&i.status>=400&&i.status<600&&(n=i.status),l(e,n?u.m:u.p,n||6,t)}}(0,h);if("XMLHttpRequest"in window){if(p=h.xhr=h.xhr||new window.XMLHttpRequest,"function"==typeof h.requestFilter){var g;try{g=h.requestFilter({url:t,xhr:p})}catch(t){return v(t,5),p}g&&"open"in g&&"send"in g&&(p=h.xhr=g)}p.onreadystatechange=function(t){return function(e){var n=e.currentTarget||t.xhr;if(4===n.readyState){clearTimeout(t.timeoutId);var a=n.status;if(a>=400)return void l(t,u.m,a<600?a:6);if(200===a)return function(t){return function(e){var n=e.currentTarget||t.xhr;if(clearTimeout(t.timeoutId),t.responseType){if("json"===t.responseType)return function(t,e){if(!t.response||"string"==typeof t.response&&'"'!==t.responseText.substr(1))try{t=Object(r.j)({},t,{response:JSON.parse(t.responseText)})}catch(t){return void l(e,u.m,611,t)}return e.oncomplete(t)}(n,t)}else{var o,a=n.responseXML;if(a)try{o=a.firstChild}catch(t){}if(a&&o)return f(n,a,t);if(t.useDomParser&&n.responseText&&!a&&(a=Object(i.parseXML)(n.responseText))&&a.firstChild)return f(n,a,t);if(t.requireValidXML)return void l(t,u.m,602)}t.oncomplete(n)}}(t)(e);0===a&&Object(o.isFileProtocol)()&&!/^[a-z][a-z0-9+.-]*:/.test(t.url)&&l(t,u.m,7)}}}(h),p.onerror=v,"overrideMimeType"in p?h.mimeType&&p.overrideMimeType(h.mimeType):h.useDomParser=!0;try{t=t.replace(/#.*$/,""),p.open("GET",t,!0)}catch(t){return v(t,3),p}if(h.responseType)try{p.responseType=h.responseType}catch(t){}h.timeout&&(h.timeoutId=setTimeout(function(){s(p),l(h,u.p,1)},h.timeout),p.onabort=function(){clearTimeout(h.timeoutId)});try{h.withCredentials&&"withCredentials"in p&&(p.withCredentials=!0),p.send()}catch(t){v(t,4)}return p}l(h,u.p,2)}function s(t){t.onload=null,t.onprogress=null,t.onreadystatechange=null,t.onerror=null,"abort"in t&&t.abort()}function l(t,e,n,r){t.onerror(e,t.url,t.xhr,new u.q(e,n,r))}function f(t,e,n){var i=e.documentElement;if(!n.requireValidXML||"parsererror"!==i.nodeName&&!i.getElementsByTagName("parsererror").length)return t.responseXML||(t=Object(r.j)({},t,{responseXML:e})),n.oncomplete(t);l(n,u.m,601)}},function(t,e,n){"use strict";var r=n(0),i=n(33),o=["captions","metadata","thumbnails","chapters"];var u=function(t){if(t&&t.file){var e,n=Object(r.j)({},{kind:"captions",default:!1},t);return n.kind=(e=n.kind,-1!==o.indexOf(e)?n.kind:"captions"),n.default=!!n.default,n}},a=n(35),c=Array.isArray;e.a=function(t){c((t=t||{}).tracks)||delete t.tracks;var e=Object(r.j)({},{sources:[],tracks:[],minDvrWindow:a.b},t);e.sources!==Object(e.sources)||c(e.sources)||(e.sources=[Object(i.a)(e.sources)]),c(e.sources)&&0!==e.sources.length||(t.levels?e.sources=t.levels:e.sources=[Object(i.a)(t)]);for(var n=0;n<e.sources.length;n++){var o=e.sources[n];if(o){var s=o.default;o.default=!!s&&"true"===s.toString(),e.sources[n].label||(e.sources[n].label=n.toString()),e.sources[n]=Object(i.a)(e.sources[n])}}return e.sources=e.sources.filter(function(t){return!!t}),c(e.tracks)||(e.tracks=[]),c(e.captions)&&(e.tracks=e.tracks.concat(e.captions),delete e.captions),e.tracks=e.tracks.map(u).filter(function(t){return!!t}),e}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r="8.19.1+commercial_v8-19-1.449.commercial.c324dd7.hlsjs..hlsjsalt..jwplayer.6ea3462.dai.ee04c20.freewheel.af0c077.googima.1101068.googimanvmp.106f6b4.headerbidding.4d99d32.vast.1572b33.analytics.db25968.gapro.141397a"},function(t,e,n){"use strict";var r=n(0),i=n(18),o=window.performance||{timing:{}},u=o.timing.navigationStart||Object(i.a)();function a(){return u+o.now()}"now"in o||(o.now=function(){return Object(i.a)()-u});var c=function(){function t(){this.startTimes={},this.sum={},this.counts={},this.ticks={}}var e=t.prototype;return e.start=function(t){this.startTimes[t]=a(),this.counts[t]=this.counts[t]+1||1},e.end=function(t){if(this.startTimes[t]){var e=a()-this.startTimes[t];delete this.startTimes[t],this.sum[t]=this.sum[t]+e||e}},e.dump=function(){var t=Object(r.j)({},this.sum);for(var e in this.startTimes)if(Object.prototype.hasOwnProperty.call(this.startTimes,e)){var n=a()-this.startTimes[e];t[e]=t[e]+n||n}return{counts:Object(r.j)({},this.counts),sums:t,events:Object(r.j)({},this.ticks)}},e.tick=function(t){this.ticks[t]=a()},e.clear=function(t){delete this.ticks[t]},e.between=function(t,e){return this.ticks[e]&&this.ticks[t]?this.ticks[e]-this.ticks[t]:null},t}();e.a=c},function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return c});var r=n(65),i=n(10),o=n(22),u={aac:"audio/mp4",mp4:"video/mp4",f4v:"video/mp4",m4v:"video/mp4",mov:"video/mp4",mp3:"audio/mpeg",mpeg:"audio/mpeg",ogv:"video/ogg",ogg:"video/ogg",oga:"video/ogg",vorbis:"video/ogg",webm:"video/webm",f4a:"video/aac",m3u8:"application/vnd.apple.mpegurl",m3u:"application/vnd.apple.mpegurl",hls:"application/vnd.apple.mpegurl"},a=[{name:"html5",supports:c}];function c(t){if(!o.a||!o.a.canPlayType)return!1;if(!1===Object(r.a)(t))return!1;var e=t.file,n=t.type;if(Object(i.isRtmp)(e,n))return!1;var a=t.mimeType||u[n];if(!a)return!1;var c=t.mediaTypes;return c&&c.length&&(a=[a].concat(c.slice()).join("; ")),!!o.a.canPlayType(a)}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r={}},function(t,e,n){"use strict";var r=n(0),i=n(10),o=n(2);e.a=function(t){if(t&&t.file){var e=Object(r.j)({},{default:!1,type:""},t);e.file=Object(o.i)(""+e.file);var n=/^[^/]+\/(?:x-)?([^/]+)$/,u=e.type;if(n.test(u)&&(e.mimeType=u,e.type=u.replace(n,"$1")),Object(i.isYouTube)(e.file)?e.type="youtube":Object(i.isRtmp)(e.file)?e.type="rtmp":e.type||(e.type=Object(o.a)(e.file)),e.type){switch(e.type){case"m3u8":case"vnd.apple.mpegurl":e.type="hls";break;case"dash+xml":e.type="dash";break;case"m4a":e.type="aac";break;case"smil":e.type="rtmp"}return Object.keys(e).forEach(function(t){""===e[t]&&delete e[t]}),e}}}},function(t,e,n){"use strict";n.d(e,"a",function(){return v}),n.d(e,"b",function(){return j});var r=n(4),i=n(3),o=n(9),u=n(18),a=n(7);var c,s,l="ontouchstart"in window,f="PointerEvent"in window&&!r.OS.android,d=!(f||l&&r.OS.mobile),p=r.Features.passiveEvents,h=!!p&&{passive:!0},v=function(t){var e,n;function r(e,n){var r;r=t.call(this)||this;var i=!(n=n||{}).preventScrolling;return r.directSelect=!!n.directSelect,r.dragged=!1,r.enableDoubleTap=!1,r.el=e,r.handlers={},r.options={},r.lastClick=0,r.lastStart=0,r.passive=i,r.pointerId=null,r.startX=0,r.startY=0,r.event=null,r}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.on=function(e,n,r){return m(e)&&(this.handlers[e]||y[e](this)),t.prototype.on.call(this,e,n,r)},i.off=function(e,n,r){var i=this;if(m(e))O(this,e);else if(!e){var o=this.handlers;Object.keys(o).forEach(function(t){O(i,t)})}return t.prototype.off.call(this,e,n,r)},i.destroy=function(){this.el&&(this.off(),f&&k(this),this.el=null)},r}(o.a),g=/\s+/;function m(t){return t&&!(g.test(t)||"object"==typeof t)}function b(t){if(!t.handlers.init){var e=t.el,n=t.passive,r=!!p&&{passive:n},o=function(i){if(Object(a.o)(e,"jw-tab-focus"),!function(t){if("which"in t)return 3===t.which;if("button"in t)return 2===t.button;return!1}(i)){var o=i.target,c=i.type;if(!t.directSelect||o===e){var s=P(i),f=s.pageX,d=s.pageY;if(t.dragged=!1,t.lastStart=Object(u.a)(),t.startX=f,t.startY=d,O(t,"window"),"pointerdown"===c&&i.isPrimary){if(!n){var p=i.pointerId;t.pointerId=p,e.setPointerCapture(p)}w(t,"window","pointermove",l,r),w(t,"window","pointercancel",h),w(t,"window","pointerup",h),"BUTTON"===e.tagName&&e.focus()}else"mousedown"===c?(w(t,"window","mousemove",l,r),w(t,"window","mouseup",h)):"touchstart"===c&&(w(t,"window","touchmove",l,r),w(t,"window","touchcancel",h),w(t,"window","touchend",h),n||S(i))}}},l=function(e){if(t.dragged)x(t,i.s,e);else{var r=P(e),o=r.pageX,u=r.pageY,a=o-t.startX,c=u-t.startY;a*a+c*c>36&&(x(t,i.u,e),t.dragged=!0,x(t,i.s,e))}n||"touchmove"!==e.type||S(e)},h=function(n){if(clearTimeout(c),t.el)if(k(t),O(t,"window"),t.dragged)t.dragged=!1,x(t,i.t,n);else if(-1===n.type.indexOf("cancel")&&e.contains(n.target)){if(Object(u.a)()-t.lastStart>500)return;var r="pointerup"===n.type||"pointercancel"===n.type,o="mouseup"===n.type||r&&"mouse"===n.pointerType;!function(t,e,n){if(t.enableDoubleTap)if(Object(u.a)()-t.lastClick<300){var r=n?i.q:i.r;x(t,r,e),t.lastClick=0}else t.lastClick=Object(u.a)()}(t,n,o),o?x(t,i.n,n):(x(t,i.tb,n),"touchend"!==n.type||p||S(n))}};f?w(t,"init","pointerdown",o,r):(d&&w(t,"init","mousedown",o,r),w(t,"init","touchstart",o,r)),s||(s=new v(document).on("interaction")),w(t,"init","blur",function(){Object(a.o)(e,"jw-tab-focus")}),w(t,"init","focus",function(){s.event&&"keydown"===s.event.type&&Object(a.a)(e,"jw-tab-focus")})}}var y={drag:function(t){b(t)},dragStart:function(t){b(t)},dragEnd:function(t){b(t)},click:function(t){b(t)},tap:function(t){if(r.OS.iOS&&r.OS.version.major<11){var e=document.body;e&&(e.ontouchstart=e.ontouchstart||function(){})}b(t)},doubleTap:function(t){t.enableDoubleTap=!0,b(t)},doubleClick:function(t){t.enableDoubleTap=!0,b(t)},longPress:function(t){if(r.OS.iOS){var e=function(){clearTimeout(c)};w(t,"longPress","touchstart",function(n){e(),c=setTimeout(function(){x(t,"longPress",n)},500)}),w(t,"longPress","touchmove",e),w(t,"longPress","touchcancel",e),w(t,"longPress","touchend",e)}else t.el.oncontextmenu=function(e){return x(t,"longPress",e),!1}},focus:function(t){w(t,"focus","focus",function(e){C(t,"focus",e)})},blur:function(t){w(t,"blur","blur",function(e){C(t,"blur",e)})},over:function(t){(f||d)&&w(t,i.Z,f?"pointerover":"mouseover",function(e){"touch"!==e.pointerType&&x(t,i.Z,e)})},out:function(t){if(f){var e=t.el;w(t,i.Y,"pointerout",function(n){if("touch"!==n.pointerType&&"clientX"in n){var r=document.elementFromPoint(n.clientX,n.clientY);e.contains(r)||x(t,i.Y,n)}})}else d&&w(t,i.Y,"mouseout",function(e){x(t,i.Y,e)})},move:function(t){(f||d)&&w(t,i.W,f?"pointermove":"mousemove",function(e){"touch"!==e.pointerType&&x(t,i.W,e)})},enter:function(t){w(t,i.v,"keydown",function(e){"Enter"!==e.key&&13!==e.keyCode||(e.stopPropagation(),C(t,i.v,e))})},keydown:function(t){w(t,"keydown","keydown",function(e){C(t,"keydown",e)},!1)},gesture:function(t){var e=function(e){return x(t,"gesture",e)};w(t,"gesture","click",e),w(t,"gesture","keydown",e)},interaction:function(t){var e=function(e){t.event=e};w(t,"interaction","mousedown",e,!0),w(t,"interaction","keydown",e,!0)}};function j(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}function w(t,e,n,r,i){void 0===i&&(i=h);var o=t.handlers[e],u=t.options[e];if(o||(o=t.handlers[e]={},u=t.options[e]={}),o[n])throw new Error(e+" "+n+" already registered");o[n]=r,u[n]=i;var a=t.el;("window"===e?j(a):a).addEventListener(n,r,i)}function O(t,e){var n=t.el,r=t.handlers,i=t.options,o="window"===e?j(n):n,u=r[e],a=i[e];u&&(Object.keys(u).forEach(function(t){var e=a[t];"boolean"==typeof e?o.removeEventListener(t,u[t],e):o.removeEventListener(t,u[t])}),r[e]=null,i[e]=null)}function k(t){var e=t.el;null!==t.pointerId&&(e.releasePointerCapture(t.pointerId),t.pointerId=null)}function C(t,e,n){var r=t.el,i=n.target;t.trigger(e,{type:e,sourceEvent:n,currentTarget:r,target:i})}function x(t,e,n){var r=function(t,e,n){var r,i=e.target,o=e.touches,u=e.changedTouches,a=e.pointerType;o||u?(r=o&&o.length?o[0]:u[0],a=a||"touch"):(r=e,a=a||"mouse");var c=r,s=c.pageX,l=c.pageY;return{type:t,pointerType:a,pageX:s,pageY:l,sourceEvent:e,currentTarget:n,target:i}}(e,n,t.el);t.trigger(e,r)}function P(t){return 0===t.type.indexOf("touch")?(t.originalEvent||t).changedTouches[0]:t}function S(t){t.preventDefault&&t.preventDefault()}},function(t,e,n){"use strict";n.d(e,"d",function(){return r}),n.d(e,"c",function(){return i}),n.d(e,"b",function(){return o}),n.d(e,"a",function(){return u});var r={audioMode:!1,itemMeta:{},playbackRate:1,playRejected:!1,state:n(3).mb,itemReady:!1,controlsEnabled:!1},i={position:0,duration:0,buffer:0,currentTime:0},o=120,u=25},function(t,e,n){"use strict";var r=n(0),i=n(21),o=n(10),u=n(12),a=n(2),c=n(30),s=n(15);function l(t,e){this.name=t,this.message=e.message||e.toString(),this.error=e}var f=n(6),d=n(7),p=n(11),h=n(27),v=n(52),g=n(47),m=n(53);var b=Object(r.j)({},u,o,i,{addClass:d.a,hasClass:d.i,removeClass:d.o,replaceClass:d.p,toggleClass:d.v,classList:d.d,styleDimension:d.u,createElement:d.e,emptyElement:d.h,addStyleSheet:d.b,bounds:d.c,openLink:d.l,replaceInnerHtml:d.q,css:p.b,clearCss:p.a,style:p.d,transform:p.e,getRgba:p.c,ajax:h.b,crossdomain:function(t){var e=window.URL;try{var n=new e(t,location.origin);return location.protocol+"//"+location.host!=n.protocol+"//"+n.host}catch(t){}return!0},tryCatch:function(t,e,n){if(void 0===n&&(n=[]),s.a.debug)return t.apply(e||this,n);try{return t.apply(e||this,n)}catch(e){return new l(t.name,e)}},Error:l,Timer:c.a,log:g.a,genId:m.b,between:v.a,foreach:function(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])},flashVersion:f.a,isIframe:f.m,indexOf:r.p,trim:a.i,pad:a.e,extension:a.a,hms:a.b,seconds:a.g,prefix:a.f,suffix:a.h,noop:function(){}});e.a=b},function(t,e,n){"use strict";n.d(e,"b",function(){return c}),n.d(e,"d",function(){return s}),n.d(e,"c",function(){return l}),n.d(e,"a",function(){return f});var r,i=n(20),o=[{configName:"clearkey",keyName:"org.w3.clearkey"},{configName:"widevine",keyName:"com.widevine.alpha"},{configName:"playready",keyName:"com.microsoft.playready"}],u=[],a={};function c(t){return t.some(function(t){return!!t.drm||t.sources.some(function(t){return!!t.drm})})}function s(t){return r||((navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration||window.MSMediaKeys)&&Object(i.a)(t)("drm")?(o.forEach(function(t){var e,n,r=(e=t.keyName,n=[{initDataTypes:["cenc"],videoCapabilities:[{contentType:'video/mp4;codecs="avc1.4d401e"'}],audioCapabilities:[{contentType:'audio/mp4;codecs="mp4a.40.2"'}]}],navigator.requestMediaKeySystemAccess?navigator.requestMediaKeySystemAccess(e,n):new Promise(function(t,n){var r;try{r=new window.MSMediaKeys(e)}catch(t){return void n(t)}t(r)})).then(function(){a[t.configName]=!0}).catch(function(){a[t.configName]=!1});u.push(r)}),r=Promise.all(u)):Promise.resolve())}function l(t){return a[t]}function f(t){if(r)return Object.keys(t).some(function(t){return l(t)})}},function(t,e,n){"use strict";n.d(e,"c",function(){return i}),n.d(e,"b",function(){return o}),n.d(e,"a",function(){return u});var r=n(0),i=function(t){return t.replace(/^(.*\/)?([^-]*)-?.*\.(js)$/,"$2")};function o(t){return 305e3}function u(t,e,n){var i=t.name,o=Object(r.j)({},e),u=document.createElement("div");u.id=n.id+"_"+i,u.className="jw-plugin jw-reset";var a=t.getNewInstance(n,o,u);return n.addPlugin(i,a),a}},function(t,e,n){"use strict";n.d(e,"a",function(){return u}),n.d(e,"b",function(){return a});var r=n(8),i=n(4),o=null,u={};function a(){return o||(o=i.OS.tizenApp?n.e(3).then(function(t){var e=n(72).default;return u.controls=e,e}.bind(null,n)).catch(function(){o=null,Object(r.c)(301133)()}):n.e(2).then(function(t){var e=n(69).default;return u.controls=e,e}.bind(null,n)).catch(function(){o=null,Object(r.c)(301130)()})),o}},function(t,e,n){"use strict";e.a={advertising:{admessage:"This ad will end in xx",cuetext:"Advertisement",displayHeading:"Advertisement",loadingAd:"Loading ad",podmessage:"Ad __AD_POD_CURRENT__ of __AD_POD_LENGTH__.",skipmessage:"Skip ad in xx",skiptext:"Skip"},airplay:"AirPlay",audioTracks:"Audio Tracks",auto:"Auto",buffer:"Loading",cast:"Chromecast",cc:"Closed Captions",close:"Close",errors:{badConnection:"This video cannot be played because of a problem with your internet connection.",cantLoadPlayer:"Sorry, the video player failed to load.",cantPlayInBrowser:"The video cannot be played in this browser.",cantPlayVideo:"This video file cannot be played.",errorCode:"Error Code",liveStreamDown:"The live stream is either down or has ended.",protectedContent:"There was a problem providing access to protected content.",technicalError:"This video cannot be played because of a technical error."},exitFullscreen:"Exit Fullscreen",fullscreen:"Fullscreen",hd:"Quality",liveBroadcast:"Live",logo:"Logo",mute:"Mute",next:"Next",nextUp:"Next Up",notLive:"Not Live",off:"Off",pause:"Pause",play:"Play",playback:"Play",playbackRates:"Playback Rates",player:"Video Player",poweredBy:"Powered by",prev:"Previous",related:{autoplaymessage:"Next up in xx",heading:"More Videos"},replay:"Replay",rewind:"Rewind 10 Seconds",settings:"Settings",sharing:{copied:"Copied",email:"Email",embed:"Embed",heading:"Share",link:"Link"},slider:"Seek",stop:"Stop",unmute:"Unmute",videoInfo:"About This Video",volume:"Volume",volumeSlider:"Volume",shortcuts:{playPause:"Play/Pause",volumeToggle:"Mute/Unmute",fullscreenToggle:"Fullscreen/Exit Fullscreen",seekPercent:"Seek %",keyboardShortcuts:"Keyboard Shortcuts",increaseVolume:"Increase Volume",decreaseVolume:"Decrease Volume",seekForward:"Seek Forward",seekBackward:"Seek Backward",spacebar:"SPACE",captionsToggle:"Captions On/Off"},captionsStyles:{subtitleSettings:"Subtitle Settings",color:"Font Color",fontOpacity:"Font Opacity",userFontScale:"Font Size",fontFamily:"Font Family",edgeStyle:"Character Edge",backgroundColor:"Background Color",backgroundOpacity:"Background Opacity",windowColor:"Window Color",windowOpacity:"Window Opacity",white:"White",black:"Black",red:"Red",green:"Green",blue:"Blue",yellow:"Yellow",magenta:"Magenta",cyan:"Cyan",none:"None",raised:"Raised",depressed:"Depressed",uniform:"Uniform",dropShadow:"Drop Shadow"},disabled:"Disabled",enabled:"Enabled",reset:"Reset"}},function(t,e){var n,r,i={},o={},u=(n=function(){return document.head||document.getElementsByTagName("head")[0]},function(){return void 0===r&&(r=n.apply(this,arguments)),r});function a(t){var e=document.createElement("style");return e.type="text/css",e.setAttribute("data-jwplayer-id",t),function(t){u().appendChild(t)}(e),e}function c(t,e){var n,r,i,u=o[t];u||(u=o[t]={element:a(t),counter:0});var c=u.counter++;return n=u.element,i=function(){f(n,c,"")},(r=function(t){f(n,c,t)})(e.css),function(t){if(t){if(t.css===e.css&&t.media===e.media)return;r((e=t).css)}else i()}}t.exports={style:function(t,e){!function(t,e){for(var n=0;n<e.length;n++){var r=e[n],o=(i[t]||{})[r.id];if(o){for(var u=0;u<o.parts.length;u++)o.parts[u](r.parts[u]);for(;u<r.parts.length;u++)o.parts.push(c(t,r.parts[u]))}else{var a=[];for(u=0;u<r.parts.length;u++)a.push(c(t,r.parts[u]));i[t]=i[t]||{},i[t][r.id]={id:r.id,parts:a}}}}(e,function(t){for(var e=[],n={},r=0;r<t.length;r++){var i=t[r],o=i[0],u=i[1],a=i[2],c={css:u,media:a};n[o]?n[o].parts.push(c):e.push(n[o]={id:o,parts:[c]})}return e}(t))},clear:function(t,e){var n=i[t];if(!n)return;if(e){var r=n[e];if(r)for(var o=0;o<r.parts.length;o+=1)r.parts[o]();return}for(var u=Object.keys(n),a=0;a<u.length;a+=1)for(var c=n[u[a]],s=0;s<c.parts.length;s+=1)c.parts[s]();delete i[t]}};var s,l=(s=[],function(t,e){return s[t]=e,s.filter(Boolean).join("\n")});function f(t,e,n){if(t.styleSheet)t.styleSheet.cssText=l(e,n);else{var r=document.createTextNode(n),i=t.childNodes[e];i?t.replaceChild(r,i):t.appendChild(r)}}},function(t,e,n){"use strict";var r=n(0),i=n(16),o=n(32),u=n(17),a=n(8),c={html5:function(){return n.e(15).then(function(t){var e=n(166).default;return Object(u.a)(e),e}.bind(null,n)).catch(Object(a.b)(152))}};Object(r.j)(c,{shaka:function(){return n.e(16).then(function(t){var e=n(180).default;return Object(u.a)(e),e}.bind(null,n)).catch(Object(a.b)(154))},hlsjs:function(){return n.e(13).then(function(t){var e=n(175).default;return Object(u.a)(e),e}.bind(null,n)).catch(Object(a.b)(153))},hlsjsAlt:function(){return n.e(14).then(function(t){var e=n(176).default;return Object(u.a)(e),e}.bind(null,n)).catch(Object(a.b)(155))}});var s=c;function l(t){this.config=t||{}}Object(r.j)(l.prototype,{load:function(t){var e=s[t],n=function(){return Promise.reject(new Error("Failed to load media"))};return e?e().then(function(){var e=o.a[t];return e||n()}):n()},providerSupports:function(t,e){return t.supports(e)},choose:function(t){if(t===Object(t))for(var e=i.a.length,n=0;n<e;n++){var r=i.a[n];if(this.providerSupports(r,t))return{priority:e-n-1,name:r.name,type:t.type,providerToCheck:r,provider:o.a[r.name]}}return{}}});var f=l;f.prototype.providerSupports=function(t,e){return t.supports(e,this.config.edition)};e.a=f},function(t,e,n){"use strict";var r=n(7),i=n(11);function o(t,e){var n=e.message,o=e.code,u=function(t,e,n,r){return'<div id="'+t+'" class="jw-error jw-reset"><div class="jw-error-msg jw-info-overlay jw-reset"><style>[id="'+t+'"].jw-error{background:#000;overflow:hidden;position:relative}[id="'+t+'"] .jw-error-msg{top:50%;left:50%;position:absolute;transform:translate(-50%,-50%)}[id="'+t+'"] .jw-error-text{text-align:start;color:#FFF;font:14px/1.35 Arial,Helvetica,sans-serif}</style><div class="jw-icon jw-reset"></div><div class="jw-info-container jw-reset"><div class="jw-error-text jw-reset-text" dir="auto" data-nosnippet>'+(e||"")+'<span class="jw-break jw-reset"></span>'+(r?("("+n+": "+r+")").replace(/\s+/g,"&nbsp;"):"")+"</div></div></div></div>"}(t.get("id"),n,t.get("localization").errors.errorCode,o.toString()),a=t.get("width"),c=t.get("height"),s=Object(r.e)(u);return Object(i.d)(s,{width:a.toString().indexOf("%")>0?a:a+"px",height:c.toString().indexOf("%")>0?c:c+"px"}),s}n.d(e,"a",function(){return o})},function(t,e,n){"use strict";function r(t){return t.slice&&"px"===t.slice(-2)&&(t=t.slice(0,-2)),t}function i(t,e){if(-1===e.toString().indexOf("%"))return 0;if("string"!=typeof t||!t)return 0;if(/^\d*\.?\d+%$/.test(t))return t;var n=t.indexOf(":");if(-1===n)return 0;var r=parseFloat(t.substr(0,n)),i=parseFloat(t.substr(n+1));return r<=0||i<=0?0:i/r*100+"%"}n.d(e,"b",function(){return r}),n.d(e,"a",function(){return i})},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=window.atob},function(t,e,n){"use strict";var r=n(5),i=n(2);function o(t){var e={zh:"Chinese",nl:"Dutch",en:"English",fr:"French",de:"German",it:"Italian",ja:"Japanese",pt:"Portuguese",ru:"Russian",es:"Spanish"};return e[t]?e[t]:t}function u(t){for(var e=[],n=0;n<Object(r.c)(t);n++){var i=t.childNodes[n];"jwplayer"===i.prefix&&"mediatypes"===Object(r.b)(i).toLowerCase()&&e.push(Object(r.d)(i))}return e}var a=function t(e,n){for(var a=[],c=0;c<Object(r.c)(e);c++){var s=e.childNodes[c];if("media"===s.prefix){if(!Object(r.b)(s))continue;switch(Object(r.b)(s).toLowerCase()){case"content":if(Object(i.j)(s,"duration")&&(n.duration=Object(i.g)(Object(i.j)(s,"duration"))),Object(i.j)(s,"url")){n.sources||(n.sources=[]);var l={file:Object(i.j)(s,"url"),type:Object(i.j)(s,"type"),width:Object(i.j)(s,"width"),label:Object(i.j)(s,"label")},f=u(s);f.length&&(l.mediaTypes=f),n.sources.push(l)}Object(r.c)(s)>0&&(n=t(s,n));break;case"title":n.title=Object(r.d)(s);break;case"description":n.description=Object(r.d)(s);break;case"guid":n.mediaid=Object(r.d)(s);break;case"thumbnail":n.image||(n.image=Object(i.j)(s,"url"));break;case"group":t(s,n);break;case"subtitle":var d={file:Object(i.j)(s,"url"),kind:"captions"};Object(i.j)(s,"lang").length>0&&(d.label=o(Object(i.j)(s,"lang"))),a.push(d)}}}n.tracks||(n.tracks=[]);for(var p=0;p<a.length;p++)n.tracks.push(a[p]);return n},c=n(12),s=function(t,e){for(var n="default",o=[],u=[],a=e,s=0;s<t.childNodes.length;s++){var l=t.childNodes[s];if("jwplayer"===l.prefix){var f=Object(r.b)(l);"source"===f?(delete e.sources,o.push({file:Object(i.j)(l,"file"),default:Object(i.j)(l,n),label:Object(i.j)(l,"label"),type:Object(i.j)(l,"type")})):"track"===f?(delete e.tracks,u.push({file:Object(i.j)(l,"file"),default:Object(i.j)(l,n),kind:Object(i.j)(l,"kind"),label:Object(i.j)(l,"label")})):(e[f]=Object(c.serialize)(Object(r.d)(l)),"file"===f&&e.sources&&delete e.sources)}e.file||(e.file=e.link)}if(o.length){e.sources=[];for(var d=0;d<o.length;d++){var p=o[d];p.file.length>0&&(p[n]="true"===o[d][n],p.label||delete p.label,a.sources.push(p))}}if(u.length){e.tracks=[];for(var h=0;h<u.length;h++){var v=u[h];v.file&&v.file.length>0&&(v[n]="true"===u[h][n],v.kind=u[h].kind.length?u[h].kind:"captions",v.label||delete v.label,a.tracks.push(v))}}return a},l=n(28);function f(t){var e=[];e.feedData={};for(var n=0;n<Object(r.c)(t);n++){var i=Object(r.a)(t,n);if("channel"===Object(r.b)(i).toLowerCase())for(var o=0;o<Object(r.c)(i);o++){var u=Object(r.a)(i,o),a=Object(r.b)(u).toLowerCase();"item"===a?e.push(d(u)):a&&(e.feedData[a]=Object(r.d)(u))}}return e}function d(t){for(var e={},n=0;n<t.childNodes.length;n++){var o=t.childNodes[n],u=Object(r.b)(o);if(u)switch(u.toLowerCase()){case"enclosure":e.file=Object(i.j)(o,"url");break;case"title":e.title=Object(r.d)(o);break;case"guid":e.mediaid=Object(r.d)(o);break;case"pubdate":e.date=Object(r.d)(o);break;case"description":e.description=Object(r.d)(o);break;case"link":e.link=Object(r.d)(o);break;case"category":e.tags?e.tags+=Object(r.d)(o):e.tags=Object(r.d)(o)}}return new l.a(s(t,a(t,e)))}n.d(e,"a",function(){return f})},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r="function"==typeof console.log?console.log.bind(console):function(){}},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(45);function i(t){for(var e=new Array(Math.ceil(t.length/4)),n=0;n<e.length;n++)e[n]=t.charCodeAt(4*n)+(t.charCodeAt(4*n+1)<<8)+(t.charCodeAt(4*n+2)<<16)+(t.charCodeAt(4*n+3)<<24);return e}function o(t,e){if(t=String(t),e=String(e),0===t.length)return"";for(var n,o,u,a=i(Object(r.a)(t)),c=i((n=e,unescape(encodeURIComponent(n))).slice(0,16)),s=a.length,l=a[s-1],f=a[0],d=2654435769*Math.floor(6+52/s);d;){u=d>>>2&3;for(var p=s-1;p>=0;p--)o=((l=a[p>0?p-1:s-1])>>>5^f<<2)+(f>>>3^l<<4)^(d^f)+(c[3&p^u]^l),f=a[p]-=o;d-=2654435769}return function(t){try{return decodeURIComponent(escape(t))}catch(e){return t}}(function(t){for(var e=new Array(t.length),n=0;n<t.length;n++)e[n]=String.fromCharCode(255&t[n],t[n]>>>8&255,t[n]>>>16&255,t[n]>>>24&255);return e.join("")}(a).replace(/\0+$/,""))}},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return i});var r=window.requestAnimationFrame||function(t){return setTimeout(t,17)},i=window.cancelAnimationFrame||clearTimeout},function(t,e,n){"use strict";n.d(e,"a",function(){return l}),n.d(e,"c",function(){return f});var r=n(0),i=n(44),o=n(21),u=n(12),a=n(4),c=n(40),s=n(13),l={autoPause:{viewability:!1,pauseAds:!1},autostart:!1,bandwidthEstimate:null,bitrateSelection:null,castAvailable:!1,controls:!0,cues:[],defaultPlaybackRate:1,displaydescription:!0,displaytitle:!0,displayPlaybackLabel:!1,enableShortcuts:!0,height:360,intl:{},item:0,language:"en",liveTimeout:null,localization:c.a,mute:!1,nextUpDisplay:!0,playbackRateControls:!1,playbackRates:[.5,1,1.25,1.5,2],renderCaptionsNatively:!1,repeat:!1,stretching:"uniform",volume:90,width:640};function f(t){return t<5?5:t>30?30:t}e.b=function(t,e){var d=Object(r.j)({},(window.jwplayer||{}).defaults,e,t);!function(t){Object.keys(t).forEach(function(e){"id"!==e&&(t[e]=Object(u.serialize)(t[e]))})}(d);var p=d.forceLocalizationDefaults?l.language:Object(s.e)(),h=Object(s.j)(d.intl);d.localization=Object(s.a)(c.a,Object(s.c)(d,h,p));var v=Object(r.j)({},l,d);"."===v.base&&(v.base=Object(o.getScriptPath)("jwplayer.js")),v.base=(v.base||Object(o.loadFrom)()).replace(/\/?$/,"/"),n.p=v.base,v.width=Object(i.b)(v.width),v.height=Object(i.b)(v.height),v.aspectratio=Object(i.a)(v.aspectratio,v.width),v.volume=Object(r.z)(v.volume)?Math.min(Math.max(0,v.volume),100):l.volume,v.mute=!!v.mute,v.language=p,v.intl=h;var g=v.playlistIndex;g&&(v.item=g),Object(r.v)(v.item)||(v.item=0);var m=d.autoPause;m&&(v.autoPause.viewability=!("viewability"in m)||!!m.viewability);var b=v.playbackRateControls;if(b){var y=v.playbackRates;Array.isArray(b)&&(y=b),(y=y.filter(function(t){return Object(r.v)(t)&&t>=.25&&t<=4}).map(function(t){return Math.round(100*t)/100})).indexOf(1)<0&&y.push(1),y.sort(),v.playbackRateControls=!0,v.playbackRates=y}(!v.playbackRateControls||v.playbackRates.indexOf(v.defaultPlaybackRate)<0)&&(v.defaultPlaybackRate=1),v.playbackRate=v.defaultPlaybackRate,v.aspectratio||delete v.aspectratio;var j=v.playlist;if(j)Array.isArray(j.playlist)&&(v.feedData=j,v.playlist=j.playlist);else{var w=Object(r.D)(v,["title","description","type","mediaid","image","images","file","sources","tracks","preload","duration"]);v.playlist=[w]}v.qualityLabels=v.qualityLabels||v.hlslabels,delete v.duration;var O=v.liveTimeout;null!==O&&(Object(r.z)(O)?0!==O&&(O=Math.max(30,O)):O=null,v.liveTimeout=O);var k,C,x=parseFloat(v.bandwidthEstimate),P=parseFloat(v.bitrateSelection);return v.bandwidthEstimate=Object(r.z)(x)?x:(k=v.defaultBandwidthEstimate,C=parseFloat(k),Object(r.z)(C)?Math.max(C,1):l.bandwidthEstimate),v.bitrateSelection=Object(r.z)(P)?P:l.bitrateSelection,v.liveSyncDuration=f(v.liveSyncDuration),v.backgroundLoading=Object(r.r)(v.backgroundLoading)?v.backgroundLoading:a.Features.backgroundLoading,v}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=setTimeout;function o(){}function u(t){if(!(this instanceof u))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(t,this)}function a(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,u._immediateFn(function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(t){return void s(e.promise,t)}c(e.promise,r)}else(1===t._state?c:s)(e.promise,t._value)})):t._deferreds.push(e)}function c(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof u)return t._state=3,t._value=e,void l(t);if("function"==typeof n)return void d((r=n,i=e,function(){r.apply(i,arguments)}),t)}t._state=1,t._value=e,l(t)}catch(e){s(t,e)}var r,i}function s(t,e){t._state=2,t._value=e,l(t)}function l(t){2===t._state&&0===t._deferreds.length&&u._immediateFn(function(){t._handled||u._unhandledRejectionFn(t._value)});for(var e=0,n=t._deferreds.length;e<n;e++)a(t,t._deferreds[e]);t._deferreds=null}function f(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function d(t,e){var n=!1;try{t(function(t){n||(n=!0,c(e,t))},function(t){n||(n=!0,s(e,t))})}catch(t){if(n)return;n=!0,s(e,t)}}u.prototype.catch=function(t){return this.then(null,t)},u.prototype.then=function(t,e){var n=new this.constructor(o);return a(this,new f(t,e,n)),n},u.prototype.finally=function(t){var e=this.constructor;return this.then(function(n){return e.resolve(t()).then(function(){return n})},function(n){return e.resolve(t()).then(function(){return e.reject(n)})})},u.all=function(t){return new u(function(e,n){if(!t||void 0===t.length)throw new TypeError("Promise.all accepts an array");var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var i=r.length;function o(t,u){try{if(u&&("object"==typeof u||"function"==typeof u)){var a=u.then;if("function"==typeof a)return void a.call(u,function(e){o(t,e)},n)}r[t]=u,0==--i&&e(r)}catch(t){n(t)}}for(var u=0;u<r.length;u++)o(u,r[u])})},u.resolve=function(t){return t&&"object"==typeof t&&t.constructor===u?t:new u(function(e){e(t)})},u.reject=function(t){return new u(function(e,n){n(t)})},u.race=function(t){return new u(function(e,n){for(var r=0,i=t.length;r<i;r++)t[r].then(e,n)})},u._immediateFn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){i(t,0)},u._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var p=u;window.Promise||(window.Promise=p);var h=n(21),v=n(14),g=n(16),m=n(17),b={availableProviders:g.a,registerProvider:m.a},y=n(25);b.registerPlugin=function(t,e,n){"jwpsrv"!==t&&Object(y.b)(t,e,n)};var j=b,w=n(29),O=n(15),k=n(4),C=n(64),x=n(3),P=n(30),S=n(9),T=n(36),E=0;function A(t,e){var n=new C.a(e);return n.on(x.gb,function(e){t._qoe.tick("ready"),e.setupTime=t._qoe.between("setup","ready")}),n.on("all",function(e,n){t.trigger(e,n)}),n}function _(t,e){var n=t.plugins;Object.keys(n).forEach(function(t){delete n[t]}),e.get("setupConfig")&&t.trigger("remove"),t.off(),e.playerDestroy(),e.getContainer().removeAttribute("data-jwplayer-id")}function F(t){var e=++E,n=t.id||"player-"+e,i=new P.a,o={},u=A(this,t);i.tick("init"),t.setAttribute("data-jwplayer-id",n),Object.defineProperties(this,{id:{enumerable:!0,get:function(){return n}},uniqueId:{enumerable:!0,get:function(){return e}},plugins:{enumerable:!0,get:function(){return o}},_qoe:{enumerable:!0,get:function(){return i}},version:{enumerable:!0,get:function(){return w.a}},Events:{enumerable:!0,get:function(){return S.a}},utils:{enumerable:!0,get:function(){return T.a}},_:{enumerable:!0,get:function(){return r.f}}}),Object(r.j)(this,{_events:{},setup:function(e){return i.clear("ready"),i.tick("setup"),_(this,u),(u=A(this,t)).init(e,this),this.on(e.events,null,this)},remove:function(){return function(t){for(var e=v.a.length;e--;)if(v.a[e].uniqueId===t.uniqueId){v.a.splice(e,1);break}}(this),_(this,u),this},qoe:function(){var t=u.getItemQoe();return{setupTime:this._qoe.between("setup","ready"),firstFrame:t.getFirstFrame?t.getFirstFrame():null,player:this._qoe.dump(),item:t.dump()}},addCues:function(t){return Array.isArray(t)&&u.addCues(t),this},getAudioTracks:function(){return u.getAudioTracks()},getBuffer:function(){return u.get("buffer")},getCaptions:function(){return u.get("captions")},getCaptionsList:function(){return u.getCaptionsList()},getConfig:function(){return u.getConfig()},getContainer:function(){return u.getContainer()},getControls:function(){return u.get("controls")},getCues:function(){return u.get("cues")},getCurrentAudioTrack:function(){return u.getCurrentAudioTrack()},getCurrentCaptions:function(){return u.getCurrentCaptions()},getCurrentQuality:function(){return u.getCurrentQuality()},getCurrentTime:function(){return u.get("currentTime")},getDuration:function(){return u.get("duration")},getEnvironment:function(){return k},getFullscreen:function(){return u.get("fullscreen")},getHeight:function(){return u.getHeight()},getItemMeta:function(){return u.get("itemMeta")||{}},getMute:function(){return u.getMute()},getPercentViewable:function(){return u.get("visibility")},getPlaybackRate:function(){return u.get("playbackRate")},getPlaylist:function(){return u.get("playlist")},getPlaylistIndex:function(){return u.get("item")},getPlaylistItem:function(t){if(!T.a.exists(t))return u.get("playlistItem");var e=this.getPlaylist();return e?e[t]:null},getPosition:function(){return u.get("position")},getProvider:function(){return u.getProvider()},getQualityLevels:function(){return u.getQualityLevels()},getSafeRegion:function(t){return void 0===t&&(t=!0),u.getSafeRegion(t)},getState:function(){return u.getState()},getStretching:function(){return u.get("stretching")},getViewable:function(){return u.get("viewable")},getVisualQuality:function(){return u.getVisualQuality()},getVolume:function(){return u.get("volume")},getWidth:function(){return u.getWidth()},setCaptions:function(t){return u.setCaptions(t),this},setConfig:function(t){return u.setConfig(t),this},setControls:function(t){return u.setControls(t),this},setCurrentAudioTrack:function(t){u.setCurrentAudioTrack(t)},setCurrentCaptions:function(t){u.setCurrentCaptions(t)},setCurrentQuality:function(t){u.setCurrentQuality(t)},setFullscreen:function(t){return u.setFullscreen(t),this},setMute:function(t){return u.setMute(t),this},setPlaybackRate:function(t){return u.setPlaybackRate(t),this},setPlaylistItem:function(t,e){return u.setPlaylistItem(t,e),this},setCues:function(t){return Array.isArray(t)&&u.setCues(t),this},setVolume:function(t){return u.setVolume(t),this},load:function(t,e){return u.load(t,e),this},play:function(t){return u.play(t),this},pause:function(t){return u.pause(t),this},playToggle:function(t){switch(this.getState()){case x.pb:case x.jb:return this.pause(t);default:return this.play(t)}},seek:function(t,e){return u.seek(t,e),this},playlistItem:function(t,e){return u.playlistItem(t,e),this},playlistNext:function(t){return u.playlistNext(t),this},playlistPrev:function(t){return u.playlistPrev(t),this},next:function(t){return u.next(t),this},castToggle:function(){return u.castToggle(),this},stopCasting:function(){return u.stopCasting(),this},createInstream:function(){return u.createInstream()},stop:function(){return u.stop(),this},resize:function(t,e){return u.resize(t,e),this},addButton:function(t,e,n,r,i){return u.addButton(t,e,n,r,i),this},removeButton:function(t){return u.removeButton(t),this},attachMedia:function(){return u.attachMedia(),this},detachMedia:function(){return u.detachMedia(),this},isBeforeComplete:function(){return u.isBeforeComplete()},isBeforePlay:function(){return u.isBeforePlay()},setPlaylistItemCallback:function(t,e){u.setItemCallback(t,e)},removePlaylistItemCallback:function(){u.setItemCallback(null)},getPlaylistItemPromise:function(t){return u.getItemPromise(t)},getFloating:function(){return!!u.get("isFloating")},setFloating:function(t){u.setConfig({floating:{mode:t?"always":"never"}})}})}Object(r.j)(F.prototype,{on:function(t,e,n){return S.c.call(this,t,e,n)},once:function(t,e,n){return S.d.call(this,t,e,n)},off:function(t,e,n){return S.b.call(this,t,e,n)},trigger:function(t,e){return(e=r.f.isObject(e)?Object(r.j)({},e):{}).type=t,O.a.debug?S.e.call(this,t,e):S.f.call(this,t,e)},getPlugin:function(t){return this.plugins[t]},addPlugin:function(t,e){this.plugins[t]=e,this.on("ready",e.addToPlayer),e.resize&&this.on("resize",e.resizeHandler)},registerPlugin:function(t,e,n){Object(y.b)(t,e,n)},getAdBlock:function(){return!1},playAd:function(t){},pauseAd:function(t){},skipAd:function(){}}),n.p=Object(h.loadFrom)();var I=function(t){var e,n;if(t?"string"==typeof t?(e=M(t))||(n=document.getElementById(t)):"number"==typeof t?e=v.a[t]:t.nodeType&&(e=M((n=t).id||n.getAttribute("data-jwplayer-id"))):e=v.a[0],e)return e;if(n){var r=new F(n);return v.a.push(r),r}return{registerPlugin:y.b}};function M(t){for(var e=0;e<v.a.length;e++)if(v.a[e].id===t)return v.a[e];return null}function L(t){Object.defineProperties(t,{api:{get:function(){return j},set:function(){}},version:{get:function(){return w.a},set:function(){}},debug:{get:function(){return O.a.debug},set:function(t){O.a.debug=!!t}}})}L(I);var N=I,R=n(34),D=n(26),B=n(24),q=n(48),z=n(46),V=n(22),H=r.f.extend,Q={};Q._=r.f,Q.utils=Object(r.j)(T.a,{key:D.b,extend:H,scriptloader:B.a,rssparser:{parse:z.a},tea:q.a,UI:R.a}),Q.utils.css.style=Q.utils.style,Q.vid=V.a;var W=Q,U=n(63),X=/^(?:on(?:ce)?|off|trigger)$/;function Y(t){var e={};J(this,t,t,e),J(this,t,F.prototype,e)}function J(t,e,n,r){var i=Object.keys(n);i.forEach(function(o){"function"==typeof n[o]&&"Events"!==o?t[o]=function t(e,n,r,i,o){return function(){var u=Array.prototype.slice.call(arguments),a=u[0],c=n._trackCallQueue||(n._trackCallQueue=[]),s=X.test(r),l=s&&u[1]&&u[1]._callback,f=o.edition||K(n,o,"edition"),d="free"===f;if(d){var p=["addButton","addCues","detachMedia","load","next","pause","play","playlistItem","playlistNext","playlistPrev","playToggle","resize","seek","setCaptions","setConfig","setControls","setCues","setFullscreen","setMute","setPlaybackRate","setPlaylistItem","setVolume","stop"];if(p.indexOf(r)>-1)return $(r),e;var h=["createInstream","setCurrentAudioTrack","setCurrentCaptions","setCurrentQuality"];if(h.indexOf(r)>-1)return $(r),null}if(l||c.push([r,a]),s)return tt(n,c),n[r].apply(e,u);Z(r,u);var v=n[r].apply(n,u);return"remove"===r?n.off.call(e):"setup"===r&&(n.off.call(e),n.off(a.events,null,n),n.on.call(e,a.events,null,e),n.on("all",function(r,u){if("ready"===r){var a=Object.keys(n).filter(function(t){return"_"!==t[0]&&-1===i.indexOf(t)&&"function"==typeof n[t]}),s=i.concat(a);a.forEach(function(r){e[r]=t(e,n,r,s,o)})}n.trigger.call(e,r,u),tt(n,c)})),tt(n,c),v===n?e:v}}(t,e,o,i,r):"_events"===o?t._events={}:Object.defineProperty(t,o,{enumerable:!0,get:function(){return n[o]}})})}function K(t,e,n){var r=t.getConfig()[n];return e[n]=r,r}function $(t){console.warn("The API method jwplayer()."+t+"() is disabled in the free edition of JW Player.")}function Z(t,e){var n={reason:Object(U.a)()?"interaction":"external"};switch(t){case"play":case"pause":case"playToggle":case"playlistNext":case"playlistPrev":case"next":e[0]=n;break;case"seek":case"playlistItem":e[1]=n}}function G(t,e,n){try{var r=function(t,e){switch(t){case"setup":return!!e;case"getSafeRegion":case"pauseAd":case"setControls":case"setFullscreen":case"setMute":return!!e===e?e:void 0;case"setPlaylistItem":case"getPlaylistItem":return(0|e)===e?e:void 0;case"setPlaybackRate":case"setVolume":return Number(e);case"setConfig":return Object.keys(Object(e)).join(",");case"on":case"once":case"off":case"trigger":case"getPlugin":case"addPlugin":case"registerPlugin":return""+e}return null}(e,n);t.trackExternalAPIUsage(e,r)}catch(t){O.a.debug&&console.warn(t)}}function tt(t,e){if(e.length){var n=t.getPlugin("jwpsrv");n&&n.trackExternalAPIUsage&&(e.forEach(function(t){G(n,t[0],t[1])}),e.length=0)}}var et=window;Object(r.j)(N,W);var nt=function(t){var e=N(t);return e.uniqueId?e._publicApi||(e._publicApi=new Y(e)):e};Object(r.j)(nt,W),L(nt),"function"==typeof et.define&&et.define.amd&&et.define([],function(){return nt});var rt=nt;et.jwplayer&&(rt=et.jwplayer);e.default=rt},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t,e,n){return Math.max(Math.min(t,n),e)}},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o});var r=12;function i(){try{var t=window.crypto||window.msCrypto;if(t&&t.getRandomValues)return t.getRandomValues(new Uint32Array(1))[0].toString(36)}catch(t){}return Math.random().toString(36).slice(2,9)}function o(t){for(var e="";e.length<t;)e+=i();return e.slice(0,t)}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){var e,n;function r(){var e;return(e=t.call(this)||this).attributes=Object.create(null),e}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.addAttributes=function(t){var e=this;Object.keys(t).forEach(function(n){e.add(n,t[n])})},i.add=function(t,e){var n=this;Object.defineProperty(this,t,{get:function(){return n.attributes[t]},set:function(e){return n.set(t,e)},enumerable:!1}),this.attributes[t]=e},i.get=function(t){return this.attributes[t]},i.set=function(t,e){if(this.attributes[t]!==e){var n=this.attributes[t];this.attributes[t]=e,this.trigger("change:"+t,this,e,n)}},i.clone=function(){var t={},e=this.attributes;if(e)for(var n in e)t[n]=e[n];return t},i.change=function(t,e,n){this.on("change:"+t,e,n);var r=this.get(t);return e.call(n,this,r,r),this},r}(n(9).a)},function(t,e,n){"use strict";function r(t,e,n){var r=[],i={};function o(){for(;r.length>0;){var e=r.shift(),n=e.command,o=e.args;(i[n]||t[n]).apply(t,o)}}e.forEach(function(e){var u=t[e];i[e]=u,t[e]=function(){for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];n()?r.push({command:e,args:i}):(o(),u&&u.apply(this,i))}}),Object.defineProperty(this,"queue",{enumerable:!0,get:function(){return r}}),this.flush=o,this.empty=function(){r.length=0},this.off=function(){e.forEach(function(e){var n=i[e];n&&(t[e]=n,delete i[e])})},this.destroy=function(){this.off(),this.empty()}}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";n.d(e,"c",function(){return r}),n.d(e,"b",function(){return i}),n.d(e,"a",function(){return o});var r=4,i=5,o=1},function(t,e,n){"use strict";var r=n(3),i=function(){},o=function(){return!1},u={name:"default"},a={supports:o,play:i,pause:i,preload:i,load:i,stop:i,volume:i,mute:i,seek:i,resize:i,remove:i,destroy:i,setVisibility:i,setFullscreen:i,getFullscreen:o,supportsFullscreen:o,getContainer:i,setContainer:i,getName:function(){return u},getQualityLevels:i,getCurrentQuality:i,setCurrentQuality:i,getAudioTracks:i,getCurrentAudioTrack:i,setCurrentAudioTrack:i,getSeekRange:function(){return{start:0,end:this.getDuration()}},setPlaybackRate:i,getPlaybackRate:function(){return 1},getBandwidthEstimate:function(){return null},getLiveLatency:function(){return null},attachMedia:i,detachMedia:i,init:i,setState:function(t){this.state=t,this.trigger(r.bb,{newstate:t})},sendMediaType:function(t){var e=t[0],n=e.type,i=e.mimeType,o="aac"===n||"mp3"===n||"mpeg"===n||i&&0===i.indexOf("audio/");this.trigger(r.T,{mediaType:o?"audio":"video"})},getDuration:function(){return 0},trigger:i};e.a=a},function(t,e,n){"use strict";var r=n(0),i=n(24),o=n(12),u=n(2),a=n(1),c=n(19),s=function(t){if("string"==typeof t){var e=(t=t.split("?")[0]).indexOf("://");if(e>0)return 0;var n=t.indexOf("/"),r=Object(u.a)(t);return!(e<0&&n<0)||r&&isNaN(r)?1:2}};var l=function(t){this.url=t,this.promise_=null};Object.defineProperties(l.prototype,{promise:{get:function(){return this.promise_||this.load()},set:function(){}}}),Object(r.j)(l.prototype,{load:function(){var t=this,e=this.promise_;if(!e){if(2===s(this.url))e=Promise.resolve(this);else{var n=new i.a(function(t){switch(s(t)){case 0:return t;case 1:return Object(o.getAbsolutePath)(t,window.location.href)}}(this.url));this.loader=n,e=n.load().then(function(){return t})}this.promise_=e}return e},registerPlugin:function(t,e,n){this.name=t,this.target=e,this.js=n},getNewInstance:function(t,e,n){var r=this.js;if("function"!=typeof r)throw new a.q(null,Object(c.b)(this.url)+100);var i=new r(t,e,n);return i.addToPlayer=function(){var e=t.getContainer().querySelector(".jw-overlays");e&&(n.left=e.style.left,n.top=e.style.top,e.appendChild(n),i.displayArea=e)},i.resizeHandler=function(){var t=i.displayArea;t&&i.resize(t.clientWidth,t.clientHeight)},i}}),e.a=l},function(t,e,n){"use strict";var r=n(0),i=n(3),o=n(5),u=n(46),a=n(27),c=n(9),s=n(1);e.a=function(){var t=Object(r.j)(this,c.a);function e(e){try{var a,c=e.responseXML?e.responseXML.childNodes:null,l=null;if(c){for(var f=0;f<c.length&&8===(l=c[f]).nodeType;f++);if(l&&"xml"===Object(o.b)(l)&&(l=l.nextSibling),l&&"rss"===Object(o.b)(l)){var d=Object(u.a)(l);a=Object(r.j)({playlist:d},d.feedData)}}if(!a)try{var p=JSON.parse(e.responseText);if(Array.isArray(p))a={playlist:p};else{if(!Array.isArray(p.playlist))throw Error("Playlist is not an array");a=p}}catch(t){throw new s.q(s.m,621,t)}t.trigger(i.eb,a)}catch(t){n(t)}}function n(e){e instanceof s.q&&!e.code&&(e=new s.q(s.m,0)),t.trigger(i.w,e)}this.load=function(t){Object(a.b)(t,e,function(t,e,r,i){n(i)})},this.destroy=function(){this.off()}}},function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return u});var r=n(56);function i(){for(var t=r.c,e=[],n=[],i=0;i<t;i++){var a=u();e.push(a),n.push(a),o(a)}var c=n.shift(),s=n.shift(),l=!1;return{primed:function(){return l},prime:function(){e.forEach(o),l=!0},played:function(){l=!0},getPrimedElement:function(){return n.shift()||null},getAdElement:function(){return c},getTestElement:function(){return s},clean:function(t){if(t.src){t.removeAttribute("src");try{t.load()}catch(t){}}},recycle:function(t){t&&!n.some(function(e){return e===t})&&(this.clean(t),n.push(t))},syncVolume:function(t){var n=Math.min(Math.max(0,t/100),1);e.forEach(function(t){t.volume=n})},syncMute:function(t){e.forEach(function(e){e.muted=t})}}}function o(t){t.src||t.load()}function u(t){var e=document.createElement("video");return e.className="jw-video jw-reset",e.setAttribute("tabindex","-1"),e.setAttribute("disableRemotePlayback",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("playsinline",""),t&&Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])}),e}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0);function i(t,e){return Object(r.j)({},e,{prime:function(){t.src||t.load()},getPrimedElement:function(){return t},clean:function(){e.clean(t)},recycle:function(){e.clean(t)}})}},function(t,e,n){"use strict";e.a="hidden"in document?function(){return!document.hidden}:"webkitHidden"in document?function(){return!document.webkitHidden}:function(){return!0}},function(t,e,n){"use strict";function r(t){return!!(t=t||window.event)&&/^(?:mouse|pointer|touch|gesture|click|key)/.test(t.type)}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";var r=n(0),i=n(55),o=n(50),u=n(21),a=n(10),c=n(51),s=n(26),l=n(20);function f(t,e){var n=t.querySelector(e);if(n)return n.getAttribute("content")}var d=n(67),p=n.n(d),h=n(66);function v(t){return"string"==typeof t&&/^\/\/(?:content\.jwplatform|cdn\.jwplayer)\.com\//.test(t)}function g(t){return"https:"+t}function m(t,e){var n="file:"===window.location.protocol?"https:":"",r={bidding:"//ssl.p.jwpcdn.com/player/v/8.19.1/bidding.js",jwpsrv:"//ssl.p.jwpcdn.com/player/v/8.19.1/jwpsrv.js",dai:"//ssl.p.jwpcdn.com/player/plugins/dai/v/0.4.14/dai.js",vast:"//ssl.p.jwpcdn.com/player/plugins/vast/v/8.8.6/vast.js",googima:e?"//ssl.p.jwpcdn.com/player/v/8.19.1/googimanvmp.js":"//ssl.p.jwpcdn.com/player/plugins/googima/v/8.8.12/googima.js",freewheel:"//ssl.p.jwpcdn.com/player/plugins/freewheel/v/2.2.11/freewheel.js",gapro:"//ssl.p.jwpcdn.com/player/plugins/gapro/v/2.1.5/gapro.js"}[t];return r?n+r:""}function b(t,e,n){e&&(t[e.client||m(n)]=e,delete e.client)}var y=function(t,e){var i,d,y,j=Object(o.b)(t,e),w=j.key||c.default.key,O=new s.b(w),k=O.edition();if("free"===O.edition()&&(j=Object(r.j)({skin:{active:"#ff0046",timeslider:{progress:"none"}},logo:{position:"control-bar",file:p.a}},o.a,Object(r.D)(j,["analytics","aspectratio","base","file","height","playlist","sources","width"]))),j.key=w,j.edition=k,j.error=O.error(),j.generateSEOMetadata=j.generateSEOMetadata||!1,"unlimited"===k){var C=Object(u.getScriptPath)("jwplayer.js");if(!C)throw new Error("Error setting up player: Could not locate jwplayer.js script tag");n.p=C}if(j.related=function(t){var e=Object(l.a)(t.edition),n=t.related,i=!e("discovery")||n!==Object(n),o=!n||"none"!==n.displayMode,u=n||{},a=void 0===u.oncomplete?"none":u.oncomplete,c=u.autoplaytimer;!1===a||t.repeat?a="hide":"none"===a&&(c=0);var s="autoplay"===a&&c<=0||"none"===a;return Object(r.j)({},n,{disableRelated:i,showButton:o,oncomplete:a,autoplaytimer:c,shouldAutoAdvance:s})}(j),j.ab&&(j.ab=function(t){var e=t.ab;e.clone&&(e=e.clone());return Object.keys(e.tests).forEach(function(n){e.tests[n].forEach(function(e){e.addConfig&&e.addConfig(t,e.selection)})}),e}(j)),j.plugins=function(t){var e=Object(r.j)({},t.plugins),n=Object(l.a)(t.edition);if(n("ads")){var i=Object(r.j)({},t.advertising),o=i.client;if(o){var u=m(o,t.__ab_jwIMA)||o;e[u]=i,delete i.client}i.bids&&b(e,i.bids,"bidding")}if(n("jwpsrv")){var a=t.analytics;a!==Object(a)&&(a={}),b(e,a,"jwpsrv")}return b(e,t.ga,"gapro"),e}(j),i=j.playlist,Object(r.x)(i)&&i.indexOf("__CONTEXTUAL__")>-1&&(j.playlist=function(t,e){var n=(t.querySelector("title")||{}).textContent,r=f(t,'meta[property="og:title"]'),i=encodeURIComponent(r||n||""),o=f(t,'meta[property="og:description"]')||f(t,'meta[name="description"]');return o&&(i+="&page_description="+encodeURIComponent(o)),e.replace("__CONTEXTUAL__",i)}(document,j.playlist),j.contextual=!0),Object(a.isFileProtocol)()){var x=j,P=x.playlist,S=x.related;v(P)&&(j.playlist=g(P)),S&&v(S.file)&&(S.file=g(S.file))}return j.__abSendDomainToFeeds&&(y=j.playlist,/\.jwplatform.com|\.jwplayer.com/.test(y))&&(j.playlist=(d=j.playlist,d+=(-1!==d.indexOf("?")?"&":"?")+"page_domain="+encodeURIComponent(Object(h.a)()))),j},j=n(8),w=n(28),O=n(23),k=n(16),C=n(17),x=n(39),P=n(1),S=n(4),T=null;function E(t){return T||(T=function(t){var e=t.get("controls"),r=A(),i=function(t,e){var n=t.get("playlist");if(Array.isArray(n)&&n.length)for(var r=Object(O.f)(t.get("item"),n.length),i=Object(O.c)(Object(w.a)(n[r]),t),o=0;o<i.length;o++)for(var u=i[o],a=t.getProviders(),c=0;c<k.a.length;c++){var s=k.a[c];if(a.providerSupports(s,u))return s.name===e}return!1}(t,"html5");if(S.OS.tizen)return _();if(e&&r&&i)return o=n.e(8).then(function(t){n(162);var e=n(71).default;return x.a.controls=n(69).default,Object(C.a)(n(166).default),e}.bind(null,n)).catch(Object(j.b)(P.s+105)),j.a.html5=o,o;var o;if(e&&i)return function(){var t=n.e(6).then(function(t){var e=n(71).default;return x.a.controls=n(69).default,Object(C.a)(n(166).default),e}.bind(null,n)).catch(Object(j.b)(P.s+104));return j.a.html5=t,t}();if(e&&r)return n.e(7).then(function(t){n(162);var e=n(71).default;return x.a.controls=n(69).default,e}.bind(null,n)).catch(Object(j.b)(P.s+103));if(e)return n.e(5).then(function(t){var e=n(71).default;return x.a.controls=n(69).default,e}.bind(null,n)).catch(Object(j.b)(P.s+102));return _()}(t)),T}function A(){var t=window.IntersectionObserverEntry;return!t||!("IntersectionObserver"in window)||!("intersectionRatio"in t.prototype)}function _(){return function(){if(A())return n.e(9).then(function(t){return n(162)}.bind(null,n)).catch(Object(j.b)(P.s+120));return Promise.resolve()}().then(j.d)}var F=n(25),I=n(3),M=n(59),L=n(24),N=n(13);function R(t){var e=t.get("playlist");return new Promise(function(n,r){if("string"!=typeof e){var i=t.get("feedData")||{};return D(t,e,i),n()}var o=new M.a;o.on(I.eb,function(e){var r=e.playlist;delete e.playlist,D(t,r,e),n()}),o.on(I.w,function(e){D(t,[],{}),r(Object(P.y)(e,P.t))}),o.load(e)})}function D(t,e,n){var r=t.attributes;r.playlist=Object(O.a)(e),r.feedData=n}function B(t){return t.attributes._destroyed}var q=n(37),z=function(t,e){return/isAMP/.test(document.location.search)?n.e(1).then(function(r){var i=new(0,n(177).default)(e);return t.attributes.ampController=i,Promise.resolve()}.bind(null,n)).catch(Object(j.b)(P.s+130)):Promise.resolve()};function V(t){return W(t)?Promise.resolve():R(t).then(function(){if(t.get("drm")||Object(q.b)(t.get("playlist")))return Object(q.d)(t.get("edition"))}).then(function(){return R(e=t).then(function(){if(!B(e)){var t=Object(O.b)(e.get("playlist"),e);e.attributes.playlist=t;try{Object(O.e)(t)}catch(t){throw t.code+=P.t,t}var n=e.getProviders(),r=Object(O.f)(e.get("item"),t.length),i=n.choose(t[r].sources[0]),o=i.provider,u=i.name;return"function"==typeof o?o:j.a.html5&&"html5"===u?j.a.html5:n.load(u).catch(function(t){throw Object(P.y)(t,P.u)})}});var e})}function H(t,e){var n=[Q(t),z(t,e)];return W(t)||n.push(Promise.resolve()),Promise.all(n)}function Q(t){var e=t.attributes,n=e.error;if(n&&n.code===s.a){var r=e.pid,i=e.ph,o=new s.b(e.key);if(i>0&&i<4&&r&&o.duration()>-7776e6)return new L.a("//content.jwplatform.com/libraries/"+r+".js").load().then(function(){var t=window.jwplayer.defaults.key,n=new s.b(t);n.error()||n.token()!==o.token()||(e.key=t,e.edition=n.edition(),e.error=n.error())}).catch(function(){})}return Promise.resolve()}function W(t){var e=t.get("advertising");return!(!e||!e.outstream)}var U=function(t){var e=t.get("skin")?t.get("skin").url:void 0;if("string"==typeof e&&!function(t){for(var e=document.styleSheets,n=0,r=e.length;n<r;n++)if(e[n].href===t)return!0;return!1}(e)){return new L.a(e,!0).load().catch(function(t){return t})}return Promise.resolve()},X=function(t){var e=t.attributes,n=e.language,r=e.base,i=e.setupConfig,o=e.intl,u=Object(N.c)(i,o,n);return!Object(N.h)(n)||Object(N.f)(u)?Promise.resolve():new Promise(function(i){return Object(N.i)(r,n).then(function(n){var r=n.response;if(!B(t)){if(!r)throw new P.q(null,P.h);e.localization=Object(N.a)(r,u),i()}}).catch(function(t){i(t.code===P.h?t:Object(P.y)(t,P.g))})})};var Y=function(t){var e;this.start=function(n){var r=Object(F.a)(t,n),i=Promise.all([E(t),r,V(t),H(t,n),U(t),X(t)]),o=new Promise(function(t,n){e=setTimeout(function(){n(new P.q(P.k,P.w))},6e4);var r=function(){clearTimeout(e),setTimeout(t,6e4)};i.then(r).catch(r)});return Promise.race([i,o]).catch(function(t){var e=function(){throw t};return r.then(e).catch(e)}).then(function(t){return function(t){if(!t||!t.length)return{core:null,warnings:[]};var e=t.reduce(function(t,e){return t.concat(e)},[]).filter(function(t){return t&&t.code});return{core:t[0],warnings:e}}(t)})},this.destroy=function(){clearTimeout(e),t.set("_destroyed",!0),t=null}},J=n(42),K=n(30),$=n(12),Z=n(15),G={removeItem:function(t){}};try{G=window.localStorage||G}catch(t){}var tt=function(){function t(t,e){this.namespace=t,this.items=e}var e=t.prototype;return e.getAllItems=function(){var t=this;return this.items.reduce(function(e,n){var r=G[t.namespace+"."+n];return r&&(e[n]="captions"!==n?Object($.serialize)(r):JSON.parse(r)),e},{})},e.track=function(t){var e=this;this.items.forEach(function(n){t.on("change:"+n,function(t,r){try{"captions"===n&&(r=JSON.stringify(r)),G[e.namespace+"."+n]=r}catch(t){Z.a.debug&&console.error(t)}})})},e.clear=function(){var t=this;this.items.forEach(function(e){G.removeItem(t.namespace+"."+e)})},t}(),et=n(54),nt=n(35),rt=n(9),it=n(43),ot=n(60),ut=n(61),at=n(34);n(68),n(70);n.d(e,"b",function(){return ft});var ct=function(t){this._events={},this.modelShim=new et.a,this.modelShim._qoeItem=new K.a,this.mediaShim={},this.setup=new Y(this.modelShim),this.currentContainer=this.originalContainer=t,this.apiQueue=new i.a(this,["load","play","pause","seek","stop","playlistItem","playlistNext","playlistPrev","next","preload","setConfig","setCurrentAudioTrack","setCurrentCaptions","setCurrentQuality","setFullscreen","addButton","removeButton","castToggle","setMute","setVolume","setPlaybackRate","addCues","setCues","setPlaylistItem","stopCasting","resize","setCaptions","setControls"],function(){return!0})};function st(t,e){e&&e.code&&(e.sourceError&&console.error(e.sourceError),console.error(P.q.logMessage(e.code)))}function lt(t){t&&t.code&&console.warn(P.q.logMessage(t.code))}function ft(t,e){if(!document.body.contains(t.currentContainer)){var n=document.getElementById(t.get("id"));n&&(t.currentContainer=n)}t.currentContainer.parentElement&&t.currentContainer.parentElement.replaceChild(e,t.currentContainer),t.currentContainer=e}Object(r.j)(ct.prototype,{on:rt.a.on,once:rt.a.once,off:rt.a.off,trigger:rt.a.trigger,init:function(t,e){var n=this,i=this.modelShim,o=new tt("jwplayer",["volume","mute","captionLabel","captions","bandwidthEstimate","bitrateSelection","qualityLabel","enableShortcuts"]),u=o&&o.getAllItems();i.attributes=i.attributes||{},Object(r.j)(this.mediaShim,nt.c);var a=t,c=y(Object(r.j)({},t),u);c.id=e.id,c.setupConfig=a,Object(r.j)(i.attributes,c,nt.d),i.getProviders=function(){return new J.a(c)},i.setProvider=function(){};var s=Object(ot.b)();i.get("backgroundLoading")||(s=Object(ut.a)(s.getPrimedElement(),s));var l=new at.a(Object(at.b)(this.originalContainer)).once("gesture",function(){s.prime(),n.preload(),l.destroy()});return i.on("change:errorEvent",st),this.setup.start(e).then(function(t){var u=t.core;if(!u)throw Object(P.y)(null,P.v);if(n.setup){n.on(I.vb,lt),t.warnings.forEach(function(t){n.trigger(I.vb,t)});var a=n.modelShim.clone();if(a.error)throw a.error;var c=n.apiQueue.queue.slice(0);n.apiQueue.destroy(),Object(r.j)(n,u.prototype),n.setup(a,e,n.originalContainer,n._events,c,s);var l=n._model;return i.off("change:errorEvent",st),l.on("change:errorEvent",st),o.track(l),n.updatePlaylist(l.get("playlist"),l.get("feedData")).catch(function(t){var e=t.code===P.a?P.r:P.t;throw Object(P.y)(t,e)})}}).then(function(){n.setup&&n.playerReady()}).catch(function(t){n.setup&&function(t,e,n){Promise.resolve().then(function(){var r=Object(P.z)(P.p,P.x,n),i=t._model||t.modelShim;r.message=r.message||i.get("localization").errors[r.key],delete r.key;var o=i.get("contextual");if(!o){var u=Object(it.a)(t,r);it.a.cloneIcon&&u.querySelector(".jw-icon").appendChild(it.a.cloneIcon("error")),ft(t,u)}i.set("errorEvent",r),i.set("state",I.lb),t.trigger(I.ib,r),o&&e.remove()})}(n,e,t)})},playerDestroy:function(){this.apiQueue&&this.apiQueue.destroy(),this.setup&&this.setup.destroy(),this.currentContainer!==this.originalContainer&&ft(this,this.originalContainer),this.off(),this._events=this._model=this.modelShim=this.apiQueue=this.setup=null},getContainer:function(){return this.currentContainer},get:function(t){if(this.modelShim)return t in this.mediaShim?this.mediaShim[t]:this.modelShim.get(t)},getItemQoe:function(){return this.modelShim._qoeItem},getItemPromise:function(){return null},setItemCallback:function(t){this.modelShim&&(this.modelShim.attributes.playlistItemCallback=t)},getConfig:function(){return Object(r.j)({},this.modelShim.attributes,this.mediaShim)},getCurrentCaptions:function(){return this.get("captionsIndex")},getWidth:function(){return this.get("containerWidth")},getHeight:function(){return this.get("containerHeight")},getMute:function(){return this.get("mute")},getProvider:function(){return this.get("provider")},getState:function(){return this.get("state")},getAudioTracks:function(){return null},getCaptionsList:function(){return null},getQualityLevels:function(){return null},getVisualQuality:function(){return null},getCurrentQuality:function(){return-1},getCurrentAudioTrack:function(){return-1},getSafeRegion:function(){return{x:0,y:0,width:0,height:0}},isBeforeComplete:function(){return!1},isBeforePlay:function(){return!1},createInstream:function(){return null},skipAd:function(){},attachMedia:function(){},detachMedia:function(){}});e.a=ct},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(4);function i(t){return"hls"===t.type&&r.OS.android?!1!==t.androidhls&&(!r.Browser.firefox&&parseFloat(r.OS.version.version)>=4.4):null}},function(t,e,n){"use strict";function r(){var t,e,n=window.location.host;if(window.top!==window.self){n=(document.referrer?(t=document.referrer,(e=document.createElement("a")).href=t,e):{}).host;try{n=n||window.top.location.host}catch(t){}}return n}n.d(e,"a",function(){return r})},function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 29.3" class="jw-svg-icon jw-svg-icon-watermark" focusable="false"><path d="M37,16.68c0,2.4-.59,3.43-2.4,3.43a5.75,5.75,0,0,1-3.38-1.23v3.58a7.39,7.39,0,0,0,3.67,1c3.67,0,5.73-1.91,5.73-6.32V5.86H37Z"></path><polygon points="58.33 17.61 55.39 6.01 52.55 6.01 49.52 17.61 46.73 6.01 43.06 6.01 47.56 23.29 50.89 23.29 53.92 11.88 56.96 23.29 60.24 23.29 64.74 6.01 61.17 6.01 58.33 17.61"></polygon><path d="M73.84,6H67.47V23.29h2.2v-6.9h4.17c3.47,0,5.77-1.77,5.77-5.19S77.31,6,73.84,6Zm0,8.47H69.72V8h4.12c2.3,0,3.57,1.22,3.62,3.28C77.46,13.21,76.19,14.48,73.84,14.48Z"></path><path d="M99.2,6l-6,15.27H85V6H82.8V23.29H94.7l2-5.19h7.09l2,5.19H108L101.26,6ZM97.39,16.14l2.84-7.39L103,16.14Z"></path><polygon points="113.98 14.18 108.99 6.01 106.59 6.01 112.81 16.14 112.81 23.29 115.01 23.29 115.01 16.14 121.33 6.01 118.98 6.01 113.98 14.18"></polygon><polygon points="123.14 23.29 134.1 23.29 134.1 21.28 125.29 21.28 125.29 15.41 133.32 15.41 133.32 13.45 125.29 13.45 125.29 7.97 134.1 7.97 134.1 6.01 123.14 6.01 123.14 23.29"></polygon><path d="M144.86,15.85c2.74-.39,4.41-2,4.41-4.85,0-3.23-2.26-5-5.73-5h-6.32V23.29h2.22V16h3.08l4.94,7.29H150Zm-5.42-1.71V8h4.06c2.3,0,3.62,1.17,3.62,3.08s-1.32,3.09-3.62,3.09Z"></path><path d="M27.63.09a1,1,0,0,0-1.32.48c-.24.51-6.35,15.3-6.35,15.3-.2.46-.33.41-.33-.07,0,0,0-5.15,0-9.39,0-2.31-1.12-3.61-2.73-3.88A3.12,3.12,0,0,0,14.83,3a4.57,4.57,0,0,0-1.5,1.79c-.48.94-3.47,9.66-3.47,9.66-.16.46-.31.44-.31,0,0,0-.09-3.76-.18-4.64-.13-1.36-.44-3.59-2.2-3.7S4.77,8,4.36,9.24c-.29.84-1.65,5.35-1.65,5.35l-.2.46h0c-.06.24-.17.24-.24,0l-.11-.42Q2,14,1.74,13.31a1.71,1.71,0,0,0-.33-.66.83.83,0,0,0-.88-.22.82.82,0,0,0-.53.69,4.22,4.22,0,0,0,.07.79,29,29,0,0,0,1,4.6,1.31,1.31,0,0,0,1.8.66,3.43,3.43,0,0,0,1.24-1.81c.33-.81,2-5.48,2-5.48.18-.46.31-.44.29,0,0,0-.09,4.57-.09,6.64a13.11,13.11,0,0,0,.28,2.93,2.41,2.41,0,0,0,.82,1.27,2,2,0,0,0,1.41.4,2,2,0,0,0,.7-.24,3.15,3.15,0,0,0,.79-.71,12.52,12.52,0,0,0,1.26-2.11c.81-1.6,2.92-6.58,2.92-6.58.2-.46.33-.41.33.07,0,0-.26,8.36-.26,11.55a6.39,6.39,0,0,0,.44,2.33,2.8,2.8,0,0,0,1.45,1.61A2.57,2.57,0,0,0,18.79,29a3.76,3.76,0,0,0,1.28-1.32,15.12,15.12,0,0,0,1.07-2.31c.64-1.65,1.17-3.33,1.7-5s5-17.65,5.28-19a1.79,1.79,0,0,0,0-.46A1,1,0,0,0,27.63.09Z"></path></svg>'},function(t,e,n){"use strict";var r,i=n(62),o=n(4),u=n(7),a=[],c=[],s=[],l={},f="screen"in window&&"orientation"in window.screen,d=o.OS.android&&o.Browser.chrome,p=!1;function h(t,e){for(var n=e.length;n--;){var r=e[n];if(t.target===r.getContainer()){r.setIntersection(t);break}}}function v(){a.forEach(function(t){var e=t.model;if(!(e.get("audioMode")||!e.get("controls")||e.get("visibility")<.75)){var n=e.get("state"),r=Object(u.f)();!r&&"paused"===n&&t.api.getFullscreen()?t.api.setFullscreen(!1):"playing"===n&&t.api.setFullscreen(r)}})}function g(){a.forEach(function(t){t.model.set("activeTab",Object(i.a)())})}function m(t,e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}function b(t){s.forEach(function(e){e(t)})}document.addEventListener("visibilitychange",g),document.addEventListener("webkitvisibilitychange",g),d&&f&&window.screen.orientation.addEventListener("change",v),window.addEventListener("beforeunload",function(){document.removeEventListener("visibilitychange",g),document.removeEventListener("webkitvisibilitychange",g),window.removeEventListener("scroll",b),d&&f&&window.screen.orientation.removeEventListener("change",v)}),e.a={add:function(t){a.push(t)},remove:function(t){m(t,a)},addScrollHandler:function(t){p||(p=!0,window.addEventListener("scroll",b)),s.push(t)},removeScrollHandler:function(t){var e=s.indexOf(t);-1!==e&&s.splice(e,1)},addWidget:function(t){c.push(t)},removeWidget:function(t){m(t,c)},size:function(){return a.length},observe:function(t){var e;e=window.IntersectionObserver,r||(r=new e(function(t){if(t&&t.length)for(var e=t.length;e--;){var n=t[e];h(n,a),h(n,c)}},{threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]})),l[t.id]||(l[t.id]=!0,r.observe(t))},unobserve:function(t){r&&l[t.id]&&(delete l[t.id],r.unobserve(t))}}},,function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n(0),i=n(49),o=n(7),u=n(11),a=[],c=-1;function s(){Object(i.a)(c),c=Object(i.b)(function(){a.forEach(function(t){t.view.updateBounds();var e=t.view.model.get("containerWidth");t.resized=t.width!==e,t.width=e}),a.forEach(function(t){t.contractElement.scrollLeft=2*t.width}),a.forEach(function(t){Object(u.d)(t.expandChild,{width:t.width+1}),t.resized&&t.view.model.get("visibility")&&t.view.updateStyles()}),a.forEach(function(t){t.expandElement.scrollLeft=t.width+1}),a.forEach(function(t){t.resized&&t.view.checkResized()})})}var l=function(){function t(t,e,n){var i={display:"block",position:"absolute",top:0,left:0},c={width:"100%",height:"100%"},l=Object(o.e)('<div style="opacity:0;visibility:hidden;overflow:hidden;"><div><div style="height:1px;"></div></div><div class="jw-contract-trigger"></div></div>'),f=l.firstChild,d=f.firstChild,p=f.nextSibling;Object(u.d)([f,p],Object(r.j)({overflow:"auto"},i,c)),Object(u.d)(l,Object(r.j)({},i,c)),this.expandElement=f,this.expandChild=d,this.contractElement=p,this.hiddenElement=l,this.element=t,this.view=e,this.model=n,this.width=0,this.resized=!1,t.firstChild?t.insertBefore(l,t.firstChild):t.appendChild(l),t.addEventListener("scroll",s,!0),a.push(this),s()}return t.prototype.destroy=function(){if(this.view){var t=a.indexOf(this);-1!==t&&a.splice(t,1),this.element.removeEventListener("scroll",s,!0),this.element.removeChild(this.hiddenElement),this.view=this.model=null}},t}()}]).default;
