console===void 0&&(console={}),console.log===void 0&&(console.log=function(){return!0});var replaceForbChars_inner=function(n){var t=n.val();t=t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),n.val(t)},showForbChars_inner=function(n){var t=n.val();t=t.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"),n.val(t)},ReplaceForbidenChars=function(){$("form").each(function(){var n=$(this);n.unbind().on("submit",function(){var t=$(this);t.valid()&&(t.find("input:text").each(function(){replaceForbChars_inner($(this))}),t.find("textarea").each(function(){replaceForbChars_inner($(this))}))})})};$(document).ready(function(){var n=parseInt($("#all").css("min-width"),10)+64;$.fn.SetPageMinWidth=function(t){var i=$("#left","#all").width();t<n&&(t=n),$("#all").width()<=t+i+30&&t+i>n&&($("#all").css("min-width",t+i+30),$("#right","#all").css("min-width",t))},$.fn.RefreshTables=function(){var n=0;$("table","#content").each(function(){var t=$(this).width();t>n&&(n=t)}),$(this).SetPageMinWidth(n)};$(window).on("resize",function(){$(document).RefreshTables()});$(this).RefreshTables()}),Array.prototype.filter||(Array.prototype.filter=function(n){"use strict";var i,f,u,e,t,r;if(this===void 0||this===null)throw new TypeError;if(i=Object(this),f=i.length>>>0,typeof n!="function")throw new TypeError;for(u=[],e=arguments[1],t=0;t<f;t++)t in i&&(r=i[t],n.call(e,r,t,i)&&u.push(r));return u}),Array.prototype.foreach||(Array.prototype.foreach=function(n){"use strict";var i,u,f,t,r;if(this===void 0||this===null)throw new TypeError;if(i=Object(this),u=i.length>>>0,typeof n!="function")throw new TypeError;for(f=arguments[1],t=0;t<u;t++)t in i&&(r=i[t],n.call(f,r,t,i))}),Array.prototype.remove||(Array.prototype.remove=function(n){"use strict";var i,u,t,r;if(this===void 0||this===null)throw new TypeError;for(i=Object(this),u=i.length>>>0,t=0;t<u;t++)t in i&&(r=i[t],r===n&&i.splice(t,1))}),Array.prototype.removeAtPos||(Array.prototype.removeAtPos=function(n,t){"use strict";if(this===void 0||this===null)throw new TypeError;t===void 0&&(t=1),t>>>0;var i=Object(this);i.splice(n,t)}),Array.prototype.any||(Array.prototype.any=function(n){"use strict";var i,u,f,t,r;if(this===void 0||this===null)throw new TypeError;if(i=Object(this),u=i.length>>>0,typeof n!="function")throw new TypeError;for(f=arguments[1],t=0;t<u;t++)if(t in i&&(r=i[t],n.call(f,r,t,i)))return!0;return!1}),Array.prototype.all||(Array.prototype.all=function(n){"use strict";var i,u,f,t,r;if(this===void 0||this===null)throw new TypeError;if(i=Object(this),u=i.length>>>0,typeof n!="function")throw new TypeError;for(f=arguments[1],t=0;t<u;t++)if(t in i&&(r=i[t],n.call(f,r,t,i)))return!1;return!0}),String.prototype.format||(String.prototype.format=function(){var n=arguments;return this.replace(/{(\d+)}/g,function(t,i){return typeof n[i]!="undefined"?n[i]:t})}),String.format||(String.format=function(n){var t=Array.prototype.slice.call(arguments,1);return String.prototype.format.apply(n,t)})