javascript:!function(){var t,e=40;window.autoScroller&&(clearTimeout(window.autoScroller.idleInterval),window.autoScroller.rafId&&cancelAnimationFrame(window.autoScroller.rafId));var o,n,r=!1,i=0,l=500,c=null,u=0,s=!document.hidden,a=!1;function d(t){const e=[];if(t.shadowRoot)try{const o=t.shadowRoot.querySelectorAll("video");e.push(...Array.from(o));const n=t.shadowRoot.querySelectorAll("*");for(let t of n)e.push(...d(t))}catch(t){}return e}function f(t){if(t.poster&&t.poster.toLowerCase().includes(".gif"))return!0;if(t.src&&t.src.toLowerCase().includes(".gif"))return!0;if(t.currentSrc&&t.currentSrc.toLowerCase().includes(".gif"))return!0;const e=t.querySelectorAll("source");for(let t of e)if(t.src&&t.src.toLowerCase().includes(".gif"))return!0;return!1}function m(){const t=[];let e=document.querySelectorAll("video");t.push(...Array.from(e));const o=document.querySelectorAll("*");for(let e of o)t.push(...d(e));t.push(...function(){const t=[];return document.querySelectorAll("iframe").forEach((function(e){try{if(e.contentDocument&&e.contentWindow){const o=e.contentDocument.querySelectorAll("video");t.push(...Array.from(o))}}catch(t){}})),t}());const n=[];for(var r=0;r<t.length;r++){let e=t[r];try{if(f(e))continue;e.paused||e.ended||n.push(e)}catch(t){}}return n}function h(t){const e=t.getBoundingClientRect();let o,n;if(g===document.scrollingElement||g===document.documentElement||g===document.body)o=window.innerHeight,n=0;else{const t=g.getBoundingClientRect();o=g.clientHeight,n=t.top}const r=e.height,i=e.top-n,l=e.bottom-n;if(l<=0||i>=o)return{visibility:0,distanceToIdeal:1/0,isOptimal:!1};const c=Math.max(0,i),u=(Math.min(o,l)-c)/r,s=(o-r)/2,a=Math.abs(i-s),d=a<50,f=1-Math.abs((i+l)/2-o/2)/(o/2);return{visibility:.7*u+.3*Math.max(0,f),distanceToIdeal:a,isOptimal:d,videoTop:i,idealTop:s}}const w=function(){const t=[];document.querySelectorAll("*").forEach((function(e){const o=getComputedStyle(e);("scroll"===o.overflowY||"auto"===o.overflowY)&&e.scrollHeight>e.clientHeight&&t.push({el:e,scrollHeight:e.scrollHeight})}));const e=document.scrollingElement;return e&&e.scrollHeight>e.clientHeight&&t.push({el:e,scrollHeight:e.scrollHeight}),t}();if(0===w.length)return;w.sort((function(t,e){return e.scrollHeight-t.scrollHeight}));const g=w[0].el;function v(){t=setTimeout(p,1e4),window.autoScroller.idleInterval=t}function y(t){if(o||(o=t),!s)return;const r=function(t){if(t-i>=l){i=t;const e=m();if(0===e.length)return c=null,u=0,a&&(a=!1),!1;let o=null,n=0;e.forEach((function(t){const e=h(t);e.visibility>n&&(o=t,n=e.visibility)})),c=o,u=n}if(c){if(c.paused||c.ended)return c=null,u=0,a&&(a=!1),!1;const t=h(c),e=t.visibility;if(e>.2)return t.isOptimal?(a=!0,!0):(a&&(a=!1),!1);if(e%3Cu&&u%3E.3&&t.isOptimal)return%20a=!0,!0}return%20a&&(a=!1),!1}(t);if(r)return%20n=requestAnimationFrame(y),void(window.autoScroller.rafId=n);a&&(o=t,a=!1);var%20d=(t-o)/1e3;g.scrollBy(0,e*d),o=t,n=requestAnimationFrame(y),window.autoScroller.rafId=n}function%20p(){r||(r=!0,o=null,n=requestAnimationFrame(y),window.autoScroller.rafId=n)}window.autoScroller={idleInterval:null,rafId:null},document.addEventListener(%22mousemove%22,(function(){clearTimeout(t),r&&(cancelAnimationFrame(n),r=!1),v()}),!1),document.addEventListener(%22visibilitychange%22,(function(){(s=!document.hidden)?r&&(o=null,n=requestAnimationFrame(y),window.autoScroller.rafId=n):n&&(cancelAnimationFrame(n),n=null,window.autoScroller.rafId=null)}),!1),v()}();
|