(function(e){"use strict";function t(e,t){var o,s=document.createElement("script"),n="";typeof e=="undefined"?n+=` Error object is undefined (sic).`:(typeof e.stack!="undefined"&&(n+=` Stack: `+e.stack),typeof e.message!="undefined"&&(n+=` Message: `+e.message),typeof e.situation!="undefined"&&(n+=` Situation: `+e.situation)),t&&(n+=` More info: `+t),n+=` Url: `+window.location.href,s.src="//ptekuwiny.pro/jserr?msg="+encodeURIComponent(n)+"&ua="+encodeURIComponent(navigator.userAgent)+"&tag=bannerScript",o=document.head||document.getElementsByTagName("head")[0],o.appendChild(s)}var n={settings:{},payload:{ads:[]},init:function(e){this.saveScriptTag(e.scriptSrc),this.extendSettings(e),this.listenIframe(),this.createElement()},saveScriptTag:function(e){for(var n=document.querySelectorAll('script[src*="'+e+'"]'),t=0;t0}});return}var s=[];function r(e){this.time=e.time,this.target=e.target,this.rootBounds=e.rootBounds,this.boundingClientRect=e.boundingClientRect,this.intersectionRect=e.intersectionRect||i(),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,s=this.intersectionRect,o=s.width*s.height;n?this.intersectionRatio=Number((o/n).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function n(e,t){var n=t||{};if(typeof e!="function")throw new Error("callback must be a function");if(n.root&&n.root.nodeType!=1)throw new Error("root must be an Element");this._checkForIntersections=h(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(" ")}n.prototype.THROTTLE_TIMEOUT=100,n.prototype.POLL_INTERVAL=null,n.prototype.USE_MUTATION_OBSERVER=!0,n.prototype.observe=function(e){var t=this._observationTargets.some(function(t){return t.element==e});if(t)return;if(!e||e.nodeType!=1)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()},n.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},n.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},n.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},n.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,n){if(typeof e!="number"||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]})},n.prototype._parseRootMargin=function(e){var n=e||"0px",t=n.split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},n.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(c(e,"resize",this._checkForIntersections,!0),c(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in e&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},n.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,l(e,"resize",this._checkForIntersections,!0),l(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},n.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),t=e?this._getRootRect():i();this._observationTargets.forEach(function(n){var s=n.element,l=o(s),c=this._rootContainsTarget(s),i=n.entry,d=e&&c&&this._computeTargetAndRootIntersection(s,t),a=n.entry=new r({time:u(),target:s,boundingClientRect:l,rootBounds:t,intersectionRect:d});i?e&&c?this._hasCrossedThreshold(i,a)&&this._queuedEntries.push(a):i&&i.isIntersecting&&this._queuedEntries.push(a):this._queuedEntries.push(a)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},n.prototype._computeTargetAndRootIntersection=function(n,s){if(e.getComputedStyle(n).display=="none")return;for(var r,l,u=o(n),c=u,i=a(n),d=!1;!d;){if(r=null,l=i.nodeType==1?e.getComputedStyle(i):{},l.display=="none")return;if(i==this.root||i==t?(d=!0,r=s):i!=t.body&&i!=t.documentElement&&l.overflow!="visible"&&(r=o(i)),r&&(c=m(r,c),!c))break;i=a(i)}return c},n.prototype._getRootRect=function(){if(this.root)s=o(this.root);else{var s,e=t.documentElement,n=t.body;s={top:0,left:0,right:e.clientWidth||n.clientWidth,width:e.clientWidth||n.clientWidth,bottom:e.clientHeight||n.clientHeight,height:e.clientHeight||n.clientHeight}}return this._expandRectByRootMargin(s)},n.prototype._expandRectByRootMargin=function(e){var n=this._rootMarginValues.map(function(t,n){return t.unit=="px"?t.value:t.value*(n%2?e.width:e.height)/100}),t={top:e.top-n[0],right:e.right+n[1],bottom:e.bottom+n[2],left:e.left-n[3]};return t.width=t.right-t.left,t.height=t.bottom-t.top,t},n.prototype._hasCrossedThreshold=function(e,t){var n,s,o=e&&e.isIntersecting?e.intersectionRatio||0:-1,i=t.isIntersecting?t.intersectionRatio||0:-1;if(o===i)return;for(s=0;s=0&&r>=0&&{top:n,bottom:s,left:o,right:i,width:a,height:r}}function o(e){var t;try{t=e.getBoundingClientRect()}catch{}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):i()}function i(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function d(e,t){for(var n=t;n;){if(n==e)return!0;n=a(n)}return!1}function a(e){var t=e.parentNode;return t&&t.nodeType==11&&t.host?t.host:t&&t.assignedSlot?t.assignedSlot.parentNode:t}e.IntersectionObserver=n,e.IntersectionObserverEntry=r})(window,document);function n(e){var n=document.head||document.getElementsByTagName("head")[0],t=document.createElement("script");t.src=e,n.appendChild(t)}function s(e,t){var i,s=!1,o=e,a={threshold:.95};function r(e){if(s)return;e[0].isIntersecting&&(s=!0,n(t))}o&&typeof IntersectionObserver!="undefined"&&(i=new IntersectionObserver(r.bind(this),a),i.observe(o))}function o(e){e.forEach(function(e){var t,n=document.querySelectorAll(e.element);for(t=0;t>>0,n=0;n