@voicenter-team/events-sdk 0.0.67 → 0.0.69
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/voicenter-events-sdk.cjs.js +8 -8
- package/dist/voicenter-events-sdk.cjs.js.map +1 -1
- package/dist/voicenter-events-sdk.d.ts +846 -324
- package/dist/voicenter-events-sdk.es.js +1078 -1061
- package/dist/voicenter-events-sdk.es.js.map +1 -1
- package/dist/voicenter-events-sdk.iife.js +8 -8
- package/dist/voicenter-events-sdk.iife.js.map +1 -1
- package/dist/voicenter-events-sdk.umd.js +8 -8
- package/dist/voicenter-events-sdk.umd.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var H = (t, e, r) => (
|
|
4
|
-
function
|
|
1
|
+
var xr = Object.defineProperty;
|
|
2
|
+
var Ir = (t, e, r) => e in t ? xr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var H = (t, e, r) => (Ir(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
|
+
function Rr(t) {
|
|
5
5
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
6
6
|
}
|
|
7
|
-
var
|
|
7
|
+
var er = { exports: {} }, rr = { exports: {} };
|
|
8
8
|
(function() {
|
|
9
9
|
var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", e = {
|
|
10
10
|
// Bit-wise rotation left
|
|
@@ -68,18 +68,18 @@ var Ve = { exports: {} }, $e = { exports: {} };
|
|
|
68
68
|
return n;
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
|
-
|
|
71
|
+
rr.exports = e;
|
|
72
72
|
})();
|
|
73
|
-
var
|
|
73
|
+
var Br = rr.exports, ue = {
|
|
74
74
|
// UTF-8 encoding
|
|
75
75
|
utf8: {
|
|
76
76
|
// Convert a string to a byte array
|
|
77
77
|
stringToBytes: function(t) {
|
|
78
|
-
return
|
|
78
|
+
return ue.bin.stringToBytes(unescape(encodeURIComponent(t)));
|
|
79
79
|
},
|
|
80
80
|
// Convert a byte array to a string
|
|
81
81
|
bytesToString: function(t) {
|
|
82
|
-
return decodeURIComponent(escape(
|
|
82
|
+
return decodeURIComponent(escape(ue.bin.bytesToString(t)));
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
// Binary encoding
|
|
@@ -97,55 +97,55 @@ var Nr = $e.exports, he = {
|
|
|
97
97
|
return e.join("");
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
},
|
|
100
|
+
}, Ue = ue;
|
|
101
101
|
/*!
|
|
102
102
|
* Determine if an object is a Buffer
|
|
103
103
|
*
|
|
104
104
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
105
105
|
* @license MIT
|
|
106
106
|
*/
|
|
107
|
-
var
|
|
108
|
-
return t != null && (
|
|
107
|
+
var _r = function(t) {
|
|
108
|
+
return t != null && (nr(t) || Lr(t) || !!t._isBuffer);
|
|
109
109
|
};
|
|
110
|
-
function
|
|
110
|
+
function nr(t) {
|
|
111
111
|
return !!t.constructor && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
return typeof t.readFloatLE == "function" && typeof t.slice == "function" &&
|
|
113
|
+
function Lr(t) {
|
|
114
|
+
return typeof t.readFloatLE == "function" && typeof t.slice == "function" && nr(t.slice(0, 0));
|
|
115
115
|
}
|
|
116
116
|
(function() {
|
|
117
|
-
var t =
|
|
117
|
+
var t = Br, e = Ue.utf8, r = _r, n = Ue.bin, o = function(i, u) {
|
|
118
118
|
i.constructor == String ? u && u.encoding === "binary" ? i = n.stringToBytes(i) : i = e.stringToBytes(i) : r(i) ? i = Array.prototype.slice.call(i, 0) : !Array.isArray(i) && i.constructor !== Uint8Array && (i = i.toString());
|
|
119
|
-
for (var h = t.bytesToWords(i),
|
|
119
|
+
for (var h = t.bytesToWords(i), f = i.length * 8, c = 1732584193, l = -271733879, p = -1732584194, a = 271733878, s = 0; s < h.length; s++)
|
|
120
120
|
h[s] = (h[s] << 8 | h[s] >>> 24) & 16711935 | (h[s] << 24 | h[s] >>> 8) & 4278255360;
|
|
121
|
-
h[
|
|
122
|
-
for (var
|
|
123
|
-
var
|
|
124
|
-
c =
|
|
121
|
+
h[f >>> 5] |= 128 << f % 32, h[(f + 64 >>> 9 << 4) + 14] = f;
|
|
122
|
+
for (var d = o._ff, y = o._gg, g = o._hh, w = o._ii, s = 0; s < h.length; s += 16) {
|
|
123
|
+
var B = c, _ = l, b = p, S = a;
|
|
124
|
+
c = d(c, l, p, a, h[s + 0], 7, -680876936), a = d(a, c, l, p, h[s + 1], 12, -389564586), p = d(p, a, c, l, h[s + 2], 17, 606105819), l = d(l, p, a, c, h[s + 3], 22, -1044525330), c = d(c, l, p, a, h[s + 4], 7, -176418897), a = d(a, c, l, p, h[s + 5], 12, 1200080426), p = d(p, a, c, l, h[s + 6], 17, -1473231341), l = d(l, p, a, c, h[s + 7], 22, -45705983), c = d(c, l, p, a, h[s + 8], 7, 1770035416), a = d(a, c, l, p, h[s + 9], 12, -1958414417), p = d(p, a, c, l, h[s + 10], 17, -42063), l = d(l, p, a, c, h[s + 11], 22, -1990404162), c = d(c, l, p, a, h[s + 12], 7, 1804603682), a = d(a, c, l, p, h[s + 13], 12, -40341101), p = d(p, a, c, l, h[s + 14], 17, -1502002290), l = d(l, p, a, c, h[s + 15], 22, 1236535329), c = y(c, l, p, a, h[s + 1], 5, -165796510), a = y(a, c, l, p, h[s + 6], 9, -1069501632), p = y(p, a, c, l, h[s + 11], 14, 643717713), l = y(l, p, a, c, h[s + 0], 20, -373897302), c = y(c, l, p, a, h[s + 5], 5, -701558691), a = y(a, c, l, p, h[s + 10], 9, 38016083), p = y(p, a, c, l, h[s + 15], 14, -660478335), l = y(l, p, a, c, h[s + 4], 20, -405537848), c = y(c, l, p, a, h[s + 9], 5, 568446438), a = y(a, c, l, p, h[s + 14], 9, -1019803690), p = y(p, a, c, l, h[s + 3], 14, -187363961), l = y(l, p, a, c, h[s + 8], 20, 1163531501), c = y(c, l, p, a, h[s + 13], 5, -1444681467), a = y(a, c, l, p, h[s + 2], 9, -51403784), p = y(p, a, c, l, h[s + 7], 14, 1735328473), l = y(l, p, a, c, h[s + 12], 20, -1926607734), c = g(c, l, p, a, h[s + 5], 4, -378558), a = g(a, c, l, p, h[s + 8], 11, -2022574463), p = g(p, a, c, l, h[s + 11], 16, 1839030562), l = g(l, p, a, c, h[s + 14], 23, -35309556), c = g(c, l, p, a, h[s + 1], 4, -1530992060), a = g(a, c, l, p, h[s + 4], 11, 1272893353), p = g(p, a, c, l, h[s + 7], 16, -155497632), l = g(l, p, a, c, h[s + 10], 23, -1094730640), c = g(c, l, p, a, h[s + 13], 4, 681279174), a = g(a, c, l, p, h[s + 0], 11, -358537222), p = g(p, a, c, l, h[s + 3], 16, -722521979), l = g(l, p, a, c, h[s + 6], 23, 76029189), c = g(c, l, p, a, h[s + 9], 4, -640364487), a = g(a, c, l, p, h[s + 12], 11, -421815835), p = g(p, a, c, l, h[s + 15], 16, 530742520), l = g(l, p, a, c, h[s + 2], 23, -995338651), c = w(c, l, p, a, h[s + 0], 6, -198630844), a = w(a, c, l, p, h[s + 7], 10, 1126891415), p = w(p, a, c, l, h[s + 14], 15, -1416354905), l = w(l, p, a, c, h[s + 5], 21, -57434055), c = w(c, l, p, a, h[s + 12], 6, 1700485571), a = w(a, c, l, p, h[s + 3], 10, -1894986606), p = w(p, a, c, l, h[s + 10], 15, -1051523), l = w(l, p, a, c, h[s + 1], 21, -2054922799), c = w(c, l, p, a, h[s + 8], 6, 1873313359), a = w(a, c, l, p, h[s + 15], 10, -30611744), p = w(p, a, c, l, h[s + 6], 15, -1560198380), l = w(l, p, a, c, h[s + 13], 21, 1309151649), c = w(c, l, p, a, h[s + 4], 6, -145523070), a = w(a, c, l, p, h[s + 11], 10, -1120210379), p = w(p, a, c, l, h[s + 2], 15, 718787259), l = w(l, p, a, c, h[s + 9], 21, -343485551), c = c + B >>> 0, l = l + _ >>> 0, p = p + b >>> 0, a = a + S >>> 0;
|
|
125
125
|
}
|
|
126
126
|
return t.endian([c, l, p, a]);
|
|
127
127
|
};
|
|
128
|
-
o._ff = function(i, u, h,
|
|
129
|
-
var a = i + (u & h | ~u &
|
|
128
|
+
o._ff = function(i, u, h, f, c, l, p) {
|
|
129
|
+
var a = i + (u & h | ~u & f) + (c >>> 0) + p;
|
|
130
130
|
return (a << l | a >>> 32 - l) + u;
|
|
131
|
-
}, o._gg = function(i, u, h,
|
|
132
|
-
var a = i + (u &
|
|
131
|
+
}, o._gg = function(i, u, h, f, c, l, p) {
|
|
132
|
+
var a = i + (u & f | h & ~f) + (c >>> 0) + p;
|
|
133
133
|
return (a << l | a >>> 32 - l) + u;
|
|
134
|
-
}, o._hh = function(i, u, h,
|
|
135
|
-
var a = i + (u ^ h ^
|
|
134
|
+
}, o._hh = function(i, u, h, f, c, l, p) {
|
|
135
|
+
var a = i + (u ^ h ^ f) + (c >>> 0) + p;
|
|
136
136
|
return (a << l | a >>> 32 - l) + u;
|
|
137
|
-
}, o._ii = function(i, u, h,
|
|
138
|
-
var a = i + (h ^ (u | ~
|
|
137
|
+
}, o._ii = function(i, u, h, f, c, l, p) {
|
|
138
|
+
var a = i + (h ^ (u | ~f)) + (c >>> 0) + p;
|
|
139
139
|
return (a << l | a >>> 32 - l) + u;
|
|
140
|
-
}, o._blocksize = 16, o._digestsize = 16,
|
|
140
|
+
}, o._blocksize = 16, o._digestsize = 16, er.exports = function(i, u) {
|
|
141
141
|
if (i == null)
|
|
142
142
|
throw new Error("Illegal argument " + i);
|
|
143
143
|
var h = t.wordsToBytes(o(i, u));
|
|
144
144
|
return u && u.asBytes ? h : u && u.asString ? n.bytesToString(h) : t.bytesToHex(h);
|
|
145
145
|
};
|
|
146
146
|
})();
|
|
147
|
-
var
|
|
148
|
-
const
|
|
147
|
+
var Ur = er.exports;
|
|
148
|
+
const Dr = /* @__PURE__ */ Rr(Ur);
|
|
149
149
|
var vt = /* @__PURE__ */ ((t) => (t.MAIN = "main", t.NEXT = "next", t))(vt || {}), it = /* @__PURE__ */ ((t) => (t.USER = "User", t.TOKEN = "Token", t))(it || {});
|
|
150
150
|
class It {
|
|
151
151
|
static async getSessionStorageDataByKey(e, r = !0) {
|
|
@@ -169,11 +169,11 @@ class It {
|
|
|
169
169
|
typeof chrome < "u" && typeof chrome.storage < "u" && chrome.storage.session.clear(), typeof window < "u" && typeof window.sessionStorage < "u" && typeof window.sessionStorage.clear == "function" && window.sessionStorage.clear();
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
var
|
|
173
|
-
function
|
|
172
|
+
var Pr = Object.defineProperty, Fr = (t, e, r) => e in t ? Pr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, V = (t, e, r) => (Fr(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
173
|
+
function jr(t) {
|
|
174
174
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function Mr(t) {
|
|
177
177
|
if (t.__esModule)
|
|
178
178
|
return t;
|
|
179
179
|
var e = t.default;
|
|
@@ -194,7 +194,7 @@ function Ur(t) {
|
|
|
194
194
|
});
|
|
195
195
|
}), r;
|
|
196
196
|
}
|
|
197
|
-
var
|
|
197
|
+
var le = { exports: {} }, qr = /^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, zr = [
|
|
198
198
|
"source",
|
|
199
199
|
"protocol",
|
|
200
200
|
"authority",
|
|
@@ -209,35 +209,35 @@ var pe = { exports: {} }, Dr = /^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/
|
|
|
209
209
|
"file",
|
|
210
210
|
"query",
|
|
211
211
|
"anchor"
|
|
212
|
-
],
|
|
212
|
+
], or = function(t) {
|
|
213
213
|
var e = t, r = t.indexOf("["), n = t.indexOf("]");
|
|
214
214
|
r != -1 && n != -1 && (t = t.substring(0, r) + t.substring(r, n).replace(/:/g, ";") + t.substring(n, t.length));
|
|
215
|
-
for (var o =
|
|
216
|
-
i[
|
|
217
|
-
return r != -1 && n != -1 && (i.source = e, i.host = i.host.substring(1, i.host.length - 1).replace(/;/g, ":"), i.authority = i.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), i.ipv6uri = !0), i.pathNames =
|
|
215
|
+
for (var o = qr.exec(t || ""), i = {}, u = 14; u--; )
|
|
216
|
+
i[zr[u]] = o[u] || "";
|
|
217
|
+
return r != -1 && n != -1 && (i.source = e, i.host = i.host.substring(1, i.host.length - 1).replace(/;/g, ":"), i.authority = i.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), i.ipv6uri = !0), i.pathNames = Xr(i, i.path), i.queryKey = Wr(i, i.query), i;
|
|
218
218
|
};
|
|
219
|
-
function
|
|
219
|
+
function Xr(t, e) {
|
|
220
220
|
var r = /\/{2,9}/g, n = e.replace(r, "/").split("/");
|
|
221
221
|
return (e.substr(0, 1) == "/" || e.length === 0) && n.splice(0, 1), e.substr(e.length - 1, 1) == "/" && n.splice(n.length - 1, 1), n;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function Wr(t, e) {
|
|
224
224
|
var r = {};
|
|
225
225
|
return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g, function(n, o, i) {
|
|
226
226
|
o && (r[o] = i);
|
|
227
227
|
}), r;
|
|
228
228
|
}
|
|
229
|
-
var
|
|
229
|
+
var fe = { exports: {} }, de = { exports: {} }, Rt = 1e3, Bt = Rt * 60, _t = Bt * 60, Lt = _t * 24, Kr = Lt * 365.25, Hr = function(t, e) {
|
|
230
230
|
e = e || {};
|
|
231
231
|
var r = typeof t;
|
|
232
232
|
if (r === "string" && t.length > 0)
|
|
233
|
-
return
|
|
233
|
+
return Jr(t);
|
|
234
234
|
if (r === "number" && isNaN(t) === !1)
|
|
235
|
-
return e.long ?
|
|
235
|
+
return e.long ? $r(t) : Vr(t);
|
|
236
236
|
throw new Error(
|
|
237
237
|
"val is not a non-empty string or a valid number. val=" + JSON.stringify(t)
|
|
238
238
|
);
|
|
239
239
|
};
|
|
240
|
-
function
|
|
240
|
+
function Jr(t) {
|
|
241
241
|
if (t = String(t), !(t.length > 100)) {
|
|
242
242
|
var e = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(
|
|
243
243
|
t
|
|
@@ -250,17 +250,17 @@ function zr(t) {
|
|
|
250
250
|
case "yrs":
|
|
251
251
|
case "yr":
|
|
252
252
|
case "y":
|
|
253
|
-
return r *
|
|
253
|
+
return r * Kr;
|
|
254
254
|
case "days":
|
|
255
255
|
case "day":
|
|
256
256
|
case "d":
|
|
257
|
-
return r *
|
|
257
|
+
return r * Lt;
|
|
258
258
|
case "hours":
|
|
259
259
|
case "hour":
|
|
260
260
|
case "hrs":
|
|
261
261
|
case "hr":
|
|
262
262
|
case "h":
|
|
263
|
-
return r *
|
|
263
|
+
return r * _t;
|
|
264
264
|
case "minutes":
|
|
265
265
|
case "minute":
|
|
266
266
|
case "mins":
|
|
@@ -272,7 +272,7 @@ function zr(t) {
|
|
|
272
272
|
case "secs":
|
|
273
273
|
case "sec":
|
|
274
274
|
case "s":
|
|
275
|
-
return r *
|
|
275
|
+
return r * Rt;
|
|
276
276
|
case "milliseconds":
|
|
277
277
|
case "millisecond":
|
|
278
278
|
case "msecs":
|
|
@@ -285,18 +285,18 @@ function zr(t) {
|
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
return t >=
|
|
288
|
+
function Vr(t) {
|
|
289
|
+
return t >= Lt ? Math.round(t / Lt) + "d" : t >= _t ? Math.round(t / _t) + "h" : t >= Bt ? Math.round(t / Bt) + "m" : t >= Rt ? Math.round(t / Rt) + "s" : t + "ms";
|
|
290
290
|
}
|
|
291
|
-
function
|
|
292
|
-
return
|
|
291
|
+
function $r(t) {
|
|
292
|
+
return Dt(t, Lt, "day") || Dt(t, _t, "hour") || Dt(t, Bt, "minute") || Dt(t, Rt, "second") || t + " ms";
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function Dt(t, e, r) {
|
|
295
295
|
if (!(t < e))
|
|
296
296
|
return t < e * 1.5 ? Math.floor(t / e) + " " + r : Math.ceil(t / e) + " " + r + "s";
|
|
297
297
|
}
|
|
298
298
|
(function(t, e) {
|
|
299
|
-
e = t.exports = n.debug = n.default = n, e.coerce =
|
|
299
|
+
e = t.exports = n.debug = n.default = n, e.coerce = f, e.disable = u, e.enable = i, e.enabled = h, e.humanize = Hr, e.instances = [], e.names = [], e.skips = [], e.formatters = {};
|
|
300
300
|
function r(c) {
|
|
301
301
|
var l = 0, p;
|
|
302
302
|
for (p in c)
|
|
@@ -307,25 +307,25 @@ function Pt(t, e, r) {
|
|
|
307
307
|
var l;
|
|
308
308
|
function p() {
|
|
309
309
|
if (p.enabled) {
|
|
310
|
-
var a = p, s = +/* @__PURE__ */ new Date(),
|
|
311
|
-
a.diff =
|
|
310
|
+
var a = p, s = +/* @__PURE__ */ new Date(), d = s - (l || s);
|
|
311
|
+
a.diff = d, a.prev = l, a.curr = s, l = s;
|
|
312
312
|
for (var y = new Array(arguments.length), g = 0; g < y.length; g++)
|
|
313
313
|
y[g] = arguments[g];
|
|
314
314
|
y[0] = e.coerce(y[0]), typeof y[0] != "string" && y.unshift("%O");
|
|
315
315
|
var w = 0;
|
|
316
|
-
y[0] = y[0].replace(/%([a-zA-Z%])/g, function(
|
|
317
|
-
if (
|
|
318
|
-
return
|
|
316
|
+
y[0] = y[0].replace(/%([a-zA-Z%])/g, function(_, b) {
|
|
317
|
+
if (_ === "%%")
|
|
318
|
+
return _;
|
|
319
319
|
w++;
|
|
320
320
|
var S = e.formatters[b];
|
|
321
321
|
if (typeof S == "function") {
|
|
322
322
|
var m = y[w];
|
|
323
|
-
|
|
323
|
+
_ = S.call(a, m), y.splice(w, 1), w--;
|
|
324
324
|
}
|
|
325
|
-
return
|
|
325
|
+
return _;
|
|
326
326
|
}), e.formatArgs.call(a, y);
|
|
327
|
-
var
|
|
328
|
-
|
|
327
|
+
var B = p.log || e.log || console.log.bind(console);
|
|
328
|
+
B.apply(a, y);
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
return p.namespace = c, p.enabled = e.enabled(c), p.useColors = e.useColors(), p.color = r(c), p.destroy = o, typeof e.init == "function" && e.init(p), e.instances.push(p), p;
|
|
@@ -359,13 +359,13 @@ function Pt(t, e, r) {
|
|
|
359
359
|
return !0;
|
|
360
360
|
return !1;
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function f(c) {
|
|
363
363
|
return c instanceof Error ? c.stack || c.message : c;
|
|
364
364
|
}
|
|
365
|
-
})(
|
|
366
|
-
var
|
|
365
|
+
})(de, de.exports);
|
|
366
|
+
var Gr = de.exports;
|
|
367
367
|
(function(t, e) {
|
|
368
|
-
e = t.exports =
|
|
368
|
+
e = t.exports = Gr, e.log = o, e.formatArgs = n, e.save = i, e.load = u, e.useColors = r, e.storage = typeof chrome < "u" && typeof chrome.storage < "u" ? chrome.storage.local : h(), e.colors = [
|
|
369
369
|
"#0000CC",
|
|
370
370
|
"#0000FF",
|
|
371
371
|
"#0033CC",
|
|
@@ -450,40 +450,40 @@ var Kr = le.exports;
|
|
|
450
450
|
typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // double check webkit in userAgent just in case we are in a worker
|
|
451
451
|
typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
452
452
|
}
|
|
453
|
-
e.formatters.j = function(
|
|
453
|
+
e.formatters.j = function(f) {
|
|
454
454
|
try {
|
|
455
|
-
return JSON.stringify(
|
|
455
|
+
return JSON.stringify(f);
|
|
456
456
|
} catch (c) {
|
|
457
457
|
return "[UnexpectedJSONParseError]: " + c.message;
|
|
458
458
|
}
|
|
459
459
|
};
|
|
460
|
-
function n(
|
|
460
|
+
function n(f) {
|
|
461
461
|
var c = this.useColors;
|
|
462
|
-
if (
|
|
462
|
+
if (f[0] = (c ? "%c" : "") + this.namespace + (c ? " %c" : " ") + f[0] + (c ? "%c " : " ") + "+" + e.humanize(this.diff), !!c) {
|
|
463
463
|
var l = "color: " + this.color;
|
|
464
|
-
|
|
464
|
+
f.splice(1, 0, l, "color: inherit");
|
|
465
465
|
var p = 0, a = 0;
|
|
466
|
-
|
|
466
|
+
f[0].replace(/%[a-zA-Z%]/g, function(s) {
|
|
467
467
|
s !== "%%" && (p++, s === "%c" && (a = p));
|
|
468
|
-
}),
|
|
468
|
+
}), f.splice(a, 0, l);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
471
|
function o() {
|
|
472
472
|
return typeof console == "object" && console.log && Function.prototype.apply.call(console.log, console, arguments);
|
|
473
473
|
}
|
|
474
|
-
function i(
|
|
474
|
+
function i(f) {
|
|
475
475
|
try {
|
|
476
|
-
|
|
476
|
+
f == null ? e.storage.removeItem("debug") : e.storage.debug = f;
|
|
477
477
|
} catch {
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
function u() {
|
|
481
|
-
var
|
|
481
|
+
var f;
|
|
482
482
|
try {
|
|
483
|
-
|
|
483
|
+
f = e.storage.debug;
|
|
484
484
|
} catch {
|
|
485
485
|
}
|
|
486
|
-
return !
|
|
486
|
+
return !f && typeof process < "u" && "env" in process && (f = process.env.DEBUG), f;
|
|
487
487
|
}
|
|
488
488
|
e.enable(u());
|
|
489
489
|
function h() {
|
|
@@ -492,15 +492,15 @@ var Kr = le.exports;
|
|
|
492
492
|
} catch {
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
|
-
})(
|
|
496
|
-
var lt =
|
|
497
|
-
function
|
|
495
|
+
})(fe, fe.exports);
|
|
496
|
+
var lt = fe.exports, Yr = or, De = lt("socket.io-client:url"), Qr = Zr;
|
|
497
|
+
function Zr(t, e) {
|
|
498
498
|
var r = t;
|
|
499
|
-
e = e || typeof location < "u" && location, t == null && (t = e.protocol + "//" + e.host), typeof t == "string" && (t.charAt(0) === "/" && (t.charAt(1) === "/" ? t = e.protocol + t : t = e.host + t), /^(https?|wss?):\/\//.test(t) || (
|
|
499
|
+
e = e || typeof location < "u" && location, t == null && (t = e.protocol + "//" + e.host), typeof t == "string" && (t.charAt(0) === "/" && (t.charAt(1) === "/" ? t = e.protocol + t : t = e.host + t), /^(https?|wss?):\/\//.test(t) || (De("protocol-less url %s", t), typeof e < "u" ? t = e.protocol + "//" + t : t = "https://" + t), De("parse %s", t), r = Yr(t)), r.port || (/^(http|ws)$/.test(r.protocol) ? r.port = "80" : /^(http|ws)s$/.test(r.protocol) && (r.port = "443")), r.path = r.path || "/";
|
|
500
500
|
var n = r.host.indexOf(":") !== -1, o = n ? "[" + r.host + "]" : r.host;
|
|
501
501
|
return r.id = r.protocol + "://" + o + ":" + r.port, r.href = r.protocol + "://" + o + (e && e.port === r.port ? "" : ":" + r.port), r;
|
|
502
502
|
}
|
|
503
|
-
var
|
|
503
|
+
var Xt = {}, sr = { exports: {} };
|
|
504
504
|
(function(t) {
|
|
505
505
|
t.exports = e;
|
|
506
506
|
function e(n) {
|
|
@@ -548,42 +548,42 @@ var Kt = {}, Qe = { exports: {} };
|
|
|
548
548
|
}, e.prototype.hasListeners = function(n) {
|
|
549
549
|
return !!this.listeners(n).length;
|
|
550
550
|
};
|
|
551
|
-
})(
|
|
552
|
-
var St =
|
|
553
|
-
return
|
|
554
|
-
},
|
|
551
|
+
})(sr);
|
|
552
|
+
var St = sr.exports, Wt = {}, tn = {}.toString, Ce = Array.isArray || function(t) {
|
|
553
|
+
return tn.call(t) == "[object Array]";
|
|
554
|
+
}, ir = on, en = typeof Buffer == "function" && typeof Buffer.isBuffer == "function", rn = typeof ArrayBuffer == "function", nn = function(t) {
|
|
555
555
|
return typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(t) : t.buffer instanceof ArrayBuffer;
|
|
556
556
|
};
|
|
557
|
-
function
|
|
558
|
-
return
|
|
557
|
+
function on(t) {
|
|
558
|
+
return en && Buffer.isBuffer(t) || rn && (t instanceof ArrayBuffer || nn(t));
|
|
559
559
|
}
|
|
560
|
-
var
|
|
561
|
-
|
|
560
|
+
var we = Ce, ar = ir, cr = Object.prototype.toString, sn = typeof Blob == "function" || typeof Blob < "u" && cr.call(Blob) === "[object BlobConstructor]", an = typeof File == "function" || typeof File < "u" && cr.call(File) === "[object FileConstructor]";
|
|
561
|
+
Wt.deconstructPacket = function(t) {
|
|
562
562
|
var e = [], r = t.data, n = t;
|
|
563
|
-
return n.data =
|
|
563
|
+
return n.data = ye(r, e), n.attachments = e.length, { packet: n, buffers: e };
|
|
564
564
|
};
|
|
565
|
-
function
|
|
565
|
+
function ye(t, e) {
|
|
566
566
|
if (!t)
|
|
567
567
|
return t;
|
|
568
|
-
if (
|
|
568
|
+
if (ar(t)) {
|
|
569
569
|
var r = { _placeholder: !0, num: e.length };
|
|
570
570
|
return e.push(t), r;
|
|
571
|
-
} else if (
|
|
571
|
+
} else if (we(t)) {
|
|
572
572
|
for (var n = new Array(t.length), o = 0; o < t.length; o++)
|
|
573
|
-
n[o] =
|
|
573
|
+
n[o] = ye(t[o], e);
|
|
574
574
|
return n;
|
|
575
575
|
} else if (typeof t == "object" && !(t instanceof Date)) {
|
|
576
576
|
var n = {};
|
|
577
577
|
for (var i in t)
|
|
578
|
-
n[i] =
|
|
578
|
+
n[i] = ye(t[i], e);
|
|
579
579
|
return n;
|
|
580
580
|
}
|
|
581
581
|
return t;
|
|
582
582
|
}
|
|
583
|
-
|
|
584
|
-
return t.data =
|
|
583
|
+
Wt.reconstructPacket = function(t, e) {
|
|
584
|
+
return t.data = ge(t.data, e), t.attachments = void 0, t;
|
|
585
585
|
};
|
|
586
|
-
function
|
|
586
|
+
function ge(t, e) {
|
|
587
587
|
if (!t)
|
|
588
588
|
return t;
|
|
589
589
|
if (t && t._placeholder === !0) {
|
|
@@ -591,28 +591,28 @@ function de(t, e) {
|
|
|
591
591
|
if (r)
|
|
592
592
|
return e[t.num];
|
|
593
593
|
throw new Error("illegal attachments");
|
|
594
|
-
} else if (
|
|
594
|
+
} else if (we(t))
|
|
595
595
|
for (var n = 0; n < t.length; n++)
|
|
596
|
-
t[n] =
|
|
596
|
+
t[n] = ge(t[n], e);
|
|
597
597
|
else if (typeof t == "object")
|
|
598
598
|
for (var o in t)
|
|
599
|
-
t[o] =
|
|
599
|
+
t[o] = ge(t[o], e);
|
|
600
600
|
return t;
|
|
601
601
|
}
|
|
602
|
-
|
|
602
|
+
Wt.removeBlobs = function(t, e) {
|
|
603
603
|
function r(i, u, h) {
|
|
604
604
|
if (!i)
|
|
605
605
|
return i;
|
|
606
|
-
if (
|
|
606
|
+
if (sn && i instanceof Blob || an && i instanceof File) {
|
|
607
607
|
n++;
|
|
608
|
-
var
|
|
609
|
-
|
|
608
|
+
var f = new FileReader();
|
|
609
|
+
f.onload = function() {
|
|
610
610
|
h ? h[u] = this.result : o = this.result, --n || e(o);
|
|
611
|
-
},
|
|
612
|
-
} else if (
|
|
611
|
+
}, f.readAsArrayBuffer(i);
|
|
612
|
+
} else if (we(i))
|
|
613
613
|
for (var c = 0; c < i.length; c++)
|
|
614
614
|
r(i[c], c, i);
|
|
615
|
-
else if (typeof i == "object" && !
|
|
615
|
+
else if (typeof i == "object" && !ar(i))
|
|
616
616
|
for (var l in i)
|
|
617
617
|
r(i[l], l, i);
|
|
618
618
|
}
|
|
@@ -620,7 +620,7 @@ Ht.removeBlobs = function(t, e) {
|
|
|
620
620
|
r(o), n || e(o);
|
|
621
621
|
};
|
|
622
622
|
(function(t) {
|
|
623
|
-
var e = lt("socket.io-parser"), r = St, n =
|
|
623
|
+
var e = lt("socket.io-parser"), r = St, n = Wt, o = Ce, i = ir;
|
|
624
624
|
t.protocol = 4, t.types = [
|
|
625
625
|
"CONNECT",
|
|
626
626
|
"DISCONNECT",
|
|
@@ -637,16 +637,16 @@ Ht.removeBlobs = function(t, e) {
|
|
|
637
637
|
if (e("encoding packet %j", g), t.BINARY_EVENT === g.type || t.BINARY_ACK === g.type)
|
|
638
638
|
l(g, w);
|
|
639
639
|
else {
|
|
640
|
-
var
|
|
641
|
-
w([
|
|
640
|
+
var B = f(g);
|
|
641
|
+
w([B]);
|
|
642
642
|
}
|
|
643
643
|
};
|
|
644
|
-
function
|
|
644
|
+
function f(g) {
|
|
645
645
|
var w = "" + g.type;
|
|
646
646
|
if ((t.BINARY_EVENT === g.type || t.BINARY_ACK === g.type) && (w += g.attachments + "-"), g.nsp && g.nsp !== "/" && (w += g.nsp + ","), g.id != null && (w += g.id), g.data != null) {
|
|
647
|
-
var
|
|
648
|
-
if (
|
|
649
|
-
w +=
|
|
647
|
+
var B = c(g.data);
|
|
648
|
+
if (B !== !1)
|
|
649
|
+
w += B;
|
|
650
650
|
else
|
|
651
651
|
return h;
|
|
652
652
|
}
|
|
@@ -660,11 +660,11 @@ Ht.removeBlobs = function(t, e) {
|
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
662
|
function l(g, w) {
|
|
663
|
-
function _
|
|
664
|
-
var b = n.deconstructPacket(
|
|
663
|
+
function B(_) {
|
|
664
|
+
var b = n.deconstructPacket(_), S = f(b.packet), m = b.buffers;
|
|
665
665
|
m.unshift(S), w(m);
|
|
666
666
|
}
|
|
667
|
-
n.removeBlobs(g,
|
|
667
|
+
n.removeBlobs(g, B);
|
|
668
668
|
}
|
|
669
669
|
function p() {
|
|
670
670
|
this.reconstructor = null;
|
|
@@ -674,7 +674,7 @@ Ht.removeBlobs = function(t, e) {
|
|
|
674
674
|
if (typeof g == "string") {
|
|
675
675
|
if (this.reconstructor)
|
|
676
676
|
throw new Error("got plaintext data when reconstructing a packet");
|
|
677
|
-
w = a(g), t.BINARY_EVENT === w.type || t.BINARY_ACK === w.type ? (this.reconstructor = new
|
|
677
|
+
w = a(g), t.BINARY_EVENT === w.type || t.BINARY_ACK === w.type ? (this.reconstructor = new d(w), this.reconstructor.reconPack.attachments === 0 && this.emit("decoded", w)) : this.emit("decoded", w);
|
|
678
678
|
} else if (i(g) || g.base64)
|
|
679
679
|
if (this.reconstructor)
|
|
680
680
|
w = this.reconstructor.takeBinaryData(g), w && (this.reconstructor = null, this.emit("decoded", w));
|
|
@@ -684,31 +684,31 @@ Ht.removeBlobs = function(t, e) {
|
|
|
684
684
|
throw new Error("Unknown type: " + g);
|
|
685
685
|
};
|
|
686
686
|
function a(g) {
|
|
687
|
-
var w = 0,
|
|
687
|
+
var w = 0, B = {
|
|
688
688
|
type: Number(g.charAt(0))
|
|
689
689
|
};
|
|
690
|
-
if (t.types[
|
|
691
|
-
return y("unknown packet type " +
|
|
692
|
-
if (t.BINARY_EVENT ===
|
|
693
|
-
for (var
|
|
690
|
+
if (t.types[B.type] == null)
|
|
691
|
+
return y("unknown packet type " + B.type);
|
|
692
|
+
if (t.BINARY_EVENT === B.type || t.BINARY_ACK === B.type) {
|
|
693
|
+
for (var _ = w + 1; g.charAt(++w) !== "-" && w != g.length; )
|
|
694
694
|
;
|
|
695
|
-
var b = g.substring(
|
|
695
|
+
var b = g.substring(_, w);
|
|
696
696
|
if (b != Number(b) || g.charAt(w) !== "-")
|
|
697
697
|
throw new Error("Illegal attachments");
|
|
698
|
-
|
|
698
|
+
B.attachments = Number(b);
|
|
699
699
|
}
|
|
700
700
|
if (g.charAt(w + 1) === "/") {
|
|
701
|
-
for (var
|
|
701
|
+
for (var _ = w + 1; ++w; ) {
|
|
702
702
|
var S = g.charAt(w);
|
|
703
703
|
if (S === "," || w === g.length)
|
|
704
704
|
break;
|
|
705
705
|
}
|
|
706
|
-
|
|
706
|
+
B.nsp = g.substring(_, w);
|
|
707
707
|
} else
|
|
708
|
-
|
|
708
|
+
B.nsp = "/";
|
|
709
709
|
var m = g.charAt(w + 1);
|
|
710
710
|
if (m !== "" && Number(m) == m) {
|
|
711
|
-
for (var
|
|
711
|
+
for (var _ = w + 1; ++w; ) {
|
|
712
712
|
var S = g.charAt(w);
|
|
713
713
|
if (S == null || Number(S) != S) {
|
|
714
714
|
--w;
|
|
@@ -717,16 +717,16 @@ Ht.removeBlobs = function(t, e) {
|
|
|
717
717
|
if (w === g.length)
|
|
718
718
|
break;
|
|
719
719
|
}
|
|
720
|
-
|
|
720
|
+
B.id = Number(g.substring(_, w + 1));
|
|
721
721
|
}
|
|
722
722
|
if (g.charAt(++w)) {
|
|
723
|
-
var C = s(g.substr(w)), E = C !== !1 && (
|
|
723
|
+
var C = s(g.substr(w)), E = C !== !1 && (B.type === t.ERROR || o(C));
|
|
724
724
|
if (E)
|
|
725
|
-
|
|
725
|
+
B.data = C;
|
|
726
726
|
else
|
|
727
727
|
return y("invalid payload");
|
|
728
728
|
}
|
|
729
|
-
return e("decoded %s as %j", g,
|
|
729
|
+
return e("decoded %s as %j", g, B), B;
|
|
730
730
|
}
|
|
731
731
|
function s(g) {
|
|
732
732
|
try {
|
|
@@ -738,16 +738,16 @@ Ht.removeBlobs = function(t, e) {
|
|
|
738
738
|
p.prototype.destroy = function() {
|
|
739
739
|
this.reconstructor && this.reconstructor.finishedReconstruction();
|
|
740
740
|
};
|
|
741
|
-
function
|
|
741
|
+
function d(g) {
|
|
742
742
|
this.reconPack = g, this.buffers = [];
|
|
743
743
|
}
|
|
744
|
-
|
|
744
|
+
d.prototype.takeBinaryData = function(g) {
|
|
745
745
|
if (this.buffers.push(g), this.buffers.length === this.reconPack.attachments) {
|
|
746
746
|
var w = n.reconstructPacket(this.reconPack, this.buffers);
|
|
747
747
|
return this.finishedReconstruction(), w;
|
|
748
748
|
}
|
|
749
749
|
return null;
|
|
750
|
-
},
|
|
750
|
+
}, d.prototype.finishedReconstruction = function() {
|
|
751
751
|
this.reconPack = null, this.buffers = [];
|
|
752
752
|
};
|
|
753
753
|
function y(g) {
|
|
@@ -756,19 +756,19 @@ Ht.removeBlobs = function(t, e) {
|
|
|
756
756
|
data: "parser error: " + g
|
|
757
757
|
};
|
|
758
758
|
}
|
|
759
|
-
})(
|
|
760
|
-
var
|
|
759
|
+
})(Xt);
|
|
760
|
+
var Se = { exports: {} }, Kt = {}, me = { exports: {} };
|
|
761
761
|
try {
|
|
762
|
-
|
|
762
|
+
me.exports = typeof XMLHttpRequest < "u" && "withCredentials" in new XMLHttpRequest();
|
|
763
763
|
} catch {
|
|
764
|
-
|
|
764
|
+
me.exports = !1;
|
|
765
765
|
}
|
|
766
|
-
var
|
|
766
|
+
var cn = me.exports, Ee = function() {
|
|
767
767
|
return typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")();
|
|
768
|
-
}(),
|
|
768
|
+
}(), hn = cn, pn = Ee, Ae = function(t) {
|
|
769
769
|
var e = t.xdomain, r = t.xscheme, n = t.enablesXDR;
|
|
770
770
|
try {
|
|
771
|
-
if (typeof XMLHttpRequest < "u" && (!e ||
|
|
771
|
+
if (typeof XMLHttpRequest < "u" && (!e || hn))
|
|
772
772
|
return new XMLHttpRequest();
|
|
773
773
|
} catch {
|
|
774
774
|
}
|
|
@@ -779,34 +779,42 @@ var rn = ye.exports, we = function() {
|
|
|
779
779
|
}
|
|
780
780
|
if (!e)
|
|
781
781
|
try {
|
|
782
|
-
return new
|
|
782
|
+
return new pn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP");
|
|
783
783
|
} catch {
|
|
784
784
|
}
|
|
785
|
-
},
|
|
785
|
+
}, Te = { exports: {} }, kt = {}, un = Object.keys || function(t) {
|
|
786
786
|
var e = [], r = Object.prototype.hasOwnProperty;
|
|
787
787
|
for (var n in t)
|
|
788
788
|
r.call(t, n) && e.push(n);
|
|
789
789
|
return e;
|
|
790
|
-
},
|
|
791
|
-
function
|
|
792
|
-
if (
|
|
793
|
-
return
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
790
|
+
}, re, Pe;
|
|
791
|
+
function hr() {
|
|
792
|
+
if (Pe)
|
|
793
|
+
return re;
|
|
794
|
+
Pe = 1;
|
|
795
|
+
var t = Ce, e = Object.prototype.toString, r = typeof Blob == "function" || typeof Blob < "u" && e.call(Blob) === "[object BlobConstructor]", n = typeof File == "function" || typeof File < "u" && e.call(File) === "[object FileConstructor]";
|
|
796
|
+
re = o;
|
|
797
|
+
function o(i) {
|
|
798
|
+
if (!i || typeof i != "object")
|
|
799
|
+
return !1;
|
|
800
|
+
if (t(i)) {
|
|
801
|
+
for (var u = 0, h = i.length; u < h; u++)
|
|
802
|
+
if (o(i[u]))
|
|
803
|
+
return !0;
|
|
804
|
+
return !1;
|
|
805
|
+
}
|
|
806
|
+
if (typeof Buffer == "function" && Buffer.isBuffer && Buffer.isBuffer(i) || typeof ArrayBuffer == "function" && i instanceof ArrayBuffer || r && i instanceof Blob || n && i instanceof File)
|
|
807
|
+
return !0;
|
|
808
|
+
if (i.toJSON && typeof i.toJSON == "function" && arguments.length === 1)
|
|
809
|
+
return o(i.toJSON(), !0);
|
|
810
|
+
for (var f in i)
|
|
811
|
+
if (Object.prototype.hasOwnProperty.call(i, f) && o(i[f]))
|
|
797
812
|
return !0;
|
|
798
813
|
return !1;
|
|
799
814
|
}
|
|
800
|
-
|
|
801
|
-
return !0;
|
|
802
|
-
if (t.toJSON && typeof t.toJSON == "function" && arguments.length === 1)
|
|
803
|
-
return Mt(t.toJSON(), !0);
|
|
804
|
-
for (var n in t)
|
|
805
|
-
if (Object.prototype.hasOwnProperty.call(t, n) && Mt(t[n]))
|
|
806
|
-
return !0;
|
|
807
|
-
return !1;
|
|
815
|
+
return re;
|
|
808
816
|
}
|
|
809
|
-
var
|
|
817
|
+
var ln = function(t, e, r) {
|
|
810
818
|
var n = t.byteLength;
|
|
811
819
|
if (e = e || 0, r = r || n, t.slice)
|
|
812
820
|
return t.slice(e, r);
|
|
@@ -815,31 +823,31 @@ var pn = function(t, e, r) {
|
|
|
815
823
|
for (var o = new Uint8Array(t), i = new Uint8Array(r - e), u = e, h = 0; u < r; u++, h++)
|
|
816
824
|
i[h] = o[u];
|
|
817
825
|
return i.buffer;
|
|
818
|
-
},
|
|
819
|
-
function
|
|
826
|
+
}, fn = dn;
|
|
827
|
+
function dn(t, e, r) {
|
|
820
828
|
var n = !1;
|
|
821
|
-
return r = r ||
|
|
829
|
+
return r = r || yn, o.count = t, t === 0 ? e() : o;
|
|
822
830
|
function o(i, u) {
|
|
823
831
|
if (o.count <= 0)
|
|
824
832
|
throw new Error("after called too many times");
|
|
825
833
|
--o.count, i ? (n = !0, e(i), e = r) : o.count === 0 && !n && e(null, u);
|
|
826
834
|
}
|
|
827
835
|
}
|
|
828
|
-
function
|
|
836
|
+
function yn() {
|
|
829
837
|
}
|
|
830
838
|
/*! https://mths.be/utf8js v2.1.2 by @mathias */
|
|
831
839
|
var dt = String.fromCharCode;
|
|
832
|
-
function
|
|
840
|
+
function pr(t) {
|
|
833
841
|
for (var e = [], r = 0, n = t.length, o, i; r < n; )
|
|
834
842
|
o = t.charCodeAt(r++), o >= 55296 && o <= 56319 && r < n ? (i = t.charCodeAt(r++), (i & 64512) == 56320 ? e.push(((o & 1023) << 10) + (i & 1023) + 65536) : (e.push(o), r--)) : e.push(o);
|
|
835
843
|
return e;
|
|
836
844
|
}
|
|
837
|
-
function
|
|
845
|
+
function gn(t) {
|
|
838
846
|
for (var e = t.length, r = -1, n, o = ""; ++r < e; )
|
|
839
847
|
n = t[r], n > 65535 && (n -= 65536, o += dt(n >>> 10 & 1023 | 55296), n = 56320 | n & 1023), o += dt(n);
|
|
840
848
|
return o;
|
|
841
849
|
}
|
|
842
|
-
function
|
|
850
|
+
function ur(t, e) {
|
|
843
851
|
if (t >= 55296 && t <= 57343) {
|
|
844
852
|
if (e)
|
|
845
853
|
throw Error(
|
|
@@ -852,33 +860,33 @@ function sr(t, e) {
|
|
|
852
860
|
function ne(t, e) {
|
|
853
861
|
return dt(t >> e & 63 | 128);
|
|
854
862
|
}
|
|
855
|
-
function
|
|
863
|
+
function mn(t, e) {
|
|
856
864
|
if (!(t & 4294967168))
|
|
857
865
|
return dt(t);
|
|
858
866
|
var r = "";
|
|
859
|
-
return t & 4294965248 ? t & 4294901760 ? t & 4292870144 || (r = dt(t >> 18 & 7 | 240), r += ne(t, 12), r += ne(t, 6)) : (
|
|
867
|
+
return t & 4294965248 ? t & 4294901760 ? t & 4292870144 || (r = dt(t >> 18 & 7 | 240), r += ne(t, 12), r += ne(t, 6)) : (ur(t, e) || (t = 65533), r = dt(t >> 12 & 15 | 224), r += ne(t, 6)) : r = dt(t >> 6 & 31 | 192), r += dt(t & 63 | 128), r;
|
|
860
868
|
}
|
|
861
|
-
function
|
|
869
|
+
function vn(t, e) {
|
|
862
870
|
e = e || {};
|
|
863
|
-
for (var r = e.strict !== !1, n =
|
|
864
|
-
u = n[i], h +=
|
|
871
|
+
for (var r = e.strict !== !1, n = pr(t), o = n.length, i = -1, u, h = ""; ++i < o; )
|
|
872
|
+
u = n[i], h += mn(u, r);
|
|
865
873
|
return h;
|
|
866
874
|
}
|
|
867
875
|
function bt() {
|
|
868
|
-
if (yt >=
|
|
876
|
+
if (yt >= Mt)
|
|
869
877
|
throw Error("Invalid byte index");
|
|
870
|
-
var t =
|
|
878
|
+
var t = jt[yt] & 255;
|
|
871
879
|
if (yt++, (t & 192) == 128)
|
|
872
880
|
return t & 63;
|
|
873
881
|
throw Error("Invalid continuation byte");
|
|
874
882
|
}
|
|
875
|
-
function
|
|
883
|
+
function kn(t) {
|
|
876
884
|
var e, r, n, o, i;
|
|
877
|
-
if (yt >
|
|
885
|
+
if (yt > Mt)
|
|
878
886
|
throw Error("Invalid byte index");
|
|
879
|
-
if (yt ==
|
|
887
|
+
if (yt == Mt)
|
|
880
888
|
return !1;
|
|
881
|
-
if (e =
|
|
889
|
+
if (e = jt[yt] & 255, yt++, !(e & 128))
|
|
882
890
|
return e;
|
|
883
891
|
if ((e & 224) == 192) {
|
|
884
892
|
if (r = bt(), i = (e & 31) << 6 | r, i >= 128)
|
|
@@ -887,49 +895,49 @@ function mn(t) {
|
|
|
887
895
|
}
|
|
888
896
|
if ((e & 240) == 224) {
|
|
889
897
|
if (r = bt(), n = bt(), i = (e & 15) << 12 | r << 6 | n, i >= 2048)
|
|
890
|
-
return
|
|
898
|
+
return ur(i, t) ? i : 65533;
|
|
891
899
|
throw Error("Invalid continuation byte");
|
|
892
900
|
}
|
|
893
901
|
if ((e & 248) == 240 && (r = bt(), n = bt(), o = bt(), i = (e & 7) << 18 | r << 12 | n << 6 | o, i >= 65536 && i <= 1114111))
|
|
894
902
|
return i;
|
|
895
903
|
throw Error("Invalid UTF-8 detected");
|
|
896
904
|
}
|
|
897
|
-
var
|
|
898
|
-
function
|
|
905
|
+
var jt, Mt, yt;
|
|
906
|
+
function bn(t, e) {
|
|
899
907
|
e = e || {};
|
|
900
908
|
var r = e.strict !== !1;
|
|
901
|
-
|
|
902
|
-
for (var n = [], o; (o =
|
|
909
|
+
jt = pr(t), Mt = jt.length, yt = 0;
|
|
910
|
+
for (var n = [], o; (o = kn(r)) !== !1; )
|
|
903
911
|
n.push(o);
|
|
904
|
-
return
|
|
912
|
+
return gn(n);
|
|
905
913
|
}
|
|
906
|
-
var
|
|
914
|
+
var Cn = {
|
|
907
915
|
version: "2.1.2",
|
|
908
|
-
encode:
|
|
909
|
-
decode:
|
|
910
|
-
}, oe = {},
|
|
911
|
-
function
|
|
912
|
-
return
|
|
916
|
+
encode: vn,
|
|
917
|
+
decode: bn
|
|
918
|
+
}, oe = {}, Fe;
|
|
919
|
+
function wn() {
|
|
920
|
+
return Fe || (Fe = 1, function(t) {
|
|
913
921
|
oe.encode = function(e) {
|
|
914
922
|
var r = new Uint8Array(e), n, o = r.length, i = "";
|
|
915
923
|
for (n = 0; n < o; n += 3)
|
|
916
924
|
i += t[r[n] >> 2], i += t[(r[n] & 3) << 4 | r[n + 1] >> 4], i += t[(r[n + 1] & 15) << 2 | r[n + 2] >> 6], i += t[r[n + 2] & 63];
|
|
917
925
|
return o % 3 === 2 ? i = i.substring(0, i.length - 1) + "=" : o % 3 === 1 && (i = i.substring(0, i.length - 2) + "=="), i;
|
|
918
926
|
}, oe.decode = function(e) {
|
|
919
|
-
var r = e.length * 0.75, n = e.length, o, i = 0, u, h,
|
|
927
|
+
var r = e.length * 0.75, n = e.length, o, i = 0, u, h, f, c;
|
|
920
928
|
e[e.length - 1] === "=" && (r--, e[e.length - 2] === "=" && r--);
|
|
921
929
|
var l = new ArrayBuffer(r), p = new Uint8Array(l);
|
|
922
930
|
for (o = 0; o < n; o += 4)
|
|
923
|
-
u = t.indexOf(e[o]), h = t.indexOf(e[o + 1]),
|
|
931
|
+
u = t.indexOf(e[o]), h = t.indexOf(e[o + 1]), f = t.indexOf(e[o + 2]), c = t.indexOf(e[o + 3]), p[i++] = u << 2 | h >> 4, p[i++] = (h & 15) << 4 | f >> 2, p[i++] = (f & 3) << 6 | c & 63;
|
|
924
932
|
return l;
|
|
925
933
|
};
|
|
926
934
|
}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")), oe;
|
|
927
935
|
}
|
|
928
|
-
var se,
|
|
929
|
-
function
|
|
930
|
-
if (
|
|
936
|
+
var se, je;
|
|
937
|
+
function Sn() {
|
|
938
|
+
if (je)
|
|
931
939
|
return se;
|
|
932
|
-
|
|
940
|
+
je = 1;
|
|
933
941
|
var t = typeof t < "u" ? t : typeof WebKitBlobBuilder < "u" ? WebKitBlobBuilder : typeof MSBlobBuilder < "u" ? MSBlobBuilder : typeof MozBlobBuilder < "u" ? MozBlobBuilder : !1, e = function() {
|
|
934
942
|
try {
|
|
935
943
|
var h = new Blob(["hi"]);
|
|
@@ -946,36 +954,36 @@ function Cn() {
|
|
|
946
954
|
}
|
|
947
955
|
}(), n = t && t.prototype.append && t.prototype.getBlob;
|
|
948
956
|
function o(h) {
|
|
949
|
-
return h.map(function(
|
|
950
|
-
if (
|
|
951
|
-
var c =
|
|
952
|
-
if (
|
|
953
|
-
var l = new Uint8Array(
|
|
954
|
-
l.set(new Uint8Array(c,
|
|
957
|
+
return h.map(function(f) {
|
|
958
|
+
if (f.buffer instanceof ArrayBuffer) {
|
|
959
|
+
var c = f.buffer;
|
|
960
|
+
if (f.byteLength !== c.byteLength) {
|
|
961
|
+
var l = new Uint8Array(f.byteLength);
|
|
962
|
+
l.set(new Uint8Array(c, f.byteOffset, f.byteLength)), c = l.buffer;
|
|
955
963
|
}
|
|
956
964
|
return c;
|
|
957
965
|
}
|
|
958
|
-
return
|
|
966
|
+
return f;
|
|
959
967
|
});
|
|
960
968
|
}
|
|
961
|
-
function i(h,
|
|
962
|
-
|
|
969
|
+
function i(h, f) {
|
|
970
|
+
f = f || {};
|
|
963
971
|
var c = new t();
|
|
964
972
|
return o(h).forEach(function(l) {
|
|
965
973
|
c.append(l);
|
|
966
|
-
}),
|
|
974
|
+
}), f.type ? c.getBlob(f.type) : c.getBlob();
|
|
967
975
|
}
|
|
968
|
-
function u(h,
|
|
969
|
-
return new Blob(o(h),
|
|
976
|
+
function u(h, f) {
|
|
977
|
+
return new Blob(o(h), f || {});
|
|
970
978
|
}
|
|
971
979
|
return typeof Blob < "u" && (i.prototype = Blob.prototype, u.prototype = Blob.prototype), se = /* @__PURE__ */ function() {
|
|
972
980
|
return e ? r ? Blob : u : n ? i : void 0;
|
|
973
981
|
}(), se;
|
|
974
982
|
}
|
|
975
983
|
(function(t) {
|
|
976
|
-
var e =
|
|
977
|
-
typeof ArrayBuffer < "u" && (u =
|
|
978
|
-
var h = typeof navigator < "u" && /Android/i.test(navigator.userAgent),
|
|
984
|
+
var e = un, r = hr(), n = ln, o = fn, i = Cn, u;
|
|
985
|
+
typeof ArrayBuffer < "u" && (u = wn());
|
|
986
|
+
var h = typeof navigator < "u" && /Android/i.test(navigator.userAgent), f = typeof navigator < "u" && /PhantomJS/i.test(navigator.userAgent), c = h || f;
|
|
979
987
|
t.protocol = 3;
|
|
980
988
|
var l = t.packets = {
|
|
981
989
|
open: 0,
|
|
@@ -985,7 +993,7 @@ function Cn() {
|
|
|
985
993
|
message: 4,
|
|
986
994
|
upgrade: 5,
|
|
987
995
|
noop: 6
|
|
988
|
-
}, p = e(l), a = { type: "error", data: "parser error" }, s =
|
|
996
|
+
}, p = e(l), a = { type: "error", data: "parser error" }, s = Sn();
|
|
989
997
|
t.encodePacket = function(b, S, m, C) {
|
|
990
998
|
typeof S == "function" && (C = S, S = !1), typeof m == "function" && (C = m, m = null);
|
|
991
999
|
var E = b.data === void 0 ? void 0 : b.data.buffer || b.data;
|
|
@@ -994,11 +1002,11 @@ function Cn() {
|
|
|
994
1002
|
if (typeof s < "u" && E instanceof s)
|
|
995
1003
|
return w(b, S, C);
|
|
996
1004
|
if (E && E.base64)
|
|
997
|
-
return
|
|
1005
|
+
return d(b, C);
|
|
998
1006
|
var v = l[b.type];
|
|
999
1007
|
return b.data !== void 0 && (v += m ? i.encode(String(b.data), { strict: !1 }) : String(b.data)), C("" + v);
|
|
1000
1008
|
};
|
|
1001
|
-
function
|
|
1009
|
+
function d(b, S) {
|
|
1002
1010
|
var m = "b" + t.packets[b.type] + b.data.data;
|
|
1003
1011
|
return S(m);
|
|
1004
1012
|
}
|
|
@@ -1034,8 +1042,8 @@ function Cn() {
|
|
|
1034
1042
|
if (typeof s < "u" && b.data instanceof s) {
|
|
1035
1043
|
var C = new FileReader();
|
|
1036
1044
|
return C.onload = function() {
|
|
1037
|
-
var
|
|
1038
|
-
S(m +
|
|
1045
|
+
var O = C.result.split(",")[1];
|
|
1046
|
+
S(m + O);
|
|
1039
1047
|
}, C.readAsDataURL(b.data);
|
|
1040
1048
|
}
|
|
1041
1049
|
var E;
|
|
@@ -1053,7 +1061,7 @@ function Cn() {
|
|
|
1053
1061
|
if (typeof b == "string") {
|
|
1054
1062
|
if (b.charAt(0) === "b")
|
|
1055
1063
|
return t.decodeBase64Packet(b.substr(1), S);
|
|
1056
|
-
if (m && (b =
|
|
1064
|
+
if (m && (b = B(b), b === !1))
|
|
1057
1065
|
return a;
|
|
1058
1066
|
var E = b.charAt(0);
|
|
1059
1067
|
return Number(E) != E || !p[E] ? a : b.length > 1 ? { type: p[E], data: b.substring(1) } : { type: p[E] };
|
|
@@ -1061,7 +1069,7 @@ function Cn() {
|
|
|
1061
1069
|
var C = new Uint8Array(b), E = C[0], v = n(b, 1);
|
|
1062
1070
|
return s && S === "blob" && (v = new s([v])), { type: p[E], data: v };
|
|
1063
1071
|
};
|
|
1064
|
-
function
|
|
1072
|
+
function B(b) {
|
|
1065
1073
|
try {
|
|
1066
1074
|
b = i.decode(b, { strict: !1 });
|
|
1067
1075
|
} catch {
|
|
@@ -1086,18 +1094,18 @@ function Cn() {
|
|
|
1086
1094
|
return k.length + ":" + k;
|
|
1087
1095
|
}
|
|
1088
1096
|
function v(k, T) {
|
|
1089
|
-
t.encodePacket(k, C ? S : !1, !1, function(
|
|
1090
|
-
T(null, E(
|
|
1097
|
+
t.encodePacket(k, C ? S : !1, !1, function(O) {
|
|
1098
|
+
T(null, E(O));
|
|
1091
1099
|
});
|
|
1092
1100
|
}
|
|
1093
|
-
|
|
1101
|
+
_(b, v, function(k, T) {
|
|
1094
1102
|
return m(T.join(""));
|
|
1095
1103
|
});
|
|
1096
1104
|
};
|
|
1097
|
-
function
|
|
1098
|
-
for (var C = new Array(b.length), E = o(b.length, m), v = function(T,
|
|
1099
|
-
S(
|
|
1100
|
-
C[T] = q,
|
|
1105
|
+
function _(b, S, m) {
|
|
1106
|
+
for (var C = new Array(b.length), E = o(b.length, m), v = function(T, O, x) {
|
|
1107
|
+
S(O, function(A, q) {
|
|
1108
|
+
C[T] = q, x(A, C);
|
|
1101
1109
|
});
|
|
1102
1110
|
}, k = 0; k < b.length; k++)
|
|
1103
1111
|
v(k, b[k], E);
|
|
@@ -1109,10 +1117,10 @@ function Cn() {
|
|
|
1109
1117
|
var C;
|
|
1110
1118
|
if (b === "")
|
|
1111
1119
|
return m(a, 0, 1);
|
|
1112
|
-
for (var E = "", v, k, T = 0,
|
|
1113
|
-
var
|
|
1114
|
-
if (
|
|
1115
|
-
E +=
|
|
1120
|
+
for (var E = "", v, k, T = 0, O = b.length; T < O; T++) {
|
|
1121
|
+
var x = b.charAt(T);
|
|
1122
|
+
if (x !== ":") {
|
|
1123
|
+
E += x;
|
|
1116
1124
|
continue;
|
|
1117
1125
|
}
|
|
1118
1126
|
if (E === "" || E != (v = Number(E)) || (k = b.substr(T + 1, v), E != k.length))
|
|
@@ -1120,7 +1128,7 @@ function Cn() {
|
|
|
1120
1128
|
if (k.length) {
|
|
1121
1129
|
if (C = t.decodePacket(k, S, !1), a.type === C.type && a.data === C.data)
|
|
1122
1130
|
return m(a, 0, 1);
|
|
1123
|
-
var A = m(C, T + v,
|
|
1131
|
+
var A = m(C, T + v, O);
|
|
1124
1132
|
if (A === !1)
|
|
1125
1133
|
return;
|
|
1126
1134
|
}
|
|
@@ -1136,19 +1144,19 @@ function Cn() {
|
|
|
1136
1144
|
return E(null, v);
|
|
1137
1145
|
});
|
|
1138
1146
|
}
|
|
1139
|
-
|
|
1140
|
-
var v = E.reduce(function(
|
|
1147
|
+
_(b, m, function(C, E) {
|
|
1148
|
+
var v = E.reduce(function(O, x) {
|
|
1141
1149
|
var A;
|
|
1142
|
-
return typeof
|
|
1150
|
+
return typeof x == "string" ? A = x.length : A = x.byteLength, O + A.toString().length + A + 2;
|
|
1143
1151
|
}, 0), k = new Uint8Array(v), T = 0;
|
|
1144
|
-
return E.forEach(function(
|
|
1145
|
-
var
|
|
1146
|
-
if (
|
|
1147
|
-
for (var q = new Uint8Array(
|
|
1148
|
-
q[j] =
|
|
1152
|
+
return E.forEach(function(O) {
|
|
1153
|
+
var x = typeof O == "string", A = O;
|
|
1154
|
+
if (x) {
|
|
1155
|
+
for (var q = new Uint8Array(O.length), j = 0; j < O.length; j++)
|
|
1156
|
+
q[j] = O.charCodeAt(j);
|
|
1149
1157
|
A = q.buffer;
|
|
1150
1158
|
}
|
|
1151
|
-
|
|
1159
|
+
x ? k[T++] = 0 : k[T++] = 1;
|
|
1152
1160
|
for (var $ = A.byteLength.toString(), j = 0; j < $.length; j++)
|
|
1153
1161
|
k[T++] = parseInt($[j]);
|
|
1154
1162
|
k[T++] = 255;
|
|
@@ -1161,41 +1169,41 @@ function Cn() {
|
|
|
1161
1169
|
t.encodePacket(C, !0, !0, function(v) {
|
|
1162
1170
|
var k = new Uint8Array(1);
|
|
1163
1171
|
if (k[0] = 1, typeof v == "string") {
|
|
1164
|
-
for (var T = new Uint8Array(v.length),
|
|
1165
|
-
T[
|
|
1172
|
+
for (var T = new Uint8Array(v.length), O = 0; O < v.length; O++)
|
|
1173
|
+
T[O] = v.charCodeAt(O);
|
|
1166
1174
|
v = T.buffer, k[0] = 0;
|
|
1167
1175
|
}
|
|
1168
|
-
for (var
|
|
1169
|
-
q[
|
|
1176
|
+
for (var x = v instanceof ArrayBuffer ? v.byteLength : v.size, A = x.toString(), q = new Uint8Array(A.length + 1), O = 0; O < A.length; O++)
|
|
1177
|
+
q[O] = parseInt(A[O]);
|
|
1170
1178
|
if (q[A.length] = 255, s) {
|
|
1171
1179
|
var j = new s([k.buffer, q.buffer, v]);
|
|
1172
1180
|
E(null, j);
|
|
1173
1181
|
}
|
|
1174
1182
|
});
|
|
1175
1183
|
}
|
|
1176
|
-
|
|
1184
|
+
_(b, m, function(C, E) {
|
|
1177
1185
|
return S(new s(E));
|
|
1178
1186
|
});
|
|
1179
1187
|
}, t.decodePayloadAsBinary = function(b, S, m) {
|
|
1180
1188
|
typeof S == "function" && (m = S, S = null);
|
|
1181
1189
|
for (var C = b, E = []; C.byteLength > 0; ) {
|
|
1182
|
-
for (var v = new Uint8Array(C), k = v[0] === 0, T = "",
|
|
1190
|
+
for (var v = new Uint8Array(C), k = v[0] === 0, T = "", O = 1; v[O] !== 255; O++) {
|
|
1183
1191
|
if (T.length > 310)
|
|
1184
1192
|
return m(a, 0, 1);
|
|
1185
|
-
T += v[
|
|
1193
|
+
T += v[O];
|
|
1186
1194
|
}
|
|
1187
1195
|
C = n(C, 2 + T.length), T = parseInt(T);
|
|
1188
|
-
var
|
|
1196
|
+
var x = n(C, 0, T);
|
|
1189
1197
|
if (k)
|
|
1190
1198
|
try {
|
|
1191
|
-
|
|
1199
|
+
x = String.fromCharCode.apply(null, new Uint8Array(x));
|
|
1192
1200
|
} catch {
|
|
1193
|
-
var A = new Uint8Array(
|
|
1194
|
-
|
|
1195
|
-
for (var
|
|
1196
|
-
|
|
1201
|
+
var A = new Uint8Array(x);
|
|
1202
|
+
x = "";
|
|
1203
|
+
for (var O = 0; O < A.length; O++)
|
|
1204
|
+
x += String.fromCharCode(A[O]);
|
|
1197
1205
|
}
|
|
1198
|
-
E.push(
|
|
1206
|
+
E.push(x), C = n(C, T);
|
|
1199
1207
|
}
|
|
1200
1208
|
var q = E.length;
|
|
1201
1209
|
E.forEach(function(j, $) {
|
|
@@ -1203,11 +1211,11 @@ function Cn() {
|
|
|
1203
1211
|
});
|
|
1204
1212
|
};
|
|
1205
1213
|
})(kt);
|
|
1206
|
-
var ie,
|
|
1207
|
-
function
|
|
1208
|
-
if (
|
|
1214
|
+
var ie, Me;
|
|
1215
|
+
function Ne() {
|
|
1216
|
+
if (Me)
|
|
1209
1217
|
return ie;
|
|
1210
|
-
|
|
1218
|
+
Me = 1;
|
|
1211
1219
|
var t = kt, e = St;
|
|
1212
1220
|
ie = r;
|
|
1213
1221
|
function r(n) {
|
|
@@ -1236,55 +1244,56 @@ function Ae() {
|
|
|
1236
1244
|
this.readyState = "closed", this.emit("close");
|
|
1237
1245
|
}, ie;
|
|
1238
1246
|
}
|
|
1239
|
-
var
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
};
|
|
1253
|
-
|
|
1247
|
+
var ae = {}, qe;
|
|
1248
|
+
function Ht() {
|
|
1249
|
+
return qe || (qe = 1, ae.encode = function(t) {
|
|
1250
|
+
var e = "";
|
|
1251
|
+
for (var r in t)
|
|
1252
|
+
t.hasOwnProperty(r) && (e.length && (e += "&"), e += encodeURIComponent(r) + "=" + encodeURIComponent(t[r]));
|
|
1253
|
+
return e;
|
|
1254
|
+
}, ae.decode = function(t) {
|
|
1255
|
+
for (var e = {}, r = t.split("&"), n = 0, o = r.length; n < o; n++) {
|
|
1256
|
+
var i = r[n].split("=");
|
|
1257
|
+
e[decodeURIComponent(i[0])] = decodeURIComponent(i[1]);
|
|
1258
|
+
}
|
|
1259
|
+
return e;
|
|
1260
|
+
}), ae;
|
|
1261
|
+
}
|
|
1262
|
+
var Jt = function(t, e) {
|
|
1254
1263
|
var r = function() {
|
|
1255
1264
|
};
|
|
1256
1265
|
r.prototype = e.prototype, t.prototype = new r(), t.prototype.constructor = t;
|
|
1257
|
-
},
|
|
1258
|
-
function
|
|
1266
|
+
}, lr = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), qt = 64, fr = {}, ze = 0, gt = 0, Xe;
|
|
1267
|
+
function ve(t) {
|
|
1259
1268
|
var e = "";
|
|
1260
1269
|
do
|
|
1261
|
-
e =
|
|
1270
|
+
e = lr[t % qt] + e, t = Math.floor(t / qt);
|
|
1262
1271
|
while (t > 0);
|
|
1263
1272
|
return e;
|
|
1264
1273
|
}
|
|
1265
|
-
function
|
|
1274
|
+
function En(t) {
|
|
1266
1275
|
var e = 0;
|
|
1267
1276
|
for (gt = 0; gt < t.length; gt++)
|
|
1268
|
-
e = e *
|
|
1277
|
+
e = e * qt + fr[t.charAt(gt)];
|
|
1269
1278
|
return e;
|
|
1270
1279
|
}
|
|
1271
|
-
function
|
|
1272
|
-
var t =
|
|
1273
|
-
return t !==
|
|
1280
|
+
function Oe() {
|
|
1281
|
+
var t = ve(+/* @__PURE__ */ new Date());
|
|
1282
|
+
return t !== Xe ? (ze = 0, Xe = t) : t + "." + ve(ze++);
|
|
1274
1283
|
}
|
|
1275
|
-
for (; gt <
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
var
|
|
1280
|
-
var t =
|
|
1284
|
+
for (; gt < qt; gt++)
|
|
1285
|
+
fr[lr[gt]] = gt;
|
|
1286
|
+
Oe.encode = ve;
|
|
1287
|
+
Oe.decode = En;
|
|
1288
|
+
var dr = Oe, yr = Ne(), An = Ht(), gr = kt, Tn = Jt, Nn = dr, ht = lt("engine.io-client:polling"), mr = pt, On = function() {
|
|
1289
|
+
var t = Ae, e = new t({ xdomain: !1 });
|
|
1281
1290
|
return e.responseType != null;
|
|
1282
1291
|
}();
|
|
1283
1292
|
function pt(t) {
|
|
1284
1293
|
var e = t && t.forceBase64;
|
|
1285
|
-
(!
|
|
1294
|
+
(!On || e) && (this.supportsBinary = !1), yr.call(this, t);
|
|
1286
1295
|
}
|
|
1287
|
-
|
|
1296
|
+
Tn(pt, yr);
|
|
1288
1297
|
pt.prototype.name = "polling";
|
|
1289
1298
|
pt.prototype.doOpen = function() {
|
|
1290
1299
|
this.poll();
|
|
@@ -1316,7 +1325,7 @@ pt.prototype.onData = function(t) {
|
|
|
1316
1325
|
return e.onClose(), !1;
|
|
1317
1326
|
e.onPacket(n);
|
|
1318
1327
|
};
|
|
1319
|
-
|
|
1328
|
+
gr.decodePayload(t, this.socket.binaryType, r), this.readyState !== "closed" && (this.polling = !1, this.emit("pollComplete"), this.readyState === "open" ? this.poll() : ht('ignoring poll - transport state "%s"', this.readyState));
|
|
1320
1329
|
};
|
|
1321
1330
|
pt.prototype.doClose = function() {
|
|
1322
1331
|
var t = this;
|
|
@@ -1331,40 +1340,40 @@ pt.prototype.write = function(t) {
|
|
|
1331
1340
|
var r = function() {
|
|
1332
1341
|
e.writable = !0, e.emit("drain");
|
|
1333
1342
|
};
|
|
1334
|
-
|
|
1343
|
+
gr.encodePayload(t, this.supportsBinary, function(n) {
|
|
1335
1344
|
e.doWrite(n, r);
|
|
1336
1345
|
});
|
|
1337
1346
|
};
|
|
1338
1347
|
pt.prototype.uri = function() {
|
|
1339
1348
|
var t = this.query || {}, e = this.secure ? "https" : "http", r = "";
|
|
1340
|
-
this.timestampRequests !== !1 && (t[this.timestampParam] =
|
|
1349
|
+
this.timestampRequests !== !1 && (t[this.timestampParam] = Nn()), !this.supportsBinary && !t.sid && (t.b64 = 1), t = An.encode(t), this.port && (e === "https" && Number(this.port) !== 443 || e === "http" && Number(this.port) !== 80) && (r = ":" + this.port), t.length && (t = "?" + t);
|
|
1341
1350
|
var n = this.hostname.indexOf(":") !== -1;
|
|
1342
1351
|
return e + "://" + (n ? "[" + this.hostname + "]" : this.hostname) + r + this.path + t;
|
|
1343
1352
|
};
|
|
1344
|
-
var
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
function
|
|
1353
|
+
var xn = Ae, vr = mr, In = St, Rn = Jt, ke = lt("engine.io-client:polling-xhr"), Bn = Ee;
|
|
1354
|
+
Te.exports = Et;
|
|
1355
|
+
Te.exports.Request = Y;
|
|
1356
|
+
function We() {
|
|
1348
1357
|
}
|
|
1349
|
-
function
|
|
1350
|
-
if (
|
|
1358
|
+
function Et(t) {
|
|
1359
|
+
if (vr.call(this, t), this.requestTimeout = t.requestTimeout, this.extraHeaders = t.extraHeaders, typeof location < "u") {
|
|
1351
1360
|
var e = location.protocol === "https:", r = location.port;
|
|
1352
1361
|
r || (r = e ? 443 : 80), this.xd = typeof location < "u" && t.hostname !== location.hostname || r !== t.port, this.xs = t.secure !== e;
|
|
1353
1362
|
}
|
|
1354
1363
|
}
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1364
|
+
Rn(Et, vr);
|
|
1365
|
+
Et.prototype.supportsBinary = !0;
|
|
1366
|
+
Et.prototype.request = function(t) {
|
|
1358
1367
|
return t = t || {}, t.uri = this.uri(), t.xd = this.xd, t.xs = this.xs, t.agent = this.agent || !1, t.supportsBinary = this.supportsBinary, t.enablesXDR = this.enablesXDR, t.withCredentials = this.withCredentials, t.pfx = this.pfx, t.key = this.key, t.passphrase = this.passphrase, t.cert = this.cert, t.ca = this.ca, t.ciphers = this.ciphers, t.rejectUnauthorized = this.rejectUnauthorized, t.requestTimeout = this.requestTimeout, t.extraHeaders = this.extraHeaders, new Y(t);
|
|
1359
1368
|
};
|
|
1360
|
-
|
|
1369
|
+
Et.prototype.doWrite = function(t, e) {
|
|
1361
1370
|
var r = typeof t != "string" && t !== void 0, n = this.request({ method: "POST", data: t, isBinary: r }), o = this;
|
|
1362
1371
|
n.on("success", e), n.on("error", function(i) {
|
|
1363
1372
|
o.onError("xhr post error", i);
|
|
1364
1373
|
}), this.sendXhr = n;
|
|
1365
1374
|
};
|
|
1366
|
-
|
|
1367
|
-
|
|
1375
|
+
Et.prototype.doPoll = function() {
|
|
1376
|
+
ke("xhr poll");
|
|
1368
1377
|
var t = this.request(), e = this;
|
|
1369
1378
|
t.on("data", function(r) {
|
|
1370
1379
|
e.onData(r);
|
|
@@ -1375,13 +1384,13 @@ At.prototype.doPoll = function() {
|
|
|
1375
1384
|
function Y(t) {
|
|
1376
1385
|
this.method = t.method || "GET", this.uri = t.uri, this.xd = !!t.xd, this.xs = !!t.xs, this.async = t.async !== !1, this.data = t.data !== void 0 ? t.data : null, this.agent = t.agent, this.isBinary = t.isBinary, this.supportsBinary = t.supportsBinary, this.enablesXDR = t.enablesXDR, this.withCredentials = t.withCredentials, this.requestTimeout = t.requestTimeout, this.pfx = t.pfx, this.key = t.key, this.passphrase = t.passphrase, this.cert = t.cert, this.ca = t.ca, this.ciphers = t.ciphers, this.rejectUnauthorized = t.rejectUnauthorized, this.extraHeaders = t.extraHeaders, this.create();
|
|
1377
1386
|
}
|
|
1378
|
-
|
|
1387
|
+
In(Y.prototype);
|
|
1379
1388
|
Y.prototype.create = function() {
|
|
1380
1389
|
var t = { agent: this.agent, xdomain: this.xd, xscheme: this.xs, enablesXDR: this.enablesXDR };
|
|
1381
1390
|
t.pfx = this.pfx, t.key = this.key, t.passphrase = this.passphrase, t.cert = this.cert, t.ca = this.ca, t.ciphers = this.ciphers, t.rejectUnauthorized = this.rejectUnauthorized;
|
|
1382
|
-
var e = this.xhr = new
|
|
1391
|
+
var e = this.xhr = new xn(t), r = this;
|
|
1383
1392
|
try {
|
|
1384
|
-
|
|
1393
|
+
ke("xhr open %s: %s", this.method, this.uri), e.open(this.method, this.uri, this.async);
|
|
1385
1394
|
try {
|
|
1386
1395
|
if (this.extraHeaders) {
|
|
1387
1396
|
e.setDisableHeaderCheck && e.setDisableHeaderCheck(!0);
|
|
@@ -1413,7 +1422,7 @@ Y.prototype.create = function() {
|
|
|
1413
1422
|
e.readyState === 4 && (e.status === 200 || e.status === 1223 ? r.onLoad() : setTimeout(function() {
|
|
1414
1423
|
r.onError(typeof e.status == "number" ? e.status : 0);
|
|
1415
1424
|
}, 0));
|
|
1416
|
-
},
|
|
1425
|
+
}, ke("xhr data %s", this.data), e.send(this.data);
|
|
1417
1426
|
} catch (o) {
|
|
1418
1427
|
setTimeout(function() {
|
|
1419
1428
|
r.onError(o);
|
|
@@ -1433,7 +1442,7 @@ Y.prototype.onError = function(t) {
|
|
|
1433
1442
|
};
|
|
1434
1443
|
Y.prototype.cleanup = function(t) {
|
|
1435
1444
|
if (!(typeof this.xhr > "u" || this.xhr === null)) {
|
|
1436
|
-
if (this.hasXDR() ? this.xhr.onload = this.xhr.onerror =
|
|
1445
|
+
if (this.hasXDR() ? this.xhr.onload = this.xhr.onerror = We : this.xhr.onreadystatechange = We, t)
|
|
1437
1446
|
try {
|
|
1438
1447
|
this.xhr.abort();
|
|
1439
1448
|
} catch {
|
|
@@ -1465,34 +1474,34 @@ Y.requestsCount = 0;
|
|
|
1465
1474
|
Y.requests = {};
|
|
1466
1475
|
if (typeof document < "u") {
|
|
1467
1476
|
if (typeof attachEvent == "function")
|
|
1468
|
-
attachEvent("onunload",
|
|
1477
|
+
attachEvent("onunload", Ke);
|
|
1469
1478
|
else if (typeof addEventListener == "function") {
|
|
1470
|
-
var
|
|
1471
|
-
addEventListener(
|
|
1479
|
+
var _n = "onpagehide" in Bn ? "pagehide" : "unload";
|
|
1480
|
+
addEventListener(_n, Ke, !1);
|
|
1472
1481
|
}
|
|
1473
1482
|
}
|
|
1474
|
-
function
|
|
1483
|
+
function Ke() {
|
|
1475
1484
|
for (var t in Y.requests)
|
|
1476
1485
|
Y.requests.hasOwnProperty(t) && Y.requests[t].abort();
|
|
1477
1486
|
}
|
|
1478
|
-
var
|
|
1479
|
-
function
|
|
1487
|
+
var Ln = Te.exports, xe = mr, Un = Jt, He = Ee, Dn = At, Pn = /\n/g, Fn = /\\n/g, Pt;
|
|
1488
|
+
function jn() {
|
|
1480
1489
|
}
|
|
1481
|
-
function
|
|
1482
|
-
|
|
1490
|
+
function At(t) {
|
|
1491
|
+
xe.call(this, t), this.query = this.query || {}, Pt || (Pt = He.___eio = He.___eio || []), this.index = Pt.length;
|
|
1483
1492
|
var e = this;
|
|
1484
|
-
|
|
1493
|
+
Pt.push(function(r) {
|
|
1485
1494
|
e.onData(r);
|
|
1486
1495
|
}), this.query.j = this.index, typeof addEventListener == "function" && addEventListener("beforeunload", function() {
|
|
1487
|
-
e.script && (e.script.onerror =
|
|
1496
|
+
e.script && (e.script.onerror = jn);
|
|
1488
1497
|
}, !1);
|
|
1489
1498
|
}
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
this.script && (this.script.parentNode.removeChild(this.script), this.script = null), this.form && (this.form.parentNode.removeChild(this.form), this.form = null, this.iframe = null),
|
|
1499
|
+
Un(At, xe);
|
|
1500
|
+
At.prototype.supportsBinary = !1;
|
|
1501
|
+
At.prototype.doClose = function() {
|
|
1502
|
+
this.script && (this.script.parentNode.removeChild(this.script), this.script = null), this.form && (this.form.parentNode.removeChild(this.form), this.form = null, this.iframe = null), xe.prototype.doClose.call(this);
|
|
1494
1503
|
};
|
|
1495
|
-
|
|
1504
|
+
At.prototype.doPoll = function() {
|
|
1496
1505
|
var t = this, e = document.createElement("script");
|
|
1497
1506
|
this.script && (this.script.parentNode.removeChild(this.script), this.script = null), e.async = !0, e.src = this.uri(), e.onerror = function(o) {
|
|
1498
1507
|
t.onError("jsonp poll error", o);
|
|
@@ -1505,7 +1514,7 @@ Tt.prototype.doPoll = function() {
|
|
|
1505
1514
|
document.body.appendChild(o), document.body.removeChild(o);
|
|
1506
1515
|
}, 100);
|
|
1507
1516
|
};
|
|
1508
|
-
|
|
1517
|
+
At.prototype.doWrite = function(t, e) {
|
|
1509
1518
|
var r = this;
|
|
1510
1519
|
if (!this.form) {
|
|
1511
1520
|
var n = document.createElement("form"), o = document.createElement("textarea"), i = this.iframeId = "eio_iframe_" + this.index, u;
|
|
@@ -1513,9 +1522,9 @@ Tt.prototype.doWrite = function(t, e) {
|
|
|
1513
1522
|
}
|
|
1514
1523
|
this.form.action = this.uri();
|
|
1515
1524
|
function h() {
|
|
1516
|
-
|
|
1525
|
+
f(), e();
|
|
1517
1526
|
}
|
|
1518
|
-
function
|
|
1527
|
+
function f() {
|
|
1519
1528
|
if (r.iframe)
|
|
1520
1529
|
try {
|
|
1521
1530
|
r.form.removeChild(r.iframe);
|
|
@@ -1530,8 +1539,8 @@ Tt.prototype.doWrite = function(t, e) {
|
|
|
1530
1539
|
}
|
|
1531
1540
|
u.id = r.iframeId, r.form.appendChild(u), r.iframe = u;
|
|
1532
1541
|
}
|
|
1533
|
-
|
|
1534
|
-
`), this.area.value = t.replace(
|
|
1542
|
+
f(), t = t.replace(Fn, `\\
|
|
1543
|
+
`), this.area.value = t.replace(Pn, "\\n");
|
|
1535
1544
|
try {
|
|
1536
1545
|
this.form.submit();
|
|
1537
1546
|
} catch {
|
|
@@ -1540,23 +1549,23 @@ Tt.prototype.doWrite = function(t, e) {
|
|
|
1540
1549
|
r.iframe.readyState === "complete" && h();
|
|
1541
1550
|
} : this.iframe.onload = h;
|
|
1542
1551
|
};
|
|
1543
|
-
const
|
|
1552
|
+
const Mn = {}, qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1544
1553
|
__proto__: null,
|
|
1545
|
-
default:
|
|
1546
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1547
|
-
var
|
|
1548
|
-
typeof WebSocket < "u" ?
|
|
1554
|
+
default: Mn
|
|
1555
|
+
}, Symbol.toStringTag, { value: "Module" })), zn = /* @__PURE__ */ Mr(qn);
|
|
1556
|
+
var Ie = Ne(), Xn = kt, Wn = Ht(), Kn = Jt, Hn = dr, Jn = lt("engine.io-client:websocket"), zt, Re;
|
|
1557
|
+
typeof WebSocket < "u" ? zt = WebSocket : typeof self < "u" && (zt = self.WebSocket || self.MozWebSocket);
|
|
1549
1558
|
if (typeof window > "u")
|
|
1550
1559
|
try {
|
|
1551
|
-
|
|
1560
|
+
Re = zn;
|
|
1552
1561
|
} catch {
|
|
1553
1562
|
}
|
|
1554
|
-
var wt =
|
|
1563
|
+
var wt = zt || Re, Vn = st;
|
|
1555
1564
|
function st(t) {
|
|
1556
1565
|
var e = t && t.forceBase64;
|
|
1557
|
-
e && (this.supportsBinary = !1), this.perMessageDeflate = t.perMessageDeflate, this.usingBrowserWebSocket =
|
|
1566
|
+
e && (this.supportsBinary = !1), this.perMessageDeflate = t.perMessageDeflate, this.usingBrowserWebSocket = zt && !t.forceNode, this.protocols = t.protocols, this.usingBrowserWebSocket || (wt = Re), Ie.call(this, t);
|
|
1558
1567
|
}
|
|
1559
|
-
|
|
1568
|
+
Kn(st, Ie);
|
|
1560
1569
|
st.prototype.name = "websocket";
|
|
1561
1570
|
st.prototype.supportsBinary = !0;
|
|
1562
1571
|
st.prototype.doOpen = function() {
|
|
@@ -1588,18 +1597,18 @@ st.prototype.write = function(t) {
|
|
|
1588
1597
|
this.writable = !1;
|
|
1589
1598
|
for (var r = t.length, n = 0, o = r; n < o; n++)
|
|
1590
1599
|
(function(u) {
|
|
1591
|
-
|
|
1600
|
+
Xn.encodePacket(u, e.supportsBinary, function(h) {
|
|
1592
1601
|
if (!e.usingBrowserWebSocket) {
|
|
1593
|
-
var
|
|
1594
|
-
if (u.options && (
|
|
1602
|
+
var f = {};
|
|
1603
|
+
if (u.options && (f.compress = u.options.compress), e.perMessageDeflate) {
|
|
1595
1604
|
var c = typeof h == "string" ? Buffer.byteLength(h) : h.length;
|
|
1596
|
-
c < e.perMessageDeflate.threshold && (
|
|
1605
|
+
c < e.perMessageDeflate.threshold && (f.compress = !1);
|
|
1597
1606
|
}
|
|
1598
1607
|
}
|
|
1599
1608
|
try {
|
|
1600
|
-
e.usingBrowserWebSocket ? e.ws.send(h) : e.ws.send(h,
|
|
1609
|
+
e.usingBrowserWebSocket ? e.ws.send(h) : e.ws.send(h, f);
|
|
1601
1610
|
} catch {
|
|
1602
|
-
|
|
1611
|
+
Jn("websocket closed before onclose event");
|
|
1603
1612
|
}
|
|
1604
1613
|
--r || i();
|
|
1605
1614
|
});
|
|
@@ -1611,62 +1620,62 @@ st.prototype.write = function(t) {
|
|
|
1611
1620
|
}
|
|
1612
1621
|
};
|
|
1613
1622
|
st.prototype.onClose = function() {
|
|
1614
|
-
|
|
1623
|
+
Ie.prototype.onClose.call(this);
|
|
1615
1624
|
};
|
|
1616
1625
|
st.prototype.doClose = function() {
|
|
1617
1626
|
typeof this.ws < "u" && this.ws.close();
|
|
1618
1627
|
};
|
|
1619
1628
|
st.prototype.uri = function() {
|
|
1620
1629
|
var t = this.query || {}, e = this.secure ? "wss" : "ws", r = "";
|
|
1621
|
-
this.port && (e === "wss" && Number(this.port) !== 443 || e === "ws" && Number(this.port) !== 80) && (r = ":" + this.port), this.timestampRequests && (t[this.timestampParam] =
|
|
1630
|
+
this.port && (e === "wss" && Number(this.port) !== 443 || e === "ws" && Number(this.port) !== 80) && (r = ":" + this.port), this.timestampRequests && (t[this.timestampParam] = Hn()), this.supportsBinary || (t.b64 = 1), t = Wn.encode(t), t.length && (t = "?" + t);
|
|
1622
1631
|
var n = this.hostname.indexOf(":") !== -1;
|
|
1623
1632
|
return e + "://" + (n ? "[" + this.hostname + "]" : this.hostname) + r + this.path + t;
|
|
1624
1633
|
};
|
|
1625
1634
|
st.prototype.check = function() {
|
|
1626
1635
|
return !!wt && !("__initialize" in wt && this.name === st.prototype.name);
|
|
1627
1636
|
};
|
|
1628
|
-
var
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
function
|
|
1637
|
+
var $n = Ae, Gn = Ln, Yn = Dn, Qn = Vn;
|
|
1638
|
+
Kt.polling = Zn;
|
|
1639
|
+
Kt.websocket = Qn;
|
|
1640
|
+
function Zn(t) {
|
|
1632
1641
|
var e, r = !1, n = !1, o = t.jsonp !== !1;
|
|
1633
1642
|
if (typeof location < "u") {
|
|
1634
1643
|
var i = location.protocol === "https:", u = location.port;
|
|
1635
1644
|
u || (u = i ? 443 : 80), r = t.hostname !== location.hostname || u !== t.port, n = t.secure !== i;
|
|
1636
1645
|
}
|
|
1637
|
-
if (t.xdomain = r, t.xscheme = n, e = new
|
|
1638
|
-
return new
|
|
1646
|
+
if (t.xdomain = r, t.xscheme = n, e = new $n(t), "open" in e && !t.forceJSONP)
|
|
1647
|
+
return new Gn(t);
|
|
1639
1648
|
if (!o)
|
|
1640
1649
|
throw new Error("JSONP disabled");
|
|
1641
|
-
return new
|
|
1650
|
+
return new Yn(t);
|
|
1642
1651
|
}
|
|
1643
|
-
var
|
|
1644
|
-
if (
|
|
1652
|
+
var to = [].indexOf, kr = function(t, e) {
|
|
1653
|
+
if (to)
|
|
1645
1654
|
return t.indexOf(e);
|
|
1646
1655
|
for (var r = 0; r < t.length; ++r)
|
|
1647
1656
|
if (t[r] === e)
|
|
1648
1657
|
return r;
|
|
1649
1658
|
return -1;
|
|
1650
|
-
},
|
|
1659
|
+
}, eo = Kt, ro = St, G = lt("engine.io-client:socket"), no = kr, br = kt, Je = or, oo = Ht(), so = W;
|
|
1651
1660
|
function W(t, e) {
|
|
1652
1661
|
if (!(this instanceof W))
|
|
1653
1662
|
return new W(t, e);
|
|
1654
|
-
e = e || {}, t && typeof t == "object" && (e = t, t = null), t ? (t =
|
|
1663
|
+
e = e || {}, t && typeof t == "object" && (e = t, t = null), t ? (t = Je(t), e.hostname = t.host, e.secure = t.protocol === "https" || t.protocol === "wss", e.port = t.port, t.query && (e.query = t.query)) : e.host && (e.hostname = Je(e.host).host), this.secure = e.secure != null ? e.secure : typeof location < "u" && location.protocol === "https:", e.hostname && !e.port && (e.port = this.secure ? "443" : "80"), this.agent = e.agent || !1, this.hostname = e.hostname || (typeof location < "u" ? location.hostname : "localhost"), this.port = e.port || (typeof location < "u" && location.port ? location.port : this.secure ? 443 : 80), this.query = e.query || {}, typeof this.query == "string" && (this.query = oo.decode(this.query)), this.upgrade = e.upgrade !== !1, this.path = (e.path || "/engine.io").replace(/\/$/, "") + "/", this.forceJSONP = !!e.forceJSONP, this.jsonp = e.jsonp !== !1, this.forceBase64 = !!e.forceBase64, this.enablesXDR = !!e.enablesXDR, this.withCredentials = e.withCredentials !== !1, this.timestampParam = e.timestampParam || "t", this.timestampRequests = e.timestampRequests, this.transports = e.transports || ["polling", "websocket"], this.transportOptions = e.transportOptions || {}, this.readyState = "", this.writeBuffer = [], this.prevBufferLen = 0, this.policyPort = e.policyPort || 843, this.rememberUpgrade = e.rememberUpgrade || !1, this.binaryType = null, this.onlyBinaryUpgrades = e.onlyBinaryUpgrades, this.perMessageDeflate = e.perMessageDeflate !== !1 ? e.perMessageDeflate || {} : !1, this.perMessageDeflate === !0 && (this.perMessageDeflate = {}), this.perMessageDeflate && this.perMessageDeflate.threshold == null && (this.perMessageDeflate.threshold = 1024), this.pfx = e.pfx || void 0, this.key = e.key || void 0, this.passphrase = e.passphrase || void 0, this.cert = e.cert || void 0, this.ca = e.ca || void 0, this.ciphers = e.ciphers || void 0, this.rejectUnauthorized = e.rejectUnauthorized === void 0 ? !0 : e.rejectUnauthorized, this.forceNode = !!e.forceNode, this.isReactNative = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative", (typeof self > "u" || this.isReactNative) && (e.extraHeaders && Object.keys(e.extraHeaders).length > 0 && (this.extraHeaders = e.extraHeaders), e.localAddress && (this.localAddress = e.localAddress)), this.id = null, this.upgrades = null, this.pingInterval = null, this.pingTimeout = null, this.pingIntervalTimer = null, this.pingTimeoutTimer = null, this.open();
|
|
1655
1664
|
}
|
|
1656
1665
|
W.priorWebsocketSuccess = !1;
|
|
1657
|
-
|
|
1658
|
-
W.protocol =
|
|
1666
|
+
ro(W.prototype);
|
|
1667
|
+
W.protocol = br.protocol;
|
|
1659
1668
|
W.Socket = W;
|
|
1660
|
-
W.Transport =
|
|
1661
|
-
W.transports =
|
|
1669
|
+
W.Transport = Ne();
|
|
1670
|
+
W.transports = Kt;
|
|
1662
1671
|
W.parser = kt;
|
|
1663
1672
|
W.prototype.createTransport = function(t) {
|
|
1664
1673
|
G('creating transport "%s"', t);
|
|
1665
|
-
var e =
|
|
1666
|
-
e.EIO =
|
|
1674
|
+
var e = io(this.query);
|
|
1675
|
+
e.EIO = br.protocol, e.transport = t;
|
|
1667
1676
|
var r = this.transportOptions[t] || {};
|
|
1668
1677
|
this.id && (e.sid = this.id);
|
|
1669
|
-
var n = new
|
|
1678
|
+
var n = new eo[t]({
|
|
1670
1679
|
query: e,
|
|
1671
1680
|
socket: this,
|
|
1672
1681
|
agent: r.agent || this.agent,
|
|
@@ -1699,7 +1708,7 @@ W.prototype.createTransport = function(t) {
|
|
|
1699
1708
|
});
|
|
1700
1709
|
return n;
|
|
1701
1710
|
};
|
|
1702
|
-
function
|
|
1711
|
+
function io(t) {
|
|
1703
1712
|
var e = {};
|
|
1704
1713
|
for (var r in t)
|
|
1705
1714
|
t.hasOwnProperty(r) && (e[r] = t[r]);
|
|
@@ -1773,16 +1782,16 @@ W.prototype.probe = function(t) {
|
|
|
1773
1782
|
function h() {
|
|
1774
1783
|
u("transport closed");
|
|
1775
1784
|
}
|
|
1776
|
-
function
|
|
1785
|
+
function f() {
|
|
1777
1786
|
u("socket closed");
|
|
1778
1787
|
}
|
|
1779
1788
|
function c(p) {
|
|
1780
1789
|
e && p.name !== e.name && (G('"%s" works - aborting "%s"', p.name, e.name), i());
|
|
1781
1790
|
}
|
|
1782
1791
|
function l() {
|
|
1783
|
-
e.removeListener("open", o), e.removeListener("error", u), e.removeListener("close", h), n.removeListener("close",
|
|
1792
|
+
e.removeListener("open", o), e.removeListener("error", u), e.removeListener("close", h), n.removeListener("close", f), n.removeListener("upgrading", c);
|
|
1784
1793
|
}
|
|
1785
|
-
e.once("open", o), e.once("error", u), e.once("close", h), this.once("close",
|
|
1794
|
+
e.once("open", o), e.once("error", u), e.once("close", h), this.once("close", f), this.once("upgrading", c), e.open();
|
|
1786
1795
|
};
|
|
1787
1796
|
W.prototype.onOpen = function() {
|
|
1788
1797
|
if (G("socket open"), this.readyState = "open", W.priorWebsocketSuccess = this.transport.name === "websocket", this.emit("open"), this.flush(), this.readyState === "open" && this.upgrade && this.transport.pause) {
|
|
@@ -1884,165 +1893,173 @@ W.prototype.onClose = function(t, e) {
|
|
|
1884
1893
|
};
|
|
1885
1894
|
W.prototype.filterUpgrades = function(t) {
|
|
1886
1895
|
for (var e = [], r = 0, n = t.length; r < n; r++)
|
|
1887
|
-
~
|
|
1896
|
+
~no(this.transports, t[r]) && e.push(t[r]);
|
|
1888
1897
|
return e;
|
|
1889
1898
|
};
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
var
|
|
1893
|
-
function
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
+
Se.exports = so;
|
|
1900
|
+
Se.exports.parser = kt;
|
|
1901
|
+
var ao = Se.exports, Ve = { exports: {} }, ce, $e;
|
|
1902
|
+
function co() {
|
|
1903
|
+
if ($e)
|
|
1904
|
+
return ce;
|
|
1905
|
+
$e = 1, ce = t;
|
|
1906
|
+
function t(e, r) {
|
|
1907
|
+
var n = [];
|
|
1908
|
+
r = r || 0;
|
|
1909
|
+
for (var o = r || 0; o < e.length; o++)
|
|
1910
|
+
n[o - r] = e[o];
|
|
1911
|
+
return n;
|
|
1912
|
+
}
|
|
1913
|
+
return ce;
|
|
1899
1914
|
}
|
|
1900
|
-
var
|
|
1901
|
-
function
|
|
1915
|
+
var Cr = ho;
|
|
1916
|
+
function ho(t, e, r) {
|
|
1902
1917
|
return t.on(e, r), {
|
|
1903
1918
|
destroy: function() {
|
|
1904
1919
|
t.removeListener(e, r);
|
|
1905
1920
|
}
|
|
1906
1921
|
};
|
|
1907
1922
|
}
|
|
1908
|
-
var
|
|
1923
|
+
var Ge = [].slice, wr = function(t, e) {
|
|
1909
1924
|
if (typeof e == "string" && (e = t[e]), typeof e != "function")
|
|
1910
1925
|
throw new Error("bind() requires a function");
|
|
1911
|
-
var r =
|
|
1926
|
+
var r = Ge.call(arguments, 2);
|
|
1912
1927
|
return function() {
|
|
1913
|
-
return e.apply(t, r.concat(
|
|
1928
|
+
return e.apply(t, r.concat(Ge.call(arguments)));
|
|
1914
1929
|
};
|
|
1915
|
-
};
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
n(a.prototype), a.prototype.subEvents = function() {
|
|
1938
|
-
if (!this.subs) {
|
|
1939
|
-
var s = this.io;
|
|
1940
|
-
this.subs = [
|
|
1941
|
-
i(s, "open", u(this, "onopen")),
|
|
1942
|
-
i(s, "packet", u(this, "onpacket")),
|
|
1943
|
-
i(s, "close", u(this, "onclose"))
|
|
1944
|
-
];
|
|
1930
|
+
}, Ye;
|
|
1931
|
+
function Sr() {
|
|
1932
|
+
return Ye || (Ye = 1, function(t, e) {
|
|
1933
|
+
var r = Xt, n = St, o = co(), i = Cr, u = wr, h = lt("socket.io-client:socket"), f = Ht(), c = hr();
|
|
1934
|
+
t.exports = a;
|
|
1935
|
+
var l = {
|
|
1936
|
+
connect: 1,
|
|
1937
|
+
connect_error: 1,
|
|
1938
|
+
connect_timeout: 1,
|
|
1939
|
+
connecting: 1,
|
|
1940
|
+
disconnect: 1,
|
|
1941
|
+
error: 1,
|
|
1942
|
+
reconnect: 1,
|
|
1943
|
+
reconnect_attempt: 1,
|
|
1944
|
+
reconnect_failed: 1,
|
|
1945
|
+
reconnect_error: 1,
|
|
1946
|
+
reconnecting: 1,
|
|
1947
|
+
ping: 1,
|
|
1948
|
+
pong: 1
|
|
1949
|
+
}, p = n.prototype.emit;
|
|
1950
|
+
function a(s, d, y) {
|
|
1951
|
+
this.io = s, this.nsp = d, this.json = this, this.ids = 0, this.acks = {}, this.receiveBuffer = [], this.sendBuffer = [], this.connected = !1, this.disconnected = !0, this.flags = {}, y && y.query && (this.query = y.query), this.io.autoConnect && this.open();
|
|
1945
1952
|
}
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
var f = o(arguments), y = {
|
|
1955
|
-
type: (this.flags.binary !== void 0 ? this.flags.binary : c(f)) ? r.BINARY_EVENT : r.EVENT,
|
|
1956
|
-
data: f
|
|
1957
|
-
};
|
|
1958
|
-
return y.options = {}, y.options.compress = !this.flags || this.flags.compress !== !1, typeof f[f.length - 1] == "function" && (h("emitting packet with ack id %d", this.ids), this.acks[this.ids] = f.pop(), y.id = this.ids++), this.connected ? this.packet(y) : this.sendBuffer.push(y), this.flags = {}, this;
|
|
1959
|
-
}, a.prototype.packet = function(s) {
|
|
1960
|
-
s.nsp = this.nsp, this.io.packet(s);
|
|
1961
|
-
}, a.prototype.onopen = function() {
|
|
1962
|
-
if (h("transport is open - connecting"), this.nsp !== "/")
|
|
1963
|
-
if (this.query) {
|
|
1964
|
-
var s = typeof this.query == "object" ? d.encode(this.query) : this.query;
|
|
1965
|
-
h("sending connect packet with query %s", s), this.packet({ type: r.CONNECT, query: s });
|
|
1966
|
-
} else
|
|
1967
|
-
this.packet({ type: r.CONNECT });
|
|
1968
|
-
}, a.prototype.onclose = function(s) {
|
|
1969
|
-
h("close (%s)", s), this.connected = !1, this.disconnected = !0, delete this.id, this.emit("disconnect", s);
|
|
1970
|
-
}, a.prototype.onpacket = function(s) {
|
|
1971
|
-
var f = s.nsp === this.nsp, y = s.type === r.ERROR && s.nsp === "/";
|
|
1972
|
-
if (!(!f && !y))
|
|
1973
|
-
switch (s.type) {
|
|
1974
|
-
case r.CONNECT:
|
|
1975
|
-
this.onconnect();
|
|
1976
|
-
break;
|
|
1977
|
-
case r.EVENT:
|
|
1978
|
-
this.onevent(s);
|
|
1979
|
-
break;
|
|
1980
|
-
case r.BINARY_EVENT:
|
|
1981
|
-
this.onevent(s);
|
|
1982
|
-
break;
|
|
1983
|
-
case r.ACK:
|
|
1984
|
-
this.onack(s);
|
|
1985
|
-
break;
|
|
1986
|
-
case r.BINARY_ACK:
|
|
1987
|
-
this.onack(s);
|
|
1988
|
-
break;
|
|
1989
|
-
case r.DISCONNECT:
|
|
1990
|
-
this.ondisconnect();
|
|
1991
|
-
break;
|
|
1992
|
-
case r.ERROR:
|
|
1993
|
-
this.emit("error", s.data);
|
|
1994
|
-
break;
|
|
1953
|
+
n(a.prototype), a.prototype.subEvents = function() {
|
|
1954
|
+
if (!this.subs) {
|
|
1955
|
+
var s = this.io;
|
|
1956
|
+
this.subs = [
|
|
1957
|
+
i(s, "open", u(this, "onopen")),
|
|
1958
|
+
i(s, "packet", u(this, "onpacket")),
|
|
1959
|
+
i(s, "close", u(this, "onclose"))
|
|
1960
|
+
];
|
|
1995
1961
|
}
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
if (
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
1962
|
+
}, a.prototype.open = a.prototype.connect = function() {
|
|
1963
|
+
return this.connected ? this : (this.subEvents(), this.io.reconnecting || this.io.open(), this.io.readyState === "open" && this.onopen(), this.emit("connecting"), this);
|
|
1964
|
+
}, a.prototype.send = function() {
|
|
1965
|
+
var s = o(arguments);
|
|
1966
|
+
return s.unshift("message"), this.emit.apply(this, s), this;
|
|
1967
|
+
}, a.prototype.emit = function(s) {
|
|
1968
|
+
if (l.hasOwnProperty(s))
|
|
1969
|
+
return p.apply(this, arguments), this;
|
|
1970
|
+
var d = o(arguments), y = {
|
|
1971
|
+
type: (this.flags.binary !== void 0 ? this.flags.binary : c(d)) ? r.BINARY_EVENT : r.EVENT,
|
|
1972
|
+
data: d
|
|
1973
|
+
};
|
|
1974
|
+
return y.options = {}, y.options.compress = !this.flags || this.flags.compress !== !1, typeof d[d.length - 1] == "function" && (h("emitting packet with ack id %d", this.ids), this.acks[this.ids] = d.pop(), y.id = this.ids++), this.connected ? this.packet(y) : this.sendBuffer.push(y), this.flags = {}, this;
|
|
1975
|
+
}, a.prototype.packet = function(s) {
|
|
1976
|
+
s.nsp = this.nsp, this.io.packet(s);
|
|
1977
|
+
}, a.prototype.onopen = function() {
|
|
1978
|
+
if (h("transport is open - connecting"), this.nsp !== "/")
|
|
1979
|
+
if (this.query) {
|
|
1980
|
+
var s = typeof this.query == "object" ? f.encode(this.query) : this.query;
|
|
1981
|
+
h("sending connect packet with query %s", s), this.packet({ type: r.CONNECT, query: s });
|
|
1982
|
+
} else
|
|
1983
|
+
this.packet({ type: r.CONNECT });
|
|
1984
|
+
}, a.prototype.onclose = function(s) {
|
|
1985
|
+
h("close (%s)", s), this.connected = !1, this.disconnected = !0, delete this.id, this.emit("disconnect", s);
|
|
1986
|
+
}, a.prototype.onpacket = function(s) {
|
|
1987
|
+
var d = s.nsp === this.nsp, y = s.type === r.ERROR && s.nsp === "/";
|
|
1988
|
+
if (!(!d && !y))
|
|
1989
|
+
switch (s.type) {
|
|
1990
|
+
case r.CONNECT:
|
|
1991
|
+
this.onconnect();
|
|
1992
|
+
break;
|
|
1993
|
+
case r.EVENT:
|
|
1994
|
+
this.onevent(s);
|
|
1995
|
+
break;
|
|
1996
|
+
case r.BINARY_EVENT:
|
|
1997
|
+
this.onevent(s);
|
|
1998
|
+
break;
|
|
1999
|
+
case r.ACK:
|
|
2000
|
+
this.onack(s);
|
|
2001
|
+
break;
|
|
2002
|
+
case r.BINARY_ACK:
|
|
2003
|
+
this.onack(s);
|
|
2004
|
+
break;
|
|
2005
|
+
case r.DISCONNECT:
|
|
2006
|
+
this.ondisconnect();
|
|
2007
|
+
break;
|
|
2008
|
+
case r.ERROR:
|
|
2009
|
+
this.emit("error", s.data);
|
|
2010
|
+
break;
|
|
2011
|
+
}
|
|
2012
|
+
}, a.prototype.onevent = function(s) {
|
|
2013
|
+
var d = s.data || [];
|
|
2014
|
+
h("emitting event %j", d), s.id != null && (h("attaching ack callback to event"), d.push(this.ack(s.id))), this.connected ? p.apply(this, d) : this.receiveBuffer.push(d);
|
|
2015
|
+
}, a.prototype.ack = function(s) {
|
|
2016
|
+
var d = this, y = !1;
|
|
2017
|
+
return function() {
|
|
2018
|
+
if (!y) {
|
|
2019
|
+
y = !0;
|
|
2020
|
+
var g = o(arguments);
|
|
2021
|
+
h("sending ack %j", g), d.packet({
|
|
2022
|
+
type: c(g) ? r.BINARY_ACK : r.ACK,
|
|
2023
|
+
id: s,
|
|
2024
|
+
data: g
|
|
2025
|
+
});
|
|
2026
|
+
}
|
|
2027
|
+
};
|
|
2028
|
+
}, a.prototype.onack = function(s) {
|
|
2029
|
+
var d = this.acks[s.id];
|
|
2030
|
+
typeof d == "function" ? (h("calling ack %s with %j", s.id, s.data), d.apply(this, s.data), delete this.acks[s.id]) : h("bad ack %s", s.id);
|
|
2031
|
+
}, a.prototype.onconnect = function() {
|
|
2032
|
+
this.connected = !0, this.disconnected = !1, this.emitBuffered(), this.emit("connect");
|
|
2033
|
+
}, a.prototype.emitBuffered = function() {
|
|
2034
|
+
var s;
|
|
2035
|
+
for (s = 0; s < this.receiveBuffer.length; s++)
|
|
2036
|
+
p.apply(this, this.receiveBuffer[s]);
|
|
2037
|
+
for (this.receiveBuffer = [], s = 0; s < this.sendBuffer.length; s++)
|
|
2038
|
+
this.packet(this.sendBuffer[s]);
|
|
2039
|
+
this.sendBuffer = [];
|
|
2040
|
+
}, a.prototype.ondisconnect = function() {
|
|
2041
|
+
h("server disconnect (%s)", this.nsp), this.destroy(), this.onclose("io server disconnect");
|
|
2042
|
+
}, a.prototype.destroy = function() {
|
|
2043
|
+
if (this.subs) {
|
|
2044
|
+
for (var s = 0; s < this.subs.length; s++)
|
|
2045
|
+
this.subs[s].destroy();
|
|
2046
|
+
this.subs = null;
|
|
2010
2047
|
}
|
|
2048
|
+
this.io.destroy(this);
|
|
2049
|
+
}, a.prototype.close = a.prototype.disconnect = function() {
|
|
2050
|
+
return this.connected && (h("performing disconnect (%s)", this.nsp), this.packet({ type: r.DISCONNECT })), this.destroy(), this.connected && this.onclose("io client disconnect"), this;
|
|
2051
|
+
}, a.prototype.compress = function(s) {
|
|
2052
|
+
return this.flags.compress = s, this;
|
|
2053
|
+
}, a.prototype.binary = function(s) {
|
|
2054
|
+
return this.flags.binary = s, this;
|
|
2011
2055
|
};
|
|
2012
|
-
},
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
this.connected = !0, this.disconnected = !1, this.emitBuffered(), this.emit("connect");
|
|
2017
|
-
}, a.prototype.emitBuffered = function() {
|
|
2018
|
-
var s;
|
|
2019
|
-
for (s = 0; s < this.receiveBuffer.length; s++)
|
|
2020
|
-
p.apply(this, this.receiveBuffer[s]);
|
|
2021
|
-
for (this.receiveBuffer = [], s = 0; s < this.sendBuffer.length; s++)
|
|
2022
|
-
this.packet(this.sendBuffer[s]);
|
|
2023
|
-
this.sendBuffer = [];
|
|
2024
|
-
}, a.prototype.ondisconnect = function() {
|
|
2025
|
-
h("server disconnect (%s)", this.nsp), this.destroy(), this.onclose("io server disconnect");
|
|
2026
|
-
}, a.prototype.destroy = function() {
|
|
2027
|
-
if (this.subs) {
|
|
2028
|
-
for (var s = 0; s < this.subs.length; s++)
|
|
2029
|
-
this.subs[s].destroy();
|
|
2030
|
-
this.subs = null;
|
|
2031
|
-
}
|
|
2032
|
-
this.io.destroy(this);
|
|
2033
|
-
}, a.prototype.close = a.prototype.disconnect = function() {
|
|
2034
|
-
return this.connected && (h("performing disconnect (%s)", this.nsp), this.packet({ type: r.DISCONNECT })), this.destroy(), this.connected && this.onclose("io client disconnect"), this;
|
|
2035
|
-
}, a.prototype.compress = function(s) {
|
|
2036
|
-
return this.flags.compress = s, this;
|
|
2037
|
-
}, a.prototype.binary = function(s) {
|
|
2038
|
-
return this.flags.binary = s, this;
|
|
2039
|
-
};
|
|
2040
|
-
})(yr);
|
|
2041
|
-
var vr = yr.exports, ho = Nt;
|
|
2042
|
-
function Nt(t) {
|
|
2056
|
+
}(Ve)), Ve.exports;
|
|
2057
|
+
}
|
|
2058
|
+
var po = Tt;
|
|
2059
|
+
function Tt(t) {
|
|
2043
2060
|
t = t || {}, this.ms = t.min || 100, this.max = t.max || 1e4, this.factor = t.factor || 2, this.jitter = t.jitter > 0 && t.jitter <= 1 ? t.jitter : 0, this.attempts = 0;
|
|
2044
2061
|
}
|
|
2045
|
-
|
|
2062
|
+
Tt.prototype.duration = function() {
|
|
2046
2063
|
var t = this.ms * Math.pow(this.factor, this.attempts++);
|
|
2047
2064
|
if (this.jitter) {
|
|
2048
2065
|
var e = Math.random(), r = Math.floor(e * this.jitter * t);
|
|
@@ -2050,43 +2067,43 @@ Nt.prototype.duration = function() {
|
|
|
2050
2067
|
}
|
|
2051
2068
|
return Math.min(t, this.max) | 0;
|
|
2052
2069
|
};
|
|
2053
|
-
|
|
2070
|
+
Tt.prototype.reset = function() {
|
|
2054
2071
|
this.attempts = 0;
|
|
2055
2072
|
};
|
|
2056
|
-
|
|
2073
|
+
Tt.prototype.setMin = function(t) {
|
|
2057
2074
|
this.ms = t;
|
|
2058
2075
|
};
|
|
2059
|
-
|
|
2076
|
+
Tt.prototype.setMax = function(t) {
|
|
2060
2077
|
this.max = t;
|
|
2061
2078
|
};
|
|
2062
|
-
|
|
2079
|
+
Tt.prototype.setJitter = function(t) {
|
|
2063
2080
|
this.jitter = t;
|
|
2064
2081
|
};
|
|
2065
|
-
var
|
|
2082
|
+
var uo = ao, lo = Sr(), fo = St, yo = Xt, ft = Cr, Ct = wr, Z = lt("socket.io-client:manager"), Er = kr, go = po, Ar = Object.prototype.hasOwnProperty, Qe = K;
|
|
2066
2083
|
function K(t, e) {
|
|
2067
2084
|
if (!(this instanceof K))
|
|
2068
2085
|
return new K(t, e);
|
|
2069
|
-
t && typeof t == "object" && (e = t, t = void 0), e = e || {}, e.path = e.path || "/socket.io", this.nsps = {}, this.subs = [], this.opts = e, this.reconnection(e.reconnection !== !1), this.reconnectionAttempts(e.reconnectionAttempts || 1 / 0), this.reconnectionDelay(e.reconnectionDelay || 1e3), this.reconnectionDelayMax(e.reconnectionDelayMax || 5e3), this.randomizationFactor(e.randomizationFactor || 0.5), this.backoff = new
|
|
2086
|
+
t && typeof t == "object" && (e = t, t = void 0), e = e || {}, e.path = e.path || "/socket.io", this.nsps = {}, this.subs = [], this.opts = e, this.reconnection(e.reconnection !== !1), this.reconnectionAttempts(e.reconnectionAttempts || 1 / 0), this.reconnectionDelay(e.reconnectionDelay || 1e3), this.reconnectionDelayMax(e.reconnectionDelayMax || 5e3), this.randomizationFactor(e.randomizationFactor || 0.5), this.backoff = new go({
|
|
2070
2087
|
min: this.reconnectionDelay(),
|
|
2071
2088
|
max: this.reconnectionDelayMax(),
|
|
2072
2089
|
jitter: this.randomizationFactor()
|
|
2073
2090
|
}), this.timeout(e.timeout == null ? 2e4 : e.timeout), this.readyState = "closed", this.uri = t, this.connecting = [], this.lastPing = null, this.encoding = !1, this.packetBuffer = [];
|
|
2074
|
-
var r = e.parser ||
|
|
2091
|
+
var r = e.parser || yo;
|
|
2075
2092
|
this.encoder = new r.Encoder(), this.decoder = new r.Decoder(), this.autoConnect = e.autoConnect !== !1, this.autoConnect && this.open();
|
|
2076
2093
|
}
|
|
2077
2094
|
K.prototype.emitAll = function() {
|
|
2078
2095
|
this.emit.apply(this, arguments);
|
|
2079
2096
|
for (var t in this.nsps)
|
|
2080
|
-
|
|
2097
|
+
Ar.call(this.nsps, t) && this.nsps[t].emit.apply(this.nsps[t], arguments);
|
|
2081
2098
|
};
|
|
2082
2099
|
K.prototype.updateSocketIds = function() {
|
|
2083
2100
|
for (var t in this.nsps)
|
|
2084
|
-
|
|
2101
|
+
Ar.call(this.nsps, t) && (this.nsps[t].id = this.generateId(t));
|
|
2085
2102
|
};
|
|
2086
2103
|
K.prototype.generateId = function(t) {
|
|
2087
2104
|
return (t === "/" ? "" : t + "#") + this.engine.id;
|
|
2088
2105
|
};
|
|
2089
|
-
|
|
2106
|
+
fo(K.prototype);
|
|
2090
2107
|
K.prototype.reconnection = function(t) {
|
|
2091
2108
|
return arguments.length ? (this._reconnection = !!t, this) : this._reconnection;
|
|
2092
2109
|
};
|
|
@@ -2111,15 +2128,15 @@ K.prototype.maybeReconnectOnOpen = function() {
|
|
|
2111
2128
|
K.prototype.open = K.prototype.connect = function(t, e) {
|
|
2112
2129
|
if (Z("readyState %s", this.readyState), ~this.readyState.indexOf("open"))
|
|
2113
2130
|
return this;
|
|
2114
|
-
Z("opening %s", this.uri), this.engine =
|
|
2131
|
+
Z("opening %s", this.uri), this.engine = uo(this.uri, this.opts);
|
|
2115
2132
|
var r = this.engine, n = this;
|
|
2116
2133
|
this.readyState = "opening", this.skipReconnect = !1;
|
|
2117
2134
|
var o = ft(r, "open", function() {
|
|
2118
2135
|
n.onopen(), t && t();
|
|
2119
|
-
}), i = ft(r, "error", function(
|
|
2120
|
-
if (Z("connect_error"), n.cleanup(), n.readyState = "closed", n.emitAll("connect_error",
|
|
2136
|
+
}), i = ft(r, "error", function(f) {
|
|
2137
|
+
if (Z("connect_error"), n.cleanup(), n.readyState = "closed", n.emitAll("connect_error", f), t) {
|
|
2121
2138
|
var c = new Error("Connection error");
|
|
2122
|
-
c.data =
|
|
2139
|
+
c.data = f, t(c);
|
|
2123
2140
|
} else
|
|
2124
2141
|
n.maybeReconnectOnOpen();
|
|
2125
2142
|
});
|
|
@@ -2160,19 +2177,19 @@ K.prototype.onerror = function(t) {
|
|
|
2160
2177
|
K.prototype.socket = function(t, e) {
|
|
2161
2178
|
var r = this.nsps[t];
|
|
2162
2179
|
if (!r) {
|
|
2163
|
-
r = new
|
|
2180
|
+
r = new lo(this, t, e), this.nsps[t] = r;
|
|
2164
2181
|
var n = this;
|
|
2165
2182
|
r.on("connecting", o), r.on("connect", function() {
|
|
2166
2183
|
r.id = n.generateId(t);
|
|
2167
2184
|
}), this.autoConnect && o();
|
|
2168
2185
|
}
|
|
2169
2186
|
function o() {
|
|
2170
|
-
~
|
|
2187
|
+
~Er(n.connecting, r) || n.connecting.push(r);
|
|
2171
2188
|
}
|
|
2172
2189
|
return r;
|
|
2173
2190
|
};
|
|
2174
2191
|
K.prototype.destroy = function(t) {
|
|
2175
|
-
var e =
|
|
2192
|
+
var e = Er(this.connecting, t);
|
|
2176
2193
|
~e && this.connecting.splice(e, 1), !this.connecting.length && this.close();
|
|
2177
2194
|
};
|
|
2178
2195
|
K.prototype.packet = function(t) {
|
|
@@ -2230,42 +2247,48 @@ K.prototype.onreconnect = function() {
|
|
|
2230
2247
|
this.reconnecting = !1, this.backoff.reset(), this.updateSocketIds(), this.emitAll("reconnect", t);
|
|
2231
2248
|
};
|
|
2232
2249
|
(function(t, e) {
|
|
2233
|
-
var r =
|
|
2250
|
+
var r = Qr, n = Xt, o = Qe, i = lt("socket.io-client");
|
|
2234
2251
|
t.exports = e = h;
|
|
2235
2252
|
var u = e.managers = {};
|
|
2236
|
-
function h(
|
|
2237
|
-
typeof
|
|
2238
|
-
var l = r(
|
|
2253
|
+
function h(f, c) {
|
|
2254
|
+
typeof f == "object" && (c = f, f = void 0), c = c || {};
|
|
2255
|
+
var l = r(f), p = l.source, a = l.id, s = l.path, d = u[a] && s in u[a].nsps, y = c.forceNew || c["force new connection"] || c.multiplex === !1 || d, g;
|
|
2239
2256
|
return y ? (i("ignoring socket cache for %s", p), g = o(p, c)) : (u[a] || (i("new io instance for %s", p), u[a] = o(p, c)), g = u[a]), l.query && !c.query && (c.query = l.query), g.socket(l.path, c);
|
|
2240
2257
|
}
|
|
2241
|
-
e.protocol = n.protocol, e.connect = h, e.Manager =
|
|
2242
|
-
})(
|
|
2243
|
-
var
|
|
2244
|
-
const
|
|
2245
|
-
let
|
|
2246
|
-
const
|
|
2247
|
-
function
|
|
2248
|
-
if (!
|
|
2258
|
+
e.protocol = n.protocol, e.connect = h, e.Manager = Qe, e.Socket = Sr();
|
|
2259
|
+
})(le, le.exports);
|
|
2260
|
+
var mo = le.exports;
|
|
2261
|
+
const vo = /* @__PURE__ */ jr(mo);
|
|
2262
|
+
let Ft;
|
|
2263
|
+
const ko = new Uint8Array(16);
|
|
2264
|
+
function bo() {
|
|
2265
|
+
if (!Ft && (Ft = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Ft))
|
|
2249
2266
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
2250
|
-
return
|
|
2267
|
+
return Ft(ko);
|
|
2251
2268
|
}
|
|
2252
2269
|
const Q = [];
|
|
2253
2270
|
for (let t = 0; t < 256; ++t)
|
|
2254
2271
|
Q.push((t + 256).toString(16).slice(1));
|
|
2255
|
-
function
|
|
2272
|
+
function Co(t, e = 0) {
|
|
2256
2273
|
return Q[t[e + 0]] + Q[t[e + 1]] + Q[t[e + 2]] + Q[t[e + 3]] + "-" + Q[t[e + 4]] + Q[t[e + 5]] + "-" + Q[t[e + 6]] + Q[t[e + 7]] + "-" + Q[t[e + 8]] + Q[t[e + 9]] + "-" + Q[t[e + 10]] + Q[t[e + 11]] + Q[t[e + 12]] + Q[t[e + 13]] + Q[t[e + 14]] + Q[t[e + 15]];
|
|
2257
2274
|
}
|
|
2258
|
-
const
|
|
2259
|
-
randomUUID:
|
|
2275
|
+
const wo = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ze = {
|
|
2276
|
+
randomUUID: wo
|
|
2260
2277
|
};
|
|
2261
|
-
function
|
|
2262
|
-
if (
|
|
2263
|
-
return
|
|
2278
|
+
function So(t, e, r) {
|
|
2279
|
+
if (Ze.randomUUID && !e && !t)
|
|
2280
|
+
return Ze.randomUUID();
|
|
2264
2281
|
t = t || {};
|
|
2265
|
-
const n = t.random || (t.rng ||
|
|
2266
|
-
|
|
2282
|
+
const n = t.random || (t.rng || bo)();
|
|
2283
|
+
if (n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, e) {
|
|
2284
|
+
r = r || 0;
|
|
2285
|
+
for (let o = 0; o < 16; ++o)
|
|
2286
|
+
e[r + o] = n[o];
|
|
2287
|
+
return e;
|
|
2288
|
+
}
|
|
2289
|
+
return Co(n);
|
|
2267
2290
|
}
|
|
2268
|
-
function
|
|
2291
|
+
function Eo(t, e) {
|
|
2269
2292
|
const r = e.map((o) => JSON.stringify(o)).join(" "), n = (/* @__PURE__ */ new Date()).toISOString();
|
|
2270
2293
|
return JSON.stringify({
|
|
2271
2294
|
level: t,
|
|
@@ -2273,11 +2296,11 @@ function So(t, e) {
|
|
|
2273
2296
|
message: r
|
|
2274
2297
|
});
|
|
2275
2298
|
}
|
|
2276
|
-
function
|
|
2299
|
+
function Ao(t, e) {
|
|
2277
2300
|
const r = JSON.parse(t);
|
|
2278
2301
|
return e.forEach((n) => delete r[n]), r;
|
|
2279
2302
|
}
|
|
2280
|
-
function
|
|
2303
|
+
function To(t) {
|
|
2281
2304
|
if (typeof t == "object" && t !== null)
|
|
2282
2305
|
return t;
|
|
2283
2306
|
try {
|
|
@@ -2286,7 +2309,7 @@ function Ao(t) {
|
|
|
2286
2309
|
return { extraData: t };
|
|
2287
2310
|
}
|
|
2288
2311
|
}
|
|
2289
|
-
function
|
|
2312
|
+
function No(t) {
|
|
2290
2313
|
const e = /\(([^)]+)\)/, r = t.match(e);
|
|
2291
2314
|
if (r && r[1]) {
|
|
2292
2315
|
const n = r[1].split(";");
|
|
@@ -2296,7 +2319,7 @@ function To(t) {
|
|
|
2296
2319
|
}
|
|
2297
2320
|
return "Unknown";
|
|
2298
2321
|
}
|
|
2299
|
-
function
|
|
2322
|
+
function tr(t) {
|
|
2300
2323
|
return (...e) => new Promise((r, n) => {
|
|
2301
2324
|
try {
|
|
2302
2325
|
const o = t(...e);
|
|
@@ -2306,7 +2329,7 @@ function Je(t) {
|
|
|
2306
2329
|
}
|
|
2307
2330
|
});
|
|
2308
2331
|
}
|
|
2309
|
-
const
|
|
2332
|
+
const Oo = {
|
|
2310
2333
|
reconnection: !0,
|
|
2311
2334
|
reconnectionDelay: 5e3,
|
|
2312
2335
|
reconnectionAttempts: 10,
|
|
@@ -2314,7 +2337,7 @@ const No = {
|
|
|
2314
2337
|
upgrade: !1,
|
|
2315
2338
|
transports: ["websocket"],
|
|
2316
2339
|
debug: !1
|
|
2317
|
-
},
|
|
2340
|
+
}, he = {
|
|
2318
2341
|
logToConsole: !0,
|
|
2319
2342
|
overloadGlobalConsole: !1,
|
|
2320
2343
|
socketEmitInterval: 6e4
|
|
@@ -2371,7 +2394,7 @@ const No = {
|
|
|
2371
2394
|
DEBUG: "debug"
|
|
2372
2395
|
};
|
|
2373
2396
|
let rt = console;
|
|
2374
|
-
class
|
|
2397
|
+
class Io {
|
|
2375
2398
|
/**
|
|
2376
2399
|
* Initialize storage logger
|
|
2377
2400
|
* @param options The configuration of the logger.
|
|
@@ -2381,7 +2404,7 @@ class Oo {
|
|
|
2381
2404
|
const { loggerOptions: r } = e;
|
|
2382
2405
|
if (!r.system)
|
|
2383
2406
|
throw new Error("Config property 'system' should be provided!");
|
|
2384
|
-
this.isGetItemAsync = r.isGetItemAsync || !1, this.isSetItemAsync = r.isSetItemAsync || !1, this.setupStorageFunctions(r.getItem, r.setItem, r.parseLog), this.system = r.system, this.socketEmitInterval = r.socketEmitInterval ||
|
|
2407
|
+
this.isGetItemAsync = r.isGetItemAsync || !1, this.isSetItemAsync = r.isSetItemAsync || !1, this.setupStorageFunctions(r.getItem, r.setItem, r.parseLog), this.system = r.system, this.socketEmitInterval = r.socketEmitInterval || he.socketEmitInterval, this.logToConsole = r.logToConsole !== void 0 ? r.logToConsole : he.logToConsole, this.overloadGlobalConsole = r.overloadGlobalConsole !== void 0 ? r.overloadGlobalConsole : he.overloadGlobalConsole, this.storageId = this.getStorageName(), this.queue = [], this.processing = !1, this.storageInitialized = !1, this.emitInProgress = !1, this.logIndex = 0, this.init(e);
|
|
2385
2408
|
}
|
|
2386
2409
|
/**
|
|
2387
2410
|
* Used to setup storage functions and logs parser function.
|
|
@@ -2391,7 +2414,7 @@ class Oo {
|
|
|
2391
2414
|
* @return void
|
|
2392
2415
|
*/
|
|
2393
2416
|
setupStorageFunctions(e, r, n) {
|
|
2394
|
-
this.getItem = e && typeof e == "function" ? this.isGetItemAsync ? e :
|
|
2417
|
+
this.getItem = e && typeof e == "function" ? this.isGetItemAsync ? e : tr(e) : this.defaultGetItemFunction, this.setItem = r && typeof r == "function" ? this.isSetItemAsync ? r : tr(r) : this.defaultSetItemFunction, this.parseLog = n && typeof n == "function" ? n : Eo;
|
|
2395
2418
|
}
|
|
2396
2419
|
/**
|
|
2397
2420
|
* Used to initialize logger. Initializes storage, establishes socket connection and overloads console if needed
|
|
@@ -2420,10 +2443,10 @@ class Oo {
|
|
|
2420
2443
|
*/
|
|
2421
2444
|
createConnection(e, r = {}) {
|
|
2422
2445
|
const n = {
|
|
2423
|
-
...
|
|
2446
|
+
...Oo,
|
|
2424
2447
|
...r
|
|
2425
2448
|
};
|
|
2426
|
-
return
|
|
2449
|
+
return vo(e, n);
|
|
2427
2450
|
}
|
|
2428
2451
|
/**
|
|
2429
2452
|
* Emits stored logs to the server and clears the log storage in case the emit operation was successful
|
|
@@ -2445,17 +2468,17 @@ class Oo {
|
|
|
2445
2468
|
return;
|
|
2446
2469
|
if (!this.socket || !this.socket.connected)
|
|
2447
2470
|
throw new Error("Socket is disconnected");
|
|
2448
|
-
for (const
|
|
2449
|
-
const c =
|
|
2471
|
+
for (const f of i) {
|
|
2472
|
+
const c = To(n[f]), l = {
|
|
2450
2473
|
...this.staticObject,
|
|
2451
2474
|
...c
|
|
2452
2475
|
}, p = this.populateSendingLog(l);
|
|
2453
|
-
await this.socket.emit("Log", JSON.stringify(p)), o.push(
|
|
2476
|
+
await this.socket.emit("Log", JSON.stringify(p)), o.push(f);
|
|
2454
2477
|
}
|
|
2455
2478
|
const u = await this.getItem(this.storageId);
|
|
2456
2479
|
if (!u)
|
|
2457
2480
|
return;
|
|
2458
|
-
const h =
|
|
2481
|
+
const h = Ao(u, o);
|
|
2459
2482
|
this.localObject = {}, await this.setItem(this.storageId, JSON.stringify(h));
|
|
2460
2483
|
} catch (e) {
|
|
2461
2484
|
this._errorMethod(e);
|
|
@@ -2489,7 +2512,7 @@ class Oo {
|
|
|
2489
2512
|
let r;
|
|
2490
2513
|
typeof window < "u" && typeof window.document < "u" ? r = window == null ? void 0 : window.navigator.userAgent : typeof self < "u" && self.navigator && (r = self.navigator.userAgent);
|
|
2491
2514
|
let n;
|
|
2492
|
-
return r && (n =
|
|
2515
|
+
return r && (n = No(r)), {
|
|
2493
2516
|
System: this.system,
|
|
2494
2517
|
DateTime: e,
|
|
2495
2518
|
UserAgent: r,
|
|
@@ -2501,20 +2524,16 @@ class Oo {
|
|
|
2501
2524
|
* @return void
|
|
2502
2525
|
*/
|
|
2503
2526
|
async stop() {
|
|
2504
|
-
|
|
2505
|
-
throw new Error("Socket connection doesn't exists!");
|
|
2506
|
-
clearInterval(this.interval), await this.emitLogs(), this.socket.disconnect();
|
|
2527
|
+
!this.socket || !this.socket.connected || (clearInterval(this.interval), await this.emitLogs(), this.socket.disconnect());
|
|
2507
2528
|
}
|
|
2508
2529
|
/**
|
|
2509
2530
|
* Used to start logger and reconnect socket connection
|
|
2510
2531
|
* @return void
|
|
2511
2532
|
*/
|
|
2512
2533
|
async start() {
|
|
2513
|
-
|
|
2514
|
-
throw new Error("Socket connection already exists!");
|
|
2515
|
-
this.socket.connect(), this.interval = setInterval(async () => {
|
|
2534
|
+
this.socket && this.socket.connected || (this.socket.connect(), this.interval = setInterval(async () => {
|
|
2516
2535
|
await this.emitLogs();
|
|
2517
|
-
}, this.socketEmitInterval);
|
|
2536
|
+
}, this.socketEmitInterval));
|
|
2518
2537
|
}
|
|
2519
2538
|
/**
|
|
2520
2539
|
* Used to overload the global console object by logger methods.
|
|
@@ -2559,7 +2578,7 @@ class Oo {
|
|
|
2559
2578
|
* @return string
|
|
2560
2579
|
*/
|
|
2561
2580
|
getStorageName() {
|
|
2562
|
-
const e =
|
|
2581
|
+
const e = So();
|
|
2563
2582
|
return this.system.toString().toUpperCase() + e + Date.now();
|
|
2564
2583
|
}
|
|
2565
2584
|
/**
|
|
@@ -2687,7 +2706,7 @@ class Ro {
|
|
|
2687
2706
|
email: this.eventsSdkClass.options.email && this.eventsSdkClass.options.email,
|
|
2688
2707
|
password: this.eventsSdkClass.options.password && this.eventsSdkClass.options.password
|
|
2689
2708
|
};
|
|
2690
|
-
if (this.storageKey =
|
|
2709
|
+
if (this.storageKey = Dr(JSON.stringify({
|
|
2691
2710
|
...this.eventsSdkClass.options,
|
|
2692
2711
|
loggerSocketConnection: null
|
|
2693
2712
|
}, this.eventsSdkClass.getCircularReplacer())), this.lastLoginTimestamp && this.lastLoginTimestamp + this.delay > (/* @__PURE__ */ new Date()).getTime())
|
|
@@ -2799,10 +2818,10 @@ class Ro {
|
|
|
2799
2818
|
throw new Error("Unauthorized. Invalid token provided");
|
|
2800
2819
|
if (!h.ok && h.status === 403)
|
|
2801
2820
|
throw new Error("Forbidden. Identity token not provided or not valid");
|
|
2802
|
-
const
|
|
2803
|
-
if (
|
|
2804
|
-
throw new Error(
|
|
2805
|
-
return
|
|
2821
|
+
const f = await h.json();
|
|
2822
|
+
if (f.error)
|
|
2823
|
+
throw new Error(f.error);
|
|
2824
|
+
return f;
|
|
2806
2825
|
} catch (h) {
|
|
2807
2826
|
throw this.eventsSdkClass.loggerClass.log({
|
|
2808
2827
|
Message: `External login request error with the login type ${it} ${i === it.TOKEN ? { token: n } : {
|
|
@@ -2867,7 +2886,7 @@ class Ro {
|
|
|
2867
2886
|
return e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
|
|
2868
2887
|
}
|
|
2869
2888
|
}
|
|
2870
|
-
const
|
|
2889
|
+
const Bo = {
|
|
2871
2890
|
isNewStack: !1,
|
|
2872
2891
|
loginUrl: "https://loginapi.voicenter.co.il/monitorAPI/Login",
|
|
2873
2892
|
refreshTokenUrl: "https://loginapi.voicenter.co.il/monitorAPI/RefreshIdentityToken",
|
|
@@ -2903,11 +2922,11 @@ const Io = {
|
|
|
2903
2922
|
};
|
|
2904
2923
|
function _o() {
|
|
2905
2924
|
return typeof window < "u" && (typeof window.navigator > "u" || typeof window.navigator.userAgent > "u") && (window.navigator.userAgent = "react-native"), function t(e, r, n) {
|
|
2906
|
-
function o(h,
|
|
2925
|
+
function o(h, f) {
|
|
2907
2926
|
if (!r[h]) {
|
|
2908
2927
|
if (!e[h]) {
|
|
2909
2928
|
var c = typeof require == "function" && require;
|
|
2910
|
-
if (!
|
|
2929
|
+
if (!f && c)
|
|
2911
2930
|
return c(h, !0);
|
|
2912
2931
|
if (i)
|
|
2913
2932
|
return i(h, !0);
|
|
@@ -2931,12 +2950,12 @@ function _o() {
|
|
|
2931
2950
|
2: [function(t, e, r) {
|
|
2932
2951
|
function n(c, l) {
|
|
2933
2952
|
typeof c == "object" && (l = c, c = void 0), l = l || {};
|
|
2934
|
-
var p, a = o(c), s = a.source,
|
|
2935
|
-
return l.forceNew || l["force new connection"] || l.multiplex === !1 ? (h("ignoring socket cache for %s", s), p = u(s, l)) : (d
|
|
2953
|
+
var p, a = o(c), s = a.source, d = a.id;
|
|
2954
|
+
return l.forceNew || l["force new connection"] || l.multiplex === !1 ? (h("ignoring socket cache for %s", s), p = u(s, l)) : (f[d] || (h("new io instance for %s", s), f[d] = u(s, l)), p = f[d]), p.socket(a.path);
|
|
2936
2955
|
}
|
|
2937
2956
|
var o = t("./url"), i = t("socket.io-parser"), u = t("./manager"), h = t("debug")("socket.io-client");
|
|
2938
2957
|
e.exports = r = n;
|
|
2939
|
-
var
|
|
2958
|
+
var f = r.managers = {};
|
|
2940
2959
|
r.protocol = i.protocol, r.connect = n, r.Manager = t("./manager"), r.Socket = t("./socket");
|
|
2941
2960
|
}, { "./manager": 3, "./socket": 5, "./url": 6, debug: 10, "socket.io-parser": 44 }],
|
|
2942
2961
|
3: [function(t, e) {
|
|
@@ -2947,7 +2966,7 @@ function _o() {
|
|
|
2947
2966
|
jitter: this.randomizationFactor()
|
|
2948
2967
|
}), this.timeout(s.timeout == null ? 2e4 : s.timeout), this.readyState = "closed", this.uri = a, this.connected = [], this.encoding = !1, this.packetBuffer = [], this.encoder = new u.Encoder(), this.decoder = new u.Decoder(), this.autoConnect = s.autoConnect !== !1, void (this.autoConnect && this.open())) : new r(a, s);
|
|
2949
2968
|
}
|
|
2950
|
-
var n = (t("./url"), t("engine.io-client")), o = t("./socket"), i = t("component-emitter"), u = t("socket.io-parser"), h = t("./on"),
|
|
2969
|
+
var n = (t("./url"), t("engine.io-client")), o = t("./socket"), i = t("component-emitter"), u = t("socket.io-parser"), h = t("./on"), f = t("component-bind"), c = (t("object-component"), t("debug")("socket.io-client:manager")), l = t("indexof"), p = t("backo2");
|
|
2951
2970
|
e.exports = r, r.prototype.emitAll = function() {
|
|
2952
2971
|
this.emit.apply(this, arguments);
|
|
2953
2972
|
for (var a in this.nsps)
|
|
@@ -2973,26 +2992,26 @@ function _o() {
|
|
|
2973
2992
|
if (c("readyState %s", this.readyState), ~this.readyState.indexOf("open"))
|
|
2974
2993
|
return this;
|
|
2975
2994
|
c("opening %s", this.uri), this.engine = n(this.uri, this.opts);
|
|
2976
|
-
var s = this.engine,
|
|
2995
|
+
var s = this.engine, d = this;
|
|
2977
2996
|
this.readyState = "opening", this.skipReconnect = !1;
|
|
2978
2997
|
var y = h(s, "open", function() {
|
|
2979
|
-
|
|
2980
|
-
}), g = h(s, "error", function(
|
|
2981
|
-
if (c("connect_error"),
|
|
2998
|
+
d.onopen(), a && a();
|
|
2999
|
+
}), g = h(s, "error", function(_) {
|
|
3000
|
+
if (c("connect_error"), d.cleanup(), d.readyState = "closed", d.emitAll("connect_error", _), a) {
|
|
2982
3001
|
var b = new Error("Connection error");
|
|
2983
|
-
b.data =
|
|
3002
|
+
b.data = _, a(b);
|
|
2984
3003
|
} else
|
|
2985
|
-
|
|
3004
|
+
d.maybeReconnectOnOpen();
|
|
2986
3005
|
});
|
|
2987
3006
|
if (this._timeout !== !1) {
|
|
2988
3007
|
var w = this._timeout;
|
|
2989
3008
|
c("connect attempt will timeout after %d", w);
|
|
2990
|
-
var
|
|
2991
|
-
c("connect attempt timed out after %d", w), y.destroy(), s.close(), s.emit("error", "timeout"),
|
|
3009
|
+
var B = setTimeout(function() {
|
|
3010
|
+
c("connect attempt timed out after %d", w), y.destroy(), s.close(), s.emit("error", "timeout"), d.emitAll("connect_timeout", w);
|
|
2992
3011
|
}, w);
|
|
2993
3012
|
this.subs.push({
|
|
2994
3013
|
destroy: function() {
|
|
2995
|
-
clearTimeout(
|
|
3014
|
+
clearTimeout(B);
|
|
2996
3015
|
}
|
|
2997
3016
|
});
|
|
2998
3017
|
}
|
|
@@ -3000,7 +3019,7 @@ function _o() {
|
|
|
3000
3019
|
}, r.prototype.onopen = function() {
|
|
3001
3020
|
c("open"), this.cleanup(), this.readyState = "open", this.emit("open");
|
|
3002
3021
|
var a = this.engine;
|
|
3003
|
-
this.subs.push(h(a, "data",
|
|
3022
|
+
this.subs.push(h(a, "data", f(this, "ondata"))), this.subs.push(h(this.decoder, "decoded", f(this, "ondecoded"))), this.subs.push(h(a, "error", f(this, "onerror"))), this.subs.push(h(a, "close", f(this, "onclose")));
|
|
3004
3023
|
}, r.prototype.ondata = function(a) {
|
|
3005
3024
|
this.decoder.add(a);
|
|
3006
3025
|
}, r.prototype.ondecoded = function(a) {
|
|
@@ -3011,9 +3030,9 @@ function _o() {
|
|
|
3011
3030
|
var s = this.nsps[a];
|
|
3012
3031
|
if (!s) {
|
|
3013
3032
|
s = new o(this, a), this.nsps[a] = s;
|
|
3014
|
-
var
|
|
3033
|
+
var d = this;
|
|
3015
3034
|
s.on("connect", function() {
|
|
3016
|
-
s.id =
|
|
3035
|
+
s.id = d.engine.id, ~l(d.connected, s) || d.connected.push(s);
|
|
3017
3036
|
});
|
|
3018
3037
|
}
|
|
3019
3038
|
return s;
|
|
@@ -3023,9 +3042,9 @@ function _o() {
|
|
|
3023
3042
|
}, r.prototype.packet = function(a) {
|
|
3024
3043
|
c("writing packet %j", a);
|
|
3025
3044
|
var s = this;
|
|
3026
|
-
s.encoding ? s.packetBuffer.push(a) : (s.encoding = !0, this.encoder.encode(a, function(
|
|
3027
|
-
for (var y = 0; y <
|
|
3028
|
-
s.engine.write(
|
|
3045
|
+
s.encoding ? s.packetBuffer.push(a) : (s.encoding = !0, this.encoder.encode(a, function(d) {
|
|
3046
|
+
for (var y = 0; y < d.length; y++)
|
|
3047
|
+
s.engine.write(d[y]);
|
|
3029
3048
|
s.encoding = !1, s.processPacketQueue();
|
|
3030
3049
|
}));
|
|
3031
3050
|
}, r.prototype.processPacketQueue = function() {
|
|
@@ -3050,14 +3069,14 @@ function _o() {
|
|
|
3050
3069
|
else {
|
|
3051
3070
|
var s = this.backoff.duration();
|
|
3052
3071
|
c("will wait %dms before reconnect attempt", s), this.reconnecting = !0;
|
|
3053
|
-
var
|
|
3072
|
+
var d = setTimeout(function() {
|
|
3054
3073
|
a.skipReconnect || (c("attempting reconnect"), a.emitAll("reconnect_attempt", a.backoff.attempts), a.emitAll("reconnecting", a.backoff.attempts), a.skipReconnect || a.open(function(y) {
|
|
3055
3074
|
y ? (c("reconnect attempt error"), a.reconnecting = !1, a.reconnect(), a.emitAll("reconnect_error", y.data)) : (c("reconnect success"), a.onreconnect());
|
|
3056
3075
|
}));
|
|
3057
3076
|
}, s);
|
|
3058
3077
|
this.subs.push({
|
|
3059
3078
|
destroy: function() {
|
|
3060
|
-
clearTimeout(
|
|
3079
|
+
clearTimeout(d);
|
|
3061
3080
|
}
|
|
3062
3081
|
});
|
|
3063
3082
|
}
|
|
@@ -3089,10 +3108,10 @@ function _o() {
|
|
|
3089
3108
|
e.exports = r;
|
|
3090
3109
|
}, {}],
|
|
3091
3110
|
5: [function(t, e, r) {
|
|
3092
|
-
function n(s,
|
|
3093
|
-
this.io = s, this.nsp =
|
|
3111
|
+
function n(s, d) {
|
|
3112
|
+
this.io = s, this.nsp = d, this.json = this, this.ids = 0, this.acks = {}, this.io.autoConnect && this.open(), this.receiveBuffer = [], this.sendBuffer = [], this.connected = !1, this.disconnected = !0;
|
|
3094
3113
|
}
|
|
3095
|
-
var o = t("socket.io-parser"), i = t("component-emitter"), u = t("to-array"), h = t("./on"),
|
|
3114
|
+
var o = t("socket.io-parser"), i = t("component-emitter"), u = t("to-array"), h = t("./on"), f = t("component-bind"), c = t("debug")("socket.io-client:socket"), l = t("has-binary");
|
|
3096
3115
|
e.exports = n;
|
|
3097
3116
|
var p = {
|
|
3098
3117
|
connect: 1,
|
|
@@ -3109,7 +3128,7 @@ function _o() {
|
|
|
3109
3128
|
i(n.prototype), n.prototype.subEvents = function() {
|
|
3110
3129
|
if (!this.subs) {
|
|
3111
3130
|
var s = this.io;
|
|
3112
|
-
this.subs = [h(s, "open",
|
|
3131
|
+
this.subs = [h(s, "open", f(this, "onopen")), h(s, "packet", f(this, "onpacket")), h(s, "close", f(this, "onclose"))];
|
|
3113
3132
|
}
|
|
3114
3133
|
}, n.prototype.open = n.prototype.connect = function() {
|
|
3115
3134
|
return this.connected ? this : (this.subEvents(), this.io.open(), this.io.readyState == "open" && this.onopen(), this);
|
|
@@ -3119,10 +3138,10 @@ function _o() {
|
|
|
3119
3138
|
}, n.prototype.emit = function(s) {
|
|
3120
3139
|
if (p.hasOwnProperty(s))
|
|
3121
3140
|
return a.apply(this, arguments), this;
|
|
3122
|
-
var
|
|
3123
|
-
l(
|
|
3124
|
-
var g = { type: y, data:
|
|
3125
|
-
return typeof
|
|
3141
|
+
var d = u(arguments), y = o.EVENT;
|
|
3142
|
+
l(d) && (y = o.BINARY_EVENT);
|
|
3143
|
+
var g = { type: y, data: d };
|
|
3144
|
+
return typeof d[d.length - 1] == "function" && (c("emitting packet with ack id %d", this.ids), this.acks[this.ids] = d.pop(), g.id = this.ids++), this.connected ? this.packet(g) : this.sendBuffer.push(g), this;
|
|
3126
3145
|
}, n.prototype.packet = function(s) {
|
|
3127
3146
|
s.nsp = this.nsp, this.io.packet(s);
|
|
3128
3147
|
}, n.prototype.onopen = function() {
|
|
@@ -3154,23 +3173,23 @@ function _o() {
|
|
|
3154
3173
|
this.emit("error", s.data);
|
|
3155
3174
|
}
|
|
3156
3175
|
}, n.prototype.onevent = function(s) {
|
|
3157
|
-
var
|
|
3158
|
-
c("emitting event %j",
|
|
3176
|
+
var d = s.data || [];
|
|
3177
|
+
c("emitting event %j", d), s.id != null && (c("attaching ack callback to event"), d.push(this.ack(s.id))), this.connected ? a.apply(this, d) : this.receiveBuffer.push(d);
|
|
3159
3178
|
}, n.prototype.ack = function(s) {
|
|
3160
|
-
var
|
|
3179
|
+
var d = this, y = !1;
|
|
3161
3180
|
return function() {
|
|
3162
3181
|
if (!y) {
|
|
3163
3182
|
y = !0;
|
|
3164
3183
|
var g = u(arguments);
|
|
3165
3184
|
c("sending ack %j", g);
|
|
3166
3185
|
var w = l(g) ? o.BINARY_ACK : o.ACK;
|
|
3167
|
-
|
|
3186
|
+
d.packet({ type: w, id: s, data: g });
|
|
3168
3187
|
}
|
|
3169
3188
|
};
|
|
3170
3189
|
}, n.prototype.onack = function(s) {
|
|
3171
3190
|
c("calling ack %s with %j", s.id, s.data);
|
|
3172
|
-
var
|
|
3173
|
-
|
|
3191
|
+
var d = this.acks[s.id];
|
|
3192
|
+
d.apply(this, s.data), delete this.acks[s.id];
|
|
3174
3193
|
}, n.prototype.onconnect = function() {
|
|
3175
3194
|
this.connected = !0, this.disconnected = !1, this.emit("connect"), this.emitBuffered();
|
|
3176
3195
|
}, n.prototype.emitBuffered = function() {
|
|
@@ -3204,8 +3223,8 @@ function _o() {
|
|
|
3204
3223
|
6: [function(t, e) {
|
|
3205
3224
|
(function(r) {
|
|
3206
3225
|
function n(u, c) {
|
|
3207
|
-
var
|
|
3208
|
-
return u == null && (u = c.protocol + "//" + c.host), typeof u == "string" && (u.charAt(0) == "/" && (u = u.charAt(1) == "/" ? c.protocol + u : c.hostname + u), /^(https?|wss?):\/\//.test(u) || (i("protocol-less url %s", u), u = typeof c < "u" ? c.protocol + "//" + u : "https://" + u), i("parse %s", u),
|
|
3226
|
+
var f = u, c = c || r.location;
|
|
3227
|
+
return u == null && (u = c.protocol + "//" + c.host), typeof u == "string" && (u.charAt(0) == "/" && (u = u.charAt(1) == "/" ? c.protocol + u : c.hostname + u), /^(https?|wss?):\/\//.test(u) || (i("protocol-less url %s", u), u = typeof c < "u" ? c.protocol + "//" + u : "https://" + u), i("parse %s", u), f = o(u)), f.port || (/^(http|ws)$/.test(f.protocol) ? f.port = "80" : /^(http|ws)s$/.test(f.protocol) && (f.port = "443")), f.path = f.path || "/", f.id = f.protocol + "://" + f.host + ":" + f.port, f.href = f.protocol + "://" + f.host + (c && c.port == f.port ? "" : ":" + f.port), f;
|
|
3209
3228
|
}
|
|
3210
3229
|
var o = t("parseuri"), i = t("debug")("socket.io-client:url");
|
|
3211
3230
|
e.exports = n;
|
|
@@ -3268,9 +3287,9 @@ function _o() {
|
|
|
3268
3287
|
return this;
|
|
3269
3288
|
if (arguments.length == 1)
|
|
3270
3289
|
return delete this._callbacks[o], this;
|
|
3271
|
-
for (var h,
|
|
3272
|
-
if (h = u[
|
|
3273
|
-
u.splice(
|
|
3290
|
+
for (var h, f = 0; f < u.length; f++)
|
|
3291
|
+
if (h = u[f], h === i || h.fn === i) {
|
|
3292
|
+
u.splice(f, 1);
|
|
3274
3293
|
break;
|
|
3275
3294
|
}
|
|
3276
3295
|
return this;
|
|
@@ -3279,7 +3298,7 @@ function _o() {
|
|
|
3279
3298
|
var i = [].slice.call(arguments, 1), u = this._callbacks[o];
|
|
3280
3299
|
if (u) {
|
|
3281
3300
|
u = u.slice(0);
|
|
3282
|
-
for (var h = 0,
|
|
3301
|
+
for (var h = 0, f = u.length; f > h; ++h)
|
|
3283
3302
|
u[h].apply(this, i);
|
|
3284
3303
|
}
|
|
3285
3304
|
return this;
|
|
@@ -3335,33 +3354,33 @@ function _o() {
|
|
|
3335
3354
|
}, { "./socket": 13, "engine.io-parser": 25 }],
|
|
3336
3355
|
13: [function(t, e) {
|
|
3337
3356
|
(function(r) {
|
|
3338
|
-
function n(s,
|
|
3357
|
+
function n(s, d) {
|
|
3339
3358
|
if (!(this instanceof n))
|
|
3340
|
-
return new n(s,
|
|
3341
|
-
if (
|
|
3342
|
-
var y =
|
|
3343
|
-
|
|
3359
|
+
return new n(s, d);
|
|
3360
|
+
if (d = d || {}, s && typeof s == "object" && (d = s, s = null), s && (s = l(s), d.host = s.host, d.secure = s.protocol == "https" || s.protocol == "wss", d.port = s.port, s.query && (d.query = s.query)), this.secure = d.secure != null ? d.secure : r.location && location.protocol == "https:", d.host) {
|
|
3361
|
+
var y = d.host.split(":");
|
|
3362
|
+
d.hostname = y.shift(), y.length ? d.port = y.pop() : d.port || (d.port = this.secure ? "443" : "80");
|
|
3344
3363
|
}
|
|
3345
|
-
this.agent =
|
|
3364
|
+
this.agent = d.agent || !1, this.hostname = d.hostname || (r.location ? location.hostname : "localhost"), this.port = d.port || (r.location && location.port ? location.port : this.secure ? 443 : 80), this.query = d.query || {}, typeof this.query == "string" && (this.query = a.decode(this.query)), this.upgrade = d.upgrade !== !1, this.path = (d.path || "/engine.io").replace(/\/$/, "") + "/", this.forceJSONP = !!d.forceJSONP, this.jsonp = d.jsonp !== !1, this.forceBase64 = !!d.forceBase64, this.enablesXDR = !!d.enablesXDR, this.timestampParam = d.timestampParam || "t", this.timestampRequests = d.timestampRequests, this.transports = d.transports || ["polling", "websocket"], this.readyState = "", this.writeBuffer = [], this.callbackBuffer = [], this.policyPort = d.policyPort || 843, this.rememberUpgrade = d.rememberUpgrade || !1, this.binaryType = null, this.onlyBinaryUpgrades = d.onlyBinaryUpgrades, this.pfx = d.pfx || null, this.key = d.key || null, this.passphrase = d.passphrase || null, this.cert = d.cert || null, this.ca = d.ca || null, this.ciphers = d.ciphers || null, this.rejectUnauthorized = d.rejectUnauthorized || null, this.open();
|
|
3346
3365
|
}
|
|
3347
3366
|
function o(s) {
|
|
3348
|
-
var
|
|
3367
|
+
var d = {};
|
|
3349
3368
|
for (var y in s)
|
|
3350
|
-
s.hasOwnProperty(y) && (
|
|
3351
|
-
return
|
|
3369
|
+
s.hasOwnProperty(y) && (d[y] = s[y]);
|
|
3370
|
+
return d;
|
|
3352
3371
|
}
|
|
3353
|
-
var i = t("./transports"), u = t("component-emitter"), h = t("debug")("engine.io-client:socket"),
|
|
3372
|
+
var i = t("./transports"), u = t("component-emitter"), h = t("debug")("engine.io-client:socket"), f = t("indexof"), c = t("engine.io-parser"), l = t("parseuri"), p = t("parsejson"), a = t("parseqs");
|
|
3354
3373
|
e.exports = n, n.priorWebsocketSuccess = !1, u(n.prototype), n.protocol = c.protocol, n.Socket = n, n.Transport = t("./transport"), n.transports = t("./transports"), n.parser = t("engine.io-parser"), n.prototype.createTransport = function(s) {
|
|
3355
3374
|
h('creating transport "%s"', s);
|
|
3356
|
-
var
|
|
3357
|
-
|
|
3375
|
+
var d = o(this.query);
|
|
3376
|
+
d.EIO = c.protocol, d.transport = s, this.id && (d.sid = this.id);
|
|
3358
3377
|
var y = new i[s]({
|
|
3359
3378
|
agent: this.agent,
|
|
3360
3379
|
hostname: this.hostname,
|
|
3361
3380
|
port: this.port,
|
|
3362
3381
|
secure: this.secure,
|
|
3363
3382
|
path: this.path,
|
|
3364
|
-
query:
|
|
3383
|
+
query: d,
|
|
3365
3384
|
forceJSONP: this.forceJSONP,
|
|
3366
3385
|
jsonp: this.jsonp,
|
|
3367
3386
|
forceBase64: this.forceBase64,
|
|
@@ -3380,9 +3399,9 @@ function _o() {
|
|
|
3380
3399
|
});
|
|
3381
3400
|
return y;
|
|
3382
3401
|
}, n.prototype.open = function() {
|
|
3383
|
-
var
|
|
3402
|
+
var d;
|
|
3384
3403
|
if (this.rememberUpgrade && n.priorWebsocketSuccess && this.transports.indexOf("websocket") != -1)
|
|
3385
|
-
|
|
3404
|
+
d = "websocket";
|
|
3386
3405
|
else {
|
|
3387
3406
|
if (this.transports.length == 0) {
|
|
3388
3407
|
var s = this;
|
|
@@ -3390,30 +3409,30 @@ function _o() {
|
|
|
3390
3409
|
s.emit("error", "No transports available");
|
|
3391
3410
|
}, 0);
|
|
3392
3411
|
}
|
|
3393
|
-
|
|
3412
|
+
d = this.transports[0];
|
|
3394
3413
|
}
|
|
3395
3414
|
this.readyState = "opening";
|
|
3396
|
-
var
|
|
3415
|
+
var d;
|
|
3397
3416
|
try {
|
|
3398
|
-
|
|
3417
|
+
d = this.createTransport(d);
|
|
3399
3418
|
} catch {
|
|
3400
3419
|
return this.transports.shift(), void this.open();
|
|
3401
3420
|
}
|
|
3402
|
-
|
|
3421
|
+
d.open(), this.setTransport(d);
|
|
3403
3422
|
}, n.prototype.setTransport = function(s) {
|
|
3404
3423
|
h("setting transport %s", s.name);
|
|
3405
|
-
var
|
|
3424
|
+
var d = this;
|
|
3406
3425
|
this.transport && (h("clearing existing transport %s", this.transport.name), this.transport.removeAllListeners()), this.transport = s, s.on("drain", function() {
|
|
3407
|
-
|
|
3426
|
+
d.onDrain();
|
|
3408
3427
|
}).on("packet", function(y) {
|
|
3409
|
-
|
|
3428
|
+
d.onPacket(y);
|
|
3410
3429
|
}).on("error", function(y) {
|
|
3411
|
-
|
|
3430
|
+
d.onError(y);
|
|
3412
3431
|
}).on("close", function() {
|
|
3413
|
-
|
|
3432
|
+
d.onClose("transport close");
|
|
3414
3433
|
});
|
|
3415
3434
|
}, n.prototype.probe = function(s) {
|
|
3416
|
-
function
|
|
3435
|
+
function d() {
|
|
3417
3436
|
if (C.onlyBinaryUpgrades) {
|
|
3418
3437
|
var E = !this.supportsBinary && C.transport.supportsBinary;
|
|
3419
3438
|
m = m || E;
|
|
@@ -3446,22 +3465,22 @@ function _o() {
|
|
|
3446
3465
|
function w() {
|
|
3447
3466
|
g("transport closed");
|
|
3448
3467
|
}
|
|
3449
|
-
function
|
|
3468
|
+
function B() {
|
|
3450
3469
|
g("socket closed");
|
|
3451
3470
|
}
|
|
3452
|
-
function
|
|
3471
|
+
function _(E) {
|
|
3453
3472
|
S && E.name != S.name && (h('"%s" works - aborting "%s"', E.name, S.name), y());
|
|
3454
3473
|
}
|
|
3455
3474
|
function b() {
|
|
3456
|
-
S.removeListener("open",
|
|
3475
|
+
S.removeListener("open", d), S.removeListener("error", g), S.removeListener("close", w), C.removeListener("close", B), C.removeListener("upgrading", _);
|
|
3457
3476
|
}
|
|
3458
3477
|
h('probing transport "%s"', s);
|
|
3459
3478
|
var S = this.createTransport(s, { probe: 1 }), m = !1, C = this;
|
|
3460
|
-
n.priorWebsocketSuccess = !1, S.once("open",
|
|
3479
|
+
n.priorWebsocketSuccess = !1, S.once("open", d), S.once("error", g), S.once("close", w), this.once("close", B), this.once("upgrading", _), S.open();
|
|
3461
3480
|
}, n.prototype.onOpen = function() {
|
|
3462
3481
|
if (h("socket open"), this.readyState = "open", n.priorWebsocketSuccess = this.transport.name == "websocket", this.emit("open"), this.flush(), this.readyState == "open" && this.upgrade && this.transport.pause) {
|
|
3463
3482
|
h("starting upgrade probes");
|
|
3464
|
-
for (var s = 0,
|
|
3483
|
+
for (var s = 0, d = this.upgrades.length; d > s; s++)
|
|
3465
3484
|
this.probe(this.upgrades[s]);
|
|
3466
3485
|
}
|
|
3467
3486
|
}, n.prototype.onPacket = function(s) {
|
|
@@ -3474,8 +3493,8 @@ function _o() {
|
|
|
3474
3493
|
this.setPing();
|
|
3475
3494
|
break;
|
|
3476
3495
|
case "error":
|
|
3477
|
-
var
|
|
3478
|
-
|
|
3496
|
+
var d = new Error("server error");
|
|
3497
|
+
d.code = s.data, this.emit("error", d);
|
|
3479
3498
|
break;
|
|
3480
3499
|
case "message":
|
|
3481
3500
|
this.emit("data", s.data), this.emit("message", s.data);
|
|
@@ -3486,10 +3505,10 @@ function _o() {
|
|
|
3486
3505
|
this.emit("handshake", s), this.id = s.sid, this.transport.query.sid = s.sid, this.upgrades = this.filterUpgrades(s.upgrades), this.pingInterval = s.pingInterval, this.pingTimeout = s.pingTimeout, this.onOpen(), this.readyState != "closed" && (this.setPing(), this.removeListener("heartbeat", this.onHeartbeat), this.on("heartbeat", this.onHeartbeat));
|
|
3487
3506
|
}, n.prototype.onHeartbeat = function(s) {
|
|
3488
3507
|
clearTimeout(this.pingTimeoutTimer);
|
|
3489
|
-
var
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
}, s ||
|
|
3508
|
+
var d = this;
|
|
3509
|
+
d.pingTimeoutTimer = setTimeout(function() {
|
|
3510
|
+
d.readyState != "closed" && d.onClose("ping timeout");
|
|
3511
|
+
}, s || d.pingInterval + d.pingTimeout);
|
|
3493
3512
|
}, n.prototype.setPing = function() {
|
|
3494
3513
|
var s = this;
|
|
3495
3514
|
clearTimeout(s.pingIntervalTimer), s.pingIntervalTimer = setTimeout(function() {
|
|
@@ -3503,22 +3522,22 @@ function _o() {
|
|
|
3503
3522
|
this.writeBuffer.splice(0, this.prevBufferLen), this.callbackBuffer.splice(0, this.prevBufferLen), this.prevBufferLen = 0, this.writeBuffer.length == 0 ? this.emit("drain") : this.flush();
|
|
3504
3523
|
}, n.prototype.flush = function() {
|
|
3505
3524
|
this.readyState != "closed" && this.transport.writable && !this.upgrading && this.writeBuffer.length && (h("flushing %d packets in socket", this.writeBuffer.length), this.transport.send(this.writeBuffer), this.prevBufferLen = this.writeBuffer.length, this.emit("flush"));
|
|
3506
|
-
}, n.prototype.write = n.prototype.send = function(s,
|
|
3507
|
-
return this.sendPacket("message", s,
|
|
3508
|
-
}, n.prototype.sendPacket = function(s,
|
|
3525
|
+
}, n.prototype.write = n.prototype.send = function(s, d) {
|
|
3526
|
+
return this.sendPacket("message", s, d), this;
|
|
3527
|
+
}, n.prototype.sendPacket = function(s, d, y) {
|
|
3509
3528
|
if (this.readyState != "closing" && this.readyState != "closed") {
|
|
3510
|
-
var g = { type: s, data:
|
|
3529
|
+
var g = { type: s, data: d };
|
|
3511
3530
|
this.emit("packetCreate", g), this.writeBuffer.push(g), this.callbackBuffer.push(y), this.flush();
|
|
3512
3531
|
}
|
|
3513
3532
|
}, n.prototype.close = function() {
|
|
3514
3533
|
function s() {
|
|
3515
3534
|
g.onClose("forced close"), h("socket closing - telling transport to close"), g.transport.close();
|
|
3516
3535
|
}
|
|
3517
|
-
function
|
|
3518
|
-
g.removeListener("upgrade",
|
|
3536
|
+
function d() {
|
|
3537
|
+
g.removeListener("upgrade", d), g.removeListener("upgradeError", d), s();
|
|
3519
3538
|
}
|
|
3520
3539
|
function y() {
|
|
3521
|
-
g.once("upgrade",
|
|
3540
|
+
g.once("upgrade", d), g.once("upgradeError", d);
|
|
3522
3541
|
}
|
|
3523
3542
|
if (this.readyState == "opening" || this.readyState == "open") {
|
|
3524
3543
|
this.readyState = "closing";
|
|
@@ -3530,18 +3549,18 @@ function _o() {
|
|
|
3530
3549
|
return this;
|
|
3531
3550
|
}, n.prototype.onError = function(s) {
|
|
3532
3551
|
h("socket error %j", s), n.priorWebsocketSuccess = !1, this.emit("error", s), this.onClose("transport error", s);
|
|
3533
|
-
}, n.prototype.onClose = function(s,
|
|
3552
|
+
}, n.prototype.onClose = function(s, d) {
|
|
3534
3553
|
if (this.readyState == "opening" || this.readyState == "open" || this.readyState == "closing") {
|
|
3535
3554
|
h('socket close with reason: "%s"', s);
|
|
3536
3555
|
var y = this;
|
|
3537
3556
|
clearTimeout(this.pingIntervalTimer), clearTimeout(this.pingTimeoutTimer), setTimeout(function() {
|
|
3538
3557
|
y.writeBuffer = [], y.callbackBuffer = [], y.prevBufferLen = 0;
|
|
3539
|
-
}, 0), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(), this.readyState = "closed", this.id = null, this.emit("close", s,
|
|
3558
|
+
}, 0), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(), this.readyState = "closed", this.id = null, this.emit("close", s, d);
|
|
3540
3559
|
}
|
|
3541
3560
|
}, n.prototype.filterUpgrades = function(s) {
|
|
3542
|
-
for (var
|
|
3543
|
-
~
|
|
3544
|
-
return
|
|
3561
|
+
for (var d = [], y = 0, g = s.length; g > y; y++)
|
|
3562
|
+
~f(this.transports, s[y]) && d.push(s[y]);
|
|
3563
|
+
return d;
|
|
3545
3564
|
};
|
|
3546
3565
|
}).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
3547
3566
|
}, {
|
|
@@ -3587,8 +3606,8 @@ function _o() {
|
|
|
3587
3606
|
function o(c) {
|
|
3588
3607
|
var l, p = !1, a = !1, s = c.jsonp !== !1;
|
|
3589
3608
|
if (n.location) {
|
|
3590
|
-
var
|
|
3591
|
-
y || (y =
|
|
3609
|
+
var d = location.protocol == "https:", y = location.port;
|
|
3610
|
+
y || (y = d ? 443 : 80), p = c.hostname != location.hostname || y != c.port, a = c.secure != d;
|
|
3592
3611
|
}
|
|
3593
3612
|
if (c.xdomain = p, c.xscheme = a, l = new i(c), "open" in l && !c.forceJSONP)
|
|
3594
3613
|
return new u(c);
|
|
@@ -3596,8 +3615,8 @@ function _o() {
|
|
|
3596
3615
|
throw new Error("JSONP disabled");
|
|
3597
3616
|
return new h(c);
|
|
3598
3617
|
}
|
|
3599
|
-
var i = t("xmlhttprequest"), u = t("./polling-xhr"), h = t("./polling-jsonp"),
|
|
3600
|
-
r.polling = o, r.websocket =
|
|
3618
|
+
var i = t("xmlhttprequest"), u = t("./polling-xhr"), h = t("./polling-jsonp"), f = t("./websocket");
|
|
3619
|
+
r.polling = o, r.websocket = f;
|
|
3601
3620
|
}).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
3602
3621
|
}, { "./polling-jsonp": 16, "./polling-xhr": 17, "./websocket": 19, xmlhttprequest: 20 }],
|
|
3603
3622
|
16: [function(t, e) {
|
|
@@ -3615,53 +3634,53 @@ function _o() {
|
|
|
3615
3634
|
}
|
|
3616
3635
|
var i = t("./polling"), u = t("component-inherit");
|
|
3617
3636
|
e.exports = o;
|
|
3618
|
-
var h,
|
|
3637
|
+
var h, f = /\n/g, c = /\\n/g;
|
|
3619
3638
|
u(o, i), o.prototype.supportsBinary = !1, o.prototype.doClose = function() {
|
|
3620
3639
|
this.script && (this.script.parentNode.removeChild(this.script), this.script = null), this.form && (this.form.parentNode.removeChild(this.form), this.form = null, this.iframe = null), i.prototype.doClose.call(this);
|
|
3621
3640
|
}, o.prototype.doPoll = function() {
|
|
3622
3641
|
var l = this, p = document.createElement("script");
|
|
3623
|
-
this.script && (this.script.parentNode.removeChild(this.script), this.script = null), p.async = !0, p.src = this.uri(), p.onerror = function(
|
|
3624
|
-
l.onError("jsonp poll error",
|
|
3642
|
+
this.script && (this.script.parentNode.removeChild(this.script), this.script = null), p.async = !0, p.src = this.uri(), p.onerror = function(d) {
|
|
3643
|
+
l.onError("jsonp poll error", d);
|
|
3625
3644
|
};
|
|
3626
3645
|
var a = document.getElementsByTagName("script")[0];
|
|
3627
3646
|
a.parentNode.insertBefore(p, a), this.script = p;
|
|
3628
3647
|
var s = typeof navigator < "u" && /gecko/i.test(navigator.userAgent);
|
|
3629
3648
|
s && setTimeout(function() {
|
|
3630
|
-
var
|
|
3631
|
-
document.body.appendChild(
|
|
3649
|
+
var d = document.createElement("iframe");
|
|
3650
|
+
document.body.appendChild(d), document.body.removeChild(d);
|
|
3632
3651
|
}, 100);
|
|
3633
3652
|
}, o.prototype.doWrite = function(l, p) {
|
|
3634
3653
|
function a() {
|
|
3635
3654
|
s(), p();
|
|
3636
3655
|
}
|
|
3637
3656
|
function s() {
|
|
3638
|
-
if (
|
|
3657
|
+
if (d.iframe)
|
|
3639
3658
|
try {
|
|
3640
|
-
|
|
3659
|
+
d.form.removeChild(d.iframe);
|
|
3641
3660
|
} catch (b) {
|
|
3642
|
-
|
|
3661
|
+
d.onError("jsonp polling iframe removal error", b);
|
|
3643
3662
|
}
|
|
3644
3663
|
try {
|
|
3645
|
-
var
|
|
3646
|
-
y = document.createElement(
|
|
3664
|
+
var _ = '<iframe src="javascript:0" name="' + d.iframeId + '">';
|
|
3665
|
+
y = document.createElement(_);
|
|
3647
3666
|
} catch {
|
|
3648
|
-
y = document.createElement("iframe"), y.name =
|
|
3667
|
+
y = document.createElement("iframe"), y.name = d.iframeId, y.src = "javascript:0";
|
|
3649
3668
|
}
|
|
3650
|
-
y.id =
|
|
3669
|
+
y.id = d.iframeId, d.form.appendChild(y), d.iframe = y;
|
|
3651
3670
|
}
|
|
3652
|
-
var
|
|
3671
|
+
var d = this;
|
|
3653
3672
|
if (!this.form) {
|
|
3654
|
-
var y, g = document.createElement("form"), w = document.createElement("textarea"),
|
|
3655
|
-
g.className = "socketio", g.style.position = "absolute", g.style.top = "-1000px", g.style.left = "-1000px", g.target =
|
|
3673
|
+
var y, g = document.createElement("form"), w = document.createElement("textarea"), B = this.iframeId = "eio_iframe_" + this.index;
|
|
3674
|
+
g.className = "socketio", g.style.position = "absolute", g.style.top = "-1000px", g.style.left = "-1000px", g.target = B, g.method = "POST", g.setAttribute("accept-charset", "utf-8"), w.name = "d", g.appendChild(w), document.body.appendChild(g), this.form = g, this.area = w;
|
|
3656
3675
|
}
|
|
3657
3676
|
this.form.action = this.uri(), s(), l = l.replace(c, `\\
|
|
3658
|
-
`), this.area.value = l.replace(
|
|
3677
|
+
`), this.area.value = l.replace(f, "\\n");
|
|
3659
3678
|
try {
|
|
3660
3679
|
this.form.submit();
|
|
3661
3680
|
} catch {
|
|
3662
3681
|
}
|
|
3663
3682
|
this.iframe.attachEvent ? this.iframe.onreadystatechange = function() {
|
|
3664
|
-
|
|
3683
|
+
d.iframe.readyState == "complete" && a();
|
|
3665
3684
|
} : this.iframe.onload = a;
|
|
3666
3685
|
};
|
|
3667
3686
|
}).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -3671,9 +3690,9 @@ function _o() {
|
|
|
3671
3690
|
function n() {
|
|
3672
3691
|
}
|
|
3673
3692
|
function o(a) {
|
|
3674
|
-
if (
|
|
3675
|
-
var s = location.protocol == "https:",
|
|
3676
|
-
|
|
3693
|
+
if (f.call(this, a), r.location) {
|
|
3694
|
+
var s = location.protocol == "https:", d = location.port;
|
|
3695
|
+
d || (d = s ? 443 : 80), this.xd = a.hostname != r.location.hostname || d != a.port, this.xs = a.secure != s;
|
|
3677
3696
|
}
|
|
3678
3697
|
}
|
|
3679
3698
|
function i(a) {
|
|
@@ -3683,26 +3702,26 @@ function _o() {
|
|
|
3683
3702
|
for (var a in i.requests)
|
|
3684
3703
|
i.requests.hasOwnProperty(a) && i.requests[a].abort();
|
|
3685
3704
|
}
|
|
3686
|
-
var h = t("xmlhttprequest"),
|
|
3687
|
-
e.exports = o, e.exports.Request = i, l(o,
|
|
3705
|
+
var h = t("xmlhttprequest"), f = t("./polling"), c = t("component-emitter"), l = t("component-inherit"), p = t("debug")("engine.io-client:polling-xhr");
|
|
3706
|
+
e.exports = o, e.exports.Request = i, l(o, f), o.prototype.supportsBinary = !0, o.prototype.request = function(a) {
|
|
3688
3707
|
return a = a || {}, a.uri = this.uri(), a.xd = this.xd, a.xs = this.xs, a.agent = this.agent || !1, a.supportsBinary = this.supportsBinary, a.enablesXDR = this.enablesXDR, a.pfx = this.pfx, a.key = this.key, a.passphrase = this.passphrase, a.cert = this.cert, a.ca = this.ca, a.ciphers = this.ciphers, a.rejectUnauthorized = this.rejectUnauthorized, new i(a);
|
|
3689
3708
|
}, o.prototype.doWrite = function(a, s) {
|
|
3690
|
-
var
|
|
3709
|
+
var d = typeof a != "string" && a !== void 0, y = this.request({ method: "POST", data: a, isBinary: d }), g = this;
|
|
3691
3710
|
y.on("success", s), y.on("error", function(w) {
|
|
3692
3711
|
g.onError("xhr post error", w);
|
|
3693
3712
|
}), this.sendXhr = y;
|
|
3694
3713
|
}, o.prototype.doPoll = function() {
|
|
3695
3714
|
p("xhr poll");
|
|
3696
3715
|
var a = this.request(), s = this;
|
|
3697
|
-
a.on("data", function(
|
|
3698
|
-
s.onData(
|
|
3699
|
-
}), a.on("error", function(
|
|
3700
|
-
s.onError("xhr poll error",
|
|
3716
|
+
a.on("data", function(d) {
|
|
3717
|
+
s.onData(d);
|
|
3718
|
+
}), a.on("error", function(d) {
|
|
3719
|
+
s.onError("xhr poll error", d);
|
|
3701
3720
|
}), this.pollXhr = a;
|
|
3702
3721
|
}, c(i.prototype), i.prototype.create = function() {
|
|
3703
3722
|
var a = { agent: this.agent, xdomain: this.xd, xscheme: this.xs, enablesXDR: this.enablesXDR };
|
|
3704
3723
|
a.pfx = this.pfx, a.key = this.key, a.passphrase = this.passphrase, a.cert = this.cert, a.ca = this.ca, a.ciphers = this.ciphers, a.rejectUnauthorized = this.rejectUnauthorized;
|
|
3705
|
-
var s = this.xhr = new h(a),
|
|
3724
|
+
var s = this.xhr = new h(a), d = this;
|
|
3706
3725
|
try {
|
|
3707
3726
|
if (p("xhr open %s: %s", this.method, this.uri), s.open(this.method, this.uri, this.async), this.supportsBinary && (s.responseType = "arraybuffer"), this.method == "POST")
|
|
3708
3727
|
try {
|
|
@@ -3710,17 +3729,17 @@ function _o() {
|
|
|
3710
3729
|
} catch {
|
|
3711
3730
|
}
|
|
3712
3731
|
"withCredentials" in s && (s.withCredentials = !0), this.hasXDR() ? (s.onload = function() {
|
|
3713
|
-
|
|
3732
|
+
d.onLoad();
|
|
3714
3733
|
}, s.onerror = function() {
|
|
3715
|
-
|
|
3734
|
+
d.onError(s.responseText);
|
|
3716
3735
|
}) : s.onreadystatechange = function() {
|
|
3717
|
-
s.readyState == 4 && (s.status == 200 || s.status == 1223 ?
|
|
3718
|
-
|
|
3736
|
+
s.readyState == 4 && (s.status == 200 || s.status == 1223 ? d.onLoad() : setTimeout(function() {
|
|
3737
|
+
d.onError(s.status);
|
|
3719
3738
|
}, 0));
|
|
3720
3739
|
}, p("xhr data %s", this.data), s.send(this.data);
|
|
3721
3740
|
} catch (y) {
|
|
3722
3741
|
return void setTimeout(function() {
|
|
3723
|
-
|
|
3742
|
+
d.onError(y);
|
|
3724
3743
|
}, 0);
|
|
3725
3744
|
}
|
|
3726
3745
|
r.document && (this.index = i.requestsCount++, i.requests[this.index] = this);
|
|
@@ -3748,8 +3767,8 @@ function _o() {
|
|
|
3748
3767
|
} catch {
|
|
3749
3768
|
}
|
|
3750
3769
|
a = s === "application/octet-stream" ? this.xhr.response : this.supportsBinary ? "ok" : this.xhr.responseText;
|
|
3751
|
-
} catch (
|
|
3752
|
-
this.onError(
|
|
3770
|
+
} catch (d) {
|
|
3771
|
+
this.onError(d);
|
|
3753
3772
|
}
|
|
3754
3773
|
a != null && this.onData(a);
|
|
3755
3774
|
}, i.prototype.hasXDR = function() {
|
|
@@ -3762,11 +3781,11 @@ function _o() {
|
|
|
3762
3781
|
18: [function(t, e) {
|
|
3763
3782
|
function r(c) {
|
|
3764
3783
|
var l = c && c.forceBase64;
|
|
3765
|
-
(!
|
|
3784
|
+
(!f || l) && (this.supportsBinary = !1), n.call(this, c);
|
|
3766
3785
|
}
|
|
3767
3786
|
var n = t("../transport"), o = t("parseqs"), i = t("engine.io-parser"), u = t("component-inherit"), h = t("debug")("engine.io-client:polling");
|
|
3768
3787
|
e.exports = r;
|
|
3769
|
-
var
|
|
3788
|
+
var f = function() {
|
|
3770
3789
|
var c = t("xmlhttprequest"), l = new c({ xdomain: !1 });
|
|
3771
3790
|
return l.responseType != null;
|
|
3772
3791
|
}();
|
|
@@ -3827,11 +3846,11 @@ function _o() {
|
|
|
3827
3846
|
var l = c && c.forceBase64;
|
|
3828
3847
|
l && (this.supportsBinary = !1), n.call(this, c);
|
|
3829
3848
|
}
|
|
3830
|
-
var n = t("../transport"), o = t("engine.io-parser"), i = t("parseqs"), u = t("component-inherit"), h = t("debug")("engine.io-client:websocket"),
|
|
3849
|
+
var n = t("../transport"), o = t("engine.io-parser"), i = t("parseqs"), u = t("component-inherit"), h = t("debug")("engine.io-client:websocket"), f = t("ws");
|
|
3831
3850
|
e.exports = r, u(r, n), r.prototype.name = "websocket", r.prototype.supportsBinary = !0, r.prototype.doOpen = function() {
|
|
3832
3851
|
if (this.check()) {
|
|
3833
3852
|
var c = this.uri(), l = void 0, p = { agent: this.agent };
|
|
3834
|
-
p.pfx = this.pfx, p.key = this.key, p.passphrase = this.passphrase, p.cert = this.cert, p.ca = this.ca, p.ciphers = this.ciphers, p.rejectUnauthorized = this.rejectUnauthorized, this.ws = new
|
|
3853
|
+
p.pfx = this.pfx, p.key = this.key, p.passphrase = this.passphrase, p.cert = this.cert, p.ca = this.ca, p.ciphers = this.ciphers, p.rejectUnauthorized = this.rejectUnauthorized, this.ws = new f(c, l, p), this.ws.binaryType === void 0 && (this.supportsBinary = !1), this.ws.binaryType = "arraybuffer", this.addEventListeners();
|
|
3835
3854
|
}
|
|
3836
3855
|
}, r.prototype.addEventListeners = function() {
|
|
3837
3856
|
var c = this;
|
|
@@ -3856,9 +3875,9 @@ function _o() {
|
|
|
3856
3875
|
var p = this;
|
|
3857
3876
|
this.writable = !1;
|
|
3858
3877
|
for (var a = 0, s = c.length; s > a; a++)
|
|
3859
|
-
o.encodePacket(c[a], this.supportsBinary, function(
|
|
3878
|
+
o.encodePacket(c[a], this.supportsBinary, function(d) {
|
|
3860
3879
|
try {
|
|
3861
|
-
p.ws.send(
|
|
3880
|
+
p.ws.send(d);
|
|
3862
3881
|
} catch {
|
|
3863
3882
|
h("websocket closed before onclose event");
|
|
3864
3883
|
}
|
|
@@ -3872,7 +3891,7 @@ function _o() {
|
|
|
3872
3891
|
var c = this.query || {}, l = this.secure ? "wss" : "ws", p = "";
|
|
3873
3892
|
return this.port && (l == "wss" && this.port != 443 || l == "ws" && this.port != 80) && (p = ":" + this.port), this.timestampRequests && (c[this.timestampParam] = +/* @__PURE__ */ new Date()), this.supportsBinary || (c.b64 = 1), c = i.encode(c), c.length && (c = "?" + c), l + "://" + this.hostname + p + this.path + c;
|
|
3874
3893
|
}, r.prototype.check = function() {
|
|
3875
|
-
return !(!
|
|
3894
|
+
return !(!f || "__initialize" in f && this.name === r.prototype.name);
|
|
3876
3895
|
};
|
|
3877
3896
|
}, { "../transport": 14, "component-inherit": 21, debug: 22, "engine.io-parser": 25, parseqs: 33, ws: 35 }],
|
|
3878
3897
|
20: [function(t, e) {
|
|
@@ -3908,35 +3927,35 @@ function _o() {
|
|
|
3908
3927
|
return "WebkitAppearance" in document.documentElement.style || window.console && (console.firebug || console.exception && console.table) || navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31;
|
|
3909
3928
|
}
|
|
3910
3929
|
function o() {
|
|
3911
|
-
var
|
|
3912
|
-
if (
|
|
3913
|
-
return
|
|
3930
|
+
var f = arguments, c = this.useColors;
|
|
3931
|
+
if (f[0] = (c ? "%c" : "") + this.namespace + (c ? " %c" : " ") + f[0] + (c ? "%c " : " ") + "+" + r.humanize(this.diff), !c)
|
|
3932
|
+
return f;
|
|
3914
3933
|
var l = "color: " + this.color;
|
|
3915
|
-
|
|
3934
|
+
f = [f[0], l, "color: inherit"].concat(Array.prototype.slice.call(f, 1));
|
|
3916
3935
|
var p = 0, a = 0;
|
|
3917
|
-
return
|
|
3936
|
+
return f[0].replace(/%[a-z%]/g, function(s) {
|
|
3918
3937
|
s !== "%%" && (p++, s === "%c" && (a = p));
|
|
3919
|
-
}),
|
|
3938
|
+
}), f.splice(a, 0, l), f;
|
|
3920
3939
|
}
|
|
3921
3940
|
function i() {
|
|
3922
3941
|
return typeof console == "object" && typeof console.log == "function" && Function.prototype.apply.call(console.log, console, arguments);
|
|
3923
3942
|
}
|
|
3924
|
-
function u(
|
|
3943
|
+
function u(f) {
|
|
3925
3944
|
try {
|
|
3926
|
-
|
|
3945
|
+
f == null ? localStorage.removeItem("debug") : localStorage.debug = f;
|
|
3927
3946
|
} catch {
|
|
3928
3947
|
}
|
|
3929
3948
|
}
|
|
3930
3949
|
function h() {
|
|
3931
|
-
var
|
|
3950
|
+
var f;
|
|
3932
3951
|
try {
|
|
3933
|
-
|
|
3952
|
+
f = localStorage.debug;
|
|
3934
3953
|
} catch {
|
|
3935
3954
|
}
|
|
3936
|
-
return
|
|
3955
|
+
return f;
|
|
3937
3956
|
}
|
|
3938
|
-
r = e.exports = t("./debug"), r.log = i, r.formatArgs = o, r.save = u, r.load = h, r.useColors = n, r.colors = ["lightseagreen", "forestgreen", "goldenrod", "dodgerblue", "darkorchid", "crimson"], r.formatters.j = function(
|
|
3939
|
-
return JSON.stringify(
|
|
3957
|
+
r = e.exports = t("./debug"), r.log = i, r.formatArgs = o, r.save = u, r.load = h, r.useColors = n, r.colors = ["lightseagreen", "forestgreen", "goldenrod", "dodgerblue", "darkorchid", "crimson"], r.formatters.j = function(f) {
|
|
3958
|
+
return JSON.stringify(f);
|
|
3940
3959
|
}, r.enable(h());
|
|
3941
3960
|
}, { "./debug": 23 }],
|
|
3942
3961
|
23: [function(t, e, r) {
|
|
@@ -3949,31 +3968,31 @@ function _o() {
|
|
|
3949
3968
|
function s() {
|
|
3950
3969
|
var y = s, g = +/* @__PURE__ */ new Date(), w = g - (c || g);
|
|
3951
3970
|
y.diff = w, y.prev = c, y.curr = g, c = g, y.useColors == null && (y.useColors = r.useColors()), y.color == null && y.useColors && (y.color = n());
|
|
3952
|
-
var
|
|
3953
|
-
|
|
3954
|
-
var
|
|
3955
|
-
|
|
3971
|
+
var B = Array.prototype.slice.call(arguments);
|
|
3972
|
+
B[0] = r.coerce(B[0]), typeof B[0] != "string" && (B = ["%o"].concat(B));
|
|
3973
|
+
var _ = 0;
|
|
3974
|
+
B[0] = B[0].replace(/%([a-z%])/g, function(S, m) {
|
|
3956
3975
|
if (S === "%%")
|
|
3957
3976
|
return S;
|
|
3958
|
-
|
|
3977
|
+
_++;
|
|
3959
3978
|
var C = r.formatters[m];
|
|
3960
3979
|
if (typeof C == "function") {
|
|
3961
|
-
var E = _
|
|
3962
|
-
S = C.call(y, E),
|
|
3980
|
+
var E = B[_];
|
|
3981
|
+
S = C.call(y, E), B.splice(_, 1), _--;
|
|
3963
3982
|
}
|
|
3964
3983
|
return S;
|
|
3965
|
-
}), typeof r.formatArgs == "function" && (
|
|
3984
|
+
}), typeof r.formatArgs == "function" && (B = r.formatArgs.apply(y, B));
|
|
3966
3985
|
var b = s.log || r.log || console.log.bind(console);
|
|
3967
|
-
b.apply(y,
|
|
3986
|
+
b.apply(y, B);
|
|
3968
3987
|
}
|
|
3969
3988
|
a.enabled = !1, s.enabled = !0;
|
|
3970
|
-
var
|
|
3971
|
-
return
|
|
3989
|
+
var d = r.enabled(p) ? s : a;
|
|
3990
|
+
return d.namespace = p, d;
|
|
3972
3991
|
}
|
|
3973
3992
|
function i(p) {
|
|
3974
3993
|
r.save(p);
|
|
3975
|
-
for (var a = (p || "").split(/[\s,]+/), s = a.length,
|
|
3976
|
-
a[
|
|
3994
|
+
for (var a = (p || "").split(/[\s,]+/), s = a.length, d = 0; s > d; d++)
|
|
3995
|
+
a[d] && (p = a[d].replace(/\*/g, ".*?"), p[0] === "-" ? r.skips.push(new RegExp("^" + p.substr(1) + "$")) : r.names.push(new RegExp("^" + p + "$")));
|
|
3977
3996
|
}
|
|
3978
3997
|
function u() {
|
|
3979
3998
|
r.enable("");
|
|
@@ -3988,18 +4007,18 @@ function _o() {
|
|
|
3988
4007
|
return !0;
|
|
3989
4008
|
return !1;
|
|
3990
4009
|
}
|
|
3991
|
-
function
|
|
4010
|
+
function f(p) {
|
|
3992
4011
|
return p instanceof Error ? p.stack || p.message : p;
|
|
3993
4012
|
}
|
|
3994
|
-
r = e.exports = o, r.coerce =
|
|
4013
|
+
r = e.exports = o, r.coerce = f, r.disable = u, r.enable = i, r.enabled = h, r.humanize = t("ms"), r.names = [], r.skips = [], r.formatters = {};
|
|
3995
4014
|
var c, l = 0;
|
|
3996
4015
|
}, { ms: 24 }],
|
|
3997
4016
|
24: [function(t, e) {
|
|
3998
4017
|
function r(p) {
|
|
3999
4018
|
var a = /^((?:\d+)?\.?\d+) *(ms|seconds?|s|minutes?|m|hours?|h|days?|d|years?|y)?$/i.exec(p);
|
|
4000
4019
|
if (a) {
|
|
4001
|
-
var s = parseFloat(a[1]),
|
|
4002
|
-
switch (
|
|
4020
|
+
var s = parseFloat(a[1]), d = (a[2] || "ms").toLowerCase();
|
|
4021
|
+
switch (d) {
|
|
4003
4022
|
case "years":
|
|
4004
4023
|
case "year":
|
|
4005
4024
|
case "y":
|
|
@@ -4011,7 +4030,7 @@ function _o() {
|
|
|
4011
4030
|
case "hours":
|
|
4012
4031
|
case "hour":
|
|
4013
4032
|
case "h":
|
|
4014
|
-
return s *
|
|
4033
|
+
return s * f;
|
|
4015
4034
|
case "minutes":
|
|
4016
4035
|
case "minute":
|
|
4017
4036
|
case "m":
|
|
@@ -4026,15 +4045,15 @@ function _o() {
|
|
|
4026
4045
|
}
|
|
4027
4046
|
}
|
|
4028
4047
|
function n(p) {
|
|
4029
|
-
return p >= c ? Math.round(p / c) + "d" : p >=
|
|
4048
|
+
return p >= c ? Math.round(p / c) + "d" : p >= f ? Math.round(p / f) + "h" : p >= h ? Math.round(p / h) + "m" : p >= u ? Math.round(p / u) + "s" : p + "ms";
|
|
4030
4049
|
}
|
|
4031
4050
|
function o(p) {
|
|
4032
|
-
return i(p, c, "day") || i(p,
|
|
4051
|
+
return i(p, c, "day") || i(p, f, "hour") || i(p, h, "minute") || i(p, u, "second") || p + " ms";
|
|
4033
4052
|
}
|
|
4034
4053
|
function i(p, a, s) {
|
|
4035
4054
|
return a > p ? void 0 : 1.5 * a > p ? Math.floor(p / a) + " " + s : Math.ceil(p / a) + " " + s + "s";
|
|
4036
4055
|
}
|
|
4037
|
-
var u = 1e3, h = 60 * u,
|
|
4056
|
+
var u = 1e3, h = 60 * u, f = 60 * h, c = 24 * f, l = 365.25 * c;
|
|
4038
4057
|
e.exports = function(p, a) {
|
|
4039
4058
|
return a = a || {}, typeof p == "string" ? r(p) : a.long ? o(p) : n(p);
|
|
4040
4059
|
};
|
|
@@ -4049,9 +4068,9 @@ function _o() {
|
|
|
4049
4068
|
if (!C)
|
|
4050
4069
|
return r.encodeBase64Packet(m, E);
|
|
4051
4070
|
var v = m.data, k = new Uint8Array(v), T = new Uint8Array(1 + v.byteLength);
|
|
4052
|
-
T[0] =
|
|
4053
|
-
for (var
|
|
4054
|
-
T[
|
|
4071
|
+
T[0] = B[m.type];
|
|
4072
|
+
for (var O = 0; O < k.length; O++)
|
|
4073
|
+
T[O + 1] = k[O];
|
|
4055
4074
|
return E(T.buffer);
|
|
4056
4075
|
}
|
|
4057
4076
|
function u(m, C, E) {
|
|
@@ -4068,21 +4087,21 @@ function _o() {
|
|
|
4068
4087
|
if (w)
|
|
4069
4088
|
return u(m, C, E);
|
|
4070
4089
|
var v = new Uint8Array(1);
|
|
4071
|
-
v[0] =
|
|
4090
|
+
v[0] = B[m.type];
|
|
4072
4091
|
var k = new S([v.buffer, m.data]);
|
|
4073
4092
|
return E(k);
|
|
4074
4093
|
}
|
|
4075
|
-
function
|
|
4076
|
-
for (var v = new Array(m.length), k = s(m.length, E), T = function(
|
|
4094
|
+
function f(m, C, E) {
|
|
4095
|
+
for (var v = new Array(m.length), k = s(m.length, E), T = function(x, A, q) {
|
|
4077
4096
|
C(A, function(j, $) {
|
|
4078
|
-
v[
|
|
4097
|
+
v[x] = $, q(j, v);
|
|
4079
4098
|
});
|
|
4080
|
-
},
|
|
4081
|
-
T(
|
|
4099
|
+
}, O = 0; O < m.length; O++)
|
|
4100
|
+
T(O, m[O], k);
|
|
4082
4101
|
}
|
|
4083
|
-
var c = t("./keys"), l = t("has-binary"), p = t("arraybuffer.slice"), a = t("base64-arraybuffer"), s = t("after"),
|
|
4102
|
+
var c = t("./keys"), l = t("has-binary"), p = t("arraybuffer.slice"), a = t("base64-arraybuffer"), s = t("after"), d = t("utf8"), y = navigator.userAgent.match(/Android/i), g = /PhantomJS/i.test(navigator.userAgent), w = y || g;
|
|
4084
4103
|
r.protocol = 3;
|
|
4085
|
-
var
|
|
4104
|
+
var B = r.packets = { open: 0, close: 1, ping: 2, pong: 3, message: 4, upgrade: 5, noop: 6 }, _ = c(B), b = { type: "error", data: "parser error" }, S = t("blob");
|
|
4086
4105
|
r.encodePacket = function(m, C, E, v) {
|
|
4087
4106
|
typeof C == "function" && (v = C, C = !1), typeof E == "function" && (v = E, E = null);
|
|
4088
4107
|
var k = m.data === void 0 ? void 0 : m.data.buffer || m.data;
|
|
@@ -4092,8 +4111,8 @@ function _o() {
|
|
|
4092
4111
|
return h(m, C, v);
|
|
4093
4112
|
if (k && k.base64)
|
|
4094
4113
|
return o(m, v);
|
|
4095
|
-
var T =
|
|
4096
|
-
return m.data !== void 0 && (T += E ?
|
|
4114
|
+
var T = B[m.type];
|
|
4115
|
+
return m.data !== void 0 && (T += E ? d.encode(String(m.data)) : String(m.data)), v("" + T);
|
|
4097
4116
|
}, r.encodeBase64Packet = function(m, C) {
|
|
4098
4117
|
var E = "b" + r.packets[m.type];
|
|
4099
4118
|
if (S && m.data instanceof S) {
|
|
@@ -4107,9 +4126,9 @@ function _o() {
|
|
|
4107
4126
|
try {
|
|
4108
4127
|
k = String.fromCharCode.apply(null, new Uint8Array(m.data));
|
|
4109
4128
|
} catch {
|
|
4110
|
-
for (var T = new Uint8Array(m.data),
|
|
4111
|
-
x
|
|
4112
|
-
k = String.fromCharCode.apply(null,
|
|
4129
|
+
for (var T = new Uint8Array(m.data), O = new Array(T.length), x = 0; x < T.length; x++)
|
|
4130
|
+
O[x] = T[x];
|
|
4131
|
+
k = String.fromCharCode.apply(null, O);
|
|
4113
4132
|
}
|
|
4114
4133
|
return E += n.btoa(k), C(E);
|
|
4115
4134
|
}, r.decodePacket = function(m, C, E) {
|
|
@@ -4118,37 +4137,37 @@ function _o() {
|
|
|
4118
4137
|
return r.decodeBase64Packet(m.substr(1), C);
|
|
4119
4138
|
if (E)
|
|
4120
4139
|
try {
|
|
4121
|
-
m =
|
|
4140
|
+
m = d.decode(m);
|
|
4122
4141
|
} catch {
|
|
4123
4142
|
return b;
|
|
4124
4143
|
}
|
|
4125
4144
|
var k = m.charAt(0);
|
|
4126
|
-
return Number(k) == k &&
|
|
4127
|
-
type:
|
|
4145
|
+
return Number(k) == k && _[k] ? m.length > 1 ? {
|
|
4146
|
+
type: _[k],
|
|
4128
4147
|
data: m.substring(1)
|
|
4129
|
-
} : { type:
|
|
4148
|
+
} : { type: _[k] } : b;
|
|
4130
4149
|
}
|
|
4131
4150
|
var v = new Uint8Array(m), k = v[0], T = p(m, 1);
|
|
4132
|
-
return S && C === "blob" && (T = new S([T])), { type:
|
|
4151
|
+
return S && C === "blob" && (T = new S([T])), { type: _[k], data: T };
|
|
4133
4152
|
}, r.decodeBase64Packet = function(m, C) {
|
|
4134
|
-
var E =
|
|
4153
|
+
var E = _[m.charAt(0)];
|
|
4135
4154
|
if (!n.ArrayBuffer)
|
|
4136
4155
|
return { type: E, data: { base64: !0, data: m.substr(1) } };
|
|
4137
4156
|
var v = a.decode(m.substr(1));
|
|
4138
4157
|
return C === "blob" && S && (v = new S([v])), { type: E, data: v };
|
|
4139
4158
|
}, r.encodePayload = function(m, C, E) {
|
|
4140
|
-
function v(
|
|
4141
|
-
return
|
|
4159
|
+
function v(O) {
|
|
4160
|
+
return O.length + ":" + O;
|
|
4142
4161
|
}
|
|
4143
|
-
function k(
|
|
4144
|
-
r.encodePacket(
|
|
4145
|
-
|
|
4162
|
+
function k(O, x) {
|
|
4163
|
+
r.encodePacket(O, T ? C : !1, !0, function(A) {
|
|
4164
|
+
x(null, v(A));
|
|
4146
4165
|
});
|
|
4147
4166
|
}
|
|
4148
4167
|
typeof C == "function" && (E = C, C = null);
|
|
4149
4168
|
var T = l(m);
|
|
4150
|
-
return C && T ? S && !w ? r.encodePayloadAsBlob(m, E) : r.encodePayloadAsArrayBuffer(m, E) : m.length ? void
|
|
4151
|
-
return E(
|
|
4169
|
+
return C && T ? S && !w ? r.encodePayloadAsBlob(m, E) : r.encodePayloadAsArrayBuffer(m, E) : m.length ? void f(m, k, function(O, x) {
|
|
4170
|
+
return E(x.join(""));
|
|
4152
4171
|
}) : E("0:");
|
|
4153
4172
|
}, r.decodePayload = function(m, C, E) {
|
|
4154
4173
|
if (typeof m != "string")
|
|
@@ -4157,35 +4176,35 @@ function _o() {
|
|
|
4157
4176
|
var v;
|
|
4158
4177
|
if (m == "")
|
|
4159
4178
|
return E(b, 0, 1);
|
|
4160
|
-
for (var k, T,
|
|
4161
|
-
var q = m.charAt(
|
|
4179
|
+
for (var k, T, O = "", x = 0, A = m.length; A > x; x++) {
|
|
4180
|
+
var q = m.charAt(x);
|
|
4162
4181
|
if (q != ":")
|
|
4163
|
-
|
|
4182
|
+
O += q;
|
|
4164
4183
|
else {
|
|
4165
|
-
if (
|
|
4184
|
+
if (O == "" || O != (k = Number(O)) || (T = m.substr(x + 1, k), O != T.length))
|
|
4166
4185
|
return E(b, 0, 1);
|
|
4167
4186
|
if (T.length) {
|
|
4168
4187
|
if (v = r.decodePacket(T, C, !0), b.type == v.type && b.data == v.data)
|
|
4169
4188
|
return E(b, 0, 1);
|
|
4170
|
-
var j = E(v,
|
|
4189
|
+
var j = E(v, x + k, A);
|
|
4171
4190
|
if (j === !1)
|
|
4172
4191
|
return;
|
|
4173
4192
|
}
|
|
4174
|
-
|
|
4193
|
+
x += k, O = "";
|
|
4175
4194
|
}
|
|
4176
4195
|
}
|
|
4177
|
-
return
|
|
4196
|
+
return O != "" ? E(b, 0, 1) : void 0;
|
|
4178
4197
|
}, r.encodePayloadAsArrayBuffer = function(m, C) {
|
|
4179
4198
|
function E(v, k) {
|
|
4180
4199
|
r.encodePacket(v, !0, !0, function(T) {
|
|
4181
4200
|
return k(null, T);
|
|
4182
4201
|
});
|
|
4183
4202
|
}
|
|
4184
|
-
return m.length ? void
|
|
4203
|
+
return m.length ? void f(m, E, function(v, k) {
|
|
4185
4204
|
var T = k.reduce(function(A, q) {
|
|
4186
4205
|
var j;
|
|
4187
4206
|
return j = typeof q == "string" ? q.length : q.byteLength, A + j.toString().length + j + 2;
|
|
4188
|
-
}, 0),
|
|
4207
|
+
}, 0), O = new Uint8Array(T), x = 0;
|
|
4189
4208
|
return k.forEach(function(A) {
|
|
4190
4209
|
var q = typeof A == "string", j = A;
|
|
4191
4210
|
if (q) {
|
|
@@ -4193,49 +4212,49 @@ function _o() {
|
|
|
4193
4212
|
$[X] = A.charCodeAt(X);
|
|
4194
4213
|
j = $.buffer;
|
|
4195
4214
|
}
|
|
4196
|
-
x
|
|
4215
|
+
O[x++] = q ? 0 : 1;
|
|
4197
4216
|
for (var et = j.byteLength.toString(), X = 0; X < et.length; X++)
|
|
4198
|
-
x
|
|
4199
|
-
x
|
|
4217
|
+
O[x++] = parseInt(et[X]);
|
|
4218
|
+
O[x++] = 255;
|
|
4200
4219
|
for (var $ = new Uint8Array(j), X = 0; X < $.length; X++)
|
|
4201
|
-
x
|
|
4202
|
-
}), C(
|
|
4220
|
+
O[x++] = $[X];
|
|
4221
|
+
}), C(O.buffer);
|
|
4203
4222
|
}) : C(new ArrayBuffer(0));
|
|
4204
4223
|
}, r.encodePayloadAsBlob = function(m, C) {
|
|
4205
4224
|
function E(v, k) {
|
|
4206
4225
|
r.encodePacket(v, !0, !0, function(T) {
|
|
4207
|
-
var
|
|
4208
|
-
if (
|
|
4209
|
-
for (var
|
|
4210
|
-
|
|
4211
|
-
T =
|
|
4226
|
+
var O = new Uint8Array(1);
|
|
4227
|
+
if (O[0] = 1, typeof T == "string") {
|
|
4228
|
+
for (var x = new Uint8Array(T.length), A = 0; A < T.length; A++)
|
|
4229
|
+
x[A] = T.charCodeAt(A);
|
|
4230
|
+
T = x.buffer, O[0] = 0;
|
|
4212
4231
|
}
|
|
4213
4232
|
for (var q = T instanceof ArrayBuffer ? T.byteLength : T.size, j = q.toString(), $ = new Uint8Array(j.length + 1), A = 0; A < j.length; A++)
|
|
4214
4233
|
$[A] = parseInt(j[A]);
|
|
4215
4234
|
if ($[j.length] = 255, S) {
|
|
4216
|
-
var X = new S([
|
|
4235
|
+
var X = new S([O.buffer, $.buffer, T]);
|
|
4217
4236
|
k(null, X);
|
|
4218
4237
|
}
|
|
4219
4238
|
});
|
|
4220
4239
|
}
|
|
4221
|
-
|
|
4240
|
+
f(m, E, function(v, k) {
|
|
4222
4241
|
return C(new S(k));
|
|
4223
4242
|
});
|
|
4224
4243
|
}, r.decodePayloadAsBinary = function(m, C, E) {
|
|
4225
4244
|
typeof C == "function" && (E = C, C = null);
|
|
4226
4245
|
for (var v = m, k = [], T = !1; v.byteLength > 0; ) {
|
|
4227
|
-
for (var
|
|
4246
|
+
for (var O = new Uint8Array(v), x = O[0] === 0, A = "", q = 1; O[q] != 255; q++) {
|
|
4228
4247
|
if (A.length > 310) {
|
|
4229
4248
|
T = !0;
|
|
4230
4249
|
break;
|
|
4231
4250
|
}
|
|
4232
|
-
A +=
|
|
4251
|
+
A += O[q];
|
|
4233
4252
|
}
|
|
4234
4253
|
if (T)
|
|
4235
4254
|
return E(b, 0, 1);
|
|
4236
4255
|
v = p(v, 2 + A.length), A = parseInt(A);
|
|
4237
4256
|
var j = p(v, 0, A);
|
|
4238
|
-
if (
|
|
4257
|
+
if (x)
|
|
4239
4258
|
try {
|
|
4240
4259
|
j = String.fromCharCode.apply(null, new Uint8Array(j));
|
|
4241
4260
|
} catch {
|
|
@@ -4247,8 +4266,8 @@ function _o() {
|
|
|
4247
4266
|
k.push(j), v = p(v, A);
|
|
4248
4267
|
}
|
|
4249
4268
|
var X = k.length;
|
|
4250
|
-
k.forEach(function(et,
|
|
4251
|
-
E(r.decodePacket(et, C, !0),
|
|
4269
|
+
k.forEach(function(et, Nt) {
|
|
4270
|
+
E(r.decodePacket(et, C, !0), Nt, X);
|
|
4252
4271
|
});
|
|
4253
4272
|
};
|
|
4254
4273
|
}).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
@@ -4274,9 +4293,9 @@ function _o() {
|
|
|
4274
4293
|
function h(c, l) {
|
|
4275
4294
|
if (h.count <= 0)
|
|
4276
4295
|
throw new Error("after called too many times");
|
|
4277
|
-
--h.count, c ? (
|
|
4296
|
+
--h.count, c ? (f = !0, i(c), i = u) : h.count !== 0 || f || i(null, l);
|
|
4278
4297
|
}
|
|
4279
|
-
var
|
|
4298
|
+
var f = !1;
|
|
4280
4299
|
return u = u || n, h.count = o, o === 0 ? i() : h;
|
|
4281
4300
|
}
|
|
4282
4301
|
function n() {
|
|
@@ -4290,24 +4309,24 @@ function _o() {
|
|
|
4290
4309
|
return r.slice(n, o);
|
|
4291
4310
|
if (0 > n && (n += i), 0 > o && (o += i), o > i && (o = i), n >= i || n >= o || i === 0)
|
|
4292
4311
|
return new ArrayBuffer(0);
|
|
4293
|
-
for (var u = new Uint8Array(r), h = new Uint8Array(o - n),
|
|
4294
|
-
h[c] = u[
|
|
4312
|
+
for (var u = new Uint8Array(r), h = new Uint8Array(o - n), f = n, c = 0; o > f; f++, c++)
|
|
4313
|
+
h[c] = u[f];
|
|
4295
4314
|
return h.buffer;
|
|
4296
4315
|
};
|
|
4297
4316
|
}, {}],
|
|
4298
4317
|
29: [function(t, e, r) {
|
|
4299
4318
|
(function(n) {
|
|
4300
4319
|
r.encode = function(o) {
|
|
4301
|
-
var i, u = new Uint8Array(o), h = u.length,
|
|
4320
|
+
var i, u = new Uint8Array(o), h = u.length, f = "";
|
|
4302
4321
|
for (i = 0; h > i; i += 3)
|
|
4303
|
-
|
|
4304
|
-
return h % 3 === 2 ?
|
|
4322
|
+
f += n[u[i] >> 2], f += n[(3 & u[i]) << 4 | u[i + 1] >> 4], f += n[(15 & u[i + 1]) << 2 | u[i + 2] >> 6], f += n[63 & u[i + 2]];
|
|
4323
|
+
return h % 3 === 2 ? f = f.substring(0, f.length - 1) + "=" : h % 3 === 1 && (f = f.substring(0, f.length - 2) + "=="), f;
|
|
4305
4324
|
}, r.decode = function(o) {
|
|
4306
|
-
var i, u, h,
|
|
4325
|
+
var i, u, h, f, c, l = 0.75 * o.length, p = o.length, a = 0;
|
|
4307
4326
|
o[o.length - 1] === "=" && (l--, o[o.length - 2] === "=" && l--);
|
|
4308
|
-
var s = new ArrayBuffer(l),
|
|
4327
|
+
var s = new ArrayBuffer(l), d = new Uint8Array(s);
|
|
4309
4328
|
for (i = 0; p > i; i += 4)
|
|
4310
|
-
u = n.indexOf(o[i]), h = n.indexOf(o[i + 1]),
|
|
4329
|
+
u = n.indexOf(o[i]), h = n.indexOf(o[i + 1]), f = n.indexOf(o[i + 2]), c = n.indexOf(o[i + 3]), d[a++] = u << 2 | h >> 4, d[a++] = (15 & h) << 4 | f >> 2, d[a++] = (3 & f) << 6 | 63 & c;
|
|
4311
4330
|
return s;
|
|
4312
4331
|
};
|
|
4313
4332
|
})("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/");
|
|
@@ -4320,8 +4339,8 @@ function _o() {
|
|
|
4320
4339
|
if (a.buffer instanceof ArrayBuffer) {
|
|
4321
4340
|
var s = a.buffer;
|
|
4322
4341
|
if (a.byteLength !== s.byteLength) {
|
|
4323
|
-
var
|
|
4324
|
-
|
|
4342
|
+
var d = new Uint8Array(a.byteLength);
|
|
4343
|
+
d.set(new Uint8Array(s, a.byteOffset, a.byteLength)), s = d.buffer;
|
|
4325
4344
|
}
|
|
4326
4345
|
l[p] = s;
|
|
4327
4346
|
}
|
|
@@ -4345,7 +4364,7 @@ function _o() {
|
|
|
4345
4364
|
} catch {
|
|
4346
4365
|
return !1;
|
|
4347
4366
|
}
|
|
4348
|
-
}(),
|
|
4367
|
+
}(), f = h && function() {
|
|
4349
4368
|
try {
|
|
4350
4369
|
var l = new Blob([new Uint8Array([1, 2])]);
|
|
4351
4370
|
return l.size === 2;
|
|
@@ -4354,7 +4373,7 @@ function _o() {
|
|
|
4354
4373
|
}
|
|
4355
4374
|
}(), c = u && u.prototype.append && u.prototype.getBlob;
|
|
4356
4375
|
e.exports = function() {
|
|
4357
|
-
return h ?
|
|
4376
|
+
return h ? f ? r.Blob : i : c ? o : void 0;
|
|
4358
4377
|
}();
|
|
4359
4378
|
}).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
4360
4379
|
}, {}],
|
|
@@ -4362,80 +4381,80 @@ function _o() {
|
|
|
4362
4381
|
(function(n) {
|
|
4363
4382
|
(function(o) {
|
|
4364
4383
|
function i(v) {
|
|
4365
|
-
for (var k, T,
|
|
4366
|
-
k = v.charCodeAt(
|
|
4367
|
-
return
|
|
4384
|
+
for (var k, T, O = [], x = 0, A = v.length; A > x; )
|
|
4385
|
+
k = v.charCodeAt(x++), k >= 55296 && 56319 >= k && A > x ? (T = v.charCodeAt(x++), (64512 & T) == 56320 ? O.push(((1023 & k) << 10) + (1023 & T) + 65536) : (O.push(k), x--)) : O.push(k);
|
|
4386
|
+
return O;
|
|
4368
4387
|
}
|
|
4369
4388
|
function u(v) {
|
|
4370
|
-
for (var k, T = v.length,
|
|
4371
|
-
k = v[
|
|
4372
|
-
return
|
|
4389
|
+
for (var k, T = v.length, O = -1, x = ""; ++O < T; )
|
|
4390
|
+
k = v[O], k > 65535 && (k -= 65536, x += b(k >>> 10 & 1023 | 55296), k = 56320 | 1023 & k), x += b(k);
|
|
4391
|
+
return x;
|
|
4373
4392
|
}
|
|
4374
4393
|
function h(v) {
|
|
4375
4394
|
if (v >= 55296 && 57343 >= v)
|
|
4376
4395
|
throw Error("Lone surrogate U+" + v.toString(16).toUpperCase() + " is not a scalar value");
|
|
4377
4396
|
}
|
|
4378
|
-
function
|
|
4397
|
+
function f(v, k) {
|
|
4379
4398
|
return b(v >> k & 63 | 128);
|
|
4380
4399
|
}
|
|
4381
4400
|
function c(v) {
|
|
4382
4401
|
if (!(4294967168 & v))
|
|
4383
4402
|
return b(v);
|
|
4384
4403
|
var k = "";
|
|
4385
|
-
return 4294965248 & v ? 4294901760 & v ? !(4292870144 & v) && (k = b(v >> 18 & 7 | 240), k +=
|
|
4404
|
+
return 4294965248 & v ? 4294901760 & v ? !(4292870144 & v) && (k = b(v >> 18 & 7 | 240), k += f(v, 12), k += f(v, 6)) : (h(v), k = b(v >> 12 & 15 | 224), k += f(v, 6)) : k = b(v >> 6 & 31 | 192), k += b(63 & v | 128);
|
|
4386
4405
|
}
|
|
4387
4406
|
function l(v) {
|
|
4388
|
-
for (var k, T = i(v),
|
|
4389
|
-
k = T[
|
|
4407
|
+
for (var k, T = i(v), O = T.length, x = -1, A = ""; ++x < O; )
|
|
4408
|
+
k = T[x], A += c(k);
|
|
4390
4409
|
return A;
|
|
4391
4410
|
}
|
|
4392
4411
|
function p() {
|
|
4393
|
-
if (
|
|
4412
|
+
if (_ >= B)
|
|
4394
4413
|
throw Error("Invalid byte index");
|
|
4395
|
-
var v = 255 & w[
|
|
4396
|
-
if (
|
|
4414
|
+
var v = 255 & w[_];
|
|
4415
|
+
if (_++, (192 & v) == 128)
|
|
4397
4416
|
return 63 & v;
|
|
4398
4417
|
throw Error("Invalid continuation byte");
|
|
4399
4418
|
}
|
|
4400
4419
|
function a() {
|
|
4401
|
-
var v, k, T,
|
|
4402
|
-
if (
|
|
4420
|
+
var v, k, T, O, x;
|
|
4421
|
+
if (_ > B)
|
|
4403
4422
|
throw Error("Invalid byte index");
|
|
4404
|
-
if (
|
|
4423
|
+
if (_ == B)
|
|
4405
4424
|
return !1;
|
|
4406
|
-
if (v = 255 & w[
|
|
4425
|
+
if (v = 255 & w[_], _++, (128 & v) == 0)
|
|
4407
4426
|
return v;
|
|
4408
4427
|
if ((224 & v) == 192) {
|
|
4409
4428
|
var k = p();
|
|
4410
|
-
if (
|
|
4411
|
-
return
|
|
4429
|
+
if (x = (31 & v) << 6 | k, x >= 128)
|
|
4430
|
+
return x;
|
|
4412
4431
|
throw Error("Invalid continuation byte");
|
|
4413
4432
|
}
|
|
4414
4433
|
if ((240 & v) == 224) {
|
|
4415
|
-
if (k = p(), T = p(),
|
|
4416
|
-
return h(
|
|
4434
|
+
if (k = p(), T = p(), x = (15 & v) << 12 | k << 6 | T, x >= 2048)
|
|
4435
|
+
return h(x), x;
|
|
4417
4436
|
throw Error("Invalid continuation byte");
|
|
4418
4437
|
}
|
|
4419
|
-
if ((248 & v) == 240 && (k = p(), T = p(),
|
|
4420
|
-
return
|
|
4438
|
+
if ((248 & v) == 240 && (k = p(), T = p(), O = p(), x = (15 & v) << 18 | k << 12 | T << 6 | O, x >= 65536 && 1114111 >= x))
|
|
4439
|
+
return x;
|
|
4421
4440
|
throw Error("Invalid UTF-8 detected");
|
|
4422
4441
|
}
|
|
4423
4442
|
function s(v) {
|
|
4424
|
-
w = i(v),
|
|
4443
|
+
w = i(v), B = w.length, _ = 0;
|
|
4425
4444
|
for (var k, T = []; (k = a()) !== !1; )
|
|
4426
4445
|
T.push(k);
|
|
4427
4446
|
return u(T);
|
|
4428
4447
|
}
|
|
4429
|
-
var
|
|
4448
|
+
var d = typeof r == "object" && r, y = typeof e == "object" && e && e.exports == d && e, g = typeof n == "object" && n;
|
|
4430
4449
|
(g.global === g || g.window === g) && (o = g);
|
|
4431
|
-
var w,
|
|
4432
|
-
if (
|
|
4450
|
+
var w, B, _, b = String.fromCharCode, S = { version: "2.0.0", encode: l, decode: s };
|
|
4451
|
+
if (d && !d.nodeType)
|
|
4433
4452
|
if (y)
|
|
4434
4453
|
y.exports = S;
|
|
4435
4454
|
else {
|
|
4436
4455
|
var m = {}, C = m.hasOwnProperty;
|
|
4437
4456
|
for (var E in S)
|
|
4438
|
-
C.call(S, E) && (
|
|
4457
|
+
C.call(S, E) && (d[E] = S[E]);
|
|
4439
4458
|
}
|
|
4440
4459
|
else
|
|
4441
4460
|
o.utf8 = S;
|
|
@@ -4444,9 +4463,9 @@ function _o() {
|
|
|
4444
4463
|
}, {}],
|
|
4445
4464
|
32: [function(t, e) {
|
|
4446
4465
|
(function(r) {
|
|
4447
|
-
var n = /^[\],:{}\s]*$/, o = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, i = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, u = /(?:^|:|,)(?:\s*\[)+/g, h = /^\s+/,
|
|
4466
|
+
var n = /^[\],:{}\s]*$/, o = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, i = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, u = /(?:^|:|,)(?:\s*\[)+/g, h = /^\s+/, f = /\s+$/;
|
|
4448
4467
|
e.exports = function(c) {
|
|
4449
|
-
return typeof c == "string" && c ? (c = c.replace(h, "").replace(
|
|
4468
|
+
return typeof c == "string" && c ? (c = c.replace(h, "").replace(f, ""), r.JSON && JSON.parse ? JSON.parse(c) : n.test(c.replace(o, "@").replace(i, "]").replace(u, "")) ? new Function("return " + c)() : void 0) : null;
|
|
4450
4469
|
};
|
|
4451
4470
|
}).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
4452
4471
|
}, {}],
|
|
@@ -4458,8 +4477,8 @@ function _o() {
|
|
|
4458
4477
|
return o;
|
|
4459
4478
|
}, r.decode = function(n) {
|
|
4460
4479
|
for (var o = {}, i = n.split("&"), u = 0, h = i.length; h > u; u++) {
|
|
4461
|
-
var
|
|
4462
|
-
o[decodeURIComponent(
|
|
4480
|
+
var f = i[u].split("=");
|
|
4481
|
+
o[decodeURIComponent(f[0])] = decodeURIComponent(f[1]);
|
|
4463
4482
|
}
|
|
4464
4483
|
return o;
|
|
4465
4484
|
};
|
|
@@ -4469,8 +4488,8 @@ function _o() {
|
|
|
4469
4488
|
e.exports = function(o) {
|
|
4470
4489
|
var i = o, u = o.indexOf("["), h = o.indexOf("]");
|
|
4471
4490
|
u != -1 && h != -1 && (o = o.substring(0, u) + o.substring(u, h).replace(/:/g, ";") + o.substring(h, o.length));
|
|
4472
|
-
for (var
|
|
4473
|
-
c[n[l]] =
|
|
4491
|
+
for (var f = r.exec(o || ""), c = {}, l = 14; l--; )
|
|
4492
|
+
c[n[l]] = f[l] || "";
|
|
4474
4493
|
return u != -1 && h != -1 && (c.source = i, c.host = c.host.substring(1, c.host.length - 1).replace(/;/g, ":"), c.authority = c.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), c.ipv6uri = !0), c;
|
|
4475
4494
|
};
|
|
4476
4495
|
}, {}],
|
|
@@ -4492,8 +4511,8 @@ function _o() {
|
|
|
4492
4511
|
if (r.Buffer && r.Buffer.isBuffer(h) || r.ArrayBuffer && h instanceof ArrayBuffer || r.Blob && h instanceof Blob || r.File && h instanceof File)
|
|
4493
4512
|
return !0;
|
|
4494
4513
|
if (o(h)) {
|
|
4495
|
-
for (var
|
|
4496
|
-
if (u(h[
|
|
4514
|
+
for (var f = 0; f < h.length; f++)
|
|
4515
|
+
if (u(h[f]))
|
|
4497
4516
|
return !0;
|
|
4498
4517
|
} else if (h && typeof h == "object") {
|
|
4499
4518
|
h.toJSON && (h = h.toJSON());
|
|
@@ -4576,12 +4595,12 @@ function _o() {
|
|
|
4576
4595
|
if (!p)
|
|
4577
4596
|
return p;
|
|
4578
4597
|
if (i(p)) {
|
|
4579
|
-
var a = { _placeholder: !0, num:
|
|
4580
|
-
return
|
|
4598
|
+
var a = { _placeholder: !0, num: f.length };
|
|
4599
|
+
return f.push(p), a;
|
|
4581
4600
|
}
|
|
4582
4601
|
if (o(p)) {
|
|
4583
|
-
for (var s = new Array(p.length),
|
|
4584
|
-
s[
|
|
4602
|
+
for (var s = new Array(p.length), d = 0; d < p.length; d++)
|
|
4603
|
+
s[d] = h(p[d]);
|
|
4585
4604
|
return s;
|
|
4586
4605
|
}
|
|
4587
4606
|
if (typeof p == "object" && !(p instanceof Date)) {
|
|
@@ -4592,46 +4611,46 @@ function _o() {
|
|
|
4592
4611
|
}
|
|
4593
4612
|
return p;
|
|
4594
4613
|
}
|
|
4595
|
-
var
|
|
4596
|
-
return l.data = h(c), l.attachments =
|
|
4614
|
+
var f = [], c = u.data, l = u;
|
|
4615
|
+
return l.data = h(c), l.attachments = f.length, { packet: l, buffers: f };
|
|
4597
4616
|
}, r.reconstructPacket = function(u, h) {
|
|
4598
|
-
function
|
|
4617
|
+
function f(c) {
|
|
4599
4618
|
if (c && c._placeholder) {
|
|
4600
4619
|
var l = h[c.num];
|
|
4601
4620
|
return l;
|
|
4602
4621
|
}
|
|
4603
4622
|
if (o(c)) {
|
|
4604
4623
|
for (var p = 0; p < c.length; p++)
|
|
4605
|
-
c[p] =
|
|
4624
|
+
c[p] = f(c[p]);
|
|
4606
4625
|
return c;
|
|
4607
4626
|
}
|
|
4608
4627
|
if (c && typeof c == "object") {
|
|
4609
4628
|
for (var a in c)
|
|
4610
|
-
c[a] =
|
|
4629
|
+
c[a] = f(c[a]);
|
|
4611
4630
|
return c;
|
|
4612
4631
|
}
|
|
4613
4632
|
return c;
|
|
4614
4633
|
}
|
|
4615
|
-
return u.data =
|
|
4634
|
+
return u.data = f(u.data), u.attachments = void 0, u;
|
|
4616
4635
|
}, r.removeBlobs = function(u, h) {
|
|
4617
|
-
function
|
|
4636
|
+
function f(p, a, s) {
|
|
4618
4637
|
if (!p)
|
|
4619
4638
|
return p;
|
|
4620
4639
|
if (n.Blob && p instanceof Blob || n.File && p instanceof File) {
|
|
4621
4640
|
c++;
|
|
4622
|
-
var
|
|
4623
|
-
|
|
4641
|
+
var d = new FileReader();
|
|
4642
|
+
d.onload = function() {
|
|
4624
4643
|
s ? s[a] = this.result : l = this.result, --c || h(l);
|
|
4625
|
-
},
|
|
4644
|
+
}, d.readAsArrayBuffer(p);
|
|
4626
4645
|
} else if (o(p))
|
|
4627
4646
|
for (var y = 0; y < p.length; y++)
|
|
4628
|
-
|
|
4647
|
+
f(p[y], y, p);
|
|
4629
4648
|
else if (p && typeof p == "object" && !i(p))
|
|
4630
4649
|
for (var g in p)
|
|
4631
|
-
|
|
4650
|
+
f(p[g], g, p);
|
|
4632
4651
|
}
|
|
4633
4652
|
var c = 0, l = u;
|
|
4634
|
-
|
|
4653
|
+
f(l), c || h(l);
|
|
4635
4654
|
};
|
|
4636
4655
|
}).call(this, typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
4637
4656
|
}, { "./is-buffer": 45, isarray: 46 }],
|
|
@@ -4643,8 +4662,8 @@ function _o() {
|
|
|
4643
4662
|
return g += y.type, (r.BINARY_EVENT == y.type || r.BINARY_ACK == y.type) && (g += y.attachments, g += "-"), y.nsp && y.nsp != "/" && (w = !0, g += y.nsp), y.id != null && (w && (g += ",", w = !1), g += y.id), y.data != null && (w && (g += ","), g += p.stringify(y.data)), l("encoded %j as %s", y, g), g;
|
|
4644
4663
|
}
|
|
4645
4664
|
function i(y, g) {
|
|
4646
|
-
function w(
|
|
4647
|
-
var
|
|
4665
|
+
function w(B) {
|
|
4666
|
+
var _ = s.deconstructPacket(B), b = o(_.packet), S = _.buffers;
|
|
4648
4667
|
S.unshift(b), g(S);
|
|
4649
4668
|
}
|
|
4650
4669
|
s.removeBlobs(y, w);
|
|
@@ -4657,16 +4676,16 @@ function _o() {
|
|
|
4657
4676
|
if (g.type = Number(y.charAt(0)), r.types[g.type] == null)
|
|
4658
4677
|
return c();
|
|
4659
4678
|
if (r.BINARY_EVENT == g.type || r.BINARY_ACK == g.type) {
|
|
4660
|
-
for (var
|
|
4679
|
+
for (var B = ""; y.charAt(++w) != "-" && (B += y.charAt(w), w != y.length); )
|
|
4661
4680
|
;
|
|
4662
|
-
if (
|
|
4681
|
+
if (B != Number(B) || y.charAt(w) != "-")
|
|
4663
4682
|
throw new Error("Illegal attachments");
|
|
4664
|
-
g.attachments = Number(
|
|
4683
|
+
g.attachments = Number(B);
|
|
4665
4684
|
}
|
|
4666
4685
|
if (y.charAt(w + 1) == "/")
|
|
4667
4686
|
for (g.nsp = ""; ++w; ) {
|
|
4668
|
-
var
|
|
4669
|
-
if (
|
|
4687
|
+
var _ = y.charAt(w);
|
|
4688
|
+
if (_ == "," || (g.nsp += _, w == y.length))
|
|
4670
4689
|
break;
|
|
4671
4690
|
}
|
|
4672
4691
|
else
|
|
@@ -4674,8 +4693,8 @@ function _o() {
|
|
|
4674
4693
|
var b = y.charAt(w + 1);
|
|
4675
4694
|
if (b !== "" && Number(b) == b) {
|
|
4676
4695
|
for (g.id = ""; ++w; ) {
|
|
4677
|
-
var
|
|
4678
|
-
if (
|
|
4696
|
+
var _ = y.charAt(w);
|
|
4697
|
+
if (_ == null || Number(_) != _) {
|
|
4679
4698
|
--w;
|
|
4680
4699
|
break;
|
|
4681
4700
|
}
|
|
@@ -4692,13 +4711,13 @@ function _o() {
|
|
|
4692
4711
|
}
|
|
4693
4712
|
return l("decoded %s as %j", y, g), g;
|
|
4694
4713
|
}
|
|
4695
|
-
function
|
|
4714
|
+
function f(y) {
|
|
4696
4715
|
this.reconPack = y, this.buffers = [];
|
|
4697
4716
|
}
|
|
4698
4717
|
function c() {
|
|
4699
4718
|
return { type: r.ERROR, data: "parser error" };
|
|
4700
4719
|
}
|
|
4701
|
-
var l = t("debug")("socket.io-parser"), p = t("json3"), a = (t("isarray"), t("component-emitter")), s = t("./binary"),
|
|
4720
|
+
var l = t("debug")("socket.io-parser"), p = t("json3"), a = (t("isarray"), t("component-emitter")), s = t("./binary"), d = t("./is-buffer");
|
|
4702
4721
|
r.protocol = 4, r.types = ["CONNECT", "DISCONNECT", "EVENT", "BINARY_EVENT", "ACK", "BINARY_ACK", "ERROR"], r.CONNECT = 0, r.DISCONNECT = 1, r.EVENT = 2, r.ACK = 3, r.ERROR = 4, r.BINARY_EVENT = 5, r.BINARY_ACK = 6, r.Encoder = n, r.Decoder = u, n.prototype.encode = function(y, g) {
|
|
4703
4722
|
if (l("encoding packet %j", y), r.BINARY_EVENT == y.type || r.BINARY_ACK == y.type)
|
|
4704
4723
|
i(y, g);
|
|
@@ -4709,9 +4728,9 @@ function _o() {
|
|
|
4709
4728
|
}, a(u.prototype), u.prototype.add = function(y) {
|
|
4710
4729
|
var g;
|
|
4711
4730
|
if (typeof y == "string")
|
|
4712
|
-
g = h(y), r.BINARY_EVENT == g.type || r.BINARY_ACK == g.type ? (this.reconstructor = new
|
|
4731
|
+
g = h(y), r.BINARY_EVENT == g.type || r.BINARY_ACK == g.type ? (this.reconstructor = new f(g), this.reconstructor.reconPack.attachments === 0 && this.emit("decoded", g)) : this.emit("decoded", g);
|
|
4713
4732
|
else {
|
|
4714
|
-
if (!
|
|
4733
|
+
if (!d(y) && !y.base64)
|
|
4715
4734
|
throw new Error("Unknown type: " + y);
|
|
4716
4735
|
if (!this.reconstructor)
|
|
4717
4736
|
throw new Error("got binary data when not reconstructing a packet");
|
|
@@ -4719,13 +4738,13 @@ function _o() {
|
|
|
4719
4738
|
}
|
|
4720
4739
|
}, u.prototype.destroy = function() {
|
|
4721
4740
|
this.reconstructor && this.reconstructor.finishedReconstruction();
|
|
4722
|
-
},
|
|
4741
|
+
}, f.prototype.takeBinaryData = function(y) {
|
|
4723
4742
|
if (this.buffers.push(y), this.buffers.length == this.reconPack.attachments) {
|
|
4724
4743
|
var g = s.reconstructPacket(this.reconPack, this.buffers);
|
|
4725
4744
|
return this.finishedReconstruction(), g;
|
|
4726
4745
|
}
|
|
4727
4746
|
return null;
|
|
4728
|
-
},
|
|
4747
|
+
}, f.prototype.finishedReconstruction = function() {
|
|
4729
4748
|
this.reconPack = null, this.buffers = [];
|
|
4730
4749
|
};
|
|
4731
4750
|
}, { "./binary": 43, "./is-buffer": 45, "component-emitter": 9, debug: 10, isarray: 46, json3: 47 }],
|
|
@@ -4742,25 +4761,25 @@ function _o() {
|
|
|
4742
4761
|
}, {}],
|
|
4743
4762
|
47: [function(t, e, r) {
|
|
4744
4763
|
(function(n) {
|
|
4745
|
-
function o(
|
|
4746
|
-
if (o[
|
|
4747
|
-
return o[
|
|
4764
|
+
function o(I) {
|
|
4765
|
+
if (o[I] !== h)
|
|
4766
|
+
return o[I];
|
|
4748
4767
|
var U;
|
|
4749
|
-
if (
|
|
4768
|
+
if (I == "bug-string-char-index")
|
|
4750
4769
|
U = !1;
|
|
4751
|
-
else if (
|
|
4770
|
+
else if (I == "json")
|
|
4752
4771
|
U = o("json-stringify") && o("json-parse");
|
|
4753
4772
|
else {
|
|
4754
|
-
var
|
|
4755
|
-
if (
|
|
4773
|
+
var R, F = '{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';
|
|
4774
|
+
if (I == "json-stringify") {
|
|
4756
4775
|
var N = l.stringify, D = typeof N == "function" && p;
|
|
4757
4776
|
if (D) {
|
|
4758
|
-
(
|
|
4777
|
+
(R = function() {
|
|
4759
4778
|
return 1;
|
|
4760
|
-
}).toJSON =
|
|
4779
|
+
}).toJSON = R;
|
|
4761
4780
|
try {
|
|
4762
|
-
D = N(0) === "0" && N(new Number()) === "0" && N(new String()) == '""' && N(
|
|
4763
|
-
\f\r `] }) == F && N(null,
|
|
4781
|
+
D = N(0) === "0" && N(new Number()) === "0" && N(new String()) == '""' && N(f) === h && N(h) === h && N() === h && N(R) === "1" && N([R]) == "[1]" && N([h]) == "[null]" && N(null) == "null" && N([h, f, null]) == "[null,null,null]" && N({ a: [R, !0, !1, null, `\0\b
|
|
4782
|
+
\f\r `] }) == F && N(null, R) === "1" && N([1, 2], null, 1) == `[
|
|
4764
4783
|
1,
|
|
4765
4784
|
2
|
|
4766
4785
|
]` && N(/* @__PURE__ */ new Date(-864e13)) == '"-271821-04-20T00:00:00.000Z"' && N(/* @__PURE__ */ new Date(864e13)) == '"+275760-09-13T00:00:00.000Z"' && N(/* @__PURE__ */ new Date(-621987552e5)) == '"-000001-01-01T00:00:00.000Z"' && N(/* @__PURE__ */ new Date(-1)) == '"1969-12-31T23:59:59.999Z"';
|
|
@@ -4770,13 +4789,13 @@ function _o() {
|
|
|
4770
4789
|
}
|
|
4771
4790
|
U = D;
|
|
4772
4791
|
}
|
|
4773
|
-
if (
|
|
4792
|
+
if (I == "json-parse") {
|
|
4774
4793
|
var P = l.parse;
|
|
4775
4794
|
if (typeof P == "function")
|
|
4776
4795
|
try {
|
|
4777
4796
|
if (P("0") === 0 && !P(!1)) {
|
|
4778
|
-
|
|
4779
|
-
var L =
|
|
4797
|
+
R = P(F);
|
|
4798
|
+
var L = R.a.length == 5 && R.a[0] === 1;
|
|
4780
4799
|
if (L) {
|
|
4781
4800
|
try {
|
|
4782
4801
|
L = !P('" "');
|
|
@@ -4800,9 +4819,9 @@ function _o() {
|
|
|
4800
4819
|
U = L;
|
|
4801
4820
|
}
|
|
4802
4821
|
}
|
|
4803
|
-
return o[
|
|
4822
|
+
return o[I] = !!U;
|
|
4804
4823
|
}
|
|
4805
|
-
var i, u, h,
|
|
4824
|
+
var i, u, h, f = {}.toString, c = typeof JSON == "object" && JSON, l = typeof r == "object" && r && !r.nodeType && r;
|
|
4806
4825
|
l && c ? (l.stringify = c.stringify, l.parse = c.parse) : l = n.JSON = c || {};
|
|
4807
4826
|
var p = /* @__PURE__ */ new Date(-3509827334573292);
|
|
4808
4827
|
try {
|
|
@@ -4810,55 +4829,55 @@ function _o() {
|
|
|
4810
4829
|
} catch {
|
|
4811
4830
|
}
|
|
4812
4831
|
if (!o("json")) {
|
|
4813
|
-
var a = "[object Function]", s = "[object Date]",
|
|
4832
|
+
var a = "[object Function]", s = "[object Date]", d = "[object Number]", y = "[object String]", g = "[object Array]", w = "[object Boolean]", B = o("bug-string-char-index");
|
|
4814
4833
|
if (!p)
|
|
4815
|
-
var
|
|
4816
|
-
return b[U] + 365 * (
|
|
4834
|
+
var _ = Math.floor, b = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], S = function(I, U) {
|
|
4835
|
+
return b[U] + 365 * (I - 1970) + _((I - 1969 + (U = +(U > 1))) / 4) - _((I - 1901 + U) / 100) + _((I - 1601 + U) / 400);
|
|
4817
4836
|
};
|
|
4818
|
-
(i = {}.hasOwnProperty) || (i = function(
|
|
4819
|
-
var U,
|
|
4820
|
-
return (
|
|
4837
|
+
(i = {}.hasOwnProperty) || (i = function(I) {
|
|
4838
|
+
var U, R = {};
|
|
4839
|
+
return (R.__proto__ = null, R.__proto__ = { toString: 1 }, R).toString != f ? i = function(F) {
|
|
4821
4840
|
var N = this.__proto__, D = F in (this.__proto__ = null, this);
|
|
4822
4841
|
return this.__proto__ = N, D;
|
|
4823
|
-
} : (U =
|
|
4842
|
+
} : (U = R.constructor, i = function(F) {
|
|
4824
4843
|
var N = (this.constructor || U).prototype;
|
|
4825
4844
|
return F in this && !(F in N && this[F] === N[F]);
|
|
4826
|
-
}),
|
|
4845
|
+
}), R = null, i.call(this, I);
|
|
4827
4846
|
});
|
|
4828
|
-
var m = { boolean: 1, number: 1, string: 1, undefined: 1 }, C = function(
|
|
4829
|
-
var
|
|
4830
|
-
return
|
|
4847
|
+
var m = { boolean: 1, number: 1, string: 1, undefined: 1 }, C = function(I, U) {
|
|
4848
|
+
var R = typeof I[U];
|
|
4849
|
+
return R == "object" ? !!I[U] : !m[R];
|
|
4831
4850
|
};
|
|
4832
|
-
if (u = function(
|
|
4833
|
-
var
|
|
4834
|
-
(
|
|
4851
|
+
if (u = function(I, U) {
|
|
4852
|
+
var R, F, N, D = 0;
|
|
4853
|
+
(R = function() {
|
|
4835
4854
|
this.valueOf = 0;
|
|
4836
|
-
}).prototype.valueOf = 0, F = new
|
|
4855
|
+
}).prototype.valueOf = 0, F = new R();
|
|
4837
4856
|
for (N in F)
|
|
4838
4857
|
i.call(F, N) && D++;
|
|
4839
|
-
return
|
|
4840
|
-
var M, J = {}, nt =
|
|
4858
|
+
return R = F = null, D ? u = D == 2 ? function(P, L) {
|
|
4859
|
+
var M, J = {}, nt = f.call(P) == a;
|
|
4841
4860
|
for (M in P)
|
|
4842
4861
|
nt && M == "prototype" || i.call(J, M) || !(J[M] = 1) || !i.call(P, M) || L(M);
|
|
4843
4862
|
} : function(P, L) {
|
|
4844
|
-
var M, J, nt =
|
|
4863
|
+
var M, J, nt = f.call(P) == a;
|
|
4845
4864
|
for (M in P)
|
|
4846
4865
|
nt && M == "prototype" || !i.call(P, M) || (J = M === "constructor") || L(M);
|
|
4847
4866
|
(J || i.call(P, M = "constructor")) && L(M);
|
|
4848
4867
|
} : (F = ["valueOf", "toString", "toLocaleString", "propertyIsEnumerable", "isPrototypeOf", "hasOwnProperty", "constructor"], u = function(P, L) {
|
|
4849
|
-
var M, J, nt =
|
|
4868
|
+
var M, J, nt = f.call(P) == a, ot = !nt && typeof P.constructor != "function" && C(P, "hasOwnProperty") ? P.hasOwnProperty : i;
|
|
4850
4869
|
for (M in P)
|
|
4851
4870
|
nt && M == "prototype" || !ot.call(P, M) || L(M);
|
|
4852
4871
|
for (J = F.length; M = F[--J]; ot.call(P, M) && L(M))
|
|
4853
4872
|
;
|
|
4854
|
-
}), u(
|
|
4873
|
+
}), u(I, U);
|
|
4855
4874
|
}, !o("json-stringify")) {
|
|
4856
|
-
var E = { 92: "\\\\", 34: '\\"', 8: "\\b", 12: "\\f", 10: "\\n", 13: "\\r", 9: "\\t" }, v = "000000", k = function(
|
|
4857
|
-
return (v + (U || 0)).slice(-
|
|
4858
|
-
}, T = "\\u00",
|
|
4859
|
-
var U,
|
|
4860
|
-
for (D && (U =
|
|
4861
|
-
var P =
|
|
4875
|
+
var E = { 92: "\\\\", 34: '\\"', 8: "\\b", 12: "\\f", 10: "\\n", 13: "\\r", 9: "\\t" }, v = "000000", k = function(I, U) {
|
|
4876
|
+
return (v + (U || 0)).slice(-I);
|
|
4877
|
+
}, T = "\\u00", O = function(I) {
|
|
4878
|
+
var U, R = '"', F = 0, N = I.length, D = N > 10 && B;
|
|
4879
|
+
for (D && (U = I.split("")); N > F; F++) {
|
|
4880
|
+
var P = I.charCodeAt(F);
|
|
4862
4881
|
switch (P) {
|
|
4863
4882
|
case 8:
|
|
4864
4883
|
case 9:
|
|
@@ -4867,87 +4886,87 @@ function _o() {
|
|
|
4867
4886
|
case 13:
|
|
4868
4887
|
case 34:
|
|
4869
4888
|
case 92:
|
|
4870
|
-
|
|
4889
|
+
R += E[P];
|
|
4871
4890
|
break;
|
|
4872
4891
|
default:
|
|
4873
4892
|
if (32 > P) {
|
|
4874
|
-
|
|
4893
|
+
R += T + k(2, P.toString(16));
|
|
4875
4894
|
break;
|
|
4876
4895
|
}
|
|
4877
|
-
|
|
4896
|
+
R += D ? U[F] : B ? I.charAt(F) : I[F];
|
|
4878
4897
|
}
|
|
4879
4898
|
}
|
|
4880
|
-
return
|
|
4881
|
-
},
|
|
4882
|
-
var L, M, J, nt, ot, Ot, $t, Gt, Yt,
|
|
4899
|
+
return R + '"';
|
|
4900
|
+
}, x = function(I, U, R, F, N, D, P) {
|
|
4901
|
+
var L, M, J, nt, ot, Ot, Vt, $t, Gt, Yt, ut, Qt, Ut, xt, Zt, te;
|
|
4883
4902
|
try {
|
|
4884
|
-
L = U[
|
|
4903
|
+
L = U[I];
|
|
4885
4904
|
} catch {
|
|
4886
4905
|
}
|
|
4887
4906
|
if (typeof L == "object" && L)
|
|
4888
|
-
if (M =
|
|
4889
|
-
typeof L.toJSON == "function" && (M !=
|
|
4907
|
+
if (M = f.call(L), M != s || i.call(L, "toJSON"))
|
|
4908
|
+
typeof L.toJSON == "function" && (M != d && M != y && M != g || i.call(L, "toJSON")) && (L = L.toJSON(I));
|
|
4890
4909
|
else if (L > -1 / 0 && 1 / 0 > L) {
|
|
4891
4910
|
if (S) {
|
|
4892
|
-
for (ot =
|
|
4911
|
+
for (ot = _(L / 864e5), J = _(ot / 365.2425) + 1970 - 1; S(J + 1, 0) <= ot; J++)
|
|
4893
4912
|
;
|
|
4894
|
-
for (nt =
|
|
4913
|
+
for (nt = _((ot - S(J, 0)) / 30.42); S(J, nt + 1) <= ot; nt++)
|
|
4895
4914
|
;
|
|
4896
|
-
ot = 1 + ot - S(J, nt), Ot = (L % 864e5 + 864e5) % 864e5,
|
|
4915
|
+
ot = 1 + ot - S(J, nt), Ot = (L % 864e5 + 864e5) % 864e5, Vt = _(Ot / 36e5) % 24, $t = _(Ot / 6e4) % 60, Gt = _(Ot / 1e3) % 60, Yt = Ot % 1e3;
|
|
4897
4916
|
} else
|
|
4898
|
-
J = L.getUTCFullYear(), nt = L.getUTCMonth(), ot = L.getUTCDate(),
|
|
4899
|
-
L = (0 >= J || J >= 1e4 ? (0 > J ? "-" : "+") + k(6, 0 > J ? -J : J) : k(4, J)) + "-" + k(2, nt + 1) + "-" + k(2, ot) + "T" + k(2,
|
|
4917
|
+
J = L.getUTCFullYear(), nt = L.getUTCMonth(), ot = L.getUTCDate(), Vt = L.getUTCHours(), $t = L.getUTCMinutes(), Gt = L.getUTCSeconds(), Yt = L.getUTCMilliseconds();
|
|
4918
|
+
L = (0 >= J || J >= 1e4 ? (0 > J ? "-" : "+") + k(6, 0 > J ? -J : J) : k(4, J)) + "-" + k(2, nt + 1) + "-" + k(2, ot) + "T" + k(2, Vt) + ":" + k(2, $t) + ":" + k(2, Gt) + "." + k(3, Yt) + "Z";
|
|
4900
4919
|
} else
|
|
4901
4920
|
L = null;
|
|
4902
|
-
if (
|
|
4921
|
+
if (R && (L = R.call(U, I, L)), L === null)
|
|
4903
4922
|
return "null";
|
|
4904
|
-
if (M =
|
|
4923
|
+
if (M = f.call(L), M == w)
|
|
4905
4924
|
return "" + L;
|
|
4906
|
-
if (M ==
|
|
4925
|
+
if (M == d)
|
|
4907
4926
|
return L > -1 / 0 && 1 / 0 > L ? "" + L : "null";
|
|
4908
4927
|
if (M == y)
|
|
4909
|
-
return
|
|
4928
|
+
return O("" + L);
|
|
4910
4929
|
if (typeof L == "object") {
|
|
4911
|
-
for (
|
|
4912
|
-
if (P[
|
|
4930
|
+
for (xt = P.length; xt--; )
|
|
4931
|
+
if (P[xt] === L)
|
|
4913
4932
|
throw TypeError();
|
|
4914
|
-
if (P.push(L), ut = [],
|
|
4915
|
-
for (
|
|
4916
|
-
|
|
4917
|
-
|
|
4933
|
+
if (P.push(L), ut = [], Zt = D, D += N, M == g) {
|
|
4934
|
+
for (Ut = 0, xt = L.length; xt > Ut; Ut++)
|
|
4935
|
+
Qt = x(Ut, L, R, F, N, D, P), ut.push(Qt === h ? "null" : Qt);
|
|
4936
|
+
te = ut.length ? N ? `[
|
|
4918
4937
|
` + D + ut.join(`,
|
|
4919
4938
|
` + D) + `
|
|
4920
|
-
` +
|
|
4939
|
+
` + Zt + "]" : "[" + ut.join(",") + "]" : "[]";
|
|
4921
4940
|
} else
|
|
4922
|
-
u(F || L, function(
|
|
4923
|
-
var
|
|
4924
|
-
|
|
4925
|
-
}),
|
|
4941
|
+
u(F || L, function(ee) {
|
|
4942
|
+
var Le = x(ee, L, R, F, N, D, P);
|
|
4943
|
+
Le !== h && ut.push(O(ee) + ":" + (N ? " " : "") + Le);
|
|
4944
|
+
}), te = ut.length ? N ? `{
|
|
4926
4945
|
` + D + ut.join(`,
|
|
4927
4946
|
` + D) + `
|
|
4928
|
-
` +
|
|
4929
|
-
return P.pop(),
|
|
4947
|
+
` + Zt + "}" : "{" + ut.join(",") + "}" : "{}";
|
|
4948
|
+
return P.pop(), te;
|
|
4930
4949
|
}
|
|
4931
4950
|
};
|
|
4932
|
-
l.stringify = function(
|
|
4951
|
+
l.stringify = function(I, U, R) {
|
|
4933
4952
|
var F, N, D, P;
|
|
4934
4953
|
if (typeof U == "function" || typeof U == "object" && U) {
|
|
4935
|
-
if ((P =
|
|
4954
|
+
if ((P = f.call(U)) == a)
|
|
4936
4955
|
N = U;
|
|
4937
4956
|
else if (P == g) {
|
|
4938
4957
|
D = {};
|
|
4939
|
-
for (var L, M = 0, J = U.length; J > M; L = U[M++], P =
|
|
4958
|
+
for (var L, M = 0, J = U.length; J > M; L = U[M++], P = f.call(L), (P == y || P == d) && (D[L] = 1))
|
|
4940
4959
|
;
|
|
4941
4960
|
}
|
|
4942
4961
|
}
|
|
4943
|
-
if (
|
|
4944
|
-
if ((P =
|
|
4945
|
-
if ((
|
|
4946
|
-
for (F = "",
|
|
4962
|
+
if (R)
|
|
4963
|
+
if ((P = f.call(R)) == d) {
|
|
4964
|
+
if ((R -= R % 1) > 0)
|
|
4965
|
+
for (F = "", R > 10 && (R = 10); F.length < R; F += " ")
|
|
4947
4966
|
;
|
|
4948
4967
|
} else
|
|
4949
|
-
P == y && (F =
|
|
4950
|
-
return
|
|
4968
|
+
P == y && (F = R.length <= 10 ? R : R.slice(0, 10));
|
|
4969
|
+
return x("", (L = {}, L[""] = I, L), N, D, F, "", []);
|
|
4951
4970
|
};
|
|
4952
4971
|
}
|
|
4953
4972
|
if (!o("json-parse")) {
|
|
@@ -4955,7 +4974,7 @@ function _o() {
|
|
|
4955
4974
|
`, 102: "\f", 114: "\r" }, X = function() {
|
|
4956
4975
|
throw A = q = null, SyntaxError();
|
|
4957
4976
|
}, et = function() {
|
|
4958
|
-
for (var
|
|
4977
|
+
for (var I, U, R, F, N, D = q, P = D.length; P > A; )
|
|
4959
4978
|
switch (N = D.charCodeAt(A)) {
|
|
4960
4979
|
case 9:
|
|
4961
4980
|
case 10:
|
|
@@ -4969,9 +4988,9 @@ function _o() {
|
|
|
4969
4988
|
case 93:
|
|
4970
4989
|
case 58:
|
|
4971
4990
|
case 44:
|
|
4972
|
-
return
|
|
4991
|
+
return I = B ? D.charAt(A) : D[A], A++, I;
|
|
4973
4992
|
case 34:
|
|
4974
|
-
for (
|
|
4993
|
+
for (I = "@", A++; P > A; )
|
|
4975
4994
|
if (N = D.charCodeAt(A), 32 > N)
|
|
4976
4995
|
X();
|
|
4977
4996
|
else if (N == 92)
|
|
@@ -4984,12 +5003,12 @@ function _o() {
|
|
|
4984
5003
|
case 110:
|
|
4985
5004
|
case 102:
|
|
4986
5005
|
case 114:
|
|
4987
|
-
|
|
5006
|
+
I += $[N], A++;
|
|
4988
5007
|
break;
|
|
4989
5008
|
case 117:
|
|
4990
|
-
for (U = ++A,
|
|
5009
|
+
for (U = ++A, R = A + 4; R > A; A++)
|
|
4991
5010
|
N = D.charCodeAt(A), N >= 48 && 57 >= N || N >= 97 && 102 >= N || N >= 65 && 70 >= N || X();
|
|
4992
|
-
|
|
5011
|
+
I += j("0x" + D.slice(U, A));
|
|
4993
5012
|
break;
|
|
4994
5013
|
default:
|
|
4995
5014
|
X();
|
|
@@ -4999,24 +5018,24 @@ function _o() {
|
|
|
4999
5018
|
break;
|
|
5000
5019
|
for (N = D.charCodeAt(A), U = A; N >= 32 && N != 92 && N != 34; )
|
|
5001
5020
|
N = D.charCodeAt(++A);
|
|
5002
|
-
|
|
5021
|
+
I += D.slice(U, A);
|
|
5003
5022
|
}
|
|
5004
5023
|
if (D.charCodeAt(A) == 34)
|
|
5005
|
-
return A++,
|
|
5024
|
+
return A++, I;
|
|
5006
5025
|
X();
|
|
5007
5026
|
default:
|
|
5008
5027
|
if (U = A, N == 45 && (F = !0, N = D.charCodeAt(++A)), N >= 48 && 57 >= N) {
|
|
5009
5028
|
for (N == 48 && (N = D.charCodeAt(A + 1), N >= 48 && 57 >= N) && X(), F = !1; P > A && (N = D.charCodeAt(A), N >= 48 && 57 >= N); A++)
|
|
5010
5029
|
;
|
|
5011
5030
|
if (D.charCodeAt(A) == 46) {
|
|
5012
|
-
for (
|
|
5031
|
+
for (R = ++A; P > R && (N = D.charCodeAt(R), N >= 48 && 57 >= N); R++)
|
|
5013
5032
|
;
|
|
5014
|
-
|
|
5033
|
+
R == A && X(), A = R;
|
|
5015
5034
|
}
|
|
5016
5035
|
if (N = D.charCodeAt(A), N == 101 || N == 69) {
|
|
5017
|
-
for (N = D.charCodeAt(++A), (N == 43 || N == 45) && A++,
|
|
5036
|
+
for (N = D.charCodeAt(++A), (N == 43 || N == 45) && A++, R = A; P > R && (N = D.charCodeAt(R), N >= 48 && 57 >= N); R++)
|
|
5018
5037
|
;
|
|
5019
|
-
|
|
5038
|
+
R == A && X(), A = R;
|
|
5020
5039
|
}
|
|
5021
5040
|
return +D.slice(U, A);
|
|
5022
5041
|
}
|
|
@@ -5029,42 +5048,42 @@ function _o() {
|
|
|
5029
5048
|
X();
|
|
5030
5049
|
}
|
|
5031
5050
|
return "$";
|
|
5032
|
-
},
|
|
5033
|
-
var U,
|
|
5034
|
-
if (
|
|
5035
|
-
if ((
|
|
5036
|
-
return
|
|
5037
|
-
if (
|
|
5038
|
-
for (U = [];
|
|
5039
|
-
|
|
5051
|
+
}, Nt = function(I) {
|
|
5052
|
+
var U, R;
|
|
5053
|
+
if (I == "$" && X(), typeof I == "string") {
|
|
5054
|
+
if ((B ? I.charAt(0) : I[0]) == "@")
|
|
5055
|
+
return I.slice(1);
|
|
5056
|
+
if (I == "[") {
|
|
5057
|
+
for (U = []; I = et(), I != "]"; R || (R = !0))
|
|
5058
|
+
R && (I == "," ? (I = et(), I == "]" && X()) : X()), I == "," && X(), U.push(Nt(I));
|
|
5040
5059
|
return U;
|
|
5041
5060
|
}
|
|
5042
|
-
if (
|
|
5043
|
-
for (U = {};
|
|
5044
|
-
|
|
5061
|
+
if (I == "{") {
|
|
5062
|
+
for (U = {}; I = et(), I != "}"; R || (R = !0))
|
|
5063
|
+
R && (I == "," ? (I = et(), I == "}" && X()) : X()), (I == "," || typeof I != "string" || (B ? I.charAt(0) : I[0]) != "@" || et() != ":") && X(), U[I.slice(1)] = Nt(et());
|
|
5045
5064
|
return U;
|
|
5046
5065
|
}
|
|
5047
5066
|
X();
|
|
5048
5067
|
}
|
|
5049
|
-
return
|
|
5050
|
-
},
|
|
5051
|
-
var F =
|
|
5052
|
-
F === h ? delete
|
|
5053
|
-
},
|
|
5054
|
-
var F, N =
|
|
5068
|
+
return I;
|
|
5069
|
+
}, Be = function(I, U, R) {
|
|
5070
|
+
var F = _e(I, U, R);
|
|
5071
|
+
F === h ? delete I[U] : I[U] = F;
|
|
5072
|
+
}, _e = function(I, U, R) {
|
|
5073
|
+
var F, N = I[U];
|
|
5055
5074
|
if (typeof N == "object" && N)
|
|
5056
|
-
if (
|
|
5075
|
+
if (f.call(N) == g)
|
|
5057
5076
|
for (F = N.length; F--; )
|
|
5058
|
-
|
|
5077
|
+
Be(N, F, R);
|
|
5059
5078
|
else
|
|
5060
5079
|
u(N, function(D) {
|
|
5061
|
-
|
|
5080
|
+
Be(N, D, R);
|
|
5062
5081
|
});
|
|
5063
|
-
return
|
|
5082
|
+
return R.call(I, U, N);
|
|
5064
5083
|
};
|
|
5065
|
-
l.parse = function(
|
|
5066
|
-
var
|
|
5067
|
-
return A = 0, q = "" +
|
|
5084
|
+
l.parse = function(I, U) {
|
|
5085
|
+
var R, F;
|
|
5086
|
+
return A = 0, q = "" + I, R = Nt(et()), et() != "$" && X(), A = q = null, U && f.call(U) == a ? _e((F = {}, F[""] = R, F), "", U) : R;
|
|
5068
5087
|
};
|
|
5069
5088
|
}
|
|
5070
5089
|
}
|
|
@@ -5082,40 +5101,40 @@ function _o() {
|
|
|
5082
5101
|
}, {}]
|
|
5083
5102
|
}, {}, [1])(1);
|
|
5084
5103
|
}
|
|
5085
|
-
const
|
|
5104
|
+
const Lo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5086
5105
|
__proto__: null,
|
|
5087
5106
|
default: _o
|
|
5088
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5089
|
-
"./v1_3_7.js":
|
|
5090
|
-
}),
|
|
5091
|
-
function
|
|
5107
|
+
}, Symbol.toStringTag, { value: "Module" })), Uo = /* @__PURE__ */ Object.assign({
|
|
5108
|
+
"./v1_3_7.js": Lo
|
|
5109
|
+
}), Do = /v\d+_\d+_\d+/;
|
|
5110
|
+
function Po(t) {
|
|
5092
5111
|
return typeof t == "function";
|
|
5093
5112
|
}
|
|
5094
|
-
const
|
|
5113
|
+
const be = Object.entries(Uo).reduce(
|
|
5095
5114
|
(t, e) => {
|
|
5096
5115
|
var o;
|
|
5097
|
-
const r = e[1].default, n = (o = e[0].match(
|
|
5098
|
-
return
|
|
5116
|
+
const r = e[1].default, n = (o = e[0].match(Do)) == null ? void 0 : o[0];
|
|
5117
|
+
return Po(r) && n && (t[n] = r()), t;
|
|
5099
5118
|
},
|
|
5100
5119
|
{}
|
|
5101
|
-
),
|
|
5102
|
-
if (t in
|
|
5103
|
-
return
|
|
5120
|
+
), Tr = (t) => {
|
|
5121
|
+
if (t in be)
|
|
5122
|
+
return be[t];
|
|
5104
5123
|
throw new Error(`Socket version ${t} not found`);
|
|
5105
|
-
},
|
|
5106
|
-
...
|
|
5107
|
-
getSocketVersion:
|
|
5108
|
-
makeSocketVersion:
|
|
5124
|
+
}, Fo = (t, ...e) => Tr(t)(...e), jo = {
|
|
5125
|
+
...be,
|
|
5126
|
+
getSocketVersion: Tr,
|
|
5127
|
+
makeSocketVersion: Fo
|
|
5109
5128
|
};
|
|
5110
|
-
var
|
|
5111
|
-
class
|
|
5129
|
+
var Mo = /* @__PURE__ */ ((t) => (t.RINGING = "Ringing", t.TALKING = "Talking", t.DIALING = "Dialing", t.HOLD = "Hold", t))(Mo || {}), qo = /* @__PURE__ */ ((t) => (t.INCOMING = "Incoming", t.OUTGOING = "Outgoing", t))(qo || {}), mt = /* @__PURE__ */ ((t) => (t.CONNECTED = "connected", t.DISCONNECTED = "disconnected", t.TRYING_TO_CONNECT = "tryingToConnect", t))(mt || {}), zo = /* @__PURE__ */ ((t) => (t.AUTOMATIC = "Automatic", t.IVR = "IVR", t))(zo || {}), Xo = /* @__PURE__ */ ((t) => (t.INCOMINC = "Incoming", t.OUTGOING = "Outgoing", t.SPY = "Spy", t.CLICK2CALL = "Click2Call", t))(Xo || {}), Wo = /* @__PURE__ */ ((t) => (t.RESPONSE_FROM_API_VALID = "RESPONSE_FROM_API_VALID", t.RESPONSE_FROM_API_INVALID = "RESPONSE_FROM_API_INVALID", t))(Wo || {}), z = /* @__PURE__ */ ((t) => (t.ALL_DIALER_STATUS = "AllDialersStatus", t.ALL_EXTENSION_STATUS = "AllExtensionsStatus", t.ALL_USERS_STATUS = "AllUsersStatus", t.CONNECT = "connect", t.DISCONNECT = "disconnect", t.CONNECT_ERROR_EVENT = "connect_error", t.EXTENSION_EVENT = "ExtensionEvent", t.KEEP_ALIVE = "keepalive", t.KEEP_ALIVE_RESPONSE = "keepaliveResponse", t.LOGIN_STATUS = "loginStatus", t.LOGIN_SUCCESS = "loginSuccess", t.QUEUE_EVENT = "QueueEvent", t.ONLINE_STATUS_EVENT = "onlineStatusEvent", t.DIALER_EVENT = "DialerEvent", t.EXTENSIONS_UPDATED = "ExtensionsUpdated", t))(z || {}), Nr = /* @__PURE__ */ ((t) => (t.NEWCALL = "NEWCALL", t.ANSWER = "ANSWER", t.HOLD = "HOLD", t.UNHOLD = "UNHOLD", t.HANGUP = "HANGUP", t.USER_STATUS_UPDATE = "userStatusUpdate", t))(Nr || {}), Ko = /* @__PURE__ */ ((t) => (t.NORMAL_HANGUP = "Normal hangup", t.USER_BUSY = "User busy", t.CALL_REJECTED = "Call Rejected", t.UNALLOCATED_NUMBER = "Unallocated (unassigned) number", t.UNKNOWN = "Unknown", t.NO_USER_RESPONDING = "No user responding", t.USER_ALERTING = "User alerting, no answer", t.ANSWERED_ELSEWHERE = "Answered elsewhere", t))(Ko || {}), Ho = /* @__PURE__ */ ((t) => (t.ANSWER = "ANSWER", t.ABANDONED = "ABANDONED", t.EXIT = "EXIT", t.JOIN = "JOIN", t))(Ho || {});
|
|
5130
|
+
class pe {
|
|
5112
5131
|
static mapExtensionEvent(e) {
|
|
5113
5132
|
var u, h;
|
|
5114
5133
|
const r = e.reason;
|
|
5115
5134
|
let n, o;
|
|
5116
5135
|
e.data.currentCall && (o = this.mapExtensionCall(e, e.data.currentCall));
|
|
5117
5136
|
const i = this.mapExtensionData(e, e.data);
|
|
5118
|
-
return r ===
|
|
5137
|
+
return r === Nr.HANGUP ? n = {
|
|
5119
5138
|
...e,
|
|
5120
5139
|
reason: r,
|
|
5121
5140
|
data: {
|
|
@@ -5124,8 +5143,8 @@ class ce {
|
|
|
5124
5143
|
...o,
|
|
5125
5144
|
duration: o.callAnswered_UTC_CLIENT ? Date.now() - o.callAnswered_UTC_CLIENT : 0
|
|
5126
5145
|
} : void 0,
|
|
5127
|
-
calls: (u = e.data.calls) == null ? void 0 : u.map((
|
|
5128
|
-
const c = this.mapExtensionCall(e,
|
|
5146
|
+
calls: (u = e.data.calls) == null ? void 0 : u.map((f) => {
|
|
5147
|
+
const c = this.mapExtensionCall(e, f);
|
|
5129
5148
|
return {
|
|
5130
5149
|
...c,
|
|
5131
5150
|
duration: c.callAnswered_UTC_CLIENT ? Date.now() - c.callAnswered_UTC_CLIENT : 0
|
|
@@ -5137,7 +5156,7 @@ class ce {
|
|
|
5137
5156
|
data: {
|
|
5138
5157
|
...i,
|
|
5139
5158
|
currentCall: o,
|
|
5140
|
-
calls: (h = e.data.calls) == null ? void 0 : h.map((
|
|
5159
|
+
calls: (h = e.data.calls) == null ? void 0 : h.map((f) => this.mapExtensionCall(e, f))
|
|
5141
5160
|
},
|
|
5142
5161
|
reason: r
|
|
5143
5162
|
}, n;
|
|
@@ -5231,11 +5250,11 @@ class ce {
|
|
|
5231
5250
|
*/
|
|
5232
5251
|
static configureUTCForObject(e, r, n, o) {
|
|
5233
5252
|
const i = (n - o * 60) * 1e3, u = Date.now() - i, h = {};
|
|
5234
|
-
return r.forEach((
|
|
5235
|
-
const c = e[
|
|
5253
|
+
return r.forEach((f) => {
|
|
5254
|
+
const c = e[f.key], l = f.key;
|
|
5236
5255
|
if (c !== 0 && typeof c == "number" && !isNaN(c)) {
|
|
5237
5256
|
let p = c;
|
|
5238
|
-
|
|
5257
|
+
f.format === "ms" && (p = Math.floor(p / 1e3));
|
|
5239
5258
|
const a = (p - o * 60) * 1e3;
|
|
5240
5259
|
this.assignProperty(h, `${l}_UTC`, a), this.assignProperty(h, `${l}_UTC_CLIENT`, a + u);
|
|
5241
5260
|
} else
|
|
@@ -5246,8 +5265,8 @@ class ce {
|
|
|
5246
5265
|
};
|
|
5247
5266
|
}
|
|
5248
5267
|
}
|
|
5249
|
-
var
|
|
5250
|
-
class
|
|
5268
|
+
var Or = /* @__PURE__ */ ((t) => (t.UPDATE_MONITORED_EXTENSIONS = "updateMonitoredExtensions", t.KEEP_ALIVE = "keepAlive", t))(Or || {});
|
|
5269
|
+
class Jo {
|
|
5251
5270
|
constructor(e) {
|
|
5252
5271
|
H(this, "io");
|
|
5253
5272
|
H(this, "ioFunction");
|
|
@@ -5260,7 +5279,7 @@ class Ho {
|
|
|
5260
5279
|
}
|
|
5261
5280
|
getSocketIoFunction(e) {
|
|
5262
5281
|
const r = e.split("v="), n = "v".concat(r[r.length - 1]).replaceAll(".", "_");
|
|
5263
|
-
this.ioFunction =
|
|
5282
|
+
this.ioFunction = jo.getSocketVersion(n);
|
|
5264
5283
|
}
|
|
5265
5284
|
initSocketConnection() {
|
|
5266
5285
|
const e = this.eventsSdkClass.authClass.token, r = this.eventsSdkClass.options.protocol, n = this.eventsSdkClass.server;
|
|
@@ -5315,7 +5334,7 @@ class Ho {
|
|
|
5315
5334
|
initKeepAlive() {
|
|
5316
5335
|
this.clearKeepAliveInterval(), this.keepAliveInterval = setInterval(async () => {
|
|
5317
5336
|
if ((/* @__PURE__ */ new Date()).getTime() > this.lastEventTimestamp + this.eventsSdkClass.options.keepAliveTimeout && this.io && this.eventsSdkClass.authClass.token) {
|
|
5318
|
-
this.eventsSdkClass.emit(
|
|
5337
|
+
this.eventsSdkClass.emit(Or.KEEP_ALIVE, this.eventsSdkClass.authClass.token), this.eventsSdkClass.loggerClass.log({
|
|
5319
5338
|
Message: `Keep alive event emitted with this token: ${this.eventsSdkClass.authClass.token}`,
|
|
5320
5339
|
ActionName: at.WSCONNECT,
|
|
5321
5340
|
isShowClient: !1,
|
|
@@ -5337,10 +5356,10 @@ class Ho {
|
|
|
5337
5356
|
this.eventsSdkClass.eventEmitterClass.emit(z.LOGIN_SUCCESS, e);
|
|
5338
5357
|
}
|
|
5339
5358
|
onQueueEvent(e) {
|
|
5340
|
-
this.eventsSdkClass.eventEmitterClass.emit(z.QUEUE_EVENT,
|
|
5359
|
+
this.eventsSdkClass.eventEmitterClass.emit(z.QUEUE_EVENT, pe.mapQueueEvent(e));
|
|
5341
5360
|
}
|
|
5342
5361
|
onExtensionEvent(e) {
|
|
5343
|
-
const r =
|
|
5362
|
+
const r = pe.mapExtensionEvent(e);
|
|
5344
5363
|
r && this.eventsSdkClass.eventEmitterClass.emit(z.EXTENSION_EVENT, r);
|
|
5345
5364
|
}
|
|
5346
5365
|
onDialerEvent(e) {
|
|
@@ -5350,7 +5369,7 @@ class Ho {
|
|
|
5350
5369
|
this.eventsSdkClass.eventEmitterClass.emit(z.LOGIN_STATUS, e);
|
|
5351
5370
|
}
|
|
5352
5371
|
onAllExtensionStatus(e) {
|
|
5353
|
-
const r =
|
|
5372
|
+
const r = pe.mapAllExtensionStatus(e);
|
|
5354
5373
|
this.eventsSdkClass.eventEmitterClass.emit(z.ALL_EXTENSION_STATUS, r);
|
|
5355
5374
|
}
|
|
5356
5375
|
onAllDialerStatus(e) {
|
|
@@ -5419,7 +5438,7 @@ class Ho {
|
|
|
5419
5438
|
);
|
|
5420
5439
|
}
|
|
5421
5440
|
}
|
|
5422
|
-
class
|
|
5441
|
+
class Vo {
|
|
5423
5442
|
constructor(e) {
|
|
5424
5443
|
H(this, "storageLogger");
|
|
5425
5444
|
this.eventsSdkClass = e, this.eventsSdkClass = e;
|
|
@@ -5435,15 +5454,13 @@ class Jo {
|
|
|
5435
5454
|
this.eventsSdkClass.options.loggerSocketConnection && (e = this.eventsSdkClass.options.loggerSocketConnection), this.eventsSdkClass.socketIoClass.ioFunction && !e && (e = this.eventsSdkClass.socketIoClass.ioFunction(
|
|
5436
5455
|
this.eventsSdkClass.options.loggerServer,
|
|
5437
5456
|
this.eventsSdkClass.options.loggerConnectOptions
|
|
5438
|
-
)), e && (this.storageLogger = new
|
|
5457
|
+
)), e && (this.storageLogger = new Io({
|
|
5439
5458
|
socket: e,
|
|
5440
5459
|
loggerOptions: this.eventsSdkClass.options.loggerConfig
|
|
5441
5460
|
}));
|
|
5442
5461
|
}
|
|
5443
5462
|
stop() {
|
|
5444
|
-
|
|
5445
|
-
throw new Error("Storage Logger doesn't exists!");
|
|
5446
|
-
this.storageLogger.stop();
|
|
5463
|
+
this.storageLogger && this.storageLogger.stop();
|
|
5447
5464
|
}
|
|
5448
5465
|
log(e) {
|
|
5449
5466
|
this.storageLogger ? e.Level === tt.INFO ? this.storageLogger.log(e) : e.Level === tt.ERROR && this.storageLogger.error(e) : e.Level === tt.INFO ? console.log(e) : e.Level === tt.ERROR && console.error(e);
|
|
@@ -5466,7 +5483,7 @@ class Jo {
|
|
|
5466
5483
|
});
|
|
5467
5484
|
}
|
|
5468
5485
|
}
|
|
5469
|
-
class
|
|
5486
|
+
class $o {
|
|
5470
5487
|
constructor(e) {
|
|
5471
5488
|
H(this, "listeners", {
|
|
5472
5489
|
[z.ALL_EXTENSION_STATUS]: [],
|
|
@@ -5510,7 +5527,7 @@ class Vo {
|
|
|
5510
5527
|
this.allListeners.forEach((o) => o(n));
|
|
5511
5528
|
}
|
|
5512
5529
|
}
|
|
5513
|
-
class
|
|
5530
|
+
class Yo {
|
|
5514
5531
|
constructor(e) {
|
|
5515
5532
|
H(this, "options");
|
|
5516
5533
|
H(this, "servers", []);
|
|
@@ -5521,9 +5538,9 @@ class Go {
|
|
|
5521
5538
|
H(this, "mainServer");
|
|
5522
5539
|
H(this, "alreadyAttemptedOtherServers", []);
|
|
5523
5540
|
H(this, "authClass", new Ro(this));
|
|
5524
|
-
H(this, "socketIoClass", new
|
|
5525
|
-
H(this, "loggerClass", new
|
|
5526
|
-
H(this, "eventEmitterClass", new
|
|
5541
|
+
H(this, "socketIoClass", new Jo(this));
|
|
5542
|
+
H(this, "loggerClass", new Vo(this));
|
|
5543
|
+
H(this, "eventEmitterClass", new $o(this));
|
|
5527
5544
|
H(this, "getCircularReplacer", () => {
|
|
5528
5545
|
const e = /* @__PURE__ */ new WeakSet();
|
|
5529
5546
|
return (r, n) => {
|
|
@@ -5538,7 +5555,7 @@ class Go {
|
|
|
5538
5555
|
};
|
|
5539
5556
|
});
|
|
5540
5557
|
this.options = {
|
|
5541
|
-
...
|
|
5558
|
+
...Bo,
|
|
5542
5559
|
...e
|
|
5543
5560
|
};
|
|
5544
5561
|
}
|
|
@@ -5591,18 +5608,18 @@ class Go {
|
|
|
5591
5608
|
}
|
|
5592
5609
|
}
|
|
5593
5610
|
export {
|
|
5594
|
-
|
|
5595
|
-
|
|
5611
|
+
Mo as CallStatusEnum,
|
|
5612
|
+
qo as CallTypeEnum,
|
|
5596
5613
|
mt as ConnectionStatusEnum,
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5614
|
+
zo as DialerTypeEnum,
|
|
5615
|
+
Xo as DirectionEnum,
|
|
5616
|
+
Wo as DoNotCallMeStatusCodeEnum,
|
|
5600
5617
|
z as EventsEnum,
|
|
5601
|
-
|
|
5602
|
-
|
|
5618
|
+
Nr as ExtensionEventReasonEnum,
|
|
5619
|
+
Ko as ExtensionHangupCauseEnum,
|
|
5603
5620
|
it as LoginType,
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5621
|
+
Ho as QueueEventReasonEnum,
|
|
5622
|
+
Or as ServerListenerEventsEnum,
|
|
5623
|
+
Yo as default
|
|
5607
5624
|
};
|
|
5608
5625
|
//# sourceMappingURL=voicenter-events-sdk.es.js.map
|