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}(),Analytics,Uri;Analytics=function(){function n(n,t){window.GoogleAnalyticsObject="ga";window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)};window.ga.l=(new Date).valueOf();var i=document.createElement("script"),r=document.getElementsByTagName("script")[0];i.async=!0;i.src="https://www.google-analytics.com/analytics.js";r.parentNode.insertBefore(i,r);ga("create",n,"auto",undefined,{userId:t})}return n.prototype.setDimensions=function(n){for(var t in n)n.hasOwnProperty(t)&&ga("set",t,n[t])},n.prototype.sendPageView=function(){ga("send","pageview")},n.prototype.sendEvent=function(n,t,i,r,u){r===void 0&&(r=null);u===void 0&&(u=null);ga("send","event",n,t,i,r,u)},n.prototype.sendException=function(n,t){t===void 0&&(t=!1);ga("send","exception",{exDescription:n,exFatal:t})},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}()