iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: https://tvline.com/wp-content/plugins/pmc-plugins/pmc-global-functions/js/pmc-utils.min.js?ver=2024.05.18.001
var pmc=pmc||{};Object.assign(pmc,{uuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},generate_pvuuid:function(e){return window._skmPageViewId=!e&&window._skmPageViewId||pmc.uuid(),window._skmPageViewId},rot13:function(e){return e.replace(/[A-Za-z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+(e.toUpperCase()<="M"?13:-13))})},is_proxied:function(){return!("object"!=typeof window.pmc_site_config||!window.pmc_site_config.hasOwnProperty("is_proxied")||!window.pmc_site_config.hasOwnProperty("rot13_hostname"))&&(window.pmc_site_config.is_proxied||null!==window.pmc_site_config.is_proxied||(window.pmc_site_config.is_proxied=this.rot13(window.pmc_site_config.rot13_hostname).toLowerCase()!==window.location.hostname.toLowerCase()),window.pmc_site_config.is_proxied)},proxy_url:function(e,o){var i=this;return this.is_proxied()?e.replace(/^(https?:\/\/)([^\/]+)/,function(e,t,n){return o||i.rot13(window.pmc_site_config.rot13_hostname).toLowerCase()===n.toLowerCase()?window.location.port&&""!=window.location.port?t+window.location.hostname+":"+window.location.port:t+window.location.hostname:e}):e},reverse_proxy_url:function(e){var o=this;return this.is_proxied()?e.replace(/^(https?:\/\/)([^\/]+)/,function(e,t,n){return t+o.rot13(window.pmc_site_config.rot13_hostname)}):e},get_object_property:function(e,t,n){return"object"==typeof e&&e.hasOwnProperty(t)?e[t]:n},is_empty:function(e){return!e||null==e||""===(e=(e+="").replace(/^\s+|\s+$/g,""))},has_json:function(){return!("undefined"==typeof JSON||!JSON)},_round:function(e,t){return t=this.is_empty(t)?2:t,Math.round(e*Math.pow(10,t))/Math.pow(10,t)},_replace_all:function(e,t,n){e=new RegExp(e,"g");return n.replace(e,t)},timestamp:function(){return Math.round(+new Date/1e3)},deeptest:function(e){e=e.split(".");for(var t=window[e.shift()];t&&e.length;)t=t[e.shift()];return t},decode_entities:function(e){var t=document.createElement("div");return e&&"string"==typeof e&&(e=e.replace(/]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),t.innerHTML=e,e=t.textContent,t.textContent=""),e},sanitize_title:function(e){return!e||this.is_empty(e)||"string"!=typeof e?"":(e=(e=(e=(e=(e=(e=this.decode_entities(e)).replace(/[^a-zA-Z0-9 \-_]/g,"")).replace(/\s\-/g,"-").replace(/\-\s/g,"-").replace(/\s/g,"-")).replace(/\-_/g,"-").replace(/_\-/g,"-")).replace(/\-{2,}/g,"-")).replace(/^\-/g,"").replace(/\-$/g,"")).toLowerCase()},sanitize_key:function(e){return!e||this.is_empty(e)||"string"!=typeof e?"":(e=(e=(e=this.decode_entities(e)).replace(/[^a-zA-Z0-9\-_]/g,"")).replace(/^\-/g,"").replace(/\-$/g,"")).toLowerCase()},popup:function(e,t,n,o){return void 0!==e&&!this.is_empty(e)&&(void 0!==t&&!this.is_empty(t)||(t="_blank"),void 0!==n&&!this.is_empty(n)||(n=550),void 0!==o&&!this.is_empty(o)||(o=600),window.open(e,t,"width="+parseInt(n)+", height="+parseInt(o)),!0)},cookie:{get:function(e){for(var t,n,o=document.cookie.split(";"),i=o.length,r=0;r