diff --git a/custom_components/nestquest/www/nestquest-cards.js b/custom_components/nestquest/www/nestquest-cards.js
index e60d13e..1dca0fe 100644
--- a/custom_components/nestquest/www/nestquest-cards.js
+++ b/custom_components/nestquest/www/nestquest-cards.js
@@ -1,15 +1,15 @@
-const L = globalThis, et = L.ShadowRoot && (L.ShadyCSS === void 0 || L.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, nt = /* @__PURE__ */ Symbol(), at = /* @__PURE__ */ new WeakMap();
+const B = globalThis, nt = B.ShadowRoot && (B.ShadyCSS === void 0 || B.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, it = /* @__PURE__ */ Symbol(), lt = /* @__PURE__ */ new WeakMap();
let zt = class {
constructor(t, e, n) {
- if (this._$cssResult$ = !0, n !== nt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
+ if (this._$cssResult$ = !0, n !== it) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
this.cssText = t, this.t = e;
}
get styleSheet() {
let t = this.o;
const e = this.t;
- if (et && t === void 0) {
+ if (nt && t === void 0) {
const n = e !== void 0 && e.length === 1;
- n && (t = at.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && at.set(e, t));
+ n && (t = lt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && lt.set(e, t));
}
return t;
}
@@ -17,101 +17,101 @@ let zt = class {
return this.cssText;
}
};
-const v = (s) => new zt(typeof s == "string" ? s : s + "", void 0, nt), Pt = (s, ...t) => {
- const e = s.length === 1 ? s[0] : t.reduce((n, i, r) => n + ((o) => {
+const b = (i) => new zt(typeof i == "string" ? i : i + "", void 0, it), Pt = (i, ...t) => {
+ const e = i.length === 1 ? i[0] : t.reduce((n, s, r) => 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.");
- })(i) + s[r + 1], s[0]);
- return new zt(e, s, nt);
-}, Bt = (s, t) => {
- if (et) s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
+ })(s) + i[r + 1], i[0]);
+ return new zt(e, i, it);
+}, Bt = (i, t) => {
+ if (nt) i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
else for (const e of t) {
- const n = document.createElement("style"), i = L.litNonce;
- i !== void 0 && n.setAttribute("nonce", i), n.textContent = e.cssText, s.appendChild(n);
+ const n = document.createElement("style"), s = B.litNonce;
+ s !== void 0 && n.setAttribute("nonce", s), n.textContent = e.cssText, i.appendChild(n);
}
-}, lt = et ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
+}, dt = nt ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
let e = "";
for (const n of t.cssRules) e += n.cssText;
- return v(e);
-})(s) : s;
-const { is: Ft, defineProperty: Qt, getOwnPropertyDescriptor: Wt, getOwnPropertyNames: Zt, getOwnPropertySymbols: Vt, getPrototypeOf: Gt } = Object, Q = globalThis, dt = Q.trustedTypes, Kt = dt ? dt.emptyScript : "", Jt = Q.reactiveElementPolyfillSupport, P = (s, t) => s, tt = { toAttribute(s, t) {
+ return b(e);
+})(i) : i;
+const { is: Ft, defineProperty: Qt, getOwnPropertyDescriptor: Wt, getOwnPropertyNames: Zt, getOwnPropertySymbols: Vt, getPrototypeOf: Gt } = Object, W = globalThis, ct = W.trustedTypes, Kt = ct ? ct.emptyScript : "", Jt = W.reactiveElementPolyfillSupport, I = (i, t) => i, et = { toAttribute(i, t) {
switch (t) {
case Boolean:
- s = s ? Kt : null;
+ i = i ? Kt : null;
break;
case Object:
case Array:
- s = s == null ? s : JSON.stringify(s);
+ i = i == null ? i : JSON.stringify(i);
}
- return s;
-}, fromAttribute(s, t) {
- let e = s;
+ return i;
+}, fromAttribute(i, t) {
+ let e = i;
switch (t) {
case Boolean:
- e = s !== null;
+ e = i !== null;
break;
case Number:
- e = s === null ? null : Number(s);
+ e = i === null ? null : Number(i);
break;
case Object:
case Array:
try {
- e = JSON.parse(s);
+ e = JSON.parse(i);
} catch {
e = null;
}
}
return e;
-} }, It = (s, t) => !Ft(s, t), ct = { attribute: !0, type: String, converter: tt, reflect: !1, useDefault: !1, hasChanged: It };
-Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), Q.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
-let N = class extends HTMLElement {
+} }, It = (i, t) => !Ft(i, t), pt = { attribute: !0, type: String, converter: et, reflect: !1, useDefault: !1, hasChanged: It };
+Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), W.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
+let T = class extends HTMLElement {
static addInitializer(t) {
this._$Ei(), (this.l ??= []).push(t);
}
static get observedAttributes() {
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
}
- static createProperty(t, e = ct) {
+ static createProperty(t, e = pt) {
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
- const n = /* @__PURE__ */ Symbol(), i = this.getPropertyDescriptor(t, n, e);
- i !== void 0 && Qt(this.prototype, t, i);
+ const n = /* @__PURE__ */ Symbol(), s = this.getPropertyDescriptor(t, n, e);
+ s !== void 0 && Qt(this.prototype, t, s);
}
}
static getPropertyDescriptor(t, e, n) {
- const { get: i, set: r } = Wt(this.prototype, t) ?? { get() {
+ const { get: s, set: r } = Wt(this.prototype, t) ?? { get() {
return this[e];
}, set(o) {
this[e] = o;
} };
- return { get: i, set(o) {
- const l = i?.call(this);
+ return { get: s, set(o) {
+ const l = s?.call(this);
r?.call(this, o), this.requestUpdate(t, l, n);
}, configurable: !0, enumerable: !0 };
}
static getPropertyOptions(t) {
- return this.elementProperties.get(t) ?? ct;
+ return this.elementProperties.get(t) ?? pt;
}
static _$Ei() {
- if (this.hasOwnProperty(P("elementProperties"))) return;
+ if (this.hasOwnProperty(I("elementProperties"))) return;
const t = Gt(this);
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
}
static finalize() {
- if (this.hasOwnProperty(P("finalized"))) return;
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(P("properties"))) {
+ if (this.hasOwnProperty(I("finalized"))) return;
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(I("properties"))) {
const e = this.properties, n = [...Zt(e), ...Vt(e)];
- for (const i of n) this.createProperty(i, e[i]);
+ for (const s of n) this.createProperty(s, e[s]);
}
const t = this[Symbol.metadata];
if (t !== null) {
const e = litPropertyMetadata.get(t);
- if (e !== void 0) for (const [n, i] of e) this.elementProperties.set(n, i);
+ if (e !== void 0) for (const [n, s] of e) this.elementProperties.set(n, s);
}
this._$Eh = /* @__PURE__ */ new Map();
for (const [e, n] of this.elementProperties) {
- const i = this._$Eu(e, n);
- i !== void 0 && this._$Eh.set(i, e);
+ const s = this._$Eu(e, n);
+ s !== void 0 && this._$Eh.set(s, e);
}
this.elementStyles = this.finalizeStyles(this.styles);
}
@@ -119,8 +119,8 @@ let N = class extends HTMLElement {
const e = [];
if (Array.isArray(t)) {
const n = new Set(t.flat(1 / 0).reverse());
- for (const i of n) e.unshift(lt(i));
- } else t !== void 0 && e.push(lt(t));
+ for (const s of n) e.unshift(dt(s));
+ } else t !== void 0 && e.push(dt(t));
return e;
}
static _$Eu(t, e) {
@@ -160,31 +160,31 @@ let N = class extends HTMLElement {
this._$AK(t, n);
}
_$ET(t, e) {
- const n = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, n);
- if (i !== void 0 && n.reflect === !0) {
- const r = (n.converter?.toAttribute !== void 0 ? n.converter : tt).toAttribute(e, n.type);
- this._$Em = t, r == null ? this.removeAttribute(i) : this.setAttribute(i, r), this._$Em = null;
+ const n = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, n);
+ if (s !== void 0 && n.reflect === !0) {
+ const r = (n.converter?.toAttribute !== void 0 ? n.converter : et).toAttribute(e, n.type);
+ this._$Em = t, r == null ? this.removeAttribute(s) : this.setAttribute(s, r), this._$Em = null;
}
}
_$AK(t, e) {
- const n = this.constructor, i = n._$Eh.get(t);
- if (i !== void 0 && this._$Em !== i) {
- const r = n.getPropertyOptions(i), o = typeof r.converter == "function" ? { fromAttribute: r.converter } : r.converter?.fromAttribute !== void 0 ? r.converter : tt;
- this._$Em = i;
+ const n = this.constructor, s = n._$Eh.get(t);
+ if (s !== void 0 && this._$Em !== s) {
+ const r = n.getPropertyOptions(s), o = typeof r.converter == "function" ? { fromAttribute: r.converter } : r.converter?.fromAttribute !== void 0 ? r.converter : et;
+ this._$Em = s;
const l = o.fromAttribute(e, r.type);
- this[i] = l ?? this._$Ej?.get(i) ?? l, this._$Em = null;
+ this[s] = l ?? this._$Ej?.get(s) ?? l, this._$Em = null;
}
}
- requestUpdate(t, e, n, i = !1, r) {
+ requestUpdate(t, e, n, s = !1, r) {
if (t !== void 0) {
const o = this.constructor;
- if (i === !1 && (r = this[t]), n ??= o.getPropertyOptions(t), !((n.hasChanged ?? It)(r, e) || n.useDefault && n.reflect && r === this._$Ej?.get(t) && !this.hasAttribute(o._$Eu(t, n)))) return;
+ if (s === !1 && (r = this[t]), n ??= o.getPropertyOptions(t), !((n.hasChanged ?? It)(r, e) || n.useDefault && n.reflect && r === this._$Ej?.get(t) && !this.hasAttribute(o._$Eu(t, n)))) return;
this.C(t, e, n);
}
this.isUpdatePending === !1 && (this._$ES = this._$EP());
}
- C(t, e, { useDefault: n, reflect: i, wrapped: r }, o) {
- n && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, o ?? e ?? this[t]), r !== !0 || o !== void 0) || (this._$AL.has(t) || (this.hasUpdated || n || (e = void 0), this._$AL.set(t, e)), i === !0 && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t));
+ C(t, e, { useDefault: n, reflect: s, wrapped: r }, o) {
+ n && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, o ?? e ?? this[t]), r !== !0 || o !== void 0) || (this._$AL.has(t) || (this.hasUpdated || n || (e = void 0), this._$AL.set(t, e)), s === !0 && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t));
}
async _$EP() {
this.isUpdatePending = !0;
@@ -203,13 +203,13 @@ let N = class extends HTMLElement {
if (!this.isUpdatePending) return;
if (!this.hasUpdated) {
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
- for (const [i, r] of this._$Ep) this[i] = r;
+ for (const [s, r] of this._$Ep) this[s] = r;
this._$Ep = void 0;
}
const n = this.constructor.elementProperties;
- if (n.size > 0) for (const [i, r] of n) {
- const { wrapped: o } = r, l = this[i];
- o !== !0 || this._$AL.has(i) || l === void 0 || this.C(i, void 0, r, l);
+ if (n.size > 0) for (const [s, r] of n) {
+ const { wrapped: o } = r, l = this[s];
+ o !== !0 || this._$AL.has(s) || l === void 0 || this.C(s, void 0, r, l);
}
}
let t = !1;
@@ -246,54 +246,54 @@ let N = class extends HTMLElement {
firstUpdated(t) {
}
};
-N.elementStyles = [], N.shadowRootOptions = { mode: "open" }, N[P("elementProperties")] = /* @__PURE__ */ new Map(), N[P("finalized")] = /* @__PURE__ */ new Map(), Jt?.({ ReactiveElement: N }), (Q.reactiveElementVersions ??= []).push("2.1.2");
-const st = globalThis, pt = (s) => s, B = st.trustedTypes, ht = B ? B.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Ut = "$lit$", $ = `lit$${Math.random().toFixed(9).slice(2)}$`, Dt = "?" + $, Xt = `<${Dt}>`, S = document, I = () => S.createComment(""), U = (s) => s === null || typeof s != "object" && typeof s != "function", it = Array.isArray, Yt = (s) => it(s) || typeof s?.[Symbol.iterator] == "function", V = `[
-\f\r]`, O = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ut = /-->/g, ft = />/g, w = RegExp(`>|${V}(?:([^\\s"'>=/]+)(${V}*=${V}*(?:[^
-\f\r"'\`<>=]|("|')|))|$)`, "g"), mt = /'/g, gt = /"/g, Ht = /^(?:script|style|textarea|title)$/i, te = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), c = te(1), E = /* @__PURE__ */ Symbol.for("lit-noChange"), g = /* @__PURE__ */ Symbol.for("lit-nothing"), _t = /* @__PURE__ */ new WeakMap(), A = S.createTreeWalker(S, 129);
-function jt(s, t) {
- if (!it(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
- return ht !== void 0 ? ht.createHTML(t) : t;
+T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[I("elementProperties")] = /* @__PURE__ */ new Map(), T[I("finalized")] = /* @__PURE__ */ new Map(), Jt?.({ ReactiveElement: T }), (W.reactiveElementVersions ??= []).push("2.1.2");
+const st = globalThis, ht = (i) => i, F = st.trustedTypes, ut = F ? F.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Dt = "$lit$", w = `lit$${Math.random().toFixed(9).slice(2)}$`, Ut = "?" + w, Xt = `<${Ut}>`, S = document, D = () => S.createComment(""), U = (i) => i === null || typeof i != "object" && typeof i != "function", rt = Array.isArray, Yt = (i) => rt(i) || typeof i?.[Symbol.iterator] == "function", G = `[
+\f\r]`, z = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ft = /-->/g, mt = />/g, q = RegExp(`>|${G}(?:([^\\s"'>=/]+)(${G}*=${G}*(?:[^
+\f\r"'\`<>=]|("|')|))|$)`, "g"), gt = /'/g, _t = /"/g, jt = /^(?:script|style|textarea|title)$/i, te = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), c = te(1), N = /* @__PURE__ */ Symbol.for("lit-noChange"), g = /* @__PURE__ */ Symbol.for("lit-nothing"), yt = /* @__PURE__ */ new WeakMap(), C = S.createTreeWalker(S, 129);
+function Ht(i, t) {
+ if (!rt(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
+ return ut !== void 0 ? ut.createHTML(t) : t;
}
-const ee = (s, t) => {
- const e = s.length - 1, n = [];
- let i, r = t === 2 ? "" : t === 3 ? "" : "")), n];
};
-class D {
+class j {
constructor({ strings: t, _$litType$: e }, n) {
- let i;
+ let s;
this.parts = [];
let r = 0, o = 0;
const l = t.length - 1, a = this.parts, [p, u] = ee(t, e);
- if (this.el = D.createElement(p, n), A.currentNode = this.el.content, e === 2 || e === 3) {
+ if (this.el = j.createElement(p, n), C.currentNode = this.el.content, e === 2 || e === 3) {
const d = this.el.content.firstChild;
d.replaceWith(...d.childNodes);
}
- for (; (i = A.nextNode()) !== null && a.length < l; ) {
- if (i.nodeType === 1) {
- if (i.hasAttributes()) for (const d of i.getAttributeNames()) if (d.endsWith(Ut)) {
- const f = u[o++], h = i.getAttribute(d).split($), m = /([.?@])?(.*)/.exec(f);
- a.push({ type: 1, index: r, name: m[2], strings: h, ctor: m[1] === "." ? se : m[1] === "?" ? ie : m[1] === "@" ? re : W }), i.removeAttribute(d);
- } else d.startsWith($) && (a.push({ type: 6, index: r }), i.removeAttribute(d));
- if (Ht.test(i.tagName)) {
- const d = i.textContent.split($), f = d.length - 1;
+ for (; (s = C.nextNode()) !== null && a.length < l; ) {
+ if (s.nodeType === 1) {
+ if (s.hasAttributes()) for (const d of s.getAttributeNames()) if (d.endsWith(Dt)) {
+ const f = u[o++], h = s.getAttribute(d).split(w), m = /([.?@])?(.*)/.exec(f);
+ a.push({ type: 1, index: r, name: m[2], strings: h, ctor: m[1] === "." ? ie : m[1] === "?" ? se : m[1] === "@" ? re : Z }), s.removeAttribute(d);
+ } else d.startsWith(w) && (a.push({ type: 6, index: r }), s.removeAttribute(d));
+ if (jt.test(s.tagName)) {
+ const d = s.textContent.split(w), f = d.length - 1;
if (f > 0) {
- i.textContent = B ? B.emptyScript : "";
- for (let h = 0; h < f; h++) i.append(d[h], I()), A.nextNode(), a.push({ type: 2, index: ++r });
- i.append(d[f], I());
+ s.textContent = F ? F.emptyScript : "";
+ for (let h = 0; h < f; h++) s.append(d[h], D()), C.nextNode(), a.push({ type: 2, index: ++r });
+ s.append(d[f], D());
}
}
- } else if (i.nodeType === 8) if (i.data === Dt) a.push({ type: 2, index: r });
+ } else if (s.nodeType === 8) if (s.data === Ut) a.push({ type: 2, index: r });
else {
let d = -1;
- for (; (d = i.data.indexOf($, d + 1)) !== -1; ) a.push({ type: 7, index: r }), d += $.length - 1;
+ for (; (d = s.data.indexOf(w, d + 1)) !== -1; ) a.push({ type: 7, index: r }), d += w.length - 1;
}
r++;
}
@@ -303,11 +303,11 @@ class D {
return n.innerHTML = t, n;
}
}
-function T(s, t, e = s, n) {
- if (t === E) return t;
- let i = n !== void 0 ? e._$Co?.[n] : e._$Cl;
+function E(i, t, e = i, n) {
+ if (t === N) return t;
+ let s = n !== void 0 ? e._$Co?.[n] : e._$Cl;
const r = U(t) ? void 0 : t._$litDirective$;
- return i?.constructor !== r && (i?._$AO?.(!1), r === void 0 ? i = void 0 : (i = new r(s), i._$AT(s, e, n)), n !== void 0 ? (e._$Co ??= [])[n] = i : e._$Cl = i), i !== void 0 && (t = T(s, i._$AS(s, t.values), i, n)), t;
+ return s?.constructor !== r && (s?._$AO?.(!1), r === void 0 ? s = void 0 : (s = new r(i), s._$AT(i, e, n)), n !== void 0 ? (e._$Co ??= [])[n] = s : e._$Cl = s), s !== void 0 && (t = E(i, s._$AS(i, t.values), s, n)), t;
}
class ne {
constructor(t, e) {
@@ -320,29 +320,29 @@ class ne {
return this._$AM._$AU;
}
u(t) {
- const { el: { content: e }, parts: n } = this._$AD, i = (t?.creationScope ?? S).importNode(e, !0);
- A.currentNode = i;
- let r = A.nextNode(), o = 0, l = 0, a = n[0];
+ const { el: { content: e }, parts: n } = this._$AD, s = (t?.creationScope ?? S).importNode(e, !0);
+ C.currentNode = s;
+ let r = C.nextNode(), o = 0, l = 0, a = n[0];
for (; a !== void 0; ) {
if (o === a.index) {
let p;
- a.type === 2 ? p = new M(r, r.nextSibling, this, t) : a.type === 1 ? p = new a.ctor(r, a.name, a.strings, this, t) : a.type === 6 && (p = new oe(r, this, t)), this._$AV.push(p), a = n[++l];
+ a.type === 2 ? p = new O(r, r.nextSibling, this, t) : a.type === 1 ? p = new a.ctor(r, a.name, a.strings, this, t) : a.type === 6 && (p = new oe(r, this, t)), this._$AV.push(p), a = n[++l];
}
- o !== a?.index && (r = A.nextNode(), o++);
+ o !== a?.index && (r = C.nextNode(), o++);
}
- return A.currentNode = S, i;
+ return C.currentNode = S, s;
}
p(t) {
let e = 0;
for (const n of this._$AV) n !== void 0 && (n.strings !== void 0 ? (n._$AI(t, n, e), e += n.strings.length - 2) : n._$AI(t[e])), e++;
}
}
-class M {
+class O {
get _$AU() {
return this._$AM?._$AU ?? this._$Cv;
}
- constructor(t, e, n, i) {
- this.type = 2, this._$AH = g, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options = i, this._$Cv = i?.isConnected ?? !0;
+ constructor(t, e, n, s) {
+ this.type = 2, this._$AH = g, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = n, this.options = s, this._$Cv = s?.isConnected ?? !0;
}
get parentNode() {
let t = this._$AA.parentNode;
@@ -356,7 +356,7 @@ class M {
return this._$AB;
}
_$AI(t, e = this) {
- t = T(this, t, e), U(t) ? t === g || t == null || t === "" ? (this._$AH !== g && this._$AR(), this._$AH = g) : t !== this._$AH && t !== E && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Yt(t) ? this.k(t) : this._(t);
+ t = E(this, t, e), U(t) ? t === g || t == null || t === "" ? (this._$AH !== g && this._$AR(), this._$AH = g) : t !== this._$AH && t !== N && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Yt(t) ? this.k(t) : this._(t);
}
O(t) {
return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -368,60 +368,60 @@ class M {
this._$AH !== g && U(this._$AH) ? this._$AA.nextSibling.data = t : this.T(S.createTextNode(t)), this._$AH = t;
}
$(t) {
- const { values: e, _$litType$: n } = t, i = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = D.createElement(jt(n.h, n.h[0]), this.options)), n);
- if (this._$AH?._$AD === i) this._$AH.p(e);
+ const { values: e, _$litType$: n } = t, s = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = j.createElement(Ht(n.h, n.h[0]), this.options)), n);
+ if (this._$AH?._$AD === s) this._$AH.p(e);
else {
- const r = new ne(i, this), o = r.u(this.options);
+ const r = new ne(s, this), o = r.u(this.options);
r.p(e), this.T(o), this._$AH = r;
}
}
_$AC(t) {
- let e = _t.get(t.strings);
- return e === void 0 && _t.set(t.strings, e = new D(t)), e;
+ let e = yt.get(t.strings);
+ return e === void 0 && yt.set(t.strings, e = new j(t)), e;
}
k(t) {
- it(this._$AH) || (this._$AH = [], this._$AR());
+ rt(this._$AH) || (this._$AH = [], this._$AR());
const e = this._$AH;
- let n, i = 0;
- for (const r of t) i === e.length ? e.push(n = new M(this.O(I()), this.O(I()), this, this.options)) : n = e[i], n._$AI(r), i++;
- i < e.length && (this._$AR(n && n._$AB.nextSibling, i), e.length = i);
+ let n, s = 0;
+ for (const r of t) s === e.length ? e.push(n = new O(this.O(D()), this.O(D()), this, this.options)) : n = e[s], n._$AI(r), s++;
+ s < e.length && (this._$AR(n && n._$AB.nextSibling, s), e.length = s);
}
_$AR(t = this._$AA.nextSibling, e) {
for (this._$AP?.(!1, !0, e); t !== this._$AB; ) {
- const n = pt(t).nextSibling;
- pt(t).remove(), t = n;
+ const n = ht(t).nextSibling;
+ ht(t).remove(), t = n;
}
}
setConnected(t) {
this._$AM === void 0 && (this._$Cv = t, this._$AP?.(t));
}
}
-class W {
+class Z {
get tagName() {
return this.element.tagName;
}
get _$AU() {
return this._$AM._$AU;
}
- constructor(t, e, n, i, r) {
- this.type = 1, this._$AH = g, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = r, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = g;
+ constructor(t, e, n, s, r) {
+ this.type = 1, this._$AH = g, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = r, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = g;
}
- _$AI(t, e = this, n, i) {
+ _$AI(t, e = this, n, s) {
const r = this.strings;
let o = !1;
- if (r === void 0) t = T(this, t, e, 0), o = !U(t) || t !== this._$AH && t !== E, o && (this._$AH = t);
+ if (r === void 0) t = E(this, t, e, 0), o = !U(t) || t !== this._$AH && t !== N, o && (this._$AH = t);
else {
const l = t;
let a, p;
- for (t = r[0], a = 0; a < r.length - 1; a++) p = T(this, l[n + a], e, a), p === E && (p = this._$AH[a]), o ||= !U(p) || p !== this._$AH[a], p === g ? t = g : t !== g && (t += (p ?? "") + r[a + 1]), this._$AH[a] = p;
+ for (t = r[0], a = 0; a < r.length - 1; a++) p = E(this, l[n + a], e, a), p === N && (p = this._$AH[a]), o ||= !U(p) || p !== this._$AH[a], p === g ? t = g : t !== g && (t += (p ?? "") + r[a + 1]), this._$AH[a] = p;
}
- o && !i && this.j(t);
+ o && !s && this.j(t);
}
j(t) {
t === g ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
}
}
-class se extends W {
+class ie extends Z {
constructor() {
super(...arguments), this.type = 3;
}
@@ -429,7 +429,7 @@ class se extends W {
this.element[this.name] = t === g ? void 0 : t;
}
}
-class ie extends W {
+class se extends Z {
constructor() {
super(...arguments), this.type = 4;
}
@@ -437,14 +437,14 @@ class ie extends W {
this.element.toggleAttribute(this.name, !!t && t !== g);
}
}
-class re extends W {
- constructor(t, e, n, i, r) {
- super(t, e, n, i, r), this.type = 5;
+class re extends Z {
+ constructor(t, e, n, s, r) {
+ super(t, e, n, s, r), this.type = 5;
}
_$AI(t, e = this) {
- if ((t = T(this, t, e, 0) ?? g) === E) return;
- const n = this._$AH, i = t === g && n !== g || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, r = t !== g && (n === g || i);
- i && this.element.removeEventListener(this.name, this, n), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
+ if ((t = E(this, t, e, 0) ?? g) === N) return;
+ const n = this._$AH, s = t === g && n !== g || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, r = t !== g && (n === g || s);
+ s && this.element.removeEventListener(this.name, this, n), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
}
handleEvent(t) {
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
@@ -458,22 +458,22 @@ class oe {
return this._$AM._$AU;
}
_$AI(t) {
- T(this, t);
+ E(this, t);
}
}
-const ae = { I: M }, le = st.litHtmlPolyfillSupport;
-le?.(D, M), (st.litHtmlVersions ??= []).push("3.3.3");
-const de = (s, t, e) => {
+const ae = { I: O }, le = st.litHtmlPolyfillSupport;
+le?.(j, O), (st.litHtmlVersions ??= []).push("3.3.3");
+const de = (i, t, e) => {
const n = e?.renderBefore ?? t;
- let i = n._$litPart$;
- if (i === void 0) {
+ let s = n._$litPart$;
+ if (s === void 0) {
const r = e?.renderBefore ?? null;
- n._$litPart$ = i = new M(t.insertBefore(I(), r), r, void 0, e ?? {});
+ n._$litPart$ = s = new O(t.insertBefore(D(), r), r, void 0, e ?? {});
}
- return i._$AI(s), i;
+ return s._$AI(i), s;
};
-const rt = globalThis;
-let C = class extends N {
+const ot = globalThis;
+let A = class extends T {
constructor() {
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
}
@@ -492,49 +492,49 @@ let C = class extends N {
super.disconnectedCallback(), this._$Do?.setConnected(!1);
}
render() {
- return E;
+ return N;
}
};
-C._$litElement$ = !0, C.finalized = !0, rt.litElementHydrateSupport?.({ LitElement: C });
-const ce = rt.litElementPolyfillSupport;
-ce?.({ LitElement: C });
-(rt.litElementVersions ??= []).push("4.2.2");
-const Rt = ':host{--nq-p-parchment-top: #f0e4c7;--nq-p-parchment-bottom: #ddcca3;--nq-p-parchment: radial-gradient(ellipse at 25% 10%, rgba(255,255,255,.5), transparent 55%), radial-gradient(ellipse at 85% 90%, rgba(120,86,44,.28), transparent 60%), repeating-linear-gradient(93deg, rgba(150,115,70,.05) 0 2px, transparent 2px 6px), repeating-linear-gradient(2deg, rgba(150,115,70,.04) 0 3px, transparent 3px 7px), linear-gradient(var(--nq-p-parchment-top), var(--nq-p-parchment-bottom));--nq-p-vignette: inset 0 0 200px rgba(80,52,20,.35);--nq-p-card-open: linear-gradient(#fdf7e6, #f2e7c9);--nq-p-card-done: linear-gradient(#f0e8d3, #e6dcc2);--nq-p-card-panel: linear-gradient(#fcf6e6, #f1e6ca);--nq-p-card-border: rgba(120,88,48,.38);--nq-p-panel-border: rgba(92,62,26,.4);--nq-p-card-shadow: 0 3px 0 rgba(120,88,48,.2), inset 0 1px 0 rgba(255,255,255,.7);--nq-p-panel-shadow: 0 6px 0 rgba(92,62,26,.18), inset 0 2px 0 rgba(255,255,255,.7);--nq-p-frame-outer: 2px solid rgba(92,62,26,.45);--nq-p-frame-inner: 1px solid rgba(92,62,26,.28);--nq-p-rule: 2px solid rgba(92,62,26,.35);--nq-p-ink: #2b1f14;--nq-p-ink-secondary: #5c452a;--nq-p-ink-muted: #6f6455;--nq-p-ink-away: #4d4433;--nq-p-ink-late: #8f1526;--nq-brand-blue: #3B3AB8;--nq-brand-purple: #A035CC;--nq-brand-gradient: linear-gradient(135deg, var(--nq-brand-blue), var(--nq-brand-purple));--nq-p-icon-tile: var(--nq-brand-gradient);--nq-p-icon-tile-done: rgba(92,62,26,.16);--nq-p-crest: var(--nq-brand-gradient);--nq-p-crest-away: linear-gradient(135deg, #6b6b7a, #7a7286);--nq-p-seal: radial-gradient(circle at 35% 30%, #a8283a, #6d1322);--nq-p-seal-shadow: 0 4px 10px rgba(60,10,20,.4), inset 0 0 0 4px rgba(255,255,255,.14);--nq-p-seal-size: 78px;--nq-p-dock-bg: rgba(43,31,20,.9);--nq-p-dock-ink: #f7efdb;--nq-p-dock-ink-secondary: #d8c9a6;--nq-p-dock-divider: rgba(233,220,189,.3);--nq-p-dock-height: 84px;--nq-p-font-display: "Cinzel Decorative", Cinzel, serif;--nq-p-font-heading: Cinzel, serif;--nq-p-font-body: Nunito, system-ui, sans-serif;--nq-p-size-hero: 86px;--nq-p-size-wordmark: 66px;--nq-p-size-title: 56px;--nq-p-size-name: 48px;--nq-p-size-section: 32px;--nq-p-size-quest: 30px;--nq-p-size-body: 22px;--nq-p-size-label: 21px;--nq-p-track-label: .14em;--nq-p-track-kicker: .3em;--nq-p-quest-min-height: 116px;--nq-p-quest-gap: 24px;--nq-p-quest-pad: 22px;--nq-p-tile-size: 64px;--nq-p-button-height: 72px;--nq-p-button-min-width: 150px;--nq-p-confirm-button: 108px;--nq-p-radius-card: 12px;--nq-p-radius-panel: 20px;--nq-p-radius-pill: 9999px;--nq-p-page-inset: 62px;--nq-p-frame-inset: 26px;--nq-ease-out: cubic-bezier(0, 0, .2, 1);--nq-dur-micro: .12s;--nq-dur-base: .2s;--nq-dur-modal: .35s}';
-function ot(s) {
- window.customCards = window.customCards ?? [], window.customCards.push(s);
+A._$litElement$ = !0, A.finalized = !0, ot.litElementHydrateSupport?.({ LitElement: A });
+const ce = ot.litElementPolyfillSupport;
+ce?.({ LitElement: A });
+(ot.litElementVersions ??= []).push("4.2.2");
+const Lt = ':host{--nq-p-parchment-top: #f0e4c7;--nq-p-parchment-bottom: #ddcca3;--nq-p-parchment: radial-gradient(ellipse at 25% 10%, rgba(255,255,255,.5), transparent 55%), radial-gradient(ellipse at 85% 90%, rgba(120,86,44,.28), transparent 60%), repeating-linear-gradient(93deg, rgba(150,115,70,.05) 0 2px, transparent 2px 6px), repeating-linear-gradient(2deg, rgba(150,115,70,.04) 0 3px, transparent 3px 7px), linear-gradient(var(--nq-p-parchment-top), var(--nq-p-parchment-bottom));--nq-p-vignette: inset 0 0 200px rgba(80,52,20,.35);--nq-p-card-open: linear-gradient(#fdf7e6, #f2e7c9);--nq-p-card-done: linear-gradient(#f0e8d3, #e6dcc2);--nq-p-card-panel: linear-gradient(#fcf6e6, #f1e6ca);--nq-p-card-border: rgba(120,88,48,.38);--nq-p-panel-border: rgba(92,62,26,.4);--nq-p-card-shadow: 0 3px 0 rgba(120,88,48,.2), inset 0 1px 0 rgba(255,255,255,.7);--nq-p-panel-shadow: 0 6px 0 rgba(92,62,26,.18), inset 0 2px 0 rgba(255,255,255,.7);--nq-p-frame-outer: 2px solid rgba(92,62,26,.45);--nq-p-frame-inner: 1px solid rgba(92,62,26,.28);--nq-p-rule: 2px solid rgba(92,62,26,.35);--nq-p-ink: #2b1f14;--nq-p-ink-secondary: #5c452a;--nq-p-ink-muted: #6f6455;--nq-p-ink-away: #4d4433;--nq-p-ink-late: #8f1526;--nq-brand-blue: #3B3AB8;--nq-brand-purple: #A035CC;--nq-brand-gradient: linear-gradient(135deg, var(--nq-brand-blue), var(--nq-brand-purple));--nq-p-icon-tile: var(--nq-brand-gradient);--nq-p-icon-tile-done: rgba(92,62,26,.16);--nq-p-crest: var(--nq-brand-gradient);--nq-p-crest-away: linear-gradient(135deg, #6b6b7a, #7a7286);--nq-p-seal: radial-gradient(circle at 35% 30%, #a8283a, #6d1322);--nq-p-seal-shadow: 0 4px 10px rgba(60,10,20,.4), inset 0 0 0 4px rgba(255,255,255,.14);--nq-p-seal-size: 78px;--nq-p-dock-bg: rgba(43,31,20,.9);--nq-p-dock-ink: #f7efdb;--nq-p-dock-ink-secondary: #d8c9a6;--nq-p-dock-divider: rgba(233,220,189,.3);--nq-p-dock-height: 84px;--nq-p-font-display: "Cinzel Decorative", Cinzel, serif;--nq-p-font-heading: Cinzel, serif;--nq-p-font-body: Nunito, system-ui, sans-serif;--nq-p-size-hero: 86px;--nq-p-size-wordmark: 66px;--nq-p-size-title: 56px;--nq-p-size-name: 48px;--nq-p-size-section: 32px;--nq-p-size-quest: 30px;--nq-p-size-body: 22px;--nq-p-size-label: 21px;--nq-p-track-label: .14em;--nq-p-track-kicker: .3em;--nq-p-quest-min-height: 116px;--nq-p-quest-gap: 24px;--nq-p-quest-pad: 22px;--nq-p-tile-size: 64px;--nq-p-button-height: 72px;--nq-p-button-min-width: 150px;--nq-p-confirm-button: 108px;--nq-p-radius-card: 12px;--nq-p-radius-panel: 20px;--nq-p-radius-pill: 9999px;--nq-p-page-inset: 62px;--nq-p-frame-inset: 26px;--nq-ease-out: cubic-bezier(0, 0, .2, 1);--nq-dur-micro: .12s;--nq-dur-base: .2s;--nq-dur-modal: .35s}';
+function at(i) {
+ window.customCards = window.customCards ?? [], window.customCards.push(i);
}
-const yt = /* @__PURE__ */ new Map();
-function F(s, t) {
- const e = `${s ?? "local"}|${JSON.stringify(t)}`, n = yt.get(e);
+const vt = /* @__PURE__ */ new Map();
+function Q(i, t) {
+ const e = `${i ?? "local"}|${JSON.stringify(t)}`, n = vt.get(e);
if (n)
return n;
- let i;
+ let s;
try {
- i = new Intl.DateTimeFormat("en-US", {
+ s = new Intl.DateTimeFormat("en-US", {
...t,
- ...s ? { timeZone: s } : {}
+ ...i ? { timeZone: i } : {}
});
} catch {
- i = new Intl.DateTimeFormat("en-US", t);
+ s = new Intl.DateTimeFormat("en-US", t);
}
- return yt.set(e, i), i;
+ return vt.set(e, s), s;
}
-function pe(s) {
- const t = s?.config;
+function pe(i) {
+ const t = i?.config;
if (!t || typeof t != "object")
return;
const e = t.time_zone;
return typeof e == "string" && e.trim() ? e.trim() : void 0;
}
-function G(s, t) {
- return `${F(t, { weekday: "long" }).format(s)}, ${F(t, { month: "short", day: "numeric" }).format(s)}`;
+function K(i, t) {
+ return `${Q(t, { weekday: "long" }).format(i)}, ${Q(t, { month: "short", day: "numeric" }).format(i)}`;
}
-function he(s, t) {
- return F(t, {
+function he(i, t) {
+ return Q(t, {
hour: "numeric",
minute: "2-digit",
hour12: !0
- }).format(s);
+ }).format(i);
}
const ue = {
"clear-night": "Clear",
@@ -569,26 +569,26 @@ const ue = {
windy: "A blustery day",
"windy-variant": "A blustery day"
};
-function vt(s) {
- return typeof s == "string" ? s.trim() : "";
+function bt(i) {
+ return typeof i == "string" ? i.trim() : "";
}
-function K(s, t) {
- if (s == null || s === "")
+function J(i, t) {
+ if (i == null || i === "")
return t;
- const e = typeof s == "number" ? s : Number(s);
+ const e = typeof i == "number" ? i : Number(i);
return Number.isFinite(e) ? e : t;
}
-function bt(s) {
- return Number.isFinite(s) ? Math.min(100, Math.max(0, s)) : 0;
+function xt(i) {
+ return Number.isFinite(i) ? Math.min(100, Math.max(0, i)) : 0;
}
-function xt(s) {
- return Math.max(0, Math.round(s));
+function $t(i) {
+ return Math.max(0, Math.round(i));
}
-function me(s) {
- return s.split(/[-_]+/).filter(Boolean).map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(" ");
+function me(i) {
+ return i.split(/[-_]+/).filter(Boolean).map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(" ");
}
-function ge(s, t) {
- const e = F(t, {
+function ge(i, t) {
+ const e = Q(t, {
year: "numeric",
month: "2-digit",
day: "2-digit",
@@ -596,10 +596,10 @@ function ge(s, t) {
minute: "2-digit",
second: "2-digit",
hourCycle: "h23"
- }).formatToParts(new Date(s)), n = (r) => {
+ }).formatToParts(new Date(i)), n = (r) => {
const o = e.find((l) => l.type === r);
return o ? Number(o.value) : Number.NaN;
- }, i = Date.UTC(
+ }, s = Date.UTC(
n("year"),
n("month") - 1,
n("day"),
@@ -607,32 +607,32 @@ function ge(s, t) {
n("minute"),
n("second")
);
- return Number.isFinite(i) ? i - s : 0;
+ return Number.isFinite(s) ? s - i : 0;
}
-function _e(s, t) {
- if (typeof s != "string")
+function _e(i, t) {
+ if (typeof i != "string")
return null;
- const e = s.split("-");
+ const e = i.split("-");
if (e.length !== 3)
return null;
- const [n, i, r] = e.map((a) => Number(a));
- if (!n || !i || !r)
+ const [n, s, r] = e.map((a) => Number(a));
+ if (!n || !s || !r)
return null;
if (!t) {
- const a = new Date(n, i - 1, r);
+ const a = new Date(n, s - 1, r);
return Number.isNaN(a.getTime()) ? null : a;
}
- const o = Date.UTC(n, i - 1, r), l = new Date(o - ge(o, t));
+ const o = Date.UTC(n, s - 1, r), l = new Date(o - ge(o, t));
return Number.isNaN(l.getTime()) ? null : l;
}
-function ye(s) {
- const t = ue[s];
- return t || s.charAt(0).toUpperCase() + s.slice(1);
+function ye(i) {
+ const t = ue[i];
+ return t || i.charAt(0).toUpperCase() + i.slice(1);
}
-function ve(s, t) {
- return fe[s] ?? t;
+function ve(i, t) {
+ return fe[i] ?? t;
}
-const $t = "polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%)", be = "polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%)", xe = Pt`
+const wt = "polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%)", be = "polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%)", xe = Pt`
* {
box-sizing: border-box;
}
@@ -704,7 +704,7 @@ const $t = "polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%)", be = "polygon(50%
justify-content: center;
width: 34px;
height: 34px;
- clip-path: ${v(be)};
+ clip-path: ${b(be)};
background: var(--nq-brand-gradient);
}
@@ -798,7 +798,7 @@ const $t = "polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%)", be = "polygon(50%
width: 188px;
height: 214px;
padding: 4px;
- clip-path: ${v($t)};
+ clip-path: ${b(wt)};
background: rgba(255, 255, 255, 0.22);
}
@@ -809,7 +809,7 @@ const $t = "polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%)", be = "polygon(50%
align-items: center;
justify-content: center;
padding-bottom: 70px;
- clip-path: ${v($t)};
+ clip-path: ${b(wt)};
background: var(--nq-p-crest);
}
@@ -1072,7 +1072,7 @@ const $t = "polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%)", be = "polygon(50%
The Party · ${G(this._now, this._timeZone())}
+The Party · ${K(this._now, this._timeZone())}
${t ? this._renderNotice(t) : c`${n}
`)}${`Nothing was posted for today, ${t.name}. Enjoy the day's rest!`} @@ -2497,20 +2726,38 @@ class nn extends C {
- ${`Every quest is claimed, ${t.name}. The seal is set for today.`} -
-Returning to The Party shortly.
+${this._completeSub(t.name)}
++ Returning to The Party in ${n} seconds +
+- ${`Every quest is claimed, ${view.name}. The seal is set for today.`} -
-Returning to The Party shortly.
+${this._completeSub(view.name)}
++ Returning to The Party in ${remaining} seconds +
+