!function(){var e=_SG_LOADER.IMAGE,t=_SG_LOADER.BACKGROUND_IMAGE,n=_SG_LOADER.BAR_IMAGE,i=_SG_LOADER.URL_PARAM,r=_SG_LOADER.ELEMENT_QUERY;if(document.querySelector('meta[name="pkg-uuid"]')){var o=document.querySelector(r),a=document.createElement("div");o.parentElement.insertBefore(a,o.nextSibling);var s=b("loader","div",["background: rgba(255,255,255,1)","position: absolute","left: 0","right: 0","z-index: 9999","height: 950px"],null,[b("image","img",["display: block","margin: 0 auto","filter: grayscale(100%) blur(2px)","opacity: 0.4","width: 100%","max-width: 1100px"],[["src",e]],[]),b("info","div",["position: absolute","top: 100px","left: 0","right: 0","text-align: center","font-size: 2em","color: #000","font-weight: bold","text-shadow: 0px 0px 5px #fff"],null,[b("textInfo","div",[],[]),b("barContainer","div",["width: 300px","height: 60px","background-repeat: no-repeat","background-image: url("+t+")","position: relative","margin: 20px auto","overflow: hidden"],null,[b("bar","img",["position: absolute","top: 0","bottom: 0","left: 0"],[["src",n]])]),b("progressText","div",[],[])])]),l=s.refs.loader,d=s.refs.bar,f=s.refs.progressText,g=s.refs.image;s.refs.textInfo.innerText="Przejdź do strony głównej...",a.appendChild(l);var u=document.createElement("div");u.style.height=g.getBoundingClientRect().height+"px",a.appendChild(u);var c=!1,p=!1,h=!1,m=null,x=!1;window.addEventListener("scroll",(function(){window.requestAnimationFrame(v)}))}function v(){u.style.height=g.getBoundingClientRect().height+"px";var e=1.2*((window.innerHeight-a.getBoundingClientRect().top)/g.getBoundingClientRect().height)-.3;0<=100*e&&100*e<=100&&(d.style.left=100*e+"%",f.innerText=Math.ceil(100*e)+"%"),p&&e<=.1&&!h&&(h=!0,dataLayer.push({event:"sgLoader.scrollBack"})),e>=.15&&!p&&(p=!0,dataLayer.push({event:"sgLoader.visible"})),e<.9&&"number"!=typeof m&&(m=e),e>=.9&&"number"!=typeof m&&!x&&(m=e,x=!0),e<=.8&&x&&(x=!1),e>=1&&!c&&!x&&(c=!0,d.style.left="100%",f.innerText="100%",window.location.assign(window.location.origin+i))}function b(e,t,n,i,r){var o=document.createElement(t),a={refs:{},refsNames:[]};if(o.setAttribute("style",n.join(";")),i&&i.forEach((function(e){o.setAttribute(e[0],e[1])})),r)for(var s=0;s