<?php
/* 
* Theme: PREMIUMPRESS CORE FRAMEWORK FILE
* Url: www.premiumpress.com
* Author: Mark Fail
*
* THIS FILE WILL BE UPDATED WITH EVERY UPDATE
* IF YOU WANT TO MODIFY THIS FILE, CREATE A CHILD THEME
*
* http://codex.wordpress.org/Child_Themes
*/
if (!defined('THEME_VERSION')) {	header('HTTP/1.0 403 Forbidden'); exit; }

global $CORE, $userdata, $CORE_VIDEO, $CORE_UI;
  

   // ADMIN PREVIEW
    if(!isset($post->ID)){
		$post = new stdClass();
		$post->ID 			= 1;
		$post->post_title 	= "This is a sample title."; 
		$post->post_author 	= 1; 
		$post->post_excerpt = "";
		$post->post_content = "";
		$post->comment_count = 0;
		$post->thistheme = THEME_KEY;
	}
 
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
 

// GET ALL VIDEOS	
$videos = $CORE->MEDIA("get_all_videos", $post->ID);

if(is_array($videos) && !empty($videos) ){ 
	
         foreach($videos as $k => $img){		 
			 if($img['type'] == "image/jpg"){
			 	unset($videos[$k]);
			 }		 
		 }
		 // RESET KEYS
		 $videos = array_values(array_filter($videos));
}



		$cnd_video = get_post_meta($post->ID,"cdn_video",true);
		if(strlen($cnd_video) > 1){
		
			$cnd_video = array(
					"name" 		=> "",						 
					"thumbnail" => do_shortcode("[IMAGE pathonly=1]"),
					"src" 		=> $cnd_video,
					"id" 		=> "cdn",
					"type"		=> "video",
			);
			array_unshift($videos, $cnd_video);	
		}
  
		// ADD ON YOUTUBE
		$youtubeid = get_post_meta($post->ID,'youtube_id',true);
		if($youtubeid != ""){	
			$youtubevid = 1; 
			$youtube = array(
					"name" 		=> "",						 
					"thumbnail" => "https://i.ytimg.com/vi/".$youtubeid."/hqdefault.jpg",
					"src" => "https://www.youtube.com/watch?v=".$youtubeid,
					"id" 		=> "youtube",
					"type"		=> "video",
			);
			array_unshift($videos, $youtube);			
		}
		
		// ADD VIMEO
		$youtubeid = get_post_meta($post->ID,'vimeo_id',true);
		if($youtubeid != ""){	
			$youtubevid = 1; 
			$youtube = array(
					"name" 		=> "",						 
					"thumbnail" => CDN_PATH."images/nophoto.jpg",
					"src" 	=> "https://player.vimeo.com/video/".$youtubeid,
					"id" 		=> "vimeo",
					"type"		=> "video",
			);
			array_unshift($videos, $youtube);			
		}

 
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////

$time = 0; $vidp = 0;
if($CORE->USER("hasaccess_special_vdeoaccess", $post->ID) == "0" && _ppt(array('lst','videopreview_enable')) == "1"){
 
	$vidp = 1;
	if(is_numeric(_ppt(array('lst', 'videopreview_seconds')))){
		$vidp = _ppt(array('lst', 'videopreview_seconds'));
		$time = $vidp;
	} 

}
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////

// HAS ACCESS
$hasvidaccess = 1;

if($post->post_author == $userdata->ID){

  $hasvidaccess = 1;

}elseif($CORE->USER("hasaccess_special_vdeoaccess", $post->ID) == "0" && _ppt(array('lst','videopreview_enable')) != "1"){
  
  $hasvidaccess = 0;

}

if(_ppt(array('mem','enable')) == "1" && $CORE->USER("membership_hasaccess", "view_videos") ){
 $hasvidaccess = 1;
}elseif(_ppt(array('mem','enable')) == "1" ){
  $hasvidaccess = 0;
}
 
 
if(!$hasvidaccess){

$img = do_shortcode("[IMAGE pathonly=1]");

?>

 
<div class="position-relative" style="min-height:250px;">
<img src="<?php echo $img; ?>" class="img-fluid mb-4 rounded-lg shadow w-100" />

 <div class="videoplaybutton_wrap cursor" onclick="processUpgrade();" style="position: absolute;top: 40%;left: 40%;"> 
           <div class="videoplaybutton bg-primary"> 
           <i class="fa fa-play text-white"></i> 
           <span class="ripple_playbtn bg-primary"></span> 
           <span class="ripple_playbtn bg-primary"></span> 
           <span class="ripple_playbtn bg-primary"></span> 
           </div>
           </div>

</div>

<?php

}else{
?>
 
<link rel="stylesheet" type="text/css" href="https://ppt1077.b-cdn.net/player/content/global.css">
 
<script type="text/javascript">


function LoadVideoPlayer(){
 
 
        FWDEVPlayer.videoStartBehaviour = "pause";
         
        new FWDEVPlayer({ 
		      
            //main settings
            instanceName:"player1",
            parentId:"LoadVideoPlayer",
            mainFolderPath:"https://ppt1077.b-cdn.net/player/content/",
            initializeOnlyWhenVisible:"no",
			
            skinPath:"minimal_skin_dark",
			
            displayType:"responsive",
            fillEntireVideoScreen:"no",
            fillEntireposterScreen:"yes",
            playsinline:"yes",
            useWithoutVideoScreen:"no",
            autoScale:"yes",
            openDownloadLinkOnMobile:"no",
            useVectorIcons:"no",
            useResumeOnPlay:"no",
            goFullScreenOnButtonPlay:"no",
            useHEXColorsForSkin:"no",
            normalHEXButtonsColor:"#FF0000",
            privateVideoPassword:"428c841430ea18a70f7b06525d4b748a",
            startAtTime:"",
            stopAtTime:"",
            startAtVideoSource:2,
			
			
            videoSource:[
			 
				<?php foreach($videos as $vid){ ?>
                {source:"<?php echo $vid['src']; ?>", label:"small version"},
				<?php } ?>
				 
            ],
			
			
           posterPath:"<?php echo do_shortcode("[IMAGE pathonly=1]"); ?>",
			
            showErrorInfo:"yes",
            fillEntireScreenWithPoster:"yes",
            disableDoubleClickFullscreen:"no",
            addKeyboardSupport:"yes",
            useChromeless:"no",
            showPreloader:"yes",
            preloaderColors:["#999999", "#FFFFFF"],
            autoPlay:"no",
            autoPlayText:"Click to Unmute",
            loop:"no",
            scrubAtTimeAtFirstPlay:"00:00:00",
            maxWidth:1170,
            maxHeight:659,
            volume:.8,
            greenScreenTolerance:200,
            backgroundColor:"#000000",
            posterBackgroundColor:"#000000",
			
            //lightbox settings
            closeLightBoxWhenPlayComplete:"no",
            lightBoxBackgroundOpacity:.6,
            lightBoxBackgroundColor:"#000000",
			
            //logo settings
            showLogo:"no",
            hideLogoWithController:"yes",
            logoPosition:"topRight",
            logoLink:"",
            logoMargins:5,
			
            //controller settings
            showController:"yes",
            showDefaultControllerForVimeo:"no",
            showScrubberWhenControllerIsHidden:"yes",
            showControllerWhenVideoIsStopped:"yes",
            showVolumeScrubber:"yes",
            showVolumeButton:"yes",
            showTime:"no",
            showRewindButton:"yes",
            showQualityButton:"no",
            showShareButton:"no",
            showDownloadButton:"no",
            showMainScrubberToolTipLabel:"no",
            showChromecastButton:"no",
            showFullScreenButton:"yes",
            repeatBackground:"yes",
            controllerHeight:41,
            controllerHideDelay:3,
            startSpaceBetweenButtons:7,
            spaceBetweenButtons:9,
            mainScrubberOffestTop:14,
            scrubbersOffsetWidth:4,
            timeOffsetLeftWidth:5,
            timeOffsetRightWidth:3,
            volumeScrubberWidth:80,
            volumeScrubberOffsetRightWidth:0,
            timeColor:"#777777",
            youtubeQualityButtonNormalColor:"#777777",
            youtubeQualityButtonSelectedColor:"#FFFFFF",
            scrubbersToolTipLabelBackgroundColor:"#FFFFFF",
            scrubbersToolTipLabelFontColor:"#5a5a5a",
            //redirect at video end
            redirectURL:"",
            redirectTarget:"_blank",
            //cuepoints
            executeCuepointsOnlyOnce:"no",
            cuepoints:[],
            //annotations
            annotiationsListId:"none",
            showAnnotationsPositionTool:"no",
            //subtitles
            showSubtitleButton:"no",
            subtitlesOffLabel:"Subtitle off",
            startAtSubtitle:1,
            subtitlesSource:[],
            //audio visualizer
            audioVisualizerLinesColor:"#0099FF",
            audioVisualizerCircleColor:"#FFFFFF",
            //advertisement on pause window
            aopwTitle:"Advertisement",
            aopwSource:"",
            aopwWidth:400,
            aopwHeight:240,
            aopwBorderSize:6,
            aopwTitleColor:"#FFFFFF",
            //playback rate / speed
            showPlaybackRateButton:"yes",
            defaultPlaybackRate:"1", //0.25, 0.5, 1, 1.25, 1.5, 2
            //sticky on scroll
            stickyOnScroll:"no",
            stickyOnScrollShowOpener:"yes",
            stickyOnScrollWidth:"700",
            stickyOnScrollHeight:"394",
            //sticky display settings
            showOpener:"no",
            showOpenerPlayPauseButton:"yes",
            verticalPosition:"bottom",
            horizontalPosition:"center",
            showPlayerByDefault:"yes",
            animatePlayer:"yes",
            openerAlignment:"right",
            mainBackgroundImagePath:"<?php echo get_template_directory_uri(); ?>/_video/player/content/minimal_skin_dark/main-background.png",
            openerEqulizerOffsetTop:-1,
            openerEqulizerOffsetLeft:3,
            offsetX:0,
            offsetY:0,
            //embed window
			showEmbedButton:"no",
			showEmbedWindow: "no",
            embedWindowCloseButtonMargins:15,
            borderColor:"#333333",
            mainLabelsColor:"#FFFFFF",
            secondaryLabelsColor:"#a1a1a1",
            shareAndEmbedTextColor:"#5a5a5a",
            inputBackgroundColor:"#000000",
            inputColor:"#FFFFFF",
            //ads
            openNewPageAtTheEndOfTheAds:"no",
            adsSource:[],
            adsButtonsPosition:"right",
            skipToVideoText:"You can skip to video in: ",
            skipToVideoButtonText:"Skip Ad",
            timeToHoldAds:4,
            adsTextNormalColor:"#999999",
            adsTextSelectedColor:"#FFFFFF",
            adsBorderNormalColor:"#666666",
            adsBorderSelectedColor:"#FFFFFF",
            //a to b loop
            useAToB:"no",
            atbTimeBackgroundColor:"transparent",
            atbTimeTextColorNormal:"#888888",
            atbTimeTextColorSelected:"#FFFFFF",
            atbButtonTextNormalColor:"#888888",
            atbButtonTextSelectedColor:"#FFFFFF",
            atbButtonBackgroundNormalColor:"#FFFFFF",
            atbButtonBackgroundSelectedColor:"#000000",
            //thumbnails preview
            thumbnailsPreview:"",
            thumbnailsPreviewWidth:196,
            thumbnailsPreviewHeight:110,
            thumbnailsPreviewBackgroundColor:"#000000",
            thumbnailsPreviewBorderColor:"#666",
            thumbnailsPreviewLabelBackgroundColor:"#666",
            thumbnailsPreviewLabelFontColor:"#FFF",
            // context menu
            contextMenuType:'default',
            showScriptDeveloper:"yes",
            contextMenuBackgroundColor:"#1f1f1f",
            contextMenuBorderColor:"#1f1f1f",
            contextMenuSpacerColor:"#333",
            contextMenuItemNormalColor:"#888888",
            contextMenuItemSelectedColor:"#FFFFFF",
            contextMenuItemDisabledColor:"#444"
        });     
 
  // FWDEVPUtils.onReady(function(){ });

}

</script>
<div class="position-relative" id="videoplayer">
<div id="videoplayerwrapp"></div>
<div id="LoadVideoPlayer" class="mb-4 shadow"></div>
</div>


<?php

///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
 
if($time > 0){ 
?>
    <div class="container p-3 mb-4" ppt-border1 id="freepreviewbar">
      <div class="row">
        <div class="col-12"> 
        <div class="d-md-flex justify-content-between">
        <strong><?php echo __("Free Preview","premiumpress"); ?></strong>
        
        <div class="opacity-5"><?php echo str_replace("%s",$vidp, __("Watch the first %s seconds for free!","premiumpress")); ?></div>
        </div>
        </div>
        <div class="col-12">
          <div class="progress mt-2" style=" height:40px;">
            <div class="progress-bar progress-bar-striped videotimeoutbar" style="min-width: 20px;"></div>
          </div>
        </div>
      </div>
    </div>
    
    <div class="container border px-md-5  mb-4" ppt-border1 id="upgrademessage" style="display:none;">
      <div class="row align-items-center my-md-5 py-5 ">
        <div class="col-10 mx-auto text-center my-lg-3">
          <h3 class="text-700"><?php echo __("Video Preview Ended!","premiumpress") ?></h3>
          <p><?php echo wpautop(stripslashes(_ppt(array('lst', 'videopreview_message')))); ?></p>
          <a href="javascript:void(0)"  <?php if(!$userdata->ID){ ?> onclick="processLogin();" <?php }else{ ?>onclick="processUpgrade();"<?php } ?> data-ppt-btn class="btn-primary btn-lg mt-4"><?php echo __("Upgrade Now","premiumpress") ?></a> </div>
     
      </div>
    </div>
  
<?php

}

///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////
 

?>
<script>


 var i = 0;
function makeProgress(){ 
	      
	   if(i < 100){
		   i = i + 1;		  
		   jQuery(".videotimeoutbar").css("width", i + "%").text(i + " %");
	   } 
   
   		setTimeout("makeProgress()", <?php echo $vidp*10; ?>); 
	}
	
   function processVideoOpen1(){	 
   
					 var i = 0;
								 
						makeProgress();
						 jQuery('#upgrademessage').hide();
						jQuery('#freepreviewbar').show();
					
						 
						 setTimeout(function(){  
						 
							jQuery('#videoplayer').html('');
							jQuery('#upgrademessage').show();
							jQuery('#freepreviewbar').hide();
						 
							}, <?php echo $time*1000; ?>);
    
   } 
    
	function addWrapper(){
	
	jQuery('#videoplayerwrapp').html('<div style="height:100%; width:100%; position:absolute; top:0;z-index:10000;" id="videoclickwrap" onclick="removeWrapper();"></div>');
	 
	}
	
	function removeWrapper(){
	
	jQuery('#videoclickwrap').hide();
	 processVideoOpen1();
	}

<?php if($time > 0){ ?>
jQuery(document).ready(function(){ 
	setTimeout(function(){  
	 addWrapper();	 
	 }, 1000);
});  
<?php } ?>

(function(e){var t=function(e,o,s,n,r,a,d,l,_,u,c,p,b){'use strict';var h=this,m=t.prototype;h.icon_img=o,h.useHEX=c,h.nBC=p,h.sBC=b,h.borderNColor_str=a,h.borderSColor_str=d,h.adsBackgroundPath_str=l,h.position_str=r,h.textNormalColor_str=_,h.textSelectedColor_str=u,h.text_str=n,h.iconOverPath_str=s,h.totalWidth=215,h.totalHeight=64,h.fontSize=12,h.isMobile_bl=FWDEVPUtils.isMobile,h.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,h.init=function(){h.setOverflow("visible"),h.setupMainContainers(),h.hide(!1,!0)},h.setupMainContainers=function(){h.main_do=new FWDEVPDO("div"),h.main_do.hasT3D=!1,h.main_do.hasT2D=!1,h.main_do.setBackfaceVisibility(),h.bk_do=new FWDEVPDO("div"),h.bk_do.style().background="url('"+h.adsBackgroundPath_str+"')",h.text_do=new FWDEVPDO("div"),h.text_do.hasT3D=!1,h.text_do.hasT2D=!1,h.text_do.screen.className="fwdevp-skip",h.text_do.setBackfaceVisibility(),h.text_do.setOverflow("visible"),h.text_do.style().display="inline",h.text_do.style().fontFamily="Arial",h.text_do.style().fontSize="22px",h.text_do.style().whiteSpace="nowrap",h.text_do.style().color=h.textNormalColor_str,h.text_do.style().fontSmoothing="antialiased",h.text_do.style().webkitFontSmoothing="antialiased",h.text_do.style().textRendering="optimizeLegibility",h.thumbHolder_do=new FWDEVPDO("div"),h.thumbHolder_do.setWidth(h.totalHeight-8),h.thumbHolder_do.setHeight(h.totalHeight-8),h.thumbHolder_do.setX(h.totalWidth-h.thumbHolder_do.w-4),h.thumbHolder_do.setY(4),h.border_do=new FWDEVPDO("div"),h.border_do.style().border="1px solid "+h.borderNColor_str+"",h.border_do.setButtonMode(!0),h.main_do.setWidth(h.totalWidth),h.main_do.setHeight(h.totalHeight),h.bk_do.setWidth(h.totalWidth),h.bk_do.setHeight(h.totalHeight),"left"==h.position_str?(h.border_do.setX(-1),h.border_do.setWidth(h.totalWidth-1),h.border_do.setHeight(h.totalHeight-2)):(h.border_do.setWidth(h.totalWidth),h.border_do.setHeight(h.totalHeight-2)),h.setWidth(h.totalWidth),h.setHeight(h.totalHeight),h.useHEX?(h.icon_do=new FWDEVPDO("div"),h.icon_do.setWidth(h.icon_img.width),h.icon_do.setHeight(h.icon_img.height),h.icon_do_canvas=FWDEVPUtils.getCanvasWithModifiedColor(h.icon_img,h.nBC).canvas,h.icon_do.screen.appendChild(h.icon_do_canvas)):(h.icon_do=new FWDEVPDO("img"),h.icon_do.setScreen(h.icon_img),h.icon_do.setWidth(h.icon_img.width),h.icon_do.setHeight(h.icon_img.height)),h.iconS_img=new Image,h.iconS_img.src=h.iconOverPath_str,h.useHEX?(h.iconS_do=new FWDEVPDO("div"),h.iconS_do.setWidth(h.icon_do.w),h.iconS_do.setHeight(h.icon_do.h),h.iconS_img.onload=function(){h.iconS_do_canvas=FWDEVPUtils.getCanvasWithModifiedColor(h.iconS_img,h.sBC).canvas,h.iconS_do.screen.appendChild(h.iconS_do_canvas)}):(h.iconS_do=new FWDEVPDO("img"),h.iconS_do.setScreen(h.iconS_img),h.iconS_do.setWidth(h.icon_do.w),h.iconS_do.setHeight(h.icon_do.h)),h.iconS_do.setAlpha(0),h.main_do.addChild(h.bk_do),h.main_do.addChild(h.text_do),h.main_do.addChild(h.thumbHolder_do),h.main_do.addChild(h.icon_do),h.main_do.addChild(h.iconS_do),h.main_do.addChild(h.border_do),FWDEVPUtils.isIEAndLessThen9&&(h.dumy_do=new FWDEVPDO("div"),h.dumy_do.setBkColor("#00FF00"),h.dumy_do.setAlpha(1e-4),h.dumy_do.setWidth(h.totalWidth),h.dumy_do.setHeight(h.totalHeight),h.dumy_do.setButtonMode(!0),h.main_do.addChild(h.dumy_do)),h.addChild(h.main_do),h.updateText(h.text_str),h.hasPointerEvent_bl?(h.screen.addEventListener("pointerup",h.onMUP),h.screen.addEventListener("pointerover",h.onMOV),h.screen.addEventListener("pointerout",h.onMOU)):h.screen.addEventListener&&(!h.isMobile_bl&&(h.screen.addEventListener("mouseover",h.onMOV),h.screen.addEventListener("mouseout",h.onMOU),h.screen.addEventListener("mouseup",h.onMUP)),h.screen.addEventListener("touchend",h.onMUP))},h.onMOV=function(t){t.pointerType&&t.pointerType!=t.MSPOINTER_TYPE_MOUSE&&"mouse"!=t.pointerType||h.setSelectedState()},h.onMOU=function(t){t.pointerType&&t.pointerType!=t.MSPOINTER_TYPE_MOUSE&&"mouse"!=t.pointerType||h.setNormalState()},h.onMUP=function(o){o.preventDefault&&o.preventDefault();2!=o.button&&h.isShowed_bl&&h.dispatchEvent(t.MOUSE_UP)},h.updateText=function(e){var t;h.text_do.setInnerHTML(e),setTimeout(function(){t=h.text_do.getWidth()+8+h.iconS_do.w,h.text_do.setX(parseInt(h.totalWidth-t)/2),h.text_do.setY(parseInt((h.totalHeight-h.text_do.getHeight())/2)+2),h.icon_do.setX(h.text_do.x+t-h.iconS_do.w),h.icon_do.setY(parseInt((h.totalHeight-h.iconS_do.h)/2)+2),h.iconS_do.setX(h.text_do.x+t-h.iconS_do.w),h.iconS_do.setY(parseInt((h.totalHeight-h.iconS_do.h)/2)+2)},50)},h.prvW,h.resize=function(){if(h.isShowed_bl){var t=h.totalWidth,o;h.prvW=e.sW,600>e.sW&&(o=!0),o?(h.totalWidth=64,t=64):(h.totalWidth=215,t=215),h.isShWithDl||"right"!=h.position_str||h.main_do.setX(-h.totalWidth),o?(h.text_do.setVisible(!1),h.icon_do.setX(Math.round((t-h.iconS_do.w)/2)-1),h.icon_do.setY(Math.round((h.totalHeight-h.iconS_do.h)/2))):(h.text_do.setVisible(!0),h.icon_do.setX(h.text_do.x+h.text_do.getWidth()+8+h.iconS_do.w-h.iconS_do.w),h.icon_do.setY(parseInt((h.totalHeight-h.iconS_do.h)/2)+2)),h.iconS_do.setX(h.icon_do.x),h.iconS_do.setY(h.icon_do.y),h.setWidth(t),h.main_do.setWidth(t),h.bk_do.setWidth(t),h.border_do.setWidth(t-1)}},h.setNormalState=function(){FWDAnimation.to(h.iconS_do,.5,{alpha:0,ease:Expo.easeOut}),FWDAnimation.to(h.text_do.screen,.5,{css:{color:h.textNormalColor_str},ease:Expo.easeOut}),FWDAnimation.to(h.border_do.screen,.5,{css:{borderColor:h.borderNColor_str},ease:Expo.easeOut})},h.setSelectedState=function(){FWDAnimation.to(h.iconS_do,.5,{alpha:1,ease:Expo.easeOut}),FWDAnimation.to(h.text_do.screen,.5,{css:{color:h.textSelectedColor_str},ease:Expo.easeOut}),FWDAnimation.to(h.border_do.screen,.5,{css:{borderColor:h.borderSColor_str},ease:Expo.easeOut})},h.show=function(e){h.isShowed_bl||(h.isShowed_bl=!0,h.isShWithDl=!0,h.resize(),setTimeout(function(){h.isShWithDl=!1},500),h.setVisible(!0),FWDAnimation.killTweensOf(h.main_do),e&&!h.isMobile_bl?"left"==h.position_str?FWDAnimation.to(h.main_do,.8,{x:0,delay:.8,ease:Expo.easeInOut}):FWDAnimation.to(h.main_do,.8,{x:-h.totalWidth+1,delay:.8,ease:Expo.easeInOut}):"left"==h.position_str?h.main_do.setX(0):h.main_do.setX(-h.totalWidth))},h.hide=function(e,t){(h.isShowed_bl||t)&&(h.isShowed_bl=!1,h.isShWithDl=!0,h.hasThumbanil_bl=!1,FWDAnimation.killTweensOf(h.main_do),e&&!h.isMobile_bl?"left"==h.position_str?FWDAnimation.to(h.main_do,.8,{x:-h.totalWidth,ease:Expo.easeInOut,onComplete:h.hideCompleteHandler}):FWDAnimation.to(h.main_do,.8,{x:0,ease:Expo.easeInOut,onComplete:h.hideCompleteHandler}):("left"==h.position_str?h.main_do.setX(-h.totalWidth):h.main_do.setX(0),h.hideCompleteHandler()))},h.hideCompleteHandler=function(){h.smallImage_img&&(h.smallImage_img.onload=null,h.smallImage_img.src="",FWDAnimation.killTweensOf(h.icon_do)),1!=h.main_do.alpha&&h.main_do.setAlpha(1),h.thumbHolder_do.setVisible(!1),h.setVisible(!1)},h.hideWithOpacity=function(){FWDEVPUtils.isIEAndLessThen9||FWDAnimation.to(h.main_do,.8,{alpha:.5})},h.showWithOpacity=function(){FWDEVPUtils.isIEAndLessThen9||FWDAnimation.to(h.main_do,.8,{alpha:1})},h.updateHEXColors=function(e,t){FWDEVPUtils.changeCanvasHEXColor(h.icon_img,h.icon_do_canvas,e),FWDEVPUtils.changeCanvasHEXColor(h.iconS_img,h.iconS_do_canvas,t),h.text_do.style().color=e,h.borderNColor_str=e,h.borderSColor_str=t,h.border_do.style().border="1px solid "+h.borderNColor_str+""},h.init()};t.setPrototype=function(){t.prototype=null,t.prototype=new FWDEVPDO("div")},t.CLICK="onClick",t.MOUSE_OVER="onMOV",t.SHOW_TOOLTIP="showTooltip",t.MOUSE_OUT="onMOU",t.MOUSE_UP="onMouseDown",t.prototype=null,e.FWDEVPAdsButton=t})(window),function(e){var t=function(e,o,s,n,r){'use strict';var a=this,d=t.prototype;a.borderNColor_str=o,a.borderSColor_str=s,a.adsBackgroundPath_str=n,a.position_str=e,a.timeColor_str=r,a.totalWidth=215,a.totalHeight=64,a.fontSize=12,a.isMobile_bl=FWDEVPUtils.isMobile,a.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,a.init=function(){a.setOverflow("visible"),a.setupMainContainers(),a.hide(!1,!0)},a.setupMainContainers=function(){a.main_do=new FWDEVPDO("div"),a.main_do.hasT3D=!1,a.main_do.hasT2D=!1,a.main_do.setBackfaceVisibility(),a.bk_do=new FWDEVPDO("div"),a.bk_do.style().background="url('"+a.adsBackgroundPath_str+"')",a.text_do=new FWDEVPDO("div"),a.text_do.hasT3D=!1,a.text_do.hasT2D=!1,a.text_do.screen.className="fwdevp-ads",a.text_do.setBackfaceVisibility(),a.text_do.style().fontFamily="Arial",a.text_do.style().fontSize="12px",a.text_do.style().lineHeight="18px",a.text_do.style().textAlign="center",a.text_do.style().color=a.timeColor_str,a.text_do.setInnerHTML("..."),a.thumbHolder_do=new FWDEVPDO("div"),a.thumbHolder_do.setWidth(a.totalHeight-8),a.thumbHolder_do.setHeight(a.totalHeight-8),a.thumbHolder_do.setX(a.totalWidth-a.thumbHolder_do.w-4),a.thumbHolder_do.setY(4),a.border_do=new FWDEVPDO("div"),a.border_do.style().border="1px solid "+a.borderNColor_str+"",a.main_do.setWidth(a.totalWidth),a.main_do.setHeight(a.totalHeight),a.bk_do.setWidth(a.totalWidth),a.bk_do.setHeight(a.totalHeight),"left"==a.position_str?(a.border_do.setX(-1),a.border_do.setWidth(a.totalWidth-1),a.border_do.setHeight(a.totalHeight-2)):(a.border_do.setWidth(a.totalWidth),a.border_do.setHeight(a.totalHeight-2)),a.setWidth(a.totalWidth),a.setHeight(a.totalHeight),a.main_do.addChild(a.bk_do),a.main_do.addChild(a.text_do),a.main_do.addChild(a.thumbHolder_do),a.main_do.addChild(a.border_do),a.addChild(a.main_do)},a.loadThumbnail=function(e){a.hasThumbanil_bl=!0,a.thumbnail_do||(a.thumbnail_do=new FWDEVPDO("img"),a.smallImage_img=new Image),a.thumbHolder_do.setVisible(!0),a.smallImage_img.onload=a.onSmallImageLoad,a.smallImage_img.src=e},a.onSmallImageLoad=function(){a.smallImageOriginalW=a.smallImage_img.width,a.smallImageOriginalH=a.smallImage_img.height,a.thumbnail_do.setScreen(a.smallImage_img),a.thumbHolder_do.addChild(a.thumbnail_do);var e=a.thumbHolder_do.w/a.smallImageOriginalW,t=a.thumbHolder_do.h/a.smallImageOriginalH,o=0;e>=t?o=e:e<=t&&(o=t),a.thumbnail_do.setWidth(Math.round(a.smallImageOriginalW*o)),a.thumbnail_do.setHeight(Math.round(a.smallImageOriginalH*o)),a.thumbnail_do.setX(Math.round((a.thumbHolder_do.w-a.thumbnail_do.w)/2)),a.thumbnail_do.setY(Math.round((a.thumbHolder_do.h-a.thumbnail_do.h)/2)),a.thumbnail_do.setAlpha(0),FWDAnimation.to(a.thumbnail_do,.8,{alpha:1})},a.updateText=function(e){a.text_do.setInnerHTML(e),a.hasThumbanil_bl?(a.text_do.setX(16),a.text_do.setWidth(a.totalWidth-a.totalHeight-26)):(a.text_do.setX(8),a.text_do.setWidth(a.totalWidth-16)),a.text_do.setY(parseInt((a.totalHeight-a.text_do.getHeight())/2))},a.show=function(e){a.isShowed_bl||(a.isShowed_bl=!0,a.setVisible(!0),FWDAnimation.killTweensOf(a.main_do),e&&!a.isMobile_bl?"left"==a.position_str?FWDAnimation.to(a.main_do,.8,{x:0,delay:.2,ease:Expo.easeInOut}):FWDAnimation.to(a.main_do,.8,{x:-a.totalWidth+1,delay:.2,ease:Expo.easeInOut}):"left"==a.position_str?a.main_do.setX(0):a.main_do.setX(-a.totalWidth))},a.hide=function(e,t){(a.isShowed_bl||t)&&(a.isShowed_bl=!1,a.hasThumbanil_bl=!1,FWDAnimation.killTweensOf(a.main_do),e&&!a.isMobile_bl?"left"==a.position_str?FWDAnimation.to(a.main_do,.8,{x:-a.totalWidth,ease:Expo.easeInOut,onComplete:a.hideCompleteHandler}):FWDAnimation.to(a.main_do,.8,{x:0,ease:Expo.easeInOut,onComplete:a.hideCompleteHandler}):("left"==a.position_str?a.main_do.setX(-a.totalWidth):a.main_do.setX(0),a.hideCompleteHandler()))},a.hideCompleteHandler=function(){a.smallImage_img&&(a.smallImage_img.onload=null,a.smallImage_img.src="",FWDAnimation.killTweensOf(a.thumbnail_do)),1!=a.main_do.alpha&&a.main_do.setAlpha(1),a.thumbHolder_do.setVisible(!1),a.setVisible(!1)},a.hideWithOpacity=function(){FWDEVPUtils.isIEAndLessThen9||FWDAnimation.to(a.main_do,.8,{alpha:.5})},a.showWithOpacity=function(){FWDEVPUtils.isIEAndLessThen9||FWDAnimation.to(a.main_do,.8,{alpha:1})},a.init()};t.setPrototype=function(){t.prototype=null,t.prototype=new FWDEVPDO("div")},t.CLICK="onClick",t.MOUSE_OVER="onMouseOver",t.SHOW_TOOLTIP="showTooltip",t.MOUSE_OUT="onMouseOut",t.MOUSE_UP="onMouseDown",t.prototype=null,e.FWDEVPAdsStart=t}(window),function(window){var FWDEVPAnnotation=function(props_obj){'use strict';var _s=this,prototype=FWDEVPAnnotation.prototype;_s.id=props_obj.id,_s.startTime=props_obj.start,_s.endTime=props_obj.end,_s.htmlContent_str=props_obj.content,_s.left=props_obj.left,_s.top=props_obj.top,_s.showCloseButton_bl=props_obj.showCloseButton_bl,_s.clickSource=props_obj.clickSource,_s.clickSourceTarget=props_obj.clickSourceTarget,_s.closeButtonNpath=props_obj.closeButtonNpath,_s.closeButtonSPath=props_obj.closeButtonSPath,_s.normalStateClass=props_obj.normalStateClass,_s.selectedStateClass=props_obj.selectedStateClass,_s.showAnnotationsPositionTool_bl=props_obj.showAnnotationsPositionTool_bl,_s.prt=props_obj.prt,_s.curX=_s.left,_s.curY=_s.top,_s.handPath_str=props_obj.handPath_str,_s.grabPath_str=props_obj.grabPath_str,_s.init=function(){_s.setOverflow("visible"),_s.setAlpha(0),_s.setVisible(!1),FWDEVPUtils.hasTransform2d&&(_s.style().transformOrigin="0% 0%"),_s.screen.innerHTML=_s.htmlContent_str,_s.screen.className=_s.normalStateClass,_s.setBackfaceVisibility(),_s.style().fontSmoothing="antialiased",_s.style().webkitFontSmoothing="antialiased",_s.style().textRendering="optimizeLegibility",_s.dummy_do=new FWDEVPDO("div"),_s.dummy_do.style().width="100%",_s.dummy_do.style().height="100%",_s.addChild(_s.dummy_do),setTimeout(function(){_s.w=_s.getWidth(),_s.h=_s.getHeight()},100),_s.showCloseButton_bl&&!_s.showAnnotationsPositionTool_bl&&(FWDEVPSimpleSizeButton.setPrototype(),_s.closeButton_do=new FWDEVPSimpleSizeButton(_s.closeButtonNpath,_s.closeButtonSPath,21,21),_s.closeButton_do.setScale2(0),_s.closeButton_do.addListener(FWDEVPSimpleSizeButton.CLICK,_s.closeClickButtonCloseHandler),_s.closeButton_do.style().position="absolute",_s.addChild(_s.closeButton_do)),_s.showAnnotationsPositionTool_bl&&(_s.info_do=new FWDEVPDO("div"),_s.info_do.style().backgroundColor="#FFFFFF",_s.info_do.style().boxShadow="2px 2px 2px #888888;",_s.info_do.style().fontSmoothing="antialiased",_s.info_do.style().webkitFontSmoothing="antialiased",_s.info_do.style().textRendering="optimizeLegibility",_s.addChild(_s.info_do),setTimeout(function(){_s.info_do.screen.innerHTML="<div style='padding:4px; maring:4px; color:#000000'> _d-left="+Math.round(_s.curX*_s.prt.scaleInverse)+"</div><div style='padding:4px; margin:4px; color:#000000;'> _d-top="+Math.round(_s.curY*_s.prt.scaleInverse)+"</div>",_s.setX(Math.round(_s.curX*_s.prt.scale)),_s.setY(Math.round(_s.curY*_s.prt.scale))},100),_s.isMobile_bl?_s.hasPointerEvent_bl?_s.screen.addEventListener("pointerdown",_s.onMD):_s.screen.addEventListener("touchdown",_s.onMD):window.addEventListener&&_s.screen.addEventListener("mousedown",_s.onMD),_s.style().cursor="url("+_s.handPath_str+"), default"),_s.clickSource&&!_s.showAnnotationsPositionTool_bl&&(_s.dummy_do.setButtonMode(!0),_s.dummy_do.screen.addEventListener("click",_s.onCLK),_s.dummy_do.screen.addEventListener("mouseover",_s.onMOV),_s.dummy_do.screen.addEventListener("mouseout",_s.onMOU))},_s.onMD=function(t){t.preventDefault&&t.preventDefault(),_s.style().cursor="url("+_s.grabPath_str+"), default",_s.prt.addChild(_s);var e=FWDEVPUtils.getViewportMouseCoordinates(t);_s.startX=e.screenX-_s.prt.getGlobalX(),_s.startY=e.screenY-_s.prt.getGlobalY(),_s.curX=_s.x,_s.curY=_s.y,_s.isMobile_bl?_s.hasPointerEvent_bl?(window.addEventListener("pointermove",_s.onMMV),window.addEventListener("pointerup",_s.onMUP)):(window.addEventListener("touchmove",_s.onMMV),window.addEventListener("touchend",_s.onMUP)):window.addEventListener&&(window.addEventListener("mousemove",_s.onMMV),window.addEventListener("mouseup",_s.onMUP))},_s.onMMV=function(t){t.preventDefault&&t.preventDefault();var e=FWDEVPUtils.getViewportMouseCoordinates(t);_s.localX=e.screenX-_s.prt.getGlobalX(),_s.localY=e.screenY-_s.prt.getGlobalY(),_s.curX=_s.x,_s.curY=_s.y,_s.curX+=_s.localX-_s.startX,_s.curY+=_s.localY-_s.startY,_s.setX(_s.curX),_s.setY(_s.curY),_s.startX=e.screenX-_s.prt.getGlobalX(),_s.startY=e.screenY-_s.prt.getGlobalY(),_s.info_do.screen.innerHTML="<div style='padding:4px; maring:4px; color:#000000'> _d-left="+Math.round(_s.curX*_s.prt.scaleInverse)+"</div><div style='padding:4px; margin:4px; color:#000000;'> _d-top="+Math.round(_s.curY*_s.prt.scaleInverse)+"</div>"},_s.onMUP=function(){_s.style().cursor="url("+_s.handPath_str+"), default",_s.isMobile_bl?_s.hasPointerEvent_bl?(window.removeEventListener("pointermove",_s.onMMV),window.removeEventListener("pointerup",_s.onMUP)):(window.removeEventListener("touchmove",_s.onMMV),window.removeEventListener("touchend",_s.onMUP)):window.removeEventListener&&(window.removeEventListener("mousemove",_s.onMMV),window.removeEventListener("mouseup",_s.onMUP))},_s.onMOV=function(){_s.setSelectedAtate()},_s.onMOU=function(){_s.setNormalState()},_s.onCLK=function(){-1==_s.clickSource.indexOf("http")?eval(_s.clickSource):window.open(_s.clickSource,_s.target)},_s.closeClickButtonCloseHandler=function(){_s.hide(),_s.isClosed_bl=!0},_s.show=function(){_s.isShowed_bl||_s.isClosed_bl||(_s.isShowed_bl=!0,_s.setVisible(!0),FWDAnimation.killTweensOf(_s),FWDAnimation.to(_s,.8,{alpha:1,ease:Quint.easeOut}),_s.closeButton_do&&FWDAnimation.to(_s.closeButton_do,.8,{scale:1,delay:.2,ease:Elastic.easeOut}))},_s.hide=function(){_s.isShowed_bl&&(FWDAnimation.killTweensOf(_s),_s.isShowed_bl=!1,_s.setVisible(!1),_s.setAlpha(0),_s.closeButton_do&&(FWDAnimation.killTweensOf(_s.closeButton_do),_s.closeButton_do.setScale2(0)))},_s.setNormalState=function(){_s.selectedStateClass&&FWDAnimation.to(_s.screen,.8,{className:_s.normalStateClass,ease:Quint.easeOut})},_s.setSelectedAtate=function(){_s.selectedStateClass&&FWDAnimation.to(_s.screen,.8,{className:_s.selectedStateClass,ease:Quint.easeOut})},_s.init()};FWDEVPAnnotation.setPrototype=function(){FWDEVPAnnotation.prototype=null,FWDEVPAnnotation.prototype=new FWDEVPDO("div",0,0,1)},FWDEVPAnnotation.prototype=null,window.FWDEVPAnnotation=FWDEVPAnnotation}(window),function(e){var t=function(e,o){'use strict';var s=this,n=t.prototype;s.source_ar=o.annotations_ar,s.ann_ar=[],s.totalAnnotations=s.source_ar.length,s.showAnnotationsPositionTool_bl=o.showAnnotationsPositionTool_bl,s.init=function(){s.setOverflow("visible"),s.setupAnnotations()},s.setupAnnotations=function(){for(var e=0;e<s.totalAnnotations;e++){FWDEVPAnnotation.setPrototype();var t=new FWDEVPAnnotation({id:e,start:s.source_ar[e].start,end:s.source_ar[e].end,left:s.source_ar[e].left,top:s.source_ar[e].top,clickSource:s.source_ar[e].clickSource,clickSourceTarget:s.source_ar[e].clickSourceTarget,content:s.source_ar[e].content,showCloseButton_bl:s.source_ar[e].showCloseButton_bl,closeButtonNpath:o.annotationAddCloseNPath_str,closeButtonSPath:o.annotationAddCloseSPath_str,normalStateClass:s.source_ar[e].normalStateClass,selectedStateClass:s.source_ar[e].selectedStateClass,showAnnotationsPositionTool_bl:s.showAnnotationsPositionTool_bl,prt:s,handPath_str:o.handPath_str,grabPath_str:o.grabPath_str});s.ann_ar[e]=t,s.addChild(t)}},s.update=function(e){if(0!=s.totalAnnotations&&0!=e)for(var t=0,o;t<s.totalAnnotations;t++)o=s.ann_ar[t],0>e?o.hide():e>=o.startTime&&e<=o.endTime?(o.show(),s.position()):o.hide()},s.position=function(t){var o=e.sW/e.maxWidth;if(s.setX(Math.round((e.sW-o*e.maxWidth)/2)),s.setY(Math.round((e.tempVidStageHeight-o*e.maxHeight)/2)),s.scale=e.sW/e.maxWidth,s.scaleY=s.scale,s.scaleX=s.scale,s.scaleInverse=e.maxWidth/e.sW,!s.showAnnotationsPositionTool_bl)for(var n=0;n<s.totalAnnotations;n++){var r=s.ann_ar[n];r.setScale2(s.scale),r.finalX=Math.floor(r.left*s.scaleX),r.finalY=Math.floor(r.top*s.scaleY),r.closeButton_do&&(r.closeButton_do.setWidth(r.closeButton_do.buttonWidth*s.scaleInverse),r.closeButton_do.setHeight(r.closeButton_do.buttonHeight*s.scaleInverse),r.closeButton_do.n_do.setWidth(r.closeButton_do.buttonWidth*s.scaleInverse),r.closeButton_do.n_do.setHeight(r.closeButton_do.buttonHeight*s.scaleInverse),r.closeButton_do.s_do.setWidth(r.closeButton_do.buttonWidth*s.scaleInverse),r.closeButton_do.s_do.setHeight(r.closeButton_do.buttonHeight*s.scaleInverse),r.closeButton_do.setX(Math.floor(r.getWidth()-r.closeButton_do.w/2)),r.closeButton_do.setY(Math.floor(-(r.closeButton_do.h/2)))),r.prevFinalX!=r.finalX&&(t?FWDAnimation.to(r,.8,{x:r.finalX,ease:Expo.easeInOut}):r.setX(r.finalX)),r.prevFinalY!=r.finalY&&(t?FWDAnimation.to(r,.8,{y:r.finalY,ease:Expo.easeInOut}):r.setY(r.finalY)),r.prevFinalX=r.finalX,r.prevFinalY=r.finalY}},s.init()};t.setPrototype=function(){t.prototype=null,t.prototype=new FWDEVPDO("div","absolute")},t.prototype=null,e.FWDEVPAnnotations=t}(window),function(t){var o=function(e,s){'use strict';var n=this,r=o.prototype;n.audio_el=null,n.sourcePath_str=null,n.lastPercentPlayed=0,n.volume=s,n.curDuration=0,n.countNormalMp3Errors=0,n.countShoutCastErrors=0,n.maxShoutCastCountErrors=5,n.maxNormalCountErrors=1,n.testShoutCastId_to,n.audioVisualizerLinesColor_str=FWDEVPUtils.hexToRgb(e._d.audioVisualizerLinesColor_str),n.audioVisualizerCircleColor_str=FWDEVPUtils.hexToRgb(e._d.audioVisualizerCircleColor_str),n.hasError_bl=!0,n.isStopped_bl=!0,n.init=function(){n.setupAudio()},n.resizeAndPosition=function(e,t){e&&(n.sW=e,n.sH=t),n.setWidth(n.sW),n.setHeight(n.sH),n.resizeSpectrumCanvas()},n.setupAudio=function(){null==n.audio_el&&(n.audio_el=document.createElement("audio"),n.screen.appendChild(n.audio_el),n.audio_el.controls=!1,n.audio_el.preload="auto",n.audio_el.volume=n.volume,!FWDEVPUtils.isLocal&&(n.audio_el.crossOrigin="*"),n.setPlaybackRate(e._d.defaultPlaybackRate_ar[e._d.startAtPlaybackIndex])),n.audio_el.addEventListener("error",n.errorHandler),n.audio_el.addEventListener("canplay",n.safeToBeControlled),n.audio_el.addEventListener("canplaythrough",n.safeToBeControlled),n.audio_el.addEventListener("progress",n.updateProgress),n.audio_el.addEventListener("timeupdate",n.updateAudio),n.audio_el.addEventListener("pause",n.pauseHandler),n.audio_el.addEventListener("play",n.playHandler),n.audio_el.addEventListener("ended",n.endedHandler)},n.destroyAudio=function(){n.audio_el&&(n.audio_el.removeEventListener("error",n.errorHandler),n.audio_el.removeEventListener("canplay",n.safeToBeControlled),n.audio_el.removeEventListener("canplaythrough",n.safeToBeControlled),n.audio_el.removeEventListener("progress",n.updateProgress),n.audio_el.removeEventListener("timeupdate",n.updateAudio),n.audio_el.removeEventListener("pause",n.pauseHandler),n.audio_el.removeEventListener("play",n.playHandler),n.audio_el.removeEventListener("ended",n.endedHandler),n.audio_el.removeEventListener("waiting",n.startToBuffer),n.audio_el.removeEventListener("playing",n.stopToBuffer),n.audio_el.src="",n.audio_el.load())},n.startToBuffer=function(){n.dispatchEvent(FWDEVPVideoScreen.START_TO_BUFFER)},n.stopToBuffer=function(){n.dispatchEvent(FWDEVPVideoScreen.STOP_TO_BUFFER)},n.togglePlayPause=function(){null!=n&&n.isSafeToBeControlled_bl&&(n.isPlaying_bl?n.pause():n.play())},n.errorHandler=function(s){if(null!=n.sourcePath_str&&null!=n.sourcePath_str){if(n.isNormalMp3_bl&&n.countNormalMp3Errors<=n.maxNormalCountErrors)return n.stop(),n.testShoutCastId_to=setTimeout(n.play,200),void n.countNormalMp3Errors++;if(n.isShoutcast_bl&&n.countShoutCastErrors<=n.maxShoutCastCountErrors&&0==n.audio_el.networkState)return n.testShoutCastId_to=setTimeout(n.play,200),void n.countShoutCastErrors++;var e;n.hasError_bl=!0,n.stop(),e=0==n.audio_el.networkState?"Error - networkState = 0":1==n.audio_el.networkState?"Error - networkState = 1":2==n.audio_el.networkState?"Error networkState = 2":3==n.audio_el.networkState?"Source not found":s,t.console&&t.console.log(n.audio_el.networkState),n.dispatchEvent(o.ERROR,{text:e})}},n.setSource=function(e){n.sourcePath_str=e,clearTimeout(n.testShoutCastId_to),-1==n.sourcePath_str.indexOf(";")?n.isShoutcast_bl=!1:(n.isShoutcast_bl=!0,n.countShoutCastErrors=0),-1==n.sourcePath_str.indexOf(";")?(n.isNormalMp3_bl=!0,n.countNormalMp3Errors=0):n.isNormalMp3_bl=!1,n.lastPercentPlayed=0},n.play=function(e){if(n.isStopped_bl)n.isPlaying_bl=!1,n.hasError_bl=!1,n.allowScrubing_bl=!1,n.isStopped_bl=!1,n.setupAudio(),n.audio_el.src=n.sourcePath_str,n.play(),n.setVisible(!0);else if(!n.audio_el.ended||e)try{n.isPlaying_bl=!0,n.hasPlayedOnce_bl=!0,n.audio_el.play(),FWDEVPUtils.isIE&&n.dispatchEvent(o.PLAY)}catch(t){}},n.resume=function(){n.isStopped_bl||n.play()},n.pause=function(){null!=n&&null!=n.audio_el&&(n.audio_el.ended||(n.audio_el.pause(),n.isPlaying_bl=!1,FWDEVPUtils.isIE&&n.dispatchEvent(o.PAUSE)))},n.pauseHandler=function(){n.allowScrubing_bl||(n.stopSpectrum(),n.dispatchEvent(o.PAUSE))},n.playHandler=function(){n.allowScrubing_bl||(!n.isStartEventDispatched_bl&&(n.dispatchEvent(o.START),n.isStartEventDispatched_bl=!0),n.startSpectrum(),n.dispatchEvent(o.PLAY))},n.endedHandler=function(){n.dispatchEvent(o.PLAY_COMPLETE)},n.stop=function(e){(null==n||null==n.audio_el||n.isStopped_bl)&&!e||(n.isPlaying_bl=!1,n.isStopped_bl=!0,n.hasPlayedOnce_bl=!0,n.isSafeToBeControlled_bl=!1,n.isStartEventDispatched_bl=!1,n.setVisible(!1),clearTimeout(n.testShoutCastId_to),n.stopToUpdateSubtitles(),n.stopSpectrum(),n.audio_el.pause(),n.destroyAudio(),n.dispatchEvent(o.STOP),n.dispatchEvent(o.LOAD_PROGRESS,{percent:0}),n.dispatchEvent(o.UPDATE_TIME,{curTime:"00:00",totalTime:"00:00"}))},n.safeToBeControlled=function(){n.isSafeToBeControlled_bl||(n.hasHours_bl=0<Math.floor(n.audio_el.duration/3600),n.isPlaying_bl=!0,n.isSafeToBeControlled_bl=!0,n.startToUpdateSubtitles(),n.dispatchEvent(o.SAFE_TO_SCRUBB),n.dispatchEvent(o.SAFE_TO_UPDATE_VOLUME))},n.updateProgress=function(){var e=0,t;0<n.audio_el.buffered.length&&(t=n.audio_el.buffered.end(n.audio_el.buffered.length-1),e=t.toFixed(1)/n.audio_el.duration.toFixed(1),(isNaN(e)||!e)&&(e=0)),1==e&&n.audio_el.removeEventListener("progress",n.updateProgress),n.dispatchEvent(o.LOAD_PROGRESS,{percent:e})},n.updateAudio=function(){var e;n.allowScrubing_bl||(e=n.audio_el.currentTime/n.audio_el.duration,n.dispatchEvent(o.UPDATE,{percent:e}));var t=FWDEVPUtils.formatTime(Math.round(n.audio_el.duration)),s=FWDEVPUtils.formatTime(Math.round(n.audio_el.currentTime));isNaN(n.audio_el.duration)?n.dispatchEvent(o.UPDATE_TIME,{curTime:"00:00",totalTime:"00:00",seconds:n.audio_el.currentTime}):n.dispatchEvent(o.UPDATE_TIME,{curTime:s,totalTime:t,seconds:n.audio_el.currentTime,totalTimeInSeconds:n.audio_el.duration}),n.lastPercentPlayed=e,n.curDuration=s},n.startToScrub=function(){n.allowScrubing_bl=!0},n.stopToScrub=function(){n.allowScrubing_bl=!1},n.scrubbAtTime=function(e){n.audio_el.currentTime=e;var t=FWDEVPUtils.formatTime(n.audio_el.duration),o=FWDEVPUtils.formatTime(n.audio_el.currentTime);n.dispatchEvent(FWDEVPVideoScreen.UPDATE_TIME,{curTime:o,totalTime:t})},n.scrub=function(t,s){if(null!=n.audio_el&&n.audio_el.duration){s&&n.startToScrub();try{n.audio_el.currentTime=n.audio_el.duration*t;var e=FWDEVPUtils.formatTime(n.audio_el.duration),r=FWDEVPUtils.formatTime(n.audio_el.currentTime);n.dispatchEvent(o.UPDATE_TIME,{curTime:r,totalTime:e})}catch(t){}}},n.replay=function(){n.scrub(0),n.play()},n.setVolume=function(e){e!=null&&(n.volume=e),n.audio_el&&(n.audio_el.volume=n.volume)},n.setPlaybackRate=function(e){n.audio_el&&(.25==e&&(e="0.5"),n.audio_el.defaultPlaybackRate=e,n.audio_el.playbackRate=e)},n.stopToUpdateSubtitles=function(){clearInterval(n.startToUpdateSubtitleId_int)},n.startToUpdateSubtitles=function(){clearInterval(n.startToUpdateSubtitleId_int),n.startToUpdateSubtitleId_int=setInterval(n.updateSubtitleHandler,10)},n.updateSubtitleHandler=function(){n.dispatchEvent(o.UPDATE_SUBTITLE,{curTime:n.audio_el.currentTime})},n.setupSpectrum=function(){if(!e.useWithoutVideoScreen_bl){var s=t.AudioContext||t.webkitAudioContext;!n.canvas_do&&s&&(3<o.countAudioContext||(o.countAudioContext++,n.canvas_do=new FWDEVPDO("canvas"),n.addChild(n.canvas_do),n.canvas=n.canvas_do.screen,n.ctx=n.canvas.getContext("2d"),n.resizeSpectrumCanvas(),s&&(n.context=new s,n.analyser=n.context.createAnalyser(),n.source=n.context.createMediaElementSource(n.audio_el),n.source.connect(n.analyser),n.analyser.connect(n.context.destination),n.fbc_array=new Uint8Array(n.analyser.frequencyBinCount),n.renderSpectrum())))}},n.resizeSpectrumCanvas=function(){n.canvas_do&&(n.canvas_do.setWidth(n.sW),n.canvas_do.setHeight(n.sH),n.canvas.width=n.sW,n.canvas.height=n.sH)},n.bars=200,FWDEVPUtils.isMobile&&(n.bars=100),n.react_x=0,n.react_y=0,n.radius=0,n.deltarad=0,n.shockwave=0,n.rot=0,n.intensity=0,n.isSeeking=0,n.center_x,n.center_y,n.renderSpectrum=function(){if(n.canvas_do){n.resizeSpectrumCanvas();var e=n.ctx.createLinearGradient(0,0,0,n.canvas.height);e.addColorStop(0,"rgba(0, 0, 0, 1)"),e.addColorStop(1,"rgba(0, 0, 0, 1)"),n.ctx.fillStyle=e,n.ctx.fillRect(0,0,n.canvas.width,n.canvas.height),n.ctx.fillStyle="rgba(255, 255, 255, "+(125e-7*n.intensity-.4)+")",n.ctx.fillRect(0,0,n.canvas.width,n.canvas.height),n.rot+=1e-7*n.intensity,n.react_x=0,n.react_y=0,n.intensity=0,n.analyser.getByteFrequencyData(n.fbc_array);for(var t=0;t<n.bars;t++){var o=2*Math.PI/n.bars,s=n.center_x,r=n.center_y,a=n.sH/3;isNaN(a)&&(a=10);var d=Math.round(n.fbc_array[t]/256*a),l=Math.round(.02*d),_=n.center_x+Math.cos(o*t+n.rot)*(n.radius+d),u=n.center_y+Math.sin(o*t+n.rot)*(n.radius+d);n.ctx.save();var c=n.audioVisualizerLinesColor_str;n.ctx.strokeStyle=c,n.ctx.lineWidth=l,n.ctx.beginPath(),n.ctx.moveTo(s,r),n.ctx.lineTo(_,u),n.ctx.stroke(),n.react_x+=Math.cos(o*t+n.rot)*(n.radius+d),n.react_y+=Math.sin(o*t+n.rot)*(n.radius+d),n.intensity+=d}n.center_x=n.canvas.width/2-.007*n.react_x,n.center_y=n.canvas.height/2-.007*n.react_y;var p=n.radius;n.radius=25+.002*n.intensity,n.deltarad=n.radius-p,n.ctx.fillStyle=n.audioVisualizerCircleColor_str,n.ctx.beginPath(),n.ctx.arc(n.center_x,n.center_y,n.radius+2,0,2*Math.PI,!1),n.ctx.fill(),n.shockwave+=60,n.ctx.lineWidth=15,n.ctx.strokeStyle=n.audioVisualizerCircleColor_str,n.ctx.beginPath(),n.ctx.arc(n.center_x,n.center_y,n.shockwave+n.radius,0,2*Math.PI,!1),n.ctx.stroke(),15<n.deltarad&&(n.shockwave=0,n.ctx.fillStyle="rgba(255, 255, 255, 0.7)",n.ctx.fillRect(0,0,n.canvas.width,n.canvas.height),n.rot+=.4),n.startSpectrum()}},n.startSpectrum=function(){n.canvas_do&&(n.stopSpectrum(),n.spectrumAnimationFrameId=t.requestAnimationFrame(n.renderSpectrum))},n.stopSpectrum=function(){n.canvas_do&&cancelAnimationFrame(n.spectrumAnimationFrameId)},n.init()};o.setPrototype=function(){o.prototype=new FWDEVPDO("div")},o.UPDATE_SUBTITLE="updateSubtitle",o.countAudioContext=0,o.ERROR="error",o.UPDATE="update",o.UPDATE="update",o.UPDATE_TIME="updateTime",o.SAFE_TO_SCRUBB="safeToControll",o.SAFE_TO_UPDATE_VOLUME="safeToUpdateVolume",o.LOAD_PROGRESS="loadProgress",o.START="start",o.PLAY="play",o.PAUSE="pause",o.STOP="stop",o.PLAY_COMPLETE="playComplete",t.FWDEVPAudioScreen=o}(window),function(){var t=function(e,o,s,n,r,a,d,l,_,u,c,p){'use strict';var b=this,h=t.prototype;b.iconCSSString=_,b.icon2CSSString=u,b.normalCalssName=c,b.selectedCalssName=p,b.n1Img=e,b.s1Path_str=o,b.n2Img=s,b.s2Path_str=n,b.n1Img&&(b.buttonWidth=b.n1Img.width,b.buttonHeight=b.n1Img.height),b.useHEX=a,b.nBC=d,b.sBC=l,b.currentState=1,b.disptachMainEvent_bl=r,b.isMobile_bl=FWDEVPUtils.isMobile,b.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,b.allowToCreateSecondButton_bl=!b.isMobile_bl||b.hasPointerEvent_bl,b.useFontAwesome_bl=!!b.iconCSSString,b.init=function(){b.hasT2D=!1,b.setButtonMode(!0),b.setWidth(b.buttonWidth),b.setHeight(b.buttonHeight),b.setupMainContainers(),b.secondButton_do.setVisible(!1),b.setNormalState()},b.setupMainContainers=function(){b.useFontAwesome_bl?(b.firstButton_do=new FWDEVPDO("div"),b.n1_do=new FWDEVPDO("div"),b.n1_do.hasT3D=!1,b.n1_do.hasT2D=!1,b.n1_do.setInnerHTML(b.iconCSSString),b.firstButton_do.addChild(b.n1_do),b.secondButton_do=new FWDEVPDO("div"),b.n2_do=new FWDEVPDO("div"),b.n2_do.hasT3D=!1,b.n2_do.hasT2D=!1,b.n2_do.setInnerHTML(b.icon2CSSString),b.secondButton_do.addChild(b.n2_do),b.setFinalSize()):(b.firstButton_do=new FWDEVPDO("div"),b.firstButton_do.setWidth(b.buttonWidth),b.firstButton_do.setHeight(b.buttonHeight),b.useHEX?(b.n1_do=new FWDEVPDO("div"),b.n1_do.setWidth(b.buttonWidth),b.n1_do.setHeight(b.buttonHeight),b.n1_sdo_canvas=FWDEVPUtils.getCanvasWithModifiedColor(b.n1Img,b.nBC).canvas,b.n1_do.screen.appendChild(b.n1_sdo_canvas)):(b.n1_do=new FWDEVPDO("img"),b.n1_do.setScreen(b.n1Img)),b.n1_do.setAlpha(1),b.firstButton_do.addChild(b.n1_do),b.allowToCreateSecondButton_bl&&(b.s1_img=new Image,b.s1_img.src=b.s1Path_str,b.useHEX?(b.s1_do=new FWDEVPDO("div"),b.s1_do.setWidth(b.buttonWidth),b.s1_do.setHeight(b.buttonHeight),b.s1_img.onload=function(){b.s1_do_canvas=FWDEVPUtils.getCanvasWithModifiedColor(b.s1_img,b.sBC).canvas,b.s1_do.screen.appendChild(b.s1_do_canvas)},b.s1_do.setAlpha(0)):(b.s1_do=new FWDEVPDO("img"),b.s1_do.setScreen(b.s1_img),b.s1_do.setWidth(b.buttonWidth),b.s1_do.setHeight(b.buttonHeight),b.s1_do.setAlpha(0)),b.firstButton_do.addChild(b.s1_do)),b.secondButton_do=new FWDEVPDO("div"),b.secondButton_do.setWidth(b.buttonWidth),b.secondButton_do.setHeight(b.buttonHeight),b.useHEX?(b.n2_do=new FWDEVPDO("div"),b.n2_do.setWidth(b.buttonWidth),b.n2_do.setHeight(b.buttonHeight),b.n2_sdo_canvas=FWDEVPUtils.getCanvasWithModifiedColor(b.n2Img,b.nBC).canvas,b.n2_do.screen.appendChild(b.n2_sdo_canvas)):(b.n2_do=new FWDEVPDO("img"),b.n2_do.setScreen(b.n2Img)),b.n2_do.setAlpha(1),b.secondButton_do.addChild(b.n2_do),b.allowToCreateSecondButton_bl&&(b.s2_img=new Image,b.s2_img.src=b.s2Path_str,b.useHEX?(b.s2_do=new FWDEVPDO("div"),b.s2_do.setWidth(b.buttonWidth),b.s2_do.setHeight(b.buttonHeight),b.s2_img.onload=function(){b.s2_do_canvas=FWDEVPUtils.getCanvasWithModifiedColor(b.s2_img,b.sBC).canvas,b.s2_do.screen.appendChild(b.s2_do_canvas)},b.s2_do.setAlpha(0)):(b.s2_do=new FWDEVPDO("img"),b.s2_do.setScreen(b.s2_img),b.s2_do.setWidth(b.buttonWidth),b.s2_do.setHeight(b.buttonHeight),b.s2_do.setAlpha(0)),b.secondButton_do.addChild(b.s2_do))),b.addChild(b.secondButton_do),b.addChild(b.firstButton_do),b.hasPointerEvent_bl?(b.screen.addEventListener("pointerup",b.onMUP),b.screen.addEventListener("pointerover",b.onMOV),b.screen.addEventListener("pointerout",b.onMOU)):b.screen.addEventListener&&(!b.isMobile_bl&&(b.screen.addEventListener("mouseover",b.onMOV),b.screen.addEventListener("mouseout",b.onMOU),b.screen.addEventListener("mouseup",b.onMUP)),b.screen.addEventListener("toustart",b.onDown),b.screen.addEventListener("touchend",b.onMUP))},b.onMOV=function(o){b.isDisabled_bl||b.isSelectedState_bl||(!o.pointerType||o.pointerType==o.MSPOINTER_TYPE_MOUSE||"mouse"==o.pointerType)&&(b.dispatchEvent(t.MOUSE_OVER,{e:o}),b.dispatchEvent(t.SHOW_TOOLTIP,{e:o}),b.setSelectedState(!0))},b.onMOU=function(o){!b.isDisabled_bl&&b.isSelectedState_bl&&(o.pointerType&&o.pointerType!=o.MSPOINTER_TYPE_MOUSE&&"mouse"!=o.pointerType||(b.setNormalState(!0),b.dispatchEvent(t.MOUSE_OUT)))},b.onDown=function(t){t.preventDefault&&t.preventDefault()},b.onMUP=function(o){b.isDisabled_bl||2==o.button||(o.preventDefault&&o.preventDefault(),!b.isMobile_bl&&b.onMOV(o,!1),b.disptachMainEvent_bl&&b.dispatchEvent(t.MOUSE_UP,{e:o}))},b.checkCount=0,b.setFinalSize=function(){if((clearInterval(b.checkId_int),b.lastWidth=b.n1_do.screen.firstChild.offsetWidth,!(5<b.checkCount))&&(b.checkCount++,b.checkId_int=setInterval(function(){b.setFinalSize()},100),b.prevWidth!=b.lastWidth&&0!=b.lastWidth)){var e=Math.max(b.n1_do.screen.firstChild.offsetWidth,b.n2_do.screen.firstChild.offsetWidth),t=Math.max(b.n1_do.screen.offsetHeight,b.n2_do.screen.firstChild.offsetHeight);b.buttonWidth=e,b.buttonHeight=t,b.setWidth(e),b.setHeight(t),b.firstButton_do.setWidth(b.w),b.firstButton_do.setHeight(b.h),b.secondButton_do.setWidth(b.w),b.secondButton_do.setHeight(b.h),b.n1_do.setX(Math.round((e-b.n1_do.getWidth())/2)),b.n1_do.setY(Math.round((t-b.n1_do.getHeight())/2)+1),b.n2_do.setX(Math.round((e-b.n2_do.getWidth())/2)),b.n2_do.setY(Math.round((t-b.n2_do.getHeight())/2)+1),b.prevWidth=b.lastWidth}},b.toggleButton=function(){1==b.currentState?(b.firstButton_do.setVisible(!1),b.secondButton_do.setVisible(!0),b.currentState=0,b.dispatchEvent(t.FIRST_BUTTON_CLICK)):(b.firstButton_do.setVisible(!0),b.secondButton_do.setVisible(!1),b.currentState=1,b.dispatchEvent(t.SECOND_BUTTON_CLICK))},b.setButtonState=function(e){1==e?(b.firstButton_do.setVisible(!0),b.secondButton_do.setVisible(!1),b.currentState=1):(b.firstButton_do.setVisible(!1),b.secondButton_do.setVisible(!0),b.currentState=0)},b.setNormalState=function(e){(!b.isMobile_bl||b.hasPointerEvent_bl||b.useFontAwesome_bl)&&(b.isSelectedState_bl=!1,FWDAnimation.killTweensOf(b.s1_do),FWDAnimation.killTweensOf(b.s2_do),b.useFontAwesome_bl?(FWDAnimation.killTweensOf(b.n1_do.screen),FWDAnimation.killTweensOf(b.n2_do.screen),e?(FWDAnimation.to(b.n1_do.screen,.8,{className:b.normalCalssName,ease:Expo.easeOut}),FWDAnimation.to(b.n2_do.screen,.8,{className:b.normalCalssName,ease:Expo.easeOut})):(b.n1_do.screen.className=b.normalCalssName,b.n2_do.screen.className=b.normalCalssName)):(FWDAnimation.to(b.s1_do,.5,{alpha:0,ease:Expo.easeOut}),FWDAnimation.to(b.s2_do,.5,{alpha:0,ease:Expo.easeOut})))},b.setSelectedState=function(e){b.isSelectedState_bl=!0,FWDAnimation.killTweensOf(b.s1_do),FWDAnimation.killTweensOf(b.s2_do),b.useFontAwesome_bl?(FWDAnimation.killTweensOf(b.n1_do.screen),FWDAnimation.killTweensOf(b.n2_do.screen),e?(FWDAnimation.to(b.n1_do.screen,.8,{className:b.selectedCalssName,ease:Expo.easeOut}),FWDAnimation.to(b.n2_do.screen,.8,{className:b.selectedCalssName,ease:Expo.easeOut})):(b.n1_do.screen.className=b.selectedCalssName,b.n2_do.screen.className=b.selectedCalssName)):(FWDAnimation.to(b.s1_do,.5,{alpha:1,delay:.1,ease:Expo.easeOut}),FWDAnimation.to(b.s2_do,.5,{alpha:1,delay:.1,ease:Expo.easeOut}))},b.disable=function(){b.isDisabled_bl||(b.isDisabled_bl=!0,b.setButtonMode(!1),FWDAnimation.killTweensOf(b),FWDAnimation.to(b,.6,{alpha:.4}),b.setNormalState())},b.enable=function(){b.isDisabled_bl&&(b.isDisabled_bl=!1,b.setButtonMode(!0),FWDAnimation.killTweensOf(b),FWDAnimation.to(b,.6,{alpha:1}))},b.updateHEXColors=function(e,t){FWDEVPUtils.changeCanvasHEXColor(b.n1Img,b.n1_sdo_canvas,e),FWDEVPUtils.changeCanvasHEXColor(b.s1_img,b.s1_do_canvas,t),FWDEVPUtils.changeCanvasHEXColor(b.n2Img,b.n2_sdo_canvas,e),FWDEVPUtils.changeCanvasHEXColor(b.s2_img,b.s2_do_canvas,t)},b.init()};t.setPrototype=function(){t.prototype=new FWDEVPDO("div")},t.FIRST_BUTTON_CLICK="onFirstClick",t.SECOND_BUTTON_CLICK="secondButtonOnClick",t.MOUSE_OVER="onMOV",t.MOUSE_OUT="onMOU",t.MOUSE_UP="onMUP",t.CLICK="onClick",t.SHOW_TOOLTIP="showTooltip",t.prototype=null,window.FWDEVPComplexButton=t}(window),function(){var e=function(t,o){'use strict';var s=this,n=e.prototype;s.prt=t,s.buttonsTest_ar=["copy_url","copy_url_time","fullscreen"],s.itemsLabels_ar=["Copy video URL","Copy video URL at current time","Fullscreen/Normalscreen"],s.items_ar=[],s.spacers_ar=[],s.backgroundColor_str=o.contextMenuBackgroundColor_str,s.borderColor_str=o.contextMenuBorderColor_str,s.spacerColor_str=o.contextMenuSpacerColor_str,s.itemNormalColor_str=o.contextMenuItemNormalColor_str,s.itemSelectedColor_str=o.contextMenuItemSelectedColor_str,s.itemDisabledColor_str=o.contextMenuItemDisabledColor_str,s.draggingMode_str=o.startDraggingMode_str,s.link_str=o.link_str,s.borderRadius=0,s.totalWidth=400,s.totalHeight=400,s.sapaceBetweenButtons=7,s.padding=6,s.inverseNextAndPrevRotation_bl=o.inverseNextAndPrevRotation_bl,s.showScriptDeveloper_bl=o.showScriptDeveloper_bl,s.show_bl=!1,s.init=function(){s.itemsLabels_ar&&"default"==o.contextMenuType&&(s.show_bl=!0,s.setWidth(s.totalWidth),s.setHeight(s.totalHeight),s.setBkColor(s.backgroundColor_str),s.style().borderColor=s.borderColor_str,s.style().borderStyle="solid",s.style().borderRadius=s.borderRadius+"px",s.style().borderWidth="1px",s.setVisible(!1),s.setY(-2e3),s.prt.main_do.addChild(s),s.setupLabels(),s.setupDeveloperButton(),s.setupSpacers(),s.disable(),s.getMaxWidthResizeAndPositionId_to=setTimeout(s.getMaxWidthResizeAndPosition,200)),"none"!=o.contextMenuType&&s.addContextEvent()},s.copyText=function(e){var t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)},s.setupLabels=function(){var e=s.buttonsTest_ar.length,t="",n="",r;if(s.itemsLabels_ar)for(var a=0;a<e;a++)if(r=s.buttonsTest_ar[a],"copy_url"==r)t=s.itemsLabels_ar[a],FWDEVPContextMenuButton.setPrototype(),s.copyURL_do=new FWDEVPContextMenuButton(t,void 0,s.itemNormalColor_str,s.itemSelectedColor_str,s.itemDisabledColor_str),s.items_ar.push(s.copyURL_do),s.copyURL_do.addListener(FWDEVPContextMenuButton.MOUSE_DOWN,s.copyURLHandler),s.addChild(s.copyURL_do);else if("copy_url_time"==r)t=s.itemsLabels_ar[a],FWDEVPContextMenuButton.setPrototype(),s.copyURLTime_do=new FWDEVPContextMenuButton(t,void 0,s.itemNormalColor_str,s.itemSelectedColor_str,s.itemDisabledColor_str),s.items_ar.push(s.copyURLTime_do),s.copyURLTime_do.addListener(FWDEVPContextMenuButton.MOUSE_DOWN,s.copyURLAtTimeHandler),s.addChild(s.copyURLTime_do);else if("fullscreen"==r&&o.showFullScreenButton_bl){var d=s.itemsLabels_ar[a];t=d.substr(0,d.indexOf("/")),n=d.substr(d.indexOf("/")+1),FWDEVPContextMenuButton.setPrototype(),s.fullScreenButton_do=new FWDEVPContextMenuButton(t,n,s.itemNormalColor_str,s.itemSelectedColor_str,s.itemDisabledColor_str),s.items_ar.push(s.fullScreenButton_do),s.fullScreenButton_do.addListener(FWDEVPContextMenuButton.MOUSE_DOWN,s.fullScreenStartHandler),s.addChild(s.fullScreenButton_do)}},s.setupDeveloperButton=function(){s.showScriptDeveloper_bl&&(!s.itemsLabels_ar&&(s.itemsLabels_ar=[]),s.itemsLabels_ar.push("&#0169; made by FWD"),label1_str="&#0169; made by FWD",FWDEVPContextMenuButton.setPrototype(),s.developerButton_do=new FWDEVPContextMenuButton(label1_str,void 0,s.itemNormalColor_str,s.itemSelectedColor_str,s.itemDisabledColor_str),s.developerButton_do.isDeveleper_bl=!0,s.items_ar.push(s.developerButton_do),s.addChild(s.developerButton_do))},s.copyURLAtTimeHandler=function(){var e=t.curTime;5==e.length&&(e="00:"+e);for(var o=(e+"").split(":"),n=0;n<o.length;n++)"00"==o[n]&&(o[n]="0");var r=FWDEVPUtils.getHashUrlArgs(window.location.hash),a=location.href;a=a.replace(/&evpi=.*/i,""),a=a.replace(/&t=.*/i,""),e=-1==location.href.indexOf("?")?1<FWDEVPlayer.instaces_ar.length?a+"?&evpi="+t.instanceName_str:a+"?":1<FWDEVPlayer.instaces_ar.length?a+"&evpi="+t.instanceName_str:a,-1==e.indexOf("t=")&&(e=e+"&t="+o[0]+"h"+o[1]+"m"+o[2]+"s"),s.copyText(e),s.removeMenuId_to=setTimeout(s.removeFromDOM,150)},s.copyURLHandler=function(){s.copyText(location.href),s.removeMenuId_to=setTimeout(s.removeFromDOM,150)},s.fullScreenStartHandler=function(){0==s.fullScreenButton_do.currentState?t.goFullScreen():1==s.fullScreenButton_do.currentState&&t.goNormalScreen(),s.fullScreenButton_do.onMOU()},s.updateFullScreenButton=function(e){s.fullScreenButton_do&&(0==e?s.fullScreenButton_do.setButtonState(0):s.fullScreenButton_do.setButtonState(1),s.removeMenuId_to=setTimeout(s.removeFromDOM,150))},s.setupSpacers=function(){for(var e=s.items_ar.length-1,t=0,o;t<e;t++)o=new FWDEVPDO("div"),s.spacers_ar[t]=o,o.setHeight(1),o.setBkColor(s.spacerColor_str),s.addChild(o)},s.getMaxWidthResizeAndPosition=function(){var e=s.items_ar.length,t,o;s.totalWidth=0,s.totalHeight=0;for(var n=0;n<e;n++)t=s.items_ar[n],t.getMaxTextWidth()>s.totalWidth&&(s.totalWidth=t.getMaxTextWidth());for(var n=0;n<e;n++)o=s.spacers_ar[n-1],t=s.items_ar[n],t.setX(s.padding),t.setY(10+n*(t.totalHeight+s.sapaceBetweenButtons)-s.padding),o&&(o.setWidth(s.totalWidth+2),o.setX(s.padding),o.setY(parseInt(t.getY()-s.sapaceBetweenButtons/2)-1)),t.setWidth(s.totalWidth+2),t.centerText();s.totalHeight=t.getY()+t.totalHeight+2,s.setWidth(s.totalWidth+2*s.padding+4),s.setHeight(s.totalHeight),s.setVisible(!0),s.removeMenuId_to=setTimeout(s.removeFromDOM,150)},s.addContextEvent=function(){s.prt.main_do.screen.addEventListener?s.prt.main_do.screen.addEventListener("contextmenu",s.contextMenuHandler):s.prt.main_do.screen.attachEvent("oncontextmenu",s.contextMenuHandler)},s.contextMenuHandler=function(t){if(!s.show_bl&&"none"!=o.contextMenuType){if(t.preventDefault)t.preventDefault();else return!1;return}return clearTimeout(s.removeMenuId_to),s.prt.main_do.addChild(s),s.positionButtons(t),s.setAlpha(0),FWDAnimation.to(s,.4,{alpha:1,ease:Quart.easeOut}),window.addEventListener("mousedown",s.onMD),window.addEventListener("mouseup",s.onMD),!!t.preventDefault&&void t.preventDefault()},s.onMD=function(t){var e=FWDEVPUtils.getViewportMouseCoordinates(t),o=e.screenX,n=e.screenY;FWDEVPUtils.hitTest(s.screen,o,n)||(window.removeEventListener("mousedown",s.onMD),window.removeEventListener("mouseup",s.onMD),s.removeMenuId_to=setTimeout(s.removeFromDOM,150))},s.positionButtons=function(t){var e=FWDEVPUtils.getViewportMouseCoordinates(t),o=s.prt.main_do.getWidth(),n=s.prt.main_do.getHeight(),r=e.screenX-s.prt.main_do.getGlobalX(),a=e.screenY-s.prt.main_do.getGlobalY(),d=r-2,l=a-2;s.totalWidth=s.getWidth(),s.totalHeight=s.getHeight(),d+s.totalWidth>o-2&&(d=r-s.totalWidth),0>d&&(d=parseInt((o-s.totalWidth)/2)),0>d&&(d=0),l+s.totalHeight>n-2&&(l=a-s.totalHeight),0>l&&(l=parseInt((n-s.totalHeight)/2)),0>l&&(l=0),s.setX(d),s.setY(l)},s.disable=function(){s.copyURL_do&&s.copyURL_do.disable(),s.copyURLTime_do&&s.copyURLTime_do.disable()},s.enable=function(){s.copyURL_do&&s.copyURL_do.enable(),s.copyURLTime_do&&s.copyURLTime_do.enable()},s.removeFromDOM=function(){s.setX(-5e3)},s.init()};e.setPrototype=function(){e.prototype=new FWDEVPDO("div")},e.prototype=null,window.FWDEVPContextMenu=e}(window),function(){var t=function(e,o,s,n,r){'use strict';var a=this,d=t.prototype;a.label1_str=e,a.label2_str=o,a.nBC=s,a.sBC=n,a.disabledColor_str=r,a.totalWidth=400,a.totalHeight=20,a.isMobile_bl=FWDEVPUtils.isMobile,a.currentState=1,a.showSecondButton_bl=o!=null,a.init=function(){a.setBackfaceVisibility(),a.setButtonMode(!0),a.setupMainContainers(),a.setWidth(a.totalWidth),a.setHeight(a.totalHeight),a.setButtonState(0)},a.setupMainContainers=function(){a.text1_sdo=new FWDEVPDO("div"),a.text1_sdo.setBackfaceVisibility(),a.text1_sdo.setDisplay("inline-block"),a.text1_sdo.style().fontFamily="Arial",a.text1_sdo.style().fontSize="12px",a.text1_sdo.style().color=a.nBC,a.text1_sdo.style().fontSmoothing="antialiased",a.text1_sdo.setInnerHTML(a.label1_str),a.addChild(a.text1_sdo),a.showSecondButton_bl&&(a.text2_sdo=new FWDEVPDO("div"),a.text2_sdo.setBackfaceVisibility(),a.text2_sdo.setDisplay("inline-block"),a.text2_sdo.style().fontFamily="Arial",a.text2_sdo.style().fontSize="12px",a.text2_sdo.style().color=a.nBC,a.text2_sdo.style().fontSmoothing="antialiased",a.text2_sdo.setInnerHTML(a.label2_str),a.addChild(a.text2_sdo)),a.dumy_sdo=new FWDEVPDO("div"),FWDEVPUtils.isIE&&(a.dumy_sdo.setBkColor("#FF0000"),a.dumy_sdo.setAlpha(0));a.addChild(a.dumy_sdo),a.isMobile_bl?a.screen.addEventListener("touchstart",a.onMD):a.screen.addEventListener&&(a.screen.addEventListener("mouseover",a.onMOV),a.screen.addEventListener("mouseout",a.onMOU),a.screen.addEventListener("mousedown",a.onMD),a.screen.addEventListener("click",a.onCLK))},a.onMOV=function(e){a.isDisabled_bl||(FWDAnimation.killTweensOf(a.text1_sdo),e?(FWDAnimation.to(a.text1_sdo.screen,.5,{css:{color:a.sBC},ease:Expo.easeOut}),a.showSecondButton_bl&&FWDAnimation.to(a.text2_sdo.screen,.5,{css:{color:a.sBC},ease:Expo.easeOut})):(a.text1_sdo.style().color=a.sBC,a.showSecondButton_bl&&(FWDAnimation.killTweensOf(a.text2_sdo),a.text2_sdo.style().color=a.sBC)),a.dispatchEvent(t.MOUSE_OVER))},a.onMOU=function(){a.isDisabled_bl||(FWDAnimation.killTweensOf(a.text1_sdo),FWDAnimation.to(a.text1_sdo.screen,.5,{css:{color:a.nBC},ease:Expo.easeOut}),a.showSecondButton_bl&&(FWDAnimation.killTweensOf(a.text2_sdo),FWDAnimation.to(a.text2_sdo.screen,.5,{css:{color:a.nBC},ease:Expo.easeOut})),a.dispatchEvent(t.MOUSE_OUT))},a.onCLK=function(o){return a.isDeveleper_bl?void window.open("http://www.webdesign-flash.ro","_blank"):void(a.isDisabled_bl||(o.preventDefault&&o.preventDefault(),a.dispatchEvent(t.CLICK)))},a.onMD=function(o){a.isDisabled_bl||(o.preventDefault&&o.preventDefault(),a.dispatchEvent(t.MOUSE_DOWN,{e:o}))},a.toggleButton=function(){a.showSecondButton_bl&&(1==a.currentState?(a.text1_sdo.setVisible(!0),a.text2_sdo.setVisible(!1),a.currentState=0,a.dispatchEvent(t.FIRST_BUTTON_CLICK)):(a.text1_sdo.setVisible(!1),a.text2_sdo.setVisible(!0),a.currentState=1,a.dispatchEvent(t.SECOND_BUTTON_CLICK)))},a.setButtonState=function(e){0==e?(a.text1_sdo.setVisible(!0),a.showSecondButton_bl&&a.text2_sdo.setVisible(!1),a.currentState=0):1==e&&(a.text1_sdo.setVisible(!1),a.showSecondButton_bl&&a.text2_sdo.setVisible(!0),a.currentState=1)},a.centerText=function(){a.dumy_sdo.setWidth(a.totalWidth),a.dumy_sdo.setHeight(a.totalHeight),FWDEVPUtils.isIEAndLessThen9?(a.text1_sdo.setY(Math.round((a.totalHeight-a.text1_sdo.getHeight())/2)-1),a.showSecondButton_bl&&a.text2_sdo.setY(Math.round((a.totalHeight-a.text2_sdo.getHeight())/2)-1)):(a.text1_sdo.setY(Math.round((a.totalHeight-a.text1_sdo.getHeight())/2)),a.showSecondButton_bl&&a.text2_sdo.setY(Math.round((a.totalHeight-a.text2_sdo.getHeight())/2))),a.text1_sdo.setHeight(a.totalHeight+2),a.showSecondButton_bl&&a.text2_sdo.setHeight(a.totalHeight+2)},a.getMaxTextWidth=function(){var e=a.text1_sdo.getWidth(),t=0;return a.showSecondButton_bl&&(t=a.text2_sdo.getWidth()),Math.max(e,t)},a.disable=function(){a.isDisabled_bl=!0,FWDAnimation.killTweensOf(a.text1_sdo),FWDAnimation.to(a.text1_sdo.screen,.5,{css:{color:a.disabledColor_str},ease:Expo.easeOut}),a.setButtonMode(!1)},a.enable=function(){a.isDisabled_bl=!1,FWDAnimation.killTweensOf(a.text1_sdo),FWDAnimation.to(a.text1_sdo.screen,.5,{css:{color:a.nBC},ease:Expo.easeOut}),a.setButtonMode(!0)},a.init()};t.setPrototype=function(){t.prototype=new FWDEVPDO("div")},t.FIRST_BUTTON_CLICK="onFirstClick",t.SECOND_BUTTON_CLICK="secondButtonOnClick",t.MOUSE_OVER="onMOV",t.MOUSE_OUT="onMOU",t.MOUSE_DOWN="onMD",t.CLICK="onCLK",t.prototype=null,window.FWDEVPContextMenuButton=t}(window),function(){var t=function(o,e){'use strict';var n=this;n.prt=e;t.prototype;n._d=o,n.bkLeft_img=o.bkLeft_img,n.bkRight_img=o.bkRight_img,n.playN_img=o.playN_img,n.playS_img=o.playS_img,n.pauseN_img=o.pauseN_img,n.pauseS_img=o.pauseS_img,n.mainScrubberBkLeft_img=o.mainScrubberBkLeft_img,n.mainScrubberBkRight_img=o.mainScrubberBkRight_img,n.mainScrubberDragLeft_img=o.mainScrubberDragLeft_img,n.mainScrubberDragLeftSource=o.mainScrubberDragLeft_img.src,n.mainScrubberLine_img=o.mainScrubberLine_img,n.volumeScrubberBkLeft_img=o.volumeScrubberBkLeft_img,n.volumeScrubberBkRight_img=o.volumeScrubberBkRight_img,n.volumeScrubberDragLeft_img=o.volumeScrubberDragLeft_img,n.volumeScrubberLine_img=o.volumeScrubberLine_img,n.volumeN_img=o.volumeN_img,n.volumeS_img=o.volumeS_img,n.volumeD_img=o.volumeD_img,n.progressLeft_img=o.progressLeft_img,n.ytbQualityN_img=o.ytbQualityN_img,n.ytbQualityS_img=o.ytbQualityS_img,n.ytbQualityD_img=o.ytbQualityD_img,n.shareN_img=o.shareN_img,n.subtitleN_img=o.subtitleNPath_img,n.facebookS_img=o.facebookS_img,n.fullScreenN_img=o.fullScreenN_img,n.fullScreenS_img=o.fullScreenS_img,n.normalScreenN_img=o.normalScreenN_img,n.normalScreenS_img=o.normalScreenS_img,n.embedN_img=o.embedN_img,n.showSubtitileByDefault_bl=o.showSubtitileByDefault_bl,n.buttons_ar=[],n.isMainScrubberOnTop_bl=!0,n.bkMiddlePath_str=o.bkMiddlePath_str,n.mainScrubberBkMiddlePath_str=o.mainScrubberBkMiddlePath_str,n.volumeScrubberBkMiddlePath_str=o.volumeScrubberBkMiddlePath_str,n.mainScrubberDragMiddlePath_str=o.mainScrubberDragMiddlePath_str,n.volumeScrubberDragMiddlePath_str=o.volumeScrubberDragMiddlePath_str,n.timeColor_str=o.timeColor_str,n.progressMiddlePath_str=o.progressMiddlePath_str,n.youtubeQualityButtonNormalColor_str=o.youtubeQualityButtonNormalColor_str,n.youtubeQualityButtonSelectedColor_str=o.youtubeQualityButtonSelectedColor_str,n.youtubeQualityArrowPath_str=o.youtubeQualityArrowPath_str,n.controllerBkPath_str=o.controllerBkPath_str,n.ytbQualityButtonPointerPath_str=o.ytbQualityButtonPointerPath_str,n.subtitleSPath_str=o.subtitleSPath_str,n.mainScrubberOffestTop=o.mainScrubberOffestTop,n.totalYtbButtons=0,n.sW=0,n.sH=o.controllerHeight,n.scrubbersBkLeftAndRightWidth=n.mainScrubberBkLeft_img.width,n.mainScrubberWidth=0,n.mainScrubberMinWidth=100,n.volumeScrubberWidth=o.volumeScrubberWidth,n.scrubbersHeight=n.mainScrubberBkLeft_img.height,n.mainScrubberDragLeftWidth=n.mainScrubberDragLeft_img.width,n.scrubbersOffsetWidth=o.scrubbersOffsetWidth,n.volumeScrubberOffsetRightWidth=o.volumeScrubberOffsetRightWidth,n.volume=o.volume,n.lastVolume=n.volume,n.startSpaceBetweenButtons=o.startSpaceBetweenButtons,n.spaceBetweenButtons=o.spaceBetweenButtons,n.percentPlayed=0,n.percentLoaded=0,n.lastTimeLength=0,n.prevYtbQualityButtonsLength=0,n.pointerWidth=8,n.pointerHeight=5,n.timeOffsetLeftWidth=o.timeOffsetLeftWidth,n.timeOffsetRightWidth=o.timeOffsetRightWidth,n.useHEX=o.useHEX,n.nBC=o.nBC,n.sBC=o.sBC,n.showFullScreenButton_bl=o.showFullScreenButton_bl,n.showYoutubeQualityButton_bl=o.showYoutubeQualityButton_bl,n.showSubtitleButton_bl=o.showSubtitleButton_bl,n.showShareButton_bl=o.showShareButton_bl,n.showVolumeScrubber_bl=o.showVolumeScrubber_bl,n.allowToChangeVolume_bl=!0,n.showTime_bl=o.showTime_bl,n.showVolumeButton_bl=o.showVolumeButton_bl,n.showRewindButton_bl=o.showRewindButton_bl,n.showControllerWhenVideoIsStopped_bl=o.showControllerWhenVideoIsStopped_bl,n.showDownloadVideoButton_bl=o.showDownloadVideoButton_bl,n.showEmbedButton_bl=o.showEmbedButton_bl,n.showPlaybackRateButton_bl=o.showPlaybackRateButton_bl,n.useVectorIcons_bl=o.useVectorIcons_bl,n.isShowed_bl=!0,n.areYtbQualityButtonsShowed_bl=!0,n.repeatBackground_bl=o.repeatBackground_bl,n.isMobile_bl=FWDEVPUtils.isMobile,n.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,n.init=function(){if(n.setOverflow("visible"),n.mainHolder_do=new FWDEVPDO("div"),n.mainHolder_do.style().cursor="default",o.useAToB&&n.setupATB(),n.repeatBackground_bl)n.bk_do=new FWDEVPDO("div"),n.bk_do.style().background="url('"+n.controllerBkPath_str+"')";else{n.bk_do=new FWDEVPDO("img");var e=new Image;e.src=n.controllerBkPath_str,n.bk_do.setScreen(e)}n.mainHolder_do.addChild(n.bk_do),n.mainHolder_do.setOverflow("visible"),n.addChild(n.mainHolder_do),n.showYoutubeQualityButton_bl&&(n.ytbQuality_ar=["hd2880","hd2160","hd2160","hd1440","highres","hd1080","hd720","large","medium","small","tiny"],n.ytbButtons_ar=[],n.totalYtbButtons=n.ytbQuality_ar.length,n.setupYtbButtons()),n.setupPlayPauseButton(),n.showRewindButton_bl&&n.setupRewindButton(),n.setupMainScrubber(),n.showTime_bl&&n.setupTime(),n.showVolumeButton_bl&&n.setupVolumeButton(),n.showVolumeScrubber_bl&&n.setupVolumeScrubber(),n.showPlaybackRateButton_bl&&n.setupPlaybackRateButton(),n.showYoutubeQualityButton_bl&&n.setupYoutubeQualityButton(),n.showSubtitleButton_bl&&n.setupSubtitleButton(),n.showShareButton_bl&&n.setupShareButton(),n.showEmbedButton_bl&&n.setupEmbedButton(),o.useAToB&&n.setupAtbButton(),n.showDownloadVideoButton_bl&&n.setupDownloadButton(),o.showChromecastButton_bl&&n.setupChromecastButton(),n.showFullScreenButton_bl&&n.setupFullscreenButton(),n.isMobile_bl||n.setupDisable(),n.hide(!1,!0),n.showControllerWhenVideoIsStopped_bl&&n.show(!0)},n.resizeAndPosition=function(){n.sW=e.sW,n.positionButtons(),n.setY(e.sH-n.sH),n.hideQualityButtons(!1),n.ytbButtonsHolder_do&&(FWDAnimation.killTweensOf(n.ytbButtonsHolder_do),n.ytbButtonsHolder_do.setY(e.sH)),n.subtitlesButtonsHolder_do&&(FWDAnimation.killTweensOf(n.subtitlesButtonsHolder_do),n.subtitlesButtonsHolder_do.setY(e.sH)),n.playbackRatesButtonsHolder_do&&(FWDAnimation.killTweensOf(n.playbackRatesButtonsHolder_do),n.playbackRatesButtonsHolder_do.setY(e.sH)),n.positionAdsLines()},n.positionButtons=function(){if(n.sW){var t=n.showTime_bl,s=n.volumeScrubber_do,r,a;n.mainHolder_do.setWidth(n.sW),n.mainHolder_do.setHeight(n.sH),n.setWidth(n.sW),n.setHeight(n.sH);for(var d=[],l=0;l<n.buttons_ar.length;l++)d[l]=n.buttons_ar[l];e.videoType_str!=FWDEVPlayer.VIMEO||o.showDefaultControllerForVimeo_bl?n.setX(0):n.setX(-5e3),n.mainScrubberWidth=n.sW-2*n.startSpaceBetweenButtons;for(var l=0;l<d.length;l++)r=d[l],r!=n.mainScrubber_do&&(n.mainScrubberWidth-=r.w+n.spaceBetweenButtons);var _=3;n.hasYtbButton_bl&&(_=4);for(var u=0;n.mainScrubberWidth<n.mainScrubberMinWidth&&10>u;){n.mainScrubberWidth=n.sW-2*n.startSpaceBetweenButtons,n.volumeScrubber_do&&-1!=FWDEVPUtils.indexOfArray(d,n.volumeScrubber_do)?(d.splice(FWDEVPUtils.indexOfArray(d,n.volumeScrubber_do),1),n.volumeScrubber_do.setX(-1e3)):n.time_do&&-1!=FWDEVPUtils.indexOfArray(d,n.time_do)?(d.splice(FWDEVPUtils.indexOfArray(d,n.time_do),1),n.time_do.setX(-1e3),t=!1):n.volumeButton_do&&-1!=FWDEVPUtils.indexOfArray(d,n.volumeButton_do)?(d.splice(FWDEVPUtils.indexOfArray(d,n.volumeButton_do),1),n.volumeButton_do.setX(-1e3)):n.atbButton_do&&-1!=FWDEVPUtils.indexOfArray(d,n.atbButton_do)?(d.splice(FWDEVPUtils.indexOfArray(d,n.atbButton_do),1),n.atbButton_do.setX(-1e3)):n.subtitleButton_do&&-1!=FWDEVPUtils.indexOfArray(d,n.subtitleButton_do)?(d.splice(FWDEVPUtils.indexOfArray(d,n.subtitleButton_do),1),n.subtitleButton_do.setX(-1e3)):n.shareButton_do&&-1!=FWDEVPUtils.indexOfArray(d,n.shareButton_do)?(d.splice(FWDEVPUtils.indexOfArray(d,n.shareButton_do),1),n.shareButton_do.setX(-1e3)):n.embedButton_do&&-1!=FWDEVPUtils.indexOfArray(d,n.embedButton_do)&&(d.splice(FWDEVPUtils.indexOfArray(d,n.embedButton_do),1),n.embedButton_do.setX(-1e3));for(var c=d.length,l=0;l<c;l++)r=d[l],r!=n.mainScrubber_do&&(n.mainScrubberWidth-=r.w+n.spaceBetweenButtons);u++}t&&(n.mainScrubberWidth-=2*n.timeOffsetLeftWidth),s&&(n.mainScrubberWidth-=n.volumeScrubberOffsetRightWidth);for(var l=0;l<d.length;l++)if(r=d[l],0==l)r.setX(n.startSpaceBetweenButtons+o.pushBtns),r.setY(parseInt((n.sH-r.h)/2));else if(r==n.mainScrubber_do)a=d[l-1],FWDAnimation.killTweensOf(n.mainScrubber_do),n.mainScrubber_do.setX(a.x+a.w+n.spaceBetweenButtons),n.mainScrubber_do.setY(parseInt((n.sH-n.scrubbersHeight)/2)),n.mainScrubber_do.setWidth(n.mainScrubberWidth+1),n.mainScrubberBkMiddle_do.setWidth(n.mainScrubberWidth-2*n.scrubbersBkLeftAndRightWidth),n.mainScrubberBkRight_do.setX(n.mainScrubberWidth-n.scrubbersBkLeftAndRightWidth),n.mainScrubberDragMiddle_do.setWidth(n.mainScrubberWidth-n.scrubbersBkLeftAndRightWidth-n.scrubbersOffsetWidth);else if(r==n.time_do){a=d[l-1],r.setX(a.x+a.w+n.spaceBetweenButtons+n.timeOffsetLeftWidth);var p=0;n.isLive&&(p=2),r.setY(parseInt((n.sH-r.h)/2)+p)}else r==n.volumeButton_do&&t?(a=d[l-1],r.setX(a.x+a.w+n.spaceBetweenButtons+n.timeOffsetRightWidth),r.setY(parseInt((n.sH-r.h)/2))):(a=d[l-1],s&&a==n.volumeScrubber_do?r.setX(a.x+a.w+n.spaceBetweenButtons+n.volumeScrubberOffsetRightWidth):r.setX(a.x+a.w+n.spaceBetweenButtons),r.setY(parseInt((n.sH-r.h)/2)));n.disable_do&&(n.disable_do.setWidth(n.sW),n.disable_do.setHeight(n.sH)),n.bk_do&&(n.bk_do.setWidth(n.sW),n.bk_do.setHeight(n.sH)),n.isShowed_bl?n.isMainScrubberOnTop_bl=!1:(n.isMainScrubberOnTop_bl=!0,n.positionScrollBarOnTopOfTheController()),n.progressMiddle_do&&n.progressMiddle_do.setWidth(n.mainScrubberWidth-n.scrubbersBkLeftAndRightWidth-n.scrubbersOffsetWidth),n.updateMainScrubber(n.percentPlayed),n.updatePreloaderBar(n.percentLoaded),n.atb&&n.atb.resize()}},n.positionScrollBarOnTopOfTheController=function(){if(console.log(),!e.isStopped_bl){n.mainScrubberWidth=n.sW,n.updatePreloaderBar(n.percentLoaded),n.mainScrubber_do.setWidth(n.mainScrubberWidth+1),n.mainScrubberBkMiddle_do.setWidth(n.mainScrubberWidth-2*n.scrubbersBkLeftAndRightWidth),n.mainScrubberBkRight_do.setX(n.mainScrubberWidth-n.scrubbersBkLeftAndRightWidth),n.mainScrubberDragMiddle_do.setWidth(n.mainScrubberWidth-n.scrubbersBkLeftAndRightWidth-n.scrubbersOffsetWidth),FWDAnimation.killTweensOf(n.mainScrubber_do),n.mainScrubber_do.setX(0);var t=0;n.atb&&n.atb.isShowed_bl&&(t=n.sH+1),o.showScrubberWhenControllerIsHidden_bl&&(n.isMainScrubberOnTop_bl||n.isShowed_bl?n.mainScrubber_do.setY(-n.mainScrubberOffestTop-t):n.mainScrubber_do.y!=-n.mainScrubberOffestTop&&!n.isLive&&FWDAnimation.to(n.mainScrubber_do,.8,{y:-n.mainScrubberOffestTop-t,ease:Expo.easeOut}))}},n.setupDisable=function(){n.disable_do=new FWDEVPDO("div"),FWDEVPUtils.isIE&&(n.disable_do.setBkColor("#FFFFFF"),n.disable_do.setAlpha(0))},n.setupThumbnailsPreview=function(){n.thumbnailsPreview_do||(FWDEVPThumbnailsPreview.setPrototype(),n.thumbnailsPreview_do=new FWDEVPThumbnailsPreview(n),n.thumbnailsPreview_do.addListener(FWDEVPData.LOAD_ERROR,function(t){n.dispatchEvent(FWDEVPData.LOAD_ERROR,{text:t.text})}))},n.setupATB=function(){FWDEVPATB.setPrototype(),n.atb=new FWDEVPATB(n),n.mainHolder_do.addChild(n.atb),n.atb.addListener(FWDEVPATB.START_TO_SCRUB,n.atbStartToScrub),n.atb.addListener(FWDEVPATB.STOP_TO_SCRUB,n.atbStopToScrub)},n.atbStartToScrub=function(){e.showDisable()},n.atbStopToScrub=function(){e.hideDisable()},n.setupAtbButton=function(){if(n.useVectorIcons_bl){FWDEVPSimpleButton.setPrototype(),FWDEVPUtils.smpBtnNPos();var t=e.fontIcon+" "+e.fontIcon+"-AB";n.atbButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='"+t+"'></span>",void 0,"EVPMainButtonsNormalState","EVPMainButtonsSelectedState")}else FWDEVPSimpleButton.setPrototype(),n.atbButton_do=new FWDEVPSimpleButton(o.atbNPath_img,o.atbSPath_str,void 0,!0,n.useHEX,n.nBC,n.sBC);n.atbButton_do.setX(-5e3),n.buttons_ar.push(n.atbButton_do),n.atbButton_do.setY(parseInt((n.sH-n.atbButton_do.h)/2));var s=setInterval(function(){0<n.atbButton_do.buttonHeight&&(clearInterval(s),n.atbButton_do.setY(parseInt((n.sH-n.atbButton_do.buttonHeight)/2)))},50);n.atbButton_do.addListener(FWDEVPSimpleButton.SHOW_TOOLTIP,n.atbButtonShowTooltipHandler),n.atbButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,n.atbButtonMouseUpHandler),n.mainHolder_do.addChild(n.atbButton_do)},n.atbButtonShowTooltipHandler=function(){},n.atbButtonMouseUpHandler=function(){n.atbButton_do.isSelected?(n.atbButton_do.doNotallowToSetNormal=!1,n.atbButton_do.isSelected=!1,n.atb.hide(!0)):(n.atbButton_do.isSelected=!0,n.atbButton_do.doNotallowToSetNormal=!0,n.atbButton_do.setSelectedState(),n.atb.show(!0))},n.disableAtbButton=function(){n.atbButton_do&&n.atbButton_do.disable()},n.enableAtbButton=function(){n.atbButton_do&&n.atbButton_do.enable()},n.playbackRatesSource_ar=o.defaultPlaybackRate_ar,n.playbackRateButtons_ar=[],n.totalPlaybackRateButtons=6,n.arePlaybackRateButtonsShowed_bl=!0,n.showPlaybackRateButton_bl||(n.arePlaybackRateButtonsShowed_bl=!1),n.setupPlaybackRateButton=function(){if(n.useVectorIcons_bl){FWDEVPSimpleButton.setPrototype(),FWDEVPUtils.smpBtnNPos();var t=e.fontIcon+" "+e.fontIcon+"-watch-later";n.playbackRateButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='"+t+"'></span>",void 0,"EVPMainButtonsNormalState","EVPMainButtonsSelectedState")}else FWDEVPSimpleButton.setPrototype(),n.playbackRateButton_do=new FWDEVPSimpleButton(o.playbackRateNPath_img,o.playbackRateSPath_str,void 0,!0,n.useHEX,n.nBC,n.sBC);n.buttons_ar.push(n.playbackRateButton_do),n.playbackRateButton_do.setY(parseInt((n.sH-n.playbackRateButton_do.h)/2)),n.playbackRateButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,n.playbackRateButtonMouseUpHandler),n.mainHolder_do.addChild(n.playbackRateButton_do),n.disablePlaybackRateButton(),n.setupPlaybackRateButtons()},n.playbackRateButtonMouseUpHandler=function(){n.arePlaybackRateButtonsShowed_bl?n.hidePlaybackRateButtons(!0):n.showPlaybackRateButtons(!0)},n.disablePlaybackRateButton=function(){n.playbackRateButton_do&&n.playbackRateButton_do.disable()},n.enablePlaybackRateButton=function(){n.playbackRateButton_do&&n.playbackRateButton_do.enable()},n.removePlaybackRateButton=function(){n.playbackRateButton_do&&(-1==FWDEVPUtils.indexOfArray(n.buttons_ar,n.playbackRateButton_do)||(n.buttons_ar.splice(FWDEVPUtils.indexOfArray(n.buttons_ar,n.playbackRateButton_do),1),n.playbackRateButton_do.setX(-300),n.positionButtons()))},n.addPlaybackRateButton=function(){n.playbackRateButton_do&&(-1!=FWDEVPUtils.indexOfArray(n.buttons_ar,n.playbackRateButton_do)||(n.ytbQualityButton_do&&-1!=FWDEVPUtils.indexOfArray(n.buttons_ar,n.ytbQualityButton_do)?n.buttons_ar.splice(FWDEVPUtils.indexOfArray(n.buttons_ar,n.ytbQualityButton_do),0,n.playbackRateButton_do):n.subtitleButton_do&&-1!=FWDEVPUtils.indexOfArray(n.buttons_ar,n.subtitleButton_do)?n.buttons_ar.splice(FWDEVPUtils.indexOfArray(n.buttons_ar,n.subtitleButton_do),0,n.playbackRateButton_do):n.shareButton_do&&-1!=FWDEVPUtils.indexOfArray(n.buttons_ar,n.shareButton_do)?n.buttons_ar.splice(FWDEVPUtils.indexOfArray(n.buttons_ar,n.shareButton_do),0,n.playbackRateButton_do):n.fullScreenButton_do&&-1!=FWDEVPUtils.indexOfArray(n.buttons_ar,n.fullScreenButton_do)?n.buttons_ar.splice(FWDEVPUtils.indexOfArray(n.buttons_ar,n.fullScreenButton_do),0,n.playbackRateButton_do):n.buttons_ar.splice(n.buttons_ar.length,0,n.playbackRateButton_do),n.positionButtons()))},n.updatePlaybackRateButtons=function(e,t){n.playbackRateButton_do&&(n.positionAndResizePlaybackRateButtons(e),setTimeout(function(){n.disablePlaybackRateButtons(t)},65),n.prevplaybackRateIndex=t)},n.setupPlaybackRateButtons=function(){if(n.playbackRatesButtonsHolder_do=new FWDEVPDO("div"),n.playbackRatesButtonsHolder_do.setOverflow("visible"),n.repeatBackground_bl)n.playbackRatesButtonsHolder_do.style().background="url('"+n.controllerBkPath_str+"')";else{n.playbackRatesButtonsBackground_do=new FWDEVPDO("img");var t=new Image;t.src=n.controllerBkPath_str,n.playbackRatesButtonsBackground_do.setScreen(t),n.playbackRatesButtonsHolder_do.addChild(n.playbackRatesButtonsBackground_do)}n.playbackRatesButtonsHolder_do.setX(300),n.playbackRatesButtonsHolder_do.setY(-300),e.main_do.addChild(n.playbackRatesButtonsHolder_do,0);var t=new Image;t.src=n.ytbQualityButtonPointerPath_str,n.playbackRatesPonter_do=new FWDEVPDO("img"),n.playbackRatesPonter_do.setScreen(t),n.playbackRatesPonter_do.setWidth(n.pointerWidth),n.playbackRatesPonter_do.setHeight(n.pointerHeight),n.playbackRatesButtonsHolder_do.addChild(n.playbackRatesPonter_do);var t=new Image;t.src=n.youtubeQualityArrowPath_str,n.playbackRateQualityArrow_do=new FWDEVPDO("img"),n.playbackRateQualityArrow_do.setScreen(t),n.playbackRateQualityArrow_do.setX(16),n.playbackRateQualityArrow_do.setWidth(5),n.playbackRateQualityArrow_do.setHeight(7),n.playbackRatesButtonsHolder_do.addChild(n.playbackRateQualityArrow_do);for(var o=0,s;o<n.totalPlaybackRateButtons;o++)FWDEVPYTBQButton.setPrototype(),s=new FWDEVPYTBQButton("no source",n.youtubeQualityButtonNormalColor_str,n.youtubeQualityButtonSelectedColor_str,void 0,o),s.addListener(FWDEVPYTBQButton.MOUSE_OVER,n.plbkQualityOver),s.addListener(FWDEVPYTBQButton.MOUSE_OUT,n.plbkQualityOut),s.addListener(FWDEVPYTBQButton.CLICK,n.plbkQualityClick),n.playbackRateButtons_ar[o]=s,n.playbackRatesButtonsHolder_do.addChild(s);n.positionAndResizePlaybackRateButtons(n.playbackRatesSource_ar),n.hidePlaybackRateButtons(!1)},n.plbkQualityOver=function(t){n.setPlaybackRateArrowPosition(t.target)},n.plbkQualityOut=function(){n.setPlaybackRateArrowPosition(void 0)},n.plbkQualityClick=function(o){n.startAtPlaybackRate=o.id,n.disablePlaybackRateButtons(n.startAtPlaybackRate),n.hidePlaybackRateButtons(!0),n.dispatchEvent(t.CHANGE_PLAYBACK_RATES,{rate:n.playbackRatesSource_ar[o.id]})},n.positionAndResizePlaybackRateButtons=function(t){if(t){var o=t.length;if(n.prevplaybackRatesQualityButtonsLength!=o){n.prevplaybackRatesQualityButtonsLength=o;var s=12,r=4,a=6,d=0,l=0,_;350>e.sH&&(s=6,r=0,a=4);for(var u=0,_;u<o;u++)_=n.playbackRateButtons_ar[u],1==t[u]?_.updateText("normal"):_.updateText(t[u]),_.setFinalSize();setTimeout(function(){for(var e=0,t;e<o;e++)t=n.playbackRateButtons_ar[e],e<o?(t.setX(9),t.w>d&&(d=t.w),t.setY(s),s+=t.h+r):-3e3!=t.x&&t.setX(-3e3);d+=20;for(var e=0,t;e<o;e++)t=n.playbackRateButtons_ar[e],t.dumy_do.w<d&&(t.setWidth(d),t.dumy_do.setWidth(d));l=s+a,n.playbackRatesPonter_do.setX(parseInt((d-n.playbackRatesPonter_do.w)/2)),n.playbackRatesPonter_do.setY(l),n.playbackRatesButtonsBackground_do&&(n.playbackRatesButtonsBackground_do.setWidth(d),n.playbackRatesButtonsBackground_do.setHeight(l)),n.playbackRatesButtonsHolder_do.setWidth(d),n.playbackRatesButtonsHolder_do.setHeight(l)},60)}}},n.disablePlaybackRateButtons=function(e){for(var t=0,o;t<n.totalPlaybackRateButtons;t++)o=n.playbackRateButtons_ar[t],t==e?(FWDAnimation.killTweensOf(n.playbackRateQualityArrow_do),n.playbackRateQualityArrow_do.setY(o.y+parseInt((o.h-n.playbackRateQualityArrow_do.h)/2)-1),o.disable(),n.playbackRateDisabledButton_do=o):o.enable()},n.setPlaybackRateArrowPosition=function(e){var t=0;t=e?e.y+parseInt((e.h-n.playbackRateQualityArrow_do.h)/2-1):n.playbackRateDisabledButton_do.y+parseInt((n.playbackRateDisabledButton_do.h-n.playbackRateQualityArrow_do.h)/2-1),FWDAnimation.killTweensOf(n.playbackRateQualityArrow_do),FWDAnimation.to(n.playbackRateQualityArrow_do,.6,{y:t,delay:.1,ease:Expo.easeInOut})},n.showPlaybackRateButtons=function(t){if(!n.arePlaybackRateButtonsShowed_bl){n.hideQualityButtons(),n.arePlaybackRateButtonsShowed_bl=!0;var o=parseInt(n.playbackRateButton_do.x+parseInt(n.playbackRateButton_do.w-n.playbackRatesButtonsHolder_do.w)/2),s=parseInt(e.sH-n.sH-n.playbackRatesButtonsHolder_do.h-6);n.hasPointerEvent_bl?window.addEventListener("pointerdown",n.hideplaybackRatesButtonsHandler):(!n.isMobile_bl&&window.addEventListener("mousedown",n.hideplaybackRatesButtonsHandler),window.addEventListener("touchstart",n.hideplaybackRatesButtonsHandler)),n.playbackRatesButtonsHolder_do.setX(o),t?FWDAnimation.to(n.playbackRatesButtonsHolder_do,.6,{y:s,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(n.playbackRatesButtonsHolder_do),n.playbackRatesButtonsHolder_do.setY(s))}},n.hidePlaybackRateButtons=function(t){n.arePlaybackRateButtonsShowed_bl&&n.showPlaybackRateButton_bl&&(n.arePlaybackRateButtonsShowed_bl=!1,t?FWDAnimation.to(n.playbackRatesButtonsHolder_do,.6,{y:e.sH,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(n.playbackRatesButtonsHolder_do),n.playbackRatesButtonsHolder_do.setY(e.sH)),n.hasPointerEvent_bl?window.removeEventListener("pointerdown",n.hideplaybackRatesButtonsHandler):(!n.isMobile_bl&&window.removeEventListener("mousedown",n.hideplaybackRatesButtonsHandler),window.removeEventListener("touchstart",n.hideplaybackRatesButtonsHandler)))},n.hideplaybackRatesButtonsHandler=function(t){var e=FWDEVPUtils.getViewportMouseCoordinates(t);FWDEVPUtils.hitTest(n.playbackRateButton_do.screen,e.screenX,e.screenY)||FWDEVPUtils.hitTest(n.playbackRatesButtonsHolder_do.screen,e.screenX,e.screenY)||n.hidePlaybackRateButtons(!0)},n.setupAdsLines=function(e){if(!(n.createdAdsOnce_bl||!e||e&&0==e.length)){if(n.resetsAdsLines(!1),n.linesHolder_do||(n.linesHolder_do=new FWDEVPDO("div"),n.linesHolder_do.setOverflow("visible"),n.mainScrubber_do.addChild(n.linesHolder_do)),n.createdAdsOnce_bl=!0,n.lines_ar=e,n.lines_ar){var t;n.line_ar=[];for(var s=0;s<n.lines_ar.length;s++)t=new FWDEVPDO("div"),t.style().background="url('"+o.adLinePat_str+"') repeat-x",t.timeStart=e[s].timeStart,t.setWidth(2),t.setHeight(n.mainScrubberDragLeft_img.height),t.isUsed_bl=!1,t.isShowed_bl=!1,t.setAlpha(0),n.line_ar[s]=t,n.linesHolder_do.addChild(t),0==n.lines_ar[s].timeStart&&t.setWidth(0)}n.totalDuration=0}},n.hideAdsLines=function(){if(n.line_ar&&(n.linesHolder_do&&n.linesHolder_do.setX(-5e3),n.line_ar))for(var e=0,t;e<n.line_ar.length;e++)t=n.line_ar[e],FWDAnimation.killTweensOf(t),t.setAlpha(0),t.isShowed_bl=!1},n.positionAdsLines=function(e){if(n.linesHolder_do&&n.line_ar&&(e&&(n.totalDuration=e),n.isAdd?n.linesHolder_do.setX(-5e3):n.linesHolder_do.setX(0),n.line_ar))for(var t=0,o;t<n.line_ar.length;t++){o=n.line_ar[t];var s=Math.round(o.timeStart/n.totalDuration*n.mainScrubberWidth)-1;s==1/0&&(s=0),isNaN(s)&&(s=0),0>s&&(s=0),o.setX(s),o.isUsed_bl||0==n.totalDuration||o.isShowed_bl||(FWDAnimation.to(o,1,{alpha:1,ease:Expo.easeOut}),o.isShowed_bl=!0)}},n.resetsAdsLines=function(e){if(n.line_ar)for(var t=0;t<n.line_ar.length;t++)FWDAnimation.killTweensOf(n.line_ar[t]),n.linesHolder_do.removeChild(n.line_ar[t]);n.linesHolder_do&&n.linesHolder_do.setX(-5e3),e&&(n.line_ar=null)},n.setIsLive=function(e){n.isLive=e,e?!n.mainScrubber_do.contains(n.live_do)&&(n.mainScrubber_do.setAlpha(.2),n.mainHolder_do.addChild(n.live_do),setTimeout(function(){n.live_do.setX(4),n.live_do.setY(-n.live_do.getHeight()-4)},100),n.disableMainScrubber()):n.mainHolder_do.contains(n.live_do)&&(n.mainHolder_do.removeChild(n.live_do),n.mainScrubber_do.setAlpha(1),n.enableMainScrubber())},n.setupMainScrubber=function(){n.mainScrubber_do=new FWDEVPDO("div"),n.mainScrubber_do.setHeight(n.scrubbersHeight),n.mainScrubberBkLeft_do=new FWDEVPDO("img"),n.mainScrubberBkLeft_do.setScreen(n.mainScrubberBkLeft_img),n.mainScrubberBkRight_do=new FWDEVPDO("img"),n.mainScrubberBkRight_do.setScreen(n.mainScrubberBkRight_img);var e=new Image;e.src=n.mainScrubberBkMiddlePath_str,n.mainScrubberBkMiddle_do=new FWDEVPDO("div"),n.mainScrubberBkMiddle_do.style().background="url('"+n.mainScrubberBkMiddlePath_str+"') repeat-x",n.mainScrubberBkMiddle_do.setHeight(n.scrubbersHeight),n.mainScrubberBkMiddle_do.setX(n.scrubbersBkLeftAndRightWidth),n.mainProgress_do=new FWDEVPDO("div"),n.mainProgress_do.setHeight(n.scrubbersHeight),n.progressLeft_do=new FWDEVPDO("img"),n.progressLeft_do.setScreen(n.progress),e=new Image,e.src=n.progressMiddlePath_str,n.progressMiddle_do=new FWDEVPDO("div"),n.progressMiddle_do.style().background="url('"+n.progressMiddlePath_str+"') repeat-x",n.progressMiddle_do.setHeight(n.scrubbersHeight),n.progressMiddle_do.setX(n.mainScrubberDragLeftWidth),n.mainScrubberDrag_do=new FWDEVPDO("div"),n.mainScrubberDrag_do.setHeight(n.scrubbersHeight),n.useHEX?(n.mainScrubberDragLeft_do=new FWDEVPDO("div"),n.mainScrubberDragLeft_do.setWidth(n.mainScrubberDragLeft_img.width+20),n.mainScrubberDragLeft_do.setHeight(n.mainScrubberDragLeft_img.height+20),n.mainScrubberDragLeft_canvas=FWDEVPUtils.getCanvasWithModifiedColor(n.mainScrubberDragLeft_img,n.nBC).canvas,n.mainScrubberDragLeft_do.screen.appendChild(n.mainScrubberDragLeft_canvas)):(n.mainScrubberDragLeft_do=new FWDEVPDO("img"),n.mainScrubberDragLeft_do.setScreen(n.mainScrubberDragLeft_img)),n.mainScrubberMiddleImage=new Image,n.mainScrubberMiddleImage.src=n.mainScrubberDragMiddlePath_str,n.volumeScrubberDragMiddle_do=new FWDEVPDO("div"),n.useHEX?(n.mainScrubberDragMiddle_do=new FWDEVPDO("div"),n.mainScrubberMiddleImage.onload=function(){var e=FWDEVPUtils.getCanvasWithModifiedColor(n.mainScrubberMiddleImage,n.nBC,!0);n.mainSCrubberMiddleCanvas=e.canvas,n.mainSCrubberDragMiddleImageBackground=e.image,n.mainScrubberDragMiddle_do.style().background="url('"+n.mainSCrubberDragMiddleImageBackground.src+"') repeat-x",setTimeout(function(){n.volumeScrubberDragMiddle_do.style().background="url('"+n.mainSCrubberDragMiddleImageBackground.src+"') repeat-x"},50)}):(n.mainScrubberDragMiddle_do=new FWDEVPDO("div"),n.mainScrubberDragMiddle_do.style().background="url('"+n.mainScrubberDragMiddlePath_str+"') repeat-x"),n.mainScrubberDragMiddle_do.setHeight(n.scrubbersHeight),n.mainScrubberDragMiddle_do.setX(n.mainScrubberDragLeftWidth),n.mainScrubberBarLine_do=new FWDEVPDO("img"),n.mainScrubberBarLine_do.setScreen(n.mainScrubberLine_img),n.mainScrubberBarLine_do.setAlpha(0),n.mainScrubberBarLine_do.hasT3D=!1,n.mainScrubberBarLine_do.hasT2D=!1,n.buttons_ar.push(n.mainScrubber_do),n.live_do=new FWDEVPDO("div"),n.live_do.hasT3D=!1,n.live_do.hasT2D=!1,n.live_do.setBackfaceVisibility(),n.live_do.style().fontFamily="Arial",n.live_do.style().fontSize="12px",n.live_do.style().whiteSpace="nowrap",n.live_do.style().textAlign="center",n.live_do.style().padding="4px",n.live_do.style().paddingLeft="6px",n.live_do.style().paddingRIght="6px",n.live_do.style().color="#FFFFFF",n.live_do.style().fontSmoothing="antialiased",n.live_do.style().webkitFontSmoothing="antialiased",n.live_do.style().textRendering="optimizeLegibility",n.live_do.style().backgroundColor="rgba(255,0,0,0.8)",n.live_do.setInnerHTML("&#x25C9; LIVE"),n.mainScrubber_do.addChild(n.mainScrubberBkLeft_do),n.mainScrubber_do.addChild(n.mainScrubberBkMiddle_do),n.mainScrubber_do.addChild(n.mainScrubberBkRight_do),n.mainScrubber_do.addChild(n.mainScrubberBarLine_do),n.mainScrubberDrag_do.addChild(n.mainScrubberDragLeft_do),n.mainScrubberDrag_do.addChild(n.mainScrubberDragMiddle_do),n.mainProgress_do.addChild(n.progressLeft_do),n.mainProgress_do.addChild(n.progressMiddle_do),n.mainScrubber_do.addChild(n.mainProgress_do),n.mainScrubber_do.addChild(n.mainScrubberDrag_do),n.mainScrubber_do.addChild(n.mainScrubberBarLine_do),n.mainHolder_do.addChild(n.mainScrubber_do),n.disableVideoScrubber_bl||(n.hasPointerEvent_bl?(n.mainScrubber_do.screen.addEventListener("pointerover",n.mainScrubberOnOverHandler),n.mainScrubber_do.screen.addEventListener("pointerout",n.mainScrubberOnOutHandler),n.mainScrubber_do.screen.addEventListener("pointerdown",n.mainScrubberOnDownHandler)):n.screen.addEventListener&&(!n.isMobile_bl&&(n.mainScrubber_do.screen.addEventListener("mouseover",n.mainScrubberOnOverHandler),n.mainScrubber_do.screen.addEventListener("mouseout",n.mainScrubberOnOutHandler),n.mainScrubber_do.screen.addEventListener("mousemove",n.updateTooltipOnMove),n.mainScrubber_do.screen.addEventListener("mousedown",n.mainScrubberOnDownHandler)),n.mainScrubber_do.screen.addEventListener("touchstart",n.mainScrubberOnDownHandler))),n.disableMainScrubber(),n.updateMainScrubber(0),FWDEVPScrubberToolip.setPrototype(),n.ttm=new FWDEVPScrubberToolip(n.mainScrubber_do,o.scrubbersToolTipLabelBackgroundColor,o.scrubbersToolTipLabelFontColor),n.addChild(n.ttm)},n.updateToolTip=function(t,s){o.showMainScrubberToolTipLabel_bl&&(e.isCasting?n.ttm.setLabel(FWDEVPUtils.formatTime(Math.round(e.cc.getDuration()*s))):n.ttm.setLabel(FWDEVPUtils.formatTime(Math.round(e.totalDuration*s))),n.ttm.setX(Math.round(n.mainScrubber_do.x+t-n.ttm.getWidth()/2)+1),n.ttm.setY(n.mainScrubber_do.y-n.ttm.h-2))},n.updateThumbnailsPreview=function(t,s){if(o.thumbnailsPreview&&n.thumbnailsPreview_do){var r=Math.round(n.mainScrubber_do.x+t-n.thumbnailsPreview_do.getWidth()/2)+1,a=0;1>r?(a=r,r=1):r>n.sW-n.thumbnailsPreview_do.w-1&&(a=r-n.sW+n.thumbnailsPreview_do.w,r=n.sW-n.thumbnailsPreview_do.w-1),n.thumbnailsPreview_do.setLabel(FWDEVPUtils.formatTime(Math.round(e.totalDuration*s)),Math.round(e.totalDuration*s),a),n.thumbnailsPreview_do.setX(r),n.thumbnailsPreview_do.setY(n.mainScrubber_do.y-n.thumbnailsPreview_do.h-2)}},n.updateTooltipOnMove=function(t){if(!n.isMainScrubberDisabled_bl){var e=FWDEVPUtils.getViewportMouseCoordinates(t),o=e.screenX-n.mainScrubber_do.getGlobalX();0>o?o=0:o>n.mainScrubberWidth-n.scrubbersOffsetWidth&&(o=n.mainScrubberWidth-n.scrubbersOffsetWidth);var s=o/n.mainScrubberWidth;n.updateToolTip(o,s),n.updateThumbnailsPreview(o,s)}},n.mainScrubberOnOverHandler=function(t){if(!n.isMainScrubberDisabled_bl){o.tempShowMainScrubberToolTipLabel_bl&&n.ttm.show(),o.thumbnailsPreview&&n.thumbnailsPreview_do&&300<n.sW&&n.thumbnailsPreview_do.show();var e=FWDEVPUtils.getViewportMouseCoordinates(t),s=e.screenX-n.mainScrubber_do.getGlobalX();0>s?s=0:s>n.mainScrubberWidth-n.scrubbersOffsetWidth&&(s=n.mainScrubberWidth-n.scrubbersOffsetWidth);var r=s/n.mainScrubberWidth;n.updateToolTip(s,r),n.updateThumbnailsPreview(s,r)}},n.mainScrubberOnOutHandler=function(){n.isMainScrubberScrubbing_bl||(n.ttm&&n.ttm.hide(),n.thumbnailsPreview_do&&n.thumbnailsPreview_do.hide())},n.mainScrubberOnDownHandler=function(s){if(!(n.isMainScrubberDisabled_bl||2==s.button)){s.preventDefault&&s.preventDefault(),n.isMainScrubberScrubbing_bl=!0;var e=FWDEVPUtils.getViewportMouseCoordinates(s),r=e.screenX-n.mainScrubber_do.getGlobalX();0>r?r=0:r>n.mainScrubberWidth-n.scrubbersOffsetWidth&&(r=n.mainScrubberWidth-n.scrubbersOffsetWidth);var a=r/n.mainScrubberWidth;n.disable_do&&n.addChild(n.disable_do),o.tempShowMainScrubberToolTipLabel_bl&&n.ttm.show(),o.thumbnailsPreview&&n.thumbnailsPreview_do&&300<n.sW&&n.thumbnailsPreview_do.show(),n.updateToolTip(r,a),n.updateThumbnailsPreview(r,a),n.updateMainScrubber(a),n.dispatchEvent(t.START_TO_SCRUB),n.dispatchEvent(t.SCRUB,{percent:a}),n.hasPointerEvent_bl?(window.addEventListener("pointermove",n.mainScrubberMoveHandler),window.addEventListener("pointerup",n.mainScrubberEndHandler)):(window.addEventListener("mousemove",n.mainScrubberMoveHandler),window.addEventListener("mouseup",n.mainScrubberEndHandler),window.addEventListener("touchmove",n.mainScrubberMoveHandler,{passive:!1}),window.addEventListener("touchend",n.mainScrubberEndHandler))}},n.mainScrubberMoveHandler=function(o){o.preventDefault&&o.preventDefault();var e=FWDEVPUtils.getViewportMouseCoordinates(o),s=e.screenX-n.mainScrubber_do.getGlobalX();0>s?s=0:s>n.mainScrubberWidth-n.scrubbersOffsetWidth&&(s=n.mainScrubberWidth-n.scrubbersOffsetWidth);var r=s/n.mainScrubberWidth;n.updateToolTip(s,r),n.updateThumbnailsPreview(s,r),n.updateMainScrubber(r),n.dispatchEvent(t.SCRUB,{percent:r})},n.mainScrubberEndHandler=function(o){if(n.isMainScrubberScrubbing_bl=!1,n.disable_do&&n.contains(n.disable_do)&&n.removeChild(n.disable_do),o){var e=FWDEVPUtils.getViewportMouseCoordinates(o);FWDEVPUtils.hitTest(n.mainScrubber_do.screen,e.screenX,e.screenY)||(n.ttm&&n.ttm.hide(),n.thumbnailsPreview_do&&n.thumbnailsPreview_do.hide())}n.dispatchEvent(t.STOP_TO_SCRUB),n.hasPointerEvent_bl?(window.removeEventListener("pointermove",n.mainScrubberMoveHandler),window.removeEventListener("pointerup",n.mainScrubberEndHandler)):(window.removeEventListener("mousemove",n.mainScrubberMoveHandler),window.removeEventListener("mouseup",n.mainScrubberEndHandler),window.removeEventListener("touchmove",n.mainScrubberMoveHandler),window.removeEventListener("touchend",n.mainScrubberEndHandler))},n.disableMainScrubber=function(){n.mainScrubber_do&&(n.isMainScrubberDisabled_bl=!0,n.mainScrubber_do.setButtonMode(!1),n.mainScrubberEndHandler(),n.mainScrubberOnOutHandler(),n.updateMainScrubber(0),n.updatePreloaderBar(0))},n.enableMainScrubber=function(){!n.mainScrubber_do||n.isLive||(n.isMainScrubberDisabled_bl=!1,n.mainScrubber_do.setButtonMode(!0))},n.updateMainScrubber=function(e){if(n.mainScrubber_do){n.isLive&&(e=0);var t=parseInt(e*n.mainScrubberWidth);isNaN(t)||(n.percentPlayed=e,!FWDEVPlayer.hasHTML5Video&&t>=n.mainProgress_do.w&&(t=n.mainProgress_do.w),1>t&&n.isMainScrubberLineVisible_bl?(n.isMainScrubberLineVisible_bl=!1,FWDAnimation.to(n.mainScrubberBarLine_do,.5,{alpha:0})):1<t&&!n.isMainScrubberLineVisible_bl&&(n.isMainScrubberLineVisible_bl=!0,FWDAnimation.to(n.mainScrubberBarLine_do,.5,{alpha:1})),n.mainScrubberDrag_do.setWidth(t),t>n.mainScrubberWidth-n.scrubbersOffsetWidth&&(t=n.mainScrubberWidth-n.scrubbersOffsetWidth),FWDAnimation.to(n.mainScrubberBarLine_do,.8,{x:t+1,ease:Expo.easeOut}))}},n.updatePreloaderBar=function(e){if(n.mainProgress_do){n.isLive&&(e=0),n.percentLoaded=e;var t=parseInt(Math.max(0,n.percentLoaded*n.mainScrubberWidth));.98<=n.percentLoaded?n.mainProgress_do.setY(-30):0!=n.mainProgress_do.y&&1!=n.percentLoaded&&n.mainProgress_do.setY(0),t>n.mainScrubberWidth-n.scrubbersOffsetWidth&&(t=Math.max(0,n.mainScrubberWidth-n.scrubbersOffsetWidth)),0>t&&(t=0),n.mainProgress_do.setWidth(t)}},n.setupPlayPauseButton=function(){if(n.useVectorIcons_bl){FWDEVPComplexButton.setPrototype(),FWDEVPUtils.cmpBtnNPos();var t=e.fontIcon+" "+e.fontIcon+"-play",s=e.fontIcon+" "+e.fontIcon+"-pause";n.playPauseButton_do=new FWDEVPComplexButton(0,0,0,0,!0,0,0,0,"<span class='"+t+"'></span>","<span class='"+s+"'></span>","EVPMainButtonsNormalState","EVPMainButtonsSelectedState")}else FWDEVPComplexButton.setPrototype(),n.playPauseButton_do=new FWDEVPComplexButton(n.playN_img,o.playSPath_str,n.pauseN_img,o.pauseSPath_str,!0,n.useHEX,n.nBC,n.sBC);n.buttons_ar.push(n.playPauseButton_do),n.playPauseButton_do.setY(parseInt((n.sH-n.playPauseButton_do.buttonHeight)/2)),n.playPauseButton_do.addListener(FWDEVPComplexButton.MOUSE_UP,n.playButtonMouseUpHandler),n.mainHolder_do.addChild(n.playPauseButton_do)},n.showPlayButton=function(){n.playPauseButton_do&&(o.showDefaultControllerForVimeo_bl||e.videoType_str!=FWDEVPlayer.VIMEO)&&n.playPauseButton_do.setButtonState(1)},n.showPauseButton=function(){n.playPauseButton_do&&(o.showDefaultControllerForVimeo_bl||e.videoType_str!=FWDEVPlayer.VIMEO)&&n.playPauseButton_do.setButtonState(0)},n.playButtonMouseUpHandler=function(){0==n.playPauseButton_do.currentState?n.dispatchEvent(t.PAUSE):n.dispatchEvent(t.PLAY)},n.setupEmbedButton=function(){if(n.useVectorIcons_bl){FWDEVPSimpleButton.setPrototype(),FWDEVPUtils.smpBtnNPos();var t=e.fontIcon+" "+e.fontIcon+"-embed";n.embedButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='"+t+"'></span>",void 0,"EVPMainButtonsNormalState","EVPMainButtonsSelectedState")}else FWDEVPSimpleButton.setPrototype(),n.embedButton_do=new FWDEVPSimpleButton(n.embedN_img,o.embedPathS_str,void 0,!0,n.useHEX,n.nBC,n.sBC);n.embedButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,n.embedButtonOnMouseUpHandler),n.embedButton_do.setY(parseInt((n.sH-n.embedButton_do.h)/2)),n.buttons_ar.push(n.embedButton_do),n.mainHolder_do.addChild(n.embedButton_do)},n.embedButtonOnMouseUpHandler=function(){n.dispatchEvent(t.SHOW_EMBED_WINDOW)},n.setupYtbButtons=function(){if(n.ytbButtonsHolder_do=new FWDEVPDO("div"),n.ytbButtonsHolder_do.setOverflow("visible"),n.repeatBackground_bl)n.ytbButtonsHolder_do.style().background="url('"+n.controllerBkPath_str+"')";else{n.ytbButtonBackground_do=new FWDEVPDO("img");var t=new Image;t.src=n.controllerBkPath_str,n.ytbButtonBackground_do.setScreen(t),n.ytbButtonsHolder_do.addChild(n.ytbButtonBackground_do)}n.ytbButtonsHolder_do.setX(300),n.ytbButtonsHolder_do.setY(-300),e.main_do.addChild(n.ytbButtonsHolder_do,0);var t=new Image;t.src=n.ytbQualityButtonPointerPath_str,n.pointer_do=new FWDEVPDO("img"),n.pointer_do.setScreen(t),n.pointer_do.setWidth(n.pointerWidth),n.pointer_do.setHeight(n.pointerHeight),n.ytbButtonsHolder_do.addChild(n.pointer_do);var t=new Image;t.src=n.youtubeQualityArrowPath_str,n.qualityArrow_do=new FWDEVPDO("img"),n.qualityArrow_do.setScreen(t),n.qualityArrow_do.setX(16),n.qualityArrow_do.setWidth(5),n.qualityArrow_do.setHeight(7);for(var s=0,r;s<n.totalYtbButtons;s++)FWDEVPYTBQButton.setPrototype(),r=new FWDEVPYTBQButton(n.ytbQuality_ar[s],n.youtubeQualityButtonNormalColor_str,n.youtubeQualityButtonSelectedColor_str,o.hdPath_str,s),r.addListener(FWDEVPYTBQButton.MOUSE_OVER,n.ytbQualityOver),r.addListener(FWDEVPYTBQButton.MOUSE_OUT,n.ytbQualityOut),r.addListener(FWDEVPYTBQButton.CLICK,n.ytbQualityClick),n.ytbButtons_ar[s]=r,n.ytbButtonsHolder_do.addChild(r);n.ytbButtonsHolder_do.addChild(n.qualityArrow_do),n.hideQualityButtons(!1)},n.ytbQualityOver=function(t){n.setYtbQualityArrowPosition(t.target)},n.ytbQualityOut=function(){n.setYtbQualityArrowPosition(void 0)},n.ytbQualityClick=function(o){n.hideQualityButtons(!0),n.dispatchEvent(t.CHANGE_YOUTUBE_QUALITY,{quality:o.target.label_str,id:o.id})},n.positionAndResizeYtbQualityButtons=function(t){if(t){var o=t.length;if(n.prevYtbQualityButtonsLength!=o){n.prevYtbQualityButtonsLength=o;var s=12,r=4,a=6,d=0,l=0,_;350>e.sH&&(s=6,r=0,a=4);for(var u=0;u<o;u++)_=n.ytbButtons_ar[u],_.updateText(t[u]),_.setFinalSize();setTimeout(function(){for(var e=0;e<n.totalYtbButtons;e++)_=n.ytbButtons_ar[e],e<o?(_.setX(9),_.w>d&&(d=_.w),_.setY(s),s+=_.h+r):-1e4!=_.x&&_.setX(-1e4);d+=20;for(var e=0;e<n.totalYtbButtons;e++)_=n.ytbButtons_ar[e],_.dumy_do.w<d&&(_.setWidth(d),_.dumy_do.setWidth(d));l=s+a,n.pointer_do.setX(parseInt((d-n.pointer_do.w)/2)),n.pointer_do.setY(l),n.ytbButtonBackground_do&&(n.ytbButtonBackground_do.setWidth(d),n.ytbButtonBackground_do.setHeight(l)),n.ytbButtonsHolder_do.setWidth(d),n.ytbButtonsHolder_do.setHeight(l)},60)}}},n.disableQualityButtons=function(e){"highres"==e||"hd1080"==e||"hd720"==e||"hd1440"==e||"hd2160"==e||"hd2880"==e?n.ytbQualityButton_do.showDisabledState():n.ytbQualityButton_do.hideDisabledState();for(var t=0,o;t<n.totalYtbButtons;t++)o=n.ytbButtons_ar[t],o.label_str==e?(FWDAnimation.killTweensOf(n.qualityArrow_do),0!=o.y&&(n.qualityArrow_do.setY(o.y+Math.round((o.h-n.qualityArrow_do.h)/2)),n.ytbDisabledButton_do=o),o.disable()):o.enable()},n.setYtbQualityArrowPosition=function(e){var t=0;t=e?e.y+Math.round((e.h-n.qualityArrow_do.h)/2):n.ytbDisabledButton_do.y+Math.round((n.ytbDisabledButton_do.h-n.qualityArrow_do.h)/2),FWDAnimation.killTweensOf(n.qualityArrow_do),FWDAnimation.to(n.qualityArrow_do,.6,{y:t,delay:.1,ease:Expo.easeInOut})},n.showQualityButtons=function(t){if(!n.areYtbQualityButtonsShowed_bl&&n.showYoutubeQualityButton_bl){n.hideSubtitleButtons(),n.areYtbQualityButtonsShowed_bl=!0;var o=parseInt(n.ytbQualityButton_do.x+parseInt(n.ytbQualityButton_do.w-n.ytbButtonsHolder_do.w)/2),s=parseInt(e.sH-n.sH-n.ytbButtonsHolder_do.h-6);window.hasPointerEvent_bl?window.addEventListener("pointerdown",n.hideQualityButtonsHandler):(!n.isMobile_bl&&window.addEventListener("mousedown",n.hideQualityButtonsHandler),window.addEventListener("touchstart",n.hideQualityButtonsHandler)),n.ytbButtonsHolder_do.setX(o),t?FWDAnimation.to(n.ytbButtonsHolder_do,.6,{y:s,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(n.ytbButtonsHolder_do),n.ytbButtonsHolder_do.setY(s))}},n.hideQualityButtons=function(t){n.areYtbQualityButtonsShowed_bl&&n.showYoutubeQualityButton_bl&&(n.areYtbQualityButtonsShowed_bl=!1,t?FWDAnimation.to(n.ytbButtonsHolder_do,.6,{y:e.sH,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(n.ytbButtonsHolder_do),n.ytbButtonsHolder_do.setY(e.sH)),window.hasPointerEvent_bl?window.removeEventListener("pointerdown",n.hideQualityButtonsHandler):(!n.isMobile_bl&&window.removeEventListener("mousedown",n.hideQualityButtonsHandler),window.removeEventListener("touchstart",n.hideQualityButtonsHandler)))},n.setupYoutubeQualityButton=function(){if(n.useVectorIcons_bl){FWDEVPSimpleButton.prototype=new FWDEVPDO("div");var t=e.fontIcon+" "+e.fontIcon+"-settings";n.ytbQualityButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='"+t+"'></span>",o.hdIcn,"EVPMainButtonsNormalState","EVPMainButtonsSelectedState")}else FWDEVPSimpleButton.prototype=new FWDEVPDO("div"),n.ytbQualityButton_do=new FWDEVPSimpleButton(n.ytbQualityN_img,o.ytbQualitySPath_str,o.ytbQualityDPath_str,!0,n.useHEX,n.nBC,n.sBC);n.ytbQualityButton_do.setX(-300),n.ytbQualityButton_do.setY(parseInt((n.sH-n.ytbQualityButton_do.h)/2)),n.ytbQualityButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,n.ytbQualityMouseUpHandler),n.mainHolder_do.addChild(n.ytbQualityButton_do)},n.ytbQualityMouseUpHandler=function(){n.areYtbQualityButtonsShowed_bl?n.hideQualityButtons(!0):n.showQualityButtons(!0)},n.hideQualityButtonsHandler=function(t){var e=FWDEVPUtils.getViewportMouseCoordinates(t);FWDEVPUtils.hitTest(n.ytbQualityButton_do.screen,e.screenX,e.screenY)||FWDEVPUtils.hitTest(n.ytbButtonsHolder_do.screen,e.screenX,e.screenY)||n.hideQualityButtons(!0)},n.addYtbQualityButton=function(){n.hasYtbButton_bl||!n.showYoutubeQualityButton_bl||(n.hasYtbButton_bl=!0,n.shareButton_do&&-1!=FWDEVPUtils.indexOfArray(n.buttons_ar,n.shareButton_do)?n.buttons_ar.splice(FWDEVPUtils.indexOfArray(n.buttons_ar,n.shareButton_do),0,n.ytbQualityButton_do):n.fullScreenButton_do&&-1!=FWDEVPUtils.indexOfArray(n.buttons_ar,n.fullScreenButton_do)?n.buttons_ar.splice(FWDEVPUtils.indexOfArray(n.buttons_ar,n.fullScreenButton_do),0,n.ytbQualityButton_do):n.buttons_ar.splice(n.buttons_ar.length,0,n.ytbQualityButton_do),n.ytbQualityButton_do.disable(),n.ytbQualityButton_do.rotation=0,n.ytbQualityButton_do.setRotation(n.ytbQualityButton_do.rotation),n.ytbQualityButton_do.hideDisabledState(),n.hideQualityButtons(!1),n.positionButtons())},n.removeYtbQualityButton=function(){n.hasYtbButton_bl&&n.showYoutubeQualityButton_bl&&(n.hasYtbButton_bl=!1,n.volumeScrubber_do&&-1!=FWDEVPUtils.indexOfArray(n.buttons_ar,n.ytbQualityButton_do)&&n.buttons_ar.splice(FWDEVPUtils.indexOfArray(n.buttons_ar,n.ytbQualityButton_do),1),n.ytbQualityButton_do.setX(-300),n.ytbQualityButton_do.hideDisabledState(),n.hideQualityButtons(!1),n.positionButtons())},n.updateQuality=function(t,o){n.hasYtbButton_bl&&n.showYoutubeQualityButton_bl&&!e.isAdd_bl&&(n.positionAndResizeYtbQualityButtons(t),setTimeout(function(){n.disableQualityButtons(o)},65))},n.enableQualtyButton=function(){n.ytbQualityButton_do&&n.ytbQualityButton_do.enable()},n.disableQualtyButton=function(){n.ytbQualityButton_do&&n.ytbQualityButton_do.disable()},n.showSubtitleButton_bl,n.subtitlesSource_ar=o.subtitles_ar,n.subtitleButtons_ar=[],n.totalSubttleButtons=10,n.setupSubtitleButton=function(){if(n.useVectorIcons_bl){FWDEVPComplexButton.setPrototype(),FWDEVPUtils.cmpBtnNPos();var t=e.fontIcon+" "+e.fontIcon+"-CC",s=e.fontIcon+" "+e.fontIcon+"-CC-off";n.subtitleButton_do=new FWDEVPComplexButton(0,0,0,0,!0,0,0,0,"<span class='"+t+"'></span>","<span class='"+s+"'></span>","EVPMainButtonsNormalState","EVPMainButtonsSelectedState")}else FWDEVPComplexButton.setPrototype(),n.subtitleButton_do=new FWDEVPComplexButton(o.showSubtitleNPath_img,o.showSubtitleSPath_str,o.hideSubtitleNPath_img,o.hideSubtitleSPath_str,!0,n.useHEX,n.nBC,n.sBC);n.subtitleButton_do.setX(-1e4),n.buttons_ar.push(n.subtitleButton_do),n.subtitleButton_do.setY(parseInt((n.sH-n.subtitleButton_do.h)/2)),n.subtitleButton_do.addListener(FWDEVPComplexButton.MOUSE_UP,n.subtitleButtonMouseUpHandler),n.mainHolder_do.addChild(n.subtitleButton_do),n.setupSubtitleButtons(),-1!=location.protocol.indexOf("file:")&&n.disableSubtitleButton(),e.subtitle_do.showSubtitileByDefault_bl&&n.subtitleButton_do.setButtonState(0)},n.subtitleButtonMouseUpHandler=function(){n.areSubtitleButtonsShowed_bl?n.hideSubtitleButtons(!0):n.showSubtitleButtons(!0)},n.disableSubtitleButton=function(){n.subtitleButton_do&&n.subtitleButton_do.disable()},n.enableSubtitleButton=function(){n.subtitleButton_do&&n.subtitleButton_do.enable()},n.updateSubtitleButtons=function(e,t){n.subtitleButton_do&&(n.subtitleButton_do.enable(),n.positionAndResizeSubtitleButtons(e),setTimeout(function(){t=n.subtitlesSource_ar.length-1-t,n.disableSubtitleButtons(t)},65),n.prevSubtitleIndex=t)},n.setupSubtitleButtons=function(){if(n.subtitlesButtonsHolder_do=new FWDEVPDO("div"),n.subtitlesButtonsHolder_do.setOverflow("visible"),n.repeatBackground_bl)n.subtitlesButtonsHolder_do.style().background="url('"+n.controllerBkPath_str+"')";else{n.subtitlesButtonsBackground_do=new FWDEVPDO("img");var t=new Image;t.src=n.controllerBkPath_str,n.subtitlesButtonsBackground_do.setScreen(t),n.subtitlesButtonsHolder_do.addChild(n.subtitlesButtonsBackground_do)}n.subtitlesButtonsHolder_do.setX(300),n.subtitlesButtonsHolder_do.setY(-300),e.main_do.addChild(n.subtitlesButtonsHolder_do,0);var t=new Image;t.src=n.ytbQualityButtonPointerPath_str,n.subtitlesPonter_do=new FWDEVPDO("img"),n.subtitlesPonter_do.setScreen(t),n.subtitlesPonter_do.setWidth(n.pointerWidth),n.subtitlesPonter_do.setHeight(n.pointerHeight),n.subtitlesButtonsHolder_do.addChild(n.subtitlesPonter_do);var t=new Image;t.src=n.youtubeQualityArrowPath_str,n.subtitleQualityArrow_do=new FWDEVPDO("img"),n.subtitleQualityArrow_do.setScreen(t),n.subtitleQualityArrow_do.setX(16),n.subtitleQualityArrow_do.setWidth(5),n.subtitleQualityArrow_do.setHeight(7),n.subtitlesButtonsHolder_do.addChild(n.subtitleQualityArrow_do);for(var s=0,r;s<n.totalSubttleButtons;s++)FWDEVPYTBQButton.setPrototype(),r=new FWDEVPYTBQButton("no source",n.youtubeQualityButtonNormalColor_str,n.youtubeQualityButtonSelectedColor_str,o.hdPath_str,s),r.addListener(FWDEVPYTBQButton.MOUSE_OVER,n.sbtQualityOver),r.addListener(FWDEVPYTBQButton.MOUSE_OUT,n.sbtQualityOut),r.addListener(FWDEVPYTBQButton.CLICK,n.sbtQualityClick),n.subtitleButtons_ar[s]=r,n.subtitlesButtonsHolder_do.addChild(r);n.hideSubtitleButtons(!1)},n.sbtQualityOver=function(t){n.setSubtitleArrowPosition(t.target)},n.sbtQualityOut=function(){n.setSubtitleArrowPosition(void 0)},n.sbtQualityClick=function(o){n.startAtSubtitle=o.id,n.disableSubtitleButtons(n.startAtSubtitle),n.hideSubtitleButtons(!0),n.dispatchEvent(t.CHANGE_SUBTITLE,{id:n.subtitlesSource_ar.length-1-o.id})},n.positionAndResizeSubtitleButtons=function(t){if(t){var o=t.length;if(n.prevSubtitlesQualityButtonsLength!=o){n.prevSubtitlesQualityButtonsLength=o;var s=12,r=4,a=6,d=0,l=0,_;350>e.sH&&(s=6,r=0,a=4);for(var u=0;u<o;u++)_=n.subtitleButtons_ar[u],_.updateText(t[u].label),_.setFinalSize();setTimeout(function(){for(var e=0;e<n.totalSubttleButtons;e++)_=n.subtitleButtons_ar[e],e<o?(_.setX(9),_.w>d&&(d=_.w),_.setY(s),s+=_.h+r):-1e4!=_.x&&_.setX(-1e4);d+=20;for(var e=0;e<n.totalSubttleButtons;e++)_=n.subtitleButtons_ar[e],_.dumy_do.w<d&&(_.setWidth(d),_.dumy_do.setWidth(d));l=s+a,n.subtitlesPonter_do.setX(parseInt((d-n.subtitlesPonter_do.w)/2)),n.subtitlesPonter_do.setY(l),n.subtitlesButtonsBackground_do&&(n.subtitlesButtonsBackground_do.setWidth(d),n.subtitlesButtonsBackground_do.setHeight(l)),n.subtitlesButtonsHolder_do.setWidth(d),n.subtitlesButtonsHolder_do.setHeight(l)},60)}}},n.disableSubtitleButtons=function(e){for(var t=0,o;t<n.totalSubttleButtons;t++)o=n.subtitleButtons_ar[t],t==e?(FWDAnimation.killTweensOf(n.subtitleQualityArrow_do),n.subtitleQualityArrow_do.setY(o.y+parseInt((o.h-n.subtitleQualityArrow_do.h)/2)+1),o.disable(),n.subtitleDisabledButton_do=o):o.enable();0==n.subtitlesSource_ar.length-1-e?n.subtitleButton_do.setButtonState(0):n.subtitleButton_do.setButtonState(1)},n.setSubtitleArrowPosition=function(e){var t=0;t=e?e.y+parseInt((e.h-n.subtitleQualityArrow_do.h)/2)-1:n.subtitleDisabledButton_do.y+parseInt((n.subtitleDisabledButton_do.h-n.subtitleQualityArrow_do.h)/2)-1,FWDAnimation.killTweensOf(n.subtitleQualityArrow_do),FWDAnimation.to(n.subtitleQualityArrow_do,.6,{y:t,delay:.1,ease:Expo.easeInOut})},n.showSubtitleButtons=function(t){if(!n.areSubtitleButtonsShowed_bl){n.hideQualityButtons(),n.areSubtitleButtonsShowed_bl=!0;var o=parseInt(n.subtitleButton_do.x+parseInt(n.subtitleButton_do.w-n.subtitlesButtonsHolder_do.w)/2),s=parseInt(e.sH-n.sH-n.subtitlesButtonsHolder_do.h-6);n.hasPointerEvent_bl?window.addEventListener("pointerdown",n.hideSubtitlesButtonsHandler):(!n.isMobile_bl&&window.addEventListener("mousedown",n.hideSubtitlesButtonsHandler),window.addEventListener("touchstart",n.hideSubtitlesButtonsHandler)),n.subtitlesButtonsHolder_do.setX(o),t?FWDAnimation.to(n.subtitlesButtonsHolder_do,.6,{y:s,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(n.subtitlesButtonsHolder_do),n.subtitlesButtonsHolder_do.setY(s))}},n.hideSubtitleButtons=function(t){n.areSubtitleButtonsShowed_bl&&n.showSubtitleButton_bl&&(n.areSubtitleButtonsShowed_bl=!1,t?FWDAnimation.to(n.subtitlesButtonsHolder_do,.6,{y:e.sH,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(n.subtitlesButtonsHolder_do),n.subtitlesButtonsHolder_do.setY(e.sH)),n.hasPointerEvent_bl?window.removeEventListener("pointerdown",n.hideSubtitlesButtonsHandler):(!n.isMobile_bl&&window.removeEventListener("mousedown",n.hideSubtitlesButtonsHandler),window.removeEventListener("touchstart",n.hideSubtitlesButtonsHandler)))},n.hideSubtitlesButtonsHandler=function(t){var e=FWDEVPUtils.getViewportMouseCoordinates(t);FWDEVPUtils.hitTest(n.subtitleButton_do.screen,e.screenX,e.screenY)||FWDEVPUtils.hitTest(n.subtitlesButtonsHolder_do.screen,e.screenX,e.screenY)||n.hideSubtitleButtons(!0)},n.setupRewindButton=function(){if(n.useVectorIcons_bl){FWDEVPSimpleButton.setPrototype(),FWDEVPUtils.smpBtnNPos();var t=e.fontIcon+" "+e.fontIcon+"-10";n.rewindButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='"+t+"'></span>",void 0,"EVPMainButtonsNormalState","EVPMainButtonsSelectedState")}else FWDEVPSimpleButton.setPrototype(),n.rewindButton_do=new FWDEVPSimpleButton(o.rewindN_img,o.rewindSPath_str,void 0,!0,n.useHEX,n.nBC,n.sBC);n.buttons_ar.push(n.rewindButton_do),n.rewindButton_do.setY(parseInt((n.sH-n.rewindButton_do.h)/2)),n.rewindButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,n.rewindButtonMouseUpHandler),n.mainHolder_do.addChild(n.rewindButton_do)},n.rewindButtonMouseUpHandler=function(){n.dispatchEvent(t.REWIND)},n.disableRewindButton=function(){n.rewindButton_do&&n.rewindButton_do.disable()},n.enableRewindButton=function(){n.rewindButton_do&&n.rewindButton_do.enable()},n.setupShareButton=function(){if(n.useVectorIcons_bl){FWDEVPSimpleButton.setPrototype(),FWDEVPUtils.smpBtnNPos();var t=e.fontIcon+" "+e.fontIcon+"-share";n.shareButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='"+t+"'></span>",void 0,"EVPMainButtonsNormalState","EVPMainButtonsSelectedState")}else FWDEVPSimpleButton.setPrototype(),n.shareButton_do=new FWDEVPSimpleButton(n.shareN_img,o.shareSPath_str,void 0,!0,n.useHEX,n.nBC,n.sBC);n.buttons_ar.push(n.shareButton_do),n.shareButton_do.setY(parseInt((n.sH-n.shareButton_do.h)/2)),n.shareButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,n.facebookButtonMouseUpHandler),n.mainHolder_do.addChild(n.shareButton_do)},n.facebookButtonMouseUpHandler=function(){n.dispatchEvent(t.SHARE)},n.setupDownloadButton=function(){if(n.useVectorIcons_bl){FWDEVPSimpleButton.setPrototype(),FWDEVPUtils.smpBtnNPos();var t=e.fontIcon+" "+e.fontIcon+"-download";n.downloadButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='"+t+"'></span>",void 0,"EVPMainButtonsNormalState","EVPMainButtonsSelectedState")}else FWDEVPSimpleButton.setPrototype(),n.downloadButton_do=new FWDEVPSimpleButton(o.downloadN_img,o.downloadSPath_str,void 0,!0,n.useHEX,n.nBC,n.sBC);n.downloadButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,n.downloadButtonOnMouseUpHandler),n.buttons_ar.push(n.downloadButton_do),n.mainHolder_do.addChild(n.downloadButton_do)},n.downloadButtonShowToolTipHandler=function(){},n.downloadButtonOnMouseUpHandler=function(){n.dispatchEvent(t.DOWNLOAD_VIDEO)},n.setupChromecastButton=function(){if(n.useVectorIcons_bl){FWDEVPComplexButton.setPrototype(),FWDEVPUtils.cmpBtnNPos();var t=e.fontIcon+" "+e.fontIcon+"-cast",s=e.fontIcon+" "+e.fontIcon+"-uncast";n.ccBtn_do=new FWDEVPComplexButton(0,0,0,0,!0,0,0,0,"<span class='"+t+"'></span>","<span class='"+s+"'></span>","EVPMainButtonsNormalState cast","EVPMainButtonsSelectedState cast")}else FWDEVPComplexButton.setPrototype(),n.ccBtn_do=new FWDEVPComplexButton(o.castN_img,o.castSPath_str,o.uncastN_img,o.uncastSPath_str,!0,n.useHEX,n.nBC,n.sBC);n.ccBtn_do.addListener(FWDEVPComplexButton.MOUSE_UP,n.chormecastMouseUpHandler),n.ccBtn_do.setY(100),n.mainHolder_do.addChild(n.ccBtn_do)},n.chormecastMouseUpHandler=function(){0==n.ccBtn_do.currentState?n.dispatchEvent(t.UNCAST):n.dispatchEvent(t.CAST)},n.removeCCButton=function(){n.ccBtn_do&&(-1==FWDEVPUtils.indexOfArray(n.buttons_ar,n.ccBtn_do)||(n.buttons_ar.splice(FWDEVPUtils.indexOfArray(n.buttons_ar,n.ccBtn_do),1),n.ccBtn_do.setX(-5e3),n.ccBtn_do.setY(parseInt((n.sH-n.ccBtn_do.buttonHeight)/2)),n.positionButtons()))},n.addCCButton=function(){n.ccBtn_do&&(-1!=FWDEVPUtils.indexOfArray(n.buttons_ar,n.ccBtn_do)||(n.fullScreenButton_do&&-1!=FWDEVPUtils.indexOfArray(n.buttons_ar,n.fullScreenButton_do)?n.buttons_ar.splice(FWDEVPUtils.indexOfArray(n.buttons_ar,n.fullScreenButton_do),0,n.ccBtn_do):n.buttons_ar.splice(n.buttons_ar.length,0,n.ccBtn_do),n.positionButtons()))},n.setupFullscreenButton=function(){if(n.useVectorIcons_bl){FWDEVPComplexButton.setPrototype(),FWDEVPUtils.cmpBtnNPos();var t=e.fontIcon+" "+e.fontIcon+"-fullscreen",s=e.fontIcon+" "+e.fontIcon+"-normalscreen";n.fullScreenButton_do=new FWDEVPComplexButton(0,0,0,0,!0,0,0,0,"<span class='"+t+"'></span>","<span class='"+s+"'></span>","EVPMainButtonsNormalState","EVPMainButtonsSelectedState")}else FWDEVPComplexButton.setPrototype(),n.fullScreenButton_do=new FWDEVPComplexButton(n.fullScreenN_img,o.fullScreenSPath_str,n.normalScreenN_img,o.normalScreenSPath_str,!0,n.useHEX,n.nBC,n.sBC);n.buttons_ar.push(n.fullScreenButton_do),n.fullScreenButton_do.setY(parseInt((n.sH-n.fullScreenButton_do.buttonHeight)/2)),n.fullScreenButton_do.addListener(FWDEVPComplexButton.MOUSE_UP,n.fullScreenButtonMouseUpHandler),n.mainHolder_do.addChild(n.fullScreenButton_do)},n.showFullScreenButton=function(){n.fullScreenButton_do&&n.fullScreenButton_do.setButtonState(1)},n.showNormalScreenButton=function(){n.fullScreenButton_do&&n.fullScreenButton_do.setButtonState(0)},n.setNormalStateToFullScreenButton=function(){n.fullScreenButton_do&&(n.fullScreenButton_do.setNormalState(!0),n.hideQualityButtons(!1))},n.fullScreenButtonMouseUpHandler=function(){1==n.fullScreenButton_do.currentState?n.dispatchEvent(t.FULL_SCREEN):n.dispatchEvent(t.NORMAL_SCREEN)},n.setupTime=function(){n.time_do=new FWDEVPDO("div"),n.time_do.hasT3D=!1,n.time_do.hasT2D=!1,n.time_do.setBackfaceVisibility(),n.time_do.screen.className="fwdevp-time",n.time_do.style().fontFamily="Arial",n.time_do.style().fontSize="12px",n.time_do.style().whiteSpace="nowrap",n.time_do.style().textAlign="center",n.time_do.style().color=n.timeColor_str,n.time_do.style().fontSmoothing="antialiased",n.time_do.style().webkitFontSmoothing="antialiased",n.time_do.style().textRendering="optimizeLegibility",n.mainHolder_do.addChild(n.time_do),n.updateTime("00:00/00:00"),n.buttons_ar.push(n.time_do)},n.updateTime=function(e){n.time_do&&(n.isLive&&(e=e.substr(0,e.indexOf("/"))),n.time_do.setInnerHTML(e),n.lastTimeLength!=e.length&&(n.time_do.w=n.time_do.getWidth(),n.positionButtons(),setTimeout(function(){n.time_do.w=n.time_do.getWidth(),n.time_do.h=n.time_do.getHeight(),n.positionButtons()},50),n.lastTimeLength=e.length))},n.setupVolumeButton=function(){if(n.useVectorIcons_bl){FWDEVPVolumeButton.setPrototype(),FWDEVPVolumeButton.prototype.hasT3D=!1,FWDEVPVolumeButton.prototype.hasT2D=!1;var t=e.fontIcon+" "+e.fontIcon+"-sound",s=e.fontIcon+" "+e.fontIcon+"-sound-off";n.volumeButton_do=new FWDEVPVolumeButton(void 0,void 0,void 0,void 0,void 0,void 0,"<span class='"+t+"'></span>","<span class='"+s+"'></span>","EVPMainButtonsNormalState","EVPMainButtonsSelectedState")}else FWDEVPVolumeButton.setPrototype(),n.volumeButton_do=new FWDEVPVolumeButton(n.volumeN_img,o.volumeSPath_str,o.volumeDPath_str,n.useHEX,n.nBC,n.sBC);n.volumeButton_do.addListener(FWDEVPVolumeButton.MOUSE_UP,n.volumeOnMouseUpHandler),n.volumeButton_do.setX(-1e4),n.volumeButton_do.setY(parseInt((n.sH-n.volumeButton_do.h)/2)),n.buttons_ar.push(n.volumeButton_do),n.mainHolder_do.addChild(n.volumeButton_do),n.allowToChangeVolume_bl||n.volumeButton_do.disable(),0==n.volume&&n.volumeButton_do.setDisabledState()},n.volumeOnMouseUpHandler=function(){var e=n.lastVolume;n.muted?(e=n.lastVolume,n.muted=!1):(e=0,n.muted=!0);n.updateVolume(e)},n.setupVolumeScrubber=function(){n.volumeScrubber_do=new FWDEVPDO("div"),n.volumeScrubber_do.setHeight(n.scrubbersHeight),n.volumeScrubberBkLeft_do=new FWDEVPDO("img"),n.volumeScrubberBkLeft_do.setScreen(n.volumeScrubberBkLeft_img),n.volumeScrubberBkRight_do=new FWDEVPDO("img"),n.volumeScrubberBkRight_do.setScreen(n.volumeScrubberBkRight_img);var e=new Image;e.src=n.volumeScrubberBkMiddlePath_str,n.volumeScrubberBkMiddle_do=new FWDEVPDO("div"),n.volumeScrubberBkMiddle_do.style().background="url('"+n.volumeScrubberBkMiddlePath_str+"') repeat-x",n.volumeScrubberBkMiddle_do.setHeight(n.scrubbersHeight),n.volumeScrubberBkMiddle_do.setX(n.scrubbersBkLeftAndRightWidth),n.volumeScrubberDrag_do=new FWDEVPDO("div"),n.volumeScrubberDrag_do.setHeight(n.scrubbersHeight),n.useHEX?(n.volumeScrubberDragLeft_do=new FWDEVPDO("div"),n.volumeScrubberDragLeft_do.setWidth(n.volumeScrubberDragLeft_img.width),n.volumeScrubberDragLeft_do.setHeight(n.volumeScrubberDragLeft_img.height),n.volumeScrubberDragLeft_canvas=FWDEVPUtils.getCanvasWithModifiedColor(n.volumeScrubberDragLeft_img,n.nBC).canvas,n.volumeScrubberDragLeft_do.screen.appendChild(n.volumeScrubberDragLeft_canvas)):(n.volumeScrubberDragLeft_do=new FWDEVPDO("img"),n.volumeScrubberDragLeft_do.setScreen(n.volumeScrubberDragLeft_img)),n.useHEX||(n.volumeScrubberDragMiddle_do=new FWDEVPDO("div"),n.volumeScrubberDragMiddle_do.style().background="url('"+n.volumeScrubberDragMiddlePath_str+"') repeat-x"),n.volumeScrubberDragMiddle_do.setHeight(n.scrubbersHeight),n.volumeScrubberDragMiddle_do.setX(n.mainScrubberDragLeftWidth),n.volumeScrubberBarLine_do=new FWDEVPDO("img"),n.volumeScrubberBarLine_do.setScreen(n.volumeScrubberLine_img),n.volumeScrubberBarLine_do.setAlpha(0),n.volumeScrubberBarLine_do.hasT3D=!1,n.volumeScrubberBarLine_do.hasT2D=!1,n.volumeScrubber_do.setWidth(n.volumeScrubberWidth),n.volumeScrubberBkMiddle_do.setWidth(n.volumeScrubberWidth-2*n.scrubbersBkLeftAndRightWidth),n.volumeScrubberBkRight_do.setX(n.volumeScrubberWidth-n.scrubbersBkLeftAndRightWidth),n.volumeScrubberDragMiddle_do.setWidth(n.volumeScrubberWidth-n.scrubbersBkLeftAndRightWidth-n.scrubbersOffsetWidth),n.volumeScrubber_do.addChild(n.volumeScrubberBkLeft_do),n.volumeScrubber_do.addChild(n.volumeScrubberBkMiddle_do),n.volumeScrubber_do.addChild(n.volumeScrubberBkRight_do),n.volumeScrubber_do.addChild(n.volumeScrubberBarLine_do),n.volumeScrubberDrag_do.addChild(n.volumeScrubberDragLeft_do),n.volumeScrubberDrag_do.addChild(n.volumeScrubberDragMiddle_do),n.volumeScrubber_do.addChild(n.volumeScrubberDrag_do),n.volumeScrubber_do.addChild(n.volumeScrubberBarLine_do),n.buttons_ar.push(n.volumeScrubber_do),n.mainHolder_do.addChild(n.volumeScrubber_do),n.disableVideoScrubber_bl||(n.hasPointerEvent_bl?(n.volumeScrubber_do.screen.addEventListener("pointerover",n.volumeScrubberOnOverHandler),n.volumeScrubber_do.screen.addEventListener("pointerout",n.volumeScrubberOnOutHandler),n.volumeScrubber_do.screen.addEventListener("pointerdown",n.volumeScrubberOnDownHandler)):n.screen.addEventListener&&(!n.isMobile_bl&&(n.volumeScrubber_do.screen.addEventListener("mouseover",n.volumeScrubberOnOverHandler),n.volumeScrubber_do.screen.addEventListener("mouseout",n.volumeScrubberOnOutHandler),n.volumeScrubber_do.screen.addEventListener("mousedown",n.volumeScrubberOnDownHandler),n.volumeScrubber_do.screen.addEventListener("click",n.volumeScrubberOnDownHandler)),n.volumeScrubber_do.screen.addEventListener("touchstart",n.volumeScrubberOnDownHandler))),o.showMainScrubberToolTipLabel_bl&&(FWDEVPScrubberToolip.setPrototype(),n.ttm2=new FWDEVPScrubberToolip(n.volumeScrubber_do,o.scrubbersToolTipLabelBackgroundColor,o.scrubbersToolTipLabelFontColor,"10"),n.addChild(n.ttm2)),n.enableVolumeScrubber(),n.updateVolumeScrubber(n.volume)},n.updateVolumeToolTip=function(){if(o.showMainScrubberToolTipLabel_bl){n.ttm2.setLabel(Math.round(100*n.volume));var e=n.volumeScrubber_do.x;e=Math.round(e+n.volume*n.volumeScrubberWidth-n.ttm2.getWidth()/2),n.ttm2.setX(e),n.ttm2.setY(n.volumeScrubber_do.y-n.ttm2.h-2)}},n.volumeScrubberOnOverHandler=function(){n.isVolumeScrubberDisabled_bl||(o.showMainScrubberToolTipLabel_bl&&n.ttm2.show(),n.updateVolumeToolTip())},n.volumeScrubberOnOutHandler=function(){n.isVolumeScrubberDisabled_bl||!n.isVolumeScrubberScrubbing_bl&&n.ttm2&&n.ttm2.hide()},n.volumeScrubberOnDownHandler=function(t){if(!(n.isVolumeScrubberDisabled_bl||2==t.button)){t.preventDefault&&t.preventDefault();var e=FWDEVPUtils.getViewportMouseCoordinates(t),s=e.screenX-n.volumeScrubber_do.getGlobalX();0>s?s=0:s>n.volumeScrubberWidth-n.scrubbersOffsetWidth&&(s=n.volumeScrubberWidth-n.scrubbersOffsetWidth);var r=s/(n.volumeScrubberWidth-n.scrubbersOffsetWidth);n.isVolumeScrubberScrubbing_bl=!0,n.updateVolume(r),o.showMainScrubberToolTipLabel_bl&&n.ttm2.show(),n.disable_do&&n.addChild(n.disable_do),n.lastVolume=r,n.updateVolume(r),n.updateVolumeToolTip(),n.hasPointerEvent_bl?(window.addEventListener("pointermove",n.volumeScrubberMoveHandler),window.addEventListener("pointerup",n.volumeScrubberEndHandler)):(window.addEventListener("mousemove",n.volumeScrubberMoveHandler),window.addEventListener("mouseup",n.volumeScrubberEndHandler),window.addEventListener("touchmove",n.volumeScrubberMoveHandler),window.addEventListener("touchend",n.volumeScrubberEndHandler))}},n.volumeScrubberMoveHandler=function(t){if(!n.isVolumeScrubberDisabled_bl){t.preventDefault&&t.preventDefault();var e=FWDEVPUtils.getViewportMouseCoordinates(t),o=e.screenX-n.volumeScrubber_do.getGlobalX();0>o?o=0:o>n.volumeScrubberWidth-n.scrubbersOffsetWidth&&(o=n.volumeScrubberWidth-n.scrubbersOffsetWidth);var s=o/(n.volumeScrubberWidth-n.scrubbersOffsetWidth);n.lastVolume=s,n.updateVolume(s),n.updateVolumeToolTip()}},n.volumeScrubberEndHandler=function(t){if(n.isVolumeScrubberScrubbing_bl=!1,n.disable_do&&n.contains(n.disable_do)&&n.removeChild(n.disable_do),t){var e=FWDEVPUtils.getViewportMouseCoordinates(t);!FWDEVPUtils.hitTest(n.volumeScrubber_do.screen,e.screenX,e.screenY)&&n.ttm2&&n.ttm2.hide()}n.hasPointerEvent_bl?(window.removeEventListener("pointermove",n.volumeScrubberMoveHandler),window.removeEventListener("pointerup",n.volumeScrubberEndHandler)):(window.removeEventListener("mousemove",n.volumeScrubberMoveHandler),window.removeEventListener("mouseup",n.volumeScrubberEndHandler),window.removeEventListener("touchmove",n.volumeScrubberMoveHandler),window.removeEventListener("touchend",n.volumeScrubberEndHandler))},n.disableVolumeScrubber=function(){n.isVolumeScrubberDisabled_bl=!0,n.volumeScrubber_do.setButtonMode(!1),n.volumeScrubberEndHandler()},n.enableVolumeScrubber=function(){n.isVolumeScrubberDisabled_bl=!1,n.volumeScrubber_do.setButtonMode(!0)},n.updateVolumeScrubber=function(e){if(n.showVolumeScrubber_bl){var t=parseInt(e*n.volumeScrubberWidth);n.volumeScrubberDrag_do.setWidth(t),1>t&&n.isVolumeScrubberLineVisible_bl?(n.isVolumeScrubberLineVisible_bl=!1,FWDAnimation.to(n.volumeScrubberBarLine_do,.5,{alpha:0})):1<t&&!n.isVolumeScrubberLineVisible_bl&&(n.isVolumeScrubberLineVisible_bl=!0,FWDAnimation.to(n.volumeScrubberBarLine_do,.5,{alpha:1})),t>n.volumeScrubberWidth-n.scrubbersOffsetWidth&&(t=n.volumeScrubberWidth-n.scrubbersOffsetWidth),FWDAnimation.to(n.volumeScrubberBarLine_do,.8,{x:t+1,ease:Expo.easeOut})}},n.updateVolume=function(e,o){n.showVolumeScrubber_bl&&(n.volume=e,1e-6>=n.volume?(n.muted=!0,n.volume=0):1<=n.voume?(n.muted=!1,n.volume=1):n.muted=!1,0==n.volume?n.volumeButton_do&&n.volumeButton_do.setDisabledState():n.volumeButton_do&&n.volumeButton_do.setEnabledState(),n.volumeScrubberBarLine_do&&n.updateVolumeScrubber(n.volume),!o&&n.dispatchEvent(t.CHANGE_VOLUME,{percent:n.volume}))},n.mute=function(){n.updateVolume()},n.show=function(e){n.isShowed_bl||(n.isShowed_bl=!0,e?FWDAnimation.to(n.mainHolder_do,.8,{y:0,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(n.mainHolder_do),n.mainHolder_do.setY(0)),setTimeout(function(){n.positionButtons(),n.style().pointerEvents="auto"},200))},n.hide=function(e,t){if(n.isShowed_bl||t){n.isShowed_bl=!1;var o=0;t&&(o=n.mainScrubberOffestTop),n.atb&&n.atb.isShowed_bl&&(o+=n.h+1),e?FWDAnimation.to(n.mainHolder_do,.8,{y:n.sH+o,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(n.mainHolder_do),n.mainHolder_do.setY(n.sH+o)),n.style().pointerEvents="none",n.hideQualityButtons(!0),n.hidePlaybackRateButtons(!0),n.hideSubtitleButtons(!0)}},n.mainScrubberDragMiddleAddPath_str=o.mainScrubberDragMiddleAddPath_str,n.updateHexColorForScrubber=function(e){if(e)n.isAdd=!0,n.mainScrubberDragMiddle_do.style().background="url('"+n.mainScrubberDragMiddleAddPath_str+"') repeat-x",n.mainScrubberDragLeft_do.screen.src=o.mainScrubberDragLeftAddPath_str;else if(n.isAdd=!1,n.useHEX&&n.mainSCrubberMiddleCanvas){var t=FWDEVPUtils.changeCanvasHEXColor(n.mainScrubberMiddleImage,n.mainSCrubberMiddleCanvas,n.nBC,!0);n.mainScrubberDragMiddle_do.style().background="url('"+t.src+"') repeat-x"}else n.mainScrubberDragMiddle_do.style().background="url('"+n.mainScrubberDragMiddlePath_str+"') repeat-x",n.mainScrubberDragLeft_do.screen.src=n.mainScrubberDragLeftSource},n.updateHEXColors=function(e,t){n.nBC=e,n.sBC=t},n.init()};t.setPrototype=function(){t.prototype=new FWDEVPDO("div")},t.CAST="cast",t.UNCAST="uncast",t.REWIND="rewind",t.DOWNLOAD_VIDEO="downloadVideo",t.SHOW_SUBTITLE="showSubtitle",t.HIDE_SUBTITLE="hideSubtitle",t.SHARE="share",t.FULL_SCREEN="fullScreen",t.NORMAL_SCREEN="normalScreen",t.PLAY="play",t.PAUSE="pause",t.START_TO_SCRUB="startToScrub",t.SCRUB="scrub",t.STOP_TO_SCRUB="stopToScrub",t.CHANGE_VOLUME="changeVolume",t.CHANGE_YOUTUBE_QUALITY="changeYoutubeQuality",t.SHOW_EMBED_WINDOW="showEmbedWindow",t.CHANGE_SUBTITLE="changeSubtitle",t.CHANGE_PLAYBACK_RATES="changePlaybackRates",t.prototype=null,window.FWDEVPController=t}(window),function(t){var o=function(e,s,n){'use strict';var r=this,a=o.prototype;r.props=e,r.skinPaths_ar=[],r.images_ar=[],r.controllerHeight=0,r.countLoadedSkinImages=0,r.volume=1,r.controllerHideDelay=0,r.startSpaceBetweenButtons=0,r.spaceBetweenButtons=0,r.scrubbersOffsetWidth=0,r.volumeScrubberOffsetRightWidth=0,r.timeOffsetLeftWidth=0,r.timeOffsetTop=0,r.logoMargins=0,r.embedWindowCloseButtonMargins=0,r.loadImageId_to,r.dispatchLoadSkinCompleteWithDelayId_to,r.allowToChangeVolume_bl=!0,r.isMobile_bl=FWDEVPUtils.isMobile,r.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,r.init=function(){r.parseProperties()},r.parseProperties=function(){if(r.useHEX=r.props.useHEXColorsForSkin,r.useHEX="yes"==r.useHEX,-1!=location.protocol.indexOf("file:")&&(r.useHEX=!1),r.mainFolderPath_str=r.props.mainFolderPath,!r.mainFolderPath_str)return void setTimeout(function(){null==r||(errorMessage_str="The <font color='#FF0000'>mainFolderPath</font> property is not defined in the constructor function!",r.dispatchEvent(o.LOAD_ERROR,{text:errorMessage_str}))},50);if(r.mainFolderPath_str.lastIndexOf("/")+1!=r.mainFolderPath_str.length&&(r.mainFolderPath_str+="/"),r.sknPth=r.props.skinPath,!r.sknPth)return void setTimeout(function(){null==r||(errorMessage_str="The <font color='#FF0000'>skinPath</font> property is not defined in the constructor function!",r.dispatchEvent(o.LOAD_ERROR,{text:errorMessage_str}))},50);r.sknPth.lastIndexOf("/")+1!=r.sknPth.length&&(r.sknPth+="/"),r.sknPth=r.mainFolderPath_str+r.sknPth,r.flashPath_str=r.mainFolderPath_str+"flashlsChromeless.swf",r.flashCopyToCBPath_str=r.mainFolderPath_str+"cb.swf",r.sendToAFriendPath_str=r.mainFolderPath_str+"sendMailToAFriend.php",r.videoDownloaderPath_str=r.mainFolderPath_str+"downloader.php",r.mailPath_str=r.mainFolderPath_str+"sendMail.php",r.hlsPath_str=r.mainFolderPath_str+"java/hls.js",r.dashPath_str=r.mainFolderPath_str+"java/dash.all.min.js",r.threeJsPath_str=r.mainFolderPath_str+"java/three.js",r.threeJsControlsPath_str=r.mainFolderPath_str+"java/threeControled.js",r.isDark=!0,-1==r.sknPth.indexOf("dark")&&(r.isDark=!1),r.timeColor_str=r.props.timeColor||"#FF0000",r.privateVideoPassword_str=r.props.privateVideoPassword,r.adsVideoSourcePath_str=r.props.adsVideoSourcePath,r.adsPageToOpenURL_str=r.props.adsPageToOpenURL,r.adsPageToOpenTarget_str=r.props.adsPageToOpenTarget||"_blank",r.adsThumbnailPath_str=r.props.adsThumbnailPath,r.youtubeQualityButtonNormalColor_str=r.props.youtubeQualityButtonNormalColor||"#FF0000",r.youtubeQualityButtonSelectedColor_str=r.props.youtubeQualityButtonSelectedColor||"#FF0000",r.posterBackgroundColor_str=r.props.posterBackgroundColor||"transparent",r.logoPosition_str=r.props.logoPosition||"topleft",r.logoPosition_str=(r.logoPosition_str+"").toLowerCase();var e="topleft"==r.logoPosition_str||"topright"==r.logoPosition_str||"bottomleft"==r.logoPosition_str||"bottomright"==r.logoPosition_str;e||(r.logoPosition_str="topleft"),r.adsButtonsPosition_str=r.props.adsButtonsPosition||"left",r.adsButtonsPosition_str=(r.adsButtonsPosition_str+"").toLowerCase(),e="left"==r.adsButtonsPosition_str||"right"==r.adsButtonsPosition_str,e||(r.adsButtonsPosition_str="left"),r.rightClickContextMenu_str=r.props.rightClickContextMenu||"developer",e="developer"==r.rightClickContextMenu_str||"disabled"==r.rightClickContextMenu_str||"default"==r.rightClickContextMenu_str,e||(r.rightClickContextMenu_str="developer"),r.logoLink_str=r.props.logoLink||"none",r.skipToVideoButtonText_str=r.props.skipToVideoButtonText||"not defined",r.skipToVideoText_str=r.props.skipToVideoText,r.shareAndEmbedTextColor_str=r.props.shareAndEmbedTextColor||"#FF0000",r.inputBackgroundColor_str=r.props.inputBackgroundColor||"#FF0000",r.borderColor_str=r.props.borderColor||"#FF0000",r.inputColor_str=r.props.inputColor||"#FF0000",r.secondaryLabelsColor_str=r.props.secondaryLabelsColor||"#FF0000",r.mainLabelsColor_str=r.props.mainLabelsColor||"#FF0000",r.adsTextNormalColor=r.props.adsTextNormalColor||"#FF0000",r.adsTextSelectedColor=r.props.adsTextSelectedColor||"#FF0000",r.adsBorderNormalColor_str=r.props.adsBorderNormalColor||"#FF0000",r.adsBorderSelectedColor_str=r.props.adsBorderSelectedColor||"#FF0000",r.nBC=r.props.normalHEXButtonsColor||"#FFFFFF",r.sBC=-1==r.sknPth.indexOf("dark")?"#000000":"#FFFFFF",r.volume=r.props.volume,null==r.volume&&(r.volume=1),isNaN(r.volume)&&(volume=1),1<r.volume?r.volume=1:0>=r.volume&&(r.volume=0),r.audioVisualizerLinesColor_str=r.props.audioVisualizerLinesColor||"#0099FF",r.audioVisualizerCircleColor_str=r.props.audioVisualizerCircleColor||"#00FF00",r.controllerHeight=r.props.controllerHeight||50,r.startSpaceBetweenButtons=r.props.startSpaceBetweenButtons||0,r.controllerHideDelay=r.props.controllerHideDelay||2,r.controllerHideDelay*=1e3,r.spaceBetweenButtons=r.props.spaceBetweenButtons||0,r.scrubbersOffsetWidth=r.props.scrubbersOffsetWidth||0,r.volumeScrubberOffsetRightWidth=r.props.volumeScrubberOffsetRightWidth||0,r.timeOffsetLeftWidth=r.props.timeOffsetLeftWidth||0,r.timeOffsetRightWidth=r.props.timeOffsetRightWidth||0,r.timeOffsetTop=r.props.timeOffsetTop||0,r.embedWindowCloseButtonMargins=r.props.embedWindowCloseButtonMargins||0,r.logoMargins=r.props.logoMargins||0,r.mainScrubberOffestTop=r.props.mainScrubberOffestTop||0,r.volumeScrubberWidth=r.props.volumeScrubberWidth||10,200<r.volumeScrubberWidth&&(r.volumeScrubberWidth=200),r.timeToHoldAds=4,r.greenScreenTolerance=r.props.greenScreenTolerance||200,r.isMobile_bl&&(r.allowToChangeVolume_bl=!1),r.showContextMenu_bl=r.props.showContextMenu,r.showContextMenu_bl="no"!=r.showContextMenu_bl,r.showDefaultControllerForVimeo_bl=r.props.showDefaultControllerForVimeo,r.showDefaultControllerForVimeo_bl="yes"==r.showDefaultControllerForVimeo_bl,r.showScrubberWhenControllerIsHidden_bl=r.props.showScrubberWhenControllerIsHidden,r.showScrubberWhenControllerIsHidden_bl="no"!=r.showScrubberWhenControllerIsHidden_bl,r.addKeyboardSupport_bl=r.props.addKeyboardSupport,r.addKeyboardSupport_bl="no"!=r.addKeyboardSupport_bl,r.autoPlay_bl=r.props.autoPlay,r.autoPlay_bl="yes"==r.autoPlay_bl,r.autoPlayText=r.props.autoPlayText,r.scrubAtTimeAtFirstPlay=r.props.scrubAtTimeAtFirstPlay||"00:00:00",r.scrubAtTimeAtFirstPlay=FWDEVPUtils.getSecondsFromString(r.scrubAtTimeAtFirstPlay),r.loop_bl=r.props.loop,r.loop_bl="yes"==r.loop_bl,r.showSkipButton_bl=!0,r.showLogo_bl=r.props.showLogo,r.showLogo_bl="yes"==r.showLogo_bl,r.showRewindButton_bl=r.props.showRewindButton,r.showRewindButton_bl="yes"==r.showRewindButton_bl,r.clsLghtbPlayFinish=r.props.closeLightBoxWhenPlayComplete,r.clsLghtbPlayFinish="yes"==r.clsLghtbPlayFinish,r.openDownloadLinkOnMobile_bl=r.props.openDownloadLinkOnMobile,r.openDownloadLinkOnMobile_bl="yes"==r.openDownloadLinkOnMobile_bl,r.thumbnailsPreview=r.props.thumbnailsPreview||!1,r.thumbnailsPreviewWidth=r.props.thumbnailsPreviewWidth||300,r.thumbnailsPreviewHeight=r.props.thumbnailsPreviewHeight||168,r.thumbnailsPreviewBackgroundColor=r.props.thumbnailsPreviewBackgroundColor||"#000",r.thumbnailsPreviewBorderColor=r.props.thumbnailsPreviewBorderColor||"#333",r.thumbnailsPreviewLabelBackgroundColor=r.props.thumbnailsPreviewLabelBackgroundColor||"#FFF",r.thumbnailsPreviewLabelFontColor=r.props.thumbnailsPreviewLabelFontColor||"#000",r.contextMenuBackgroundColor_str=r.props.contextMenuBackgroundColor||"#000000",r.contextMenuBorderColor_str=r.props.contextMenuBorderColor||"#FF0000",r.contextMenuSpacerColor_str=r.props.contextMenuSpacerColor||"#FF0000",r.contextMenuItemNormalColor_str=r.props.contextMenuItemNormalColor||"#FF0000",r.contextMenuItemSelectedColor_str=r.props.contextMenuItemSelectedColor||"#FF0000",r.contextMenuItemDisabledColor_str=r.props.contextMenuItemDisabledColor||"#FF0000",r.playVideoOnlyWhenLoggedIn_bl=r.props.playVideoOnlyWhenLoggedIn,r.playVideoOnlyWhenLoggedIn_bl="yes"==r.playVideoOnlyWhenLoggedIn_bl,r.isLoggedIn_bl=r.props.isLoggedIn,r.isLoggedIn_bl="yes"==r.isLoggedIn_bl,r.useVectorIcons_bl=r.props.useVectorIcons,r.useVectorIcons_bl="yes"==r.useVectorIcons_bl,r.loggedInMessage_str=r.props.loggedInMessage||"Only loggedin users can view this video",r.hideLogoWithController_bl=r.props.hideLogoWithController,r.hideLogoWithController_bl="yes"==r.hideLogoWithController_bl,r.showDefaultControllerForVimeo_bl=r.props.showDefaultControllerForVimeo,r.showDefaultControllerForVimeo_bl="yes"==r.showDefaultControllerForVimeo_bl,r.aopwSource=r.props.aopwSource,r.aopwBorderSize=r.props.aopwBorderSize||0,r.aopwTitle=r.props.aopwTitle||"Advertisement",r.aopwTitleColor_str=r.props.aopwTitleColor||"#FFFFFF",r.openerAlignment_str=r.props.openerAlignment,r.openerEqulizerOffsetTop=r.props.openerEqulizerOffsetTop||0,r.openerEqulizerOffsetLeft=r.props.openerEqulizerOffsetLeft||0,r.showOpener_bl=r.props.showOpener,r.showOpener_bl="yes"==r.showOpener_bl,r.showOpenerPlayPauseButton_bl=r.props.showOpenerPlayPauseButton,r.showOpenerPlayPauseButton_bl="yes"==r.showOpenerPlayPauseButton_bl,r.animate_bl=r.props.animatePlayer,r.animate_bl="yes"==r.animate_bl,r.contextMenuType=r.props.contextMenuType||"default",r.useAToB="yes"==r.props.useAToB,r.playsinline="yes"==r.props.playsinline,r.atbTimeBackgroundColor=r.props.atbTimeBackgroundColor||"transparent",r.atbTimeTextColorNormal=r.props.atbTimeTextColorNormal||"#888888",r.atbTimeTextColorSelected=r.props.atbTimeTextColorSelected||"#FFFFFF",r.atbButtonTextNormalColor=r.props.atbButtonTextNormalColor||"#888888",r.atbButtonTextSelectedColor=r.props.atbButtonTextSelectedColor||"#FFFFFF",r.atbButtonBackgroundNormalColor=r.props.atbButtonBackgroundNormalColor||"#FFFFFF",r.atbButtonBackgroundSelectedColor=r.props.atbButtonBackgroundSelectedColor||"#000000",r.scrubbersToolTipLabelBackgroundColor=r.props.scrubbersToolTipLabelBackgroundColor||"#FFFFFF",r.scrubbersToolTipLabelFontColor=r.props.scrubbersToolTipLabelFontColor||"#000000",r.showMainScrubberToolTipLabel_bl=r.props.showMainScrubberToolTipLabel,r.showMainScrubberToolTipLabel_bl="yes"==r.showMainScrubberToolTipLabel_bl,r.aopwWidth=r.props.aopwWidth||200,r.aopwHeight=r.props.aopwHeight||200,r.showAopwWindow_bl=!!(r.aopwSource&&5<r.aopwSource.length+""),r.fillEntireScreenWithPoster_bl=r.props.fillEntireScreenWithPoster,r.fillEntireScreenWithPoster_bl="yes"==r.fillEntireScreenWithPoster_bl,r.fillEntireposterScreen=r.props.fillEntireposterScreen,r.fillEntireposterScreen="yes"==r.fillEntireposterScreen,r.startAtTime=r.props.startAtTime,"00:00:00"!=r.startAtTime&&FWDEVPUtils.checkTime(r.startAtTime)||(r.startAtTime=void 0),r.stopAtTime=r.props.stopAtTime,"00:00:00"!=r.stopAtTime&&FWDEVPUtils.checkTime(r.stopAtTime)||(r.stopAtTime=void 0),r.showPoster_bl=r.props.showPoster,r.showPoster_bl="yes"==r.showPoster_bl,r.pushBtns=r.props.pushBtns||0,r.showVolumeScrubber_bl=r.props.showVolumeScrubber,r.showVolumeScrubber_bl="no"!=r.showVolumeScrubber_bl,r.showVolumeButton_bl=r.props.showVolumeButton,r.showVolumeButton_bl="no"!=r.showVolumeButton_bl,r.showControllerWhenVideoIsStopped_bl=r.props.showControllerWhenVideoIsStopped,r.showControllerWhenVideoIsStopped_bl="yes"==r.showControllerWhenVideoIsStopped_bl,r.showTime_bl=r.props.showTime,r.showTime_bl="no"!=r.showTime_bl,r.showAnnotationsPositionTool_bl=r.props.showAnnotationsPositionTool,r.showAnnotationsPositionTool_bl="yes"==r.showAnnotationsPositionTool_bl,r.showDownloadVideoButton_bl=r.props.showDownloadButton,r.showDownloadVideoButton_bl="yes"==r.showDownloadVideoButton_bl,r.showFullScreenButton_bl=r.props.showFullScreenButton,r.showFullScreenButton_bl="no"!=r.showFullScreenButton_bl,r.showChromecastButton_bl=r.props.showChromecastButton,r.showChromecastButton_bl="yes"==r.showChromecastButton_bl,(!FWDEVPUtils.isChrome||FWDEVPUtils.isLocal||-1==location.href.indexOf("https:"))&&(r.showChromecastButton_bl=!1),FWDEVPlayer.ccButton&&(r.showChromecastButton_bl=!1),r.showChromecastButton_bl&&(FWDEVPlayer.ccButton=!0),r.executeCuepointsOnlyOnce_bl=r.props.executeCuepointsOnlyOnce,r.executeCuepointsOnlyOnce_bl="yes"==r.executeCuepointsOnlyOnce_bl,r.showAnnotationsPositionTool_bl&&(r.showFullScreenButton_bl=!1),r.goFullScreenOnPlay_bl=r.props.goFullScreenOnButtonPlay,r.goFullScreenOnPlay_bl="yes"==r.goFullScreenOnPlay_bl,r.repeatBackground_bl=r.props.repeatBackground,r.repeatBackground_bl="no"!=r.repeatBackground_bl,r.showShareButton_bl=r.props.showShareButton,r.showShareButton_bl="no"!=r.showShareButton_bl,r.showEmbedButton_bl=r.props.showEmbedButton,r.showEmbedButton_bl="no"!=r.showEmbedButton_bl,r.showController_bl=r.props.showController,r.showController_bl="no"!=r.showController_bl,r.fillEntireVideoScreen_bl=r.props.fillEntireVideoScreen,r.fillEntireVideoScreen_bl="yes"==r.fillEntireVideoScreen_bl,r.showSubtitileByDefault_bl=r.props.showSubtitleByDefault,r.showSubtitileByDefault_bl="no"!=r.showSubtitileByDefault_bl,r.useResumeOnPlay_bl=r.props.useResumeOnPlay,r.useResumeOnPlay_bl="yes"==r.useResumeOnPlay_bl,r.showPopupAdsCloseButton_bl=r.props.showPopupAdsCloseButton,r.showPopupAdsCloseButton_bl="no"!=r.showPopupAdsCloseButton_bl,r.showSubtitleButton_bl=r.props.showSubtitleButton,r.showSubtitleButton_bl="no"!=r.showSubtitleButton_bl,r.useChromeless_bl=r.props.useChromeless,r.useChromeless_bl="yes"==r.useChromeless_bl,r.stickyOnScrollShowOpener_bl=r.props.stickyOnScrollShowOpener,r.stickyOnScrollShowOpener_bl="yes"==r.stickyOnScrollShowOpener_bl,r.hasAds_bl=r.adsVideoSourcePath_str,r.hasAds_bl="none"!=r.hasAds_bl,r.adsVideoSourcePath_str||(r.hasAds_bl=!1),r.openNewPageAtTheEndOfTheAds_bl=r.props.openNewPageAtTheEndOfTheAds,r.openNewPageAtTheEndOfTheAds_bl="yes"==r.openNewPageAtTheEndOfTheAds_bl,r.vastXML=r.props.vastSource,r.vastXML&&FWDEVPUtils.isIMA(r.vastXML)&&(r.imaURL=r.vastXML,r.vastXML=void 0),r.vastLinearStartTime=r.props.vastLinearStartTime||"00:00:00",r.vastNonLinearStartTime=r.props.vastNonLinearStartTime||"00:00:00",r.vastClickTroughTarget=r.props.vastClickTroughTarget||"_blank",r.redirectURL=r.props.redirectURL,null!=r.redirectURL&&4>r.redirectURL.length&&(r.redirectURL=void 0),r.redirectTarget=r.props.redirectTarget||"_self","_self"!=r.redirectTarget&&"_blank"!=r.redirectTarget&&"_parent"!=r.redirectTarget&&(r.redirectTarget="_blank"),r.showYoutubeQualityButton_bl=r.props.showQualityButton,r.showYoutubeQualityButton_bl="no"!=r.showYoutubeQualityButton_bl,r.showPlaybackRateButton_bl=r.props.showPlaybackRateButton,r.showPlaybackRateButton_bl="yes"==r.showPlaybackRateButton_bl,r.defaultPlaybackRate_str=r.props.defaultPlaybackRate,r.defaultPlaybackRate_ar=["0.25","0.5","1","1.25","1.5","2"],r.startAtPlaybackIndex=3,r.defaultPlaybackRate_ar.reverse();for(var t=!1,s=0;s<r.defaultPlaybackRate_ar.length;s++)r.defaultPlaybackRate_ar[s]==r.defaultPlaybackRate_str&&(t=!0,r.startAtPlaybackIndex=s);t||(r.defaultPlaybackRate_str=1),r.logoPath_str=r.sknPth+"logo.png",r.handPath_str=r.sknPth+"hand.cur",r.grabPath_str=r.sknPth+"grab.cur",r.props.logoPath&&(r.logoPath_str=r.props.logoPath),r.popupAddCloseNPath_str=r.sknPth+"close-button-normal.png",r.popupAddCloseSPath_str=r.sknPth+"close-button-selected.png",r.annotationAddCloseNPath_str=r.sknPth+"annotation-close-button-normal.png",r.annotationAddCloseSPath_str=r.sknPth+"annotation-close-button-selected.png",r.adLinePat_str=r.sknPth+"ad-line.png",r.playSPath_str=r.sknPth+"play-over.png";r.sknPth+"pause.png";if(r.pauseSPath_str=r.sknPth+"pause-over.png",r.bkMiddlePath_str=r.sknPth+"controller-middle.png",r.hdPath_str=r.sknPth+"hd.png",r.youtubeQualityArrowPath_str=r.sknPth+"youtube-quality-arrow.png",r.ytbQualityButtonPointerPath_str=r.sknPth+"youtube-quality-pointer.png",r.controllerBkPath_str=r.sknPth+"controller-background.png",r.skipIconSPath_str=r.sknPth+"skip-icon-over.png",r.adsBackgroundPath_str=r.sknPth+"ads-background.png",r.showSubtitleSPath_str=r.sknPth+"show-subtitle-icon-over.png",r.hideSubtitleSPath_str=r.sknPth+"hide-subtitle-icon-over.png",r.mainScrubberBkMiddlePath_str=r.sknPth+"scrubber-middle-background.png",r.mainScrubberDragMiddlePath_str=r.sknPth+"scrubber-middle-drag.png",r.mainScrubberDragLeftAddPath_str=r.sknPth+"scrubber-left-drag-add.png",r.mainScrubberDragMiddleAddPath_str=r.sknPth+"scrubber-middle-drag-add.png",r.volumeScrubberBkMiddlePath_str=r.sknPth+"scrubber-middle-background.png",r.volumeScrubberDragMiddlePath_str=r.sknPth+"scrubber-middle-drag.png",r.volumeSPath_str=r.sknPth+"volume-over.png",r.volumeDPath_str=r.sknPth+"volume-disabled.png",r.largePlayS_str=r.sknPth+"large-play-over.png",r.fullScreenSPath_str=r.sknPth+"full-screen-over.png",r.ytbQualitySPath_str=r.sknPth+"youtube-quality-over.png",r.ytbQualityDPath_str=r.sknPth+"youtube-quality-hd.png",r.shareSPath_str=r.sknPth+"share-over.png",r.normalScreenSPath_str=r.sknPth+"normal-screen-over.png",r.progressMiddlePath_str=r.sknPth+"progress-middle.png",r.embedPathS_str=r.sknPth+"embed-over.png",r.embedWindowClosePathS_str=r.sknPth+"embed-close-button-over.png",r.shareWindowClosePathS_str=r.sknPth+"embed-close-button-over.png",r.embedWindowInputBackgroundPath_str=r.sknPth+"embed-window-input-background.png",r.embedCopyButtonNPath_str=r.sknPth+"embed-copy-button.png",(r.embedCopyButtonSPath_str=r.sknPth+"embed-copy-button-over.png",r.sendButtonNPath_str=r.sknPth+"send-button.png",r.sendButtonSPath_str=r.sknPth+"send-button-over.png",r.embedWindowBackground_str=r.sknPth+"embed-window-background.png",r.playbackRateSPath_str=r.sknPth+"playback-rate-selected.png",r.passButtonNPath_str=r.sknPth+"pass-button.png",r.passButtonSPath_str=r.sknPth+"pass-button-over.png",r.annotiationsListId_str=r.props.annotiationsListId,r.annotations_el=FWDEVPUtils.getChildById(r.annotiationsListId_str),r.hasAnnotiations_bl=!!r.annotations_el,r.hasAnnotiations_bl)){var a=FWDEVPUtils.getChildren(r.annotations_el);r.annotations_ar=[];for(var d=a.length,s=0,l,_;s<d;s++)_={},l=a[s],_.start=FWDEVPSubtitle.getDuration(FWDEVPUtils.getAttributeValue(l,"data-start-time")),_.end=FWDEVPSubtitle.getDuration(FWDEVPUtils.getAttributeValue(l,"data-end-time")),_.left=parseInt(FWDEVPUtils.getAttributeValue(l,"data-left"),10),_.top=parseInt(FWDEVPUtils.getAttributeValue(l,"data-top"),10),_.showCloseButton_bl="yes"==FWDEVPUtils.getAttributeValue(l,"data-show-close-button"),_.clickSource=FWDEVPUtils.getAttributeValue(l,"data-click-source"),_.clickSourceTarget=FWDEVPUtils.getAttributeValue(l,"data-click-source-target"),_.normalStateClass=FWDEVPUtils.getAttributeValue(l,"data-normal-state-class"),_.selectedStateClass=FWDEVPUtils.getAttributeValue(l,"data-selected-state-class"),_.content=l.innerHTML,r.annotations_ar[s]=_;try{r.annotations_el.parentNode.removeChild(r.annotations_el)}catch(t){}}if(r.startAtVideoSource=r.props.startAtVideoSource||0,r.videoSource_ar=r.props.videoSource,r.videoSource_ar){r.videosSource_ar=[],r.videoLabels_ar=[];for(var s=0,_;s<r.videoSource_ar.length;s++)_={},_.source=r.videoSource_ar[s].source,-1!=_.source.indexOf("encrypt:")&&(_.source=atob(_.source.substr(8))),_.source=FWDEVPUtils.getValidSource(_.source),_.source2=r.videoSource_ar[s].source2,_.source2&&(-1!=_.source2.indexOf("encrypt:")&&(_.source2=atob(_.source2.substr(8))),_.source2=FWDEVPUtils.getValidSource(_.source2)),_.videoType=r.videoSource_ar[s].videoType||"normal",_.label=r.videoSource_ar[s].label,r.videoSource_ar[s].videoType=_.videoType,_.isLive=r.videoSource_ar[s].isLive||"no",_.isLive="yes"==_.isLive,r.videoLabels_ar[s]=r.videoSource_ar[s].label,_.isPrivate=r.videoSource_ar[s].isPrivate||"no",_.isPrivate="yes"==_.isPrivate,r.videosSource_ar[s]=_;r.videoLabels_ar.reverse(),r.startAtVideoSource>r.videoLabels_ar.length-1&&(r.startAtVideoSource=r.videoLabels_ar.length-1)}if(!r.videosSource_ar||r.videoLabels_ar&&0==r.videoSource_ar.length)return void setTimeout(function(){null==r||(errorMessage_str="Please specify at least a video source!",r.dispatchEvent(o.LOAD_ERROR,{text:errorMessage_str}))},100);if(-1==r.videosSource_ar[r.startAtVideoSource].source.indexOf(".mp4")&&(r.showDownloadVideoButton_bl=!1),r.startAtSubtitle=r.props.startAtSubtitle||0,r.subtitlesSource_ar=r.props.subtitlesSource,r.subtitlesOffLabel_str=r.props.subtitlesOffLabel||"Subtitle off",r.subtitlesSource_ar){r.subtitles_ar=[];for(var s=0,_;s<r.subtitlesSource_ar.length;s++)_={},_.source=r.subtitlesSource_ar[s].subtitlePath,_.source&&-1!=_.source.indexOf("encrypt:")&&(_.source=atob(_.source.substr(8))),_.source=FWDEVPUtils.getValidSource(_.source),_.label=r.subtitlesSource_ar[s].subtileLabel,r.subtitles_ar[s]=_;r.subtitles_ar.splice(0,0,{source:"none",label:r.subtitlesOffLabel_str}),r.subtitles_ar.reverse()}if(r.subtitlesSource_ar||(r.showSubtitleButton_bl=!1),r.popupAds_ar=r.props.popupCommercialAdsSource,r.popupAds_ar)for(var s=0;s<r.popupAds_ar.length;s++)r.popupAds_ar[s].timeStart=FWDEVPUtils.getSecondsFromString(r.popupAds_ar[s].timeStart),r.popupAds_ar[s].timeEnd=FWDEVPUtils.getSecondsFromString(r.popupAds_ar[s].timeEnd),r.popupAds_ar[s].google_ad_width=r.popupAds_ar[s].google_ad_width||600,r.popupAds_ar[s].google_ad_height=r.popupAds_ar[s].google_ad_height||200;if(r.ads_ar=r.props.adsSource,r.adsSource_ar=[],r.ads_ar)for(var s=0,u;s<r.ads_ar.length;s++)u={},u.timeStart=FWDEVPUtils.getSecondsFromString(r.ads_ar[s].timeStart),u.addDuration=FWDEVPUtils.getSecondsFromString(r.ads_ar[s].addDuration)||10,u.thumbnailSource=r.ads_ar[s].thumbnailSource,u.timeToHoldAds=r.ads_ar[s].timeToHoldAds||0,u.source=FWDEVPUtils.getValidSource(r.ads_ar[s].source),u.link=r.ads_ar[s].link,u.target=r.ads_ar[s].target,r.adsSource_ar[s]=u;if(r.imaURL&&(r.adsSource_ar=r.popupAds_ar=[]),r.cuePoints_ar=r.props.cuepoints,r.cuePointsSource_ar=[],r.cuePoints_ar)for(var s=0,c;s<r.cuePoints_ar.length;s++)c={},c.timeStart=FWDEVPUtils.getSecondsFromString(r.cuePoints_ar[s].timeStart),c.javascriptCall=r.cuePoints_ar[s].javascriptCall,c.isPlayed_bl=!1,r.cuePointsSource_ar[s]=c;r.useChromeless_bl||(r.skinPaths_ar=[{img:r.largePlayN_img=new Image,src:r.sknPth+"large-play.png"},{img:r.skipIconPath_img=new Image,src:r.sknPth+"skip-icon.png"}],r.showController_bl&&r.skinPaths_ar.push({img:r.mainScrubberBkLeft_img=new Image,src:r.sknPth+"scrubber-left-background.png"},{img:r.mainScrubberBkRight_img=new Image,src:r.sknPth+"scrubber-right-background.png"},{img:r.mainScrubberDragLeft_img=new Image,src:r.sknPth+"scrubber-left-drag.png"},{img:r.mainScrubberLine_img=new Image,src:r.sknPth+"scrubber-line.png"},{img:r.volumeScrubberBkLeft_img=new Image,src:r.sknPth+"scrubber-left-background.png"},{img:r.volumeScrubberBkRight_img=new Image,src:r.sknPth+"scrubber-right-background.png"},{img:r.volumeScrubberDragLeft_img=new Image,src:r.sknPth+"scrubber-left-drag.png"},{img:r.volumeScrubberLine_img=new Image,src:r.sknPth+"scrubber-line.png"},{img:r.progressLeft_img=new Image,src:r.sknPth+"progress-left.png"}),(r.showOpener_bl&&n.displayType==FWDEVPlayer.STICKY||r.stickyOnScrollShowOpener_bl&&n.stickyOnScroll)&&(r.skinPaths_ar.push({img:r.openerPauseN_img=new Image,src:r.sknPth+"open-pause-button-normal.png"},{img:r.openerPlayN_img=new Image,src:r.sknPth+"open-play-button-normal.png"},{img:r.animationPath_img=new Image,src:r.sknPth+"equalizer.png"},{img:r.closeN_img=new Image,src:r.sknPth+"opener-close.png"},{img:r.openTopN_img=new Image,src:r.sknPth+"open-button-normal-top.png"},{img:r.openBottomN_img=new Image,src:r.sknPth+"open-button-normal-bottom.png"}),r.openerPauseS_str=r.sknPth+"open-pause-button-selected.png",r.openerPlayS_str=r.sknPth+"open-play-button-selected.png",r.openerAnimationPath_str=r.sknPth+"equalizer.png",r.openTopSPath_str=r.sknPth+"open-button-selected-top.png",r.openBottomSPath_str=r.sknPth+"open-button-selected-bottom.png",r.openTopSPath_str=r.sknPth+"open-button-selected-top.png",r.openBottomSPath_str=r.sknPth+"open-button-selected-bottom.png",r.closeSPath_str=r.sknPth+"opener-close-over.png"),r.showRewindButton_bl&&(r.skinPaths_ar.push({img:r.rewindN_img=new Image,src:r.sknPth+"rewind.png"}),r.rewindSPath_str=r.sknPth+"rewind-over.png"),r.showShareButton_bl&&(r.shareSPath_str=r.sknPth+"share-over.png",r.facebookSPath_str=r.sknPth+"facebook-over.png",r.googleSPath_str=r.sknPth+"google-plus-over.png",r.twitterSPath_str=r.sknPth+"twitter-over.png",r.likedInSPath_str=r.sknPth+"likedin-over.png",r.bufferSPath_str=r.sknPth+"buffer-over.png",r.diggSPath_str=r.sknPth+"digg-over.png",r.redditSPath_str=r.sknPth+"reddit-over.png",r.thumbrlSPath_str=r.sknPth+"thumbrl-over.png")),r.atbSPath_str=r.sknPth+"a-to-b-button-over.png",r.useVectorIcons_bl||(r.skinPaths_ar.push({img:r.playN_img=new Image,src:r.sknPth+"play.png"},{img:r.pauseN_img=new Image,src:r.sknPth+"pause.png"},{img:r.volumeN_img=new Image,src:r.sknPth+"volume.png"},{img:r.fullScreenN_img=new Image,src:r.sknPth+"full-screen.png"},{img:r.ytbQualityN_img=new Image,src:r.sknPth+"youtube-quality.png"},{img:r.normalScreenN_img=new Image,src:r.sknPth+"normal-screen.png"},{img:r.passColoseN_img=new Image,src:r.sknPth+"embed-close-button.png"},{img:r.showSubtitleNPath_img=new Image,src:r.sknPth+"show-subtitle-icon.png"},{img:r.hideSubtitleNPath_img=new Image,src:r.sknPth+"hide-subtitle-icon.png"},{img:r.playbackRateNPath_img=new Image,src:r.sknPth+"playback-rate-normal.png"}),r.showDownloadVideoButton_bl&&r.skinPaths_ar.push({img:r.downloadN_img=new Image,src:r.sknPth+"download-button.png"}),(r.showShareButton_bl||r.showEmbedButton_bl)&&r.skinPaths_ar.push({img:r.embedN_img=new Image,src:r.sknPth+"embed.png"},{img:r.embedColoseN_img=new Image,src:r.sknPth+"embed-close-button.png"},{img:r.shareClooseN_img=new Image,src:r.sknPth+"embed-close-button.png"},{img:r.embedClooseN_img=new Image,src:r.sknPth+"embed-close-button.png"}),r.showShareButton_bl&&r.skinPaths_ar.push({img:r.shareN_img=new Image,src:r.sknPth+"share.png"},{img:r.facebookN_img=new Image,src:r.sknPth+"facebook.png"},{img:r.googleN_img=new Image,src:r.sknPth+"google-plus.png"},{img:r.twitterN_img=new Image,src:r.sknPth+"twitter.png"},{img:r.likedInkN_img=new Image,src:r.sknPth+"likedin.png"},{img:r.bufferkN_img=new Image,src:r.sknPth+"buffer.png"},{img:r.diggN_img=new Image,src:r.sknPth+"digg.png"},{img:r.redditN_img=new Image,src:r.sknPth+"reddit.png"},{img:r.thumbrlN_img=new Image,src:r.sknPth+"thumbrl.png"}),r.useAToB&&r.skinPaths_ar.push({img:r.atbNPath_img=new Image,src:r.sknPth+"a-to-b-button.png"})),r.showChromecastButton_bl&&(r.skinPaths_ar.push({img:r.castN_img=new Image,src:r.sknPth+"cast.png"},{img:r.uncastN_img=new Image,src:r.sknPth+"uncast.png"}),r.castSPath_str=r.sknPth+"cast-over.png",r.uncastSPath_str=r.sknPth+"uncast-over.png"),r.downloadSPath_str=r.sknPth+"download-button-over.png",r.showHelpScreen_bl&&r.skinPaths_ar.push({img:r.helpScreen_img=new Image,src:r.sknPth+r.helpScreenPath_str},{img:r.pauseN_img=new Image,src:r.sknPth+"ok-button.png"}),r.showAopwWindow_bl&&(r.skinPaths_ar.push({img:r.popwColseN_img=new Image,src:r.sknPth+"popw-close-button.png"}),r.popwColseSPath_str=r.sknPth+"popw-close-button-over.png",r.popwWindowBackgroundPath_str=r.sknPth+"popw-window-background.png",r.popwBarBackgroundPath_str=r.sknPth+"popw-bar-background.png"),r.totalGraphics=r.skinPaths_ar.length,r.hdIcn=r.sknPth+"hd.png",setTimeout(function(){r.onPreloaderLoadHandler()},1)},r.onPreloaderLoadHandler=function(){r.dispatchEvent(o.PRELOADER_LOAD_DONE),r.countLoadedSCript=0,r.scripts=[],r.useAToB&&!t.FWDEVPATB&&r.scripts.push("FWDEVPATB.js"),r.thumbnailsPreview&&!t.FWDEVPThumbnailsPreview&&r.scripts.push("FWDEVPThumbnailsPreview.js"),r.showChromecastButton_bl&&!t.FWDEVPCC&&(r.scripts.push("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"),r.scripts.push("FWDEVPCC.js")),r.totalScripts=r.scripts.length,r.useChromeless_bl?setTimeout(function(){r.dispatchEvent(o.SKIN_LOAD_COMPLETE)},50):r.loadPlugin()},r.loadPlugin=function(){if(r.countLoadedSCript==r.totalScripts)r.loadSkin();else{var e=document.createElement("script"),t=r.scripts[r.countLoadedSCript];t+=/\?/.test(t)?"&version="+FWDEVPlayer.V:"?version="+FWDEVPlayer.V,document.head.appendChild(e),e.src=-1==t.indexOf("gstatic")?r.mainFolderPath_str+"java/"+t:t,e.onload=r.loadPlugin,e.onerror=function(s){console.log(s),"FWDEVPATB.js"==t?r.dispatchEvent(o.LOAD_ERROR,{text:"You have enabled the A to B plugin<br>A to B js file named <font color=\"#FF0000\">FWDEVPATB.js</font> is not found. Please make sure that the content folder contains the java folder that contains the <font color=\"#FF0000\">FWDEVPATB.js</font> file. "}):"FWDEVPThumbnailsPreview.js"==t?r.dispatchEvent(o.LOAD_ERROR,{text:"You have enabled the thumbnal preview plugin<br>thumbnail preview js file named <font color=\"#FF0000\">FWDEVPThumbnailsPreview.js</font> is not found. Please make sure that the content folder contains the java folder that contains the <font color=\"#FF0000\">FWDEVPThumbnailsPreview.js</font> file. "}):"FWDEVPCC.js"==t?r.dispatchEvent(o.LOAD_ERROR,{text:"You have enabled the chromecast plugin<br>js file named <font color=\"#FF0000\">FWDEVPCC.js</font> is not found. Please make sure that the content folder contains the java folder that contains the <font color=\"#FF0000\">FWDEVPCC.js</font> file."}):-1!=t.indexOf("gstatic")&&r.dispatchEvent(o.LOAD_ERROR,{text:"Choromecast framework javascript file can't be loaded<font color=\"#FF0000\"> "+t+" </font>"})}}r.countLoadedSCript++},r.countImaLoadedSCript=0,r.startToLoadIMA=function(){r.imaScripts||(r.imaScripts=["//imasdk.googleapis.com/js/sdkloader/ima3.js",r.mainFolderPath_str+"java/FWDEVPIMA.js"],r.totalImaScripts=r.imaScripts.length,r.loadIMA())},r.loadIMA=function(){if(r.countImaLoadedSCript==r.totalImaScripts)r.imaReady=!0,r.dispatchEvent(o.IMA_READY);else{var e=document.createElement("script"),t=r.imaScripts[r.countImaLoadedSCript];document.head.appendChild(e),e.src=t,e.onload=r.loadIMA,e.onerror=function(){1==r.countImaLoadedSCript?r.dispatchEvent(o.LOAD_ERROR,{text:"IMA SDK can't be loaded"}):2==r.countImaLoadedSCript&&r.dispatchEvent(o.LOAD_ERROR,{text:"IMA file <font color=\"#FF0000\">FWDEVPIMA.js</font> is not found. Please make sure that the content folder contains the java folder that contains the <font color=\"#FF0000\">FWDEVPIMA.js</font> file. "}),r.dispatchEvent(o.IMA_ERROR)},r.countImaLoadedSCript++}},r.loadSkin=function(){for(var e=0,t,o;e<r.totalGraphics;e++)t=r.skinPaths_ar[e].img,o=r.skinPaths_ar[e].src,t.onload=r.onSkinLoadHandler,t.onerror=r.onSkinLoadErrorHandler,t.src=o},r.onSkinLoadHandler=function(){r.countLoadedSkinImages++,r.countLoadedSkinImages==r.totalGraphics&&setTimeout(function(){r.dispatchEvent(o.SKIN_LOAD_COMPLETE)},50)},r.onSkinLoadErrorHandler=function(s){message=FWDEVPUtils.isIEAndLessThen9?"Graphics image not found!":"The skin graphics with label <font color='#FF0000'>"+s.target.src+"</font> can't be loaded, check path!",t.console&&console.log(s);var e={text:message};setTimeout(function(){r.dispatchEvent(o.LOAD_ERROR,e)},50)},r.onSkinLoadHandlersss=function(){r.countLoadedSkinImages++,r.countLoadedSkinImages<r.totalGraphics?FWDEVPUtils.isIEAndLessThen9?r.loadImageId_to=setTimeout(r.loadSkin,16):r.loadSkin():setTimeout(function(){r.dispatchEvent(o.SKIN_LOAD_COMPLETE)},50)},r.downloadVideo=function(e,s){if(FWDEVPUtils.isLocal)return r.isPlaylistDispatchingError_bl=!0,void(showLoadPlaylistErrorId_to=setTimeout(function(){r.dispatchEvent(o.LOAD_ERROR,{text:"Downloading video files local is not allowed or possible! To function properly please test online."}),r.isPlaylistDispatchingError_bl=!1},50));if(!e)return r.isPlaylistDispatchingError_bl=!0,void(showLoadPlaylistErrorId_to=setTimeout(function(){r.dispatchEvent(o.LOAD_ERROR,{text:"Not allowed to download this video!"}),r.isPlaylistDispatchingError_bl=!1},50));if(-1==e.indexOf(".mp4")+"")return r.isPlaylistDispatchingError_bl=!0,void(showLoadPlaylistErrorId_to=setTimeout(function(){r.dispatchEvent(o.LOAD_ERROR,{text:"Only mp4 video files hosted on your server can be downloaded."}),r.isPlaylistDispatchingError_bl=!1},50));var n=e,a=location.origin,d=location.pathname;-1!=d.indexOf(".")&&(d=d.substr(0,d.lastIndexOf("/")+1));var l=-1==e.indexOf("http:")&&-1==e.indexOf("https:");if(l&&(e=a+d+e),!!s){s=s.replace(/[^A-Z0-9\-\_\.]+/ig,"_"),40<s.length&&(s=s.substr(0,40)+"..."),/\.(mp4)$/i.test(s)?!/\.(mp3)$/i.test(s)&&(s+=".mp3"):s+=".mp4",e=e;var _=r.videoDownloaderPath_str;if(r.dlIframe||(r.dlIframe=document.createElement("IFRAME"),r.dlIframe.style.display="none",document.documentElement.appendChild(r.dlIframe)),r.isMobile_bl&&!FWDEVPUtils.isAndroid){if(r.openDownloadLinkOnMobile_bl)return void t.open(n,"_blank");var u=r.getValidEmail();if(!u)return;if(null!=r.emailXHR){try{r.emailXHR.abort()}catch(t){}r.emailXHR.onreadystatechange=null,r.emailXHR.onerror=null,r.emailXHR=null}return r.emailXHR=new XMLHttpRequest,r.emailXHR.onreadystatechange=function(){4==r.emailXHR.readyState&&(200==r.emailXHR.status?"sent"==r.emailXHR.responseText?alert("Email sent."):alert("Error sending email, this is a server side error, the php file can't send the email!"):alert("Error sending email: "+r.emailXHR.status+": "+r.emailXHR.statusText))},r.emailXHR.onerror=function(o){try{t.console&&console.log(o),t.console&&console.log(o.message)}catch(t){}alert("Error sending email: "+o.message)},r.emailXHR.open("get",r.mailPath_str+"?mail="+u+"&name="+s+"&path="+e,!0),void r.emailXHR.send()}r.dlIframe.src=_+"?path="+e+"&name="+s}},r.getValidEmail=function(){for(var e=prompt("Please enter your email address where the video download link will be sent:");!/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/.test(e)||""==e;){if(null===e)return;e=prompt("Please enter a valid email address:")}return e},r.setVastSource=function(e){if(!r.vastLoaded_bl){r.vastScript=document.createElement("script");r.scripts[r.countLoadedSCript];return document.head.appendChild(r.vastScript),r.vastScript.src=r.mainFolderPath_str+"java/FWDEVPVast.js",r.vastScript.onload=function(){FWDEVPVast.setPrototype(),r.vast=new FWDEVPVast(r),r.vast.setSource(e)},r.vastScript.onerror=function(){r.dispatchEvent(o.LOAD_ERROR,{text:"VAST js plugin named <font color=\"#FF0000\">FWDEVPVast.js</font> is not found. Please make sure that the content folder contains the java folder that contains the <font color=\"#FF0000\">FWDEVPVast.js</font> file. "})},void(r.vastLoaded_bl=!0)}r.vast&&r.vast.setSource(e)},r.closeVast=function(){r.vast&&r.vast.closeVast()},r.fixVmapTimes=function(e){r.vast&&r.vast.fixVmapTimes(e)},r.showPropertyError=function(e){r.dispatchEvent(o.LOAD_ERROR,{text:"The property called <font color='#FF0000'>"+e+"</font> is not defined."})},r.init()};o.setPrototype=function(){o.prototype=new FWDEVPEventDispatcher},o.prototype=null,o.IMA_READY="IMAReady",o.IMA_ERROR="IMAError",o.VAST_LOADED="vastLoaded",o.PRELOADER_LOAD_DONE="onPreloaderLoadDone",o.LOAD_DONE="onLoadDone",o.LOAD_ERROR="onLoadError",o.IMAGE_LOADED="onImageLoaded",o.SKIN_LOAD_COMPLETE="onSkinLoadComplete",o.SKIN_PROGRESS="onSkinProgress",o.IMAGES_PROGRESS="onImagesPogress",o.VAST_LOADING="vastLoading",o.VAST_LOADED_DONE="vastLoadingDone",t.FWDEVPData=o}(window),function(e){e.FWDEVPDO=function(e,o,s,n){'use strict';var t=this;if(t.listeners={events_ar:[]},"div"==e||"img"==e||"canvas"==e||"input"==e||"iframe"==e)t.type=e;else throw Error("Type is not valid! "+e);t.t=n,t.children_ar=[],t.position=o||"absolute",t.overflow=s||"hidden",t.display="block",t.visible=!0,t.x=t.y=t.w=t.h=t.rotation=0,t.scale=t.alpha=1,t.hasT3D=FWDEVPUtils.hasTransform3d,t.hasT2D=FWDEVPUtils.hasTransform2d,t.init=function(){t.setScreen()},t.getTransform=function(){for(var e=["transform","msTransform","WebkitTransform","MozTransform","OTransform"],o;o=e.shift();)if("undefined"!=typeof t.screen.style[o])return o;return!1},t.setScreen=function(e){"img"==t.type&&e?(t.screen=e,t.setMainProperties()):(t.screen=document.createElement(t.type),t.setMainProperties())},t.setMainProperties=function(){t.transform=t.getTransform(),t.setPosition(t.position),t.setOverflow(t.overflow),t.screen.style.left="0px",t.screen.style.top="0px",t.screen.style.margin="0px",t.screen.style.padding="0px",t.screen.style.maxWidth="none",t.screen.style.maxHeight="none",t.screen.style.border="none",t.screen.style.lineHeight="1",t.screen.style.backfaceVisibility="hidden","img"==e&&(t.setWidth(t.screen.width),t.setHeight(t.screen.height))},t.setBackfaceVisibility=function(){t.screen.style.backfaceVisibility="visible"},t.setSelectable=function(e){e?(FWDEVPUtils.isFirefox||FWDEVPUtils.isIE?(t.screen.style.userSelect="element",t.screen.style.MozUserSelect="element",t.screen.style.msUserSelect="element"):FWDEVPUtils.isSafari?(t.screen.style.userSelect="text",t.screen.style.webkitUserSelect="text"):(t.screen.style.userSelect="auto",t.screen.style.webkitUserSelect="auto"),t.screen.style.khtmlUserSelect="auto",t.screen.style.oUserSelect="auto",FWDEVPUtils.isIEAndLessThen9?(t.screen.ondragstart=null,t.screen.onselectstart=null,t.screen.ontouchstart=null):(t.screen.ondragstart=void 0,t.screen.onselectstart=void 0,t.screen.ontouchstart=void 0),t.screen.style.webkitTouchCallout="default",t.hasBeenSetSelectable_bl=!1):(t.screen.style.userSelect="none",t.screen.style.MozUserSelect="none",t.screen.style.webkitUserSelect="none",t.screen.style.khtmlUserSelect="none",t.screen.style.oUserSelect="none",t.screen.style.msUserSelect="none",t.screen.msUserSelect="none",t.screen.ondragstart=function(){return!1},t.screen.onselectstart=function(){return!1},t.screen.ontouchstart=function(){return!1},t.screen.style.webkitTouchCallout="none",t.hasBeenSetSelectable_bl=!0)},t.getScreen=function(){return t.screen},t.setVisible=function(e){t.visible=e,t.screen.style.visibility=!0==t.visible?"visible":"hidden"},t.getVisible=function(){return t.visible},t.setResizableSizeAfterParent=function(){t.screen.style.width="100%",t.screen.style.height="100%"},t.style=function(){return t.screen.style},t.setOverflow=function(e){t.overflow=e,t.screen.style.overflow=t.overflow},t.setPosition=function(e){t.position=e,t.screen.style.position=t.position},t.setDisplay=function(e){t.display=e,t.screen.style.display=t.display},t.setButtonMode=function(e){t.buttonMode=e,t.screen.style.cursor=!0==t.buttonMode?"pointer":"default"},t.setBkColor=function(e){t.screen.style.backgroundColor=e},t.setInnerHTML=function(e){t.innerHTML=e,t.screen.innerHTML=t.innerHTML},t.getInnerHTML=function(){return t.innerHTML},t.getRect=function(){return t.screen.getBoundingClientRect()},t.setAlpha=function(e){t.alpha=e,t.screen.style.opacity=t.alpha},t.getAlpha=function(){return t.alpha},t.getRect=function(){return t.screen.getBoundingClientRect()},t.getGlobalX=function(){return t.getRect().left},t.getGlobalY=function(){return t.getRect().top},t.setX=function(e){t.x=e,t.hasT3D?t.t?t.screen.style[t.transform]="translate3d("+t.x+"px,"+t.y+"px,0) scale("+t.scale+" , "+t.scale+") rotate("+t.rotation+"deg)":t.screen.style[t.transform]="translate3d("+t.x+"px,"+t.y+"px,0)":t.hasT2D?t.t?t.screen.style[t.transform]="translate("+t.x+"px,"+t.y+"px) scale("+t.scale+" , "+t.scale+") rotate("+t.rotation+"deg)":t.screen.style[t.transform]="translate("+t.x+"px,"+t.y+"px)":t.screen.style.left=t.x+"px"},t.getX=function(){return t.x},t.setY=function(e){t.y=e,t.hasT3D?t.t?t.screen.style[t.transform]="translate3d("+t.x+"px,"+t.y+"px,0) scale("+t.scale+" , "+t.scale+") rotate("+t.rotation+"deg)":t.screen.style[t.transform]="translate3d("+t.x+"px,"+t.y+"px,0)":t.hasT2D?t.t?t.screen.style[t.transform]="translate("+t.x+"px,"+t.y+"px) scale("+t.scale+" , "+t.scale+") rotate("+t.rotation+"deg)":t.screen.style[t.transform]="translate("+t.x+"px,"+t.y+"px)":t.screen.style.top=t.y+"px"},t.getY=function(){return t.y},t.setScale2=function(e){t.scale=e,t.hasT3D?t.t?t.screen.style[t.transform]="translate3d("+t.x+"px,"+t.y+"px,0) scale("+t.scale+" , "+t.scale+") rotate("+t.rotation+"deg)":t.screen.style[t.transform]="translate3d("+t.x+"px,"+t.y+"px,0)":t.hasT2D&&(t.t?t.screen.style[t.transform]="translate("+t.x+"px,"+t.y+"px) scale("+t.scale+" , "+t.scale+") rotate("+t.rotation+"deg)":t.screen.style[t.transform]="translate("+t.x+"px,"+t.y+"px)")},t.getScale=function(){return t.scale},t.setRotation=function(e){t.rotation=e,t.hasT3D?t.t?t.screen.style[t.transform]="translate3d("+t.x+"px,"+t.y+"px,0) scale("+t.scale+" , "+t.scale+") rotate("+t.rotation+"deg)":t.screen.style[t.transform]="translate3d("+t.x+"px,"+t.y+"px,0)":t.hasT2D&&(t.t?t.screen.style[t.transform]="translate("+t.x+"px,"+t.y+"px) scale("+t.scale+" , "+t.scale+") rotate("+t.rotation+"deg)":t.screen.style[t.transform]="translate("+t.x+"px,"+t.y+"px)")},t.getRotation=function(){return t.rotation},t.setWidth=function(e){t.w=e,"img"==t.type?(t.screen.width=t.w,t.screen.style.width=t.w+"px"):t.screen.style.width=t.w+"px"},t.getWidth=function(){return"div"==t.type||"input"==t.type?0==t.screen.offsetWidth?t.w:t.screen.offsetWidth:"img"==t.type?0==t.screen.offsetWidth?0==t.screen.width?t._w:t.screen.width:t.screen.offsetWidth:"canvas"==t.type?0==t.screen.offsetWidth?t.w:t.screen.offsetWidth:void 0},t.setHeight=function(e){t.h=e,"img"==t.type?(t.screen.height=t.h,t.screen.style.height=t.h+"px"):t.screen.style.height=t.h+"px"},t.getHeight=function(){return"div"==t.type||"input"==t.type?0==t.screen.offsetHeight?t.h:t.screen.offsetHeight:"img"==t.type?0==t.screen.offsetHeight?0==t.screen.height?t.h:t.screen.height:t.screen.offsetHeight:"canvas"==t.type?0==t.screen.offsetHeight?t.h:t.screen.offsetHeight:void 0},t.addChild=function(o){t.contains(o)?(t.children_ar.splice(FWDEVPUtils.indexOfArray(t.children_ar,o),1),t.children_ar.push(o),t.screen.appendChild(o.screen)):(t.children_ar.push(o),t.screen.appendChild(o.screen))},t.removeChild=function(o){if(t.contains(o))t.children_ar.splice(FWDEVPUtils.indexOfArray(t.children_ar,o),1),t.screen.removeChild(o.screen);else throw Error("##removeChild()## Child dose't exist, it can't be removed!")},t.contains=function(o){return-1!=FWDEVPUtils.indexOfArray(t.children_ar,o)},t.addChildAt=function(o,e){if(0==t.getNumChildren())t.children_ar.push(o),t.screen.appendChild(o.screen);else if(1==e)t.screen.insertBefore(o.screen,t.children_ar[0].screen),t.screen.insertBefore(t.children_ar[0].screen,o.screen),t.contains(o)?t.children_ar.splice(FWDEVPUtils.indexOfArray(t.children_ar,o),1,o):t.children_ar.splice(FWDEVPUtils.indexOfArray(t.children_ar,o),0,o);else{if(0>e||e>t.getNumChildren()-1)throw Error("##getChildAt()## Index out of bounds!");t.screen.insertBefore(o.screen,t.children_ar[e].screen),t.contains(o)?t.children_ar.splice(FWDEVPUtils.indexOfArray(t.children_ar,o),1,o):t.children_ar.splice(FWDEVPUtils.indexOfArray(t.children_ar,o),0,o)}},t.getChildAt=function(e){if(0>e||e>t.getNumChildren()-1)throw Error("##getChildAt()## Index out of bounds!");if(0==t.getNumChildren())throw Errror("##getChildAt## Child dose not exist!");return t.children_ar[e]},t.getChildIndex=function(e){return t.contains(e)?FWDEVPUtils.indexOfArray(t.children_ar,e):0},t.removeChildAtZero=function(){t.screen.removeChild(t.children_ar[0].screen),t.children_ar.shift()},t.getNumChildren=function(){return t.children_ar.length},t.addListener=function(e,t){if(null==e)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");if("function"!=typeof t)throw Error("listener must be of type Function.");var o={};o.type=e,o.listener=t,o.target=this,this.listeners.events_ar.push(o)},t.dispatchEvent=function(e,t){if(null!=this.listeners){if(null==e)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");for(var o=0,s=this.listeners.events_ar.length;o<s;o++)if(this.listeners.events_ar[o].target===this&&this.listeners.events_ar[o].type===e){if(t)for(var n in t)this.listeners.events_ar[o][n]=t[n];this.listeners.events_ar[o].listener.call(this,this.listeners.events_ar[o])}}},t.removeListener=function(e,t){if(null==e)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");if("function"!=typeof t)throw Error("listener must be of type Function."+e);for(var o=0,s=this.listeners.events_ar.length;o<s;o++)if(this.listeners.events_ar[o].target===this&&this.listeners.events_ar[o].type===e&&this.listeners.events_ar[o].listener===t){this.listeners.events_ar.splice(o,1);break}},t.disposeImage=function(){"img"==t.type&&(t.screen.src=null)},t.destroy=function(){t.hasBeenSetSelectable_bl&&(t.screen.ondragstart=null,t.screen.onselectstart=null,t.screen.ontouchstart=null),t.listeners=null,t.children_ar=null,t.children_ar=null,t=null},t.init()}}(window),function(t){var o=function(e,s){'use strict';function n(e){if(!(t.top!=t&&FWDEVPUtils.isIE)){e||(e=this);var o,s;document.body.createTextRange?(o=document.body.createTextRange(),o.moveToElementText(e),o.select()):t.getSelection&&document.createRange&&(s=t.getSelection(),o=document.createRange(),o.selectNodeContents(e),s.removeAllRanges(),s.addRange(o))}}var r=this,a=o.prototype;r.embedColoseN_img=e.embedColoseN_img,r.embedWindowBackground_str=e.embedWindowBackground_str,r.embedWindowInputBackgroundPath_str=e.embedWindowInputBackgroundPath_str,r.secondaryLabelsColor_str=e.secondaryLabelsColor_str,r.inputColor_str=e.inputColor_str,r.mainLabelsColor_str=e.mainLabelsColor_str,r.sendButtonNPath_str=e.sendButtonNPath_str,r.sendButtonSPath_str=e.sendButtonSPath_str,r.inputBackgroundColor_str=e.inputBackgroundColor_str,r.borderColor_str=e.borderColor_str,r.sendToAFriendPath_str=e.sendToAFriendPath_str,r.maxTextWidth=0,r.totalWidth=0,r.sW=0,r.sH=0,r.buttonWidth=44,r.buttonHeight=19,r.embedWindowCloseButtonMargins=e.embedWindowCloseButtonMargins,r.shareAndEmbedTextColor_str=e.shareAndEmbedTextColor_str,r.isMobile_bl=FWDEVPUtils.isMobile,r.useVectorIcons_bl=e.useVectorIcons_bl,this.init=function(){if(!r.closeButton_do){if(r.setBackfaceVisibility(),r.mainHolder_do=new FWDEVPDO("div"),r.mainHolder_do.hasT3D=!1,r.mainHolder_do.hasT2D=!1,r.mainHolder_do.setBackfaceVisibility(),r.bk_do=new FWDEVPDO("div"),r.bk_do.style().width="100%",r.bk_do.style().height="100%",r.bk_do.setAlpha(.9),r.bk_do.style().background="url('"+r.embedWindowBackground_str+"')",r.linkAndEmbedHolder_do=new FWDEVPDO("div"),r.linkAndEmbedHolderBk_do=new FWDEVPDO("div"),r.linkAndEmbedHolderBk_do.style().background="url('"+r.embedWindowBackground_str+"')",r.linkAndEmbedHolderBk_do.style().borderStyle="solid",r.linkAndEmbedHolderBk_do.style().borderWidth="1px",r.linkAndEmbedHolderBk_do.style().borderColor=r.borderColor_str,r.mainLbl=new FWDEVPDO("div"),r.mainLbl.setBackfaceVisibility(),r.mainLbl.style().fontFamily="Arial",r.mainLbl.style().fontSize="12px",r.mainLbl.style().color=r.mainLabelsColor_str,r.mainLbl.style().whiteSpace="nowrap",r.mainLbl.style().fontSmoothing="antialiased",r.mainLbl.style().webkitFontSmoothing="antialiased",r.mainLbl.style().textRendering="optimizeLegibility",r.mainLbl.style().padding="0px",r.mainLbl.screen.className="EVP-main-label",r.mainLbl.setInnerHTML("SHARE & EMBED"),r.linkLbl=new FWDEVPDO("div"),r.linkLbl.screen.className="EVP-secnd-label",r.linkLbl.setBackfaceVisibility(),r.linkLbl.style().fontFamily="Arial",r.linkLbl.style().fontSize="12px",r.linkLbl.style().color=r.secondaryLabelsColor_str,r.linkLbl.style().whiteSpace="nowrap",r.linkLbl.style().fontSmoothing="antialiased",r.linkLbl.style().webkitFontSmoothing="antialiased",r.linkLbl.style().textRendering="optimizeLegibility",r.linkLbl.style().padding="0px",r.linkLbl.setInnerHTML("Link to this video:"),r.linkTxt=new FWDEVPDO("div"),r.linkTxt.screen.className="EVP-embed-inpt",r.linkTxt.setBackfaceVisibility(),r.linkTxt.style().fontFamily="Arial",r.linkTxt.style().fontSize="12px",r.linkTxt.style().color=r.shareAndEmbedTextColor_str,FWDEVPUtils.isIEAndLessThen9||(r.linkTxt.style().wordBreak="break-all"),r.linkTxt.style().fontSmoothing="antialiased",r.linkTxt.style().webkitFontSmoothing="antialiased",r.linkTxt.style().textRendering="optimizeLegibility",r.linkTxt.style().padding="6px",r.linkTxt.style().paddingTop="4px",r.linkTxt.style().paddingBottom="4px",r.linkTxt.style().backgroundColor=r.inputBackgroundColor_str,r.linkTxt.screen.onclick=n,r.embedLbl=new FWDEVPDO("div"),r.embedLbl.screen.className="EVP-secnd-label",r.embedLbl.setBackfaceVisibility(),r.embedLbl.style().fontFamily="Arial",r.embedLbl.style().fontSize="12px",r.embedLbl.style().color=r.secondaryLabelsColor_str,r.embedLbl.style().whiteSpace="nowrap",r.embedLbl.style().fontSmoothing="antialiased",r.embedLbl.style().webkitFontSmoothing="antialiased",r.embedLbl.style().textRendering="optimizeLegibility",r.embedLbl.style().padding="0px",r.embedLbl.setInnerHTML("Embed this video:"),r.embdTxt=new FWDEVPDO("div"),r.embdTxt.screen.className="EVP-embed-inpt",r.embdTxt.setBackfaceVisibility(),FWDEVPUtils.isIEAndLessThen9||(r.embdTxt.style().wordBreak="break-all"),r.embdTxt.style().fontFamily="Arial",r.embdTxt.style().fontSize="12px",r.embdTxt.style().lineHeight="16px",r.embdTxt.style().color=r.shareAndEmbedTextColor_str,r.embdTxt.style().fontSmoothing="antialiased",r.embdTxt.style().webkitFontSmoothing="antialiased",r.embdTxt.style().textRendering="optimizeLegibility",r.embdTxt.style().backgroundColor=r.inputBackgroundColor_str,r.embdTxt.style().padding="6px",r.embdTxt.style().paddingTop="4px",r.embdTxt.style().paddingBottom="4px",r.embdTxt.screen.onclick=n,FWDEVPSimpleSizeButton.setPrototype(),r.copyLinkButton_do=new FWDEVPSimpleSizeButton(e.embedCopyButtonNPath_str,e.embedCopyButtonSPath_str,r.buttonWidth,r.buttonHeight,e.useHEX,e.nBC,e.sBC,!0),r.copyLinkButton_do.screen.style.position="absolute",r.copyLinkButton_do.addListener(FWDEVPSimpleSizeButton.CLICK,function(){r.copyToClipboard(r.linkTxt.screen)}),FWDEVPSimpleSizeButton.setPrototype(),r.copyEmbedBtn=new FWDEVPSimpleSizeButton(e.embedCopyButtonNPath_str,e.embedCopyButtonSPath_str,r.buttonWidth,r.buttonHeight,e.useHEX,e.nBC,e.sBC,!0),r.copyEmbedBtn.screen.style.position="absolute",r.copyEmbedBtn.addListener(FWDEVPSimpleSizeButton.CLICK,function(){r.copyToClipboard(r.embdTxt.screen)}),r.sendMainHolder_do=new FWDEVPDO("div"),r.sendMainHldBk=new FWDEVPDO("div"),r.sendMainHldBk.style().background="url('"+r.embedWindowBackground_str+"')",r.sendMainHldBk.style().borderStyle="solid",r.sendMainHldBk.style().borderWidth="1px",r.sendMainHldBk.style().borderColor=r.borderColor_str,r.sendMainLbl=new FWDEVPDO("div"),r.sendMainLbl.setBackfaceVisibility(),r.sendMainLbl.style().fontFamily="Arial",r.sendMainLbl.style().fontSize="12px",r.sendMainLbl.style().color=r.mainLabelsColor_str,r.sendMainLbl.style().whiteSpace="nowrap",r.sendMainLbl.style().padding="0px",r.sendMainLbl.screen.className="EVP-main-label",r.sendMainLbl.setInnerHTML("SEND TO A FRIEND"),r.yourEmailLabel_do=new FWDEVPDO("div"),r.yourEmailLabel_do.screen.className="EVP-secnd-label",r.yourEmailLabel_do.setBackfaceVisibility(),r.yourEmailLabel_do.style().fontFamily="Arial",r.yourEmailLabel_do.style().fontSize="12px",r.yourEmailLabel_do.style().color=r.secondaryLabelsColor_str,r.yourEmailLabel_do.style().whiteSpace="nowrap",r.yourEmailLabel_do.style().padding="0px",r.yourEmailLabel_do.setInnerHTML("Your email:"),r.yourEmailInpt=new FWDEVPDO("input"),r.yourEmailInpt.screen.className="EVP-embed-inpt",r.yourEmailInpt.setBackfaceVisibility(),r.yourEmailInpt.style().fontFamily="Arial",r.yourEmailInpt.style().fontSize="12px",r.yourEmailInpt.style().backgroundColor=r.inputBackgroundColor_str,r.yourEmailInpt.style().color=r.inputColor_str,r.yourEmailInpt.style().outline=0,r.yourEmailInpt.style().whiteSpace="nowrap",r.yourEmailInpt.style().padding="6px",r.yourEmailInpt.style().paddingTop="4px",r.yourEmailInpt.style().paddingBottom="4px",r.friendEmailLbl=new FWDEVPDO("div"),r.friendEmailLbl.screen.className="EVP-secnd-label",r.friendEmailLbl.setBackfaceVisibility(),r.friendEmailLbl.style().fontFamily="Arial",r.friendEmailLbl.style().fontSize="12px",r.friendEmailLbl.style().color=r.secondaryLabelsColor_str,r.friendEmailLbl.style().whiteSpace="nowrap",r.friendEmailLbl.style().padding="0px",r.friendEmailLbl.setInnerHTML("Your friend's email:"),r.friendEmailInpt=new FWDEVPDO("input"),r.friendEmailInpt.screen.className="EVP-embed-inpt",r.friendEmailInpt.setBackfaceVisibility(),r.friendEmailInpt.style().fontFamily="Arial",r.friendEmailInpt.style().fontSize="12px",r.friendEmailInpt.style().backgroundColor=r.inputBackgroundColor_str,r.friendEmailInpt.style().color=r.inputColor_str,r.friendEmailInpt.style().outline=0,r.friendEmailInpt.style().whiteSpace="nowrap",r.friendEmailInpt.style().padding="6px",r.friendEmailInpt.style().paddingTop="4px",r.friendEmailInpt.style().paddingBottom="4px",FWDEVPSimpleSizeButton.setPrototype(),r.sndBtn=new FWDEVPSimpleSizeButton(r.sendButtonNPath_str,r.sendButtonSPath_str,r.buttonWidth,r.buttonHeight,e.useHEX,e.nBC,e.sBC,!0),r.sndBtn.addListener(FWDEVPSimpleSizeButton.CLICK,r.sendClickHandler),r.infoText_do=new FWDEVPDO("div"),r.infoText_do.setBackfaceVisibility(),r.infoText_do.style().fontFamily="Arial",r.infoText_do.style().fontSize="12px",r.infoText_do.style().color=r.secondaryLabelsColor_str,r.infoText_do.style().whiteSpace="nowrap",r.infoText_do.style().fontSmoothing="antialiased",r.infoText_do.style().webkitFontSmoothing="antialiased",r.infoText_do.style().textRendering="optimizeLegibility",r.infoText_do.style().padding="0px",r.infoText_do.style().paddingTop="4px",r.infoText_do.style().textAlign="center",r.infoText_do.style().color=r.mainLabelsColor_str,r.useVectorIcons_bl){FWDEVPSimpleButton.setPrototype(),FWDEVPUtils.smpBtnNPos();var t=s.fontIcon+" "+s.fontIcon+"-close";r.closeButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<div class='table-fwdevp-button'><span class='table-cell-fwdevp-button "+t+"'></span></div>",void 0,"EVPCloseButtonNormalState","EVPCloseButtonSelectedState")}else FWDEVPSimpleButton.setPrototype(),r.closeButton_do=new FWDEVPSimpleButton(e.embedClooseN_img,e.embedWindowClosePathS_str,void 0,!0,e.useHEX,e.nBC,e.sBC,!1,!1,!1,!1,!0);r.closeButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,r.closeButtonOnMouseUpHandler),r.addChild(r.mainHolder_do),r.mainHolder_do.addChild(r.bk_do),r.linkAndEmbedHolder_do.addChild(r.linkAndEmbedHolderBk_do),r.linkAndEmbedHolder_do.addChild(r.mainLbl),r.linkAndEmbedHolder_do.addChild(r.linkLbl),r.linkAndEmbedHolder_do.addChild(r.linkTxt),r.linkAndEmbedHolder_do.addChild(r.embedLbl),r.linkAndEmbedHolder_do.addChild(r.embdTxt),r.linkAndEmbedHolder_do.addChild(r.copyLinkButton_do),r.linkAndEmbedHolder_do.addChild(r.copyEmbedBtn),r.sendMainHolder_do.addChild(r.sendMainHldBk),r.sendMainHolder_do.addChild(r.sendMainLbl),r.sendMainHolder_do.addChild(r.yourEmailLabel_do),r.sendMainHolder_do.addChild(r.yourEmailInpt),r.sendMainHolder_do.addChild(r.friendEmailLbl),r.sendMainHolder_do.addChild(r.friendEmailInpt),r.sendMainHolder_do.addChild(r.sndBtn),r.mainHolder_do.addChild(r.linkAndEmbedHolder_do),r.mainHolder_do.addChild(r.sendMainHolder_do),r.mainHolder_do.addChild(r.closeButton_do)}},this.closeButtonOnMouseUpHandler=function(){r.isShowed_bl&&r.hide()},this.copyToClipboard=function(e){n(e),document.execCommand("copy")};this.positionAndResize=function(){r.sW=s.sW,r.sH=s.sH,r.maxTextWidth=Math.min(r.sW-150,500),r.totalWidth=r.maxTextWidth+r.buttonWidth+40,r.isMobile_bl?(r.linkTxt.setWidth(r.maxTextWidth+52),r.embdTxt.setWidth(r.maxTextWidth+52)):(r.linkTxt.setWidth(r.maxTextWidth),r.embdTxt.setWidth(r.maxTextWidth)),r.positionFinal(),r.closeButton_do.setX(r.sW-r.closeButton_do.w-r.embedWindowCloseButtonMargins),r.closeButton_do.setY(r.embedWindowCloseButtonMargins),r.setWidth(r.sW),r.setHeight(r.sH),r.mainHolder_do.setWidth(r.sW),r.mainHolder_do.setHeight(r.sH)},this.positionFinal=function(){var e=!1,t;360>r.sH||350>r.sW?(r.linkTxt.style().whiteSpace="nowrap",r.embdTxt.style().whiteSpace="nowrap"):(r.linkTxt.style().whiteSpace="normal",r.embdTxt.style().whiteSpace="normal"),6>r.linkLbl.screen.offsetHeight&&(e=!0);var o;o=e?Math.round(100*r.mainLbl.screen.getBoundingClientRect().height):r.mainLbl.getHeight(),r.mainLbl.setX(16),r.linkLbl.setX(16),r.linkLbl.setY(o+14);var s,n;e?(s=Math.round(100*r.linkLbl.screen.getBoundingClientRect().height),n=Math.round(100*r.linkTxt.screen.getBoundingClientRect().height)):(s=r.linkLbl.getHeight(),n=r.linkTxt.getHeight()),r.linkTxt.setX(10),r.linkTxt.setY(r.linkLbl.y+s+5),r.isMobile_bl?r.copyLinkButton_do.setX(-100):r.copyLinkButton_do.setX(r.maxTextWidth+30),r.copyLinkButton_do.setY(r.linkTxt.y+n-r.buttonHeight),r.embedLbl.setX(16),r.embedLbl.setY(r.copyLinkButton_do.y+r.copyLinkButton_do.h+14);var a;a=e?Math.round(100*r.embdTxt.screen.getBoundingClientRect().height):r.embdTxt.getHeight(),r.embdTxt.setX(10),r.embdTxt.setY(r.embedLbl.y+s+5),r.isMobile_bl?r.copyEmbedBtn.setX(-100):r.copyEmbedBtn.setX(r.maxTextWidth+30),r.copyEmbedBtn.setY(r.embdTxt.y+a-r.buttonHeight),r.linkAndEmbedHolderBk_do.setY(r.linkLbl.y-9),r.linkAndEmbedHolderBk_do.setWidth(r.totalWidth-2),r.linkAndEmbedHolderBk_do.setHeight(r.embdTxt.y+a-9),r.linkAndEmbedHolder_do.setWidth(r.totalWidth),r.linkAndEmbedHolder_do.setHeight(r.embdTxt.y+a+14);var d,l;e?(d=Math.round(100*r.sendMainLbl.screen.getBoundingClientRect().height),l=Math.round(100*r.yourEmailInpt.screen.getBoundingClientRect().height)):(d=r.sendMainLbl.getHeight(),l=r.yourEmailInpt.getHeight()),r.sendMainLbl.setX(16),r.yourEmailLabel_do.setX(16),r.yourEmailLabel_do.setY(d+14),400<r.sW?(r.yourEmailInpt.setX(10),r.yourEmailInpt.setWidth(parseInt(r.totalWidth-52-r.buttonWidth)/2),r.yourEmailInpt.setY(r.yourEmailLabel_do.y+s+5),r.friendEmailLbl.setX(r.yourEmailInpt.x+r.yourEmailInpt.w+26),r.friendEmailLbl.setY(r.yourEmailLabel_do.y),r.friendEmailInpt.setX(r.yourEmailInpt.x+r.yourEmailInpt.w+20),r.friendEmailInpt.setWidth(parseInt((r.maxTextWidth-30)/2)),r.friendEmailInpt.setY(r.yourEmailLabel_do.y+s+5),r.sndBtn.setX(r.friendEmailInpt.x+r.yourEmailInpt.w+10),r.sndBtn.setY(r.friendEmailInpt.y+l-r.buttonHeight)):(r.yourEmailInpt.setX(10),r.yourEmailInpt.setWidth(r.totalWidth-32),r.yourEmailInpt.setY(r.yourEmailLabel_do.y+s+5),r.friendEmailLbl.setX(16),r.friendEmailLbl.setY(r.yourEmailInpt.y+l+14),r.friendEmailInpt.setX(10),r.friendEmailInpt.setY(r.friendEmailLbl.y+s+5),r.friendEmailInpt.setWidth(r.totalWidth-32),r.sndBtn.setX(r.totalWidth-r.buttonWidth-10),r.sndBtn.setY(r.friendEmailInpt.y+l+10)),r.sendMainHldBk.setY(r.yourEmailLabel_do.y-9),r.sendMainHldBk.setWidth(r.totalWidth-2),r.sendMainHldBk.setHeight(r.sndBtn.y+r.sndBtn.h-9),r.sendMainHolder_do.setWidth(r.totalWidth),r.sendMainHolder_do.setHeight(r.sndBtn.y+r.sndBtn.h+14),t=e?Math.round(100*r.linkAndEmbedHolder_do.screen.getBoundingClientRect().height+100*r.sendMainHolder_do.screen.getBoundingClientRect().height):r.linkAndEmbedHolder_do.getHeight()+r.sendMainHolder_do.getHeight(),r.linkAndEmbedHolder_do.setX(parseInt((r.sW-r.totalWidth)/2)),r.linkAndEmbedHolder_do.setY(parseInt((r.sH-t)/2)-8),r.sendMainHolder_do.setX(parseInt((r.sW-r.totalWidth)/2)),e?r.sendMainHolder_do.setY(Math.round(r.linkAndEmbedHolder_do.y+100*r.linkAndEmbedHolder_do.screen.getBoundingClientRect().height+20)):r.sendMainHolder_do.setY(r.linkAndEmbedHolder_do.y+r.linkAndEmbedHolder_do.getHeight()+20)},this.sendClickHandler=function(){var e=!1;if(!r.getValidEmail(r.yourEmailInpt.screen.value)){if(FWDAnimation.isTweening(r.yourEmailInpt.screen))return;FWDAnimation.to(r.yourEmailInpt.screen,.1,{css:{backgroundColor:"#FF0000"},yoyo:!0,repeat:3}),e=!0}if(!r.getValidEmail(r.friendEmailInpt.screen.value)){if(FWDAnimation.isTweening(r.friendEmailInpt.screen))return;FWDAnimation.to(r.friendEmailInpt.screen,.1,{css:{backgroundColor:"#FF0000"},yoyo:!0,repeat:3}),e=!0}e||r.sendEmail()},this.sendEmail=function(){if(!r.isSending_bl){r.isSending_bl=!0,r.xhr=new XMLHttpRequest,r.xhr.onreadystatechange=r.onChange,r.xhr.onerror=r.ajaxOnErrorHandler;try{r.xhr.open("get",r.sendToAFriendPath_str+"?friendMail="+r.friendEmailInpt.screen.value+"&yourMail="+r.yourEmailInpt.screen.value+"&link="+encodeURIComponent(r.linkToVideo_str),!0),r.xhr.send()}catch(t){r.showInfo("ERROR",!0),console&&console.log(t),t.message&&console.log(t.message)}r.resetInputs()}},this.ajaxOnErrorHandler=function(o){r.showInfo("ERROR",!0);try{t.console&&console.log(o),t.console&&console.log(o.message)}catch(t){}r.isSending_bl=!1},this.onChange=function(){4==r.xhr.readyState&&200==r.xhr.status&&("sent"==r.xhr.responseText?r.showInfo("SENT"):(r.showInfo("ERROR",!0),t.console&&console.log("Error The server can't send the email!")),r.isSending_bl=!1)},this.resetInputs=function(){r.yourEmailInpt.screen.value="",r.friendEmailInpt.screen.value=""},this.getValidEmail=function(e){return!!(/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/.test(e)&&""!=e)},this.setEmbedData=function(){var e=location.href,t=location.protocol+"//"+location.host,o=location.pathname,n=location.hash,a=location.search,d=t+o;a=a.replace(/&?EVPInstanceName=.+/g,""),n=n.replace(/&?EVPInstanceName=.+/g,""),e=e.replace(/&?EVPInstanceName=.+/g,""),"?"==a&&(a=null),a?n?(r.finalEmbedPath_str=d+a+n+"&EVPInstanceName="+s.instanceName_str,r.linkToVideo_str=d+a+n):(r.finalEmbedPath_str=d+a+"&EVPInstanceName="+s.instanceName_str,r.linkToVideo_str=d+a):n?(r.finalEmbedPath_str=d+n+"?EVPInstanceName="+s.instanceName_str,r.linkToVideo_str=d+n):(r.finalEmbedPath_str=d+"?EVPInstanceName="+s.instanceName_str,r.linkToVideo_str=d),r.finalEmbedPath_str=encodeURI(r.finalEmbedPath_str),r.linkToVideo_str=encodeURI(r.linkToVideo_str),r.finalEmbedCode_str="<iframe src='"+r.finalEmbedPath_str+"' width='"+s.sW+"' height='"+s.sH+"' frameborder='0' scrolling='no' allowfullscreen></iframe>",FWDEVPUtils.isIE?(r.linkTxt.screen.innerText=r.linkToVideo_str,r.embdTxt.screen.innerText=r.finalEmbedCode_str):(r.linkTxt.screen.textContent=r.linkToVideo_str,r.embdTxt.screen.textContent=r.finalEmbedCode_str)},this.showInfo=function(e,t){r.infoText_do.setInnerHTML(e),r.sendMainHolder_do.addChild(r.infoText_do),r.infoText_do.setWidth(r.buttonWidth),r.infoText_do.setHeight(r.buttonHeight-4),r.infoText_do.setX(r.sndBtn.x),r.infoText_do.setY(r.sndBtn.y-23),r.infoText_do.setAlpha(0),r.infoText_do.style().color=t?"#FF0000":r.mainLabelsColor_str,FWDAnimation.killTweensOf(r.infoText_do),FWDAnimation.to(r.infoText_do,.16,{alpha:1,yoyo:!0,repeat:7})},this.show=function(){r.isShowed_bl||(r.isShowed_bl=!0,s.main_do.addChild(r),r.init(),r.resetInputs(),r.setEmbedData(),(!FWDEVPUtils.isMobile||FWDEVPUtils.isMobile&&FWDEVPUtils.hasPointerEvent)&&s.main_do.setSelectable(!0),r.useVectorIcons_bl?r.checkButtonsId_to=setInterval(function(){0!=r.closeButton_do.w&&(r.positionAndResize(),clearInterval(r.checkButtonsId_to),clearTimeout(r.hideCompleteId_to),clearTimeout(r.showCompleteId_to),r.mainHolder_do.setY(-r.sH),r.showCompleteId_to=setTimeout(r.showCompleteHandler,900),setTimeout(function(){FWDAnimation.to(r.mainHolder_do,.8,{y:0,delay:.1,ease:Expo.easeInOut})},100))},50):(r.positionAndResize(),clearTimeout(r.hideCompleteId_to),clearTimeout(r.showCompleteId_to),r.mainHolder_do.setY(-r.sH),r.showCompleteId_to=setTimeout(r.showCompleteHandler,900),setTimeout(function(){FWDAnimation.to(r.mainHolder_do,.8,{y:0,delay:.1,ease:Expo.easeInOut})},100)))},this.showCompleteHandler=function(){},this.hide=function(){r.isShowed_bl&&(r.isShowed_bl=!1,s.customContextMenu_do&&s.customContextMenu_do.enable(),r.positionAndResize(),clearTimeout(r.hideCompleteId_to),clearTimeout(r.showCompleteId_to),(!FWDEVPUtils.isMobile||FWDEVPUtils.isMobile&&FWDEVPUtils.hasPointerEvent)&&s.main_do.setSelectable(!1),r.hideCompleteId_to=setTimeout(r.hideCompleteHandler,800),FWDAnimation.killTweensOf(r.mainHolder_do),FWDAnimation.to(r.mainHolder_do,.8,{y:-r.sH,ease:Expo.easeInOut}))},this.hideCompleteHandler=function(){s.main_do.removeChild(r),r.dispatchEvent(o.HIDE_COMPLETE)},e.useHEX&&r.init()};o.setPrototype=function(){o.prototype=new FWDEVPDO("div")},o.ERROR="error",o.HIDE_COMPLETE="hideComplete",o.prototype=null,t.FWDEVPEmbedWindow=o}(window),function(){window.FWDEVPEventDispatcher=function(){'use strict';this.listeners={events_ar:[]},this.addListener=function(e,t){if(e==null)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");if("function"!=typeof t)throw Error("listener must be of type Function.");var o={};o.type=e,o.listener=t,o.target=this,this.listeners.events_ar.push(o)},this.dispatchEvent=function(e,t){if(null!=this.listeners){if(null==e)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");for(var o=0,s=this.listeners.events_ar.length;o<s;o++)if(this.listeners.events_ar[o].target===this&&this.listeners.events_ar[o].type===e){if(t)for(var n in t)this.listeners.events_ar[o][n]=t[n];this.listeners.events_ar[o].listener.call(this,this.listeners.events_ar[o])}}},this.removeListener=function(e,t){if(e==null)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");if("function"!=typeof t)throw Error("listener must be of type Function."+e);for(var o=0,s=this.listeners.events_ar.length;o<s;o++)if(this.listeners.events_ar[o].target===this&&this.listeners.events_ar[o].type===e&&this.listeners.events_ar[o].listener===t){this.listeners.events_ar.splice(o,1);break}},this.destroy=function(){this.listeners=null,this.addListener=null,this.dispatchEvent=null,this.removeListener=null}}}(window),function(e){var t=function(o,s,n){'use strict';var r=this,a=t.prototype;r.screenToTest=o,r.screenToTest2=s,r.hideDelay=n,r.globalX=0,r.globalY=0,r.dispatchOnceShow_bl=!0,r.isStopped_bl=!0,r.isMbl=FWDEVPUtils.isMobile,r.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,r.init=function(){},r.start=function(){r.currentTime=new Date().getTime(),clearInterval(r.checkIntervalId_int),r.checkIntervalId_int=setInterval(r.update,100),r.addMouseOrTouchCheck(),r.isStopped_bl=!1},r.stop=function(){clearInterval(r.checkIntervalId_int),r.isStopped_bl=!0,r.removeMouseOrTouchCheck(),r.removeMouseOrTouchCheck2()},r.addMouseOrTouchCheck=function(){r.hasInitialTestEvents_bl||(r.hasInitialTestEvents_bl=!0,r.isMbl?r.hasPointerEvent_bl?(r.screenToTest.screen.addEventListener("pointerdown",r.onMTU),r.screenToTest.screen.addEventListener("MSPointerMove",r.onMTU)):r.screenToTest.screen.addEventListener("touchstart",r.onMTU):e.addEventListener?e.addEventListener("mousemove",r.onMTU):document.attachEvent&&document.attachEvent("onmousemove",r.onMTU))},r.removeMouseOrTouchCheck=function(){r.hasInitialTestEvents_bl&&(r.hasInitialTestEvents_bl=!1,r.isMbl?r.hasPointerEvent_bl?(r.screenToTest.screen.removeEventListener("pointerdown",r.onMTU),r.screenToTest.screen.removeEventListener("MSPointerMove",r.onMTU)):r.screenToTest.screen.removeEventListener("touchstart",r.onMTU):e.removeEventListener?e.removeEventListener("mousemove",r.onMTU):document.detachEvent&&document.detachEvent("onmousemove",r.onMTU))},r.addMouseOrTouchCheck2=function(){r.addSecondTestEvents_bl||(r.addSecondTestEvents_bl=!0,r.screenToTest.screen.addEventListener?r.screenToTest.screen.addEventListener("mousemove",r.onSecondTest):r.screenToTest.screen.attachEvent&&r.screenToTest.screen.attachEvent("onmousemove",r.onSecondTest))},r.removeMouseOrTouchCheck2=function(){r.addSecondTestEvents_bl&&(r.addSecondTestEvents_bl=!1,r.screenToTest.screen.removeEventListener?r.screenToTest.screen.removeEventListener("mousemove",r.onSecondTest):r.screenToTest.screen.detachEvent&&r.screenToTest.screen.detachEvent("onmousemove",r.onSecondTest))},r.onSecondTest=function(){r.removeMouseOrTouchCheck2(),r.addMouseOrTouchCheck()},r.onMTU=function(t){var e=FWDEVPUtils.getViewportMouseCoordinates(t);r.globalX!=e.screenX&&r.globalY!=e.screenY&&(r.currentTime=new Date().getTime()),r.globalX=e.screenX,r.globalY=e.screenY,r.isMbl||FWDEVPUtils.hitTest(r.screenToTest.screen,r.globalX,r.globalY)||(r.removeMouseOrTouchCheck(),r.addMouseOrTouchCheck2())},r.update=function(){new Date().getTime()>r.currentTime+r.hideDelay?r.dispatchOnceShow_bl&&(r.dispatchOnceHide_bl=!0,r.dispatchOnceShow_bl=!1,r.dispatchEvent(t.HIDE),clearTimeout(r.hideCompleteId_to),r.hideCompleteId_to=setTimeout(function(){r.dispatchEvent(t.HIDE_COMPLETE)},1e3)):r.dispatchOnceHide_bl&&(clearTimeout(r.hideCompleteId_to),r.dispatchOnceHide_bl=!1,r.dispatchOnceShow_bl=!0,r.dispatchEvent(t.SHOW))},r.reset=function(){clearTimeout(r.hideCompleteId_to),r.currentTime=new Date().getTime(),r.dispatchEvent(t.SHOW)},r.destroy=function(){r.removeMouseOrTouchCheck(),clearInterval(r.checkIntervalId_int),a.destroy(),a=null,r=null,t.prototype=null},r.init()};t.HIDE="hide",t.SHOW="show",t.HIDE_COMPLETE="hideComplete",t.setPrototype=function(){t.prototype=new FWDEVPEventDispatcher},e.FWDEVPHider=t}(window),function(e){var t=function(e,o,s){'use strict';var n=this,r=t.prototype;n.warningIconPath_str=o,n.showErrorInfo_bl=s,this.init=function(){n.setResizableSizeAfterParent(),n.bk_do=new FWDEVPDO("div"),n.bk_do.setAlpha(.2),n.bk_do.setBkColor("#000000"),n.addChild(n.bk_do),n.textHolder_do=new FWDEVPDO("div"),FWDEVPUtils.isIEAndLessThen9||(n.textHolder_do.style().font="Arial"),n.textHolder_do.style().wordWrap="break-word",n.textHolder_do.style().padding="10px",n.textHolder_do.style().paddingLeft="42px",n.textHolder_do.style().lineHeight="18px",n.textHolder_do.style().color="#000000",n.textHolder_do.setBkColor("#EEEEEE");var e=new Image;e.src=this.warningIconPath_str,this.img_do=new FWDEVPDO("img"),this.img_do.setScreen(e),this.img_do.setWidth(28),this.img_do.setHeight(28),n.addChild(n.textHolder_do),n.addChild(n.img_do)},this.showText=function(e){n.isShowedOnce_bl||(n.hasPointerEvent_bl?n.screen.addEventListener("pointerdown",n.closeWindow):(n.screen.addEventListener("click",n.closeWindow),n.screen.addEventListener("touchend",n.closeWindow)),n.isShowedOnce_bl=!0),n.setVisible(!1),n.textHolder_do.style().paddingBottom="10px",n.textHolder_do.setInnerHTML(e),clearTimeout(n.show_to),n.show_to=setTimeout(n.show,60),setTimeout(function(){n.positionAndResize()},10)},this.show=function(){var t=Math.min(640,e.sW-120);n.isShowed_bl=!0,n.textHolder_do.setWidth(t),setTimeout(function(){n.showErrorInfo_bl&&n.setVisible(!0),n.positionAndResize()},100)},this.positionAndResize=function(){var t=n.textHolder_do.getWidth(),o=n.textHolder_do.getHeight(),s=parseInt((e.sW-t)/2),r=parseInt((e.sH-o)/2);n.bk_do.setWidth(e.sW),n.bk_do.setHeight(e.sH),n.textHolder_do.setX(s),n.textHolder_do.setY(r),n.img_do.setX(s+6),n.img_do.setY(r+parseInt((n.textHolder_do.getHeight()-n.img_do.h)/2))},this.closeWindow=function(){if(n.allowToRemove_bl){n.isShowed_bl=!1,clearTimeout(n.show_to);try{e.main_do.removeChild(n)}catch(t){}}},this.init()};t.setPrototype=function(){t.prototype=new FWDEVPDO("div","relative")},t.prototype=null,e.FWDEVPInfo=t}(window),function(window){var FWDEVPlayer=function(props){'use strict';FWDEVPlayer.V="8.4";var _s=this;_s.props=props,_s.isInstantiate_bl=!1,_s.displayType=props.displayType||FWDEVPlayer.RESPONSIVE,_s.delayPoster=!props.delayPoster,_s.displayType.toLowerCase()!=FWDEVPlayer.RESPONSIVE&&_s.displayType.toLowerCase()!=FWDEVPlayer.FULL_SCREEN&&_s.displayType.toLowerCase()!=FWDEVPlayer.AFTER_PARENT&&_s.displayType.toLowerCase()!=FWDEVPlayer.STICKY&&_s.displayType.toLowerCase()!=FWDEVPlayer.LIGHTBOX&&(_s.displayType=FWDEVPlayer.RESPONSIVE),props.displayType.toLowerCase()==FWDEVPlayer.BACKGROUND_VIDEO&&(_s.displayType=FWDEVPlayer.BACKGROUND_VIDEO),_s.displayType=_s.displayType.toLowerCase(),"pause"!=FWDEVPlayer.videoStartBehaviour&&"stop"!=FWDEVPlayer.videoStartBehaviour&&"default"!=FWDEVPlayer.videoStartBehaviour&&(FWDEVPlayer.videoStartBehaviour="pause"),_s.stickyOnScroll=props.stickyOnScroll||"no",_s.stickyOnScroll=!("yes"!=_s.stickyOnScroll),_s.displayType!=FWDEVPlayer.RESPONSIVE&&(_s.stickyOnScroll=!1),_s.isMinShowed=!0,_s.stickyOnScrollWidth=props.stickyOnScrollWidth||700,_s.stickyOnScrollHeight=props.stickyOnScrollHeight||394,_s.fontIcon=props.fontIcon||"fwdicon",_s.maxWidth=props.maxWidth||640,_s.maxHeight=props.maxHeight||380,_s.showPreloader_bl=props.showPreloader,_s.showPreloader_bl="no"!=_s.showPreloader_bl,_s.disableDoubleClickFullscreen_bl=props.disableDoubleClickFullscreen||"no",_s.disableDoubleClickFullscreen_bl=!("yes"!=_s.disableDoubleClickFullscreen_bl),_s.mainFolderPath_str=props.mainFolderPath,_s.mainFolderPath_str.lastIndexOf("/")+1!=_s.mainFolderPath_str.length&&(_s.mainFolderPath_str+="/"),_s.sknPth=props.skinPath,_s.sknPth.lastIndexOf("/")+1!=_s.sknPth.length&&(_s.sknPth+="/"),_s.warningIconPath_str=_s.mainFolderPath_str+_s.sknPth+"warningIcon.png",_s.fillEntireVideoScreen_bl=!1,_s.isShowedFirstTime_bl=!0,FWDEVPlayer.instaces_ar.push(this),_s.init=function(){if(!_s.isInstantiate_bl){if(FWDTweenLite.ticker.useRAF(!0),_s.props=props,_s.instanceName_str=_s.props.instanceName,_s.mustHaveHolderDiv_bl=!1,!_s.instanceName_str)return void alert("FWDEVPlayer instance name is requires please make sure that the instanceName parameter exsists and it's value is uinique.");if(window[_s.instanceName_str])return void alert("FWDEVPlayer instance name "+_s.instanceName_str+" is already defined and contains a different instance reference, set a different instance name.");if(window[_s.instanceName_str]=this,!_s.props)return void alert("FWDEVPlayer constructor properties object is not defined!");if(!_s.props.parentId)return void alert("Property parentId is not defined in the FWDEVPlayer constructor, _s property represents the div id into which the megazoom is added as a child!");if((_s.displayType==FWDEVPlayer.RESPONSIVE||_s.displayType==FWDEVPlayer.AFTER_PARENT)&&(_s.mustHaveHolderDiv_bl=!0),_s.mustHaveHolderDiv_bl&&!FWDEVPUtils.getChildById(_s.props.parentId))return void alert("FWDEVPlayer holder div is not found, please make sure that the div exsists and the id is correct! "+_s.props.parentId);var e=FWDEVPUtils.getUrlArgs(window.location.search),t=e.EVPInstanceName;_s.instanceName_str==t&&(FWDEVPlayer.isEmbedded_bl=!0,_s.isEmbedded_bl=!0),_s.position_str=_s.props.verticalPosition,_s.position_str||(_s.position_str=FWDEVPlayer.POSITION_TOP),_s.position_str="bottom"==_s.position_str?FWDEVPlayer.POSITION_BOTTOM:FWDEVPlayer.POSITION_TOP,_s.horizontalPosition_str=_s.props.horizontalPosition,_s.horizontalPosition_str||(_s.horizontalPosition_str=FWDEVPlayer.CENTER),_s.horizontalPosition_str="center"==_s.horizontalPosition_str?FWDEVPlayer.CENTER:"left"==_s.horizontalPosition_str?FWDEVPlayer.LEFT:"right"==_s.horizontalPosition_str?FWDEVPlayer.RIGHT:FWDEVPlayer.CENTER,_s.isShowed_bl=_s.props.showPlayerByDefault,_s.isShowed_bl="no"!=_s.isShowed_bl,_s.preloaderBackgroundColor=_s.props.preloaderBackgroundColor||"#000000",_s.preloaderFillColor=_s.props.preloaderFillColor||"#FFFFFF",_s.offsetX=parseInt(props.offsetX)||0,_s.offsetY=parseInt(props.offsetY)||0,_s.isEmbedded_bl&&(_s.displayType=FWDEVPlayer.FULL_SCREEN),_s.body=document.getElementsByTagName("body")[0],_s.stageContainer=null,_s.displayType==FWDEVPlayer.STICKY?(_s.stageContainer=document.createElement("div"),_s.stageContainer.style.position="fixed",_s.stageContainer.style.width="100%",_s.stageContainer.style.zIndex="999999",_s.stageContainer.style.height="0px",document.documentElement.appendChild(_s.stageContainer),_s.stageContainer.style.overflow="visible"):_s.displayType==FWDEVPlayer.FULL_SCREEN||_s.displayType==FWDEVPlayer.BACKGROUND_VIDEO||_s.displayType==FWDEVPlayer.LIGHTBOX?_s.stageContainer=document.documentElement:_s.stageContainer=FWDEVPUtils.getChildById(_s.props.parentId),_s.listeners={events_ar:[]},_s.lightBoxBackgroundOpacity=_s.props.lightBoxBackgroundOpacity||1,_s.lightBoxBackgroundColor_str=_s.props.lightBoxBackgroundColor||"transparent",_s.lightBoxWidth=_s.props.maxWidth||500,_s.lightBoxHeight=_s.props.maxHeight||400,_s.backgroundColor_str=_s.props.backgroundColor||"transparent",_s.videoBackgroundColor_str="#000000",_s.flashObjectMarkup_str=null,_s.controllerHeight=parseInt(_s.props.controllerHeight)||70,_s.lastX=0,_s.lastY=0,_s.sW=0,_s.sH=0,_s.posterPath_str=_s.props.posterPath,_s.autoScale_bl=_s.props.autoScale,_s.autoScale_bl="yes"==_s.autoScale_bl,_s.showErrorInfo_bl=_s.props.showErrorInfo,_s.showErrorInfo_bl="no"!=_s.showErrorInfo_bl,_s.isVideoPlayingWhenOpenWindows_bl=!1,_s.useWithoutVideoScreen_bl=_s.props.useWithoutVideoScreen,_s.useWithoutVideoScreen_bl="yes"==_s.useWithoutVideoScreen_bl,_s.totalTime=100,_s.mainBackgroundImagePath_str=_s.props.mainBackgroundImagePath,_s.mainBackgroundImagePath_str&&3>_s.mainBackgroundImagePath_str.length&&(_s.mainBackgroundImagePath_str=void 0),_s.isMobile_bl=FWDEVPUtils.isMobile,_s.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,_s.initializeOnlyWhenVisible_bl=_s.props.initializeOnlyWhenVisible,_s.initializeOnlyWhenVisible_bl="yes"==_s.initializeOnlyWhenVisible_bl,_s.googleAnalyticsTrackingCode=_s.props.googleAnalyticsTrackingCode,!window.ga&&_s.googleAnalyticsTrackingCode?(function(e,t,s,o,n,r,d){e.GoogleAnalyticsObject=n,e[n]=e[n]||function(){(e[n].q=e[n].q||[]).push(arguments)},e[n].l=1*new Date,r=t.createElement(s),d=t.getElementsByTagName(s)[0],r.async=1,r.src=o,d.parentNode.insertBefore(r,d)}(window,document,"script","https://www.google-analytics.com/analytics.js","ga"),ga("create",_s.googleAnalyticsTrackingCode,"auto"),ga("send","pageview")):window.ga&&_s.googleAnalyticsTrackingCode&&(ga("create",_s.googleAnalyticsTrackingCode,"auto"),ga("send","pageview")),_s.displayType==FWDEVPlayer.LIGHTBOX?_s.setupLightBox():_s.displayType==FWDEVPlayer.STICKY?(_s.setupPlayer(),_s.startResizeHandler()):(_s.setupMainDo(),_s.initializeOnlyWhenVisible_bl?(_s.startResizeHandler(),window.addEventListener("scroll",_s.onInitlalizeScrollHandler),setTimeout(_s.onInitlalizeScrollHandler,500)):(_s.setupPlayer(),_s.startResizeHandler()))}},_s.addMinOnScroll=function(){_s.displayType!=FWDEVPlayer.RESPONSIVE||_s.stickyOnScroll&&window.addEventListener("scroll",_s.minimizeOnScrollHandler)},_s.removeMinOnScroll=function(){_s.stickyOnScroll&&window.removeEventListener("scroll",_s.minimizeOnScrollHandler)},_s.minimizeOnScrollHandler=function(){var e=FWDEVPUtils.getScrollOffsets();_s.pageXOffset=e.x,_s.pageYOffset=e.y,0>_s.stageContainer.getBoundingClientRect().bottom?_s.setMinimized():_s.setNormal()},_s.setMinimized=function(){_s.isMin||_s.isFullscreen_bl||(_s.isMin=!0,_s.main_do.style().position="fixed",_s.main_do.style().zIndex=9999999999999,_s.main_do.setAlpha(0),_s.startPosisionOnMin())},_s.startPosisionOnMin=function(){_s.resizeHandler(),_s.positionOnMin()},_s.setNormal=function(){_s.isMin&&(_s.isMinShowed=!0,_s.isMin=!1,_s.main_do.style().position="relative",_s.main_do.style().zIndex=0,FWDAnimation.killTweensOf(_s.main_do),_s.main_do.setAlpha(1),_s.main_do.setX(0),_s.main_do.setY(0),_s.opener_do&&_s.opener_do.setX(-1e3),_s.startPosisionOnNormal())},_s.startPosisionOnNormal=function(){_s.opener_do&&_s.opener_do.showCloseButton(),_s.resizeHandler()},_s.positionOnMin=function(e){if(_s.isMin||e){var t=5,o=.2;_s.isMobile_bl&&(t=0);var s=0;if(_s.isMinShowed||(o=0,s=Math.round(_s.sH)+t),_s.opener_do)var n=_s.ws.w-_s.opener_do.w-t,r=_s.ws.h-_s.sH-t+s-_s.opener_do.h;_s.main_do.setX(_s.ws.w-_s.sW-t),0==_s.main_do.alpha||e?(0==_s.main_do.alpha&&(_s.main_do.setY(_s.ws.h),_s.opener_do&&(_s.opener_do.setX(n),_s.opener_do.setY(_s.ws.h))),FWDAnimation.to(_s.main_do,.8,{alpha:1,y:_s.ws.h-_s.sH-t+s,delay:o,ease:Expo.easeInOut}),_s.opener_do&&(FWDAnimation.killTweensOf(_s.opener_do),FWDAnimation.to(_s.opener_do,.8,{x:n,y:r,delay:o,ease:Expo.easeInOut}))):(FWDAnimation.killTweensOf(_s.main_do),_s.main_do.setAlpha(1),_s.main_do.setY(_s.ws.h-_s.sH-t+s),_s.opener_do&&(FWDAnimation.killTweensOf(_s.opener_do),_s.opener_do.setX(n),_s.opener_do.setY(r)))}},_s.setupLightBox=function(){FWDEVPLightBox.setPrototype(),_s.lightBox_do=new FWDEVPLightBox(_s,_s.lightBoxBackgroundColor_str,_s.backgroundColor_str,_s.lightBoxBackgroundOpacity,_s.lightBoxWidth,_s.lightBoxHeight),_s.lightBox_do.addListener(FWDEVPLightBox.SHOW,_s.lightBoxShowHandler),_s.lightBox_do.addListener(FWDEVPLightBox.CLOSE,_s.lightBoxCloseHandler),_s.lightBox_do.addListener(FWDEVPLightBox.HIDE_COMPLETE,_s.lightBoxHideCompleteHandler),_s.lighboxAnimDoneId_to=setTimeout(_s.setupPlayer,1200)},_s.lightBoxShowHandler=function(){},_s.lightBoxCloseHandler=function(){_s.stop(),_s.stopResizeHandler()},_s.lightBoxHideCompleteHandler=function(){_s.dispatchEvent(FWDEVPlayer.HIDE_LIGHTBOX_COMPLETE)},_s.onInitlalizeScrollHandler=function(){var e=FWDEVPUtils.getScrollOffsets();_s.pageXOffset=e.x,_s.pageYOffset=e.y,_s.main_do.getRect().top>=-_s.sH&&_s.main_do.getRect().top<_s.ws.h&&(window.removeEventListener("scroll",_s.onInitlalizeScrollHandler),_s.setupPlayer())},_s.setupPlayer=function(){_s.info_do||(_s.setupMainDo(),_s.setupInfo(),_s.setupData())},_s.setupMainDo=function(){_s.main_do||(_s.main_do=new FWDEVPDO("div","relative"),_s.hasPointerEvent_bl&&(_s.main_do.style().touchAction="none"),_s.main_do.style().webkitTapHighlightColor="rgba(0, 0, 0, 0)",_s.main_do.style().webkitFocusRingColor="rgba(0, 0, 0, 0)",_s.main_do.screen.className="fwdevp",_s.main_do.style().width="100%",_s.main_do.style().height="100%",_s.main_do.setBackfaceVisibility(),_s.main_do.setBkColor(_s.backgroundColor_str),(!FWDEVPUtils.isMobile||FWDEVPUtils.isMobile&&FWDEVPUtils.hasPointerEvent)&&_s.main_do.setSelectable(!1),_s.displayType==FWDEVPlayer.STICKY?(_s.background_do=new FWDEVPDO("div"),_s.background_do.style().width="100%",_s.mainBackgroundImagePath_str&&(_s.mainBackground_do=new FWDEVPDO("div"),_s.stageContainer.appendChild(_s.mainBackground_do.screen)),_s.stageContainer.appendChild(_s.background_do.screen),_s.stageContainer.appendChild(_s.main_do.screen)):_s.displayType==FWDEVPlayer.FULL_SCREEN?(_s.stageContainer.style.overflow="hidden",_s.main_do.style().position="absolute",document.documentElement.appendChild(_s.main_do.screen),_s.stageContainer.style.zIndex=9999999999998,_s.main_do.style().zIndex=9999999999998):_s.displayType==FWDEVPlayer.BACKGROUND_VIDEO?(document.documentElement.appendChild(_s.main_do.screen),_s.main_do.style().zIndex=-9999999999998,_s.main_do.style().position="fixed",_s.main_do.setAlpha(0),document.documentElement.insertBefore(_s.main_do.screen,document.documentElement.firstChild)):_s.displayType==FWDEVPlayer.LIGHTBOX?(_s.main_do.style().position="absolute",_s.stageContainer=_s.lightBox_do.mainLightBox_do.screen,_s.stageContainer.appendChild(_s.main_do.screen),_s.main_do.setX(-1e4),_s.main_do.setY(-1e4),_s.main_do.setWidth(0),_s.main_do.setHeight(0)):(_s.stageContainer.style.overflow="hidden",_s.stageContainer.appendChild(_s.main_do.screen)),_s.useWithoutVideoScreen_bl&&setTimeout(function(){_s.stageContainer.style.overflow="visible",_s.main_do.style().overflow="visible"},1e3),_s.isEmbedded_bl&&(_s.main_do.style().zIndex=9999999999998))},_s.setupDisableClick=function(){_s.disableClick_do=new FWDEVPDO("div"),FWDEVPUtils.isIE&&(_s.disableClick_do.setBkColor("#ff0000"),_s.disableClick_do.setAlpha(.001)),_s.main_do.addChild(_s.disableClick_do)},_s.disableClick=function(){_s.disableClick_bl=!0,clearTimeout(_s.disableClickId_to),_s.disableClick_do&&(_s.disableClick_do.setWidth(_s.sW),_s.disableClick_do.setHeight(_s.sH)),_s.disableClickId_to=setTimeout(function(){_s.disableClick_do&&(_s.disableClick_do.setWidth(0),_s.disableClick_do.setHeight(0)),_s.disableClick_bl=!1},500)},_s.showDisable=function(){_s.disableClick_do.w==_s.sW||(_s.disableClick_do.setWidth(_s.sW),_s.disableClick_do.setHeight(_s.sH))},_s.hideDisable=function(){_s.disableClick_do&&0!=_s.disableClick_do.w&&(_s.disableClick_do.setWidth(0),_s.disableClick_do.setHeight(0))},_s.setupInfo=function(){FWDEVPInfo.setPrototype(),_s.info_do=new FWDEVPInfo(_s,_s.warningIconPath_str,_s.showErrorInfo_bl)},_s.startResizeHandler=function(){window.addEventListener("resize",_s.onResizeHandler),window.addEventListener("orientationchange",_s.orientationChange),_s.displayType==FWDEVPlayer.STICKY&&window.addEventListener("scroll",_s.onScrollHandler),_s.displayType==FWDEVPlayer.LIGHTBOX&&window.addEventListener("scroll",_s.onScrollHandler),_s.onResizeHandler(!0),_s.resizeHandlerId_to=setTimeout(function(){_s.resizeHandler(!0)},500),_s.displayType==FWDEVPlayer.BACKGROUND_VIDEO&&(_s.resizeHandlerId_to=setTimeout(function(){_s.resizeHandler(!0)},900))},_s.onScrollHandler=function(){if(_s.displayType==FWDEVPlayer.STICKY&&_s.onResizeHandler(),!_s.lightBox_do||_s.lightBox_do.isShowed_bl){_s.scrollHandler();var e=FWDEVPUtils.getScrollOffsets();_s.scrollOffsets=e}},_s.scrollHandler=function(){var e=FWDEVPUtils.getScrollOffsets();_s.pageXOffset=e.x,_s.pageYOffset=e.y,_s.displayType==FWDEVPlayer.LIGHTBOX?(_s.lightBox_do.setX(e.x),_s.lightBox_do.setY(e.y)):(_s.isFullScreen_bl||_s.displayType==FWDEVPlayer.FULL_SCREEN)&&(_s.main_do.setX(e.x),_s.main_do.setY(e.y))},_s.stopResizeHandler=function(){window.removeEventListener?(window.removeEventListener("resize",_s.onResizeHandler),window.removeEventListener("scroll",_s.onScrollHandler),window.removeEventListener("orientationchange",_s.orientationChange)):window.detachEvent&&window.detachEvent("onresize",_s.onResizeHandler),clearTimeout(_s.resizeHandlerId_to)},_s.onResizeHandler=function(){_s.resizeHandler(),clearTimeout(_s.resizeHandler2Id_to),_s.resizeHandler2Id_to=setTimeout(function(){_s.resizeHandler()},300)},_s.orientationChange=function(){_s.orintationChangeComplete_bl=!1,clearTimeout(_s.resizeHandlerId_to),clearTimeout(_s.resizeHandler2Id_to),clearTimeout(_s.orientationChangeId_to),_s.orientationChangeId_to=setTimeout(function(){_s.orintationChangeComplete_bl=!0,_s.resizeHandler(!0)},150),_s.stageContainer.style.left="-5000px",_s.preloader_do&&_s.preloader_do.setX(-5e3)},_s.resizeHandler=function(e){var t=FWDEVPUtils.getViewportSize(),o=FWDEVPUtils.getScrollOffsets();if(_s.ws=t,_s.displayType==FWDEVPlayer.STICKY&&!_s.isFullScreen_bl)_s.main_do.style().width="100%",_s.main_do.getWidth()>_s.maxWidth&&_s.main_do.setWidth(_s.maxWidth),_s.sW=_s.main_do.getWidth(),_s.sH=_s.autoScale_bl?parseInt(_s.maxHeight*(_s.sW/_s.maxWidth)):_s.maxHeight;else if(_s.displayType==FWDEVPlayer.LIGHTBOX&&!_s.isFullScreen_bl){if(!_s.lightBox_do.isShowed_bl||!_s.main_do)return;_s.lightBoxWidth>t.w?(_s.finalLightBoxWidth=t.w,_s.finalLightBoxHeight=parseInt(_s.lightBoxHeight*(t.w/_s.lightBoxWidth))):(_s.finalLightBoxWidth=_s.lightBoxWidth,_s.finalLightBoxHeight=_s.lightBoxHeight),_s.lightBox_do.setWidth(t.w),_s.lightBox_do.setHeight(t.h),_s.lightBox_do.setX(o.x),_s.lightBox_do.setY(o.y),_s.lightBox_do.mainLightBox_do.setX(parseInt((t.w-_s.finalLightBoxWidth)/2)),_s.lightBox_do.mainLightBox_do.setY(parseInt((t.h-_s.finalLightBoxHeight)/2)),_s.lightBox_do.clsBtn&&_s.lightBox_do.isShowed_bl&&(_s.lightBox_do.clsBtn.setX(t.w-_s.lightBox_do.clsBtn.w-15),_s.lightBox_do.clsBtn.setY(15)),_s.main_do.setX(0),_s.main_do.setY(0),_s.lightBox_do.mainLightBox_do.setWidth(_s.finalLightBoxWidth),_s.lightBox_do.mainLightBox_do.setHeight(_s.finalLightBoxHeight),_s.sW=_s.finalLightBoxWidth,_s.sH=_s.finalLightBoxHeight}else(_s.isFullScreen_bl||_s.displayType==FWDEVPlayer.FULL_SCREEN||_s.displayType==FWDEVPlayer.BACKGROUND_VIDEO)&&!_s.doNotDisplyFS?(_s.main_do.setX(0),_s.main_do.setY(0),_s.sW=t.w+2,_s.sH=t.h+2):_s.displayType==FWDEVPlayer.AFTER_PARENT?(_s.sW=_s.stageContainer.offsetWidth,_s.sH=_s.stageContainer.offsetHeight):(_s.stageContainer.style.width="100%",_s.stageContainer.offsetWidth>_s.maxWidth&&(_s.stageContainer.style.width=_s.maxWidth+"px"),_s.sW=_s.stageContainer.offsetWidth,_s.sH=_s.autoScale_bl?parseInt(_s.maxHeight*(_s.sW/_s.maxWidth)):_s.maxHeight,_s.useWithoutVideoScreen_bl&&(_s.sH=_s.controllerHeight),_s.stageContainer.style.height=_s.sH+"px");if(_s.isMin&&!_s.isFullScreen_bl&&(_s.sW=Math.min(_s.stickyOnScrollWidth-10,_s.ws.w-10),_s.sH=parseInt(_s.stickyOnScrollHeight*(_s.sW/_s.stickyOnScrollWidth)),_s.sH=_s.sH),_s.tempVidStageWidth=_s.sW,_s.tempVidStageHeight=_s.sH,_s.main_do.setWidth(_s.sW),_s.main_do.setHeight(_s.sH),!_s.fillEntireVideoScreen_bl||_s.videoType_str!=FWDEVPlayer.VIDEO&&_s.videoType_str!=FWDEVPlayer.HLS_JS||_s.isFullScreen_bl)_s.audioScreen_do&&_s.videoType_str==FWDEVPlayer.MP3?(_s.audioScreen_do.resizeAndPosition(_s.sW,_s.sH),_s.audioScreen_do.setX(0),_s.audioScreen_do.setY(0)):_s.videoScreen_do&&(_s.videoType_str==FWDEVPlayer.VIDEO||_s.videoType_str==FWDEVPlayer.HLS_JS||_s.videoType_str==FWDEVPlayer.DASH)&&(_s.videoScreen_do.resizeAndPosition(_s.sW,_s.sH),_s.videoScreen_do.setX(0),_s.videoScreen_do.setY(0));else if(_s.videoScreen_do&&_s.videoScreen_do.video_el&&0!=_s.videoScreen_do.video_el.videoWidth){var s=_s.videoScreen_do.video_el.videoWidth,n=_s.videoScreen_do.video_el.videoHeight,r=_s.sW/s,a=_s.sH/n,d=1;r>a?d=r:r<a&&(d=a);var l=Math.round(s*d)+2,_=Math.round(n*d)+2,u=Math.round((_s.sW-l)/2)-1,c=Math.round((_s.sH-_)/2)-1;_s.videoScreen_do.resizeAndPosition(l,_,u,c),0==_s.main_do.alpha&&FWDAnimation.to(_s.main_do,3,{alpha:1})}_s.popw_do&&_s.popw_do.isShowed_bl&&_s.popw_do.positionAndResize(),_s.ytb_do&&_s.videoType_str==FWDEVPlayer.YOUTUBE&&(_s.ytb_do.setWidth(_s.sW),_s.ytb_do.setHeight(_s.sH)),_s.vimeo_do&&_s.videoType_str==FWDEVPlayer.VIMEO&&_s.vimeo_do.resizeAndPosition(),_s.positionAdsImage(),_s.logo_do&&_s.logo_do.positionAndResize(),_s.controller_do&&_s.controller_do.resizeAndPosition(),_s.ytb_do&&_s.ytb_do.ytb&&_s.videoType_str==FWDEVPlayer.YOUTUBE&&_s.ytb_do.resizeAndPosition(),_s.isIMA&&_s.IMA&&_s.IMA.resizeAndPosition(),_s.preloader_do&&_s.positionPreloader(),_s.resizeDumyHandler(),_s.largePlayButton_do&&_s.positionLargePlayButton(),_s.videoPoster_do&&_s.videoPoster_do.allowToShow_bl&&_s.videoPoster_do.positionAndResize(),_s.embedWindow_do&&_s.embedWindow_do.isShowed_bl&&_s.embedWindow_do.positionAndResize(),_s.passWindow_do&&_s.passWindow_do.isShowed_bl&&_s.passWindow_do.positionAndResize(),_s.lg_do&&_s.lg_do.isShowed_bl&&_s.lg_do.positionAndResize(),_s.shareWindow_do&&_s.shareWindow_do.isShowed_bl&&_s.shareWindow_do.positionAndResize(),_s.adsStart_do&&_s.positionAds(),_s.subtitle_do&&_s.subtitle_do.position(),_s.popupAds_do&&_s.popupAds_do.position(),_s.annotations_do&&_s.annotations_do.position(),_s.mainBackground_do&&(_s.mainBackground_do.setWidth(_s.ws.w),_s.mainBackground_do.setHeight(_s.sH)),_s.displayType==FWDEVPlayer.STICKY&&_s.setStageContainerFinalHeightAndPosition(e),_s.positionOnMin()},_s.resizeDumyHandler=function(){_s.dClk_do&&(_s.is360&&_s.videoType_str==FWDEVPlayer.YOUTUBE?_s.dClk_do.setWidth(0):_s.videoType_str!=FWDEVPlayer.VIMEO||_s._d.showDefaultControllerForVimeo_bl?(_s.dClk_do.setWidth(_s.sW),_s.isMobile_bl?_s.dClk_do.setHeight(_s.sH):_s.dClk_do.setHeight(_s.sH)):(_s.dClk_do.setWidth(_s.sW),_s.dClk_do.setHeight(_s.sH-50)))},_s.setStageContainerFinalHeightAndPosition=function(e){if(!_s.isMin)if(_s.allowToResizeAndPosition_bl=!0,clearTimeout(_s.showPlaylistWithDelayId_to),_s.horizontalPosition_str==FWDEVPlayer.LEFT?(_s.main_do.setX(_s.offsetX),_s.opener_do&&("right"==_s._d.openerAlignment_str?_s.opener_do.setX(Math.round(_s.sW-_s.opener_do.w+_s.offsetX)):_s.opener_do.setX(_s.offsetX))):_s.horizontalPosition_str==FWDEVPlayer.CENTER?(_s.main_do.setX(Math.round((_s.ws.w-_s.sW)/2)),_s.opener_do&&("right"==_s._d.openerAlignment_str?_s.opener_do.setX(parseInt((_s.ws.w-_s.sW)/2)+_s.sW-_s.opener_do.w):_s.opener_do.setX(_s.main_do.x))):_s.horizontalPosition_str==FWDEVPlayer.RIGHT&&(_s.main_do.setX(Math.round(_s.ws.w-_s.sW-_s.offsetX)),_s.opener_do&&("right"==_s._d.openerAlignment_str?_s.opener_do.setX(Math.round(_s.ws.w-_s.opener_do.w-_s.offsetX)):_s.opener_do.setX(Math.round(_s.ws.w-_s.sW-_s.offsetX)))),e){if(FWDAnimation.isTweening(_s.stageContainer))return;_s.opener_do&&FWDAnimation.killTweensOf(_s.opener_do),_s.position_str==FWDEVPlayer.POSITION_TOP?(_s.isShowed_bl&&!_s.isShowedFirstTime_bl?FWDAnimation.to(_s.stageContainer,.8,{css:{top:_s.offsetY},ease:Expo.easeInOut}):FWDAnimation.to(_s.stageContainer,.8,{css:{top:-_s.sH},ease:Expo.easeInOut}),_s.isShowedFirstTime_bl?_s.opener_do&&FWDAnimation.to(_s.opener_do,.8,{y:_s.sH-_s.opener_do.h,ease:Expo.easeInOut}):_s.opener_do&&FWDAnimation.to(_s.opener_do,.8,{y:_s.sH,ease:Expo.easeInOut})):(_s.isShowed_bl&&!_s.isShowedFirstTime_bl?FWDAnimation.to(_s.stageContainer,.8,{css:{top:_s.ws.h-_s.sH-_s.offsetY},ease:Expo.easeInOut}):FWDAnimation.to(_s.stageContainer,.8,{css:{top:_s.ws.h},ease:Expo.easeInOut,onComplete:_s.moveWheyLeft}),_s.isShowedFirstTime_bl?_s.opener_do&&FWDAnimation.to(_s.opener_do,.8,{y:0,ease:Expo.easeInOut}):_s.opener_do&&FWDAnimation.to(_s.opener_do,.8,{y:-_s.opener_do.h,ease:Expo.easeInOut}))}else _s.position_str==FWDEVPlayer.POSITION_TOP?(_s.stageContainer.style.top=_s.isShowed_bl&&!_s.isShowedFirstTime_bl?_s.offsetY+"px":-_s.sH+"px",_s.isShowedFirstTime_bl?_s.opener_do&&_s.opener_do.setY(_s.sH-_s.opener_do.h):_s.opener_do&&_s.opener_do.setY(_s.sH)):(_s.stageContainer.style.top=_s.isShowed_bl&&!_s.isShowedFirstTime_bl?_s.ws.h-_s.sH-_s.offsetY+"px":_s.ws.h+"px",_s.isShowedFirstTime_bl?_s.opener_do&&_s.opener_do.setY(0):_s.opener_do&&_s.opener_do.setY(-_s.opener_do.h))},_s.setupClickScreen=function(){_s.dClk_do=new FWDEVPDO("div"),_s.disableDoubleClickFullscreen_bl&&(_s.dClk_do.style().pointerEvents="none"),_s.displayType!=FWDEVPlayer.BACKGROUND_VIDEO&&(_s.hasPointerEvent_bl?(_s.dClk_do.screen.addEventListener("pointerdown",_s.playPauseDownHandler),_s.dClk_do.screen.addEventListener("pointerup",_s.playPauseClickHandler),_s.dClk_do.screen.addEventListener("pointermove",_s.playPauseMoveHandler)):_s.isMobile_bl?_s.dClk_do.screen.addEventListener("click",_s.playPauseClickHandler):(_s.dClk_do.screen.addEventListener("mousedown",_s.playPauseDownHandler),_s.dClk_do.screen.addEventListener("mouseup",_s.playPauseClickHandler),_s.dClk_do.screen.addEventListener("mousemove",_s.playPauseMoveHandler))),_s.hideClickScreen(),_s.main_do.addChild(_s.dClk_do)},_s.playPauseDownHandler=function(t){_s.isClickHandlerMoved_bl=!1;var e=FWDEVPUtils.getViewportMouseCoordinates(t);_s.firstDommyTapX=e.screenX,_s.firstDommyTapY=e.screenY,_s.is360&&(_s.dClk_do.style().cursor="url("+_s._d.grabPath_str+"), default")},_s.playPauseMoveHandler=function(t){var e=FWDEVPUtils.getViewportMouseCoordinates(t),o,s;t.touches&&1!=t.touches.length||(o=Math.abs(e.screenX-_s.firstDommyTapX),s=Math.abs(e.screenY-_s.firstDommyTapY),_s.isMobile_bl&&(10<o||10<s)?_s.isClickHandlerMoved_bl=!0:!_s.isMobile_bl&&(2<o||2<s)&&(_s.isClickHandlerMoved_bl=!0))},_s.playPauseClickHandler=function(t){if(2!=t.button&&(_s.is360&&(_s.dClk_do.style().cursor="url("+_s._d.handPath_str+"), default"),!_s.isClickHandlerMoved_bl)){if(_s.isAdd_bl)return void(_s._d.adsPageToOpenURL_str&&"none"!=_s._d.adsPageToOpenURL_str&&!_s.skipOnDb_bl&&(_s.ClickTracking&&_s.executeVastEvent(_s.ClickTracking),window.open(_s._d.adsPageToOpenURL_str,_s._d.adsPageToOpenTarget_str),_s.pause()));_s.disableClick_bl||(_s.firstTapPlaying_bl=_s.isPlaying_bl,FWDEVPlayer.keyboardCurInstance=_s,_s.controller_do&&0!=_s.controller_do.mainHolder_do.y&&_s.isMobile_bl||(!_s.isMobile_bl&&(FWDEVPlayer.videoStartBehaviour==FWDEVPlayer.PAUSE_ALL_VIDEOS?FWDEVPlayer.pauseAllVideos(_s):FWDEVPlayer.videoStartBehaviour==FWDEVPlayer.STOP_ALL_VIDEOS&&FWDEVPlayer.stopAllVideos(_s)),_s.videoType_str==FWDEVPlayer.IMAGE||_s.videoType_str==FWDEVPlayer.IFRAME?_s.togglePlayPause():_s.videoType_str==FWDEVPlayer.YOUTUBE?_s.ytb_do.togglePlayPause():_s.videoType_str==FWDEVPlayer.VIMEO?_s.vimeo_do.togglePlayPause():_s.videoType_str==FWDEVPlayer.MP3?_s.audioScreen_do.togglePlayPause():_s.videoScreen_do&&_s.videoScreen_do.togglePlayPause()))}},_s.showClickScreen=function(){_s.dClk_do.setVisible(!0),_s.isAdd_bl&&_s._d.adsPageToOpenURL_str&&"none"!=_s._d.adsPageToOpenURL_str?_s.dClk_do.setButtonMode(!0):_s.is360?_s.dClk_do.style().cursor="url("+_s._d.handPath_str+"), default":_s.dClk_do.setButtonMode(!1),_s.dispatchEvent(FWDEVPlayer.SHOW_CURSOR)},_s.hideClickScreen=function(){_s.dClk_do.setVisible(!1)},_s.disableClick=function(){_s.disableClick_bl=!0,clearTimeout(_s.disableClickId_to),_s.disableClickId_to=setTimeout(function(){_s.disableClick_bl=!1},500)},_s.addDoubleClickSupport=function(){_s.hasPointerEvent_bl?_s.dClk_do.screen.addEventListener("pointerdown",_s.onFirstDown):(!_s.isMobile_bl&&(_s.dClk_do.screen.addEventListener("mousedown",_s.onFirstDown),FWDEVPUtils.isIEWebKit&&_s.dClk_do.screen.addEventListener("dblclick",_s.onSecondDown)),_s.dClk_do.screen.addEventListener("touchstart",_s.onFirstDown)),_s.setupVisualization()},_s.onFirstDown=function(t){if(2!=t.button){_s.isFullscreen_bl&&t.preventDefault&&t.preventDefault();var e=FWDEVPUtils.getViewportMouseCoordinates(t);_s.firstTapX=e.screenX-_s.main_do.getGlobalX(),_s.firstTapY=e.screenY-_s.main_do.getGlobalY(),_s.firstTapPlaying_bl=_s.isPlaying_bl,FWDEVPUtils.isIEWebKit||(_s.hasPointerEvent_bl?(_s.dClk_do.screen.removeEventListener("pointerdown",_s.onFirstDown),_s.dClk_do.screen.addEventListener("pointerdown",_s.onSecondDown)):(!_s.isMobile_bl&&(_s.dClk_do.screen.addEventListener("mousedown",_s.onSecondDown),_s.dClk_do.screen.removeEventListener("mousedown",_s.onFirstDown)),_s.dClk_do.screen.addEventListener("touchstart",_s.onSecondDown),_s.dClk_do.screen.removeEventListener("touchstart",_s.onFirstDown)),clearTimeout(_s.secondTapId_to),_s.secondTapId_to=setTimeout(_s.doubleTapExpired,500))}},_s.doubleTapExpired=function(){clearTimeout(_s.secondTapId_to),_s.hasPointerEvent_bl?(_s.dClk_do.screen.removeEventListener("pointerdown",_s.onSecondDown),_s.dClk_do.screen.addEventListener("pointerdown",_s.onFirstDown)):(_s.dClk_do.screen.removeEventListener("touchstart",_s.onSecondDown),_s.dClk_do.screen.addEventListener("touchstart",_s.onFirstDown),!_s.isMobile_bl&&(_s.dClk_do.screen.removeEventListener("mousedown",_s.onSecondDown),_s.dClk_do.screen.addEventListener("mousedown",_s.onFirstDown)))},_s.onSecondDown=function(t){t.preventDefault&&t.preventDefault();var e=FWDEVPUtils.getViewportMouseCoordinates(t),o,s;(FWDEVPUtils.isIEWebKit&&(_s.firstTapPlaying_bl=_s.isPlaying_bl),!(t.touches&&1!=t.touches.length))&&(o=Math.abs(e.screenX-_s.main_do.getGlobalX()-_s.firstTapX),s=Math.abs(e.screenY-_s.main_do.getGlobalY()-_s.firstTapY),10<o||10<s||(_s.firstTapX<.33*_s.tempVidStageWidth?!_s.isPlaying_bl&&(_s.skipOnDb_bl=!0,_s.rewind(10),_s.addVisualization("left"),setTimeout(function(){_s.isPlaying_bl||_s.play()},200),setTimeout(function(){_s.skipOnDb_bl=!1},500)):_s.firstTapX>.67*_s.tempVidStageWidth?!_s.isPlaying_bl&&(_s.skipOnDb_bl=!0,_s.rewind(-10),_s.addVisualization("right"),_s.rewindId_to=setTimeout(function(){_s.isPlaying_bl||_s.play()},200),setTimeout(function(){_s.skipOnDb_bl=!1},500)):(_s.switchFullScreenOnDoubleClick(),_s.firstTapPlaying_bl?_s.play():_s.pause())))},_s.switchFullScreenOnDoubleClick=function(){_s.disableClick(),_s.isFullScreen_bl?_s.goNormalScreen():_s.goFullScreen()},_s.lasPosition,_s.setupVisualization=function(){_s.mainVz_do=new FWDEVPDO("div"),_s.mainVz_do.style().pointerEvents="none",_s.mainVz_do.style().backgroundColor="rgba(0,0,0,0.01)",_s.mainVzBackgrond_do=new FWDEVPDO("div"),_s.mainVzBackgrond_do.style().width="100%",_s.mainVzBackgrond_do.style().height="100%",_s.mainVzBackgrond_do.style().backgroundColor="rgba(255,255,255, .15)",_s.mainVz_do.style().borderRadius="100%",_s.mainVz_do.addChild(_s.mainVzBackgrond_do),_s.circle_do=new FWDEVPDO("div",0,0,!0),_s.circle_do.style().backgroundColor="rgba(255,255,255, .15)",_s.circle_do.style().borderRadius="100%",_s.mainVz_do.addChild(_s.circle_do);var e=new Image;e.src=_s.mainFolderPath_str+_s.sknPth+"vis.png",_s.vzImg1_do=new FWDEVPDO("img",0,0,!0),_s.vzImg1_do.setScreen(e),_s.vzImg1_do.setWidth(17),_s.vzImg1_do.setHeight(23),_s.mainVz_do.addChild(_s.vzImg1_do);var t=new Image;t.src=_s.mainFolderPath_str+_s.sknPth+"vis.png",_s.vzImg2_do=new FWDEVPDO("img",0,0,!0),_s.vzImg2_do.setScreen(t),_s.vzImg2_do.setWidth(17),_s.vzImg2_do.setHeight(23),_s.mainVz_do.addChild(_s.vzImg2_do);var o=new Image;o.src=_s.mainFolderPath_str+_s.sknPth+"vis.png",_s.vzImg3_do=new FWDEVPDO("img",0,0,!0),_s.vzImg3_do.setScreen(o),_s.vzImg3_do.setWidth(17),_s.vzImg3_do.setHeight(23),_s.mainVz_do.addChild(_s.vzImg3_do)},_s.addVisualization=function(e){clearTimeout(_s.vizFinisedId_to),clearTimeout(_s.vizFinished2Id_to);var t=Math.round(_s.tempVidStageWidth/2),o=Math.round(1.5*_s.tempVidStageHeight);FWDAnimation.killTweensOf(_s.mainVzBackgrond_do),_s.lasPosition!=e&&_s.mainVzBackgrond_do.setAlpha(0),FWDAnimation.to(_s.mainVzBackgrond_do,.4,{alpha:1}),_s.mainVz_do.setVisible(!0),_s.mainVz_do.setWidth(t),_s.mainVz_do.setHeight(o),_s.mainVz_do.setY((_s.tempVidStageHeight-o)/2);var s=Math.abs(_s.mainVz_do.y);_s.controller_do&&_s.controller_do.isShowed_bl&&(s-=_s.controller_do.sH/2),_s.main_do.contains(_s.mainVz_do)||(_s.controller_do?_s.main_do.addChildAt(_s.mainVz_do,_s.main_do.getChildIndex(_s.controller_do)-1):_s.main_do.addChild(_s.mainVz_do)),"right"==e?(_s.mainVz_do.style().borderRadius="100% 0% 0% 100%",_s.mainVz_do.setX(t),_s.vzImg1_do.setRotation(0),_s.vzImg2_do.setRotation(0),_s.vzImg3_do.setRotation(0)):(_s.mainVz_do.style().borderRadius="0% 100% 100% 0%",_s.mainVz_do.setX(0),_s.vzImg1_do.setRotation(180),_s.vzImg2_do.setRotation(180),_s.vzImg3_do.setRotation(180)),_s.vzImg1_do.setX(Math.round(t-3*_s.vzImg1_do.w)/2),_s.vzImg1_do.setY(Math.round(s+(_s.tempVidStageHeight-_s.vzImg1_do.h)/2)),_s.vzImg2_do.setX(_s.vzImg1_do.x+_s.vzImg1_do.w),_s.vzImg2_do.setY(_s.vzImg1_do.y),_s.vzImg3_do.setX(_s.vzImg2_do.x+_s.vzImg2_do.w),_s.vzImg3_do.setY(_s.vzImg2_do.y),FWDAnimation.killTweensOf(_s.vzImg1_do),FWDAnimation.killTweensOf(_s.vzImg2_do),FWDAnimation.killTweensOf(_s.vzImg3_do),_s.vzImg1_do.setAlpha(0),_s.vzImg2_do.setAlpha(0),_s.vzImg3_do.setAlpha(0),"right"==e?(FWDAnimation.to(_s.vzImg1_do,.4,{alpha:1}),FWDAnimation.to(_s.vzImg1_do,.4,{alpha:0,delay:.3}),FWDAnimation.to(_s.vzImg2_do,.4,{alpha:1,delay:.3}),FWDAnimation.to(_s.vzImg2_do,.4,{alpha:0,delay:.6}),FWDAnimation.to(_s.vzImg3_do,.4,{alpha:1,delay:.6}),FWDAnimation.to(_s.vzImg3_do,.4,{alpha:0,delay:.9})):(FWDAnimation.to(_s.vzImg3_do,.4,{alpha:1}),FWDAnimation.to(_s.vzImg3_do,.4,{alpha:0,delay:.3}),FWDAnimation.to(_s.vzImg2_do,.4,{alpha:1,delay:.3}),FWDAnimation.to(_s.vzImg2_do,.4,{alpha:0,delay:.6}),FWDAnimation.to(_s.vzImg1_do,.4,{alpha:1,delay:.6}),FWDAnimation.to(_s.vzImg1_do,.4,{alpha:0,delay:.9})),FWDAnimation.killTweensOf(_s.circle_do),_s.circle_do.setAlpha(1),_s.circle_do.setScale2(1),_s.circle_do.setWidth(t),_s.circle_do.setHeight(t),_s.circle_do.setScale2(0),_s.circle_do.setX(_s.firstTapX-_s.mainVz_do.x-_s.circle_do.w/2),_s.circle_do.setY(_s.firstTapY+s-_s.circle_do.w/2),FWDAnimation.to(_s.circle_do,.8,{scale:2,ease:Expo.easeInOut}),_s.vizFinisedId_to=setTimeout(function(){FWDAnimation.to(_s.mainVzBackgrond_do,.4,{alpha:0}),FWDAnimation.to(_s.circle_do,.4,{alpha:0}),_s.vizFinished2Id_to=setTimeout(function(){_s.mainVz_do.setVisible(!1)},400)},800),_s.lasPosition=e},_s.stopVisualization=function(){_s.mainVz_do&&(clearTimeout(_s.vizFinisedId_to),clearTimeout(_s.vizFinished2Id_to),_s.mainVz_do.setVisible(!1))},_s.setupVimeoAPI=function(){if(!_s.vimeo_do){if(_s.dispatchEvent(FWDEVPlayer.FRAMEWORK_LOAD),"undefined"!=typeof Vimeo&&Vimeo.Player)return void _s.setupVimeoPlayer();if(FWDEVPlayer.isVimeoAPILoadedOnce_bl)return void(_s.keepCheckingVimeoAPI_int=setInterval(function(){"undefined"!=typeof Vimeo&&Vimeo&&Vimeo.Player&&(-1==_s.videoSourcePath_str.indexOf("vimeo.")&&clearInterval(_s.keepCheckingVimeoAPI_int),clearInterval(_s.keepCheckingVimeoAPI_int),_s.setupVimeoPlayer())},50));var e=document.createElement("script");e.src="https://player.vimeo.com/api/player.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t),e.onload=function(){_s.keepCheckingVimeoAPI_int=setInterval(function(){"undefined"!=typeof Vimeo&&Vimeo&&Vimeo.Player&&(clearInterval(_s.keepCheckingVimeoAPI_int),_s.setupVimeoPlayer())},50),FWDEVPlayer.isVimeoAPILoadedOnce_bl=!0},e.onerror=function(){setTimeout(function(){_s.main_do.addChild(_s.info_do);_s.displayError("Error loading Vimeo API")},500)},_s.largePlayButton_do&&_s.hideLargePlayButton()}},_s.isVimeoReady_bl=!1,_s.setupVimeoPlayer=function(){_s.vimeo_do||(FWDEVPVimeoScreen.setPrototype(),_s.vimeo_do=new FWDEVPVimeoScreen(_s,_s._d.volume),_s.vimeo_do.addListener(FWDEVPVimeoScreen.ERROR,_s.videoScreenErrorHandler),_s.vimeo_do.addListener(FWDEVPVimeoScreen.READY,_s.vimeoReadyHandler),_s.vimeo_do.addListener(FWDEVPVimeoScreen.STOP,_s.videoScreenStopHandler),_s.vimeo_do.addListener(FWDEVPVimeoScreen.SAFE_TO_SCRUBB,_s.videoScreenSafeToScrubbHandler),_s.vimeo_do.addListener(FWDEVPVimeoScreen.PLAY,_s.videoScreenPlayHandler),_s.vimeo_do.addListener(FWDEVPVimeoScreen.PAUSE,_s.videoScreenPauseHandler),_s.vimeo_do.addListener(FWDEVPVimeoScreen.UPDATE,_s.videoScreenUpdateHandler),_s.vimeo_do.addListener(FWDEVPVimeoScreen.UPDATE_TIME,_s.videoScreenUpdateTimeHandler),_s.vimeo_do.addListener(FWDEVPVimeoScreen.LOAD_PROGRESS,_s.videoScreenLoadProgressHandler),_s.vimeo_do.addListener(FWDEVPVimeoScreen.PLAY_COMPLETE,_s.videoScreenPlayCompleteHandler),_s.vimeo_do.addListener(FWDEVPVimeoScreen.UPDATE_SUBTITLE,_s.videoScreenUpdateSubtitleHandler),_s.dispatchEvent(FWDEVPlayer.FRAMEWORK_DONE))},_s.vimeoReadyHandler=function(){_s.isVimeoReady_bl=!0,clearInterval(_s.hidePreloaderId_to),_s.vimeo_do.iFrame_do&&(_s.vimeo_do.iFrame_do.screen.style.left="0px"),_s.setSource(_s.videoSourcePath_str,!0),_s.preloader_do&&(_s.preloader_do.hide(!1),_s.preloader_do.stopPreloader())},_s.setupYoutubeAPI=function(){if(!_s.ytb_do){if(_s.dispatchEvent(FWDEVPlayer.FRAMEWORK_LOAD),"undefined"!=typeof YT&&YT.Player||FWDEVPlayer.isYoutubeAPILoadedOnce_bl)return void _s.setupYoutubePlayer();if(FWDEVPlayer.isYoutubeAPILoadedOnce_bl)return void(_s.keepCheckingYoutubeAPI_int=setInterval(function(){"undefined"!=typeof YT&&YT&&YT.Player&&(-1==_s.videoSourcePath_str.indexOf("youtube.")&&clearInterval(_s.keepCheckingYoutubeAPI_int),clearInterval(_s.keepCheckingYoutubeAPI_int),_s.setupYoutubePlayer())},50));var e=document.createElement("script");e.src="https://www.youtube.com/iframe_api";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t),e.onload=function(){_s.checkIfYoutubePlayerIsReadyId_int=setInterval(function(){YT&&YT.Player&&(clearInterval(_s.checkIfYoutubePlayerIsReadyId_int),_s.setupYoutubePlayer())},50)},e.onerror=function(){setTimeout(function(){_s.main_do.addChild(_s.info_do),_s.info_do.allowToRemove_bl=!1;_s.displayError("Error loading Youtube API")},500)}}},_s.setupYoutubePlayer=function(){_s.ytb_do||(FWDEVPYoutubeScreen.setPrototype(),_s.ytb_do=new FWDEVPYoutubeScreen(_s,_s._d.volume),_s.ytb_do.addListener(FWDEVPYoutubeScreen.READY,_s.youtubeReadyHandler),_s.ytb_do.addListener(FWDEVPVideoScreen.ERROR,_s.videoScreenErrorHandler),_s.ytb_do.addListener(FWDEVPYoutubeScreen.SAFE_TO_SCRUBB,_s.videoScreenSafeToScrubbHandler),_s.ytb_do.addListener(FWDEVPYoutubeScreen.STOP,_s.videoScreenStopHandler),_s.ytb_do.addListener(FWDEVPYoutubeScreen.PLAY,_s.videoScreenPlayHandler),_s.ytb_do.addListener(FWDEVPYoutubeScreen.PAUSE,_s.videoScreenPauseHandler),_s.ytb_do.addListener(FWDEVPYoutubeScreen.UPDATE,_s.videoScreenUpdateHandler),_s.ytb_do.addListener(FWDEVPYoutubeScreen.UPDATE_TIME,_s.videoScreenUpdateTimeHandler),_s.ytb_do.addListener(FWDEVPYoutubeScreen.LOAD_PROGRESS,_s.videoScreenLoadProgressHandler),_s.ytb_do.addListener(FWDEVPYoutubeScreen.PLAY_COMPLETE,_s.videoScreenPlayCompleteHandler),_s.ytb_do.addListener(FWDEVPYoutubeScreen.CUED,_s.youtubeScreenCuedHandler),_s.ytb_do.addListener(FWDEVPYoutubeScreen.QUALITY_CHANGE,_s.youtubeScreenQualityChangeHandler),_s.ytb_do.addListener(FWDEVPVideoScreen.UPDATE_SUBTITLE,_s.videoScreenUpdateSubtitleHandler),FWDEVPlayer.isYoutubeAPILoadedOnce_bl=!0,!_s.isMobile_bl&&_s.ytb_do.showDisable(),clearTimeout(_s.ytb_do),_s.dispatchEvent(FWDEVPlayer.FRAMEWORK_DONE))},_s.youtubeReadyHandler=function(){return _s.isYoutubeReady_bl=!0,_s.videoType_str==FWDEVPlayer.YOUTUBE?_s.ytb_do.hasBeenCreatedOnce_bl?-1==_s.videoSourcePath_str.indexOf(".")?(_s.isMobile_bl?(_s.setPosterSource(void 0),_s.videoPoster_do.hide()):_s.setPosterSource(_s.posterPath_str),void(-1==_s.videoSourcePath_str.indexOf(".")&&_s.setSource(_s.videoSourcePath_str,!0,_s._d.videosSource_ar[_s._d.startAtVideoSource].videoType))):void 0:void(_s.isMobile_bl&&setTimeout(function(){try{_s.ytb_do.ytb.a.style.left="0px"}catch(t){}},500),_s.setSource(_s.videoSourcePath_str,!0,_s._d.videosSource_ar[_s._d.startAtVideoSource].videoType),_s.preloader_do&&(_s.preloader_do.hide(!1),_s.preloader_do.stopPreloader())):void 0},_s.youtubeScreenCuedHandler=function(){_s.main_do&&_s.main_do.contains(_s.info_do)&&_s.main_do.removeChild(_s.info_do)},_s.youtubeScreenQualityChangeHandler=function(t){_s.videoType_str==FWDEVPlayer.VIDEO&&(_s.curDurration=_s.videoScreen_do.curDuration),_s.controller_do&&_s.controller_do.updateQuality(t.levels,t.qualityLevel)},_s.setupContextMenu=function(){FWDEVPContextMenu.setPrototype(),_s.customContextMenu_do=new FWDEVPContextMenu(_s,_s._d)},_s.setupOpener=function(){FWDEVPOpener.setPrototype(),_s.opener_do=new FWDEVPOpener(_s,_s._d,_s.position_str,_s.isShowed_bl),_s.opener_do.style().zIndex="99999999994",_s.opener_do.setX(-1e3),_s.isShowed_bl?_s.opener_do.showCloseButton():_s.opener_do.showOpenButton(),_s.opener_do.addListener(FWDEVPOpener.SHOW,_s.openerShowHandler),_s.opener_do.addListener(FWDEVPOpener.HIDE,_s.openerHideHandler),_s.opener_do.addListener(FWDEVPOpener.PLAY,_s.controllerOnPlayHandler),_s.opener_do.addListener(FWDEVPOpener.PAUSE,_s.controllerOnPauseHandler),_s.stageContainer.appendChild(_s.opener_do.screen),_s.stickyOnScroll&&(_s.opener_do.style().position="fixed",document.documentElement.appendChild(_s.opener_do.screen))},_s.openerShowHandler=function(){_s.showPlayer()},_s.openerHideHandler=function(){_s.hidePlayer()},_s.setupRSM=function(){_s._d.useResumeOnPlay_bl&&window.addEventListener("beforeunload",function(){1e3*Math.random();if(_s.isPlaying_bl){document.cookie="fwdevp_video_path="+_s.videoSourcePath_str+"; expires=Thu, 18 Dec 2040 00:00:01 GMT; path=/";var e=_s.getCurrentTime();5==e.length&&(e="00:"+e),document.cookie="fwdevp_time="+e+"; expires=Thu, 18 Dec 2040 00:00:01 GMT; path=/"}})},_s.setupData=function(){FWDEVPData.setPrototype(),_s._d=new FWDEVPData(_s.props,_s.rootElement_el,_s),_s.mainBackground_do&&(_s.mainBackground_do.style().background="url('"+_s.mainBackgroundImagePath_str+"')"),_s._d.addListener(FWDEVPData.VAST_LOADING,_s.vastLoading),_s._d.addListener(FWDEVPData.VAST_LOADED_DONE,_s.vastLoadedDone),_s._d.addListener(FWDEVPData.PRELOADER_LOAD_DONE,_s.onPreloaderLoadDone),_s._d.addListener(FWDEVPData.LOAD_ERROR,_s.dataLoadError),_s._d.addListener(FWDEVPData.SKIN_PROGRESS,_s.dataSkinProgressHandler),_s._d.addListener(FWDEVPData.SKIN_LOAD_COMPLETE,_s.dataSkinLoadComplete),_s._d.addListener(FWDEVPData.IMA_READY,_s.dataImaReady),_s._d.addListener(FWDEVPData.IMA_ERROR,_s.dataImaError)},_s.vastLoading=function(){_s.isVastLoading_bl=!0,_s.preloader_do.show(!0),_s.preloader_do.startPreloader()},_s.vastLoadedDone=function(){_s.isAdd_bl=!1,_s.isVastLoading_bl=!1,_s.updateAds(0,!0),_s.preloader_do.hide(!0),_s.dispatchEvent(FWDEVPlayer.VAST_LOADED_DONE)},_s.onPreloaderLoadDone=function(){_s.setupPreloader(),_s.isMobile_bl||_s.setupContextMenu(),_s.displayType==FWDEVPlayer.BACKGROUND_VIDEO?(_s._d.useChromeless_bl=!0,_s._d.autoPlay_bl=!0,_s._d.loop_bl=!0,_s._d.fillEntireVideoScreen_bl=_s.fillEntireVideoScreen_bl=!0):_s.fillEntireVideoScreen_bl=_s._d.fillEntireVideoScreen_bl,_s.resizeHandler()},_s.dataLoadError=function(t){_s.main_do.addChild(_s.info_do),_s.info_do.showText(t.text),_s.preloader_do&&(_s.preloader_do.hide(!1),_s.preloader_do.stopPreloader()),_s.resizeHandler(),_s.dispatchEvent(FWDEVPlayer.ERROR,{error:t.text})},_s.dataSkinProgressHandler=function(){},_s.dataSkinLoadComplete=function(){window.removeEventListener("scroll",_s.onScrollHandler),_s.volume=_s._d.volume,_s.displayType!=FWDEVPlayer.FULL_SCREEN||FWDEVPUtils.hasFullScreen||(_s._d.showFullScreenButton_bl=!1),clearInterval(_s.hidePreloaderId_to),_s.hidePreloaderId_to=setTimeout(function(){_s.preloader_do&&!_s.isVastLoading_bl&&(_s.preloader_do.hide(!1),_s.preloader_do.stopPreloader())},500),_s.useWithoutVideoScreen_bl&&(_s._d.showFullScreenButton_bl=!1,_s._d.showDownloadVideoButton_bl=!1,_s._d.showSubtitleButton_bl=!1,_s._d.showEmbedButton_bl=!1,_s._d.showYoutubeQualityButton_bl=!1,_s._d.showShareButton_bl=!1,_s._d.showPlaybackRateButton_bl=!1,_s._d.controllerHideDelay=1e7),_s.setupNormalVideoPlayer(),_s.animate_bl=_s._d.animate_bl,(_s._d.showOpener_bl&&_s.displayType==FWDEVPlayer.STICKY||_s._d.stickyOnScrollShowOpener_bl&&_s.stickyOnScroll)&&_s.setupOpener(),_s._d.useVectorIcons_bl?_s.checkFinalButtonSizezId_int=setInterval(function(){_s.controller_do?0!=_s.controller_do.playPauseButton_do.w&&setTimeout(function(){_s.isShowedFirstTime_bl=!1,_s.resizeHandler(_s.animate_bl),clearInterval(_s.checkFinalButtonSizezId_int)},100):_s.controller_do&&clearInterval(_s.checkFinalButtonSizezId_int)},50):setTimeout(function(){_s.isShowedFirstTime_bl=!1,_s.resizeHandler(_s.animate_bl)},50)},_s.dataImaReady=function(){if(_s.isIMA){var e=_s._d.videosSource_ar[_s._d.startAtVideoSource];_s.setSource(e.source,!0,_s._d.videosSource_ar[_s._d.startAtVideoSource].videoType,e.source2)}},_s.dataImaError=function(){_s.errorImaSDK=!0;var e=_s._d.videosSource_ar[_s._d.startAtVideoSource];_s.setSource(e.source,!1,_s._d.videosSource_ar[_s._d.startAtVideoSource].videoType,e.source2)},_s.setupNormalVideoPlayer=function(){_s.normalVideoPlayersCreated_bl||(_s.normalVideoPlayersCreated_bl=!0,_s.isAPIReady_bl=!0,_s.setupVideoScreen(),_s.setupAudioScreen(),_s.setupVideoPoster(),_s.showPreloader_bl&&_s.main_do.addChild(_s.preloader_do),_s.setupSubtitle(),_s.setupClickScreen(),_s.setupPopupAds(),!_s.disableDoubleClickFullscreen_bl&&_s.addDoubleClickSupport(),!_s._d.useChromeless_bl&&_s._d.showController_bl&&_s.setupController(),!_s._d.useChromeless_bl&&_s._d.showLogo_bl&&_s.setupLogo(),_s.setupHider(),!_s._d.useChromeless_bl&&_s._d.showController_bl&&_s._d.showEmbedButton_bl&&_s.setupEmbedWindow(),!_s._d.useChromeless_bl&&_s._d.showController_bl&&_s.setupPasswordWindow(),!_s._d.isLoggedIn_bl&&_s._d.showController_bl&&_s.setupLoginWindow(),!_s._d.useChromeless_bl&&_s._d.showController_bl&&_s._d.showShareButton_bl&&_s.setupShareWindow(),_s._d.showAopwWindow_bl&&_s.setupAopw(),!_s._d.useChromeless_bl&&_s._d.showController_bl&&_s.setupAdsStart(),_s._d.hasAnnotiations_bl&&_s.setupAnnotations(),!_s._d.useChromeless_bl&&_s.setupLargePlayPauseButton(),_s._d.showChromecastButton_bl&&_s.setupChormecast(),_s.addMinOnScroll(),_s.setupDisableClick(),_s.setupRSM(),_s.updateAds(0,!0),setTimeout(function(){_s.dispatchEvent(FWDEVPlayer.READY)},50),_s.displayType==FWDEVPlayer.BACKGROUND_VIDEO&&_s.isMobile_bl&&(_s.hasPointerEvent_bl?window.addEventListener("pointerdown",_s.playVideoBackgroundOnMobileOnInteraction):window.addEventListener("touchstart",_s.playVideoBackgroundOnMobileOnInteraction)),_s._d.addKeyboardSupport_bl&&_s.addKeyboardSupport(),_s.resizeHandler())},_s.setupAopw=function(){FWDEVPOPWindow.setPrototype(),_s.popw_do=new FWDEVPOPWindow(_s._d,_s)},_s.playVideoBackgroundOnMobileOnInteraction=function(){_s.hasPointerEvent_bl?window.removeEventListener("pointerdown",_s.playVideoBackgroundOnMobileOnInteraction):window.removeEventListener("touchstart",_s.playVideoBackgroundOnMobileOnInteraction),_s.play()},_s.setupAPT=function(){!_s.apt&&_s._d.autoPlayText&&_s._d.autoPlay_bl&&(_s.removeAPT(),_s.apt=new FWDEVPDO("div",0,0,!0),_s.apt.screen.className="fwdevp-autoplay-text",_s.apt.setButtonMode(!0),_s.apt.setInnerHTML(_s._d.autoPlayText+"<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#clip0)\"><path d=\"M9.4272 0.430497C9.4272 0.267667 9.33293 0.113407 9.18724 0.0448468C9.03298 -0.0322832 8.86158 -0.00657319 8.73303 0.0962667L4.93652 3.12147L9.4272 7.61215V0.430497Z\" fill=\"black\"/><path d=\"M11.8742 11.2702L0.733188 0.129242C0.566073 -0.0378725 0.294404 -0.0378725 0.127289 0.129242C-0.0398256 0.296357 -0.0398256 0.568026 0.127289 0.735141L2.82341 3.43212H2.57231C2.30664 3.43212 2.07525 3.5521 1.92099 3.74064C1.79244 3.88633 1.71531 4.08344 1.71531 4.28912V7.71712C1.71531 8.18847 2.10096 8.57412 2.57231 8.57412H4.56055L8.73413 11.9078C8.81126 11.9678 8.90553 12.0021 8.9998 12.0021C9.05979 12.0021 9.12835 11.985 9.18834 11.9593C9.33403 11.8907 9.4283 11.7364 9.4283 11.5736V10.037L11.2674 11.8761C11.3514 11.9601 11.4611 12.0021 11.5708 12.0021C11.6805 12.0021 11.7902 11.9601 11.8742 11.877C12.0413 11.709 12.0413 11.4382 11.8742 11.2702Z\" fill=\"black\"/></g></svg>"),_s.main_do.addChild(_s.apt),_s.isMobile_bl?_s.apt.screen.addEventListener("touchend",_s.aptSetVolume,{passive:!1}):_s.apt.screen.addEventListener("click",_s.aptSetVolume)),_s.showAPT()},_s.aptSetVolume=function(t){t.preventDefault&&t.preventDefault(),_s.setVolume(_s._d.volume,!0)},_s.removeAPT=function(t){t&&t.preventDefault&&t.preventDefault(),_s.apt&&_s.main_do.contains(_s.apt)&&_s.main_do.removeChild(_s.apt),FWDAnimation.killTweensOf(_s.apt),_s.aptRemoved=!0,_s.apt=null},_s.hideAPT=function(){_s.apt&&_s.apt.setX(-5e3)},_s.showAPT=function(){_s.apt&&(_s.apt.setX(0),_s.apt.setScale2(0),FWDAnimation.to(_s.apt,1,{scale:1,ease:Elastic.easeInOut}))},_s.setupPopupAds=function(){FWDEVPPopupAds.setPrototype(),_s.popupAds_do=new FWDEVPPopupAds(_s,_s._d),_s.main_do.addChild(_s.popupAds_do)},_s.setupPreloader=function(){FWDEVPPreloader.setPrototype(),_s.preloader_do=new FWDEVPPreloader(_s,"center",10,_s.preloaderBackgroundColor,_s.preloaderFillColor,3,.8),_s.preloader_do.show(!1),_s.preloader_do.startPreloader(),_s.showPreloader_bl&&(_s.displayType==FWDEVPlayer.STICKY?document.documentElement.appendChild(_s.preloader_do.screen):_s.main_do.addChild(_s.preloader_do))},_s.positionPreloader=function(){_s.displayType==FWDEVPlayer.STICKY?_s.main_do.contains(_s.preloader_do)?(_s.preloader_do.setX(Math.round((_s.sW-_s.preloader_do.w)/2)),_s.preloader_do.setY(Math.round((_s.sH-_s.preloader_do.h)/2))):(_s.preloader_do.setX(Math.round((_s.ws.w-_s.preloader_do.w)/2)),_s.position_str==FWDEVPlayer.POSITION_BOTTOM?_s.preloader_do.setY(Math.round(_s.ws.h-_s.preloader_do.h-10)+FWDEVPUtils.getScrollOffsets().y):_s.preloader_do.setY(10)):(_s.preloader_do.setX(parseInt((_s.sW-_s.preloader_do.w)/2)),_s.preloader_do.setY(parseInt((_s.sH-_s.preloader_do.h)/2)))},_s.setupVideoPoster=function(){FWDEVPPoster.setPrototype(),_s.videoPoster_do=new FWDEVPPoster(_s,_s._d.posterBackgroundColor_str,_s._d.show,_s._d.fillEntireScreenWithPoster_bl),_s.main_do.addChild(_s.videoPoster_do)},_s.setupChormecast=function(){FWDEVPCC.setPrototype(),_s.cc=new FWDEVPCC(_s.controller_do)},_s.setupLargePlayPauseButton=function(){if(_s._d.useVectorIcons_bl){var e=_s.fontIcon+" "+_s.fontIcon+"-play";FWDEVPSimpleButton.setTransformPrototype(),_s.largePlayButton_do=new FWDEVPSimpleButton(void 0,0,0,!0,0,0,0,"<div class='table-fwdevp-button'><span class='table-cell-fwdevp-button "+e+"'></span></div>",void 0,"EVPLargePlayButtonNormalState","EVPLargePlayButtonSelectedState")}else FWDEVPSimpleButton.setTransformPrototype(),_s.largePlayButton_do=new FWDEVPSimpleButton(_s._d.largePlayN_img,_s._d.largePlayS_str,void 0,!0,_s._d.useHEX,_s._d.nBC,_s._d.sBC,void 0,void 0,void 0,void 0,!0);_s.largePlayButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,_s.largePlayButtonUpHandler),_s.largePlayButton_do.setOverflow("visible"),_s.hideLargePlayButton(),_s.notShowLargePlayButton_bl||_s.main_do.addChild(_s.largePlayButton_do)},_s.largePlayButtonUpHandler=function(){if(!(_s.isIMA&&_s.IMA&&!_s.IMA.isReady)){if(_s.disableClick(),_s.videoType_str==FWDEVPlayer.VIMEO&&_s.vimeo_do){if(_s.vimeo_do.hasError)return;_s.vimeo_do.hideDisable()}_s.hideLargePlayButton(),_s.play(),_s._d.goFullScreenOnPlay_bl&&_s.goFullScreen()}},_s.positionLargePlayButton=function(){_s.largePlayButton_do.setX(parseInt((_s.sW-_s.largePlayButton_do.w)/2)),_s.largePlayButton_do.setY(parseInt((_s.sH-_s.largePlayButton_do.h)/2))},_s.showLargePlayButton=function(e){_s.notShowPlayBtnExternal&&!_s.isFullScreen_bl||(_s.largePlayButton_do.show(e),_s.dispatchEvent(FWDEVPlayer.SHOW_PLAY_BUTTON))},_s.hideLargePlayButton=function(){_s.largePlayButton_do.hide(),_s.dispatchEvent(FWDEVPlayer.HIDE_PLAY_BUTTON)},_s.setupLogo=function(){FWDEVPLogo.setPrototype(),_s.logo_do=new FWDEVPLogo(_s,_s._d.logoPath_str,_s._d.logoPosition_str,_s._d.logoMargins),_s.main_do.addChild(_s.logo_do)},_s.setupSubtitle=function(){FWDEVPSubtitle.setPrototype(),_s.subtitle_do=new FWDEVPSubtitle(_s,_s._d),_s.subtitle_do.addListener(FWDEVPSubtitle.LOAD_COMPLETE,_s.subtitleLoadComplete)},_s.subtitleLoadComplete=function(){_s.controller_do&&_s.controller_do.enableSubtitleButton()},_s.loadSubtitle=function(e){return e?_s.isCasting?void _s.cc.loadSubtitle():void(e&&(_s.subtitle_do.loadSubtitle(e),_s.main_do.addChildAt(_s.subtitle_do,_s.main_do.getChildIndex(_s.dClk_do)-1))):void 0},_s.setupController=function(){FWDEVPController.setPrototype(),_s.controller_do=new FWDEVPController(_s._d,_s),_s.controller_do.addListener(FWDEVPController.REWIND,_s.rewindHandler),_s.controller_do.addListener(FWDEVPData.LOAD_ERROR,_s.thumbnailsPreviewLoadError),_s.controller_do.addListener(FWDEVPController.CHANGE_PLAYBACK_RATES,_s.changePlaybackRateHandler),_s.controller_do.addListener(FWDEVPController.CHANGE_SUBTITLE,_s.changeSubtitileHandler),_s.controller_do.addListener(FWDEVPController.PLAY,_s.controllerOnPlayHandler),_s.controller_do.addListener(FWDEVPController.PAUSE,_s.controllerOnPauseHandler),_s.controller_do.addListener(FWDEVPController.START_TO_SCRUB,_s.controllerStartToScrubbHandler),_s.controller_do.addListener(FWDEVPController.SCRUB,_s.controllerScrubbHandler),_s.controller_do.addListener(FWDEVPController.STOP_TO_SCRUB,_s.controllerStopToScrubbHandler),_s.controller_do.addListener(FWDEVPController.CHANGE_VOLUME,_s.controllerChangeVolumeHandler),_s.controller_do.addListener(FWDEVPController.DOWNLOAD_VIDEO,_s.controllerDownloadVideoHandler),_s.controller_do.addListener(FWDEVPController.SHARE,_s.controllerShareHandler),_s.controller_do.addListener(FWDEVPController.CHANGE_YOUTUBE_QUALITY,_s.controllerChangeYoutubeQualityHandler),_s.controller_do.addListener(FWDEVPController.FULL_SCREEN,_s.controllerFullScreenHandler),_s.controller_do.addListener(FWDEVPController.NORMAL_SCREEN,_s.controllerNormalScreenHandler),_s.controller_do.addListener(FWDEVPController.SHOW_EMBED_WINDOW,_s.showEmbedWindowHandler),_s.controller_do.addListener(FWDEVPController.SHOW_SUBTITLE,_s.showSubtitleHandler),_s.controller_do.addListener(FWDEVPController.HIDE_SUBTITLE,_s.hideSubtitleHandler),_s.main_do.addChild(_s.controller_do)},_s.rewindHandler=function(){_s.rewind(10)},_s.rewind=function(e){var t=_s.getCurrentTime();5==t.length&&(t="00:"+t),7==t.length&&(t="0"+t),t=FWDEVPUtils.getSecondsFromString(t),t-=e,t=FWDEVPUtils.formatTime(t),5==t.length&&(t="00:"+t),7==t.length&&(t="0"+t),_s.scrubbAtTime(t)},_s.thumbnailsPreviewLoadError=function(t){console.log(t)},_s.changePlaybackRateHandler=function(t){_s.setPlaybackRate(t.rate),_s.dispatchEvent(FWDEVPlayer.PLAYBACK_RATE_CHANGE,{rate:t.rate})},_s.changeSubtitileHandler=function(t){_s._d.startAtSubtitle=t.id,_s.controller_do.updateSubtitleButtons(_s._d.subtitles_ar,_s._d.startAtSubtitle),_s._d.subtitlePath_str=_s._d.subtitles_ar[_s._d.subtitles_ar.length-1-_s._d.startAtSubtitle].source,_s._d.startAtSubtitle=t.id,_s.ccSS=t.id,_s.isAdd_bl||_s.loadSubtitle(_s._d.subtitlePath_str)},_s.controllerDownloadVideoHandler=function(){_s.downloadVideo()},_s.showSubtitleHandler=function(){_s.subtitle_do.isShowed_bl=!0,_s.subtitle_do.show()},_s.hideSubtitleHandler=function(){_s.subtitle_do.isShowed_bl=!1,_s.subtitle_do.hide()},_s.controllerOnPlayHandler=function(){_s.play(),_s._d.goFullScreenOnPlay_bl&&_s.goFullScreen()},_s.controllerOnPauseHandler=function(){_s.pause()},_s.controllerStartToScrubbHandler=function(){return _s.isCasting?void _s.cc.startToScrub():void _s.startToScrub()},_s.controllerScrubbHandler=function(t){return _s.isCasting?void _s.cc.seek(t.percent):void _s.scrub(t.percent)},_s.controllerStopToScrubbHandler=function(){return _s.isCasting?void _s.cc.stopToScrub():void _s.stopToScrub()},_s.controllerChangeVolumeHandler=function(t){_s.setVolume(t.percent,!0)},_s.controllerShareHandler=function(){_s.setVideoPlayingStateOnWindowShow(),_s.pause(),_s.shareWindow_do.show(),_s.controller_do&&(_s.controller_do.shareButton_do.setSelectedState(),_s.controller_do.shareButton_do.isDisabled_bl=!0)},_s.controllerChangeYoutubeQualityHandler=function(t){if(_s.videoType_str==FWDEVPlayer.YOUTUBE)_s.ytb_do.setQuality(t.quality);else{_s._d.startAtVideoSource=_s._d.videosSource_ar.length-1-t.id;_s._d.videosSource_ar[_s._d.startAtVideoSource];_s.isQualityChangingError_bl=_s.isQualityChanging_bl=_s.isQualityChangingStop_bl=!0,_s.updateAds(0),_s.play()}},_s.controllerFullScreenHandler=function(){_s.goFullScreen()},_s.controllerNormalScreenHandler=function(){_s.goNormalScreen()},_s.showEmbedWindowHandler=function(){_s.setVideoPlayingStateOnWindowShow(),_s.pause(),_s.customContextMenu_do&&_s.customContextMenu_do.disable(),_s.embedWindow_do.show(),_s.controller_do&&(_s.controller_do.embedButton_do.setSelectedState(),_s.controller_do.embedButton_do.isDisabled_bl=!0)},_s.setVideoPlayingStateOnWindowShow=function(){_s.isCasting?_s.isVideoPlayingWhenOpenWindows_bl="PLAYING"==_s.cc.playerState:_s.isIMA&&_s.IMA.started?_s.isVideoPlayingWhenOpenWindows_bl=_s.IMA.isPlaying:_s.videoType_str==FWDEVPlayer.YOUTUBE&&_s.ytb_do?_s.isVideoPlayingWhenOpenWindows_bl=_s.ytb_do.isPlaying_bl:_s.videoType_str==FWDEVPlayer.VIMEO&&_s.vimeo_do?_s.isVideoPlayingWhenOpenWindows_bl=_s.vimeo_do.isPlaying_bl:FWDEVPlayer.hasHTML5Video&&_s.videoScreen_do&&(_s.isVideoPlayingWhenOpenWindows_bl=_s.videoScreen_do.isPlaying_bl)},_s.setupAudioScreen=function(){FWDEVPAudioScreen.setPrototype(),_s.audioScreen_do=new FWDEVPAudioScreen(_s,_s._d.volume),_s.audioScreen_do.addListener(FWDEVPAudioScreen.ERROR,_s.videoScreenErrorHandler),_s.audioScreen_do.addListener(FWDEVPAudioScreen.SAFE_TO_SCRUBB,_s.videoScreenSafeToScrubbHandler),_s.audioScreen_do.addListener(FWDEVPAudioScreen.STOP,_s.videoScreenStopHandler),_s.audioScreen_do.addListener(FWDEVPAudioScreen.PLAY,_s.videoScreenPlayHandler),_s.audioScreen_do.addListener(FWDEVPAudioScreen.PAUSE,_s.videoScreenPauseHandler),_s.audioScreen_do.addListener(FWDEVPAudioScreen.UPDATE,_s.videoScreenUpdateHandler),_s.audioScreen_do.addListener(FWDEVPAudioScreen.UPDATE_TIME,_s.videoScreenUpdateTimeHandler),_s.audioScreen_do.addListener(FWDEVPAudioScreen.LOAD_PROGRESS,_s.videoScreenLoadProgressHandler),_s.audioScreen_do.addListener(FWDEVPVideoScreen.START_TO_BUFFER,_s.videoScreenStartToBuferHandler),_s.audioScreen_do.addListener(FWDEVPVideoScreen.STOP_TO_BUFFER,_s.videoScreenStopToBuferHandler),_s.audioScreen_do.addListener(FWDEVPAudioScreen.PLAY_COMPLETE,_s.videoScreenPlayCompleteHandler),_s.audioScreen_do.addListener(FWDEVPAudioScreen.UPDATE_SUBTITLE,_s.videoScreenUpdateSubtitleHandler),_s.main_do.addChild(_s.audioScreen_do)},_s.setupVideoScreen=function(){FWDEVPVideoScreen.setPrototype(),_s.videoScreen_do=new FWDEVPVideoScreen(_s,_s.backgroundColor_str,_s._d.volume),_s.videoScreen_do.addListener(FWDEVPVideoScreen.ERROR,_s.videoScreenErrorHandler),_s.videoScreen_do.addListener(FWDEVPVideoScreen.SAFE_TO_SCRUBB,_s.videoScreenSafeToScrubbHandler),_s.videoScreen_do.addListener(FWDEVPVideoScreen.STOP,_s.videoScreenStopHandler),_s.videoScreen_do.addListener(FWDEVPVideoScreen.START,_s.videoScreenStartHandler),_s.videoScreen_do.addListener(FWDEVPVideoScreen.PLAY,_s.videoScreenPlayHandler),_s.videoScreen_do.addListener(FWDEVPVideoScreen.PAUSE,_s.videoScreenPauseHandler),_s.videoScreen_do.addListener(FWDEVPVideoScreen.UPDATE,_s.videoScreenUpdateHandler),_s.videoScreen_do.addListener(FWDEVPVideoScreen.UPDATE_TIME,_s.videoScreenUpdateTimeHandler),_s.videoScreen_do.addListener(FWDEVPVideoScreen.UPDATE_SUBTITLE,_s.videoScreenUpdateSubtitleHandler),_s.videoScreen_do.addListener(FWDEVPVideoScreen.LOAD_PROGRESS,_s.videoScreenLoadProgressHandler),_s.videoScreen_do.addListener(FWDEVPVideoScreen.START_TO_BUFFER,_s.videoScreenStartToBuferHandler),_s.videoScreen_do.addListener(FWDEVPVideoScreen.STOP_TO_BUFFER,_s.videoScreenStopToBuferHandler),_s.videoScreen_do.addListener(FWDEVPVideoScreen.PLAY_COMPLETE,_s.videoScreenPlayCompleteHandler),_s.main_do.addChild(_s.videoScreen_do)},_s.videoScreenStartHandler=function(){_s.callVastEvent("start"),_s.executeVastEvent(_s.Impression)},_s.checkSecondSource=function(){if(_s.videoSource2_str=_s._d.videosSource_ar[_s._d.startAtVideoSource].source2,_s.videoSource2_str&&!_s.playSecondSource&&!_s.isAdd_bl)return _s.playSecondSource=!0,_s.prevIsIMA="-1",_s.setSource(_s.videoSource2_str,!1,_s.videoType),_s.isQualityChangingError_bl&&(_s.play(),_s.isQualityChangingError_bl=!1),!0},_s.videoScreenErrorHandler=function(t){var e;_s.isPlaying_bl=!1;_s.checkSecondSource()||(FWDEVPlayer.hasHTML5Video||_s.videoType_str==FWDEVPlayer.YOUTUBE?(e=t.text,window.console&&console.log(t.text),_s.main_do&&_s.main_do.addChild(_s.info_do),_s.info_do&&_s.info_do.showText(e),_s.controller_do&&(_s.controller_do.disableMainScrubber(),!_s._d.showControllerWhenVideoIsStopped_bl&&_s.controller_do.hide(!_s.isMobile_bl,!0),_s.hideClickScreen(),_s.hider.stop())):(e=t,_s.main_do&&_s.main_do.addChild(_s.info_do),_s.info_do&&_s.info_do.showText(e)),_s.logo_do&&_s.logo_do.hide(!1),_s.preloader_do.hide(!1),_s.preloader_do.stopPreloader(),_s.showCursor(),_s.dispatchEvent(FWDEVPlayer.ERROR,{error:e}))},_s.videoScreenSafeToScrubbHandler=function(){if(!_s.isCasting){_s.controller_do&&(_s.isAdd_bl?(_s.controller_do.disableMainScrubber(),_s._d.showSkipButton_bl&&(0!=_s._d.timeToHoldAds&&_s.adsStart_do.show(!0),_s._d.adsThumbnailPath_str&&"none"!=_s._d.adsThumbnailPath_str&&_s.adsStart_do.loadThumbnail(_s._d.adsThumbnailPath_str)),_s.positionAds()):_s.controller_do.enableMainScrubber(),_s.controller_do&&(!_s.isQualityChanging_bl&&_s.controller_do.disableSubtitleButton(),!_s.isAdd_bl&&_s.controller_do.enableAtbButton(),clearTimeout(_s.hideController_to),_s.controller_do.show(!0)),_s.isAdd_bl||_s.IMA&&_s.IMA.isPlaying||(_s.customContextMenu_do&&_s.customContextMenu_do.enable(),_s.loadSubtitle(_s._d.subtitlePath_str),_s._d.tempShowMainScrubberToolTipLabel_bl=_s._d.showMainScrubberToolTipLabel_bl,(_s._d.thumbnailsPreview||"auto"==_s._d.thumbnailsPreview)&&(_s.videoType_str==FWDEVPlayer.VIDEO||_s.videoType_str==FWDEVPlayer.HLS_JS)&&_s._d.thumbnailsPreview?(_s._d.tempShowMainScrubberToolTipLabel_bl=!1,_s.controller_do.setupThumbnailsPreview(),_s.controller_do.thumbnailsPreview_do.load(_s._d.thumbnailsPreview,_s.videoType_str,_s.videoSource_str,_s.videoScreen_do.video_el)):_s._d.showMainScrubberToolTipLabel_bl&&(_s._d.tempShowMainScrubberToolTipLabel_bl=!0)),!_s.isAdd_bl&&_s.controller_do.ytbQualityButton_do&&_s.controller_do.ytbQualityButton_do.enable(),!_s.isAdd_bl&&_s.controller_do.playbackRateButton_do&&_s.controller_do.enablePlaybackRateButton(),!_s.isAdd_bl&&_s.controller_do&&(_s.controller_do.downloadButton_do&&_s.controller_do.downloadButton_do.enable(),_s.controller_do.rewindButton_do&&_s.controller_do.rewindButton_do.enable()),_s.isQualityChanging_bl&&!_s.isAdd_bl&&(_s.scrubbAtTime(_s.curDurration),_s.curDurration=0,_s.isQualityChanging_bl=!1),_s.hider.start()),_s.showClickScreen(),setTimeout(function(){_s.totalDuration&&_s.controller_do&&_s.controller_do.positionAdsLines(_s.totalDuration)},500);var e=FWDEVPUtils.getHashUrlArgs(window.location.hash);if("00:00:00"!=_s.getStartTimeStamp("t")&&(e.evpi?e.evpi==_s.instanceName_str&&_s.scrubbAtTime(_s.getStartTimeStamp("t")):_s.scrubbAtTime(_s.getStartTimeStamp("t"))),document.cookie&&_s._d.useResumeOnPlay_bl&&FWDEVPUtils.getCookie("fwdevp_video_path")&&FWDEVPUtils.getCookie("fwdevp_time")&&FWDEVPUtils.getCookie("fwdevp_video_path")==_s.videoSourcePath_str&&!_s.isAdd_bl){FWDEVPUtils.getCookie("fwdevp_time");_s.rmsPlayed_bl||_s.scrubbAtTime(FWDEVPUtils.getCookie("fwdevp_time"))}_s.setupAPT(),_s.dispatchEvent(FWDEVPlayer.SAFE_TO_SCRUB)}},_s.videoScreenStopHandler=function(){_s.main_do&&_s.main_do.contains(_s.info_do)&&_s.main_do.removeChild(_s.info_do),_s.videoPoster_do.allowToShow_bl=!0,_s.isPlaying_bl=!1,clearTimeout(_s.hideController_to),_s.controller_do&&(_s.controller_do.disableMainScrubber(),_s.controller_do.showPlayButton(),_s.controller_do.updateMainScrubber(0),_s._d.showControllerWhenVideoIsStopped_bl?_s.controller_do.show(!0):_s.hideController_to=setTimeout(function(){_s.controller_do.hide(!0,!0)},200),_s.hider.stop()),_s.ytb_do&&_s.videoType_str==FWDEVPlayer.YOUTUBE&&_s.ytb_do.stopVideo(),_s.logo_do&&_s.logo_do.hide(!1),_s.hideClickScreen(),_s.hider.reset(),_s.showCursor(),_s.dispatchEvent(FWDEVPlayer.STOP)},_s.videoScreenPlayHandler=function(){FWDEVPlayer.keyboardCurInstance=_s;_s.videoType_str==FWDEVPlayer.YOUTUBE&&_s.ytb_do&&_s.ytb_do.isStopped_bl||(_s.videoPoster_do.hide(),_s.callVastEvent("resume"),_s.isPlaying_bl=!0,_s.hasHlsPlayedOnce_bl=!0,_s.isMobile_bl?FWDEVPlayer.videoStartBehaviour==FWDEVPlayer.STOP_ALL_VIDEOS&&FWDEVPlayer.stopAllVideos(_s):FWDEVPlayer.videoStartBehaviour==FWDEVPlayer.PAUSE_ALL_VIDEOS&&FWDEVPlayer.pauseAllVideos(_s),_s.logo_do&&!_s.isIMA&&_s.logo_do.show(!0),_s.controller_do&&(_s.controller_do.showPauseButton(),clearTimeout(_s.hideController_to),_s.controller_do.show(!0)),_s.popw_do&&_s.popw_do.hide(),_s.largePlayButton_do&&_s.hideLargePlayButton(),_s.hider.start(),_s.showCursor(),_s.isAdd_bl&&(_s.isQualityChangingError_bl=_s.isQualityChanging_bl=!1),_s.playAtTime_bl&&!_s.isAdd_bl&&_s.scrubbAtTime(_s._d.scrubAtTimeAtFirstPlay),_s.playAtTime_bl=!1,_s.isAdd_bl&&!_s.hasStartedToPlay_bl&&_s.scrubbAtTime(0),_s.wasAdd_bl&&!_s.isAdd_bl&&(FWDEVPUtils.isSafari||_s.videoType_str==FWDEVPlayer.VIMEO||_s.videoType_str==FWDEVPlayer.DASH?(clearTimeout(_s.playAfterAd_to),_s.playAfterAd_to=setTimeout(function(){_s.wasAdd_bl=!1,_s.scrubbAtTime(_s.scrubAfterAddDuration)},1e3)):(_s.wasAdd_bl=!1,_s.scrubbAtTime(_s.scrubAfterAddDuration))),!_s.hasStartedToPlay_bl&&_s._d.startAtTime&&!_s.isAdd_bl&&_s.scrubbAtTime(_s._d.startAtTime),!_s.hasStartedToPlay_bl&&_s.castStartAtTime&&!_s.isAdd_bl&&(_s.scrubbAtTime(_s.castStartAtTime),_s.castStartAtTime=void 0),_s.opener_do&&_s.opener_do.showPauseButton(),_s.hasStartedToPlay_bl=!0,_s.dispatchEvent(FWDEVPlayer.PLAY))},_s.videoScreenPauseHandler=function(){if(!_s.isCasting&&!(_s.videoType_str==FWDEVPlayer.YOUTUBE&&_s.ytb_do&&_s.ytb_do.isStopped_bl)){if(_s.isPlaying_bl=!1,_s.callVastEvent("pause"),_s.controller_do&&_s.controller_do.showPlayButton(),!_s.largePlayButton_do||_s._d.showAnnotationsPositionTool_bl||_s.useWithoutVideoScreen_bl||_s.notShowPlayBtnExternal||_s.showLargePlayButton(),_s.notShowPlayBtnExternal=!1,_s.controller_do&&_s.controller_do.show(!0),!_s.logo_do||_s.useWithoutVideoScreen_bl||_s.useWithoutVideoScreen_bl||_s.logo_do.show(!0),_s.hider.stop(),_s.hider.reset(),_s.showCursor(),_s.videoType_str!=FWDEVPlayer.VIMEO&&_s.showClickScreen(),_s.popw_do){var e=_s.shareWindow_do&&_s.shareWindow_do.isShowed_bl,t=_s.embedWindow_do&&_s.embedWindow_do.isShowed_bl;e||t||_s.popw_do.show()}_s.opener_do&&_s.opener_do.showPlayButton(),_s.dispatchEvent(FWDEVPlayer.PAUSE)}},_s.videoScreenUpdateHandler=function(t){var e;FWDEVPlayer.hasHTML5Video||_s.videoType_str==FWDEVPlayer.YOUTUBE&&_s.videoType_str!=FWDEVPlayer.IMAGE&&_s.videoType_str!=FWDEVPlayer.IFRAME?(e=t.percent,_s.controller_do&&_s.controller_do.updateMainScrubber(e)):(e=t,_s.controller_do&&_s.controller_do.updateMainScrubber(e)),_s.dispatchEvent(FWDEVPlayer.UPDATE,{percent:e})},_s.videoScreenUpdateSubtitleHandler=function(t){_s.subtitle_do.updateSubtitle(t.curTime)},_s.videoScreenUpdateTimeHandler=function(e,e2,e3,stopHandler){if(!_s.isCasting){if(_s.prevSeconds!=Math.round(e.seconds)&&(_s.totalTimePlayed+=1),_s.totalTimeInSeconds=Math.round(e.totalTimeInSeconds),_s.totalTimeInMilliseconds=e.totalTimeInSeconds,_s.curTimeInSecond=Math.round(e.seconds),_s.curTimeInmilliseconds=e.seconds,_s.prevSeconds=Math.round(e.seconds),_s.totalPercentPlayed=_s.totalTimePlayed/e.totalTimeInSeconds,isFinite(_s.totalPercentPlayed)||(_s.totalPercentPlayed=0),_s.controller_do&&!_s.controller_do.isMainScrubberScrubbing_bl&&_s.controller_do.atb&&_s.controller_do.atb.isShowed_bl&&!_s.controller_do.atb.scrub){var a=_s.totalTimeInSeconds*_s.controller_do.atb.pa,b=_s.totalTimeInSeconds*_s.controller_do.atb.pb;_s.prevCurTimeInSeconds!=_s.curTimeInSecond&&(_s.prevCurTimeInSeconds=_s.curTimeInSecond,_s.curTimeInSecond<a?_s.scrub(_s.controller_do.atb.pa):_s.curTimeInSecond>b&&_s.scrub(_s.controller_do.atb.pa))}_s.isAdd_bl&&(.25<=_s.totalPercentPlayed&&_s.callFirstQuartile?(_s.callVastEvent("firstQuartile"),_s.callFirstQuartile=!1):.5<=_s.totalPercentPlayed&&_s.callMidpoint?(_s.callVastEvent("midpoint"),_s.callMidpoint=!1):.75<=_s.totalPercentPlayed&&_s.callThirdQuartile&&(_s.callVastEvent("thirdQuartile"),_s.callThirdQuartile=!1));var time,seconds;if(FWDEVPlayer.hasHTML5Video||_s.videoType_str==FWDEVPlayer.YOUTUBE||_s.videoType_str==FWDEVPlayer.HLS_JS||_s.videoType_str==FWDEVPlayer.VIMEO?(_s.curTime=e.curTime,_s.totalTime=e.totalTime,time=_s.curTime+"/"+_s.totalTime,seconds=Math.round(e.seconds),_s.controller_do&&_s.controller_do.updateTime(time)):(_s.curTime=e,_s.totalTime=e2,time=_s.curTime+"/"+_s.totalTime,seconds=Math.round(e3),(null==e||null==e2)&&(time="00:00/00:00"),_s.controller_do&&_s.controller_do.updateTime(time)),!stopHandler){if(_s.isAdd_bl||(5<_s.totalTime.length?_s.totalDuration=FWDEVPUtils.getSecondsFromString(_s.totalTime):_s.totalDuration=FWDEVPUtils.getSecondsFromString("00:"+_s.totalTime)),_s.isAdd_bl&&_s._d.showSkipButton_bl&&(_s._d.timeToHoldAds>seconds?(_s.adsStart_do.updateText(_s._d.skipToVideoText_str+Math.abs(_s._d.timeToHoldAds-seconds)),_s.adsSkip_do.hide(!1),(_s.videoType_str==FWDEVPlayer.IMAGE||_s.videoType_str==FWDEVPlayer.IFRAME)&&_s.adsStart_do.show(!0)):(_s.adsStart_do.hide(!0),0!=_s._d.timeToHoldAds&&_s.adsSkip_do.show(!0))),_s.currentSecconds=seconds,!_s.isAdd_bl&&_s.popupAds_do&&_s.popupAds_do.update(seconds),!_s.isAdd_bl&&_s.annotations_do&&_s.annotations_do.update(seconds),0==seconds||_s.isAdd_bl||(_s.curDurration=seconds),_s._d.cuePointsSource_ar)for(var i=0,cuePoint;i<_s._d.cuePointsSource_ar.length;i++)cuePoint=_s._d.cuePointsSource_ar[i],cuePoint.timeStart==seconds&&(_s._d.executeCuepointsOnlyOnce_bl?!cuePoint.isPlayed_bl&&eval(cuePoint.javascriptCall):eval(cuePoint.javascriptCall),cuePoint.isPlayed_bl=!0);!_s.isAdd_bl&&0!=seconds&&_s.isPlaying_bl&&_s.updateAds(seconds),_s.isIMA&&!_s.IMA.started&&_s.IMA.updateCuepointLines(seconds),_s.isPlaying_bl&&FWDEVPUtils.getSecondsFromString(_s._d.stopAtTime)<=seconds&&_s.stop(),FWDEVPUtils.getSecondsFromString(_s.getStartTimeStamp("e"))&&_s.curTimeInSecond>=parseInt(FWDEVPUtils.getSecondsFromString(_s.getStartTimeStamp("e")))&&_s.stop(),_s.dispatchEvent(FWDEVPlayer.UPDATE_TIME,{currentTime:_s.curTime,totalTime:_s.totalTime})}}},_s.videoScreenLoadProgressHandler=function(t){FWDEVPlayer.hasHTML5Video||_s.videoType_str==FWDEVPlayer.YOUTUBE?_s.controller_do&&_s.controller_do.updatePreloaderBar(t.percent):_s.videoType_str==FWDEVPlayer.VIDEO&&_s.controller_do&&_s.controller_do.updatePreloaderBar(t)},_s.videoScreenStartToBuferHandler=function(){_s.showPreloader_bl&&(_s.preloader_do.show(!1),_s.preloader_do.startPreloader())},_s.videoScreenStopToBuferHandler=function(){_s.preloader_do.hide(!1),_s.preloader_do.stopPreloader()},_s.videoScreenPlayCompleteHandler=function(t,e){if(_s.adDone_bl=!0,_s.callVastEvent("complete"),_s.isIMA&&_s.IMA.hasPostRoll&&_s.curTimeInSecond>=_s.totalTimeInSeconds-1)return void _s.IMA.playPostRoll();!_s.isAdd_bl&&_s._d.redirectURL&&("_self"==_s._d.redirectTarget?location.replace(_s._d.redirectURL):window.open(_s._d.redirectURL,_s._d.redirectTarget));var o=_s.isAdd_bl;_s.isAdd_bl&&(_s._d.openNewPageAtTheEndOfTheAds_bl&&"none"!=_s._d.adsPageToOpenURL_str&&!e&&("_self"==_s._d.adsPageToOpenTarget_str?location.href=_s._d.adsPageToOpenURL_str:window.open(_s._d.adsPageToOpenURL_str,_s._d.adsPageToOpenTarget_str)),_s.isAdd_bl=!1,_s.isQualityChangingError_bl=!0,_s.updateAds(_s.curDurration),_s.wasAdd_bl=!0,e&&_s.videoType_str==FWDEVPlayer.VIDEO?_s.play():!_s.isMobile_bl&&_s.videoType_str!=FWDEVPlayer.HLS_JS&&_s.play(),_s.wasAdHLS=!0,_s.callVastEvent("complete")),o||(_s.wasAdd_bl=!1,_s.lightBox_do&&_s.lightBox_do.isShowed_bl&&_s._d.clsLghtbPlayFinish&&(_s.stop(),_s.lightBox_do.closeButtonOnStartHandler()),_s._d.loop_bl?(_s.scrub(0),_s.play()):_s.stop(),_s.dispatchEvent(FWDEVPlayer.PLAY_COMPLETE)),_s.hider&&_s.hider.reset()},_s.setupAnnotations=function(){FWDEVPAnnotations.setPrototype(),_s.annotations_do=new FWDEVPAnnotations(_s,_s._d),_s.main_do.addChild(_s.annotations_do)},_s.setupAdsStart=function(){FWDEVPAdsStart.setPrototype(),_s.adsStart_do=new FWDEVPAdsStart(_s._d.adsButtonsPosition_str,_s._d.adsBorderNormalColor_str,"",_s._d.adsBackgroundPath_str,_s._d.adsTextNormalColor),FWDEVPAdsButton.setPrototype(),_s.adsSkip_do=new FWDEVPAdsButton(_s,_s._d.skipIconPath_img,_s._d.skipIconSPath_str,_s._d.skipToVideoButtonText_str,_s._d.adsButtonsPosition_str,_s._d.adsBorderNormalColor_str,_s._d.adsBorderSelectedColor_str,_s._d.adsBackgroundPath_str,_s._d.adsTextNormalColor,_s._d.adsTextSelectedColor,_s._d.useHEX,_s._d.nBC,_s._d.sBC),_s.adsSkip_do.addListener(FWDEVPAdsButton.MOUSE_UP,_s.skipAdsMouseUpHandler),_s.main_do.addChild(_s.adsSkip_do),_s.main_do.addChild(_s.adsStart_do)},_s.skipAdsMouseUpHandler=function(t){t.preventDefault&&t.preventDefault(),_s.callVastEvent("skip"),_s.videoScreenPlayCompleteHandler(t,!0)},_s.positionAds=function(e){if(_s._d.showSkipButton_bl){var t=!1,o,s;600>_s.sW&&(t=!0),_s.adsSkip_do.resize(),o="left"==_s._d.adsButtonsPosition_str?0:_s.sW,s=_s.controller_do&&_s.controller_do.isShowed_bl?_s.sH-_s.adsStart_do.h-_s._d.controllerHeight-30:_s.sH-_s.adsStart_do.h-_s._d.controllerHeight,FWDAnimation.killTweensOf(_s.adsStart_do),e?FWDAnimation.to(_s.adsStart_do,.8,{y:s,ease:Expo.easeInOut}):_s.adsStart_do.setY(s),_s.adsStart_do.setX(o),o="left"==_s._d.adsButtonsPosition_str?0:_s.sW,s=_s.controller_do&&_s.controller_do.isShowed_bl?_s.sH-_s.adsSkip_do.h-_s._d.controllerHeight-30:_s.sH-_s.adsSkip_do.h-_s._d.controllerHeight,FWDAnimation.killTweensOf(_s.adsSkip_do),e?FWDAnimation.to(_s.adsSkip_do,.8,{y:s,ease:Expo.easeInOut}):_s.adsSkip_do.setY(s),_s.adsSkip_do.setX(o)}},_s.setupShareWindow=function(){FWDEVPShareWindow.setPrototype(),_s.shareWindow_do=new FWDEVPShareWindow(_s._d,_s),_s.shareWindow_do.addListener(FWDEVPShareWindow.HIDE_COMPLETE,_s.shareWindowHideCompleteHandler)},_s.shareWindowHideCompleteHandler=function(){_s.isVideoPlayingWhenOpenWindows_bl&&_s.resume(),_s.controller_do&&(_s.controller_do.shareButton_do.isDisabled_bl=!1,_s.controller_do.shareButton_do.setNormalState(!0))},_s.setupLoginWindow=function(){FWDEVPPassword.setPrototype(),_s.lg_do=new FWDEVPPassword(_s._d,_s,!0)},_s.setupPasswordWindow=function(){FWDEVPPassword.setPrototype(),_s.passWindow_do=new FWDEVPPassword(_s._d,_s),_s.passWindow_do.addListener(FWDEVPPassword.CORRECT,_s.passordCorrect),_s.passWindow_do.addListener(FWDEVPPassword.HIDE_COMPLETE,_s.passordHideComplete)},_s.passordCorrect=function(){_s.passWindow_do.hide(),_s.hasPassedPassowrd_bl=!0,_s.play()},_s.passordHideComplete=function(){_s.isStopped_bl&&_s.showLargePlayButton()},_s.setupEmbedWindow=function(){FWDEVPEmbedWindow.setPrototype(),_s.embedWindow_do=new FWDEVPEmbedWindow(_s._d,_s),_s.embedWindow_do.addListener(FWDEVPEmbedWindow.ERROR,_s.embedWindowErrorHandler),_s.embedWindow_do.addListener(FWDEVPEmbedWindow.HIDE_COMPLETE,_s.embedWindowHideCompleteHandler)},_s.embedWindowErrorHandler=function(t){_s.main_do.addChild(_s.info_do),_s.info_do.showText(t.error)},_s.embedWindowHideCompleteHandler=function(){_s.isVideoPlayingWhenOpenWindows_bl&&_s.resume(),_s.controller_do&&(_s.controller_do.embedButton_do.isDisabled_bl=!1,_s.controller_do.embedButton_do.setNormalState(!0))},_s.copyLinkButtonOnMouseOver=function(){_s.embedWindow_do.isShowed_bl&&_s.embedWindow_do.copyLinkButton_do.setSelectedState()},_s.copyLinkButtonOnMouseOut=function(){_s.embedWindow_do.isShowed_bl&&_s.embedWindow_do.copyLinkButton_do.setNormalState()},_s.getLinkCopyPath=function(){return _s.embedWindow_do.isShowed_bl?_s.embedWindow_do.linkToVideo_str:void 0},_s.embedkButtonOnMouseOver=function(){_s.embedWindow_do.isShowed_bl&&_s.embedWindow_do.copyEmbedButton_do.setSelectedState()},_s.embedButtonOnMouseOut=function(){_s.embedWindow_do.isShowed_bl&&_s.embedWindow_do.copyEmbedButton_do.setNormalState()},_s.getEmbedCopyPath=function(){return _s.embedWindow_do.finalEmbedCode_str},_s.setInputs=function(){for(var e=document.querySelectorAll("input"),t=0;t<e.length;t++)e[t].addEventListener("mousedown",_s.inputFocusInHandler),e[t].addEventListener("touchstart",_s.inputFocusInHandler);for(var o=document.querySelectorAll("textarea"),t=0;t<o.length;t++)o[t].addEventListener("mousedown",_s.inputFocusInHandler),o[t].addEventListener("touchstart",_s.inputFocusInHandler)},_s.inputFocusInHandler=function(t){_s.curInput=t.target,setTimeout(function(){_s.hasPointerEvent_bl?window.addEventListener("pointerdown",_s.inputFocusOutHandler):window.addEventListener&&(window.addEventListener("mousedown",_s.inputFocusOutHandler),window.addEventListener("touchstart",_s.inputFocusOutHandler)),FWDEVPlayer.isSearchedFocused_bl=!0},50)},_s.inputFocusOutHandler=function(t){var e=FWDEVPUtils.getViewportMouseCoordinates(t);if(!FWDEVPUtils.hitTest(_s.curInput,e.screenX,e.screenY))return _s.hasPointerEvent_bl?window.removeEventListener("pointerdown",_s.inputFocusOutHandler):window.removeEventListener&&(window.removeEventListener("mousedown",_s.inputFocusOutHandler),window.removeEventListener("touchstart",_s.inputFocusOutHandler)),void(FWDEVPlayer.isSearchedFocused_bl=!1)},_s.addKeyboardSupport=function(){_s.setInputs(),document.addEventListener("keydown",_s.onKeyDownHandler),document.addEventListener("keyup",_s.onKeyUpHandler)},_s.removeKeyboardSupport=function(){_s.setInputs(),document.removeEventListener("keydown",_s.onKeyDownHandler),document.removeEventListener("keyup",_s.onKeyUpHandler)},_s.onKeyDownHandler=function(t){if(!_s.isSpaceDown_bl&&_s.hasStartedToPlay_bl&&!FWDEVPlayer.isSearchedFocused_bl||_s.isCasting){if(_s.isSpaceDown_bl=!0,t.preventDefault&&t.preventDefault(),32==t.keyCode){if(_s!=FWDEVPlayer.keyboardCurInstance&&("pause"==FWDEVPlayer.videoStartBehaviour||"none"==FWDEVPlayer.videoStartBehaviour))return;if(_s.stickOnCurrentInstanceKey_bl=!0,_s.isCasting)_s.cc.togglePlayPause();else if(_s.videoType_str==FWDEVPlayer.IMAGE||_s.videoType_str==FWDEVPlayer.IFRAME)_s.isImageAdsPlaying_bl?_s.stopUpdateImageInterval():_s.startUpdateImageInterval();else if(_s.isIMA&&_s.IMA.started)_s.IMA.togglePlayPause();else if(_s.videoType_str==FWDEVPlayer.YOUTUBE){if(!_s.ytb_do.isSafeToBeControlled_bl)return;_s.ytb_do.togglePlayPause()}else if(_s.videoType_str==FWDEVPlayer.VIMEO){if(!_s.vimeo_do.isSafeToBeControlled_bl)return;_s.vimeo_do.togglePlayPause()}else if(_s.videoType_str==FWDEVPlayer.MP3){if(!_s.audioScreen_do.isSafeToBeControlled_bl)return;_s.audioScreen_do.togglePlayPause()}else if(FWDEVPlayer.hasHTML5Video){if(!_s.videoScreen_do.isSafeToBeControlled_bl)return;_s.videoScreen_do&&_s.videoScreen_do.togglePlayPause()}return t.preventDefault&&t.preventDefault(),!1}if(70==t.keyCode&&!_s.useWithoutVideoScreen_bl)_s.isFullScreen_bl?_s.goNormalScreen():_s.goFullScreen();else if(77==t.keyCode)0!=_s.volume&&(_s.lastVolume=_s.volume),_s.volume=0==_s.volume?_s.lastVolume:0,_s.setVolume(_s.volume);else if(38==t.keyCode)_s.volume+=.1,1<_s.volume&&(_s.volume=1),_s.setVolume(_s.volume);else if(40==t.keyCode)_s.volume-=.1,0>_s.volume&&(_s.volume=0),_s.setVolume(_s.volume);else if(77==t.keyCode)0>_s.volume&&(_s.volume=0),_s.setVolume(_s.volume);else if(39==t.keyCode&&!_s.isAdd_bl&&!_s.isIMA){var e=_s.getCurrentTime();5==e.length&&(e="00:"+e),7==e.length&&(e="0"+e),e=FWDEVPUtils.getSecondsFromString(e),e+=5,e=FWDEVPUtils.formatTime(e),5==e.length&&(e="00:"+e),7==e.length&&(e="0"+e),_s.scrubbAtTime(e)}else if(37==t.keyCode&&!_s.isAdd_bl&&!_s.isIMA){var e=_s.getCurrentTime();5==e.length&&(e="00:"+e),7==e.length&&(e="0"+e),e=FWDEVPUtils.getSecondsFromString(e),e-=5,e=FWDEVPUtils.formatTime(e),5==e.length&&(e="00:"+e),7==e.length&&(e="0"+e),_s.scrubbAtTime(e)}}},_s.onKeyUpHandler=function(){_s.isSpaceDown_bl=!1},_s.setupHider=function(){FWDEVPHider.setPrototype(),_s.hider=new FWDEVPHider(_s.main_do,_s.controller_do,_s._d.controllerHideDelay),_s.hider.addListener(FWDEVPHider.SHOW,_s.hiderShowHandler),_s.hider.addListener(FWDEVPHider.HIDE,_s.hiderHideHandler),_s.hider.addListener(FWDEVPHider.HIDE_COMPLETE,_s.hiderHideCompleteHandler)},_s.hiderShowHandler=function(){_s.isCasting||(_s.controller_do&&_s.isPlaying_bl&&(clearTimeout(_s.hideController_to),_s.controller_do.show(!0)),_s.logo_do&&_s._d.hideLogoWithController_bl&&_s.isPlaying_bl&&!_s.useWithoutVideoScreen_bl&&_s.logo_do.show(!0),_s.showCursor(),_s.isAdd_bl&&_s._d.showSkipButton_bl&&(_s.positionAds(!0),_s.adsStart_do.showWithOpacity(),_s.adsSkip_do.showWithOpacity()),_s.subtitle_do.position(!0),_s.popupAds_do&&_s.popupAds_do.position(!0),_s.dispatchEvent(FWDEVPlayer.HIDER_SHOW))},_s.hiderHideHandler=function(){return _s.isCasting?void 0:_s.videoType_str!=FWDEVPlayer.VIMEO||_s._d.showDefaultControllerForVimeo_bl?_s.controller_do&&_s._d.showYoutubeQualityButton_bl&&FWDEVPUtils.hitTest(_s.controller_do.ytbButtonsHolder_do.screen,_s.hider.globalX,_s.hider.globalY)?void _s.hider.reset():_s.controller_do&&_s.controller_do.atb&&_s.controller_do.atb.isShowed_bl&&FWDEVPUtils.hitTest(_s.controller_do.atb.mainHolder_do.screen,_s.hider.globalX,_s.hider.globalY)?void _s.hider.reset():_s.controller_do&&_s._d.showSubtitleButton_bl&&FWDEVPUtils.hitTest(_s.controller_do.subtitlesButtonsHolder_do.screen,_s.hider.globalX,_s.hider.globalY)?void _s.hider.reset():_s.controller_do&&_s._d.showPlaybackRateButton_bl&&FWDEVPUtils.hitTest(_s.controller_do.playbackRatesButtonsHolder_do.screen,_s.hider.globalX,_s.hider.globalY)?void _s.hider.reset():_s.controller_do&&FWDEVPUtils.hitTest(_s.controller_do.screen,_s.hider.globalX,_s.hider.globalY)?void _s.hider.reset():void(_s.controller_do&&_s.controller_do.hide(!0),_s.isAdd_bl&&_s._d.showSkipButton_bl&&(_s.positionAds(!0),_s.adsStart_do.hideWithOpacity(),_s.adsSkip_do.hideWithOpacity()),_s.logo_do&&_s._d.hideLogoWithController_bl&&_s.logo_do.hide(!0),_s.isFullScreen_bl&&_s.hideCursor(),_s.subtitle_do.position(!0),_s.popupAds_do&&_s.popupAds_do.position(!0),_s.dispatchEvent(FWDEVPlayer.HIDER_HIDE)):void 0},_s.hiderHideCompleteHandler=function(){_s.isCasting||_s.controller_do&&_s.controller_do.positionScrollBarOnTopOfTheController()},_s.showPlayer=function(){_s.isAPIReady_bl&&(_s.isShowed_bl=!0,_s.opener_do.showCloseButton(),_s.setStageContainerFinalHeightAndPosition(_s.animate_bl),_s.isMin&&(_s.isMinShowed=!0,_s.positionOnMin(!0)))},_s.hidePlayer=function(){_s.isAPIReady_bl&&(_s.isShowed_bl=!1,_s.opener_do.showOpenButton(),_s.setStageContainerFinalHeightAndPosition(_s.animate_bl),_s.isMin&&(_s.isMinShowed=!1,_s.positionOnMin(!0)))},_s.play=function(){if(_s.isAPIReady_bl){if(_s.isCasting)return void _s.cc.play();if(_s.videoType_str==FWDEVPlayer.YOUTUBE&&!_s.isYoutubeReady_bl)return _s.showPreloader_bl&&(_s.preloader_do.show(!1),_s.preloader_do.startPreloader()),void(_s.largePlayButton_do&&!_s.useWithoutVideoScreen_bl&&_s.showLargePlayButton());if(_s.videoType_str==FWDEVPlayer.VIMEO&&!_s.isVimeoReady_bl)return _s.showPreloader_bl&&(_s.preloader_do.show(!1),_s.preloader_do.startPreloader()),void(_s.largePlayButton_do&&!_s.useWithoutVideoScreen_bl&&_s.showLargePlayButton());if(_s.videoType_str==FWDEVPlayer.HLS_JS&&0<=location.protocol.indexOf("file:"))return _s.main_do.addChild(_s.info_do),void _s.info_do.showText("HLS m3u8 videos can't be played local on this browser, please test it online!.");if(_s._d.playVideoOnlyWhenLoggedIn_bl&&!_s._d.isLoggedIn_bl)return _s.largePlayButton_do&&!_s.useWithoutVideoScreen_bl&&_s.showLargePlayButton(),void _s.lg_do.show();if(!_s.isAdd_bl&&_s._d.videosSource_ar[_s._d.startAtVideoSource].isPrivate&&!_s.hasPassedPassowrd_bl&&_s.passWindow_do)return _s.largePlayButton_do&&!_s.useWithoutVideoScreen_bl&&_s.hideLargePlayButton(),void _s.passWindow_do.show();if(_s.hasPassedPassowrd_bl=!0,_s.isStopped_bl=!1,_s.isMobile_bl?FWDEVPlayer.stopAllVideos(_s):FWDEVPlayer.videoStartBehaviour==FWDEVPlayer.PAUSE_ALL_VIDEOS?FWDEVPlayer.pauseAllVideos(_s):FWDEVPlayer.videoStartBehaviour==FWDEVPlayer.STOP_ALL_VIDEOS&&FWDEVPlayer.stopAllVideos(_s),_s.isIMA){if(!_s.IMA||_s.isIMA&&_s.IMA&&!_s.IMA.isReady)return;_s.IMA.play()}else if(_s.videoType_str==FWDEVPlayer.IMAGE||_s.videoType_str==FWDEVPlayer.IFRAME)_s.startUpdateImageInterval();else if(_s.videoType_str==FWDEVPlayer.YOUTUBE&&_s.ytb_do)_s.ytb_do.play();else if(_s.videoType_str==FWDEVPlayer.VIMEO&&_s.vimeo_do)_s.vimeo_do.play();else if(_s.videoType_str==FWDEVPlayer.MP3)_s.audioScreen_do&&(_s.audioScreen_do.play(),!FWDEVPUtils.isLocal&&_s.audioScreen_do.setupSpectrum());else if(FWDEVPlayer.hasHTML5Video)if(_s.videoType_str==FWDEVPlayer.HLS_JS&&!_s.isHLSManifestReady_bl&&window.Hls){_s.videoScreen_do.initVideo(),_s.setupHLS();var e=_s.videoSourcePath_str;-1!=e.indexOf("encrypt:")&&(e=atob(e.substr(8))),_s.hlsJS.loadSource(e),_s.hlsJS.attachMedia(_s.videoScreen_do.video_el),_s.hlsJS.on(Hls.Events.MANIFEST_PARSED,function(){_s.isHLSManifestReady_bl=!0,_s.play()})}else _s.dashJS&&_s.videoType_str==FWDEVPlayer.DASH&&!_s.isDASHManifestReady_bl?(_s.videoScreen_do.initVideo(),_s.setupDASH(),_s.dashJS.initialize(_s.videoScreen_do.video_el,_s.videoSourcePath_str,!1),_s.dashJS.attachSource(_s.videoSourcePath_str),_s.dashJS.on(dashjs.MediaPlayer.events.MANIFEST_LOADED,function(){_s.isDASHManifestReady_bl=!0,setTimeout(_s.play,100)})):_s.videoScreen_do&&_s.videoScreen_do.play();FWDEVPlayer.keyboardCurInstance=_s,_s.videoPoster_do.allowToShow_bl=!1,_s.playStarted=!0,_s.largePlayButton_do&&_s.hideLargePlayButton(),_s.videoPoster_do.hide(),_s.dispatchEvent(FWDEVPlayer.PLAY_START)}},_s.pause=function(){return _s.isAPIReady_bl?_s.isCasting?void _s.cc.pause():void(_s.isIMA&&_s.IMA?_s.IMA.pause():_s.videoType_str==FWDEVPlayer.IMAGE||_s.videoType_str==FWDEVPlayer.IFRAME?_s.stopUpdateImageInterval():_s.videoType_str==FWDEVPlayer.YOUTUBE&&_s.ytb_do?_s.ytb_do.pause():_s.videoType_str==FWDEVPlayer.VIMEO&&_s.vimeo_do?_s.vimeo_do.pause():_s.videoType_str==FWDEVPlayer.MP3?_s.audioScreen_do&&_s.audioScreen_do.pause():_s.videoScreen_do&&_s.videoScreen_do.pause()):void 0},_s.resume=function(){_s.isAPIReady_bl&&(_s.isCasting?_s.cc.play():_s.isIMA&&_s.IMA.started?_s.IMA.play():_s.videoType_str==FWDEVPlayer.IMAGE||_s.videoType_str==FWDEVPlayer.IFRAME?_s.startUpdateImageInterval():_s.videoType_str==FWDEVPlayer.YOUTUBE&&_s.ytb_do?_s.ytb_do.resume():_s.videoType_str==FWDEVPlayer.VIMEO&&_s.vimeo_do?_s.vimeo_do.resume():_s.videoType_str==FWDEVPlayer.MP3?_s.audioScreen_do&&_s.audioScreen_do.resume():FWDEVPlayer.hasHTML5Video&&_s.videoScreen_do&&_s.videoScreen_do.resume())},_s.stop=function(){if(_s.isAPIReady_bl){if(window.ga&&Math.round(100*_s.totalPercentPlayed)){var e="videoPath:"+_s.videoSource_str+", percentPlayed:"+Math.round(100*_s.totalPercentPlayed)+", stoppedAtTime:"+_s.getCurrentTime()+", fullScreen:"+_s.isFullScreen_bl+"";ga("send",{hitType:"event",eventCategory:"videos",eventAction:"played",eventLabel:e,nonInteraction:!0})}_s.IMA&&_s.IMA.stop(),_s.isQualityChangingStop_bl=!1,_s.isCasting&&_s.cc.stop(),_s.isIMA=void 0,_s.isStopped_bl=!0,_s.hasPassedPassowrd_bl=!1,_s.isHLSManifestReady_bl=!1,_s.isDASHManifestReady_bl=!1,_s.playYoutubeIfLoadedLate_bl=!1,_s.isPlaying_bl=!1,_s.totalTimePlayed=0,_s._d.closeVast(),_s.hideAPT(),_s.hider.reset(),_s.destroyHLS(),_s.destroyDASH(),clearTimeout(_s.playAfterAd_to),clearTimeout(_s.rewindId_to),clearTimeout(_s.load360ScriptsId_to),_s.popw_do&&_s.popw_do.hide(),_s.controller_do&&_s.controller_do.ytbQualityButton_do&&(_s.controller_do.ytbQualityButton_do.disable(),_s.controller_do.hideQualityButtons(!1),_s.controller_do.updateMainScrubber(0),_s.controller_do.updatePreloaderBar(0)),_s.controller_do&&(_s.controller_do.atb&&_s.controller_do.atb.hide(!0),_s.controller_do.disableAtbButton(),_s.controller_do.thumbnailsPreview_do&&_s.controller_do.thumbnailsPreview_do.remove(),_s.controller_do.subtitleButton_do&&_s.controller_do.subtitleButton_do.disable(),_s.controller_do.rewindButton_do&&_s.controller_do.rewindButton_do.disable(),_s.controller_do.disablePlaybackRateButton(),_s.controller_do.ttm&&_s.controller_do.ttm.hide(),_s._d.showPlaybackRateButton_bl&&_s.controller_do.updatePlaybackRateButtons(_s._d.updatePlaybackRateButtons,_s._d.startAtPlaybackIndex)),_s.isAdd_bl?_s.setPlaybackRate(1):_s.setPlaybackRate(_s._d.defaultPlaybackRate_ar[_s._d.startAtPlaybackIndex]),_s.videoType_str==FWDEVPlayer.IMAGE||_s.videoType_str==FWDEVPlayer.IFRAME?_s.stopUpdateImageInterval():_s.videoType_str==FWDEVPlayer.YOUTUBE&&_s.ytb_do?_s.ytb_do.stop():_s.videoType_str==FWDEVPlayer.VIMEO?_s.vimeo_do&&_s.vimeo_do.stop():_s.videoType_str==FWDEVPlayer.MP3?_s.audioScreen_do&&_s.audioScreen_do.stop():_s.videoScreen_do.stop(),clearTimeout(_s.hideController_to),_s.controller_do&&(_s._d.showControllerWhenVideoIsStopped_bl?_s.controller_do.show(!0):_s.hideController_to=setTimeout(function(){_s.controller_do.hide(!0)},200)),_s.videoPoster_do.show(),!_s.largePlayButton_do||_s.useWithoutVideoScreen_bl||_s.notShowLargePlayButton_bl||_s.showLargePlayButton(),clearInterval(_s.fillScreenId_int),_s.subtitle_do.stopToLoadSubtitle(),_s.subtitle_do.hide(),_s.hasHlsPlayedOnce_bl=!1,_s.isSafeToScrub_bl=!1,_s.hlsState=void 0,_s.popupAds_do&&_s.popupAds_do.hideAllPopupButtons(!1),_s.adsStart_do&&_s.adsStart_do.hide(!0),_s.adsSkip_do&&_s.adsSkip_do.hide(!0),_s.controller_do&&_s.controller_do.hideAdsLines(),_s.annotations_do&&_s.annotations_do.update(1e5),_s.customContextMenu_do&&_s.customContextMenu_do.disable(),_s.stopVisualization(),_s.hasStartedToPlay_bl=!1}},_s.startToScrub=function(){_s.isAPIReady_bl&&(_s.videoType_str==FWDEVPlayer.YOUTUBE&&_s.ytb_do&&_s.ytb_do.isSafeToBeControlled_bl?_s.ytb_do.startToScrub():_s.videoType_str==FWDEVPlayer.VIMEO&&_s.vimeo_do?_s.vimeo_do.startToScrub():_s.videoType_str==FWDEVPlayer.MP3?_s.audioScreen_do&&_s.audioScreen_do.startToScrub():FWDEVPlayer.hasHTML5Video&&_s.videoScreen_do&&_s.videoScreen_do.startToScrub())},_s.stopToScrub=function(){_s.isAPIReady_bl&&(_s.videoType_str==FWDEVPlayer.YOUTUBE&&_s.ytb_do&&_s.ytb_do.isSafeToBeControlled_bl?_s.ytb_do.stopToScrub():_s.videoType_str==FWDEVPlayer.VIMEO&&_s.vimeo_do?_s.vimeo_do.stopToScrub():_s.videoType_str==FWDEVPlayer.MP3?_s.audioScreen_do&&_s.audioScreen_do.stopToScrub():FWDEVPlayer.hasHTML5Video&&_s.videoScreen_do&&_s.videoScreen_do.stopToScrub())},_s.scrub=function(e){!_s.isAPIReady_bl||isNaN(e)||(0>e?e=0:1<e&&(e=1),_s.videoType_str==FWDEVPlayer.YOUTUBE&&_s.ytb_do&&_s.ytb_do.isSafeToBeControlled_bl?_s.ytb_do.scrub(e):_s.videoType_str==FWDEVPlayer.VIMEO&&_s.vimeo_do?_s.vimeo_do.scrub(e):_s.videoType_str==FWDEVPlayer.MP3?_s.audioScreen_do&&_s.audioScreen_do.scrub(e):_s.videoScreen_do&&_s.videoScreen_do.scrub(e),_s.dispatchEvent(FWDEVPlayer.SCRUB,{percent:e}))},_s.scrubbAtTime=function(e){_s.isAPIReady_bl&&e&&(-1!=(e+"").indexOf(":")&&(e=FWDEVPUtils.getSecondsFromString(e)),_s.isCasting?_s.cc.scrubbAtTime(e):_s.videoType_str==FWDEVPlayer.YOUTUBE&&_s.ytb_do?_s.ytb_do.scrubbAtTime(e):_s.videoType_str==FWDEVPlayer.VIMEO&&_s.vimeo_do?_s.vimeo_do.scrubbAtTime(e):_s.videoType_str==FWDEVPlayer.MP3?_s.audioScreen_do&&_s.audioScreen_do.scrubbAtTime(e):_s.videoScreen_do&&_s.videoScreen_do.scrubbAtTime(e))},_s.share=function(){_s.isAPIReady_bl&&_s.shareWindow_do.show()},_s.setVolume=function(e,t){_s.isAPIReady_bl&&(_s.controller_do&&_s.controller_do.updateVolume(e,!0),e&&t&&(_s._d.autoPlay_bl=!1,_s.removeAPT()),_s.volume=e,_s.isIMA&&_s.IMA&&_s.IMA.setVolume(e),_s.ytb_do&&_s.ytb_do.setVolume(_s.volume),_s.vimeo_do&&_s.vimeo_do.setVolume(_s.volume),_s.audioScreen_do&&_s.audioScreen_do.setVolume(_s.volume),FWDEVPlayer.hasHTML5Video&&_s.videoScreen_do.setVolume(_s.volume),_s.isCasting&&_s.cc.setVolume(),_s.dispatchEvent(FWDEVPlayer.VOLUME_SET,{volume:_s.volume}))},_s.setPosterSource=function(e,t){if(_s.posterPath_str=e,!e)return _s.videoPoster_do.curPath="",void _s.videoPoster_do.hide();if(_s.isAPIReady_bl){var o=e.split(",");e=_s.isMobile_bl&&null!=o[1]?o[1]:o[0],-1!=e.indexOf("encrypt:")&&(e=atob(e.substr(8))),_s.videoPoster_do.setPoster(_s.posterPath_str,t),_s.prevPosterSource_str==e||t||_s.dispatchEvent(FWDEVPlayer.UPDATE_POSTER_SOURCE),_s.prevPosterSource_str=e}},_s.updateAds=function(e,t){if(_s.videoType_str!=FWDEVPlayer.YOUTUBE||_s.ytb_do){if(_s._d.vastXML&&!_s._d.isVastXMLParsed_bl)return _s.controller_do&&(_s.controller_do.createdAdsOnce_bl=!1,_s.controller_do.resetsAdsLines(!0)),void _s._d.setVastSource(_s._d.vastXML);if(!_s.isAdd_bl){if(!_s.isAdd_bl&&_s._d.adsSource_ar){_s.controller_do&&(_s._d.fixVmapTimes(_s.totalDuration),_s.totalDuration&&(_s.controller_do.setupAdsLines(_s._d.adsSource_ar),_s.controller_do.positionAdsLines(_s.totalDuration),_s.popupAds_do&&_s._d.popupAds_ar&&_s.popupAds_do.resetPopups(_s._d.popupAds_ar))),isNaN(e)&&(e=0);for(var o=0;o<_s._d.adsSource_ar.length;o++)if(e>=_s._d.adsSource_ar[o].timeStart&&e<=_s._d.adsSource_ar[o].timeStart+1&&!_s._d.adsSource_ar[o].played_bl){_s.isAdd_bl=!0,0!=_s._d.adsSource_ar[o].timeStart&&(_s.wasAdd_bl=!0),_s.addSource_str=_s._d.adsSource_ar[o].source,_s._d.adsSource_ar[o].played_bl=!0,_s._d.adsThumbnailPath_str=_s._d.adsSource_ar[o].thumbnailSource,_s._d.timeToHoldAds=_s._d.adsSource_ar[o].timeToHoldAds,_s._d.showSkipButton_bl=!!_s._d.timeToHoldAds,_s._d.adsPageToOpenURL_str=_s._d.adsSource_ar[o].link,_s._d.adsPageToOpenTarget_str=_s._d.adsSource_ar[o].target,_s.scrubAfterAddDuration=_s._d.adsSource_ar[o].timeStart,_s.TrackingEvents=_s._d.adsSource_ar[o].TrackingEvents,_s.Impression=_s._d.adsSource_ar[o].Impression,_s.ClickTracking=_s._d.adsSource_ar[o].ClickTracking,_s.TrackingEvents&&(_s.Impression=_s.ClickTracking=_s.ClickThrough=!0,_s.callFirstQuartile=_s.callMidpoint=_s.callThirdQuartile=!0),_s.curImageTotalTime=_s._d.adsSource_ar[o].addDuration,_s.isStopped_bl||(_s.lastCurTime=_s.curTime),_s.lastCurTime||(_s.lastCurTime=_s.getCurrentTime()),_s.setSource(_s.addSource_str,!0),_s.prevVidSrc2="",_s.videoType_str==FWDEVPlayer.IMAGE||_s.videoType_str==FWDEVPlayer.IFRAME||_s.isMobile_bl||(_s.allowToPlay=!1,"00"==_s.lastCurTime.substr(_s.lastCurTime.length-2)?(_s.autoPlay_bl||_s.adDone_bl)&&(-1!=_s.addSource_str.indexOf("youtube.")&&_s.ytb_do&&_s.ytb_do.hasBeenCreatedOnce_bl&&(_s.allowToPlay=!0),-1==_s.addSource_str.indexOf("youtube.")&&(_s.allowToPlay=!0)):(-1!=_s.addSource_str.indexOf("youtube.")&&_s.ytb_do&&_s.ytb_do.hasBeenCreatedOnce_bl&&(_s.allowToPlay=!0),-1==_s.addSource_str.indexOf("youtube.")&&(_s.allowToPlay=!0)),_s.allowToPlay&&_s.play()),_s.adDone_bl=!1,_s.controller_do&&_s.controller_do.line_ar&&_s.controller_do.line_ar[o]&&(_s.controller_do.line_ar[o].setVisible(!1),_s.controller_do.line_ar[o].isUsed_bl=!0);break}}if(_s.isLive=_s._d.videosSource_ar[_s._d.startAtVideoSource].isLive,!_s.isAdd_bl){var s=_s._d.videosSource_ar[_s._d.startAtVideoSource],n=s.source;if(n!=_s.prevVidSrc||t)_s.TrackingEvents=_s.Impression=_s.ClickTracking=_s.ClickThrough=void 0,_s.callFirstQuartile=_s.callMidpoint=_s.callThirdQuartile=void 0,_s.playSecondSource=!1,_s.videoSource2_str=void 0,_s.setSource(s.source,!1,_s._d.videosSource_ar[_s._d.startAtVideoSource].videoType),_s.prevVidSrc=n;else{var r=s.source;_s.videoSource2_str&&(r=_s.videoSource2_str),r!=_s.prevVidSrc2&&(_s.setSource(r,!1,_s._d.videosSource_ar[_s._d.startAtVideoSource].videoType),_s.prevVidSrc2=r)}}_s.controller_do&&_s.controller_do.positionAdsLines(_s.curDuration),_s.prevDuration=e}}},_s.updateImageScreen=function(e){return _s.videoType_str==FWDEVPlayer.IFRAME?(_s.iFrame_do||(_s.iFrame_do=new FWDEVPDO("iframe"),_s.iFrame_do.hasT3D=!1,_s.iFrame_do.hasT2D=!1,_s.iFrame_do.setBackfaceVisibility()),_s.main_do.addChildAt(_s.iFrame_do,_s.main_do.getChildIndex(_s.dClk_do)+1),_s.showClickScreen(),_s.iFrame_do.screen.src=e,_s.positionAdsImage(),void _s.startToUpdateAdsButton()):void(!_s.imageSceeenHolder_do&&(_s.imageSceeenHolder_do=new FWDEVPDO("div"),_s.imageSceeenHolder_do.setX(0),_s.imageSceeenHolder_do.setY(0),_s.imageSceeenHolder_do.setBkColor("#000000")),_s.main_do.addChildAt(_s.imageSceeenHolder_do,_s.main_do.getChildIndex(_s.dClk_do)-1),_s.showClickScreen(),_s.imageSceeenHolder_do.contains(_s.imageScreen_do)&&_s.imageSceeenHolder_do.removeChild(_s.imageScreen_do),_s.imageScreen_do=null,_s.imageScreen_do=new FWDEVPDO("img"),_s.imageAdd_img=new Image,_s.imageAdd_img.src=e,_s.showPreloader_bl&&(_s.preloader_do.show(!1),_s.preloader_do.startPreloader()),_s.largePlayButton_do&&_s.hideLargePlayButton(),_s.imageAdd_img.onload=function(){_s.imageScreen_do.setScreen(_s.imageAdd_img),_s.imageScreen_do.setAlpha(0),FWDAnimation.to(_s.imageScreen_do,1,{alpha:1}),_s.imageAddOriginalWidth=_s.imageAdd_img.width,_s.imageAddOriginalHeight=_s.imageAdd_img.height,_s.preloader_do.hide(!1),_s.preloader_do.stopPreloader(),_s.imageSceeenHolder_do.addChild(_s.imageScreen_do),_s.positionAdsImage(),_s.startToUpdateAdsButton()},_s.imageAdd_img.onerror=function(){return _s.main_do.addChild(_s.info_do),_s.info_do.showText("Advertisment image with path "+e+" can't be found"),_s.preloader_do.hide(!1),void _s.preloader_do.stopPreloader()})},_s.positionAdsImage=function(){if(_s.videoType_str==FWDEVPlayer.IFRAME&&_s.iFrame_do&&(_s.iFrame_do.setWidth(_s.sW),_s.iFrame_do.setHeight(_s.sH)),_s.imageScreen_do&&_s.videoType_str==FWDEVPlayer.IMAGE){var e=_s.sW/_s.imageAddOriginalWidth,t=_s.sH/_s.imageAddOriginalHeight,o=0;e>=t?o=e:e<=t&&(o=t);var s=parseInt(_s.imageAddOriginalWidth*o),n=parseInt(_s.imageAddOriginalHeight*o),r=parseInt((_s.sW-s)/2),a=parseInt((_s.sH-n)/2);_s.imageScreen_do.setWidth(s),_s.imageScreen_do.setHeight(n),_s.imageScreen_do.setX(r),_s.imageScreen_do.setY(a),_s.imageSceeenHolder_do.setWidth(_s.sW),_s.imageSceeenHolder_do.setHeight(_s.sH)}},_s.startToUpdateAdsButton=function(){_s.curImageTime=0,_s.updateAdsButton(),_s.stopUpdateImageInterval(),_s.startUpdateImageInterval(),_s.setPlayAndPauseButtonState()},_s.stopUpdateImageInterval=function(){_s.isImageAdsPlaying_bl=!1,clearInterval(_s.startUpdateAdsId_int),_s.setPlayAndPauseButtonState(),_s.largePlayButton_do&&!_s.useWithoutVideoScreen_bl&&_s.showLargePlayButton(),_s.isPlaying_bl=!1,_s.hider.stop()},_s.startUpdateImageInterval=function(){_s.isImageAdsPlaying_bl=!0,_s.startUpdateAdsId_int=setInterval(_s.updateAdsButton,1e3),_s.setPlayAndPauseButtonState(),_s.largePlayButton_do&&_s.hideLargePlayButton(),_s.isPlaying_bl=!0,_s.hider.start()},_s.updateAdsButton=function(){_s.videoScreenUpdateTimeHandler({curTime:FWDEVPUtils.formatTime(_s.curImageTime),totalTime:FWDEVPUtils.formatTime(_s.curImageTotalTime),seconds:_s.curImageTime}),_s.videoScreenUpdateHandler({percent:_s.curImageTime/_s.curImageTotalTime}),_s.curImageTime==_s.curImageTotalTime&&_s.videoScreenPlayCompleteHandler(),_s.curImageTime+=1},_s.setPlayAndPauseButtonState=function(){_s.isImageAdsPlaying_bl?_s.controller_do&&_s.controller_do.showPauseButton():_s.controller_do&&_s.controller_do.showPlayButton()},_s.setupDASH=function(){_s.dashJS||!window.dashjs||(_s.isDASHLoaded_bl=!0,_s.dashJS=dashjs.MediaPlayer().create(),_s.dashJS.on(dashjs.MediaPlayer.events.ERROR,function(t){_s.checkSecondSource()||(_s.main_do.addChild(_s.info_do),_s.info_do.showText(t.error.message))}),_s.dispatchEvent(FWDEVPlayer.FRAMEWORK_DONE))},_s.destroyDASH=function(){if(_s.dashJS){try{_s.dashJS.reset()}catch(t){}_s.dashJS=null}},_s.isThreeJsLoaded_bl=!1,_s.isThreeJsOrbitLoaded_bl=!1,_s.load360ScriptsId_to,_s.isHLSJsLoaded_bl=!1,_s.destroyHLS=function(){_s.hlsJS&&(_s.hlsJS.destroy(),_s.hlsJS=null)},_s.setupHLS=function(){_s.hlsJS||!window.Hls||(_s.isHLSJsLoaded_bl=!0,_s.hlsJS=new Hls,FWDEVPRegisterHLSError(_s),_s.dispatchEvent(FWDEVPlayer.FRAMEWORK_DONE))},_s.setSource=function(e,t,o){if(_s.isAPIReady_bl&&(e=e.replace(/&amp;/g,"&"),_s.currentSecconds=0,clearInterval(_s.tryHLS_int),clearTimeout(_s.load360ScriptsId_to),-1!=e.indexOf("encrypt:")&&(e=atob(e.substr(8))),e!=_s.prevVideoSource_str||t)){_s.prevVideoSource_str=e,_s.videoSource_str=e,_s.videoSourcePath_str=e,_s.finalVideoPath_str=e,_s.videoType=o,_s.main_do.contains(_s.info_do)&&_s.main_do.removeChild(_s.info_do),_s.stop(),_s.controller_do&&_s.controller_do.setIsLive(_s.isLive),-1!=_s.videoSourcePath_str.indexOf("vimeo.com")&&-1==e.indexOf(".mp4")&&-1==e.indexOf(".m3u8")?_s.videoType_str=FWDEVPlayer.VIMEO:-1==_s.videoSourcePath_str.indexOf("youtube.")?-1!=_s.videoSourcePath_str.indexOf(".jpg")||-1!=_s.videoSourcePath_str.indexOf(".jpeg")||-1!=_s.videoSourcePath_str.indexOf(".png")?(_s.videoType_str=FWDEVPlayer.IMAGE,_s.controller_do&&_s.controller_do.setX(0)):e.match(/\.mp3|\.m4a|\.acc/ig)?(_s.videoType_str=FWDEVPlayer.MP3,_s.controller_do&&_s.controller_do.setX(0)):e.match(/\.mpd|\.m3u8|\.mp4|\.mov|google.com|lh3.|myqnapcloud/ig)?(_s.controller_do&&_s.controller_do.setX(0),_s.videoType_str=_s.isMobile_bl||FWDEVPlayer.hasHTMLHLS||-1==_s.videoSourcePath_str.indexOf(".m3u8")?-1==e.indexOf(".mpd")?FWDEVPlayer.VIDEO:FWDEVPlayer.DASH:FWDEVPlayer.HLS_JS):(_s.videoType_str=FWDEVPlayer.IFRAME,_s.controller_do&&_s.controller_do.setX(0)):(_s.videoType_str=FWDEVPlayer.YOUTUBE,_s.controller_do&&_s.controller_do.setX(0));var s=_s._d.imaURL;if((_s.videoType_str!=FWDEVPlayer.VIDEO||_s.errorImaSDK)&&(s=!1),s){if(_s.isIMA=s,!_s._d.imaReady)return void _s._d.startToLoadIMA();_s.IMA||(FWDEVPIMA.setPrototype(),_s.IMA=new FWDEVPIMA(_s))}if(_s.IMA||(_s.isIMA=!1),s||(_s.IMA&&_s.IMA.stop(),_s.prevIsIMA=""),_s.cc&&_s.cc.checkButtonState(),_s.vimeo_do&&_s.vimeo_do.setX(-5e3),_s.ytb_do&&_s.ytb_do.setX(-5e3),_s.videoScreen_do&&_s.videoScreen_do.setX(-5e3),_s.audioScreen_do&&_s.audioScreen_do.setX(-5e3),_s.audioScreen_do.setVisible(!1),-1!=_s.videoSource_str.indexOf("youtube.")&&!_s.isYoutubeReady_bl){if(setTimeout(function(){_s.showPreloader_bl&&(_s.main_do.addChild(_s.preloader_do),_s.preloader_do.show(!1),_s.preloader_do.startPreloader(),_s.largePlayButton_do&&_s.hideLargePlayButton(),-1!=location.protocol.indexOf("file:")&&FWDEVPUtils.isIE&&_s.main_do.addChild(_s.info_do))},50),-1!=location.protocol.indexOf("file:")&&FWDEVPUtils.isIE){_s.info_do.allowToRemove_bl=!1;var n="This browser dosen't allow the Youtube API to run local, please test it online or in another browser like Firefox or Chrome.";return _s.displayError(n),void _s.resizeHandler()}return void _s.setupYoutubeAPI()}if(-1!=e.indexOf("vimeo.")&&!_s.vimeo_do&&_s.videoType_str==FWDEVPlayer.VIMEO){if(-1!=location.protocol.indexOf("file:")){var n="This browser dosen't allow playing Vimeo videos local, please test online.";return void _s.displayError(n)}return _s.showPreloader_bl&&(_s.main_do.addChild(_s.preloader_do),_s.preloader_do.show(!1),_s.preloader_do.startPreloader()),_s.largePlayButton_do&&_s.hideLargePlayButton(),void _s.setupVimeoAPI()}if(_s.isGR=!1,_s.is360=!1,o&&("360degreevideo"==o.toLowerCase()?(_s.isGR=!1,_s.is360=!0):"greenscreenvideo"==o.toLowerCase()&&(_s.isGR=!0,_s.is360=!1)),_s.isGR?(_s.main_do.setBkColor("transparent"),_s.videoScreen_do.setBkColor("transparent")):(_s.main_do.setBkColor(_s.backgroundColor_str),_s.videoScreen_do.setBkColor(_s.backgroundColor_str)),-1!=e.indexOf(".mpd")&&!_s.isDASHLoaded_bl&&!FWDEVPlayer.isDASHLoaded_bl){if(-1!=location.protocol.indexOf("file:")){var n="This browser doesn't allow playing MPEG DASH videos local, please test online.";return void _s.displayError(n)}_s.dispatchEvent(FWDEVPlayer.FRAMEWORK_LOAD);var r=document.createElement("script");return r.src=_s._d.dashPath_str,document.head.appendChild(r),r.onerror=function(){var e="Error loading MPEG DASH library <font color='#FF0000'>"+_s._d.dashPath_str+"</font>.";_s.displayError(e)},r.onload=function(){_s.isDASHLoaded_bl=!0,FWDEVPlayer.isDASHLoaded_bl=!0,_s.setupDASH(),_s.setSource(e,!0,_s.is360)},void(_s.autoPlay_bl||(_s.setPosterSource(_s.posterPath_str),_s.videoPoster_do&&_s.videoPoster_do.show(),_s.lrgPlayBtn&&_s.lrgPlayBtn.show()))}if(!_s.isMobile_bl&&!FWDEVPlayer.hasHTMLHLS&&-1!=_s.videoSourcePath_str.indexOf(".m3u8")&&!_s.isHLSJsLoaded_bl&&!FWDEVPlayer.isHLSJsLoaded_bl){if(-1!=location.protocol.indexOf("file:")){_s.info_do.allowToRemove_bl=!1;var n="This browser dosen't allow playing HLS / live streaming videos local, please test online.";return void _s.displayError(n)}_s.dispatchEvent(FWDEVPlayer.FRAMEWORK_LOAD);var r=document.createElement("script");return r.src=_s._d.hlsPath_str,r.onerror=function(){_s.main_do.addChild(_s.info_do);var e="Error loading HLS library <font color='#FF0000'>"+_s._d.hlsPath_str+"</font>.";_s.displayError(e)},r.onload=function(){_s.isHLSJsLoaded_bl=!0,FWDEVPlayer.isHLSJsLoaded_bl=!0,_s.setupHLS(),_s.setSource(_s.videoSourcePath_str,!0,_s._d.videosSource_ar[_s._d.startAtVideoSource].videoType)},void document.head.appendChild(r)}if(_s.is360&&!_s.isThreeJsOrbigLoaded_bl){if(FWDEVPUtils.isLocal){_s.main_do.addChild(_s.info_do);var n="This browser dosen't allow playing 360 videos local, please test online.";return void _s.displayError(n)}if(_s.dispatchEvent(FWDEVPlayer.FRAMEWORK_LOAD),!FWDEVPUtils.hasWEBGL){_s.main_do.addChild(_s.info_do);var n="Playing 360 videos in this browser is not possible because it dosen't support WEBGL.";return void _s.displayError(n)}if(!_s.isThreeJsLoaded_bl&&!FWDEVPlayer.hasThreeJsLoaded_bl){var r=document.createElement("script");return r.src=_s._d.threeJsPath_str,r.onerror=function(){var e="Error loading 360 degree library <font color='#FF0000'>"+_s._d.threeJsPath_str+"</font>.";_s.displayError(e)},r.onload=function(){_s.isThreeJsOrbigLoaded_bl=!0;var e=document.createElement("script");e.src=_s._d.threeJsControlsPath_str,e.onerror=function(){var e="Error loading three.js from <font color='#FF0000'>"+_s._d.threeJsControlsPath_str+"</font>.";_s.displayError(e)},e.onload=function(){FWDEVPlayer.hasThreeJsLoaded_bl=!0,_s.isThreeJsOrbitLoaded_bl=!0;var e=_s._d.videosSource_ar[_s._d.startAtVideoSource];_s.isThreeJsOrbigLoaded_bl&&_s.isThreeJsOrbitLoaded_bl&&_s.setSource(e.source,!0,e.videoType,e.source2),clearTimeout(_s.load360ScriptsId_to),_s.preloader_do.hide(!1),_s.preloader_do.stopPreloader(),_s.dispatchEvent(FWDEVPlayer.FRAMEWORK_DONE)},document.head.appendChild(e)},document.head.appendChild(r),void(_s.load360ScriptsId_to=setTimeout(function(){_s.showPreloader_bl&&(_s.preloader_do.show(!1),_s.preloader_do.startPreloader())},1e3))}}if(_s.is360?_s.dClk_do.style().cursor="url("+_s._d.handPath_str+"), default":(_s.dClk_do.style().cursor="auto",_s.dispatchEvent(FWDEVPlayer.SHOW_CURSOR)),!e)return _s.main_do.addChild(_s.info_do),void _s.info_do.showText("Video source is not defined!");if(-1!=e.indexOf("youtube.")){e=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/)[2]}return(_s.controller_do&&_s._d.subtitles_ar&&1<_s._d.subtitles_ar.length&&(_s.controller_do.updateSubtitleButtons(_s._d.subtitles_ar,_s._d.startAtSubtitle),_s._d.subtitlePath_str=_s._d.subtitles_ar[_s._d.subtitles_ar.length-1-_s._d.startAtSubtitle].source,_s.ccSS=_s._d.startAtSubtitle),_s.subtitle_do.stopToLoadSubtitle(),_s.controller_do&&!_s.isQualityChanging_bl&&_s.controller_do.disableSubtitleButton(),_s.controller_do&&_s.controller_do.rewindButton_do&&_s.controller_do.rewindButton_do.disable(),"00:00:00"!=_s._d.scrubAtTimeAtFirstPlay&&(_s.playAtTime_bl=!0),_s.controller_do&&_s.controller_do.updateHexColorForScrubber(_s.isAdd_bl),_s.resizeHandler(),_s.getVideoSource()&&_s.dispatchEvent(FWDEVPlayer.UPDATE_VIDEO_SOURCE),_s.videoType_str==FWDEVPlayer.IMAGE||_s.videoType_str==FWDEVPlayer.IFRAME)?(_s.updateImageScreen(_s.videoSourcePath_str),_s.videoPoster_do&&_s.videoPoster_do.setX(-5e3),void(_s.wasAdd_bl=!1)):(_s.main_do.contains(_s.imageSceeenHolder_do)&&_s.main_do.removeChild(_s.imageSceeenHolder_do),_s.main_do.contains(_s.iFrame_do)&&_s.main_do.removeChild(_s.iFrame_do),_s.videoPoster_do&&_s.videoPoster_do.setX(0),_s.hideClickScreen(),(_s.isAdd_bl?_s.setPlaybackRate(1):_s.setPlaybackRate(_s._d.defaultPlaybackRate_ar[_s._d.startAtPlaybackIndex]),_s.controller_do&&(_s.videoType_str==FWDEVPlayer.VIMEO||_s.videoType_str==FWDEVPlayer.DASH||_s.videoType_str==FWDEVPlayer.HLS_JS||_s.videoType_str==FWDEVPlayer.IMAGE||_s.videoType_str==FWDEVPlayer.IFRAME?_s.controller_do.removePlaybackRateButton():_s.controller_do.addPlaybackRateButton()),_s.controller_do&&_s._d.showPlaybackRateButton_bl&&_s.controller_do.updatePlaybackRateButtons(_s._d.updatePlaybackRateButtons,_s._d.startAtPlaybackIndex),_s.videoType_str==FWDEVPlayer.VIMEO))?(_s.ytb_do&&_s.ytb_do.ytb&&_s.ytb_do.showDisable(),_s.controller_do&&_s.controller_do.removeYtbQualityButton(),_s.vimeo_do.showDisable(),_s.vimeo_do.setSource(e),_s.setPosterSource(_s.posterPath_str),!_s.largePlayButton_do||_s._d.showAnnotationsPositionTool_bl||_s.useWithoutVideoScreen_bl||(_s.hideLargePlayButton(),_s.showLargePlayButton()),_s._d.autoPlay_bl&&_s.controller_do&&_s.controller_do.updateVolume(0),_s.getVideoSource()&&_s.dispatchEvent(FWDEVPlayer.UPDATE_VIDEO_SOURCE),_s.resizeHandler(),_s.vimeo_do.iFrame_do&&(_s.vimeo_do.iFrame_do.screen.style.left="0px"),_s.vimeo_do.setX(0),void(_s.wasAdd_bl=!1)):_s.videoType_str==FWDEVPlayer.YOUTUBE&&_s.ytb_do&&_s.ytb_do.ytb&&_s.ytb_do.ytb.cueVideoById?(_s.ytb_do&&_s.ytb_do.ytb&&_s.ytb_do.showDisable(),_s.ytb_do.setX(0),_s._d.aom_bl&&_s.controller_do&&_s.controller_do.updateVolume(0),_s.ytb_do.setSource(e),_s.setPosterSource(_s.posterPath_str),!_s.largePlayButton_do||_s._d.showAnnotationsPositionTool_bl||_s.useWithoutVideoScreen_bl||(_s.hideLargePlayButton(),_s.showLargePlayButton()),_s._d.autoPlay_bl&&(_s.controller_do&&_s.controller_do.updateVolume(0),(_s.displayType!=FWDEVPlayer.LIGHTBOX||_s.lightBox_do.showComplete_bl)&&_s.play()),!_s.isMobile_bl&&(_s.wasAdd_bl||_s.playSecondSource)&&_s.play(),_s.playSecondSource=!1,_s.controller_do&&(_s.controller_do.updatePreloaderBar(0),_s.controller_do.addYtbQualityButton()),_s.wasAdd_bl=!1,void(_s.getVideoSource()&&_s.dispatchEvent(FWDEVPlayer.UPDATE_VIDEO_SOURCE))):(_s.finalVideoPath_str=e,_s.videoType_str==FWDEVPlayer.MP3?(_s._d.autoPlay_bl=!1,_s.setPosterSource(_s.posterPath_str),_s.ytb_do&&_s.ytb_do.ytb&&_s.ytb_do.showDisable(),!_s.largePlayButton_do||_s._d.showAnnotationsPositionTool_bl||_s.useWithoutVideoScreen_bl||(_s.hideLargePlayButton(),_s.showLargePlayButton()),_s.audioScreen_do.setX(0),_s.audioScreen_do.setVisible(!0),_s.showPreloader_bl&&(_s.preloader_do.hide(!1),_s.preloader_do.stopPreloader()),_s.audioScreen_do.setSource(e),_s.playSecondSource&&_s.play(),_s.controller_do&&_s._d.videosSource_ar&&1<_s._d.videosSource_ar.length?(_s.controller_do.updatePreloaderBar(0),_s.controller_do.addYtbQualityButton(),_s.controller_do.updateQuality(_s._d.videoLabels_ar,_s._d.videoLabels_ar[_s._d.videoLabels_ar.length-1-_s._d.startAtVideoSource])):_s.controller_do&&_s.controller_do.removeYtbQualityButton(),void(_s.wasAdd_bl=!1)):void((FWDEVPlayer.hasHTML5Video&&_s.videoType_str==FWDEVPlayer.VIDEO||_s.videoType_str==FWDEVPlayer.HLS_JS||_s.videoType_str==FWDEVPlayer.DASH)&&(_s.setPosterSource(_s.posterPath_str),_s.ytb_do&&_s.ytb_do.ytb&&_s.ytb_do.showDisable(),_s.largePlayButton_do&&!_s._d.showAnnotationsPositionTool_bl&&!_s.useWithoutVideoScreen_bl&&(_s.hideLargePlayButton(),_s.showLargePlayButton()),_s.videoScreen_do.setX(0),_s.videoScreen_do.setVisible(!0),_s.showPreloader_bl&&(_s.preloader_do.hide(!1),_s.preloader_do.stopPreloader()),_s.videoType_str==FWDEVPlayer.DASH?(_s.videoScreen_do.setSource(e),_s.videoScreen_do.initVideo(),_s.setupDASH(),_s.dashJS.initialize(_s.videoScreen_do.video_el,_s.videoSourcePath_str,!1),_s.dashJS.attachSource(_s.videoSourcePath_str),_s.dashJS.on(dashjs.MediaPlayer.events.MANIFEST_LOADED,function(){_s.isDASHManifestReady_bl=!0,(_s._d.autoPlay_bl||_s.playSecondSource&&_s.playStarted||!_s.isMobile_bl&&_s.wasAdd_bl)&&(_s._d.autoPlay_bl&&_s.controller_do.updateVolume(0),_s.videoType_str==FWDEVPlayer.DASH&&((_s.displayType!=FWDEVPlayer.LIGHTBOX||_s.lightBox_do.showComplete_bl)&&setTimeout(_s.play,100),setTimeout(_s.play,100)),_s.playStarted=_s.playSecondSource=!1),_s.isAdd_bl?_s.setPlaybackRate(1):_s.setPlaybackRate(_s._d.defaultPlaybackRate_ar[_s.startAtPlaybackIndex]),_s.controller_do&&_s._d.showPlaybackRateButton_bl&&_s.controller_do.updatePlaybackRateButtons(_s.startAtPlaybackIndex)})):_s.videoType_str==FWDEVPlayer.HLS_JS?(_s.videoScreen_do.setSource(e),_s.videoScreen_do.initVideo(),_s.setupHLS(),_s.hlsJS.loadSource(_s.videoSourcePath_str),_s.hlsJS.attachMedia(_s.videoScreen_do.video_el),_s.hlsJS.on(Hls.Events.MANIFEST_PARSED,function(){_s.isHLSManifestReady_bl=!0,(_s._d.autoPlay_bl||_s.wasAdHLS)&&(_s._d.autoPlay_bl&&_s.controller_do.updateVolume(0),(_s.displayType!=FWDEVPlayer.LIGHTBOX||_s.lightBox_do.showComplete_bl)&&_s.play()),_s.wasAdHLS=!1})):(_s.videoScreen_do.setSource(e),_s._d.autoPlay_bl&&(_s.controller_do&&_s.controller_do.updateVolume(0),(_s.displayType!=FWDEVPlayer.LIGHTBOX||_s.lightBox_do.showComplete_bl)&&_s.play()),_s.isIMA&&(_s.prevIsIMA!=_s.isIMA&&_s.IMA.setSource(_s.isIMA),_s.prevIsIMA=_s.isIMA),_s.wasAdd_bl=!1),_s.controller_do&&_s._d.videosSource_ar&&1<_s._d.videosSource_ar.length?(_s.controller_do.updatePreloaderBar(0),_s.controller_do.addYtbQualityButton(),_s.controller_do.updateQuality(_s._d.videoLabels_ar,_s._d.videoLabels_ar[_s._d.videoLabels_ar.length-1-_s._d.startAtVideoSource])):_s.controller_do&&_s.controller_do.removeYtbQualityButton()),_s.prevVideoSourcePath_str=_s.videoSourcePath_str))}},_s.goFullScreen=function(){if(_s.isAPIReady_bl&&_s.displayType!=FWDEVPlayer.BACKGROUND_VIDEO){document.addEventListener&&(document.addEventListener("fullscreenchange",_s.onFullScreenChange),document.addEventListener("mozfullscreenchange",_s.onFullScreenChange),document.addEventListener("webkitfullscreenchange",_s.onFullScreenChange),document.addEventListener("MSFullscreenChange",_s.onFullScreenChange)),document.documentElement.requestFullScreen?_s.main_do.screen.documentElement.requestFullScreen():document.documentElement.mozRequestFullScreen?_s.main_do.screen.mozRequestFullScreen():document.documentElement.webkitRequestFullScreen?_s.main_do.screen.webkitRequestFullScreen():document.documentElement.msRequestFullscreen&&_s.main_do.screen.msRequestFullscreen(),_s.stopVisualization(),_s.callVastEvent("playerExpand"),_s.callVastEvent("fullscreen"),_s.disableClick(),_s.customContextMenu_do&&_s.customContextMenu_do.updateFullScreenButton(1),_s.main_do.style().position="fixed",document.documentElement.style.overflow="hidden",_s.main_do.style().zIndex=9999999999998,_s.isFullScreen_bl=!0,_s.controller_do&&(_s.controller_do.showNormalScreenButton(),_s.controller_do.setNormalStateToFullScreenButton());var e=FWDEVPUtils.getScrollOffsets();_s.lastX=e.x,_s.lastY=e.y,window.scrollTo(0,0),_s.isMobile_bl&&window.addEventListener("touchmove",_s.disableFullScreenOnMobileHandler,{passive:!1}),_s.dispatchEvent(FWDEVPlayer.GO_FULLSCREEN),_s.resizeHandler(),setTimeout(function(){_s.resizeHandler()},300),setTimeout(function(){_s.resizeHandler()},600)}},_s.disableFullScreenOnMobileHandler=function(t){t.preventDefault&&t.preventDefault()},_s.goNormalScreen=function(){_s.isAPIReady_bl&&_s.displayType!=FWDEVPlayer.BACKGROUND_VIDEO&&_s.isFullScreen_bl&&(document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),_s.addMainDoToTheOriginalParent(),_s.isFullScreen_bl=!1)},_s.addMainDoToTheOriginalParent=function(e){(_s.isFullScreen_bl||e)&&(_s.isFullScreen_bl=!1,document.removeEventListener&&(document.removeEventListener("fullscreenchange",_s.onFullScreenChange),document.removeEventListener("mozfullscreenchange",_s.onFullScreenChange),document.removeEventListener("webkitfullscreenchange",_s.onFullScreenChange),document.removeEventListener("MSFullscreenChange",_s.onFullScreenChange)),_s.callVastEvent("playerCollapse"),_s.controller_do&&_s.controller_do.setNormalStateToFullScreenButton(),_s.displayType==FWDEVPlayer.RESPONSIVE||_s.displayType==FWDEVPlayer.AFTER_PARENT||_s.displayType==FWDEVPlayer.LIGHTBOX||_s.displayType==FWDEVPlayer.STICKY?(document.documentElement.style.overflow="visible",_s.main_do.style().position="relative",_s.main_do.style().zIndex=0,_s.isMin?(_s.main_do.style().position="fixed",_s.main_do.style().zIndex=9999999999999):(_s.main_do.style().position="relative",_s.main_do.style().zIndex=0)):(_s.main_do.style().position="absolute",_s.main_do.style().zIndex=9999999999998),_s.showCursor(),_s.controller_do&&_s.controller_do.showFullScreenButton(),window.scrollTo(_s.lastX,_s.lastY),!FWDEVPUtils.isIE&&setTimeout(function(){window.scrollTo(_s.lastX,_s.lastY)},150),_s.resizeHandler(),_s.customContextMenu_do&&_s.customContextMenu_do.updateFullScreenButton(0),_s.isMobile_bl&&window.removeEventListener("touchmove",_s.disableFullScreenOnMobileHandler),_s.dispatchEvent(FWDEVPlayer.GO_NORMALSCREEN))},_s.onFullScreenChange=function(){document.fullScreen||document.msFullscreenElement||document.mozFullScreen||document.webkitIsFullScreen||document.msieFullScreen||(_s.controller_do&&_s.controller_do.showNormalScreenButton(),_s.isFullScreen_bl=!1,_s.addMainDoToTheOriginalParent(!0))},_s.displayError=function(e){_s.main_do.addChild(_s.info_do),_s.info_do.showText(e),_s.preloader_do.hide(!1),_s.preloader_do.stopPreloader(),_s.dispatchEvent(FWDEVPlayer.ERROR,{error:e})},_s.downloadVideo=function(){if(_s.isAPIReady_bl){var e=_s._d.videosSource_ar[_s._d.startAtVideoSource].source,t;if(t=-1==e.indexOf("/")?e:e.substr(e.lastIndexOf("/")+1),_s._d.downloadVideo(e,t),window.ga){var o="videoPath:"+e+", videoName:"+t+"";ga("send",{hitType:"event",eventCategory:"videos",eventAction:"downloaded",eventLabel:o,nonInteraction:!0})}}},_s.stopVideo=function(){_s.isAPIReady_bl&&(_s.IMA&&_s.IMA.stop(),_s.controller_do&&(_s.controller_do.createdAdsOnce_bl=!1,_s.controller_do.resetsAdsLines(!0)),_s._d.imaURL=_s.videoSource2_str=_s.prevVideoSource_str=void 0,_s.adDone_bl=_s.isAdd_bl=_s._d.isVastXMLParsed_bl=_s.playSecondSource=!1,_s._d.adsSource_ar=_s._d.popupAds_ar=[],_s.prevVidSrc=_s.prevVidSrc2=_s.prevIsIMA="",_s.curDurration=0,_s.prevDuration=-1,_s.stop())},_s.setVideoSource=function(e,t,o,s,n,r){_s.isAPIReady_bl&&(_s.stopVideo(),_s.isAdd_bl=!1,_s.adDone_bl=!1,_s.prevDuration=-1,_s._d.vastXML=void 0,_s._d.imaURL=void 0,n&&FWDEVPUtils.isIMA(n)?_s._d.imaURL=n:n&&(_s._d.vastXML=n),s==null&&(s=!1),_s._d.videosSource_ar[_s._d.startAtVideoSource].isLive=s,_s._d.videosSource_ar[_s._d.startAtVideoSource].source=e,_s._d.videosSource_ar[_s._d.startAtVideoSource].videoType=o,_s._d.videosSource_ar[_s._d.startAtVideoSource].isPrivate=r,_s.updateAds(0))},_s.setVastSource=function(e){_s.isAPIReady_bl&&(_s.stopVideo(),_s._d.vastXML=e,_s.updateAds(0))},_s.getVideoSource=function(){return _s.isAPIReady_bl?_s.finalVideoPath_str:void 0},_s.updateVolume=function(){_s.isAPIReady_bl&&_s.setVolume()},_s.getPosterSource=function(){return _s.isAPIReady_bl?_s.posterPath_str:void 0},_s.getCurrentTime=function(e){e||(e="text");var t;return"milliseconds"==e?(t=_s.curTimeInmilliseconds?_s.curTimeInmilliseconds:0,_s.isCasting&&(t=_s.cc.getCurrentTime())):"seconds"==e?(t=_s.curTimeInSecond?_s.curTimeInSecond:0,_s.isCasting&&(t=_s.cc.getCurrentTime())):(t=_s.curTime?_s.curTime:"00:00",_s.isCasting&&(t=FWDEVPUtils.formatTime(_s.cc.getCurrentTime()))),t},_s.getTotalTime=function(e){e||(e="text");var t;return"milliseconds"==e?(t=_s.totalTimeInMilliseconds?_s.totalTimeInMilliseconds:0,_s.isCasting&&(t=_s.cc.getCurrentTime())):"seconds"==e?(t=Math.round(_s.totalTimeInSeconds),_s.isCasting&&(t=_s.cc.getDuration())):(t=_s.totalTime?_s.totalTime:"00:00",_s.isCasting&&(t=FWDEVPUtils.formatTime(_s.cc.getDuration()))),t},_s.setPlaybackRate=function(e){_s.isAPIReady_bl&&(_s.videoType_str==FWDEVPlayer.VIDEO&&_s.videoScreen_do?_s.videoScreen_do.setPlaybackRate(e):_s.videoType_str==FWDEVPlayer.MP3&&_s.audioScreen_do?_s.audioScreen_do.setPlaybackRate(e):_s.videoType_str==FWDEVPlayer.YOUTUBE&&_s.ytb_do&&_s.ytb_do.ytb&&_s.ytb_do.setPlaybackRate(e))},_s.fillEntireVideoScreen=function(e){_s.isAPIReady_bl&&(_s.fillEntireVideoScreen_bl=e,_s.resizeHandler())},_s.showLightbox=function(){_s.lightBox_do&&_s.lightBox_do.show()},_s.updateHEXColors=function(e,t){_s.isAPIReady_bl&&(_s.controller_do.updateHEXColors(e,t),_s.largePlayButton_do&&_s.largePlayButton_do.updateHEXColors(e,t),_s.shareWindow_do&&_s.shareWindow_do.updateHEXColors(e,t),_s.embedWindow_do&&_s.embedWindow_do.updateHEXColors(e,t),_s.adsSkip_do&&_s.adsSkip_do.updateHEXColors(e,t),_s.opener_do&&_s.opener_do.updateHEXColors(e,t))},_s.hideCursor=function(){document.documentElement.style.cursor="none",document.getElementsByTagName("body")[0].style.cursor="none",_s.isAdd_bl||(_s.dClk_do.style().cursor="none")},_s.showCursor=function(){document.documentElement.style.cursor="auto",document.getElementsByTagName("body")[0].style.cursor="auto",_s.isAdd_bl?_s.dClk_do.setButtonMode(!0):_s.is360?_s.dClk_do.style().cursor="url("+_s._d.handPath_str+"), default":_s.dClk_do.style().cursor="auto",_s.dispatchEvent(FWDEVPlayer.SHOW_CURSOR)},_s.callVastEvent=function(e){if(_s.TrackingEvents){for(var t=0,o;t<_s.TrackingEvents.length;t++)e==_s.TrackingEvents[t].event&&(o=_s.TrackingEvents[t].URI);o&&_s.executeVastEvent(o)}},_s.executeVastEvent=function(e){if(e&&!0!==e){var t=new XMLHttpRequest;t.onreadystatechange=function(){},t.onerror=function(){},t.open("get",e,!0),t.send()}},_s.getStartTimeStamp=function(e){var t=window.location.href;if(t=t.substr(t.indexOf(e+"=")+2),-1!=t.indexOf("&")&&(t=t.substr(0,t.indexOf("&"))),-1!=t.indexOf("s&")&&(t=t.substr(0,t.indexOf("s&")+1)),t.match(/:/))return"00:00:00";var o=/\d+h/g,s=t.match(o);try{s=t.match(o)[0]}catch(t){}s&&(s=s.substr(0,s.length-1),1==s.length&&10>parseInt(s)&&(s="0"+s),59<parseInt(s)&&(s=59)),s=s?s:"00";var o=/\d+m/g,n=t.match(o);try{n=t.match(o)[0]}catch(t){}n&&(n=n.substr(0,n.length-1),1==n.length&&10>parseInt(n)&&(n="0"+n),59<parseInt(n)&&(n=59)),n=n?n:"00";var o=/\d+s/g,r=t.match(o);try{r=t.match(o)[0]}catch(t){}return r&&(r=r.substr(0,r.length-1),1==r.length&&10>parseInt(r)&&(r="0"+r),59<parseInt(r)&&(r=59)),r=r?r:"00",s+":"+n+":"+r},_s.addListener=function(e,t){if(e==null)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");if("function"!=typeof t)throw Error("listener must be of type Function.");var o={};o.type=e,o.listener=t,o.target=this,_s.listeners.events_ar.push(o)},_s.dispatchEvent=function(e,t){if(null!=_s.listeners){if(null==e)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");for(var o=0,s=_s.listeners.events_ar.length;o<s;o++)if(_s.listeners.events_ar[o].target===this&&_s.listeners.events_ar[o].type===e){if(t)for(var n in t)_s.listeners.events_ar[o][n]=t[n];_s.listeners.events_ar[o].listener.call(this,_s.listeners.events_ar[o])}}},_s.removeListener=function(e,t){if(e==null)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");if("function"!=typeof t)throw Error("listener must be of type Function."+e);for(var o=0,s=_s.listeners.events_ar.length;o<s;o++)if(_s.listeners.events_ar[o].target===this&&_s.listeners.events_ar[o].type===e&&_s.listeners.events_ar[o].listener===t){_s.listeners.events_ar.splice(o,1);break}},_s.cleanMainEvents=function(){window.removeEventListener?window.removeEventListener("resize",_s.onResizeHandler):window.detachEvent&&window.detachEvent("onresize",_s.onResizeHandler),clearTimeout(_s.resizeHandlerId_to),clearTimeout(_s.resizeHandler2Id_to),clearTimeout(_s.hidePreloaderId_to),clearTimeout(_s.orientationChangeId_to)};var args=FWDEVPUtils.getUrlArgs(window.location.search),embedTest=args.EVPInstanceName,tt=FWDEVPlayer.instaces_ar.length,video;if(embedTest)for(var i=0;i<tt;i++)if(video=FWDEVPlayer.instaces_ar[i],video.props.instanceName==embedTest){var ws=FWDEVPUtils.getViewportSize(),dumy_do=new FWDEVPDO("div");dumy_do.setBkColor(video.props.backgroundColor),dumy_do.setWidth(ws.w),dumy_do.setHeight(ws.h),document.documentElement.style.overflow="hidden",document.getElementsByTagName("body")[0].style.overflow="hidden",FWDEVPUtils.isIEAndLessThen9?document.getElementsByTagName("body")[0].appendChild(dumy_do.screen):document.documentElement.appendChild(dumy_do.screen);break}_s.init()};FWDEVPlayer.setPrototype=function(){FWDEVPlayer.prototype=new FWDEVPEventDispatcher},FWDEVPlayer.stopAllVideos=function(e){for(var t=FWDEVPlayer.instaces_ar.length,o=0,s;o<t;o++)s=FWDEVPlayer.instaces_ar[o],s!=e&&s.stop()},FWDEVPlayer.pauseAllVideos=function(e){for(var t=FWDEVPlayer.instaces_ar.length,o=0,s;o<t;o++)s=FWDEVPlayer.instaces_ar[o],s!=e&&s.pause()},FWDEVPlayer.hasHTML5Video=!0,FWDEVPlayer.hasHTMLHLS=function(){var e=document.createElement("video"),t=!1;return e.canPlayType&&(t="probably"===e.canPlayType("application/vnd.apple.mpegurl")||"maybe"===e.canPlayType("application/vnd.apple.mpegurl")),t}(),FWDEVPlayer.instaces_ar=[],FWDEVPlayer.curInstance=null,FWDEVPlayer.keyboardCurInstance=null,FWDEVPlayer.areInstancesCreated_bl=null,FWDEVPlayer.isYoutubeAPICreated_bl=!1,FWDEVPlayer.isEmbedded_bl=!1,FWDEVPlayer.CENTER="center",FWDEVPlayer.LEFT="left",FWDEVPlayer.RIGHT="right",FWDEVPlayer.PAUSE_ALL_VIDEOS="pause",FWDEVPlayer.STOP_ALL_VIDEOS="stop",FWDEVPlayer.DO_NOTHING="none",FWDEVPlayer.VIMEO="vimeo",FWDEVPlayer.YOUTUBE="youtube",FWDEVPlayer.VIDEO="video",FWDEVPlayer.MP3="mp3",FWDEVPlayer.STICKY="sticky",FWDEVPlayer.POSITION_TOP="top",FWDEVPlayer.POSITION_BOTTOM="bottom",FWDEVPlayer.SHOW_PLAY_BUTTON="showPlayButton",FWDEVPlayer.HIDE_PLAY_BUTTON="hidePlayButton",FWDEVPlayer.SAFE_TO_SCRUB="safeToScrub",FWDEVPlayer.IFRAME="iframe",FWDEVPlayer.SCRUB="scrub",FWDEVPlayer.BACKGROUND_VIDEO="backgroundvideo",FWDEVPlayer.READY="ready",FWDEVPlayer.STOP="stop",FWDEVPlayer.PLAY_START="playStart",FWDEVPlayer.PLAY="play",FWDEVPlayer.PAUSE="pause",FWDEVPlayer.UPDATE="update",FWDEVPlayer.UPDATE_TIME="updateTime",FWDEVPlayer.UPDATE_VIDEO_SOURCE="updateVideoSource",FWDEVPlayer.UPDATE_POSTER_SOURCE="udpatePosterSource",FWDEVPlayer.PLAYBACK_RATE_CHANGE="playbackRateChange",FWDEVPlayer.ERROR="error",FWDEVPlayer.PLAY_COMPLETE="playComplete",FWDEVPlayer.VOLUME_SET="volumeSet",FWDEVPlayer.GO_FULLSCREEN="goFullScreen",FWDEVPlayer.GO_NORMALSCREEN="goNormalScreen",FWDEVPlayer.IMAGE="image",FWDEVPlayer.VAST_LOADED_DONE="vastLoadingDone",FWDEVPlayer.HIDER_HIDE="hide",FWDEVPlayer.HIDER_SHOW="show",FWDEVPlayer.SHOW_CURSOR="showCursor",FWDEVPlayer.HIDE_LIGHTBOX_COMPLETE="lightboxHideComplete",FWDEVPlayer.DASH="dash",FWDEVPlayer.HLS_JS="HLS_JS",FWDEVPlayer.LIGHTBOX="lightbox",FWDEVPlayer.RESPONSIVE="responsive",FWDEVPlayer.FULL_SCREEN="fullscreen",FWDEVPlayer.AFTER_PARENT="afterparent",FWDEVPlayer.FRAMEWORK_LOAD="frload;",FWDEVPlayer.FRAMEWORK_DONE="frdone",window.FWDEVPlayer=FWDEVPlayer}(window),function(e){'use strict';var t=function(e,o,s,n,r,a){var d=this,l=t.prototype;d.mainBackgroundColor_str=o,d.holderBackgroundColor_str=s,d.lightBoxBackgroundOpacity=n,d.lightBoxWidth=r,d.lightBoxHeight=a,d.isMobile_bl=FWDEVPUtils.isMobile,d.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,d.closeButtonIsTweening_bl=!0,d.init=function(){d.style().zIndex=9999999,d.setupMainContainers()},d.setupMainContainers=function(){d.isMobile_bl&&d.hasPointerEvent_bl&&(d.style().msTouchAction="none"),d.lightBoxBackground_sdo=new FWDEVPDO("div"),d.lightBoxBackground_sdo.setResizableSizeAfterParent(),d.lightBoxBackground_sdo.setBkColor(d.mainBackgroundColor_str),d.lightBoxBackground_sdo.screen.addEventListener("click",d.closeButtonOnStartHandler),d.addChild(d.lightBoxBackground_sdo),d.mainLightBox_do=new FWDEVPDO("div"),d.mainLightBox_do.setBkColor(d.holderBackgroundColor_str),d.mainLightBox_do.setWidth(1),d.mainLightBox_do.setHeight(1),d.addChild(d.mainLightBox_do),document.documentElement.appendChild(d.screen),d.setX(-1e4),d.setY(-1e4),d.setWidth(0),d.setHeight(0)},d.show=function(){if(!d.isShowed_bl){d.isShowed_bl=!0,d.clsBtn?(d.hideCloseButton(!1),d.showCloseButton(!0),d.clsBtn.setX(-200)):d.loadClsoeButtonImage();var o=FWDEVPUtils.getViewportSize(),s=FWDEVPUtils.getScrollOffsets();d.setWidth(o.w),d.setHeight(o.h),d.setX(s.x),d.setY(s.y),d.lightBoxBackground_sdo.setAlpha(0),FWDAnimation.to(d.lightBoxBackground_sdo,.8,{alpha:d.lightBoxBackgroundOpacity}),d.setX(s.x),d.setY(s.y),d.mainLightBox_do.setX(parseInt(o.w/2)),d.mainLightBox_do.setY(parseInt(o.h/2)),d.lightBoxWidth>o.w?(d.finalLightBoxWidth=o.w,d.finalLightBoxHeight=parseInt(d.lightBoxHeight*(o.w/d.lightBoxWidth))):(d.finalLightBoxWidth=d.lightBoxWidth,d.finalLightBoxHeight=d.lightBoxHeight),FWDAnimation.to(d.mainLightBox_do,.8,{w:d.finalLightBoxWidth,h:d.finalLightBoxHeight,x:parseInt((o.w-d.finalLightBoxWidth)/2),y:parseInt((o.h-d.finalLightBoxHeight)/2),delay:.4,onComplete:d.showComplete,ease:Expo.easeInOut}),e.stageContainer=d.mainLightBox_do.screen,e.main_do&&(e.main_do.setX(-5e3),!e.stageContainer.contains(e.main_do.screen)&&e.stageContainer.appendChild(e.main_do.screen)),d.dispatchEvent(t.SHOW)}},d.showComplete=function(){d.clsBtn.addListener(FWDEVPSimpleButton.MOUSE_UP,d.closeButtonOnStartHandler),d.addKeyboardSupport(),e.startResizeHandler(),d.showComplete_bl=!0,e._d.autoPlay_bl&&e.play()},d.addKeyboardSupport=function(){document.addEventListener("keydown",d.onKeyDownHandler)},d.onKeyDownHandler=function(t){27==t.keyCode&&d.closeButtonOnStartHandler()},d.loadClsoeButtonImage=function(){d.closeN_img=new Image,d.closeN_img.onload=d.setupCloseButton,d.closeN_img.src=e.mainFolderPath_str+e.sknPth+"embed-close-button.png",d.closeSPath_str=e.mainFolderPath_str+e.sknPth+"embed-close-button-over.png"},d.setupCloseButton=function(){var e=FWDEVPUtils.getViewportSize();FWDEVPSimpleButton.setPrototype(),d.clsBtn=new FWDEVPSimpleButton(d.closeN_img,d.closeSPath_str,void 0,!0),d.hideCloseButton(!1),d.showCloseButton(!0),d.clsBtn.setX(e.w-d.clsBtn.w-15),d.clsBtn.setY(-15),d.addChild(d.clsBtn)},d.showCloseButtonComplete=function(){d.closeButtonIsTweening_bl=!1},d.hideCloseButton=function(e){FWDAnimation.killTweensOf(d.clsBtn),e?FWDAnimation.to(d.clsBtn,.9,{alpha:0}):d.clsBtn.setAlpha(0)},d.showCloseButton=function(e){FWDAnimation.killTweensOf(d.clsBtn),e?FWDAnimation.to(d.clsBtn,.9,{alpha:1,delay:.8}):d.clsBtn.setAlpha(1)},d.mouseDummyHandler=function(t){return!!t.preventDefault&&void t.preventDefault()},d.closeButtonOnStartHandler=function(){if(d.isShowed_bl&&d.showComplete_bl){d.isShowed_bl=!1;var o=FWDEVPUtils.getViewportSize();d.clsBtn.removeListener(FWDEVPSimpleButton.MOUSE_UP,d.closeButtonOnStartHandler),FWDAnimation.to(d.clsBtn,.9,{alpha:0}),FWDAnimation.to(d.mainLightBox_do,.8,{w:0,h:0,x:parseInt(o.w/2),y:parseInt(o.h/2),delay:.4,ease:Expo.easeInOut}),FWDAnimation.to(d.lightBoxBackground_sdo,.8,{alpha:0,delay:.8}),FWDAnimation.to(e.main_do,.8,{x:-e.main_do.w/2,y:-e.main_do.h/2,ease:Expo.easeInOut,delay:.4}),d.lighboxAnimDoneId_to=setTimeout(d.lighboxHideAnimationDone,1600),d.dispatchEvent(t.CLOSE)}},d.lighboxHideAnimationDone=function(){d.setX(-1e4),d.setY(-1e4),d.setWidth(0),d.setHeight(0),d.dispatchEvent(t.HIDE_COMPLETE)},d.init()};t.setPrototype=function(){t.prototype=new FWDEVPDO("div")},t.CLOSE="ligtBoxClose",t.SHOW="show",t.HIDE_COMPLETE="hideComplete",t.prototype=null,e.FWDEVPLightBox=t}(window),function(e){var t=function(o,s,n,r){'use strict';var a=this,d=t.prototype;a.position_str=n,a.source_str=s,a.logoLink_str=o._d.logoLink_str,a.margins=r,a.isShowed_bl=!0,a.allowToShow_bl=!0,a.init=function(){"none"==a.logoLink_str?a.style().pointerEvents="none":(a.setButtonMode(!0),a.screen.onclick=function(){e.open(a.logoLink_str,"_blank")}),a.logoImage_do=new FWDEVPDO("img"),a.img_img=new Image,a.img_img.onerror=null,a.img_img.onload=a.loadDone,a.img_img.src=a.source_str+"?"+new Date().getTime(),a.hide()},a.loadDone=function(){a.setWidth(a.img_img.width),a.setHeight(a.img_img.height),a.logoImage_do.setScreen(a.img_img),a.addChild(a.logoImage_do),a.logoImage_do.setWidth(a.img_img.width),a.logoImage_do.setHeight(a.img_img.height),a.positionAndResize()},a.positionAndResize=function(){"topleft"==a.position_str?(a.finalX=a.margins,a.finalY=a.margins):"topright"==a.position_str?(a.finalX=o.sW-a.w-a.margins,a.finalY=a.margins):"bottomright"==a.position_str?(a.finalX=o.sW-a.w-a.margins,a.finalY=o.sH-a.h-a.margins):"bottomleft"==a.position_str&&(a.finalX=a.margins,a.finalY=o.sH-a.h-a.margins),a.setX(a.finalX),a.setY(a.finalY)},a.show=function(e){a.isShowed_bl||(a.isShowed_bl=!0,a.setVisible(!0),FWDAnimation.killTweensOf(a),e?FWDAnimation.to(a,.8,{alpha:1,ease:Expo.easeInOut}):a.setAlpha(1))},a.hide=function(e,t){(a.isShowed_bl||t)&&(a.isShowed_bl=!1,FWDAnimation.killTweensOf(a),e?FWDAnimation.to(a,.8,{alpha:0,ease:Expo.easeInOut,onComplete:function(){a.setVisible(!1)}}):(a.setAlpha(0),a.setVisible(!1)))},a.init()};t.setPrototype=function(){t.prototype=new FWDEVPDO("div")},t.prototype=null,e.FWDEVPLogo=t}(window),function(){var t=function(e,o,s,n){'use strict';var r=this;r.animation_img=o.openerAnimation_img,s==FWDEVPlayer.POSITION_TOP?(r.openN_img=o.openTopN_img,r.openSPath_str=o.openTopSPath_str):(r.openN_img=o.openBottomN_img,r.openSPath_str=o.openBottomSPath_str),r.openerPauseN_img=o.openerPauseN_img,r.openerPlayN_img=o.openerPlayN_img,r.closeN_img=o.closeN_img,r.useHEX=o.useHEX,r.nBC=o.nBC,r.sBC=o.sBC,r.openerPauseS_str=o.openerPauseS_str,r.openerPlaySPath_str=o.openerPlayS_str,r.closeSPath_str=o.closeSPath_str,r.animationPath_img=o.animationPath_img,r.totalWidth=r.openN_img.width,r.totalHeight=r.openN_img.height,r.position_str=s,r.alignment_str=o.openerAlignment_str,r.openerEqulizerOffsetLeft=o.openerEqulizerOffsetLeft,r.openerEqulizerOffsetTop=o.openerEqulizerOffsetTop,r.showFirstTime_bl=!0,r.playerIsShowed_bl=n,r.showOpenerPlayPauseButton_bl=o.showOpenerPlayPauseButton_bl,r.isMobile_bl=FWDEVPUtils.isMobile,r.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,r.init=function(){r.sBC=-1==o.sknPth.indexOf("hex_white")?o.sBC:"#FFFFFF",r.hasT3D=!1,r.hasT2D=!1,r.setBackfaceVisibility(),r.style().msTouchAction="none",r.style().webkitTapHighlightColor="rgba(0, 0, 0, 0)",r.setupStuff(),r.showOpenerPlayPauseButton_bl&&r.setupPlayPauseButton(),r.playerIsShowed_bl&&r.showCloseButton(),r.showOpenerPlayPauseButton_bl?r.setWidth(r.totalWidth+r.openerPauseN_img.width+1):r.setWidth(r.totalWidth),r.setHeight(r.totalHeight)},r.setupStuff=function(){r.mainHolder_do=new FWDEVPDO("div"),r.mainHolder_do.hasT3D=!1,r.mainHolder_do.hasT2D=!1,r.mainHolder_do.setBackfaceVisibility(),r.showOpenerPlayPauseButton_bl?r.mainHolder_do.setWidth(r.totalWidth+r.openerPauseN_img.width+1):r.mainHolder_do.setWidth(r.totalWidth),r.mainHolder_do.setHeight(r.totalHeight),r.useHEX?(r.openN_do=new FWDEVPDO("div"),r.openN_canvas=FWDEVPUtils.getCanvasWithModifiedColor(r.openN_img,r.nBC).canvas,r.openN_do.screen.appendChild(r.openN_canvas)):(r.openN_do=new FWDEVPDO("img"),r.openN_do.setScreen(r.openN_img)),r.openN_do.setWidth(r.openN_img.width),r.openN_do.setHeight(r.openN_img.height),r.openS_img=new Image,r.openS_img.src=r.openSPath_str,r.useHEX?(r.openS_do=new FWDEVPDO("div"),r.openS_img.onload=function(){r.openS_canvas=FWDEVPUtils.getCanvasWithModifiedColor(r.openS_img,r.sBC).canvas,r.openS_do.setWidth(r.openS_img.width),r.openS_do.setHeight(r.openS_img.height),r.openS_do.screen.appendChild(r.openS_canvas)}):(r.openS_do=new FWDEVPDO("img"),r.openS_do.setScreen(r.openS_img)),r.openS_do.setWidth(r.openN_do.w),r.openS_do.setHeight(r.openN_do.h),r.openS_do.setAlpha(0),r.useHEX?(r.closeN_do=new FWDEVPDO("div"),r.closeN_canvas=FWDEVPUtils.getCanvasWithModifiedColor(r.closeN_img,r.nBC).canvas,r.closeN_do.screen.appendChild(r.closeN_canvas)):(r.closeN_do=new FWDEVPDO("img"),r.closeN_do.setScreen(r.closeN_img)),r.closeN_do.setWidth(r.closeN_img.width),r.closeN_do.setHeight(r.closeN_img.height),r.closeN_do.hasT3D=!1,r.closeN_do.hasT2D=!1,r.closeN_do.setBackfaceVisibility(),r.closeS_img=new Image,r.closeS_img.src=r.closeSPath_str,r.useHEX?(r.closeS_do=new FWDEVPDO("div"),r.closeS_img.onload=function(){r.closeS_canvas=FWDEVPUtils.getCanvasWithModifiedColor(r.closeS_img,r.sBC).canvas,r.closeS_do.setWidth(r.closeN_img.width),r.closeS_do.setHeight(r.closeN_img.height),r.closeS_do.screen.appendChild(r.closeS_canvas)}):(r.closeS_do=new FWDEVPDO("img"),r.closeS_do.setScreen(r.closeS_img)),r.closeS_do.setWidth(r.closeN_img.width),r.closeS_do.setHeight(r.closeN_img.height),r.closeS_do.setAlpha(0),r.closeS_do.hasT3D=!1,r.closeS_do.hasT2D=!1,FWDEVPPreloader2.setPrototype(),r.animation_do=new FWDEVPPreloader2(r.animationPath_img,29,22,31,80,!0),r.animation_do.setY(r.openerEqulizerOffsetTop),r.animation_do.show(!1),r.animation_do.stop(),r.dumy_do=new FWDEVPDO("div"),r.dumy_do.setWidth(r.totalWidth),r.dumy_do.setHeight(r.totalHeight),r.dumy_do.style().zIndex=2,r.dumy_do.hasT3D=!1,r.dumy_do.hasT2D=!1,r.dumy_do.setBackfaceVisibility(),r.dumy_do.setButtonMode(!0),(FWDEVPUtils.isIE||FWDEVPUtils.isAndroid)&&(r.dumy_do.setBkColor("#FF0000"),r.dumy_do.setAlpha(.01)),r.hasPointerEvent_bl?(r.mainHolder_do.screen.addEventListener("pointerup",r.onMouseUp),r.mainHolder_do.screen.addEventListener("pointerover",r.onMouseOver),r.mainHolder_do.screen.addEventListener("pointerout",r.onMouseOut)):r.screen.addEventListener&&(!r.isMobile_bl&&(r.mainHolder_do.screen.addEventListener("mouseover",r.onMouseOver),r.mainHolder_do.screen.addEventListener("mouseout",r.onMouseOut),r.mainHolder_do.screen.addEventListener("mouseup",r.onMouseUp)),r.screen.addEventListener("touchend",r.onMouseUp)),r.mainHolder_do.addChild(r.openN_do),r.mainHolder_do.addChild(r.openS_do),r.mainHolder_do.addChild(r.closeN_do),r.mainHolder_do.addChild(r.closeS_do),r.mainHolder_do.addChild(r.animation_do),r.mainHolder_do.addChild(r.dumy_do),r.addChild(r.mainHolder_do)},r.onMouseOver=function(t){t.pointerType&&t.pointerType!=t.MSPOINTER_TYPE_MOUSE&&"mouse"!=t.pointerType||r.setSelectedState()},r.onMouseOut=function(t){t.pointerType&&t.pointerType!=t.MSPOINTER_TYPE_MOUSE&&"mouse"!=t.pointerType||r.setNormalState()},r.onMouseUp=function(o){o.preventDefault&&o.preventDefault(),r.playerIsShowed_bl?(r.playerIsShowed_bl=!1,r.dispatchEvent(t.HIDE)):(r.playerIsShowed_bl=!0,r.dispatchEvent(t.SHOW))},r.setupPlayPauseButton=function(){FWDEVPComplexButton.setPrototype(),r.playPauseButton_do=new FWDEVPComplexButton(r.openerPlayN_img,r.openerPlaySPath_str,r.openerPauseN_img,r.openerPauseS_str,!0,r.useHEX,r.nBC,r.sBC),r.playPauseButton_do.addListener(FWDEVPComplexButton.MOUSE_UP,r.playButtonMouseUpHandler),r.addChild(r.playPauseButton_do)},r.showPlayButton=function(){r.playPauseButton_do&&r.playPauseButton_do.setButtonState(1),r.animation_do.stop()},r.showPauseButton=function(){r.playPauseButton_do&&r.playPauseButton_do.setButtonState(0),r.animation_do.start(0)},r.playButtonMouseUpHandler=function(){0==r.playPauseButton_do.currentState?r.dispatchEvent(FWDEVPController.PAUSE):r.dispatchEvent(FWDEVPController.PLAY)},r.setNormalState=function(){r.isMobile_bl&&!r.hasPointerEvent_bl||(FWDAnimation.killTweensOf(r.openS_do),FWDAnimation.killTweensOf(r.closeS_do),FWDAnimation.to(r.openS_do,.5,{alpha:0,ease:Expo.easeOut}),FWDAnimation.to(r.closeS_do,.5,{alpha:0,ease:Expo.easeOut}))},r.setSelectedState=function(){FWDAnimation.killTweensOf(r.openS_do),FWDAnimation.killTweensOf(r.closeS_do),FWDAnimation.to(r.openS_do,.5,{alpha:1,ease:Expo.easeOut}),FWDAnimation.to(r.closeS_do,.5,{alpha:1,ease:Expo.easeOut})},r.showOpenButton=function(){r.playerIsShowed_bl=!1,r.closeN_do.setX(150),r.closeS_do.setX(150),r.playPauseButton_do?"right"==r.alignment_str?(r.playPauseButton_do.setX(0),r.openN_do.setX(r.playPauseButton_do.w+1),r.openS_do.setX(r.playPauseButton_do.w+1),r.dumy_do.setX(r.playPauseButton_do.w+1),r.dumy_do.setWidth(r.totalWidth),r.animation_do.setX(r.playPauseButton_do.w+1+r.openerEqulizerOffsetLeft)):(r.playPauseButton_do.setX(r.openN_do.w+1),r.openN_do.setX(0),r.openS_do.setX(0),r.dumy_do.setX(0),r.dumy_do.setWidth(r.totalWidth),r.animation_do.setX(r.openerEqulizerOffsetLeft)):(r.openN_do.setX(0),r.openS_do.setX(0),r.dumy_do.setX(0),r.dumy_do.setWidth(r.totalWidth),r.animation_do.setX(r.openerEqulizerOffsetLeft)),r.animation_do.setVisible(!0)},r.showCloseButton=function(){r.playerIsShowed_bl=!0,r.openN_do.setX(150),r.openS_do.setX(150),r.dumy_do.setWidth(r.closeN_do.w),"right"==r.alignment_str?r.playPauseButton_do?(r.closeN_do.setX(r.totalWidth+1),r.closeS_do.setX(r.totalWidth+1),r.dumy_do.setX(r.totalWidth+1)):(r.closeN_do.setX(r.totalWidth-r.closeN_do.w),r.closeS_do.setX(r.totalWidth-r.closeN_do.w),r.dumy_do.setX(r.totalWidth-r.closeN_do.w)):(r.closeN_do.setX(0),r.closeS_do.setX(0),r.dumy_do.setX(0)),r.playPauseButton_do&&r.playPauseButton_do.setX(150),r.animation_do.setX(150),r.animation_do.setVisible(!1)},r.hide=function(){r.mainHolder_do.setX(150)},r.show=function(){r.mainHolder_do.setX(0)},r.updateHEXColors=function(e,t){r.nBC=e,r.sBC=t,r.playPauseButton_do.updateHEXColors(e,t),FWDEVPUtils.changeCanvasHEXColor(r.openN_img,r.openN_canvas,e),FWDEVPUtils.changeCanvasHEXColor(r.closeN_img,r.closeN_canvas,e),FWDEVPUtils.changeCanvasHEXColor(r.openS_img,r.openS_canvas,t),FWDEVPUtils.changeCanvasHEXColor(r.closeS_img,r.closeS_canvas,t)},r.init()};t.setPrototype=function(){t.prototype=new FWDEVPDO("div")},t.SHOW="show",t.HIDE="hise",t.PLAY="play",t.PAUSE="pause",t.prototype=null,window.FWDEVPOpener=t}(window),function(e){var t=function(e,o){'use strict';var s=this,n=t.prototype;s.buttons_ar=[],s.maxWidth=e.aopwWidth,s.maxHeight=e.aopwHeight+e.popwColseN_img.height+1,s.sW=0,s.sH=0,s.aopwSource=e.aopwSource,s.aopwTitle=e.aopwTitle,s.aopwTitleColor_str=e.aopwTitleColor_str,s.aopwBorderSize=e.aopwBorderSize,s.isShowed_bl=!1,s.isMobile_bl=FWDEVPUtils.isMobile,s.init=function(){s.setBackfaceVisibility(),s.mainBar_do=new FWDEVPDO("div"),s.bar_do=new FWDEVPDO("div"),s.bar_do.style().background="url('"+e.popwBarBackgroundPath_str+"')",s.adHolder_do=new FWDEVPDO("div"),s.adBk_do=new FWDEVPDO("div"),s.adBk_do.style().background="url('"+e.popwWindowBackgroundPath_str+"')",FWDEVPSimpleButton.setPrototype(),s.closeButton_do=new FWDEVPSimpleButton(e.popwColseN_img,e.popwColseSPath_str,void 0,!0,e.useHEX,e.nBC,e.sBC),s.closeButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,s.closeButtonOnMouseUpHandler),s.title_do=new FWDEVPDO("div"),s.title_do.style().width="100%",s.title_do.style().textAlign="left",s.title_do.style().fontFamily="Arial",s.title_do.style().fontSize="14px",s.title_do.style().fontWeight="100",s.title_do.style().color=s.aopwTitleColor_str,s.title_do.setInnerHTML(s.aopwTitle),s.bar_do.addChild(s.title_do),s.addChild(s.adBk_do),s.mainBar_do.addChild(s.bar_do),s.mainBar_do.addChild(s.closeButton_do),s.mainBar_do.setHeight(s.closeButton_do.h),s.addChild(s.mainBar_do),s.addChild(s.adHolder_do),s.bar_do.setHeight(s.mainBar_do.h)},s.closeButtonOnMouseUpHandler=function(){s.isShowed_bl&&(s.hide(),o.play())},s.positionAndResize=function(){s.sW=Math.min(o.sW,s.maxWidth),s.sH=Math.min(o.sH,s.maxHeight);var e=1,t=o.sW/s.maxWidth,n=o.sH/s.maxHeight;t<n?e=t:t>n&&(e=n),1<e&&(e=1),s.sW=e*s.maxWidth,s.sH=e*s.maxHeight,s.setWidth(s.sW),s.setHeight(s.sH),s.setHeight(s.sH),s.setX(Math.round((o.sW-s.sW)/2)),s.setY(Math.round((o.sH-s.sH)/2)),s.mainBar_do.setWidth(s.sW),s.closeButton_do.setX(s.sW-s.closeButton_do.w),s.bar_do.setWidth(s.sW-s.closeButton_do.w-1),s.adBk_do.setWidth(s.sW),s.adBk_do.setHeight(s.sH-s.mainBar_do.h-1),s.adBk_do.setY(s.mainBar_do.h+1),s.adHolder_do.setWidth(s.sW-2*s.aopwBorderSize),s.adHolder_do.setX(s.aopwBorderSize),s.adHolder_do.setY(s.mainBar_do.h+s.aopwBorderSize+1),s.adHolder_do.setHeight(s.sH-s.mainBar_do.h-2*s.aopwBorderSize-1)},s.show=function(){s.isShowed_bl||(s.isShowed_bl=!0,o.main_do.addChild(s),s.adHolder_do.setInnerHTML("<iframe width='100%' height='100%' scrolling='no' frameBorder='0' src="+s.aopwSource+"></iframe>"),s.positionAndResize(),s.title_do.setX(8),s.title_do.setY(Math.round((s.bar_do.h-s.title_do.getHeight())/2)))},s.showCompleteHandler=function(){},s.hide=function(){s.isShowed_bl&&(s.isShowed_bl=!1,o.main_do.contains(s)&&o.main_do.removeChild(s))},s.hideCompleteHandler=function(){o.main_do.removeChild(s),s.dispatchEvent(t.HIDE_COMPLETE)},s.updateHEXColors=function(e,t){s.closeButton_do.updateHEXColors(e,t)},s.init()};t.setPrototype=function(){t.prototype=new FWDEVPDO("div")},t.HIDE_COMPLETE="hideComplete",t.prototype=null,e.FWDEVPOPWindow=t}(window),function(e){var t=function(e,o,s){'use strict';var n=this,r=t.prototype;n.passColoseN_img=e.passColoseN_img,n.embedWindowBackground_str=e.embedWindowBackground_str,n.secondaryLabelsColor_str=e.secondaryLabelsColor_str,n.inputColor_str=e.inputColor_str,n.mainLabelsColor_str=e.mainLabelsColor_str,n.passButtonNPath_str=e.passButtonNPath_str,n.passButtonSPath_str=e.passButtonSPath_str,n.inputBackgroundColor_str=e.inputBackgroundColor_str,n.borderColor_str=e.borderColor_str,n.maxTextWidth=0,n.totalWidth=0,n.sW=0,n.sH=0,n.buttonWidth=28,n.buttonHeight=19,n.embedWindowCloseButtonMargins=e.embedWindowCloseButtonMargins,n.useVectorIcons_bl=e.useVectorIcons_bl,n.isShowed_bl=!1,n.isMobile_bl=FWDEVPUtils.isMobile,n.init=function(){if(!n.clsBtn){if(n.setBackfaceVisibility(),n.mainHld=new FWDEVPDO("div"),n.mainHld.hasT3D=!1,n.mainHld.hasT2D=!1,n.mainHld.setBackfaceVisibility(),n.bk_do=new FWDEVPDO("div"),n.bk_do.style().width="100%",n.bk_do.style().height="100%",n.bk_do.setAlpha(.9),n.bk_do.style().background="url('"+n.embedWindowBackground_str+"')",n.passMainHolder_do=new FWDEVPDO("div"),n.passMainHolderBk_do=new FWDEVPDO("div"),n.passMainHolderBk_do.style().background="url('"+n.embedWindowBackground_str+"')",n.passMainHolderBk_do.style().borderStyle="solid",n.passMainHolderBk_do.style().borderWidth="1px",n.passMainHolderBk_do.style().borderColor=n.borderColor_str,n.passMainLabel_do=new FWDEVPDO("div"),n.passMainLabel_do.setBackfaceVisibility(),n.passMainLabel_do.screen.className="fwdevp-password-title",n.passMainLabel_do.style().fontFamily="Arial",n.passMainLabel_do.style().fontSize="12px",n.passMainLabel_do.style().color=n.mainLabelsColor_str,n.passMainLabel_do.style().whiteSpace="nowrap",n.passMainLabel_do.style().padding="0px",n.passMainLabel_do.setInnerHTML("PRIVATE VIDEO"),n.passLabel_do=new FWDEVPDO("div"),n.passLabel_do.setBackfaceVisibility(),n.passLabel_do.screen.className="fwdevp-password-label",n.passLabel_do.style().fontFamily="Arial",n.passLabel_do.style().fontSize="12px",n.passLabel_do.style().color=n.secondaryLabelsColor_str,n.passLabel_do.style().whiteSpace="nowrap",n.passLabel_do.style().padding="0px",n.passLabel_do.setInnerHTML("Please enter password:"),n.passInput_do=new FWDEVPDO("input"),n.passInput_do.screen.className="fwdevp-password-input",n.passInput_do.setBackfaceVisibility(),n.passInput_do.style().fontFamily="Arial",n.passInput_do.style().fontSize="12px",n.passInput_do.style().backgroundColor=n.inputBackgroundColor_str,n.passInput_do.style().color=n.inputColor_str,n.passInput_do.style().outline=0,n.passInput_do.style().whiteSpace="nowrap",n.passInput_do.style().padding="6px",n.passInput_do.style().paddingTop="4px",n.passInput_do.style().paddingBottom="4px",n.passInput_do.screen.setAttribute("type","password"),!s){if(FWDEVPSimpleSizeButton.setPrototype(),n.passButton_do=new FWDEVPSimpleSizeButton(n.passButtonNPath_str,n.passButtonSPath_str,n.buttonWidth,n.buttonHeight,e.useHEX,e.nBC,e.sBC),n.passButton_do.addListener(FWDEVPSimpleSizeButton.CLICK,n.passClickHandler),FWDEVPSimpleButton.setPrototype(),n.useVectorIcons_bl){FWDEVPUtils.smpBtnNPos();var t=o.fontIcon+" "+o.fontIcon+"-close";n.clsBtn=new FWDEVPSimpleButton(0,0,0,!0,0,0,0,"<div class='table-fwdevp-button'><span class='table-cell-fwdevp-button "+t+"'></span></div>",void 0,"EVPCloseButtonNormalState","EVPCloseButtonSelectedState"),n.clsBtn.addListener(FWDEVPSimpleButton.MOUSE_UP,n.closeButtonOnMouseUpHandler),n.mainHld.addChild(n.clsBtn)}else n.clsBtn=new FWDEVPSimpleButton(n.passColoseN_img,e.embedWindowClosePathS_str,void 0,!0,e.useHEX,e.nBC,e.sBC);n.clsBtn.screen.className="fwdevp-close-button",n.clsBtn.addListener(FWDEVPSimpleButton.MOUSE_UP,n.closeButtonOnMouseUpHandler),n.addChild(n.mainHld),n.mainHld.addChild(n.bk_do),n.passMainHolder_do.addChild(n.passMainHolderBk_do),n.passMainHolder_do.addChild(n.passMainLabel_do),n.passMainHolder_do.addChild(n.passLabel_do),n.passMainHolder_do.addChild(n.passInput_do),n.passMainHolder_do.addChild(n.passButton_do),n.mainHld.addChild(n.passMainHolder_do),n.mainHld.addChild(n.clsBtn)}else{n.addChild(n.mainHld),n.mainHld.addChild(n.bk_do),n.mainHld.addChild(n.passLabel_do),n.passLabel_do.style().whiteSpace="normal",n.passLabel_do.style().width="calc(100% - 40px)",n.passLabel_do.style().textAlign="center",n.passLabel_do.setInnerHTML(e.loggedInMessage_str);var r="fwdevp-loggedin-message-white";if(e.isDark&&(r="fwdevp-loggedin-message-dark"),n.passLabel_do.screen.className=r,FWDEVPSimpleButton.setPrototype(),n.useVectorIcons_bl){FWDEVPUtils.smpBtnNPos();var t="fwdicon-close";n.clsBtn=new FWDEVPSimpleButton(0,0,0,!0,0,0,0,"<div class='table-fwdevp-button'><span class='table-cell-fwdevp-button "+t+"'></span></div>",void 0,"EVPCloseButtonNormalState","EVPCloseButtonSelectedState"),n.clsBtn.screen.className="fwdevp-close-button",n.clsBtn.addListener(FWDEVPSimpleButton.MOUSE_UP,n.closeButtonOnMouseUpHandler),n.mainHld.addChild(n.clsBtn)}else{var a=new Image;a.src=n.passColoseN_img.src,a.onload=function(){FWDEVPSimpleButton.setPrototype(),n.clsBtn=new FWDEVPSimpleButton(a,e.embedWindowClosePathS_str,void 0,!0,e.useHEX,e.nBC,e.sBC,!1,!1,!1,!0),n.clsBtn.screen.className="fwdevp-close-button",n.clsBtn.addListener(FWDEVPSimpleButton.MOUSE_UP,n.closeButtonOnMouseUpHandler),n.mainHld.addChild(n.clsBtn),a.onload=null,n.posClsBtn()}}}n.posClsBtn()}},n.closeButtonOnMouseUpHandler=function(){n.isShowed_bl&&n.hide()};n.positionAndResize=function(){n.sW=o.sW,n.sH=o.sH,n.maxTextWidth=Math.min(n.sW-150,300),n.totalWidth=n.maxTextWidth+n.buttonWidth,n.positionFinal(),n.setWidth(n.sW),n.setHeight(n.sH),n.mainHld.setWidth(n.sW),n.mainHld.setHeight(n.sH)},n.posClsBtn=function(){n.clsBtn&&(n.clsBtn.style().left="auto",n.clsBtn.style().right=n.embedWindowCloseButtonMargins+"px",n.clsBtn.style().top=n.embedWindowCloseButtonMargins+"px")},n.positionFinal=function(){var e=n.passLabel_do.getHeight(),t,o;o=n.passMainLabel_do.getHeight(),s?(n.passLabel_do.setX(Math.round((n.sW-n.passLabel_do.getWidth())/2)),n.passLabel_do.setY(Math.round((n.sH-n.passLabel_do.getHeight())/2))):(n.passMainLabel_do.setX(14),n.passLabel_do.setX(14),n.passLabel_do.setY(o+14),n.passInput_do.setX(10),n.passInput_do.setWidth(parseInt(n.totalWidth-40-n.buttonWidth)),n.passInput_do.setY(n.passLabel_do.y+e+5),n.passButton_do.setX(10+n.passInput_do.w+20),n.passButton_do.setY(n.passLabel_do.y+e+7),n.passMainHolderBk_do.setY(n.passLabel_do.y-9),n.passMainHolderBk_do.setWidth(n.totalWidth-2),n.passMainHolderBk_do.setHeight(n.passButton_do.y+n.passButton_do.h-9),n.passMainHolder_do.setWidth(n.totalWidth),n.passMainHolder_do.setHeight(n.passButton_do.y+n.passButton_do.h+14),n.passMainHolder_do.setX(Math.round((n.sW-n.totalWidth)/2)),t=n.passMainHolderBk_do.getHeight(),n.passMainHolder_do.setY(Math.round((n.sH-t)/2)-10))},n.passClickHandler=function(){return e.privateVideoPassword_str==FWDEVPUtils.MD5(n.passInput_do.screen.value)?void n.dispatchEvent(t.CORRECT):void(FWDAnimation.isTweening(n.passInput_do.screen)||FWDAnimation.to(n.passInput_do.screen,.1,{css:{backgroundColor:"#FF0000"},yoyo:!0,repeat:3}))},n.updateHEXColors=function(e,t){n.passButton_do.updateHEXColors(e,t),n.clsBtn.updateHEXColors(e,t)},n.showInfo=function(e,t){n.infoText_do.setInnerHTML(e),n.passMainHolder_do.addChild(n.infoText_do),n.infoText_do.setWidth(n.buttonWidth),n.infoText_do.setHeight(n.buttonHeight-4),n.infoText_do.setX(n.passButton_do.x),n.infoText_do.setY(n.passButton_do.y-23),n.infoText_do.setAlpha(0),n.infoText_do.style().color=t?"#FF0000":n.mainLabelsColor_str,FWDAnimation.killTweensOf(n.infoText_do),FWDAnimation.to(n.infoText_do,.16,{alpha:1,yoyo:!0,repeat:7})},n.show=function(){n.isShowed_bl||(n.isShowed_bl=!0,o.main_do.addChild(n),n.init(),n.passButton_do&&(n.passButton_do.setSelectedState(),n.passInput_do.setInnerHTML("")),(!FWDEVPUtils.isMobile||FWDEVPUtils.isMobile&&FWDEVPUtils.hasPointerEvent)&&o.main_do.setSelectable(!0),n.positionAndResize(),clearTimeout(n.hideCompleteId_to),clearTimeout(n.showCompleteId_to),n.mainHld.setY(-n.sH),n.passButton_do&&n.passButton_do.setNormalState(),n.showCompleteId_to=setTimeout(n.showCompleteHandler,900),setTimeout(function(){n.positionAndResize(),FWDAnimation.to(n.mainHld,.8,{y:0,delay:.1,ease:Expo.easeInOut})},100))},n.showCompleteHandler=function(){},n.hide=function(){n.isShowed_bl&&(n.isShowed_bl=!1,o.customContextMenu_do&&o.customContextMenu_do.enable(),n.positionAndResize(),clearTimeout(n.hideCompleteId_to),clearTimeout(n.showCompleteId_to),(!FWDEVPUtils.isMobile||FWDEVPUtils.isMobile&&FWDEVPUtils.hasPointerEvent)&&o.main_do.setSelectable(!1),n.hideCompleteId_to=setTimeout(n.hideCompleteHandler,800),FWDAnimation.killTweensOf(n.mainHld),FWDAnimation.to(n.mainHld,.8,{y:-n.sH,ease:Expo.easeInOut}))},n.hideCompleteHandler=function(){o.main_do.removeChild(n),n.dispatchEvent(t.HIDE_COMPLETE)},e.useHEX&&n.init()};t.setPrototype=function(){t.prototype=new FWDEVPDO("div")},t.ERROR="error",t.CORRECT="correct",t.HIDE_COMPLETE="hideComplete",t.prototype=null,e.FWDEVPPassword=t}(window),function(){var e=function(t,o,s,n,r,a,d,l,_,u,c,p,b,h,m){'use strict';var g=this,y=e.prototype;g.imageSource=o,g.link=r,g.target=a,g.start=s,g.end=n,g.google_ad_client=l,g.google_ad_slot=_,g.originalW=g.google_ad_width=u,g.originalH=g.google_ad_height=c,g.tracking=p,g.finalW=0,g.finalH=0,g.type=!g.google_ad_client?g.imageSource.match(/.png|.jpg|.jpeg|.gif/ig)?"image":"iframe":"adsense",g.id=d,g.showPopupAdsCloseButton_bl=m,g.popupAddCloseNPath_str=b,g.popupAddCloseSPath_str=h,g.init=function(){g.setBkColor("rgba(0, 0, 0, 0.6)"),g.setX(-5e3),g.showPopupAdsCloseButton_bl&&(FWDEVPSimpleSizeButton.setPrototype(),g.closeButton_do=new FWDEVPSimpleSizeButton(g.popupAddCloseNPath_str,g.popupAddCloseSPath_str,21,21),g.closeButton_do.addListener(FWDEVPSimpleSizeButton.CLICK,g.closeClickButtonCloseHandler)),"image"==g.type?(g.image=new Image,g.image.src=g.imageSource,g.image.onload=g.onLoadHandler):(g.isLoaded_bl=!0,g.setWidth(g.originalW),g.setHeight(g.originalH)),g.closeButton_do&&(g.addChild(g.closeButton_do),g.closeButton_do.setX(-300)),g.link&&g.setButtonMode(!0)},g.closeClickButtonCloseHandler=function(){g.hide(),g.isClosed_bl=!0},g.clickHandler=function(){g.link&&(t.prt.pause(),g.tracking&&t.prt.executeVastEvent(g.tracking),window.open(g.link,g.target))},g.onLoadHandler=function(){g.originalW=g.image.width,g.originalH=g.image.height,g.image_do=new FWDEVPDO("img"),g.image_do.setScreen(g.image),g.image_do.setWidth(g.originalW),g.image_do.setHeight(g.originalH),g.addChild(g.image_do),g.isLoaded_bl=!0,g.closeButton_do&&(g.addChild(g.closeButton_do),g.closeButton_do.setX(-300)),g.image_do.screen.addEventListener("click",g.clickHandler)},g.hide=function(e){if(g.isShowed_bl){g.isShowed_bl=!1;var o=Math.min(1,t.prt.tempVidStageWidth/g.originalW),s=parseInt(o*g.originalH),n=parseInt(t.prt.tempVidStageHeight);t.setY(n),g.setX(-5e3),FWDAnimation.killTweensOf(t),e?(t.removeChild(g),t.setWidth(0),t.setHeight(0)):(g.setWidth(0),g.setHeight(0),t.setVisible(!1),g.setVisible(!1))}},g.show=function(){g.isShowed_bl||g.isClosed_bl||!g.isLoaded_bl||(g.isShowed_bl=!0,g.setX(0),setTimeout(function(){if(FWDAnimation.killTweensOf(t),t.setVisible(!0),g.setVisible(!0),"adsense"==g.type&&!g.isGooglAdCreated_bl){g.isGooglAdCreated_bl=!0,window.google_ad_client=g.google_ad_client,window.google_ad_slot=g.google_ad_slot,window.google_ad_width=g.originalW,window.google_ad_height=g.originalH,g.container=new FWDEVPDO("div",0,0,!0),g.container.setWidth(g.originalW),g.container.setHeight(g.originalH),g.addChild(g.container);var e=document.write;document.write=function(t){g.container.screen.innerHTML=t,document.write=e};var o=document.createElement("script");o.type="text/javascript",o.src=-1==location.href.indexOf("https")?"http://pagead2.googlesyndication.com/pagead/show_ads.js":"https://pagead2.googlesyndication.com/pagead/show_ads.js",document.body.appendChild(o),g.closeButton_do&&(g.addChild(g.closeButton_do),g.closeButton_do.setX(-300))}else"iframe"==g.type&&(g.container=new FWDEVPDO("div",0,0,!0),g.container.setWidth(g.originalW),g.container.setHeight(g.originalH),g.ifr=new FWDEVPDO("iframe",0,0,!0),g.ifr.screen.scrolling="no",g.ifr.setWidth(g.originalW),g.ifr.setHeight(g.originalH),g.ifr.screen.src=g.imageSource,g.container.addChild(g.ifr),g.link&&(g.clicker=new FWDEVPDO("div"),g.clicker.screen.style.width="100%",g.clicker.screen.style.height="100%",g.container.addChild(g.clicker),g.container.addChild(g.clicker),g.container.screen.addEventListener("click",g.clickHandler)),g.addChild(g.container),g.closeButton_do&&(g.addChild(g.closeButton_do),g.closeButton_do.setX(-300)));var s=Math.min(1,t.prt.tempVidStageWidth/g.originalW),n=parseInt(s*g.originalH)-2;if(t.prt.controller_do.isShowed_bl)var r=parseInt(t.prt.tempVidStageHeight-t.prt.controller_do.h-g.originalH*s+2+n);else var r=parseInt(t.prt.tempVidStageHeight-g.originalH*s+2+n);t.setY(r),g.resizeAndPosition(!0)},100))},g.resizeAndPosition=function(e){if(g.isLoaded_bl&&!g.isClosed_bl&&g.isShowed_bl){var o=!FWDEVPUtils.isIEAndLessThen9,s=1,n;s=Math.min(1,t.prt.tempVidStageWidth/g.originalW),g.finalW=parseInt(s*g.originalW),g.finalH=parseInt(s*g.originalH),g.finalW==g.prevFinalW&&g.finalH==g.prevFinalH||(g.setWidth(g.finalW),g.setHeight(g.finalH),"image"==g.type?(g.image_do.setWidth(g.finalW),g.image_do.setHeight(g.finalH)):g.container&&(g.container.setScale2(s),g.container.setX((g.finalW-g.originalW)/2),g.container.setY((g.finalH-g.originalH)/2)),n=t.prt.controller_do?t.prt.controller_do.isShowed_bl?parseInt(t.prt.tempVidStageHeight-t.prt.controller_do.h-g.originalH*s-10):parseInt(t.prt.tempVidStageHeight-g.originalH*s-10):parseInt(t.prt.tempVidStageHeight-g.originalH*s),t.setX(parseInt((t.prt.tempVidStageWidth-g.finalW)/2)),FWDAnimation.killTweensOf(t),e?FWDAnimation.to(t,.8,{y:n,ease:Expo.easeInOut}):t.setY(n),g.closeButton_do&&(g.closeButton_do.setY(2),g.closeButton_do.setX(parseInt(g.finalW-21-2))),g.prevFinalW=g.finalW,g.prevFinallH=g.finalH,t.setWidth(g.finalW),t.setHeight(g.finalH))}},g.init()};e.setPrototype=function(){e.prototype=new FWDEVPDO("div","absolute","visible")},e.MOUSE_OVER="onMouseOver",e.MOUSE_OUT="onMouseOut",e.CLICK="onClick",e.prototype=null,window.FWDEVPPopupAddButton=e}(window),function(e){var t=function(e,o){'use strict';var s=this,n=t.prototype;s.prt=e,s.totalAds=0,s.isMobile_bl=FWDEVPUtils.isMobile,s.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,s.showSubtitleByDefault_bl=o.showSubtitleByDefault_bl,s.setSizeOnce_bl=!1,s.init=function(){s.setOverflow("visible"),s.style().cursor="default",s.setVisible(!1)},s.resetPopups=function(e){if(e!==s.popupAds_ar&&e){s.hideAllPopupButtons(!0),s.popupAds_ar=e,s.totalAds=s.popupAds_ar.length;var t;s.popupAdsButtons_ar=[];for(var n=0;n<s.totalAds;n++)FWDEVPPopupAddButton.setPrototype(),t=new FWDEVPPopupAddButton(s,s.popupAds_ar[n].imagePath,s.popupAds_ar[n].timeStart,s.popupAds_ar[n].timeEnd,s.popupAds_ar[n].link,s.popupAds_ar[n].trget,n,s.popupAds_ar[n].google_ad_client,s.popupAds_ar[n].google_ad_slot,s.popupAds_ar[n].google_ad_width,s.popupAds_ar[n].google_ad_height,s.popupAds_ar[n].tracking,o.popupAddCloseNPath_str,o.popupAddCloseSPath_str,o.showPopupAdsCloseButton_bl),s.popupAdsButtons_ar[n]=t,s.addChild(t)}},s.update=function(e){if(0!=s.totalAds&&e)for(var t=0,o;t<s.totalAds;t++)o=s.popupAdsButtons_ar[t],e>=o.start&&e<=o.end?o.show():o.hide()},s.position=function(e){if(0!=s.totalAds)for(var t=0,o;t<s.totalAds;t++)o=s.popupAdsButtons_ar[t],o.resizeAndPosition(e)},s.hideAllPopupButtons=function(e){if(0!=s.totalAds){for(var t=0,o;t<s.totalAds;t++)o=s.popupAdsButtons_ar[t],o.hide(e);e&&(s.popupAdsButtons_ar=null,s.totalAds=0)}},s.init()};t.setPrototype=function(){t.prototype=new FWDEVPDO("div")},t.LOAD_ERROR="error",t.LOAD_COMPLETE="complete",t.prototype=null,e.FWDEVPPopupAds=t}(window),function(e){var t=function(e,o,s,n){'use strict';var r=this,a=t.prototype;r.img_img=new Image,r.imgW=0,r.imgH=0,r.finalW=0,r.finalH=0,r.finalX=0,r.finalY=0,r.curPath,r.backgroundColor_str=o,r.fillEntireScreenWithPoster_bl=n,r.showPoster_bl=s,r.isShowed_bl=!0,r.allowToShow_bl=!0,r.isMobile_bl=FWDEVPUtils.isMobile,r.init=function(){r.pHld_do=new FWDEVPDO("div"),r.pHld_do.setOverflow("visible"),r.addChild(r.pHld_do),r.hide(),r.setBkColor(r.backgroundColor_str)},r.positionAndResize=function(){if(e.sW&&(r.setWidth(e.sW),r.setHeight(e.sH),!!r.imgW)){var t=e.sW/r.imgW,o=e.sH/r.imgH,s;s=r.fillEntireScreenWithPoster_bl?t>=o?t:o:t<=o?t:o,r.finalW=Math.round(s*r.imgW),r.finalH=Math.round(s*r.imgH),r.finalX=parseInt((e.sW-r.finalW)/2),r.finalY=parseInt((e.sH-r.finalH)/2),r.img_do.setX(r.finalX),r.img_do.setY(r.finalY),r.img_do.setWidth(r.finalW),r.img_do.setHeight(r.finalH)}},r.setPoster=function(e,t){if(!t&&e&&""==FWDEVPUtils.trim(e)||"none"==e)return r.showOrLoadOnMobile_bl=!0,r.isTransparent_bl=!0,void r.show();if(!t&&"youtubemobile"==e)return r.isTransparent_bl=!1,r.showOrLoadOnMobile_bl=!1,r.img_img.src=null,void(r.imgW=0);if(!t&&e==r.curPath)return r.isTransparent_bl=!1,r.showOrLoadOnMobile_bl=!0,void r.show();if(r.isTransparent_bl=!1,r.showOrLoadOnMobile_bl=!0,r.curPath=e,r.allowToShow_bl&&(r.isShowed_bl=!1),!!e){r.hide(!0);try{r.pHld_do.removeChild(r.img_do)}catch(t){}r.img_img=new Image,r.img_do=new FWDEVPDO("img"),r.img_img.onload=r.posterLoadHandler,r.img_img.onerror=function(){},r.img_img.src=r.curPath}},r.posterLoadHandler=function(){r.imgW=r.img_img.naturalWidth,r.imgH=r.img_img.naturalHeight,r.img_do.setScreen(r.img_img),r.pHld_do.addChild(r.img_do),r.show(!0),r.positionAndResize()},r.reset=function(){r.img_img.src=""},r.show=function(t,o){if(r.allowToShow_bl&&!r.isShowed_bl&&r.showOrLoadOnMobile_bl&&r.curPath&&!e._d.autoPlay_bl||o){if(r.isShowed_bl=!0,r.isTransparent_bl&&0!=r.alpha&&r.setAlpha(0),r.setVisible(!0),!r.isTransparent_bl&&!e.isPlaying_bl){var s=0;e.delayPoster&&(s=.4),FWDAnimation.killTweensOf(r),FWDAnimation.to(r,.6,{alpha:1,delay:s})}r.positionAndResize()}},r.hide=function(e){(r.isShowed_bl||e)&&(r.isShowed_bl=!1,r.setAlpha(0),r.setVisible(!1))},r.init()};t.setPrototype=function(){t.prototype=new FWDEVPDO("div")},t.prototype=null,e.FWDEVPPoster=t}(window),function(e){var t=function(e,o,s,n,r,a,d){'use strict';var l=this;l.preloaderPostion=o,l.backgroundColor=n,l.fillClr=r,l.radius=s,l.strokeSize=a,l.animDuration=d||300,l.strtAngle=270,l.countAnimation=0,l.isShowed_bl=!0,l.slideshowAngle={n:0},l.init=function(){l.style().pointerEvents="none",l.main_do=new FWDEVPDO("div"),l.main_do.setOverflow("visible"),l.main_do.setWidth(2*l.radius+l.strokeSize),l.main_do.setHeight(2*l.radius+l.strokeSize),l.addChild(l.main_do),l.setOverflow("visible"),l.setWidth(2*l.radius+l.strokeSize),l.setHeight(2*l.radius+l.strokeSize),l.bkCanvas=new FWDEVPDO("canvas"),l.bkCtx=l.bkCanvas.screen.getContext("2d"),l.fillCircleCanvas=new FWDEVPDO("canvas"),l.fillCtx=l.fillCircleCanvas.screen.getContext("2d"),l.main_do.screen.style.transformOrigin="50% 50%",l.main_do.addChild(l.bkCanvas),l.main_do.addChild(l.fillCircleCanvas),l.drawBackground(),l.drawFill(),l.hide()},l.positionAndResize=function(){"bottomleft"==l.preloaderPostion?(l.setX(e.offsetPreloader),l.setY(e.sH-l.h-e.offsetPreloader)):"bottomright"==l.preloaderPostion?(l.setX(e.sW-l.w-e.offsetPreloader),l.setY(e.sH-l.h-e.offsetPreloader)):"topright"==l.preloaderPostion?(l.setX(e.sW-l.w-e.offsetPreloader),l.setY(e.offsetPreloader)):"topleft"==l.preloaderPostion?(l.setX(e.offsetPreloader),l.setY(e.offsetPreloader)):"center"==l.preloaderPostion&&(l.setX(Math.round(e.sW-l.w)/2),l.setY(Math.round(Math.min(e.sH,e.viewportSize.h)-l.h)/2))},l.drawBackground=function(){l.bkCanvas.screen.width=2*l.radius+2*l.strokeSize,l.bkCanvas.screen.height=2*l.radius+2*l.strokeSize,l.bkCtx.lineWidth=l.thicknessSize,l.bkCtx.translate(l.strokeSize/2,l.strokeSize/2),l.bkCtx.shadowColor="#333333",l.bkCtx.shadowBlur=1,l.bkCtx.lineWidth=l.strokeSize,l.bkCtx.strokeStyle=l.backgroundColor,l.bkCtx.beginPath(),l.bkCtx.arc(l.radius,l.radius,l.radius,0*(Math.PI/180),360*(Math.PI/180),!1),l.bkCtx.stroke(),l.bkCtx.closePath()},l.drawFill=function(){l.fillCircleCanvas.screen.width=2*l.radius+2*l.strokeSize,l.fillCircleCanvas.screen.height=2*l.radius+2*l.strokeSize,l.fillCtx.lineWidth=l.thicknessSize,l.fillCtx.translate(l.strokeSize/2,l.strokeSize/2),l.fillCtx.lineWidth=l.strokeSize,l.fillCtx.strokeStyle=l.fillClr,l.fillCtx.beginPath(),l.fillCtx.arc(l.radius,l.radius,l.radius,Math.PI/180*l.strtAngle,Math.PI/180*(l.strtAngle+l.slideshowAngle.n),!1),l.fillCtx.stroke(),l.fillCtx.closePath()},l.startSlideshow=function(){null==l||(FWDAnimation.killTweensOf(l.slideshowAngle),FWDAnimation.to(l.slideshowAngle,l.animDuration,{n:360,onUpdate:l.drawFill,onComplete:l.stopSlideshow}))},l.stopSlideshow=function(){FWDAnimation.killTweensOf(l.slideshowAngle),FWDAnimation.to(l.slideshowAngle,.8,{n:0,onupdate:l.drawFill,onUpdate:l.drawFill,ease:Expo.easiInOut})},l.startPreloader=function(){l.stopPreloader(),l.slideshowAngle={n:0},FWDAnimation.to(l.slideshowAngle,l.animDuration,{n:360,onUpdate:l.drawFill,repeat:100,yoyo:!0,ease:Expo.easInOut}),FWDAnimation.to(l.main_do.screen,l.animDuration,{rotation:360,repeat:100})},l.stopPreloader=function(){FWDAnimation.killTweensOf(l.slideshowAngle),FWDAnimation.killTweensOf(l.main_do.screen),FWDAnimation.to(l.main_do.screen,1e-5,{rotation:0})},l.show=function(){l.isShowed_bl||(l.setVisible(!0),FWDAnimation.killTweensOf(l),FWDAnimation.to(l,1,{alpha:1,delay:.2}),l.stopPreloader(),l.startPreloader(),l.isShowed_bl=!0)},l.hide=function(e){l.isShowed_bl&&(FWDAnimation.killTweensOf(this),e?FWDAnimation.to(this,.2,{alpha:0,onComplete:l.onHideComplete}):(l.setVisible(!1),l.setAlpha(0)),l.isShowed_bl=!1)},l.onHideComplete=function(){l.setVisible(!1),l.stopPreloader(),l.dispatchEvent(t.HIDE_COMPLETE)},l.updateColors=function(e,t){l.backgroundColor=e,l.fillClr=t,l.bkCtx.strokeStyle=l.backgroundColor,l.fillCtx.strokeStyle=l.fillClr,l.drawBackground()},l.init()};t.setPrototype=function(){t.prototype=new FWDEVPDO("div")},t.HIDE_COMPLETE="hideComplete",t.prototype=null,e.FWDEVPPreloader=t}(window),function(e){var t=function(e,o,s,n,r){'use strict';var a=this;a.imageSource_img=e,a.segmentWidth=o,a.segmentHeight=s,a.totalSegments=n,a.animDelay=r||300,a.count=0,a.init=function(){a.setWidth(a.segmentWidth),a.setHeight(a.segmentHeight),a.image_sdo=new FWDEVPDO("img"),a.image_sdo.setScreen(a.imageSource_img),a.addChild(a.image_sdo),a.hide(!1)},a.start=function(){null==a||(clearInterval(a.delayTimerId_int),a.delayTimerId_int=setInterval(a.updatePreloader,a.animDelay))},a.stop=function(){clearInterval(a.delayTimerId_int)},a.updatePreloader=function(){if(null!=a){a.count++,a.count>a.totalSegments-1&&(a.count=0);var e=a.count*a.segmentWidth;a.image_sdo.setX(-e)}},a.show=function(){a.isShowed_bl||(a.setVisible(!0),a.start(),FWDAnimation.killTweensOf(a),FWDAnimation.to(a,1,{alpha:1,delay:.2}),a.isShowed_bl=!0)},a.hide=function(e){a.isShowed_bl&&(FWDAnimation.killTweensOf(this),e?FWDAnimation.to(this,1,{alpha:0,onComplete:a.onHideComplete}):(a.setVisible(!1),a.setAlpha(0)),a.isShowed_bl=!1)},a.onHideComplete=function(){a.setVisible(!1),a.stop(),a.dispatchEvent(t.HIDE_COMPLETE)},a.init()};t.setPrototype=function(){t.prototype=new FWDEVPDO("div")},t.HIDE_COMPLETE="hideComplete",t.prototype=null,e.FWDEVPPreloader2=t}(window),function(e){var t=function(e,t,o,s,n){'use strict';var r=this;r.buttonRef_do=e,r.bkColor=t,r.fontColor_str=o,r.toolTipLabel_str=s,r.toolTipsButtonsHideDelay=1e3*n,r.pointerWidth=7,r.pointerHeight=4,r.isMobile_bl=FWDEVPUtils.isMobile,r.isShowed_bl=!0,r.init=function(){r.setOverflow("visible"),r.screen.className="EVP-tooltip-bk",r.setupMainContainers(),r.setLabel(s),r.hide(),r.setVisible(!1),r.style().backgroundColor=r.bkColor,r.style().zIndex=9999999999999,r.style().pointerEvents="none"},r.setupMainContainers=function(){r.pointerHolder_do=new FWDEVPDO("div"),r.pointerHolder_do.setOverflow("visible"),r.addChild(r.pointerHolder_do),r.text_do=new FWDEVPDO("div"),r.text_do.screen.className="EVP-tooltip-text",r.text_do.hasT3D=!1,r.text_do.hasT2D=!1,r.text_do.setBackfaceVisibility(),r.text_do.setDisplay("inline-block"),r.text_do.style().fontFamily="Arial",r.text_do.style().fontSize="12px",r.text_do.style().color=r.fontColor_str,r.text_do.style().whiteSpace="nowrap",r.text_do.style().fontSmoothing="antialiased",r.text_do.style().webkitFontSmoothing="antialiased",r.text_do.style().textRendering="optimizeLegibility",r.text_do.style().padding="6px",r.text_do.style().paddingTop="4px",r.text_do.style().paddingBottom="4px",r.addChild(r.text_do),r.pointer_do=new FWDEVPDO("div"),r.pointer_do.screen.className="EVP-scrubber-pointer",r.pointer_do.style().border="4px solid transparent",r.pointer_do.style().borderTopColor=r.bkColor,r.pointerHolder_do.addChild(r.pointer_do)},r.setLabel=function(e){void 0!==e&&(r.text_do.setInnerHTML(e),null==r||(r.setWidth(r.text_do.getWidth()),r.setHeight(r.text_do.getHeight()),r.positionPointer()))},r.positionPointer=function(e){var t,o;e||(e=0),t=parseInt((r.w-8)/2)+e,o=r.h,r.pointerHolder_do.setX(t),r.pointerHolder_do.setY(o)},r.show=function(){r.isShowed_bl=!0,clearTimeout(r.hideWithDelayId_to),FWDAnimation.killTweensOf(r),clearTimeout(r.showWithDelayId_to),r.showWithDelayId_to=setTimeout(r.showFinal,r.toolTipsButtonsHideDelay)},r.showFinal=function(){r.setVisible(!0),FWDAnimation.to(r,.4,{alpha:1,onComplete:function(){r.setVisible(!0)},ease:Quart.easeOut})},r.hide=function(){r.isShowed_bl&&(clearTimeout(r.hideWithDelayId_to),r.hideWithDelayId_to=setTimeout(function(){clearTimeout(r.showWithDelayId_to),FWDAnimation.killTweensOf(r),r.setVisible(!1),r.isShowed_bl=!1,r.setAlpha(0)},100))},r.init()};t.setPrototype=function(){t.prototype=null,t.prototype=new FWDEVPDO("div")},t.CLICK="onClick",t.MOUSE_DOWN="onMouseDown",t.prototype=null,e.FWDEVPScrubberToolip=t}(window),function(e){var t=function(o,s){'use strict';var n=this;n.embedColoseN_img=o.embedColoseN_img,n.btns_ar=[],n.embedWindowBackground_str=o.embedWindowBackground_str,n.embedWindowCloseButtonMargins=o.embedWindowCloseButtonMargins,n.totalWidth=0,n.sW=0,n.sH=0,n.minMrgXSpc=20,n.hSpace=20,n.minHSpace=10,n.vSpace=15,n.isMbl=FWDEVPUtils.isMobile,n.useVectorIcons_bl=o.useVectorIcons_bl,n.init=function(){n.setupButtons()},n.stpInit=function(){if(!n.clsBtn){var t=o.sBC;e.isWhite&&(t="#000000"),n.setBackfaceVisibility(),n.mainHld=new FWDEVPDO("div"),n.mainHld.hasT3D=!1,n.mainHld.hasT2D=!1,n.mainHld.setBackfaceVisibility(),n.bk_do=new FWDEVPDO("div"),n.bk_do.style().width="100%",n.bk_do.style().height="100%",n.bk_do.setAlpha(.9);var r=n.embedWindowBackground_str;if(e.isWhite&&(r="content/hex_white/embed-window-background.png"),n.bk_do.style().background="url('"+r+"')",n.useVectorIcons_bl){FWDEVPSimpleButton.setPrototype(),FWDEVPUtils.smpBtnNPos();var a=s.fontIcon+" "+s.fontIcon+"-close";n.clsBtn=new FWDEVPSimpleButton(0,0,0,!0,0,0,0,"<div class='table-fwdevp-button'><span class='table-cell-fwdevp-button "+a+"'></span></div>",void 0,"EVPCloseButtonNormalState","EVPCloseButtonSelectedState")}else FWDEVPSimpleButton.setPrototype(),n.clsBtn=new FWDEVPSimpleButton(o.shareClooseN_img,o.embedWindowClosePathS_str,void 0,!0,o.useHEX,o.nBC,t,!1,!1,!1,!1,!0);n.clsBtn.addListener(FWDEVPSimpleButton.MOUSE_UP,n.closeButtonOnMouseUpHandler),n.addChild(n.mainHld),n.mainHld.addChild(n.bk_do),n.mainHld.addChild(n.clsBtn)}},n.closeButtonOnMouseUpHandler=function(){n.isShowed_bl&&n.hide()},n.positionAndResize=function(){n.sW=s.sW,n.sH=s.sH,n.clsBtn.setX(n.sW-n.clsBtn.w-n.embedWindowCloseButtonMargins),n.clsBtn.setY(n.embedWindowCloseButtonMargins),n.setWidth(n.sW),n.setHeight(n.sH),n.mainHld.setWidth(n.sW),n.mainHld.setHeight(n.sH),n.positionButtons()},n.setupButtons=function(){if(!n.btsCrted){n.stpInit(),n.btsCrted=!0;var t=o.sBC;if(e.isWhite&&(t="#000000"),n.useVectorIcons_bl){FWDEVPSimpleButton.setPrototype(),FWDEVPUtils.smpBtnNPos();var r=s.fontIcon+" "+s.fontIcon+"-facebook";n.facebookButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='"+r+"'></span>",void 0,"EVPSocialMediaButtonsNormalState","EVPSocialMediaButtonsSelectedState")}else FWDEVPSimpleButton.setPrototype(),n.facebookButton_do=new FWDEVPSimpleButton(o.facebookN_img,o.facebookSPath_str,void 0,!0,o.useHEX,o.nBC,t);if(n.facebookButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,n.facebookOnMouseUpHandler),n.btns_ar.push(n.facebookButton_do),n.useVectorIcons_bl){FWDEVPSimpleButton.setPrototype(),FWDEVPUtils.smpBtnNPos();var r=s.fontIcon+" "+s.fontIcon+"-google-plus";n.googleButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='"+r+"'></span>",void 0,"EVPSocialMediaButtonsNormalState","EVPSocialMediaButtonsSelectedState")}else FWDEVPSimpleButton.setPrototype(),n.googleButton_do=new FWDEVPSimpleButton(o.googleN_img,o.googleSPath_str,void 0,!0,o.useHEX,o.nBC,t);if(n.googleButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,n.googleOnMouseUpHandler),n.btns_ar.push(n.googleButton_do),n.useVectorIcons_bl){FWDEVPSimpleButton.setPrototype(),FWDEVPUtils.smpBtnNPos();var r=s.fontIcon+" "+s.fontIcon+"-twitter";n.twitterButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='"+r+"'></span>",void 0,"EVPSocialMediaButtonsNormalState","EVPSocialMediaButtonsSelectedState")}else FWDEVPSimpleButton.setPrototype(),n.twitterButton_do=new FWDEVPSimpleButton(o.twitterN_img,o.twitterSPath_str,void 0,!0,o.useHEX,o.nBC,t);if(n.twitterButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,n.twitterOnMouseUpHandler),n.btns_ar.push(n.twitterButton_do),n.useVectorIcons_bl){FWDEVPSimpleButton.setPrototype(),FWDEVPUtils.smpBtnNPos();var r=s.fontIcon+" "+s.fontIcon+"-linkedin";n.likedinButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='"+r+"'></span>",void 0,"EVPSocialMediaButtonsNormalState","EVPSocialMediaButtonsSelectedState")}else FWDEVPSimpleButton.setPrototype(),FWDEVPUtils.smpBtnNPos(),n.likedinButton_do=new FWDEVPSimpleButton(o.likedInkN_img,o.likedInSPath_str,void 0,!0,o.useHEX,o.nBC,t);if(n.likedinButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,n.likedinOnMouseUpHandler),n.btns_ar.push(n.likedinButton_do),n.useVectorIcons_bl){FWDEVPSimpleButton.setPrototype(),FWDEVPUtils.smpBtnNPos();var r=s.fontIcon+" "+s.fontIcon+"-comments";n.bufferButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='"+r+"'></span>",void 0,"EVPSocialMediaButtonsNormalState","EVPSocialMediaButtonsSelectedState")}else FWDEVPSimpleButton.setPrototype(),n.bufferButton_do=new FWDEVPSimpleButton(o.bufferkN_img,o.bufferSPath_str,void 0,!0,o.useHEX,o.nBC,t);if(n.bufferButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,n.bufferOnMouseUpHandler),n.btns_ar.push(n.bufferButton_do),n.useVectorIcons_bl){FWDEVPSimpleButton.setPrototype(),FWDEVPUtils.smpBtnNPos();var r=s.fontIcon+" "+s.fontIcon+"-digg";n.diggButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='"+r+"'></span>",void 0,"EVPSocialMediaButtonsNormalState","EVPSocialMediaButtonsSelectedState")}else FWDEVPSimpleButton.setPrototype(),n.diggButton_do=new FWDEVPSimpleButton(o.diggN_img,o.diggSPath_str,void 0,!0,o.useHEX,o.nBC,t);if(n.diggButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,n.diggOnMouseUpHandler),n.btns_ar.push(n.diggButton_do),n.useVectorIcons_bl){FWDEVPSimpleButton.setPrototype(),FWDEVPUtils.smpBtnNPos();var r=s.fontIcon+" "+s.fontIcon+"-reddit";n.redditButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='"+r+"'></span>",void 0,"EVPSocialMediaButtonsNormalState","EVPSocialMediaButtonsSelectedState")}else FWDEVPSimpleButton.setPrototype(),n.redditButton_do=new FWDEVPSimpleButton(o.redditN_img,o.redditSPath_str,void 0,!0,o.useHEX,o.nBC,t);if(n.redditButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,n.redditOnMouseUpHandler),n.btns_ar.push(n.redditButton_do),n.useVectorIcons_bl){FWDEVPSimpleButton.setPrototype(),FWDEVPUtils.smpBtnNPos();var r=s.fontIcon+" "+s.fontIcon+"-tumblr";n.thumbrlButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='"+r+"'></span>",void 0,"EVPSocialMediaButtonsNormalState","EVPSocialMediaButtonsSelectedState")}else FWDEVPSimpleButton.setPrototype(),n.thumbrlButton_do=new FWDEVPSimpleButton(o.thumbrlN_img,o.thumbrlSPath_str,void 0,!0,o.useHEX,o.nBC,t);n.thumbrlButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,n.thumbrlOnMouseUpHandler),n.btns_ar.push(n.thumbrlButton_do),n.mainHld.addChild(n.facebookButton_do),n.mainHld.addChild(n.googleButton_do),n.mainHld.addChild(n.twitterButton_do),n.mainHld.addChild(n.likedinButton_do),n.mainHld.addChild(n.bufferButton_do),n.mainHld.addChild(n.diggButton_do),n.mainHld.addChild(n.redditButton_do),n.mainHld.addChild(n.thumbrlButton_do)}},n.facebookOnMouseUpHandler=function(){var t="http://www.facebook.com/share.php?u="+encodeURIComponent(location.href);e.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},n.googleOnMouseUpHandler=function(){var t="https://plus.google.com/share?url="+encodeURIComponent(location.href);e.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},n.twitterOnMouseUpHandler=function(){var t="http://twitter.com/home?status="+encodeURIComponent(location.href);e.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},n.likedinOnMouseUpHandler=function(){var t="https://www.linkedin.com/cws/share?url="+location.href;e.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},n.bufferOnMouseUpHandler=function(){var t="https://buffer.com/add?url="+location.href;e.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},n.diggOnMouseUpHandler=function(){var t="http://digg.com/submit?url="+location.href;e.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},n.redditOnMouseUpHandler=function(){var t="https://www.reddit.com/?submit="+location.href;e.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},n.thumbrlOnMouseUpHandler=function(){var t="http://www.tumblr.com/share/link?url="+location.href;e.open(t,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},n.positionButtons=function(){var e=[],t=[],o=[],s=0,r=0,a=0,d,l,_;e[a]=[0],t[a]=n.btns_ar[0].totalWidth,o[a]=n.btns_ar[0].totalWidth,n.totalButtons=n.btns_ar.length;for(var u=1;u<n.totalButtons;u++)d=n.btns_ar[u],t[a]+d.totalWidth+n.minHSpace>n.sW-n.minMrgXSpc?(a++,e[a]=[],e[a].push(u),t[a]=d.totalWidth,o[a]=d.totalWidth):(e[a].push(u),t[a]+=d.totalWidth+n.minHSpace,o[a]+=d.totalWidth);s=parseInt((n.sH-((a+1)*(d.totalHeight+n.vSpace)-n.vSpace))/2);for(var u=0;u<a+1;u++){var c=0,p;if(1<e[u].length){p=Math.min((n.sW-n.minMrgXSpc-o[u])/(e[u].length-1),n.hSpace);var b=o[u]+p*(e[u].length-1);c=parseInt((n.sW-b)/2)}else c=parseInt((n.sW-t[u])/2);0<u&&(s+=d.h+n.vSpace);for(var h=0;h<e[u].length;h++)d=n.btns_ar[e[u][h]],0==h?_=c:(l=n.btns_ar[e[u][h]-1],_=l.finalX+l.totalWidth+p),d.finalX=_,d.finalY=s,r<d.finalY&&(r=d.finalY),n.buttonsBarTotalHeight=r+d.totalHeight+n.startY,d.setX(d.finalX),d.setY(d.finalY)}},n.show=function(){n.isShowed_bl||(n.isShowed_bl=!0,s.main_do.addChild(n),n.init(),n.useVectorIcons_bl?n.checkButtonsId_to=setInterval(function(){0!=n.clsBtn.w&&(n.positionAndResize(),clearInterval(n.checkButtonsId_to),clearTimeout(n.hideCompleteId_to),clearTimeout(n.showCompleteId_to),n.mainHld.setY(-n.sH),n.showCompleteId_to=setTimeout(n.showCompleteHandler,900),FWDAnimation.to(n.mainHld,.8,{y:0,delay:.1,ease:Expo.easeInOut}))},50):(n.positionAndResize(),clearTimeout(n.hideCompleteId_to),clearTimeout(n.showCompleteId_to),n.mainHld.setY(-n.sH),n.showCompleteId_to=setTimeout(n.showCompleteHandler,900),setTimeout(function(){FWDAnimation.to(n.mainHld,.8,{y:0,delay:.1,ease:Expo.easeInOut})},100)))},n.showCompleteHandler=function(){},n.hide=function(){n.isShowed_bl&&(n.isShowed_bl=!1,(!FWDEVPUtils.isMobile||FWDEVPUtils.isMobile&&FWDEVPUtils.hasPointerEvent)&&s.main_do.setSelectable(!1),s.customContextMenu_do&&s.customContextMenu_do.enable(),n.positionAndResize(),clearTimeout(n.hideCompleteId_to),clearTimeout(n.showCompleteId_to),n.hideCompleteId_to=setTimeout(n.hideCompleteHandler,800),FWDAnimation.killTweensOf(n.mainHld),FWDAnimation.to(n.mainHld,.8,{y:-n.sH,ease:Expo.easeInOut}))},n.hideCompleteHandler=function(){s.main_do.removeChild(n),n.dispatchEvent(t.HIDE_COMPLETE)},o.useHEX&&n.init()};t.setPrototype=function(){t.prototype=new FWDEVPDO("div")},t.HIDE_COMPLETE="hideComplete",t.prototype=null,e.FWDEVPShareWindow=t}(window),function(e){var t=function(e,o,s,n,r,a,d,l,_,u,c,p){'use strict';var b=this;b.iconCSSString=l,b.showHDIcon=_,b.nImg=e,b.sPath_str=o,b.dPath_str=s,b.testButton=!(-1==(b.iconCSSString+"").indexOf("download")),b.n_do,b.s_sdo,b.d_sdo,b.showOver=p,r||(b.showOver=!1),b.toolTipLabel_str,b.nImg&&(b.totalWidth=b.nImg.width,b.totalHeight=b.nImg.height,b.buttonWidth=b.totalWidth,b.buttonHeight=b.totalHeight),b.normalCalssName=u,b.selectedCalssName=c,b.useHEX=r,b.nBC=a,b.sBC=d,b.isShowed_bl=!0,b.isMbl=FWDEVPUtils.isMobile,b.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,b.allowToCreateSecondButton_bl=!b.isMbl||b.hasPointerEvent_bl||n,b.useFontAwesome_bl=!!b.iconCSSString,b.init=function(){b.iconCSSString&&b.setOverflow("visible"),b.setupMainContainers(),b.setNormalState()},b.setupMainContainers=function(){if(b.useFontAwesome_bl){if(b.setOverflow("visible"),b.n_do=new FWDEVPDO("div"),b.n_do.hasT3D=!1,b.n_do.hasT2D=!1,b.n_do.setInnerHTML(b.iconCSSString),b.addChild(b.n_do),b.showHDIcon){var e=new Image;e.src=_,b.hd_do=new FWDEVPDO("img"),b.hd_do.setScreen(e),b.hd_do.setWidth(7),b.hd_do.setHeight(5),b.setOverflow("visible"),b.addChild(b.hd_do)}b.setFinalSize()}else if(b.useHEX&&!b.showOver?(b.n_do=new FWDEVPDO("div"),b.n_do.setWidth(b.totalWidth),b.n_do.setHeight(b.totalHeight),b.n_do_canvas=FWDEVPUtils.getCanvasWithModifiedColor(b.nImg,b.nBC).canvas,b.n_do.screen.appendChild(b.n_do_canvas),b.addChild(b.n_do)):(b.n_do=new FWDEVPDO("img"),b.n_do.setScreen(b.nImg),b.addChild(b.n_do)),b.n_do.setAlpha(1),b.allowToCreateSecondButton_bl){b.img1=new Image,b.img1.src=b.sPath_str;var t=new Image;if(b.sImg=t,b.useHEX){b.s_sdo=new FWDEVPDO("div"),b.s_sdo.setWidth(b.totalWidth),b.s_sdo.setHeight(b.totalHeight);var o=b.sBC;b.showOver&&(o=b.nBC),b.img1.onload=function(){b.s_sdo_canvas=FWDEVPUtils.getCanvasWithModifiedColor(b.img1,o).canvas,b.s_sdo.screen.appendChild(b.s_sdo_canvas)},b.showOver||b.s_sdo.setAlpha(0),b.addChild(b.s_sdo)}else b.s_sdo=new FWDEVPDO("img"),b.s_sdo.setScreen(b.img1),b.s_sdo.setWidth(b.totalWidth),b.s_sdo.setHeight(b.totalHeight),b.useHEX||b.s_sdo.setAlpha(0),b.addChild(b.s_sdo);b.dPath_str&&(t.src=b.dPath_str,b.d_sdo=new FWDEVPDO("img"),b.d_sdo.setScreen(t),b.d_sdo.setWidth(b.totalWidth),b.d_sdo.setHeight(b.totalHeight),b.d_sdo.setX(-100),b.addChild(b.d_sdo)),b.setWidth(b.totalWidth),b.setHeight(b.totalHeight)}b.setButtonMode(!0),b.screen.style.yellowOverlayPointerEvents="none",b.hasPointerEvent_bl?(b.screen.addEventListener("pointerup",b.onMouseUp),b.screen.addEventListener("pointerover",b.onMouseOver),b.screen.addEventListener("pointerout",b.onMouseOut)):b.screen.addEventListener&&(!b.isMbl&&(b.screen.addEventListener("mouseover",b.onMouseOver),b.screen.addEventListener("mouseout",b.onMouseOut),b.screen.addEventListener("mouseup",b.onMouseUp)),b.screen.addEventListener("touchend",b.onMouseUp))},b.onMouseOver=function(o){if((b.dispatchEvent(t.SHOW_TOOLTIP,{e:o}),!b.isDisabledForGood_bl)&&(!o.pointerType||o.pointerType==o.MSPOINTER_TYPE_MOUSE||"mouse"==o.pointerType)){if(b.isDisabled_bl||b.isSelectedFinal_bl)return;b.dispatchEvent(t.MOUSE_OVER,{e:o}),b.setSelectedState(!0)}},b.onMouseOut=function(o){if(!b.isDisabledForGood_bl&&(!o.pointerType||o.pointerType==o.MSPOINTER_TYPE_MOUSE||"mouse"==o.pointerType)){if(b.isDisabled_bl||b.isSelectedFinal_bl)return;b.dispatchEvent(t.MOUSE_OUT,{e:o}),b.setNormalState(!0)}},b.onMouseUp=function(o){b.isDisabledForGood_bl||(o.preventDefault&&o.preventDefault(),b.isDisabled_bl||2==o.button||b.dispatchEvent(t.MOUSE_UP,{e:o}))},b.checkCount=0,b.setFinalSize=function(e){(e&&(b.checkCount=0),clearInterval(b.checkId_int),!(6<b.checkCount))&&(b.lastWidth=b.n_do.screen.firstChild.offsetWidth,b.lastHeight=b.n_do.screen.firstChild.offsetHeight,b.checkCount+=1,b.checkId_int=setInterval(function(){b.setFinalSize()},100),b.prevWidth==b.lastWidth||0==b.lastWidth||(b.setWidth(b.n_do.screen.firstChild.offsetWidth),b.setHeight(b.n_do.screen.firstChild.offsetHeight),b.n_do.setWidth(b.w),b.n_do.setHeight(b.h),b.buttonWidth=b.w,b.buttonHeight=b.h,b.totalWidth=b.w,b.totalHeight=b.h,b.hd_do&&(b.hd_do.setX(b.w-b.hd_do.w+2),b.hd_do.setY(-2)),b.prevWidth=b.lastWidth,b.prevHeight=b.lastHeight,b.lastHeight=b))},b.setSelected=function(){b.isSelectedFinal_bl=!0;b.s_sdo&&(FWDAnimation.killTweensOf(b.s_sdo),FWDAnimation.to(b.s_sdo,.8,{alpha:1,ease:Expo.easeOut}))},b.setUnselected=function(){b.isSelectedFinal_bl=!1;b.s_sdo&&FWDAnimation.to(b.s_sdo,.8,{alpha:0,delay:.1,ease:Expo.easeOut})},b.setNormalState=function(e){b.doNotallowToSetNormal||(b.useFontAwesome_bl?(FWDAnimation.killTweensOf(b.n_do.screen),e?FWDAnimation.to(b.n_do.screen,.6,{className:b.normalCalssName,ease:Quart.easeOut}):b.n_do.screen.className=b.normalCalssName):b.showOver?(FWDAnimation.killTweensOf(b.s_sdo),FWDAnimation.to(b.s_sdo,.6,{alpha:1,ease:Quart.easeOut})):(FWDAnimation.killTweensOf(b.s_sdo),FWDAnimation.to(b.s_sdo,.6,{alpha:0,ease:Quart.easeOut})))},b.setSelectedState=function(e){b.useFontAwesome_bl?(FWDAnimation.killTweensOf(b.n_do.screen),e?FWDAnimation.to(b.n_do.screen,.6,{className:b.selectedCalssName,ease:Quart.easeOut}):b.n_do.screen.className=b.selectedCalssName):b.showOver?(FWDAnimation.killTweensOf(b.s_sdo),FWDAnimation.to(b.s_sdo,.6,{alpha:0,ease:Quart.easeOut})):(FWDAnimation.killTweensOf(b.s_sdo),FWDAnimation.to(b.s_sdo,.6,{alpha:1,delay:.1,ease:Quart.easeOut}))},b.setDisabledState=function(){b.isSetToDisabledState_bl||(b.isSetToDisabledState_bl=!0,b.d_sdo&&b.d_sdo.setX(0),b.hd_do&&b.hd_do.setX(b.w-b.hd_do.w))},b.setEnabledState=function(){b.isSetToDisabledState_bl&&(b.isSetToDisabledState_bl=!1,b.d_sdo&&b.d_sdo.setX(-100),b.hd_do&&b.hd_do.setX(-1e5))},b.disable=function(){b.isDisabledForGood_bl||b.isDisabled_bl||(b.isDisabled_bl=!0,b.setButtonMode(!1),FWDAnimation.killTweensOf(b),FWDAnimation.to(b,.6,{alpha:.4}),b.setNormalState(!0))},b.enable=function(){b.isDisabledForGood_bl||!b.isDisabled_bl||(b.isDisabled_bl=!1,b.setButtonMode(!0),FWDAnimation.killTweensOf(b),FWDAnimation.to(b,.6,{alpha:1}))},b.disableForGood=function(){b.isDisabledForGood_bl=!0,b.setButtonMode(!1)},b.showDisabledState=function(){b.d_sdo&&0!=b.d_sdo.x&&b.d_sdo.setX(0),b.hd_do&&b.hd_do.setX(b.w-b.hd_do.w+2)},b.hideDisabledState=function(){b.d_sdo&&-100!=b.d_sdo.x&&b.d_sdo.setX(-100),b.hd_do&&b.hd_do.setX(-1e4)},b.show=function(e){b.isShowed_bl||(b.isShowed_bl=!0,0===e?(b.setVisible(!0),b.setScale2(1)):(FWDAnimation.killTweensOf(b),FWDAnimation.to(b,.8,{scale:1,delay:.4,onStart:function(){b.setVisible(!0)},ease:Elastic.easeOut})))},b.hide=function(){b.isShowed_bl&&(b.isShowed_bl=!1,FWDAnimation.killTweensOf(b),b.setVisible(!1),b.setScale2(0))},b.updateHEXColors=function(e,t){b.n_do_canvas&&FWDEVPUtils.changeCanvasHEXColor(b.nImg,b.n_do_canvas,e),b.s_sdo_canvas&&FWDEVPUtils.changeCanvasHEXColor(b.img1,b.s_sdo_canvas,t)},b.init()};t.setPrototype=function(){t.prototype=null,t.prototype=new FWDEVPDO("div")},t.setTransformPrototype=function(){t.prototype=null,t.prototype=new FWDEVPDO("div",0,0,!0)},t.CLICK="onClick",t.MOUSE_OVER="onMouseOver",t.SHOW_TOOLTIP="showTooltip",t.MOUSE_OUT="onMouseOut",t.MOUSE_UP="onMouseDown",t.prototype=null,e.FWDEVPSimpleButton=t}(window),function(e){var t=function(e,o,s,n,r,a,d,l){'use strict';var _=this;_.n_do,_.s_do,_.useHEX=r,_.nBC=a,_.sBC=d,_.nImgPath_str=e,_.sImgPath_str=o,_.buttonWidth=s,_.buttonHeight=n,_.showOver=l,r||(_.showOver=!1),_.isMbl=FWDEVPUtils.isMobile,_.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,_.isDisabled_bl=!1,_.init=function(){_.setupMainContainers(),_.setWidth(_.buttonWidth),_.setHeight(_.buttonHeight),_.setButtonMode(!0)},_.setupMainContainers=function(){_.nImg=new Image,_.nImg.src=_.nImgPath_str,_.useHEX&&!_.showOver?(_.n_do=new FWDEVPDO("div",0,0,!0),_.n_do.setWidth(_.buttonWidth),_.n_do.setHeight(_.buttonHeight),_.nImg.onload=function(){_.n_do_canvas=FWDEVPUtils.getCanvasWithModifiedColor(_.nImg,_.nBC).canvas,_.n_do.screen.appendChild(_.n_do_canvas)},_.addChild(_.n_do)):(_.n_do=new FWDEVPDO("img"),_.n_do.setScreen(_.nImg),_.n_do.setWidth(_.buttonWidth),_.n_do.setHeight(_.buttonHeight),_.addChild(_.n_do)),_.n_do.setAlpha(1),_.sImg=new Image,_.sImg.src=_.sImgPath_str,_.useHEX?(_.s_do=new FWDEVPDO("div",0,0,!0),_.s_do.setWidth(_.buttonWidth),_.s_do.setHeight(_.buttonHeight),_.sImg.onload=function(){_.s_do_canvas=FWDEVPUtils.getCanvasWithModifiedColor(_.sImg,_.nBC).canvas,_.s_do.screen.appendChild(_.s_do_canvas)},!_.showOver&&_.s_do.setAlpha(0),_.addChild(_.s_do)):(_.s_do=new FWDEVPDO("img"),_.s_do.setScreen(_.sImg),_.s_do.setWidth(_.buttonWidth),_.s_do.setHeight(_.buttonHeight),_.addChild(_.s_do),!_.useHEX&&_.s_do.setAlpha(0)),_.showOver&&_.addChild(_.s_do),_.hasPointerEvent_bl?(_.screen.addEventListener("pointerup",_.onMouseUp),_.screen.addEventListener("pointerover",_.setSelectedState),_.screen.addEventListener("pointerout",_.setNormalState)):_.screen.addEventListener&&(!_.isMbl&&(_.screen.addEventListener("mouseover",_.setSelectedState),_.screen.addEventListener("mouseout",_.setNormalState),_.screen.addEventListener("mouseup",_.onMouseUp)),_.screen.addEventListener("touchend",_.onMouseUp))},_.setNormalState=function(){_.showOver?(FWDAnimation.killTweensOf(_.s_do),FWDAnimation.to(_.s_do,.6,{alpha:1,ease:Quart.easeOut})):(FWDAnimation.killTweensOf(_.s_do),FWDAnimation.to(_.s_do,.6,{alpha:0,ease:Quart.easeOut}))},_.setSelectedState=function(){_.showOver?(FWDAnimation.killTweensOf(_.s_do),FWDAnimation.to(_.s_do,.6,{alpha:0,ease:Quart.easeOut})):(FWDAnimation.killTweensOf(_.s_do),FWDAnimation.to(_.s_do,.6,{alpha:1,ease:Quart.easeOut}))},_.onMouseUp=function(){_.dispatchEvent(t.MOUSE_UP),_.dispatchEvent(t.CLICK)},_.updateHEXColors=function(e,t){_.n_do_canvas&&FWDEVPUtils.changeCanvasHEXColor(_.nImg,_.n_do_canvas,e);var o=t;_.showOver&&(o=e),FWDEVPUtils.changeCanvasHEXColor(_.sImg,_.s_do_canvas,o)},_.init()};t.setPrototype=function(){t.prototype=null,t.prototype=new FWDEVPDO("div","relative")},t.MOUSE_UP="onMouseUp",t.CLICK="onClick",t.prototype=null,e.FWDEVPSimpleSizeButton=t}(window),function(t){var o=function(e,s){'use strict';var r=this;r.isMobile_bl=FWDEVPUtils.isMobile,r.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,r.showSubtitileByDefault_bl=s.showSubtitileByDefault_bl,r.init=function(){r.setOverflow("visible"),r.style().cursor="default",r.setupTextContainer(),r.setWidth(e.maxWidth),r.style().margin="auto",r.hide()},r.setupTextContainer=function(){r.text_do=new FWDEVPDO("div",0,0,!0),r.text_do.style().pointerEvents="none",r.text_do.hasT3D=!1,r.text_do.setBackfaceVisibility(),r.text_do.style().transformOrigin="50% 0%",r.text_do.setWidth(e.maxWidth),r.text_do.style().textAlign="center",r.text_do.style().fontSmoothing="antialiased",r.text_do.style().webkitFontSmoothing="antialiased",r.text_do.style().textRendering="optimizeLegibility",r.addChild(r.text_do)},r.loadSubtitle=function(e){if(r.text_do.setX(-5e3),-1==location.protocol.indexOf("file:")){r.subtitiles_ar=[],r.stopToLoadSubtitle(),r.sourceURL_str=e,r.xhr=new XMLHttpRequest,r.xhr.onreadystatechange=r.onLoad,r.xhr.onerror=r.onError;try{r.xhr.open("get",r.sourceURL_str+"?rand="+parseInt(99999999*Math.random()),!0),r.xhr.send()}catch(o){var t=o;o&&o.message&&(t=o.message)}}},r.onLoad=function(){4==r.xhr.readyState&&(404==r.xhr.status?r.dispatchEvent(FWDEVPData.LOAD_ERROR,{text:"Subtitle file path is not found: <font color='#FF0000'>"+r.sourceURL_str+"</font>"}):408==r.xhr.status?r.dispatchEvent(FWDEVPData.LOAD_ERROR,{text:"Loadiong subtitle file file request load timeout!"}):200==r.xhr.status&&(r.subtitle_txt=r.xhr.responseText,r.isShowed_bl&&r.show(),r.parseSubtitle(r.subtitle_txt),r.prevText="none",r.showSubtitileByDefault_bl&&(r.showId_to=setTimeout(function(){r.show(),r.text_do.setX(0),r.updateSubtitle(e.currentSecconds)},400)))),r.dispatchEvent(o.LOAD_COMPLETE)},r.onError=function(s){try{t.console&&console.log(s),t.console&&console.log(s.message)}catch(t){}r.dispatchEvent(o.LOAD_ERROR,{text:"Error loading subtitle file : <font color='#FF0000'>"+r.sourceURL_str+"</font>."})},r.stopToLoadSubtitle=function(){if(clearTimeout(r.showId_to),null!=r.xhr){r.xhr.onreadystatechange=null,r.xhr.onerror=null;try{r.xhr.abort()}catch(t){}r.xhr=null}r.hide(),r.isLoaded_bl=!1},r.parseSubtitle=function(e){function a(e){return null==e?"":e.replace(/^\s+|\s+$/g,"")}r.isLoaded_bl=!0,e=e.replace(/\r\n|\r|\n/g,"\n"),e=a(e);var d=e.split("\n\n"),l=0;for(var _ in d){var s=d[_].split("\n");if(2<=s.length){var u=s[0],n=a(s[1].split(" --> ")[0]),c=a(s[1].split(" --> ")[1]),o=s[2];if(2<s.length)for(var p=3;p<s.length;p++)o+="<br>"+s[p];r.subtitiles_ar[l]={},r.subtitiles_ar[l].number=u,r.subtitiles_ar[l].start=n,r.subtitiles_ar[l].end=c,r.subtitiles_ar[l].startDuration=FWDEVPUtils.formatTimeWithMiliseconds(n),r.subtitiles_ar[l].endDuration=FWDEVPUtils.formatTimeWithMiliseconds(c),r.subtitiles_ar[l].text="<p class='EVPSubtitle'>"+o+"</p>"}l++}for(var n=0;n<r.subtitiles_ar.length;n++)r.subtitiles_ar[n]||(r.subtitiles_ar.splice(n,1),n--)},r.updateSubtitle=function(t){if(r.isLoaded_bl){for(var o="",s=0,n,a;s<r.subtitiles_ar.length;s++)if(n=r.subtitiles_ar[s].startDuration,a=r.subtitiles_ar[s].endDuration,n<t&&a>t){o=r.subtitiles_ar[s].text;break}if(260>e.sW?r.setVisible(!1):r.setVisible(!0),o=600>=e.sW?o.replace("EVPSubtitle","EVPSubtitle phone"):1e3>=e.sW?o.replace("EVPSubtitle","EVPSubtitle tablet"):1800>=e.sW?o.replace("EVPSubtitle","EVPSubtitle normal"):o.replace("EVPSubtitle","EVPSubtitle large"),r.prevText!=o){if(e.sW)e.tempVidStageWidth;r.text_do.setInnerHTML(o),r.setAlpha(0),setTimeout(function(){r.setAlpha(1),r.position()},300),r.hasText_bl=!0}r.prevText=o}},r.position=function(t){if(r.isLoaded_bl){var o;r.text_do.setWidth(e.tempVidStageWidth);var s=r.text_do.getHeight();o=e.controller_do?e.controller_do.isShowed_bl?parseInt(e.sH-e.controller_do.h-s):parseInt(e.sH-s-10):parseInt(e.sH-s),FWDAnimation.killTweensOf(r.text_do),t?FWDAnimation.to(r.text_do,.8,{y:o,ease:Expo.easeInOut}):r.text_do.setY(o)}},r.show=function(){r.setVisible(!0)},r.hide=function(){r.setVisible(!1)},r.init()};o.getDuration=function(e){var t=0,o=0,s=0;return e=e.split(":"),t=e[0],"0"==t[0]&&"0"!=t[1]&&(t=parseInt(t[1])),"00"==t&&(t=0),o=e[1],"0"==o[0]&&"0"!=o[1]&&(o=parseInt(o[1])),"00"==o&&(o=0),secs=parseInt(e[2].replace(/,.*/ig,"")),"0"==secs[0]&&"0"!=secs[1]&&(secs=parseInt(secs[1])),"00"==secs&&(secs=0),0!=t&&(s+=60*(60*t)),0!=o&&(s+=60*o),s+=secs,s},o.setPrototype=function(){o.prototype=null,o.prototype=new FWDEVPDO("div")},o.LOAD_ERROR="error",o.LOAD_COMPLETE="complete",o.prototype=null,t.FWDEVPSubtitle=o}(window),function(e){function t(){for(var e=["transform","msTransform","WebkitTransform","MozTransform","OTransform","KhtmlTransform"],t,o;t=e.shift();)if("undefined"!=typeof s.dumy.style[t]&&(s.dumy.style.position="absolute",o=s.dumy.getBoundingClientRect().left,s.dumy.style[t]="translate3d(500px, 0px, 0px)",o=Math.abs(s.dumy.getBoundingClientRect().left-o),100<o&&900>o)){try{document.documentElement.removeChild(s.dumy)}catch(t){}return!0}try{document.documentElement.removeChild(s.dumy)}catch(t){}return!1}function o(){for(var e=["transform","msTransform","WebkitTransform","MozTransform","OTransform","KhtmlTransform"],t;t=e.shift();)if("undefined"!=typeof s.dumy.style[t])return!0;try{document.documentElement.removeChild(s.dumy)}catch(t){}return!1}var s=function(){'use strict'};s.dumy=document.createElement("div"),s.trim=function(e){return e.replace(/\s/gi,"")},s.storArrayBasedOnObjectValue=function(e,t){e.sort(function(e){var t=1;return"-"===e[0]&&(t=-1,e=e.substr(1)),function(o,s){var n=o[e]<s[e]?-1:o[e]>s[e]?1:0;return n*t}}(t))},s.trimAndFormatUrl=function(e){return e=e.toLocaleLowerCase(),e=e.replace(/ /g,"-"),e},s.splitAndTrim=function(e,t){for(var o=e.split(","),n=o.length,r=0;r<n;r++)t&&(o[r]=s.trim(o[r]));return o},s.checkTime=function(e){return!!/^(?:2[0-3]|[01][0-9]):[0-5][0-9]:[0-5][0-9]$/.test(e)},s.formatTime=function(e){e=Math.round(e);var t=Math.floor(e/3600),o=e%3600,s=Math.floor(o/60),n=Math.ceil(o%60);return s=10<=s?s:"0"+s,n=10<=n?n:"0"+n,isNaN(n)?"00:00":t?10<=t?t+":"+s+":"+n:"0"+t+":"+s+":"+n:s+":"+n},s.formatTimeWithMiliseconds=function(e){var o=parseInt(e.split(":")[0]),s=parseInt(e.split(":")[1]),n=parseInt(e.split(":")[2]),r=parseInt(e.split(",")[1]||e.split(".")[1]),a=60*(60*o)+60*s+n+r/1e3;return a=Math.round(100*a)/100,a},s.isLocal=function(){return-1!=location.protocol.indexOf("file:")}(),s.xmlToJson=function(e){var t={};if(!(1==e.nodeType))3==e.nodeType?t=e.nodeValue.trim():4==e.nodeType&&(t=e.nodeValue);else if(0<e.attributes.length){t["@attributes"]={};for(var o=0,n;o<e.attributes.length;o++)n=e.attributes.item(o),t["@attributes"][n.nodeName]=n.nodeValue}if(e.hasChildNodes())for(var r=0;r<e.childNodes.length;r++){var a=e.childNodes.item(r),d=a.nodeName;if("undefined"==typeof t[d])t[d]=s.xmlToJson(a);else{if("undefined"==typeof t[d].length){var l=t[d];t[d]=[],t[d].push(l)}"object"==typeof t[d]&&t[d].push(s.xmlToJson(a))}}return t},s.isIMA=function(e){return!!e.match(/doubleclick.net/ig)||!!(e.match(/ad_type=/ig)&&e.match(/client=/ig))||void 0},s.isURLEncoded=function(e){try{var t=decodeURIComponent(e);if(t!=e&&-1!=e.indexOf("%"))return!0}catch(t){}return!1},s.getValidSource=function(e){if(e){var t="null"==location.origin?"":location.origin,o=location.pathname;-1!=o.indexOf(".")&&(o=o.substr(0,o.lastIndexOf("/")+1));var n=-1!=e.indexOf("http:")||-1!=e.indexOf("https:")||s.isLocal;n||(e=t+o+e);var r=e.substr(0,e.lastIndexOf("/")+1);s.isURLEncoded(r)||(r=encodeURI(r));var a=e.substr(e.lastIndexOf("/")+1);return a=e.match(/\.mp3|\.mp4|\.m3u8|\.txt|\.srt|\.vtt|\.jpg|\.jpeg|\.png/ig)&&!e.match(/\.s3|\drive.|filedn.|cloudfront.|\?/ig)?s.isURLEncoded(a)?e.substr(e.lastIndexOf("/")+1):encodeURI(e.substr(e.lastIndexOf("/")+1)):e.substr(e.lastIndexOf("/")+1),e=r+a,e}},s.getSecondsFromString=function(e){var t=0,o=0,s=0;if(e)return e=e.split(":"),t=e[0],"0"==t[0]&&"0"!=t[1]&&(t=parseInt(t[1])),"00"==t&&(t=0),o=e[1],"0"==o[0]&&"0"!=o[1]&&(o=parseInt(o[1])),"00"==o&&(o=0),secs=parseInt(e[2].replace(/,.*/ig,"")),"0"==secs[0]&&"0"!=secs[1]&&(secs=parseInt(secs[1])),"00"==secs&&(secs=0),0!=t&&(s+=60*(60*t)),0!=o&&(s+=60*o),s+=secs,s},s.MD5=function(e){function t(e,t){return e<<t|e>>>32-t}function o(e,t){var o,s,n,r,a;return n=2147483648&e,r=2147483648&t,o=1073741824&e,s=1073741824&t,a=(1073741823&e)+(1073741823&t),o&s?2147483648^a^n^r:o|s?1073741824&a?3221225472^a^n^r:1073741824^a^n^r:a^n^r}function n(e,t,o){return e&t|~e&o}function r(e,t,o){return e&o|t&~o}function l(e,t,o){return e^t^o}function _(e,t,o){return t^(e|~o)}function s(e,r,l,_,d,u,s){return e=o(e,o(o(n(r,l,_),d),s)),o(t(e,u),r)}function u(e,n,l,_,d,u,s){return e=o(e,o(o(r(n,l,_),d),s)),o(t(e,u),n)}function p(e,n,r,_,d,u,s){return e=o(e,o(o(l(n,r,_),d),s)),o(t(e,u),n)}function h(e,n,r,l,d,u,s){return e=o(e,o(o(_(n,r,l),d),s)),o(t(e,u),n)}function m(e){for(var t=e.length,o=t+8,s=16*((o-o%64)/64+1),n=Array(s-1),r=0,a=0,d;a<t;)d=(a-a%4)/4,r=8*(a%4),n[d]|=e.charCodeAt(a)<<r,a++;return d=(a-a%4)/4,r=8*(a%4),n[d]|=128<<r,n[s-2]=t<<3,n[s-1]=t>>>29,n}function g(e){var t="",o="",s,n;for(n=0;3>=n;n++)s=255&e>>>8*n,o="0"+s.toString(16),t+=o.substr(o.length-2,2);return t}function y(e){e=e.replace(/\r\n/g,"\n");for(var t="",o=0,s;o<e.length;o++)s=e.charCodeAt(o),128>s?t+=String.fromCharCode(s):127<s&&2048>s?(t+=String.fromCharCode(192|s>>6),t+=String.fromCharCode(128|63&s)):(t+=String.fromCharCode(224|s>>12),t+=String.fromCharCode(128|63&s>>6),t+=String.fromCharCode(128|63&s));return t}var S=[],v=7,f=12,P=17,T=22,B=5,C=9,w=14,E=20,H=4,O=11,L=16,A=23,I=6,M=10,W=15,R=21,D,V,F,U,N,X,Y,z,Q;for(e=y(e),S=m(e),X=1732584193,Y=4023233417,z=2562383102,Q=271733878,D=0;D<S.length;D+=16)V=X,F=Y,U=z,N=Q,X=s(X,Y,z,Q,S[D+0],v,3614090360),Q=s(Q,X,Y,z,S[D+1],f,3905402710),z=s(z,Q,X,Y,S[D+2],P,606105819),Y=s(Y,z,Q,X,S[D+3],T,3250441966),X=s(X,Y,z,Q,S[D+4],v,4118548399),Q=s(Q,X,Y,z,S[D+5],f,1200080426),z=s(z,Q,X,Y,S[D+6],P,2821735955),Y=s(Y,z,Q,X,S[D+7],T,4249261313),X=s(X,Y,z,Q,S[D+8],v,1770035416),Q=s(Q,X,Y,z,S[D+9],f,2336552879),z=s(z,Q,X,Y,S[D+10],P,4294925233),Y=s(Y,z,Q,X,S[D+11],T,2304563134),X=s(X,Y,z,Q,S[D+12],v,1804603682),Q=s(Q,X,Y,z,S[D+13],f,4254626195),z=s(z,Q,X,Y,S[D+14],P,2792965006),Y=s(Y,z,Q,X,S[D+15],T,1236535329),X=u(X,Y,z,Q,S[D+1],B,4129170786),Q=u(Q,X,Y,z,S[D+6],C,3225465664),z=u(z,Q,X,Y,S[D+11],w,643717713),Y=u(Y,z,Q,X,S[D+0],E,3921069994),X=u(X,Y,z,Q,S[D+5],B,3593408605),Q=u(Q,X,Y,z,S[D+10],C,38016083),z=u(z,Q,X,Y,S[D+15],w,3634488961),Y=u(Y,z,Q,X,S[D+4],E,3889429448),X=u(X,Y,z,Q,S[D+9],B,568446438),Q=u(Q,X,Y,z,S[D+14],C,3275163606),z=u(z,Q,X,Y,S[D+3],w,4107603335),Y=u(Y,z,Q,X,S[D+8],E,1163531501),X=u(X,Y,z,Q,S[D+13],B,2850285829),Q=u(Q,X,Y,z,S[D+2],C,4243563512),z=u(z,Q,X,Y,S[D+7],w,1735328473),Y=u(Y,z,Q,X,S[D+12],E,2368359562),X=p(X,Y,z,Q,S[D+5],H,4294588738),Q=p(Q,X,Y,z,S[D+8],O,2272392833),z=p(z,Q,X,Y,S[D+11],L,1839030562),Y=p(Y,z,Q,X,S[D+14],A,4259657740),X=p(X,Y,z,Q,S[D+1],H,2763975236),Q=p(Q,X,Y,z,S[D+4],O,1272893353),z=p(z,Q,X,Y,S[D+7],L,4139469664),Y=p(Y,z,Q,X,S[D+10],A,3200236656),X=p(X,Y,z,Q,S[D+13],H,681279174),Q=p(Q,X,Y,z,S[D+0],O,3936430074),z=p(z,Q,X,Y,S[D+3],L,3572445317),Y=p(Y,z,Q,X,S[D+6],A,76029189),X=p(X,Y,z,Q,S[D+9],H,3654602809),Q=p(Q,X,Y,z,S[D+12],O,3873151461),z=p(z,Q,X,Y,S[D+15],L,530742520),Y=p(Y,z,Q,X,S[D+2],A,3299628645),X=h(X,Y,z,Q,S[D+0],I,4096336452),Q=h(Q,X,Y,z,S[D+7],M,1126891415),z=h(z,Q,X,Y,S[D+14],W,2878612391),Y=h(Y,z,Q,X,S[D+5],R,4237533241),X=h(X,Y,z,Q,S[D+12],I,1700485571),Q=h(Q,X,Y,z,S[D+3],M,2399980690),z=h(z,Q,X,Y,S[D+10],W,4293915773),Y=h(Y,z,Q,X,S[D+1],R,2240044497),X=h(X,Y,z,Q,S[D+8],I,1873313359),Q=h(Q,X,Y,z,S[D+15],M,4264355552),z=h(z,Q,X,Y,S[D+6],W,2734768916),Y=h(Y,z,Q,X,S[D+13],R,1309151649),X=h(X,Y,z,Q,S[D+4],I,4149444226),Q=h(Q,X,Y,z,S[D+11],M,3174756917),z=h(z,Q,X,Y,S[D+2],W,718787259),Y=h(Y,z,Q,X,S[D+9],R,3951481745),X=o(X,V),Y=o(Y,F),z=o(z,U),Q=o(Q,N);var G=g(X)+g(Y)+g(z)+g(Q);return G.toLowerCase()},s.indexOfArray=function(e,t){for(var o=e.length,s=0;s<o;s++)if(e[s]===t)return s;return-1},s.randomizeArray=function(e){for(var t=[],o=e.concat(),s=o.length,n=0,r;n<s;n++)r=Math.floor(Math.random()*o.length),t.push(o[r]),o.splice(r,1);return t},s.getCookie=function(e){for(var t=e+"=",o=document.cookie.split(";"),s=0,n;s<o.length;s++){for(n=o[s];" "==n.charAt(0);)n=n.substring(1,n.length);if(0==n.indexOf(t))return n.substring(t.length,n.length)}return null},s.prt=function(t,o){for(void 0===o&&(o=1);o--&&t;)t=t.parentNode;return t&&1===t.nodeType?t:null},s.sibling=function(t,o){for(;t&&0!==o;)if(0<o){if(t.nextElementSibling)t=t.nextElementSibling;else for(var t=t.nextSibling;t&&1!==t.nodeType;t=t.nextSibling);o--}else{if(t.previousElementSibling)t=t.previousElementSibling;else for(var t=t.previousSibling;t&&1!==t.nodeType;t=t.previousSibling);o++}return t},s.getChildAt=function(t,e){var o=s.getChildren(t);return 0>e&&(e+=o.length),0>e?null:o[e]},s.getChildById=function(e){return document.getElementById(e)||void 0},s.getChildren=function(t,e){for(var o=[],s=t.firstChild;null!=s;s=s.nextSibling)e?o.push(s):1===s.nodeType&&o.push(s);return o},s.getChildrenFromAttribute=function(t,e,o){for(var n=[],r=t.firstChild;null!=r;r=r.nextSibling)o&&s.hasAttribute(r,e)?n.push(r):1===r.nodeType&&s.hasAttribute(r,e)&&n.push(r);return 0==n.length?void 0:n},s.getChildFromNodeListFromAttribute=function(t,e,o){for(var n=t.firstChild;null!=n;n=n.nextSibling){if(o&&s.hasAttribute(n,e))return n;if(1===n.nodeType&&s.hasAttribute(n,e))return n}},s.getAttributeValue=function(t,e){return s.hasAttribute(t,e)?t.getAttribute(e):void 0},s.hasAttribute=function(t,e){if(t.hasAttribute)return t.hasAttribute(e);var o=t.attributes[e];return!!o},s.insertNodeAt=function(e,t,o){var n=s.children(e);if(0>o||o>n.length)throw new Error("invalid index!");else e.insertBefore(t,n[o])},s.hasCanvas=function(){return!!document.createElement("canvas")},s.getCanvasWithModifiedColor=function(e,t,o){if(e){var s=document.createElement("canvas"),n=s.getContext("2d"),r=null,a=null,d=parseInt(t.replace(/^#/,""),16),l={R:255&d>>>16,G:255&d>>>8,B:255&d},_;s.style.position="absolute",s.style.left="0px",s.style.top="0px",s.style.margin="0px",s.style.padding="0px",s.style.maxWidth="none",s.style.maxHeight="none",s.style.border="none",s.style.lineHeight="1",s.style.backgroundColor="transparent",s.style.backfaceVisibility="hidden",s.style.webkitBackfaceVisibility="hidden",s.style.MozBackfaceVisibility="hidden",s.style.MozImageRendering="optimizeSpeed",s.style.WebkitImageRendering="optimizeSpeed",s.width=e.width,s.height=e.height,n.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.width,e.height),r=n.getImageData(0,0,e.width,e.height),a=n.getImageData(0,0,e.width,e.height);for(var u=0,c=r.data.length;u<c;u+=4)0<a.data[u+3]&&(a.data[u]=r.data[u]/255*l.R,a.data[u+1]=r.data[u+1]/255*l.G,a.data[u+2]=r.data[u+2]/255*l.B);return n.globalAlpha=.5,n.putImageData(a,0,0),n.drawImage(s,0,0),o&&(_=new Image,_.src=s.toDataURL()),{canvas:s,image:_}}},s.changeCanvasHEXColor=function(e,t,o,s){if(e){var t=t,n=t.getContext("2d"),r=null,a=null,d=parseInt(o.replace(/^#/,""),16),l={R:255&d>>>16,G:255&d>>>8,B:255&d};t.width=e.width,t.height=e.height,n.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.width,e.height),r=n.getImageData(0,0,e.width,e.height),a=n.getImageData(0,0,e.width,e.height);for(var _=0,u=r.data.length;_<u;_+=4)0<a.data[_+3]&&(a.data[_]=r.data[_]/255*l.R,a.data[_+1]=r.data[_+1]/255*l.G,a.data[_+2]=r.data[_+2]/255*l.B);if(n.globalAlpha=.5,n.putImageData(a,0,0),n.drawImage(t,0,0),s){var c=new Image;return c.src=t.toDataURL(),c}}},s.hitTest=function(e,t,o){if(!e)throw Error("Hit test target is null!");var s=e.getBoundingClientRect();return!!(t>=s.left&&t<=s.left+(s.right-s.left)&&o>=s.top&&o<=s.top+(s.bottom-s.top))},s.getScrollOffsets=function(){return null==e.pageXOffset?"CSS1Compat"==document.compatMode?{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop}:void 0:{x:e.pageXOffset,y:e.pageYOffset}},s.getViewportSize=function(){return s.hasPointerEvent&&1<navigator.msMaxTouchPoints?{w:document.documentElement.clientWidth||e.innerWidth,h:document.documentElement.clientHeight||e.innerHeight}:s.isMobile?{w:e.innerWidth,h:e.innerHeight}:{w:document.documentElement.clientWidth||e.innerWidth,h:document.documentElement.clientHeight||e.innerHeight}},s.getViewportMouseCoordinates=function(t){var e=s.getScrollOffsets();return t.touches?{screenX:null==t.touches[0]?t.touches.pageX-e.x:t.touches[0].pageX-e.x,screenY:null==t.touches[0]?t.touches.pageY-e.y:t.touches[0].pageY-e.y}:{screenX:t.clientX==null?t.pageX-e.x:t.clientX,screenY:t.clientY==null?t.pageY-e.y:t.clientY}},s.hexToRgb=function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,o,s){return t+t+o+o+s+s});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t=t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null,"rgb("+t.r+","+t.g+","+t.b+")"},s.hasPointerEvent=function(){return!!e.navigator.msPointerEnabled||!!e.navigator.pointerEnabled}(),s.isMobile=function(){if(s.hasPointerEvent&&1<navigator.msMaxTouchPoints||s.hasPointerEvent&&1<navigator.maxTouchPoints)return!0;var t=["android","webos","iphone","ipad","blackberry","kfsowi"];for(i in t)if(-1!=navigator.userAgent.toLowerCase().indexOf(t[i]))return!0;return!("macintel"!==navigator.platform.toLowerCase()||!(1<navigator.maxTouchPoints)||e.MSStream)}(),s.isAndroid=function(){return-1!=navigator.userAgent.toLowerCase().indexOf("android".toLowerCase())}(),s.hasWEBGL=function(){try{var t=document.createElement("canvas");return!!e.WebGLRenderingContext&&(t.getContext("webgl")||t.getContext("experimental-webgl"))}catch(t){return!1}}(),s.isLocal=function(){return!("file:"!=document.location.protocol)}(),s.isIOS=function(){return navigator.userAgent.match(/(iPad|iPhone|iPod)/g)}(),s.isSafari=function(){return-1!=navigator.userAgent.toLowerCase().indexOf("safari")&&-1==navigator.userAgent.toLowerCase().indexOf("chrome")}(),s.isOpera=function(){return-1!=navigator.userAgent.toLowerCase().indexOf("opr")}(),s.isFirefox=function(){return-1!=navigator.userAgent.toLowerCase().indexOf("firefox")}(),s.isIEWebKit=function(){return!!document.documentElement.msRequestFullscreen}(),s.isIE=function(){var e=!(-1==navigator.userAgent.toLowerCase().indexOf("msie"))||!(-1==navigator.userAgent.toLowerCase().indexOf("edge"));return e||!!document.documentElement.msRequestFullscreen}(),s.isIEAndLessThen9=function(){return!(-1==navigator.userAgent.toLowerCase().indexOf("msie 7"))||!(-1==navigator.userAgent.toLowerCase().indexOf("msie 8"))}(),s.isChrome=function(){if(s.isIE)return!1;var e=navigator.userAgent.toLowerCase();return e.match(/browser/ig)?void 0:e.match(/chrome/ig)}(),s.isIE7=function(){return!(-1==navigator.userAgent.toLowerCase().indexOf("msie 7"))}(),s.isApple=function(){return!(-1==navigator.appVersion.toLowerCase().indexOf("mac"))}(),s.IOS=function(){return /iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints}(),s.isIphone=function(){return navigator.userAgent.match(/(iPhone|iPod)/g)}(),s.hasFullScreen=function(){return s.dumy.requestFullScreen||s.dumy.mozRequestFullScreen||s.dumy.webkitRequestFullScreen||s.dumy.msieRequestFullScreen}();s.volumeCanBeSet=function(){var e=document.createElement("audio");if(e)return e.volume=0,0==e.volume}(),s.getVideoFormat=function(){var e=document.createElement("video");if(e.canPlayType){var t;return"probably"==e.canPlayType("video/mp4")||"maybe"==e.canPlayType("video/mp4")?t=".mp4":"probably"==e.canPlayType("video/ogg")||"maybe"==e.canPlayType("video/ogg")?t=".ogg":("probably"==e.canPlayType("video/webm")||"maybe"==e.canPlayType("video/webm"))&&(t=".webm"),e=null,t}}(),s.onReady=function(t){document.addEventListener?e.addEventListener("DOMContentLoaded",function(){s.checkIfHasTransofrms(),s.hasFullScreen=s.checkIfHasFullscreen(),setTimeout(t,100)}):document.onreadystatechange=function(){s.checkIfHasTransofrms(),s.hasFullScreen=s.checkIfHasFullscreen(),"complete"==document.readyState&&setTimeout(t,100)}},s.checkIfHasTransofrms=function(){document.documentElement.appendChild(s.dumy),s.hasTransform3d=t(),s.hasTransform2d=o(),s.isReadyMethodCalled_bl=!0},s.checkIfHasFullscreen=function(){return!!(document.documentElement.requestFullScreen||document.documentElement.mozRequestFullScreen||document.documentElement.webkitRequestFullScreen||document.documentElement.msRequestFullscreen)},s.smpBtnNPos=function(){FWDEVPSimpleButton.prototype.hasT3D=!1,FWDEVPSimpleButton.prototype.hasT2D=!1},s.cmpBtnNPos=function(){FWDEVPComplexButton.prototype.hasT3D=!1,FWDEVPComplexButton.prototype.hasT2D=!1},s.disableElementSelection=function(t){try{t.style.userSelect="none"}catch(t){}try{t.style.MozUserSelect="none"}catch(t){}try{t.style.webkitUserSelect="none"}catch(t){}try{t.style.khtmlUserSelect="none"}catch(t){}try{t.style.oUserSelect="none"}catch(t){}try{t.style.msUserSelect="none"}catch(t){}try{t.msUserSelect="none"}catch(t){}t.onselectstart=function(){return!1}},s.getUrlArgs=function(e){var t={},o=e.substr(e.indexOf("?")+1)||location.search.substring(1);o=o.replace(/(\?*)(\/*)/g,"");for(var s=o.split("&"),n=0;n<s.length;n++){var r=s[n].indexOf("="),a=s[n].substring(0,r),d=s[n].substring(r+1);d=decodeURIComponent(d),t[a]=d}return t},s.getHashUrlArgs=function(e){var t={},o=e.substr(e.indexOf("#")+1)||location.search.substring(1);o=o.replace(/(\?*)(\/*)/g,"");for(var s=o.split("&"),n=0;n<s.length;n++){var r=s[n].indexOf("="),a=s[n].substring(0,r),d=s[n].substring(r+1);d=decodeURIComponent(d),t[a]=d}return t},s.validateEmail=function(e){return!!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e)},s.isReadyMethodCalled_bl=!1,e.FWDEVPUtils=s}(window),function(t){var o=function(s,n,r){'use strict';var a=this,e=o.prototype;a.backgroundColor_str=n,a.controllerHeight=s._d.controllerHeight,a.sW=0,a.sH=0,a.lastPercentPlayed=0,a.volume=r,a.curDuration=0,a.countNormalMp3Errors=0,a.countShoutCastErrors=0,a.maxShoutCastCountErrors=5,a.maxNormalCountErrors=1,a.disableClickForAWhileId_to,a.greenScreenTolerance=s._d.greenScreenTolerance,a.hasError_bl=!0,a.isStopped_bl=!0,a.isMobile_bl=FWDEVPUtils.isMobile,a.init=function(){a.setupVideo(),a.setBkColor(a.backgroundColor_str)},a.setupVideo=function(){null==a.video_el&&(a.video_el=document.createElement("video"),a.screen.className="video-screen-holder",a.screen.appendChild(a.video_el),a.video_el.controls=!1,s._d.playsinline&&(a.video_el.WebKitPlaysInline=!0,a.video_el.playsinline=!0,a.video_el.setAttribute("playsinline",""),a.video_el.setAttribute("webkit-playsinline","")),a.video_el.style.position="absolute",a.video_el.style.left="0px",a.video_el.style.top="0px",a.video_el.style.width="100%",a.video_el.style.height="100%",a.video_el.style.margin="0px",a.video_el.style.padding="0px",a.video_el.style.maxWidth="none",a.video_el.style.maxHeight="none",a.video_el.style.border="none",a.video_el.style.lineHeight="0",a.video_el.style.msTouchAction="none",s.isAdd_bl?a.setPlaybackRate(1):a.setPlaybackRate(s._d.defaultPlaybackRate_ar[s._d.startAtPlaybackIndex]),a.screen.appendChild(a.video_el)),a.video_el.volume=a.volume,(s.displayType==FWDEVPlayer.BACKGROUND_VIDEO||s._d.autoPlay_bl)&&(a.video_el.muted=!0),a.video_el.addEventListener("error",a.errorHandler),a.video_el.addEventListener("progress",a.updateProgress),a.video_el.addEventListener("timeupdate",a.updateVideo),a.video_el.addEventListener("pause",a.pauseHandler),a.video_el.addEventListener("play",a.playHandler),FWDEVPUtils.isIE||a.video_el.addEventListener("waiting",a.startToBuffer),a.video_el.addEventListener("playing",a.stopToBuffer),a.video_el.addEventListener("canplaythrough",a.stopToBuffer),a.video_el.addEventListener("ended",a.endedHandler),a.video_el.addEventListener("loadedmetadata",a.metaDataHandler)},a.destroyVideo=function(){a.video_el&&(a.video_el.removeEventListener("error",a.errorHandler),a.video_el.removeEventListener("progress",a.updateProgress),a.video_el.removeEventListener("timeupdate",a.updateVideo),a.stopToUpdateSubtitles(),a.video_el.removeEventListener("pause",a.pauseHandler),a.video_el.removeEventListener("play",a.playHandler),!FWDEVPUtils.isIE&&a.video_el.removeEventListener("waiting",a.startToBuffer),a.video_el.removeEventListener("playing",a.stopToBuffer),a.video_el.removeEventListener("canplaythrough",a.stopToBuffer),a.video_el.removeEventListener("ended",a.endedHandler),a.video_el.removeEventListener("loadedmetadata",a.metaDataHandler),a.video_el.src=a.sourcePath_str,FWDAnimation.killTweensOf(a),a.setAlpha(0),FWDAnimation.to(a,.6,{alpha:1,delay:.4}))},a.startToBuffer=function(){a.dispatchEvent(o.START_TO_BUFFER)},a.stopToBuffer=function(){a.dispatchEvent(o.STOP_TO_BUFFER)},a.metaDataHandler=function(){s.fillEntireVideoScreen_bl&&s.resizeHandler()},a.errorHandler=function(n){if(s.videoType_str==FWDEVPlayer.VIDEO){var e;a.hasError_bl=!0,e=0==a.video_el.networkState?"Error - networkState = 0":1==a.video_el.networkState?"Error networkState = 1":3==a.video_el.networkState?"Source not found":n,t.console&&t.console.log(a.video_el.networkState),a.dispatchEvent(o.ERROR,{text:e})}},a.resizeAndPosition=function(e,t,o,n){e&&(a.sW=e,a.sH=t),a.setWidth(a.sW),a.setHeight(a.sH),o&&(a.setX(o),a.setY(n)),s.is360&&a.renderer&&(a.camera.aspect=a.sW/a.sH,a.camera.updateProjectionMatrix(),a.renderer.setSize(a.sW,a.sH)),a.resizeGR()},a.setSource=function(e){a.stopToUpdateSubtitles(),(s.is360||s.isGR&&a.video_el)&&(a.video_el.style.visibility="hidden"),a.sourcePath_str=e,a.video_el&&a.stop(),s.isGR||a.initVideo()},a.play=function(e,t){if(FWDEVPlayer.curInstance=s,a.isStopped_bl&&s.videoType_str!=FWDEVPlayer.HLS_JS||t)a.initVideo(),a.play(),a.isPlaying_bl=!0,a.hastStaredToPlayHLS_bl=!0,a.startToBuffer(!0);else if(!a.video_el.ended||e)try{a.hasError_bl=!1,a.isStopped_bl=!1,a.isPlaying_bl=!0,a.hasPlayedOnce_bl=!0,a.hastStaredToPlayHLS_bl=!0,a.video_el.play(),a.setVolume(),FWDEVPUtils.isIE&&a.dispatchEvent(o.PLAY)}catch(t){}s.is360?a.add360Vid():s.isGR&&a.addGreenScreen()},a.initVideo=function(){a.isPlaying_bl=!1,a.hasError_bl=!1,a.allowScrubing_bl=!1,a.isStopped_bl=!1,a.setupVideo(),a.video_el.style.visibility="visible",a.setVolume(),a.video_el.src=a.sourcePath_str,FWDAnimation.killTweensOf(a),a.setAlpha(0),FWDAnimation.to(a,.6,{alpha:1,delay:.4})},a.pause=function(){if(!(null==a||a.isStopped_bl||a.hasError_bl)&&!a.video_el.ended)try{a.video_el.pause(),a.isPlaying_bl=!1,FWDEVPUtils.isIE&&a.dispatchEvent(o.PAUSE)}catch(t){}},a.togglePlayPause=function(){null!=a&&a.isSafeToBeControlled_bl&&(a.isPlaying_bl?a.pause():a.play())},a.pauseHandler=function(){a.allowScrubing_bl||(a.stopGRRender(),a.dispatchEvent(o.PAUSE))},a.playHandler=function(){a.allowScrubing_bl||(a.hastStaredToPlayHLS_bl=!0,a.startToUpdateSubtitles(),!a.isStartEventDispatched_bl&&(a.dispatchEvent(o.START),a.isStartEventDispatched_bl=!0),s.is360?a.start360Render():s.isGR&&a.startGRRender(),a.stopToBuffer(),a.dispatchEvent(o.PLAY))},a.endedHandler=function(){a.stopToUpdateSubtitles(),a.dispatchEvent(o.PLAY_COMPLETE)},a.resume=function(){a.isStopped_bl||a.play()},a.stop=function(e){(null==a||null==a.video_el||a.isStopped_bl)&&!e||(a.isPlaying_bl=!1,a.isStopped_bl=!0,a.hastStaredToPlayHLS_bl=!1,a.hasPlayedOnce_bl=!0,a.isSafeToBeControlled_bl=!1,a.isStartEventDispatched_bl=!1,a.stopToUpdateSubtitles(),a.stop360Render(),a.stopGRRender(),a.contextGR2&&(a.contextGR2.save(),a.contextGR2.globalCompositeOperation="copy",a.contextGR2.fillStyle="rgba(0,0,0,0)",a.contextGR2.fill(),a.contextGR2.restore()),a.contains(a.canvasGR2)&&a.removeChild(a.canvasGR2),a.destroyVideo(),a.dispatchEvent(o.LOAD_PROGRESS,{percent:0}),a.dispatchEvent(o.UPDATE_TIME,{curTime:"00:00",totalTime:"00:00"}),a.dispatchEvent(o.STOP),a.stopToBuffer())},a.safeToBeControlled=function(){(s.videoType_str!=FWDEVPlayer.HLS_JS||a.hastStaredToPlayHLS_bl)&&(a.isSafeToBeControlled_bl||(s.resizeHandler(),a.stopToScrub(),a.hasHours_bl=0<Math.floor(a.video_el.duration/3600),a.isPlaying_bl=!0,a.isSafeToBeControlled_bl=!0,!s.is360&&!s.isGR&&(a.video_el.style.visibility="visible"),a.dispatchEvent(o.SAFE_TO_SCRUBB)))},a.updateProgress=function(){if(s.videoType_str!=FWDEVPlayer.HLS_JS||a.hastStaredToPlayHLS_bl){var e=0,t;0<a.video_el.buffered.length&&(t=a.video_el.buffered.end(a.video_el.buffered.length-1),e=t.toFixed(1)/a.video_el.duration.toFixed(1),(isNaN(e)||!e)&&(e=0)),1==e&&a.video_el.removeEventListener("progress",a.updateProgress),a.dispatchEvent(o.LOAD_PROGRESS,{percent:e})}},a.updateVideo=function(){var e;a.allowScrubing_bl||(e=a.video_el.currentTime/a.video_el.duration,a.dispatchEvent(o.UPDATE,{percent:e})),a.video_el.currentTime&&.1<=a.video_el.currentTime&&a.safeToBeControlled();var t=FWDEVPUtils.formatTime(a.video_el.duration),s=FWDEVPUtils.formatTime(a.video_el.currentTime);isNaN(a.video_el.duration)?a.dispatchEvent(o.UPDATE_TIME,{curTime:"00:00",totalTime:"00:00",seconds:0}):a.dispatchEvent(o.UPDATE_TIME,{curTime:s,totalTime:t,seconds:Math.round(a.video_el.currentTime),totalTimeInSeconds:Math.round(a.video_el.duration)}),a.lastPercentPlayed=e,a.curDuration=s},a.startToScrub=function(){a.allowScrubing_bl=!0},a.stopToScrub=function(){a.allowScrubing_bl=!1},a.scrubbAtTime=function(e){a.video_el.currentTime=e;var t=FWDEVPUtils.formatTime(a.video_el.duration),s=FWDEVPUtils.formatTime(a.video_el.currentTime);a.dispatchEvent(o.UPDATE_TIME,{curTime:s,totalTime:t})},a.scrub=function(t,s){s&&a.startToScrub();try{a.video_el.currentTime=a.video_el.duration*t;var e=FWDEVPUtils.formatTime(Math.round(a.video_el.duration)),n=FWDEVPUtils.formatTime(Math.round(a.video_el.currentTime));a.dispatchEvent(o.UPDATE_TIME,{curTime:n,totalTime:e})}catch(t){}},a.replay=function(){a.scrub(0),a.play()},a.setPlaybackRate=function(e){a.video_el&&(a.video_el.defaultPlaybackRate=e,a.video_el.playbackRate=e)},a.setVolume=function(e){e!=null&&(a.volume=e),a.video_el&&(a.video_el.volume=a.volume,e&&(a.video_el.muted=!1))},a.stopToUpdateSubtitles=function(){clearInterval(a.startToUpdateSubtitleId_int)},a.startToUpdateSubtitles=function(){clearInterval(a.startToUpdateSubtitleId_int),a.startToUpdateSubtitleId_int=setInterval(a.updateSubtitleHandler,10)},a.updateSubtitleHandler=function(){a.dispatchEvent(o.UPDATE_SUBTITLE,{curTime:a.video_el.currentTime})},a.addGreenScreen=function(){a.canvasGR2||(a.canvasGR1=new FWDEVPDO("canvas"),a.contextGR1=a.canvasGR1.screen.getContext("2d"),a.canvasGR2=new FWDEVPDO("canvas"),a.contextGR2=a.canvasGR2.screen.getContext("2d")),a.video_el.style.visibility="hidden",a.renderFR()},a.startGRRender=function(){a.isGRRendering_bl=!0;FWDEVPUtils.isLocal||(!a.contains(a.canvasGR2)&&a.addChild(a.canvasGR2),cancelAnimationFrame(a.requestId),a.requestId=requestAnimationFrame(a.renderFR))},a.stopGRRender=function(){a.isGRRendering_bl=!1,cancelAnimationFrame(a.requestId)},a.renderFR=function(){if(!FWDEVPUtils.isLocal){if(a.isGRRendering_bl&&cancelAnimationFrame(a.requestId),a.contextGR1){0!=a.video_el.videoWidth&&a.prevCurCavasGRWidth!=a.video_el.videoWidth&&(a.canvasGR1.screen.width=a.video_el.videoWidth,a.canvasGR1.screen.height=a.video_el.videoHeight,a.canvasGR2.screen.width=a.video_el.videoWidth,a.canvasGR2.screen.height=a.video_el.videoHeight),a.prevCurCavasGRWidth=a.video_el.videoWidth,a.contextGR1.drawImage(a.video_el,0,0,a.canvasGR1.screen.width,a.canvasGR1.screen.height);for(var e=a.contextGR1.getImageData(0,0,a.canvasGR1.screen.width,a.canvasGR1.screen.height),t=e.data,o=0,s=t.length,n;o<s;o+=4)n=Math.abs(t[o]-t[0])+Math.abs(t[o+1]-t[1])+Math.abs(t[o+2]-t[2]),n<a.greenScreenTolerance&&(t[o+3]=0);a.contextGR2.putImageData(e,0,0)}a.resizeGR(),a.requestId=requestAnimationFrame(a.renderFR)}},a.resizeGR=function(){s.isGR&&a.canvasGR2&&(a.canvasGR2.setWidth(a.sW),a.canvasGR2.setX(Math.round((s.sW-a.sW)/2)),a.canvasGR2.setY(Math.round((s.sH-a.canvasGR2.getHeight())/2)))},a.add360Vid=function(){return a.renderer?void a.screen.appendChild(a.renderer.domElement):void(a.renderer=new THREE.WebGLRenderer({antialias:!0}),a.renderer.setSize(a.sW,a.sH),a.renderer.domElement.style.position="absolute",a.renderer.domElement.style.left="0px",a.renderer.domElement.style.top="0px",a.renderer.domElement.style.margin="0px",a.renderer.domElement.style.padding="0px",a.renderer.domElement.style.maxWidth="none",a.renderer.domElement.style.maxHeight="none",a.renderer.domElement.style.border="none",a.renderer.domElement.style.lineHeight="1",a.renderer.domElement.style.backgroundColor="transparent",a.renderer.domElement.style.backfaceVisibility="hidden",a.renderer.domElement.style.webkitBackfaceVisibility="hidden",a.renderer.domElement.style.MozBackfaceVisibility="hidden",a.renderer.domElement.style.MozImageRendering="optimizeSpeed",a.renderer.domElement.style.WebkitImageRendering="optimizeSpeed",a.screen.appendChild(a.renderer.domElement),a.scene=new THREE.Scene,a.video_el.setAttribute("crossorigin","anonymous"),a.canvas=document.createElement("canvas"),a.context=a.canvas.getContext("2d"),a.videoTexture=FWDEVPUtils.isFirefox?new THREE.Texture(a.video_el):new THREE.Texture(a.canvas),a.videoTexture.minFilter=THREE.LinearFilter,a.videoTexture.magFilter=THREE.LinearFilter,a.videoTexture.format=THREE.RGBFormat,a.cubeGeometry=new THREE.SphereGeometry(500,60,40),a.sphereMat=new THREE.MeshBasicMaterial({map:a.videoTexture}),a.sphereMat.side=THREE.BackSide,a.cube=new THREE.Mesh(a.cubeGeometry,a.sphereMat),a.scene.add(a.cube),a.camera=new THREE.PerspectiveCamera(45,a.sW/a.sH,.1,1e4),a.camera.position.y=0,a.camera.position.z=500,a.camera.position.x=0,a.scene.add(a.camera),a.controls=new THREE.OrbitControls(a.camera,s.dClk_do.screen),a.controls.enableDamping=!0,a.controls.enableZoom=!0,a.controls.dampingFactor=.25,a.controls.maxDistance=500,a.controls.minDistance=500,a.controls.maxAzimuthAngle=1/0,a.controls.rotateLeft(90*Math.PI/180),a.controls.enabled=!0,a.render())},a.start360Render=function(){a.is360Rendering_bl=!0,cancelAnimationFrame(a.requestId),a.requestId=requestAnimationFrame(a.render)},a.stop360Render=function(){if(a.is360Rendering_bl=!1,!!a.camera){a.camera.position.y=0,a.camera.position.z=500,a.camera.position.x=0,cancelAnimationFrame(a.requestId);try{a.screen.removeChild(a.renderer.domElement)}catch(t){}}},a.render=function(){a.camera&&(a.is360Rendering_bl&&cancelAnimationFrame(a.requestId),a.video_el.readyState===a.video_el.HAVE_ENOUGH_DATA&&(a.videoTexture.needsUpdate=!0),!FWDEVPUtils.isFirefox&&a.context&&(0!=a.video_el.videoWidth&&(a.canvas.width=a.video_el.videoWidth,a.canvas.height=a.video_el.videoHeight),a.context.save(),a.context.scale(-1,1),a.context.drawImage(a.video_el,0,0,-1*a.canvas.width,a.canvas.height),a.context.restore()),a.controls.update(),a.renderer.render(a.scene,a.camera),a.requestId=requestAnimationFrame(a.render))},a.init()};o.setPrototype=function(){o.prototype=new FWDEVPDO("div")},o.UPDATE_SUBTITLE="updateSubtitle",o.ERROR="error",o.UPDATE="update",o.UPDATE_TIME="updateTime",o.SAFE_TO_SCRUBB="safeToControll",o.LOAD_PROGRESS="loadProgress",o.START="start",o.PLAY="play",o.PAUSE="pause",o.STOP="stop",o.PLAY_COMPLETE="playCompvare",o.START_TO_BUFFER="startToBuffer",o.STOP_TO_BUFFER="stopToBuffer",t.FWDEVPVideoScreen=o}(window),function(e){var t=function(e,o){'use strict';var s=this;s.lastQuality_str="auto",s.volume=o,s.controllerHeight=e._d.controllerHeight,s.hasBeenCreatedOnce_bl=!0,s.isStopped_bl=!0,s.isPausedInEvent_bl=!0,s.isShowed_bl=!0,s.isReady_bl=!1,s.isMobile_bl=FWDEVPUtils.isMobile,s.init=function(){s.hasT3D=!1,s.hasT2D=!1,s.setBackfaceVisibility(),e.main_do.addChildAt(s,1),s.resizeAndPosition(),s.setupVideo(),s.setupDisableClick(),s.setBkColor("#000000")},s.setupDisableClick=function(){s.disableClick_do=new FWDEVPDO("div"),s.addChild(s.disableClick_do)},s.showDisable=function(){e.tempVidStageWidth&&s.disableClick_do.w!=s.sW&&(s.disableClick_do.setWidth(e.tempVidStageWidth),FWDEVPUtils.isIphone?s.disableClick_do.setHeight(e.tempVidStageHeight-s.controllerHeight):s.disableClick_do.setHeight(e.tempVidStageHeight))},s.hideDisable=function(){0==s.disableClick_do.w||(s.disableClick_do.setWidth(0),s.disableClick_do.setHeight(0))},s.setupVideo=function(){if(!s.vimeoPlayer){s.iframe_do=new FWDEVPDO("iframe"),s.iframe_do.hasT3D=!1,s.iframe_do.hasT2D=!1;var t=0;e._d.showDefaultControllerForVimeo_bl&&(t=1);var o=0;e._d.playsinline&&(o=1),s.iframe_do.screen.setAttribute("src","https://player.vimeo.com/video/76979871?player_id="+e.instanceName_str+"vimeo&playsinline="+o+"&autoplay=0&background="+t+""),s.iframe_do.screen.setAttribute("id",e.instanceName_str+"vimeo"),s.iframe_do.screen.setAttribute("frameborder","0"),s.iframe_do.screen.setAttribute("allow","fullscreen; autoplay;"),s.iframe_do.screen.dataset.ready="true",e._d.autoPlay_bl&&s.iframe_do.screen.setAttribute("muted","1"),s.iframe_do.style().width="100%",s.iframe_do.style().height="100%",s.iframe_do.setBackfaceVisibility(),s.addChild(s.iframe_do),s.vimeoPlayer=new Vimeo.Player(s.iframe_do.screen),s.vimeoPlayer.on("play",function(){s.playHandler()}),s.vimeoPlayer.on("pause",function(){s.pauseHandler()}),s.vimeoPlayer.on("loadProgress",function(){s.loadProgressHandler()}),s.vimeoPlayer.on("ended",function(){s.finishHandler()}),s.vimeoPlayer.on("loaded",function(){s.loadedHandler()}),s.vimeoPlayer.ready().then(function(){s.readyHandler()}),s.blackOverlay_do=new FWDEVPDO("div"),s.blackOverlay_do.style().backgroundColor="#000000",s.blackOverlay_do.style().width="100%",s.blackOverlay_do.style().height="100%",s.addChild(s.blackOverlay_do)}},s.resizeAndPosition=function(){e.tempVidStageWidth&&(s.setWidth(e.tempVidStageWidth),s.setHeight(e.tempVidStageHeight))},s.setSource=function(o){o&&(s.sourcePath_str=o),s.hasError=!1,s.isStopped_bl=!1,s.stopToUpdateSubtitles();var n=e.wasAdd_bl,r=s.sourcePath_str.match(/[^\/]+$/i);s.vimeoPlayer.loadVideo(r).then(function(){s.setVolume(e.volume),(e._d.autoPlay_bl||e.isAdd_bl||n||e.wasAdd_bl||e.lightBox_do&&e.lightBox_do.showComplete_bl)&&e.play(),FWDAnimation.killTweensOf(s),s.setAlpha(0),FWDAnimation.to(s,.6,{alpha:1,delay:.4})}).catch(function(e){s.hasError=!0,console&&console.log(e),clearTimeout(s.displayErrorId_to),s.displayErrorId_to=setTimeout(function(){s.dispatchEvent(t.ERROR,{text:e})},500)})},s.readyHandler=function(){if(clearTimeout(s.intitErrorId_to),s.contains(s.blackOverlay_do)&&(clearTimeout(s.removeChildWithDelayId_to),s.removeChildWithDelayId_to=setTimeout(function(){s.removeChild(s.blackOverlay_do)},1500)),s.resizeAndPosition(),s.isReady_bl){try{s.vimeoPlayer.api("setColor","#FFFFFF")}catch(t){}return e.videoType_str==FWDEVPlayer.VIMEO&&s.setX(0),void(e._d.autoPlay_bl&&e.play())}s.isReady_bl=!0,s.dispatchEvent(t.READY)},s.loadedHandler=function(){s.isVideoLoaded_bl=!0},s.playHandler=function(){return s.isStopped_bl||s.sourcePath_str!=e.videoSource_str?void s.stop(!0,!0):void(clearInterval(s.startToPlayWithDelayId_to),clearTimeout(s.displayErrorId_to),s.isStopped_bl=!1,s.isSafeToBeControlled_bl=!0,s.startToUpdateSubtitles(),s.startToUpdate(),s.dispatchEvent(t.SAFE_TO_SCRUBB),s.dispatchEvent(t.PLAY),s.hasHours_bl=0<Math.floor(s.getDuration()/3600))},s.loadProgressHandler=function(o){s.isShowed_bl||s.dispatchEvent(t.LOAD_PROGRESS,{percent:o.percent})},s.pauseHandler=function(){s.isPlaying_bl&&(s.isPlaying_bl=!1,clearInterval(s.startToPlayWithDelayId_to),s.dispatchEvent(t.PAUSE),s.stopToUpdate())},s.finishHandler=function(){e._d.loop_bl&&(s.stop(),setTimeout(s.play,200)),s.dispatchEvent(t.PLAY_COMPLETE)},s.play=function(){s.hasError||(s.vimeoPlayer.play(),FWDEVPlayer.curInstance=e,s.isPlaying_bl=!0,s.isStopped_bl=!1,s.hasError_bl=!1)},s.pause=function(){s.isStopped_bl||s.hasError_bl||(clearInterval(s.startToPlayWithDelayId_to),s.vimeoPlayer.pause(),s.stopToUpdate())},s.togglePlayPause=function(){s.isPlaying_bl?s.pause():s.play()},s.resume=function(){s.isStopped_bl||s.play()},s.startToUpdate=function(){clearInterval(s.updateVideoId_int),s.updateVideoId_int=setInterval(s.updateVideo,50)},s.stopToUpdate=function(){clearInterval(s.updateVideoId_int)},s.updateVideo=function(){var e;if(!s.vimeoPlayer)return void stopToUpdate();var o=FWDEVPUtils.formatTime(s.getDuration()),n=FWDEVPUtils.formatTime(s.getCurrentTime());return e=s.getCurrentTime()/s.getDuration(),isNaN(e)&&(e=0),s.getCurrentTime()==s.getDuration()?void s.finishHandler():void(s.dispatchEvent(FWDEVPYoutubeScreen.UPDATE,{percent:e}),s.dispatchEvent(t.UPDATE_TIME,{curTime:n,totalTime:o,seconds:s.getCurrentTime(),totalTimeInSeconds:s.getCurrentTime()}))},s.stop=function(e,n){clearTimeout(s.displayErrorId_to),s.isVideoLoaded_bl=!1;s.isStopped_bl&&!n||(clearInterval(s.startToPlayWithDelayId_to),s.showDisable(),s.stopVideo(),s.stopToUpdateSubtitles(),FWDAnimation.killTweensOf(s),s.setAlpha(0),FWDAnimation.to(s,.6,{alpha:1,delay:.4}),s.isPlaying_bl=!1,s.isStopped_bl=!0,s.isCued_bl=!1,s.allowScrubing_bl=!1,s.isSafeToBeControlled_bl=!1,s.isPausedInEvent_bl=!0,s.stopToUpdate(),!e&&(s.stopVideo(),s.dispatchEvent(t.STOP),s.dispatchEvent(t.LOAD_PROGRESS,{percent:0}),s.dispatchEvent(t.UPDATE_TIME,{curTime:"00:00",totalTime:"00:00"})))},s.destroy=function(){s.iframe_do&&(s.iframe_do.screen.removeAttribute("id",e.instanceName_str+"vimeo"),s.removeChild(s.iframe_do),s.iframe_do.destroy(),s.iframe_do=null),s.vimeoPlayer=null},s.stopVideo=function(){s.vimeoPlayer.unload().then(function(){}).catch(function(){})},s.startToScrub=function(){s.isSafeToBeControlled_bl&&(s.allowScrubing_bl=!0)},s.stopToScrub=function(){s.isSafeToBeControlled_bl&&(s.allowScrubing_bl=!1)},s.scrubbAtTime=function(e){s.vimeoPlayer.setCurrentTime(e).then(function(){})},s.scrub=function(e){s.isSafeToBeControlled_bl&&s.vimeoPlayer.setCurrentTime(e*s.getDuration()).then(function(){})},s.setVolume=function(e){e!=null&&(s.volume=e),s.vimeoPlayer&&(s.vimeoPlayer.setVolume(e),e&&s.iframe_do.screen.removeAttribute("muted"))},s.getDuration=function(){if(s.isSafeToBeControlled_bl)return s.vimeoPlayer.getDuration().then(function(e){s.duration=Math.round(e)}),s.duration},s.getCurrentTime=function(){if(s.isSafeToBeControlled_bl)return s.vimeoPlayer.getCurrentTime().then(function(e){s.currentTime=Math.round(e)}),s.currentTime},s.stopToUpdateSubtitles=function(){clearInterval(s.startToUpdateSubtitleId_int)},s.startToUpdateSubtitles=function(){clearInterval(s.startToUpdateSubtitleId_int),s.startToUpdateSubtitleId_int=setInterval(s.updateSubtitleHandler,10)},s.updateSubtitleHandler=function(){s.getCurrentTime()&&s.dispatchEvent(t.UPDATE_SUBTITLE,{curTime:s.getCurrentTime()})},s.init()};t.setPrototype=function(){t.prototype=new FWDEVPDO("div")},t.UPDATE_SUBTITLE="updateSubtitle",t.SAFE_TO_SCRUBB="safeToScrub",t.READY="ready",t.ERROR="initError",t.UPDATE="update",t.UPDATE_TIME="updateTime",t.LOAD_PROGRESS="loadProgress",t.PLAY="play",t.PAUSE="pause",t.STOP="stop",t.PLAY_COMPLETE="playComplete",t.CUED="cued",t.QUALITY_CHANGE="qualityChange",e.FWDEVPVimeoScreen=t}(window),function(e){var t=function(e,o,s,n,r,a,d,l,_,u){'use strict';var c=this;c.iconCSSString1=d,c.iconCSSString2=l,c.nImg=e,c.sPath_str=o,c.dPath_str=s,c.toolTipLabel_str,c.nImg&&(c.totalWidth=c.nImg.width,c.totalHeight=c.nImg.height),c.normalCalssName=_,c.selectedCalssName=u,c.useHEX=n,c.nBC=r,c.sBC=a,c.isSetToDisabledState_bl=!0,c.isMobile_bl=FWDEVPUtils.isMobile,c.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,c.allowToCreateSecondButton_bl=!0,c.useFontAwesome_bl=!!c.iconCSSString1,c.init=function(){c.setupMainContainers(),c.setNormalState(!1),c.setEnabledState()},c.setupMainContainers=function(){if(c.useFontAwesome_bl)c.setOverflow("visible"),c.n_sdo=new FWDEVPDO("div"),c.n_sdo.hasT3D=!1,c.n_sdo.hasT2D=!1,c.n_sdo.setInnerHTML(c.iconCSSString1),c.addChild(c.n_sdo),c.d_sdo=new FWDEVPDO("div"),c.d_sdo.hasT3D=!1,c.d_sdo.hasT2D=!1,c.d_sdo.setInnerHTML(c.iconCSSString2),c.addChild(c.d_sdo),c.setFinalSize();else if(c.useHEX?(c.n_sdo=new FWDEVPDO("div"),c.n_sdo.setWidth(c.totalWidth),c.n_sdo.setHeight(c.totalHeight),c.n_sdo_canvas=FWDEVPUtils.getCanvasWithModifiedColor(c.nImg,c.nBC).canvas,c.n_sdo.screen.appendChild(c.n_sdo_canvas),c.addChild(c.n_sdo)):(c.n_sdo=new FWDEVPDO("img"),c.n_sdo.setScreen(c.nImg),c.addChild(c.n_sdo)),c.allowToCreateSecondButton_bl){c.img1=new Image,c.img1.src=c.sPath_str;var e=new Image;c.sImg=e,c.useHEX?(c.s_sdo=new FWDEVPDO("div"),c.s_sdo.setWidth(c.totalWidth),c.s_sdo.setHeight(c.totalHeight),c.img1.onload=function(){c.s_sdo_canvas=FWDEVPUtils.getCanvasWithModifiedColor(c.img1,c.sBC).canvas,c.s_sdo.screen.appendChild(c.s_sdo_canvas)},c.s_sdo.setAlpha(0),c.addChild(c.s_sdo)):(c.s_sdo=new FWDEVPDO("img"),c.s_sdo.setScreen(c.img1),c.s_sdo.setWidth(c.totalWidth),c.s_sdo.setHeight(c.totalHeight),c.s_sdo.setAlpha(0),c.addChild(c.s_sdo)),c.dPath_str&&(e.src=c.dPath_str,c.d_sdo=new FWDEVPDO("img"),c.d_sdo.setScreen(e),c.d_sdo.setWidth(c.totalWidth),c.d_sdo.setHeight(c.totalHeight),c.d_sdo.setX(-100),c.addChild(c.d_sdo))}c.setWidth(c.totalWidth),c.setHeight(c.totalHeight),c.setButtonMode(!0),c.hasPointerEvent_bl?(c.screen.addEventListener("pointerup",c.onMouseUp),c.screen.addEventListener("pointerover",c.onMouseOver),c.screen.addEventListener("pointerout",c.onMouseOut)):c.screen.addEventListener&&(c.screen.addEventListener("mouseover",c.onMouseOver),c.screen.addEventListener("mouseout",c.onMouseOut),c.screen.addEventListener("mouseup",c.onMouseUp),c.screen.addEventListener("touchend",c.onMouseUp))},c.setFinalSize=function(){c.setWidth(c.n_sdo.getWidth()),c.setHeight(c.n_sdo.getHeight()),0==c.w&&setTimeout(function(){c.setFinalSize()},200)},c.setNormalState=function(e){c.useFontAwesome_bl?(FWDAnimation.killTweensOf(c.n_sdo.screen),FWDAnimation.killTweensOf(c.d_sdo.screen),e?(FWDAnimation.to(c.n_sdo.screen,.8,{className:c.normalCalssName,ease:Expo.easeOut}),FWDAnimation.to(c.d_sdo.screen,.8,{className:c.normalCalssName,ease:Expo.easeOut})):(c.n_sdo.screen.className=c.normalCalssName,c.d_sdo.screen.className=c.normalCalssName)):(FWDAnimation.killTweensOf(c.s_sdo),FWDAnimation.to(c.s_sdo,.5,{alpha:0,ease:Expo.easeOut}))},c.setSelectedState=function(e){c.useFontAwesome_bl?(FWDAnimation.killTweensOf(c.n_sdo.screen),FWDAnimation.killTweensOf(c.d_sdo.screen),e?(FWDAnimation.to(c.n_sdo.screen,.8,{className:c.selectedCalssName,ease:Expo.easeOut}),FWDAnimation.to(c.d_sdo.screen,.8,{className:c.selectedCalssName,ease:Expo.easeOut})):(c.n_sdo.screen.className=c.selectedCalssName,c.d_sdo.screen.className=c.selectedCalssName)):(FWDAnimation.killTweensOf(c.s_sdo),FWDAnimation.to(c.s_sdo,.5,{alpha:1,delay:.1,ease:Expo.easeOut}))},c.onMouseOver=function(o){if(!o.pointerType||o.pointerType==o.MSPOINTER_TYPE_MOUSE){if(c.isDisabled_bl||c.isSelectedFinal_bl)return;c.dispatchEvent(t.MOUSE_OVER,{e:o}),c.setSelectedState(!0)}},c.onMouseOut=function(o){if(!o.pointerType||o.pointerType==o.MSPOINTER_TYPE_MOUSE){if(c.isDisabled_bl||c.isSelectedFinal_bl)return;c.dispatchEvent(t.MOUSE_OUT,{e:o}),c.setNormalState(!0)}},c.onMouseUp=function(o){o.preventDefault&&o.preventDefault();c.isDisabled_bl||2==o.button||c.isSelectedFinal_bl||c.dispatchEvent(t.MOUSE_UP,{e:o})},c.setSelctedFinal=function(){c.isSelectedFinal_bl=!0,FWDAnimation.killTweensOf(c.s_sdo),FWDAnimation.to(c.s_sdo,.8,{alpha:1,ease:Expo.easeOut}),c.setButtonMode(!1)},c.setUnselctedFinal=function(){c.isSelectedFinal_bl=!1,FWDAnimation.to(c.s_sdo,.8,{alpha:0,delay:.1,ease:Expo.easeOut}),c.setButtonMode(!0)},c.setDisabledState=function(){c.isSetToDisabledState_bl||(c.isSetToDisabledState_bl=!0,c.useFontAwesome_bl?(c.n_sdo.setX(-1e4),c.d_sdo.setX(0)):(c.d_sdo.setX(0),FWDAnimation.killTweensOf(c.d_sdo),FWDAnimation.to(c.d_sdo,.8,{alpha:1,ease:Expo.easeOut})))},c.setEnabledState=function(){c.isSetToDisabledState_bl&&(c.isSetToDisabledState_bl=!1,c.useFontAwesome_bl?(c.n_sdo.setX(0),c.d_sdo.setX(-1e4)):(c.d_sdo.setX(-1e4),FWDAnimation.killTweensOf(c.d_sdo),FWDAnimation.to(c.d_sdo,.8,{alpha:0,delay:.1,ease:Expo.easeOut})))},c.disable=function(){c.isDisabled_bl=!0,c.setButtonMode(!1)},c.enable=function(){c.isDisabled_bl=!1,c.setButtonMode(!0)},c.updateHEXColors=function(e,t){FWDEVPUtils.changeCanvasHEXColor(c.nImg,c.n_sdo_canvas,e),FWDEVPUtils.changeCanvasHEXColor(c.img1,c.s_sdo_canvas,t)},c.init()};t.setPrototype=function(){t.prototype=null,t.prototype=new FWDEVPDO("div")},t.CLICK="onClick",t.MOUSE_OVER="onMouseOver",t.MOUSE_OUT="onMouseOut",t.MOUSE_UP="onMouseDown",t.prototype=null,e.FWDEVPVolumeButton=t}(window),function(e){var t=function(o,s){'use strict';var n=this;n.lastQuality_str="auto",n.volume=s,n.controllerHeight=o._d.controllerHeight,n.isStopped_bl=!0,n.isPausedInEvent_bl=!0,n.isShowed_bl=!0,n.playsinline=o._d.playsinline?1:0,n.isQualityArrayDisapatched_bl=!1,n.isMobile_bl=FWDEVPUtils.isMobile,n.init=function(){n.hasT3D=!1,n.hasT2D=!1,n.setBackfaceVisibility(),o.main_do.addChildAt(n,0),n.resizeAndPosition(),n.setupVideo(),n.setupDisableClick(),n.setWidth(1),n.setHeight(1)},n.setupDisableClick=function(){n.disableClick_do=new FWDEVPDO("div"),n.addChild(n.disableClick_do)},n.showDisable=function(){o.tempVidStageWidth&&n.disableClick_do.w!=n.sW&&(n.disableClick_do.setWidth(o.tempVidStageWidth),FWDEVPUtils.isIphone?n.disableClick_do.setHeight(o.tempVidStageHeight-n.controllerHeight):n.disableClick_do.setHeight(o.tempVidStageHeight))},n.hideDisable=function(){0==n.disableClick_do.w||(n.disableClick_do.setWidth(0),n.disableClick_do.setHeight(0))},n.setupVideo=function(){n.ytb||(n.main_do=new FWDEVPDO("div"),n.main_do.hasT3D=!1,n.main_do.hasT2D=!1,n.main_do.screen.setAttribute("id",o.instanceName_str+"youtube"),n.main_do.style().width="100%",n.main_do.style().height="100%",n.main_do.setBackfaceVisibility(),n.addChild(n.main_do),n.ytb=new YT.Player(o.instanceName_str+"youtube",{width:"100%",height:"100%",playerVars:{controls:0,disablekb:0,loop:0,autoplay:0,wmode:"opaque",showinfo:0,rel:0,modestbranding:1,iv_load_policy:3,cc_load_policy:0,fs:0,html5:0,playsinline:n.playsinline},events:{onReady:n.playerReadyHandler,onError:n.playerErrorHandler,onStateChange:n.stateChangeHandler,onPlaybackQualityChange:n.qualityChangeHandler}}))},n.playerReadyHandler=function(){if(n.ytb&&!n.ytb.playVideo&&!n.ytb.cueVideoById)return void(n.updateReadyId_int=setInterval(function(){n.playerReadyHandler()},50));clearInterval(n.updateReadyId_int);n.resizeAndPosition(),n.dispatchEvent(t.READY),n.hasBeenCreatedOnce_bl=!0},n.stateChangeHandler=function(s){if(s.data==YT.PlayerState.PLAYING)n.isSafeToBeControlled_bl||(n.isStopped_bl=!1,n.isSafeToBeControlled_bl=!0,n.isPlaying_bl=!0,n.hasHours_bl=0<Math.floor(n.ytb.getDuration()/3600),n.startToUpdate(),n.startToPreload(),!n.isMobile_bl&&n.ytb.seekTo(1e-6),!n.isMobile_bl&&n.setQuality(n.lastQuality_str),n.ytb.getAvailableQualityLevels()&&0!=n.ytb.getAvailableQualityLevels().length&&n.dispatchEvent(t.QUALITY_CHANGE,{qualityLevel:n.ytb.getPlaybackQuality(),levels:n.ytb.getAvailableQualityLevels()}),n.setPlaybackRate(),n.dispatchEvent(t.SAFE_TO_SCRUBB)),n.startToUpdateSubtitles(),n.isPausedInEvent_bl&&n.dispatchEvent(t.PLAY),n.isPausedInEvent_bl=!1,n.hasError_bl=!1;else if(s.data==YT.PlayerState.PAUSED){if(!n.isSafeToBeControlled_bl)return;n.isPausedInEvent_bl||n.dispatchEvent(t.PAUSE),n.isPausedInEvent_bl=!0}else s.data==YT.PlayerState.ENDED?n.ytb.getCurrentTime()&&0<n.ytb.getCurrentTime()&&n.isSafeToBeControlled_bl&&(n.stopToUpdateSubtitles(),setTimeout(function(){n.dispatchEvent(t.PLAY_COMPLETE)},100)):s.data==YT.PlayerState.CUED&&(n.isStopped_bl||(n.setVolume(o.volume),o._d.autoPlay_bl&&n.ytb.mute(),n.dispatchEvent(t.CUED)),n.isCued_bl=!0)},n.qualityChangeHandler=function(){n.ytb.getAvailableQualityLevels()&&0!=n.ytb.getAvailableQualityLevels().length&&n.dispatchEvent(t.QUALITY_CHANGE,{qualityLevel:n.ytb.getPlaybackQuality()})},n.playerErrorHandler=function(o){if(n.isPausedInEvent_bl=!0,!(n.isStopped_bl||n.hasError_bl||!n.sourcePath_str)){var e=o.data;n.hasError_bl=!0,2==o.data?e="The youtube id is not well formatted, make sure it has exactly 11 characters and that it dosn't contain invalid characters such as exclamation points or asterisks.":5==o.data?e="The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.":100==o.data?e="The youtube video request was not found, probably the video ID is incorrect.":(101==o.data||150==o.data)&&(e="The owner of the requested video does not allow it to be played in embedded players."),n.dispatchEvent(t.ERROR,{text:e})}},n.resizeAndPosition=function(){o.tempVidStageWidth&&(n.setX(-1),n.setY(-1),n.setWidth(o.tempVidStageWidth+2),n.setHeight(o.tempVidStageHeight+2))},n.setSource=function(e){e&&(n.sourcePath_str=e),n.ytb.cueVideoById(n.sourcePath_str),n.isStopped_bl=!1,FWDAnimation.killTweensOf(n),n.setAlpha(0),FWDAnimation.to(n,.6,{alpha:1,delay:.4})},n.play=function(){FWDEVPlayer.curInstance=o,n.isPlaying_bl=!0,n.hasError_bl=!1,n.ytb.playVideo(),n.startToUpdate(),(!n.isMobile_bl||o._d.autoPlay_bl)&&(n.isStopped_bl=!1)},n.pause=function(){if(!(n.isStopped_bl||n.hasError_bl)){n.isPlaying_bl=!1;try{n.ytb.pauseVideo()}catch(t){}n.stopToUpdate()}},n.togglePlayPause=function(){n.isPlaying_bl?n.pause():n.play()},n.resume=function(){n.isStopped_bl||n.play()},n.startToUpdate=function(){clearInterval(n.updateVideoId_int),n.updateVideoId_int=setInterval(n.updateVideo,500)},n.stopToUpdate=function(){clearInterval(n.updateVideoId_int)},n.updateVideo=function(){var e;if(!n.ytb)return void stopToUpdate();n.allowScrubing_bl||(e=n.ytb.getCurrentTime()/n.ytb.getDuration(),n.dispatchEvent(t.UPDATE,{percent:e}));var o=FWDEVPUtils.formatTime(n.ytb.getDuration()),s=FWDEVPUtils.formatTime(n.ytb.getCurrentTime());n.dispatchEvent(t.UPDATE_TIME,{curTime:s,totalTime:o,seconds:n.ytb.getCurrentTime(),totalTimeInSeconds:n.ytb.getDuration()})},n.startToPreload=function(){clearInterval(n.preloadVideoId_int),n.updatePreloadId_int=setInterval(n.updateProgress,500)},n.stopToPreload=function(){clearInterval(n.updatePreloadId_int)},n.updateProgress=function(){if(!n.ytb)return void stopToPreload();var e=n.ytb.getVideoLoadedFraction();n.dispatchEvent(t.LOAD_PROGRESS,{percent:e})},n.stop=function(){n.isStopped_bl||(n.isPlaying_bl=!1,n.isStopped_bl=!0,n.isCued_bl=!1,n.allowScrubing_bl=!1,n.isSafeToBeControlled_bl=!1,n.isQualityArrayDisapatched_bl=!1,n.isPausedInEvent_bl=!0,clearInterval(n.updateReadyId_int),n.stopToUpdateSubtitles(),n.stopToUpdate(),n.stopToPreload(),n.stopVideo(),n.dispatchEvent(t.STOP),n.dispatchEvent(t.LOAD_PROGRESS,{percent:0}),n.dispatchEvent(t.UPDATE_TIME,{curTime:"00:00",totalTime:"00:00"}))},n.destroyYoutube=function(){n.main_do&&(n.main_do.screen.removeAttribute("id",o.instanceName_str+"youtube"),n.main_do.destroy(),n.main_do=null),n.ytb&&n.ytb.destroy(),n.ytb=null},n.stopVideo=function(){n.ytb&&n.ytb.cueVideoById&&n.ytb.cueVideoById(n.sourcePath_str),FWDAnimation.killTweensOf(n),n.setAlpha(0),FWDAnimation.to(n,.6,{alpha:1,delay:.4})},n.startToScrub=function(){n.isSafeToBeControlled_bl&&(n.allowScrubing_bl=!0)},n.scrubbAtTime=function(e){n.isSafeToBeControlled_bl&&n.ytb.seekTo(e)},n.stopToScrub=function(){n.isSafeToBeControlled_bl&&(n.allowScrubing_bl=!1)},n.scrub=function(e){n.isSafeToBeControlled_bl&&n.ytb.seekTo(e*n.ytb.getDuration())},n.setPlaybackRate=function(e){!n.ytb||n.isMobile_bl||(e&&(n.rate=e),n.ytb&&n.ytb.setPlaybackRate&&n.ytb.setPlaybackRate(n.rate))},n.setVolume=function(e){e!=null&&(n.volume=e),n.ytb&&n.ytb.setVolume&&(n.ytb.setVolume(100*e),e&&n.ytb.unMute())},n.stopToUpdateSubtitles=function(){clearInterval(n.startToUpdateSubtitleId_int)},n.startToUpdateSubtitles=function(){clearInterval(n.startToUpdateSubtitleId_int),n.startToUpdateSubtitleId_int=setInterval(n.updateSubtitleHandler,10)},n.updateSubtitleHandler=function(){n.dispatchEvent(t.UPDATE_SUBTITLE,{curTime:n.ytb.getCurrentTime()})},n.setQuality=function(e){n.lastQuality_str=e,n.ytb.setPlaybackQuality(e)},n.init()};t.setPrototype=function(){t.prototype=new FWDEVPDO("div")},t.UPDATE_SUBTITLE="updateSubtitle",t.READY="ready",t.ERROR="error",t.UPDATE="update",t.UPDATE_TIME="updateTime",t.SAFE_TO_SCRUBB="safeToControll",t.LOAD_PROGRESS="loadProgress",t.PLAY="play",t.PAUSE="pause",t.STOP="stop",t.PLAY_COMPLETE="playComplete",t.CUED="cued",t.QUALITY_CHANGE="qualityChange",e.FWDEVPYoutubeScreen=t}(window),function(){var t=function(e,o,s,n,r){'use strict';var a=this;a.label_str=e,a.nBC=o,a.sBC=s,a.hdPath_str=n,a.id=r,a.totalWidth=0,a.totalHeight=23,a.hdWidth=7,a.hdHeight=5,a.hasHd_bl=a.hdPath_str,a.isMobile_bl=FWDEVPUtils.isMobile,a.isDisabled_bl=!1,a.init=function(){a.setBackfaceVisibility(),a.setupMainContainers(),a.setHeight(a.totalHeight)},a.setupMainContainers=function(){if(a.text_do=new FWDEVPDO("div"),a.text_do.setBackfaceVisibility(),a.text_do.hasT3D=!1,a.text_do.hasT2D=!1,a.text_do.screen.className="fwdevp-qaulity-button",a.text_do.style().display="inline-block",a.text_do.style().whiteSpace="nowrap",a.text_do.style().fontFamily="Arial",a.text_do.style().fontSize="12px",a.text_do.style().color=a.nBC,a.text_do.style().fontSmoothing="antialiased",a.text_do.style().webkitFontSmoothing="antialiased",a.text_do.style().textRendering="optimizeLegibility",a.text_do.setInnerHTML(a.label_str),a.addChild(a.text_do),a.hasHd_bl){var e=new Image;e.src=a.hdPath_str,a.hd_do=new FWDEVPDO("img"),a.hd_do.setScreen(e),a.hd_do.setWidth(a.hdWidth),a.hd_do.setHeight(a.hdHeight),a.addChild(a.hd_do)}a.dumy_do=new FWDEVPDO("div"),FWDEVPUtils.isIE&&(a.dumy_do.setBkColor("#FF0000"),a.dumy_do.setAlpha(1e-4)),a.dumy_do.setButtonMode(!0),a.dumy_do.setHeight(a.totalHeight),a.addChild(a.dumy_do),a.hasPointerEvent_bl?(a.screen.addEventListener("pointerup",a.onMouseUp),a.screen.addEventListener("pointerover",a.onMouseOver),a.screen.addEventListener("pointerout",a.onMouseOut)):a.screen.addEventListener&&(!a.isMobile_bl&&(a.screen.addEventListener("mouseover",a.onMouseOver),a.screen.addEventListener("mouseout",a.onMouseOut),a.screen.addEventListener("mouseup",a.onMouseUp)),a.screen.addEventListener("touchend",a.onMouseUp))},a.onMouseOver=function(o){a.isDisabled_bl||(a.setSelectedState(!0),a.dispatchEvent(t.MOUSE_OVER,{e:o,id:a.id}))},a.onMouseOut=function(o){a.isDisabled_bl||(a.setNormalState(!0),a.dispatchEvent(t.MOUSE_OUT,{e:o,id:a.id}))},a.onMouseUp=function(o){a.isDisabled_bl||2==o.button||(o.preventDefault&&o.preventDefault(),a.dispatchEvent(t.CLICK,{e:o,id:a.id}))},a.setFinalSize=function(){var e=a.text_do.getWidth()+34,t=a.text_do.getHeight();a.text_do.setX(18),a.text_do.setY(parseInt((a.totalHeight-t)/2)),a.hd_do&&(a.hd_do.setX(e-12),a.hd_do.setY(a.text_do.y+1)),a.dumy_do.setWidth(e),a.setWidth(e)},a.updateText=function(e){a.label_str=e,a.text_do.setInnerHTML(a.label_str),a.hd_do&&("highres"==a.label_str||"hd1080"==a.label_str||"hd720"==a.label_str||"hd1440"==a.label_str||"hd2160"==a.label_str||"hd2880"==a.label_str?a.hd_do.setVisible(!0):a.hd_do.setVisible(!1))},a.setSelectedState=function(e){a.isSelected_bl=!0,FWDAnimation.killTweensOf(a.text_do),e?FWDAnimation.to(a.text_do.screen,.5,{css:{color:a.sBC},ease:Expo.easeOut}):a.text_do.style().color=a.sBC},a.setNormalState=function(e){a.isSelected_bl=!1,FWDAnimation.killTweensOf(a.text_do),e?FWDAnimation.to(a.text_do.screen,.5,{css:{color:a.nBC},ease:Expo.easeOut}):a.text_do.style().color=a.nBC},a.disable=function(){a.isDisabled_bl=!0,FWDAnimation.killTweensOf(a.text_do),a.setSelectedState(!0),a.dumy_do.setButtonMode(!1)},a.enable=function(){a.isDisabled_bl=!1,FWDAnimation.killTweensOf(a.text_do),a.setNormalState(!0),a.dumy_do.setButtonMode(!0)},a.init()};t.setPrototype=function(){t.prototype=new FWDEVPDO("div")},t.MOUSE_OVER="onMouseOver",t.MOUSE_OUT="onMouseOut",t.CLICK="onClick",t.prototype=null,window.FWDEVPYTBQButton=t}(window);var _fwd_fwdScope;window.FWDAnimation||(((_fwd_fwdScope="undefined"!=typeof fwd_module&&fwd_module.exports&&"undefined"!=typeof fwd_global?fwd_global:this||window)._fwd_fwdQueue||(_fwd_fwdScope._fwd_fwdQueue=[])).push(function(){"use strict";function u(o,t,s,n){s===n&&(s=n-(n-t)/1e6),o===t&&(t=o+(s-o)/1e6),this.a=o,this.b=t,this.c=s,this.d=n,this.da=n-o,this.ca=s-o,this.ba=t-o}function S(d,t,e,c){var r={a:d},s={},n={},a={c:c},o=(d+t)/2,l=(t+e)/2,b=(e+c)/2,h=(o+l)/2,u=(l+b)/2,p=(u-h)/8;return r.b=o+(d-o)/4,s.b=h+p,r.c=s.a=(r.b+s.b)/2,s.c=n.a=(h+u)/2,n.b=u-p,a.b=b+(c-b)/4,n.c=a.a=(n.b+a.b)/2,[r,s,n,a]}function d(b,g,y,v,r,P){var T={},c=[],d=P||b[0],m,E,H,k,O,x,L,A;for(E in r="string"==typeof r?","+r+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",null==g&&(g=1),b[0])c.push(E);if(1<b.length){for(A=b[b.length-1],L=!0,m=c.length;-1<--m;)if(E=c[m],.05<Math.abs(d[E]-A[E])){L=!1;break}L&&(b=b.concat(),P&&b.unshift(P),b.push(b[1]),P=b[b.length-3])}for(B.length=C.length=w.length=0,m=c.length;-1<--m;)E=c[m],_[E]=-1!==r.indexOf(","+E+","),T[E]=function(d,_,e,c){var r=[],p,b,m,g,y,S;if(c)for(b=(d=[c].concat(d)).length;-1<--b;)"string"==typeof(S=d[b][_])&&"="===S.charAt(1)&&(d[b][_]=c[_]+ +(S.charAt(0)+S.substr(2)));if(0>(p=d.length-2))return r[0]=new u(d[0][_],0,0,d[-1>p?0:1][_]),r;for(b=0;b<p;b++)m=d[b][_],g=d[b+1][_],r[b]=new u(m,0,0,g),e&&(y=d[b+2][_],B[b]=(B[b]||0)+(g-m)*(g-m),C[b]=(C[b]||0)+(y-g)*(y-g));return r[b]=new u(d[b][_],0,0,d[b+1][_]),r}(b,E,_[E],P);for(m=B.length;-1<--m;)B[m]=Math.sqrt(B[m]),C[m]=Math.sqrt(C[m]);if(!v){for(m=c.length;-1<--m;)if(_[E])for(x=(H=T[c[m]]).length-1,k=0;k<x;k++)O=H[k+1].da/C[k]+H[k].da/B[k]||0,w[k]=(w[k]||0)+O*O;for(m=w.length;-1<--m;)w[m]=Math.sqrt(w[m])}for(m=c.length,k=y?4:1;-1<--m;)(function(b,t,e,P,r){for(var s=b.length-1,g=0,T=b[0].a,E=0,H,k,O,L,A,I,M,W,R,D,V,F;E<s;E++)H=(L=b[g]).a,k=L.d,O=b[g+1].d,M=r?(D=B[E],F=.25*(((V=C[E])+D)*t)/(!P&&w[E]||.5),k-((A=k-(k-H)*(P?.5*t:0===D?0:F/D))+(((I=k+(O-k)*(P?.5*t:0===V?0:F/V))-A)*(3*D/(D+V)+.5)/4||0))):k-((A=k-.5*((k-H)*t))+(I=k+.5*((O-k)*t)))/2,A+=M,I+=M,L.c=W=A,L.b=0==E?T=L.a+.6*(L.c-L.a):T,L.da=k-H,L.ca=W-H,L.ba=T-H,e?(R=S(H,T,W,k),b.splice(g,1,R[0],R[1],R[2],R[3]),g+=4):g++,T=I;(L=b[g]).b=T,L.c=T+.4*(L.d-T),L.da=L.d-L.a,L.ca=L.c-L.a,L.ba=T-L.a,e&&(R=S(L.a,T,L.c,L.d),b.splice(g,1,R[0],R[1],R[2],R[3]))})(H=T[E=c[m]],g,y,v,_[E]),L&&(H.splice(0,k),H.splice(H.length-k,k));return T}var o,B,C,w,_,s,y,e;_fwd_fwdScope.FWDFWD_fwdDefine("FWDAnimation",["core.FWDAnimation","core.FWDSimpleTimeline","FWDTweenLite"],function(S,d,B){function g(o){for(var t=[],e=o.length,s=0;s!==e;t.push(o[s++]));return t}function a(o,t,e){var a=o.cycle,n,d;for(n in a)d=a[n],o[n]="function"==typeof d?d(e,t[e]):d[e%d.length];delete o.cycle}function o(_,t,u,p){t=!1!==t,u=!1!==u;for(var b=c(p=!1!==p),a=t&&u&&p,o=b.length,h,m;-1<--o;)m=b[o],(a||m instanceof d||(h=m.target===m.vars.onComplete)&&u||t&&!h)&&m.paused(_)}var S=function(o,t,e){B.call(this,o,t,e),this._cycle=0,this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._dirty=!0,this.render=S.prototype.render},y=1e-10,l=B._internals,v=l.isSelector,T=l.isArray,e=S.prototype=B.to({},.1,{}),t=[];S.version="1.19.0",e.constructor=S,e.kill()._gc=!1,S.killTweensOf=S.killDelayedCallsTo=B.killTweensOf,S.getTweensOf=B.getTweensOf,S.lagSmoothing=B.lagSmoothing,S.ticker=B.ticker,S.render=B.render,e.invalidate=function(){return this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),B.prototype.invalidate.call(this)},e.updateTo=function(o,t){var e=this.ratio,r=this.vars.immediateRender||o.immediateRender,s;for(s in t&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay)),o)this.vars[s]=o[s];if(this._initted||r)if(t)this._initted=!1,r&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&B._onPluginEvent("_onDisable",this),.998<this._time/this._duration){var d=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(d,!0,!1)}else if(this._initted=!1,this._init(),0<this._time||r)for(var n=this._firstPT,_;n;)_=n.s+n.c,n.c*=1/(1-e),n.s=_-n.c,n=n._next;return this},e.render=function(b,S,e){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var v=this._dirty?this.totalDuration():this._totalDuration,p=this._time,_=this._totalTime,c=this._cycle,d=this._duration,m=this._rawPrevTime,g,P,T,B,C,w,E,H,k;if(v-1e-7<=b?(this._totalTime=v,this._cycle=this._repeat,this._yoyo&&0!=(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=d,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(g=!0,P="onComplete",e=e||this._timeline.autoRemoveChildren),0===d&&(!this._initted&&this.vars.lazy&&!e||(this._startTime===this._timeline._duration&&(b=0),(0>m||0>=b&&-1e-7<=b||m===y&&"isPause"!==this.data)&&m!==b&&(e=!0,y<m&&(P="onReverseComplete")),this._rawPrevTime=H=!S||b||m===b?b:y))):1e-7>b?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==_||0===d&&0<m)&&(P="onReverseComplete",g=this._reversed),0>b&&(this._active=!1,0===d&&(!this._initted&&this.vars.lazy&&!e||(0<=m&&(e=!0),this._rawPrevTime=H=!S||b||m===b?b:y))),this._initted||(e=!0)):(this._totalTime=this._time=b,0!==this._repeat&&(B=d+this._repeatDelay,this._cycle=this._totalTime/B>>0,0!==this._cycle&&this._cycle===this._totalTime/B&&_<=b&&this._cycle--,this._time=this._totalTime-this._cycle*B,this._yoyo&&0!=(1&this._cycle)&&(this._time=d-this._time),this._time>d?this._time=d:0>this._time&&(this._time=0)),this._easeType?(C=this._time/d,(1===(w=this._easeType)||3===w&&.5<=C)&&(C=1-C),3===w&&(C*=2),1===(E=this._easePower)?C*=C:2===E?C*=C*C:3===E?C*=C*C*C:4===E&&(C*=C*C*C*C),this.ratio=1===w?1-C:2===w?C:.5>this._time/d?C/2:1-C/2):this.ratio=this._ease.getRatio(this._time/d)),p!==this._time||e||c!==this._cycle){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!e&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=p,this._totalTime=_,this._rawPrevTime=m,this._cycle=c,l.lazyTweens.push(this),void(this._lazy=[b,S]);this._time&&!g?this.ratio=this._ease.getRatio(this._time/d):g&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==p&&0<=b&&(this._active=!0),0===_&&(2===this._initted&&0<b&&this._init(),this._startAt&&(0<=b?this._startAt.render(b,S,e):P=P||"_dummyGS"),this.vars.onStart&&(0===this._totalTime&&0!==d||S||this._callback("onStart"))),T=this._firstPT;T;)T.f?T.t[T.p](T.c*this.ratio+T.s):(k=T.c*this.ratio+T.s,"x"==T.p?T.t.setX(k):"y"==T.p?T.t.setY(k):"z"==T.p?T.t.setZ(k):"angleX"==T.p?T.t.setAngleX(k):"angleY"==T.p?T.t.setAngleY(k):"angleZ"==T.p?T.t.setAngleZ(k):"w"==T.p?T.t.setWidth(k):"h"==T.p?T.t.setHeight(k):"alpha"==T.p?T.t.setAlpha(k):"scale"==T.p?T.t.setScale2(k):T.t[T.p]=k),T=T._next;this._onUpdate&&(0>b&&this._startAt&&this._startTime&&this._startAt.render(b,S,e),S||this._totalTime===_&&!P||this._callback("onUpdate")),this._cycle!==c&&(S||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),P&&(this._gc&&!e||(0>b&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(b,S,e),g&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!S&&this.vars[P]&&this._callback(P),0===d&&this._rawPrevTime===y&&H!==y&&(this._rawPrevTime=0)))}else _!==this._totalTime&&this._onUpdate&&(S||this._callback("onUpdate"))},S.to=function(o,t,e){return new S(o,t,e)},S.from=function(o,t,e){return e.runBackwards=!0,e.immediateRender=0!=e.immediateRender,new S(o,t,e)},S.fromTo=function(o,t,e,s){return s.startAt=e,s.immediateRender=0!=s.immediateRender&&0!=e.immediateRender,new S(o,t,s)},S.staggerTo=S.allTo=function(b,m,y,P,C,s,n){function w(){y.onComplete&&y.onComplete.apply(y.onCompleteScope||this,arguments),C.apply(n||y.callbackScope||this,s||t)}P=P||0;var o=0,E=[],_=y.cycle,c=y.startAt&&y.startAt.cycle,H,k,O,x;for(T(b)||("string"==typeof b&&(b=B.selector(b)||b),v(b)&&(b=g(b))),b=b||[],0>P&&((b=g(b)).reverse(),P*=-1),H=b.length-1,O=0;O<=H;O++){for(x in k={},y)k[x]=y[x];if(_&&(a(k,b,O),null!=k.duration&&(m=k.duration,delete k.duration)),c){for(x in c=k.startAt={},y.startAt)c[x]=y.startAt[x];a(k.startAt,b,O)}k.delay=o+(k.delay||0),O===H&&C&&(k.onComplete=w),E[O]=new S(b[O],m,k),o+=P}return E},S.staggerFrom=S.allFrom=function(o,t,e,d,r,s,n){return e.runBackwards=!0,e.immediateRender=0!=e.immediateRender,S.staggerTo(o,t,e,d,r,s,n)},S.staggerFromTo=S.allFromTo=function(d,t,e,l,r,s,n,a){return l.startAt=e,l.immediateRender=0!=l.immediateRender&&0!=e.immediateRender,S.staggerTo(d,t,l,r,s,n,a)},S.delayedCall=function(o,t,e,n,r){return new S(t,0,{delay:o,onComplete:t,onCompleteParams:e,callbackScope:n,onReverseComplete:t,onReverseCompleteParams:e,immediateRender:!1,useFrames:r,overwrite:0})},S.set=function(o,t){return new S(o,0,t)},S.isTweening=function(e){return 0<B.getTweensOf(e,!0).length};var _=function(o,t){for(var e=[],n=0,a=o._first;a;)a instanceof B?e[n++]=a:(t&&(e[n++]=a),n=(e=e.concat(_(a,t))).length),a=a._next;return e},c=S.getAllTweens=function(e){return _(S._rootTimeline,e).concat(_(S._rootFramesTimeline,e))};return S.killAll=function(_,t,u,p){null==t&&(t=!0),null==u&&(u=!0);for(var r=c(0!=p),a=r.length,o=t&&u&&p,l=0,b,m;l<a;l++)m=r[l],(o||m instanceof d||(b=m.target===m.vars.onComplete)&&u||t&&!b)&&(_?m.totalTime(m._reversed?0:m.totalDuration()):m._enabled(!1,!1))},S.killChildTweensOf=function(d,_){if(null!=d){var e=l.tweenLookup,o,u,c,p,b;if("string"==typeof d&&(d=B.selector(d)||d),v(d)&&(d=g(d)),T(d))for(p=d.length;-1<--p;)S.killChildTweensOf(d[p],_);else{for(c in o=[],e)for(u=e[c].target.parentNode;u;)u===d&&(o=o.concat(e[c].tweens)),u=u.parentNode;for(b=o.length,p=0;p<b;p++)_&&o[p].totalTime(o[p].totalDuration()),o[p]._enabled(!1,!1)}}},(S.pauseAll=function(s,t,e){o(!0,s,t,e)},S.resumeAll=function(s,t,e){o(!1,s,t,e)},S.globalTimeScale=function(o){var s=S._rootTimeline,n=B.ticker.time;return arguments.length?(o=o||y,s._startTime=n-(n-s._startTime)*s._timeScale/o,s=S._rootFramesTimeline,n=B.ticker.frame,s._startTime=n-(n-s._startTime)*s._timeScale/o,s._timeScale=S._rootTimeline._timeScale=o):s._timeScale},e.progress=function(o,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-o:o)+this._cycle*(this._duration+this._repeatDelay),t):this._time/this.duration()},e.totalProgress=function(o,t){return arguments.length?this.totalTime(this.totalDuration()*o,t):this._totalTime/this.totalDuration()},e.time=function(o,s){return arguments.length?(this._dirty&&this.totalDuration(),o>this._duration&&(o=this._duration),this._yoyo&&0!=(1&this._cycle)?o=this._duration-o+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(o+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(o,s)):this._time},e.duration=function(e){return arguments.length?S.prototype.duration.call(this,e):this._duration},e.totalDuration=function(e){return arguments.length?-1===this._repeat?this:this.duration((e-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},e.repeat=function(e){return arguments.length?(this._repeat=e,this._uncache(!0)):this._repeat},e.repeatDelay=function(e){return arguments.length?(this._repeatDelay=e,this._uncache(!0)):this._repeatDelay},e.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},S)},!0),o=180/Math.PI,B=[],C=[],w=[],_={},s=_fwd_fwdScope.FWDFWD_fwdDefine.globals,y=_fwd_fwdScope.FWDFWD_fwdDefine.plugin({propName:"bezier",priority:-1,version:"1.3.7",API:2,fwd_global:!0,init:function(_,t,c){this._target=_,t instanceof Array&&(t={values:t}),this._func={},this._mod={},this._props=[],this._timeRes=null==t.timeResolution?6:parseInt(t.timeResolution,10);var b=t.values||[],h={},m=b[0],g=t.autoRotate||c.vars.orientToBezier,y,S,v,f,P,T;for(y in this._autoRotate=g?g instanceof Array?g:[["x","y","rotation",!0!==g&&+g||0]]:null,m)this._props.push(y);for(v=this._props.length;-1<--v;)y=this._props[v],this._overwriteProps.push(y),S=this._func[y]="function"==typeof _[y],h[y]=S?_[y.indexOf("set")||"function"!=typeof _["get"+y.substr(3)]?y:"get"+y.substr(3)]():parseFloat(_[y]),P||h[y]!==b[0][y]&&(P=h);if(this._beziers="cubic"!==t.type&&"quadratic"!==t.type&&"soft"!==t.type?d(b,isNaN(t.curviness)?1:t.curviness,!1,"thruBasic"===t.type,t.correlate,P):function(b,y,S){var v={},c="cubic"===(y=y||"soft")?3:2,d="soft"===y,m=[],g,P,T,B,C,w,E,H,k,O,x;if(d&&S&&(b=[S].concat(b)),null==b||b.length<1+c)throw"invalid Bezier data";for(k in b[0])m.push(k);for(w=m.length;-1<--w;){for(v[k=m[w]]=C=[],O=0,H=b.length,E=0;E<H;E++)g=null==S?b[E][k]:"string"==typeof(x=b[E][k])&&"="===x.charAt(1)?S[k]+ +(x.charAt(0)+x.substr(2)):+x,d&&1<E&&E<H-1&&(C[O++]=(g+C[O-2])/2),C[O++]=g;for(H=O-c+1,E=O=0;E<H;E+=c)g=C[E],P=C[E+1],T=C[E+2],B=2==c?0:C[E+3],C[O++]=x=3==c?new u(g,P,T,B):new u(g,(2*P+g)/3,(2*P+T)/3,T);C.length=O}return v}(b,t.type,h),this._segCount=this._beziers[y].length,this._timeRes&&(T=function(d,t){var _=[],a=[],o=0,c=0,b=(t=t>>0||6)-1,m=[],u=[],g,y,S,v;for(g in d)!function(c,t,e){for(var b=c.length,m,g,y,S,v,P,T,B,C,w,E;-1<--b;)for(y=(w=c[b]).a,S=w.d-y,v=w.c-y,P=w.b-y,m=g=0,B=1;B<=e;B++)m=g-(g=((T=1/e*B)*T*S+3*(C=1-T)*(T*v+C*P))*T),t[E=b*e+B-1]=(t[E]||0)+m*m}(d[g],_,t);for(S=_.length,y=0;y<S;y++)o+=Math.sqrt(_[y]),u[v=y%t]=o,v===b&&(c+=o,m[v=y/t>>0]=u,a[v]=c,o=0,u=[]);return{length:c,lengths:a,segments:m}}(this._beziers,this._timeRes),this._length=T.length,this._lengths=T.lengths,this._segments=T.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length),g=this._autoRotate)for(this._initialRotations=[],g[0]instanceof Array||(this._autoRotate=g=[g]),v=g.length;-1<--v;){for(f=0;3>f;f++)y=g[v][f],this._func[y]="function"==typeof _[y]&&_[y.indexOf("set")||"function"!=typeof _["get"+y.substr(3)]?y:"get"+y.substr(3)];y=g[v][2],this._initialRotations[v]=(this._func[y]?this._func[y].call(this._target):this._target[y])||0,this._overwriteProps.push(y)}return this._startRatio=c.vars.runBackwards?1:0,!0},set:function(b){var S=this._segCount,f=this._func,u=this._target,p=b!==this._startRatio,_,P,B,C,E,H,k,O,L;if(this._timeRes){if(O=this._lengths,L=this._curSeg,b*=this._length,w=this._li,b>this._l2&&w<S-1){for(k=S-1;w<k&&(this._l2=O[++w])<=b;);this._l1=O[w-1],this._li=w,this._curSeg=L=this._segments[w],this._s2=L[this._s1=this._si=0]}else if(b<this._l1&&0<w){for(;0<w&&(this._l1=O[--w])>=b;);0===w&&b<this._l1?this._l1=0:w++,this._l2=O[w],this._li=w,this._curSeg=L=this._segments[w],this._s1=L[(this._si=L.length-1)-1]||0,this._s2=L[this._si]}if(_=w,b-=this._l1,w=this._si,b>this._s2&&w<L.length-1){for(k=L.length-1;w<k&&(this._s2=L[++w])<=b;);this._s1=L[w-1],this._si=w}else if(b<this._s1&&0<w){for(;0<w&&(this._s1=L[--w])>=b;);0===w&&b<this._s1?this._s1=0:w++,this._s2=L[w],this._si=w}E=(w+(b-this._s1)/(this._s2-this._s1))*this._prec||0}else E=(b-(_=0>b?0:1<=b?S-1:S*b>>0)*(1/S))*S;for(P=1-E,w=this._props.length;-1<--w;)B=this._props[w],H=(E*E*(C=this._beziers[B][_]).da+3*P*(E*C.ca+P*C.ba))*E+C.a,this._mod[B]&&(H=this._mod[B](H,u)),f[B]?u[B](H):"x"==B?u.setX(H):"y"==B?u.setY(H):"z"==B?u.setZ(H):"angleX"==B?u.setAngleX(H):"angleY"==B?u.setAngleY(H):"angleZ"==B?u.setAngleZ(H):"w"==B?u.setWidth(H):"h"==B?u.setHeight(H):"alpha"==B?u.setAlpha(H):"scale"==B?u.setScale2(H):u[B]=H;if(this._autoRotate)for(var A=this._autoRotate,w=A.length,I,M,W,R,D,V,F;-1<--w;)B=A[w][2],V=A[w][3]||0,F=!0===A[w][4]?1:o,C=this._beziers[A[w][0]],I=this._beziers[A[w][1]],C&&I&&(C=C[_],I=I[_],M=C.a+(C.b-C.a)*E,M+=((R=C.b+(C.c-C.b)*E)-M)*E,R+=(C.c+(C.d-C.c)*E-R)*E,W=I.a+(I.b-I.a)*E,W+=((D=I.b+(I.c-I.b)*E)-W)*E,D+=(I.c+(I.d-I.c)*E-D)*E,H=p?Math.atan2(D-W,R-M)*F+V:this._initialRotations[w],this._mod[B]&&(H=this._mod[B](H,u)),f[B]?u[B](H):u[B]=H)}}),e=y.prototype,y.bezierThrough=d,y.cubicToQuadratic=S,y._autoCSS=!0,y.quadraticToCubic=function(o,t,e){return new u(o,(2*t+o)/3,(2*t+e)/3,e)},y._cssRegister=function(){var o=s.CSSPlugin,e,p,b,m;o&&(e=o._internals,p=e._parseToProxy,b=e._setPluginRatio,m=e.CSSPropTween,e._registerComplexSpecialProp("bezier",{parser:function(d,t,_,c,r,g){t instanceof Array&&(t={values:t}),g=new y;var S=t.values,h=S.length-1,v=[],u={},f,P,T;if(0>h)return r;for(f=0;f<=h;f++)T=p(d,S[f],c,r,g,h!==f),v[f]=T.end;for(P in t)u[P]=t[P];return u.values=v,(r=new m(d,"bezier",0,0,T.pt,2)).data=T,r.plugin=g,r.setRatio=b,0===u.autoRotate&&(u.autoRotate=!0),!u.autoRotate||u.autoRotate instanceof Array||(f=!0===u.autoRotate?0:+u.autoRotate,u.autoRotate=null==T.end.left?null!=T.end.x&&[["x","y","rotation",f,!1]]:[["left","top","rotation",f,!1]]),u.autoRotate&&(c._transform||c._enableTransforms(!1),T.autoRotate=c._target._fwdTransform,T.proxy.rotation=T.autoRotate.rotation||0,c._overwriteProps.push("rotation")),g._onInitTween(T.proxy,u,c._tween),r}}))},e._mod=function(o){for(var t=this._overwriteProps,s=t.length,n;-1<--s;)(n=o[t[s]])&&"function"==typeof n&&(this._mod[t[s]]=n)},e._kill=function(o){var t=this._props,s,n;for(s in this._beziers)if(s in o)for(delete this._beziers[s],delete this._func[s],n=t.length;-1<--n;)t[n]===s&&t.splice(n,1);if(t=this._autoRotate)for(n=t.length;-1<--n;)o[t[n][2]]&&t.splice(n,1);return this._super._kill.call(this,o)},_fwd_fwdScope.FWDFWD_fwdDefine("plugins.CSSPlugin",["plugins.TweenPlugin","FWDTweenLite"],function(E,L){function B(o,t){return t.toUpperCase()}function n(e){return ce.createElementNS?ce.createElementNS("http://www.w3.org/1999/xhtml",e):ce.createElement(e)}function a(e){return I.test("string"==typeof e?e:(e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100:1}function V(e){window.console&&console.log(e)}function q(o,n){var a=(n=n||K).style,s,d;if(void 0!==a[o])return o;for(o=o.charAt(0).toUpperCase()+o.substr(1),s=["O","Moz","ms","Ms","Webkit"],d=5;-1<--d&&void 0===a[s[d]+o];);return 0<=d?(he="-"+(me=3===d?"ms":s[d]).toLowerCase()+"-",me+o):null}function g(o,t){var d={},n,l,_;if(t=t||ge(o,null)){if(n=t.length)for(;-1<--n;)-1!==(_=t[n]).indexOf("-transform")&&ze!==_||(d[_.replace(u,B)]=t.getPropertyValue(_));else for(n in t)-1!==n.indexOf("Transform")&&Ye!==n||(d[n]=t[n]);}else if(t=o.currentStyle||o.style)for(n in t)"string"==typeof n&&void 0===d[n]&&(d[n.replace(u,B)]=t[n]);return be||(d.opacity=a(o)),l=tt(o,t,!1),d.rotation=l.rotation,d.skewX=l.skewX,d.scaleX=l.scaleX,d.scaleY=l.scaleY,d.x=l.x,d.y=l.y,Ge&&(d.z=l.z,d.rotationX=l.rotationX,d.rotationY=l.rotationY,d.scaleZ=l.scaleZ),d.filters&&delete d.filters,d}function y(d,t,e,_,r){var s={},l=d.style,u,c,p;for(c in e)"cssText"!==c&&"length"!==c&&isNaN(c)&&(t[c]!==(u=e[c])||r&&r[c])&&-1===c.indexOf("Origin")&&("number"!=typeof u&&"string"!=typeof u||(s[c]="auto"!==u||"left"!==c&&"top"!==c?""!==u&&"auto"!==u&&"none"!==u||"string"!=typeof t[c]||""===t[c].replace(b,"")?u:0:ve(d,c),void 0!==l[c]&&(p=new Re(l,c,l[c],p))));if(_)for(c in _)"className"!==c&&(s[c]=_[c]);return{difs:s,firstMPT:p}}function e(o,s){return"function"==typeof o&&(o=o(Ie,Ae)),"string"==typeof o&&"="===o.charAt(1)?parseInt(o.charAt(0)+"1",10)*parseFloat(o.substr(2)):parseFloat(o)-parseFloat(s)||0}function k(o,s){return"function"==typeof o&&(o=o(Ie,Ae)),null==o?s:"string"==typeof o&&"="===o.charAt(1)?parseInt(o.charAt(0)+"1",10)*parseFloat(o.substr(2))+s:parseFloat(o)||0}function o(d,_,e,u){var r,c,p,b,h;return"function"==typeof d&&(d=d(Ie,Ae)),1e-6>(b=null==d?_:"number"==typeof d?d:(r=360,c=d.split("_"),p=((h="="===d.charAt(1))?parseInt(d.charAt(0)+"1",10)*parseFloat(c[0].substr(2)):parseFloat(c[0]))*(-1===d.indexOf("rad")?1:Q)-(h?0:_),c.length&&(u&&(u[e]=_+p),-1!==d.indexOf("short")&&(p%=r)!==p%180&&(p=0>p?p+r:p-r),-1!==d.indexOf("_cw")&&0>p?p=(p+3599999999640)%r-(0|p/r)*r:-1!==d.indexOf("ccw")&&0<p&&(p=(p-3599999999640)%r-(0|p/r)*r)),_+p))&&-1e-6<b&&(b=0),b}function S(o,s,e){return 0|255*(1>6*(o=0>o?o+1:1<o?o-1:o)?s+6*((e-s)*o):.5>o?e:2>3*o?s+6*((e-s)*(2/3-o)):s)+.5}function _(d,t){for(var e=d.match(we)||[],s=0,l=e.length?"":d,_=0,u,c;_<e.length;_++)u=e[_],s+=(c=d.substr(s,d.indexOf(u,s)-s)).length+u.length,3===(u=Ce(u,t)).length&&u.push(1),l+=c+(t?"hsla("+u[0]+","+u[1]+"%,"+u[2]+"%,"+u[3]:"rgba("+u.join(","))+")";return l+d.substr(s)}function r(s,t,d,n){if(null==s)return function(e){return e};var a=t?(s.match(we)||[""])[0]:"",l=s.split(a).join("").match(X)||[],b=s.substr(0,s.indexOf(l[0])),h=")"===s.charAt(s.length-1)?")":"",u=-1===s.indexOf(" ")?",":" ",p=l.length,_=0<p?l[0].replace(_e,""):"",e;return p?e=t?function(o){var c,m,g,y;if("number"==typeof o)o+=_;else if(n&&Z.test(o)){for(y=o.replace(Z,"|").split("|"),g=0;g<y.length;g++)y[g]=e(y[g]);return y.join(",")}if(c=(o.match(we)||[a])[0],g=(m=o.split(c).join("").match(X)||[]).length,p>g--)for(;++g<p;)m[g]=d?m[0|(g-1)/2]:l[g];return b+m.join(u)+u+c+h+(-1===o.indexOf("inset")?"":" inset")}:function(o){var s,a,c;if("number"==typeof o)o+=_;else if(n&&Z.test(o)){for(a=o.replace(Z,"|").split("|"),c=0;c<a.length;c++)a[c]=e(a[c]);return a.join(",")}if(c=(s=o.match(X)||[]).length,p>c--)for(;++c<p;)s[c]=d?s[0|(c-1)/2]:l[c];return b+s.join(u)+h}:function(e){return e}}function v(e){return e=e.split(","),function(d,t,_,u,r,s,n){var c=(t+"").split(" "),l;for(n={},l=0;4>l;l++)n[e[l]]=c[l]=c[l]||c[(l-1)/2>>0];return u.parse(d,n,r,s)}}function A(o,t,e,d,r,s){var n=new De(o,t,e,d-e,r,-1,s);return n.b=e,n.e=n.xs0=d,n}function R(o,t){t=t||{},this.p=t.prefix&&q(o)||o,(re[o]=re[this.p]=this).format=t.formatter||r(t.defaultValue,t.color,t.collapsible,t.multi),t.parser&&(this.parse=t.parser),this.clrs=t.color,this.multi=t.multi,this.keyword=t.keyword,this.dflt=t.defaultValue,this.pr=t.priority||0}function j(o,t,e){var n=ce.createElementNS("http://www.w3.org/2000/svg",o),s;for(s in e)n.setAttributeNS(null,s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e[s]);return t.appendChild(n),n}function $(b,t,S,P,r,s){var n=b._fwdTransform,T=et(b,!0),B,C,w,E,H,k,O,L,A,I,M,W,R,D;n&&(R=n.xOrigin,D=n.yOrigin),(!P||2>(B=P.split(" ")).length)&&(O=b.getBBox(),B=[(-1===(t=Te(t).split(" "))[0].indexOf("%")?parseFloat(t[0]):parseFloat(t[0])/100*O.width)+O.x,(-1===t[1].indexOf("%")?parseFloat(t[1]):parseFloat(t[1])/100*O.height)+O.y]),S.xOrigin=E=parseFloat(B[0]),S.yOrigin=H=parseFloat(B[1]),P&&T!==$e&&(k=T[0],O=T[1],L=T[2],A=T[3],I=T[4],C=E*(A/(W=k*A-O*L))+H*(-L/W)+(L*(M=T[5])-A*I)/W,w=E*(-O/W)+H*(k/W)-(k*M-O*I)/W,E=S.xOrigin=B[0]=C,H=S.yOrigin=B[1]=w),n&&(s&&(S.xOffset=n.xOffset,S.yOffset=n.yOffset,n=S),r||!1!==r&&!1!==ne.defaultSmoothOrigin?(C=E-R,w=H-D,n.xOffset+=C*T[0]+w*T[2]-C,n.yOffset+=C*T[1]+w*T[3]-w):n.xOffset=n.yOffset=0),s||b.setAttribute("data-svg-origin",B.join(" "))}function ee(a){var t=this.data,r=-t.rotation*U,s=r+t.skewX*U,n=(0|Math.cos(r)*t.scaleX*100000)/100000,o=(0|Math.sin(r)*t.scaleX*100000)/100000,S=(0|Math.sin(s)*-t.scaleY*100000)/100000,B=(0|Math.cos(s)*t.scaleY*100000)/100000,f=this.t.style,u=this.t.currentStyle,p,C;if(u){C=o,o=-S,S=-C,p=u.filter,f.filter="";var E=this.t.offsetWidth,_=this.t.offsetHeight,c="absolute"!==u.position,d="progid:DXImageTransform.Microsoft.Matrix(M11="+n+", M12="+o+", M21="+S+", M22="+B,H=t.x+E*t.xPercent/100,k=t.y+_*t.yPercent/100;if(null!=t.ox&&(H+=(T=(t.oxp?.01*(E*t.ox):t.ox)-E/2)-(T*n+(L=(t.oyp?.01*(_*t.oy):t.oy)-_/2)*o),k+=L-(T*S+L*B)),d+=c?", Dx="+((T=E/2)-(T*n+(L=_/2)*o)+H)+", Dy="+(L-(T*S+L*B)+k)+")":", sizingMethod='auto expand')",f.filter=-1===p.indexOf("DXImageTransform.Microsoft.Matrix(")?d+" "+p:p.replace(N,d),0!==a&&1!==a||1==n&&0===o&&0===S&&1==B&&(c&&-1===d.indexOf("Dx=0, Dy=0")||I.test(p)&&100!==parseFloat(RegExp.$1)||-1===p.indexOf(p.indexOf("Alpha"))&&f.removeAttribute("filter")),!c){var O=8>Le?1:-1,T=t.ieOffsetX||0,L=t.ieOffsetY||0,A,M,W;for(t.ieOffsetX=Math.round((E-((0>n?-n:n)*E+(0>o?-o:o)*_))/2+H),t.ieOffsetY=Math.round((_-((0>B?-B:B)*_+(0>S?-S:S)*E))/2+k),Fe=0;4>Fe;Fe++)W=(C=-1===(A=u[M=Pe[Fe]]).indexOf("px")?Se(this.t,M,parseFloat(A),A.replace(ue,""))||0:parseFloat(A))===t[M]?2>Fe?T-t.ieOffsetX:L-t.ieOffsetY:2>Fe?-t.ieOffsetX:-t.ieOffsetY,f[M]=(t[M]=Math.round(C-W*(0===Fe||2===Fe?1:O)))+"px"}}}function te(o){var t=this.t,n=t.filter||ye(this.data,"filter")||"",a=0|this.s+this.c*o,s;100==a&&(s=-1===n.indexOf("atrix(")&&-1===n.indexOf("radient(")&&-1===n.indexOf("oader(")?(t.removeAttribute("filter"),!ye(this.data,"filter")):(t.filter=n.replace(f,""),!0)),s||(this.xn1&&(t.filter=n=n||"alpha(opacity="+a+")"),-1===n.indexOf("pacity")?0==a&&this.xn1||(t.filter=n+" alpha(opacity="+a+")"):t.filter=n.replace(I,"opacity="+a))}function oe(o){if(this.t._fwdClassPT=this,1===o||0===o){this.t.setAttribute("class",0===o?this.b:this.e);for(var t=this.data,s=this.t.style;t;)t.v?s[t.p]=t.v:ut(s,t.p),t=t._next;1===o&&this.t._fwdClassPT===this&&(this.t._fwdClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)}function se(d){if((1===d||0===d)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var t=this.t.style,a=re.transform.parse,o,l,_,u,c;if("all"===this.e)u=!(t.cssText="");else for(_=(o=this.e.split(" ").join("").split(",")).length;-1<--_;)l=o[_],re[l]&&(re[l].parse===a?u=!0:l="transformOrigin"===l?Qe:re[l].p),ut(t,l);u&&(ut(t,Ye),(c=this.t._fwdTransform)&&(c.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._fwdTransform))}}function ie(){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)}var ne=function(){E.call(this,"css"),this._overwriteProps.length=0,this.setRatio=ne.prototype.setRatio},W=_fwd_fwdScope.FWDFWD_fwdDefine.globals,re={},h=ne.prototype=new E("css"),m,ae,de,le;(h.constructor=ne).version="1.19.0",ne.API=2,ne.defaultTransformPerspective=0,ne.defaultSkewType="compensated",ne.defaultSmoothOrigin=!0,h="px",ne.suffixMap={top:h,right:h,bottom:h,left:h,width:h,height:h,fontSize:h,padding:h,margin:h,perspective:h,lineHeight:""};var _e=/(?:\-|\.|\b)(\d|\.|e\-)+/g,z=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,X=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,b=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,ue=/(?:\d|\-|\+|=|#|\.)*/g,I=/opacity *= *([^)]*)/i,f=/alpha\(opacity *=.+?\)/i,l=/([A-Z])/g,u=/-([a-z])/gi,N=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,Z=/,(?=[^\)]*(?:\(|$))/gi,U=Math.PI/180,Q=180/Math.PI,G={},ce=document,K=n("div"),p=n("img"),J=ne._internals={_specialProps:re},pe=navigator.userAgent,be=(Me=pe.indexOf("Android"),We=n("a"),ke=-1!==pe.indexOf("Safari")&&-1===pe.indexOf("Chrome")&&(-1===Me||3<+pe.substr(Me+8,1)),xe=ke&&6>+pe.substr(pe.indexOf("Version/")+8,1),Oe=-1!==pe.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(pe)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(pe))&&(Le=parseFloat(RegExp.$1)),!!We&&(We.style.cssText="top:1px;opacity:.55;",/^0.55/.test(We.style.opacity))),he="",me="",ge=ce.defaultView?ce.defaultView.getComputedStyle:function(){},ye=ne.getStyle=function(o,t,e,d,r){var s;return be||"opacity"!==t?(!d&&o.style[t]?s=o.style[t]:(e=e||ge(o))?s=e[t]||e.getPropertyValue(t)||e.getPropertyValue(t.replace(l,"-$1").toLowerCase()):o.currentStyle&&(s=o.currentStyle[t]),null==r||s&&"none"!==s&&"auto"!==s&&"auto auto"!==s?s:r):a(o)},Se=J.convertToPixels=function(d,t,e,_,r){if("px"===_||!_)return e;if("auto"===_||!e)return 0;var s=/(?:Left|Right|Width)/i.test(t),l=d,c=K.style,b=0>e,u=1===e,p,m,g;if(b&&(e=-e),u&&(e*=100),"%"===_&&-1!==t.indexOf("border"))p=e/100*(s?d.clientWidth:d.clientHeight);else{if(c.cssText="border:0 solid red;position:"+ye(d,"position")+";line-height:0;","%"!==_&&l.appendChild&&"v"!==_.charAt(0)&&"rem"!==_)c[s?"borderLeftWidth":"borderTopWidth"]=e+_;else{if(m=(l=d.parentNode||ce.body)._fwdCache,g=L.ticker.frame,m&&s&&m.time===g)return m.width*e/100;c[s?"width":"height"]=e+_}l.appendChild(K),p=parseFloat(K[s?"offsetWidth":"offsetHeight"]),l.removeChild(K),s&&"%"===_&&!1!==ne.cacheWidths&&((m=l._fwdCache=l._fwdCache||{}).time=g,m.width=100*(p/e)),0!==p||r||(p=Se(d,t,e,_,!0))}return u&&(p/=100),b?-p:p},ve=J.calculateOffset=function(o,t,e){if("absolute"!==ye(o,"position",e))return 0;var n="left"===t?"Left":"Top",r=ye(o,"margin"+n,e);return o["offset"+n]-(Se(o,t,parseFloat(r),r.replace(ue,""))||0)},fe={width:["Left","Right"],height:["Top","Bottom"]},Pe=["marginLeft","marginRight","marginTop","marginBottom"],Te=function(o,a){if("contain"===o||"auto"===o||"auto auto"===o)return o+" ";null!=o&&""!==o||(o="0 0");var e=o.split(" "),d=-1===o.indexOf("left")?-1===o.indexOf("right")?e[0]:"100%":"0%",l=-1===o.indexOf("top")?-1===o.indexOf("bottom")?e[1]:"100%":"0%",_;if(3<e.length&&!a){for(e=o.split(", ").join(",").split(","),o=[],_=0;_<e.length;_++)o.push(Te(e[_]));return o.join(",")}return null==l?l="center"===d?"50%":"0":"center"===l&&(l="50%"),("center"===d||isNaN(parseFloat(d))&&-1===(d+"").indexOf("="))&&(d="50%"),o=d+" "+l+(2<e.length?" "+e[2]:""),a&&(a.oxp=-1!==d.indexOf("%"),a.oyp=-1!==l.indexOf("%"),a.oxr="="===d.charAt(1),a.oyr="="===l.charAt(1),a.ox=parseFloat(d.replace(b,"")),a.oy=parseFloat(l.replace(b,"")),a.v=o),a||o},Be={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},Ce=ne.parseColor=function(d,_){var e,c,b,m,g,y,v,P,T,B,C;if(!d)e=Be.black;else if("number"==typeof d)e=[d>>16,255&d>>8,255&d];else{if(","===d.charAt(d.length-1)&&(d=d.substr(0,d.length-1)),Be[d])e=Be[d];else if("#"===d.charAt(0))4===d.length&&(d="#"+(c=d.charAt(1))+c+(b=d.charAt(2))+b+(m=d.charAt(3))+m),e=[(d=parseInt(d.substr(1),16))>>16,255&d>>8,255&d];else if(!("hsl"===d.substr(0,3)))e=d.match(_e)||Be.transparent;else if(!(e=C=d.match(_e),_))g=+e[0]%360/360,y=+e[1]/100,c=2*(v=+e[2]/100)-(b=.5>=v?v*(y+1):v+y-v*y),3<e.length&&(e[3]=+d[3]),e[0]=S(g+1/3,c,b),e[1]=S(g,c,b),e[2]=S(g-1/3,c,b);else if(-1!==d.indexOf("="))return d.match(z);e[0]=+e[0],e[1]=+e[1],e[2]=+e[2],3<e.length&&(e[3]=+e[3])}return _&&!C&&(c=e[0]/255,b=e[1]/255,m=e[2]/255,v=((P=Math.max(c,b,m))+(T=Math.min(c,b,m)))/2,P===T?g=y=0:(B=P-T,y=.5<v?B/(2-P-T):B/(P+T),g=P===c?(b-m)/B+(b<m?6:0):P===b?(m-c)/B+2:(c-b)/B+4,g*=60),e[0]=0|g+.5,e[1]=0|100*y+.5,e[2]=0|100*v+.5),e},we="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b",Ee,He,ke,Oe,xe,Le,Ae,Ie,Me,We;for(h in Be)we+="|"+h+"\\b";we=new RegExp(we+")","gi"),ne.colorStringFilter=function(o){var t=o[0]+o[1],s;we.test(t)&&(s=-1!==t.indexOf("hsl(")||-1!==t.indexOf("hsla("),o[0]=_(o[0],s),o[1]=_(o[1],s)),we.lastIndex=0},L.defaultStringFilter||(L.defaultStringFilter=ne.colorStringFilter),J._setPluginRatio=function(d){this.plugin.setRatio(d);for(var t=this.data,a=t.proxy,o=t.firstMPT,_,u,c,p,b;o;)_=a[o.v],o.r?_=Math.round(_):1e-6>_&&-1e-6<_&&(_=0),o.t[o.p]=_,o=o._next;if(t.autoRotate&&(t.autoRotate.rotation=t.mod?t.mod(a.rotation,this.t):a.rotation),1===d||0===d)for(o=t.firstMPT,b=1===d?"e":"b";o;){if(!(u=o.t).type)u[b]=u.s+u.xs0;else if(1===u.type){for(p=u.xs0+u.s+u.xs1,c=1;c<u.l;c++)p+=u["xn"+c]+u["xs"+(c+1)];u[b]=p}o=o._next}};var Re=function(o,t,e,n,r){this.t=o,this.p=t,this.v=e,this.r=r,n&&((n._prev=this)._next=n)},De=(J._parseToProxy=function(b,t,e,m,g,s){var n=m,u={},p={},_=e._transform,c=G,d,y,S,v,P;for(e._transform=null,G=t,m=P=e.parse(b,t,m,g),G=c,s&&(e._transform=_,n&&(n._prev=null,n._prev&&(n._prev._next=null)));m&&m!==n;){if(1>=m.type&&(p[y=m.p]=m.s+m.c,u[y]=m.s,s||(v=new Re(m,"s",y,v,m.r),m.c=0),1===m.type))for(d=m.l;0<--d;)S="xn"+d,p[y=m.p+"_"+S]=m.data[S],u[y]=m[S],s||(v=new Re(m,S,y,v,m.rxp[S]));m=m._next}return{proxy:u,end:p,firstMPT:v,pt:P}},J.CSSPropTween=function(d,t,e,_,r,s,n,a,o,l,u){this.t=d,this.p=t,this.s=e,this.c=_,this.n=n||t,d instanceof De||le.push(this.n),this.r=a,this.type=s||0,o&&(this.pr=o,m=!0),this.b=void 0===l?e:l,this.e=void 0===u?e+_:u,r&&((this._next=r)._prev=this)}),Ve=ne.parseComplex=function(S,t,B,C,E,s,n,H,o,l){B=B||s||"","function"==typeof C&&(C=C(Ie,Ae)),n=new De(S,t,0,0,n,l?2:1,null,!1,H,B,C),C+="",E&&we.test(C+B)&&(C=[B,C],ne.colorStringFilter(C),B=C[0],C=C[1]);var h=B.split(", ").join(",").split(" "),L=C.split(", ").join(",").split(" "),A=h.length,I=!1!==Ee,k,M,W,R,D,V,F,U,N,X,Y,Q,G;for(-1===C.indexOf(",")&&-1===B.indexOf(",")||(h=h.join(" ").replace(Z,", ").split(" "),L=L.join(" ").replace(Z,", ").split(" "),A=h.length),A!==L.length&&(A=(h=(s||"").split(" ")).length),n.plugin=o,n.setRatio=l,k=we.lastIndex=0;k<A;k++)if(R=h[k],D=L[k],(U=parseFloat(R))||0===U)n.appendXtra("",U,e(D,U),D.replace(z,""),I&&-1!==D.indexOf("px"),!0);else if(E&&we.test(R))Q=")"+((Q=D.indexOf(")")+1)?D.substr(Q):""),G=-1!==D.indexOf("hsl")&&be,R=Ce(R,G),D=Ce(D,G),(N=6<R.length+D.length)&&!be&&0===D[3]?(n["xs"+n.l]+=n.l?" transparent":"transparent",n.e=n.e.split(L[k]).join("transparent")):(be||(N=!1),G?n.appendXtra(N?"hsla(":"hsl(",R[0],e(D[0],R[0]),",",!1,!0).appendXtra("",R[1],e(D[1],R[1]),"%,",!1).appendXtra("",R[2],e(D[2],R[2]),N?"%,":"%"+Q,!1):n.appendXtra(N?"rgba(":"rgb(",R[0],D[0]-R[0],",",!0,!0).appendXtra("",R[1],D[1]-R[1],",",!0).appendXtra("",R[2],D[2]-R[2],N?",":Q,!0),N&&(R=4>R.length?1:R[3],n.appendXtra("",R,(4>D.length?1:D[3])-R,Q,!1))),we.lastIndex=0;else if(V=R.match(_e)){if(!(F=D.match(z))||F.length!==V.length)return n;for(M=W=0;M<V.length;M++)Y=V[M],X=R.indexOf(Y,W),n.appendXtra(R.substr(W,X-W),+Y,e(F[M],Y),"",I&&"px"===R.substr(X+Y.length,2),0===M),W=X+Y.length;n["xs"+n.l]+=R.substr(W)}else n["xs"+n.l]+=n.l||n["xs"+n.l]?" "+D:D;if(-1!==C.indexOf("=")&&n.data){for(Q=n.xs0+n.data.s,k=1;k<n.l;k++)Q+=n["xs"+k]+n.data["xn"+k];n.e=Q+n["xs"+k]}return n.l||(n.type=-1,n.xs0=n.e),n.xfirst||n},Fe=9;for((h=De.prototype).l=h.pr=0;0<--Fe;)h["xn"+Fe]=0,h["xs"+Fe]="";h.xs0="",h._next=h._prev=h.xfirst=h.data=h.plugin=h.setRatio=h.rxp=null,h.appendXtra=function(d,t,e,l,r,s){var n=this,a=n.l;return n["xs"+a]+=s&&(a||n["xs"+a])?" "+d:d||"",e||0===a||n.plugin?(n.l++,n.type=n.setRatio?2:1,n["xs"+n.l]=l||"",0<a?(n.data["xn"+a]=t+e,n.rxp["xn"+a]=r,n["xn"+a]=t,n.plugin||(n.xfirst=new De(n,"xn"+a,t,e,n.xfirst||n,0,n.n,r,n.pr),n.xfirst.xs0=0)):(n.data={s:t+e},n.rxp={},n.s=t,n.c=e,n.r=r),n):(n["xs"+a]+=t+(l||""),n)};var Ue=J._registerComplexSpecialProp=function(o,t,a){"object"!=typeof t&&(t={parser:a});var d=o.split(","),s=t.defaultValue,n;for(a=a||[s],n=0;n<d.length;n++)t.prefix=0===n&&t.prefix,t.defaultValue=a[n]||s,new R(d[n],t)},Ne=J._registerPluginProp=function(e){var d;re[e]||(d=e.charAt(0).toUpperCase()+e.substr(1)+"Plugin",Ue(e,{parser:function(l,t,e,_,r,s,n){var a=W.com.fwd.plugins[d];return a?(a._cssRegister(),re[e].parse(l,t,e,_,r,s,n)):(V("Error: "+d+" js file not loaded."),r)}}))};(h=R.prototype).parseComplex=function(d,t,_,c,r,s){var n=this.keyword,p,b,m,g,y,S;if(this.multi&&(Z.test(_)||Z.test(t)?(b=t.replace(Z,"|").split("|"),m=_.replace(Z,"|").split("|")):n&&(b=[t],m=[_])),m){for(g=m.length>b.length?m.length:b.length,p=0;p<g;p++)t=b[p]=b[p]||this.dflt,_=m[p]=m[p]||this.dflt,n&&(y=t.indexOf(n))!==(S=_.indexOf(n))&&(-1===S?b[p]=b[p].split(n).join(""):-1===y&&(b[p]+=" "+n));t=b.join(", "),_=m.join(", ")}return Ve(d,this.p,t,_,this.clrs,this.dflt,c,this.pr,r,s)},h.parse=function(o,t,e,a,r,s){return this.parseComplex(o.style,this.format(ye(o,this.p,de,!1,this.dflt)),this.format(t),r,s)},ne.registerSpecialProp=function(e,a,d){Ue(e,{parser:function(l,t,e,_,r,s){var n=new De(l,e,0,0,r,2,e,!1,d);return n.plugin=s,n.setRatio=a(l,t,_._tween,e),n},priority:d})},ne.useSVGTransformAttr=ke||Oe;var Xe=["scaleX","scaleY","scaleZ","x","y","z","skewX","skewY","rotation","rotationX","rotationY","perspective","xPercent","yPercent"],Ye=q("transform"),ze=he+"transform",Qe=q("transformOrigin"),Ge=null!==q("perspective"),qe=J.Transform=function(){this.perspective=parseFloat(ne.defaultTransformPerspective)||0,this.force3D=!1!==ne.defaultForce3D&&Ge&&(ne.defaultForce3D||"auto")},je=window.SVGElement,Ke=ce.documentElement,Je=(_t=Le||/Android/i.test(pe)&&!window.chrome,ce.createElementNS&&!_t&&(rt=j("svg",Ke),lt=(at=j("rect",rt,{width:100,height:50,x:100})).getBoundingClientRect().width,at.style[Qe]="50% 50%",at.style[Ye]="scaleX(0.5)",_t=lt===at.getBoundingClientRect().width&&!(Oe&&Ge),Ke.removeChild(rt)),_t),Ze=function(e){return!!(je&&e.getBBox&&e.getCTM&&function(e){try{return e.getBBox()}catch(e){}}(e)&&(!e.parentNode||e.parentNode.getBBox&&e.parentNode.getCTM))},$e=[1,0,0,1,0,0],et=function(d,t){var e=d._fwdTransform||new qe,l=d.style,_,u,c,p,b,h;if(Ye?u=ye(d,ze,null,!0):d.currentStyle&&(u=(u=d.currentStyle.filter.match(/(M11|M12|M21|M22)=[\d\-\.e]+/gi))&&4===u.length?[u[0].substr(4),+u[2].substr(4),+u[1].substr(4),u[3].substr(4),e.x||0,e.y||0].join(","):""),(_=!u||"none"===u||"matrix(1, 0, 0, 1, 0, 0)"===u)&&Ye&&((h="none"===ge(d).display)||!d.parentNode)&&(h&&(p=l.display,l.display="block"),d.parentNode||(b=1,Ke.appendChild(d)),_=!(u=ye(d,ze,null,!0))||"none"===u||"matrix(1, 0, 0, 1, 0, 0)"===u,p?l.display=p:h&&ut(l,"display"),b&&Ke.removeChild(d)),(e.svg||d.getBBox&&Ze(d))&&(_&&-1!==(l[Ye]+"").indexOf("matrix")&&(u=l[Ye],_=0),c=d.getAttribute("transform"),_&&c&&(-1===c.indexOf("matrix")?-1!==c.indexOf("translate")&&(u="matrix(1,0,0,1,"+c.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",_=0):(u=c,_=0))),_)return $e;for(c=(u||"").match(_e)||[],Fe=c.length;-1<--Fe;)p=+c[Fe],c[Fe]=(b=p-(p|=0))?(0|1e5*b+(0>b?-.5:.5))/1e5+p:p;return t&&6<c.length?[c[0],c[1],c[4],c[5],c[12],c[13]]:c},tt=J.getTransform=function(B,t,e,H){if(B._fwdTransform&&e&&!H)return B._fwdTransform;var r=e&&B._fwdTransform||new qe,I=0>r.scaleX,W=Ge&&(parseFloat(ye(B,Qe,t,!1,"0 0 0").split(" ")[2])||r.zOrigin)||0,V=parseFloat(ne.defaultTransformPerspective)||0,E,U,N,Y,G,q,j,K,J,Z,ee,te,oe,se,ie,re,ae,de,le,_e,ue,ce,pe,be,he,me,ge,Se,ve,fe,Pe,Te;if(r.svg=B.getBBox&&Ze(B),r.svg&&($(B,ye(B,Qe,t,!1,"50% 50%")+"",r,B.getAttribute("data-svg-origin")),it=ne.useSVGTransformAttr||Je),(E=et(B))!==$e)for(U in 16===E.length?(j=E[0],K=E[1],J=E[2],Z=E[3],ee=E[4],te=E[5],oe=E[6],se=E[7],ie=E[8],re=E[9],ae=E[10],de=E[12],le=E[13],_e=E[14],ue=E[11],ce=Math.atan2(oe,ae),r.zOrigin&&(de=ie*(_e=-r.zOrigin)-E[12],le=re*_e-E[13],_e=ae*_e+r.zOrigin-E[14]),r.rotationX=ce*Q,ce&&(pe=ee*(me=Math.cos(-ce))+ie*(ge=Math.sin(-ce)),be=te*me+re*ge,he=oe*me+ae*ge,ie=ee*-ge+ie*me,re=te*-ge+re*me,ae=oe*-ge+ae*me,ue=se*-ge+ue*me,ee=pe,te=be,oe=he),ce=Math.atan2(-J,ae),r.rotationY=ce*Q,ce&&(be=K*(me=Math.cos(-ce))-re*(ge=Math.sin(-ce)),he=J*me-ae*ge,re=K*ge+re*me,ae=J*ge+ae*me,ue=Z*ge+ue*me,j=pe=j*me-ie*ge,K=be,J=he),ce=Math.atan2(K,j),r.rotation=ce*Q,ce&&(j=j*(me=Math.cos(-ce))+ee*(ge=Math.sin(-ce)),be=K*me+te*ge,te=K*-ge+te*me,oe=J*-ge+oe*me,K=be),r.rotationX&&359.9<Math.abs(r.rotationX)+Math.abs(r.rotation)&&(r.rotationX=r.rotation=0,r.rotationY=180-r.rotationY),r.scaleX=(0|1e5*Math.sqrt(j*j+K*K)+.5)/1e5,r.scaleY=(0|1e5*Math.sqrt(te*te+re*re)+.5)/1e5,r.scaleZ=(0|1e5*Math.sqrt(oe*oe+ae*ae)+.5)/1e5,r.rotationX||r.rotationY?r.skewX=0:(r.skewX=ee||te?Math.atan2(ee,te)*Q+r.rotation:r.skewX||0,90<Math.abs(r.skewX)&&270>Math.abs(r.skewX)&&(I?(r.scaleX*=-1,r.skewX+=0>=r.rotation?180:-180,r.rotation+=0>=r.rotation?180:-180):(r.scaleY*=-1,r.skewX+=0>=r.skewX?180:-180))),r.perspective=ue?1/(0>ue?-ue:ue):0,r.x=de,r.y=le,r.z=_e,r.svg&&(r.x-=r.xOrigin-(r.xOrigin*j-r.yOrigin*ee),r.y-=r.yOrigin-(r.yOrigin*K-r.xOrigin*te))):Ge&&!H&&E.length&&r.x===E[4]&&r.y===E[5]&&(r.rotationX||r.rotationY)||(ve=(Se=6<=E.length)?E[0]:1,fe=E[1]||0,Pe=E[2]||0,Te=Se?E[3]:1,r.x=E[4]||0,r.y=E[5]||0,N=Math.sqrt(ve*ve+fe*fe),Y=Math.sqrt(Te*Te+Pe*Pe),G=ve||fe?Math.atan2(fe,ve)*Q:r.rotation||0,q=Pe||Te?Math.atan2(Pe,Te)*Q+G:r.skewX||0,90<Math.abs(q)&&270>Math.abs(q)&&(I?(N*=-1,q+=0>=G?180:-180,G+=0>=G?180:-180):(Y*=-1,q+=0>=q?180:-180)),r.scaleX=N,r.scaleY=Y,r.rotation=G,r.skewX=q,Ge&&(r.rotationX=r.rotationY=r.z=0,r.perspective=V,r.scaleZ=1),r.svg&&(r.x-=r.xOrigin-(r.xOrigin*ve+r.yOrigin*Pe),r.y-=r.yOrigin-(r.xOrigin*fe+r.yOrigin*Te))),r.zOrigin=W,r)2e-5>r[U]&&-2e-5<r[U]&&(r[U]=0);return e&&(B._fwdTransform=r).svg&&(it&&B.style[Ye]?L.delayedCall(.001,function(){ut(B.style,Ye)}):!it&&B.getAttribute("transform")&&L.delayedCall(.001,function(){B.removeAttribute("transform")})),r},ot=J.set3DTransformRatio=J.setTransformRatio=function(B){var t=this.data,P=this.t.style,E=t.rotation,H=t.rotationX,O=t.rotationY,S=t.scaleX,L=t.scaleY,W=t.scaleZ,R=t.x,V=t.y,Y=t.z,Q=t.svg,X=t.perspective,G=t.force3D,N,q,j,K,J,Z,$,ee,te,oe,se,ie,ne,re,ae,de,le,_e,ue,ce,pe,be,he;if(!((1!==B&&0!==B||"auto"!==G||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&G||Y||X||O||H||1!==W)||it&&Q||!Ge)E||t.skewX||Q?(E*=U,be=t.skewX*U,he=1e5,N=Math.cos(E)*S,K=Math.sin(E)*S,q=Math.sin(E-be)*-L,J=Math.cos(E-be)*L,be&&"simple"===t.skewType&&(le=Math.tan(be-t.skewY*U),q*=le=Math.sqrt(1+le*le),J*=le,t.skewY&&(le=Math.tan(t.skewY*U),N*=le=Math.sqrt(1+le*le),K*=le)),Q&&(R+=t.xOrigin-(t.xOrigin*N+t.yOrigin*q)+t.xOffset,V+=t.yOrigin-(t.xOrigin*K+t.yOrigin*J)+t.yOffset,it&&(t.xPercent||t.yPercent)&&(re=this.t.getBBox(),R+=.01*t.xPercent*re.width,V+=.01*t.yPercent*re.height),R<(re=1e-6)&&-re<R&&(R=0),V<re&&-re<V&&(V=0)),ue=(0|N*he)/he+","+(0|K*he)/he+","+(0|q*he)/he+","+(0|J*he)/he+","+R+","+V+")",Q&&it?this.t.setAttribute("transform","matrix("+ue):P[Ye]=(t.xPercent||t.yPercent?"translate("+t.xPercent+"%,"+t.yPercent+"%) matrix(":"matrix(")+ue):P[Ye]=(t.xPercent||t.yPercent?"translate("+t.xPercent+"%,"+t.yPercent+"%) matrix(":"matrix(")+S+",0,0,"+L+","+R+","+V+")";else{if(Oe&&(S<(re=1e-4)&&-re<S&&(S=W=2e-5),L<re&&-re<L&&(L=W=2e-5),!X||t.z||t.rotationX||t.rotationY||(X=0)),E||t.skewX)E*=U,ae=N=Math.cos(E),de=K=Math.sin(E),t.skewX&&(E-=t.skewX*U,ae=Math.cos(E),de=Math.sin(E),"simple"===t.skewType&&(le=Math.tan((t.skewX-t.skewY)*U),ae*=le=Math.sqrt(1+le*le),de*=le,t.skewY&&(le=Math.tan(t.skewY*U),N*=le=Math.sqrt(1+le*le),K*=le))),q=-de,J=ae;else{if(!(O||H||1!==W||X||Q))return void(P[Ye]=(t.xPercent||t.yPercent?"translate("+t.xPercent+"%,"+t.yPercent+"%) translate3d(":"translate3d(")+R+"px,"+V+"px,"+Y+"px)"+(1!==S||1!==L?" scale("+S+","+L+")":""));N=J=1,q=K=0}te=1,j=Z=$=ee=oe=se=0,ie=X?-1/X:0,ne=t.zOrigin,re=1e-6,ce=",",pe="0",(E=O*U)&&(ae=Math.cos(E),oe=ie*($=-(de=Math.sin(E))),j=N*de,Z=K*de,ie*=te=ae,N*=ae,K*=ae),(E=H*U)&&(le=q*(ae=Math.cos(E))+j*(de=Math.sin(E)),_e=J*ae+Z*de,ee=te*de,se=ie*de,j=q*-de+j*ae,Z=J*-de+Z*ae,te*=ae,ie*=ae,q=le,J=_e),1!==W&&(j*=W,Z*=W,te*=W,ie*=W),1!==L&&(q*=L,J*=L,ee*=L,se*=L),1!==S&&(N*=S,K*=S,$*=S,oe*=S),(ne||Q)&&(ne&&(R+=j*-ne,V+=Z*-ne,Y+=te*-ne+ne),Q&&(R+=t.xOrigin-(t.xOrigin*N+t.yOrigin*q)+t.xOffset,V+=t.yOrigin-(t.xOrigin*K+t.yOrigin*J)+t.yOffset),R<re&&-re<R&&(R=pe),V<re&&-re<V&&(V=pe),Y<re&&-re<Y&&(Y=0)),ue=t.xPercent||t.yPercent?"translate("+t.xPercent+"%,"+t.yPercent+"%) matrix3d(":"matrix3d(",ue+=(N<re&&-re<N?pe:N)+ce+(K<re&&-re<K?pe:K)+ce+($<re&&-re<$?pe:$),ue+=ce+(oe<re&&-re<oe?pe:oe)+ce+(q<re&&-re<q?pe:q)+ce+(J<re&&-re<J?pe:J),H||O||1!==W?(ue+=ce+(ee<re&&-re<ee?pe:ee)+ce+(se<re&&-re<se?pe:se)+ce+(j<re&&-re<j?pe:j),ue+=ce+(Z<re&&-re<Z?pe:Z)+ce+(te<re&&-re<te?pe:te)+ce+(ie<re&&-re<ie?pe:ie)+ce):ue+=",0,0,0,0,1,0,",ue+=R+ce+V+ce+Y+ce+(X?1+-Y/X:1)+")",P[Ye]=ue}},it,rt,at,lt,_t;(h=qe.prototype).x=h.y=h.z=h.skewX=h.skewY=h.rotation=h.rotationX=h.rotationY=h.zOrigin=h.xPercent=h.yPercent=h.xOffset=h.yOffset=0,h.scaleX=h.scaleY=h.scaleZ=1,Ue("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(S,t,e,T,r,B,n){if(T._lastParsedTransform===n)return r;var a;"function"==typeof(T._lastParsedTransform=n)[e]&&(a=n[e],n[e]=t);var C=S._fwdTransform,g=S.style,y=Xe.length,E=n,H={},w=tt(S,de,!0,E.parseTransform),b=E.transform&&("function"==typeof E.transform?E.transform(Ie,Ae):E.transform),O,x,L,I,M,W,R,D,V;if(T._transform=w,b&&"string"==typeof b&&Ye)(x=K.style)[Ye]=b,x.display="block",x.position="absolute",ce.body.appendChild(K),O=tt(K,null,!1),w.svg&&(W=w.xOrigin,R=w.yOrigin,O.x-=w.xOffset,O.y-=w.yOffset,(E.transformOrigin||E.svgOrigin)&&(b={},$(S,Te(E.transformOrigin),b,E.svgOrigin,E.smoothOrigin,!0),W=b.xOrigin,R=b.yOrigin,O.x-=b.xOffset-w.xOffset,O.y-=b.yOffset-w.yOffset),(W||R)&&(D=et(K,!0),O.x-=W-(W*D[0]+R*D[2]),O.y-=R-(W*D[1]+R*D[3]))),ce.body.removeChild(K),O.perspective||(O.perspective=w.perspective),null!=E.xPercent&&(O.xPercent=k(E.xPercent,w.xPercent)),null!=E.yPercent&&(O.yPercent=k(E.yPercent,w.yPercent));else if("object"==typeof E){if(O={scaleX:k(null==E.scaleX?E.scale:E.scaleX,w.scaleX),scaleY:k(null==E.scaleY?E.scale:E.scaleY,w.scaleY),scaleZ:k(E.scaleZ,w.scaleZ),x:k(E.x,w.x),y:k(E.y,w.y),z:k(E.z,w.z),xPercent:k(E.xPercent,w.xPercent),yPercent:k(E.yPercent,w.yPercent),perspective:k(E.transformPerspective,w.perspective)},null!=(M=E.directionalRotation))if("object"==typeof M)for(x in M)E[x]=M[x];else E.rotation=M;"string"==typeof E.x&&-1!==E.x.indexOf("%")&&(O.x=0,O.xPercent=k(E.x,w.xPercent)),"string"==typeof E.y&&-1!==E.y.indexOf("%")&&(O.y=0,O.yPercent=k(E.y,w.yPercent)),O.rotation=o("rotation"in E?E.rotation:"shortRotation"in E?E.shortRotation+"_short":"rotationZ"in E?E.rotationZ:w.rotation-w.skewY,w.rotation-w.skewY,"rotation",H),Ge&&(O.rotationX=o("rotationX"in E?E.rotationX:"shortRotationX"in E?E.shortRotationX+"_short":w.rotationX||0,w.rotationX,"rotationX",H),O.rotationY=o("rotationY"in E?E.rotationY:"shortRotationY"in E?E.shortRotationY+"_short":w.rotationY||0,w.rotationY,"rotationY",H)),O.skewX=o(E.skewX,w.skewX-w.skewY),(O.skewY=o(E.skewY,w.skewY))&&(O.skewX+=O.skewY,O.rotation+=O.skewY)}for(Ge&&null!=E.force3D&&(w.force3D=E.force3D,I=!0),w.skewType=E.skewType||w.skewType||ne.defaultSkewType,(L=w.force3D||w.z||w.rotationX||w.rotationY||O.z||O.rotationX||O.rotationY||O.perspective)||null==E.scale||(O.scaleZ=1);-1<--y;)(1e-6<(b=O[V=Xe[y]]-w[V])||-1e-6>b||null!=E[V]||null!=G[V])&&(I=!0,r=new De(w,V,w[V],b,r),V in H&&(r.e=H[V]),r.xs0=0,r.plugin=B,T._overwriteProps.push(r.n));return b=E.transformOrigin,w.svg&&(b||E.svgOrigin)&&(W=w.xOffset,R=w.yOffset,$(S,Te(b),O,E.svgOrigin,E.smoothOrigin),r=A(w,"xOrigin",(C?w:O).xOrigin,O.xOrigin,r,"transformOrigin"),r=A(w,"yOrigin",(C?w:O).yOrigin,O.yOrigin,r,"transformOrigin"),W===w.xOffset&&R===w.yOffset||(r=A(w,"xOffset",C?W:w.xOffset,w.xOffset,r,"transformOrigin"),r=A(w,"yOffset",C?R:w.yOffset,w.yOffset,r,"transformOrigin")),b=it?null:"0px 0px"),(b||Ge&&L&&w.zOrigin)&&(Ye?(I=!0,V=Qe,b=(b||ye(S,V,de,!1,"50% 50%"))+"",(r=new De(g,V,0,0,r,-1,"transformOrigin")).b=g[V],r.plugin=B,Ge?(x=w.zOrigin,b=b.split(" "),w.zOrigin=(2<b.length&&(0===x||"0px"!==b[2])?parseFloat(b[2]):x)||0,r.xs0=r.e=b[0]+" "+(b[1]||"50%")+" 0px",(r=new De(w,"zOrigin",0,0,r,-1,r.n)).b=x,r.xs0=r.e=w.zOrigin):r.xs0=r.e=b):Te(b+"",w)),I&&(T._transformType=w.svg&&it||!L&&3!==this._transformType?2:3),a&&(n[e]=a),r},prefix:!0}),Ue("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Ue("borderRadius",{defaultValue:"0px",parser:function(n,t,S,P,r){t=this.format(t);for(var B=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],y=n.style,v=parseFloat(n.offsetWidth),C=parseFloat(n.offsetHeight),w=t.split(" "),T=0,E,H,k,O,x,L,A,I,M,W,R,D;T<B.length;T++)this.p.indexOf("border")&&(B[T]=q(B[T])),-1!==(k=H=ye(n,B[T],de,!1,"0px")).indexOf(" ")&&(k=(H=k.split(" "))[0],H=H[1]),O=E=w[T],x=parseFloat(k),I=k.substr((x+"").length),""===(A=(M="="===O.charAt(1))?(L=parseInt(O.charAt(0)+"1",10),O=O.substr(2),L*=parseFloat(O),O.substr((L+"").length-(0>L?1:0))||""):(L=parseFloat(O),O.substr((L+"").length)))&&(A=ae[S]||I),A!==I&&(W=Se(n,"borderLeft",x,I),R=Se(n,"borderTop",x,I),H="%"===A?(k=100*(W/v)+"%",100*(R/C)+"%"):"em"===A?(k=W/(D=Se(n,"borderLeft",1,"em"))+"em",R/D+"em"):(k=W+"px",R+"px"),M&&(O=parseFloat(k)+L+A,E=parseFloat(H)+L+A)),r=Ve(y,B[T],k+" "+H,O+" "+E,!1,"0px",r);return r},prefix:!0,formatter:r("0px 0px 0px 0px",!1,!0)}),Ue("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(o,t,e,n,r){return Ve(o.style,e,this.format(ye(o,e,de,!1,"0px 0px")),this.format(t),!1,"0px",r)},prefix:!0,formatter:r("0px 0px",!1,!0)}),Ue("backgroundPosition",{defaultValue:"0 0",parser:function(b,t,e,m,r,s){var n=de||ge(b,null),_=this.format((n?Le?n.getPropertyValue("background-position-x")+" "+n.getPropertyValue("background-position-y"):n.getPropertyValue("background-position"):b.currentStyle.backgroundPositionX+" "+b.currentStyle.backgroundPositionY)||"0 0"),g=this.format(t),d,y,S,v,P,T;if(-1!==_.indexOf("%")!=(-1!==g.indexOf("%"))&&2>g.split(",").length&&(T=ye(b,"backgroundImage").replace(/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,""))&&"none"!==T){for(d=_.split(" "),y=g.split(" "),p.setAttribute("src",T),S=2;-1<--S;)(v=-1!==(_=d[S]).indexOf("%"))!=(-1!==y[S].indexOf("%"))&&(P=0===S?b.offsetWidth-p.width:b.offsetHeight-p.height,d[S]=v?parseFloat(_)/100*P+"px":100*(parseFloat(_)/P)+"%");_=d.join(" ")}return this.parseComplex(b.style,_,g,r,s)},formatter:Te}),Ue("backgroundSize",{defaultValue:"0 0",formatter:function(e){return Te(-1===(e+="").indexOf(" ")?e+" "+e:e)}}),Ue("perspective",{defaultValue:"0px",prefix:!0}),Ue("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Ue("transformStyle",{prefix:!0}),Ue("backfaceVisibility",{prefix:!0}),Ue("userSelect",{prefix:!0}),Ue("margin",{parser:v("marginTop,marginRight,marginBottom,marginLeft")}),Ue("padding",{parser:v("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Ue("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(d,t,_,u,r,s){var n,c,p;return t=9>Le?(c=d.currentStyle,p=8>Le?" ":",",n="rect("+c.clipTop+p+c.clipRight+p+c.clipBottom+p+c.clipLeft+")",this.format(t).split(",").join(p)):(n=this.format(ye(d,this.p,de,!1,this.dflt)),this.format(t)),this.parseComplex(d.style,n,t,r,s)}}),Ue("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Ue("autoRound,strictUnits",{parser:function(o,t,e,n,r){return r}}),Ue("border",{defaultValue:"0px solid #000",parser:function(d,t,e,_,r,s){var n=ye(d,"borderTopWidth",de,!1,"0px"),u=this.format(t).split(" "),o=u[0].replace(ue,"");return"px"!==o&&(n=parseFloat(n)/Se(d,"borderTopWidth",1,o)+o),this.parseComplex(d.style,this.format(n+" "+ye(d,"borderTopStyle",de,!1,"solid")+" "+ye(d,"borderTopColor",de,!1,"#000")),u.join(" "),r,s)},color:!0,formatter:function(o){var t=o.split(" ");return t[0]+" "+(t[1]||"solid")+" "+(o.match(we)||["#000"])[0]}}),Ue("borderWidth",{parser:v("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Ue("float,cssFloat,styleFloat",{parser:function(n,t,e,d,r){var s=n.style,a="cssFloat"in s?"cssFloat":"styleFloat";return new De(s,a,0,0,r,-1,e,!1,0,s[a],t)}}),Ue("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(d,t,_,u,r,c){var n=parseFloat(ye(d,"opacity",de,!1,"1")),p=d.style,o="autoAlpha"===_;return"string"==typeof t&&"="===t.charAt(1)&&(t=("-"===t.charAt(0)?-1:1)*parseFloat(t.substr(2))+n),o&&1===n&&"hidden"===ye(d,"visibility",de)&&0!==t&&(n=0),be?r=new De(p,"opacity",n,t-n,r):((r=new De(p,"opacity",100*n,100*(t-n),r)).xn1=o?1:0,p.zoom=1,r.type=2,r.b="alpha(opacity="+r.s+")",r.e="alpha(opacity="+(r.s+r.c)+")",r.data=d,r.plugin=c,r.setRatio=te),o&&((r=new De(p,"visibility",0,0,r,-1,null,!1,0,0===n?"hidden":"inherit",0===t?"hidden":"inherit")).xs0="inherit",u._overwriteProps.push(r.n),u._overwriteProps.push(_)),r}});var ut=function(o,t){t&&(o.removeProperty?("ms"!==t.substr(0,2)&&"webkit"!==t.substr(0,6)||(t="-"+t),o.removeProperty(t.replace(l,"-$1").toLowerCase())):o.removeAttribute(t))};for(Ue("className",{parser:function(d,t,e,c,r,b,n){var a=d.getAttribute("class")||"",p=d.style.cssText,_,S,v,P,T;if((r=c._classNamePT=new De(d,e,0,0,r,2)).setRatio=oe,r.pr=-11,m=!0,r.b=a,S=g(d,de),v=d._fwdClassPT){for(P={},T=v.data;T;)P[T.p]=1,T=T._next;v.setRatio(1)}return(d._fwdClassPT=r).e="="===t.charAt(1)?a.replace(new RegExp("(?:\\s|^)"+t.substr(2)+"(?![\\w-])"),"")+("+"===t.charAt(0)?" "+t.substr(2):""):t,d.setAttribute("class",r.e),_=y(d,S,g(d),n,P),d.setAttribute("class",a),r.data=_.firstMPT,d.style.cssText=p,r=r.xfirst=c.parse(d,_.difs,r,b)}}),Ue("clearProps",{parser:function(o,t,e,n,r){return(r=new De(o,e,0,0,r,2)).setRatio=se,r.e=t,r.pr=-10,r.data=n._tween,m=!0,r}}),h=["bezier","throwProps","physicsProps","physics2D"],Fe=h.length;Fe--;)Ne(h[Fe]);(h=ne.prototype)._firstPT=h._lastParsedTransform=h._transform=null,h._onInitTween=function(d,t,c,b){if(!d.nodeType)return!1;this._target=Ae=d,this._tween=c,this._vars=t,Ie=b,Ee=t.autoRound,m=!1,ae=t.suffixMap||ne.suffixMap,de=ge(d,""),le=this._overwriteProps;var r=d.style,_,S,v,P,T,B,C,w,E;if(He&&""===r.zIndex&&("auto"!==(_=ye(d,"zIndex",de))&&""!==_||this._addLazySet(r,"zIndex",0)),"string"==typeof t&&(P=r.cssText,_=g(d,de),r.cssText=P+";"+t,_=y(d,_,g(d)).difs,!be&&/opacity:([^;]*)/i.test(t)&&(_.opacity=parseFloat(RegExp.$1)),t=_,r.cssText=P),this._firstPT=t.className?S=re.className.parse(d,t.className,"className",this,null,null,t):S=this.parse(d,t,null),this._transformType){for(E=3===this._transformType,Ye?ke&&(He=!0,""===r.zIndex&&("auto"!==(C=ye(d,"zIndex",de))&&""!==C||this._addLazySet(r,"zIndex",0)),xe&&this._addLazySet(r,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(E?"visible":"hidden"))):r.zoom=1,v=S;v&&v._next;)v=v._next;w=new De(d,"transform",0,0,null,2),this._linkCSSP(w,null,v),w.setRatio=Ye?ot:ee,w.data=this._transform||tt(d,de,!0),w.tween=c,w.pr=-1,le.pop()}if(m){for(;S;){for(B=S._next,v=P;v&&v.pr>S.pr;)v=v._next;(S._prev=v?v._prev:T)?S._prev._next=S:P=S,(S._next=v)?v._prev=S:T=S,S=B}this._firstPT=P}return!0},h.parse=function(d,t,e,b){var r=d.style,c,m,g,y,S,v,P,T,B,C;for(c in t)"function"==typeof(v=t[c])&&(v=v(Ie,Ae)),(m=re[c])?e=m.parse(d,v,c,this,e,b,t):(S=ye(d,c,de)+"",B="string"==typeof v,"color"===c||"fill"===c||"stroke"===c||-1!==c.indexOf("Color")||B&&/^(rgb|hsl)/.test(v)?(B||(v=(3<(v=Ce(v)).length?"rgba(":"rgb(")+v.join(",")+")"),e=Ve(r,c,S,v,!0,"transparent",e,0,b)):B&&/[\s,\(]/i.test(v)?e=Ve(r,c,S,v,!0,null,e,0,b):(P=(g=parseFloat(S))||0===g?S.substr((g+"").length):"",""!==S&&"auto"!==S||(P="width"===c||"height"===c?(g=function(o,t,e){if("svg"===(o.nodeName+"").toLowerCase())return(e||ge(o))[t]||0;if(o.getBBox&&Ze(o))return o.getBBox()[t]||0;var a=parseFloat("width"===t?o.offsetWidth:o.offsetHeight),d=fe[t],s=d.length;for(e=e||ge(o,null);-1<--s;)a-=parseFloat(ye(o,"padding"+d[s],e,!0))||0,a-=parseFloat(ye(o,"border"+d[s]+"Width",e,!0))||0;return a}(d,c,de),"px"):"left"===c||"top"===c?(g=ve(d,c,de),"px"):(g="opacity"===c?1:0,"")),""===(T=(C=B&&"="===v.charAt(1))?(y=parseInt(v.charAt(0)+"1",10),v=v.substr(2),y*=parseFloat(v),v.replace(ue,"")):(y=parseFloat(v),B?v.replace(ue,""):""))&&(T=c in ae?ae[c]:P),v=y||0===y?(C?y+g:y)+T:t[c],P!==T&&""!==T&&(y||0===y)&&g&&(g=Se(d,c,g,P),"%"===T?(g/=Se(d,c,100,"%")/100,!0!==t.strictUnits&&(S=g+"%")):"em"===T||"rem"===T||"vw"===T||"vh"===T?g/=Se(d,c,1,T):"px"!==T&&(y=Se(d,c,y,T),T="px"),C&&(!y&&0!==y||(v=y+g+T))),C&&(y+=g),(g||0===g)&&(y||0===y)?(e=new De(r,c,g,y-g,e,0,c,!1!==Ee&&("px"===T||"zIndex"===c),0,S,v)).xs0=T:void 0!==r[c]&&(v||"NaN"!=v+""&&null!=v)?(e=new De(r,c,y||g||0,0,e,-1,c,!1,0,S,v)).xs0="none"!==v||"display"!==c&&-1===c.indexOf("Style")?v:S:V("invalid "+c+" tween value: "+t[c]))),b&&e&&!e.plugin&&(e.plugin=b);return e},h.setRatio=function(o){var t=this._firstPT,n,a,d;if(!(1!==o||this._tween._time!==this._tween._duration&&0!==this._tween._time))for(;t;){if(!(2!==t.type))t.setRatio(o);else if(!(t.r&&-1!==t.type))t.t[t.p]=t.e;else if(!(n=Math.round(t.s+t.c),t.type))t.t[t.p]=n+t.xs0;else if(1===t.type){for(d=t.l,a=t.xs0+n+t.xs1,d=1;d<t.l;d++)a+=t["xn"+d]+t["xs"+(d+1)];t.t[t.p]=a}t=t._next}else if(o||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;t;){if(!(n=t.c*o+t.s,t.r?n=Math.round(n):1e-6>n&&-1e-6<n&&(n=0),t.type))t.t[t.p]=n+t.xs0;else if(!(1===t.type))-1===t.type?t.t[t.p]=t.xs0:t.setRatio&&t.setRatio(o);else if(2===(d=t.l))t.t[t.p]=t.xs0+n+t.xs1+t.xn1+t.xs2;else if(3===d)t.t[t.p]=t.xs0+n+t.xs1+t.xn1+t.xs2+t.xn2+t.xs3;else if(4===d)t.t[t.p]=t.xs0+n+t.xs1+t.xn1+t.xs2+t.xn2+t.xs3+t.xn3+t.xs4;else if(5===d)t.t[t.p]=t.xs0+n+t.xs1+t.xn1+t.xs2+t.xn2+t.xs3+t.xn3+t.xs4+t.xn4+t.xs5;else{for(a=t.xs0+n+t.xs1,d=1;d<t.l;d++)a+=t["xn"+d]+t["xs"+(d+1)];t.t[t.p]=a}t=t._next}else for(;t;)2===t.type?t.setRatio(o):t.t[t.p]=t.b,t=t._next},h._enableTransforms=function(e){this._transform=this._transform||tt(this._target,de,!0),this._transformType=this._transform.svg&&it||!e&&3!==this._transformType?2:3},h._addLazySet=function(o,t,e){var s=this._firstPT=new De(o,t,0,0,this._firstPT,2);s.e=e,s.setRatio=ie,s.data=this},h._linkCSSP=function(o,t,e,s){return o&&(t&&(t._prev=o),o._next&&(o._next._prev=o._prev),o._prev?o._prev._next=o._next:this._firstPT===o&&(this._firstPT=o._next,s=!0),e?e._next=o:s||null!==this._firstPT||(this._firstPT=o),o._next=t,o._prev=e),o},h._mod=function(o){for(var t=this._firstPT;t;)"function"==typeof o[t.p]&&o[t.p]===Math.round&&(t.r=1),t=t._next},h._kill=function(o){var t=o,n,a,d;if(o.autoAlpha||o.alpha){for(a in t={},o)t[a]=o[a];t.opacity=1,t.autoAlpha&&(t.visibility=1)}for(o.className&&(n=this._classNamePT)&&((d=n.xfirst)&&d._prev?this._linkCSSP(d._prev,n._next,d._prev._prev):d===this._firstPT&&(this._firstPT=n._next),n._next&&this._linkCSSP(n._next,n._next._next,d._prev),this._classNamePT=null),n=this._firstPT;n;)n.plugin&&n.plugin!==a&&n.plugin._kill&&(n.plugin._kill(o),a=n.plugin),n=n._next;return E.prototype._kill.call(this,t)};var ct=function(o,t,e){var d,l,_,u;if(o.slice)for(l=o.length;-1<--l;)ct(o[l],t,e);else for(l=(d=o.childNodes).length;-1<--l;)u=(_=d[l]).type,_.style&&(t.push(g(_)),e&&e.push(_)),(1===u||9===u||11===u)&&_.childNodes.length&&ct(_,t,e)};return ne.cascadeTo=function(d,_,e){var c=L.to(d,_,e),o=[c],l=[],b=[],h=[],u=L._internals.reservedProps,p,m,g,S;for(d=c._targets||c.target,ct(d,l,h),c.render(_,!0,!0),ct(d,b),c.render(0,!0,!0),c._enabled(!0),p=h.length;-1<--p;)if((m=y(h[p],l[p],b[p])).firstMPT){for(g in m=m.difs,e)u[g]&&(m[g]=e[g]);for(g in S={},m)S[g]=l[p][g];o.push(L.fromTo(h[p],_,S,m))}return o},E.activate([ne]),ne},!0),_fwd_fwdScope.FWDFWD_fwdDefine("easing.Back",["easing.Ease"],function(b){function d(o,t){var e=h("easing."+o,function(){},!0),s=e.prototype=new b;return s.constructor=e,s.getRatio=t,e}function t(o,t,e,s){var r=h("easing."+o,{easeOut:new t,easeIn:new e,easeInOut:new s},!0);return y(r,o),r}function m(o,t,e){this.t=o,this.v=t,e&&(((this.next=e).prev=this).c=e.v-t,this.gap=e.t-o)}function e(o,t){var e=h("easing."+o,function(e){this._p1=e||0===e?e:1.70158,this._p2=1.525*this._p1},!0),s=e.prototype=new b;return s.constructor=e,s.getRatio=t,s.config=function(o){return new e(o)},e}var g=_fwd_fwdScope.FWDGlobals||_fwd_fwdScope,a=g.com.fwd,o=2*Math.PI,l=Math.PI/2,h=a._class,y=b.register||function(){},u=t("Back",e("BackOut",function(e){return--e*e*((this._p1+1)*e+this._p1)+1}),e("BackIn",function(e){return e*e*((this._p1+1)*e-this._p1)}),e("BackInOut",function(e){return 1>(e*=2)?.5*e*e*((this._p2+1)*e-this._p2):.5*((e-=2)*e*((this._p2+1)*e+this._p2)+2)})),p=h("easing.SlowMo",function(o,s,n){s=s||0===s?s:.7,null==o?o=.7:1<o&&(o=1),this._p=1===o?0:s,this._p1=(1-o)/2,this._p2=o,this._p3=this._p1+this._p2,this._calcEnd=!0===n},!0),_=p.prototype=new b,S,v,f;return _.constructor=p,_.getRatio=function(o){var s=o+(.5-o)*this._p;return o<this._p1?this._calcEnd?1-(o=1-o/this._p1)*o:s-(o=1-o/this._p1)*o*o*o*s:o>this._p3?this._calcEnd?1-(o=(o-this._p3)/this._p1)*o:s+(o-s)*(o=(o-this._p3)/this._p1)*o*o*o:this._calcEnd?1:s},p.ease=new p(.7,.7),_.config=p.config=function(o,t,e){return new p(o,t,e)},(_=(S=h("easing.SteppedEase",function(e){e=e||1,this._p1=1/e,this._p2=e+1},!0)).prototype=new b).constructor=S,_.getRatio=function(e){return 0>e?e=0:1<=e&&(e=.999999999),(this._p2*e>>0)*this._p1},_.config=S.config=function(e){return new S(e)},(_=(v=h("easing.RoughEase",function(g){for(var y=(g=g||{}).taper||"none",o=[],l=0,S=0|(g.points||20),v=S,f=!1!==g.randomize,p=!0===g.clamp,_=g.template instanceof b?g.template:null,c="number"==typeof g.strength?.4*g.strength:.4,d,P,T,B,C,w;-1<--v;)d=f?Math.random():1/S*v,P=_?_.getRatio(d):d,T="none"===y?c:"out"===y?(B=1-d)*B*c:"in"===y?d*d*c:.5>d?.5*((B=2*d)*B)*c:.5*((B=2*(1-d))*B)*c,f?P+=Math.random()*T-.5*T:v%2?P+=.5*T:P-=.5*T,p&&(1<P?P=1:0>P&&(P=0)),o[l++]={x:d,y:P};for(o.sort(function(o,t){return o.x-t.x}),w=new m(1,1,null),v=S;-1<--v;)C=o[v],w=new m(C.x,C.y,w);this._prev=new m(0,0,0===w.t?w.next:w)},!0)).prototype=new b).constructor=v,_.getRatio=function(o){var t=this._prev;if(o>t.t){for(;t.next&&o>=t.t;)t=t.next;t=t.prev}else for(;t.prev&&o<=t.t;)t=t.prev;return(this._prev=t).v+(o-t.t)/t.gap*t.c},_.config=function(e){return new v(e)},v.ease=new v,t("Bounce",d("BounceOut",function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}),d("BounceIn",function(e){return(e=1-e)<1/2.75?1-7.5625*e*e:e<2/2.75?1-(7.5625*(e-=1.5/2.75)*e+.75):e<2.5/2.75?1-(7.5625*(e-=2.25/2.75)*e+.9375):1-(7.5625*(e-=2.625/2.75)*e+.984375)}),d("BounceInOut",function(o){var s=.5>o;return(o=s?1-2*o:2*o-1)<1/2.75?o*=7.5625*o:o=o<2/2.75?7.5625*(o-=1.5/2.75)*o+.75:o<2.5/2.75?7.5625*(o-=2.25/2.75)*o+.9375:7.5625*(o-=2.625/2.75)*o+.984375,s?.5*(1-o):.5*o+.5})),t("Circ",d("CircOut",function(e){return Math.sqrt(1- --e*e)}),d("CircIn",function(e){return-(Math.sqrt(1-e*e)-1)}),d("CircInOut",function(e){return 1>(e*=2)?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)})),t("Elastic",(f=function(n,t,a){var d=h("easing."+n,function(s,t){this._p1=1<=s?s:1,this._p2=(t||a)/(1>s?s:1),this._p3=this._p2/o*(Math.asin(1/this._p1)||0),this._p2=o/this._p2},!0),e=d.prototype=new b;return e.constructor=d,e.getRatio=t,e.config=function(o,t){return new d(o,t)},d})("ElasticOut",function(e){return this._p1*Math.pow(2,-10*e)*Math.sin((e-this._p3)*this._p2)+1},.3),f("ElasticIn",function(e){return-(this._p1*Math.pow(2,10*--e)*Math.sin((e-this._p3)*this._p2))},.3),f("ElasticInOut",function(e){return 1>(e*=2)?-.5*(this._p1*Math.pow(2,10*--e)*Math.sin((e-this._p3)*this._p2)):.5*(this._p1*Math.pow(2,-10*--e)*Math.sin((e-this._p3)*this._p2))+1},.45)),t("Expo",d("ExpoOut",function(e){return 1-Math.pow(2,-10*e)}),d("ExpoIn",function(e){return Math.pow(2,10*(e-1))-.001}),d("ExpoInOut",function(e){return 1>(e*=2)?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*(e-1)))})),t("Sine",d("SineOut",function(e){return Math.sin(e*l)}),d("SineIn",function(e){return 1-Math.cos(e*l)}),d("SineInOut",function(e){return-.5*(Math.cos(Math.PI*e)-1)})),h("easing.EaseLookup",{find:function(e){return b.map[e]}},!0),y(g.SlowMo,"SlowMo","ease,"),y(v,"RoughEase","ease,"),y(S,"SteppedEase","ease,"),u},!0)}),_fwd_fwdScope.FWDFWD_fwdDefine&&_fwd_fwdScope._fwd_fwdQueue.pop()(),function(ee,_){"use strict";var c={},d=ee.FWDGlobals=ee.FWDGlobals||ee;if(!d.FWDTweenLite){var m=function(o){for(var t=o.split("."),e=d,s=0;s<t.length;s++)e[t[s]]=e=e[t[s]]||{};return e},y=m("com.fwd"),te=1e-10,u=function(o){for(var t=[],e=o.length,s=0;s!==e;t.push(o[s++]));return t},v=function(){},oe=(s=Object.prototype.toString,x=s.call([]),function(e){return null!=e&&(e instanceof Array||"object"==typeof e&&!!e.push&&s.call(e)===x)}),r={},l=function(e,s,b,t){this.sc=r[e]?r[e].sc:[],(r[e]=this).gsClass=null,this.func=b;var u=[];this.check=function(p){for(var h=s.length,g=h,y,S,v,f,P;-1<--h;)(y=r[s[h]]||new l(s[h],[])).gsClass?(u[h]=y.gsClass,g--):p&&y.sc.push(this);if(0===g&&b){if(v=(S=("com.fwd."+e).split(".")).pop(),f=m(S.join("."))[v]=this.gsClass=b.apply(b,u),t)if(d[v]=c[v]=f,!(P="undefined"!=typeof fwd_module&&fwd_module.exports)&&"function"==typeof define&&define.amd)define((ee.FWDAMDPath?ee.FWDAMDPath+"/":"")+e.split(".").pop(),[],function(){return f});else if(P)if(e===_)for(h in fwd_module.exports=c[_]=f,c)f[h]=c[h];else c[_]&&(c[_][v]=f);for(h=0;h<this.sc.length;h++)this.sc[h].check()}},this.check(!0)},T=ee.FWDFWD_fwdDefine=function(o,t,e,s){return new l(o,t,e,s)},w=y._class=function(o,t,s){return t=t||function(){},T(o,[],function(){return t},s),t},p,s,x;T.globals=d;var se=[0,0,1,1],ie=w("easing.Ease",function(o,t,e,s){this._func=o,this._type=e||0,this._power=s||0,this._params=t?se.concat(t):se},!0),b=ie.map={},n=ie.register=function(d,t,e,_){for(var r=t.split(","),l=r.length,u=(e||"easeIn,easeOut,easeInOut").split(","),c,p,m,g;-1<--l;)for(p=r[l],c=_?w("easing."+p,null,!0):y.easing[p]||{},m=u.length;-1<--m;)g=u[m],b[p+"."+g]=b[g+p]=c[g]=d.getRatio?d:d[g]||new d},a;for((a=ie.prototype)._calcEnd=!1,a.getRatio=function(o){if(this._func)return this._params[0]=o,this._func.apply(null,this._params);var t=this._type,e=this._power,s=1===t?1-o:2===t?o:.5>o?2*o:2*(1-o);return 1===e?s*=s:2===e?s*=s*s:3===e?s*=s*s*s:4===e&&(s*=s*s*s*s),1===t?1-s:2===t?s:.5>o?s/2:1-s/2},ae=(de=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;-1<--ae;)a=de[ae]+",Power"+ae,n(new ie(null,null,1,ae),a,"easeOut",!0),n(new ie(null,null,2,ae),a,"easeIn"+(0===ae?",easeNone":"")),n(new ie(null,null,3,ae),a,"easeInOut");b.linear=y.easing.Linear.easeIn,b.swing=y.easing.Quad.easeInOut;var P=w("events.EventDispatcher",function(e){this._listeners={},this._eventTarget=e||this});(a=P.prototype).addEventListener=function(d,t,e,_,r){r=r||0;var u=this._listeners[d],c=0,b,h;for(this!==f||p||f.wake(),null==u&&(this._listeners[d]=u=[]),h=u.length;-1<--h;)(b=u[h]).c===t&&b.s===e?u.splice(h,1):0===c&&b.pr<r&&(c=h+1);u.splice(c,0,{c:t,s:e,up:_,pr:r})},a.removeEventListener=function(o,t){var e=this._listeners[o],s;if(e)for(s=e.length;-1<--s;)if(e[s].c===t)return void e.splice(s,1)},a.dispatchEvent=function(o){var t=this._listeners[o],n,a,d;if(t)for(1<(n=t.length)&&(t=t.slice(0)),a=this._eventTarget;-1<--n;)(d=t[n])&&(d.up?d.c.call(d.s||a,{type:o,target:a}):d.c.call(d.s||a))};for(var O=ee.requestAnimationFrame,ne=ee.cancelAnimationFrame,re=Date.now||function(){return new Date().getTime()},S=re(),ae=(de=["ms","moz","webkit","o"]).length,de;-1<--ae&&!O;)O=ee[de[ae]+"RequestAnimationFrame"],ne=ee[de[ae]+"CancelAnimationFrame"]||ee[de[ae]+"CancelRequestAnimationFrame"];w("Ticker",function(r,t){var d=this,c=re(),e=!1!==t&&O&&"auto",b=500,h=33,m=function(o){var t=re()-S,s,n;b<t&&(c+=t-h),S+=t,d.time=(S-c)/1e3,s=d.time-B,(!_||0<s||!0===o)&&(d.frame++,B+=s+(T<=s?.004:T-s),n=!0),!0!==o&&(y=g(m)),n&&d.dispatchEvent("tick")},_,g,y,T,B;P.call(d),d.time=d.frame=0,d.tick=function(){m(!0)},d.lagSmoothing=function(o,t){b=o||1e10,h=Math.min(t,b,0)},d.sleep=function(){null!=y&&((e&&ne?ne:clearTimeout)(y),g=v,y=null,d===f&&(p=!1))},d.wake=function(o){null===y?o?c+=-S+(S=re()):10<d.frame&&(S=re()-b+5):d.sleep(),g=0===_?v:e&&O?O:function(e){return setTimeout(e,0|1e3*(B-d.time)+1)},d===f&&(p=!0),m(2)},d.fps=function(e){return arguments.length?void(T=1/((_=e)||60),B=this.time+T,d.wake()):_},d.useRAF=function(o){return arguments.length?void(d.sleep(),e=o,d.fps(_)):e},d.fps(r),setTimeout(function(){"auto"===e&&5>d.frame&&"hidden"!==document.visibilityState&&d.useRAF(!1)},1500)}),(a=y.Ticker.prototype=new y.events.EventDispatcher).constructor=y.Ticker;var le=w("core.FWDAnimation",function(o,t){var s;this.vars=t=t||{},this._duration=this._totalDuration=o||0,this._delay=+t.delay||0,this._timeScale=1,this._active=!0===t.immediateRender,this.data=t.data,this._reversed=!0===t.reversed,U&&(p||f.wake(),(s=this.vars.useFrames?Z:U).add(this,s._time),this.vars.paused&&this.paused(!0))}),f=le.ticker=new y.Ticker;(a=le.prototype)._dirty=a._gc=a._initted=a._paused=!1,a._totalTime=a._time=0,a._rawPrevTime=-1,a._next=a._last=a._onUpdate=a._timeline=a.timeline=null,a._paused=!1;var M=function(){p&&2e3<re()-S&&f.wake(),setTimeout(M,2e3)};M(),a.play=function(o,t){return null!=o&&this.seek(o,t),this.reversed(!1).paused(!1)},a.pause=function(o,t){return null!=o&&this.seek(o,t),this.paused(!0)},a.resume=function(o,t){return null!=o&&this.seek(o,t),this.paused(!1)},a.seek=function(o,t){return this.totalTime(+o,!1!==t)},a.restart=function(o,t){return this.reversed(!1).paused(!1).totalTime(o?-this._delay:0,!1!==t,!0)},a.reverse=function(o,t){return null!=o&&this.seek(o||this.totalDuration(),t),this.reversed(!0).paused(!1)},a.render=function(){},a.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},a.isActive=function(){var o=this._timeline,e=this._startTime,s;return!o||!this._gc&&!this._paused&&o.isActive()&&(s=o.rawTime())>=e&&s<e+this.totalDuration()/this._timeScale},a._enabled=function(o,t){return p||f.wake(),this._gc=!o,this._active=this.isActive(),!0!==t&&(o&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!o&&this.timeline&&this._timeline._remove(this,!0)),!1},a._kill=function(){return this._enabled(!1,!1)},a.kill=function(o,t){return this._kill(o,t),this},a._uncache=function(o){for(var t=o?this:this.timeline;t;)t._dirty=!0,t=t.timeline;return this},a._swapSelfInParams=function(o){for(var t=o.length,s=o.concat();-1<--t;)"{self}"===o[t]&&(s[t]=this);return s},a._callback=function(o){var t=this.vars,e=t[o],n=t[o+"Params"],r=t[o+"Scope"]||t.callbackScope||this;switch(n?n.length:0){case 0:e.call(r);break;case 1:e.call(r,n[0]);break;case 2:e.call(r,n[0],n[1]);break;default:e.apply(r,n);}},a.eventCallback=function(o,t,e,n){if("on"===(o||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[o];null==t?delete r[o]:(r[o]=t,r[o+"Params"]=oe(e)&&-1!==e.join("").indexOf("{self}")?this._swapSelfInParams(e):e,r[o+"Scope"]=n),"onUpdate"===o&&(this._onUpdate=t)}return this},a.delay=function(e){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+e-this._delay),this._delay=e,this):this._delay},a.duration=function(e){return arguments.length?(this._duration=this._totalDuration=e,this._uncache(!0),this._timeline.smoothChildTiming&&0<this._time&&this._time<this._duration&&0!==e&&this.totalTime(this._totalTime*(e/this._duration),!0),this):(this._dirty=!1,this._duration)},a.totalDuration=function(e){return this._dirty=!1,arguments.length?this.duration(e):this._totalDuration},a.time=function(o,t){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(o>this._duration?this._duration:o,t)):this._time},a.totalTime=function(o,n,e){if(p||f.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>o&&!e&&(o+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var a=this._totalDuration,r=this._timeline;if(a<o&&!e&&(o=a),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?a-o:o)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===o&&0!==this._duration||(z.length&&ce(),this.render(o,n,!1),z.length&&ce())}return this},a.progress=a.totalProgress=function(o,t){var e=this.duration();return arguments.length?this.totalTime(e*o,t):e?this._time/e:this.ratio},a.startTime=function(e){return arguments.length?(e!==this._startTime&&(this._startTime=e,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,e-this._delay)),this):this._startTime},a.endTime=function(e){return this._startTime+(0==e?this.duration():this.totalDuration())/this._timeScale},a.timeScale=function(o){return arguments.length?(o=o||te,this._timeline&&this._timeline.smoothChildTiming&&(n=(s=this._pauseTime)||0===s?s:this._timeline.totalTime(),this._startTime=n-(n-this._startTime)*this._timeScale/o),this._timeScale=o,this._uncache(!1)):this._timeScale;var s,n},a.reversed=function(e){return arguments.length?(e!=this._reversed&&(this._reversed=e,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},a.paused=function(o){if(!arguments.length)return this._paused;var t=this._timeline,s,n;return o!=this._paused&&t&&(p||o||f.wake(),n=(s=t.rawTime())-this._pauseTime,!o&&t.smoothChildTiming&&(this._startTime+=n,this._uncache(!1)),this._pauseTime=o?s:null,this._paused=o,this._active=this.isActive(),!o&&0!=n&&this._initted&&this.duration()&&(s=t.smoothChildTiming?this._totalTime:(s-this._startTime)/this._timeScale,this.render(s,s===this._totalTime,!0))),this._gc&&!o&&this._enabled(!0,!1),this};var C=w("core.FWDSimpleTimeline",function(e){le.call(this,0,e),this.autoRemoveChildren=this.smoothChildTiming=!0});(a=C.prototype=new le).constructor=C,a.kill()._gc=!1,a._first=a._last=a._recent=null,a._sortChildren=!1,a.add=a.insert=function(o,t){var e,r;if(o._startTime=+(t||0)+o._delay,o._paused&&this!==o._timeline&&(o._pauseTime=o._startTime+(this.rawTime()-o._startTime)/o._timeScale),o.timeline&&o.timeline._remove(o,!0),o.timeline=o._timeline=this,o._gc&&o._enabled(!0,!0),e=this._last,this._sortChildren)for(r=o._startTime;e&&e._startTime>r;)e=e._prev;return e?(o._next=e._next,e._next=o):(o._next=this._first,this._first=o),o._next?o._next._prev=o:this._last=o,o._prev=e,this._recent=o,this._timeline&&this._uncache(!0),this},a._remove=function(o,t){return o.timeline===this&&(t||o._enabled(!1,!0),o._prev?o._prev._next=o._next:this._first===o&&(this._first=o._next),o._next?o._next._prev=o._prev:this._last===o&&(this._last=o._prev),o._next=o._prev=o.timeline=null,o===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},a.render=function(o,t,e){var n=this._first,a;for(this._totalTime=this._time=this._rawPrevTime=o;n;)a=n._next,(n._active||o>=n._startTime&&!n._paused)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(o-n._startTime)*n._timeScale,t,e):n.render((o-n._startTime)*n._timeScale,t,e)),n=a},a.rawTime=function(){return p||f.wake(),this._totalTime};var F=w("FWDTweenLite",function(d,l,e){if(le.call(this,l,e),this.render=F.prototype.render,null==d)throw"Cannot tween a null target.";this.target=d="string"==typeof d&&F.selector(d)||d;var _=d.jquery||d.length&&d!==ee&&d[0]&&(d[0]===ee||d[0].nodeType&&d[0].style&&!d.nodeType),a=this.vars.overwrite,c,p,b;if(this._overwrite=a=null==a?q[F.defaultOverwrite]:"number"==typeof a?a>>0:q[a],(_||d instanceof Array||d.push&&oe(d))&&"number"!=typeof d[0])for(this._targets=b=u(d),this._propLookup=[],this._siblings=[],c=0;c<b.length;c++)(p=b[c])?"string"==typeof p?"string"==typeof(p=b[c--]=F.selector(p))&&b.splice(c+1,1):p.length&&p!==ee&&p[0]&&(p[0]===ee||p[0].nodeType&&p[0].style&&!p.nodeType)?(b.splice(c--,1),this._targets=b=b.concat(u(p))):(this._siblings[c]=G(p,this,!1),1===a&&1<this._siblings[c].length&&K(p,this,null,1,this._siblings[c])):b.splice(c--,1);else this._propLookup={},this._siblings=G(d,this,!1),1===a&&1<this._siblings.length&&K(d,this,null,1,this._siblings);(this.vars.immediateRender||0===l&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-te,this.render(Math.min(0,-this._delay)))},!0),D=function(e){return e&&e.length&&e!==ee&&e[0]&&(e[0]===ee||e[0].nodeType&&e[0].style&&!e.nodeType)};(a=F.prototype=new le).constructor=F,a.kill()._gc=!1,a.ratio=0,a._firstPT=a._targets=a._overwrittenProps=a._startAt=null,a._notifyPluginsOfEnabled=a._lazy=!1,F.version="1.19.0",F.defaultEase=a._ease=new ie(null,null,1,1),F.defaultOverwrite="auto",F.ticker=f,F.autoSleep=120,F.lagSmoothing=function(o,t){f.lagSmoothing(o,t)},F.selector=ee.$||ee.jQuery||function(o){var t=ee.$||ee.jQuery;return t?(F.selector=t)(o):"undefined"==typeof document?o:document.querySelectorAll?document.querySelectorAll(o):document.getElementById("#"===o.charAt(0)?o.substr(1):o)};var z=[],X={},_e=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,N=function(o){for(var t=this._firstPT,s;t;)s=t.blob?o?this.join(""):this.start:t.c*o+t.s,t.m?s=t.m(s,this._target||t.t):1e-6>s&&-1e-6<s&&(s=0),t.f?t.fp?t.t[t.p](t.fp,s):t.t[t.p](s):t.t[t.p]=s,t=t._next},Y=function(d,b,m,g){var r=[d,b],u=0,y="",S=0,v,P,T,B,C,w,E;for(r.start=d,m&&(m(r),d=r[0],b=r[1]),r.length=0,v=d.match(_e)||[],P=b.match(_e)||[],g&&(g._next=null,g.blob=1,r._firstPT=r._applyPT=g),C=P.length,B=0;B<C;B++)E=P[B],y+=(w=b.substr(u,b.indexOf(E,u)-u))||!B?w:",",u+=w.length,S?S=(S+1)%5:"rgba("===w.substr(-5)&&(S=1),E===v[B]||v.length<=B?y+=E:(y&&(r.push(y),y=""),T=parseFloat(v[B]),r.push(T),r._firstPT={_next:r._firstPT,t:r,p:r.length-1,s:T,c:("="===E.charAt(1)?parseInt(E.charAt(0)+"1",10)*parseFloat(E.substr(2)):parseFloat(E)-T)||0,f:0,m:S&&4>S?Math.round:0}),u+=E.length;return(y+=b.substr(u))&&r.push(y),r.setRatio=N,r},E=function(d,t,e,c,b,s,n,a,o){"function"==typeof c&&(c=c(o||0,d));var l="get"===e?d[t]:e,m=typeof d[t],u="string"==typeof c&&"="===c.charAt(1),p={t:d,p:t,s:l,f:"function"==m,pg:0,n:b||t,m:s?"function"==typeof s?s:Math.round:0,pr:0,c:u?parseInt(c.charAt(0)+"1",10)*parseFloat(c.substr(2)):parseFloat(c)-l||0},g;if("number"!=m&&("function"==m&&"get"===e&&(g=t.indexOf("set")||"function"!=typeof d["get"+t.substr(3)]?t:"get"+t.substr(3),p.s=l=n?d[g](n):d[g]()),"string"==typeof l&&(n||isNaN(l))?(p.fp=n,p={t:Y(l,c,a||F.defaultStringFilter,p),p:"setRatio",s:0,c:1,f:2,pg:0,n:b||t,pr:0,m:0}):u||(p.s=parseFloat(l),p.c=parseFloat(c)-p.s||0)),p.c)return(p._next=this._firstPT)&&(p._next._prev=p),this._firstPT=p},B=F._internals={isArray:oe,isSelector:D,lazyTweens:z,blobDif:Y},W=F._plugins={},L=B.tweenLookup={},j=0,ue=B.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1},q={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},Z=le._rootFramesTimeline=new C,U=le._rootTimeline=new C,$=30,ce=B.lazyRender=function(){var o=z.length,s;for(X={};-1<--o;)(s=z[o])&&!1!==s._lazy&&(s.render(s._lazy[0],s._lazy[1],!0),s._lazy=!1);z.length=0};U._startTime=f.time,Z._startTime=f.frame,U._active=Z._active=!0,setTimeout(ce,1),le._updateRoot=F.render=function(){var o,s,n;if(z.length&&ce(),U.render((f.time-U._startTime)*U._timeScale,!1,!1),Z.render((f.frame-Z._startTime)*Z._timeScale,!1,!1),z.length&&ce(),f.frame>=$){for(n in $=f.frame+(parseInt(F.autoSleep,10)||120),L){for(o=(s=L[n].tweens).length;-1<--o;)s[o]._gc&&s.splice(o,1);0===s.length&&delete L[n]}if((!(n=U._first)||n._paused)&&F.autoSleep&&!Z._first&&1===f._listeners.tick.length){for(;n&&n._paused;)n=n._next;n||f.sleep()}}},f.addEventListener("tick",le._updateRoot);var G=function(o,t,e){var a=o._fwdTweenID,d,l;if(L[a||(o._fwdTweenID=a="t"+j++)]||(L[a]={target:o,tweens:[]}),t&&((d=L[a].tweens)[l=d.length]=t,e))for(;-1<--l;)d[l]===t&&d.splice(l,1);return L[a].tweens},H=function(o,t,e,d){var r=o.vars.onOverwrite,l,_;return r&&(l=r(o,t,e,d)),(r=F.onOverwrite)&&(_=r(o,t,e,d)),!1!==l&&!1!==_},K=function(d,t,e,c,r){var s,b,m;if(1===c||4<=c){for(m=r.length,p=0;p<m;p++)if((b=r[p])!==t)b._gc||b._kill(null,d,t)&&(s=!0);else if(5===c)break;return s}for(var g=t._startTime+te,h=[],y=0,S=0===t._duration,p=r.length,v;-1<--p;)(b=r[p])===t||b._gc||b._paused||(b._timeline===t._timeline?b._startTime<=g&&b._startTime+b.totalDuration()/b._timeScale>g&&((S||!b._initted)&&2e-10>=g-b._startTime||(h[y++]=b)):(v=v||J(t,0,S),0===J(b,v,S)&&(h[y++]=b)));for(p=y;-1<--p;)if(b=h[p],2===c&&b._kill(e,d,t)&&(s=!0),2!==c||!b._firstPT&&b._initted){if(2!==c&&!H(b,t))continue;b._enabled(!1,!1)&&(s=!0)}return s},J=function(o,t,e){for(var a=o._timeline,d=a._timeScale,l=o._startTime;a._timeline;){if(l+=a._startTime,d*=a._timeScale,a._paused)return-100;a=a._timeline}return t<(l/=d)?l-t:e&&l===t||!o._initted&&l-t<2*te?te:(l+=o.totalDuration()/o._timeScale/d)>t+te?0:l-t-te};a._init=function(){var d=this.vars,a=this._overwrittenProps,o=this._duration,l=!!d.immediateRender,_=d.ease,u,c,p,m,g,y;if(d.startAt){for(m in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),g={},d.startAt)g[m]=d.startAt[m];if(g.overwrite=!1,g.immediateRender=!0,g.lazy=l&&!1!==d.lazy,g.startAt=g.delay=null,this._startAt=F.to(this.target,0,g),l)if(0<this._time)this._startAt=null;else if(0!==o)return}else if(d.runBackwards&&0!==o)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{for(m in 0!==this._time&&(l=!1),p={},d)ue[m]&&"autoCSS"!==m||(p[m]=d[m]);if(!(p.overwrite=0,p.data="isFromStart",p.lazy=l&&!1!==d.lazy,p.immediateRender=l,this._startAt=F.to(this.target,0,p),l))this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null);else if(0===this._time)return}if(this._ease=_=_?_ instanceof ie?_:"function"==typeof _?new ie(_,d.easeParams):b[_]||F.defaultEase:F.defaultEase,d.easeParams instanceof Array&&_.config&&(this._ease=_.config.apply(_,d.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(y=this._targets.length,u=0;u<y;u++)this._initProps(this._targets[u],this._propLookup[u]={},this._siblings[u],a?a[u]:null,u)&&(c=!0);else c=this._initProps(this.target,this._propLookup,this._siblings,a,0);if(c&&F._onPluginEvent("_onInitAllProps",this),a&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),d.runBackwards)for(p=this._firstPT;p;)p.s+=p.c,p.c=-p.c,p=p._next;this._onUpdate=d.onUpdate,this._initted=!0},a._initProps=function(d,t,e,_,r){var s,u,c,p,b,m;if(null==d)return!1;for(s in X[d._fwdTweenID]&&ce(),this.vars.css||d.style&&d!==ee&&d.nodeType&&W.css&&!1!==this.vars.autoCSS&&function(o,t){var e={},s;for(s in o)ue[s]||s in t&&"transform"!==s&&"x"!==s&&"y"!==s&&"width"!==s&&"height"!==s&&"className"!==s&&"border"!==s||!(!W[s]||W[s]&&W[s]._autoCSS)||(e[s]=o[s],delete o[s]);o.css=e}(this.vars,d),this.vars)if(m=this.vars[s],ue[s])m&&(m instanceof Array||m.push&&oe(m))&&-1!==m.join("").indexOf("{self}")&&(this.vars[s]=m=this._swapSelfInParams(m,this));else if(W[s]&&(p=new W[s])._onInitTween(d,this.vars[s],this,r)){for(this._firstPT=b={_next:this._firstPT,t:p,p:"setRatio",s:0,c:1,f:1,n:s,pg:1,pr:p._priority,m:0},u=p._overwriteProps.length;-1<--u;)t[p._overwriteProps[u]]=this._firstPT;(p._priority||p._onInitAllProps)&&(c=!0),(p._onDisable||p._onEnable)&&(this._notifyPluginsOfEnabled=!0),b._next&&(b._next._prev=b)}else t[s]=E.call(this,d,s,"get",m,s,0,null,this.vars.stringFilter,r);return _&&this._kill(_,d)?this._initProps(d,t,e,_,r):1<this._overwrite&&this._firstPT&&1<e.length&&K(d,this,t,this._overwrite,e)?(this._kill(t,d),this._initProps(d,t,e,_,r)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(X[d._fwdTweenID]=!0),c)},a.render=function(d,_,e){var c=this._time,b=this._duration,u=this._rawPrevTime,p,m,g,y,S,v,f;if(b-1e-7<=d?(this._totalTime=this._time=b,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(p=!0,m="onComplete",e=e||this._timeline.autoRemoveChildren),0===b&&(!this._initted&&this.vars.lazy&&!e||(this._startTime===this._timeline._duration&&(d=0),(0>u||0>=d&&-1e-7<=d||u===te&&"isPause"!==this.data)&&u!==d&&(e=!0,te<u&&(m="onReverseComplete")),this._rawPrevTime=y=!_||d||u===d?d:te))):1e-7>d?(this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==c||0===b&&0<u)&&(m="onReverseComplete",p=this._reversed),0>d&&(this._active=!1,0===b&&(!this._initted&&this.vars.lazy&&!e||(0<=u&&(u!==te||"isPause"!==this.data)&&(e=!0),this._rawPrevTime=y=!_||d||u===d?d:te))),this._initted||(e=!0)):(this._totalTime=this._time=d,this._easeType?(S=d/b,(1===(v=this._easeType)||3===v&&.5<=S)&&(S=1-S),3===v&&(S*=2),1===(f=this._easePower)?S*=S:2===f?S*=S*S:3===f?S*=S*S*S:4===f&&(S*=S*S*S*S),this.ratio=1===v?1-S:2===v?S:.5>d/b?S/2:1-S/2):this.ratio=this._ease.getRatio(d/b)),this._time!==c||e){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!e&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=c,this._rawPrevTime=u,z.push(this),void(this._lazy=[d,_]);this._time&&!p?this.ratio=this._ease.getRatio(this._time/b):p&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==c&&0<=d&&(this._active=!0),0===c&&(this._startAt&&(0<=d?this._startAt.render(d,_,e):m=m||"_dummyGS"),this.vars.onStart&&(0===this._time&&0!==b||_||this._callback("onStart"))),g=this._firstPT;g;)g.f?g.t[g.p](g.c*this.ratio+g.s):g.t[g.p]=g.c*this.ratio+g.s,g=g._next;this._onUpdate&&(0>d&&this._startAt&&-1e-4!==d&&this._startAt.render(d,_,e),_||(this._time!==c||p||e)&&this._callback("onUpdate")),m&&(this._gc&&!e||(0>d&&this._startAt&&!this._onUpdate&&-1e-4!==d&&this._startAt.render(d,_,e),p&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!_&&this.vars[m]&&this._callback(m),0===b&&this._rawPrevTime===te&&y!==te&&(this._rawPrevTime=0)))}},a._kill=function(d,_,c){if("all"===d&&(d=null),null==d&&(null==_||_===this.target))return this._lazy=!1,this._enabled(!1,!1);_="string"==typeof _?F.selector(_)||_:_||this._targets||this.target;var b=c&&this._time&&c._startTime===this._startTime&&this._timeline===c._timeline,p,m,g,y,S,v,P,T,B;if((oe(_)||D(_))&&"number"!=typeof _[0])for(p=_.length;-1<--p;)this._kill(d,_[p],c)&&(v=!0);else{if(this._targets){for(p=this._targets.length;-1<--p;)if(_===this._targets[p]){S=this._propLookup[p]||{},this._overwrittenProps=this._overwrittenProps||[],m=this._overwrittenProps[p]=d?this._overwrittenProps[p]||{}:"all";break}}else{if(_!==this.target)return!1;S=this._propLookup,m=this._overwrittenProps=d?this._overwrittenProps||{}:"all"}if(S){if(P=d||S,T=d!==m&&"all"!==m&&d!==S&&("object"!=typeof d||!d._tempKill),c&&(F.onOverwrite||this.vars.onOverwrite)){for(g in P)S[g]&&(B=B||[]).push(g);if((B||!d)&&!H(this,c,_,B))return!1}for(g in P)(y=S[g])&&(b&&(y.f?y.t[y.p](y.s):y.t[y.p]=y.s,v=!0),y.pg&&y.t._kill(P)&&(v=!0),y.pg&&0!==y.t._overwriteProps.length||(y._prev?y._prev._next=y._next:y===this._firstPT&&(this._firstPT=y._next),y._next&&(y._next._prev=y._prev),y._next=y._prev=null),delete S[g]),T&&(m[g]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return v},a.invalidate=function(){return this._notifyPluginsOfEnabled&&F._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],le.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-te,this.render(Math.min(0,-this._delay))),this},a._enabled=function(o,t){if(p||f.wake(),o&&this._gc){var e=this._targets,s;if(e)for(s=e.length;-1<--s;)this._siblings[s]=G(e[s],this,!0);else this._siblings=G(this.target,this,!0)}return le.prototype._enabled.call(this,o,t),this._notifyPluginsOfEnabled&&this._firstPT&&F._onPluginEvent(o?"_onEnable":"_onDisable",this)},F.to=function(o,t,e){return new F(o,t,e)},F.from=function(o,t,e){return e.runBackwards=!0,e.immediateRender=0!=e.immediateRender,new F(o,t,e)},F.fromTo=function(o,t,e,s){return s.startAt=e,s.immediateRender=0!=s.immediateRender&&0!=e.immediateRender,new F(o,t,s)},F.delayedCall=function(o,t,e,n,r){return new F(t,0,{delay:o,onComplete:t,onCompleteParams:e,callbackScope:n,onReverseComplete:t,onReverseCompleteParams:e,immediateRender:!1,lazy:!1,useFrames:r,overwrite:0})},F.set=function(o,t){return new F(o,0,t)},F.getTweensOf=function(o,a){if(null==o)return[];var e,d,l,_;if(o="string"==typeof o&&F.selector(o)||o,(oe(o)||D(o))&&"number"!=typeof o[0]){for(e=o.length,d=[];-1<--e;)d=d.concat(F.getTweensOf(o[e],a));for(e=d.length;-1<--e;)for(_=d[e],l=e;-1<--l;)_===d[l]&&d.splice(e,1)}else for(e=(d=G(o).concat()).length;-1<--e;)(d[e]._gc||a&&!d[e].isActive())&&d.splice(e,1);return d},F.killTweensOf=F.killDelayedCallsTo=function(o,t,n){"object"==typeof t&&(n=t,t=!1);for(var a=F.getTweensOf(o,t),r=a.length;-1<--r;)a[r]._kill(n,o)};var pe=w("plugins.TweenPlugin",function(o,t){this._overwriteProps=(o||"").split(","),this._propName=this._overwriteProps[0],this._priority=t||0,this._super=pe.prototype},!0);if(a=pe.prototype,pe.version="1.19.0",pe.API=2,a._firstPT=null,a._addTween=E,a.setRatio=N,a._kill=function(o){var t=this._overwriteProps,s=this._firstPT,n;if(null!=o[this._propName])this._overwriteProps=[];else for(n=t.length;-1<--n;)null!=o[t[n]]&&t.splice(n,1);for(;s;)null!=o[s.n]&&(s._next&&(s._next._prev=s._prev),s._prev?(s._prev._next=s._next,s._prev=null):this._firstPT===s&&(this._firstPT=s._next)),s=s._next;return!1},a._mod=a._roundProps=function(o){for(var t=this._firstPT,s;t;)(s=o[this._propName]||null!=t.n&&o[t.n.split(this._propName+"_").join("")])&&"function"==typeof s&&(2===t.f?t.t._applyPT.m=s:t.m=s),t=t._next},F._onPluginEvent=function(d,t){var e=t._firstPT,l,_,u,c,p;if("_onInitAllProps"===d){for(;e;){for(p=e._next,_=u;_&&_.pr>e.pr;)_=_._next;(e._prev=_?_._prev:c)?e._prev._next=e:u=e,(e._next=_)?_._prev=e:c=e,e=p}e=t._firstPT=u}for(;e;)e.pg&&"function"==typeof e.t[d]&&e.t[d]()&&(l=!0),e=e._next;return l},pe.activate=function(o){for(var t=o.length;-1<--t;)o[t].API===pe.API&&(W[new o[t]()._propName]=o[t]);return!0},T.plugin=function(d){if(!(d&&d.propName&&d.init&&d.API))throw"illegal plugin definition.";var t=d.propName,l=d.priority||0,r=d.overwriteProps,s={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},n=w("plugins."+t.charAt(0).toUpperCase()+t.substr(1)+"Plugin",function(){pe.call(this,t,l),this._overwriteProps=r||[]},!0===d.fwd_global),a=n.prototype=new pe(t),o;for(o in(a.constructor=n).API=d.API,s)"function"==typeof d[o]&&(a[s[o]]=d[o]);return n.version=d.version,pe.activate([n]),n},de=ee._fwd_fwdQueue){for(ae=0;ae<de.length;ae++)de[ae]();for(a in r)r[a].func||ee.console.log("FWDAnimation encountered missing dependency: "+a)}p=!1}}("undefined"!=typeof fwd_module&&fwd_module.exports&&"undefined"!=typeof fwd_global?fwd_global:this||window,"FWDAnimation"));

</script>
<?php } ?>