pollcatch 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/pc.js +259 -262
package/pc.js CHANGED
@@ -3,18 +3,18 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const pt = globalThis, At = pt.ShadowRoot && (pt.ShadyCSS === void 0 || pt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, _t = Symbol(), Dt = /* @__PURE__ */ new WeakMap();
7
- let pe = class {
6
+ const pt = globalThis, Et = pt.ShadowRoot && (pt.ShadyCSS === void 0 || pt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, At = Symbol(), jt = /* @__PURE__ */ new WeakMap();
7
+ let de = class {
8
8
  constructor(t, s, i) {
9
- if (this._$cssResult$ = !0, i !== _t) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
9
+ if (this._$cssResult$ = !0, i !== At) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
10
  this.cssText = t, this.t = s;
11
11
  }
12
12
  get styleSheet() {
13
13
  let t = this.o;
14
14
  const s = this.t;
15
- if (At && t === void 0) {
15
+ if (Et && t === void 0) {
16
16
  const i = s !== void 0 && s.length === 1;
17
- i && (t = Dt.get(s)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Dt.set(s, t));
17
+ i && (t = jt.get(s)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && jt.set(s, t));
18
18
  }
19
19
  return t;
20
20
  }
@@ -22,33 +22,33 @@ let pe = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const Te = (e) => new pe(typeof e == "string" ? e : e + "", void 0, _t), B = (e, ...t) => {
25
+ const Oe = (e) => new de(typeof e == "string" ? e : e + "", void 0, At), B = (e, ...t) => {
26
26
  const s = e.length === 1 ? e[0] : t.reduce((i, o, r) => i + ((a) => {
27
27
  if (a._$cssResult$ === !0) return a.cssText;
28
28
  if (typeof a == "number") return a;
29
29
  throw Error("Value passed to 'css' function must be a 'css' function result: " + a + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
30
  })(o) + e[r + 1], e[0]);
31
- return new pe(s, e, _t);
32
- }, Me = (e, t) => {
33
- if (At) e.adoptedStyleSheets = t.map((s) => s instanceof CSSStyleSheet ? s : s.styleSheet);
31
+ return new de(s, e, At);
32
+ }, Te = (e, t) => {
33
+ if (Et) e.adoptedStyleSheets = t.map((s) => s instanceof CSSStyleSheet ? s : s.styleSheet);
34
34
  else for (const s of t) {
35
35
  const i = document.createElement("style"), o = pt.litNonce;
36
36
  o !== void 0 && i.setAttribute("nonce", o), i.textContent = s.cssText, e.appendChild(i);
37
37
  }
38
- }, Vt = At ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
38
+ }, Dt = Et ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
39
39
  let s = "";
40
40
  for (const i of t.cssRules) s += i.cssText;
41
- return Te(s);
41
+ return Oe(s);
42
42
  })(e) : e;
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: ze, defineProperty: Ne, getOwnPropertyDescriptor: Ie, getOwnPropertyNames: Re, getOwnPropertySymbols: Ue, getPrototypeOf: Le } = Object, D = globalThis, Ht = D.trustedTypes, je = Ht ? Ht.emptyScript : "", ft = D.reactiveElementPolyfillSupport, st = (e, t) => e, ht = { toAttribute(e, t) {
48
+ const { is: Me, defineProperty: ze, getOwnPropertyDescriptor: Ne, getOwnPropertyNames: Ie, getOwnPropertySymbols: Re, getPrototypeOf: Ue } = Object, D = globalThis, Vt = D.trustedTypes, Le = Vt ? Vt.emptyScript : "", ft = D.reactiveElementPolyfillSupport, st = (e, t) => e, ht = { toAttribute(e, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
- e = e ? je : null;
51
+ e = e ? Le : null;
52
52
  break;
53
53
  case Object:
54
54
  case Array:
@@ -73,7 +73,7 @@ const { is: ze, defineProperty: Ne, getOwnPropertyDescriptor: Ie, getOwnProperty
73
73
  }
74
74
  }
75
75
  return s;
76
- } }, Pt = (e, t) => !ze(e, t), Bt = { attribute: !0, type: String, converter: ht, reflect: !1, hasChanged: Pt };
76
+ } }, _t = (e, t) => !Me(e, t), Ht = { attribute: !0, type: String, converter: ht, reflect: !1, hasChanged: _t };
77
77
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), D.litPropertyMetadata ?? (D.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
78
  let J = class extends HTMLElement {
79
79
  static addInitializer(t) {
@@ -82,14 +82,14 @@ let J = class extends HTMLElement {
82
82
  static get observedAttributes() {
83
83
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
84
84
  }
85
- static createProperty(t, s = Bt) {
85
+ static createProperty(t, s = Ht) {
86
86
  if (s.state && (s.attribute = !1), this._$Ei(), this.elementProperties.set(t, s), !s.noAccessor) {
87
87
  const i = Symbol(), o = this.getPropertyDescriptor(t, i, s);
88
- o !== void 0 && Ne(this.prototype, t, o);
88
+ o !== void 0 && ze(this.prototype, t, o);
89
89
  }
90
90
  }
91
91
  static getPropertyDescriptor(t, s, i) {
92
- const { get: o, set: r } = Ie(this.prototype, t) ?? { get() {
92
+ const { get: o, set: r } = Ne(this.prototype, t) ?? { get() {
93
93
  return this[s];
94
94
  }, set(a) {
95
95
  this[s] = a;
@@ -102,17 +102,17 @@ let J = class extends HTMLElement {
102
102
  }, configurable: !0, enumerable: !0 };
103
103
  }
104
104
  static getPropertyOptions(t) {
105
- return this.elementProperties.get(t) ?? Bt;
105
+ return this.elementProperties.get(t) ?? Ht;
106
106
  }
107
107
  static _$Ei() {
108
108
  if (this.hasOwnProperty(st("elementProperties"))) return;
109
- const t = Le(this);
109
+ const t = Ue(this);
110
110
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
111
111
  }
112
112
  static finalize() {
113
113
  if (this.hasOwnProperty(st("finalized"))) return;
114
114
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(st("properties"))) {
115
- const s = this.properties, i = [...Re(s), ...Ue(s)];
115
+ const s = this.properties, i = [...Ie(s), ...Re(s)];
116
116
  for (const o of i) this.createProperty(o, s[o]);
117
117
  }
118
118
  const t = this[Symbol.metadata];
@@ -131,8 +131,8 @@ let J = class extends HTMLElement {
131
131
  const s = [];
132
132
  if (Array.isArray(t)) {
133
133
  const i = new Set(t.flat(1 / 0).reverse());
134
- for (const o of i) s.unshift(Vt(o));
135
- } else t !== void 0 && s.push(Vt(t));
134
+ for (const o of i) s.unshift(Dt(o));
135
+ } else t !== void 0 && s.push(Dt(t));
136
136
  return s;
137
137
  }
138
138
  static _$Eu(t, s) {
@@ -161,7 +161,7 @@ let J = class extends HTMLElement {
161
161
  }
162
162
  createRenderRoot() {
163
163
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
164
- return Me(t, this.constructor.elementStyles), t;
164
+ return Te(t, this.constructor.elementStyles), t;
165
165
  }
166
166
  connectedCallback() {
167
167
  var t;
@@ -200,7 +200,7 @@ let J = class extends HTMLElement {
200
200
  }
201
201
  requestUpdate(t, s, i) {
202
202
  if (t !== void 0) {
203
- if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? Pt)(this[t], s)) return;
203
+ if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? _t)(this[t], s)) return;
204
204
  this.P(t, s, i);
205
205
  }
206
206
  this.isUpdatePending === !1 && (this._$ES = this._$ET());
@@ -279,42 +279,42 @@ J.elementStyles = [], J.shadowRootOptions = { mode: "open" }, J[st("elementPrope
279
279
  * Copyright 2017 Google LLC
280
280
  * SPDX-License-Identifier: BSD-3-Clause
281
281
  */
282
- const it = globalThis, ut = it.trustedTypes, Ft = ut ? ut.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, he = "$lit$", j = `lit$${Math.random().toFixed(9).slice(2)}$`, ue = "?" + j, De = `<${ue}>`, W = document, rt = () => W.createComment(""), at = (e) => e === null || typeof e != "object" && typeof e != "function", Ot = Array.isArray, Ve = (e) => Ot(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", gt = `[
283
- \f\r]`, et = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, qt = /-->/g, Kt = />/g, K = RegExp(`>|${gt}(?:([^\\s"'>=/]+)(${gt}*=${gt}*(?:[^
284
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Yt = /'/g, Gt = /"/g, me = /^(?:script|style|textarea|title)$/i, He = (e) => (t, ...s) => ({ _$litType$: e, strings: t, values: s }), l = He(1), H = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Wt = /* @__PURE__ */ new WeakMap(), Y = W.createTreeWalker(W, 129);
285
- function be(e, t) {
286
- if (!Ot(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
- return Ft !== void 0 ? Ft.createHTML(t) : t;
282
+ const it = globalThis, ut = it.trustedTypes, Bt = ut ? ut.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, pe = "$lit$", j = `lit$${Math.random().toFixed(9).slice(2)}$`, he = "?" + j, je = `<${he}>`, W = document, rt = () => W.createComment(""), at = (e) => e === null || typeof e != "object" && typeof e != "function", Pt = Array.isArray, De = (e) => Pt(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", gt = `[
283
+ \f\r]`, et = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ft = /-->/g, qt = />/g, K = RegExp(`>|${gt}(?:([^\\s"'>=/]+)(${gt}*=${gt}*(?:[^
284
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Kt = /'/g, Yt = /"/g, ue = /^(?:script|style|textarea|title)$/i, Ve = (e) => (t, ...s) => ({ _$litType$: e, strings: t, values: s }), l = Ve(1), H = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Gt = /* @__PURE__ */ new WeakMap(), Y = W.createTreeWalker(W, 129);
285
+ function me(e, t) {
286
+ if (!Pt(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
+ return Bt !== void 0 ? Bt.createHTML(t) : t;
288
288
  }
289
- const Be = (e, t) => {
289
+ const He = (e, t) => {
290
290
  const s = e.length - 1, i = [];
291
291
  let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", a = et;
292
292
  for (let n = 0; n < s; n++) {
293
293
  const c = e[n];
294
294
  let h, m, b = -1, S = 0;
295
- for (; S < c.length && (a.lastIndex = S, m = a.exec(c), m !== null); ) S = a.lastIndex, a === et ? m[1] === "!--" ? a = qt : m[1] !== void 0 ? a = Kt : m[2] !== void 0 ? (me.test(m[2]) && (o = RegExp("</" + m[2], "g")), a = K) : m[3] !== void 0 && (a = K) : a === K ? m[0] === ">" ? (a = o ?? et, b = -1) : m[1] === void 0 ? b = -2 : (b = a.lastIndex - m[2].length, h = m[1], a = m[3] === void 0 ? K : m[3] === '"' ? Gt : Yt) : a === Gt || a === Yt ? a = K : a === qt || a === Kt ? a = et : (a = K, o = void 0);
295
+ for (; S < c.length && (a.lastIndex = S, m = a.exec(c), m !== null); ) S = a.lastIndex, a === et ? m[1] === "!--" ? a = Ft : m[1] !== void 0 ? a = qt : m[2] !== void 0 ? (ue.test(m[2]) && (o = RegExp("</" + m[2], "g")), a = K) : m[3] !== void 0 && (a = K) : a === K ? m[0] === ">" ? (a = o ?? et, b = -1) : m[1] === void 0 ? b = -2 : (b = a.lastIndex - m[2].length, h = m[1], a = m[3] === void 0 ? K : m[3] === '"' ? Yt : Kt) : a === Yt || a === Kt ? a = K : a === Ft || a === qt ? a = et : (a = K, o = void 0);
296
296
  const L = a === K && e[n + 1].startsWith("/>") ? " " : "";
297
- r += a === et ? c + De : b >= 0 ? (i.push(h), c.slice(0, b) + he + c.slice(b) + j + L) : c + j + (b === -2 ? n : L);
297
+ r += a === et ? c + je : b >= 0 ? (i.push(h), c.slice(0, b) + pe + c.slice(b) + j + L) : c + j + (b === -2 ? n : L);
298
298
  }
299
- return [be(e, r + (e[s] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
299
+ return [me(e, r + (e[s] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
300
300
  };
301
- let Ct = class fe {
301
+ let kt = class be {
302
302
  constructor({ strings: t, _$litType$: s }, i) {
303
303
  let o;
304
304
  this.parts = [];
305
305
  let r = 0, a = 0;
306
- const n = t.length - 1, c = this.parts, [h, m] = Be(t, s);
307
- if (this.el = fe.createElement(h, i), Y.currentNode = this.el.content, s === 2 || s === 3) {
306
+ const n = t.length - 1, c = this.parts, [h, m] = He(t, s);
307
+ if (this.el = be.createElement(h, i), Y.currentNode = this.el.content, s === 2 || s === 3) {
308
308
  const b = this.el.content.firstChild;
309
309
  b.replaceWith(...b.childNodes);
310
310
  }
311
311
  for (; (o = Y.nextNode()) !== null && c.length < n; ) {
312
312
  if (o.nodeType === 1) {
313
- if (o.hasAttributes()) for (const b of o.getAttributeNames()) if (b.endsWith(he)) {
313
+ if (o.hasAttributes()) for (const b of o.getAttributeNames()) if (b.endsWith(pe)) {
314
314
  const S = m[a++], L = o.getAttribute(b).split(j), ct = /([.?@])?(.*)/.exec(S);
315
- c.push({ type: 1, index: r, name: ct[2], strings: L, ctor: ct[1] === "." ? qe : ct[1] === "?" ? Ke : ct[1] === "@" ? Ye : mt }), o.removeAttribute(b);
315
+ c.push({ type: 1, index: r, name: ct[2], strings: L, ctor: ct[1] === "." ? Fe : ct[1] === "?" ? qe : ct[1] === "@" ? Ke : mt }), o.removeAttribute(b);
316
316
  } else b.startsWith(j) && (c.push({ type: 6, index: r }), o.removeAttribute(b));
317
- if (me.test(o.tagName)) {
317
+ if (ue.test(o.tagName)) {
318
318
  const b = o.textContent.split(j), S = b.length - 1;
319
319
  if (S > 0) {
320
320
  o.textContent = ut ? ut.emptyScript : "";
@@ -322,7 +322,7 @@ let Ct = class fe {
322
322
  o.append(b[S], rt());
323
323
  }
324
324
  }
325
- } else if (o.nodeType === 8) if (o.data === ue) c.push({ type: 2, index: r });
325
+ } else if (o.nodeType === 8) if (o.data === he) c.push({ type: 2, index: r });
326
326
  else {
327
327
  let b = -1;
328
328
  for (; (b = o.data.indexOf(j, b + 1)) !== -1; ) c.push({ type: 7, index: r }), b += j.length - 1;
@@ -342,7 +342,7 @@ function X(e, t, s = e, i) {
342
342
  const r = at(t) ? void 0 : t._$litDirective$;
343
343
  return (o == null ? void 0 : o.constructor) !== r && ((n = o == null ? void 0 : o._$AO) == null || n.call(o, !1), r === void 0 ? o = void 0 : (o = new r(e), o._$AT(e, s, i)), i !== void 0 ? (s._$Co ?? (s._$Co = []))[i] = o : s._$Cl = o), o !== void 0 && (t = X(e, o._$AS(e, t.values), o, i)), t;
344
344
  }
345
- let Fe = class {
345
+ let Be = class {
346
346
  constructor(t, s) {
347
347
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = s;
348
348
  }
@@ -359,7 +359,7 @@ let Fe = class {
359
359
  for (; c !== void 0; ) {
360
360
  if (a === c.index) {
361
361
  let h;
362
- c.type === 2 ? h = new nt(r, r.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(r, c.name, c.strings, this, t) : c.type === 6 && (h = new Ge(r, this, t)), this._$AV.push(h), c = i[++n];
362
+ c.type === 2 ? h = new nt(r, r.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(r, c.name, c.strings, this, t) : c.type === 6 && (h = new Ye(r, this, t)), this._$AV.push(h), c = i[++n];
363
363
  }
364
364
  a !== (c == null ? void 0 : c.index) && (r = Y.nextNode(), a++);
365
365
  }
@@ -390,7 +390,7 @@ class nt {
390
390
  return this._$AB;
391
391
  }
392
392
  _$AI(t, s = this) {
393
- t = X(this, t, s), at(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== H && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ve(t) ? this.k(t) : this._(t);
393
+ t = X(this, t, s), at(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== H && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : De(t) ? this.k(t) : this._(t);
394
394
  }
395
395
  O(t) {
396
396
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -403,19 +403,19 @@ class nt {
403
403
  }
404
404
  $(t) {
405
405
  var r;
406
- const { values: s, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = Ct.createElement(be(i.h, i.h[0]), this.options)), i);
406
+ const { values: s, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = kt.createElement(me(i.h, i.h[0]), this.options)), i);
407
407
  if (((r = this._$AH) == null ? void 0 : r._$AD) === o) this._$AH.p(s);
408
408
  else {
409
- const a = new Fe(o, this), n = a.u(this.options);
409
+ const a = new Be(o, this), n = a.u(this.options);
410
410
  a.p(s), this.T(n), this._$AH = a;
411
411
  }
412
412
  }
413
413
  _$AC(t) {
414
- let s = Wt.get(t.strings);
415
- return s === void 0 && Wt.set(t.strings, s = new Ct(t)), s;
414
+ let s = Gt.get(t.strings);
415
+ return s === void 0 && Gt.set(t.strings, s = new kt(t)), s;
416
416
  }
417
417
  k(t) {
418
- Ot(this._$AH) || (this._$AH = [], this._$AR());
418
+ Pt(this._$AH) || (this._$AH = [], this._$AR());
419
419
  const s = this._$AH;
420
420
  let i, o = 0;
421
421
  for (const r of t) o === s.length ? s.push(i = new nt(this.O(rt()), this.O(rt()), this, this.options)) : i = s[o], i._$AI(r), o++;
@@ -458,7 +458,7 @@ class mt {
458
458
  t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
459
459
  }
460
460
  }
461
- let qe = class extends mt {
461
+ let Fe = class extends mt {
462
462
  constructor() {
463
463
  super(...arguments), this.type = 3;
464
464
  }
@@ -466,7 +466,7 @@ let qe = class extends mt {
466
466
  this.element[this.name] = t === d ? void 0 : t;
467
467
  }
468
468
  };
469
- class Ke extends mt {
469
+ class qe extends mt {
470
470
  constructor() {
471
471
  super(...arguments), this.type = 4;
472
472
  }
@@ -474,7 +474,7 @@ class Ke extends mt {
474
474
  this.element.toggleAttribute(this.name, !!t && t !== d);
475
475
  }
476
476
  }
477
- class Ye extends mt {
477
+ class Ke extends mt {
478
478
  constructor(t, s, i, o, r) {
479
479
  super(t, s, i, o, r), this.type = 5;
480
480
  }
@@ -488,7 +488,7 @@ class Ye extends mt {
488
488
  typeof this._$AH == "function" ? this._$AH.call(((s = this.options) == null ? void 0 : s.host) ?? this.element, t) : this._$AH.handleEvent(t);
489
489
  }
490
490
  }
491
- class Ge {
491
+ class Ye {
492
492
  constructor(t, s, i) {
493
493
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = s, this.options = i;
494
494
  }
@@ -500,8 +500,8 @@ class Ge {
500
500
  }
501
501
  }
502
502
  const yt = it.litHtmlPolyfillSupport;
503
- yt == null || yt(Ct, nt), (it.litHtmlVersions ?? (it.litHtmlVersions = [])).push("3.2.1");
504
- const We = (e, t, s) => {
503
+ yt == null || yt(kt, nt), (it.litHtmlVersions ?? (it.litHtmlVersions = [])).push("3.2.1");
504
+ const Ge = (e, t, s) => {
505
505
  const i = (s == null ? void 0 : s.renderBefore) ?? t;
506
506
  let o = i._$litPart$;
507
507
  if (o === void 0) {
@@ -526,7 +526,7 @@ let V = class extends J {
526
526
  }
527
527
  update(t) {
528
528
  const s = this.render();
529
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = We(s, this.renderRoot, this.renderOptions);
529
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Ge(s, this.renderRoot, this.renderOptions);
530
530
  }
531
531
  connectedCallback() {
532
532
  var t;
@@ -540,8 +540,8 @@ let V = class extends J {
540
540
  return H;
541
541
  }
542
542
  };
543
- var de;
544
- V._$litElement$ = !0, V.finalized = !0, (de = globalThis.litElementHydrateSupport) == null || de.call(globalThis, { LitElement: V });
543
+ var ce;
544
+ V._$litElement$ = !0, V.finalized = !0, (ce = globalThis.litElementHydrateSupport) == null || ce.call(globalThis, { LitElement: V });
545
545
  const vt = globalThis.litElementPolyfillSupport;
546
546
  vt == null || vt({ LitElement: V });
547
547
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
@@ -560,7 +560,7 @@ const F = (e) => (t, s) => {
560
560
  * Copyright 2017 Google LLC
561
561
  * SPDX-License-Identifier: BSD-3-Clause
562
562
  */
563
- const Ze = { attribute: !0, type: String, converter: ht, reflect: !1, hasChanged: Pt }, Je = (e = Ze, t, s) => {
563
+ const We = { attribute: !0, type: String, converter: ht, reflect: !1, hasChanged: _t }, Ze = (e = We, t, s) => {
564
564
  const { kind: i, metadata: o } = s;
565
565
  let r = globalThis.litPropertyMetadata.get(o);
566
566
  if (r === void 0 && globalThis.litPropertyMetadata.set(o, r = /* @__PURE__ */ new Map()), r.set(s.name, e), i === "accessor") {
@@ -582,7 +582,7 @@ const Ze = { attribute: !0, type: String, converter: ht, reflect: !1, hasChanged
582
582
  throw Error("Unsupported decorator location: " + i);
583
583
  };
584
584
  function p(e) {
585
- return (t, s) => typeof s == "object" ? Je(e, t, s) : ((i, o, r) => {
585
+ return (t, s) => typeof s == "object" ? Ze(e, t, s) : ((i, o, r) => {
586
586
  const a = o.hasOwnProperty(r);
587
587
  return o.constructor.createProperty(r, a ? { ...i, wrapped: !0 } : i), a ? Object.getOwnPropertyDescriptor(o, r) : void 0;
588
588
  })(e, t, s);
@@ -595,7 +595,7 @@ function p(e) {
595
595
  function y(e) {
596
596
  return p({ ...e, state: !0, attribute: !1 });
597
597
  }
598
- const Xe = B`
598
+ const Je = B`
599
599
  :host {
600
600
  /* Base CSS variables */
601
601
  --pc-primary-color: #2196f3;
@@ -902,31 +902,28 @@ const Xe = B`
902
902
  padding: 0.2em 0;
903
903
  }
904
904
  }
905
- `, ge = "http://127.0.0.1:54321/functions/v1/data", Qe = "pc_session_id", ts = 24 * 60 * 60 * 1e3, xt = process.env.NODE_ENV === "development";
906
- function es(e) {
905
+ `, fe = "http://127.0.0.1:54321/functions/v1/data", Xe = "pc_session_id", Qe = 24 * 60 * 60 * 1e3;
906
+ function ts(e) {
907
907
  return {
908
908
  debug: (t, ...s) => {
909
- xt && console.debug(`[${e}]`, t, ...s);
910
909
  },
911
910
  info: (t, ...s) => {
912
- xt && console.info(`[${e}]`, t, ...s);
913
911
  },
914
912
  warn: (t, ...s) => {
915
- xt && console.warn(`[${e}]`, t, ...s);
916
913
  },
917
914
  error: (t, ...s) => {
918
915
  console.error(`[${e}]`, t, ...s);
919
916
  }
920
917
  };
921
918
  }
922
- const f = es("Pollcatch");
923
- function Zt() {
919
+ const f = ts("Pollcatch");
920
+ function Wt() {
924
921
  return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : (f.warn("crypto.randomUUID not available, using fallback UUID generator"), "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
925
922
  const t = Math.random() * 16 | 0;
926
923
  return (e === "x" ? t : t & 3 | 8).toString(16);
927
924
  }));
928
925
  }
929
- function Tt() {
926
+ function Ot() {
930
927
  const e = "test-local-storage";
931
928
  try {
932
929
  return localStorage.setItem(e, e), localStorage.removeItem(e), !0;
@@ -934,7 +931,7 @@ function Tt() {
934
931
  return f.warn("localStorage not available, session ID will not persist"), !1;
935
932
  }
936
933
  }
937
- function ye(e) {
934
+ function ge(e) {
938
935
  try {
939
936
  const t = localStorage.getItem(e);
940
937
  return t ? JSON.parse(t) : void 0;
@@ -943,14 +940,14 @@ function ye(e) {
943
940
  return;
944
941
  }
945
942
  }
946
- function ve(e, t) {
943
+ function ye(e, t) {
947
944
  try {
948
945
  return localStorage.setItem(e, JSON.stringify(t)), !0;
949
946
  } catch (s) {
950
947
  return f.warn(`Failed to set item in localStorage: ${e}`, s), !1;
951
948
  }
952
949
  }
953
- async function ss() {
950
+ async function es() {
954
951
  if (typeof window < "u") {
955
952
  if (window.pcProject !== void 0)
956
953
  return f.debug("Found project key in global variable"), window.pcProject;
@@ -963,31 +960,31 @@ async function ss() {
963
960
  }
964
961
  f.warn("No project key found in global variable or script tags");
965
962
  }
966
- async function Jt() {
967
- const e = Qe, t = ts;
968
- if (Tt()) {
969
- const s = ye(e);
963
+ async function Zt() {
964
+ const e = Xe, t = Qe;
965
+ if (Ot()) {
966
+ const s = ge(e);
970
967
  if (s && s.id && s.timestamp && Date.now() - s.timestamp < t)
971
968
  return f.debug("Using existing session ID from localStorage"), s.id;
972
969
  f.debug(
973
970
  s ? "Session ID expired" : "No session ID found",
974
971
  "generating new one"
975
972
  );
976
- const i = Zt();
977
- return ve(e, {
973
+ const i = Wt();
974
+ return ye(e, {
978
975
  id: i,
979
976
  timestamp: Date.now()
980
977
  }) ? f.debug("Generated and stored new session ID") : f.warn("Generated session ID but failed to store it"), i;
981
978
  } else {
982
- const s = Zt();
979
+ const s = Wt();
983
980
  return f.debug("Generated non-persistent session ID"), s;
984
981
  }
985
982
  }
986
- async function is(e, t) {
983
+ async function ss(e, t) {
987
984
  try {
988
985
  if (!e)
989
986
  throw new Error("Name parameter is required");
990
- const s = `${ge}/${encodeURIComponent(t)}/${encodeURIComponent(e)}`;
987
+ const s = `${fe}/${encodeURIComponent(t)}/${encodeURIComponent(e)}`;
991
988
  f.debug(`Fetching stats for: ${e}`, { projectKey: t });
992
989
  const i = await fetch(s);
993
990
  if (!i.ok)
@@ -1008,8 +1005,8 @@ async function is(e, t) {
1008
1005
  throw f.error("Error loading stats:", s), s;
1009
1006
  }
1010
1007
  }
1011
- async function os(e) {
1012
- const t = JSON.stringify(e), s = `${ge}`;
1008
+ async function is(e) {
1009
+ const t = JSON.stringify(e), s = `${fe}`;
1013
1010
  try {
1014
1011
  if (f.debug("Sending stats", e), typeof navigator < "u" && navigator.sendBeacon)
1015
1012
  if (navigator.sendBeacon(s, t)) {
@@ -1032,10 +1029,10 @@ async function os(e) {
1032
1029
  throw f.error("Failed to send analytics:", i), i;
1033
1030
  }
1034
1031
  }
1035
- function xe(e) {
1032
+ function ve(e) {
1036
1033
  return !e || typeof e != "string" ? !1 : /^[\p{Emoji}]$/u.test(e) ? !0 : new RegExp("^\\p{Emoji}(\\p{Emoji_Modifier}|\\u200D\\p{Emoji})*$", "u").test(e);
1037
1034
  }
1038
- function Mt(e) {
1035
+ function Tt(e) {
1039
1036
  if (!e || typeof e != "string")
1040
1037
  return !1;
1041
1038
  const t = e.trim();
@@ -1047,7 +1044,7 @@ function Mt(e) {
1047
1044
  return !1;
1048
1045
  }
1049
1046
  }
1050
- function rs(e) {
1047
+ function os(e) {
1051
1048
  if (!e || typeof e != "string")
1052
1049
  return [];
1053
1050
  const t = e.trim();
@@ -1062,136 +1059,136 @@ function rs(e) {
1062
1059
  }
1063
1060
  return t.split(",").map((s) => s.trim()).filter((s) => s !== "");
1064
1061
  }
1065
- function as(e, t) {
1062
+ function rs(e, t) {
1066
1063
  const s = /{([^{}]+)}/g;
1067
1064
  return e.replace(s, (i, o) => {
1068
1065
  const r = o.trim(), a = t[r];
1069
1066
  return a !== void 0 ? String(a) : i;
1070
1067
  });
1071
1068
  }
1072
- function ns(e, t) {
1069
+ function as(e, t) {
1073
1070
  let s = 2166136261;
1074
1071
  const i = e + ":" + t;
1075
1072
  for (let o = 0; o < i.length; o++)
1076
1073
  s ^= i.charCodeAt(o), s += (s << 1) + (s << 4) + (s << 7) + (s << 8) + (s << 24);
1077
1074
  return (s >>> 0).toString(16).padStart(8, "0");
1078
1075
  }
1079
- var ls = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, I = function(e) {
1076
+ var ns = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, I = function(e) {
1080
1077
  return typeof e == "string" ? e.length > 0 : typeof e == "number";
1081
1078
  }, x = function(e, t, s) {
1082
1079
  return t === void 0 && (t = 0), s === void 0 && (s = Math.pow(10, t)), Math.round(s * e) / s + 0;
1083
1080
  }, k = function(e, t, s) {
1084
1081
  return t === void 0 && (t = 0), s === void 0 && (s = 1), e > s ? s : e > t ? e : t;
1085
- }, $e = function(e) {
1082
+ }, xe = function(e) {
1086
1083
  return (e = isFinite(e) ? e % 360 : 0) > 0 ? e : e + 360;
1087
- }, Xt = function(e) {
1084
+ }, Jt = function(e) {
1088
1085
  return { r: k(e.r, 0, 255), g: k(e.g, 0, 255), b: k(e.b, 0, 255), a: k(e.a) };
1089
- }, $t = function(e) {
1086
+ }, xt = function(e) {
1090
1087
  return { r: x(e.r), g: x(e.g), b: x(e.b), a: x(e.a, 3) };
1091
- }, cs = /^#([0-9a-f]{3,8})$/i, dt = function(e) {
1088
+ }, ls = /^#([0-9a-f]{3,8})$/i, dt = function(e) {
1092
1089
  var t = e.toString(16);
1093
1090
  return t.length < 2 ? "0" + t : t;
1094
- }, we = function(e) {
1091
+ }, $e = function(e) {
1095
1092
  var t = e.r, s = e.g, i = e.b, o = e.a, r = Math.max(t, s, i), a = r - Math.min(t, s, i), n = a ? r === t ? (s - i) / a : r === s ? 2 + (i - t) / a : 4 + (t - s) / a : 0;
1096
1093
  return { h: 60 * (n < 0 ? n + 6 : n), s: r ? a / r * 100 : 0, v: r / 255 * 100, a: o };
1097
- }, Se = function(e) {
1094
+ }, we = function(e) {
1098
1095
  var t = e.h, s = e.s, i = e.v, o = e.a;
1099
1096
  t = t / 360 * 6, s /= 100, i /= 100;
1100
1097
  var r = Math.floor(t), a = i * (1 - s), n = i * (1 - (t - r) * s), c = i * (1 - (1 - t + r) * s), h = r % 6;
1101
1098
  return { r: 255 * [i, n, a, a, c, i][h], g: 255 * [c, i, i, n, a, a][h], b: 255 * [a, a, c, i, i, n][h], a: o };
1099
+ }, Xt = function(e) {
1100
+ return { h: xe(e.h), s: k(e.s, 0, 100), l: k(e.l, 0, 100), a: k(e.a) };
1102
1101
  }, Qt = function(e) {
1103
- return { h: $e(e.h), s: k(e.s, 0, 100), l: k(e.l, 0, 100), a: k(e.a) };
1104
- }, te = function(e) {
1105
1102
  return { h: x(e.h), s: x(e.s), l: x(e.l), a: x(e.a, 3) };
1106
- }, ee = function(e) {
1107
- return Se((s = (t = e).s, { h: t.h, s: (s *= ((i = t.l) < 50 ? i : 100 - i) / 100) > 0 ? 2 * s / (i + s) * 100 : 0, v: i + s, a: t.a }));
1103
+ }, te = function(e) {
1104
+ return we((s = (t = e).s, { h: t.h, s: (s *= ((i = t.l) < 50 ? i : 100 - i) / 100) > 0 ? 2 * s / (i + s) * 100 : 0, v: i + s, a: t.a }));
1108
1105
  var t, s, i;
1109
1106
  }, ot = function(e) {
1110
- return { h: (t = we(e)).h, s: (o = (200 - (s = t.s)) * (i = t.v) / 100) > 0 && o < 200 ? s * i / 100 / (o <= 100 ? o : 200 - o) * 100 : 0, l: o / 2, a: t.a };
1107
+ return { h: (t = $e(e)).h, s: (o = (200 - (s = t.s)) * (i = t.v) / 100) > 0 && o < 200 ? s * i / 100 / (o <= 100 ? o : 200 - o) * 100 : 0, l: o / 2, a: t.a };
1111
1108
  var t, s, i, o;
1112
- }, ds = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, ps = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, hs = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, us = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, se = { string: [[function(e) {
1113
- var t = cs.exec(e);
1109
+ }, cs = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, ds = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, ps = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, hs = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, ee = { string: [[function(e) {
1110
+ var t = ls.exec(e);
1114
1111
  return t ? (e = t[1]).length <= 4 ? { r: parseInt(e[0] + e[0], 16), g: parseInt(e[1] + e[1], 16), b: parseInt(e[2] + e[2], 16), a: e.length === 4 ? x(parseInt(e[3] + e[3], 16) / 255, 2) : 1 } : e.length === 6 || e.length === 8 ? { r: parseInt(e.substr(0, 2), 16), g: parseInt(e.substr(2, 2), 16), b: parseInt(e.substr(4, 2), 16), a: e.length === 8 ? x(parseInt(e.substr(6, 2), 16) / 255, 2) : 1 } : null : null;
1115
1112
  }, "hex"], [function(e) {
1116
- var t = hs.exec(e) || us.exec(e);
1117
- return t ? t[2] !== t[4] || t[4] !== t[6] ? null : Xt({ r: Number(t[1]) / (t[2] ? 100 / 255 : 1), g: Number(t[3]) / (t[4] ? 100 / 255 : 1), b: Number(t[5]) / (t[6] ? 100 / 255 : 1), a: t[7] === void 0 ? 1 : Number(t[7]) / (t[8] ? 100 : 1) }) : null;
1113
+ var t = ps.exec(e) || hs.exec(e);
1114
+ return t ? t[2] !== t[4] || t[4] !== t[6] ? null : Jt({ r: Number(t[1]) / (t[2] ? 100 / 255 : 1), g: Number(t[3]) / (t[4] ? 100 / 255 : 1), b: Number(t[5]) / (t[6] ? 100 / 255 : 1), a: t[7] === void 0 ? 1 : Number(t[7]) / (t[8] ? 100 : 1) }) : null;
1118
1115
  }, "rgb"], [function(e) {
1119
- var t = ds.exec(e) || ps.exec(e);
1116
+ var t = cs.exec(e) || ds.exec(e);
1120
1117
  if (!t) return null;
1121
- var s, i, o = Qt({ h: (s = t[1], i = t[2], i === void 0 && (i = "deg"), Number(s) * (ls[i] || 1)), s: Number(t[3]), l: Number(t[4]), a: t[5] === void 0 ? 1 : Number(t[5]) / (t[6] ? 100 : 1) });
1122
- return ee(o);
1118
+ var s, i, o = Xt({ h: (s = t[1], i = t[2], i === void 0 && (i = "deg"), Number(s) * (ns[i] || 1)), s: Number(t[3]), l: Number(t[4]), a: t[5] === void 0 ? 1 : Number(t[5]) / (t[6] ? 100 : 1) });
1119
+ return te(o);
1123
1120
  }, "hsl"]], object: [[function(e) {
1124
1121
  var t = e.r, s = e.g, i = e.b, o = e.a, r = o === void 0 ? 1 : o;
1125
- return I(t) && I(s) && I(i) ? Xt({ r: Number(t), g: Number(s), b: Number(i), a: Number(r) }) : null;
1122
+ return I(t) && I(s) && I(i) ? Jt({ r: Number(t), g: Number(s), b: Number(i), a: Number(r) }) : null;
1126
1123
  }, "rgb"], [function(e) {
1127
1124
  var t = e.h, s = e.s, i = e.l, o = e.a, r = o === void 0 ? 1 : o;
1128
1125
  if (!I(t) || !I(s) || !I(i)) return null;
1129
- var a = Qt({ h: Number(t), s: Number(s), l: Number(i), a: Number(r) });
1130
- return ee(a);
1126
+ var a = Xt({ h: Number(t), s: Number(s), l: Number(i), a: Number(r) });
1127
+ return te(a);
1131
1128
  }, "hsl"], [function(e) {
1132
1129
  var t = e.h, s = e.s, i = e.v, o = e.a, r = o === void 0 ? 1 : o;
1133
1130
  if (!I(t) || !I(s) || !I(i)) return null;
1134
1131
  var a = function(n) {
1135
- return { h: $e(n.h), s: k(n.s, 0, 100), v: k(n.v, 0, 100), a: k(n.a) };
1132
+ return { h: xe(n.h), s: k(n.s, 0, 100), v: k(n.v, 0, 100), a: k(n.a) };
1136
1133
  }({ h: Number(t), s: Number(s), v: Number(i), a: Number(r) });
1137
- return Se(a);
1138
- }, "hsv"]] }, ie = function(e, t) {
1134
+ return we(a);
1135
+ }, "hsv"]] }, se = function(e, t) {
1139
1136
  for (var s = 0; s < t.length; s++) {
1140
1137
  var i = t[s][0](e);
1141
1138
  if (i) return [i, t[s][1]];
1142
1139
  }
1143
1140
  return [null, void 0];
1144
- }, ms = function(e) {
1145
- return typeof e == "string" ? ie(e.trim(), se.string) : typeof e == "object" && e !== null ? ie(e, se.object) : [null, void 0];
1146
- }, wt = function(e, t) {
1141
+ }, us = function(e) {
1142
+ return typeof e == "string" ? se(e.trim(), ee.string) : typeof e == "object" && e !== null ? se(e, ee.object) : [null, void 0];
1143
+ }, $t = function(e, t) {
1147
1144
  var s = ot(e);
1148
1145
  return { h: s.h, s: k(s.s + 100 * t, 0, 100), l: s.l, a: s.a };
1149
- }, St = function(e) {
1146
+ }, wt = function(e) {
1150
1147
  return (299 * e.r + 587 * e.g + 114 * e.b) / 1e3 / 255;
1151
- }, oe = function(e, t) {
1148
+ }, ie = function(e, t) {
1152
1149
  var s = ot(e);
1153
1150
  return { h: s.h, s: s.s, l: k(s.l + 100 * t, 0, 100), a: s.a };
1154
- }, re = function() {
1151
+ }, oe = function() {
1155
1152
  function e(t) {
1156
- this.parsed = ms(t)[0], this.rgba = this.parsed || { r: 0, g: 0, b: 0, a: 1 };
1153
+ this.parsed = us(t)[0], this.rgba = this.parsed || { r: 0, g: 0, b: 0, a: 1 };
1157
1154
  }
1158
1155
  return e.prototype.isValid = function() {
1159
1156
  return this.parsed !== null;
1160
1157
  }, e.prototype.brightness = function() {
1161
- return x(St(this.rgba), 2);
1158
+ return x(wt(this.rgba), 2);
1162
1159
  }, e.prototype.isDark = function() {
1163
- return St(this.rgba) < 0.5;
1160
+ return wt(this.rgba) < 0.5;
1164
1161
  }, e.prototype.isLight = function() {
1165
- return St(this.rgba) >= 0.5;
1162
+ return wt(this.rgba) >= 0.5;
1166
1163
  }, e.prototype.toHex = function() {
1167
- return t = $t(this.rgba), s = t.r, i = t.g, o = t.b, a = (r = t.a) < 1 ? dt(x(255 * r)) : "", "#" + dt(s) + dt(i) + dt(o) + a;
1164
+ return t = xt(this.rgba), s = t.r, i = t.g, o = t.b, a = (r = t.a) < 1 ? dt(x(255 * r)) : "", "#" + dt(s) + dt(i) + dt(o) + a;
1168
1165
  var t, s, i, o, r, a;
1169
1166
  }, e.prototype.toRgb = function() {
1170
- return $t(this.rgba);
1167
+ return xt(this.rgba);
1171
1168
  }, e.prototype.toRgbString = function() {
1172
- return t = $t(this.rgba), s = t.r, i = t.g, o = t.b, (r = t.a) < 1 ? "rgba(" + s + ", " + i + ", " + o + ", " + r + ")" : "rgb(" + s + ", " + i + ", " + o + ")";
1169
+ return t = xt(this.rgba), s = t.r, i = t.g, o = t.b, (r = t.a) < 1 ? "rgba(" + s + ", " + i + ", " + o + ", " + r + ")" : "rgb(" + s + ", " + i + ", " + o + ")";
1173
1170
  var t, s, i, o, r;
1174
1171
  }, e.prototype.toHsl = function() {
1175
- return te(ot(this.rgba));
1172
+ return Qt(ot(this.rgba));
1176
1173
  }, e.prototype.toHslString = function() {
1177
- return t = te(ot(this.rgba)), s = t.h, i = t.s, o = t.l, (r = t.a) < 1 ? "hsla(" + s + ", " + i + "%, " + o + "%, " + r + ")" : "hsl(" + s + ", " + i + "%, " + o + "%)";
1174
+ return t = Qt(ot(this.rgba)), s = t.h, i = t.s, o = t.l, (r = t.a) < 1 ? "hsla(" + s + ", " + i + "%, " + o + "%, " + r + ")" : "hsl(" + s + ", " + i + "%, " + o + "%)";
1178
1175
  var t, s, i, o, r;
1179
1176
  }, e.prototype.toHsv = function() {
1180
- return t = we(this.rgba), { h: x(t.h), s: x(t.s), v: x(t.v), a: x(t.a, 3) };
1177
+ return t = $e(this.rgba), { h: x(t.h), s: x(t.s), v: x(t.v), a: x(t.a, 3) };
1181
1178
  var t;
1182
1179
  }, e.prototype.invert = function() {
1183
1180
  return _({ r: 255 - (t = this.rgba).r, g: 255 - t.g, b: 255 - t.b, a: t.a });
1184
1181
  var t;
1185
1182
  }, e.prototype.saturate = function(t) {
1186
- return t === void 0 && (t = 0.1), _(wt(this.rgba, t));
1183
+ return t === void 0 && (t = 0.1), _($t(this.rgba, t));
1187
1184
  }, e.prototype.desaturate = function(t) {
1188
- return t === void 0 && (t = 0.1), _(wt(this.rgba, -t));
1185
+ return t === void 0 && (t = 0.1), _($t(this.rgba, -t));
1189
1186
  }, e.prototype.grayscale = function() {
1190
- return _(wt(this.rgba, -1));
1187
+ return _($t(this.rgba, -1));
1191
1188
  }, e.prototype.lighten = function(t) {
1192
- return t === void 0 && (t = 0.1), _(oe(this.rgba, t));
1189
+ return t === void 0 && (t = 0.1), _(ie(this.rgba, t));
1193
1190
  }, e.prototype.darken = function(t) {
1194
- return t === void 0 && (t = 0.1), _(oe(this.rgba, -t));
1191
+ return t === void 0 && (t = 0.1), _(ie(this.rgba, -t));
1195
1192
  }, e.prototype.rotate = function(t) {
1196
1193
  return t === void 0 && (t = 15), this.hue(this.hue() + t);
1197
1194
  }, e.prototype.alpha = function(t) {
@@ -1204,9 +1201,9 @@ var ls = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, I = function(e) {
1204
1201
  return this.toHex() === _(t).toHex();
1205
1202
  }, e;
1206
1203
  }(), _ = function(e) {
1207
- return e instanceof re ? e : new re(e);
1208
- }, ke = /* @__PURE__ */ ((e) => (e[e.AA_NORMAL = 4.5] = "AA_NORMAL", e[e.AA_LARGE = 3] = "AA_LARGE", e[e.AAA_NORMAL = 7] = "AAA_NORMAL", e[e.AAA_LARGE = 4.5] = "AAA_LARGE", e))(ke || {});
1209
- const bs = {
1204
+ return e instanceof oe ? e : new oe(e);
1205
+ }, Se = /* @__PURE__ */ ((e) => (e[e.AA_NORMAL = 4.5] = "AA_NORMAL", e[e.AA_LARGE = 3] = "AA_LARGE", e[e.AAA_NORMAL = 7] = "AAA_NORMAL", e[e.AAA_LARGE = 4.5] = "AAA_LARGE", e))(Se || {});
1206
+ const ms = {
1210
1207
  black: "#000000",
1211
1208
  white: "#ffffff",
1212
1209
  red: "#ff0000",
@@ -1223,19 +1220,19 @@ const bs = {
1223
1220
  teal: "#008080",
1224
1221
  navy: "#000080"
1225
1222
  };
1226
- function fs(e) {
1223
+ function bs(e) {
1227
1224
  const t = e.toLowerCase().trim();
1228
- return bs[t] || null;
1225
+ return ms[t] || null;
1229
1226
  }
1230
- function kt(e, t) {
1231
- const s = ae(e), i = ae(t), o = Math.max(s, i), r = Math.min(s, i);
1227
+ function St(e, t) {
1228
+ const s = re(e), i = re(t), o = Math.max(s, i), r = Math.min(s, i);
1232
1229
  return (o + 0.05) / (r + 0.05);
1233
1230
  }
1234
- function ae(e) {
1235
- const t = gs(e), s = t.r / 255, i = t.g / 255, o = t.b / 255, r = s <= 0.03928 ? s / 12.92 : Math.pow((s + 0.055) / 1.055, 2.4), a = i <= 0.03928 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4), n = o <= 0.03928 ? o / 12.92 : Math.pow((o + 0.055) / 1.055, 2.4);
1231
+ function re(e) {
1232
+ const t = fs(e), s = t.r / 255, i = t.g / 255, o = t.b / 255, r = s <= 0.03928 ? s / 12.92 : Math.pow((s + 0.055) / 1.055, 2.4), a = i <= 0.03928 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4), n = o <= 0.03928 ? o / 12.92 : Math.pow((o + 0.055) / 1.055, 2.4);
1236
1233
  return 0.2126 * r + 0.7152 * a + 0.0722 * n;
1237
1234
  }
1238
- function ne(e, t = {}) {
1235
+ function ae(e, t = {}) {
1239
1236
  if (!_(e).isValid())
1240
1237
  return console.warn(`Invalid color provided: ${e}`), "black";
1241
1238
  const {
@@ -1249,15 +1246,15 @@ function ne(e, t = {}) {
1249
1246
  } = t, n = o.map((m) => m === "black" ? "#000000" : m === "white" ? "#ffffff" : m === "light" ? r.light || "#f8f9fa" : m === "dark" ? r.dark || "#343a40" : m);
1250
1247
  let c = a, h = 0;
1251
1248
  for (const m of n) {
1252
- const b = kt(e, m);
1249
+ const b = St(e, m);
1253
1250
  b >= i && b > h && (h = b, c = m);
1254
1251
  }
1255
1252
  if (h === 0) {
1256
- const m = kt(e, a);
1253
+ const m = St(e, a);
1257
1254
  c = a, h = m;
1258
1255
  for (const b of n) {
1259
1256
  if (b === a) continue;
1260
- const S = kt(e, b);
1257
+ const S = St(e, b);
1261
1258
  S > h && (h = S, c = b);
1262
1259
  }
1263
1260
  console.warn(
@@ -1266,8 +1263,8 @@ function ne(e, t = {}) {
1266
1263
  }
1267
1264
  return c;
1268
1265
  }
1269
- function gs(e) {
1270
- const s = fs(e) || e, i = _(s);
1266
+ function fs(e) {
1267
+ const s = bs(e) || e, i = _(s);
1271
1268
  if (!i.isValid())
1272
1269
  return console.warn(`Invalid color provided: ${e}`), { r: 0, g: 0, b: 0 };
1273
1270
  const { r: o, g: r, b: a } = i.toRgb();
@@ -1276,7 +1273,7 @@ function gs(e) {
1276
1273
  function R(e, t) {
1277
1274
  return e === "left" || e === "right" ? t || "center" : e === "top" || e === "bottom" ? t || "start" : t || "center";
1278
1275
  }
1279
- function ys(e, t = "1rem") {
1276
+ function gs(e, t = "1rem") {
1280
1277
  if (!e) return t;
1281
1278
  const s = {
1282
1279
  xs: "0.75rem",
@@ -1295,7 +1292,7 @@ function ys(e, t = "1rem") {
1295
1292
  const a = parseFloat(o);
1296
1293
  return isNaN(a) ? t : `${a}rem`;
1297
1294
  }
1298
- function vs(e, t = "4px") {
1295
+ function ys(e, t = "4px") {
1299
1296
  if (!e) return t;
1300
1297
  const s = {
1301
1298
  xs: "2px",
@@ -1325,26 +1322,26 @@ function G() {
1325
1322
  updated: (/* @__PURE__ */ new Date()).toISOString()
1326
1323
  };
1327
1324
  }
1328
- function xs(e) {
1329
- if (!Tt())
1325
+ function vs(e) {
1326
+ if (!Ot())
1330
1327
  return G();
1331
1328
  try {
1332
- const t = ye(e);
1329
+ const t = ge(e);
1333
1330
  return t ? { ...G(), ...t } : G();
1334
1331
  } catch (t) {
1335
1332
  return f.warn("Failed to load localStats from localStorage", t), G();
1336
1333
  }
1337
1334
  }
1338
- function $s(e, t) {
1339
- if (!Tt())
1335
+ function xs(e, t) {
1336
+ if (!Ot())
1340
1337
  return !1;
1341
1338
  try {
1342
- return ve(e, t) ? (f.debug("Saved localStats to localStorage", t), !0) : !1;
1339
+ return ye(e, t) ? (f.debug("Saved localStats to localStorage", t), !0) : !1;
1343
1340
  } catch (s) {
1344
1341
  return f.warn("Failed to save localStats to localStorage", s), !1;
1345
1342
  }
1346
1343
  }
1347
- function ws(e, t) {
1344
+ function $s(e, t) {
1348
1345
  const s = {
1349
1346
  count: Math.max(0, e.count - t.count),
1350
1347
  sum: (e.sum || 0) - (t.sum || 0),
@@ -1359,7 +1356,7 @@ function ws(e, t) {
1359
1356
  s.breakdown[i] && (s.breakdown[i] = Math.max(0, s.breakdown[i] - o), s.breakdown[i] === 0 && delete s.breakdown[i]);
1360
1357
  return s;
1361
1358
  }
1362
- function Ss(e, t) {
1359
+ function ws(e, t) {
1363
1360
  if (!e.count && !t.count)
1364
1361
  return G();
1365
1362
  if (!e.count)
@@ -1380,7 +1377,7 @@ function Ss(e, t) {
1380
1377
  }
1381
1378
  return s;
1382
1379
  }
1383
- function ks(e) {
1380
+ function Ss(e) {
1384
1381
  if (!e || typeof e != "object")
1385
1382
  return 0;
1386
1383
  let t = 0, s = 0, i = 0;
@@ -1393,27 +1390,27 @@ function ks(e) {
1393
1390
  const o = t / i * 100, r = s / i * 100;
1394
1391
  return Math.round(o - r);
1395
1392
  }
1396
- var Cs = Object.defineProperty, g = (e, t, s, i) => {
1393
+ var ks = Object.defineProperty, g = (e, t, s, i) => {
1397
1394
  for (var o = void 0, r = e.length - 1, a; r >= 0; r--)
1398
1395
  (a = e[r]) && (o = a(t, s, o) || o);
1399
- return o && Cs(t, s, o), o;
1396
+ return o && ks(t, s, o), o;
1400
1397
  };
1401
- const jt = class jt extends V {
1398
+ const Lt = class Lt extends V {
1402
1399
  constructor() {
1403
- super(...arguments), this.readonly = !1, this.showStats = !1, this.showCounts = !1, this.showChart = !1, this.minContrast = ke.AA_NORMAL, this.labelPosition = "top", this.statsIsLoading = !1, this.localStats = G();
1400
+ super(...arguments), this.readonly = !1, this.showStats = !1, this.showCounts = !1, this.showChart = !1, this.minContrast = Se.AA_NORMAL, this.labelPosition = "top", this.statsIsLoading = !1, this.localStats = G();
1404
1401
  }
1405
1402
  /**
1406
1403
  * Gets the project key for the widget
1407
1404
  * @returns The project key
1408
1405
  */
1409
1406
  async getProjectKey() {
1410
- return this.projectKey || await ss() || "public";
1407
+ return this.projectKey || await es() || "public";
1411
1408
  }
1412
1409
  /**
1413
1410
  * Gets the localStorage key for this widget's localStats
1414
1411
  */
1415
1412
  async getLocalStatsKey() {
1416
- const t = await Jt(), s = await this.getProjectKey(), i = this.name || "unnamed";
1413
+ const t = await Zt(), s = await this.getProjectKey(), i = this.name || "unnamed";
1417
1414
  return `pc-local-stats-${t}-${s}-${i}`;
1418
1415
  }
1419
1416
  /**
@@ -1422,7 +1419,7 @@ const jt = class jt extends V {
1422
1419
  async loadLocalStatsFromStorage() {
1423
1420
  try {
1424
1421
  const t = await this.getLocalStatsKey();
1425
- this.localStats = xs(t), f.debug("Loaded localStats from localStorage", this.localStats);
1422
+ this.localStats = vs(t), f.debug("Loaded localStats from localStorage", this.localStats);
1426
1423
  } catch (t) {
1427
1424
  f.warn("Failed to generate localStorage key for localStats", t), this.localStats = G();
1428
1425
  }
@@ -1433,7 +1430,7 @@ const jt = class jt extends V {
1433
1430
  async saveLocalStatsToStorage() {
1434
1431
  try {
1435
1432
  const t = await this.getLocalStatsKey();
1436
- $s(t, this.localStats) || f.warn("Failed to save localStats to localStorage");
1433
+ xs(t, this.localStats) || f.warn("Failed to save localStats to localStorage");
1437
1434
  } catch (t) {
1438
1435
  f.warn("Failed to save localStats to localStorage", t);
1439
1436
  }
@@ -1442,7 +1439,7 @@ const jt = class jt extends V {
1442
1439
  * Updates the stats with the localStats
1443
1440
  */
1444
1441
  async updateStats(t, s) {
1445
- if (this.stats && (this.stats = ws(this.stats, this.localStats)), this.localStats = {
1442
+ if (this.stats && (this.stats = $s(this.stats, this.localStats)), this.localStats = {
1446
1443
  count: t > 0 ? 1 : 0,
1447
1444
  sum: t,
1448
1445
  avg: t,
@@ -1454,13 +1451,13 @@ const jt = class jt extends V {
1454
1451
  }, s && s.length > 0)
1455
1452
  for (const i of s)
1456
1453
  i && (this.localStats.breakdown[i] = 1);
1457
- this.stats ? this.stats = Ss(this.stats, this.localStats) : this.stats = { ...this.localStats };
1454
+ this.stats ? this.stats = ws(this.stats, this.localStats) : this.stats = { ...this.localStats };
1458
1455
  }
1459
1456
  /**
1460
1457
  * Undo the stats with the localStats
1461
1458
  */
1462
1459
  async submitStats(t, s) {
1463
- const i = Math.floor(Date.now() / 1e3).toString(), o = await Jt(), r = await this.getProjectKey(), a = this.name || "", n = {
1460
+ const i = Math.floor(Date.now() / 1e3).toString(), o = await Zt(), r = await this.getProjectKey(), a = this.name || "", n = {
1464
1461
  sessionId: o,
1465
1462
  projectId: r,
1466
1463
  widgetName: a,
@@ -1470,9 +1467,9 @@ const jt = class jt extends V {
1470
1467
  textValues: s,
1471
1468
  tags: this.tags,
1472
1469
  timestamp: i
1473
- }, c = ns(JSON.stringify(n), i);
1470
+ }, c = as(JSON.stringify(n), i);
1474
1471
  try {
1475
- os({ ...n, hash: c });
1472
+ is({ ...n, hash: c });
1476
1473
  } catch (h) {
1477
1474
  f.warn("Failed to send stats event", h);
1478
1475
  }
@@ -1499,7 +1496,7 @@ const jt = class jt extends V {
1499
1496
  if (this.primaryColor) {
1500
1497
  s += `--pc-primary-color: ${this.primaryColor} !important;
1501
1498
  `;
1502
- const i = ne(this.primaryColor, {
1499
+ const i = ae(this.primaryColor, {
1503
1500
  minContrast: this.minContrast,
1504
1501
  colorOptions: ["black", "white", "light", "dark"]
1505
1502
  });
@@ -1509,14 +1506,14 @@ const jt = class jt extends V {
1509
1506
  `;
1510
1507
  }
1511
1508
  if (this.buttonRadius) {
1512
- const i = vs(this.buttonRadius);
1509
+ const i = ys(this.buttonRadius);
1513
1510
  s += `--pc-button-radius: ${i} !important;
1514
1511
  `;
1515
1512
  }
1516
1513
  if (this.muteColor) {
1517
1514
  s += `--pc-mute-color: ${this.muteColor} !important;
1518
1515
  `;
1519
- const i = ne(this.muteColor, {
1516
+ const i = ae(this.muteColor, {
1520
1517
  minContrast: this.minContrast,
1521
1518
  colorOptions: ["black", "white", "light", "dark"]
1522
1519
  });
@@ -1525,7 +1522,7 @@ const jt = class jt extends V {
1525
1522
  }
1526
1523
  if (this.textColor && (s += `--pc-text-color: ${this.textColor} !important;
1527
1524
  `), this.size) {
1528
- const i = ys(this.size);
1525
+ const i = gs(this.size);
1529
1526
  s += `font-size: ${i} !important;
1530
1527
  `;
1531
1528
  }
@@ -1540,7 +1537,7 @@ const jt = class jt extends V {
1540
1537
  this.statsIsLoading = !0;
1541
1538
  try {
1542
1539
  const t = await this.getProjectKey();
1543
- this.stats = await is(this.name, t);
1540
+ this.stats = await ss(this.name, t);
1544
1541
  } catch (t) {
1545
1542
  f.debug("Error loading stats", t), this.stats = void 0;
1546
1543
  } finally {
@@ -1570,13 +1567,13 @@ const jt = class jt extends V {
1570
1567
  sum: ((o = this.stats) == null ? void 0 : o.sum) || 0,
1571
1568
  avg: ((r = this.stats) == null ? void 0 : r.avg) || 0,
1572
1569
  pct: ((a = this.stats) == null ? void 0 : a.pct) || 0,
1573
- nps: this.widgetType === "nps" ? ks(((n = this.stats) == null ? void 0 : n.breakdown) || {}) : 0
1570
+ nps: this.widgetType === "nps" ? Ss(((n = this.stats) == null ? void 0 : n.breakdown) || {}) : 0
1574
1571
  };
1575
- return as(t, s);
1572
+ return rs(t, s);
1576
1573
  }
1577
1574
  };
1578
- jt.styles = [Xe];
1579
- let u = jt;
1575
+ Lt.styles = [Je];
1576
+ let u = Lt;
1580
1577
  g([
1581
1578
  p({ type: Boolean, reflect: !0 })
1582
1579
  ], u.prototype, "readonly");
@@ -1652,7 +1649,7 @@ g([
1652
1649
  g([
1653
1650
  y()
1654
1651
  ], u.prototype, "localStats");
1655
- const Es = B`
1652
+ const Cs = B`
1656
1653
  /* Add responsive sizing with CSS variables */
1657
1654
  :host {
1658
1655
  --pc-nps-button-size: clamp(1.6em, calc(1.5em + 0.5vw), 2.4em);
@@ -1900,8 +1897,8 @@ const Es = B`
1900
1897
  * Copyright 2017 Google LLC
1901
1898
  * SPDX-License-Identifier: BSD-3-Clause
1902
1899
  */
1903
- const Ce = { ATTRIBUTE: 1 }, Ee = (e) => (...t) => ({ _$litDirective$: e, values: t });
1904
- let Ae = class {
1900
+ const ke = { ATTRIBUTE: 1 }, Ce = (e) => (...t) => ({ _$litDirective$: e, values: t });
1901
+ let Ee = class {
1905
1902
  constructor(t) {
1906
1903
  }
1907
1904
  get _$AU() {
@@ -1922,10 +1919,10 @@ let Ae = class {
1922
1919
  * Copyright 2018 Google LLC
1923
1920
  * SPDX-License-Identifier: BSD-3-Clause
1924
1921
  */
1925
- const v = Ee(class extends Ae {
1922
+ const v = Ce(class extends Ee {
1926
1923
  constructor(e) {
1927
1924
  var t;
1928
- if (super(e), e.type !== Ce.ATTRIBUTE || e.name !== "class" || ((t = e.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
1925
+ if (super(e), e.type !== ke.ATTRIBUTE || e.name !== "class" || ((t = e.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
1929
1926
  }
1930
1927
  render(e) {
1931
1928
  return " " + Object.keys(e).filter((t) => e[t]).join(" ") + " ";
@@ -1946,7 +1943,7 @@ const v = Ee(class extends Ae {
1946
1943
  return H;
1947
1944
  }
1948
1945
  });
1949
- function zt(e, t = {}) {
1946
+ function Mt(e, t = {}) {
1950
1947
  if (!e || e.length === 0)
1951
1948
  return l`<div class="pc-bar-chart pc-bar-chart--empty">No data available</div>`;
1952
1949
  const s = Math.max(...e.map((r) => r.value)), o = { ...{
@@ -1978,9 +1975,9 @@ function zt(e, t = {}) {
1978
1975
  </div>
1979
1976
  `;
1980
1977
  }
1981
- const lt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='5'%20viewBox='0%200%2020%205'%20fill='currentColor'%3e%3ccircle%20cx='3'%20cy='2.5'%20r='1.5'%20opacity='0.3'%3e%3canimate%20attributeName='opacity'%20begin='0s'%20dur='1s'%20values='0.3;0.8;0.3'%20repeatCount='indefinite'/%3e%3c/circle%3e%3ccircle%20cx='10'%20cy='2.5'%20r='1.5'%20opacity='0.3'%3e%3canimate%20attributeName='opacity'%20begin='0.2s'%20dur='1s'%20values='0.3;0.8;0.3'%20repeatCount='indefinite'/%3e%3c/circle%3e%3ccircle%20cx='17'%20cy='2.5'%20r='1.5'%20opacity='0.3'%3e%3canimate%20attributeName='opacity'%20begin='0.4s'%20dur='1s'%20values='0.3;0.8;0.3'%20repeatCount='indefinite'/%3e%3c/circle%3e%3c/svg%3e", bt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='currentColor'%3e%3cpath%20d='M200-200h57l391-391-57-57-391%20391v57Zm-80%2080v-170l528-527q12-11%2026.5-17t30.5-6q16%200%2031%206t26%2018l55%2056q12%2011%2017.5%2026t5.5%2030q0%2016-5.5%2030.5T817-647L290-120H120Zm640-584-56-56%2056%2056Zm-141%2085-28-29%2057%2057-29-28Z'/%3e%3c/svg%3e", Nt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='%23434343'%3e%3cpath%20d='M640-160v-280h160v280H640Zm-240%200v-640h160v640H400Zm-240%200v-440h160v440H160Z'/%3e%3c/svg%3e", It = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='%23434343'%3e%3cpath%20d='M160-160v-440h160v440H160Zm240%200v-400l160%20160v240H400Zm160-354L400-674v-126h160v286Zm240%20240L640-434v-6h160v166Zm-9%20219L55-791l57-57%20736%20736-57%2057Z'/%3e%3c/svg%3e";
1982
- var Rt = /* @__PURE__ */ ((e) => (e.DECORATIVE = "decorative", e.FUNCTIONAL = "functional", e.STATUS = "status", e))(Rt || {});
1983
- function _e(e, t = {}) {
1978
+ const lt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='5'%20viewBox='0%200%2020%205'%20fill='currentColor'%3e%3ccircle%20cx='3'%20cy='2.5'%20r='1.5'%20opacity='0.3'%3e%3canimate%20attributeName='opacity'%20begin='0s'%20dur='1s'%20values='0.3;0.8;0.3'%20repeatCount='indefinite'/%3e%3c/circle%3e%3ccircle%20cx='10'%20cy='2.5'%20r='1.5'%20opacity='0.3'%3e%3canimate%20attributeName='opacity'%20begin='0.2s'%20dur='1s'%20values='0.3;0.8;0.3'%20repeatCount='indefinite'/%3e%3c/circle%3e%3ccircle%20cx='17'%20cy='2.5'%20r='1.5'%20opacity='0.3'%3e%3canimate%20attributeName='opacity'%20begin='0.4s'%20dur='1s'%20values='0.3;0.8;0.3'%20repeatCount='indefinite'/%3e%3c/circle%3e%3c/svg%3e", bt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='currentColor'%3e%3cpath%20d='M200-200h57l391-391-57-57-391%20391v57Zm-80%2080v-170l528-527q12-11%2026.5-17t30.5-6q16%200%2031%206t26%2018l55%2056q12%2011%2017.5%2026t5.5%2030q0%2016-5.5%2030.5T817-647L290-120H120Zm640-584-56-56%2056%2056Zm-141%2085-28-29%2057%2057-29-28Z'/%3e%3c/svg%3e", zt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='%23434343'%3e%3cpath%20d='M640-160v-280h160v280H640Zm-240%200v-640h160v640H400Zm-240%200v-440h160v440H160Z'/%3e%3c/svg%3e", Nt = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='%23434343'%3e%3cpath%20d='M160-160v-440h160v440H160Zm240%200v-400l160%20160v240H400Zm160-354L400-674v-126h160v286Zm240%20240L640-434v-6h160v166Zm-9%20219L55-791l57-57%20736%20736-57%2057Z'/%3e%3c/svg%3e";
1979
+ var It = /* @__PURE__ */ ((e) => (e.DECORATIVE = "decorative", e.FUNCTIONAL = "functional", e.STATUS = "status", e))(It || {});
1980
+ function Ae(e, t = {}) {
1984
1981
  const {
1985
1982
  type: s = "functional",
1986
1983
  alt: i,
@@ -1995,20 +1992,20 @@ function _e(e, t = {}) {
1995
1992
  s === "functional" && !i && !o && console.warn(
1996
1993
  `No alt text or aria-label provided for functional icon in ${a}. This may cause accessibility issues.`
1997
1994
  );
1998
- const n = r ? " (selected)" : "", c = Mt(e) && !i ? "" : i || e, h = o || (c ? `${c}${n}` : n);
1995
+ const n = r ? " (selected)" : "", c = Tt(e) && !i ? "" : i || e, h = o || (c ? `${c}${n}` : n);
1999
1996
  return {
2000
1997
  alt: c,
2001
1998
  ariaLabel: h,
2002
1999
  ariaHidden: !1
2003
2000
  };
2004
2001
  }
2005
- function Ut(e, t = "polite") {
2002
+ function Rt(e, t = "polite") {
2006
2003
  let s = document.getElementById("screen-reader-announcer");
2007
2004
  s ? s.setAttribute("aria-live", t) : (s = document.createElement("div"), s.id = "screen-reader-announcer", s.setAttribute("aria-live", t), s.setAttribute("role", "status"), s.setAttribute("aria-atomic", "true"), s.style.position = "absolute", s.style.width = "1px", s.style.height = "1px", s.style.margin = "-1px", s.style.padding = "0", s.style.overflow = "hidden", s.style.clip = "rect(0, 0, 0, 0)", s.style.whiteSpace = "nowrap", s.style.border = "0", document.body.appendChild(s)), s.textContent = "", setTimeout(() => {
2008
2005
  s.textContent = e;
2009
2006
  }, 50);
2010
2007
  }
2011
- function Lt(e, t) {
2008
+ function Ut(e, t) {
2012
2009
  return `${e}: ${t}`;
2013
2010
  }
2014
2011
  var w = /* @__PURE__ */ ((e) => (e.BUTTON = "button", e.CHECKBOX = "checkbox", e.RADIO = "radio", e.RADIOGROUP = "radiogroup", e.SWITCH = "switch", e.TAB = "tab", e.TABLIST = "tablist", e.TABPANEL = "tabpanel", e.MENU = "menu", e.MENUITEM = "menuitem", e.MENUITEMCHECKBOX = "menuitemcheckbox", e.MENUITEMRADIO = "menuitemradio", e.SLIDER = "slider", e.TEXTBOX = "textbox", e.COMBOBOX = "combobox", e.LISTBOX = "listbox", e.OPTION = "option", e.PROGRESSBAR = "progressbar", e.STATUS = "status", e.ALERT = "alert", e.DIALOG = "dialog", e.GROUP = "group", e.REGION = "region", e.NONE = "none", e.PRESENTATION = "presentation", e))(w || {});
@@ -2022,7 +2019,7 @@ function O(e) {
2022
2019
  }
2023
2020
  return t;
2024
2021
  }
2025
- function As(e, t, s) {
2022
+ function Es(e, t, s) {
2026
2023
  return O({
2027
2024
  role: "button",
2028
2025
  ariaLabel: e,
@@ -2030,7 +2027,7 @@ function As(e, t, s) {
2030
2027
  ariaDisabled: s
2031
2028
  });
2032
2029
  }
2033
- function le(e, t, s, i = !1) {
2030
+ function ne(e, t, s, i = !1) {
2034
2031
  return O({
2035
2032
  role: i ? "radio" : "checkbox",
2036
2033
  ariaLabel: e,
@@ -2038,10 +2035,10 @@ function le(e, t, s, i = !1) {
2038
2035
  ariaDisabled: s
2039
2036
  });
2040
2037
  }
2041
- var _s = Object.defineProperty, Ps = Object.getOwnPropertyDescriptor, q = (e, t, s, i) => {
2042
- for (var o = i > 1 ? void 0 : i ? Ps(t, s) : t, r = e.length - 1, a; r >= 0; r--)
2038
+ var As = Object.defineProperty, _s = Object.getOwnPropertyDescriptor, q = (e, t, s, i) => {
2039
+ for (var o = i > 1 ? void 0 : i ? _s(t, s) : t, r = e.length - 1, a; r >= 0; r--)
2043
2040
  (a = e[r]) && (o = (i ? a(t, s, o) : a(o)) || o);
2044
- return i && o && _s(t, s, o), o;
2041
+ return i && o && As(t, s, o), o;
2045
2042
  };
2046
2043
  let T = class extends u {
2047
2044
  constructor() {
@@ -2100,7 +2097,7 @@ let T = class extends u {
2100
2097
  const n = t && a === Math.round(e), c = {
2101
2098
  "nps-button": !0,
2102
2099
  selected: n
2103
- }, h = As(`Rate ${a}`, n, this.readonly);
2100
+ }, h = Es(`Rate ${a}`, n, this.readonly);
2104
2101
  return l`
2105
2102
  <button
2106
2103
  data-testid="nps-button-${a}"
@@ -2171,7 +2168,7 @@ let T = class extends u {
2171
2168
  label: c,
2172
2169
  value: h
2173
2170
  })
2174
- ), o = getComputedStyle(this).getPropertyValue("--pc-accent-color").trim() || "#ffc107", r = zt(s, {
2171
+ ), o = getComputedStyle(this).getPropertyValue("--pc-accent-color").trim() || "#ffc107", r = Mt(s, {
2175
2172
  barColor: o,
2176
2173
  labelFormatter: (c) => `${c}`,
2177
2174
  valueFormatter: (c) => `${t > 0 ? Math.round(c / t * 100) : 0}%`
@@ -2213,7 +2210,7 @@ let T = class extends u {
2213
2210
  ${t}
2214
2211
  ${s ? l`
2215
2212
  <img
2216
- src="${this.isChartVisible ? It : Nt}"
2213
+ src="${this.isChartVisible ? Nt : zt}"
2217
2214
  alt="${this.isChartVisible ? "Hide chart" : "Show chart"}"
2218
2215
  class="chart-toggle-icon"
2219
2216
  data-testid="nps-chart-toggle-button"
@@ -2261,7 +2258,7 @@ let T = class extends u {
2261
2258
  if (this.readonly) return;
2262
2259
  this.hoverValue = -1;
2263
2260
  const t = this.label || "NPS", s = `Rated ${e} out of ${this.max}`;
2264
- Ut(Lt(t, s)), await this.handleChange(e, [String(e)]), this.isEditMode = !1;
2261
+ Rt(Ut(t, s)), await this.handleChange(e, [String(e)]), this.isEditMode = !1;
2265
2262
  }
2266
2263
  /**
2267
2264
  * Render min/max labels
@@ -2323,7 +2320,7 @@ let T = class extends u {
2323
2320
  `;
2324
2321
  }
2325
2322
  };
2326
- T.styles = [...u.styles, Es];
2323
+ T.styles = [...u.styles, Cs];
2327
2324
  q([
2328
2325
  p({ type: String, attribute: "min-label" })
2329
2326
  ], T.prototype, "minLabel", 2);
@@ -2348,7 +2345,7 @@ q([
2348
2345
  T = q([
2349
2346
  F("pc-nps")
2350
2347
  ], T);
2351
- const Os = B`
2348
+ const Ps = B`
2352
2349
  /* Add responsive sizing with CSS variables */
2353
2350
  :host {
2354
2351
  --pc-checkbox-size: clamp(1em, calc(0.8em + 0.3vw), 1.4em);
@@ -2785,10 +2782,10 @@ const Os = B`
2785
2782
  gap: 0.5em;
2786
2783
  }
2787
2784
  `;
2788
- var Ts = Object.defineProperty, Ms = Object.getOwnPropertyDescriptor, Q = (e, t, s, i) => {
2789
- for (var o = i > 1 ? void 0 : i ? Ms(t, s) : t, r = e.length - 1, a; r >= 0; r--)
2785
+ var Os = Object.defineProperty, Ts = Object.getOwnPropertyDescriptor, Q = (e, t, s, i) => {
2786
+ for (var o = i > 1 ? void 0 : i ? Ts(t, s) : t, r = e.length - 1, a; r >= 0; r--)
2790
2787
  (a = e[r]) && (o = (i ? a(t, s, o) : a(o)) || o);
2791
- return i && o && Ts(t, s, o), o;
2788
+ return i && o && Os(t, s, o), o;
2792
2789
  };
2793
2790
  let P = class extends V {
2794
2791
  constructor() {
@@ -2832,10 +2829,10 @@ Q([
2832
2829
  P = Q([
2833
2830
  F("pc-poll-option")
2834
2831
  ], P);
2835
- var zs = Object.defineProperty, Ns = Object.getOwnPropertyDescriptor, z = (e, t, s, i) => {
2836
- for (var o = i > 1 ? void 0 : i ? Ns(t, s) : t, r = e.length - 1, a; r >= 0; r--)
2832
+ var Ms = Object.defineProperty, zs = Object.getOwnPropertyDescriptor, z = (e, t, s, i) => {
2833
+ for (var o = i > 1 ? void 0 : i ? zs(t, s) : t, r = e.length - 1, a; r >= 0; r--)
2837
2834
  (a = e[r]) && (o = (i ? a(t, s, o) : a(o)) || o);
2838
- return i && o && zs(t, s, o), o;
2835
+ return i && o && Ms(t, s, o), o;
2839
2836
  };
2840
2837
  let C = class extends u {
2841
2838
  constructor() {
@@ -2967,17 +2964,17 @@ let C = class extends u {
2967
2964
  */
2968
2965
  renderOptionIcon(e, t) {
2969
2966
  if (!e) return "";
2970
- const s = Rt.DECORATIVE, i = `Poll for: ${t == null ? void 0 : t.label}`, o = (t == null ? void 0 : t.label) || "", r = t ? this.isSelected(t.value) : !1, a = _e(e, {
2967
+ const s = It.DECORATIVE, i = `Poll for: ${t == null ? void 0 : t.label}`, o = (t == null ? void 0 : t.label) || "", r = t ? this.isSelected(t.value) : !1, a = Ae(e, {
2971
2968
  type: s,
2972
2969
  alt: o,
2973
2970
  isSelected: r,
2974
2971
  componentName: i
2975
2972
  });
2976
- return xe(e) ? l`<span
2973
+ return ve(e) ? l`<span
2977
2974
  class="poll-option-icon"
2978
2975
  aria-hidden="${a.ariaHidden ? "true" : "false"}"
2979
2976
  >${e}</span
2980
- >` : Mt(e) ? l`<img
2977
+ >` : Tt(e) ? l`<img
2981
2978
  src="${e}"
2982
2979
  alt="${a.alt}"
2983
2980
  class="poll-option-icon-img"
@@ -3004,7 +3001,7 @@ let C = class extends u {
3004
3001
  "poll-option": !0,
3005
3002
  selected: s,
3006
3003
  disabled: e.disabled || !1
3007
- }, o = t + 1, r = `poll-${this.widgetType}-${o}`, a = le(
3004
+ }, o = t + 1, r = `poll-${this.widgetType}-${o}`, a = ne(
3008
3005
  e.label,
3009
3006
  s,
3010
3007
  e.disabled || this.readonly,
@@ -3206,7 +3203,7 @@ let C = class extends u {
3206
3203
  "poll-option--disabled": !0,
3207
3204
  selected: r,
3208
3205
  disabled: !0
3209
- }, n = o + 1, c = `poll-${this.widgetType}-disabled-${n}`, h = le(
3206
+ }, n = o + 1, c = `poll-${this.widgetType}-disabled-${n}`, h = ne(
3210
3207
  i.label,
3211
3208
  r,
3212
3209
  !0,
@@ -3274,7 +3271,7 @@ let C = class extends u {
3274
3271
  announceSelectionChange(e, t, s) {
3275
3272
  const i = `Poll for: ${e.label}`;
3276
3273
  let o = "";
3277
- this.multiple ? o = (t == null ? void 0 : t.includes(e.value)) || !1 ? `${e.label} selected` : `${e.label} unselected` : o = t && t.length > 0 ? `${e.label} selected` : "Selection cleared", Ut(Lt(i, o));
3274
+ this.multiple ? o = (t == null ? void 0 : t.includes(e.value)) || !1 ? `${e.label} selected` : `${e.label} unselected` : o = t && t.length > 0 ? `${e.label} selected` : "Selection cleared", Rt(Ut(i, o));
3278
3275
  }
3279
3276
  render() {
3280
3277
  const e = {
@@ -3304,7 +3301,7 @@ let C = class extends u {
3304
3301
  `;
3305
3302
  }
3306
3303
  };
3307
- C.styles = [...u.styles, Os];
3304
+ C.styles = [...u.styles, Ps];
3308
3305
  z([
3309
3306
  p({ type: Array })
3310
3307
  ], C.prototype, "options", 2);
@@ -3335,7 +3332,7 @@ z([
3335
3332
  C = z([
3336
3333
  F("pc-poll")
3337
3334
  ], C);
3338
- const Is = B`
3335
+ const Ns = B`
3339
3336
  .pc-container {
3340
3337
  gap: 0.6em;
3341
3338
  }
@@ -3567,10 +3564,10 @@ const Is = B`
3567
3564
  }
3568
3565
  }
3569
3566
  `;
3570
- var Rs = Object.defineProperty, Us = Object.getOwnPropertyDescriptor, A = (e, t, s, i) => {
3571
- for (var o = i > 1 ? void 0 : i ? Us(t, s) : t, r = e.length - 1, a; r >= 0; r--)
3567
+ var Is = Object.defineProperty, Rs = Object.getOwnPropertyDescriptor, A = (e, t, s, i) => {
3568
+ for (var o = i > 1 ? void 0 : i ? Rs(t, s) : t, r = e.length - 1, a; r >= 0; r--)
3572
3569
  (a = e[r]) && (o = (i ? a(t, s, o) : a(o)) || o);
3573
- return i && o && Rs(t, s, o), o;
3570
+ return i && o && Is(t, s, o), o;
3574
3571
  };
3575
3572
  let $ = class extends u {
3576
3573
  constructor() {
@@ -3779,7 +3776,7 @@ let $ = class extends u {
3779
3776
  `;
3780
3777
  }
3781
3778
  };
3782
- $.styles = [...u.styles, Is];
3779
+ $.styles = [...u.styles, Ns];
3783
3780
  A([
3784
3781
  p({ type: String })
3785
3782
  ], $.prototype, "placeholder", 2);
@@ -3816,7 +3813,7 @@ A([
3816
3813
  $ = A([
3817
3814
  F("pc-text")
3818
3815
  ], $);
3819
- const Ls = B`
3816
+ const Us = B`
3820
3817
  /* Adjust stats text for reactions */
3821
3818
  .pc-stats-text {
3822
3819
  font-size: var(--pc-font-size-small, 0.8em);
@@ -4029,7 +4026,7 @@ const Ls = B`
4029
4026
  }
4030
4027
 
4031
4028
  /* Media queries handled by base component */
4032
- `, ce = {
4029
+ `, le = {
4033
4030
  // Faces
4034
4031
  smile: "😊",
4035
4032
  laugh: "😄",
@@ -4172,17 +4169,17 @@ const Ls = B`
4172
4169
  hiking: "🥾",
4173
4170
  yoga: "🧘"
4174
4171
  };
4175
- function js(e) {
4172
+ function Ls(e) {
4176
4173
  let t = "❓", s = !1;
4177
- return e ? e in ce ? t = ce[e] : xe(e) ? t = e : Mt(e) ? (s = !0, t = e) : /^\w+@\w+$/.test(e) ? t = e : e.endsWith(".svg") ? (t = `https://cdn.jsdelivr.net/npm/@mdi/svg@7.4.47/svg/${e}`, s = !0) : t = e : t = "❓", {
4174
+ return e ? e in le ? t = le[e] : ve(e) ? t = e : Tt(e) ? (s = !0, t = e) : /^\w+@\w+$/.test(e) ? t = e : e.endsWith(".svg") ? (t = `https://cdn.jsdelivr.net/npm/@mdi/svg@7.4.47/svg/${e}`, s = !0) : t = e : t = "❓", {
4178
4175
  icon: t,
4179
4176
  isRemoteImage: s
4180
4177
  };
4181
4178
  }
4182
- var Ds = Object.defineProperty, Vs = Object.getOwnPropertyDescriptor, tt = (e, t, s, i) => {
4183
- for (var o = i > 1 ? void 0 : i ? Vs(t, s) : t, r = e.length - 1, a; r >= 0; r--)
4179
+ var js = Object.defineProperty, Ds = Object.getOwnPropertyDescriptor, tt = (e, t, s, i) => {
4180
+ for (var o = i > 1 ? void 0 : i ? Ds(t, s) : t, r = e.length - 1, a; r >= 0; r--)
4184
4181
  (a = e[r]) && (o = (i ? a(t, s, o) : a(o)) || o);
4185
- return i && o && Ds(t, s, o), o;
4182
+ return i && o && js(t, s, o), o;
4186
4183
  };
4187
4184
  let M = class extends V {
4188
4185
  constructor() {
@@ -4226,12 +4223,12 @@ tt([
4226
4223
  M = tt([
4227
4224
  F("pc-reaction-icon")
4228
4225
  ], M);
4229
- var Hs = Object.defineProperty, Bs = Object.getOwnPropertyDescriptor, N = (e, t, s, i) => {
4230
- for (var o = i > 1 ? void 0 : i ? Bs(t, s) : t, r = e.length - 1, a; r >= 0; r--)
4226
+ var Vs = Object.defineProperty, Hs = Object.getOwnPropertyDescriptor, N = (e, t, s, i) => {
4227
+ for (var o = i > 1 ? void 0 : i ? Hs(t, s) : t, r = e.length - 1, a; r >= 0; r--)
4231
4228
  (a = e[r]) && (o = (i ? a(t, s, o) : a(o)) || o);
4232
- return i && o && Hs(t, s, o), o;
4229
+ return i && o && Vs(t, s, o), o;
4233
4230
  };
4234
- const Fs = "/src/images/emoji/add_reaction.svg";
4231
+ const Bs = "/src/images/emoji/add_reaction.svg";
4235
4232
  let E = class extends u {
4236
4233
  constructor() {
4237
4234
  super(), this.options = [], this.multiple = !1, this.mode = "compact", this.popupPosition = "auto", this.buttonRadius = "999px", this.normalizedReactions = [], this.slotExists = !1, this.isPopoverVisible = !1, this.isChartVisible = !1, this.handleClickOutside = (e) => {
@@ -4333,7 +4330,7 @@ let E = class extends u {
4333
4330
  * Renders the icon for a reaction
4334
4331
  */
4335
4332
  renderReactionIcon(e, t) {
4336
- const { icon: s, isRemoteImage: i } = js(e), o = Rt.FUNCTIONAL, r = "reaction", a = t.tooltip || `${t.name} reaction`, n = _e(s, {
4333
+ const { icon: s, isRemoteImage: i } = Ls(e), o = It.FUNCTIONAL, r = "reaction", a = t.tooltip || `${t.name} reaction`, n = Ae(s, {
4337
4334
  type: o,
4338
4335
  alt: a,
4339
4336
  ariaLabel: a,
@@ -4387,7 +4384,7 @@ let E = class extends u {
4387
4384
  aria-expanded="${this.isPopoverVisible}"
4388
4385
  aria-haspopup="menu"
4389
4386
  >
4390
- <img src="${Fs}" alt="" class="trigger-icon" />
4387
+ <img src="${Bs}" alt="" class="trigger-icon" />
4391
4388
  </button>
4392
4389
  `;
4393
4390
  }
@@ -4486,7 +4483,7 @@ let E = class extends u {
4486
4483
  icon: h && this.renderReactionIcon((h == null ? void 0 : h.icon) || "", h ?? {}) || ""
4487
4484
  };
4488
4485
  }
4489
- ), o = getComputedStyle(this).getPropertyValue("--pc-accent-color").trim() || "#ffc107", r = zt(s, {
4486
+ ), o = getComputedStyle(this).getPropertyValue("--pc-accent-color").trim() || "#ffc107", r = Mt(s, {
4490
4487
  barColor: o,
4491
4488
  labelFormatter: (n) => `${n}`,
4492
4489
  valueFormatter: (n) => `${t > 0 ? Math.round(n / t * 100) : 0}%`
@@ -4526,7 +4523,7 @@ let E = class extends u {
4526
4523
  ${e}
4527
4524
  ${t ? l`
4528
4525
  <img
4529
- src="${this.isChartVisible ? It : Nt}"
4526
+ src="${this.isChartVisible ? Nt : zt}"
4530
4527
  alt="${this.isChartVisible ? "Hide chart" : "Show chart"}"
4531
4528
  class="chart-toggle-icon"
4532
4529
  data-testid="reaction-chart-toggle-button"
@@ -4547,7 +4544,7 @@ let E = class extends u {
4547
4544
  try {
4548
4545
  this.options = JSON.parse(s);
4549
4546
  } catch {
4550
- this.options = rs(s);
4547
+ this.options = os(s);
4551
4548
  }
4552
4549
  this.updateNormalizedReactions();
4553
4550
  }
@@ -4574,7 +4571,7 @@ let E = class extends u {
4574
4571
  */
4575
4572
  announceReactionChange(e, t) {
4576
4573
  const s = this.componentName, i = t ? `Added ${e.name} reaction` : `Removed ${e.name} reaction`;
4577
- Ut(Lt(s, i));
4574
+ Rt(Ut(s, i));
4578
4575
  }
4579
4576
  render() {
4580
4577
  const e = {
@@ -4596,7 +4593,7 @@ let E = class extends u {
4596
4593
  `;
4597
4594
  }
4598
4595
  };
4599
- E.styles = [...u.styles, Ls];
4596
+ E.styles = [...u.styles, Us];
4600
4597
  N([
4601
4598
  p({ type: Array })
4602
4599
  ], E.prototype, "options", 2);
@@ -4627,7 +4624,7 @@ N([
4627
4624
  E = N([
4628
4625
  F("pc-reaction")
4629
4626
  ], E);
4630
- const qs = B`
4627
+ const Fs = B`
4631
4628
  /* Base variables */
4632
4629
  :host {
4633
4630
  --pc-stars-star-size: clamp(1.2em, calc(1.2em + 0.3vw), 2em);
@@ -4984,10 +4981,10 @@ const qs = B`
4984
4981
  * Copyright 2018 Google LLC
4985
4982
  * SPDX-License-Identifier: BSD-3-Clause
4986
4983
  */
4987
- const Pe = "important", Ks = " !" + Pe, Ys = Ee(class extends Ae {
4984
+ const _e = "important", qs = " !" + _e, Ks = Ce(class extends Ee {
4988
4985
  constructor(e) {
4989
4986
  var t;
4990
- if (super(e), e.type !== Ce.ATTRIBUTE || e.name !== "style" || ((t = e.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
4987
+ if (super(e), e.type !== ke.ATTRIBUTE || e.name !== "style" || ((t = e.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
4991
4988
  }
4992
4989
  render(e) {
4993
4990
  return Object.keys(e).reduce((t, s) => {
@@ -5003,17 +5000,17 @@ const Pe = "important", Ks = " !" + Pe, Ys = Ee(class extends Ae {
5003
5000
  const o = t[i];
5004
5001
  if (o != null) {
5005
5002
  this.ft.add(i);
5006
- const r = typeof o == "string" && o.endsWith(Ks);
5007
- i.includes("-") || r ? s.setProperty(i, r ? o.slice(0, -11) : o, r ? Pe : "") : s[i] = o;
5003
+ const r = typeof o == "string" && o.endsWith(qs);
5004
+ i.includes("-") || r ? s.setProperty(i, r ? o.slice(0, -11) : o, r ? _e : "") : s[i] = o;
5008
5005
  }
5009
5006
  }
5010
5007
  return H;
5011
5008
  }
5012
5009
  });
5013
- var Gs = Object.defineProperty, Ws = Object.getOwnPropertyDescriptor, Z = (e, t, s, i) => {
5014
- for (var o = i > 1 ? void 0 : i ? Ws(t, s) : t, r = e.length - 1, a; r >= 0; r--)
5010
+ var Ys = Object.defineProperty, Gs = Object.getOwnPropertyDescriptor, Z = (e, t, s, i) => {
5011
+ for (var o = i > 1 ? void 0 : i ? Gs(t, s) : t, r = e.length - 1, a; r >= 0; r--)
5015
5012
  (a = e[r]) && (o = (i ? a(t, s, o) : a(o)) || o);
5016
- return i && o && Gs(t, s, o), o;
5013
+ return i && o && Ys(t, s, o), o;
5017
5014
  };
5018
5015
  let U = class extends u {
5019
5016
  constructor() {
@@ -5092,7 +5089,7 @@ let U = class extends u {
5092
5089
  <span
5093
5090
  data-testid="stars-view-star-${s}"
5094
5091
  class=${v(r)}
5095
- style=${Ys(a)}
5092
+ style=${Ks(a)}
5096
5093
  role="presentation"
5097
5094
  >
5098
5095
 
@@ -5147,7 +5144,7 @@ let U = class extends u {
5147
5144
  ${t}
5148
5145
  ${s ? l`
5149
5146
  <img
5150
- src="${this.isChartVisible ? It : Nt}"
5147
+ src="${this.isChartVisible ? Nt : zt}"
5151
5148
  alt="${this.isChartVisible ? "Hide chart" : "Show chart"}"
5152
5149
  class="chart-toggle-icon"
5153
5150
  data-testid="stars-chart-toggle-button"
@@ -5189,7 +5186,7 @@ let U = class extends u {
5189
5186
  value: c,
5190
5187
  icon: "★"
5191
5188
  })
5192
- ), o = getComputedStyle(this).getPropertyValue("--pc-accent-color").trim() || "#ffc107", r = zt(s, {
5189
+ ), o = getComputedStyle(this).getPropertyValue("--pc-accent-color").trim() || "#ffc107", r = Mt(s, {
5193
5190
  barColor: o,
5194
5191
  labelFormatter: (n) => `${n}`,
5195
5192
  valueFormatter: (n) => `${t > 0 ? Math.round(n / t * 100) : 0}%`
@@ -5258,7 +5255,7 @@ let U = class extends u {
5258
5255
  `;
5259
5256
  }
5260
5257
  };
5261
- U.styles = [...u.styles, qs];
5258
+ U.styles = [...u.styles, Fs];
5262
5259
  Z([
5263
5260
  p({ type: Number, attribute: "num-stars" })
5264
5261
  ], U.prototype, "numStars", 2);
@@ -5280,12 +5277,12 @@ Z([
5280
5277
  U = Z([
5281
5278
  F("pc-stars")
5282
5279
  ], U);
5283
- var Zs = Object.defineProperty, Js = Object.getOwnPropertyDescriptor, Oe = (e, t, s, i) => {
5284
- for (var o = i > 1 ? void 0 : i ? Js(t, s) : t, r = e.length - 1, a; r >= 0; r--)
5280
+ var Ws = Object.defineProperty, Zs = Object.getOwnPropertyDescriptor, Pe = (e, t, s, i) => {
5281
+ for (var o = i > 1 ? void 0 : i ? Zs(t, s) : t, r = e.length - 1, a; r >= 0; r--)
5285
5282
  (a = e[r]) && (o = (i ? a(t, s, o) : a(o)) || o);
5286
- return i && o && Zs(t, s, o), o;
5283
+ return i && o && Ws(t, s, o), o;
5287
5284
  };
5288
- let Et = class extends V {
5285
+ let Ct = class extends V {
5289
5286
  /**
5290
5287
  * Disable shadow DOM for PollCatch
5291
5288
  */
@@ -5343,12 +5340,12 @@ let Et = class extends V {
5343
5340
  }
5344
5341
  }
5345
5342
  };
5346
- Oe([
5343
+ Pe([
5347
5344
  p({ type: String })
5348
- ], Et.prototype, "type", 2);
5349
- Et = Oe([
5345
+ ], Ct.prototype, "type", 2);
5346
+ Ct = Pe([
5350
5347
  F("poll-catch")
5351
- ], Et);
5348
+ ], Ct);
5352
5349
  export {
5353
5350
  T as PcNps,
5354
5351
  C as PcPoll,
@@ -5357,5 +5354,5 @@ export {
5357
5354
  M as PcReactionIcon,
5358
5355
  U as PcStars,
5359
5356
  $ as PcText,
5360
- Et as PollCatch
5357
+ Ct as PollCatch
5361
5358
  };