function dim(){document.getElementById("dialog-cover-holder").innerHTML='<div class="dialog-cover"></div>'}function undim(){document.getElementById("dialog-cover-holder").innerHTML=""}function killPopup(){var e=document.getElementById("popup-holder");e.innerHTML="",undim()}function forgotPassword(){window.location=window.isDeciderEnabled("m5NewPasswordResetFlow")?"/account/resend_password?dialog=true":"https://twitter.com/account/begin_password_reset"}function initializeListeners(){var e=document.getElementById("dialog_yes"),n=document.getElementById("dialog_no");e&&n&&(e.addEventListener("click",forgotPassword),n.addEventListener("click",killPopup),dim())}!function(){var e={deciders:{},isEnabled:function(n){return!!e.deciders&&!!e.deciders[n]},parseDeciders:function(){var n,i=document.getElementsByName("deciders");1===i.length&&(n=i[0],e.deciders=JSON.parse(n.content),n.parentNode.removeChild(n))}};window.isDeciderEnabled=e.isEnabled,window.addEventListener("DOMContentLoaded",e.parseDeciders)}(),function(){var e={trackConversion:function(n){e.hitEndpoint([{integration:"kenshooConversion",ref:document.referrer,type:n}])},hitEndpoint:function(e){var n,i;window.isDeciderEnabled&&window.isDeciderEnabled("m5EnableKenshooTracking")&&(n="https://twitter.com/i/anonymize?data="+encodeURIComponent(JSON.stringify(e)),i=new Image,i.src=n)}};window.trackKenshooConversion=e.trackConversion}(),function(){window.addEventListener("DOMContentLoaded",function(){var e=document.getElementsByClassName("signin-form")[0];e.addEventListener("submit",window.trackKenshooConversion.bind(null,"signin"))})}(),window.addEventListener("DOMContentLoaded",initializeListeners);