PageSourceSearch

https://static1.codehs.com/lib/firebase/firebase-app.min.js

js codehs.com collected 2026-09-24 08:46:09 UTC 46,270 bytes, 1,059 lines download raw bytes

1!(function(e, t) {
2    'object' == typeof exports && 'undefined' != typeof module
3        ? (module.exports = t())
4        : 'function' == typeof define && define.amd
5        ? define(t)
6        : ((e = 'undefined' != typeof globalThis ? globalThis : e || self).firebase = t());
7})(this, function() {
8    'use strict';
9    var r = function(e, t) {
10            return (r =
11                Object.setPrototypeOf ||
12                ({__proto__: []} instanceof Array &&
13                    function(e, t) {
14                        e.__proto__ = t;
15                    }) ||
16                function(e, t) {
17                    for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
18                })(e, t);
19        },
20        o = function() {
21            return (o =
22                Object.assign ||
23                function(e) {
24                    for (var t, n = 1, r = arguments.length; n < r; n++)
25                        for (var i in (t = arguments[n]))
26                            Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
27                    return e;
28                }).apply(this, arguments);
29        };
30    function p(e, t) {
31        var n = 'function' == typeof Symbol && e[Symbol.iterator];
32        if (!n) return e;
33        var r,
34            i,
35            o = n.call(e),
36            a = [];
37        try {
38            for (; (void 0 === t || 0 < t--) && !(r = o.next()).done; ) a.push(r.value);
39        } catch (e) {
40            i = {error: e};
41        } finally {
42            try {
43                r && !r.done && (n = o.return) && n.call(o);
44            } finally {
45                if (i) throw i.error;
46            }
47        }
48        return a;
49    }
50    function l(e, t) {
51        for (var n = 0, r = t.length, i = e.length; n < r; n++, i++) e[i] = t[n];
52        return e;
53    }
54    function u(e, t) {
55        if (!(t instanceof Object)) return t;
56        switch (t.constructor) {
57            case Date:
58                return new Date(t.getTime());
59            case Object:
60                void 0 === e && (e = {});
61                break;
62            case Array:
63                e = [];
64                break;
65            default:
66                return t;
67        }
68        for (var n in t) t.hasOwnProperty(n) && '__proto__' !== n && (e[n] = u(e[n], t[n]));
69        return e;
70    }
71    var i =
72        ((e.prototype.wrapCallback = function(n) {
73            var r = this;
74            return function(e, t) {
75                e ? r.reject(e) : r.resolve(t),
76                    'function' == typeof n &&
77                        (r.promise.catch(function() {}), 1 === n.length ? n(e) : n(e, t));
78            };
79        }),
80        e);
81    function e() {
82        var n = this;
83        (this.reject = function() {}),
84            (this.resolve = function() {}),
85            (this.promise = new Promise(function(e, t) {
86                (n.resolve = e), (n.reject = t);
87            }));
88    }
89    var a,
90        s = 'FirebaseError',
91        c =
92            ((function(e, t) {
93                if ('function' != typeof t && null !== t)
94                    throw new TypeError(
95                        'Class extends value ' + String(t) + ' is not a constructor or null'
96                    );
97                function n() {
98                    this.constructor = e;
99                }
100                r(e, t),
101                    (e.prototype =
102                        null === t ? Object.create(t) : ((n.prototype = t.prototype), new n()));
103            })(f, (a = Error)),
104            f);
105    function f(e, t, n) {
106        return (
107            ((t = a.call(this, t) || this).code = e),
108            (t.customData = n),
109            (t.name = s),
110            Object.setPrototypeOf(t, f.prototype),
111            Error.captureStackTrace && Error.captureStackTrace(t, h.prototype.create),
112            t
113        );
114    }
115    var h =
116        ((t.prototype.create = function(e) {
117            for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
118            var r,
119                i = t[0] || {},
120                o = this.service + '/' + e,
121                e = (e = this.errors[e])
122                    ? ((r = i),
123                      e.replace(d, function(e, t) {
124                          var n = r[t];
125                          return null != n ? String(n) : '<' + t + '?>';
126                      }))
127                    : 'Error',
128                e = this.serviceName + ': ' + e + ' (' + o + ').';
129            return new c(o, e, i);
130        }),
131        t);
132    function t(e, t, n) {
133        (this.service = e), (this.serviceName = t), (this.errors = n);
134    }
135    var d = /\{\$([^}]+)}/g;
136    function v(e, t) {
137        return Object.prototype.hasOwnProperty.call(e, t);
138    }
139    function n(e, t) {
140        return (t = new m(e, t)).subscribe.bind(t);
141    }
142    var m =
143        ((y.prototype.next = function(t) {
144            this.forEachObserver(function(e) {
145                e.next(t);
146            });
147        }),
148        (y.prototype.error = function(t) {
149            this.forEachObserver(function(e) {
150                e.error(t);
151            }),
152                this.close(t);
153        }),
154        (y.prototype.complete = function() {
155            this.forEachObserver(function(e) {
156                e.complete();
157            }),
158                this.close();
159        }),
160        (y.prototype.subscribe = function(e, t, n) {
161            var r,
162                i = this;
163            if (void 0 === e && void 0 === t && void 0 === n) throw new Error('Missing Observer.');
164            return (
165                void 0 ===
166                    (r = (function(e) {
167                        if ('object' == typeof e && null !== e)
168                            for (var t = 0, n = ['next', 'error', 'complete']; t < n.length; t++) {
169                                var r = n[t];
170                                if (r in e && 'function' == typeof e[r]) return 1;
171                            }
172                    })(e)
173                        ? e
174                        : {next: e, error: t, complete: n}).next && (r.next = g),
175                void 0 === r.error && (r.error = g),
176                void 0 === r.complete && (r.complete = g),
177                (n = this.unsubscribeOne.bind(this, this.observers.length)),
178                this.finalized &&
179                    this.task.then(function() {
180                        try {
181                            i.finalError ? r.error(i.finalError) : r.complete();
182                        } catch (e) {}
183                    }),
184                this.observers.push(r),
185                n
186            );
187        }),
188        (y.prototype.unsubscribeOne = function(e) {
189            void 0 !== this.observers &&
190                void 0 !== this.observers[e] &&
191                (delete this.observers[e],
192                --this.observerCount,
193                0 === this.observerCount &&
194                    void 0 !== this.onNoObservers &&
195                    this.onNoObservers(this));
196        }),
197        (y.prototype.forEachObserver = function(e) {
198            if (!this.finalized) for (var t = 0; t < this.observers.length; t++) this.sendOne(t, e);
199        }),
200        (y.prototype.sendOne = function(e, t) {
201            var n = this;
202            this.task.then(function() {
203                if (void 0 !== n.observers && void 0 !== n.observers[e])
204                    try {
205                        t(n.observers[e]);
206                    } catch (e) {
207                        'undefined' != typeof console && console.error && console.error(e);
208                    }
209            });
210        }),
211        (y.prototype.close = function(e) {
212            var t = this;
213            this.finalized ||
214                ((this.finalized = !0),
215                void 0 !== e && (this.finalError = e),
216                this.task.then(function() {
217                    (t.observers = void 0), (t.onNoObservers = void 0);
218                }));
219        }),
220        y);
221    function y(e, t) {
222        var n = this;
223        (this.observers = []),
224            (this.unsubscribes = []),
225            (this.observerCount = 0),
226            (this.task = Promise.resolve()),
227            (this.finalized = !1),
228            (this.onNoObservers = t),
229            this.task
230                .then(function() {
231                    e(n);
232                })
233                .catch(function(e) {
234                    n.error(e);
235                });
236    }
237    function g() {}
238    var b =
239        ((w.prototype.setInstantiationMode = function(e) {
240            return (this.instantiationMode = e), this;
241        }),
242        (w.prototype.setMultipleInstances = function(e) {
243            return (this.multipleInstances = e), this;
244        }),
245        (w.prototype.setServiceProps = function(e) {
246            return (this.serviceProps = e), this;
247        }),
248        w);
249    function w(e, t, n) {
250        (this.name = e),
251            (this.instanceFactory = t),
252            (this.type = n),
253            (this.multipleInstances = !1),
254            (this.serviceProps = {}),
255            (this.instantiationMode = 'LAZY');
256    }
257    var E = '[DEFAULT]',
258        O =
259            ((I.prototype.get = function(e) {
260                void 0 === e && (e = E);
261                var t = this.normalizeInstanceIdentifier(e);
262                if (!this.instancesDeferred.has(t)) {
263                    var n = new i();
264                    this.instancesDeferred.set(t, n);
265                    try {
266                        var r = this.getOrInitializeService({instanceIdentifier: t});
267                        r && n.resolve(r);
268                    } catch (e) {}
269                }
270                return this.instancesDeferred.get(t).promise;
271            }),
272            (I.prototype.getImmediate = function(e) {
273                var t = o({identifier: E, optional: !1}, e),
274                    e = t.identifier,
275                    n = t.optional,
276                    r = this.normalizeInstanceIdentifier(e);
277                try {
278                    var i = this.getOrInitializeService({instanceIdentifier: r});
279                    if (i) return i;
280                    if (n) return null;
281                    throw Error('Service ' + this.name + ' is not available');
282                } catch (e) {
283                    if (n) return null;
284                    throw e;
285                }
286            }),
287            (I.prototype.getComponent = function() {
288                return this.component;
289            }),
290            (I.prototype.setComponent = function(e) {
291                var t, n;
292                if (e.name !== this.name)
293                    throw Error(
294                        'Mismatching Component ' + e.name + ' for Provider ' + this.name + '.'
295                    );
296                if (this.component)
297                    throw Error('Component for ' + this.name + ' has already been provided');
298                if ('EAGER' === (this.component = e).instantiationMode)
299                    try {
300                        this.getOrInitializeService({instanceIdentifier: E});
301                    } catch (e) {}
302                try {
303                    for (
304                        var r = (function(e) {
305                                var t = 'function' == typeof Symbol && Symbol.iterator,
306                                    n = t && e[t],
307                                    r = 0;
308                                if (n) return n.call(e);
309                                if (e && 'number' == typeof e.length)
310                                    return {
311                                        next: function() {
312                                            return {
313                                                value:
314                                                    (e = e && r >= e.length ? void 0 : e) && e[r++],
315                                                done: !e,
316                                            };
317                                        },
318                                    };
319                                throw new TypeError(
320                                    t
321                                        ? 'Object is not iterable.'
322                                        : 'Symbol.iterator is not defined.'
323                                );
324                            })(this.instancesDeferred.entries()),
325                            i = r.next();
326                        !i.done;
327                        i = r.next()
328                    ) {
329                        var o = p(i.value, 2),
330                            a = o[0],
331                            s = o[1],
332                            c = this.normalizeInstanceIdentifier(a);
333                        try {
334                            var l = this.getOrInitializeService({instanceIdentifier: c});
335                            s.resolve(l);
336                        } catch (e) {}
337                    }
338                } catch (e) {
339                    t = {error: e};
340                } finally {
341                    try {
342                        i && !i.done && (n = r.return) && n.call(r);
343                    } finally {
344                        if (t) throw t.error;
345                    }
346                }
347            }),
348            (I.prototype.clearInstance = function(e) {
349                void 0 === e && (e = E), this.instancesDeferred.delete(e), this.instances.delete(e);
350            }),
351            (I.prototype.delete = function() {
352                return (
353                    (e = this),
354                    (c = function() {
355                        var t, n, r, i, o, a, s, e;
356                        return (
357                            (n = this),
358                            (r = function(e) {
359                                switch (e.label) {
360                                    case 0:
361                                        return (
362                                            (t = Array.from(this.instances.values())
362),
363                                            [
364                                                4,
365                                                Promise.all(
366                                                    l(
367                                                        l(
368                                                            [],
369                                                            p(
370                                                                t
371                                                                    .filter(function(e) {
372                                                                        return 'INTERNAL' in e;
373                                                                    })
374                                                                    .map(function(e) {
375                                                                        return e.INTERNAL.delete();
376                                                                    })
377                                                            )
378                                                        ),
379                                                        p(
380                                                            t
381                                                                .filter(function(e) {
382                                                                    return '_delete' in e;
383                                                                })
384                                                                .map(function(e) {
385                                                                    return e._delete();
386                                                                })
387                                                        )
388                                                    )
389                                                ),
390                                            ]
391                                        );
392                                    case 1:
393                                        return e.sent(), [2];
394                                }
395                            }),
396                            (s = {
397                                label: 0,
398                                sent: function() {
399                                    if (1 & a[0]) throw a[1];
400                                    return a[1];
401                                },
402                                trys: [],
403                                ops: [],
404                            }),
405                            (e = {next: c(0), throw: c(1), return: c(2)}),
406                            'function' == typeof Symbol &&
407                                (e[Symbol.iterator] = function() {
408                                    return this;
409                                }),
410                            e
411                        );
412                        function c(t) {
413                            return function(e) {
414                                return (function(t) {
415                                    if (i) throw new TypeError('Generator is already executing.');
416                                    for (; s; )
417                                        try {
418                                            if (
419                                                ((i = 1),
420                                                o &&
421                                                    (a =
422                                                        2 & t[0]
423                                                            ? o.return
424                                                            : t[0]
425                                                            ? o.throw ||
426                                                              ((a = o.return) && a.call(o), 0)
427                                                            : o.next) &&
428                                                    !(a = a.call(o, t[1])).done)
429                                            )
430                                                return a;
431                                            switch (
432                                                ((o = 0), (t = a ? [2 & t[0], a.value] : t)[0])
433                                            ) {
434                                                case 0:
435                                                case 1:
436                                                    a = t;
437                                                    break;
438                                                case 4:
439                                                    return s.label++, {value: t[1], done: !1};
440                                                case 5:
441                                                    s.label++, (o = t[1]), (t = [0]);
442                                                    continue;
443                                                case 7:
444                                                    (t = s.ops.pop()), s.trys.pop();
445                                                    continue;
446                                                default:
447                                                    if (
448                                                        !(a =
449                                                            0 < (a = s.trys).length &&
450                                                            a[a.length - 1]) &&
451                                                        (6 === t[0] || 2 === t[0])
452                                                    ) {
453                                                        s = 0;
454                                                        continue;
455                                                    }
456                                                    if (
457                                                        3 === t[0] &&
458                                                        (!a || (t[1] > a[0] && t[1] < a[3]))
459                                                    ) {
460                                                        s.label = t[1];
461                                                        break;
462                                                    }
463                                                    if (6 === t[0] && s.label < a[1]) {
464                                                        (s.label = a[1]), (a = t);
465                                                        break;
466                                                    }
467                                                    if (a && s.label < a[2]) {
468                                                        (s.label = a[2]), s.ops.push(t);
469                                                        break;
470                                                    }
471                                                    a[2] && s.ops.pop(), s.trys.pop();
472                                                    continue;
473                                            }
474                                            t = r.call(n, s);
475                                        } catch (e) {
476                                            (t = [6, e]), (o = 0);
477                                        } finally {
478                                            i = a = 0;
479                                        }
480                                    if (5 & t[0]) throw t[1];
481                                    return {value: t[0] ? t[1] : void 0, done: !0};
482                                })([t, e]);
483                            };
484                        }
485                    }),
486                    new (s = (s = a = void 0) || Promise)(function(n, t) {
487                        function r(e) {
488                            try {
489                                o(c.next(e));
490                            } catch (e) {
491                                t(e);
492                            }
493                        }
494                        function i(e) {
495                            try {
496                                o(c.throw(e));
497                            } catch (e) {
498                                t(e);
499                            }
500                        }
501                        function o(e) {
502                            var t;
503                            e.done
504                                ? n(e.value)
505                                : ((t = e.value) instanceof s
506                                      ? t
507                                      : new s(function(e) {
508                                            e(t);
509                                        })
510                                  ).then(r, i);
511                        }
512                        o((c = c.apply(e, a || [])).next());
513                    })
514                );
515                var e, a, s, c;
516            }),
517            (I.prototype.isComponentSet = function() {
518                return null != this.component;
519            }),
520            (I.prototype.isInitialized = function(e) {
521                return void 0 === e && (e = E), this.instances.has(e);
522            }),
523            (I.prototype.initialize = function(e) {
524                var t = void 0 === (t = (e = void 0 === e ? {} : e).instanceIdentifier) ? E : t,
525                    e = void 0 === (e = e.options) ? {}
525 : e,
526                    t = this.normalizeInstanceIdentifier(t);
527                if (this.isInitialized(t))
528                    throw Error(this.name + '(' + t + ') has already been initialized');
529                if (!this.isComponentSet())
530                    throw Error('Component ' + this.name + ' has not been registered yet');
531                return this.getOrInitializeService({instanceIdentifier: t, options: e});
532            }),
533            (I.prototype.getOrInitializeService = function(e) {
534                var t = e.instanceIdentifier,
535                    n = e.options,
536                    r = void 0 === n ? {} : n;
537                return (
538                    !(e = this.instances.get(t)) &&
539                        this.component &&
540                        ((e = this.component.instanceFactory(this.container, {
541                            instanceIdentifier: (n = t) === E ? void 0 : n,
542                            options: r,
543                        })),
544                        this.instances.set(t, e)),
545                    e || null
546                );
547            }),
548            (I.prototype.normalizeInstanceIdentifier = function(e) {
549                return !this.component || this.component.multipleInstances ? e : E;
550            }),
551            I);
552    function I(e, t) {
553        (this.name = e),
554            (this.container = t),
555            (this.component = null),
556            (this.instances = new Map()),
557            (this.instancesDeferred = new Map());
558    }
559    var _ =
560        ((N.prototype.addComponent = function(e) {
561            var t = this.getProvider(e.name);
562            if (t.isComponentSet())
563                throw new Error(
564                    'Component ' + e.name + ' has already been registered with ' + this.name
565                );
566            t.setComponent(e);
567        }),
568        (N.prototype.addOrOverwriteComponent = function(e) {
569            this.getProvider(e.name).isComponentSet() && this.providers.delete(e.name),
570                this.addComponent(e);
571        }),
572        (N.prototype.getProvider = function(e) {
573            if (this.providers.has(e)) return this.providers.get(e);
574            var t = new O(e, this);
575            return this.providers.set(e, t), t;
576        }),
577        (N.prototype.getProviders = function() {
578            return Array.from(this.providers.values());
579        }),
580        N);
581    function N(e) {
582        (this.name = e), (this.providers = new Map());
583    }
584    var L,
585        S = [];
586    function R(e, t) {
587        for (var n = [], r = 2; r < arguments.length; r++) n[r - 2] = arguments[r];
588        if (!(t < e.logLevel)) {
589            var i = new Date().toISOString(),
590                o = A[t];
591            if (!o)
592                throw new Error(
593                    'Attempted to log a message with an invalid logType (value: ' + t + ')'
594                );
595            console[o].apply(console, l(['[' + i + ']  ' + e.name + ':'], n));
596        }
597    }
598    ((j = L = L || {})[(j.DEBUG = 0)] = 'DEBUG'),
599        (j[(j.VERBOSE = 1)] = 'VERBOSE'),
600        (j[(j.INFO = 2)] = 'INFO'),
601        (j[(j.WARN = 3)] = 'WARN'),
602        (j[(j.ERROR = 4)] = 'ERROR'),
603        (j[(j.SILENT = 5)] = 'SILENT');
604    var C = {
605            debug: L.DEBUG,
606            verbose: L.VERBOSE,
607            info: L.INFO,
608            warn: L.WARN,
609            error: L.ERROR,
610            silent: L.SILENT,
611        },
612        P = L.INFO,
613        A =
614            (((k = {})[L.DEBUG] = 'log'),
615            (k[L.VERBOSE] = 'log'),
616            (k[L.INFO] = 'info'),
617            (k[L.WARN] = 'warn'),
618            (k[L.ERROR] = 'error'),
619            k),
620        j =
621            (Object.defineProperty(D.prototype, 'logLevel', {
622                get: function() {
623                    return this._logLevel;
624                },
625                set: function(e) {
626                    if (!(e in L))
627                        throw new TypeError('Invalid value "' + e + '" assigned to `logLevel`');
628                    this._logLevel = e;
629                },
630                enumerable: !1,
631                configurable: !0,
632            }),
633            (D.prototype.setLogLevel = function(e) {
634                this._logLevel = 'string' == typeof e ? C[e] : e;
635            }),
636            Object.defineProperty(D.prototype, 'logHandler', {
637                get: function() {
638                    return this._logHandler;
639                },
640                set: function(e) {
641                    if ('function' != typeof e)
642                        throw new TypeError('Value assigned to `logHandler` must be a function');
643                    this._logHandler = e;
644                },
645                enumerable: !1,
646                configurable: !0,
647            }),
648            Object.defineProperty(D.prototype, 'userLogHandler', {
649                get: function() {
650                    return this._userLogHandler;
651                },
652                set: function(e) {
653                    this._userLogHandler = e;
654                },
655                enumerable: !1,
656                configurable: !0,
657            }),
658            (D.prototype.debug = function() {
659                for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
660                this._userLogHandler && this._userLogHandler.apply(this, l([this, L.DEBUG], e)),
661                    this._logHandler.apply(this, l([this, L.DEBUG], e));
662            }),
663            (D.prototype.log = function() {
664                for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
665                this._userLogHandler && this._userLogHandler.apply(this, l([this, L.VERBOSE], e)),
666                    this._logHandler.apply(this, l([this, L.VERBOSE], e));
667            }),
668            (D.prototype.info = function() {
669                for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
670                this._userLogHandler && this._userLogHandler.apply(this, l([this, L.INFO], e)),
671                    this._logHandler.apply(this, l([this, L.INFO], e));
672            }),
673            (D.prototype.warn = function() {
674                for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
675                this._userLogHandler && this._userLogHandler.apply(this, l([this, L.WARN], e)),
676                    this._logHandler.apply(this, l([this, L.WARN], e));
677            }),
678            (D.prototype.error = function() {
679                for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
680                this._userLogHandler && this._userLogHandler.apply(this, l([this, L.ERROR], e)),
681                    this._logHandler.apply(this, l([this, L.ERROR], e));
682            }),
683            D);
684    function D(e) {
685        (this.name = e),
686            (this._logLevel = P),
687            (this._logHandler = R),
688            (this._userLogHandler = null),
689            S.push(this);
690    }
691    function F(t) {
692        S.forEach(function(e) {
693            e.setLogLevel(t);
694        });
695    }
696    var k =
697            (((k = {})['no-app'] =
698                "No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()"),
699            (k['bad-app-name'] = "Illegal App name: '{$appName}"),
700            (k['duplicate-app'] = "Firebase App named '{$appName}' already exists"),
701            (k['app-deleted'] = "Firebase App named '{$appName}' already deleted"),
702            (k['invalid-app-argument'] =
703                'firebase.{$appName}() takes either no argument or a Firebase App instance.'),
704            (k['invalid-log-argument'] = 'First argument to `onLog` must be null or a function.'),
705            k),
706        T = new h('app', 'Firebase', k),
707        H = '@firebase/app',
708        z = '[DEFAULT]',
709        x =
710            (((k = {})[H] = 'fire-core'),
711            (k['@firebase/analytics'] = 'fire-analytics'),
712            (k['@firebase/auth'] = 'fire-auth'),
713            (k['@firebase/database'] = 'fire-rtdb'),
714            (k['@firebase/functions'] = 'fire-fn'),
715            (k['@firebase/installations'] = 'fire-iid'),
716            (k['@firebase/messaging'] = 'fire-fcm'),
717            (k['@firebase/performance'] = 'fire-perf'),
718            (k['@firebase/remote-config'] = 'fire-rc'),
719            (k['@firebase/storage'] = 'fire-gcs'),
720            (k['@firebase/firestore'] = 'fire-fst'),
721            (k['fire-js'] = 'fire-js'),
722            (k['firebase-wrapper'] = 'fire-js-all'),
723            k),
724        B = new j('@firebase/app'),
725        V =
726            (Object.defineProperty(U.prototype, 'automaticDataCollectionEnabled', {
727                get: function() {
728                    return this.checkDestroyed_(), this.automaticDataCollectionEnabled_;
729                },
730                set: function(e) {
731                    this.checkDestroyed_(), (this.automaticDataCollectionEnabled_ = e);
732                },
733                enumerable: !1,
734                configurable: !0,
735            }),
736            Object.defineProperty(U.prototype, 'name', {
737                get: function() {
738                    return this.checkDestroyed_(), this.name_;
739                },
740                enumerable: !1,
741                configurable: !0,
742            }),
743            Object.defineProperty(U.prototype, 'options', {
744                get: function() {
745                    return this.checkDestroyed_(), this.options_;
746                },
747                enumerable: !1,
748                configurable: !0,
749            }),
750            (U.prototype.delete = function() {
751                var t = this;
752                return new Promise(function(e) {
753                    t.checkDestroyed_(), e();
754                })
755                    .then(function() {
756                        return (
757                            t.firebase_.INTERNAL.removeApp(t.name_),
758                            Promise.all(
759                                t.container.getProviders().map(function(e) {
760                                    return e.delete();
761                                })
762                            )
763                        );
764                    })
765                    .then(function() {
766                        t.isDeleted_ = !0;
767                    });
768            }),
769            (U.prototype._getService = function(e, t) {
770                return (
771                    void 0 === t && (t = z),
772                    this.checkDestroyed_(),
773                    this.container.getProvider(e).getImmediate({identifier: t})
774                );
775            }),
776            (U.prototype._removeServiceInstance = function(e, t) {
777                void 0 === t && (t = z), this.container.getProvider(e).clearInstance(t);
778            }),
779            (U.prototype._addComponent = function(t) {
780                try {
781                    this.container.addComponent(t);
782                } catch (e) {
783                    B.debug(
784                        'Component ' + t.name + ' failed to register with FirebaseApp ' + this.name,
785                        e
786                    );
787                }
788            }),
789            (U.prototype._addOrOverwriteComponent = function(e) {
790                this.container.addOrOverwriteComponent(e);
791            }),
792            (U.prototype.toJSON = function() {
793                return {
794                    name: this.name,
795                    automaticDataCollectionEnabled: this.automaticDataCollectionEnabled,
796                    options: this.options,
797                };
798            }),
799            (U.prototype.checkDestroyed_ = function() {
800                if (this.isDeleted_) throw T.create('app-deleted', {appName: this.name_});
801            }),
802            U);
803    function U(e, t, n) {
804        var r = this;
805        (this.firebase_ = n),
806            (this.isDeleted_ = !1),
807            (this.name_ = t.name),
808            (this.automaticDataCollectionEnabled_ = t.automaticDataCollectionEnabled || !1),
809            (this.options_ = u(void 0, e)),
810            (this.container = new _(t.name)),
811            this._addComponent(
812                new b(
813                    'app',
814                    function() {
815                        return r;
816                    },
817                    'PUBLIC'
818                )
819            ),
820            this.firebase_.INTERNAL.components.forEach(function(e) {
821                return r._addComponent(e);
822            });
823    }
824    (V.prototype.name && V.prototype.options) || V.prototype.delete || console.log('dc');
825    function M(a) {
826        var s = {},
827            c = new Map(),
828            l = {
829                __esModule: !0,
830                initializeApp: function(e, t) {
831                    void 0 === t && (t = {}),
832                        ('object' == typeof t && null !== t) || (t = {name: t});
833                    var n = t;
834                    if ((void 0 === n.name && (n.name = z), 'string' != typeof (t = n.name) || !t))
835                        throw T.create('bad-app-name', {appName: String(t)});
836                    if (v(s, t)) throw T.create('duplicate-app', {appName: t});
837                    return (n = new a(e, n, l)), (s[t] = n);
838                },
839                app: p,
840                registerVersion: function(e, t, n) {
841                    var r = null !== (i = x[e]) && void 0 !== i ? i : e;
842                    n && (r += '-' + n);
843                    var i = r.match(/\s|\//),
844                        e = t.match(/\s|\//);
845                    if (i || e)
846                        return (
847                            (n = [
848                                'Unable to register library "' + r + '" with version "' + t + '":',
849                            ]),
850                            i &&
851                                n.push(
852                                    'library name "' +
853                                        r +
854                                        '" contains illegal characters (whitespace or "/")'
855                                ),
856                            i && e && n.push('and'),
857                            e &&
858                                n.push(
859                                    'version name "' +
860                                        t +
861                                        '" contains illegal characters (whitespace or "/")'
862                                ),
863                            void B.warn(n.join(' '))
864                        );
865                    o(
866                        new b(
867                            r + '-version',
868                            function() {
869                                return {library: r, version: t};
870                            },
871                            'VERSION'
872                        )
873                    );
874                },
875                setLogLevel: F,
876                onLog: function(e, t) {
877                    if (null !== e && 'function' != typeof e)
878                        throw T.create('invalid-log-argument');
879                    !(function(a, t) {
880                        for (var e = 0, n = S; e < n.length; e++)
881                            !(function(e) {
882                                var o = null;
883                                t && t.level && (o = C[t.level]),
884                                    (e.userLogHandler =
885                                        null === a
886                                            ? null
887                                            : function(e, t) {
888                                                  for (var n = [], r = 2; r < arguments.length; r++)
889                                                      n[r - 2] = arguments[r];
890                                                  var i = n
891                                                      .map(function(e) {
892                                                          if (null == e) return null;
893                                                          if ('string' == typeof e) return e;
894                                                          if (
895                                                              'number' == typeof e ||
896                                                              'boolean' == typeof e
897                                                          )
898                                                              return e.toString();
899                                                          if (e instanceof Error) return e.message;
900                                                          try {
901                                                              return JSON.stringify(e);
902                                                          } catch (e) {
903                                                              return null;
904                                                          }
905                                                      })
906                                                      .filter(function(e) {
907                                                          return e;
908                                                      })
909                                                      .join(' ');
910                                                  t >= (null != o ? o : e.logLevel) &&
911                                                      a({
912                                                          level: L[t].toLowerCase(),
913                                                          message: i,
914                                                          args: n,
915                                                          type: e.name,
916                                                      });
917                                              });
918                            })(n[e]);
919                    })(e, t);
920                },
921                apps: null,
922                SDK_VERSION: '8.3.2',
923                INTERNAL: {
924                    registerComponent: o,
925                    removeApp: function(e) {
926                        delete s[e];
927                    },
928                    components: c,
929                    useAsService: function(e, t) {
930                        return 'serverAuth' === t ? null : t;
931                    },
932                },
933            };
934        function p(e) {
935            if (!v(s, (e = e || z))) throw T.create('no-app', {appName: e});
936            return s[e];
937        }
938        function o(n) {
939            var e,
940                r = n.name;
941            if (c.has(r))
942                return (
943                    B.debug('There were multiple attempts to register component ' + r + '.'),
944                    'PUBLIC' === n.type ? l[r] : null
945                );
946            c.set(r, n),
947                'PUBLIC' === n.type &&
948                    ((e = function(e) {
949                        if ('function' != typeof (e = void 0 === e ? p() : e)[r])
950                            throw T.create('invalid-app-argument', {appName: r});
951                        return e[r]();
952                    }),
953                    void 0 !== n.serviceProps && u(e, n.serviceProps),
954                    (l[r] = e),
955                    (a.prototype[r] = function() {
956                        for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
957                        return this._getService
958                            .bind(this, r)
959                            .apply(this, n.multipleInstances ? e : []);
960                    }));
961            for (var t = 0, i = Object.keys(s); t < i.length; t++) {
962                var o = i[t];
963                s[o]._addComponent(n);
964            }
965            return 'PUBLIC' === n.type ? l[r] : null;
966        }
967        return (
968            (l.default = l),
969            Object.defineProperty(l, 'apps', {
970                get: function() {
971                    return Object.keys(s).map(function(e) {
972                        return s[e];
973                    });
974                },
975            }),
976            (p.App = a),
977            l
978        );
979    }
980    var k = (function e() {
981            var t = M(V);
982            return (
983                (t.INTERNAL = o(o({}, t.INTERNAL), {
984                    createFirebaseNamespace: e,
985                    extendNamespace: function(e) {
986                        u(t, e);
987                    },
988                    createSubscribe: n,
989                    ErrorFactory: h,
990                    deepExtend: u,
991                })),
992                t
993            );
994        })(),
995        W =
996            ((G.prototype.getPlatformInfoString = function() {
997                return this.container
998                    .getProviders()
999                    .map(function(e) {
1000                        return 'VERSION' ===
1001                            (null == (t = (t = e).getComponent()) ? void 0 : t.type)
1002                            ? (e = e.getImmediate()).library + '/' + e.version
1003                            : null;
1004                        var t;
1005                    })
1006                    .filter(function(e) {
1007                        return e;
1008                    })
1009                    .join(' ');
1010            }),
1011            G);
1012    function G(e) {
1013        this.container = e;
1014    }
1015    'object' == typeof self &&
1016        self.self === self &&
1017        void 0 !== self.firebase &&
1018        (B.warn(
1019            '\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  '
1020        ),
1021        (j = self.firebase.SDK_VERSION) &&
1022            0 <= j.indexOf('LITE') &&
1023            B.warn(
1024                '\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    '
1025            ));
1026    var $ = k.initializeApp;
1027    k.initializeApp = function() {
1028        for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
1029        return (
1030            (function() {
1031                try {
1032                    return '[object process]' === Object.prototype.toString.call(global.process);
1033                } catch (e) {
1034                    return;
1035                }
1036            })() &&
1037                B.warn(
1038                    '\n      Warning: This is a browser-targeted Firebase bundle but it appears it is being\n      run in a Node environment.  If running in a Node environment, make sure you\n      are using the bundle specified by the "main" field in package.json.\n      \n      If you are using Webpack, you can specify "main" as the first item in\n      "resolve.mainFields":\n      https://webpack.js.org/configuration/resolve/#resolvemainfields\n      \n      If using Rollup, use the @rollup/plugin-node-resolve plugin and specify "main"\n      as the first item in "mainFields", e.g. [\'main\', \'module\'].\n      https://github.com/rollup/@rollup/plugin-node-resolve\n      '
1039                ),
1040            $.apply(void 0, e)
1041        );
1042    };
1043    j = k;
1044    return (
1045        (k = j).INTERNAL.registerComponent(
1046            new b(
1047                'platform-logger',
1048                function(e) {
1049                    return new W(e);
1050                },
1051                'PRIVATE'
1052            )
1053        ),
1054        k.registerVersion(H, '0.6.18', void 0),
1055        k.registerVersion('fire-js', ''),
1056        j.registerVersion('firebase', '8.3.2', 'app'),
1057        j
1058    );
1059});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.