reactfire 4.2.3-exp.9754f86 → 4.2.3-exp.9801ee9
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/SuspenseSubject.d.ts +2 -1
- package/dist/auth.d.ts +3 -3
- package/dist/firebaseApp.d.ts +1 -1
- package/dist/firestore.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +667 -739
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +20 -20
- package/dist/index.umd.cjs.map +1 -1
- package/dist/sdk.d.ts +11 -11
- package/dist/storage.d.ts +2 -2
- package/dist/useObservable.d.ts +1 -1
- package/package.json +31 -32
- package/src/SuspenseSubject.ts +7 -2
- package/src/auth.tsx +2 -2
- package/src/firebaseApp.tsx +1 -1
- package/src/firestore.tsx +5 -5
- package/src/storage.tsx +2 -2
- package/src/useObservable.ts +5 -4
package/dist/index.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import * as f from "react";
|
|
2
|
-
import { onIdTokenChanged as
|
|
3
|
-
import { onChildAdded as
|
|
4
|
-
import { getApps as
|
|
5
|
-
import { onSnapshot as
|
|
6
|
-
import { httpsCallable as
|
|
7
|
-
import { getDownloadURL as
|
|
8
|
-
import { ensureInitialized as
|
|
9
|
-
var
|
|
10
|
-
return
|
|
2
|
+
import { onIdTokenChanged as At } from "firebase/auth";
|
|
3
|
+
import { onChildAdded as Ft, onChildRemoved as Pt, onChildChanged as $t, onChildMoved as Tt, onValue as Dt, off as Rt, get as jt } from "firebase/database";
|
|
4
|
+
import { getApps as Ut, registerVersion as Me, initializeApp as Vt } from "firebase/app";
|
|
5
|
+
import { onSnapshot as Mt, queryEqual as Lt } from "firebase/firestore";
|
|
6
|
+
import { httpsCallable as Nt } from "firebase/functions";
|
|
7
|
+
import { getDownloadURL as Wt, ref as qt } from "firebase/storage";
|
|
8
|
+
import { ensureInitialized as Qt, getValue as Kt, getString as Ht, getNumber as Yt, getBoolean as Gt, getAll as Jt } from "firebase/remote-config";
|
|
9
|
+
var ae = function(e, t) {
|
|
10
|
+
return ae = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
11
11
|
n.__proto__ = r;
|
|
12
12
|
} || function(n, r) {
|
|
13
13
|
for (var i in r)
|
|
14
14
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
15
|
-
},
|
|
15
|
+
}, ae(e, t);
|
|
16
16
|
};
|
|
17
|
-
function
|
|
17
|
+
function I(e, t) {
|
|
18
18
|
if (typeof t != "function" && t !== null)
|
|
19
19
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
20
|
-
|
|
20
|
+
ae(e, t);
|
|
21
21
|
function n() {
|
|
22
22
|
this.constructor = e;
|
|
23
23
|
}
|
|
24
24
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function zt(e, t) {
|
|
27
27
|
var n = {};
|
|
28
28
|
for (var r in e)
|
|
29
29
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
@@ -32,21 +32,21 @@ function Zt(e, t) {
|
|
|
32
32
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
33
33
|
return n;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function he(e, t, n, r) {
|
|
36
36
|
function i(o) {
|
|
37
37
|
return o instanceof n ? o : new n(function(u) {
|
|
38
38
|
u(o);
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
return new (n || (n = Promise))(function(o, u) {
|
|
42
|
-
function
|
|
42
|
+
function s(l) {
|
|
43
43
|
try {
|
|
44
44
|
c(r.next(l));
|
|
45
45
|
} catch (d) {
|
|
46
46
|
u(d);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function a(l) {
|
|
50
50
|
try {
|
|
51
51
|
c(r.throw(l));
|
|
52
52
|
} catch (d) {
|
|
@@ -54,29 +54,29 @@ function pe(e, t, n, r) {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
function c(l) {
|
|
57
|
-
l.done ? o(l.value) : i(l.value).then(
|
|
57
|
+
l.done ? o(l.value) : i(l.value).then(s, a);
|
|
58
58
|
}
|
|
59
59
|
c((r = r.apply(e, t || [])).next());
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Qe(e, t) {
|
|
63
63
|
var n = { label: 0, sent: function() {
|
|
64
64
|
if (o[0] & 1)
|
|
65
65
|
throw o[1];
|
|
66
66
|
return o[1];
|
|
67
67
|
}, trys: [], ops: [] }, r, i, o, u;
|
|
68
|
-
return u = { next:
|
|
68
|
+
return u = { next: s(0), throw: s(1), return: s(2) }, typeof Symbol == "function" && (u[Symbol.iterator] = function() {
|
|
69
69
|
return this;
|
|
70
70
|
}), u;
|
|
71
|
-
function
|
|
71
|
+
function s(c) {
|
|
72
72
|
return function(l) {
|
|
73
|
-
return
|
|
73
|
+
return a([c, l]);
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function a(c) {
|
|
77
77
|
if (r)
|
|
78
78
|
throw new TypeError("Generator is already executing.");
|
|
79
|
-
for (; n; )
|
|
79
|
+
for (; u && (u = 0, c[0] && (n = 0)), n; )
|
|
80
80
|
try {
|
|
81
81
|
if (r = 1, i && (o = c[0] & 2 ? i.return : c[0] ? i.throw || ((o = i.return) && o.call(i), 0) : i.next) && !(o = o.call(i, c[1])).done)
|
|
82
82
|
return o;
|
|
@@ -144,8 +144,8 @@ function D(e, t) {
|
|
|
144
144
|
try {
|
|
145
145
|
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
|
|
146
146
|
o.push(i.value);
|
|
147
|
-
} catch (
|
|
148
|
-
u = { error:
|
|
147
|
+
} catch (s) {
|
|
148
|
+
u = { error: s };
|
|
149
149
|
} finally {
|
|
150
150
|
try {
|
|
151
151
|
i && !i.done && (n = r.return) && n.call(r);
|
|
@@ -165,7 +165,7 @@ function R(e, t, n) {
|
|
|
165
165
|
function U(e) {
|
|
166
166
|
return this instanceof U ? (this.v = e, this) : new U(e);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Zt(e, t, n) {
|
|
169
169
|
if (!Symbol.asyncIterator)
|
|
170
170
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
171
171
|
var r = n.apply(e, t || []), i, o = [];
|
|
@@ -175,31 +175,31 @@ function Bt(e, t, n) {
|
|
|
175
175
|
function u(v) {
|
|
176
176
|
r[v] && (i[v] = function(p) {
|
|
177
177
|
return new Promise(function(S, h) {
|
|
178
|
-
o.push([v, p, S, h]) > 1 ||
|
|
178
|
+
o.push([v, p, S, h]) > 1 || s(v, p);
|
|
179
179
|
});
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function s(v, p) {
|
|
183
183
|
try {
|
|
184
|
-
|
|
184
|
+
a(r[v](p));
|
|
185
185
|
} catch (S) {
|
|
186
186
|
d(o[0][3], S);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function a(v) {
|
|
190
190
|
v.value instanceof U ? Promise.resolve(v.value.v).then(c, l) : d(o[0][2], v);
|
|
191
191
|
}
|
|
192
192
|
function c(v) {
|
|
193
|
-
|
|
193
|
+
s("next", v);
|
|
194
194
|
}
|
|
195
195
|
function l(v) {
|
|
196
|
-
|
|
196
|
+
s("throw", v);
|
|
197
197
|
}
|
|
198
198
|
function d(v, p) {
|
|
199
|
-
v(p), o.shift(), o.length &&
|
|
199
|
+
v(p), o.shift(), o.length && s(o[0][0], o[0][1]);
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function Bt(e) {
|
|
203
203
|
if (!Symbol.asyncIterator)
|
|
204
204
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
205
205
|
var t = e[Symbol.asyncIterator], n;
|
|
@@ -208,27 +208,27 @@ function Xt(e) {
|
|
|
208
208
|
}, n);
|
|
209
209
|
function r(o) {
|
|
210
210
|
n[o] = e[o] && function(u) {
|
|
211
|
-
return new Promise(function(
|
|
212
|
-
u = e[o](u), i(
|
|
211
|
+
return new Promise(function(s, a) {
|
|
212
|
+
u = e[o](u), i(s, a, u.done, u.value);
|
|
213
213
|
});
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
|
-
function i(o, u,
|
|
217
|
-
Promise.resolve(
|
|
218
|
-
o({ value: c, done:
|
|
216
|
+
function i(o, u, s, a) {
|
|
217
|
+
Promise.resolve(a).then(function(c) {
|
|
218
|
+
o({ value: c, done: s });
|
|
219
219
|
}, u);
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
function b(e) {
|
|
223
223
|
return typeof e == "function";
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function pe(e) {
|
|
226
226
|
var t = function(r) {
|
|
227
227
|
Error.call(r), r.stack = new Error().stack;
|
|
228
228
|
}, n = e(t);
|
|
229
229
|
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
230
230
|
}
|
|
231
|
-
var
|
|
231
|
+
var ie = pe(function(e) {
|
|
232
232
|
return function(n) {
|
|
233
233
|
e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
234
234
|
` + n.map(function(r, i) {
|
|
@@ -237,7 +237,7 @@ var oe = me(function(e) {
|
|
|
237
237
|
`) : "", this.name = "UnsubscriptionError", this.errors = n;
|
|
238
238
|
};
|
|
239
239
|
});
|
|
240
|
-
function
|
|
240
|
+
function Z(e, t) {
|
|
241
241
|
if (e) {
|
|
242
242
|
var n = e.indexOf(t);
|
|
243
243
|
0 <= n && e.splice(n, 1);
|
|
@@ -255,15 +255,15 @@ var N = function() {
|
|
|
255
255
|
if (u)
|
|
256
256
|
if (this._parentage = null, Array.isArray(u))
|
|
257
257
|
try {
|
|
258
|
-
for (var
|
|
259
|
-
var c =
|
|
258
|
+
for (var s = V(u), a = s.next(); !a.done; a = s.next()) {
|
|
259
|
+
var c = a.value;
|
|
260
260
|
c.remove(this);
|
|
261
261
|
}
|
|
262
262
|
} catch (h) {
|
|
263
263
|
t = { error: h };
|
|
264
264
|
} finally {
|
|
265
265
|
try {
|
|
266
|
-
|
|
266
|
+
a && !a.done && (n = s.return) && n.call(s);
|
|
267
267
|
} finally {
|
|
268
268
|
if (t)
|
|
269
269
|
throw t.error;
|
|
@@ -276,7 +276,7 @@ var N = function() {
|
|
|
276
276
|
try {
|
|
277
277
|
l();
|
|
278
278
|
} catch (h) {
|
|
279
|
-
o = h instanceof
|
|
279
|
+
o = h instanceof ie ? h.errors : [h];
|
|
280
280
|
}
|
|
281
281
|
var d = this._finalizers;
|
|
282
282
|
if (d) {
|
|
@@ -285,9 +285,9 @@ var N = function() {
|
|
|
285
285
|
for (var v = V(d), p = v.next(); !p.done; p = v.next()) {
|
|
286
286
|
var S = p.value;
|
|
287
287
|
try {
|
|
288
|
-
|
|
288
|
+
Le(S);
|
|
289
289
|
} catch (h) {
|
|
290
|
-
o = o
|
|
290
|
+
o = o ?? [], h instanceof ie ? o = R(R([], D(o)), D(h.errors)) : o.push(h);
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
} catch (h) {
|
|
@@ -302,13 +302,13 @@ var N = function() {
|
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
if (o)
|
|
305
|
-
throw new
|
|
305
|
+
throw new ie(o);
|
|
306
306
|
}
|
|
307
307
|
}, e.prototype.add = function(t) {
|
|
308
308
|
var n;
|
|
309
309
|
if (t && t !== this)
|
|
310
310
|
if (this.closed)
|
|
311
|
-
|
|
311
|
+
Le(t);
|
|
312
312
|
else {
|
|
313
313
|
if (t instanceof e) {
|
|
314
314
|
if (t.closed || t._hasParent(this))
|
|
@@ -325,64 +325,55 @@ var N = function() {
|
|
|
325
325
|
this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
|
|
326
326
|
}, e.prototype._removeParent = function(t) {
|
|
327
327
|
var n = this._parentage;
|
|
328
|
-
n === t ? this._parentage = null : Array.isArray(n) &&
|
|
328
|
+
n === t ? this._parentage = null : Array.isArray(n) && Z(n, t);
|
|
329
329
|
}, e.prototype.remove = function(t) {
|
|
330
330
|
var n = this._finalizers;
|
|
331
|
-
n &&
|
|
331
|
+
n && Z(n, t), t instanceof e && t._removeParent(this);
|
|
332
332
|
}, e.EMPTY = function() {
|
|
333
333
|
var t = new e();
|
|
334
334
|
return t.closed = !0, t;
|
|
335
335
|
}(), e;
|
|
336
|
-
}(),
|
|
337
|
-
function
|
|
336
|
+
}(), Ke = N.EMPTY;
|
|
337
|
+
function He(e) {
|
|
338
338
|
return e instanceof N || e && "closed" in e && b(e.remove) && b(e.add) && b(e.unsubscribe);
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function Le(e) {
|
|
341
341
|
b(e) ? e() : e.unsubscribe();
|
|
342
342
|
}
|
|
343
|
-
var
|
|
343
|
+
var Ye = {
|
|
344
344
|
onUnhandledError: null,
|
|
345
345
|
onStoppedNotification: null,
|
|
346
346
|
Promise: void 0,
|
|
347
347
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
348
348
|
useDeprecatedNextContext: !1
|
|
349
|
-
},
|
|
349
|
+
}, ce = {
|
|
350
350
|
setTimeout: function(e, t) {
|
|
351
351
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
352
352
|
n[r - 2] = arguments[r];
|
|
353
|
-
var i =
|
|
353
|
+
var i = ce.delegate;
|
|
354
354
|
return i != null && i.setTimeout ? i.setTimeout.apply(i, R([e, t], D(n))) : setTimeout.apply(void 0, R([e, t], D(n)));
|
|
355
355
|
},
|
|
356
356
|
clearTimeout: function(e) {
|
|
357
|
-
var t =
|
|
357
|
+
var t = ce.delegate;
|
|
358
358
|
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(e);
|
|
359
359
|
},
|
|
360
360
|
delegate: void 0
|
|
361
361
|
};
|
|
362
|
-
function
|
|
363
|
-
|
|
362
|
+
function Ge(e) {
|
|
363
|
+
ce.setTimeout(function() {
|
|
364
364
|
throw e;
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function le() {
|
|
368
368
|
}
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
if (be.useDeprecatedSynchronousErrorHandling) {
|
|
372
|
-
var t = !G;
|
|
373
|
-
if (t && (G = { errorThrown: !1, error: null }), e(), t) {
|
|
374
|
-
var n = G, r = n.errorThrown, i = n.error;
|
|
375
|
-
if (G = null, r)
|
|
376
|
-
throw i;
|
|
377
|
-
}
|
|
378
|
-
} else
|
|
379
|
-
e();
|
|
369
|
+
function J(e) {
|
|
370
|
+
e();
|
|
380
371
|
}
|
|
381
|
-
var
|
|
382
|
-
|
|
372
|
+
var me = function(e) {
|
|
373
|
+
I(t, e);
|
|
383
374
|
function t(n) {
|
|
384
375
|
var r = e.call(this) || this;
|
|
385
|
-
return r.isStopped = !1, n ? (r.destination = n,
|
|
376
|
+
return r.isStopped = !1, n ? (r.destination = n, He(n) && n.add(r)) : r.destination = nn, r;
|
|
386
377
|
}
|
|
387
378
|
return t.create = function(n, r, i) {
|
|
388
379
|
return new L(n, r, i);
|
|
@@ -409,11 +400,11 @@ var ye = function(e) {
|
|
|
409
400
|
this.unsubscribe();
|
|
410
401
|
}
|
|
411
402
|
}, t;
|
|
412
|
-
}(N),
|
|
413
|
-
function
|
|
414
|
-
return
|
|
403
|
+
}(N), Xt = Function.prototype.bind;
|
|
404
|
+
function oe(e, t) {
|
|
405
|
+
return Xt.call(e, t);
|
|
415
406
|
}
|
|
416
|
-
var
|
|
407
|
+
var en = function() {
|
|
417
408
|
function e(t) {
|
|
418
409
|
this.partialObserver = t;
|
|
419
410
|
}
|
|
@@ -423,7 +414,7 @@ var tn = function() {
|
|
|
423
414
|
try {
|
|
424
415
|
n.next(t);
|
|
425
416
|
} catch (r) {
|
|
426
|
-
|
|
417
|
+
G(r);
|
|
427
418
|
}
|
|
428
419
|
}, e.prototype.error = function(t) {
|
|
429
420
|
var n = this.partialObserver;
|
|
@@ -431,61 +422,61 @@ var tn = function() {
|
|
|
431
422
|
try {
|
|
432
423
|
n.error(t);
|
|
433
424
|
} catch (r) {
|
|
434
|
-
|
|
425
|
+
G(r);
|
|
435
426
|
}
|
|
436
427
|
else
|
|
437
|
-
|
|
428
|
+
G(t);
|
|
438
429
|
}, e.prototype.complete = function() {
|
|
439
430
|
var t = this.partialObserver;
|
|
440
431
|
if (t.complete)
|
|
441
432
|
try {
|
|
442
433
|
t.complete();
|
|
443
434
|
} catch (n) {
|
|
444
|
-
|
|
435
|
+
G(n);
|
|
445
436
|
}
|
|
446
437
|
}, e;
|
|
447
438
|
}(), L = function(e) {
|
|
448
|
-
|
|
439
|
+
I(t, e);
|
|
449
440
|
function t(n, r, i) {
|
|
450
441
|
var o = e.call(this) || this, u;
|
|
451
442
|
if (b(n) || !n)
|
|
452
443
|
u = {
|
|
453
|
-
next: n
|
|
454
|
-
error: r
|
|
455
|
-
complete: i
|
|
444
|
+
next: n ?? void 0,
|
|
445
|
+
error: r ?? void 0,
|
|
446
|
+
complete: i ?? void 0
|
|
456
447
|
};
|
|
457
448
|
else {
|
|
458
|
-
var
|
|
459
|
-
o &&
|
|
449
|
+
var s;
|
|
450
|
+
o && Ye.useDeprecatedNextContext ? (s = Object.create(n), s.unsubscribe = function() {
|
|
460
451
|
return o.unsubscribe();
|
|
461
452
|
}, u = {
|
|
462
|
-
next: n.next &&
|
|
463
|
-
error: n.error &&
|
|
464
|
-
complete: n.complete &&
|
|
453
|
+
next: n.next && oe(n.next, s),
|
|
454
|
+
error: n.error && oe(n.error, s),
|
|
455
|
+
complete: n.complete && oe(n.complete, s)
|
|
465
456
|
}) : u = n;
|
|
466
457
|
}
|
|
467
|
-
return o.destination = new
|
|
458
|
+
return o.destination = new en(u), o;
|
|
468
459
|
}
|
|
469
460
|
return t;
|
|
470
|
-
}(
|
|
471
|
-
function
|
|
472
|
-
|
|
461
|
+
}(me);
|
|
462
|
+
function G(e) {
|
|
463
|
+
Ge(e);
|
|
473
464
|
}
|
|
474
|
-
function
|
|
465
|
+
function tn(e) {
|
|
475
466
|
throw e;
|
|
476
467
|
}
|
|
477
|
-
var
|
|
468
|
+
var nn = {
|
|
478
469
|
closed: !0,
|
|
479
|
-
next:
|
|
480
|
-
error:
|
|
481
|
-
complete:
|
|
482
|
-
},
|
|
470
|
+
next: le,
|
|
471
|
+
error: tn,
|
|
472
|
+
complete: le
|
|
473
|
+
}, be = function() {
|
|
483
474
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
484
475
|
}();
|
|
485
476
|
function W(e) {
|
|
486
477
|
return e;
|
|
487
478
|
}
|
|
488
|
-
function
|
|
479
|
+
function rn(e) {
|
|
489
480
|
return e.length === 0 ? W : e.length === 1 ? e[0] : function(n) {
|
|
490
481
|
return e.reduce(function(r, i) {
|
|
491
482
|
return i(r);
|
|
@@ -500,10 +491,10 @@ var y = function() {
|
|
|
500
491
|
var n = new e();
|
|
501
492
|
return n.source = this, n.operator = t, n;
|
|
502
493
|
}, e.prototype.subscribe = function(t, n, r) {
|
|
503
|
-
var i = this, o =
|
|
504
|
-
return
|
|
505
|
-
var u = i,
|
|
506
|
-
o.add(
|
|
494
|
+
var i = this, o = un(t) ? t : new L(t, n, r);
|
|
495
|
+
return J(function() {
|
|
496
|
+
var u = i, s = u.operator, a = u.source;
|
|
497
|
+
o.add(s ? s.call(o, a) : a ? i._subscribe(o) : i._trySubscribe(o));
|
|
507
498
|
}), o;
|
|
508
499
|
}, e.prototype._trySubscribe = function(t) {
|
|
509
500
|
try {
|
|
@@ -513,13 +504,13 @@ var y = function() {
|
|
|
513
504
|
}
|
|
514
505
|
}, e.prototype.forEach = function(t, n) {
|
|
515
506
|
var r = this;
|
|
516
|
-
return n =
|
|
507
|
+
return n = Ne(n), new n(function(i, o) {
|
|
517
508
|
var u = new L({
|
|
518
|
-
next: function(
|
|
509
|
+
next: function(s) {
|
|
519
510
|
try {
|
|
520
|
-
t(
|
|
521
|
-
} catch (
|
|
522
|
-
o(
|
|
511
|
+
t(s);
|
|
512
|
+
} catch (a) {
|
|
513
|
+
o(a), u.unsubscribe();
|
|
523
514
|
}
|
|
524
515
|
},
|
|
525
516
|
error: o,
|
|
@@ -530,15 +521,15 @@ var y = function() {
|
|
|
530
521
|
}, e.prototype._subscribe = function(t) {
|
|
531
522
|
var n;
|
|
532
523
|
return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
|
|
533
|
-
}, e.prototype[
|
|
524
|
+
}, e.prototype[be] = function() {
|
|
534
525
|
return this;
|
|
535
526
|
}, e.prototype.pipe = function() {
|
|
536
527
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
537
528
|
t[n] = arguments[n];
|
|
538
|
-
return
|
|
529
|
+
return rn(t)(this);
|
|
539
530
|
}, e.prototype.toPromise = function(t) {
|
|
540
531
|
var n = this;
|
|
541
|
-
return t =
|
|
532
|
+
return t = Ne(t), new t(function(r, i) {
|
|
542
533
|
var o;
|
|
543
534
|
n.subscribe(function(u) {
|
|
544
535
|
return o = u;
|
|
@@ -552,15 +543,15 @@ var y = function() {
|
|
|
552
543
|
return new e(t);
|
|
553
544
|
}, e;
|
|
554
545
|
}();
|
|
555
|
-
function
|
|
546
|
+
function Ne(e) {
|
|
556
547
|
var t;
|
|
557
|
-
return (t = e
|
|
548
|
+
return (t = e ?? Ye.Promise) !== null && t !== void 0 ? t : Promise;
|
|
558
549
|
}
|
|
559
|
-
function
|
|
550
|
+
function on(e) {
|
|
560
551
|
return e && b(e.next) && b(e.error) && b(e.complete);
|
|
561
552
|
}
|
|
562
|
-
function
|
|
563
|
-
return e && e instanceof
|
|
553
|
+
function un(e) {
|
|
554
|
+
return e && e instanceof me || on(e) && He(e);
|
|
564
555
|
}
|
|
565
556
|
function sn(e) {
|
|
566
557
|
return b(e == null ? void 0 : e.lift);
|
|
@@ -579,19 +570,19 @@ function _(e) {
|
|
|
579
570
|
};
|
|
580
571
|
}
|
|
581
572
|
function w(e, t, n, r, i) {
|
|
582
|
-
return new
|
|
573
|
+
return new an(e, t, n, r, i);
|
|
583
574
|
}
|
|
584
|
-
var
|
|
585
|
-
|
|
586
|
-
function t(n, r, i, o, u,
|
|
587
|
-
var
|
|
588
|
-
return
|
|
575
|
+
var an = function(e) {
|
|
576
|
+
I(t, e);
|
|
577
|
+
function t(n, r, i, o, u, s) {
|
|
578
|
+
var a = e.call(this, n) || this;
|
|
579
|
+
return a.onFinalize = u, a.shouldUnsubscribe = s, a._next = r ? function(c) {
|
|
589
580
|
try {
|
|
590
581
|
r(c);
|
|
591
582
|
} catch (l) {
|
|
592
583
|
n.error(l);
|
|
593
584
|
}
|
|
594
|
-
} : e.prototype._next,
|
|
585
|
+
} : e.prototype._next, a._error = o ? function(c) {
|
|
595
586
|
try {
|
|
596
587
|
o(c);
|
|
597
588
|
} catch (l) {
|
|
@@ -599,7 +590,7 @@ var cn = function(e) {
|
|
|
599
590
|
} finally {
|
|
600
591
|
this.unsubscribe();
|
|
601
592
|
}
|
|
602
|
-
} : e.prototype._error,
|
|
593
|
+
} : e.prototype._error, a._complete = i ? function() {
|
|
603
594
|
try {
|
|
604
595
|
i();
|
|
605
596
|
} catch (c) {
|
|
@@ -607,7 +598,7 @@ var cn = function(e) {
|
|
|
607
598
|
} finally {
|
|
608
599
|
this.unsubscribe();
|
|
609
600
|
}
|
|
610
|
-
} : e.prototype._complete,
|
|
601
|
+
} : e.prototype._complete, a;
|
|
611
602
|
}
|
|
612
603
|
return t.prototype.unsubscribe = function() {
|
|
613
604
|
var n;
|
|
@@ -616,38 +607,38 @@ var cn = function(e) {
|
|
|
616
607
|
e.prototype.unsubscribe.call(this), !r && ((n = this.onFinalize) === null || n === void 0 || n.call(this));
|
|
617
608
|
}
|
|
618
609
|
}, t;
|
|
619
|
-
}(
|
|
610
|
+
}(me), cn = pe(function(e) {
|
|
620
611
|
return function() {
|
|
621
612
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
622
613
|
};
|
|
623
|
-
}),
|
|
624
|
-
|
|
614
|
+
}), te = function(e) {
|
|
615
|
+
I(t, e);
|
|
625
616
|
function t() {
|
|
626
617
|
var n = e.call(this) || this;
|
|
627
618
|
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
|
628
619
|
}
|
|
629
620
|
return t.prototype.lift = function(n) {
|
|
630
|
-
var r = new
|
|
621
|
+
var r = new We(this, this);
|
|
631
622
|
return r.operator = n, r;
|
|
632
623
|
}, t.prototype._throwIfClosed = function() {
|
|
633
624
|
if (this.closed)
|
|
634
|
-
throw new
|
|
625
|
+
throw new cn();
|
|
635
626
|
}, t.prototype.next = function(n) {
|
|
636
627
|
var r = this;
|
|
637
|
-
|
|
628
|
+
J(function() {
|
|
638
629
|
var i, o;
|
|
639
630
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
640
631
|
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
641
632
|
try {
|
|
642
|
-
for (var u = V(r.currentObservers),
|
|
643
|
-
var
|
|
644
|
-
|
|
633
|
+
for (var u = V(r.currentObservers), s = u.next(); !s.done; s = u.next()) {
|
|
634
|
+
var a = s.value;
|
|
635
|
+
a.next(n);
|
|
645
636
|
}
|
|
646
637
|
} catch (c) {
|
|
647
638
|
i = { error: c };
|
|
648
639
|
} finally {
|
|
649
640
|
try {
|
|
650
|
-
|
|
641
|
+
s && !s.done && (o = u.return) && o.call(u);
|
|
651
642
|
} finally {
|
|
652
643
|
if (i)
|
|
653
644
|
throw i.error;
|
|
@@ -657,7 +648,7 @@ var cn = function(e) {
|
|
|
657
648
|
});
|
|
658
649
|
}, t.prototype.error = function(n) {
|
|
659
650
|
var r = this;
|
|
660
|
-
|
|
651
|
+
J(function() {
|
|
661
652
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
662
653
|
r.hasError = r.isStopped = !0, r.thrownError = n;
|
|
663
654
|
for (var i = r.observers; i.length; )
|
|
@@ -666,7 +657,7 @@ var cn = function(e) {
|
|
|
666
657
|
});
|
|
667
658
|
}, t.prototype.complete = function() {
|
|
668
659
|
var n = this;
|
|
669
|
-
|
|
660
|
+
J(function() {
|
|
670
661
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
671
662
|
n.isStopped = !0;
|
|
672
663
|
for (var r = n.observers; r.length; )
|
|
@@ -687,9 +678,9 @@ var cn = function(e) {
|
|
|
687
678
|
}, t.prototype._subscribe = function(n) {
|
|
688
679
|
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
689
680
|
}, t.prototype._innerSubscribe = function(n) {
|
|
690
|
-
var r = this, i = this, o = i.hasError, u = i.isStopped,
|
|
691
|
-
return o || u ?
|
|
692
|
-
r.currentObservers = null,
|
|
681
|
+
var r = this, i = this, o = i.hasError, u = i.isStopped, s = i.observers;
|
|
682
|
+
return o || u ? Ke : (this.currentObservers = null, s.push(n), new N(function() {
|
|
683
|
+
r.currentObservers = null, Z(s, n);
|
|
693
684
|
}));
|
|
694
685
|
}, t.prototype._checkFinalizedStatuses = function(n) {
|
|
695
686
|
var r = this, i = r.hasError, o = r.thrownError, u = r.isStopped;
|
|
@@ -698,10 +689,10 @@ var cn = function(e) {
|
|
|
698
689
|
var n = new y();
|
|
699
690
|
return n.source = this, n;
|
|
700
691
|
}, t.create = function(n, r) {
|
|
701
|
-
return new
|
|
692
|
+
return new We(n, r);
|
|
702
693
|
}, t;
|
|
703
|
-
}(y),
|
|
704
|
-
|
|
694
|
+
}(y), We = function(e) {
|
|
695
|
+
I(t, e);
|
|
705
696
|
function t(n, r) {
|
|
706
697
|
var i = e.call(this) || this;
|
|
707
698
|
return i.destination = n, i.source = r, i;
|
|
@@ -717,74 +708,75 @@ var cn = function(e) {
|
|
|
717
708
|
(r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
|
|
718
709
|
}, t.prototype._subscribe = function(n) {
|
|
719
710
|
var r, i;
|
|
720
|
-
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i :
|
|
711
|
+
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : Ke;
|
|
721
712
|
}, t;
|
|
722
|
-
}(
|
|
713
|
+
}(te), ye = {
|
|
723
714
|
now: function() {
|
|
724
|
-
return (
|
|
715
|
+
return (ye.delegate || Date).now();
|
|
725
716
|
},
|
|
726
717
|
delegate: void 0
|
|
727
|
-
},
|
|
728
|
-
|
|
718
|
+
}, ln = function(e) {
|
|
719
|
+
I(t, e);
|
|
729
720
|
function t(n, r, i) {
|
|
730
|
-
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i =
|
|
721
|
+
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = ye);
|
|
731
722
|
var o = e.call(this) || this;
|
|
732
723
|
return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
|
|
733
724
|
}
|
|
734
725
|
return t.prototype.next = function(n) {
|
|
735
|
-
var r = this, i = r.isStopped, o = r._buffer, u = r._infiniteTimeWindow,
|
|
736
|
-
i || (o.push(n), !u && o.push(
|
|
726
|
+
var r = this, i = r.isStopped, o = r._buffer, u = r._infiniteTimeWindow, s = r._timestampProvider, a = r._windowTime;
|
|
727
|
+
i || (o.push(n), !u && o.push(s.now() + a)), this._trimBuffer(), e.prototype.next.call(this, n);
|
|
737
728
|
}, t.prototype._subscribe = function(n) {
|
|
738
729
|
this._throwIfClosed(), this._trimBuffer();
|
|
739
|
-
for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, u = i._buffer,
|
|
740
|
-
n.next(a
|
|
730
|
+
for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, u = i._buffer, s = u.slice(), a = 0; a < s.length && !n.closed; a += o ? 1 : 2)
|
|
731
|
+
n.next(s[a]);
|
|
741
732
|
return this._checkFinalizedStatuses(n), r;
|
|
742
733
|
}, t.prototype._trimBuffer = function() {
|
|
743
|
-
var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, u = n._infiniteTimeWindow,
|
|
744
|
-
if (r < 1 / 0 &&
|
|
745
|
-
for (var
|
|
734
|
+
var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, u = n._infiniteTimeWindow, s = (u ? 1 : 2) * r;
|
|
735
|
+
if (r < 1 / 0 && s < o.length && o.splice(0, o.length - s), !u) {
|
|
736
|
+
for (var a = i.now(), c = 0, l = 1; l < o.length && o[l] <= a; l += 2)
|
|
746
737
|
c = l;
|
|
747
738
|
c && o.splice(0, c + 1);
|
|
748
739
|
}
|
|
749
740
|
}, t;
|
|
750
|
-
}(
|
|
751
|
-
|
|
741
|
+
}(te), fn = function(e) {
|
|
742
|
+
I(t, e);
|
|
752
743
|
function t(n, r) {
|
|
753
744
|
return e.call(this) || this;
|
|
754
745
|
}
|
|
755
746
|
return t.prototype.schedule = function(n, r) {
|
|
756
747
|
return this;
|
|
757
748
|
}, t;
|
|
758
|
-
}(N),
|
|
749
|
+
}(N), B = {
|
|
759
750
|
setInterval: function(e, t) {
|
|
760
751
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
761
752
|
n[r - 2] = arguments[r];
|
|
762
|
-
var i =
|
|
753
|
+
var i = B.delegate;
|
|
763
754
|
return i != null && i.setInterval ? i.setInterval.apply(i, R([e, t], D(n))) : setInterval.apply(void 0, R([e, t], D(n)));
|
|
764
755
|
},
|
|
765
756
|
clearInterval: function(e) {
|
|
766
|
-
var t =
|
|
757
|
+
var t = B.delegate;
|
|
767
758
|
return ((t == null ? void 0 : t.clearInterval) || clearInterval)(e);
|
|
768
759
|
},
|
|
769
760
|
delegate: void 0
|
|
770
|
-
},
|
|
771
|
-
|
|
761
|
+
}, dn = function(e) {
|
|
762
|
+
I(t, e);
|
|
772
763
|
function t(n, r) {
|
|
773
764
|
var i = e.call(this, n, r) || this;
|
|
774
765
|
return i.scheduler = n, i.work = r, i.pending = !1, i;
|
|
775
766
|
}
|
|
776
767
|
return t.prototype.schedule = function(n, r) {
|
|
768
|
+
var i;
|
|
777
769
|
if (r === void 0 && (r = 0), this.closed)
|
|
778
770
|
return this;
|
|
779
771
|
this.state = n;
|
|
780
|
-
var
|
|
781
|
-
return
|
|
772
|
+
var o = this.id, u = this.scheduler;
|
|
773
|
+
return o != null && (this.id = this.recycleAsyncId(u, o, r)), this.pending = !0, this.delay = r, this.id = (i = this.id) !== null && i !== void 0 ? i : this.requestAsyncId(u, this.id, r), this;
|
|
782
774
|
}, t.prototype.requestAsyncId = function(n, r, i) {
|
|
783
|
-
return i === void 0 && (i = 0),
|
|
775
|
+
return i === void 0 && (i = 0), B.setInterval(n.flush.bind(n, this), i);
|
|
784
776
|
}, t.prototype.recycleAsyncId = function(n, r, i) {
|
|
785
777
|
if (i === void 0 && (i = 0), i != null && this.delay === i && this.pending === !1)
|
|
786
778
|
return r;
|
|
787
|
-
|
|
779
|
+
r != null && B.clearInterval(r);
|
|
788
780
|
}, t.prototype.execute = function(n, r) {
|
|
789
781
|
if (this.closed)
|
|
790
782
|
return new Error("executing a cancelled action");
|
|
@@ -805,22 +797,22 @@ var cn = function(e) {
|
|
|
805
797
|
}, t.prototype.unsubscribe = function() {
|
|
806
798
|
if (!this.closed) {
|
|
807
799
|
var n = this, r = n.id, i = n.scheduler, o = i.actions;
|
|
808
|
-
this.work = this.state = this.scheduler = null, this.pending = !1,
|
|
800
|
+
this.work = this.state = this.scheduler = null, this.pending = !1, Z(o, this), r != null && (this.id = this.recycleAsyncId(i, r, null)), this.delay = null, e.prototype.unsubscribe.call(this);
|
|
809
801
|
}
|
|
810
802
|
}, t;
|
|
811
|
-
}(
|
|
803
|
+
}(fn), qe = function() {
|
|
812
804
|
function e(t, n) {
|
|
813
805
|
n === void 0 && (n = e.now), this.schedulerActionCtor = t, this.now = n;
|
|
814
806
|
}
|
|
815
807
|
return e.prototype.schedule = function(t, n, r) {
|
|
816
808
|
return n === void 0 && (n = 0), new this.schedulerActionCtor(this, t).schedule(r, n);
|
|
817
|
-
}, e.now =
|
|
818
|
-
}(),
|
|
819
|
-
|
|
809
|
+
}, e.now = ye.now, e;
|
|
810
|
+
}(), vn = function(e) {
|
|
811
|
+
I(t, e);
|
|
820
812
|
function t(n, r) {
|
|
821
|
-
r === void 0 && (r =
|
|
813
|
+
r === void 0 && (r = qe.now);
|
|
822
814
|
var i = e.call(this, n, r) || this;
|
|
823
|
-
return i.actions = [], i._active = !1, i
|
|
815
|
+
return i.actions = [], i._active = !1, i;
|
|
824
816
|
}
|
|
825
817
|
return t.prototype.flush = function(n) {
|
|
826
818
|
var r = this.actions;
|
|
@@ -840,57 +832,57 @@ var cn = function(e) {
|
|
|
840
832
|
throw i;
|
|
841
833
|
}
|
|
842
834
|
}, t;
|
|
843
|
-
}(
|
|
835
|
+
}(qe), ge = new vn(dn), hn = ge, we = new y(function(e) {
|
|
844
836
|
return e.complete();
|
|
845
837
|
});
|
|
846
|
-
function
|
|
847
|
-
return e ?
|
|
838
|
+
function pn(e) {
|
|
839
|
+
return e ? mn(e) : we;
|
|
848
840
|
}
|
|
849
|
-
function
|
|
841
|
+
function mn(e) {
|
|
850
842
|
return new y(function(t) {
|
|
851
843
|
return e.schedule(function() {
|
|
852
844
|
return t.complete();
|
|
853
845
|
});
|
|
854
846
|
});
|
|
855
847
|
}
|
|
856
|
-
function
|
|
848
|
+
function Je(e) {
|
|
857
849
|
return e && b(e.schedule);
|
|
858
850
|
}
|
|
859
|
-
function
|
|
851
|
+
function ze(e) {
|
|
860
852
|
return e[e.length - 1];
|
|
861
853
|
}
|
|
862
|
-
function
|
|
863
|
-
return ze(
|
|
854
|
+
function _e(e) {
|
|
855
|
+
return Je(ze(e)) ? e.pop() : void 0;
|
|
864
856
|
}
|
|
865
|
-
function
|
|
866
|
-
return typeof
|
|
857
|
+
function bn(e, t) {
|
|
858
|
+
return typeof ze(e) == "number" ? e.pop() : t;
|
|
867
859
|
}
|
|
868
|
-
var
|
|
860
|
+
var Ze = function(e) {
|
|
869
861
|
return e && typeof e.length == "number" && typeof e != "function";
|
|
870
862
|
};
|
|
871
|
-
function
|
|
863
|
+
function Be(e) {
|
|
872
864
|
return b(e == null ? void 0 : e.then);
|
|
873
865
|
}
|
|
874
|
-
function
|
|
875
|
-
return b(e[
|
|
866
|
+
function Xe(e) {
|
|
867
|
+
return b(e[be]);
|
|
876
868
|
}
|
|
877
|
-
function
|
|
869
|
+
function et(e) {
|
|
878
870
|
return Symbol.asyncIterator && b(e == null ? void 0 : e[Symbol.asyncIterator]);
|
|
879
871
|
}
|
|
880
|
-
function
|
|
872
|
+
function tt(e) {
|
|
881
873
|
return new TypeError("You provided " + (e !== null && typeof e == "object" ? "an invalid object" : "'" + e + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
882
874
|
}
|
|
883
|
-
function
|
|
875
|
+
function yn() {
|
|
884
876
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
885
877
|
}
|
|
886
|
-
var
|
|
887
|
-
function
|
|
888
|
-
return b(e == null ? void 0 : e[
|
|
878
|
+
var nt = yn();
|
|
879
|
+
function rt(e) {
|
|
880
|
+
return b(e == null ? void 0 : e[nt]);
|
|
889
881
|
}
|
|
890
|
-
function
|
|
891
|
-
return
|
|
882
|
+
function it(e) {
|
|
883
|
+
return Zt(this, arguments, function() {
|
|
892
884
|
var n, r, i, o;
|
|
893
|
-
return
|
|
885
|
+
return Qe(this, function(u) {
|
|
894
886
|
switch (u.label) {
|
|
895
887
|
case 0:
|
|
896
888
|
n = e.getReader(), u.label = 1;
|
|
@@ -918,53 +910,53 @@ function ot(e) {
|
|
|
918
910
|
});
|
|
919
911
|
});
|
|
920
912
|
}
|
|
921
|
-
function
|
|
913
|
+
function ot(e) {
|
|
922
914
|
return b(e == null ? void 0 : e.getReader);
|
|
923
915
|
}
|
|
924
|
-
function
|
|
916
|
+
function C(e) {
|
|
925
917
|
if (e instanceof y)
|
|
926
918
|
return e;
|
|
927
919
|
if (e != null) {
|
|
928
|
-
if (
|
|
920
|
+
if (Xe(e))
|
|
921
|
+
return gn(e);
|
|
922
|
+
if (Ze(e))
|
|
929
923
|
return wn(e);
|
|
930
924
|
if (Be(e))
|
|
931
925
|
return _n(e);
|
|
932
|
-
if (
|
|
926
|
+
if (et(e))
|
|
927
|
+
return ut(e);
|
|
928
|
+
if (rt(e))
|
|
933
929
|
return Sn(e);
|
|
934
|
-
if (
|
|
935
|
-
return at(e);
|
|
936
|
-
if (it(e))
|
|
930
|
+
if (ot(e))
|
|
937
931
|
return Cn(e);
|
|
938
|
-
if (ut(e))
|
|
939
|
-
return En(e);
|
|
940
932
|
}
|
|
941
|
-
throw
|
|
933
|
+
throw tt(e);
|
|
942
934
|
}
|
|
943
|
-
function
|
|
935
|
+
function gn(e) {
|
|
944
936
|
return new y(function(t) {
|
|
945
|
-
var n = e[
|
|
937
|
+
var n = e[be]();
|
|
946
938
|
if (b(n.subscribe))
|
|
947
939
|
return n.subscribe(t);
|
|
948
940
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
949
941
|
});
|
|
950
942
|
}
|
|
951
|
-
function
|
|
943
|
+
function wn(e) {
|
|
952
944
|
return new y(function(t) {
|
|
953
945
|
for (var n = 0; n < e.length && !t.closed; n++)
|
|
954
946
|
t.next(e[n]);
|
|
955
947
|
t.complete();
|
|
956
948
|
});
|
|
957
949
|
}
|
|
958
|
-
function
|
|
950
|
+
function _n(e) {
|
|
959
951
|
return new y(function(t) {
|
|
960
952
|
e.then(function(n) {
|
|
961
953
|
t.closed || (t.next(n), t.complete());
|
|
962
954
|
}, function(n) {
|
|
963
955
|
return t.error(n);
|
|
964
|
-
}).then(null,
|
|
956
|
+
}).then(null, Ge);
|
|
965
957
|
});
|
|
966
958
|
}
|
|
967
|
-
function
|
|
959
|
+
function Sn(e) {
|
|
968
960
|
return new y(function(t) {
|
|
969
961
|
var n, r;
|
|
970
962
|
try {
|
|
@@ -973,8 +965,8 @@ function Cn(e) {
|
|
|
973
965
|
if (t.next(u), t.closed)
|
|
974
966
|
return;
|
|
975
967
|
}
|
|
976
|
-
} catch (
|
|
977
|
-
n = { error:
|
|
968
|
+
} catch (s) {
|
|
969
|
+
n = { error: s };
|
|
978
970
|
} finally {
|
|
979
971
|
try {
|
|
980
972
|
o && !o.done && (r = i.return) && r.call(i);
|
|
@@ -986,42 +978,42 @@ function Cn(e) {
|
|
|
986
978
|
t.complete();
|
|
987
979
|
});
|
|
988
980
|
}
|
|
989
|
-
function
|
|
981
|
+
function ut(e) {
|
|
990
982
|
return new y(function(t) {
|
|
991
|
-
|
|
983
|
+
En(e, t).catch(function(n) {
|
|
992
984
|
return t.error(n);
|
|
993
985
|
});
|
|
994
986
|
});
|
|
995
987
|
}
|
|
996
|
-
function
|
|
997
|
-
return
|
|
988
|
+
function Cn(e) {
|
|
989
|
+
return ut(it(e));
|
|
998
990
|
}
|
|
999
|
-
function
|
|
991
|
+
function En(e, t) {
|
|
1000
992
|
var n, r, i, o;
|
|
1001
|
-
return
|
|
1002
|
-
var u,
|
|
1003
|
-
return
|
|
1004
|
-
switch (
|
|
993
|
+
return he(this, void 0, void 0, function() {
|
|
994
|
+
var u, s;
|
|
995
|
+
return Qe(this, function(a) {
|
|
996
|
+
switch (a.label) {
|
|
1005
997
|
case 0:
|
|
1006
|
-
|
|
998
|
+
a.trys.push([0, 5, 6, 11]), n = Bt(e), a.label = 1;
|
|
1007
999
|
case 1:
|
|
1008
1000
|
return [4, n.next()];
|
|
1009
1001
|
case 2:
|
|
1010
|
-
if (r =
|
|
1002
|
+
if (r = a.sent(), !!r.done)
|
|
1011
1003
|
return [3, 4];
|
|
1012
1004
|
if (u = r.value, t.next(u), t.closed)
|
|
1013
1005
|
return [2];
|
|
1014
|
-
|
|
1006
|
+
a.label = 3;
|
|
1015
1007
|
case 3:
|
|
1016
1008
|
return [3, 1];
|
|
1017
1009
|
case 4:
|
|
1018
1010
|
return [3, 11];
|
|
1019
1011
|
case 5:
|
|
1020
|
-
return
|
|
1012
|
+
return s = a.sent(), i = { error: s }, [3, 11];
|
|
1021
1013
|
case 6:
|
|
1022
|
-
return
|
|
1014
|
+
return a.trys.push([6, , 9, 10]), r && !r.done && (o = n.return) ? [4, o.call(n)] : [3, 8];
|
|
1023
1015
|
case 7:
|
|
1024
|
-
|
|
1016
|
+
a.sent(), a.label = 8;
|
|
1025
1017
|
case 8:
|
|
1026
1018
|
return [3, 10];
|
|
1027
1019
|
case 9:
|
|
@@ -1061,20 +1053,20 @@ function st(e, t) {
|
|
|
1061
1053
|
}));
|
|
1062
1054
|
});
|
|
1063
1055
|
}
|
|
1064
|
-
function
|
|
1056
|
+
function at(e, t) {
|
|
1065
1057
|
return t === void 0 && (t = 0), _(function(n, r) {
|
|
1066
1058
|
r.add(e.schedule(function() {
|
|
1067
1059
|
return n.subscribe(r);
|
|
1068
1060
|
}, t));
|
|
1069
1061
|
});
|
|
1070
1062
|
}
|
|
1063
|
+
function xn(e, t) {
|
|
1064
|
+
return C(e).pipe(at(t), st(t));
|
|
1065
|
+
}
|
|
1071
1066
|
function In(e, t) {
|
|
1072
|
-
return
|
|
1067
|
+
return C(e).pipe(at(t), st(t));
|
|
1073
1068
|
}
|
|
1074
1069
|
function On(e, t) {
|
|
1075
|
-
return I(e).pipe(ct(t), st(t));
|
|
1076
|
-
}
|
|
1077
|
-
function kn(e, t) {
|
|
1078
1070
|
return new y(function(n) {
|
|
1079
1071
|
var r = 0;
|
|
1080
1072
|
return t.schedule(function() {
|
|
@@ -1082,16 +1074,16 @@ function kn(e, t) {
|
|
|
1082
1074
|
});
|
|
1083
1075
|
});
|
|
1084
1076
|
}
|
|
1085
|
-
function
|
|
1077
|
+
function kn(e, t) {
|
|
1086
1078
|
return new y(function(n) {
|
|
1087
1079
|
var r;
|
|
1088
1080
|
return P(n, t, function() {
|
|
1089
|
-
r = e[
|
|
1081
|
+
r = e[nt](), P(n, t, function() {
|
|
1090
1082
|
var i, o, u;
|
|
1091
1083
|
try {
|
|
1092
1084
|
i = r.next(), o = i.value, u = i.done;
|
|
1093
|
-
} catch (
|
|
1094
|
-
n.error(
|
|
1085
|
+
} catch (s) {
|
|
1086
|
+
n.error(s);
|
|
1095
1087
|
return;
|
|
1096
1088
|
}
|
|
1097
1089
|
u ? n.complete() : n.next(o);
|
|
@@ -1101,7 +1093,7 @@ function An(e, t) {
|
|
|
1101
1093
|
};
|
|
1102
1094
|
});
|
|
1103
1095
|
}
|
|
1104
|
-
function
|
|
1096
|
+
function ct(e, t) {
|
|
1105
1097
|
if (!e)
|
|
1106
1098
|
throw new Error("Iterable cannot be null");
|
|
1107
1099
|
return new y(function(n) {
|
|
@@ -1115,44 +1107,44 @@ function lt(e, t) {
|
|
|
1115
1107
|
});
|
|
1116
1108
|
});
|
|
1117
1109
|
}
|
|
1118
|
-
function
|
|
1119
|
-
return
|
|
1110
|
+
function An(e, t) {
|
|
1111
|
+
return ct(it(e), t);
|
|
1120
1112
|
}
|
|
1121
|
-
function
|
|
1113
|
+
function Fn(e, t) {
|
|
1122
1114
|
if (e != null) {
|
|
1123
|
-
if (et(e))
|
|
1124
|
-
return In(e, t);
|
|
1125
|
-
if (Be(e))
|
|
1126
|
-
return kn(e, t);
|
|
1127
1115
|
if (Xe(e))
|
|
1116
|
+
return xn(e, t);
|
|
1117
|
+
if (Ze(e))
|
|
1128
1118
|
return On(e, t);
|
|
1129
|
-
if (
|
|
1130
|
-
return
|
|
1131
|
-
if (
|
|
1119
|
+
if (Be(e))
|
|
1120
|
+
return In(e, t);
|
|
1121
|
+
if (et(e))
|
|
1122
|
+
return ct(e, t);
|
|
1123
|
+
if (rt(e))
|
|
1124
|
+
return kn(e, t);
|
|
1125
|
+
if (ot(e))
|
|
1132
1126
|
return An(e, t);
|
|
1133
|
-
if (ut(e))
|
|
1134
|
-
return Fn(e, t);
|
|
1135
1127
|
}
|
|
1136
|
-
throw
|
|
1128
|
+
throw tt(e);
|
|
1137
1129
|
}
|
|
1138
1130
|
function O(e, t) {
|
|
1139
|
-
return t ?
|
|
1131
|
+
return t ? Fn(e, t) : C(e);
|
|
1140
1132
|
}
|
|
1141
|
-
function
|
|
1133
|
+
function X() {
|
|
1142
1134
|
for (var e = [], t = 0; t < arguments.length; t++)
|
|
1143
1135
|
e[t] = arguments[t];
|
|
1144
|
-
var n =
|
|
1136
|
+
var n = _e(e);
|
|
1145
1137
|
return O(e, n);
|
|
1146
1138
|
}
|
|
1147
|
-
var
|
|
1139
|
+
var lt = pe(function(e) {
|
|
1148
1140
|
return function() {
|
|
1149
1141
|
e(this), this.name = "EmptyError", this.message = "no elements in sequence";
|
|
1150
1142
|
};
|
|
1151
1143
|
});
|
|
1152
|
-
function
|
|
1144
|
+
function Pn(e) {
|
|
1153
1145
|
return e instanceof Date && !isNaN(e);
|
|
1154
1146
|
}
|
|
1155
|
-
function
|
|
1147
|
+
function E(e, t) {
|
|
1156
1148
|
return _(function(n, r) {
|
|
1157
1149
|
var i = 0;
|
|
1158
1150
|
n.subscribe(w(r, function(o) {
|
|
@@ -1160,29 +1152,29 @@ function C(e, t) {
|
|
|
1160
1152
|
}));
|
|
1161
1153
|
});
|
|
1162
1154
|
}
|
|
1163
|
-
function
|
|
1164
|
-
var
|
|
1165
|
-
d && !
|
|
1155
|
+
function $n(e, t, n, r, i, o, u, s) {
|
|
1156
|
+
var a = [], c = 0, l = 0, d = !1, v = function() {
|
|
1157
|
+
d && !a.length && !c && t.complete();
|
|
1166
1158
|
}, p = function(h) {
|
|
1167
|
-
return c < r ? S(h) :
|
|
1159
|
+
return c < r ? S(h) : a.push(h);
|
|
1168
1160
|
}, S = function(h) {
|
|
1169
1161
|
o && t.next(h), c++;
|
|
1170
1162
|
var $ = !1;
|
|
1171
|
-
|
|
1172
|
-
i == null || i(
|
|
1163
|
+
C(n(h, l++)).subscribe(w(t, function(x) {
|
|
1164
|
+
i == null || i(x), o ? p(x) : t.next(x);
|
|
1173
1165
|
}, function() {
|
|
1174
1166
|
$ = !0;
|
|
1175
1167
|
}, void 0, function() {
|
|
1176
1168
|
if ($)
|
|
1177
1169
|
try {
|
|
1178
1170
|
c--;
|
|
1179
|
-
for (var
|
|
1180
|
-
var j =
|
|
1171
|
+
for (var x = function() {
|
|
1172
|
+
var j = a.shift();
|
|
1181
1173
|
u ? P(t, u, function() {
|
|
1182
1174
|
return S(j);
|
|
1183
1175
|
}) : S(j);
|
|
1184
|
-
};
|
|
1185
|
-
|
|
1176
|
+
}; a.length && c < r; )
|
|
1177
|
+
x();
|
|
1186
1178
|
v();
|
|
1187
1179
|
} catch (j) {
|
|
1188
1180
|
t.error(j);
|
|
@@ -1192,34 +1184,34 @@ function Tn(e, t, n, r, i, o, u, a) {
|
|
|
1192
1184
|
return e.subscribe(w(t, p, function() {
|
|
1193
1185
|
d = !0, v();
|
|
1194
1186
|
})), function() {
|
|
1195
|
-
|
|
1187
|
+
s == null || s();
|
|
1196
1188
|
};
|
|
1197
1189
|
}
|
|
1198
|
-
function
|
|
1199
|
-
return n === void 0 && (n = 1 / 0), b(t) ?
|
|
1200
|
-
return
|
|
1190
|
+
function Se(e, t, n) {
|
|
1191
|
+
return n === void 0 && (n = 1 / 0), b(t) ? Se(function(r, i) {
|
|
1192
|
+
return E(function(o, u) {
|
|
1201
1193
|
return t(r, o, i, u);
|
|
1202
|
-
})(
|
|
1194
|
+
})(C(e(r, i)));
|
|
1203
1195
|
}, n) : (typeof t == "number" && (n = t), _(function(r, i) {
|
|
1204
|
-
return
|
|
1196
|
+
return $n(r, i, e, n);
|
|
1205
1197
|
}));
|
|
1206
1198
|
}
|
|
1207
|
-
function
|
|
1208
|
-
return e === void 0 && (e = 1 / 0),
|
|
1199
|
+
function ft(e) {
|
|
1200
|
+
return e === void 0 && (e = 1 / 0), Se(W, e);
|
|
1209
1201
|
}
|
|
1210
|
-
function
|
|
1211
|
-
return
|
|
1202
|
+
function Tn() {
|
|
1203
|
+
return ft(1);
|
|
1212
1204
|
}
|
|
1213
|
-
function
|
|
1205
|
+
function Dn() {
|
|
1214
1206
|
for (var e = [], t = 0; t < arguments.length; t++)
|
|
1215
1207
|
e[t] = arguments[t];
|
|
1216
|
-
return
|
|
1208
|
+
return Tn()(O(e, _e(e)));
|
|
1217
1209
|
}
|
|
1218
|
-
function
|
|
1219
|
-
e === void 0 && (e = 0), n === void 0 && (n =
|
|
1210
|
+
function Rn(e, t, n) {
|
|
1211
|
+
e === void 0 && (e = 0), n === void 0 && (n = hn);
|
|
1220
1212
|
var r = -1;
|
|
1221
|
-
return t != null && (
|
|
1222
|
-
var o =
|
|
1213
|
+
return t != null && (Je(t) ? n = t : r = t), new y(function(i) {
|
|
1214
|
+
var o = Pn(e) ? +e - n.now() : e;
|
|
1223
1215
|
o < 0 && (o = 0);
|
|
1224
1216
|
var u = 0;
|
|
1225
1217
|
return n.schedule(function() {
|
|
@@ -1227,13 +1219,13 @@ function jn(e, t, n) {
|
|
|
1227
1219
|
}, o);
|
|
1228
1220
|
});
|
|
1229
1221
|
}
|
|
1230
|
-
function
|
|
1222
|
+
function jn() {
|
|
1231
1223
|
for (var e = [], t = 0; t < arguments.length; t++)
|
|
1232
1224
|
e[t] = arguments[t];
|
|
1233
|
-
var n =
|
|
1234
|
-
return i.length ? i.length === 1 ?
|
|
1225
|
+
var n = _e(e), r = bn(e, 1 / 0), i = e;
|
|
1226
|
+
return i.length ? i.length === 1 ? C(i[0]) : ft(r)(O(i, n)) : we;
|
|
1235
1227
|
}
|
|
1236
|
-
function
|
|
1228
|
+
function Un(e, t) {
|
|
1237
1229
|
return _(function(n, r) {
|
|
1238
1230
|
var i = 0;
|
|
1239
1231
|
n.subscribe(w(r, function(o) {
|
|
@@ -1241,52 +1233,52 @@ function Vn(e, t) {
|
|
|
1241
1233
|
}));
|
|
1242
1234
|
});
|
|
1243
1235
|
}
|
|
1244
|
-
function
|
|
1236
|
+
function dt(e) {
|
|
1245
1237
|
return _(function(t, n) {
|
|
1246
1238
|
var r = null, i = !1, o;
|
|
1247
1239
|
r = t.subscribe(w(n, void 0, void 0, function(u) {
|
|
1248
|
-
o =
|
|
1240
|
+
o = C(e(u, dt(e)(t))), r ? (r.unsubscribe(), r = null, o.subscribe(n)) : i = !0;
|
|
1249
1241
|
})), i && (r.unsubscribe(), r = null, o.subscribe(n));
|
|
1250
1242
|
});
|
|
1251
1243
|
}
|
|
1252
|
-
function
|
|
1244
|
+
function Vn(e, t, n, r, i) {
|
|
1253
1245
|
return function(o, u) {
|
|
1254
|
-
var
|
|
1246
|
+
var s = n, a = t, c = 0;
|
|
1255
1247
|
o.subscribe(w(u, function(l) {
|
|
1256
1248
|
var d = c++;
|
|
1257
|
-
|
|
1249
|
+
a = s ? e(a, l, d) : (s = !0, l), r && u.next(a);
|
|
1258
1250
|
}, i && function() {
|
|
1259
|
-
|
|
1251
|
+
s && u.next(a), u.complete();
|
|
1260
1252
|
}));
|
|
1261
1253
|
};
|
|
1262
1254
|
}
|
|
1263
|
-
function
|
|
1264
|
-
return t === void 0 && (t =
|
|
1265
|
-
var i = null, o = null, u = null,
|
|
1255
|
+
function Mn(e, t) {
|
|
1256
|
+
return t === void 0 && (t = ge), _(function(n, r) {
|
|
1257
|
+
var i = null, o = null, u = null, s = function() {
|
|
1266
1258
|
if (i) {
|
|
1267
1259
|
i.unsubscribe(), i = null;
|
|
1268
1260
|
var c = o;
|
|
1269
1261
|
o = null, r.next(c);
|
|
1270
1262
|
}
|
|
1271
1263
|
};
|
|
1272
|
-
function
|
|
1264
|
+
function a() {
|
|
1273
1265
|
var c = u + e, l = t.now();
|
|
1274
1266
|
if (l < c) {
|
|
1275
1267
|
i = this.schedule(void 0, c - l), r.add(i);
|
|
1276
1268
|
return;
|
|
1277
1269
|
}
|
|
1278
|
-
|
|
1270
|
+
s();
|
|
1279
1271
|
}
|
|
1280
1272
|
n.subscribe(w(r, function(c) {
|
|
1281
|
-
o = c, u = t.now(), i || (i = t.schedule(
|
|
1273
|
+
o = c, u = t.now(), i || (i = t.schedule(a, e), r.add(i));
|
|
1282
1274
|
}, function() {
|
|
1283
|
-
|
|
1275
|
+
s(), r.complete();
|
|
1284
1276
|
}, void 0, function() {
|
|
1285
1277
|
o = i = null;
|
|
1286
1278
|
}));
|
|
1287
1279
|
});
|
|
1288
1280
|
}
|
|
1289
|
-
function
|
|
1281
|
+
function Ln(e) {
|
|
1290
1282
|
return _(function(t, n) {
|
|
1291
1283
|
var r = !1;
|
|
1292
1284
|
t.subscribe(w(n, function(i) {
|
|
@@ -1296,9 +1288,9 @@ function Nn(e) {
|
|
|
1296
1288
|
}));
|
|
1297
1289
|
});
|
|
1298
1290
|
}
|
|
1299
|
-
function
|
|
1291
|
+
function fe(e) {
|
|
1300
1292
|
return e <= 0 ? function() {
|
|
1301
|
-
return
|
|
1293
|
+
return we;
|
|
1302
1294
|
} : _(function(t, n) {
|
|
1303
1295
|
var r = 0;
|
|
1304
1296
|
t.subscribe(w(n, function(i) {
|
|
@@ -1306,44 +1298,44 @@ function de(e) {
|
|
|
1306
1298
|
}));
|
|
1307
1299
|
});
|
|
1308
1300
|
}
|
|
1309
|
-
function
|
|
1301
|
+
function Nn() {
|
|
1310
1302
|
return _(function(e, t) {
|
|
1311
|
-
e.subscribe(w(t,
|
|
1303
|
+
e.subscribe(w(t, le));
|
|
1312
1304
|
});
|
|
1313
1305
|
}
|
|
1314
|
-
function
|
|
1315
|
-
return
|
|
1306
|
+
function Wn(e) {
|
|
1307
|
+
return E(function() {
|
|
1316
1308
|
return e;
|
|
1317
1309
|
});
|
|
1318
1310
|
}
|
|
1319
|
-
function
|
|
1311
|
+
function vt(e, t) {
|
|
1320
1312
|
return t ? function(n) {
|
|
1321
|
-
return
|
|
1322
|
-
} :
|
|
1323
|
-
return e(n, r).pipe(
|
|
1313
|
+
return Dn(t.pipe(fe(1), Nn()), n.pipe(vt(e)));
|
|
1314
|
+
} : Se(function(n, r) {
|
|
1315
|
+
return C(e(n, r)).pipe(fe(1), Wn(n));
|
|
1324
1316
|
});
|
|
1325
1317
|
}
|
|
1326
|
-
function
|
|
1327
|
-
t === void 0 && (t =
|
|
1328
|
-
var n =
|
|
1329
|
-
return
|
|
1318
|
+
function qn(e, t) {
|
|
1319
|
+
t === void 0 && (t = ge);
|
|
1320
|
+
var n = Rn(e, t);
|
|
1321
|
+
return vt(function() {
|
|
1330
1322
|
return n;
|
|
1331
1323
|
});
|
|
1332
1324
|
}
|
|
1333
|
-
function
|
|
1334
|
-
return t === void 0 && (t = W), e = e
|
|
1325
|
+
function Qn(e, t) {
|
|
1326
|
+
return t === void 0 && (t = W), e = e ?? Kn, _(function(n, r) {
|
|
1335
1327
|
var i, o = !0;
|
|
1336
1328
|
n.subscribe(w(r, function(u) {
|
|
1337
|
-
var
|
|
1338
|
-
(o || !e(i,
|
|
1329
|
+
var s = t(u);
|
|
1330
|
+
(o || !e(i, s)) && (o = !1, i = s, r.next(u));
|
|
1339
1331
|
}));
|
|
1340
1332
|
});
|
|
1341
1333
|
}
|
|
1342
|
-
function
|
|
1334
|
+
function Kn(e, t) {
|
|
1343
1335
|
return e === t;
|
|
1344
1336
|
}
|
|
1345
|
-
function
|
|
1346
|
-
return e === void 0 && (e =
|
|
1337
|
+
function Hn(e) {
|
|
1338
|
+
return e === void 0 && (e = Yn), _(function(t, n) {
|
|
1347
1339
|
var r = !1;
|
|
1348
1340
|
t.subscribe(w(n, function(i) {
|
|
1349
1341
|
r = !0, n.next(i);
|
|
@@ -1352,56 +1344,56 @@ function Yn(e) {
|
|
|
1352
1344
|
}));
|
|
1353
1345
|
});
|
|
1354
1346
|
}
|
|
1355
|
-
function
|
|
1356
|
-
return new
|
|
1347
|
+
function Yn() {
|
|
1348
|
+
return new lt();
|
|
1357
1349
|
}
|
|
1358
|
-
function
|
|
1350
|
+
function ht(e, t) {
|
|
1359
1351
|
var n = arguments.length >= 2;
|
|
1360
1352
|
return function(r) {
|
|
1361
|
-
return r.pipe(e ?
|
|
1353
|
+
return r.pipe(e ? Un(function(i, o) {
|
|
1362
1354
|
return e(i, o, r);
|
|
1363
|
-
}) : W,
|
|
1364
|
-
return new
|
|
1355
|
+
}) : W, fe(1), n ? Ln(t) : Hn(function() {
|
|
1356
|
+
return new lt();
|
|
1365
1357
|
}));
|
|
1366
1358
|
};
|
|
1367
1359
|
}
|
|
1368
|
-
function
|
|
1369
|
-
return _(
|
|
1360
|
+
function Gn(e, t) {
|
|
1361
|
+
return _(Vn(e, t, arguments.length >= 2, !0));
|
|
1370
1362
|
}
|
|
1371
|
-
function
|
|
1363
|
+
function Jn(e) {
|
|
1372
1364
|
e === void 0 && (e = {});
|
|
1373
1365
|
var t = e.connector, n = t === void 0 ? function() {
|
|
1374
|
-
return new
|
|
1375
|
-
} : t, r = e.resetOnError, i = r === void 0 ? !0 : r, o = e.resetOnComplete, u = o === void 0 ? !0 : o,
|
|
1366
|
+
return new te();
|
|
1367
|
+
} : t, r = e.resetOnError, i = r === void 0 ? !0 : r, o = e.resetOnComplete, u = o === void 0 ? !0 : o, s = e.resetOnRefCountZero, a = s === void 0 ? !0 : s;
|
|
1376
1368
|
return function(c) {
|
|
1377
1369
|
var l, d, v, p = 0, S = !1, h = !1, $ = function() {
|
|
1378
1370
|
d == null || d.unsubscribe(), d = void 0;
|
|
1379
|
-
},
|
|
1371
|
+
}, x = function() {
|
|
1380
1372
|
$(), l = v = void 0, S = h = !1;
|
|
1381
1373
|
}, j = function() {
|
|
1382
1374
|
var M = l;
|
|
1383
|
-
|
|
1375
|
+
x(), M == null || M.unsubscribe();
|
|
1384
1376
|
};
|
|
1385
|
-
return _(function(M,
|
|
1377
|
+
return _(function(M, Ve) {
|
|
1386
1378
|
p++, !h && !S && $();
|
|
1387
|
-
var H = v = v
|
|
1388
|
-
|
|
1389
|
-
p--, p === 0 && !h && !S && (d =
|
|
1390
|
-
}), H.subscribe(
|
|
1379
|
+
var H = v = v ?? n();
|
|
1380
|
+
Ve.add(function() {
|
|
1381
|
+
p--, p === 0 && !h && !S && (d = ue(j, a));
|
|
1382
|
+
}), H.subscribe(Ve), !l && p > 0 && (l = new L({
|
|
1391
1383
|
next: function(Y) {
|
|
1392
1384
|
return H.next(Y);
|
|
1393
1385
|
},
|
|
1394
1386
|
error: function(Y) {
|
|
1395
|
-
h = !0, $(), d =
|
|
1387
|
+
h = !0, $(), d = ue(x, i, Y), H.error(Y);
|
|
1396
1388
|
},
|
|
1397
1389
|
complete: function() {
|
|
1398
|
-
S = !0, $(), d =
|
|
1390
|
+
S = !0, $(), d = ue(x, u), H.complete();
|
|
1399
1391
|
}
|
|
1400
|
-
}),
|
|
1392
|
+
}), C(M).subscribe(l));
|
|
1401
1393
|
})(c);
|
|
1402
1394
|
};
|
|
1403
1395
|
}
|
|
1404
|
-
function
|
|
1396
|
+
function ue(e, t) {
|
|
1405
1397
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
1406
1398
|
n[r - 2] = arguments[r];
|
|
1407
1399
|
if (t === !0) {
|
|
@@ -1414,200 +1406,159 @@ function ae(e, t) {
|
|
|
1414
1406
|
i.unsubscribe(), e();
|
|
1415
1407
|
}
|
|
1416
1408
|
});
|
|
1417
|
-
return t.apply(void 0, R([], D(n))).subscribe(i);
|
|
1409
|
+
return C(t.apply(void 0, R([], D(n)))).subscribe(i);
|
|
1418
1410
|
}
|
|
1419
1411
|
}
|
|
1420
|
-
function
|
|
1421
|
-
var r, i, o, u,
|
|
1422
|
-
return e && typeof e == "object" ? (r = e.bufferSize, u = r === void 0 ? 1 / 0 : r, i = e.windowTime, t = i === void 0 ? 1 / 0 : i, o = e.refCount,
|
|
1412
|
+
function zn(e, t, n) {
|
|
1413
|
+
var r, i, o, u, s = !1;
|
|
1414
|
+
return e && typeof e == "object" ? (r = e.bufferSize, u = r === void 0 ? 1 / 0 : r, i = e.windowTime, t = i === void 0 ? 1 / 0 : i, o = e.refCount, s = o === void 0 ? !1 : o, n = e.scheduler) : u = e ?? 1 / 0, Jn({
|
|
1423
1415
|
connector: function() {
|
|
1424
|
-
return new
|
|
1416
|
+
return new ln(u, t, n);
|
|
1425
1417
|
},
|
|
1426
1418
|
resetOnError: !0,
|
|
1427
1419
|
resetOnComplete: !1,
|
|
1428
|
-
resetOnRefCountZero:
|
|
1420
|
+
resetOnRefCountZero: s
|
|
1429
1421
|
});
|
|
1430
1422
|
}
|
|
1431
|
-
function
|
|
1423
|
+
function pt(e, t) {
|
|
1432
1424
|
return _(function(n, r) {
|
|
1433
|
-
var i = null, o = 0, u = !1,
|
|
1425
|
+
var i = null, o = 0, u = !1, s = function() {
|
|
1434
1426
|
return u && !i && r.complete();
|
|
1435
1427
|
};
|
|
1436
|
-
n.subscribe(w(r, function(
|
|
1428
|
+
n.subscribe(w(r, function(a) {
|
|
1437
1429
|
i == null || i.unsubscribe();
|
|
1438
1430
|
var c = 0, l = o++;
|
|
1439
|
-
|
|
1440
|
-
return r.next(t ? t(
|
|
1431
|
+
C(e(a, l)).subscribe(i = w(r, function(d) {
|
|
1432
|
+
return r.next(t ? t(a, d, l, c++) : d);
|
|
1441
1433
|
}, function() {
|
|
1442
|
-
i = null,
|
|
1434
|
+
i = null, s();
|
|
1443
1435
|
}));
|
|
1444
1436
|
}, function() {
|
|
1445
|
-
u = !0,
|
|
1437
|
+
u = !0, s();
|
|
1446
1438
|
}));
|
|
1447
1439
|
});
|
|
1448
1440
|
}
|
|
1449
|
-
function
|
|
1441
|
+
function Zn(e, t, n) {
|
|
1450
1442
|
var r = b(e) || t || n ? { next: e, error: t, complete: n } : e;
|
|
1451
1443
|
return r ? _(function(i, o) {
|
|
1452
1444
|
var u;
|
|
1453
1445
|
(u = r.subscribe) === null || u === void 0 || u.call(r);
|
|
1454
|
-
var
|
|
1455
|
-
i.subscribe(w(o, function(
|
|
1446
|
+
var s = !0;
|
|
1447
|
+
i.subscribe(w(o, function(a) {
|
|
1456
1448
|
var c;
|
|
1457
|
-
(c = r.next) === null || c === void 0 || c.call(r,
|
|
1449
|
+
(c = r.next) === null || c === void 0 || c.call(r, a), o.next(a);
|
|
1458
1450
|
}, function() {
|
|
1459
|
-
var
|
|
1460
|
-
|
|
1461
|
-
}, function(
|
|
1451
|
+
var a;
|
|
1452
|
+
s = !1, (a = r.complete) === null || a === void 0 || a.call(r), o.complete();
|
|
1453
|
+
}, function(a) {
|
|
1462
1454
|
var c;
|
|
1463
|
-
|
|
1455
|
+
s = !1, (c = r.error) === null || c === void 0 || c.call(r, a), o.error(a);
|
|
1464
1456
|
}, function() {
|
|
1465
|
-
var
|
|
1466
|
-
|
|
1457
|
+
var a, c;
|
|
1458
|
+
s && ((a = r.unsubscribe) === null || a === void 0 || a.call(r)), (c = r.finalize) === null || c === void 0 || c.call(r);
|
|
1467
1459
|
}));
|
|
1468
1460
|
}) : W;
|
|
1469
1461
|
}
|
|
1470
|
-
function
|
|
1462
|
+
function Ce(e) {
|
|
1471
1463
|
return new y(function(t) {
|
|
1472
|
-
var n =
|
|
1464
|
+
var n = At(e, t.next.bind(t), t.error.bind(t), t.complete.bind(t));
|
|
1473
1465
|
return { unsubscribe: n };
|
|
1474
1466
|
});
|
|
1475
1467
|
}
|
|
1476
|
-
const
|
|
1477
|
-
function
|
|
1478
|
-
const {
|
|
1479
|
-
firebaseConfig: t,
|
|
1480
|
-
appName: n,
|
|
1481
|
-
suspense: r
|
|
1482
|
-
} = e, i = f.useMemo(() => {
|
|
1468
|
+
const Bn = "[DEFAULT]", mt = f.createContext(void 0), Ee = f.createContext(!1), Xn = "4.2.3-exp.9801ee9", er = (e, t) => e === t || [...Object.keys(e), ...Object.keys(t)].every((n) => e[n] === t[n]);
|
|
1469
|
+
function Mr(e) {
|
|
1470
|
+
const { firebaseConfig: t, appName: n, suspense: r } = e, i = f.useMemo(() => {
|
|
1483
1471
|
if (e.firebaseApp)
|
|
1484
1472
|
return e.firebaseApp;
|
|
1485
|
-
const o =
|
|
1473
|
+
const o = Ut().find((u) => u.name === (n || Bn));
|
|
1486
1474
|
if (o) {
|
|
1487
|
-
if (t &&
|
|
1475
|
+
if (t && er(o.options, t))
|
|
1488
1476
|
return o;
|
|
1489
1477
|
throw new Error(`Does not match the options already provided to the ${n || "default"} firebase app instance, give this new instance a different appName.`);
|
|
1490
1478
|
} else {
|
|
1491
1479
|
if (!t)
|
|
1492
1480
|
throw new Error("No firebaseConfig provided");
|
|
1493
1481
|
const u = f.version || "unknown";
|
|
1494
|
-
return
|
|
1482
|
+
return Me("react", u), Me("reactfire", Xn), Vt(t, n);
|
|
1495
1483
|
}
|
|
1496
1484
|
}, [e.firebaseApp, t, n]);
|
|
1497
|
-
return f.createElement(
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
value: r
|
|
1501
|
-
|
|
1502
|
-
}
|
|
1503
|
-
function
|
|
1504
|
-
const e = f.useContext(
|
|
1505
|
-
return e
|
|
1506
|
-
}
|
|
1507
|
-
function
|
|
1508
|
-
|
|
1485
|
+
return f.createElement(
|
|
1486
|
+
mt.Provider,
|
|
1487
|
+
{ value: i },
|
|
1488
|
+
f.createElement(Ee.Provider, Object.assign({ value: r ?? !1 }, e))
|
|
1489
|
+
);
|
|
1490
|
+
}
|
|
1491
|
+
function Lr() {
|
|
1492
|
+
const e = f.useContext(Ee);
|
|
1493
|
+
return e ?? !1;
|
|
1494
|
+
}
|
|
1495
|
+
function ne(e) {
|
|
1496
|
+
const t = f.useContext(Ee);
|
|
1509
1497
|
return e !== void 0 ? e : t;
|
|
1510
1498
|
}
|
|
1511
|
-
function
|
|
1512
|
-
const e = f.useContext(
|
|
1499
|
+
function bt() {
|
|
1500
|
+
const e = f.useContext(mt);
|
|
1513
1501
|
if (!e)
|
|
1514
1502
|
throw new Error("Cannot call useFirebaseApp unless your component is within a FirebaseAppProvider");
|
|
1515
1503
|
return e;
|
|
1516
1504
|
}
|
|
1517
|
-
function
|
|
1518
|
-
return
|
|
1505
|
+
function Nr(e) {
|
|
1506
|
+
return he(this, void 0, void 0, function* () {
|
|
1519
1507
|
const t = yield e();
|
|
1520
|
-
return
|
|
1508
|
+
return Oe(Ce(t), `auth:user:${t.name}`).toPromise();
|
|
1521
1509
|
});
|
|
1522
1510
|
}
|
|
1523
|
-
function
|
|
1524
|
-
const t =
|
|
1511
|
+
function tr(e) {
|
|
1512
|
+
const t = Ot(), n = `auth:user:${t.name}`, r = Ce(t);
|
|
1525
1513
|
return g(n, r, e);
|
|
1526
1514
|
}
|
|
1527
|
-
function
|
|
1515
|
+
function nr(e, t = !1, n) {
|
|
1528
1516
|
if (!e)
|
|
1529
1517
|
throw new Error("you must provide a user");
|
|
1530
1518
|
const r = `auth:idTokenResult:${e.uid}:forceRefresh=${t}`, i = O(e.getIdTokenResult(t));
|
|
1531
1519
|
return g(r, i, n);
|
|
1532
1520
|
}
|
|
1533
|
-
function
|
|
1534
|
-
if (
|
|
1521
|
+
function Wr(e) {
|
|
1522
|
+
if (e != null && e.hasOwnProperty("requiredClaims") && (e != null && e.hasOwnProperty("validateCustomClaims")))
|
|
1535
1523
|
throw new Error('Cannot have both "requiredClaims" and "validateCustomClaims". Use one or the other.');
|
|
1536
|
-
const t =
|
|
1524
|
+
const t = Ot();
|
|
1537
1525
|
let n = `auth:signInCheck:${t.name}::forceRefresh:${!!(e != null && e.forceRefresh)}`;
|
|
1538
1526
|
e != null && e.forceRefresh && (n = `${n}:forceRefresh:${e.forceRefresh}`), e != null && e.hasOwnProperty("requiredClaims") ? n = `${n}:requiredClaims:${JSON.stringify(e.requiredClaims)}` : e != null && e.hasOwnProperty("validateCustomClaims") && (n = `${n}:validateCustomClaims:${JSON.stringify(e.validateCustomClaims)}`);
|
|
1539
|
-
const r =
|
|
1527
|
+
const r = Ce(t).pipe(pt((i) => {
|
|
1540
1528
|
var o;
|
|
1541
|
-
return i ? e && (e.hasOwnProperty("requiredClaims") || e.hasOwnProperty("validateCustomClaims")) ? O(i.getIdTokenResult((o = e == null ? void 0 : e.forceRefresh) !== null && o !== void 0 ? o : !1)).pipe(
|
|
1542
|
-
let
|
|
1543
|
-
e.hasOwnProperty("requiredClaims") ?
|
|
1544
|
-
const {
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
} = a(u.claims);
|
|
1548
|
-
return {
|
|
1549
|
-
signedIn: !0,
|
|
1550
|
-
hasRequiredClaims: s,
|
|
1551
|
-
errors: c,
|
|
1552
|
-
user: i
|
|
1553
|
-
};
|
|
1554
|
-
})) : ee({
|
|
1555
|
-
signedIn: !0,
|
|
1556
|
-
hasRequiredClaims: !0,
|
|
1557
|
-
errors: {},
|
|
1558
|
-
user: i
|
|
1559
|
-
}) : ee({
|
|
1560
|
-
signedIn: !1,
|
|
1561
|
-
hasRequiredClaims: !1,
|
|
1562
|
-
errors: {},
|
|
1563
|
-
user: null
|
|
1564
|
-
});
|
|
1529
|
+
return i ? e && (e.hasOwnProperty("requiredClaims") || e.hasOwnProperty("validateCustomClaims")) ? O(i.getIdTokenResult((o = e == null ? void 0 : e.forceRefresh) !== null && o !== void 0 ? o : !1)).pipe(E((u) => {
|
|
1530
|
+
let s;
|
|
1531
|
+
e.hasOwnProperty("requiredClaims") ? s = rr(e.requiredClaims) : s = e.validateCustomClaims;
|
|
1532
|
+
const { hasRequiredClaims: a, errors: c } = s(u.claims);
|
|
1533
|
+
return { signedIn: !0, hasRequiredClaims: a, errors: c, user: i };
|
|
1534
|
+
})) : X({ signedIn: !0, hasRequiredClaims: !0, errors: {}, user: i }) : X({ signedIn: !1, hasRequiredClaims: !1, errors: {}, user: null });
|
|
1565
1535
|
}));
|
|
1566
|
-
return g(n, r);
|
|
1536
|
+
return g(n, r, e);
|
|
1567
1537
|
}
|
|
1568
|
-
function
|
|
1538
|
+
function rr(e) {
|
|
1569
1539
|
return function(n) {
|
|
1570
1540
|
const r = {};
|
|
1571
1541
|
return Object.keys(e).forEach((i) => {
|
|
1572
|
-
e[i] !== n[i] && (r[i] = [new
|
|
1542
|
+
e[i] !== n[i] && (r[i] = [new Ue("auth/missing-claim", `Expected "${e[i]}", but user has "${n[i]}" instead`)]);
|
|
1573
1543
|
}), {
|
|
1574
1544
|
hasRequiredClaims: Object.keys(r).length === 0,
|
|
1575
1545
|
errors: r
|
|
1576
1546
|
};
|
|
1577
1547
|
};
|
|
1578
1548
|
}
|
|
1579
|
-
function
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
children: n,
|
|
1583
|
-
requiredClaims: r
|
|
1584
|
-
}) {
|
|
1585
|
-
const {
|
|
1586
|
-
data: i
|
|
1587
|
-
} = rr(e, !1), {
|
|
1588
|
-
claims: o
|
|
1589
|
-
} = i, u = {};
|
|
1590
|
-
return re() || console.warn("ClaimsCheck is deprecated and only works when ReactFire is in experimental Suspense Mode. Use useSigninCheck or set suspense={true} in FirebaseAppProvider if you want to use this component."), r && Object.keys(r).forEach((s) => {
|
|
1549
|
+
function ir({ user: e, fallback: t, children: n, requiredClaims: r }) {
|
|
1550
|
+
const { data: i } = nr(e, !1), { claims: o } = i, u = {};
|
|
1551
|
+
return ne() || console.warn("ClaimsCheck is deprecated and only works when ReactFire is in experimental Suspense Mode. Use useSigninCheck or set suspense={true} in FirebaseAppProvider if you want to use this component."), r && Object.keys(r).forEach((a) => {
|
|
1591
1552
|
var c;
|
|
1592
|
-
r[
|
|
1593
|
-
expected: r[
|
|
1594
|
-
actual: (c = o[
|
|
1553
|
+
r[a] !== o[a] && (u[a] = {
|
|
1554
|
+
expected: r[a],
|
|
1555
|
+
actual: (c = o[a]) === null || c === void 0 ? void 0 : c.toString()
|
|
1595
1556
|
});
|
|
1596
1557
|
}), Object.keys(u).length === 0 ? f.createElement(f.Fragment, null, n) : f.createElement(f.Fragment, null, t);
|
|
1597
1558
|
}
|
|
1598
|
-
function
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
requiredClaims: n
|
|
1602
|
-
}) {
|
|
1603
|
-
const {
|
|
1604
|
-
data: r
|
|
1605
|
-
} = nr();
|
|
1606
|
-
return re() || console.warn("AuthCheck is deprecated and only works when ReactFire is in experimental Suspense Mode. Use useSigninCheck or set suspense={true} in FirebaseAppProvider if you want to use this component."), r ? n ? f.createElement(or, {
|
|
1607
|
-
user: r,
|
|
1608
|
-
fallback: e,
|
|
1609
|
-
requiredClaims: n
|
|
1610
|
-
}, t) : f.createElement(f.Fragment, null, t) : f.createElement(f.Fragment, null, e);
|
|
1559
|
+
function qr({ fallback: e, children: t, requiredClaims: n }) {
|
|
1560
|
+
const { data: r } = tr();
|
|
1561
|
+
return ne() || console.warn("AuthCheck is deprecated and only works when ReactFire is in experimental Suspense Mode. Use useSigninCheck or set suspense={true} in FirebaseAppProvider if you want to use this component."), r ? n ? f.createElement(ir, { user: r, fallback: e, requiredClaims: n }, t) : f.createElement(f.Fragment, null, t) : f.createElement(f.Fragment, null, e);
|
|
1611
1562
|
}
|
|
1612
1563
|
/*! *****************************************************************************
|
|
1613
1564
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1623,15 +1574,15 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
1623
1574
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1624
1575
|
PERFORMANCE OF THIS SOFTWARE.
|
|
1625
1576
|
***************************************************************************** */
|
|
1626
|
-
var
|
|
1627
|
-
return
|
|
1577
|
+
var ee = function() {
|
|
1578
|
+
return ee = Object.assign || function(t) {
|
|
1628
1579
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
1629
1580
|
n = arguments[r];
|
|
1630
1581
|
for (var o in n)
|
|
1631
1582
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
1632
1583
|
}
|
|
1633
1584
|
return t;
|
|
1634
|
-
},
|
|
1585
|
+
}, ee.apply(this, arguments);
|
|
1635
1586
|
};
|
|
1636
1587
|
function se(e, t) {
|
|
1637
1588
|
for (var n = 0, r = t.length, i = e.length; n < r; n++, i++)
|
|
@@ -1658,7 +1609,7 @@ var T, m;
|
|
|
1658
1609
|
(function(e) {
|
|
1659
1610
|
e.added = "child_added", e.removed = "child_removed", e.changed = "child_changed", e.moved = "child_moved", e.value = "value";
|
|
1660
1611
|
})(m || (m = {}));
|
|
1661
|
-
var
|
|
1612
|
+
var or = Object.freeze((T = {}, T[m.added] = Ft, T[m.removed] = Pt, T[m.changed] = $t, T[m.moved] = Tt, T[m.value] = Dt, T));
|
|
1662
1613
|
/**
|
|
1663
1614
|
* @license
|
|
1664
1615
|
* Copyright 2021 Google LLC
|
|
@@ -1675,17 +1626,22 @@ var ur = Object.freeze((T = {}, T[m.added] = Pt, T[m.removed] = $t, T[m.changed]
|
|
|
1675
1626
|
* See the License for the specific language governing permissions and
|
|
1676
1627
|
* limitations under the License.
|
|
1677
1628
|
*/
|
|
1678
|
-
function
|
|
1629
|
+
function xe(e, t) {
|
|
1679
1630
|
return new y(function(n) {
|
|
1680
|
-
var r =
|
|
1631
|
+
var r = or[t](e, function(i, o) {
|
|
1681
1632
|
n.next({ snapshot: i, prevKey: o, event: t });
|
|
1682
1633
|
}, n.error.bind(n));
|
|
1683
1634
|
return {
|
|
1684
1635
|
unsubscribe: function() {
|
|
1685
|
-
|
|
1636
|
+
Rt(e, t, r);
|
|
1686
1637
|
}
|
|
1687
1638
|
};
|
|
1688
|
-
}).pipe(
|
|
1639
|
+
}).pipe(
|
|
1640
|
+
// Ensures subscribe on observable is async. This handles
|
|
1641
|
+
// a quirk in the SDK where on/once callbacks can happen
|
|
1642
|
+
// synchronously.
|
|
1643
|
+
qn(0)
|
|
1644
|
+
);
|
|
1689
1645
|
}
|
|
1690
1646
|
/**
|
|
1691
1647
|
* @license
|
|
@@ -1703,7 +1659,7 @@ function Oe(e, t) {
|
|
|
1703
1659
|
* See the License for the specific language governing permissions and
|
|
1704
1660
|
* limitations under the License.
|
|
1705
1661
|
*/
|
|
1706
|
-
function
|
|
1662
|
+
function ur(e) {
|
|
1707
1663
|
return (e == null || e.length === 0) && (e = [
|
|
1708
1664
|
m.added,
|
|
1709
1665
|
m.removed,
|
|
@@ -1728,69 +1684,69 @@ function ar(e) {
|
|
|
1728
1684
|
* limitations under the License.
|
|
1729
1685
|
*/
|
|
1730
1686
|
function sr(e) {
|
|
1731
|
-
return
|
|
1687
|
+
return xe(e, m.value);
|
|
1732
1688
|
}
|
|
1733
|
-
function
|
|
1734
|
-
return t === void 0 && (t = {}),
|
|
1735
|
-
return
|
|
1689
|
+
function ar(e, t) {
|
|
1690
|
+
return t === void 0 && (t = {}), xe(e, m.value).pipe(E(function(n) {
|
|
1691
|
+
return yt(n, t);
|
|
1736
1692
|
}));
|
|
1737
1693
|
}
|
|
1738
|
-
function
|
|
1694
|
+
function yt(e, t) {
|
|
1739
1695
|
var n;
|
|
1740
1696
|
t === void 0 && (t = {});
|
|
1741
1697
|
var r = e.snapshot.val();
|
|
1742
|
-
return !e.snapshot.exists() || typeof r != "object" ? r :
|
|
1698
|
+
return !e.snapshot.exists() || typeof r != "object" ? r : ee(ee({}, r), t.keyField ? (n = {}, n[t.keyField] = e.snapshot.key, n) : null);
|
|
1743
1699
|
}
|
|
1744
|
-
function
|
|
1745
|
-
return O(
|
|
1700
|
+
function cr(e) {
|
|
1701
|
+
return O(jt(e)).pipe(E(function(t) {
|
|
1746
1702
|
var n = m.value;
|
|
1747
1703
|
return { snapshot: t, prevKey: null, event: n };
|
|
1748
1704
|
}));
|
|
1749
1705
|
}
|
|
1750
|
-
function
|
|
1706
|
+
function gt(e, t) {
|
|
1751
1707
|
t === void 0 && (t = {});
|
|
1752
|
-
var n =
|
|
1753
|
-
return
|
|
1708
|
+
var n = ur(t.events);
|
|
1709
|
+
return cr(e).pipe(pt(function(r) {
|
|
1754
1710
|
if (!r.snapshot.exists())
|
|
1755
|
-
return
|
|
1756
|
-
var i = [
|
|
1711
|
+
return X([]);
|
|
1712
|
+
var i = [X(r)];
|
|
1757
1713
|
return n.forEach(function(o) {
|
|
1758
|
-
i.push(
|
|
1759
|
-
}),
|
|
1760
|
-
}),
|
|
1714
|
+
i.push(xe(e, o));
|
|
1715
|
+
}), jn.apply(void 0, i).pipe(Gn(dr, []));
|
|
1716
|
+
}), Qn());
|
|
1761
1717
|
}
|
|
1762
|
-
function
|
|
1763
|
-
return t === void 0 && (t = {}),
|
|
1718
|
+
function lr(e, t) {
|
|
1719
|
+
return t === void 0 && (t = {}), gt(e).pipe(E(function(n) {
|
|
1764
1720
|
return n.map(function(r) {
|
|
1765
|
-
return
|
|
1721
|
+
return yt(r, t);
|
|
1766
1722
|
});
|
|
1767
1723
|
}));
|
|
1768
1724
|
}
|
|
1769
|
-
function
|
|
1725
|
+
function wt(e, t) {
|
|
1770
1726
|
for (var n = e.length, r = 0; r < n; r++)
|
|
1771
1727
|
if (e[r].snapshot.key === t)
|
|
1772
1728
|
return r;
|
|
1773
1729
|
return -1;
|
|
1774
1730
|
}
|
|
1775
|
-
function
|
|
1731
|
+
function fr(e, t) {
|
|
1776
1732
|
if (t == null)
|
|
1777
1733
|
return 0;
|
|
1778
|
-
var n =
|
|
1734
|
+
var n = wt(e, t);
|
|
1779
1735
|
return n === -1 ? e.length : n + 1;
|
|
1780
1736
|
}
|
|
1781
|
-
function
|
|
1782
|
-
var n = t.snapshot, r = t.prevKey, i = t.event, o = n.key, u =
|
|
1737
|
+
function dr(e, t) {
|
|
1738
|
+
var n = t.snapshot, r = t.prevKey, i = t.event, o = n.key, u = wt(e, o), s = fr(e, r || void 0);
|
|
1783
1739
|
switch (i) {
|
|
1784
1740
|
case m.value:
|
|
1785
1741
|
if (t.snapshot && t.snapshot.exists()) {
|
|
1786
|
-
var
|
|
1742
|
+
var a = null;
|
|
1787
1743
|
t.snapshot.forEach(function(d) {
|
|
1788
1744
|
var v = {
|
|
1789
1745
|
snapshot: d,
|
|
1790
1746
|
event: m.value,
|
|
1791
|
-
prevKey:
|
|
1747
|
+
prevKey: a
|
|
1792
1748
|
};
|
|
1793
|
-
return
|
|
1749
|
+
return a = d.key, e = se(se([], e), [v]), !1;
|
|
1794
1750
|
});
|
|
1795
1751
|
}
|
|
1796
1752
|
return e;
|
|
@@ -1799,11 +1755,11 @@ function vr(e, t) {
|
|
|
1799
1755
|
var c = e[u - 1];
|
|
1800
1756
|
(c && c.snapshot.key || null) !== r && (e = e.filter(function(d) {
|
|
1801
1757
|
return d.snapshot.key !== n.key;
|
|
1802
|
-
}), e.splice(
|
|
1758
|
+
}), e.splice(s, 0, t));
|
|
1803
1759
|
} else {
|
|
1804
1760
|
if (r == null)
|
|
1805
1761
|
return se([t], e);
|
|
1806
|
-
e = e.slice(), e.splice(
|
|
1762
|
+
e = e.slice(), e.splice(s, 0, t);
|
|
1807
1763
|
}
|
|
1808
1764
|
return e;
|
|
1809
1765
|
case m.removed:
|
|
@@ -1817,37 +1773,33 @@ function vr(e, t) {
|
|
|
1817
1773
|
case m.moved:
|
|
1818
1774
|
if (u > -1) {
|
|
1819
1775
|
var l = e.splice(u, 1)[0];
|
|
1820
|
-
return e = e.slice(), e.splice(
|
|
1776
|
+
return e = e.slice(), e.splice(s, 0, l), e;
|
|
1821
1777
|
}
|
|
1822
1778
|
return e;
|
|
1823
1779
|
default:
|
|
1824
1780
|
return e;
|
|
1825
1781
|
}
|
|
1826
1782
|
}
|
|
1827
|
-
const
|
|
1828
|
-
globalThis._reactFireDatabaseCachedQueries || (globalThis._reactFireDatabaseCachedQueries =
|
|
1829
|
-
function
|
|
1830
|
-
const t =
|
|
1831
|
-
return t > -1 ? t :
|
|
1783
|
+
const de = globalThis._reactFireDatabaseCachedQueries || [];
|
|
1784
|
+
globalThis._reactFireDatabaseCachedQueries || (globalThis._reactFireDatabaseCachedQueries = de);
|
|
1785
|
+
function _t(e) {
|
|
1786
|
+
const t = de.findIndex((n) => n.isEqual(e));
|
|
1787
|
+
return t > -1 ? t : de.push(e) - 1;
|
|
1832
1788
|
}
|
|
1833
|
-
function
|
|
1789
|
+
function Qr(e, t) {
|
|
1834
1790
|
const n = `database:object:${e.toString()}`, r = sr(e);
|
|
1835
1791
|
return g(n, r, t);
|
|
1836
1792
|
}
|
|
1837
|
-
function
|
|
1838
|
-
const n = t ? K(t) : "NO_ID_FIELD", r = `database:objectVal:${e.toString()}:idField=${n}`, i =
|
|
1839
|
-
keyField: n
|
|
1840
|
-
});
|
|
1793
|
+
function Kr(e, t) {
|
|
1794
|
+
const n = t ? K(t) : "NO_ID_FIELD", r = `database:objectVal:${e.toString()}:idField=${n}`, i = ar(e, { keyField: n });
|
|
1841
1795
|
return g(r, i, t);
|
|
1842
1796
|
}
|
|
1843
|
-
function
|
|
1844
|
-
const n = `database:list:${
|
|
1797
|
+
function Hr(e, t) {
|
|
1798
|
+
const n = `database:list:${_t(e)}`, r = gt(e);
|
|
1845
1799
|
return g(n, r, t);
|
|
1846
1800
|
}
|
|
1847
|
-
function
|
|
1848
|
-
const n = t ? K(t) : "NO_ID_FIELD", r = `database:listVal:${
|
|
1849
|
-
keyField: n
|
|
1850
|
-
});
|
|
1801
|
+
function Yr(e, t) {
|
|
1802
|
+
const n = t ? K(t) : "NO_ID_FIELD", r = `database:listVal:${_t(e)}:idField=${n}`, i = lr(e, { keyField: n });
|
|
1851
1803
|
return g(r, i, t);
|
|
1852
1804
|
}
|
|
1853
1805
|
/**
|
|
@@ -1866,10 +1818,10 @@ function Gr(e, t) {
|
|
|
1866
1818
|
* See the License for the specific language governing permissions and
|
|
1867
1819
|
* limitations under the License.
|
|
1868
1820
|
*/
|
|
1869
|
-
var
|
|
1870
|
-
function
|
|
1871
|
-
return t === void 0 && (t =
|
|
1872
|
-
var r =
|
|
1821
|
+
var vr = { includeMetadataChanges: !1 };
|
|
1822
|
+
function Ie(e, t) {
|
|
1823
|
+
return t === void 0 && (t = vr), new y(function(n) {
|
|
1824
|
+
var r = Mt(e, t, {
|
|
1873
1825
|
next: n.next.bind(n),
|
|
1874
1826
|
error: n.error.bind(n),
|
|
1875
1827
|
complete: n.complete.bind(n)
|
|
@@ -1893,41 +1845,42 @@ function ke(e, t) {
|
|
|
1893
1845
|
* See the License for the specific language governing permissions and
|
|
1894
1846
|
* limitations under the License.
|
|
1895
1847
|
*/
|
|
1896
|
-
function
|
|
1897
|
-
return
|
|
1848
|
+
function re(e) {
|
|
1849
|
+
return Ie(e, { includeMetadataChanges: !0 });
|
|
1898
1850
|
}
|
|
1899
|
-
function
|
|
1900
|
-
return t === void 0 && (t = {}),
|
|
1901
|
-
return
|
|
1851
|
+
function St(e, t) {
|
|
1852
|
+
return t === void 0 && (t = {}), re(e).pipe(E(function(n) {
|
|
1853
|
+
return Ct(n, t);
|
|
1902
1854
|
}));
|
|
1903
1855
|
}
|
|
1904
|
-
function
|
|
1856
|
+
function Ct(e, t) {
|
|
1905
1857
|
t === void 0 && (t = {});
|
|
1906
1858
|
var n = e.data();
|
|
1907
1859
|
return !e.exists() || typeof n != "object" || n === null || t.idField && (n[t.idField] = e.id), n;
|
|
1908
1860
|
}
|
|
1909
|
-
function
|
|
1910
|
-
return
|
|
1861
|
+
function hr(e) {
|
|
1862
|
+
return Ie(e, { includeMetadataChanges: !0 }).pipe(E(function(t) {
|
|
1911
1863
|
return t.docs;
|
|
1912
1864
|
}));
|
|
1913
1865
|
}
|
|
1914
|
-
function
|
|
1915
|
-
return t === void 0 && (t = {}),
|
|
1866
|
+
function pr(e, t) {
|
|
1867
|
+
return t === void 0 && (t = {}), hr(e).pipe(E(function(n) {
|
|
1916
1868
|
return n.map(function(r) {
|
|
1917
|
-
return
|
|
1869
|
+
return Ct(r, t);
|
|
1918
1870
|
});
|
|
1919
1871
|
}));
|
|
1920
1872
|
}
|
|
1921
|
-
class
|
|
1922
|
-
constructor(t, n) {
|
|
1923
|
-
super(), this._timeoutWindow = n, this._hasValue = !1, this._error = void 0, this._firstEmission = new Promise((
|
|
1924
|
-
next: (
|
|
1925
|
-
this._next(
|
|
1873
|
+
class mr extends te {
|
|
1874
|
+
constructor(t, n, r) {
|
|
1875
|
+
super(), this._timeoutWindow = n, this._suspenseEnabled = r, this._hasValue = !1, this._error = void 0, this._firstEmission = new Promise((i) => this._resolveFirstEmission = i), this._innerObservable = t.pipe(Zn({
|
|
1876
|
+
next: (i) => {
|
|
1877
|
+
this._next(i);
|
|
1926
1878
|
},
|
|
1927
|
-
error: (
|
|
1928
|
-
this._error =
|
|
1879
|
+
error: (i) => {
|
|
1880
|
+
this._error = i, this._resolveFirstEmission();
|
|
1929
1881
|
}
|
|
1930
|
-
}),
|
|
1882
|
+
}), dt(() => pn()), zn(1)), this._warmupSubscription = this._innerObservable.subscribe(), this._suspenseEnabled ? this._timeoutHandler = setTimeout(() => {
|
|
1883
|
+
}, this._timeoutWindow) : this._timeoutHandler = setTimeout(this._reset.bind(this), this._timeoutWindow);
|
|
1931
1884
|
}
|
|
1932
1885
|
get hasValue() {
|
|
1933
1886
|
return this._hasValue || !!this._error;
|
|
@@ -1955,17 +1908,17 @@ class br extends ne {
|
|
|
1955
1908
|
return this._error;
|
|
1956
1909
|
}
|
|
1957
1910
|
}
|
|
1958
|
-
const
|
|
1959
|
-
globalThis._reactFirePreloadedObservables || (globalThis._reactFirePreloadedObservables =
|
|
1960
|
-
function
|
|
1961
|
-
if (
|
|
1962
|
-
return
|
|
1911
|
+
const br = 3e4, z = globalThis._reactFirePreloadedObservables || /* @__PURE__ */ new Map();
|
|
1912
|
+
globalThis._reactFirePreloadedObservables || (globalThis._reactFirePreloadedObservables = z);
|
|
1913
|
+
function Oe(e, t, n = !1) {
|
|
1914
|
+
if (z.has(t))
|
|
1915
|
+
return z.get(t);
|
|
1963
1916
|
{
|
|
1964
|
-
const
|
|
1965
|
-
return
|
|
1917
|
+
const r = new mr(e, br, n);
|
|
1918
|
+
return z.set(t, r), r;
|
|
1966
1919
|
}
|
|
1967
1920
|
}
|
|
1968
|
-
function
|
|
1921
|
+
function yr(e) {
|
|
1969
1922
|
return function(n, r) {
|
|
1970
1923
|
const i = Object.assign(Object.assign({}, n), { hasEmitted: n.hasEmitted || e.hasValue, error: e.ourError, firstValuePromise: e.firstEmission });
|
|
1971
1924
|
switch (e.hasValue && (i.data = e.value), r) {
|
|
@@ -1984,19 +1937,19 @@ function g(e, t, n = {}) {
|
|
|
1984
1937
|
var r;
|
|
1985
1938
|
if (!e)
|
|
1986
1939
|
throw new Error("cannot call useObservable without an observableId");
|
|
1987
|
-
const i =
|
|
1988
|
-
if (
|
|
1989
|
-
throw
|
|
1990
|
-
const
|
|
1991
|
-
status:
|
|
1992
|
-
hasEmitted:
|
|
1940
|
+
const i = ne(n.suspense), o = Oe(t, e, i), u = n.hasOwnProperty("initialData") || n.hasOwnProperty("startWithValue"), s = o.hasValue || u;
|
|
1941
|
+
if (i === !0 && !s)
|
|
1942
|
+
throw o.firstEmission;
|
|
1943
|
+
const a = {
|
|
1944
|
+
status: s ? "success" : "loading",
|
|
1945
|
+
hasEmitted: s,
|
|
1993
1946
|
isComplete: !1,
|
|
1994
|
-
data:
|
|
1995
|
-
error:
|
|
1996
|
-
firstValuePromise:
|
|
1997
|
-
}, [c, l] = f.useReducer(
|
|
1947
|
+
data: o.hasValue ? o.value : (r = n == null ? void 0 : n.initialData) !== null && r !== void 0 ? r : n == null ? void 0 : n.startWithValue,
|
|
1948
|
+
error: o.ourError,
|
|
1949
|
+
firstValuePromise: o.firstEmission
|
|
1950
|
+
}, [c, l] = f.useReducer(yr(o), a);
|
|
1998
1951
|
return f.useEffect(() => {
|
|
1999
|
-
const d =
|
|
1952
|
+
const d = o.subscribe({
|
|
2000
1953
|
next: () => {
|
|
2001
1954
|
l("value");
|
|
2002
1955
|
},
|
|
@@ -2008,51 +1961,45 @@ function g(e, t, n = {}) {
|
|
|
2008
1961
|
}
|
|
2009
1962
|
});
|
|
2010
1963
|
return () => d.unsubscribe();
|
|
2011
|
-
}, [
|
|
1964
|
+
}, [o]), c;
|
|
2012
1965
|
}
|
|
2013
|
-
const
|
|
2014
|
-
globalThis._reactFireFirestoreQueryCache || (globalThis._reactFireFirestoreQueryCache =
|
|
2015
|
-
function
|
|
2016
|
-
const t =
|
|
2017
|
-
return t > -1 ? t :
|
|
1966
|
+
const ve = globalThis._reactFireFirestoreQueryCache || [];
|
|
1967
|
+
globalThis._reactFireFirestoreQueryCache || (globalThis._reactFireFirestoreQueryCache = ve);
|
|
1968
|
+
function Et(e) {
|
|
1969
|
+
const t = ve.findIndex((n) => Lt(n, e));
|
|
1970
|
+
return t > -1 ? t : ve.push(e) - 1;
|
|
2018
1971
|
}
|
|
2019
|
-
function
|
|
2020
|
-
return
|
|
1972
|
+
function Gr(e) {
|
|
1973
|
+
return he(this, void 0, void 0, function* () {
|
|
2021
1974
|
const t = yield e();
|
|
2022
|
-
return
|
|
1975
|
+
return Oe(re(t), xt(t));
|
|
2023
1976
|
});
|
|
2024
1977
|
}
|
|
2025
|
-
function
|
|
1978
|
+
function xt(e) {
|
|
2026
1979
|
return `firestore:doc:${e.firestore.app.name}:${e.path}`;
|
|
2027
1980
|
}
|
|
1981
|
+
function Jr(e, t) {
|
|
1982
|
+
const n = xt(e), r = re(e);
|
|
1983
|
+
return g(n, r, t);
|
|
1984
|
+
}
|
|
2028
1985
|
function zr(e, t) {
|
|
2029
|
-
const n =
|
|
1986
|
+
const n = `firestore:docOnce:${e.firestore.app.name}:${e.path}`, r = re(e).pipe(ht());
|
|
2030
1987
|
return g(n, r, t);
|
|
2031
1988
|
}
|
|
2032
1989
|
function Zr(e, t) {
|
|
2033
|
-
const n = `firestore:
|
|
2034
|
-
return g(
|
|
1990
|
+
const n = t ? K(t) : "NO_ID_FIELD", r = `firestore:docData:${e.firestore.app.name}:${e.path}:idField=${n}`, i = St(e, { idField: n });
|
|
1991
|
+
return g(r, i, t);
|
|
2035
1992
|
}
|
|
2036
1993
|
function Br(e, t) {
|
|
2037
|
-
const n = t ? K(t) : "NO_ID_FIELD", r = `firestore:
|
|
2038
|
-
idField: n
|
|
2039
|
-
});
|
|
1994
|
+
const n = t ? K(t) : "NO_ID_FIELD", r = `firestore:docDataOnce:${e.firestore.app.name}:${e.path}:idField=${n}`, i = St(e, { idField: n }).pipe(ht());
|
|
2040
1995
|
return g(r, i, t);
|
|
2041
1996
|
}
|
|
2042
1997
|
function Xr(e, t) {
|
|
2043
|
-
const n =
|
|
2044
|
-
idField: n
|
|
2045
|
-
}).pipe(pt());
|
|
2046
|
-
return g(r, i, t);
|
|
2047
|
-
}
|
|
2048
|
-
function ei(e, t) {
|
|
2049
|
-
const n = `firestore:collection:${xt(e)}`, r = ke(e);
|
|
1998
|
+
const n = `firestore:collection:${Et(e)}`, r = Ie(e);
|
|
2050
1999
|
return g(n, r, t);
|
|
2051
2000
|
}
|
|
2052
|
-
function
|
|
2053
|
-
const n = t ? K(t) : "NO_ID_FIELD", r = `firestore:collectionData:${
|
|
2054
|
-
idField: n
|
|
2055
|
-
});
|
|
2001
|
+
function ei(e, t) {
|
|
2002
|
+
const n = t ? K(t) : "NO_ID_FIELD", r = `firestore:collectionData:${Et(e)}:idField=${n}`, i = pr(e, { idField: n });
|
|
2056
2003
|
return g(r, i, t);
|
|
2057
2004
|
}
|
|
2058
2005
|
/**
|
|
@@ -2071,44 +2018,42 @@ function ti(e, t) {
|
|
|
2071
2018
|
* See the License for the specific language governing permissions and
|
|
2072
2019
|
* limitations under the License.
|
|
2073
2020
|
*/
|
|
2074
|
-
function
|
|
2075
|
-
var r =
|
|
2021
|
+
function gr(e, t, n) {
|
|
2022
|
+
var r = Nt(e, t, n);
|
|
2076
2023
|
return function(i) {
|
|
2077
|
-
return O(r(i)).pipe(
|
|
2024
|
+
return O(r(i)).pipe(E(function(o) {
|
|
2078
2025
|
return o.data;
|
|
2079
2026
|
}));
|
|
2080
2027
|
};
|
|
2081
2028
|
}
|
|
2082
|
-
function
|
|
2083
|
-
const n =
|
|
2029
|
+
function ti(e, t) {
|
|
2030
|
+
const n = Ar(), r = `functions:callableResponse:${e}:${JSON.stringify(t == null ? void 0 : t.data)}:${JSON.stringify(t == null ? void 0 : t.httpsCallableOptions)}`, o = gr(n, e, t == null ? void 0 : t.httpsCallableOptions)(t == null ? void 0 : t.data);
|
|
2084
2031
|
return g(r, o, t);
|
|
2085
2032
|
}
|
|
2086
|
-
function
|
|
2087
|
-
children: e,
|
|
2088
|
-
traceId: t,
|
|
2089
|
-
fallback: n
|
|
2090
|
-
}) {
|
|
2033
|
+
function ni({ children: e, traceId: t, fallback: n }) {
|
|
2091
2034
|
var r;
|
|
2092
|
-
const i = ((r = performance == null ? void 0 : performance.getEntriesByName) === null || r === void 0 ? void 0 : r.call(performance, t, "measure")) || [], o = `_${t}Start[${i.length}]`, u = `_${t}End[${i.length}]`,
|
|
2093
|
-
var
|
|
2094
|
-
return (
|
|
2035
|
+
const i = ((r = performance == null ? void 0 : performance.getEntriesByName) === null || r === void 0 ? void 0 : r.call(performance, t, "measure")) || [], o = `_${t}Start[${i.length}]`, u = `_${t}End[${i.length}]`, s = () => (f.useLayoutEffect(() => {
|
|
2036
|
+
var a;
|
|
2037
|
+
return (a = performance == null ? void 0 : performance.mark) === null || a === void 0 || a.call(performance, o), () => {
|
|
2095
2038
|
var c, l;
|
|
2096
2039
|
(c = performance == null ? void 0 : performance.mark) === null || c === void 0 || c.call(performance, u), (l = performance == null ? void 0 : performance.measure) === null || l === void 0 || l.call(performance, t, o, u);
|
|
2097
2040
|
};
|
|
2098
2041
|
}, []), f.createElement(f.Fragment, null, n));
|
|
2099
|
-
return f.createElement(f.Suspense, {
|
|
2100
|
-
fallback: f.createElement(a, null)
|
|
2101
|
-
}, e);
|
|
2042
|
+
return f.createElement(f.Suspense, { fallback: f.createElement(s, null) }, e);
|
|
2102
2043
|
}
|
|
2103
2044
|
function q(e) {
|
|
2104
2045
|
var t = e.remoteConfig, n = e.key, r = e.getter;
|
|
2105
2046
|
return new y(function(i) {
|
|
2106
|
-
|
|
2047
|
+
Qt(t).then(function() {
|
|
2107
2048
|
var o = r.bind(t);
|
|
2108
2049
|
i.next(o(t, n));
|
|
2109
2050
|
});
|
|
2110
2051
|
});
|
|
2111
2052
|
}
|
|
2053
|
+
function wr(e, t) {
|
|
2054
|
+
var n = Kt;
|
|
2055
|
+
return q({ remoteConfig: e, key: t, getter: n });
|
|
2056
|
+
}
|
|
2112
2057
|
function _r(e, t) {
|
|
2113
2058
|
var n = Ht;
|
|
2114
2059
|
return q({ remoteConfig: e, key: t, getter: n });
|
|
@@ -2121,18 +2066,17 @@ function Cr(e, t) {
|
|
|
2121
2066
|
var n = Gt;
|
|
2122
2067
|
return q({ remoteConfig: e, key: t, getter: n });
|
|
2123
2068
|
}
|
|
2124
|
-
function Er(e
|
|
2125
|
-
var
|
|
2126
|
-
return q({ remoteConfig: e, key: t, getter: n });
|
|
2127
|
-
}
|
|
2128
|
-
function xr(e) {
|
|
2129
|
-
var t = zt;
|
|
2069
|
+
function Er(e) {
|
|
2070
|
+
var t = Jt;
|
|
2130
2071
|
return q({ remoteConfig: e, key: "", getter: t });
|
|
2131
2072
|
}
|
|
2132
2073
|
function Q(e, t) {
|
|
2133
|
-
const n =
|
|
2074
|
+
const n = Pr(), r = n.app.name, i = t(n, e), o = `remoteConfig:${e}:${t.name}:${r}`;
|
|
2134
2075
|
return g(o, i);
|
|
2135
2076
|
}
|
|
2077
|
+
function ri(e) {
|
|
2078
|
+
return Q(e, wr);
|
|
2079
|
+
}
|
|
2136
2080
|
function ii(e) {
|
|
2137
2081
|
return Q(e, _r);
|
|
2138
2082
|
}
|
|
@@ -2142,13 +2086,10 @@ function oi(e) {
|
|
|
2142
2086
|
function ui(e) {
|
|
2143
2087
|
return Q(e, Cr);
|
|
2144
2088
|
}
|
|
2145
|
-
function ai(e) {
|
|
2146
|
-
return Q(e, Er);
|
|
2147
|
-
}
|
|
2148
2089
|
function si(e) {
|
|
2149
|
-
return Q(e,
|
|
2090
|
+
return Q(e, Er);
|
|
2150
2091
|
}
|
|
2151
|
-
function
|
|
2092
|
+
function xr(e) {
|
|
2152
2093
|
return new y(function(t) {
|
|
2153
2094
|
var n = function(u) {
|
|
2154
2095
|
return t.next(u);
|
|
@@ -2170,64 +2111,51 @@ function Ir(e) {
|
|
|
2170
2111
|
}), function() {
|
|
2171
2112
|
o();
|
|
2172
2113
|
};
|
|
2173
|
-
}).pipe(
|
|
2114
|
+
}).pipe(
|
|
2115
|
+
// since we're emitting first the current snapshot and then progression
|
|
2116
|
+
// it's possible that we could double fire synchronously; namely when in
|
|
2117
|
+
// a terminal state (success, error, canceled). Debounce to address.
|
|
2118
|
+
Mn(0)
|
|
2119
|
+
);
|
|
2174
2120
|
}
|
|
2175
|
-
function
|
|
2176
|
-
return O(
|
|
2121
|
+
function Ir(e) {
|
|
2122
|
+
return O(Wt(e));
|
|
2177
2123
|
}
|
|
2178
|
-
function
|
|
2179
|
-
const r = `storage:task:${t.toString()}`, i =
|
|
2124
|
+
function ai(e, t, n) {
|
|
2125
|
+
const r = `storage:task:${t.toString()}`, i = xr(e);
|
|
2180
2126
|
return g(r, i, n);
|
|
2181
2127
|
}
|
|
2182
|
-
function
|
|
2183
|
-
const n = `storage:downloadUrl:${e.toString()}`, r =
|
|
2128
|
+
function Or(e, t) {
|
|
2129
|
+
const n = `storage:downloadUrl:${e.toString()}`, r = Ir(e);
|
|
2184
2130
|
return g(n, r, t);
|
|
2185
2131
|
}
|
|
2186
|
-
function
|
|
2187
|
-
const t =
|
|
2188
|
-
return e = Object.assign(Object.assign({}, e), {
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
}
|
|
2192
|
-
|
|
2193
|
-
let {
|
|
2194
|
-
storage: t,
|
|
2195
|
-
storagePath: n,
|
|
2196
|
-
suspense: r,
|
|
2197
|
-
placeHolder: i
|
|
2198
|
-
} = e, o = Zt(e, ["storage", "storagePath", "suspense", "placeHolder"]);
|
|
2199
|
-
const u = {
|
|
2200
|
-
suspense: re(r)
|
|
2132
|
+
function kr(e) {
|
|
2133
|
+
const t = Fr();
|
|
2134
|
+
return e = Object.assign(Object.assign({}, e), { storage: t }), f.createElement(It, Object.assign({}, e));
|
|
2135
|
+
}
|
|
2136
|
+
function It(e) {
|
|
2137
|
+
const { storage: t, storagePath: n, suspense: r, placeHolder: i } = e, o = zt(e, ["storage", "storagePath", "suspense", "placeHolder"]), u = {
|
|
2138
|
+
suspense: ne(r)
|
|
2201
2139
|
};
|
|
2202
2140
|
if (!t)
|
|
2203
2141
|
throw new Error("Storage was not passed to component INTERNALStorageImage. This should not be possible");
|
|
2204
|
-
const {
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
}
|
|
2213
|
-
function li(e) {
|
|
2214
|
-
let {
|
|
2215
|
-
storage: t
|
|
2216
|
-
} = e;
|
|
2217
|
-
return t ? f.createElement(Ot, Object.assign({}, e)) : f.createElement(Ar, Object.assign({}, e));
|
|
2218
|
-
}
|
|
2219
|
-
const Fe = f.createContext(void 0), Pe = f.createContext(void 0), $e = f.createContext(void 0), Te = f.createContext(void 0), De = f.createContext(void 0), Re = f.createContext(void 0), je = f.createContext(void 0), Ue = f.createContext(void 0), Ve = f.createContext(void 0);
|
|
2142
|
+
const { status: s, data: a } = Or(qt(t, n), u);
|
|
2143
|
+
return s === "success" ? (o.alt || o.alt === "" || console.warn(`No alt prop provided for StorageImage with storagePath "${n}"`, "img elements must have an alt prop, either with meaningful text, or an empty string for decorative images"), f.createElement("img", Object.assign({ src: a, alt: o.alt }, o))) : i ?? f.createElement(f.Fragment, null, "''");
|
|
2144
|
+
}
|
|
2145
|
+
function ci(e) {
|
|
2146
|
+
const { storage: t } = e;
|
|
2147
|
+
return t ? f.createElement(It, Object.assign({}, e)) : f.createElement(kr, Object.assign({}, e));
|
|
2148
|
+
}
|
|
2149
|
+
const ke = f.createContext(void 0), Ae = f.createContext(void 0), Fe = f.createContext(void 0), Pe = f.createContext(void 0), $e = f.createContext(void 0), Te = f.createContext(void 0), De = f.createContext(void 0), Re = f.createContext(void 0), je = f.createContext(void 0);
|
|
2220
2150
|
function k(e) {
|
|
2221
2151
|
return function(n) {
|
|
2222
2152
|
var r, i;
|
|
2223
2153
|
if (!n.sdk)
|
|
2224
2154
|
throw new Error("no sdk provided");
|
|
2225
|
-
const o =
|
|
2155
|
+
const o = bt().name;
|
|
2226
2156
|
if (((i = (r = n == null ? void 0 : n.sdk) === null || r === void 0 ? void 0 : r.app) === null || i === void 0 ? void 0 : i.name) !== o)
|
|
2227
2157
|
throw new Error("sdk was initialized with a different firebase app");
|
|
2228
|
-
return f.createElement(e.Provider, Object.assign({
|
|
2229
|
-
value: n.sdk
|
|
2230
|
-
}, n));
|
|
2158
|
+
return f.createElement(e.Provider, Object.assign({ value: n.sdk }, n));
|
|
2231
2159
|
};
|
|
2232
2160
|
}
|
|
2233
2161
|
function A(e) {
|
|
@@ -2237,103 +2165,103 @@ function A(e) {
|
|
|
2237
2165
|
return t;
|
|
2238
2166
|
}
|
|
2239
2167
|
function F(e, t, n, r) {
|
|
2240
|
-
const i =
|
|
2168
|
+
const i = bt();
|
|
2241
2169
|
if (f.useContext(t))
|
|
2242
2170
|
throw new Error(`Cannot initialize SDK ${e} because it already exists in Context`);
|
|
2243
2171
|
const o = f.useMemo(() => n(i), [i]);
|
|
2244
2172
|
return g(`firebase-sdk:${e}:${i.name}`, O(o), r);
|
|
2245
2173
|
}
|
|
2246
|
-
const fi = k(
|
|
2247
|
-
class
|
|
2174
|
+
const li = k(ke), fi = k(Ae), di = k(Fe), vi = k(Pe), hi = k($e), pi = k(Te), mi = k(Re), bi = k(De), yi = k(je), gi = () => A(ke), Ot = () => A(Ae), wi = () => A(Fe), _i = () => A(Pe), Si = () => A($e), Ar = () => A(Te), Ci = () => A(Re), Fr = () => A(De), Pr = () => A(je), Ei = (e, t) => F("appcheck", ke, e, t), xi = (e, t) => F("auth", Ae, e, t), Ii = (e, t) => F("analytics", Fe, e, t), Oi = (e, t) => F("database", Pe, e, t), ki = (e, t) => F("firestore", $e, e, t), Ai = (e, t) => F("functions", Te, e, t), Fi = (e, t) => F("performance", Re, e, t), Pi = (e, t) => F("remoteconfig", je, e, t), $i = (e, t) => F("storage", De, e, t);
|
|
2175
|
+
class Ue extends Error {
|
|
2248
2176
|
constructor(t, n, r) {
|
|
2249
|
-
super(n), this.code = t, this.customData = r, this.name = "ReactFireError", Object.setPrototypeOf(this,
|
|
2177
|
+
super(n), this.code = t, this.customData = r, this.name = "ReactFireError", Object.setPrototypeOf(this, Ue.prototype);
|
|
2250
2178
|
}
|
|
2251
2179
|
}
|
|
2252
|
-
function
|
|
2180
|
+
function kt(e, t) {
|
|
2253
2181
|
if (t === "idField" || t === "initialData" || t === "suspense")
|
|
2254
2182
|
return e ? e[t] : void 0;
|
|
2255
2183
|
throw new Error(`Field "${t}" is not a valid key in ReactFireOptions`);
|
|
2256
2184
|
}
|
|
2257
|
-
function
|
|
2258
|
-
return
|
|
2185
|
+
function Ti(e) {
|
|
2186
|
+
return kt(e, "initialData");
|
|
2259
2187
|
}
|
|
2260
2188
|
function K(e) {
|
|
2261
|
-
return
|
|
2189
|
+
return kt(e, "idField");
|
|
2262
2190
|
}
|
|
2263
2191
|
export {
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2192
|
+
di as AnalyticsProvider,
|
|
2193
|
+
Fe as AnalyticsSdkContext,
|
|
2194
|
+
li as AppCheckProvider,
|
|
2195
|
+
ke as AppCheckSdkContext,
|
|
2196
|
+
qr as AuthCheck,
|
|
2197
|
+
fi as AuthProvider,
|
|
2198
|
+
Ae as AuthSdkContext,
|
|
2199
|
+
ir as ClaimsCheck,
|
|
2200
|
+
vi as DatabaseProvider,
|
|
2201
|
+
Pe as DatabaseSdkContext,
|
|
2202
|
+
Mr as FirebaseAppProvider,
|
|
2203
|
+
hi as FirestoreProvider,
|
|
2204
|
+
$e as FirestoreSdkContext,
|
|
2205
|
+
pi as FunctionsProvider,
|
|
2206
|
+
Te as FunctionsSdkContext,
|
|
2207
|
+
mi as PerformanceProvider,
|
|
2208
|
+
Re as PerformanceSdkContext,
|
|
2209
|
+
Ue as ReactFireError,
|
|
2210
|
+
yi as RemoteConfigProvider,
|
|
2211
|
+
je as RemoteConfigSdkContext,
|
|
2212
|
+
ci as StorageImage,
|
|
2213
|
+
bi as StorageProvider,
|
|
2214
|
+
De as StorageSdkContext,
|
|
2215
|
+
ni as SuspenseWithPerf,
|
|
2288
2216
|
K as checkIdField,
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2217
|
+
kt as checkOptions,
|
|
2218
|
+
Ti as checkinitialData,
|
|
2219
|
+
Gr as preloadFirestoreDoc,
|
|
2220
|
+
Oe as preloadObservable,
|
|
2221
|
+
Nr as preloadUser,
|
|
2222
|
+
wi as useAnalytics,
|
|
2223
|
+
gi as useAppCheck,
|
|
2224
|
+
Ot as useAuth,
|
|
2225
|
+
ti as useCallableFunctionResponse,
|
|
2226
|
+
_i as useDatabase,
|
|
2227
|
+
Hr as useDatabaseList,
|
|
2228
|
+
Yr as useDatabaseListData,
|
|
2229
|
+
Qr as useDatabaseObject,
|
|
2230
|
+
Kr as useDatabaseObjectData,
|
|
2231
|
+
bt as useFirebaseApp,
|
|
2232
|
+
Si as useFirestore,
|
|
2233
|
+
Xr as useFirestoreCollection,
|
|
2234
|
+
ei as useFirestoreCollectionData,
|
|
2235
|
+
Jr as useFirestoreDoc,
|
|
2236
|
+
Zr as useFirestoreDocData,
|
|
2237
|
+
Br as useFirestoreDocDataOnce,
|
|
2238
|
+
zr as useFirestoreDocOnce,
|
|
2239
|
+
Ar as useFunctions,
|
|
2240
|
+
nr as useIdTokenResult,
|
|
2241
|
+
Ii as useInitAnalytics,
|
|
2242
|
+
Ei as useInitAppCheck,
|
|
2243
|
+
xi as useInitAuth,
|
|
2244
|
+
Oi as useInitDatabase,
|
|
2245
|
+
ki as useInitFirestore,
|
|
2246
|
+
Ai as useInitFunctions,
|
|
2247
|
+
Fi as useInitPerformance,
|
|
2248
|
+
Pi as useInitRemoteConfig,
|
|
2249
|
+
$i as useInitStorage,
|
|
2250
|
+
Lr as useIsSuspenseEnabled,
|
|
2323
2251
|
g as useObservable,
|
|
2324
|
-
|
|
2325
|
-
|
|
2252
|
+
Ci as usePerformance,
|
|
2253
|
+
Pr as useRemoteConfig,
|
|
2326
2254
|
si as useRemoteConfigAll,
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2255
|
+
ui as useRemoteConfigBoolean,
|
|
2256
|
+
oi as useRemoteConfigNumber,
|
|
2257
|
+
ii as useRemoteConfigString,
|
|
2258
|
+
ri as useRemoteConfigValue,
|
|
2259
|
+
Wr as useSigninCheck,
|
|
2260
|
+
Fr as useStorage,
|
|
2261
|
+
Or as useStorageDownloadURL,
|
|
2262
|
+
ai as useStorageTask,
|
|
2263
|
+
ne as useSuspenseEnabledFromConfigAndContext,
|
|
2264
|
+
tr as useUser,
|
|
2265
|
+
Xn as version
|
|
2338
2266
|
};
|
|
2339
2267
|
//# sourceMappingURL=index.js.map
|