function Be(a,b){u.assert(window.console&&window.console.log,"Safari console logger not installed");Be.vG||(Be.vG=u.Ve,u.Ve=Be.XT);this.Init(a,b)}m("AdfSafariLogWriter",Be);r.v(Be,qa);Be.prototype.Init=function(a,b){Be.h.Init.call(this,a,b);this.sn=b};r.a("AdfSafariLogWriter.prototype.Init",{Init:Be.prototype.Init});
Be.prototype.md=function(a){this.ug();u.assert(a,"null logRecord");try{var b=a[Jc.Pv],d=window.console,e=a[Jc.kt],f=e>=v.SEVERE?d.error:e>=v.WARNING?d.warn:e>=v.INFO?d.info:d.debug,g=a[Jc.qw],h=this.Tv(a[Jc.dn]);b?f.call(d,"Message:"+g+"\nError:"+b+"\nWhen: "+h):f.call(d,"Message:"+g+"\nWhen:"+h)}catch(l){this.qB(l,"Error publishing AdfLogRecord")}};r.a("AdfSafariLogWriter.prototype.PublishImpl",{md:Be.prototype.md});Be.prototype.qB=function(a,b){u.s(a,Error);this.sn.$g(new Jc(v.WARNING,b,a))};
Be.prototype.flush=function(){Be.h.flush.call(this)};r.a("AdfSafariLogWriter.prototype.flush",{flush:Be.prototype.flush});Be.prototype.close=function(){Be.h.close.call(this)};r.a("AdfSafariLogWriter.prototype.close",{close:Be.prototype.close});
Be.XT=function(a,b,d){try{var e=window.console;if(e&&e.group&&e.groupEnd&&e.trace){var f=a,f=null==f?"":f+" ",g="Assertion %sfailed ",f=[null,f];null!=d&&(g+=" because %s ",f[2]=d);f[0]=g+"at:";e.group.apply(e,f);e.trace();e.groupEnd()}}catch(h){}return Be.vG(a,b+1,d)};