1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00

Advertises now use VMAP VAST

This commit is contained in:
daniel 2018-06-12 11:06:31 -03:00
parent cbdfe3ca1e
commit 3e715e8cd4
22 changed files with 4911 additions and 1 deletions

1
.gitignore vendored
View file

@ -36,4 +36,3 @@
/plugin/LiveCountdownEvent/ /plugin/LiveCountdownEvent/
/plugin/ReturnToLastPosition/ /plugin/ReturnToLastPosition/
/plugin/SecondWatch/ /plugin/SecondWatch/
/plugin/AD_Server/

View file

@ -0,0 +1,187 @@
<?php
header('Access-Control-Allow-Origin: *');
/**
* https://support.google.com/adsense/answer/4455881
* https://support.google.com/adsense/answer/1705822
* AdSense for video: Publisher Approval Form
* https://services.google.com/fb/forms/afvapproval/
*/
global $global;
require_once $global['systemRootPath'] . 'plugin/Plugin.abstract.php';
require_once $global['systemRootPath'] . 'plugin/AD_Server/Objects/VastCampaigns.php';
class AD_Server extends PluginAbstract {
public function getDescription() {
return "VAST Ad Server";
}
public function getName() {
return "AD_Server";
}
public function getUUID() {
return "3f2a707f-3c06-4b78-90f9-a22f2fda92ef";
}
public function getHeadCode() {
$obj = $this->getDataObject();
if (empty($_GET['videoName']) || empty($obj->showMarkers)) {
return "";
}
global $global;
$_GET['vmap_id'] = uniqid();
$js = '<script src="//imasdk.googleapis.com/js/sdkloader/ima3.js"></script>';
$css = '<link href="' . $global['webSiteRootURL'] . 'plugin/AD_Server/videojs-ima/videojs.ima.css" rel="stylesheet" type="text/css"/>';
$css .= '<link href="' . $global['webSiteRootURL'] . 'plugin/AD_Server/videojs-markers/videojs.markers.css" rel="stylesheet" type="text/css"/>';
$css .= '<style>.ima-ad-container{z-index:1000 !important;}</style>';
return $js . $css;
}
public function getEmptyDataObject() {
$obj = new stdClass();
$obj->start = true;
$obj->mid25Percent = false;
$obj->mid50Percent = false;
$obj->mid75Percent = false;
$obj->end = true;
$obj->skipoffset = "10%";
$obj->showMarkers = true;
return $obj;
}
public function getFooterCode() {
$obj = $this->getDataObject();
if (empty($_GET['videoName']) || empty($obj->showMarkers)) {
return "";
}
global $global;
$video = Video::getVideoFromCleanTitle($_GET['videoName']);
$video_length = parseDurationToSeconds($video['duration']);
$vmap_id = @$_GET['vmap_id'];
if(!empty($_GET['vmap_id']) && !empty($_SESSION['vmap'][$_GET['vmap_id']])){
$vmaps = unserialize($_SESSION['vmap'][$_GET['vmap_id']]);
}else{
$vmaps = $this->getVMAPs($video_length);
$_SESSION['vmap'][$_GET['vmap_id']] = serialize($vmaps);
}
include $global['systemRootPath'] . 'plugin/AD_Server/footer.php';
}
public function getVMAPs($video_length) {
$vmaps = array();
$vmaps[] = new VMAP("start", new VAST(1));
$obj = $this->getDataObject();
if (!empty($obj->mid25Percent)) {
$val = $video_length * (25 / 100);
$vmaps[] = new VMAP($val, new VAST(2));
}
if (!empty($obj->mid50Percent)) {
$val = $video_length * (50 / 100);
$vmaps[] = new VMAP($val, new VAST(3));
}
if (!empty($obj->mid75Percent)) {
$val = $video_length * (75 / 100);
$vmaps[] = new VMAP($val, new VAST(4));
}
$vmaps[] = new VMAP("end", new VAST(5), $video_length);
return $vmaps;
}
static public function getVideos() {
$campaings = VastCampaigns::getValidCampaigns();
$videos = array();
foreach ($campaings as $key => $value) {
$v = VastCampaignsVideos::getValidVideos($value['id']);
$videos = array_merge($videos, $v);
$campaings[$key]['videos'] = $v;
}
return array('campaigns' => $campaings, 'videos' => $videos);
}
static public function getRandomVideo() {
$result = static::getVideos();
$videos = $result['videos'];
shuffle($videos);
return array_pop($videos);
}
static public function getRandomCampaign() {
$result = static::getVideos();
$campaing = $result['campaigns'];
shuffle($campaing);
return array_pop($campaing);
}
public function getPluginMenu() {
global $global;
$filename = $global['systemRootPath'] . 'plugin/AD_Server/pluginMenu.html';
return file_get_contents($filename);
}
}
class VMAP {
public $timeOffset;
public $timeOffsetSeconds;
public $VAST;
public $idTag = "preroll-ad";
function __construct($time, VAST $VAST, $video_length = 0) {
if ($time === 'start') {
$this->timeOffsetSeconds = 0;
} else if ($time === 'end') {
$this->timeOffsetSeconds = $video_length;
} else {
$this->timeOffsetSeconds = $time;
}
$this->VAST = $VAST;
$this->setTimeOffset($time);
}
function setTimeOffset($time) {
if (empty($time)) {
//$time = "start";
}
// if is longer then the video lenght will be END
if (empty($time) || $time == "start") {
$this->idTag = "preroll-ad-" . $this->VAST->id;
} else if ($time == "end") {
$this->idTag = "postroll-ad-" . $this->VAST->id;
} else if (is_numeric($time)) {
$time = $this->format($time);
$this->idTag = "midroll-" . $this->VAST->id;
}
// format to 00:00:15.000
$this->timeOffset = $time;
}
private function format($seconds) {
$hours = floor($seconds / 3600);
$mins = floor($seconds / 60 % 60);
$secs = floor($seconds % 60);
return sprintf('%02d:%02d:%02d.000', $hours, $mins, $secs);
}
}
class VAST {
public $id;
public $campaing;
function __construct($id) {
$this->id = $id;
$row = AD_Server::getRandomVideo();
$this->campaing = $row['id'];
}
}

View file

@ -0,0 +1,242 @@
<?php
require_once dirname(__FILE__) . '/../../../videos/configuration.php';
require_once dirname(__FILE__) . '/../../../objects/user.php';
require_once $global['systemRootPath'].'plugin/AD_Server/Objects/VastCampaignsVideos.php';
require_once $global['systemRootPath'] . 'plugin/AD_Server/Objects/VastCampaignsLogs.php';
class VastCampaigns extends ObjectYPT {
protected $id, $name, $type, $status, $start_date, $end_date, $pricing_model,
$price, $max_impressions, $max_clicks, $priority, $users_id, $visibility, $cpc_budget_type, $cpc_total_budget, $cpc_max_price_per_click, $cpm_max_prints, $cpm_current_prints;
static function getSearchFieldsNames() {
return array('name');
}
static function getTableName() {
return 'vast_campaigns';
}
function getName() {
return $this->name;
}
function getType() {
return $this->type;
}
function getStatus() {
return $this->status;
}
function getStart_date() {
return $this->start_date;
}
function getEnd_date() {
return $this->end_date;
}
function getPricing_model() {
return $this->pricing_model;
}
function getPrice() {
return $this->price;
}
function getMax_impressions() {
return $this->max_impressions;
}
function getMax_clicks() {
return $this->max_clicks;
}
function getPriority() {
return $this->priority;
}
function getUsers_id() {
return $this->users_id;
}
function getVisibility() {
return $this->visibility;
}
function getCpc_budget_type() {
return $this->cpc_budget_type;
}
function getCpc_total_budget() {
return $this->cpc_total_budget;
}
function getCpc_max_price_per_click() {
return $this->cpc_max_price_per_click;
}
function getCpm_max_prints() {
return $this->cpm_max_prints;
}
function getCpm_current_prints() {
return $this->cpm_current_prints;
}
function setName($name) {
$this->name = $name;
}
function setType($type) {
$this->type = $type;
}
function setStatus($status) {
$this->status = $status;
}
function setStart_date($start_date) {
$this->start_date = $start_date;
}
function setEnd_date($end_date) {
$this->end_date = $end_date;
}
function setPricing_model($pricing_model) {
$this->pricing_model = $pricing_model;
}
function setPrice($price) {
$this->price = $price;
}
function setMax_impressions($max_impressions) {
$this->max_impressions = $max_impressions;
}
function setMax_clicks($max_clicks) {
$this->max_clicks = $max_clicks;
}
function setPriority($priority) {
$this->priority = $priority;
}
function setUsers_id($users_id) {
$this->users_id = $users_id;
}
function setVisibility($visibility) {
$this->visibility = $visibility;
}
function setCpc_budget_type($cpc_budget_type) {
$this->cpc_budget_type = $cpc_budget_type;
}
function setCpc_total_budget($cpc_total_budget) {
$this->cpc_total_budget = $cpc_total_budget;
}
function setCpc_max_price_per_click($cpc_max_price_per_click) {
$this->cpc_max_price_per_click = $cpc_max_price_per_click;
}
function setCpm_max_prints($cpm_max_prints) {
$this->cpm_max_prints = $cpm_max_prints;
}
function setCpm_current_prints($cpm_current_prints) {
$this->cpm_current_prints = $cpm_current_prints;
}
function getId() {
return $this->id;
}
function setId($id) {
$this->id = $id;
}
function save() {
$this->cpm_current_prints = intval($this->cpm_current_prints);
if(empty($this->visibility)){
$this->visibility = 'listed';
}
if(empty($this->cpc_budget_type)){
$this->cpc_budget_type = 'Campaign Total';
}
if(empty($this->cpc_total_budget)){
$this->cpc_total_budget = 0;
}
if(empty($this->cpc_max_price_per_click)){
$this->cpc_max_price_per_click = 0;
}
if(empty($this->visibility)){
$this->visibility = 'listed';
}
return parent::save();
}
function addVideo($videos_id, $status='a'){
$vast_campaigns_id = $this->getId();
if(empty($vast_campaigns_id)){
$this->setId($this->save());
$vast_campaigns_id = $this->getId();
}
$campainVideos = new VastCampaignsVideos(0);
$campainVideos->loadFromCampainVideo($vast_campaigns_id, $videos_id);
$campainVideos->setStatus($status);
return $campainVideos->save();
}
static public function getValidCampaigns(){
global $global;
$sql = "SELECT * from " . static::getTableName() . " WHERE status = 'a' AND start_date <= now() AND end_date >=now() ORDER BY priority ";
$res = sqlDAL::readSql($sql);
$rows = sqlDAL::fetchAllAssoc($res);
sqlDAL::close($res);
$r = array();
if ($res!=false) {
foreach($rows as $row) {
$r[] = $row;
}
}
return $r;
}
static function getAll() {
global $global;
$sql = "SELECT * FROM " . static::getTableName() . " WHERE 1=1 ";
$sql .= self::getSqlFromPost();
$res = sqlDAL::readSql($sql);
$fullData = sqlDAL::fetchAllAssoc($res);
sqlDAL::close($res);
$rows = array();
if ($res!=false) {
foreach ($fullData as $row) {
$row['data'] = VastCampaignsLogs::getDataFromCampaign($row['id']);
if(empty($row['data']['Impression'])){
$row['data']['Impression']=0;
}
$row['printsLeft'] = $row['cpm_max_prints'] - $row['data']['Impression'];
$rows[] = $row;
}
} else {
die($sql . '\nError : (' . $global['mysqli']->errno . ') ' . $global['mysqli']->error);
}
return $rows;
}
}

View file

@ -0,0 +1,98 @@
<?php
require_once dirname(__FILE__) . '/../../../videos/configuration.php';
require_once dirname(__FILE__) . '/../../../objects/user.php';
require_once dirname(__FILE__) . '/../../../objects/video.php';
class VastCampaignsLogs extends ObjectYPT {
protected $id, $users_id, $type, $vast_campaigns_has_videos_id, $ip;
static function getSearchFieldsNames() {
return array();
}
static function getTableName() {
return 'vast_campaigns_logs';
}
function getId() {
return $this->id;
}
function getUsers_id() {
return $this->users_id;
}
function getType() {
return $this->type;
}
function getVast_campaigns_has_videos_id() {
return $this->vast_campaigns_has_videos_id;
}
function setId($id) {
$this->id = $id;
}
function setUsers_id($users_id) {
$this->users_id = $users_id;
}
function setType($type) {
$this->type = $type;
}
function setVast_campaigns_has_videos_id($vast_campaigns_has_videos_id) {
$this->vast_campaigns_has_videos_id = $vast_campaigns_has_videos_id;
}
function getIp() {
return $this->ip;
}
function save() {
$this->ip = getRealIpAddr();
return parent::save();
}
static function getData($vast_campaigns_has_videos_id){
global $global;
$sql = "SELECT `type`, count(*) as total FROM vast_campaigns_logs WHERE vast_campaigns_has_videos_id = $vast_campaigns_has_videos_id GROUP BY `type`";
$res = sqlDAL::readSql($sql);
$fullData = sqlDAL::fetchAllAssoc($res);
sqlDAL::close($res);
$data = array();
if ($res!=false) {
foreach ($fullData as $row) {
$data[$row['type']] = $row['total'];
}
} else {
die($sql . '\nError : (' . $global['mysqli']->errno . ') ' . $global['mysqli']->error);
}
return $data;
}
static function getDataFromCampaign($vast_campaigns_id){
global $global;
$sql = "SELECT `type`, count(vast_campaigns_id) as total FROM vast_campaigns_logs vcl LEFT JOIN vast_campaigns_has_videos vchv ON vast_campaigns_id = vchv.id WHERE vast_campaigns_id = $vast_campaigns_id GROUP BY `type`";
$res = sqlDAL::readSql($sql);
$fullData = sqlDAL::fetchAllAssoc($res);
sqlDAL::close($res);
$data = array();
if ($res!=false) {
foreach ($fullData as $row) {
$data[$row['type']] = $row['total'];
}
} else {
die($sql . '\nError : (' . $global['mysqli']->errno . ') ' . $global['mysqli']->error);
}
return $data;
}
}

View file

@ -0,0 +1,143 @@
<?php
require_once dirname(__FILE__) . '/../../../videos/configuration.php';
require_once dirname(__FILE__) . '/../../../objects/user.php';
require_once dirname(__FILE__) . '/../../../objects/video.php';
require_once $global['systemRootPath'] . 'plugin/AD_Server/Objects/VastCampaignsLogs.php';
class VastCampaignsVideos extends ObjectYPT {
protected $id, $vast_campaigns_id, $videos_id, $status, $link, $ad_title;
static function getSearchFieldsNames() {
return array();
}
static function getTableName() {
return 'vast_campaigns_has_videos';
}
function loadFromCampainVideo($vast_campaigns_id, $videos_id){
$row = self::getCampainVideo($vast_campaigns_id, $videos_id);
if (empty($row))
return false;
foreach ($row as $key => $value) {
$this->$key = $value;
}
return true;
}
static protected function getCampainVideo($vast_campaigns_id, $videos_id) {
global $global;
$vast_campaigns_id = intval($vast_campaigns_id);
$videos_id = intval($videos_id);
$sql = "SELECT * FROM " . static::getTableName() . " WHERE vast_campaigns_id = ? , videos_id = ? LIMIT 1";
// I had to add this because the about from customize plugin was not loading on the about page http://127.0.0.1/YouPHPTube/about
$res = sqlDAL::readSql($sql,"ii",array($vast_campaigns_id, $videos_id));
$data = sqlDAL::fetchAssoc($res);
sqlDAL::close($res);
if ($res) {
$row = $data;
} else {
$row = false;
}
return $row;
}
static function getAllFromCampaign($vast_campaigns_id, $getImages = false) {
global $global;
$sql = "SELECT v.*, c.* FROM " . static::getTableName() . " c "
. " LEFT JOIN videos v ON videos_id = v.id WHERE 1=1 ";
if(!empty($vast_campaigns_id)){
$sql .= " AND vast_campaigns_id=$vast_campaigns_id ";
}
$sql .= self::getSqlFromPost();
$res = sqlDAL::readSql($sql);
$fullData = sqlDAL::fetchAllAssoc($res);
sqlDAL::close($res);
$rows = array();
if ($res!=false) {
foreach ($fullData as $row) {
if($getImages){
$row['poster'] = Video::getImageFromID($row['videos_id']);
}
$row['data'] = VastCampaignsLogs::getDataFromCampaign($row['vast_campaigns_id']);
$rows[] = $row;
}
} else {
die($sql . '\nError : (' . $global['mysqli']->errno . ') ' . $global['mysqli']->error);
}
return $rows;
}
static public function getValidVideos($vast_campaigns_id){
global $global;
$sql = "SELECT v.*, c.* from " . static::getTableName() . " c LEFT JOIN videos v ON v.id = videos_id WHERE vast_campaigns_id = ? AND c.status = 'a' ";
$res = sqlDAL::readSql($sql,"i",array($vast_campaigns_id));
$rows = sqlDAL::fetchAllAssoc($res);
sqlDAL::close($res);
$r = array();
if ($res!=false) {
foreach($rows as $row) {
$r[] = $row;
}
}
return $r;
}
function getId() {
return $this->id;
}
function getVast_campaigns_id() {
return $this->vast_campaigns_id;
}
function getVideos_id() {
return $this->videos_id;
}
function getStatus() {
return $this->status;
}
function setId($id) {
$this->id = $id;
}
function setVast_campaigns_id($vast_campaigns_id) {
$this->vast_campaigns_id = $vast_campaigns_id;
}
function setVideos_id($videos_id) {
$this->videos_id = $videos_id;
}
function setStatus($status) {
$this->status = $status;
}
function getLink() {
return $this->link;
}
function getAd_title() {
return $this->ad_title;
}
function setLink($link) {
$this->link = $link;
}
function setAd_title($ad_title) {
$this->ad_title = $ad_title;
}
}

87
plugin/AD_Server/VAST.php Normal file
View file

@ -0,0 +1,87 @@
<?php
header('Access-Control-Allow-Origin: *');
header('Content-type: application/xml');
require_once '../../videos/configuration.php';
require_once $global['systemRootPath'] . 'objects/video.php';
$ad_server = YouPHPTubePlugin::loadPluginIfEnabled('AD_Server');
$obj = YouPHPTubePlugin::getObjectDataIfEnabled('AD_Server');
if (empty($ad_server)) {
die("not enabled");
}
$types = array('', '_Low', '_SD', '_HD');
$vastCampaingVideos = new VastCampaignsVideos($_GET['campaign_has_videos_id']);
$video = new Video("", "", $vastCampaingVideos->getVideos_id());
$files = getVideosURL($video->getFilename());
?>
<?xml version="1.0" encoding="UTF-8"?>
<VAST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd" version="3.0">
<Ad id="709684336">
<InLine>
<AdSystem>GDFP</AdSystem>
<AdTitle>External NCA1C1L1 Preroll</AdTitle>
<Description><![CDATA[External NCA1C1L1 Preroll ad]]></Description>
<Error><![CDATA[<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/log.php?label=Error&[ERRORCODE]]]></Error>
<Impression><![CDATA[<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/log.php?label=Impression&ad_mt=[AD_MT]&campaign_has_videos_id=<?php echo $_GET['campaign_has_videos_id']; ?>]]></Impression>
<Creatives>
<Creative id="57861016576" sequence="1">
<Linear skipoffset="<?php echo $obj->skipoffset; ?>">
<Duration><?php echo $video->getDuration(); ?></Duration>
<TrackingEvents>
<Tracking event="start"><![CDATA[<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/log.php?label=start&ad_mt=[AD_MT]&campaign_has_videos_id=<?php echo $_GET['campaign_has_videos_id']; ?>]]></Tracking>
<Tracking event="firstQuartile"><![CDATA[<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/log.php?label=firstQuartile&ad_mt=[AD_MT]&campaign_has_videos_id=<?php echo $_GET['campaign_has_videos_id']; ?>]]></Tracking>
<Tracking event="midpoint"><![CDATA[<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/log.php?label=midpoint&ad_mt=[AD_MT]&campaign_has_videos_id=<?php echo $_GET['campaign_has_videos_id']; ?>]]></Tracking>
<Tracking event="thirdQuartile"><![CDATA[<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/log.php?label=thirdQuartile&ad_mt=[AD_MT]&campaign_has_videos_id=<?php echo $_GET['campaign_has_videos_id']; ?>]]></Tracking>
<Tracking event="complete"><![CDATA[<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/log.php?label=complete&ad_mt=[AD_MT]&campaign_has_videos_id=<?php echo $_GET['campaign_has_videos_id']; ?>]]></Tracking>
<Tracking event="mute"><![CDATA[<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/log.php?label=mute&ad_mt=[AD_MT]&campaign_has_videos_id=<?php echo $_GET['campaign_has_videos_id']; ?>]]></Tracking>
<Tracking event="unmute"><![CDATA[<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/log.php?label=unmute&ad_mt=[AD_MT]&campaign_has_videos_id=<?php echo $_GET['campaign_has_videos_id']; ?>]]></Tracking>
<Tracking event="rewind"><![CDATA[<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/log.php?label=rewind&ad_mt=[AD_MT]&campaign_has_videos_id=<?php echo $_GET['campaign_has_videos_id']; ?>]]></Tracking>
<Tracking event="pause"><![CDATA[<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/log.php?label=pause&ad_mt=[AD_MT]&campaign_has_videos_id=<?php echo $_GET['campaign_has_videos_id']; ?>]]></Tracking>
<Tracking event="resume"><![CDATA[<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/log.php?label=resume&ad_mt=[AD_MT]&campaign_has_videos_id=<?php echo $_GET['campaign_has_videos_id']; ?>]]></Tracking>
<Tracking event="fullscreen"><![CDATA[<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/log.php?label=fullscreen&ad_mt=[AD_MT]&campaign_has_videos_id=<?php echo $_GET['campaign_has_videos_id']; ?>]]></Tracking>
<Tracking event="creativeView"><![CDATA[<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/log.php?label=creativeView&ad_mt=[AD_MT]&campaign_has_videos_id=<?php echo $_GET['campaign_has_videos_id']; ?>]]></Tracking>
<Tracking event="exitFullscreen"><![CDATA[<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/log.php?label=exitFullscreen&ad_mt=[AD_MT]&campaign_has_videos_id=<?php echo $_GET['campaign_has_videos_id']; ?>]]></Tracking>
<Tracking event="acceptInvitationLinear"><![CDATA[<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/log.php?label=acceptInvitationLinear&ad_mt=[AD_MT]&campaign_has_videos_id=<?php echo $_GET['campaign_has_videos_id']; ?>]]></Tracking>
<Tracking event="closeLinear"><![CDATA[<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/log.php?label=closeLinear&ad_mt=[AD_MT]&campaign_has_videos_id=<?php echo $_GET['campaign_has_videos_id']; ?>]]></Tracking>
</TrackingEvents>
<?php
$campaignVideo = new VastCampaignsVideos($_GET['campaign_has_videos_id']);
$link = $campaignVideo->getLink();
if (filter_var($link, FILTER_VALIDATE_URL)) {
?>
<VideoClicks>
<ClickThrough id="GDFP"><![CDATA[<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/log.php?label=ClickThrough&campaign_has_videos_id=<?php echo $_GET['campaign_has_videos_id']; ?>]]></ClickThrough>
</VideoClicks>
<?php
}
?>
<MediaFiles>
<?php
foreach ($types as $key => $value) {
if (!empty($files["mp4{$value}"])) {
echo "\n " . '<MediaFile id="GDFP" delivery="progressive" type="video/mp4" scalable="true" maintainAspectRatio="true"><![CDATA[' . ($files["mp4{$value}"]['url']) . ']]></MediaFile>';
}
if (!empty($files["webm{$value}"])) {
echo "\n " . '<MediaFile id="GDFP" delivery="progressive" type="video/mp4" scalable="true" maintainAspectRatio="true"><![CDATA[' . ($files["mp4{$value}"]['url']) . ']]></MediaFile>';
}
}
?>
</MediaFiles>
</Linear>
</Creative>
<Creative id="<?php echo $_GET['campaign_has_videos_id']; ?>" sequence="1">
<CompanionAds>
<Companion id="<?php echo $_GET['campaign_has_videos_id']; ?>" width="300" height="250">
<StaticResource creativeType="image/png"><![CDATA[<?php echo $global['webSiteRootURL']; ?>img/logo.png]]></StaticResource>
<TrackingEvents>
<Tracking event="creativeView"><![CDATA[<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/log.php?label=creativeView&ad_mt=[AD_MT]&campaign_has_videos_id=<?php echo $_GET['campaign_has_videos_id']; ?>]]></Tracking>
</TrackingEvents>
<CompanionClickThrough><![CDATA[<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/log.php?label=CompanionClickThrough&ad_mt=[AD_MT]&campaign_has_videos_id=<?php echo $_GET['campaign_has_videos_id']; ?>]]></CompanionClickThrough>
</Companion>
</CompanionAds>
</Creative>
</Creatives>
</InLine>
</Ad>
</VAST>

32
plugin/AD_Server/VMAP.php Normal file
View file

@ -0,0 +1,32 @@
<?php
header('Access-Control-Allow-Origin: *');
header('Content-type: application/xml');
require_once '../../videos/configuration.php';
$ad_server = YouPHPTubePlugin::loadPluginIfEnabled('AD_Server');
if(empty($ad_server)){
die("not enabled");
}
if(!empty($_GET['vmap_id']) && !empty($_SESSION['vmap'][$_GET['vmap_id']])){
$vmaps = unserialize($_SESSION['vmap'][$_GET['vmap_id']]);
}else{
$vmaps = $ad_server->getVMAPs($_GET['video_length']);
$_SESSION['vmap'][$_GET['vmap_id']] = serialize($vmaps);
}
//var_dump($vmaps);exit;
?>
<?xml version="1.0" encoding="UTF-8"?>
<vmap:VMAP xmlns:vmap="http://www.iab.net/videosuite/vmap" version="1.0">
<?php
foreach ($vmaps as $value) {
?>
<vmap:AdBreak timeOffset="<?php echo $value->timeOffset; ?>" breakType="linear" breakId="preroll">
<vmap:AdSource id="<?php echo $value->idTag; ?>" allowMultipleAds="false" followRedirects="true">
<vmap:AdTagURI templateType="vast3"><![CDATA[<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/VAST.php?campaign_has_videos_id=<?php echo $value->VAST->campaing; ?>&vmap_id=<?php echo @$_GET['vmap_id']; ?>]]></vmap:AdTagURI>
</vmap:AdSource>
</vmap:AdBreak>
<?php
}
?>
</vmap:VMAP>

View file

@ -0,0 +1,72 @@
<script src="<?php echo $global['webSiteRootURL'] ?>plugin/AD_Server/videojs-ima/videojs.ima.js" type="text/javascript"></script>
<script>
$(document).ready(function () {
$.getScript("<?php echo $global['webSiteRootURL'] ?>plugin/AD_Server/videojs-markers/videojs-markers.js", function (data, textStatus, jqxhr) {
if (typeof player == 'undefined') {
player = videojs('mainVideo');
}
player.markers({
markerStyle: {
'width': '5px',
'background-color': 'yellow'
},
markerTip: {
display: true,
text: function (marker) {
return marker.text;
}
},
markers: [
<?php
foreach ($vmaps as $value) {
$vastCampaingVideos = new VastCampaignsVideos($value->VAST->campaing);
$video = new Video("", "", $vastCampaingVideos->getVideos_id());
?>
{time: <?php echo $value->timeOffsetSeconds; ?>, text: "<?php echo addcslashes($video->getTitle(), '"'); ?>"},
<?php
}
?>
]
});
});
function fixAdSize() {
ad_container = $('#mainVideo_ima-ad-container');
if (ad_container.length) {
height = ad_container.css('height');
width = ad_container.css('width');
$($('#mainVideo_ima-ad-container div:first-child')[0]).css({'height': height});
$($('#mainVideo_ima-ad-container div:first-child')[0]).css({'width': width});
}
}
player = videojs('mainVideo');
var options = {
id: 'mainVideo',
adTagUrl: '<?php echo $global['webSiteRootURL'] ?>plugin/AD_Server/VMAP.php?video_length=<?php echo $video_length ?>&vmap_id=<?php echo $vmap_id ?>'
};
player.ima(options);
// Remove controls from the player on iPad to stop native controls from stealing
// our click
var contentPlayer = document.getElementById('content_video_html5_api');
if ((navigator.userAgent.match(/iPad/i) ||
navigator.userAgent.match(/Android/i)) &&
contentPlayer.hasAttribute('controls')) {
contentPlayer.removeAttribute('controls');
}
// Initialize the ad container when the video player is clicked, but only the
// first time it's clicked.
var startEvent = 'click';
if (navigator.userAgent.match(/iPhone/i) ||
navigator.userAgent.match(/iPad/i) ||
navigator.userAgent.match(/Android/i)) {
startEvent = 'touchend';
}
player.one(startEvent, function () {
player.ima.initializeAdDisplayContainer();
});
setInterval(function () {
fixAdSize();
}, 100);
});
</script>;

454
plugin/AD_Server/index.php Normal file
View file

@ -0,0 +1,454 @@
<?php
require_once '../../videos/configuration.php';
$plugin = YouPHPTubePlugin::loadPluginIfEnabled('AD_Server');
if (!User::isAdmin()) {
header("Location: {$global['webSiteRootURL']}?error=" . __("You can not do this"));
exit;
}
?>
<!DOCTYPE html>
<html lang="<?php echo $_SESSION['language']; ?>">
<head>
<title><?php echo $config->getWebSiteTitle(); ?> :: VAST</title>
<?php
include $global['systemRootPath'] . 'view/include/head.php';
?>
<link rel="stylesheet" type="text/css" href="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.css"/>
<link href="<?php echo $global['webSiteRootURL']; ?>js/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css"/>
<link href="<?php echo $global['webSiteRootURL']; ?>js/jquery-ui/jquery-ui.min.css" rel="stylesheet" type="text/css"/>
<style>
#campaignVideosTable td img {
height: 50px;
margin: 5px;
}
.ui-autocomplete{
z-index: 9999999;
}
</style>
</head>
<body>
<?php
include $global['systemRootPath'] . 'view/include/navbar.php';
?>
<div class="container">
<div class="panel panel-default">
<div class="panel-heading">
<i class="fas fa-link"></i> <?php echo __("Configure your Ads"); ?>
<div class="pull-right" style="width: 200px;">
<div class="material-switch ">
<?php echo __("Enable Ads Plugin"); ?> &nbsp;&nbsp;&nbsp;
<input name="enable1" id="enable1" type="checkbox" value="0" class="pluginSwitch" <?php
if (is_object($plugin)) {
echo " checked='checked' ";
}
?> />
<label for="enable1" class="label-success"></label>
</div>
</div>
</div>
<div class="panel-body">
<div class="row">
<div class="col-sm-4">
<div class="panel panel-default ">
<div class="panel-heading"><?php echo __("Create Campaign"); ?></div>
<div class="panel-body">
<form id="panelForm">
<div class="row">
<input type="hidden" name="campId" id="campId" value="" >
<div class="form-group col-sm-12">
<label for="name"><?php echo __("Name"); ?>:</label>
<input type="text" id="name" name="name" class="form-control input-sm" placeholder="<?php echo __("Name"); ?>" required="true">
</div>
<div class="form-group col-sm-6">
<label for="startDate"><?php echo __("Starts on"); ?>:</label>
<input type="text" id="startDate" name="start_date" class="form-control datepickerLink input-sm" placeholder="<?php echo __("Starts on"); ?>" required >
</div>
<div class="form-group col-sm-6">
<label for="endDate"><?php echo __("End on"); ?>:</label>
<input type="text" id="endDate" name="end_date" class="form-control datepickerLink input-sm" placeholder="<?php echo __("End on"); ?>" required>
</div>
<div class="form-group col-sm-6">
<label for="maxPrints"><?php echo __("Max Prints"); ?>:</label>
<input type="number" id="maxPrints" name="maxPrints" class="form-control input-sm" placeholder="<?php echo __("End on"); ?>" required>
</div>
<div class="form-group col-sm-6">
<label for="status"><?php echo __("Status"); ?>:</label>
<select class="form-control input-sm" name="status" id="status">
<option value="a"><?php echo __("Active"); ?></option>
<option value="i"><?php echo __("Inactive"); ?></option>
</select>
</div>
<div class="form-group col-sm-6">
<label for="visibility"><?php echo __("Visibility"); ?>:</label>
<select class="form-control input-sm" name="visibility" id="visibility">
<option value="listed"><?php echo __("Listed"); ?></option>
<option value="unlisted"><?php echo __("Unlisted"); ?></option>
</select>
</div>
<div class="form-group col-sm-12">
<div class="btn-group pull-right">
<span class="btn btn-success" id="newLiveLink"><i class="fas fa-plus"></i> <?php echo __("New"); ?></span>
<button class="btn btn-primary" id="addLiveLink" type="submit"><i class="fas fa-save"></i> <?php echo __("Save"); ?></button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="col-sm-8">
<div class="panel panel-default ">
<div class="panel-heading"><?php echo __("Edit Campaigns"); ?></div>
<div class="panel-body">
<table id="campaignTable" class="display" width="100%" cellspacing="0">
<thead>
<tr>
<th>Name</th>
<th>Start</th>
<th>End</th>
<th>Status</th>
<th>Prints Left</th>
<th></th>
</tr>
</thead>
<tfoot>
<tr>
<th>Name</th>
<th>Start</th>
<th>End</th>
<th>Status</th>
<th>Prints Left</th>
<th></th>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="videoFormModal" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document" style="width: 800px;">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title"><?php echo __("Video Form"); ?></h4>
</div>
<div class="modal-body" style="max-height: 70vh; overflow-y: scroll;">
<div class="row">
<h3><?php echo __("Add Videos into Campaign"); ?> - <strong id="campaignName"></strong></h3>
<div class="col-md-4">
<img id="inputVideo-poster" src="<?php echo $global['webSiteRootURL']; ?>img/notfound.jpg" class="ui-state-default img-responsive" alt="">
</div>
<div class="col-md-8">
<input id="inputVideo" placeholder="<?php echo __("Video"); ?>" class="form-control">
<input id="inputVideoClean" placeholder="<?php echo __("Video URL"); ?>" class="form-control" readonly="readonly">
<div id="adDetails">
<input id="inputVideoURI" type="url" placeholder="<?php echo __("Video Redirect URI"); ?>" class="form-control" >
<input id="inputVideoTitle" placeholder="<?php echo __("Ad Title"); ?>" class="form-control" >
</div>
<input type="hidden" id="vast_campaigns_id">
<input type="hidden" id="videos_id">
</div>
</div>
<hr>
<button type="button" class="btn btn-success" id="addVideoBtn"><?php echo __("Add Video"); ?></button>
<hr>
<div class="row">
<div class="col-md-12">
<table id="campaignVideosTable" class="display" width="100%" cellspacing="0">
<thead>
<tr>
<th></th>
<th>Title</th>
<th></th>
</tr>
</thead>
<tfoot>
<tr>
<th></th>
<th>Title</th>
<th></th>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __("Close"); ?></button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<div id="btnModelVideos" style="display: none;">
<button href="" class="editor_delete_video btn btn-danger btn-xs">
<i class="fa fa-trash"></i>
</button>
</div>
<div id="btnModelLinks" style="display: none;">
<div class="btn-group pull-right">
<button href="" class="editor_add_video btn btn-success btn-xs">
<i class="fa fa-video"></i> Add Video
</button>
<button href="" class="editor_edit_link btn btn-default btn-xs">
<i class="fa fa-edit"></i>
</button>
<button href="" class="editor_delete_link btn btn-danger btn-xs">
<i class="fa fa-trash"></i>
</button>
</div>
</div>
</div>
<?php
include $global['systemRootPath'] . 'view/include/footer.php';
?>
<script type="text/javascript" src="<?php echo $global['webSiteRootURL']; ?>view/css/DataTables/datatables.min.js"></script>
<script src="<?php echo $global['webSiteRootURL']; ?>js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
<script src="<?php echo $global['webSiteRootURL']; ?>js/jquery-ui/jquery-ui.min.js" type="text/javascript"></script>
<script type="text/javascript">
function clearVideoForm() {
$('#inputVideo-poster').attr('src', "<?php echo $global['webSiteRootURL']; ?>img/notfound.jpg");
$('#inputVideo').val('');
$('#inputVideoClean').val('');
$('#inputVideoURI').val('');
$('#inputVideoTitle').val('');
$('#adDetails').slideUp();
$('#videos_id').val(0);
}
$(document).ready(function () {
$(".pluginSwitch").on("change", function (e) {
modal.showPleaseWait();
$.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>objects/pluginSwitch.json.php',
data: {"uuid": "3f2a707f-3c06-4b78-90f9-a22f2fda92ef", "name": "AD_Server", "dir": "AD_Server", "enable": $('#enable1').is(":checked")},
type: 'post',
success: function (response) {
modal.hidePleaseWait();
}
});
});
$("#inputVideo").autocomplete({
minLength: 0,
source: function (req, res) {
$.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>videos.json',
type: "POST",
data: {
searchPhrase: req.term
},
success: function (data) {
res(data.rows);
}
});
},
focus: function (event, ui) {
$("#inputVideo").val(ui.item.title);
return false;
},
select: function (event, ui) {
$("#inputVideo").val(ui.item.title);
$("#inputVideoClean").val('<?php echo $global['webSiteRootURL']; ?>video/' + ui.item.clean_title);
$("#inputVideo-id").val(ui.item.id);
$("#inputVideo-poster").attr("src", "<?php echo $global['webSiteRootURL']; ?>videos/" + ui.item.filename + ".jpg");
$('#videos_id').val(ui.item.id);
$('#adDetails').slideDown();
return false;
}
}).autocomplete("instance")._renderItem = function (ul, item) {
return $("<li>").append("<div>" + item.title + "<br><?php echo __("Uploaded By"); ?>: " + item.user + "</div>").appendTo(ul);
};
var tableVideos = $('#campaignVideosTable').DataTable({
"ajax": {
"url": "<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/view/campaignsVideos.json.php",
"type": "POST",
"data": function (d) {
d.id = $('#vast_campaigns_id').val();
}
},
"type": "POST",
"columns": [
{
sortable: false,
data: null,
"render": function (data, type, full, meta) {
return '<img src="' + full.poster.thumbsJpg + '" class="ui-state-default img-responsive" alt="">';
}, "width": "20%"
},
{
sortable: true,
data: 'title',
"render": function (data, type, full, meta) {
return full.title + "<div><small>Title: " + full.ad_title + "<br>URL: " + full.link + "</small></div>";
}
},
{
sortable: false,
data: null,
defaultContent: $('#btnModelVideos').html()
}
],
select: true,
});
$('#campaignVideosTable').on('click', 'button.editor_delete_video', function (e) {
e.preventDefault();
var tr = $(this).closest('tr')[0];
var data = tableVideos.row(tr).data();
swal({
title: "<?php echo __("Are you sure?"); ?>",
text: "<?php echo __("You will not be able to recover this action!"); ?>",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "<?php echo __("Yes, delete it!"); ?>",
closeOnConfirm: true
},
function () {
modal.showPleaseWait();
$.ajax({
type: "POST",
url: "<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/view/deleteCampaignVideo.json.php",
data: data
}).done(function (resposta) {
if (resposta.error) {
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
}
tableVideos.ajax.reload();
modal.hidePleaseWait();
});
});
});
$('#addVideoBtn').click(function () {
$.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/view/addCampaignVideo.php',
data: {vast_campaigns_id: $('#vast_campaigns_id').val(), videos_id: $('#videos_id').val(), title: $('#inputVideoURI').val(), uri: $('#inputVideoTitle').val()},
type: 'post',
success: function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
} else {
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
$("#panelForm").trigger("reset");
}
clearVideoForm();
tableVideos.ajax.reload();
modal.hidePleaseWait();
}
});
});
var tableLinks = $('#campaignTable').DataTable({
"ajax": "<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/view/campaigns.json.php",
"columns": [
{"data": "name"},
{"data": "start_date"},
{"data": "end_date"},
{"data": "status", width: 10},
{sortable: false, "data": "printsLeft"},
{
sortable: false,
data: null,
defaultContent: $('#btnModelLinks').html()
}
],
select: true,
});
$('.datepickerLink').datetimepicker({
format: 'yyyy-mm-dd hh:ii',
autoclose: true
});
$('#newLiveLink').on('click', function (e) {
e.preventDefault();
$('#panelForm').trigger("reset");
$('#campId').val('');
});
$('#panelForm').on('submit', function (e) {
e.preventDefault();
modal.showPleaseWait();
$.ajax({
url: '<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/view/addCampaign.php',
data: $('#panelForm').serialize(),
type: 'post',
success: function (response) {
if (response.error) {
swal("<?php echo __("Sorry!"); ?>", response.msg, "error");
} else {
swal("<?php echo __("Congratulations!"); ?>", "<?php echo __("Your register has been saved!"); ?>", "success");
$("#panelForm").trigger("reset");
}
tableLinks.ajax.reload();
$('#campId').val('');
modal.hidePleaseWait();
}
});
});
$('#campaignTable').on('click', 'button.editor_add_video', function (e) {
e.preventDefault();
var tr = $(this).closest('tr')[0];
var data = tableLinks.row(tr).data();
$('#campaignName').html(data.name);
$('#vast_campaigns_id').val(data.id);
clearVideoForm();
$('#videoFormModal').modal();
tableVideos.ajax.reload();
});
$('#campaignTable').on('click', 'button.editor_delete_link', function (e) {
e.preventDefault();
var tr = $(this).closest('tr')[0];
var data = tableLinks.row(tr).data();
swal({
title: "<?php echo __("Are you sure?"); ?>",
text: "<?php echo __("You will not be able to recover this action!"); ?>",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "<?php echo __("Yes, delete it!"); ?>",
closeOnConfirm: true
},
function () {
modal.showPleaseWait();
$.ajax({
type: "POST",
url: "<?php echo $global['webSiteRootURL']; ?>plugin/AD_Server/view/deleteCampaign.json.php",
data: data
}).done(function (resposta) {
if (resposta.error) {
swal("<?php echo __("Sorry!"); ?>", resposta.msg, "error");
}
tableLinks.ajax.reload();
modal.hidePleaseWait();
});
});
});
$('#campaignTable').on('click', 'button.editor_edit_link', function (e) {
e.preventDefault();
var tr = $(this).closest('tr')[0];
var data = tableLinks.row(tr).data();
$('#campId').val(data.id);
$('#name').val(data.name);
$('#startDate').val(data.start_date);
$('#endDate').val(data.end_date);
$('#maxPrints').val(data.cpm_max_prints);
$('#status').val(data.status);
$('#visibility').val(data.visibility);
});
});
</script>
</body>
</html>

View file

@ -0,0 +1,94 @@
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
-- Table `vast_campaigns`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `vast_campaigns` (
`id` INT NOT NULL AUTO_INCREMENT,
`name` VARCHAR(255) NULL,
`type` ENUM('Remnant', 'Contract', 'Override') NOT NULL DEFAULT 'Contract',
`status` ENUM('a', 'i') NOT NULL DEFAULT 'a',
`start_date` DATETIME NULL,
`end_date` DATETIME NULL,
`pricing_model` ENUM('CPM', 'CPC') NOT NULL DEFAULT 'CPC',
`priority` INT NOT NULL DEFAULT 1,
`users_id` INT NOT NULL,
`created` DATETIME NULL,
`modified` DATETIME NULL,
`visibility` ENUM('listed', 'unlisted') NULL,
`cpc_budget_type` ENUM('Daily', 'Campaign Total') NULL,
`cpc_total_budget` FLOAT(20,10) NULL,
`cpc_max_price_per_click` FLOAT(20,10) NULL,
`cpm_max_prints` INT UNSIGNED NULL,
`cpm_current_prints` INT UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
INDEX `fk_vast_campains_users_idx` (`users_id` ASC),
CONSTRAINT `fk_vast_campains_users`
FOREIGN KEY (`users_id`)
REFERENCES `users` (`id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `vast_campaigns_has_videos`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `vast_campaigns_has_videos` (
`id` INT NOT NULL AUTO_INCREMENT,
`vast_campaigns_id` INT NOT NULL,
`videos_id` INT NOT NULL,
`created` DATETIME NULL,
`modified` DATETIME NULL,
`status` ENUM('a', 'i') NULL,
`link` VARCHAR(255) NULL,
`ad_title` VARCHAR(255) NULL,
PRIMARY KEY (`id`),
INDEX `fk_vast_campaigns_has_videos_videos1_idx` (`videos_id` ASC),
INDEX `fk_vast_campaigns_has_videos_vast_campaigns1_idx` (`vast_campaigns_id` ASC),
CONSTRAINT `fk_vast_campaigns_has_videos_vast_campaigns1`
FOREIGN KEY (`vast_campaigns_id`)
REFERENCES `vast_campaigns` (`id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_vast_campaigns_has_videos_videos1`
FOREIGN KEY (`videos_id`)
REFERENCES `videos` (`id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `vast_campaigns_logs`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `vast_campaigns_logs` (
`id` INT NOT NULL AUTO_INCREMENT,
`users_id` INT NULL,
`type` VARCHAR(45) NOT NULL,
`created` DATETIME NULL,
`modified` DATETIME NULL,
`vast_campaigns_has_videos_id` INT NOT NULL,
`ip` VARCHAR(45) NOT NULL,
PRIMARY KEY (`id`),
INDEX `fk_vast_campains_logs_users1_idx` (`users_id` ASC),
INDEX `fk_vast_campaigns_logs_vast_campaigns_has_videos1_idx` (`vast_campaigns_has_videos_id` ASC),
CONSTRAINT `fk_vast_campains_logs_users1`
FOREIGN KEY (`users_id`)
REFERENCES `users` (`id`)
ON DELETE SET NULL
ON UPDATE CASCADE,
CONSTRAINT `fk_vast_campaigns_logs_vast_campaigns_has_videos1`
FOREIGN KEY (`vast_campaigns_has_videos_id`)
REFERENCES `vast_campaigns_has_videos` (`id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;

29
plugin/AD_Server/log.php Normal file
View file

@ -0,0 +1,29 @@
<?php
require_once '../../videos/configuration.php';
require_once $global['systemRootPath'] . 'objects/user.php';
require_once $global['systemRootPath'] . 'plugin/AD_Server/Objects/VastCampaignsLogs.php';
require_once $global['systemRootPath'] . 'plugin/AD_Server/Objects/VastCampaignsVideos.php';
if(empty($_GET['campaign_has_videos_id'])){
die('campaign_has_videos_id Can not be empty');
}
$users_id = 'null';
if(User::isLogged()){
$users_id = User::getId();
}
$log = new VastCampaignsLogs(0);
$log->setType($_GET['label']);
$log->setUsers_id($users_id);
$log->setVast_campaigns_has_videos_id($_GET['campaign_has_videos_id']);
$log->save();
if($_GET['label'] === 'ClickThrough'){
// get the URL
$campaignVideo = new VastCampaignsVideos($_GET['campaign_has_videos_id']);
$link = $campaignVideo->getLink();
if(filter_var($link, FILTER_VALIDATE_URL) ){
header("Location: ".$link);
}
}

View file

@ -0,0 +1 @@
<a href="plugin/AD_Server/" class="btn btn-primary btn-xs"><i class="fa fa-edit"></i> Configure Campaigns</a>

View file

@ -0,0 +1,403 @@
// Copyright 2011 Google Inc. All Rights Reserved.
(function(){var h,aa="function"==typeof Object.create?Object.create:function(a){var b=function(){};b.prototype=a;return new b},ba;if("function"==typeof Object.setPrototypeOf)ba=Object.setPrototypeOf;else{var ca;a:{var da={Cd:!0},ea={};try{ea.__proto__=da;ca=ea.Cd;break a}catch(a){}ca=!1}ba=ca?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
var fa=ba,ha=function(a,b){a.prototype=aa(b.prototype);a.prototype.constructor=a;if(fa)fa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.ba=b.prototype},ia="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},ka="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?
global:this,la=function(){la=function(){};ka.Symbol||(ka.Symbol=na)},na=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(),pa=function(){la();var a=ka.Symbol.iterator;a||(a=ka.Symbol.iterator=ka.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&ia(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return oa(this)}});pa=function(){}},oa=function(a){var b=0;return qa(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})},qa=function(a){pa();
a={next:a};a[ka.Symbol.iterator]=function(){return this};return a},ra=function(a){pa();var b=a[Symbol.iterator];return b?b.call(a):oa(a)},sa=function(a){if(!(a instanceof Array)){a=ra(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a},ta=function(a,b){if(b){var c=ka;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ia(c,a,{configurable:!0,writable:!0,value:b})}};
ta("Array.prototype.find",function(a){return a?a:function(a,c){a:{var b=this;b instanceof String&&(b=String(b));for(var e=b.length,f=0;f<e;f++){var g=b[f];if(a.call(c,g,f,b)){a=g;break a}}a=void 0}return a}});var ua=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},va="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)ua(d,e)&&(a[e]=d[e])}return a};ta("Object.assign",function(a){return a||va});
ta("Math.trunc",function(a){return a?a:function(a){a=Number(a);if(isNaN(a)||Infinity===a||-Infinity===a||0===a)return a;var b=Math.floor(Math.abs(a));return 0>a?-b:b}});ta("Array.prototype.fill",function(a){return a?a:function(a,c,d){var b=this.length||0;0>c&&(c=Math.max(0,b+c));if(null==d||d>b)d=b;d=Number(d);0>d&&(d=Math.max(0,b+d));for(c=Number(c||0);c<d;c++)this[c]=a;return this}});
ta("WeakMap",function(a){function b(a){ua(a,d)||ia(a,d,{value:{}})}function c(a){var c=Object[a];c&&(Object[a]=function(a){b(a);return c(a)})}if(function(){if(!a||!Object.seal)return!1;try{var b=Object.seal({}),c=Object.seal({}),d=new a([[b,2],[c,3]]);if(2!=d.get(b)||3!=d.get(c))return!1;d["delete"](b);d.set(c,4);return!d.has(b)&&4==d.get(c)}catch(m){return!1}}())return a;var d="$jscomp_hidden_"+Math.random();c("freeze");c("preventExtensions");c("seal");var e=0,f=function(a){this.g=(e+=Math.random()+
1).toString();if(a){la();pa();a=ra(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}};f.prototype.set=function(a,c){b(a);if(!ua(a,d))throw Error("WeakMap key fail: "+a);a[d][this.g]=c;return this};f.prototype.get=function(a){return ua(a,d)?a[d][this.g]:void 0};f.prototype.has=function(a){return ua(a,d)&&ua(a[d],this.g)};f.prototype["delete"]=function(a){return ua(a,d)&&ua(a[d],this.g)?delete a[d][this.g]:!1};return f});
ta("Map",function(a){if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),c=new a(ra([[b,"s"]]));if("s"!=c.get(b)||1!=c.size||c.get({x:4})||c.set({x:4},"t")!=c||2!=c.size)return!1;var d=c.entries(),e=d.next();if(e.done||e.value[0]!=b||"s"!=e.value[1])return!1;e=d.next();return e.done||4!=e.value[0].x||"t"!=e.value[1]||!d.next().done?!1:!0}catch(J){return!1}}())return a;la();pa();var b=new WeakMap,c=function(a){this.h=
{};this.g=f();this.size=0;if(a){a=ra(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}};c.prototype.set=function(a,b){a=0===a?0:a;var c=d(this,a);c.list||(c.list=this.h[c.id]=[]);c.na?c.na.value=b:(c.na={next:this.g,Da:this.g.Da,head:this.g,key:a,value:b},c.list.push(c.na),this.g.Da.next=c.na,this.g.Da=c.na,this.size++);return this};c.prototype["delete"]=function(a){a=d(this,a);return a.na&&a.list?(a.list.splice(a.index,1),a.list.length||delete this.h[a.id],a.na.Da.next=a.na.next,a.na.next.Da=
a.na.Da,a.na.head=null,this.size--,!0):!1};c.prototype.clear=function(){this.h={};this.g=this.g.Da=f();this.size=0};c.prototype.has=function(a){return!!d(this,a).na};c.prototype.get=function(a){return(a=d(this,a).na)&&a.value};c.prototype.entries=function(){return e(this,function(a){return[a.key,a.value]})};c.prototype.keys=function(){return e(this,function(a){return a.key})};c.prototype.values=function(){return e(this,function(a){return a.value})};c.prototype.forEach=function(a,b){for(var c=this.entries(),
d;!(d=c.next()).done;)d=d.value,a.call(b,d[1],d[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(a,c){var d=c&&typeof c;"object"==d||"function"==d?b.has(c)?d=b.get(c):(d=""+ ++g,b.set(c,d)):d="p_"+c;var e=a.h[d];if(e&&ua(a.h,d))for(a=0;a<e.length;a++){var f=e[a];if(c!==c&&f.key!==f.key||c===f.key)return{id:d,list:e,index:a,na:f}}return{id:d,list:e,index:-1,na:void 0}},e=function(a,b){var c=a.g;return qa(function(){if(c){for(;c.head!=a.g;)c=c.Da;for(;c.next!=c.head;)return c=
c.next,{done:!1,value:b(c)};c=null}return{done:!0,value:void 0}})},f=function(){var a={};return a.Da=a.next=a.head=a},g=0;return c});ta("Object.is",function(a){return a?a:function(a,c){return a===c?0!==a||1/a===1/c:a!==a&&c!==c}});ta("Array.prototype.includes",function(a){return a?a:function(a,c){var b=this;b instanceof String&&(b=String(b));var e=b.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=b[c];if(f===a||Object.is(f,a))return!0}return!1}});
ta("Promise",function(a){function b(){this.g=null}function c(a){return a instanceof e?a:new e(function(b){b(a)})}if(a)return a;b.prototype.h=function(a){null==this.g&&(this.g=[],this.o());this.g.push(a)};b.prototype.o=function(){var a=this;this.l(function(){a.w()})};var d=ka.setTimeout;b.prototype.l=function(a){d(a,0)};b.prototype.w=function(){for(;this.g&&this.g.length;){var a=this.g;this.g=[];for(var b=0;b<a.length;++b){var c=a[b];a[b]=null;try{c()}catch(m){this.v(m)}}}this.g=null};b.prototype.v=
function(a){this.l(function(){throw a;})};var e=function(a){this.h=0;this.l=void 0;this.g=[];var b=this.o();try{a(b.resolve,b.reject)}catch(l){b.reject(l)}};e.prototype.o=function(){function a(a){return function(d){c||(c=!0,a.call(b,d))}}var b=this,c=!1;return{resolve:a(this.I),reject:a(this.v)}};e.prototype.I=function(a){if(a===this)this.v(new TypeError("A Promise cannot resolve to itself"));else if(a instanceof e)this.K(a);else{a:switch(typeof a){case "object":var b=null!=a;break a;case "function":b=
!0;break a;default:b=!1}b?this.B(a):this.w(a)}};e.prototype.B=function(a){var b=void 0;try{b=a.then}catch(l){this.v(l);return}"function"==typeof b?this.L(b,a):this.w(a)};e.prototype.v=function(a){this.C(2,a)};e.prototype.w=function(a){this.C(1,a)};e.prototype.C=function(a,b){if(0!=this.h)throw Error("Cannot settle("+a+", "+b+"): Promise already settled in state"+this.h);this.h=a;this.l=b;this.A()};e.prototype.A=function(){if(null!=this.g){for(var a=0;a<this.g.length;++a)f.h(this.g[a]);this.g=null}};
var f=new b;e.prototype.K=function(a){var b=this.o();a.Bb(b.resolve,b.reject)};e.prototype.L=function(a,b){var c=this.o();try{a.call(b,c.resolve,c.reject)}catch(m){c.reject(m)}};e.prototype.then=function(a,b){function c(a,b){return"function"==typeof a?function(b){try{d(a(b))}catch(E){f(E)}}:b}var d,f,g=new e(function(a,b){d=a;f=b});this.Bb(c(a,d),c(b,f));return g};e.prototype["catch"]=function(a){return this.then(void 0,a)};e.prototype.Bb=function(a,b){function c(){switch(d.h){case 1:a(d.l);break;
case 2:b(d.l);break;default:throw Error("Unexpected state: "+d.h);}}var d=this;null==this.g?f.h(c):this.g.push(c)};e.resolve=c;e.reject=function(a){return new e(function(b,c){c(a)})};e.race=function(a){return new e(function(b,d){for(var e=ra(a),f=e.next();!f.done;f=e.next())c(f.value).Bb(b,d)})};e.all=function(a){var b=ra(a),d=b.next();return d.done?c([]):new e(function(a,e){function f(b){return function(c){g[b]=c;k--;0==k&&a(g)}}var g=[],k=0;do g.push(void 0),k++,c(d.value).Bb(f(g.length-1),e),d=
b.next();while(!d.done)})};return e});
var n=this,p=function(a){return void 0!==a},q=function(a){return"string"==typeof a},wa=function(a){return"boolean"==typeof a},r=function(a){return"number"==typeof a},u=function(a,b,c){a=a.split(".");c=c||n;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&p(b)?c[d]=b:c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}},xa=/^[\w+/_-]+[=]{0,2}$/,ya=null,za=function(a,b){a=a.split(".");b=b||n;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==
b)return null;return b},Aa=function(){},Ba=function(a){a.cc=void 0;a.D=function(){return a.cc?a.cc:a.cc=new a}},Ca=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==
c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},Da=function(a){return"array"==Ca(a)},Fa=function(a){var b=Ca(a);return"array"==b||"object"==b&&"number"==typeof a.length},v=function(a){return"function"==Ca(a)},Ga=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},Ha=function(a,b,c){return a.call.apply(a.bind,arguments)},
Ia=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},w=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?w=Ha:w=Ia;return w.apply(null,arguments)},Ja=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=
c.slice();b.push.apply(b,arguments);return a.apply(this,b)}},x=Date.now||function(){return+new Date},z=function(a,b){function c(){}c.prototype=b.prototype;a.ba=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.ki=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};var Ka=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},Ma=function(a){var b=La,c;for(c in b)if(a.call(void 0,b[c],c,b))return!0;return!1},Na=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},Oa=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},Pa=function(a,b){var c=Fa(b),d=c?b:arguments;for(c=c?0:1;c<d.length;c++){if(null==a)return;a=a[d[c]]}return a},Qa=function(a,b){return null!==a&&b in a},Ra=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1},Ta=function(a){var b=Sa,
c;for(c in b)if(a.call(void 0,b[c],c,b))return c},Ua=function(a){for(var b in a)return!1;return!0},Va=function(a,b,c){return null!==a&&b in a?a[b]:c},Wa=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Xa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Ya=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Xa.length;f++)c=Xa[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};window.console&&"function"===typeof window.console.log&&w(window.console.log,window.console);var Za;var $a=function(a,b){if(q(a))return q(b)&&1==b.length?a.indexOf(b,0):-1;for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},A=function(a,b,c){for(var d=a.length,e=q(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},ab=function(a,b){for(var c=a.length,d=[],e=0,f=q(a)?a.split(""):a,g=0;g<c;g++)if(g in f){var k=f[g];b.call(void 0,k,g,a)&&(d[e++]=k)}return d},bb=function(a,b){for(var c=a.length,d=Array(c),e=q(a)?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(void 0,e[f],f,a));return d},
cb=function(a,b,c){var d=c;A(a,function(c,f){d=b.call(void 0,d,c,f,a)});return d},db=function(a,b){for(var c=a.length,d=q(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;return!1},eb=function(a,b){var c=0;A(a,function(a,e,f){b.call(void 0,a,e,f)&&++c},void 0);return c},gb=function(a,b){b=fb(a,b,void 0);return 0>b?null:q(a)?a.charAt(b):a[b]},fb=function(a,b,c){for(var d=a.length,e=q(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1},ib=function(a,
b){for(var c=q(a)?a.split(""):a,d=a.length-1;0<=d;d--)if(d in c&&b.call(void 0,c[d],d,a))return d;return-1},jb=function(a,b){return 0<=$a(a,b)},kb=function(a,b){b=$a(a,b);var c;(c=0<=b)&&Array.prototype.splice.call(a,b,1);return c},lb=function(a){return Array.prototype.concat.apply([],arguments)},nb=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]},pb=function(a,b){a.sort(b||ob)},ob=function(a,b){return a>b?1:a<b?-1:0},qb=function(a){for(var b=[],c=0;c<
a;c++)b[c]="";return b};var rb=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c},B=function(a){return/^[\s\xa0]*$/.test(a)},sb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},tb=function(a){return decodeURIComponent(a.replace(/\+/g," "))},Bb=function(a){if(!ub.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(vb,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(wb,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(xb,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(yb,
"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(zb,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ab,"&#0;"));return a},vb=/&/g,wb=/</g,xb=/>/g,yb=/"/g,zb=/'/g,Ab=/\x00/g,ub=/[\x00&<>"']/,Cb=function(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a},Db=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())},Eb=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},Fb=function(a,b){a=p(void 0)?a.toFixed(void 0):String(a);var c=a.indexOf(".");-1==
c&&(c=a.length);return Eb("0",Math.max(0,b-c))+a},Gb=function(a){return null==a?"":String(a)},Ib=function(a,b){var c=0;a=sb(String(a)).split(".");b=sb(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",g=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];if(0==f[0].length&&0==g[0].length)break;c=Hb(0==f[1].length?0:parseInt(f[1],10),0==g[1].length?0:parseInt(g[1],10))||Hb(0==f[2].length,0==g[2].length)||Hb(f[2],
g[2]);f=f[3];g=g[3]}while(0==c)}return c},Hb=function(a,b){return a<b?-1:a>b?1:0},Jb=2147483648*Math.random()|0,Kb=function(a){var b=Number(a);return 0==b&&B(a)?NaN:b},Lb=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})},Mb=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()},Nb=function(a){var b=q(void 0)?"undefined".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"):"\\s";return a.replace(new RegExp("(^"+(b?"|["+
b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};var Ob;a:{var Pb=n.navigator;if(Pb){var Qb=Pb.userAgent;if(Qb){Ob=Qb;break a}}Ob=""}var C=function(a){return-1!=Ob.indexOf(a)},Rb=function(a){for(var b=/(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g,c=[],d;d=b.exec(a);)c.push([d[1],d[2],d[3]||void 0]);return c};var Sb=function(){return C("Trident")||C("MSIE")},Ub=function(){return C("Safari")&&!(Tb()||C("Coast")||C("Opera")||C("Edge")||C("Silk")||C("Android"))},Tb=function(){return(C("Chrome")||C("CriOS"))&&!C("Edge")},Wb=function(){function a(a){a=gb(a,d);return c[a]||""}var b=Ob;if(Sb())return Vb(b);b=Rb(b);var c={};A(b,function(a){c[a[0]]=a[1]});var d=Ja(Qa,c);return C("Opera")?a(["Version","Opera"]):C("Edge")?a(["Edge"]):Tb()?a(["Chrome","CriOS"]):(b=b[2])&&b[1]||""},Vb=function(a){var b=/rv: *([\d\.]*)/.exec(a);
if(b&&b[1])return b[1];b="";var c=/MSIE +([\d\.]+)/.exec(a);if(c&&c[1])if(a=/Trident\/(\d.\d)/.exec(a),"7.0"==c[1])if(a&&a[1])switch(a[1]){case "4.0":b="8.0";break;case "5.0":b="9.0";break;case "6.0":b="10.0";break;case "7.0":b="11.0"}else b="7.0";else b=c[1];return b};var Xb=function(){return C("iPhone")&&!C("iPod")&&!C("iPad")};var Yb=function(a){Yb[" "](a);return a};Yb[" "]=Aa;var Zb=function(a,b){try{return Yb(a[b]),!0}catch(c){}return!1},ac=function(a,b){var c=$b;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var bc=C("Opera"),cc=Sb(),dc=C("Edge"),ec=C("Gecko")&&!(Db(Ob,"WebKit")&&!C("Edge"))&&!(C("Trident")||C("MSIE"))&&!C("Edge"),fc=Db(Ob,"WebKit")&&!C("Edge"),gc=C("Android"),hc=Xb(),ic=C("iPad"),jc=function(){var a=n.document;return a?a.documentMode:void 0},kc;
a:{var lc="",mc=function(){var a=Ob;if(ec)return/rv:([^\);]+)(\)|;)/.exec(a);if(dc)return/Edge\/([\d\.]+)/.exec(a);if(cc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(fc)return/WebKit\/(\S+)/.exec(a);if(bc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();mc&&(lc=mc?mc[1]:"");if(cc){var nc=jc();if(null!=nc&&nc>parseFloat(lc)){kc=String(nc);break a}}kc=lc}var oc=kc,$b={},pc=function(a){return ac(a,function(){return 0<=Ib(oc,a)})},qc;var rc=n.document;
qc=rc&&cc?jc()||("CSS1Compat"==rc.compatMode?parseInt(oc,10):5):void 0;var sc=!cc||9<=Number(qc),tc=cc||bc||fc;var vc=function(){this.g="";this.h=uc};vc.prototype.Ta=!0;vc.prototype.Ia=function(){return this.g};vc.prototype.toString=function(){return"Const{"+this.g+"}"};var wc=function(a){return a instanceof vc&&a.constructor===vc&&a.h===uc?a.g:"type_error:Const"},uc={},xc=function(a){var b=new vc;b.g=a;return b};xc("");var zc=function(){this.g="";this.h=yc};zc.prototype.Ta=!0;zc.prototype.Ia=function(){return this.g};zc.prototype.bc=!0;zc.prototype.Tb=function(){return 1};var Ac=function(a){if(a instanceof zc&&a.constructor===zc&&a.h===yc)return a.g;Ca(a);return"type_error:TrustedResourceUrl"},yc={},Bc=function(a){var b=new zc;b.g=a;return b};var Dc=function(){this.g="";this.h=Cc};Dc.prototype.Ta=!0;Dc.prototype.Ia=function(){return this.g};Dc.prototype.bc=!0;Dc.prototype.Tb=function(){return 1};var Ec=function(a){if(a instanceof Dc&&a.constructor===Dc&&a.h===Cc)return a.g;Ca(a);return"type_error:SafeUrl"},Fc=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Cc={},Gc=function(a){var b=new Dc;b.g=a;return b};Gc("about:blank");var Ic=function(){this.g="";this.l=Hc;this.h=null};Ic.prototype.bc=!0;Ic.prototype.Tb=function(){return this.h};Ic.prototype.Ta=!0;Ic.prototype.Ia=function(){return this.g};var Hc={},Jc=function(a,b){var c=new Ic;c.g=a;c.h=b;return c};Jc("<!DOCTYPE html>",0);Jc("",0);Jc("<br>",0);var Kc=function(a,b){a.src=Ac(b);if(null===ya){a:{if((b=n.document.querySelector("script[nonce]"))&&(b=b.nonce||b.getAttribute("nonce"))&&xa.test(b))break a;b=null}ya=b||""}(b=ya)&&a.setAttribute("nonce",b)};var Lc=function(a,b){this.x=p(a)?a:0;this.y=p(b)?b:0};h=Lc.prototype;h.clone=function(){return new Lc(this.x,this.y)};h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};h.scale=function(a,b){b=r(b)?b:a;this.x*=a;this.y*=b;return this};var D=function(a,b){this.width=a;this.height=b},Mc=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};h=D.prototype;h.clone=function(){return new D(this.width,this.height)};h.za=function(){return this.width*this.height};h.aspectRatio=function(){return this.width/this.height};h.isEmpty=function(){return!this.za()};h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};h.scale=function(a,b){b=r(b)?b:a;this.width*=a;this.height*=b;return this};var Pc=function(a){return a?new Nc(Oc(a)):Za||(Za=new Nc)},Qc=function(){var a=document;return a.querySelectorAll&&a.querySelector?a.querySelectorAll("SCRIPT"):a.getElementsByTagName("SCRIPT")},Sc=function(a,b){Ka(b,function(b,d){b&&b.Ta&&(b=b.Ia());"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:Rc.hasOwnProperty(d)?a.setAttribute(Rc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})},Rc={cellpadding:"cellPadding",cellspacing:"cellSpacing",
colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},Tc=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new D(a.clientWidth,a.clientHeight)},Uc=function(a){var b=a.scrollingElement?a.scrollingElement:fc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement;a=a.parentWindow||a.defaultView;return cc&&pc("10")&&a.pageYOffset!=
b.scrollTop?new Lc(b.scrollLeft,b.scrollTop):new Lc(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)},F=function(a){return a?a.parentWindow||a.defaultView:window},Wc=function(a,b,c){var d=arguments,e=document,f=String(d[0]),g=d[1];if(!sc&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',Bb(g.name),'"');if(g.type){f.push(' type="',Bb(g.type),'"');var k={};Ya(k,g);delete k.type;g=k}f.push(">");f=f.join("")}f=e.createElement(f);g&&(q(g)?f.className=g:Da(g)?f.className=g.join(" "):Sc(f,
g));2<d.length&&Vc(e,f,d);return f},Vc=function(a,b,c){function d(c){c&&b.appendChild(q(c)?a.createTextNode(c):c)}for(var e=2;e<c.length;e++){var f=c[e];!Fa(f)||Ga(f)&&0<f.nodeType?d(f):A(Xc(f)?nb(f):f,d)}},Yc=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},Zc=function(a){var b;if(tc&&!(cc&&pc("9")&&!pc("10")&&n.SVGElement&&a instanceof n.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return Ga(b)&&1==b.nodeType?b:null},$c=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==
b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a},Oc=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document},ad=function(a){try{return a.contentWindow||(a.contentDocument?F(a.contentDocument):null)}catch(b){}return null},Xc=function(a){if(a&&"number"==typeof a.length){if(Ga(a))return"function"==typeof a.item||"string"==typeof a.item;if(v(a))return"function"==typeof a.item}return!1},bd=
function(a,b){a&&(a=a.parentNode);for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null},Nc=function(a){this.g=a||n.document||document};Nc.prototype.createElement=function(a){return this.g.createElement(String(a))};Nc.prototype.contains=$c;var cd=function(a){for(var b=[],c=a=F(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);else break;return b};var dd=!cc||9<=Number(qc),ed=cc&&!pc("9"),fd=function(){if(!n.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});n.addEventListener("test",Aa,b);n.removeEventListener("test",Aa,b);return a}();var gd=function(){this.L=this.L;this.K=this.K};gd.prototype.L=!1;gd.prototype.Ib=function(){return this.L};gd.prototype.V=function(){this.L||(this.L=!0,this.P())};var hd=function(a,b){a.L?p(void 0)?b.call(void 0):b():(a.K||(a.K=[]),a.K.push(p(void 0)?w(b,void 0):b))};gd.prototype.P=function(){if(this.K)for(;this.K.length;)this.K.shift()()};var id=function(a){a&&"function"==typeof a.V&&a.V()};var jd=function(a,b){this.type=a;this.g=this.target=b;this.hd=!0};jd.prototype.l=function(){this.hd=!1};var ld=function(a,b){jd.call(this,a?a.type:"");this.relatedTarget=this.g=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.pointerId=0;this.pointerType="";this.h=null;if(a){var c=this.type=a.type,d=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.g=b;(b=a.relatedTarget)?ec&&(Zb(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);
this.relatedTarget=b;null===d?(this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0):(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0);this.button=a.button;this.key=a.key||"";this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=
q(a.pointerType)?a.pointerType:kd[a.pointerType]||"";this.h=a;a.defaultPrevented&&this.l()}};z(ld,jd);var kd={2:"touch",3:"pen",4:"mouse"};ld.prototype.l=function(){ld.ba.l.call(this);var a=this.h;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,ed)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var md="closure_listenable_"+(1E6*Math.random()|0),nd=function(a){return!(!a||!a[md])},od=0;var pd=function(a,b,c,d,e){this.listener=a;this.g=null;this.src=b;this.type=c;this.capture=!!d;this.Eb=e;this.key=++od;this.jb=this.Ab=!1},qd=function(a){a.jb=!0;a.listener=null;a.g=null;a.src=null;a.Eb=null};var rd=function(a){this.src=a;this.g={};this.h=0};rd.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.g[f];a||(a=this.g[f]=[],this.h++);var g=sd(a,b,d,e);-1<g?(b=a[g],c||(b.Ab=!1)):(b=new pd(b,this.src,f,!!d,e),b.Ab=c,a.push(b));return b};
var td=function(a,b){var c=b.type;c in a.g&&kb(a.g[c],b)&&(qd(b),0==a.g[c].length&&(delete a.g[c],a.h--))},ud=function(a,b,c,d,e){a=a.g[b.toString()];b=-1;a&&(b=sd(a,c,d,e));return-1<b?a[b]:null},sd=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.jb&&f.listener==b&&f.capture==!!c&&f.Eb==d)return e}return-1};var vd="closure_lm_"+(1E6*Math.random()|0),wd={},xd=0,zd=function(a,b,c,d,e){if(d&&d.once)return yd(a,b,c,d,e);if(Da(b)){for(var f=0;f<b.length;f++)zd(a,b[f],c,d,e);return null}c=Ad(c);return nd(a)?a.h(b,c,Ga(d)?!!d.capture:!!d,e):Bd(a,b,c,!1,d,e)},Bd=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=Ga(e)?!!e.capture:!!e,k=Cd(a);k||(a[vd]=k=new rd(a));c=k.add(b,c,d,g,f);if(c.g)return c;d=Dd();c.g=d;d.src=a;d.listener=c;if(a.addEventListener)fd||(e=g),void 0===e&&(e=!1),a.addEventListener(b.toString(),
d,e);else if(a.attachEvent)a.attachEvent(Ed(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");xd++;return c},Dd=function(){var a=Fd,b=dd?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b},yd=function(a,b,c,d,e){if(Da(b)){for(var f=0;f<b.length;f++)yd(a,b[f],c,d,e);return null}c=Ad(c);return nd(a)?a.C.add(String(b),c,!0,Ga(d)?!!d.capture:!!d,e):
Bd(a,b,c,!0,d,e)},Gd=function(a,b,c,d,e){if(Da(b))for(var f=0;f<b.length;f++)Gd(a,b[f],c,d,e);else d=Ga(d)?!!d.capture:!!d,c=Ad(c),nd(a)?a.I(b,c,d,e):a&&(a=Cd(a))&&(b=ud(a,b,c,d,e))&&Hd(b)},Hd=function(a){if(!r(a)&&a&&!a.jb){var b=a.src;if(nd(b))td(b.C,a);else{var c=a.type,d=a.g;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Ed(c),d):b.addListener&&b.removeListener&&b.removeListener(d);xd--;(c=Cd(b))?(td(c,a),0==c.h&&(c.src=null,b[vd]=null)):qd(a)}}},Ed=function(a){return a in
wd?wd[a]:wd[a]="on"+a},Jd=function(a,b,c,d){var e=!0;if(a=Cd(a))if(b=a.g[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.jb&&(f=Id(f,d),e=e&&!1!==f)}return e},Id=function(a,b){var c=a.listener,d=a.Eb||a.src;a.Ab&&Hd(a);return c.call(d,b)},Fd=function(a,b){if(a.jb)return!0;if(!dd){var c=b||za("window.event");b=new ld(c,this);var d=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var e=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(g){e=!0}if(e||void 0==c.returnValue)c.returnValue=
!0}c=[];for(e=b.g;e;e=e.parentNode)c.push(e);a=a.type;for(e=c.length-1;0<=e;e--){b.g=c[e];var f=Jd(c[e],a,!0,b);d=d&&f}for(e=0;e<c.length;e++)b.g=c[e],f=Jd(c[e],a,!1,b),d=d&&f}return d}return Id(a,new ld(b,this))},Cd=function(a){a=a[vd];return a instanceof rd?a:null},Kd="__closure_events_fn_"+(1E9*Math.random()>>>0),Ad=function(a){if(v(a))return a;a[Kd]||(a[Kd]=function(b){return a.handleEvent(b)});return a[Kd]};var G=function(){gd.call(this);this.C=new rd(this);this.Sb=this;this.Fa=null};z(G,gd);G.prototype[md]=!0;G.prototype.addEventListener=function(a,b,c,d){zd(this,a,b,c,d)};G.prototype.removeEventListener=function(a,b,c,d){Gd(this,a,b,c,d)};
var H=function(a,b){var c,d=a.Fa;if(d)for(c=[];d;d=d.Fa)c.push(d);a=a.Sb;d=b.type||b;if(q(b))b=new jd(b,a);else if(b instanceof jd)b.target=b.target||a;else{var e=b;b=new jd(d,a);Ya(b,e)}e=!0;if(c)for(var f=c.length-1;0<=f;f--){var g=b.g=c[f];e=Ld(g,d,!0,b)&&e}g=b.g=a;e=Ld(g,d,!0,b)&&e;e=Ld(g,d,!1,b)&&e;if(c)for(f=0;f<c.length;f++)g=b.g=c[f],e=Ld(g,d,!1,b)&&e};
G.prototype.P=function(){G.ba.P.call(this);if(this.C){var a=this.C,b=0,c;for(c in a.g){for(var d=a.g[c],e=0;e<d.length;e++)++b,qd(d[e]);delete a.g[c];a.h--}}this.Fa=null};G.prototype.h=function(a,b,c,d){return this.C.add(String(a),b,!1,c,d)};G.prototype.I=function(a,b,c,d){var e=this.C;a=String(a).toString();if(a in e.g){var f=e.g[a];b=sd(f,b,c,d);-1<b&&(qd(f[b]),Array.prototype.splice.call(f,b,1),0==f.length&&(delete e.g[a],e.h--))}};
var Ld=function(a,b,c,d){b=a.C.g[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.jb&&g.capture==c){var k=g.listener,l=g.Eb||g.src;g.Ab&&td(a.C,g);e=!1!==k.call(l,d)&&e}}return e&&0!=d.hd};var Md=function(a){return function(){return a}},Nd=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};var Od=function(a,b){G.call(this);this.v=a||1;this.l=b||n;this.w=w(this.B,this);this.A=x()};z(Od,G);Od.prototype.o=!1;Od.prototype.g=null;Od.prototype.B=function(){if(this.o){var a=x()-this.A;0<a&&a<.8*this.v?this.g=this.l.setTimeout(this.w,this.v-a):(this.g&&(this.l.clearTimeout(this.g),this.g=null),H(this,"tick"),this.o&&(Qd(this),this.start()))}};Od.prototype.start=function(){this.o=!0;this.g||(this.g=this.l.setTimeout(this.w,this.v),this.A=x())};
var Qd=function(a){a.o=!1;a.g&&(a.l.clearTimeout(a.g),a.g=null)};Od.prototype.P=function(){Od.ba.P.call(this);Qd(this);delete this.l};var Rd=function(a,b,c){if(v(a))c&&(a=w(a,c));else if(a&&"function"==typeof a.handleEvent)a=w(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:n.setTimeout(a,b||0)};var Sd=function(){return Math.round(x()/1E3)},Td=function(a){var b=window.performance&&window.performance.timing&&window.performance.timing.domLoading&&0<window.performance.timing.domLoading?Math.round(window.performance.timing.domLoading/1E3):null;return null!=b?b:null!=a?a:Sd()};var Ud=function(a){return bb(a,function(a){a=a.toString(16);return 1<a.length?a:"0"+a}).join("")};var Vd=C("Firefox"),Wd=Xb()||C("iPod"),Xd=C("iPad"),Yd=C("Android")&&!(Tb()||C("Firefox")||C("Opera")||C("Silk")),Zd=Tb(),$d=Ub()&&!(Xb()||C("iPad")||C("iPod"));var ae=null,be=null;var ce=function(){this.h=-1};var fe=function(a){var b=[];de(new ee,a,b);return b.join("")},ee=function(){},de=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Da(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),de(a,d[f],c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");e="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],"function"!=typeof f&&(c.push(e),ge(d,c),c.push(":"),de(a,f,c),e=","));c.push("}");
return}}switch(typeof b){case "string":ge(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}},he={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},ie=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,ge=function(a,b){b.push('"',a.replace(ie,function(a){var b=he[a];
b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),he[a]=b);return b}),'"')};var je=function(a){this.g=a||{cookie:""}};h=je.prototype;h.set=function(a,b,c,d,e,f){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');p(c)||(c=-1);e=e?";domain="+e:"";d=d?";path="+d:"";f=f?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(x()+1E3*c)).toUTCString();this.g.cookie=a+"="+b+e+d+c+f};
h.get=function(a,b){for(var c=a+"=",d=(this.g.cookie||"").split(";"),e=0,f;e<d.length;e++){f=sb(d[e]);if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};h.Pa=function(){return ke(this).keys};h.ra=function(){return ke(this).values};h.isEmpty=function(){return!this.g.cookie};h.Ha=function(){return this.g.cookie?(this.g.cookie||"").split(";").length:0};h.clear=function(){for(var a=ke(this).keys,b=a.length-1;0<=b;b--){var c=a[b];this.get(c);this.set(c,"",0,void 0,void 0)}};
var ke=function(a){a=(a.g.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=sb(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}},le=new je("undefined"==typeof document?null:document);le.h=3950;var me=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,ne=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?tb(e):"")}}},oe=/#|$/,pe=function(a,b){var c=a.search(oe);a:{var d=0;for(var e=b.length;0<=(d=a.indexOf(b,d))&&d<c;){var f=a.charCodeAt(d-1);if(38==f||63==f)if(f=a.charCodeAt(d+e),!f||61==f||38==f||35==f)break a;
d+=e+1}d=-1}if(0>d)return null;e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return tb(a.substr(d,e-d))};var qe=function(){this.g={};return this};qe.prototype.set=function(a,b){this.g[a]=b};var re=function(a,b){a.g.eb=Va(a.g,"eb",0)|b};qe.prototype.get=function(a){return Va(this.g,a,null)};var I=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};I.prototype.h=function(){return this.right-this.left};I.prototype.g=function(){return this.bottom-this.top};I.prototype.clone=function(){return new I(this.top,this.right,this.bottom,this.left)};I.prototype.contains=function(a){return this&&a?a instanceof I?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
var se=function(a,b){return a==b?!0:a&&b?a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left:!1};I.prototype.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};I.prototype.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
I.prototype.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};var te=function(a,b,c){b instanceof Lc?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,r(c)&&(a.top+=c,a.bottom+=c));return a};I.prototype.scale=function(a,b){b=r(b)?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};var ue=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};ue.prototype.clone=function(){return new ue(this.left,this.top,this.width,this.height)};var ve=function(a){return new I(a.top,a.left+a.width,a.top+a.height,a.left)};h=ue.prototype;h.contains=function(a){return a instanceof Lc?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
h.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};h.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};h.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
h.scale=function(a,b){b=r(b)?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var we=null,xe=function(){this.g={};this.h=0},ye=function(a,b){this.w=a;this.o=!0;this.h=b};ye.prototype.g=function(){return this.h};ye.prototype.l=function(){return String(this.h)};var ze=function(a,b){ye.call(this,String(a),b);this.v=a;this.h=!!b};z(ze,ye);ze.prototype.l=function(){return this.h?"1":"0"};var Ae=function(a,b){ye.call(this,a,b)};z(Ae,ye);
Ae.prototype.l=function(){return this.h?Math.round(this.h.top)+"."+Math.round(this.h.left)+"."+(Math.round(this.h.top)+Math.round(this.h.height))+"."+(Math.round(this.h.left)+Math.round(this.h.width)):""};var Be=function(a){if(a.match(/^-?[0-9]+\.-?[0-9]+\.-?[0-9]+\.-?[0-9]+$/)){a=a.split(".");var b=Number(a[0]),c=Number(a[1]);return new Ae("",new ue(c,b,Number(a[3])-c,Number(a[2])-b))}return new Ae("",new ue(0,0,0,0))},Ce=function(){we||(we=new xe);return we},De=function(a,b){a.g[b.w]=b};var Fe=function(a,b){if(q(b))(b=Ee(a,b))&&(a.style[b]=void 0);else for(var c in b){var d=a,e=b[c],f=Ee(d,c);f&&(d.style[f]=e)}},Ge={},Ee=function(a,b){var c=Ge[b];if(!c){var d=Lb(b);c=d;void 0===a.style[d]&&(d=(fc?"Webkit":ec?"Moz":cc?"ms":bc?"O":null)+Nb(d),void 0!==a.style[d]&&(c=d));Ge[b]=c}return c},He=function(a,b){var c=a.style[Lb(b)];return"undefined"!==typeof c?c:a.style[Ee(a,b)]||""},Ie=function(a){try{var b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}cc&&a.ownerDocument.body&&
(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b},Je=function(a){var b=Oc(a),c=new Lc(0,0);var d=b?Oc(b):document;d=!cc||9<=Number(qc)||"CSS1Compat"==Pc(d).g.compatMode?d.documentElement:d.body;if(a==d)return c;a=Ie(a);b=Uc(Pc(b).g);c.x=a.left+b.x;c.y=a.top+b.y;return c},Ke=function(a,b){var c=new Lc(0,0),d=F(Oc(a));if(!Zb(d,"parent"))return c;do{if(d==b)var e=Je(a);else e=Ie(a),e=new Lc(e.left,e.top);c.x+=e.x;
c.y+=e.y}while(d&&d!=b&&d!=d.parent&&(a=d.frameElement)&&(d=d.parent));return c},Le=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=fc&&!b&&!c;return p(b)&&!d||!a.getBoundingClientRect?new D(b,c):(a=Ie(a),new D(a.right-a.left,a.bottom-a.top))};var Me=function(a){var b=new ue(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new ue(0,0,0,0);if(!a||0==a.length)return c;for(var d=0;d<a.length;d++){a:{var e=b;var f=a[d],g=Math.max(e.left,f.left),k=Math.min(e.left+e.width,f.left+f.width);if(g<=k){var l=Math.max(e.top,f.top);f=Math.min(e.top+e.height,f.top+f.height);if(l<=f){e.left=g;e.top=l;e.width=k-g;e.height=f-l;e=!0;break a}}e=!1}if(!e)return c}return b},Ne=function(a,b){var c=a.getBoundingClientRect();a=Ke(a,
b);return new ue(Math.round(a.x),Math.round(a.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))},Oe=function(a,b,c){if(b&&c){a:{var d=Math.max(b.left,c.left);var e=Math.min(b.left+b.width,c.left+c.width);if(d<=e){var f=Math.max(b.top,c.top),g=Math.min(b.top+b.height,c.top+c.height);if(f<=g){d=new ue(d,f,e-d,g-f);break a}}d=null}e=d?d.height*d.width:0;f=d?b.height*b.width:0;d=d&&f?Math.round(e/f*100):0;De(a,new ye("vp",d));d&&0<d?(e=ve(b),f=ve(c),e=e.top>=f.top&&e.top<f.bottom):e=!1;De(a,new ze(512,
e));d&&0<d?(e=ve(b),f=ve(c),e=e.bottom<=f.bottom&&e.bottom>f.top):e=!1;De(a,new ze(1024,e));d&&0<d?(e=ve(b),f=ve(c),e=e.left>=f.left&&e.left<f.right):e=!1;De(a,new ze(2048,e));d&&0<d?(b=ve(b),c=ve(c),c=b.right<=c.right&&b.right>c.left):c=!1;De(a,new ze(4096,c))}};var Pe=function(a,b){var c=0;Pa(F(),"ima","video","client","tagged")&&(c=1);var d=null;a&&(d=a());if(d){a=Ce();a.g={};var e=new ze(32,!0);e.o=!1;De(a,e);e=F().document;e=e.visibilityState||e.webkitVisibilityState||e.mozVisibilityState||e.msVisibilityState||"";De(a,new ze(64,"hidden"!=e.toLowerCase().substring(e.length-6)?!0:!1));try{var f=F().top;try{var g=!!f.location.href||""===f.location.href}catch(y){g=!1}if(g){var k=cd(d);var l=k&&0!=k.length?"1":"0"}else l="2"}catch(y){l="2"}De(a,new ze(256,
"2"==l));De(a,new ze(128,"1"==l));k=g=F().top;"2"==l&&(k=F());f=Ne(d,k);De(a,new Ae("er",f));try{var m=k.document&&!k.document.body?null:Tc(k||window)}catch(y){m=null}m?(k=Uc(Pc(k.document).g),De(a,new ze(16384,!!k)),m=k?new ue(k.x,k.y,m.width,m.height):null):m=null;De(a,new Ae("vi",m));if(m&&"1"==l){l=cd(d);d=[];for(k=0;k<l.length;k++)(e=Ne(l[k],g))&&d.push(e);d.push(m);m=Me(d)}Oe(a,f,m);a.h&&(l=Sd()-a.h,De(a,new ye("ts",l)));a.h=Sd()}else a=Ce(),a.g={},a.h=Sd(),De(a,new ze(32,!1));this.l=a;this.g=
new qe;this.g.set("ve",4);c&&re(this.g,1);Pa(F(),"ima","video","client","crossdomainTag")&&re(this.g,4);Pa(F(),"ima","video","client","sdkTag")&&re(this.g,8);Pa(F(),"ima","video","client","jsTag")&&re(this.g,2);b&&Va(b,"fullscreen",!1)&&re(this.g,16);this.h=b=null;if(c&&(c=Pa(F(),"ima","video","client"),c.getEData)){this.h=c.getEData();if(c=Pa(F(),"ima","video","client","getLastSnapshotFromTop"))if(a=c())this.h.extendWithDataFromTopIframe(a.tagstamp,a.playstamp,a.lactstamp),c=this.l,b=a.er,a=a.vi,
b&&a&&(b=Be(b).g(),a=Be(a).g(),l=null,Va(c.g,"er",null)&&(l=Va(c.g,"er",null).g(),l.top+=b.top,l.left+=b.left,De(c,new Ae("er",l))),Va(c.g,"vi",null)&&(m=Va(c.g,"vi",null).g(),m.top+=b.top,m.left+=b.left,d=[],d.push(m),d.push(b),d.push(a),b=Me(d),Oe(c,l,b),De(c,new Ae("vi",a))));a:{if(this.h){if(this.h.getTagLoadTimestamp){b=this.h.getTagLoadTimestamp();break a}if(this.h.getTimeSinceTagLoadSeconds){b=this.h.getTimeSinceTagLoadSeconds();break a}}b=null}}this.g.set("td",Sd()-Td(b))};var Qe=new Od(200),Re=function(a,b){try{var c=new Pe(a,b);a=[];var d=Number(c.g.get("eb")),e=c.g.g;"eb"in e&&delete e.eb;var f,g=c.g;e=[];for(var k in g.g)e.push(k+g.g[k]);(f=e.join("_"))&&a.push(f);if(c.h){var l=c.h.serialize();l&&a.push(l)}var m,y=c.l;f=d;g=[];f||(f=0);for(var J in y.g){var U=y.g[J];if(U instanceof ze)U.g()&&(f|=U.v);else{var Ea,t=y.g[J];(Ea=t.o?t.l():"")&&g.push(J+Ea)}}g.push("eb"+String(f));(m=g.join("_"))&&a.push(m);c.g.set("eb",d);return a.join("_")}catch(E){return"tle;"+Cb(E.name,
12)+";"+Cb(E.message,40)}},Se=function(a,b){zd(Qe,"tick",function(){var c=Re(b);a(c)});Qe.start();H(Qe,"tick")};var Te=function(){},Ue="function"==typeof Uint8Array,Ve=[],We=function(a,b){if(b<a.l){b+=a.v;var c=a.g[b];return c===Ve?a.g[b]=[]:c}if(a.h)return c=a.h[b],c===Ve?a.h[b]=[]:c},Xe=function(a,b){if(b<a.l){b+=a.v;var c=a.g[b];return c===Ve?a.g[b]=[]:c}c=a.h[b];return c===Ve?a.h[b]=[]:c},Ze=function(a){if(a.o)for(var b in a.o){var c=a.o[b];if(Da(c))for(var d=0;d<c.length;d++)c[d]&&Ye(c[d]);else c&&Ye(c)}},Ye=function(a){Ze(a);return a.g};Te.prototype.toString=function(){Ze(this);return this.g.toString()};
Te.prototype.clone=function(){return new this.constructor($e(Ye(this)))};var $e=function(a){if(Da(a)){for(var b=Array(a.length),c=0;c<a.length;c++){var d=a[c];null!=d&&(b[c]="object"==typeof d?$e(d):d)}return b}if(Ue&&a instanceof Uint8Array)return new Uint8Array(a);b={};for(c in a)d=a[c],null!=d&&(b[c]="object"==typeof d?$e(d):d);return b};var af=document,K=window;var cf=function(a){var b=a;a=bf;this.o=null;b||(b=[]);this.v=-1;this.g=b;a:{if(b=this.g.length){--b;var c=this.g[b];if(c&&"object"==typeof c&&!Da(c)&&!(Ue&&c instanceof Uint8Array)){this.l=b- -1;this.h=c;break a}}this.l=Number.MAX_VALUE}if(a)for(b=0;b<a.length;b++)if(c=a[b],c<this.l)c+=-1,this.g[c]=this.g[c]||Ve;else{var d=this.l+-1;this.g[d]||(this.h=this.g[d]={});this.h[c]=this.h[c]||Ve}};z(cf,Te);var bf=[1,2,3,4];var df=function(){this.g=new je(document)};df.prototype.get=function(a){a=this.g.get(a);return void 0===a?null:a};df.prototype.set=function(a,b){this.g.set(a,b,0,"","")};var ef=function(){var a=new df;try{var b=a.get("DATA_USE_CONSENT")}catch(c){}if(!b)return null;try{return new cf(b?JSON.parse(b):null)}catch(c){return null}};var gf=function(a){ff();return Bc(a)},ff=Aa;var hf=/^[\w+/_-]+[=]{0,2}$/,jf=function(){var a=n.document.querySelector("script[nonce]");if(a&&(a=a.nonce||a.getAttribute("nonce"))&&hf.test(a))return a};var kf=function(a){try{return!!a&&null!=a.location.href&&Zb(a,"foo")}catch(b){return!1}},lf=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)},nf=function(){var a=[];lf(mf,function(b){a.push(b)});return a},of=/https?:\/\/[^\/]+/,pf=function(a){return(a=of.exec(a))&&a[0]||""},qf=function(){var a=n;try{for(var b=null;b!=a;b=a,a=a.parent)switch(a.location.protocol){case "https:":return!0;case "file:":return!1;case "http:":return!1}}catch(c){}return!0},
sf=function(){var a=rf;if(!a)return"";var b=/.*[&#?]google_debug(=[^&]*)?(&.*)?$/;try{var c=b.exec(decodeURIComponent(a));if(c)return c[1]&&1<c[1].length?c[1].substring(1):"true"}catch(d){}return""},tf=function(a,b){try{return!(!a.frames||!a.frames[b])}catch(c){return!1}};var uf=function(a){var b=ef();if(!b)return 0;if(We(b,7))return 4;if(6048E5<x()-We(b,5))return 0;if(a){if(jb(Xe(b,3),a))return 2;if(jb(Xe(b,4),a))return 3}return 1};var vf=Nd(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});n.addEventListener("test",null,b)}catch(c){}return a});function wf(a){return a?a.passive&&vf()?a:a.capture||!1:a}var xf=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,wf(d)):a.attachEvent&&a.attachEvent("on"+b,c)},yf=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,wf(void 0)):a.detachEvent&&a.detachEvent("on"+b,c)};var zf=function(a){a=void 0===a?n:a;var b=a.context;if(!b)try{b=a.parent.context}catch(c){}try{if(b&&b.pageViewId&&b.canonicalUrl)return b}catch(c){}return null};var Af=function(a,b,c){var d=!1,e=!1;e=void 0===e?!1:e;d=void 0===d?!1:d;a.google_image_requests||(a.google_image_requests=[]);var f=a.document.createElement("img");if(c||d){var g=function(b){c&&c(b);d&&kb(a.google_image_requests,f);yf(f,"load",g);yf(f,"error",g)};xf(f,"load",g);xf(f,"error",g)}e&&(f.referrerPolicy="no-referrer");f.src=b;a.google_image_requests.push(f)};var Bf=!!window.google_async_iframe_id,Cf=Bf&&window.parent||window,Df=function(){if(Bf&&!kf(Cf)){var a="."+af.domain;try{for(;2<a.split(".").length&&!kf(Cf);)af.domain=a=a.substr(a.indexOf(".")+1),Cf=window.parent}catch(b){}kf(Cf)||(Cf=window)}return Cf};var Ef=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new D(b.innerWidth,b.innerHeight)).round():Tc(b||window).round()}catch(d){return new D(-12245933,-12245933)}};var Ff={NONE:0,wg:1},Gf={ai:1};var Hf=function(){this.g=0;this.h=!1;this.l=-1;this.La=!1},If=function(a){return a.La?.3<=a.g:.5<=a.g};var Jf={qd:0,Cg:1},Kf={lh:0,ih:1,jh:2},Lf={370204032:0,370204033:1},Mf={370204034:0,370204035:1},Nf={370204028:0,370204029:1},Of={953563515:0,953563516:1,953563517:2},Pf={370204018:0,370204019:1,370204026:0,370204027:1},Qf={370204024:0,370204025:1},Rf={668123008:0,668123009:1},Sf={668123028:0,668123029:1},Tf={NONE:0,Tg:1},Uf={480596784:0,480596785:1},Vf={qd:0,Wg:1,Vg:2},Wf={21061799:0,21061800:1,21061801:2};var Xf=function(a){this.v=a;this.h=null;this.o=!1;this.l=null},L=function(a){a.o=!0;return a},Yf=function(a,b){a.l=void 0===b?null:b},Zf=function(a,b){a.l&&A(b,function(b){b=a.l[b];void 0!==b&&null===a.h&&Ra(a.v,b)&&(a.h=b)})};Xf.prototype.g=function(){return this.h};var $f=function(){this.g={};this.l=!0;this.h={}};$f.prototype.reset=function(){this.g={};this.l=!0;this.h={}};
var M=function(a,b,c){a.g[b]||(a.g[b]=new Xf(c));return a.g[b]},ag=function(a,b,c){(a=a.g[b])&&null===a.h&&Ra(a.v,c)&&(a.h=c)},bg=function(a,b){if(Qa(a.h,b))return a.h[b];if(a=a.g[b])return a.g()},cg=function(a){var b={},c;for(c in a.g)if(a.g.hasOwnProperty(c)){if(void 0!==a.h[c])var d=String(a.h[c]);else d=a.g[c],d=d.o&&null!==d.h?String(d.h):"";0<d.length&&(b[c]=d)}return b},dg=function(a){a=cg(a);var b=[];Ka(a,function(a,d){d in Object.prototype||"undefined"!=typeof a&&b.push([d,":",a].join(""))});
return b},eg=function(a){var b=N.D().O;b.l&&A(Na(b.g),function(b){return Zf(b,a)})};var fg=x(),gg=-1,hg=-1,ig,jg=-1,kg=!1,O=function(){return x()-fg},lg=function(a){var b=0<=hg?O()-hg:-1,c=kg?O()-gg:-1,d=0<=jg?O()-jg:-1;if(79463068==a)return 500;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var g=e[b];break}void 0===g&&(g=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:g};var mg=function(a,b){this.h=(void 0===a?0:a)||0;this.g=(void 0===b?"":b)||""},ng=function(){var a=N.D().w;return!!a.h||!!a.g};mg.prototype.toString=function(){return this.h+(this.g?"-":"")+this.g};mg.prototype.matches=function(a){return this.g||a.g?this.g==a.g:this.h||a.h?this.h==a.h:!1};var og=function(a,b,c){c=void 0===c?{}:c;this.error=a;this.context=b.context;this.line=b.line||-1;this.msg=b.message||"";this.file=b.file||"";this.id=b.id||"jserror";this.meta=c};var pg=/^https?:\/\/(\w|-)+\.cdn\.ampproject\.(net|org)(\?|\/|$)/,tg=function(a){a=a||qg();for(var b=new rg(n.location.href,n,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&pg.test(f.url)&&(c=f);if(f.url&&!f.fc){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new sg(b,e,c)},qg=function(){var a=n,b=[],c=null;do{var d=a;if(kf(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new rg(e||"",d));try{a=d.parent}catch(f){a=null}}while(a&&
d!=a);d=0;for(a=b.length-1;d<=a;++d)b[d].depth=a-d;d=n;if(d.location&&d.location.ancestorOrigins&&d.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)e=b[a],e.url||(e.url=d.location.ancestorOrigins[a-1]||"",e.fc=!0);return b},sg=function(a,b,c){this.g=a;this.h=b;this.l=c},rg=function(a,b,c){this.url=a;this.$=b;this.fc=!!c;this.depth=r(void 0)?void 0:null};var ug=function(){this.l="&";this.o=p(void 0)?void 0:"trn";this.v=!1;this.h={};this.w=0;this.g=[]},vg=function(a,b){var c={};c[a]=b;return[c]},xg=function(a,b,c,d,e){var f=[];lf(a,function(a,k){(a=wg(a,b,c,d,e))&&f.push(k+"="+a)});return f.join(b)},wg=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],g=0;g<a.length;g++)f.push(wg(a[g],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=
e||0,2>e?encodeURIComponent(xg(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))},yg=function(a,b,c,d){a.g.push(b);a.h[b]=vg(c,d)},Ag=function(a,b,c,d){b=b+"//"+c+d;var e=zg(a)-d.length;if(0>e)return"";a.g.sort(function(a,b){return a-b});d=null;c="";for(var f=0;f<a.g.length;f++)for(var g=a.g[f],k=a.h[g],l=0;l<k.length;l++){if(!e){d=null==d?g:d;break}var m=xg(k[l],a.l,",$");if(m){m=c+m;if(e>=m.length){e-=m.length;b+=m;c=a.l;break}else a.v&&(c=e,m[c-1]==a.l&&--c,b+=m.substr(0,c),c=a.l,e=0);d=
null==d?g:d}}f="";a.o&&null!=d&&(f=c+a.o+"="+d);return b+f+""},zg=function(a){if(!a.o)return 4E3;var b=1,c;for(c in a.h)b=c.length>b?c.length:b;return 4E3-a.o.length-b-a.l.length-1};var Bg=function(a,b,c,d,e){if(Math.random()<(d||a.g))try{if(c instanceof ug)var f=c;else f=new ug,lf(c,function(a,b){var c=f,d=c.w++;a=vg(b,a);c.g.push(d);c.h[d]=a});var g=Ag(f,a.o,a.h,a.l+b+"&");g&&("undefined"===typeof e?Af(n,g,void 0):Af(n,g,e))}catch(k){}};var Cg=null,Dg=function(a){this.h={};this.g={};a=a||[];for(var b=0,c=a.length;b<c;++b)this.g[a[b]]=""},Fg=function(){var a=Eg(),b=new Dg;lf(a.h,function(a,d){b.h[d]=a});lf(a.g,function(a,d){b.g[d]=a});return b};var Gg={ci:0,hh:1,Kh:2,Bg:3,Zh:4,Ig:5,Zg:6,Lh:7,jg:8,Mg:9,lg:10,Ph:11};var Hg=function(){var a=n.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):x()},Ig=function(){var a=void 0===a?n:a;return(a=a.performance)&&a.now?a.now():null};var Jg=function(a,b,c,d,e){this.label=a;this.type=b;this.value=c;this.duration=void 0===d?0:d;this.uniqueId=this.label+"_"+this.type+"_"+Math.random();this.slotId=e};var Kg=n.performance,Lg=!!(Kg&&Kg.mark&&Kg.measure&&Kg.clearMarks),Mg=Nd(function(){var a;if(a=Lg){var b;if(null===Cg){Cg="";try{a="";try{a=n.top.location.hash}catch(c){a=n.location.hash}a&&(Cg=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=Cg;a=!!b.indexOf&&0<=b.indexOf("1337")}return a}),Ng=function(a,b){this.events=[];this.g=b||n;var c=null;b&&(b.google_js_reporting_queue=b.google_js_reporting_queue||[],this.events=b.google_js_reporting_queue,c=b.google_measure_js_timing);this.h=Mg()||(null!=
c?c:Math.random()<a)};Ng.prototype.w=function(){this.h=!1;this.events!=this.g.google_js_reporting_queue&&(Mg()&&A(this.events,Og),this.events.length=0)};Ng.prototype.A=function(a){this.h&&this.events.push(a)};var Og=function(a){a&&Kg&&Mg()&&(Kg.clearMarks("goog_"+a.uniqueId+"_start"),Kg.clearMarks("goog_"+a.uniqueId+"_end"))};Ng.prototype.start=function(a,b){if(!this.h)return null;var c=Ig()||Hg();a=new Jg(a,b,c);b="goog_"+a.uniqueId+"_start";Kg&&Mg()&&Kg.mark(b);return a};
Ng.prototype.end=function(a){if(this.h&&r(a.value)){var b=Ig()||Hg();a.duration=b-a.value;b="goog_"+a.uniqueId+"_end";Kg&&Mg()&&Kg.mark(b);this.A(a)}};var Rg=function(){var a=Pg;this.v=Qg;this.o=!0;this.A=this.g;this.h=void 0===a?null:a};Rg.prototype.C=function(a){this.o=a};Rg.prototype.l=function(a,b,c,d){try{if(this.h&&this.h.h){var e=this.h.start(a.toString(),3);var f=b();this.h.end(e)}else f=b()}catch(k){b=this.o;try{Og(e);var g=Sg(k);b=(d||this.A).call(this,a,g,void 0,c)}catch(l){this.g(217,l)}if(!b)throw k;}return f};
Rg.prototype.w=function(a,b,c,d,e){var f=this;return function(g){for(var k=[],l=0;l<arguments.length;++l)k[l-0]=arguments[l];return f.l(a,function(){return b.apply(c,k)},d,e)}};
Rg.prototype.g=function(a,b,c,d,e){e=e||"jserror";try{var f=new ug;f.v=!0;yg(f,1,"context",a);b.error&&b.meta&&b.id||(b=Sg(b));b.msg&&yg(f,2,"msg",b.msg.substring(0,512));b.file&&yg(f,3,"file",b.file);0<b.line&&yg(f,4,"line",b.line);var g=b.meta||{};if(d)try{d(g)}catch(l){}b=[g];f.g.push(5);f.h[5]=b;var k=tg();k.h&&yg(f,6,"top",k.h.url||"");yg(f,7,"url",k.g.url||"");Bg(this.v,e,f,c)}catch(l){try{Bg(this.v,e,{context:"ecmserr",rctx:a,msg:Tg(l),url:k&&k.g.url},c)}catch(m){}}return this.o};
var Sg=function(a){return new Ug(Tg(a),a.fileName,a.lineNumber)},Tg=function(a){var b=a.toString();a.name&&-1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=": "+a.message);if(a.stack){a=a.stack;var c=b;try{-1==a.indexOf(c)&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n")}catch(e){b=c}}return b},Ug=function(a,b,c){og.call(this,Error(a),{message:a,file:void 0===b?"":b,line:void 0===c?-1:c})};
ha(Ug,og);var Vg=function(){this.h=!1};Vg.prototype.C=function(a){this.h=a};
Vg.prototype.g=function(a,b,c,d,e){if(Math.random()>(void 0===c?.01:c))return this.h;b.error&&b.meta&&b.id||(b=new og(b,{context:a,id:void 0===e?"jserror":e}));d&&(b.meta={},d&&d(b.meta));n.google_js_errors=n.google_js_errors||[];n.google_js_errors.push(b);n.error_rep_loaded||(b=n.document,a=b.createElement("script"),Kc(a,gf(n.location.protocol+"//pagead2.googlesyndication.com/pagead/js/err_rep.js")),(b=b.getElementsByTagName("script")[0])&&b.parentNode&&b.parentNode.insertBefore(a,b),n.error_rep_loaded=
!0);return this.h};Vg.prototype.l=function(a,b,c,d){d=void 0===d?this.g:d;try{var e=b()}catch(f){if(!d.call(this,a,f,.01,c,"jserror"))throw f;}return e};Vg.prototype.w=function(a,b,c,d,e){var f=this;e=void 0===e?this.g:e;return function(g){for(var k=[],l=0;l<arguments.length;++l)k[l-0]=arguments[l];return f.l(a,function(){return b.apply(c,k)},d,e)}};var Qg,Wg,Xg=Df(),Pg=new Ng(1,Xg);Qg=new function(){var a=void 0===a?K:a;this.o="http:"===a.location.protocol?"http:":"https:";this.h="pagead2.googlesyndication.com";this.l="/pagead/gen_204?id=";this.g=.01};Wg=new Rg;"complete"==Xg.document.readyState?Xg.google_measure_js_timing||Pg.w():Pg.h&&xf(Xg,"load",function(){Xg.google_measure_js_timing||Pg.w()});var Zg=function(a,b){return Wg.l(a,b,void 0,Yg)},$g=function(a,b,c,d){return Wg.w(a,b,c,d,void 0)},Yg=Wg.g,ah=function(a,b){Wg.g(a,b,void 0,void 0)};if(af&&af.URL){var bh,rf=af.URL;bh=!!rf&&0<sf().length;Wg.C(!bh)}var ch=function(a,b,c,d){c=$g(d,c);xf(a,b,c,{capture:!1});return c};var dh=function(a){var b=N.D().w;b&&(b.h&&(a[4]=b.h),b.g&&(a[12]=b.g))},eh=function(a){var b=[];Ka(a,function(a,d){d=encodeURIComponent(d);q(a)&&(a=encodeURIComponent(a));b.push(d+"="+a)});b.push("24="+x());return b.join("\n")};var fh=!cc&&!Ub();var gh=function(a){return{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};function hh(a,b,c,d){if(!a)return{value:d,done:!1};d=b(d,a);var e=c(d,a);return!e&&Zb(a,"parentElement")?hh(Zc(a),b,c,d):{done:e,value:d}}var ih=function(a,b,c,d){if(!a)return d;d=hh(a,b,c,d);if(!d.done)try{var e=Oc(a),f=e&&F(e);return ih(f&&f.frameElement,b,c,d.value)}catch(g){}return d.value};
function jh(a){var b=!cc||pc(8);return ih(a,function(a,d){a=Zb(d,"style")&&d.style&&He(d,"visibility");return{hidden:"hidden"===a,visible:b&&"visible"===a}},function(a){return a.hidden||a.visible},{hidden:!1,visible:!1}).hidden}
var kh=function(a){return ih(a,function(a,c){return!(!Zb(c,"style")||!c.style||"none"!==He(c,"display"))},function(a){return a},!1)?!0:jh(a)},lh=function(a){return new I(a.top,a.right,a.bottom,a.left)},mh=function(a){return null!=a&&0<=a&&1>=a},nh=function(a,b){b=void 0===b?K:b;null!==b&&b!=b.top&&(b=b.top);var c=0,d=0;try{var e=b.document,f=e.body,g=e.documentElement;if("CSS1Compat"==e.compatMode&&g.scrollHeight)c=g.scrollHeight!=a.height?g.scrollHeight:g.offsetHeight,d=g.scrollWidth!=a.width?g.scrollWidth:
g.offsetWidth;else{var k=g.scrollHeight,l=g.scrollWidth,m=g.offsetHeight,y=g.offsetWidth;g.clientHeight!=m&&(k=f.scrollHeight,l=f.scrollWidth,m=f.offsetHeight,y=f.offsetWidth);k>a.height?k>m?(c=k,d=l):(c=m,d=y):k<m?(c=k,d=l):(c=m,d=y)}return new D(d,c)}catch(J){return new D(-12245933,-12245933)}};var oh=function(a,b,c,d,e){this.time=a;this.h=b;this.l=c;this.volume=null;this.o=d;this.g=null;this.v=e};var ph=function(a,b,c,d,e,f,g){this.C=a;this.h=b;this.v=c;this.w=d;this.l=e;this.A=f;this.o=g};ph.prototype.g=function(){return this.C};var N=function(){this.K=!1;this.A=void 0;this.h=!kf(K.top);var a=qg();a=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?((a=a[a.length-1].url.match(me)[3]||null)?decodeURI(a):a)||"":"";this.domain=a;this.v=this.L=this.C=this.l=null;this.F=0;this.w=new mg(0,"");this.g=!1;this.o=null;this.B=0;this.R="geo";this.O=new $f;Yf(L(M(this.O,"nio_mode",Kf)),Of);Yf(L(M(this.O,"mv",Tf)),Uf);M(this.O,"omid",Jf);L(M(this.O,"osd",Jf));L(M(this.O,"srmi",Jf));Yf(L(M(this.O,"umt",Jf)),Rf);Yf(L(M(this.O,"gmpd",
Jf)),Sf);Yf(L(M(this.O,"sel",Jf)),Pf);Yf(L(M(this.O,"ujs",Jf)),Qf);Yf(L(M(this.O,"cll",Vf)),Wf);Yf(L(M(this.O,"ioa",Jf)),Nf);Yf(L(M(this.O,"isu",Jf)),Lf);Yf(L(M(this.O,"ald",Jf)),Mf);L(M(this.O,"inapp",Gf));this.I=-1};Ba(N);var qh=function(a){this.h=a;this.l=0;this.g=null};qh.prototype.cancel=function(){K.clearTimeout(this.g);this.g=null};var rh=function(a){K&&(a.g=K.setTimeout($g(143,function(){a.l++;a.h.U()}),lg(N.D().A)))};var th=function(){return!sh()&&(C("iPod")||C("iPhone")||C("Android")||C("IEMobile"))},sh=function(){return C("iPad")||C("Android")&&!C("Mobile")||C("Silk")};var uh=function(a,b,c){this.$=a;this.N=void 0===c?"na":c;this.l=[];this.I=!1;this.o=new oh(-1,new D(0,0),new D(0,0),!0,this);this.h=this;this.C=this.v=b;this.M=sh()||th();this.w=!1;this.G=null;this.K=this.F=!1;this.H="uk";this.J=!1};h=uh.prototype;h.Va=function(){return this.Aa()};h.Aa=function(){return!0};h.pc=function(){this.I=!0};h.ab=function(){return this.H};h.Sa=function(){return this.K};var wh=function(a,b){a.K||(a.K=!0,a.H=b,a.C=0,a.A(),a.h==a&&(a.v=0,vh(a)))};
uh.prototype.Ma=function(){return this.h==this?this.N:this.h.Ma()};uh.prototype.Ba=function(){return{}};uh.prototype.Ca=function(){return this.v};var xh=function(a,b){jb(a.l,b)||(a.l.push(b),b.Ra(a.h),b.Ka(a.o),b.Ea()&&(a.w=!0))},zh=function(a,b){kb(a.l,b);a.w&&b.Ea()&&yh(a)},Ah=function(a){var b=O(),c=Ef(!0,a.$,a.M),d=Ef(!1,a.$,a.M);a.G||(a.G=nh(c,a.$));var e=gh(af);var f=1===e;e=0===e;f=(N.D(),f||e);return new oh(b,c,d,f,a)};uh.prototype.U=function(){};
var yh=function(a){a.w=a.l.length?db(a.l,function(a){return a.Ea()}):!1};uh.prototype.A=function(){};uh.prototype.g=function(){return this.o};var Bh=function(a){var b=nb(a.l);A(b,function(b){b.Ka(a.o)})},vh=function(a){var b=nb(a.l);A(b,function(b){b.Ra(a.h)});a.h!=a||Bh(a)};uh.prototype.Ra=function(a){var b=this.v,c=a.Ca();this.h=c<this.C?this:a;this.v=this.h!=this?c:this.C;this.h==this||1==c&&0!=this.C||this.A();this.v!=b&&vh(this)};
var Ch=function(a,b){var c;if(!(c=a.F)){c=a.o;var d=a.w;c=!(b&&(void 0===d||!d||c.volume==b.volume)&&c.o==b.o&&se(c.g,b.g)&&Mc(c.l,b.l)&&Mc(c.h,b.h))}a.o=b;c&&Bh(a)};uh.prototype.Ka=function(a){this.h!=this&&Ch(this,a)};uh.prototype.Ea=function(){return this.w};uh.prototype.V=function(){this.J=!0};uh.prototype.Ib=function(){return this.J};var Dh=function(a,b,c,d){this.element=a;this.o=this.g=b;this.O=c;this.I=d;this.B=!1;this.l=new ph(b.g(),new I(0,0,0,0),null,this.bb(),0,0,O())};h=Dh.prototype;h.ad=function(){};h.oc=function(){};h.Pb=function(){this.l=new ph(this.g.g(),this.l.h,this.l.v,this.bb(),this.l.l,this.l.A,this.l.o)};h.V=function(){this.Ib()||(zh(this.g,this),this.B=!0)};h.Ib=function(){return this.B};h.Ba=function(){return this.o.Ba()};h.Ca=function(){return this.o.Ca()};h.ab=function(){return this.o.ab()};h.Sa=function(){return this.o.Sa()};
h.Ra=function(a){this.o=a;this.I.Ra(this)};h.Ka=function(){this.Pb()};h.Ea=function(){return this.I.Ea()};var Eh=function(a){this.v=!1;this.g=a};h=Eh.prototype;h.Ca=function(){return this.g.Ca()};h.ab=function(){return this.g.ab()};h.Sa=function(){return this.g.Sa()};h.create=function(a,b,c){var d=null;this.g&&(d=this.Gc(a,b,c),xh(this.g,d));return d};h.Va=function(){return this.Aa()};h.Aa=function(){return!1};h.$c=function(){return!0};h.V=function(){this.v=!0};h.Ib=function(){return this.v};h.Ba=function(){return{}};var Fh=function(a,b,c){this.l=void 0===c?0:c;this.h=a;this.g=null==b?"":b},Gh=function(a){switch(Math.trunc(a.l)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}},Hh=function(a,b){return a.l<b.l?!0:a.l>b.l?!1:a.h<b.h?!0:a.h>b.h?!1:typeof a.g<typeof b.g?!0:typeof a.g>typeof b.g?!1:a.g<b.g};var Ih=function(){this.l=0;this.g=[];this.h=!1};Ih.prototype.add=function(a,b,c){++this.l;a=new Fh(a,b,c);this.g.push(new Fh(a.h,a.g,a.l+this.l/4096));this.h=!0;return this};
var Jh=function(a,b){A(b.g,function(b){a.add(b.h,b.g,Gh(b))})},Kh=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;lf(b,function(b,f){d&&void 0===b||a.add(f,b,c)});return a},Lh=function(a){a.h&&(pb(a.g,function(a,c){return Hh(c,a)?1:Hh(a,c)?-1:0}),a.h=!1);return cb(a.g,function(a,c){var b="boolean"===typeof c.g;c=""+(b&&!c.g?"":c.h)+(b||""===c.g?"":"="+c.g);return""+a+(""!=a&&""!=c?"&":"")+c},"")};var Mh,Nh=new Date(0);Mh=Fb(Nh.getUTCFullYear(),4)+Fb(Nh.getUTCMonth()+1,2)+Fb(Nh.getUTCDate(),2)+"T"+Fb(Nh.getUTCHours(),2)+Fb(Nh.getUTCMinutes(),2)+"Z";var Oh=function(a){this.g=new Ih;void 0!==a&&Jh(this.g,a);this.g.add("avv",Mh,-16)};Oh.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=Lh(this.g);0<b.length&&(a+="?"+b);return a};var Ph=function(a){lf(a,function(b,c){b instanceof Array&&(a[c]=b.join(","))});return a},Qh=function(a){var b=[],c=[];Ka(a,function(a,e){if(!(e in Object.prototype)&&"undefined"!=typeof a)switch(Da(a)&&(a=a.join(",")),a=[e,"=",a].join(""),e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":case "aio":case "nio":case "iem":b.unshift(a);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(a);break;default:b.push(a)}});return b.concat(c)},Sh=function(a){a=
new Oh(a);Rh(a)},Rh=function(a){a=a.toString();a=a.substring(0,2E3);var b=Df()||K;Af(b,a,void 0)};var Th={},Uh=null;Th.le=0;Th.nt=2;Th.Fr=3;Th.Po=5;Th.me=1;Th.om=4;var Vh=function(a){Th.e=-1;Th.i=6;Th.n=7;Th.t=8;if(!Uh){var b=[];lf(Th,function(a,c){b[a+1]=c});var c=b.join(""),d=a&&a[c];Uh=d&&function(b,c){return d.call(a,b,c)}}return Uh};var Wh=function(){this.h=this.l=this.o=this.g=0},Xh=function(a,b,c,d){b&&(a.g+=c,a.h+=c,a.o+=c,a.l=Math.max(a.l,a.o));if(void 0===d?!b:d)a.o=0};var Yh=function(){this.h=[1,.75,.5,.3,0];this.g=bb(this.h,function(){return new Wh})},$h=function(a,b){return Zh(a,function(a){return a.g},void 0===b?!0:b)},bi=function(a,b){return ai(a,b,function(a){return a.g})},ci=function(a){return Zh(a,function(a){return a.l},!0)},di=function(a,b){return ai(a,b,function(a){return a.l})},ei=function(a,b){return ai(a,b,function(a){return a.h})},fi=function(a){A(a.g,function(a){a.h=0})},gi=function(a,b,c,d,e,f,g){g=void 0===g?!0:g;c=f?Math.min(b,c):c;for(f=0;f<
a.h.length;f++){var k=a.h[f],l=0<c&&c>=k;k=!(0<b&&b>=k)||d;Xh(a.g[f],g&&l,e,!g||k)}},Zh=function(a,b,c){a=bb(a.g,function(a){return b(a)});return c?a:hi(a)},ai=function(a,b,c){var d=ib(a.h,function(a){return b<=a});return-1==d?0:c(a.g[d])},hi=function(a){return bb(a,function(a,c,d){return 0<c?d[c]-d[c-1]:d[c]})};var ii=function(){this.g=new Yh;this.J=new Wh;this.F=this.C=-1;this.T=1E3};ii.prototype.K=function(a,b,c,d,e){this.C=-1!=this.C?Math.min(this.C,b.g):b.g;e&&(this.F=Math.max(this.F,b.g));gi(this.g,b.g,c.g,b.h,a,d);Xh(this.J,d||c.La!=b.La?If(c)&&If(b):If(c),a,!If(b)||b.h)};ii.prototype.Ua=function(){return this.J.l>=this.T};var ji=function(a,b,c,d){Dh.call(this,a,b,c,d);this.h=new I(0,0,0,0)};ha(ji,Dh);
var li=function(a,b,c,d){return 0>=a.h()||0>=a.g()?!0:c&&d?Zg(208,function(){return ki(a,b,c)}):!1},mi=function(a,b){return a.left<=b.right&&b.left<=a.right&&a.top<=b.bottom&&b.top<=a.bottom?new I(Math.max(a.top,b.top),Math.min(a.right,b.right),Math.min(a.bottom,b.bottom),Math.max(a.left,b.left)):new I(0,0,0,0)},oi=function(a,b){b=ni(b);return 0===b?0:ni(a)/b},ni=function(a){return Math.max(a.g()*a.h(),0)},ki=function(a,b,c){if(!a||!b)return!1;b=te(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=
(b.top+b.bottom)/2;var d=Df();kf(d.top)&&d.top&&d.top.document&&(d=d.top);d=Vh(d&&d.document);if(!d)return!1;a=d(a,b);if(!a)return!1;b=(b=(b=Oc(c))&&b.defaultView&&b.defaultView.frameElement)&&pi(b,a);d=a===c;a=!d&&a&&bd(a,function(a){return a===c});return!(b||d||a)},pi=function(a,b){if(!a||!b)return!1;for(var c=0;null!==a&&100>c++;){if(a===b)return!0;try{if(a=Zc(a)||a){var d=Oc(a),e=d&&F(d),f=e&&e.frameElement;f&&(a=f)}}catch(g){break}}return!1};h=ji.prototype;h.bb=function(){return!0};
h.Pb=function(){if(this.element){var a=this.element.getBoundingClientRect(),b=a.right-a.left;a=a.bottom-a.top;var c=Ke(this.element,this.g.$),d=c.x;c=c.y;this.h=new I(Math.round(c),Math.round(d+b),Math.round(c+a),Math.round(d))}(b=this.g.g().g)?(b=mi(this.h,b),b=b.top>=b.bottom||b.left>=b.right?new I(0,0,0,0):te(b,-this.h.left,-this.h.top)):b=new I(0,0,0,0);a=this.g.g().g;c=d=0;var e=1==bg(this.O,"od"),f=(this.h.bottom-this.h.top)*(this.h.right-this.h.left);a&&b&&0<f&&(li(b,a,this.element,e)?b=new I(0,
0,0,0):(d=oi(b,this.h),c=oi(b,a)));this.l=new ph(this.g.g(),this.h,b,this.bb(),d,c,O())};h.Sa=function(){return this.o.Sa()};h.Ma=function(){return this.o.Ma()};h.Ka=function(a){if(null==this.element)if(null!=a.l){var b=a.l;this.h=new I(0,b.width,b.height,0)}else this.h=new I(0,0,0,0);Dh.prototype.Ka.call(this,a)};var qi=new I(0,0,0,0),ri={threshold:[0,.3,.5,.75,1]},si=function(a,b,c){this.position=qi.clone();this.za=0;this.kc=this.Db();this.jc=-2;this.Sf=x();this.md=-1;this.wb=b;this.hc=null;this.$a=-1!=b;this.zb=this.bd=null;this.opacity=-1;this.uc=c;this.nd=this.lc=Aa;this.Oa=this.element=a;this.zc=this.ib=!1;this.Qb=1;this.kd=!0;this.ya=!1;N.D().F++;this.domain=null;this.Vc=0;this.ga=this.Vb();this.ld=-1;this.Mb=new I(0,0,0,0);a=this.O=new $f;M(a,"od",Ff);L(M(a,"opac",Jf));M(a,"ud",Jf);L(M(a,"mkm",Jf));
L(M(a,"xza",Jf));L(M(a,"xza",Jf));M(a,"lom",Jf);L(M(a,"iehp",Jf));L(M(a,"sela",Jf));L(M(a,"ujs",Jf));L(M(a,"sbeos",Jf));a=Df().mraid;if(b=this.element&&this.element.getAttribute)b=this.element,b=/-[a-z]/.test("googleAvInapp")?!1:fh&&b.dataset?"googleAvInapp"in b.dataset:b.hasAttribute?b.hasAttribute("data-"+Mb()):!!b.getAttribute("data-"+Mb());(b||a)&&ag(N.D().O,"inapp",1);1==this.uc?ag(this.O,"od",1):ag(this.O,"od",0)};h=si.prototype;h.Ka=function(){};
h.Ra=function(a){a.Sa()&&this.nd(this,a.ab(),a)};h.Ea=function(){return!1};h.Db=function(){return new ii};h.pa=function(){return this.kc};
var vi=function(a,b,c){if(a.$a){var d=Vh(K&&K.document);if(d){c||ti(a,K,!0);if(1==bg(a.O,"iehp")||a.La()||a.zc){var e=ui(a,d);d=!0}else e=Uc(document),e=d(Math.floor((a.position.left+a.position.right)/2)-e.x,Math.floor((a.position.top+a.position.bottom)/2)-e.y)?.5:0,d=!1;a.Wa(a.position,e,b,c,!0,d)}}},wi=function(a,b,c){if(c(b))return b;for(;;){var d=Math.floor((a+b)/2);if(d==a||d==b)return a;c(d)?a=d:b=d}},ui=function(a,b){var c=Uc(document),d=a.Qb,e=Math.floor(a.position.left-c.x)+1,f=Math.floor(a.position.top-
c.y)+1,g=Math.floor(a.position.right-c.x)-d,k=Math.floor(a.position.bottom-c.y)-d;a=(k-f)*(g-e);if(f>k||e>g)return 0;c=!!b(e,f);d=!!b(g,k);if(c&&d)return 1;var l=!!b(g,f),m=!!b(e,k);if(c)k=wi(f,k,function(a){return!!b(e,a)}),g=wi(e,g,function(a){return!!b(a,f)});else if(l)k=wi(f,k,function(a){return!!b(g,a)}),e=wi(g,e,function(a){return!!b(a,f)});else if(m)f=wi(k,f,function(a){return!!b(e,a)}),g=wi(e,g,function(a){return!!b(a,k)});else if(d)f=wi(k,f,function(a){return!!b(g,a)}),e=wi(g,e,function(a){return!!b(a,
k)});else{var y=Math.floor((e+g)/2),J=Math.floor((f+k)/2);if(!b(y,J))return 0;f=wi(J,f,function(a){return!!b(y,a)});k=wi(J,k,function(a){return!!b(y,a)});e=wi(y,e,function(a){return!!b(a,J)});g=wi(y,g,function(a){return!!b(a,J)})}return(k-f)*(g-e)/a},xi=function(a,b,c,d,e){a.$a&&(d||ti(a,K,e),a.Wa(a.position,c,b,d,!1,!0))};si.prototype.Xc=function(){};si.prototype.Wc=function(){};si.prototype.Mc=function(){};si.prototype.Lb=function(){};
var yi=function(a,b,c){if(a.$a){var d=c?a.ga.g:a.Vc;a.Mb&&!se(a.Mb,new I(0,0,0,0))&&(d=te(a.Mb.clone(),a.position.left,a.position.top));a.Wa(a.position,d,b,c,!0,!0)}},zi=function(a,b){b=b.create(a.Oa,a.O,a);null!=b&&b.ad();b&&(a.R=b)},Ai=function(a,b,c){if(a.$a&&a.R){var d=Df(),e=N.D();ti(a,d,e.h);a.R.Pb();e=a.R.l;var f=e.g().g;d=!(!e.w&&!f);if(null!=e.v&&f){var g=e.h;a.bd=new Lc(g.left-f.left,g.top-f.top);a.zb=new D(f.right-f.left,f.bottom-f.top)}f=e.l;e=e.o;g=0;null!==a.hc&&(g=Math.max(0,e-a.hc));
a.hc=e;a.Wa(a.position,f,b,c,!0,d,void 0,g)}};h=si.prototype;
h.Wa=function(a,b,c,d,e,f,g,k){g=void 0===g?{}:g;k=void 0===k?this.Lc(c,g):k;g=this.Ob(a,b,d,g);r(b)||(this.bd=new Lc(a.left-b.left,a.top-b.top),this.zb=new D(b.right-b.left,b.bottom-b.top));e=e&&this.ga.g>=(this.La()?.3:.5);this.yc(k,g,e,f);this.wb=c;0<g.g&&-1===this.ld&&(this.ld=c);-1==this.md&&this.Ua()&&(this.md=c);if(-2==this.jc)try{a:{var l=r(b)?null:b;if(a&&a!=qi&&0!=this.za){if(!l){if(!this.zb){var m=-1;break a}l=new I(0,this.zb.width,this.zb.height,0)}m=l.h&&0<l.h()&&l.g&&0<l.g()?this.rb(a,
l):-1}else m=-1}this.jc=m}catch(y){ah(207,y)}this.ga=g;d&&(this.ga.g=0);this.lc(this)};h.yc=function(a,b,c,d){this.pa().K(a,b,this.ga,c,d)};h.Vb=function(){return new Hf};h.Ob=function(a,b,c){var d=this.Vb();d.h=c;c=gh(af);d.l=0==c?-1:1==c?0:1;d.g=r(b)?this.rb(b):this.rb(a,b);d.La=this.La();return d};h.Lc=function(a){if(-1==this.wb)return 0;a=a-this.wb||1;return 1E4<a?1:a};
h.rb=function(a,b){if(0===this.opacity&&1===bg(this.O,"opac"))return 0;if(r(a))return a;a=mi(a,b);var c=1==bg(this.O,"od");return 0>=this.za||li(a,b,this.Oa,c)?0:ni(a)/this.za};h.La=function(){return!1};
var ti=function(a,b,c,d){if(d)a.position=d;else{b=c?b:b.top;try{var e=qi.clone(),f=new Lc(0,0);if(a.Oa){var g=1==a.uc;!c&&g&&kh(a.Oa)||(e=a.Oa.getBoundingClientRect());f=Ke(a.Oa,b)}c=f;var k=c.x,l=c.y;a.position=new I(Math.round(l),Math.round(k+(e.right-e.left)),Math.round(l+(e.bottom-e.top)),Math.round(k))}catch(m){a.position=qi.clone()}}a.za=(a.position.bottom-a.position.top)*(a.position.right-a.position.left)};si.prototype.ua=function(){return 0};si.prototype.Ua=function(){return this.kc.Ua()};
var Bi=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b},Ci=function(a){a.R&&a.R.oc()},Fi=function(a,b){var c=!1,d=a.Oa;b.document&&b.document.body&&12==a.uc&&(d=b.document.body);if(null===d)return!1;Zg(152,function(){var e=new b.IntersectionObserver(function(c){try{Di(b,c,a)}catch(g){try{e.unobserve(d),ah("osd_adblock::nioc",g)}catch(k){}}},ri);e.observe(d);Ei(d);c=!0});return c},Ei=function(a){if(a&&(a=a.style)){var b=a.opacity;a.opacity=.98;a.opacity=.99;a.opacity=b}},Gi=function(a,b){var c=
!1;Zg(151,function(){var d=zf(b).observeIntersection(function(c){try{Di(b,c,a)}catch(f){try{d(),ah("osd_adblock::aioc",f)}catch(g){}}});c=!0});return c},Di=function(a,b,c){if(!b||!b.length||0>=b.length)b=null;else{for(var d=b[0],e=1;e<b.length;e++)b[e].time>d.time&&(d=b[e]);b=d}if(d=b)b=lh(d.boundingClientRect),e=lh(d.intersectionRect),c.ga.g=Math.min(Math.max(d.intersectionRect.width*d.intersectionRect.height/(d.boundingClientRect.width*d.boundingClientRect.height),0),1),c.Vc=c.ga.g,ti(c,a,!0,b),
a=mi(b,e),c.Mb=0>=c.za||a.top>=a.bottom||a.left>=a.right?new I(0,0,0,0):te(a,-b.left,-b.top)},Hi=function(a,b,c,d){if(d=void 0===d?Aa:d)a.nd=d;switch(c){case "nio":return Fi(a,b);case "aio":return Gi(a,b);case "geo":case "iem":return!0}return!1};var Ii="StopIteration"in n?n.StopIteration:{message:"StopIteration",stack:""},Ji=function(){};Ji.prototype.next=function(){throw Ii;};Ji.prototype.pb=function(){return this};
var Ki=function(a){if(a instanceof Ji)return a;if("function"==typeof a.pb)return a.pb(!1);if(Fa(a)){var b=0,c=new Ji;c.next=function(){for(;;){if(b>=a.length)throw Ii;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");},Li=function(a,b,c){if(Fa(a))try{A(a,b,c)}catch(d){if(d!==Ii)throw d;}else{a=Ki(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==Ii)throw d;}}};var Mi=function(a){for(var b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,kf(a)&&(c=a,b=d);return{$:c,level:b}};var Ni=function(a){Dg.call(this,a);this.dfltBktExt=this.h;this.lrsExt=this.g};ha(Ni,Dg);var Oi=function(){this.S={}},Qi=function(){if(Pi)return Pi;var a=zf();a=(a?kf(a.master)?a.master:null:null)||Df();var b=a.google_persistent_state_async;return null!=b&&"object"==typeof b&&null!=b.S&&"object"==typeof b.S?Pi=b:a.google_persistent_state_async=Pi=new Oi},Si=function(a,b,c){b=Ri[b]||"google_ps_"+b;a=a.S;var d=a[b];return void 0===d?a[b]=c:d},Ti=function(){var a=Qi();var b=Df();var c=zf(b);c?((c=c||zf())?(b=c.pageViewId,c=c.clientId,q(c)&&(b+=c.replace(/\D/g,"").substr(0,6))):b=null,b=
+b):(b=Mi(b).$,(c=b.google_global_correlator)||(b.google_global_correlator=c=1+Math.floor(Math.random()*Math.pow(2,43))),b=c);return Si(a,7,b)},Pi=null,Ui={},Ri=(Ui[8]="google_prev_ad_formats_by_region",Ui[9]="google_prev_ad_slotnames_by_region",Ui);var mf={Og:5,Eg:7,Ug:17,tg:19,pg:41,xg:48,Gh:120,Fh:62,ph:67,Dh:69,fi:74,$h:79,Hh:82,Ih:83,zh:87,Mh:88,rg:89,Ah:90,ei:97,Hg:98,ug:103,fg:104,Pg:106,gi:107,Gg:108,qh:114,rh:116,Ch:118,gg:119,nh:121,oh:122,mh:123,Xf:124},Vi=null,Wi=function(a){try{return!!a&&Yb(!0)}catch(b){return!1}},Xi=function(){if(Wi(Vi))return!0;var a=Qi();if(a=Si(a,3,null)){if(a&&a.dfltBktExt&&a.lrsExt){var b=new Ni;b.h=a.dfltBktExt;b.dfltBktExt=b.h;b.g=a.lrsExt;b.lrsExt=b.g;a=b}else a=null;a||(a=new Ni,b={context:"ps::gpes::cf",
url:Df().location.href},Bg(Qg,"jserror",b,void 0,void 0))}return Wi(a)?(Vi=a,!0):!1},Eg=function(){if(Xi())return Vi;var a=Qi(),b=new Ni(nf());return Vi=a.S[Ri[3]||"google_ps_3"]=b},Yi=null;var Zi={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Sa={Cc:"start",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",xd:"metric",Bc:"pause",zd:"resume",SKIPPED:"skip",VIEWABLE_IMPRESSION:"viewable_impression",yd:"mute",Bd:"unmute",FULLSCREEN:"fullscreen",ud:"exitfullscreen",ng:"bufferstart",mg:"bufferfinish",vd:"fully_viewable_audible_half_duration_impression",wd:"measurable_impression",od:"abandon",td:"engagedview",IMPRESSION:"impression",
rd:"creativeview",LOADED:"loaded",Eh:"progress",og:"close",qg:"collapse",uh:"overlay_resize",vh:"overlay_unmeasurable_impression",wh:"overlay_unviewable_impression",yh:"overlay_viewable_immediate_impression",xh:"overlay_viewable_end_of_session_impression",sd:"custom_metric_viewable"},$i="start firstquartile midpoint thirdquartile resume loaded".split(" "),aj=["start","firstquartile","midpoint","thirdquartile"],bj=["abandon"],cj={bi:-1,Cc:0,FIRST_QUARTILE:1,MIDPOINT:2,THIRD_QUARTILE:3,COMPLETE:4,xd:5,
Bc:6,zd:7,SKIPPED:8,VIEWABLE_IMPRESSION:9,yd:10,Bd:11,FULLSCREEN:12,ud:13,vd:14,wd:15,od:16,td:17,IMPRESSION:18,rd:19,LOADED:20,sd:21};var dj=function(){this.o=this.g=this.l=this.h=this.v=0},ej=function(a){var b={};var c=x()-a.v;b=(b.ptlt=c,b);(c=a.h)&&(b.pnk=c);(c=a.l)&&(b.pnc=c);(c=a.o)&&(b.pnmm=c);(a=a.g)&&(b.pns=a);return b};var fj=function(){Hf.call(this);this.o=!1;this.volume=void 0;this.w=!1;this.v=-1};ha(fj,Hf);var gj=function(a){return mh(a.volume)&&.1<=a.volume};var hj=function(){var a={};this.h=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.cm=[128,128],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a);this.g={};for(var b in this.h)0<this.h[b][1]&&(this.g[b]=0);this.l=0},ij=function(a,b){var c=a.h[b],d=c[1];a.l+=c[0];0<d&&0==a.g[b]&&(a.g[b]=1)},kj=function(a){return jj(a,Oa(a.h))},jj=function(a,b){var c=0,d;for(d in a.g)jb(b,
d)&&1==a.g[d]&&(c+=a.h[d][1],a.g[d]=2);return c},lj=function(a){var b=0,c;for(c in a.g){var d=a.g[c];if(1==d||2==d)b+=a.h[c][1]}return b};var mj=function(){this.h=this.l=0};mj.prototype.g=function(){return this.l};var nj=function(a,b,c){32<=b||(a.h&1<<b&&!c?a.l&=~(1<<b):a.h&1<<b||!c||(a.l|=1<<b),a.h|=1<<b)};var oj=function(){ii.call(this);this.l=new Wh;this.H=this.B=this.L=0;this.A=-1;this.U=new Wh;this.v=new Wh;this.h=new Yh;this.w=this.o=-1;this.I=new Wh;this.T=2E3;this.G=new mj;this.N=new mj;this.M=new mj};ha(oj,ii);var pj=function(a,b,c){var d=a.H;kg||c||-1==a.A||(d+=b-a.A);return d};
oj.prototype.K=function(a,b,c,d,e){if(!b.w){ii.prototype.K.call(this,a,b,c,d,e);e=gj(b)&&gj(c);var f=.5<=(d?Math.min(b.g,c.g):c.g);mh(b.volume)&&(this.o=-1!=this.o?Math.min(this.o,b.volume):b.volume,this.w=Math.max(this.w,b.volume));f&&(this.L+=a,this.B+=e?a:0);gi(this.h,b.g,c.g,b.h,a,d,e);Xh(this.l,!0,a);Xh(this.v,e,a);Xh(this.I,c.o,a);Xh(this.U,e&&!f,a);a=Math.floor(b.v/1E3);nj(this.G,a,If(b));nj(this.N,a,1<=b.g);nj(this.M,a,gj(b))}};var qj=function(){this.g=!1};var rj=function(a,b){this.g=!1;this.w=a;this.B=b;this.l=0};ha(rj,qj);var tj=function(a,b){return a.v(b)?(b=sj(a.B,a.w,b),a.l|=b,0==b):!1};rj.prototype.v=function(){return!0};rj.prototype.o=function(){return!1};rj.prototype.h=function(){var a=this,b=Ta(function(b){return b==a.w});return cj[b].toString()};rj.prototype.toString=function(){var a="";this.o()&&(a+="c");this.g&&(a+="s");0<this.l&&(a+=":"+this.l);return this.h()+a};var uj=new I(0,0,0,0),vj={},wj=(vj.firstquartile=0,vj.midpoint=1,vj.thirdquartile=2,vj.complete=3,vj),xj=function(a,b,c,d,e,f){e=void 0===e?null:e;f=void 0===f?[]:f;si.call(this,b,c,d);this.M=0;this.o={};this.Z=new hj;this.Yc={};this.la="";this.Na=null;this.wa=!1;this.h=[];this.A=e;this.C=f;this.v=void 0;this.l=-1;this.W=this.I=void 0;this.N=!1;this.L=this.K=0;this.H=-1;this.U=this.ea=!1;this.ob=this.sa=0;this.ha=!1;this.ma=this.oa=-1;this.G=this.B=this.g=0;this.Sb=this.Za=-1;this.Cb=0;this.Ga=new Yh;
this.J=this.aa=this.Ya=0;this.da=-1;this.ca=0;this.Fa=!1;this.T=null;this.Y=0;this.X=Aa;this.F=[this.Db()];this.zc=!0;this.Qb=2;b=N.D();ti(this,a,b.h);this.Xa={};this.Xa.pause="p";this.Xa.resume="r";this.Xa.skip="s";this.Xa.mute="m";this.Xa.unmute="um";this.Xa.exitfullscreen="ef";this.w=null};ha(xj,si);xj.prototype.Ea=function(){return!0};
var yj=function(a,b,c){a.Y=1;a.o={};a.o.firstquartile=!1;a.o.midpoint=!1;a.o.thirdquartile=!1;a.o.complete=!1;a.o.pause=!1;a.o.skip=!1;a.o.viewable_impression=!1;a.M=0;c||(a.pa().A=b)};xj.prototype.xc=function(){if(this.A){var a=this.A;a.g||(a.g=tj(a,this))}};xj.prototype.Xc=function(a){var b=this,c=a-this.oa;this.ha&&1E3>=c||(c=za("ima.bridge.getNativeViewability"),v(c)&&(c(this.la,function(a){b.ha=!1;Ua(a)&&b.ca++;b.Lb(a)}),this.ha=!0,this.oa=a))};
xj.prototype.Wc=function(a){var b=N.D();a-this.ma>lg(b.A)&&(a=za("ima.admob.getViewability"),v(a)&&a(this.la))};var zj=function(a){return p(a)?Number(a)?Bi(a,3):0:a};h=xj.prototype;h.Mc=function(a){this.ma=O();this.Lb(a)};
h.Lb=function(a){var b=a.opt_nativeViewBounds||{},c=a.opt_nativeViewVisibleBounds||{},d=a.opt_nativeTime||-1,e=a.opt_nativeVolume,f=a.opt_nativeViewAttached;a=a.opt_nativeViewHidden;void 0!==f&&(this.T=!!f);b=new I(b.top||0,b.left+b.width||0,b.top+b.height||0,b.left||0);c=a?uj.clone():new I(c.top||0,c.left+c.width||0,c.top+c.height||0,c.left||0);f=void 0;if("n"==this.v||"ml"==this.v)f={volume:e};e=f;e=void 0===e?{}:e;this.za=(b.bottom-b.top)*(b.right-b.left);this.position=b;this.Wa(b,c,d,!1,!0,!0,
e)};h.Wa=function(a,b,c,d,e,f,g){var k=this;g=void 0===g?{}:g;var l=this.X(this)||{};Ya(l,g);this.l=l.duration||this.l;this.I=l.isVpaid||this.I;this.W=l.isYouTube||this.W;this.N=f;si.prototype.Wa.call(this,a,b,c,d,e,f,l);A(this.C,function(a){a.g||(a.g=tj(a,k))})};
h.yc=function(a,b,c,d){si.prototype.yc.call(this,a,b,c,d);Aj(this).K(a,b,this.ga,c,d);this.U=gj(this.ga)&&gj(b);-1==this.H&&this.ea&&(this.H=this.pa().l.g);this.Z.l=0;a=this.ga;b=this.Ua();.5<=a.g&&ij(this.Z,"vs");b&&ij(this.Z,"vw");mh(a.volume)&&ij(this.Z,"am");this.U&&ij(this.Z,"a");this.ya&&ij(this.Z,"f");-1!=a.l&&(ij(this.Z,"bm"),1==a.l&&ij(this.Z,"b"));this.U&&b&&ij(this.Z,"avw");this.N&&ij(this.Z,"cm");this.N&&0<a.g&&ij(this.Z,"pv");Bj(this,this.pa().l.g,!0)&&ij(this.Z,"gdr");2E3<=di(this.pa().g,
1)&&ij(this.Z,"pmx")};h.Db=function(){return new oj};h.pa=function(){return this.kc};var Aj=function(a,b){var c;null!=b&&b<a.F.length?c=b:c=a.F.length-1;return a.F[c]};xj.prototype.Vb=function(){return new fj};xj.prototype.Ob=function(a,b,c,d){a=si.prototype.Ob.call(this,a,b,c,d);a.o=this.ya;a.w=2==this.Y;a.volume=d.volume;mh(a.volume)||(this.sa++,b=this.ga,mh(b.volume)&&(a.volume=b.volume));d=d.currentTime;a.v=p(d)&&0<=d?d:-1;return a};
var Cj=function(a){var b=!!bg(N.D().O,"umt");return(!a.I||0<a.l)&&(b||a.W)?1:0};xj.prototype.Lc=function(a,b){b=p(b.currentTime)?b.currentTime:this.K;if(-1==this.wb||2==this.Y)a=0;else{a=a-this.wb||1;var c=1E4;p(this.l)&&-1!=this.l&&(c=Math.max(c,this.l/3));a=a>c?1:a}c=b-this.K;var d=0;0<=c?(this.L+=a,this.J+=Math.max(a-c,0),d=Math.min(c,this.L)):this.aa+=Math.abs(c);0!=c&&(this.L=0);-1==this.da&&0<c&&(this.da=0<=jg?O()-jg:-1);this.K=b;return 1==Cj(this)?d:a};
xj.prototype.rb=function(a,b){return this.Fa?0:this.ya?1:si.prototype.rb.call(this,a,b)};xj.prototype.ua=function(){return 1};
var Dj=function(a,b){db(a.C,function(a){return a.o()&&a.h()==b.h()})||a.C.push(b)},Bj=function(a,b,c){return 15E3<=b?!0:a.ea?(void 0===c?0:c)?!0:Ej(a.l)?b>=a.l/2:Ej(a.H)?b>=a.H:!1:!1},Ej=function(a){return 1==bg(N.D().O,"gmpd")?0<a:-1!=a},Fj=function(a){var b={},c=N.D();b.insideIframe=c.h;b.unmeasurable=a.ib;b.position=a.position;b.exposure=a.ga.g;b.documentSize=c.v;b.viewportSize=c.l;null!=a.w&&(b.presenceData=a.w);return b},Hj=function(a,b){Gj(a.h,b,function(){return{Wf:0,Hb:void 0}});a.h[b]={viewableArea:Bi(a.ga.g,
2),instantaneousState:a.Z.l}},Gj=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++},Kj=function(a,b,c){var d=a.Yc[b];if(null!=d)return d;d=Ij(a,b);var e=Ta(function(a){return a==b});c=Jj(a,d,d,c,wj[Sa[e]]);"fully_viewable_audible_half_duration_impression"==b&&(c.std="csm",c.ic=jj(a.Z,["gdr"]));return c},Jj=function(a,b,c,d,e){if(a.ib)return{"if":0};var f=a.position.clone();f.round();var g=bb(a.h,function(a){return 100*a.Wf|0}),k=N.D(),l=a.pa(),m={};m["if"]=k.h?1:void 0;m.sdk=a.v?a.v:void 0;
m.t=a.Sf;m.p=[f.top,f.left,f.bottom,f.right];m.tos=$h(l.g,!1);m.mtos=ci(l.g);m.mcvt=l.J.l;m.ps=void 0;m.pt=g;f=pj(l,O(),2==a.Y);m.vht=f;m.mut=l.U.l;m.a=zj(a.ga.volume);m.mv=zj(l.w);m.fs=a.ya?1:0;m.ft=l.I.g;m.at=l.v.g;m.as=.1<=l.o?1:0;m.atos=$h(l.h);m.amtos=ci(l.h);m.uac=a.sa;m.vpt=l.l.g;"nio"==k.R&&(m.nio=1,m.avms="nio");m.gmm="4";m.gdr=Bj(a,l.l.g,!0)?1:0;a.zc&&(m.efpf=a.Qb);0<a.ca&&(m.nnut=a.ca);m.tcm=Cj(a);m.nmt=a.aa;m.bt=a.J;m.pst=a.da;m.vpaid=a.I;m.dur=a.l;m.vmtime=a.K;m.is=a.Z.l;1<=a.h.length&&
(m.i0=a.h[0].Hb);2<=a.h.length&&(m.i1=a.h[1].Hb);3<=a.h.length&&(m.i2=a.h[2].Hb);4<=a.h.length&&(m.i3=a.h[3].Hb);m.cs=lj(a.Z);b&&(m.ic=kj(a.Z),m.dvpt=l.l.h,m.dvs=ei(l.g,.5),m.dfvs=ei(l.g,1),m.davs=ei(l.h,.5),m.dafvs=ei(l.h,1),c&&(l.l.h=0,fi(l.g),fi(l.h)),a.Ua()&&(m.dtos=l.L,m.dav=l.B,m.dtoss=a.M+1,c&&(l.L=0,l.B=0,a.M++)),m.dat=l.v.h,m.dft=l.I.h,c&&(l.v.h=0,l.I.h=0));k.v&&(m.ps=[k.v.width,k.v.height]);k.l&&(m.bs=[k.l.width,k.l.height]);k.C&&(m.scs=[k.C.width,k.C.height]);m.dom=k.domain;a.ob&&(m.vds=
a.ob);if(0<a.C.length||a.A)b=nb(a.C),a.A&&b.push(a.A),m.pings=bb(b,function(a){return a.toString()});m.ces=bb(ab(a.C,function(a){return a.o()}),function(a){return a.h()});a.g&&(m.vmer=a.g);a.B&&(m.vmmk=a.B);a.G&&(m.vmiec=a.G);m.avms=a.R?a.R.Ma():N.D().R;a.R&&Ya(m,a.R.Ba());"exc"==k.R&&(m.femt=a.Za,m.femvt=a.Sb,m.emc=a.Cb,m.emb=$h(a.Ga,!1),m.emuc=a.Ya,m.avms="exc");d?(m.c=Bi(a.ga.g,2),m.ss=Bi(Lj(a),2)):m.tth=O()-ig;m.mc=Bi(l.F,2);m.nc=Bi(l.C,2);m.mv=zj(l.w);m.nv=zj(l.o);m.lte=Bi(a.jc,2);d=Aj(a,e);
ci(l.g);m.qmtos=ci(d.g);m.qnc=Bi(d.C,2);m.qmv=zj(d.w);m.qnv=zj(d.o);m.qas=.1<=d.o?1:0;m.qi=a.la;null!==a.T&&(m.nvat=a.T?1:0);m.avms||(m.avms="geo");m.psm=l.G.h;m.psv=l.G.g();m.psfv=l.N.g();m.psa=l.M.g();k=dg(k.O);k.length&&(m.veid=k);a.w&&Ya(m,ej(a.w));return m},Lj=function(a){if(a.ya)return 1;var b=K.screen.width*K.screen.height;return 0>=b?-1:Math.min(a.za*a.ga.g/b,1)},Ij=function(a,b){if(jb(bj,b))return!0;var c=a.o[b];return p(c)?(a.o[b]=!0,!c):!1};var Mj=x(),Pj=function(){this.g={};var a=F();Nj(this,a,document);var b=Oj();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Nj(this,c,c.document);Nj(this,a.top,a.top.document)}}catch(d){}},Oj=function(){var a=document.documentElement;try{if(!kf(F().top))return"2";var b=[],c=F(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&0!=b.length?"1":"0"}catch(d){return"2"}},Nj=function(a,b,c){ch(c,"mousedown",function(){return Qj(a)},301);ch(b,
"scroll",function(){return Rj(a)},302);ch(c,"touchmove",function(){return Sj(a)},303);ch(c,"mousemove",function(){return Tj(a)},304);ch(c,"keydown",function(){return Uj(a)},305)},Qj=function(a){Ka(a.g,function(a){1E5<a.l||++a.l})},Rj=function(a){Ka(a.g,function(a){1E5<a.g||++a.g})},Sj=function(a){Ka(a.g,function(a){1E5<a.g||++a.g})},Uj=function(a){Ka(a.g,function(a){1E5<a.h||++a.h})},Tj=function(a){Ka(a.g,function(a){1E5<a.o||++a.o})};var Vj=function(){this.g=this.h=null},Wj=function(a,b){if(null==a.h)return!1;var c=function(c,e){a.g=null;b(c,e)};a.g=gb(a.h,function(a){return null!=a&&a.Va()&&a.$c(c)});return null!=a.g};Ba(Vj);var Xj={threshold:[0,.25,.5,.75,1]},Yj=function(a,b,c,d){Dh.call(this,a,b,c,d);this.A=this.C=this.h=null;this.w=0;this.v=null};ha(Yj,Dh);Yj.prototype.Ma=function(){return"nio"};Yj.prototype.bb=function(){return!0};Yj.prototype.ad=function(){var a=this;this.A||(this.A=O());Zg(298,function(){return Zj(a)})||wh(this.g,"msf")};Yj.prototype.oc=function(){if(this.h&&this.element)try{this.h.unobserve(this.element)}catch(a){}};
var Zj=function(a){if(!a.element)return!1;var b=a.element;a.h=new a.g.$.IntersectionObserver(function(b){try{ak(a,b)}catch(d){a.oc(),ah(299,d)}},Xj);a.h.observe(b);bk(b);return!0},ck=function(a){var b=a.boundingClientRect.width*a.boundingClientRect.height;a=a.intersectionRect.width*a.intersectionRect.height;return b?a/b:0},dk=function(a,b){var c=0;b=b.intersectionRect.width*b.intersectionRect.height;(a=a.g.g().g)&&(c=(a.bottom-a.top)*(a.right-a.left));return c?b/c:0},ak=function(a,b){if(b.length){a.C||
(a.C=O());var c=2===bg(N.D().O,"nio_mode");c&&null!==a.v&&(clearTimeout(a.v),a.v=null);b=ek(b);var d=lh(b.boundingClientRect),e=te(lh(b.intersectionRect),-d.left,-d.top),f=ck(b),g=dk(a,b);if(c){if(a.l=new ph(a.g.g(),d,e,a.bb(),f,g,b.time),0<f&&(a.v=setTimeout(function(){var b=a.element;b&&a.h&&(a.h.unobserve(b),a.h.observe(b))},2E3)),2>a.w){a.w+=1;try{var k=new Ih;Kh(k,fk(a,b));Sh(k)}catch(l){}}}else a.l=new ph(a.g.g(),d,e,a.bb(),f,g,O())}},fk=function(a,b){var c=a.element.getBoundingClientRect();
a=Ah(a.g).l;var d=Math.min(c.left,0),e=Math.min(c.top,0),f=c.left-d,g=c.top-e,k={};return k.id="av-js",k.type="iobs-geom",k.iobsRectX=b.boundingClientRect.left,k.iobsRectY=b.boundingClientRect.top,k.iobsRectWidth=b.boundingClientRect.width,k.iobsRectHeight=b.boundingClientRect.height,k.geoRectX=c.left,k.geoRectY=c.top,k.geoRectWidth=c.width,k.geoRectHeight=c.height,k.iobsInterRectX=b.intersectionRect.left,k.iobsInterRectY=b.intersectionRect.top,k.iobsInterRectWidth=b.intersectionRect.width,k.iobsInterRectHeight=
b.intersectionRect.height,k.geoInterRectWidth=Math.max(0,Math.min(a.width-f,c.width+d)),k.geoInterRectHeight=Math.max(0,Math.min(a.height-g,c.height+e)),k.geoInterRectX=f,k.geoInterRectY=g,k},ek=function(a){return cb(a,function(a,c){return a.time>c.time?a:c},a[0])},bk=function(a){if(a=a.style){var b=a.opacity;a.opacity=.98;a.opacity=.99;a.opacity=b}};Yj.prototype.Ba=function(){var a={};return Object.assign(this.g.Ba(),(a.niot_obs=this.A,a.niot_cbk=this.C,a))};var gk=function(a){a=void 0===a?K:a;Eh.call(this,new uh(a,2))};ha(gk,Eh);gk.prototype.Ma=function(){return"nio"};gk.prototype.Va=function(){var a=bg(N.D().O,"nio_mode"),b=2===a;a=1===a;var c=N.D().h;return(b||a&&c)&&this.Aa()};gk.prototype.Aa=function(){return"exc"!==N.D().R&&1!=bg(N.D().O,"inapp")&&null!=this.g.$.IntersectionObserver};gk.prototype.Gc=function(a,b,c){return new Yj(a,this.g,b,c)};var hk=function(a,b,c){gd.call(this);this.o=null!=c?w(a,c):a;this.l=b;this.h=w(this.Kf,this);this.g=[]};z(hk,gd);h=hk.prototype;h.lb=!1;h.yb=0;h.Qa=null;h.Ic=function(a){this.g=arguments;this.Qa||this.yb?this.lb=!0:ik(this)};h.pause=function(){this.yb++};h.resume=function(){this.yb--;this.yb||!this.lb||this.Qa||(this.lb=!1,ik(this))};h.P=function(){hk.ba.P.call(this);this.Qa&&(n.clearTimeout(this.Qa),this.Qa=null,this.lb=!1,this.g=[])};h.Kf=function(){this.Qa=null;this.lb&&!this.yb&&(this.lb=!1,ik(this))};
var ik=function(a){a.Qa=Rd(a.h,a.l);a.o.apply(null,a.g)};var jk=function(){this.g=this.h=null},kk=function(){this.g=[];this.h=[];this.done=!1;this.l={ji:0,Dd:0,jd:0,Hd:0,xf:-1};this.K=this.v=this.A=this.w=this.B=null;this.F=!1;this.G=null;this.L=sh()||th();this.o=new qh(this)},lk=function(){var a=N.D().R;return"nio"==a||"aio"==a},nk=function(){var a=P;a.F||(a.F=!0,a.B||lk()||(a.w=new hk($g(137,function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];return a.C.apply(a,sa(c))}),100),a.B=ch(K,"scroll",function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-
0]=arguments[d];null!==a.w&&a.w.Ic.apply(a.w,sa(c))},138)),a.A||lk()||(a.v=new hk($g(140,function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];return a.H.apply(a,sa(c))}),100),a.A=ch(K,"resize",function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];null!==a.v&&a.v.Ic.apply(a.v,sa(c))},141)),mk(a,function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];return a.I.apply(a,sa(c))}),a.I())};kk.prototype.H=function(){ok(this,!1);this.C()};
kk.prototype.C=function(){pk(this,qk(this),!1)};var rk=function(a){var b=N.D();b.g||"exc"==b.R||ok(a,!0);var c=new jk;switch(b.R){case "geo":a:{b=b.l;c=new jk;c.h=b;if(null!=b&&-12245933!=b.width&&-12245933!=b.height){var d=N.D();if(d.g)var e=d.o;else try{d=K;var f=a.L;d=d.top;var g=b||Ef(!0,d,void 0===f?!1:f),k=Uc(Pc(d.document).g);if(-12245933==g.width){var l=g.width;var m=new I(l,l,l,l)}else m=new I(k.y,k.x+g.width,k.y+g.height,k.x);e=m}catch(y){a=c;break a}c.g=e}a=c}return a;default:return c}};
kk.prototype.U=function(){pk(this,qk(this),!1)};
var pk=function(a,b,c,d){if(!a.done&&(a.o.cancel(),0!=b.length)){a.G=null;var e=rk(a);try{var f=O(),g=N.D();g.I=f;if(null!=Vj.D().g)for(d=0;d<b.length;d++)Ai(b[d],f,c);else switch(g.R){case "exc":for(d=0;d<b.length;d++)yi(b[d],f,c);break;case "nis":for(e=0;e<b.length;e++)p(d)?b[e].Lb(d):b[e].Xc(f);break;case "gsv":for(e=0;e<b.length;e++)p(d)?b[e].Mc(d):b[e].Wc(f);break;case "aio":case "nio":for(d=0;d<b.length;d++)yi(b[d],f,c);break;case "iem":for(d=0;d<b.length;d++)vi(b[d],f,c);break;case "geo":if(e.g)for(d=
0;d<b.length;d++)xi(b[d],f,e.g,c,g.h)}for(d=0;d<b.length;d++);a.l.jd+=O()-f;++a.l.Hd}finally{c?A(b,function(a){a.ga.g=0}):rh(a.o)}}},mk=function(a,b){var c;af.visibilityState?c="visibilitychange":af.mozVisibilityState?c="mozvisibilitychange":af.webkitVisibilityState&&(c="webkitvisibilitychange");c&&(a.K=a.K||ch(af,c,b,142))};
kk.prototype.I=function(){var a=sk(this),b=O();a?(kg||(gg=b,A(this.g,function(a){var c=a.pa();c.H=pj(c,b,1!=a.Y)})),kg=!0,ok(this,!0)):(kg=!1,ig=b,A(this.g,function(a){a.$a&&(a.pa().A=b)}));pk(this,qk(this),!a)};kk.prototype.M=function(a){var b;if(b=null!=a.IntersectionObserver){if(a=tk(a,qk(this)))N.D().R="nio";b=a}return b};kk.prototype.J=function(a){return cc&&pc(8)&&v(Vh(a&&a.document))?(N.D().R="iem",!0):!1};
var sk=function(a){if(uk(a))return!0;var b=gh(af);a=1===b;b=0===b;return N.D(),a||b},vk=function(a,b){return null!=b&&db(a.g,function(a){return a.element==b})},wk=function(a){return gb(P.g,function(b){return b.la==a})},qk=function(a){return 0==a.g.length?a.h:0==a.h.length?a.g:lb(a.h,a.g)};kk.prototype.reset=function(){this.g=[];this.h=[]};
var ok=function(a,b){a=a.L;var c=N.D(),d,e=Vj.D();null!=e.g&&(d=e.g.g);c.l=d?d.g().h:c.g?c.o?(new D(c.o.h(),c.o.g())).round():new D(0,0):Ef(!0,K,a);b||(c.L=K&&K.outerWidth?new D(K.outerWidth,K.outerHeight):new D(-12245933,-12245933),c.v=nh(c.l))},xk=function(){var a=N.D();K.screen&&(a.C=new D(K.screen.width,K.screen.height))},tk=function(a,b){var c=void 0===c?Aa:c;var d=!1;A(b,function(b){Hi(b,a,"nio",c)&&(d=!0)});return d},yk=function(a){var b=P,c=[];A(a,function(a){vk(b,a.element)||(b.g.push(a),
c.push(a))})},zk=function(a){var b=P,c=[];A(a,function(a){null==gb(b.g,function(b){return b.element==a.element&&!0})&&(b.g.push(a),c.push(a))})},uk=function(a){return db(qk(a),function(a){return a.ya})};Ba(kk);var P=kk.D();var Ak=function(){var a=Ob;return a?db("AppleTV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;OMI/".split(";"),function(b){return Db(a,b)})?!0:Db(a,"Presto")&&Db(a,"Linux")&&!Db(a,"X11")&&!Db(a,"Android")&&!Db(a,"Mobi"):!1},Bk=function(){return Db(Ob,"CrKey")||Db(Ob,"PlayStation")||Db(Ob,"Roku")||Ak()||Db(Ob,"Xbox")};var Ck=null,Dk="",Ek=!1,Fk=function(a){if(!a)return"";var b=[];if(!a.location.href)return"";b.push("url="+encodeURIComponent(a.location.href.substring(0,512)));a.document&&a.document.referrer&&b.push("referrer="+encodeURIComponent(a.document.referrer.substring(0,512)));return b.join("&")};var Gk=function(a){return function(b){return!p(b[a])&&p(0)?0:b[a]}},Ik=function(){var a=[0,2,4];return function(b){b=b.tos;if(Da(b)){for(var c=Array(b.length),d=0;d<b.length;d++)c[d]=0<d?c[d-1]+b[d]:b[d];return p(a)?Hk(c,a):c}}},Jk=function(a,b){return function(c){c=c[a];if(Da(c))return Hk(c,b)}},Lk=function(a){var b=Kk;return function(c){return b(c)?c[a]:void 0}},Hk=function(a,b){return ab(a,function(a,d){return jb(b,d)})};var Kk=function(a,b){return function(c){for(var d=0;d<b.length;d++)if(b[d]===c[a]||!p(b[d])&&!c.hasOwnProperty(a))return!0;return!1}}("e",[void 0,1,2,3,4,8,16]),Mk={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",tos:"tos",mtos:"mtos",mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",pt:"pt",vht:"vht",mut:"mut",a:"a",ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",
tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Lk("qmtos"),qnc:Lk("qnc"),qmv:Lk("qmv"),qnv:Lk("qnv"),raf:"raf",rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",
pnmm:"pnmm",pns:"pns",ptlt:"ptlt",dc_rfl:"urlsigs",pngs:"pings",obd:"obd",veid:"veid"},Nk={c:Gk("c"),at:"at",atos:Jk("atos",[0,2,4]),ta:function(a,b){return function(c){if(!p(c[a]))return b}}("tth","1"),a:"a",dur:"dur",p:"p",tos:Ik(),j:"dom",mtos:Jk("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:Gk("ss"),vsv:Md("w2"),t:"t"},Ok={atos:"atos",amtos:"amtos",avt:Jk("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:Gk("ss"),t:"t"},Pk={a:"a",tos:Ik(),at:"at",c:Gk("c"),mtos:Jk("mtos",[0,2,4]),dur:"dur",fs:"fs",
p:"p",vpt:"vpt",vsv:Md("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},Qk={tos:Ik(),at:"at",c:Gk("c"),mtos:Jk("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:Md("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",qmpt:Jk("qmtos",[0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if(r(d))return bb(b,function(a){return 0<d&&d>=a?1:0})}}("qnc",[1,.5,0]),qmv:"qmv",qa:"qas",a:"a"};var Sk=function(a,b){var c={sv:"654",cb:"j"};c.nas=P.g.length;c.msg=a;p(b)&&(a=Rk(b))&&(c.e=cj[a]);return c},Rk=function(a){var b=a.toLowerCase();return Ta(function(a){return a==b})};var Tk=function(a,b){rj.call(this,a,b)};ha(Tk,rj);Tk.prototype.v=function(a){return a.pa().Ua()};var Uk=function(){this.h=this.o=this.w=this.v=this.l=this.g=""};var Vk=function(){},Wk=function(a,b,c,d,e){var f={};if(p(a))if(null!=b)for(var g in b){var k=b[g];g in Object.prototype||null!=k&&(v(k)?f[g]=k(a):f[g]=a[k])}else Ya(f,a);p(c)&&Ya(f,c);a=Lh(Kh(new Ih,Ph(f)));0<a.length&&p(d)&&p(e)&&(e=e(a),a+="&"+d+"="+e);return a};var Xk=function(){};ha(Xk,Vk);Xk.prototype.g=function(a){var b=new Uk;b.g=Wk(a,Mk);b.l=Wk(a,Ok);return b};var Zk=function(a){a=Yk(a);Eh.call(this,a.length?a[a.length-1]:new uh(window,0));this.l=a;this.o=Aa;this.h=null};ha(Zk,Eh);h=Zk.prototype;h.Ma=function(){return(this.h?this.h:this.g).Ma()};h.Ba=function(){return(this.h?this.h:this.g).Ba()};h.Ca=function(){return(this.h?this.h:this.g).Ca()};h.$c=function(a){this.o=a;A(this.l,function(a){return a.pc()});xh(this.g,this);return!0};h.V=function(){A(this.l,function(a){a.A();a.V()});Eh.prototype.V.call(this)};h.Va=function(){return db(this.l,function(a){return a.Va()})};
h.Aa=function(){return db(this.l,function(a){return a.Aa()})};h.Gc=function(a,b,c){return new ji(a,this.g,b,c)};h.Ra=function(a){0==a.Ca()&&this.o(a.ab(),this)};h.Ka=function(a){this.h=a.v};h.Ea=function(){return!1};var Yk=function(a){if(!a.length)return[];a=ab(a,function(a){return null!=a&&a.Va()});for(var b=1;b<a.length;b++)xh(a[b-1],a[b]);return a};var $k=function(){uh.call(this,K,1,"osd");this.W=[];this.T=this.L=this.B=0;this.F=!0};ha($k,uh);$k.prototype.Ba=function(){return{di:1}};var al=function(a){var b=0;a=a.$;try{if(a&&a.Goog_AdSense_getAdAdapterInstance)return a}catch(c){}for(;a&&5>b;){try{if(a.google_osd_static_frame)return a.google_osd_static_frame}catch(c){}try{if(a.aswift_0&&a.aswift_0.google_osd_static_frame)return a.aswift_0.google_osd_static_frame}catch(c){}b++;a=a!=a.parent?a.parent:null}return null};
$k.prototype.pc=function(){var a=this;if(!this.I)if(this.I=!0,ng()){ch(n,"message",function(b){if(null!=b&&b.data&&q(b.data)){var c=b.data;if(q(c)){var e={};c=c.split("\n");for(var f=0;f!=c.length;++f){var g=c[f],k=g.indexOf("=");if(!(0>=k)){var l=Number(g.substr(0,k));g=g.substr(k+1);switch(l){case 36:case 26:case 15:case 8:case 11:case 16:case 5:case 18:g="true"==g;break;case 4:case 33:case 6:case 25:case 28:case 29:case 24:case 23:case 22:case 7:case 21:case 20:g=Number(g);break;case 19:case 3:if(v(decodeURIComponent))try{g=
decodeURIComponent(g)}catch(y){throw Error("Error: URI malformed: "+g);}}e[l]=g}}e=e[0]?e:null}else e=null;if(e&&(c=new mg(e[4],e[12]),N.D().w.matches(c)&&(c=e[29],f=e[0],jb(["goog_acknowledge_monitoring","goog_get_mode","goog_update_data","goog_image_request"],f)))){bl(a,e);if("goog_get_mode"==f&&b.source){l={};dh(l);l[0]="goog_provide_mode";l[6]=4;l[27]=a.$.document.domain;l[16]=!1;try{var m=eh(l);b.source.postMessage(m,b.origin);cl(a,m)}catch(y){ah(406,y)}}if("goog_get_mode"==f||"goog_acknowledge_monitoring"==
f)a.B=2,dl(a);if(b=e[32])a.N=b;a.l.length&&4!=c&&(c=!1,b=a.o.h,m=a.o.g,"goog_acknowledge_monitoring"==e[0]&&(a.v=(void 0!==e[36]?e[36]:!e[8])?2:0,vh(a)),isNaN(e[30])||isNaN(e[31])?isNaN(e[22])||isNaN(e[23])||(c=!0,b=new D(e[22],e[23])):(c=!0,b=new D(e[30],e[31])),e[9]&&(c=!0,e=e[9].split("-"),4==e.length&&(m=new I(Kb(e[0]),Kb(e[3]),Kb(e[2]),Kb(e[1])))),c&&(e=Ah(a),e.h=b,e.g=m,e.o=sk(P),Ch(a,e)))}}},118);var b=$g(197,function(){++a.T;if(2==a.B)dl(a);else if(10<a.T)wh(a,"no");else if(a.$.postMessage)if(ng()){var b=
al(a);if(b){var d={};dh(d);d[0]="goog_request_monitoring";d[6]=4;d[27]=a.$.document.domain;d[16]=!1;try{var e=eh(d);b.postMessage(e,"*")}catch(f){}}}else wh(a,"ib");else wh(a,"c")});this.B=1;1==bg(N.D().O,"srmi")&&b();this.L=this.$.setInterval(b,500)}else wh(this,"ib")};$k.prototype.A=function(){var a={};dh(a);a[0]="goog_stop_monitoring";cl(this,eh(a));dl(this)};
var dl=function(a){a.$.clearInterval(a.L);a.L=0},cl=function(a,b){var c=al(a),d=!c;d&&(c=a.$.parent);if(c&&c.postMessage)try{c.postMessage(b,"*"),d&&a.$.postMessage(b,"*")}catch(e){}},bl=function(a,b){A(a.W,function(a){a(b)})};$k.prototype.Va=function(){var a=N.D();return bg(a.O,"osd")&&this.Aa()?4===a.B?!!bg(a.O,"mkm"):!0:!1};$k.prototype.Aa=function(){return N.D().h};Ba($k);var el=function(){this.h=this.H=!1;this.v=null;this.l=new Xk;this.g=null;var a={};this.M=(a.start=this.Zd,a.firstquartile=this.Ud,a.midpoint=this.Wd,a.thirdquartile=this.$d,a.complete=this.Sd,a.pause=this.sc,a.resume=this.gd,a.skip=this.Yd,a.viewable_impression=this.Ja,a.mute=this.nb,a.unmute=this.nb,a.fullscreen=this.Vd,a.exitfullscreen=this.Td,a.fully_viewable_audible_half_duration_impression=this.Ja,a.measurable_impression=this.Ja,a.abandon=this.sc,a.engagedview=this.Ja,a.impression=this.Ja,a.creativeview=
this.Ja,a.progress=this.nb,a.custom_metric_viewable=this.Ja,a.bufferstart=this.sc,a.bufferfinish=this.gd,a);a={};this.N=(a.overlay_resize=this.Xd,a.abandon=this.Wb,a.close=this.Wb,a.collapse=this.Wb,a.overlay_unmeasurable_impression=function(a){return Kj(a,"overlay_unmeasurable_impression",sk(P))},a.overlay_viewable_immediate_impression=function(a){return Kj(a,"overlay_viewable_immediate_impression",sk(P))},a.overlay_unviewable_impression=function(a){return Kj(a,"overlay_unviewable_impression",sk(P))},
a.overlay_viewable_end_of_session_impression=function(a){return Kj(a,"overlay_viewable_end_of_session_impression",sk(P))},a);N.D().B=3};el.prototype.w=function(a){a.ya=!1;fl(a.ua(),a.la)};el.prototype.A=function(){};var gl=function(a,b,c,d){b=a.C(null,d,!0,b);b.v=c;b.lc=function(b){a.I(b)};yk([b]);return b};
el.prototype.C=function(a,b,c,d){this.g||(this.g=this.Hc());b=c?b:-1;if(null==this.g||this.h)return a=new xj(K,a,b,7),a.la=d,a;a=new xj(K,a,b,7,new rj("measurable_impression",this.g),this.B());a.la=d;return a};el.prototype.B=function(){return[new Tk("viewable_impression",this.g)]};
var hl=function(){var a=[],b=N.D();bg(b.O,"osd")&&b.h&&b.g&&"exc"!=b.R&&(N.D().g=!1,a.push($k.D()));return[new gk(K),new Zk(a)]},jl=function(a){if(!a.H){a.H=!0;try{var b=O(),c=N.D();hg=b;Ck=Mi(K).$;ok(P,!1);xk();if("nis"!=c.R&&"gsv"!=c.R)if(K.document.body&&K.document.body.getBoundingClientRect){P.l.Dd=0;P.l.xf=O()-b;var d=hl(),e=Vj.D();e.h=d;if(Wj(e,function(){c.g=!1;il()}))P.done||(nk(),xh(e.g.g,a));else if(c.h&&"exc"!=c.R){var f=!!bg(c.O,"osd");if(c.g&&!f){var g=$k.D();g.pc();xh(g,a)}else il()}else nk()}else Ek=
!0}catch(k){throw P.reset(),k;}}},kl=function(a){var b=N.D();if(null==a.v)switch(b.R){case "nis":a.v="n";break;case "gsv":a.v="m";break;default:a.v="h"}return a.v},ll=function(a,b,c){if(null==a.g)return b.ob|=4,!1;a=sj(a.g,c,b);b.ob|=a;return 0==a};el.prototype.Ra=function(a){var b=N.D();switch(a.Ca()){case 0:b.g=!1;(a=Vj.D().g)&&zh(a.g,this);(a=$k.D())&&zh(a,this);il();break;case 2:b.g&&nk()}};el.prototype.Ka=function(a){var b=N.D();b.g&&(b.l=a.h,b.o=a.g)};el.prototype.Ea=function(){return!1};
var il=function(){a:{var a=P;if(void 0===b){var b=N.D().O;var c=[];0===(bg(b,"nio_mode")||0)&&c.push(a.M);c.push(a.J);b=c}b=ra(b);for(c=b.next();!c.done;c=b.next())if(c.value.call(a,K)){a=!0;break a}a=!1}a?nk():(P.o.cancel(),Dk="i",P.done=!0)};el.prototype.J=function(a,b){a.ib=!0;switch(a.ua()){case 1:ml(this,a,b);break;case 2:this.tc(a)}this.vc(a)};
var ml=function(a,b,c){if(!b.wa){var d=Kj(b,"start",sk(P));a=a.l.g(d).g;d=Ck||K;var e=[];e.push("v=654v");e.push("r="+c);e.push(a);e.push(Fk(d));Rh("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf&"+e.join("&"));b.wa=!0}};h=el.prototype;h.Zd=function(a){Hj(a,0);return Kj(a,"start",sk(P))};h.nb=function(a,b,c){pk(P,[a],!sk(P),b);return this.Ja(a,b,c)};h.Ja=function(a,b,c){return Kj(a,c,sk(P))};h.Ud=function(a,b){return nl(a,"firstquartile",1,b)};
h.Wd=function(a,b){a.ea=!0;return nl(a,"midpoint",2,b)};h.$d=function(a,b){return nl(a,"thirdquartile",3,b)};h.Sd=function(a,b){b=nl(a,"complete",4,b);0!=a.Y&&(a.Y=3);return b};var nl=function(a,b,c,d){pk(P,[a],!sk(P),d);Hj(a,c);4!=c&&Gj(a.F,c,a.Db);return Kj(a,b,sk(P))};h=el.prototype;h.gd=function(a,b,c){var d=sk(P);if(2==a.Y&&!d){var e=O();a.pa().A=e}pk(P,[a],!d,b);2==a.Y&&(a.Y=1);return Kj(a,c,d)};h.Yd=function(a,b){b=this.nb(a,b||{},"skip");0!=a.Y&&(a.Y=3);return b};
h.Vd=function(a,b){a.ya=!0;return this.nb(a,b||{},"fullscreen")};h.Td=function(a,b){a.ya=!1;return this.nb(a,b||{},"exitfullscreen")};h.sc=function(a,b,c){var d=a.pa(),e=O();d.H=pj(d,e,1!=a.Y);pk(P,[a],!sk(P),b);1==a.Y&&(a.Y=2);return Kj(a,c,sk(P))};h.Xd=function(a,b){pk(P,[a],!sk(P),b);return a.h()};h.Wb=function(a,b){pk(P,[a],!sk(P),b);this.fd(a);0!=a.Y&&(a.Y=3);return a.h()};
var ol=function(a,b,c){if(0==b.Y){"i"!=Dk&&(P.done=!1);var d=Vj.D();null!=d.g&&zi(b,d.g);Hi(b,K,N.D().R,function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];return a.J.apply(a,sa(c))});d=p(c)?c.opt_nativeTime:void 0;jg=d=r(d)?d:O();b.$a=!0;var e=sk(P);yj(b,d,e);pk(P,[b],!e,c)}},fl=function(a,b){if(q(b)){if(1==a)var c=P.g;else if(2==a)c=P.h;else return;var d=fb(c,function(c){return c.ua()!=a?!1:c.la==b});0<=d&&(Ci(c[d]),Array.prototype.splice.call(c,d,1))}},ql=function(a,b,c,d){var e=
gb(P.g,function(a){return a.element==c});null!==e&&e.la!=b&&(a.w(e),e=null);e||(e=pl(a,c,b),e.v=kl(a),d&&(e.Na=d));return e},pl=function(a,b,c){b=a.C(b,O(),!1,c);b.lc=w(a.I,a);0==P.h.length&&(N.D().A=79463069);zk([b]);nk();return b};el.prototype.I=function(){};var sl=function(a,b){b.B=0;for(var c in Zi)null==a[c]&&(b.B|=Zi[c]);rl(a,"currentTime");rl(a,"duration")};h=el.prototype;h.tc=function(){};h.fd=function(){};h.Zc=function(){};h.vc=function(){};h.Hc=function(){};
var rl=function(a,b){var c=a[b];p(c)&&0<c&&(a[b]=Math.floor(1E3*c))};var tl={Dg:"visible",hg:"audible",Vh:"time",Xh:"timetype"},ul={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)},audible:function(a){return"0"==a||"1"==a},timetype:function(a){return"mtos"==a||"tos"==a},time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}},vl=function(){this.g=void 0;this.h=!1;this.l=0;this.o=-1;this.v="tos"},wl=function(a){try{var b=a.split(",");return b.length>Oa(tl).length?null:cb(b,function(a,b){b=b.toLowerCase().split("=");if(2!=b.length||!p(ul[b[0]])||
!ul[b[0]](b[1]))throw Error("Entry ("+b[0]+", "+b[1]+") is invalid.");a[b[0]]=b[1];return a},{})}catch(c){return null}},xl=function(a,b){if(void 0==a.g)return 0;switch(a.v){case "mtos":return a.h?di(b.h,a.g):di(b.g,a.g);case "tos":return a.h?bi(b.h,a.g):bi(b.g,a.g)}return 0};var yl=function(a,b,c,d){rj.call(this,b,d);this.A=a;this.C=c};ha(yl,rj);yl.prototype.h=function(){return this.A};yl.prototype.o=function(){return!0};yl.prototype.v=function(a){var b=a.pa(),c=a.l;return db(this.C,function(a){if(void 0!=a.g)var d=xl(a,b);else b:{switch(a.v){case "mtos":d=a.h?b.v.l:b.l.g;break b;case "tos":d=a.h?b.v.g:b.l.g;break b}d=0}0==d?a=!1:(a=-1!=a.l?a.l:p(c)&&0<c?a.o*c:-1,a=-1!=a&&d>=a);return a})};var zl=function(a){rj.call(this,"fully_viewable_audible_half_duration_impression",a)};ha(zl,rj);zl.prototype.v=function(a){var b=bi(a.pa().h,1);return Bj(a,b)};var Al=x(),Bl=!1,Cl=!1,Dl=!1,Q=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1},El=function(a){return!!(1<<a&Al)},Fl=[function(a){return!(!a.chrome||!a.chrome.webstore)},function(a){return!!a.document.documentMode},function(a){return!!a.document.fonts.ready},function(){return El(0)},function(a){return!!a.ActiveXObject},function(a){return!!a.chrome},function(a){return!!a.navigator.serviceWorker},
function(a){return!!a.opera},function(a){return!!a.sidebar},function(){return!+"\v1"},function(){return El(1)},function(a){return!a.ActiveXObject},function(a){return"-ms-ime-align"in a.document.documentElement.style},function(a){return"-ms-scroll-limit"in a.document.documentElement.style},function(a){return"-webkit-font-feature-settings"in a.document.body.style},function(){return El(2)},function(a){return"ActiveXObject"in a},function(a){return"MozAppearance"in a.document.documentElement.style},function(a){return"_phantom"in
a},function(a){return"callPhantom"in a},function(a){return"content"in a.document.createElement("template")},function(a){return"getEntriesByType"in a.performance},function(){return El(3)},function(a){return"image-rendering"in a.document.body.style},function(a){return"object-fit"in a.document.body.style},function(a){return"open"in a.document.createElement("details")},function(a){return"orientation"in a.screen},function(a){return"performance"in a},function(a){return"shape-image-threshold"in a.document.body.style},
function(){return El(4)},function(a){return"srcset"in a.document.createElement("img")},function(){return Cl},function(){return Dl},function(){return El(5)},function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="-webkit-min-content";a.style.width="min-content";return"1px"!=a.style.width},function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="calc(1px - 1px)";a.style.width="-webkit-calc(1px - 1px)";return"1px"!=a.style.width},function(){var a=!1;eval('var DummyFunction1 = function(x){ "use strict"; var a = 12; b = a + x*35; }');
try{DummyFunction1()}catch(b){a=!0}return a},function(){var a=!1;try{DummyFunction2()}catch(b){a=!0}return a},function(){return!1},function(){return El(6)},function(a){var b=a.document.createElement("canvas");b.width=b.height=1;b=b.getContext("2d");b.globalCompositeOperation="multiply";b.fillStyle="rgb(0,255,255)";b.fillRect(0,0,1,1);b.fill();b.fillStyle="rgb(255,255,0)";b.fillRect(0,0,1,1);b.fill();b=b.getImageData(0,0,1,1).data;return b[0]==b[2]&&b[1]==b[3]||Q(a.navigator.vibrate)},function(a){a=
a.document.createElement("canvas");a.width=a.height=1;a=a.getContext("2d");a.globalCompositeOperation="multiply";a.fillStyle="rgb(0,255,255)";a.fillRect(0,0,1,1);a.fill();a.fillStyle="rgb(255,255,0)";a.fillRect(0,0,1,1);a.fill();a=a.getImageData(0,0,1,1).data;return a[0]==a[2]&&a[1]==a[3]},function(a){return Q(a.document.createElement("div").matches)},function(a){a=a.document.createElement("input");a.setAttribute("type","range");return"text"!==a.type},function(a){return a.CSS.supports("image-rendering",
"pixelated")},function(a){return a.CSS.supports("object-fit","contain")},function(){return El(7)},function(a){return a.CSS.supports("object-fit","inherit")},function(a){return a.CSS.supports("shape-image-threshold","0.9")},function(a){return a.CSS.supports("word-break","keep-all")},function(){return eval("1 == [for (item of [1,2,3]) item][0]")},function(a){return Q(a.CSS.supports)},function(){return Q(Intl.Collator)},function(a){return Q(a.document.createElement("dialog").show)},function(){return El(8)},
function(a){return Q(a.document.createElement("div").animate([{transform:"scale(1)",Id:"ease-in"},{transform:"scale(1.3)",Id:"ease-in"}],{duration:1300,mi:1}).reverse)},function(a){return Q(a.document.createElement("div").animate)},function(a){return Q(a.document.documentElement.webkitRequestFullScreen)},function(a){return Q(a.navigator.getBattery)},function(a){return Q(a.navigator.permissions.query)},function(){return!1},function(){return El(9)},function(){return Q(webkitRequestAnimationFrame)},
function(a){return Q(a.BroadcastChannel.call)},function(a){return Q(a.FontFace)},function(a){return Q(a.Gamepad)},function(){return El(10)},function(a){return Q(a.MutationEvent)},function(a){return Q(a.MutationObserver)},function(a){return Q(a.crypto.getRandomValues)},function(a){return Q(a.document.body.createShadowRoot)},function(a){return Q(a.document.body.webkitCreateShadowRoot)},function(a){return Q(a.fetch)},function(){return El(11)},function(a){return Q(a.navigator.serviceWorker.register)},
function(a){return Q(a.navigator.webkitGetGamepads)},function(a){return Q(a.speechSynthesis.speak)},function(a){return Q(a.webkitRTCPeerConnection)},function(a){return a.CSS.supports("--fake-var","0")},function(){return El(12)},function(a){return a.CSS.supports("cursor","grab")},function(a){return a.CSS.supports("cursor","zoom-in")},function(a){return a.CSS.supports("image-orientation","270deg")},function(){return El(13)},function(a){return a.CSS.supports("position","sticky")},function(a){return void 0===
a.document.createElement("style").scoped},function(a){return a.performance.getEntriesByType("resource")instanceof Array},function(){return"undefined"==typeof InstallTrigger},function(){return"object"==typeof(new Intl.Collator).resolvedOptions()},function(a){return"boolean"==typeof a.navigator.onLine},function(){return El(14)},function(a){return"undefined"==typeof a.navigator.oi},function(a){return"number"==typeof a.performance.now()},function(){return 0==(new Uint16Array(1))[0]},function(a){return-1==
a.ActiveXObject.toString().indexOf("native")},function(a){return-1==Object.prototype.toString.call(a.HTMLElement).indexOf("Constructor")}],Gl=[function(a){a=a.document.createElement("div");var b=null,c=["{45EA75A0-A269-11D1-B5BF-0000F8051515}","{3AF36230-A269-11D1-B5BF-0000F8051515}","{89820200-ECBD-11CF-8B85-00AA005B4383}"];try{a.style.behavior="url(#default#clientcaps)"}catch(e){}for(var d=0;d<c.length;d++){try{b=a.getComponentVersion(c[d],"componentid").replace(/,/g,".")}catch(e){}if(b)return b.split(".")[0]}return!1},
function(){return(new Date).getTimezoneOffset()},function(a){return(a.innerWidth||a.document.documentElement.clientWidth||a.document.body.clientWidth)/(a.innerHeight||a.document.documentElement.clientHeight||a.document.body.clientHeight)},function(a){return(a.outerWidth||a.document&&a.document.body&&a.document.body.offsetWidth)/(a.outerHeight||a.document&&a.document.body&&a.document.body.offsetHeight)},function(a){return a.screen.availWidth/a.screen.availHeight},function(a){return a.screen.width/
a.screen.height}],Hl=[function(a){return a.navigator.userAgent},function(a){return a.navigator.platform},function(a){return a.navigator.vendor}],Jl=function(){try{Il()}catch(d){}var a="a=1&b="+Al+"&",b=[],c=99;A(Fl,function(a,c){var d=!1;try{d=a(K)}catch(g){}b[c/32>>>0]|=d<<c%32});A(b,function(b,e){a+=String.fromCharCode(c+e)+"="+(b>>>0).toString(16)+"&"});c=105;A(Gl,function(b){var d="false";try{d=b(K)}catch(f){}a+=String.fromCharCode(c++)+"="+d+"&"});A(Hl,function(b){var d="";try{var f=b(K);b=[];
for(var g=0,k=0;k<f.length;k++){var l=f.charCodeAt(k);255<l&&(b[g++]=l&255,l>>=8);b[g++]=l}if(!ae)for(ae={},be={},f=0;65>f;f++)ae[f]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f),be[f]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(f);f=be;l=[];for(g=0;g<b.length;g+=3){var m=b[g],y=g+1<b.length,J=y?b[g+1]:0,U=g+2<b.length,Ea=U?b[g+2]:0;k=m>>2;var t=(m&3)<<4|J>>4,E=(J&15)<<2|Ea>>6,ma=Ea&63;U||(ma=64,y||(E=64));l.push(f[k],f[t],f[E],f[ma])}d=
l.join("")}catch(Pd){}a+=String.fromCharCode(c++)+"="+d+"&"});return a.slice(0,-1)},Il=function(){if(!Bl){var a=function(){Cl=!0;K.document.removeEventListener("webdriver-evaluate",a,!0)};K.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){Dl=!0;K.document.removeEventListener("webdriver-evaluate-response",b,!0)};K.document.addEventListener("webdriver-evaluate-response",b,!0);Bl=!0}};var Kl=function(){this.h=64;this.g=Array(4);this.v=Array(this.h);this.o=this.l=0;this.reset()};z(Kl,ce);Kl.prototype.reset=function(){this.g[0]=1732584193;this.g[1]=4023233417;this.g[2]=2562383102;this.g[3]=271733878;this.o=this.l=0};
var Ll=function(a,b,c){c||(c=0);var d=Array(16);if(q(b))for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.g[0];c=a.g[1];e=a.g[2];var f=a.g[3];var g=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&
(f^b))+d[3]+3250441966&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(g<<12&4294967295|g>>>20);g=
e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(g<<7&4294967295|g>>>25);g=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(g<<12&4294967295|g>>>20);g=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(g<<17&4294967295|g>>>15);g=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(g<<22&4294967295|g>>>10);g=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(g<<5&4294967295|
g>>>27);g=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=e+(g<<20&4294967295|
g>>>12);g=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(g<<14&4294967295|g>>>18);g=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(g<<5&4294967295|g>>>27);g=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(g<<9&4294967295|g>>>23);g=e+(b^c&(f^b))+d[7]+1735328473&4294967295;e=f+(g<<14&4294967295|
g>>>18);g=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(g<<20&4294967295|g>>>12);g=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^
b^c)+d[7]+4139469664&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(g<<4&4294967295|g>>>28);g=f+(b^c^e)+d[12]+3873151461&4294967295;
f=b+(g<<11&4294967295|g>>>21);g=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(g<<16&4294967295|g>>>16);g=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(g<<23&4294967295|g>>>9);g=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[12]+1700485571&4294967295;b=c+
(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[13]+1309151649&4294967295;
c=e+(g<<21&4294967295|g>>>11);g=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(g<<6&4294967295|g>>>26);g=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(g<<10&4294967295|g>>>22);g=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(g<<15&4294967295|g>>>17);g=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.g[0]=a.g[0]+b&4294967295;a.g[1]=a.g[1]+(e+(g<<21&4294967295|g>>>11))&4294967295;a.g[2]=a.g[2]+e&4294967295;a.g[3]=a.g[3]+f&4294967295},Ml=function(a,b){if(!p(c))var c=b.length;for(var d=c-a.h,e=a.v,f=a.l,g=0;g<c;){if(0==
f)for(;g<=d;)Ll(a,b,g),g+=a.h;if(q(b))for(;g<c;){if(e[f++]=b.charCodeAt(g++),f==a.h){Ll(a,e);f=0;break}}else for(;g<c;)if(e[f++]=b[g++],f==a.h){Ll(a,e);f=0;break}}a.l=f;a.o+=c};var Nl=function(){this.h=null};ha(Nl,Xk);Nl.prototype.g=function(a){var b=Xk.prototype.g.call(this,a);var c=Al=x();var d=El(5);c=(Cl?!d:d)?c|2:c&-3;d=El(2);c=(Dl?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};this.h||(this.h=Jl());b.v=this.h;b.w=Wk(a,Nk,c,"h",Ol("kArwaWEsTs"));b.o=Wk(a,Pk,{},"h",Ol("b96YPMzfnx"));b.h=Wk(a,Qk,{},"h",Ol("yb8Wev6QDg"));return b};
var Ol=function(a){return function(b){var c=new Kl;Ml(c,b+a);var d=Array((56>c.l?c.h:2*c.h)-c.l);d[0]=128;for(b=1;b<d.length-8;++b)d[b]=0;var e=8*c.o;for(b=d.length-8;b<d.length;++b)d[b]=e&255,e/=256;Ml(c,d);d=Array(16);for(b=e=0;4>b;++b)for(var f=0;32>f;f+=8)d[e++]=c.g[b]>>>f&255;return Ud(d).slice(-8)}};var Pl=function(a,b){this.h=a;this.l=b},sj=function(a,b,c){var d=a.g(c);if(v(d)){var e={};e=(e.sv="654",e.cb="j",e.e=Ql(b),e);var f=Kj(c,b,sk(P));Ya(e,f);c.Yc[b]=f;a=2==c.ua()?Qh(e).join("&"):a.l.g(e).g;try{return d(c.la,a,b),0}catch(g){return 2}}else return 1},Ql=function(a){var b=Ta(function(b){return b==a});return cj[b]};Pl.prototype.g=function(){return za(this.h)};var Rl=function(a,b,c){Pl.call(this,a,b);this.o=c};ha(Rl,Pl);Rl.prototype.g=function(a){if(!a.Na)return Pl.prototype.g.call(this,a);var b=this.o[a.Na];if(b)return function(a,d,e){Sl(b,a,d,e)};ah(393,Error());return null};var Tl=function(a,b){this.g=a;this.depth=b},Vl=function(a){a=a||qg();var b=Math.max(a.length-1,0),c=tg(a);a=c.g;var d=c.h,e=c.l,f=[];c=function(a,b){return null==a?b:a};e&&f.push(new Tl([e.url,e.fc?2:0],c(e.depth,1)));d&&d!=e&&f.push(new Tl([d.url,2],0));a.url&&a!=e&&f.push(new Tl([a.url,0],c(a.depth,b)));var g=bb(f,function(a,b){return f.slice(0,f.length-b)});!a.url||(e||d)&&a!=e||(d=pf(a.url))&&g.push([new Tl([d,1],c(a.depth,b))]);g.push([]);return bb(g,function(a){return Ul(b,a)})};
function Ul(a,b){var c=cb(b,function(a,b){return Math.max(a,b.depth)},-1),d=qb(c+2);d[0]=a;A(b,function(a){return d[a.depth+1]=a.g});return d}var Wl=function(){var a=Vl();return bb(a,function(a){return wg(a)})};var R=function(){el.call(this);this.L=void 0;this.F=null;this.K=!1;this.o={};this.G=0;this.l=new Nl};ha(R,el);R.prototype.A=function(a,b){var c=this;switch(N.D().R){case "nis":var d=Xl(this,a,b);break;case "gsv":d=Zl(this,a,b);break;case "exc":d=$l(this,a);break;default:b.opt_overlayAdElement?d=void 0:b.opt_adElement?d=ql(this,a,b.opt_adElement,b.opt_osdId):d=wk(a)||void 0}d&&1==d.ua()&&(d.X==Aa&&(d.X=function(a){return c.Zc(a)}),am(this,d,b));return d};
var am=function(a,b,c){var d=c.opt_configurable_tracking_events;if(null!=a.g&&Da(d)){var e=a.g;A(d,function(a){if(!(1<eb(d,function(b){return b.id==a.id||b.event==a.event}))){var c=bb(a.li,function(a){var b=wl(a);if(null==b)a=null;else if(a=new vl,null!=b.visible&&(a.g=b.visible/100),null!=b.audible&&(a.h=1==b.audible),null!=b.time){var c="mtos"==b.timetype?"mtos":"tos",d=rb(b.time,"%")?"%":"ms";b=parseInt(b.time,10);"%"==d&&(b/=100);"ms"==d?(a.l=b,a.o=-1):(a.l=-1,a.o=b);a.v=void 0===c?"tos":c}return a});
db(c,function(a){return null==a})||Dj(b,new yl(a.id,a.event,c,e))}})}};
R.prototype.Zc=function(a){var b=N.D();a.g=0;a.G=0;if("h"==a.v||"n"==a.v){if("exc"==b.R||"nis"==b.R)var c=za("ima.bridge.getVideoMetadata");else if(a.Na&&bm(this)){var d=this.o[a.Na];d?c=function(a){cm(d,a)}:null!==d&&ah("lidar::missingPlayerCallback",Error())}else c=za("ima.common.getVideoMetadata");if(v(c))try{var e=c(a.la)}catch(f){a.g|=4}else a.g|=2}else if("b"==a.v)if(b=za("ytads.bulleit.getVideoMetadata"),v(b))try{e=b(a.la)}catch(f){a.g|=4}else a.g|=2;else if("ml"==a.v)if(b=za("ima.common.getVideoMetadata"),
v(b))try{e=b(a.la)}catch(f){a.g|=4}else a.g|=2;else a.g|=1;a.g||(p(e)?null===e?a.g|=16:Ua(e)?a.g|=32:null!=e.errorCode&&(a.G=e.errorCode,a.g|=64):a.g|=8);null!=e||(e={});sl(e,a);mh(e.volume)&&mh(this.L)&&(e.volume*=this.L);return e};
var Zl=function(a,b,c){var d=wk(b);d||(d=c.opt_nativeTime||-1,d=gl(a,b,kl(a),d),c.opt_osdId&&(d.Na=c.opt_osdId));return d},Xl=function(a,b,c){var d=wk(b);d||(d=gl(a,b,"n",c.opt_nativeTime||-1),d.Fa=N.D().K);return d},$l=function(a,b){var c=wk(b);c||(c=gl(a,b,"h",-1));return c};R.prototype.Hc=function(){if(bm(this))return new Rl("ima.common.triggerExternalActivityEvent",this.l,this.o);var a=dm(this);return null!=a?new Pl(a,this.l):null};
var dm=function(a){var b=N.D();switch(kl(a)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":if("exc"==b.R)return"ima.bridge.triggerExternalActivityEvent";case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null};R.prototype.B=function(){var a=this.g,b=el.prototype.B.call(this);b.push(new zl(a));return b};R.prototype.tc=function(a){!a.g&&a.ib&&ll(this,a,"overlay_unmeasurable_impression")&&(a.g=!0)};
R.prototype.fd=function(a){a.kd&&(a.Ua()?ll(this,a,"overlay_viewable_end_of_session_impression"):ll(this,a,"overlay_unviewable_impression"),a.kd=!1)};
var em=function(a,b,c,d){c=void 0===c?{}:c;var e={};Ya(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.l.g(Sk("ol",d));if(p(d))if(c=Rk(d),p(c))if(Ek)b=Sk("ue",d);else if(b=a.A(b,e)){b:{jl(a);"i"==Dk&&(b.ib=!0,a.vc(b));c=e.opt_fullscreen;p(c)&&(b.ya=!!c);Bk()?c=!1:(c=N.D().R,c=K&&K.g||"nis"===c||"gsv"===c?!1:0===gh(af));var f=c;if(f){switch(b.ua()){case 1:ml(a,b,"pv");break;case 2:a.tc(b)}P.o.cancel();Dk="pv";P.done=!0}c=d.toLowerCase();!f&&jb($i,c)&&ol(a,b,e);0!=b.Y&&jb(aj,
c)&&(b.ib||a.h||b.xc());(f=b.Xa[c])&&ij(b.Z,f);switch(b.ua()){case 1:var g=a.M[c];break;case 2:g=a.N[c]}if(g&&(d=g.call(a,b,e,d),p(d))){e=Sk(void 0,c);Ya(e,d);d=e;break b}d=void 0}3==b.Y&&a.w(b);b=d}else b=Sk("nf",d);else b=void 0;else Ek?b=Sk("ue"):(b=a.A(b,e))?(d=Sk(),Ya(d,Jj(b,!0,!1,!1)),b=d):b=Sk("nf");return a.l.g(b)};R.prototype.I=function(a){this.h&&1==a.ua()&&fm(this,a)};R.prototype.vc=function(a){this.h&&1==a.ua()&&fm(this,a)};
var fm=function(a,b){var c;if(b.Na&&bm(a)){var d=a.o[b.Na];d?c=function(a,b){gm(d,a,b)}:null!==d&&ah("lidar::missingPlayerCallback",Error())}else c=za("ima.common.triggerViewabilityMeasurementUpdate");if(v(c)){var e=Fj(b);e.nativeVolume=a.L;c(b.la,e)}},hm=function(a,b,c){a.o[b]=c},bm=function(a){return"exc"==N.D().R||"h"!=kl(a)&&"m"!=kl(a)?!1:0!=a.G};R.prototype.C=function(a,b,c,d){a=el.prototype.C.call(this,a,b,c,d);this.K&&(b=this.F,null==a.w&&(a.w=new dj),b.g[a.la]=a.w,a.w.v=Mj);return a};
R.prototype.w=function(a){a&&1==a.ua()&&this.K&&delete this.F.g[a.la];return el.prototype.w.call(this,a)};var im=function(a){var b={};return b.viewability=a.g,b.googleViewability=a.l,b.moatInit=a.v,b.moatViewability=a.w,b.integralAdsViewability=a.o,b.doubleVerifyViewability=a.h,b},jm=function(a,b,c){c=void 0===c?{}:c;a=em(R.D(),b,c,a);return im(a)};Ba(R);
u("Goog_AdSense_Lidar_sendVastEvent",$g(193,jm,void 0,function(){var a=N.D(),b={};return b.sv="654",b["if"]=a.h?"1":"0",b.nas=String(P.g.length),b}),void 0);u("Goog_AdSense_Lidar_getViewability",$g(194,function(a,b){b=void 0===b?{}:b;a=em(R.D(),a,b);return im(a)}),void 0);u("Goog_AdSense_Lidar_getUrlSignalsArray",$g(195,function(){return Wl()}),void 0);u("Goog_AdSense_Lidar_getUrlSignalsList",$g(196,function(){return fe(Wl())}),void 0);var km=function(a,b){this.h={};this.g=[];this.o=this.l=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a)if(a instanceof km)for(c=a.Pa(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};h=km.prototype;h.Ha=function(){return this.l};h.ra=function(){lm(this);for(var a=[],b=0;b<this.g.length;b++)a.push(this.h[this.g[b]]);return a};h.Pa=function(){lm(this);return this.g.concat()};
h.isEmpty=function(){return 0==this.l};h.clear=function(){this.h={};this.o=this.l=this.g.length=0};var lm=function(a){if(a.l!=a.g.length){for(var b=0,c=0;b<a.g.length;){var d=a.g[b];mm(a.h,d)&&(a.g[c++]=d);b++}a.g.length=c}if(a.l!=a.g.length){var e={};for(c=b=0;b<a.g.length;)d=a.g[b],mm(e,d)||(a.g[c++]=d,e[d]=1),b++;a.g.length=c}};h=km.prototype;h.get=function(a,b){return mm(this.h,a)?this.h[a]:b};h.set=function(a,b){mm(this.h,a)||(this.l++,this.g.push(a),this.o++);this.h[a]=b};
h.forEach=function(a,b){for(var c=this.Pa(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};h.clone=function(){return new km(this)};h.pb=function(a){lm(this);var b=0,c=this.o,d=this,e=new Ji;e.next=function(){if(c!=d.o)throw Error("The map has changed since the iterator was created");if(b>=d.g.length)throw Ii;var e=d.g[b++];return a?e:d.h[e]};return e};var mm=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var nm=function(a,b){this.g=this.C=this.o="";this.A=null;this.v=this.l="";this.w=!1;var c;a instanceof nm?(this.w=p(b)?b:a.w,om(this,a.o),this.C=a.C,this.g=a.g,pm(this,a.A),this.l=a.l,qm(this,a.h.clone()),this.v=a.v):a&&(c=String(a).match(me))?(this.w=!!b,om(this,c[1]||"",!0),this.C=rm(c[2]||""),this.g=rm(c[3]||"",!0),pm(this,c[4]),this.l=rm(c[5]||"",!0),qm(this,c[6]||"",!0),this.v=rm(c[7]||"")):(this.w=!!b,this.h=new sm(null,this.w))};
nm.prototype.toString=function(){var a=[],b=this.o;b&&a.push(tm(b,um,!0),":");var c=this.g;if(c||"file"==b)a.push("//"),(b=this.C)&&a.push(tm(b,um,!0),"@"),a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.A,null!=c&&a.push(":",String(c));if(c=this.l)this.g&&"/"!=c.charAt(0)&&a.push("/"),a.push(tm(c,"/"==c.charAt(0)?vm:wm,!0));(c=this.h.toString())&&a.push("?",c);(c=this.v)&&a.push("#",tm(c,xm));return a.join("")};
nm.prototype.resolve=function(a){var b=this.clone(),c=!!a.o;c?om(b,a.o):c=!!a.C;c?b.C=a.C:c=!!a.g;c?b.g=a.g:c=null!=a.A;var d=a.l;if(c)pm(b,a.A);else if(c=!!a.l){if("/"!=d.charAt(0))if(this.g&&!this.l)d="/"+d;else{var e=b.l.lastIndexOf("/");-1!=e&&(d=b.l.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){d=0==e.lastIndexOf("/",0);e=e.split("/");for(var f=[],g=0;g<e.length;){var k=e[g++];"."==k?d&&g==e.length&&f.push(""):".."==k?((1<f.length||1==f.length&&
""!=f[0])&&f.pop(),d&&g==e.length&&f.push("")):(f.push(k),d=!0)}d=f.join("/")}else d=e}c?b.l=d:c=""!==a.h.toString();c?qm(b,a.h.clone()):c=!!a.v;c&&(b.v=a.v);return b};nm.prototype.clone=function(){return new nm(this)};
var om=function(a,b,c){a.o=c?rm(b,!0):b;a.o&&(a.o=a.o.replace(/:$/,""))},pm=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.A=b}else a.A=null},qm=function(a,b,c){b instanceof sm?(a.h=b,ym(a.h,a.w)):(c||(b=tm(b,zm)),a.h=new sm(b,a.w))},rm=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},tm=function(a,b,c){return q(a)?(a=encodeURI(a).replace(b,Am),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},Am=function(a){a=a.charCodeAt(0);
return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},um=/[#\/\?@]/g,wm=/[#\?:]/g,vm=/[#\?]/g,zm=/[#\?@]/g,xm=/#/g,sm=function(a,b){this.h=this.g=null;this.l=a||null;this.o=!!b},Bm=function(a){a.g||(a.g=new km,a.h=0,a.l&&ne(a.l,function(b,c){a.add(tb(b),c)}))};sm.prototype.Ha=function(){Bm(this);return this.h};sm.prototype.add=function(a,b){Bm(this);this.l=null;a=Cm(this,a);var c=this.g.get(a);c||this.g.set(a,c=[]);c.push(b);this.h+=1;return this};
var Dm=function(a,b){Bm(a);b=Cm(a,b);mm(a.g.h,b)&&(a.l=null,a.h-=a.g.get(b).length,a=a.g,mm(a.h,b)&&(delete a.h[b],a.l--,a.o++,a.g.length>2*a.l&&lm(a)))};sm.prototype.clear=function(){this.g=this.l=null;this.h=0};sm.prototype.isEmpty=function(){Bm(this);return 0==this.h};var Em=function(a,b){Bm(a);b=Cm(a,b);return mm(a.g.h,b)};h=sm.prototype;h.forEach=function(a,b){Bm(this);this.g.forEach(function(c,d){A(c,function(c){a.call(b,c,d,this)},this)},this)};
h.Pa=function(){Bm(this);for(var a=this.g.ra(),b=this.g.Pa(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};h.ra=function(a){Bm(this);var b=[];if(q(a))Em(this,a)&&(b=lb(b,this.g.get(Cm(this,a))));else{a=this.g.ra();for(var c=0;c<a.length;c++)b=lb(b,a[c])}return b};h.set=function(a,b){Bm(this);this.l=null;a=Cm(this,a);Em(this,a)&&(this.h-=this.g.get(a).length);this.g.set(a,[b]);this.h+=1;return this};
h.get=function(a,b){if(!a)return b;a=this.ra(a);return 0<a.length?String(a[0]):b};h.toString=function(){if(this.l)return this.l;if(!this.g)return"";for(var a=[],b=this.g.Pa(),c=0;c<b.length;c++){var d=b[c],e=encodeURIComponent(String(d));d=this.ra(d);for(var f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}}return this.l=a.join("&")};h.clone=function(){var a=new sm;a.l=this.l;this.g&&(a.g=this.g.clone(),a.h=this.h);return a};
var Cm=function(a,b){b=String(b);a.o&&(b=b.toLowerCase());return b},ym=function(a,b){b&&!a.o&&(Bm(a),a.l=null,a.g.forEach(function(a,b){var c=b.toLowerCase();b!=c&&(Dm(this,b),Dm(this,c),0<a.length&&(this.l=null,this.g.set(Cm(this,c),nb(a)),this.h+=a.length))},a));a.o=b};var Fm="://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com ://pm.adsafeprotected.com/youtube ://pm.test-adsafeprotected.com/youtube ://e[0-9]+.yt.srs.doubleverify.com www.google.com/pagead/sul www.google.com/pagead/xsul www.youtube.com/pagead/sul www.youtube.com/pagead/psul www.youtube.com/pagead/slav".split(" "),Gm=/\bocr\b/,Hm=0,Im={},Jm=function(a){if(B(Gb(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;
try{var b=new nm(a)}catch(c){return null!=gb(Fm,function(b){return 0<a.search(b)})}return b.v.match(Gm)?!0:null!=gb(Fm,function(b){return null!=a.match(b)})},Nm=function(a,b){if(a&&(a=Km(a),!B(a))){var c='javascript:"<body><img src=\\""+'+a+'+"\\"></body>"';b?Lm(function(b){Mm(b?c:'javascript:"<body><object data=\\""+'+a+'+"\\" type=\\"text/html\\" width=1 height=1 style=\\"visibility:hidden;\\"></body>"')}):Mm(c)}},Mm=function(a){var b=Wc("IFRAME",{src:a,style:"display:none"});a=Oc(b).body;var c=
Rd(function(){Hd(d);Yc(b)},15E3);var d=yd(b,["load","error"],function(){Rd(function(){n.clearTimeout(c);Yc(b)},5E3)});a.appendChild(b)},Lm=function(a){var b=Im.imageLoadingEnabled;if(null!=b)a(b);else{var c=!1;Om(function(b,e){delete Im[e];c||(c=!0,null!=Im.imageLoadingEnabled||(Im.imageLoadingEnabled=b),a(b))})}},Om=function(a){var b=new Image,c=""+Hm++;Im[c]=b;b.onload=function(){clearTimeout(d);a(!0,c)};var d=setTimeout(function(){a(!1,c)},300);b.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="},
Pm=function(a){if(a){var b=document.createElement("OBJECT");b.data=a;b.width="1";b.height="1";b.style.visibility="hidden";var c=""+Hm++;Im[c]=b;b.onload=b.onerror=function(){delete Im[c]};document.body.appendChild(b)}},Qm=function(a){if(a){var b=new Image,c=""+Hm++;Im[c]=b;b.onload=b.onerror=function(){delete Im[c]};b.src=a}},Rm=function(a,b){a&&(b?Lm(function(b){b?Qm(a):Pm(a)}):Qm(a))},Km=function(a){a instanceof Dc||(a=a.Ta?a.Ia():String(a),Fc.test(a)||(a="about:invalid#zClosurez"),a=Gc(a));var b=
Ec(a);if("about:invalid#zClosurez"===b)return"";b instanceof Ic?a=b:(a=null,b.bc&&(a=b.Tb()),b=Bb(b.Ta?b.Ia():String(b)),a=Jc(b,a));a instanceof Ic&&a.constructor===Ic&&a.l===Hc?a=a.g:(Ca(a),a="type_error:SafeHtml");return encodeURIComponent(String(fe(a)))};var Sm=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g,Tm=function(a,b){return a.replace(Sm,function(a,d){try{var c=Va(b,d);if(null==c)return a;c=c.toString();if(""==c||!B(Gb(c)))return encodeURIComponent(c).replace(/%2C/g,",")}catch(f){}return a})};var Um="ad_type vpos mridx pos vad_type videoad_start_delay".split(" ");function Vm(){le.set("GoogleAdServingTest","Good");var a="Good"==le.get("GoogleAdServingTest");a&&(le.get("GoogleAdServingTest"),le.set("GoogleAdServingTest","",0,void 0,void 0));return a};var Wm=["*.youtu.be","*.youtube.com"],Xm="ad.doubleclick.net bid.g.doubleclick.net ggpht.com google.co.uk google.com googleads.g.doubleclick.net googleads4.g.doubleclick.net googleadservices.com googlesyndication.com googleusercontent.com gstatic.com gvt1.com prod.google.com pubads.g.doubleclick.net s0.2mdn.net static.doubleclick.net surveys.g.doubleclick.net youtube.com ytimg.com".split(" "),Ym=["c.googlesyndication.com"];
function Zm(a,b){return(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,"\\.")+")(:[0-9]+)?([/?#]|$)","i")).test(a)}var an=function(a,b){try{var c=(new nm(b)).g;c=c.replace(/^www./i,"");return a.some(function(a){return $m(a,c)})}catch(d){return!1}};function $m(a,b){if(B(Gb(b)))return!1;a=a.toLowerCase();b=b.toLowerCase();return"*."==a.substr(0,2)?(a=a.substr(2),a.length>b.length?!1:b.substr(-a.length)==a&&(b.length==a.length||"."==b.charAt(b.length-a.length-1))):a==b};var bn=function(a,b,c){lf(b,function(b,e){!b&&0!==b||c[e]||(a+="&"+encodeURIComponent(e)+"="+encodeURIComponent(String(b)),c[e]=!0)});return a},hn=function(a,b,c,d,e,f,g,k){f=void 0===f?Infinity:f;g=void 0===g?!1:g;Ng.call(this,a,k);var l=this;this.B=0;this.K=f;this.N=b;this.L=c;this.M=d;this.T=e;this.H=!("csi.gstatic.com"!==this.L||!this.g.navigator||!this.g.navigator.sendBeacon);this.C={};this.g.performance&&this.g.performance.now||cn(this,"dat",1);this.g.navigator&&this.g.navigator.deviceMemory&&
cn(this,"dmc",this.g.navigator.deviceMemory);this.G=!g;this.F=function(){l.g.setTimeout(function(){return dn(l)},1100)};this.U=[];this.J=function(){A(l.U,function(a){try{a()}catch(y){}});dn(l)};this.I=this.g.setTimeout(function(){return dn(l)},5E3);this.l={};this.v=b.length+c.length+d.length+e.length+3;this.o=0;A(this.events,function(a){return en(l,a)});fn(this);gn(this)};ha(hn,Ng);
var gn=function(a){"complete"===a.g.document.readyState?a.g.setTimeout(function(){return dn(a)},0):xf(a.g,"load",a.F);xf(a.g,"unload",a.J)},cn=function(a,b,c){c=String(c);a.v=null!=a.C[b]?a.v+(c.length-a.C[b].length):a.v+(b.length+c.length+2);a.C[b]=c},jn=function(a,b,c,d,e){e=void 0===e?"":e;var f=null==a.l[b]?b.length+c.length+2:d?c.length+e.length:c.length-a.l[b].length;8E3<a.v+a.o+f&&(dn(a),f=b.length+c.length+2);a.l[b]=d&&null!=a.l[b]?a.l[b]+(""+e+c):c;a.o+=f;6E3<=a.v+a.o&&dn(a)},dn=function(a){if(a.h&&
a.G){try{if(a.o){var b=a.l;a.B++;var c=a.N+"//"+a.L+a.M+a.T,d={};c=bn(c,a.C,d);c=bn(c,b,d);a.g.google_timing_params&&(c=bn(c,a.g.google_timing_params,d),a.g.google_timing_params=void 0);var e=c;b=!1;try{b=a.H&&a.g.navigator&&a.g.navigator.sendBeacon(e,null)}catch(f){a.H=!1}b||Af(a.g,e,void 0);fn(a);a.B===a.K&&a.w()}}catch(f){(new Vg).g(358,f)}a.l={};a.o=0;a.events.length=0;a.g.clearTimeout(a.I);a.I=0}},fn=function(a){cn(a,"puid",(a.B+1).toString(36)+"~"+x().toString(36))},en=function(a,b){var c="met."+
b.type,d=r(b.value)?Math.round(b.value).toString(36):b.value,e=Math.round(b.duration);b=""+b.label+(null!=b.slotId?"_"+b.slotId:"")+("."+d)+(0<e?"_"+e.toString(36):"");jn(a,c,b,!0,"~")};hn.prototype.A=function(a){this.h&&this.B<this.K&&(Ng.prototype.A.call(this,a),en(this,a))};hn.prototype.w=function(){Ng.prototype.w.call(this);this.g.clearTimeout(this.I);this.o=this.I=0;this.l={};yf(this.g,"load",this.F);yf(this.g,"unload",this.J)};var ln=function(){this.g=new hn(1,"https:","csi.gstatic.com","/csi?v=2&s=","ima",void 0,!0);kn(this,"c",Ti());this.h="0"},kn=function(a,b,c){null!=c&&cn(a.g,b,c)};Ba(ln);var ima={};var mn=function(a){this.h=a};mn.prototype.g=function(){return this.h};var nn=function(){G.call(this);this.currentTime=0};z(nn,G);var on=function(a,b,c){this.l=b;this.h=c;this.o=a};z(on,Error);h=on.prototype;h.ce=function(){return this.g};h.de=function(){return this.l};h.be=function(){return this.h};h.Nd=function(){return 1E3>this.h?this.h:900};h.ee=function(){return this.o};h.toString=function(){return"AdError "+this.h+": "+this.l+(null!=this.g?" Caused by: "+this.g:"")};
var pn=function(a){for(var b=new on(a.type,a.errorMessage,a.errorCode),c=b,d=a.innerError,e=0;3>e;++e)if(d instanceof Object){var f=new on(d.type,d.errorMessage,d.errorCode);c=c.g=f;d=d.innerError}else{null!=d&&(c.g=Error(a.innerError));break}return b};var qn=function(a,b){jd.call(this,"adError");this.h=a;this.o=b?b:null};z(qn,jd);qn.prototype.v=function(){return this.h};qn.prototype.w=function(){return this.o};var S=function(a,b,c){jd.call(this,a);this.v=b;this.o=null!=c?c:null};z(S,jd);S.prototype.C=function(){return this.v};S.prototype.A=function(){return this.o};var rn=function(a){this.g=a},un=function(){var a=sn(T);return tn(a,"disableExperiments")},tn=function(a,b){return Qa(a.g,b)&&(a=a.g[b],wa(a))?a:!1},vn=function(a){if(Qa(a.g,"forceExperimentIds")){a=a.g.forceExperimentIds;var b=[],c=0;Da(a)&&a.forEach(function(a){r(a)&&(b[c++]=a)});return b}return null};var V=function(){this.I="always";this.A=4;this.H=1;this.g=0;this.l=!0;this.h=!1;this.C="en";this.U=this.F=!1;this.B=this.w="";this.G=null;this.K=!0;this.X=this.N=-1;this.W=this.M=this.J="";this.o=!1;this.v=!0;try{this.oa=Vl(void 0)[0]}catch(a){}},wn="af am ar bg bn ca cs da de el en en_gb es es_419 et eu fa fi fil fr fr_ca gl gu he hi hr hu id in is it iw ja kn ko lt lv ml mr ms nb nl no pl pt_br pt_pt ro ru sk sl sr sv sw ta te th tr uk ur vi zh_cn zh_hk zh_tw zu".split(" "),xn=function(a){a=Gb(a);
B(a)||(a=a.substring(0,20));return a};h=V.prototype;h.hf=function(a){this.I=a};h.Ze=function(){return this.I};h.mf=function(a){this.A=a};h.$e=function(){return this.A};h.qf=function(a){this.T=a};h.cf=function(){return this.T};h.sf=function(a){wa(a)&&(this.H=a?1:0)};h.tf=function(a){this.H=a};h.gf=function(a){this.l=a};h.df=function(){return this.l};h.Vf=function(){return!1};h.Uf=function(){return!1};h.rf=function(a){this.h=a};h.Bf=function(){return this.h};h.Tf=function(){return!0};h.fa=function(){return!1};
h.ec=function(){return!1};h.Af=function(){return!1};h.jf=function(a){this.F=a};h.ff=function(){return this.F};h.kf=function(a){this.U=a};h.Jb=function(){return this.U};h.dc=function(){return!1};h.Rf=function(){return!1};h.lf=function(a){if(null!=a){a=a.toLowerCase().replace("-","_");if(!wn.includes(a)&&(a=(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):"",!wn.includes(a)))return;this.C=a}};h.Ld=function(){return this.C};h.nf=function(a){this.w=xn(a)};h.af=function(){return this.w};
h.pf=function(a){this.B=xn(a)};h.bf=function(){return this.B};var sn=function(a){if(null==a.G){var b={},c=(new nm(F().location.href)).h;if(Em(c,"tcnfp"))try{b=JSON.parse(c.get("tcnfp"))}catch(d){}a.G=new rn(b)}return a.G};V.prototype.ea=function(a){this.K=a};V.prototype.aa=function(){return this.K};V.prototype.Fa=function(a){this.N=a};V.prototype.ma=function(a){this.X=a};var An=function(){var a=T;yn();a.J=zn[1]||""},Bn=function(){var a=T;yn();a.W=zn[6]||""},Cn=function(){var a=T;yn();a.M=zn[4]||""};
V.prototype.da=function(a){this.o=a};V.prototype.ha=function(){return this.o};V.prototype.ca=function(a){this.v=a};var T=new V;var Dn={sg:"application/dash+xml",eh:"video/mp4",gh:"video/mpeg",$g:"application/x-mpegURL",kh:"video/ogg",Uh:"video/3gpp",ii:"video/webm",bh:"audio/mpeg",fh:"audio/mp4"};var En=["*.googlesyndication.com","gcdn.2mdn.net"];var Fn=function(a){try{a:{var b=a,c=void 0,d=b.length-11-2;if(!(-1==b.indexOf("URL_SIGNALS")||2048<=d||!c&&!window.Goog_AdSense_Lidar_getUrlSignalsArray)){c=c||window.Goog_AdSense_Lidar_getUrlSignalsArray();d={};for(var e=0;e<c.length;++e){d.URL_SIGNALS=c[e];var f=Tm(b,d);if(2048>f.length){a=f;break a}}}a=b}}catch(m){}try{f=a;var g=window.location.protocol;g=void 0===g?window.location.protocol:g;b=!1;Zm(f,Ym)?b=!1:(null==f?0:an(Wm,f))?b=!0:"https:"==g&&Zm(f,Xm)&&(b=!0);if(b){var k=new nm(f);"https"==
k.o?a=f:(om(k,"https"),a=k.toString())}else a=f;var l=!T.fa();(g=a)&&(Jm(g)?Nm(g,l):Rm(g,l))}catch(m){}};var Gn=function(a,b){this.message=a;this.g=b},Hn=new Gn("Invalid usage of the API. Cause: {0}",900),In=new Gn("Failed to initialize ad playback element before starting ad playback.",400),Jn=new Gn("The provided {0} information: {1} is invalid.",1101),Kn=function(a,b,c){var d=b||null;if(!(d instanceof on)){var e=a.g,f=a.message,g=Array.prototype.slice.call(arguments,2);if(0<g.length)for(var k=0;k<g.length;k++)f=f.replace(new RegExp("\\{"+k+"\\}","ig"),g[k]);e=new on("adPlayError",f,e);e.g=d;d=e}return d};var Ln=function(a){gd.call(this);this.v=a;this.l={}};z(Ln,gd);var Mn=[];Ln.prototype.h=function(a,b,c,d){return Nn(this,a,b,c,d)};var Nn=function(a,b,c,d,e,f){Da(c)||(c&&(Mn[0]=c.toString()),c=Mn);for(var g=0;g<c.length;g++){var k=zd(b,c[g],d||a.handleEvent,e||!1,f||a.v||a);if(!k)break;a.l[k.key]=k}return a},On=function(a,b,c,d,e,f){if(Da(c))for(var g=0;g<c.length;g++)On(a,b,c[g],d,e,f);else(b=yd(b,c,d||a.handleEvent,e,f||a.v||a))&&(a.l[b.key]=b)};
Ln.prototype.I=function(a,b,c,d,e){if(Da(b))for(var f=0;f<b.length;f++)this.I(a,b[f],c,d,e);else c=c||this.handleEvent,d=Ga(d)?!!d.capture:!!d,e=e||this.v||this,c=Ad(c),d=!!d,b=nd(a)?ud(a.C,String(b),c,d,e):a?(a=Cd(a))?ud(a,b,c,d,e):null:null,b&&(Hd(b),delete this.l[b.key])};var Pn=function(a){Ka(a.l,function(a,c){this.l.hasOwnProperty(c)&&Hd(a)},a);a.l={}};Ln.prototype.P=function(){Ln.ba.P.call(this);Pn(this)};
Ln.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var Qn=function(a){nn.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||isNaN(a.currentTime))throw Kn(Jn,null,"content","currentTime");this.duration="duration"in a&&!isNaN(a.duration)?a.duration:-1;this.l=a;this.g=new Od(250);this.o=new Ln(this);Nn(this.o,this.g,"tick",this.v,!1,this)};z(Qn,nn);Qn.prototype.start=function(){this.g.start()};Qn.prototype.P=function(){Qn.ba.P.call(this);this.o.V();this.g.V()};
Qn.prototype.v=function(){if("currentTime"in this.l&&!isNaN(this.l.currentTime)){var a=this.currentTime;this.currentTime=this.l.currentTime;a!=this.currentTime&&H(this,new jd("currentTimeUpdate"))}else H(this,new jd("contentWrapperError")),Qd(this.g)};var Rn=function(){this.loadVideoTimeout=T.fa()?15E3:8E3};h=Rn.prototype;h.autoAlign=!0;h.baseYouTubeUrl=null;h.bitrate=-1;h.uiElements=null;h.contentId=null;h.disableClickThrough=!1;h.enablePreloading=!1;h.customPlayerSupportsPreloading=!1;h.mimeTypes=null;h.restoreCustomPlaybackStateOnAdBreakComplete=!1;h.useLearnMoreButton=!1;h.useMuteToggleButton=!1;h.useStyledLinearAds=!1;h.useStyledNonLinearAds=!1;h.playAdsAfterTime=-1;h.useVideoAdUi=!0;h.enableVideoTouchMove=!1;h.youTubeAdNamespace=0;
h.loadVideoTimeout=8E3;h.disableUi=!1;var Sn=function(a,b,c){this.g=a;this.h=Math.min(Math.max(b||0,0),1);this.l=null!=c?c:!0};var Tn=function(a){this.l=a;this.h=new km;this.g=null},Un=function(a){var b=Math.random(),c=0,d=a.h.ra();d.forEach(function(a){c+=a.h});var e=1<c?c:1;a.g=null;for(var f=0,g=0;g<d.length;++g)if(f+=d[g].h,f/e>=b){a.g=d[g];break}};var Xn=function(){this.h=null!=n.G_testRunner;this.g=new km;W(this,"GvnExternalLayer",31061774,.01);W(this,"GvnExternalLayer",605457011,.01);W(this,"GvnExternalLayer",605457010,.01);W(this,"GvnExternalLayer",31061775,.01);W(this,"GvnExternalLayer",605457E3,.01);W(this,"GvnExternalLayer",605457001,.01);W(this,"GvnExternalLayer",41341310,0);W(this,"GvnExternalLayer",41341311,0);W(this,"GvnExternalLayer",420706068,.01);W(this,"GvnExternalLayer",420706069,.01);W(this,"GvnExternalLayer",41351070,.01);
W(this,"GvnExternalLayer",41351071,.01);W(this,"ActiveViewExternalLayer",668123010,.01);W(this,"ActiveViewExternalLayer",668123011,.01);W(this,"ActiveViewExternalLayer",668123008,.01);W(this,"ActiveViewExternalLayer",668123009,.01);W(this,"ActiveViewExternalLayer",668123028,.01);W(this,"ActiveViewExternalLayer",668123029,.01);W(this,"ActiveViewExternalLayer",953563515,.01);W(this,"ActiveViewExternalLayer",953563516,.01);W(this,"ActiveViewExternalLayer",953563517,.01);W(this,"GvnExternalLayer",634360304,
.05);W(this,"GvnExternalLayer",634360307,.05);W(this,"GvnExternalLayer",634360309,.01);W(this,"GvnExternalLayer",634360310,.01);W(this,"GvnExternalLayer",413051065,.01);W(this,"GvnExternalLayer",413051066,.01);W(this,"GvnExternalLayer",651800003,.01);W(this,"GvnExternalLayer",651800004,.01);W(this,"GvnExternalLayer",667080011,.01);W(this,"GvnExternalLayer",667080012,.01);W(this,"GvnExternalLayer",231422001,.01);W(this,"GvnExternalLayer",231422002,.01);W(this,"GvnExternalLayer",667080009,0);W(this,
"GvnExternalLayer",667080010,0);W(this,"GvnExternalLayer",4081988,0);W(this,"GvnExternalLayer",4081989,.01);W(this,"GvnExternalLayer",651800005,.01);W(this,"GvnExternalLayer",651800006,.01);W(this,"GvnExternalLayer",328840010,.01);W(this,"GvnExternalLayer",328840011,.01);W(this,"GvnExternalLayer",231422003,.01);W(this,"GvnExternalLayer",231422004,.01);Vn(this);var a=sn(T);a=vn(a);null!=a&&(this.h=!1,Wn(this,a.map(String)))},Yn=["ActiveViewExternalLayer"],Zn=null,$n=function(){Zn||(Zn=new Xn);return Zn},
W=function(a,b,c,d){B(Gb(b))||isNaN(c)||0>=c||(c=new Sn(c,d),ao(a,b).h.set(c.g,c))},Vn=function(a){un()||T.dc()||a.g.ra().forEach(function(a){Un(a)})},Wn=function(a,b){b.forEach(function(b){var c=Number(b);b="FORCED_PUB_EXP_LAYER_"+b;isNaN(c)||0>=c||B(Gb(b))||(ao(a,b).g=new Sn(c,0,!0))})},bo=function(){var a={};$n().g.ra().forEach(function(b){var c=b.g;if(c){var d={};d.experimentId=c.g;d.shouldReport=c.l;a[b.l]=d}else a[b.l]={}});return a},co=function(a,b){return a.h?!1:a.g.ra().some(function(a){return!!a.g&&
a.g.g==b})},eo=function(a){var b=[634360307,634360310];return a.h?!1:b.some(function(a){return co($n(),a)})},fo=function(){var a=$n();if(a.h)return"";var b=[];a.g.ra().forEach(function(a){(a=a.g)&&a.l&&b.push(a.g)});return b.sort().join(",")},ao=function(a,b){var c=a.g.get(b);null==c&&(c=new Tn(b),a.g.set(b,c));return c},go=function(){var a=[],b=$n();Yn.forEach(function(c){(c=(c=ao(b,c))?c.g:null)&&a.push(c.g)});return a};var ho="abort canplay canplaythrough durationchange emptied loadstart loadeddata loadedmetadata progress ratechange seeked seeking stalled suspend waiting".split(" ");var io=function(a){return(a=a.exec(Ob))?a[1]:""};(function(){if(Vd)return io(/Firefox\/([0-9.]+)/);if(cc||dc||bc)return oc;if(Zd)return Xb()||C("iPad")||C("iPod")?io(/CriOS\/([0-9.]+)/):io(/Chrome\/([0-9.]+)/);if($d&&!(Xb()||C("iPad")||C("iPod")))return io(/Version\/([0-9.]+)/);if(Wd||Xd){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Ob);if(a)return a[1]+"."+a[2]}else if(Yd)return(a=io(/Android\s+([0-9.]+)/))?a:io(/Version\/([0-9.]+)/);return""})();var jo={},ko="",lo=/OS (\S+) like/,mo=/Android ([\d\.]+)/,oo=function(){return co($n(),605457001)||C("Macintosh")&&Ub()&&0<=Ib(Wb(),11)||!th()&&!sh()&&Tb()&&0<=Ib(Wb(),65)||!no()&&(th()||sh())?!0:!1},po=function(){return hc&&!ic||Db(Ob,"iPod")},qo=function(){return po()||ic},so=function(a){return qo()&&ro(lo,a)},to=function(a){return gc&&ro(mo,a)},ro=function(a,b){null==jo[b]&&(B(ko)&&(a=a.exec(Ob))&&(ko=a[1]),(a=ko)?(a=a.replace(/_/g,"."),jo[b]=0<=Ib(a,b)):jo[b]=!1);return jo[b]},no=function(){return T.fa()||
!1},uo=function(){var a=Ob;return a?Db(a,"Nintendo WiiU"):!1},vo=function(){return Yd||no()&&gc&&!to(4.4)},wo=function(a){return no()||T.Jb()&&oo()||qo()&&(!(ic||so(10)&&T.o)||!a)||gc&&!to(4)||Bk()?!0:!1};var xo=function(){this.l=-1;this.h=this.g=null},yo=new xo;xo.prototype.clear=function(){this.h=this.g=null};var zo=function(){var a="h.3.211.3";null!=yo.h?(a+="/n."+yo.h,null!=yo.g&&(a+="/"+yo.g)):T.fa()&&(a+="/o.0.0.0");return a};var Ao=function(){this.h=.01>Math.random();this.g=Math.floor(4503599627370496*Math.random())};Ba(Ao);
var Eo=function(a,b,c,d){if(null==n.G_testRunner&&(a.h||d)){c=c||{};c.lid=b;c.sdkv=zo();b=fo();B(Gb(b))||(c.e=b);c=Bo(a,c);var e=new nm("http://pagead2.googlesyndication.com/pagead/gen_204");Ka(c,function(a,b){e.h.set(b,null==a?"":"boolean"==typeof a?a?"t":"f":""+a)},a);a=Co();om(e,a.o);T.dc()||(a=e.toString(),b=e.h.get("url"),null!=b&&Sb()&&2083<a.length&&(a=Do(e,b)),Fn(a))}},Do=function(a,b){a.h.set("url","");try{var c=2083-a.toString().length-1;if(0>=c)return a.toString();for(var d=b.slice(0,c),
e=encodeURIComponent(d),f=c;0<f&&e.length>c;)d=b.slice(0,f--),e=encodeURIComponent(d);a.h.set("url",d)}catch(g){}return a.toString()},Bo=function(a,b){b.id="ima_html5";var c=Co();b.c=a.g;b.domain=c.g;return b},Co=function(){var a=F(),b=document;return new nm(a.parent==a?a.location.href:b.referrer)};var Fo=function(){G.call(this);this.A=this.F=this.J=this.G=!1;this.l=0;this.v=[];this.B=!1;this.N=this.M=Infinity;this.o=0;this.w=new Ln(this);this.H={}};z(Fo,G);
var Ho=function(a,b){null==b||a.G||(a.g=b,Go(a),a.G=!0)},Jo=function(a){null!=a.g&&a.G&&(Io(a),a.G=!1,a.F=!1,a.A=!1,a.l=0,a.v=[],a.B=!1)},Go=function(a){Io(a);!(a.g instanceof G)&&"ontouchstart"in document.documentElement&&qo()?(a.H={touchstart:w(a.ha,a),touchmove:w(a.W,a),touchend:w(a.X,a)},Ka(a.H,function(a,c){this.g.addEventListener(c,a,!1)},a)):a.w.h(a.g,"click",a.U)},Io=function(a){a.w.I(a.g,"click",a.U);Ka(a.H,function(a,c){this.g.removeEventListener(c,a,!1)},a);a.H={}};
Fo.prototype.ha=function(a){this.F=!0;this.l=a.touches.length;this.o&&(window.clearTimeout(this.o),this.o=0,this.J=!0);(this.B=Ko(this,a.touches)||1!=a.touches.length)?this.N=this.M=Infinity:(this.M=a.touches[0].clientX,this.N=a.touches[0].clientY);a=a.touches;this.v=[];for(var b=0;b<a.length;b++)this.v.push(a[b].identifier)};
Fo.prototype.W=function(a){this.l=a.touches.length;if(!so(8)||Math.pow(a.changedTouches[0].clientX-this.M,2)+Math.pow(a.changedTouches[0].clientY-this.N,2)>Math.pow(5,2))this.A=!0};Fo.prototype.X=function(a){!this.F||1!=this.l||this.A||this.J||this.B||!Ko(this,a.changedTouches)||(this.o=window.setTimeout(w(this.T,this),300));this.l=a.touches.length;0==this.l&&(this.A=this.F=!1,this.v=[]);this.J=!1};Fo.prototype.U=function(){this.T()};
var Ko=function(a,b){for(var c=0;c<b.length;c++)if(a.v.includes(b[c].identifier))return!0;return!1};Fo.prototype.T=function(){this.o=0;H(this,new jd("click"))};Fo.prototype.P=function(){Jo(this);this.w.V();this.w=null;Fo.ba.P.call(this)};var Lo=function(a){G.call(this);this.g=a||"goog_"+Jb++;this.o=[]};z(Lo,G);Lo.prototype.l=!1;Lo.prototype.connect=function(){for(this.l=!0;0!=this.o.length;){var a=this.o.shift();this.sendMessage(a.name,a.type,a.data)}};var Mo=function(a,b,c,d){a.l?a.sendMessage(b,c,d):a.o.push({name:b,type:c,data:d})},No=function(a,b,c,d,e){jd.call(this,a);this.ka=b;this.ia=c;this.Fb=d;this.dd=e};z(No,jd);No.prototype.toString=function(){return""};var Oo=function(a,b){Lo.call(this,b);this.v=a;this.va=null;this.w=new Ln(this);this.w.h(F(),"message",this.A)};z(Oo,Lo);var Po=function(a){if(null==a||!q(a)||0!=a.lastIndexOf("ima://",0))return null;a=a.substr(6);try{return JSON.parse(a)}catch(b){return null}};Oo.prototype.sendMessage=function(a,b,c){null!=this.va&&null!=this.va.postMessage&&this.va.postMessage(Qo(this,a,b,c),"*");null!=this.va&&null==this.va.postMessage&&Eo(Ao.D(),11)};Oo.prototype.P=function(){this.w.V();Oo.ba.P.call(this)};
Oo.prototype.A=function(a){a=a.h;var b=Po(a.data);if(Ro(this,b)){if(null==this.va)this.va=a.source,this.l||this.connect();else if(this.va!=a.source)return;Ro(this,b)&&H(this,new No(b.name,b.type,b.data||{},b.sid,a.origin))}};var Qo=function(a,b,c,d){var e={};e.name=b;e.type=c;null!=d&&(e.data=d);e.sid=a.g;e.channel=a.v;return"ima://"+fe(e)},Ro=function(a,b){if(null==b)return!1;var c=b.channel;if(null==c||c!=a.v)return!1;b=b.sid;return null==b||"*"!=a.g&&b!=a.g?!1:!0};var So=function(a,b){G.call(this);this.v=a;this.o=b;this.g={};this.l=new Ln(this);this.l.h(F(),"message",this.w)};z(So,G);var To=function(a,b){var c=b.h;a.g.hasOwnProperty(c)&&Mo(a.g[c],b.type,b.ka,b.ia)},Vo=function(a,b,c,d){a.g.hasOwnProperty(b)||(c=new Oo(b,c),a.l.h(c,a.v,function(a){H(this,new Uo(a.type,a.ka,a.ia,a.Fb,a.dd,b))}),c.va=d,c.connect(),a.g[b]=c)};So.prototype.P=function(){this.l.V();for(var a in this.g)id(this.g[a]);So.ba.P.call(this)};
So.prototype.w=function(a){a=a.h;var b=Po(a.data);if(null!=b){var c=b.channel;if(this.o&&!this.g.hasOwnProperty(c)){var d=b.sid;Vo(this,c,d,a.source);H(this,new Uo(b.name,b.type,b.data||{},d,a.origin,c))}}};var Uo=function(a,b,c,d,e,f){No.call(this,a,b,c,d,e);this.h=f};z(Uo,No);var Xo=function(){var a=za("google.ima.gptProxyInstance",F());if(null!=a)return a;Ln.call(this);this.o=new So("gpt",!0);hd(this,Ja(id,this.o));this.h(this.o,"gpt",this.C);this.g=null;Wo()||F().top===F()||(this.g=new So("gpt",!1),hd(this,Ja(id,this.g)),this.h(this.g,"gpt",this.w))};z(Xo,Ln);var Wo=function(){return!!za("googletag.cmd",F())},Yo=function(){var a=za("googletag.console",F());return null!=a?a:null};
Xo.prototype.C=function(a){var b=a.dd,c="//imasdk.googleapis.com".match(me);b=b.match(me);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.g)Vo(this.g,a.h,a.Fb,F().parent),null!=this.g&&To(this.g,a);else if(c=a.ia,null!=c&&p(c.scope)){b=c.scope;c=c.args;var d;if("proxy"==b)c=a.ka,"isGptPresent"==c?d=Wo():"isConsolePresent"==c&&(d=null!=Yo());else if(Wo())if("pubads"==b||"companionAds"==b){d=a.ka;var e=F().googletag;if(null!=e&&null!=e[b]&&(e=e[b](),null!=e&&(d=e[d],null!=d)))try{var f=d.apply(e,c)}catch(g){}d=
f}else if("console"==b){if(f=Yo(),null!=f&&(e=f[a.ka],null!=e))try{e.apply(f,c)}catch(g){}}else if(null===b){d=a.ka;f=F();if(["googleGetCompanionAdSlots","googleSetCompanionAdContents"].includes(d)&&(d=f[d],null!=d))try{e=d.apply(f,c)}catch(g){}d=e}p(d)&&(a.ia.returnValue=d,To(this.o,a))}};Xo.prototype.w=function(a){To(this.o,a)};var Zo=function(){G.call(this)};z(Zo,G);var $o={ig:"autoplayDisallowed",kg:"beginFullscreen",CLICK:"click",yg:"end",zg:"endFullscreen",Ag:"error",LOADED:"loaded",ah:"mediaLoadTimeout",Bc:"pause",Bh:"play",Qh:"skip",Rh:"skipShown",Cc:"start",Yh:"timeUpdate",Wh:"timedMetadata",hi:"volumeChange"};Zo.prototype.Tc=function(){return!0};Zo.prototype.reset=function(a){this.gc()||this.vb()||this.pause();qo()&&!a&&(this.kb(.001),this.load("",""));po()&&this.gb()&&!a&&this.Rb()};var ap=function(){this.v=this.L=this.o=this.l=this.h=null;this.I=this.K=this.B=this.A=this.C=!1;this.timeout=-1;this.g=!1;this.w=null};var cp=function(a,b){var c=Array.prototype.slice.call(arguments),d=c.shift();if("undefined"==typeof d)throw Error("[goog.string.format] Template required");return d.replace(/%([0\- \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(a,b,d,k,l,m,y,J){if("%"==m)return"%";var e=c.shift();if("undefined"==typeof e)throw Error("[goog.string.format] Not enough arguments");arguments[0]=e;return bp[m].apply(null,arguments)})},bp={s:function(a,b,c){return isNaN(c)||""==c||a.length>=Number(c)?a:a=-1<b.indexOf("-",0)?
a+Eb(" ",Number(c)-a.length):Eb(" ",Number(c)-a.length)+a},f:function(a,b,c,d,e){d=a.toString();isNaN(e)||""==e||(d=parseFloat(a).toFixed(e));var f=0>Number(a)?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=Number(a)&&(d=f+d);if(isNaN(c)||d.length>=Number(c))return d;d=isNaN(e)?Math.abs(Number(a)).toString():Math.abs(Number(a)).toFixed(e);a=Number(c)-d.length-f.length;return d=0<=b.indexOf("-",0)?f+d+Eb(" ",a):f+Eb(0<=b.indexOf("0",0)?"0":" ",a)+d},d:function(a,b,c,d,e,f,g,k){return bp.f(parseInt(a,
10),b,c,d,0,f,g,k)}};bp.i=bp.d;bp.u=bp.d;var fp=function(a,b){G.call(this);this.o=new Ln(this);this.G=!1;this.H="goog_"+Jb++;this.F=new km;var c=this.H,d;(d=T.fa())||(d=!1);d=d?(qf()?"https:":"http:")+cp("//imasdk.googleapis.com/js/core/admob/bridge_%s.html",T.C):(qf()?"https:":"http:")+cp("//imasdk.googleapis.com/js/core/bridge3.211.3_%s.html",T.C);a:{var e=window;try{do{try{if(0==e.location.href.indexOf(d)||0==e.document.referrer.indexOf(d)){var f=!0;break a}}catch(g){}e=e.parent}while(e!=e.top)}catch(g){}f=!1}f&&(d+="?f="+c);c=Wc("IFRAME",
{src:d+"#"+c,allowFullscreen:!0,allow:"autoplay",style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});On(this.o,c,"load",this.Jd,void 0);a.appendChild(c);this.l=c;this.A=dp(this);this.B=b;this.g=this.B.h;this.w=this.v=null;this.o.h(this.A,"mouse",this.J);this.o.h(this.A,"touch",this.N);null!=this.g&&(this.o.h(this.A,"displayContainer",this.Qd),this.o.h(this.A,"videoDisplay",this.M),this.o.h(this.A,"preloadVideoDisplay",this.Rd),ep(this,this.g,this.xb));a=F();b=za("google.ima.gptProxyInstance",
a);null==b&&(b=new Xo,u("google.ima.gptProxyInstance",b,a))};z(fp,G);var dp=function(a,b){b=b||"*";var c=a.F.get(b);null==c&&(c=new Oo(a.H,b),a.G&&(c.va=ad(a.l),c.connect()),a.F.set(b,c));return c},hp=function(a,b){null!=a.g&&gp(a,a.g,a.xb);a.g=b;ep(a,a.g,a.xb)};fp.prototype.P=function(){this.o.V();null!==this.w&&(this.w.V(),this.w=null);Li(this.F.pb(!1),function(a){a.V()});this.F.clear();Yc(this.l);fp.ba.P.call(this)};
fp.prototype.J=function(a){var b=a.ia,c=Je(this.l),d=document.createEvent("MouseEvent");d.initMouseEvent(a.ka,!0,!0,window,b.detail,b.screenX,b.screenY,b.clientX+c.x,b.clientY+c.y,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,null);if(!$d||qo()||0==document.webkitIsFullScreen)this.l.blur(),window.focus();this.l.dispatchEvent(d)};
var ip=function(a,b){var c=Je(a.l),d=!!("TouchEvent"in window&&0<TouchEvent.length);b=b.map(function(b){return d?new Touch({identifier:b.identifier,target:a.l,clientX:b.clientX,clientY:b.clientY,screenX:b.screenX,screenY:b.screenY,pageX:b.pageX+c.x,pageY:b.pageY+c.y}):document.createTouch(window,a.l,b.identifier,b.pageX+c.x,b.pageY+c.y,b.screenX,b.screenY)});return d?b:document.createTouchList.apply(document,b)};
fp.prototype.N=function(a){var b=a.ia,c=Je(this.l);if("TouchEvent"in window&&0<TouchEvent.length)b={bubbles:!0,cancelable:!0,view:window,detail:b.detail,ctrlKey:b.ctrlKey,altKey:b.altKey,shiftKey:b.shiftKey,metaKey:b.metaKey,touches:ip(this,b.touches),targetTouches:ip(this,b.targetTouches),changedTouches:ip(this,b.changedTouches)},a=new TouchEvent(a.ka,b),this.l.dispatchEvent(a);else{var d=document.createEvent("TouchEvent");d.initTouchEvent(a.ka,!0,!0,window,b.detail,b.screenX,b.screenY,b.clientX+
c.x,b.clientY+c.y,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,ip(this,b.touches),ip(this,b.targetTouches),ip(this,b.changedTouches),b.scale,b.rotation);this.l.dispatchEvent(d)}};
fp.prototype.M=function(a){if(null!=this.g){var b=a.ia;switch(a.ka){case "startTracking":this.g.Zb();break;case "stopTracking":this.g.fb();break;case "exitFullscreen":this.g.Rb();break;case "play":this.g.ub();break;case "pause":this.g.pause();break;case "load":this.g.load(b.videoUrl,b.mimeType);break;case "setCurrentTime":this.g.kb(b.currentTime);break;case "setPlaybackOptions":this.g.wc(jp(b));break;case "setVolume":this.g.Gb(b.volume)}}};
var jp=function(a){a=a.playbackOptions;var b=new ap;b.h=a.adFormat;b.o=a.adSenseAgcid;b.L=a.contentVideoDocId;b.v=a.ctaAnnotationTrackingEvents;a.showAnnotations&&(b.B=!0);a.viewCountsDisabled&&(b.K=!0);b.timeout=a.loadVideoTimeout;a.ibaDisabled&&(b.C=!0);a.enablePreloading&&(b.g=!0);b.l=a.adQemId;a.isPharma&&(b.A=!0);a.useAutoplayFlag&&(b.I=!0);b.w=a.endscreenAdTracking;return b};h=fp.prototype;
h.Rd=function(a){if(null!=this.v){var b=a.ia;switch(a.ka){case "startTracking":this.v.Zb();break;case "stopTracking":this.v.fb();break;case "setPlaybackOptions":this.v.wc(jp(b));break;case "load":this.v.load(b.videoUrl,b.mimeType)}}};h.rc=function(a){switch(a.type){case "error":a="error";break;case "loaded":a="loaded";break;default:return}Mo(this.A,"preloadVideoDisplay",a,{})};
h.xb=function(a){var b={};switch(a.type){case "autoplayDisallowed":a="autoplayDisallowed";break;case "beginFullscreen":a="fullscreen";break;case "endFullscreen":a="exitFullscreen";break;case "click":a="click";break;case "end":a="end";break;case "error":a="error";break;case "loaded":a="loaded";break;case "mediaLoadTimeout":a="mediaLoadTimeout";break;case "pause":a="pause";b.ended=this.g.vb();break;case "play":a="play";break;case "skip":a="skip";break;case "start":a="start";break;case "timeUpdate":a=
"timeupdate";b.currentTime=this.g.xa();b.duration=this.g.sb();break;case "volumeChange":a="volumeChange";b.volume=this.g.Pc();break;case "loadedmetadata":a=a.type;b.duration=this.g.sb();break;case "abort":case "canplay":case "canplaythrough":case "durationchange":case "emptied":case "loadstart":case "loadeddata":case "progress":case "ratechange":case "seeked":case "seeking":case "stalled":case "suspend":case "waiting":a=a.type;break;default:return}Mo(this.A,"videoDisplay",a,b)};
h.Qd=function(a){switch(a.ka){case "showVideo":null==this.w?(this.w=new Fo,this.o.h(this.w,"click",this.Lf)):Jo(this.w);Ho(this.w,kp(this.B));a=this.B;null!=a.g&&a.g.show();break;case "hide":null!==this.w&&(this.w.V(),this.w=null);a=this.B;null!=a.g&&lp(a.g.g,!1);break;case "getPreloadDisplay":null!=this.g&&null==this.v&&(this.v=this.B.l,ep(this,this.v,this.rc));break;case "swapVideoDisplays":if(null!=this.g&&null!=this.v){gp(this,this.g,this.xb);gp(this,this.v,this.rc);a=this.B;if(a.g&&a.h&&a.o&&
a.l){var b=a.h;a.h=a.l;a.l=b;b=a.g;a.g=a.o;a.o=b;null!=a.C&&hp(a.C,a.h)}this.g=this.B.h;this.v=this.B.l;ep(this,this.g,this.xb);ep(this,this.v,this.rc)}}};h.Lf=function(){Mo(this.A,"displayContainer","videoClick")};h.Jd=function(){Li(this.F.pb(!1),function(a){a.va=ad(this.l);a.connect()},this);this.G=!0};var ep=function(a,b,c){a.o.h(b,Na($o),c);a.o.h(b,ho,c)},gp=function(a,b,c){a.o.I(b,Na($o),c);a.o.I(b,ho,c)};var mp=function(a){if(B(Gb(a)))return null;var b=a.match(/^https?:\/\/[^\/]*youtu\.be\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];b=a.match(/^https?:\/\/[^\/]*youtube.com\/video\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];b=a.match(/^https?:\/\/[^\/]*youtube.com\/watch\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];a=(new nm(a)).h;return Em(a,"v")?a.get("v").toString():Em(a,"video_id")?a.get("video_id").toString():null};var np=function(){};np.prototype.allowCustom=!0;var op={Sg:"Image",Fg:"Flash",pd:"All"},pp={Ng:"Html",Qg:"IFrame",Sh:"Static",pd:"All"},qp={Rg:"IgnoreSize",Nh:"SelectExactMatch",Oh:"SelectNearMatch"},rp={vg:"DisallowResize",Jh:"ResizeSmaller"};var sp=!1,tp=function(a){if(a=a.match(/[\d]+/g))a.length=3};
(function(){if(navigator.plugins&&navigator.plugins.length){var a=navigator.plugins["Shockwave Flash"];if(a&&(sp=!0,a.description)){tp(a.description);return}if(navigator.plugins["Shockwave Flash 2.0"]){sp=!0;return}}if(navigator.mimeTypes&&navigator.mimeTypes.length&&(a=navigator.mimeTypes["application/x-shockwave-flash"],sp=!(!a||!a.enabledPlugin))){tp(a.enabledPlugin.description);return}try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");sp=!0;tp(b.GetVariable("$version"));return}catch(c){}try{b=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");sp=!0;return}catch(c){}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),sp=!0,tp(b.GetVariable("$version"))}catch(c){}})();var up=sp;var wp=function(a,b){b=void 0===b?null:b;if(null==a||0>=a.width||0>=a.height)throw Kn(Jn,null,"ad slot size",a.toString());this.h=a;this.g=null!=b?b:new np;this.v=vp(pp,this.g.resourceType)?this.g.resourceType:"All";this.o=vp(op,this.g.creativeType)?this.g.creativeType:"All";this.C=vp(qp,this.g.sizeCriteria)?this.g.sizeCriteria:"SelectExactMatch";this.A=vp(rp,this.g.g)?this.g.g:"DisallowResize";this.l=null!=this.g.adSlotIds?this.g.adSlotIds:[];this.w=r(this.g.nearMatchPercent)&&0<this.g.nearMatchPercent&&
100>=this.g.nearMatchPercent?this.g.nearMatchPercent:90},zp=function(a,b){var c=[];b.forEach(function(b){a.g.allowCustom&&(!B(b.h)&&(isNaN(b.w)||isNaN(b.v)||b.v==b.w)&&xp(a,b)?c.push(b):(b=yp(a,b),null!=b&&!B(b.h)&&c.push(b)))});return c},xp=function(a,b){var c;if(c="Flash"!=b.g||up){if(c="All"==a.v||a.v==b.I)c=b.g,c=null==c?!0:"All"==a.o||a.o==c;c&&(c=b.K,c=0==a.l.length?!0:null!=c?a.l.includes(c):!1)}if(c)if(b=b.l,"IgnoreSize"==a.C||Mc(a.h,b))a=!0;else{if(c="SelectNearMatch"==a.C)"ResizeSmaller"==
a.A?(b.width<=a.h.width&&b.height<=a.h.height||(c=a.h,c=Math.min(c.width/b.width,c.height/b.height),b=new D(c*b.width,c*b.height)),c=b.width,b=b.height):(c=b.width,b=b.height),c=c>a.h.width||b>a.h.height||c<a.w/100*a.h.width||b<a.w/100*a.h.height?!1:!0;a=c}else a=!1;return a},yp=function(a,b){b=b.o;return null==b?null:b.find(function(b){return xp(a,b)})||null},vp=function(a,b){return null!=b&&Ra(a,b)};var Ap=function(a){var b={};a.split(",").forEach(function(a){var c=a.split("=");2==c.length&&(a=sb(c[0]),c=sb(c[1]),0<a.length&&(b[a]=c))});return b};var Bp=function(a){this.h=a.content;this.g=a.contentType;this.l=a.size;this.v=a.masterSequenceNumber;this.I=a.resourceType;this.w=a.sequenceNumber;this.K=a.adSlotId;this.o=[];a=a.backupCompanions;null!=a&&(this.o=a.map(function(a){return new Bp(a)}))};Bp.prototype.getContent=function(){return this.h};Bp.prototype.C=function(){return this.g};Bp.prototype.B=function(){return this.l.width};Bp.prototype.A=function(){return this.l.height};var Cp=function(){this.w=1;this.l=-1;this.g=1;this.v=this.o=0;this.h=!1};h=Cp.prototype;h.ke=function(){return this.w};h.he=function(){return this.l};h.fe=function(){return this.g};h.ie=function(){return this.o};h.je=function(){return this.v};h.ge=function(){return this.h};var X=function(a){this.g=a};X.prototype.h=function(){return this.g.adId};X.prototype.l=function(){return this.g.creativeAdId};X.prototype.o=function(){return this.g.creativeId};var Dp=function(a){return a.g.adQueryId};h=X.prototype;h.oe=function(){return this.g.adSystem};h.pe=function(){return this.g.advertiserName};h.qe=function(){return this.g.apiFramework};h.He=function(){return this.g.adWrapperIds};h.Je=function(){return this.g.adWrapperCreativeIds};h.Ie=function(){return this.g.adWrapperSystems};
h.Ke=function(){return this.g.linear};h.Le=function(){return this.g.skippable};h.se=function(){return this.g.contentType};h.Kd=function(){return this.g.description};h.Md=function(){return this.g.title};h.Xb=function(){return this.g.duration};h.Fe=function(){return this.g.vastMediaWidth};h.Ee=function(){return this.g.vastMediaHeight};h.Ge=function(){return this.g.width};h.ue=function(){return this.g.height};h.Be=function(){return this.g.uiElements};h.we=function(){return this.g.minSuggestedDuration};
h.ne=function(){var a=this.g.adPodInfo,b=new Cp;b.o=a.podIndex;b.v=a.timeOffset;b.w=a.totalAds;b.g=a.adPosition;b.h=a.isBumper;b.l=a.maxDuration;return b};h.re=function(a,b,c){var d=this.g.companions.map(function(a){return new Bp(a)});return zp(new wp(new D(a,b),c),d)};h.ze=function(){return Ap(Gb(this.g.traffickingParameters))};h.Ae=function(){return this.g.traffickingParameters};h.ve=function(){return this.g.mediaUrl};h.ye=function(){return this.g.surveyUrl};h.te=function(){return this.g.dealId};
h.De=function(){return this.g.universalAdIdValue};h.Ce=function(){return this.g.universalAdIdRegistry};h.xe=function(){return this.g.skipTimeOffset};h.Me=function(){return this.g.disableUi};var Ep=function(){G.call(this);this.g=null;this.G=new Ln(this);hd(this,Ja(id,this.G));this.l=new Map;this.v=new Map;this.A=this.w=!1;this.B=new mg;this.o=!1;this.F=null},Fp;z(Ep,G);var Gp=null,Hp=function(){null==Gp&&(Gp=new Ep);return Gp};Ep.prototype.xc=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;this.g?Mo(this.g,"activityMonitor","measurableImpression",c):H(this,new S("measurable_impression",null,c))};
var gm=function(a,b,c){var d={};d.queryId=b;d.viewabilityData=c;a.g&&Mo(a.g,"activityMonitor","viewabilityMeasurement",d)},Sl=function(a,b,c,d){var e={};e.queryId=b;e.viewabilityString=c;e.eventName=d;a.g?Mo(a.g,"activityMonitor","externalActivityEvent",e):H(a,new S("externalActivityEvent",null,e))};Ep.prototype.P=function(){this.G.I(this.g,"activityMonitor",this.H);this.o=!1;this.l.clear();this===Fp&&(Fp=null);Ep.ba.P.call(this)};
var Jp=function(a){if(null==a)return!1;if(po()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=Ip(a);return 0>=b-a.width&&42>=c-a.height},Ip=function(a){var b={left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight};try{v(a.getBoundingClientRect)&&$c(Oc(a),a)&&(b=a.getBoundingClientRect())}catch(c){}return b},Kp=function(a,b,c,d,e){if(a.o){e=e||{};d&&
null==e.opt_osdId&&(e.opt_osdId=d);if(a.F)return a.F(b,c,e);if(a=d?a.v.get(d):T.L)null==e.opt_fullscreen&&(e.opt_fullscreen=Jp(a)),null==e.opt_adElement&&(e.opt_adElement=a);return Zg("lidar::handlevast_html5",Ja(jm,b,c,e))||{}}return{}};Ep.prototype.M=function(a){this.A=a};Ep.prototype.J=function(){return this.A};Ep.prototype.N=function(a){this.B=new mg(a.adk,a.awbidKey)};
var Lp=function(a,b){var c=$n(),d=String(Math.floor(1E9*Math.random()));a.v.set(d,b);if(co(c,31061775))try{Se(function(b){if(a.g){var c={};c.engagementString=b;Mo(a.g,"activityMonitor","engagementData",c)}},function(){return b})}catch(e){}0!=T.g&&hm(R.D(),d,a);return d},Mp=function(a,b,c){if(c)a.l.get(c)==b&&a.l["delete"](c);else{var d=[];a.l.forEach(function(a,c){a==b&&d.push(c)});d.forEach(a.l["delete"],a.l)}},cm=function(a,b){a=a.l.get(b);return v(a)?a():{}},Np=function(a){if(v(window.Goog_AdSense_Lidar_getUrlSignalsArray)){var b=
{};b.pageSignals=window.Goog_AdSense_Lidar_getUrlSignalsArray();Mo(a.g,"activityMonitor","pageSignals",b)}};
Ep.prototype.H=function(a){var b=a.ia,c=b.queryId,d={},e=null;d.eventId=b.eventId;switch(a.ka){case "getPageSignals":Np(this);break;case "reportVastEvent":e=b.vastEvent;a=b.osdId;var f={};f.opt_fullscreen=b.isFullscreen;b.isOverlay&&(f.opt_bounds=b.overlayBounds);d.viewabilityData=Kp(this,e,c,a,f);Mo(this.g,"activityMonitor","viewability",d);break;case "fetchAdTagUrl":c={},c.eventId=b.eventId,a=b.osdId,Qa(b,"isFullscreen")&&(e=b.isFullscreen),Qa(b,"loggingId")&&(b=b.loggingId,c.loggingId=b,Eo(Ao.D(),
43,{step:"beforeLookup",logid:b,time:x()},!0)),c.engagementString=Op(this,a,e),this.g&&Mo(this.g,"activityMonitor","engagement",c)}};var Op=function(a,b,c){var d=b?a.v.get(b):T.L;a={};null!=c&&(a.fullscreen=c);c="";try{c=Re(function(){return d},a)}catch(e){c="sdktle;"+Cb(e.name,12)+";"+Cb(e.message,40)}return c};u("ima.common.getVideoMetadata",function(a){return cm(Hp(),a)},void 0);
u("ima.common.triggerViewEvent",function(a,b){var c=Hp(),d={};d.queryId=a;d.viewabilityString=b;c.g?Mo(c.g,"activityMonitor","viewableImpression",d):H(c,new S("viewable_impression",null,d))},void 0);u("ima.common.triggerViewabilityMeasurementUpdate",function(a,b){gm(Hp(),a,b)},void 0);u("ima.common.triggerMeasurableEvent",function(a,b){Hp().xc(a,b)},void 0);u("ima.common.triggerExternalActivityEvent",function(a,b,c){Sl(Hp(),a,b,c)},void 0);var Pp=Hp();var Qp=function(){this.h=0;this.g=[]};h=Qp.prototype;h.add=function(a){var b=this.g[this.h];this.g[this.h]=a;this.h=(this.h+1)%4;return b};h.get=function(a){a=Rp(this,a);return this.g[a]};h.set=function(a,b){a=Rp(this,a);this.g[a]=b};h.Ha=function(){return this.g.length};h.isEmpty=function(){return 0==this.g.length};h.clear=function(){this.h=this.g.length=0};h.ra=function(){var a=this.Ha(),b=this.Ha(),c=[];for(a=this.Ha()-a;a<b;a++)c.push(this.get(a));return c};
h.Pa=function(){for(var a=[],b=this.Ha(),c=0;c<b;c++)a[c]=c;return a};var Rp=function(a,b){if(b>=a.g.length)throw Error("Out of bounds exception");return 4>a.g.length?b:(a.h+Number(b))%4};var Sp=function(a){G.call(this);this.g=a;this.ea="";this.T=-1;this.ma=!1;this.sa=new Qp;this.w=0;this.da=this.H=this.v=this.N=this.X=this.G=!1;this.J=this.o=null;this.aa=this.tb();this.W=this.gb();this.wa=T.fa()?15E3:8E3;this.A=null;this.ca=!1};z(Sp,Zo);Sp.prototype.Kc=function(){var a=this;return Na(Dn).filter(function(b){return!B(a.g.canPlayType(b))})};Sp.prototype.wc=function(a){this.wa=0<a.timeout?a.timeout:T.fa()?15E3:8E3;a.g&&(this.g.preload="auto")};
var Up=function(a,b){var c=0<a.g.seekable.length;a.ma?c?(a.g.currentTime=a.T,Tp(a),b()):setTimeout(function(){return Up(a,b)},100):(Tp(a),b())};Sp.prototype.Cb=function(){this.ea=this.g.currentSrc;this.ma=0<this.g.seekable.length;this.T=this.g.ended?-1:this.g.currentTime};
Sp.prototype.ha=function(a){a=void 0===a?null:a;if(0<=this.T){var b=this,c=null==a?function(){}:a;this.g.addEventListener("loadedmetadata",function e(){Up(b,c);b.g.removeEventListener("loadedmetadata",e,!1)},!1);this.N=!1;this.g.src=this.ea;this.g.load()}else null!=a&&a()};var Tp=function(a){a.T=-1;a.ea="";a.ma=!1};h=Sp.prototype;h.load=function(a,b){Vp(this);b&&T.fa()&&v(this.g.g)&&this.g.g(b);this.N=!1;a&&(this.g.src=a);this.g.load()};h.Gb=function(a){this.g.volume=a;this.g.muted=0==a?!0:!1};
h.Pc=function(){return this.g.volume};
h.ub=function(){var a=this;T.Jb()&&!this.v&&(Tb()||Ub())&&"hidden"==n.document.visibilityState?this.A||(this.A=w(this.oa,this),n.document.addEventListener("visibilitychange",this.A)):this.oa();this.ca=!1;this.N||Sb()?(this.H=!1,this.o=this.g.play(),null!=this.o&&(this.J=null,this.o.then(function(){a.o=null;a.cd(a.J);a.J=null})["catch"](function(b){Wp(a);a.o=null;var c="";null!=b&&null!=b.name&&(c=b.name);"AbortError"==c||"NotAllowedError"==c?H(a,"autoplayDisallowed"):a.qc()}))):this.H=!0};
h.pause=function(){null==this.o&&(this.ca=!0,this.g.pause(),Wp(this))};h.gc=function(){return this.g.paused?qo()||Zd?this.g.currentTime<this.g.duration:!0:!1};h.Rb=function(){po()&&this.g.webkitDisplayingFullscreen&&this.g.webkitExitFullscreen()};h.gb=function(){return Jp(this.g)};h.kb=function(a){this.g.currentTime=a};h.xa=function(){return this.g.currentTime};h.sb=function(){return isNaN(this.g.duration)?-1:this.g.duration};h.vb=function(){return this.g.ended};
h.tb=function(){return new D(this.g.offsetWidth,this.g.offsetHeight)};h.P=function(){this.fb();Sp.ba.P.call(this)};
h.Zb=function(){this.fb();this.l=new Ln(this);this.l.h(this.g,ho,this.Ga);this.l.h(this.g,"canplay",this.Df);this.l.h(this.g,"ended",this.Ef);this.l.h(this.g,"webkitbeginfullscreen",this.$b);this.l.h(this.g,"webkitendfullscreen",this.Qc);this.l.h(this.g,"loadedmetadata",this.Ff);this.l.h(this.g,"pause",this.If);this.l.h(this.g,"playing",this.cd);this.l.h(this.g,"timeupdate",this.Jf);this.l.h(this.g,"volumechange",this.Nf);this.l.h(this.g,"error",this.qc);this.l.h(this.g,vo()||qo()&&!so(8)?"loadeddata":
"canplay",this.Gf);this.F=new Fo;this.l.h(this.F,"click",this.uf);Ho(this.F,this.g);this.M=new Od(1E3);this.l.h(this.M,"tick",this.vf);this.M.start()};h.fb=function(){null!=this.F&&(Jo(this.F),this.F=null);null!=this.M&&this.M.V();null!=this.l&&(this.l.V(),this.l=null);Vp(this)};var Vp=function(a){a.X=!1;a.v=!1;a.G=!1;a.H=!1;a.w=0;a.da=!1;a.o=null;a.J=null;a.sa.clear();Wp(a);id(a.B)};Sp.prototype.Ga=function(a){H(this,a.type)};
var Xp=function(a,b){if(!a.v){a.v=!0;Wp(a);H(a,"start");var c=v(a.g.getAttribute)&&null!=a.g.getAttribute("playsinline");(ic||so(10)&&T.o)&&c||!(po()&&!no()||gc&&!to(4)||Bk())||!gc||to(3)||po()&&!so(4)||a.$b(b)}};h=Sp.prototype;h.Df=function(){var a;if(a=$d)a=Ob,a=!(a&&(Db(a,"SMART-TV")||Db(a,"SmartTV")));a&&!this.da&&(this.kb(.001),this.da=!0)};h.Ff=function(){this.N=!0;this.H&&this.ub();this.H=!1};h.Gf=function(){this.X||(this.X=!0,H(this,"loaded"))};
h.cd=function(a){null!=this.o?this.J=a:(H(this,"play"),qo()||vo()||Xp(this,a))};h.Jf=function(a){if(!this.v&&(qo()||vo())){if(0>=this.xa())return;if(vo()&&this.vb()&&1==this.sb()){this.qc(a);return}Xp(this,a)}if(qo()||uo()){if(1.5<this.xa()-this.w){this.G=!0;this.kb(this.w);return}this.G=!1;this.xa()>this.w&&(this.w=this.xa())}this.sa.add(this.g.currentTime);H(this,"timeUpdate")};h.Nf=function(){H(this,"volumeChange")};
h.If=function(){if(this.v&&qo()&&!this.ca&&(2>Yp(this)||this.G)){this.B=new Od(250);this.l.h(this.B,"tick",this.Cf);this.B.start();var a=!0}else a=!1;a||this.o||H(this,"pause")};h.Ef=function(){var a=!0;if(qo()||uo())a=this.w>=this.g.duration-1.5;!this.G&&a&&H(this,"end")};h.$b=function(){H(this,"beginFullscreen")};h.Qc=function(){H(this,"endFullscreen")};h.qc=function(){Wp(this);H(this,"error")};h.uf=function(){H(this,"click")};
h.vf=function(){var a=this.tb(),b=this.gb();if(a.width!=this.aa.width||a.height!=this.aa.height)!this.W&&b?this.$b():this.W&&!b&&this.Qc(),this.aa=a,this.W=b};h.Ed=function(){if(!this.v){try{Eo(Ao.D(),16)}catch(a){}Vp(this);H(this,"mediaLoadTimeout")}};h.Cf=function(){if(this.vb()||!this.gc())id(this.B);else{var a=this.g.duration-this.g.currentTime,b=Yp(this);0<b&&(2<=b||2>a)&&(id(this.B),this.ub())}};
var Yp=function(a){var b;a:{for(b=a.g.buffered.length-1;0<=b;){if(a.g.buffered.start(b)<=a.g.currentTime){b=a.g.buffered.end(b);break a}b--}b=0}return b-a.g.currentTime};Sp.prototype.oa=function(){this.U||(this.U=Rd(this.Ed,this.wa,this));Zp(this)};var Wp=function(a){a.U&&(n.clearTimeout(a.U),a.U=null);Zp(a)},Zp=function(a){a.A&&(n.document.removeEventListener("visibilitychange",a.A),a.A=null)};var $p={},aq=function(a,b){var c="key_"+a+":"+b,d=$p[c];if(void 0===d||0>d)$p[c]=0;else if(0==d)throw Error('Encountered two active delegates with the same priority ("'+a+":"+b+'").');};aq("a","");aq("a","redesign2014q4");aq("b","");aq("b","redesign2014q4");aq("b","forcedlinebreak");var cq=function(){G.call(this);this.buffered=new bq;this.v=new bq;this.l=new Ln(this);this.o="";this.w=!1;this.g=null;var a=sn(T);if(a){a:{if(Qa(a.g,"videoElementMockDuration")&&(a=a.g.videoElementMockDuration,r(a)))break a;a=NaN}this.duration=a}};z(cq,G);
var dq=new km,eq=function(){var a=["video/mp4"],b=["video/ogg"],c=new cq;c.canPlayType=function(c){return a.includes(c)?"probably":b.includes(c)?"maybe":""};c.width=0;c.height=0;c.offsetWidth=0;c.offsetHeight=0;return c},fq=function(a){this.startTime=0;this.g=a},bq=function(){this.length=0;this.g=[]};bq.prototype.start=function(a){return this.g[a].startTime};bq.prototype.end=function(a){return this.g[a].g};h=cq.prototype;h.readyState=0;h.currentTime=0;h.duration=NaN;h.ac=!0;h.autoplay=!1;h.loop=!1;
h.controls=!1;h.volume=1;h.muted=!1;Object.defineProperty(cq.prototype,"src",{get:function(){return cq.prototype.o},set:function(a){var b=cq.prototype;b.w&&null!=b.g?(b.g.reject(),b.g=null):b.o=a}});h=cq.prototype;h.qb=null;h.Kb=null;h.pause=function(){this.autoplay=!1;this.ac||(Qd(null),this.ac=!0,H(this,"timeupdate"),H(this,"pause"))};
h.load=function(){this.readyState=0;this.ac=!0;H(this,"loadstart");var a;isNaN(this.duration)?a=10+20*Math.random():a=this.duration;this.duration=Number(a);H(this,"durationchange");a=this.v;a.g.push(new fq(this.duration));a.length=a.g.length;a=this.buffered;a.g.push(new fq(this.duration));a.length=a.g.length;H(this,"loadedmetadata");0<this.currentTime&&H(this,"timeupdate");H(this,"loadeddata");H(this,"canplay");H(this,"canplaythrough");H(this,"progress")};
h.setAttribute=function(a,b){null!=a&&dq.set(a,b)};h.P=function(){this.l.V()};h.Mf=function(a){var b=null,c=null;switch(a.type){case "loadeddata":b="Loaded";break;case "playing":b="Playing";c="#00f";break;case "pause":b="Paused";break;case "ended":b="Ended",c="#000"}b&&this.Kb&&(this.Kb.innerText=b);c&&this.qb&&(this.qb.style.backgroundColor=c)};var gq=function(a,b,c,d){if(null==a||!$c(Oc(a),a))throw Kn(Jn,null,"containerElement","element");this.v=a;this.h=this.g=null;this.o=b;this.C=!d;this.w=c;this.l=null;this.g=Wc("DIV",{style:"display:none;"});this.v.appendChild(this.g);if(this.C){a=sn(T);if(tn(a,"useVideoElementMock")){a=eq();b=Wc("DIV",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"});for(e in a)b[e]=a[e];a.qb=Wc("DIV",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"});a.Kb=
Wc("P",{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"});a.qb.appendChild(a.Kb);b.appendChild(a.qb);a.l.h(a,["loadeddata","playing","pause","ended"],a.Mf);var e=b}else e=Wc("VIDEO",{style:"background-color:#000;position:absolute;width:100%;height:100%;left:0px;top:0px;",title:"Advertisement"});e.setAttribute("webkit-playsinline",!0);e.setAttribute("playsinline",!0);this.h=e;this.g.appendChild(this.h)}this.o&&(e=Wc("DIV",{id:this.o,style:"display:none;position:absolute;width:100%;height:100%;left:0px;top:0px;background-color:#000;"}),
this.g.appendChild(e));this.w&&(this.l=Wc("DIV",{style:"position:absolute;width:100%;height:100%;left:0px;top:0px"}),this.g.appendChild(this.l))};z(gq,gd);gq.prototype.P=function(){Yc(this.g);gq.ba.P.call(this)};gq.prototype.show=function(){lp(this.g,!0)};var lp=function(a,b){null!=a&&(a.style.display=b?"block":"none")};var kq=function(a){G.call(this);this.M="ima-chromeless-video";var b=null;null!=a&&(q(a)?this.M=a:b=a);this.N=new Ln(this);this.w=null;this.v=!1;this.da=this.tb();this.ca=this.gb();this.G=-1;this.W=!1;this.A=-1;this.g=this.U=this.H=null;this.sa="";this.o=!1;this.aa=null!=b;this.oa=this.J=this.X=this.l=null;this.B=void 0;this.ma=null;this.F=0;this.aa?(this.o=!0,this.l=b,this.B=2):(a=w(this.Fd,this),hq?a():(iq.push(a),a=document.createElement("SCRIPT"),Kc(a,jq),b=document.getElementsByTagName("script")[0],
b.parentNode.insertBefore(a,b)))};z(kq,Zo);var jq=Bc(wc(xc("https://www.youtube.com/iframe_api"))),lq={el:"adunit",controls:0,html5:1,playsinline:1,ps:"gvn",showinfo:0},iq=[],hq=!1;h=kq.prototype;h.wc=function(a){this.g=a};h.load=function(a,b){null!==a&&(this.sa=a,this.o?mq(this,a,b):(this.H=a,this.U=b))};h.Gb=function(a){this.aa?H(this,"volumeChange"):this.o?(a=Math.min(Math.max(100*a,0),100),this.l.setVolume(a),this.A=-1,H(this,"volumeChange")):this.A=a};
h.Pc=function(){return this.o?this.l.getVolume()/100:this.A};h.ub=function(){if(!B(Gb(this.sa))){if(!this.v){nq(this);var a=T.fa()?15E3:8E3;null!=this.g&&0<this.g.timeout&&(a=this.g.timeout);this.Za=Rd(this.Pd,a,this)}this.o?(this.W=!1,!this.v&&this.g&&this.g.g?this.l.loadVideoByPlayerVars(this.ma):this.l.playVideo()):this.W=!0}};h.pause=function(){this.o&&this.v&&this.l.pauseVideo()};h.gc=function(){return this.o?2==this.l.getPlayerState(this.B):!1};h.Rb=function(){};
h.gb=function(){var a=document.getElementById(this.M);return a?Jp(a):!1};h.kb=function(a){this.o?this.l.seekTo(a,!1):this.G=a};h.xa=function(){return this.o?this.l.getCurrentTime(this.B):-1};h.sb=function(){return this.o&&this.v?this.l.getDuration(this.B):-1};h.Kc=function(){return Na(Dn)};h.vb=function(){return this.o?0==this.l.getPlayerState(this.B):!1};h.tb=function(){var a=document.getElementById(this.M);return a?new D(a.offsetWidth,a.offsetHeight):new D(0,0)};
h.Tc=function(){return this.o?1==this.l.getPlayerState(this.B):!1};h.wf=function(){var a=this.tb(),b=this.gb();if(a.width!=this.da.width||a.height!=this.da.height)!this.ca&&b?H(this,"beginFullscreen"):this.ca&&!b&&H(this,"endFullscreen"),this.da=a,this.ca=b};
h.Zb=function(){this.X=w(this.Ga,this);this.J=w(this.ea,this);this.oa=w(this.Ya,this);this.aa&&(this.l.addEventListener("onAdStateChange",this.J),this.l.addEventListener("onReady",this.X),this.l.addEventListener("onStateChange",this.J),this.l.addEventListener("onVolumeChange",this.oa));this.T=new Od(1E3);this.N.h(this.T,"tick",this.wf);this.T.start()};
h.fb=function(){this.aa&&(this.l.removeEventListener("onAdStateChange",this.J),this.l.removeEventListener("onReady",this.X),this.l.removeEventListener("onStateChange",this.J),this.l.removeEventListener("onVolumeChange",this.oa));null!=this.T&&this.T.V()};
h.Fd=function(){var a={playerVars:Wa(lq),events:{onError:w(this.ae,this),onReady:w(this.Ga,this),onAdStateChange:w(this.ea,this),onStateChange:w(this.ea,this),onVolumeChange:w(this.Ya,this)}},b=za("YT");this.l=null!=b&&null!=b.Player?new b.Player(this.M,a):null};
var mq=function(a,b,c){var d={autoplay:"1"};null!=a.g&&(null!=a.g.o&&(d.agcid=a.g.o),null!=a.g.h&&(d.adformat=a.g.h),null!=a.g.l&&(d.ad_query_id=a.g.l),a.g.v&&(d.cta_conversion_urls=a.g.v),a.g.w&&(d.endscreen_ad_tracking_data=a.g.w),a.g.A&&(d.is_pharma=1),d.iv_load_policy=a.g.B?1:3,a.g.C&&(d.noiba=1),a.g.K&&(d.utpsa=1),a.g.I&&(d.autoplay="1"));if(null==b)var e=null;else an(En,b)?(e=b.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),e=null!=e&&1<e.length?e[1]:null):e=(null==b?0:an(Wm,b))?mp(b):null;null===e?(c=
null===c?"":c,b="url="+encodeURIComponent(b)+"&type="+encodeURIComponent(c),d.url_encoded_third_party_media=b):d.videoId=e;d.enabled_engage_types="3,4,5,6";a.v=!1;a.g&&a.g.g?(a.ma=d,a.l.preloadVideoByPlayerVars(a.ma)):a.l.cueVideoByPlayerVars(d);H(a,"loaded")};kq.prototype.ae=function(){H(this,"error")};kq.prototype.Ga=function(){this.o=!0;-1!=this.A&&(this.Gb(this.A),this.A=-1);null!=this.H&&(mq(this,this.H,this.U),this.U=this.H=null);-1!=this.G&&(this.kb(this.G),this.G=-1);this.W&&this.ub()};
kq.prototype.ea=function(a){switch(a.data){case 0:this.v?H(this,"end"):H(this,"error");break;case 1:this.v||(nq(this),this.v=!0,this.F=0,H(this,"start"));H(this,"play");oq(this);this.w=new Od(100);this.N.h(this.w,"tick",this.wa);this.w.start();break;case 2:H(this,"pause"),oq(this)}};kq.prototype.Ya=function(){H(this,"volumeChange")};var oq=function(a){a.N.I(a.w,"tick",a.wa);null!=a.w&&(Qd(a.w),a.w=null)},nq=function(a){null!=a.Za&&n.clearTimeout(a.Za)};
kq.prototype.wa=function(){if(Wd||uo()){if(1.5<this.xa()-this.F){this.o&&this.l.seekTo(this.F,!0);return}this.xa()>this.F&&(this.F=this.xa())}H(this,"timeUpdate")};kq.prototype.Pd=function(){H(this,"mediaLoadTimeout")};kq.prototype.P=function(){oq(this);nq(this);this.fb();this.o=!1;this.N.V();this.G=-1;this.U=null;this.W=!1;this.H=null;this.A=-1;this.X=this.l=this.g=null;this.v=!1;this.sa="";kq.ba.P.call(this)};u("onYouTubeIframeAPIReady",function(){hq=!0;iq.forEach(function(a){a()});iq=[]},window);var qq=function(a,b,c,d,e){if(!(e||null!=a&&$c(Oc(a),a)))throw Kn(Jn,null,"containerElement","element");this.F=!1;this.I=a;e=null!=b||null!=d;if(!e&&T.h)throw Eo(Ao.D(),78,{src:"6"},!1),Kn(Hn,null,"Custom video element was not provided even though the setting restrictToCustomPlayback is set to true.");var f=$n();T.fa()||(T.g=2);this.K=pq(b?b:null);var g=e,k=!1;T.h||wo(this.K)&&e||(!no()&&oo()||no()&&gc&&!to(4.2)||Bk()||eo(f)||(k=!0),g=!1);this.B=g;this.X=(this.W=k)||g&&null!=d;e=Wc("DIV",{style:"position:absolute"});
a.insertBefore(e,a.firstChild);this.A=e;this.g=null;!this.B&&oo()&&(this.g=new gq(this.A,null,!0));a=null;this.B?b?a=new Sp(b):d&&(a=new kq(d)):this.g&&(a=new Sp(this.g.h));this.h=a;this.l=this.o=null;a=gc&&!to(4);e=po()&&oo();if(T.fa()||this.g&&this.h&&!this.B&&T.l&&!Bk()&&!a&&!e)this.o=new gq(this.A,null,!0),this.l=new Sp(this.o.h);this.w=this.h?c||null:null;this.J=null!=this.w;Eo(Ao.D(),8,{enabled:this.B,yt:null!=d,customClick:null!=this.w});this.B&&b?v(b.getBoundingClientRect)?c=b:(c=this.I,T.L=
c):c=this.A;this.L=c;this.C=new fp(this.A,this);this.H=new D(0,0);this.G="";b&&(b=b.src||b.currentSrc,b=b instanceof nm?b.clone():new nm(b,void 0),200>b.toString().length?this.G=b.toString():200>b.g.length&&(this.G=b.g))};qq.prototype.T=function(){this.F=!0;if(null!=this.g){var a=this.g;a.h&&(a=a.h,oo()&&a.load())}null!=this.o&&(a=this.o,a.h&&(a=a.h,oo()&&a.load()))};
qq.prototype.N=function(){var a=this;id(this.g);id(this.o);id(this.C);null!=this.h&&this.h.ha(function(){return id(a.h)});null!=this.l&&this.l.ha(function(){return id(a.l)});Yc(this.A)};var kp=function(a){return a.J&&a.w?a.w:null!=a.g?a.g.l:null};qq.prototype.v=function(){return this.B};qq.prototype.U=function(){return this.W};qq.prototype.M=function(){return this.X};var pq=function(a){return null!=a&&v(a.getAttribute)&&null!=a.getAttribute("playsinline")?!0:!1};var rq=function(a,b){S.call(this,"adMetadata",a);this.h=b||null};z(rq,S);rq.prototype.w=function(){return this.h};var sq=function(a){if(a){var b=/iu=\/(\d+)\//.exec(tb(a));(b=b&&2==b.length?b[1]:null)||(a=Gb((new nm(a)).h.get("client")),b=B(a)?null:a);a=b}else a=null;return a};var tq=function(){this.g=ln.D();var a=fo();B(Gb(a))||kn(this.g,"e",a);kn(this.g,"alt","0")},uq=function(a,b){null!=b&&jn(a.g.g,"slotId",b,!1)},vq=function(a,b){if(Gg){var c=zo();kn(a.g,"sdkv",c);kn(a.g,"pid",a.g.h);kn(a.g,"ppt",T.w);kn(a.g,"ppv",T.B);kn(a.g,"mrd",T.A);kn(a.g,"aab",T.l?1:0);kn(a.g,"itv",document.hidden?0:1);if(c=Ig()){var d=a.g.g;d.h&&d.A(new Jg(b,4,c,0,void 0))}if("vl"==b||"ff"==b||"er"==b||"cl"==b)a=a.g.g,a.G=!0,dn(a)}},wq=function(a,b){b?(b=sq(b)||"0",a.g.h=b):a.g.h="0"};Ba(tq);var xq=function(a,b,c){this.h=c;0==b.length&&(b=[[]]);this.g=b.map(function(b){b=a.concat(b);for(var c=[],d=0,g=0;d<b.length;){var k=b[d++];if(128>k)c[g++]=String.fromCharCode(k);else if(191<k&&224>k){var l=b[d++];c[g++]=String.fromCharCode((k&31)<<6|l&63)}else if(239<k&&365>k){l=b[d++];var m=b[d++],y=b[d++];k=((k&7)<<18|(l&63)<<12|(m&63)<<6|y&63)-65536;c[g++]=String.fromCharCode(55296+(k>>10));c[g++]=String.fromCharCode(56320+(k&1023))}else l=b[d++],m=b[d++],c[g++]=String.fromCharCode((k&15)<<12|
(l&63)<<6|m&63)}return new RegExp(c.join(""))})};xq.prototype.match=function(a){var b=this;return this.g.some(function(c){c=a.match(c);return null==c?!1:!b.h||1<=c.length&&"3.211.3"==c[1]||2<=c.length&&"3.211.3"==c[2]?!0:!1})};
var yq=[104,116,116,112,115,63,58,47,47,105,109,97,115,100,107,92,46,103,111,111,103,108,101,97,112,105,115,92,46,99,111,109,47,106,115,47,40,115,100,107,108,111,97,100,101,114,124,99,111,114,101,41,47],zq=[104,116,116,112,115,63,58,47,47,115,48,92,46,50,109,100,110,92,46,110,101,116,47,105,110,115,116,114,101,97,109,47,104,116,109,108,53,47],Aq=[104,116,116,112,115,63,58,47,47,105,109,97,115,100,107,92,46,103,111,111,103,108,101,97,112,105,115,92,46,99,111,109,47,97,100,109,111,98,47,40,115,100,
107,108,111,97,100,101,114,124,99,111,114,101,41,47],Bq=[104,116,116,112,115,63,58,47,47,105,109,97,115,100,107,92,46,103,111,111,103,108,101,97,112,105,115,92,46,99,111,109,47,106,115,47,99,111,114,101,47,97,100,109,111,98,47],Cq=[104,116,116,112,115,63,58,47,47,105,109,97,115,100,107,92,46,103,111,111,103,108,101,97,112,105,115,92,46,99,111,109,47,112,114,101,114,101,108,101,97,115,101,47,106,115,47,91,48,45,57,93,43,92,46,91,48,45,57,92,46,93,43,47],Dq=[[105,109,97,51,92,46,106,115],[105,109,97,
51,95,100,101,98,117,103,92,46,106,115]],Eq=[[98,114,105,100,103,101,40,91,48,45,57,93,43,92,46,91,48,45,57,92,46,93,43,41,40,95,40,91,97,45,122,48,45,57,93,41,123,50,44,51,125,41,123,48,44,50,125,92,46,104,116,109,108],[98,114,105,100,103,101,40,91,48,45,57,93,43,92,46,91,48,45,57,92,46,93,43,41,95,100,101,98,117,103,40,95,40,91,97,45,122,48,45,57,93,41,123,50,44,51,125,41,123,48,44,50,125,92,46,104,116,109,108],[98,114,105,100,103,101,40,95,40,91,97,45,122,48,45,57,93,41,123,50,44,51,125,41,123,
48,44,50,125,92,46,104,116,109,108]],Fq=[[111,117,116,115,116,114,101,97,109,92,46,106,115],[111,117,116,115,116,114,101,97,109,95,100,101,98,117,103,92,46,106,115]],Gq=new xq(yq,Dq,!1),Hq=new xq(yq,Eq,!0),Iq=new xq(zq,Dq,!1),Jq=new xq(zq,Eq,!0),Kq=new xq(Aq,[],!1),Lq=new xq(Aq,Eq,!0),Mq=new xq(Bq,Eq,!1),Nq=new xq(Bq,[[97,112,112,95,112,114,111,109,111,95,105,110,116,101,114,115,116,105,116,105,97,108,40,95,40,91,97,45,122,48,45,57,93,41,123,50,44,51,125,41,123,48,44,50,125,92,46,106,115],[97,112,
112,95,112,114,111,109,111,95,105,110,116,101,114,115,116,105,116,105,97,108,95,99,97,110,97,114,121,40,95,40,91,97,45,122,48,45,57,93,41,123,50,44,51,125,41,123,48,44,50,125,92,46,106,115],[118,105,100,101,111,95,105,110,116,101,114,115,116,105,116,105,97,108,40,95,40,91,97,45,122,48,45,57,93,41,123,50,44,51,125,41,123,48,44,50,125,92,46,106,115],[118,105,100,101,111,95,105,110,116,101,114,115,116,105,116,105,97,108,95,99,97,110,97,114,121,40,95,40,91,97,45,122,48,45,57,93,41,123,50,44,51,125,41,
123,48,44,50,125,92,46,106,115]],!1),Oq=new xq([104,116,116,112,115,63,58,47,47,103,111,111,103,108,101,97,100,115,92,46,103,92,46,100,111,117,98,108,101,99,108,105,99,107,92,46,110,101,116,47,109,97,100,115,47,115,116,97,116,105,99,47],[],!1),Pq=new xq([104,116,116,112,115,63,58,47,47,119,119,119,92,46,103,115,116,97,116,105,99,92,46,99,111,109,47,97,100,109,111,98,47,106,115,47],[],!1),Qq=new xq([104,116,116,112,115,63,58,47,47,109,105,110,116,45,109,97,100,92,46,115,97,110,100,98,111,120,92,46,
103,111,111,103,108,101,92,46,99,111,109,47,109,97,100,115,47,115,116,97,116,105,99,47,102,111,114,109,97,116,115,47],[],!1),Rq=new xq([104,116,116,112,115,63,58,47,47,118,105,100,101,111,45,97,100,45,116,101,115,116,92,46,97,112,112,115,112,111,116,92,46,99,111,109,47],[],!1),Sq=new xq(Cq,Dq,!1),Tq=new xq([104,116,116,112,115,63,58,47,47,40,112,97,103,101,97,100,50,124,116,112,99,41,92,46,103,111,111,103,108,101,115,121,110,100,105,99,97,116,105,111,110,92,46,99,111,109,47,112,97,103,101,97,100,
47,40,103,97,100,103,101,116,115,124,106,115,41,47],[],!1),Uq=new xq(yq,Fq,!1),Vq=new xq(Cq,Fq,!1),La={Kg:Gq,Jg:Hq,Yg:Iq,Xg:Jq,cg:Kq,$f:Lq,Zf:Mq,ag:Nq,dg:Oq,bg:Pq,Yf:Qq,eg:Rq,Lg:Sq,Th:Tq,sh:Uq,th:Vq};var Wq=function(){var a="",b=tg(),c=b.h;b=b.g;c&&c.url?a=c.url:b&&b.url&&(a=b.url);return a};var Xq=ec||fc||cc&&pc(11)||dc,Yq=fc&&"srcdoc"in document.createElement("IFRAME"),Zq=function(a,b){a.open("text/html","replace");a.write(b);a.close()},dr=function(a,b){cc&&pc(7)&&!pc(10)&&6>$q()&&ar(b)&&(b=br(b));var c=function(){var c=a.contentWindow;c&&(c.goog_content=b,c.location.replace("javascript:window.goog_content"))},d;if(d=cc){try{var e=kf(a.contentWindow)}catch(f){e=!1}d=!e}d?cr(a,c):c()},$q=function(){var a=navigator.userAgent.match(/Trident\/([0-9]+.[0-9]+)/);return a?parseFloat(a[1]):
0},er=0,cr=function(a,b){var c="goog_rendering_callback"+er++;n[c]=b;a.src="javascript:'<script>(function() {document.domain = \""+document.domain+'";var continuation = window.parent.'+c+";window.parent."+c+" = null;continuation();})()\x3c/script>'"},ar=function(a){for(var b=0;b<a.length;++b)if(127<a.charCodeAt(b))return!0;return!1},br=function(a){a=unescape(encodeURIComponent(a));for(var b=Math.floor(a.length/2),c=[],d=0;d<b;++d)c[d]=String.fromCharCode(256*a.charCodeAt(2*d+1)+a.charCodeAt(2*d));
1==a.length%2&&(c[b]=a.charAt(a.length-1));return c.join("")};var fr=function(a,b){this.o=a;this.g=null;this.F="";this.G=0;this.v=this.l=null;this.w=b;this.B=null;this.A=""};z(fr,G);
fr.prototype.J=function(a){try{var b=a.h.data;try{var c=JSON.parse(b)}catch(Yl){return}var d=c.session;if(null!=d&&this.A==d)switch(c.type){case "friendlyReady":var e=gr(this);if(oo()&&null!=e){this.g=e;this.F=e.currentSrc;this.G=e.currentTime;var f=this.o;null!=f.g&&f.g.show()}else{var g=this.o.I,k=this.o.H;var l="border: 0; margin: 0; padding: 0; position: absolute; "+("width:"+k.width+"px; ");l+="height:"+k.height+"px;";this.g=Wc("VIDEO",{style:l,autoplay:!0});null!=gr(this)&&r(gr(this).volume)&&
(this.g.volume=gr(this).volume);g.appendChild(this.g)}var m=this.o.I;a="border: 0; margin: 0; padding: 0;position: absolute; ";var y=this.g;b:{var J=Oc(y);if(J.defaultView&&J.defaultView.getComputedStyle){var U=J.defaultView.getComputedStyle(y,null);if(U){var Ea=U.display||U.getPropertyValue("display")||"";break b}}Ea=""}if("none"!=(Ea||(y.currentStyle?y.currentStyle.display:null)||y.style&&y.style.display))var t=Le(y);else{var E=y.style,ma=E.display,Pd=E.visibility,ur=E.position;E.visibility="hidden";
E.position="absolute";E.display="inline";var vr=Le(y);E.display=ma;E.position=ur;E.visibility=Pd;t=vr}a+="width:"+t.width+"px; ";a+="height:"+t.height+"px;";this.v=Wc("DIV",{style:a});m.appendChild(this.v);try{this.l.contentWindow.loader.initFriendly(this.g,this.v)}catch(Yl){hr(this)}Mo(this.w,"vpaid","",b);break;case "destroyFriendlyIframe":this.V();break;case "becameLinear":this.g&&!oo()&&Fe(this.g,{visibility:"visible"});Mo(this.w,"vpaid","",b);break;case "becameNonlinear":this.g&&!oo()&&Fe(this.g,
{visibility:"hidden"});Mo(this.w,"vpaid","",b);break;default:Mo(this.w,"vpaid","",b)}}catch(Yl){hr(this)}};var hr=function(a){var b={type:"error"};b.session=a.A;a=fe(b);window.postMessage(a,"*")},gr=function(a){a=a.o.h;return a instanceof Sp&&a.g instanceof HTMLVideoElement?a.g:null};
fr.prototype.P=function(){G.ba.P.call(this);id(this.H);this.H=null;Yc(this.v);this.v=null;Yc(this.l);this.l=null;var a=gr(this);(th()||sh())&&null!=a?(a.src=this.F,a.currentTime=this.G):oo()&&null!=a?(a.src="",a=this.o,null!=a.g&&lp(a.g.g,!1)):(Yc(this.g),this.g=null)};var ir=function(){this.g=[];this.h=[]};h=ir.prototype;h.Ha=function(){return this.g.length+this.h.length};h.isEmpty=function(){return 0==this.g.length&&0==this.h.length};h.clear=function(){this.g=[];this.h=[]};h.contains=function(a){return jb(this.g,a)||jb(this.h,a)};h.ra=function(){for(var a=[],b=this.g.length-1;0<=b;--b)a.push(this.g[b]);var c=this.h.length;for(b=0;b<c;++b)a.push(this.h[b]);return a};var Y=function(a,b,c,d,e,f,g){G.call(this);this.M=a;this.g=b;this.J=c;this.Ya=e;this.o=null;this.ha=g;this.T=!1;this.G=1;this.Ga=d;this.ea=this.aa=this.X=-1;this.v=this.l=null;this.B=new ir;this.oa=!1;this.U=new Map;this.W=this.ma=!1;this.H=null;this.da=f&&null!=this.g.w;this.N=w(this.Od,this);this.ca=new Ln(this);this.ca.h(this.ha,"adsManager",this.Za)};z(Y,G);
Y.prototype.Za=function(a){var b=a.ka,c=a.ia;switch(b){case "error":jr(this);kr(this,c);break;case "contentPauseRequested":b=this.g.h;this.g.v()&&null!=this.o&&this.o.restoreCustomPlaybackStateOnAdBreakComplete&&null!=b.Cb&&b.Cb();this.w(a.ka,a.ia);break;case "contentResumeRequested":a=w(Y.prototype.w,this,b,c);jr(this,a);break;case "remainingTime":this.X=c.currentTime;this.aa=c.duration;this.ea=c.remainingTime;break;case "skip":this.w(b,c);break;case "log":a=c.adData;this.w(b,a,c.logData);break;
case "companionBackfill":a=za("window.google_show_companion_ad");null!=a&&a();break;case "skipshown":this.T=!0;this.w(b,c);break;case "interaction":a=c.adData;this.w(b,a,c.interactionData);break;case "vpaidEvent":try{var d=a.ia;if("createFriendlyIframe"==d.vpaidEventType){var e=this.H=new fr(this.g,this.ha);e.A=d.session;a="about:self";cc&&(a="");e.l=Wc("IFRAME",{src:a,allowtransparency:!0,background:"transparent"});Fe(e.l,{display:"none",width:"0",height:"0"});var f=e.o.I;f.appendChild(e.l);var g=
f.ownerDocument,k=g.defaultView||g.parentWindow;null==e.B&&(e.B=new Ln(e));e.B.h(k,"message",e.J);var l='<body><script src="//imasdk.googleapis.com/js/sdkloader/loader.js">\x3c/script><script>'+('loader = new VPAIDLoader(false, "'+e.A+'");')+"\x3c/script></body>";if(Zd||Vd||dc){var m=e.l;if(Xq){var y=m.contentWindow;y&&Zq(y.document,l)}else dr(m,l)}else{var J=e.l;if(Yq)J.srcdoc=l;else if(Xq){var U=J.contentWindow;U&&Zq(U.document,l)}else dr(J,l)}}}catch(Ea){kr(this,Ea.ia)}break;case "skippableStateChanged":a=
c.adData;null!=a.skippable&&(this.T=a.skippable);this.w(b,c);break;case "cacheAbandonUrls":break;case "volumeChange":a=c.adData;null!=a&&r(a.volume)&&(this.G=a.volume);this.w(b,c);break;default:this.w(b,c)}};
Y.prototype.w=function(a,b,c){if(null==b.companions){var d=this.U.get(b.adId);b.companions=null!=d?d:[]}var e=b.adData;this.l=d=null==e?null:new X(e);switch(a){case "adBreakReady":case "trackingUrlPinged":case "mediaUrlPinged":a=new S(a,null,b);break;case "adMetadata":a=null;null!=b.adCuePoints&&(a=new mn(b.adCuePoints));a=new rq(d,a);break;case "allAdsCompleted":this.l=null;this.ma=!0;a=new S(a,d);break;case "contentPauseRequested":this.W=!1;a=new S(a,d);break;case "contentResumeRequested":this.l=
null;this.W=!0;a=new S(a,d);break;case "loaded":this.X=0;this.aa=d.Xb();this.ea=d.Xb();c=this.M;var f=this.N;b=this.Ya;R.D();c.l.set(Dp(d),f);c.A&&c.B&&(N.D().g=!0,f=c.B,N.D().w=f);(0!=T.g?R.D().h:c.w)&&Kp(c,"loaded",Dp(d),b);co($n(),667080010)&&null!=e.gfpCookie&&T.v&&Vm()&&(c=e.gfpCookie,le.set("__gads",c.value,c.expires,c.path,c.domain),delete e.gfpCookie);a=new S(a,d,e);break;case "start":this.U.set(b.adId,b.companions);null!=kp(this.g)&&(null==this.v?(this.v=new Fo,this.ca.h(this.v,"click",this.Hf)):
Jo(this.v),Ho(this.v,kp(this.g)));a=new S(a,d);break;case "complete":null!=this.v&&Jo(this.v);Mp(this.M,this.N,Dp(d));this.l=null;this.U["delete"](b.adId);a=new S(a,d);break;case "log":e=null;null!=c&&null!=c.type?(b=c.type,b="adLoadError"==b||"adPlayError"==b):b=!1;b&&(e={adError:pn(c)});a=new S(a,d,e);break;case "interaction":a=new S(a,d,c);break;case "urlNavigationRequested":a=new S(a,d,b.urlNavigationData);break;default:a=new S(a,d)}H(this,a);this.ma&&this.W&&this.Nc()};
var kr=function(a,b){var c=new qn(pn(b));a.oa?(H(a,c),a.l&&Mp(a.M,a.N,Dp(a.l)),a.l=null):a.B.h.push(c);a={error:b.errorCode,vis:gh(document)};Eo(Ao.D(),7,a,!0)},lr=function(a,b,c){Mo(a.ha,"adsManager",b,c)};Y.prototype.sa=function(){lr(this,"contentTimeUpdate",{currentTime:this.A.currentTime})};var jr=function(a,b){var c=a.g.h;a.g.v()&&null!=a.o&&a.o.restoreCustomPlaybackStateOnAdBreakComplete&&null!=c.ha?c.ha(b):null!=b&&b()};h=Y.prototype;
h.Ue=function(a,b,c,d){if(this.B.isEmpty()){var e=this.g;null!=d&&(Eo(Ao.D(),54,{},!0),e.K=pq(d),T.h||wo(e.K)?(e.B=!0,id(e.g),id(e.o),id(e.l),e.g=null,e.o=null,e.l=null,id(e.h),e.h=new Sp(d),v(d.getBoundingClientRect)?e.L=d:(e.L=e.I,T.L=e.L),null!=e.C&&hp(e.C,e.h)):e.B=!1);this.oa=!0;this.Oc(a,b,c);lr(this,"init",{width:a,height:b,viewMode:c})}else{for(;!this.B.isEmpty();)b=a=this.B,0==b.g.length&&(b.g=b.h,b.g.reverse(),b.h=[]),a=a.g.pop(),H(this,a);this.V()}};h.zf=function(){return this.g.v()};
h.yf=function(){return this.da};h.Se=function(){return this.ea};h.Pe=function(){return this.T};h.Gd=function(){lr(this,"discardAdBreak")};h.Ve=function(){lr(this,"requestNextAdBreak")};h.Ye=function(a){null!=a&&(this.o=a,lr(this,"updateAdsRenderingSettings",{adsRenderingSettings:mr(this)}))};h.Od=function(){var a=null!=this.l?this.l.g.vpaid:!1,b=this.g.h,c=null!=b?b.xa():this.X,d=null!=b?b.sb():this.aa;return{currentTime:c,duration:d,isPlaying:null!=b?b.Tc():!1,isVpaid:a,isYouTube:!1,volume:this.G}};
h.We=function(){lr(this,"skip")};
h.start=function(){if(this.J&&!T.fa()){po()&&Eo(Ao.D(),50,{customPlayback:this.g.v()});oo()&&!this.g.F&&Eo(Ao.D(),26,{adtagurl:this.J,customPlayback:this.g.v()});kh(this.g.A)&&Eo(Ao.D(),30,{adtagurl:this.J,customPlayback:this.g.v()});var a=this.g.w,b=this.g.A,c;if(c=a&&b&&!kh(a))a=Ip(a),b=Ip(b),c=0<a.width&&0<a.height&&0<b.width&&0<b.height&&a.left<=b.left+b.width&&b.left<=a.left+a.width&&a.top<=b.top+b.height&&b.top<=a.top+a.height;c&&Eo(Ao.D(),31,{adtagurl:this.J,customPlayback:this.g.v()})}if(oo()&&
!this.g.F&&!this.g.v())throw Kn(In);b=this.g;b.J=this.da&&null!=b.w;this.g.C.l.style.opacity=1;null!=this.A&&1==this.G&&(wa(this.A.muted)&&this.A.muted?this.Yb(0):r(this.A.volume)&&(b=this.A.volume,0<=b&&1>=b&&this.Yb(this.A.volume)));lr(this,"start")};h.Hf=function(){if((null==this.o||!this.o.disableClickThrough)&&null!=this.l){var a=this.l.g.clickThroughUrl;null!=a&&(B(Gb(a))||window.open(a,"_blank"))}};
h.Oc=function(a,b,c){var d=this.g,e=d.A;null!=e&&(-1==a?(e.style.right="0",e.style.left="0"):e.style.width=a+"px",-1==b?(e.style.bottom="0",e.style.top="0"):e.style.height=b+"px");null!=d.C&&(e=d.C,e.l.width=-1==a?"100%":a,e.l.height=-1==b?"100%":b,e.l.offsetTop=e.l.offsetTop);d.H=new D(a,b);lr(this,"resize",{width:a,height:b,viewMode:c})};h.Xe=function(){lr(this,"stop")};h.Oe=function(){lr(this,"expand")};h.Ne=function(){lr(this,"collapse")};h.Te=function(){return this.G};
h.Yb=function(a){this.G=a;if(!T.fa()){var b=this.g.h;null!=b&&b.Gb(a)}lr(this,"volume",{volume:a})};h.pause=function(){lr(this,"pause")};h.resume=function(){lr(this,"resume")};h.Nc=function(){null!=this.H&&(this.H.V(),this.H=null);this.V()};h.Qe=function(){return this.Ga};h.Re=function(){return this.l};h.P=function(){lr(this,"destroy");null!=this.v&&this.v.V();this.ca.V();this.B.clear();this.F&&(Qd(this.F.g),this.F.V());Mp(this.M,this.N);Y.ba.P.call(this)};
var mr=function(a){var b={};null!=a.o&&Ya(b,a.o);a.da&&(b.useClickElement=!1,b.disableClickThrough=!0);return b};Y.prototype.wa=function(){lr(this,"click")};var nr=function(a,b,c){jd.call(this,"adsManagerLoaded");this.h=a;this.v=b;this.A=c||""};z(nr,jd);nr.prototype.w=function(a,b){var c=this.h;c.A=a;null!=b&&(c.o=b);null!=a.currentTime&&(c.F=new Qn(a),c.F.h("currentTimeUpdate",c.sa,!1,c),c.F.start(),c.sa(null));lr(c,"configure",{adsRenderingSettings:mr(c)});return this.h};nr.prototype.C=function(){return this.v};nr.prototype.o=function(){return this.A};var or=function(a,b,c){var d="script";d=void 0===d?"":d;var e=a.createElement("link");e.rel="preload";Db("preload","stylesheet")?b=Ac(b):b instanceof zc?b=Ac(b):b instanceof Dc?b=Ec(b):(b instanceof Dc||(b=b.Ta?b.Ia():String(b),Fc.test(b)||(b="about:invalid#zClosurez"),b=Gc(b)),b=b.Ia());e.href=b;d&&(e.as=d);c&&(e.nonce=c);if(a=a.getElementsByTagName("head")[0])try{a.appendChild(e)}catch(f){}};var pr=/^\.google\.(com?\.)?[a-z]{2,3}$/,qr=/\.(cn|com\.bi|do|sl|ba|by|ma|am)$/,rr=n,sr=function(a){a="https://"+("adservice"+a+"/adsid/integrator.js");var b=["domain="+encodeURIComponent(n.location.hostname)];zn[3]>=x()&&b.push("adsid="+encodeURIComponent(zn[1]));return a+"?"+b.join("&")},zn,tr,yn=function(){rr=n;zn=rr.googleToken=rr.googleToken||{};var a=x();zn[1]&&zn[3]>a&&0<zn[2]||(zn[1]="",zn[2]=-1,zn[3]=-1,zn[4]="",zn[6]="");tr=rr.googleIMState=rr.googleIMState||{};a=tr[1];pr.test(a)&&!qr.test(a)||
(tr[1]=".google.com");Da(tr[5])||(tr[5]=[]);wa(tr[6])||(tr[6]=!1);Da(tr[7])||(tr[7]=[]);r(tr[8])||(tr[8]=0)},wr={Ub:function(){return 0<tr[8]},Of:function(){tr[8]++},Pf:function(){0<tr[8]&&tr[8]--},Qf:function(){tr[8]=0},ni:function(){return!1},Jc:function(){return tr[5]},Ec:function(a){try{a()}catch(b){n.setTimeout(function(){throw b;},0)}},ed:function(){if(!wr.Ub()){var a=n.document,b=function(b){b=sr(b);a:{try{var c=jf();break a}catch(k){}c=void 0}var d=c;or(a,b,d);c=a.createElement("script");
c.type="text/javascript";d&&(c.nonce=d);c.onerror=function(){return n.processGoogleToken({},2)};b=gf(b);Kc(c,b);try{(a.head||a.body||a.documentElement).appendChild(c),wr.Of()}catch(k){}},c=tr[1];b(c);".google.com"!=c&&b(".google.com");b={};var d=(b.newToken="FBT",b);n.setTimeout(function(){return n.processGoogleToken(d,1)},1E3)}}},xr=function(a){yn();var b=rr.googleToken[5]||0;a&&(0!=b||zn[3]>=x()?wr.Ec(a):(wr.Jc().push(a),wr.ed()));zn[3]>=x()&&zn[2]>=x()||wr.ed()},yr=function(a){n.processGoogleToken=
n.processGoogleToken||function(a,c){var b=a;b=void 0===b?{}:b;c=void 0===c?0:c;a=b.newToken||"";var e="NT"==a,f=parseInt(b.freshLifetimeSecs||"",10),g=parseInt(b.validLifetimeSecs||"",10),k=b["1p_jar"]||"";b=b.pucrd||"";yn();1==c?wr.Qf():wr.Pf();var l=rr.googleToken=rr.googleToken||{},m=0==c&&a&&q(a)&&!e&&r(f)&&0<f&&r(g)&&0<g&&q(k);e=e&&!wr.Ub()&&(!(zn[3]>=x())||"NT"==zn[1]);var y=!(zn[3]>=x())&&0!=c;if(m||e||y)e=x(),f=e+1E3*f,g=e+1E3*g,1E-5>Math.random()&&Af(n,"https://pagead2.googlesyndication.com/pagead/gen_204?id=imerr&err="+
c,void 0),l[5]=c,l[1]=a,l[2]=f,l[3]=g,l[4]=k,l[6]=b,yn();if(m||!wr.Ub()){c=wr.Jc();for(a=0;a<c.length;a++)wr.Ec(c[a]);c.length=0}};xr(a)};(function(){if(!Ma(function(a){return a.match(F().location.href)})){for(var a=Qc(),b=null,c=null,d=0;d<a.length;d++)if(c=a[d],Ma(function(a){return a.match(c.src)})){b=c;break}if(null==b)throw Error("IMA SDK is either not loaded from a google domain or is not a supported version.");}})();
var Ar=function(a){G.call(this);this.g=a;this.w=new Map;this.o=this.g.C;this.A=new Ln(this);0!=T.g?(this.l=new Ep,hd(this,Ja(id,this.l))):this.l=Hp();if(this.o){a=this.l;var b=dp(this.o);if(!a.o){a.g=b||null;a.g&&(a.G.h(a.g,"activityMonitor",a.H),Np(a));if(!(n.ima&&n.ima.video&&n.ima.video.client&&n.ima.video.client.tagged)){u("ima.video.client.sdkTag",!0,void 0);var c=n.document;b=document.createElement("SCRIPT");var d=Bc(wc(xc("https://s0.2mdn.net/instream/video/client.js")));Kc(b,d);b.async=!0;
b.type="text/javascript";c=c.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c)}b=go();eg(b);R.D().G=T.g;T.F||(a.w=!0,R.D().h=!0);a.F=(v(null),null);T.fa()&&(N.D().R="gsv",N.D().A=79463068);b=R.D();c="h"==kl(b)||"b"==kl(b);d="exc"!=N.D().R;c&&d&&(b.K=!0,b.F=new Pj);a.o=!0}this.v=Lp(this.l,this.g.L)}a:{try{var e=window.top.location.href}catch(f){e=2;break a}e=null==e?2:e==window.document.location.href?0:1}yo.l=e;zr()};z(Ar,G);
Ar.prototype.P=function(){this.A.V();var a=this.v;this.l.v["delete"](a);0!=T.g&&(R.D().o[a]=null);Ar.ba.P.call(this)};Ar.prototype.H=function(){this.V()};Ar.prototype.J=function(a,b){var c=this,d=tq.D();wq(d,a.adTagUrl);uq(d,a.slotId.toString());vq(d,"ar");T.fa()||T.ec()?Br(this,a,b):yr(function(){An();Bn();Cn();Br(c,a,b)})};
var Br=function(a,b,c){b.adTagUrl&&Eo(Ao.D(),8,{adtagurl:b.adTagUrl,customPlayback:a.g.v(),customClick:null!=a.g.w,restrict:T.h});b.location=Wq();b.referrer=window.document.referrer;if(co($n(),328840011)){var d=F().location.ancestorOrigins;b.topOrigin=d?0<d.length&&200>d[d.length-1].length?d[d.length-1]:"":null}b.supportsYouTubeHosted=a.g.M();var e=b.adTagUrl,f=a.g.I;d=[];var g="",k="";if(null!=f){g=f;k=[];for(var l=0;g&&25>l;++l){a:{if(g&&g.nodeName&&g.parentElement){var m=g.nodeName.toString().toLowerCase();
for(var y=g.parentElement.childNodes,J=0,U=0;U<y.length;++U){var Ea=y[U];if(Ea.nodeName&&Ea.nodeName.toString().toLowerCase()===m){if(g===Ea){m="."+J;break a}++J}}}m=""}k.push((g.nodeName&&g.nodeName.toString().toLowerCase())+""+m);g=g.parentElement}g=k.join();if(f){f=(f=f.ownerDocument)&&(f.defaultView||f.parentWindow)||null;k=[];if(f)try{var t=f.parent;for(l=0;t&&t!==f&&25>l;++l){var E=t.frames;for(m=0;m<E.length;++m)if(f===E[m]){k.push(m);break}f=t;t=f.parent}}catch(Pd){}k=k.join()}else k=""}d.push(g,
k);if(null!=e){for(t=0;t<Um.length-1;++t)d.push(pe(e,Um[t])||"");e=pe(e,"videoad_start_delay");t="";e&&(e=parseInt(e,10),t=0>e?"postroll":0==e?"preroll":"midroll");d.push(t)}else for(e=0;e<Um.length;++e)d.push("");d=d.join(":");e=d.length;if(0==e)d=0;else{t=305419896;for(E=0;E<e;E++)t^=(t<<5)+(t>>2)+d.charCodeAt(E)&4294967295;d=0<t?t:4294967296+t}b.videoAdKey=d.toString();b.mediaUrl=a.g.G;d=b.adTagUrl;null!=d&&"ca-pub-6219811747049371"!=pe(d,"client")?d=null:(d=za("window.yt.util.activity.getTimeSinceActive"),
d=null!=d?d().toString():null);null!=d&&(b.lastActivity=d);d=b.adTagUrl;null==d?d=!1:(d=new nm(d),e=d.l,d=rb(d.g,"googleads.g.doubleclick.net")&&(B(Gb(e))?!1:/\/pagead\/(live\/)?ads/.test(e)));if(d){f=window;e=Df().document;d={};t=Df();E=Mi(Df()).$;g=E.location.href;E==E.top?g={url:g,Uc:!0}:(k=!1,(l=E.document)&&l.referrer&&(g=l.referrer,E.parent==E.top&&(k=!0)),(l=E.location.ancestorOrigins)&&(l=l[l.length-1])&&-1==g.indexOf(l)&&(k=!1,g=l),g={url:g,Uc:k});k=g;a:if(g=Df(),l=f.google_ad_width||g.google_ad_width,
m=f.google_ad_height||g.google_ad_height,g&&g.top==g)g=!1;else{y=e.documentElement;if(l&&m&&(U=J=1,g.innerHeight?(J=g.innerWidth,U=g.innerHeight):y&&y.clientHeight?(J=y.clientWidth,U=y.clientHeight):e.body&&(J=e.body.clientWidth,U=e.body.clientHeight),U>2*m||J>2*l)){g=!1;break a}g=!0}k=k.Uc;l=Df();m=l.top==l?0:kf(l.top)?1:2;l=4;g||1!=m?g||2!=m?g&&1==m?l=7:g&&2==m&&(l=8):l=6:l=5;k&&(l|=16);k=!!f.google_page_url;d.google_iframing=""+l;if(!k&&"ad.yieldmanager.com"==e.domain){for(k=e.URL.substring(e.URL.lastIndexOf("http"));-1<
k.indexOf("%");)try{k=decodeURIComponent(k)}catch(Pd){break}f.google_page_url=k;k=!!k}l=zf(t);k?(d.google_page_url=f.google_page_url,d.google_page_location=(g?e.referrer:e.URL)||"EMPTY"):(Yi||(Yi=Fg()),f=Yi,"21061977"==(f.g.hasOwnProperty(119)?f.g[119]:"")&&l&&l.canonicalUrl?(d.google_page_url=l.canonicalUrl,d.google_page_location=(g?e.referrer:e.URL)||"EMPTY"):(g&&kf(t.top)&&e.referrer&&t.top.document.referrer===e.referrer?d.google_page_url=t.top.document.URL:d.google_page_url=g?e.referrer:e.URL,
d.google_page_location=null));a:{if(e.URL==d.google_page_url)try{var ma=Date.parse(e.lastModified)/1E3;break a}catch(Pd){}ma=null}d.google_last_modified_time=ma;ma=E==E.top?E.document.referrer:(ma=zf())&&ma.referrer||"";d.google_referrer_url=ma;b.adSenseParams=d}ma=Wq();b.isAmp=null!=ma&&0<=ma.indexOf("amp=1")?!0:null!=window.context?0<parseInt(window.context.ampcontextVersion,10):!1;ma="goog_"+Jb++;a.w.set(ma,c||null);c=sq(b.adTagUrl)||"";d=uf(c);0!=d?c=d:(d=n.top,c=tf(d,"googlefcInactive")?4:c&&
tf(d,"googlefcPA-"+c)?2:tf(d,"googlefcNPA")?3:0);e=c;d=tf(n.top,"googlefcPresent")&&4!=e;c={};t=a.B();Ya(c,b);c.settings={"1pJar":t.M,activeViewPushUpdates:0!=T.g?R.D().h:a.l.w,activityMonitorMode:t.g,adsToken:t.J,autoPlayAdBreaks:t.l,cacheAbandonUrls:!1,chromelessPlayer:!0,companionBackfill:t.I,cookiesEnabled:t.v,disableCustomPlaybackForIOS10Plus:t.o,disableFlashAds:t.K,enableTrvBillOnClick:!0,engagementDetection:!0,isAdMob:t.fa(),isGdpr:t.Af()||!1,isInChina:t.ec()||!1,isFunctionalTest:t.dc(),isVpaidAdapter:t.Jb(),
numRedirects:t.A,onScreenDetection:!0,pageCorrelator:t.N,persistentStateCorrelator:Ti(),playerType:t.w,playerVersion:t.B,ppid:t.T,privacyControls:t.W,reportMediaRequests:t.Rf(),restrictToCustomPlayback:t.h,streamCorrelator:t.X,testingConfig:sn(t).g,unloadAbandonPingEnabled:t.Tf(),urlSignals:t.oa,useCompanionsAsEndSlate:!1,useNewLogicForRewardedEndSlate:t.Uf(),useRewardedEndSlate:t.Vf(),useRefactoredDelayLearnMore:!1,vpaidMode:t.H};c.consentSettings={gfcPresent:d,gfcUserConsent:e};if(d=co($n(),667080010))d=
T.v;d&&(e=Vm(),d={isBrowserCookieEnabled:e},e&&(b=b.adTagUrl,null==b?e=!1:(b=new nm(b),e=b.l,e=rb(b.g,"doubleclick.net")&&(B(Gb(e))?!1:/\/gampad\/(live\/)?ads/.test(e)))),e&&(b=le.get("__gads"),d.gfpCookieValue=Gb(b)),c.cookieSettings=d);b=a.g.h;c.videoEnvironment={customClickTrackingProvided:null!=a.g.w,iframeState:yo.l,osdId:a.v,supportedMimeTypes:null!=b?b.Kc():null,usesChromelessPlayer:a.g.U(),usesCustomVideoPlayback:a.g.v(),usesYouTubePlayer:a.g.M(),usesInlinePlayback:a.g.K};c.experimentState=
bo();b=dp(a.o,ma);a.A.h(b,"adsLoader",a.F);Mo(b,"adsLoader","requestAds",c)};Ar.prototype.B=function(){return T};Ar.prototype.G=function(){Mo(dp(this.o),"adsLoader","contentComplete")};var zr=function(){T.fa()||T.ec()||yr(function(){An();Bn();Cn()})};
Ar.prototype.F=function(a){var b=a.ka;switch(b){case "adsLoaded":b=a.ia;a=a.Fb;vq(tq.D(),"vl");var c=new Y(this.l,this.g,b.adTagUrl||"",b.adCuePoints,this.v,b.isCustomClickTrackingAllowed,dp(this.o,a));H(this,new nr(c,this.w.get(a),b.response));break;case "error":b=a.ia;a=a.Fb;c=pn(b);H(this,new qn(c,this.w.get(a)));a={error:b.errorCode,vis:gh(document)};Eo(Ao.D(),7,a,!0);break;case "trackingUrlPinged":H(this,new S(b,null,a.ia))}};var Z=function(){this.slotId=Math.floor(2147483646*Math.random())+1};h=Z.prototype;
h.clone=function(){var a=new Z;"auto"==this.videoPlayActivation?a.setAdWillAutoPlay(!0):"click"==this.videoPlayActivation&&a.setAdWillAutoPlay(!1);"muted"==this.videoPlayMuted?a.setAdWillPlayMuted(!0):"unmuted"==this.videoPlayMuted&&a.setAdWillPlayMuted(!1);a.adTagUrl=this.adTagUrl;a.o=this.o;a.adSenseParams=Wa(this.adSenseParams);a.adsResponse=this.adsResponse;a.contentDuration=this.contentDuration;a.contentKeywords=this.contentKeywords?this.contentKeywords.slice():null;a.contentTitle=this.contentTitle;
a.customMacros=Wa(this.customMacros);a.g=this.g;a.location=this.location;a.referrer=this.referrer;a.v=this.v;a.lastActivity=this.lastActivity;a.language=this.language;a.linearAdSlotWidth=this.linearAdSlotWidth;a.linearAdSlotHeight=this.linearAdSlotHeight;a.nonLinearAdSlotWidth=this.nonLinearAdSlotWidth;a.nonLinearAdSlotHeight=this.nonLinearAdSlotHeight;a.videoAdKey=this.videoAdKey;a.tagForChildDirectedContent=this.tagForChildDirectedContent;a.usePostAdRequests=this.usePostAdRequests;a.supportsYouTubeHosted=
this.supportsYouTubeHosted;a.youTubeAdType=this.youTubeAdType;a.youTubeVideoAdStartTime=this.youTubeVideoAdStartTime;a.Fc=this.Fc;a.Dc=this.Dc;a.l=this.l;a.h=this.h;a.forceNonLinearFullSlot=this.forceNonLinearFullSlot;a.liveStreamPrefetchSeconds=this.liveStreamPrefetchSeconds;a.Rc=this.Rc;a.Sc=this.Sc;a.Ac=this.Ac;a.Nb=this.Nb?this.Nb.clone():null;return a};h.adSenseParams=null;h.customMacros=null;h.videoPlayActivation="unknown";h.videoPlayMuted="unknown";h.liveStreamPrefetchSeconds=0;
h.linearAdSlotWidth=0;h.linearAdSlotHeight=0;h.nonLinearAdSlotWidth=0;h.nonLinearAdSlotHeight=0;h.forceNonLinearFullSlot=!1;h.videoAdKey=null;h.tagForChildDirectedContent=!1;h.usePostAdRequests=!1;h.slotId=0;h.supportsYouTubeHosted=!0;h.youTubeVideoAdStartTime=0;h.Fc=null;h.Dc=!1;h.setAdWillAutoPlay=function(a){this.videoPlayActivation=a?"auto":"click"};h.setAdWillPlayMuted=function(a){this.videoPlayMuted=a?"muted":"unmuted"};h.Rc=!0;h.Sc=!1;h.Ac=5E3;h.Nb=null;X.prototype.getCompanionAds=X.prototype.re;X.prototype.isLinear=X.prototype.Ke;X.prototype.isSkippable=X.prototype.Le;X.prototype.isUiDisabled=X.prototype.Me;X.prototype.getAdId=X.prototype.h;X.prototype.getAdSystem=X.prototype.oe;X.prototype.getAdvertiserName=X.prototype.pe;X.prototype.getApiFramework=X.prototype.qe;X.prototype.getContentType=X.prototype.se;X.prototype.getCreativeId=X.prototype.o;X.prototype.getCreativeAdId=X.prototype.l;X.prototype.getDescription=X.prototype.Kd;
X.prototype.getTitle=X.prototype.Md;X.prototype.getDuration=X.prototype.Xb;X.prototype.getHeight=X.prototype.ue;X.prototype.getWidth=X.prototype.Ge;X.prototype.getVastMediaHeight=X.prototype.Ee;X.prototype.getVastMediaWidth=X.prototype.Fe;X.prototype.getWrapperCreativeIds=X.prototype.Je;X.prototype.getWrapperAdIds=X.prototype.He;X.prototype.getWrapperAdSystems=X.prototype.Ie;X.prototype.getTraffickingParameters=X.prototype.ze;X.prototype.getTraffickingParametersString=X.prototype.Ae;
X.prototype.getAdPodInfo=X.prototype.ne;X.prototype.getUiElements=X.prototype.Be;X.prototype.getMinSuggestedDuration=X.prototype.we;X.prototype.getMediaUrl=X.prototype.ve;X.prototype.getSurveyUrl=X.prototype.ye;X.prototype.getSkipTimeOffset=X.prototype.xe;X.prototype.getDealId=X.prototype.te;X.prototype.getUniversalAdIdValue=X.prototype.De;X.prototype.getUniversalAdIdRegistry=X.prototype.Ce;mn.prototype.getCuePoints=mn.prototype.g;u("google.ima.AdCuePoints.PREROLL",0,window);
u("google.ima.AdCuePoints.POSTROLL",-1,window);u("google.ima.AdDisplayContainer",qq,window);qq.prototype.initialize=qq.prototype.T;qq.prototype.destroy=qq.prototype.N;Cp.prototype.getPodIndex=Cp.prototype.ie;Cp.prototype.getTimeOffset=Cp.prototype.je;Cp.prototype.getTotalAds=Cp.prototype.ke;Cp.prototype.getMaxDuration=Cp.prototype.he;Cp.prototype.getAdPosition=Cp.prototype.fe;Cp.prototype.getIsBumper=Cp.prototype.ge;u("google.ima.AdError.ErrorCode.VIDEO_PLAY_ERROR",400,window);
u("google.ima.AdError.ErrorCode.FAILED_TO_REQUEST_ADS",1005,window);u("google.ima.AdError.ErrorCode.REQUIRED_LISTENERS_NOT_ADDED",900,window);u("google.ima.AdError.ErrorCode.VAST_LOAD_TIMEOUT",301,window);u("google.ima.AdError.ErrorCode.VAST_NO_ADS_AFTER_WRAPPER",303,window);u("google.ima.AdError.ErrorCode.VAST_MEDIA_LOAD_TIMEOUT",402,window);u("google.ima.AdError.ErrorCode.VAST_TOO_MANY_REDIRECTS",302,window);u("google.ima.AdError.ErrorCode.VAST_ASSET_MISMATCH",403,window);
u("google.ima.AdError.ErrorCode.VAST_LINEAR_ASSET_MISMATCH",403,window);u("google.ima.AdError.ErrorCode.VAST_NONLINEAR_ASSET_MISMATCH",503,window);u("google.ima.AdError.ErrorCode.VAST_ASSET_NOT_FOUND",1007,window);u("google.ima.AdError.ErrorCode.VAST_UNSUPPORTED_VERSION",102,window);u("google.ima.AdError.ErrorCode.VAST_SCHEMA_VALIDATION_ERROR",101,window);u("google.ima.AdError.ErrorCode.VAST_TRAFFICKING_ERROR",200,window);u("google.ima.AdError.ErrorCode.VAST_UNEXPECTED_LINEARITY",201,window);
u("google.ima.AdError.ErrorCode.VAST_UNEXPECTED_DURATION_ERROR",202,window);u("google.ima.AdError.ErrorCode.VAST_WRAPPER_ERROR",300,window);u("google.ima.AdError.ErrorCode.NONLINEAR_DIMENSIONS_ERROR",501,window);u("google.ima.AdError.ErrorCode.COMPANION_REQUIRED_ERROR",602,window);u("google.ima.AdError.ErrorCode.VAST_EMPTY_RESPONSE",1009,window);u("google.ima.AdError.ErrorCode.UNSUPPORTED_LOCALE",1011,window);u("google.ima.AdError.ErrorCode.INVALID_ARGUMENTS",1101,window);
u("google.ima.AdError.ErrorCode.UNKNOWN_AD_RESPONSE",1010,window);u("google.ima.AdError.ErrorCode.UNKNOWN_ERROR",900,window);u("google.ima.AdError.ErrorCode.OVERLAY_AD_PLAYING_FAILED",500,window);u("google.ima.AdError.ErrorCode.AUTOPLAY_DISALLOWED",1205,window);u("google.ima.AdError.ErrorCode.VIDEO_ELEMENT_USED",-1,window);u("google.ima.AdError.ErrorCode.VIDEO_ELEMENT_REQUIRED",-1,window);u("google.ima.AdError.ErrorCode.VAST_MEDIA_ERROR",-1,window);
u("google.ima.AdError.ErrorCode.ADSLOT_NOT_VISIBLE",-1,window);u("google.ima.AdError.ErrorCode.OVERLAY_AD_LOADING_FAILED",-1,window);u("google.ima.AdError.ErrorCode.VAST_MALFORMED_RESPONSE",-1,window);u("google.ima.AdError.ErrorCode.COMPANION_AD_LOADING_FAILED",-1,window);u("google.ima.AdError.Type.AD_LOAD","adLoadError",window);u("google.ima.AdError.Type.AD_PLAY","adPlayError",window);on.prototype.getErrorCode=on.prototype.be;on.prototype.getVastErrorCode=on.prototype.Nd;
on.prototype.getInnerError=on.prototype.ce;on.prototype.getMessage=on.prototype.de;on.prototype.getType=on.prototype.ee;u("google.ima.AdErrorEvent.Type.AD_ERROR","adError",window);qn.prototype.getError=qn.prototype.v;qn.prototype.getUserRequestContext=qn.prototype.w;u("google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED","contentResumeRequested",window);u("google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED","contentPauseRequested",window);u("google.ima.AdEvent.Type.CLICK","click",window);
u("google.ima.AdEvent.Type.DURATION_CHANGE","durationChange",window);u("google.ima.AdEvent.Type.EXPANDED_CHANGED","expandedChanged",window);u("google.ima.AdEvent.Type.STARTED","start",window);u("google.ima.AdEvent.Type.IMPRESSION","impression",window);u("google.ima.AdEvent.Type.PAUSED","pause",window);u("google.ima.AdEvent.Type.RESUMED","resume",window);u("google.ima.AdEvent.Type.FIRST_QUARTILE","firstquartile",window);u("google.ima.AdEvent.Type.MIDPOINT","midpoint",window);
u("google.ima.AdEvent.Type.THIRD_QUARTILE","thirdquartile",window);u("google.ima.AdEvent.Type.COMPLETE","complete",window);u("google.ima.AdEvent.Type.USER_CLOSE","userClose",window);u("google.ima.AdEvent.Type.LINEAR_CHANGED","linearChanged",window);u("google.ima.AdEvent.Type.LOADED","loaded",window);u("google.ima.AdEvent.Type.AD_CAN_PLAY","adCanPlay",window);u("google.ima.AdEvent.Type.AD_METADATA","adMetadata",window);u("google.ima.AdEvent.Type.AD_BREAK_READY","adBreakReady",window);
u("google.ima.AdEvent.Type.INTERACTION","interaction",window);u("google.ima.AdEvent.Type.ALL_ADS_COMPLETED","allAdsCompleted",window);u("google.ima.AdEvent.Type.SKIPPED","skip",window);u("google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED","skippableStateChanged",window);u("google.ima.AdEvent.Type.LOG","log",window);u("google.ima.AdEvent.Type.VIEWABLE_IMPRESSION","viewable_impression",window);u("google.ima.AdEvent.Type.VOLUME_CHANGED","volumeChange",window);
u("google.ima.AdEvent.Type.VOLUME_MUTED","mute",window);S.prototype.type=S.prototype.type;S.prototype.getAd=S.prototype.C;S.prototype.getAdData=S.prototype.A;rq.prototype.getAdCuePoints=rq.prototype.w;u("google.ima.AdsLoader",Ar,window);Ar.prototype.getSettings=Ar.prototype.B;Ar.prototype.requestAds=Ar.prototype.J;Ar.prototype.contentComplete=Ar.prototype.G;Ar.prototype.destroy=Ar.prototype.H;u("google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED","adsManagerLoaded",window);
nr.prototype.getAdsManager=nr.prototype.w;nr.prototype.getUserRequestContext=nr.prototype.C;nr.prototype.getResponse=nr.prototype.o;u("google.ima.CompanionAdSelectionSettings",np,window);u("google.ima.CompanionAdSelectionSettings.CreativeType.IMAGE","Image",void 0);u("google.ima.CompanionAdSelectionSettings.CreativeType.FLASH","Flash",void 0);u("google.ima.CompanionAdSelectionSettings.CreativeType.ALL","All",void 0);u("google.ima.CompanionAdSelectionSettings.ResourceType.HTML","Html",void 0);
u("google.ima.CompanionAdSelectionSettings.ResourceType.IFRAME","IFrame",void 0);u("google.ima.CompanionAdSelectionSettings.ResourceType.STATIC","Static",void 0);u("google.ima.CompanionAdSelectionSettings.ResourceType.ALL","All",void 0);u("google.ima.CompanionAdSelectionSettings.SizeCriteria.IGNORE","IgnoreSize",void 0);u("google.ima.CompanionAdSelectionSettings.SizeCriteria.SELECT_EXACT_MATCH","SelectExactMatch",void 0);
u("google.ima.CompanionAdSelectionSettings.SizeCriteria.SELECT_NEAR_MATCH","SelectNearMatch",void 0);u("google.ima.CustomContentLoadedEvent.Type.CUSTOM_CONTENT_LOADED","deprecated-event",window);u("ima.ImaSdkSettings",V,window);u("google.ima.settings",T,window);V.prototype.setCompanionBackfill=V.prototype.hf;V.prototype.getCompanionBackfill=V.prototype.Ze;V.prototype.setAutoPlayAdBreaks=V.prototype.gf;V.prototype.isAutoPlayAdBreak=V.prototype.df;V.prototype.setPpid=V.prototype.qf;
V.prototype.getPpid=V.prototype.cf;V.prototype.setVpaidAllowed=V.prototype.sf;V.prototype.setVpaidMode=V.prototype.tf;V.prototype.setIsVpaidAdapter=V.prototype.kf;V.prototype.isVpaidAdapter=V.prototype.Jb;V.prototype.setRestrictToCustomPlayback=V.prototype.rf;V.prototype.isRestrictToCustomPlayback=V.prototype.Bf;V.prototype.setNumRedirects=V.prototype.mf;V.prototype.getNumRedirects=V.prototype.$e;V.prototype.getLocale=V.prototype.Ld;V.prototype.setLocale=V.prototype.lf;V.prototype.getPlayerType=V.prototype.af;
V.prototype.setPlayerType=V.prototype.nf;V.prototype.getDisableFlashAds=V.prototype.aa;V.prototype.setDisableFlashAds=V.prototype.ea;V.prototype.getPlayerVersion=V.prototype.bf;V.prototype.setPlayerVersion=V.prototype.pf;V.prototype.setPageCorrelator=V.prototype.Fa;V.prototype.setStreamCorrelator=V.prototype.ma;V.prototype.setIsOutstreamVideo=V.prototype.jf;V.prototype.isOutstreamVideo=V.prototype.ff;V.prototype.setDisableCustomPlaybackForIOS10Plus=V.prototype.da;
V.prototype.getDisableCustomPlaybackForIOS10Plus=V.prototype.ha;V.prototype.setCookiesEnabled=V.prototype.ca;u("google.ima.ImaSdkSettings.CompanionBackfillMode.ALWAYS","always",void 0);u("google.ima.ImaSdkSettings.CompanionBackfillMode.ON_MASTER_AD","on_master_ad",void 0);u("google.ima.ImaSdkSettings.VpaidMode.DISABLED",0,void 0);u("google.ima.ImaSdkSettings.VpaidMode.ENABLED",1,void 0);u("google.ima.ImaSdkSettings.VpaidMode.INSECURE",2,void 0);u("google.ima.common.adTrackingMonitor",Pp,window);
Ep.prototype.setActiveViewUseOsdGeometry=Ep.prototype.M;Ep.prototype.getActiveViewUseOsdGeometry=Ep.prototype.J;Ep.prototype.setBlockId=Ep.prototype.N;u("google.ima.AdsRenderingSettings",Rn,window);u("google.ima.AdsRenderingSettings.AUTO_SCALE",-1,window);u("google.ima.AdsRequest",Z,window);Z.prototype.adTagUrl=Z.prototype.adTagUrl;Z.prototype.adsResponse=Z.prototype.adsResponse;Z.prototype.nonLinearAdSlotHeight=Z.prototype.nonLinearAdSlotHeight;Z.prototype.nonLinearAdSlotWidth=Z.prototype.nonLinearAdSlotWidth;
Z.prototype.linearAdSlotHeight=Z.prototype.linearAdSlotHeight;Z.prototype.linearAdSlotWidth=Z.prototype.linearAdSlotWidth;Z.prototype.setAdWillAutoPlay=Z.prototype.setAdWillAutoPlay;Z.prototype.setAdWillPlayMuted=Z.prototype.setAdWillPlayMuted;Z.prototype.contentDuration=Z.prototype.contentDuration;Z.prototype.contentKeywords=Z.prototype.contentKeywords;Z.prototype.contentTitle=Z.prototype.contentTitle;Z.prototype.vastLoadTimeout=Z.prototype.Ac;u("google.ima.VERSION","3.211.3",void 0);
u("google.ima.UiElements.AD_ATTRIBUTION","adAttribution",void 0);u("google.ima.UiElements.COUNTDOWN","countdown",void 0);u("google.ima.ViewMode.NORMAL","normal",void 0);u("google.ima.ViewMode.FULLSCREEN","fullscreen",void 0);Y.prototype.isCustomPlaybackUsed=Y.prototype.zf;Y.prototype.isCustomClickTrackingUsed=Y.prototype.yf;Y.prototype.destroy=Y.prototype.Nc;Y.prototype.init=Y.prototype.Ue;Y.prototype.start=Y.prototype.start;Y.prototype.stop=Y.prototype.Xe;Y.prototype.pause=Y.prototype.pause;
Y.prototype.resume=Y.prototype.resume;Y.prototype.getCuePoints=Y.prototype.Qe;Y.prototype.getCurrentAd=Y.prototype.Re;Y.prototype.getRemainingTime=Y.prototype.Se;Y.prototype.expand=Y.prototype.Oe;Y.prototype.collapse=Y.prototype.Ne;Y.prototype.getAdSkippableState=Y.prototype.Pe;Y.prototype.resize=Y.prototype.Oc;Y.prototype.skip=Y.prototype.We;Y.prototype.getVolume=Y.prototype.Te;Y.prototype.setVolume=Y.prototype.Yb;Y.prototype.discardAdBreak=Y.prototype.Gd;Y.prototype.requestNextAdBreak=Y.prototype.Ve;
Y.prototype.updateAdsRenderingSettings=Y.prototype.Ye;Y.prototype.clicked=Y.prototype.wa;Bp.prototype.getContent=Bp.prototype.getContent;Bp.prototype.getContentType=Bp.prototype.C;Bp.prototype.getHeight=Bp.prototype.A;Bp.prototype.getWidth=Bp.prototype.B;})();

View file

@ -0,0 +1,174 @@
/**
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.ima-ad-container {
top: 0px;
position: absolute;
display: none;
width: 100%;
height: 100%;
}
/* Move overlay if user fast-clicks play button. */
.video-js.vjs-playing .bumpable-ima-ad-container {
margin-top: -40px;
}
/* Move overlay when controls are active. */
.video-js.vjs-user-inactive.vjs-playing .bumpable-ima-ad-container {
margin-top: 0px;
}
.video-js.vjs-paused .bumpable-ima-ad-container,
.video-js.vjs-playing:hover .bumpable-ima-ad-container,
.video-js.vjs-user-active.vjs-playing .bumpable-ima-ad-container {
margin-top: -40px;
}
.ima-controls-div {
bottom:0px;
height: 14px;
position: absolute;
overflow: hidden;
display: none;
opacity: 1;
background-color: rgba(7, 20, 30, .7);
background: -moz-linear-gradient(
bottom,
rgba(7, 20, 30, .7) 0%,
rgba(7, 20, 30, 0) 100%); /* FF3.6+ */
background: -webkit-gradient(
linear,
left bottom,
left top,
color-stop(0%,rgba(7, 20, 30, .7)),
color-stop(100%,rgba(7, 20, 30, 0))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(
bottom,
rgba(7, 20, 30, .7) 0%,
rgba(7, 20, 30, 0) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(bottom,
rgba(7, 20, 30, .7) 0%,
rgba(7, 20, 30, 0) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(bottom,
rgba(7, 20, 30, .7) 0%,
rgba(7, 20, 30, 0) 100%); /* IE10+ */
background: linear-gradient(to top,
rgba(7, 20, 30, .7) 0%,
rgba(7, 20, 30, 0) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient(
startColorstr='#0007141E',
endColorstr='#07141E',GradientType=0 ); /* IE6-9 */
}
.ima-controls-div.ima-controls-div-showing {
height: 37px;
}
.ima-countdown-div {
height: 10px;
color: #FFFFFF;
text-shadow: 0 0 0.2em #000;
cursor: default;
}
.ima-seek-bar-div {
top: 12px;
height: 3px;
position: absolute;
background: rgba(255, 255, 255, .4);
}
.ima-progress-div {
width: 0px;
height: 3px;
background-color: #ECC546;
}
.ima-play-pause-div, .ima-mute-div, .ima-slider-div, .ima-fullscreen-div {
width: 35px;
height: 20px;
top: 11px;
left: 0px;
position: absolute;
color: #CCCCCC;
font-size: 1.5em;
line-height: 2;
text-align: center;
font-family: VideoJS;
cursor: pointer;
}
.ima-mute-div {
left: auto;
right: 85px;
}
.ima-slider-div {
left: auto;
right: 35px;
width: 50px;
height: 10px;
top: 20px;
background-color: #555555;
}
.ima-slider-level-div {
width: 100%;
height: 10px;
background-color: #ECC546;
}
.ima-fullscreen-div {
left: auto;
right: 0px;
}
.ima-playing:before {
content: "\00f103";
}
.ima-paused:before {
content: "\00f101";
}
.ima-playing:hover:before, .ima-paused:hover:before {
text-shadow: 0 0 1em #fff;
}
.ima-non-muted:before {
content: "\00f107";
}
.ima-muted:before {
content: "\00f104";
}
.ima-non-muted:hover:before, .ima-muted:hover:before {
text-shadow: 0 0 1em #fff;
}
.ima-non-fullscreen:before {
content: "\00f108";
}
.ima-fullscreen:before {
content: "\00f109";
}
.ima-non-fullscreen:hover:before, .ima-fullscreen:hover:before {
text-shadow: 0 0 1em #fff;
}

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,32 @@
<?php
header('Content-Type: application/json');
require_once '../../../videos/configuration.php';
require_once $global['systemRootPath'] . 'plugin/AD_Server/Objects/VastCampaigns.php';
$obj = new stdClass();
$obj->error = true;
$obj->msg = "";
$plugin = YouPHPTubePlugin::loadPluginIfEnabled('AD_Server');
if(!User::isAdmin()){
$obj->msg = "You cant do this";
die(json_encode($obj));
}
$o = new VastCampaigns(@$_POST['campId']);
$o->setName($_POST['name']);
$o->setType("Contract");
$o->setStatus($_POST['status']);
$o->setStart_date($_POST['start_date']);
$o->setEnd_date($_POST['end_date']);
$o->setPricing_model("CPM");
$o->setPriority(10);
$o->setUsers_id(User::getId());
$o->setCpm_max_prints($_POST['maxPrints']);
$o->setVisibility($_POST['visibility']);
if($o->save()){
$obj->error = false;
}
echo json_encode($obj);

View file

@ -0,0 +1,27 @@
<?php
header('Content-Type: application/json');
require_once '../../../videos/configuration.php';
require_once $global['systemRootPath'] . 'plugin/AD_Server/Objects/VastCampaignsVideos.php';
$obj = new stdClass();
$obj->error = true;
$obj->msg = "";
$plugin = YouPHPTubePlugin::loadPluginIfEnabled('AD_Server');
if(!User::isAdmin()){
$obj->msg = "You cant do this";
die(json_encode($obj));
}
$o = new VastCampaignsVideos(0);
$o->setVast_campaigns_id($_POST['vast_campaigns_id']);
$o->setVideos_id($_POST['videos_id']);
$o->setLink($_POST['uri']);
$o->setAd_title($_POST['title']);
$o->setStatus('a');
if($o->save()){
$obj->error = false;
}
echo json_encode($obj);

View file

@ -0,0 +1,8 @@
<?php
require_once '../../../videos/configuration.php';
require_once $global['systemRootPath'] . 'plugin/AD_Server/Objects/VastCampaigns.php';
header('Content-Type: application/json');
$rows = VastCampaigns::getAll();
?>
{"data": <?php echo json_encode($rows); ?>}

View file

@ -0,0 +1,8 @@
<?php
require_once '../../../videos/configuration.php';
require_once $global['systemRootPath'] . 'plugin/AD_Server/Objects/VastCampaignsVideos.php';
header('Content-Type: application/json');
$rows = VastCampaignsVideos::getAllFromCampaign(@$_POST['id'], true);
?>
{"data": <?php echo json_encode($rows); ?>}

View file

@ -0,0 +1,23 @@
<?php
require_once '../../../videos/configuration.php';
require_once $global['systemRootPath'] . 'plugin/AD_Server/Objects/VastCampaigns.php';
header('Content-Type: application/json');
$obj = new stdClass();
$obj->error = true;
$plugin = YouPHPTubePlugin::loadPluginIfEnabled('AD_Server');
if(!User::isAdmin()){
$obj->msg = "You cant do this";
die(json_encode($obj));
}
$id = intval($_POST['id']);
$row = new VastCampaigns($id);
if($row->getUsers_id() == User::getId() || User::isAdmin()){
$row->delete();
$obj->error = false;
}
die(json_encode($obj));
?>

View file

@ -0,0 +1,23 @@
<?php
require_once '../../../videos/configuration.php';
require_once $global['systemRootPath'] . 'plugin/AD_Server/Objects/VastCampaignsVideos.php';
header('Content-Type: application/json');
$obj = new stdClass();
$obj->error = true;
$plugin = YouPHPTubePlugin::loadPluginIfEnabled('AD_Server');
if(!User::isAdmin()){
$obj->msg = "You cant do this";
die(json_encode($obj));
}
$id = intval($_POST['id']);
$row = new VastCampaignsVideos($id);
if(User::isAdmin()){
$row->delete();
$obj->error = false;
}
die(json_encode($obj));
?>