if(void 0===MMONIT||!MMONIT)var MMONIT={};MMONIT.error=function(){var e=this;return e.ishidden=!0,e.$container=$('<div id="MMonitError" class="hide modal fade" tabindex="-1" role="dialog">  <div class="modal-body">    <h2 class="text-error" id="myModalLabel">Error</h2>    <p></p>  </div>  <div class="modal-footer">    <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>  </div></div>').appendTo("body"),{show:function(o){let t=e.$container.find(".modal-body p");t&&(t.text(o),(e.ishidden||"true"===e.$container.attr("aria-hidden"))&&(e.ishidden=!1,e.$container.modal("show")))},hide:function(){e.$container.modal("hide"),e.ishidden=!0},ishidden:function(){return e.ishidden},abort:function(e){throw MMONIT.error.show(e),e},json:function(e,o,t,r){var s;if("abort"!==o){if("timeout"===o)s="Request timed out";else if("parsererror"===o)s="JSON response parse error",e.responseText&&e.responseText.indexOf("z_password")>0&&(window.location=document.location);else if(0===e.status)s="Connection failed";else if(403==e.status)s="Access denied";else if(404==e.status)s="Page not found";else try{var i=$.parseJSON(e.responseText);i&&(s=i.error)}catch(o){e.responseText&&e.responseText.indexOf("z_password")>0?window.location=document.location:s=e.responseText}console.log(s),r?r.showTableMessage($("<div/>").text(s).html()):MMONIT.error.show(s)}else console.log("AJAX request aborted")}}}(),MMONIT.assert=function(e){if(void 0===e||!e)throw MMONIT.error.show("Assert failed: "+e.toString()),"Assert failed:"+e.toString()};