@firebase/webchannel-wrapper 0.9.0 → 0.10.0-canary.4a86f4eb0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.esm.js +1850 -0
- package/dist/esm/index.esm.js.map +1 -0
- package/dist/esm/index.esm2017.js +112 -0
- package/dist/esm/index.esm2017.js.map +1 -0
- package/dist/esm/package.json +1 -0
- package/dist/index.js +125 -102
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/CHANGELOG.md +0 -84
- package/dist/index.esm.js +0 -1504
- package/dist/index.esm.js.map +0 -1
- package/dist/index.esm2017.js +0 -108
- package/dist/index.esm2017.js.map +0 -1
|
@@ -0,0 +1,1850 @@
|
|
|
1
|
+
/******************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
/* global Reflect, Promise */
|
|
16
|
+
|
|
17
|
+
var extendStatics = function(d, b) {
|
|
18
|
+
extendStatics = Object.setPrototypeOf ||
|
|
19
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
21
|
+
return extendStatics(d, b);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
function __extends(d, b) {
|
|
25
|
+
if (typeof b !== "function" && b !== null)
|
|
26
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
27
|
+
extendStatics(d, b);
|
|
28
|
+
function __() { this.constructor = d; }
|
|
29
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function __values(o) {
|
|
33
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
34
|
+
if (m) return m.call(o);
|
|
35
|
+
if (o && typeof o.length === "number") return {
|
|
36
|
+
next: function () {
|
|
37
|
+
if (o && i >= o.length) o = void 0;
|
|
38
|
+
return { value: o && o[i++], done: !o };
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function __read(o, n) {
|
|
45
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
46
|
+
if (!m) return o;
|
|
47
|
+
var i = m.call(o), r, ar = [], e;
|
|
48
|
+
try {
|
|
49
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
50
|
+
}
|
|
51
|
+
catch (error) { e = { error: error }; }
|
|
52
|
+
finally {
|
|
53
|
+
try {
|
|
54
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
55
|
+
}
|
|
56
|
+
finally { if (e) throw e.error; }
|
|
57
|
+
}
|
|
58
|
+
return ar;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
62
|
+
|
|
63
|
+
var esm = {};
|
|
64
|
+
|
|
65
|
+
var k, goog = goog || {}, l = commonjsGlobal || self;
|
|
66
|
+
function aa(a) { var b = typeof a; b = "object" != b ? b : a ? Array.isArray(a) ? "array" : b : "null"; return "array" == b || "object" == b && "number" == typeof a.length; }
|
|
67
|
+
function p(a) { var b = typeof a; return "object" == b && null != a || "function" == b; }
|
|
68
|
+
function ba(a) { return Object.prototype.hasOwnProperty.call(a, ca) && a[ca] || (a[ca] = ++da); }
|
|
69
|
+
var ca = "closure_uid_" + (1E9 * Math.random() >>> 0), da = 0;
|
|
70
|
+
function ea(a, b, c) { return a.call.apply(a.bind, arguments); }
|
|
71
|
+
function fa(a, b, c) { if (!a)
|
|
72
|
+
throw Error(); if (2 < arguments.length) {
|
|
73
|
+
var d = Array.prototype.slice.call(arguments, 2);
|
|
74
|
+
return function () { var e = Array.prototype.slice.call(arguments); Array.prototype.unshift.apply(e, d); return a.apply(b, e); };
|
|
75
|
+
} return function () { return a.apply(b, arguments); }; }
|
|
76
|
+
function q(a, b, c) { Function.prototype.bind && -1 != Function.prototype.bind.toString().indexOf("native code") ? q = ea : q = fa; return q.apply(null, arguments); }
|
|
77
|
+
function ha(a, b) { var c = Array.prototype.slice.call(arguments, 1); return function () { var d = c.slice(); d.push.apply(d, arguments); return a.apply(this, d); }; }
|
|
78
|
+
function r(a, b) { function c() { } c.prototype = b.prototype; a.$ = b.prototype; a.prototype = new c; a.prototype.constructor = a; a.ac = function (d, e, f) { for (var h = Array(arguments.length - 2), n = 2; n < arguments.length; n++)
|
|
79
|
+
h[n - 2] = arguments[n]; return b.prototype[e].apply(d, h); }; }
|
|
80
|
+
function v() { this.s = this.s; this.o = this.o; }
|
|
81
|
+
var ia = 0;
|
|
82
|
+
v.prototype.s = !1;
|
|
83
|
+
v.prototype.sa = function () { if (!this.s && (this.s = !0, this.N(), 0 != ia)) {
|
|
84
|
+
ba(this);
|
|
85
|
+
} };
|
|
86
|
+
v.prototype.N = function () { if (this.o)
|
|
87
|
+
for (; this.o.length;)
|
|
88
|
+
this.o.shift()(); };
|
|
89
|
+
var ka = Array.prototype.indexOf ? function (a, b) { return Array.prototype.indexOf.call(a, b, void 0); } : function (a, b) { if ("string" === typeof a)
|
|
90
|
+
return "string" !== typeof b || 1 != b.length ? -1 : a.indexOf(b, 0); for (var c = 0; c < a.length; c++)
|
|
91
|
+
if (c in a && a[c] === b)
|
|
92
|
+
return c; return -1; };
|
|
93
|
+
function ma(a) { var b = a.length; if (0 < b) {
|
|
94
|
+
var c = Array(b);
|
|
95
|
+
for (var d = 0; d < b; d++)
|
|
96
|
+
c[d] = a[d];
|
|
97
|
+
return c;
|
|
98
|
+
} return []; }
|
|
99
|
+
function na(a, b) { for (var c = 1; c < arguments.length; c++) {
|
|
100
|
+
var d = arguments[c];
|
|
101
|
+
if (aa(d)) {
|
|
102
|
+
var e = a.length || 0, f = d.length || 0;
|
|
103
|
+
a.length = e + f;
|
|
104
|
+
for (var h = 0; h < f; h++)
|
|
105
|
+
a[e + h] = d[h];
|
|
106
|
+
}
|
|
107
|
+
else
|
|
108
|
+
a.push(d);
|
|
109
|
+
} }
|
|
110
|
+
function w(a, b) { this.type = a; this.g = this.target = b; this.defaultPrevented = !1; }
|
|
111
|
+
w.prototype.h = function () { this.defaultPrevented = !0; };
|
|
112
|
+
var oa = function () { if (!l.addEventListener || !Object.defineProperty)
|
|
113
|
+
return !1; var a = !1, b = Object.defineProperty({}, "passive", { get: function () { a = !0; } }); try {
|
|
114
|
+
l.addEventListener("test", function () { }, b), l.removeEventListener("test", function () { }, b);
|
|
115
|
+
}
|
|
116
|
+
catch (c) { } return a; }();
|
|
117
|
+
function x(a) { return /^[\s\xa0]*$/.test(a); }
|
|
118
|
+
function pa() { var a = l.navigator; return a && (a = a.userAgent) ? a : ""; }
|
|
119
|
+
function y(a) { return -1 != pa().indexOf(a); }
|
|
120
|
+
function qa(a) { qa[" "](a); return a; }
|
|
121
|
+
qa[" "] = function () { };
|
|
122
|
+
function ra(a, b) { var c = sa; return Object.prototype.hasOwnProperty.call(c, a) ? c[a] : c[a] = b(a); }
|
|
123
|
+
var ta = y("Opera"), z = y("Trident") || y("MSIE"), ua = y("Edge"), va = ua || z, wa = y("Gecko") && !(-1 != pa().toLowerCase().indexOf("webkit") && !y("Edge")) && !(y("Trident") || y("MSIE")) && !y("Edge"), xa = -1 != pa().toLowerCase().indexOf("webkit") && !y("Edge");
|
|
124
|
+
function ya() { var a = l.document; return a ? a.documentMode : void 0; }
|
|
125
|
+
var za;
|
|
126
|
+
a: {
|
|
127
|
+
var Aa = "", Ba = function () { var a = pa(); if (wa)
|
|
128
|
+
return /rv:([^\);]+)(\)|;)/.exec(a); if (ua)
|
|
129
|
+
return /Edge\/([\d\.]+)/.exec(a); if (z)
|
|
130
|
+
return /\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a); if (xa)
|
|
131
|
+
return /WebKit\/(\S+)/.exec(a); if (ta)
|
|
132
|
+
return /(?:Version)[ \/]?(\S+)/.exec(a); }();
|
|
133
|
+
Ba && (Aa = Ba ? Ba[1] : "");
|
|
134
|
+
if (z) {
|
|
135
|
+
var Ca = ya();
|
|
136
|
+
if (null != Ca && Ca > parseFloat(Aa)) {
|
|
137
|
+
za = String(Ca);
|
|
138
|
+
break a;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
za = Aa;
|
|
142
|
+
}
|
|
143
|
+
var Da;
|
|
144
|
+
if (l.document && z) {
|
|
145
|
+
var Ea = ya();
|
|
146
|
+
Da = Ea ? Ea : parseInt(za, 10) || void 0;
|
|
147
|
+
}
|
|
148
|
+
else
|
|
149
|
+
Da = void 0;
|
|
150
|
+
var Fa = Da;
|
|
151
|
+
function A(a, b) {
|
|
152
|
+
w.call(this, a ? a.type : "");
|
|
153
|
+
this.relatedTarget = this.g = this.target = null;
|
|
154
|
+
this.button = this.screenY = this.screenX = this.clientY = this.clientX = 0;
|
|
155
|
+
this.key = "";
|
|
156
|
+
this.metaKey = this.shiftKey = this.altKey = this.ctrlKey = !1;
|
|
157
|
+
this.state = null;
|
|
158
|
+
this.pointerId = 0;
|
|
159
|
+
this.pointerType = "";
|
|
160
|
+
this.i = null;
|
|
161
|
+
if (a) {
|
|
162
|
+
var c = this.type = a.type, d = a.changedTouches && a.changedTouches.length ? a.changedTouches[0] : null;
|
|
163
|
+
this.target = a.target || a.srcElement;
|
|
164
|
+
this.g = b;
|
|
165
|
+
if (b = a.relatedTarget) {
|
|
166
|
+
if (wa) {
|
|
167
|
+
a: {
|
|
168
|
+
try {
|
|
169
|
+
qa(b.nodeName);
|
|
170
|
+
var e = !0;
|
|
171
|
+
break a;
|
|
172
|
+
}
|
|
173
|
+
catch (f) { }
|
|
174
|
+
e =
|
|
175
|
+
!1;
|
|
176
|
+
}
|
|
177
|
+
e || (b = null);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
else
|
|
181
|
+
"mouseover" == c ? b = a.fromElement : "mouseout" == c && (b = a.toElement);
|
|
182
|
+
this.relatedTarget = b;
|
|
183
|
+
d ? (this.clientX = void 0 !== d.clientX ? d.clientX : d.pageX, this.clientY = void 0 !== d.clientY ? d.clientY : d.pageY, this.screenX = d.screenX || 0, this.screenY = d.screenY || 0) : (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);
|
|
184
|
+
this.button = a.button;
|
|
185
|
+
this.key = a.key || "";
|
|
186
|
+
this.ctrlKey = a.ctrlKey;
|
|
187
|
+
this.altKey = a.altKey;
|
|
188
|
+
this.shiftKey =
|
|
189
|
+
a.shiftKey;
|
|
190
|
+
this.metaKey = a.metaKey;
|
|
191
|
+
this.pointerId = a.pointerId || 0;
|
|
192
|
+
this.pointerType = "string" === typeof a.pointerType ? a.pointerType : Ga[a.pointerType] || "";
|
|
193
|
+
this.state = a.state;
|
|
194
|
+
this.i = a;
|
|
195
|
+
a.defaultPrevented && A.$.h.call(this);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
r(A, w);
|
|
199
|
+
var Ga = { 2: "touch", 3: "pen", 4: "mouse" };
|
|
200
|
+
A.prototype.h = function () { A.$.h.call(this); var a = this.i; a.preventDefault ? a.preventDefault() : a.returnValue = !1; };
|
|
201
|
+
var Ha = "closure_listenable_" + (1E6 * Math.random() | 0);
|
|
202
|
+
var Ia = 0;
|
|
203
|
+
function Ja(a, b, c, d, e) { this.listener = a; this.proxy = null; this.src = b; this.type = c; this.capture = !!d; this.la = e; this.key = ++Ia; this.fa = this.ia = !1; }
|
|
204
|
+
function Ka(a) { a.fa = !0; a.listener = null; a.proxy = null; a.src = null; a.la = null; }
|
|
205
|
+
function Na(a, b, c) { for (var d in a)
|
|
206
|
+
b.call(c, a[d], d, a); }
|
|
207
|
+
function Oa(a, b) { for (var c in a)
|
|
208
|
+
b.call(void 0, a[c], c, a); }
|
|
209
|
+
function Pa(a) { var b = {}; for (var c in a)
|
|
210
|
+
b[c] = a[c]; return b; }
|
|
211
|
+
var Qa = "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
|
|
212
|
+
function Ra(a, b) { var c, d; for (var e = 1; e < arguments.length; e++) {
|
|
213
|
+
d = arguments[e];
|
|
214
|
+
for (c in d)
|
|
215
|
+
a[c] = d[c];
|
|
216
|
+
for (var f = 0; f < Qa.length; f++)
|
|
217
|
+
c = Qa[f], Object.prototype.hasOwnProperty.call(d, c) && (a[c] = d[c]);
|
|
218
|
+
} }
|
|
219
|
+
function Sa(a) { this.src = a; this.g = {}; this.h = 0; }
|
|
220
|
+
Sa.prototype.add = function (a, b, c, d, e) { var f = a.toString(); a = this.g[f]; a || (a = this.g[f] = [], this.h++); var h = Ta(a, b, d, e); -1 < h ? (b = a[h], c || (b.ia = !1)) : (b = new Ja(b, this.src, f, !!d, e), b.ia = c, a.push(b)); return b; };
|
|
221
|
+
function Ua(a, b) { var c = b.type; if (c in a.g) {
|
|
222
|
+
var d = a.g[c], e = ka(d, b), f;
|
|
223
|
+
(f = 0 <= e) && Array.prototype.splice.call(d, e, 1);
|
|
224
|
+
f && (Ka(b), 0 == a.g[c].length && (delete a.g[c], a.h--));
|
|
225
|
+
} }
|
|
226
|
+
function Ta(a, b, c, d) { for (var e = 0; e < a.length; ++e) {
|
|
227
|
+
var f = a[e];
|
|
228
|
+
if (!f.fa && f.listener == b && f.capture == !!c && f.la == d)
|
|
229
|
+
return e;
|
|
230
|
+
} return -1; }
|
|
231
|
+
var Va = "closure_lm_" + (1E6 * Math.random() | 0), Wa = {};
|
|
232
|
+
function Ya(a, b, c, d, e) { if (d && d.once)
|
|
233
|
+
return Za(a, b, c, d, e); if (Array.isArray(b)) {
|
|
234
|
+
for (var f = 0; f < b.length; f++)
|
|
235
|
+
Ya(a, b[f], c, d, e);
|
|
236
|
+
return null;
|
|
237
|
+
} c = $a(c); return a && a[Ha] ? a.O(b, c, p(d) ? !!d.capture : !!d, e) : ab(a, b, c, !1, d, e); }
|
|
238
|
+
function ab(a, b, c, d, e, f) { if (!b)
|
|
239
|
+
throw Error("Invalid event type"); var h = p(e) ? !!e.capture : !!e, n = bb(a); n || (a[Va] = n = new Sa(a)); c = n.add(b, c, d, h, f); if (c.proxy)
|
|
240
|
+
return c; d = cb(); c.proxy = d; d.src = a; d.listener = c; if (a.addEventListener)
|
|
241
|
+
oa || (e = h), void 0 === e && (e = !1), a.addEventListener(b.toString(), d, e);
|
|
242
|
+
else if (a.attachEvent)
|
|
243
|
+
a.attachEvent(db(b.toString()), d);
|
|
244
|
+
else if (a.addListener && a.removeListener)
|
|
245
|
+
a.addListener(d);
|
|
246
|
+
else
|
|
247
|
+
throw Error("addEventListener and attachEvent are unavailable."); return c; }
|
|
248
|
+
function cb() { function a(c) { return b.call(a.src, a.listener, c); } var b = eb; return a; }
|
|
249
|
+
function Za(a, b, c, d, e) { if (Array.isArray(b)) {
|
|
250
|
+
for (var f = 0; f < b.length; f++)
|
|
251
|
+
Za(a, b[f], c, d, e);
|
|
252
|
+
return null;
|
|
253
|
+
} c = $a(c); return a && a[Ha] ? a.P(b, c, p(d) ? !!d.capture : !!d, e) : ab(a, b, c, !0, d, e); }
|
|
254
|
+
function fb(a, b, c, d, e) { if (Array.isArray(b))
|
|
255
|
+
for (var f = 0; f < b.length; f++)
|
|
256
|
+
fb(a, b[f], c, d, e);
|
|
257
|
+
else
|
|
258
|
+
(d = p(d) ? !!d.capture : !!d, c = $a(c), a && a[Ha]) ? (a = a.i, b = String(b).toString(), b in a.g && (f = a.g[b], c = Ta(f, c, d, e), -1 < c && (Ka(f[c]), Array.prototype.splice.call(f, c, 1), 0 == f.length && (delete a.g[b], a.h--)))) : a && (a = bb(a)) && (b = a.g[b.toString()], a = -1, b && (a = Ta(b, c, d, e)), (c = -1 < a ? b[a] : null) && gb(c)); }
|
|
259
|
+
function gb(a) { if ("number" !== typeof a && a && !a.fa) {
|
|
260
|
+
var b = a.src;
|
|
261
|
+
if (b && b[Ha])
|
|
262
|
+
Ua(b.i, a);
|
|
263
|
+
else {
|
|
264
|
+
var c = a.type, d = a.proxy;
|
|
265
|
+
b.removeEventListener ? b.removeEventListener(c, d, a.capture) : b.detachEvent ? b.detachEvent(db(c), d) : b.addListener && b.removeListener && b.removeListener(d);
|
|
266
|
+
(c = bb(b)) ? (Ua(c, a), 0 == c.h && (c.src = null, b[Va] = null)) : Ka(a);
|
|
267
|
+
}
|
|
268
|
+
} }
|
|
269
|
+
function db(a) { return a in Wa ? Wa[a] : Wa[a] = "on" + a; }
|
|
270
|
+
function eb(a, b) { if (a.fa)
|
|
271
|
+
a = !0;
|
|
272
|
+
else {
|
|
273
|
+
b = new A(b, this);
|
|
274
|
+
var c = a.listener, d = a.la || a.src;
|
|
275
|
+
a.ia && gb(a);
|
|
276
|
+
a = c.call(d, b);
|
|
277
|
+
} return a; }
|
|
278
|
+
function bb(a) { a = a[Va]; return a instanceof Sa ? a : null; }
|
|
279
|
+
var hb = "__closure_events_fn_" + (1E9 * Math.random() >>> 0);
|
|
280
|
+
function $a(a) { if ("function" === typeof a)
|
|
281
|
+
return a; a[hb] || (a[hb] = function (b) { return a.handleEvent(b); }); return a[hb]; }
|
|
282
|
+
function B() { v.call(this); this.i = new Sa(this); this.S = this; this.J = null; }
|
|
283
|
+
r(B, v);
|
|
284
|
+
B.prototype[Ha] = !0;
|
|
285
|
+
B.prototype.removeEventListener = function (a, b, c, d) { fb(this, a, b, c, d); };
|
|
286
|
+
function C(a, b) { var c, d = a.J; if (d)
|
|
287
|
+
for (c = []; d; d = d.J)
|
|
288
|
+
c.push(d); a = a.S; d = b.type || b; if ("string" === typeof b)
|
|
289
|
+
b = new w(b, a);
|
|
290
|
+
else if (b instanceof w)
|
|
291
|
+
b.target = b.target || a;
|
|
292
|
+
else {
|
|
293
|
+
var e = b;
|
|
294
|
+
b = new w(d, a);
|
|
295
|
+
Ra(b, e);
|
|
296
|
+
} e = !0; if (c)
|
|
297
|
+
for (var f = c.length - 1; 0 <= f; f--) {
|
|
298
|
+
var h = b.g = c[f];
|
|
299
|
+
e = ib(h, d, !0, b) && e;
|
|
300
|
+
} h = b.g = a; e = ib(h, d, !0, b) && e; e = ib(h, d, !1, b) && e; if (c)
|
|
301
|
+
for (f = 0; f < c.length; f++)
|
|
302
|
+
h = b.g = c[f], e = ib(h, d, !1, b) && e; }
|
|
303
|
+
B.prototype.N = function () { B.$.N.call(this); if (this.i) {
|
|
304
|
+
var a = this.i, c;
|
|
305
|
+
for (c in a.g) {
|
|
306
|
+
for (var d = a.g[c], e = 0; e < d.length; e++)
|
|
307
|
+
Ka(d[e]);
|
|
308
|
+
delete a.g[c];
|
|
309
|
+
a.h--;
|
|
310
|
+
}
|
|
311
|
+
} this.J = null; };
|
|
312
|
+
B.prototype.O = function (a, b, c, d) { return this.i.add(String(a), b, !1, c, d); };
|
|
313
|
+
B.prototype.P = function (a, b, c, d) { return this.i.add(String(a), b, !0, c, d); };
|
|
314
|
+
function ib(a, b, c, d) { b = a.i.g[String(b)]; if (!b)
|
|
315
|
+
return !0; b = b.concat(); for (var e = !0, f = 0; f < b.length; ++f) {
|
|
316
|
+
var h = b[f];
|
|
317
|
+
if (h && !h.fa && h.capture == c) {
|
|
318
|
+
var n = h.listener, t = h.la || h.src;
|
|
319
|
+
h.ia && Ua(a.i, h);
|
|
320
|
+
e = !1 !== n.call(t, d) && e;
|
|
321
|
+
}
|
|
322
|
+
} return e && !d.defaultPrevented; }
|
|
323
|
+
var jb = l.JSON.stringify;
|
|
324
|
+
var kb = /** @class */ (function () {
|
|
325
|
+
function kb(a, b) {
|
|
326
|
+
this.i = a;
|
|
327
|
+
this.j = b;
|
|
328
|
+
this.h = 0;
|
|
329
|
+
this.g = null;
|
|
330
|
+
}
|
|
331
|
+
kb.prototype.get = function () { var a; 0 < this.h ? (this.h--, a = this.g, this.g = a.next, a.next = null) : a = this.i(); return a; };
|
|
332
|
+
return kb;
|
|
333
|
+
}());
|
|
334
|
+
function lb() { var a = mb; var b = null; a.g && (b = a.g, a.g = a.g.next, a.g || (a.h = null), b.next = null); return b; }
|
|
335
|
+
var nb = /** @class */ (function () {
|
|
336
|
+
function nb() {
|
|
337
|
+
this.h = this.g = null;
|
|
338
|
+
}
|
|
339
|
+
nb.prototype.add = function (a, b) { var c = ob.get(); c.set(a, b); this.h ? this.h.next = c : this.g = c; this.h = c; };
|
|
340
|
+
return nb;
|
|
341
|
+
}());
|
|
342
|
+
var ob = new kb(function () { return new pb; }, function (a) { return a.reset(); });
|
|
343
|
+
var pb = /** @class */ (function () {
|
|
344
|
+
function pb() {
|
|
345
|
+
this.next = this.g = this.h = null;
|
|
346
|
+
}
|
|
347
|
+
pb.prototype.set = function (a, b) { this.h = a; this.g = b; this.next = null; };
|
|
348
|
+
pb.prototype.reset = function () { this.next = this.g = this.h = null; };
|
|
349
|
+
return pb;
|
|
350
|
+
}());
|
|
351
|
+
function qb(a) { var b = 1; a = a.split(":"); var c = []; for (; 0 < b && a.length;)
|
|
352
|
+
c.push(a.shift()), b--; a.length && c.push(a.join(":")); return c; }
|
|
353
|
+
function rb(a) { l.setTimeout(function () { throw a; }, 0); }
|
|
354
|
+
var sb, tb = !1, mb = new nb, vb = function () { var a = l.Promise.resolve(void 0); sb = function () { a.then(ub); }; };
|
|
355
|
+
var ub = function () { for (var a; a = lb();) {
|
|
356
|
+
try {
|
|
357
|
+
a.h.call(a.g);
|
|
358
|
+
}
|
|
359
|
+
catch (c) {
|
|
360
|
+
rb(c);
|
|
361
|
+
}
|
|
362
|
+
var b = ob;
|
|
363
|
+
b.j(a);
|
|
364
|
+
100 > b.h && (b.h++, a.next = b.g, b.g = a);
|
|
365
|
+
} tb = !1; };
|
|
366
|
+
function wb(a, b) { B.call(this); this.h = a || 1; this.g = b || l; this.j = q(this.qb, this); this.l = Date.now(); }
|
|
367
|
+
r(wb, B);
|
|
368
|
+
k = wb.prototype;
|
|
369
|
+
k.ga = !1;
|
|
370
|
+
k.T = null;
|
|
371
|
+
k.qb = function () { if (this.ga) {
|
|
372
|
+
var a = Date.now() - this.l;
|
|
373
|
+
0 < a && a < .8 * this.h ? this.T = this.g.setTimeout(this.j, this.h - a) : (this.T && (this.g.clearTimeout(this.T), this.T = null), C(this, "tick"), this.ga && (xb(this), this.start()));
|
|
374
|
+
} };
|
|
375
|
+
k.start = function () { this.ga = !0; this.T || (this.T = this.g.setTimeout(this.j, this.h), this.l = Date.now()); };
|
|
376
|
+
function xb(a) { a.ga = !1; a.T && (a.g.clearTimeout(a.T), a.T = null); }
|
|
377
|
+
k.N = function () { wb.$.N.call(this); xb(this); delete this.g; };
|
|
378
|
+
function yb(a, b, c) { if ("function" === typeof a)
|
|
379
|
+
c && (a = q(a, c));
|
|
380
|
+
else if (a && "function" == typeof a.handleEvent)
|
|
381
|
+
a = q(a.handleEvent, a);
|
|
382
|
+
else
|
|
383
|
+
throw Error("Invalid listener argument"); return 2147483647 < Number(b) ? -1 : l.setTimeout(a, b || 0); }
|
|
384
|
+
function zb(a) { a.g = yb(function () { a.g = null; a.i && (a.i = !1, zb(a)); }, a.j); var b = a.h; a.h = null; a.m.apply(null, b); }
|
|
385
|
+
var Ab = /** @class */ (function (_super) {
|
|
386
|
+
__extends(Ab, _super);
|
|
387
|
+
function Ab(a, b) {
|
|
388
|
+
var _this = _super.call(this) || this;
|
|
389
|
+
_this.m = a;
|
|
390
|
+
_this.j = b;
|
|
391
|
+
_this.h = null;
|
|
392
|
+
_this.i = !1;
|
|
393
|
+
_this.g = null;
|
|
394
|
+
return _this;
|
|
395
|
+
}
|
|
396
|
+
Ab.prototype.l = function (a) { this.h = arguments; this.g ? this.i = !0 : zb(this); };
|
|
397
|
+
Ab.prototype.N = function () { _super.prototype.N.call(this); this.g && (l.clearTimeout(this.g), this.g = null, this.i = !1, this.h = null); };
|
|
398
|
+
return Ab;
|
|
399
|
+
}(v));
|
|
400
|
+
function Bb(a) { v.call(this); this.h = a; this.g = {}; }
|
|
401
|
+
r(Bb, v);
|
|
402
|
+
var Cb = [];
|
|
403
|
+
function Db(a, b, c, d) { Array.isArray(c) || (c && (Cb[0] = c.toString()), c = Cb); for (var e = 0; e < c.length; e++) {
|
|
404
|
+
var f = Ya(b, c[e], d || a.handleEvent, !1, a.h || a);
|
|
405
|
+
if (!f)
|
|
406
|
+
break;
|
|
407
|
+
a.g[f.key] = f;
|
|
408
|
+
} }
|
|
409
|
+
function Fb(a) { Na(a.g, function (b, c) { this.g.hasOwnProperty(c) && gb(b); }, a); a.g = {}; }
|
|
410
|
+
Bb.prototype.N = function () { Bb.$.N.call(this); Fb(this); };
|
|
411
|
+
Bb.prototype.handleEvent = function () { throw Error("EventHandler.handleEvent not implemented"); };
|
|
412
|
+
function Gb() { this.g = !0; }
|
|
413
|
+
Gb.prototype.Ea = function () { this.g = !1; };
|
|
414
|
+
function Hb(a, b, c, d, e, f) { a.info(function () { if (a.g)
|
|
415
|
+
if (f) {
|
|
416
|
+
var h = "";
|
|
417
|
+
for (var n = f.split("&"), t = 0; t < n.length; t++) {
|
|
418
|
+
var m = n[t].split("=");
|
|
419
|
+
if (1 < m.length) {
|
|
420
|
+
var u = m[0];
|
|
421
|
+
m = m[1];
|
|
422
|
+
var L = u.split("_");
|
|
423
|
+
h = 2 <= L.length && "type" == L[1] ? h + (u + "=" + m + "&") : h + (u + "=redacted&");
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
else
|
|
428
|
+
h = null;
|
|
429
|
+
else
|
|
430
|
+
h = f; return "XMLHTTP REQ (" + d + ") [attempt " + e + "]: " + b + "\n" + c + "\n" + h; }); }
|
|
431
|
+
function Ib(a, b, c, d, e, f, h) { a.info(function () { return "XMLHTTP RESP (" + d + ") [ attempt " + e + "]: " + b + "\n" + c + "\n" + f + " " + h; }); }
|
|
432
|
+
function D(a, b, c, d) { a.info(function () { return "XMLHTTP TEXT (" + b + "): " + Jb(a, c) + (d ? " " + d : ""); }); }
|
|
433
|
+
function Kb(a, b) { a.info(function () { return "TIMEOUT: " + b; }); }
|
|
434
|
+
Gb.prototype.info = function () { };
|
|
435
|
+
function Jb(a, b) { if (!a.g)
|
|
436
|
+
return b; if (!b)
|
|
437
|
+
return null; try {
|
|
438
|
+
var c = JSON.parse(b);
|
|
439
|
+
if (c)
|
|
440
|
+
for (a = 0; a < c.length; a++)
|
|
441
|
+
if (Array.isArray(c[a])) {
|
|
442
|
+
var d = c[a];
|
|
443
|
+
if (!(2 > d.length)) {
|
|
444
|
+
var e = d[1];
|
|
445
|
+
if (Array.isArray(e) && !(1 > e.length)) {
|
|
446
|
+
var f = e[0];
|
|
447
|
+
if ("noop" != f && "stop" != f && "close" != f)
|
|
448
|
+
for (var h = 1; h < e.length; h++)
|
|
449
|
+
e[h] = "";
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
return jb(c);
|
|
454
|
+
}
|
|
455
|
+
catch (n) {
|
|
456
|
+
return b;
|
|
457
|
+
} }
|
|
458
|
+
var E = {}, Lb = null;
|
|
459
|
+
function Mb() { return Lb = Lb || new B; }
|
|
460
|
+
E.Ta = "serverreachability";
|
|
461
|
+
function Nb(a) { w.call(this, E.Ta, a); }
|
|
462
|
+
r(Nb, w);
|
|
463
|
+
function Ob(a) { var b = Mb(); C(b, new Nb(b)); }
|
|
464
|
+
E.STAT_EVENT = "statevent";
|
|
465
|
+
function Pb(a, b) { w.call(this, E.STAT_EVENT, a); this.stat = b; }
|
|
466
|
+
r(Pb, w);
|
|
467
|
+
function F(a) { var b = Mb(); C(b, new Pb(b, a)); }
|
|
468
|
+
E.Ua = "timingevent";
|
|
469
|
+
function Qb(a, b) { w.call(this, E.Ua, a); this.size = b; }
|
|
470
|
+
r(Qb, w);
|
|
471
|
+
function Rb(a, b) { if ("function" !== typeof a)
|
|
472
|
+
throw Error("Fn must not be null and must be a function"); return l.setTimeout(function () { a(); }, b); }
|
|
473
|
+
var Sb = { NO_ERROR: 0, rb: 1, Eb: 2, Db: 3, yb: 4, Cb: 5, Fb: 6, Qa: 7, TIMEOUT: 8, Ib: 9 };
|
|
474
|
+
var Tb = { wb: "complete", Sb: "success", Ra: "error", Qa: "abort", Kb: "ready", Lb: "readystatechange", TIMEOUT: "timeout", Gb: "incrementaldata", Jb: "progress", zb: "downloadprogress", $b: "uploadprogress" };
|
|
475
|
+
function Ub() { }
|
|
476
|
+
Ub.prototype.h = null;
|
|
477
|
+
function Vb(a) { return a.h || (a.h = a.i()); }
|
|
478
|
+
function Wb() { }
|
|
479
|
+
var Xb = { OPEN: "a", vb: "b", Ra: "c", Hb: "d" };
|
|
480
|
+
function Yb() { w.call(this, "d"); }
|
|
481
|
+
r(Yb, w);
|
|
482
|
+
function Zb() { w.call(this, "c"); }
|
|
483
|
+
r(Zb, w);
|
|
484
|
+
var $b;
|
|
485
|
+
function ac() { }
|
|
486
|
+
r(ac, Ub);
|
|
487
|
+
ac.prototype.g = function () { return new XMLHttpRequest; };
|
|
488
|
+
ac.prototype.i = function () { return {}; };
|
|
489
|
+
$b = new ac;
|
|
490
|
+
function bc(a, b, c, d) { this.l = a; this.j = b; this.m = c; this.W = d || 1; this.U = new Bb(this); this.P = cc; a = va ? 125 : void 0; this.V = new wb(a); this.I = null; this.i = !1; this.s = this.A = this.v = this.L = this.G = this.Y = this.B = null; this.F = []; this.g = null; this.C = 0; this.o = this.u = null; this.ca = -1; this.J = !1; this.O = 0; this.M = null; this.ba = this.K = this.aa = this.S = !1; this.h = new dc; }
|
|
491
|
+
function dc() { this.i = null; this.g = ""; this.h = !1; }
|
|
492
|
+
var cc = 45E3, ec = {}, fc = {};
|
|
493
|
+
k = bc.prototype;
|
|
494
|
+
k.setTimeout = function (a) { this.P = a; };
|
|
495
|
+
function gc(a, b, c) { a.L = 1; a.v = hc(G(b)); a.s = c; a.S = !0; ic(a, null); }
|
|
496
|
+
function ic(a, b) { a.G = Date.now(); jc(a); a.A = G(a.v); var c = a.A, d = a.W; Array.isArray(d) || (d = [String(d)]); kc(c.i, "t", d); a.C = 0; c = a.l.J; a.h = new dc; a.g = lc(a.l, c ? b : null, !a.s); 0 < a.O && (a.M = new Ab(q(a.Pa, a, a.g), a.O)); Db(a.U, a.g, "readystatechange", a.nb); b = a.I ? Pa(a.I) : {}; a.s ? (a.u || (a.u = "POST"), b["Content-Type"] = "application/x-www-form-urlencoded", a.g.ha(a.A, a.u, a.s, b)) : (a.u = "GET", a.g.ha(a.A, a.u, null, b)); Ob(); Hb(a.j, a.u, a.A, a.m, a.W, a.s); }
|
|
497
|
+
k.nb = function (a) { a = a.target; var b = this.M; b && 3 == H(a) ? b.l() : this.Pa(a); };
|
|
498
|
+
k.Pa = function (a) {
|
|
499
|
+
try {
|
|
500
|
+
if (a == this.g)
|
|
501
|
+
a: {
|
|
502
|
+
var u = H(this.g);
|
|
503
|
+
var b = this.g.Ia();
|
|
504
|
+
var L = this.g.da();
|
|
505
|
+
if (!(3 > u) && (3 != u || va || this.g && (this.h.h || this.g.ja() || mc(this.g)))) {
|
|
506
|
+
this.J || 4 != u || 7 == b || (8 == b || 0 >= L ? Ob(3) : Ob(2));
|
|
507
|
+
nc(this);
|
|
508
|
+
var c = this.g.da();
|
|
509
|
+
this.ca = c;
|
|
510
|
+
b: if (oc(this)) {
|
|
511
|
+
var d = mc(this.g);
|
|
512
|
+
a = "";
|
|
513
|
+
var e = d.length, f = 4 == H(this.g);
|
|
514
|
+
if (!this.h.i) {
|
|
515
|
+
if ("undefined" === typeof TextDecoder) {
|
|
516
|
+
I(this);
|
|
517
|
+
pc(this);
|
|
518
|
+
var h = "";
|
|
519
|
+
break b;
|
|
520
|
+
}
|
|
521
|
+
this.h.i = new l.TextDecoder;
|
|
522
|
+
}
|
|
523
|
+
for (b = 0; b < e; b++)
|
|
524
|
+
this.h.h = !0, a += this.h.i.decode(d[b], { stream: f && b == e - 1 });
|
|
525
|
+
d.splice(0, e);
|
|
526
|
+
this.h.g += a;
|
|
527
|
+
this.C = 0;
|
|
528
|
+
h = this.h.g;
|
|
529
|
+
}
|
|
530
|
+
else
|
|
531
|
+
h = this.g.ja();
|
|
532
|
+
this.i = 200 == c;
|
|
533
|
+
Ib(this.j, this.u, this.A, this.m, this.W, u, c);
|
|
534
|
+
if (this.i) {
|
|
535
|
+
if (this.aa && !this.K) {
|
|
536
|
+
b: {
|
|
537
|
+
if (this.g) {
|
|
538
|
+
var n, t = this.g;
|
|
539
|
+
if ((n = t.g ? t.g.getResponseHeader("X-HTTP-Initial-Response") : null) && !x(n)) {
|
|
540
|
+
var m = n;
|
|
541
|
+
break b;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
m = null;
|
|
545
|
+
}
|
|
546
|
+
if (c = m)
|
|
547
|
+
D(this.j, this.m, c, "Initial handshake response via X-HTTP-Initial-Response"), this.K = !0, qc(this, c);
|
|
548
|
+
else {
|
|
549
|
+
this.i = !1;
|
|
550
|
+
this.o = 3;
|
|
551
|
+
F(12);
|
|
552
|
+
I(this);
|
|
553
|
+
pc(this);
|
|
554
|
+
break a;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
this.S ? (rc(this, u, h), va && this.i && 3 == u && (Db(this.U, this.V, "tick", this.mb),
|
|
558
|
+
this.V.start())) : (D(this.j, this.m, h, null), qc(this, h));
|
|
559
|
+
4 == u && I(this);
|
|
560
|
+
this.i && !this.J && (4 == u ? sc(this.l, this) : (this.i = !1, jc(this)));
|
|
561
|
+
}
|
|
562
|
+
else
|
|
563
|
+
tc(this.g), 400 == c && 0 < h.indexOf("Unknown SID") ? (this.o = 3, F(12)) : (this.o = 0, F(13)), I(this), pc(this);
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
catch (u) { }
|
|
568
|
+
finally { }
|
|
569
|
+
};
|
|
570
|
+
function oc(a) { return a.g ? "GET" == a.u && 2 != a.L && a.l.Ha : !1; }
|
|
571
|
+
function rc(a, b, c) {
|
|
572
|
+
var d = !0, e;
|
|
573
|
+
for (; !a.J && a.C < c.length;)
|
|
574
|
+
if (e = uc(a, c), e == fc) {
|
|
575
|
+
4 == b && (a.o = 4, F(14), d = !1);
|
|
576
|
+
D(a.j, a.m, null, "[Incomplete Response]");
|
|
577
|
+
break;
|
|
578
|
+
}
|
|
579
|
+
else if (e == ec) {
|
|
580
|
+
a.o = 4;
|
|
581
|
+
F(15);
|
|
582
|
+
D(a.j, a.m, c, "[Invalid Chunk]");
|
|
583
|
+
d = !1;
|
|
584
|
+
break;
|
|
585
|
+
}
|
|
586
|
+
else
|
|
587
|
+
D(a.j, a.m, e, null), qc(a, e);
|
|
588
|
+
oc(a) && e != fc && e != ec && (a.h.g = "", a.C = 0);
|
|
589
|
+
4 != b || 0 != c.length || a.h.h || (a.o = 1, F(16), d = !1);
|
|
590
|
+
a.i = a.i && d;
|
|
591
|
+
d ? 0 < c.length && !a.ba && (a.ba = !0, b = a.l, b.g == a && b.ca && !b.M && (b.l.info("Great, no buffering proxy detected. Bytes received: " + c.length), vc(b), b.M = !0, F(11))) : (D(a.j, a.m, c, "[Invalid Chunked Response]"), I(a), pc(a));
|
|
592
|
+
}
|
|
593
|
+
k.mb = function () { if (this.g) {
|
|
594
|
+
var a = H(this.g), b = this.g.ja();
|
|
595
|
+
this.C < b.length && (nc(this), rc(this, a, b), this.i && 4 != a && jc(this));
|
|
596
|
+
} };
|
|
597
|
+
function uc(a, b) { var c = a.C, d = b.indexOf("\n", c); if (-1 == d)
|
|
598
|
+
return fc; c = Number(b.substring(c, d)); if (isNaN(c))
|
|
599
|
+
return ec; d += 1; if (d + c > b.length)
|
|
600
|
+
return fc; b = b.slice(d, d + c); a.C = d + c; return b; }
|
|
601
|
+
k.cancel = function () { this.J = !0; I(this); };
|
|
602
|
+
function jc(a) { a.Y = Date.now() + a.P; wc(a, a.P); }
|
|
603
|
+
function wc(a, b) { if (null != a.B)
|
|
604
|
+
throw Error("WatchDog timer not null"); a.B = Rb(q(a.lb, a), b); }
|
|
605
|
+
function nc(a) { a.B && (l.clearTimeout(a.B), a.B = null); }
|
|
606
|
+
k.lb = function () { this.B = null; var a = Date.now(); 0 <= a - this.Y ? (Kb(this.j, this.A), 2 != this.L && (Ob(), F(17)), I(this), this.o = 2, pc(this)) : wc(this, this.Y - a); };
|
|
607
|
+
function pc(a) { 0 == a.l.H || a.J || sc(a.l, a); }
|
|
608
|
+
function I(a) { nc(a); var b = a.M; b && "function" == typeof b.sa && b.sa(); a.M = null; xb(a.V); Fb(a.U); a.g && (b = a.g, a.g = null, b.abort(), b.sa()); }
|
|
609
|
+
function qc(a, b) {
|
|
610
|
+
try {
|
|
611
|
+
var c = a.l;
|
|
612
|
+
if (0 != c.H && (c.g == a || xc(c.i, a)))
|
|
613
|
+
if (!a.K && xc(c.i, a) && 3 == c.H) {
|
|
614
|
+
try {
|
|
615
|
+
var d = c.Ja.g.parse(b);
|
|
616
|
+
}
|
|
617
|
+
catch (m) {
|
|
618
|
+
d = null;
|
|
619
|
+
}
|
|
620
|
+
if (Array.isArray(d) && 3 == d.length) {
|
|
621
|
+
var e = d;
|
|
622
|
+
if (0 == e[0])
|
|
623
|
+
a: {
|
|
624
|
+
if (!c.u) {
|
|
625
|
+
if (c.g)
|
|
626
|
+
if (c.g.G + 3E3 < a.G)
|
|
627
|
+
yc(c), zc(c);
|
|
628
|
+
else
|
|
629
|
+
break a;
|
|
630
|
+
Ac(c);
|
|
631
|
+
F(18);
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
else
|
|
635
|
+
c.Fa = e[1], 0 < c.Fa - c.V && 37500 > e[2] && c.G && 0 == c.A && !c.v && (c.v = Rb(q(c.ib, c), 6E3));
|
|
636
|
+
if (1 >= Bc(c.i) && c.oa) {
|
|
637
|
+
try {
|
|
638
|
+
c.oa();
|
|
639
|
+
}
|
|
640
|
+
catch (m) { }
|
|
641
|
+
c.oa = void 0;
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
else
|
|
645
|
+
J(c, 11);
|
|
646
|
+
}
|
|
647
|
+
else if ((a.K || c.g == a) && yc(c), !x(b))
|
|
648
|
+
for (e = c.Ja.g.parse(b), b = 0; b < e.length; b++) {
|
|
649
|
+
var m = e[b];
|
|
650
|
+
c.V =
|
|
651
|
+
m[0];
|
|
652
|
+
m = m[1];
|
|
653
|
+
if (2 == c.H)
|
|
654
|
+
if ("c" == m[0]) {
|
|
655
|
+
c.K = m[1];
|
|
656
|
+
c.pa = m[2];
|
|
657
|
+
var u = m[3];
|
|
658
|
+
null != u && (c.ra = u, c.l.info("VER=" + c.ra));
|
|
659
|
+
var L = m[4];
|
|
660
|
+
null != L && (c.Ga = L, c.l.info("SVER=" + c.Ga));
|
|
661
|
+
var La = m[5];
|
|
662
|
+
null != La && "number" === typeof La && 0 < La && (d = 1.5 * La, c.L = d, c.l.info("backChannelRequestTimeoutMs_=" + d));
|
|
663
|
+
d = c;
|
|
664
|
+
var la = a.g;
|
|
665
|
+
if (la) {
|
|
666
|
+
var Ma = la.g ? la.g.getResponseHeader("X-Client-Wire-Protocol") : null;
|
|
667
|
+
if (Ma) {
|
|
668
|
+
var f = d.i;
|
|
669
|
+
f.g || -1 == Ma.indexOf("spdy") && -1 == Ma.indexOf("quic") && -1 == Ma.indexOf("h2") || (f.j = f.l, f.g = new Set, f.h && (Cc(f, f.h), f.h = null));
|
|
670
|
+
}
|
|
671
|
+
if (d.F) {
|
|
672
|
+
var Eb = la.g ? la.g.getResponseHeader("X-HTTP-Session-Id") : null;
|
|
673
|
+
Eb && (d.Da = Eb, K(d.I, d.F, Eb));
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
c.H = 3;
|
|
677
|
+
c.h && c.h.Ba();
|
|
678
|
+
c.ca && (c.S = Date.now() - a.G, c.l.info("Handshake RTT: " + c.S + "ms"));
|
|
679
|
+
d = c;
|
|
680
|
+
var h = a;
|
|
681
|
+
d.wa = Dc(d, d.J ? d.pa : null, d.Y);
|
|
682
|
+
if (h.K) {
|
|
683
|
+
Ec(d.i, h);
|
|
684
|
+
var n = h, t = d.L;
|
|
685
|
+
t && n.setTimeout(t);
|
|
686
|
+
n.B && (nc(n), jc(n));
|
|
687
|
+
d.g = h;
|
|
688
|
+
}
|
|
689
|
+
else
|
|
690
|
+
Fc(d);
|
|
691
|
+
0 < c.j.length && Gc(c);
|
|
692
|
+
}
|
|
693
|
+
else
|
|
694
|
+
"stop" != m[0] && "close" != m[0] || J(c, 7);
|
|
695
|
+
else
|
|
696
|
+
3 == c.H && ("stop" == m[0] || "close" == m[0] ? "stop" == m[0] ? J(c, 7) : Hc(c) : "noop" != m[0] && c.h && c.h.Aa(m), c.A = 0);
|
|
697
|
+
}
|
|
698
|
+
Ob(4);
|
|
699
|
+
}
|
|
700
|
+
catch (m) { }
|
|
701
|
+
}
|
|
702
|
+
function Ic(a) { if (a.Z && "function" == typeof a.Z)
|
|
703
|
+
return a.Z(); if ("undefined" !== typeof Map && a instanceof Map || "undefined" !== typeof Set && a instanceof Set)
|
|
704
|
+
return Array.from(a.values()); if ("string" === typeof a)
|
|
705
|
+
return a.split(""); if (aa(a)) {
|
|
706
|
+
for (var b = [], c = a.length, d = 0; d < c; d++)
|
|
707
|
+
b.push(a[d]);
|
|
708
|
+
return b;
|
|
709
|
+
} b = []; c = 0; for (d in a)
|
|
710
|
+
b[c++] = a[d]; return b; }
|
|
711
|
+
function Jc(a) { if (a.ta && "function" == typeof a.ta)
|
|
712
|
+
return a.ta(); if (!a.Z || "function" != typeof a.Z) {
|
|
713
|
+
if ("undefined" !== typeof Map && a instanceof Map)
|
|
714
|
+
return Array.from(a.keys());
|
|
715
|
+
if (!("undefined" !== typeof Set && a instanceof Set)) {
|
|
716
|
+
if (aa(a) || "string" === typeof a) {
|
|
717
|
+
var b = [];
|
|
718
|
+
a = a.length;
|
|
719
|
+
for (var c = 0; c < a; c++)
|
|
720
|
+
b.push(c);
|
|
721
|
+
return b;
|
|
722
|
+
}
|
|
723
|
+
b = [];
|
|
724
|
+
c = 0;
|
|
725
|
+
for (var d in a)
|
|
726
|
+
b[c++] = d;
|
|
727
|
+
return b;
|
|
728
|
+
}
|
|
729
|
+
} }
|
|
730
|
+
function Kc(a, b) { if (a.forEach && "function" == typeof a.forEach)
|
|
731
|
+
a.forEach(b, void 0);
|
|
732
|
+
else if (aa(a) || "string" === typeof a)
|
|
733
|
+
Array.prototype.forEach.call(a, b, void 0);
|
|
734
|
+
else
|
|
735
|
+
for (var c = Jc(a), d = Ic(a), e = d.length, f = 0; f < e; f++)
|
|
736
|
+
b.call(void 0, d[f], c && c[f], a); }
|
|
737
|
+
var Lc = RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");
|
|
738
|
+
function Mc(a, b) { if (a) {
|
|
739
|
+
a = a.split("&");
|
|
740
|
+
for (var c = 0; c < a.length; c++) {
|
|
741
|
+
var d = a[c].indexOf("="), e = null;
|
|
742
|
+
if (0 <= d) {
|
|
743
|
+
var f = a[c].substring(0, d);
|
|
744
|
+
e = a[c].substring(d + 1);
|
|
745
|
+
}
|
|
746
|
+
else
|
|
747
|
+
f = a[c];
|
|
748
|
+
b(f, e ? decodeURIComponent(e.replace(/\+/g, " ")) : "");
|
|
749
|
+
}
|
|
750
|
+
} }
|
|
751
|
+
function M(a) { this.g = this.s = this.j = ""; this.m = null; this.o = this.l = ""; this.h = !1; if (a instanceof M) {
|
|
752
|
+
this.h = a.h;
|
|
753
|
+
Nc(this, a.j);
|
|
754
|
+
this.s = a.s;
|
|
755
|
+
this.g = a.g;
|
|
756
|
+
Oc(this, a.m);
|
|
757
|
+
this.l = a.l;
|
|
758
|
+
var b = a.i;
|
|
759
|
+
var c = new Pc;
|
|
760
|
+
c.i = b.i;
|
|
761
|
+
b.g && (c.g = new Map(b.g), c.h = b.h);
|
|
762
|
+
Qc(this, c);
|
|
763
|
+
this.o = a.o;
|
|
764
|
+
}
|
|
765
|
+
else
|
|
766
|
+
a && (b = String(a).match(Lc)) ? (this.h = !1, Nc(this, b[1] || "", !0), this.s = Rc(b[2] || ""), this.g = Rc(b[3] || "", !0), Oc(this, b[4]), this.l = Rc(b[5] || "", !0), Qc(this, b[6] || "", !0), this.o = Rc(b[7] || "")) : (this.h = !1, this.i = new Pc(null, this.h)); }
|
|
767
|
+
M.prototype.toString = function () { var a = [], b = this.j; b && a.push(Sc(b, Tc, !0), ":"); var c = this.g; if (c || "file" == b)
|
|
768
|
+
a.push("//"), (b = this.s) && a.push(Sc(b, Tc, !0), "@"), a.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g, "%$1")), c = this.m, null != c && a.push(":", String(c)); if (c = this.l)
|
|
769
|
+
this.g && "/" != c.charAt(0) && a.push("/"), a.push(Sc(c, "/" == c.charAt(0) ? Uc : Vc, !0)); (c = this.i.toString()) && a.push("?", c); (c = this.o) && a.push("#", Sc(c, Wc)); return a.join(""); };
|
|
770
|
+
function G(a) { return new M(a); }
|
|
771
|
+
function Nc(a, b, c) { a.j = c ? Rc(b, !0) : b; a.j && (a.j = a.j.replace(/:$/, "")); }
|
|
772
|
+
function Oc(a, b) { if (b) {
|
|
773
|
+
b = Number(b);
|
|
774
|
+
if (isNaN(b) || 0 > b)
|
|
775
|
+
throw Error("Bad port number " + b);
|
|
776
|
+
a.m = b;
|
|
777
|
+
}
|
|
778
|
+
else
|
|
779
|
+
a.m = null; }
|
|
780
|
+
function Qc(a, b, c) { b instanceof Pc ? (a.i = b, Xc(a.i, a.h)) : (c || (b = Sc(b, Yc)), a.i = new Pc(b, a.h)); }
|
|
781
|
+
function K(a, b, c) { a.i.set(b, c); }
|
|
782
|
+
function hc(a) { K(a, "zx", Math.floor(2147483648 * Math.random()).toString(36) + Math.abs(Math.floor(2147483648 * Math.random()) ^ Date.now()).toString(36)); return a; }
|
|
783
|
+
function Rc(a, b) { return a ? b ? decodeURI(a.replace(/%25/g, "%2525")) : decodeURIComponent(a) : ""; }
|
|
784
|
+
function Sc(a, b, c) { return "string" === typeof a ? (a = encodeURI(a).replace(b, Zc), c && (a = a.replace(/%25([0-9a-fA-F]{2})/g, "%$1")), a) : null; }
|
|
785
|
+
function Zc(a) { a = a.charCodeAt(0); return "%" + (a >> 4 & 15).toString(16) + (a & 15).toString(16); }
|
|
786
|
+
var Tc = /[#\/\?@]/g, Vc = /[#\?:]/g, Uc = /[#\?]/g, Yc = /[#\?@]/g, Wc = /#/g;
|
|
787
|
+
function Pc(a, b) { this.h = this.g = null; this.i = a || null; this.j = !!b; }
|
|
788
|
+
function N(a) { a.g || (a.g = new Map, a.h = 0, a.i && Mc(a.i, function (b, c) { a.add(decodeURIComponent(b.replace(/\+/g, " ")), c); })); }
|
|
789
|
+
k = Pc.prototype;
|
|
790
|
+
k.add = function (a, b) { N(this); this.i = null; a = O(this, a); var c = this.g.get(a); c || this.g.set(a, c = []); c.push(b); this.h += 1; return this; };
|
|
791
|
+
function $c(a, b) { N(a); b = O(a, b); a.g.has(b) && (a.i = null, a.h -= a.g.get(b).length, a.g.delete(b)); }
|
|
792
|
+
function ad(a, b) { N(a); b = O(a, b); return a.g.has(b); }
|
|
793
|
+
k.forEach = function (a, b) { N(this); this.g.forEach(function (c, d) { c.forEach(function (e) { a.call(b, e, d, this); }, this); }, this); };
|
|
794
|
+
k.ta = function () { N(this); var a = Array.from(this.g.values()), b = Array.from(this.g.keys()), c = []; for (var d = 0; d < b.length; d++) {
|
|
795
|
+
var e = a[d];
|
|
796
|
+
for (var f = 0; f < e.length; f++)
|
|
797
|
+
c.push(b[d]);
|
|
798
|
+
} return c; };
|
|
799
|
+
k.Z = function (a) { N(this); var b = []; if ("string" === typeof a)
|
|
800
|
+
ad(this, a) && (b = b.concat(this.g.get(O(this, a))));
|
|
801
|
+
else {
|
|
802
|
+
a = Array.from(this.g.values());
|
|
803
|
+
for (var c = 0; c < a.length; c++)
|
|
804
|
+
b = b.concat(a[c]);
|
|
805
|
+
} return b; };
|
|
806
|
+
k.set = function (a, b) { N(this); this.i = null; a = O(this, a); ad(this, a) && (this.h -= this.g.get(a).length); this.g.set(a, [b]); this.h += 1; return this; };
|
|
807
|
+
k.get = function (a, b) { if (!a)
|
|
808
|
+
return b; a = this.Z(a); return 0 < a.length ? String(a[0]) : b; };
|
|
809
|
+
function kc(a, b, c) { $c(a, b); 0 < c.length && (a.i = null, a.g.set(O(a, b), ma(c)), a.h += c.length); }
|
|
810
|
+
k.toString = function () { if (this.i)
|
|
811
|
+
return this.i; if (!this.g)
|
|
812
|
+
return ""; var a = [], b = Array.from(this.g.keys()); for (var c = 0; c < b.length; c++) {
|
|
813
|
+
var d = b[c];
|
|
814
|
+
var f = encodeURIComponent(String(d)), h = this.Z(d);
|
|
815
|
+
for (d = 0; d < h.length; d++) {
|
|
816
|
+
var e = f;
|
|
817
|
+
"" !== h[d] && (e += "=" + encodeURIComponent(String(h[d])));
|
|
818
|
+
a.push(e);
|
|
819
|
+
}
|
|
820
|
+
} return this.i = a.join("&"); };
|
|
821
|
+
function O(a, b) { b = String(b); a.j && (b = b.toLowerCase()); return b; }
|
|
822
|
+
function Xc(a, b) { b && !a.j && (N(a), a.i = null, a.g.forEach(function (c, d) { var e = d.toLowerCase(); d != e && ($c(this, d), kc(this, e, c)); }, a)); a.j = b; }
|
|
823
|
+
var bd = /** @class */ (function () {
|
|
824
|
+
function bd(a, b) {
|
|
825
|
+
this.g = a;
|
|
826
|
+
this.map = b;
|
|
827
|
+
}
|
|
828
|
+
return bd;
|
|
829
|
+
}());
|
|
830
|
+
function cd(a) { this.l = a || dd; l.PerformanceNavigationTiming ? (a = l.performance.getEntriesByType("navigation"), a = 0 < a.length && ("hq" == a[0].nextHopProtocol || "h2" == a[0].nextHopProtocol)) : a = !!(l.g && l.g.Ka && l.g.Ka() && l.g.Ka().ec); this.j = a ? this.l : 1; this.g = null; 1 < this.j && (this.g = new Set); this.h = null; this.i = []; }
|
|
831
|
+
var dd = 10;
|
|
832
|
+
function ed(a) { return a.h ? !0 : a.g ? a.g.size >= a.j : !1; }
|
|
833
|
+
function Bc(a) { return a.h ? 1 : a.g ? a.g.size : 0; }
|
|
834
|
+
function xc(a, b) { return a.h ? a.h == b : a.g ? a.g.has(b) : !1; }
|
|
835
|
+
function Cc(a, b) { a.g ? a.g.add(b) : a.h = b; }
|
|
836
|
+
function Ec(a, b) { a.h && a.h == b ? a.h = null : a.g && a.g.has(b) && a.g.delete(b); }
|
|
837
|
+
cd.prototype.cancel = function () {
|
|
838
|
+
var e_1, _a;
|
|
839
|
+
this.i = fd(this);
|
|
840
|
+
if (this.h)
|
|
841
|
+
this.h.cancel(), this.h = null;
|
|
842
|
+
else if (this.g && 0 !== this.g.size) {
|
|
843
|
+
try {
|
|
844
|
+
for (var _b = __values(this.g.values()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
845
|
+
var a = _c.value;
|
|
846
|
+
a.cancel();
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
850
|
+
finally {
|
|
851
|
+
try {
|
|
852
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
853
|
+
}
|
|
854
|
+
finally { if (e_1) throw e_1.error; }
|
|
855
|
+
}
|
|
856
|
+
this.g.clear();
|
|
857
|
+
}
|
|
858
|
+
};
|
|
859
|
+
function fd(a) {
|
|
860
|
+
var e_2, _a;
|
|
861
|
+
if (null != a.h)
|
|
862
|
+
return a.i.concat(a.h.F);
|
|
863
|
+
if (null != a.g && 0 !== a.g.size) {
|
|
864
|
+
var b = a.i;
|
|
865
|
+
try {
|
|
866
|
+
for (var _b = __values(a.g.values()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
867
|
+
var c = _c.value;
|
|
868
|
+
b = b.concat(c.F);
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
872
|
+
finally {
|
|
873
|
+
try {
|
|
874
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
875
|
+
}
|
|
876
|
+
finally { if (e_2) throw e_2.error; }
|
|
877
|
+
}
|
|
878
|
+
return b;
|
|
879
|
+
}
|
|
880
|
+
return ma(a.i);
|
|
881
|
+
}
|
|
882
|
+
var gd = /** @class */ (function () {
|
|
883
|
+
function gd() {
|
|
884
|
+
}
|
|
885
|
+
gd.prototype.stringify = function (a) { return l.JSON.stringify(a, void 0); };
|
|
886
|
+
gd.prototype.parse = function (a) { return l.JSON.parse(a, void 0); };
|
|
887
|
+
return gd;
|
|
888
|
+
}());
|
|
889
|
+
function hd() { this.g = new gd; }
|
|
890
|
+
function id(a, b, c) { var d = c || ""; try {
|
|
891
|
+
Kc(a, function (e, f) { var h = e; p(e) && (h = jb(e)); b.push(d + f + "=" + encodeURIComponent(h)); });
|
|
892
|
+
}
|
|
893
|
+
catch (e) {
|
|
894
|
+
throw b.push(d + "type=" + encodeURIComponent("_badmap")), e;
|
|
895
|
+
} }
|
|
896
|
+
function jd(a, b) { var c = new Gb; if (l.Image) {
|
|
897
|
+
var d_1 = new Image;
|
|
898
|
+
d_1.onload = ha(kd, c, d_1, "TestLoadImage: loaded", !0, b);
|
|
899
|
+
d_1.onerror = ha(kd, c, d_1, "TestLoadImage: error", !1, b);
|
|
900
|
+
d_1.onabort = ha(kd, c, d_1, "TestLoadImage: abort", !1, b);
|
|
901
|
+
d_1.ontimeout = ha(kd, c, d_1, "TestLoadImage: timeout", !1, b);
|
|
902
|
+
l.setTimeout(function () { if (d_1.ontimeout)
|
|
903
|
+
d_1.ontimeout(); }, 1E4);
|
|
904
|
+
d_1.src = a;
|
|
905
|
+
}
|
|
906
|
+
else
|
|
907
|
+
b(!1); }
|
|
908
|
+
function kd(a, b, c, d, e) { try {
|
|
909
|
+
b.onload = null, b.onerror = null, b.onabort = null, b.ontimeout = null, e(d);
|
|
910
|
+
}
|
|
911
|
+
catch (f) { } }
|
|
912
|
+
function ld(a) { this.l = a.fc || null; this.j = a.ob || !1; }
|
|
913
|
+
r(ld, Ub);
|
|
914
|
+
ld.prototype.g = function () { return new md(this.l, this.j); };
|
|
915
|
+
ld.prototype.i = function (a) { return function () { return a; }; }({});
|
|
916
|
+
function md(a, b) { B.call(this); this.F = a; this.u = b; this.m = void 0; this.readyState = nd; this.status = 0; this.responseType = this.responseText = this.response = this.statusText = ""; this.onreadystatechange = null; this.v = new Headers; this.h = null; this.C = "GET"; this.B = ""; this.g = !1; this.A = this.j = this.l = null; }
|
|
917
|
+
r(md, B);
|
|
918
|
+
var nd = 0;
|
|
919
|
+
k = md.prototype;
|
|
920
|
+
k.open = function (a, b) { if (this.readyState != nd)
|
|
921
|
+
throw this.abort(), Error("Error reopening a connection"); this.C = a; this.B = b; this.readyState = 1; od(this); };
|
|
922
|
+
k.send = function (a) { if (1 != this.readyState)
|
|
923
|
+
throw this.abort(), Error("need to call open() first. "); this.g = !0; var b = { headers: this.v, method: this.C, credentials: this.m, cache: void 0 }; a && (b.body = a); (this.F || l).fetch(new Request(this.B, b)).then(this.$a.bind(this), this.ka.bind(this)); };
|
|
924
|
+
k.abort = function () { this.response = this.responseText = ""; this.v = new Headers; this.status = 0; this.j && this.j.cancel("Request was aborted.").catch(function () { }); 1 <= this.readyState && this.g && 4 != this.readyState && (this.g = !1, pd(this)); this.readyState = nd; };
|
|
925
|
+
k.$a = function (a) {
|
|
926
|
+
if (this.g && (this.l = a, this.h || (this.status = this.l.status, this.statusText = this.l.statusText, this.h = a.headers, this.readyState = 2, od(this)), this.g && (this.readyState = 3, od(this), this.g)))
|
|
927
|
+
if ("arraybuffer" === this.responseType)
|
|
928
|
+
a.arrayBuffer().then(this.Ya.bind(this), this.ka.bind(this));
|
|
929
|
+
else if ("undefined" !== typeof l.ReadableStream && "body" in a) {
|
|
930
|
+
this.j = a.body.getReader();
|
|
931
|
+
if (this.u) {
|
|
932
|
+
if (this.responseType)
|
|
933
|
+
throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');
|
|
934
|
+
this.response =
|
|
935
|
+
[];
|
|
936
|
+
}
|
|
937
|
+
else
|
|
938
|
+
this.response = this.responseText = "", this.A = new TextDecoder;
|
|
939
|
+
qd(this);
|
|
940
|
+
}
|
|
941
|
+
else
|
|
942
|
+
a.text().then(this.Za.bind(this), this.ka.bind(this));
|
|
943
|
+
};
|
|
944
|
+
function qd(a) { a.j.read().then(a.Xa.bind(a)).catch(a.ka.bind(a)); }
|
|
945
|
+
k.Xa = function (a) { if (this.g) {
|
|
946
|
+
if (this.u && a.value)
|
|
947
|
+
this.response.push(a.value);
|
|
948
|
+
else if (!this.u) {
|
|
949
|
+
var b = a.value ? a.value : new Uint8Array(0);
|
|
950
|
+
if (b = this.A.decode(b, { stream: !a.done }))
|
|
951
|
+
this.response = this.responseText += b;
|
|
952
|
+
}
|
|
953
|
+
a.done ? pd(this) : od(this);
|
|
954
|
+
3 == this.readyState && qd(this);
|
|
955
|
+
} };
|
|
956
|
+
k.Za = function (a) { this.g && (this.response = this.responseText = a, pd(this)); };
|
|
957
|
+
k.Ya = function (a) { this.g && (this.response = a, pd(this)); };
|
|
958
|
+
k.ka = function () { this.g && pd(this); };
|
|
959
|
+
function pd(a) { a.readyState = 4; a.l = null; a.j = null; a.A = null; od(a); }
|
|
960
|
+
k.setRequestHeader = function (a, b) { this.v.append(a, b); };
|
|
961
|
+
k.getResponseHeader = function (a) { return this.h ? this.h.get(a.toLowerCase()) || "" : ""; };
|
|
962
|
+
k.getAllResponseHeaders = function () { if (!this.h)
|
|
963
|
+
return ""; var a = [], b = this.h.entries(); for (var c = b.next(); !c.done;)
|
|
964
|
+
c = c.value, a.push(c[0] + ": " + c[1]), c = b.next(); return a.join("\r\n"); };
|
|
965
|
+
function od(a) { a.onreadystatechange && a.onreadystatechange.call(a); }
|
|
966
|
+
Object.defineProperty(md.prototype, "withCredentials", { get: function () { return "include" === this.m; }, set: function (a) { this.m = a ? "include" : "same-origin"; } });
|
|
967
|
+
var rd = l.JSON.parse;
|
|
968
|
+
function P(a) { B.call(this); this.headers = new Map; this.u = a || null; this.h = !1; this.C = this.g = null; this.I = ""; this.m = 0; this.j = ""; this.l = this.G = this.v = this.F = !1; this.B = 0; this.A = null; this.K = sd; this.L = this.M = !1; }
|
|
969
|
+
r(P, B);
|
|
970
|
+
var sd = "", td = /^https?$/i, ud = ["POST", "PUT"];
|
|
971
|
+
k = P.prototype;
|
|
972
|
+
k.Oa = function (a) { this.M = a; };
|
|
973
|
+
k.ha = function (a, b, c, d) {
|
|
974
|
+
var e_3, _a, e_4, _b;
|
|
975
|
+
if (this.g)
|
|
976
|
+
throw Error("[goog.net.XhrIo] Object is active with another request=" + this.I + "; newUri=" + a);
|
|
977
|
+
b = b ? b.toUpperCase() : "GET";
|
|
978
|
+
this.I = a;
|
|
979
|
+
this.j = "";
|
|
980
|
+
this.m = 0;
|
|
981
|
+
this.F = !1;
|
|
982
|
+
this.h = !0;
|
|
983
|
+
this.g = this.u ? this.u.g() : $b.g();
|
|
984
|
+
this.C = this.u ? Vb(this.u) : Vb($b);
|
|
985
|
+
this.g.onreadystatechange = q(this.La, this);
|
|
986
|
+
try {
|
|
987
|
+
this.G = !0, this.g.open(b, String(a), !0), this.G = !1;
|
|
988
|
+
}
|
|
989
|
+
catch (f) {
|
|
990
|
+
vd(this, f);
|
|
991
|
+
return;
|
|
992
|
+
}
|
|
993
|
+
a = c || "";
|
|
994
|
+
c = new Map(this.headers);
|
|
995
|
+
if (d)
|
|
996
|
+
if (Object.getPrototypeOf(d) === Object.prototype)
|
|
997
|
+
for (var e in d)
|
|
998
|
+
c.set(e, d[e]);
|
|
999
|
+
else if ("function" ===
|
|
1000
|
+
typeof d.keys && "function" === typeof d.get)
|
|
1001
|
+
try {
|
|
1002
|
+
for (var _c = __values(d.keys()), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
1003
|
+
var f = _d.value;
|
|
1004
|
+
c.set(f, d.get(f));
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
1008
|
+
finally {
|
|
1009
|
+
try {
|
|
1010
|
+
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
|
1011
|
+
}
|
|
1012
|
+
finally { if (e_3) throw e_3.error; }
|
|
1013
|
+
}
|
|
1014
|
+
else
|
|
1015
|
+
throw Error("Unknown input type for opt_headers: " + String(d));
|
|
1016
|
+
d = Array.from(c.keys()).find(function (f) { return "content-type" == f.toLowerCase(); });
|
|
1017
|
+
e = l.FormData && a instanceof l.FormData;
|
|
1018
|
+
!(0 <= ka(ud, b)) || d || e || c.set("Content-Type", "application/x-www-form-urlencoded;charset=utf-8");
|
|
1019
|
+
try {
|
|
1020
|
+
for (var c_1 = __values(c), c_1_1 = c_1.next(); !c_1_1.done; c_1_1 = c_1.next()) {
|
|
1021
|
+
var _e = __read(c_1_1.value, 2), f = _e[0], h = _e[1];
|
|
1022
|
+
this.g.setRequestHeader(f, h);
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
1026
|
+
finally {
|
|
1027
|
+
try {
|
|
1028
|
+
if (c_1_1 && !c_1_1.done && (_b = c_1.return)) _b.call(c_1);
|
|
1029
|
+
}
|
|
1030
|
+
finally { if (e_4) throw e_4.error; }
|
|
1031
|
+
}
|
|
1032
|
+
this.K && (this.g.responseType = this.K);
|
|
1033
|
+
"withCredentials" in this.g && this.g.withCredentials !== this.M && (this.g.withCredentials =
|
|
1034
|
+
this.M);
|
|
1035
|
+
try {
|
|
1036
|
+
wd(this), 0 < this.B && ((this.L = xd(this.g)) ? (this.g.timeout = this.B, this.g.ontimeout = q(this.ua, this)) : this.A = yb(this.ua, this.B, this)), this.v = !0, this.g.send(a), this.v = !1;
|
|
1037
|
+
}
|
|
1038
|
+
catch (f) {
|
|
1039
|
+
vd(this, f);
|
|
1040
|
+
}
|
|
1041
|
+
};
|
|
1042
|
+
function xd(a) { return z && "number" === typeof a.timeout && void 0 !== a.ontimeout; }
|
|
1043
|
+
k.ua = function () { "undefined" != typeof goog && this.g && (this.j = "Timed out after " + this.B + "ms, aborting", this.m = 8, C(this, "timeout"), this.abort(8)); };
|
|
1044
|
+
function vd(a, b) { a.h = !1; a.g && (a.l = !0, a.g.abort(), a.l = !1); a.j = b; a.m = 5; yd(a); zd(a); }
|
|
1045
|
+
function yd(a) { a.F || (a.F = !0, C(a, "complete"), C(a, "error")); }
|
|
1046
|
+
k.abort = function (a) { this.g && this.h && (this.h = !1, this.l = !0, this.g.abort(), this.l = !1, this.m = a || 7, C(this, "complete"), C(this, "abort"), zd(this)); };
|
|
1047
|
+
k.N = function () { this.g && (this.h && (this.h = !1, this.l = !0, this.g.abort(), this.l = !1), zd(this, !0)); P.$.N.call(this); };
|
|
1048
|
+
k.La = function () { this.s || (this.G || this.v || this.l ? Ad(this) : this.kb()); };
|
|
1049
|
+
k.kb = function () { Ad(this); };
|
|
1050
|
+
function Ad(a) {
|
|
1051
|
+
if (a.h && "undefined" != typeof goog && (!a.C[1] || 4 != H(a) || 2 != a.da()))
|
|
1052
|
+
if (a.v && 4 == H(a))
|
|
1053
|
+
yb(a.La, 0, a);
|
|
1054
|
+
else if (C(a, "readystatechange"), 4 == H(a)) {
|
|
1055
|
+
a.h = !1;
|
|
1056
|
+
try {
|
|
1057
|
+
var h = a.da();
|
|
1058
|
+
a: switch (h) {
|
|
1059
|
+
case 200:
|
|
1060
|
+
case 201:
|
|
1061
|
+
case 202:
|
|
1062
|
+
case 204:
|
|
1063
|
+
case 206:
|
|
1064
|
+
case 304:
|
|
1065
|
+
case 1223:
|
|
1066
|
+
var b = !0;
|
|
1067
|
+
break a;
|
|
1068
|
+
default: b = !1;
|
|
1069
|
+
}
|
|
1070
|
+
var c;
|
|
1071
|
+
if (!(c = b)) {
|
|
1072
|
+
var d;
|
|
1073
|
+
if (d = 0 === h) {
|
|
1074
|
+
var e = String(a.I).match(Lc)[1] || null;
|
|
1075
|
+
!e && l.self && l.self.location && (e = l.self.location.protocol.slice(0, -1));
|
|
1076
|
+
d = !td.test(e ? e.toLowerCase() : "");
|
|
1077
|
+
}
|
|
1078
|
+
c = d;
|
|
1079
|
+
}
|
|
1080
|
+
if (c)
|
|
1081
|
+
C(a, "complete"), C(a, "success");
|
|
1082
|
+
else {
|
|
1083
|
+
a.m =
|
|
1084
|
+
6;
|
|
1085
|
+
try {
|
|
1086
|
+
var f = 2 < H(a) ? a.g.statusText : "";
|
|
1087
|
+
}
|
|
1088
|
+
catch (n) {
|
|
1089
|
+
f = "";
|
|
1090
|
+
}
|
|
1091
|
+
a.j = f + " [" + a.da() + "]";
|
|
1092
|
+
yd(a);
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
finally {
|
|
1096
|
+
zd(a);
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
function zd(a, b) { if (a.g) {
|
|
1101
|
+
wd(a);
|
|
1102
|
+
var c = a.g, d = a.C[0] ? function () { } : null;
|
|
1103
|
+
a.g = null;
|
|
1104
|
+
a.C = null;
|
|
1105
|
+
b || C(a, "ready");
|
|
1106
|
+
try {
|
|
1107
|
+
c.onreadystatechange = d;
|
|
1108
|
+
}
|
|
1109
|
+
catch (e) { }
|
|
1110
|
+
} }
|
|
1111
|
+
function wd(a) { a.g && a.L && (a.g.ontimeout = null); a.A && (l.clearTimeout(a.A), a.A = null); }
|
|
1112
|
+
k.isActive = function () { return !!this.g; };
|
|
1113
|
+
function H(a) { return a.g ? a.g.readyState : 0; }
|
|
1114
|
+
k.da = function () { try {
|
|
1115
|
+
return 2 < H(this) ? this.g.status : -1;
|
|
1116
|
+
}
|
|
1117
|
+
catch (a) {
|
|
1118
|
+
return -1;
|
|
1119
|
+
} };
|
|
1120
|
+
k.ja = function () { try {
|
|
1121
|
+
return this.g ? this.g.responseText : "";
|
|
1122
|
+
}
|
|
1123
|
+
catch (a) {
|
|
1124
|
+
return "";
|
|
1125
|
+
} };
|
|
1126
|
+
k.Wa = function (a) { if (this.g) {
|
|
1127
|
+
var b = this.g.responseText;
|
|
1128
|
+
a && 0 == b.indexOf(a) && (b = b.substring(a.length));
|
|
1129
|
+
return rd(b);
|
|
1130
|
+
} };
|
|
1131
|
+
function mc(a) { try {
|
|
1132
|
+
if (!a.g)
|
|
1133
|
+
return null;
|
|
1134
|
+
if ("response" in a.g)
|
|
1135
|
+
return a.g.response;
|
|
1136
|
+
switch (a.K) {
|
|
1137
|
+
case sd:
|
|
1138
|
+
case "text": return a.g.responseText;
|
|
1139
|
+
case "arraybuffer": if ("mozResponseArrayBuffer" in a.g)
|
|
1140
|
+
return a.g.mozResponseArrayBuffer;
|
|
1141
|
+
}
|
|
1142
|
+
return null;
|
|
1143
|
+
}
|
|
1144
|
+
catch (b) {
|
|
1145
|
+
return null;
|
|
1146
|
+
} }
|
|
1147
|
+
function tc(a) { var b = {}; a = (a.g && 2 <= H(a) ? a.g.getAllResponseHeaders() || "" : "").split("\r\n"); for (var d = 0; d < a.length; d++) {
|
|
1148
|
+
if (x(a[d]))
|
|
1149
|
+
continue;
|
|
1150
|
+
var c = qb(a[d]);
|
|
1151
|
+
var e = c[0];
|
|
1152
|
+
c = c[1];
|
|
1153
|
+
if ("string" !== typeof c)
|
|
1154
|
+
continue;
|
|
1155
|
+
c = c.trim();
|
|
1156
|
+
var f = b[e] || [];
|
|
1157
|
+
b[e] = f;
|
|
1158
|
+
f.push(c);
|
|
1159
|
+
} Oa(b, function (d) { return d.join(", "); }); }
|
|
1160
|
+
k.Ia = function () { return this.m; };
|
|
1161
|
+
k.Sa = function () { return "string" === typeof this.j ? this.j : String(this.j); };
|
|
1162
|
+
function Bd(a) { var b = ""; Na(a, function (c, d) { b += d; b += ":"; b += c; b += "\r\n"; }); return b; }
|
|
1163
|
+
function Cd(a, b, c) { a: {
|
|
1164
|
+
for (d in c) {
|
|
1165
|
+
var d = !1;
|
|
1166
|
+
break a;
|
|
1167
|
+
}
|
|
1168
|
+
d = !0;
|
|
1169
|
+
} d || (c = Bd(c), "string" === typeof a ? (null != c && encodeURIComponent(String(c))) : K(a, b, c)); }
|
|
1170
|
+
function Dd(a, b, c) { return c && c.internalChannelParams ? c.internalChannelParams[a] || b : b; }
|
|
1171
|
+
function Ed(a) {
|
|
1172
|
+
this.Ga = 0;
|
|
1173
|
+
this.j = [];
|
|
1174
|
+
this.l = new Gb;
|
|
1175
|
+
this.pa = this.wa = this.I = this.Y = this.g = this.Da = this.F = this.na = this.o = this.U = this.s = null;
|
|
1176
|
+
this.fb = this.W = 0;
|
|
1177
|
+
this.cb = Dd("failFast", !1, a);
|
|
1178
|
+
this.G = this.v = this.u = this.m = this.h = null;
|
|
1179
|
+
this.aa = !0;
|
|
1180
|
+
this.Fa = this.V = -1;
|
|
1181
|
+
this.ba = this.A = this.C = 0;
|
|
1182
|
+
this.ab = Dd("baseRetryDelayMs", 5E3, a);
|
|
1183
|
+
this.hb = Dd("retryDelaySeedMs", 1E4, a);
|
|
1184
|
+
this.eb = Dd("forwardChannelMaxRetries", 2, a);
|
|
1185
|
+
this.xa = Dd("forwardChannelRequestTimeoutMs", 2E4, a);
|
|
1186
|
+
this.va = a && a.xmlHttpFactory || void 0;
|
|
1187
|
+
this.Ha = a && a.dc || !1;
|
|
1188
|
+
this.L =
|
|
1189
|
+
void 0;
|
|
1190
|
+
this.J = a && a.supportsCrossDomainXhr || !1;
|
|
1191
|
+
this.K = "";
|
|
1192
|
+
this.i = new cd(a && a.concurrentRequestLimit);
|
|
1193
|
+
this.Ja = new hd;
|
|
1194
|
+
this.P = a && a.fastHandshake || !1;
|
|
1195
|
+
this.O = a && a.encodeInitMessageHeaders || !1;
|
|
1196
|
+
this.P && this.O && (this.O = !1);
|
|
1197
|
+
this.bb = a && a.bc || !1;
|
|
1198
|
+
a && a.Ea && this.l.Ea();
|
|
1199
|
+
a && a.forceLongPolling && (this.aa = !1);
|
|
1200
|
+
this.ca = !this.P && this.aa && a && a.detectBufferingProxy || !1;
|
|
1201
|
+
this.qa = void 0;
|
|
1202
|
+
a && a.longPollingTimeout && 0 < a.longPollingTimeout && (this.qa = a.longPollingTimeout);
|
|
1203
|
+
this.oa = void 0;
|
|
1204
|
+
this.S = 0;
|
|
1205
|
+
this.M = !1;
|
|
1206
|
+
this.ma = this.B = null;
|
|
1207
|
+
}
|
|
1208
|
+
k = Ed.prototype;
|
|
1209
|
+
k.ra = 8;
|
|
1210
|
+
k.H = 1;
|
|
1211
|
+
function Hc(a) { Fd(a); if (3 == a.H) {
|
|
1212
|
+
var b = a.W++, c = G(a.I);
|
|
1213
|
+
K(c, "SID", a.K);
|
|
1214
|
+
K(c, "RID", b);
|
|
1215
|
+
K(c, "TYPE", "terminate");
|
|
1216
|
+
Gd(a, c);
|
|
1217
|
+
b = new bc(a, a.l, b);
|
|
1218
|
+
b.L = 2;
|
|
1219
|
+
b.v = hc(G(c));
|
|
1220
|
+
c = !1;
|
|
1221
|
+
if (l.navigator && l.navigator.sendBeacon)
|
|
1222
|
+
try {
|
|
1223
|
+
c = l.navigator.sendBeacon(b.v.toString(), "");
|
|
1224
|
+
}
|
|
1225
|
+
catch (d) { }
|
|
1226
|
+
!c && l.Image && ((new Image).src = b.v, c = !0);
|
|
1227
|
+
c || (b.g = lc(b.l, null), b.g.ha(b.v));
|
|
1228
|
+
b.G = Date.now();
|
|
1229
|
+
jc(b);
|
|
1230
|
+
} Hd(a); }
|
|
1231
|
+
function zc(a) { a.g && (vc(a), a.g.cancel(), a.g = null); }
|
|
1232
|
+
function Fd(a) { zc(a); a.u && (l.clearTimeout(a.u), a.u = null); yc(a); a.i.cancel(); a.m && ("number" === typeof a.m && l.clearTimeout(a.m), a.m = null); }
|
|
1233
|
+
function Gc(a) { if (!ed(a.i) && !a.m) {
|
|
1234
|
+
a.m = !0;
|
|
1235
|
+
var b = a.Na;
|
|
1236
|
+
sb || vb();
|
|
1237
|
+
tb || (sb(), tb = !0);
|
|
1238
|
+
mb.add(b, a);
|
|
1239
|
+
a.C = 0;
|
|
1240
|
+
} }
|
|
1241
|
+
function Id(a, b) { if (Bc(a.i) >= a.i.j - (a.m ? 1 : 0))
|
|
1242
|
+
return !1; if (a.m)
|
|
1243
|
+
return a.j = b.F.concat(a.j), !0; if (1 == a.H || 2 == a.H || a.C >= (a.cb ? 0 : a.eb))
|
|
1244
|
+
return !1; a.m = Rb(q(a.Na, a, b), Jd(a, a.C)); a.C++; return !0; }
|
|
1245
|
+
k.Na = function (a) {
|
|
1246
|
+
if (this.m)
|
|
1247
|
+
if (this.m = null, 1 == this.H) {
|
|
1248
|
+
if (!a) {
|
|
1249
|
+
this.W = Math.floor(1E5 * Math.random());
|
|
1250
|
+
a = this.W++;
|
|
1251
|
+
var e = new bc(this, this.l, a);
|
|
1252
|
+
var f = this.s;
|
|
1253
|
+
this.U && (f ? (f = Pa(f), Ra(f, this.U)) : f = this.U);
|
|
1254
|
+
null !== this.o || this.O || (e.I = f, f = null);
|
|
1255
|
+
if (this.P)
|
|
1256
|
+
a: {
|
|
1257
|
+
var b = 0;
|
|
1258
|
+
for (var c = 0; c < this.j.length; c++) {
|
|
1259
|
+
b: {
|
|
1260
|
+
var d = this.j[c];
|
|
1261
|
+
if ("__data__" in d.map && (d = d.map.__data__, "string" === typeof d)) {
|
|
1262
|
+
d = d.length;
|
|
1263
|
+
break b;
|
|
1264
|
+
}
|
|
1265
|
+
d = void 0;
|
|
1266
|
+
}
|
|
1267
|
+
if (void 0 === d)
|
|
1268
|
+
break;
|
|
1269
|
+
b += d;
|
|
1270
|
+
if (4096 < b) {
|
|
1271
|
+
b = c;
|
|
1272
|
+
break a;
|
|
1273
|
+
}
|
|
1274
|
+
if (4096 === b || c === this.j.length - 1) {
|
|
1275
|
+
b = c + 1;
|
|
1276
|
+
break a;
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
b = 1E3;
|
|
1280
|
+
}
|
|
1281
|
+
else
|
|
1282
|
+
b =
|
|
1283
|
+
1E3;
|
|
1284
|
+
b = Kd(this, e, b);
|
|
1285
|
+
c = G(this.I);
|
|
1286
|
+
K(c, "RID", a);
|
|
1287
|
+
K(c, "CVER", 22);
|
|
1288
|
+
this.F && K(c, "X-HTTP-Session-Id", this.F);
|
|
1289
|
+
Gd(this, c);
|
|
1290
|
+
f && (this.O ? b = "headers=" + encodeURIComponent(String(Bd(f))) + "&" + b : this.o && Cd(c, this.o, f));
|
|
1291
|
+
Cc(this.i, e);
|
|
1292
|
+
this.bb && K(c, "TYPE", "init");
|
|
1293
|
+
this.P ? (K(c, "$req", b), K(c, "SID", "null"), e.aa = !0, gc(e, c, null)) : gc(e, c, b);
|
|
1294
|
+
this.H = 2;
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
else
|
|
1298
|
+
3 == this.H && (a ? Ld(this, a) : 0 == this.j.length || ed(this.i) || Ld(this));
|
|
1299
|
+
};
|
|
1300
|
+
function Ld(a, b) { var c; b ? c = b.m : c = a.W++; var d = G(a.I); K(d, "SID", a.K); K(d, "RID", c); K(d, "AID", a.V); Gd(a, d); a.o && a.s && Cd(d, a.o, a.s); c = new bc(a, a.l, c, a.C + 1); null === a.o && (c.I = a.s); b && (a.j = b.F.concat(a.j)); b = Kd(a, c, 1E3); c.setTimeout(Math.round(.5 * a.xa) + Math.round(.5 * a.xa * Math.random())); Cc(a.i, c); gc(c, d, b); }
|
|
1301
|
+
function Gd(a, b) { a.na && Na(a.na, function (c, d) { K(b, d, c); }); a.h && Kc({}, function (c, d) { K(b, d, c); }); }
|
|
1302
|
+
function Kd(a, b, c) { c = Math.min(a.j.length, c); var d = a.h ? q(a.h.Va, a.h, a) : null; a: {
|
|
1303
|
+
var e = a.j;
|
|
1304
|
+
var f = -1;
|
|
1305
|
+
for (;;) {
|
|
1306
|
+
var h = ["count=" + c];
|
|
1307
|
+
-1 == f ? 0 < c ? (f = e[0].g, h.push("ofs=" + f)) : f = 0 : h.push("ofs=" + f);
|
|
1308
|
+
var n = !0;
|
|
1309
|
+
for (var t = 0; t < c; t++) {
|
|
1310
|
+
var m = e[t].g;
|
|
1311
|
+
var u = e[t].map;
|
|
1312
|
+
m -= f;
|
|
1313
|
+
if (0 > m)
|
|
1314
|
+
f = Math.max(0, e[t].g - 100), n = !1;
|
|
1315
|
+
else
|
|
1316
|
+
try {
|
|
1317
|
+
id(u, h, "req" + m + "_");
|
|
1318
|
+
}
|
|
1319
|
+
catch (L) {
|
|
1320
|
+
d && d(u);
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
if (n) {
|
|
1324
|
+
d = h.join("&");
|
|
1325
|
+
break a;
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
} a = a.j.splice(0, c); b.F = a; return d; }
|
|
1329
|
+
function Fc(a) { if (!a.g && !a.u) {
|
|
1330
|
+
a.ba = 1;
|
|
1331
|
+
var b = a.Ma;
|
|
1332
|
+
sb || vb();
|
|
1333
|
+
tb || (sb(), tb = !0);
|
|
1334
|
+
mb.add(b, a);
|
|
1335
|
+
a.A = 0;
|
|
1336
|
+
} }
|
|
1337
|
+
function Ac(a) { if (a.g || a.u || 3 <= a.A)
|
|
1338
|
+
return !1; a.ba++; a.u = Rb(q(a.Ma, a), Jd(a, a.A)); a.A++; return !0; }
|
|
1339
|
+
k.Ma = function () { this.u = null; Md(this); if (this.ca && !(this.M || null == this.g || 0 >= this.S)) {
|
|
1340
|
+
var a = 2 * this.S;
|
|
1341
|
+
this.l.info("BP detection timer enabled: " + a);
|
|
1342
|
+
this.B = Rb(q(this.jb, this), a);
|
|
1343
|
+
} };
|
|
1344
|
+
k.jb = function () { this.B && (this.B = null, this.l.info("BP detection timeout reached."), this.l.info("Buffering proxy detected and switch to long-polling!"), this.G = !1, this.M = !0, F(10), zc(this), Md(this)); };
|
|
1345
|
+
function vc(a) { null != a.B && (l.clearTimeout(a.B), a.B = null); }
|
|
1346
|
+
function Md(a) { a.g = new bc(a, a.l, "rpc", a.ba); null === a.o && (a.g.I = a.s); a.g.O = 0; var b = G(a.wa); K(b, "RID", "rpc"); K(b, "SID", a.K); K(b, "AID", a.V); K(b, "CI", a.G ? "0" : "1"); !a.G && a.qa && K(b, "TO", a.qa); K(b, "TYPE", "xmlhttp"); Gd(a, b); a.o && a.s && Cd(b, a.o, a.s); a.L && a.g.setTimeout(a.L); var c = a.g; a = a.pa; c.L = 1; c.v = hc(G(b)); c.s = null; c.S = !0; ic(c, a); }
|
|
1347
|
+
k.ib = function () { null != this.v && (this.v = null, zc(this), Ac(this), F(19)); };
|
|
1348
|
+
function yc(a) { null != a.v && (l.clearTimeout(a.v), a.v = null); }
|
|
1349
|
+
function sc(a, b) { var c = null; if (a.g == b) {
|
|
1350
|
+
yc(a);
|
|
1351
|
+
vc(a);
|
|
1352
|
+
a.g = null;
|
|
1353
|
+
var d = 2;
|
|
1354
|
+
}
|
|
1355
|
+
else if (xc(a.i, b))
|
|
1356
|
+
c = b.F, Ec(a.i, b), d = 1;
|
|
1357
|
+
else
|
|
1358
|
+
return; if (0 != a.H)
|
|
1359
|
+
if (b.i)
|
|
1360
|
+
if (1 == d) {
|
|
1361
|
+
c = b.s ? b.s.length : 0;
|
|
1362
|
+
b = Date.now() - b.G;
|
|
1363
|
+
var e = a.C;
|
|
1364
|
+
d = Mb();
|
|
1365
|
+
C(d, new Qb(d, c));
|
|
1366
|
+
Gc(a);
|
|
1367
|
+
}
|
|
1368
|
+
else
|
|
1369
|
+
Fc(a);
|
|
1370
|
+
else if (e = b.o, 3 == e || 0 == e && 0 < b.ca || !(1 == d && Id(a, b) || 2 == d && Ac(a)))
|
|
1371
|
+
switch (c && 0 < c.length && (b = a.i, b.i = b.i.concat(c)), e) {
|
|
1372
|
+
case 1:
|
|
1373
|
+
J(a, 5);
|
|
1374
|
+
break;
|
|
1375
|
+
case 4:
|
|
1376
|
+
J(a, 10);
|
|
1377
|
+
break;
|
|
1378
|
+
case 3:
|
|
1379
|
+
J(a, 6);
|
|
1380
|
+
break;
|
|
1381
|
+
default: J(a, 2);
|
|
1382
|
+
} }
|
|
1383
|
+
function Jd(a, b) { var c = a.ab + Math.floor(Math.random() * a.hb); a.isActive() || (c *= 2); return c * b; }
|
|
1384
|
+
function J(a, b) { a.l.info("Error code " + b); if (2 == b) {
|
|
1385
|
+
var c = null;
|
|
1386
|
+
a.h && (c = null);
|
|
1387
|
+
var d = q(a.pb, a);
|
|
1388
|
+
c || (c = new M("//www.google.com/images/cleardot.gif"), l.location && "http" == l.location.protocol || Nc(c, "https"), hc(c));
|
|
1389
|
+
jd(c.toString(), d);
|
|
1390
|
+
}
|
|
1391
|
+
else
|
|
1392
|
+
F(2); a.H = 0; a.h && a.h.za(b); Hd(a); Fd(a); }
|
|
1393
|
+
k.pb = function (a) { a ? (this.l.info("Successfully pinged google.com"), F(2)) : (this.l.info("Failed to ping google.com"), F(1)); };
|
|
1394
|
+
function Hd(a) { a.H = 0; a.ma = []; if (a.h) {
|
|
1395
|
+
var b = fd(a.i);
|
|
1396
|
+
if (0 != b.length || 0 != a.j.length)
|
|
1397
|
+
na(a.ma, b), na(a.ma, a.j), a.i.i.length = 0, ma(a.j), a.j.length = 0;
|
|
1398
|
+
a.h.ya();
|
|
1399
|
+
} }
|
|
1400
|
+
function Dc(a, b, c) { var d = c instanceof M ? G(c) : new M(c); if ("" != d.g)
|
|
1401
|
+
b && (d.g = b + "." + d.g), Oc(d, d.m);
|
|
1402
|
+
else {
|
|
1403
|
+
var e = l.location;
|
|
1404
|
+
d = e.protocol;
|
|
1405
|
+
b = b ? b + "." + e.hostname : e.hostname;
|
|
1406
|
+
e = +e.port;
|
|
1407
|
+
var f = new M(null);
|
|
1408
|
+
d && Nc(f, d);
|
|
1409
|
+
b && (f.g = b);
|
|
1410
|
+
e && Oc(f, e);
|
|
1411
|
+
c && (f.l = c);
|
|
1412
|
+
d = f;
|
|
1413
|
+
} c = a.F; b = a.Da; c && b && K(d, c, b); K(d, "VER", a.ra); Gd(a, d); return d; }
|
|
1414
|
+
function lc(a, b, c) { if (b && !a.J)
|
|
1415
|
+
throw Error("Can't create secondary domain capable XhrIo object."); b = c && a.Ha && !a.va ? new P(new ld({ ob: !0 })) : new P(a.va); b.Oa(a.J); return b; }
|
|
1416
|
+
k.isActive = function () { return !!this.h && this.h.isActive(this); };
|
|
1417
|
+
function Nd() { }
|
|
1418
|
+
k = Nd.prototype;
|
|
1419
|
+
k.Ba = function () { };
|
|
1420
|
+
k.Aa = function () { };
|
|
1421
|
+
k.za = function () { };
|
|
1422
|
+
k.ya = function () { };
|
|
1423
|
+
k.isActive = function () { return !0; };
|
|
1424
|
+
k.Va = function () { };
|
|
1425
|
+
function Od() { if (z && !(10 <= Number(Fa)))
|
|
1426
|
+
throw Error("Environmental error: no available transport."); }
|
|
1427
|
+
Od.prototype.g = function (a, b) { return new Q(a, b); };
|
|
1428
|
+
function Q(a, b) {
|
|
1429
|
+
B.call(this);
|
|
1430
|
+
this.g = new Ed(b);
|
|
1431
|
+
this.l = a;
|
|
1432
|
+
this.h = b && b.messageUrlParams || null;
|
|
1433
|
+
a = b && b.messageHeaders || null;
|
|
1434
|
+
b && b.clientProtocolHeaderRequired && (a ? a["X-Client-Protocol"] = "webchannel" : a = { "X-Client-Protocol": "webchannel" });
|
|
1435
|
+
this.g.s = a;
|
|
1436
|
+
a = b && b.initMessageHeaders || null;
|
|
1437
|
+
b && b.messageContentType && (a ? a["X-WebChannel-Content-Type"] = b.messageContentType : a = { "X-WebChannel-Content-Type": b.messageContentType });
|
|
1438
|
+
b && b.Ca && (a ? a["X-WebChannel-Client-Profile"] = b.Ca : a = { "X-WebChannel-Client-Profile": b.Ca });
|
|
1439
|
+
this.g.U =
|
|
1440
|
+
a;
|
|
1441
|
+
(a = b && b.cc) && !x(a) && (this.g.o = a);
|
|
1442
|
+
this.A = b && b.supportsCrossDomainXhr || !1;
|
|
1443
|
+
this.v = b && b.sendRawJson || !1;
|
|
1444
|
+
(b = b && b.httpSessionIdParam) && !x(b) && (this.g.F = b, a = this.h, null !== a && b in a && (a = this.h, b in a && delete a[b]));
|
|
1445
|
+
this.j = new R(this);
|
|
1446
|
+
}
|
|
1447
|
+
r(Q, B);
|
|
1448
|
+
Q.prototype.m = function () { this.g.h = this.j; this.A && (this.g.J = !0); var a = this.g, b = this.l, c = this.h || void 0; F(0); a.Y = b; a.na = c || {}; a.G = a.aa; a.I = Dc(a, null, a.Y); Gc(a); };
|
|
1449
|
+
Q.prototype.close = function () { Hc(this.g); };
|
|
1450
|
+
Q.prototype.u = function (a) { var b = this.g; if ("string" === typeof a) {
|
|
1451
|
+
var c = {};
|
|
1452
|
+
c.__data__ = a;
|
|
1453
|
+
a = c;
|
|
1454
|
+
}
|
|
1455
|
+
else
|
|
1456
|
+
this.v && (c = {}, c.__data__ = jb(a), a = c); b.j.push(new bd(b.fb++, a)); 3 == b.H && Gc(b); };
|
|
1457
|
+
Q.prototype.N = function () { this.g.h = null; delete this.j; Hc(this.g); delete this.g; Q.$.N.call(this); };
|
|
1458
|
+
function Pd(a) { Yb.call(this); a.__headers__ && (this.headers = a.__headers__, this.statusCode = a.__status__, delete a.__headers__, delete a.__status__); var b = a.__sm__; if (b) {
|
|
1459
|
+
a: {
|
|
1460
|
+
for (var c in b) {
|
|
1461
|
+
a = c;
|
|
1462
|
+
break a;
|
|
1463
|
+
}
|
|
1464
|
+
a = void 0;
|
|
1465
|
+
}
|
|
1466
|
+
if (this.i = a)
|
|
1467
|
+
a = this.i, b = null !== b && a in b ? b[a] : void 0;
|
|
1468
|
+
this.data = b;
|
|
1469
|
+
}
|
|
1470
|
+
else
|
|
1471
|
+
this.data = a; }
|
|
1472
|
+
r(Pd, Yb);
|
|
1473
|
+
function Qd() { Zb.call(this); this.status = 1; }
|
|
1474
|
+
r(Qd, Zb);
|
|
1475
|
+
function R(a) { this.g = a; }
|
|
1476
|
+
r(R, Nd);
|
|
1477
|
+
R.prototype.Ba = function () { C(this.g, "a"); };
|
|
1478
|
+
R.prototype.Aa = function (a) { C(this.g, new Pd(a)); };
|
|
1479
|
+
R.prototype.za = function (a) { C(this.g, new Qd()); };
|
|
1480
|
+
R.prototype.ya = function () { C(this.g, "b"); };
|
|
1481
|
+
function Rd() { this.blockSize = -1; }
|
|
1482
|
+
function S() { this.blockSize = -1; this.blockSize = 64; this.g = Array(4); this.m = Array(this.blockSize); this.i = this.h = 0; this.reset(); }
|
|
1483
|
+
r(S, Rd);
|
|
1484
|
+
S.prototype.reset = function () { this.g[0] = 1732584193; this.g[1] = 4023233417; this.g[2] = 2562383102; this.g[3] = 271733878; this.i = this.h = 0; };
|
|
1485
|
+
function Sd(a, b, c) {
|
|
1486
|
+
c || (c = 0);
|
|
1487
|
+
var d = Array(16);
|
|
1488
|
+
if ("string" === typeof b)
|
|
1489
|
+
for (var e = 0; 16 > e; ++e)
|
|
1490
|
+
d[e] = b.charCodeAt(c++) | b.charCodeAt(c++) << 8 | b.charCodeAt(c++) << 16 | b.charCodeAt(c++) << 24;
|
|
1491
|
+
else
|
|
1492
|
+
for (e = 0; 16 > e; ++e)
|
|
1493
|
+
d[e] = b[c++] | b[c++] << 8 | b[c++] << 16 | b[c++] << 24;
|
|
1494
|
+
b = a.g[0];
|
|
1495
|
+
c = a.g[1];
|
|
1496
|
+
e = a.g[2];
|
|
1497
|
+
var f = a.g[3];
|
|
1498
|
+
var h = b + (f ^ c & (e ^ f)) + d[0] + 3614090360 & 4294967295;
|
|
1499
|
+
b = c + (h << 7 & 4294967295 | h >>> 25);
|
|
1500
|
+
h = f + (e ^ b & (c ^ e)) + d[1] + 3905402710 & 4294967295;
|
|
1501
|
+
f = b + (h << 12 & 4294967295 | h >>> 20);
|
|
1502
|
+
h = e + (c ^ f & (b ^ c)) + d[2] + 606105819 & 4294967295;
|
|
1503
|
+
e = f + (h << 17 & 4294967295 | h >>> 15);
|
|
1504
|
+
h = c + (b ^ e & (f ^ b)) + d[3] + 3250441966 & 4294967295;
|
|
1505
|
+
c = e + (h << 22 & 4294967295 | h >>> 10);
|
|
1506
|
+
h = b + (f ^ c & (e ^ f)) + d[4] + 4118548399 & 4294967295;
|
|
1507
|
+
b = c + (h << 7 & 4294967295 | h >>> 25);
|
|
1508
|
+
h = f + (e ^ b & (c ^ e)) + d[5] + 1200080426 & 4294967295;
|
|
1509
|
+
f = b + (h << 12 & 4294967295 | h >>> 20);
|
|
1510
|
+
h = e + (c ^ f & (b ^ c)) + d[6] + 2821735955 & 4294967295;
|
|
1511
|
+
e = f + (h << 17 & 4294967295 | h >>> 15);
|
|
1512
|
+
h = c + (b ^ e & (f ^ b)) + d[7] + 4249261313 & 4294967295;
|
|
1513
|
+
c = e + (h << 22 & 4294967295 | h >>> 10);
|
|
1514
|
+
h = b + (f ^ c & (e ^ f)) + d[8] + 1770035416 & 4294967295;
|
|
1515
|
+
b = c + (h << 7 & 4294967295 | h >>> 25);
|
|
1516
|
+
h = f + (e ^ b & (c ^ e)) + d[9] + 2336552879 & 4294967295;
|
|
1517
|
+
f = b + (h << 12 & 4294967295 |
|
|
1518
|
+
h >>> 20);
|
|
1519
|
+
h = e + (c ^ f & (b ^ c)) + d[10] + 4294925233 & 4294967295;
|
|
1520
|
+
e = f + (h << 17 & 4294967295 | h >>> 15);
|
|
1521
|
+
h = c + (b ^ e & (f ^ b)) + d[11] + 2304563134 & 4294967295;
|
|
1522
|
+
c = e + (h << 22 & 4294967295 | h >>> 10);
|
|
1523
|
+
h = b + (f ^ c & (e ^ f)) + d[12] + 1804603682 & 4294967295;
|
|
1524
|
+
b = c + (h << 7 & 4294967295 | h >>> 25);
|
|
1525
|
+
h = f + (e ^ b & (c ^ e)) + d[13] + 4254626195 & 4294967295;
|
|
1526
|
+
f = b + (h << 12 & 4294967295 | h >>> 20);
|
|
1527
|
+
h = e + (c ^ f & (b ^ c)) + d[14] + 2792965006 & 4294967295;
|
|
1528
|
+
e = f + (h << 17 & 4294967295 | h >>> 15);
|
|
1529
|
+
h = c + (b ^ e & (f ^ b)) + d[15] + 1236535329 & 4294967295;
|
|
1530
|
+
c = e + (h << 22 & 4294967295 | h >>> 10);
|
|
1531
|
+
h = b + (e ^ f & (c ^ e)) + d[1] + 4129170786 & 4294967295;
|
|
1532
|
+
b = c + (h <<
|
|
1533
|
+
5 & 4294967295 | h >>> 27);
|
|
1534
|
+
h = f + (c ^ e & (b ^ c)) + d[6] + 3225465664 & 4294967295;
|
|
1535
|
+
f = b + (h << 9 & 4294967295 | h >>> 23);
|
|
1536
|
+
h = e + (b ^ c & (f ^ b)) + d[11] + 643717713 & 4294967295;
|
|
1537
|
+
e = f + (h << 14 & 4294967295 | h >>> 18);
|
|
1538
|
+
h = c + (f ^ b & (e ^ f)) + d[0] + 3921069994 & 4294967295;
|
|
1539
|
+
c = e + (h << 20 & 4294967295 | h >>> 12);
|
|
1540
|
+
h = b + (e ^ f & (c ^ e)) + d[5] + 3593408605 & 4294967295;
|
|
1541
|
+
b = c + (h << 5 & 4294967295 | h >>> 27);
|
|
1542
|
+
h = f + (c ^ e & (b ^ c)) + d[10] + 38016083 & 4294967295;
|
|
1543
|
+
f = b + (h << 9 & 4294967295 | h >>> 23);
|
|
1544
|
+
h = e + (b ^ c & (f ^ b)) + d[15] + 3634488961 & 4294967295;
|
|
1545
|
+
e = f + (h << 14 & 4294967295 | h >>> 18);
|
|
1546
|
+
h = c + (f ^ b & (e ^ f)) + d[4] + 3889429448 & 4294967295;
|
|
1547
|
+
c =
|
|
1548
|
+
e + (h << 20 & 4294967295 | h >>> 12);
|
|
1549
|
+
h = b + (e ^ f & (c ^ e)) + d[9] + 568446438 & 4294967295;
|
|
1550
|
+
b = c + (h << 5 & 4294967295 | h >>> 27);
|
|
1551
|
+
h = f + (c ^ e & (b ^ c)) + d[14] + 3275163606 & 4294967295;
|
|
1552
|
+
f = b + (h << 9 & 4294967295 | h >>> 23);
|
|
1553
|
+
h = e + (b ^ c & (f ^ b)) + d[3] + 4107603335 & 4294967295;
|
|
1554
|
+
e = f + (h << 14 & 4294967295 | h >>> 18);
|
|
1555
|
+
h = c + (f ^ b & (e ^ f)) + d[8] + 1163531501 & 4294967295;
|
|
1556
|
+
c = e + (h << 20 & 4294967295 | h >>> 12);
|
|
1557
|
+
h = b + (e ^ f & (c ^ e)) + d[13] + 2850285829 & 4294967295;
|
|
1558
|
+
b = c + (h << 5 & 4294967295 | h >>> 27);
|
|
1559
|
+
h = f + (c ^ e & (b ^ c)) + d[2] + 4243563512 & 4294967295;
|
|
1560
|
+
f = b + (h << 9 & 4294967295 | h >>> 23);
|
|
1561
|
+
h = e + (b ^ c & (f ^ b)) + d[7] + 1735328473 & 4294967295;
|
|
1562
|
+
e = f + (h << 14 & 4294967295 | h >>> 18);
|
|
1563
|
+
h = c + (f ^ b & (e ^ f)) + d[12] + 2368359562 & 4294967295;
|
|
1564
|
+
c = e + (h << 20 & 4294967295 | h >>> 12);
|
|
1565
|
+
h = b + (c ^ e ^ f) + d[5] + 4294588738 & 4294967295;
|
|
1566
|
+
b = c + (h << 4 & 4294967295 | h >>> 28);
|
|
1567
|
+
h = f + (b ^ c ^ e) + d[8] + 2272392833 & 4294967295;
|
|
1568
|
+
f = b + (h << 11 & 4294967295 | h >>> 21);
|
|
1569
|
+
h = e + (f ^ b ^ c) + d[11] + 1839030562 & 4294967295;
|
|
1570
|
+
e = f + (h << 16 & 4294967295 | h >>> 16);
|
|
1571
|
+
h = c + (e ^ f ^ b) + d[14] + 4259657740 & 4294967295;
|
|
1572
|
+
c = e + (h << 23 & 4294967295 | h >>> 9);
|
|
1573
|
+
h = b + (c ^ e ^ f) + d[1] + 2763975236 & 4294967295;
|
|
1574
|
+
b = c + (h << 4 & 4294967295 | h >>> 28);
|
|
1575
|
+
h = f + (b ^ c ^ e) + d[4] + 1272893353 & 4294967295;
|
|
1576
|
+
f = b + (h << 11 & 4294967295 |
|
|
1577
|
+
h >>> 21);
|
|
1578
|
+
h = e + (f ^ b ^ c) + d[7] + 4139469664 & 4294967295;
|
|
1579
|
+
e = f + (h << 16 & 4294967295 | h >>> 16);
|
|
1580
|
+
h = c + (e ^ f ^ b) + d[10] + 3200236656 & 4294967295;
|
|
1581
|
+
c = e + (h << 23 & 4294967295 | h >>> 9);
|
|
1582
|
+
h = b + (c ^ e ^ f) + d[13] + 681279174 & 4294967295;
|
|
1583
|
+
b = c + (h << 4 & 4294967295 | h >>> 28);
|
|
1584
|
+
h = f + (b ^ c ^ e) + d[0] + 3936430074 & 4294967295;
|
|
1585
|
+
f = b + (h << 11 & 4294967295 | h >>> 21);
|
|
1586
|
+
h = e + (f ^ b ^ c) + d[3] + 3572445317 & 4294967295;
|
|
1587
|
+
e = f + (h << 16 & 4294967295 | h >>> 16);
|
|
1588
|
+
h = c + (e ^ f ^ b) + d[6] + 76029189 & 4294967295;
|
|
1589
|
+
c = e + (h << 23 & 4294967295 | h >>> 9);
|
|
1590
|
+
h = b + (c ^ e ^ f) + d[9] + 3654602809 & 4294967295;
|
|
1591
|
+
b = c + (h << 4 & 4294967295 | h >>> 28);
|
|
1592
|
+
h = f + (b ^ c ^ e) + d[12] +
|
|
1593
|
+
3873151461 & 4294967295;
|
|
1594
|
+
f = b + (h << 11 & 4294967295 | h >>> 21);
|
|
1595
|
+
h = e + (f ^ b ^ c) + d[15] + 530742520 & 4294967295;
|
|
1596
|
+
e = f + (h << 16 & 4294967295 | h >>> 16);
|
|
1597
|
+
h = c + (e ^ f ^ b) + d[2] + 3299628645 & 4294967295;
|
|
1598
|
+
c = e + (h << 23 & 4294967295 | h >>> 9);
|
|
1599
|
+
h = b + (e ^ (c | ~f)) + d[0] + 4096336452 & 4294967295;
|
|
1600
|
+
b = c + (h << 6 & 4294967295 | h >>> 26);
|
|
1601
|
+
h = f + (c ^ (b | ~e)) + d[7] + 1126891415 & 4294967295;
|
|
1602
|
+
f = b + (h << 10 & 4294967295 | h >>> 22);
|
|
1603
|
+
h = e + (b ^ (f | ~c)) + d[14] + 2878612391 & 4294967295;
|
|
1604
|
+
e = f + (h << 15 & 4294967295 | h >>> 17);
|
|
1605
|
+
h = c + (f ^ (e | ~b)) + d[5] + 4237533241 & 4294967295;
|
|
1606
|
+
c = e + (h << 21 & 4294967295 | h >>> 11);
|
|
1607
|
+
h = b + (e ^ (c | ~f)) + d[12] + 1700485571 &
|
|
1608
|
+
4294967295;
|
|
1609
|
+
b = c + (h << 6 & 4294967295 | h >>> 26);
|
|
1610
|
+
h = f + (c ^ (b | ~e)) + d[3] + 2399980690 & 4294967295;
|
|
1611
|
+
f = b + (h << 10 & 4294967295 | h >>> 22);
|
|
1612
|
+
h = e + (b ^ (f | ~c)) + d[10] + 4293915773 & 4294967295;
|
|
1613
|
+
e = f + (h << 15 & 4294967295 | h >>> 17);
|
|
1614
|
+
h = c + (f ^ (e | ~b)) + d[1] + 2240044497 & 4294967295;
|
|
1615
|
+
c = e + (h << 21 & 4294967295 | h >>> 11);
|
|
1616
|
+
h = b + (e ^ (c | ~f)) + d[8] + 1873313359 & 4294967295;
|
|
1617
|
+
b = c + (h << 6 & 4294967295 | h >>> 26);
|
|
1618
|
+
h = f + (c ^ (b | ~e)) + d[15] + 4264355552 & 4294967295;
|
|
1619
|
+
f = b + (h << 10 & 4294967295 | h >>> 22);
|
|
1620
|
+
h = e + (b ^ (f | ~c)) + d[6] + 2734768916 & 4294967295;
|
|
1621
|
+
e = f + (h << 15 & 4294967295 | h >>> 17);
|
|
1622
|
+
h = c + (f ^ (e | ~b)) + d[13] + 1309151649 &
|
|
1623
|
+
4294967295;
|
|
1624
|
+
c = e + (h << 21 & 4294967295 | h >>> 11);
|
|
1625
|
+
h = b + (e ^ (c | ~f)) + d[4] + 4149444226 & 4294967295;
|
|
1626
|
+
b = c + (h << 6 & 4294967295 | h >>> 26);
|
|
1627
|
+
h = f + (c ^ (b | ~e)) + d[11] + 3174756917 & 4294967295;
|
|
1628
|
+
f = b + (h << 10 & 4294967295 | h >>> 22);
|
|
1629
|
+
h = e + (b ^ (f | ~c)) + d[2] + 718787259 & 4294967295;
|
|
1630
|
+
e = f + (h << 15 & 4294967295 | h >>> 17);
|
|
1631
|
+
h = c + (f ^ (e | ~b)) + d[9] + 3951481745 & 4294967295;
|
|
1632
|
+
a.g[0] = a.g[0] + b & 4294967295;
|
|
1633
|
+
a.g[1] = a.g[1] + (e + (h << 21 & 4294967295 | h >>> 11)) & 4294967295;
|
|
1634
|
+
a.g[2] = a.g[2] + e & 4294967295;
|
|
1635
|
+
a.g[3] = a.g[3] + f & 4294967295;
|
|
1636
|
+
}
|
|
1637
|
+
S.prototype.j = function (a, b) { void 0 === b && (b = a.length); for (var c = b - this.blockSize, d = this.m, e = this.h, f = 0; f < b;) {
|
|
1638
|
+
if (0 == e)
|
|
1639
|
+
for (; f <= c;)
|
|
1640
|
+
Sd(this, a, f), f += this.blockSize;
|
|
1641
|
+
if ("string" === typeof a)
|
|
1642
|
+
for (; f < b;) {
|
|
1643
|
+
if (d[e++] = a.charCodeAt(f++), e == this.blockSize) {
|
|
1644
|
+
Sd(this, d);
|
|
1645
|
+
e = 0;
|
|
1646
|
+
break;
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
else
|
|
1650
|
+
for (; f < b;)
|
|
1651
|
+
if (d[e++] = a[f++], e == this.blockSize) {
|
|
1652
|
+
Sd(this, d);
|
|
1653
|
+
e = 0;
|
|
1654
|
+
break;
|
|
1655
|
+
}
|
|
1656
|
+
} this.h = e; this.i += b; };
|
|
1657
|
+
S.prototype.l = function () { var a = Array((56 > this.h ? this.blockSize : 2 * this.blockSize) - this.h); a[0] = 128; for (var b = 1; b < a.length - 8; ++b)
|
|
1658
|
+
a[b] = 0; var c = 8 * this.i; for (b = a.length - 8; b < a.length; ++b)
|
|
1659
|
+
a[b] = c & 255, c /= 256; this.j(a); a = Array(16); for (b = c = 0; 4 > b; ++b)
|
|
1660
|
+
for (var d = 0; 32 > d; d += 8)
|
|
1661
|
+
a[c++] = this.g[b] >>> d & 255; return a; };
|
|
1662
|
+
function T(a, b) { this.h = b; for (var c = [], d = !0, e = a.length - 1; 0 <= e; e--) {
|
|
1663
|
+
var f = a[e] | 0;
|
|
1664
|
+
d && f == b || (c[e] = f, d = !1);
|
|
1665
|
+
} this.g = c; }
|
|
1666
|
+
var sa = {};
|
|
1667
|
+
function Td(a) { return -128 <= a && 128 > a ? ra(a, function (b) { return new T([b | 0], 0 > b ? -1 : 0); }) : new T([a | 0], 0 > a ? -1 : 0); }
|
|
1668
|
+
function U(a) { if (isNaN(a) || !isFinite(a))
|
|
1669
|
+
return V; if (0 > a)
|
|
1670
|
+
return W(U(-a)); for (var b = [], c = 1, d = 0; a >= c; d++)
|
|
1671
|
+
b[d] = a / c | 0, c *= Ud; return new T(b, 0); }
|
|
1672
|
+
function Vd(a, b) { if (0 == a.length)
|
|
1673
|
+
throw Error("number format error: empty string"); b = b || 10; if (2 > b || 36 < b)
|
|
1674
|
+
throw Error("radix out of range: " + b); if ("-" == a.charAt(0))
|
|
1675
|
+
return W(Vd(a.substring(1), b)); if (0 <= a.indexOf("-"))
|
|
1676
|
+
throw Error('number format error: interior "-" character'); for (var c = U(Math.pow(b, 8)), d = V, e = 0; e < a.length; e += 8) {
|
|
1677
|
+
var f = Math.min(8, a.length - e), h = parseInt(a.substring(e, e + f), b);
|
|
1678
|
+
8 > f ? (f = U(Math.pow(b, f)), d = d.R(f).add(U(h))) : (d = d.R(c), d = d.add(U(h)));
|
|
1679
|
+
} return d; }
|
|
1680
|
+
var Ud = 4294967296, V = Td(0), Wd = Td(1), Xd = Td(16777216);
|
|
1681
|
+
k = T.prototype;
|
|
1682
|
+
k.ea = function () { if (X(this))
|
|
1683
|
+
return -W(this).ea(); for (var a = 0, b = 1, c = 0; c < this.g.length; c++) {
|
|
1684
|
+
var d = this.D(c);
|
|
1685
|
+
a += (0 <= d ? d : Ud + d) * b;
|
|
1686
|
+
b *= Ud;
|
|
1687
|
+
} return a; };
|
|
1688
|
+
k.toString = function (a) { a = a || 10; if (2 > a || 36 < a)
|
|
1689
|
+
throw Error("radix out of range: " + a); if (Y(this))
|
|
1690
|
+
return "0"; if (X(this))
|
|
1691
|
+
return "-" + W(this).toString(a); for (var b = U(Math.pow(a, 6)), c = this, d = "";;) {
|
|
1692
|
+
var e = Yd(c, b).g;
|
|
1693
|
+
c = Zd(c, e.R(b));
|
|
1694
|
+
var f = ((0 < c.g.length ? c.g[0] : c.h) >>> 0).toString(a);
|
|
1695
|
+
c = e;
|
|
1696
|
+
if (Y(c))
|
|
1697
|
+
return f + d;
|
|
1698
|
+
for (; 6 > f.length;)
|
|
1699
|
+
f = "0" + f;
|
|
1700
|
+
d = f + d;
|
|
1701
|
+
} };
|
|
1702
|
+
k.D = function (a) { return 0 > a ? 0 : a < this.g.length ? this.g[a] : this.h; };
|
|
1703
|
+
function Y(a) { if (0 != a.h)
|
|
1704
|
+
return !1; for (var b = 0; b < a.g.length; b++)
|
|
1705
|
+
if (0 != a.g[b])
|
|
1706
|
+
return !1; return !0; }
|
|
1707
|
+
function X(a) { return -1 == a.h; }
|
|
1708
|
+
k.X = function (a) { a = Zd(this, a); return X(a) ? -1 : Y(a) ? 0 : 1; };
|
|
1709
|
+
function W(a) { for (var b = a.g.length, c = [], d = 0; d < b; d++)
|
|
1710
|
+
c[d] = ~a.g[d]; return (new T(c, ~a.h)).add(Wd); }
|
|
1711
|
+
k.abs = function () { return X(this) ? W(this) : this; };
|
|
1712
|
+
k.add = function (a) { for (var b = Math.max(this.g.length, a.g.length), c = [], d = 0, e = 0; e <= b; e++) {
|
|
1713
|
+
var f = d + (this.D(e) & 65535) + (a.D(e) & 65535), h = (f >>> 16) + (this.D(e) >>> 16) + (a.D(e) >>> 16);
|
|
1714
|
+
d = h >>> 16;
|
|
1715
|
+
f &= 65535;
|
|
1716
|
+
h &= 65535;
|
|
1717
|
+
c[e] = h << 16 | f;
|
|
1718
|
+
} return new T(c, c[c.length - 1] & -2147483648 ? -1 : 0); };
|
|
1719
|
+
function Zd(a, b) { return a.add(W(b)); }
|
|
1720
|
+
k.R = function (a) {
|
|
1721
|
+
if (Y(this) || Y(a))
|
|
1722
|
+
return V;
|
|
1723
|
+
if (X(this))
|
|
1724
|
+
return X(a) ? W(this).R(W(a)) : W(W(this).R(a));
|
|
1725
|
+
if (X(a))
|
|
1726
|
+
return W(this.R(W(a)));
|
|
1727
|
+
if (0 > this.X(Xd) && 0 > a.X(Xd))
|
|
1728
|
+
return U(this.ea() * a.ea());
|
|
1729
|
+
for (var b = this.g.length + a.g.length, c = [], d = 0; d < 2 * b; d++)
|
|
1730
|
+
c[d] = 0;
|
|
1731
|
+
for (d = 0; d < this.g.length; d++)
|
|
1732
|
+
for (var e = 0; e < a.g.length; e++) {
|
|
1733
|
+
var f = this.D(d) >>> 16, h = this.D(d) & 65535, n = a.D(e) >>> 16, t = a.D(e) & 65535;
|
|
1734
|
+
c[2 * d + 2 * e] += h * t;
|
|
1735
|
+
$d(c, 2 * d + 2 * e);
|
|
1736
|
+
c[2 * d + 2 * e + 1] += f * t;
|
|
1737
|
+
$d(c, 2 * d + 2 * e + 1);
|
|
1738
|
+
c[2 * d + 2 * e + 1] += h * n;
|
|
1739
|
+
$d(c, 2 * d + 2 * e + 1);
|
|
1740
|
+
c[2 * d + 2 * e + 2] += f * n;
|
|
1741
|
+
$d(c, 2 * d + 2 * e + 2);
|
|
1742
|
+
}
|
|
1743
|
+
for (d =
|
|
1744
|
+
0; d < b; d++)
|
|
1745
|
+
c[d] = c[2 * d + 1] << 16 | c[2 * d];
|
|
1746
|
+
for (d = b; d < 2 * b; d++)
|
|
1747
|
+
c[d] = 0;
|
|
1748
|
+
return new T(c, 0);
|
|
1749
|
+
};
|
|
1750
|
+
function $d(a, b) { for (; (a[b] & 65535) != a[b];)
|
|
1751
|
+
a[b + 1] += a[b] >>> 16, a[b] &= 65535, b++; }
|
|
1752
|
+
function ae(a, b) { this.g = a; this.h = b; }
|
|
1753
|
+
function Yd(a, b) {
|
|
1754
|
+
if (Y(b))
|
|
1755
|
+
throw Error("division by zero");
|
|
1756
|
+
if (Y(a))
|
|
1757
|
+
return new ae(V, V);
|
|
1758
|
+
if (X(a))
|
|
1759
|
+
return b = Yd(W(a), b), new ae(W(b.g), W(b.h));
|
|
1760
|
+
if (X(b))
|
|
1761
|
+
return b = Yd(a, W(b)), new ae(W(b.g), b.h);
|
|
1762
|
+
if (30 < a.g.length) {
|
|
1763
|
+
if (X(a) || X(b))
|
|
1764
|
+
throw Error("slowDivide_ only works with positive integers.");
|
|
1765
|
+
for (var c = Wd, d = b; 0 >= d.X(a);)
|
|
1766
|
+
c = be(c), d = be(d);
|
|
1767
|
+
var e = Z(c, 1), f = Z(d, 1);
|
|
1768
|
+
d = Z(d, 2);
|
|
1769
|
+
for (c = Z(c, 2); !Y(d);) {
|
|
1770
|
+
var h = f.add(d);
|
|
1771
|
+
0 >= h.X(a) && (e = e.add(c), f = h);
|
|
1772
|
+
d = Z(d, 1);
|
|
1773
|
+
c = Z(c, 1);
|
|
1774
|
+
}
|
|
1775
|
+
b = Zd(a, e.R(b));
|
|
1776
|
+
return new ae(e, b);
|
|
1777
|
+
}
|
|
1778
|
+
for (e = V; 0 <= a.X(b);) {
|
|
1779
|
+
c = Math.max(1, Math.floor(a.ea() /
|
|
1780
|
+
b.ea()));
|
|
1781
|
+
d = Math.ceil(Math.log(c) / Math.LN2);
|
|
1782
|
+
d = 48 >= d ? 1 : Math.pow(2, d - 48);
|
|
1783
|
+
f = U(c);
|
|
1784
|
+
for (h = f.R(b); X(h) || 0 < h.X(a);)
|
|
1785
|
+
c -= d, f = U(c), h = f.R(b);
|
|
1786
|
+
Y(f) && (f = Wd);
|
|
1787
|
+
e = e.add(f);
|
|
1788
|
+
a = Zd(a, h);
|
|
1789
|
+
}
|
|
1790
|
+
return new ae(e, a);
|
|
1791
|
+
}
|
|
1792
|
+
k.gb = function (a) { return Yd(this, a).h; };
|
|
1793
|
+
k.and = function (a) { for (var b = Math.max(this.g.length, a.g.length), c = [], d = 0; d < b; d++)
|
|
1794
|
+
c[d] = this.D(d) & a.D(d); return new T(c, this.h & a.h); };
|
|
1795
|
+
k.or = function (a) { for (var b = Math.max(this.g.length, a.g.length), c = [], d = 0; d < b; d++)
|
|
1796
|
+
c[d] = this.D(d) | a.D(d); return new T(c, this.h | a.h); };
|
|
1797
|
+
k.xor = function (a) { for (var b = Math.max(this.g.length, a.g.length), c = [], d = 0; d < b; d++)
|
|
1798
|
+
c[d] = this.D(d) ^ a.D(d); return new T(c, this.h ^ a.h); };
|
|
1799
|
+
function be(a) { for (var b = a.g.length + 1, c = [], d = 0; d < b; d++)
|
|
1800
|
+
c[d] = a.D(d) << 1 | a.D(d - 1) >>> 31; return new T(c, a.h); }
|
|
1801
|
+
function Z(a, b) { var c = b >> 5; b %= 32; for (var d = a.g.length - c, e = [], f = 0; f < d; f++)
|
|
1802
|
+
e[f] = 0 < b ? a.D(f + c) >>> b | a.D(f + c + 1) << 32 - b : a.D(f + c); return new T(e, a.h); }
|
|
1803
|
+
Od.prototype.createWebChannel = Od.prototype.g;
|
|
1804
|
+
Q.prototype.send = Q.prototype.u;
|
|
1805
|
+
Q.prototype.open = Q.prototype.m;
|
|
1806
|
+
Q.prototype.close = Q.prototype.close;
|
|
1807
|
+
Sb.NO_ERROR = 0;
|
|
1808
|
+
Sb.TIMEOUT = 8;
|
|
1809
|
+
Sb.HTTP_ERROR = 6;
|
|
1810
|
+
Tb.COMPLETE = "complete";
|
|
1811
|
+
Wb.EventType = Xb;
|
|
1812
|
+
Xb.OPEN = "a";
|
|
1813
|
+
Xb.CLOSE = "b";
|
|
1814
|
+
Xb.ERROR = "c";
|
|
1815
|
+
Xb.MESSAGE = "d";
|
|
1816
|
+
B.prototype.listen = B.prototype.O;
|
|
1817
|
+
P.prototype.listenOnce = P.prototype.P;
|
|
1818
|
+
P.prototype.getLastError = P.prototype.Sa;
|
|
1819
|
+
P.prototype.getLastErrorCode = P.prototype.Ia;
|
|
1820
|
+
P.prototype.getStatus = P.prototype.da;
|
|
1821
|
+
P.prototype.getResponseJson = P.prototype.Wa;
|
|
1822
|
+
P.prototype.getResponseText = P.prototype.ja;
|
|
1823
|
+
P.prototype.send = P.prototype.ha;
|
|
1824
|
+
P.prototype.setWithCredentials = P.prototype.Oa;
|
|
1825
|
+
S.prototype.digest = S.prototype.l;
|
|
1826
|
+
S.prototype.reset = S.prototype.reset;
|
|
1827
|
+
S.prototype.update = S.prototype.j;
|
|
1828
|
+
T.prototype.add = T.prototype.add;
|
|
1829
|
+
T.prototype.multiply = T.prototype.R;
|
|
1830
|
+
T.prototype.modulo = T.prototype.gb;
|
|
1831
|
+
T.prototype.compare = T.prototype.X;
|
|
1832
|
+
T.prototype.toNumber = T.prototype.ea;
|
|
1833
|
+
T.prototype.toString = T.prototype.toString;
|
|
1834
|
+
T.prototype.getBits = T.prototype.D;
|
|
1835
|
+
T.fromNumber = U;
|
|
1836
|
+
T.fromString = Vd;
|
|
1837
|
+
var createWebChannelTransport = esm.createWebChannelTransport = function () { return new Od; };
|
|
1838
|
+
var getStatEventTarget = esm.getStatEventTarget = function () { return Mb(); };
|
|
1839
|
+
var ErrorCode = esm.ErrorCode = Sb;
|
|
1840
|
+
var EventType = esm.EventType = Tb;
|
|
1841
|
+
var Event = esm.Event = E;
|
|
1842
|
+
var Stat = esm.Stat = { xb: 0, Ab: 1, Bb: 2, Ub: 3, Zb: 4, Wb: 5, Xb: 6, Vb: 7, Tb: 8, Yb: 9, PROXY: 10, NOPROXY: 11, Rb: 12, Nb: 13, Ob: 14, Mb: 15, Pb: 16, Qb: 17, tb: 18, sb: 19, ub: 20 };
|
|
1843
|
+
var FetchXmlHttpFactory = esm.FetchXmlHttpFactory = ld;
|
|
1844
|
+
var WebChannel = esm.WebChannel = Wb;
|
|
1845
|
+
var XhrIo = esm.XhrIo = P;
|
|
1846
|
+
var Md5 = esm.Md5 = S;
|
|
1847
|
+
var Integer = esm.Integer = T;
|
|
1848
|
+
|
|
1849
|
+
export { ErrorCode, Event, EventType, FetchXmlHttpFactory, Integer, Md5, Stat, WebChannel, XhrIo, createWebChannelTransport, esm as default, getStatEventTarget };
|
|
1850
|
+
//# sourceMappingURL=index.esm.js.map
|