UNPKG

@jumio/websdk

Version:

Jumio WebSDK is a powerful, flexible software development kit that simplifies the integration of Jumio's services into your web applications.

1,524 lines (1,523 loc) 2.09 MB
var cee = Object.defineProperty; var AR = (e) => { throw TypeError(e); }; var dee = (e, t, r) => t in e ? cee(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r; var Dr = (e, t, r) => dee(e, typeof t != "symbol" ? t + "" : t, r), TA = (e, t, r) => t.has(e) || AR("Cannot " + r); var S = (e, t, r) => (TA(e, t, "read from private field"), r ? r.call(e) : t.get(e)), E = (e, t, r) => t.has(e) ? AR("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), G = (e, t, r, n) => (TA(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), O = (e, t, r) => (TA(e, t, "access private method"), r); /** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const Dk = "lit-localize-status"; /** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const uee = (e) => typeof e != "string" && "strTag" in e, R3 = (e, t, r) => { let n = e[0]; for (let a = 1; a < e.length; a++) n += t[r ? r[a - 1] : a - 1], n += e[a]; return n; }; /** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const D3 = (e) => uee(e) ? R3(e.strings, e.values) : e; let y = D3, UR = !1; function hee(e) { if (UR) throw new Error("lit-localize can only be configured once"); y = e, UR = !0; } /** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ class pee { constructor(t) { this.__litLocalizeEventHandler = (r) => { r.detail.status === "ready" && this.host.requestUpdate(); }, this.host = t; } hostConnected() { window.addEventListener(Dk, this.__litLocalizeEventHandler); } hostDisconnected() { window.removeEventListener(Dk, this.__litLocalizeEventHandler); } } const gee = (e) => e.addController(new pee(e)), fee = gee; /** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const be = () => (e, t) => (e.addInitializer(fee), e); /** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ class J3 { constructor() { this.settled = !1, this.promise = new Promise((t, r) => { this._resolve = t, this._reject = r; }); } resolve(t) { this.settled = !0, this._resolve(t); } reject(t) { this.settled = !0, this._reject(t); } } /** * @license * Copyright 2014 Travis Webb * SPDX-License-Identifier: MIT */ const Ws = []; for (let e = 0; e < 256; e++) Ws[e] = (e >> 4 & 15).toString(16) + (e & 15).toString(16); function mee(e) { let t = 0, r = 8997, n = 0, a = 33826, i = 0, o = 40164, s = 0, c = 52210; for (let l = 0; l < e.length; l++) r ^= e.charCodeAt(l), t = r * 435, n = a * 435, i = o * 435, s = c * 435, i += r << 8, s += a << 8, n += t >>> 16, r = t & 65535, i += n >>> 16, a = n & 65535, c = s + (i >>> 16) & 65535, o = i & 65535; return Ws[c >> 8] + Ws[c & 255] + Ws[o >> 8] + Ws[o & 255] + Ws[a >> 8] + Ws[a & 255] + Ws[r >> 8] + Ws[r & 255]; } /** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const vee = "", See = "h", Iee = "s"; function Cee(e, t) { return (t ? See : Iee) + mee(typeof e == "string" ? e : e.join(vee)); } /** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const kR = /* @__PURE__ */ new WeakMap(), _R = /* @__PURE__ */ new Map(); function bee(e, t, r) { if (e) { const n = (r == null ? void 0 : r.id) ?? yee(t), a = e[n]; if (a) { if (typeof a == "string") return a; if ("strTag" in a) return R3( a.strings, // Cast `template` because its type wasn't automatically narrowed (but // we know it must be the same type as `localized`). t.values, a.values ); { let i = kR.get(a); return i === void 0 && (i = a.values, kR.set(a, i)), { ...a, values: i.map((o) => t.values[o]) }; } } } return D3(t); } function yee(e) { const t = typeof e == "string" ? e : e.strings; let r = _R.get(t); return r === void 0 && (r = Cee(t, typeof e != "string" && !("strTag" in e)), _R.set(t, r)), r; } /** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ function RA(e) { window.dispatchEvent(new CustomEvent(Dk, { detail: e })); } let c1 = "", DA, V3, d1, Jk, M3, Ad = new J3(); Ad.resolve(); let NI = 0; const wee = (e) => (hee((t, r) => bee(M3, t, r)), c1 = V3 = e.sourceLocale, d1 = new Set(e.targetLocales), d1.add(e.sourceLocale), Jk = e.loadLocale, { getLocale: Aee, setLocale: Uee }), Aee = () => c1, Uee = (e) => { if (e === (DA ?? c1)) return Ad.promise; if (!d1 || !Jk) throw new Error("Internal error"); if (!d1.has(e)) throw new Error("Invalid locale code"); NI++; const t = NI; return DA = e, Ad.settled && (Ad = new J3()), RA({ status: "loading", loadingLocale: e }), (e === V3 ? ( // We could switch to the source locale synchronously, but we prefer to // queue it on a microtask so that switching locales is consistently // asynchronous. Promise.resolve({ templates: void 0 }) ) : Jk(e)).then((n) => { NI === t && (c1 = e, DA = void 0, M3 = n.templates, RA({ status: "ready", readyLocale: e }), Ad.resolve()); }, (n) => { NI === t && (RA({ status: "error", errorLocale: e, errorMessage: n.toString() }), Ad.reject(n)); }), Ad.promise; }; /** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const gC = globalThis, mW = gC.ShadowRoot && (gC.ShadyCSS === void 0 || gC.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, vW = Symbol(), NR = /* @__PURE__ */ new WeakMap(); let G3 = class { constructor(t, r, n) { if (this._$cssResult$ = !0, n !== vW) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead."); this.cssText = t, this.t = r; } get styleSheet() { let t = this.o; const r = this.t; if (mW && t === void 0) { const n = r !== void 0 && r.length === 1; n && (t = NR.get(r)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && NR.set(r, t)); } return t; } toString() { return this.cssText; } }; const Gt = (e) => new G3(typeof e == "string" ? e : e + "", void 0, vW), ee = (e, ...t) => { const r = e.length === 1 ? e[0] : t.reduce((n, a, i) => n + ((o) => { if (o._$cssResult$ === !0) return o.cssText; if (typeof o == "number") return o; throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security."); })(a) + e[i + 1], e[0]); return new G3(r, e, vW); }, kee = (e, t) => { if (mW) e.adoptedStyleSheets = t.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet); else for (const r of t) { const n = document.createElement("style"), a = gC.litNonce; a !== void 0 && n.setAttribute("nonce", a), n.textContent = r.cssText, e.appendChild(n); } }, ZR = mW ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => { let r = ""; for (const n of t.cssRules) r += n.cssText; return Gt(r); })(e) : e; /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const { is: _ee, defineProperty: Nee, getOwnPropertyDescriptor: Zee, getOwnPropertyNames: Bee, getOwnPropertySymbols: Wee, getPrototypeOf: Eee } = Object, _c = globalThis, BR = _c.trustedTypes, Qee = BR ? BR.emptyScript : "", JA = _c.reactiveElementPolyfillSupport, Qf = (e, t) => e, u1 = { toAttribute(e, t) { switch (t) { case Boolean: e = e ? Qee : null; break; case Object: case Array: e = e == null ? e : JSON.stringify(e); } return e; }, fromAttribute(e, t) { let r = e; switch (t) { case Boolean: r = e !== null; break; case Number: r = e === null ? null : Number(e); break; case Object: case Array: try { r = JSON.parse(e); } catch { r = null; } } return r; } }, SW = (e, t) => !_ee(e, t), WR = { attribute: !0, type: String, converter: u1, reflect: !1, hasChanged: SW }; Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _c.litPropertyMetadata ?? (_c.litPropertyMetadata = /* @__PURE__ */ new WeakMap()); class Nh extends HTMLElement { static addInitializer(t) { this._$Ei(), (this.l ?? (this.l = [])).push(t); } static get observedAttributes() { return this.finalize(), this._$Eh && [...this._$Eh.keys()]; } static createProperty(t, r = WR) { if (r.state && (r.attribute = !1), this._$Ei(), this.elementProperties.set(t, r), !r.noAccessor) { const n = Symbol(), a = this.getPropertyDescriptor(t, n, r); a !== void 0 && Nee(this.prototype, t, a); } } static getPropertyDescriptor(t, r, n) { const { get: a, set: i } = Zee(this.prototype, t) ?? { get() { return this[r]; }, set(o) { this[r] = o; } }; return { get() { return a == null ? void 0 : a.call(this); }, set(o) { const s = a == null ? void 0 : a.call(this); i.call(this, o), this.requestUpdate(t, s, n); }, configurable: !0, enumerable: !0 }; } static getPropertyOptions(t) { return this.elementProperties.get(t) ?? WR; } static _$Ei() { if (this.hasOwnProperty(Qf("elementProperties"))) return; const t = Eee(this); t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties); } static finalize() { if (this.hasOwnProperty(Qf("finalized"))) return; if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Qf("properties"))) { const r = this.properties, n = [...Bee(r), ...Wee(r)]; for (const a of n) this.createProperty(a, r[a]); } const t = this[Symbol.metadata]; if (t !== null) { const r = litPropertyMetadata.get(t); if (r !== void 0) for (const [n, a] of r) this.elementProperties.set(n, a); } this._$Eh = /* @__PURE__ */ new Map(); for (const [r, n] of this.elementProperties) { const a = this._$Eu(r, n); a !== void 0 && this._$Eh.set(a, r); } this.elementStyles = this.finalizeStyles(this.styles); } static finalizeStyles(t) { const r = []; if (Array.isArray(t)) { const n = new Set(t.flat(1 / 0).reverse()); for (const a of n) r.unshift(ZR(a)); } else t !== void 0 && r.push(ZR(t)); return r; } static _$Eu(t, r) { const n = r.attribute; return n === !1 ? void 0 : typeof n == "string" ? n : typeof t == "string" ? t.toLowerCase() : void 0; } constructor() { super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev(); } _$Ev() { var t; this._$ES = new Promise((r) => this.enableUpdating = r), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((r) => r(this)); } addController(t) { var r; (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((r = t.hostConnected) == null || r.call(t)); } removeController(t) { var r; (r = this._$EO) == null || r.delete(t); } _$E_() { const t = /* @__PURE__ */ new Map(), r = this.constructor.elementProperties; for (const n of r.keys()) this.hasOwnProperty(n) && (t.set(n, this[n]), delete this[n]); t.size > 0 && (this._$Ep = t); } createRenderRoot() { const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions); return kee(t, this.constructor.elementStyles), t; } connectedCallback() { var t; this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((r) => { var n; return (n = r.hostConnected) == null ? void 0 : n.call(r); }); } enableUpdating(t) { } disconnectedCallback() { var t; (t = this._$EO) == null || t.forEach((r) => { var n; return (n = r.hostDisconnected) == null ? void 0 : n.call(r); }); } attributeChangedCallback(t, r, n) { this._$AK(t, n); } _$EC(t, r) { var i; const n = this.constructor.elementProperties.get(t), a = this.constructor._$Eu(t, n); if (a !== void 0 && n.reflect === !0) { const o = (((i = n.converter) == null ? void 0 : i.toAttribute) !== void 0 ? n.converter : u1).toAttribute(r, n.type); this._$Em = t, o == null ? this.removeAttribute(a) : this.setAttribute(a, o), this._$Em = null; } } _$AK(t, r) { var i; const n = this.constructor, a = n._$Eh.get(t); if (a !== void 0 && this._$Em !== a) { const o = n.getPropertyOptions(a), s = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((i = o.converter) == null ? void 0 : i.fromAttribute) !== void 0 ? o.converter : u1; this._$Em = a, this[a] = s.fromAttribute(r, o.type), this._$Em = null; } } requestUpdate(t, r, n) { if (t !== void 0) { if (n ?? (n = this.constructor.getPropertyOptions(t)), !(n.hasChanged ?? SW)(this[t], r)) return; this.P(t, r, n); } this.isUpdatePending === !1 && (this._$ES = this._$ET()); } P(t, r, n) { this._$AL.has(t) || this._$AL.set(t, r), n.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t); } async _$ET() { this.isUpdatePending = !0; try { await this._$ES; } catch (r) { Promise.reject(r); } const t = this.scheduleUpdate(); return t != null && await t, !this.isUpdatePending; } scheduleUpdate() { return this.performUpdate(); } performUpdate() { var n; if (!this.isUpdatePending) return; if (!this.hasUpdated) { if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) { for (const [i, o] of this._$Ep) this[i] = o; this._$Ep = void 0; } const a = this.constructor.elementProperties; if (a.size > 0) for (const [i, o] of a) o.wrapped !== !0 || this._$AL.has(i) || this[i] === void 0 || this.P(i, this[i], o); } let t = !1; const r = this._$AL; try { t = this.shouldUpdate(r), t ? (this.willUpdate(r), (n = this._$EO) == null || n.forEach((a) => { var i; return (i = a.hostUpdate) == null ? void 0 : i.call(a); }), this.update(r)) : this._$EU(); } catch (a) { throw t = !1, this._$EU(), a; } t && this._$AE(r); } willUpdate(t) { } _$AE(t) { var r; (r = this._$EO) == null || r.forEach((n) => { var a; return (a = n.hostUpdated) == null ? void 0 : a.call(n); }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t); } _$EU() { this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1; } get updateComplete() { return this.getUpdateComplete(); } getUpdateComplete() { return this._$ES; } shouldUpdate(t) { return !0; } update(t) { this._$Ej && (this._$Ej = this._$Ej.forEach((r) => this._$EC(r, this[r]))), this._$EU(); } updated(t) { } firstUpdated(t) { } } Nh.elementStyles = [], Nh.shadowRootOptions = { mode: "open" }, Nh[Qf("elementProperties")] = /* @__PURE__ */ new Map(), Nh[Qf("finalized")] = /* @__PURE__ */ new Map(), JA == null || JA({ ReactiveElement: Nh }), (_c.reactiveElementVersions ?? (_c.reactiveElementVersions = [])).push("2.0.4"); /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const Ff = globalThis, h1 = Ff.trustedTypes, ER = h1 ? h1.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, IW = "$lit$", tl = `lit$${Math.random().toFixed(9).slice(2)}$`, CW = "?" + tl, Fee = `<${CW}>`, _u = document, rm = () => _u.createComment(""), nm = (e) => e === null || typeof e != "object" && typeof e != "function", bW = Array.isArray, x3 = (e) => bW(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", VA = `[ \f\r]`, U0 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, QR = /-->/g, FR = />/g, md = RegExp(`>|${VA}(?:([^\\s"'>=/]+)(${VA}*=${VA}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`, "g"), TR = /'/g, RR = /"/g, H3 = /^(?:script|style|textarea|title)$/i, L3 = (e) => (t, ...r) => ({ _$litType$: e, strings: t, values: r }), w = L3(1), CS = L3(2), no = Symbol.for("lit-noChange"), q = Symbol.for("lit-nothing"), DR = /* @__PURE__ */ new WeakMap(), Yd = _u.createTreeWalker(_u, 129); function Y3(e, t) { if (!bW(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array"); return ER !== void 0 ? ER.createHTML(t) : t; } const O3 = (e, t) => { const r = e.length - 1, n = []; let a, i = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = U0; for (let s = 0; s < r; s++) { const c = e[s]; let l, u, g = -1, p = 0; for (; p < c.length && (o.lastIndex = p, u = o.exec(c), u !== null); ) p = o.lastIndex, o === U0 ? u[1] === "!--" ? o = QR : u[1] !== void 0 ? o = FR : u[2] !== void 0 ? (H3.test(u[2]) && (a = RegExp("</" + u[2], "g")), o = md) : u[3] !== void 0 && (o = md) : o === md ? u[0] === ">" ? (o = a ?? U0, g = -1) : u[1] === void 0 ? g = -2 : (g = o.lastIndex - u[2].length, l = u[1], o = u[3] === void 0 ? md : u[3] === '"' ? RR : TR) : o === RR || o === TR ? o = md : o === QR || o === FR ? o = U0 : (o = md, a = void 0); const m = o === md && e[s + 1].startsWith("/>") ? " " : ""; i += o === U0 ? c + Fee : g >= 0 ? (n.push(l), c.slice(0, g) + IW + c.slice(g) + tl + m) : c + tl + (g === -2 ? s : m); } return [Y3(e, i + (e[r] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n]; }; class am { constructor({ strings: t, _$litType$: r }, n) { let a; this.parts = []; let i = 0, o = 0; const s = t.length - 1, c = this.parts, [l, u] = O3(t, r); if (this.el = am.createElement(l, n), Yd.currentNode = this.el.content, r === 2 || r === 3) { const g = this.el.content.firstChild; g.replaceWith(...g.childNodes); } for (; (a = Yd.nextNode()) !== null && c.length < s; ) { if (a.nodeType === 1) { if (a.hasAttributes()) for (const g of a.getAttributeNames()) if (g.endsWith(IW)) { const p = u[o++], m = a.getAttribute(g).split(tl), I = /([.?@])?(.*)/.exec(p); c.push({ type: 1, index: i, name: I[2], strings: m, ctor: I[1] === "." ? $3 : I[1] === "?" ? K3 : I[1] === "@" ? X3 : bS }), a.removeAttribute(g); } else g.startsWith(tl) && (c.push({ type: 6, index: i }), a.removeAttribute(g)); if (H3.test(a.tagName)) { const g = a.textContent.split(tl), p = g.length - 1; if (p > 0) { a.textContent = h1 ? h1.emptyScript : ""; for (let m = 0; m < p; m++) a.append(g[m], rm()), Yd.nextNode(), c.push({ type: 2, index: ++i }); a.append(g[p], rm()); } } } else if (a.nodeType === 8) if (a.data === CW) c.push({ type: 2, index: i }); else { let g = -1; for (; (g = a.data.indexOf(tl, g + 1)) !== -1; ) c.push({ type: 7, index: i }), g += tl.length - 1; } i++; } } static createElement(t, r) { const n = _u.createElement("template"); return n.innerHTML = t, n; } } function Nu(e, t, r = e, n) { var o, s; if (t === no) return t; let a = n !== void 0 ? (o = r.o) == null ? void 0 : o[n] : r.l; const i = nm(t) ? void 0 : t._$litDirective$; return (a == null ? void 0 : a.constructor) !== i && ((s = a == null ? void 0 : a._$AO) == null || s.call(a, !1), i === void 0 ? a = void 0 : (a = new i(e), a._$AT(e, r, n)), n !== void 0 ? (r.o ?? (r.o = []))[n] = a : r.l = a), a !== void 0 && (t = Nu(e, a._$AS(e, t.values), a, n)), t; } class j3 { constructor(t, r) { this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = r; } get parentNode() { return this._$AM.parentNode; } get _$AU() { return this._$AM._$AU; } u(t) { const { el: { content: r }, parts: n } = this._$AD, a = ((t == null ? void 0 : t.creationScope) ?? _u).importNode(r, !0); Yd.currentNode = a; let i = Yd.nextNode(), o = 0, s = 0, c = n[0]; for (; c !== void 0; ) { if (o === c.index) { let l; c.type === 2 ? l = new W2(i, i.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(i, c.name, c.strings, this, t) : c.type === 6 && (l = new z3(i, this, t)), this._$AV.push(l), c = n[++s]; } o !== (c == null ? void 0 : c.index) && (i = Yd.nextNode(), o++); } return Yd.currentNode = _u, a; } p(t) { let r = 0; for (const n of this._$AV) n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, r), r += n.strings.length - 2) : n._$AI(t[r])), r++; } } let W2 = class P3 { get _$AU() { var t; return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this.v; } constructor(t, r, n, a) { this.type = 2, this._$AH = q, this._$AN = void 0, this._$AA = t, this._$AB = r, this._$AM = n, this.options = a, this.v = (a == null ? void 0 : a.isConnected) ?? !0; } get parentNode() { let t = this._$AA.parentNode; const r = this._$AM; return r !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = r.parentNode), t; } get startNode() { return this._$AA; } get endNode() { return this._$AB; } _$AI(t, r = this) { t = Nu(this, t, r), nm(t) ? t === q || t == null || t === "" ? (this._$AH !== q && this._$AR(), this._$AH = q) : t !== this._$AH && t !== no && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : x3(t) ? this.k(t) : this._(t); } O(t) { return this._$AA.parentNode.insertBefore(t, this._$AB); } T(t) { this._$AH !== t && (this._$AR(), this._$AH = this.O(t)); } _(t) { this._$AH !== q && nm(this._$AH) ? this._$AA.nextSibling.data = t : this.T(_u.createTextNode(t)), this._$AH = t; } $(t) { var i; const { values: r, _$litType$: n } = t, a = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = am.createElement(Y3(n.h, n.h[0]), this.options)), n); if (((i = this._$AH) == null ? void 0 : i._$AD) === a) this._$AH.p(r); else { const o = new j3(a, this), s = o.u(this.options); o.p(r), this.T(s), this._$AH = o; } } _$AC(t) { let r = DR.get(t.strings); return r === void 0 && DR.set(t.strings, r = new am(t)), r; } k(t) { bW(this._$AH) || (this._$AH = [], this._$AR()); const r = this._$AH; let n, a = 0; for (const i of t) a === r.length ? r.push(n = new P3(this.O(rm()), this.O(rm()), this, this.options)) : n = r[a], n._$AI(i), a++; a < r.length && (this._$AR(n && n._$AB.nextSibling, a), r.length = a); } _$AR(t = this._$AA.nextSibling, r) { var n; for ((n = this._$AP) == null ? void 0 : n.call(this, !1, !0, r); t && t !== this._$AB; ) { const a = t.nextSibling; t.remove(), t = a; } } setConnected(t) { var r; this._$AM === void 0 && (this.v = t, (r = this._$AP) == null || r.call(this, t)); } }; class bS { get tagName() { return this.element.tagName; } get _$AU() { return this._$AM._$AU; } constructor(t, r, n, a, i) { this.type = 1, this._$AH = q, this._$AN = void 0, this.element = t, this.name = r, this._$AM = a, this.options = i, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = q; } _$AI(t, r = this, n, a) { const i = this.strings; let o = !1; if (i === void 0) t = Nu(this, t, r, 0), o = !nm(t) || t !== this._$AH && t !== no, o && (this._$AH = t); else { const s = t; let c, l; for (t = i[0], c = 0; c < i.length - 1; c++) l = Nu(this, s[n + c], r, c), l === no && (l = this._$AH[c]), o || (o = !nm(l) || l !== this._$AH[c]), l === q ? t = q : t !== q && (t += (l ?? "") + i[c + 1]), this._$AH[c] = l; } o && !a && this.j(t); } j(t) { t === q ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? ""); } } class $3 extends bS { constructor() { super(...arguments), this.type = 3; } j(t) { this.element[this.name] = t === q ? void 0 : t; } } class K3 extends bS { constructor() { super(...arguments), this.type = 4; } j(t) { this.element.toggleAttribute(this.name, !!t && t !== q); } } class X3 extends bS { constructor(t, r, n, a, i) { super(t, r, n, a, i), this.type = 5; } _$AI(t, r = this) { if ((t = Nu(this, t, r, 0) ?? q) === no) return; const n = this._$AH, a = t === q && n !== q || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, i = t !== q && (n === q || a); a && this.element.removeEventListener(this.name, this, n), i && this.element.addEventListener(this.name, this, t), this._$AH = t; } handleEvent(t) { var r; typeof this._$AH == "function" ? this._$AH.call(((r = this.options) == null ? void 0 : r.host) ?? this.element, t) : this._$AH.handleEvent(t); } } class z3 { constructor(t, r, n) { this.element = t, this.type = 6, this._$AN = void 0, this._$AM = r, this.options = n; } get _$AU() { return this._$AM._$AU; } _$AI(t) { Nu(this, t); } } const Tee = { M: IW, P: tl, A: CW, C: 1, L: O3, R: j3, D: x3, V: Nu, I: W2, H: bS, N: K3, U: X3, B: $3, F: z3 }, MA = Ff.litHtmlPolyfillSupport; MA == null || MA(am, W2), (Ff.litHtmlVersions ?? (Ff.litHtmlVersions = [])).push("3.2.0"); const Ree = (e, t, r) => { const n = (r == null ? void 0 : r.renderBefore) ?? t; let a = n._$litPart$; if (a === void 0) { const i = (r == null ? void 0 : r.renderBefore) ?? null; n._$litPart$ = a = new W2(t.insertBefore(rm(), i), i, void 0, r ?? {}); } return a._$AI(e), a; }; /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ class ro extends Nh { constructor() { super(...arguments), this.renderOptions = { host: this }, this.o = void 0; } createRenderRoot() { var r; const t = super.createRenderRoot(); return (r = this.renderOptions).renderBefore ?? (r.renderBefore = t.firstChild), t; } update(t) { const r = this.render(); this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this.o = Ree(r, this.renderRoot, this.renderOptions); } connectedCallback() { var t; super.connectedCallback(), (t = this.o) == null || t.setConnected(!0); } disconnectedCallback() { var t; super.disconnectedCallback(), (t = this.o) == null || t.setConnected(!1); } render() { return no; } } var T3; ro._$litElement$ = !0, ro.finalized = !0, (T3 = globalThis.litElementHydrateSupport) == null || T3.call(globalThis, { LitElement: ro }); const GA = globalThis.litElementPolyfillSupport; GA == null || GA({ LitElement: ro }); (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.0"); /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const P = (e) => (t, r) => { r !== void 0 ? r.addInitializer(() => { customElements.define(e, t); }) : customElements.define(e, t); }; /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const Dee = { attribute: !0, type: String, converter: u1, reflect: !1, hasChanged: SW }, Jee = (e = Dee, t, r) => { const { kind: n, metadata: a } = r; let i = globalThis.litPropertyMetadata.get(a); if (i === void 0 && globalThis.litPropertyMetadata.set(a, i = /* @__PURE__ */ new Map()), i.set(r.name, e), n === "accessor") { const { name: o } = r; return { set(s) { const c = t.get.call(this); t.set.call(this, s), this.requestUpdate(o, c, e); }, init(s) { return s !== void 0 && this.P(o, void 0, e), s; } }; } if (n === "setter") { const { name: o } = r; return function(s) { const c = this[o]; t.call(this, s), this.requestUpdate(o, c, e); }; } throw Error("Unsupported decorator location: " + n); }; function M(e) { return (t, r) => typeof r == "object" ? Jee(e, t, r) : ((n, a, i) => { const o = a.hasOwnProperty(i); return a.constructor.createProperty(i, o ? { ...n, wrapped: !0 } : n), o ? Object.getOwnPropertyDescriptor(a, i) : void 0; })(e, t, r); } /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ function Xn(e) { return M({ ...e, state: !0, attribute: !1 }); } /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ const q3 = (e, t, r) => (r.configurable = !0, r.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(e, t, r), r); /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ function yW(e, t) { return (r, n, a) => { const i = (o) => { var s; return ((s = o.renderRoot) == null ? void 0 : s.querySelector(e)) ?? null; }; return q3(r, n, { get() { return i(this); } }); }; } /** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ function dr(e) { return (t, r) => { const { slot: n, selector: a } = e ?? {}, i = "slot" + (n ? `[name=${n}]` : ":not([name])"); return q3(t, r, { get() { var c; const o = (c = this.renderRoot) == null ? void 0 : c.querySelector(i), s = (o == null ? void 0 : o.assignedElements(e)) ?? []; return a === void 0 ? s : s.filter((l) => l.matches(a)); } }); }; } var Vk = function(e, t) { return Vk = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) { r.__proto__ = n; } || function(r, n) { for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (r[a] = n[a]); }, Vk(e, t); }; function Ti(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Class extends value " + String(t) + " is not a constructor or null"); Vk(e, t); function r() { this.constructor = e; } e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r()); } function Vee(e, t, r, n) { function a(i) { return i instanceof r ? i : new r(function(o) { o(i); }); } return new (r || (r = Promise))(function(i, o) { function s(u) { try { l(n.next(u)); } catch (g) { o(g); } } function c(u) { try { l(n.throw(u)); } catch (g) { o(g); } } function l(u) { u.done ? i(u.value) : a(u.value).then(s, c); } l((n = n.apply(e, t || [])).next()); }); } function eM(e, t) { var r = { label: 0, sent: function() { if (i[0] & 1) throw i[1]; return i[1]; }, trys: [], ops: [] }, n, a, i, o = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype); return o.next = s(0), o.throw = s(1), o.return = s(2), typeof Symbol == "function" && (o[Symbol.iterator] = function() { return this; }), o; function s(l) { return function(u) { return c([l, u]); }; } function c(l) { if (n) throw new TypeError("Generator is already executing."); for (; o && (o = 0, l[0] && (r = 0)), r; ) try { if (n = 1, a && (i = l[0] & 2 ? a.return : l[0] ? a.throw || ((i = a.return) && i.call(a), 0) : a.next) && !(i = i.call(a, l[1])).done) return i; switch (a = 0, i && (l = [l[0] & 2, i.value]), l[0]) { case 0: case 1: i = l; break; case 4: return r.label++, { value: l[1], done: !1 }; case 5: r.label++, a = l[1], l = [0]; continue; case 7: l = r.ops.pop(), r.trys.pop(); continue; default: if (i = r.trys, !(i = i.length > 0 && i[i.length - 1]) && (l[0] === 6 || l[0] === 2)) { r = 0; continue; } if (l[0] === 3 && (!i || l[1] > i[0] && l[1] < i[3])) { r.label = l[1]; break; } if (l[0] === 6 && r.label < i[1]) { r.label = i[1], i = l; break; } if (i && r.label < i[2]) { r.label = i[2], r.ops.push(l); break; } i[2] && r.ops.pop(), r.trys.pop(); continue; } l = t.call(e, r); } catch (u) { l = [6, u], a = 0; } finally { n = i = 0; } if (l[0] & 5) throw l[1]; return { value: l[0] ? l[1] : void 0, done: !0 }; } } function $o(e) { var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0; if (r) return r.call(e); if (e && typeof e.length == "number") return { next: function() { return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e }; } }; throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined."); } function Ca(e, t) { var r = typeof Symbol == "function" && e[Symbol.iterator]; if (!r) return e; var n = r.call(e), a, i = [], o; try { for (; (t === void 0 || t-- > 0) && !(a = n.next()).done; ) i.push(a.value); } catch (s) { o = { error: s }; } finally { try { a && !a.done && (r = n.return) && r.call(n); } finally { if (o) throw o.error; } } return i; } function za(e, t, r) { if (r || arguments.length === 2) for (var n = 0, a = t.length, i; n < a; n++) (i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]); return e.concat(i || Array.prototype.slice.call(t)); } function lp(e) { return this instanceof lp ? (this.v = e, this) : new lp(e); } function Mee(e, t, r) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var n = r.apply(e, t || []), a, i = []; return a = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), s("next"), s("throw"), s("return", o), a[Symbol.asyncIterator] = function() { return this; }, a; function o(m) { return function(I) { return Promise.resolve(I).then(m, g); }; } function s(m, I) { n[m] && (a[m] = function(C) { return new Promise(function(A, U) { i.push([m, C, A, U]) > 1 || c(m, C); }); }, I && (a[m] = I(a[m]))); } function c(m, I) { try { l(n[m](I)); } catch (C) { p(i[0][3], C); } } function l(m) { m.value instanceof lp ? Promise.resolve(m.value.v).then(u, g) : p(i[0][2], m); } function u(m) { c("next", m); } function g(m) { c("throw", m); } function p(m, I) { m(I), i.shift(), i.length && c(i[0][0], i[0][1]); } } function Gee(e) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var t = e[Symbol.asyncIterator], r; return t ? t.call(e) : (e = typeof $o == "function" ? $o(e) : e[Symbol.iterator](), r = {}, n("next"), n("throw"), n("return"), r[Symbol.asyncIterator] = function() { return this; }, r); function n(i) { r[i] = e[i] && function(o) { return new Promise(function(s, c) { o = e[i](o), a(s, c, o.done, o.value); }); }; } function a(i, o, s, c) { Promise.resolve(c).then(function(l) { i({ value: l, done: s }); }, o); } } function Bt(e) { return typeof e == "function"; } function wW(e) { var t = function(n) { Error.call(n), n.stack = new Error().stack; }, r = e(t); return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r; } var xA = wW(function(e) { return function(r) { e(this), this.message = r ? r.length + ` errors occurred during unsubscription: ` + r.map(function(n, a) { return a + 1 + ") " + n.toString(); }).join(` `) : "", this.name = "UnsubscriptionError", this.errors = r; }; }); function Lp(e, t) { if (e) { var r = e.indexOf(t); 0 <= r && e.splice(r, 1); } } var zu = function() { function e(t) { this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null; } return e.prototype.unsubscribe = function() { var t, r, n, a, i; if (!this.closed) { this.closed = !0; var o = this._parentage; if (o) if (this._parentage = null, Array.isArray(o)) try { for (var s = $o(o), c = s.next(); !c.done; c = s.next()) { var l = c.value; l.remove(this); } } catch (C) { t = { error: C }; } finally { try { c && !c.done && (r = s.return) && r.call(s); } finally { if (t) throw t.error; } } else o.remove(this); var u = this.initialTeardown; if (Bt(u)) try { u(); } catch (C) { i = C instanceof xA ? C.errors : [C]; } var g = this._finalizers; if (g) { this._finalizers = null; try { for (var p = $o(g), m = p.next(); !m.done; m = p.next()) { var I = m.value; try { JR(I); } catch (C) { i = i ?? [], C instanceof xA ? i = za(za([], Ca(i)), Ca(C.errors)) : i.push(C); } } } catch (C) { n = { error: C }; } finally { try { m && !m.done && (a = p.return) && a.call(p); } finally { if (n) throw n.error; } } } if (i) throw new xA(i); } }, e.prototype.add = function(t) { var r; if (t && t !== this) if (this.closed) JR(t); else { if (t instanceof e) { if (t.closed || t._hasParent(this)) return; t._addParent(this); } (this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t); } }, e.prototype._hasParent = function(t) { var r = this._parentage; return r === t || Array.isArray(r) && r.includes(t); }, e.prototype._addParent = function(t) { var r = this._parentage; this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t; }, e.prototype._removeParent = function(t) { var r = this._parentage; r === t ? this._parentage = null : Array.isArray(r) && Lp(r, t); }, e.prototype.remove = function(t) { var r = this._finalizers; r && Lp(r, t), t instanceof e && t._removeParent(this); }, e.EMPTY = function() { var t = new e(); return t.closed = !0, t; }(), e; }(), tM = zu.EMPTY; function rM(e) { return e instanceof zu || e && "closed" in e && Bt(e.remove) && Bt(e.add) && Bt(e.unsubscribe); } function JR(e) { Bt(e) ? e() : e.unsubscribe(); } var nM = { onUnhandledError: null, onStoppedNotification: null, Promise: void 0, useDeprecatedSynchronousErrorHandling: !1, useDeprecatedNextContext: !1 }, aM = { setTimeout: function(e, t) { for (var r = [], n = 2; n < arguments.length; n++) r[n - 2] = arguments[n]; return setTimeout.apply(void 0, za([e, t], Ca(r))); }, clearTimeout: function(e) { var t = aM.delegate; return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(e); }, delegate: void 0 }; function iM(e) { aM.setTimeout(function() { throw e; }); } function im() { } function fC(e) { e(); } var AW = function(e) { Ti(t, e); function t(r) { var n = e.call(this) || this; return n.isStopped = !1, r ? (n.destination = r, rM(r) && r.add(n)) : n.destination = Yee, n; } return t.create = function(r, n, a) { return new Yp(r, n, a); }, t.prototype.next = function(r) { this.isStopped || this._next(r); }, t.prototype.error = function(r) { this.isStopped || (this.isStopped = !0, this._error(r)); }, t.prototype.complete = function() { this.isStopped || (this.isStopped = !0, this._complete()); }, t.prototype.unsubscribe = function() { this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null); }, t.prototype._next = function(r) { this.destination.next(r); }, t.prototype._error = function(r) { try { this.destination.error(r); } finally { this.unsubscribe(); } }, t.prototype._complete = function() { try { this.destination.complete(); } finally { this.unsubscribe(); } }, t; }(zu), xee = Function.prototype.bind; function HA(e, t) { return xee.call(e, t); } var Hee = function() { function e(t) { this.partialObserver = t; } return e.prototype.next = function(t) { var r = this.partialObserver; if (r.next) try { r.next(t); } catch (n) { ZI(n); } }, e.prototype.error = function(t) { var r = this.partialObserver; if (r.error) try { r.error(t); } catch (n) { ZI(n); } else ZI(t); }, e.prototype.complete = function() { var t = this.partialObserver; if (t.complete) try { t.complete(); } catch (r) { ZI(r); } }, e; }(), Yp = function(e) { Ti(t, e); function t(r, n, a) { var i = e.call(this) || this, o; if (Bt(r) || !r) o = { next: r ?? void 0, error: n ?? void 0, complete: a ?? void 0 }; else { var s; i && nM.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() { return i.unsubscribe(); }, o = { next: r.next && HA(r.next, s), error: r.error && HA(r.error, s), complete: r.complete && HA(r.complete, s) }) : o = r; } return i.destination = new Hee(o), i; } return t; }(AW); function ZI(e) { iM(e); } function Lee(e) { throw e; } var Yee = { closed: !0, next: im, error: Lee, complete: im }, UW = function() { return typeof Symbol == "function" && Symbol.observable || "@@observable"; }(); function Al(e) { return e; } function ho() { for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; return oM(e); } function oM(e) { return e.length === 0 ? Al : e.length === 1 ? e[0] : function(r) { return e.reduce(function(n, a) { return a(n); }, r); }; } var Ht = function() { function e(t) { t && (this._subscribe = t); } return e.prototype.lift = function(t) { var r = new e(); return r.source = this, r.operator = t, r; }, e.prototype.subscribe = function(t, r, n) { var a = this, i = jee(t) ? t : new Yp(t, r, n); return fC(function() { var o = a, s = o.operator, c = o.source; i.add(s ? s.call(i, c) : c ? a._subscribe(i) : a._trySubscribe(i)); }), i; }, e.prototype._trySubscribe = function(t) { try { return this._subscribe(t); } catch (r) { t.error(r); } }, e.prototype.forEach = function(t, r) { var n = this; return r = VR(r), new r(function(a, i) { var o = new Yp({ next: function(s) { try { t(s); } catch (c) { i(c), o.unsubscribe(); } }, error: i, complete: a }); n.subscribe(o); }); }, e.prototype._subscribe = function(t) { var r; return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t); }, e.prototype[UW] = function() { return this; }, e.prototype.pipe = function() { for (var t = [], r = 0; r < arguments.length; r++) t[r] = arguments[r]; return oM(t)(this); }, e.prototype.toPromise = function(t) { var r = this; return t = VR(t), new t(function(n, a) { var i; r.subscribe(function(o) { return i = o; }, function(o) { return a(o); }, function() { return n(i); }); }); }, e.create = function(t) { return new e(t); }, e; }(); function VR(e) { var t; return (t = e ?? nM.Promise) !== null && t !== void 0 ? t : Promise; } function Oee(e) { return e && Bt(e.next) && Bt(e.error) && Bt(e.complete); } function jee(e) { return e && e instanceof AW || Oee(e) && rM(e); } function Pee(e) { return Bt(e == null ? void 0 : e.lift); } function Lt(e) { return function(t) { if (Pee(t)) return t.lift(function(r) { try { return e(r, this); } catch (n) { this.error(n); } }); throw new TypeError("Unable to lift unknown Observable type"); }; } function Jt(e, t, r, n, a) { return new $ee(e, t, r, n, a); } var $ee = function(e) { Ti(t, e); function t(r, n, a, i, o, s) { var c = e.call(this, r) || this; return c.onFinalize = o, c.shouldUnsubscribe = s, c._next = n ? function(l) { try { n(l); } catch (u) { r.error(u); } } : e.prototype._next, c._error = i ? function(l) { try { i(l); } catch (u) { r.error(u); } finally { this.unsubscribe(); } } : e.prototype._error, c._complete = a ? function() { try { a(); } catch (l) { r.error(l); } finally { this.unsubscribe(); } } : e.prototype._complete, c; } return t.prototype.unsubscribe = function() { var r; if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) { var n = this.closed; e.prototype.unsubscribe.call(this), !n && ((r = this.onFinalize) === null || r === void 0 || r.call(this)); } }, t; }(AW), Mk = { schedule: function(e) { var t = requestAnimationFrame, r = cancelAnimationFrame, n = Mk.delegate; n && (t = n.requestAnimationFrame, r = n.cancelAnimationFrame); var a = t(function(i) { r = void 0, e(i); }); return new zu(function() { return r == null ? void 0 : r(a); }); }, requestAnimationFrame: function() { for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; return requestAnimationFrame.apply(void 0, za([], Ca(e))); }, cancelAnimationFrame: function() { for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; return cancelAnimationFrame.apply(void 0, za([], Ca(e))); }, delegate: void 0 }, Kee = wW(function(e) { return function() { e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed"; }; }), _e = function(e) { Ti(t, e); function t() { var r = e.call(this) || this; return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r; } return t.prototype.lift = function(r) { var n = new MR(this, this); return n.operator = r, n; }, t.prototype._throwIfClosed = function() { if (this.closed) throw new Kee(); }, t.prototype.next = function(r) { var n = this; fC(function() { var a, i; if (n._throwIfClosed(), !n.isStopped) { n.currentObservers || (n.currentObservers = Array.from(n.observers)); try { for (var o = $o(n.currentObservers), s = o.next(); !s.done; s = o.next()) { var c = s.value; c.next(r); } } catch (l) { a = { error: l }; } finally { try { s && !s.done && (i = o.return) && i.call(o); } finally { if (a) throw a.error; } } } }); }, t.prototype.error = function(r) { var n = this; fC(function() { if (n._throwIfClosed(), !n.isStopped) { n.hasError = n.isStopped = !0, n.thrownError = r; for (var a = n.observers; a.length; ) a.shift().error(r); } }); }, t.prototype.complete = function() { var r = this; fC(function() { if (r._throwIfClosed(), !r.isStopped) { r.isStopped = !0; for (var n = r.observers; n.length; ) n.shift().complete(); } }); }, t.prototype.unsubscribe = function() { this.isStopped = this.closed = !0, this.observers = this.currentObservers = null; }, Object.defineProperty(t.prototype, "observed", { get: function() { var r; return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0; }, enumerable: !1, configurable: !0 }), t.prototype._trySubscribe = function(r) { return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r); }, t.prototype._subscribe = function(r) { return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r); }, t.prototype._innerSubscribe = function(r) { var n = this, a = this, i = a.hasError, o = a.isStopped, s = a.observers; return i || o ? tM : (this.currentObservers = null, s.push(r), new zu(function() { n.currentObservers = null, Lp(s, r); })); }, t.prototype._checkFinalizedStatuses = function(r) { var n = this, a = n.hasError, i = n.thrownError, o = n.isStopped; a ? r.error(i) : o && r.complete(); }, t.prototype.asObservable = function() { var r = new Ht(); return r.source = this, r; }, t.create = function(r, n) { return new MR(r, n); }, t; }(Ht), MR = function(e) { Ti(t, e); function t(r, n) { var a = e.call(this) || this; return a.destination = r, a.source = n, a; } return t.prototype.next = function(r) { var n, a; (a = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || a === void 0 || a.call(n, r); }, t.prototype.error = function(r) { var n, a; (a = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || a === void 0 || a.call(n, r); }, t.prototype.complete = function() { var r, n; (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r); }, t.prototype._subscribe = function(r) { var n, a; return (a = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && a !== void 0 ? a : tM; }, t; }(_e), Kt = function(e) { Ti(t, e); function t(r) { var n = e.call(this) || this; return n._value = r, n; } return Object.defineProperty(t.prototype, "value", {