!function(e){e(function(){var s,a;if(!themeMyLogin.action)return;switch(s=e("#user_login"),themeMyLogin.action){case"activate":(a=e("#key")).length&&a.focus();break;case"lostpassword":case"retrievepassword":case"register":s.focus();break;case"resetpass":case"rp":e("#pass1").focus();break;case"login":-1!=themeMyLogin.errors.indexOf("invalid_username")&&s.val(""),s.val()?e("#user_pass").focus():s.focus()}})}(jQuery),function(e){function s(){var s=e("#pass1").val(),a=e("#pass-strength-result");if(a.removeClass("short bad good strong"),s)switch(wp.passwordStrength.meter(s,wp.passwordStrength.userInputBlacklist(),s)){case-1:a.addClass("bad").html(pwsL10n.unknown);break;case 2:a.addClass("bad").html(pwsL10n.bad);break;case 3:a.addClass("good").html(pwsL10n.good);break;case 4:a.addClass("strong").html(pwsL10n.strong);break;case 5:a.addClass("short").html(pwsL10n.mismatch);break;default:a.addClass("short").html(pwsL10n.short)}else a.html("&nbsp;")}e(document).ready(function(){e("#pass1").val("").on("keyup paste",s)})}(jQuery);