/*! Built with http://stenciljs.com */
webcomponents.loadBundle("chunk-8d4cd20c.js", ["exports"], function (t) { window.webcomponents.h; var r = function (t, e) { return (r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function (t, r) { t.__proto__ = r; } || function (t, r) { for (var e in r)
    r.hasOwnProperty(e) && (t[e] = r[e]); })(t, e); }; function e(t, e) { function n() { this.constructor = t; } r(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n); } var n, i = { e: {} }; function o() { try {
    return n.apply(this, arguments);
}
catch (t) {
    return i.e = t, i;
} } function s(t) { return n = t, o; } function u(t) { return "function" == typeof t; } var c = !1, h = { Promise: void 0, set useDeprecatedSynchronousErrorHandling(t) { t && (new Error).stack, c = t; }, get useDeprecatedSynchronousErrorHandling() { return c; } }; function a(t) { setTimeout(function () { throw t; }); } var f = { closed: !0, next: function (t) { }, error: function (t) { if (h.useDeprecatedSynchronousErrorHandling)
        throw t; a(t); }, complete: function () { } }, p = Array.isArray || function (t) { return t && "number" == typeof t.length; }; function l(t) { return null != t && "object" == typeof t; } var d = function (t) { function r(e) { var n = t.call(this, e ? e.length + " errors occurred during unsubscription:\n  " + e.map(function (t, r) { return r + 1 + ") " + t.toString(); }).join("\n  ") : "") || this; return n.errors = e, n.name = "UnsubscriptionError", Object.setPrototypeOf(n, r.prototype), n; } return e(r, t), r; }(Error), b = function () { function t(t) { this.closed = !1, this._parent = null, this._parents = null, this._subscriptions = null, t && (this._unsubscribe = t); } var r; return t.prototype.unsubscribe = function () { var t, r = !1; if (!this.closed) {
    var e = this._parent, n = this._parents, o = this._unsubscribe, c = this._subscriptions;
    this.closed = !0, this._parent = null, this._parents = null, this._subscriptions = null;
    for (var h = -1, a = n ? n.length : 0; e;)
        e.remove(this), e = ++h < a && n[h] || null;
    if (u(o) && s(o).call(this) === i && (r = !0, t = t || (i.e instanceof d ? y(i.e.errors) : [i.e])), p(c))
        for (h = -1, a = c.length; ++h < a;) {
            var f = c[h];
            if (l(f) && s(f.unsubscribe).call(f) === i) {
                r = !0, t = t || [];
                var b = i.e;
                b instanceof d ? t = t.concat(y(b.errors)) : t.push(b);
            }
        }
    if (r)
        throw new d(t);
} }, t.prototype.add = function (r) { if (!r || r === t.EMPTY)
    return t.EMPTY; if (r === this)
    return this; var e = r; switch (typeof r) {
    case "function": e = new t(r);
    case "object":
        if (e.closed || "function" != typeof e.unsubscribe)
            return e;
        if (this.closed)
            return e.unsubscribe(), e;
        if ("function" != typeof e._addParent) {
            var n = e;
            (e = new t)._subscriptions = [n];
        }
        break;
    default: throw new Error("unrecognized teardown " + r + " added to Subscription.");
} return (this._subscriptions || (this._subscriptions = [])).push(e), e._addParent(this), e; }, t.prototype.remove = function (t) { var r = this._subscriptions; if (r) {
    var e = r.indexOf(t);
    -1 !== e && r.splice(e, 1);
} }, t.prototype._addParent = function (t) { var r = this._parent, e = this._parents; r && r !== t ? e ? -1 === e.indexOf(t) && e.push(t) : this._parents = [t] : this._parent = t; }, t.EMPTY = ((r = new t).closed = !0, r), t; }(); function y(t) { return t.reduce(function (t, r) { return t.concat(r instanceof d ? r.errors : r); }, []); } var v = "function" == typeof Symbol && "function" == typeof Symbol.for ? Symbol.for("rxSubscriber") : "@@rxSubscriber", _ = function (t) { function r(r, e, n) { var i = t.call(this) || this; switch ((i.syncErrorValue = null, i.syncErrorThrown = !1, i.syncErrorThrowable = !1, i.isStopped = !1, arguments.length)) {
    case 0:
        i.destination = f;
        break;
    case 1:
        if (!r) {
            i.destination = f;
            break;
        }
        if ("object" == typeof r) {
            if (m(r)) {
                var o = r[v]();
                i.syncErrorThrowable = o.syncErrorThrowable, i.destination = o, o.add(i);
            }
            else
                i.syncErrorThrowable = !0, i.destination = new w(i, r);
            break;
        }
    default: i.syncErrorThrowable = !0, i.destination = new w(i, r, e, n);
} return i; } return e(r, t), r.prototype[v] = function () { return this; }, r.create = function (t, e, n) { var i = new r(t, e, n); return i.syncErrorThrowable = !1, i; }, r.prototype.next = function (t) { this.isStopped || this._next(t); }, r.prototype.error = function (t) { this.isStopped || (this.isStopped = !0, this._error(t)); }, r.prototype.complete = function () { this.isStopped || (this.isStopped = !0, this._complete()); }, r.prototype.unsubscribe = function () { this.closed || (this.isStopped = !0, t.prototype.unsubscribe.call(this)); }, r.prototype._next = function (t) { this.destination.next(t); }, r.prototype._error = function (t) { this.destination.error(t), this.unsubscribe(); }, r.prototype._complete = function () { this.destination.complete(), this.unsubscribe(); }, r.prototype._unsubscribeAndRecycle = function () { var t = this._parent, r = this._parents; return this._parent = null, this._parents = null, this.unsubscribe(), this.closed = !1, this.isStopped = !1, this._parent = t, this._parents = r, this; }, r; }(b), w = function (t) { function r(r, e, n, i) { var o, s = t.call(this) || this; s._parentSubscriber = r; var c = s; return u(e) ? o = e : e && (o = e.next, n = e.error, i = e.complete, e !== f && (u((c = Object.create(e)).unsubscribe) && s.add(c.unsubscribe.bind(c)), c.unsubscribe = s.unsubscribe.bind(s))), s._context = c, s._next = o, s._error = n, s._complete = i, s; } return e(r, t), r.prototype.next = function (t) { if (!this.isStopped && this._next) {
    var r = this._parentSubscriber;
    h.useDeprecatedSynchronousErrorHandling && r.syncErrorThrowable ? this.__tryOrSetError(r, this._next, t) && this.unsubscribe() : this.__tryOrUnsub(this._next, t);
} }, r.prototype.error = function (t) { if (!this.isStopped) {
    var r = this._parentSubscriber, e = h.useDeprecatedSynchronousErrorHandling;
    if (this._error)
        e && r.syncErrorThrowable ? (this.__tryOrSetError(r, this._error, t), this.unsubscribe()) : (this.__tryOrUnsub(this._error, t), this.unsubscribe());
    else if (r.syncErrorThrowable)
        e ? (r.syncErrorValue = t, r.syncErrorThrown = !0) : a(t), this.unsubscribe();
    else {
        if (this.unsubscribe(), e)
            throw t;
        a(t);
    }
} }, r.prototype.complete = function () { var t = this; if (!this.isStopped) {
    var r = this._parentSubscriber;
    if (this._complete) {
        var e = function () { return t._complete.call(t._context); };
        h.useDeprecatedSynchronousErrorHandling && r.syncErrorThrowable ? (this.__tryOrSetError(r, e), this.unsubscribe()) : (this.__tryOrUnsub(e), this.unsubscribe());
    }
    else
        this.unsubscribe();
} }, r.prototype.__tryOrUnsub = function (t, r) { try {
    t.call(this._context, r);
}
catch (t) {
    if (this.unsubscribe(), h.useDeprecatedSynchronousErrorHandling)
        throw t;
    a(t);
} }, r.prototype.__tryOrSetError = function (t, r, e) { if (!h.useDeprecatedSynchronousErrorHandling)
    throw new Error("bad call"); try {
    r.call(this._context, e);
}
catch (r) {
    return h.useDeprecatedSynchronousErrorHandling ? (t.syncErrorValue = r, t.syncErrorThrown = !0, !0) : (a(r), !0);
} return !1; }, r.prototype._unsubscribe = function () { var t = this._parentSubscriber; this._context = null, this._parentSubscriber = null, t.unsubscribe(); }, r; }(_); function m(t) { return t instanceof _ || "syncErrorThrowable" in t && t[v]; } var x = function (t) { function r() { return null !== t && t.apply(this, arguments) || this; } return e(r, t), r.prototype.notifyNext = function (t, r, e, n, i) { this.destination.next(r); }, r.prototype.notifyError = function (t, r) { this.destination.error(t); }, r.prototype.notifyComplete = function (t) { this.destination.complete(); }, r; }(_), E = function (t) { function r(r, e, n) { var i = t.call(this) || this; return i.parent = r, i.outerValue = e, i.outerIndex = n, i.index = 0, i; } return e(r, t), r.prototype._next = function (t) { this.parent.notifyNext(this.outerValue, t, this.outerIndex, this.index++, this); }, r.prototype._error = function (t) { this.parent.notifyError(t, this), this.unsubscribe(); }, r.prototype._complete = function () { this.parent.notifyComplete(this), this.unsubscribe(); }, r; }(_), S = "function" == typeof Symbol && Symbol.observable || "@@observable"; function g() { } var T = function () { function t(t) { this._isScalar = !1, t && (this._subscribe = t); } return t.prototype.lift = function (r) { var e = new t; return e.source = this, e.operator = r, e; }, t.prototype.subscribe = function (t, r, e) { var n = this.operator, i = function (t, r, e) { if (t) {
    if (t instanceof _)
        return t;
    if (t[v])
        return t[v]();
} return t || r || e ? new _(t, r, e) : new _(f); }(t, r, e); if (n ? n.call(i, this.source) : i.add(this.source || h.useDeprecatedSynchronousErrorHandling && !i.syncErrorThrowable ? this._subscribe(i) : this._trySubscribe(i)), h.useDeprecatedSynchronousErrorHandling && i.syncErrorThrowable && (i.syncErrorThrowable = !1, i.syncErrorThrown))
    throw i.syncErrorValue; return i; }, t.prototype._trySubscribe = function (t) { try {
    return this._subscribe(t);
}
catch (r) {
    h.useDeprecatedSynchronousErrorHandling && (t.syncErrorThrown = !0, t.syncErrorValue = r), t.error(r);
} }, t.prototype.forEach = function (t, r) { var e = this; return new (r = O(r))(function (r, n) { var i; i = e.subscribe(function (r) { try {
    t(r);
}
catch (t) {
    n(t), i && i.unsubscribe();
} }, n, r); }); }, t.prototype._subscribe = function (t) { var r = this.source; return r && r.subscribe(t); }, t.prototype[S] = function () { return this; }, t.prototype.pipe = function () { for (var t, r = [], e = 0; e < arguments.length; e++)
    r[e] = arguments[e]; return 0 === r.length ? this : ((t = r) ? 1 === t.length ? t[0] : function (r) { return t.reduce(function (t, r) { return r(t); }, r); } : g)(this); }, t.prototype.toPromise = function (t) { var r = this; return new (t = O(t))(function (t, e) { var n; r.subscribe(function (t) { return n = t; }, function (t) { return e(t); }, function () { return t(n); }); }); }, t.create = function (r) { return new t(r); }, t; }(); function O(t) { if (t || (t = h.Promise || Promise), !t)
    throw new Error("no Promise impl found"); return t; } var I = function (t) { return function (r) { for (var e = 0, n = t.length; e < n && !r.closed; e++)
    r.next(t[e]); r.closed || r.complete(); }; }, j = function (t) { return function (r) { return t.then(function (t) { r.closed || (r.next(t), r.complete()); }, function (t) { return r.error(t); }).then(null, a), r; }; }, P = function () { return "function" == typeof Symbol && Symbol.iterator ? Symbol.iterator : "@@iterator"; }(), N = function (t) { return function (r) { for (var e = t[P]();;) {
    var n = e.next();
    if (n.done) {
        r.complete();
        break;
    }
    if (r.next(n.value), r.closed)
        break;
} return "function" == typeof e.return && r.add(function () { e.return && e.return(); }), r; }; }, A = function (t) { return function (r) { var e = t[S](); if ("function" != typeof e.subscribe)
    throw new TypeError("Provided object does not correctly implement Symbol.observable"); return e.subscribe(r); }; }, k = function (t) { return t && "number" == typeof t.length && "function" != typeof t; }; function C(t) { return t && "function" != typeof t.subscribe && "function" == typeof t.then; } var D = function (t) { if (t instanceof T)
    return function (r) { return t._isScalar ? (r.next(t.value), void r.complete()) : t.subscribe(r); }; if (t && "function" == typeof t[S])
    return A(t); if (k(t))
    return I(t); if (C(t))
    return j(t); if (t && "function" == typeof t[P])
    return N(t); var r = l(t) ? "an invalid object" : "'" + t + "'"; throw new TypeError("You provided " + r + " where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."); }; var H = function (t) { function r(r, e) { var n = t.call(this, r, e) || this; return n.scheduler = r, n.work = e, n.pending = !1, n; } return e(r, t), r.prototype.schedule = function (t, r) { if (void 0 === r && (r = 0), this.closed)
    return this; this.state = t; var e = this.id, n = this.scheduler; return null != e && (this.id = this.recycleAsyncId(n, e, r)), this.pending = !0, this.delay = r, this.id = this.id || this.requestAsyncId(n, this.id, r), this; }, r.prototype.requestAsyncId = function (t, r, e) { return void 0 === e && (e = 0), setInterval(t.flush.bind(t, this), e); }, r.prototype.recycleAsyncId = function (t, r, e) { if (void 0 === e && (e = 0), null !== e && this.delay === e && !1 === this.pending)
    return r; clearInterval(r); }, r.prototype.execute = function (t, r) { if (this.closed)
    return new Error("executing a cancelled action"); this.pending = !1; var e = this._execute(t, r); if (e)
    return e; !1 === this.pending && null != this.id && (this.id = this.recycleAsyncId(this.scheduler, this.id, null)); }, r.prototype._execute = function (t, r) { var e = !1, n = void 0; try {
    this.work(t);
}
catch (t) {
    e = !0, n = !!t && t || new Error(t);
} if (e)
    return this.unsubscribe(), n; }, r.prototype._unsubscribe = function () { var t = this.id, r = this.scheduler, e = r.actions, n = e.indexOf(this); this.work = null, this.state = null, this.pending = !1, this.scheduler = null, -1 !== n && e.splice(n, 1), null != t && (this.id = this.recycleAsyncId(r, t, null)), this.delay = null; }, r; }(function (t) { function r(r, e) { return t.call(this) || this; } return e(r, t), r.prototype.schedule = function (t, r) { return void 0 === r && (r = 0), this; }, r; }(b)), Y = function () { function t(r, e) { void 0 === e && (e = t.now), this.SchedulerAction = r, this.now = e; } return t.prototype.schedule = function (t, r, e) { return void 0 === r && (r = 0), new this.SchedulerAction(this, t).schedule(e, r); }, t.now = function () { return Date.now(); }, t; }(), V = new (function (t) { function r(e, n) { void 0 === n && (n = Y.now); var i = t.call(this, e, function () { return r.delegate && r.delegate !== i ? r.delegate.now() : n(); }) || this; return i.actions = [], i.active = !1, i.scheduled = void 0, i; } return e(r, t), r.prototype.schedule = function (e, n, i) { return void 0 === n && (n = 0), r.delegate && r.delegate !== this ? r.delegate.schedule(e, n, i) : t.prototype.schedule.call(this, e, n, i); }, r.prototype.flush = function (t) { var r = this.actions; if (this.active)
    r.push(t);
else {
    var e;
    this.active = !0;
    do {
        if (e = t.execute(t.state, t.delay))
            break;
    } while (t = r.shift());
    if (this.active = !1, e) {
        for (; t = r.shift();)
            t.unsubscribe();
        throw e;
    }
} }, r; }(Y))(H); function M(t) { return t && "function" == typeof t.schedule; } function U(t, r) { return new T(r ? function (e) { var n = new b, i = 0; return n.add(r.schedule(function () { i !== t.length ? (e.next(t[i++]), e.closed || n.add(this.schedule())) : e.complete(); })), n; } : I(t)); } function F(t, r) { if (!r)
    return t instanceof T ? t : new T(D(t)); if (null != t) {
    if (function (t) { return t && "function" == typeof t[S]; }(t))
        return function (t, r) { return new T(r ? function (e) { var n = new b; return n.add(r.schedule(function () { var i = t[S](); n.add(i.subscribe({ next: function (t) { n.add(r.schedule(function () { return e.next(t); })); }, error: function (t) { n.add(r.schedule(function () { return e.error(t); })); }, complete: function () { n.add(r.schedule(function () { return e.complete(); })); } })); })), n; } : A(t)); }(t, r);
    if (C(t))
        return function (t, r) { return new T(r ? function (e) { var n = new b; return n.add(r.schedule(function () { return t.then(function (t) { n.add(r.schedule(function () { e.next(t), n.add(r.schedule(function () { return e.complete(); })); })); }, function (t) { n.add(r.schedule(function () { return e.error(t); })); }); })), n; } : j(t)); }(t, r);
    if (k(t))
        return U(t, r);
    if (function (t) { return t && "function" == typeof t[P]; }(t) || "string" == typeof t)
        return function (t, r) { if (!t)
            throw new Error("Iterable cannot be null"); return new T(r ? function (e) { var n, i = new b; return i.add(function () { n && "function" == typeof n.return && n.return(); }), i.add(r.schedule(function () { n = t[P](), i.add(r.schedule(function () { if (!e.closed) {
            var t, r;
            try {
                var i = n.next();
                t = i.value, r = i.done;
            }
            catch (t) {
                return void e.error(t);
            }
            r ? e.complete() : (e.next(t), this.schedule());
        } })); })), i; } : N(t)); }(t, r);
} throw new TypeError((null !== t && typeof t || t) + " is not observable"); } var q = new T(function (t) { return t.complete(); }); function B(t) { return t ? function (t) { return new T(function (r) { return t.schedule(function () { return r.complete(); }); }); }(t) : q; } function W(t) { var r = new T(function (r) { r.next(t), r.complete(); }); return r._isScalar = !0, r.value = t, r; } function z(t, r) { return function (e) { if ("function" != typeof t)
    throw new TypeError("argument is not a function. Are you looking for `mapTo()`?"); return e.lift(new R(t, r)); }; } var R = function () { function t(t, r) { this.project = t, this.thisArg = r; } return t.prototype.call = function (t, r) { return r.subscribe(new G(t, this.project, this.thisArg)); }, t; }(), G = function (t) { function r(r, e, n) { var i = t.call(this, r) || this; return i.project = e, i.count = 0, i.thisArg = n || i, i; } return e(r, t), r.prototype._next = function (t) { var r; try {
    r = this.project.call(this.thisArg, t, this.count++);
}
catch (t) {
    return void this.destination.error(t);
} this.destination.next(r); }, r; }(_); function J(t, r, e) { return void 0 === e && (e = Number.POSITIVE_INFINITY), "function" == typeof r ? function (n) { return n.pipe(J(function (e, n) { return F(t(e, n)).pipe(z(function (t, i) { return r(e, t, n, i); })); }, e)); } : ("number" == typeof r && (e = r), function (r) { return r.lift(new K(t, e)); }); } var K = function () { function t(t, r) { void 0 === r && (r = Number.POSITIVE_INFINITY), this.project = t, this.concurrent = r; } return t.prototype.call = function (t, r) { return r.subscribe(new L(t, this.project, this.concurrent)); }, t; }(), L = function (t) { function r(r, e, n) { void 0 === n && (n = Number.POSITIVE_INFINITY); var i = t.call(this, r) || this; return i.project = e, i.concurrent = n, i.hasCompleted = !1, i.buffer = [], i.active = 0, i.index = 0, i; } return e(r, t), r.prototype._next = function (t) { this.active < this.concurrent ? this._tryNext(t) : this.buffer.push(t); }, r.prototype._tryNext = function (t) { var r, e = this.index++; try {
    r = this.project(t, e);
}
catch (t) {
    return void this.destination.error(t);
} this.active++, this._innerSub(r, t, e); }, r.prototype._innerSub = function (t, r, e) { var n, i; this.add((n = t, i = new E(this, r, e), D(n)(i))); }, r.prototype._complete = function () { this.hasCompleted = !0, 0 === this.active && 0 === this.buffer.length && this.destination.complete(); }, r.prototype.notifyNext = function (t, r, e, n, i) { this.destination.next(r); }, r.prototype.notifyComplete = function (t) { var r = this.buffer; this.remove(t), this.active--, r.length > 0 ? this._next(r.shift()) : 0 === this.active && this.hasCompleted && this.destination.complete(); }, r; }(x); function Q(t) { return t; } function X() { return void 0 === (t = 1) && (t = Number.POSITIVE_INFINITY), J(Q, t); var t; } function Z() { for (var t = [], r = 0; r < arguments.length; r++)
    t[r] = arguments[r]; return 1 === t.length || 2 === t.length && M(t[1]) ? F(t[0]) : X()(function () { for (var t = [], r = 0; r < arguments.length; r++)
    t[r] = arguments[r]; var e = t[t.length - 1]; switch (M(e) ? t.pop() : e = void 0, t.length) {
    case 0: return B(e);
    case 1: return e ? U(t, e) : W(t[0]);
    default: return U(t, e);
} }.apply(void 0, t)); } Error; var $ = function () { function t(t, r, e) { this.nextOrObserver = t, this.error = r, this.complete = e; } return t.prototype.call = function (t, r) { return r.subscribe(new tt(t, this.nextOrObserver, this.error, this.complete)); }, t; }(), tt = function (t) { function r(r, e, n, i) { var o = t.call(this, r) || this; return o._tapNext = g, o._tapError = g, o._tapComplete = g, o._tapError = n || g, o._tapComplete = i || g, u(e) ? (o._context = o, o._tapNext = e) : e && (o._context = e, o._tapNext = e.next || g, o._tapError = e.error || g, o._tapComplete = e.complete || g), o; } return e(r, t), r.prototype._next = function (t) { try {
    this._tapNext.call(this._context, t);
}
catch (t) {
    return void this.destination.error(t);
} this.destination.next(t); }, r.prototype._error = function (t) { try {
    this._tapError.call(this._context, t);
}
catch (t) {
    return void this.destination.error(t);
} this.destination.error(t); }, r.prototype._complete = function () { try {
    this._tapComplete.call(this._context);
}
catch (t) {
    return void this.destination.error(t);
} return this.destination.complete(); }, r; }(_), rt = (Error, function (t) { function r() { var e = t.call(this, "object unsubscribed") || this; return e.name = "ObjectUnsubscribedError", Object.setPrototypeOf(e, r.prototype), e; } return e(r, t), r; }(Error)), et = function (t) { function r(r, e) { var n = t.call(this) || this; return n.subject = r, n.subscriber = e, n.closed = !1, n; } return e(r, t), r.prototype.unsubscribe = function () { if (!this.closed) {
    this.closed = !0;
    var t = this.subject, r = t.observers;
    if (this.subject = null, r && 0 !== r.length && !t.isStopped && !t.closed) {
        var e = r.indexOf(this.subscriber);
        -1 !== e && r.splice(e, 1);
    }
} }, r; }(b), nt = function (t) { function r(r) { var e = t.call(this, r) || this; return e.destination = r, e; } return e(r, t), r; }(_), it = function (t) { function r() { var r = t.call(this) || this; return r.observers = [], r.closed = !1, r.isStopped = !1, r.hasError = !1, r.thrownError = null, r; } return e(r, t), r.prototype[v] = function () { return new nt(this); }, r.prototype.lift = function (t) { var r = new ot(this, this); return r.operator = t, r; }, r.prototype.next = function (t) { if (this.closed)
    throw new rt; if (!this.isStopped)
    for (var r = this.observers, e = r.length, n = r.slice(), i = 0; i < e; i++)
        n[i].next(t); }, r.prototype.error = function (t) { if (this.closed)
    throw new rt; this.hasError = !0, this.thrownError = t, this.isStopped = !0; for (var r = this.observers, e = r.length, n = r.slice(), i = 0; i < e; i++)
    n[i].error(t); this.observers.length = 0; }, r.prototype.complete = function () { if (this.closed)
    throw new rt; this.isStopped = !0; for (var t = this.observers, r = t.length, e = t.slice(), n = 0; n < r; n++)
    e[n].complete(); this.observers.length = 0; }, r.prototype.unsubscribe = function () { this.isStopped = !0, this.closed = !0, this.observers = null; }, r.prototype._trySubscribe = function (r) { if (this.closed)
    throw new rt; return t.prototype._trySubscribe.call(this, r); }, r.prototype._subscribe = function (t) { if (this.closed)
    throw new rt; return this.hasError ? (t.error(this.thrownError), b.EMPTY) : this.isStopped ? (t.complete(), b.EMPTY) : (this.observers.push(t), new et(this, t)); }, r.prototype.asObservable = function () { var t = new T; return t.source = this, t; }, r.create = function (t, r) { return new ot(t, r); }, r; }(T), ot = function (t) { function r(r, e) { var n = t.call(this) || this; return n.destination = r, n.source = e, n; } return e(r, t), r.prototype.next = function (t) { var r = this.destination; r && r.next && r.next(t); }, r.prototype.error = function (t) { var r = this.destination; r && r.error && this.destination.error(t); }, r.prototype.complete = function () { var t = this.destination; t && t.complete && this.destination.complete(); }, r.prototype._subscribe = function (t) { return this.source ? this.source.subscribe(t) : b.EMPTY; }, r; }(it), st = function () { function t(t, r, e) { void 0 === e && (e = !1), this.accumulator = t, this.seed = r, this.hasSeed = e; } return t.prototype.call = function (t, r) { return r.subscribe(new ut(t, this.accumulator, this.seed, this.hasSeed)); }, t; }(), ut = function (t) { function r(r, e, n, i) { var o = t.call(this, r) || this; return o.accumulator = e, o._seed = n, o.hasSeed = i, o.index = 0, o; } return e(r, t), Object.defineProperty(r.prototype, "seed", { get: function () { return this._seed; }, set: function (t) { this.hasSeed = !0, this._seed = t; }, enumerable: !0, configurable: !0 }), r.prototype._next = function (t) { if (this.hasSeed)
    return this._tryNext(t); this.seed = t, this.destination.next(t); }, r.prototype._tryNext = function (t) { var r, e = this.index++; try {
    r = this.accumulator(this.seed, t, e);
}
catch (t) {
    this.destination.error(t);
} this.seed = r, this.destination.next(r); }, r; }(_), ct = function () { function t(t) { this.predicate = t; } return t.prototype.call = function (t, r) { return r.subscribe(new ht(t, this.predicate)); }, t; }(), ht = function (t) { function r(r, e) { var n = t.call(this, r) || this; return n.predicate = e, n.index = 0, n; } return e(r, t), r.prototype._next = function (t) { var r, e = this.destination; try {
    r = this.predicate(t, this.index++);
}
catch (t) {
    return void e.error(t);
} this.nextOrComplete(t, r); }, r.prototype.nextOrComplete = function (t, r) { var e = this.destination; Boolean(r) ? e.next(t) : e.complete(); }, r; }(_); function at(t) { var r = t.subscriber, e = t.counter, n = t.period; r.next(e), this.schedule({ subscriber: r, counter: e + 1, period: n }, n); } Error, t.Observable = T, t.Subject = it, t.from = F, t.scan = function (t, r) { var e = !1; return arguments.length >= 2 && (e = !0), function (n) { return n.lift(new st(t, r, e)); }; }, t.startWith = function () { for (var t = [], r = 0; r < arguments.length; r++)
    t[r] = arguments[r]; return function (r) { var e = t[t.length - 1]; M(e) ? t.pop() : e = null; var n = t.length; return Z(1 !== n || e ? n > 0 ? U(t, e) : B(e) : W(t[0]), r); }; }, t.mergeMap = J, t.__extends = e, t.tryCatch = s, t.errorObject = i, t.Subscriber = _, t.map = z, t.tap = function (t, r, e) { return function (n) { return n.lift(new $(t, r, e)); }; }, t.interval = function (t, r) { return void 0 === t && (t = 0), void 0 === r && (r = V), (!(!p(e = t) && e - parseFloat(e) + 1 >= 0) || t < 0) && (t = 0), r && "function" == typeof r.schedule || (r = V), new T(function (e) { return e.add(r.schedule(at, t, { subscriber: e, counter: 0, period: t })), e; }); var e; }, t.concatAll = X, t.pluck = function () { for (var t = [], r = 0; r < arguments.length; r++)
    t[r] = arguments[r]; var e = t.length; if (0 === e)
    throw new Error("list of properties cannot be empty."); return function (r) { return z(function (t, r) { return function (e) { for (var n = e, i = 0; i < r; i++) {
    var o = n[t[i]];
    if (void 0 === o)
        return;
    n = o;
} return n; }; }(t, e))(r); }; }, t.takeWhile = function (t) { return function (r) { return r.lift(new ct(t)); }; }; });
