function ta(a,b){this.Init(a,b)}v("AdfConsoleLogWriter",ta);z.l(ta,sa);ta.prototype.Init=function(a,b){B.zc(a);B.J(b,sa);ta.f.Init.call(this);this.n_a=a;this.Rm=b;this.Cl=[];this.rN=[Bc.ht,Bc.$v,Bc.mw,Bc.Mv];var d={};d[Bc.ht]="FormatLevel";d[Bc.$v]="FormatMessage";d[Bc.mw]="FormatWhen";d[Bc.Mv]="FormatError";this.eVa=d;this.Jt=n};z.a("AdfConsoleLogWriter.prototype.Init",{Init:ta.prototype.Init});
ta.prototype.jg=function(a){this.ng();B.assert(a,"null logRecord");this.Cl.push(a);var b=this.iy();try{if((!b||b(a))&&!this.dN){this.dN=l;try{var d=this.Jt;if(d){var e=Cc(this,a),f=d.document.getElementById("consoleLogRecords");f.insertBefore(e,f.firstChild)}else{var g;try{g=window.open("about:blank","Console","width\x3d700,height\x3d250,resizable\x3d1,scrollbars\x3d1,dependent\x3d1"),this.B8()}catch(h){this.bH(h,"Error opening ConsoleWindow")}if(g){var m=g.document;m.open();m.write("\x3chtml\x3e   \x3chead\x3e     \x3ctitle\x3eConsole Log\x3c/title\x3e     \x3cstyle\x3e       label,button,th,td,input {font-size:10pt;font-family:Arial;}       .resultsTable {position:relative; width:100%; margin:0px}       .resultsTable th {border:solid black 1px; background-color:silver; margin:0px}       .resultsTable td {border:solid black 1px; margin:0px}     \x3c/style\x3e     \x3cscript\x3e     function viewSource(url, fileName, lineNumber)     {       var windowName \x3d fileName.split(\".\")[0];       window.lineNumber \x3d lineNumber;       window.windowName \x3d windowName;       window.viewerWindow \x3d window.open(url, windowName);       window.viewerWindow.onload \x3d sourceLoaded;       return;     }     function sourceLoaded()     {       try       {         var windowName \x3d window.windowName;         var lineNumber \x3d window.lineNumber;         var viewerDoc \x3d window.viewerWindow.document;         viewerDoc.title \x3d windowName + \" @ \" + lineNumber;        var viewerMarginTop \x3d 10;         var viewerSrc \x3d viewerDoc.body.firstChild;         viewerSrc.style.position \x3d \"absolute\";         viewerSrc.style.zIndex \x3d \"2\";         viewerSrc.style.top \x3d \"0px\";         viewerSrc.style.marginTop \x3d viewerMarginTop + \"px\";         viewerSrc.style.lineHeight \x3d \"16px;\";         var samplePre \x3d viewerDoc.createElement(\"pre\");         samplePre.style.width \x3d viewerSrc.offsetWidth + \"px\";         samplePre.style.position \x3d \"absolute\";         samplePre.style.zIndex \x3d \"1\";         samplePre.style.top \x3d \"0px\";         samplePre.style.marginTop \x3d \"0px\";         samplePre.style.marginBottom \x3d \"0px\";         samplePre.style.lineHeight \x3d \"16px;\";         samplePre.appendChild(document.createTextNode(\" \"));         viewerDoc.body.appendChild(samplePre);         var lineHeight \x3d samplePre.offsetHeight;         /* sometimes Gecko needs -1 and sometimes -2, unsure why right now */         var targetLineTop \x3d lineHeight * (lineNumber - 1);         /* doubling the height since it could be either of the two lines */         samplePre.style.lineHeight \x3d \"32px;\";         samplePre.style.marginTop \x3d viewerMarginTop + \"px\";         samplePre.style.top \x3d targetLineTop + \"px\";         samplePre.style.backgroundColor \x3d \"#EFEFEF\";         var anchorName \x3d \"line\" + lineNumber;         var anchor \x3d viewerDoc.createElement(\"a\");         anchor.name \x3d anchorName;         anchor.style.position \x3d \"absolute\";         anchor.style.zIndex \x3d \"0\";         anchor.style.top \x3d Math.max(0, targetLineTop - 150) + \"px\";         viewerDoc.body.appendChild(anchor);         window.viewerWindow.location \x3d \"#\" + anchorName;       }       catch (problem)       {         /* do nothing */;       }     }     \x3c/script\x3e   \x3c/head\x3e   \x3cbody style\x3d'width:100%;height:100%;padding:0px;margin:0px;overflow:hidden' onunload\x3d'window.logWriter.__windowUnloaded()' onresize\x3d'window.logWriter.__windowResized()'\x3e     \x3cbutton onclick\x3d'window.logWriter.clear();return false;'\x3eClear\x3c/button\x3e    \x3cbr\x3e    \x3ctable width\x3d'100%'\x3e\x3ctbody\x3e\x3ctr\x3e\x3ctd align\x3d'right'\x3e\x3clabel for\x3d'evalInput'\x3eEval:\x3c/label\x3e\x3c/td\x3e\x3ctd width\x3d'100%'\x3e\x3cinput id\x3d'evalInput' type\x3d'text' onkeypress\x3d'if (event.keyCode\x3d\x3d13){window.logWriter.__handleEvaluate(this.value);}' style\x3d'position:relative; width:100%'\x3e\x3c/input\x3e\x3c/td\x3e\x3c/tr\x3e     \x3ctr\x3e\x3ctd align\x3d'right' valign\x3d'top'\x3e\x3clabel for\x3d'filterInput'\x3eFilter:\x3c/td\x3e\x3ctd width\x3d'100%'\x3e\x3ctextarea id\x3d'filterInput' rows\x3d'2' style\x3d'position:relative; width:100%' onchange\x3d'window.logWriter.updateFilter(this.value)'\x3e\x3c/textarea\x3e\x3c/label\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e     \x3cdiv id\x3d'recordDiv' style\x3d'position:relative; width:100%; height:200px; overflow:scroll;'\x3e       \x3ctable class\x3d'resultsTable'\x3e         \x3cthead id\x3d'columnHeaders'\x3e         \x3c/thead\x3e         \x3ctbody id\x3d'consoleLogRecords'\x3e         \x3ctbody\x3e         \x3ctfoot\x3e\x3ctr\x3e\x3ctd style\x3d'height:100%'\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/tfoot\x3e       \x3c/table\x3e     \x3c/div\x3e   \x3c/body\x3e \x3c/html\x3e");
m.close();g.logWriter=this;d=g}else this.bH(n,"Popup blocker prevented opening of ConsoleWindow"),d=k;this.Jt=d;var q=Dc(this).getElementById("columnHeaders"),s=q.firstChild;s&&q.removeChild(s);q.appendChild(Ec(this));this.M3()}}finally{this.dN=p}}}catch(y){this.bH(y,"Error publishing AdfLogRecord")}};z.a("AdfConsoleLogWriter.prototype.publish",{jg:ta.prototype.jg});
ta.prototype.close=function(){ta.f.close.call(this);if(this.Jt){try{this.Jt.document.body.onunload=n}catch(a){}this.Jt.close();this.Jt=n}};z.a("AdfConsoleLogWriter.prototype.close",{close:ta.prototype.close});ta.prototype.km=function(a){var b=this.iy();a!=b&&(ta.f.km.call(this,a),Fc(this),Gc(this))};z.a("AdfConsoleLogWriter.prototype.setFilter",{km:ta.prototype.km});ta.prototype.clear=function(){this.Cl=[];Fc(this)};z.a("AdfConsoleLogWriter.prototype.clear",{clear:ta.prototype.clear});
ta.prototype.oq=function(a){a=a.replace(/</g,"\x26lt;");a=a.replace(/>/g,"\x26gt;");return a=a.replace(/\n/g,"\x3cbr\x3e")};z.a("AdfConsoleLogWriter.prototype.FormatMessage",{oq:ta.prototype.oq});
ta.prototype.rz=function(a){if(!a)return"";var b="",d=l,e;for(e in a)if(e!=e.toUpperCase())try{var f=a[e];if("function"!=typeof f){var g=f;if("stack"==e&&"string"==typeof f){for(var g="\x3col\x3e",h=ta.eKa,m;m=f.match(h);){var g=g+"\x3cli\x3e",q=m[0],s=-1,y=q.lastIndexOf(":");-1!=y&&(s=q.lastIndexOf("@"));if(-1!=s){s++;var g=g+q.substring(0,s),A=q.substring(s,y),s=A,C=A.lastIndexOf("/");-1!=C&&(s=A.substring(C+1));var G="target\x3d'_blank'",K="?";-1!=y&&(K=q.substring(y+1),0<A.length&&(ta.aLa&&-1!=
navigator.userAgent.toLowerCase().indexOf("gecko"))&&(G="",A="javascript:viewSource('"+A+"','"+s+"',"+K+")"));g+="\x3ca "+G+' href\x3d"'+A+'"\x3e';g+=s+"\x3c/a\x3e Line: "+K}else g+=q;g+="\x3c/li\x3e";f=f.substring(q.length)}g+="\x3c/ol\x3e"}d?(b+="\x3cb\x3e",d=p):b+="\x3cbr\x3e\x3cb\x3e";b+=e+":\x3c/b\x3e"+g}}catch(N){}return b};z.a("AdfConsoleLogWriter.prototype.FormatError",{rz:ta.prototype.rz});
function Gc(a){for(var b=Dc(a).getElementById("consoleLogRecords"),d=a.Cl,e=a.iy(),f=d.length-1;0<=f;f--){var g=d[f];try{if(!e||e(g)){var h=Cc(a,g);b.appendChild(h)}}catch(m){a.bH(m,"Error displaying AdfLogRecord")}}}function Fc(a){var b=Dc(a);B.assert(b);var d=b.getElementById("consoleLogRecords");B.p(d);a=d.parentNode;var e=d.nextSibling;a.removeChild(d);b=b.createElement("tbody");b.id="consoleLogRecords";a.insertBefore(b,e)}
function Ec(a){var b=Dc(a),d=b.createElement("tr");a=a.rN;for(var e=a.length,f=0;f<e;f++){var g=a[f],h=b.createElement("th");h.innerHTML=g;d.appendChild(h)}return d}function Cc(a,b){for(var d=Dc(a),e=d.createElement("tr"),f=a.eVa,g=a.rN,h=g.length,m=0;m<h;m++){var q=g[m],s=b[q],y=d.createElement("td");y.vAlign="top";if(s&&(s=(q=f[q])?a[q](s):""+s))y.innerHTML=s;e.appendChild(y)}return e}function Dc(a){return(a=a.Jt)?a.document:n}
ta.prototype.bH=function(a,b){B.Vi(a,Error);this.Rm.jg(new Bc(D.WARNING,b,a))};ta.prototype.Wra=function(a){var b=this.n_a;"function"!=typeof b.execScript&&(b.execScript=new Function("evalString","return eval(evalString);"));var d;try{var e=b.execScript(a);d=new Bc(D.INFO,a+"\x3d"+e)}catch(f){d=new Bc(D.INFO,"Error evaulating:"+a,f)}this.jg(d)};z.a("AdfConsoleLogWriter.prototype.__handleEvaluate",{Wra:ta.prototype.Wra});ta.prototype.B8=function(){var a=this.Jt;a&&(this.Jt=a.logWriter=n)};
z.a("AdfConsoleLogWriter.prototype.__windowUnloaded",{B8:ta.prototype.B8});ta.prototype.A8=function(){var a=Dc(this),b=Dc(this).getElementById("recordDiv");B.p(b);a=a.documentElement;B.p(a);var d=a.clientHeight;0==d&&(d=a.offsetHeight);a=d-b.offsetTop;0<=a&&(b.style.height=a+"px")};z.a("AdfConsoleLogWriter.prototype.__windowResized",{A8:ta.prototype.A8});ta.prototype.M3=function(){Dc(this).getElementById("evalInput").focus();Gc(this);this.A8()};z.a("AdfConsoleLogWriter.prototype.HandleOnLoad",{M3:ta.prototype.M3});
ta.eKa=/\w*\([^\)]*\)@[^\s]*:\d+\s/;ta.aLa=l;