1(function(){function whenFSReady(cb){var tries=0,iv=setInterval(function(){typeof window.FS=="function"&&(clearInterval(iv),cb()),++tries>40&&clearInterval(iv)},500)}async function getFSID(){try{return typeof FS!="function"?null:await FS("getSessionAsync",{format:"id"})||null}catch{return null}}async function getCart(){const r=await fetch("/cart.js",{headers:{Accept:"application/json"}});return r.ok?r.json():null}async function updateCartAttributes(attrs){await fetch("/cart/update.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({attributes:attrs})})}async function ensureFsIdOnCart(){if(sessionStorage.getItem("fs_id_stamped"))return;const fsid=await getFSID();if(!fsid)return;const cart=await getCart(),current=cart&&cart.attributes?cart.attributes:{};if(current.fs_session_id===fsid){sessionStorage.setItem("fs_id_stamped","1");return}await updateCartAttributes({...current,fs_session_id:fsid}),sessionStorage.setItem("fs_id_stamped","1")}let timer;function scheduleEnsure(delay=300){clearTimeout(timer),timer=setTimeout(ensureFsIdOnCart,delay)}whenFSReady(function(){scheduleEnsure(0),document.addEventListener("click",function(e){e.target.closest('form[action^="/cart/add"], button[name="add"], button.add-to-cart, product-form button[type="submit"]')&&scheduleEnsure(600)},!0),["cart:updated","cart:add","ajaxProduct:added"].forEach(evt=>{window.addEventListener(evt,()=>scheduleEnsure(300))})})})(); 2//# sourceMappingURL=/cdn/shop/t/1087/assets/fs-to-cart.js.map?v=145525376394218681081788294733
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.