var Modal=function(){function n(t,i){var r=this,u,f,e;i===void 0&&(i=!1);this.$modal=$(t);this.$modal.on("shown.bs.modal",function(n){r.center(n)}).on("shown.bs.modal",".modal",function(){var n=1040+10*$(".modal:visible").length;$(this).css("z-index",n);setTimeout(function(){$(".modal-backdrop").not(".modal-stack").css("z-index",n-1).addClass("modal-stack")},0)});$(window).on("resize",function(n){r.center(n)});if(i){this.$modal.on("hidden.bs.modal",function(){r.$modal.remove();r.$container.remove()});this.$modal.attr("data-remove-on-hide","true")}this.$modal.on("hidden.bs.modal",n.handleBodyClass);u=this.$modal.attr("id");this.$container=$("#".concat(u,"-Container"));this.$container.length?(f=this.$container.find(".modal"),e=f.data("remove-on-hide"),f.modal("hide"),e===!0&&(this.$container=this.appendContainer(u))):this.$container=this.appendContainer(u);this.$modal.appendTo(this.$container)}return n.prototype.appendContainer=function(n){var t=$('<div id="'.concat(n,'-Container">'));return t.appendTo($("body")),t},n.prototype.show=function(){this.$modal.modal("show")},n.prototype.hide=function(){this.$modal.modal("hide")},n.prototype.center=function(){this.$modal.css("display","block");var n=this.$modal.find(".modal-dialog"),t=this.$modal.find(".modal-body"),i=$("body").outerWidth()-$("body").width(),r=($(window).width()-t.width())/2-i,u=this.$modal.attr("data-yOffset")||($(window).height()-n.height())/2;n.css("margin-left",r);n.css("margin-top",u)},n.handleBodyClass=function(){$(".modal:visible").length?$("body").addClass("modal-open"):$("body").css("padding-right",0)},n}(),Uri=function(){function n(){}return n.getParameterByName=function(n){var r=window.location.href,i,t;return(n=n.replace(/[\[\]]/g,"\\$&"),i=new RegExp("[?&]".concat(n,"(=([^&#]*)|&|#|$)")),t=i.exec(r),!t)?null:t[2]?decodeURIComponent(t[2].replace(/\+/g," ")):""},n}()