UNPKG

browserchannel

Version:
2,040 lines 69.5 kB
(function(){ var f, aa = aa || {}, l = this; function ba(a) { a = a.split("."); for (var b = l, c;c = a.shift();) { if (null != b[c]) { b = b[c]; } else { return null; } } return b; } function ca() { } function da(a) { var b = typeof a; if ("object" == b) { if (a) { if (a instanceof Array) { return "array"; } if (a instanceof Object) { return b; } var c = Object.prototype.toString.call(a); if ("[object Window]" == c) { return "object"; } if ("[object Array]" == c || "number" == typeof a.length && "undefined" != typeof a.splice && "undefined" != typeof a.propertyIsEnumerable && !a.propertyIsEnumerable("splice")) { return "array"; } if ("[object Function]" == c || "undefined" != typeof a.call && "undefined" != typeof a.propertyIsEnumerable && !a.propertyIsEnumerable("call")) { return "function"; } } else { return "null"; } } else { if ("function" == b && "undefined" == typeof a.call) { return "object"; } } return b; } function m(a) { return "array" == da(a); } function ea(a) { var b = da(a); return "array" == b || "object" == b && "number" == typeof a.length; } function n(a) { return "string" == typeof a; } function fa(a) { return "function" == da(a); } var ga = "closure_uid_" + (1E9 * Math.random() >>> 0), ha = 0; function ia(a, b, c) { return a.call.apply(a.bind, arguments); } function ja(a, b, c) { if (!a) { throw Error(); } if (2 < arguments.length) { var d = Array.prototype.slice.call(arguments, 2); return function() { var c = Array.prototype.slice.call(arguments); Array.prototype.unshift.apply(c, d); return a.apply(b, c); }; } return function() { return a.apply(b, arguments); }; } function p(a, b, c) { p = Function.prototype.bind && -1 != Function.prototype.bind.toString().indexOf("native code") ? ia : ja; return p.apply(null, arguments); } var q = Date.now || function() { return+new Date; }; function s(a, b) { function c() { } c.prototype = b.prototype; a.pa = b.prototype; a.prototype = new c; a.Hc = function(a, c, g) { var h = Array.prototype.slice.call(arguments, 2); return b.prototype[c].apply(a, h); }; } ;function ka(a, b) { for (var c = a.split("%s"), d = "", e = Array.prototype.slice.call(arguments, 1);e.length && 1 < c.length;) { d += c.shift() + e.shift(); } return d + c.join("%s"); } function la(a) { if (!ma.test(a)) { return a; } -1 != a.indexOf("&") && (a = a.replace(na, "&amp;")); -1 != a.indexOf("<") && (a = a.replace(oa, "&lt;")); -1 != a.indexOf(">") && (a = a.replace(pa, "&gt;")); -1 != a.indexOf('"') && (a = a.replace(qa, "&quot;")); -1 != a.indexOf("'") && (a = a.replace(ra, "&#39;")); return a; } var na = /&/g, oa = /</g, pa = />/g, qa = /"/g, ra = /'/g, ma = /[&<>"']/; function sa() { return Math.floor(2147483648 * Math.random()).toString(36) + Math.abs(Math.floor(2147483648 * Math.random()) ^ q()).toString(36); } function ta(a, b) { return a < b ? -1 : a > b ? 1 : 0; } ;var x, ua, va, wa; function xa() { return l.navigator ? l.navigator.userAgent : null; } wa = va = ua = x = !1; var ya; if (ya = xa()) { var za = l.navigator; x = 0 == ya.lastIndexOf("Opera", 0); ua = !x && (-1 != ya.indexOf("MSIE") || -1 != ya.indexOf("Trident")); va = !x && -1 != ya.indexOf("WebKit"); wa = !x && !va && !ua && "Gecko" == za.product; } var Aa = x, y = ua, Ba = wa, z = va; function Ca() { var a = l.document; return a ? a.documentMode : void 0; } var Da; a: { var Ea = "", Fa; if (Aa && l.opera) { var Ga = l.opera.version, Ea = "function" == typeof Ga ? Ga() : Ga } else { if (Ba ? Fa = /rv\:([^\);]+)(\)|;)/ : y ? Fa = /\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/ : z && (Fa = /WebKit\/(\S+)/), Fa) { var Ha = Fa.exec(xa()), Ea = Ha ? Ha[1] : "" } } if (y) { var Ia = Ca(); if (Ia > parseFloat(Ea)) { Da = String(Ia); break a; } } Da = Ea; } var Ja = {}; function A(a) { var b; if (!(b = Ja[a])) { b = 0; for (var c = String(Da).replace(/^[\s\xa0]+|[\s\xa0]+$/g, "").split("."), d = String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g, "").split("."), e = Math.max(c.length, d.length), g = 0;0 == b && g < e;g++) { var h = c[g] || "", k = d[g] || "", u = RegExp("(\\d*)(\\D*)", "g"), K = RegExp("(\\d*)(\\D*)", "g"); do { var v = u.exec(h) || ["", "", ""], r = K.exec(k) || ["", "", ""]; if (0 == v[0].length && 0 == r[0].length) { break; } b = ta(0 == v[1].length ? 0 : parseInt(v[1], 10), 0 == r[1].length ? 0 : parseInt(r[1], 10)) || ta(0 == v[2].length, 0 == r[2].length) || ta(v[2], r[2]); } while (0 == b); } b = Ja[a] = 0 <= b; } return b; } var La = l.document, Ma = La && y ? Ca() || ("CSS1Compat" == La.compatMode ? parseInt(Da, 10) : 5) : void 0; function Na(a) { Error.captureStackTrace ? Error.captureStackTrace(this, Na) : this.stack = Error().stack || ""; a && (this.message = String(a)); } s(Na, Error); Na.prototype.name = "CustomError"; function Oa(a, b) { b.unshift(a); Na.call(this, ka.apply(null, b)); b.shift(); } s(Oa, Na); Oa.prototype.name = "AssertionError"; function Pa(a, b) { throw new Oa("Failure" + (a ? ": " + a : ""), Array.prototype.slice.call(arguments, 1)); } ;var Qa = RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"); function Ra(a) { if (Sa) { Sa = !1; var b = l.location; if (b) { var c = b.href; if (c && (c = (c = Ra(c)[3] || null) && decodeURIComponent(c)) && c != b.hostname) { throw Sa = !0, Error(); } } } return a.match(Qa); } var Sa = z; function Ta(a) { var b = [], c = 0, d; for (d in a) { b[c++] = a[d]; } return b; } function Ua(a) { var b = [], c = 0, d; for (d in a) { b[c++] = d; } return b; } var Va = "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "); function Wa(a, b) { for (var c, d, e = 1;e < arguments.length;e++) { d = arguments[e]; for (c in d) { a[c] = d[c]; } for (var g = 0;g < Va.length;g++) { c = Va[g], Object.prototype.hasOwnProperty.call(d, c) && (a[c] = d[c]); } } } ;var B = Array.prototype, Xa = B.indexOf ? function(a, b, c) { return B.indexOf.call(a, b, c); } : function(a, b, c) { c = null == c ? 0 : 0 > c ? Math.max(0, a.length + c) : c; if (n(a)) { return n(b) && 1 == b.length ? a.indexOf(b, c) : -1; } for (;c < a.length;c++) { if (c in a && a[c] === b) { return c; } } return-1; }, Ya = B.forEach ? function(a, b, c) { B.forEach.call(a, b, c); } : function(a, b, c) { for (var d = a.length, e = n(a) ? a.split("") : a, g = 0;g < d;g++) { g in e && b.call(c, e[g], g, a); } }; function Za(a) { var b; a: { b = $a; for (var c = a.length, d = n(a) ? a.split("") : a, e = 0;e < c;e++) { if (e in d && b.call(void 0, d[e], e, a)) { b = e; break a; } } b = -1; } return 0 > b ? null : n(a) ? a.charAt(b) : a[b]; } function ab(a) { return B.concat.apply(B, arguments); } function bb(a) { var b = a.length; if (0 < b) { for (var c = Array(b), d = 0;d < b;d++) { c[d] = a[d]; } return c; } return[]; } ;function cb(a, b) { this.O = {}; this.j = []; this.o = 0; var c = arguments.length; if (1 < c) { if (c % 2) { throw Error("Uneven number of arguments"); } for (var d = 0;d < c;d += 2) { this.set(arguments[d], arguments[d + 1]); } } else { if (a) { a instanceof cb ? (c = a.ca(), d = a.N()) : (c = Ua(a), d = Ta(a)); for (var e = 0;e < c.length;e++) { this.set(c[e], d[e]); } } } } f = cb.prototype; f.N = function() { db(this); for (var a = [], b = 0;b < this.j.length;b++) { a.push(this.O[this.j[b]]); } return a; }; f.ca = function() { db(this); return this.j.concat(); }; f.wa = function(a) { return C(this.O, a); }; f.remove = function(a) { return C(this.O, a) ? (delete this.O[a], this.o--, this.j.length > 2 * this.o && db(this), !0) : !1; }; function db(a) { if (a.o != a.j.length) { for (var b = 0, c = 0;b < a.j.length;) { var d = a.j[b]; C(a.O, d) && (a.j[c++] = d); b++; } a.j.length = c; } if (a.o != a.j.length) { for (var e = {}, c = b = 0;b < a.j.length;) { d = a.j[b], C(e, d) || (a.j[c++] = d, e[d] = 1), b++; } a.j.length = c; } } f.get = function(a, b) { return C(this.O, a) ? this.O[a] : b; }; f.set = function(a, b) { C(this.O, a) || (this.o++, this.j.push(a)); this.O[a] = b; }; f.n = function() { return new cb(this); }; function C(a, b) { return Object.prototype.hasOwnProperty.call(a, b); } ;function eb(a) { if ("function" == typeof a.N) { return a.N(); } if (n(a)) { return a.split(""); } if (ea(a)) { for (var b = [], c = a.length, d = 0;d < c;d++) { b.push(a[d]); } return b; } return Ta(a); } function D(a, b, c) { if ("function" == typeof a.forEach) { a.forEach(b, c); } else { if (ea(a) || n(a)) { Ya(a, b, c); } else { var d; if ("function" == typeof a.ca) { d = a.ca(); } else { if ("function" != typeof a.N) { if (ea(a) || n(a)) { d = []; for (var e = a.length, g = 0;g < e;g++) { d.push(g); } } else { d = Ua(a); } } else { d = void 0; } } for (var e = eb(a), g = e.length, h = 0;h < g;h++) { b.call(c, e[h], d && d[h], a); } } } } ;function E(a, b) { var c; if (a instanceof E) { this.D = void 0 !== b ? b : a.D, fb(this, a.oa), c = a.eb, F(this), this.eb = c, gb(this, a.ja), hb(this, a.Ca), ib(this, a.I), jb(this, a.R.n()), c = a.Na, F(this), this.Na = c; } else { if (a && (c = Ra(String(a)))) { this.D = !!b; fb(this, c[1] || "", !0); var d = c[2] || ""; F(this); this.eb = d ? decodeURIComponent(d) : ""; gb(this, c[3] || "", !0); hb(this, c[4]); ib(this, c[5] || "", !0); jb(this, c[6] || "", !0); c = c[7] || ""; F(this); this.Na = c ? decodeURIComponent(c) : ""; } else { this.D = !!b, this.R = new kb(null, 0, this.D); } } } f = E.prototype; f.oa = ""; f.eb = ""; f.ja = ""; f.Ca = null; f.I = ""; f.Na = ""; f.oc = !1; f.D = !1; f.toString = function() { var a = [], b = this.oa; b && a.push(lb(b, mb), ":"); if (b = this.ja) { a.push("//"); var c = this.eb; c && a.push(lb(c, mb), "@"); a.push(encodeURIComponent(String(b))); b = this.Ca; null != b && a.push(":", String(b)); } if (b = this.I) { this.ja && "/" != b.charAt(0) && a.push("/"), a.push(lb(b, "/" == b.charAt(0) ? nb : ob)); } (b = this.R.toString()) && a.push("?", b); (b = this.Na) && a.push("#", lb(b, pb)); return a.join(""); }; f.n = function() { return new E(this); }; function fb(a, b, c) { F(a); a.oa = c ? b ? decodeURIComponent(b) : "" : b; a.oa && (a.oa = a.oa.replace(/:$/, "")); } function gb(a, b, c) { F(a); a.ja = c ? b ? decodeURIComponent(b) : "" : b; } function hb(a, b) { F(a); if (b) { b = Number(b); if (isNaN(b) || 0 > b) { throw Error("Bad port number " + b); } a.Ca = b; } else { a.Ca = null; } } function ib(a, b, c) { F(a); a.I = c ? b ? decodeURIComponent(b) : "" : b; } function jb(a, b, c) { F(a); b instanceof kb ? (a.R = b, a.R.ub(a.D)) : (c || (b = lb(b, qb)), a.R = new kb(b, 0, a.D)); } function G(a, b, c) { F(a); a.R.set(b, c); } function rb(a, b, c) { F(a); m(c) || (c = [String(c)]); sb(a.R, b, c); } function H(a) { F(a); G(a, "zx", sa()); return a; } function F(a) { if (a.oc) { throw Error("Tried to modify a read-only Uri"); } } f.ub = function(a) { this.D = a; this.R && this.R.ub(a); return this; }; function tb(a) { return a instanceof E ? a.n() : new E(a, void 0); } function ub(a, b, c, d) { var e = new E(null, void 0); a && fb(e, a); b && gb(e, b); c && hb(e, c); d && ib(e, d); return e; } function lb(a, b) { return n(a) ? encodeURI(a).replace(b, vb) : null; } function vb(a) { a = a.charCodeAt(0); return "%" + (a >> 4 & 15).toString(16) + (a & 15).toString(16); } var mb = /[#\/\?@]/g, ob = /[\#\?:]/g, nb = /[\#\?]/g, qb = /[\#\?@]/g, pb = /#/g; function kb(a, b, c) { this.C = a || null; this.D = !!c; } function I(a) { if (!a.h && (a.h = new cb, a.o = 0, a.C)) { for (var b = a.C.split("&"), c = 0;c < b.length;c++) { var d = b[c].indexOf("="), e = null, g = null; 0 <= d ? (e = b[c].substring(0, d), g = b[c].substring(d + 1)) : e = b[c]; e = decodeURIComponent(e.replace(/\+/g, " ")); e = J(a, e); a.add(e, g ? decodeURIComponent(g.replace(/\+/g, " ")) : ""); } } } f = kb.prototype; f.h = null; f.o = null; f.add = function(a, b) { I(this); this.C = null; a = J(this, a); var c = this.h.get(a); c || this.h.set(a, c = []); c.push(b); this.o++; return this; }; f.remove = function(a) { I(this); a = J(this, a); return this.h.wa(a) ? (this.C = null, this.o -= this.h.get(a).length, this.h.remove(a)) : !1; }; f.wa = function(a) { I(this); a = J(this, a); return this.h.wa(a); }; f.ca = function() { I(this); for (var a = this.h.N(), b = this.h.ca(), c = [], d = 0;d < b.length;d++) { for (var e = a[d], g = 0;g < e.length;g++) { c.push(b[d]); } } return c; }; f.N = function(a) { I(this); var b = []; if (n(a)) { this.wa(a) && (b = ab(b, this.h.get(J(this, a)))); } else { a = this.h.N(); for (var c = 0;c < a.length;c++) { b = ab(b, a[c]); } } return b; }; f.set = function(a, b) { I(this); this.C = null; a = J(this, a); this.wa(a) && (this.o -= this.h.get(a).length); this.h.set(a, [b]); this.o++; return this; }; f.get = function(a, b) { var c = a ? this.N(a) : []; return 0 < c.length ? String(c[0]) : b; }; function sb(a, b, c) { a.remove(b); 0 < c.length && (a.C = null, a.h.set(J(a, b), bb(c)), a.o += c.length); } f.toString = function() { if (this.C) { return this.C; } if (!this.h) { return ""; } for (var a = [], b = this.h.ca(), c = 0;c < b.length;c++) { for (var d = b[c], e = encodeURIComponent(String(d)), d = this.N(d), g = 0;g < d.length;g++) { var h = e; "" !== d[g] && (h += "=" + encodeURIComponent(String(d[g]))); a.push(h); } } return this.C = a.join("&"); }; f.n = function() { var a = new kb; a.C = this.C; this.h && (a.h = this.h.n(), a.o = this.o); return a; }; function J(a, b) { var c = String(b); a.D && (c = c.toLowerCase()); return c; } f.ub = function(a) { a && !this.D && (I(this), this.C = null, D(this.h, function(a, c) { var d = c.toLowerCase(); c != d && (this.remove(c), sb(this, d, a)); }, this)); this.D = a; }; function wb(a) { a = String(a); if (/^\s*$/.test(a) ? 0 : /^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g, "@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, "]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g, ""))) { try { return eval("(" + a + ")"); } catch (b) { } } throw Error("Invalid JSON string: " + a); } function xb(a) { return eval("(" + a + ")"); } function yb(a) { var b = []; zb(new Ab, a, b); return b.join(""); } function Ab() { this.Ya = void 0; } function zb(a, b, c) { switch(typeof b) { case "string": Bb(b, c); break; case "number": c.push(isFinite(b) && !isNaN(b) ? b : "null"); break; case "boolean": c.push(b); break; case "undefined": c.push("null"); break; case "object": if (null == b) { c.push("null"); break; } if (m(b)) { var d = b.length; c.push("["); for (var e = "", g = 0;g < d;g++) { c.push(e), e = b[g], zb(a, a.Ya ? a.Ya.call(b, String(g), e) : e, c), e = ","; } c.push("]"); break; } c.push("{"); d = ""; for (g in b) { Object.prototype.hasOwnProperty.call(b, g) && (e = b[g], "function" != typeof e && (c.push(d), Bb(g, c), c.push(":"), zb(a, a.Ya ? a.Ya.call(b, g, e) : e, c), d = ",")); } c.push("}"); break; case "function": break; default: throw Error("Unknown type: " + typeof b);; } } var Cb = {'"':'\\"', "\\":"\\\\", "/":"\\/", "\b":"\\b", "\f":"\\f", "\n":"\\n", "\r":"\\r", "\t":"\\t", "\x0B":"\\u000b"}, Db = /\uffff/.test("\uffff") ? /[\\\"\x00-\x1f\x7f-\uffff]/g : /[\\\"\x00-\x1f\x7f-\xff]/g; function Bb(a, b) { b.push('"', a.replace(Db, function(a) { if (a in Cb) { return Cb[a]; } var b = a.charCodeAt(0), e = "\\u"; 16 > b ? e += "000" : 256 > b ? e += "00" : 4096 > b && (e += "0"); return Cb[a] = e + b.toString(16); }), '"'); } ;function Eb(a) { return Fb(a || arguments.callee.caller, []); } function Fb(a, b) { var c = []; if (0 <= Xa(b, a)) { c.push("[...circular reference...]"); } else { if (a && 50 > b.length) { c.push(Gb(a) + "("); for (var d = a.arguments, e = 0;e < d.length;e++) { 0 < e && c.push(", "); var g; g = d[e]; switch(typeof g) { case "object": g = g ? "object" : "null"; break; case "string": break; case "number": g = String(g); break; case "boolean": g = g ? "true" : "false"; break; case "function": g = (g = Gb(g)) ? g : "[fn]"; break; default: g = typeof g; } 40 < g.length && (g = g.substr(0, 40) + "..."); c.push(g); } b.push(a); c.push(")\n"); try { c.push(Fb(a.caller, b)); } catch (h) { c.push("[exception trying to get caller]\n"); } } else { a ? c.push("[...long stack...]") : c.push("[end]"); } } return c.join(""); } function Gb(a) { if (Hb[a]) { return Hb[a]; } a = String(a); if (!Hb[a]) { var b = /function ([^\(]+)/.exec(a); Hb[a] = b ? b[1] : "[Anonymous]"; } return Hb[a]; } var Hb = {}; function Ib(a, b, c, d, e) { this.reset(a, b, c, d, e); } Ib.prototype.Fb = null; Ib.prototype.Eb = null; var Jb = 0; Ib.prototype.reset = function(a, b, c, d, e) { "number" == typeof e || Jb++; d || q(); this.Aa = a; this.qc = b; delete this.Fb; delete this.Eb; }; Ib.prototype.$b = function(a) { this.Aa = a; }; function L(a) { this.rc = a; } L.prototype.Sa = null; L.prototype.Aa = null; L.prototype.jb = null; L.prototype.Jb = null; function Kb(a, b) { this.name = a; this.value = b; } Kb.prototype.toString = function() { return this.name; }; var Lb = new Kb("SEVERE", 1E3), Mb = new Kb("WARNING", 900), Nb = new Kb("INFO", 800), Ob = new Kb("CONFIG", 700), Pb = new Kb("FINE", 500); f = L.prototype; f.getParent = function() { return this.Sa; }; f.$b = function(a) { this.Aa = a; }; function Qb(a) { if (a.Aa) { return a.Aa; } if (a.Sa) { return Qb(a.Sa); } Pa("Root logger has no level set."); return null; } f.log = function(a, b, c) { if (a.value >= Qb(this).value) { for (fa(b) && (b = b()), a = this.mc(a, b, c), b = "log:" + a.qc, l.console && (l.console.timeStamp ? l.console.timeStamp(b) : l.console.markTimeline && l.console.markTimeline(b)), l.msWriteProfilerMark && l.msWriteProfilerMark(b), b = this;b;) { c = b; var d = a; if (c.Jb) { for (var e = 0, g = void 0;g = c.Jb[e];e++) { g(d); } } b = b.getParent(); } } }; f.mc = function(a, b, c) { var d = new Ib(a, String(b), this.rc); if (c) { d.Fb = c; var e; var g = arguments.callee.caller; try { var h; var k = ba("window.location.href"); if (n(c)) { h = {message:c, name:"Unknown error", lineNumber:"Not available", fileName:k, stack:"Not available"}; } else { var u, K, v = !1; try { u = c.lineNumber || c.Ic || "Not available"; } catch (r) { u = "Not available", v = !0; } try { K = c.fileName || c.filename || c.sourceURL || l.$googDebugFname || k; } catch (Ka) { K = "Not available", v = !0; } h = !v && c.lineNumber && c.fileName && c.stack && c.message && c.name ? c : {message:c.message || "Not available", name:c.name || "UnknownError", lineNumber:u, fileName:K, stack:c.stack || "Not available"}; } e = "Message: " + la(h.message) + '\nUrl: <a href="view-source:' + h.fileName + '" target="_new">' + h.fileName + "</a>\nLine: " + h.lineNumber + "\n\nBrowser stack:\n" + la(h.stack + "-> ") + "[end]\n\nJS stack traversal:\n" + la(Eb(g) + "-> "); } catch (w) { e = "Exception trying to expose exception! You win, we lose. " + w; } d.Eb = e; } return d; }; f.J = function(a, b) { this.log(Lb, a, b); }; f.Z = function(a, b) { this.log(Mb, a, b); }; f.info = function(a, b) { this.log(Nb, a, b); }; var Rb = {}, Sb = null; function Tb(a) { Sb || (Sb = new L(""), Rb[""] = Sb, Sb.$b(Ob)); var b; if (!(b = Rb[a])) { b = new L(a); var c = a.lastIndexOf("."), d = a.substr(c + 1), c = Tb(a.substr(0, c)); c.jb || (c.jb = {}); c.jb[d] = b; b.Sa = c; Rb[a] = b; } return b; } ;function M(a, b) { a && a.log(Pb, b, void 0); } ;function N() { this.r = Tb("goog.net.BrowserChannel"); } function Ub(a, b, c, d) { a.info("XMLHTTP TEXT (" + b + "): " + Vb(a, c) + (d ? " " + d : "")); } N.prototype.debug = function(a) { this.info(a); }; function Wb(a, b, c) { a.J((c || "Exception") + b); } N.prototype.info = function(a) { var b = this.r; b && b.info(a, void 0); }; N.prototype.Z = function(a) { var b = this.r; b && b.Z(a, void 0); }; N.prototype.J = function(a) { var b = this.r; b && b.J(a, void 0); }; function Vb(a, b) { if (!b || b == Xb) { return b; } try { var c = xb(b); if (c) { for (var d = 0;d < c.length;d++) { if (m(c[d])) { var e = c[d]; if (!(2 > e.length)) { var g = e[1]; if (m(g) && !(1 > g.length)) { var h = g[0]; if ("noop" != h && "stop" != h) { for (var k = 1;k < g.length;k++) { g[k] = ""; } } } } } } } return yb(c); } catch (u) { return a.debug("Exception parsing expected JS array - probably was not JS"), b; } } ;function Yb(a, b) { this.P = b ? xb : wb; } Yb.prototype.parse = function(a) { return this.P(a); }; function O() { 0 != Zb && ($b[this[ga] || (this[ga] = ++ha)] = this); } var Zb = 0, $b = {}; O.prototype.mb = !1; O.prototype.Ja = function() { if (!this.mb && (this.mb = !0, this.u(), 0 != Zb)) { var a = this[ga] || (this[ga] = ++ha); delete $b[a]; } }; O.prototype.u = function() { if (this.Pb) { for (;this.Pb.length;) { this.Pb.shift()(); } } }; var ac = "closure_listenable_" + (1E6 * Math.random() | 0); function bc(a) { try { return!(!a || !a[ac]); } catch (b) { return!1; } } var cc = 0; function dc(a, b, c, d, e) { this.fa = a; this.Ua = null; this.src = b; this.type = c; this.capture = !!d; this.Oa = e; this.key = ++cc; this.na = this.Ia = !1; } function ec(a) { a.na = !0; a.fa = null; a.Ua = null; a.src = null; a.Oa = null; } ;function P(a) { this.src = a; this.s = {}; this.Ga = 0; } P.prototype.add = function(a, b, c, d, e) { var g = this.s[a]; g || (g = this.s[a] = [], this.Ga++); var h = fc(g, b, d, e); -1 < h ? (a = g[h], c || (a.Ia = !1)) : (a = new dc(b, this.src, a, !!d, e), a.Ia = c, g.push(a)); return a; }; P.prototype.remove = function(a, b, c, d) { if (!(a in this.s)) { return!1; } var e = this.s[a]; b = fc(e, b, c, d); return-1 < b ? (ec(e[b]), B.splice.call(e, b, 1), 0 == e.length && (delete this.s[a], this.Ga--), !0) : !1; }; function gc(a, b) { var c = b.type; if (!(c in a.s)) { return!1; } var d = a.s[c], e = Xa(d, b), g; (g = 0 <= e) && B.splice.call(d, e, 1); g && (ec(b), 0 == a.s[c].length && (delete a.s[c], a.Ga--)); return g; } P.prototype.Xa = function(a) { var b = 0, c; for (c in this.s) { if (!a || c == a) { for (var d = this.s[c], e = 0;e < d.length;e++) { ++b, ec(d[e]); } delete this.s[c]; this.Ga--; } } return b; }; P.prototype.ya = function(a, b, c, d) { a = this.s[a]; var e = -1; a && (e = fc(a, b, c, d)); return-1 < e ? a[e] : null; }; function fc(a, b, c, d) { for (var e = 0;e < a.length;++e) { var g = a[e]; if (!g.na && g.fa == b && g.capture == !!c && g.Oa == d) { return e; } } return-1; } ;var hc = !y || y && 9 <= Ma, ic = y && !A("9"); !z || A("528"); Ba && A("1.9b") || y && A("8") || Aa && A("9.5") || z && A("528"); Ba && !A("8") || y && A("9"); function Q(a, b) { this.type = a; this.currentTarget = this.target = b; } f = Q.prototype; f.u = function() { }; f.Ja = function() { }; f.ga = !1; f.defaultPrevented = !1; f.Yb = !0; f.preventDefault = function() { this.defaultPrevented = !0; this.Yb = !1; }; function jc(a) { jc[" "](a); return a; } jc[" "] = ca; function kc(a, b) { Q.call(this, a ? a.type : ""); this.relatedTarget = this.currentTarget = this.target = null; this.charCode = this.keyCode = this.button = this.screenY = this.screenX = this.clientY = this.clientX = this.offsetY = this.offsetX = 0; this.metaKey = this.shiftKey = this.altKey = this.ctrlKey = !1; this.Db = this.state = null; if (a) { var c = this.type = a.type; this.target = a.target || a.srcElement; this.currentTarget = b; var d = a.relatedTarget; if (d) { if (Ba) { var e; a: { try { jc(d.nodeName); e = !0; break a; } catch (g) { } e = !1; } e || (d = null); } } else { "mouseover" == c ? d = a.fromElement : "mouseout" == c && (d = a.toElement); } this.relatedTarget = d; this.offsetX = z || void 0 !== a.offsetX ? a.offsetX : a.layerX; this.offsetY = z || void 0 !== a.offsetY ? a.offsetY : a.layerY; this.clientX = void 0 !== a.clientX ? a.clientX : a.pageX; this.clientY = void 0 !== a.clientY ? a.clientY : a.pageY; this.screenX = a.screenX || 0; this.screenY = a.screenY || 0; this.button = a.button; this.keyCode = a.keyCode || 0; this.charCode = a.charCode || ("keypress" == c ? a.keyCode : 0); this.ctrlKey = a.ctrlKey; this.altKey = a.altKey; this.shiftKey = a.shiftKey; this.metaKey = a.metaKey; this.state = a.state; this.Db = a; a.defaultPrevented && this.preventDefault(); delete this.ga; } } s(kc, Q); kc.prototype.preventDefault = function() { kc.pa.preventDefault.call(this); var a = this.Db; if (a.preventDefault) { a.preventDefault(); } else { if (a.returnValue = !1, ic) { try { if (a.ctrlKey || 112 <= a.keyCode && 123 >= a.keyCode) { a.keyCode = -1; } } catch (b) { } } } }; kc.prototype.u = function() { }; var lc = "closure_lm_" + (1E6 * Math.random() | 0), mc = {}, nc = 0; function oc(a, b, c, d, e) { if (m(b)) { for (var g = 0;g < b.length;g++) { oc(a, b[g], c, d, e); } return null; } c = pc(c); if (bc(a)) { a = a.Ra(b, c, d, e); } else { if (!b) { throw Error("Invalid event type"); } var g = !!d, h = qc(a); h || (a[lc] = h = new P(a)); c = h.add(b, c, !1, d, e); c.Ua || (d = rc(), c.Ua = d, d.src = a, d.fa = c, a.addEventListener ? a.addEventListener(b, d, g) : a.attachEvent(b in mc ? mc[b] : mc[b] = "on" + b, d), nc++); a = c; } return a; } function rc() { var a = sc, b = hc ? function(c) { return a.call(b.src, b.fa, c); } : function(c) { c = a.call(b.src, b.fa, c); if (!c) { return c; } }; return b; } function tc(a, b, c, d, e) { if (m(b)) { for (var g = 0;g < b.length;g++) { tc(a, b[g], c, d, e); } } else { c = pc(c), bc(a) ? a.vb(b, c, d, e) : a && (a = qc(a)) && (b = a.ya(b, c, !!d, e)) && uc(b); } } function uc(a) { if ("number" == typeof a || !a || a.na) { return!1; } var b = a.src; if (bc(b)) { return gc(b.W, a); } var c = a.type, d = a.Ua; b.removeEventListener ? b.removeEventListener(c, d, a.capture) : b.detachEvent && b.detachEvent(c in mc ? mc[c] : mc[c] = "on" + c, d); nc--; (c = qc(b)) ? (gc(c, a), 0 == c.Ga && (c.src = null, b[lc] = null)) : ec(a); return!0; } function vc(a, b, c, d) { var e = 1; if (a = qc(a)) { if (b = a.s[b]) { for (b = bb(b), a = 0;a < b.length;a++) { var g = b[a]; g && g.capture == c && !g.na && (e &= !1 !== wc(g, d)); } } } return Boolean(e); } function wc(a, b) { var c = a.fa, d = a.Oa || a.src; a.Ia && uc(a); return c.call(d, b); } function sc(a, b) { if (a.na) { return!0; } if (!hc) { var c = b || ba("window.event"), d = new kc(c, this), e = !0; if (!(0 > c.keyCode || void 0 != c.returnValue)) { a: { var g = !1; if (0 == c.keyCode) { try { c.keyCode = -1; break a; } catch (h) { g = !0; } } if (g || void 0 == c.returnValue) { c.returnValue = !0; } } c = []; for (g = d.currentTarget;g;g = g.parentNode) { c.push(g); } for (var g = a.type, k = c.length - 1;!d.ga && 0 <= k;k--) { d.currentTarget = c[k], e &= vc(c[k], g, !0, d); } for (k = 0;!d.ga && k < c.length;k++) { d.currentTarget = c[k], e &= vc(c[k], g, !1, d); } } return e; } return wc(a, new kc(b, this)); } function qc(a) { a = a[lc]; return a instanceof P ? a : null; } var xc = "__closure_events_fn_" + (1E9 * Math.random() >>> 0); function pc(a) { return fa(a) ? a : a[xc] || (a[xc] = function(b) { return a.handleEvent(b); }); } ;function R() { O.call(this); this.W = new P(this); this.fc = this; } s(R, O); R.prototype[ac] = !0; f = R.prototype; f.tb = null; f.addEventListener = function(a, b, c, d) { oc(this, a, b, c, d); }; f.removeEventListener = function(a, b, c, d) { tc(this, a, b, c, d); }; f.dispatchEvent = function(a) { var b, c = this.tb; if (c) { for (b = [];c;c = c.tb) { b.push(c); } } var c = this.fc, d = a.type || a; if (n(a)) { a = new Q(a, c); } else { if (a instanceof Q) { a.target = a.target || c; } else { var e = a; a = new Q(d, c); Wa(a, e); } } var e = !0, g; if (b) { for (var h = b.length - 1;!a.ga && 0 <= h;h--) { g = a.currentTarget = b[h], e = yc(g, d, !0, a) && e; } } a.ga || (g = a.currentTarget = c, e = yc(g, d, !0, a) && e, a.ga || (e = yc(g, d, !1, a) && e)); if (b) { for (h = 0;!a.ga && h < b.length;h++) { g = a.currentTarget = b[h], e = yc(g, d, !1, a) && e; } } return e; }; f.u = function() { R.pa.u.call(this); this.W && this.W.Xa(void 0); this.tb = null; }; f.Ra = function(a, b, c, d) { return this.W.add(String(a), b, !1, c, d); }; f.vb = function(a, b, c, d) { return this.W.remove(String(a), b, c, d); }; function yc(a, b, c, d) { b = a.W.s[String(b)]; if (!b) { return!0; } b = bb(b); for (var e = !0, g = 0;g < b.length;++g) { var h = b[g]; if (h && !h.na && h.capture == c) { var k = h.fa, u = h.Oa || h.src; h.Ia && gc(a.W, h); e = !1 !== k.call(u, d) && e; } } return e && !1 != d.Yb; } f.ya = function(a, b, c, d) { return this.W.ya(String(a), b, c, d); }; function zc(a, b) { R.call(this); this.ea = a || 1; this.ra = b || l; this.ib = p(this.Gc, this); this.sb = q(); } s(zc, R); f = zc.prototype; f.enabled = !1; f.l = null; f.setInterval = function(a) { this.ea = a; this.l && this.enabled ? (this.stop(), this.start()) : this.l && this.stop(); }; f.Gc = function() { if (this.enabled) { var a = q() - this.sb; 0 < a && a < 0.8 * this.ea ? this.l = this.ra.setTimeout(this.ib, this.ea - a) : (this.l && (this.ra.clearTimeout(this.l), this.l = null), this.dispatchEvent(Ac), this.enabled && (this.l = this.ra.setTimeout(this.ib, this.ea), this.sb = q())); } }; f.start = function() { this.enabled = !0; this.l || (this.l = this.ra.setTimeout(this.ib, this.ea), this.sb = q()); }; f.stop = function() { this.enabled = !1; this.l && (this.ra.clearTimeout(this.l), this.l = null); }; f.u = function() { zc.pa.u.call(this); this.stop(); delete this.ra; }; var Ac = "tick"; function Bc(a, b, c) { if (fa(a)) { c && (a = p(a, c)); } else { if (a && "function" == typeof a.handleEvent) { a = p(a.handleEvent, a); } else { throw Error("Invalid listener argument"); } } return 2147483647 < b ? -1 : l.setTimeout(a, b || 0); } ;function Cc() { } Cc.prototype.Ab = null; function Dc(a) { var b; (b = a.Ab) || (b = {}, Ec(a) && (b[0] = !0, b[1] = !0), b = a.Ab = b); return b; } ;var Fc; function Gc() { } s(Gc, Cc); function Hc(a) { return(a = Ec(a)) ? new ActiveXObject(a) : new XMLHttpRequest; } function Ec(a) { if (!a.Kb && "undefined" == typeof XMLHttpRequest && "undefined" != typeof ActiveXObject) { for (var b = ["MSXML2.XMLHTTP.6.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"], c = 0;c < b.length;c++) { var d = b[c]; try { return new ActiveXObject(d), a.Kb = d; } catch (e) { } } throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed"); } return a.Kb; } Fc = new Gc; function Ic(a) { R.call(this); this.headers = new cb; this.gb = a || null; this.T = !1; this.fb = this.f = null; this.Mb = this.Qa = ""; this.ka = 0; this.q = ""; this.da = this.qb = this.Pa = this.nb = !1; this.Fa = 0; this.bb = null; this.Xb = Jc; this.cb = this.dc = !1; } s(Ic, R); var Jc = ""; Ic.prototype.r = Tb("goog.net.XhrIo"); var Kc = /^https?$/i, Lc = ["POST", "PUT"]; f = Ic.prototype; f.send = function(a, b, c, d) { if (this.f) { throw Error("[goog.net.XhrIo] Object is active with another request=" + this.Qa + "; newUri=" + a); } b = b ? b.toUpperCase() : "GET"; this.Qa = a; this.q = ""; this.ka = 0; this.Mb = b; this.nb = !1; this.T = !0; this.f = this.gb ? Hc(this.gb) : Hc(Fc); this.fb = this.gb ? Dc(this.gb) : Dc(Fc); this.f.onreadystatechange = p(this.Qb, this); try { M(this.r, S(this, "Opening Xhr")), this.qb = !0, this.f.open(b, a, !0), this.qb = !1; } catch (e) { M(this.r, S(this, "Error opening Xhr: " + e.message)); Mc(this, e); return; } a = c || ""; var g = this.headers.n(); d && D(d, function(a, b) { g.set(b, a); }); d = Za(g.ca()); c = l.FormData && a instanceof l.FormData; !(0 <= Xa(Lc, b)) || d || c || g.set("Content-Type", "application/x-www-form-urlencoded;charset=utf-8"); D(g, function(a, b) { this.f.setRequestHeader(b, a); }, this); this.Xb && (this.f.responseType = this.Xb); "withCredentials" in this.f && (this.f.withCredentials = this.dc); try { Nc(this), 0 < this.Fa && (this.cb = Oc(this.f), M(this.r, S(this, "Will abort after " + this.Fa + "ms if incomplete, xhr2 " + this.cb)), this.cb ? (this.f.timeout = this.Fa, this.f.ontimeout = p(this.qa, this)) : this.bb = Bc(this.qa, this.Fa, this)), M(this.r, S(this, "Sending request")), this.Pa = !0, this.f.send(a), this.Pa = !1; } catch (h) { M(this.r, S(this, "Send error: " + h.message)), Mc(this, h); } }; function Oc(a) { return y && A(9) && "number" == typeof a.timeout && void 0 !== a.ontimeout; } function $a(a) { return "content-type" == a.toLowerCase(); } f.qa = function() { "undefined" != typeof aa && this.f && (this.q = "Timed out after " + this.Fa + "ms, aborting", this.ka = 8, M(this.r, S(this, this.q)), this.dispatchEvent("timeout"), this.abort(8)); }; function Mc(a, b) { a.T = !1; a.f && (a.da = !0, a.f.abort(), a.da = !1); a.q = b; a.ka = 5; Pc(a); Qc(a); } function Pc(a) { a.nb || (a.nb = !0, a.dispatchEvent("complete"), a.dispatchEvent("error")); } f.abort = function(a) { this.f && this.T && (M(this.r, S(this, "Aborting")), this.T = !1, this.da = !0, this.f.abort(), this.da = !1, this.ka = a || 7, this.dispatchEvent("complete"), this.dispatchEvent("abort"), Qc(this)); }; f.u = function() { this.f && (this.T && (this.T = !1, this.da = !0, this.f.abort(), this.da = !1), Qc(this, !0)); Ic.pa.u.call(this); }; f.Qb = function() { this.mb || (this.qb || this.Pa || this.da ? Rc(this) : this.uc()); }; f.uc = function() { Rc(this); }; function Rc(a) { if (a.T && "undefined" != typeof aa) { if (a.fb[1] && 4 == T(a) && 2 == Sc(a)) { M(a.r, S(a, "Local request error detected and ignored")); } else { if (a.Pa && 4 == T(a)) { Bc(a.Qb, 0, a); } else { if (a.dispatchEvent("readystatechange"), 4 == T(a)) { M(a.r, S(a, "Request complete")); a.T = !1; try { var b = Sc(a), c, d; a: { switch(b) { case 200: ; case 201: ; case 202: ; case 204: ; case 206: ; case 304: ; case 1223: d = !0; break a; default: d = !1; } } if (!(c = d)) { var e; if (e = 0 === b) { var g = Ra(String(a.Qa))[1] || null; if (!g && self.location) { var h = self.location.protocol, g = h.substr(0, h.length - 1) } e = !Kc.test(g ? g.toLowerCase() : ""); } c = e; } if (c) { a.dispatchEvent("complete"), a.dispatchEvent("success"); } else { a.ka = 6; var k; try { k = 2 < T(a) ? a.f.statusText : ""; } catch (u) { M(a.r, "Can not get status: " + u.message), k = ""; } a.q = k + " [" + Sc(a) + "]"; Pc(a); } } finally { Qc(a); } } } } } } function Qc(a, b) { if (a.f) { Nc(a); var c = a.f, d = a.fb[0] ? ca : null; a.f = null; a.fb = null; b || a.dispatchEvent("ready"); try { c.onreadystatechange = d; } catch (e) { (c = a.r) && c.J("Problem encountered resetting onreadystatechange: " + e.message, void 0); } } } function Nc(a) { a.f && a.cb && (a.f.ontimeout = null); "number" == typeof a.bb && (l.clearTimeout(a.bb), a.bb = null); } f.isActive = function() { return!!this.f; }; function T(a) { return a.f ? a.f.readyState : 0; } function Sc(a) { try { return 2 < T(a) ? a.f.status : -1; } catch (b) { return(a = a.r) && a.Z("Can not get status: " + b.message, void 0), -1; } } function Tc(a) { try { return a.f ? a.f.responseText : ""; } catch (b) { return M(a.r, "Can not get responseText: " + b.message), ""; } } f.Ib = function() { return n(this.q) ? this.q : String(this.q); }; function S(a, b) { return b + " [" + a.Mb + " " + a.Qa + " " + Sc(a) + "]"; } ;function Uc() { this.Wb = q(); } new Uc; Uc.prototype.set = function(a) { this.Wb = a; }; Uc.prototype.reset = function() { this.set(q()); }; Uc.prototype.get = function() { return this.Wb; }; function Vc(a) { O.call(this); this.e = a; this.j = {}; } s(Vc, O); var Wc = []; f = Vc.prototype; f.Ra = function(a, b, c, d) { m(b) || (Wc[0] = b, b = Wc); for (var e = 0;e < b.length;e++) { var g = oc(a, b[e], c || this.handleEvent, d || !1, this.e || this); if (!g) { break; } this.j[g.key] = g; } return this; }; f.vb = function(a, b, c, d, e) { if (m(b)) { for (var g = 0;g < b.length;g++) { this.vb(a, b[g], c, d, e); } } else { c = c || this.handleEvent, e = e || this.e || this, c = pc(c), d = !!d, b = bc(a) ? a.ya(b, c, d, e) : a ? (a = qc(a)) ? a.ya(b, c, d, e) : null : null, b && (uc(b), delete this.j[b.key]); } return this; }; f.Xa = function() { var a = this.j, b = uc, c; for (c in a) { b.call(void 0, a[c], c, a); } this.j = {}; }; f.u = function() { Vc.pa.u.call(this); this.Xa(); }; f.handleEvent = function() { throw Error("EventHandler.handleEvent not implemented"); }; function Xc(a, b, c) { O.call(this); this.pc = a; this.ea = b; this.e = c; this.jc = p(this.vc, this); } s(Xc, O); f = Xc.prototype; f.Za = !1; f.Vb = 0; f.l = null; f.stop = function() { this.l && (l.clearTimeout(this.l), this.l = null, this.Za = !1); }; f.u = function() { Xc.pa.u.call(this); this.stop(); }; f.vc = function() { this.l = null; this.Za && !this.Vb && (this.Za = !1, Yc(this)); }; function Yc(a) { a.l = Bc(a.jc, a.ea); a.pc.call(a.e); } ;function U(a, b, c, d, e) { this.b = a; this.a = b; this.Y = c; this.B = d; this.Ea = e || 1; this.qa = Zc; this.ob = new Vc(this); this.Ta = new zc; this.Ta.setInterval($c); } f = U.prototype; f.v = null; f.F = !1; f.ua = null; f.xb = null; f.Da = null; f.sa = null; f.U = null; f.w = null; f.X = null; f.k = null; f.Ha = 0; f.K = null; f.ta = null; f.q = null; f.g = -1; f.Zb = !0; f.$ = !1; f.ma = 0; f.Va = null; var Zc = 45E3, $c = 250; function ad(a, b) { switch(a) { case 0: return "Non-200 return code (" + b + ")"; case 1: return "XMLHTTP failure (no data)"; case 2: return "HttpConnection timeout"; default: return "Unknown error"; } } var bd = {}, dd = {}; function ed() { return!y || y && 10 <= Ma; } f = U.prototype; f.S = function(a) { this.v = a; }; f.setTimeout = function(a) { this.qa = a; }; f.bc = function(a) { this.ma = a; }; function fd(a, b, c) { a.sa = 1; a.U = H(b.n()); a.X = c; a.Cb = !0; gd(a, null); } function hd(a, b, c, d, e) { a.sa = 1; a.U = H(b.n()); a.X = null; a.Cb = c; e && (a.Zb = !1); gd(a, d); } function gd(a, b) { a.Da = q(); id(a); a.w = a.U.n(); rb(a.w, "t", a.Ea); a.Ha = 0; a.k = a.b.lb(a.b.$a() ? b : null); 0 < a.ma && (a.Va = new Xc(p(a.ec, a, a.k), a.ma)); a.ob.Ra(a.k, "readystatechange", a.Bc); var c; if (a.v) { c = a.v; var d = {}, e; for (e in c) { d[e] = c[e]; } c = d; } else { c = {}; } a.X ? (a.ta = "POST", c["Content-Type"] = "application/x-www-form-urlencoded", a.k.send(a.w, a.ta, a.X, c)) : (a.ta = "GET", a.Zb && !z && (c.Connection = "close"), a.k.send(a.w, a.ta, null, c)); a.b.H(jd); if (d = a.X) { for (c = "", d = d.split("&"), e = 0;e < d.length;e++) { var g = d[e].split("="); if (1 < g.length) { var h = g[0], g = g[1], k = h.split("_"); c = 2 <= k.length && "type" == k[1] ? c + (h + "=" + g + "&") : c + (h + "=redacted&"); } } } else { c = null; } a.a.info("XMLHTTP REQ (" + a.B + ") [attempt " + a.Ea + "]: " + a.ta + "\n" + a.w + "\n" + c); } f.Bc = function(a) { a = a.target; var b = this.Va; b && 3 == T(a) ? (this.a.debug("Throttling readystatechange."), b.l || b.Vb ? b.Za = !0 : Yc(b)) : this.ec(a); }; f.ec = function(a) { try { if (a == this.k) { a: { var b = T(this.k), c = this.k.ka, d = Sc(this.k); if (!ed() || z && !A("420+")) { if (4 > b) { break a; } } else { if (3 > b || 3 == b && !Aa && !Tc(this.k)) { break a; } } this.$ || 4 != b || 7 == c || (8 == c || 0 >= d ? this.b.H(kd) : this.b.H(ld)); md(this); var e = Sc(this.k); this.g = e; var g = Tc(this.k); g || this.a.debug("No response text for uri " + this.w + " status " + e); this.F = 200 == e; this.a.info("XMLHTTP RESP (" + this.B + ") [ attempt " + this.Ea + "]: " + this.ta + "\n" + this.w + "\n" + b + " " + e); this.F ? (4 == b && V(this), this.Cb ? (nd(this, b, g), Aa && this.F && 3 == b && (this.ob.Ra(this.Ta, Ac, this.Ac), this.Ta.start())) : (Ub(this.a, this.B, g, null), od(this, g)), this.F && !this.$ && (4 == b ? this.b.la(this) : (this.F = !1, id(this)))) : (400 == e && 0 < g.indexOf("Unknown SID") ? (this.q = 3, W(), this.a.Z("XMLHTTP Unknown SID (" + this.B + ")")) : (this.q = 0, W(), this.a.Z("XMLHTTP Bad status " + e + " (" + this.B + ")")), V(this), pd(this)); } } else { this.a.Z("Called back with an unexpected xmlhttp"); } } catch (h) { this.a.debug("Failed call to OnXmlHttpReadyStateChanged_"), this.k && Tc(this.k) ? Wb(this.a, h, "ResponseText: " + Tc(this.k)) : Wb(this.a, h, "No response text"); } finally { } }; function nd(a, b, c) { for (var d = !0;!a.$ && a.Ha < c.length;) { var e = qd(a, c); if (e == dd) { 4 == b && (a.q = 4, W(), d = !1); Ub(a.a, a.B, null, "[Incomplete Response]"); break; } else { if (e == bd) { a.q = 4; W(); Ub(a.a, a.B, c, "[Invalid Chunk]"); d = !1; break; } else { Ub(a.a, a.B, e, null), od(a, e); } } } 4 == b && 0 == c.length && (a.q = 1, W(), d = !1); a.F = a.F && d; d || (Ub(a.a, a.B, c, "[Invalid Chunked Response]"), V(a), pd(a)); } f.Ac = function() { var a = T(this.k), b = Tc(this.k); this.Ha < b.length && (md(this), nd(this, a, b), this.F && 4 != a && id(this)); }; function qd(a, b) { var c = a.Ha, d = b.indexOf("\n", c); if (-1 == d) { return dd; } c = Number(b.substring(c, d)); if (isNaN(c)) { return bd; } d += 1; if (d + c > b.length) { return dd; } var e = b.substr(d, c); a.Ha = d + c; return e; } function rd(a, b) { a.Da = q(); id(a); var c = b ? window.location.hostname : ""; a.w = a.U.n(); G(a.w, "DOMAIN", c); G(a.w, "t", a.Ea); try { a.K = new ActiveXObject("htmlfile"); } catch (d) { a.a.J("ActiveX blocked"); V(a); a.q = 7; W(); pd(a); return; } var e = "<html><body>"; b && (e += '<script>document.domain="' + c + '"\x3c/script>'); e += "</body></html>"; a.K.open(); a.K.write(e); a.K.close(); a.K.parentWindow.m = p(a.yc, a); a.K.parentWindow.d = p(a.Ub, a, !0); a.K.parentWindow.rpcClose = p(a.Ub, a, !1); c = a.K.createElement("div"); a.K.parentWindow.document.body.appendChild(c); c.innerHTML = '<iframe src="' + a.w + '"></iframe>'; a.a.info("TRIDENT REQ (" + a.B + ") [ attempt " + a.Ea + "]: GET\n" + a.w); a.b.H(jd); } f.yc = function(a) { Y(p(this.xc, this, a), 0); }; f.xc = function(a) { if (!this.$) { var b = this.a; b.info("TRIDENT TEXT (" + this.B + "): " + Vb(b, a)); md(this); od(this, a); id(this); } }; f.Ub = function(a) { Y(p(this.wc, this, a), 0); }; f.wc = function(a) { this.$ || (this.a.info("TRIDENT TEXT (" + this.B + "): " + a ? "success" : "failure"), V(this), this.F = a, this.b.la(this), this.b.H(sd)); }; f.nc = function() { md(this); this.b.la(this); }; f.cancel = function() { this.$ = !0; V(this); }; function id(a) { a.xb = q() + a.qa; td(a, a.qa); } function td(a, b) { if (null != a.ua) { throw Error("WatchDog timer not null"); } a.ua = Y(p(a.zc, a), b); } function md(a) { a.ua && (l.clearTimeout(a.ua), a.ua = null); } f.zc = function() { this.ua = null; var a = q(); 0 <= a - this.xb ? (this.F && this.a.J("Received watchdog timeout even though request loaded successfully"), this.a.info("TIMEOUT: " + this.w), 2 != this.sa && this.b.H(kd), V(this), this.q = 2, W(), pd(this)) : (this.a.Z("WatchDog timer called too early"), td(this, this.xb - a)); }; function pd(a) { a.b.Lb() || a.$ || a.b.la(a); } function V(a) { md(a); var b = a.Va; b && "function" == typeof b.Ja && b.Ja(); a.Va = null; a.Ta.stop(); a.ob.Xa(); a.k && (b = a.k, a.k = null, b.abort(), b.Ja()); a.K && (a.K = null); } f.Ib = function() { return this.q; }; function od(a, b) { try { a.b.Rb(a, b), a.b.H(sd); } catch (c) { Wb(a.a, c, "Error in httprequest callback"); } } ;function ud(a, b, c, d, e) { (new N).debug("TestLoadImageWithRetries: " + e); if (0 == d) { c(!1); } else { var g = e || 0; d--; vd(a, b, function(e) { e ? c(!0) : l.setTimeout(function() { ud(a, b, c, d, g); }, g); }); } } function vd(a, b, c) { function d(a, b) { return function() { try { e.debug("TestLoadImage: " + b), g.onload = null, g.onerror = null, g.onabort = null, g.ontimeout = null, l.clearTimeout(h), c(a); } catch (d) { Wb(e, d); } }; } var e = new N; e.debug("TestLoadImage: loading " + a); var g = new Image, h = null; g.onload = d(!0, "loaded"); g.onerror = d(!1, "error"); g.onabort = d(!1, "abort"); g.ontimeout = d(!1, "timeout"); h = l.setTimeout(function() { if (g.ontimeout) { g.ontimeout(); } }, b); g.src = a; } ;function wd(a, b) { this.b = a; this.a = b; this.P = new Yb(0, !0); } f = wd.prototype; f.v = null; f.A = null; f.Wa = !1; f.cc = null; f.La = null; f.rb = null; f.I = null; f.c = null; f.g = -1; f