!function(){var e,t,n=new Set,o=document.createElement("link"),a=o.relList&&o.relList.supports&&o.relList.supports("prefetch")&&window.IntersectionObserver&&"isIntersecting"in IntersectionObserverEntry.prototype,r="instantAllowQueryString"in document.body.dataset,i="instantAllowExternalLinks"in document.body.dataset,s="instantWhitelist"in document.body.dataset,c="instantMousedownShortcut"in document.body.dataset,d=1111,u=65,l=!1,f=!1,v=!1,m=document.querySelectorAll('a[href*="logout"], a[href*="/cart/add/"]');if(null!=m&&m.forEach(function(e){e.setAttribute("data-no-instant","")}),"instantIntensity"in document.body.dataset){var h=document.body.dataset.instantIntensity;if("mousedown"==h.substr(0,"mousedown".length))l=!0,"mousedown-only"==h&&(f=!0);else if("viewport"==h.substr(0,"viewport".length))navigator.connection&&(navigator.connection.saveData||navigator.connection.effectiveType&&navigator.connection.effectiveType.includes("2g"))||("viewport"==h?document.documentElement.clientWidth*document.documentElement.clientHeight<45e4&&(v=!0):"viewport-all"==h&&(v=!0));else{var p=parseInt(h);isNaN(p)||(u=p)}}if(a){var w={capture:!0,passive:!0};if(f||document.addEventListener("touchstart",function(e){t=performance.now();var n=e.target.closest("a");if(!b(n))return;y(n.href)},w),l?c||document.addEventListener("mousedown",function(e){var t=e.target.closest("a");if(!b(t))return;y(t.href)},w):document.addEventListener("mouseover",function(n){if(performance.now()-t{y(o.href),e=void 0},u)},w),c&&document.addEventListener("mousedown",function(e){if(performance.now()-t1||e.metaKey||e.ctrlKey)return;if(!n)return;n.addEventListener("click",function(e){1337!=e.detail&&e.preventDefault()},{capture:!0,passive:!1,once:!0});var o=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1,detail:1337});n.dispatchEvent(o)},w),v)(window.requestIdleCallback?e=>{requestIdleCallback(e,{timeout:1500})}:e=>{e()})(()=>{var e=new IntersectionObserver(t=>{t.forEach(t=>{if(t.isIntersecting){var n=t.target;e.unobserve(n),y(n.href)}})});document.querySelectorAll("a").forEach(t=>{b(t)&&e.observe(t)})})}function g(t){t.relatedTarget&&t.target.closest("a")==t.relatedTarget.closest("a")||e&&(clearTimeout(e),e=void 0)}function b(e){if(e&&e.href&&(!s||"instant"in e.dataset)&&(i||e.origin==location.origin||"instant"in e.dataset)&&["http:","https:"].includes(e.protocol)&&("http:"!=e.protocol||"https:"!=location.protocol)&&(r||!e.search||"instant"in e.dataset)&&!(e.hash&&e.pathname+e.search==location.pathname+location.search||"noInstant"in e.dataset))return!0}function y(e){if(!n.has(e)){var t=document.createElement("link");t.rel="prefetch",t.href=e,document.head.appendChild(t),n.add(e)}}}();