everest-npm-features 0.0.58 → 0.0.59
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/{PlayArrow-BRz9FV4L.js → PlayArrow-BlkZJiHn.js} +1 -1
- package/dist/{auth-CD7qxhDF.js → auth-WhDJHZtr.js} +1 -1
- package/dist/{bank-C2LtDonX.js → bank-BaOrdTcI.js} +1 -1
- package/dist/components/RocketRamp/MinimalKyc/form.js +5 -4
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
- package/dist/components/RocketRamp/Player/Buy/form.js +4 -4
- package/dist/components/RocketRamp/Player/Buy/index.js +5 -5
- package/dist/components/RocketRamp/Player/Dashboard/index.js +2 -2
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
- package/dist/components/RocketRamp/Player/Sell/form.js +4 -4
- package/dist/components/RocketRamp/Player/Sell/index.js +11 -10
- package/dist/components/RocketRamp/Player/SignIn/index.js +2 -2
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/index.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
- package/dist/components/RocketRamp/ResetPassword/index.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/index.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
- package/dist/components/RocketRamp/Transactions/index.js +2 -2
- package/dist/components/Shared/FullKyc/edd.js +5 -4
- package/dist/components/Shared/FullKyc/index.js +4 -4
- package/dist/components/Shared/FullKyc/pep.js +1 -1
- package/dist/components/Shared/FullKyc/personalDetails.js +2 -2
- package/dist/components/Shared/FullKyc/userInfo.js +3 -3
- package/dist/components/Shared/MinimalKyc/index.js +2 -2
- package/dist/components/Shared/Sumsub/index.d.ts +5 -0
- package/dist/components/Shared/Sumsub/index.js +83 -0
- package/dist/components/Wallet/Account/createIban.js +4 -3
- package/dist/components/Wallet/Account/ibanItem.js +5 -4
- package/dist/components/Wallet/Account/index.js +6 -5
- package/dist/components/Wallet/Account/sendIban.js +11 -11
- package/dist/components/Wallet/Buy/confirmTransaction.js +6 -5
- package/dist/components/Wallet/Buy/form.js +4 -4
- package/dist/components/Wallet/Buy/index.js +6 -6
- package/dist/components/Wallet/Deposit/index.js +4 -3
- package/dist/components/Wallet/EnterpriseKyc/edd.js +4 -3
- package/dist/components/Wallet/EnterpriseKyc/index.js +3 -3
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +13 -12
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +4 -3
- package/dist/components/Wallet/EnterpriseKyc/verify.js +4 -3
- package/dist/components/Wallet/History/index.js +2 -2
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +12 -11
- package/dist/components/Wallet/Portfolio/index.js +7 -6
- package/dist/components/Wallet/Profile/documents.js +15 -15
- package/dist/components/Wallet/Profile/index.js +4 -3
- package/dist/components/Wallet/Profile/storage.js +12 -12
- package/dist/components/Wallet/Receive/index.js +2 -2
- package/dist/components/Wallet/Sell/confirmTransaction.js +5 -4
- package/dist/components/Wallet/Sell/form.js +4 -4
- package/dist/components/Wallet/Sell/index.js +6 -6
- package/dist/components/Wallet/Send/index.js +14 -13
- package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
- package/dist/components/Wallet/Shared/BankSelect/index.js +3 -3
- package/dist/components/Wallet/Shared/CardCorp/index.js +4 -3
- package/dist/components/Wallet/Shared/addBank.js +5 -4
- package/dist/components/Wallet/Shared/connectPlaidBank.js +2 -2
- package/dist/components/Wallet/Shared/manualSend.js +5 -4
- package/dist/components/Wallet/SignIn/index.js +2 -2
- package/dist/components/Wallet/SignUp/index.js +2 -2
- package/dist/components/Wallet/Stake/index.js +6 -5
- package/dist/components/Wallet/Swap/form.js +7 -6
- package/dist/components/Wallet/Swap/index.js +5 -5
- package/dist/components/Wallet/Withdraw/bankSelect.js +4 -4
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +3 -3
- package/dist/components/Wallet/Withdraw/form.js +4 -4
- package/dist/components/Wallet/Withdraw/index.js +5 -5
- package/dist/{constants-Styrbvke.js → constants-DREDnCMu.js} +482 -481
- package/dist/{cryptoAssets-CFtzXGbk.js → cryptoAssets-DbyDgq4J.js} +1 -1
- package/dist/{index-DAla2tRU.js → index-BXutc9ik.js} +8 -7
- package/dist/index-CWoxdH_Z.js +543 -0
- package/dist/{index-Du_jGnyO.js → index-CuPCW3XC.js} +29 -29
- package/dist/{index-DM6mBQ7L.js → index-DJ7xuxBy.js} +9 -8
- package/dist/{index-AVcxYfIV.js → index-DV1dVcrY.js} +31 -30
- package/dist/{index-Da-BlrMH.js → index-DYP5Ex_T.js} +9 -8
- package/dist/{index-CKjKCXeQ.js → index-PoMNqntN.js} +4 -4
- package/dist/index.esm-I_Bp2YLf.js +224 -0
- package/dist/kyc-D4s_B9Cf.js +33 -0
- package/dist/main.js +7 -7
- package/dist/{order-uVUTqaQ2.js → order-DGBbo_Ox.js} +1 -1
- package/dist/{stake-Dgx86wzO.js → stake-CdMc5H7D.js} +1 -1
- package/dist/util/constants.d.ts +4 -0
- package/dist/util/constants.js +104 -101
- package/dist/{wallet-BkdExH6h.js → wallet-DvfdQOju.js} +1 -1
- package/package.json +4 -2
- package/dist/index-g4Gy1BHB.js +0 -503
- package/dist/kyc-Ee4qAZby.js +0 -26
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
const fs = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Fi = new Uint8Array(256);
|
|
2
2
|
for (let r = 0; r < fs.length; r++)
|
|
3
3
|
Fi[fs.charCodeAt(r)] = r;
|
|
4
|
-
process.env.NODE_ENV !== "production" && typeof Proxy < "u";
|
|
5
4
|
/**
|
|
6
5
|
* @license
|
|
7
6
|
* Copyright 2017 Google LLC
|
|
@@ -34,14 +33,14 @@ const js = function(r) {
|
|
|
34
33
|
if (l < 128)
|
|
35
34
|
e[h++] = String.fromCharCode(l);
|
|
36
35
|
else if (l > 191 && l < 224) {
|
|
37
|
-
const
|
|
38
|
-
e[h++] = String.fromCharCode((l & 31) << 6 |
|
|
36
|
+
const d = r[i++];
|
|
37
|
+
e[h++] = String.fromCharCode((l & 31) << 6 | d & 63);
|
|
39
38
|
} else if (l > 239 && l < 365) {
|
|
40
|
-
const
|
|
39
|
+
const d = r[i++], m = r[i++], S = r[i++], A = ((l & 7) << 18 | (d & 63) << 12 | (m & 63) << 6 | S & 63) - 65536;
|
|
41
40
|
e[h++] = String.fromCharCode(55296 + (A >> 10)), e[h++] = String.fromCharCode(56320 + (A & 1023));
|
|
42
41
|
} else {
|
|
43
|
-
const
|
|
44
|
-
e[h++] = String.fromCharCode((l & 15) << 12 | (
|
|
42
|
+
const d = r[i++], m = r[i++];
|
|
43
|
+
e[h++] = String.fromCharCode((l & 15) << 12 | (d & 63) << 6 | m & 63);
|
|
45
44
|
}
|
|
46
45
|
}
|
|
47
46
|
return e.join("");
|
|
@@ -104,9 +103,9 @@ const js = function(r) {
|
|
|
104
103
|
this.init_();
|
|
105
104
|
const i = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, h = [];
|
|
106
105
|
for (let l = 0; l < r.length; l += 3) {
|
|
107
|
-
const
|
|
108
|
-
let
|
|
109
|
-
A || (
|
|
106
|
+
const d = r[l], m = l + 1 < r.length, S = m ? r[l + 1] : 0, A = l + 2 < r.length, R = A ? r[l + 2] : 0, K = d >> 2, Q = (d & 3) << 4 | S >> 4;
|
|
107
|
+
let L = (S & 15) << 2 | R >> 6, Y = R & 63;
|
|
108
|
+
A || (Y = 64, m || (L = 64)), h.push(i[K], i[Q], i[L], i[Y]);
|
|
110
109
|
}
|
|
111
110
|
return h.join("");
|
|
112
111
|
},
|
|
@@ -151,19 +150,19 @@ const js = function(r) {
|
|
|
151
150
|
this.init_();
|
|
152
151
|
const i = e ? this.charToByteMapWebSafe_ : this.charToByteMap_, h = [];
|
|
153
152
|
for (let l = 0; l < r.length; ) {
|
|
154
|
-
const
|
|
153
|
+
const d = i[r.charAt(l++)], S = l < r.length ? i[r.charAt(l)] : 0;
|
|
155
154
|
++l;
|
|
156
155
|
const R = l < r.length ? i[r.charAt(l)] : 64;
|
|
157
156
|
++l;
|
|
158
157
|
const Q = l < r.length ? i[r.charAt(l)] : 64;
|
|
159
|
-
if (++l,
|
|
158
|
+
if (++l, d == null || S == null || R == null || Q == null)
|
|
160
159
|
throw new ji();
|
|
161
|
-
const
|
|
162
|
-
if (h.push(
|
|
163
|
-
const
|
|
164
|
-
if (h.push(
|
|
165
|
-
const
|
|
166
|
-
h.push(
|
|
160
|
+
const L = d << 2 | S >> 4;
|
|
161
|
+
if (h.push(L), R !== 64) {
|
|
162
|
+
const Y = S << 4 & 240 | R >> 2;
|
|
163
|
+
if (h.push(Y), Q !== 64) {
|
|
164
|
+
const U = R << 6 & 192 | Q;
|
|
165
|
+
h.push(U);
|
|
167
166
|
}
|
|
168
167
|
}
|
|
169
168
|
}
|
|
@@ -210,8 +209,8 @@ function Qi() {
|
|
|
210
209
|
}, l.onupgradeneeded = () => {
|
|
211
210
|
i = !1;
|
|
212
211
|
}, l.onerror = () => {
|
|
213
|
-
var
|
|
214
|
-
e(((
|
|
212
|
+
var d;
|
|
213
|
+
e(((d = l.error) === null || d === void 0 ? void 0 : d.message) || "");
|
|
215
214
|
};
|
|
216
215
|
} catch (i) {
|
|
217
216
|
e(i);
|
|
@@ -235,9 +234,9 @@ function Qi() {
|
|
|
235
234
|
* limitations under the License.
|
|
236
235
|
*/
|
|
237
236
|
const Wi = "FirebaseError";
|
|
238
|
-
class
|
|
237
|
+
class Lt extends Error {
|
|
239
238
|
constructor(e, i, h) {
|
|
240
|
-
super(i), this.code = e, this.customData = h, this.name = Wi, Object.setPrototypeOf(this,
|
|
239
|
+
super(i), this.code = e, this.customData = h, this.name = Wi, Object.setPrototypeOf(this, Lt.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Gs.prototype.create);
|
|
241
240
|
}
|
|
242
241
|
}
|
|
243
242
|
class Gs {
|
|
@@ -245,17 +244,17 @@ class Gs {
|
|
|
245
244
|
this.service = e, this.serviceName = i, this.errors = h;
|
|
246
245
|
}
|
|
247
246
|
create(e, ...i) {
|
|
248
|
-
const h = i[0] || {}, l = `${this.service}/${e}`,
|
|
249
|
-
return new
|
|
247
|
+
const h = i[0] || {}, l = `${this.service}/${e}`, d = this.errors[e], m = d ? Ki(d, h) : "Error", S = `${this.serviceName}: ${m} (${l}).`;
|
|
248
|
+
return new Lt(l, S, h);
|
|
250
249
|
}
|
|
251
250
|
}
|
|
252
|
-
function
|
|
253
|
-
return r.replace(
|
|
251
|
+
function Ki(r, e) {
|
|
252
|
+
return r.replace(Yi, (i, h) => {
|
|
254
253
|
const l = e[h];
|
|
255
254
|
return l != null ? String(l) : `<${h}?>`;
|
|
256
255
|
});
|
|
257
256
|
}
|
|
258
|
-
const
|
|
257
|
+
const Yi = /\{\$([^}]+)}/g;
|
|
259
258
|
class ye {
|
|
260
259
|
/**
|
|
261
260
|
*
|
|
@@ -295,23 +294,23 @@ class ye {
|
|
|
295
294
|
* See the License for the specific language governing permissions and
|
|
296
295
|
* limitations under the License.
|
|
297
296
|
*/
|
|
298
|
-
var
|
|
297
|
+
var C;
|
|
299
298
|
(function(r) {
|
|
300
299
|
r[r.DEBUG = 0] = "DEBUG", r[r.VERBOSE = 1] = "VERBOSE", r[r.INFO = 2] = "INFO", r[r.WARN = 3] = "WARN", r[r.ERROR = 4] = "ERROR", r[r.SILENT = 5] = "SILENT";
|
|
301
|
-
})(
|
|
300
|
+
})(C || (C = {}));
|
|
302
301
|
const $i = {
|
|
303
|
-
debug:
|
|
304
|
-
verbose:
|
|
305
|
-
info:
|
|
306
|
-
warn:
|
|
307
|
-
error:
|
|
308
|
-
silent:
|
|
309
|
-
}, Xi =
|
|
310
|
-
[
|
|
311
|
-
[
|
|
312
|
-
[
|
|
313
|
-
[
|
|
314
|
-
[
|
|
302
|
+
debug: C.DEBUG,
|
|
303
|
+
verbose: C.VERBOSE,
|
|
304
|
+
info: C.INFO,
|
|
305
|
+
warn: C.WARN,
|
|
306
|
+
error: C.ERROR,
|
|
307
|
+
silent: C.SILENT
|
|
308
|
+
}, Xi = C.INFO, qi = {
|
|
309
|
+
[C.DEBUG]: "log",
|
|
310
|
+
[C.VERBOSE]: "log",
|
|
311
|
+
[C.INFO]: "info",
|
|
312
|
+
[C.WARN]: "warn",
|
|
313
|
+
[C.ERROR]: "error"
|
|
315
314
|
}, zi = (r, e, ...i) => {
|
|
316
315
|
if (e < r.logLevel)
|
|
317
316
|
return;
|
|
@@ -335,7 +334,7 @@ class Qs {
|
|
|
335
334
|
return this._logLevel;
|
|
336
335
|
}
|
|
337
336
|
set logLevel(e) {
|
|
338
|
-
if (!(e in
|
|
337
|
+
if (!(e in C))
|
|
339
338
|
throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);
|
|
340
339
|
this._logLevel = e;
|
|
341
340
|
}
|
|
@@ -361,19 +360,19 @@ class Qs {
|
|
|
361
360
|
* The functions below are all based on the `console` interface
|
|
362
361
|
*/
|
|
363
362
|
debug(...e) {
|
|
364
|
-
this._userLogHandler && this._userLogHandler(this,
|
|
363
|
+
this._userLogHandler && this._userLogHandler(this, C.DEBUG, ...e), this._logHandler(this, C.DEBUG, ...e);
|
|
365
364
|
}
|
|
366
365
|
log(...e) {
|
|
367
|
-
this._userLogHandler && this._userLogHandler(this,
|
|
366
|
+
this._userLogHandler && this._userLogHandler(this, C.VERBOSE, ...e), this._logHandler(this, C.VERBOSE, ...e);
|
|
368
367
|
}
|
|
369
368
|
info(...e) {
|
|
370
|
-
this._userLogHandler && this._userLogHandler(this,
|
|
369
|
+
this._userLogHandler && this._userLogHandler(this, C.INFO, ...e), this._logHandler(this, C.INFO, ...e);
|
|
371
370
|
}
|
|
372
371
|
warn(...e) {
|
|
373
|
-
this._userLogHandler && this._userLogHandler(this,
|
|
372
|
+
this._userLogHandler && this._userLogHandler(this, C.WARN, ...e), this._logHandler(this, C.WARN, ...e);
|
|
374
373
|
}
|
|
375
374
|
error(...e) {
|
|
376
|
-
this._userLogHandler && this._userLogHandler(this,
|
|
375
|
+
this._userLogHandler && this._userLogHandler(this, C.ERROR, ...e), this._logHandler(this, C.ERROR, ...e);
|
|
377
376
|
}
|
|
378
377
|
}
|
|
379
378
|
const Ji = (r, e) => e.some((i) => r instanceof i);
|
|
@@ -394,17 +393,17 @@ function tr() {
|
|
|
394
393
|
IDBCursor.prototype.continuePrimaryKey
|
|
395
394
|
]);
|
|
396
395
|
}
|
|
397
|
-
const Ws = /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ new WeakMap(),
|
|
396
|
+
const Ws = /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ new WeakMap(), Ks = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), an = /* @__PURE__ */ new WeakMap();
|
|
398
397
|
function er(r) {
|
|
399
398
|
const e = new Promise((i, h) => {
|
|
400
399
|
const l = () => {
|
|
401
|
-
r.removeEventListener("success",
|
|
402
|
-
},
|
|
400
|
+
r.removeEventListener("success", d), r.removeEventListener("error", m);
|
|
401
|
+
}, d = () => {
|
|
403
402
|
i(gt(r.result)), l();
|
|
404
403
|
}, m = () => {
|
|
405
404
|
h(r.error), l();
|
|
406
405
|
};
|
|
407
|
-
r.addEventListener("success",
|
|
406
|
+
r.addEventListener("success", d), r.addEventListener("error", m);
|
|
408
407
|
});
|
|
409
408
|
return e.then((i) => {
|
|
410
409
|
i instanceof IDBCursor && Ws.set(i, r);
|
|
@@ -416,13 +415,13 @@ function nr(r) {
|
|
|
416
415
|
return;
|
|
417
416
|
const e = new Promise((i, h) => {
|
|
418
417
|
const l = () => {
|
|
419
|
-
r.removeEventListener("complete",
|
|
420
|
-
},
|
|
418
|
+
r.removeEventListener("complete", d), r.removeEventListener("error", m), r.removeEventListener("abort", m);
|
|
419
|
+
}, d = () => {
|
|
421
420
|
i(), l();
|
|
422
421
|
}, m = () => {
|
|
423
422
|
h(r.error || new DOMException("AbortError", "AbortError")), l();
|
|
424
423
|
};
|
|
425
|
-
r.addEventListener("complete",
|
|
424
|
+
r.addEventListener("complete", d), r.addEventListener("error", m), r.addEventListener("abort", m);
|
|
426
425
|
});
|
|
427
426
|
rn.set(r, e);
|
|
428
427
|
}
|
|
@@ -432,7 +431,7 @@ let on = {
|
|
|
432
431
|
if (e === "done")
|
|
433
432
|
return rn.get(r);
|
|
434
433
|
if (e === "objectStoreNames")
|
|
435
|
-
return r.objectStoreNames ||
|
|
434
|
+
return r.objectStoreNames || Ks.get(r);
|
|
436
435
|
if (e === "store")
|
|
437
436
|
return i.objectStoreNames[1] ? void 0 : i.objectStore(i.objectStoreNames[0]);
|
|
438
437
|
}
|
|
@@ -451,7 +450,7 @@ function sr(r) {
|
|
|
451
450
|
function ir(r) {
|
|
452
451
|
return r === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...i) {
|
|
453
452
|
const h = r.call(tn(this), e, ...i);
|
|
454
|
-
return
|
|
453
|
+
return Ks.set(h, e.sort ? e.sort() : [e]), gt(h);
|
|
455
454
|
} : tr().includes(r) ? function(...e) {
|
|
456
455
|
return r.apply(tn(this), e), gt(Ws.get(this));
|
|
457
456
|
} : function(...e) {
|
|
@@ -470,7 +469,7 @@ function gt(r) {
|
|
|
470
469
|
return e !== r && (Ze.set(r, e), an.set(e, r)), e;
|
|
471
470
|
}
|
|
472
471
|
const tn = (r) => an.get(r);
|
|
473
|
-
function or(r, e, { blocked: i, upgrade: h, blocking: l, terminated:
|
|
472
|
+
function or(r, e, { blocked: i, upgrade: h, blocking: l, terminated: d } = {}) {
|
|
474
473
|
const m = indexedDB.open(r, e), S = gt(m);
|
|
475
474
|
return h && m.addEventListener("upgradeneeded", (A) => {
|
|
476
475
|
h(gt(m.result), A.oldVersion, A.newVersion, gt(m.transaction), A);
|
|
@@ -480,7 +479,7 @@ function or(r, e, { blocked: i, upgrade: h, blocking: l, terminated: _ } = {}) {
|
|
|
480
479
|
A.newVersion,
|
|
481
480
|
A
|
|
482
481
|
)), S.then((A) => {
|
|
483
|
-
|
|
482
|
+
d && A.addEventListener("close", () => d()), l && A.addEventListener("versionchange", (R) => l(R.oldVersion, R.newVersion, R));
|
|
484
483
|
}).catch(() => {
|
|
485
484
|
}), S;
|
|
486
485
|
}
|
|
@@ -496,7 +495,7 @@ function gs(r, e) {
|
|
|
496
495
|
!(i in (h ? IDBIndex : IDBObjectStore).prototype) || !(l || hr.includes(i))
|
|
497
496
|
)
|
|
498
497
|
return;
|
|
499
|
-
const
|
|
498
|
+
const d = async function(m, ...S) {
|
|
500
499
|
const A = this.transaction(m, l ? "readwrite" : "readonly");
|
|
501
500
|
let R = A.store;
|
|
502
501
|
return h && (R = R.index(S.shift())), (await Promise.all([
|
|
@@ -504,7 +503,7 @@ function gs(r, e) {
|
|
|
504
503
|
l && A.done
|
|
505
504
|
]))[0];
|
|
506
505
|
};
|
|
507
|
-
return en.set(e,
|
|
506
|
+
return en.set(e, d), d;
|
|
508
507
|
}
|
|
509
508
|
sr((r) => ({
|
|
510
509
|
...r,
|
|
@@ -547,7 +546,7 @@ function lr(r) {
|
|
|
547
546
|
const e = r.getComponent();
|
|
548
547
|
return (e == null ? void 0 : e.type) === "VERSION";
|
|
549
548
|
}
|
|
550
|
-
const hn = "@firebase/app",
|
|
549
|
+
const hn = "@firebase/app", _s = "0.13.2";
|
|
551
550
|
/**
|
|
552
551
|
* @license
|
|
553
552
|
* Copyright 2019 Google LLC
|
|
@@ -564,15 +563,15 @@ const hn = "@firebase/app", ds = "0.13.2";
|
|
|
564
563
|
* See the License for the specific language governing permissions and
|
|
565
564
|
* limitations under the License.
|
|
566
565
|
*/
|
|
567
|
-
const ct = new Qs("@firebase/app"), ur = "@firebase/app-compat", fr = "@firebase/analytics-compat", Er = "@firebase/analytics", pr = "@firebase/app-check-compat", gr = "@firebase/app-check",
|
|
566
|
+
const ct = new Qs("@firebase/app"), ur = "@firebase/app-compat", fr = "@firebase/analytics-compat", Er = "@firebase/analytics", pr = "@firebase/app-check-compat", gr = "@firebase/app-check", _r = "@firebase/auth", dr = "@firebase/auth-compat", Tr = "@firebase/database", mr = "@firebase/data-connect", Sr = "@firebase/database-compat", yr = "@firebase/functions", Ar = "@firebase/functions-compat", Rr = "@firebase/installations", vr = "@firebase/installations-compat", Ir = "@firebase/messaging", wr = "@firebase/messaging-compat", Dr = "@firebase/performance", Ur = "@firebase/performance-compat", Or = "@firebase/remote-config", Cr = "@firebase/remote-config-compat", Nr = "@firebase/storage", Lr = "@firebase/storage-compat", Pr = "@firebase/firestore", br = "@firebase/ai", Mr = "@firebase/firestore-compat", Br = "firebase", Vr = "11.10.0", Fr = {
|
|
568
567
|
[hn]: "fire-core",
|
|
569
568
|
[ur]: "fire-core-compat",
|
|
570
569
|
[Er]: "fire-analytics",
|
|
571
570
|
[fr]: "fire-analytics-compat",
|
|
572
571
|
[gr]: "fire-app-check",
|
|
573
572
|
[pr]: "fire-app-check-compat",
|
|
574
|
-
[
|
|
575
|
-
[
|
|
573
|
+
[_r]: "fire-auth",
|
|
574
|
+
[dr]: "fire-auth-compat",
|
|
576
575
|
[Tr]: "fire-rtdb",
|
|
577
576
|
[mr]: "fire-data-connect",
|
|
578
577
|
[Sr]: "fire-rtdb-compat",
|
|
@@ -583,12 +582,12 @@ const ct = new Qs("@firebase/app"), ur = "@firebase/app-compat", fr = "@firebase
|
|
|
583
582
|
[Ir]: "fire-fcm",
|
|
584
583
|
[wr]: "fire-fcm-compat",
|
|
585
584
|
[Dr]: "fire-perf",
|
|
586
|
-
[
|
|
587
|
-
[
|
|
588
|
-
[
|
|
589
|
-
[
|
|
590
|
-
[
|
|
591
|
-
[
|
|
585
|
+
[Ur]: "fire-perf-compat",
|
|
586
|
+
[Or]: "fire-rc",
|
|
587
|
+
[Cr]: "fire-rc-compat",
|
|
588
|
+
[Nr]: "fire-gcs",
|
|
589
|
+
[Lr]: "fire-gcs-compat",
|
|
590
|
+
[Pr]: "fire-fst",
|
|
592
591
|
[Mr]: "fire-fst-compat",
|
|
593
592
|
[br]: "fire-vertex",
|
|
594
593
|
"fire-js": "fire-js",
|
|
@@ -611,7 +610,7 @@ const ct = new Qs("@firebase/app"), ur = "@firebase/app-compat", fr = "@firebase
|
|
|
611
610
|
* See the License for the specific language governing permissions and
|
|
612
611
|
* limitations under the License.
|
|
613
612
|
*/
|
|
614
|
-
const xr = /* @__PURE__ */ new Map(), kr = /* @__PURE__ */ new Map(),
|
|
613
|
+
const xr = /* @__PURE__ */ new Map(), kr = /* @__PURE__ */ new Map(), ds = /* @__PURE__ */ new Map();
|
|
615
614
|
function Ts(r, e) {
|
|
616
615
|
try {
|
|
617
616
|
r.container.addComponent(e);
|
|
@@ -621,9 +620,9 @@ function Ts(r, e) {
|
|
|
621
620
|
}
|
|
622
621
|
function Ae(r) {
|
|
623
622
|
const e = r.name;
|
|
624
|
-
if (
|
|
623
|
+
if (ds.has(e))
|
|
625
624
|
return ct.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
626
|
-
|
|
625
|
+
ds.set(e, r);
|
|
627
626
|
for (const i of xr.values())
|
|
628
627
|
Ts(i, r);
|
|
629
628
|
for (const i of kr.values())
|
|
@@ -682,16 +681,16 @@ const Hr = {
|
|
|
682
681
|
* limitations under the License.
|
|
683
682
|
*/
|
|
684
683
|
const Gr = Vr;
|
|
685
|
-
function
|
|
684
|
+
function Ct(r, e, i) {
|
|
686
685
|
var h;
|
|
687
686
|
let l = (h = Fr[r]) !== null && h !== void 0 ? h : r;
|
|
688
687
|
i && (l += `-${i}`);
|
|
689
|
-
const
|
|
690
|
-
if (
|
|
688
|
+
const d = l.match(/\s|\//), m = e.match(/\s|\//);
|
|
689
|
+
if (d || m) {
|
|
691
690
|
const S = [
|
|
692
691
|
`Unable to register library "${l}" with version "${e}":`
|
|
693
692
|
];
|
|
694
|
-
|
|
693
|
+
d && S.push(`library name "${l}" contains illegal characters (whitespace or "/")`), d && m && S.push("and"), m && S.push(`version name "${e}" contains illegal characters (whitespace or "/")`), ct.warn(S.join(" "));
|
|
695
694
|
return;
|
|
696
695
|
}
|
|
697
696
|
Ae(new ye(
|
|
@@ -719,7 +718,7 @@ function Nt(r, e, i) {
|
|
|
719
718
|
*/
|
|
720
719
|
const Qr = "firebase-heartbeat-database", Wr = 1, Zt = "firebase-heartbeat-store";
|
|
721
720
|
let nn = null;
|
|
722
|
-
function
|
|
721
|
+
function Ys() {
|
|
723
722
|
return nn || (nn = or(Qr, Wr, {
|
|
724
723
|
upgrade: (r, e) => {
|
|
725
724
|
switch (e) {
|
|
@@ -737,12 +736,12 @@ function Ks() {
|
|
|
737
736
|
});
|
|
738
737
|
})), nn;
|
|
739
738
|
}
|
|
740
|
-
async function
|
|
739
|
+
async function Kr(r) {
|
|
741
740
|
try {
|
|
742
|
-
const i = (await
|
|
741
|
+
const i = (await Ys()).transaction(Zt), h = await i.objectStore(Zt).get($s(r));
|
|
743
742
|
return await i.done, h;
|
|
744
743
|
} catch (e) {
|
|
745
|
-
if (e instanceof
|
|
744
|
+
if (e instanceof Lt)
|
|
746
745
|
ct.warn(e.message);
|
|
747
746
|
else {
|
|
748
747
|
const i = cn.create("idb-get", {
|
|
@@ -754,10 +753,10 @@ async function Yr(r) {
|
|
|
754
753
|
}
|
|
755
754
|
async function ms(r, e) {
|
|
756
755
|
try {
|
|
757
|
-
const h = (await
|
|
756
|
+
const h = (await Ys()).transaction(Zt, "readwrite");
|
|
758
757
|
await h.objectStore(Zt).put(e, $s(r)), await h.done;
|
|
759
758
|
} catch (i) {
|
|
760
|
-
if (i instanceof
|
|
759
|
+
if (i instanceof Lt)
|
|
761
760
|
ct.warn(i.message);
|
|
762
761
|
else {
|
|
763
762
|
const h = cn.create("idb-set", {
|
|
@@ -786,7 +785,7 @@ function $s(r) {
|
|
|
786
785
|
* See the License for the specific language governing permissions and
|
|
787
786
|
* limitations under the License.
|
|
788
787
|
*/
|
|
789
|
-
const
|
|
788
|
+
const Yr = 1024, $r = 30;
|
|
790
789
|
class Xr {
|
|
791
790
|
constructor(e) {
|
|
792
791
|
this.container = e, this._heartbeatsCache = null;
|
|
@@ -803,10 +802,10 @@ class Xr {
|
|
|
803
802
|
async triggerHeartbeat() {
|
|
804
803
|
var e, i;
|
|
805
804
|
try {
|
|
806
|
-
const l = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),
|
|
807
|
-
if (((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null && (this._heartbeatsCache = await this._heartbeatsCachePromise, ((i = this._heartbeatsCache) === null || i === void 0 ? void 0 : i.heartbeats) == null) || this._heartbeatsCache.lastSentHeartbeatDate ===
|
|
805
|
+
const l = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), d = Ss();
|
|
806
|
+
if (((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null && (this._heartbeatsCache = await this._heartbeatsCachePromise, ((i = this._heartbeatsCache) === null || i === void 0 ? void 0 : i.heartbeats) == null) || this._heartbeatsCache.lastSentHeartbeatDate === d || this._heartbeatsCache.heartbeats.some((m) => m.date === d))
|
|
808
807
|
return;
|
|
809
|
-
if (this._heartbeatsCache.heartbeats.push({ date:
|
|
808
|
+
if (this._heartbeatsCache.heartbeats.push({ date: d, agent: l }), this._heartbeatsCache.heartbeats.length > $r) {
|
|
810
809
|
const m = Jr(this._heartbeatsCache.heartbeats);
|
|
811
810
|
this._heartbeatsCache.heartbeats.splice(m, 1);
|
|
812
811
|
}
|
|
@@ -827,8 +826,8 @@ class Xr {
|
|
|
827
826
|
try {
|
|
828
827
|
if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
|
|
829
828
|
return "";
|
|
830
|
-
const i = Ss(), { heartbeatsToSend: h, unsentEntries: l } = qr(this._heartbeatsCache.heartbeats),
|
|
831
|
-
return this._heartbeatsCache.lastSentHeartbeatDate = i, l.length > 0 ? (this._heartbeatsCache.heartbeats = l, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)),
|
|
829
|
+
const i = Ss(), { heartbeatsToSend: h, unsentEntries: l } = qr(this._heartbeatsCache.heartbeats), d = Hs(JSON.stringify({ version: 2, heartbeats: h }));
|
|
830
|
+
return this._heartbeatsCache.lastSentHeartbeatDate = i, l.length > 0 ? (this._heartbeatsCache.heartbeats = l, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), d;
|
|
832
831
|
} catch (i) {
|
|
833
832
|
return ct.warn(i), "";
|
|
834
833
|
}
|
|
@@ -837,14 +836,14 @@ class Xr {
|
|
|
837
836
|
function Ss() {
|
|
838
837
|
return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
|
|
839
838
|
}
|
|
840
|
-
function qr(r, e =
|
|
839
|
+
function qr(r, e = Yr) {
|
|
841
840
|
const i = [];
|
|
842
841
|
let h = r.slice();
|
|
843
842
|
for (const l of r) {
|
|
844
|
-
const
|
|
845
|
-
if (
|
|
846
|
-
if (
|
|
847
|
-
|
|
843
|
+
const d = i.find((m) => m.agent === l.agent);
|
|
844
|
+
if (d) {
|
|
845
|
+
if (d.dates.push(l.date), ys(i) > e) {
|
|
846
|
+
d.dates.pop();
|
|
848
847
|
break;
|
|
849
848
|
}
|
|
850
849
|
} else if (i.push({
|
|
@@ -873,7 +872,7 @@ class zr {
|
|
|
873
872
|
*/
|
|
874
873
|
async read() {
|
|
875
874
|
if (await this._canUseIndexedDBPromise) {
|
|
876
|
-
const i = await
|
|
875
|
+
const i = await Kr(this.app);
|
|
877
876
|
return i != null && i.heartbeats ? i : { heartbeats: [] };
|
|
878
877
|
} else
|
|
879
878
|
return { heartbeats: [] };
|
|
@@ -947,7 +946,7 @@ function Zr(r) {
|
|
|
947
946
|
(e) => new Xr(e),
|
|
948
947
|
"PRIVATE"
|
|
949
948
|
/* ComponentType.PRIVATE */
|
|
950
|
-
)),
|
|
949
|
+
)), Ct(hn, _s, r), Ct(hn, _s, "esm2017"), Ct("fire-js", "");
|
|
951
950
|
}
|
|
952
951
|
Zr("");
|
|
953
952
|
var to = "firebase", eo = "11.10.0";
|
|
@@ -967,7 +966,7 @@ var to = "firebase", eo = "11.10.0";
|
|
|
967
966
|
* See the License for the specific language governing permissions and
|
|
968
967
|
* limitations under the License.
|
|
969
968
|
*/
|
|
970
|
-
|
|
969
|
+
Ct(to, eo, "app");
|
|
971
970
|
var As = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
972
971
|
/** @license
|
|
973
972
|
Copyright The Closure Library Authors.
|
|
@@ -984,7 +983,7 @@ var ln;
|
|
|
984
983
|
function e(p, a) {
|
|
985
984
|
function u() {
|
|
986
985
|
}
|
|
987
|
-
u.prototype = a.prototype, p.D = a.prototype, p.prototype = new u(), p.prototype.constructor = p, p.C = function(f, E,
|
|
986
|
+
u.prototype = a.prototype, p.D = a.prototype, p.prototype = new u(), p.prototype.constructor = p, p.C = function(f, E, _) {
|
|
988
987
|
for (var c = Array(arguments.length - 2), rt = 2; rt < arguments.length; rt++) c[rt - 2] = arguments[rt];
|
|
989
988
|
return a.prototype[E].apply(f, c);
|
|
990
989
|
};
|
|
@@ -1004,20 +1003,20 @@ var ln;
|
|
|
1004
1003
|
if (typeof a == "string") for (var E = 0; 16 > E; ++E) f[E] = a.charCodeAt(u++) | a.charCodeAt(u++) << 8 | a.charCodeAt(u++) << 16 | a.charCodeAt(u++) << 24;
|
|
1005
1004
|
else for (E = 0; 16 > E; ++E) f[E] = a[u++] | a[u++] << 8 | a[u++] << 16 | a[u++] << 24;
|
|
1006
1005
|
a = p.g[0], u = p.g[1], E = p.g[2];
|
|
1007
|
-
var
|
|
1008
|
-
a = u + (c << 7 & 4294967295 | c >>> 25), c =
|
|
1006
|
+
var _ = p.g[3], c = a + (_ ^ u & (E ^ _)) + f[0] + 3614090360 & 4294967295;
|
|
1007
|
+
a = u + (c << 7 & 4294967295 | c >>> 25), c = _ + (E ^ a & (u ^ E)) + f[1] + 3905402710 & 4294967295, _ = a + (c << 12 & 4294967295 | c >>> 20), c = E + (u ^ _ & (a ^ u)) + f[2] + 606105819 & 4294967295, E = _ + (c << 17 & 4294967295 | c >>> 15), c = u + (a ^ E & (_ ^ a)) + f[3] + 3250441966 & 4294967295, u = E + (c << 22 & 4294967295 | c >>> 10), c = a + (_ ^ u & (E ^ _)) + f[4] + 4118548399 & 4294967295, a = u + (c << 7 & 4294967295 | c >>> 25), c = _ + (E ^ a & (u ^ E)) + f[5] + 1200080426 & 4294967295, _ = a + (c << 12 & 4294967295 | c >>> 20), c = E + (u ^ _ & (a ^ u)) + f[6] + 2821735955 & 4294967295, E = _ + (c << 17 & 4294967295 | c >>> 15), c = u + (a ^ E & (_ ^ a)) + f[7] + 4249261313 & 4294967295, u = E + (c << 22 & 4294967295 | c >>> 10), c = a + (_ ^ u & (E ^ _)) + f[8] + 1770035416 & 4294967295, a = u + (c << 7 & 4294967295 | c >>> 25), c = _ + (E ^ a & (u ^ E)) + f[9] + 2336552879 & 4294967295, _ = a + (c << 12 & 4294967295 | c >>> 20), c = E + (u ^ _ & (a ^ u)) + f[10] + 4294925233 & 4294967295, E = _ + (c << 17 & 4294967295 | c >>> 15), c = u + (a ^ E & (_ ^ a)) + f[11] + 2304563134 & 4294967295, u = E + (c << 22 & 4294967295 | c >>> 10), c = a + (_ ^ u & (E ^ _)) + f[12] + 1804603682 & 4294967295, a = u + (c << 7 & 4294967295 | c >>> 25), c = _ + (E ^ a & (u ^ E)) + f[13] + 4254626195 & 4294967295, _ = a + (c << 12 & 4294967295 | c >>> 20), c = E + (u ^ _ & (a ^ u)) + f[14] + 2792965006 & 4294967295, E = _ + (c << 17 & 4294967295 | c >>> 15), c = u + (a ^ E & (_ ^ a)) + f[15] + 1236535329 & 4294967295, u = E + (c << 22 & 4294967295 | c >>> 10), c = a + (E ^ _ & (u ^ E)) + f[1] + 4129170786 & 4294967295, a = u + (c << 5 & 4294967295 | c >>> 27), c = _ + (u ^ E & (a ^ u)) + f[6] + 3225465664 & 4294967295, _ = a + (c << 9 & 4294967295 | c >>> 23), c = E + (a ^ u & (_ ^ a)) + f[11] + 643717713 & 4294967295, E = _ + (c << 14 & 4294967295 | c >>> 18), c = u + (_ ^ a & (E ^ _)) + f[0] + 3921069994 & 4294967295, u = E + (c << 20 & 4294967295 | c >>> 12), c = a + (E ^ _ & (u ^ E)) + f[5] + 3593408605 & 4294967295, a = u + (c << 5 & 4294967295 | c >>> 27), c = _ + (u ^ E & (a ^ u)) + f[10] + 38016083 & 4294967295, _ = a + (c << 9 & 4294967295 | c >>> 23), c = E + (a ^ u & (_ ^ a)) + f[15] + 3634488961 & 4294967295, E = _ + (c << 14 & 4294967295 | c >>> 18), c = u + (_ ^ a & (E ^ _)) + f[4] + 3889429448 & 4294967295, u = E + (c << 20 & 4294967295 | c >>> 12), c = a + (E ^ _ & (u ^ E)) + f[9] + 568446438 & 4294967295, a = u + (c << 5 & 4294967295 | c >>> 27), c = _ + (u ^ E & (a ^ u)) + f[14] + 3275163606 & 4294967295, _ = a + (c << 9 & 4294967295 | c >>> 23), c = E + (a ^ u & (_ ^ a)) + f[3] + 4107603335 & 4294967295, E = _ + (c << 14 & 4294967295 | c >>> 18), c = u + (_ ^ a & (E ^ _)) + f[8] + 1163531501 & 4294967295, u = E + (c << 20 & 4294967295 | c >>> 12), c = a + (E ^ _ & (u ^ E)) + f[13] + 2850285829 & 4294967295, a = u + (c << 5 & 4294967295 | c >>> 27), c = _ + (u ^ E & (a ^ u)) + f[2] + 4243563512 & 4294967295, _ = a + (c << 9 & 4294967295 | c >>> 23), c = E + (a ^ u & (_ ^ a)) + f[7] + 1735328473 & 4294967295, E = _ + (c << 14 & 4294967295 | c >>> 18), c = u + (_ ^ a & (E ^ _)) + f[12] + 2368359562 & 4294967295, u = E + (c << 20 & 4294967295 | c >>> 12), c = a + (u ^ E ^ _) + f[5] + 4294588738 & 4294967295, a = u + (c << 4 & 4294967295 | c >>> 28), c = _ + (a ^ u ^ E) + f[8] + 2272392833 & 4294967295, _ = a + (c << 11 & 4294967295 | c >>> 21), c = E + (_ ^ a ^ u) + f[11] + 1839030562 & 4294967295, E = _ + (c << 16 & 4294967295 | c >>> 16), c = u + (E ^ _ ^ a) + f[14] + 4259657740 & 4294967295, u = E + (c << 23 & 4294967295 | c >>> 9), c = a + (u ^ E ^ _) + f[1] + 2763975236 & 4294967295, a = u + (c << 4 & 4294967295 | c >>> 28), c = _ + (a ^ u ^ E) + f[4] + 1272893353 & 4294967295, _ = a + (c << 11 & 4294967295 | c >>> 21), c = E + (_ ^ a ^ u) + f[7] + 4139469664 & 4294967295, E = _ + (c << 16 & 4294967295 | c >>> 16), c = u + (E ^ _ ^ a) + f[10] + 3200236656 & 4294967295, u = E + (c << 23 & 4294967295 | c >>> 9), c = a + (u ^ E ^ _) + f[13] + 681279174 & 4294967295, a = u + (c << 4 & 4294967295 | c >>> 28), c = _ + (a ^ u ^ E) + f[0] + 3936430074 & 4294967295, _ = a + (c << 11 & 4294967295 | c >>> 21), c = E + (_ ^ a ^ u) + f[3] + 3572445317 & 4294967295, E = _ + (c << 16 & 4294967295 | c >>> 16), c = u + (E ^ _ ^ a) + f[6] + 76029189 & 4294967295, u = E + (c << 23 & 4294967295 | c >>> 9), c = a + (u ^ E ^ _) + f[9] + 3654602809 & 4294967295, a = u + (c << 4 & 4294967295 | c >>> 28), c = _ + (a ^ u ^ E) + f[12] + 3873151461 & 4294967295, _ = a + (c << 11 & 4294967295 | c >>> 21), c = E + (_ ^ a ^ u) + f[15] + 530742520 & 4294967295, E = _ + (c << 16 & 4294967295 | c >>> 16), c = u + (E ^ _ ^ a) + f[2] + 3299628645 & 4294967295, u = E + (c << 23 & 4294967295 | c >>> 9), c = a + (E ^ (u | ~_)) + f[0] + 4096336452 & 4294967295, a = u + (c << 6 & 4294967295 | c >>> 26), c = _ + (u ^ (a | ~E)) + f[7] + 1126891415 & 4294967295, _ = a + (c << 10 & 4294967295 | c >>> 22), c = E + (a ^ (_ | ~u)) + f[14] + 2878612391 & 4294967295, E = _ + (c << 15 & 4294967295 | c >>> 17), c = u + (_ ^ (E | ~a)) + f[5] + 4237533241 & 4294967295, u = E + (c << 21 & 4294967295 | c >>> 11), c = a + (E ^ (u | ~_)) + f[12] + 1700485571 & 4294967295, a = u + (c << 6 & 4294967295 | c >>> 26), c = _ + (u ^ (a | ~E)) + f[3] + 2399980690 & 4294967295, _ = a + (c << 10 & 4294967295 | c >>> 22), c = E + (a ^ (_ | ~u)) + f[10] + 4293915773 & 4294967295, E = _ + (c << 15 & 4294967295 | c >>> 17), c = u + (_ ^ (E | ~a)) + f[1] + 2240044497 & 4294967295, u = E + (c << 21 & 4294967295 | c >>> 11), c = a + (E ^ (u | ~_)) + f[8] + 1873313359 & 4294967295, a = u + (c << 6 & 4294967295 | c >>> 26), c = _ + (u ^ (a | ~E)) + f[15] + 4264355552 & 4294967295, _ = a + (c << 10 & 4294967295 | c >>> 22), c = E + (a ^ (_ | ~u)) + f[6] + 2734768916 & 4294967295, E = _ + (c << 15 & 4294967295 | c >>> 17), c = u + (_ ^ (E | ~a)) + f[13] + 1309151649 & 4294967295, u = E + (c << 21 & 4294967295 | c >>> 11), c = a + (E ^ (u | ~_)) + f[4] + 4149444226 & 4294967295, a = u + (c << 6 & 4294967295 | c >>> 26), c = _ + (u ^ (a | ~E)) + f[11] + 3174756917 & 4294967295, _ = a + (c << 10 & 4294967295 | c >>> 22), c = E + (a ^ (_ | ~u)) + f[2] + 718787259 & 4294967295, E = _ + (c << 15 & 4294967295 | c >>> 17), c = u + (_ ^ (E | ~a)) + f[9] + 3951481745 & 4294967295, p.g[0] = p.g[0] + a & 4294967295, p.g[1] = p.g[1] + (E + (c << 21 & 4294967295 | c >>> 11)) & 4294967295, p.g[2] = p.g[2] + E & 4294967295, p.g[3] = p.g[3] + _ & 4294967295;
|
|
1009
1008
|
}
|
|
1010
1009
|
h.prototype.u = function(p, a) {
|
|
1011
1010
|
a === void 0 && (a = p.length);
|
|
1012
|
-
for (var u = a - this.blockSize, f = this.B, E = this.h,
|
|
1013
|
-
if (E == 0) for (;
|
|
1011
|
+
for (var u = a - this.blockSize, f = this.B, E = this.h, _ = 0; _ < a; ) {
|
|
1012
|
+
if (E == 0) for (; _ <= u; ) l(this, p, _), _ += this.blockSize;
|
|
1014
1013
|
if (typeof p == "string") {
|
|
1015
|
-
for (;
|
|
1016
|
-
if (f[E++] = p.charCodeAt(
|
|
1014
|
+
for (; _ < a; )
|
|
1015
|
+
if (f[E++] = p.charCodeAt(_++), E == this.blockSize) {
|
|
1017
1016
|
l(this, f), E = 0;
|
|
1018
1017
|
break;
|
|
1019
1018
|
}
|
|
1020
|
-
} else for (;
|
|
1019
|
+
} else for (; _ < a; ) if (f[E++] = p[_++], E == this.blockSize) {
|
|
1021
1020
|
l(this, f), E = 0;
|
|
1022
1021
|
break;
|
|
1023
1022
|
}
|
|
@@ -1032,21 +1031,21 @@ var ln;
|
|
|
1032
1031
|
for (this.u(p), p = Array(16), a = u = 0; 4 > a; ++a) for (var f = 0; 32 > f; f += 8) p[u++] = this.g[a] >>> f & 255;
|
|
1033
1032
|
return p;
|
|
1034
1033
|
};
|
|
1035
|
-
function
|
|
1034
|
+
function d(p, a) {
|
|
1036
1035
|
var u = S;
|
|
1037
1036
|
return Object.prototype.hasOwnProperty.call(u, p) ? u[p] : u[p] = a(p);
|
|
1038
1037
|
}
|
|
1039
1038
|
function m(p, a) {
|
|
1040
1039
|
this.h = a;
|
|
1041
1040
|
for (var u = [], f = !0, E = p.length - 1; 0 <= E; E--) {
|
|
1042
|
-
var
|
|
1043
|
-
f &&
|
|
1041
|
+
var _ = p[E] | 0;
|
|
1042
|
+
f && _ == a || (u[E] = _, f = !1);
|
|
1044
1043
|
}
|
|
1045
1044
|
this.g = u;
|
|
1046
1045
|
}
|
|
1047
1046
|
var S = {};
|
|
1048
1047
|
function A(p) {
|
|
1049
|
-
return -128 <= p && 128 > p ?
|
|
1048
|
+
return -128 <= p && 128 > p ? d(p, function(a) {
|
|
1050
1049
|
return new m([a | 0], 0 > a ? -1 : 0);
|
|
1051
1050
|
}) : new m([p | 0], 0 > p ? -1 : 0);
|
|
1052
1051
|
}
|
|
@@ -1056,18 +1055,18 @@ var ln;
|
|
|
1056
1055
|
for (var a = [], u = 1, f = 0; p >= u; f++) a[f] = p / u | 0, u *= 4294967296;
|
|
1057
1056
|
return new m(a, 0);
|
|
1058
1057
|
}
|
|
1059
|
-
function
|
|
1058
|
+
function K(p, a) {
|
|
1060
1059
|
if (p.length == 0) throw Error("number format error: empty string");
|
|
1061
1060
|
if (a = a || 10, 2 > a || 36 < a) throw Error("radix out of range: " + a);
|
|
1062
|
-
if (p.charAt(0) == "-") return b(
|
|
1061
|
+
if (p.charAt(0) == "-") return b(K(p.substring(1), a));
|
|
1063
1062
|
if (0 <= p.indexOf("-")) throw Error('number format error: interior "-" character');
|
|
1064
1063
|
for (var u = R(Math.pow(a, 8)), f = Q, E = 0; E < p.length; E += 8) {
|
|
1065
|
-
var
|
|
1066
|
-
8 >
|
|
1064
|
+
var _ = Math.min(8, p.length - E), c = parseInt(p.substring(E, E + _), a);
|
|
1065
|
+
8 > _ ? (_ = R(Math.pow(a, _)), f = f.j(_).add(R(c))) : (f = f.j(u), f = f.add(R(c)));
|
|
1067
1066
|
}
|
|
1068
1067
|
return f;
|
|
1069
1068
|
}
|
|
1070
|
-
var Q = A(0),
|
|
1069
|
+
var Q = A(0), L = A(1), Y = A(16777216);
|
|
1071
1070
|
r = m.prototype, r.m = function() {
|
|
1072
1071
|
if (V(this)) return -b(this).m();
|
|
1073
1072
|
for (var p = 0, a = 1, u = 0; u < this.g.length; u++) {
|
|
@@ -1077,20 +1076,20 @@ var ln;
|
|
|
1077
1076
|
return p;
|
|
1078
1077
|
}, r.toString = function(p) {
|
|
1079
1078
|
if (p = p || 10, 2 > p || 36 < p) throw Error("radix out of range: " + p);
|
|
1080
|
-
if (
|
|
1079
|
+
if (U(this)) return "0";
|
|
1081
1080
|
if (V(this)) return "-" + b(this).toString(p);
|
|
1082
1081
|
for (var a = R(Math.pow(p, 6)), u = this, f = ""; ; ) {
|
|
1083
1082
|
var E = lt(u, a).g;
|
|
1084
1083
|
u = vt(u, E.j(a));
|
|
1085
|
-
var
|
|
1086
|
-
if (u = E,
|
|
1087
|
-
for (; 6 >
|
|
1088
|
-
f =
|
|
1084
|
+
var _ = ((0 < u.g.length ? u.g[0] : u.h) >>> 0).toString(p);
|
|
1085
|
+
if (u = E, U(u)) return _ + f;
|
|
1086
|
+
for (; 6 > _.length; ) _ = "0" + _;
|
|
1087
|
+
f = _ + f;
|
|
1089
1088
|
}
|
|
1090
1089
|
}, r.i = function(p) {
|
|
1091
1090
|
return 0 > p ? 0 : p < this.g.length ? this.g[p] : this.h;
|
|
1092
1091
|
};
|
|
1093
|
-
function
|
|
1092
|
+
function U(p) {
|
|
1094
1093
|
if (p.h != 0) return !1;
|
|
1095
1094
|
for (var a = 0; a < p.g.length; a++) if (p.g[a] != 0) return !1;
|
|
1096
1095
|
return !0;
|
|
@@ -1099,18 +1098,18 @@ var ln;
|
|
|
1099
1098
|
return p.h == -1;
|
|
1100
1099
|
}
|
|
1101
1100
|
r.l = function(p) {
|
|
1102
|
-
return p = vt(this, p), V(p) ? -1 :
|
|
1101
|
+
return p = vt(this, p), V(p) ? -1 : U(p) ? 0 : 1;
|
|
1103
1102
|
};
|
|
1104
1103
|
function b(p) {
|
|
1105
1104
|
for (var a = p.g.length, u = [], f = 0; f < a; f++) u[f] = ~p.g[f];
|
|
1106
|
-
return new m(u, ~p.h).add(
|
|
1105
|
+
return new m(u, ~p.h).add(L);
|
|
1107
1106
|
}
|
|
1108
1107
|
r.abs = function() {
|
|
1109
1108
|
return V(this) ? b(this) : this;
|
|
1110
1109
|
}, r.add = function(p) {
|
|
1111
1110
|
for (var a = Math.max(this.g.length, p.g.length), u = [], f = 0, E = 0; E <= a; E++) {
|
|
1112
|
-
var
|
|
1113
|
-
f = c >>> 16,
|
|
1111
|
+
var _ = f + (this.i(E) & 65535) + (p.i(E) & 65535), c = (_ >>> 16) + (this.i(E) >>> 16) + (p.i(E) >>> 16);
|
|
1112
|
+
f = c >>> 16, _ &= 65535, c &= 65535, u[E] = c << 16 | _;
|
|
1114
1113
|
}
|
|
1115
1114
|
return new m(u, u[u.length - 1] & -2147483648 ? -1 : 0);
|
|
1116
1115
|
};
|
|
@@ -1118,14 +1117,14 @@ var ln;
|
|
|
1118
1117
|
return p.add(b(a));
|
|
1119
1118
|
}
|
|
1120
1119
|
r.j = function(p) {
|
|
1121
|
-
if (
|
|
1120
|
+
if (U(this) || U(p)) return Q;
|
|
1122
1121
|
if (V(this)) return V(p) ? b(this).j(b(p)) : b(b(this).j(p));
|
|
1123
1122
|
if (V(p)) return b(this.j(b(p)));
|
|
1124
|
-
if (0 > this.l(
|
|
1123
|
+
if (0 > this.l(Y) && 0 > p.l(Y)) return R(this.m() * p.m());
|
|
1125
1124
|
for (var a = this.g.length + p.g.length, u = [], f = 0; f < 2 * a; f++) u[f] = 0;
|
|
1126
1125
|
for (f = 0; f < this.g.length; f++) for (var E = 0; E < p.g.length; E++) {
|
|
1127
|
-
var
|
|
1128
|
-
u[2 * f + 2 * E] += c *
|
|
1126
|
+
var _ = this.i(f) >>> 16, c = this.i(f) & 65535, rt = p.i(E) >>> 16, Pt = p.i(E) & 65535;
|
|
1127
|
+
u[2 * f + 2 * E] += c * Pt, tt(u, 2 * f + 2 * E), u[2 * f + 2 * E + 1] += _ * Pt, tt(u, 2 * f + 2 * E + 1), u[2 * f + 2 * E + 1] += c * rt, tt(u, 2 * f + 2 * E + 1), u[2 * f + 2 * E + 2] += _ * rt, tt(u, 2 * f + 2 * E + 2);
|
|
1129
1128
|
}
|
|
1130
1129
|
for (f = 0; f < a; f++) u[f] = u[2 * f + 1] << 16 | u[2 * f];
|
|
1131
1130
|
for (f = a; f < 2 * a; f++) u[f] = 0;
|
|
@@ -1138,23 +1137,23 @@ var ln;
|
|
|
1138
1137
|
this.g = p, this.h = a;
|
|
1139
1138
|
}
|
|
1140
1139
|
function lt(p, a) {
|
|
1141
|
-
if (
|
|
1142
|
-
if (
|
|
1140
|
+
if (U(a)) throw Error("division by zero");
|
|
1141
|
+
if (U(p)) return new $(Q, Q);
|
|
1143
1142
|
if (V(p)) return a = lt(b(p), a), new $(b(a.g), b(a.h));
|
|
1144
1143
|
if (V(a)) return a = lt(p, b(a)), new $(b(a.g), a.h);
|
|
1145
1144
|
if (30 < p.g.length) {
|
|
1146
1145
|
if (V(p) || V(a)) throw Error("slowDivide_ only works with positive integers.");
|
|
1147
|
-
for (var u =
|
|
1148
|
-
var E = et(u, 1),
|
|
1149
|
-
for (f = et(f, 2), u = et(u, 2); !
|
|
1150
|
-
var c =
|
|
1151
|
-
0 >= c.l(p) && (E = E.add(u),
|
|
1146
|
+
for (var u = L, f = a; 0 >= f.l(p); ) u = ee(u), f = ee(f);
|
|
1147
|
+
var E = et(u, 1), _ = et(f, 1);
|
|
1148
|
+
for (f = et(f, 2), u = et(u, 2); !U(f); ) {
|
|
1149
|
+
var c = _.add(f);
|
|
1150
|
+
0 >= c.l(p) && (E = E.add(u), _ = c), f = et(f, 1), u = et(u, 1);
|
|
1152
1151
|
}
|
|
1153
1152
|
return a = vt(p, E.j(a)), new $(E, a);
|
|
1154
1153
|
}
|
|
1155
1154
|
for (E = Q; 0 <= p.l(a); ) {
|
|
1156
|
-
for (u = Math.max(1, Math.floor(p.m() / a.m())), f = Math.ceil(Math.log(u) / Math.LN2), f = 48 >= f ? 1 : Math.pow(2, f - 48),
|
|
1157
|
-
|
|
1155
|
+
for (u = Math.max(1, Math.floor(p.m() / a.m())), f = Math.ceil(Math.log(u) / Math.LN2), f = 48 >= f ? 1 : Math.pow(2, f - 48), _ = R(u), c = _.j(a); V(c) || 0 < c.l(p); ) u -= f, _ = R(u), c = _.j(a);
|
|
1156
|
+
U(_) && (_ = L), E = E.add(_), p = vt(p, c);
|
|
1158
1157
|
}
|
|
1159
1158
|
return new $(E, p);
|
|
1160
1159
|
}
|
|
@@ -1177,10 +1176,10 @@ var ln;
|
|
|
1177
1176
|
function et(p, a) {
|
|
1178
1177
|
var u = a >> 5;
|
|
1179
1178
|
a %= 32;
|
|
1180
|
-
for (var f = p.g.length - u, E = [],
|
|
1179
|
+
for (var f = p.g.length - u, E = [], _ = 0; _ < f; _++) E[_] = 0 < a ? p.i(_ + u) >>> a | p.i(_ + u + 1) << 32 - a : p.i(_ + u);
|
|
1181
1180
|
return new m(E, p.h);
|
|
1182
1181
|
}
|
|
1183
|
-
h.prototype.digest = h.prototype.v, h.prototype.reset = h.prototype.s, h.prototype.update = h.prototype.u, m.prototype.add = m.prototype.add, m.prototype.multiply = m.prototype.j, m.prototype.modulo = m.prototype.A, m.prototype.compare = m.prototype.l, m.prototype.toNumber = m.prototype.m, m.prototype.toString = m.prototype.toString, m.prototype.getBits = m.prototype.i, m.fromNumber = R, m.fromString =
|
|
1182
|
+
h.prototype.digest = h.prototype.v, h.prototype.reset = h.prototype.s, h.prototype.update = h.prototype.u, m.prototype.add = m.prototype.add, m.prototype.multiply = m.prototype.j, m.prototype.modulo = m.prototype.A, m.prototype.compare = m.prototype.l, m.prototype.toNumber = m.prototype.m, m.prototype.toString = m.prototype.toString, m.prototype.getBits = m.prototype.i, m.fromNumber = R, m.fromString = K, ln = m;
|
|
1184
1183
|
}).apply(typeof As < "u" ? As : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
1185
1184
|
var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1186
1185
|
(function() {
|
|
@@ -1208,7 +1207,7 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1208
1207
|
t = t[t.length - 1], o = s[t], n = n(o), n != o && n != null && e(s, t, { configurable: !0, writable: !0, value: n });
|
|
1209
1208
|
}
|
|
1210
1209
|
}
|
|
1211
|
-
function
|
|
1210
|
+
function d(t, n) {
|
|
1212
1211
|
t instanceof String && (t += "");
|
|
1213
1212
|
var s = 0, o = !1, g = { next: function() {
|
|
1214
1213
|
if (!o && s < t.length) {
|
|
@@ -1223,7 +1222,7 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1223
1222
|
}
|
|
1224
1223
|
l("Array.prototype.values", function(t) {
|
|
1225
1224
|
return t || function() {
|
|
1226
|
-
return
|
|
1225
|
+
return d(this, function(n, s) {
|
|
1227
1226
|
return s;
|
|
1228
1227
|
});
|
|
1229
1228
|
};
|
|
@@ -1242,7 +1241,7 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1242
1241
|
var n = typeof t;
|
|
1243
1242
|
return n == "object" && t != null || n == "function";
|
|
1244
1243
|
}
|
|
1245
|
-
function
|
|
1244
|
+
function K(t, n, s) {
|
|
1246
1245
|
return t.call.apply(t.bind, arguments);
|
|
1247
1246
|
}
|
|
1248
1247
|
function Q(t, n, s) {
|
|
@@ -1258,21 +1257,21 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1258
1257
|
return t.apply(n, arguments);
|
|
1259
1258
|
};
|
|
1260
1259
|
}
|
|
1261
|
-
function
|
|
1262
|
-
return
|
|
1260
|
+
function L(t, n, s) {
|
|
1261
|
+
return L = Function.prototype.bind && Function.prototype.bind.toString().indexOf("native code") != -1 ? K : Q, L.apply(null, arguments);
|
|
1263
1262
|
}
|
|
1264
|
-
function
|
|
1263
|
+
function Y(t, n) {
|
|
1265
1264
|
var s = Array.prototype.slice.call(arguments, 1);
|
|
1266
1265
|
return function() {
|
|
1267
1266
|
var o = s.slice();
|
|
1268
1267
|
return o.push.apply(o, arguments), t.apply(this, o);
|
|
1269
1268
|
};
|
|
1270
1269
|
}
|
|
1271
|
-
function
|
|
1270
|
+
function U(t, n) {
|
|
1272
1271
|
function s() {
|
|
1273
1272
|
}
|
|
1274
1273
|
s.prototype = n.prototype, t.aa = n.prototype, t.prototype = new s(), t.prototype.constructor = t, t.Qb = function(o, g, T) {
|
|
1275
|
-
for (var y = Array(arguments.length - 2),
|
|
1274
|
+
for (var y = Array(arguments.length - 2), O = 2; O < arguments.length; O++) y[O - 2] = arguments[O];
|
|
1276
1275
|
return n.prototype[g].apply(o, y);
|
|
1277
1276
|
};
|
|
1278
1277
|
}
|
|
@@ -1344,7 +1343,7 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1344
1343
|
for (; 0 < n && t.length; ) s.push(t.shift()), n--;
|
|
1345
1344
|
return t.length && s.push(t.join(":")), s;
|
|
1346
1345
|
}
|
|
1347
|
-
function
|
|
1346
|
+
function _(t) {
|
|
1348
1347
|
S.setTimeout(() => {
|
|
1349
1348
|
throw t;
|
|
1350
1349
|
}, 0);
|
|
@@ -1359,11 +1358,11 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1359
1358
|
this.h = this.g = null;
|
|
1360
1359
|
}
|
|
1361
1360
|
add(n, s) {
|
|
1362
|
-
const o =
|
|
1361
|
+
const o = Pt.get();
|
|
1363
1362
|
o.set(n, s), this.h ? this.h.next = o : this.g = o, this.h = o;
|
|
1364
1363
|
}
|
|
1365
1364
|
}
|
|
1366
|
-
var
|
|
1365
|
+
var Pt = new vt(() => new ei(), (t) => t.reset());
|
|
1367
1366
|
class ei {
|
|
1368
1367
|
constructor() {
|
|
1369
1368
|
this.next = this.g = this.h = null;
|
|
@@ -1386,9 +1385,9 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1386
1385
|
try {
|
|
1387
1386
|
t.h.call(t.g);
|
|
1388
1387
|
} catch (s) {
|
|
1389
|
-
|
|
1388
|
+
_(s);
|
|
1390
1389
|
}
|
|
1391
|
-
var n =
|
|
1390
|
+
var n = Pt;
|
|
1392
1391
|
n.j(t), 100 > n.h && (n.h++, t.next = n.g, n.g = t);
|
|
1393
1392
|
}
|
|
1394
1393
|
Mt = !1;
|
|
@@ -1440,7 +1439,7 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1440
1439
|
this.relatedTarget = n, o ? (this.clientX = o.clientX !== void 0 ? o.clientX : o.pageX, this.clientY = o.clientY !== void 0 ? o.clientY : o.pageY, this.screenX = o.screenX || 0, this.screenY = o.screenY || 0) : (this.clientX = t.clientX !== void 0 ? t.clientX : t.pageX, this.clientY = t.clientY !== void 0 ? t.clientY : t.pageY, this.screenX = t.screenX || 0, this.screenY = t.screenY || 0), this.button = t.button, this.key = t.key || "", this.ctrlKey = t.ctrlKey, this.altKey = t.altKey, this.shiftKey = t.shiftKey, this.metaKey = t.metaKey, this.pointerId = t.pointerId || 0, this.pointerType = typeof t.pointerType == "string" ? t.pointerType : ii[t.pointerType] || "", this.state = t.state, this.i = t, t.defaultPrevented && Bt.aa.h.call(this);
|
|
1441
1440
|
}
|
|
1442
1441
|
}
|
|
1443
|
-
|
|
1442
|
+
U(Bt, F);
|
|
1444
1443
|
var ii = { 2: "touch", 3: "pen", 4: "mouse" };
|
|
1445
1444
|
Bt.prototype.h = function() {
|
|
1446
1445
|
Bt.aa.h.call(this);
|
|
@@ -1460,24 +1459,24 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1460
1459
|
ie.prototype.add = function(t, n, s, o, g) {
|
|
1461
1460
|
var T = t.toString();
|
|
1462
1461
|
t = this.g[T], t || (t = this.g[T] = [], this.h++);
|
|
1463
|
-
var y =
|
|
1462
|
+
var y = Oe(t, n, o, g);
|
|
1464
1463
|
return -1 < y ? (n = t[y], s || (n.fa = !1)) : (n = new oi(n, this.src, T, !!o, g), n.fa = s, t.push(n)), n;
|
|
1465
1464
|
};
|
|
1466
|
-
function
|
|
1465
|
+
function Ue(t, n) {
|
|
1467
1466
|
var s = n.type;
|
|
1468
1467
|
if (s in t.g) {
|
|
1469
1468
|
var o = t.g[s], g = Array.prototype.indexOf.call(o, n, void 0), T;
|
|
1470
1469
|
(T = 0 <= g) && Array.prototype.splice.call(o, g, 1), T && (se(n), t.g[s].length == 0 && (delete t.g[s], t.h--));
|
|
1471
1470
|
}
|
|
1472
1471
|
}
|
|
1473
|
-
function
|
|
1472
|
+
function Oe(t, n, s, o) {
|
|
1474
1473
|
for (var g = 0; g < t.length; ++g) {
|
|
1475
1474
|
var T = t[g];
|
|
1476
1475
|
if (!T.da && T.listener == n && T.capture == !!s && T.ha == o) return g;
|
|
1477
1476
|
}
|
|
1478
1477
|
return -1;
|
|
1479
1478
|
}
|
|
1480
|
-
var
|
|
1479
|
+
var Ce = "closure_lm_" + (1e6 * Math.random() | 0), Ne = {};
|
|
1481
1480
|
function gn(t, n, s, o, g) {
|
|
1482
1481
|
if (Array.isArray(n)) {
|
|
1483
1482
|
for (var T = 0; T < n.length; T++) gn(t, n[T], s, o, g);
|
|
@@ -1487,10 +1486,10 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1487
1486
|
}
|
|
1488
1487
|
function hi(t, n, s, o, g, T) {
|
|
1489
1488
|
if (!n) throw Error("Invalid event type");
|
|
1490
|
-
var y = R(g) ? !!g.capture : !!g,
|
|
1491
|
-
if (
|
|
1489
|
+
var y = R(g) ? !!g.capture : !!g, O = Pe(t);
|
|
1490
|
+
if (O || (t[Ce] = O = new ie(t)), s = O.add(n, s, o, y, T), s.proxy) return s;
|
|
1492
1491
|
if (o = ai(), s.proxy = o, o.src = t, o.listener = s, t.addEventListener) si || (g = y), g === void 0 && (g = !1), t.addEventListener(n.toString(), o, g);
|
|
1493
|
-
else if (t.attachEvent) t.attachEvent(
|
|
1492
|
+
else if (t.attachEvent) t.attachEvent(dn(n.toString()), o);
|
|
1494
1493
|
else if (t.addListener && t.removeListener) t.addListener(o);
|
|
1495
1494
|
else throw Error("addEventListener and attachEvent are unavailable.");
|
|
1496
1495
|
return s;
|
|
@@ -1502,34 +1501,34 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1502
1501
|
const n = ci;
|
|
1503
1502
|
return t;
|
|
1504
1503
|
}
|
|
1505
|
-
function
|
|
1506
|
-
if (Array.isArray(n)) for (var T = 0; T < n.length; T++)
|
|
1507
|
-
else o = R(o) ? !!o.capture : !!o, s = Tn(s), t && t[ne] ? (t = t.i, n = String(n).toString(), n in t.g && (T = t.g[n], s =
|
|
1504
|
+
function _n(t, n, s, o, g) {
|
|
1505
|
+
if (Array.isArray(n)) for (var T = 0; T < n.length; T++) _n(t, n[T], s, o, g);
|
|
1506
|
+
else o = R(o) ? !!o.capture : !!o, s = Tn(s), t && t[ne] ? (t = t.i, n = String(n).toString(), n in t.g && (T = t.g[n], s = Oe(T, s, o, g), -1 < s && (se(T[s]), Array.prototype.splice.call(T, s, 1), T.length == 0 && (delete t.g[n], t.h--)))) : t && (t = Pe(t)) && (n = t.g[n.toString()], t = -1, n && (t = Oe(n, s, o, g)), (s = -1 < t ? n[t] : null) && Le(s));
|
|
1508
1507
|
}
|
|
1509
|
-
function
|
|
1508
|
+
function Le(t) {
|
|
1510
1509
|
if (typeof t != "number" && t && !t.da) {
|
|
1511
1510
|
var n = t.src;
|
|
1512
|
-
if (n && n[ne])
|
|
1511
|
+
if (n && n[ne]) Ue(n.i, t);
|
|
1513
1512
|
else {
|
|
1514
1513
|
var s = t.type, o = t.proxy;
|
|
1515
|
-
n.removeEventListener ? n.removeEventListener(s, o, t.capture) : n.detachEvent ? n.detachEvent(
|
|
1514
|
+
n.removeEventListener ? n.removeEventListener(s, o, t.capture) : n.detachEvent ? n.detachEvent(dn(s), o) : n.addListener && n.removeListener && n.removeListener(o), (s = Pe(n)) ? (Ue(s, t), s.h == 0 && (s.src = null, n[Ce] = null)) : se(t);
|
|
1516
1515
|
}
|
|
1517
1516
|
}
|
|
1518
1517
|
}
|
|
1519
|
-
function
|
|
1520
|
-
return t in
|
|
1518
|
+
function dn(t) {
|
|
1519
|
+
return t in Ne ? Ne[t] : Ne[t] = "on" + t;
|
|
1521
1520
|
}
|
|
1522
1521
|
function ci(t, n) {
|
|
1523
1522
|
if (t.da) t = !0;
|
|
1524
1523
|
else {
|
|
1525
1524
|
n = new Bt(n, this);
|
|
1526
1525
|
var s = t.listener, o = t.ha || t.src;
|
|
1527
|
-
t.fa &&
|
|
1526
|
+
t.fa && Le(t), t = s.call(o, n);
|
|
1528
1527
|
}
|
|
1529
1528
|
return t;
|
|
1530
1529
|
}
|
|
1531
|
-
function
|
|
1532
|
-
return t = t[
|
|
1530
|
+
function Pe(t) {
|
|
1531
|
+
return t = t[Ce], t instanceof ie ? t : null;
|
|
1533
1532
|
}
|
|
1534
1533
|
var be = "__closure_events_fn_" + (1e9 * Math.random() >>> 0);
|
|
1535
1534
|
function Tn(t) {
|
|
@@ -1540,8 +1539,8 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1540
1539
|
function x() {
|
|
1541
1540
|
ut.call(this), this.i = new ie(this), this.M = this, this.F = null;
|
|
1542
1541
|
}
|
|
1543
|
-
|
|
1544
|
-
|
|
1542
|
+
U(x, ut), x.prototype[ne] = !0, x.prototype.removeEventListener = function(t, n, s, o) {
|
|
1543
|
+
_n(this, t, n, s, o);
|
|
1545
1544
|
};
|
|
1546
1545
|
function H(t, n) {
|
|
1547
1546
|
var s, o = t.F;
|
|
@@ -1578,15 +1577,15 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1578
1577
|
for (var g = !0, T = 0; T < n.length; ++T) {
|
|
1579
1578
|
var y = n[T];
|
|
1580
1579
|
if (y && !y.da && y.capture == s) {
|
|
1581
|
-
var
|
|
1582
|
-
y.fa &&
|
|
1580
|
+
var O = y.listener, B = y.ha || y.src;
|
|
1581
|
+
y.fa && Ue(t.i, y), g = O.call(B, o) !== !1 && g;
|
|
1583
1582
|
}
|
|
1584
1583
|
}
|
|
1585
1584
|
return g && !o.defaultPrevented;
|
|
1586
1585
|
}
|
|
1587
1586
|
function mn(t, n, s) {
|
|
1588
|
-
if (typeof t == "function") s && (t =
|
|
1589
|
-
else if (t && typeof t.handleEvent == "function") t =
|
|
1587
|
+
if (typeof t == "function") s && (t = L(t, s));
|
|
1588
|
+
else if (t && typeof t.handleEvent == "function") t = L(t.handleEvent, t);
|
|
1590
1589
|
else throw Error("Invalid listener argument");
|
|
1591
1590
|
return 2147483647 < Number(n) ? -1 : S.setTimeout(t, n || 0);
|
|
1592
1591
|
}
|
|
@@ -1611,11 +1610,11 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1611
1610
|
function Vt(t) {
|
|
1612
1611
|
ut.call(this), this.h = t, this.g = {};
|
|
1613
1612
|
}
|
|
1614
|
-
|
|
1613
|
+
U(Vt, ut);
|
|
1615
1614
|
var yn = [];
|
|
1616
1615
|
function An(t) {
|
|
1617
1616
|
et(t.g, function(n, s) {
|
|
1618
|
-
this.g.hasOwnProperty(s) &&
|
|
1617
|
+
this.g.hasOwnProperty(s) && Le(n);
|
|
1619
1618
|
}, t), t.g = {};
|
|
1620
1619
|
}
|
|
1621
1620
|
Vt.prototype.N = function() {
|
|
@@ -1643,11 +1642,11 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1643
1642
|
function Ve() {
|
|
1644
1643
|
F.call(this, "d");
|
|
1645
1644
|
}
|
|
1646
|
-
|
|
1645
|
+
U(Ve, F);
|
|
1647
1646
|
function Fe() {
|
|
1648
1647
|
F.call(this, "c");
|
|
1649
1648
|
}
|
|
1650
|
-
|
|
1649
|
+
U(Fe, F);
|
|
1651
1650
|
var It = {}, vn = null;
|
|
1652
1651
|
function xe() {
|
|
1653
1652
|
return vn = vn || new x();
|
|
@@ -1656,7 +1655,7 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1656
1655
|
function In(t) {
|
|
1657
1656
|
F.call(this, It.La, t);
|
|
1658
1657
|
}
|
|
1659
|
-
|
|
1658
|
+
U(In, F);
|
|
1660
1659
|
function xt(t) {
|
|
1661
1660
|
const n = xe();
|
|
1662
1661
|
H(n, new In(n));
|
|
@@ -1665,7 +1664,7 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1665
1664
|
function wn(t, n) {
|
|
1666
1665
|
F.call(this, It.STAT_EVENT, t), this.stat = n;
|
|
1667
1666
|
}
|
|
1668
|
-
|
|
1667
|
+
U(wn, F);
|
|
1669
1668
|
function G(t) {
|
|
1670
1669
|
const n = xe();
|
|
1671
1670
|
H(n, new wn(n, t));
|
|
@@ -1674,7 +1673,7 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1674
1673
|
function Dn(t, n) {
|
|
1675
1674
|
F.call(this, It.Ma, t), this.size = n;
|
|
1676
1675
|
}
|
|
1677
|
-
|
|
1676
|
+
U(Dn, F);
|
|
1678
1677
|
function kt(t, n) {
|
|
1679
1678
|
if (typeof t != "function") throw Error("Fn must not be null and must be a function");
|
|
1680
1679
|
return S.setTimeout(function() {
|
|
@@ -1690,8 +1689,8 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1690
1689
|
function pi(t, n, s, o, g, T) {
|
|
1691
1690
|
t.info(function() {
|
|
1692
1691
|
if (t.g) if (T)
|
|
1693
|
-
for (var y = "",
|
|
1694
|
-
var I =
|
|
1692
|
+
for (var y = "", O = T.split("&"), B = 0; B < O.length; B++) {
|
|
1693
|
+
var I = O[B].split("=");
|
|
1695
1694
|
if (1 < I.length) {
|
|
1696
1695
|
var k = I[0];
|
|
1697
1696
|
I = I[1];
|
|
@@ -1715,17 +1714,17 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1715
1714
|
}
|
|
1716
1715
|
function wt(t, n, s, o) {
|
|
1717
1716
|
t.info(function() {
|
|
1718
|
-
return "XMLHTTP TEXT (" + n + "): " +
|
|
1717
|
+
return "XMLHTTP TEXT (" + n + "): " + di(t, s) + (o ? " " + o : "");
|
|
1719
1718
|
});
|
|
1720
1719
|
}
|
|
1721
|
-
function
|
|
1720
|
+
function _i(t, n) {
|
|
1722
1721
|
t.info(function() {
|
|
1723
1722
|
return "TIMEOUT: " + n;
|
|
1724
1723
|
});
|
|
1725
1724
|
}
|
|
1726
1725
|
jt.prototype.info = function() {
|
|
1727
1726
|
};
|
|
1728
|
-
function
|
|
1727
|
+
function di(t, n) {
|
|
1729
1728
|
if (!t.g) return n;
|
|
1730
1729
|
if (!n) return null;
|
|
1731
1730
|
try {
|
|
@@ -1750,25 +1749,25 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1750
1749
|
var ke = { NO_ERROR: 0, gb: 1, tb: 2, sb: 3, nb: 4, rb: 5, ub: 6, Ia: 7, TIMEOUT: 8, xb: 9 }, Ti = { lb: "complete", Hb: "success", Ja: "error", Ia: "abort", zb: "ready", Ab: "readystatechange", TIMEOUT: "timeout", vb: "incrementaldata", yb: "progress", ob: "downloadprogress", Pb: "uploadprogress" }, je;
|
|
1751
1750
|
function oe() {
|
|
1752
1751
|
}
|
|
1753
|
-
|
|
1752
|
+
U(oe, Be), oe.prototype.g = function() {
|
|
1754
1753
|
return new XMLHttpRequest();
|
|
1755
1754
|
}, oe.prototype.i = function() {
|
|
1756
1755
|
return {};
|
|
1757
1756
|
}, je = new oe();
|
|
1758
1757
|
function ft(t, n, s, o) {
|
|
1759
|
-
this.j = t, this.i = n, this.l = s, this.R = o || 1, this.U = new Vt(this), this.I = 45e3, this.H = null, this.o = !1, this.m = this.A = this.v = this.L = this.F = this.S = this.B = null, this.D = [], this.g = null, this.C = 0, this.s = this.u = null, this.X = -1, this.J = !1, this.O = 0, this.M = null, this.W = this.K = this.T = this.P = !1, this.h = new
|
|
1758
|
+
this.j = t, this.i = n, this.l = s, this.R = o || 1, this.U = new Vt(this), this.I = 45e3, this.H = null, this.o = !1, this.m = this.A = this.v = this.L = this.F = this.S = this.B = null, this.D = [], this.g = null, this.C = 0, this.s = this.u = null, this.X = -1, this.J = !1, this.O = 0, this.M = null, this.W = this.K = this.T = this.P = !1, this.h = new Un();
|
|
1760
1759
|
}
|
|
1761
|
-
function
|
|
1760
|
+
function Un() {
|
|
1762
1761
|
this.i = null, this.g = "", this.h = !1;
|
|
1763
1762
|
}
|
|
1764
|
-
var
|
|
1763
|
+
var On = {}, He = {};
|
|
1765
1764
|
function Ge(t, n, s) {
|
|
1766
|
-
t.L = 1, t.v = le(ot(n)), t.m = s, t.P = !0,
|
|
1765
|
+
t.L = 1, t.v = le(ot(n)), t.m = s, t.P = !0, Cn(t, null);
|
|
1767
1766
|
}
|
|
1768
|
-
function
|
|
1767
|
+
function Cn(t, n) {
|
|
1769
1768
|
t.F = Date.now(), he(t), t.A = ot(t.v);
|
|
1770
1769
|
var s = t.A, o = t.R;
|
|
1771
|
-
Array.isArray(o) || (o = [String(o)]), Qn(s.i, "t", o), t.C = 0, s = t.j.J, t.h = new
|
|
1770
|
+
Array.isArray(o) || (o = [String(o)]), Qn(s.i, "t", o), t.C = 0, s = t.j.J, t.h = new Un(), t.g = as(t.j, s ? n : null, !t.m), 0 < t.O && (t.M = new li(L(t.Y, t, t.g), t.O)), n = t.U, s = t.g, o = t.ca;
|
|
1772
1771
|
var g = "readystatechange";
|
|
1773
1772
|
Array.isArray(g) || (g && (yn[0] = g.toString()), g = yn);
|
|
1774
1773
|
for (var T = 0; T < g.length; T++) {
|
|
@@ -1792,18 +1791,18 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1792
1791
|
if (t == this.g) t: {
|
|
1793
1792
|
const j = ht(this.g);
|
|
1794
1793
|
var n = this.g.Ba();
|
|
1795
|
-
const
|
|
1794
|
+
const Ot = this.g.Z();
|
|
1796
1795
|
if (!(3 > j) && (j != 3 || this.g && (this.h.h || this.g.oa() || zn(this.g)))) {
|
|
1797
|
-
this.J || j != 4 || n == 7 || (n == 8 || 0 >=
|
|
1796
|
+
this.J || j != 4 || n == 7 || (n == 8 || 0 >= Ot ? xt(3) : xt(2)), Qe(this);
|
|
1798
1797
|
var s = this.g.Z();
|
|
1799
1798
|
this.X = s;
|
|
1800
|
-
e: if (
|
|
1799
|
+
e: if (Nn(this)) {
|
|
1801
1800
|
var o = zn(this.g);
|
|
1802
1801
|
t = "";
|
|
1803
1802
|
var g = o.length, T = ht(this.g) == 4;
|
|
1804
1803
|
if (!this.h.i) {
|
|
1805
1804
|
if (typeof TextDecoder > "u") {
|
|
1806
|
-
|
|
1805
|
+
_t(this), Ht(this);
|
|
1807
1806
|
var y = "";
|
|
1808
1807
|
break e;
|
|
1809
1808
|
}
|
|
@@ -1816,9 +1815,9 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1816
1815
|
if (this.T && !this.K) {
|
|
1817
1816
|
e: {
|
|
1818
1817
|
if (this.g) {
|
|
1819
|
-
var
|
|
1820
|
-
if ((
|
|
1821
|
-
var I =
|
|
1818
|
+
var O, B = this.g;
|
|
1819
|
+
if ((O = B.g ? B.g.getResponseHeader("X-HTTP-Initial-Response") : null) && !tt(O)) {
|
|
1820
|
+
var I = O;
|
|
1822
1821
|
break e;
|
|
1823
1822
|
}
|
|
1824
1823
|
}
|
|
@@ -1826,7 +1825,7 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1826
1825
|
}
|
|
1827
1826
|
if (s = I) wt(this.i, this.l, s, "Initial handshake response via X-HTTP-Initial-Response"), this.K = !0, We(this, s);
|
|
1828
1827
|
else {
|
|
1829
|
-
this.o = !1, this.s = 3, G(12),
|
|
1828
|
+
this.o = !1, this.s = 3, G(12), _t(this), Ht(this);
|
|
1830
1829
|
break t;
|
|
1831
1830
|
}
|
|
1832
1831
|
}
|
|
@@ -1836,42 +1835,42 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1836
1835
|
for (; !this.J && this.C < y.length; ) if (q = mi(this, y), q == He) {
|
|
1837
1836
|
j == 4 && (this.s = 4, G(14), s = !1), wt(this.i, this.l, null, "[Incomplete Response]");
|
|
1838
1837
|
break;
|
|
1839
|
-
} else if (q ==
|
|
1838
|
+
} else if (q == On) {
|
|
1840
1839
|
this.s = 4, G(15), wt(this.i, this.l, y, "[Invalid Chunk]"), s = !1;
|
|
1841
1840
|
break;
|
|
1842
1841
|
} else wt(this.i, this.l, q, null), We(this, q);
|
|
1843
|
-
if (
|
|
1842
|
+
if (Nn(this) && this.C != 0 && (this.h.g = this.h.g.slice(this.C), this.C = 0), j != 4 || y.length != 0 || this.h.h || (this.s = 1, G(16), s = !1), this.o = this.o && s, !s) wt(this.i, this.l, y, "[Invalid Chunked Response]"), _t(this), Ht(this);
|
|
1844
1843
|
else if (0 < y.length && !this.W) {
|
|
1845
1844
|
this.W = !0;
|
|
1846
1845
|
var k = this.j;
|
|
1847
1846
|
k.g == this && k.ba && !k.M && (k.j.info("Great, no buffering proxy detected. Bytes received: " + y.length), ze(k), k.M = !0, G(11));
|
|
1848
1847
|
}
|
|
1849
1848
|
} else wt(this.i, this.l, y, null), We(this, y);
|
|
1850
|
-
j == 4 &&
|
|
1851
|
-
} else Bi(this.g), s == 400 && 0 < y.indexOf("Unknown SID") ? (this.s = 3, G(12)) : (this.s = 0, G(13)),
|
|
1849
|
+
j == 4 && _t(this), this.o && !this.J && (j == 4 ? is(this.j, this) : (this.o = !1, he(this)));
|
|
1850
|
+
} else Bi(this.g), s == 400 && 0 < y.indexOf("Unknown SID") ? (this.s = 3, G(12)) : (this.s = 0, G(13)), _t(this), Ht(this);
|
|
1852
1851
|
}
|
|
1853
1852
|
}
|
|
1854
1853
|
} catch {
|
|
1855
1854
|
} finally {
|
|
1856
1855
|
}
|
|
1857
1856
|
};
|
|
1858
|
-
function
|
|
1857
|
+
function Nn(t) {
|
|
1859
1858
|
return t.g ? t.u == "GET" && t.L != 2 && t.j.Ca : !1;
|
|
1860
1859
|
}
|
|
1861
1860
|
function mi(t, n) {
|
|
1862
1861
|
var s = t.C, o = n.indexOf(`
|
|
1863
1862
|
`, s);
|
|
1864
|
-
return o == -1 ? He : (s = Number(n.substring(s, o)), isNaN(s) ?
|
|
1863
|
+
return o == -1 ? He : (s = Number(n.substring(s, o)), isNaN(s) ? On : (o += 1, o + s > n.length ? He : (n = n.slice(o, o + s), t.C = o + s, n)));
|
|
1865
1864
|
}
|
|
1866
1865
|
ft.prototype.cancel = function() {
|
|
1867
|
-
this.J = !0,
|
|
1866
|
+
this.J = !0, _t(this);
|
|
1868
1867
|
};
|
|
1869
1868
|
function he(t) {
|
|
1870
|
-
t.S = Date.now() + t.I,
|
|
1869
|
+
t.S = Date.now() + t.I, Ln(t, t.I);
|
|
1871
1870
|
}
|
|
1872
|
-
function
|
|
1871
|
+
function Ln(t, n) {
|
|
1873
1872
|
if (t.B != null) throw Error("WatchDog timer not null");
|
|
1874
|
-
t.B = kt(
|
|
1873
|
+
t.B = kt(L(t.ba, t), n);
|
|
1875
1874
|
}
|
|
1876
1875
|
function Qe(t) {
|
|
1877
1876
|
t.B && (S.clearTimeout(t.B), t.B = null);
|
|
@@ -1879,12 +1878,12 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1879
1878
|
ft.prototype.ba = function() {
|
|
1880
1879
|
this.B = null;
|
|
1881
1880
|
const t = Date.now();
|
|
1882
|
-
0 <= t - this.S ? (
|
|
1881
|
+
0 <= t - this.S ? (_i(this.i, this.A), this.L != 2 && (xt(), G(17)), _t(this), this.s = 2, Ht(this)) : Ln(this, this.S - t);
|
|
1883
1882
|
};
|
|
1884
1883
|
function Ht(t) {
|
|
1885
1884
|
t.j.G == 0 || t.J || is(t.j, t);
|
|
1886
1885
|
}
|
|
1887
|
-
function
|
|
1886
|
+
function _t(t) {
|
|
1888
1887
|
Qe(t);
|
|
1889
1888
|
var n = t.M;
|
|
1890
1889
|
n && typeof n.ma == "function" && n.ma(), t.M = null, An(t.U), t.g && (n = t.g, t.g = null, n.abort(), n.ma());
|
|
@@ -1892,8 +1891,8 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1892
1891
|
function We(t, n) {
|
|
1893
1892
|
try {
|
|
1894
1893
|
var s = t.j;
|
|
1895
|
-
if (s.G != 0 && (s.g == t ||
|
|
1896
|
-
if (!t.K &&
|
|
1894
|
+
if (s.G != 0 && (s.g == t || Ke(s.h, t))) {
|
|
1895
|
+
if (!t.K && Ke(s.h, t) && s.G == 3) {
|
|
1897
1896
|
try {
|
|
1898
1897
|
var o = s.Da.g.parse(n);
|
|
1899
1898
|
} catch {
|
|
@@ -1904,11 +1903,11 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1904
1903
|
if (g[0] == 0) {
|
|
1905
1904
|
t:
|
|
1906
1905
|
if (!s.u) {
|
|
1907
|
-
if (s.g) if (s.g.F + 3e3 < t.F)
|
|
1906
|
+
if (s.g) if (s.g.F + 3e3 < t.F) _e(s), pe(s);
|
|
1908
1907
|
else break t;
|
|
1909
1908
|
qe(s), G(18);
|
|
1910
1909
|
}
|
|
1911
|
-
} else s.za = g[1], 0 < s.za - s.T && 37500 > g[2] && s.F && s.v == 0 && !s.C && (s.C = kt(
|
|
1910
|
+
} else s.za = g[1], 0 < s.za - s.T && 37500 > g[2] && s.F && s.v == 0 && !s.C && (s.C = kt(L(s.Za, s), 6e3));
|
|
1912
1911
|
if (1 >= Mn(s.h) && s.ca) {
|
|
1913
1912
|
try {
|
|
1914
1913
|
s.ca();
|
|
@@ -1917,7 +1916,7 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1917
1916
|
s.ca = void 0;
|
|
1918
1917
|
}
|
|
1919
1918
|
} else Tt(s, 11);
|
|
1920
|
-
} else if ((t.K || s.g == t) &&
|
|
1919
|
+
} else if ((t.K || s.g == t) && _e(s), !tt(n)) for (g = s.Da.g.parse(n), n = 0; n < g.length; n++) {
|
|
1921
1920
|
let I = g[n];
|
|
1922
1921
|
if (s.T = I[0], I = I[1], s.G == 2) if (I[0] == "c") {
|
|
1923
1922
|
s.K = I[1], s.ia = I[2];
|
|
@@ -1925,26 +1924,26 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1925
1924
|
k != null && (s.la = k, s.j.info("VER=" + s.la));
|
|
1926
1925
|
const j = I[4];
|
|
1927
1926
|
j != null && (s.Aa = j, s.j.info("SVER=" + s.Aa));
|
|
1928
|
-
const
|
|
1929
|
-
|
|
1927
|
+
const Ot = I[5];
|
|
1928
|
+
Ot != null && typeof Ot == "number" && 0 < Ot && (o = 1.5 * Ot, s.L = o, s.j.info("backChannelRequestTimeoutMs_=" + o)), o = s;
|
|
1930
1929
|
const q = t.g;
|
|
1931
1930
|
if (q) {
|
|
1932
|
-
const
|
|
1933
|
-
if (
|
|
1931
|
+
const de = q.g ? q.g.getResponseHeader("X-Client-Wire-Protocol") : null;
|
|
1932
|
+
if (de) {
|
|
1934
1933
|
var T = o.h;
|
|
1935
|
-
T.g ||
|
|
1934
|
+
T.g || de.indexOf("spdy") == -1 && de.indexOf("quic") == -1 && de.indexOf("h2") == -1 || (T.j = T.l, T.g = /* @__PURE__ */ new Set(), T.h && (Ye(T, T.h), T.h = null));
|
|
1936
1935
|
}
|
|
1937
1936
|
if (o.D) {
|
|
1938
1937
|
const Je = q.g ? q.g.getResponseHeader("X-HTTP-Session-Id") : null;
|
|
1939
|
-
Je && (o.ya = Je,
|
|
1938
|
+
Je && (o.ya = Je, N(o.I, o.D, Je));
|
|
1940
1939
|
}
|
|
1941
1940
|
}
|
|
1942
1941
|
s.G = 3, s.l && s.l.ua(), s.ba && (s.R = Date.now() - t.F, s.j.info("Handshake RTT: " + s.R + "ms")), o = s;
|
|
1943
1942
|
var y = t;
|
|
1944
1943
|
if (o.qa = hs(o, o.J ? o.ia : null, o.W), y.K) {
|
|
1945
1944
|
Bn(o.h, y);
|
|
1946
|
-
var
|
|
1947
|
-
B && (
|
|
1945
|
+
var O = y, B = o.L;
|
|
1946
|
+
B && (O.I = B), O.B && (Qe(O), he(O)), o.g = y;
|
|
1948
1947
|
} else ns(o);
|
|
1949
1948
|
0 < s.i.length && ge(s);
|
|
1950
1949
|
} else I[0] != "stop" && I[0] != "close" || Tt(s, 7);
|
|
@@ -1960,7 +1959,7 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1960
1959
|
this.g = t, this.map = n;
|
|
1961
1960
|
}
|
|
1962
1961
|
};
|
|
1963
|
-
function
|
|
1962
|
+
function Pn(t) {
|
|
1964
1963
|
this.l = t || 10, S.PerformanceNavigationTiming ? (t = S.performance.getEntriesByType("navigation"), t = 0 < t.length && (t[0].nextHopProtocol == "hq" || t[0].nextHopProtocol == "h2")) : t = !!(S.chrome && S.chrome.loadTimes && S.chrome.loadTimes() && S.chrome.loadTimes().wasFetchedViaSpdy), this.j = t ? this.l : 1, this.g = null, 1 < this.j && (this.g = /* @__PURE__ */ new Set()), this.h = null, this.i = [];
|
|
1965
1964
|
}
|
|
1966
1965
|
function bn(t) {
|
|
@@ -1969,16 +1968,16 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
1969
1968
|
function Mn(t) {
|
|
1970
1969
|
return t.h ? 1 : t.g ? t.g.size : 0;
|
|
1971
1970
|
}
|
|
1972
|
-
function
|
|
1971
|
+
function Ke(t, n) {
|
|
1973
1972
|
return t.h ? t.h == n : t.g ? t.g.has(n) : !1;
|
|
1974
1973
|
}
|
|
1975
|
-
function
|
|
1974
|
+
function Ye(t, n) {
|
|
1976
1975
|
t.g ? t.g.add(n) : t.h = n;
|
|
1977
1976
|
}
|
|
1978
1977
|
function Bn(t, n) {
|
|
1979
1978
|
t.h && t.h == n ? t.h = null : t.g && t.g.has(n) && t.g.delete(n);
|
|
1980
1979
|
}
|
|
1981
|
-
|
|
1980
|
+
Pn.prototype.cancel = function() {
|
|
1982
1981
|
if (this.i = Vn(this), this.h) this.h.cancel(), this.h = null;
|
|
1983
1982
|
else if (this.g && this.g.size !== 0) {
|
|
1984
1983
|
for (const t of this.g.values()) t.cancel();
|
|
@@ -2042,21 +2041,21 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2042
2041
|
}
|
|
2043
2042
|
}
|
|
2044
2043
|
}
|
|
2045
|
-
function
|
|
2046
|
-
if (this.g = this.o = this.j = "", this.s = null, this.m = this.l = "", this.h = !1, t instanceof
|
|
2044
|
+
function dt(t) {
|
|
2045
|
+
if (this.g = this.o = this.j = "", this.s = null, this.m = this.l = "", this.h = !1, t instanceof dt) {
|
|
2047
2046
|
this.h = t.h, ae(this, t.j), this.o = t.o, this.g = t.g, ce(this, t.s), this.l = t.l;
|
|
2048
2047
|
var n = t.i, s = new Wt();
|
|
2049
2048
|
s.i = n.i, n.g && (s.g = new Map(n.g), s.h = n.h), kn(this, s), this.m = t.m;
|
|
2050
2049
|
} else t && (n = String(t).match(xn)) ? (this.h = !1, ae(this, n[1] || "", !0), this.o = Gt(n[2] || ""), this.g = Gt(n[3] || "", !0), ce(this, n[4]), this.l = Gt(n[5] || "", !0), kn(this, n[6] || "", !0), this.m = Gt(n[7] || "")) : (this.h = !1, this.i = new Wt(null, this.h));
|
|
2051
2050
|
}
|
|
2052
|
-
|
|
2051
|
+
dt.prototype.toString = function() {
|
|
2053
2052
|
var t = [], n = this.j;
|
|
2054
2053
|
n && t.push(Qt(n, jn, !0), ":");
|
|
2055
2054
|
var s = this.g;
|
|
2056
|
-
return (s || n == "file") && (t.push("//"), (n = this.o) && t.push(Qt(n, jn, !0), "@"), t.push(encodeURIComponent(String(s)).replace(/%25([0-9a-fA-F]{2})/g, "%$1")), s = this.s, s != null && t.push(":", String(s))), (s = this.l) && (this.g && s.charAt(0) != "/" && t.push("/"), t.push(Qt(s, s.charAt(0) == "/" ? wi : Ii, !0))), (s = this.i.toString()) && t.push("?", s), (s = this.m) && t.push("#", Qt(s,
|
|
2055
|
+
return (s || n == "file") && (t.push("//"), (n = this.o) && t.push(Qt(n, jn, !0), "@"), t.push(encodeURIComponent(String(s)).replace(/%25([0-9a-fA-F]{2})/g, "%$1")), s = this.s, s != null && t.push(":", String(s))), (s = this.l) && (this.g && s.charAt(0) != "/" && t.push("/"), t.push(Qt(s, s.charAt(0) == "/" ? wi : Ii, !0))), (s = this.i.toString()) && t.push("?", s), (s = this.m) && t.push("#", Qt(s, Ui)), t.join("");
|
|
2057
2056
|
};
|
|
2058
2057
|
function ot(t) {
|
|
2059
|
-
return new
|
|
2058
|
+
return new dt(t);
|
|
2060
2059
|
}
|
|
2061
2060
|
function ae(t, n, s) {
|
|
2062
2061
|
t.j = s ? Gt(n, !0) : n, t.j && (t.j = t.j.replace(/:$/, ""));
|
|
@@ -2068,13 +2067,13 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2068
2067
|
} else t.s = null;
|
|
2069
2068
|
}
|
|
2070
2069
|
function kn(t, n, s) {
|
|
2071
|
-
n instanceof Wt ? (t.i = n,
|
|
2070
|
+
n instanceof Wt ? (t.i = n, Oi(t.i, t.h)) : (s || (n = Qt(n, Di)), t.i = new Wt(n, t.h));
|
|
2072
2071
|
}
|
|
2073
|
-
function
|
|
2072
|
+
function N(t, n, s) {
|
|
2074
2073
|
t.i.set(n, s);
|
|
2075
2074
|
}
|
|
2076
2075
|
function le(t) {
|
|
2077
|
-
return
|
|
2076
|
+
return N(t, "zx", Math.floor(2147483648 * Math.random()).toString(36) + Math.abs(Math.floor(2147483648 * Math.random()) ^ Date.now()).toString(36)), t;
|
|
2078
2077
|
}
|
|
2079
2078
|
function Gt(t, n) {
|
|
2080
2079
|
return t ? n ? decodeURI(t.replace(/%25/g, "%2525")) : decodeURIComponent(t) : "";
|
|
@@ -2085,7 +2084,7 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2085
2084
|
function vi(t) {
|
|
2086
2085
|
return t = t.charCodeAt(0), "%" + (t >> 4 & 15).toString(16) + (t & 15).toString(16);
|
|
2087
2086
|
}
|
|
2088
|
-
var jn = /[#\/\?@]/g, Ii = /[#\?:]/g, wi = /[#\?]/g, Di = /[#\?@]/g,
|
|
2087
|
+
var jn = /[#\/\?@]/g, Ii = /[#\?:]/g, wi = /[#\?]/g, Di = /[#\?@]/g, Ui = /#/g;
|
|
2089
2088
|
function Wt(t, n) {
|
|
2090
2089
|
this.h = this.g = null, this.i = t || null, this.j = !!n;
|
|
2091
2090
|
}
|
|
@@ -2153,22 +2152,22 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2153
2152
|
function Dt(t, n) {
|
|
2154
2153
|
return n = String(n), t.j && (n = n.toLowerCase()), n;
|
|
2155
2154
|
}
|
|
2156
|
-
function
|
|
2155
|
+
function Oi(t, n) {
|
|
2157
2156
|
n && !t.j && (Et(t), t.i = null, t.g.forEach(function(s, o) {
|
|
2158
2157
|
var g = o.toLowerCase();
|
|
2159
2158
|
o != g && (Hn(this, o), Qn(this, g, s));
|
|
2160
2159
|
}, t)), t.j = n;
|
|
2161
2160
|
}
|
|
2162
|
-
function
|
|
2161
|
+
function Ci(t, n) {
|
|
2163
2162
|
const s = new jt();
|
|
2164
2163
|
if (S.Image) {
|
|
2165
2164
|
const o = new Image();
|
|
2166
|
-
o.onload =
|
|
2165
|
+
o.onload = Y(pt, s, "TestLoadImage: loaded", !0, n, o), o.onerror = Y(pt, s, "TestLoadImage: error", !1, n, o), o.onabort = Y(pt, s, "TestLoadImage: abort", !1, n, o), o.ontimeout = Y(pt, s, "TestLoadImage: timeout", !1, n, o), S.setTimeout(function() {
|
|
2167
2166
|
o.ontimeout && o.ontimeout();
|
|
2168
2167
|
}, 1e4), o.src = t;
|
|
2169
2168
|
} else n(!1);
|
|
2170
2169
|
}
|
|
2171
|
-
function
|
|
2170
|
+
function Ni(t, n) {
|
|
2172
2171
|
const s = new jt(), o = new AbortController(), g = setTimeout(() => {
|
|
2173
2172
|
o.abort(), pt(s, "TestPingServer: timeout", !1, n);
|
|
2174
2173
|
}, 1e4);
|
|
@@ -2184,10 +2183,10 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2184
2183
|
} catch {
|
|
2185
2184
|
}
|
|
2186
2185
|
}
|
|
2187
|
-
function
|
|
2186
|
+
function Li() {
|
|
2188
2187
|
this.g = new fi();
|
|
2189
2188
|
}
|
|
2190
|
-
function
|
|
2189
|
+
function Pi(t, n, s) {
|
|
2191
2190
|
const o = s || "";
|
|
2192
2191
|
try {
|
|
2193
2192
|
Fn(t, function(g, T) {
|
|
@@ -2201,7 +2200,7 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2201
2200
|
function ue(t) {
|
|
2202
2201
|
this.l = t.Ub || null, this.j = t.eb || !1;
|
|
2203
2202
|
}
|
|
2204
|
-
|
|
2203
|
+
U(ue, Be), ue.prototype.g = function() {
|
|
2205
2204
|
return new fe(this.l, this.j);
|
|
2206
2205
|
}, ue.prototype.i = /* @__PURE__ */ function(t) {
|
|
2207
2206
|
return function() {
|
|
@@ -2211,9 +2210,9 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2211
2210
|
function fe(t, n) {
|
|
2212
2211
|
x.call(this), this.D = t, this.o = n, this.m = void 0, this.status = this.readyState = 0, this.responseType = this.responseText = this.response = this.statusText = "", this.onreadystatechange = null, this.u = new Headers(), this.h = null, this.B = "GET", this.A = "", this.g = !1, this.v = this.j = this.l = null;
|
|
2213
2212
|
}
|
|
2214
|
-
|
|
2213
|
+
U(fe, x), r = fe.prototype, r.open = function(t, n) {
|
|
2215
2214
|
if (this.readyState != 0) throw this.abort(), Error("Error reopening a connection");
|
|
2216
|
-
this.B = t, this.A = n, this.readyState = 1,
|
|
2215
|
+
this.B = t, this.A = n, this.readyState = 1, Yt(this);
|
|
2217
2216
|
}, r.send = function(t) {
|
|
2218
2217
|
if (this.readyState != 1) throw this.abort(), Error("need to call open() first. ");
|
|
2219
2218
|
this.g = !0;
|
|
@@ -2221,9 +2220,9 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2221
2220
|
t && (n.body = t), (this.D || S).fetch(new Request(this.A, n)).then(this.Sa.bind(this), this.ga.bind(this));
|
|
2222
2221
|
}, r.abort = function() {
|
|
2223
2222
|
this.response = this.responseText = "", this.u = new Headers(), this.status = 0, this.j && this.j.cancel("Request was aborted.").catch(() => {
|
|
2224
|
-
}), 1 <= this.readyState && this.g && this.readyState != 4 && (this.g = !1,
|
|
2223
|
+
}), 1 <= this.readyState && this.g && this.readyState != 4 && (this.g = !1, Kt(this)), this.readyState = 0;
|
|
2225
2224
|
}, r.Sa = function(t) {
|
|
2226
|
-
if (this.g && (this.l = t, this.h || (this.status = this.l.status, this.statusText = this.l.statusText, this.h = t.headers, this.readyState = 2,
|
|
2225
|
+
if (this.g && (this.l = t, this.h || (this.status = this.l.status, this.statusText = this.l.statusText, this.h = t.headers, this.readyState = 2, Yt(this)), this.g && (this.readyState = 3, Yt(this), this.g))) if (this.responseType === "arraybuffer") t.arrayBuffer().then(this.Qa.bind(this), this.ga.bind(this));
|
|
2227
2226
|
else if (typeof S.ReadableStream < "u" && "body" in t) {
|
|
2228
2227
|
if (this.j = t.body.getReader(), this.o) {
|
|
2229
2228
|
if (this.responseType) throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');
|
|
@@ -2242,17 +2241,17 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2242
2241
|
var n = t.value ? t.value : new Uint8Array(0);
|
|
2243
2242
|
(n = this.v.decode(n, { stream: !t.done })) && (this.response = this.responseText += n);
|
|
2244
2243
|
}
|
|
2245
|
-
t.done ?
|
|
2244
|
+
t.done ? Kt(this) : Yt(this), this.readyState == 3 && Wn(this);
|
|
2246
2245
|
}
|
|
2247
2246
|
}, r.Ra = function(t) {
|
|
2248
|
-
this.g && (this.response = this.responseText = t,
|
|
2247
|
+
this.g && (this.response = this.responseText = t, Kt(this));
|
|
2249
2248
|
}, r.Qa = function(t) {
|
|
2250
|
-
this.g && (this.response = t,
|
|
2249
|
+
this.g && (this.response = t, Kt(this));
|
|
2251
2250
|
}, r.ga = function() {
|
|
2252
|
-
this.g &&
|
|
2251
|
+
this.g && Kt(this);
|
|
2253
2252
|
};
|
|
2254
|
-
function
|
|
2255
|
-
t.readyState = 4, t.l = null, t.j = null, t.v = null,
|
|
2253
|
+
function Kt(t) {
|
|
2254
|
+
t.readyState = 4, t.l = null, t.j = null, t.v = null, Yt(t);
|
|
2256
2255
|
}
|
|
2257
2256
|
r.setRequestHeader = function(t, n) {
|
|
2258
2257
|
this.u.append(t, n);
|
|
@@ -2265,7 +2264,7 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2265
2264
|
return t.join(`\r
|
|
2266
2265
|
`);
|
|
2267
2266
|
};
|
|
2268
|
-
function
|
|
2267
|
+
function Yt(t) {
|
|
2269
2268
|
t.onreadystatechange && t.onreadystatechange.call(t);
|
|
2270
2269
|
}
|
|
2271
2270
|
Object.defineProperty(fe.prototype, "withCredentials", { get: function() {
|
|
@@ -2273,7 +2272,7 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2273
2272
|
}, set: function(t) {
|
|
2274
2273
|
this.m = t ? "include" : "same-origin";
|
|
2275
2274
|
} });
|
|
2276
|
-
function
|
|
2275
|
+
function Kn(t) {
|
|
2277
2276
|
let n = "";
|
|
2278
2277
|
return et(t, function(s, o) {
|
|
2279
2278
|
n += o, n += ":", n += s, n += `\r
|
|
@@ -2288,22 +2287,22 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2288
2287
|
}
|
|
2289
2288
|
o = !0;
|
|
2290
2289
|
}
|
|
2291
|
-
o || (s =
|
|
2290
|
+
o || (s = Kn(s), typeof t == "string" ? s != null && encodeURIComponent(String(s)) : N(t, n, s));
|
|
2292
2291
|
}
|
|
2293
|
-
function
|
|
2292
|
+
function P(t) {
|
|
2294
2293
|
x.call(this), this.headers = /* @__PURE__ */ new Map(), this.o = t || null, this.h = !1, this.v = this.g = null, this.D = "", this.m = 0, this.l = "", this.j = this.B = this.u = this.A = !1, this.I = null, this.H = "", this.J = !1;
|
|
2295
2294
|
}
|
|
2296
|
-
|
|
2295
|
+
U(P, x);
|
|
2297
2296
|
var bi = /^https?$/i, Mi = ["POST", "PUT"];
|
|
2298
|
-
r =
|
|
2297
|
+
r = P.prototype, r.Ha = function(t) {
|
|
2299
2298
|
this.J = t;
|
|
2300
2299
|
}, r.ea = function(t, n, s, o) {
|
|
2301
2300
|
if (this.g) throw Error("[goog.net.XhrIo] Object is active with another request=" + this.D + "; newUri=" + t);
|
|
2302
|
-
n = n ? n.toUpperCase() : "GET", this.D = t, this.l = "", this.m = 0, this.A = !1, this.h = !0, this.g = this.o ? this.o.g() : je.g(), this.v = this.o ? Rn(this.o) : Rn(je), this.g.onreadystatechange =
|
|
2301
|
+
n = n ? n.toUpperCase() : "GET", this.D = t, this.l = "", this.m = 0, this.A = !1, this.h = !0, this.g = this.o ? this.o.g() : je.g(), this.v = this.o ? Rn(this.o) : Rn(je), this.g.onreadystatechange = L(this.Ea, this);
|
|
2303
2302
|
try {
|
|
2304
2303
|
this.B = !0, this.g.open(n, String(t), !0), this.B = !1;
|
|
2305
2304
|
} catch (T) {
|
|
2306
|
-
|
|
2305
|
+
Yn(this, T);
|
|
2307
2306
|
return;
|
|
2308
2307
|
}
|
|
2309
2308
|
if (t = s || "", s = new Map(this.headers), o) if (Object.getPrototypeOf(o) === Object.prototype) for (var g in o) s.set(g, o[g]);
|
|
@@ -2315,10 +2314,10 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2315
2314
|
try {
|
|
2316
2315
|
qn(this), this.u = !0, this.g.send(t), this.u = !1;
|
|
2317
2316
|
} catch (T) {
|
|
2318
|
-
|
|
2317
|
+
Yn(this, T);
|
|
2319
2318
|
}
|
|
2320
2319
|
};
|
|
2321
|
-
function
|
|
2320
|
+
function Yn(t, n) {
|
|
2322
2321
|
t.h = !1, t.g && (t.j = !0, t.g.abort(), t.j = !1), t.l = n, t.m = 5, $n(t), Ee(t);
|
|
2323
2322
|
}
|
|
2324
2323
|
function $n(t) {
|
|
@@ -2327,7 +2326,7 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2327
2326
|
r.abort = function(t) {
|
|
2328
2327
|
this.g && this.h && (this.h = !1, this.j = !0, this.g.abort(), this.j = !1, this.m = t || 7, H(this, "complete"), H(this, "abort"), Ee(this));
|
|
2329
2328
|
}, r.N = function() {
|
|
2330
|
-
this.g && (this.h && (this.h = !1, this.j = !0, this.g.abort(), this.j = !1), Ee(this, !0)),
|
|
2329
|
+
this.g && (this.h && (this.h = !1, this.j = !0, this.g.abort(), this.j = !1), Ee(this, !0)), P.aa.N.call(this);
|
|
2331
2330
|
}, r.Ea = function() {
|
|
2332
2331
|
this.s || (this.B || this.u || this.j ? Xn(this) : this.bb());
|
|
2333
2332
|
}, r.bb = function() {
|
|
@@ -2459,7 +2458,7 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2459
2458
|
return s && s.internalChannelParams && s.internalChannelParams[t] || n;
|
|
2460
2459
|
}
|
|
2461
2460
|
function Jn(t) {
|
|
2462
|
-
this.Aa = 0, this.i = [], this.j = new jt(), this.ia = this.qa = this.I = this.W = this.g = this.ya = this.D = this.H = this.m = this.S = this.o = null, this.Ya = this.U = 0, this.Va = $t("failFast", !1, t), this.F = this.C = this.u = this.s = this.l = null, this.X = !0, this.za = this.T = -1, this.Y = this.v = this.B = 0, this.Ta = $t("baseRetryDelayMs", 5e3, t), this.cb = $t("retryDelaySeedMs", 1e4, t), this.Wa = $t("forwardChannelMaxRetries", 2, t), this.wa = $t("forwardChannelRequestTimeoutMs", 2e4, t), this.pa = t && t.xmlHttpFactory || void 0, this.Xa = t && t.Tb || void 0, this.Ca = t && t.useFetchStreams || !1, this.L = void 0, this.J = t && t.supportsCrossDomainXhr || !1, this.K = "", this.h = new
|
|
2461
|
+
this.Aa = 0, this.i = [], this.j = new jt(), this.ia = this.qa = this.I = this.W = this.g = this.ya = this.D = this.H = this.m = this.S = this.o = null, this.Ya = this.U = 0, this.Va = $t("failFast", !1, t), this.F = this.C = this.u = this.s = this.l = null, this.X = !0, this.za = this.T = -1, this.Y = this.v = this.B = 0, this.Ta = $t("baseRetryDelayMs", 5e3, t), this.cb = $t("retryDelaySeedMs", 1e4, t), this.Wa = $t("forwardChannelMaxRetries", 2, t), this.wa = $t("forwardChannelRequestTimeoutMs", 2e4, t), this.pa = t && t.xmlHttpFactory || void 0, this.Xa = t && t.Tb || void 0, this.Ca = t && t.useFetchStreams || !1, this.L = void 0, this.J = t && t.supportsCrossDomainXhr || !1, this.K = "", this.h = new Pn(t && t.concurrentRequestLimit), this.Da = new Li(), this.P = t && t.fastHandshake || !1, this.O = t && t.encodeInitMessageHeaders || !1, this.P && this.O && (this.O = !1), this.Ua = t && t.Rb || !1, t && t.xa && this.j.xa(), t && t.forceLongPolling && (this.X = !1), this.ba = !this.P && this.X && t && t.detectBufferingProxy || !1, this.ja = void 0, t && t.longPollingTimeout && 0 < t.longPollingTimeout && (this.ja = t.longPollingTimeout), this.ca = void 0, this.R = 0, this.M = !1, this.ka = this.A = null;
|
|
2463
2462
|
}
|
|
2464
2463
|
r = Jn.prototype, r.la = 8, r.G = 1, r.connect = function(t, n, s, o) {
|
|
2465
2464
|
G(0), this.W = t, this.H = n || {}, s && o !== void 0 && (this.H.OSID = s, this.H.OAID = o), this.F = this.X, this.I = hs(this, null, this.W), ge(this);
|
|
@@ -2467,7 +2466,7 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2467
2466
|
function Xe(t) {
|
|
2468
2467
|
if (Zn(t), t.G == 3) {
|
|
2469
2468
|
var n = t.U++, s = ot(t.I);
|
|
2470
|
-
if (
|
|
2469
|
+
if (N(s, "SID", t.K), N(s, "RID", n), N(s, "TYPE", "terminate"), Xt(t, s), n = new ft(t, t.j, n), n.L = 2, n.v = le(ot(s)), s = !1, S.navigator && S.navigator.sendBeacon) try {
|
|
2471
2470
|
s = S.navigator.sendBeacon(n.v.toString(), "");
|
|
2472
2471
|
} catch {
|
|
2473
2472
|
}
|
|
@@ -2479,7 +2478,7 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2479
2478
|
t.g && (ze(t), t.g.cancel(), t.g = null);
|
|
2480
2479
|
}
|
|
2481
2480
|
function Zn(t) {
|
|
2482
|
-
pe(t), t.u && (S.clearTimeout(t.u), t.u = null),
|
|
2481
|
+
pe(t), t.u && (S.clearTimeout(t.u), t.u = null), _e(t), t.h.cancel(), t.s && (typeof t.s == "number" && S.clearTimeout(t.s), t.s = null);
|
|
2483
2482
|
}
|
|
2484
2483
|
function ge(t) {
|
|
2485
2484
|
if (!bn(t.h) && !t.s) {
|
|
@@ -2489,7 +2488,7 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2489
2488
|
}
|
|
2490
2489
|
}
|
|
2491
2490
|
function Vi(t, n) {
|
|
2492
|
-
return Mn(t.h) >= t.h.j - (t.s ? 1 : 0) ? !1 : t.s ? (t.i = n.D.concat(t.i), !0) : t.G == 1 || t.G == 2 || t.B >= (t.Va ? 0 : t.Wa) ? !1 : (t.s = kt(
|
|
2491
|
+
return Mn(t.h) >= t.h.j - (t.s ? 1 : 0) ? !1 : t.s ? (t.i = n.D.concat(t.i), !0) : t.G == 1 || t.G == 2 || t.B >= (t.Va ? 0 : t.Wa) ? !1 : (t.s = kt(L(t.Ga, t, n), rs(t, t.B)), t.B++, !0);
|
|
2493
2492
|
}
|
|
2494
2493
|
r.Ga = function(t) {
|
|
2495
2494
|
if (this.s) if (this.s = null, this.G == 1) {
|
|
@@ -2520,7 +2519,7 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2520
2519
|
n = 1e3;
|
|
2521
2520
|
}
|
|
2522
2521
|
else n = 1e3;
|
|
2523
|
-
n = es(this, g, n), s = ot(this.I),
|
|
2522
|
+
n = es(this, g, n), s = ot(this.I), N(s, "RID", t), N(s, "CVER", 22), this.D && N(s, "X-HTTP-Session-Id", this.D), Xt(this, s), T && (this.O ? n = "headers=" + encodeURIComponent(String(Kn(T))) + "&" + n : this.m && $e(s, this.m, T)), Ye(this.h, g), this.Ua && N(s, "TYPE", "init"), this.P ? (N(s, "$req", n), N(s, "SID", "null"), g.T = !0, Ge(g, s, null)) : Ge(g, s, n), this.G = 2;
|
|
2524
2523
|
}
|
|
2525
2524
|
} else this.G == 3 && (t ? ts(this, t) : this.i.length == 0 || bn(this.h) || ts(this));
|
|
2526
2525
|
};
|
|
@@ -2528,36 +2527,36 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2528
2527
|
var s;
|
|
2529
2528
|
n ? s = n.l : s = t.U++;
|
|
2530
2529
|
const o = ot(t.I);
|
|
2531
|
-
|
|
2530
|
+
N(o, "SID", t.K), N(o, "RID", s), N(o, "AID", t.T), Xt(t, o), t.m && t.o && $e(o, t.m, t.o), s = new ft(t, t.j, s, t.B + 1), t.m === null && (s.H = t.o), n && (t.i = n.D.concat(t.i)), n = es(t, s, 1e3), s.I = Math.round(0.5 * t.wa) + Math.round(0.5 * t.wa * Math.random()), Ye(t.h, s), Ge(s, o, n);
|
|
2532
2531
|
}
|
|
2533
2532
|
function Xt(t, n) {
|
|
2534
2533
|
t.H && et(t.H, function(s, o) {
|
|
2535
|
-
|
|
2534
|
+
N(n, o, s);
|
|
2536
2535
|
}), t.l && Fn({}, function(s, o) {
|
|
2537
|
-
|
|
2536
|
+
N(n, o, s);
|
|
2538
2537
|
});
|
|
2539
2538
|
}
|
|
2540
2539
|
function es(t, n, s) {
|
|
2541
2540
|
s = Math.min(t.i.length, s);
|
|
2542
|
-
var o = t.l ?
|
|
2541
|
+
var o = t.l ? L(t.l.Na, t.l, t) : null;
|
|
2543
2542
|
t: {
|
|
2544
2543
|
var g = t.i;
|
|
2545
2544
|
let T = -1;
|
|
2546
2545
|
for (; ; ) {
|
|
2547
2546
|
const y = ["count=" + s];
|
|
2548
2547
|
T == -1 ? 0 < s ? (T = g[0].g, y.push("ofs=" + T)) : T = 0 : y.push("ofs=" + T);
|
|
2549
|
-
let
|
|
2548
|
+
let O = !0;
|
|
2550
2549
|
for (let B = 0; B < s; B++) {
|
|
2551
2550
|
let I = g[B].g;
|
|
2552
2551
|
const k = g[B].map;
|
|
2553
|
-
if (I -= T, 0 > I) T = Math.max(0, g[B].g - 100),
|
|
2552
|
+
if (I -= T, 0 > I) T = Math.max(0, g[B].g - 100), O = !1;
|
|
2554
2553
|
else try {
|
|
2555
|
-
|
|
2554
|
+
Pi(k, y, "req" + I + "_");
|
|
2556
2555
|
} catch {
|
|
2557
2556
|
o && o(k);
|
|
2558
2557
|
}
|
|
2559
2558
|
}
|
|
2560
|
-
if (
|
|
2559
|
+
if (O) {
|
|
2561
2560
|
o = y.join("&");
|
|
2562
2561
|
break t;
|
|
2563
2562
|
}
|
|
@@ -2573,12 +2572,12 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2573
2572
|
}
|
|
2574
2573
|
}
|
|
2575
2574
|
function qe(t) {
|
|
2576
|
-
return t.g || t.u || 3 <= t.v ? !1 : (t.Y++, t.u = kt(
|
|
2575
|
+
return t.g || t.u || 3 <= t.v ? !1 : (t.Y++, t.u = kt(L(t.Fa, t), rs(t, t.v)), t.v++, !0);
|
|
2577
2576
|
}
|
|
2578
2577
|
r.Fa = function() {
|
|
2579
2578
|
if (this.u = null, ss(this), this.ba && !(this.M || this.g == null || 0 >= this.R)) {
|
|
2580
2579
|
var t = 2 * this.R;
|
|
2581
|
-
this.j.info("BP detection timer enabled: " + t), this.A = kt(
|
|
2580
|
+
this.j.info("BP detection timer enabled: " + t), this.A = kt(L(this.ab, this), t);
|
|
2582
2581
|
}
|
|
2583
2582
|
}, r.ab = function() {
|
|
2584
2583
|
this.A && (this.A = null, this.j.info("BP detection timeout reached."), this.j.info("Buffering proxy detected and switch to long-polling!"), this.F = !1, this.M = !0, G(10), pe(this), ss(this));
|
|
@@ -2589,22 +2588,22 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2589
2588
|
function ss(t) {
|
|
2590
2589
|
t.g = new ft(t, t.j, "rpc", t.Y), t.m === null && (t.g.H = t.o), t.g.O = 0;
|
|
2591
2590
|
var n = ot(t.qa);
|
|
2592
|
-
|
|
2591
|
+
N(n, "RID", "rpc"), N(n, "SID", t.K), N(n, "AID", t.T), N(n, "CI", t.F ? "0" : "1"), !t.F && t.ja && N(n, "TO", t.ja), N(n, "TYPE", "xmlhttp"), Xt(t, n), t.m && t.o && $e(n, t.m, t.o), t.L && (t.g.I = t.L);
|
|
2593
2592
|
var s = t.g;
|
|
2594
|
-
t = t.ia, s.L = 1, s.v = le(ot(n)), s.m = null, s.P = !0,
|
|
2593
|
+
t = t.ia, s.L = 1, s.v = le(ot(n)), s.m = null, s.P = !0, Cn(s, t);
|
|
2595
2594
|
}
|
|
2596
2595
|
r.Za = function() {
|
|
2597
2596
|
this.C != null && (this.C = null, pe(this), qe(this), G(19));
|
|
2598
2597
|
};
|
|
2599
|
-
function
|
|
2598
|
+
function _e(t) {
|
|
2600
2599
|
t.C != null && (S.clearTimeout(t.C), t.C = null);
|
|
2601
2600
|
}
|
|
2602
2601
|
function is(t, n) {
|
|
2603
2602
|
var s = null;
|
|
2604
2603
|
if (t.g == n) {
|
|
2605
|
-
|
|
2604
|
+
_e(t), ze(t), t.g = null;
|
|
2606
2605
|
var o = 2;
|
|
2607
|
-
} else if (
|
|
2606
|
+
} else if (Ke(t.h, n)) s = n.D, Bn(t.h, n), o = 1;
|
|
2608
2607
|
else return;
|
|
2609
2608
|
if (t.G != 0) {
|
|
2610
2609
|
if (n.o) if (o == 1) {
|
|
@@ -2633,9 +2632,9 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2633
2632
|
}
|
|
2634
2633
|
function Tt(t, n) {
|
|
2635
2634
|
if (t.j.info("Error code " + n), n == 2) {
|
|
2636
|
-
var s =
|
|
2635
|
+
var s = L(t.fb, t), o = t.Xa;
|
|
2637
2636
|
const g = !o;
|
|
2638
|
-
o = new
|
|
2637
|
+
o = new dt(o || "//www.google.com/images/cleardot.gif"), S.location && S.location.protocol == "http" || ae(o, "https"), le(o), g ? Ci(o.toString(), s) : Ni(o.toString(), s);
|
|
2639
2638
|
} else G(2);
|
|
2640
2639
|
t.G = 0, t.l && t.l.sa(n), os(t), Zn(t);
|
|
2641
2640
|
}
|
|
@@ -2649,19 +2648,19 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2649
2648
|
}
|
|
2650
2649
|
}
|
|
2651
2650
|
function hs(t, n, s) {
|
|
2652
|
-
var o = s instanceof
|
|
2651
|
+
var o = s instanceof dt ? ot(s) : new dt(s);
|
|
2653
2652
|
if (o.g != "") n && (o.g = n + "." + o.g), ce(o, o.s);
|
|
2654
2653
|
else {
|
|
2655
2654
|
var g = S.location;
|
|
2656
2655
|
o = g.protocol, n = n ? n + "." + g.hostname : g.hostname, g = +g.port;
|
|
2657
|
-
var T = new
|
|
2656
|
+
var T = new dt(null);
|
|
2658
2657
|
o && ae(T, o), n && (T.g = n), g && ce(T, g), s && (T.l = s), o = T;
|
|
2659
2658
|
}
|
|
2660
|
-
return s = t.D, n = t.ya, s && n &&
|
|
2659
|
+
return s = t.D, n = t.ya, s && n && N(o, s, n), N(o, "VER", t.la), Xt(t, o), o;
|
|
2661
2660
|
}
|
|
2662
2661
|
function as(t, n, s) {
|
|
2663
2662
|
if (n && !t.J) throw Error("Can't create secondary domain capable XhrIo object.");
|
|
2664
|
-
return n = t.Ca && !t.pa ? new
|
|
2663
|
+
return n = t.Ca && !t.pa ? new P(new ue({ eb: s })) : new P(t.pa), n.Ha(t.J), n;
|
|
2665
2664
|
}
|
|
2666
2665
|
r.isActive = function() {
|
|
2667
2666
|
return !!this.l && this.l.isActive(this);
|
|
@@ -2677,9 +2676,9 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2677
2676
|
}, r.Na = function() {
|
|
2678
2677
|
};
|
|
2679
2678
|
function X(t, n) {
|
|
2680
|
-
x.call(this), this.g = new Jn(n), this.l = t, this.h = n && n.messageUrlParams || null, t = n && n.messageHeaders || null, n && n.clientProtocolHeaderRequired && (t ? t["X-Client-Protocol"] = "webchannel" : t = { "X-Client-Protocol": "webchannel" }), this.g.o = t, t = n && n.initMessageHeaders || null, n && n.messageContentType && (t ? t["X-WebChannel-Content-Type"] = n.messageContentType : t = { "X-WebChannel-Content-Type": n.messageContentType }), n && n.va && (t ? t["X-WebChannel-Client-Profile"] = n.va : t = { "X-WebChannel-Client-Profile": n.va }), this.g.S = t, (t = n && n.Sb) && !tt(t) && (this.g.m = t), this.v = n && n.supportsCrossDomainXhr || !1, this.u = n && n.sendRawJson || !1, (n = n && n.httpSessionIdParam) && !tt(n) && (this.g.D = n, t = this.h, t !== null && n in t && (t = this.h, n in t && delete t[n])), this.j = new
|
|
2679
|
+
x.call(this), this.g = new Jn(n), this.l = t, this.h = n && n.messageUrlParams || null, t = n && n.messageHeaders || null, n && n.clientProtocolHeaderRequired && (t ? t["X-Client-Protocol"] = "webchannel" : t = { "X-Client-Protocol": "webchannel" }), this.g.o = t, t = n && n.initMessageHeaders || null, n && n.messageContentType && (t ? t["X-WebChannel-Content-Type"] = n.messageContentType : t = { "X-WebChannel-Content-Type": n.messageContentType }), n && n.va && (t ? t["X-WebChannel-Client-Profile"] = n.va : t = { "X-WebChannel-Client-Profile": n.va }), this.g.S = t, (t = n && n.Sb) && !tt(t) && (this.g.m = t), this.v = n && n.supportsCrossDomainXhr || !1, this.u = n && n.sendRawJson || !1, (n = n && n.httpSessionIdParam) && !tt(n) && (this.g.D = n, t = this.h, t !== null && n in t && (t = this.h, n in t && delete t[n])), this.j = new Ut(this);
|
|
2681
2680
|
}
|
|
2682
|
-
|
|
2681
|
+
U(X, x), X.prototype.m = function() {
|
|
2683
2682
|
this.g.l = this.j, this.v && (this.g.J = !0), this.g.connect(this.l, this.h || void 0);
|
|
2684
2683
|
}, X.prototype.close = function() {
|
|
2685
2684
|
Xe(this.g);
|
|
@@ -2707,23 +2706,23 @@ var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2707
2706
|
(this.i = t) && (t = this.i, n = n !== null && t in n ? n[t] : void 0), this.data = n;
|
|
2708
2707
|
} else this.data = t;
|
|
2709
2708
|
}
|
|
2710
|
-
|
|
2709
|
+
U(ls, Ve);
|
|
2711
2710
|
function us() {
|
|
2712
2711
|
Fe.call(this), this.status = 1;
|
|
2713
2712
|
}
|
|
2714
|
-
|
|
2715
|
-
function
|
|
2713
|
+
U(us, Fe);
|
|
2714
|
+
function Ut(t) {
|
|
2716
2715
|
this.g = t;
|
|
2717
2716
|
}
|
|
2718
|
-
|
|
2717
|
+
U(Ut, cs), Ut.prototype.ua = function() {
|
|
2719
2718
|
H(this.g, "a");
|
|
2720
|
-
},
|
|
2719
|
+
}, Ut.prototype.ta = function(t) {
|
|
2721
2720
|
H(this.g, new ls(t));
|
|
2722
|
-
},
|
|
2721
|
+
}, Ut.prototype.sa = function(t) {
|
|
2723
2722
|
H(this.g, new us());
|
|
2724
|
-
},
|
|
2723
|
+
}, Ut.prototype.ra = function() {
|
|
2725
2724
|
H(this.g, "b");
|
|
2726
|
-
}, X.prototype.send = X.prototype.o, X.prototype.open = X.prototype.m, X.prototype.close = X.prototype.close, ke.NO_ERROR = 0, ke.TIMEOUT = 8, ke.HTTP_ERROR = 6, Ti.COMPLETE = "complete", Ei.EventType = Ft, Ft.OPEN = "a", Ft.CLOSE = "b", Ft.ERROR = "c", Ft.MESSAGE = "d", x.prototype.listen = x.prototype.K,
|
|
2725
|
+
}, X.prototype.send = X.prototype.o, X.prototype.open = X.prototype.m, X.prototype.close = X.prototype.close, ke.NO_ERROR = 0, ke.TIMEOUT = 8, ke.HTTP_ERROR = 6, Ti.COMPLETE = "complete", Ei.EventType = Ft, Ft.OPEN = "a", Ft.CLOSE = "b", Ft.ERROR = "c", Ft.MESSAGE = "d", x.prototype.listen = x.prototype.K, P.prototype.listenOnce = P.prototype.L, P.prototype.getLastError = P.prototype.Ka, P.prototype.getLastErrorCode = P.prototype.Ba, P.prototype.getStatus = P.prototype.Z, P.prototype.getResponseJson = P.prototype.Oa, P.prototype.getResponseText = P.prototype.oa, P.prototype.send = P.prototype.ea, P.prototype.setWithCredentials = P.prototype.Ha;
|
|
2727
2726
|
}).apply(typeof Te < "u" ? Te : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2728
2727
|
const Rs = "@firebase/firestore", vs = "4.8.0";
|
|
2729
2728
|
/**
|
|
@@ -2798,13 +2797,13 @@ let we = "11.10.0";
|
|
|
2798
2797
|
*/
|
|
2799
2798
|
const Re = new Qs("@firebase/firestore");
|
|
2800
2799
|
function J(r, ...e) {
|
|
2801
|
-
if (Re.logLevel <=
|
|
2800
|
+
if (Re.logLevel <= C.DEBUG) {
|
|
2802
2801
|
const i = e.map(qs);
|
|
2803
2802
|
Re.debug(`Firestore (${we}): ${r}`, ...i);
|
|
2804
2803
|
}
|
|
2805
2804
|
}
|
|
2806
2805
|
function Xs(r, ...e) {
|
|
2807
|
-
if (Re.logLevel <=
|
|
2806
|
+
if (Re.logLevel <= C.ERROR) {
|
|
2808
2807
|
const i = e.map(qs);
|
|
2809
2808
|
Re.error(`Firestore (${we}): ${r}`, ...i);
|
|
2810
2809
|
}
|
|
@@ -2996,7 +2995,7 @@ const w = {
|
|
|
2996
2995
|
/** Unrecoverable data loss or corruption. */
|
|
2997
2996
|
DATA_LOSS: "data-loss"
|
|
2998
2997
|
};
|
|
2999
|
-
class D extends
|
|
2998
|
+
class D extends Lt {
|
|
3000
2999
|
/** @hideconstructor */
|
|
3001
3000
|
constructor(e, i) {
|
|
3002
3001
|
super(e, i), this.code = e, this.message = i, // HACK: We write a toString property directly because Error is not a real
|
|
@@ -3074,12 +3073,12 @@ class io {
|
|
|
3074
3073
|
qt(this.o === void 0, 42304);
|
|
3075
3074
|
let h = this.i;
|
|
3076
3075
|
const l = (A) => this.i !== h ? (h = this.i, i(A)) : Promise.resolve();
|
|
3077
|
-
let
|
|
3076
|
+
let d = new zt();
|
|
3078
3077
|
this.o = () => {
|
|
3079
|
-
this.i++, this.currentUser = this.u(),
|
|
3078
|
+
this.i++, this.currentUser = this.u(), d.resolve(), d = new zt(), e.enqueueRetryable(() => l(this.currentUser));
|
|
3080
3079
|
};
|
|
3081
3080
|
const m = () => {
|
|
3082
|
-
const A =
|
|
3081
|
+
const A = d;
|
|
3083
3082
|
e.enqueueRetryable(async () => {
|
|
3084
3083
|
await A.promise, await l(this.currentUser);
|
|
3085
3084
|
});
|
|
@@ -3096,7 +3095,7 @@ class io {
|
|
|
3096
3095
|
});
|
|
3097
3096
|
A ? S(A) : (
|
|
3098
3097
|
// If auth is still not available, proceed with `null` user
|
|
3099
|
-
(J("FirebaseAuthCredentialsProvider", "Auth not yet detected"),
|
|
3098
|
+
(J("FirebaseAuthCredentialsProvider", "Auth not yet detected"), d.resolve(), d = new zt())
|
|
3100
3099
|
);
|
|
3101
3100
|
}
|
|
3102
3101
|
}, 0), m();
|
|
@@ -3172,25 +3171,25 @@ class ho {
|
|
|
3172
3171
|
}
|
|
3173
3172
|
start(e, i) {
|
|
3174
3173
|
qt(this.o === void 0, 3512);
|
|
3175
|
-
const h = (
|
|
3176
|
-
|
|
3177
|
-
const m =
|
|
3178
|
-
return this.m =
|
|
3174
|
+
const h = (d) => {
|
|
3175
|
+
d.error != null && J("FirebaseAppCheckTokenProvider", `Error getting App Check token; using placeholder token instead. Error: ${d.error.message}`);
|
|
3176
|
+
const m = d.token !== this.m;
|
|
3177
|
+
return this.m = d.token, J("FirebaseAppCheckTokenProvider", `Received ${m ? "new" : "existing"} token.`), m ? i(d.token) : Promise.resolve();
|
|
3179
3178
|
};
|
|
3180
|
-
this.o = (
|
|
3181
|
-
e.enqueueRetryable(() => h(
|
|
3179
|
+
this.o = (d) => {
|
|
3180
|
+
e.enqueueRetryable(() => h(d));
|
|
3182
3181
|
};
|
|
3183
|
-
const l = (
|
|
3184
|
-
J("FirebaseAppCheckTokenProvider", "AppCheck detected"), this.appCheck =
|
|
3182
|
+
const l = (d) => {
|
|
3183
|
+
J("FirebaseAppCheckTokenProvider", "AppCheck detected"), this.appCheck = d, this.o && this.appCheck.addTokenListener(this.o);
|
|
3185
3184
|
};
|
|
3186
|
-
this.V.onInit((
|
|
3185
|
+
this.V.onInit((d) => l(d)), // Our users can initialize AppCheck after Firestore, so we give it
|
|
3187
3186
|
// a chance to register itself with the component framework.
|
|
3188
3187
|
setTimeout(() => {
|
|
3189
3188
|
if (!this.appCheck) {
|
|
3190
|
-
const
|
|
3189
|
+
const d = this.V.getImmediate({
|
|
3191
3190
|
optional: !0
|
|
3192
3191
|
});
|
|
3193
|
-
|
|
3192
|
+
d ? l(d) : (
|
|
3194
3193
|
// If AppCheck is still not available, proceed without it.
|
|
3195
3194
|
J("FirebaseAppCheckTokenProvider", "AppCheck not yet detected")
|
|
3196
3195
|
);
|
|
@@ -3278,8 +3277,8 @@ class lo {
|
|
|
3278
3277
|
let h = "";
|
|
3279
3278
|
for (; h.length < 20; ) {
|
|
3280
3279
|
const l = ao(40);
|
|
3281
|
-
for (let
|
|
3282
|
-
h.length < 20 && l[
|
|
3280
|
+
for (let d = 0; d < l.length; ++d)
|
|
3281
|
+
h.length < 20 && l[d] < i && (h += e.charAt(l[d] % 62));
|
|
3283
3282
|
}
|
|
3284
3283
|
return h;
|
|
3285
3284
|
}
|
|
@@ -3295,7 +3294,7 @@ function uo(r, e) {
|
|
|
3295
3294
|
if (h < 128 && l < 128)
|
|
3296
3295
|
return Z(h, l);
|
|
3297
3296
|
{
|
|
3298
|
-
const
|
|
3297
|
+
const d = co(), m = fo(d.encode(ws(r, i)), d.encode(ws(e, i)));
|
|
3299
3298
|
return m !== 0 ? m : Z(h, l);
|
|
3300
3299
|
}
|
|
3301
3300
|
}
|
|
@@ -3395,8 +3394,8 @@ class nt {
|
|
|
3395
3394
|
static comparator(e, i) {
|
|
3396
3395
|
const h = Math.min(e.length, i.length);
|
|
3397
3396
|
for (let l = 0; l < h; l++) {
|
|
3398
|
-
const
|
|
3399
|
-
if (
|
|
3397
|
+
const d = nt.compareSegments(e.get(l), i.get(l));
|
|
3398
|
+
if (d !== 0) return d;
|
|
3400
3399
|
}
|
|
3401
3400
|
return Z(e.length, i.length);
|
|
3402
3401
|
}
|
|
@@ -3490,7 +3489,7 @@ class mt extends nt {
|
|
|
3490
3489
|
static fromServerFormat(e) {
|
|
3491
3490
|
const i = [];
|
|
3492
3491
|
let h = "", l = 0;
|
|
3493
|
-
const
|
|
3492
|
+
const d = () => {
|
|
3494
3493
|
if (h.length === 0) throw new D(w.INVALID_ARGUMENT, `Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);
|
|
3495
3494
|
i.push(h), h = "";
|
|
3496
3495
|
};
|
|
@@ -3502,9 +3501,9 @@ class mt extends nt {
|
|
|
3502
3501
|
const A = e[l + 1];
|
|
3503
3502
|
if (A !== "\\" && A !== "." && A !== "`") throw new D(w.INVALID_ARGUMENT, "Path has invalid escape sequence: " + e);
|
|
3504
3503
|
h += A, l += 2;
|
|
3505
|
-
} else S === "`" ? (m = !m, l++) : S !== "." || m ? (h += S, l++) : (
|
|
3504
|
+
} else S === "`" ? (m = !m, l++) : S !== "." || m ? (h += S, l++) : (d(), l++);
|
|
3506
3505
|
}
|
|
3507
|
-
if (
|
|
3506
|
+
if (d(), m) throw new D(w.INVALID_ARGUMENT, "Unterminated ` in path: " + e);
|
|
3508
3507
|
return new mt(i);
|
|
3509
3508
|
}
|
|
3510
3509
|
static emptyPath() {
|
|
@@ -3609,7 +3608,7 @@ function te(r, e) {
|
|
|
3609
3608
|
if (!go(r)) throw new D(w.INVALID_ARGUMENT, "JSON must be an object");
|
|
3610
3609
|
let i;
|
|
3611
3610
|
for (const h in e) if (e[h]) {
|
|
3612
|
-
const l = e[h].typeString,
|
|
3611
|
+
const l = e[h].typeString, d = "value" in e[h] ? {
|
|
3613
3612
|
value: e[h].value
|
|
3614
3613
|
} : void 0;
|
|
3615
3614
|
if (!(h in r)) {
|
|
@@ -3621,8 +3620,8 @@ function te(r, e) {
|
|
|
3621
3620
|
i = `JSON field '${h}' must be a ${l}.`;
|
|
3622
3621
|
break;
|
|
3623
3622
|
}
|
|
3624
|
-
if (
|
|
3625
|
-
i = `Expected '${h}' field to equal '${
|
|
3623
|
+
if (d !== void 0 && m !== d.value) {
|
|
3624
|
+
i = `Expected '${h}' field to equal '${d.value}'`;
|
|
3626
3625
|
break;
|
|
3627
3626
|
}
|
|
3628
3627
|
}
|
|
@@ -3645,7 +3644,7 @@ function te(r, e) {
|
|
|
3645
3644
|
* See the License for the specific language governing permissions and
|
|
3646
3645
|
* limitations under the License.
|
|
3647
3646
|
*/
|
|
3648
|
-
const
|
|
3647
|
+
const Us = -62135596800, Os = 1e6;
|
|
3649
3648
|
class st {
|
|
3650
3649
|
/**
|
|
3651
3650
|
* Creates a new timestamp with the current date, with millisecond precision.
|
|
@@ -3674,7 +3673,7 @@ class st {
|
|
|
3674
3673
|
* number of milliseconds.
|
|
3675
3674
|
*/
|
|
3676
3675
|
static fromMillis(e) {
|
|
3677
|
-
const i = Math.floor(e / 1e3), h = Math.floor((e - 1e3 * i) *
|
|
3676
|
+
const i = Math.floor(e / 1e3), h = Math.floor((e - 1e3 * i) * Os);
|
|
3678
3677
|
return new st(i, h);
|
|
3679
3678
|
}
|
|
3680
3679
|
/**
|
|
@@ -3691,7 +3690,7 @@ class st {
|
|
|
3691
3690
|
constructor(e, i) {
|
|
3692
3691
|
if (this.seconds = e, this.nanoseconds = i, i < 0) throw new D(w.INVALID_ARGUMENT, "Timestamp nanoseconds out of range: " + i);
|
|
3693
3692
|
if (i >= 1e9) throw new D(w.INVALID_ARGUMENT, "Timestamp nanoseconds out of range: " + i);
|
|
3694
|
-
if (e <
|
|
3693
|
+
if (e < Us) throw new D(w.INVALID_ARGUMENT, "Timestamp seconds out of range: " + e);
|
|
3695
3694
|
if (e >= 253402300800) throw new D(w.INVALID_ARGUMENT, "Timestamp seconds out of range: " + e);
|
|
3696
3695
|
}
|
|
3697
3696
|
/**
|
|
@@ -3713,7 +3712,7 @@ class st {
|
|
|
3713
3712
|
* the number of milliseconds since Unix epoch 1970-01-01T00:00:00Z.
|
|
3714
3713
|
*/
|
|
3715
3714
|
toMillis() {
|
|
3716
|
-
return 1e3 * this.seconds + this.nanoseconds /
|
|
3715
|
+
return 1e3 * this.seconds + this.nanoseconds / Os;
|
|
3717
3716
|
}
|
|
3718
3717
|
_compareTo(e) {
|
|
3719
3718
|
return this.seconds === e.seconds ? Z(this.nanoseconds, e.nanoseconds) : Z(this.seconds, e.seconds);
|
|
@@ -3752,7 +3751,7 @@ class st {
|
|
|
3752
3751
|
* to be compared using the `>`, `<=`, `>=` and `>` operators.
|
|
3753
3752
|
*/
|
|
3754
3753
|
valueOf() {
|
|
3755
|
-
const e = this.seconds -
|
|
3754
|
+
const e = this.seconds - Us;
|
|
3756
3755
|
return String(e).padStart(12, "0") + "." + String(this.nanoseconds).padStart(9, "0");
|
|
3757
3756
|
}
|
|
3758
3757
|
}
|
|
@@ -3809,8 +3808,8 @@ class Rt {
|
|
|
3809
3808
|
const i = function(l) {
|
|
3810
3809
|
try {
|
|
3811
3810
|
return atob(l);
|
|
3812
|
-
} catch (
|
|
3813
|
-
throw typeof DOMException < "u" &&
|
|
3811
|
+
} catch (d) {
|
|
3812
|
+
throw typeof DOMException < "u" && d instanceof DOMException ? new To("Invalid base64 string: " + d) : d;
|
|
3814
3813
|
}
|
|
3815
3814
|
}(e);
|
|
3816
3815
|
return new Rt(i);
|
|
@@ -3821,9 +3820,9 @@ class Rt {
|
|
|
3821
3820
|
* Helper function to convert an Uint8array to a binary string.
|
|
3822
3821
|
*/
|
|
3823
3822
|
function(l) {
|
|
3824
|
-
let
|
|
3825
|
-
for (let m = 0; m < l.length; ++m)
|
|
3826
|
-
return
|
|
3823
|
+
let d = "";
|
|
3824
|
+
for (let m = 0; m < l.length; ++m) d += String.fromCharCode(l[m]);
|
|
3825
|
+
return d;
|
|
3827
3826
|
}(e)
|
|
3828
3827
|
);
|
|
3829
3828
|
return new Rt(i);
|
|
@@ -3863,16 +3862,16 @@ class Rt {
|
|
|
3863
3862
|
}
|
|
3864
3863
|
}
|
|
3865
3864
|
Rt.EMPTY_BYTE_STRING = new Rt("");
|
|
3866
|
-
const
|
|
3865
|
+
const Cs = "(default)";
|
|
3867
3866
|
class Ie {
|
|
3868
3867
|
constructor(e, i) {
|
|
3869
|
-
this.projectId = e, this.database = i ||
|
|
3868
|
+
this.projectId = e, this.database = i || Cs;
|
|
3870
3869
|
}
|
|
3871
3870
|
static empty() {
|
|
3872
3871
|
return new Ie("", "");
|
|
3873
3872
|
}
|
|
3874
3873
|
get isDefaultDatabase() {
|
|
3875
|
-
return this.database ===
|
|
3874
|
+
return this.database === Cs;
|
|
3876
3875
|
}
|
|
3877
3876
|
isEqual(e) {
|
|
3878
3877
|
return e instanceof Ie && e.projectId === this.projectId && e.database === this.database;
|
|
@@ -3899,8 +3898,8 @@ class mo {
|
|
|
3899
3898
|
* Initializes a Query with a path and optional additional query constraints.
|
|
3900
3899
|
* Path must currently be empty if this is a collection group query.
|
|
3901
3900
|
*/
|
|
3902
|
-
constructor(e, i = null, h = [], l = [],
|
|
3903
|
-
this.path = e, this.collectionGroup = i, this.explicitOrderBy = h, this.filters = l, this.limit =
|
|
3901
|
+
constructor(e, i = null, h = [], l = [], d = null, m = "F", S = null, A = null) {
|
|
3902
|
+
this.path = e, this.collectionGroup = i, this.explicitOrderBy = h, this.filters = l, this.limit = d, this.limitType = m, this.startAt = S, this.endAt = A, this.Te = null, // The corresponding `Target` of this `Query` instance, for use with
|
|
3904
3903
|
// non-aggregate queries.
|
|
3905
3904
|
this.Ie = null, // The corresponding `Target` of this `Query` instance, for use with
|
|
3906
3905
|
// aggregate queries. Unlike targets for non-aggregate queries,
|
|
@@ -3928,8 +3927,8 @@ function So(r) {
|
|
|
3928
3927
|
* See the License for the specific language governing permissions and
|
|
3929
3928
|
* limitations under the License.
|
|
3930
3929
|
*/
|
|
3931
|
-
var
|
|
3932
|
-
(v =
|
|
3930
|
+
var Ns, v;
|
|
3931
|
+
(v = Ns || (Ns = {}))[v.OK = 0] = "OK", v[v.CANCELLED = 1] = "CANCELLED", v[v.UNKNOWN = 2] = "UNKNOWN", v[v.INVALID_ARGUMENT = 3] = "INVALID_ARGUMENT", v[v.DEADLINE_EXCEEDED = 4] = "DEADLINE_EXCEEDED", v[v.NOT_FOUND = 5] = "NOT_FOUND", v[v.ALREADY_EXISTS = 6] = "ALREADY_EXISTS", v[v.PERMISSION_DENIED = 7] = "PERMISSION_DENIED", v[v.UNAUTHENTICATED = 16] = "UNAUTHENTICATED", v[v.RESOURCE_EXHAUSTED = 8] = "RESOURCE_EXHAUSTED", v[v.FAILED_PRECONDITION = 9] = "FAILED_PRECONDITION", v[v.ABORTED = 10] = "ABORTED", v[v.OUT_OF_RANGE = 11] = "OUT_OF_RANGE", v[v.UNIMPLEMENTED = 12] = "UNIMPLEMENTED", v[v.INTERNAL = 13] = "INTERNAL", v[v.UNAVAILABLE = 14] = "UNAVAILABLE", v[v.DATA_LOSS = 15] = "DATA_LOSS";
|
|
3933
3932
|
/**
|
|
3934
3933
|
* @license
|
|
3935
3934
|
* Copyright 2022 Google LLC
|
|
@@ -4001,8 +4000,8 @@ function sn() {
|
|
|
4001
4000
|
* limitations under the License.
|
|
4002
4001
|
*/
|
|
4003
4002
|
class Ro {
|
|
4004
|
-
constructor(e, i, h = 1e3, l = 1.5,
|
|
4005
|
-
this.Fi = e, this.timerId = i, this.d_ = h, this.E_ = l, this.A_ =
|
|
4003
|
+
constructor(e, i, h = 1e3, l = 1.5, d = 6e4) {
|
|
4004
|
+
this.Fi = e, this.timerId = i, this.d_ = h, this.E_ = l, this.A_ = d, this.R_ = 0, this.V_ = null, /** The last backoff attempt, as epoch milliseconds. */
|
|
4006
4005
|
this.m_ = Date.now(), this.reset();
|
|
4007
4006
|
}
|
|
4008
4007
|
/**
|
|
@@ -4062,8 +4061,8 @@ class Ro {
|
|
|
4062
4061
|
* limitations under the License.
|
|
4063
4062
|
*/
|
|
4064
4063
|
class un {
|
|
4065
|
-
constructor(e, i, h, l,
|
|
4066
|
-
this.asyncQueue = e, this.timerId = i, this.targetTimeMs = h, this.op = l, this.removalCallback =
|
|
4064
|
+
constructor(e, i, h, l, d) {
|
|
4065
|
+
this.asyncQueue = e, this.timerId = i, this.targetTimeMs = h, this.op = l, this.removalCallback = d, this.deferred = new zt(), this.then = this.deferred.promise.then.bind(this.deferred.promise), // It's normal for the deferred promise to be canceled (due to cancellation)
|
|
4067
4066
|
// and so we attach a dummy catch callback to avoid
|
|
4068
4067
|
// 'UnhandledPromiseRejectionWarning' log spam.
|
|
4069
4068
|
this.deferred.promise.catch((m) => {
|
|
@@ -4086,8 +4085,8 @@ class un {
|
|
|
4086
4085
|
* PORTING NOTE: This exists to prevent making removeDelayedOperation() and
|
|
4087
4086
|
* the DelayedOperation class public.
|
|
4088
4087
|
*/
|
|
4089
|
-
static createAndSchedule(e, i, h, l,
|
|
4090
|
-
const m = Date.now() + h, S = new un(e, i, m, l,
|
|
4088
|
+
static createAndSchedule(e, i, h, l, d) {
|
|
4089
|
+
const m = Date.now() + h, S = new un(e, i, m, l, d);
|
|
4091
4090
|
return S.start(h), S;
|
|
4092
4091
|
}
|
|
4093
4092
|
/**
|
|
@@ -4121,9 +4120,9 @@ class un {
|
|
|
4121
4120
|
this.timerHandle !== null && (this.removalCallback(this), clearTimeout(this.timerHandle), this.timerHandle = null);
|
|
4122
4121
|
}
|
|
4123
4122
|
}
|
|
4124
|
-
var
|
|
4125
|
-
(
|
|
4126
|
-
|
|
4123
|
+
var Ls, Ps;
|
|
4124
|
+
(Ps = Ls || (Ls = {})).Fa = "default", /** Listen to changes in cache only */
|
|
4125
|
+
Ps.Cache = "cache";
|
|
4127
4126
|
/**
|
|
4128
4127
|
* @license
|
|
4129
4128
|
* Copyright 2023 Google LLC
|
|
@@ -4195,11 +4194,11 @@ class Bs {
|
|
|
4195
4194
|
// the TypeScript compiler has narrowed the type to boolean already.
|
|
4196
4195
|
// noinspection PointlessBooleanExpressionJS
|
|
4197
4196
|
this.experimentalAutoDetectLongPolling = !!e.experimentalAutoDetectLongPolling
|
|
4198
|
-
), this.experimentalLongPollingOptions = vo((h = e.experimentalLongPollingOptions) !== null && h !== void 0 ? h : {}), function(
|
|
4199
|
-
if (
|
|
4200
|
-
if (isNaN(
|
|
4201
|
-
if (
|
|
4202
|
-
if (
|
|
4197
|
+
), this.experimentalLongPollingOptions = vo((h = e.experimentalLongPollingOptions) !== null && h !== void 0 ? h : {}), function(d) {
|
|
4198
|
+
if (d.timeoutSeconds !== void 0) {
|
|
4199
|
+
if (isNaN(d.timeoutSeconds)) throw new D(w.INVALID_ARGUMENT, `invalid long polling timeout: ${d.timeoutSeconds} (must not be NaN)`);
|
|
4200
|
+
if (d.timeoutSeconds < 5) throw new D(w.INVALID_ARGUMENT, `invalid long polling timeout: ${d.timeoutSeconds} (minimum allowed value is 5)`);
|
|
4201
|
+
if (d.timeoutSeconds > 30) throw new D(w.INVALID_ARGUMENT, `invalid long polling timeout: ${d.timeoutSeconds} (maximum allowed value is 30)`);
|
|
4203
4202
|
}
|
|
4204
4203
|
}(this.experimentalLongPollingOptions), this.useFetchStreams = !!e.useFetchStreams;
|
|
4205
4204
|
}
|
|
@@ -4505,7 +4504,7 @@ class Fs {
|
|
|
4505
4504
|
enqueueAfterDelay(e, i, h) {
|
|
4506
4505
|
this.ac(), // Fast-forward delays for timerIds that have been overridden.
|
|
4507
4506
|
this.sc.indexOf(e) > -1 && (i = 0);
|
|
4508
|
-
const l = un.createAndSchedule(this, e, i, h, (
|
|
4507
|
+
const l = un.createAndSchedule(this, e, i, h, (d) => this.lc(d));
|
|
4509
4508
|
return this.ec.push(l), l;
|
|
4510
4509
|
}
|
|
4511
4510
|
ac() {
|
|
@@ -4837,7 +4836,7 @@ class At {
|
|
|
4837
4836
|
isEqual(e) {
|
|
4838
4837
|
return function(h, l) {
|
|
4839
4838
|
if (h.length !== l.length) return !1;
|
|
4840
|
-
for (let
|
|
4839
|
+
for (let d = 0; d < h.length; ++d) if (h[d] !== l[d]) return !1;
|
|
4841
4840
|
return !0;
|
|
4842
4841
|
}(this._values, e._values);
|
|
4843
4842
|
}
|
|
@@ -4870,9 +4869,9 @@ At._jsonSchemaVersion = "firestore/vectorValue/1.0", At._jsonSchema = {
|
|
|
4870
4869
|
type: M("string", At._jsonSchemaVersion),
|
|
4871
4870
|
vectorValues: M("object")
|
|
4872
4871
|
};
|
|
4873
|
-
const
|
|
4874
|
-
function
|
|
4875
|
-
if (e.search(
|
|
4872
|
+
const Uo = new RegExp("[~\\*/\\[\\]]");
|
|
4873
|
+
function Oo(r, e, i) {
|
|
4874
|
+
if (e.search(Uo) >= 0) throw ks(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`, r);
|
|
4876
4875
|
try {
|
|
4877
4876
|
return new Js(...e.split("."))._internalPath;
|
|
4878
4877
|
} catch {
|
|
@@ -4880,10 +4879,10 @@ function Co(r, e, i) {
|
|
|
4880
4879
|
}
|
|
4881
4880
|
}
|
|
4882
4881
|
function ks(r, e, i, h, l) {
|
|
4883
|
-
let
|
|
4884
|
-
|
|
4882
|
+
let d = `Function ${e}() called with invalid data`;
|
|
4883
|
+
d += ". ";
|
|
4885
4884
|
let m = "";
|
|
4886
|
-
return new D(w.INVALID_ARGUMENT,
|
|
4885
|
+
return new D(w.INVALID_ARGUMENT, d + r + m);
|
|
4887
4886
|
}
|
|
4888
4887
|
/**
|
|
4889
4888
|
* @license
|
|
@@ -4907,8 +4906,8 @@ class Zs {
|
|
|
4907
4906
|
// - No support for SnapshotMetadata.
|
|
4908
4907
|
// - No support for SnapshotOptions.
|
|
4909
4908
|
/** @hideconstructor protected */
|
|
4910
|
-
constructor(e, i, h, l,
|
|
4911
|
-
this._firestore = e, this._userDataWriter = i, this._key = h, this._document = l, this._converter =
|
|
4909
|
+
constructor(e, i, h, l, d) {
|
|
4910
|
+
this._firestore = e, this._userDataWriter = i, this._key = h, this._document = l, this._converter = d;
|
|
4912
4911
|
}
|
|
4913
4912
|
/** Property of the `DocumentSnapshot` that provides the document's ID. */
|
|
4914
4913
|
get id() {
|
|
@@ -4938,7 +4937,7 @@ class Zs {
|
|
|
4938
4937
|
data() {
|
|
4939
4938
|
if (this._document) {
|
|
4940
4939
|
if (this._converter) {
|
|
4941
|
-
const e = new
|
|
4940
|
+
const e = new Co(
|
|
4942
4941
|
this._firestore,
|
|
4943
4942
|
this._userDataWriter,
|
|
4944
4943
|
this._key,
|
|
@@ -4969,7 +4968,7 @@ class Zs {
|
|
|
4969
4968
|
}
|
|
4970
4969
|
}
|
|
4971
4970
|
}
|
|
4972
|
-
class
|
|
4971
|
+
class Co extends Zs {
|
|
4973
4972
|
/**
|
|
4974
4973
|
* Retrieves all fields in the document as an `Object`.
|
|
4975
4974
|
*
|
|
@@ -4981,7 +4980,7 @@ class No extends Zs {
|
|
|
4981
4980
|
}
|
|
4982
4981
|
}
|
|
4983
4982
|
function ti(r, e) {
|
|
4984
|
-
return typeof e == "string" ?
|
|
4983
|
+
return typeof e == "string" ? Oo(r, e) : e instanceof Js ? e._internalPath : e._delegate._internalPath;
|
|
4985
4984
|
}
|
|
4986
4985
|
class me {
|
|
4987
4986
|
/** @hideconstructor */
|
|
@@ -4998,10 +4997,10 @@ class me {
|
|
|
4998
4997
|
return this.hasPendingWrites === e.hasPendingWrites && this.fromCache === e.fromCache;
|
|
4999
4998
|
}
|
|
5000
4999
|
}
|
|
5001
|
-
class
|
|
5000
|
+
class Nt extends Zs {
|
|
5002
5001
|
/** @hideconstructor protected */
|
|
5003
|
-
constructor(e, i, h, l,
|
|
5004
|
-
super(e, i, h, l, m), this._firestore = e, this._firestoreImpl = e, this.metadata =
|
|
5002
|
+
constructor(e, i, h, l, d, m) {
|
|
5003
|
+
super(e, i, h, l, m), this._firestore = e, this._firestoreImpl = e, this.metadata = d;
|
|
5005
5004
|
}
|
|
5006
5005
|
/**
|
|
5007
5006
|
* Returns whether or not the data exists. True if the document exists.
|
|
@@ -5073,16 +5072,16 @@ class Ut extends Zs {
|
|
|
5073
5072
|
toJSON() {
|
|
5074
5073
|
if (this.metadata.hasPendingWrites) throw new D(w.FAILED_PRECONDITION, "DocumentSnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");
|
|
5075
5074
|
const e = this._document, i = {};
|
|
5076
|
-
return i.type =
|
|
5075
|
+
return i.type = Nt._jsonSchemaVersion, i.bundle = "", i.bundleSource = "DocumentSnapshot", i.bundleName = this._key.toString(), !e || !e.isValidDocument() || !e.isFoundDocument() ? i : (this._userDataWriter.convertObjectMap(e.data.value.mapValue.fields, "previous"), i.bundle = (this._firestore, this.ref.path, "NOT SUPPORTED"), i);
|
|
5077
5076
|
}
|
|
5078
5077
|
}
|
|
5079
|
-
|
|
5080
|
-
type: M("string",
|
|
5078
|
+
Nt._jsonSchemaVersion = "firestore/documentSnapshot/1.0", Nt._jsonSchema = {
|
|
5079
|
+
type: M("string", Nt._jsonSchemaVersion),
|
|
5081
5080
|
bundleSource: M("string", "DocumentSnapshot"),
|
|
5082
5081
|
bundleName: M("string"),
|
|
5083
5082
|
bundle: M("string")
|
|
5084
5083
|
};
|
|
5085
|
-
class Se extends
|
|
5084
|
+
class Se extends Nt {
|
|
5086
5085
|
/**
|
|
5087
5086
|
* Retrieves all fields in the document as an `Object`.
|
|
5088
5087
|
*
|
|
@@ -5143,7 +5142,7 @@ class Jt {
|
|
|
5143
5142
|
const i = !!e.includeMetadataChanges;
|
|
5144
5143
|
if (i && this._snapshot.excludesMetadataChanges) throw new D(w.INVALID_ARGUMENT, "To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");
|
|
5145
5144
|
return this._cachedChanges && this._cachedChangesIncludeMetadataChanges === i || (this._cachedChanges = /** Calculates the array of `DocumentChange`s for a given `ViewSnapshot`. */
|
|
5146
|
-
function(l,
|
|
5145
|
+
function(l, d) {
|
|
5147
5146
|
if (l._snapshot.oldDocs.isEmpty()) {
|
|
5148
5147
|
let m = 0;
|
|
5149
5148
|
return l._snapshot.docChanges.map((S) => {
|
|
@@ -5158,14 +5157,14 @@ class Jt {
|
|
|
5158
5157
|
}
|
|
5159
5158
|
{
|
|
5160
5159
|
let m = l._snapshot.oldDocs;
|
|
5161
|
-
return l._snapshot.docChanges.filter((S) =>
|
|
5160
|
+
return l._snapshot.docChanges.filter((S) => d || S.type !== 3).map((S) => {
|
|
5162
5161
|
const A = new Se(l._firestore, l._userDataWriter, S.doc.key, S.doc, new me(l._snapshot.mutatedKeys.has(S.doc.key), l._snapshot.fromCache), l.query.converter);
|
|
5163
|
-
let R = -1,
|
|
5164
|
-
return S.type !== 0 && (R = m.indexOf(S.doc.key), m = m.delete(S.doc.key)), S.type !== 1 && (m = m.add(S.doc),
|
|
5165
|
-
type:
|
|
5162
|
+
let R = -1, K = -1;
|
|
5163
|
+
return S.type !== 0 && (R = m.indexOf(S.doc.key), m = m.delete(S.doc.key)), S.type !== 1 && (m = m.add(S.doc), K = m.indexOf(S.doc.key)), {
|
|
5164
|
+
type: No(S.type),
|
|
5166
5165
|
doc: A,
|
|
5167
5166
|
oldIndex: R,
|
|
5168
|
-
newIndex:
|
|
5167
|
+
newIndex: K
|
|
5169
5168
|
};
|
|
5170
5169
|
});
|
|
5171
5170
|
}
|
|
@@ -5182,12 +5181,12 @@ class Jt {
|
|
|
5182
5181
|
const e = {};
|
|
5183
5182
|
e.type = Jt._jsonSchemaVersion, e.bundleSource = "QuerySnapshot", e.bundleName = lo.newId(), this._firestore._databaseId.database, this._firestore._databaseId.projectId;
|
|
5184
5183
|
const i = [], h = [], l = [];
|
|
5185
|
-
return this.docs.forEach((
|
|
5186
|
-
|
|
5184
|
+
return this.docs.forEach((d) => {
|
|
5185
|
+
d._document !== null && (i.push(d._document), h.push(this._userDataWriter.convertObjectMap(d._document.data.value.mapValue.fields, "previous")), l.push(d.ref.path));
|
|
5187
5186
|
}), e.bundle = (this._firestore, this.query._query, e.bundleName, "NOT SUPPORTED"), e;
|
|
5188
5187
|
}
|
|
5189
5188
|
}
|
|
5190
|
-
function
|
|
5189
|
+
function No(r) {
|
|
5191
5190
|
switch (r) {
|
|
5192
5191
|
case 0:
|
|
5193
5192
|
return "added";
|
|
@@ -5211,117 +5210,119 @@ Jt._jsonSchemaVersion = "firestore/querySnapshot/1.0", Jt._jsonSchema = {
|
|
|
5211
5210
|
(function(e, i = !0) {
|
|
5212
5211
|
(function(l) {
|
|
5213
5212
|
we = l;
|
|
5214
|
-
})(Gr), Ae(new ye("firestore", (h, { instanceIdentifier: l, options:
|
|
5215
|
-
const m = h.getProvider("app").getImmediate(), S = new Do(new io(h.getProvider("auth-internal")), new ho(m, h.getProvider("app-check-internal")), function(R,
|
|
5213
|
+
})(Gr), Ae(new ye("firestore", (h, { instanceIdentifier: l, options: d }) => {
|
|
5214
|
+
const m = h.getProvider("app").getImmediate(), S = new Do(new io(h.getProvider("auth-internal")), new ho(m, h.getProvider("app-check-internal")), function(R, K) {
|
|
5216
5215
|
if (!Object.prototype.hasOwnProperty.apply(R.options, ["projectId"])) throw new D(w.INVALID_ARGUMENT, '"projectId" not provided in firebase.initializeApp.');
|
|
5217
|
-
return new Ie(R.options.projectId,
|
|
5216
|
+
return new Ie(R.options.projectId, K);
|
|
5218
5217
|
}(m, l), m);
|
|
5219
|
-
return
|
|
5218
|
+
return d = Object.assign({
|
|
5220
5219
|
useFetchStreams: i
|
|
5221
|
-
},
|
|
5222
|
-
}, "PUBLIC").setMultipleInstances(!0)),
|
|
5223
|
-
|
|
5220
|
+
}, d), S._setSettings(d), S;
|
|
5221
|
+
}, "PUBLIC").setMultipleInstances(!0)), Ct(Rs, vs, e), // BUILD_TARGET will be replaced by values like esm2017, cjs2017, etc during the compilation
|
|
5222
|
+
Ct(Rs, vs, "esm2017");
|
|
5224
5223
|
})();
|
|
5225
|
-
const
|
|
5224
|
+
const Lo = "FEATURE_BUY", Po = "FEATURE_SELL", bo = "FEATURE_SWAP", Mo = "FEATURE_WITHDRAW", Bo = "FULLY_VERIFIED", Vo = "NEED_REVIEW", Fo = "FULLY_VERIFIED_EDD", xo = "IN_PROGRESS", ko = "DOCUMENT_VERIFICATION_FAILED", jo = "AUTH_RESET", Ho = "VALIDATE_PLAYER_REGISTER_BY_EMAIL_REQUEST", Go = "AUTH_SCREEN_UPDATE", Qo = "REGISTER_PLAYER_BY_EMAIL_REQUEST", Wo = "VERIFY_REGISTER_BY_EMAIL_REQUEST", Ko = "REGISTER_STORE_BY_EMAIL_REQUEST", Yo = "VALIDATE_STORE_REGISTER_BY_EMAIL_REQUEST", $o = "VERIFY_STORE_REGISTER_BY_EMAIL_REQUEST", Xo = "LOGIN_BY_EMAIL_REQUEST", qo = "VALIDATE_LOGIN_REQUEST", zo = "REGISTER_BY_EMAIL_REQUEST", Jo = "VALIDATE_REGISTER_REQUEST", Zo = "USER_REF_REQUEST", th = "USER_REF_COUNT_REQUEST", eh = "USER_TWITTER_INFO_REQUEST", nh = "USER_TWITTER_UPDATE_REQUEST", sh = "GET_KYC_DOC_DATA_REQUEST", ih = "GET_SUMSUB_ACCESS_TOKEN_REQUEST", rh = "GET_SUMSUB_DOCUMENT_DATA_REQUEST", oh = "USER_MINIMAL_KYC_REQUEST", hh = "USER_FULL_KYC_REQUEST", ah = "RESET_KYC", ch = "USER_BANK_REQUEST", lh = "ADD_BANK_REQUEST", uh = "DELETE_BANK_REQUEST", fh = "PLAID_TOKEN_REQUEST", Eh = "PLAID_TOKEN_RESET", ph = "PLAID_CREATE_ITEM_REQUEST", gh = "GET_IBAN_REQUEST", _h = "CREATE_IBAN_REQUEST", dh = "IBAN_SEND_STATUS_PROCESSING", Th = "IBAN_SEND_STATUS_FINISHED", mh = "SEND_FROM_IBAN_REQUEST", Sh = "USER_WALLET_REQUEST", yh = "ADD_WALLET_REQUEST", Ah = "ADD_WALLET_SUCCESS", Rh = "USER_ASSOCIATE_WALLET_REQUEST", vh = "ADD_ASSOCIATE_WALLET_REQUEST", Ih = "ADD_ASSOCIATE_WALLET_SUCCESS", wh = "FETCH_WALLET_TOKENS_REQUEST", Dh = "FETCH_AVAILABLE_TOKENS", Uh = "FETCH_LINKED_WALLET_TOKENS", Oh = "FETCH_EVER_WALLET_TOKENS", Ch = "FIAT_ASSETS_REQUEST", Nh = "FEATURE_CRYPTO_ASSETS", Lh = "FEATURE_CRYPTO_ASSETS_DEFAULT", Ph = "FEATURE_CRYPTO_ASSETS_DEFAULT2", bh = "USER_DOCUMENTS_REQUEST", Mh = "PREVIEW_DOCUMENT_REQUEST", Bh = "PREVIEW_IDENTITY_DOCUMENT_REQUEST", Vh = "PREVIEW_DOCUMENT_CLEAR", Fh = "DELETE_DOCUMENT_REQUEST", xh = "UPLOAD_DOCUMENT_REQUEST", kh = "NETWORK_LIST_REQUEST", jh = "SUGGEST_GAS_REQUEST", Hh = "SEND_NATIVE_TOKEN_REQUEST", Gh = "SEND_TOKEN_REQUEST", Qh = "HIDE_GAS_POPUP", Wh = "CLEAR_SEND_TRX_ID", Kh = "ORDER_LIST_REQUEST", Yh = "ORDER_ESTIMATE_REQUEST", $h = "ORDER_CREATE_REQUEST", Xh = "ORDER_RESET_ESTIMATE", qh = "ORDER_CHECKOUT_PAYMENT_REQUEST", zh = "ORDER_TYPE_REQUEST", Jh = "ORDER_CARD_REQUEST", Zh = "ORDER_BANK_SET", ta = "ORDER_RESET", ea = "ORDER_DEPOSIT_ADDRESS_REQUEST", na = "ORDER_CONFIRM_DEPOSIT_REQUEST", sa = "STAKE_LIST_REQUEST", ia = "STAKE_SET_REQUEST", ra = "STAKE_INITIAL_STATE", oa = "STAKE_FINISH_REQUEST", ha = "BRIDGE_MOVE_TO_ETHEREUM_GAS_REQUEST", aa = "BRIDGE_MOVE_TO_ETHEREUM_REQUEST", ca = "BRIDGE_MOVE_TO_EVERCHAIN_GAS_REQUEST", la = "BRIDGE_MOVE_TO_EVERCHAIN_REQUEST", ua = "BRIDGE_RESET", fa = "RESET_PASSWORD_REQUEST", Ea = "STORE_BALANCE_REQUEST", pa = "KYB_DOCUMENT_UPLOAD_REQUEST", ga = "KYB_APPLICATION_REQUEST", _a = "CARD_CORP_PAYMENT_STATUS_REQUEST", da = "V4_PAYMENT_REQUEST", Ta = "GET_STORAGE_PLANS_REQUEST", ma = "GET_USER_STORAGE_REQUEST", Sa = "PURCHASE_STORAGE_REQUEST", ya = "FULL_ONLY", Aa = "EDD_ONLY", Ra = "FULL_EDD", va = "PURCHASE_STORAGE_STATUS_PROCESSING", Ia = "PURCHASE_STORAGE_STATUS_COMPLETE";
|
|
5226
5225
|
export {
|
|
5227
|
-
|
|
5226
|
+
gh as $,
|
|
5228
5227
|
jo as A,
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5228
|
+
ea as B,
|
|
5229
|
+
Zh as C,
|
|
5230
|
+
$h as D,
|
|
5231
|
+
qh as E,
|
|
5232
|
+
Oh as F,
|
|
5233
|
+
na as G,
|
|
5234
|
+
da as H,
|
|
5235
|
+
Kh as I,
|
|
5236
|
+
zh as J,
|
|
5238
5237
|
Fo as K,
|
|
5239
5238
|
Xo as L,
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5239
|
+
_a as M,
|
|
5240
|
+
ra as N,
|
|
5241
|
+
Yh as O,
|
|
5242
|
+
oa as P,
|
|
5243
|
+
ia as Q,
|
|
5245
5244
|
zo as R,
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5245
|
+
sa as S,
|
|
5246
|
+
ch as T,
|
|
5247
|
+
Sh as U,
|
|
5249
5248
|
qo as V,
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5249
|
+
fh as W,
|
|
5250
|
+
ph as X,
|
|
5251
|
+
lh as Y,
|
|
5252
|
+
mh as Z,
|
|
5253
|
+
Eh as _,
|
|
5255
5254
|
xo as a,
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5255
|
+
_h as a0,
|
|
5256
|
+
uh as a1,
|
|
5257
|
+
Nh as a2,
|
|
5258
|
+
Lh as a3,
|
|
5259
|
+
Ph as a4,
|
|
5260
|
+
ih as a5,
|
|
5261
|
+
rh as a6,
|
|
5262
|
+
ah as a7,
|
|
5263
|
+
sh as a8,
|
|
5264
|
+
oh as a9,
|
|
5265
|
+
ma as aA,
|
|
5266
|
+
Sa as aB,
|
|
5267
|
+
Ia as aC,
|
|
5268
|
+
va as aD,
|
|
5269
|
+
Po as aE,
|
|
5271
5270
|
kh as aF,
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5271
|
+
Qh as aG,
|
|
5272
|
+
Hh as aH,
|
|
5273
|
+
Gh as aI,
|
|
5274
|
+
Wh as aJ,
|
|
5275
|
+
jh as aK,
|
|
5276
|
+
Ea as aL,
|
|
5277
|
+
pa as aa,
|
|
5278
|
+
ga as ab,
|
|
5279
|
+
hh as ac,
|
|
5280
|
+
Th as ad,
|
|
5281
|
+
dh as ae,
|
|
5282
|
+
bo as af,
|
|
5283
|
+
Ch as ag,
|
|
5284
|
+
Vo as ah,
|
|
5285
|
+
Mo as ai,
|
|
5286
|
+
Zo as aj,
|
|
5287
|
+
th as ak,
|
|
5288
|
+
eh as al,
|
|
5289
|
+
nh as am,
|
|
5290
|
+
ua as an,
|
|
5290
5291
|
ha as ao,
|
|
5291
5292
|
aa as ap,
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5293
|
+
ca as aq,
|
|
5294
|
+
la as ar,
|
|
5295
|
+
Lo as as,
|
|
5295
5296
|
Vh as at,
|
|
5296
5297
|
bh as au,
|
|
5297
|
-
|
|
5298
|
+
xh as av,
|
|
5298
5299
|
Bh as aw,
|
|
5299
|
-
|
|
5300
|
-
|
|
5300
|
+
Mh as ax,
|
|
5301
|
+
Fh as ay,
|
|
5301
5302
|
Ta as az,
|
|
5302
5303
|
ko as b,
|
|
5303
5304
|
Bo as c,
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5305
|
+
Aa as d,
|
|
5306
|
+
Ra as e,
|
|
5307
|
+
ya as f,
|
|
5307
5308
|
Ho as g,
|
|
5308
|
-
|
|
5309
|
+
Yo as h,
|
|
5309
5310
|
Jo as i,
|
|
5310
5311
|
Go as j,
|
|
5311
5312
|
Qo as k,
|
|
5312
5313
|
Wo as l,
|
|
5313
|
-
|
|
5314
|
+
Ko as m,
|
|
5314
5315
|
$o as n,
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5316
|
+
fa as o,
|
|
5317
|
+
Rh as p,
|
|
5318
|
+
wh as q,
|
|
5319
|
+
Dh as r,
|
|
5320
|
+
Uh as s,
|
|
5321
|
+
Ah as t,
|
|
5322
|
+
Ih as u,
|
|
5323
|
+
yh as v,
|
|
5324
|
+
vh as w,
|
|
5325
|
+
Xh as x,
|
|
5326
|
+
ta as y,
|
|
5327
|
+
Jh as z
|
|
5327
5328
|
};
|