var pmc_ajax=pmc_ajax||{get:function(e){return e.type="GET",this.submit(e)},post:function(e){return e.type="POST",this.submit(e)},submit:function(t){var e="/";if("undefined"==typeof pmc_ajax_options||void 0===window.XMLHttpRequest||void 0===t.action||""==t.action||void 0===t.type)return!1;if(t.data={},void 0!==t.args)switch(t.type){case"GET":for(name in t.cache=!0,t.args)e+=name+"-"+encodeURIComponent(t.args[name])+"/";break;case"POST":t.data=t.args;break;default:return!1}var a=pmc_ajax_options.ajax_url;if(void 0!==t.scheme){switch(t.scheme){case"https":a=pmc_ajax_options.ajax_url_https;break;case"http":a=pmc_ajax_options.ajax_url_http}delete t.scheme}if(t.url=a+t.action.replace(/\//g,"-")+e,delete t.action,void 0!==t.cache&&!1===t.cache)try{var r=(new Date).getTime();t.url+="?_="+r}catch(e){}var s=new XMLHttpRequest;return s.open(t.type,t.url,!0),s.onreadystatechange=()=>{var e;XMLHttpRequest.DONE===s.readyState&&(0===(e=s.status)||200<=e&&e<400?t.success(JSON.parse(s.responseText)):t.hasOwnProperty("error")&&t.error(JSON.parse(s.responseText)))},s.send(t.data),!0}};