if("undefined"===typeof DEBUG){var DEBUG=!1;0<document.URL.indexOf("debug")&&(DEBUG=!0)}if("undefined"===typeof COMPRESSEDJS){var COMPRESSEDJS="localhost"!==window.location.hostname&&8080!=window.location.port&&!DEBUG;0<document.URL.indexOf("compressed")&&(COMPRESSEDJS=!0)}if(!DEBUG)var logConfig={"default":"error"};function isA(a,b){return a instanceof b?!0:a&&objectHasMethod(a,"isA")?a.isA(b):!1}function isObject(a){return a&&"object"===typeof a}
function isRealObject(a){return null!=a&&"object"==typeof a&&"undefined"==typeof a.length}function isArray(a){return"[object Array]"===Object.prototype.toString.apply(a)}function isDate(a){return"undefined"!=typeof Ext?Ext.isDate(a):"[object Date]"===Object.prototype.toString.apply(a)}
function isEmpty(a){if(null===a||void 0===a)return!0;var b=typeof a;if("boolean"===b)return!a;if("string"===b)return a=a.trim(),""===a||"0"===a;if("number"===b)return 0===a;if("function"===b)return!1;if("object"===b){if(isArray(a))return 0==a.length;for(var c in a)return!1;return!0}throw Error("Unsupported js data type: "+b);}function isNothing(a,b){return"undefined"==typeof a[b]?!0:null==a[b]}
function objectContainsField(a,b){if("undefined"!=typeof a[b])return!0;for(var c in a)if(b==c)return!0;return!1}function getObjectProperty(a,b,c){return"undefined"!=typeof a[b]?a[b]:c}function objectHasMethod(a,b){return"function"==typeof a[b]}Array.prototype.appendAll=function(a){if(!Ext.isArray(a))throw Error("Given param is not an array!");for(var b=0;b<a.length;b++)this[this.length]=a[b];return this};Array.prototype.contains=function(a){for(var b=0;b<this.length;b++)if(this[b]==a)return!0;return!1};
Array.prototype.removeRange=function(a,b){var c=this.slice((b||a)+1||this.length);this.length=0>a?this.length+a:a;return this.push.apply(this,c)};Array.prototype.removePos=function(a){return this.removeRange(a)};if(!Array.prototype.filter)Array.prototype.filter=function(a,b){var c=this.length;if("function"!=typeof a)throw new TypeError;for(var d=[],e=0;e<c;e++)if(e in this){var f=this[e];a.call(b,f,e,this)&&d.push(f)}return d};
if("undefined"===typeof Array.prototype.unshift)Array.prototype.unshift=function(){this.reverse();for(var a=arguments,b=a.length;b--;)this.push(a[b]);this.reverse();return this.length};if(String.prototype.limit)throw Error("Someone overrode our custom String.prototype.limit! Included any new library lately?");String.prototype.limit=function(a,b){if(this.length<=a)return this;"undefined"==typeof b&&(b="...");return this.substr(0,a-b.length)+b};
if(!String.prototype.trim)String.prototype.trim=function(){var a=/^\s+|\s+$/g;return function(){return this.replace(a,"")}}();if(!String.prototype.startsWith)String.prototype.startsWith=function(a){return 0===this.indexOf(a)};if(!String.prototype.endsWith)String.prototype.endsWith=function(a){var b=this.length-a.length;return 0>b?!1:this.lastIndexOf(a,b)==b};if(!String.prototype.contains)String.prototype.contains=function(a){return-1!=this.indexOf(a)};
if(!String.prototype.replaceAll)String.prototype.replaceAll=function(a,b){for(var c=this,d=c.indexOf(a);-1!=d;)c=c.replace(a,b),d=c.indexOf(a);return c};if(!String.prototype.toBoolean)String.prototype.toBoolean=function(){return/^true$/i.test(this)};Date.prototype.ageLastBirthday=function(a){var b=this.getFullYear(),c=a.getFullYear(),a=new Date(a);a.setFullYear(b);return b-c-(0>this-a?1:0)};function getNextUid(a){return("undefined"!=typeof a?a:"")+""+getNextUid._uidPos++}getNextUid._uidPos=0;
Number.prototype.formatMoney=function(a,b,c){var d=this,a=isNaN(a=Math.abs(a))?2:a,b=void 0==b?",":b,c=void 0==c?".":c,e=0>d?"-":"",f=parseInt(d=Math.abs(+d||0).toFixed(a))+"",g=3<(g=f.length)?g%3:0;return e+(g?f.substr(0,g)+c:"")+f.substr(g).replace(/(\d{3})(?=\d)/g,"$1"+c)+(a?b+Math.abs(d-f).toFixed(a).slice(2):"")};
function loadCss(a,b){b=b||"always";if(!("debug"==b.toLowerCase()&&!DEBUG||"develop"==b.toLowerCase()&&COMPRESSEDJS))if(!("release"==b.toLowerCase()&&(!COMPRESSEDJS||DEBUG))){for(var c=document.getElementsByTagName("link"),d=0;d<c.length;d++){var e=c[d];if(e.href.substring(e.href.length-a.length)===a){DEBUG&&log("Omitting file because it's loaded already: "+a,!1);return}}-1!=navigator.userAgent.indexOf("Gecko")&&-1==navigator.userAgent.indexOf("Konqueror")&&!navigator.standalone&&-1==navigator.userAgent.indexOf("Safari")?
(c=document.createElement("link"),c.rel="stylesheet",c.type="text/css",document.getElementsByTagName("head")[0].appendChild(c),c.href=a):document.writeln('<link rel="stylesheet" type="text/css" href="'+a+'" />')}}
function loadJs(a,b){b=b||"always";if(!("debug"==b.toLowerCase()&&!DEBUG||"develop"==b.toLowerCase()&&COMPRESSEDJS))if(!("release"==b.toLowerCase()&&(!COMPRESSEDJS||DEBUG))){for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var e=c[d];if(e.src.substring(e.src.length-a.length)===a){DEBUG&&log("Omitting file because it's loaded already: "+a,!1);return}}loadJsAsync()?loadJsDom(a):document.writeln('<script type="text/javascript" src="'+a+'"><\/script>')}}
function createStyleSheet(a,b){var c;c=document.getElementsByTagName("html")[0];var d=document.createElement("style");d.setAttribute("type","text/css");b&&d.setAttribute("id",b);if(Ext.isIE)c.appendChild(d),c=d.styleSheet,c.cssText=a;else{try{d.appendChild(document.createTextNode(a))}catch(e){d.cssText=a}c.appendChild(d);c=d.styleSheet?d.styleSheet:d.sheet||document.styleSheets[doc.styleSheets.length-1]}return c}
function loadJsAsync(){if(void 0===loadJsAsync.prototype.loadAsync){var a=navigator.userAgent;loadJsAsync.prototype.loadAsync=-1!=a.indexOf("Gecko")&&-1==a.indexOf("Konqueror")&&!navigator.standalone&&-1==a.indexOf("Safari");if(a.contains("Firefox"))if(a=getFirefoxMajorVersion(a),null===a||4<=a)loadJsAsync.prototype.loadAsync=!1;else if(4>a)loadJsAsync.prototype.loadAsync=!0}return loadJsAsync.prototype.loadAsync}loadJsAsync.prototype.loadAsync=void 0;
function getFirefoxMajorVersion(a){return(a=a.match(/.*?Firefox\/(\d*)?\..*/))&&2==a.length&&/^\d*$/.test(a[1])?parseInt(a[1]):null}function loadJsDom(a,b){var c=document.createElement("script"),d=document.getElementsByTagName("head").item(0);c.setAttribute("type","text/javascript");if(b){var e=!1,f=function(){e||(e=!0,b.handleSuccess())};c.onreadystatechange=function(){"complete"==this.readyState&&f()};c.onload=f}c.setAttribute("src",a);d.appendChild(c)}
function log(a,b){"undefined"!=typeof console?console.log(a):"undefined"!=typeof Ext&&"function"==typeof Ext.log?Ext.log(dump(a)):b&&!0===b&&alert(dump(a))}function trace(){"undefined"!=typeof console&&objectHasMethod(console,"trace")&&console.trace(arguments)}function dump(a,b,c){var d=_dump_quickCheck(a);if(d)return d;d=[];"undefined"==typeof c&&(c=20);_dump_recursive(d,a,b,c);return d.join("")}
function _dump_recursive(a,b,c,d,e){if(!(e>d)){e||(e=0);"undefined"==typeof c&&(c=!1);for(var f="",g=0;g<e;g++)f+="    ";if("object"==typeof b){if(!_dump_handleSpecial(b,a,f,null))for(var h in b)if(g=b[h],"object"==typeof g){if(!_dump_handleSpecial(g,a,f,h)){var i=isArray(g)?"array":"object";a[a.length]=f+"'"+h+"' ("+i+") ...\n";_dump_recursive(a,g,c,d,e+1)}}else if(c||"function"!=typeof g)a[a.length]=f+"'"+h+"' => \""+g+'" ('+typeof g+")\n"}else a[a.length]=f+"===>"+b+"<===("+typeof b+")"}}
function _dump_handleSpecial(a,b,c,d){a=_dump_quickCheck(a);if(null===a)return!1;d&&(b[b.length]=c+"'"+d+"' => ");b[b.length]=a+"\n";return!0}function _dump_quickCheck(a){return null===a?"(null)":void 0===a?"(undefined)":isDate(a)?a.toGMTString():"undefined"!=typeof a._ordinal&&"undefined"!=typeof a._name?a.toString()+" (enum)":null}function getFunctionName(a){if("function"==typeof a||"object"==typeof a)var b=(""+a).match(/function\s*([\w\$]*)\s*\(/);return null!==b?b[1]:""}
function getUrlParameter(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");a=RegExp("[\\?&]"+a+"=([^&#]*)").exec(window.location.href);return null==a?"":a[1]}loadJs("/js/logConfig.js","debug");loadJs("/js/logConfig.local.js","debug");
