(()=>{function K(){let w=document.querySelector("[pub-length]")?.querySelectorAll("[data-pub-id]")||[],j=new Set;for(let q of w){let z=q.getAttribute("data-pub-id");if(z)j.add(z)}return{pubCount:w.length,pubIds:j,filterElements:Array.from(document.querySelectorAll("[data-pub-filter]"))}}function A({pubIds:k,filterElements:w}){for(let j of w){let q=j.getAttribute("data-pub-filter");if(q&&k.has(q))j.classList.remove("hide");else j.parentElement?.remove()}}function B({pubCount:k}){let w=k===0?"10+":k.toString(),j=document.querySelectorAll('[pub-count="value"]');for(let q of j)q.textContent=w}function G({filterElements:k}){for(let w of k){if(!w.isConnected)continue;let j=w.parentElement,q=j?.parentElement?j===j.parentElement.lastElementChild:!0,z=w.innerHTML.replace(/,( |\s)*$/,"");w.innerHTML=q?z:z+", "}}async function J(){document.querySelectorAll("[download-item]").forEach((w)=>{w.addEventListener("click",function(){w.classList.add("is-active");let j=this.querySelector("[download-success]"),q=this.querySelector("[download-icon]");if(j)j.classList.remove("hide");if(q)q.classList.add("hide");w.removeEventListener("click",arguments.callee)})})}function L(){if(window.location.hostname.toLowerCase()!="snapshots.studioid.com")return;window.location.replace("https://snapshots.informatechtarget.com"+window.location.pathname+window.location.search+window.location.hash)}function N(){try{let k=K();A(k),B(k),G(k)}catch(k){console.error("Error transforming landing page:",k)}J()}L();document.addEventListener("DOMContentLoaded",N);})();