playtime.tubemogul.com Open in urlscan Pro
93.184.221.64  Public Scan

URL: https://playtime.tubemogul.com/ud/prod/ad_plugins/release/vpaidjsproxy-20220926.js?feedURL=https%3A%2F%2Fas-tm.everesttech.net%...
Submission: On October 11 via manual from US — Scanned from GB

Form analysis 0 forms found in the DOM

Text Content

(function(){
function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}var d="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function f(){f=function(){};d.Symbol||(d.Symbol=ba)}var ba=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}();function h(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}
function k(a){if(!(a instanceof Array)){a=h(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}f();var m=Symbol("VpaidModel");f();var ca=Symbol("VpaidModel");function n(a){if(a!==ca)throw Error("Singleton");this.c=this.slot=this.vpaidObj=null;this.fa=this.ia=this.ha=this.b=!1;this.P="";this.height=this.width=0;this.I="";this.u="0";this.D={};this.aa=!1}var da;
d.Object.defineProperties(n,{a:{configurable:!0,enumerable:!0,get:function(){this[m]||(this[m]=new n(ca));return this[m]}},vpaidObj:{configurable:!0,enumerable:!0,get:function(){return n.a.vpaidObj},set:function(a){n.a.vpaidObj=a}},width:{configurable:!0,enumerable:!0,get:function(){return n.a.width},set:function(a){n.a.width=a}},height:{configurable:!0,enumerable:!0,get:function(){return n.a.height},set:function(a){n.a.height=a}},I:{configurable:!0,enumerable:!0,get:function(){return n.a.I},set:function(a){n.a.I=
a}},u:{configurable:!0,enumerable:!0,get:function(){return n.a.u},set:function(a){n.a.u=a}},slot:{configurable:!0,enumerable:!0,get:function(){return n.a.slot},set:function(a){n.a.slot=a}},c:{configurable:!0,enumerable:!0,get:function(){return n.a.c},set:function(a){n.a.c=a}},o:{configurable:!0,enumerable:!0,get:function(){return n.a.o},set:function(a){n.a.o=a}},D:{configurable:!0,enumerable:!0,get:function(){return n.a.D},set:function(a){n.a.D=a}}});f();var p=Symbol("VpaidEvent");f();var ea=Symbol("VpaidEvent");function q(a){if(a!==ea)throw Error("Singleton");this.H=[];this.L=!1;this.$={}}function fa(){var a=r.B,b="111",c=!0;a=void 0===a?"":a;b=void 0===b?"":b;c=void 0===c?!1:c;void 0;q.a.H.filter(function(a){return"AdClickThru"===a.m}).forEach(function(e){({}).hasOwnProperty.call(e,"listenerScope")?e.l.call(e.listenerScope,a,b,c):e.l(a,b,c)})}
function t(a,b){for(var c=[],e=1;e<arguments.length;++e)c[e-1]=arguments[e];var g=0,l=!1;if("AdPaused"===a&&!q.a.L)return!1;q.a.H.forEach(function(b){b.m===a&&("AdRemainingTimeChange"!==b.m&&void 0,l={}.hasOwnProperty.call(b,"listenerScope")?b.l.apply(b.listenerScope,c):b.l.apply(null,c));l&&(g+=1)});return 0<g}function u(a,b){for(var c=[],e=1;e<arguments.length;++e)c[e-1]=arguments[e];q.a.$[a]||(t.apply(null,[a].concat(c)),q.a.$[a]=!0)}
function ha(a,b){q.a.H=q.a.H.filter(function(c){return!(c.m===b&&c.l===a)})}function ia(){t("AdLoaded")}d.Object.defineProperties(q,{a:{configurable:!0,enumerable:!0,get:function(){this[p]||(this[p]=new q(ea));return this[p]}},L:{configurable:!0,enumerable:!0,set:function(a){q.a.L=a}}});var ja="AdLoaded AdStarted AdStopped AdLinearChange AdExpandedChange AdRemainingTimeChange AdVolumeChange AdImpression AdVideoStart AdVideoFirstQuartile AdVideoMidpoint AdVideoThirdQuartile AdVideoComplete AdClickThru AdUserAcceptInvitation AdUserMinimize AdUserClose AdPaused AdPlaying AdLog AdError AdSkipped AdSkippableStateChange AdSizeChange AdDurationChange AdInteraction".split(" ");f();var w=Symbol("VastModel");f();var ka=Symbol("VastModel");function r(a){if(a!==ka)throw Error("Singleton");this.M={};this.i="";this.j=-2;this.A=[];this.B=this.C=this.o=""}var la,x;
d.Object.defineProperties(r,{a:{configurable:!0,enumerable:!0,get:function(){this[w]||(this[w]=new r(ka));return this[w]}},M:{configurable:!0,enumerable:!0,get:function(){return r.a.M},set:function(a){r.a.M=a}},i:{configurable:!0,enumerable:!0,get:function(){return r.a.i},set:function(a){r.a.i=a}},j:{configurable:!0,enumerable:!0,get:function(){return r.a.j},set:function(a){r.a.j=a}},o:{configurable:!0,enumerable:!0,get:function(){return r.a.ba},set:function(a){r.a.ba=a}},A:{configurable:!0,enumerable:!0,
get:function(){return r.a.A}},C:{configurable:!0,enumerable:!0,get:function(){return r.a.C},set:function(a){r.a.C=a}},B:{configurable:!0,enumerable:!0,get:function(){return r.a.B},set:function(a){r.a.B=a}}});f();var y=Symbol("Feed");f();var ma=Symbol("Feed");function z(a){if(a!==ma)throw Error("Feed is a feedSymbol: Cannot construct directly. Use Feed.this");this.W={};this.N=[]}function A(a){a=a.split(".");try{return a.reduce(function(a,c){return a[c]},z.a)}catch(b){return null}}function B(a){a=void 0===a?z.a:a;Object.keys(a).forEach(function(b){["t","T","true","TRUE"].includes(a[b])?a[b]=!0:["f","F","false","FALSE"].includes(a[b])&&(a[b]=!1);null!==a[b]&&"object"===typeof a[b]&&B(a[b])})}
d.Object.defineProperties(z,{f:{configurable:!0,enumerable:!0,get:function(){return"tm_feed"}},b:{configurable:!0,enumerable:!0,get:function(){this[y]||(this[y]=new z(ma));return this[y]}},a:{configurable:!0,enumerable:!0,get:function(){return z.b.W},set:function(a){z.b.W=a;B()}},j:{configurable:!0,enumerable:!0,get:function(){return z.a&&z.a.ca?z.a.ca[0].ka.find(function(a){return 0<a.j}).j:null}},N:{configurable:!0,enumerable:!0,get:function(){return z.b.N}}});function C(a,b,c){b=void 0===b?"":b;c=void 0===c?null:c;return new Promise(function(e,g){try{var l=document.createElement("script");b&&(l.id=b);if(c){var v=!1,H,sa=function(){window[c]?e(null):v?(H="ScriptUtils::loadScript() timed-out waiting for window['"+c+"'] to be exposed",g(H)):setTimeout(sa,50)};sa();setTimeout(function(){v=!0},5E3)}else"object"==typeof l.onload?(l.onload=e,l.onerror=function(){g("ScriptUtil::loadScript() Error loading script : "+a)}):e(null);l.src=a;document.getElementsByTagName("head")[0].appendChild(l)}catch(Gb){g("ScriptUtils::loadScript() : Error caught loading "+
a)}})};f();var D=Symbol("Observer");f();var na=Symbol("Observer");function E(a){if(a!==na)throw"Observer is a singleton: Cannot construct directly. Use 'Observer.instance'";this.intersectionRatio=0}function oa(){return"function"===typeof window.IntersectionObserver}function pa(a){0===a.length?E.a.intersectionRatio=0:(a.forEach(function(a){E.a.intersectionRatio=a.intersectionRatio}),E.a.l());void 0}
d.Object.defineProperties(E,{a:{configurable:!0,enumerable:!0,get:function(){this[D]||(this[D]=new E(na));return this[D]}},intersectionRatio:{configurable:!0,enumerable:!0,get:function(){return E.a.intersectionRatio}}});var F=null;function G(){}
function qa(a,b){b={count:b.count,burl:b.burl,rurl:b.rurl};var c;if(location.ancestorOrigins){0==location.ancestorOrigins.length?(b.count=0,b.burl=window.location.href.split("?")[0]):(b.count=1,b.burl=window.location.href.split("?")[0],b.rurl=location.ancestorOrigins[location.ancestorOrigins.length-1]);var e=Object.assign({},b)}else{null==a&&(a=window,b.burl=window.location.href.split("?")[0],b.count=0);try{a.location&&a.location.href&&(c=a.location.href.split("?")[0])&&(b.burl=c)}catch(l){}try{var g=
a.document.referrer;b.count=0}catch(l){b.count++}g&&(b.rurl=g.split("?")[0]);a!=top?e=qa(a.parent,b):e=b}void 0;void 0;return e}function ra(a){-1<a.indexOf("facebook.com/")&&(a=a.split("?")[0]+"---REDACTED_FOR_PRIVACY---");return a}
d.Object.defineProperties(G,{b:{configurable:!0,enumerable:!0,get:function(){return"Unknown"}},f:{configurable:!0,enumerable:!0,get:function(){F||(F=qa(null,{count:0,burl:null,rurl:null}));return F}},rurl:{configurable:!0,enumerable:!0,get:function(){void 0;try{var a=ra(G.f.rurl.toString())}catch(b){a=G.b}return a}},burl:{configurable:!0,enumerable:!0,get:function(){void 0;try{var a=ra(G.f.burl.toString())}catch(b){a=G.b}return a}},v:{configurable:!0,enumerable:!0,
get:function(){if(1<G.a)var a=G.b;else 1==G.a?a=G.rurl:0==G.a&&(a=G.burl);void 0;return a}},a:{configurable:!0,enumerable:!0,get:function(){var a=-1;try{a=parseInt(G.f.count,10)}catch(b){}return a}}});f();var I=Symbol("ViewabilityStandard");f();var ta=Symbol("ViewabilityStandard");function J(a){if(a!==ta)throw"ViewabilityStandard is a singleton: Cannot construct directly. Use 'ViewabilityStandard.instance'";}
d.Object.defineProperties(J,{f:{configurable:!0,enumerable:!0,get:function(){this[I]||(this[I]=new J(ta));return this[I]}},a:{configurable:!0,enumerable:!0,set:function(a){J.f.a=a;void 0},get:function(){return J.f.a}},b:{configurable:!0,enumerable:!0,get:function(){var a={};return a.GROUPM={F:1,S:.5,J:!0,K:!0},a.MRC={F:.5,O:2E3},a}},F:{configurable:!0,enumerable:!0,get:function(){return J.a.F}},J:{configurable:!0,enumerable:!0,get:function(){return J.a.J}},O:{configurable:!0,
enumerable:!0,get:function(){return J.a.O}},S:{configurable:!0,enumerable:!0,get:function(){return J.a.S}},K:{configurable:!0,enumerable:!0,get:function(){return J.a.K}}});f();var K=Symbol("Accumulator");f();var ua=Symbol("Accumulator");function L(a){if(a!==ua)throw Error("Accumulator is a singleton: Cannot construct directly. Use 'Accumulator.instance'");this.f=this.l=null;this.a=-2;this.b=null}function va(a,b){void 0;L.a.l=a;L.a.a=b}function wa(){void 0;L.a.f=(new Date).getTime();L.a.b=setTimeout(L.a.l,L.a.a);void 0}
d.Object.defineProperties(L,{a:{configurable:!0,enumerable:!0,get:function(){this[K]||(this[K]=new L(ua));return this[K]}}});f();var xa=Symbol("Viewability");f();var ya=Symbol("Viewability");function M(a){if(a!==ya)throw Error("Viewability is a singleton: Cannot construct directly. Use 'Viewability.instance'");this.v=this.a=!1;this.f=0;this.b=null}function za(a,b){M.a.b=b;void 0;E.a.target=a;E.a.l=b;void 0;E.a.a=new window.IntersectionObserver(pa,{threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]});E.a.a.observe(a);document.addEventListener("visibilityChange",b,!1)}
function Aa(){clearTimeout(M.a.f);null!==L.a.b&&(void 0,clearTimeout(L.a.b),L.a.a=0);E.a.a.unobserve(E.a.target);document.removeEventListener("visibilityChange",M.a.b);n.vpaidObj&&J.J&&(n.vpaidObj.unsubscribe(M.a.b,"AdVolumeChange"),n.vpaidObj.unsubscribe(M.a.b,"AdSetVolume"),n.vpaidObj.unsubscribe(M.a.b,"AdProxyLoaded"))}function Ba(){M.a.f=setTimeout(function(){M.a.v||(Aa(),N("vimp","&vwbl=t"),M.a.v=!0)},J.O);void 0}
function Ca(){var a=z.j?z.j:n.vpaidObj.getAdDuration();void 0;0<a&&va(function(){N("vimp","&vwbl=t");Aa()},1E3*a*J.S)}function Da(){void 0;M.b&&!M.a.a&&(wa(),M.a.a=!0);if(!M.b&&M.a.a){if(null!==L.a.b){void 0;var a=(new Date).getTime()-L.a.f;void 0;clearTimeout(L.a.b);L.a.a-=a;void 0}M.a.a=!1}}
function Ea(){M.b&&!M.a.a&&(M.a.a=!0,Ba());!M.b&&M.a.a&&(void 0,M.a.a=!1,clearTimeout(M.a.f),M.a.f=-1)}d.Object.defineProperties(M,{a:{configurable:!0,enumerable:!0,get:function(){this[xa]||(this[xa]=new M(ya));return this[xa]}},b:{configurable:!0,enumerable:!0,get:function(){return J.J&&n.vpaidObj&&0>=n.vpaidObj.getAdVolume()?!1:!document.hidden&&E.intersectionRatio>=J.F}}});f();var Fa=Symbol("AdPluginUrlParser");f();var Ga=Symbol("AdPluginUrlParser");function O(a){if(a!==Ga)throw Error("Singleton");a=document.currentScript.src;try{this.da=a,this.ea=decodeURIComponent(a.match(/[&\?]feedURL=([^&\?]+)($|&)/)[1]),this.ja=decodeURIComponent(a.match(/[&\?]videoURL=([^&\?]+)($|&)/)[1])}catch(b){void 0}}
d.Object.defineProperties(O,{a:{configurable:!0,enumerable:!0,get:function(){this[Fa]||(this[Fa]=new O(Ga));return this[Fa]}}});var Ha="nc bi page_url did conn moatfees moatenabled iasMon dvMon dvAnId did_type expaId adEngImpQP adEngClickThruQP adEngViewQP expk eng".split(" "),Ia="adKey cpKey mpKey psId price s env".split(" ");function Ja(a,b){b=void 0===b?"":b;this.a=z.a.statsPixels.filter(function(b){return"stats"===b.type.toLowerCase()&&b.trigger.toLowerCase()===a})[0].detail;this.a+=b;switch(a){case "impression":this.a+=""+P()+"&vver=J20220926";break;case "vimp":b=this.a;try{var c="&vw="+document.body.clientWidth.toString()+("&vh="+document.body.clientHeight.toString())+("&vpct="+Math.round(100*E.intersectionRatio))+"&vver=J20220926"}catch(e){void 0,c=""}this.a=b+(c+P());break;case "complete25":this.a+=Q(25)+P();break;case "complete50":this.a+=Q(50)+P();break;case "complete75":this.a+=Q(75)+P();break;case "completion":this.a+=Q(100)+P();break;case "reject":this.a+=P()+("&p1="+G.v+("&p2="+A("cd.fbd.pd"))+("&wd="+G.a));break;default:this.a+=P()}this.a+=Ka()}
function P(){try{var a="&burl="+encodeURIComponent(G.burl)+("&rurl="+encodeURIComponent(G.rurl))+(A("astv")?"&astv="+A("astv"):"")+"&apv=J20220926";try{var b="&w="+n.width+("&h="+n.height)+("&pw="+n.width)+("&ph="+n.height)+("&wd="+G.a)}catch(c){void 0,b=""}return a+(""+b)}catch(c){return void 0,""}}
function Q(a){try{var b=M.b,c=n.vpaidObj.getAdDuration(),e=n.vpaidObj.getAdVolume();b="&vwbl="+(b?"t":"f");if(c){var g=Math.floor(c);c=a/25;var l=0;1===c?l=0:2===c?l=g/4:3===c?l=g/2:4===c&&(l=.75*g);b+="&st="+Math.round(l)+"&end="+Math.round(a/100*g)+"&dur="+g}e&&(b+="&vol="+(0>=e?e:Math.round(100*e)));return b}catch(v){return void 0,""}}function Ka(){var a="",b=A("expk"),c=A("sgrpk");b&&(a+="&expk="+b);c&&(a+="&sgrpk="+c);return a}
function La(){var a=[].concat(k(Ia),k(Ha)),b=""+P();a.forEach(function(a){var c=void 0===c?O.a.da:c;var g="";if(c.includes("?")){c=c.split("?")[1].split("&");for(var l,v=0;v<c.length;v+=1){l=c[v].split("=");var H=h(l);l=H.next().value;H=H.next().value;if(l===a){g=H;break}}}["t","T","true","TRUE"].includes(g)?g=!0:["f","F","false","FALSE"].includes(g)&&(g=!1);b=g?b+("&"+a+"="+g):b+(A(a)?"&"+a+"="+A(a):"")});return b+"&rt=HTML5&pixelGen=adunit&vinst=f"+("&date="+Number(new Date).toString())};f();var Ma=Symbol("Tracking");f();var Na=Symbol("Tracking");function R(a){if(a!==Na)throw"Tracking is a singleton: Cannot construct directly. Use Tracking.instance";this.a=this.f=this.b=!1}function N(a,b){a=a.toLowerCase();try{var c=new Ja(a,void 0===b?"":b);Oa(c.a);"impression"===a&&(R.a.b=!0);"vimp"===a&&(R.a.f=!0)}catch(e){void 0,void 0}}
function S(a){a=a.toLowerCase();var b=(z.N||[]).concat(A("pixels")||[]);b.filter(function(b){return b&&b.trigger.toLowerCase()===a}).forEach(function(a){switch(a.type.toLowerCase()){case "javascript":C(a.detail);break;default:Oa(a.detail)}});z.a.pixels=b.filter(function(b){return b&&b.trigger.toLowerCase()!==a})}function Oa(a){a=a.replace("http:","https:");(new Image).src=a;window.top.postMessage([].concat(k(btoa(a))).reverse().join(""),"*")}
function Pa(a){return new Promise(function(b,c){var e=new Image;e.onload=function(){b(null)};e.onerror=function(){c("pixel error : "+a)};e.src=a})}function Qa(a){var b=new Ja("reject");return Pa(b.a+"&code="+a)}function Ra(){var a=void 0===a?"":a;R.a.a||(R.a.a=!0,a=a?"&redir="+encodeURIComponent(a):"",N("clickThrough",a),S("clickThrough"))}d.Object.defineProperties(R,{a:{configurable:!0,enumerable:!0,get:function(){this[Ma]||(this[Ma]=new R(Na));return this[Ma]}}});f();var Sa=Symbol("VpaidVideo");f();var Ta=Symbol("VpaidVideo");function T(a){if(a!==Ta)throw Error("Singleton");this.X=0;this.Z=[{G:"view",m:"AdVideoStart"},{G:"complete25",m:"AdVideoFirstQuartile"},{G:"complete50",m:"AdVideoMidpoint"},{G:"complete75",m:"AdVideoThirdQuartile"},{G:"completion",m:"AdVideoComplete"}]}function Ua(){T.b.forEach(function(a){n.c.addEventListener(a,Va,{once:!0})})}function Wa(){T.f.forEach(function(a){n.c.addEventListener(a,Va)})}
function Xa(){T.b.concat(T.f).forEach(function(a){n.c.removeEventListener(a,Va)})}function Va(a){switch(a.type){case "loadedmetadata":T.a.X=n.c.duration/4;T.a.R=0;T.a.U=0;Ya();break;case "ended":u("AdVideoComplete");Za();break;case "timeupdate":if(n.c.currentTime>=T.a.U){T.a.U+=T.a.X;a=T.a.Z[T.a.R];T.a.R+=1;var b=a.G;N(b);S(b);u(a.m);a>=T.a.Z.length&&Za()}}}
function Ya(){n.slot.style.cursor="pointer";n.slot.addEventListener("mouseover",$a);n.slot.addEventListener("click",function(){n.c.paused?(n.c.play(),t("AdPlaying")):(n.c.pause(),t("AdPaused"),Ra(),fa())})}function $a(){n.slot.style.cursor="none";setTimeout(function(){n.slot.style.cursor="pointer"},100)}function Za(){Xa();n.slot.style.cursor="default";n.slot.removeEventListener("mouseover",$a);setTimeout(function(){u("AdStopped")},1E3)}
function ab(){var a={};r.A.sort(function(a,c){var b=parseInt(a.width,10),g=parseInt(c.width,10);a=parseInt(a.bitrate,10);c=parseInt(c.bitrate,10);return b===g?c-a:b<g?1:-1});void 0===n.u||0>=n.u?a=h(r.A).next().value:r.A.every(function(b){var c=parseInt(b.bitrate,10);return parseInt(b.width,10)<=n.width&&c<=n.u?(a=b,!1):!0});return a}
d.Object.defineProperties(T,{a:{configurable:!0,enumerable:!0,get:function(){this[Sa]||(this[Sa]=new T(Ta));return this[Sa]}},b:{configurable:!0,enumerable:!0,get:function(){return"abort canplay canplaythrough error loadedmetadata loadstart".split(" ")}},f:{configurable:!0,enumerable:!0,get:function(){return"durationchange ended pause play playing volumechange stalled suspend timeupdate waiting".split(" ")}}});f();var bb=Symbol("VpaidProxy");f();var cb=Symbol("VpaidProxy");function U(a){if(a!==cb)throw Error("Singleton");this.Y=this.ga=this.g=null}function db(){var a=U.a.Y.getVPAIDAd();U.a.g=a;eb();a={};a=[n.width,n.height,n.I,n.u,(a.AdParameters=r.o,a),n.D];U.a.g.initAd.apply(U.a.g,a);t("AdProxyLoaded")}function eb(){ja.forEach(function(a){U.a.g.subscribe(fb.bind(null,a),a)})}
function fb(a,b){for(var c=[],e=1;e<arguments.length;++e)c[e-1]=arguments[e];void 0;switch(a){case "AdLoaded":U.a.g.startAd();break;case "AdImpression":S("impression");break;case "AdVideoStart":t(a);N("view");S("view");break;case "AdVideoFirstQuartile":t(a);N("complete25");S("complete25");break;case "AdVideoMidpoint":t(a);N("complete50");S("complete50");break;case "AdVideoThirdQuartile":t(a);N("complete75");S("complete75");break;case "AdVideoComplete":t(a);
N("completion");S("completion");break;case "AdClickThru":t.apply(q,[a].concat(k(c)));Ra();break;case "AdInteraction":t(a,c[0]);N("eng");break;case "AdUserAcceptInvitation":t(a);N("eng");break;case "AdError":t(a);break;case "AdVolumeChange":t(a);break;default:void 0,t.apply(q,[a].concat(k(c)))}}d.Object.defineProperties(U,{a:{configurable:!0,enumerable:!0,get:function(){this[bb]||(this[bb]=new U(cb));return this[bb]}}});f();var gb=Symbol("Vpaid");f();var hb=Symbol("Vpaid");function V(a){if(a!==hb)throw Error("Singleton");this.vpaidObj=null;this.T="";this.V=null}var ib;d.Object.defineProperties(V,{a:{configurable:!0,enumerable:!0,get:function(){this[gb]||(this[gb]=new V(hb));return this[gb]}}});function jb(a){return new Promise(function(b,c){var e=new XMLHttpRequest;e.onload=function(){b(e.response)};e.onerror=function(a){c(a)};e.open("GET",a);e.send()})};function kb(){return new Promise(function(a,b){try{z.a=Object.assign({},JSON.parse(n.o)[z.f]),B(),void 0,void 0,a(null)}catch(e){var c=O.a.ea;c&&jb(c).then(function(c){void 0;try{z.a=Object.assign({},JSON.parse(c)[0]),B(),a()}catch(l){void 0,b(Error("Failed to parse Feed.jsom from feedURL response: "+l.message()))}}).catch(function(a){void 0;b(Error("Failed to load and parse feedURL: "+a.message()+" "))})}})};function lb(){}function mb(a){a=void 0===a?"":a;return la=new Promise(function(b,c){var e=a;""===a&&(e=O.a.ja);jb(e).then(function(a){void 0;x=(new DOMParser).parseFromString(a,"text/xml");b()}).catch(function(){void 0;c()})})}function nb(){return la}function ob(){return new Promise(function(a,b){pb().then(qb).then(a).catch(b)})}
function pb(){return new Promise(function(a){W("impression","InLine Impression");W("error","InLine Error");x.querySelector("Linear TrackingEvents")&&(W("view",'Linear TrackingEvents Tracking[event="creativeView"]'),W("view",'Linear TrackingEvents Tracking[event="start"]'),W("complete25",'Linear TrackingEvents Tracking[event="firstQuartile"]'),W("complete50",'Linear TrackingEvents Tracking[event="midpoint"]'),W("complete75",'Linear TrackingEvents Tracking[event="thirdQuartile"]'),W("completion",'Linear TrackingEvents Tracking[event="complete"]'),
W("clickThrough","Linear VideoClicks ClickTracking"));var b=X("Wrapper VASTAdTagURI");b?mb(b).then(pb).then(a):a(r.M)})}function W(a,b){x.querySelectorAll(b).forEach(function(b){if(0<b.childNodes.length)try{var c={},g=(c.id="",c.trigger=a,c.detail=Y(b),c.type="Image",c);z.N.push(g)}catch(l){void 0}})}
function rb(){var a=x.querySelector('MediaFile[apiFramework][apiFramework="VPAID"]');a?(da=!0,r.i=Y(a)):[].concat(k(x.querySelectorAll('MediaFile[type][type^="video"]'))).forEach(function(a){var b=sb(a);document.createElement("video").canPlayType(b.type)&&r.A.push(Object.assign({},b,{url:Y(a)}))})}function qb(){r.j=lb.b;rb();r.o=X("AdParameters");r.B=X("ClickThrough");tb();r.C=lb.a}
function Y(a){var b="",c=[].concat(k(a.childNodes)).filter(function(a){return a.nodeType===Node.CDATA_SECTION_NODE});c.length?c.forEach(function(a){b+=a.nodeValue}):b=a.childNodes[0].nodeValue;return b.trim()}function X(a){return(a=x.querySelector(a))?Y(a):""}function sb(a){var b={};[].concat(k(a.attributes)).forEach(function(a){b[a.name]=a.nodeValue});return b}
function tb(){try{[].concat(k(x.querySelectorAll("CompanionClickThrough"))).map(function(a){if(a.textContent&&!a.textContent.startsWith(z.a.statsBaseURL)){var b="https://"+z.a.statsBaseURL+"/cbct?";b+=La();a.textContent=b+"&redir="+encodeURIComponent(a.textContent)}return null})}catch(a){void 0}}
d.Object.defineProperties(lb,{a:{configurable:!0,enumerable:!0,get:function(){var a=x.querySelector("CompanionAds");return a?(new XMLSerializer).serializeToString(a).replace(/>\s+/g,">"):""}},b:{configurable:!0,enumerable:!0,get:function(){var a=X("Linear Duration").split(":");return 3600*a[0]+60*a[1]+a[2]}}});function ub(){A("cd");try{return A("cd.fbd.ssb")?new Promise(function(a,b){var c=G.v,e=A("cd.fbd");if(c&&c!=G.b){c=vb(c);var g=vb(e.pd);c=c===g?"":c.endsWith("."+g)||g.endsWith("."+c)?"":"DM"}else c="DI";c&&(e=A("cd.fbd.aburl").replace("${du}",encodeURIComponent(G.v)).replace("${pd}",e.pd),Promise.all([Qa(c),Pa(e)]).then(b).catch(b));a(null)}):Promise.resolve(null)}catch(a){return Promise.resolve(null)}}
function vb(a){a=void 0===a?"":a;return a.startsWith("http")?"function"===typeof window.URL?(new URL(a)).hostname:(a=a.match(/:\/\/([^\/$:]+\.[^\/$:]+)/))?a[1]:"NO-TOP-LEVEL-DOMAIN-IN-URL":a.split(/[\/:]/)[0]};var Z=[],wb=[],xb=(""+(new Date).getTime()+Math.floor(1E7*Math.random())).substr(0,16);function yb(){}function zb(){var a=this;try{document.getElementById(xb)||(ja.forEach(function(b){n.vpaidObj.subscribe(Ab.bind(a,b),b,a)}),C("https://cdn.doubleverify.com/dvtp_src.js"+yb.a,xb))}catch(b){void 0}}
function Bb(){var a=this,b="callback_dvGetVpaidAd_"+this.uid;window[b]=function(){var b={};return b.subscribe=function(a,b,c){n.vpaidObj.subscribe(a,b,c);n.vpaidObj.unsubscribe(Ab,b);Z.push(b)},b.unsubscribe=function(b,c){n.vpaidObj.unsubscribe(b,c);n.vpaidObj.subscribe(Ab,c,a)},b.getAdVolume=function(){return n.vpaidObj.getAdVolume()},b.getPlayer=function(){return n.c},b.getSlot=function(){return n.slot},b.getPreviousEvents=function(){for(var a=[];0<Z.length;)a.push(Z.shift());return a},b};return b}
function Ab(a){wb.includes(a)||Z.push(a)}d.Object.defineProperties(yb,{a:{configurable:!0,enumerable:!0,get:function(){return"?ctx="+(A("dvAnId")||818052)+"&cmp="+A("cpId")+"\n        }&sid="+A("psIdNum")+"\n        }&crt="+A("adKey")+"\n        }&plc="+A("plcId")+"\n        }&adsrv=107\n        }&tagformat=2&tagtype=video&dvtagver=6.1.src&adid="+Bb()}}});function Cb(){C("https://ud.tubemogul.com/js/lib/3rdparty/Ias_3.2.1.js").then(function(){try{var a=A("iasAnId")||"7203",b={},c=(b.anId=a,b.advId=void 0,b.campId=A("cpId"),b.pubId=A("psIdNum"),b.chanId=A("feedId"),b.partner="7203",b.placementId=A("plcId"),b.bidurl=A("page_url"),b.uId=A("session.sessId"),b.adsafe_par="",b),e=new "__IASVANS",g=V.c;"VIDEO"!==g.nodeName&&(g=ib);e.initCM(c,g)}catch(l){void 0}}).catch(void 0)};function Db(){new Promise(function(a){var b={level1:A("cpId"),level2:A("plcId"),level3:A("feedId"),level4:A("paId"),slicer1:A("psIdNum"),slicer2:null,zMoatSID:A("sessId"),zMoatSEID:A("sellerId")};C("https://ud.tubemogul.com/js/lib/3rdparty/Moat_2.0.js","","initMoatTracking").then(function(){try{window.initMoatTracking(window.getVPAIDAd,n.slot,b,"tubemoguljsvideo627208760992")}catch(c){void 0}a(null)}).catch(function(){a(null)})})};function Eb(){}d.Object.defineProperties(Eb,{a:{configurable:!0,enumerable:!0,get:function(){return"https://choices.truste.com/ca?pid=efrontier01&aid=efrontier01&cid=0911ef120x240&c=efrontier01cont1&w="+z.a.width+("&h="+z.a.height)+"&plc=tl&js=10"}}});function Fb(){A("dvMon")&&zb();A("iasMon")&&Cb();A("moatEnabled")&&Db();if(A("bt")){var a=ib,b=z.a.width,c=z.a.height,e=document.createElement("div");e.id="TM_TRUSTE_GUIDE";e.style.cssText="zIndex:99; position:absolute; left: 0px; top: 0px; width:"+b+"px; height:"+c+"px; pointer-events:none";a.appendChild(e);b=document.createElement("span");b.id="te-clearads-js-efrontier01cont1";b.style.cssText="zIndex";a.appendChild(b);navigator.mimeTypes["application/x-shockwave-flash"]=null;navigator.plugins["Shockwave Flash"]=
null;C(Eb.a)}};mb().catch(function(){void 0});
(function(a){V.a.V=a;V.a.vpaidObj={handshakeVersion:function(a){void 0;V.a.T=parseInt(a,10)>=parseInt("2.0",10)?"2.0":a;void 0;return V.a.T},initAd:function(a,c,e,g,l,v){n.width=a;n.height=c;n.I=e;n.u=g;n.D=v;ib=n.slot=v.slot;n.c=v.videoSlot;n.c&&!n.c.volume&&(n.c.volume=1);v.slot&&(v.slot.style&&""===v.slot.style.width&&(v.slot.style.width=a.toString()+"px"),v.slot.style&&""===v.slot.style.height&&(v.slot.style.height=
c.toString()+"px"));n.o=l.AdParameters;V.a.V()},subscribe:function(a,c,e){void 0;a={m:c,l:a};"undefined"!==typeof e&&(a.listenerScope=e);q.a.H.push(a)},unsubscribe:function(a,c){void 0;ha(a,c)},getAdLinear:function(){return!0},getAdVolume:function(){if(r.i){void 0;var a=U.a.g&&U.a.g.getAdVolume?U.a.g.getAdVolume():0}else if(a=-2,n.c&&n.c.volume)try{a=
n.c.volume}catch(c){}return a},setAdVolume:function(a){void 0;r.i?(void 0,U.a.g.setAdVolume(a),t("AdSetVolume")):n.c&&(n.c.volume=a,t("AdSetVolume"))},getAdWidth:function(){return n.width},getAdHeight:function(){return n.height},getAdExpanded:function(){if(r.b){void 0;var a=U.a.g.getAdExpanded()}else a=!1;return a},getAdSkippableState:function(){if(r.b){void 0;
var a=U.a.g.getAdSkippableState()}else a=!1;return a},getAdRemainingTime:function(){if(r.b){void 0;var a=U.a.g.getAdRemainingTime()}else try{var c=(n.c&&0<n.c.duration?n.c:r.j)-n.c.currentTime;a=0<c?c:-2}catch(e){a=-2}return a},getAdDuration:function(){if(r.b){void 0;var a=U.a.g.getAdDuration()}else a=r.j;return a},getAdCompanions:function(){void 0;
return r.C},getAdIcons:function(){void 0;return V.a.aa},startAd:function(){void 0;V.a.ha=!0;V.a.P="AD_STARTED";if(r.i){var a=document.createElement("iframe");U.a.ga=a;a.style.display="none";document.body.appendChild(a);var c=a.contentWindow.document;Document.prototype.open.call(c).write("<body onload=\"js = document.createElement('script');js.src = '"+r.i+"';js.addEventListener('load', function() { window['vpaidloadedCallback'](); });document.body.appendChild(js);\">");
a.contentWindow.vpaidloadedCallback=db;U.a.Y=a.contentWindow;Document.prototype.close.call(c);N("impression")}else a=ab(),Ua(),n.c.setAttribute("src",a.url),n.c.load(),Wa(),n.c.pause(),t("AdStarted"),N("impression"),S("impression");t("AdImpression");a=n.slot;if(oa){try{var e=A("viewabilityStandard")}catch(g){e="MRC"}void 0;J.a=e&&e in J.b?J.b[e]:J.b.MRC;void 0;J.K?(za(a,Da),Ca()):za(a,Ea);J.J&&(n.vpaidObj.subscribe(M.a.b,
"AdVolumeChange"),n.vpaidObj.subscribe(M.a.b,"AdSetVolume"),n.vpaidObj.subscribe(M.a.b,"AdProxyLoaded"));M.b&&(M.a.a=!0,J.K?wa():Ba())}else N("vimp","&vwbl=err")},stopAd:function(){void 0;V.a.ia=!0;V.a.P="AD_STOPPED";r.i?(void 0,U.a.g.stopAd()):n.c.pause()},pauseAd:function(){void 0;V.a.fa=!0;V.a.P="AD_PAUSED";q.L=!0;r.i?(void 0,
U.a.g.pauseAd()):(n.c.pause(),t("AdPaused"))},resumeAd:function(){void 0;r.i?(void 0,U.a.g.resumeAd()):(n.c.play(),t("AdPlaying"))},expandAd:function(){void 0;r.i&&(void 0,U.a.g.expandAd())},collapseAd:function(){void 0;void 0;r.i&&(void 0,
U.a.g.collapseAd())},skipAd:function(){void 0;r.i&&(void 0,U.a.g.skipAd())},resizeAd:function(a,c){da&&(void 0,U.a.g.resizeAd(a,c))}};window.getVPAIDAd=function(){return V.a.vpaidObj};n.vpaidObj=V.a.vpaidObj})(function(){kb().then(ub).then(nb).then(ob).then(Fb).then(ia)});
}).call(this)