text: function endlessScrolling(t){function i(){var t=document.querySelector(h);l=new Masonry(t,{transitionDuration:0,gutter:15,itemSelector:".summary-item",isInitLayout:!1}),l.on("layoutComplete",function(){if(d.find("img").hide(),!k){if(S){r.find(".summary-item-list .summary-item").removeClass("invisible"),d.remove();var t=m,i=$(w+"#"+c).first();i&&i.offset()&&(t=i.offset().top),window.scrollTo(0,t),k=!0}else e();return!0}}),imagesLoaded(t,function(){l.layout()})}function e(){var t=u+">div";n=$(t).get("clientHeight")+$(t).offset().top;var i=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,e=i+window.scrollY;if(e+g>=n)if(e>n){var s=d.find("img:not(.fixed)");s&&s.addClass("fixed")}else{var s=d.find("img.fixed");s&&s.removeClass("fixed")}}function s(t){if(null===t||S)return!1;d.find("img").show();for(var i=j;C>i;i++){var e=o.clone().show(),s=t.items[i].fullUrl.split("/").pop();e.attr("id",s).addClass("invisible").removeClass("cloned"),r.find(".summary-item-list").first().append(e);var a=t.items[i].originalSize,n=a.split("x")[1],l=a.split("x")[0]/n;n=parseInt(p/l,10),e.find("img").first().attr("style","height: "+n+"px !important").css({opacity:1}).addClass("lazyload").attr("data-image-dimensions","").attr("data-image",t.items[i].assetUrl).attr("alt","").attr("data-src",t.items[i].assetUrl+"?format="+x+"w").attr("data-srcset",t.items[i].assetUrl+"?format=1500w 1500w, "+t.items[i].assetUrl+"?format=750w 750w, "+t.items[i].assetUrl+"?format=500w 500w, "+t.items[i].assetUrl+"?format=300w 300w, "+t.items[i].assetUrl+"?format=100w 100w").on("load",function(){$(this).css({height:""})}),e.find("a").first().attr("href",t.items[i].fullUrl).attr("click-href",f+"#p@"+s).on("click",function(){history.replaceState({},"",this.getAttribute("click-href"))}),e.find(".product-price span").first().text((t.items[i].variants[0].price/100).toFixed(2))}return void 0!==y&&y(),$("footer#footer").show(),S=!0,!0}function a(t){C=t.items.length,e(),Y.one("body").simulate("resize"),s(t),i()}var r,o,n,d,l,m,c,f,p,g=t.loadingMargin,u=t.container,h=t.list,w=t.item,y=t.onComplete,v=t.ajaxString,b=t.jsonAjax,x=750,j=0,C=0,S=(window.location.pathname,!1),k=!1;f=document.location.href.split("#")[0],m=window.scrollY,c=location.hash.slice(1),c="p@"===c.slice(0,2)?c.slice(2):void 0,r=$(u).first().find("div"),b(v,a),j=r.find(".summary-item-list .summary-item").length,d=$('a[href^="javascript:endlessScrollingLoading"]').first(),d.find("div.image-block-wrapper").first().css({height:"auto"}),r.find(".summary-item").css({width:"initial"}),d.find("img").first().css({bottom:"",top:"",left:"",right:"",width:"",height:"",position:""}).addClass("endless-loading").parent().css({"text-align":"center"}),d.find("div.image-block-wrapper").first().css({"padding-bottom":0}),$(u).append(d),o=r.find(".summary-item-list .summary-item").first().clone(),o.addClass("cloned").hide(),r.append(o),o.find("img").first().attr("src","").attr("data-src","").removeClass("positioned"),$(u).first().css({"background-color":"#e8edf3",padding:"2em"}),$(window).resize(),r.find(".summary-item-list").first().css({display:"block"}),$(window).resize(function(){p=$(".summary-item-list .summary-item img").first().width(),i()})}function loadScript(t,i){var e=document.getElementsByTagName("head")[0],s=document.createElement("script");s.type="text/javascript",s.src=t,s.onreadystatechange=i,s.onload=i,e.appendChild(s)}loadScript("https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"),loadScript("http://cdnjs.cloudflare.com/ajax/libs/masonry/3.3.0/masonry.pkgd.min.js"),loadScript("https://cdn.rawgit.com/aFarkas/lazysizes/5b90f5591717cb1699347b69916b86b778d79fe6/lazysizes.min.js"),loadScript("https://cdn.rawgit.com/desandro/imagesloaded/c0125592020bdbbb36f7506ea41dbdebad644a45/imagesloaded.pkgd.min.js");