function Id(a,b){u.assert(window.console&&window.console.firebug,"Firebug not installed");Id.vG=u.Ve;u.Ve=Id.XT;this.Init(a,b)}m("AdfFireBugLogWriter",Id);r.v(Id,qa);Id.prototype.Init=function(a,b){Id.h.Init.call(this,a,b);this.BF=Id.Bza?new ra(a,b):null};r.a("AdfFireBugLogWriter.prototype.Init",{Init:Id.prototype.Init});
Id.prototype.md=function(a){this.ug();u.assert(a,"null logRecord");var b=this.BF,d=a[Jc.Pv];if(d&&b)b.$g(a);else{var b=window.console,e=a[Jc.kt],e=e>=v.SEVERE?b.error:e>=v.WARNING?b.warn:e>=v.INFO?b.info:b.debug,f;f=a[Jc.qw];if(null==f)f=null;else if(u.J(f),!(100>=f.length)){f=f.split("\n");for(var g=[],h=f.length,l=0;l<h;l++){var n=0,t=f[l],y=t.length;if(100>y)g.push(t);else for(;n<y;){var z=n+100,B=t.lastIndexOf(" ",z),F=t.lastIndexOf("\t",z);F>B&&(B=F);B<n?(B=z,z=0):z=1;g.push("\t"+t.substring(n,
B));n=B+z}}f=g.join("\n")}a=a[Jc.dn];d?e.call(b,"Message:%s\nError:%o\nWhen:%o",f,d,a):e.call(b,"Message:%s\nWhen:%o",f,a)}};r.a("AdfFireBugLogWriter.prototype.PublishImpl",{md:Id.prototype.md});Id.prototype.flush=function(){Id.h.flush.call(this);var a=this.BF;a&&a.flush()};r.a("AdfFireBugLogWriter.prototype.flush",{flush:Id.prototype.flush});Id.prototype.close=function(){Id.h.close.call(this);var a=this.BF;a&&a.close()};r.a("AdfFireBugLogWriter.prototype.close",{close:Id.prototype.close});
Id.XT=function(a,b,d){var e=window.console;if(e){var f="Assertion %sfailed ",g=[null,null==a?"":a+" "];null!=d&&(f+=" because %s ",g[2]=d);g[0]=f+"at:";e.group.apply(e,g);e.trace();e.groupEnd()}Id.vG(a,b+1,d)};Id.Bza=!0;m("AdfFireBugLogWriter.WRITE_ERRORS_TO_CONSOLE",Id.Bza);