@searchcraft/react-sdk 0.10.5 → 0.10.6

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.
@@ -1,34 +1,34 @@
1
- var pn = Object.defineProperty;
2
- var mn = (e, t, r) => t in e ? pn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var f = (e, t, r) => mn(e, typeof t != "symbol" ? t + "" : t, r);
1
+ var mn = Object.defineProperty;
2
+ var gn = (e, t, r) => t in e ? mn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var f = (e, t, r) => gn(e, typeof t != "symbol" ? t + "" : t, r);
4
4
  import { jsx as ge } from "react/jsx-runtime";
5
5
  import ve from "react";
6
- const gn = "searchcraft-javascript-sdk", Fe = (
6
+ const vn = "searchcraft-javascript-sdk", Le = (
7
7
  /* searchcraft-javascript-sdk */
8
8
  { experimentalSlotFixes: !1, hydratedSelectorName: "hydrated", lazyLoad: !1, shadowDom: !1, slotRelocation: !0, updatable: !0 }
9
9
  );
10
- var vn = Object.defineProperty, bn = (e, t) => {
10
+ var bn = Object.defineProperty, yn = (e, t) => {
11
11
  for (var r in t)
12
- vn(e, r, { get: t[r], enumerable: !0 });
13
- }, yn = "http://www.w3.org/2000/svg", Cn = "http://www.w3.org/1999/xhtml", Sn = (e, t) => {
12
+ bn(e, r, { get: t[r], enumerable: !0 });
13
+ }, Cn = "http://www.w3.org/2000/svg", Sn = "http://www.w3.org/1999/xhtml", wn = (e, t) => {
14
14
  var r;
15
15
  const s = t.$cmpMeta$;
16
16
  Object.entries((r = s.$members$) != null ? r : {}).map(([o, [n]]) => {
17
17
  if (n & 31 || n & 32) {
18
- const c = e[o], l = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e), o);
18
+ const c = e[o], i = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e), o);
19
19
  Object.defineProperty(e, o, {
20
20
  get() {
21
- return l.get.call(this);
21
+ return i.get.call(this);
22
22
  },
23
- set(u) {
24
- l.set.call(this, u);
23
+ set(h) {
24
+ i.set.call(this, h);
25
25
  },
26
26
  configurable: !0,
27
27
  enumerable: !0
28
28
  }), e[o] = t.$instanceValues$.has(o) ? t.$instanceValues$.get(o) : c;
29
29
  }
30
30
  });
31
- }, er = /* @__PURE__ */ new WeakMap(), wn = (e) => er.delete(e), Se = (e) => er.get(e), kn = (e, t) => {
31
+ }, er = /* @__PURE__ */ new WeakMap(), En = (e) => er.delete(e), Se = (e) => er.get(e), kn = (e, t) => {
32
32
  const r = {
33
33
  $flags$: 0,
34
34
  $hostElement$: e,
@@ -37,8 +37,8 @@ var vn = Object.defineProperty, bn = (e, t) => {
37
37
  };
38
38
  r.$onReadyPromise$ = new Promise((a) => r.$onReadyResolve$ = a), e["s-p"] = [], e["s-rc"] = [];
39
39
  const s = er.set(e, r);
40
- return Sn(e, r), s;
41
- }, Xr = (e, t) => t in e, St = (e, t) => (0, console.error)(e, t), wt = typeof window < "u" ? window : {}, Oe = wt.document || { head: {} }, F = wt.HTMLElement || class {
40
+ return wn(e, r), s;
41
+ }, Jr = (e, t) => t in e, St = (e, t) => (0, console.error)(e, t), wt = typeof window < "u" ? window : {}, Oe = wt.document || { head: {} }, L = wt.HTMLElement || class {
42
42
  }, te = {
43
43
  $flags$: 0,
44
44
  $resourcesUrl$: "",
@@ -47,9 +47,9 @@ var vn = Object.defineProperty, bn = (e, t) => {
47
47
  ael: (e, t, r, s) => e.addEventListener(t, r, s),
48
48
  rel: (e, t, r, s) => e.removeEventListener(t, r, s),
49
49
  ce: (e, t) => new CustomEvent(e, t)
50
- }, En = Fe.shadowDom, xn = (e) => Promise.resolve(e), Qt = !1, Jr = [], xs = [], Rn = (e, t) => (r) => {
50
+ }, Rn = Le.shadowDom, xn = (e) => Promise.resolve(e), Qt = !1, es = [], xs = [], Tn = (e, t) => (r) => {
51
51
  e.push(r), Qt || (Qt = !0, te.$flags$ & 4 ? tr(Kt) : te.raf(Kt));
52
- }, es = (e) => {
52
+ }, ts = (e) => {
53
53
  for (let t = 0; t < e.length; t++)
54
54
  try {
55
55
  e[t](performance.now());
@@ -58,71 +58,71 @@ var vn = Object.defineProperty, bn = (e, t) => {
58
58
  }
59
59
  e.length = 0;
60
60
  }, Kt = () => {
61
- es(Jr), es(xs), (Qt = Jr.length > 0) && te.raf(Kt);
62
- }, tr = (e) => xn().then(e), Tn = /* @__PURE__ */ Rn(xs), rr = (e) => (e = typeof e, e === "object" || e === "function"), Pn = {};
63
- bn(Pn, {
64
- err: () => Rs,
65
- map: () => $n,
61
+ ts(es), ts(xs), (Qt = es.length > 0) && te.raf(Kt);
62
+ }, tr = (e) => xn().then(e), Pn = /* @__PURE__ */ Tn(xs), rr = (e) => (e = typeof e, e === "object" || e === "function"), $n = {};
63
+ yn($n, {
64
+ err: () => Ts,
65
+ map: () => _n,
66
66
  ok: () => Xt,
67
- unwrap: () => _n,
68
- unwrapErr: () => In
67
+ unwrap: () => In,
68
+ unwrapErr: () => An
69
69
  });
70
70
  var Xt = (e) => ({
71
71
  isOk: !0,
72
72
  isErr: !1,
73
73
  value: e
74
- }), Rs = (e) => ({
74
+ }), Ts = (e) => ({
75
75
  isOk: !1,
76
76
  isErr: !0,
77
77
  value: e
78
78
  });
79
- function $n(e, t) {
79
+ function _n(e, t) {
80
80
  if (e.isOk) {
81
81
  const r = t(e.value);
82
82
  return r instanceof Promise ? r.then((s) => Xt(s)) : Xt(r);
83
83
  }
84
84
  if (e.isErr) {
85
85
  const r = e.value;
86
- return Rs(r);
86
+ return Ts(r);
87
87
  }
88
88
  throw "should never get here";
89
89
  }
90
- var _n = (e) => {
90
+ var In = (e) => {
91
91
  if (e.isOk)
92
92
  return e.value;
93
93
  throw e.value;
94
- }, In = (e) => {
94
+ }, An = (e) => {
95
95
  if (e.isErr)
96
96
  return e.value;
97
97
  throw e.value;
98
- }, Ts = (e) => {
98
+ }, Ps = (e) => {
99
99
  const t = e.__childNodes || e.childNodes;
100
- e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && Ps(t, e.tagName).forEach((r) => {
100
+ e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && $s(t, e.tagName).forEach((r) => {
101
101
  var s;
102
- r.nodeType === 1 && r.tagName === "SLOT-FB" && ((s = An(r, r["s-sn"], !1)) != null && s.length ? r.hidden = !0 : r.hidden = !1);
102
+ r.nodeType === 1 && r.tagName === "SLOT-FB" && ((s = Mn(r, r["s-sn"], !1)) != null && s.length ? r.hidden = !0 : r.hidden = !1);
103
103
  });
104
104
  for (const r of t)
105
- r.nodeType === 1 && (r.__childNodes || r.childNodes).length && Ts(r);
105
+ r.nodeType === 1 && (r.__childNodes || r.childNodes).length && Ps(r);
106
106
  };
107
- function Ps(e, t, r) {
107
+ function $s(e, t, r) {
108
108
  let s = 0, a = [], o;
109
109
  for (; s < e.length; s++)
110
- o = e[s], o["s-sr"] && o["s-hn"] === t && r === void 0 && a.push(o), a = [...a, ...Ps(o.childNodes, t, r)];
110
+ o = e[s], o["s-sr"] && o["s-hn"] === t && r === void 0 && a.push(o), a = [...a, ...$s(o.childNodes, t, r)];
111
111
  return a;
112
112
  }
113
- var An = (e, t, r = !0) => {
113
+ var Mn = (e, t, r = !0) => {
114
114
  const s = [];
115
115
  for ((r && e["s-sr"] || !e["s-sr"]) && s.push(e); (e = e.nextSibling) && e["s-sn"] === t; )
116
116
  s.push(e);
117
117
  return s;
118
- }, ts = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", Ke = (e, t = "") => () => {
119
- }, h = (e, t, ...r) => {
118
+ }, rs = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", Ke = (e, t = "") => () => {
119
+ }, u = (e, t, ...r) => {
120
120
  let s = null, a = null, o = null, n = !1, c = !1;
121
- const l = [], u = (p) => {
121
+ const i = [], h = (p) => {
122
122
  for (let m = 0; m < p.length; m++)
123
- s = p[m], Array.isArray(s) ? u(s) : s != null && typeof s != "boolean" && ((n = typeof e != "function" && !rr(s)) && (s = String(s)), n && c ? l[l.length - 1].$text$ += s : l.push(n ? vt(null, s) : s), c = n);
123
+ s = p[m], Array.isArray(s) ? h(s) : s != null && typeof s != "boolean" && ((n = typeof e != "function" && !rr(s)) && (s = String(s)), n && c ? i[i.length - 1].$text$ += s : i.push(n ? vt(null, s) : s), c = n);
124
124
  };
125
- if (u(r), t) {
125
+ if (h(r), t) {
126
126
  t.key && (a = t.key), t.name && (o = t.name);
127
127
  {
128
128
  const p = t.className || t.class;
@@ -132,11 +132,11 @@ var An = (e, t, r = !0) => {
132
132
  if (typeof e == "function")
133
133
  return e(
134
134
  t === null ? {} : t,
135
- l,
135
+ i,
136
136
  Ln
137
137
  );
138
- const i = vt(e, null);
139
- return i.$attrs$ = t, l.length > 0 && (i.$children$ = l), i.$key$ = a, i.$name$ = o, i;
138
+ const l = vt(e, null);
139
+ return l.$attrs$ = t, i.length > 0 && (l.$children$ = i), l.$key$ = a, l.$name$ = o, l;
140
140
  }, vt = (e, t) => {
141
141
  const r = {
142
142
  $flags$: 0,
@@ -146,78 +146,78 @@ var An = (e, t, r = !0) => {
146
146
  $children$: null
147
147
  };
148
148
  return r.$attrs$ = null, r.$key$ = null, r.$name$ = null, r;
149
- }, Mn = {}, On = (e) => e && e.$tag$ === Mn, Ln = {
150
- forEach: (e, t) => e.map(rs).forEach(t),
151
- map: (e, t) => e.map(rs).map(t).map(Fn)
152
- }, rs = (e) => ({
149
+ }, On = {}, Fn = (e) => e && e.$tag$ === On, Ln = {
150
+ forEach: (e, t) => e.map(ss).forEach(t),
151
+ map: (e, t) => e.map(ss).map(t).map(Dn)
152
+ }, ss = (e) => ({
153
153
  vattrs: e.$attrs$,
154
154
  vchildren: e.$children$,
155
155
  vkey: e.$key$,
156
156
  vname: e.$name$,
157
157
  vtag: e.$tag$,
158
158
  vtext: e.$text$
159
- }), Fn = (e) => {
159
+ }), Dn = (e) => {
160
160
  if (typeof e.vtag == "function") {
161
161
  const r = { ...e.vattrs };
162
- return e.vkey && (r.key = e.vkey), e.vname && (r.name = e.vname), h(e.vtag, r, ...e.vchildren || []);
162
+ return e.vkey && (r.key = e.vkey), e.vname && (r.name = e.vname), u(e.vtag, r, ...e.vchildren || []);
163
163
  }
164
164
  const t = vt(e.vtag, e.vtext);
165
165
  return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname, t;
166
- }, $s = (e, t) => e != null && !rr(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, Dn = (e) => e, ye = (e, t, r) => {
167
- const s = Dn(e);
166
+ }, _s = (e, t) => e != null && !rr(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, Nn = (e) => e, ye = (e, t, r) => {
167
+ const s = Nn(e);
168
168
  return {
169
- emit: (a) => _s(s, t, {
169
+ emit: (a) => Is(s, t, {
170
170
  bubbles: !0,
171
171
  composed: !0,
172
172
  cancelable: !0,
173
173
  detail: a
174
174
  })
175
175
  };
176
- }, _s = (e, t, r) => {
176
+ }, Is = (e, t, r) => {
177
177
  const s = te.ce(t, r);
178
178
  return e.dispatchEvent(s), s;
179
- }, dt = /* @__PURE__ */ new WeakMap(), ss = (e, t, r, s, a, o) => {
179
+ }, dt = /* @__PURE__ */ new WeakMap(), as = (e, t, r, s, a, o) => {
180
180
  if (r !== s) {
181
- let n = Xr(e, t), c = t.toLowerCase();
181
+ let n = Jr(e, t), c = t.toLowerCase();
182
182
  if (t === "class") {
183
- const l = e.classList, u = as(r);
184
- let i = as(s);
185
- e["s-si"] ? (i.push(e["s-si"]), u.forEach((p) => {
186
- p.startsWith(e["s-si"]) && i.push(p);
187
- }), i = [...new Set(i)], l.add(...i), delete e["s-si"]) : (l.remove(...u.filter((p) => p && !i.includes(p))), l.add(...i.filter((p) => p && !u.includes(p))));
183
+ const i = e.classList, h = ns(r);
184
+ let l = ns(s);
185
+ e["s-si"] ? (l.push(e["s-si"]), h.forEach((p) => {
186
+ p.startsWith(e["s-si"]) && l.push(p);
187
+ }), l = [...new Set(l)], i.add(...l), delete e["s-si"]) : (i.remove(...h.filter((p) => p && !l.includes(p))), i.add(...l.filter((p) => p && !h.includes(p))));
188
188
  } else if (t === "style") {
189
- for (const l in r)
190
- (!s || s[l] == null) && (l.includes("-") ? e.style.removeProperty(l) : e.style[l] = "");
191
- for (const l in s)
192
- (!r || s[l] !== r[l]) && (l.includes("-") ? e.style.setProperty(l, s[l]) : e.style[l] = s[l]);
189
+ for (const i in r)
190
+ (!s || s[i] == null) && (i.includes("-") ? e.style.removeProperty(i) : e.style[i] = "");
191
+ for (const i in s)
192
+ (!r || s[i] !== r[i]) && (i.includes("-") ? e.style.setProperty(i, s[i]) : e.style[i] = s[i]);
193
193
  } else if (t !== "key") if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n") {
194
- if (t[2] === "-" ? t = t.slice(3) : Xr(wt, c) ? t = c.slice(2) : t = c[2] + t.slice(3), r || s) {
195
- const l = t.endsWith(Is);
196
- t = t.replace(Hn, ""), r && te.rel(e, t, r, l), s && te.ael(e, t, s, l);
194
+ if (t[2] === "-" ? t = t.slice(3) : Jr(wt, c) ? t = c.slice(2) : t = c[2] + t.slice(3), r || s) {
195
+ const i = t.endsWith(As);
196
+ t = t.replace(Un, ""), r && te.rel(e, t, r, i), s && te.ael(e, t, s, i);
197
197
  }
198
198
  } else {
199
- const l = rr(s);
200
- if ((n || l && s !== null) && !a)
199
+ const i = rr(s);
200
+ if ((n || i && s !== null) && !a)
201
201
  try {
202
202
  if (e.tagName.includes("-"))
203
203
  e[t] !== s && (e[t] = s);
204
204
  else {
205
- const u = s ?? "";
206
- t === "list" ? n = !1 : (r == null || e[t] != u) && (typeof e.__lookupSetter__(t) == "function" ? e[t] = u : e.setAttribute(t, u));
205
+ const h = s ?? "";
206
+ t === "list" ? n = !1 : (r == null || e[t] != h) && (typeof e.__lookupSetter__(t) == "function" ? e[t] = h : e.setAttribute(t, h));
207
207
  }
208
208
  } catch {
209
209
  }
210
- s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!n || o & 4 || a) && !l && (s = s === !0 ? "" : s, e.setAttribute(t, s));
210
+ s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!n || o & 4 || a) && !i && (s = s === !0 ? "" : s, e.setAttribute(t, s));
211
211
  }
212
212
  }
213
- }, Nn = /\s/, as = (e) => (typeof e == "object" && "baseVal" in e && (e = e.baseVal), e ? e.split(Nn) : []), Is = "Capture", Hn = new RegExp(Is + "$"), As = (e, t, r) => {
213
+ }, Hn = /\s/, ns = (e) => (typeof e == "object" && "baseVal" in e && (e = e.baseVal), e ? e.split(Hn) : []), As = "Capture", Un = new RegExp(As + "$"), Ms = (e, t, r) => {
214
214
  const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, a = e && e.$attrs$ || {}, o = t.$attrs$ || {};
215
- for (const n of ns(Object.keys(a)))
216
- n in o || ss(s, n, a[n], void 0, r, t.$flags$);
217
- for (const n of ns(Object.keys(o)))
218
- ss(s, n, a[n], o[n], r, t.$flags$);
215
+ for (const n of os(Object.keys(a)))
216
+ n in o || as(s, n, a[n], void 0, r, t.$flags$);
217
+ for (const n of os(Object.keys(o)))
218
+ as(s, n, a[n], o[n], r, t.$flags$);
219
219
  };
220
- function ns(e) {
220
+ function os(e) {
221
221
  return e.includes("ref") ? (
222
222
  // we need to sort these to ensure that `'ref'` is the last attr
223
223
  [...e.filter((t) => t !== "ref"), "ref"]
@@ -229,7 +229,7 @@ function ns(e) {
229
229
  var Jt, sr, bt = !1, yt = !1, ar = !1, re = !1, Ct = (e, t, r) => {
230
230
  var s;
231
231
  const a = t.$children$[r];
232
- let o = 0, n, c, l;
232
+ let o = 0, n, c, i;
233
233
  if (bt || (ar = !0, a.$tag$ === "slot" && (a.$flags$ |= a.$children$ ? (
234
234
  // slot element has fallback content
235
235
  // still create an element that "mocks" the slot element
@@ -245,28 +245,28 @@ var Jt, sr, bt = !1, yt = !1, ar = !1, re = !1, Ct = (e, t, r) => {
245
245
  n = a.$elm$ = Oe.createTextNode("");
246
246
  else {
247
247
  if (re || (re = a.$tag$ === "svg"), n = a.$elm$ = Oe.createElementNS(
248
- re ? yn : Cn,
249
- !bt && Fe.slotRelocation && a.$flags$ & 2 ? "slot-fb" : a.$tag$
250
- ), re && a.$tag$ === "foreignObject" && (re = !1), As(null, a, re), a.$children$)
248
+ re ? Cn : Sn,
249
+ !bt && Le.slotRelocation && a.$flags$ & 2 ? "slot-fb" : a.$tag$
250
+ ), re && a.$tag$ === "foreignObject" && (re = !1), Ms(null, a, re), a.$children$)
251
251
  for (o = 0; o < a.$children$.length; ++o)
252
252
  c = Ct(e, a, o), c && n.appendChild(c);
253
253
  a.$tag$ === "svg" ? re = !1 : n.tagName === "foreignObject" && (re = !0);
254
254
  }
255
- return n["s-hn"] = sr, a.$flags$ & 3 && (n["s-sr"] = !0, n["s-cr"] = Jt, n["s-sn"] = a.$name$ || "", n["s-rf"] = (s = a.$attrs$) == null ? void 0 : s.ref, l = e && e.$children$ && e.$children$[r], l && l.$tag$ === a.$tag$ && e.$elm$ && Xe(e.$elm$, !1)), n;
255
+ return n["s-hn"] = sr, a.$flags$ & 3 && (n["s-sr"] = !0, n["s-cr"] = Jt, n["s-sn"] = a.$name$ || "", n["s-rf"] = (s = a.$attrs$) == null ? void 0 : s.ref, i = e && e.$children$ && e.$children$[r], i && i.$tag$ === a.$tag$ && e.$elm$ && Xe(e.$elm$, !1)), n;
256
256
  }, Xe = (e, t) => {
257
257
  te.$flags$ |= 1;
258
258
  const r = Array.from(e.__childNodes || e.childNodes);
259
- e["s-sr"] && Fe.experimentalSlotFixes;
259
+ e["s-sr"] && Le.experimentalSlotFixes;
260
260
  for (let s = r.length - 1; s >= 0; s--) {
261
261
  const a = r[s];
262
262
  a["s-hn"] !== sr && a["s-ol"] && (Ce(Je(a).parentNode, a, Je(a)), a["s-ol"].remove(), a["s-ol"] = void 0, a["s-sh"] = void 0, ar = !0), t && Xe(a, t);
263
263
  }
264
264
  te.$flags$ &= -2;
265
- }, Ms = (e, t, r, s, a, o) => {
265
+ }, Os = (e, t, r, s, a, o) => {
266
266
  let n = e["s-cr"] && e["s-cr"].parentNode || e, c;
267
267
  for (; a <= o; ++a)
268
268
  s[a] && (c = Ct(null, r, a), c && (s[a].$elm$ = c, Ce(n, c, Je(t))));
269
- }, Os = (e, t, r) => {
269
+ }, Fs = (e, t, r) => {
270
270
  for (let s = t; s <= r; ++s) {
271
271
  const a = e[s];
272
272
  if (a) {
@@ -274,52 +274,52 @@ var Jt, sr, bt = !1, yt = !1, ar = !1, re = !1, Ct = (e, t, r) => {
274
274
  o && (yt = !0, o["s-ol"] ? o["s-ol"].remove() : Xe(o, !0), o.remove());
275
275
  }
276
276
  }
277
- }, Un = (e, t, r, s, a = !1) => {
278
- let o = 0, n = 0, c = 0, l = 0, u = t.length - 1, i = t[0], p = t[u], m = s.length - 1, v = s[0], b = s[m], T, _;
279
- for (; o <= u && n <= m; )
280
- if (i == null)
281
- i = t[++o];
277
+ }, zn = (e, t, r, s, a = !1) => {
278
+ let o = 0, n = 0, c = 0, i = 0, h = t.length - 1, l = t[0], p = t[h], m = s.length - 1, v = s[0], b = s[m], T, _;
279
+ for (; o <= h && n <= m; )
280
+ if (l == null)
281
+ l = t[++o];
282
282
  else if (p == null)
283
- p = t[--u];
283
+ p = t[--h];
284
284
  else if (v == null)
285
285
  v = s[++n];
286
286
  else if (b == null)
287
287
  b = s[--m];
288
- else if (ft(i, v, a))
289
- Ae(i, v, a), i = t[++o], v = s[++n];
288
+ else if (ft(l, v, a))
289
+ Ae(l, v, a), l = t[++o], v = s[++n];
290
290
  else if (ft(p, b, a))
291
- Ae(p, b, a), p = t[--u], b = s[--m];
292
- else if (ft(i, b, a))
293
- (i.$tag$ === "slot" || b.$tag$ === "slot") && Xe(i.$elm$.parentNode, !1), Ae(i, b, a), Ce(e, i.$elm$, p.$elm$.nextSibling), i = t[++o], b = s[--m];
291
+ Ae(p, b, a), p = t[--h], b = s[--m];
292
+ else if (ft(l, b, a))
293
+ (l.$tag$ === "slot" || b.$tag$ === "slot") && Xe(l.$elm$.parentNode, !1), Ae(l, b, a), Ce(e, l.$elm$, p.$elm$.nextSibling), l = t[++o], b = s[--m];
294
294
  else if (ft(p, v, a))
295
- (i.$tag$ === "slot" || b.$tag$ === "slot") && Xe(p.$elm$.parentNode, !1), Ae(p, v, a), Ce(e, p.$elm$, i.$elm$), p = t[--u], v = s[++n];
295
+ (l.$tag$ === "slot" || b.$tag$ === "slot") && Xe(p.$elm$.parentNode, !1), Ae(p, v, a), Ce(e, p.$elm$, l.$elm$), p = t[--h], v = s[++n];
296
296
  else {
297
- for (c = -1, l = o; l <= u; ++l)
298
- if (t[l] && t[l].$key$ !== null && t[l].$key$ === v.$key$) {
299
- c = l;
297
+ for (c = -1, i = o; i <= h; ++i)
298
+ if (t[i] && t[i].$key$ !== null && t[i].$key$ === v.$key$) {
299
+ c = i;
300
300
  break;
301
301
  }
302
302
  c >= 0 ? (_ = t[c], _.$tag$ !== v.$tag$ ? T = Ct(t && t[n], r, c) : (Ae(_, v, a), t[c] = void 0, T = _.$elm$), v = s[++n]) : (T = Ct(t && t[n], r, n), v = s[++n]), T && Ce(
303
- Je(i.$elm$).parentNode,
303
+ Je(l.$elm$).parentNode,
304
304
  T,
305
- Je(i.$elm$)
305
+ Je(l.$elm$)
306
306
  );
307
307
  }
308
- o > u ? Ms(
308
+ o > h ? Os(
309
309
  e,
310
310
  s[m + 1] == null ? null : s[m + 1].$elm$,
311
311
  r,
312
312
  s,
313
313
  n,
314
314
  m
315
- ) : n > m && Os(t, o, u);
315
+ ) : n > m && Fs(t, o, h);
316
316
  }, ft = (e, t, r = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : r ? (r && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, Je = (e) => e && e["s-ol"] || e, Ae = (e, t, r = !1) => {
317
317
  const s = t.$elm$ = e.$elm$, a = e.$children$, o = t.$children$, n = t.$tag$, c = t.$text$;
318
- let l;
319
- c === null ? (re = n === "svg" ? !0 : n === "foreignObject" ? !1 : re, n === "slot" && !bt || As(e, t, re), a !== null && o !== null ? Un(s, a, t, o, r) : o !== null ? (e.$text$ !== null && (s.textContent = ""), Ms(s, null, t, o, 0, o.length - 1)) : (
318
+ let i;
319
+ c === null ? (re = n === "svg" ? !0 : n === "foreignObject" ? !1 : re, n === "slot" && !bt || Ms(e, t, re), a !== null && o !== null ? zn(s, a, t, o, r) : o !== null ? (e.$text$ !== null && (s.textContent = ""), Os(s, null, t, o, 0, o.length - 1)) : (
320
320
  // don't do this on initial render as it can cause non-hydrated content to be removed
321
- !r && Fe.updatable && a !== null && Os(a, 0, a.length - 1)
322
- ), re && n === "svg" && (re = !1)) : (l = s["s-cr"]) ? l.parentNode.textContent = c : e.$text$ !== c && (s.data = c);
321
+ !r && Le.updatable && a !== null && Fs(a, 0, a.length - 1)
322
+ ), re && n === "svg" && (re = !1)) : (i = s["s-cr"]) ? i.parentNode.textContent = c : e.$text$ !== c && (s.data = c);
323
323
  }, de = [], Ls = (e) => {
324
324
  let t, r, s;
325
325
  const a = e.__childNodes || e.childNodes;
@@ -329,13 +329,13 @@ var Jt, sr, bt = !1, yt = !1, ar = !1, re = !1, Ct = (e, t, r) => {
329
329
  const n = o["s-sn"];
330
330
  for (s = r.length - 1; s >= 0; s--)
331
331
  if (t = r[s], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== o["s-hn"])
332
- if (ts(t, n)) {
333
- let c = de.find((l) => l.$nodeToRelocate$ === t);
332
+ if (rs(t, n)) {
333
+ let c = de.find((i) => i.$nodeToRelocate$ === t);
334
334
  yt = !0, t["s-sn"] = t["s-sn"] || n, c ? (c.$nodeToRelocate$["s-sh"] = o["s-hn"], c.$slotRefNode$ = o) : (t["s-sh"] = o["s-hn"], de.push({
335
335
  $slotRefNode$: o,
336
336
  $nodeToRelocate$: t
337
- })), t["s-sr"] && de.map((l) => {
338
- ts(l.$nodeToRelocate$, t["s-sn"]) && (c = de.find((u) => u.$nodeToRelocate$ === t), c && !l.$slotRefNode$ && (l.$slotRefNode$ = c.$slotRefNode$));
337
+ })), t["s-sr"] && de.map((i) => {
338
+ rs(i.$nodeToRelocate$, t["s-sn"]) && (c = de.find((h) => h.$nodeToRelocate$ === t), c && !i.$slotRefNode$ && (i.$slotRefNode$ = c.$slotRefNode$));
339
339
  });
340
340
  } else de.some((c) => c.$nodeToRelocate$ === t) || de.push({
341
341
  $nodeToRelocate$: t
@@ -343,37 +343,37 @@ var Jt, sr, bt = !1, yt = !1, ar = !1, re = !1, Ct = (e, t, r) => {
343
343
  }
344
344
  o.nodeType === 1 && Ls(o);
345
345
  }
346
- }, Ce = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r), zn = (e, t, r = !1) => {
346
+ }, Ce = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r), Bn = (e, t, r = !1) => {
347
347
  var s, a, o, n;
348
- const c = e.$hostElement$, l = e.$vnode$ || vt(null, null), u = On(t) ? t : h(null, null, t);
349
- if (sr = c.tagName, r && u.$attrs$)
350
- for (const i of Object.keys(u.$attrs$))
351
- c.hasAttribute(i) && !["key", "ref", "style", "class"].includes(i) && (u.$attrs$[i] = c[i]);
352
- u.$tag$ = null, u.$flags$ |= 4, e.$vnode$ = u, u.$elm$ = l.$elm$ = c, bt = En, Jt = c["s-cr"], yt = !1, Ae(l, u, r);
348
+ const c = e.$hostElement$, i = e.$vnode$ || vt(null, null), h = Fn(t) ? t : u(null, null, t);
349
+ if (sr = c.tagName, r && h.$attrs$)
350
+ for (const l of Object.keys(h.$attrs$))
351
+ c.hasAttribute(l) && !["key", "ref", "style", "class"].includes(l) && (h.$attrs$[l] = c[l]);
352
+ h.$tag$ = null, h.$flags$ |= 4, e.$vnode$ = h, h.$elm$ = i.$elm$ = c, bt = Rn, Jt = c["s-cr"], yt = !1, Ae(i, h, r);
353
353
  {
354
354
  if (te.$flags$ |= 1, ar) {
355
- Ls(u.$elm$);
356
- for (const i of de) {
357
- const p = i.$nodeToRelocate$;
355
+ Ls(h.$elm$);
356
+ for (const l of de) {
357
+ const p = l.$nodeToRelocate$;
358
358
  if (!p["s-ol"]) {
359
359
  const m = Oe.createTextNode("");
360
360
  m["s-nr"] = p, Ce(p.parentNode, p["s-ol"] = m, p);
361
361
  }
362
362
  }
363
- for (const i of de) {
364
- const p = i.$nodeToRelocate$, m = i.$slotRefNode$;
363
+ for (const l of de) {
364
+ const p = l.$nodeToRelocate$, m = l.$slotRefNode$;
365
365
  if (m) {
366
366
  const v = m.parentNode;
367
367
  let b = m.nextSibling;
368
368
  {
369
369
  let N = (s = p["s-ol"]) == null ? void 0 : s.previousSibling;
370
370
  for (; N; ) {
371
- let I = (a = N["s-nr"]) != null ? a : null;
372
- if (I && I["s-sn"] === p["s-sn"] && v === (I.__parentNode || I.parentNode)) {
373
- for (I = I.nextSibling; I === p || I != null && I["s-sr"]; )
374
- I = I == null ? void 0 : I.nextSibling;
375
- if (!I || !I["s-nr"]) {
376
- b = I;
371
+ let A = (a = N["s-nr"]) != null ? a : null;
372
+ if (A && A["s-sn"] === p["s-sn"] && v === (A.__parentNode || A.parentNode)) {
373
+ for (A = A.nextSibling; A === p || A != null && A["s-sr"]; )
374
+ A = A == null ? void 0 : A.nextSibling;
375
+ if (!A || !A["s-nr"]) {
376
+ b = A;
377
377
  break;
378
378
  }
379
379
  }
@@ -386,10 +386,10 @@ var Jt, sr, bt = !1, yt = !1, ar = !1, re = !1, Ct = (e, t, r) => {
386
386
  p.nodeType === 1 && (r && (p["s-ih"] = (n = p.hidden) != null ? n : !1), p.hidden = !0);
387
387
  }
388
388
  }
389
- yt && Ts(u.$elm$), te.$flags$ &= -2, de.length = 0;
389
+ yt && Ps(h.$elm$), te.$flags$ &= -2, de.length = 0;
390
390
  }
391
391
  Jt = void 0;
392
- }, Fs = (e, t) => {
392
+ }, Ds = (e, t) => {
393
393
  if (t && !e.$onRenderResolve$ && t["s-p"]) {
394
394
  const r = t["s-p"].push(
395
395
  new Promise(
@@ -404,59 +404,59 @@ var Jt, sr, bt = !1, yt = !1, ar = !1, re = !1, Ct = (e, t, r) => {
404
404
  e.$flags$ |= 512;
405
405
  return;
406
406
  }
407
- return Fs(e, e.$ancestorComponent$), Tn(() => Bn(e, t));
408
- }, Bn = (e, t) => {
407
+ return Ds(e, e.$ancestorComponent$), Pn(() => Vn(e, t));
408
+ }, Vn = (e, t) => {
409
409
  const r = e.$hostElement$, s = Ke("scheduleUpdate", e.$cmpMeta$.$tagName$), a = r;
410
410
  if (!a)
411
411
  throw new Error(
412
412
  `Can't render component <${r.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
413
413
  );
414
414
  let o;
415
- return s(), Vn(o, () => Wn(e, a, t));
416
- }, Vn = (e, t) => jn(e) ? e.then(t).catch((r) => {
415
+ return s(), jn(o, () => Gn(e, a, t));
416
+ }, jn = (e, t) => Wn(e) ? e.then(t).catch((r) => {
417
417
  console.error(r), t();
418
- }) : t(), jn = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Wn = async (e, t, r) => {
418
+ }) : t(), Wn = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Gn = async (e, t, r) => {
419
419
  var s;
420
420
  const a = e.$hostElement$, o = Ke("update", e.$cmpMeta$.$tagName$), n = a["s-rc"], c = Ke("render", e.$cmpMeta$.$tagName$);
421
- Gn(e, t, a, r), n && (n.map((l) => l()), a["s-rc"] = void 0), c(), o();
421
+ qn(e, t, a, r), n && (n.map((i) => i()), a["s-rc"] = void 0), c(), o();
422
422
  {
423
- const l = (s = a["s-p"]) != null ? s : [], u = () => qn(e);
424
- l.length === 0 ? u() : (Promise.all(l).then(u), e.$flags$ |= 4, l.length = 0);
423
+ const i = (s = a["s-p"]) != null ? s : [], h = () => Yn(e);
424
+ i.length === 0 ? h() : (Promise.all(i).then(h), e.$flags$ |= 4, i.length = 0);
425
425
  }
426
- }, Gn = (e, t, r, s) => {
426
+ }, qn = (e, t, r, s) => {
427
427
  try {
428
- t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, zn(e, t, s);
428
+ t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Bn(e, t, s);
429
429
  } catch (a) {
430
430
  St(a, e.$hostElement$);
431
431
  }
432
432
  return null;
433
- }, qn = (e) => {
434
- const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = Ke("postUpdate", t), a = r, o = e.$ancestorComponent$;
435
- e.$flags$ & 64 ? s() : (e.$flags$ |= 64, Ds(r), Zn(a, "componentDidLoad", void 0, r), s(), e.$onReadyResolve$(r), o || Yn()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && tr(() => nr(e, !1)), e.$flags$ &= -517;
436
433
  }, Yn = (e) => {
437
- Ds(Oe.documentElement), tr(() => _s(wt, "appload", { detail: { namespace: gn } }));
438
- }, Zn = (e, t, r, s) => {
434
+ const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = Ke("postUpdate", t), a = r, o = e.$ancestorComponent$;
435
+ e.$flags$ & 64 ? s() : (e.$flags$ |= 64, Ns(r), Qn(a, "componentDidLoad", void 0, r), s(), e.$onReadyResolve$(r), o || Zn()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && tr(() => nr(e, !1)), e.$flags$ &= -517;
436
+ }, Zn = (e) => {
437
+ Ns(Oe.documentElement), tr(() => Is(wt, "appload", { detail: { namespace: vn } }));
438
+ }, Qn = (e, t, r, s) => {
439
439
  if (e && e[t])
440
440
  try {
441
441
  return e[t](r);
442
442
  } catch (a) {
443
443
  St(a, s);
444
444
  }
445
- }, Ds = (e) => {
445
+ }, Ns = (e) => {
446
446
  var t;
447
- return e.classList.add((t = Fe.hydratedSelectorName) != null ? t : "hydrated");
448
- }, Qn = (e, t) => Se(e).$instanceValues$.get(t), os = (e, t, r, s) => {
449
- const a = Se(e), o = e, n = a.$instanceValues$.get(t), c = a.$flags$, l = o;
450
- r = $s(r, s.$members$[t][0]);
451
- const u = Number.isNaN(n) && Number.isNaN(r);
452
- if (r !== n && !u) {
447
+ return e.classList.add((t = Le.hydratedSelectorName) != null ? t : "hydrated");
448
+ }, Kn = (e, t) => Se(e).$instanceValues$.get(t), cs = (e, t, r, s) => {
449
+ const a = Se(e), o = e, n = a.$instanceValues$.get(t), c = a.$flags$, i = o;
450
+ r = _s(r, s.$members$[t][0]);
451
+ const h = Number.isNaN(n) && Number.isNaN(r);
452
+ if (r !== n && !h) {
453
453
  a.$instanceValues$.set(t, r);
454
454
  {
455
455
  if (s.$watchers$ && c & 128) {
456
456
  const p = s.$watchers$[t];
457
457
  p && p.map((m) => {
458
458
  try {
459
- l[m](r, n, t);
459
+ i[m](r, n, t);
460
460
  } catch (v) {
461
461
  St(v, o);
462
462
  }
@@ -465,31 +465,31 @@ var Jt, sr, bt = !1, yt = !1, ar = !1, re = !1, Ct = (e, t, r) => {
465
465
  (c & 18) === 2 && nr(a, !1);
466
466
  }
467
467
  }
468
- }, Kn = (e, t, r) => {
468
+ }, Xn = (e, t, r) => {
469
469
  var s, a;
470
470
  const o = e.prototype;
471
471
  if (t.$members$ || t.$watchers$ || e.watchers) {
472
472
  e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
473
473
  const n = Object.entries((s = t.$members$) != null ? s : {});
474
- n.map(([c, [l]]) => {
475
- if (l & 31 || l & 32) {
476
- const { get: u, set: i } = Object.getOwnPropertyDescriptor(o, c) || {};
477
- u && (t.$members$[c][0] |= 2048), i && (t.$members$[c][0] |= 4096), Object.defineProperty(o, c, {
474
+ n.map(([c, [i]]) => {
475
+ if (i & 31 || i & 32) {
476
+ const { get: h, set: l } = Object.getOwnPropertyDescriptor(o, c) || {};
477
+ h && (t.$members$[c][0] |= 2048), l && (t.$members$[c][0] |= 4096), Object.defineProperty(o, c, {
478
478
  get() {
479
- return u ? u.apply(this) : Qn(this, c);
479
+ return h ? h.apply(this) : Kn(this, c);
480
480
  },
481
481
  configurable: !0,
482
482
  enumerable: !0
483
483
  }), Object.defineProperty(o, c, {
484
484
  set(p) {
485
485
  const m = Se(this);
486
- if (i) {
487
- const v = l & 32 ? this[c] : m.$hostElement$[c];
488
- typeof v > "u" && m.$instanceValues$.get(c) ? p = m.$instanceValues$.get(c) : !m.$instanceValues$.get(c) && v && m.$instanceValues$.set(c, v), i.apply(this, [$s(p, l)]), p = l & 32 ? this[c] : m.$hostElement$[c], os(this, c, p, t);
486
+ if (l) {
487
+ const v = i & 32 ? this[c] : m.$hostElement$[c];
488
+ typeof v > "u" && m.$instanceValues$.get(c) ? p = m.$instanceValues$.get(c) : !m.$instanceValues$.get(c) && v && m.$instanceValues$.set(c, v), l.apply(this, [_s(p, i)]), p = i & 32 ? this[c] : m.$hostElement$[c], cs(this, c, p, t);
489
489
  return;
490
490
  }
491
491
  {
492
- os(this, c, p, t);
492
+ cs(this, c, p, t);
493
493
  return;
494
494
  }
495
495
  }
@@ -498,44 +498,44 @@ var Jt, sr, bt = !1, yt = !1, ar = !1, re = !1, Ct = (e, t, r) => {
498
498
  });
499
499
  {
500
500
  const c = /* @__PURE__ */ new Map();
501
- o.attributeChangedCallback = function(l, u, i) {
501
+ o.attributeChangedCallback = function(i, h, l) {
502
502
  te.jmp(() => {
503
503
  var p;
504
- const m = c.get(l);
505
- if (!(this.hasOwnProperty(m) && Fe.lazyLoad)) {
504
+ const m = c.get(i);
505
+ if (!(this.hasOwnProperty(m) && Le.lazyLoad)) {
506
506
  if (o.hasOwnProperty(m) && typeof this[m] == "number" && // cast type to number to avoid TS compiler issues
507
- this[m] == i)
507
+ this[m] == l)
508
508
  return;
509
509
  if (m == null) {
510
510
  const b = Se(this), T = b == null ? void 0 : b.$flags$;
511
- if (T && !(T & 8) && T & 128 && i !== u) {
512
- const N = this, I = (p = t.$watchers$) == null ? void 0 : p[l];
513
- I == null || I.forEach((Ne) => {
514
- N[Ne] != null && N[Ne].call(N, i, u, l);
511
+ if (T && !(T & 8) && T & 128 && l !== h) {
512
+ const N = this, A = (p = t.$watchers$) == null ? void 0 : p[i];
513
+ A == null || A.forEach((Ne) => {
514
+ N[Ne] != null && N[Ne].call(N, l, h, i);
515
515
  });
516
516
  }
517
517
  return;
518
518
  }
519
519
  }
520
520
  const v = Object.getOwnPropertyDescriptor(o, m);
521
- i = i === null && typeof this[m] == "boolean" ? !1 : i, i !== this[m] && (!v.get || v.set) && (this[m] = i);
521
+ l = l === null && typeof this[m] == "boolean" ? !1 : l, l !== this[m] && (!v.get || v.set) && (this[m] = l);
522
522
  });
523
523
  }, e.observedAttributes = Array.from(
524
524
  /* @__PURE__ */ new Set([
525
525
  ...Object.keys((a = t.$watchers$) != null ? a : {}),
526
526
  ...n.filter(
527
- ([l, u]) => u[0] & 15
527
+ ([i, h]) => h[0] & 15
528
528
  /* HasAttribute */
529
- ).map(([l, u]) => {
530
- const i = u[1] || l;
531
- return c.set(i, l), i;
529
+ ).map(([i, h]) => {
530
+ const l = h[1] || i;
531
+ return c.set(l, i), l;
532
532
  })
533
533
  ])
534
534
  );
535
535
  }
536
536
  }
537
537
  return e;
538
- }, Xn = async (e, t, r, s) => {
538
+ }, Jn = async (e, t, r, s) => {
539
539
  if (!(t.$flags$ & 32)) {
540
540
  t.$flags$ |= 32;
541
541
  {
@@ -548,20 +548,20 @@ var Jt, sr, bt = !1, yt = !1, ar = !1, re = !1, Ct = (e, t, r) => {
548
548
  }
549
549
  const a = t.$ancestorComponent$, o = () => nr(t, !0);
550
550
  a && a["s-rc"] ? a["s-rc"].push(o) : o();
551
- }, Jn = (e, t) => {
552
- }, eo = (e) => {
551
+ }, eo = (e, t) => {
552
+ }, to = (e) => {
553
553
  if (!(te.$flags$ & 1)) {
554
554
  const t = Se(e), r = t.$cmpMeta$, s = Ke("connectedCallback", r.$tagName$);
555
555
  if (t.$flags$ & 1)
556
- t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => Jn());
556
+ t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => eo());
557
557
  else {
558
558
  t.$flags$ |= 1, // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
559
- r.$flags$ & 12 && to(e);
559
+ r.$flags$ & 12 && ro(e);
560
560
  {
561
561
  let a = e;
562
562
  for (; a = a.parentNode || a.host; )
563
563
  if (a["s-p"]) {
564
- Fs(t, t.$ancestorComponent$ = a);
564
+ Ds(t, t.$ancestorComponent$ = a);
565
565
  break;
566
566
  }
567
567
  }
@@ -570,16 +570,16 @@ var Jt, sr, bt = !1, yt = !1, ar = !1, re = !1, Ct = (e, t, r) => {
570
570
  const n = e[a];
571
571
  delete e[a], e[a] = n;
572
572
  }
573
- }), Xn(e, t);
573
+ }), Jn(e, t);
574
574
  }
575
575
  s();
576
576
  }
577
- }, to = (e) => {
577
+ }, ro = (e) => {
578
578
  const t = e["s-cr"] = Oe.createComment(
579
579
  ""
580
580
  );
581
581
  t["s-cn"] = !0, Ce(e, t, e.firstChild);
582
- }, ro = async (e) => {
582
+ }, so = async (e) => {
583
583
  te.$flags$ & 1 || Se(e), dt.has(e) && dt.delete(e), e.shadowRoot && dt.has(e.shadowRoot) && dt.delete(e.shadowRoot);
584
584
  }, D = (e, t) => {
585
585
  const r = {
@@ -594,23 +594,23 @@ var Jt, sr, bt = !1, yt = !1, ar = !1, re = !1, Ct = (e, t, r) => {
594
594
  kn(this, r);
595
595
  },
596
596
  connectedCallback() {
597
- this.__hasHostListenerAttached || (Se(this), this.__hasHostListenerAttached = !0), eo(this), s && s.call(this);
597
+ this.__hasHostListenerAttached || (Se(this), this.__hasHostListenerAttached = !0), to(this), s && s.call(this);
598
598
  },
599
599
  disconnectedCallback() {
600
- ro(this), a && a.call(this), te.raf(() => {
600
+ so(this), a && a.call(this), te.raf(() => {
601
601
  var o;
602
602
  const n = Se(this);
603
- ((o = n == null ? void 0 : n.$vnode$) == null ? void 0 : o.$elm$) instanceof Node && !n.$vnode$.$elm$.isConnected && delete n.$vnode$, this instanceof Node && !this.isConnected && wn(this);
603
+ ((o = n == null ? void 0 : n.$vnode$) == null ? void 0 : o.$elm$) instanceof Node && !n.$vnode$.$elm$.isConnected && delete n.$vnode$, this instanceof Node && !this.isConnected && En(this);
604
604
  });
605
605
  },
606
606
  __attachShadow() {
607
607
  this.shadowRoot = this;
608
608
  }
609
- }), e.is = r.$tagName$, Kn(e, r);
610
- }, so = (e, t) => t, ao = Object.defineProperty, no = (e, t, r) => t in e ? ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, A = (e, t, r) => no(e, typeof t != "symbol" ? t + "" : t, r), he = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(he || {});
611
- class oo {
609
+ }), e.is = r.$tagName$, Xn(e, r);
610
+ }, ao = (e, t) => t, no = Object.defineProperty, oo = (e, t, r) => t in e ? no(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, I = (e, t, r) => oo(e, typeof t != "symbol" ? t + "" : t, r), he = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(he || {});
611
+ class co {
612
612
  constructor(t) {
613
- A(this, "logLevel"), A(this, "logFormatter"), this.logLevel = t.logLevel || 1, this.logFormatter = t.logFormatter || this.defaultFormatter;
613
+ I(this, "logLevel"), I(this, "logFormatter"), this.logLevel = t.logLevel || 1, this.logFormatter = t.logFormatter || this.defaultFormatter;
614
614
  }
615
615
  defaultFormatter(t, r) {
616
616
  return `[${he[t]}] ${(/* @__PURE__ */ new Date()).toISOString()}: ${r}`;
@@ -646,27 +646,27 @@ class oo {
646
646
  }
647
647
  function fe(e, t, r, s) {
648
648
  return new (r || (r = Promise))(function(a, o) {
649
- function n(u) {
649
+ function n(h) {
650
650
  try {
651
- l(s.next(u));
652
- } catch (i) {
653
- o(i);
651
+ i(s.next(h));
652
+ } catch (l) {
653
+ o(l);
654
654
  }
655
655
  }
656
- function c(u) {
656
+ function c(h) {
657
657
  try {
658
- l(s.throw(u));
659
- } catch (i) {
660
- o(i);
658
+ i(s.throw(h));
659
+ } catch (l) {
660
+ o(l);
661
661
  }
662
662
  }
663
- function l(u) {
664
- var i;
665
- u.done ? a(u.value) : (i = u.value, i instanceof r ? i : new r(function(p) {
666
- p(i);
663
+ function i(h) {
664
+ var l;
665
+ h.done ? a(h.value) : (l = h.value, l instanceof r ? l : new r(function(p) {
666
+ p(l);
667
667
  })).then(n, c);
668
668
  }
669
- l((s = s.apply(e, [])).next());
669
+ i((s = s.apply(e, [])).next());
670
670
  });
671
671
  }
672
672
  function pe(e, t) {
@@ -677,61 +677,61 @@ function pe(e, t) {
677
677
  return o = { next: c(0), throw: c(1), return: c(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
678
678
  return this;
679
679
  }), o;
680
- function c(l) {
681
- return function(u) {
682
- return function(i) {
680
+ function c(i) {
681
+ return function(h) {
682
+ return function(l) {
683
683
  if (r) throw new TypeError("Generator is already executing.");
684
- for (; o && (o = 0, i[0] && (n = 0)), n; ) try {
685
- if (r = 1, s && (a = 2 & i[0] ? s.return : i[0] ? s.throw || ((a = s.return) && a.call(s), 0) : s.next) && !(a = a.call(s, i[1])).done) return a;
686
- switch (s = 0, a && (i = [2 & i[0], a.value]), i[0]) {
684
+ for (; o && (o = 0, l[0] && (n = 0)), n; ) try {
685
+ if (r = 1, s && (a = 2 & l[0] ? s.return : l[0] ? s.throw || ((a = s.return) && a.call(s), 0) : s.next) && !(a = a.call(s, l[1])).done) return a;
686
+ switch (s = 0, a && (l = [2 & l[0], a.value]), l[0]) {
687
687
  case 0:
688
688
  case 1:
689
- a = i;
689
+ a = l;
690
690
  break;
691
691
  case 4:
692
- return n.label++, { value: i[1], done: !1 };
692
+ return n.label++, { value: l[1], done: !1 };
693
693
  case 5:
694
- n.label++, s = i[1], i = [0];
694
+ n.label++, s = l[1], l = [0];
695
695
  continue;
696
696
  case 7:
697
- i = n.ops.pop(), n.trys.pop();
697
+ l = n.ops.pop(), n.trys.pop();
698
698
  continue;
699
699
  default:
700
- if (a = n.trys, !((a = a.length > 0 && a[a.length - 1]) || i[0] !== 6 && i[0] !== 2)) {
700
+ if (a = n.trys, !((a = a.length > 0 && a[a.length - 1]) || l[0] !== 6 && l[0] !== 2)) {
701
701
  n = 0;
702
702
  continue;
703
703
  }
704
- if (i[0] === 3 && (!a || i[1] > a[0] && i[1] < a[3])) {
705
- n.label = i[1];
704
+ if (l[0] === 3 && (!a || l[1] > a[0] && l[1] < a[3])) {
705
+ n.label = l[1];
706
706
  break;
707
707
  }
708
- if (i[0] === 6 && n.label < a[1]) {
709
- n.label = a[1], a = i;
708
+ if (l[0] === 6 && n.label < a[1]) {
709
+ n.label = a[1], a = l;
710
710
  break;
711
711
  }
712
712
  if (a && n.label < a[2]) {
713
- n.label = a[2], n.ops.push(i);
713
+ n.label = a[2], n.ops.push(l);
714
714
  break;
715
715
  }
716
716
  a[2] && n.ops.pop(), n.trys.pop();
717
717
  continue;
718
718
  }
719
- i = t.call(e, n);
719
+ l = t.call(e, n);
720
720
  } catch (p) {
721
- i = [6, p], s = 0;
721
+ l = [6, p], s = 0;
722
722
  } finally {
723
723
  r = a = 0;
724
724
  }
725
- if (5 & i[0]) throw i[1];
726
- return { value: i[0] ? i[1] : void 0, done: !0 };
727
- }([l, u]);
725
+ if (5 & l[0]) throw l[1];
726
+ return { value: l[0] ? l[1] : void 0, done: !0 };
727
+ }([i, h]);
728
728
  };
729
729
  }
730
730
  }
731
- var me = { exclude: [] }, Ns = {}, co = { timeout: "true" }, ne = function(e, t) {
732
- typeof window < "u" && (Ns[e] = t);
733
- }, io = function() {
734
- return Object.fromEntries(Object.entries(Ns).filter(function(e) {
731
+ var me = { exclude: [] }, Hs = {}, io = { timeout: "true" }, ne = function(e, t) {
732
+ typeof window < "u" && (Hs[e] = t);
733
+ }, lo = function() {
734
+ return Object.fromEntries(Object.entries(Hs).filter(function(e) {
735
735
  var t, r = e[0];
736
736
  return !(!((t = me == null ? void 0 : me.exclude) === null || t === void 0) && t.includes(r));
737
737
  }).map(function(e) {
@@ -750,43 +750,43 @@ function or(e, t) {
750
750
  if (t === void 0 && (t = 0), t = t ? 0 | t : 0, typeof e == "string" && (r = e, e = new TextEncoder().encode(r).buffer), !(e instanceof ArrayBuffer)) throw new TypeError("Expected key to be ArrayBuffer or string");
751
751
  var s = new Uint32Array([t, t, t, t]);
752
752
  (function(o, n) {
753
- for (var c = o.byteLength / 16 | 0, l = new Uint32Array(o, 0, 4 * c), u = 0; u < c; u++) {
754
- var i = l.subarray(4 * u, 4 * (u + 1));
755
- i[0] = Math.imul(i[0], W[0]), i[0] = se(i[0], 15), i[0] = Math.imul(i[0], W[1]), n[0] = n[0] ^ i[0], n[0] = se(n[0], 19), n[0] = n[0] + n[1], n[0] = Math.imul(n[0], 5) + 1444728091, i[1] = Math.imul(i[1], W[1]), i[1] = se(i[1], 16), i[1] = Math.imul(i[1], W[2]), n[1] = n[1] ^ i[1], n[1] = se(n[1], 17), n[1] = n[1] + n[2], n[1] = Math.imul(n[1], 5) + 197830471, i[2] = Math.imul(i[2], W[2]), i[2] = se(i[2], 17), i[2] = Math.imul(i[2], W[3]), n[2] = n[2] ^ i[2], n[2] = se(n[2], 15), n[2] = n[2] + n[3], n[2] = Math.imul(n[2], 5) + 2530024501, i[3] = Math.imul(i[3], W[3]), i[3] = se(i[3], 18), i[3] = Math.imul(i[3], W[0]), n[3] = n[3] ^ i[3], n[3] = se(n[3], 13), n[3] = n[3] + n[0], n[3] = Math.imul(n[3], 5) + 850148119;
753
+ for (var c = o.byteLength / 16 | 0, i = new Uint32Array(o, 0, 4 * c), h = 0; h < c; h++) {
754
+ var l = i.subarray(4 * h, 4 * (h + 1));
755
+ l[0] = Math.imul(l[0], W[0]), l[0] = se(l[0], 15), l[0] = Math.imul(l[0], W[1]), n[0] = n[0] ^ l[0], n[0] = se(n[0], 19), n[0] = n[0] + n[1], n[0] = Math.imul(n[0], 5) + 1444728091, l[1] = Math.imul(l[1], W[1]), l[1] = se(l[1], 16), l[1] = Math.imul(l[1], W[2]), n[1] = n[1] ^ l[1], n[1] = se(n[1], 17), n[1] = n[1] + n[2], n[1] = Math.imul(n[1], 5) + 197830471, l[2] = Math.imul(l[2], W[2]), l[2] = se(l[2], 17), l[2] = Math.imul(l[2], W[3]), n[2] = n[2] ^ l[2], n[2] = se(n[2], 15), n[2] = n[2] + n[3], n[2] = Math.imul(n[2], 5) + 2530024501, l[3] = Math.imul(l[3], W[3]), l[3] = se(l[3], 18), l[3] = Math.imul(l[3], W[0]), n[3] = n[3] ^ l[3], n[3] = se(n[3], 13), n[3] = n[3] + n[0], n[3] = Math.imul(n[3], 5) + 850148119;
756
756
  }
757
757
  })(e, s), function(o, n) {
758
- var c = o.byteLength / 16 | 0, l = o.byteLength % 16, u = new Uint32Array(4), i = new Uint8Array(o, 16 * c, l);
759
- switch (l) {
758
+ var c = o.byteLength / 16 | 0, i = o.byteLength % 16, h = new Uint32Array(4), l = new Uint8Array(o, 16 * c, i);
759
+ switch (i) {
760
760
  case 15:
761
- u[3] = u[3] ^ i[14] << 16;
761
+ h[3] = h[3] ^ l[14] << 16;
762
762
  case 14:
763
- u[3] = u[3] ^ i[13] << 8;
763
+ h[3] = h[3] ^ l[13] << 8;
764
764
  case 13:
765
- u[3] = u[3] ^ i[12] << 0, u[3] = Math.imul(u[3], W[3]), u[3] = se(u[3], 18), u[3] = Math.imul(u[3], W[0]), n[3] = n[3] ^ u[3];
765
+ h[3] = h[3] ^ l[12] << 0, h[3] = Math.imul(h[3], W[3]), h[3] = se(h[3], 18), h[3] = Math.imul(h[3], W[0]), n[3] = n[3] ^ h[3];
766
766
  case 12:
767
- u[2] = u[2] ^ i[11] << 24;
767
+ h[2] = h[2] ^ l[11] << 24;
768
768
  case 11:
769
- u[2] = u[2] ^ i[10] << 16;
769
+ h[2] = h[2] ^ l[10] << 16;
770
770
  case 10:
771
- u[2] = u[2] ^ i[9] << 8;
771
+ h[2] = h[2] ^ l[9] << 8;
772
772
  case 9:
773
- u[2] = u[2] ^ i[8] << 0, u[2] = Math.imul(u[2], W[2]), u[2] = se(u[2], 17), u[2] = Math.imul(u[2], W[3]), n[2] = n[2] ^ u[2];
773
+ h[2] = h[2] ^ l[8] << 0, h[2] = Math.imul(h[2], W[2]), h[2] = se(h[2], 17), h[2] = Math.imul(h[2], W[3]), n[2] = n[2] ^ h[2];
774
774
  case 8:
775
- u[1] = u[1] ^ i[7] << 24;
775
+ h[1] = h[1] ^ l[7] << 24;
776
776
  case 7:
777
- u[1] = u[1] ^ i[6] << 16;
777
+ h[1] = h[1] ^ l[6] << 16;
778
778
  case 6:
779
- u[1] = u[1] ^ i[5] << 8;
779
+ h[1] = h[1] ^ l[5] << 8;
780
780
  case 5:
781
- u[1] = u[1] ^ i[4] << 0, u[1] = Math.imul(u[1], W[1]), u[1] = se(u[1], 16), u[1] = Math.imul(u[1], W[2]), n[1] = n[1] ^ u[1];
781
+ h[1] = h[1] ^ l[4] << 0, h[1] = Math.imul(h[1], W[1]), h[1] = se(h[1], 16), h[1] = Math.imul(h[1], W[2]), n[1] = n[1] ^ h[1];
782
782
  case 4:
783
- u[0] = u[0] ^ i[3] << 24;
783
+ h[0] = h[0] ^ l[3] << 24;
784
784
  case 3:
785
- u[0] = u[0] ^ i[2] << 16;
785
+ h[0] = h[0] ^ l[2] << 16;
786
786
  case 2:
787
- u[0] = u[0] ^ i[1] << 8;
787
+ h[0] = h[0] ^ l[1] << 8;
788
788
  case 1:
789
- u[0] = u[0] ^ i[0] << 0, u[0] = Math.imul(u[0], W[0]), u[0] = se(u[0], 15), u[0] = Math.imul(u[0], W[1]), n[0] = n[0] ^ u[0];
789
+ h[0] = h[0] ^ l[0] << 0, h[0] = Math.imul(h[0], W[0]), h[0] = se(h[0], 15), h[0] = Math.imul(h[0], W[1]), n[0] = n[0] ^ h[0];
790
790
  }
791
791
  }(e, s), function(o, n) {
792
792
  n[0] = n[0] ^ o.byteLength, n[1] = n[1] ^ o.byteLength, n[2] = n[2] ^ o.byteLength, n[3] = n[3] ^ o.byteLength, n[0] = n[0] + n[1] | 0, n[0] = n[0] + n[2] | 0, n[0] = n[0] + n[3] | 0, n[1] = n[1] + n[0] | 0, n[2] = n[2] + n[0] | 0, n[3] = n[3] + n[0] | 0, n[0] = pt(n[0]), n[1] = pt(n[1]), n[2] = pt(n[2]), n[3] = pt(n[3]), n[0] = n[0] + n[1] | 0, n[0] = n[0] + n[2] | 0, n[0] = n[0] + n[3] | 0, n[1] = n[1] + n[0] | 0, n[2] = n[2] + n[0] | 0, n[3] = n[3] + n[0] | 0;
@@ -796,31 +796,31 @@ function or(e, t) {
796
796
  return o.toString(16).padStart(2, "0");
797
797
  }).join("");
798
798
  }
799
- function lo(e, t) {
799
+ function uo(e, t) {
800
800
  return new Promise(function(r) {
801
801
  setTimeout(function() {
802
802
  return r(t);
803
803
  }, e);
804
804
  });
805
805
  }
806
- function uo(e, t, r) {
806
+ function ho(e, t, r) {
807
807
  return Promise.all(e.map(function(s) {
808
- return Promise.race([s, lo(t, r)]);
808
+ return Promise.race([s, uo(t, r)]);
809
809
  }));
810
810
  }
811
- function ho() {
811
+ function fo() {
812
812
  return fe(this, void 0, void 0, function() {
813
813
  var e, t, r, s, a;
814
814
  return pe(this, function(o) {
815
815
  switch (o.label) {
816
816
  case 0:
817
- return o.trys.push([0, 2, , 3]), e = io(), t = Object.keys(e), [4, uo(Object.values(e), (me == null ? void 0 : me.timeout) || 1e3, co)];
817
+ return o.trys.push([0, 2, , 3]), e = lo(), t = Object.keys(e), [4, ho(Object.values(e), (me == null ? void 0 : me.timeout) || 1e3, io)];
818
818
  case 1:
819
819
  return r = o.sent(), s = r.filter(function(n) {
820
820
  return n !== void 0;
821
821
  }), a = {}, s.forEach(function(n, c) {
822
822
  a[t[c]] = n;
823
- }), [2, Hs(a, me.exclude || [])];
823
+ }), [2, Us(a, me.exclude || [])];
824
824
  case 2:
825
825
  throw o.sent();
826
826
  case 3:
@@ -829,14 +829,14 @@ function ho() {
829
829
  });
830
830
  });
831
831
  }
832
- function Hs(e, t) {
832
+ function Us(e, t) {
833
833
  var r = {}, s = function(o) {
834
834
  if (e.hasOwnProperty(o)) {
835
835
  var n = e[o];
836
836
  if (typeof n != "object" || Array.isArray(n)) t.includes(o) || (r[o] = n);
837
837
  else {
838
- var c = Hs(n, t.map(function(l) {
839
- return l.startsWith(o + ".") ? l.slice(o.length + 1) : l;
838
+ var c = Us(n, t.map(function(i) {
839
+ return i.startsWith(o + ".") ? i.slice(o.length + 1) : i;
840
840
  }));
841
841
  Object.keys(c).length > 0 && (r[o] = c);
842
842
  }
@@ -845,13 +845,13 @@ function Hs(e, t) {
845
845
  for (var a in e) s(a);
846
846
  return r;
847
847
  }
848
- function fo(e) {
848
+ function po(e) {
849
849
  return fe(this, void 0, void 0, function() {
850
850
  var t, r;
851
851
  return pe(this, function(s) {
852
852
  switch (s.label) {
853
853
  case 0:
854
- return s.trys.push([0, 2, , 3]), [4, ho()];
854
+ return s.trys.push([0, 2, , 3]), [4, fo()];
855
855
  case 1:
856
856
  return t = s.sent(), r = or(JSON.stringify(t)), [2, r.toString()];
857
857
  case 2:
@@ -862,19 +862,19 @@ function fo(e) {
862
862
  });
863
863
  });
864
864
  }
865
- function po(e) {
865
+ function mo(e) {
866
866
  for (var t = 0, r = 0; r < e.length; ++r) t += Math.abs(e[r]);
867
867
  return t;
868
868
  }
869
- function Us(e, t, r) {
869
+ function zs(e, t, r) {
870
870
  for (var s = [], a = 0; a < e[0].data.length; a++) {
871
871
  for (var o = [], n = 0; n < e.length; n++) o.push(e[n].data[a]);
872
- s.push(mo(o));
872
+ s.push(go(o));
873
873
  }
874
874
  var c = new Uint8ClampedArray(s);
875
875
  return new ImageData(c, t, r);
876
876
  }
877
- function mo(e) {
877
+ function go(e) {
878
878
  if (e.length === 0) return 0;
879
879
  for (var t = {}, r = 0, s = e; r < s.length; r++)
880
880
  t[o = s[r]] = (t[o] || 0) + 1;
@@ -898,24 +898,24 @@ ne("audio", function() {
898
898
  var s = new (window.OfflineAudioContext || window.webkitOfflineAudioContext)(1, 5e3, 44100), a = s.createBufferSource(), o = s.createOscillator();
899
899
  o.frequency.value = 1e3;
900
900
  var n, c = s.createDynamicsCompressor();
901
- c.threshold.value = -50, c.knee.value = 40, c.ratio.value = 12, c.attack.value = 0, c.release.value = 0.2, o.connect(c), c.connect(s.destination), o.start(), s.oncomplete = function(l) {
902
- n = l.renderedBuffer.getChannelData(0), t({ sampleHash: po(n), oscillator: o.type, maxChannels: s.destination.maxChannelCount, channelCountMode: a.channelCountMode });
901
+ c.threshold.value = -50, c.knee.value = 40, c.ratio.value = 12, c.attack.value = 0, c.release.value = 0.2, o.connect(c), c.connect(s.destination), o.start(), s.oncomplete = function(i) {
902
+ n = i.renderedBuffer.getChannelData(0), t({ sampleHash: mo(n), oscillator: o.type, maxChannels: s.destination.maxChannelCount, channelCountMode: a.channelCountMode });
903
903
  }, s.startRendering();
904
- } catch (l) {
905
- console.error("Error creating audio fingerprint:", l), r(l);
904
+ } catch (i) {
905
+ console.error("Error creating audio fingerprint:", i), r(i);
906
906
  }
907
907
  })];
908
908
  });
909
909
  });
910
910
  });
911
- var go = et().name !== "SamsungBrowser" ? 1 : 3, cs = 280, is = 20;
911
+ var vo = et().name !== "SamsungBrowser" ? 1 : 3, is = 280, ls = 20;
912
912
  et().name != "Firefox" && ne("canvas", function() {
913
913
  return document.createElement("canvas").getContext("2d"), new Promise(function(e) {
914
- var t = Array.from({ length: go }, function() {
914
+ var t = Array.from({ length: vo }, function() {
915
915
  return function() {
916
916
  var r = document.createElement("canvas"), s = r.getContext("2d");
917
917
  if (!s) return new ImageData(1, 1);
918
- r.width = cs, r.height = is;
918
+ r.width = is, r.height = ls;
919
919
  var a = s.createLinearGradient(0, 0, r.width, r.height);
920
920
  a.addColorStop(0, "red"), a.addColorStop(0.16666666666666666, "orange"), a.addColorStop(0.3333333333333333, "yellow"), a.addColorStop(0.5, "green"), a.addColorStop(0.6666666666666666, "blue"), a.addColorStop(0.8333333333333334, "indigo"), a.addColorStop(1, "violet"), s.fillStyle = a, s.fillRect(0, 0, r.width, r.height);
921
921
  var o = "Random Text WMwmil10Oo";
@@ -924,23 +924,23 @@ et().name != "Firefox" && ne("canvas", function() {
924
924
  return n;
925
925
  }();
926
926
  });
927
- e({ commonImageDataHash: or(Us(t, cs, is).data.toString()).toString() });
927
+ e({ commonImageDataHash: or(zs(t, is, ls).data.toString()).toString() });
928
928
  });
929
929
  });
930
- var Gt, vo = ["Arial", "Arial Black", "Arial Narrow", "Arial Rounded MT", "Arimo", "Archivo", "Barlow", "Bebas Neue", "Bitter", "Bookman", "Calibri", "Cabin", "Candara", "Century", "Century Gothic", "Comic Sans MS", "Constantia", "Courier", "Courier New", "Crimson Text", "DM Mono", "DM Sans", "DM Serif Display", "DM Serif Text", "Dosis", "Droid Sans", "Exo", "Fira Code", "Fira Sans", "Franklin Gothic Medium", "Garamond", "Geneva", "Georgia", "Gill Sans", "Helvetica", "Impact", "Inconsolata", "Indie Flower", "Inter", "Josefin Sans", "Karla", "Lato", "Lexend", "Lucida Bright", "Lucida Console", "Lucida Sans Unicode", "Manrope", "Merriweather", "Merriweather Sans", "Montserrat", "Myriad", "Noto Sans", "Nunito", "Nunito Sans", "Open Sans", "Optima", "Orbitron", "Oswald", "Pacifico", "Palatino", "Perpetua", "PT Sans", "PT Serif", "Poppins", "Prompt", "Public Sans", "Quicksand", "Rajdhani", "Recursive", "Roboto", "Roboto Condensed", "Rockwell", "Rubik", "Segoe Print", "Segoe Script", "Segoe UI", "Sora", "Source Sans Pro", "Space Mono", "Tahoma", "Taviraj", "Times", "Times New Roman", "Titillium Web", "Trebuchet MS", "Ubuntu", "Varela Round", "Verdana", "Work Sans"], bo = ["monospace", "sans-serif", "serif"];
931
- function ls(e, t) {
930
+ var Gt, bo = ["Arial", "Arial Black", "Arial Narrow", "Arial Rounded MT", "Arimo", "Archivo", "Barlow", "Bebas Neue", "Bitter", "Bookman", "Calibri", "Cabin", "Candara", "Century", "Century Gothic", "Comic Sans MS", "Constantia", "Courier", "Courier New", "Crimson Text", "DM Mono", "DM Sans", "DM Serif Display", "DM Serif Text", "Dosis", "Droid Sans", "Exo", "Fira Code", "Fira Sans", "Franklin Gothic Medium", "Garamond", "Geneva", "Georgia", "Gill Sans", "Helvetica", "Impact", "Inconsolata", "Indie Flower", "Inter", "Josefin Sans", "Karla", "Lato", "Lexend", "Lucida Bright", "Lucida Console", "Lucida Sans Unicode", "Manrope", "Merriweather", "Merriweather Sans", "Montserrat", "Myriad", "Noto Sans", "Nunito", "Nunito Sans", "Open Sans", "Optima", "Orbitron", "Oswald", "Pacifico", "Palatino", "Perpetua", "PT Sans", "PT Serif", "Poppins", "Prompt", "Public Sans", "Quicksand", "Rajdhani", "Recursive", "Roboto", "Roboto Condensed", "Rockwell", "Rubik", "Segoe Print", "Segoe Script", "Segoe UI", "Sora", "Source Sans Pro", "Space Mono", "Tahoma", "Taviraj", "Times", "Times New Roman", "Titillium Web", "Trebuchet MS", "Ubuntu", "Varela Round", "Verdana", "Work Sans"], yo = ["monospace", "sans-serif", "serif"];
931
+ function us(e, t) {
932
932
  if (!e) throw new Error("Canvas context not supported");
933
933
  return e.font = "72px ".concat(t), e.measureText("WwMmLli0Oo").width;
934
934
  }
935
- function yo() {
935
+ function Co() {
936
936
  var e, t = document.createElement("canvas"), r = (e = t.getContext("webgl")) !== null && e !== void 0 ? e : t.getContext("experimental-webgl");
937
937
  if (r && "getParameter" in r) try {
938
938
  var s = (r.getParameter(r.VENDOR) || "").toString(), a = (r.getParameter(r.RENDERER) || "").toString(), o = { vendor: s, renderer: a, version: (r.getParameter(r.VERSION) || "").toString(), shadingLanguageVersion: (r.getParameter(r.SHADING_LANGUAGE_VERSION) || "").toString() };
939
939
  if (!a.length || !s.length) {
940
940
  var n = r.getExtension("WEBGL_debug_renderer_info");
941
941
  if (n) {
942
- var c = (r.getParameter(n.UNMASKED_VENDOR_WEBGL) || "").toString(), l = (r.getParameter(n.UNMASKED_RENDERER_WEBGL) || "").toString();
943
- c && (o.vendorUnmasked = c), l && (o.rendererUnmasked = l);
942
+ var c = (r.getParameter(n.UNMASKED_VENDOR_WEBGL) || "").toString(), i = (r.getParameter(n.UNMASKED_RENDERER_WEBGL) || "").toString();
943
+ c && (o.vendorUnmasked = c), i && (o.rendererUnmasked = i);
944
944
  }
945
945
  }
946
946
  return o;
@@ -948,23 +948,23 @@ function yo() {
948
948
  }
949
949
  return "undefined";
950
950
  }
951
- function Co() {
951
+ function So() {
952
952
  var e = new Float32Array(1), t = new Uint8Array(e.buffer);
953
953
  return e[0] = 1 / 0, e[0] = e[0] - e[0], t[3];
954
954
  }
955
- function So(e, t) {
955
+ function wo(e, t) {
956
956
  var r = {};
957
957
  return t.forEach(function(s) {
958
958
  var a = function(o) {
959
959
  if (o.length === 0) return null;
960
960
  var n = {};
961
- o.forEach(function(u) {
962
- var i = String(u);
963
- n[i] = (n[i] || 0) + 1;
961
+ o.forEach(function(h) {
962
+ var l = String(h);
963
+ n[l] = (n[l] || 0) + 1;
964
964
  });
965
- var c = o[0], l = 1;
966
- return Object.keys(n).forEach(function(u) {
967
- n[u] > l && (c = u, l = n[u]);
965
+ var c = o[0], i = 1;
966
+ return Object.keys(n).forEach(function(h) {
967
+ n[h] > i && (c = h, i = n[h]);
968
968
  }), c;
969
969
  }(e.map(function(o) {
970
970
  return s in o ? o[s] : void 0;
@@ -974,7 +974,7 @@ function So(e, t) {
974
974
  a && (r[s] = a);
975
975
  }), r;
976
976
  }
977
- function wo() {
977
+ function Eo() {
978
978
  var e = [], t = { "prefers-contrast": ["high", "more", "low", "less", "forced", "no-preference"], "any-hover": ["hover", "none"], "any-pointer": ["none", "coarse", "fine"], pointer: ["none", "coarse", "fine"], hover: ["hover", "none"], update: ["fast", "slow"], "inverted-colors": ["inverted", "none"], "prefers-reduced-motion": ["reduce", "no-preference"], "prefers-reduced-transparency": ["reduce", "no-preference"], scripting: ["none", "initial-only", "enabled"], "forced-colors": ["active", "none"] };
979
979
  return Object.keys(t).forEach(function(r) {
980
980
  t[r].forEach(function(s) {
@@ -998,34 +998,34 @@ et().name != "Firefox" && ne("fonts", function() {
998
998
  var a;
999
999
  fe(this, void 0, void 0, function() {
1000
1000
  var o, n, c;
1001
- return pe(this, function(l) {
1002
- switch (l.label) {
1001
+ return pe(this, function(i) {
1002
+ switch (i.label) {
1003
1003
  case 0:
1004
- return document.body ? [3, 2] : [4, (u = 50, new Promise(function(p) {
1005
- return setTimeout(p, u, i);
1004
+ return document.body ? [3, 2] : [4, (h = 50, new Promise(function(p) {
1005
+ return setTimeout(p, h, l);
1006
1006
  }))];
1007
1007
  case 1:
1008
- return l.sent(), [3, 0];
1008
+ return i.sent(), [3, 0];
1009
1009
  case 2:
1010
1010
  if ((o = document.createElement("iframe")).setAttribute("frameBorder", "0"), (n = o.style).setProperty("position", "fixed"), n.setProperty("display", "block", "important"), n.setProperty("visibility", "visible"), n.setProperty("border", "0"), n.setProperty("opacity", "0"), o.src = "about:blank", document.body.appendChild(o), !(c = o.contentDocument || ((a = o.contentWindow) === null || a === void 0 ? void 0 : a.document))) throw new Error("Iframe document is not accessible");
1011
1011
  return s({ iframe: c }), setTimeout(function() {
1012
1012
  document.body.removeChild(o);
1013
1013
  }, 0), [2];
1014
1014
  }
1015
- var u, i;
1015
+ var h, l;
1016
1016
  });
1017
1017
  });
1018
1018
  })(function(s) {
1019
1019
  var a = s.iframe;
1020
1020
  return fe(e, void 0, void 0, function() {
1021
- var o, n, c, l;
1022
- return pe(this, function(u) {
1023
- return o = a.createElement("canvas"), n = o.getContext("2d"), c = bo.map(function(i) {
1024
- return ls(n, i);
1025
- }), l = {}, vo.forEach(function(i) {
1026
- var p = ls(n, i);
1027
- c.includes(p) || (l[i] = p);
1028
- }), t(l), [2];
1021
+ var o, n, c, i;
1022
+ return pe(this, function(h) {
1023
+ return o = a.createElement("canvas"), n = o.getContext("2d"), c = yo.map(function(l) {
1024
+ return us(n, l);
1025
+ }), i = {}, bo.forEach(function(l) {
1026
+ var p = us(n, l);
1027
+ c.includes(p) || (i[l] = p);
1028
+ }), t(i), [2];
1029
1029
  });
1030
1030
  });
1031
1031
  });
@@ -1036,7 +1036,7 @@ et().name != "Firefox" && ne("fonts", function() {
1036
1036
  }), ne("hardware", function() {
1037
1037
  return new Promise(function(e, t) {
1038
1038
  var r = navigator.deviceMemory !== void 0 ? navigator.deviceMemory : 0, s = window.performance && window.performance.memory ? window.performance.memory : 0;
1039
- e({ videocard: yo(), architecture: Co(), deviceMemory: r.toString() || "undefined", jsHeapSizeLimit: s.jsHeapSizeLimit || 0 });
1039
+ e({ videocard: Co(), architecture: So(), deviceMemory: r.toString() || "undefined", jsHeapSizeLimit: s.jsHeapSizeLimit || 0 });
1040
1040
  });
1041
1041
  }), ne("locales", function() {
1042
1042
  return new Promise(function(e) {
@@ -1072,7 +1072,7 @@ et().name != "Firefox" && ne("fonts", function() {
1072
1072
  });
1073
1073
  }();
1074
1074
  }), [2, Promise.all(e).then(function(r) {
1075
- return So(r, Gt);
1075
+ return wo(r, Gt);
1076
1076
  })];
1077
1077
  });
1078
1078
  });
@@ -1087,7 +1087,7 @@ et().name != "Firefox" && ne("fonts", function() {
1087
1087
  });
1088
1088
  }), ne("screen", function() {
1089
1089
  return new Promise(function(e) {
1090
- e({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches: wo() });
1090
+ e({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches: Eo() });
1091
1091
  });
1092
1092
  }), ne("system", function() {
1093
1093
  return new Promise(function(e) {
@@ -1095,7 +1095,7 @@ et().name != "Firefox" && ne("fonts", function() {
1095
1095
  e({ platform: window.navigator.platform, cookieEnabled: window.navigator.cookieEnabled, productSub: navigator.productSub, product: navigator.product, useragent: navigator.userAgent, hardwareConcurrency: navigator.hardwareConcurrency, browser: { name: t.name, version: t.version }, applePayVersion: ko() });
1096
1096
  });
1097
1097
  });
1098
- var K, Eo = et().name !== "SamsungBrowser" ? 1 : 3, w = null;
1098
+ var K, Ro = et().name !== "SamsungBrowser" ? 1 : 3, w = null;
1099
1099
  ne("webgl", function() {
1100
1100
  return fe(this, void 0, void 0, function() {
1101
1101
  var e;
@@ -1103,7 +1103,7 @@ ne("webgl", function() {
1103
1103
  typeof document < "u" && ((K = document.createElement("canvas")).width = 200, K.height = 100, w = K.getContext("webgl"));
1104
1104
  try {
1105
1105
  if (!w) throw new Error("WebGL not supported");
1106
- return e = Array.from({ length: Eo }, function() {
1106
+ return e = Array.from({ length: Ro }, function() {
1107
1107
  return function() {
1108
1108
  try {
1109
1109
  if (!w) throw new Error("WebGL not supported");
@@ -1125,12 +1125,12 @@ ne("webgl", function() {
1125
1125
  if (!n) throw new Error("Failed to create shader program");
1126
1126
  if (w.attachShader(n, a), w.attachShader(n, o), w.linkProgram(n), !w.getProgramParameter(n, w.LINK_STATUS)) throw new Error("Shader program linking failed: " + w.getProgramInfoLog(n));
1127
1127
  w.useProgram(n);
1128
- for (var c = 137, l = new Float32Array(4 * c), u = 2 * Math.PI / c, i = 0; i < c; i++) {
1129
- var p = i * u;
1130
- l[4 * i] = 0, l[4 * i + 1] = 0, l[4 * i + 2] = Math.cos(p) * (K.width / 2), l[4 * i + 3] = Math.sin(p) * (K.height / 2);
1128
+ for (var c = 137, i = new Float32Array(4 * c), h = 2 * Math.PI / c, l = 0; l < c; l++) {
1129
+ var p = l * h;
1130
+ i[4 * l] = 0, i[4 * l + 1] = 0, i[4 * l + 2] = Math.cos(p) * (K.width / 2), i[4 * l + 3] = Math.sin(p) * (K.height / 2);
1131
1131
  }
1132
1132
  var m = w.createBuffer();
1133
- w.bindBuffer(w.ARRAY_BUFFER, m), w.bufferData(w.ARRAY_BUFFER, l, w.STATIC_DRAW);
1133
+ w.bindBuffer(w.ARRAY_BUFFER, m), w.bufferData(w.ARRAY_BUFFER, i, w.STATIC_DRAW);
1134
1134
  var v = w.getAttribLocation(n, "position");
1135
1135
  w.enableVertexAttribArray(v), w.vertexAttribPointer(v, 2, w.FLOAT, !1, 0, 0), w.viewport(0, 0, K.width, K.height), w.clearColor(0, 0, 0, 1), w.clear(w.COLOR_BUFFER_BIT), w.drawArrays(w.LINES, 0, 2 * c);
1136
1136
  var b = new Uint8ClampedArray(K.width * K.height * 4);
@@ -1141,7 +1141,7 @@ ne("webgl", function() {
1141
1141
  w && (w.bindBuffer(w.ARRAY_BUFFER, null), w.useProgram(null), w.viewport(0, 0, w.drawingBufferWidth, w.drawingBufferHeight), w.clearColor(0, 0, 0, 0));
1142
1142
  }
1143
1143
  }();
1144
- }), [2, { commonImageHash: or(Us(e, K.width, K.height).data.toString()).toString() }];
1144
+ }), [2, { commonImageHash: or(zs(e, K.width, K.height).data.toString()).toString() }];
1145
1145
  } catch {
1146
1146
  return [2, { webgl: "unsupported" }];
1147
1147
  }
@@ -1149,7 +1149,7 @@ ne("webgl", function() {
1149
1149
  });
1150
1150
  });
1151
1151
  });
1152
- var Ee = function(e, t, r, s) {
1152
+ var ke = function(e, t, r, s) {
1153
1153
  for (var a = (r - t) / s, o = 0, n = 0; n < s; n++)
1154
1154
  o += e(t + (n + 0.5) * a);
1155
1155
  return o * a;
@@ -1157,12 +1157,12 @@ var Ee = function(e, t, r, s) {
1157
1157
  ne("math", function() {
1158
1158
  return fe(void 0, void 0, void 0, function() {
1159
1159
  return pe(this, function(e) {
1160
- return [2, { acos: Math.acos(0.5), asin: Ee(Math.asin, -1, 1, 97), atan: Ee(Math.atan, -1, 1, 97), cos: Ee(Math.cos, 0, Math.PI, 97), cosh: Math.cosh(9 / 7), e: Math.E, largeCos: Math.cos(1e20), largeSin: Math.sin(1e20), largeTan: Math.tan(1e20), log: Math.log(1e3), pi: Math.PI, sin: Ee(Math.sin, -Math.PI, Math.PI, 97), sinh: Ee(Math.sinh, -9 / 7, 7 / 9, 97), sqrt: Math.sqrt(2), tan: Ee(Math.tan, 0, 2 * Math.PI, 97), tanh: Ee(Math.tanh, -9 / 7, 7 / 9, 97) }];
1160
+ return [2, { acos: Math.acos(0.5), asin: ke(Math.asin, -1, 1, 97), atan: ke(Math.atan, -1, 1, 97), cos: ke(Math.cos, 0, Math.PI, 97), cosh: Math.cosh(9 / 7), e: Math.E, largeCos: Math.cos(1e20), largeSin: Math.sin(1e20), largeTan: Math.tan(1e20), log: Math.log(1e3), pi: Math.PI, sin: ke(Math.sin, -Math.PI, Math.PI, 97), sinh: ke(Math.sinh, -9 / 7, 7 / 9, 97), sqrt: Math.sqrt(2), tan: ke(Math.tan, 0, 2 * Math.PI, 97), tanh: ke(Math.tanh, -9 / 7, 7 / 9, 97) }];
1161
1161
  });
1162
1162
  });
1163
1163
  });
1164
1164
  const xo = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
1165
- let Le = (e = 21) => {
1165
+ let Fe = (e = 21) => {
1166
1166
  let t = "", r = crypto.getRandomValues(new Uint8Array(e |= 0));
1167
1167
  for (; e--; )
1168
1168
  t += xo[r[e] & 63];
@@ -1170,7 +1170,7 @@ let Le = (e = 21) => {
1170
1170
  };
1171
1171
  class cr {
1172
1172
  constructor(t) {
1173
- A(this, "config"), this.config = t;
1173
+ I(this, "config"), this.config = t;
1174
1174
  }
1175
1175
  async getAds(t) {
1176
1176
  return [];
@@ -1186,7 +1186,7 @@ class cr {
1186
1186
  async onAdContainerViewed(t) {
1187
1187
  }
1188
1188
  }
1189
- class Ro extends cr {
1189
+ class To extends cr {
1190
1190
  /**
1191
1191
  * Gets ads from the adMarketplace API based on the search term.
1192
1192
  */
@@ -1203,13 +1203,13 @@ class Ro extends cr {
1203
1203
  "results-pa": `${this.config.admProductAdQuantity || 0}`
1204
1204
  }).toString()}`, s = await (await fetch(r, { method: "GET" })).json(), a = s.product_ads.map(
1205
1205
  (n) => ({
1206
- id: Le(),
1206
+ id: Fe(),
1207
1207
  adSource: "adMarketplace",
1208
1208
  admAdType: "adm-product-ad",
1209
1209
  admAd: n
1210
1210
  })
1211
1211
  ), o = s.text_ads.map((n) => ({
1212
- id: Le(),
1212
+ id: Fe(),
1213
1213
  adSource: "adMarketplace",
1214
1214
  admAdType: "adm-text-ad",
1215
1215
  admAd: n
@@ -1222,15 +1222,15 @@ class Ro extends cr {
1222
1222
  (r = s.admAd) != null && r.impression_url && fetch(s.admAd.impression_url);
1223
1223
  }
1224
1224
  }
1225
- class To extends cr {
1225
+ class Po extends cr {
1226
1226
  async getAds(t) {
1227
1227
  return [];
1228
1228
  }
1229
1229
  }
1230
- const Po = 1e3;
1231
- class $o extends cr {
1230
+ const $o = 1e3;
1231
+ class _o extends cr {
1232
1232
  constructor(t) {
1233
- super(t), A(this, "adCallTimeout"), this.addScriptTagToDocument();
1233
+ super(t), I(this, "adCallTimeout"), this.addScriptTagToDocument();
1234
1234
  }
1235
1235
  async onQuerySubmitted(t) {
1236
1236
  this.addScriptTagToDocument();
@@ -1241,7 +1241,7 @@ class $o extends cr {
1241
1241
  this.removeScriptTagFromDocument();
1242
1242
  return;
1243
1243
  }
1244
- this.performAdCall(Po);
1244
+ this.performAdCall($o);
1245
1245
  }
1246
1246
  async onInputCleared() {
1247
1247
  this.removeScriptTagFromDocument();
@@ -1270,10 +1270,10 @@ class $o extends cr {
1270
1270
  t && document.head.removeChild(t);
1271
1271
  }
1272
1272
  }
1273
- const _o = 600;
1274
- class Io {
1273
+ const Io = 600;
1274
+ class Ao {
1275
1275
  constructor(t, r, s) {
1276
- A(this, "measureRequestTimeout"), A(this, "measureRequestsBatched", []), A(this, "config"), A(this, "sdkInfo"), A(this, "userId"), A(this, "sessionId"), A(this, "sendMeasureEvent", async (a, o = {}, n = {}) => {
1276
+ I(this, "measureRequestTimeout"), I(this, "measureRequestsBatched", []), I(this, "config"), I(this, "sdkInfo"), I(this, "userId"), I(this, "sessionId"), I(this, "sendMeasureEvent", async (a, o = {}, n = {}) => {
1277
1277
  const c = {
1278
1278
  event_name: a,
1279
1279
  properties: {
@@ -1287,9 +1287,9 @@ class Io {
1287
1287
  }
1288
1288
  };
1289
1289
  if (a === "document_clicked") {
1290
- const l = JSON.stringify(c), u = `${this.baseMeasureUrl}/event`;
1290
+ const i = JSON.stringify(c), h = `${this.baseMeasureUrl}/event`;
1291
1291
  try {
1292
- const i = await fetch(u, {
1292
+ const l = await fetch(h, {
1293
1293
  method: "POST",
1294
1294
  headers: {
1295
1295
  "Content-Type": "application/json",
@@ -1297,21 +1297,21 @@ class Io {
1297
1297
  "X-Sc-User-Id": this.userId,
1298
1298
  "X-Sc-Session-Id": this.sessionId
1299
1299
  },
1300
- body: l,
1300
+ body: i,
1301
1301
  keepalive: !0
1302
1302
  });
1303
- if (!i.ok)
1303
+ if (!l.ok)
1304
1304
  throw new Error(
1305
- `Failed to send request: ${i.status} ${i.statusText}`
1305
+ `Failed to send request: ${l.status} ${l.statusText}`
1306
1306
  );
1307
- } catch (i) {
1308
- throw console.error("Error sending MeasureRequest:", i), i;
1307
+ } catch (l) {
1308
+ throw console.error("Error sending MeasureRequest:", l), l;
1309
1309
  }
1310
1310
  } else
1311
1311
  this.measureRequestsBatched.push(c), clearTimeout(this.measureRequestTimeout), this.measureRequestTimeout = setTimeout(async () => {
1312
- const l = JSON.stringify({ items: this.measureRequestsBatched }), u = `${this.baseMeasureUrl}/batch`;
1312
+ const i = JSON.stringify({ items: this.measureRequestsBatched }), h = `${this.baseMeasureUrl}/batch`;
1313
1313
  try {
1314
- const i = await fetch(u, {
1314
+ const l = await fetch(h, {
1315
1315
  method: "POST",
1316
1316
  headers: {
1317
1317
  "Content-Type": "application/json",
@@ -1319,19 +1319,19 @@ class Io {
1319
1319
  "X-Sc-User-Id": this.userId,
1320
1320
  "X-Sc-Session-Id": this.sessionId
1321
1321
  },
1322
- body: l,
1322
+ body: i,
1323
1323
  keepalive: !0
1324
1324
  });
1325
- if (this.measureRequestsBatched = [], !i.ok)
1325
+ if (this.measureRequestsBatched = [], !l.ok)
1326
1326
  throw new Error(
1327
- `Failed to send request: ${i.status} ${i.statusText}`
1327
+ `Failed to send request: ${l.status} ${l.statusText}`
1328
1328
  );
1329
1329
  return;
1330
- } catch (i) {
1331
- throw this.measureRequestsBatched = [], console.error("Error sending MeasureRequest:", i), i;
1330
+ } catch (l) {
1331
+ throw this.measureRequestsBatched = [], console.error("Error sending MeasureRequest:", l), l;
1332
1332
  }
1333
- }, _o);
1334
- }), this.config = t, this.sdkInfo = r, this.userId = s, this.sessionId = Le(), this.sendMeasureEvent("sdk_initialized");
1333
+ }, Io);
1334
+ }), this.config = t, this.sdkInfo = r, this.userId = s, this.sessionId = Fe(), this.sendMeasureEvent("sdk_initialized");
1335
1335
  }
1336
1336
  /**
1337
1337
  * Getter for the base url used by the /measure endpoints.
@@ -1354,7 +1354,7 @@ class Io {
1354
1354
  };
1355
1355
  }
1356
1356
  }
1357
- const Ao = (e) => e.endsWith("/") ? e.slice(0, -1) : e, mt = (e) => {
1357
+ const Mo = (e) => e.endsWith("/") ? e.slice(0, -1) : e, mt = (e) => {
1358
1358
  let t = "";
1359
1359
  if (t = e.trim(), t = t.replace(/[‘’“”]/g, (r) => ({
1360
1360
  "‘": "'",
@@ -1366,105 +1366,99 @@ const Ao = (e) => e.endsWith("/") ? e.slice(0, -1) : e, mt = (e) => {
1366
1366
  "The search term contains an uneven number of quote characters."
1367
1367
  );
1368
1368
  return t;
1369
- }, Mo = 500;
1370
- class Oo {
1369
+ }, Oo = 500;
1370
+ class Fo {
1371
1371
  constructor(t, r, s) {
1372
- A(this, "config"), A(this, "userId"), A(this, "parent"), A(this, "searchCompletedEventTimeout"), A(this, "getSearchResponseItems", async (a, o = !0) => {
1373
- var n, c, l, u, i;
1374
- try {
1375
- let p, m = "";
1376
- return typeof a == "string" ? m = mt(a) : (a.searchTerm = mt(a.searchTerm), m = a.searchTerm), (n = this.parent.measureClient) == null || n.sendMeasureEvent("search_requested", {
1377
- search_term: m
1378
- }), this.parent.emitEvent("query_submitted", {
1379
- name: "query_submitted",
1380
- data: {
1381
- searchTerm: m
1382
- }
1383
- }), (c = this.parent.adClient) == null || c.onQuerySubmitted(
1384
- typeof a == "string" ? { searchTerm: m, mode: "exact" } : a
1385
- ), typeof a == "string" ? p = await this.handleGetSearchResponseItemsWithString(m) : p = await this.handleGetSearchResponseItemsWithObject(a), o && ((l = this.parent.measureClient) == null || l.sendMeasureEvent(
1386
- "search_response_received",
1387
- {
1388
- search_term: m,
1389
- number_of_documents: p.data.count
1390
- }
1391
- ), clearTimeout(this.searchCompletedEventTimeout), this.searchCompletedEventTimeout = setTimeout(() => {
1392
- var v;
1393
- (v = this.parent.measureClient) == null || v.sendMeasureEvent("search_completed", {
1394
- search_term: m,
1395
- number_of_documents: p.data.count
1396
- });
1397
- }, Mo), this.parent.emitEvent("query_fetched", {
1398
- name: "query_fetched",
1399
- data: {
1400
- searchTerm: m
1401
- }
1402
- }), (((u = p.data.hits) == null ? void 0 : u.length) || 0) === 0 && this.parent.emitEvent("no_results_returned", {
1403
- name: "no_results_returned"
1404
- }), (i = this.parent.adClient) == null || i.onQueryFetched(
1405
- typeof a == "string" ? { searchTerm: m, mode: "exact" } : a,
1406
- p
1407
- )), p;
1408
- } catch (p) {
1409
- throw console.error("Error parsing response:", p), p;
1410
- }
1411
- }), A(this, "handleGetSearchResponseItemsWithString", async (a) => {
1412
- var o;
1413
- let n;
1372
+ I(this, "config"), I(this, "userId"), I(this, "parent"), I(this, "searchCompletedEventTimeout"), I(this, "abortController"), I(this, "getSearchResponseItems", async (a, o = !0) => {
1373
+ var n, c, i, h, l, p;
1374
+ (n = this.abortController) == null || n.abort(
1375
+ "A newer search request has replaced this one."
1376
+ ), this.abortController = new AbortController();
1377
+ let m, v = "";
1378
+ return typeof a == "string" ? v = mt(a) : (a.searchTerm = mt(a.searchTerm), v = a.searchTerm), (c = this.parent.measureClient) == null || c.sendMeasureEvent("search_requested", {
1379
+ search_term: v
1380
+ }), this.parent.emitEvent("query_submitted", {
1381
+ name: "query_submitted",
1382
+ data: {
1383
+ searchTerm: v
1384
+ }
1385
+ }), (i = this.parent.adClient) == null || i.onQuerySubmitted(
1386
+ typeof a == "string" ? { searchTerm: v, mode: "exact" } : a
1387
+ ), typeof a == "string" ? m = await this.handleGetSearchResponseItemsWithString(v) : m = await this.handleGetSearchResponseItemsWithObject(a), o && ((h = this.parent.measureClient) == null || h.sendMeasureEvent("search_response_received", {
1388
+ search_term: v,
1389
+ number_of_documents: m.data.count
1390
+ }), clearTimeout(this.searchCompletedEventTimeout), this.searchCompletedEventTimeout = setTimeout(() => {
1391
+ var b;
1392
+ (b = this.parent.measureClient) == null || b.sendMeasureEvent("search_completed", {
1393
+ search_term: v,
1394
+ number_of_documents: m.data.count
1395
+ });
1396
+ }, Oo), this.parent.emitEvent("query_fetched", {
1397
+ name: "query_fetched",
1398
+ data: {
1399
+ searchTerm: v
1400
+ }
1401
+ }), (((l = m.data.hits) == null ? void 0 : l.length) || 0) === 0 && this.parent.emitEvent("no_results_returned", {
1402
+ name: "no_results_returned"
1403
+ }), (p = this.parent.adClient) == null || p.onQueryFetched(
1404
+ typeof a == "string" ? { searchTerm: v, mode: "exact" } : a,
1405
+ m
1406
+ )), m;
1407
+ }), I(this, "handleGetSearchResponseItemsWithString", async (a) => {
1408
+ var o, n;
1409
+ let c;
1414
1410
  try {
1415
- n = JSON.parse(a), n = {
1411
+ c = JSON.parse(a), c = {
1416
1412
  limit: this.config.searchResultsPerPage,
1417
- ...n
1413
+ ...c
1418
1414
  };
1419
1415
  } catch {
1420
1416
  throw new Error("Error: Query string is not valid json.");
1421
1417
  }
1418
+ const i = await fetch(this.baseSearchUrl, {
1419
+ method: "POST",
1420
+ headers: {
1421
+ Authorization: this.config.readKey,
1422
+ "Content-Type": "application/json",
1423
+ "X-Sc-User-Id": this.userId,
1424
+ "X-Sc-Session-Id": ((o = this.parent.measureClient) == null ? void 0 : o.sessionId) || Fe()
1425
+ },
1426
+ body: JSON.stringify(c),
1427
+ signal: (n = this.abortController) == null ? void 0 : n.signal
1428
+ });
1429
+ if (!i.ok)
1430
+ throw new Error(
1431
+ `Error: ${i.statusText} (Status: ${i.status})`
1432
+ );
1433
+ return await i.json();
1434
+ }), I(this, "handleGetSearchResponseItemsWithObject", async (a) => {
1435
+ var o, n;
1422
1436
  const c = await fetch(this.baseSearchUrl, {
1423
1437
  method: "POST",
1424
1438
  headers: {
1425
1439
  Authorization: this.config.readKey,
1426
1440
  "Content-Type": "application/json",
1427
1441
  "X-Sc-User-Id": this.userId,
1428
- "X-Sc-Session-Id": ((o = this.parent.measureClient) == null ? void 0 : o.sessionId) || Le()
1442
+ "X-Sc-Session-Id": ((o = this.parent.measureClient) == null ? void 0 : o.sessionId) || Fe()
1429
1443
  },
1430
- body: JSON.stringify(n)
1444
+ body: JSON.stringify({
1445
+ query: this.formatParamsForRequest(a),
1446
+ offset: a.offset || 0,
1447
+ limit: a.limit || this.config.searchResultsPerPage || 20,
1448
+ ...a.order_by && {
1449
+ order_by: a.order_by
1450
+ },
1451
+ ...a.sort && {
1452
+ sort: a.sort
1453
+ }
1454
+ }),
1455
+ signal: (n = this.abortController) == null ? void 0 : n.signal
1431
1456
  });
1432
1457
  if (!c.ok)
1433
1458
  throw new Error(
1434
1459
  `Error: ${c.statusText} (Status: ${c.status})`
1435
1460
  );
1436
1461
  return await c.json();
1437
- }), A(this, "handleGetSearchResponseItemsWithObject", async (a) => {
1438
- var o;
1439
- try {
1440
- const n = await fetch(this.baseSearchUrl, {
1441
- method: "POST",
1442
- headers: {
1443
- Authorization: this.config.readKey,
1444
- "Content-Type": "application/json",
1445
- "X-Sc-User-Id": this.userId,
1446
- "X-Sc-Session-Id": ((o = this.parent.measureClient) == null ? void 0 : o.sessionId) || Le()
1447
- },
1448
- body: JSON.stringify({
1449
- query: this.formatParamsForRequest(a),
1450
- offset: a.offset || 0,
1451
- limit: a.limit || this.config.searchResultsPerPage || 20,
1452
- ...a.order_by && {
1453
- order_by: a.order_by
1454
- },
1455
- ...a.sort && {
1456
- sort: a.sort
1457
- }
1458
- })
1459
- });
1460
- if (!n.ok)
1461
- throw new Error(
1462
- `Error: ${n.statusText} (Status: ${n.status})`
1463
- );
1464
- return await n.json();
1465
- } catch (n) {
1466
- throw console.error("Error parsing response:", n), n;
1467
- }
1468
1462
  }), this.parent = t, this.config = r, this.userId = s;
1469
1463
  }
1470
1464
  /**
@@ -1483,20 +1477,20 @@ class Oo {
1483
1477
  let s = "should";
1484
1478
  t.facetPathsForIndexFields && Object.keys(t.facetPathsForIndexFields).forEach((n) => {
1485
1479
  var c;
1486
- const l = (c = t.facetPathsForIndexFields) == null ? void 0 : c[n];
1487
- l && (s = "must", r.push({
1480
+ const i = (c = t.facetPathsForIndexFields) == null ? void 0 : c[n];
1481
+ i && (s = "must", r.push({
1488
1482
  occur: "must",
1489
1483
  exact: {
1490
- ctx: mt(l.value)
1484
+ ctx: mt(i.value)
1491
1485
  }
1492
1486
  }));
1493
1487
  }), t.rangeValueForIndexFields && Object.keys(t.rangeValueForIndexFields).forEach((n) => {
1494
1488
  var c;
1495
- const l = (c = t.rangeValueForIndexFields) == null ? void 0 : c[n];
1496
- l && (s = "must", r.push({
1489
+ const i = (c = t.rangeValueForIndexFields) == null ? void 0 : c[n];
1490
+ i && (s = "must", r.push({
1497
1491
  occur: "must",
1498
1492
  exact: {
1499
- ctx: mt(l.value)
1493
+ ctx: mt(i.value)
1500
1494
  }
1501
1495
  }));
1502
1496
  });
@@ -1514,27 +1508,46 @@ class Oo {
1514
1508
  }
1515
1509
  class Lo {
1516
1510
  constructor(t, r) {
1517
- if (A(this, "config"), A(this, "measureClient"), A(this, "searchClient"), A(this, "adClient"), A(this, "userId"), A(this, "requestTimeout"), A(this, "subscriptionEvents", {}), A(this, "getResponseItems", (s, a, o) => {
1511
+ if (I(this, "config"), I(this, "measureClient"), I(this, "searchClient"), I(this, "adClient"), I(this, "userId"), I(this, "requestTimeout"), I(this, "subscriptionEvents", {}), I(this, "getResponseItems", (s, a, o) => {
1518
1512
  const n = async () => {
1519
1513
  (async () => {
1520
- var c, l;
1521
- const u = await ((c = this == null ? void 0 : this.searchClient) == null ? void 0 : c.getSearchResponseItems(s));
1522
- if (!u)
1523
- throw new Error("Search client was not initialized.");
1524
- const i = (u.data.hits || []).filter((m) => !!m.doc).map((m) => ({
1525
- id: Le(),
1526
- document: m.doc || { id: -1 },
1527
- source_index: m.source_index,
1514
+ var c;
1515
+ if (!this.searchClient) {
1516
+ console.error("Search client was not initialized.");
1517
+ return;
1518
+ }
1519
+ let i;
1520
+ try {
1521
+ i = await this.searchClient.getSearchResponseItems(s);
1522
+ } catch (p) {
1523
+ console.info(`Search request error: ${p}`);
1524
+ return;
1525
+ }
1526
+ if (!i) {
1527
+ console.error("Search request error: Search response was undefined");
1528
+ return;
1529
+ }
1530
+ const h = (i.data.hits || []).filter((p) => !!p.doc).map((p) => ({
1531
+ id: Fe(),
1532
+ document: p.doc || { id: -1 },
1533
+ source_index: p.source_index,
1528
1534
  type: "SearchDocument"
1529
1535
  }));
1530
- let p;
1536
+ let l;
1531
1537
  if (typeof s == "object") {
1532
- const m = structuredClone(
1538
+ const p = structuredClone(
1533
1539
  s
1534
1540
  );
1535
- m.facetPathsForIndexFields && Object.keys(m.facetPathsForIndexFields).length > 0 && m.rangeValueForIndexFields && Object.keys(m.rangeValueForIndexFields).length > 0 && (m.facetPathsForIndexFields = void 0, p = await ((l = this == null ? void 0 : this.searchClient) == null ? void 0 : l.getSearchResponseItems(m, !1)), u && console.log("Supplemental response:", p));
1541
+ if (p.facetPathsForIndexFields && Object.keys(p.facetPathsForIndexFields).length > 0) {
1542
+ p.facetPathsForIndexFields = void 0;
1543
+ try {
1544
+ l = await ((c = this == null ? void 0 : this.searchClient) == null ? void 0 : c.getSearchResponseItems(p, !1));
1545
+ } catch (m) {
1546
+ console.info(`Search request error: ${m}`);
1547
+ }
1548
+ }
1536
1549
  }
1537
- a(u, i, p);
1550
+ a(s, i, h, l);
1538
1551
  })(), (async () => {
1539
1552
  if (this.adClient && typeof s != "string") {
1540
1553
  const c = await this.adClient.getAds(s);
@@ -1553,7 +1566,7 @@ class Lo {
1553
1566
  this.config = {
1554
1567
  ...t,
1555
1568
  // Strips off the trailing '/' from an endpointURL if one is accidentally added
1556
- endpointURL: Ao(t.endpointURL)
1569
+ endpointURL: Mo(t.endpointURL)
1557
1570
  }, this.userId = "", typeof window < "u" && typeof customElements < "u" && r.sdkName === "@searchcraft/javascript-sdk" && globalThis.__scDefineCustomElements__ && globalThis.__scDefineCustomElements__(), typeof window < "u" && (this.initClients(this.config, r), this.initInputForms(), this.startObservingMutations());
1558
1571
  }
1559
1572
  initInputForms() {
@@ -1582,15 +1595,15 @@ class Lo {
1582
1595
  initClients(t, r) {
1583
1596
  setTimeout(async () => {
1584
1597
  let s = this.config.userId;
1585
- switch (s || (s = await fo()), this.measureClient = new Io(t, r, s), this.searchClient = new Oo(this, t, s), t.adSource) {
1598
+ switch (s || (s = await po()), this.measureClient = new Ao(t, r, s), this.searchClient = new Fo(this, t, s), t.adSource) {
1586
1599
  case "adMarketplace":
1587
- this.adClient = new Ro(t);
1600
+ this.adClient = new To(t);
1588
1601
  break;
1589
1602
  case "Nativo":
1590
- this.adClient = new $o(t);
1603
+ this.adClient = new _o(t);
1591
1604
  break;
1592
1605
  case "Custom":
1593
- this.adClient = new To(t);
1606
+ this.adClient = new Po(t);
1594
1607
  break;
1595
1608
  }
1596
1609
  this.emitEvent("initialized", {
@@ -1649,20 +1662,20 @@ class Lo {
1649
1662
  }), (t = this.adClient) == null || t.onInputCleared();
1650
1663
  }
1651
1664
  }
1652
- var zs = {}, ir = {};
1653
- const us = (e) => {
1665
+ var Bs = {}, ir = {};
1666
+ const hs = (e) => {
1654
1667
  let t;
1655
- const r = /* @__PURE__ */ new Set(), s = (u, i) => {
1656
- const p = typeof u == "function" ? u(t) : u;
1668
+ const r = /* @__PURE__ */ new Set(), s = (h, l) => {
1669
+ const p = typeof h == "function" ? h(t) : h;
1657
1670
  if (!Object.is(p, t)) {
1658
1671
  const m = t;
1659
- t = i ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p), r.forEach((v) => v(t, m));
1672
+ t = l ?? (typeof p != "object" || p === null) ? p : Object.assign({}, t, p), r.forEach((v) => v(t, m));
1660
1673
  }
1661
- }, a = () => t, c = { setState: s, getState: a, getInitialState: () => l, subscribe: (u) => (r.add(u), () => r.delete(u)) }, l = t = e(s, a, c);
1674
+ }, a = () => t, c = { setState: s, getState: a, getInitialState: () => i, subscribe: (h) => (r.add(h), () => r.delete(h)) }, i = t = e(s, a, c);
1662
1675
  return c;
1663
- }, Fo = (e) => e ? us(e) : us;
1664
- ir.createStore = Fo;
1665
- var lr = {}, Bs = { exports: {} }, k = {};
1676
+ }, Do = (e) => e ? hs(e) : hs;
1677
+ ir.createStore = Do;
1678
+ var lr = {}, Vs = { exports: {} }, E = {};
1666
1679
  /**
1667
1680
  * @license React
1668
1681
  * react.production.js
@@ -1672,11 +1685,11 @@ var lr = {}, Bs = { exports: {} }, k = {};
1672
1685
  * This source code is licensed under the MIT license found in the
1673
1686
  * LICENSE file in the root directory of this source tree.
1674
1687
  */
1675
- var ur = Symbol.for("react.transitional.element"), Do = Symbol.for("react.portal"), No = Symbol.for("react.fragment"), Ho = Symbol.for("react.strict_mode"), Uo = Symbol.for("react.profiler"), zo = Symbol.for("react.consumer"), Bo = Symbol.for("react.context"), Vo = Symbol.for("react.forward_ref"), jo = Symbol.for("react.suspense"), Wo = Symbol.for("react.memo"), Vs = Symbol.for("react.lazy"), hs = Symbol.iterator;
1676
- function Go(e) {
1677
- return e === null || typeof e != "object" ? null : (e = hs && e[hs] || e["@@iterator"], typeof e == "function" ? e : null);
1688
+ var ur = Symbol.for("react.transitional.element"), No = Symbol.for("react.portal"), Ho = Symbol.for("react.fragment"), Uo = Symbol.for("react.strict_mode"), zo = Symbol.for("react.profiler"), Bo = Symbol.for("react.consumer"), Vo = Symbol.for("react.context"), jo = Symbol.for("react.forward_ref"), Wo = Symbol.for("react.suspense"), Go = Symbol.for("react.memo"), js = Symbol.for("react.lazy"), ds = Symbol.iterator;
1689
+ function qo(e) {
1690
+ return e === null || typeof e != "object" ? null : (e = ds && e[ds] || e["@@iterator"], typeof e == "function" ? e : null);
1678
1691
  }
1679
- var js = {
1692
+ var Ws = {
1680
1693
  isMounted: function() {
1681
1694
  return !1;
1682
1695
  },
@@ -1686,9 +1699,9 @@ var js = {
1686
1699
  },
1687
1700
  enqueueSetState: function() {
1688
1701
  }
1689
- }, Ws = Object.assign, Gs = {};
1702
+ }, Gs = Object.assign, qs = {};
1690
1703
  function De(e, t, r) {
1691
- this.props = e, this.context = t, this.refs = Gs, this.updater = r || js;
1704
+ this.props = e, this.context = t, this.refs = qs, this.updater = r || Ws;
1692
1705
  }
1693
1706
  De.prototype.isReactComponent = {};
1694
1707
  De.prototype.setState = function(e, t) {
@@ -1701,17 +1714,17 @@ De.prototype.setState = function(e, t) {
1701
1714
  De.prototype.forceUpdate = function(e) {
1702
1715
  this.updater.enqueueForceUpdate(this, e, "forceUpdate");
1703
1716
  };
1704
- function qs() {
1717
+ function Ys() {
1705
1718
  }
1706
- qs.prototype = De.prototype;
1719
+ Ys.prototype = De.prototype;
1707
1720
  function hr(e, t, r) {
1708
- this.props = e, this.context = t, this.refs = Gs, this.updater = r || js;
1721
+ this.props = e, this.context = t, this.refs = qs, this.updater = r || Ws;
1709
1722
  }
1710
- var dr = hr.prototype = new qs();
1723
+ var dr = hr.prototype = new Ys();
1711
1724
  dr.constructor = hr;
1712
- Ws(dr, De.prototype);
1725
+ Gs(dr, De.prototype);
1713
1726
  dr.isPureReactComponent = !0;
1714
- var ds = Array.isArray, O = { H: null, A: null, T: null, S: null }, Ys = Object.prototype.hasOwnProperty;
1727
+ var fs = Array.isArray, O = { H: null, A: null, T: null, S: null }, Zs = Object.prototype.hasOwnProperty;
1715
1728
  function fr(e, t, r, s, a, o) {
1716
1729
  return r = o.ref, {
1717
1730
  $$typeof: ur,
@@ -1721,7 +1734,7 @@ function fr(e, t, r, s, a, o) {
1721
1734
  props: o
1722
1735
  };
1723
1736
  }
1724
- function qo(e, t) {
1737
+ function Yo(e, t) {
1725
1738
  return fr(
1726
1739
  e.type,
1727
1740
  t,
@@ -1734,26 +1747,26 @@ function qo(e, t) {
1734
1747
  function pr(e) {
1735
1748
  return typeof e == "object" && e !== null && e.$$typeof === ur;
1736
1749
  }
1737
- function Yo(e) {
1750
+ function Zo(e) {
1738
1751
  var t = { "=": "=0", ":": "=2" };
1739
1752
  return "$" + e.replace(/[=:]/g, function(r) {
1740
1753
  return t[r];
1741
1754
  });
1742
1755
  }
1743
- var fs = /\/+/g;
1756
+ var ps = /\/+/g;
1744
1757
  function qt(e, t) {
1745
- return typeof e == "object" && e !== null && e.key != null ? Yo("" + e.key) : t.toString(36);
1758
+ return typeof e == "object" && e !== null && e.key != null ? Zo("" + e.key) : t.toString(36);
1746
1759
  }
1747
- function ps() {
1760
+ function ms() {
1748
1761
  }
1749
- function Zo(e) {
1762
+ function Qo(e) {
1750
1763
  switch (e.status) {
1751
1764
  case "fulfilled":
1752
1765
  return e.value;
1753
1766
  case "rejected":
1754
1767
  throw e.reason;
1755
1768
  default:
1756
- switch (typeof e.status == "string" ? e.then(ps, ps) : (e.status = "pending", e.then(
1769
+ switch (typeof e.status == "string" ? e.then(ms, ms) : (e.status = "pending", e.then(
1757
1770
  function(t) {
1758
1771
  e.status === "pending" && (e.status = "fulfilled", e.value = t);
1759
1772
  },
@@ -1784,10 +1797,10 @@ function Me(e, t, r, s, a) {
1784
1797
  case "object":
1785
1798
  switch (e.$$typeof) {
1786
1799
  case ur:
1787
- case Do:
1800
+ case No:
1788
1801
  n = !0;
1789
1802
  break;
1790
- case Vs:
1803
+ case js:
1791
1804
  return n = e._init, Me(
1792
1805
  n(e._payload),
1793
1806
  t,
@@ -1798,29 +1811,29 @@ function Me(e, t, r, s, a) {
1798
1811
  }
1799
1812
  }
1800
1813
  if (n)
1801
- return a = a(e), n = s === "" ? "." + qt(e, 0) : s, ds(a) ? (r = "", n != null && (r = n.replace(fs, "$&/") + "/"), Me(a, t, r, "", function(u) {
1802
- return u;
1803
- })) : a != null && (pr(a) && (a = qo(
1814
+ return a = a(e), n = s === "" ? "." + qt(e, 0) : s, fs(a) ? (r = "", n != null && (r = n.replace(ps, "$&/") + "/"), Me(a, t, r, "", function(h) {
1815
+ return h;
1816
+ })) : a != null && (pr(a) && (a = Yo(
1804
1817
  a,
1805
1818
  r + (a.key == null || e && e.key === a.key ? "" : ("" + a.key).replace(
1806
- fs,
1819
+ ps,
1807
1820
  "$&/"
1808
1821
  ) + "/") + n
1809
1822
  )), t.push(a)), 1;
1810
1823
  n = 0;
1811
1824
  var c = s === "" ? "." : s + ":";
1812
- if (ds(e))
1813
- for (var l = 0; l < e.length; l++)
1814
- s = e[l], o = c + qt(s, l), n += Me(
1825
+ if (fs(e))
1826
+ for (var i = 0; i < e.length; i++)
1827
+ s = e[i], o = c + qt(s, i), n += Me(
1815
1828
  s,
1816
1829
  t,
1817
1830
  r,
1818
1831
  o,
1819
1832
  a
1820
1833
  );
1821
- else if (l = Go(e), typeof l == "function")
1822
- for (e = l.call(e), l = 0; !(s = e.next()).done; )
1823
- s = s.value, o = c + qt(s, l++), n += Me(
1834
+ else if (i = qo(e), typeof i == "function")
1835
+ for (e = i.call(e), i = 0; !(s = e.next()).done; )
1836
+ s = s.value, o = c + qt(s, i++), n += Me(
1824
1837
  s,
1825
1838
  t,
1826
1839
  r,
@@ -1830,7 +1843,7 @@ function Me(e, t, r, s, a) {
1830
1843
  else if (o === "object") {
1831
1844
  if (typeof e.then == "function")
1832
1845
  return Me(
1833
- Zo(e),
1846
+ Qo(e),
1834
1847
  t,
1835
1848
  r,
1836
1849
  s,
@@ -1849,7 +1862,7 @@ function gt(e, t, r) {
1849
1862
  return t.call(r, o, a++);
1850
1863
  }), s;
1851
1864
  }
1852
- function Qo(e) {
1865
+ function Ko(e) {
1853
1866
  if (e._status === -1) {
1854
1867
  var t = e._result;
1855
1868
  t = t(), t.then(
@@ -1864,7 +1877,7 @@ function Qo(e) {
1864
1877
  if (e._status === 1) return e._result.default;
1865
1878
  throw e._result;
1866
1879
  }
1867
- var ms = typeof reportError == "function" ? reportError : function(e) {
1880
+ var gs = typeof reportError == "function" ? reportError : function(e) {
1868
1881
  if (typeof window == "object" && typeof window.ErrorEvent == "function") {
1869
1882
  var t = new window.ErrorEvent("error", {
1870
1883
  bubbles: !0,
@@ -1879,9 +1892,9 @@ var ms = typeof reportError == "function" ? reportError : function(e) {
1879
1892
  }
1880
1893
  console.error(e);
1881
1894
  };
1882
- function Ko() {
1895
+ function Xo() {
1883
1896
  }
1884
- k.Children = {
1897
+ E.Children = {
1885
1898
  map: gt,
1886
1899
  forEach: function(e, t, r) {
1887
1900
  gt(
@@ -1911,62 +1924,62 @@ k.Children = {
1911
1924
  return e;
1912
1925
  }
1913
1926
  };
1914
- k.Component = De;
1915
- k.Fragment = No;
1916
- k.Profiler = Uo;
1917
- k.PureComponent = hr;
1918
- k.StrictMode = Ho;
1919
- k.Suspense = jo;
1920
- k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = O;
1921
- k.act = function() {
1927
+ E.Component = De;
1928
+ E.Fragment = Ho;
1929
+ E.Profiler = zo;
1930
+ E.PureComponent = hr;
1931
+ E.StrictMode = Uo;
1932
+ E.Suspense = Wo;
1933
+ E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = O;
1934
+ E.act = function() {
1922
1935
  throw Error("act(...) is not supported in production builds of React.");
1923
1936
  };
1924
- k.cache = function(e) {
1937
+ E.cache = function(e) {
1925
1938
  return function() {
1926
1939
  return e.apply(null, arguments);
1927
1940
  };
1928
1941
  };
1929
- k.cloneElement = function(e, t, r) {
1942
+ E.cloneElement = function(e, t, r) {
1930
1943
  if (e == null)
1931
1944
  throw Error(
1932
1945
  "The argument must be a React element, but you passed " + e + "."
1933
1946
  );
1934
- var s = Ws({}, e.props), a = e.key, o = void 0;
1947
+ var s = Gs({}, e.props), a = e.key, o = void 0;
1935
1948
  if (t != null)
1936
1949
  for (n in t.ref !== void 0 && (o = void 0), t.key !== void 0 && (a = "" + t.key), t)
1937
- !Ys.call(t, n) || n === "key" || n === "__self" || n === "__source" || n === "ref" && t.ref === void 0 || (s[n] = t[n]);
1950
+ !Zs.call(t, n) || n === "key" || n === "__self" || n === "__source" || n === "ref" && t.ref === void 0 || (s[n] = t[n]);
1938
1951
  var n = arguments.length - 2;
1939
1952
  if (n === 1) s.children = r;
1940
1953
  else if (1 < n) {
1941
- for (var c = Array(n), l = 0; l < n; l++)
1942
- c[l] = arguments[l + 2];
1954
+ for (var c = Array(n), i = 0; i < n; i++)
1955
+ c[i] = arguments[i + 2];
1943
1956
  s.children = c;
1944
1957
  }
1945
1958
  return fr(e.type, a, void 0, void 0, o, s);
1946
1959
  };
1947
- k.createContext = function(e) {
1960
+ E.createContext = function(e) {
1948
1961
  return e = {
1949
- $$typeof: Bo,
1962
+ $$typeof: Vo,
1950
1963
  _currentValue: e,
1951
1964
  _currentValue2: e,
1952
1965
  _threadCount: 0,
1953
1966
  Provider: null,
1954
1967
  Consumer: null
1955
1968
  }, e.Provider = e, e.Consumer = {
1956
- $$typeof: zo,
1969
+ $$typeof: Bo,
1957
1970
  _context: e
1958
1971
  }, e;
1959
1972
  };
1960
- k.createElement = function(e, t, r) {
1973
+ E.createElement = function(e, t, r) {
1961
1974
  var s, a = {}, o = null;
1962
1975
  if (t != null)
1963
1976
  for (s in t.key !== void 0 && (o = "" + t.key), t)
1964
- Ys.call(t, s) && s !== "key" && s !== "__self" && s !== "__source" && (a[s] = t[s]);
1977
+ Zs.call(t, s) && s !== "key" && s !== "__self" && s !== "__source" && (a[s] = t[s]);
1965
1978
  var n = arguments.length - 2;
1966
1979
  if (n === 1) a.children = r;
1967
1980
  else if (1 < n) {
1968
- for (var c = Array(n), l = 0; l < n; l++)
1969
- c[l] = arguments[l + 2];
1981
+ for (var c = Array(n), i = 0; i < n; i++)
1982
+ c[i] = arguments[i + 2];
1970
1983
  a.children = c;
1971
1984
  }
1972
1985
  if (e && e.defaultProps)
@@ -1974,117 +1987,117 @@ k.createElement = function(e, t, r) {
1974
1987
  a[s] === void 0 && (a[s] = n[s]);
1975
1988
  return fr(e, o, void 0, void 0, null, a);
1976
1989
  };
1977
- k.createRef = function() {
1990
+ E.createRef = function() {
1978
1991
  return { current: null };
1979
1992
  };
1980
- k.forwardRef = function(e) {
1981
- return { $$typeof: Vo, render: e };
1993
+ E.forwardRef = function(e) {
1994
+ return { $$typeof: jo, render: e };
1982
1995
  };
1983
- k.isValidElement = pr;
1984
- k.lazy = function(e) {
1996
+ E.isValidElement = pr;
1997
+ E.lazy = function(e) {
1985
1998
  return {
1986
- $$typeof: Vs,
1999
+ $$typeof: js,
1987
2000
  _payload: { _status: -1, _result: e },
1988
- _init: Qo
2001
+ _init: Ko
1989
2002
  };
1990
2003
  };
1991
- k.memo = function(e, t) {
2004
+ E.memo = function(e, t) {
1992
2005
  return {
1993
- $$typeof: Wo,
2006
+ $$typeof: Go,
1994
2007
  type: e,
1995
2008
  compare: t === void 0 ? null : t
1996
2009
  };
1997
2010
  };
1998
- k.startTransition = function(e) {
2011
+ E.startTransition = function(e) {
1999
2012
  var t = O.T, r = {};
2000
2013
  O.T = r;
2001
2014
  try {
2002
2015
  var s = e(), a = O.S;
2003
- a !== null && a(r, s), typeof s == "object" && s !== null && typeof s.then == "function" && s.then(Ko, ms);
2016
+ a !== null && a(r, s), typeof s == "object" && s !== null && typeof s.then == "function" && s.then(Xo, gs);
2004
2017
  } catch (o) {
2005
- ms(o);
2018
+ gs(o);
2006
2019
  } finally {
2007
2020
  O.T = t;
2008
2021
  }
2009
2022
  };
2010
- k.unstable_useCacheRefresh = function() {
2023
+ E.unstable_useCacheRefresh = function() {
2011
2024
  return O.H.useCacheRefresh();
2012
2025
  };
2013
- k.use = function(e) {
2026
+ E.use = function(e) {
2014
2027
  return O.H.use(e);
2015
2028
  };
2016
- k.useActionState = function(e, t, r) {
2029
+ E.useActionState = function(e, t, r) {
2017
2030
  return O.H.useActionState(e, t, r);
2018
2031
  };
2019
- k.useCallback = function(e, t) {
2032
+ E.useCallback = function(e, t) {
2020
2033
  return O.H.useCallback(e, t);
2021
2034
  };
2022
- k.useContext = function(e) {
2035
+ E.useContext = function(e) {
2023
2036
  return O.H.useContext(e);
2024
2037
  };
2025
- k.useDebugValue = function() {
2038
+ E.useDebugValue = function() {
2026
2039
  };
2027
- k.useDeferredValue = function(e, t) {
2040
+ E.useDeferredValue = function(e, t) {
2028
2041
  return O.H.useDeferredValue(e, t);
2029
2042
  };
2030
- k.useEffect = function(e, t) {
2043
+ E.useEffect = function(e, t) {
2031
2044
  return O.H.useEffect(e, t);
2032
2045
  };
2033
- k.useId = function() {
2046
+ E.useId = function() {
2034
2047
  return O.H.useId();
2035
2048
  };
2036
- k.useImperativeHandle = function(e, t, r) {
2049
+ E.useImperativeHandle = function(e, t, r) {
2037
2050
  return O.H.useImperativeHandle(e, t, r);
2038
2051
  };
2039
- k.useInsertionEffect = function(e, t) {
2052
+ E.useInsertionEffect = function(e, t) {
2040
2053
  return O.H.useInsertionEffect(e, t);
2041
2054
  };
2042
- k.useLayoutEffect = function(e, t) {
2055
+ E.useLayoutEffect = function(e, t) {
2043
2056
  return O.H.useLayoutEffect(e, t);
2044
2057
  };
2045
- k.useMemo = function(e, t) {
2058
+ E.useMemo = function(e, t) {
2046
2059
  return O.H.useMemo(e, t);
2047
2060
  };
2048
- k.useOptimistic = function(e, t) {
2061
+ E.useOptimistic = function(e, t) {
2049
2062
  return O.H.useOptimistic(e, t);
2050
2063
  };
2051
- k.useReducer = function(e, t, r) {
2064
+ E.useReducer = function(e, t, r) {
2052
2065
  return O.H.useReducer(e, t, r);
2053
2066
  };
2054
- k.useRef = function(e) {
2067
+ E.useRef = function(e) {
2055
2068
  return O.H.useRef(e);
2056
2069
  };
2057
- k.useState = function(e) {
2070
+ E.useState = function(e) {
2058
2071
  return O.H.useState(e);
2059
2072
  };
2060
- k.useSyncExternalStore = function(e, t, r) {
2073
+ E.useSyncExternalStore = function(e, t, r) {
2061
2074
  return O.H.useSyncExternalStore(
2062
2075
  e,
2063
2076
  t,
2064
2077
  r
2065
2078
  );
2066
2079
  };
2067
- k.useTransition = function() {
2080
+ E.useTransition = function() {
2068
2081
  return O.H.useTransition();
2069
2082
  };
2070
- k.version = "19.0.0";
2071
- Bs.exports = k;
2072
- var gs = Bs.exports, Xo = ir;
2073
- const Jo = (e) => e;
2074
- function Zs(e, t = Jo) {
2075
- const r = gs.useSyncExternalStore(
2083
+ E.version = "19.0.0";
2084
+ Vs.exports = E;
2085
+ var vs = Vs.exports, Jo = ir;
2086
+ const ec = (e) => e;
2087
+ function Qs(e, t = ec) {
2088
+ const r = vs.useSyncExternalStore(
2076
2089
  e.subscribe,
2077
2090
  () => t(e.getState()),
2078
2091
  () => t(e.getInitialState())
2079
2092
  );
2080
- return gs.useDebugValue(r), r;
2093
+ return vs.useDebugValue(r), r;
2081
2094
  }
2082
- const vs = (e) => {
2083
- const t = Xo.createStore(e), r = (s) => Zs(t, s);
2095
+ const bs = (e) => {
2096
+ const t = Jo.createStore(e), r = (s) => Qs(t, s);
2084
2097
  return Object.assign(r, t), r;
2085
- }, ec = (e) => e ? vs(e) : vs;
2086
- lr.create = ec;
2087
- lr.useStore = Zs;
2098
+ }, tc = (e) => e ? bs(e) : bs;
2099
+ lr.create = tc;
2100
+ lr.useStore = Qs;
2088
2101
  (function(e) {
2089
2102
  var t = ir, r = lr;
2090
2103
  Object.keys(t).forEach(function(s) {
@@ -2102,8 +2115,8 @@ lr.useStore = Zs;
2102
2115
  }
2103
2116
  });
2104
2117
  });
2105
- })(zs);
2106
- const bs = {
2118
+ })(Bs);
2119
+ const ys = {
2107
2120
  adClientResponseItems: [],
2108
2121
  core: void 0,
2109
2122
  hotkey: "k",
@@ -2117,6 +2130,7 @@ const bs = {
2117
2130
  rangeValueForIndexFields: {},
2118
2131
  searchTerm: "",
2119
2132
  searchMode: "fuzzy",
2133
+ searchClientRequest: void 0,
2120
2134
  searchClientResponseItems: [],
2121
2135
  searchResponseTimeTaken: void 0,
2122
2136
  searchResponseFacetPrime: void 0,
@@ -2129,7 +2143,7 @@ const bs = {
2129
2143
  // Callbacks
2130
2144
  afterInit: () => {
2131
2145
  }
2132
- }, $ = zs.createStore((e, t) => {
2146
+ }, $ = Bs.createStore((e, t) => {
2133
2147
  const r = {
2134
2148
  set: (a) => (e(a), t()),
2135
2149
  addFacetPathsForIndexField: (a) => r.set((o) => ({
@@ -2149,7 +2163,7 @@ const bs = {
2149
2163
  return a;
2150
2164
  },
2151
2165
  init: (a, o = !1) => {
2152
- const n = o ? new oo({ logLevel: he.DEBUG }) : void 0, c = r.set({
2166
+ const n = o ? new co({ logLevel: he.DEBUG }) : void 0, c = r.set({
2153
2167
  core: a,
2154
2168
  logger: n,
2155
2169
  searchResultsPerPage: (a == null ? void 0 : a.config.searchResultsPerPage) || 20
@@ -2205,35 +2219,37 @@ const bs = {
2205
2219
  }, r.setSearchClientResponseItemsFromResponse, r.setAdClientResponseItems);
2206
2220
  },
2207
2221
  setAdClientResponseItems: (a) => r.set({ adClientResponseItems: a }),
2208
- setSearchClientResponseItemsFromResponse: (a, o, n) => {
2209
- var p, m;
2210
- const { facets: c, count: l = 0, time_taken: u = 0 } = a.data, i = r.set((v) => ({
2222
+ setSearchClientResponseItemsFromResponse: (a, o, n, c) => {
2223
+ var m, v;
2224
+ const { facets: i, count: h = 0, time_taken: l = 0 } = o.data, p = r.set((b) => ({
2211
2225
  isSearchInProgress: !1,
2212
- searchClientResponseItems: o,
2213
- searchResponseTimeTaken: u,
2226
+ searchClientResponseItems: n,
2227
+ searchResponseTimeTaken: l,
2214
2228
  searchResultsPage: (
2215
2229
  // Reset to first page when response count changes
2216
- l === v.searchResultsCount ? v.searchResultsPage : 1
2230
+ h === b.searchResultsCount ? b.searchResultsPage : 1
2217
2231
  ),
2218
- searchResultsCount: l,
2219
- searchResponseFacetPrime: c,
2220
- supplementalFacetPrime: n == null ? void 0 : n.data.facets
2232
+ searchResultsCount: h,
2233
+ searchResponseFacetPrime: i,
2234
+ supplementalFacetPrime: c == null ? void 0 : c.data.facets,
2235
+ searchClientRequest: a
2221
2236
  }));
2222
- (p = i.logger) == null || p.log(he.DEBUG, `Search results: ${JSON.stringify(o)}`), (m = i.logger) == null || m.log(he.DEBUG, `Facets from response: ${JSON.stringify(c)}`);
2237
+ (m = p.logger) == null || m.log(he.DEBUG, `Search results: ${JSON.stringify(n)}`), (v = p.logger) == null || v.log(he.DEBUG, `Facets from response: ${JSON.stringify(i)}`);
2223
2238
  },
2224
- setInitialSearchClientResponseItemsFromResponse: (a, o) => {
2225
- var u;
2226
- const n = t(), { count: c = 0, time_taken: l = 0 } = a.data;
2227
- r.set((i) => ({
2239
+ setInitialSearchClientResponseItemsFromResponse: (a, o, n) => {
2240
+ var l;
2241
+ const c = t(), { count: i = 0, time_taken: h = 0 } = o.data;
2242
+ r.set((p) => ({
2228
2243
  isSearchInProgress: !1,
2229
- initialSearchClientResponseItems: o,
2230
- searchResponseTimeTaken: l,
2244
+ initialSearchClientResponseItems: n,
2245
+ searchResponseTimeTaken: h,
2231
2246
  searchResultsPage: (
2232
2247
  // Reset to first page when response count changes
2233
- c === i.searchResultsCount ? i.searchResultsPage : 1
2248
+ i === p.searchResultsCount ? p.searchResultsPage : 1
2234
2249
  ),
2235
- searchResultsCount: c
2236
- })), (u = n.logger) == null || u.log(he.DEBUG, `Search results: ${JSON.stringify(o)}`);
2250
+ searchResultsCount: i,
2251
+ searchClientRequest: a
2252
+ })), (l = c.logger) == null || l.log(he.DEBUG, `Search results: ${JSON.stringify(n)}`);
2237
2253
  },
2238
2254
  setInitialQuery: async (a) => {
2239
2255
  var n;
@@ -2250,13 +2266,7 @@ const bs = {
2250
2266
  setSearchTerm: (a) => {
2251
2267
  const { core: o } = t();
2252
2268
  a.length === 0 && (o == null || o.handleInputCleared()), r.set({
2253
- searchTerm: a,
2254
- facetPathsForIndexFields: {},
2255
- ...a.trim().length === 0 && {
2256
- searchMode: "fuzzy",
2257
- sortType: null,
2258
- orderByField: null
2259
- }
2269
+ searchTerm: a
2260
2270
  });
2261
2271
  },
2262
2272
  setSearchClientResponseItems: (a) => r.set({ searchClientResponseItems: a }),
@@ -2268,7 +2278,7 @@ const bs = {
2268
2278
  r.set({ searchResultsPerPage: a }), await r.search();
2269
2279
  },
2270
2280
  setHotKeyAndHotKeyModifier: (a, o) => {
2271
- const { hotkey: n, hotkeyModifier: c } = bs;
2281
+ const { hotkey: n, hotkeyModifier: c } = ys;
2272
2282
  r.set({
2273
2283
  hotkey: a || n,
2274
2284
  hotkeyModifier: o || c
@@ -2276,11 +2286,11 @@ const bs = {
2276
2286
  }
2277
2287
  };
2278
2288
  return {
2279
- ...bs,
2289
+ ...ys,
2280
2290
  ...r
2281
2291
  };
2282
2292
  });
2283
- var Qs = { exports: {} };
2293
+ var Ks = { exports: {} };
2284
2294
  /*!
2285
2295
  Copyright (c) 2018 Jed Watson.
2286
2296
  Licensed under the MIT License (MIT), see
@@ -2315,14 +2325,14 @@ var Qs = { exports: {} };
2315
2325
  }
2316
2326
  e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
2317
2327
  })();
2318
- })(Qs);
2319
- const ee = Qs.exports;
2320
- var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ks = { exports: {} };
2328
+ })(Ks);
2329
+ const ee = Ks.exports;
2330
+ var rc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Xs = { exports: {} };
2321
2331
  /*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */
2322
2332
  (function(e, t) {
2323
2333
  (function(r, s) {
2324
2334
  e.exports = s();
2325
- })(tc, function() {
2335
+ })(rc, function() {
2326
2336
  const {
2327
2337
  entries: r,
2328
2338
  setPrototypeOf: s,
@@ -2332,95 +2342,95 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2332
2342
  } = Object;
2333
2343
  let {
2334
2344
  freeze: c,
2335
- seal: l,
2336
- create: u
2345
+ seal: i,
2346
+ create: h
2337
2347
  } = Object, {
2338
- apply: i,
2348
+ apply: l,
2339
2349
  construct: p
2340
2350
  } = typeof Reflect < "u" && Reflect;
2341
2351
  c || (c = function(C) {
2342
2352
  return C;
2343
- }), l || (l = function(C) {
2353
+ }), i || (i = function(C) {
2344
2354
  return C;
2345
- }), i || (i = function(C, P, R) {
2346
- return C.apply(P, R);
2355
+ }), l || (l = function(C, P, x) {
2356
+ return C.apply(P, x);
2347
2357
  }), p || (p = function(C, P) {
2348
2358
  return new C(...P);
2349
2359
  });
2350
- const m = q(Array.prototype.forEach), v = q(Array.prototype.lastIndexOf), b = q(Array.prototype.pop), T = q(Array.prototype.push), _ = q(Array.prototype.splice), N = q(String.prototype.toLowerCase), I = q(String.prototype.toString), Ne = q(String.prototype.match), He = q(String.prototype.replace), Ta = q(String.prototype.indexOf), Pa = q(String.prototype.trim), ae = q(Object.prototype.hasOwnProperty), G = q(RegExp.prototype.test), Ue = $a(TypeError);
2351
- function q(x) {
2360
+ const m = q(Array.prototype.forEach), v = q(Array.prototype.lastIndexOf), b = q(Array.prototype.pop), T = q(Array.prototype.push), _ = q(Array.prototype.splice), N = q(String.prototype.toLowerCase), A = q(String.prototype.toString), Ne = q(String.prototype.match), He = q(String.prototype.replace), Pa = q(String.prototype.indexOf), $a = q(String.prototype.trim), ae = q(Object.prototype.hasOwnProperty), G = q(RegExp.prototype.test), Ue = _a(TypeError);
2361
+ function q(R) {
2352
2362
  return function(C) {
2353
- for (var P = arguments.length, R = new Array(P > 1 ? P - 1 : 0), V = 1; V < P; V++)
2354
- R[V - 1] = arguments[V];
2355
- return i(x, C, R);
2363
+ for (var P = arguments.length, x = new Array(P > 1 ? P - 1 : 0), V = 1; V < P; V++)
2364
+ x[V - 1] = arguments[V];
2365
+ return l(R, C, x);
2356
2366
  };
2357
2367
  }
2358
- function $a(x) {
2368
+ function _a(R) {
2359
2369
  return function() {
2360
- for (var C = arguments.length, P = new Array(C), R = 0; R < C; R++)
2361
- P[R] = arguments[R];
2362
- return p(x, P);
2370
+ for (var C = arguments.length, P = new Array(C), x = 0; x < C; x++)
2371
+ P[x] = arguments[x];
2372
+ return p(R, P);
2363
2373
  };
2364
2374
  }
2365
- function E(x, C) {
2375
+ function k(R, C) {
2366
2376
  let P = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : N;
2367
- s && s(x, null);
2368
- let R = C.length;
2369
- for (; R--; ) {
2370
- let V = C[R];
2377
+ s && s(R, null);
2378
+ let x = C.length;
2379
+ for (; x--; ) {
2380
+ let V = C[x];
2371
2381
  if (typeof V == "string") {
2372
2382
  const ie = P(V);
2373
- ie !== V && (a(C) || (C[R] = ie), V = ie);
2383
+ ie !== V && (a(C) || (C[x] = ie), V = ie);
2374
2384
  }
2375
- x[V] = !0;
2385
+ R[V] = !0;
2376
2386
  }
2377
- return x;
2387
+ return R;
2378
2388
  }
2379
- function _a(x) {
2380
- for (let C = 0; C < x.length; C++)
2381
- ae(x, C) || (x[C] = null);
2382
- return x;
2389
+ function Ia(R) {
2390
+ for (let C = 0; C < R.length; C++)
2391
+ ae(R, C) || (R[C] = null);
2392
+ return R;
2383
2393
  }
2384
- function we(x) {
2385
- const C = u(null);
2386
- for (const [P, R] of r(x))
2387
- ae(x, P) && (Array.isArray(R) ? C[P] = _a(R) : R && typeof R == "object" && R.constructor === Object ? C[P] = we(R) : C[P] = R);
2394
+ function we(R) {
2395
+ const C = h(null);
2396
+ for (const [P, x] of r(R))
2397
+ ae(R, P) && (Array.isArray(x) ? C[P] = Ia(x) : x && typeof x == "object" && x.constructor === Object ? C[P] = we(x) : C[P] = x);
2388
2398
  return C;
2389
2399
  }
2390
- function ze(x, C) {
2391
- for (; x !== null; ) {
2392
- const R = n(x, C);
2393
- if (R) {
2394
- if (R.get)
2395
- return q(R.get);
2396
- if (typeof R.value == "function")
2397
- return q(R.value);
2400
+ function ze(R, C) {
2401
+ for (; R !== null; ) {
2402
+ const x = n(R, C);
2403
+ if (x) {
2404
+ if (x.get)
2405
+ return q(x.get);
2406
+ if (typeof x.value == "function")
2407
+ return q(x.value);
2398
2408
  }
2399
- x = o(x);
2409
+ R = o(R);
2400
2410
  }
2401
2411
  function P() {
2402
2412
  return null;
2403
2413
  }
2404
2414
  return P;
2405
2415
  }
2406
- const vr = c(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Rt = c(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Tt = c(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Ia = c(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Pt = c(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Aa = c(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), br = c(["#text"]), yr = c(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), $t = c(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Cr = c(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), rt = c(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Ma = l(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Oa = l(/<%[\w\W]*|[\w\W]*%>/gm), La = l(/\$\{[\w\W]*/gm), Fa = l(/^data-[\-\w.\u00B7-\uFFFF]+$/), Da = l(/^aria-[\-\w]+$/), Sr = l(
2416
+ const br = c(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), xt = c(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Tt = c(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Aa = c(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), Pt = c(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Ma = c(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), yr = c(["#text"]), Cr = c(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), $t = c(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Sr = c(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), rt = c(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Oa = i(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Fa = i(/<%[\w\W]*|[\w\W]*%>/gm), La = i(/\$\{[\w\W]*/gm), Da = i(/^data-[\-\w.\u00B7-\uFFFF]+$/), Na = i(/^aria-[\-\w]+$/), wr = i(
2407
2417
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
2408
2418
  // eslint-disable-line no-useless-escape
2409
- ), Na = l(/^(?:\w+script|data):/i), Ha = l(
2419
+ ), Ha = i(/^(?:\w+script|data):/i), Ua = i(
2410
2420
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
2411
2421
  // eslint-disable-line no-control-regex
2412
- ), wr = l(/^html$/i), Ua = l(/^[a-z][.\w]*(-[.\w]+)+$/i);
2422
+ ), Er = i(/^html$/i), za = i(/^[a-z][.\w]*(-[.\w]+)+$/i);
2413
2423
  var kr = /* @__PURE__ */ Object.freeze({
2414
2424
  __proto__: null,
2415
- ARIA_ATTR: Da,
2416
- ATTR_WHITESPACE: Ha,
2417
- CUSTOM_ELEMENT: Ua,
2418
- DATA_ATTR: Fa,
2419
- DOCTYPE_NAME: wr,
2420
- ERB_EXPR: Oa,
2421
- IS_ALLOWED_URI: Sr,
2422
- IS_SCRIPT_OR_DATA: Na,
2423
- MUSTACHE_EXPR: Ma,
2425
+ ARIA_ATTR: Na,
2426
+ ATTR_WHITESPACE: Ua,
2427
+ CUSTOM_ELEMENT: za,
2428
+ DATA_ATTR: Da,
2429
+ DOCTYPE_NAME: Er,
2430
+ ERB_EXPR: Fa,
2431
+ IS_ALLOWED_URI: wr,
2432
+ IS_SCRIPT_OR_DATA: Ha,
2433
+ MUSTACHE_EXPR: Oa,
2424
2434
  TMPLIT_EXPR: La
2425
2435
  });
2426
2436
  const Be = {
@@ -2430,28 +2440,28 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2430
2440
  progressingInstruction: 7,
2431
2441
  comment: 8,
2432
2442
  document: 9
2433
- }, za = function() {
2443
+ }, Ba = function() {
2434
2444
  return typeof window > "u" ? null : window;
2435
- }, Ba = function(C, P) {
2445
+ }, Va = function(C, P) {
2436
2446
  if (typeof C != "object" || typeof C.createPolicy != "function")
2437
2447
  return null;
2438
- let R = null;
2448
+ let x = null;
2439
2449
  const V = "data-tt-policy-suffix";
2440
- P && P.hasAttribute(V) && (R = P.getAttribute(V));
2441
- const ie = "dompurify" + (R ? "#" + R : "");
2450
+ P && P.hasAttribute(V) && (x = P.getAttribute(V));
2451
+ const ie = "dompurify" + (x ? "#" + x : "");
2442
2452
  try {
2443
2453
  return C.createPolicy(ie, {
2444
- createHTML(xe) {
2445
- return xe;
2454
+ createHTML(Re) {
2455
+ return Re;
2446
2456
  },
2447
- createScriptURL(xe) {
2448
- return xe;
2457
+ createScriptURL(Re) {
2458
+ return Re;
2449
2459
  }
2450
2460
  });
2451
2461
  } catch {
2452
2462
  return console.warn("TrustedTypes policy " + ie + " could not be created."), null;
2453
2463
  }
2454
- }, Er = function() {
2464
+ }, Rr = function() {
2455
2465
  return {
2456
2466
  afterSanitizeAttributes: [],
2457
2467
  afterSanitizeElements: [],
@@ -2465,56 +2475,56 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2465
2475
  };
2466
2476
  };
2467
2477
  function xr() {
2468
- let x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : za();
2478
+ let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ba();
2469
2479
  const C = (S) => xr(S);
2470
- if (C.version = "3.2.4", C.removed = [], !x || !x.document || x.document.nodeType !== Be.document || !x.Element)
2480
+ if (C.version = "3.2.4", C.removed = [], !R || !R.document || R.document.nodeType !== Be.document || !R.Element)
2471
2481
  return C.isSupported = !1, C;
2472
2482
  let {
2473
2483
  document: P
2474
- } = x;
2475
- const R = P, V = R.currentScript, {
2484
+ } = R;
2485
+ const x = P, V = x.currentScript, {
2476
2486
  DocumentFragment: ie,
2477
- HTMLTemplateElement: xe,
2487
+ HTMLTemplateElement: Re,
2478
2488
  Node: _t,
2479
- Element: Rr,
2489
+ Element: Tr,
2480
2490
  NodeFilter: Ve,
2481
- NamedNodeMap: ja = x.NamedNodeMap || x.MozNamedAttrMap,
2482
- HTMLFormElement: Wa,
2483
- DOMParser: Ga,
2491
+ NamedNodeMap: Wa = R.NamedNodeMap || R.MozNamedAttrMap,
2492
+ HTMLFormElement: Ga,
2493
+ DOMParser: qa,
2484
2494
  trustedTypes: st
2485
- } = x, je = Rr.prototype, qa = ze(je, "cloneNode"), Ya = ze(je, "remove"), Za = ze(je, "nextSibling"), Qa = ze(je, "childNodes"), at = ze(je, "parentNode");
2486
- if (typeof xe == "function") {
2495
+ } = R, je = Tr.prototype, Ya = ze(je, "cloneNode"), Za = ze(je, "remove"), Qa = ze(je, "nextSibling"), Ka = ze(je, "childNodes"), at = ze(je, "parentNode");
2496
+ if (typeof Re == "function") {
2487
2497
  const S = P.createElement("template");
2488
2498
  S.content && S.content.ownerDocument && (P = S.content.ownerDocument);
2489
2499
  }
2490
2500
  let Y, We = "";
2491
2501
  const {
2492
2502
  implementation: It,
2493
- createNodeIterator: Ka,
2494
- createDocumentFragment: Xa,
2495
- getElementsByTagName: Ja
2503
+ createNodeIterator: Xa,
2504
+ createDocumentFragment: Ja,
2505
+ getElementsByTagName: en
2496
2506
  } = P, {
2497
- importNode: en
2498
- } = R;
2499
- let Z = Er();
2507
+ importNode: tn
2508
+ } = x;
2509
+ let Z = Rr();
2500
2510
  C.isSupported = typeof r == "function" && typeof at == "function" && It && It.createHTMLDocument !== void 0;
2501
2511
  const {
2502
2512
  MUSTACHE_EXPR: At,
2503
2513
  ERB_EXPR: Mt,
2504
2514
  TMPLIT_EXPR: Ot,
2505
- DATA_ATTR: tn,
2506
- ARIA_ATTR: rn,
2507
- IS_SCRIPT_OR_DATA: sn,
2508
- ATTR_WHITESPACE: Tr,
2509
- CUSTOM_ELEMENT: an
2515
+ DATA_ATTR: rn,
2516
+ ARIA_ATTR: sn,
2517
+ IS_SCRIPT_OR_DATA: an,
2518
+ ATTR_WHITESPACE: Pr,
2519
+ CUSTOM_ELEMENT: nn
2510
2520
  } = kr;
2511
2521
  let {
2512
- IS_ALLOWED_URI: Pr
2522
+ IS_ALLOWED_URI: $r
2513
2523
  } = kr, H = null;
2514
- const $r = E({}, [...vr, ...Rt, ...Tt, ...Pt, ...br]);
2524
+ const _r = k({}, [...br, ...xt, ...Tt, ...Pt, ...yr]);
2515
2525
  let z = null;
2516
- const _r = E({}, [...yr, ...$t, ...Cr, ...rt]);
2517
- let L = Object.seal(u(null, {
2526
+ const Ir = k({}, [...Cr, ...$t, ...Sr, ...rt]);
2527
+ let F = Object.seal(h(null, {
2518
2528
  tagNameCheck: {
2519
2529
  writable: !0,
2520
2530
  configurable: !1,
@@ -2533,45 +2543,45 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2533
2543
  enumerable: !0,
2534
2544
  value: !1
2535
2545
  }
2536
- })), Ge = null, Lt = null, Ir = !0, Ft = !0, Ar = !1, Mr = !0, Re = !1, Dt = !0, ke = !1, Nt = !1, Ht = !1, Te = !1, nt = !1, ot = !1, Or = !0, Lr = !1;
2537
- const nn = "user-content-";
2546
+ })), Ge = null, Ft = null, Ar = !0, Lt = !0, Mr = !1, Or = !0, xe = !1, Dt = !0, Ee = !1, Nt = !1, Ht = !1, Te = !1, nt = !1, ot = !1, Fr = !0, Lr = !1;
2547
+ const on = "user-content-";
2538
2548
  let Ut = !0, qe = !1, Pe = {}, $e = null;
2539
- const Fr = E({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
2540
- let Dr = null;
2541
- const Nr = E({}, ["audio", "video", "img", "source", "image", "track"]);
2549
+ const Dr = k({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
2550
+ let Nr = null;
2551
+ const Hr = k({}, ["audio", "video", "img", "source", "image", "track"]);
2542
2552
  let zt = null;
2543
- const Hr = E({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ct = "http://www.w3.org/1998/Math/MathML", it = "http://www.w3.org/2000/svg", le = "http://www.w3.org/1999/xhtml";
2553
+ const Ur = k({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ct = "http://www.w3.org/1998/Math/MathML", it = "http://www.w3.org/2000/svg", le = "http://www.w3.org/1999/xhtml";
2544
2554
  let _e = le, Bt = !1, Vt = null;
2545
- const on = E({}, [ct, it, le], I);
2546
- let lt = E({}, ["mi", "mo", "mn", "ms", "mtext"]), ut = E({}, ["annotation-xml"]);
2547
- const cn = E({}, ["title", "style", "font", "a", "script"]);
2555
+ const cn = k({}, [ct, it, le], A);
2556
+ let lt = k({}, ["mi", "mo", "mn", "ms", "mtext"]), ut = k({}, ["annotation-xml"]);
2557
+ const ln = k({}, ["title", "style", "font", "a", "script"]);
2548
2558
  let Ye = null;
2549
- const ln = ["application/xhtml+xml", "text/html"], un = "text/html";
2559
+ const un = ["application/xhtml+xml", "text/html"], hn = "text/html";
2550
2560
  let U = null, Ie = null;
2551
- const hn = P.createElement("form"), Ur = function(d) {
2561
+ const dn = P.createElement("form"), zr = function(d) {
2552
2562
  return d instanceof RegExp || d instanceof Function;
2553
2563
  }, jt = function() {
2554
2564
  let d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2555
2565
  if (!(Ie && Ie === d)) {
2556
2566
  if ((!d || typeof d != "object") && (d = {}), d = we(d), Ye = // eslint-disable-next-line unicorn/prefer-includes
2557
- ln.indexOf(d.PARSER_MEDIA_TYPE) === -1 ? un : d.PARSER_MEDIA_TYPE, U = Ye === "application/xhtml+xml" ? I : N, H = ae(d, "ALLOWED_TAGS") ? E({}, d.ALLOWED_TAGS, U) : $r, z = ae(d, "ALLOWED_ATTR") ? E({}, d.ALLOWED_ATTR, U) : _r, Vt = ae(d, "ALLOWED_NAMESPACES") ? E({}, d.ALLOWED_NAMESPACES, I) : on, zt = ae(d, "ADD_URI_SAFE_ATTR") ? E(we(Hr), d.ADD_URI_SAFE_ATTR, U) : Hr, Dr = ae(d, "ADD_DATA_URI_TAGS") ? E(we(Nr), d.ADD_DATA_URI_TAGS, U) : Nr, $e = ae(d, "FORBID_CONTENTS") ? E({}, d.FORBID_CONTENTS, U) : Fr, Ge = ae(d, "FORBID_TAGS") ? E({}, d.FORBID_TAGS, U) : {}, Lt = ae(d, "FORBID_ATTR") ? E({}, d.FORBID_ATTR, U) : {}, Pe = ae(d, "USE_PROFILES") ? d.USE_PROFILES : !1, Ir = d.ALLOW_ARIA_ATTR !== !1, Ft = d.ALLOW_DATA_ATTR !== !1, Ar = d.ALLOW_UNKNOWN_PROTOCOLS || !1, Mr = d.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Re = d.SAFE_FOR_TEMPLATES || !1, Dt = d.SAFE_FOR_XML !== !1, ke = d.WHOLE_DOCUMENT || !1, Te = d.RETURN_DOM || !1, nt = d.RETURN_DOM_FRAGMENT || !1, ot = d.RETURN_TRUSTED_TYPE || !1, Ht = d.FORCE_BODY || !1, Or = d.SANITIZE_DOM !== !1, Lr = d.SANITIZE_NAMED_PROPS || !1, Ut = d.KEEP_CONTENT !== !1, qe = d.IN_PLACE || !1, Pr = d.ALLOWED_URI_REGEXP || Sr, _e = d.NAMESPACE || le, lt = d.MATHML_TEXT_INTEGRATION_POINTS || lt, ut = d.HTML_INTEGRATION_POINTS || ut, L = d.CUSTOM_ELEMENT_HANDLING || {}, d.CUSTOM_ELEMENT_HANDLING && Ur(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (L.tagNameCheck = d.CUSTOM_ELEMENT_HANDLING.tagNameCheck), d.CUSTOM_ELEMENT_HANDLING && Ur(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (L.attributeNameCheck = d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), d.CUSTOM_ELEMENT_HANDLING && typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (L.allowCustomizedBuiltInElements = d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Re && (Ft = !1), nt && (Te = !0), Pe && (H = E({}, br), z = [], Pe.html === !0 && (E(H, vr), E(z, yr)), Pe.svg === !0 && (E(H, Rt), E(z, $t), E(z, rt)), Pe.svgFilters === !0 && (E(H, Tt), E(z, $t), E(z, rt)), Pe.mathMl === !0 && (E(H, Pt), E(z, Cr), E(z, rt))), d.ADD_TAGS && (H === $r && (H = we(H)), E(H, d.ADD_TAGS, U)), d.ADD_ATTR && (z === _r && (z = we(z)), E(z, d.ADD_ATTR, U)), d.ADD_URI_SAFE_ATTR && E(zt, d.ADD_URI_SAFE_ATTR, U), d.FORBID_CONTENTS && ($e === Fr && ($e = we($e)), E($e, d.FORBID_CONTENTS, U)), Ut && (H["#text"] = !0), ke && E(H, ["html", "head", "body"]), H.table && (E(H, ["tbody"]), delete Ge.tbody), d.TRUSTED_TYPES_POLICY) {
2567
+ un.indexOf(d.PARSER_MEDIA_TYPE) === -1 ? hn : d.PARSER_MEDIA_TYPE, U = Ye === "application/xhtml+xml" ? A : N, H = ae(d, "ALLOWED_TAGS") ? k({}, d.ALLOWED_TAGS, U) : _r, z = ae(d, "ALLOWED_ATTR") ? k({}, d.ALLOWED_ATTR, U) : Ir, Vt = ae(d, "ALLOWED_NAMESPACES") ? k({}, d.ALLOWED_NAMESPACES, A) : cn, zt = ae(d, "ADD_URI_SAFE_ATTR") ? k(we(Ur), d.ADD_URI_SAFE_ATTR, U) : Ur, Nr = ae(d, "ADD_DATA_URI_TAGS") ? k(we(Hr), d.ADD_DATA_URI_TAGS, U) : Hr, $e = ae(d, "FORBID_CONTENTS") ? k({}, d.FORBID_CONTENTS, U) : Dr, Ge = ae(d, "FORBID_TAGS") ? k({}, d.FORBID_TAGS, U) : {}, Ft = ae(d, "FORBID_ATTR") ? k({}, d.FORBID_ATTR, U) : {}, Pe = ae(d, "USE_PROFILES") ? d.USE_PROFILES : !1, Ar = d.ALLOW_ARIA_ATTR !== !1, Lt = d.ALLOW_DATA_ATTR !== !1, Mr = d.ALLOW_UNKNOWN_PROTOCOLS || !1, Or = d.ALLOW_SELF_CLOSE_IN_ATTR !== !1, xe = d.SAFE_FOR_TEMPLATES || !1, Dt = d.SAFE_FOR_XML !== !1, Ee = d.WHOLE_DOCUMENT || !1, Te = d.RETURN_DOM || !1, nt = d.RETURN_DOM_FRAGMENT || !1, ot = d.RETURN_TRUSTED_TYPE || !1, Ht = d.FORCE_BODY || !1, Fr = d.SANITIZE_DOM !== !1, Lr = d.SANITIZE_NAMED_PROPS || !1, Ut = d.KEEP_CONTENT !== !1, qe = d.IN_PLACE || !1, $r = d.ALLOWED_URI_REGEXP || wr, _e = d.NAMESPACE || le, lt = d.MATHML_TEXT_INTEGRATION_POINTS || lt, ut = d.HTML_INTEGRATION_POINTS || ut, F = d.CUSTOM_ELEMENT_HANDLING || {}, d.CUSTOM_ELEMENT_HANDLING && zr(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (F.tagNameCheck = d.CUSTOM_ELEMENT_HANDLING.tagNameCheck), d.CUSTOM_ELEMENT_HANDLING && zr(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (F.attributeNameCheck = d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), d.CUSTOM_ELEMENT_HANDLING && typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (F.allowCustomizedBuiltInElements = d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), xe && (Lt = !1), nt && (Te = !0), Pe && (H = k({}, yr), z = [], Pe.html === !0 && (k(H, br), k(z, Cr)), Pe.svg === !0 && (k(H, xt), k(z, $t), k(z, rt)), Pe.svgFilters === !0 && (k(H, Tt), k(z, $t), k(z, rt)), Pe.mathMl === !0 && (k(H, Pt), k(z, Sr), k(z, rt))), d.ADD_TAGS && (H === _r && (H = we(H)), k(H, d.ADD_TAGS, U)), d.ADD_ATTR && (z === Ir && (z = we(z)), k(z, d.ADD_ATTR, U)), d.ADD_URI_SAFE_ATTR && k(zt, d.ADD_URI_SAFE_ATTR, U), d.FORBID_CONTENTS && ($e === Dr && ($e = we($e)), k($e, d.FORBID_CONTENTS, U)), Ut && (H["#text"] = !0), Ee && k(H, ["html", "head", "body"]), H.table && (k(H, ["tbody"]), delete Ge.tbody), d.TRUSTED_TYPES_POLICY) {
2558
2568
  if (typeof d.TRUSTED_TYPES_POLICY.createHTML != "function")
2559
2569
  throw Ue('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
2560
2570
  if (typeof d.TRUSTED_TYPES_POLICY.createScriptURL != "function")
2561
2571
  throw Ue('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
2562
2572
  Y = d.TRUSTED_TYPES_POLICY, We = Y.createHTML("");
2563
2573
  } else
2564
- Y === void 0 && (Y = Ba(st, V)), Y !== null && typeof We == "string" && (We = Y.createHTML(""));
2574
+ Y === void 0 && (Y = Va(st, V)), Y !== null && typeof We == "string" && (We = Y.createHTML(""));
2565
2575
  c && c(d), Ie = d;
2566
2576
  }
2567
- }, zr = E({}, [...Rt, ...Tt, ...Ia]), Br = E({}, [...Pt, ...Aa]), dn = function(d) {
2577
+ }, Br = k({}, [...xt, ...Tt, ...Aa]), Vr = k({}, [...Pt, ...Ma]), fn = function(d) {
2568
2578
  let g = at(d);
2569
2579
  (!g || !g.tagName) && (g = {
2570
2580
  namespaceURI: _e,
2571
2581
  tagName: "template"
2572
2582
  });
2573
2583
  const y = N(d.tagName), M = N(g.tagName);
2574
- return Vt[d.namespaceURI] ? d.namespaceURI === it ? g.namespaceURI === le ? y === "svg" : g.namespaceURI === ct ? y === "svg" && (M === "annotation-xml" || lt[M]) : !!zr[y] : d.namespaceURI === ct ? g.namespaceURI === le ? y === "math" : g.namespaceURI === it ? y === "math" && ut[M] : !!Br[y] : d.namespaceURI === le ? g.namespaceURI === it && !ut[M] || g.namespaceURI === ct && !lt[M] ? !1 : !Br[y] && (cn[y] || !zr[y]) : !!(Ye === "application/xhtml+xml" && Vt[d.namespaceURI]) : !1;
2584
+ return Vt[d.namespaceURI] ? d.namespaceURI === it ? g.namespaceURI === le ? y === "svg" : g.namespaceURI === ct ? y === "svg" && (M === "annotation-xml" || lt[M]) : !!Br[y] : d.namespaceURI === ct ? g.namespaceURI === le ? y === "math" : g.namespaceURI === it ? y === "math" && ut[M] : !!Vr[y] : d.namespaceURI === le ? g.namespaceURI === it && !ut[M] || g.namespaceURI === ct && !lt[M] ? !1 : !Vr[y] && (ln[y] || !Br[y]) : !!(Ye === "application/xhtml+xml" && Vt[d.namespaceURI]) : !1;
2575
2585
  }, oe = function(d) {
2576
2586
  T(C.removed, {
2577
2587
  element: d
@@ -2579,7 +2589,7 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2579
2589
  try {
2580
2590
  at(d).removeChild(d);
2581
2591
  } catch {
2582
- Ya(d);
2592
+ Za(d);
2583
2593
  }
2584
2594
  }, ht = function(d, g) {
2585
2595
  try {
@@ -2604,7 +2614,7 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2604
2614
  g.setAttribute(d, "");
2605
2615
  } catch {
2606
2616
  }
2607
- }, Vr = function(d) {
2617
+ }, jr = function(d) {
2608
2618
  let g = null, y = null;
2609
2619
  if (Ht)
2610
2620
  d = "<remove></remove>" + d;
@@ -2616,7 +2626,7 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2616
2626
  const M = Y ? Y.createHTML(d) : d;
2617
2627
  if (_e === le)
2618
2628
  try {
2619
- g = new Ga().parseFromString(M, Ye);
2629
+ g = new qa().parseFromString(M, Ye);
2620
2630
  } catch {
2621
2631
  }
2622
2632
  if (!g || !g.documentElement) {
@@ -2627,9 +2637,9 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2627
2637
  }
2628
2638
  }
2629
2639
  const j = g.body || g.documentElement;
2630
- return d && y && j.insertBefore(P.createTextNode(y), j.childNodes[0] || null), _e === le ? Ja.call(g, ke ? "html" : "body")[0] : ke ? g.documentElement : j;
2631
- }, jr = function(d) {
2632
- return Ka.call(
2640
+ return d && y && j.insertBefore(P.createTextNode(y), j.childNodes[0] || null), _e === le ? en.call(g, Ee ? "html" : "body")[0] : Ee ? g.documentElement : j;
2641
+ }, Wr = function(d) {
2642
+ return Xa.call(
2633
2643
  d.ownerDocument || d,
2634
2644
  d,
2635
2645
  // eslint-disable-next-line no-bitwise
@@ -2637,8 +2647,8 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2637
2647
  null
2638
2648
  );
2639
2649
  }, Wt = function(d) {
2640
- return d instanceof Wa && (typeof d.nodeName != "string" || typeof d.textContent != "string" || typeof d.removeChild != "function" || !(d.attributes instanceof ja) || typeof d.removeAttribute != "function" || typeof d.setAttribute != "function" || typeof d.namespaceURI != "string" || typeof d.insertBefore != "function" || typeof d.hasChildNodes != "function");
2641
- }, Wr = function(d) {
2650
+ return d instanceof Ga && (typeof d.nodeName != "string" || typeof d.textContent != "string" || typeof d.removeChild != "function" || !(d.attributes instanceof Wa) || typeof d.removeAttribute != "function" || typeof d.setAttribute != "function" || typeof d.namespaceURI != "string" || typeof d.insertBefore != "function" || typeof d.hasChildNodes != "function");
2651
+ }, Gr = function(d) {
2642
2652
  return typeof _t == "function" && d instanceof _t;
2643
2653
  };
2644
2654
  function ue(S, d, g) {
@@ -2646,7 +2656,7 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2646
2656
  y.call(C, d, g, Ie);
2647
2657
  });
2648
2658
  }
2649
- const Gr = function(d) {
2659
+ const qr = function(d) {
2650
2660
  let g = null;
2651
2661
  if (ue(Z.beforeSanitizeElements, d, null), Wt(d))
2652
2662
  return oe(d), !0;
@@ -2654,46 +2664,46 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2654
2664
  if (ue(Z.uponSanitizeElement, d, {
2655
2665
  tagName: y,
2656
2666
  allowedTags: H
2657
- }), d.hasChildNodes() && !Wr(d.firstElementChild) && G(/<[/\w]/g, d.innerHTML) && G(/<[/\w]/g, d.textContent) || d.nodeType === Be.progressingInstruction || Dt && d.nodeType === Be.comment && G(/<[/\w]/g, d.data))
2667
+ }), d.hasChildNodes() && !Gr(d.firstElementChild) && G(/<[/\w]/g, d.innerHTML) && G(/<[/\w]/g, d.textContent) || d.nodeType === Be.progressingInstruction || Dt && d.nodeType === Be.comment && G(/<[/\w]/g, d.data))
2658
2668
  return oe(d), !0;
2659
2669
  if (!H[y] || Ge[y]) {
2660
- if (!Ge[y] && Yr(y) && (L.tagNameCheck instanceof RegExp && G(L.tagNameCheck, y) || L.tagNameCheck instanceof Function && L.tagNameCheck(y)))
2670
+ if (!Ge[y] && Zr(y) && (F.tagNameCheck instanceof RegExp && G(F.tagNameCheck, y) || F.tagNameCheck instanceof Function && F.tagNameCheck(y)))
2661
2671
  return !1;
2662
2672
  if (Ut && !$e[y]) {
2663
- const M = at(d) || d.parentNode, j = Qa(d) || d.childNodes;
2673
+ const M = at(d) || d.parentNode, j = Ka(d) || d.childNodes;
2664
2674
  if (j && M) {
2665
2675
  const B = j.length;
2666
2676
  for (let J = B - 1; J >= 0; --J) {
2667
- const ce = qa(j[J], !0);
2668
- ce.__removalCount = (d.__removalCount || 0) + 1, M.insertBefore(ce, Za(d));
2677
+ const ce = Ya(j[J], !0);
2678
+ ce.__removalCount = (d.__removalCount || 0) + 1, M.insertBefore(ce, Qa(d));
2669
2679
  }
2670
2680
  }
2671
2681
  }
2672
2682
  return oe(d), !0;
2673
2683
  }
2674
- return d instanceof Rr && !dn(d) || (y === "noscript" || y === "noembed" || y === "noframes") && G(/<\/no(script|embed|frames)/i, d.innerHTML) ? (oe(d), !0) : (Re && d.nodeType === Be.text && (g = d.textContent, m([At, Mt, Ot], (M) => {
2684
+ return d instanceof Tr && !fn(d) || (y === "noscript" || y === "noembed" || y === "noframes") && G(/<\/no(script|embed|frames)/i, d.innerHTML) ? (oe(d), !0) : (xe && d.nodeType === Be.text && (g = d.textContent, m([At, Mt, Ot], (M) => {
2675
2685
  g = He(g, M, " ");
2676
2686
  }), d.textContent !== g && (T(C.removed, {
2677
2687
  element: d.cloneNode()
2678
2688
  }), d.textContent = g)), ue(Z.afterSanitizeElements, d, null), !1);
2679
- }, qr = function(d, g, y) {
2680
- if (Or && (g === "id" || g === "name") && (y in P || y in hn))
2689
+ }, Yr = function(d, g, y) {
2690
+ if (Fr && (g === "id" || g === "name") && (y in P || y in dn))
2681
2691
  return !1;
2682
- if (!(Ft && !Lt[g] && G(tn, g))) {
2683
- if (!(Ir && G(rn, g))) {
2684
- if (!z[g] || Lt[g]) {
2692
+ if (!(Lt && !Ft[g] && G(rn, g))) {
2693
+ if (!(Ar && G(sn, g))) {
2694
+ if (!z[g] || Ft[g]) {
2685
2695
  if (
2686
2696
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
2687
2697
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
2688
2698
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
2689
- !(Yr(d) && (L.tagNameCheck instanceof RegExp && G(L.tagNameCheck, d) || L.tagNameCheck instanceof Function && L.tagNameCheck(d)) && (L.attributeNameCheck instanceof RegExp && G(L.attributeNameCheck, g) || L.attributeNameCheck instanceof Function && L.attributeNameCheck(g)) || // Alternative, second condition checks if it's an `is`-attribute, AND
2699
+ !(Zr(d) && (F.tagNameCheck instanceof RegExp && G(F.tagNameCheck, d) || F.tagNameCheck instanceof Function && F.tagNameCheck(d)) && (F.attributeNameCheck instanceof RegExp && G(F.attributeNameCheck, g) || F.attributeNameCheck instanceof Function && F.attributeNameCheck(g)) || // Alternative, second condition checks if it's an `is`-attribute, AND
2690
2700
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
2691
- g === "is" && L.allowCustomizedBuiltInElements && (L.tagNameCheck instanceof RegExp && G(L.tagNameCheck, y) || L.tagNameCheck instanceof Function && L.tagNameCheck(y)))
2701
+ g === "is" && F.allowCustomizedBuiltInElements && (F.tagNameCheck instanceof RegExp && G(F.tagNameCheck, y) || F.tagNameCheck instanceof Function && F.tagNameCheck(y)))
2692
2702
  ) return !1;
2693
2703
  } else if (!zt[g]) {
2694
- if (!G(Pr, He(y, Tr, ""))) {
2695
- if (!((g === "src" || g === "xlink:href" || g === "href") && d !== "script" && Ta(y, "data:") === 0 && Dr[d])) {
2696
- if (!(Ar && !G(sn, He(y, Tr, "")))) {
2704
+ if (!G($r, He(y, Pr, ""))) {
2705
+ if (!((g === "src" || g === "xlink:href" || g === "href") && d !== "script" && Pa(y, "data:") === 0 && Nr[d])) {
2706
+ if (!(Mr && !G(an, He(y, Pr, "")))) {
2697
2707
  if (y)
2698
2708
  return !1;
2699
2709
  }
@@ -2703,9 +2713,9 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2703
2713
  }
2704
2714
  }
2705
2715
  return !0;
2706
- }, Yr = function(d) {
2707
- return d !== "annotation-xml" && Ne(d, an);
2708
2716
  }, Zr = function(d) {
2717
+ return d !== "annotation-xml" && Ne(d, nn);
2718
+ }, Qr = function(d) {
2709
2719
  ue(Z.beforeSanitizeAttributes, d, null);
2710
2720
  const {
2711
2721
  attributes: g
@@ -2726,24 +2736,24 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2726
2736
  namespaceURI: J,
2727
2737
  value: ce
2728
2738
  } = j, Ze = U(B);
2729
- let Q = B === "value" ? ce : Pa(ce);
2730
- if (y.attrName = Ze, y.attrValue = Q, y.keepAttr = !0, y.forceKeepAttr = void 0, ue(Z.uponSanitizeAttribute, d, y), Q = y.attrValue, Lr && (Ze === "id" || Ze === "name") && (ht(B, d), Q = nn + Q), Dt && G(/((--!?|])>)|<\/(style|title)/i, Q)) {
2739
+ let Q = B === "value" ? ce : $a(ce);
2740
+ if (y.attrName = Ze, y.attrValue = Q, y.keepAttr = !0, y.forceKeepAttr = void 0, ue(Z.uponSanitizeAttribute, d, y), Q = y.attrValue, Lr && (Ze === "id" || Ze === "name") && (ht(B, d), Q = on + Q), Dt && G(/((--!?|])>)|<\/(style|title)/i, Q)) {
2731
2741
  ht(B, d);
2732
2742
  continue;
2733
2743
  }
2734
2744
  if (y.forceKeepAttr || (ht(B, d), !y.keepAttr))
2735
2745
  continue;
2736
- if (!Mr && G(/\/>/i, Q)) {
2746
+ if (!Or && G(/\/>/i, Q)) {
2737
2747
  ht(B, d);
2738
2748
  continue;
2739
2749
  }
2740
- Re && m([At, Mt, Ot], (Kr) => {
2741
- Q = He(Q, Kr, " ");
2750
+ xe && m([At, Mt, Ot], (Xr) => {
2751
+ Q = He(Q, Xr, " ");
2742
2752
  });
2743
- const Qr = U(d.nodeName);
2744
- if (qr(Qr, Ze, Q)) {
2753
+ const Kr = U(d.nodeName);
2754
+ if (Yr(Kr, Ze, Q)) {
2745
2755
  if (Y && typeof st == "object" && typeof st.getAttributeType == "function" && !J)
2746
- switch (st.getAttributeType(Qr, Ze)) {
2756
+ switch (st.getAttributeType(Kr, Ze)) {
2747
2757
  case "TrustedHTML": {
2748
2758
  Q = Y.createHTML(Q);
2749
2759
  break;
@@ -2760,16 +2770,16 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2760
2770
  }
2761
2771
  }
2762
2772
  ue(Z.afterSanitizeAttributes, d, null);
2763
- }, fn = function S(d) {
2773
+ }, pn = function S(d) {
2764
2774
  let g = null;
2765
- const y = jr(d);
2775
+ const y = Wr(d);
2766
2776
  for (ue(Z.beforeSanitizeShadowDOM, d, null); g = y.nextNode(); )
2767
- ue(Z.uponSanitizeShadowNode, g, null), Gr(g), Zr(g), g.content instanceof ie && S(g.content);
2777
+ ue(Z.uponSanitizeShadowNode, g, null), qr(g), Qr(g), g.content instanceof ie && S(g.content);
2768
2778
  ue(Z.afterSanitizeShadowDOM, d, null);
2769
2779
  };
2770
2780
  return C.sanitize = function(S) {
2771
2781
  let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, g = null, y = null, M = null, j = null;
2772
- if (Bt = !S, Bt && (S = "<!-->"), typeof S != "string" && !Wr(S))
2782
+ if (Bt = !S, Bt && (S = "<!-->"), typeof S != "string" && !Gr(S))
2773
2783
  if (typeof S.toString == "function") {
2774
2784
  if (S = S.toString(), typeof S != "string")
2775
2785
  throw Ue("dirty is not a string, aborting");
@@ -2784,31 +2794,31 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2784
2794
  throw Ue("root node is forbidden and cannot be sanitized in-place");
2785
2795
  }
2786
2796
  } else if (S instanceof _t)
2787
- g = Vr("<!---->"), y = g.ownerDocument.importNode(S, !0), y.nodeType === Be.element && y.nodeName === "BODY" || y.nodeName === "HTML" ? g = y : g.appendChild(y);
2797
+ g = jr("<!---->"), y = g.ownerDocument.importNode(S, !0), y.nodeType === Be.element && y.nodeName === "BODY" || y.nodeName === "HTML" ? g = y : g.appendChild(y);
2788
2798
  else {
2789
- if (!Te && !Re && !ke && // eslint-disable-next-line unicorn/prefer-includes
2799
+ if (!Te && !xe && !Ee && // eslint-disable-next-line unicorn/prefer-includes
2790
2800
  S.indexOf("<") === -1)
2791
2801
  return Y && ot ? Y.createHTML(S) : S;
2792
- if (g = Vr(S), !g)
2802
+ if (g = jr(S), !g)
2793
2803
  return Te ? null : ot ? We : "";
2794
2804
  }
2795
2805
  g && Ht && oe(g.firstChild);
2796
- const B = jr(qe ? S : g);
2806
+ const B = Wr(qe ? S : g);
2797
2807
  for (; M = B.nextNode(); )
2798
- Gr(M), Zr(M), M.content instanceof ie && fn(M.content);
2808
+ qr(M), Qr(M), M.content instanceof ie && pn(M.content);
2799
2809
  if (qe)
2800
2810
  return S;
2801
2811
  if (Te) {
2802
2812
  if (nt)
2803
- for (j = Xa.call(g.ownerDocument); g.firstChild; )
2813
+ for (j = Ja.call(g.ownerDocument); g.firstChild; )
2804
2814
  j.appendChild(g.firstChild);
2805
2815
  else
2806
2816
  j = g;
2807
- return (z.shadowroot || z.shadowrootmode) && (j = en.call(R, j, !0)), j;
2817
+ return (z.shadowroot || z.shadowrootmode) && (j = tn.call(x, j, !0)), j;
2808
2818
  }
2809
- let J = ke ? g.outerHTML : g.innerHTML;
2810
- return ke && H["!doctype"] && g.ownerDocument && g.ownerDocument.doctype && g.ownerDocument.doctype.name && G(wr, g.ownerDocument.doctype.name) && (J = "<!DOCTYPE " + g.ownerDocument.doctype.name + `>
2811
- ` + J), Re && m([At, Mt, Ot], (ce) => {
2819
+ let J = Ee ? g.outerHTML : g.innerHTML;
2820
+ return Ee && H["!doctype"] && g.ownerDocument && g.ownerDocument.doctype && g.ownerDocument.doctype.name && G(Er, g.ownerDocument.doctype.name) && (J = "<!DOCTYPE " + g.ownerDocument.doctype.name + `>
2821
+ ` + J), xe && m([At, Mt, Ot], (ce) => {
2812
2822
  J = He(J, ce, " ");
2813
2823
  }), Y && ot ? Y.createHTML(J) : J;
2814
2824
  }, C.setConfig = function() {
@@ -2819,7 +2829,7 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2819
2829
  }, C.isValidAttribute = function(S, d, g) {
2820
2830
  Ie || jt({});
2821
2831
  const y = U(S), M = U(d);
2822
- return qr(y, M, g);
2832
+ return Yr(y, M, g);
2823
2833
  }, C.addHook = function(S, d) {
2824
2834
  typeof d == "function" && T(Z[S], d);
2825
2835
  }, C.removeHook = function(S, d) {
@@ -2831,26 +2841,26 @@ var tc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2831
2841
  }, C.removeHooks = function(S) {
2832
2842
  Z[S] = [];
2833
2843
  }, C.removeAllHooks = function() {
2834
- Z = Er();
2844
+ Z = Rr();
2835
2845
  }, C;
2836
2846
  }
2837
- var Va = xr();
2838
- return Va;
2847
+ var ja = xr();
2848
+ return ja;
2839
2849
  });
2840
- })(Ks);
2841
- const rc = Ks.exports, tt = (e, ...t) => {
2850
+ })(Xs);
2851
+ const sc = Xs.exports, tt = (e, ...t) => {
2842
2852
  let r = e[0];
2843
2853
  for (let s = 0; s < t.length; s++)
2844
- r += rc.sanitize(t[s] ? String(t[s]) : "") + e[s + 1];
2854
+ r += sc.sanitize(t[s] ? String(t[s]) : "") + e[s + 1];
2845
2855
  return r || "";
2846
- }, sc = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
2856
+ }, ac = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
2847
2857
  let X = (e = 21) => {
2848
2858
  let t = "", r = crypto.getRandomValues(new Uint8Array(e |= 0));
2849
2859
  for (; e--; )
2850
- t += sc[r[e] & 63];
2860
+ t += ac[r[e] & 63];
2851
2861
  return t;
2852
2862
  };
2853
- const ac = /* @__PURE__ */ D(class extends F {
2863
+ const nc = /* @__PURE__ */ D(class extends L {
2854
2864
  constructor() {
2855
2865
  super();
2856
2866
  f(this, "adSource", "Custom");
@@ -2895,7 +2905,7 @@ const ac = /* @__PURE__ */ D(class extends F {
2895
2905
  if (!r.admAd)
2896
2906
  return;
2897
2907
  let s = "<p>Ad Marketplace Ad Placeholder</p>";
2898
- return (o = (a = this.core) == null ? void 0 : a.config) != null && o.admAdTemplate && (s = (c = (n = this.core) == null ? void 0 : n.config) == null ? void 0 : c.admAdTemplate(r.admAd, { html: tt })), h("div", { class: "searchcraft-ad searchcraft-adm-ad", "data-searchcraft-ad-container-id": this.adContainerId, id: `searchcraft-adm-ad-${this.adContainerId}`, innerHTML: s });
2908
+ return (o = (a = this.core) == null ? void 0 : a.config) != null && o.admAdTemplate && (s = (c = (n = this.core) == null ? void 0 : n.config) == null ? void 0 : c.admAdTemplate(r.admAd, { html: tt })), u("div", { class: "searchcraft-ad searchcraft-adm-ad", "data-searchcraft-ad-container-id": this.adContainerId, id: `searchcraft-adm-ad-${this.adContainerId}`, innerHTML: s });
2899
2909
  }
2900
2910
  renderCustomAd() {
2901
2911
  var o, n;
@@ -2904,12 +2914,12 @@ const ac = /* @__PURE__ */ D(class extends F {
2904
2914
  return r && (a = r({
2905
2915
  searchTerm: this.searchTerm || "",
2906
2916
  adContainerId: this.adContainerId
2907
- }, { html: tt })), h("div", { class: "searchcraft-ad searchcraft-custom-ad", id: s, "data-searchcraft-ad-container-id": this.adContainerId, innerHTML: a });
2917
+ }, { html: tt })), u("div", { class: "searchcraft-ad searchcraft-custom-ad", id: s, "data-searchcraft-ad-container-id": this.adContainerId, innerHTML: a });
2908
2918
  }
2909
2919
  renderNativoAd() {
2910
2920
  var s;
2911
2921
  const r = ((s = this.core) == null ? void 0 : s.config.nativoAdClassName) || "ntv-item";
2912
- return h("div", { id: `searchcraft-native-ad-${this.adContainerId}`, class: ee("searchcraft-ad", r), "data-searchcraft-ad-container-id": this.adContainerId });
2922
+ return u("div", { id: `searchcraft-native-ad-${this.adContainerId}`, class: ee("searchcraft-ad", r), "data-searchcraft-ad-container-id": this.adContainerId });
2913
2923
  }
2914
2924
  render() {
2915
2925
  var r, s;
@@ -2940,18 +2950,18 @@ const ac = /* @__PURE__ */ D(class extends F {
2940
2950
  searchTerm: [32],
2941
2951
  isSearchInProgress: [32]
2942
2952
  }]);
2943
- function kt() {
2953
+ function Et() {
2944
2954
  if (typeof customElements > "u")
2945
2955
  return;
2946
2956
  ["searchcraft-ad"].forEach((t) => {
2947
2957
  switch (t) {
2948
2958
  case "searchcraft-ad":
2949
- customElements.get(t) || customElements.define(t, ac);
2959
+ customElements.get(t) || customElements.define(t, nc);
2950
2960
  break;
2951
2961
  }
2952
2962
  });
2953
2963
  }
2954
- const nc = kt, oc = /* @__PURE__ */ D(class extends F {
2964
+ const oc = Et, cc = /* @__PURE__ */ D(class extends L {
2955
2965
  constructor() {
2956
2966
  super();
2957
2967
  /**
@@ -2992,11 +3002,11 @@ const nc = kt, oc = /* @__PURE__ */ D(class extends F {
2992
3002
  this.__registerHost(), this.buttonClick = ye(this, "buttonClick");
2993
3003
  }
2994
3004
  render() {
2995
- return h("button", { key: "e54b4566e0286265bc0c8b6bb4e9ef26108575da", "aria-label": this.label, class: ee("searchcraft-button", {
3005
+ return u("button", { key: "e54b4566e0286265bc0c8b6bb4e9ef26108575da", "aria-label": this.label, class: ee("searchcraft-button", {
2996
3006
  "searchcraft-button-primary": this.hierarchy === "primary",
2997
3007
  "searchcraft-button-tertiary": this.hierarchy === "tertiary",
2998
3008
  "searchcraft-button-disabled": this.disabled
2999
- }), disabled: this.disabled, onClick: this.handleButtonClick, type: this.type }, this.iconOnly ? this.icon : h(so, null, this.iconPosition === "left" && this.icon, h("span", null, this.label), this.iconPosition === "right" && this.icon));
3009
+ }), disabled: this.disabled, onClick: this.handleButtonClick, type: this.type }, this.iconOnly ? this.icon : u(ao, null, this.iconPosition === "left" && this.icon, u("span", null, this.label), this.iconPosition === "right" && this.icon));
3000
3010
  }
3001
3011
  }, [0, "searchcraft-button", {
3002
3012
  hierarchy: [1],
@@ -3007,65 +3017,65 @@ const nc = kt, oc = /* @__PURE__ */ D(class extends F {
3007
3017
  label: [1],
3008
3018
  type: [1]
3009
3019
  }]);
3010
- function Et() {
3020
+ function kt() {
3011
3021
  if (typeof customElements > "u")
3012
3022
  return;
3013
3023
  ["searchcraft-button"].forEach((t) => {
3014
3024
  switch (t) {
3015
3025
  case "searchcraft-button":
3016
- customElements.get(t) || customElements.define(t, oc);
3026
+ customElements.get(t) || customElements.define(t, cc);
3017
3027
  break;
3018
3028
  }
3019
3029
  });
3020
3030
  }
3021
- const cc = Et, ic = /* @__PURE__ */ D(class extends F {
3031
+ const ic = kt, lc = /* @__PURE__ */ D(class extends L {
3022
3032
  constructor() {
3023
3033
  super(), this.__registerHost();
3024
3034
  }
3025
3035
  render() {
3026
- return h("div", { key: "d42f7abf8dfb2620622b8012d868d32f04b2f354", class: "searchcraft-error-message" }, h("slot", { key: "75a7811576ea8afe80a7ae739f5cf2d411f976df" }, "Search term is required."));
3036
+ return u("div", { key: "d42f7abf8dfb2620622b8012d868d32f04b2f354", class: "searchcraft-error-message" }, u("slot", { key: "75a7811576ea8afe80a7ae739f5cf2d411f976df" }, "Search term is required."));
3027
3037
  }
3028
3038
  }, [4, "searchcraft-error-message"]);
3029
- function xt() {
3039
+ function Rt() {
3030
3040
  if (typeof customElements > "u")
3031
3041
  return;
3032
3042
  ["searchcraft-error-message"].forEach((t) => {
3033
3043
  switch (t) {
3034
3044
  case "searchcraft-error-message":
3035
- customElements.get(t) || customElements.define(t, ic);
3045
+ customElements.get(t) || customElements.define(t, lc);
3036
3046
  break;
3037
3047
  }
3038
3048
  });
3039
3049
  }
3040
- const lc = xt, uc = (e, t) => {
3050
+ const uc = Rt, Js = (e, t) => {
3041
3051
  let r = e;
3042
3052
  for (const s of t)
3043
3053
  r = r == null ? void 0 : r.children[s];
3044
3054
  return r;
3045
- }, Xs = (e, t) => {
3055
+ }, mr = (e, t) => {
3046
3056
  const r = { ...e };
3047
3057
  for (const s in t)
3048
- t.hasOwnProperty(s) && (t[s] instanceof Object && e[s] instanceof Object ? r[s] = Xs(e[s], t[s]) : r[s] = t[s]);
3058
+ t.hasOwnProperty(s) && (t[s] instanceof Object && e[s] instanceof Object ? r[s] = mr(e[s], t[s]) : r[s] = t[s]);
3049
3059
  return r;
3050
3060
  };
3051
3061
  function hc(e) {
3052
3062
  return e.filter((t, r, s) => !s.some((a, o) => o !== r && a.includes(t)));
3053
3063
  }
3054
- const Yt = (e, t) => {
3064
+ const Cs = (e, t) => {
3055
3065
  const r = structuredClone(e), s = (a, o) => {
3056
- var l;
3057
- const n = structuredClone(a), c = uc(t, o);
3066
+ var i;
3067
+ const n = structuredClone(a), c = Js(t, o);
3058
3068
  if (!c)
3059
3069
  return n;
3060
- for (const u of Object.keys(a.children))
3061
- c.children[u] ? n.children[u] = {
3062
- ...Xs(a.children[u], c.children[u]),
3063
- count: ((l = n.children[u]) == null ? void 0 : l.count) || 0
3064
- } : n.children[u] && (n.children[u] = s(n.children[u], [...o, u]));
3070
+ for (const h of Object.keys(a.children))
3071
+ c.children[h] ? n.children[h] = {
3072
+ ...mr(a.children[h], c.children[h]),
3073
+ count: ((i = n.children[h]) == null ? void 0 : i.count) || 0
3074
+ } : n.children[h] && (n.children[h] = s(n.children[h], [...o, h]));
3065
3075
  return n;
3066
3076
  };
3067
3077
  return s(r, []);
3068
- }, ys = (e) => {
3078
+ }, Yt = (e) => {
3069
3079
  const t = {
3070
3080
  path: "/",
3071
3081
  count: 0,
@@ -3079,18 +3089,18 @@ const Yt = (e, t) => {
3079
3089
  for (const { path: a, count: o } of r) {
3080
3090
  const n = a.split("/").filter(Boolean);
3081
3091
  let c = t;
3082
- for (const l of n) {
3083
- const u = c.path === "/" ? `/${l}` : `${c.path}/${l}`;
3084
- c.children[l] || (c.children[l] = {
3085
- path: u,
3092
+ for (const i of n) {
3093
+ const h = c.path === "/" ? `/${i}` : `${c.path}/${i}`;
3094
+ c.children[i] || (c.children[i] = {
3095
+ path: h,
3086
3096
  count: o,
3087
3097
  children: {}
3088
- }), c = c.children[l];
3098
+ }), c = c.children[i];
3089
3099
  }
3090
3100
  c.count = o;
3091
3101
  }
3092
3102
  return t;
3093
- }, dc = /* @__PURE__ */ D(class extends F {
3103
+ }, dc = /* @__PURE__ */ D(class extends L {
3094
3104
  constructor() {
3095
3105
  super();
3096
3106
  /**
@@ -3102,17 +3112,35 @@ const Yt = (e, t) => {
3102
3112
  */
3103
3113
  f(this, "facetSelectionUpdated");
3104
3114
  /**
3105
- * A Tree Representing all of the facets we know about to be rendered.
3115
+ * The currently selected facet paths.
3106
3116
  */
3107
- f(this, "facetTree", {
3117
+ f(this, "selectedPaths", {});
3118
+ /**
3119
+ * A Tree representing all of the facets collected from search responses.
3120
+ */
3121
+ f(this, "facetTreeCollectedFromSearchResponse", {
3108
3122
  path: "/",
3109
3123
  count: 0,
3110
3124
  children: {}
3111
3125
  });
3112
3126
  /**
3113
- * The currently selected facet paths.
3127
+ * A Tree representing the facet paths that are selected, but were not included
3128
+ * in any search response.
3114
3129
  */
3115
- f(this, "selectedPaths", {});
3130
+ f(this, "facetTreeFromFacetPathsNotInSearchResponse", {
3131
+ path: "/",
3132
+ count: 0,
3133
+ children: {}
3134
+ });
3135
+ /**
3136
+ * The facet tree that ultimately gets rendered.
3137
+ * This is a mergin of the facetTreeCollectedFromSearchResponse and the facetTreeFromFacetPathsNotInSearchResponse tree
3138
+ */
3139
+ f(this, "renderedFacetTree", {
3140
+ path: "/",
3141
+ count: 0,
3142
+ children: {}
3143
+ });
3116
3144
  // Internal vars used to track when to perform various facet actions.
3117
3145
  f(this, "lastTimeTaken");
3118
3146
  f(this, "lastSearchTerm");
@@ -3124,53 +3152,77 @@ const Yt = (e, t) => {
3124
3152
  f(this, "formatFacetName", (r) => `${r.replace(/^\//, "").replace(/-/g, " ").replace(/\b\w/g, (a) => a.toUpperCase())}`);
3125
3153
  this.__registerHost(), this.facetSelectionUpdated = ye(this, "facetSelectionUpdated");
3126
3154
  }
3155
+ get areAnyFacetPathsSelected() {
3156
+ return Object.keys(this.selectedPaths).some((r) => this.selectedPaths[r]);
3157
+ }
3127
3158
  handleIncomingSearchResponse(r, s) {
3128
- var c, l;
3129
- const a = (c = r.searchResponseFacetPrime) == null ? void 0 : c.find((u) => this.fieldName === Object.keys(u)[0]), o = a == null ? void 0 : a[this.fieldName], n = ys({
3159
+ var i, h, l;
3160
+ const a = (i = r.searchResponseFacetPrime) == null ? void 0 : i.find((p) => this.fieldName === Object.keys(p)[0]), o = a == null ? void 0 : a[this.fieldName], n = Yt({
3130
3161
  path: "/",
3131
3162
  count: 0,
3132
3163
  children: o || []
3133
3164
  });
3134
3165
  switch (s) {
3135
3166
  case "SEARCH_TERM_EMPTY":
3136
- this.facetTree = {
3167
+ this.facetTreeCollectedFromSearchResponse = {
3137
3168
  path: "/",
3138
3169
  count: 0,
3139
3170
  children: {}
3140
3171
  };
3141
3172
  break;
3142
3173
  case "NEW_SEARCH_TERM":
3143
- this.facetTree = n;
3174
+ this.facetTreeCollectedFromSearchResponse = n;
3144
3175
  break;
3176
+ case "NEW_SEARCH_TERM_WHILE_FACETS_ACTIVE":
3145
3177
  case "EXACT_MATCH_UPDATE":
3146
3178
  case "RANGE_VALUE_UPDATE": {
3147
3179
  if (r.supplementalFacetPrime) {
3148
- const u = (l = r.supplementalFacetPrime) == null ? void 0 : l.find((m) => this.fieldName === Object.keys(m)[0]), i = u == null ? void 0 : u[this.fieldName], p = ys({
3180
+ const p = (h = r.supplementalFacetPrime) == null ? void 0 : h.find((b) => this.fieldName === Object.keys(b)[0]), m = p == null ? void 0 : p[this.fieldName], v = Yt({
3149
3181
  path: "/",
3150
3182
  count: 0,
3151
- children: i || []
3183
+ children: m || []
3152
3184
  });
3153
- this.facetTree = Yt(p, n);
3185
+ this.facetTreeCollectedFromSearchResponse = Cs(v, n);
3154
3186
  } else
3155
- this.facetTree = n;
3187
+ this.facetTreeCollectedFromSearchResponse = n;
3156
3188
  break;
3157
3189
  }
3158
3190
  case "FACET_UPDATE":
3159
3191
  case "SORT_ORDER_UPDATE":
3160
- this.facetTree = Yt(this.facetTree, n);
3192
+ this.facetTreeCollectedFromSearchResponse = Cs(this.facetTreeCollectedFromSearchResponse, n);
3161
3193
  break;
3162
3194
  default:
3163
- this.facetTree = Yt(this.facetTree, n);
3195
+ return;
3196
+ }
3197
+ this.facetTreeFromFacetPathsNotInSearchResponse = {
3198
+ path: "/",
3199
+ count: 0,
3200
+ children: {}
3201
+ };
3202
+ const c = {
3203
+ path: "/",
3204
+ count: 0,
3205
+ children: []
3206
+ };
3207
+ for (const p of Object.keys(this.selectedPaths).filter((m) => this.selectedPaths[m])) {
3208
+ const m = p.startsWith("/") ? p.substring(1).split("/") : p.split("/"), v = !!Js(this.facetTreeCollectedFromSearchResponse, m), b = m.at(-1);
3209
+ !v && b && ((l = c.children) == null || l.push({
3210
+ children: [],
3211
+ count: 0,
3212
+ path: p
3213
+ }));
3164
3214
  }
3215
+ this.facetTreeFromFacetPathsNotInSearchResponse = Yt(c), this.renderedFacetTree = mr(this.facetTreeFromFacetPathsNotInSearchResponse, this.facetTreeCollectedFromSearchResponse);
3165
3216
  }
3166
3217
  handleStateUpdate(r) {
3167
- if (this.lastSearchTerm !== r.searchTerm && r.searchTerm.trim() === "")
3168
- this.handleIncomingSearchResponse(r, "SEARCH_TERM_EMPTY");
3169
- else if (this.lastTimeTaken !== r.searchResponseTimeTaken) {
3170
- let s = "UNKNOWN";
3171
- this.lastSearchTerm !== r.searchTerm ? s = "NEW_SEARCH_TERM" : this.lastRangeValues !== JSON.stringify(r.rangeValueForIndexFields) ? s = "RANGE_VALUE_UPDATE" : this.lastFacetValues !== JSON.stringify(r.facetPathsForIndexFields) ? s = "FACET_UPDATE" : this.lastSortType !== r.sortType ? s = "SORT_ORDER_UPDATE" : this.lastSearchMode !== r.searchMode && (s = "EXACT_MATCH_UPDATE"), this.handleIncomingSearchResponse(r, s), this.lastSearchTerm = r.searchTerm, this.lastRangeValues = JSON.stringify(r.rangeValueForIndexFields), this.lastFacetValues = JSON.stringify(r.facetPathsForIndexFields), this.lastSortType = r.sortType, this.lastSearchMode = r.searchMode;
3218
+ const s = { ...r };
3219
+ if (s.searchTerm.trim() === "")
3220
+ this.handleIncomingSearchResponse(s, "SEARCH_TERM_EMPTY"), this.lastSearchTerm = "";
3221
+ else if (this.lastTimeTaken !== s.searchResponseTimeTaken && s.searchClientRequest && typeof s.searchClientRequest == "object") {
3222
+ const a = s.searchClientRequest;
3223
+ let o = "UNKNOWN";
3224
+ this.lastSearchTerm !== a.searchTerm ? this.areAnyFacetPathsSelected ? o = "NEW_SEARCH_TERM_WHILE_FACETS_ACTIVE" : o = "NEW_SEARCH_TERM" : this.lastRangeValues !== JSON.stringify(a.rangeValueForIndexFields) ? o = "RANGE_VALUE_UPDATE" : this.lastFacetValues !== JSON.stringify(a.facetPathsForIndexFields) ? o = "FACET_UPDATE" : this.lastSortType !== a.order_by ? o = "SORT_ORDER_UPDATE" : this.lastSearchMode !== a.mode && (o = "EXACT_MATCH_UPDATE"), this.lastRangeValues = JSON.stringify(a.rangeValueForIndexFields), this.lastFacetValues = JSON.stringify(a.facetPathsForIndexFields), this.lastSortType = a.order_by, this.lastSearchMode = a.mode, this.lastSearchTerm = a.searchTerm, this.lastTimeTaken = s.searchResponseTimeTaken, this.handleIncomingSearchResponse(s, o);
3172
3225
  }
3173
- this.lastTimeTaken = r.searchResponseTimeTaken;
3174
3226
  }
3175
3227
  connectedCallback() {
3176
3228
  this.handleStateUpdate($.getState()), this.unsubscribe = $.subscribe((r) => {
@@ -3189,8 +3241,8 @@ const Yt = (e, t) => {
3189
3241
  [r]: !0
3190
3242
  };
3191
3243
  else {
3192
- const c = Object.keys(this.selectedPaths).filter((l) => !l.includes(r));
3193
- this.selectedPaths = c.reduce((l, u) => (l[u] = !0, l), {});
3244
+ const c = Object.keys(this.selectedPaths).filter((i) => !i.includes(r));
3245
+ this.selectedPaths = c.reduce((i, h) => (i[h] = !0, i), {});
3194
3246
  }
3195
3247
  const a = Object.keys(this.selectedPaths).filter((c) => this.selectedPaths[c]), o = hc(a);
3196
3248
  (n = this.facetSelectionUpdated) == null || n.emit({ paths: o });
@@ -3200,9 +3252,9 @@ const Yt = (e, t) => {
3200
3252
  for (const c of Object.keys(this.selectedPaths))
3201
3253
  this.selectedPaths[c] && c.startsWith(s.path) && c.length > s.path.length && (a = !0);
3202
3254
  const o = Object.keys(this.selectedPaths).includes(s.path), n = Object.keys(s.children).length > 0 && (o || a) || r === "@@root";
3203
- return h("div", { class: "searchcraft-facet-list-item" }, r !== "@@root" && h("label", { class: "searchcraft-facet-list-checkbox-label" }, h("div", { class: "searchcraft-facet-list-checkbox-input-wrapper" }, h("input", { class: "searchcraft-facet-list-checkbox-input", checked: this.selectedPaths[s.path], onChange: (c) => {
3255
+ return u("div", { class: "searchcraft-facet-list-item" }, r !== "@@root" && u("label", { class: "searchcraft-facet-list-checkbox-label" }, u("div", { class: "searchcraft-facet-list-checkbox-input-wrapper" }, u("input", { class: "searchcraft-facet-list-checkbox-input", checked: this.selectedPaths[s.path], onChange: (c) => {
3204
3256
  this.handleCheckboxChange(s.path);
3205
- }, type: "checkbox" }), a ? h("div", { class: "searchcraft-facet-list-checkbox-input-dash-icon" }, h("svg", { viewBox: "0 0 14 3", fill: "none" }, h("title", null, "Checkbox dash"), h("line", { x1: "1.5", y1: "1.5", x2: "12.5", y2: "1.5", stroke: "white", "stroke-width": "3", "stroke-linecap": "round" }))) : h("div", { class: "searchcraft-facet-list-checkbox-input-check-icon" }, h("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, h("title", null, "Checkbox check"), h("path", { d: "M13.9999 2L5.74988 10L1.99988 6.36364", stroke: "white", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round" })))), h("span", null, this.formatFacetName(r), " (", s.count, ")")), n && h("div", { class: "searchcraft-facet-list", style: {
3257
+ }, type: "checkbox" }), a ? u("div", { class: "searchcraft-facet-list-checkbox-input-dash-icon" }, u("svg", { viewBox: "0 0 14 3", fill: "none" }, u("title", null, "Checkbox dash"), u("line", { x1: "1.5", y1: "1.5", x2: "12.5", y2: "1.5", stroke: "white", "stroke-width": "3", "stroke-linecap": "round" }))) : u("div", { class: "searchcraft-facet-list-checkbox-input-check-icon" }, u("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none" }, u("title", null, "Checkbox check"), u("path", { d: "M13.9999 2L5.74988 10L1.99988 6.36364", stroke: "white", "stroke-width": "3", "stroke-linecap": "round", "stroke-linejoin": "round" })))), u("span", null, this.formatFacetName(r), " (", s.count, ")")), n && u("div", { class: "searchcraft-facet-list", style: {
3206
3258
  paddingLeft: r !== "@@root" ? "24px" : "0px",
3207
3259
  paddingTop: r !== "@@root" ? "6px" : "0px"
3208
3260
  } }, Object.keys(s.children).map((c) => {
@@ -3211,15 +3263,16 @@ const Yt = (e, t) => {
3211
3263
  })));
3212
3264
  }
3213
3265
  render() {
3214
- if (this.fieldName && !(Object.keys(this.facetTree.children).length === 0 && (this.lastSearchTerm || "").trim().length === 0))
3215
- return Object.keys(this.facetTree.children).length === 0 && (this.lastSearchTerm || "").trim().length > 0 ? h("p", { class: "searchcraft-facet-list-message" }, "No facets are available for this search query.") : h("div", { class: "searchcraft-facet-list" }, this.renderFacet("@@root", this.facetTree));
3266
+ if (this.fieldName && !(Object.keys(this.facetTreeCollectedFromSearchResponse.children).length === 0 && (this.lastSearchTerm || "").trim().length === 0))
3267
+ return Object.keys(this.facetTreeCollectedFromSearchResponse.children).length === 0 && (this.lastSearchTerm || "").trim().length > 0 ? u("p", { class: "searchcraft-facet-list-message" }, "No facets are available for this search query.") : u("div", { class: "searchcraft-facet-list" }, this.renderFacet("@@root", this.renderedFacetTree));
3216
3268
  }
3217
3269
  }, [0, "searchcraft-facet-list", {
3218
3270
  fieldName: [1, "field-name"],
3219
- facetTree: [32],
3220
- selectedPaths: [32]
3271
+ selectedPaths: [32],
3272
+ facetTreeCollectedFromSearchResponse: [32],
3273
+ renderedFacetTree: [32]
3221
3274
  }]);
3222
- function Js() {
3275
+ function ea() {
3223
3276
  if (typeof customElements > "u")
3224
3277
  return;
3225
3278
  ["searchcraft-facet-list"].forEach((t) => {
@@ -3230,7 +3283,7 @@ function Js() {
3230
3283
  }
3231
3284
  });
3232
3285
  }
3233
- const fc = Js;
3286
+ const fc = ea;
3234
3287
  function Qe(e, t) {
3235
3288
  if (e && t)
3236
3289
  return t.fieldNames.map((r) => {
@@ -3249,7 +3302,7 @@ function Qe(e, t) {
3249
3302
  return s;
3250
3303
  }).filter((r) => !!r).join(t.delimiter || " ");
3251
3304
  }
3252
- function ea(e) {
3305
+ function ta(e) {
3253
3306
  return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
3254
3307
  }
3255
3308
  function pc(e, t = "en-US", r = {
@@ -3259,8 +3312,8 @@ function pc(e, t = "en-US", r = {
3259
3312
  }) {
3260
3313
  const s = new Date(e), o = (/* @__PURE__ */ new Date()).getTime() - s.getTime(), n = 30 * 24 * 60 * 60 * 1e3;
3261
3314
  if (o < n) {
3262
- const c = Math.trunc(o / 1e3), l = Math.trunc(c / 60), u = Math.trunc(l / 60), i = Math.trunc(u / 24), p = new Intl.RelativeTimeFormat(t, r);
3263
- return i >= 1 ? p.format(-i, "day") : u >= 1 ? p.format(-u, "hour") : l >= 1 ? p.format(-l, "minute") : p.format(0, "second");
3315
+ const c = Math.trunc(o / 1e3), i = Math.trunc(c / 60), h = Math.trunc(i / 60), l = Math.trunc(h / 24), p = new Intl.RelativeTimeFormat(t, r);
3316
+ return l >= 1 ? p.format(-l, "day") : h >= 1 ? p.format(-h, "hour") : i >= 1 ? p.format(-i, "minute") : p.format(0, "second");
3264
3317
  }
3265
3318
  return new Intl.DateTimeFormat(t, r).format(s);
3266
3319
  }
@@ -3294,7 +3347,7 @@ function mc(e, t, r) {
3294
3347
  throw new Error(`Unsupported unit: ${e}`);
3295
3348
  }
3296
3349
  }
3297
- const Cs = (e) => {
3350
+ const Ss = (e) => {
3298
3351
  if (e >= 11 && e <= 13)
3299
3352
  return `${e}th`;
3300
3353
  switch (e % 10) {
@@ -3316,14 +3369,14 @@ function gc(e, t) {
3316
3369
  case "month":
3317
3370
  return `${r.format(t)} ${t.getFullYear()}`;
3318
3371
  case "day":
3319
- return `${r.format(t)} ${Cs(t.getDate())}, ${t.getFullYear()}`;
3372
+ return `${r.format(t)} ${Ss(t.getDate())}, ${t.getFullYear()}`;
3320
3373
  case "hour": {
3321
3374
  const s = new Intl.DateTimeFormat("en-US", {
3322
3375
  hour: "numeric",
3323
3376
  minute: "2-digit",
3324
3377
  hour12: !0
3325
3378
  });
3326
- return `${r.format(t)} ${Cs(t.getDate())}, ${s.format(t)}`;
3379
+ return `${r.format(t)} ${Ss(t.getDate())}, ${s.format(t)}`;
3327
3380
  }
3328
3381
  default:
3329
3382
  throw new Error(`Unsupported granularity: ${e}`);
@@ -3343,7 +3396,7 @@ function vc(e, t) {
3343
3396
  r ? s = o : a(o);
3344
3397
  };
3345
3398
  }
3346
- const bc = /* @__PURE__ */ D(class extends F {
3399
+ const bc = /* @__PURE__ */ D(class extends L {
3347
3400
  constructor() {
3348
3401
  super();
3349
3402
  /**
@@ -3426,10 +3479,10 @@ const bc = /* @__PURE__ */ D(class extends F {
3426
3479
  }
3427
3480
  render() {
3428
3481
  const r = (this.startValue - this.lowerBound) / (this.upperBound - this.lowerBound) * 100, s = (this.endValue - this.lowerBound) / (this.upperBound - this.lowerBound) * 100, a = this.getLabel(this.startValue), o = this.getLabel(this.endValue);
3429
- return h("div", { key: "3b2e8576d64826f123d40deff3b0df9316649a03", class: "searchcraft-slider" }, h("div", { key: "ecaa546b96855aad4e839c5e34e995da0925e0b6", class: "searchcraft-slider-range" }, h("div", { key: "f37fc0329249857a29f77d9e3739d10f05f6bf62", class: "searchcraft-slider-active-range", style: {
3482
+ return u("div", { key: "3b2e8576d64826f123d40deff3b0df9316649a03", class: "searchcraft-slider" }, u("div", { key: "ecaa546b96855aad4e839c5e34e995da0925e0b6", class: "searchcraft-slider-range" }, u("div", { key: "f37fc0329249857a29f77d9e3739d10f05f6bf62", class: "searchcraft-slider-active-range", style: {
3430
3483
  left: `${r}%`,
3431
3484
  width: `${s - r}%`
3432
- } }), h("input", { key: "7b5e6f3983b7c109ea0a3f2b248c35d0e225400b", class: ee("searchcraft-slider-input", "searchcraft-slider-input-min-handle"), max: this.upperBound, min: this.lowerBound, onInput: this.handleStartValueChange.bind(this), step: this.step, style: { zIndex: this.lastFocusedHandle === "min" ? "2" : "1" }, type: "range", value: this.startValue }), h("input", { key: "b5bb628b73c8b582a31453e73cb3ef38579eeea5", class: ee("searchcraft-slider-input", "searchcraft-slider-input-max-handle"), max: this.upperBound, min: this.lowerBound, onInput: this.handleEndValueChange.bind(this), step: this.step, style: { zIndex: this.lastFocusedHandle === "max" ? "2" : "1" }, type: "range", value: this.endValue })), h("div", { key: "ecb379babd244e3205f30d45628506566fbeff3c", class: "searchcraft-slider-label" }, h("span", { key: "2be886d05c323f7da1059be88c0cb8ede2e1e98b", class: "searchcraft-slider-start-label" }, a), h("span", { key: "bf66fcab3fae565980a4637cb13b14589ffcb5ba", class: "searchcraft-slider-end-label" }, o)));
3485
+ } }), u("input", { key: "7b5e6f3983b7c109ea0a3f2b248c35d0e225400b", class: ee("searchcraft-slider-input", "searchcraft-slider-input-min-handle"), max: this.upperBound, min: this.lowerBound, onInput: this.handleStartValueChange.bind(this), step: this.step, style: { zIndex: this.lastFocusedHandle === "min" ? "2" : "1" }, type: "range", value: this.startValue }), u("input", { key: "b5bb628b73c8b582a31453e73cb3ef38579eeea5", class: ee("searchcraft-slider-input", "searchcraft-slider-input-max-handle"), max: this.upperBound, min: this.lowerBound, onInput: this.handleEndValueChange.bind(this), step: this.step, style: { zIndex: this.lastFocusedHandle === "max" ? "2" : "1" }, type: "range", value: this.endValue })), u("div", { key: "ecb379babd244e3205f30d45628506566fbeff3c", class: "searchcraft-slider-label" }, u("span", { key: "2be886d05c323f7da1059be88c0cb8ede2e1e98b", class: "searchcraft-slider-start-label" }, a), u("span", { key: "bf66fcab3fae565980a4637cb13b14589ffcb5ba", class: "searchcraft-slider-end-label" }, o)));
3433
3486
  }
3434
3487
  }, [0, "searchcraft-slider", {
3435
3488
  max: [2],
@@ -3443,7 +3496,7 @@ const bc = /* @__PURE__ */ D(class extends F {
3443
3496
  startValue: [32],
3444
3497
  lastFocusedHandle: [32]
3445
3498
  }]);
3446
- function ta() {
3499
+ function ra() {
3447
3500
  if (typeof customElements > "u")
3448
3501
  return;
3449
3502
  ["searchcraft-slider"].forEach((t) => {
@@ -3454,7 +3507,7 @@ function ta() {
3454
3507
  }
3455
3508
  });
3456
3509
  }
3457
- const yc = /* @__PURE__ */ D(class extends F {
3510
+ const yc = /* @__PURE__ */ D(class extends L {
3458
3511
  constructor() {
3459
3512
  super();
3460
3513
  /**
@@ -3488,9 +3541,9 @@ const yc = /* @__PURE__ */ D(class extends F {
3488
3541
  (r = this.unsubscribe) == null || r.call(this);
3489
3542
  }
3490
3543
  render() {
3491
- return h("div", { key: "f8a751315daf6bcdc0d47bc4fc802bc4615e565f", class: ee("searchcraft-toggle-button", {
3544
+ return u("div", { key: "f8a751315daf6bcdc0d47bc4fc802bc4615e565f", class: ee("searchcraft-toggle-button", {
3492
3545
  "searchcraft-toggle-button-active": this.isActive
3493
- }) }, h("div", { key: "aaa92d7c1aebe241a163a1fba7cd1f8d3804286d" }, h("p", { key: "068b82b17a99bf55ad17818d0dd4c7e95858317b", class: "searchcraft-toggle-button-label" }, this.label), this.subLabel && h("p", { key: "39e43e3fad6a2ab09d20f37c6d6865cede3701d9", class: "searchcraft-toggle-button-sub-label" }, this.subLabel)), h("button", { key: "5ae352870d4a01c430389e75b967b2eb9d3fa5f7", class: "searchcraft-toggle-button-background", onClick: this.handleToggle, type: "button" }, h("div", { key: "0574ade4e1681ce8e122039c40e761cb68555621", class: "searchcraft-toggle-button-handle" })));
3546
+ }) }, u("div", { key: "aaa92d7c1aebe241a163a1fba7cd1f8d3804286d" }, u("p", { key: "068b82b17a99bf55ad17818d0dd4c7e95858317b", class: "searchcraft-toggle-button-label" }, this.label), this.subLabel && u("p", { key: "39e43e3fad6a2ab09d20f37c6d6865cede3701d9", class: "searchcraft-toggle-button-sub-label" }, this.subLabel)), u("button", { key: "5ae352870d4a01c430389e75b967b2eb9d3fa5f7", class: "searchcraft-toggle-button-background", onClick: this.handleToggle, type: "button" }, u("div", { key: "0574ade4e1681ce8e122039c40e761cb68555621", class: "searchcraft-toggle-button-handle" })));
3494
3547
  }
3495
3548
  }, [0, "searchcraft-toggle-button", {
3496
3549
  label: [1],
@@ -3499,7 +3552,7 @@ const yc = /* @__PURE__ */ D(class extends F {
3499
3552
  unsubscribe: [32],
3500
3553
  lastSearchTerm: [32]
3501
3554
  }]);
3502
- function ra() {
3555
+ function sa() {
3503
3556
  if (typeof customElements > "u")
3504
3557
  return;
3505
3558
  ["searchcraft-toggle-button"].forEach((t) => {
@@ -3510,7 +3563,7 @@ function ra() {
3510
3563
  }
3511
3564
  });
3512
3565
  }
3513
- const sa = /* @__PURE__ */ D(class extends F {
3566
+ const aa = /* @__PURE__ */ D(class extends L {
3514
3567
  constructor() {
3515
3568
  super();
3516
3569
  /**
@@ -3566,35 +3619,35 @@ const sa = /* @__PURE__ */ D(class extends F {
3566
3619
  * Iterate through `items` and render them based on `type`
3567
3620
  */
3568
3621
  render() {
3569
- return h("div", { key: "fb5fce357783f39b0a2846a0bd99994faa5e742d", class: "searchcraft-filter-panel" }, this.items.map((r) => {
3622
+ return u("div", { key: "fb5fce357783f39b0a2846a0bd99994faa5e742d", class: "searchcraft-filter-panel" }, this.items.map((r) => {
3570
3623
  switch (r.type) {
3571
3624
  case "dateRange": {
3572
3625
  const s = r;
3573
- return h("div", { class: "searchcraft-filter-panel-section" }, h("p", { class: "searchcraft-filter-panel-label" }, r.label), h("searchcraft-slider", { min: s.options.minDate.getTime(), max: s.options.maxDate.getTime(), dataType: "date", step: 1, dateGranularity: s.options.granularity, onRangeChanged: (a) => {
3626
+ return u("div", { class: "searchcraft-filter-panel-section" }, u("p", { class: "searchcraft-filter-panel-label" }, r.label), u("searchcraft-slider", { min: s.options.minDate.getTime(), max: s.options.maxDate.getTime(), dataType: "date", step: 1, dateGranularity: s.options.granularity, onRangeChanged: (a) => {
3574
3627
  this.handleDateRangeChanged(s, a.detail.startValue, a.detail.endValue);
3575
3628
  } }));
3576
3629
  }
3577
3630
  case "numericRange": {
3578
3631
  const s = r;
3579
- return h("div", { class: "searchcraft-filter-panel-section" }, h("p", { class: "searchcraft-filter-panel-label" }, r.label), h("searchcraft-slider", { min: s.options.min, max: s.options.max, step: s.options.granularity, onRangeChanged: (a) => {
3632
+ return u("div", { class: "searchcraft-filter-panel-section" }, u("p", { class: "searchcraft-filter-panel-label" }, r.label), u("searchcraft-slider", { min: s.options.min, max: s.options.max, step: s.options.granularity, onRangeChanged: (a) => {
3580
3633
  this.handleNumericRangeChanged(s.fieldName, a.detail.startValue, a.detail.endValue);
3581
3634
  } }));
3582
3635
  }
3583
3636
  case "facets": {
3584
3637
  const s = r;
3585
- return h("div", { class: "searchcraft-filter-panel-section" }, h("p", { class: "searchcraft-filter-panel-label" }, r.label), h("searchcraft-facet-list", { fieldName: s.fieldName, onFacetSelectionUpdated: (a) => {
3638
+ return u("div", { class: "searchcraft-filter-panel-section" }, u("p", { class: "searchcraft-filter-panel-label" }, r.label), u("searchcraft-facet-list", { fieldName: s.fieldName, onFacetSelectionUpdated: (a) => {
3586
3639
  this.handleFacetSelectionUpdated(s.fieldName, a.detail.paths);
3587
3640
  } }));
3588
3641
  }
3589
3642
  case "exactMatchToggle": {
3590
3643
  const s = r;
3591
- return h("searchcraft-toggle-button", { label: s.label, subLabel: s.options.subLabel, onToggleUpdated: (a) => {
3644
+ return u("searchcraft-toggle-button", { label: s.label, subLabel: s.options.subLabel, onToggleUpdated: (a) => {
3592
3645
  this.handleExactMatchToggleUpdated(a.detail);
3593
3646
  } });
3594
3647
  }
3595
3648
  case "mostRecentToggle": {
3596
3649
  const s = r;
3597
- return h("searchcraft-toggle-button", { label: s.label, subLabel: s.options.subLabel, onToggleUpdated: (a) => {
3650
+ return u("searchcraft-toggle-button", { label: s.label, subLabel: s.options.subLabel, onToggleUpdated: (a) => {
3598
3651
  this.handleMostRecentToggleUpdated(s.fieldName, a.detail);
3599
3652
  } });
3600
3653
  }
@@ -3612,21 +3665,21 @@ function Cc() {
3612
3665
  ["searchcraft-filter-panel", "searchcraft-facet-list", "searchcraft-slider", "searchcraft-toggle-button"].forEach((t) => {
3613
3666
  switch (t) {
3614
3667
  case "searchcraft-filter-panel":
3615
- customElements.get(t) || customElements.define(t, sa);
3668
+ customElements.get(t) || customElements.define(t, aa);
3616
3669
  break;
3617
3670
  case "searchcraft-facet-list":
3618
- customElements.get(t) || Js();
3671
+ customElements.get(t) || ea();
3619
3672
  break;
3620
3673
  case "searchcraft-slider":
3621
- customElements.get(t) || ta();
3674
+ customElements.get(t) || ra();
3622
3675
  break;
3623
3676
  case "searchcraft-toggle-button":
3624
- customElements.get(t) || ra();
3677
+ customElements.get(t) || sa();
3625
3678
  break;
3626
3679
  }
3627
3680
  });
3628
3681
  }
3629
- const Sc = sa, aa = Cc, wc = /* @__PURE__ */ D(class extends F {
3682
+ const Sc = aa, na = Cc, wc = /* @__PURE__ */ D(class extends L {
3630
3683
  constructor() {
3631
3684
  super();
3632
3685
  /**
@@ -3637,13 +3690,13 @@ const Sc = sa, aa = Cc, wc = /* @__PURE__ */ D(class extends F {
3637
3690
  this.__registerHost();
3638
3691
  }
3639
3692
  render() {
3640
- return h("label", { key: "3622c616d480e57b1dfaa2d61637a30b843cb968", class: ee("searchcraft-input-label", this.inputLabelClassName), htmlFor: "searchcraft-input-id" }, this.label);
3693
+ return u("label", { key: "3622c616d480e57b1dfaa2d61637a30b843cb968", class: ee("searchcraft-input-label", this.inputLabelClassName), htmlFor: "searchcraft-input-id" }, this.label);
3641
3694
  }
3642
3695
  }, [0, "searchcraft-input-label", {
3643
3696
  inputLabelClassName: [1, "input-label-class-name"],
3644
3697
  label: [1]
3645
3698
  }]);
3646
- function mr() {
3699
+ function gr() {
3647
3700
  if (typeof customElements > "u")
3648
3701
  return;
3649
3702
  ["searchcraft-input-label"].forEach((t) => {
@@ -3654,7 +3707,7 @@ function mr() {
3654
3707
  }
3655
3708
  });
3656
3709
  }
3657
- const na = /* @__PURE__ */ D(class extends F {
3710
+ const oa = /* @__PURE__ */ D(class extends L {
3658
3711
  constructor() {
3659
3712
  super();
3660
3713
  /**
@@ -3704,16 +3757,14 @@ const na = /* @__PURE__ */ D(class extends F {
3704
3757
  });
3705
3758
  f(this, "handleInput", (r) => {
3706
3759
  const s = r.target;
3707
- this.inputValue = s.value, this.autoSearch && this.performSearch(s.value);
3760
+ this.inputValue = s.value, this.searchcraftStore.setSearchTerm(s.value), this.autoSearch && this.performSearch();
3708
3761
  });
3709
- f(this, "performSearch", async (r) => {
3710
- if (r !== this.searchTerm) {
3711
- this.searchcraftStore.setSearchTerm(r.trim()), this.error = !1;
3712
- try {
3713
- await this.searchcraftStore.search();
3714
- } catch (s) {
3715
- console.error(`Search for ${r} failed:`, s), this.error = !0;
3716
- }
3762
+ f(this, "performSearch", async () => {
3763
+ this.error = !1;
3764
+ try {
3765
+ await this.searchcraftStore.search();
3766
+ } catch {
3767
+ this.error = !0;
3717
3768
  }
3718
3769
  });
3719
3770
  f(this, "handleReset", () => {
@@ -3723,7 +3774,7 @@ const na = /* @__PURE__ */ D(class extends F {
3723
3774
  this.handleReset();
3724
3775
  });
3725
3776
  f(this, "handleFormSubmit", async (r) => {
3726
- r.preventDefault(), await this.performSearch(this.inputValue);
3777
+ r.preventDefault(), await this.performSearch();
3727
3778
  });
3728
3779
  this.__registerHost(), this.inputFocus = ye(this, "inputFocus"), this.inputBlur = ye(this, "inputBlur"), this.inputInit = ye(this, "inputInit");
3729
3780
  }
@@ -3754,7 +3805,7 @@ const na = /* @__PURE__ */ D(class extends F {
3754
3805
  }), o = {
3755
3806
  gap: this.inputLabel || this.error ? "4px 8px" : "0px 8px"
3756
3807
  };
3757
- return h("form", { key: "7f3fe524949a5940d2852ef8fe510ab0c0b910f1", class: "searchcraft-input-form", onSubmit: this.handleFormSubmit }, h("div", { key: "12a137ff4ecaab2a047cb787c878ddf0ed973d3f", class: s, style: o }, h("div", { key: "12c7dadcc6fa22467a5165c10e12a0e343ea2ed3", class: "searchcraft-input-form-button" }, h("searchcraft-button", { key: "477fe1299556e5c5bc6b902de65c71f11aad97ac", onButtonClick: this.handleFormSubmit, label: this.buttonLabel })), this.inputLabel && h("div", { key: "cf04132b3a95943fe8371f64778130c3f8bbc379", class: "searchcraft-input-form-label" }, h("searchcraft-input-label", { key: "b840d1b65c1fc11879cf25bcc88022eafa583109", label: this.inputLabel })), this.error && h("div", { key: "ed9a441bfd57cab076f8218e1f7d4baecf5e9ce2", class: "searchcraft-input-form-error-message" }, h("searchcraft-error-message", { key: "9624592768ab3cc0c683f5636b83022349af66cd" }, "Something went wrong.")), h("div", { key: "99f06b4c38b4cc26f534a3f3be6a7c23b5946c62", class: "searchcraft-input-form-input-wrapper" }, h("input", { key: "90fe4eca0771ca15378685861ae0bd700110ac15", autoComplete: "off", class: ee("searchcraft-input-form-input", {
3808
+ return u("form", { key: "d0654def009278279b7edeeccc6044d999c0d5b0", class: "searchcraft-input-form", onSubmit: this.handleFormSubmit }, u("div", { key: "27978b08e46e0f8ecdf6dc95a74c962d85f5e9ff", class: s, style: o }, u("div", { key: "1f7cecc80a84bfc46c994971cd751d2b65af6d83", class: "searchcraft-input-form-button" }, u("searchcraft-button", { key: "b3f2078604c380eef895be103b2bdf5cef6bca84", onButtonClick: this.handleFormSubmit, label: this.buttonLabel })), this.inputLabel && u("div", { key: "b33c0d3cbb3512964c3a47a2c354a610fa6faa09", class: "searchcraft-input-form-label" }, u("searchcraft-input-label", { key: "e620088318c82e2e70d885bd3ee2c88ef8118e7c", label: this.inputLabel })), this.error && u("div", { key: "c3a20576917aaa33cc12df5ee5b479f87d628de7", class: "searchcraft-input-form-error-message" }, u("searchcraft-error-message", { key: "f48e54a236b7a33fa55bab7f29d3b321be0bbb77" }, "Something went wrong.")), u("div", { key: "ebda089a3b8698892fd6cebcbaf89582a1bb21a2", class: "searchcraft-input-form-input-wrapper" }, u("input", { key: "d7ea7b49f7d65067924168fc281033841a71d419", autoComplete: "off", class: ee("searchcraft-input-form-input", {
3758
3809
  "searchcraft-placeholder-hide-on-focus": this.placeholderBehavior === "hide-on-focus"
3759
3810
  }), onFocus: () => {
3760
3811
  var n;
@@ -3764,7 +3815,7 @@ const na = /* @__PURE__ */ D(class extends F {
3764
3815
  return (n = this.inputBlur) == null ? void 0 : n.emit();
3765
3816
  }, onInput: (n) => {
3766
3817
  this.handleInput(n);
3767
- }, placeholder: this.placeholderValue, type: "text", value: this.inputValue }), h("div", { key: "81a377845c20ba1ea8ed2ff73469026c7b2dc16a", class: "searchcraft-input-form-input-icon" }, h("svg", { key: "06e127c9878b65c17a72ae75841c9b5a1eec6197", class: "searchcraft-input-form-input-search-icon", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "searchcraft-title" }, h("title", { key: "37ebce26440a6e3fcdad1b342412b0aaec5e690c" }, "Search icon"), h("path", { key: "3c5bcab0759d52e05a5f07ef27396461cf3b626c", d: "M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), r && h("button", { key: "bbca17429ef3de340d7ee064e71c3858abc1022a", type: "button", class: "searchcraft-input-form-clear-button", onClick: this.handleClearInput }, h("svg", { key: "94eee54f0735020bf77f56607bb870888d5a23e9", class: "searchcraft-input-form-clear-icon", viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "icon-title" }, h("title", { key: "5f7e9beb4f2c4c394f19cc2c312be59de166a0c8" }, "Clear icon"), h("path", { key: "138c29ea054bd535d0a8b5cb708bbea31d21c40a", d: "M14 8L8 14M8 8L14 14M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))))));
3818
+ }, placeholder: this.placeholderValue, type: "text", value: this.inputValue }), u("div", { key: "6dd4a02322072467a104938a47626592658eaa1e", class: "searchcraft-input-form-input-icon" }, u("svg", { key: "26a4deabe9149db6db219e49fcccbbe7688e9f0a", class: "searchcraft-input-form-input-search-icon", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "searchcraft-title" }, u("title", { key: "eff07788d2edaead45a60d8ac20e5d1d694c5165" }, "Search icon"), u("path", { key: "9083cf32c8f749210232b51b1f5934a3c32b109f", d: "M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), r && u("button", { key: "0b2117ae2510fe743b11d8e638e981ee0f7e4760", type: "button", class: "searchcraft-input-form-clear-button", onClick: this.handleClearInput }, u("svg", { key: "3fbb57c1b6486638286e1010639751a83a75f489", class: "searchcraft-input-form-clear-icon", viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "icon-title" }, u("title", { key: "84ce771c55c072b4339babb136639469b68a1f9b" }, "Clear icon"), u("path", { key: "811f5fc9cc708f80004f1cf50ddcd85de05f3b6b", d: "M14 8L8 14M8 8L14 14M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))))));
3768
3819
  }
3769
3820
  static get watchers() {
3770
3821
  return {
@@ -3785,27 +3836,27 @@ const na = /* @__PURE__ */ D(class extends F {
3785
3836
  }, void 0, {
3786
3837
  core: ["onCoreChange"]
3787
3838
  }]);
3788
- function oa() {
3839
+ function ca() {
3789
3840
  if (typeof customElements > "u")
3790
3841
  return;
3791
3842
  ["searchcraft-input-form", "searchcraft-button", "searchcraft-error-message", "searchcraft-input-label"].forEach((t) => {
3792
3843
  switch (t) {
3793
3844
  case "searchcraft-input-form":
3794
- customElements.get(t) || customElements.define(t, na);
3845
+ customElements.get(t) || customElements.define(t, oa);
3795
3846
  break;
3796
3847
  case "searchcraft-button":
3797
- customElements.get(t) || Et();
3848
+ customElements.get(t) || kt();
3798
3849
  break;
3799
3850
  case "searchcraft-error-message":
3800
- customElements.get(t) || xt();
3851
+ customElements.get(t) || Rt();
3801
3852
  break;
3802
3853
  case "searchcraft-input-label":
3803
- customElements.get(t) || mr();
3854
+ customElements.get(t) || gr();
3804
3855
  break;
3805
3856
  }
3806
3857
  });
3807
3858
  }
3808
- const kc = na, ca = oa, Ec = mr, ia = /* @__PURE__ */ D(class extends F {
3859
+ const Ec = oa, ia = ca, kc = gr, la = /* @__PURE__ */ D(class extends L {
3809
3860
  constructor() {
3810
3861
  super();
3811
3862
  // store vars
@@ -3837,27 +3888,27 @@ const kc = na, ca = oa, Ec = mr, ia = /* @__PURE__ */ D(class extends F {
3837
3888
  this.setSearchResultsPage(r);
3838
3889
  }
3839
3890
  renderOddPaginationItem(r) {
3840
- return h("li", null, h("button", { class: ee("searchcraft-pagination-item", {
3891
+ return u("li", null, u("button", { class: ee("searchcraft-pagination-item", {
3841
3892
  "searchcraft-pagination-item-active": this.searchResultsPage === r
3842
3893
  }), onClick: () => this.handleGoToPage(r), type: "button" }, r));
3843
3894
  }
3844
3895
  renderEvenPaginationItem(r) {
3845
3896
  if (!(this.searchResultsPagesCount <= r))
3846
- return (this.searchResultsPagesCount <= 5 || r < Math.ceil(this.searchResultsPagesCount / 2) ? this.searchResultsPage <= r + 1 : this.searchResultsPage >= r - 1) ? h("li", null, h("button", { class: ee("searchcraft-pagination-item", {
3897
+ return (this.searchResultsPagesCount <= 5 || r < Math.ceil(this.searchResultsPagesCount / 2) ? this.searchResultsPage <= r + 1 : this.searchResultsPage >= r - 1) ? u("li", null, u("button", { class: ee("searchcraft-pagination-item", {
3847
3898
  "searchcraft-pagination-item-active": this.searchResultsPage === r
3848
- }), onClick: () => this.handleGoToPage(r), type: "button" }, r)) : h("li", null, h("span", { class: "searchcraft-pagination-item" }, "..."));
3899
+ }), onClick: () => this.handleGoToPage(r), type: "button" }, r)) : u("li", null, u("span", { class: "searchcraft-pagination-item" }, "..."));
3849
3900
  }
3850
3901
  renderMiddlePaginationItem() {
3851
3902
  if (!(this.searchResultsPagesCount <= 3))
3852
- return this.searchResultsPagesCount <= 5 || this.searchResultsPage <= 3 || this.searchResultsPage >= this.searchResultsPagesCount - 2 ? h("li", null, h("button", { class: ee("searchcraft-pagination-item", {
3903
+ return this.searchResultsPagesCount <= 5 || this.searchResultsPage <= 3 || this.searchResultsPage >= this.searchResultsPagesCount - 2 ? u("li", null, u("button", { class: ee("searchcraft-pagination-item", {
3853
3904
  "searchcraft-pagination-item-active": this.searchResultsPage === 3 || this.searchResultsPage === this.searchResultsPagesCount - 2
3854
- }), type: "button", onClick: () => this.handleGoToPage(this.searchResultsPage >= this.searchResultsPagesCount - 2 ? this.searchResultsPagesCount - 2 : 3) }, this.searchResultsPage >= this.searchResultsPagesCount - 2 ? this.searchResultsPagesCount - 2 : 3)) : h("li", null, h("span", { class: "searchcraft-pagination-item searchcraft-pagination-item-active" }, this.searchResultsPage));
3905
+ }), type: "button", onClick: () => this.handleGoToPage(this.searchResultsPage >= this.searchResultsPagesCount - 2 ? this.searchResultsPagesCount - 2 : 3) }, this.searchResultsPage >= this.searchResultsPagesCount - 2 ? this.searchResultsPagesCount - 2 : 3)) : u("li", null, u("span", { class: "searchcraft-pagination-item searchcraft-pagination-item-active" }, this.searchResultsPage));
3855
3906
  }
3856
3907
  render() {
3857
3908
  if (!(!this.searchTerm || this.searchResultsPagesCount <= 1))
3858
- return h("div", { class: "searchcraft-pagination" }, h("div", { class: "searchcraft-pagination-control" }, h("searchcraft-button", { disabled: this.searchResultsPage === 1, hierarchy: "tertiary", onButtonClick: () => this.handleGoToPage(Math.max(1, this.searchResultsPage - 1)), label: "Previous", iconPosition: "left", icon: h("svg", { class: "searchcraft-button-icon", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("title", null, "Previous page icon"), h("path", { d: "M12.5 15L7.5 10L12.5 5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), iconOnly: !0 })), h("ul", { class: "searchcraft-pagination-list" }, this.renderOddPaginationItem(1), this.renderEvenPaginationItem(2), this.renderMiddlePaginationItem(), this.renderEvenPaginationItem(this.searchResultsPagesCount > 4 ? this.searchResultsPagesCount - 1 : 4), this.renderOddPaginationItem(this.searchResultsPagesCount)), h("div", { class: "searchcraft-pagination-control" }, h("searchcraft-button", { disabled: this.searchResultsPage === this.searchResultsPagesCount, hierarchy: "tertiary", onButtonClick: () => {
3909
+ return u("div", { class: "searchcraft-pagination" }, u("div", { class: "searchcraft-pagination-control" }, u("searchcraft-button", { disabled: this.searchResultsPage === 1, hierarchy: "tertiary", onButtonClick: () => this.handleGoToPage(Math.max(1, this.searchResultsPage - 1)), label: "Previous", iconPosition: "left", icon: u("svg", { class: "searchcraft-button-icon", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, u("title", null, "Previous page icon"), u("path", { d: "M12.5 15L7.5 10L12.5 5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), iconOnly: !0 })), u("ul", { class: "searchcraft-pagination-list" }, this.renderOddPaginationItem(1), this.renderEvenPaginationItem(2), this.renderMiddlePaginationItem(), this.renderEvenPaginationItem(this.searchResultsPagesCount > 4 ? this.searchResultsPagesCount - 1 : 4), this.renderOddPaginationItem(this.searchResultsPagesCount)), u("div", { class: "searchcraft-pagination-control" }, u("searchcraft-button", { disabled: this.searchResultsPage === this.searchResultsPagesCount, hierarchy: "tertiary", onButtonClick: () => {
3859
3910
  this.handleGoToPage(Math.min(this.searchResultsPagesCount, this.searchResultsPage + 1));
3860
- }, label: "Next", iconPosition: "right", icon: h("svg", { class: "searchcraft-button-icon", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("title", null, "Next page icon"), h("path", { d: "M7.5 15L12.5 10L7.5 5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), iconOnly: !0 })));
3911
+ }, label: "Next", iconPosition: "right", icon: u("svg", { class: "searchcraft-button-icon", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, u("title", null, "Next page icon"), u("path", { d: "M7.5 15L12.5 10L7.5 5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), iconOnly: !0 })));
3861
3912
  }
3862
3913
  }, [0, "searchcraft-pagination", {
3863
3914
  searchTerm: [32],
@@ -3869,21 +3920,21 @@ const kc = na, ca = oa, Ec = mr, ia = /* @__PURE__ */ D(class extends F {
3869
3920
  searchResultsRangeMax: [32],
3870
3921
  setSearchResultsPage: [32]
3871
3922
  }]);
3872
- function xc() {
3923
+ function Rc() {
3873
3924
  if (typeof customElements > "u")
3874
3925
  return;
3875
3926
  ["searchcraft-pagination", "searchcraft-button"].forEach((t) => {
3876
3927
  switch (t) {
3877
3928
  case "searchcraft-pagination":
3878
- customElements.get(t) || customElements.define(t, ia);
3929
+ customElements.get(t) || customElements.define(t, la);
3879
3930
  break;
3880
3931
  case "searchcraft-button":
3881
- customElements.get(t) || Et();
3932
+ customElements.get(t) || kt();
3882
3933
  break;
3883
3934
  }
3884
3935
  });
3885
3936
  }
3886
- const Rc = ia, la = xc, ua = /* @__PURE__ */ D(class extends F {
3937
+ const xc = la, ua = Rc, ha = /* @__PURE__ */ D(class extends L {
3887
3938
  constructor() {
3888
3939
  super();
3889
3940
  /**
@@ -3901,10 +3952,10 @@ const Rc = ia, la = xc, ua = /* @__PURE__ */ D(class extends F {
3901
3952
  f(this, "userAgent");
3902
3953
  f(this, "unsubscribe", () => {
3903
3954
  });
3904
- f(this, "renderOptionSymbol", () => h("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, h("title", null, "Option key"), h("path", { d: "M283,112c0-11.58,9.42-21,21-21h160c11.58,0,21,9.42,21,21s-9.42,21-21,21h-160c-11.58,0-21-9.42-21-21Z", fill: "currentColor" }), h("path", { d: "M485,400c0,11.58-9.42,21-21,21h-128c-8.29,0-15.82-4.9-19.19-12.47l-122.46-275.53H48c-11.58,0-21-9.42-21-21s9.42-21,21-21h160c8.29,0,15.82,4.9,19.19,12.47l122.46,275.53h114.35c11.58,0,21,9.42,21,21Z", fill: "currentColor" })));
3905
- f(this, "renderCtrlSymbol", () => h("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, h("title", null, "Ctrl key"), h("path", { d: "M388.95,209.4c-.37,5.59-2.9,10.71-7.12,14.4-3.83,3.35-8.74,5.2-13.82,5.2-6.06,0-11.83-2.61-15.81-7.17l-96.2-109.94-96.2,109.94c-3.98,4.56-9.75,7.17-15.81,7.17-5.08,0-9.99-1.84-13.82-5.2-4.22-3.69-6.75-8.81-7.12-14.4-.38-5.6,1.45-11.01,5.15-15.23l112-128c3.98-4.56,9.74-7.17,15.8-7.17s11.82,2.61,15.8,7.17l112,128c3.7,4.22,5.53,9.63,5.15,15.23Z", fill: "currentColor" })));
3906
- f(this, "renderWindowsMetaSymbol", () => h("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, h("title", null, "Windows meta key"), h("path", { d: "M206.115 255.957c-23.854-12.259-47.043-18.479-68.94-18.479-2.978 0-5.976 0.090-8.974 0.354-27.94 2.312-53.461 9.684-69.875 15.414-4.354 1.599-8.817 3.288-13.415 5.153l-44.911 155.697c30.851-11.416 58.146-16.969 83.135-16.969 40.423 0 69.764 15.104 93.996 30.652 11.481-38.959 39.022-133.045 47.241-161.162-5.975-3.642-12.038-7.285-18.257-10.66zM264.174 295.535l-45.223 157.074c13.416 7.686 58.549 32.025 93.106 32.025 27.896 0 59.126-7.148 95.417-21.896l43.178-150.988c-29.316 9.461-57.438 14.26-83.732 14.26-47.975 0-81.557-15.549-102.746-30.475zM146.411 184.395c38.559 0.399 67.076 15.104 90.708 30.251l46.376-158.672c-9.773-5.598-35.403-19.547-53.929-24.3-12.193-2.842-25.010-4.308-38.602-4.308-25.898 0.488-54.194 6.973-86.444 19.9l-44.22 155.298c32.404-12.218 60.322-18.17 86.043-18.17 0.023 0.001 0.068 0.001 0.068 0.001zM512 99.062c-29.407 11.416-58.104 17.233-85.514 17.233-45.843 0-79.646-15.901-101.547-31.183l-45.975 159.118c30.873 19.854 64.145 29.939 99.061 29.939 28.474 0 57.97-6.84 87.731-20.344l-0.091-1.111 1.867-0.443 44.468-153.209z", fill: "currentColor" })));
3907
- f(this, "renderMacMetaSymbol", () => h("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, h("title", null, "Mac meta key"), h("path", { d: "M368,283h-43v-54h43c46.87,0,85-38.13,85-85s-38.13-85-85-85-85,38.13-85,85v43h-54v-43c0-46.87-38.13-85-85-85s-85,38.13-85,85,38.13,85,85,85h43v54h-43c-46.87,0-85,38.13-85,85s38.13,85,85,85,85-38.13,85-85v-43h54v43c0,46.87,38.13,85,85,85s85-38.13,85-85-38.13-85-85-85ZM325,144c0-23.71,19.29-43,43-43s43,19.29,43,43-19.29,43-43,43h-43v-43ZM144,187c-23.71,0-43-19.29-43-43s19.29-43,43-43,43,19.29,43,43v43h-43ZM187,368c0,23.71-19.29,43-43,43s-43-19.29-43-43,19.29-43,43-43h43v43ZM283,283h-54v-54h54v54ZM368,411c-23.71,0-43-19.29-43-43v-43h43c23.71,0,43,19.29,43,43s-19.29,43-43,43Z", fill: "currentColor" })));
3955
+ f(this, "renderOptionSymbol", () => u("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, u("title", null, "Option key"), u("path", { d: "M283,112c0-11.58,9.42-21,21-21h160c11.58,0,21,9.42,21,21s-9.42,21-21,21h-160c-11.58,0-21-9.42-21-21Z", fill: "currentColor" }), u("path", { d: "M485,400c0,11.58-9.42,21-21,21h-128c-8.29,0-15.82-4.9-19.19-12.47l-122.46-275.53H48c-11.58,0-21-9.42-21-21s9.42-21,21-21h160c8.29,0,15.82,4.9,19.19,12.47l122.46,275.53h114.35c11.58,0,21,9.42,21,21Z", fill: "currentColor" })));
3956
+ f(this, "renderCtrlSymbol", () => u("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, u("title", null, "Ctrl key"), u("path", { d: "M388.95,209.4c-.37,5.59-2.9,10.71-7.12,14.4-3.83,3.35-8.74,5.2-13.82,5.2-6.06,0-11.83-2.61-15.81-7.17l-96.2-109.94-96.2,109.94c-3.98,4.56-9.75,7.17-15.81,7.17-5.08,0-9.99-1.84-13.82-5.2-4.22-3.69-6.75-8.81-7.12-14.4-.38-5.6,1.45-11.01,5.15-15.23l112-128c3.98-4.56,9.74-7.17,15.8-7.17s11.82,2.61,15.8,7.17l112,128c3.7,4.22,5.53,9.63,5.15,15.23Z", fill: "currentColor" })));
3957
+ f(this, "renderWindowsMetaSymbol", () => u("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, u("title", null, "Windows meta key"), u("path", { d: "M206.115 255.957c-23.854-12.259-47.043-18.479-68.94-18.479-2.978 0-5.976 0.090-8.974 0.354-27.94 2.312-53.461 9.684-69.875 15.414-4.354 1.599-8.817 3.288-13.415 5.153l-44.911 155.697c30.851-11.416 58.146-16.969 83.135-16.969 40.423 0 69.764 15.104 93.996 30.652 11.481-38.959 39.022-133.045 47.241-161.162-5.975-3.642-12.038-7.285-18.257-10.66zM264.174 295.535l-45.223 157.074c13.416 7.686 58.549 32.025 93.106 32.025 27.896 0 59.126-7.148 95.417-21.896l43.178-150.988c-29.316 9.461-57.438 14.26-83.732 14.26-47.975 0-81.557-15.549-102.746-30.475zM146.411 184.395c38.559 0.399 67.076 15.104 90.708 30.251l46.376-158.672c-9.773-5.598-35.403-19.547-53.929-24.3-12.193-2.842-25.010-4.308-38.602-4.308-25.898 0.488-54.194 6.973-86.444 19.9l-44.22 155.298c32.404-12.218 60.322-18.17 86.043-18.17 0.023 0.001 0.068 0.001 0.068 0.001zM512 99.062c-29.407 11.416-58.104 17.233-85.514 17.233-45.843 0-79.646-15.901-101.547-31.183l-45.975 159.118c30.873 19.854 64.145 29.939 99.061 29.939 28.474 0 57.97-6.84 87.731-20.344l-0.091-1.111 1.867-0.443 44.468-153.209z", fill: "currentColor" })));
3958
+ f(this, "renderMacMetaSymbol", () => u("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 512 512", fill: "none" }, u("title", null, "Mac meta key"), u("path", { d: "M368,283h-43v-54h43c46.87,0,85-38.13,85-85s-38.13-85-85-85-85,38.13-85,85v43h-54v-43c0-46.87-38.13-85-85-85s-85,38.13-85,85,38.13,85,85,85h43v54h-43c-46.87,0-85,38.13-85,85s38.13,85,85,85,85-38.13,85-85v-43h54v43c0,46.87,38.13,85,85,85s85-38.13,85-85-38.13-85-85-85ZM325,144c0-23.71,19.29-43,43-43s43,19.29,43,43-19.29,43-43,43h-43v-43ZM144,187c-23.71,0-43-19.29-43-43s19.29-43,43-43,43,19.29,43,43v43h-43ZM187,368c0,23.71-19.29,43-43,43s-43-19.29-43-43,19.29-43,43-43h43v43ZM283,283h-54v-54h54v54ZM368,411c-23.71,0-43-19.29-43-43v-43h43c23.71,0,43,19.29,43,43s-19.29,43-43,43Z", fill: "currentColor" })));
3908
3959
  this.__registerHost();
3909
3960
  }
3910
3961
  handleOnClick() {
@@ -3943,18 +3994,18 @@ const Rc = ia, la = xc, ua = /* @__PURE__ */ D(class extends F {
3943
3994
  }
3944
3995
  }
3945
3996
  renderSkeuomorphicSlot() {
3946
- return h("div", { class: "searchcraft-popover-button-wrapper" }, h("div", { class: "searchcraft-popover-button-input" }, h("svg", { class: "searchcraft-popover-button-input-search-icon", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", version: "1.1" }, h("title", null, "Search icon"), h("path", { d: "M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), h("span", null, "Search")), h("div", { class: "searchcraft-popover-button-keycaps" }, h("div", { class: "searchcraft-popover-button-keycaps-keycap searchcraft-popover-button-keycaps-keycap-modifier" }, h("span", null, this.hotkeyModifierSymbol)), h("div", { class: "searchcraft-popover-button-keycaps-keycap searchcraft-popover-button-keycaps-keycap-key" }, h("span", null, this.hotkey))));
3997
+ return u("div", { class: "searchcraft-popover-button-wrapper" }, u("div", { class: "searchcraft-popover-button-input" }, u("svg", { class: "searchcraft-popover-button-input-search-icon", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", version: "1.1" }, u("title", null, "Search icon"), u("path", { d: "M17.5 17.5L13.875 13.875M15.8333 9.16667C15.8333 12.8486 12.8486 15.8333 9.16667 15.8333C5.48477 15.8333 2.5 12.8486 2.5 9.16667C2.5 5.48477 5.48477 2.5 9.16667 2.5C12.8486 2.5 15.8333 5.48477 15.8333 9.16667Z", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), u("span", null, "Search")), u("div", { class: "searchcraft-popover-button-keycaps" }, u("div", { class: "searchcraft-popover-button-keycaps-keycap searchcraft-popover-button-keycaps-keycap-modifier" }, u("span", null, this.hotkeyModifierSymbol)), u("div", { class: "searchcraft-popover-button-keycaps-keycap searchcraft-popover-button-keycaps-keycap-key" }, u("span", null, this.hotkey))));
3947
3998
  }
3948
3999
  renderSlot() {
3949
4000
  switch (this.type) {
3950
4001
  case "skeuomorphic":
3951
4002
  return this.renderSkeuomorphicSlot();
3952
4003
  default:
3953
- return h("div", null, h("slot", null));
4004
+ return u("div", null, u("slot", null));
3954
4005
  }
3955
4006
  }
3956
4007
  render() {
3957
- return h("button", { key: "74e36b0593ba2cbb03f5ecff1434bc7056bf0db0", class: `searchcraft-popover-button ${this.type ? ` searchcraft-popover-button-${this.type}` : ""}`, innerHTML: typeof this.template < "u" ? this.template({ isPopoverVisible: this.isPopoverVisible }, { html: tt }) : void 0, onClick: this.handleOnClick.bind(this), type: "button" }, typeof this.template < "u" ? void 0 : this.type ? this.renderSlot() : "Open Popover");
4008
+ return u("button", { key: "74e36b0593ba2cbb03f5ecff1434bc7056bf0db0", class: `searchcraft-popover-button ${this.type ? ` searchcraft-popover-button-${this.type}` : ""}`, innerHTML: typeof this.template < "u" ? this.template({ isPopoverVisible: this.isPopoverVisible }, { html: tt }) : void 0, onClick: this.handleOnClick.bind(this), type: "button" }, typeof this.template < "u" ? void 0 : this.type ? this.renderSlot() : "Open Popover");
3958
4009
  }
3959
4010
  }, [4, "searchcraft-popover-button", {
3960
4011
  template: [16],
@@ -3971,12 +4022,12 @@ function Tc() {
3971
4022
  ["searchcraft-popover-button"].forEach((t) => {
3972
4023
  switch (t) {
3973
4024
  case "searchcraft-popover-button":
3974
- customElements.get(t) || customElements.define(t, ua);
4025
+ customElements.get(t) || customElements.define(t, ha);
3975
4026
  break;
3976
4027
  }
3977
4028
  });
3978
4029
  }
3979
- const Pc = ua, ha = Tc, $c = /* @__PURE__ */ D(class extends F {
4030
+ const Pc = ha, da = Tc, $c = /* @__PURE__ */ D(class extends L {
3980
4031
  constructor() {
3981
4032
  super();
3982
4033
  f(this, "searchResultsCount");
@@ -3994,12 +4045,12 @@ const Pc = ua, ha = Tc, $c = /* @__PURE__ */ D(class extends F {
3994
4045
  (r = this.unsubscribe) == null || r.call(this);
3995
4046
  }
3996
4047
  render() {
3997
- return h("footer", { key: "e1344ae185ef1b8a83bb69ba88e2952ab1c75e70", class: "searchcraft-popover-footer" }, h("p", { key: "51874f4ce490e4f164b999e8c6f89710702e73bd", class: "searchcraft-popover-footer-results-info" }, this.searchResultsCount ? `${ea(this.searchResultsCount)} Results Found` : " "), h("a", { key: "5476e24cc3fa7fa265bd2b5cba43c8a70d8609ca", class: "searchcraft-popover-footer-link", href: "https://searchcraft.io/", target: "_blank", rel: "noreferrer" }, h("svg", { key: "0a4edf94e9e40a96a93a4e7ba1ffbd081e51b585", class: "searchcraft-popover-footer-link-image", width: "169", height: "16", viewBox: "0 0 169 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("title", { key: "67813a626922d709a4409028cb0f3f1ce3e2cfe8" }, "Powered by Searchcraft"), h("path", { key: "bf9e46a5f9783edd7167c1c5c1256d0200053969", d: "M5.07288 0.608C7.60088 0.608 8.84888 2.064 8.84888 4.112C8.84888 6.16 7.60088 7.616 5.07288 7.616H1.68088V12H0.336875V0.608H5.07288ZM5.07288 6.4C6.67288 6.4 7.45688 5.552 7.45688 4.112C7.45688 2.672 6.67288 1.824 5.07288 1.824H1.68088V6.4H5.07288ZM13.31 12.192C10.99 12.192 9.31 10.512 9.31 7.872C9.31 5.232 10.99 3.552 13.31 3.552C15.63 3.552 17.31 5.232 17.31 7.872C17.31 10.512 15.63 12.192 13.31 12.192ZM13.31 11.04C14.91 11.04 15.966 9.872 15.966 7.872C15.966 5.872 14.91 4.704 13.31 4.704C11.71 4.704 10.654 5.872 10.654 7.872C10.654 9.872 11.71 11.04 13.31 11.04ZM28.3826 3.744H29.7586L27.0066 12H25.6626L24.4466 8.176C24.1586 7.264 23.8706 6.304 23.6146 5.376C23.3426 6.304 23.0546 7.264 22.7666 8.176L21.5666 12H20.2226L17.4706 3.744H18.8466L20.0146 7.472C20.3346 8.48 20.6226 9.472 20.9106 10.48C21.1826 9.472 21.4706 8.48 21.7906 7.472L22.9426 3.744H24.2866L25.4386 7.472C25.7426 8.464 26.0466 9.456 26.3346 10.448C26.6066 9.456 26.9106 8.464 27.2146 7.472L28.3826 3.744ZM37.5194 7.872V8.32H31.2474C31.3754 10.176 32.3514 11.024 33.7914 11.024C34.9594 11.024 35.6954 10.416 35.9834 9.488H37.3114C36.9114 11.04 35.7274 12.192 33.7594 12.192C31.5034 12.192 29.9194 10.544 29.9194 7.872C29.9194 5.28 31.4394 3.552 33.7274 3.552C36.1914 3.552 37.5194 5.504 37.5194 7.872ZM33.7274 4.72C32.4314 4.72 31.4874 5.536 31.2794 7.168H36.1434C36.0154 5.808 35.1994 4.72 33.7274 4.72ZM42.9101 3.616C43.0381 3.616 43.1661 3.616 43.3421 3.632V4.864H43.0221C41.3741 4.864 40.3181 5.696 40.3181 7.296V12H39.0381V3.744H40.2541V5.2C40.7181 4.336 41.5661 3.616 42.9101 3.616ZM51.2538 7.872V8.32H44.9818C45.1098 10.176 46.0858 11.024 47.5258 11.024C48.6938 11.024 49.4298 10.416 49.7178 9.488H51.0458C50.6458 11.04 49.4618 12.192 47.4938 12.192C45.2378 12.192 43.6538 10.544 43.6538 7.872C43.6538 5.28 45.1738 3.552 47.4618 3.552C49.9258 3.552 51.2538 5.504 51.2538 7.872ZM47.4618 4.72C46.1658 4.72 45.2218 5.536 45.0138 7.168H49.8778C49.7498 5.808 48.9338 4.72 47.4618 4.72ZM58.9805 0.608H60.2605V12H59.0445V10.72C58.4205 11.664 57.4445 12.192 56.2125 12.192C53.8925 12.192 52.3725 10.512 52.3725 7.872C52.3725 5.232 53.8925 3.552 56.2125 3.552C57.4125 3.552 58.3565 4.048 58.9805 4.928V0.608ZM56.3725 11.04C57.9725 11.04 59.0285 9.872 59.0285 7.872C59.0285 5.872 57.9725 4.704 56.3725 4.704C54.7725 4.704 53.7165 5.936 53.7165 7.936C53.7165 9.936 54.7725 11.04 56.3725 11.04ZM69.2736 3.552C71.5936 3.552 73.1136 5.232 73.1136 7.872C73.1136 10.512 71.5936 12.192 69.2736 12.192C68.0416 12.192 67.0656 11.664 66.4416 10.72V12H65.2256V0.608H66.5056V4.928C67.1296 4.048 68.0736 3.552 69.2736 3.552ZM69.1136 11.04C70.7136 11.04 71.7696 9.808 71.7696 7.808C71.7696 5.808 70.7136 4.704 69.1136 4.704C67.5136 4.704 66.4576 5.872 66.4576 7.872C66.4576 9.872 67.5136 11.04 69.1136 11.04ZM79.3795 3.744H80.7715L77.2835 13.296C76.7555 14.752 75.9075 15.184 74.5955 15.184C74.3395 15.184 74.0995 15.168 73.8275 15.136V14.064H74.5795C75.3955 14.064 75.8275 13.696 76.0835 13.04C76.1795 12.8 76.2755 12.528 76.3715 12.272L73.2675 3.744H74.6755L75.8435 7.184C76.2595 8.384 76.6435 9.568 77.0275 10.752C77.3955 9.568 77.7955 8.368 78.2115 7.168L79.3795 3.744ZM89.1546 12.256C86.1146 12.256 84.2906 10.864 84.2746 8.24H86.4026C86.4346 10.032 87.6346 10.512 89.2186 10.512C90.7066 10.512 91.5226 9.936 91.5226 8.864C91.5226 7.968 90.9306 7.568 89.1866 7.216L88.2266 7.024C86.0186 6.608 84.5626 5.632 84.5626 3.568C84.5626 1.68 86.0506 0.351999 88.7866 0.351999C91.9866 0.351999 93.3466 1.856 93.4266 4H91.3306C91.2506 2.784 90.6266 2.096 88.8186 2.096C87.4426 2.096 86.7706 2.64 86.7706 3.504C86.7706 4.416 87.2986 4.832 88.9946 5.184L89.9866 5.376C92.6746 5.904 93.7626 6.944 93.7626 8.752C93.7626 11.008 92.0026 12.256 89.1546 12.256ZM102.952 8.016V8.496H96.7758C96.9198 9.968 97.7518 10.624 98.9198 10.624C99.8798 10.624 100.504 10.176 100.808 9.44H102.744C102.328 11.12 100.888 12.192 98.9038 12.192C96.4718 12.192 94.7918 10.512 94.7918 7.872C94.7918 5.28 96.4238 3.552 98.8718 3.552C101.4 3.552 102.952 5.392 102.952 8.016ZM98.8558 5.12C97.7838 5.12 96.9838 5.728 96.7918 7.088H100.936C100.776 5.92 100.056 5.12 98.8558 5.12ZM111.599 12H109.583C109.455 11.776 109.391 11.392 109.359 10.992C108.815 11.76 107.919 12.192 106.703 12.192C104.943 12.192 103.727 11.312 103.727 9.712C103.727 8.336 104.559 7.36 106.895 7.136L108.143 7.024C108.911 6.928 109.311 6.688 109.311 6.08C109.311 5.44 108.975 5.056 107.807 5.056C106.655 5.056 106.175 5.36 106.095 6.368H104.111C104.223 4.624 105.247 3.552 107.823 3.552C110.287 3.552 111.263 4.544 111.263 6.032V10.432C111.263 11.024 111.375 11.68 111.599 12ZM107.183 10.752C108.255 10.752 109.311 10.176 109.311 8.736V7.984C109.103 8.176 108.799 8.272 108.367 8.32L107.279 8.448C106.159 8.576 105.791 8.976 105.791 9.632C105.791 10.32 106.255 10.752 107.183 10.752ZM117.216 3.616C117.392 3.616 117.536 3.616 117.712 3.648V5.504H117.2C115.712 5.504 114.816 6.24 114.816 7.808V12H112.8V3.744H114.752V5.216C115.152 4.288 115.936 3.616 117.216 3.616ZM122.137 12.192C119.689 12.192 118.057 10.512 118.057 7.872C118.057 5.232 119.673 3.552 122.137 3.552C124.297 3.552 125.737 4.784 125.977 6.72H123.961C123.769 5.696 123.033 5.232 122.137 5.232C120.937 5.232 120.121 6.064 120.121 7.872C120.121 9.68 120.969 10.512 122.137 10.512C123.049 10.512 123.833 10.016 123.993 8.928H126.009C125.785 10.944 124.249 12.192 122.137 12.192ZM131.641 3.552C133.369 3.552 134.537 4.56 134.537 6.528V12H132.521V6.864C132.521 5.808 131.993 5.296 130.969 5.296C130.089 5.296 129.129 5.904 129.129 7.376V12H127.113V0.608H129.129V4.848C129.673 4.096 130.521 3.552 131.641 3.552ZM139.887 12.192C137.439 12.192 135.807 10.512 135.807 7.872C135.807 5.232 137.423 3.552 139.887 3.552C142.047 3.552 143.487 4.784 143.727 6.72H141.711C141.519 5.696 140.783 5.232 139.887 5.232C138.687 5.232 137.871 6.064 137.871 7.872C137.871 9.68 138.719 10.512 139.887 10.512C140.799 10.512 141.583 10.016 141.743 8.928H143.759C143.535 10.944 141.999 12.192 139.887 12.192ZM149.279 3.616C149.455 3.616 149.599 3.616 149.775 3.648V5.504H149.263C147.775 5.504 146.879 6.24 146.879 7.808V12H144.863V3.744H146.815V5.216C147.215 4.288 147.999 3.616 149.279 3.616ZM157.803 12H155.787C155.659 11.776 155.595 11.392 155.563 10.992C155.019 11.76 154.123 12.192 152.907 12.192C151.147 12.192 149.931 11.312 149.931 9.712C149.931 8.336 150.763 7.36 153.099 7.136L154.347 7.024C155.115 6.928 155.515 6.688 155.515 6.08C155.515 5.44 155.179 5.056 154.011 5.056C152.859 5.056 152.379 5.36 152.299 6.368H150.315C150.427 4.624 151.451 3.552 154.027 3.552C156.491 3.552 157.467 4.544 157.467 6.032V10.432C157.467 11.024 157.579 11.68 157.803 12ZM153.387 10.752C154.459 10.752 155.515 10.176 155.515 8.736V7.984C155.307 8.176 155.003 8.272 154.571 8.32L153.483 8.448C152.363 8.576 151.995 8.976 151.995 9.632C151.995 10.32 152.459 10.752 153.387 10.752ZM162.466 2.16C161.746 2.16 161.426 2.512 161.426 3.152V3.744H163.122V5.28H161.426V12H159.426V5.28H158.146V3.744H159.426V3.12C159.426 1.664 160.146 0.559999 162.13 0.559999C162.45 0.559999 162.882 0.575999 163.17 0.608V2.16H162.466ZM168.636 5.28H167.004V9.744C167.004 10.288 167.276 10.464 167.948 10.464H168.636V12C168.268 12.032 167.9 12.064 167.58 12.064C165.836 12.064 165.004 11.472 165.004 9.952V5.28H163.724V3.744H165.004V1.344H167.004V3.744H168.636V5.28Z", fill: "currentColor" }))));
4048
+ return u("footer", { key: "e1344ae185ef1b8a83bb69ba88e2952ab1c75e70", class: "searchcraft-popover-footer" }, u("p", { key: "51874f4ce490e4f164b999e8c6f89710702e73bd", class: "searchcraft-popover-footer-results-info" }, this.searchResultsCount ? `${ta(this.searchResultsCount)} Results Found` : " "), u("a", { key: "5476e24cc3fa7fa265bd2b5cba43c8a70d8609ca", class: "searchcraft-popover-footer-link", href: "https://searchcraft.io/", target: "_blank", rel: "noreferrer" }, u("svg", { key: "0a4edf94e9e40a96a93a4e7ba1ffbd081e51b585", class: "searchcraft-popover-footer-link-image", width: "169", height: "16", viewBox: "0 0 169 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, u("title", { key: "67813a626922d709a4409028cb0f3f1ce3e2cfe8" }, "Powered by Searchcraft"), u("path", { key: "bf9e46a5f9783edd7167c1c5c1256d0200053969", d: "M5.07288 0.608C7.60088 0.608 8.84888 2.064 8.84888 4.112C8.84888 6.16 7.60088 7.616 5.07288 7.616H1.68088V12H0.336875V0.608H5.07288ZM5.07288 6.4C6.67288 6.4 7.45688 5.552 7.45688 4.112C7.45688 2.672 6.67288 1.824 5.07288 1.824H1.68088V6.4H5.07288ZM13.31 12.192C10.99 12.192 9.31 10.512 9.31 7.872C9.31 5.232 10.99 3.552 13.31 3.552C15.63 3.552 17.31 5.232 17.31 7.872C17.31 10.512 15.63 12.192 13.31 12.192ZM13.31 11.04C14.91 11.04 15.966 9.872 15.966 7.872C15.966 5.872 14.91 4.704 13.31 4.704C11.71 4.704 10.654 5.872 10.654 7.872C10.654 9.872 11.71 11.04 13.31 11.04ZM28.3826 3.744H29.7586L27.0066 12H25.6626L24.4466 8.176C24.1586 7.264 23.8706 6.304 23.6146 5.376C23.3426 6.304 23.0546 7.264 22.7666 8.176L21.5666 12H20.2226L17.4706 3.744H18.8466L20.0146 7.472C20.3346 8.48 20.6226 9.472 20.9106 10.48C21.1826 9.472 21.4706 8.48 21.7906 7.472L22.9426 3.744H24.2866L25.4386 7.472C25.7426 8.464 26.0466 9.456 26.3346 10.448C26.6066 9.456 26.9106 8.464 27.2146 7.472L28.3826 3.744ZM37.5194 7.872V8.32H31.2474C31.3754 10.176 32.3514 11.024 33.7914 11.024C34.9594 11.024 35.6954 10.416 35.9834 9.488H37.3114C36.9114 11.04 35.7274 12.192 33.7594 12.192C31.5034 12.192 29.9194 10.544 29.9194 7.872C29.9194 5.28 31.4394 3.552 33.7274 3.552C36.1914 3.552 37.5194 5.504 37.5194 7.872ZM33.7274 4.72C32.4314 4.72 31.4874 5.536 31.2794 7.168H36.1434C36.0154 5.808 35.1994 4.72 33.7274 4.72ZM42.9101 3.616C43.0381 3.616 43.1661 3.616 43.3421 3.632V4.864H43.0221C41.3741 4.864 40.3181 5.696 40.3181 7.296V12H39.0381V3.744H40.2541V5.2C40.7181 4.336 41.5661 3.616 42.9101 3.616ZM51.2538 7.872V8.32H44.9818C45.1098 10.176 46.0858 11.024 47.5258 11.024C48.6938 11.024 49.4298 10.416 49.7178 9.488H51.0458C50.6458 11.04 49.4618 12.192 47.4938 12.192C45.2378 12.192 43.6538 10.544 43.6538 7.872C43.6538 5.28 45.1738 3.552 47.4618 3.552C49.9258 3.552 51.2538 5.504 51.2538 7.872ZM47.4618 4.72C46.1658 4.72 45.2218 5.536 45.0138 7.168H49.8778C49.7498 5.808 48.9338 4.72 47.4618 4.72ZM58.9805 0.608H60.2605V12H59.0445V10.72C58.4205 11.664 57.4445 12.192 56.2125 12.192C53.8925 12.192 52.3725 10.512 52.3725 7.872C52.3725 5.232 53.8925 3.552 56.2125 3.552C57.4125 3.552 58.3565 4.048 58.9805 4.928V0.608ZM56.3725 11.04C57.9725 11.04 59.0285 9.872 59.0285 7.872C59.0285 5.872 57.9725 4.704 56.3725 4.704C54.7725 4.704 53.7165 5.936 53.7165 7.936C53.7165 9.936 54.7725 11.04 56.3725 11.04ZM69.2736 3.552C71.5936 3.552 73.1136 5.232 73.1136 7.872C73.1136 10.512 71.5936 12.192 69.2736 12.192C68.0416 12.192 67.0656 11.664 66.4416 10.72V12H65.2256V0.608H66.5056V4.928C67.1296 4.048 68.0736 3.552 69.2736 3.552ZM69.1136 11.04C70.7136 11.04 71.7696 9.808 71.7696 7.808C71.7696 5.808 70.7136 4.704 69.1136 4.704C67.5136 4.704 66.4576 5.872 66.4576 7.872C66.4576 9.872 67.5136 11.04 69.1136 11.04ZM79.3795 3.744H80.7715L77.2835 13.296C76.7555 14.752 75.9075 15.184 74.5955 15.184C74.3395 15.184 74.0995 15.168 73.8275 15.136V14.064H74.5795C75.3955 14.064 75.8275 13.696 76.0835 13.04C76.1795 12.8 76.2755 12.528 76.3715 12.272L73.2675 3.744H74.6755L75.8435 7.184C76.2595 8.384 76.6435 9.568 77.0275 10.752C77.3955 9.568 77.7955 8.368 78.2115 7.168L79.3795 3.744ZM89.1546 12.256C86.1146 12.256 84.2906 10.864 84.2746 8.24H86.4026C86.4346 10.032 87.6346 10.512 89.2186 10.512C90.7066 10.512 91.5226 9.936 91.5226 8.864C91.5226 7.968 90.9306 7.568 89.1866 7.216L88.2266 7.024C86.0186 6.608 84.5626 5.632 84.5626 3.568C84.5626 1.68 86.0506 0.351999 88.7866 0.351999C91.9866 0.351999 93.3466 1.856 93.4266 4H91.3306C91.2506 2.784 90.6266 2.096 88.8186 2.096C87.4426 2.096 86.7706 2.64 86.7706 3.504C86.7706 4.416 87.2986 4.832 88.9946 5.184L89.9866 5.376C92.6746 5.904 93.7626 6.944 93.7626 8.752C93.7626 11.008 92.0026 12.256 89.1546 12.256ZM102.952 8.016V8.496H96.7758C96.9198 9.968 97.7518 10.624 98.9198 10.624C99.8798 10.624 100.504 10.176 100.808 9.44H102.744C102.328 11.12 100.888 12.192 98.9038 12.192C96.4718 12.192 94.7918 10.512 94.7918 7.872C94.7918 5.28 96.4238 3.552 98.8718 3.552C101.4 3.552 102.952 5.392 102.952 8.016ZM98.8558 5.12C97.7838 5.12 96.9838 5.728 96.7918 7.088H100.936C100.776 5.92 100.056 5.12 98.8558 5.12ZM111.599 12H109.583C109.455 11.776 109.391 11.392 109.359 10.992C108.815 11.76 107.919 12.192 106.703 12.192C104.943 12.192 103.727 11.312 103.727 9.712C103.727 8.336 104.559 7.36 106.895 7.136L108.143 7.024C108.911 6.928 109.311 6.688 109.311 6.08C109.311 5.44 108.975 5.056 107.807 5.056C106.655 5.056 106.175 5.36 106.095 6.368H104.111C104.223 4.624 105.247 3.552 107.823 3.552C110.287 3.552 111.263 4.544 111.263 6.032V10.432C111.263 11.024 111.375 11.68 111.599 12ZM107.183 10.752C108.255 10.752 109.311 10.176 109.311 8.736V7.984C109.103 8.176 108.799 8.272 108.367 8.32L107.279 8.448C106.159 8.576 105.791 8.976 105.791 9.632C105.791 10.32 106.255 10.752 107.183 10.752ZM117.216 3.616C117.392 3.616 117.536 3.616 117.712 3.648V5.504H117.2C115.712 5.504 114.816 6.24 114.816 7.808V12H112.8V3.744H114.752V5.216C115.152 4.288 115.936 3.616 117.216 3.616ZM122.137 12.192C119.689 12.192 118.057 10.512 118.057 7.872C118.057 5.232 119.673 3.552 122.137 3.552C124.297 3.552 125.737 4.784 125.977 6.72H123.961C123.769 5.696 123.033 5.232 122.137 5.232C120.937 5.232 120.121 6.064 120.121 7.872C120.121 9.68 120.969 10.512 122.137 10.512C123.049 10.512 123.833 10.016 123.993 8.928H126.009C125.785 10.944 124.249 12.192 122.137 12.192ZM131.641 3.552C133.369 3.552 134.537 4.56 134.537 6.528V12H132.521V6.864C132.521 5.808 131.993 5.296 130.969 5.296C130.089 5.296 129.129 5.904 129.129 7.376V12H127.113V0.608H129.129V4.848C129.673 4.096 130.521 3.552 131.641 3.552ZM139.887 12.192C137.439 12.192 135.807 10.512 135.807 7.872C135.807 5.232 137.423 3.552 139.887 3.552C142.047 3.552 143.487 4.784 143.727 6.72H141.711C141.519 5.696 140.783 5.232 139.887 5.232C138.687 5.232 137.871 6.064 137.871 7.872C137.871 9.68 138.719 10.512 139.887 10.512C140.799 10.512 141.583 10.016 141.743 8.928H143.759C143.535 10.944 141.999 12.192 139.887 12.192ZM149.279 3.616C149.455 3.616 149.599 3.616 149.775 3.648V5.504H149.263C147.775 5.504 146.879 6.24 146.879 7.808V12H144.863V3.744H146.815V5.216C147.215 4.288 147.999 3.616 149.279 3.616ZM157.803 12H155.787C155.659 11.776 155.595 11.392 155.563 10.992C155.019 11.76 154.123 12.192 152.907 12.192C151.147 12.192 149.931 11.312 149.931 9.712C149.931 8.336 150.763 7.36 153.099 7.136L154.347 7.024C155.115 6.928 155.515 6.688 155.515 6.08C155.515 5.44 155.179 5.056 154.011 5.056C152.859 5.056 152.379 5.36 152.299 6.368H150.315C150.427 4.624 151.451 3.552 154.027 3.552C156.491 3.552 157.467 4.544 157.467 6.032V10.432C157.467 11.024 157.579 11.68 157.803 12ZM153.387 10.752C154.459 10.752 155.515 10.176 155.515 8.736V7.984C155.307 8.176 155.003 8.272 154.571 8.32L153.483 8.448C152.363 8.576 151.995 8.976 151.995 9.632C151.995 10.32 152.459 10.752 153.387 10.752ZM162.466 2.16C161.746 2.16 161.426 2.512 161.426 3.152V3.744H163.122V5.28H161.426V12H159.426V5.28H158.146V3.744H159.426V3.12C159.426 1.664 160.146 0.559999 162.13 0.559999C162.45 0.559999 162.882 0.575999 163.17 0.608V2.16H162.466ZM168.636 5.28H167.004V9.744C167.004 10.288 167.276 10.464 167.948 10.464H168.636V12C168.268 12.032 167.9 12.064 167.58 12.064C165.836 12.064 165.004 11.472 165.004 9.952V5.28H163.724V3.744H165.004V1.344H167.004V3.744H168.636V5.28Z", fill: "currentColor" }))));
3998
4049
  }
3999
4050
  }, [0, "searchcraft-popover-footer", {
4000
4051
  searchResultsCount: [32]
4001
4052
  }]);
4002
- function da() {
4053
+ function fa() {
4003
4054
  if (typeof customElements > "u")
4004
4055
  return;
4005
4056
  ["searchcraft-popover-footer"].forEach((t) => {
@@ -4010,7 +4061,7 @@ function da() {
4010
4061
  }
4011
4062
  });
4012
4063
  }
4013
- const _c = da, Ic = /* @__PURE__ */ D(class extends F {
4064
+ const _c = fa, Ic = /* @__PURE__ */ D(class extends L {
4014
4065
  constructor() {
4015
4066
  super();
4016
4067
  f(this, "item");
@@ -4046,7 +4097,7 @@ const _c = da, Ic = /* @__PURE__ */ D(class extends F {
4046
4097
  disconnectedCallback() {
4047
4098
  }
4048
4099
  render() {
4049
- return h("div", { key: "63a2f070ce71cd1330105c03985e32cd1f228b29", class: "searchcraft-popover-list-item" }, h("a", { key: "d9bb09248be9be235147acdfeed1a9f29cd123a2", class: "searchcraft-popover-list-item-link", href: this.href, onClick: this.handleLinkClick.bind(this) }, this.imageSource && h("div", { key: "6af7c3e754885730d8651a593f13b7b5b704a26d", class: "searchcraft-popover-list-item-image-wrapper" }, h("img", { key: "74c7e53467efd83ae95439a7065c1de2748113f5", alt: this.imageAlt, src: this.imageSource, class: "searchcraft-popover-list-item-image" })), h("div", { key: "25a12e5cf582b248773005f5fb58f7a15304d2d1", class: "searchcraft-popover-list-item-content" }, this.title && h("p", { key: "8169f7730feb832178adbc9bdb14a089e955a2ad", class: "searchcraft-popover-list-item-content-title" }, this.title), this.subtitle && h("p", { key: "96812df1bab635e3865bdfdb31f133ca629d800e", class: "searchcraft-popover-list-item-content-subtitle" }, this.subtitle))));
4100
+ return u("div", { key: "63a2f070ce71cd1330105c03985e32cd1f228b29", class: "searchcraft-popover-list-item" }, u("a", { key: "d9bb09248be9be235147acdfeed1a9f29cd123a2", class: "searchcraft-popover-list-item-link", href: this.href, onClick: this.handleLinkClick.bind(this) }, this.imageSource && u("div", { key: "6af7c3e754885730d8651a593f13b7b5b704a26d", class: "searchcraft-popover-list-item-image-wrapper" }, u("img", { key: "74c7e53467efd83ae95439a7065c1de2748113f5", alt: this.imageAlt, src: this.imageSource, class: "searchcraft-popover-list-item-image" })), u("div", { key: "25a12e5cf582b248773005f5fb58f7a15304d2d1", class: "searchcraft-popover-list-item-content" }, this.title && u("p", { key: "8169f7730feb832178adbc9bdb14a089e955a2ad", class: "searchcraft-popover-list-item-content-title" }, this.title), this.subtitle && u("p", { key: "96812df1bab635e3865bdfdb31f133ca629d800e", class: "searchcraft-popover-list-item-content-subtitle" }, this.subtitle))));
4050
4101
  }
4051
4102
  }, [0, "searchcraft-popover-list-item", {
4052
4103
  item: [16],
@@ -4058,7 +4109,7 @@ const _c = da, Ic = /* @__PURE__ */ D(class extends F {
4058
4109
  imageSource: [32],
4059
4110
  imageAlt: [32]
4060
4111
  }]);
4061
- function gr() {
4112
+ function vr() {
4062
4113
  if (typeof customElements > "u")
4063
4114
  return;
4064
4115
  ["searchcraft-popover-list-item"].forEach((t) => {
@@ -4069,8 +4120,8 @@ function gr() {
4069
4120
  }
4070
4121
  });
4071
4122
  }
4072
- var Es;
4073
- const Ac = /* @__PURE__ */ D(class extends F {
4123
+ var Rs;
4124
+ const Ac = /* @__PURE__ */ D(class extends L {
4074
4125
  constructor() {
4075
4126
  super();
4076
4127
  /**
@@ -4085,46 +4136,46 @@ const Ac = /* @__PURE__ */ D(class extends F {
4085
4136
  f(this, "adClientResponseItems");
4086
4137
  f(this, "searchResultsPage");
4087
4138
  f(this, "searchResultsPerPage");
4088
- f(this, "config", (Es = $.getState().core) == null ? void 0 : Es.config);
4139
+ f(this, "config", (Rs = $.getState().core) == null ? void 0 : Rs.config);
4089
4140
  this.__registerHost();
4090
4141
  }
4091
4142
  renderWithADMAds() {
4092
4143
  var r, s;
4093
- return h("div", { class: "searchcraft-popover-list-view" }, (r = this.adClientResponseItems) == null ? void 0 : r.map((a) => h("searchcraft-ad", { adClientResponseItem: a, adContainerId: X(), adSource: "adMarketplace", key: a.id })), (s = this.searchClientResponseItems) == null ? void 0 : s.map((a, o) => h("searchcraft-popover-list-item", { item: a, key: a.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + o })));
4144
+ return u("div", { class: "searchcraft-popover-list-view" }, (r = this.adClientResponseItems) == null ? void 0 : r.map((a) => u("searchcraft-ad", { adClientResponseItem: a, adContainerId: X(), adSource: "adMarketplace", key: a.id })), (s = this.searchClientResponseItems) == null ? void 0 : s.map((a, o) => u("searchcraft-popover-list-item", { item: a, key: a.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + o })));
4094
4145
  }
4095
4146
  renderWithCustomAds() {
4096
- var l, u, i, p;
4097
- const r = [], s = ((l = this.config) == null ? void 0 : l.customAdInterstitialInterval) || 0, a = ((u = this.config) == null ? void 0 : u.customAdInterstitialQuantity) || 1, o = ((i = this.config) == null ? void 0 : i.customAdStartQuantity) || 0, n = ((p = this.config) == null ? void 0 : p.customAdEndQuantity) || 0, c = this.searchClientResponseItems || [];
4147
+ var i, h, l, p;
4148
+ const r = [], s = ((i = this.config) == null ? void 0 : i.customAdInterstitialInterval) || 0, a = ((h = this.config) == null ? void 0 : h.customAdInterstitialQuantity) || 1, o = ((l = this.config) == null ? void 0 : l.customAdStartQuantity) || 0, n = ((p = this.config) == null ? void 0 : p.customAdEndQuantity) || 0, c = this.searchClientResponseItems || [];
4098
4149
  for (let m = 0; m < o; m++)
4099
- r.push(h("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${m}-ad` }));
4150
+ r.push(u("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${m}-ad` }));
4100
4151
  c.forEach((m, v) => {
4101
4152
  if (s && v % s === 0 && v + s < c.length && v >= s)
4102
4153
  for (let b = 0; b < a; b++)
4103
- r.push(h("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${m.id}-ad-${b}` }));
4104
- r.push(h("searchcraft-popover-list-item", { item: m, key: m.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + v }));
4154
+ r.push(u("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${m.id}-ad-${b}` }));
4155
+ r.push(u("searchcraft-popover-list-item", { item: m, key: m.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + v }));
4105
4156
  });
4106
4157
  for (let m = 0; m < n; m++)
4107
- r.push(h("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${m}-ad` }));
4108
- return h("div", { class: "searchcraft-popover-list-view" }, r);
4158
+ r.push(u("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${m}-ad` }));
4159
+ return u("div", { class: "searchcraft-popover-list-view" }, r);
4109
4160
  }
4110
4161
  renderWithNativoAds() {
4111
- var u, i, p, m, v;
4112
- const r = [], s = ((u = this.config) == null ? void 0 : u.nativoAdInterstialStartIndex) || 0, a = ((i = this.config) == null ? void 0 : i.nativoAdInterstitialInterval) || 0, o = ((p = this.config) == null ? void 0 : p.nativoAdInterstitialQuantity) || 1, n = ((m = this.config) == null ? void 0 : m.nativoAdStartQuantity) || 0, c = ((v = this.config) == null ? void 0 : v.nativoAdEndQuantity) || 0, l = this.searchClientResponseItems || [];
4162
+ var h, l, p, m, v;
4163
+ const r = [], s = ((h = this.config) == null ? void 0 : h.nativoAdInterstialStartIndex) || 0, a = ((l = this.config) == null ? void 0 : l.nativoAdInterstitialInterval) || 0, o = ((p = this.config) == null ? void 0 : p.nativoAdInterstitialQuantity) || 1, n = ((m = this.config) == null ? void 0 : m.nativoAdStartQuantity) || 0, c = ((v = this.config) == null ? void 0 : v.nativoAdEndQuantity) || 0, i = this.searchClientResponseItems || [];
4113
4164
  for (let b = 0; b < n; b++)
4114
- r.push(h("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${b}-ad` }));
4115
- l.forEach((b, T) => {
4116
- if (a && (T + s) % a === 0 && T + a < l.length && T >= a)
4165
+ r.push(u("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${b}-ad` }));
4166
+ i.forEach((b, T) => {
4167
+ if (a && (T + s) % a === 0 && T + a < i.length && T >= a)
4117
4168
  for (let _ = 0; _ < o; _++)
4118
- r.push(h("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${b.id}-ad-${_}` }));
4119
- r.push(h("searchcraft-popover-list-item", { item: b, key: b.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + T }));
4169
+ r.push(u("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${b.id}-ad-${_}` }));
4170
+ r.push(u("searchcraft-popover-list-item", { item: b, key: b.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + T }));
4120
4171
  });
4121
4172
  for (let b = 0; b < c; b++)
4122
- r.push(h("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${b}-ad` }));
4123
- return h("div", { class: "searchcraft-popover-list-view" }, r);
4173
+ r.push(u("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${b}-ad` }));
4174
+ return u("div", { class: "searchcraft-popover-list-view" }, r);
4124
4175
  }
4125
4176
  renderWithNoAds() {
4126
4177
  var r;
4127
- return h("div", { class: "searchcraft-popover-list-view" }, (r = this.searchClientResponseItems) == null ? void 0 : r.map((s, a) => h("searchcraft-popover-list-item", { item: s, key: s.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + a })));
4178
+ return u("div", { class: "searchcraft-popover-list-view" }, (r = this.searchClientResponseItems) == null ? void 0 : r.map((s, a) => u("searchcraft-popover-list-item", { item: s, key: s.id, popoverResultMappings: this.popoverResultMappings, documentPosition: this.searchResultsPerPage * (this.searchResultsPage - 1) + a })));
4128
4179
  }
4129
4180
  render() {
4130
4181
  var r;
@@ -4146,7 +4197,7 @@ const Ac = /* @__PURE__ */ D(class extends F {
4146
4197
  searchResultsPage: [2, "search-results-page"],
4147
4198
  searchResultsPerPage: [2, "search-results-per-page"]
4148
4199
  }]);
4149
- function fa() {
4200
+ function pa() {
4150
4201
  if (typeof customElements > "u")
4151
4202
  return;
4152
4203
  ["searchcraft-popover-list-view", "searchcraft-ad", "searchcraft-popover-list-item"].forEach((t) => {
@@ -4155,15 +4206,15 @@ function fa() {
4155
4206
  customElements.get(t) || customElements.define(t, Ac);
4156
4207
  break;
4157
4208
  case "searchcraft-ad":
4158
- customElements.get(t) || kt();
4209
+ customElements.get(t) || Et();
4159
4210
  break;
4160
4211
  case "searchcraft-popover-list-item":
4161
- customElements.get(t) || gr();
4212
+ customElements.get(t) || vr();
4162
4213
  break;
4163
4214
  }
4164
4215
  });
4165
4216
  }
4166
- const pa = /* @__PURE__ */ D(class extends F {
4217
+ const ma = /* @__PURE__ */ D(class extends L {
4167
4218
  constructor() {
4168
4219
  super();
4169
4220
  /**
@@ -4294,21 +4345,21 @@ const pa = /* @__PURE__ */ D(class extends F {
4294
4345
  }
4295
4346
  renderInlinePopover() {
4296
4347
  const r = this.hasResultsToShow && this.isFocused;
4297
- return h("div", { class: ee("searchcraft-popover-form searchcraft-popover-form-inline", {
4348
+ return u("div", { class: ee("searchcraft-popover-form searchcraft-popover-form-inline", {
4298
4349
  "searchcraft-popover-form-active": r
4299
- }) }, h("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-inline-input" }, h("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this) })), r && h("div", { class: "searchcraft-popover-form-inline-wrapper" }, h("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage }), h("searchcraft-popover-footer", null)));
4350
+ }) }, u("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-inline-input" }, u("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this) })), r && u("div", { class: "searchcraft-popover-form-inline-wrapper" }, u("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage }), u("searchcraft-popover-footer", null)));
4300
4351
  }
4301
4352
  renderModalPopover() {
4302
4353
  if (this.isPopoverVisibleInState)
4303
- return h("div", { class: ee("searchcraft-popover-form searchcraft-popover-form-modal", {
4354
+ return u("div", { class: ee("searchcraft-popover-form searchcraft-popover-form-modal", {
4304
4355
  "searchcraft-popover-form-active": this.hasResultsToShow
4305
- }) }, h("div", { class: "searchcraft-popover-form-modal-backdrop", onClick: this.handleModalBackdropClick }), h("div", { class: "searchcraft-popover-form-modal-wrapper" }, h("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-modal-input" }, h("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), h("button", { type: "button", class: "searchcraft-popover-form-cancel-button searchcraft-popover-form-modal-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), h("div", { class: "searchcraft-popover-form-modal-popover-list-view" }, this.hasResultsToShow && h("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage })), h("searchcraft-popover-footer", null)));
4356
+ }) }, u("div", { class: "searchcraft-popover-form-modal-backdrop", onClick: this.handleModalBackdropClick }), u("div", { class: "searchcraft-popover-form-modal-wrapper" }, u("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-modal-input" }, u("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), u("button", { type: "button", class: "searchcraft-popover-form-cancel-button searchcraft-popover-form-modal-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), u("div", { class: "searchcraft-popover-form-modal-popover-list-view" }, this.hasResultsToShow && u("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage })), u("searchcraft-popover-footer", null)));
4306
4357
  }
4307
4358
  renderFullscreenPopover() {
4308
4359
  if (this.isPopoverVisibleInState)
4309
- return h("div", { class: ee("searchcraft-popover-form searchcraft-popover-form-fullscreen", {
4360
+ return u("div", { class: ee("searchcraft-popover-form searchcraft-popover-form-fullscreen", {
4310
4361
  "searchcraft-popover-form-active": this.hasResultsToShow
4311
- }) }, h("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-fullscreen-input" }, h("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), h("button", { type: "button", class: "searchcraft-popover-form-cancel-button searchcraft-popover-form-fullscreen-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), h("div", { class: "searchcraft-popover-form-fullscreen-popover-list-view" }, this.hasResultsToShow && h("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage })), h("searchcraft-popover-footer", null));
4362
+ }) }, u("div", { class: "searchcraft-popover-form-input searchcraft-popover-form-fullscreen-input" }, u("searchcraft-input-form", { onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), u("button", { type: "button", class: "searchcraft-popover-form-cancel-button searchcraft-popover-form-fullscreen-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), u("div", { class: "searchcraft-popover-form-fullscreen-popover-list-view" }, this.hasResultsToShow && u("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, searchClientResponseItems: this.searchClientResponseItems, adClientResponseItems: this.adClientResponseItems, searchResultsPage: this.searchResultsPage, searchResultsPerPage: this.searchResultsPerPage })), u("searchcraft-popover-footer", null));
4312
4363
  }
4313
4364
  render() {
4314
4365
  switch (this.type) {
@@ -4338,45 +4389,45 @@ const pa = /* @__PURE__ */ D(class extends F {
4338
4389
  searchResultsPerPage: [32],
4339
4390
  modalElement: [32]
4340
4391
  }]);
4341
- function ma() {
4392
+ function ga() {
4342
4393
  if (typeof customElements > "u")
4343
4394
  return;
4344
4395
  ["searchcraft-popover-form", "searchcraft-ad", "searchcraft-button", "searchcraft-error-message", "searchcraft-input-form", "searchcraft-input-label", "searchcraft-popover-footer", "searchcraft-popover-form", "searchcraft-popover-list-item", "searchcraft-popover-list-view"].forEach((t) => {
4345
4396
  switch (t) {
4346
4397
  case "searchcraft-popover-form":
4347
- customElements.get(t) || customElements.define(t, pa);
4398
+ customElements.get(t) || customElements.define(t, ma);
4348
4399
  break;
4349
4400
  case "searchcraft-ad":
4350
- customElements.get(t) || kt();
4401
+ customElements.get(t) || Et();
4351
4402
  break;
4352
4403
  case "searchcraft-button":
4353
- customElements.get(t) || Et();
4404
+ customElements.get(t) || kt();
4354
4405
  break;
4355
4406
  case "searchcraft-error-message":
4356
- customElements.get(t) || xt();
4407
+ customElements.get(t) || Rt();
4357
4408
  break;
4358
4409
  case "searchcraft-input-form":
4359
- customElements.get(t) || oa();
4410
+ customElements.get(t) || ca();
4360
4411
  break;
4361
4412
  case "searchcraft-input-label":
4362
- customElements.get(t) || mr();
4413
+ customElements.get(t) || gr();
4363
4414
  break;
4364
4415
  case "searchcraft-popover-footer":
4365
- customElements.get(t) || da();
4416
+ customElements.get(t) || fa();
4366
4417
  break;
4367
4418
  case "searchcraft-popover-form":
4368
- customElements.get(t) || ma();
4419
+ customElements.get(t) || ga();
4369
4420
  break;
4370
4421
  case "searchcraft-popover-list-item":
4371
- customElements.get(t) || gr();
4422
+ customElements.get(t) || vr();
4372
4423
  break;
4373
4424
  case "searchcraft-popover-list-view":
4374
- customElements.get(t) || fa();
4425
+ customElements.get(t) || pa();
4375
4426
  break;
4376
4427
  }
4377
4428
  });
4378
4429
  }
4379
- const Mc = pa, ga = ma, Oc = gr, Lc = fa, va = /* @__PURE__ */ D(class extends F {
4430
+ const Mc = ma, va = ga, Oc = vr, Fc = pa, ba = /* @__PURE__ */ D(class extends L {
4380
4431
  constructor() {
4381
4432
  super();
4382
4433
  /**
@@ -4405,11 +4456,11 @@ const Mc = pa, ga = ma, Oc = gr, Lc = fa, va = /* @__PURE__ */ D(class extends F
4405
4456
  this.unsubscribe && this.unsubscribe();
4406
4457
  }
4407
4458
  render() {
4408
- return !this.searchTerm || this.searchResultsCount === 0 ? null : h("p", { class: "searchcraft-results-info" }, typeof this.template < "u" ? this.template({
4459
+ return !this.searchTerm || this.searchResultsCount === 0 ? null : u("p", { class: "searchcraft-results-info" }, typeof this.template < "u" ? this.template({
4409
4460
  range: [Number(this.range[0]), Number(this.range[1])],
4410
4461
  count: this.count,
4411
4462
  responseTime: this.responseTime
4412
- }, { html: tt }) : `${ea(this.count)} results found in ${this.responseTime}ms`);
4463
+ }, { html: tt }) : `${ta(this.count)} results found in ${this.responseTime}ms`);
4413
4464
  }
4414
4465
  }, [0, "searchcraft-results-info", {
4415
4466
  template: [16],
@@ -4421,18 +4472,18 @@ const Mc = pa, ga = ma, Oc = gr, Lc = fa, va = /* @__PURE__ */ D(class extends F
4421
4472
  range: [32],
4422
4473
  responseTime: [32]
4423
4474
  }]);
4424
- function Fc() {
4475
+ function Lc() {
4425
4476
  if (typeof customElements > "u")
4426
4477
  return;
4427
4478
  ["searchcraft-results-info"].forEach((t) => {
4428
4479
  switch (t) {
4429
4480
  case "searchcraft-results-info":
4430
- customElements.get(t) || customElements.define(t, va);
4481
+ customElements.get(t) || customElements.define(t, ba);
4431
4482
  break;
4432
4483
  }
4433
4484
  });
4434
4485
  }
4435
- const Dc = va, ba = Fc, Nc = /* @__PURE__ */ D(class extends F {
4486
+ const Dc = ba, ya = Lc, Nc = /* @__PURE__ */ D(class extends L {
4436
4487
  constructor() {
4437
4488
  super();
4438
4489
  f(this, "item");
@@ -4450,18 +4501,18 @@ const Dc = va, ba = Fc, Nc = /* @__PURE__ */ D(class extends F {
4450
4501
  f(this, "template");
4451
4502
  f(this, "templateHtml");
4452
4503
  f(this, "handleResultContainerClick", (r) => {
4453
- var i;
4504
+ var l;
4454
4505
  const s = $.getState(), a = s.getSearchcraftCore();
4455
4506
  if (!r.target)
4456
4507
  return;
4457
4508
  const n = r.target.closest("a");
4458
- if (!n || !((i = this.hostElement) != null && i.contains(n)) || !a || !a.measureClient)
4509
+ if (!n || !((l = this.hostElement) != null && l.contains(n)) || !a || !a.measureClient)
4459
4510
  return;
4460
- const c = this.documentPosition, l = s.searchTerm, u = s.searchClientResponseItems.length || 0;
4511
+ const c = this.documentPosition, i = s.searchTerm, h = s.searchClientResponseItems.length || 0;
4461
4512
  a.measureClient.sendMeasureEvent("document_clicked", {
4462
4513
  document_position: c,
4463
- number_of_documents: u,
4464
- search_term: l
4514
+ number_of_documents: h,
4515
+ search_term: i
4465
4516
  });
4466
4517
  });
4467
4518
  f(this, "handleKeyDown", () => {
@@ -4485,7 +4536,7 @@ const Dc = va, ba = Fc, Nc = /* @__PURE__ */ D(class extends F {
4485
4536
  }
4486
4537
  render() {
4487
4538
  if (this.item)
4488
- return typeof this.template > "u" ? h("div", { class: "searchcraft-search-result searchcraft-search-result-no-template", onClick: this.handleResultContainerClick, onKeyDown: this.handleKeyDown }, Object.entries(this.item.document).map(([r, s]) => h("p", { key: r }, h("strong", null, r), ": ", s))) : h("div", { class: "searchcraft-search-result", innerHTML: this.templateHtml, onClick: this.handleResultContainerClick, onKeyDown: this.handleKeyDown });
4539
+ return typeof this.template > "u" ? u("div", { class: "searchcraft-search-result searchcraft-search-result-no-template", onClick: this.handleResultContainerClick, onKeyDown: this.handleKeyDown }, Object.entries(this.item.document).map(([r, s]) => u("p", { key: r }, u("strong", null, r), ": ", s))) : u("div", { class: "searchcraft-search-result", innerHTML: this.templateHtml, onClick: this.handleResultContainerClick, onKeyDown: this.handleKeyDown });
4489
4540
  }
4490
4541
  }, [0, "searchcraft-search-result", {
4491
4542
  item: [16],
@@ -4494,7 +4545,7 @@ const Dc = va, ba = Fc, Nc = /* @__PURE__ */ D(class extends F {
4494
4545
  template: [16],
4495
4546
  templateHtml: [32]
4496
4547
  }]);
4497
- function ya() {
4548
+ function Ca() {
4498
4549
  if (typeof customElements > "u")
4499
4550
  return;
4500
4551
  ["searchcraft-search-result"].forEach((t) => {
@@ -4505,7 +4556,7 @@ function ya() {
4505
4556
  }
4506
4557
  });
4507
4558
  }
4508
- const Hc = ya, Ca = /* @__PURE__ */ D(class extends F {
4559
+ const Hc = Ca, Sa = /* @__PURE__ */ D(class extends L {
4509
4560
  constructor() {
4510
4561
  super();
4511
4562
  /**
@@ -4546,50 +4597,50 @@ const Hc = ya, Ca = /* @__PURE__ */ D(class extends F {
4546
4597
  ], this.isSearchInProgress = r.isSearchInProgress, this.searchClientResponseItems = [...r.searchClientResponseItems], this.searchResultsPage = r.searchResultsPage, this.searchResultsPerPage = r.searchResultsPerPage, this.searchTerm = r.searchTerm;
4547
4598
  }
4548
4599
  renderEmptyState() {
4549
- return h("div", { class: "searchcraft-search-results-empty-state" }, h("slot", { name: "empty-search" }));
4600
+ return u("div", { class: "searchcraft-search-results-empty-state" }, u("slot", { name: "empty-search" }));
4550
4601
  }
4551
4602
  renderNoResultsFoundState() {
4552
- return h("div", { class: "searchcraft-search-results" }, h("div", { class: "searchcraft-search-results-error-message" }, h("searchcraft-error-message", null, 'No search results found for "', this.searchTerm, '" query.')));
4603
+ return u("div", { class: "searchcraft-search-results" }, u("div", { class: "searchcraft-search-results-error-message" }, u("searchcraft-error-message", null, 'No search results found for "', this.searchTerm, '" query.')));
4553
4604
  }
4554
4605
  renderWithADMAds() {
4555
4606
  var s, a, o;
4556
4607
  const r = (s = this.searchClientResponseItems) != null && s.length ? this.searchClientResponseItems : (a = this.initialSearchClientResponseItems) != null && a.length ? this.initialSearchClientResponseItems : [];
4557
- return h("div", { class: "searchcraft-search-results" }, (o = this.adClientResponseItems) == null ? void 0 : o.map((n) => h("searchcraft-ad", { adSource: "adMarketplace", adClientResponseItem: n, adContainerId: X(), key: n.id })), r.map((n, c) => h("searchcraft-search-result", { key: n.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + c, index: c, item: n, template: this.template })));
4608
+ return u("div", { class: "searchcraft-search-results" }, (o = this.adClientResponseItems) == null ? void 0 : o.map((n) => u("searchcraft-ad", { adSource: "adMarketplace", adClientResponseItem: n, adContainerId: X(), key: n.id })), r.map((n, c) => u("searchcraft-search-result", { key: n.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + c, index: c, item: n, template: this.template })));
4558
4609
  }
4559
4610
  renderWithCustomAds() {
4560
- var l, u, i, p, m, v;
4561
- const r = [], s = ((l = this.config) == null ? void 0 : l.customAdInterstitialInterval) || 0, a = ((u = this.config) == null ? void 0 : u.customAdInterstitialQuantity) || 1, o = ((i = this.config) == null ? void 0 : i.customAdStartQuantity) || 0, n = ((p = this.config) == null ? void 0 : p.customAdEndQuantity) || 0, c = (m = this.searchClientResponseItems) != null && m.length ? this.searchClientResponseItems : (v = this.initialSearchClientResponseItems) != null && v.length ? this.initialSearchClientResponseItems : [];
4611
+ var i, h, l, p, m, v;
4612
+ const r = [], s = ((i = this.config) == null ? void 0 : i.customAdInterstitialInterval) || 0, a = ((h = this.config) == null ? void 0 : h.customAdInterstitialQuantity) || 1, o = ((l = this.config) == null ? void 0 : l.customAdStartQuantity) || 0, n = ((p = this.config) == null ? void 0 : p.customAdEndQuantity) || 0, c = (m = this.searchClientResponseItems) != null && m.length ? this.searchClientResponseItems : (v = this.initialSearchClientResponseItems) != null && v.length ? this.initialSearchClientResponseItems : [];
4562
4613
  for (let b = 0; b < o; b++)
4563
- r.push(h("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${b}-ad` }));
4614
+ r.push(u("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${b}-ad` }));
4564
4615
  c.forEach((b, T) => {
4565
4616
  if (s && T % s === 0 && T + s < c.length && T >= s)
4566
4617
  for (let _ = 0; _ < a; _++)
4567
- r.push(h("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${b.id}-ad-${_}` }));
4568
- r.push(h("searchcraft-search-result", { key: b.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + T, index: T, item: b, template: this.template }));
4618
+ r.push(u("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${b.id}-ad-${_}` }));
4619
+ r.push(u("searchcraft-search-result", { key: b.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + T, index: T, item: b, template: this.template }));
4569
4620
  });
4570
4621
  for (let b = 0; b < n; b++)
4571
- r.push(h("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${b}-ad` }));
4572
- return h("div", { class: "searchcraft-search-results" }, r);
4622
+ r.push(u("searchcraft-ad", { adSource: "Custom", adContainerId: X(), key: `${b}-ad` }));
4623
+ return u("div", { class: "searchcraft-search-results" }, r);
4573
4624
  }
4574
4625
  renderWithNativoAds() {
4575
- var u, i, p, m, v, b, T;
4576
- const r = [], s = ((u = this.config) == null ? void 0 : u.nativoAdInterstialStartIndex) || 0, a = ((i = this.config) == null ? void 0 : i.nativoAdInterstitialInterval) || 0, o = ((p = this.config) == null ? void 0 : p.nativoAdInterstitialQuantity) || 1, n = ((m = this.config) == null ? void 0 : m.nativoAdStartQuantity) || 0, c = ((v = this.config) == null ? void 0 : v.nativoAdEndQuantity) || 0, l = (b = this.searchClientResponseItems) != null && b.length ? this.searchClientResponseItems : (T = this.initialSearchClientResponseItems) != null && T.length ? this.initialSearchClientResponseItems : [];
4626
+ var h, l, p, m, v, b, T;
4627
+ const r = [], s = ((h = this.config) == null ? void 0 : h.nativoAdInterstialStartIndex) || 0, a = ((l = this.config) == null ? void 0 : l.nativoAdInterstitialInterval) || 0, o = ((p = this.config) == null ? void 0 : p.nativoAdInterstitialQuantity) || 1, n = ((m = this.config) == null ? void 0 : m.nativoAdStartQuantity) || 0, c = ((v = this.config) == null ? void 0 : v.nativoAdEndQuantity) || 0, i = (b = this.searchClientResponseItems) != null && b.length ? this.searchClientResponseItems : (T = this.initialSearchClientResponseItems) != null && T.length ? this.initialSearchClientResponseItems : [];
4577
4628
  for (let _ = 0; _ < n; _++)
4578
- r.push(h("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${_}-ad` }));
4579
- l.forEach((_, N) => {
4580
- if (a && (N + s) % a === 0 && N + a < l.length && N >= a)
4581
- for (let I = 0; I < o; I++)
4582
- r.push(h("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${_.id}-ad-${I}` }));
4583
- r.push(h("searchcraft-search-result", { key: _.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + N, index: N, item: _, template: this.template }));
4629
+ r.push(u("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${_}-ad` }));
4630
+ i.forEach((_, N) => {
4631
+ if (a && (N + s) % a === 0 && N + a < i.length && N >= a)
4632
+ for (let A = 0; A < o; A++)
4633
+ r.push(u("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${_.id}-ad-${A}` }));
4634
+ r.push(u("searchcraft-search-result", { key: _.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + N, index: N, item: _, template: this.template }));
4584
4635
  });
4585
4636
  for (let _ = 0; _ < c; _++)
4586
- r.push(h("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${_}-ad` }));
4587
- return h("div", { class: "searchcraft-search-results" }, r);
4637
+ r.push(u("searchcraft-ad", { adSource: "Nativo", adContainerId: X(), key: `${_}-ad` }));
4638
+ return u("div", { class: "searchcraft-search-results" }, r);
4588
4639
  }
4589
4640
  renderWithNoAds() {
4590
4641
  var s, a;
4591
4642
  const r = (s = this.searchClientResponseItems) != null && s.length ? this.searchClientResponseItems : (a = this.initialSearchClientResponseItems) != null && a.length ? this.initialSearchClientResponseItems : [];
4592
- return h("div", { class: "searchcraft-search-results" }, r.map((o, n) => h("searchcraft-search-result", { key: o.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + n, index: n, item: o, template: this.template })));
4643
+ return u("div", { class: "searchcraft-search-results" }, r.map((o, n) => u("searchcraft-search-result", { key: o.id, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + n, index: n, item: o, template: this.template })));
4593
4644
  }
4594
4645
  render() {
4595
4646
  var a;
@@ -4627,21 +4678,21 @@ function Uc() {
4627
4678
  ["searchcraft-search-results", "searchcraft-ad", "searchcraft-error-message", "searchcraft-search-result"].forEach((t) => {
4628
4679
  switch (t) {
4629
4680
  case "searchcraft-search-results":
4630
- customElements.get(t) || customElements.define(t, Ca);
4681
+ customElements.get(t) || customElements.define(t, Sa);
4631
4682
  break;
4632
4683
  case "searchcraft-ad":
4633
- customElements.get(t) || kt();
4684
+ customElements.get(t) || Et();
4634
4685
  break;
4635
4686
  case "searchcraft-error-message":
4636
- customElements.get(t) || xt();
4687
+ customElements.get(t) || Rt();
4637
4688
  break;
4638
4689
  case "searchcraft-search-result":
4639
- customElements.get(t) || ya();
4690
+ customElements.get(t) || Ca();
4640
4691
  break;
4641
4692
  }
4642
4693
  });
4643
4694
  }
4644
- const zc = Ca, Sa = Uc, Bc = /* @__PURE__ */ D(class extends F {
4695
+ const zc = Sa, wa = Uc, Bc = /* @__PURE__ */ D(class extends L {
4645
4696
  constructor() {
4646
4697
  super();
4647
4698
  /**
@@ -4690,7 +4741,7 @@ const zc = Ca, Sa = Uc, Bc = /* @__PURE__ */ D(class extends F {
4690
4741
  this.setSearchResultsPage(r);
4691
4742
  }
4692
4743
  render() {
4693
- return h("div", { key: "15ecbf48c824a161cd83bdab99dace8e44f1ab39", class: "searchcraft-select" }, this.label && h("label", { key: "aba433ae9c27c9405099cffcef923c3ad22d7fda", class: "searchcraft-select-label", id: this.labelId || `${this.inputId}-label`, htmlFor: this.inputId }, this.label), h("div", { key: "8df8a2ff05924c9c55cdd6e3827cd927cddab82a", class: "searchcraft-select-input-wrapper" }, h("select", { key: "1d5f492c2255f8ca1b6ea5e04a2726dda2f2c52f", "aria-labelledby": this.label ? this.labelId || `${this.inputId}-label` : void 0, class: "searchcraft-select-input", disabled: this.disabled, id: this.inputId, name: this.name, onChange: this.handleSelectChange }, (typeof this.options == "string" ? JSON.parse(this.options) : this.options).map(({ label: r, value: s, selected: a }) => h("option", { key: s, value: s, selected: a }, r))), h("svg", { key: "0ec6892b529f2e70027aadea47208582a65a97b7", class: "searchcraft-select-input-icon", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("title", { key: "bced6b62378491d1d1c629b602d7d033d912c761" }, "Select dropdown icon"), h("path", { key: "659f8ebf9129e2e7941da949d29688c41c1472bb", d: "M5 7.5L10 12.5L15 7.5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.caption && h("p", { key: "51217d926f68f79b6c3514f5fd769b56549fdce9", class: "searchcraft-select-caption" }, this.caption));
4744
+ return u("div", { key: "15ecbf48c824a161cd83bdab99dace8e44f1ab39", class: "searchcraft-select" }, this.label && u("label", { key: "aba433ae9c27c9405099cffcef923c3ad22d7fda", class: "searchcraft-select-label", id: this.labelId || `${this.inputId}-label`, htmlFor: this.inputId }, this.label), u("div", { key: "8df8a2ff05924c9c55cdd6e3827cd927cddab82a", class: "searchcraft-select-input-wrapper" }, u("select", { key: "1d5f492c2255f8ca1b6ea5e04a2726dda2f2c52f", "aria-labelledby": this.label ? this.labelId || `${this.inputId}-label` : void 0, class: "searchcraft-select-input", disabled: this.disabled, id: this.inputId, name: this.name, onChange: this.handleSelectChange }, (typeof this.options == "string" ? JSON.parse(this.options) : this.options).map(({ label: r, value: s, selected: a }) => u("option", { key: s, value: s, selected: a }, r))), u("svg", { key: "0ec6892b529f2e70027aadea47208582a65a97b7", class: "searchcraft-select-input-icon", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, u("title", { key: "bced6b62378491d1d1c629b602d7d033d912c761" }, "Select dropdown icon"), u("path", { key: "659f8ebf9129e2e7941da949d29688c41c1472bb", d: "M5 7.5L10 12.5L15 7.5", stroke: "currentColor", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), this.caption && u("p", { key: "51217d926f68f79b6c3514f5fd769b56549fdce9", class: "searchcraft-select-caption" }, this.caption));
4694
4745
  }
4695
4746
  }, [0, "searchcraft-select", {
4696
4747
  caption: [1],
@@ -4704,7 +4755,7 @@ const zc = Ca, Sa = Uc, Bc = /* @__PURE__ */ D(class extends F {
4704
4755
  setSearchResultsPage: [32],
4705
4756
  setSearchResultsPerPage: [32]
4706
4757
  }]);
4707
- function wa() {
4758
+ function Ea() {
4708
4759
  if (typeof customElements > "u")
4709
4760
  return;
4710
4761
  ["searchcraft-select"].forEach((t) => {
@@ -4715,7 +4766,7 @@ function wa() {
4715
4766
  }
4716
4767
  });
4717
4768
  }
4718
- const ka = /* @__PURE__ */ D(class extends F {
4769
+ const ka = /* @__PURE__ */ D(class extends L {
4719
4770
  constructor() {
4720
4771
  super();
4721
4772
  /**
@@ -4751,7 +4802,7 @@ const ka = /* @__PURE__ */ D(class extends F {
4751
4802
  }
4752
4803
  render() {
4753
4804
  if (!(!this.searchTerm || this.searchResultsPagesCount <= 1))
4754
- return h("div", { class: "searchcraft-search-results-per-page" }, h("div", { class: "searchcraft-search-results-per-page-select" }, h("label", { class: "searchcraft-search-results-per-page-select-label", htmlFor: "searchcraft-search-results-per-page-select-input" }, "Results Per Page"), h("div", { class: "searchcraft-search-results-per-page-select-input" }, h("searchcraft-select", { inputId: "searchcraft-search-results-per-page-select-input", name: "results-per-page", options: [...Array(5)].map((r, s) => {
4805
+ return u("div", { class: "searchcraft-search-results-per-page" }, u("div", { class: "searchcraft-search-results-per-page-select" }, u("label", { class: "searchcraft-search-results-per-page-select-label", htmlFor: "searchcraft-search-results-per-page-select-input" }, "Results Per Page"), u("div", { class: "searchcraft-search-results-per-page-select-input" }, u("searchcraft-select", { inputId: "searchcraft-search-results-per-page-select-input", name: "results-per-page", options: [...Array(5)].map((r, s) => {
4755
4806
  const a = this.initialSearchResultsPerPage + Number(this.increment) * s;
4756
4807
  return {
4757
4808
  label: `${a}`,
@@ -4781,18 +4832,18 @@ function Vc() {
4781
4832
  customElements.get(t) || customElements.define(t, ka);
4782
4833
  break;
4783
4834
  case "searchcraft-select":
4784
- customElements.get(t) || wa();
4835
+ customElements.get(t) || Ea();
4785
4836
  break;
4786
4837
  }
4787
4838
  });
4788
4839
  }
4789
- const jc = ka, Ea = Vc, Wc = wa, Gc = ta, qc = `[class*=searchcraft-],[class*=searchcraft-] *,[class*=searchcraft-]::before,[class*=searchcraft-]::after,[class*=searchcraft-] *,::before,[class*=searchcraft-] *,::after{box-sizing:border-box;padding:0;margin:0}:root{--sc-text-base-size: 1em;--sc-text-scale-ratio: 1.1;--sc-font-family: sans-serif;--sc-font-bold: 700;--sc-font-normal: 400;--sc-heading-1-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-2-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-3-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-4-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-5-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-6-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) );--sc-body-font-size: calc(var(--sc-text-base-size));--sc-body-small-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) )}:root{--sc-border-radius: 8px;--sc-border-radius-sm: calc(var(--sc-border-radius) / 2);--sc-border-radius-lg: calc(var(--sc-border-radius) * 2);--sc-border-radius-xl: calc(var(--sc-border-radius) * 3);--sc-border-radius-2xl: calc(var(--sc-border-radius) * 4);--sc-border-radius-full: 9999px}:root{--sc-breakpoint-sm: 576px;--sc-breakpoint-md: 768px;--sc-breakpoint-lg: 992px}:root{--sc-surface-neutral-primary: var(--sc-color-background, #ffffff);--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-primary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #fafafa) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-primary-active: var( --sc-color-background-active, var(--sc-color-background-active-computed, #f7f7f7) );--sc-surface-neutral-secondary: var( --sc-color-background-secondary, var(--sc-color-background, #f3f3f3) );--sc-color-background-secondary-hover-computed: hsl( from var(--sc-color-background-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #e6e6e6) );--sc-color-background-secondary-active-computed: hsl( from var(--sc-color-background-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-secondary-active: var( --sc-color-background-secondary-active, var(--sc-color-background-active-computed, #e0e0e0) );--sc-surface-neutral-light: #ffffff;--sc-content-neutral-primary: var(--sc-color-foreground, #292929);--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10, calc(l + 5), 90) );--sc-content-neutral-secondary: var( --sc-color-foreground-secondary, var(--sc-color-foreground-secondary-computed, #404040) );--sc-border-neutral: var(--sc-color-border, rgba(0, 0, 0, 0.1));--sc-surface-brand-primary: var(--sc-color-brand, #000000);--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20, calc(l + 5), 95) );--sc-surface-brand-primary-hover: var( --sc-color-brand-hover, var(--sc-color-brand-hover-computed, #2e2e2e) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10, calc(l - 5), 85) );--sc-surface-brand-primary-active: var( --sc-color-brand-active, var(--sc-color-brand-active-computed, #292929) );--sc-surface-brand-secondary: var( --sc-color-brand-secondary, var(--sc-color-brand, #e6e6e6) );--sc-color-brand-secondary-hover-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-brand-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #ebebeb) );--sc-color-brand-secondary-active-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-brand-secondary-active: var( --sc-color-brand-secondary-active, var(--sc-color-brand-active-computed, #e0e0e0) );--sc-content-brand: var( --sc-color-brand-text, var(--sc-surface-brand-primary) );--sc-content-brand-on-primary: #ffffff;--sc-border-brand: var(--sc-surface-brand-primary);--sc-surface-success-primary: var(--sc-color-success, #008000);--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30 );--sc-surface-success-primary-hover: var( --sc-color-success-primary-hover, var(--sc-color-success-primary-hover-computed, #009900) );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20 );--sc-surface-success-primary-active: var( --sc-color-success-primary-active, var(--sc-color-success-primary-active-computed, #006600) );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90 );--sc-surface-success-secondary: var( --sc-color-success-secondary, var(--sc-color-success-secondary-computed, #ccffcc) );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95 );--sc-surface-success-secondary-hover: var( --sc-color-success-secondary-hover, var(--sc-color-success-secondary-hover-computed, #e6ffe6) );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85 );--sc-surface-success-secondary-active: var( --sc-color-success-secondary-active, var(--sc-color-success-secondary-active-computed, #b2ffb2) );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30) );--sc-content-success-on-primary: #ffffff;--sc-border-success: var(--sc-surface-success-primary);--sc-surface-caution-primary: var(--sc-color-caution, #cc6600);--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30 );--sc-surface-caution-primary-hover: var( --sc-color-caution-primary-hover, var(--sc-color-caution-primary-hover-computed, #e57300) );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20 );--sc-surface-caution-primary-active: var( --sc-color-caution-primary-active, var(--sc-color-caution-primary-active-computed, #b25a00) );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90 );--sc-surface-caution-secondary: var( --sc-color-caution-secondary, var(--sc-color-caution-secondary-computed, #ffd9b3) );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95 );--sc-surface-caution-secondary-hover: var( --sc-color-caution-secondary-hover, var(--sc-color-caution-secondary-hover-computed, #ffe5cc) );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85 );--sc-surface-caution-secondary-active: var( --sc-color-caution-secondary-active, var(--sc-color-caution-secondary-active-computed, #ffcc99) );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30) );--sc-content-caution-on-primary: #ffffff;--sc-border-caution: var(--sc-surface-caution-primary);--sc-surface-danger-primary: var(--sc-color-danger, #cc0000);--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30 );--sc-surface-danger-primary-hover: var( --sc-color-danger-primary-hover, var(--sc-color-danger-primary-hover-computed, #e50000) );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20 );--sc-surface-danger-primary-active: var( --sc-color-danger-primary-active, var(--sc-color-danger-primary-active-computed, #b30000) );--sc-color-danger-secondary-computed: hsl(from var(--sc-color-danger) h s 90);--sc-surface-danger-secondary: var( --sc-color-danger-secondary, var(--sc-color-danger-secondary-computed, #ffcccc) );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95 );--sc-surface-danger-secondary-hover: var( --sc-color-danger-secondary-hover, var(--sc-color-danger-secondary-hover-computed, #ffe7e7) );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85 );--sc-surface-danger-secondary-active: var( --sc-color-danger-secondary-active, var(--sc-color-danger-secondary-active-computed, #ffb3b3) );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30) );--sc-content-danger-on-primary: #ffffff;--sc-border-danger: var(--sc-surface-danger-primary);--sc-color-disabled: hsl(from var(--sc-color-page-primary) h s calc(l * 0.5));--sc-surface-disabled: var(--sc-color-disabled, #d9d9d9);--sc-color-disabled-text: hsl( from var(--sc-color-text-primary) h s calc(l * 0.5) );--sc-content-disabled: var(--sc-color-disabled-text, #737373);--sc-content-disabled-on-disabled: var(--sc-color-disabled-text, #737373)}@supports(hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none){:root{--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10%, calc(l + 5%), 95%) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5%, calc(l - 5%), 90%) );--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10%, calc(l + 5%), 90%) );--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20%, calc(l + 5%), 95%) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10%, calc(l - 5%), 85%) );--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30% );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20% );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90% );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95% );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85% );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30%) );--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30% );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20% );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90% );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95% );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85% );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30%) );--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30% );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20% );--sc-color-danger-secondary-computed: hsl( from var(--sc-color-danger) h s 90% );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95% );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85% );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30%) )}}.searchcraft-ad{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased}.searchcraft-ad-no-template{display:flex;flex-direction:column;font-size:.875rem}.searchcraft-ad-no-template>p{margin:0}.searchcraft-adm-ad{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-search-result{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased}.searchcraft-search-result-no-template{display:flex;flex-direction:column;font-size:.875rem}.searchcraft-search-result-no-template>p{margin:0}.searchcraft-search-results{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-search-results-empty-state{text-align:center}.searchcraft-search-results-error-message{text-align:center}.searchcraft-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background:none;border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;display:flex;gap:4px;padding:12px;position:relative}.searchcraft-button.searchcraft-button-disabled{cursor:not-allowed}.searchcraft-button-primary{background-color:var(--sc-surface-brand-primary);color:var(--sc-content-brand-on-primary);font-weight:var(--sc-font-bold)}.searchcraft-button-primary:hover{background-color:var(--sc-surface-brand-primary-hover)}.searchcraft-button-primary:focus{border-color:var(--sc-border-primary)}.searchcraft-button-primary:active{background-color:var(--sc-surface-brand-primary-active)}.searchcraft-button-primary.searchcraft-button-disabled,.searchcraft-button-primary.searchcraft-button-disabled:hover,.searchcraft-button-primary.searchcraft-button-disabled:focus,.searchcraft-button-primary.searchcraft-button-disabled:active{background-color:var(--sc-surface-disabled);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-tertiary{background-color:var(--sc-surface-neutral-primary);color:var(--sc-content-brand);font-weight:var(--sc-font-normal)}.searchcraft-button-tertiary:hover{background-color:var(--sc-surface-brand-secondary-hover)}.searchcraft-button-tertiary:focus{background-color:var(--sc-surface-neutral-light);border-color:var(--sc-border-primary)}.searchcraft-button-tertiary:active{background-color:var(--sc-surface-brand-secondary-active)}.searchcraft-button-tertiary.searchcraft-button-disabled,.searchcraft-button-tertiary.searchcraft-button-disabled:hover,.searchcraft-button-tertiary.searchcraft-button-disabled:focus,.searchcraft-button-tertiary.searchcraft-button-disabled:active{background-color:var(--sc-surface-neutral-light);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-icon{fill:none}.searchcraft-error-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-danger);margin:0}.searchcraft-facet-list{display:flex;flex-direction:column;gap:8px;width:100%}.searchcraft-facet-list-checkbox-label{align-items:center;color:var(--sc-content-neutral-primary);display:flex;font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);gap:8px;position:relative;-webkit-font-smoothing:antialiased}.searchcraft-facet-list-checkbox-input-wrapper{position:relative}.searchcraft-facet-list-checkbox-input{align-items:center;appearance:none;background-color:var(--sc-surface-neutral-secondary);border:1px solid var(--sc-surface-disabled);border-radius:var(--sc-border-radius);cursor:pointer;display:flex;height:24px;justify-content:center;width:24px;margin:0}.searchcraft-facet-list-checkbox-input:focus{outline:2px solid var(--sc-surface-brand-primary);outline-offset:2px}.searchcraft-facet-list-checkbox-input:checked{background-color:var(--sc-surface-brand-primary);position:relative}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-check-icon{display:flex}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-dash-icon{display:flex}.searchcraft-facet-child-list{display:flex;flex-direction:column;gap:6px}.searchcraft-facet-child-list-checkbox-label{margin-left:24px}.searchcraft-facet-child-list-checkbox-label:first-child{margin-top:6px}.searchcraft-facet-list-checkbox-input-check-icon{display:none;height:16px;left:50%;position:absolute;margin-top:2px;top:50%;transform:translate(-50%, -50%);width:16px}.searchcraft-facet-list-checkbox-input-dash-icon{display:none;height:3px;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);width:14px}.searchcraft-facet-list-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-disabled);text-align:center}.searchcraft-filter-panel{display:flex;flex-direction:column;gap:16px}.searchcraft-filter-panel-section{display:flex;flex-direction:column;gap:8px}.searchcraft-filter-panel-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}:root{--sc-input-form-border-radius: var(--sc-border-radius);--sc-input-form-search-icon-size: 20px;--sc-input-form-clear-icon-size: 20px}.searchcraft-input-form-grid{display:grid;gap:4px 8px}.searchcraft-input-form-grid-button-left{grid-template-rows:repeat(3, auto);grid-template-columns:auto 1fr}.searchcraft-input-form-grid-button-left .searchcraft-input-form-button{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-label{grid-column:2/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-error-message{grid-column:2/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-input-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right{grid-template-rows:repeat(3, auto);grid-template-columns:1fr auto}.searchcraft-input-form-grid-button-right .searchcraft-input-form-button{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-none{grid-template-rows:repeat(3, auto);grid-template-columns:auto}.searchcraft-input-form-grid-button-none .searchcraft-input-form-button{display:none}.searchcraft-input-form-grid-button-none .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-input-wrapper{display:flex;position:relative}.searchcraft-input-form-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background-color:var(--sc-surface-neutral-secondary);border-radius:var(--sc-input-form-border-radius);border:none;color:var(--sc-content-neutral-primary);flex:1;outline:none;padding:12px 44px}.searchcraft-input-form-input::placeholder{color:var(--sc-content-disabled)}.searchcraft-input-form-input:focus{outline:var(--sc-border-brand) solid 2px;outline-offset:-1px}.searchcraft-input-form-input.searchcraft-placeholder-hide-on-focus:focus::placeholder{opacity:0}.searchcraft-input-form-error{color:var(--sc-content-danger);outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-error:focus{outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-input-icon{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;pointer-events:none;top:0;width:44px}.searchcraft-input-form-input-search-icon{color:var(--sc-content-neutral-secondary);fill:none;height:var(--sc-input-form-search-icon-size);pointer-events:none;width:var(--sc-input-form-search-icon-size)}.searchcraft-input-form-clear-button{all:unset;align-items:center;bottom:0;border:none;cursor:pointer;display:flex;justify-content:center;outline:none;position:absolute;right:0;top:0;width:44px}.searchcraft-input-form-clear-icon{color:var(--sc-content-brand);fill:none;height:var(--sc-input-form-clear-icon-size);width:var(--sc-input-form-clear-icon-size)}.searchcraft-input-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);font-weight:var(--sc-font-bold);margin-top:4px;margin-bottom:4px}:root{--sc-popover-button-border-radius: var(--sc-border-radius)}@media(min-width: 576px){:root{--sc-popover-button-border-radius: var(--sc-border-radius-lg)}}.searchcraft-popover-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);cursor:pointer}.searchcraft-popover-button-skeuomorphic{appearance:none;background:none;border:none;color:var(--sc-content-neutral-primary);display:block;width:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-popover-button-border-radius);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;display:flex;gap:24px;height:40px;justify-content:space-between;line-height:1;padding:4px 5px 4px 10px;background:var(--sc-surface-neutral-primary)}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;height:63px;padding:8px 10px 8px 16px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{align-items:center;display:flex;gap:4px}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{color:var(--sc-content-neutral-secondary);display:flex;gap:4px;font-size:20px;font-weight:500}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 3px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 3px);background-color:var(--sc-surface-neutral-primary);box-shadow:0 3px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 6px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 2px);position:relative}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 8px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 8px);box-shadow:0 4px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 6px 1px rgb(from var(--sc-content-neutral-secondary) r g b/20%),0 7px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 9px 4px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 13px 8px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 5px)}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before,.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{content:"";display:block}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 4px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 4px);background:linear-gradient(340deg, rgb(from var(--sc-surface-neutral-secondary) r g b/2%) 0%, var(--sc-surface-neutral-secondary) 100%);inset:2px;position:absolute}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 12px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 12px);inset:4px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{aspect-ratio:1/1;height:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap>span{display:flex;line-height:1;left:50%;margin-top:2%;position:absolute;top:50%;transform:translate(-50%, -50%)}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:60%;width:auto}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:50%}}:root{--sc-popover-list-view-height: 600px;--sc-popover-modal-max-width: 800px}.searchcraft-popover-form{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);display:flex;flex:1;flex-direction:column}.searchcraft-popover-form searchcraft-input-form,.searchcraft-popover-form searchcraft-popover-footer{width:100%}.searchcraft-popover-form.searchcraft-popover-form-active .searchcraft-popover-form-input{padding-bottom:1px}.searchcraft-popover-form searchcraft-popover-list-view{flex-shrink:1;height:100%;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-input{display:flex;flex-direction:row;gap:12px}.searchcraft-popover-form-input .searchcraft-input-form-input{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius-lg);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset;width:0}.searchcraft-popover-form-cancel-button{background:none;border:none;cursor:pointer;font-size:14px}.searchcraft-popover-form-modal-input,.searchcraft-popover-form-fullscreen-input{padding:24px}.searchcraft-popover-form-modal-popover-list-view,.searchcraft-popover-form-fullscreen-popover-list-view{flex-grow:1;flex-shrink:1;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-inline{background-color:var(--sc-surface-neutral-primary);border:1px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius-xl);padding:12px;position:relative}.searchcraft-popover-form-inline.searchcraft-popover-form-active{border:1px solid var(--sc-border-neutral);border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;padding-bottom:1px}.searchcraft-popover-form-inline searchcraft-popover-list-view{padding:0 12px}.searchcraft-popover-form-inline .searchcraft-input-form-input,.searchcraft-popover-form-inline .searchcraft-popover-list-item-link,.searchcraft-popover-form-inline .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-xl - 12px);border-radius:calc(var(--sc-border-radius-xl) - 12px)}.searchcraft-popover-form-inline-wrapper{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-top:none;border-bottom-left-radius:var(--sc-border-radius-xl);border-bottom-right-radius:var(--sc-border-radius-xl);display:flex;flex-direction:column;left:-1px;max-height:var(--sc-popover-list-view-height);overflow:hidden;position:absolute;right:-1px;top:100%}.searchcraft-popover-form-modal{align-items:center;display:flex;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-modal .searchcraft-input-form-input,.searchcraft-popover-form-modal .searchcraft-popover-list-item-link,.searchcraft-popover-form-modal .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px)}.searchcraft-popover-form-modal-backdrop{background-color:rgb(from var(--sc-content-neutral-primary) r g b/50%);display:none;inset:0;position:fixed}@media(min-width: 576px){.searchcraft-popover-form-modal-backdrop{display:block}}.searchcraft-popover-form-modal-wrapper{background-color:var(--sc-surface-neutral-primary);box-shadow:1px 2px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 2px 4px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 4px 8px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 8px 16px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 16px 32px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 32px 64px rgb(from var(--sc-content-neutral-primary) r g b/7%);display:flex;flex-direction:column;inset:0;max-width:var(--sc-popover-modal-max-width);overflow:hidden;position:absolute;width:100%;z-index:1001}@media(min-width: 576px){.searchcraft-popover-form-modal-wrapper{border-radius:var(--sc-border-radius-2xl);inset:0;margin-top:100px;max-height:var(--sc-popover-list-view-height);max-width:var(--sc-popover-modal-max-width);position:relative}}.searchcraft-popover-form-modal-cancel-button{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px);padding:8px}@media(min-width: 576px){.searchcraft-popover-form-modal-cancel-button{padding:8px 12px}}.searchcraft-popover-form-fullscreen{background-color:var(--sc-surface-neutral-primary);display:flex;flex-direction:column;justify-content:space-between;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-fullscreen .searchcraft-popover-list-item-link,.searchcraft-popover-form-fullscreen .searchcraft-adm-ad-link{border-radius:var(--sc-border-radius-lg)}.searchcraft-popover-form-fullscreen-cancel-button{border-radius:var(--sc-border-radius-lg);padding:8px}@media(min-width: 576px){.searchcraft-popover-form-fullscreen-cancel-button{padding:8px 12px}}.searchcraft-popover-footer{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;background-color:var(--sc-surface-neutral-secondary);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset;display:flex;gap:8px;justify-content:space-between;line-height:1;padding:20px 24px}@media(min-width: 576px){.searchcraft-popover-footer{padding:20px 32px}}.searchcraft-popover-footer-results-info{margin:0}.searchcraft-popover-footer-link{color:var(--sc-content-neutral-primary);display:flex;max-width:160px;width:100%}:root{--sc-popover-list-item-image-fit: contain}.searchcraft-popover-list-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;border-bottom:1px solid var(--sc-border-neutral);padding:12px 0}searchcraft-popover-list-item:last-child .searchcraft-popover-list-item{border-bottom:none}.searchcraft-popover-list-item-link{align-items:flex-start;color:var(--sc-content-neutral-primary);display:flex;gap:24px;padding:12px;text-decoration:none}.searchcraft-popover-list-item-link:focus,.searchcraft-popover-list-item-link:active{background-color:var(--sc-surface-neutral-primary-active)}.searchcraft-popover-list-item-link:hover{background-color:var(--sc-surface-neutral-primary-hover)}.searchcraft-popover-list-item-image-wrapper{align-items:center;aspect-ratio:16/9;display:flex;flex-shrink:0;justify-content:center;width:160px}.searchcraft-popover-list-item-image{height:100%;object-fit:var(--sc-popover-list-item-image-fit);width:100%}.searchcraft-popover-list-item-content{display:flex;flex-direction:column;flex-grow:1;gap:4px;justify-content:center}.searchcraft-popover-list-item-content-title,.searchcraft-popover-list-item-content-subtitle{display:-webkit-box;line-clamp:2;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.searchcraft-popover-list-item-content-title{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-heading-5-font-size);font-weight:var(--sc-font-bold)}.searchcraft-popover-list-item-content-subtitle{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-popover-list-view{display:flex;flex-direction:column}.searchcraft-results-info{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-primary);margin:0}.searchcraft-slider{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%;margin-top:4px}.searchcraft-slider-range{align-items:center;background-color:var(--sc-surface-disabled);border-radius:999px;display:flex;position:relative;height:4px;width:100%}.searchcraft-slider-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range{background-color:var(--sc-surface-brand-primary);border-radius:2px;height:4px;position:absolute;top:50%;transform:translateY(-50%);z-index:0}.searchcraft-slider-range .searchcraft-slider-active-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range::-moz-range-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-input{appearance:none;background:rgba(0,0,0,0);border-radius:2px;height:4px;margin:0;outline:none;pointer-events:none;position:absolute;width:100%;-webkit-appearance:none}.searchcraft-slider-range .searchcraft-slider-input::-webkit-slider-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:1px solid var(--sc-border-neutral);cursor:pointer;height:18px;pointer-events:all;width:18px;-webkit-appearance:none}.searchcraft-slider-range .searchcraft-slider-input::-moz-range-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:1px solid var(--sc-border-neutral);cursor:pointer;height:18px;pointer-events:all;width:18px}.searchcraft-slider-range .searchcraft-slider-input:focus::-webkit-slider-thumb{outline:2px solid var(--sc-surface-brand-primary)}.searchcraft-slider-range .searchcraft-slider-input:focus::-moz-range-thumb{outline:2px solid var(--sc-surface-brand-primary)}.searchcraft-slider-label{color:var(--sc-content-primary);display:flex;font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);justify-content:space-between;margin-top:4px;width:100%}.searchcraft-slider-start-label,.searchcraft-slider-end-label{min-width:30px;text-align:center}.searchcraft-toggle-button{align-items:flex-start;display:flex;gap:10px;justify-content:space-between}.searchcraft-toggle-button-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);margin:0}.searchcraft-toggle-button-sub-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-secondary);margin:0}.searchcraft-toggle-button-background{background:var(--sc-surface-disabled);border-radius:var(--sc-border-radius-full);border:none;cursor:pointer;flex-shrink:0;height:26px;position:relative;transition:background-color .2s;width:44px}.searchcraft-toggle-button-handle{background:var(--sc-surface-neutral-light);border-radius:50%;height:18px;left:4px;position:absolute;top:calc(50% - 9px);transition:transform .3s ease;width:18px}.searchcraft-toggle-button-active .searchcraft-toggle-button-background{background:var(--sc-surface-brand-primary);box-shadow:0px 0px 0px 1px rgba(0,0,0,.05)}.searchcraft-toggle-button-active .searchcraft-toggle-button-handle{transform:translateX(16px)}.searchcraft-pagination{display:inline-grid;gap:16px;grid-template-columns:repeat(3, auto);grid-template-rows:1fr}.searchcraft-pagination-list{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius);display:flex;list-style-type:none;margin:0;overflow:hidden;padding:0;width:auto}.searchcraft-pagination-list li{border-right:1px solid var(--sc-border-neutral);height:100%;min-height:44px;width:44px}.searchcraft-pagination-list li:last-child{border-right:none}.searchcraft-pagination-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;background-color:var(--sc-surface-neutral-primary);border:none;display:flex;height:100%;justify-content:center;width:100%}.searchcraft-pagination-item-active{background-color:var(--sc-surface-brand-secondary);font-weight:var(--sc-font-bold)}.searchcraft-pagination-control{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius)}.searchcraft-pagination-range{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;display:flex}.searchcraft-select{display:flex;flex-direction:column;gap:4px}.searchcraft-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}.searchcraft-select-input-wrapper{position:relative}.searchcraft-select-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);appearance:none;background-color:var(--sc-surface-neutral-secondary);border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;height:44px;padding:0 44px 0 16px;width:100%}.searchcraft-select-input:hover{background-color:var(--sc-surface-neutral-secondary-hover)}.searchcraft-select-input:active{background-color:var(--sc-surface-neutral-secondary-active)}.searchcraft-select-input:focus{border-color:var(--sc-border-brand);outline:none}.searchcraft-select-input-icon{fill:none;pointer-events:none;position:absolute;right:12px;top:50%;transform:translateY(-50%)}.searchcraft-select-caption{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page{display:flex}.searchcraft-search-results-per-page-select{align-items:center;display:flex;gap:12px}.searchcraft-search-results-per-page-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page-select-input{min-width:120px}/*# sourceMappingURL=hologram.css.map */
4790
- `, xa = /* @__PURE__ */ D(class extends F {
4840
+ const jc = ka, Ra = Vc, Wc = Ea, Gc = ra, qc = `[class*=searchcraft-],[class*=searchcraft-] *,[class*=searchcraft-]::before,[class*=searchcraft-]::after,[class*=searchcraft-] *,::before,[class*=searchcraft-] *,::after{box-sizing:border-box;padding:0;margin:0}:root{--sc-text-base-size: 1em;--sc-text-scale-ratio: 1.1;--sc-font-family: sans-serif;--sc-font-bold: 700;--sc-font-normal: 400;--sc-heading-1-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-2-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-3-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-4-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-5-font-size: calc( var(--sc-text-base-size) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) );--sc-heading-6-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) );--sc-body-font-size: calc(var(--sc-text-base-size));--sc-body-small-font-size: calc( var(--sc-text-base-size) / ( var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) * var(--sc-text-scale-ratio) ) )}:root{--sc-border-radius: 8px;--sc-border-radius-sm: calc(var(--sc-border-radius) / 2);--sc-border-radius-lg: calc(var(--sc-border-radius) * 2);--sc-border-radius-xl: calc(var(--sc-border-radius) * 3);--sc-border-radius-2xl: calc(var(--sc-border-radius) * 4);--sc-border-radius-full: 9999px}:root{--sc-breakpoint-sm: 576px;--sc-breakpoint-md: 768px;--sc-breakpoint-lg: 992px}:root{--sc-surface-neutral-primary: var(--sc-color-background, #ffffff);--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-primary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #fafafa) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-primary-active: var( --sc-color-background-active, var(--sc-color-background-active-computed, #f7f7f7) );--sc-surface-neutral-secondary: var( --sc-color-background-secondary, var(--sc-color-background, #f3f3f3) );--sc-color-background-secondary-hover-computed: hsl( from var(--sc-color-background-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-neutral-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #e6e6e6) );--sc-color-background-secondary-active-computed: hsl( from var(--sc-color-background-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-neutral-secondary-active: var( --sc-color-background-secondary-active, var(--sc-color-background-active-computed, #e0e0e0) );--sc-surface-neutral-light: #ffffff;--sc-content-neutral-primary: var(--sc-color-foreground, #292929);--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10, calc(l + 5), 90) );--sc-content-neutral-secondary: var( --sc-color-foreground-secondary, var(--sc-color-foreground-secondary-computed, #404040) );--sc-border-neutral: var(--sc-color-border, rgba(0, 0, 0, 0.1));--sc-surface-brand-primary: var(--sc-color-brand, #000000);--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20, calc(l + 5), 95) );--sc-surface-brand-primary-hover: var( --sc-color-brand-hover, var(--sc-color-brand-hover-computed, #2e2e2e) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10, calc(l - 5), 85) );--sc-surface-brand-primary-active: var( --sc-color-brand-active, var(--sc-color-brand-active-computed, #292929) );--sc-surface-brand-secondary: var( --sc-color-brand-secondary, var(--sc-color-brand, #e6e6e6) );--sc-color-brand-secondary-hover-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(10, calc(l + 5), 95) );--sc-surface-brand-secondary-hover: var( --sc-color-background-hover, var(--sc-color-background-hover-computed, #ebebeb) );--sc-color-brand-secondary-active-computed: hsl( from var(--sc-color-brand-secondary) h s clamp(5, calc(l - 5), 90) );--sc-surface-brand-secondary-active: var( --sc-color-brand-secondary-active, var(--sc-color-brand-active-computed, #e0e0e0) );--sc-content-brand: var( --sc-color-brand-text, var(--sc-surface-brand-primary) );--sc-content-brand-on-primary: #ffffff;--sc-border-brand: var(--sc-surface-brand-primary);--sc-surface-success-primary: var(--sc-color-success, #008000);--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30 );--sc-surface-success-primary-hover: var( --sc-color-success-primary-hover, var(--sc-color-success-primary-hover-computed, #009900) );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20 );--sc-surface-success-primary-active: var( --sc-color-success-primary-active, var(--sc-color-success-primary-active-computed, #006600) );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90 );--sc-surface-success-secondary: var( --sc-color-success-secondary, var(--sc-color-success-secondary-computed, #ccffcc) );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95 );--sc-surface-success-secondary-hover: var( --sc-color-success-secondary-hover, var(--sc-color-success-secondary-hover-computed, #e6ffe6) );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85 );--sc-surface-success-secondary-active: var( --sc-color-success-secondary-active, var(--sc-color-success-secondary-active-computed, #b2ffb2) );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30) );--sc-content-success-on-primary: #ffffff;--sc-border-success: var(--sc-surface-success-primary);--sc-surface-caution-primary: var(--sc-color-caution, #cc6600);--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30 );--sc-surface-caution-primary-hover: var( --sc-color-caution-primary-hover, var(--sc-color-caution-primary-hover-computed, #e57300) );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20 );--sc-surface-caution-primary-active: var( --sc-color-caution-primary-active, var(--sc-color-caution-primary-active-computed, #b25a00) );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90 );--sc-surface-caution-secondary: var( --sc-color-caution-secondary, var(--sc-color-caution-secondary-computed, #ffd9b3) );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95 );--sc-surface-caution-secondary-hover: var( --sc-color-caution-secondary-hover, var(--sc-color-caution-secondary-hover-computed, #ffe5cc) );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85 );--sc-surface-caution-secondary-active: var( --sc-color-caution-secondary-active, var(--sc-color-caution-secondary-active-computed, #ffcc99) );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30) );--sc-content-caution-on-primary: #ffffff;--sc-border-caution: var(--sc-surface-caution-primary);--sc-surface-danger-primary: var(--sc-color-danger, #cc0000);--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30 );--sc-surface-danger-primary-hover: var( --sc-color-danger-primary-hover, var(--sc-color-danger-primary-hover-computed, #e50000) );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20 );--sc-surface-danger-primary-active: var( --sc-color-danger-primary-active, var(--sc-color-danger-primary-active-computed, #b30000) );--sc-color-danger-secondary-computed: hsl(from var(--sc-color-danger) h s 90);--sc-surface-danger-secondary: var( --sc-color-danger-secondary, var(--sc-color-danger-secondary-computed, #ffcccc) );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95 );--sc-surface-danger-secondary-hover: var( --sc-color-danger-secondary-hover, var(--sc-color-danger-secondary-hover-computed, #ffe7e7) );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85 );--sc-surface-danger-secondary-active: var( --sc-color-danger-secondary-active, var(--sc-color-danger-secondary-active-computed, #ffb3b3) );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30) );--sc-content-danger-on-primary: #ffffff;--sc-border-danger: var(--sc-surface-danger-primary);--sc-color-disabled: hsl(from var(--sc-color-page-primary) h s calc(l * 0.5));--sc-surface-disabled: var(--sc-color-disabled, #d9d9d9);--sc-color-disabled-text: hsl( from var(--sc-color-text-primary) h s calc(l * 0.5) );--sc-content-disabled: var(--sc-color-disabled-text, #737373);--sc-content-disabled-on-disabled: var(--sc-color-disabled-text, #737373)}@supports(hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none){:root{--sc-color-background-hover-computed: hsl( from var(--sc-color-background) h s clamp(10%, calc(l + 5%), 95%) );--sc-color-background-active-computed: hsl( from var(--sc-color-background) h s clamp(5%, calc(l - 5%), 90%) );--sc-color-foreground-secondary-computed: hsl( from var(--sc-color-foreground) h s clamp(10%, calc(l + 5%), 90%) );--sc-color-brand-hover-computed: hsl( from var(--sc-color-brand) h s clamp(20%, calc(l + 5%), 95%) );--sc-color-brand-active-computed: hsl( from var(--sc-color-brand) h s clamp(10%, calc(l - 5%), 85%) );--sc-color-success-primary-hover-computed: hsl( from var(--sc-color-success) h s 30% );--sc-color-success-primary-active-computed: hsl( from var(--sc-color-success) h s 20% );--sc-color-success-secondary-computed: hsl( from var(--sc-color-success) h s 90% );--sc-color-success-secondary-hover-computed: hsl( from var(--sc-color-success-secondary) h s 95% );--sc-color-success-secondary-active-computed: hsl( from var(--sc-color-success-secondary) h s 85% );--sc-content-success: var( --sc-color-brand-text, hsl(from var(--sc-surface-success-primary) h s 30%) );--sc-color-caution-primary-hover-computed: hsl( from var(--sc-color-caution) h s 30% );--sc-color-caution-primary-active-computed: hsl( from var(--sc-color-caution) h s 20% );--sc-color-caution-secondary-computed: hsl( from var(--sc-color-caution) h s 90% );--sc-color-caution-secondary-hover-computed: hsl( from var(--sc-color-caution-secondary) h s 95% );--sc-color-caution-secondary-active-computed: hsl( from var(--sc-color-caution-secondary) h s 85% );--sc-content-caution: var( --sc-color-caution-text, hsl(from var(--sc-surface-caution-primary) h s 30%) );--sc-color-danger-primary-hover-computed: hsl( from var(--sc-color-danger) h s 30% );--sc-color-danger-primary-active-computed: hsl( from var(--sc-color-danger) h s 20% );--sc-color-danger-secondary-computed: hsl( from var(--sc-color-danger) h s 90% );--sc-color-danger-secondary-hover-computed: hsl( from var(--sc-color-danger-secondary) h s 95% );--sc-color-danger-secondary-active-computed: hsl( from var(--sc-color-danger-secondary) h s 85% );--sc-content-danger: var( --sc-color-caution-text, hsl(from var(--sc-surface-danger-primary) h s 30%) )}}.searchcraft-ad{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased}.searchcraft-ad-no-template{display:flex;flex-direction:column;font-size:.875rem}.searchcraft-ad-no-template>p{margin:0}.searchcraft-adm-ad{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-search-result{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased}.searchcraft-search-result-no-template{display:flex;flex-direction:column;font-size:.875rem}.searchcraft-search-result-no-template>p{margin:0}.searchcraft-search-results{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-search-results-empty-state{text-align:center}.searchcraft-search-results-error-message{text-align:center}.searchcraft-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background:none;border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;display:flex;gap:4px;padding:12px;position:relative}.searchcraft-button.searchcraft-button-disabled{cursor:not-allowed}.searchcraft-button-primary{background-color:var(--sc-surface-brand-primary);color:var(--sc-content-brand-on-primary);font-weight:var(--sc-font-bold)}.searchcraft-button-primary:hover{background-color:var(--sc-surface-brand-primary-hover)}.searchcraft-button-primary:focus{border-color:var(--sc-border-primary)}.searchcraft-button-primary:active{background-color:var(--sc-surface-brand-primary-active)}.searchcraft-button-primary.searchcraft-button-disabled,.searchcraft-button-primary.searchcraft-button-disabled:hover,.searchcraft-button-primary.searchcraft-button-disabled:focus,.searchcraft-button-primary.searchcraft-button-disabled:active{background-color:var(--sc-surface-disabled);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-tertiary{background-color:var(--sc-surface-neutral-primary);color:var(--sc-content-brand);font-weight:var(--sc-font-normal)}.searchcraft-button-tertiary:hover{background-color:var(--sc-surface-brand-secondary-hover)}.searchcraft-button-tertiary:focus{background-color:var(--sc-surface-neutral-light);border-color:var(--sc-border-primary)}.searchcraft-button-tertiary:active{background-color:var(--sc-surface-brand-secondary-active)}.searchcraft-button-tertiary.searchcraft-button-disabled,.searchcraft-button-tertiary.searchcraft-button-disabled:hover,.searchcraft-button-tertiary.searchcraft-button-disabled:focus,.searchcraft-button-tertiary.searchcraft-button-disabled:active{background-color:var(--sc-surface-neutral-light);border-color:rgba(0,0,0,0);color:var(--sc-content-disabled)}.searchcraft-button-icon{fill:none}.searchcraft-error-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-danger);margin:0}.searchcraft-facet-list{display:flex;flex-direction:column;gap:8px;width:100%}.searchcraft-facet-list-checkbox-label{align-items:center;color:var(--sc-content-neutral-primary);display:flex;font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);gap:8px;position:relative;-webkit-font-smoothing:antialiased}.searchcraft-facet-list-checkbox-input-wrapper{position:relative}.searchcraft-facet-list-checkbox-input{align-items:center;appearance:none;background-color:var(--sc-surface-neutral-secondary);border:1px solid var(--sc-surface-disabled);border-radius:var(--sc-border-radius);cursor:pointer;display:flex;height:24px;justify-content:center;width:24px;margin:0}.searchcraft-facet-list-checkbox-input:focus{outline:2px solid var(--sc-surface-brand-primary);outline-offset:2px}.searchcraft-facet-list-checkbox-input:checked{background-color:var(--sc-surface-brand-primary);position:relative}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-check-icon{display:flex}.searchcraft-facet-list-checkbox-input:checked+.searchcraft-facet-list-checkbox-input-dash-icon{display:flex}.searchcraft-facet-child-list{display:flex;flex-direction:column;gap:6px}.searchcraft-facet-child-list-checkbox-label{margin-left:24px}.searchcraft-facet-child-list-checkbox-label:first-child{margin-top:6px}.searchcraft-facet-list-checkbox-input-check-icon{display:none;height:16px;left:50%;position:absolute;margin-top:2px;top:50%;transform:translate(-50%, -50%);width:16px}.searchcraft-facet-list-checkbox-input-dash-icon{display:none;height:3px;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);width:14px}.searchcraft-facet-list-message{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-disabled);text-align:center}.searchcraft-filter-panel{display:flex;flex-direction:column;gap:16px}.searchcraft-filter-panel-section{display:flex;flex-direction:column;gap:8px}.searchcraft-filter-panel-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}:root{--sc-input-form-border-radius: var(--sc-border-radius);--sc-input-form-search-icon-size: 20px;--sc-input-form-clear-icon-size: 20px}.searchcraft-input-form-grid{display:grid;gap:4px 8px}.searchcraft-input-form-grid-button-left{grid-template-rows:repeat(3, auto);grid-template-columns:auto 1fr}.searchcraft-input-form-grid-button-left .searchcraft-input-form-button{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-label{grid-column:2/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-error-message{grid-column:2/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-left .searchcraft-input-form-input-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right{grid-template-rows:repeat(3, auto);grid-template-columns:1fr auto}.searchcraft-input-form-grid-button-right .searchcraft-input-form-button{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-right .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-grid-button-none{grid-template-rows:repeat(3, auto);grid-template-columns:auto}.searchcraft-input-form-grid-button-none .searchcraft-input-form-button{display:none}.searchcraft-input-form-grid-button-none .searchcraft-input-form-label{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-error-message{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-form-grid-button-none .searchcraft-input-form-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-form-input-wrapper{display:flex;position:relative}.searchcraft-input-form-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);background-color:var(--sc-surface-neutral-secondary);border-radius:var(--sc-input-form-border-radius);border:none;color:var(--sc-content-neutral-primary);flex:1;outline:none;padding:12px 44px}.searchcraft-input-form-input::placeholder{color:var(--sc-content-disabled)}.searchcraft-input-form-input:focus{outline:var(--sc-border-brand) solid 2px;outline-offset:-1px}.searchcraft-input-form-input.searchcraft-placeholder-hide-on-focus:focus::placeholder{opacity:0}.searchcraft-input-form-error{color:var(--sc-content-danger);outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-error:focus{outline:var(--sc-border-danger) solid 2px}.searchcraft-input-form-input-icon{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;pointer-events:none;top:0;width:44px}.searchcraft-input-form-input-search-icon{color:var(--sc-content-neutral-secondary);fill:none;height:var(--sc-input-form-search-icon-size);pointer-events:none;width:var(--sc-input-form-search-icon-size)}.searchcraft-input-form-clear-button{all:unset;align-items:center;bottom:0;border:none;cursor:pointer;display:flex;justify-content:center;outline:none;position:absolute;right:0;top:0;width:44px}.searchcraft-input-form-clear-icon{color:var(--sc-content-brand);fill:none;height:var(--sc-input-form-clear-icon-size);width:var(--sc-input-form-clear-icon-size)}.searchcraft-input-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);font-weight:var(--sc-font-bold);margin-top:4px;margin-bottom:4px}:root{--sc-popover-button-border-radius: var(--sc-border-radius)}@media(min-width: 576px){:root{--sc-popover-button-border-radius: var(--sc-border-radius-lg)}}.searchcraft-popover-button{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);cursor:pointer}.searchcraft-popover-button-skeuomorphic{appearance:none;background:none;border:none;color:var(--sc-content-neutral-primary);display:block;width:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-popover-button-border-radius);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;display:flex;gap:24px;height:40px;justify-content:space-between;line-height:1;padding:4px 5px 4px 10px;background:var(--sc-surface-neutral-primary)}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-wrapper{box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-secondary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%) inset;height:63px;padding:8px 10px 8px 16px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{align-items:center;display:flex;gap:4px}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{color:var(--sc-content-neutral-secondary);display:flex;gap:4px;font-size:20px;font-weight:500}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps{gap:8px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 3px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 3px);background-color:var(--sc-surface-neutral-primary);box-shadow:0 3px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 6px 4px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 2px);position:relative}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap{border-radius:calc(var(--sc-popover-button-border-radius) - 8px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 8px);box-shadow:0 4px hsl(from var(--sc-surface-neutral-secondary) h s calc(l - 5)),0 1px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 6px 1px rgb(from var(--sc-content-neutral-secondary) r g b/20%),0 7px 2px rgb(from var(--sc-content-neutral-secondary) r g b/15%),0 9px 4px rgb(from var(--sc-content-neutral-secondary) r g b/10%),0 13px 8px rgb(from var(--sc-content-neutral-secondary) r g b/5%);height:calc(100% - 5px)}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before,.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{content:"";display:block}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 4px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 4px);background:linear-gradient(340deg, rgb(from var(--sc-surface-neutral-secondary) r g b/2%) 0%, var(--sc-surface-neutral-secondary) 100%);inset:2px;position:absolute}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::before{border-radius:calc(var(--sc-popover-button-border-radius) - 12px);border-radius:calc(var(var(--sc-popover-button-border-radius)) - 12px);inset:4px}}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap::after{aspect-ratio:1/1;height:100%}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-keycaps-keycap>span{display:flex;line-height:1;left:50%;margin-top:2%;position:absolute;top:50%;transform:translate(-50%, -50%)}.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:60%;width:auto}@media(min-width: 576px){.searchcraft-popover-button-skeuomorphic .searchcraft-popover-button-input-search-icon{height:50%}}:root{--sc-popover-list-view-height: 600px;--sc-popover-modal-max-width: 800px}.searchcraft-popover-form{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);display:flex;flex:1;flex-direction:column}.searchcraft-popover-form searchcraft-input-form,.searchcraft-popover-form searchcraft-popover-footer{width:100%}.searchcraft-popover-form.searchcraft-popover-form-active .searchcraft-popover-form-input{padding-bottom:1px}.searchcraft-popover-form searchcraft-popover-list-view{flex-shrink:1;height:100%;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-input{display:flex;flex-direction:row;gap:12px}.searchcraft-popover-form-input .searchcraft-input-form-input{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius-lg);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset;width:0}.searchcraft-popover-form-cancel-button{background:none;border:none;cursor:pointer;font-size:14px}.searchcraft-popover-form-modal-input,.searchcraft-popover-form-fullscreen-input{padding:24px}.searchcraft-popover-form-modal-popover-list-view,.searchcraft-popover-form-fullscreen-popover-list-view{flex-grow:1;flex-shrink:1;min-height:0;overflow:auto;padding:0 24px}.searchcraft-popover-form-inline{background-color:var(--sc-surface-neutral-primary);border:1px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius-xl);padding:12px;position:relative}.searchcraft-popover-form-inline.searchcraft-popover-form-active{border:1px solid var(--sc-border-neutral);border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;padding-bottom:1px}.searchcraft-popover-form-inline searchcraft-popover-list-view{padding:0 12px}.searchcraft-popover-form-inline .searchcraft-input-form-input,.searchcraft-popover-form-inline .searchcraft-popover-list-item-link,.searchcraft-popover-form-inline .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-xl - 12px);border-radius:calc(var(--sc-border-radius-xl) - 12px)}.searchcraft-popover-form-inline-wrapper{background-color:var(--sc-surface-neutral-primary);border:1px solid var(--sc-border-neutral);border-top:none;border-bottom-left-radius:var(--sc-border-radius-xl);border-bottom-right-radius:var(--sc-border-radius-xl);display:flex;flex-direction:column;left:-1px;max-height:var(--sc-popover-list-view-height);overflow:hidden;position:absolute;right:-1px;top:100%}.searchcraft-popover-form-modal{align-items:center;display:flex;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-modal .searchcraft-input-form-input,.searchcraft-popover-form-modal .searchcraft-popover-list-item-link,.searchcraft-popover-form-modal .searchcraft-adm-ad-link{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px)}.searchcraft-popover-form-modal-backdrop{background-color:rgb(from var(--sc-content-neutral-primary) r g b/50%);display:none;inset:0;position:fixed}@media(min-width: 576px){.searchcraft-popover-form-modal-backdrop{display:block}}.searchcraft-popover-form-modal-wrapper{background-color:var(--sc-surface-neutral-primary);box-shadow:1px 2px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 2px 4px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 4px 8px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 8px 16px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 16px 32px rgb(from var(--sc-content-neutral-primary) r g b/7%),0 32px 64px rgb(from var(--sc-content-neutral-primary) r g b/7%);display:flex;flex-direction:column;inset:0;max-width:var(--sc-popover-modal-max-width);overflow:hidden;position:absolute;width:100%;z-index:1001}@media(min-width: 576px){.searchcraft-popover-form-modal-wrapper{border-radius:var(--sc-border-radius-2xl);inset:0;margin-top:100px;max-height:var(--sc-popover-list-view-height);max-width:var(--sc-popover-modal-max-width);position:relative}}.searchcraft-popover-form-modal-cancel-button{border-radius:calc(--sc-border-radius-2xl - 20px);border-radius:calc(var(--sc-border-radius-2xl) - 20px);padding:8px}@media(min-width: 576px){.searchcraft-popover-form-modal-cancel-button{padding:8px 12px}}.searchcraft-popover-form-fullscreen{background-color:var(--sc-surface-neutral-primary);display:flex;flex-direction:column;justify-content:space-between;inset:0;position:fixed;z-index:1000}.searchcraft-popover-form-fullscreen .searchcraft-popover-list-item-link,.searchcraft-popover-form-fullscreen .searchcraft-adm-ad-link{border-radius:var(--sc-border-radius-lg)}.searchcraft-popover-form-fullscreen-cancel-button{border-radius:var(--sc-border-radius-lg);padding:8px}@media(min-width: 576px){.searchcraft-popover-form-fullscreen-cancel-button{padding:8px 12px}}.searchcraft-popover-footer{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;background-color:var(--sc-surface-neutral-secondary);box-shadow:0 1px 1px rgb(from var(--sc-content-neutral-primary) r g b/10%) inset,0 2px 2px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset,0 4px 4px rgb(from var(--sc-content-neutral-primary) r g b/5%) inset;display:flex;gap:8px;justify-content:space-between;line-height:1;padding:20px 24px}@media(min-width: 576px){.searchcraft-popover-footer{padding:20px 32px}}.searchcraft-popover-footer-results-info{margin:0}.searchcraft-popover-footer-link{color:var(--sc-content-neutral-primary);display:flex;max-width:160px;width:100%}:root{--sc-popover-list-item-image-fit: contain}.searchcraft-popover-list-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;border-bottom:1px solid var(--sc-border-neutral);padding:12px 0}searchcraft-popover-list-item:last-child .searchcraft-popover-list-item{border-bottom:none}.searchcraft-popover-list-item-link{align-items:flex-start;color:var(--sc-content-neutral-primary);display:flex;gap:24px;padding:12px;text-decoration:none}.searchcraft-popover-list-item-link:focus,.searchcraft-popover-list-item-link:active{background-color:var(--sc-surface-neutral-primary-active)}.searchcraft-popover-list-item-link:hover{background-color:var(--sc-surface-neutral-primary-hover)}.searchcraft-popover-list-item-image-wrapper{align-items:center;aspect-ratio:16/9;display:flex;flex-shrink:0;justify-content:center;width:160px}.searchcraft-popover-list-item-image{height:100%;object-fit:var(--sc-popover-list-item-image-fit);width:100%}.searchcraft-popover-list-item-content{display:flex;flex-direction:column;flex-grow:1;gap:4px;justify-content:center}.searchcraft-popover-list-item-content-title,.searchcraft-popover-list-item-content-subtitle{display:-webkit-box;line-clamp:2;margin:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.searchcraft-popover-list-item-content-title{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-heading-5-font-size);font-weight:var(--sc-font-bold)}.searchcraft-popover-list-item-content-subtitle{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-popover-list-view{display:flex;flex-direction:column}.searchcraft-results-info{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-primary);margin:0}.searchcraft-slider{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%;margin-top:4px}.searchcraft-slider-range{align-items:center;background-color:var(--sc-surface-disabled);border-radius:999px;display:flex;position:relative;height:4px;width:100%}.searchcraft-slider-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range{background-color:var(--sc-surface-brand-primary);border-radius:2px;height:4px;position:absolute;top:50%;transform:translateY(-50%);z-index:0}.searchcraft-slider-range .searchcraft-slider-active-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-active-range::-moz-range-track{pointer-events:none}.searchcraft-slider-range .searchcraft-slider-input{appearance:none;background:rgba(0,0,0,0);border-radius:2px;height:4px;margin:0;outline:none;pointer-events:none;position:absolute;width:100%;-webkit-appearance:none}.searchcraft-slider-range .searchcraft-slider-input::-webkit-slider-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:1px solid var(--sc-border-neutral);cursor:pointer;height:18px;pointer-events:all;width:18px;-webkit-appearance:none}.searchcraft-slider-range .searchcraft-slider-input::-moz-range-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:1px solid var(--sc-border-neutral);cursor:pointer;height:18px;pointer-events:all;width:18px}.searchcraft-slider-range .searchcraft-slider-input:focus::-webkit-slider-thumb{outline:2px solid var(--sc-surface-brand-primary)}.searchcraft-slider-range .searchcraft-slider-input:focus::-moz-range-thumb{outline:2px solid var(--sc-surface-brand-primary)}.searchcraft-slider-label{color:var(--sc-content-primary);display:flex;font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);justify-content:space-between;margin-top:4px;width:100%}.searchcraft-slider-start-label,.searchcraft-slider-end-label{min-width:30px;text-align:center}.searchcraft-toggle-button{align-items:flex-start;display:flex;gap:10px;justify-content:space-between}.searchcraft-toggle-button-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-primary);margin:0}.searchcraft-toggle-button-sub-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);color:var(--sc-content-neutral-secondary);margin:0}.searchcraft-toggle-button-background{background:var(--sc-surface-disabled);border-radius:var(--sc-border-radius-full);border:none;cursor:pointer;flex-shrink:0;height:26px;position:relative;transition:background-color .2s;width:44px}.searchcraft-toggle-button-handle{background:var(--sc-surface-neutral-light);border-radius:50%;height:18px;left:4px;position:absolute;top:calc(50% - 9px);transition:transform .3s ease;width:18px}.searchcraft-toggle-button-active .searchcraft-toggle-button-background{background:var(--sc-surface-brand-primary);box-shadow:0px 0px 0px 1px rgba(0,0,0,.05)}.searchcraft-toggle-button-active .searchcraft-toggle-button-handle{transform:translateX(16px)}.searchcraft-pagination{display:inline-grid;gap:16px;grid-template-columns:repeat(3, auto);grid-template-rows:1fr}.searchcraft-pagination-list{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius);display:flex;list-style-type:none;margin:0;overflow:hidden;padding:0;width:auto}.searchcraft-pagination-list li{border-right:1px solid var(--sc-border-neutral);height:100%;min-height:44px;width:44px}.searchcraft-pagination-list li:last-child{border-right:none}.searchcraft-pagination-item{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;background-color:var(--sc-surface-neutral-primary);border:none;display:flex;height:100%;justify-content:center;width:100%}.searchcraft-pagination-item-active{background-color:var(--sc-surface-brand-secondary);font-weight:var(--sc-font-bold)}.searchcraft-pagination-control{border:1px solid var(--sc-border-neutral);border-radius:var(--sc-border-radius)}.searchcraft-pagination-range{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);align-items:center;display:flex}.searchcraft-select{display:flex;flex-direction:column;gap:4px}.searchcraft-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal);font-weight:var(--sc-font-bold)}.searchcraft-select-input-wrapper{position:relative}.searchcraft-select-input{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal);appearance:none;background-color:var(--sc-surface-neutral-secondary);border:2px solid rgba(0,0,0,0);border-radius:var(--sc-border-radius);cursor:pointer;height:44px;padding:0 44px 0 16px;width:100%}.searchcraft-select-input:hover{background-color:var(--sc-surface-neutral-secondary-hover)}.searchcraft-select-input:active{background-color:var(--sc-surface-neutral-secondary-active)}.searchcraft-select-input:focus{border-color:var(--sc-border-brand);outline:none}.searchcraft-select-input-icon{fill:none;pointer-events:none;position:absolute;right:12px;top:50%;transform:translateY(-50%)}.searchcraft-select-caption{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page{display:flex}.searchcraft-search-results-per-page-select{align-items:center;display:flex;gap:12px}.searchcraft-search-results-per-page-select-label{font-family:var(--sc-font-family);line-height:1.25;-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-font-normal)}.searchcraft-search-results-per-page-select-input{min-width:120px}/*# sourceMappingURL=hologram.css.map */
4841
+ `, xa = /* @__PURE__ */ D(class extends L {
4791
4842
  constructor() {
4792
4843
  super(), this.__registerHost();
4793
4844
  }
4794
4845
  render() {
4795
- return h("style", { key: "912dbad4e0aa5be21ed638cd20c276b530991454" }, qc);
4846
+ return u("style", { key: "912dbad4e0aa5be21ed638cd20c276b530991454" }, qc);
4796
4847
  }
4797
4848
  }, [0, "searchcraft-theme"]);
4798
4849
  function Yc() {
@@ -4806,11 +4857,11 @@ function Yc() {
4806
4857
  }
4807
4858
  });
4808
4859
  }
4809
- const Zc = xa, Ra = Yc, Qc = ra, Kc = () => {
4810
- nc(), cc(), lc(), fc(), aa(), ca(), Ec(), la(), ha(), _c(), ga(), Oc(), Lc(), ba(), Hc(), Ea(), Sa(), Wc(), Gc(), Ra(), Qc();
4860
+ const Zc = xa, Ta = Yc, Qc = sa, Kc = () => {
4861
+ oc(), ic(), uc(), fc(), na(), ia(), kc(), ua(), da(), _c(), va(), Oc(), Fc(), ya(), Hc(), Ra(), wa(), Wc(), Gc(), Ta(), Qc();
4811
4862
  };
4812
4863
  globalThis.__scDefineCustomElements__ = Kc;
4813
- const Xc = "@searchcraft/react-sdk", Jc = "0.10.5", Ss = {
4864
+ const Xc = "@searchcraft/react-sdk", Jc = "0.10.6", ws = {
4814
4865
  name: Xc,
4815
4866
  version: Jc
4816
4867
  };
@@ -4819,30 +4870,30 @@ const Xc = "@searchcraft/react-sdk", Jc = "0.10.5", Ss = {
4819
4870
  * Copyright 2018 Google LLC
4820
4871
  * SPDX-License-Identifier: BSD-3-Clause
4821
4872
  */
4822
- const ei = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), ws = /* @__PURE__ */ new WeakMap(), ks = (e, t, r, s, a) => {
4873
+ const ei = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), Es = /* @__PURE__ */ new WeakMap(), ks = (e, t, r, s, a) => {
4823
4874
  const o = a == null ? void 0 : a[t];
4824
- o === void 0 ? (e[t] = r, r == null && t in HTMLElement.prototype && e.removeAttribute(t)) : r !== s && ((n, c, l) => {
4825
- let u = ws.get(n);
4826
- u === void 0 && ws.set(n, u = /* @__PURE__ */ new Map());
4827
- let i = u.get(c);
4828
- l !== void 0 ? i === void 0 ? (u.set(c, i = { handleEvent: l }), n.addEventListener(c, i)) : i.handleEvent = l : i !== void 0 && (u.delete(c), n.removeEventListener(c, i));
4875
+ o === void 0 ? (e[t] = r, r == null && t in HTMLElement.prototype && e.removeAttribute(t)) : r !== s && ((n, c, i) => {
4876
+ let h = Es.get(n);
4877
+ h === void 0 && Es.set(n, h = /* @__PURE__ */ new Map());
4878
+ let l = h.get(c);
4879
+ i !== void 0 ? l === void 0 ? (h.set(c, l = { handleEvent: i }), n.addEventListener(c, l)) : l.handleEvent = i : l !== void 0 && (h.delete(c), n.removeEventListener(c, l));
4829
4880
  })(e, o, r);
4830
4881
  }, ti = ({ react: e, tagName: t, elementClass: r, events: s, displayName: a }) => {
4831
- const o = new Set(Object.keys(s ?? {})), n = e.forwardRef((c, l) => {
4832
- const u = e.useRef(/* @__PURE__ */ new Map()), i = e.useRef(null), p = {}, m = {};
4882
+ const o = new Set(Object.keys(s ?? {})), n = e.forwardRef((c, i) => {
4883
+ const h = e.useRef(/* @__PURE__ */ new Map()), l = e.useRef(null), p = {}, m = {};
4833
4884
  for (const [v, b] of Object.entries(c)) ei.has(v) ? p[v === "className" ? "class" : v] = b : o.has(v) || v in r.prototype ? m[v] = b : p[v] = b;
4834
4885
  return e.useLayoutEffect(() => {
4835
- if (i.current === null) return;
4886
+ if (l.current === null) return;
4836
4887
  const v = /* @__PURE__ */ new Map();
4837
- for (const b in m) ks(i.current, b, c[b], u.current.get(b), s), u.current.delete(b), v.set(b, c[b]);
4838
- for (const [b, T] of u.current) ks(i.current, b, void 0, T, s);
4839
- u.current = v;
4888
+ for (const b in m) ks(l.current, b, c[b], h.current.get(b), s), h.current.delete(b), v.set(b, c[b]);
4889
+ for (const [b, T] of h.current) ks(l.current, b, void 0, T, s);
4890
+ h.current = v;
4840
4891
  }), e.useLayoutEffect(() => {
4841
4892
  var v;
4842
- (v = i.current) == null || v.removeAttribute("defer-hydration");
4893
+ (v = l.current) == null || v.removeAttribute("defer-hydration");
4843
4894
  }, []), p.suppressHydrationWarning = !0, e.createElement(t, { ...p, ref: e.useCallback((v) => {
4844
- i.current = v, typeof l == "function" ? l(v) : l !== null && (l.current = v);
4845
- }, [l]) });
4895
+ l.current = v, typeof i == "function" ? i(v) : i !== null && (i.current = v);
4896
+ }, [i]) });
4846
4897
  });
4847
4898
  return n.displayName = a ?? r.name, n;
4848
4899
  }, be = ({
@@ -4854,10 +4905,10 @@ const ei = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
4854
4905
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
4855
4906
  react: ve,
4856
4907
  events: {},
4857
- defineCustomElement: aa
4908
+ defineCustomElement: na
4858
4909
  }), si = /* @__PURE__ */ be({
4859
4910
  tagName: "searchcraft-input-form",
4860
- elementClass: kc,
4911
+ elementClass: Ec,
4861
4912
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
4862
4913
  react: ve,
4863
4914
  events: {
@@ -4865,69 +4916,69 @@ const ei = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
4865
4916
  onInputBlur: "inputBlur",
4866
4917
  onInputInit: "inputInit"
4867
4918
  },
4868
- defineCustomElement: ca
4919
+ defineCustomElement: ia
4869
4920
  }), ai = /* @__PURE__ */ be({
4870
4921
  tagName: "searchcraft-pagination",
4871
- elementClass: Rc,
4922
+ elementClass: xc,
4872
4923
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
4873
4924
  react: ve,
4874
4925
  events: {},
4875
- defineCustomElement: la
4926
+ defineCustomElement: ua
4876
4927
  }), ni = /* @__PURE__ */ be({
4877
4928
  tagName: "searchcraft-popover-button",
4878
4929
  elementClass: Pc,
4879
4930
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
4880
4931
  react: ve,
4881
4932
  events: {},
4882
- defineCustomElement: ha
4933
+ defineCustomElement: da
4883
4934
  }), oi = /* @__PURE__ */ be({
4884
4935
  tagName: "searchcraft-popover-form",
4885
4936
  elementClass: Mc,
4886
4937
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
4887
4938
  react: ve,
4888
4939
  events: {},
4889
- defineCustomElement: ga
4940
+ defineCustomElement: va
4890
4941
  }), ci = /* @__PURE__ */ be({
4891
4942
  tagName: "searchcraft-results-info",
4892
4943
  elementClass: Dc,
4893
4944
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
4894
4945
  react: ve,
4895
4946
  events: {},
4896
- defineCustomElement: ba
4947
+ defineCustomElement: ya
4897
4948
  }), ii = /* @__PURE__ */ be({
4898
4949
  tagName: "searchcraft-search-results",
4899
4950
  elementClass: zc,
4900
4951
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
4901
4952
  react: ve,
4902
4953
  events: {},
4903
- defineCustomElement: Sa
4954
+ defineCustomElement: wa
4904
4955
  }), li = /* @__PURE__ */ be({
4905
4956
  tagName: "searchcraft-search-results-per-page",
4906
4957
  elementClass: jc,
4907
4958
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
4908
4959
  react: ve,
4909
4960
  events: {},
4910
- defineCustomElement: Ea
4961
+ defineCustomElement: Ra
4911
4962
  }), ui = /* @__PURE__ */ be({
4912
4963
  tagName: "searchcraft-theme",
4913
4964
  elementClass: Zc,
4914
4965
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
4915
4966
  react: ve,
4916
4967
  events: {},
4917
- defineCustomElement: Ra
4918
- }), Li = (e) => /* @__PURE__ */ ge(ri, { ...e }), Fi = (e) => /* @__PURE__ */ ge(si, { ...e }), Di = (e) => /* @__PURE__ */ ge(ni, { ...e }), Ni = (e) => /* @__PURE__ */ ge(oi, { ...e }), Hi = (e) => /* @__PURE__ */ ge(ci, { ...e }), Ui = (e) => /* @__PURE__ */ ge(ui, { ...e }), zi = (e) => /* @__PURE__ */ ge(ai, { ...e }), Bi = (e) => /* @__PURE__ */ ge(li, { ...e }), Vi = (e) => /* @__PURE__ */ ge(ii, { ...e });
4968
+ defineCustomElement: Ta
4969
+ }), Fi = (e) => /* @__PURE__ */ ge(ri, { ...e }), Li = (e) => /* @__PURE__ */ ge(si, { ...e }), Di = (e) => /* @__PURE__ */ ge(ni, { ...e }), Ni = (e) => /* @__PURE__ */ ge(oi, { ...e }), Hi = (e) => /* @__PURE__ */ ge(ci, { ...e }), Ui = (e) => /* @__PURE__ */ ge(ui, { ...e }), zi = (e) => /* @__PURE__ */ ge(ai, { ...e }), Bi = (e) => /* @__PURE__ */ ge(li, { ...e }), Vi = (e) => /* @__PURE__ */ ge(ii, { ...e });
4919
4970
  class ji extends Lo {
4920
4971
  constructor(t) {
4921
4972
  super(t, {
4922
- sdkName: Ss.name,
4923
- sdkVersion: Ss.version
4973
+ sdkName: ws.name,
4974
+ sdkVersion: ws.version
4924
4975
  });
4925
4976
  }
4926
4977
  }
4927
4978
  export {
4928
4979
  ji as Searchcraft,
4929
- Li as SearchcraftFilterPanel,
4930
- Fi as SearchcraftInputForm,
4980
+ Fi as SearchcraftFilterPanel,
4981
+ Li as SearchcraftInputForm,
4931
4982
  zi as SearchcraftPagination,
4932
4983
  Di as SearchcraftPopoverButton,
4933
4984
  Ni as SearchcraftPopoverForm,