(function(){function r(n,t,i,r,s,h){var l=t.message,c;l=l.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"").replace(/\n/g,"");this.apikey=n;this.errordate=new Date;c=window.location.href;c=c.substr(c.indexOf("?")+1);this.querystring=c;this.useragent=window.navigator.userAgent;this.lineno=t.lineno;this.colno=t.colno;this.filename=t.filename;this.message=l;this.type=typeof s=="errorunknown"?null:s;this.trace=i;this.applicationname=ErrLog.settings.application_name;this.page=window.location.href.split("?")[0];this.browsername=window.navigator.appName;this.assemblyversion=window.navigator.appVersion;this.method=r;this.servername=window.location.host;this.browser_capabilities="";this.session_data={};this.application_data="";this.request_header="";this.request_formdata=u();this.request_cookies=f();this.custom=typeof h=="undefined"?null:h;this.environment={navigator:o(),screen:e(),location:window.location};this.languageid=2;this.packageversion="js.v2"}function u(){var u=[],f,i,r,t,n;for(f in window.document.forms){for(i=window.document.forms[f],r=[],t=0;t0&&(rt=k.join("\n"),it.message+="\n```\n"+rt);nt="No stack trace available!";b="unknown";try{b=n.message}catch(et){}if(tt=e||"errorunknown",n.error&&(n.error.trace||typeof n.error.stack!="undefined")&&(nt=JSON.stringify(n.error.stack),tt=e||"error",n.error.stack.split("\n").length>0&&(o=n.error.stack.split("\n").pop(),o.indexOf("at ")>=0&&(o=o.split("at ")[1],o.indexOf(!1&&o.indexOf(")")>=0)&&(o=o.split(" (")[0]),o.indexOf(":")>=0&&(o=o.split(":")[0])),o.length>0&&(b=o))),ut="2DB10253-5CE9-4A15-B8A1-1B1B82411A38",l=new r(ut,it,nt,b,tt,u),ErrLog.settings.key_check)for(a=0;a-1&&(l.session_data[h].value="[REDACTED]");l.page=t(i,l.page);l.applicationname=t(f,l.applicationname);y=new XMLHttpRequest;ft="https://relay.errlog.io/logcap";y.open("POST",ft,!0);y.setRequestHeader("Content-Type","application/json");y.onreadystatechange=function(){this.readyState==4&&this.status==200&&_errlog_callback(this.responseText)};y.send(s(l))}function s(n){return JSON.stringify(n)}if(typeof _errlog_callback=="undefined"&&(_errlog_callback=function(){}),window.ErrLog={settings:{application_name:window.location.hostname,key_check:!0,keys_to_exclude:["password","pwd","token","key","viewstate","aspnet","validation"],exclude_completely:!1,language_id:2,exclude_cookies:!1},logger:{log:i}},typeof ErrLogSettings!="undefined")for(var n in ErrLogSettings)n=="keys_to_exclude"&&Array.isArray(ErrLogSettings[n])&&(ErrLog.settings[n]=ErrLog.settings[n].concat(ErrLogSettings[n])),typeof ErrLog.settings[n]!="undefined"&&(ErrLog.settings[n]=ErrLogSettings[n]);window.addEventListener("error",i)})();