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

URL: https://playtime.tubemogul.com/ud/prod/pullins/io_polyfill-f88866.js
Submission: On January 23 via manual from US — Scanned from US

Form analysis 0 forms found in the DOM

Text Content

(function(){
(function(h,x){function t(a){this.time=a.time;this.target=a.target;this.rootBounds=a.rootBounds;this.boundingClientRect=a.boundingClientRect;this.intersectionRect=a.intersectionRect||p();this.isIntersecting=!!a.intersectionRect;a=this.boundingClientRect;a=a.width*a.height;var b=this.intersectionRect;b=b.width*b.height;this.intersectionRatio=a?b/a:this.isIntersecting?1:0}function c(a,b){b=b||{};if("function"!=typeof a)throw Error("callback must be a function");if(b.root&&1!=b.root.nodeType)throw Error("root must be an Element");
this.g=null;this.a=y(this.a.bind(this),this.H);this.J=a;this.b=[];this.c=[];this.m=this.D(b.rootMargin);this.thresholds=Array(this.B(b.threshold));this.G=h.top.document.body;this.root=b.root||this.G;this.rootMargin=this.m.map(function(a){return a.value+a.u}).join(" ")}function y(a,b){var d=null;return function(){d||(d=setTimeout(function(){a();d=null},b))}}function u(a,b,d,e){"function"==typeof a.addEventListener?a.addEventListener(b,d,e||!1):"function"==typeof a.attachEvent&&a.attachEvent("on"+b,
d)}function v(a,b,d,e){"function"==typeof a.removeEventListener?a.removeEventListener(b,d,e||!1):"function"==typeof a.a&&a.a("on"+b,d)}function m(a,b,d){return a.getComputedStyle(b).getPropertyValue(d)}function k(a){var b;"ownerDocument"in a?b=a.ownerDocument:b=x;return b.defaultView||b.parentWindow}function q(a,b){var d=Math.max(a.top,b.top),e=Math.min(a.bottom,b.bottom),c=Math.max(a.left,b.left);a=Math.min(a.right,b.right);return{top:d,bottom:e,left:c,right:a,width:a-c,height:e-d}}function n(a){try{var b=
a.getBoundingClientRect()}catch(d){}if(!b)return p();b.width&&b.height||(b={top:b.top,right:b.right,bottom:b.bottom,left:b.left,width:b.right-b.left,height:b.bottom-b.top});return b}function p(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function r(a,b){if(a&&b){var d=a.ownerDocument;for(d=d.defaultView||d.parentWindow;null!=a;){if(a==b)return!0;a=a.parentNode}return r(d.frameElement,b)}return!1}function w(a){var b=a.document.body.clientWidth;a=a.document.body.clientHeight;return{top:0,
left:0,bottom:0+a,right:0+b,width:b,height:a}}if("IntersectionObserver"in h&&"IntersectionObserverEntry"in h&&"intersectionRatio"in h.IntersectionObserverEntry.prototype)"isIntersecting"in h.IntersectionObserverEntry.prototype||Object.defineProperty(h.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return 0<this.intersectionRatio}});else{var l=[];c.prototype.H=100;c.prototype.l=200;c.prototype.I=!0;c.prototype.observe=function(a){if(!this.b.some(function(b){return b.element==
a})){if(!a||1!=a.nodeType)throw Error("target must be an Element");this.g=a;this.F();this.b.push({element:a,j:null});this.C();this.a()}};c.prototype.unobserve=function(a){this.b=this.b.filter(function(b){return b.element!=a});this.b.length||(this.o(),this.s())};c.prototype.disconnect=function(){this.b=[];this.o();this.s()};c.prototype.takeRecords=function(){var a=this.c.slice();this.c=[];return a};c.prototype.B=function(a){a=a||[0];Array.isArray(a)||(a=[a]);return a.sort().filter(function(a,d,e){if("number"!=
typeof a||isNaN(a)||0>a||1<a)throw Error("threshold must be a number between 0 and 1 inclusively");return a!==e[d-1]})};c.prototype.D=function(a){a=(a||"0px").split(/\s+/).map(function(a){a=/^(-?\d*\.?\d+)(px|%)$/.exec(a);if(!a)throw Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(a[1]),u:a[2]}});a[1]=a[1]||a[0];a[2]=a[2]||a[0];a[3]=a[3]||a[1];return a};c.prototype.C=function(){if(!this.h)if(this.h=!0,this.I)this.i=setInterval(this.a,this.l);else if("MutationObserver"in
h){var a=k(this.g),b=!1;for(this.f=new MutationObserver(this.a);!b;)b=a==h.top,u(a,"resize",this.a,!0),u(a.document,"scroll",this.a,!0),this.f.observe(a.document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),a=a.parent}else this.i=setInterval(this.a,this.l)};c.prototype.o=function(){if(this.h){this.h=!1;clearInterval(this.i);this.i=null;var a=k(this.g),b=!1;if(this.f)for(this.f.disconnect(),this.f=null;!b;)b=a==h.top,v(a,"resize",this.a,!0),v(a.document,"scroll",this.a,!0),a=a.parent}};
c.prototype.a=function(){var a=r(this.root,h.top.document.documentElement);this.b.forEach(function(b){var d=b.element,c=n(d),g=r(d,this.root),f=b.j,k=a&&g&&this.K(d);b=b.j=new t({time:h.performance&&performance.now&&performance.now(),target:d,boundingClientRect:c,rootBounds:this.w(),intersectionRect:k});f?a&&g?this.A(f,b)&&this.c.push(b):f&&f.isIntersecting&&this.c.push(b):this.c.push(b)},this);if(this.c.length){var b=this.takeRecords();this.J(b,this)}};c.prototype.K=function(a){for(var b=null;a;){var d=
void 0,e=a;var c=b;b:{b=e;for(var g=k(b);b!==g.document.documentElement;){var f="none"!==m(g,b,"display"),h="hidden"!==m(g,b,"visibility"),l=.4<m(g,b,"opacity");if(!(f&&h&&l)){b=!0;break b}b=b.parentNode}b=!1}if(b)b=p();else{b=k(e);c?(g=n(e),f={},f.top=g.top+c.top,f.left=g.left+c.left,f.width=Math.min(g.width,c.width),f.height=Math.min(g.height,c.height),f.right=f.left+f.width,f.bottom=f.top+f.height,c=f):c=n(e);b:{g=k(e);for(f=e.parentNode;f!==g.document.body;){h=m(g,f,"position");if("fixed"==h||
"absolute"==h){g=!1;break b}f=f.parentNode}g=!0}if(g){b:{d=k(e);for(e=e.parentNode;e!==d.document.body;){if("hidden"==m(d,e,"overflow")){d=e;break b}e=e.parentNode}d=null}g=d}g?(e=c,d=n(d),b=q(q(e,d),w(b))):b=q(c,w(b))}a=k(a);a=a.frameElement}return b};c.prototype.w=function(){if(this.root)var a=n(this.root);else a=h.top.document.body,a={top:0,left:0,right:a.clientWidth,width:a.clientWidth,bottom:a.clientHeight,height:a.clientHeight};return this.v(a)};c.prototype.v=function(a){var b=this.m.map(function(b,
c){return"px"==b.u?b.value:b.value*(c%2?a.width:a.height)/100});b={top:a.top-b[0],right:a.right+b[1],bottom:a.bottom+b[2],left:a.left-b[3]};b.width=b.right-b.left;b.height=b.bottom-b.top;return b};c.prototype.A=function(a,b){a=a&&a.isIntersecting?a.intersectionRatio||0:-1;b=b.isIntersecting?b.intersectionRatio||0:-1;if(a===b)return!1;for(var d=0;d<this.thresholds.length;d++){var c=this.thresholds[d];if(c==a||c==b||c<a!==c<b)return!0}return!1};c.prototype.F=function(){0>l.indexOf(this)&&l.push(this)};
c.prototype.s=function(){var a=l.indexOf(this);-1!=a&&l.splice(a,1)};h.IntersectionObserver=c;h.IntersectionObserverEntry=t}})(window,document);
}).call(this)

//# sourceMappingURL=../maps/io_polyfill-f88866.js.map