1(function(){var BLOCK=".shopify-app-block",WRAPPER=".instafeed-new-layout-wrapper",ITEM=".instafeed-new-layout-item",CLONE="data-hp-instafeed-clone",PIXELS_PER_SECOND=40;function realImages(wrapper){return Array.prototype.filter.call(wrapper.querySelectorAll("img:not(["+CLONE+"] img)"),function(img){return img.complete&&img.naturalWidth>1})}function addClones(block){var wrapper=block.querySelector(WRAPPER);if(!(!wrapper||wrapper.querySelector("["+CLONE+"]"))){var items=Array.prototype.filter.call(wrapper.querySelectorAll(ITEM),function(item){return!item.hasAttribute(CLONE)});if(items.length&&!(realImages(wrapper).length<items.length)){var fragment=document.createDocumentFragment();items.forEach(function(item){var copy=item.cloneNode(!0);copy.setAttribute(CLONE,""),copy.setAttribute("aria-hidden","true"),Array.prototype.forEach.call(copy.querySelectorAll("a"),function(a){a.setAttribute("tabindex","-1")});var sources=item.querySelectorAll("img");Array.prototype.forEach.call(copy.querySelectorAll("img"),function(img,i){var from=sources[i];if(from){var real=from.currentSrc||from.src;real&&(img.src=real),from.srcset&&(img.srcset=from.srcset),img.className=img.className.replace(/instafeed-lazy-image\S*/g,"").trim(),img.removeAttribute("data-src"),img.removeAttribute("loading")}}),fragment.appendChild(copy)}),wrapper.appendChild(fragment),measure(block,wrapper,items)}}}function measure(block,wrapper,items){wrapper.offsetWidth;var gap=0;items.length>1&&(gap=items[1].getBoundingClientRect().left-items[0].getBoundingClientRect().right);
1var setWidth=items.reduce(function(total,item){return total+item.getBoundingClientRect().width+gap},0);setWidth<=0||(block.style.setProperty("--hp-instafeed-shift",Math.round(setWidth)+"px"),block.style.setProperty("--hp-instafeed-duration",Math.round(setWidth/PIXELS_PER_SECOND)+"s"))}function tag(block){var wrapper=block.querySelector(WRAPPER);if(!wrapper||!wrapper.querySelector(ITEM))return!1;block.classList.contains("hp-instafeed")||(block.classList.add("hp-instafeed"),block.addEventListener("load",function(){addClones(block)},!0),new MutationObserver(function(){addClones(block)}).observe(wrapper,{childList:!0}),"IntersectionObserver"in window&&(block.classList.add("is-offscreen"),new IntersectionObserver(function(entries){entries.forEach(function(entry){block.classList.toggle("is-offscreen",!entry.isIntersecting)})},{rootMargin:"200px 0px"}).observe(block)));var originals=Array.prototype.filter.call(wrapper.querySelectorAll(ITEM),function(item){return!item.hasAttribute(CLONE)});return measure(block,wrapper,originals),addClones(block),!0}function scan(){Array.prototype.forEach.call(document.querySelectorAll(BLOCK),function(block){(block.querySelector("#insta-feed")||block.id.indexOf("instafeed")>-1)&&tag(block)})}function start(){scan(),new MutationObserver(scan).observe(document.body,{childList:!0,subtree:!0})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",start):start()})(); 2//# sourceMappingURL=/cdn/shop/t/173/assets/hp-instafeed.js.map?v=80656632716120233191787336274
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.