var updraft_restore_screen=!0;jQuery(function(p){var n,d,u,l=p("#updraftplus_ajax_restore_job_id").val(),e=p("#updraftplus_ajax_restore_action").val(),i=0,c=p("#updraftplus_ajax_restore_output"),_=p(".updraft_restore_components_list"),r=!1,f=0,g=0;function h(e,t){var r=new XMLHttpRequest,e="action="+t+"&updraftplus_ajax_restore=do_ajax_restore&job_id="+e,o=("updraft_ajaxrestore"===t&&(e+="&nonce="+updraft_credentialtest_nonce),0),n=!0,d=p("#updraftplus_ajax_restore_debug").length;r.open("POST",ajaxurl,!0),r.onprogress=function(e){if(200<=e.currentTarget.status&&e.currentTarget.status<300){if(-1!==e.currentTarget.responseText.indexOf(""+e.data.fileindex+"").replace("%s2",""+e.data.total_files+"")),"db"==e.stage&&e.data.hasOwnProperty("stage")&&("table"==e.data.stage?t.find(".updraft_component--progress").html(" — "+updraftlion.restore_db_table_progress.replace("%s",""+e.data.table+"")):"stored_routine"==e.data.stage?t.find(".updraft_component--progress").html(" — "+updraftlion.restore_db_stored_routine_progress.replace("%s",""+e.data.routine_name+"")):"finished"==e.data.stage?t.find(".updraft_component--progress").html(" — "+updraftlion.finished):"begun"==e.data.stage&&t.find(".updraft_component--progress").html(" — "+updraftlion.begun+"...")),d!==u&&(d&&((r=_.find("[data-component="+d+"]")).find(".updraft_component--progress").html(""),r.removeClass("active").addClass("done")),"finished"==u?(t.addClass("done"),_.find("[data-component]").each(function(e,t){($el=p(t)).is(".done")||$el.addClass("error")}),e.data.hasOwnProperty("actions")&&"object"==typeof e.data.actions&&(r=e.data.urls,a=function(e){p.isEmptyObject(e)||(p(".updraft_restore_result").before(updraftlion.ajax_restore_404_detected),p.each(e,function(e,t){p(".updraft_missing_pages").append("