PageSourceSearch

https://aphrodite.gmanetwork.com/assets/revamp/js/build/globals/global.js?v=

js gmanetwork.com collected 2026-10-09 23:00:52 UTC 70,182 bytes, 1 lines download raw bytes

1var EntConfig={disallowedKeywords:["rss","gma","feed","rssfeed","rss_feed","rss feed"],cropping:{standard:{a:[120,90],b:[240,180],c:[320,240],d:[480,360],e:[640,480],f:[900,675],g:[1400,1050]},wide:{a:[160,90],b:[320,180],c:[427,240],d:[640,360],e:[856,480],f:[1200,675],g:[1867,1050]}},sub_section:function(idx){var txt="";switch(parseInt(idx)){case 0:txt="news";break;case 1:txt="travel";break;case 2:txt="events";break;case 3:txt="fitness";break;case 4:txt="family";break;case 5:txt="fashion";break;case 6:txt="beauty";break;case 7:txt="relationship";break;case 8:txt="food";break;case 9:txt="hobbies";break;case 10:txt="health";break;default:txt=idx.toString();break}return txt},section:{0:"showbiznews",1:"tv",2:"celebritylife",4:"celebritylife",5:"engage"}},MEMES_DATA_URL="production"==ENVIRONMENT?window.location.protocol+"//data.igma.tv/entertainment/":ENT_DATA_URL,EntWidgetMapping={featuredArticle:ENT_DATA_URL+"widgets/featured/article.gz",whatsHot:ENT_DATA_URL+"widgets/tiles/whats_hot.gz",aroundGma:ENT_DATA_URL+"widgets/around_gma/listing.gz",kapusoStream:ENT_DATA_URL+"ent_revamp/featured_kapuso_stream.gz",seeWhatsOnTV:ENT_DATA_URL+"widgets/tiles/program_guides/gma7/{day}.gz",featuredShowbizNews:ENT_DATA_URL+"widgets/featured/showbiznews.gz",onTheRecord:ENT_DATA_URL+"widgets/trending/ontherecord.gz",latestShowbizNews:ENT_DATA_URL+"widgets/latest/showbiznews.gz",trendZone:ENT_DATA_URL+"widgets/trending/trendzone.gz",featuredCelebrityLife:ENT_DATA_URL+"widgets/tiles/celebrity_life_featured.gz",instarrazi:ENT_DATA_URL+"widgets/grid/instarazzi.gz",latestCommonPhotos:ENT_DATA_URL+"widgets/common/latest_photos.gz",latestCommonVideos:ENT_DATA_URL+"widgets/common/latest_videos.gz",trendingTopPhotos:ENT_DATA_URL+"widgets/common/top_photos.gz",trendingMostWatched:ENT_DATA_URL+"widgets/common/most_watched.gz",artistListFilter:ENT_DATA_URL+"listing/artists.gz",showListFilter:ENT_DATA_URL+"listing/shows.gz",videoCategories:ENT_DATA_URL+"listing/videos/categories.gz",videosPerCategory:ENT_DATA_URL+"listing/videos/landing/{category}.gz",tvInsideDetails:ENT_DATA_URL+"tv/{show_id}/show_details.gz",tvLatestEpisodes:ENT_DATA_URL+"tv/{show_id}/latest_tv_episodes.gz",tvLatestPhotos:ENT_DATA_URL+"tv/{show_id}/latest_tv_photos.gz",tvLatestNews:ENT_DATA_URL+"tv/{show_id}/latest_tv_news.gz",tvCasts:ENT_DATA_URL+"tv/{show_id}/listing_tv_cast.gz",featuredQuiz:ENT_DATA_URL+"widgets/engage/featured_quiz.gz",featuredPolls:ENT_DATA_URL+"widgets/engage/featured_polls.gz",latestQuiz:ENT_DATA_URL+"widgets/engage/latest_quizzes.gz",latestContest:ENT_DATA_URL+"widgets/engage/latest_contests.gz",featuredMemes:MEMES_DATA_URL+"memegenerator/story_list/latest/all/0",morePolls:ENT_DATA_URL+"widgets/engage/more_polls.gz",moreQuizzes:ENT_DATA_URL+"widgets/engage/more_quizzes.gz",crosssellEpisodes:ENT_DATA_URL+"tv/{show_id}/crosssell/episodes.gz",crosssellOtherEpisodes:ENT_DATA_URL+"tv/{show_id}/crosssell/other_episodes_{post_date}.gz",crosssellFullEpisodes:ENT_DATA_URL+"tv/{show_id}/crosssell/full_episodes.gz",tvAllShows:ENT_DATA_URL+"tv/all.gz",featuredScheduleBanner:ENT_DATA_URL+"ent_revamp/featured_schedule.gz",worldAddress:ENT_DATA_URL+"address/world.min.json",phAddress:ENT_DATA_URL+"address/ph_town_cities.min.json",promoCrossSell:ENT_DATA_URL+"ent_revamp/cross_sell_widgets/promos.gz"},EntListings={endpoints:{home:{dynamic:BASE_URL+"api/grid/news/",static:ENT_DATA_URL+"listing/home/"},showbiznews:{dynamic:BASE_URL+"api/standard/listing/showbiz/",static:ENT_DATA_URL+"listing/standard/showbiz/index/"},showbiznews_search_artist:{dynamic:BASE_URL+"api/standard/search/showbiz/artist/{artist}/",static:ENT_DATA_URL+"listing/standard/showbiz/artists/{artist}/",list:"showbiznews_artist_{artist}"},showbiznews_search_show:{dynamic:BASE_URL+"api/standard/search/showbiz/show/{show}/",static:ENT_DATA_URL+"listing/standard/showbiz/shows/{show}/",list:"showbiznews_show_{show}"},ontherecord:{dynamic:BASE_URL+"api/standard/listing/ontherecord/",static:ENT_DATA_URL+"listing/standard/ontherecord/index/"},ontherecord_search_artist:{dynamic:BASE_URL+"api/standard/search/ontherecord/artist/{artist}/",static:ENT_DATA_URL+"listing/standard/ontherecord/artists/{artist}/",list:"ontherecord_artist_{artist}"},ontherecord_search_show:{dynamic:BASE_URL+"api/standard/search/ontherecord/show/{show}/",static:ENT_DATA_URL+"listing/standard/ontherecord/shows/{show}/",list:"ontherecord_show_{show}"},instarazzi:{dynamic:BASE_URL+"api/standard/listing/instarazzi/",static:ENT_DATA_URL+"listing/standard/instarazzi/index/"},instarazzi_search_artist:{dynamic:BASE_URL+"api/standard/search/instarazzi/artist/{artist}/",static:ENT_DATA_URL+"listing/standard/instarazzi/artists/{artist}/",list:"instarazzi_artist_{artist}"},instarazzi_search_show:{dynamic:BASE_URL+"api/standard/search/instarazzi/show/{show}/",static:ENT_DATA_URL+"listing/standard/instarazzi/shows/{show}/",list:"instarazzi_show_{show}"},tv_stories:{dynamic:BASE_URL+"api/standard/listing/tv/{show_code}/",static:ENT_DATA_URL+"listing/standard/tv/{show_code}/stories/",list:"tv_{show_code}_stories"},tv_stories_search_artist:{dynamic:BASE_URL+"api/standard/search/tv/{show_code}/artist/{artist}/",static:ENT_DATA_URL+"listing/standard/tv/{show_code}/artists/{artist}/",list:"tv_stories_{show_code}_artist_{artist}"},tv_stories_search_show:{dynamic:BASE_URL+"api/standard/search/tv/{show_code}/show/{show}/",static:ENT_DATA_URL+"listing/standard/tv/{show_code}/shows/{show}/",list:"tv_stories_{show_code}_show_{show}"},photos:{dynamic:BASE_URL+"api/photos/listing/",static:ENT_DATA_URL+"listing/photos/index/"},photo_search_artist:{dynamic:BASE_URL+"api/photos/search/artist/{artist}/",static:ENT_DATA_URL+"listing/photos/artists/{artist}/",list:"photos_artist_{artist}"},photo_search_show:{dynamic:BASE_URL+"api/photos/search/show/{show}/",static:ENT_DATA_URL+"listing/photos/shows/{show}/",list:"photos_show_{show}"},photo_search_all:{dynamic:BASE_URL+"api/photos/listing/",static:ENT_DATA_URL+"listing/photos/index/",list:"photos"},celebritylife:{dynamic:BASE_URL+"api/grid/celebritylife/",static:ENT_DATA_URL+"listing/celebritylife/"},tv_trailer:{dynamic:BASE_URL+"api/grid/content_tv_ajax/json/trailer/{show}
1/20/",static:ENT_DATA_URL+"listing/tv/{show}/trailer/",list:"tv_{show}_trailer"},tv_episode_clip:{dynamic:BASE_URL+"api/grid/content_tv_ajax/json/episode_clip/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/episode_clip/",list:"tv_{show}_episode_clip"},tv_online_exclusive:{dynamic:BASE_URL+"api/grid/content_tv_ajax/json/online_exclusive/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/online_exclusive/",list:"tv_{show}_online_exclusive"},tv_fanmade:{dynamic:BASE_URL+"api/grid/content_tv_ajax/json/fanmade/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/fanmade/",list:"tv_{show}_fanmade"},tv_full_episode:{dynamic:BASE_URL+"api/grid/content_tv_ajax/json/full_episode/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/full_episode/",list:"tv_{show}_full_episode"},tv_photos:{dynamic:BASE_URL+"api/grid/content_tv_ajax/json/photos/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/photos/",list:"tv_{show}_photos"},tv_webisodes:{dynamic:BASE_URL+"api/grid/content_tv_ajax/json/webisode/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/webisodes/",list:"tv_{show}_webisodes"},tv_livechat:{dynamic:BASE_URL+"api/grid/content_tv_ajax/json/livechat/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/livechat/",list:"tv_{show}_livechat"},tv_episodes:{dynamic:BASE_URL+"api/grid/content_tv_ajax/json/videos/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/episodes/",list:"tv_{show}_episodes"},tv_engage:{dynamic:BASE_URL+"api/grid/engage_tv/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/engage/",list:"tv_{show}_engage"},tv_contests:{dynamic:BASE_URL+"api/grid/contests_tv/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/contests/",list:"tv_{show}_contests"},tv_quizzes:{dynamic:BASE_URL+"api/grid/quizzes_tv/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/quizzes/",list:"tv_{show}_quizzes"},tv_memes:{dynamic:BASE_URL+"api/grid/memes_tv/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/memes/",list:"tv_{show}_memes"},tv_custom:{dynamic:BASE_URL+"api/grid/tv_listing_filter/custom/{tag}/20/",static:ENT_DATA_URL+"listing/tv/custom/{tag}/",list:"tv_custom_{tag}"},tv_polls:{dynamic:BASE_URL+"api/grid/polls_tv/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/polls/",list:"tv_{show}_polls"},tv:{dynamic:BASE_URL+"api/grid/tv_listing/20/",static:ENT_DATA_URL+"listing/tv/index/"},tv_weekday:{dynamic:BASE_URL+"api/grid/tv_listing_filter/weekday/20/",static:ENT_DATA_URL+"listing/tv/weekday/"},tv_weekend:{dynamic:BASE_URL+"api/grid/tv_listing_filter/weekend/20/",static:ENT_DATA_URL+"listing/tv/weekend/"},tv_archived:{dynamic:BASE_URL+"api/grid/tv_listing_filter/archived/20/",static:ENT_DATA_URL+"listing/tv/archived/"},tv_onlineexclusives:{dynamic:BASE_URL+"api/grid/tv_listing_filter/online_exclusives/20/",static:ENT_DATA_URL+"listing/tv/online_exclusives/"},tv_upcoming:{dynamic:BASE_URL+"api/grid/tv_listing_filter/upcoming/20/",static:ENT_DATA_URL+"listing/tv/upcoming/"},tag_all:{dynamic:BASE_URL+"api/grid/content_tag_ajax/json/all/{tag}/20/",static:ENT_DATA_URL+"listing/tag/{tag}/index/",list:"tag_{tag}"},listing_tag_v2:{dynamic:BASE_URL+"api/grid/content_tag_ajax_reverse/refresh/{tag}/",static:ENT_DATA_URL+"listing/listing_tag_v2/{tag}/index/"},videos_category:{dynamic:BASE_URL+"api/videos/category/{category}/",static:ENT_DATA_URL+"listing/videos/categories/{category}/",list:"videos_{category}"},videos:{dynamic:BASE_URL+"api/videos/search/type/all/",static:ENT_DATA_URL+"listing/videos/index/"},videos_showbiznews:{dynamic:BASE_URL+"api/videos/search/showbiznews/all/",static:ENT_DATA_URL+"listing/videos/showbiznews/"},videos_shorts:{dynamic:BASE_URL+"api/listing/shorts/50/",static:ENT_DATA_URL+"listing/shorts/"},videos_celebritylife:{dynamic:BASE_URL+"api/videos/search/celebritylife/all/",static:ENT_DATA_URL+"listing/videos/celebritylife/"},video_search_artist:{dynamic:BASE_URL+"api/videos/search/artist/{artist}/",static:ENT_DATA_URL+"listing/videos/artists/{artist}/",list:"videos_artist_{artist}"},video_search_show:{dynamic:BASE_URL+"api/videos/search/show/{show}/",static:ENT_DATA_URL+"listing/videos/shows/{show}/",list:"videos_show_{show}"},video_search_popular:{dynamic:BASE_URL+"api/videos/search/type/popular/",static:ENT_DATA_URL+"listing/videos/popular/"},contests:{dynamic:BASE_URL+"api/standard/listing/contest/",static:ENT_DATA_URL+"listing/standard/contest/index/"},polls:{dynamic:BASE_URL+"api/standard/listing/poll/",static:ENT_DATA_URL+"listing/standard/poll/index/"},quizzes:{dynamic:BASE_URL+"api/standard/listing/quiz/",static:ENT_DATA_URL+"listing/standard/quiz/index/"},specials:{dynamic:BASE_URL+"api/data/specials/",static:ENT_DATA_URL+"listing/specials/"}}},EntListings_v2={endpoints:{home_v2:{dynamic:BASE_URL+"api/grid/news/",static:ENT_DATA_URL+"listing/home_v2/"},home_latest:{dynamic:BASE_URL+"api/listing/home_latest/",static:ENT_DATA_URL+"listing/home_latest/"},showbiznews_v2:{dynamic:BASE_URL+"api/standard/listing/showbiz/",static:ENT_DATA_URL+"listing/home_v2/"},photos_v2:{dynamic:BASE_URL+"api/photos/listing/",static:ENT_DATA_URL+"listing/photos_v2/"},celebritylife_v2:{dynamic:BASE_URL+"api/grid/celebritylife/",static:ENT_DATA_URL+"listing/celebritylife_v2/"},videos_v2:{dynamic:BASE_URL+"api/videos/search/type/all/",static:ENT_DATA_URL+"listing/videos_v2/"},videos_shorts:{dynamic:BASE_URL+"api/listing/shorts/50/",static:ENT_DATA_URL+"listing/shorts/"},contests:{dynamic:BASE_URL+"api/standard/listing/contest/",static:ENT_DATA_URL+"listing/standard/contest/index/"},polls:{dynamic:BASE_URL+"api/standard/listing/poll/",static:ENT_DATA_URL+"listing/standard/poll/index/"},quizzes:{dynamic:BASE_URL+"api/standard/listing/quiz/",static:ENT_DATA_URL+"listing/standard/quiz/index/"},tv:{dynamic:BASE_URL+"api/grid/tv_listing/20/",static:ENT_DATA_URL+"listing/tv/index/"},tv_archived:{dynamic:BASE_URL+"api/grid/tv_listing_filter/archived/20/",static:ENT_DATA_URL+"listing/tv/archived/"},tv_onlineexclusives:{dynamic:BASE_URL+"api/grid/tv_listing_filter/online_exclusives/20/",static:ENT_DATA_URL+"listing/tv/online_exclusives/"},tv_weekday:{dynamic:BASE_URL+"api/grid/tv_listing_filter/weekday/20/",static:ENT_DATA_URL+"listing/tv/weekday/"},tv_weekend:{dynamic:BASE_URL+"api/grid/tv_listing_filter/weekend/20/",static:ENT_DATA_URL+"listing/tv/weekend/"},tv_custom:{dynamic:BASE_URL+"api/grid/tv_listing_filter/custom/{tag}/20/",static:ENT_DATA_URL+"listing/tv/custom/{tag}/",list:"tv_custom_{tag}"},tv_episodes:{dynamic:BASE_URL+"api/grid/content_tv_ajax/json/videos/{show}
1/20/",static:ENT_DATA_URL+"listing/tv/{show}/episodes/",list:"tv_{show}_episodes"},tv_engage:{dynamic:BASE_URL+"api/grid/engage_tv/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/engage/",list:"tv_{show}_engage"},tv_contests:{dynamic:BASE_URL+"api/grid/contests_tv/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/contests/",list:"tv_{show}_contests"},tv_quizzes:{dynamic:BASE_URL+"api/grid/quizzes_tv/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/quizzes/",list:"tv_{show}_quizzes"},tv_memes:{dynamic:BASE_URL+"api/grid/memes_tv/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/memes/",list:"tv_{show}_memes"},tv_custom:{dynamic:BASE_URL+"api/grid/tv_listing_filter/custom/{tag}/20/",static:ENT_DATA_URL+"listing/tv/custom/{tag}/",list:"tv_custom_{tag}"},tv_polls:{dynamic:BASE_URL+"api/grid/polls_tv/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/polls/",list:"tv_{show}_polls"},tv_full_episode:{dynamic:BASE_URL+"api/grid/content_tv_ajax/json/full_episode/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/full_episode/all.gz",list:"tv_{show}_full_episode"},tv_stories:{dynamic:BASE_URL+"api/standard/listing/tv/{show_code}/",static:ENT_DATA_URL+"listing/standard/tv/{show_code}/stories/",list:"tv_{show_code}_stories"},tv_stories_search_artist:{dynamic:BASE_URL+"api/standard/search/tv/{show_code}/artist/{artist}/",static:ENT_DATA_URL+"listing/standard/tv/{show_code}/artists/{artist}/",list:"tv_stories_{show_code}_artist_{artist}"},tv_stories_search_show:{dynamic:BASE_URL+"api/standard/search/tv/{show_code}/show/{show}/",static:ENT_DATA_URL+"listing/standard/tv/{show_code}/shows/{show}/",list:"tv_stories_{show_code}_show_{show}"},tv_photos:{dynamic:BASE_URL+"api/grid/content_tv_ajax/json/photos/{show}
1/20/",static:ENT_DATA_URL+"listing/tv/{show}/photos/",list:"tv_{show}_photos"},tv_trailer:{dynamic:BASE_URL+"api/grid/content_tv_ajax/json/trailer/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/trailer/",list:"tv_{show}_trailer"},tv_episode_clip:{dynamic:BASE_URL+"api/grid/content_tv_ajax/json/episode_clip/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/episode_clip/",list:"tv_{show}_episode_clip"},tv_online_exclusive:{dynamic:BASE_URL+"api/grid/content_tv_ajax/json/online_exclusive/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/online_exclusive/",list:"tv_{show}_online_exclusive"},tv_fanmade:{dynamic:BASE_URL+"api/grid/content_tv_ajax/json/fanmade/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/fanmade/",list:"tv_{show}_fanmade"},tv_full_episode:{dynamic:BASE_URL+"api/grid/content_tv_ajax/json/full_episode/{show}/20/",static:ENT_DATA_URL+"listing/tv/{show}/full_episode/",list:"tv_{show}_full_episode"},showbiznews_v3:{dynamic:BASE_URL+"api/listing/showbiznews_latest/20/",static:ENT_DATA_URL+"listing/showbiznews_v3/"},specials:{dynamic:BASE_URL+"api/data/specials/",static:ENT_DATA_URL+"listing/specials/"},videos_celebritylife:{dynamic:BASE_URL+"api/videos/search/celebritylife/all/",static:ENT_DATA_URL+"listing/videos/celebritylife/"},videos_showbiznews:{dynamic:BASE_URL+"api/videos/search/showbiznews/all/",static:ENT_DATA_URL+"listing/videos/showbiznews/"}}},MiscEntConfigs={},WidgetSettings={celebritylife_inside:{desktop:"celebrity_life_-_article_inside_-_desktop",mobile:"celebrity_life_-_article_inside_-_mobile"},celebritylife_photos:{desktop:"celebrity_life_-_photo_gallery_inside_-_desktop",mobile:"celebrity_life_-_photo_gallery_inside_-_mobile"},celebritylife_instaratzzi:{desktop:"celebrity_life_-_instaratzzi_-_desktop",mobile:""},showbiznews_inside:{desktop:"showbiz_news_-_article_inside_-_desktop",mobile:"showbiz_news_-_article_inside_-_mobile"},showbiznews_photos:{desktop:"showbiz_news_-_photo_gallery_inside_-_desktop",mobile:"showbiz_news_-_photo_gallery_inside_-_mobile"},showbiznews_ontherecords:{desktop:"showbiz_news_-_ontherecords_-_desktop",mobile:""},showbiznews_stories:{desktop:"showbiz_news_-_stories_standard_-_desktop",mobile:""},tv_home:{desktop:"tv_-_home_-_desktop",mobile:"tv_-_home_-_mobile"},schedule:{desktop:"schedule_-_desktop",mobile:"schedule_-_mobile"},engage_contest_standard:{desktop:"engage_-_contest_standard_-_desktop",mobile:""},engage_quizzes_standard:{desktop:"engage_-_quizzes_standard_-_desktop",mobile:""},engage_polls_standard:{desktop:"engage_-_polls_standard_-_desktop",mobile:""},engage_quiz_inside:{desktop:"engage_-_quiz_inside_-_desktop",mobile:"engage_-_quiz_inside_-_mobile"},engage_poll_inside:{desktop:"engage_-_poll_inside_-_desktop",mobile:"engage_-_poll_inside_-_mobile"}},EntUtility={fetch:function(options){var settings=$.extend({url:null,method:"GET",type:"GET",cache:!0,data:null,dataType:"json",mimeType:"text/plain; charset=utf-8",error:function(){},success:function(){},complete:function(){}},options);$.ajax({type:settings.type,url:settings.url,method:settings.method,cache:settings.cache,data:settings.data,dataType:settings.dataType,beforeSend:function(xhr){xhr.overrideMimeType(settings.mimeType)},success:function(data,status,xhr){data.ajax_url=this.url;data.timestamp=xhr.getResponseHeader("Last-Modified");settings.success(data)},error:function(xhr,status,errorThrown){settings.error(xhr,status,errorThrown)},complete:function(xhr,status){settings.complete(xhr,status)},xhr:function(){var xhr=new window.XMLHttpRequest;xhr.upload.addEventListener("progress",function(evt){if(evt.lengthComputable){var percentComplete=evt.loaded/evt.total}},!1);xhr.addEventListener("progress",function(evt){if(evt.lengthComputable){var percentComplete=evt.loaded/evt.total}},!1);return xhr}})},create:function(data,view,callback){try{if("function"===typeof view){callback(view(data))}else{callback(data)}}catch(e){console.error(e);callback()}},build:function(options){var self=this,settings=$.extend({element:null,dom:null,data:null,css:!1,js:!1,buildType:"html",build:!0,callback:function(element,html){}}
1,options);if("undefined"===typeof settings.element&&0>=settings.element.length&&!0===settings.build){return}if(settings.element.hasClass("--placeholder")){settings.element.removeClass("--placeholder")}if(settings.css){self.loadStyles(settings.load_css)}if(settings.js){self.loadScripts(settings.load_js,function(){self.buildView(settings,function(html){settings.callback(settings.element,html)})})}else{self.buildView(settings,function(html){settings.callback(settings.element,html)})}},buildView:function(settings,callback){var self=this;self.create(settings.data,settings.dom,function(view){if(!1===settings.build){callback(view);return}switch(settings.buildType){case"append":$.when(settings.element.append(view)).done(function(){callback(view)});break;default:$.when(settings.element.html(view)).done(function(){callback(view)});break}})},isValid:function(str){var type=typeof str,output=!1;if("undefined"===typeof str){output=!1}switch(type){case"string":output=!0;break;case"number":output=!0;break;case"undefined":output=!1;break;case"object":if(null===str){output=!1}else{output=!0}break;default:output=!1;break}if(""===$.trim(str)){output=!1}return output},imageUrl:function(url,is_relative){var imgUrl="";if(!url){return!1}if(is_relative){imgUrl=assets_url+url}else{imgUrl=url}return imgUrl},loadScripts:function(scripts,callback){if(!scripts)return!1;var size=scripts.length,i=0;(function loadNextScript(){if(i<size){EntUtility.cachedGetScript(scripts[i],{complete:function(){i++;loadNextScript()}})}else{if("undefined"!==typeof callback)callback()}})()},loadStyles:function(styles){var head=$("head");if(!styles)return!1;for(var i in styles){head.append("<link rel=\"stylesheet\" href=\""+styles[i]+"\" />")}},hexToRgb:function(hex){var shorthandRegex=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;hex=hex.replace(shorthandRegex,function(m,r,g,b){return r+r+g+g+b+b});var result=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);return result?{r:parseInt(result[1],16),g:parseInt(result[2],16),b:parseInt(result[3],16)}:null},cssRgba:function(hex,opacity){if(!hex){return!1}if(!opacity){opacity=1}var rgb=this.hexToRgb(hex);return"rgba("+rgb.r+","+rgb.g+","+rgb.b+","+opacity+")"},getElementPosition:function(element,parent){var childPos=$(element).offset(),parentPos=$(element).closest(parent).offset(),childOffset={top:childPos.top-parentPos.top,left
1:childPos.left-parentPos.left};return childOffset},stringLimiter:function(thisString,limit){var thisLength=thisString.length,output=thisString,num=parseInt(limit);if(thisLength>num){var thisAfter=thisString.substr(num-1,thisLength-num-1),moreLength=thisAfter.search(" ");if(0<=moreLength){output=thisString.substr(0,num-1+moreLength)+"..."}else{output=thisString}}else{output=thisString}return output},getSize:function(obj){if(!obj||null===obj||""===obj){return 0}if($.isArray(obj)){return obj.length}else{var size=0,key;for(key in obj){if(obj.hasOwnProperty(key))size++}return size}},safeFilename:function(str){return str.trim().replace(/[^a-z0-9-]/gi,"_")},whiteSpaceToUnderscore:function(str){return str.trim().split(" ").join("_")},isPluginLoaded:function(pluginName){if($[pluginName]){return!0}else{return!1}},getCookie:function(option){if(!this.isPluginLoaded("cookie")){console.info("jQuery Cookie plugin is needed to use this function, ref: [utility.getCookie]");return}var options={name:"",parse:!0},response=!1;if("string"===typeof option){options.name=option}else{options=$.extend({},options,option)}if(options.parse){response=$.cookie(options.name)?JSON.parse($.cookie(options.name)):void 0}else{response=$.cookie(options.name)}return response},setCookie:function(option){if(!this.isPluginLoaded("cookie")){console.info("jQuery Cookie plugin is needed to use this function, ref: [utility.setCookie]");return}var options={name:"",value:"",stringify:!0},value;options=$.extend({},options,option);if(options.stringify){value=options.value||""!==options.value?JSON.stringify(options.value):void 0}else{value=options.value}$.cookie(options.name,value,{path:"/"})},urlEncode:function(str){str=(str+"").toString();return encodeURIComponent(str).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+").replace(/,/g,"%2C")},urlDecode:function(str){return decodeURIComponent((str+"").replace(/%(?![\da-f]{2})/gi,function(){return"%25"}).replace(/\+/g,"%20").replace("%2C",","))},escapeHTML:function(str){if("undefined"===typeof str){return}return str.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")},cleanSpecialCharacters:function(str){if("undefined"===typeof str){return}return str.replace(/&/g,"").replace(/"/g,"").replace(/'/g,"").replace(/</g,"").replace(/>/g,"")},getStringSize:function(str){return encodeURIComponent(str).length},cachedGetScript:function(url,options){var thisOptions=$.extend(options||{},{dataType:"script",cache:!0,url:url});$.ajax(thisOptions).done(function(){if("function"===typeof thisOptions.success){thisOptions.success}})},defaultMobileSize:600,isMobile:function(width){var winWidth=$(window).width(),maxWidthMobile="undefined"===typeof width?EntUtility.defaultMobileSize:width,isMobile=!1;if(winWidth<=maxWidthMobile){isMobile=!0}return isMobile},isWebView:function(){var isWebView=!1,userAgent=window.navigator.userAgent.toLowerCase(),instagram=/instagram/.test(userAgent),facebook=/fb_iab/.test(userAgent),facebookbrowser=/fbbv/.test(userAgent);if(instagram||facebook||facebookbrowser){isWebView=!0}else{isWebView=!1}return isWebView},optionOverride:function(options,defaultOptions){return $.extend({},defaultOptions,options)},removeElement:function(data,key){if(!EntUtility.isValid(data)&&0>EntUtility.getSize(data))return;var tmp=[];$.each(data,function(i,item){if(parseInt(item.id)!==parseInt(key)){tmp.push(item)}});return tmp},addDotDot:function(){var DotDot=$(".dotdot:not(.dot-loaded)");if(0<this.getSize(DotDot)){$.each(DotDot,function(i,item){setTimeout(function(){$(item).dotdotdot({fallbackToLetter:!0,watch:!0});$(item).addClass("dot-loaded")},100)})}},getPostIcon:function(code){if(!EntUtility.isValid(code)&&0>EntUtility.getSize(code))return;var icon="",type=parseInt(code);switch(type){case 0:case 16:{icon="<span class=\"glyph-icon c-type t-article\"></span>"}break;case 1:{icon="<span class=\"glyph-icon c-type t-photo\"></span>"}break;case 2:{icon="<span class=\"glyph-icon c-type t-video\"></span>"}break;case 12:{icon="<span class=\"glyph-icon c-type t-contest\"></span>"}break;case 13:{icon="<span class=\"glyph-icon c-type t-poll\"></span>"}break;case 14:{icon="<span class=\"glyph-icon c-type t-quiz\"></span>"}break;case 15:{icon="<span class=\"glyph-icon c-type t-meme\"></span>"}break;default:{icon=""}}return icon},checkIfAbsoluteURL:function(urlString){if("undefined"!==typeof urlString&&null!==urlString){if(0===urlString.indexOf("http://")||0===urlString.indexOf("https://")){return!0}else{return!1}}},getViolator:function(code,label){if(!EntUtility.isValid(code)&&0>EntUtility.getSize(code))return;var violator="",type=parseInt(code);switch(type){case 5:{violator="<div class=\"violator hot\"><span class=\"icon\"><span class=\"glyph-icon v-hot\"></span></span><span class=\"label\">Hot</span></div>"}break;case 1:{violator="<div class=\"violator exclusive\"><span class=\"icon\"><span class=\"glyph-icon v-exclusive-star\"></span></span><span class=\"label\">Exclusive</span><span class=\"icon\"><span class=\"glyph-icon v-exclusive-star\"></span></span></div>"}break;case 2:{violator="<div class=\"violator recommended\"><span class=\"icon\"><span class=\"glyph-icon v-recommended\"></span></span><span class=\"label\">Highly Recommended</span></div>"}break;case 3:{violator="<div class=\"violator popular\"><span class=\"icon\"><span class=\"glyph-icon v-popular\"></span></span><span class=\"label\">Most Popular</span></div>"}break;case 4:{violator="<div class=\"violator trending\"><span class=\"icon\"><span class=\"glyph-icon v-trending\"></span></span><span class=\"label\">Trending</span></div>"}break;case 6:{if(""!=label){violator="<div class=\"violator show\"><span class=\"icon\"><span class=\"glyph-icon v-show\"></span></span><span class=\"label\">"+EntUtility.stringLimiter(label,30)+"</span></div>"}}case 13:{violator="<div class=\"violator promo\"></div>"}break}return violator},getImageProperties:function(param){var imgProperties={},imgCropping="undefined"===typeof param.cropping?"f":param.cropping,imgOrientation=param.image_orientation,imgConfig=EntConfig.cropping.standard[imgCropping],imgFilePrefix="",option_type="";if(1==parseInt(imgOrientation)){imgConfig=EntConfig.cropping.wide[imgCropping]}if(typeof param.option_type&&"photo"==param.option_type){option_type="photo"}imgFilePrefix=imgConfig[0]+"_"+imgConfig[1]+"_";var imgHeight=imgConfig[1]+"px",imgWidth=imgConfig[0]+"px",imagePosition=param.background_position,imagePercentage=param.percentage+"%";
1if(0==param.background_position||""==param.background_position||"undefined"===typeof param.background_position||null==param.background_position){imgFilePrefix="original/";imagePosition="old_content"}if("undefined"!==typeof param.remove_cropping){imagePosition="old_content"}if(""==param.percentage||null==param.percentage||"undefined"===typeof param.percentage||"0"==param.percentage){imagePercentage="100%"}imgProperties.image_orientation=imgOrientation;imgProperties.background_position=imagePosition;imgProperties.percentage=imagePercentage;imgProperties.height=imgHeight;imgProperties.width=imgWidth;imgProperties.alt_text="undefined"!==typeof param.alt_text?param.alt_text:"";if(!0===param.old_content){imgProperties.image_src=S3_MEDIA+param.image_name}else{switch(param.content_classification){case"gtv/story":case"lifestyle/story":case"0":imgProperties.image_src=S3_MEDIA+param.section+"/articles/"+imgFilePrefix+param.image_name;break;case"lifestyle/photo":case"gtv/photo":case"1":imgProperties.image_src=S3_MEDIA+param.section+"/gallery/"+imgFilePrefix+param.image_name;break;case"fullepisodes/video":case"lifestyle/video":case"gtv/video":case"2":case"30":imgProperties.image_src=S3_MEDIA+param.section+"/videos/images/"+imgFilePrefix+param.image_name;imgProperties.cover_it="undefined"!==typeof param.cover_it?param.cover_it:"default";break;case"11":case"gtv/tv":case"fullepisodes/tv":imgProperties.image_src=S3_MEDIA+param.section+"/shows/images/"+imgFilePrefix+param.image_name;break;case"12":imgProperties.image_src=S3_MEDIA+param.section+"/contest/images/"+imgFilePrefix+param.image_name;break;case"12a":imgProperties.image_src=S3_MEDIA+param.section+"/contest/sample/"+imgFilePrefix+param.image_name;break;case"12b":imgProperties.image_src=S3_MEDIA+param.section+"/contest/show/"+imgFilePrefix+param.image_name;break;case"13":case"lifestyle/poll":imgProperties.image_src=S3_MEDIA+param.section+"/polls/images/"+imgFilePrefix+param.image_name;if("photo"===option_type){imgProperties.image_src=S3_MEDIA+param.section+"/polls/question/images/"+imgFilePrefix+param.image_name}break;case"14":case"lifestyle/quiz":imgProperties.image_src=S3_MEDIA+param.section+"/quiz/images/"+imgFilePrefix+param.image_name;break;case"16":imgProperties.image_src=S3_MEDIA+param.section+"/special_pages/"+imgFilePrefix+param.image_name;break;case"cast":if("original/"==imgFilePrefix){imgProperties.image_src=S3_MEDIA+param.section+"/shows/castinformation/"+param.image_name}else{imgProperties.image_src=S3_MEDIA+param.section+"/tv/castinformation/"+imgFilePrefix+param.image_name}break;case"gets_online":imgProperties.image_src=S3_MEDIA+"entertainment/gets_online/"+imgFilePrefix+param.image_name;break;case"pagelayout":imgProperties.image_src=S3_MEDIA+"entertainment/page_layout/"+param.layout+"/"+imgFilePrefix+param.image_name;break;case"pagelayout_revamp_desktop":imgProperties.image_src=S3_MEDIA+"entertainment/page_layout/"+param.layout+"/desktop/"+imgFilePrefix+param.image_name;break;case"pagelayout_revamp_mobile":imgProperties.image_src=S3_MEDIA+"entertainment/page_layout/"+param.layout+"/mobile/"+imgFilePrefix+param.image_name;break;case"placeholder":imgProperties.image_src=S3_MEDIA+"entertainment/settings/"+imgFilePrefix+param.image_name;break;case"artgap":imgProperties.image_src=S3_MEDIA+"kapusofoundation/artgap/artwork/uploads/"+imgFilePrefix+param.image_name;break;case"gtv_default_logo":imgProperties.image_src="https://aphrodite.gmanetwork.com/gtv_assets/img/gtv-default-logo.png";break;case"radio/video":case"films/video":case"pictures/video":case"international/video":case"kapusofoundation/video":imgProperties.image_src=S3_MEDIA+param.image_link+"videos/main_image/"+param.image_name;break;case"radio/photo":case"films/photo":case"pictures/photo":case"corporate/photo":case"kapusofoundation/photo":imgProperties.image_src=S3_MEDIA+param.image_link+"photos/gallery/"+param.image_name;break;case"radio/story":case"films/story":case"pictures/story":case"corporate/story":case"kapusofoundation/story":imgProperties.image_src=S3_MEDIA+param.image_link+"articles/main/"+param.image_name;break;case"music/story":imgProperties.image_src=S3_MEDIA+"records/articles/main/"+param.image_name;break;case"music/video":imgProperties.image_src=S3_MEDIA+"records/videos/main/"+param.image_name;break;case"music/photo":imgProperties.image_src=S3_MEDIA+"records/gallery/original/"+param.image_name;break;case"international/story":imgProperties.image_src=S3_MEDIA+param.image_link+"articles/original/"+param.image_name;break;case"international/newsandevents":imgProperties.image_src=S3_MEDIA+param.image_link+"events/"+imgFilePrefix+param.image_name;break;case"corporate/video":imgProperties.image_src=S3_MEDIA+param.image_link+"videos/share/"+param.image_name;break;
1case"sparkle/video":case"sparkle/artistcenter":imgProperties.image_src=S3_MEDIA+param.image_link+"images/"+imgFilePrefix+param.image_name;break;case"pictures/films":imgProperties.image_src=S3_MEDIA+param.image_link+"films/secondarytcard/"+param.image_name;break;case"lifestyle/kapusoprofile":imgProperties.image_src=S3_MEDIA+param.section+"/"+param.image_link+imgFilePrefix+param.image_name;break;default:break}if("undefined"===typeof imgProperties.image_src){switch(param.content_classification){case 0:imgProperties.image_src=S3_MEDIA+param.section+"/articles/"+imgFilePrefix+param.image_name;break;case 1:imgProperties.image_src=S3_MEDIA+param.section+"/gallery/"+imgFilePrefix+param.image_name;break;case 2:case 30:imgProperties.image_src=S3_MEDIA+param.section+"/videos/images/"+imgFilePrefix+param.image_name;imgProperties.cover_it="undefined"!==typeof param.cover_it?param.cover_it:"default";break;case 11:imgProperties.image_src=S3_MEDIA+param.section+"/shows/images/"+imgFilePrefix+param.image_name;break;case 12:imgProperties.image_src=S3_MEDIA+param.section+"/contest/images/"+imgFilePrefix+param.image_name;break;case 13:imgProperties.image_src=S3_MEDIA+param.section+"/polls/images/"+imgFilePrefix+param.image_name;break;case 14:imgProperties.image_src=S3_MEDIA+param.section+"/quiz/images/"+imgFilePrefix+param.image_name;break;case 16:imgProperties.image_src=S3_MEDIA+param.section+"/special_pages/"+imgFilePrefix+param.image_name;break;default:break}}}return imgProperties},getSection:function(code,isLink){if(!EntUtility.isValid(code)&&0>EntUtility.getSize(code))return;var section="",type=parseInt(code);switch(type){case 1:{if("undefined"!==typeof isLink){var link=window.location.pathname,searchString="/photo";if(link.includes(searchString)){section="<a href=\""+SITE_URL+"tv/"+"\" target=\"_top\" aria-label=\"See latest content in www.gmanetwork.com\"><span class=\"label\">TV</span></a>"}else{section="<a href=\""+SITE_URL+"tv/"+"\" target=\"_top\"><span class=\"label\">TV</span></a>"}}else{section="<span class=\"label\">TV</span>"}}break;case 4:{if("undefined"!==typeof isLink){var link=window.location.pathname,searchString="/photo";if(link.includes(searchString)){section="<a href=\""+SITE_URL+"celebritylife/"+"\" target=\"_top\" aria-label=\"See latest content in www.gmanetwork.com\"><span class=\"label\">Celebrity Life</span></a>"}else{section="<a href=\""+SITE_URL+"celebritylife/"+"\" target=\"_top\"><span class=\"label\">Celebrity Life</span></a>"}}else{section="<span class=\"label\">Celebrity Life</span>"}}break;case 2:{if("undefined"!==typeof isLink){var link=window.location.pathname,searchString="/photo";if(link.includes(searchString)){section="<a href=\""+SITE_URL+"celebritylife/"+"\" target=\"_top\" aria-label=\"See latest content in www.gmanetwork.com\"><span class=\"label\">Celebrity Life</span></a>"}else{section="<a href=\""+SITE_URL+"celebritylife/"+"\" target=\"_top\"><span class=\"label\">Celebrity Life</span></a>"}}else{section="<span class=\"label\">Celebrity Life</span>"}}break;case 5:{if("undefined"!==typeof isLink){var link=window.location.pathname,searchString="/photo";if(link.includes(searchString)){section="<a href=\""+SITE_URL+"engage/"+"\" target=\"_top\" aria-label=\"See latest content in www.gmanetwork.com\"><span class=\"label\">Engage</span></a>"}else{section="<a href=\""+SITE_URL+"engage/"+"\" target=\"_top\"><span class=\"label\">Engage</span></a>"}}else{section="<span class=\"label\">Engage</span>"}}break;case 6:{section="<span class=\"label\">Kapuso Profiles</span>"}break;case 9:{section="<span class=\"label\">Brand Talk</span>"}break;default:{if("undefined"!==typeof isLink){var link=window.location.pathname,searchString="/photo";if(link.includes(searchString)){section="<a href=\""+SITE_URL+"showbiznews/"+"\" target=\"_top\" aria-label=\"See latest content in www.gmanetwork.com\"><span class=\"label\">Showbiz News</span></a>"}else{section="<a href=\""+SITE_URL+"showbiznews/"+"\" target=\"_top\"><span class=\"label\">Showbiz News</span></a>"}}else{section="<span class=\"label\">Showbiz News</span>"}}}return section},getSubSection:function(subsection){switch(subsection){case"hobbies":subsection="hobbiesandinterests";break;case"health":subsection="healthandwellness";break;default:subsection;break}return subsection},getGenre:function(genre){switch(genre){case"1":genre="Comedy";break;case"2":genre="Drama";break;case"3":genre="Game";break;case"4":genre="Infotainment";break;case"5":genre="Kiddie Show";break;case"6":genre="Magazine";break;case"7":genre="Reality";break;case"8":genre="Showbiz Talk";break;case"9":genre="Special";break;case"10":genre="Variety";break;case"11":genre="News";break;case"12":genre="Anime";break;case"13":genre="Online Exclusive";break;case"14":genre="GETS Online";break;default:genre="";break}return genre},positionImg:function(){$(".img-placeholder").each(function(){var object=$(this);if(object.hasClass("donot-show")){object.hide()}object.imagesLoaded().progress(function(instance,image){var hiddenImg=object.find("img");if(!image.isLoaded){hiddenImg.addClass("broken")}if(!0!=hiddenImg.hasClass("processed")||!0==object.hasClass("reload")){EntUtility.calculateImgPosition(object)}}).done(function(instance){if(object.hasClass("donot-show")){object.show();object.removeClass("donot-show")}})})},calculateImgPosition:function(elem){var height=elem.height(),width=elem.width(),imgBG=elem.find(".
1img-det"),imgPosition=imgBG.attr("data-type"),hiddenImg=elem.find("img"),hiddenImgHeight=hiddenImg.height(),hiddenImgWidth=hiddenImg.width(),imgHeight=hiddenImgHeight,imgWidth=hiddenImgWidth;hiddenImg.addClass("processed");if("old_content"==imgPosition||elem.hasClass("cover-image")){imgBG.css("background-size","cover");if(elem.hasClass("cover-image")){imgBG.css("background-position","center center");if(elem.hasClass("ent-trending-videos")){imgBG.css("background-position","center center")}}else{imgBG.css("background-position","center center")}imgBG.css("height","100%");imgBG.css("width","100%");imgBG.css("top","0");imgBG.css("left","0");imgBG.css("right","0");imgBG.css("bottom","0")}else{if(hiddenImgHeight<height||hiddenImgWidth<width){imgBG.css("background-size","cover");if("undefined"!==typeof imgPosition&&$(elem).hasClass("override-bg")){imgBG.css("background-position",imgPosition)}else{imgBG.css("background-position","center center")}imgBG.css("height","100%");imgBG.css("width","100%");imgBG.css("top","0");imgBG.css("left","0");imgBG.css("right","0");imgBG.css("bottom","0")}else{if("undefined"!==typeof imgBG.attr("data-type")&&"undefined"!==typeof imgHeight&&"undefined"!==typeof imgWidth&&"cover"!==imgBG.css("background-size")){imgBG.css("height",hiddenImgHeight);imgBG.css("width",hiddenImgWidth);var x=parseInt(imgWidth)/3,y=parseInt(imgHeight)/3,a=parseInt(width)-x,b=parseInt(height)-y,c=a/2-x,d=b/2-y;switch(imgPosition){case"center center":imgBG.css({top:d+"px",right:c+"px"});break;case"center left":imgBG.css({top:d+"px",left:"0px"});break;case"center right":imgBG.css({top:d+"px",right:"0px"});break;case"top center":imgBG.css({top:"0px",left:c+"px"});break;case"top left":imgBG.css({top:"0px",left:"0px"});break;case"top right":imgBG.css({top:"0px",right:"0px"});break;
1case"bottom center":imgBG.css({bottom:"0px",left:c+"px"});break;case"bottom left":imgBG.css({bottom:"0px",left:"0px"});break;case"bottom right":imgBG.css({bottom:"0px",right:"0px"});break;default:imgBG.css({top:"0px",right:"0px"});break}}}}imgBG.show()},buildImagePlaceholder:function(imgProperties){var html="",bgStyle="background-image: url("+imgProperties.image_src+"); "+" background-size: "+imgProperties.percentage+";"+" height: "+imgProperties.height+";"+" width: "+imgProperties.width+";",reloadFlag="",alt_text="undefined"!==typeof imgProperties.alt_text?imgProperties.alt_text:"";if("undefined"===typeof imgProperties){return html}if("undefined"!==typeof imgProperties.reload){reloadFlag="reload"}if("undefined"!==typeof imgProperties.overrideBGPosition){reloadFlag+=" override-bg"}if("undefined"!==typeof imgProperties.doNotShow){reloadFlag+=" donot-show"}if("undefined"!==typeof imgProperties.cover_it&&!0===imgProperties.cover_it){reloadFlag+=" ent-trending-videos"}if("default"===imgProperties.cover_it&&"old_content"===imgProperties.background_position){reloadFlag+=" cover-image"}html+="<div class=\"img-placeholder "+reloadFlag+"\">";html+="<div class=\"img-det\" data-type=\""+imgProperties.background_position+"\" style=\""+bgStyle+"\" ></div>";html+="<img src=\""+imgProperties.image_src+"\" alt=\""+alt_text+"\"/>";html+="</div>";return html},lazyloadImagePlaceholder:function(imgProperties,cover){var html="",bgStyle="background-image: url('data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'); "+" background-size: "+imgProperties.percentage+";"+" height: "+imgProperties.height+";"+" width: "+imgProperties.width+";",reloadFlag="",alt_text="undefined"!==typeof imgProperties.alt_text?imgProperties.alt_text:"";if("undefined"===typeof imgProperties){return html}if("undefined"!==typeof imgProperties.reload){reloadFlag="reload"}if("undefined"!==typeof imgProperties.overrideBGPosition){reloadFlag+=" override-bg"}if("undefined"!==typeof imgProperties.doNotShow){reloadFlag+=" donot-show"}if("undefined"!==typeof imgProperties.cover_it&&!0===imgProperties.cover_it){reloadFlag+=" ent-trending-videos"}if("default"===imgProperties.cover_it&&"old_content"===imgProperties.background_position){reloadFlag+=" cover-image"}html+="<div class=\"img-placeholder "+reloadFlag+"\">";html+="<div class=\"img-det ent-lazyload\" data-original=\""+imgProperties.image_src+"\" data-type=\""+imgProperties.background_position+"\" style=\""+bgStyle+"\" ></div>";if("undefined"!==typeof cover){if(cover){html+="<img class=\"ent-lazyload\" src=\""+imgProperties.image_src+"\" width=\""+imgProperties.width+"\" height=\""+imgProperties.height+"\" alt=\""+alt_text+"\" />"}else{html+="<img data-original=\""+imgProperties.image_src+"\" class=\"ent-lazyload\" alt=\""+alt_text+"\"/>"}}else{html+="<img data-original=\""+imgProperties.image_src+"\" width=\""+imgProperties.width+"\" height=\""+imgProperties.height+"\" class=\"ent-lazyload\" alt=\""+alt_text+"\"/>"}html+="</div>";return html},insertPreloadImage:function(img){var preloadLink=document.createElement("link");preloadLink.rel="preload";preloadLink.as="image";preloadLink.href=img;preloadLink.fetchPriority="high";document.head.appendChild(preloadLink)},revampGridImagePlaceholder:function(imgProperties,lazyLoad,isLCP){isLCP="undefined"===typeof isLCP?!1:isLCP;lazyLoad="undefined"===typeof lazyLoad?!0:lazyLoad;var html="",bgStyle="background-image: url('data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'); "+" background-size: "+imgProperties.percentage+";"+" height: "+imgProperties.height+";"+" width: "+imgProperties.width+";",reloadFlag="",alt_text="undefined"!==typeof imgProperties.alt_text?imgProperties.alt_text:"";if("undefined"===typeof imgProperties){return html}if("undefined"!==typeof imgProperties.reload){reloadFlag="reload"}if("undefined"!==typeof imgProperties.overrideBGPosition){reloadFlag+=" override-bg"}if("undefined"!==typeof imgProperties.doNotShow){reloadFlag+=" donot-show"}if("undefined"!==typeof imgProperties.cover_it&&!0===imgProperties.cover_it){reloadFlag+=" ent-trending-videos"}if("default"===imgProperties.cover_it&&"old_content"===imgProperties.background_position){reloadFlag+=" cover-image"}if(!lazyLoad&&!isLCP){var bgStyle="background-image: url('"+imgProperties.image_src+"'); "+" background-size: "+imgProperties.percentage+";"+" height: "+imgProperties.height+";"+" width: "+imgProperties.width+";"}html+="<div class=\"revamp-img-placeholder img-placeholder "+reloadFlag+"\">";if(!lazyLoad||isLCP){html+="<img data-original=\""+imgProperties.image_src+"\""+" fetchpriority=\"high\""+" loading=\"eager\""+" class=\"ent-lazyload revamp-grid\""+" alt=\""+alt_text+"\""+" style=\""+bgStyle+"\" />"}else{html+="<img data-original=\""+imgProperties.image_src+"\""+"fetchpriority=\"low\""+" loading=\"lazy\""+" class=\"ent-lazyload revamp-grid\""+" alt=\""+alt_text+"\""+" style=\""+bgStyle+"\" />"}
1html+="</div>";return html},buildURL:function(url,flag,overrideURL){if("undefined"===typeof url&&"undefined"===typeof flag)return;var modURL="";if(1===parseInt(flag)){if("undefined"!==typeof overrideURL){modURL=overrideURL}else{modURL=url}}else{modURL=SITE_URL+url}return modURL},buildTags:function(str){if("undefined"===typeof str){return""}var tmp=str.trim().replace(/,/g," ").split(" "),tags=[];$.each(tmp,function(i,item){if(""!==item.trim())tags.push(item.replace(/_/g," "))});return tags},buildArray:function(str){if("undefined"===typeof str){return""}var tmp=str.trim().replace(/,/g," ").split(" "),_tmp=[];$.each(tmp,function(i,item){if(""!==item.trim())_tmp.push(item)});return _tmp},responsiveIframes:function(){$(".ent-article .content iframe[src*=\"youtube\"]:not(.processed), .ent-article .content iframe[src*=\"vimeo\"]:not(.processed), .ent-article .content iframe[src*=\"dailymotion\"]:not(.processed), .ent-article .content iframe.ent-evideo-embed:not(.processed), .ent-photo .content iframe[src*=\"evideo\"]:not(.processed,.ent-evideo-embed), .ent-photo .content iframe[src*=\"youtube\"]:not(.processed), .ent-photo .content iframe[src*=\"vimeo\"]:not(.processed), .ent-photo .content iframe[src*=\"dailymotion\"]:not(.processed), .ent-photo .content iframe.ent-evideo-embed:not(.processed), .ent-photo .content iframe[src*=\"evideo\"]:not(.processed,.ent-evideo-embed)").each(function(){if(!1==$(this).hasClass("gma-ent-embed")){$(this).addClass("processed embed-responsive-item id");$(".id").attr("id","player-iframe");$(this).wrap("<div class='embed-responsive embed-responsive-16by9'></div>");var iframeId=$(".id"),iframeSrc=iframeId.attr("src");console.log("iframe source "+iframeSrc);if(-1!==iframeSrc.indexOf("youtube.com")){iframeId.wrap("<div id=\"yt-iframe-container\" class=\"iframe-container\"></div>");var iframeContainer=$("#yt-iframe-container"),overlayDiv=$("<div>").css({position:"absolute",top:"0",left:"0",width:"27%",height:"60px","z-index":"999"});$(iframeContainer).append(overlayDiv);var iframeContainer=$("#iframe-container");iframeId.attr("sandbox","allow-forms allow-pointer-lock allow-same-origin allow-scripts allow-top-navigation allow-presentation");iframeId.attr("allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture;");$("#player-iframe").attr("src",function(i,val){return val})}else{}}})},responsiveIframesOtherPages:function(main_class){$(main_class+" iframe[src*=\"youtube\"]:not(.processed), "+main_class+" iframe[src*=\"vimeo\"]:not(.processed), "+main_class+" iframe[src*=\"dailymotion\"]:not(.processed), "+main_class+" iframe.ent-evideo-embed:not(.processed), "+main_class+" iframe[src*=\"evideo\"]:not(.processed,.ent-evideo-embed)").each(function(){if(!1==$(this).hasClass("gma-ent-embed")){$(this).addClass("processed embed-responsive-item id");$(".id").attr("id","player-iframe");$(this).wrap("<div class='embed-responsive embed-responsive-16by9'></div>");var iframeId=$(".id"),iframeSrc=iframeId.attr("src");console.log("iframe source "+iframeSrc);if(-1!==iframeSrc.indexOf("youtube.com")){iframeId.wrap("<div id=\"yt-iframe-container\" class=\"iframe-container\"></div>");var iframeContainer=$("#yt-iframe-container"),overlayDiv=$("<div>").css({position:"absolute",top:"0",left:"0",width:"27%",height:"60px","z-index":"999"});$(iframeContainer).append(overlayDiv);var iframeContainer=$("#iframe-container");iframeId.attr("sandbox","allow-forms allow-pointer-lock allow-same-origin allow-scripts allow-top-navigation allow-presentation");iframeId.attr("allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture;");$("#player-iframe").attr("src",function(i,val){return val})}else{}}})},handleInstagramEmbeds:function(body){if("true"===ENABLE_INSTAGRAM){if(-1<body.search("instagram-media")){if("undefined"!==typeof window.instgrm){window.instgrm.Embeds.process()}else{$.ajax({dataType:"script",cache:!0,url:"//platform.instagram.com/en_US/embeds.js",complete:function(){if("undefined"!==typeof window.instgrm){window.instgrm.Embeds.process()}}})}}}},handleTwitterEmbeds:function(body){if("true"===ENABLE_X){if(-1<body.search("twitter-tweet")){if("undefined"!==typeof twttr&&"undefined"!==typeof twttr.widgets&&"undefined"!==typeof twttr.widgets.load
1){twttr.widgets.load()}else{$.ajax({dataType:"script",cache:!0,url:"//platform.twitter.com/widgets.js",complete:function(){twttr.widgets.load()}})}}}},handleFBVideoEmbeds:function(body){if("true"===ENABLE_FACEBOOK){if(-1<body.search("fb-video")){if("undefined"!==typeof FB){$(".fb-video").closest("div").each(function(){FB.XFBML.parse(this)})}}}},handleFBPostEmbeds:function(main_class){if("true"===ENABLE_FACEBOOK){$(main_class+" iframe[src*=\"facebook.com/plugins/post.php\"]:not(.processed)").each(function(){$(this).wrap("<div class=\"fb-post-embed-container\"></div>");$(this).addClass("fb-post-wrapped")})}},fbVideoResponsiveHandler:function(is_resize,main_class){if("true"===ENABLE_FACEBOOK){var _fbVideoResponsiveHandler=function _fbVideoResponsiveHandler(is_resize){var $container_width=$(main_class).width();if("undefined"!==typeof is_resize&&!0===is_resize){$(main_class+" iframe[src*=\"facebook.com/plugins/video.php\"].processed").each(function(){$(this).removeClass("processed");$(this).attr("width",$(this).attr("data-width"));$(this).removeAttr("data-width");$(this).attr("height",$(this).attr("data-height"));$(this).removeAttr("data-height")})}$(main_class+" iframe[src*=\"facebook.com/plugins/video.php\"]:not(.processed)").each(function(){$iframe_width=parseInt($(this).attr("width"));if("undefined"===typeof $(this).attr("data-width")){$(this).attr("data-width",$iframe_width)}else{$iframe_width=parseInt($(this).attr("data-width"))}$iframe_height=parseInt($(this).attr("height"));if("undefined"===typeof $(this).attr("data-height")){$(this).attr("data-height",$iframe_height)}else{$iframe_height=parseInt($(this).attr("data-height"))}$aspect_ratio=$iframe_width/$iframe_height;$iframe_new_height=$container_width/$aspect_ratio;if(EntUtility.isMobile()){var windowWidth=$(window).width();heightTolerance=parseInt(windowWidth)-parseInt($container_width);$iframe_new_height+=heightTolerance;if(1>$aspect_ratio){$iframe_new_height+=70}}$(this).attr("width",Math.round($iframe_width));$(this).attr("height",Math.round($iframe_new_height));$(this).addClass("processed")})};setTimeout(function(){_fbVideoResponsiveHandler(is_resize)},1e3)}},customFullScreen:function(){$(document).ready(function(){var div=$("#my-div")[0],iframe=$("#my-iframe")[0];$("#fullscreen-button").click(function(){if(div.requestFullscreen){div.requestFullscreen();iframe.style.width=window.width+"px";iframe.style.height=window.height+"px"}});$(document).on("keydown",function(event){if(27==event.keyCode){exitFullscreen()}});$(document).on("fullscreenchange",function(){if(!document.fullscreenElement){exitFullscreen()}});function exitFullscreen(){iframe.style.width="640px";iframe.style.height="360px"}})},parseEmbeds:function($e){if("undefined"!==typeof FB){$e.not(".fb-parsed").each(function(){FB.XFBML.parse(this);$(this).addClass("fb-parsed")});EntUtility.responsiveIframes()}},parseEmbedsOtherPages:function($e){if("undefined"!==typeof FB){$e.not(".fb-parsed").each(function(){FB.XFBML.parse(this);$(this).addClass("fb-parsed")});EntUtility.responsiveIframesOtherPages()}},initCustomDropdwn:function(options){$("select:not(.sso-select)").each(function(){var $this=$(this),numberOfOptions=$(this).children("option").length;if(!$this.hasClass("exclude")){$this.addClass("select-hidden");$this.wrap("<div class=\"select\"></div>");$this.after("<div class=\"select-styled\"></div>");var $styledSelect=$this.next("div.select-styled");$styledSelect.text($this.children("option").eq(0).text());for(var $list=$("<ul />",{class:"select-options"}).insertAfter($styledSelect),i=0;i<numberOfOptions;i++){$("<li />",{text:$this.children("option").eq(i).text(),class:$this.children("option").eq(i).val(),"data-type":$this.children("option").eq(i).attr("data-type"),rel:$this.children("option").eq(i).val()}).appendTo($list)}var $listItems=$list.children("li");$styledSelect.click(function(e){e.stopPropagation();$("div.select-styled.active").not(this).each(function(){$(this).removeClass("active").next("ul.select-options").hide()});$(this).toggleClass("active").next("ul.select-options").toggle()});$listItems.click(function(e){e.stopPropagation();$styledSelect.text($(this).text()).removeClass("active");$this.val($(this).attr("rel"));$list.hide()});$(document).click(function(){$styledSelect.removeClass("active");$list.hide()})}})},removeStyleOverrides:function($parent){var $elements=$parent.find(".content p[style], .content span[style], .content a[style], .content ul[style], .content ol[style], .content li[style]"),$imgDetails=$parent.find(".
1img-details p[style], .img-details span[style], .img-details a[style], .img-details ul[style], .img-details ol[style], .img-details li[style]"),$videoDetails=$(".video-details .description p[style], .video-details .description span[style], .video-details .description a[style], .video-details .description ul[style], .video-details .description ol[style], .video-details .description li[style]");if(0<$elements.length){$elements.each(function(){$(this).removeAttr("style")})}if(0<$imgDetails.length){$imgDetails.each(function(){$(this).removeAttr("style")})}if(0<$videoDetails.length){$videoDetails.each(function(){$(this).removeAttr("style")})}},stripTags:function(input,allowed){allowed=(((allowed||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join("");var tags=/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,commentsAndPhpTags=/<!--[\s\S]*?-->|<\?(?:php)?[\s\S]*?\?>/gi;return input.replace(commentsAndPhpTags,"").replace(tags,function($0,$1){return-1<allowed.indexOf("<"+$1.toLowerCase()+">")?$0:""})},escapeRegExp:function(str){return str.replace(/[-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},consolidateObjPosition:function($list){if(0>=this.getSize($list))return;var $listObj=[];prevItemHeight=0;$.each($list,function(i,item){prevItemHeight+=$(item).offset().top+$(item).outerHeight();$listObj.push({obj:item,top:$(item).offset().top,height:$(item).offset().top+$(item).outerHeight()})});return $listObj},consolidateObjPositionWithParent:function($list,$parentTop){if(0>=this.getSize($list))return;var $listObj=[];prevItemHeight=0,parentTop=parseInt($parentTop),windowTop=$(window).scrollTop();$.each($list,function(i,item){prevItemHeight+=$(item).offset().top+parentTop;$listObj.push({obj:item,top:$(item).offset().top+parentTop-windowTop,height:$(item).offset().top+$(item).outerHeight()+parentTop-windowTop})});return $listObj},formatDate:function(dateStr){if("undefined"===typeof dateStr||""===dateStr)return;var formattedDate=moment(dateStr).format("MMMM D, YYYY");return formattedDate},formatDateHrs:function(dateStr){if("undefined"===typeof dateStr||""===dateStr)return;var formattedDate=moment(dateStr).format("MMMM D, YYYY, hh:mm A");return formattedDate},formatDateTime:function(dateStr){if("undefined"===typeof dateStr||""===dateStr)return;var formattedDate=moment(dateStr).format("MMMM D, YYYY");return formattedDate},getUnixTimeStamp:function(dateStr){if("undefined"===typeof dateStr||""===dateStr)return;var date=moment(dateStr).format("MMMM D, YYYY, hh:mm A"),formattedDate=moment(date).format("X");return formattedDate},getDataByName:function(key,haystack){var _tmp=!1,i=0,haystackSize=this.getSize(haystack);if(0>=haystackSize)return;(function loop(){var item=haystack[i];if(i<haystackSize){if(item.name===key){_tmp=item.value}else{i++;loop()}}})();return _tmp},replacer:function(str,replacements){if("undefined"===typeof str)return;if(0>=EntUtility.getSize(replacements))return str;$.each(replacements,function(i,item){str=str.replace("{"+item.name+"}",item.value)});return str},stringReplacer:function(str,replacements){if("undefined"===typeof str)return;if(0>=EntUtility.getSize(replacements))return str;$.each(replacements,function(i,item){str=str.replace(item.name,item.value)});return str},titleToUrl:function(text){return text.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\u
10100-\uFFFF\w\-]/g,"-").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},article_foldering:function(opts){var settings={site:"entertainment"},options=this.optionOverride(opts,settings),folder=100;if("undefined"===typeof options.id||""===options.id){return!1}if(4<String(options.id).length){folder=String(options.id).substr(0,3)}var partition=EntUtility.reverse_folder(options.id);return ENT_DATA_URL1+partition+"/"+options.site+"/"+options.type+"/"+options.id+".gz"},reverse_folder:function(s){for(var story=s.toString().rpad("0",3).substr(-3,3),o="",i=story.length-1;0<=i;i--){o+=story[i]}return o},related_foldering:function(opts){var settings={site:"entertainment"},options=this.optionOverride(opts,settings);if("undefined"===typeof options.id||""===options.id){return!1}if(4<String(options.id).length){folder=String(options.id).substr(0,3)}var partition=EntUtility.reverse_folder(options.id);return ENT_DATA_URL1+partition+"/"+options.site+"/related/"+options.type+"/"+options.id+".gz"},cleanTitleUrl:function(title){return EntUtility.escapeHTML(EntUtility.cleanSpecialCharacters(title)).replace(/[^a-zA-Z0-9-_]/g,"-")},urlToUtmParams:function(url,source,medium){var urlSplit=url.split("?"),urlTmp="";if("undefined"!==typeof urlSplit[1]&&""!==urlSplit[1]){urlTmp=urlSplit[0]+"?utm_source="+source+"&utm_medium="+medium+"&"+urlSplit[1]}else{urlTmp=urlSplit[0]+"?utm_source="+source+"&utm_medium="+medium}return urlTmp},urlWithReferrer:function(url,source){var urlSplit=url.split("?"),urlTmp="";if("undefined"!==typeof urlSplit[1]&&""!==urlSplit[1]){urlTmp=urlSplit[0]+"?"+source+"&"+urlSplit[1]}else{urlTmp=urlSplit[0]+"?"+source}return urlTmp},urlParam:function(key,url,exists){var results=new RegExp("[?&]"+key+"=([^&#]*)").exec(url);if(null===results){return!1}else{return results[1]}},removeProtocol:function(str){if("undefined"===typeof str)return;var methods=["http://","https://"],tmp_str=str;for(var i in methods){tmp_str=tmp_str.replace(methods[i],"//")}return tmp_str},forceProtocol:function(url,protocol){if("undefined"===typeof url||"undefined"===typeof protocol)return;var allowed_protocol=["http","https"];if(-1===$.inArray(protocol,allowed_protocol)){protocol="https"}var m_url=this.removeProtocol(url);return protocol+":"+m_url},urlToRevampEvideoUrl:function(url){var url=url,urlSplit=url.split("?");urlSplit[0]=this.urlToRevampUrl(urlSplit[0],"videos");urlSplit=urlSplit[0].replace(/videos([^videos]*)$/,"evideo"+"$1");var oldUrl=urlSplit.split("evideo"),finalUrl=urlSplit;if(1===oldUrl.length){finalUrl=oldUrl[0].replace("/videos","/evideo")}else{finalUrl=urlSplit}return finalUrl},urlToRevampUrl:function(url,type){var urlStub=url.split("/"),finalUrl=url;if(7<urlStub.length){finalUrl=urlStub.slice(0,4).join("/");finalUrl+="/"+type+"/"+urlStub[urlStub.length-2]+"/"+urlStub[urlStub.length-3]+"/"}return finalUrl},oldurlToShortsUrlRevamp:function(url){if(url&&!url.startsWith("kapusoshorts/")){const parts=url.split("/"),id=parts[2],slug=parts[3];url=`kapusoshorts/${slug}/${id}`}if(url&&!url.endsWith("/")){url+="/"}return url},urlToRevampEvideoShortsUrl:function(url){var url=url,urlSplit=url.split("?");urlSplit=urlSplit[0].replace(/kapusoshorts([^kapusoshorts]*)$/,"evideo"+"$1");var oldUrl=urlSplit.split("evideo"),finalUrl=urlSplit;if(1===oldUrl.length){finalUrl=oldUrl[0].replace("kapusoshorts/","evideo/")}else{finalUrl=urlSplit}if(finalUrl&&!finalUrl.endsWith("/")){finalUrl+="/"}return finalUrl},urlToEvideoUrl:function(url){var url=url,urlSplit=url.split("?");urlSplit=urlSplit[0].replace(/video([^video]*)$/,"evideo"+"$1");var oldUrl=urlSplit.split("evideo"),finalUrl=urlSplit;if(1===oldUrl.length){finalUrl=oldUrl[0].replace("/videos","/evideo")}else{finalUrl=urlSplit}return finalUrl},isiOS:function(){var ios=isMobileBrowser.iOS();if(null===ios){return!1}else{return!0}},isMobileBrowser:function(){var response=isMobileBrowser.any();if(null===response){return!1}else{return!0}},removeURLBackslash:function(str){if("undefined"===typeof str)return;var tmpStr=str;(function loop(){var _str=str,_strLen=_str.length,_lastChar=_str.substr(_strLen-1);if("/"===_lastChar){str=_str.substr(0,_strLen-1);tmpStr=str;loop()}})();return tmpStr},unserialize:function(data){var $global="undefined"!==typeof window?window:global,utf8Overhead=function utf8Overhead(str){for(var s=str.length,i=str.length-1,code;0<=i;i--){code=str.charCodeAt(i);if(127<code&&2047>=code){s++}else if(2047<code&&65535>=code){s+=2}if(56320<=code&&57343>=code){i--}}return s-1},error=function error(type,msg,filename,line){throw new $global[type](msg,filename,line)},readUntil=function readUntil(data,offset,stopchr){var i=2,buf=[],chr=data.slice(offset,offset+1);while(chr!==stopchr){if(i+offset>data.length){error("Error","Invalid")}buf.push(chr);chr=data.slice(offset+(i-1),offset+i);i+=1}return[buf.length,buf.join("")]},readChrs=function readChrs(data,offset,length){var i,chr,buf;buf=[];for(i=0;i<length;i++){chr=data.slice(offset+(i-1),offset+i);buf.push(chr);length-=utf8Overhead(chr)}return[buf.length,buf.join("")]};function _unserialize(data,offset){var dtype,dataoffset,keyandchrs,keys,contig,length,array,readdata,readData,ccount,stringlength,i,key,kprops,kchrs,vprops,vchrs,value,chrs=0,_typeconvert=function typeconvert(x){return x};if(!offset){offset=0}dtype=data.slice(offset,offset+1).toLowerCase();dataoffset=offset+2;switch(dtype){case"i":_typeconvert=function(x){return parseInt(x,10)};readData=readUntil(data,dataoffset,";");chrs=readData[0];
1readdata=readData[1];dataoffset+=chrs+1;break;case"b":_typeconvert=function(x){return 0!==parseInt(x,10)};readData=readUntil(data,dataoffset,";");chrs=readData[0];readdata=readData[1];dataoffset+=chrs+1;break;case"d":_typeconvert=function(x){return parseFloat(x)};readData=readUntil(data,dataoffset,";");chrs=readData[0];readdata=readData[1];dataoffset+=chrs+1;break;case"n":readdata=null;break;case"s":ccount=readUntil(data,dataoffset,":");chrs=ccount[0];stringlength=ccount[1];dataoffset+=chrs+2;readData=readChrs(data,dataoffset+1,parseInt(stringlength,10));chrs=readData[0];readdata=readData[1];dataoffset+=chrs+2;if(chrs!==parseInt(stringlength,10)&&chrs!==readdata.length){error("SyntaxError","String length mismatch")}break;case"a":readdata={};keyandchrs=readUntil(data,dataoffset,":");chrs=keyandchrs[0];keys=keyandchrs[1];dataoffset+=chrs+2;length=parseInt(keys,10);contig=!0;for(i=0;i<length;i++){kprops=_unserialize(data,dataoffset);kchrs=kprops[1];key=kprops[2];dataoffset+=kchrs;vprops=_unserialize(data,dataoffset);vchrs=vprops[1];value=vprops[2];dataoffset+=vchrs;if(key!==i){contig=!1}readdata[key]=value}if(contig){array=new Array(length);for(i=0;i<length;i++){array[i]=readdata[i]}readdata=array}dataoffset+=1;break;default:error("SyntaxError","Unknown / Unhandled data type(s): "+dtype);break}return[dtype,dataoffset-offset,_typeconvert(readdata)]}return _unserialize(data+"",0)[2]},isIE:function(){ua=navigator.userAgent;var is_ie=-1<ua.indexOf("MSIE ")||-1<ua.indexOf("Trident/");return is_ie},getCountry_v2:function($url){var $dfrd=$.Deferred();$.ajax({url:$url,type:"GET",dataType:"json",success:function(data){$dfrd.resolve(data.country)},error:function(){$dfrd.reject();console.log("Error fetching country code data from:",$url)}});return $dfrd.promise()},urlEndingTrailingSlash:function(url){var separatedUrlAndQueryParameter=url.split("?"),urlOnly=separatedUrlAndQueryParameter[0],queryParameterOnly="";if(1<separatedUrlAndQueryParameter.length){queryParameterOnly=separatedUrlAndQueryParameter[1]}var anchorTag="";if(-1<urlOnly.indexOf("#")){urlOnly=urlOnly.split("#");anchorTag=urlOnly[1];urlOnly=urlOnly[0]}if(-1<queryParameterOnly.indexOf("#")){queryParameterOnly=queryParameterOnly.split("#");anchorTag=queryParameterOnly[1];queryParameterOnly=queryParameterOnly[0]}var appendQueryParameter=function appendQueryParameter(){return queryParameterOnly?"?"+queryParameterOnly:""},appendAnchorTag=function appendAnchorTag(){return anchorTag?"#"+anchorTag:""},commonFileExtensionList=function commonFileExtensionList(){return[".jpg",".jpeg",".png",".gif"]},isFileURLType=function isFileURLType(){for(var extensions=commonFileExtensionList(),extensionsLength=extensions.length-1,x=0;x<=extensionsLength;x++){if(-1<urlOnly.indexOf(extensions[x])){return!0}}return!1},maxIndex=urlOnly.length-1;while("/"===urlOnly[maxIndex]){var currentLastCharacter=urlOnly.substr(-1);if("/"!==currentLastCharacter){break}urlOnly=urlOnly.substr(0,maxIndex);maxIndex=urlOnly.length-1}if(isFileURLType()){urlOnly="/"===urlOnly[maxIndex]?urlOnly.substr(-1):urlOnly;return urlOnly+appendQueryParameter()+appendAnchorTag()}if("undefined"!==typeof GLOBAL_ENDING_TRAILING_SLASH&&!GLOBAL_ENDING_TRAILING_SLASH){if("/"===urlOnly[maxIndex]){return urlOnly.substr(0,maxIndex)+appendQueryParameter()+appendAnchorTag()}return urlOnly+appendQueryParameter()+appendAnchorTag()}if("/"===urlOnly[maxIndex]){return urlOnly+appendQueryParameter()+appendAnchorTag()}return urlOnly+"/"+appendQueryParameter()+appendAnchorTag()},extractEncantadiaPath:function(pathname){const paths=[{type:"stories",basePath:"gma/encantadia/stories/inside/"},{type:"galleries",basePath:"gma/encantadia/galleries/inside/"}];for(const{type,basePath}of paths){if(pathname.includes(basePath)){if("undefined"!==typeof EntNextContentV2){EntNextContentV2.isEncantadia=!0}console.log(`[ENCA] This is an Encantadia ${type} URL.`);const index=pathname.indexOf(basePath);if(-1!==index){const remainingPath=pathname.substring(index+basePath.length);return{type,remainingPath}}}}return null},noMoreRemainingData:function(enableAnalytics=!1){if(enableAnalytics&&"undefined"!==typeof EntAnalytics){EntAnalytics.event({action:"page_listing_load_state",label:"Page Listing Load",category:"Page Listing Fully Loaded",event_parameter:"fully_loaded"})}if(0<$("#loadingDivStandardGrid").length){$("#loadingDivStandardGrid").fadeOut();$("#loadingDivStandardGrid").remove()}$("body").append("<div class=\"infinite-no-data\"><div class=\"infinite-no-data-content\">All data has been loaded</div></div>");setTimeout(function(){$(".infinite-no-data").fadeOut();$(".infinite-no-data").remove()},5e3)}};String.prototype.rpad=function(padString,length){var str=this;while(str.length<length)str=str+padString;return str};var NoResultFoundText="<p class=\"no-result-found-error\">Sorry, there are no results found.</p>",NoResultFoundImage="<div class=\"no-result-found-wrapper\"><div class=\"no-result-smiley\"></div><p class=\"no-result-found-error\">Sorry, there are no results found.</p></div>",FilterSearchResultTitle=function FilterSearchResultTitle(type){var text="<div class=\"results-found-label\"><h2>Search Results</h2></div>";if("filter"==type){text="<div class=\"results-found-label\"><h2>Filter Results</h2></div>"}return text},isMobileBrowser={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPod|iPad/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)||navigator.userAgent.match(/WPDesktop/i)},any:function(){return isMobileBrowser.Android()||isMobileBrowser.BlackBerry()||isMobileBrowser.iOS()||isMobileBrowser.Opera()||isMobileBrowser.Windows()}},obsrvPattern=$({});$.each({on:"subscribe",trigger:"publish"},function(key,api){$[api]=function(){obsrvPattern[key].apply(obsrvPattern,arguments)}});var keys={37:1,38:1,39:1,40:1}
1;function preventDefault(e){e=e||window.event;if(e.preventDefault)e.preventDefault();e.returnValue=!1}function preventDefaultForScrollKeys(e){if(keys[e.keyCode]){preventDefault(e);return!1}}function disableScroll(){if(window.addEventListener)window.addEventListener("DOMMouseScroll",preventDefault,!1);window.onwheel=preventDefault;window.onmousewheel=document.onmousewheel=preventDefault;window.ontouchmove=preventDefault;document.onkeydown=preventDefaultForScrollKeys}function enableScroll(){if(window.removeEventListener)window.removeEventListener("DOMMouseScroll",preventDefault,!1);window.onmousewheel=document.onmousewheel=null;window.onwheel=null;window.ontouchmove=null;document.onkeydown=null}(function($){var $w=$(window);$.fn.visible=function(partial,hidden,direction){if(1>this.length)return;var $t=1<this.length?this.eq(0):this,t=$t.get(0),vpWidth=$w.width(),vpHeight=$w.height(),direction=direction?direction:"both",clientSize=!0===hidden?t.offsetWidth*t.offsetHeight:!0;if("function"===typeof t.getBoundingClientRect){var rec=t.getBoundingClientRect(),tViz=0<=rec.top-100&&rec.top-100<vpHeight,bViz=0<rec.bottom&&rec.bottom<=vpHeight,lViz=0<=rec.left&&rec.left<vpWidth,rViz=0<rec.right&&rec.right<=vpWidth,vVisible=partial?tViz||bViz:tViz&&bViz,hVisible=partial?lViz||rViz:lViz&&rViz;if("both"===direction)return clientSize&&vVisible&&hVisible;else if("vertical"===direction)return clientSize&&vVisible;else if("horizontal"===direction)return clientSize&&hVisible}else{var viewTop=$w.scrollTop(),viewBottom=viewTop+vpHeight,viewLeft=$w.scrollLeft(),viewRight=viewLeft+vpWidth,offset=$t.offset(),_top=offset.top,_bottom=_top+$t.height(),_left=offset.left,_right=_left+$t.width(),compareTop=!0===partial?_bottom:_top,compareBottom=!0===partial?_top:_bottom,compareLeft=!0===partial?_right:_left,compareRight=!0===partial?_left:_right;if("both"===direction)return!!clientSize&&compareBottom<=viewBottom&&compareTop>=viewTop&&compareRight<=viewRight&&compareLeft>=viewLeft;else if("vertical"===direction)return!!clientSize&&compareBottom<=viewBottom&&compareTop>=viewTop;else if("horizontal"===direction)return!!clientSize&&compareRight<=viewRight&&compareLeft>=viewLeft}}})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.