1(()=>{var n,i,e,a,t,o,l,r;function c(){var t,e=n.value.trim();if(e.length<6)return s();e!==r&&(r=e,o&&o.abort(),o=new AbortController,t=++l,fetch("/feedback/similar",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:e,mode:"duplicate",limit:3}),signal:o.signal}).then(function(e){if(e.ok)return e.json();throw new Error("duplicate check failed")}).then(function(e){t===l&&((e=e.matches||[]).length?(a.innerHTML="",e.forEach(function(e){var t=document.createElement("li"),n=document.createElement("a"),n=(n.href=e.url,n.target="_blank",n.rel="noopener",n.className="duplicate-title",n.textContent=e.title,t.appendChild(n),document.createElement("span"));n.className="duplicate-meta weak",n.textContent=e.votes+(1==e.votes?" vote":" votes")+" · "+e.status,t.appendChild(n),a.appendChild(t)}),i.hidden=!1):s())}).catch(function(){t===l&&s()}))}function s(){i.hidden=!0,a.innerHTML=""}document.getElementById("submission-form")&&(n=document.getElementById("text-title"))&&((i=document.createElement("section")).className="feedback-duplicate-check",i.hidden=!0,i.innerHTML='<h3>Does one of these already cover it?</h3><p class="weak">Voting on an existing post carries more weight than a new one.</p><ul class="duplicate-list"></ul>',(e=n.closest(".textbox-holder")||n.parentNode).parentNode.insertBefore(i,e.nextSibling),a=i.querySelector(".duplicate-list"),o=t=null,l=0,r="",n.addEventListener("input",function(){clearTimeout(t),t=setTimeout(c,500)}))})();
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.