1(()=>{const FRAME_SELECTOR=".hs-form-frame",ROOT_MARGIN="400px",requestedPortals=new Set,watchedFrames=new WeakSet;let preconnected=!1,rescanScheduled=!1;const idle=callback=>"requestIdleCallback"in window?window.requestIdleCallback(callback,{timeout:2e3}):setTimeout(callback,200);function whenSettled(callback){document.readyState==="complete"?idle(callback):window.addEventListener("load",()=>idle(callback),{once:!0})}function preconnect(){preconnected||(preconnected=!0,["https://js.hsforms.net","https://forms.hsforms.com"].forEach(href=>{const link=document.createElement("link");link.rel="preconnect",link.href=href,document.head.appendChild(link)}))}function loadEmbed(portalId,immediate){if(!portalId||requestedPortals.has(portalId))return;requestedPortals.add(portalId);const inject=()=>{const script=document.createElement("script");script.src=`https://js.hsforms.net/forms/embed/${portalId}.js`,script.defer=!0,document.body.appendChild(script)};immediate?(preconnect(),inject()):whenSettled(inject)}function activate(frame,immediate){loadEmbed(frame.dataset.portalId,immediate)}function watchModal(modal,frame){const isOpen=()=>modal.style.display==="block",open=()=>activate(frame,!0);if(isOpen()){open();return}const observer=new MutationObserver(()=>{isOpen()&&(observer.disconnect(),open())});observer.observe(modal,{attributes:!0,attributeFilter:["style","class"]});const id=modal.id;id&&(window.location.hash===`#${id}`&&open(),window.addEventListener("hashchange",()=>{window.location.hash===`#${id}`&&open()}),document.querySelectorAll(`a[href="#${id}"]`).forEach(link=>{["pointerenter","focus","touchstart"].forEach(event=>{link.addEventListener(event,preconnect,{once:!0,passive:!0})}),link.addEventListener("click",open,{once:!0})}))}function watchFrame(frame){if(watchedFrames.has(frame))return;watchedFrames.add(frame);const modal=frame.closest(".modal");if(modal){watchModal(modal,frame);return}if(["pointerenter","focusin","touchstart"].forEach(event=>{frame.addEventListener(event,()=>activate(frame,!0),{once:!0,passive:!0})}),!("IntersectionObserver"in window)){activate(frame,!1);return}const observer=new IntersectionObserver(entries=>{entries.forEach(entry=>{entry.isIntersecting&&(observer.disconnect(),activate(frame,!1))})},{rootMargin:ROOT_MARGIN});observer.observe(frame)}function watchAll(){document.querySelectorAll(FRAME_SELECTOR).forEach(watchFrame)}watchAll(),new MutationObserver(mutations=>{rescanScheduled||!mutations.some(mutation=>Array.prototype.some.call(mutation.addedNodes,node=>node.nodeType===1))||(rescanScheduled=!0,idle(()=>{rescanScheduled=!1,watchAll()}))}).observe(document.documentElement,{childList:!0,subtree:!0})})(); 2//# sourceMappingURL=/cdn/shop/t/171/assets/hubspot-forms.js.map?v=162607959588423329041788786751
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.