@searchcraft/react-sdk 0.5.3 → 0.7.0

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.
package/dist/index.js CHANGED
@@ -1,22 +1,22 @@
1
- import { jsx as T } from "react/jsx-runtime";
2
- import _ from "react";
3
- const Zt = "searchcraft-javascript-sdk", G = (
1
+ import { jsx as _ } from "react/jsx-runtime";
2
+ import z from "react";
3
+ const ar = "searchcraft-javascript-sdk", X = (
4
4
  /* searchcraft-javascript-sdk */
5
- { allRenderFn: !0, appendChildSlotFix: !1, asyncLoading: !0, asyncQueue: !1, attachStyles: !0, cloneNodeFix: !1, cmpDidLoad: !0, cmpDidRender: !1, cmpDidUnload: !1, cmpDidUpdate: !1, cmpShouldUpdate: !1, cmpWillLoad: !1, cmpWillRender: !1, cmpWillUpdate: !1, connectedCallback: !0, constructableCSS: !0, cssAnnotations: !0, devTools: !1, disconnectedCallback: !0, element: !1, event: !0, experimentalScopedSlotChanges: !1, experimentalSlotFixes: !1, formAssociated: !1, hasRenderFn: !0, hostListener: !1, hostListenerTarget: !1, hostListenerTargetBody: !1, hostListenerTargetDocument: !1, hostListenerTargetParent: !1, hostListenerTargetWindow: !1, hotModuleReplacement: !1, hydrateClientSide: !1, hydrateServerSide: !1, hydratedAttribute: !1, hydratedClass: !0, hydratedSelectorName: "hydrated", invisiblePrehydration: !0, isDebug: !1, isDev: !1, isTesting: !1, lazyLoad: !1, lifecycle: !0, lifecycleDOMEvents: !1, member: !0, method: !1, mode: !1, observeAttribute: !0, profile: !1, prop: !0, propBoolean: !0, propMutable: !1, propNumber: !0, propString: !0, reflect: !1, scoped: !1, scopedSlotTextContentFix: !1, scriptDataOpts: !1, shadowDelegatesFocus: !1, shadowDom: !1, slot: !0, slotChildNodesFix: !1, slotRelocation: !0, state: !0, style: !0, svg: !0, taskQueue: !0, updatable: !0, vdomAttribute: !0, vdomClass: !0, vdomFunctional: !0, vdomKey: !0, vdomListener: !0, vdomPropOrAttr: !0, vdomRef: !1, vdomRender: !0, vdomStyle: !0, vdomText: !0, vdomXlink: !1, watchCallback: !0 }
5
+ { allRenderFn: !0, appendChildSlotFix: !1, asyncLoading: !0, asyncQueue: !1, attachStyles: !0, cloneNodeFix: !1, cmpDidLoad: !0, cmpDidRender: !1, cmpDidUnload: !1, cmpDidUpdate: !1, cmpShouldUpdate: !1, cmpWillLoad: !1, cmpWillRender: !1, cmpWillUpdate: !1, connectedCallback: !0, constructableCSS: !0, cssAnnotations: !0, devTools: !1, disconnectedCallback: !0, element: !1, event: !0, experimentalScopedSlotChanges: !1, experimentalSlotFixes: !1, formAssociated: !1, hasRenderFn: !0, hostListener: !1, hostListenerTarget: !1, hostListenerTargetBody: !1, hostListenerTargetDocument: !1, hostListenerTargetParent: !1, hostListenerTargetWindow: !1, hotModuleReplacement: !1, hydrateClientSide: !1, hydrateServerSide: !1, hydratedAttribute: !1, hydratedClass: !0, hydratedSelectorName: "hydrated", invisiblePrehydration: !0, isDebug: !1, isDev: !1, isTesting: !1, lazyLoad: !1, lifecycle: !0, lifecycleDOMEvents: !1, member: !0, method: !1, mode: !1, modernPropertyDecls: !1, observeAttribute: !0, profile: !1, prop: !0, propBoolean: !0, propMutable: !1, propNumber: !0, propString: !0, reflect: !1, scoped: !1, scopedSlotTextContentFix: !1, scriptDataOpts: !1, shadowDelegatesFocus: !1, shadowDom: !1, slot: !0, slotChildNodesFix: !1, slotRelocation: !0, state: !0, style: !0, svg: !0, taskQueue: !0, updatable: !0, vdomAttribute: !0, vdomClass: !0, vdomFunctional: !0, vdomKey: !0, vdomListener: !0, vdomPropOrAttr: !0, vdomRef: !1, vdomRender: !0, vdomStyle: !0, vdomText: !0, vdomXlink: !1, watchCallback: !0 }
6
6
  );
7
- var er = Object.defineProperty, tr = (e, t) => {
7
+ var cr = Object.defineProperty, ir = (e, t) => {
8
8
  for (var r in t)
9
- er(e, r, { get: t[r], enumerable: !0 });
10
- }, nt = /* @__PURE__ */ new WeakMap(), Q = (e) => nt.get(e), rr = (e, t) => {
9
+ cr(e, r, { get: t[r], enumerable: !0 });
10
+ }, or = "http://www.w3.org/2000/svg", lr = "http://www.w3.org/1999/xhtml", Fe = /* @__PURE__ */ new WeakMap(), ur = (e) => Fe.delete(e), V = (e) => Fe.get(e), dr = (e, t) => {
11
11
  const r = {
12
12
  $flags$: 0,
13
13
  $hostElement$: e,
14
14
  $cmpMeta$: t,
15
15
  $instanceValues$: /* @__PURE__ */ new Map()
16
16
  };
17
- return r.$onReadyPromise$ = new Promise((s) => r.$onReadyResolve$ = s), e["s-p"] = [], e["s-rc"] = [], nt.set(e, r);
18
- }, Me = (e, t) => t in e, le = (e, t) => (0, console.error)(e, t), ne = /* @__PURE__ */ new Map(), sr = "slot-fb{display:contents}slot-fb[hidden]{display:none}", ue = typeof window < "u" ? window : {}, j = ue.document || { head: {} }, A = ue.HTMLElement || class {
19
- }, S = {
17
+ return r.$onReadyPromise$ = new Promise((c) => r.$onReadyResolve$ = c), e["s-p"] = [], e["s-rc"] = [], Fe.set(e, r);
18
+ }, Oe = (e, t) => t in e, de = (e, t) => (0, console.error)(e, t), ce = /* @__PURE__ */ new Map(), fr = "sty-id", hr = "slot-fb{display:contents}slot-fb[hidden]{display:none}", fe = typeof window < "u" ? window : {}, H = fe.document || { head: {} }, S = fe.HTMLElement || class {
19
+ }, C = {
20
20
  $flags$: 0,
21
21
  $resourcesUrl$: "",
22
22
  jmp: (e) => e(),
@@ -24,88 +24,108 @@ var er = Object.defineProperty, tr = (e, t) => {
24
24
  ael: (e, t, r, s) => e.addEventListener(t, r, s),
25
25
  rel: (e, t, r, s) => e.removeEventListener(t, r, s),
26
26
  ce: (e, t) => new CustomEvent(e, t)
27
- }, nr = G.shadowDom, ar = (e) => Promise.resolve(e), at = /* @__PURE__ */ (() => {
27
+ }, pr = X.shadowDom, gr = (e) => Promise.resolve(e), lt = /* @__PURE__ */ (() => {
28
28
  try {
29
29
  return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
30
30
  } catch {
31
31
  }
32
32
  return !1;
33
- })(), fe = !1, Be = [], ct = [], cr = (e, t) => (r) => {
34
- e.push(r), fe || (fe = !0, S.$flags$ & 4 ? me(pe) : S.raf(pe));
35
- }, Ie = (e) => {
33
+ })(), me = !1, je = [], ut = [], mr = (e, t) => (r) => {
34
+ e.push(r), me || (me = !0, C.$flags$ & 4 ? xe(be) : C.raf(be));
35
+ }, Ue = (e) => {
36
36
  for (let t = 0; t < e.length; t++)
37
37
  try {
38
38
  e[t](performance.now());
39
39
  } catch (r) {
40
- le(r);
40
+ de(r);
41
41
  }
42
42
  e.length = 0;
43
- }, pe = () => {
44
- Ie(Be), Ie(ct), (fe = Be.length > 0) && S.raf(pe);
45
- }, me = (e) => ar().then(e), ir = /* @__PURE__ */ cr(ct), Le = {}, or = "http://www.w3.org/2000/svg", lr = "http://www.w3.org/1999/xhtml", ye = (e) => (e = typeof e, e === "object" || e === "function");
46
- function ur(e) {
43
+ }, be = () => {
44
+ Ue(je), Ue(ut), (me = je.length > 0) && C.raf(be);
45
+ }, xe = (e) => gr().then(e), br = /* @__PURE__ */ mr(ut), Ee = (e) => (e = typeof e, e === "object" || e === "function");
46
+ function yr(e) {
47
47
  var t, r, s;
48
48
  return (s = (r = (t = e.head) == null ? void 0 : t.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : r.getAttribute("content")) != null ? s : void 0;
49
49
  }
50
- var dr = {};
51
- tr(dr, {
52
- err: () => it,
53
- map: () => hr,
54
- ok: () => ge,
55
- unwrap: () => fr,
56
- unwrapErr: () => pr
50
+ var vr = {};
51
+ ir(vr, {
52
+ err: () => dt,
53
+ map: () => Fr,
54
+ ok: () => ye,
55
+ unwrap: () => xr,
56
+ unwrapErr: () => Er
57
57
  });
58
- var ge = (e) => ({
58
+ var ye = (e) => ({
59
59
  isOk: !0,
60
60
  isErr: !1,
61
61
  value: e
62
- }), it = (e) => ({
62
+ }), dt = (e) => ({
63
63
  isOk: !1,
64
64
  isErr: !0,
65
65
  value: e
66
66
  });
67
- function hr(e, t) {
67
+ function Fr(e, t) {
68
68
  if (e.isOk) {
69
69
  const r = t(e.value);
70
- return r instanceof Promise ? r.then((s) => ge(s)) : ge(r);
70
+ return r instanceof Promise ? r.then((s) => ye(s)) : ye(r);
71
71
  }
72
72
  if (e.isErr) {
73
73
  const r = e.value;
74
- return it(r);
74
+ return dt(r);
75
75
  }
76
76
  throw "should never get here";
77
77
  }
78
- var fr = (e) => {
78
+ var xr = (e) => {
79
79
  if (e.isOk)
80
80
  return e.value;
81
81
  throw e.value;
82
- }, pr = (e) => {
82
+ }, Er = (e) => {
83
83
  if (e.isErr)
84
84
  return e.value;
85
85
  throw e.value;
86
- }, V = (e, t = "") => () => {
86
+ }, ft = (e) => {
87
+ const t = e.__childNodes || e.childNodes;
88
+ e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && ht(t, e.tagName).forEach((r) => {
89
+ var s;
90
+ r.nodeType === 1 && r.tagName === "SLOT-FB" && ((s = wr(r, r["s-sn"], !1)) != null && s.length ? r.hidden = !0 : r.hidden = !1);
91
+ });
92
+ for (const r of t)
93
+ r.nodeType === 1 && (r.__childNodes || r.childNodes).length && ft(r);
94
+ };
95
+ function ht(e, t, r) {
96
+ let s = 0, c = [], a;
97
+ for (; s < e.length; s++)
98
+ a = e[s], a["s-sr"] && a["s-hn"] === t && r === void 0 && c.push(a), c = [...c, ...ht(a.childNodes, t, r)];
99
+ return c;
100
+ }
101
+ var wr = (e, t, r = !0) => {
102
+ const s = [];
103
+ for ((r && e["s-sr"] || !e["s-sr"]) && s.push(e); (e = e.nextSibling) && e["s-sn"] === t; )
104
+ s.push(e);
105
+ return s;
106
+ }, He = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", Y = (e, t = "") => () => {
87
107
  }, d = (e, t, ...r) => {
88
- let s = null, c = null, a = null, n = !1, o = !1;
89
- const u = [], i = (h) => {
90
- for (let f = 0; f < h.length; f++)
91
- s = h[f], Array.isArray(s) ? i(s) : s != null && typeof s != "boolean" && ((n = typeof e != "function" && !ye(s)) && (s = String(s)), n && o ? u[u.length - 1].$text$ += s : u.push(n ? ae(null, s) : s), o = n);
108
+ let s = null, c = null, a = null, n = !1, i = !1;
109
+ const u = [], o = (f) => {
110
+ for (let h = 0; h < f.length; h++)
111
+ s = f[h], Array.isArray(s) ? o(s) : s != null && typeof s != "boolean" && ((n = typeof e != "function" && !Ee(s)) && (s = String(s)), n && i ? u[u.length - 1].$text$ += s : u.push(n ? ie(null, s) : s), i = n);
92
112
  };
93
- if (i(r), t) {
113
+ if (o(r), t) {
94
114
  t.key && (c = t.key), t.name && (a = t.name);
95
115
  {
96
- const h = t.className || t.class;
97
- h && (t.class = typeof h != "object" ? h : Object.keys(h).filter((f) => h[f]).join(" "));
116
+ const f = t.className || t.class;
117
+ f && (t.class = typeof f != "object" ? f : Object.keys(f).filter((h) => f[h]).join(" "));
98
118
  }
99
119
  }
100
120
  if (typeof e == "function")
101
121
  return e(
102
122
  t === null ? {} : t,
103
123
  u,
104
- mr
124
+ Sr
105
125
  );
106
- const l = ae(e, null);
126
+ const l = ie(e, null);
107
127
  return l.$attrs$ = t, u.length > 0 && (l.$children$ = u), l.$key$ = c, l.$name$ = a, l;
108
- }, ae = (e, t) => {
128
+ }, ie = (e, t) => {
109
129
  const r = {
110
130
  $flags$: 0,
111
131
  $tag$: e,
@@ -114,115 +134,118 @@ var fr = (e) => {
114
134
  $children$: null
115
135
  };
116
136
  return r.$attrs$ = null, r.$key$ = null, r.$name$ = null, r;
117
- }, gr = {}, br = (e) => e && e.$tag$ === gr, mr = {
118
- forEach: (e, t) => e.map(Oe).forEach(t),
119
- map: (e, t) => e.map(Oe).map(t).map(yr)
120
- }, Oe = (e) => ({
137
+ }, $r = {}, Cr = (e) => e && e.$tag$ === $r, Sr = {
138
+ forEach: (e, t) => e.map(qe).forEach(t),
139
+ map: (e, t) => e.map(qe).map(t).map(kr)
140
+ }, qe = (e) => ({
121
141
  vattrs: e.$attrs$,
122
142
  vchildren: e.$children$,
123
143
  vkey: e.$key$,
124
144
  vname: e.$name$,
125
145
  vtag: e.$tag$,
126
146
  vtext: e.$text$
127
- }), yr = (e) => {
147
+ }), kr = (e) => {
128
148
  if (typeof e.vtag == "function") {
129
149
  const r = { ...e.vattrs };
130
150
  return e.vkey && (r.key = e.vkey), e.vname && (r.name = e.vname), d(e.vtag, r, ...e.vchildren || []);
131
151
  }
132
- const t = ae(e.vtag, e.vtext);
152
+ const t = ie(e.vtag, e.vtext);
133
153
  return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname, t;
134
- }, vr = (e, t) => e != null && !ye(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, Fr = (e) => e, M = (e, t, r) => {
135
- const s = Fr(e);
154
+ }, pt = (e, t) => e != null && !Ee(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, Rr = (e) => e, M = (e, t, r) => {
155
+ const s = Rr(e);
136
156
  return {
137
- emit: (c) => ot(s, t, {
138
- bubbles: !!(r & 4),
139
- composed: !!(r & 2),
140
- cancelable: !!(r & 1),
157
+ emit: (c) => gt(s, t, {
158
+ bubbles: !0,
159
+ composed: !0,
160
+ cancelable: !0,
141
161
  detail: c
142
162
  })
143
163
  };
144
- }, ot = (e, t, r) => {
145
- const s = S.ce(t, r);
164
+ }, gt = (e, t, r) => {
165
+ const s = C.ce(t, r);
146
166
  return e.dispatchEvent(s), s;
147
- }, je = /* @__PURE__ */ new WeakMap(), xr = (e, t, r) => {
148
- let s = ne.get(e);
149
- at && r ? (s = s || new CSSStyleSheet(), typeof s == "string" ? s = t : s.replaceSync(t)) : s = t, ne.set(e, s);
150
- }, Er = (e, t, r) => {
167
+ }, J = /* @__PURE__ */ new WeakMap(), _r = (e, t, r) => {
168
+ let s = ce.get(e);
169
+ lt && r ? (s = s || new CSSStyleSheet(), typeof s == "string" ? s = t : s.replaceSync(t)) : s = t, ce.set(e, s);
170
+ }, zr = (e, t, r) => {
151
171
  var s;
152
- const c = lt(t), a = ne.get(c);
153
- if (e = e.nodeType === 11 ? e : j, a)
172
+ const c = mt(t), a = ce.get(c);
173
+ if (e = e.nodeType === 11 ? e : H, a)
154
174
  if (typeof a == "string") {
155
175
  e = e.head || e;
156
- let n = je.get(e), o;
157
- if (n || je.set(e, n = /* @__PURE__ */ new Set()), !n.has(c)) {
176
+ let n = J.get(e), i;
177
+ if (n || J.set(e, n = /* @__PURE__ */ new Set()), !n.has(c)) {
158
178
  {
159
- o = j.createElement("style"), o.innerHTML = a;
160
- const u = (s = S.$nonce$) != null ? s : ur(j);
161
- if (u != null && o.setAttribute("nonce", u), !(t.$flags$ & 1))
179
+ i = document.querySelector(`[${fr}="${c}"]`) || H.createElement("style"), i.innerHTML = a;
180
+ const u = (s = C.$nonce$) != null ? s : yr(H);
181
+ if (u != null && i.setAttribute("nonce", u), !(t.$flags$ & 1))
162
182
  if (e.nodeName === "HEAD") {
163
- const i = e.querySelectorAll("link[rel=preconnect]"), l = i.length > 0 ? i[i.length - 1].nextSibling : e.querySelector("style");
164
- e.insertBefore(o, l);
183
+ const o = e.querySelectorAll("link[rel=preconnect]"), l = o.length > 0 ? o[o.length - 1].nextSibling : e.querySelector("style");
184
+ e.insertBefore(i, l);
165
185
  } else if ("host" in e)
166
- if (at) {
167
- const i = new CSSStyleSheet();
168
- i.replaceSync(a), e.adoptedStyleSheets = [i, ...e.adoptedStyleSheets];
186
+ if (lt) {
187
+ const o = new CSSStyleSheet();
188
+ o.replaceSync(a), e.adoptedStyleSheets = [o, ...e.adoptedStyleSheets];
169
189
  } else {
170
- const i = e.querySelector("style");
171
- i ? i.innerHTML = a + i.innerHTML : e.prepend(o);
190
+ const o = e.querySelector("style");
191
+ o ? o.innerHTML = a + o.innerHTML : e.prepend(i);
172
192
  }
173
193
  else
174
- e.append(o);
175
- t.$flags$ & 1 && e.nodeName !== "HEAD" && e.insertBefore(o, null);
194
+ e.append(i);
195
+ t.$flags$ & 1 && e.nodeName !== "HEAD" && e.insertBefore(i, null);
176
196
  }
177
- t.$flags$ & 4 && (o.innerHTML += sr), n && n.add(c);
197
+ t.$flags$ & 4 && (i.innerHTML += hr), n && n.add(c);
178
198
  }
179
199
  } else e.adoptedStyleSheets.includes(a) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, a]);
180
200
  return c;
181
- }, $r = (e) => {
182
- const t = e.$cmpMeta$, r = e.$hostElement$, s = V("attachStyles", t.$tagName$);
183
- Er(
201
+ }, Tr = (e) => {
202
+ const t = e.$cmpMeta$, r = e.$hostElement$, s = Y("attachStyles", t.$tagName$);
203
+ zr(
184
204
  r.getRootNode(),
185
205
  t
186
206
  ), s();
187
- }, lt = (e, t) => "sc-" + e.$tagName$, Ue = (e, t, r, s, c, a) => {
207
+ }, mt = (e, t) => "sc-" + e.$tagName$, Ne = (e, t, r, s, c, a) => {
188
208
  if (r !== s) {
189
- let n = Me(e, t), o = t.toLowerCase();
209
+ let n = Oe(e, t), i = t.toLowerCase();
190
210
  if (t === "class") {
191
- const u = e.classList, i = Ne(r), l = Ne(s);
192
- u.remove(...i.filter((h) => h && !l.includes(h))), u.add(...l.filter((h) => h && !i.includes(h)));
211
+ const u = e.classList, o = Ve(r);
212
+ let l = Ve(s);
213
+ e["s-si"] ? (l.push(e["s-si"]), o.forEach((f) => {
214
+ f.startsWith(e["s-si"]) && l.push(f);
215
+ }), l = [...new Set(l)], u.add(...l), delete e["s-si"]) : (u.remove(...o.filter((f) => f && !l.includes(f))), u.add(...l.filter((f) => f && !o.includes(f))));
193
216
  } else if (t === "style") {
194
217
  for (const u in r)
195
218
  (!s || s[u] == null) && (u.includes("-") ? e.style.removeProperty(u) : e.style[u] = "");
196
219
  for (const u in s)
197
220
  (!r || s[u] !== r[u]) && (u.includes("-") ? e.style.setProperty(u, s[u]) : e.style[u] = s[u]);
198
221
  } else if (t !== "key") if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n") {
199
- if (t[2] === "-" ? t = t.slice(3) : Me(ue, o) ? t = o.slice(2) : t = o[2] + t.slice(3), r || s) {
200
- const u = t.endsWith(ut);
201
- t = t.replace(wr, ""), r && S.rel(e, t, r, u), s && S.ael(e, t, s, u);
222
+ if (t[2] === "-" ? t = t.slice(3) : Oe(fe, i) ? t = i.slice(2) : t = i[2] + t.slice(3), r || s) {
223
+ const u = t.endsWith(bt);
224
+ t = t.replace(Ar, ""), r && C.rel(e, t, r, u), s && C.ael(e, t, s, u);
202
225
  }
203
226
  } else {
204
- const u = ye(s);
227
+ const u = Ee(s);
205
228
  if ((n || u && s !== null) && !c)
206
229
  try {
207
230
  if (e.tagName.includes("-"))
208
- e[t] = s;
231
+ e[t] !== s && (e[t] = s);
209
232
  else {
210
- const i = s ?? "";
211
- t === "list" ? n = !1 : (r == null || e[t] != i) && (typeof e.__lookupSetter__(t) == "function" ? e[t] = i : e.setAttribute(t, i));
233
+ const o = s ?? "";
234
+ t === "list" ? n = !1 : (r == null || e[t] != o) && (typeof e.__lookupSetter__(t) == "function" ? e[t] = o : e.setAttribute(t, o));
212
235
  }
213
236
  } catch {
214
237
  }
215
238
  s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!n || a & 4 || c) && !u && (s = s === !0 ? "" : s, e.setAttribute(t, s));
216
239
  }
217
240
  }
218
- }, Sr = /\s/, Ne = (e) => e ? e.split(Sr) : [], ut = "Capture", wr = new RegExp(ut + "$"), dt = (e, t, r) => {
219
- const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, c = e && e.$attrs$ || Le, a = t.$attrs$ || Le;
220
- for (const n of qe(Object.keys(c)))
221
- n in a || Ue(s, n, c[n], void 0, r, t.$flags$);
222
- for (const n of qe(Object.keys(a)))
223
- Ue(s, n, c[n], a[n], r, t.$flags$);
241
+ }, Pr = /\s/, Ve = (e) => (typeof e == "object" && "baseVal" in e && (e = e.baseVal), e ? e.split(Pr) : []), bt = "Capture", Ar = new RegExp(bt + "$"), yt = (e, t, r) => {
242
+ const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, c = e && e.$attrs$ || {}, a = t.$attrs$ || {};
243
+ for (const n of We(Object.keys(c)))
244
+ n in a || Ne(s, n, c[n], void 0, r, t.$flags$);
245
+ for (const n of We(Object.keys(a)))
246
+ Ne(s, n, c[n], a[n], r, t.$flags$);
224
247
  };
225
- function qe(e) {
248
+ function We(e) {
226
249
  return e.includes("ref") ? (
227
250
  // we need to sort these to ensure that `'ref'` is the last attr
228
251
  [...e.filter((t) => t !== "ref"), "ref"]
@@ -231,11 +254,11 @@ function qe(e) {
231
254
  e
232
255
  );
233
256
  }
234
- var be, ve, ce = !1, ie = !1, Fe = !1, C = !1, oe = (e, t, r, s) => {
235
- var c;
236
- const a = t.$children$[r];
237
- let n = 0, o, u, i;
238
- if (ce || (Fe = !0, a.$tag$ === "slot" && (a.$flags$ |= a.$children$ ? (
257
+ var ve, we, oe = !1, le = !1, $e = !1, R = !1, ue = (e, t, r) => {
258
+ var s;
259
+ const c = t.$children$[r];
260
+ let a = 0, n, i, u;
261
+ if (oe || ($e = !0, c.$tag$ === "slot" && (c.$flags$ |= c.$children$ ? (
239
262
  // slot element has fallback content
240
263
  // still create an element that "mocks" the slot element
241
264
  2
@@ -244,344 +267,342 @@ var be, ve, ce = !1, ie = !1, Fe = !1, C = !1, oe = (e, t, r, s) => {
244
267
  // create an html comment we'll use to always reference
245
268
  // where actual slot content should sit next to
246
269
  1
247
- ))), a.$text$ !== null)
248
- o = a.$elm$ = j.createTextNode(a.$text$);
249
- else if (a.$flags$ & 1)
250
- o = a.$elm$ = j.createTextNode("");
270
+ ))), c.$text$ !== null)
271
+ n = c.$elm$ = H.createTextNode(c.$text$);
272
+ else if (c.$flags$ & 1)
273
+ n = c.$elm$ = H.createTextNode("");
251
274
  else {
252
- if (C || (C = a.$tag$ === "svg"), o = a.$elm$ = j.createElementNS(
253
- C ? or : lr,
254
- !ce && G.slotRelocation && a.$flags$ & 2 ? "slot-fb" : a.$tag$
255
- ), C && a.$tag$ === "foreignObject" && (C = !1), dt(null, a, C), o.getRootNode().querySelector("body"), a.$children$)
256
- for (n = 0; n < a.$children$.length; ++n)
257
- u = oe(e, a, n), u && o.appendChild(u);
258
- a.$tag$ === "svg" ? C = !1 : o.tagName === "foreignObject" && (C = !0);
259
- }
260
- return o["s-hn"] = ve, a.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = be, o["s-sn"] = a.$name$ || "", o["s-rf"] = (c = a.$attrs$) == null ? void 0 : c.ref, i = e && e.$children$ && e.$children$[r], i && i.$tag$ === a.$tag$ && e.$elm$ && K(e.$elm$, !1)), o;
261
- }, K = (e, t) => {
262
- S.$flags$ |= 1;
263
- const r = Array.from(e.childNodes);
264
- e["s-sr"] && G.experimentalSlotFixes;
275
+ if (R || (R = c.$tag$ === "svg"), n = c.$elm$ = H.createElementNS(
276
+ R ? or : lr,
277
+ !oe && X.slotRelocation && c.$flags$ & 2 ? "slot-fb" : c.$tag$
278
+ ), R && c.$tag$ === "foreignObject" && (R = !1), yt(null, c, R), c.$children$)
279
+ for (a = 0; a < c.$children$.length; ++a)
280
+ i = ue(e, c, a), i && n.appendChild(i);
281
+ c.$tag$ === "svg" ? R = !1 : n.tagName === "foreignObject" && (R = !0);
282
+ }
283
+ return n["s-hn"] = we, c.$flags$ & 3 && (n["s-sr"] = !0, n["s-cr"] = ve, n["s-sn"] = c.$name$ || "", n["s-rf"] = (s = c.$attrs$) == null ? void 0 : s.ref, u = e && e.$children$ && e.$children$[r], u && u.$tag$ === c.$tag$ && e.$elm$ && ee(e.$elm$, !1)), n;
284
+ }, ee = (e, t) => {
285
+ C.$flags$ |= 1;
286
+ const r = Array.from(e.__childNodes || e.childNodes);
287
+ e["s-sr"] && X.experimentalSlotFixes;
265
288
  for (let s = r.length - 1; s >= 0; s--) {
266
289
  const c = r[s];
267
- c["s-hn"] !== ve && c["s-ol"] && (N(pt(c), c, xe(c)), c["s-ol"].remove(), c["s-ol"] = void 0, c["s-sh"] = void 0, Fe = !0), t && K(c, t);
290
+ c["s-hn"] !== we && c["s-ol"] && (N(te(c).parentNode, c, te(c)), c["s-ol"].remove(), c["s-ol"] = void 0, c["s-sh"] = void 0, $e = !0), t && ee(c, t);
268
291
  }
269
- S.$flags$ &= -2;
270
- }, ht = (e, t, r, s, c, a) => {
271
- let n = e["s-cr"] && e["s-cr"].parentNode || e, o;
292
+ C.$flags$ &= -2;
293
+ }, vt = (e, t, r, s, c, a) => {
294
+ let n = e["s-cr"] && e["s-cr"].parentNode || e, i;
272
295
  for (; c <= a; ++c)
273
- s[c] && (o = oe(null, r, c), o && (s[c].$elm$ = o, N(n, o, xe(t))));
274
- }, ft = (e, t, r) => {
296
+ s[c] && (i = ue(null, r, c), i && (s[c].$elm$ = i, N(n, i, te(t))));
297
+ }, Ft = (e, t, r) => {
275
298
  for (let s = t; s <= r; ++s) {
276
299
  const c = e[s];
277
300
  if (c) {
278
301
  const a = c.$elm$;
279
- a && (ie = !0, a["s-ol"] ? a["s-ol"].remove() : K(a, !0), a.remove());
302
+ a && (le = !0, a["s-ol"] ? a["s-ol"].remove() : ee(a, !0), a.remove());
280
303
  }
281
304
  }
282
- }, Cr = (e, t, r, s, c = !1) => {
283
- let a = 0, n = 0, o = 0, u = 0, i = t.length - 1, l = t[0], h = t[i], f = s.length - 1, g = s[0], b = s[f], v, y;
284
- for (; a <= i && n <= f; )
305
+ }, Dr = (e, t, r, s, c = !1) => {
306
+ let a = 0, n = 0, i = 0, u = 0, o = t.length - 1, l = t[0], f = t[o], h = s.length - 1, p = s[0], m = s[h], E, W;
307
+ for (; a <= o && n <= h; )
285
308
  if (l == null)
286
309
  l = t[++a];
287
- else if (h == null)
288
- h = t[--i];
289
- else if (g == null)
290
- g = s[++n];
291
- else if (b == null)
292
- b = s[--f];
293
- else if (Z(l, g, c))
294
- W(l, g, c), l = t[++a], g = s[++n];
295
- else if (Z(h, b, c))
296
- W(h, b, c), h = t[--i], b = s[--f];
297
- else if (Z(l, b, c))
298
- (l.$tag$ === "slot" || b.$tag$ === "slot") && K(l.$elm$.parentNode, !1), W(l, b, c), N(e, l.$elm$, h.$elm$.nextSibling), l = t[++a], b = s[--f];
299
- else if (Z(h, g, c))
300
- (l.$tag$ === "slot" || b.$tag$ === "slot") && K(h.$elm$.parentNode, !1), W(h, g, c), N(e, h.$elm$, l.$elm$), h = t[--i], g = s[++n];
310
+ else if (f == null)
311
+ f = t[--o];
312
+ else if (p == null)
313
+ p = s[++n];
314
+ else if (m == null)
315
+ m = s[--h];
316
+ else if (se(l, p, c))
317
+ K(l, p, c), l = t[++a], p = s[++n];
318
+ else if (se(f, m, c))
319
+ K(f, m, c), f = t[--o], m = s[--h];
320
+ else if (se(l, m, c))
321
+ (l.$tag$ === "slot" || m.$tag$ === "slot") && ee(l.$elm$.parentNode, !1), K(l, m, c), N(e, l.$elm$, f.$elm$.nextSibling), l = t[++a], m = s[--h];
322
+ else if (se(f, p, c))
323
+ (l.$tag$ === "slot" || m.$tag$ === "slot") && ee(f.$elm$.parentNode, !1), K(f, p, c), N(e, f.$elm$, l.$elm$), f = t[--o], p = s[++n];
301
324
  else {
302
- for (o = -1, u = a; u <= i; ++u)
303
- if (t[u] && t[u].$key$ !== null && t[u].$key$ === g.$key$) {
304
- o = u;
325
+ for (i = -1, u = a; u <= o; ++u)
326
+ if (t[u] && t[u].$key$ !== null && t[u].$key$ === p.$key$) {
327
+ i = u;
305
328
  break;
306
329
  }
307
- o >= 0 ? (y = t[o], y.$tag$ !== g.$tag$ ? v = oe(t && t[n], r, o) : (W(y, g, c), t[o] = void 0, v = y.$elm$), g = s[++n]) : (v = oe(t && t[n], r, n), g = s[++n]), v && N(pt(l.$elm$), v, xe(l.$elm$));
330
+ i >= 0 ? (W = t[i], W.$tag$ !== p.$tag$ ? E = ue(t && t[n], r, i) : (K(W, p, c), t[i] = void 0, E = W.$elm$), p = s[++n]) : (E = ue(t && t[n], r, n), p = s[++n]), E && N(
331
+ te(l.$elm$).parentNode,
332
+ E,
333
+ te(l.$elm$)
334
+ );
308
335
  }
309
- a > i ? ht(
336
+ a > o ? vt(
310
337
  e,
311
- s[f + 1] == null ? null : s[f + 1].$elm$,
338
+ s[h + 1] == null ? null : s[h + 1].$elm$,
312
339
  r,
313
340
  s,
314
341
  n,
315
- f
316
- ) : n > f && ft(t, a, i);
317
- }, Z = (e, t, r = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? (
318
- // The component gets hydrated and no VDOM has been initialized.
319
- // Here the comparison can't happen as $name$ property is not set for `leftNode`.
320
- "$nodeId$" in e && r && // `leftNode` is not from type HTMLComment which would cause many
321
- // hydration comments to be removed
322
- e.$elm$.nodeType !== 8 ? !1 : e.$name$ === t.$name$
323
- ) : r ? !0 : e.$key$ === t.$key$ : !1, xe = (e) => e && e["s-ol"] || e, pt = (e) => (e["s-ol"] ? e["s-ol"] : e).parentNode, W = (e, t, r = !1) => {
324
- const s = t.$elm$ = e.$elm$, c = e.$children$, a = t.$children$, n = t.$tag$, o = t.$text$;
342
+ h
343
+ ) : n > h && Ft(t, a, o);
344
+ }, se = (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, te = (e) => e && e["s-ol"] || e, K = (e, t, r = !1) => {
345
+ const s = t.$elm$ = e.$elm$, c = e.$children$, a = t.$children$, n = t.$tag$, i = t.$text$;
325
346
  let u;
326
- o === null ? (C = n === "svg" ? !0 : n === "foreignObject" ? !1 : C, n === "slot" && !ce || dt(e, t, C), c !== null && a !== null ? Cr(s, c, t, a, r) : a !== null ? (e.$text$ !== null && (s.textContent = ""), ht(s, null, t, a, 0, a.length - 1)) : (
347
+ i === null ? (R = n === "svg" ? !0 : n === "foreignObject" ? !1 : R, n === "slot" && !oe || yt(e, t, R), c !== null && a !== null ? Dr(s, c, t, a, r) : a !== null ? (e.$text$ !== null && (s.textContent = ""), vt(s, null, t, a, 0, a.length - 1)) : (
327
348
  // don't do this on initial render as it can cause non-hydrated content to be removed
328
- !r && G.updatable && c !== null && ft(c, 0, c.length - 1)
329
- ), C && n === "svg" && (C = !1)) : (u = s["s-cr"]) ? u.parentNode.textContent = o : e.$text$ !== o && (s.data = o);
330
- }, gt = (e) => {
331
- const t = e.childNodes;
332
- for (const r of t)
333
- if (r.nodeType === 1) {
334
- if (r["s-sr"]) {
335
- const s = r["s-sn"];
336
- r.hidden = !1;
337
- for (const c of t)
338
- if (c !== r) {
339
- if (c["s-hn"] !== r["s-hn"] || s !== "") {
340
- if (c.nodeType === 1 && (s === c.getAttribute("slot") || s === c["s-sn"]) || c.nodeType === 3 && s === c["s-sn"]) {
341
- r.hidden = !0;
342
- break;
343
- }
344
- } else if (c.nodeType === 1 || c.nodeType === 3 && c.textContent.trim() !== "") {
345
- r.hidden = !0;
346
- break;
347
- }
348
- }
349
- }
350
- gt(r);
351
- }
352
- }, B = [], bt = (e) => {
349
+ !r && X.updatable && c !== null && Ft(c, 0, c.length - 1)
350
+ ), R && n === "svg" && (R = !1)) : (u = s["s-cr"]) ? u.parentNode.textContent = i : e.$text$ !== i && (s.data = i);
351
+ }, L = [], xt = (e) => {
353
352
  let t, r, s;
354
- for (const c of e.childNodes) {
355
- if (c["s-sr"] && (t = c["s-cr"]) && t.parentNode) {
356
- r = t.parentNode.childNodes;
357
- const a = c["s-sn"];
353
+ const c = e.__childNodes || e.childNodes;
354
+ for (const a of c) {
355
+ if (a["s-sr"] && (t = a["s-cr"]) && t.parentNode) {
356
+ r = t.parentNode.__childNodes || t.parentNode.childNodes;
357
+ const n = a["s-sn"];
358
358
  for (s = r.length - 1; s >= 0; s--)
359
- if (t = r[s], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== c["s-hn"] && !G.experimentalSlotFixes)
360
- if (He(t, a)) {
361
- let n = B.find((o) => o.$nodeToRelocate$ === t);
362
- ie = !0, t["s-sn"] = t["s-sn"] || a, n ? (n.$nodeToRelocate$["s-sh"] = c["s-hn"], n.$slotRefNode$ = c) : (t["s-sh"] = c["s-hn"], B.push({
363
- $slotRefNode$: c,
359
+ if (t = r[s], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== a["s-hn"])
360
+ if (He(t, n)) {
361
+ let i = L.find((u) => u.$nodeToRelocate$ === t);
362
+ le = !0, t["s-sn"] = t["s-sn"] || n, i ? (i.$nodeToRelocate$["s-sh"] = a["s-hn"], i.$slotRefNode$ = a) : (t["s-sh"] = a["s-hn"], L.push({
363
+ $slotRefNode$: a,
364
364
  $nodeToRelocate$: t
365
- })), t["s-sr"] && B.map((o) => {
366
- He(o.$nodeToRelocate$, t["s-sn"]) && (n = B.find((u) => u.$nodeToRelocate$ === t), n && !o.$slotRefNode$ && (o.$slotRefNode$ = n.$slotRefNode$));
365
+ })), t["s-sr"] && L.map((u) => {
366
+ He(u.$nodeToRelocate$, t["s-sn"]) && (i = L.find((o) => o.$nodeToRelocate$ === t), i && !u.$slotRefNode$ && (u.$slotRefNode$ = i.$slotRefNode$));
367
367
  });
368
- } else B.some((n) => n.$nodeToRelocate$ === t) || B.push({
368
+ } else L.some((i) => i.$nodeToRelocate$ === t) || L.push({
369
369
  $nodeToRelocate$: t
370
370
  });
371
371
  }
372
- c.nodeType === 1 && bt(c);
372
+ a.nodeType === 1 && xt(a);
373
373
  }
374
- }, He = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", N = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r), kr = (e, t, r = !1) => {
374
+ }, N = (e, t, r) => e == null ? void 0 : e.insertBefore(t, r), Br = (e, t, r = !1) => {
375
375
  var s, c, a, n;
376
- const o = e.$hostElement$, u = e.$vnode$ || ae(null, null), i = br(t) ? t : d(null, null, t);
377
- if (ve = o.tagName, r && i.$attrs$)
378
- for (const l of Object.keys(i.$attrs$))
379
- o.hasAttribute(l) && !["key", "ref", "style", "class"].includes(l) && (i.$attrs$[l] = o[l]);
380
- i.$tag$ = null, i.$flags$ |= 4, e.$vnode$ = i, i.$elm$ = u.$elm$ = o, ce = nr, be = o["s-cr"], ie = !1, W(u, i, r);
376
+ const i = e.$hostElement$, u = e.$vnode$ || ie(null, null), o = Cr(t) ? t : d(null, null, t);
377
+ if (we = i.tagName, r && o.$attrs$)
378
+ for (const l of Object.keys(o.$attrs$))
379
+ i.hasAttribute(l) && !["key", "ref", "style", "class"].includes(l) && (o.$attrs$[l] = i[l]);
380
+ o.$tag$ = null, o.$flags$ |= 4, e.$vnode$ = o, o.$elm$ = u.$elm$ = i, oe = pr, ve = i["s-cr"], le = !1, K(u, o, r);
381
381
  {
382
- if (S.$flags$ |= 1, Fe) {
383
- bt(i.$elm$);
384
- for (const l of B) {
385
- const h = l.$nodeToRelocate$;
386
- if (!h["s-ol"]) {
387
- const f = j.createTextNode("");
388
- f["s-nr"] = h, N(h.parentNode, h["s-ol"] = f, h);
382
+ if (C.$flags$ |= 1, $e) {
383
+ xt(o.$elm$);
384
+ for (const l of L) {
385
+ const f = l.$nodeToRelocate$;
386
+ if (!f["s-ol"]) {
387
+ const h = H.createTextNode("");
388
+ h["s-nr"] = f, N(f.parentNode, f["s-ol"] = h, f);
389
389
  }
390
390
  }
391
- for (const l of B) {
392
- const h = l.$nodeToRelocate$, f = l.$slotRefNode$;
393
- if (f) {
394
- const g = f.parentNode;
395
- let b = f.nextSibling;
391
+ for (const l of L) {
392
+ const f = l.$nodeToRelocate$, h = l.$slotRefNode$;
393
+ if (h) {
394
+ const p = h.parentNode;
395
+ let m = h.nextSibling;
396
396
  {
397
- let v = (s = h["s-ol"]) == null ? void 0 : s.previousSibling;
398
- for (; v; ) {
399
- let y = (c = v["s-nr"]) != null ? c : null;
400
- if (y && y["s-sn"] === h["s-sn"] && g === y.parentNode) {
401
- for (y = y.nextSibling; y === h || y != null && y["s-sr"]; )
402
- y = y == null ? void 0 : y.nextSibling;
403
- if (!y || !y["s-nr"]) {
404
- b = y;
397
+ let q = (s = f["s-ol"]) == null ? void 0 : s.previousSibling;
398
+ for (; q; ) {
399
+ let F = (c = q["s-nr"]) != null ? c : null;
400
+ if (F && F["s-sn"] === f["s-sn"] && p === (F.__parentNode || F.parentNode)) {
401
+ for (F = F.nextSibling; F === f || F != null && F["s-sr"]; )
402
+ F = F == null ? void 0 : F.nextSibling;
403
+ if (!F || !F["s-nr"]) {
404
+ m = F;
405
405
  break;
406
406
  }
407
407
  }
408
- v = v.previousSibling;
408
+ q = q.previousSibling;
409
409
  }
410
410
  }
411
- (!b && g !== h.parentNode || h.nextSibling !== b) && h !== b && (!h["s-hn"] && h["s-ol"] && (h["s-hn"] = h["s-ol"].parentNode.nodeName), N(g, h, b), h.nodeType === 1 && (h.hidden = (a = h["s-ih"]) != null ? a : !1)), h && typeof f["s-rf"] == "function" && f["s-rf"](h);
411
+ const E = f.__parentNode || f.parentNode, W = f.__nextSibling || f.nextSibling;
412
+ (!m && p !== E || W !== m) && f !== m && (!f["s-hn"] && f["s-ol"] && (f["s-hn"] = f["s-ol"].parentNode.nodeName), N(p, f, m), f.nodeType === 1 && f.tagName !== "SLOT-FB" && (f.hidden = (a = f["s-ih"]) != null ? a : !1)), f && typeof h["s-rf"] == "function" && h["s-rf"](f);
412
413
  } else
413
- h.nodeType === 1 && (r && (h["s-ih"] = (n = h.hidden) != null ? n : !1), h.hidden = !0);
414
+ f.nodeType === 1 && (r && (f["s-ih"] = (n = f.hidden) != null ? n : !1), f.hidden = !0);
414
415
  }
415
416
  }
416
- ie && gt(i.$elm$), S.$flags$ &= -2, B.length = 0;
417
+ le && ft(o.$elm$), C.$flags$ &= -2, L.length = 0;
418
+ }
419
+ ve = void 0;
420
+ }, Et = (e, t) => {
421
+ if (t && !e.$onRenderResolve$ && t["s-p"]) {
422
+ const r = t["s-p"].push(
423
+ new Promise(
424
+ (s) => e.$onRenderResolve$ = () => {
425
+ t["s-p"].splice(r - 1, 1), s();
426
+ }
427
+ )
428
+ );
417
429
  }
418
- be = void 0;
419
- }, mt = (e, t) => {
420
- t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((r) => e.$onRenderResolve$ = r));
421
- }, Ee = (e, t) => {
430
+ }, Ce = (e, t) => {
422
431
  if (e.$flags$ |= 16, e.$flags$ & 4) {
423
432
  e.$flags$ |= 512;
424
433
  return;
425
434
  }
426
- return mt(e, e.$ancestorComponent$), ir(() => Rr(e, t));
427
- }, Rr = (e, t) => {
428
- const r = e.$hostElement$, s = V("scheduleUpdate", e.$cmpMeta$.$tagName$), c = r;
435
+ return Et(e, e.$ancestorComponent$), br(() => Ir(e, t));
436
+ }, Ir = (e, t) => {
437
+ const r = e.$hostElement$, s = Y("scheduleUpdate", e.$cmpMeta$.$tagName$), c = r;
429
438
  if (!c)
430
439
  throw new Error(
431
440
  `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`
432
441
  );
433
442
  let a;
434
- return s(), zr(a, () => _r(e, c, t));
435
- }, zr = (e, t) => Tr(e) ? e.then(t).catch((r) => {
443
+ return s(), Mr(a, () => Or(e, c, t));
444
+ }, Mr = (e, t) => Lr(e) ? e.then(t).catch((r) => {
436
445
  console.error(r), t();
437
- }) : t(), Tr = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", _r = async (e, t, r) => {
446
+ }) : t(), Lr = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Or = async (e, t, r) => {
438
447
  var s;
439
- const c = e.$hostElement$, a = V("update", e.$cmpMeta$.$tagName$), n = c["s-rc"];
440
- r && $r(e);
441
- const o = V("render", e.$cmpMeta$.$tagName$);
442
- Ar(e, t, c, r), n && (n.map((u) => u()), c["s-rc"] = void 0), o(), a();
448
+ const c = e.$hostElement$, a = Y("update", e.$cmpMeta$.$tagName$), n = c["s-rc"];
449
+ r && Tr(e);
450
+ const i = Y("render", e.$cmpMeta$.$tagName$);
451
+ jr(e, t, c, r), n && (n.map((u) => u()), c["s-rc"] = void 0), i(), a();
443
452
  {
444
- const u = (s = c["s-p"]) != null ? s : [], i = () => Pr(e);
445
- u.length === 0 ? i() : (Promise.all(u).then(i), e.$flags$ |= 4, u.length = 0);
453
+ const u = (s = c["s-p"]) != null ? s : [], o = () => Ur(e);
454
+ u.length === 0 ? o() : (Promise.all(u).then(o), e.$flags$ |= 4, u.length = 0);
446
455
  }
447
- }, Ar = (e, t, r, s) => {
456
+ }, jr = (e, t, r, s) => {
448
457
  try {
449
- t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, kr(e, t, s);
458
+ t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Br(e, t, s);
450
459
  } catch (c) {
451
- le(c, e.$hostElement$);
460
+ de(c, e.$hostElement$);
452
461
  }
453
462
  return null;
454
- }, Pr = (e) => {
455
- const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = V("postUpdate", t), c = r, a = e.$ancestorComponent$;
456
- e.$flags$ & 64 ? s() : (e.$flags$ |= 64, yt(r), Mr(c, "componentDidLoad"), s(), e.$onReadyResolve$(r), a || Dr()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && me(() => Ee(e, !1)), e.$flags$ &= -517;
457
- }, Dr = (e) => {
458
- yt(j.documentElement), me(() => ot(ue, "appload", { detail: { namespace: Zt } }));
459
- }, Mr = (e, t, r) => {
463
+ }, Ur = (e) => {
464
+ const t = e.$cmpMeta$.$tagName$, r = e.$hostElement$, s = Y("postUpdate", t), c = r, a = e.$ancestorComponent$;
465
+ e.$flags$ & 64 ? s() : (e.$flags$ |= 64, wt(r), qr(c, "componentDidLoad", void 0, r), s(), e.$onReadyResolve$(r), a || Hr()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && xe(() => Ce(e, !1)), e.$flags$ &= -517;
466
+ }, Hr = (e) => {
467
+ wt(H.documentElement), xe(() => gt(fe, "appload", { detail: { namespace: ar } }));
468
+ }, qr = (e, t, r, s) => {
460
469
  if (e && e[t])
461
470
  try {
462
471
  return e[t](r);
463
- } catch (s) {
464
- le(s);
472
+ } catch (c) {
473
+ de(c, s);
465
474
  }
466
- }, yt = (e) => {
475
+ }, wt = (e) => {
467
476
  var t;
468
- return e.classList.add((t = G.hydratedSelectorName) != null ? t : "hydrated");
469
- }, Br = (e, t) => Q(e).$instanceValues$.get(t), Ir = (e, t, r, s) => {
470
- const c = Q(e), a = e, n = c.$instanceValues$.get(t), o = c.$flags$, u = a;
471
- r = vr(r, s.$members$[t][0]);
472
- const i = Number.isNaN(n) && Number.isNaN(r);
473
- if (r !== n && !i) {
477
+ return e.classList.add((t = X.hydratedSelectorName) != null ? t : "hydrated");
478
+ }, Nr = (e, t) => V(e).$instanceValues$.get(t), Ge = (e, t, r, s) => {
479
+ const c = V(e), a = e, n = c.$instanceValues$.get(t), i = c.$flags$, u = a;
480
+ r = pt(r, s.$members$[t][0]);
481
+ const o = Number.isNaN(n) && Number.isNaN(r);
482
+ if (r !== n && !o) {
474
483
  c.$instanceValues$.set(t, r);
475
484
  {
476
- if (s.$watchers$ && o & 128) {
477
- const h = s.$watchers$[t];
478
- h && h.map((f) => {
485
+ if (s.$watchers$ && i & 128) {
486
+ const f = s.$watchers$[t];
487
+ f && f.map((h) => {
479
488
  try {
480
- u[f](r, n, t);
481
- } catch (g) {
482
- le(g, a);
489
+ u[h](r, n, t);
490
+ } catch (p) {
491
+ de(p, a);
483
492
  }
484
493
  });
485
494
  }
486
- (o & 18) === 2 && Ee(c, !1);
495
+ (i & 18) === 2 && Ce(c, !1);
487
496
  }
488
497
  }
489
- }, Lr = (e, t, r) => {
498
+ }, Vr = (e, t, r) => {
490
499
  var s, c;
491
500
  const a = e.prototype;
492
501
  if (t.$members$ || t.$watchers$ || e.watchers) {
493
502
  e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
494
503
  const n = Object.entries((s = t.$members$) != null ? s : {});
495
- n.map(([o, [u]]) => {
496
- (u & 31 || u & 32) && Object.defineProperty(a, o, {
497
- get() {
498
- return Br(this, o);
499
- },
500
- set(i) {
501
- Ir(this, o, i, t);
502
- },
503
- configurable: !0,
504
- enumerable: !0
505
- });
504
+ n.map(([i, [u]]) => {
505
+ if (u & 31 || u & 32) {
506
+ const { get: o, set: l } = Object.getOwnPropertyDescriptor(a, i) || {};
507
+ o && (t.$members$[i][0] |= 2048), l && (t.$members$[i][0] |= 4096), Object.defineProperty(a, i, {
508
+ get() {
509
+ return o ? o.apply(this) : Nr(this, i);
510
+ },
511
+ configurable: !0,
512
+ enumerable: !0
513
+ }), Object.defineProperty(a, i, {
514
+ set(f) {
515
+ const h = V(this);
516
+ if (l) {
517
+ const p = u & 32 ? this[i] : h.$hostElement$[i];
518
+ typeof p > "u" && h.$instanceValues$.get(i) ? f = h.$instanceValues$.get(i) : !h.$instanceValues$.get(i) && p && h.$instanceValues$.set(i, p), l.apply(this, [pt(f, u)]), f = u & 32 ? this[i] : h.$hostElement$[i], Ge(this, i, f, t);
519
+ return;
520
+ }
521
+ {
522
+ Ge(this, i, f, t);
523
+ return;
524
+ }
525
+ }
526
+ });
527
+ }
506
528
  });
507
529
  {
508
- const o = /* @__PURE__ */ new Map();
509
- a.attributeChangedCallback = function(u, i, l) {
510
- S.jmp(() => {
511
- var h;
512
- const f = o.get(u);
513
- if (this.hasOwnProperty(f))
514
- l = this[f], delete this[f];
515
- else {
516
- if (a.hasOwnProperty(f) && typeof this[f] == "number" && // cast type to number to avoid TS compiler issues
517
- this[f] == l)
530
+ const i = /* @__PURE__ */ new Map();
531
+ a.attributeChangedCallback = function(u, o, l) {
532
+ C.jmp(() => {
533
+ var f;
534
+ const h = i.get(u);
535
+ if (!(this.hasOwnProperty(h) && X.lazyLoad)) {
536
+ if (a.hasOwnProperty(h) && typeof this[h] == "number" && // cast type to number to avoid TS compiler issues
537
+ this[h] == l)
518
538
  return;
519
- if (f == null) {
520
- const g = Q(this), b = g == null ? void 0 : g.$flags$;
521
- if (b && !(b & 8) && b & 128 && l !== i) {
522
- const y = this, Pe = (h = t.$watchers$) == null ? void 0 : h[u];
523
- Pe == null || Pe.forEach((De) => {
524
- y[De] != null && y[De].call(y, l, i, u);
539
+ if (h == null) {
540
+ const m = V(this), E = m == null ? void 0 : m.$flags$;
541
+ if (E && !(E & 8) && E & 128 && l !== o) {
542
+ const q = this, F = (f = t.$watchers$) == null ? void 0 : f[u];
543
+ F == null || F.forEach((Le) => {
544
+ q[Le] != null && q[Le].call(q, l, o, u);
525
545
  });
526
546
  }
527
547
  return;
528
548
  }
529
549
  }
530
- this[f] = l === null && typeof this[f] == "boolean" ? !1 : l;
550
+ const p = Object.getOwnPropertyDescriptor(a, h);
551
+ l = l === null && typeof this[h] == "boolean" ? !1 : l, l !== this[h] && (!p.get || p.set) && (this[h] = l);
531
552
  });
532
553
  }, e.observedAttributes = Array.from(
533
554
  /* @__PURE__ */ new Set([
534
555
  ...Object.keys((c = t.$watchers$) != null ? c : {}),
535
556
  ...n.filter(
536
- ([u, i]) => i[0] & 15
557
+ ([u, o]) => o[0] & 15
537
558
  /* HasAttribute */
538
- ).map(([u, i]) => {
539
- const l = i[1] || u;
540
- return o.set(l, u), l;
559
+ ).map(([u, o]) => {
560
+ const l = o[1] || u;
561
+ return i.set(l, u), l;
541
562
  })
542
563
  ])
543
564
  );
544
565
  }
545
566
  }
546
567
  return e;
547
- }, Or = async (e, t, r, s) => {
568
+ }, Wr = async (e, t, r, s) => {
548
569
  let c;
549
570
  if (!(t.$flags$ & 32)) {
550
571
  t.$flags$ |= 32;
551
572
  {
552
573
  c = e.constructor;
553
- const o = e.localName;
554
- customElements.whenDefined(o).then(
574
+ const i = e.localName;
575
+ customElements.whenDefined(i).then(
555
576
  () => t.$flags$ |= 128
556
577
  /* isWatchReady */
557
578
  );
558
579
  }
559
580
  if (c && c.style) {
560
- let o;
561
- typeof c.style == "string" && (o = c.style);
562
- const u = lt(r);
563
- if (!ne.has(u)) {
564
- const i = V("registerStyles", r.$tagName$);
565
- xr(u, o, !!(r.$flags$ & 1)), i();
581
+ let i;
582
+ typeof c.style == "string" && (i = c.style);
583
+ const u = mt(r);
584
+ if (!ce.has(u)) {
585
+ const o = Y("registerStyles", r.$tagName$);
586
+ _r(u, i, !!(r.$flags$ & 1)), o();
566
587
  }
567
588
  }
568
589
  }
569
- const a = t.$ancestorComponent$, n = () => Ee(t, !0);
590
+ const a = t.$ancestorComponent$, n = () => Ce(t, !0);
570
591
  a && a["s-rc"] ? a["s-rc"].push(n) : n();
571
- }, jr = (e) => {
572
- }, Ur = (e) => {
573
- if (!(S.$flags$ & 1)) {
574
- const t = Q(e), r = t.$cmpMeta$, s = V("connectedCallback", r.$tagName$);
592
+ }, Gr = (e, t) => {
593
+ }, Yr = (e) => {
594
+ if (!(C.$flags$ & 1)) {
595
+ const t = V(e), r = t.$cmpMeta$, s = Y("connectedCallback", r.$tagName$);
575
596
  if (t.$flags$ & 1)
576
- t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => jr());
597
+ t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => Gr());
577
598
  else {
578
599
  t.$flags$ |= 1, // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
579
- r.$flags$ & 12 && Nr(e);
600
+ r.$flags$ & 12 && Kr(e);
580
601
  {
581
602
  let c = e;
582
603
  for (; c = c.parentNode || c.host; )
583
604
  if (c["s-p"]) {
584
- mt(t, t.$ancestorComponent$ = c);
605
+ Et(t, t.$ancestorComponent$ = c);
585
606
  break;
586
607
  }
587
608
  }
@@ -590,310 +611,481 @@ var be, ve, ce = !1, ie = !1, Fe = !1, C = !1, oe = (e, t, r, s) => {
590
611
  const n = e[c];
591
612
  delete e[c], e[c] = n;
592
613
  }
593
- }), Or(e, t, r);
614
+ }), Wr(e, t, r);
594
615
  }
595
616
  s();
596
617
  }
597
- }, Nr = (e) => {
598
- const t = e["s-cr"] = j.createComment(
618
+ }, Kr = (e) => {
619
+ const t = e["s-cr"] = H.createComment(
599
620
  ""
600
621
  );
601
622
  t["s-cn"] = !0, N(e, t, e.firstChild);
602
- }, qr = async (e) => {
603
- S.$flags$ & 1 || Q(e);
604
- }, P = (e, t) => {
623
+ }, Qr = async (e) => {
624
+ C.$flags$ & 1 || V(e), J.has(e) && J.delete(e), e.shadowRoot && J.has(e.shadowRoot) && J.delete(e.shadowRoot);
625
+ }, k = (e, t) => {
605
626
  const r = {
606
627
  $flags$: t[0],
607
628
  $tagName$: t[1]
608
629
  };
609
630
  r.$members$ = t[2], r.$watchers$ = e.$watchers$;
610
631
  const s = e.prototype.connectedCallback, c = e.prototype.disconnectedCallback;
611
- let a = !1;
612
632
  return Object.assign(e.prototype, {
633
+ __hasHostListenerAttached: !1,
613
634
  __registerHost() {
614
- rr(this, r);
635
+ dr(this, r);
615
636
  },
616
637
  connectedCallback() {
617
- a || (Q(this), a = !0), Ur(this), s && s.call(this);
638
+ this.__hasHostListenerAttached || (V(this), this.__hasHostListenerAttached = !0), Yr(this), s && s.call(this);
618
639
  },
619
640
  disconnectedCallback() {
620
- qr(this), c && c.call(this);
641
+ Qr(this), c && c.call(this), C.raf(() => {
642
+ var a;
643
+ const n = V(this);
644
+ ((a = n == null ? void 0 : n.$vnode$) == null ? void 0 : a.$elm$) instanceof Node && !n.$vnode$.$elm$.isConnected && delete n.$vnode$, this instanceof Node && !this.isConnected && ur(this);
645
+ });
621
646
  },
622
647
  __attachShadow() {
623
648
  this.shadowRoot = this;
624
649
  }
625
- }), e.is = r.$tagName$, Lr(e, r);
626
- }, $e = (e, t) => t, Se = {}, we = {};
627
- const Ve = (e) => {
650
+ }), e.is = r.$tagName$, Vr(e, r);
651
+ }, Se = (e, t) => t, ke = {}, Re = {};
652
+ const Ye = (e) => {
628
653
  let t;
629
- const r = /* @__PURE__ */ new Set(), s = (i, l) => {
630
- const h = typeof i == "function" ? i(t) : i;
631
- if (!Object.is(h, t)) {
632
- const f = t;
633
- t = l ?? (typeof h != "object" || h === null) ? h : Object.assign({}, t, h), r.forEach((g) => g(t, f));
654
+ const r = /* @__PURE__ */ new Set(), s = (o, l) => {
655
+ const f = typeof o == "function" ? o(t) : o;
656
+ if (!Object.is(f, t)) {
657
+ const h = t;
658
+ t = l ?? (typeof f != "object" || f === null) ? f : Object.assign({}, t, f), r.forEach((p) => p(t, h));
634
659
  }
635
- }, c = () => t, o = { setState: s, getState: c, getInitialState: () => u, subscribe: (i) => (r.add(i), () => r.delete(i)) }, u = t = e(s, c, o);
636
- return o;
637
- }, Hr = (e) => e ? Ve(e) : Ve;
638
- we.createStore = Hr;
639
- var Ce = {}, vt = { exports: {} }, m = {};
660
+ }, c = () => t, i = { setState: s, getState: c, getInitialState: () => u, subscribe: (o) => (r.add(o), () => r.delete(o)) }, u = t = e(s, c, i);
661
+ return i;
662
+ }, Jr = (e) => e ? Ye(e) : Ye;
663
+ Re.createStore = Jr;
664
+ var _e = {}, $t = { exports: {} }, b = {};
640
665
  /**
641
666
  * @license React
642
- * react.production.min.js
667
+ * react.production.js
643
668
  *
644
- * Copyright (c) Facebook, Inc. and its affiliates.
669
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
645
670
  *
646
671
  * This source code is licensed under the MIT license found in the
647
672
  * LICENSE file in the root directory of this source tree.
648
673
  */
649
- var X = Symbol.for("react.element"), Vr = Symbol.for("react.portal"), Wr = Symbol.for("react.fragment"), Gr = Symbol.for("react.strict_mode"), Qr = Symbol.for("react.profiler"), Jr = Symbol.for("react.provider"), Kr = Symbol.for("react.context"), Yr = Symbol.for("react.forward_ref"), Xr = Symbol.for("react.suspense"), Zr = Symbol.for("react.memo"), es = Symbol.for("react.lazy"), We = Symbol.iterator;
650
- function ts(e) {
651
- return e === null || typeof e != "object" ? null : (e = We && e[We] || e["@@iterator"], typeof e == "function" ? e : null);
674
+ var ze = Symbol.for("react.transitional.element"), Xr = Symbol.for("react.portal"), Zr = Symbol.for("react.fragment"), es = Symbol.for("react.strict_mode"), ts = Symbol.for("react.profiler"), rs = Symbol.for("react.consumer"), ss = Symbol.for("react.context"), ns = Symbol.for("react.forward_ref"), as = Symbol.for("react.suspense"), cs = Symbol.for("react.memo"), Ct = Symbol.for("react.lazy"), Ke = Symbol.iterator;
675
+ function is(e) {
676
+ return e === null || typeof e != "object" ? null : (e = Ke && e[Ke] || e["@@iterator"], typeof e == "function" ? e : null);
652
677
  }
653
- var Ft = { isMounted: function() {
654
- return !1;
655
- }, enqueueForceUpdate: function() {
656
- }, enqueueReplaceState: function() {
657
- }, enqueueSetState: function() {
658
- } }, xt = Object.assign, Et = {};
659
- function J(e, t, r) {
660
- this.props = e, this.context = t, this.refs = Et, this.updater = r || Ft;
661
- }
662
- J.prototype.isReactComponent = {};
663
- J.prototype.setState = function(e, t) {
664
- if (typeof e != "object" && typeof e != "function" && e != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
678
+ var St = {
679
+ isMounted: function() {
680
+ return !1;
681
+ },
682
+ enqueueForceUpdate: function() {
683
+ },
684
+ enqueueReplaceState: function() {
685
+ },
686
+ enqueueSetState: function() {
687
+ }
688
+ }, kt = Object.assign, Rt = {};
689
+ function Z(e, t, r) {
690
+ this.props = e, this.context = t, this.refs = Rt, this.updater = r || St;
691
+ }
692
+ Z.prototype.isReactComponent = {};
693
+ Z.prototype.setState = function(e, t) {
694
+ if (typeof e != "object" && typeof e != "function" && e != null)
695
+ throw Error(
696
+ "takes an object of state variables to update or a function which returns an object of state variables."
697
+ );
665
698
  this.updater.enqueueSetState(this, e, t, "setState");
666
699
  };
667
- J.prototype.forceUpdate = function(e) {
700
+ Z.prototype.forceUpdate = function(e) {
668
701
  this.updater.enqueueForceUpdate(this, e, "forceUpdate");
669
702
  };
670
- function $t() {
671
- }
672
- $t.prototype = J.prototype;
673
- function ke(e, t, r) {
674
- this.props = e, this.context = t, this.refs = Et, this.updater = r || Ft;
675
- }
676
- var Re = ke.prototype = new $t();
677
- Re.constructor = ke;
678
- xt(Re, J.prototype);
679
- Re.isPureReactComponent = !0;
680
- var Ge = Array.isArray, St = Object.prototype.hasOwnProperty, ze = { current: null }, wt = { key: !0, ref: !0, __self: !0, __source: !0 };
681
- function Ct(e, t, r) {
682
- var s, c = {}, a = null, n = null;
683
- if (t != null) for (s in t.ref !== void 0 && (n = t.ref), t.key !== void 0 && (a = "" + t.key), t) St.call(t, s) && !wt.hasOwnProperty(s) && (c[s] = t[s]);
684
- var o = arguments.length - 2;
685
- if (o === 1) c.children = r;
686
- else if (1 < o) {
687
- for (var u = Array(o), i = 0; i < o; i++) u[i] = arguments[i + 2];
688
- c.children = u;
689
- }
690
- if (e && e.defaultProps) for (s in o = e.defaultProps, o) c[s] === void 0 && (c[s] = o[s]);
691
- return { $$typeof: X, type: e, key: a, ref: n, props: c, _owner: ze.current };
692
- }
693
- function rs(e, t) {
694
- return { $$typeof: X, type: e.type, key: t, ref: e.ref, props: e.props, _owner: e._owner };
695
- }
696
- function Te(e) {
697
- return typeof e == "object" && e !== null && e.$$typeof === X;
698
- }
699
- function ss(e) {
703
+ function _t() {
704
+ }
705
+ _t.prototype = Z.prototype;
706
+ function Te(e, t, r) {
707
+ this.props = e, this.context = t, this.refs = Rt, this.updater = r || St;
708
+ }
709
+ var Pe = Te.prototype = new _t();
710
+ Pe.constructor = Te;
711
+ kt(Pe, Z.prototype);
712
+ Pe.isPureReactComponent = !0;
713
+ var Qe = Array.isArray, y = { H: null, A: null, T: null, S: null }, zt = Object.prototype.hasOwnProperty;
714
+ function Ae(e, t, r, s, c, a) {
715
+ return r = a.ref, {
716
+ $$typeof: ze,
717
+ type: e,
718
+ key: t,
719
+ ref: r !== void 0 ? r : null,
720
+ props: a
721
+ };
722
+ }
723
+ function os(e, t) {
724
+ return Ae(
725
+ e.type,
726
+ t,
727
+ void 0,
728
+ void 0,
729
+ void 0,
730
+ e.props
731
+ );
732
+ }
733
+ function De(e) {
734
+ return typeof e == "object" && e !== null && e.$$typeof === ze;
735
+ }
736
+ function ls(e) {
700
737
  var t = { "=": "=0", ":": "=2" };
701
738
  return "$" + e.replace(/[=:]/g, function(r) {
702
739
  return t[r];
703
740
  });
704
741
  }
705
- var Qe = /\/+/g;
706
- function de(e, t) {
707
- return typeof e == "object" && e !== null && e.key != null ? ss("" + e.key) : t.toString(36);
742
+ var Je = /\/+/g;
743
+ function pe(e, t) {
744
+ return typeof e == "object" && e !== null && e.key != null ? ls("" + e.key) : t.toString(36);
745
+ }
746
+ function Xe() {
747
+ }
748
+ function us(e) {
749
+ switch (e.status) {
750
+ case "fulfilled":
751
+ return e.value;
752
+ case "rejected":
753
+ throw e.reason;
754
+ default:
755
+ switch (typeof e.status == "string" ? e.then(Xe, Xe) : (e.status = "pending", e.then(
756
+ function(t) {
757
+ e.status === "pending" && (e.status = "fulfilled", e.value = t);
758
+ },
759
+ function(t) {
760
+ e.status === "pending" && (e.status = "rejected", e.reason = t);
761
+ }
762
+ )), e.status) {
763
+ case "fulfilled":
764
+ return e.value;
765
+ case "rejected":
766
+ throw e.reason;
767
+ }
768
+ }
769
+ throw e;
708
770
  }
709
- function re(e, t, r, s, c) {
771
+ function Q(e, t, r, s, c) {
710
772
  var a = typeof e;
711
773
  (a === "undefined" || a === "boolean") && (e = null);
712
774
  var n = !1;
713
775
  if (e === null) n = !0;
714
- else switch (a) {
715
- case "string":
716
- case "number":
717
- n = !0;
718
- break;
719
- case "object":
720
- switch (e.$$typeof) {
721
- case X:
722
- case Vr:
723
- n = !0;
724
- }
725
- }
726
- if (n) return n = e, c = c(n), e = s === "" ? "." + de(n, 0) : s, Ge(c) ? (r = "", e != null && (r = e.replace(Qe, "$&/") + "/"), re(c, t, r, "", function(i) {
727
- return i;
728
- })) : c != null && (Te(c) && (c = rs(c, r + (!c.key || n && n.key === c.key ? "" : ("" + c.key).replace(Qe, "$&/") + "/") + e)), t.push(c)), 1;
729
- if (n = 0, s = s === "" ? "." : s + ":", Ge(e)) for (var o = 0; o < e.length; o++) {
730
- a = e[o];
731
- var u = s + de(a, o);
732
- n += re(a, t, r, u, c);
776
+ else
777
+ switch (a) {
778
+ case "bigint":
779
+ case "string":
780
+ case "number":
781
+ n = !0;
782
+ break;
783
+ case "object":
784
+ switch (e.$$typeof) {
785
+ case ze:
786
+ case Xr:
787
+ n = !0;
788
+ break;
789
+ case Ct:
790
+ return n = e._init, Q(
791
+ n(e._payload),
792
+ t,
793
+ r,
794
+ s,
795
+ c
796
+ );
797
+ }
798
+ }
799
+ if (n)
800
+ return c = c(e), n = s === "" ? "." + pe(e, 0) : s, Qe(c) ? (r = "", n != null && (r = n.replace(Je, "$&/") + "/"), Q(c, t, r, "", function(o) {
801
+ return o;
802
+ })) : c != null && (De(c) && (c = os(
803
+ c,
804
+ r + (c.key == null || e && e.key === c.key ? "" : ("" + c.key).replace(
805
+ Je,
806
+ "$&/"
807
+ ) + "/") + n
808
+ )), t.push(c)), 1;
809
+ n = 0;
810
+ var i = s === "" ? "." : s + ":";
811
+ if (Qe(e))
812
+ for (var u = 0; u < e.length; u++)
813
+ s = e[u], a = i + pe(s, u), n += Q(
814
+ s,
815
+ t,
816
+ r,
817
+ a,
818
+ c
819
+ );
820
+ else if (u = is(e), typeof u == "function")
821
+ for (e = u.call(e), u = 0; !(s = e.next()).done; )
822
+ s = s.value, a = i + pe(s, u++), n += Q(
823
+ s,
824
+ t,
825
+ r,
826
+ a,
827
+ c
828
+ );
829
+ else if (a === "object") {
830
+ if (typeof e.then == "function")
831
+ return Q(
832
+ us(e),
833
+ t,
834
+ r,
835
+ s,
836
+ c
837
+ );
838
+ throw t = String(e), Error(
839
+ "Objects are not valid as a React child (found: " + (t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead."
840
+ );
733
841
  }
734
- else if (u = ts(e), typeof u == "function") for (e = u.call(e), o = 0; !(a = e.next()).done; ) a = a.value, u = s + de(a, o++), n += re(a, t, r, u, c);
735
- else if (a === "object") throw t = String(e), Error("Objects are not valid as a React child (found: " + (t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead.");
736
842
  return n;
737
843
  }
738
- function ee(e, t, r) {
844
+ function ne(e, t, r) {
739
845
  if (e == null) return e;
740
846
  var s = [], c = 0;
741
- return re(e, s, "", "", function(a) {
847
+ return Q(e, s, "", "", function(a) {
742
848
  return t.call(r, a, c++);
743
849
  }), s;
744
850
  }
745
- function ns(e) {
851
+ function ds(e) {
746
852
  if (e._status === -1) {
747
853
  var t = e._result;
748
- t = t(), t.then(function(r) {
749
- (e._status === 0 || e._status === -1) && (e._status = 1, e._result = r);
750
- }, function(r) {
751
- (e._status === 0 || e._status === -1) && (e._status = 2, e._result = r);
752
- }), e._status === -1 && (e._status = 0, e._result = t);
854
+ t = t(), t.then(
855
+ function(r) {
856
+ (e._status === 0 || e._status === -1) && (e._status = 1, e._result = r);
857
+ },
858
+ function(r) {
859
+ (e._status === 0 || e._status === -1) && (e._status = 2, e._result = r);
860
+ }
861
+ ), e._status === -1 && (e._status = 0, e._result = t);
753
862
  }
754
863
  if (e._status === 1) return e._result.default;
755
864
  throw e._result;
756
865
  }
757
- var $ = { current: null }, se = { transition: null }, as = { ReactCurrentDispatcher: $, ReactCurrentBatchConfig: se, ReactCurrentOwner: ze };
758
- function kt() {
759
- throw Error("act(...) is not supported in production builds of React.");
866
+ var Ze = typeof reportError == "function" ? reportError : function(e) {
867
+ if (typeof window == "object" && typeof window.ErrorEvent == "function") {
868
+ var t = new window.ErrorEvent("error", {
869
+ bubbles: !0,
870
+ cancelable: !0,
871
+ message: typeof e == "object" && e !== null && typeof e.message == "string" ? String(e.message) : String(e),
872
+ error: e
873
+ });
874
+ if (!window.dispatchEvent(t)) return;
875
+ } else if (typeof process == "object" && typeof process.emit == "function") {
876
+ process.emit("uncaughtException", e);
877
+ return;
878
+ }
879
+ console.error(e);
880
+ };
881
+ function fs() {
760
882
  }
761
- m.Children = { map: ee, forEach: function(e, t, r) {
762
- ee(e, function() {
763
- t.apply(this, arguments);
764
- }, r);
765
- }, count: function(e) {
766
- var t = 0;
767
- return ee(e, function() {
768
- t++;
769
- }), t;
770
- }, toArray: function(e) {
771
- return ee(e, function(t) {
772
- return t;
773
- }) || [];
774
- }, only: function(e) {
775
- if (!Te(e)) throw Error("React.Children.only expected to receive a single React element child.");
776
- return e;
777
- } };
778
- m.Component = J;
779
- m.Fragment = Wr;
780
- m.Profiler = Qr;
781
- m.PureComponent = ke;
782
- m.StrictMode = Gr;
783
- m.Suspense = Xr;
784
- m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = as;
785
- m.act = kt;
786
- m.cloneElement = function(e, t, r) {
787
- if (e == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
788
- var s = xt({}, e.props), c = e.key, a = e.ref, n = e._owner;
789
- if (t != null) {
790
- if (t.ref !== void 0 && (a = t.ref, n = ze.current), t.key !== void 0 && (c = "" + t.key), e.type && e.type.defaultProps) var o = e.type.defaultProps;
791
- for (u in t) St.call(t, u) && !wt.hasOwnProperty(u) && (s[u] = t[u] === void 0 && o !== void 0 ? o[u] : t[u]);
792
- }
793
- var u = arguments.length - 2;
794
- if (u === 1) s.children = r;
795
- else if (1 < u) {
796
- o = Array(u);
797
- for (var i = 0; i < u; i++) o[i] = arguments[i + 2];
798
- s.children = o;
799
- }
800
- return { $$typeof: X, type: e.type, key: c, ref: a, props: s, _owner: n };
883
+ b.Children = {
884
+ map: ne,
885
+ forEach: function(e, t, r) {
886
+ ne(
887
+ e,
888
+ function() {
889
+ t.apply(this, arguments);
890
+ },
891
+ r
892
+ );
893
+ },
894
+ count: function(e) {
895
+ var t = 0;
896
+ return ne(e, function() {
897
+ t++;
898
+ }), t;
899
+ },
900
+ toArray: function(e) {
901
+ return ne(e, function(t) {
902
+ return t;
903
+ }) || [];
904
+ },
905
+ only: function(e) {
906
+ if (!De(e))
907
+ throw Error(
908
+ "React.Children.only expected to receive a single React element child."
909
+ );
910
+ return e;
911
+ }
912
+ };
913
+ b.Component = Z;
914
+ b.Fragment = Zr;
915
+ b.Profiler = ts;
916
+ b.PureComponent = Te;
917
+ b.StrictMode = es;
918
+ b.Suspense = as;
919
+ b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = y;
920
+ b.act = function() {
921
+ throw Error("act(...) is not supported in production builds of React.");
922
+ };
923
+ b.cache = function(e) {
924
+ return function() {
925
+ return e.apply(null, arguments);
926
+ };
927
+ };
928
+ b.cloneElement = function(e, t, r) {
929
+ if (e == null)
930
+ throw Error(
931
+ "The argument must be a React element, but you passed " + e + "."
932
+ );
933
+ var s = kt({}, e.props), c = e.key, a = void 0;
934
+ if (t != null)
935
+ for (n in t.ref !== void 0 && (a = void 0), t.key !== void 0 && (c = "" + t.key), t)
936
+ !zt.call(t, n) || n === "key" || n === "__self" || n === "__source" || n === "ref" && t.ref === void 0 || (s[n] = t[n]);
937
+ var n = arguments.length - 2;
938
+ if (n === 1) s.children = r;
939
+ else if (1 < n) {
940
+ for (var i = Array(n), u = 0; u < n; u++)
941
+ i[u] = arguments[u + 2];
942
+ s.children = i;
943
+ }
944
+ return Ae(e.type, c, void 0, void 0, a, s);
801
945
  };
802
- m.createContext = function(e) {
803
- return e = { $$typeof: Kr, _currentValue: e, _currentValue2: e, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, e.Provider = { $$typeof: Jr, _context: e }, e.Consumer = e;
946
+ b.createContext = function(e) {
947
+ return e = {
948
+ $$typeof: ss,
949
+ _currentValue: e,
950
+ _currentValue2: e,
951
+ _threadCount: 0,
952
+ Provider: null,
953
+ Consumer: null
954
+ }, e.Provider = e, e.Consumer = {
955
+ $$typeof: rs,
956
+ _context: e
957
+ }, e;
804
958
  };
805
- m.createElement = Ct;
806
- m.createFactory = function(e) {
807
- var t = Ct.bind(null, e);
808
- return t.type = e, t;
959
+ b.createElement = function(e, t, r) {
960
+ var s, c = {}, a = null;
961
+ if (t != null)
962
+ for (s in t.key !== void 0 && (a = "" + t.key), t)
963
+ zt.call(t, s) && s !== "key" && s !== "__self" && s !== "__source" && (c[s] = t[s]);
964
+ var n = arguments.length - 2;
965
+ if (n === 1) c.children = r;
966
+ else if (1 < n) {
967
+ for (var i = Array(n), u = 0; u < n; u++)
968
+ i[u] = arguments[u + 2];
969
+ c.children = i;
970
+ }
971
+ if (e && e.defaultProps)
972
+ for (s in n = e.defaultProps, n)
973
+ c[s] === void 0 && (c[s] = n[s]);
974
+ return Ae(e, a, void 0, void 0, null, c);
809
975
  };
810
- m.createRef = function() {
976
+ b.createRef = function() {
811
977
  return { current: null };
812
978
  };
813
- m.forwardRef = function(e) {
814
- return { $$typeof: Yr, render: e };
979
+ b.forwardRef = function(e) {
980
+ return { $$typeof: ns, render: e };
815
981
  };
816
- m.isValidElement = Te;
817
- m.lazy = function(e) {
818
- return { $$typeof: es, _payload: { _status: -1, _result: e }, _init: ns };
982
+ b.isValidElement = De;
983
+ b.lazy = function(e) {
984
+ return {
985
+ $$typeof: Ct,
986
+ _payload: { _status: -1, _result: e },
987
+ _init: ds
988
+ };
819
989
  };
820
- m.memo = function(e, t) {
821
- return { $$typeof: Zr, type: e, compare: t === void 0 ? null : t };
990
+ b.memo = function(e, t) {
991
+ return {
992
+ $$typeof: cs,
993
+ type: e,
994
+ compare: t === void 0 ? null : t
995
+ };
822
996
  };
823
- m.startTransition = function(e) {
824
- var t = se.transition;
825
- se.transition = {};
997
+ b.startTransition = function(e) {
998
+ var t = y.T, r = {};
999
+ y.T = r;
826
1000
  try {
827
- e();
1001
+ var s = e(), c = y.S;
1002
+ c !== null && c(r, s), typeof s == "object" && s !== null && typeof s.then == "function" && s.then(fs, Ze);
1003
+ } catch (a) {
1004
+ Ze(a);
828
1005
  } finally {
829
- se.transition = t;
1006
+ y.T = t;
830
1007
  }
831
1008
  };
832
- m.unstable_act = kt;
833
- m.useCallback = function(e, t) {
834
- return $.current.useCallback(e, t);
1009
+ b.unstable_useCacheRefresh = function() {
1010
+ return y.H.useCacheRefresh();
835
1011
  };
836
- m.useContext = function(e) {
837
- return $.current.useContext(e);
1012
+ b.use = function(e) {
1013
+ return y.H.use(e);
838
1014
  };
839
- m.useDebugValue = function() {
1015
+ b.useActionState = function(e, t, r) {
1016
+ return y.H.useActionState(e, t, r);
840
1017
  };
841
- m.useDeferredValue = function(e) {
842
- return $.current.useDeferredValue(e);
1018
+ b.useCallback = function(e, t) {
1019
+ return y.H.useCallback(e, t);
843
1020
  };
844
- m.useEffect = function(e, t) {
845
- return $.current.useEffect(e, t);
1021
+ b.useContext = function(e) {
1022
+ return y.H.useContext(e);
846
1023
  };
847
- m.useId = function() {
848
- return $.current.useId();
1024
+ b.useDebugValue = function() {
849
1025
  };
850
- m.useImperativeHandle = function(e, t, r) {
851
- return $.current.useImperativeHandle(e, t, r);
1026
+ b.useDeferredValue = function(e, t) {
1027
+ return y.H.useDeferredValue(e, t);
852
1028
  };
853
- m.useInsertionEffect = function(e, t) {
854
- return $.current.useInsertionEffect(e, t);
1029
+ b.useEffect = function(e, t) {
1030
+ return y.H.useEffect(e, t);
855
1031
  };
856
- m.useLayoutEffect = function(e, t) {
857
- return $.current.useLayoutEffect(e, t);
1032
+ b.useId = function() {
1033
+ return y.H.useId();
858
1034
  };
859
- m.useMemo = function(e, t) {
860
- return $.current.useMemo(e, t);
1035
+ b.useImperativeHandle = function(e, t, r) {
1036
+ return y.H.useImperativeHandle(e, t, r);
861
1037
  };
862
- m.useReducer = function(e, t, r) {
863
- return $.current.useReducer(e, t, r);
1038
+ b.useInsertionEffect = function(e, t) {
1039
+ return y.H.useInsertionEffect(e, t);
864
1040
  };
865
- m.useRef = function(e) {
866
- return $.current.useRef(e);
1041
+ b.useLayoutEffect = function(e, t) {
1042
+ return y.H.useLayoutEffect(e, t);
867
1043
  };
868
- m.useState = function(e) {
869
- return $.current.useState(e);
1044
+ b.useMemo = function(e, t) {
1045
+ return y.H.useMemo(e, t);
870
1046
  };
871
- m.useSyncExternalStore = function(e, t, r) {
872
- return $.current.useSyncExternalStore(e, t, r);
1047
+ b.useOptimistic = function(e, t) {
1048
+ return y.H.useOptimistic(e, t);
873
1049
  };
874
- m.useTransition = function() {
875
- return $.current.useTransition();
1050
+ b.useReducer = function(e, t, r) {
1051
+ return y.H.useReducer(e, t, r);
876
1052
  };
877
- m.version = "18.3.1";
878
- vt.exports = m;
879
- var Je = vt.exports, cs = we;
880
- const is = (e) => e;
881
- function Rt(e, t = is) {
882
- const r = Je.useSyncExternalStore(
1053
+ b.useRef = function(e) {
1054
+ return y.H.useRef(e);
1055
+ };
1056
+ b.useState = function(e) {
1057
+ return y.H.useState(e);
1058
+ };
1059
+ b.useSyncExternalStore = function(e, t, r) {
1060
+ return y.H.useSyncExternalStore(
1061
+ e,
1062
+ t,
1063
+ r
1064
+ );
1065
+ };
1066
+ b.useTransition = function() {
1067
+ return y.H.useTransition();
1068
+ };
1069
+ b.version = "19.0.0";
1070
+ $t.exports = b;
1071
+ var et = $t.exports, hs = Re;
1072
+ const ps = (e) => e;
1073
+ function Tt(e, t = ps) {
1074
+ const r = et.useSyncExternalStore(
883
1075
  e.subscribe,
884
1076
  () => t(e.getState()),
885
1077
  () => t(e.getInitialState())
886
1078
  );
887
- return Je.useDebugValue(r), r;
1079
+ return et.useDebugValue(r), r;
888
1080
  }
889
- const Ke = (e) => {
890
- const t = cs.createStore(e), r = (s) => Rt(t, s);
1081
+ const tt = (e) => {
1082
+ const t = hs.createStore(e), r = (s) => Tt(t, s);
891
1083
  return Object.assign(r, t), r;
892
- }, os = (e) => e ? Ke(e) : Ke;
893
- Ce.create = os;
894
- Ce.useStore = Rt;
1084
+ }, gs = (e) => e ? tt(e) : tt;
1085
+ _e.create = gs;
1086
+ _e.useStore = Tt;
895
1087
  (function(e) {
896
- var t = we, r = Ce;
1088
+ var t = Re, r = _e;
897
1089
  Object.keys(t).forEach(function(s) {
898
1090
  s !== "default" && !Object.prototype.hasOwnProperty.call(e, s) && Object.defineProperty(e, s, {
899
1091
  enumerable: !0,
@@ -909,50 +1101,50 @@ Ce.useStore = Rt;
909
1101
  }
910
1102
  });
911
1103
  });
912
- })(Se);
913
- var ls = Object.defineProperty, us = (e, t, r) => t in e ? ls(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, U = (e, t, r) => us(e, typeof t != "symbol" ? t + "" : t, r);
914
- const ds = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
915
- let hs = (e = 21) => {
1104
+ })(ke);
1105
+ var ms = Object.defineProperty, bs = (e, t, r) => t in e ? ms(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, B = (e, t, r) => bs(e, typeof t != "symbol" ? t + "" : t, r);
1106
+ const ys = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
1107
+ let vs = (e = 21) => {
916
1108
  let t = "", r = crypto.getRandomValues(new Uint8Array(e |= 0));
917
1109
  for (; e--; )
918
- t += ds[r[e] & 63];
1110
+ t += ys[r[e] & 63];
919
1111
  return t;
920
1112
  };
921
- function I(e, t, r, s) {
1113
+ function O(e, t, r, s) {
922
1114
  return new (r || (r = Promise))(function(c, a) {
923
- function n(i) {
1115
+ function n(o) {
924
1116
  try {
925
- u(s.next(i));
1117
+ u(s.next(o));
926
1118
  } catch (l) {
927
1119
  a(l);
928
1120
  }
929
1121
  }
930
- function o(i) {
1122
+ function i(o) {
931
1123
  try {
932
- u(s.throw(i));
1124
+ u(s.throw(o));
933
1125
  } catch (l) {
934
1126
  a(l);
935
1127
  }
936
1128
  }
937
- function u(i) {
1129
+ function u(o) {
938
1130
  var l;
939
- i.done ? c(i.value) : (l = i.value, l instanceof r ? l : new r(function(h) {
940
- h(l);
941
- })).then(n, o);
1131
+ o.done ? c(o.value) : (l = o.value, l instanceof r ? l : new r(function(f) {
1132
+ f(l);
1133
+ })).then(n, i);
942
1134
  }
943
1135
  u((s = s.apply(e, [])).next());
944
1136
  });
945
1137
  }
946
- function L(e, t) {
1138
+ function j(e, t) {
947
1139
  var r, s, c, a, n = { label: 0, sent: function() {
948
1140
  if (1 & c[0]) throw c[1];
949
1141
  return c[1];
950
1142
  }, trys: [], ops: [] };
951
- return a = { next: o(0), throw: o(1), return: o(2) }, typeof Symbol == "function" && (a[Symbol.iterator] = function() {
1143
+ return a = { next: i(0), throw: i(1), return: i(2) }, typeof Symbol == "function" && (a[Symbol.iterator] = function() {
952
1144
  return this;
953
1145
  }), a;
954
- function o(u) {
955
- return function(i) {
1146
+ function i(u) {
1147
+ return function(o) {
956
1148
  return function(l) {
957
1149
  if (r) throw new TypeError("Generator is already executing.");
958
1150
  for (; a && (a = 0, l[0] && (n = 0)), n; ) try {
@@ -991,110 +1183,110 @@ function L(e, t) {
991
1183
  continue;
992
1184
  }
993
1185
  l = t.call(e, n);
994
- } catch (h) {
995
- l = [6, h], s = 0;
1186
+ } catch (f) {
1187
+ l = [6, f], s = 0;
996
1188
  } finally {
997
1189
  r = c = 0;
998
1190
  }
999
1191
  if (5 & l[0]) throw l[1];
1000
1192
  return { value: l[0] ? l[1] : void 0, done: !0 };
1001
- }([u, i]);
1193
+ }([u, o]);
1002
1194
  };
1003
1195
  }
1004
1196
  }
1005
- var O = { exclude: [] }, zt = {}, fs = { timeout: "true" }, R = function(e, t) {
1006
- typeof window < "u" && (zt[e] = t);
1007
- }, ps = function() {
1008
- return Object.fromEntries(Object.entries(zt).filter(function(e) {
1197
+ var U = { exclude: [] }, Pt = {}, Fs = { timeout: "true" }, I = function(e, t) {
1198
+ typeof window < "u" && (Pt[e] = t);
1199
+ }, xs = function() {
1200
+ return Object.fromEntries(Object.entries(Pt).filter(function(e) {
1009
1201
  var t, r = e[0];
1010
- return !(!((t = O == null ? void 0 : O.exclude) === null || t === void 0) && t.includes(r));
1202
+ return !(!((t = U == null ? void 0 : U.exclude) === null || t === void 0) && t.includes(r));
1011
1203
  }).map(function(e) {
1012
1204
  return [e[0], (0, e[1])()];
1013
1205
  }));
1014
1206
  };
1015
- function te(e) {
1207
+ function ae(e) {
1016
1208
  return e ^= e >>> 16, e = Math.imul(e, 2246822507), e ^= e >>> 13, e = Math.imul(e, 3266489909), (e ^= e >>> 16) >>> 0;
1017
1209
  }
1018
- var F = new Uint32Array([597399067, 2869860233, 951274213, 2716044179]);
1019
- function k(e, t) {
1210
+ var w = new Uint32Array([597399067, 2869860233, 951274213, 2716044179]);
1211
+ function P(e, t) {
1020
1212
  return e << t | e >>> 32 - t;
1021
1213
  }
1022
- function _e(e, t) {
1214
+ function Be(e, t) {
1023
1215
  var r;
1024
1216
  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");
1025
1217
  var s = new Uint32Array([t, t, t, t]);
1026
1218
  (function(a, n) {
1027
- for (var o = a.byteLength / 16 | 0, u = new Uint32Array(a, 0, 4 * o), i = 0; i < o; i++) {
1028
- var l = u.subarray(4 * i, 4 * (i + 1));
1029
- l[0] = Math.imul(l[0], F[0]), l[0] = k(l[0], 15), l[0] = Math.imul(l[0], F[1]), n[0] = n[0] ^ l[0], n[0] = k(n[0], 19), n[0] = n[0] + n[1], n[0] = Math.imul(n[0], 5) + 1444728091, l[1] = Math.imul(l[1], F[1]), l[1] = k(l[1], 16), l[1] = Math.imul(l[1], F[2]), n[1] = n[1] ^ l[1], n[1] = k(n[1], 17), n[1] = n[1] + n[2], n[1] = Math.imul(n[1], 5) + 197830471, l[2] = Math.imul(l[2], F[2]), l[2] = k(l[2], 17), l[2] = Math.imul(l[2], F[3]), n[2] = n[2] ^ l[2], n[2] = k(n[2], 15), n[2] = n[2] + n[3], n[2] = Math.imul(n[2], 5) + 2530024501, l[3] = Math.imul(l[3], F[3]), l[3] = k(l[3], 18), l[3] = Math.imul(l[3], F[0]), n[3] = n[3] ^ l[3], n[3] = k(n[3], 13), n[3] = n[3] + n[0], n[3] = Math.imul(n[3], 5) + 850148119;
1219
+ for (var i = a.byteLength / 16 | 0, u = new Uint32Array(a, 0, 4 * i), o = 0; o < i; o++) {
1220
+ var l = u.subarray(4 * o, 4 * (o + 1));
1221
+ l[0] = Math.imul(l[0], w[0]), l[0] = P(l[0], 15), l[0] = Math.imul(l[0], w[1]), n[0] = n[0] ^ l[0], n[0] = P(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] = P(l[1], 16), l[1] = Math.imul(l[1], w[2]), n[1] = n[1] ^ l[1], n[1] = P(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] = P(l[2], 17), l[2] = Math.imul(l[2], w[3]), n[2] = n[2] ^ l[2], n[2] = P(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] = P(l[3], 18), l[3] = Math.imul(l[3], w[0]), n[3] = n[3] ^ l[3], n[3] = P(n[3], 13), n[3] = n[3] + n[0], n[3] = Math.imul(n[3], 5) + 850148119;
1030
1222
  }
1031
1223
  })(e, s), function(a, n) {
1032
- var o = a.byteLength / 16 | 0, u = a.byteLength % 16, i = new Uint32Array(4), l = new Uint8Array(a, 16 * o, u);
1224
+ var i = a.byteLength / 16 | 0, u = a.byteLength % 16, o = new Uint32Array(4), l = new Uint8Array(a, 16 * i, u);
1033
1225
  switch (u) {
1034
1226
  case 15:
1035
- i[3] = i[3] ^ l[14] << 16;
1227
+ o[3] = o[3] ^ l[14] << 16;
1036
1228
  case 14:
1037
- i[3] = i[3] ^ l[13] << 8;
1229
+ o[3] = o[3] ^ l[13] << 8;
1038
1230
  case 13:
1039
- i[3] = i[3] ^ l[12] << 0, i[3] = Math.imul(i[3], F[3]), i[3] = k(i[3], 18), i[3] = Math.imul(i[3], F[0]), n[3] = n[3] ^ i[3];
1231
+ o[3] = o[3] ^ l[12] << 0, o[3] = Math.imul(o[3], w[3]), o[3] = P(o[3], 18), o[3] = Math.imul(o[3], w[0]), n[3] = n[3] ^ o[3];
1040
1232
  case 12:
1041
- i[2] = i[2] ^ l[11] << 24;
1233
+ o[2] = o[2] ^ l[11] << 24;
1042
1234
  case 11:
1043
- i[2] = i[2] ^ l[10] << 16;
1235
+ o[2] = o[2] ^ l[10] << 16;
1044
1236
  case 10:
1045
- i[2] = i[2] ^ l[9] << 8;
1237
+ o[2] = o[2] ^ l[9] << 8;
1046
1238
  case 9:
1047
- i[2] = i[2] ^ l[8] << 0, i[2] = Math.imul(i[2], F[2]), i[2] = k(i[2], 17), i[2] = Math.imul(i[2], F[3]), n[2] = n[2] ^ i[2];
1239
+ o[2] = o[2] ^ l[8] << 0, o[2] = Math.imul(o[2], w[2]), o[2] = P(o[2], 17), o[2] = Math.imul(o[2], w[3]), n[2] = n[2] ^ o[2];
1048
1240
  case 8:
1049
- i[1] = i[1] ^ l[7] << 24;
1241
+ o[1] = o[1] ^ l[7] << 24;
1050
1242
  case 7:
1051
- i[1] = i[1] ^ l[6] << 16;
1243
+ o[1] = o[1] ^ l[6] << 16;
1052
1244
  case 6:
1053
- i[1] = i[1] ^ l[5] << 8;
1245
+ o[1] = o[1] ^ l[5] << 8;
1054
1246
  case 5:
1055
- i[1] = i[1] ^ l[4] << 0, i[1] = Math.imul(i[1], F[1]), i[1] = k(i[1], 16), i[1] = Math.imul(i[1], F[2]), n[1] = n[1] ^ i[1];
1247
+ o[1] = o[1] ^ l[4] << 0, o[1] = Math.imul(o[1], w[1]), o[1] = P(o[1], 16), o[1] = Math.imul(o[1], w[2]), n[1] = n[1] ^ o[1];
1056
1248
  case 4:
1057
- i[0] = i[0] ^ l[3] << 24;
1249
+ o[0] = o[0] ^ l[3] << 24;
1058
1250
  case 3:
1059
- i[0] = i[0] ^ l[2] << 16;
1251
+ o[0] = o[0] ^ l[2] << 16;
1060
1252
  case 2:
1061
- i[0] = i[0] ^ l[1] << 8;
1253
+ o[0] = o[0] ^ l[1] << 8;
1062
1254
  case 1:
1063
- i[0] = i[0] ^ l[0] << 0, i[0] = Math.imul(i[0], F[0]), i[0] = k(i[0], 15), i[0] = Math.imul(i[0], F[1]), n[0] = n[0] ^ i[0];
1255
+ o[0] = o[0] ^ l[0] << 0, o[0] = Math.imul(o[0], w[0]), o[0] = P(o[0], 15), o[0] = Math.imul(o[0], w[1]), n[0] = n[0] ^ o[0];
1064
1256
  }
1065
1257
  }(e, s), function(a, n) {
1066
- n[0] = n[0] ^ a.byteLength, n[1] = n[1] ^ a.byteLength, n[2] = n[2] ^ a.byteLength, n[3] = n[3] ^ a.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] = te(n[0]), n[1] = te(n[1]), n[2] = te(n[2]), n[3] = te(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;
1258
+ n[0] = n[0] ^ a.byteLength, n[1] = n[1] ^ a.byteLength, n[2] = n[2] ^ a.byteLength, n[3] = n[3] ^ a.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] = ae(n[0]), n[1] = ae(n[1]), n[2] = ae(n[2]), n[3] = ae(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;
1067
1259
  }(e, s);
1068
1260
  var c = new Uint8Array(s.buffer);
1069
1261
  return Array.from(c).map(function(a) {
1070
1262
  return a.toString(16).padStart(2, "0");
1071
1263
  }).join("");
1072
1264
  }
1073
- function gs(e, t) {
1265
+ function Es(e, t) {
1074
1266
  return new Promise(function(r) {
1075
1267
  setTimeout(function() {
1076
1268
  return r(t);
1077
1269
  }, e);
1078
1270
  });
1079
1271
  }
1080
- function bs(e, t, r) {
1272
+ function ws(e, t, r) {
1081
1273
  return Promise.all(e.map(function(s) {
1082
- return Promise.race([s, gs(t, r)]);
1274
+ return Promise.race([s, Es(t, r)]);
1083
1275
  }));
1084
1276
  }
1085
- function ms() {
1086
- return I(this, void 0, void 0, function() {
1277
+ function $s() {
1278
+ return O(this, void 0, void 0, function() {
1087
1279
  var e, t, r, s, c;
1088
- return L(this, function(a) {
1280
+ return j(this, function(a) {
1089
1281
  switch (a.label) {
1090
1282
  case 0:
1091
- return a.trys.push([0, 2, , 3]), e = ps(), t = Object.keys(e), [4, bs(Object.values(e), (O == null ? void 0 : O.timeout) || 1e3, fs)];
1283
+ return a.trys.push([0, 2, , 3]), e = xs(), t = Object.keys(e), [4, ws(Object.values(e), (U == null ? void 0 : U.timeout) || 1e3, Fs)];
1092
1284
  case 1:
1093
1285
  return r = a.sent(), s = r.filter(function(n) {
1094
1286
  return n !== void 0;
1095
- }), c = {}, s.forEach(function(n, o) {
1096
- c[t[o]] = n;
1097
- }), [2, Tt(c, O.exclude || [])];
1287
+ }), c = {}, s.forEach(function(n, i) {
1288
+ c[t[i]] = n;
1289
+ }), [2, At(c, U.exclude || [])];
1098
1290
  case 2:
1099
1291
  throw a.sent();
1100
1292
  case 3:
@@ -1103,31 +1295,31 @@ function ms() {
1103
1295
  });
1104
1296
  });
1105
1297
  }
1106
- function Tt(e, t) {
1298
+ function At(e, t) {
1107
1299
  var r = {}, s = function(a) {
1108
1300
  if (e.hasOwnProperty(a)) {
1109
1301
  var n = e[a];
1110
1302
  if (typeof n != "object" || Array.isArray(n)) t.includes(a) || (r[a] = n);
1111
1303
  else {
1112
- var o = Tt(n, t.map(function(u) {
1304
+ var i = At(n, t.map(function(u) {
1113
1305
  return u.startsWith(a + ".") ? u.slice(a.length + 1) : u;
1114
1306
  }));
1115
- Object.keys(o).length > 0 && (r[a] = o);
1307
+ Object.keys(i).length > 0 && (r[a] = i);
1116
1308
  }
1117
1309
  }
1118
1310
  };
1119
1311
  for (var c in e) s(c);
1120
1312
  return r;
1121
1313
  }
1122
- function ys(e) {
1123
- return I(this, void 0, void 0, function() {
1314
+ function Cs(e) {
1315
+ return O(this, void 0, void 0, function() {
1124
1316
  var t, r;
1125
- return L(this, function(s) {
1317
+ return j(this, function(s) {
1126
1318
  switch (s.label) {
1127
1319
  case 0:
1128
- return s.trys.push([0, 2, , 3]), [4, ms()];
1320
+ return s.trys.push([0, 2, , 3]), [4, $s()];
1129
1321
  case 1:
1130
- return t = s.sent(), r = _e(JSON.stringify(t)), [2, r.toString()];
1322
+ return t = s.sent(), r = Be(JSON.stringify(t)), [2, r.toString()];
1131
1323
  case 2:
1132
1324
  throw s.sent();
1133
1325
  case 3:
@@ -1136,19 +1328,19 @@ function ys(e) {
1136
1328
  });
1137
1329
  });
1138
1330
  }
1139
- function vs(e) {
1331
+ function Ss(e) {
1140
1332
  for (var t = 0, r = 0; r < e.length; ++r) t += Math.abs(e[r]);
1141
1333
  return t;
1142
1334
  }
1143
- function _t(e, t, r) {
1335
+ function Dt(e, t, r) {
1144
1336
  for (var s = [], c = 0; c < e[0].data.length; c++) {
1145
1337
  for (var a = [], n = 0; n < e.length; n++) a.push(e[n].data[c]);
1146
- s.push(Fs(a));
1338
+ s.push(ks(a));
1147
1339
  }
1148
- var o = new Uint8ClampedArray(s);
1149
- return new ImageData(o, t, r);
1340
+ var i = new Uint8ClampedArray(s);
1341
+ return new ImageData(i, t, r);
1150
1342
  }
1151
- function Fs(e) {
1343
+ function ks(e) {
1152
1344
  if (e.length === 0) return 0;
1153
1345
  for (var t = {}, r = 0, s = e; r < s.length; r++)
1154
1346
  t[a = s[r]] = (t[a] || 0) + 1;
@@ -1156,7 +1348,7 @@ function Fs(e) {
1156
1348
  for (var a in t) t[a] > t[c] && (c = parseInt(a, 10));
1157
1349
  return c;
1158
1350
  }
1159
- function Y() {
1351
+ function re() {
1160
1352
  if (typeof navigator > "u") return { name: "unknown", version: "unknown" };
1161
1353
  for (var e = navigator.userAgent, t = { Edg: "Edge", OPR: "Opera" }, r = 0, s = [/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/, /(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/, /(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/, /(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/, /(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/, /(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/, /(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/]; r < s.length; r++) {
1162
1354
  var c = s[r], a = e.match(c);
@@ -1164,16 +1356,16 @@ function Y() {
1164
1356
  }
1165
1357
  return { name: "unknown", version: "unknown" };
1166
1358
  }
1167
- R("audio", function() {
1168
- return I(this, void 0, void 0, function() {
1169
- return L(this, function(e) {
1359
+ I("audio", function() {
1360
+ return O(this, void 0, void 0, function() {
1361
+ return j(this, function(e) {
1170
1362
  return [2, new Promise(function(t, r) {
1171
1363
  try {
1172
1364
  var s = new (window.OfflineAudioContext || window.webkitOfflineAudioContext)(1, 5e3, 44100), c = s.createBufferSource(), a = s.createOscillator();
1173
1365
  a.frequency.value = 1e3;
1174
- var n, o = s.createDynamicsCompressor();
1175
- o.threshold.value = -50, o.knee.value = 40, o.ratio.value = 12, o.attack.value = 0, o.release.value = 0.2, a.connect(o), o.connect(s.destination), a.start(), s.oncomplete = function(u) {
1176
- n = u.renderedBuffer.getChannelData(0), t({ sampleHash: vs(n), oscillator: a.type, maxChannels: s.destination.maxChannelCount, channelCountMode: c.channelCountMode });
1366
+ var n, i = s.createDynamicsCompressor();
1367
+ i.threshold.value = -50, i.knee.value = 40, i.ratio.value = 12, i.attack.value = 0, i.release.value = 0.2, a.connect(i), i.connect(s.destination), a.start(), s.oncomplete = function(u) {
1368
+ n = u.renderedBuffer.getChannelData(0), t({ sampleHash: Ss(n), oscillator: a.type, maxChannels: s.destination.maxChannelCount, channelCountMode: c.channelCountMode });
1177
1369
  }, s.startRendering();
1178
1370
  } catch (u) {
1179
1371
  console.error("Error creating audio fingerprint:", u), r(u);
@@ -1182,14 +1374,14 @@ R("audio", function() {
1182
1374
  });
1183
1375
  });
1184
1376
  });
1185
- var xs = Y().name !== "SamsungBrowser" ? 1 : 3, Ye = 280, Xe = 20;
1186
- Y().name != "Firefox" && R("canvas", function() {
1377
+ var Rs = re().name !== "SamsungBrowser" ? 1 : 3, rt = 280, st = 20;
1378
+ re().name != "Firefox" && I("canvas", function() {
1187
1379
  return document.createElement("canvas").getContext("2d"), new Promise(function(e) {
1188
- var t = Array.from({ length: xs }, function() {
1380
+ var t = Array.from({ length: Rs }, function() {
1189
1381
  return function() {
1190
1382
  var r = document.createElement("canvas"), s = r.getContext("2d");
1191
1383
  if (!s) return new ImageData(1, 1);
1192
- r.width = Ye, r.height = Xe;
1384
+ r.width = rt, r.height = st;
1193
1385
  var c = s.createLinearGradient(0, 0, r.width, r.height);
1194
1386
  c.addColorStop(0, "red"), c.addColorStop(0.16666666666666666, "orange"), c.addColorStop(0.3333333333333333, "yellow"), c.addColorStop(0.5, "green"), c.addColorStop(0.6666666666666666, "blue"), c.addColorStop(0.8333333333333334, "indigo"), c.addColorStop(1, "violet"), s.fillStyle = c, s.fillRect(0, 0, r.width, r.height);
1195
1387
  var a = "Random Text WMwmil10Oo";
@@ -1198,23 +1390,23 @@ Y().name != "Firefox" && R("canvas", function() {
1198
1390
  return n;
1199
1391
  }();
1200
1392
  });
1201
- e({ commonImageDataHash: _e(_t(t, Ye, Xe).data.toString()).toString() });
1393
+ e({ commonImageDataHash: Be(Dt(t, rt, st).data.toString()).toString() });
1202
1394
  });
1203
1395
  });
1204
- var he, Es = ["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"], $s = ["monospace", "sans-serif", "serif"];
1205
- function Ze(e, t) {
1396
+ var ge, _s = ["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"], zs = ["monospace", "sans-serif", "serif"];
1397
+ function nt(e, t) {
1206
1398
  if (!e) throw new Error("Canvas context not supported");
1207
1399
  return e.font = "72px ".concat(t), e.measureText("WwMmLli0Oo").width;
1208
1400
  }
1209
- function Ss() {
1401
+ function Ts() {
1210
1402
  var e, t = document.createElement("canvas"), r = (e = t.getContext("webgl")) !== null && e !== void 0 ? e : t.getContext("experimental-webgl");
1211
1403
  if (r && "getParameter" in r) try {
1212
1404
  var s = (r.getParameter(r.VENDOR) || "").toString(), c = (r.getParameter(r.RENDERER) || "").toString(), a = { vendor: s, renderer: c, version: (r.getParameter(r.VERSION) || "").toString(), shadingLanguageVersion: (r.getParameter(r.SHADING_LANGUAGE_VERSION) || "").toString() };
1213
1405
  if (!c.length || !s.length) {
1214
1406
  var n = r.getExtension("WEBGL_debug_renderer_info");
1215
1407
  if (n) {
1216
- var o = (r.getParameter(n.UNMASKED_VENDOR_WEBGL) || "").toString(), u = (r.getParameter(n.UNMASKED_RENDERER_WEBGL) || "").toString();
1217
- o && (a.vendorUnmasked = o), u && (a.rendererUnmasked = u);
1408
+ var i = (r.getParameter(n.UNMASKED_VENDOR_WEBGL) || "").toString(), u = (r.getParameter(n.UNMASKED_RENDERER_WEBGL) || "").toString();
1409
+ i && (a.vendorUnmasked = i), u && (a.rendererUnmasked = u);
1218
1410
  }
1219
1411
  }
1220
1412
  return a;
@@ -1222,24 +1414,24 @@ function Ss() {
1222
1414
  }
1223
1415
  return "undefined";
1224
1416
  }
1225
- function ws() {
1417
+ function Ps() {
1226
1418
  var e = new Float32Array(1), t = new Uint8Array(e.buffer);
1227
1419
  return e[0] = 1 / 0, e[0] = e[0] - e[0], t[3];
1228
1420
  }
1229
- function Cs(e, t) {
1421
+ function As(e, t) {
1230
1422
  var r = {};
1231
1423
  return t.forEach(function(s) {
1232
1424
  var c = function(a) {
1233
1425
  if (a.length === 0) return null;
1234
1426
  var n = {};
1235
- a.forEach(function(i) {
1236
- var l = String(i);
1427
+ a.forEach(function(o) {
1428
+ var l = String(o);
1237
1429
  n[l] = (n[l] || 0) + 1;
1238
1430
  });
1239
- var o = a[0], u = 1;
1240
- return Object.keys(n).forEach(function(i) {
1241
- n[i] > u && (o = i, u = n[i]);
1242
- }), o;
1431
+ var i = a[0], u = 1;
1432
+ return Object.keys(n).forEach(function(o) {
1433
+ n[o] > u && (i = o, u = n[o]);
1434
+ }), i;
1243
1435
  }(e.map(function(a) {
1244
1436
  return s in a ? a[s] : void 0;
1245
1437
  }).filter(function(a) {
@@ -1248,7 +1440,7 @@ function Cs(e, t) {
1248
1440
  c && (r[s] = c);
1249
1441
  }), r;
1250
1442
  }
1251
- function ks() {
1443
+ function Ds() {
1252
1444
  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"] };
1253
1445
  return Object.keys(t).forEach(function(r) {
1254
1446
  t[r].forEach(function(s) {
@@ -1256,7 +1448,7 @@ function ks() {
1256
1448
  });
1257
1449
  }), e;
1258
1450
  }
1259
- function Rs() {
1451
+ function Bs() {
1260
1452
  if (window.location.protocol === "https:" && typeof window.ApplePaySession == "function") try {
1261
1453
  for (var e = window.ApplePaySession.supportsVersion, t = 15; t > 0; t--) if (e(t)) return t;
1262
1454
  } catch {
@@ -1264,41 +1456,41 @@ function Rs() {
1264
1456
  }
1265
1457
  return 0;
1266
1458
  }
1267
- Y().name != "Firefox" && R("fonts", function() {
1459
+ re().name != "Firefox" && I("fonts", function() {
1268
1460
  var e = this;
1269
1461
  return new Promise(function(t, r) {
1270
1462
  try {
1271
1463
  (function(s) {
1272
1464
  var c;
1273
- I(this, void 0, void 0, function() {
1274
- var a, n, o;
1275
- return L(this, function(u) {
1465
+ O(this, void 0, void 0, function() {
1466
+ var a, n, i;
1467
+ return j(this, function(u) {
1276
1468
  switch (u.label) {
1277
1469
  case 0:
1278
- return document.body ? [3, 2] : [4, (i = 50, new Promise(function(h) {
1279
- return setTimeout(h, i, l);
1470
+ return document.body ? [3, 2] : [4, (o = 50, new Promise(function(f) {
1471
+ return setTimeout(f, o, l);
1280
1472
  }))];
1281
1473
  case 1:
1282
1474
  return u.sent(), [3, 0];
1283
1475
  case 2:
1284
- if ((a = document.createElement("iframe")).setAttribute("frameBorder", "0"), (n = a.style).setProperty("position", "fixed"), n.setProperty("display", "block", "important"), n.setProperty("visibility", "visible"), n.setProperty("border", "0"), n.setProperty("opacity", "0"), a.src = "about:blank", document.body.appendChild(a), !(o = a.contentDocument || ((c = a.contentWindow) === null || c === void 0 ? void 0 : c.document))) throw new Error("Iframe document is not accessible");
1285
- return s({ iframe: o }), setTimeout(function() {
1476
+ if ((a = document.createElement("iframe")).setAttribute("frameBorder", "0"), (n = a.style).setProperty("position", "fixed"), n.setProperty("display", "block", "important"), n.setProperty("visibility", "visible"), n.setProperty("border", "0"), n.setProperty("opacity", "0"), a.src = "about:blank", document.body.appendChild(a), !(i = a.contentDocument || ((c = a.contentWindow) === null || c === void 0 ? void 0 : c.document))) throw new Error("Iframe document is not accessible");
1477
+ return s({ iframe: i }), setTimeout(function() {
1286
1478
  document.body.removeChild(a);
1287
1479
  }, 0), [2];
1288
1480
  }
1289
- var i, l;
1481
+ var o, l;
1290
1482
  });
1291
1483
  });
1292
1484
  })(function(s) {
1293
1485
  var c = s.iframe;
1294
- return I(e, void 0, void 0, function() {
1295
- var a, n, o, u;
1296
- return L(this, function(i) {
1297
- return a = c.createElement("canvas"), n = a.getContext("2d"), o = $s.map(function(l) {
1298
- return Ze(n, l);
1299
- }), u = {}, Es.forEach(function(l) {
1300
- var h = Ze(n, l);
1301
- o.includes(h) || (u[l] = h);
1486
+ return O(e, void 0, void 0, function() {
1487
+ var a, n, i, u;
1488
+ return j(this, function(o) {
1489
+ return a = c.createElement("canvas"), n = a.getContext("2d"), i = zs.map(function(l) {
1490
+ return nt(n, l);
1491
+ }), u = {}, _s.forEach(function(l) {
1492
+ var f = nt(n, l);
1493
+ i.includes(f) || (u[l] = f);
1302
1494
  }), t(u), [2];
1303
1495
  });
1304
1496
  });
@@ -1307,36 +1499,36 @@ Y().name != "Firefox" && R("fonts", function() {
1307
1499
  r({ error: "unsupported" });
1308
1500
  }
1309
1501
  });
1310
- }), R("hardware", function() {
1502
+ }), I("hardware", function() {
1311
1503
  return new Promise(function(e, t) {
1312
1504
  var r = navigator.deviceMemory !== void 0 ? navigator.deviceMemory : 0, s = window.performance && window.performance.memory ? window.performance.memory : 0;
1313
- e({ videocard: Ss(), architecture: ws(), deviceMemory: r.toString() || "undefined", jsHeapSizeLimit: s.jsHeapSizeLimit || 0 });
1505
+ e({ videocard: Ts(), architecture: Ps(), deviceMemory: r.toString() || "undefined", jsHeapSizeLimit: s.jsHeapSizeLimit || 0 });
1314
1506
  });
1315
- }), R("locales", function() {
1507
+ }), I("locales", function() {
1316
1508
  return new Promise(function(e) {
1317
1509
  e({ languages: navigator.language, timezone: Intl.DateTimeFormat().resolvedOptions().timeZone });
1318
1510
  });
1319
- }), R("permissions", function() {
1320
- return I(this, void 0, void 0, function() {
1511
+ }), I("permissions", function() {
1512
+ return O(this, void 0, void 0, function() {
1321
1513
  var e;
1322
- return L(this, function(t) {
1323
- return he = (O == null ? void 0 : O.permissions_to_check) || ["accelerometer", "accessibility", "accessibility-events", "ambient-light-sensor", "background-fetch", "background-sync", "bluetooth", "camera", "clipboard-read", "clipboard-write", "device-info", "display-capture", "gyroscope", "geolocation", "local-fonts", "magnetometer", "microphone", "midi", "nfc", "notifications", "payment-handler", "persistent-storage", "push", "speaker", "storage-access", "top-level-storage-access", "window-management", "query"], e = Array.from({ length: (O == null ? void 0 : O.retries) || 3 }, function() {
1514
+ return j(this, function(t) {
1515
+ return ge = (U == null ? void 0 : U.permissions_to_check) || ["accelerometer", "accessibility", "accessibility-events", "ambient-light-sensor", "background-fetch", "background-sync", "bluetooth", "camera", "clipboard-read", "clipboard-write", "device-info", "display-capture", "gyroscope", "geolocation", "local-fonts", "magnetometer", "microphone", "midi", "nfc", "notifications", "payment-handler", "persistent-storage", "push", "speaker", "storage-access", "top-level-storage-access", "window-management", "query"], e = Array.from({ length: (U == null ? void 0 : U.retries) || 3 }, function() {
1324
1516
  return function() {
1325
- return I(this, void 0, void 0, function() {
1517
+ return O(this, void 0, void 0, function() {
1326
1518
  var r, s, c, a, n;
1327
- return L(this, function(o) {
1328
- switch (o.label) {
1519
+ return j(this, function(i) {
1520
+ switch (i.label) {
1329
1521
  case 0:
1330
- r = {}, s = 0, c = he, o.label = 1;
1522
+ r = {}, s = 0, c = ge, i.label = 1;
1331
1523
  case 1:
1332
1524
  if (!(s < c.length)) return [3, 6];
1333
- a = c[s], o.label = 2;
1525
+ a = c[s], i.label = 2;
1334
1526
  case 2:
1335
- return o.trys.push([2, 4, , 5]), [4, navigator.permissions.query({ name: a })];
1527
+ return i.trys.push([2, 4, , 5]), [4, navigator.permissions.query({ name: a })];
1336
1528
  case 3:
1337
- return n = o.sent(), r[a] = n.state.toString(), [3, 5];
1529
+ return n = i.sent(), r[a] = n.state.toString(), [3, 5];
1338
1530
  case 4:
1339
- return o.sent(), [3, 5];
1531
+ return i.sent(), [3, 5];
1340
1532
  case 5:
1341
1533
  return s++, [3, 1];
1342
1534
  case 6:
@@ -1346,11 +1538,11 @@ Y().name != "Firefox" && R("fonts", function() {
1346
1538
  });
1347
1539
  }();
1348
1540
  }), [2, Promise.all(e).then(function(r) {
1349
- return Cs(r, he);
1541
+ return As(r, ge);
1350
1542
  })];
1351
1543
  });
1352
1544
  });
1353
- }), R("plugins", function() {
1545
+ }), I("plugins", function() {
1354
1546
  var e = [];
1355
1547
  if (navigator.plugins) for (var t = 0; t < navigator.plugins.length; t++) {
1356
1548
  var r = navigator.plugins[t];
@@ -1359,28 +1551,28 @@ Y().name != "Firefox" && R("fonts", function() {
1359
1551
  return new Promise(function(s) {
1360
1552
  s({ plugins: e });
1361
1553
  });
1362
- }), R("screen", function() {
1554
+ }), I("screen", function() {
1363
1555
  return new Promise(function(e) {
1364
- e({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches: ks() });
1556
+ e({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches: Ds() });
1365
1557
  });
1366
- }), R("system", function() {
1558
+ }), I("system", function() {
1367
1559
  return new Promise(function(e) {
1368
- var t = Y();
1369
- 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: Rs() });
1560
+ var t = re();
1561
+ 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: Bs() });
1370
1562
  });
1371
1563
  });
1372
- var E, zs = Y().name !== "SamsungBrowser" ? 1 : 3, p = null;
1373
- R("webgl", function() {
1374
- return I(this, void 0, void 0, function() {
1564
+ var $, Is = re().name !== "SamsungBrowser" ? 1 : 3, g = null;
1565
+ I("webgl", function() {
1566
+ return O(this, void 0, void 0, function() {
1375
1567
  var e;
1376
- return L(this, function(t) {
1377
- typeof document < "u" && ((E = document.createElement("canvas")).width = 200, E.height = 100, p = E.getContext("webgl"));
1568
+ return j(this, function(t) {
1569
+ typeof document < "u" && (($ = document.createElement("canvas")).width = 200, $.height = 100, g = $.getContext("webgl"));
1378
1570
  try {
1379
- if (!p) throw new Error("WebGL not supported");
1380
- return e = Array.from({ length: zs }, function() {
1571
+ if (!g) throw new Error("WebGL not supported");
1572
+ return e = Array.from({ length: Is }, function() {
1381
1573
  return function() {
1382
1574
  try {
1383
- if (!p) throw new Error("WebGL not supported");
1575
+ if (!g) throw new Error("WebGL not supported");
1384
1576
  var r = `
1385
1577
  attribute vec2 position;
1386
1578
  void main() {
@@ -1391,31 +1583,31 @@ R("webgl", function() {
1391
1583
  void main() {
1392
1584
  gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color
1393
1585
  }
1394
- `, c = p.createShader(p.VERTEX_SHADER), a = p.createShader(p.FRAGMENT_SHADER);
1586
+ `, c = g.createShader(g.VERTEX_SHADER), a = g.createShader(g.FRAGMENT_SHADER);
1395
1587
  if (!c || !a) throw new Error("Failed to create shaders");
1396
- if (p.shaderSource(c, r), p.shaderSource(a, s), p.compileShader(c), !p.getShaderParameter(c, p.COMPILE_STATUS)) throw new Error("Vertex shader compilation failed: " + p.getShaderInfoLog(c));
1397
- if (p.compileShader(a), !p.getShaderParameter(a, p.COMPILE_STATUS)) throw new Error("Fragment shader compilation failed: " + p.getShaderInfoLog(a));
1398
- var n = p.createProgram();
1588
+ if (g.shaderSource(c, r), g.shaderSource(a, s), g.compileShader(c), !g.getShaderParameter(c, g.COMPILE_STATUS)) throw new Error("Vertex shader compilation failed: " + g.getShaderInfoLog(c));
1589
+ if (g.compileShader(a), !g.getShaderParameter(a, g.COMPILE_STATUS)) throw new Error("Fragment shader compilation failed: " + g.getShaderInfoLog(a));
1590
+ var n = g.createProgram();
1399
1591
  if (!n) throw new Error("Failed to create shader program");
1400
- if (p.attachShader(n, c), p.attachShader(n, a), p.linkProgram(n), !p.getProgramParameter(n, p.LINK_STATUS)) throw new Error("Shader program linking failed: " + p.getProgramInfoLog(n));
1401
- p.useProgram(n);
1402
- for (var o = 137, u = new Float32Array(4 * o), i = 2 * Math.PI / o, l = 0; l < o; l++) {
1403
- var h = l * i;
1404
- u[4 * l] = 0, u[4 * l + 1] = 0, u[4 * l + 2] = Math.cos(h) * (E.width / 2), u[4 * l + 3] = Math.sin(h) * (E.height / 2);
1592
+ if (g.attachShader(n, c), g.attachShader(n, a), g.linkProgram(n), !g.getProgramParameter(n, g.LINK_STATUS)) throw new Error("Shader program linking failed: " + g.getProgramInfoLog(n));
1593
+ g.useProgram(n);
1594
+ for (var i = 137, u = new Float32Array(4 * i), o = 2 * Math.PI / i, l = 0; l < i; l++) {
1595
+ var f = l * o;
1596
+ u[4 * l] = 0, u[4 * l + 1] = 0, u[4 * l + 2] = Math.cos(f) * ($.width / 2), u[4 * l + 3] = Math.sin(f) * ($.height / 2);
1405
1597
  }
1406
- var f = p.createBuffer();
1407
- p.bindBuffer(p.ARRAY_BUFFER, f), p.bufferData(p.ARRAY_BUFFER, u, p.STATIC_DRAW);
1408
- var g = p.getAttribLocation(n, "position");
1409
- p.enableVertexAttribArray(g), p.vertexAttribPointer(g, 2, p.FLOAT, !1, 0, 0), p.viewport(0, 0, E.width, E.height), p.clearColor(0, 0, 0, 1), p.clear(p.COLOR_BUFFER_BIT), p.drawArrays(p.LINES, 0, 2 * o);
1410
- var b = new Uint8ClampedArray(E.width * E.height * 4);
1411
- return p.readPixels(0, 0, E.width, E.height, p.RGBA, p.UNSIGNED_BYTE, b), new ImageData(b, E.width, E.height);
1598
+ var h = g.createBuffer();
1599
+ g.bindBuffer(g.ARRAY_BUFFER, h), g.bufferData(g.ARRAY_BUFFER, u, g.STATIC_DRAW);
1600
+ var p = g.getAttribLocation(n, "position");
1601
+ g.enableVertexAttribArray(p), g.vertexAttribPointer(p, 2, g.FLOAT, !1, 0, 0), g.viewport(0, 0, $.width, $.height), g.clearColor(0, 0, 0, 1), g.clear(g.COLOR_BUFFER_BIT), g.drawArrays(g.LINES, 0, 2 * i);
1602
+ var m = new Uint8ClampedArray($.width * $.height * 4);
1603
+ return g.readPixels(0, 0, $.width, $.height, g.RGBA, g.UNSIGNED_BYTE, m), new ImageData(m, $.width, $.height);
1412
1604
  } catch {
1413
1605
  return new ImageData(1, 1);
1414
1606
  } finally {
1415
- p && (p.bindBuffer(p.ARRAY_BUFFER, null), p.useProgram(null), p.viewport(0, 0, p.drawingBufferWidth, p.drawingBufferHeight), p.clearColor(0, 0, 0, 0));
1607
+ g && (g.bindBuffer(g.ARRAY_BUFFER, null), g.useProgram(null), g.viewport(0, 0, g.drawingBufferWidth, g.drawingBufferHeight), g.clearColor(0, 0, 0, 0));
1416
1608
  }
1417
1609
  }();
1418
- }), [2, { commonImageHash: _e(_t(e, E.width, E.height).data.toString()).toString() }];
1610
+ }), [2, { commonImageHash: Be(Dt(e, $.width, $.height).data.toString()).toString() }];
1419
1611
  } catch {
1420
1612
  return [2, { webgl: "unsupported" }];
1421
1613
  }
@@ -1423,56 +1615,63 @@ R("webgl", function() {
1423
1615
  });
1424
1616
  });
1425
1617
  });
1426
- var q = function(e, t, r, s) {
1618
+ var G = function(e, t, r, s) {
1427
1619
  for (var c = (r - t) / s, a = 0, n = 0; n < s; n++)
1428
1620
  a += e(t + (n + 0.5) * c);
1429
1621
  return a * c;
1430
1622
  };
1431
- R("math", function() {
1432
- return I(void 0, void 0, void 0, function() {
1433
- return L(this, function(e) {
1434
- return [2, { acos: Math.acos(0.5), asin: q(Math.asin, -1, 1, 97), atan: q(Math.atan, -1, 1, 97), cos: q(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: q(Math.sin, -Math.PI, Math.PI, 97), sinh: q(Math.sinh, -9 / 7, 7 / 9, 97), sqrt: Math.sqrt(2), tan: q(Math.tan, 0, 2 * Math.PI, 97), tanh: q(Math.tanh, -9 / 7, 7 / 9, 97) }];
1623
+ I("math", function() {
1624
+ return O(void 0, void 0, void 0, function() {
1625
+ return j(this, function(e) {
1626
+ return [2, { acos: Math.acos(0.5), asin: G(Math.asin, -1, 1, 97), atan: G(Math.atan, -1, 1, 97), cos: G(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: G(Math.sin, -Math.PI, Math.PI, 97), sinh: G(Math.sinh, -9 / 7, 7 / 9, 97), sqrt: Math.sqrt(2), tan: G(Math.tan, 0, 2 * Math.PI, 97), tanh: G(Math.tanh, -9 / 7, 7 / 9, 97) }];
1435
1627
  });
1436
1628
  });
1437
1629
  });
1438
- class Ts {
1630
+ const Ms = 500;
1631
+ class Ls {
1439
1632
  constructor(t, r) {
1440
- if (U(this, "config"), U(this, "sdkInfo"), U(this, "userId"), U(this, "sessionId"), U(this, "search", async (s) => {
1441
- if (this.sendMeasureEvent("search_requested", {
1442
- search_term: s.query
1443
- }), (s.query.match(/"/g) || []).length % 2 !== 0)
1444
- throw new Error(
1445
- "The search term contains an uneven number of quote characters."
1446
- );
1447
- try {
1448
- const c = {
1449
- query: this.buildQueryObject(s),
1450
- limit: s.limit ?? 20
1451
- // Default to 20 if not provided
1452
- };
1453
- s.offset !== void 0 && (c.offset = s.offset), s.order_by && (c.order_by = s.order_by, c.sort = s.sort === "desc" || s.sort === "asc" ? s.sort : "asc");
1454
- const a = {
1455
- method: "POST",
1456
- headers: {
1457
- Authorization: this.config.readKey,
1458
- "Content-Type": "application/json",
1459
- "X-Sc-User-Id": this.userId
1460
- },
1461
- body: JSON.stringify(c)
1462
- }, n = await fetch(this.baseSearchUrl, a);
1463
- if (!n.ok)
1633
+ if (B(this, "config"), B(this, "sdkInfo"), B(this, "userId"), B(this, "sessionId"), B(this, "searchRequestTimeout"), B(this, "measureRequestTimeout"), B(this, "measureRequestsBatched", []), B(this, "search", (s, c) => {
1634
+ const a = async () => {
1635
+ if (this.sendMeasureEvent("search_requested", {
1636
+ search_term: s.query
1637
+ }), (s.query.match(/"/g) || []).length % 2 !== 0)
1464
1638
  throw new Error(
1465
- `Error: ${n.statusText} (Status: ${n.status})`
1639
+ "The search term contains an uneven number of quote characters."
1466
1640
  );
1467
- const o = await n.json();
1468
- return this.sendMeasureEvent("search_response_received", {
1469
- search_term: s.query,
1470
- number_of_documents: o.data.count
1471
- }), o;
1472
- } catch (c) {
1473
- throw console.error("Error parsing response:", c), c;
1474
- }
1475
- }), U(this, "sendMeasureEvent", async (s, c = {}, a = {}) => {
1641
+ try {
1642
+ const n = {
1643
+ query: this.buildQueryObject(s),
1644
+ limit: s.limit ?? 20
1645
+ // Default to 20 if not provided
1646
+ };
1647
+ s.offset !== void 0 && (n.offset = s.offset), s.order_by && (n.order_by = s.order_by, n.sort = s.sort === "desc" || s.sort === "asc" ? s.sort : "asc");
1648
+ const i = {
1649
+ method: "POST",
1650
+ headers: {
1651
+ Authorization: this.config.readKey,
1652
+ "Content-Type": "application/json",
1653
+ "X-Sc-User-Id": this.userId
1654
+ },
1655
+ body: JSON.stringify(n)
1656
+ }, u = await fetch(this.baseSearchUrl, i);
1657
+ if (!u.ok)
1658
+ throw new Error(
1659
+ `Error: ${u.statusText} (Status: ${u.status})`
1660
+ );
1661
+ const o = await u.json();
1662
+ this.sendMeasureEvent("search_response_received", {
1663
+ search_term: s.query,
1664
+ number_of_documents: o.data.count
1665
+ }), c(o);
1666
+ } catch (n) {
1667
+ throw console.error("Error parsing response:", n), n;
1668
+ }
1669
+ };
1670
+ clearTimeout(this.searchRequestTimeout), this.config.searchDebounceDelay ? this.searchRequestTimeout = setTimeout(
1671
+ a,
1672
+ this.config.searchDebounceDelay
1673
+ ) : a();
1674
+ }), B(this, "sendMeasureEvent", (s, c = {}, a = {}) => {
1476
1675
  const n = {
1477
1676
  event_name: s,
1478
1677
  properties: {
@@ -1483,32 +1682,36 @@ class Ts {
1483
1682
  ...this.measureRequestUser,
1484
1683
  ...a
1485
1684
  }
1486
- }, o = JSON.stringify(n), u = `${this.baseMeasureUrl}/event`;
1487
- try {
1488
- const i = await fetch(u, {
1489
- method: "POST",
1490
- headers: {
1491
- "Content-Type": "application/json",
1492
- Authorization: this.config.readKey,
1493
- "X-Sc-User-Id": this.userId
1494
- },
1495
- body: o,
1496
- keepalive: !0
1497
- });
1498
- if (!i.ok)
1499
- throw new Error(
1500
- `Failed to send request: ${i.status} ${i.statusText}`
1501
- );
1502
- return;
1503
- } catch (i) {
1504
- throw console.error("Error sending MeasureRequest:", i), i;
1505
- }
1685
+ };
1686
+ this.measureRequestsBatched.push(n), clearTimeout(this.measureRequestTimeout), this.measureRequestTimeout = setTimeout(async () => {
1687
+ const i = JSON.stringify({ items: this.measureRequestsBatched }), u = `${this.baseMeasureUrl}/batch`;
1688
+ try {
1689
+ const o = await fetch(u, {
1690
+ method: "POST",
1691
+ headers: {
1692
+ "Content-Type": "application/json",
1693
+ Authorization: this.config.readKey,
1694
+ "X-Sc-User-Id": this.userId
1695
+ },
1696
+ body: i,
1697
+ keepalive: !0
1698
+ });
1699
+ if (!o.ok)
1700
+ throw new Error(
1701
+ `Failed to send request: ${o.status} ${o.statusText}`
1702
+ );
1703
+ this.measureRequestsBatched = [];
1704
+ return;
1705
+ } catch (o) {
1706
+ throw console.error("Error sending MeasureRequest:", o), o;
1707
+ }
1708
+ }, Ms);
1506
1709
  }), !t.endpointURL || !t.index || !t.readKey)
1507
1710
  throw new Error(
1508
1711
  "Endpoint URL, Index value(s), and Read Key must be provided"
1509
1712
  );
1510
1713
  this.config = t, this.sdkInfo = r, this.userId = t.userId || "", this.sessionId = "", setTimeout(() => {
1511
- this.sessionId = hs(), this.initMeasure();
1714
+ this.sessionId = vs(), this.initMeasure();
1512
1715
  }, 300);
1513
1716
  }
1514
1717
  /**
@@ -1516,7 +1719,7 @@ class Ts {
1516
1719
  */
1517
1720
  async initMeasure() {
1518
1721
  if (!this.config.userId) {
1519
- const t = await ys();
1722
+ const t = await Cs();
1520
1723
  this.userId = t;
1521
1724
  }
1522
1725
  this.sendMeasureEvent("sdk_initialized");
@@ -1561,7 +1764,7 @@ class Ts {
1561
1764
  const n = (a = t.facetPathsForIndexFields) == null ? void 0 : a[c];
1562
1765
  n && (s = "must", r.push({
1563
1766
  occur: s,
1564
- normal: {
1767
+ exact: {
1565
1768
  ctx: n.value
1566
1769
  }
1567
1770
  }));
@@ -1572,7 +1775,7 @@ class Ts {
1572
1775
  const n = (a = t.rangeValueForIndexFields) == null ? void 0 : a[c];
1573
1776
  n && (s = "must", r.push({
1574
1777
  occur: s,
1575
- normal: {
1778
+ exact: {
1576
1779
  ctx: n.value
1577
1780
  }
1578
1781
  }));
@@ -1585,13 +1788,13 @@ class Ts {
1585
1788
  }), r;
1586
1789
  }
1587
1790
  }
1588
- var w = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(w || {});
1589
- class _s {
1791
+ var A = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(A || {});
1792
+ class Os {
1590
1793
  constructor(t) {
1591
- U(this, "logLevel"), U(this, "logFormatter"), this.logLevel = t.logLevel || 1, this.logFormatter = t.logFormatter || this.defaultFormatter;
1794
+ B(this, "logLevel"), B(this, "logFormatter"), this.logLevel = t.logLevel || 1, this.logFormatter = t.logFormatter || this.defaultFormatter;
1592
1795
  }
1593
1796
  defaultFormatter(t, r) {
1594
- return `[${w[t]}] ${(/* @__PURE__ */ new Date()).toISOString()}: ${r}`;
1797
+ return `[${A[t]}] ${(/* @__PURE__ */ new Date()).toISOString()}: ${r}`;
1595
1798
  }
1596
1799
  debug(t) {
1597
1800
  this.logLevel <= 0 && console.log(this.logFormatter(0, t));
@@ -1606,26 +1809,32 @@ class _s {
1606
1809
  this.logLevel <= 3 && console.error(this.logFormatter(3, t));
1607
1810
  }
1608
1811
  }
1609
- const z = Se.create((e, t) => {
1812
+ const v = ke.create((e, t) => {
1610
1813
  let r = null, s = null;
1611
1814
  const c = (a, n) => {
1612
1815
  if (s)
1613
1816
  switch (a) {
1614
- case w.DEBUG:
1817
+ case A.DEBUG:
1615
1818
  s.debug(n);
1616
1819
  break;
1617
- case w.INFO:
1820
+ case A.INFO:
1618
1821
  s.info(n);
1619
1822
  break;
1620
- case w.WARN:
1823
+ case A.WARN:
1621
1824
  s.warn(n);
1622
1825
  break;
1623
- case w.ERROR:
1826
+ case A.ERROR:
1624
1827
  s.error(n);
1625
1828
  break;
1626
1829
  }
1627
1830
  };
1628
1831
  return {
1832
+ setPopoverVisibility: (a) => {
1833
+ e({
1834
+ isPopoverVisible: a
1835
+ });
1836
+ },
1837
+ isPopoverVisible: !1,
1629
1838
  resetFacetPaths: () => {
1630
1839
  e({
1631
1840
  facetPathsForIndexFields: {}
@@ -1635,18 +1844,18 @@ const z = Se.create((e, t) => {
1635
1844
  facetPathsForIndexFields: Object.assign(Object.assign({}, n.facetPathsForIndexFields), { [a.fieldName]: a })
1636
1845
  })),
1637
1846
  removeFacetPathsForIndexField: (a) => e((n) => {
1638
- const o = n.facetPathsForIndexFields;
1639
- return delete o[a], {
1640
- facetPathsForIndexFields: Object.assign({}, o)
1847
+ const i = n.facetPathsForIndexFields;
1848
+ return delete i[a], {
1849
+ facetPathsForIndexFields: Object.assign({}, i)
1641
1850
  };
1642
1851
  }),
1643
1852
  addRangeValueForIndexField: (a) => e((n) => ({
1644
1853
  rangeValueForIndexFields: Object.assign(Object.assign({}, n.rangeValueForIndexFields), { [a.fieldName]: a })
1645
1854
  })),
1646
1855
  removeRangeValueForIndexField: (a) => e((n) => {
1647
- const o = n.rangeValueForIndexFields;
1648
- return delete o[a], {
1649
- rangeValueForIndexFields: Object.assign({}, o)
1856
+ const i = n.rangeValueForIndexFields;
1857
+ return delete i[a], {
1858
+ rangeValueForIndexFields: Object.assign({}, i)
1650
1859
  };
1651
1860
  }),
1652
1861
  setSearchMode: (a) => e({ searchMode: a }),
@@ -1671,47 +1880,42 @@ const z = Se.create((e, t) => {
1671
1880
  setIsRequesting: (a) => e({ isRequesting: a }),
1672
1881
  search: async () => {
1673
1882
  const a = t();
1674
- if (c(w.INFO, `Starting search with search term: "${a.query}"`), !r)
1883
+ if (c(A.INFO, `Starting search with search term: "${a.query}"`), !r)
1675
1884
  throw new Error("Searchcraft instance is not initialized.");
1676
1885
  if (!a.query.trim()) {
1677
- c(w.INFO, "No search request was made: search term was empty."), a.setSearchResults(null);
1886
+ c(A.INFO, "No search request was made: search term was empty."), a.setSearchResults(null);
1678
1887
  return;
1679
1888
  }
1680
- a.setIsRequesting(!0);
1681
- try {
1682
- const n = await r.search({
1683
- query: a.query,
1684
- mode: a.searchMode,
1685
- sort: a.sortType,
1686
- facetPathsForIndexFields: a.facetPathsForIndexFields,
1687
- rangeValueForIndexFields: a.rangeValueForIndexFields
1688
- }), o = n.data.facets || null;
1689
- a.setSearchResults(n), a.setFacets(o), c(w.DEBUG, `Search results: ${JSON.stringify(n)}`), c(w.DEBUG, `Updated facets: ${JSON.stringify(o)}`);
1690
- } catch (n) {
1691
- console.error(`Search failed: ${n.message}`), c(w.ERROR, `Search failed with error: ${n.message}`);
1692
- } finally {
1693
- a.setIsRequesting(!1);
1694
- }
1889
+ a.setIsRequesting(!0), r.search({
1890
+ query: a.query,
1891
+ mode: a.searchMode,
1892
+ sort: a.sortType,
1893
+ facetPathsForIndexFields: a.facetPathsForIndexFields,
1894
+ rangeValueForIndexFields: a.rangeValueForIndexFields
1895
+ }, (n) => {
1896
+ const i = n.data.facets || null;
1897
+ a.setSearchResults(n), a.setFacets(i), c(A.DEBUG, `Search results: ${JSON.stringify(n)}`), c(A.DEBUG, `Updated facets: ${JSON.stringify(i)}`), a.setIsRequesting(!1);
1898
+ });
1695
1899
  },
1696
1900
  initialize: (a, n = !1) => {
1697
- r = a, s = n ? new _s({ logLevel: w.DEBUG }) : null, c(w.INFO, "Searchcraft store initialized.");
1901
+ r = a, s = n ? new Os({ logLevel: A.DEBUG }) : null, c(A.INFO, "Searchcraft store initialized.");
1698
1902
  }
1699
1903
  };
1700
1904
  });
1701
- Se.create((e) => ({
1905
+ ke.create((e) => ({
1702
1906
  theme: "light",
1703
1907
  toggleTheme: () => e((t) => ({ theme: t.theme === "light" ? "dark" : "light" }))
1704
1908
  }));
1705
- const As = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}.searchcraft-search-result-container{all:unset;align-items:flex-start;border-radius:16px;display:flex;flex-direction:column;gap:16px;padding:8px;color:inherit;background-color:var(--sc-surface-neutral-primary)}@media (min-width: 900px){.searchcraft-search-result-container{flex-direction:row}}a.searchcraft-search-result-container{cursor:pointer;transition:background-color 100ms}.searchcraft-base-search-result-content-container{flex:1;display:flex;flex-direction:column;gap:8px}.searchcraft-search-result-image{border-radius:var(--sc-image-border-radius);width:100%}@media (min-width: 900px){.searchcraft-search-result-image{width:200px}}.searchcraft-base-search-result-title{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-bold-font-size);font-weight:var(--sc-body-bold-font-weight);line-height:var(--sc-body-bold-line-height);margin:0;color:var(--sc-content-neutral-primary)}.searchcraft-base-search-result-subtitle{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);margin:0;color:var(--sc-content-disabled)}.searchcraft-base-search-result-body-content{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);margin:0;color:var(--sc-content-neutral-secondary)}.searchcraft-base-search-result-footer-content{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);margin:0;color:var(--sc-content-disabled)}", Ps = As, At = /* @__PURE__ */ P(class extends A {
1909
+ const js = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-search-result-container{all:unset;align-items:flex-start;border-radius:16px;display:flex;flex-direction:column;gap:16px;padding:8px;color:inherit;background-color:var(--sc-surface-neutral-primary)}@media (min-width: 768px){.searchcraft-search-result-container{flex-direction:row}}a.searchcraft-search-result-container{cursor:pointer;transition:background-color 100ms}.searchcraft-base-search-result-content-container{flex:1;display:flex;flex-direction:column;gap:8px}.searchcraft-search-result-image{border-radius:var(--sc-image-border-radius);width:100%}@media (min-width: 768px){.searchcraft-search-result-image{width:200px}}.searchcraft-base-search-result-title{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-bold-font-size);font-weight:var(--sc-body-bold-font-weight);line-height:var(--sc-body-bold-line-height);margin:0;color:var(--sc-content-neutral-primary)}.searchcraft-base-search-result-subtitle{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);margin:0;color:var(--sc-content-disabled)}.searchcraft-base-search-result-body-content{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);margin:0;color:var(--sc-content-neutral-secondary)}.searchcraft-base-search-result-footer-content{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);margin:0;color:var(--sc-content-disabled)}", Us = js, Bt = /* @__PURE__ */ k(class extends S {
1706
1910
  constructor() {
1707
- super(), this.__registerHost(), this.searchcraftStore = z.getState(), this.recordMeasureEvent = () => {
1911
+ super(), this.__registerHost(), this.buttonTarget = "_blank", this.containerTarget = "_blank", this.documentPosition = 0, this.searchcraftStore = v.getState(), this.recordMeasureEvent = () => {
1708
1912
  var t, r, s;
1709
1913
  const c = this.searchcraftStore.getSearchcraftInstance();
1710
1914
  if (c) {
1711
- const a = this.documentPosition, n = this.searchcraftStore.query, o = ((s = (r = (t = this.searchcraftStore.searchResults) === null || t === void 0 ? void 0 : t.data) === null || r === void 0 ? void 0 : r.hits) === null || s === void 0 ? void 0 : s.length) || 0;
1915
+ const a = this.documentPosition, n = this.searchcraftStore.query, i = ((s = (r = (t = this.searchcraftStore.searchResults) === null || t === void 0 ? void 0 : t.data) === null || r === void 0 ? void 0 : r.hits) === null || s === void 0 ? void 0 : s.length) || 0;
1712
1916
  c.sendMeasureEvent("document_clicked", {
1713
1917
  document_position: a,
1714
- number_of_documents: o,
1918
+ number_of_documents: i,
1715
1919
  search_term: n
1716
1920
  });
1717
1921
  }
@@ -1723,14 +1927,14 @@ const As = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input
1723
1927
  return console.error("Error parsing custom styles:", t), {};
1724
1928
  }
1725
1929
  return {};
1726
- }, this.titleContent = void 0, this.subtitleContent = void 0, this.bodyContent = void 0, this.footerContent = void 0, this.buttonLabel = void 0, this.buttonHref = void 0, this.buttonTarget = "_blank", this.buttonRel = void 0, this.containerHref = void 0, this.containerTarget = "_blank", this.containerRel = void 0, this.imageSrc = void 0, this.imageAlt = void 0, this.imagePlacement = void 0, this.customStyles = void 0, this.documentPosition = 0;
1930
+ };
1727
1931
  }
1728
1932
  render() {
1729
- const t = this.parseStyles(), r = this.imageSrc && d("img", { alt: this.imageAlt, class: "searchcraft-search-result-image", src: this.imageSrc, style: t.image || {} }), s = d($e, null, this.imageSrc && this.imagePlacement === "left" && r, d("div", { class: "searchcraft-base-search-result-content-container" }, this.titleContent && d("h2", { class: "searchcraft-base-search-result-title", style: t.title || {} }, this.titleContent), this.subtitleContent && d("h3", { class: "searchcraft-base-search-result-subtitle", style: t.subtitle || {} }, this.subtitleContent), this.bodyContent && d("p", { class: "searchcraft-base-search-result-body-content", style: t.primaryContent || {} }, this.bodyContent), this.footerContent && d("p", { class: "searchcraft-base-search-result-footer-content", style: t.secondaryContent || {} }, this.footerContent), this.buttonHref && !this.containerHref && this.buttonLabel && d("a", { class: "searchcraft-search-result-button", href: this.buttonHref, style: t.button || {}, target: this.buttonTarget, rel: this.buttonRel }, this.buttonLabel)), this.imageSrc && this.imagePlacement === "right" && r);
1933
+ const t = this.parseStyles(), r = this.imageSrc && d("img", { alt: this.imageAlt, class: "searchcraft-search-result-image", src: this.imageSrc, style: t.image || {} }), s = d(Se, null, this.imageSrc && this.imagePlacement === "left" && r, d("div", { class: "searchcraft-base-search-result-content-container" }, this.titleContent && d("h2", { class: "searchcraft-base-search-result-title", style: t.title || {} }, this.titleContent), this.subtitleContent && d("h3", { class: "searchcraft-base-search-result-subtitle", style: t.subtitle || {} }, this.subtitleContent), this.bodyContent && d("p", { class: "searchcraft-base-search-result-body-content", style: t.primaryContent || {} }, this.bodyContent), this.footerContent && d("p", { class: "searchcraft-base-search-result-footer-content", style: t.secondaryContent || {} }, this.footerContent), this.buttonHref && !this.containerHref && this.buttonLabel && d("a", { class: "searchcraft-search-result-button", href: this.buttonHref, style: t.button || {}, target: this.buttonTarget, rel: this.buttonRel }, this.buttonLabel)), this.imageSrc && this.imagePlacement === "right" && r);
1730
1934
  return this.containerHref ? d("a", { class: "searchcraft-search-result-container", onClick: this.recordMeasureEvent, href: this.containerHref, rel: this.containerRel, style: t.container || {}, tabindex: "0", target: this.containerTarget }, s) : d("div", { class: "searchcraft-search-result-container", style: t.container || {} }, s);
1731
1935
  }
1732
1936
  static get style() {
1733
- return Ps;
1937
+ return Us;
1734
1938
  }
1735
1939
  }, [0, "searchcraft-base-search-result", {
1736
1940
  titleContent: [1, "title-content"],
@@ -1750,42 +1954,37 @@ const As = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input
1750
1954
  customStyles: [1, "custom-styles"],
1751
1955
  documentPosition: [2, "document-position"]
1752
1956
  }]);
1753
- function Pt() {
1957
+ function It() {
1754
1958
  if (typeof customElements > "u")
1755
1959
  return;
1756
1960
  ["searchcraft-base-search-result"].forEach((t) => {
1757
1961
  switch (t) {
1758
1962
  case "searchcraft-base-search-result":
1759
- customElements.get(t) || customElements.define(t, At);
1963
+ customElements.get(t) || customElements.define(t, Bt);
1760
1964
  break;
1761
1965
  }
1762
1966
  });
1763
1967
  }
1764
- const Ds = At, Ms = Pt;
1765
- function Bs(e) {
1766
- if (typeof e == "string")
1767
- try {
1768
- return JSON.parse(e);
1769
- } catch {
1770
- return console.error("Invalid customStyles format:", e), {};
1771
- }
1772
- return e || {};
1773
- }
1774
- function Is(e) {
1775
- try {
1776
- return JSON.stringify(e);
1777
- } catch (t) {
1778
- return console.error("Error serializing styles:", t), "{}";
1779
- }
1780
- }
1781
- function Ls(e) {
1782
- const t = /* @__PURE__ */ new Date(), r = new Date(e), s = Math.floor((t.getTime() - r.getTime()) / 1e3), c = Math.floor(s / 60), a = Math.floor(c / 60), n = Math.floor(a / 24), o = Math.floor(n / 365);
1783
- return c < 60 ? `${c}m ago` : a < 24 ? `${a}h ago` : n < 365 ? `${n}d ago` : `${o}y ago`;
1784
- }
1785
- function Os(e) {
1786
- return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
1968
+ const Hs = Bt, qs = It;
1969
+ function D(e, t) {
1970
+ if (e && t)
1971
+ return t.fieldNames.map((r) => {
1972
+ let s = e[r.fieldName];
1973
+ if (s)
1974
+ switch (r.dataType) {
1975
+ case "date": {
1976
+ s = Vs(s);
1977
+ break;
1978
+ }
1979
+ case "number": {
1980
+ s = Intl.NumberFormat(r.numberFormatLocale, r.numberFormatOptions).format(s * (r.numberScale || 1));
1981
+ break;
1982
+ }
1983
+ }
1984
+ return s;
1985
+ }).filter((r) => !!r).join(t.delimiter || " ");
1787
1986
  }
1788
- function Dt(e) {
1987
+ function Mt(e) {
1789
1988
  switch (e) {
1790
1989
  case "hour":
1791
1990
  return 36e5;
@@ -1799,146 +1998,93 @@ function Dt(e) {
1799
1998
  return 36e5;
1800
1999
  }
1801
2000
  }
1802
- function js(e) {
1803
- return e.filter((t, r, s) => !s.some((c, a) => a !== r && c.includes(t)));
1804
- }
1805
- function H(e, t) {
1806
- if (e && t)
1807
- return t.fieldNames.map((r) => {
1808
- let s = e[r.fieldName];
1809
- return s && r.dataType === "date" && (s = Ls(s)), s;
1810
- }).filter((r) => !!r).join(t.delimiter || " ");
1811
- }
1812
- function Mt(e, t) {
1813
- const r = Object.assign({}, e);
1814
- for (const s in t)
1815
- t.hasOwnProperty(s) && (t[s] instanceof Object && e[s] instanceof Object ? r[s] = Mt(e[s], t[s]) : r[s] = t[s]);
1816
- return r;
1817
- }
1818
- function et(e) {
1819
- const t = {}, r = (s) => {
1820
- var c;
1821
- t[s.path] = {
1822
- count: s.count,
1823
- path: s.path
1824
- }, (c = s.children) === null || c === void 0 || c.forEach((a) => {
1825
- r(a);
1826
- });
1827
- };
1828
- return r(e), t;
1829
- }
1830
- function Us(e) {
1831
- const t = {
1832
- count: 0,
1833
- path: "/",
1834
- children: {}
1835
- };
1836
- return Object.keys(e).forEach((r) => {
1837
- const s = e[r];
1838
- if (s.path === "/")
1839
- return;
1840
- const c = s.path.substring(1).split("/");
1841
- let a = t, n = "";
1842
- c.forEach((o, u) => {
1843
- const i = `${n}/${o}`;
1844
- a.children[i] || (a.children[i] = {
1845
- count: 0,
1846
- path: i,
1847
- children: {}
1848
- }), u === c.length - 1 && (a.children[i].count = s.count), n = i, a = a.children[i];
1849
- });
1850
- }), t;
2001
+ function Ns(e) {
2002
+ return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
1851
2003
  }
1852
- function Bt(e) {
1853
- const t = {
1854
- count: e.count,
1855
- path: e.path,
1856
- children: []
1857
- };
1858
- return Object.keys(e.children).length > 0 && (t.children = Object.values(e.children).map((r) => Bt(r))), t;
2004
+ function Vs(e) {
2005
+ const t = /* @__PURE__ */ new Date(), r = new Date(e), s = Math.floor((t.getTime() - r.getTime()) / 1e3), c = Math.floor(s / 60), a = Math.floor(c / 60), n = Math.floor(a / 24), i = Math.floor(n / 365);
2006
+ return c < 60 ? `${c}m ago` : a < 24 ? `${a}h ago` : n < 365 ? `${n}d ago` : `${i}y ago`;
1859
2007
  }
1860
- function Ns(e, t) {
1861
- const r = Object.keys(e), s = Object.keys(t), c = new Set(s.filter((n) => n.split("/").length > 2).map((n) => n.substring(0, n.lastIndexOf("/"))));
1862
- return Object.fromEntries(r.filter((n) => !c.has(n.substring(0, n.lastIndexOf("/")))).map((n) => [n, e[n]]));
2008
+ function Ws(e) {
2009
+ if (typeof e == "string")
2010
+ try {
2011
+ return JSON.parse(e);
2012
+ } catch {
2013
+ return console.error("Invalid customStyles format:", e), {};
2014
+ }
2015
+ return e || {};
1863
2016
  }
1864
- function qs(e, t, r) {
1865
- const s = t[e], c = r[e], a = {
1866
- count: 0,
1867
- path: "/",
1868
- children: s
1869
- }, n = {
1870
- count: 0,
1871
- path: "/",
1872
- children: c
1873
- }, o = et(a), u = et(n), i = Ns(o, u), l = Mt(i, u), h = Us(l), f = Bt(h);
1874
- return {
1875
- [e]: f.children
1876
- };
2017
+ function Gs(e) {
2018
+ try {
2019
+ return JSON.stringify(e);
2020
+ } catch (t) {
2021
+ return console.error("Error serializing styles:", t), "{}";
2022
+ }
1877
2023
  }
1878
- const Hs = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}.searchcraft-error-message{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);color:var(--sc-content-danger);margin:0}", Vs = Hs, It = /* @__PURE__ */ P(class extends A {
2024
+ const Ys = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-error-message{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);color:var(--sc-content-danger);margin:0}", Ks = Ys, Lt = /* @__PURE__ */ k(class extends S {
1879
2025
  constructor() {
1880
- super(), this.__registerHost(), this.errorMessage = void 0;
2026
+ super(), this.__registerHost();
1881
2027
  }
1882
2028
  render() {
1883
- return d("p", { key: "68c4058c43418e96729a91e6a2a9a106303c8bc0", class: "searchcraft-error-message" }, this.errorMessage || "Search term is required.");
2029
+ return d("p", { key: "5bdc428adf6f239d66a9b0f946ee6e582de41e86", class: "searchcraft-error-message" }, this.errorMessage || "Search term is required.");
1884
2030
  }
1885
2031
  static get style() {
1886
- return Vs;
2032
+ return Ks;
1887
2033
  }
1888
2034
  }, [0, "searchcraft-error-message", {
1889
2035
  errorMessage: [1, "error-message"]
1890
2036
  }]);
1891
- function Ae() {
2037
+ function he() {
1892
2038
  if (typeof customElements > "u")
1893
2039
  return;
1894
2040
  ["searchcraft-error-message"].forEach((t) => {
1895
2041
  switch (t) {
1896
2042
  case "searchcraft-error-message":
1897
- customElements.get(t) || customElements.define(t, It);
2043
+ customElements.get(t) || customElements.define(t, Lt);
1898
2044
  break;
1899
2045
  }
1900
2046
  });
1901
2047
  }
1902
- const Ws = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}.searchcraft-search-results-container{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-ad-section{align-items:center;background-color:#F1F1F1;border-radius:16px;display:flex;flex-direction:column;font-size:16px;justify-content:center;min-height:176px;text-align:center}.searchcraft-ad-section p{margin:0;color:var(--sc-content-disabled)}.searchcraft-search-results-empty-state-container{text-align:center}.searchcraft-search-results-error-message-container{text-align:center}", Gs = Ws, Lt = /* @__PURE__ */ P(class extends A {
2048
+ const Qs = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-search-results-container{display:flex;flex-direction:column;justify-content:center;gap:16px}.searchcraft-ad-section{align-items:center;background-color:#F1F1F1;border-radius:16px;display:flex;flex-direction:column;font-size:16px;justify-content:center;min-height:176px;text-align:center}.searchcraft-ad-section p{margin:0;color:var(--sc-content-disabled)}.searchcraft-search-results-empty-state-container{text-align:center}.searchcraft-search-results-error-message-container{text-align:center}", Js = Qs, Ot = /* @__PURE__ */ k(class extends S {
1903
2049
  constructor() {
1904
- super(), this.__registerHost(), this.noResults = M(this, "noResults", 7), this.adInterval = 4, this.customStylesForResults = void 0, this.searchResultMappings = void 0, this.placeAdAtEnd = !1, this.placeAdAtStart = !0, this.resultImagePlacement = "right", this.buttonLabel = void 0, this.buttonTarget = "_blank", this.buttonRel = void 0, this.containerTarget = "_blank", this.containerRel = void 0, this.hasSearched = !1, this.query = "", this.searchResults = null;
2050
+ super(), this.__registerHost(), this.noResults = M(this, "noResults"), this.adInterval = 4, this.placeAdAtEnd = !1, this.placeAdAtStart = !0, this.resultImagePlacement = "right", this.buttonTarget = "_blank", this.containerTarget = "_blank", this.hasSearched = !1, this.query = "", this.searchResults = null;
1905
2051
  }
1906
2052
  componentDidLoad() {
1907
- this.unsubscribe = z.subscribe((s) => {
2053
+ this.unsubscribe = v.subscribe((s) => {
1908
2054
  s.query.length > 0 ? this.hasSearched = !0 : this.hasSearched = !1, this.searchResults = Object.assign({}, s.searchResults), this.query = s.query;
1909
2055
  });
1910
- const { searchResults: t, query: r } = z.getState();
2056
+ const { searchResults: t, query: r } = v.getState();
1911
2057
  this.searchResults = t, this.query = r;
1912
2058
  }
1913
2059
  disconnectedCallback() {
1914
2060
  this.unsubscribe && this.unsubscribe();
1915
2061
  }
1916
2062
  renderDocument(t, r) {
1917
- const s = H(t, this.searchResultMappings.title), c = H(t, this.searchResultMappings.subtitle), a = H(t, this.searchResultMappings.body), n = H(t, this.searchResultMappings.containerHref), o = H(t, this.searchResultMappings.buttonHref), u = H(t, this.searchResultMappings.imageSource), i = H(t, this.searchResultMappings.footer), l = typeof this.customStylesForResults == "string" ? this.customStylesForResults : Is(this.customStylesForResults);
1918
- return d("searchcraft-base-search-result", { key: `${t.document_id}-${r}`, "custom-styles": l, "image-placement": this.resultImagePlacement, "container-rel": this.containerRel, "container-target": this.containerTarget, "button-label": this.buttonLabel || "View more", "button-rel": this.buttonRel, "button-target": this.buttonTarget, "document-position": r, "title-content": s, "subtitle-content": c, "body-content": a, "footer-content": i, "container-href": n, "button-href": o, "image-src": u });
2063
+ const s = D(t, this.searchResultMappings.title), c = D(t, this.searchResultMappings.subtitle), a = D(t, this.searchResultMappings.body), n = D(t, this.searchResultMappings.containerHref), i = D(t, this.searchResultMappings.buttonHref), u = D(t, this.searchResultMappings.imageSource), o = D(t, this.searchResultMappings.footer), l = typeof this.customStylesForResults == "string" ? this.customStylesForResults : Gs(this.customStylesForResults);
2064
+ return d("searchcraft-base-search-result", { key: `${t.document_id}-${r}`, "custom-styles": l, "image-placement": this.resultImagePlacement, "container-rel": this.containerRel, "container-target": this.containerTarget, "button-label": this.buttonLabel || "View more", "button-rel": this.buttonRel, "button-target": this.buttonTarget, "document-position": r, "title-content": s, "subtitle-content": c, "body-content": a, "footer-content": o, "container-href": n, "button-href": i, "image-src": u });
1919
2065
  }
1920
2066
  render() {
1921
- var t, r, s, c, a, n, o, u, i, l;
2067
+ var t, r, s, c, a, n, i, u, o, l;
1922
2068
  if (this.query.trim() === "")
1923
2069
  return d("div", { class: "searchcraft-search-results-empty-state-container" }, d("slot", { name: "empty-search" }));
1924
2070
  if (!(!((t = this.searchResults) === null || t === void 0) && t.data))
1925
2071
  return;
1926
- const h = (c = (s = (r = this.searchResults) === null || r === void 0 ? void 0 : r.data) === null || s === void 0 ? void 0 : s.hits) === null || c === void 0 ? void 0 : c.map((g, b) => {
1927
- const { doc: v } = g;
1928
- return v;
1929
- }), f = [];
1930
- if (this.placeAdAtStart && f.push(d("div", { key: "ad-section-start", class: "searchcraft-ad-section" }, d("p", null, "Ad Section"))), this.adInterval > 0)
1931
- h.forEach((g, b) => {
1932
- f.push(this.renderDocument(g, b)), (b + 1) % this.adInterval === 0 && f.push(d("div", { key: `ad-section-${b + 1}`, class: "searchcraft-ad-section " }, d("p", null, "Ad Section")));
2072
+ const f = (c = (s = (r = this.searchResults) === null || r === void 0 ? void 0 : r.data) === null || s === void 0 ? void 0 : s.hits) === null || c === void 0 ? void 0 : c.map((p, m) => {
2073
+ const { doc: E } = p;
2074
+ return E;
2075
+ }), h = [];
2076
+ if (this.placeAdAtStart && h.push(d("div", { key: "ad-section-start", class: "searchcraft-ad-section" }, d("p", null, "Ad Section"))), this.adInterval > 0)
2077
+ f.forEach((p, m) => {
2078
+ h.push(this.renderDocument(p, m)), (m + 1) % this.adInterval === 0 && h.push(d("div", { key: `ad-section-${m + 1}`, class: "searchcraft-ad-section " }, d("p", null, "Ad Section")));
1933
2079
  });
1934
2080
  else {
1935
- const g = h.map((b, v) => this.renderDocument(b, v));
1936
- f.push(...g);
2081
+ const p = f.map((m, E) => this.renderDocument(m, E));
2082
+ h.push(...p);
1937
2083
  }
1938
- return this.placeAdAtEnd && f.push(d("div", { key: "ad-section-end", class: "searchcraft-ad-section" }, d("p", null, "Ad Section"))), this.query.length > 0 && ((o = (n = (a = this.searchResults) === null || a === void 0 ? void 0 : a.data) === null || n === void 0 ? void 0 : n.hits) === null || o === void 0 ? void 0 : o.length) === 0 && this.noResults.emit(), d("div", { class: "searchcraft-search-results-container" }, f, this.query.length > 0 && ((l = (i = (u = this.searchResults) === null || u === void 0 ? void 0 : u.data) === null || i === void 0 ? void 0 : i.hits) === null || l === void 0 ? void 0 : l.length) === 0 && d("div", { class: "searchcraft-search-results-error-message-container" }, d("searchcraft-error-message", { "error-message": `No search results found for "${this.query}" query` })));
2084
+ return this.placeAdAtEnd && h.push(d("div", { key: "ad-section-end", class: "searchcraft-ad-section" }, d("p", null, "Ad Section"))), this.query.length > 0 && ((i = (n = (a = this.searchResults) === null || a === void 0 ? void 0 : a.data) === null || n === void 0 ? void 0 : n.hits) === null || i === void 0 ? void 0 : i.length) === 0 && this.noResults.emit(), d("div", { class: "searchcraft-search-results-container" }, h, this.query.length > 0 && ((l = (o = (u = this.searchResults) === null || u === void 0 ? void 0 : u.data) === null || o === void 0 ? void 0 : o.hits) === null || l === void 0 ? void 0 : l.length) === 0 && d("div", { class: "searchcraft-search-results-error-message-container" }, d("searchcraft-error-message", { "error-message": `No search results found for "${this.query}" query` })));
1939
2085
  }
1940
2086
  static get style() {
1941
- return Gs;
2087
+ return Js;
1942
2088
  }
1943
2089
  }, [4, "searchcraft-base-search-results", {
1944
2090
  adInterval: [2, "ad-interval"],
@@ -1956,25 +2102,25 @@ const Ws = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input
1956
2102
  query: [32],
1957
2103
  searchResults: [32]
1958
2104
  }]);
1959
- function Qs() {
2105
+ function Xs() {
1960
2106
  if (typeof customElements > "u")
1961
2107
  return;
1962
2108
  ["searchcraft-base-search-results", "searchcraft-base-search-result", "searchcraft-error-message"].forEach((t) => {
1963
2109
  switch (t) {
1964
2110
  case "searchcraft-base-search-results":
1965
- customElements.get(t) || customElements.define(t, Lt);
2111
+ customElements.get(t) || customElements.define(t, Ot);
1966
2112
  break;
1967
2113
  case "searchcraft-base-search-result":
1968
- customElements.get(t) || Pt();
2114
+ customElements.get(t) || It();
1969
2115
  break;
1970
2116
  case "searchcraft-error-message":
1971
- customElements.get(t) || Ae();
2117
+ customElements.get(t) || he();
1972
2118
  break;
1973
2119
  }
1974
2120
  });
1975
2121
  }
1976
- const Js = Lt, Ks = Qs;
1977
- var Ot = { exports: {} };
2122
+ const Zs = Ot, en = Xs;
2123
+ var jt = { exports: {} };
1978
2124
  /*!
1979
2125
  Copyright (c) 2018 Jed Watson.
1980
2126
  Licensed under the MIT License (MIT), see
@@ -1985,8 +2131,8 @@ var Ot = { exports: {} };
1985
2131
  var t = {}.hasOwnProperty;
1986
2132
  function r() {
1987
2133
  for (var a = "", n = 0; n < arguments.length; n++) {
1988
- var o = arguments[n];
1989
- o && (a = c(a, s(o)));
2134
+ var i = arguments[n];
2135
+ i && (a = c(a, s(i)));
1990
2136
  }
1991
2137
  return a;
1992
2138
  }
@@ -2000,8 +2146,8 @@ var Ot = { exports: {} };
2000
2146
  if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]"))
2001
2147
  return a.toString();
2002
2148
  var n = "";
2003
- for (var o in a)
2004
- t.call(a, o) && a[o] && (n = c(n, o));
2149
+ for (var i in a)
2150
+ t.call(a, i) && a[i] && (n = c(n, i));
2005
2151
  return n;
2006
2152
  }
2007
2153
  function c(a, n) {
@@ -2009,18 +2155,18 @@ var Ot = { exports: {} };
2009
2155
  }
2010
2156
  e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
2011
2157
  })();
2012
- })(Ot);
2013
- const x = Ot.exports, Ys = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}.searchcraft-button{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-bold-font-size);font-weight:var(--sc-body-bold-font-weight);line-height:var(--sc-body-bold-line-height);border-radius:8px;display:flex;padding:12px 20px;position:relative;background-color:var(--sc-surface-brand-primary);border:1px solid var(--sc-border-primary);color:var(--sc-content-brand-on-primary)}.searchcraft-button:hover{cursor:pointer;background-color:var(--sc-surface-brand-primary-hover)}.searchcraft-button:focus{outline:2px solid var(--sc-surface-brand-primary)}.buttonLabel{position:relative}", Xs = Ys, jt = /* @__PURE__ */ P(class extends A {
2158
+ })(jt);
2159
+ const x = jt.exports, tn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-button{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-bold-font-size);font-weight:var(--sc-body-bold-font-weight);line-height:var(--sc-body-bold-line-height);border-radius:8px;display:flex;padding:12px 20px;position:relative;background-color:var(--sc-surface-brand-primary);border:1px solid var(--sc-border-primary);color:var(--sc-content-brand-on-primary)}.searchcraft-button:hover{cursor:pointer;background-color:var(--sc-surface-brand-primary-hover)}.searchcraft-button:focus{outline:2px solid var(--sc-surface-brand-primary)}.buttonLabel{position:relative}", rn = tn, Ut = /* @__PURE__ */ k(class extends S {
2014
2160
  constructor() {
2015
- super(), this.__registerHost(), this.buttonClick = M(this, "buttonClick", 7), this.handleClick = () => {
2161
+ super(), this.__registerHost(), this.buttonClick = M(this, "buttonClick"), this.iconOnly = !1, this.iconPosition = "left", this.label = "Search", this.isRequesting = !1, this.handleClick = () => {
2016
2162
  this.buttonClick.emit();
2017
- }, this.iconElement = void 0, this.iconOnly = !1, this.iconPosition = "left", this.label = "Search", this.isRequesting = !1;
2163
+ };
2018
2164
  }
2019
2165
  render() {
2020
- return d($e, { key: "8ea823d757ceca459ef80affa8dfdf7e96076c32" }, this.iconOnly ? d("button", { class: x("searchcraft-button"), onClick: this.handleClick, type: "submit" }, this.isRequesting ? d("searchcraft-spinner-dark", null) : this.iconElement) : d("button", { class: x("searchcraft-button"), onClick: this.handleClick, type: "submit" }, this.iconPosition === "left" && this.iconElement, d("span", { class: x("buttonLabel", "searchcraft-button-label") }, this.label)));
2166
+ return d(Se, { key: "52b95f09f5da9f281b250285623e150c5d952dce" }, this.iconOnly ? d("button", { class: x("searchcraft-button"), onClick: this.handleClick, type: "submit" }, this.isRequesting ? d("searchcraft-spinner-dark", null) : this.iconElement) : d("button", { class: x("searchcraft-button"), onClick: this.handleClick, type: "submit" }, this.iconPosition === "left" && this.iconElement, d("span", { class: x("buttonLabel", "searchcraft-button-label") }, this.label)));
2021
2167
  }
2022
2168
  static get style() {
2023
- return Xs;
2169
+ return rn;
2024
2170
  }
2025
2171
  }, [0, "searchcraft-button", {
2026
2172
  iconElement: [16],
@@ -2029,39 +2175,109 @@ const x = Ot.exports, Ys = ":root{--sc-spinner-size:20px;--sc-input-border-radiu
2029
2175
  label: [1],
2030
2176
  isRequesting: [32]
2031
2177
  }]);
2032
- function Ut() {
2178
+ function Ie() {
2033
2179
  if (typeof customElements > "u")
2034
2180
  return;
2035
2181
  ["searchcraft-button"].forEach((t) => {
2036
2182
  switch (t) {
2037
2183
  case "searchcraft-button":
2038
- customElements.get(t) || customElements.define(t, jt);
2184
+ customElements.get(t) || customElements.define(t, Ut);
2039
2185
  break;
2040
2186
  }
2041
2187
  });
2042
2188
  }
2043
- const Zs = jt, en = Ut, tn = It, rn = Ae, sn = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}.filtersListContainer{width:100%}.filterCheckboxLabel{align-items:center;color:var(--sc-content-primary);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:14px;position:relative;-webkit-font-smoothing:antialiased}.filterCheckboxLabel input[type=checkbox]{align-items:center;appearance:none;background-color:var(--sc-surface-brand-secondary-hover);border:1px solid var(--sc-surface-disabled);border-radius:8px;cursor:pointer;display:flex;height:24px;justify-content:center;width:24px}.filterCheckboxLabel input[type=checkbox]:focus{outline:2px solid var(--sc-surface-brand-primary)}.filterCheckboxLabel input[type=checkbox]:checked{background-color:var(--sc-surface-brand-primary);position:relative}.filterCheckboxLabel input[type=checkbox]:checked+.checkContainer{display:block}.filterCheckboxLabel input[type=checkbox]:checked+.dashContainer{display:block}.childFilterCheckboxLabel{align-items:center;color:var(--sc-content-primary);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:12px;margin-left:24px;position:relative}.childFilterCheckboxLabel input[type=checkbox]{align-items:center;appearance:none;background-color:var(--sc-surface-brand-secondary-hover);border:1px solid var(--sc-surface-disabled);border-radius:8px;cursor:pointer;display:flex;height:24px;justify-content:center;position:relative;width:24px;-webkit-font-smoothing:antialiased}.childFilterCheckboxLabel input[type=checkbox]:focus{outline:2px solid var(--sc-surface-brand-primary)}.childFilterCheckboxLabel input[type=checkbox]:checked{background-color:var(--sc-surface-brand-primary);position:relative}.childFilterCheckboxLabel input[type=checkbox]:checked+.checkContainer{display:block}.childFilterCheckboxLabel input[type=checkbox]:checked+.dashContainer{display:block}.checkContainer{display:none;height:16px;width:16px;position:absolute;top:9px;left:8px}.dashContainer{display:none;height:3px;width:14px;position:absolute;top:3px;left:9px}.searchcraft-facet-message{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);color:var(--sc-content-disabled);text-align:center}", nn = sn, Nt = /* @__PURE__ */ P(class extends A {
2189
+ const sn = Ut, nn = Ie, an = Lt, cn = he;
2190
+ function Ht(e, t) {
2191
+ const r = Object.assign({}, e);
2192
+ for (const s in t)
2193
+ t.hasOwnProperty(s) && (t[s] instanceof Object && e[s] instanceof Object ? r[s] = Ht(e[s], t[s]) : r[s] = t[s]);
2194
+ return r;
2195
+ }
2196
+ function on(e) {
2197
+ return e.filter((t, r, s) => !s.some((c, a) => a !== r && c.includes(t)));
2198
+ }
2199
+ function at(e) {
2200
+ const t = {}, r = (s) => {
2201
+ var c;
2202
+ t[s.path] = {
2203
+ count: s.count,
2204
+ path: s.path
2205
+ }, (c = s.children) === null || c === void 0 || c.forEach((a) => {
2206
+ r(a);
2207
+ });
2208
+ };
2209
+ return r(e), t;
2210
+ }
2211
+ function ln(e) {
2212
+ const t = {
2213
+ count: 0,
2214
+ path: "/",
2215
+ children: {}
2216
+ };
2217
+ return Object.keys(e).forEach((r) => {
2218
+ const s = e[r];
2219
+ if (s.path === "/")
2220
+ return;
2221
+ const c = s.path.substring(1).split("/");
2222
+ let a = t, n = "";
2223
+ c.forEach((i, u) => {
2224
+ const o = `${n}/${i}`;
2225
+ a.children[o] || (a.children[o] = {
2226
+ count: 0,
2227
+ path: o,
2228
+ children: {}
2229
+ }), u === c.length - 1 && (a.children[o].count = s.count), n = o, a = a.children[o];
2230
+ });
2231
+ }), t;
2232
+ }
2233
+ function qt(e) {
2234
+ const t = {
2235
+ count: e.count,
2236
+ path: e.path,
2237
+ children: []
2238
+ };
2239
+ return Object.keys(e.children).length > 0 && (t.children = Object.values(e.children).map((r) => qt(r))), t;
2240
+ }
2241
+ function un(e, t) {
2242
+ const r = Object.keys(e), s = Object.keys(t), c = new Set(s.filter((n) => n.split("/").length > 2).map((n) => n.substring(0, n.lastIndexOf("/"))));
2243
+ return Object.fromEntries(r.filter((n) => !c.has(n.substring(0, n.lastIndexOf("/")))).map((n) => [n, e[n]]));
2244
+ }
2245
+ function dn(e, t, r) {
2246
+ const s = t[e], c = r[e], a = {
2247
+ count: 0,
2248
+ path: "/",
2249
+ children: s
2250
+ }, n = {
2251
+ count: 0,
2252
+ path: "/",
2253
+ children: c
2254
+ }, i = at(a), u = at(n), o = un(i, u), l = Ht(o, u), f = ln(l), h = qt(f);
2255
+ return {
2256
+ [e]: h.children
2257
+ };
2258
+ }
2259
+ const fn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.filtersListContainer{width:100%}.filterCheckboxLabel{align-items:center;color:var(--sc-content-primary);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:14px;position:relative;-webkit-font-smoothing:antialiased}.filterCheckboxLabel input[type=checkbox]{align-items:center;appearance:none;background-color:var(--sc-surface-brand-secondary-hover);border:1px solid var(--sc-surface-disabled);border-radius:8px;cursor:pointer;display:flex;height:24px;justify-content:center;width:24px}.filterCheckboxLabel input[type=checkbox]:focus{outline:2px solid var(--sc-surface-brand-primary)}.filterCheckboxLabel input[type=checkbox]:checked{background-color:var(--sc-surface-brand-primary);position:relative}.filterCheckboxLabel input[type=checkbox]:checked+.checkContainer{display:block}.filterCheckboxLabel input[type=checkbox]:checked+.dashContainer{display:block}.childFilterCheckboxLabel{align-items:center;color:var(--sc-content-primary);display:flex;font-family:var(--sc-font-family);font-size:14px;font-weight:600;gap:12px;margin-left:24px;position:relative}.childFilterCheckboxLabel input[type=checkbox]{align-items:center;appearance:none;background-color:var(--sc-surface-brand-secondary-hover);border:1px solid var(--sc-surface-disabled);border-radius:8px;cursor:pointer;display:flex;height:24px;justify-content:center;position:relative;width:24px;-webkit-font-smoothing:antialiased}.childFilterCheckboxLabel input[type=checkbox]:focus{outline:2px solid var(--sc-surface-brand-primary)}.childFilterCheckboxLabel input[type=checkbox]:checked{background-color:var(--sc-surface-brand-primary);position:relative}.childFilterCheckboxLabel input[type=checkbox]:checked+.checkContainer{display:block}.childFilterCheckboxLabel input[type=checkbox]:checked+.dashContainer{display:block}.checkContainer{display:none;height:16px;width:16px;position:absolute;top:9px;left:8px}.dashContainer{display:none;height:3px;width:14px;position:absolute;top:3px;left:9px}.searchcraft-facet-message{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);color:var(--sc-content-disabled);text-align:center}", hn = fn, Nt = /* @__PURE__ */ k(class extends S {
2044
2260
  constructor() {
2045
- super(), this.__registerHost(), this.facetSelectionUpdated = M(this, "facetSelectionUpdated", 7), this.searchStore = z.getState(), this.formatLabel = (t) => {
2261
+ super(), this.__registerHost(), this.facetSelectionUpdated = M(this, "facetSelectionUpdated"), this.selectedPaths = {}, this.hasNewSearchTerm = !1, this.searchStore = v.getState(), this.formatLabel = (t) => {
2046
2262
  const r = t.path.replace(/^\//, ""), s = t.count;
2047
2263
  return `${r.replace(/-/g, " ").replace(/\b\w/g, (c) => c.toUpperCase())} (${s})`;
2048
2264
  }, this.formatSubLabel = (t, r) => {
2049
2265
  const c = t.path.substring(r.path.length).replace(/^\//, ""), a = t.count;
2050
2266
  return `${c.replace(/-/g, " ").replace(/\b\w/g, (n) => n.toUpperCase())} (${a})`;
2051
- }, this.fieldName = void 0, this.baseFacetRoot = void 0, this.facetRoot = void 0, this.selectedPaths = {}, this.lastTimeTaken = void 0, this.hasNewSearchTerm = !1, this.lastQuery = void 0, this.lastSearchMode = void 0, this.lastSortType = void 0, this.unsubscribe = void 0;
2267
+ };
2052
2268
  }
2053
2269
  handleStateUpdate(t) {
2054
2270
  var r, s;
2055
2271
  const c = (r = t.searchResults) === null || r === void 0 ? void 0 : r.data.facets, a = (s = t.searchResults) === null || s === void 0 ? void 0 : s.data.time_taken;
2056
2272
  if ((t.query !== this.lastQuery || t.searchMode !== this.lastSearchMode || t.sortType !== this.lastSortType) && (this.selectedPaths = {}, this.hasNewSearchTerm = !0), a !== this.lastTimeTaken && c) {
2057
2273
  this.facetRoot = void 0;
2058
- const n = c.find((o) => this.fieldName === Object.keys(o)[0]);
2059
- this.hasNewSearchTerm ? (this.baseFacetRoot = n, this.facetRoot = n, this.hasNewSearchTerm = !1) : this.baseFacetRoot && (this.facetRoot = qs(this.fieldName, this.baseFacetRoot, n));
2274
+ const n = c.find((i) => this.fieldName === Object.keys(i)[0]);
2275
+ this.hasNewSearchTerm ? (this.baseFacetRoot = n, this.facetRoot = n, this.hasNewSearchTerm = !1) : this.baseFacetRoot && (this.facetRoot = dn(this.fieldName, this.baseFacetRoot, n));
2060
2276
  }
2061
2277
  this.lastQuery = t.query, this.lastSearchMode = t.searchMode, this.lastSortType = t.sortType, this.lastTimeTaken = a;
2062
2278
  }
2063
2279
  connectedCallback() {
2064
- this.handleStateUpdate(this.searchStore), this.unsubscribe = z.subscribe((t) => {
2280
+ this.handleStateUpdate(this.searchStore), this.unsubscribe = v.subscribe((t) => {
2065
2281
  this.handleStateUpdate(t);
2066
2282
  });
2067
2283
  }
@@ -2074,26 +2290,26 @@ const Zs = jt, en = Ut, tn = It, rn = Ae, sn = ":root{--sc-spinner-size:20px;--s
2074
2290
  this.selectedPaths = Object.assign(Object.assign({}, this.selectedPaths), { [t]: !0 });
2075
2291
  else {
2076
2292
  const a = Object.keys(this.selectedPaths).filter((n) => !n.includes(t));
2077
- this.selectedPaths = a.reduce((n, o) => (n[o] = !0, n), {});
2293
+ this.selectedPaths = a.reduce((n, i) => (n[i] = !0, n), {});
2078
2294
  }
2079
- const s = Object.keys(this.selectedPaths).filter((a) => this.selectedPaths[a]), c = js(s);
2295
+ const s = Object.keys(this.selectedPaths).filter((a) => this.selectedPaths[a]), c = on(s);
2080
2296
  this.facetSelectionUpdated.emit({ paths: c });
2081
2297
  }
2082
2298
  render() {
2083
2299
  var t;
2084
2300
  const r = (t = this.facetRoot) === null || t === void 0 ? void 0 : t[this.fieldName];
2085
- return d("div", { key: "c7b6a2c7bbb48d0835745b4bcae43a283ade4139", class: x("filtersListContainer", "searchcraft-filters-list-container") }, !r && d("p", { key: "a682f57ff51fdcfec670744ef84930c90c9b9c20", class: "searchcraft-facet-message" }, "Enter a search to view facets."), r == null ? void 0 : r.map((s) => {
2301
+ return d("div", { key: "709834d9f86b75257ae0c67e9340c0fea4131035", class: x("filtersListContainer", "searchcraft-filters-list-container") }, !r && d("p", { key: "a6e2ced40fcc0762ae8ea835c9d6c573aceeb1f1", class: "searchcraft-facet-message" }, "Enter a search to view facets."), r == null ? void 0 : r.map((s) => {
2086
2302
  var c;
2087
2303
  const a = s.children ? (c = s.children) === null || c === void 0 ? void 0 : c.some((n) => this.selectedPaths[n.path]) : !1;
2088
- return d("div", { key: s.path, class: x("searchcraft-filters-list-item") }, d("label", { class: x("filterCheckboxLabel", "searchcraft-filters-list-checkbox-label") }, d("input", { checked: this.selectedPaths[s.path], onChange: (n) => this.handleCheckboxChange(s.path), type: "checkbox" }), a ? d("div", { class: x("dashContainer", "searchcraft-filter-list-dash-container") }, d("searchcraft-dash-icon", null)) : d("div", { class: x("checkContainer", "searchcraft-filter-list-check-container") }, d("searchcraft-check-icon", null)), this.formatLabel(s)), s.children && s.children.length > 0 && d($e, null, s.children.map((n) => d("label", { key: n.path, class: x("childFilterCheckboxLabel", "searchcraft-child-filter-checkbox-label"), style: {
2304
+ return d("div", { key: s.path, class: x("searchcraft-filters-list-item") }, d("label", { class: x("filterCheckboxLabel", "searchcraft-filters-list-checkbox-label") }, d("input", { checked: this.selectedPaths[s.path], onChange: (n) => this.handleCheckboxChange(s.path), type: "checkbox" }), a ? d("div", { class: x("dashContainer", "searchcraft-filter-list-dash-container") }, d("searchcraft-dash-icon", null)) : d("div", { class: x("checkContainer", "searchcraft-filter-list-check-container") }, d("searchcraft-check-icon", null)), this.formatLabel(s)), s.children && s.children.length > 0 && d(Se, null, s.children.map((n) => d("label", { key: n.path, class: x("childFilterCheckboxLabel", "searchcraft-child-filter-checkbox-label"), style: {
2089
2305
  display: this.selectedPaths[s.path] ? "flex" : "none"
2090
- } }, d("input", { checked: this.selectedPaths[n.path], onChange: (o) => {
2306
+ } }, d("input", { checked: this.selectedPaths[n.path], onChange: (i) => {
2091
2307
  this.handleCheckboxChange(n.path);
2092
2308
  }, type: "checkbox" }), d("div", { class: x("checkContainer", "searchcraft-filter-list-check-container") }, d("searchcraft-check-icon", null)), this.formatSubLabel(n, s)))));
2093
2309
  }));
2094
2310
  }
2095
2311
  static get style() {
2096
- return nn;
2312
+ return hn;
2097
2313
  }
2098
2314
  }, [0, "searchcraft-facet-list", {
2099
2315
  fieldName: [1, "field-name"],
@@ -2107,7 +2323,7 @@ const Zs = jt, en = Ut, tn = It, rn = Ae, sn = ":root{--sc-spinner-size:20px;--s
2107
2323
  lastSortType: [32],
2108
2324
  unsubscribe: [32]
2109
2325
  }]);
2110
- function qt() {
2326
+ function Vt() {
2111
2327
  if (typeof customElements > "u")
2112
2328
  return;
2113
2329
  ["searchcraft-facet-list"].forEach((t) => {
@@ -2118,9 +2334,9 @@ function qt() {
2118
2334
  }
2119
2335
  });
2120
2336
  }
2121
- const an = Nt, cn = qt, on = ':root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}.searchcraft-slider-container{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%}.searchcraft-slider-range-container{align-items:center;background-color:var(--sc-surface-disabled);border-radius:999px;display:flex;position:relative;height:4px;width:100%}.searchcraft-slider-range-container::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range-container .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-container .searchcraft-slider-active-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range-container .searchcraft-slider-active-range::-moz-range-track{pointer-events:none}.searchcraft-slider-range-container .searchcraft-slider-input{appearance:none;background:transparent;border-radius:2px;height:4px;margin:0;outline:none;pointer-events:none;position:absolute;width:100%;-webkit-appearance:none}.searchcraft-slider-range-container .searchcraft-slider-input::-webkit-slider-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px;-webkit-appearance:none}.searchcraft-slider-range-container .searchcraft-slider-input::-moz-range-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px}.searchcraft-slider-label-container{color:var(--sc-content-primary);display:flex;font-family:"Source Sans Pro", sans-serif;font-size:15px;font-weight:600;justify-content:space-between;margin-top:10px;width:100%}.searchcraft-slider-label{min-width:30px;text-align:center}', ln = on, Ht = /* @__PURE__ */ P(class extends A {
2337
+ const pn = Nt, gn = Vt, mn = ':root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-slider-container{align-items:center;display:flex;flex-direction:column;gap:10px;width:100%}.searchcraft-slider-range-container{align-items:center;background-color:var(--sc-surface-disabled);border-radius:999px;display:flex;position:relative;height:4px;width:100%}.searchcraft-slider-range-container::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range-container .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-container .searchcraft-slider-active-range::-webkit-slider-runnable-track{pointer-events:none}.searchcraft-slider-range-container .searchcraft-slider-active-range::-moz-range-track{pointer-events:none}.searchcraft-slider-range-container .searchcraft-slider-input{appearance:none;background:transparent;border-radius:2px;height:4px;margin:0;outline:none;pointer-events:none;position:absolute;width:100%;-webkit-appearance:none}.searchcraft-slider-range-container .searchcraft-slider-input::-webkit-slider-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px;-webkit-appearance:none}.searchcraft-slider-range-container .searchcraft-slider-input::-moz-range-thumb{background-color:var(--sc-surface-neutral-light);border-radius:50%;border:2px solid var(--sc-border-neutral);cursor:pointer;height:20px;pointer-events:all;width:20px}.searchcraft-slider-label-container{color:var(--sc-content-primary);display:flex;font-family:"Source Sans Pro", sans-serif;font-size:15px;font-weight:600;justify-content:space-between;margin-top:10px;width:100%}.searchcraft-slider-label{min-width:30px;text-align:center}', bn = mn, Wt = /* @__PURE__ */ k(class extends S {
2122
2338
  constructor() {
2123
- super(), this.__registerHost(), this.rangeChanged = M(this, "rangeChanged", 7), this.emitUpdate = async () => {
2339
+ super(), this.__registerHost(), this.rangeChanged = M(this, "rangeChanged"), this.max = 100, this.min = 0, this.granularity = Mt("month"), this.dataType = "number", this.endValue = this.max, this.startValue = this.min, this.lastFocusedHandle = "max", this.emitUpdate = async () => {
2124
2340
  this.rangeChanged.emit({
2125
2341
  startValue: this.startValue,
2126
2342
  endValue: this.endValue
@@ -2131,20 +2347,20 @@ const an = Nt, cn = qt, on = ':root{--sc-spinner-size:20px;--sc-input-border-rad
2131
2347
  }, this.handleEndValueChange = (t) => {
2132
2348
  const r = t.target, s = Number.parseInt(r.value, 10);
2133
2349
  this.lastFocusedHandle = "max", s >= this.startValue ? (this.endValue = s, this.emitUpdate()) : (this.endValue = this.startValue, r.value = `${this.startValue}`);
2134
- }, this.max = 100, this.min = 0, this.granularity = Dt("month"), this.dataType = "number", this.endValue = this.max, this.startValue = this.min, this.lastFocusedHandle = "max";
2350
+ };
2135
2351
  }
2136
2352
  componentDidLoad() {
2137
2353
  this.startValue = this.min, this.endValue = this.max;
2138
2354
  }
2139
2355
  render() {
2140
2356
  const t = this.min, r = this.max, s = (this.startValue - t) / (r - t) * 100, c = (this.endValue - t) / (r - t) * 100, a = this.dataType === "number" ? this.startValue : new Date(this.startValue).getFullYear(), n = this.dataType === "number" ? this.endValue : new Date(this.endValue).getFullYear();
2141
- return d("div", { key: "51de4996df052bf178590aeb4c56a67ec57c92e5", class: "searchcraft-slider-container" }, d("div", { key: "634bead69c3fbc462cda3dd65dd4ba6a398c6913", class: "searchcraft-slider-range-container" }, d("div", { key: "1b7a0b63ef208884f24b9f56b48a72bca320c71b", class: "searchcraft-slider-active-range", style: {
2357
+ return d("div", { key: "d03f03307d560048eff499afabb4171421c9b5cd", class: "searchcraft-slider-container" }, d("div", { key: "986b2fb47def38024b256cb093546ee7db9ccf5c", class: "searchcraft-slider-range-container" }, d("div", { key: "4c4f71c218f65acbfa25ec220cdeb581ef0e6c0d", class: "searchcraft-slider-active-range", style: {
2142
2358
  left: `${s}%`,
2143
2359
  width: `${c - s}%`
2144
- } }), d("input", { key: "29313d6909d5ff646d7f3810163f5f01fe09cc36", class: x("searchcraft-slider-input", "searchcraft-slider-input-min-handle"), max: this.max, min: this.min, onInput: this.handleStartValueChange.bind(this), step: this.granularity, style: { zIndex: this.lastFocusedHandle === "min" ? "2" : "1" }, type: "range", value: this.startValue }), d("input", { key: "1e95e93a028c7bc204e2f3894bfe8b77ac6c9d28", class: x("searchcraft-slider-input", "searchcraft-slider-input-max-handle"), max: this.max, min: this.min, onInput: this.handleEndValueChange.bind(this), step: this.granularity, style: { zIndex: this.lastFocusedHandle === "max" ? "2" : "1" }, type: "range", value: this.endValue })), d("div", { key: "c1560933a38f3153ac1dbaece041ef75df479dc4", class: "searchcraft-slider-label-container" }, d("span", { key: "638f72b8c081a324cc3ecb833163cd036a6ab90c", class: "searchcraft-slider-label" }, a), d("span", { key: "011968bdf897de9960fe2214b4adceee4d79b6d0", class: "searchcraft-slider-label" }, n)));
2360
+ } }), d("input", { key: "8968b1925f83480561a460b5f7da64499ec220c0", class: x("searchcraft-slider-input", "searchcraft-slider-input-min-handle"), max: this.max, min: this.min, onInput: this.handleStartValueChange.bind(this), step: this.granularity, style: { zIndex: this.lastFocusedHandle === "min" ? "2" : "1" }, type: "range", value: this.startValue }), d("input", { key: "1ec4b397eb5ca6834719b0c09811d2b11e70c6d0", class: x("searchcraft-slider-input", "searchcraft-slider-input-max-handle"), max: this.max, min: this.min, onInput: this.handleEndValueChange.bind(this), step: this.granularity, style: { zIndex: this.lastFocusedHandle === "max" ? "2" : "1" }, type: "range", value: this.endValue })), d("div", { key: "abc788f7398c68aefcd12468280ef07fcf2ae673", class: "searchcraft-slider-label-container" }, d("span", { key: "f09f772f95c21fc4dfcd58d6eed7ff6901d329b8", class: "searchcraft-slider-label" }, a), d("span", { key: "251cecce58bb785d9478e80edfe429a1e18ef274", class: "searchcraft-slider-label" }, n)));
2145
2361
  }
2146
2362
  static get style() {
2147
- return ln;
2363
+ return bn;
2148
2364
  }
2149
2365
  }, [0, "searchcraft-slider", {
2150
2366
  max: [2],
@@ -2155,25 +2371,25 @@ const an = Nt, cn = qt, on = ':root{--sc-spinner-size:20px;--sc-input-border-rad
2155
2371
  startValue: [32],
2156
2372
  lastFocusedHandle: [32]
2157
2373
  }]);
2158
- function Vt() {
2374
+ function Gt() {
2159
2375
  if (typeof customElements > "u")
2160
2376
  return;
2161
2377
  ["searchcraft-slider"].forEach((t) => {
2162
2378
  switch (t) {
2163
2379
  case "searchcraft-slider":
2164
- customElements.get(t) || customElements.define(t, Ht);
2380
+ customElements.get(t) || customElements.define(t, Wt);
2165
2381
  break;
2166
2382
  }
2167
2383
  });
2168
2384
  }
2169
- const un = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}.searchcraft-toggle-button-container{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.searchcraft-toggle-button-label{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);margin:0;color:var(--sc-content-neutral-primary)}.searchcraft-toggle-button-sub-label{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);margin:0;color:var(--sc-content-neutral-secondary)}.searchcraft-toggle-button-background{transition:background-color 0.2s;background:var(--sc-surface-disabled);border:none;border-radius:16px;cursor:pointer;height:26px;position:relative;width:44px;flex-shrink:0}.searchcraft-toggle-button-background.active{background:var(--sc-surface-brand-primary);box-shadow:0px 0px 0px 1px rgba(0, 0, 0, 0.05)}.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 0.3s ease;width:18px}.searchcraft-toggle-button-handle.active{transform:translateX(16px)}", dn = un, Wt = /* @__PURE__ */ P(class extends A {
2385
+ const yn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-toggle-button-container{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.searchcraft-toggle-button-label{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);margin:0;color:var(--sc-content-neutral-primary)}.searchcraft-toggle-button-sub-label{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);margin:0;color:var(--sc-content-neutral-secondary)}.searchcraft-toggle-button-background{transition:background-color 0.2s;background:var(--sc-surface-disabled);border:none;border-radius:16px;cursor:pointer;height:26px;position:relative;width:44px;flex-shrink:0}.searchcraft-toggle-button-background.active{background:var(--sc-surface-brand-primary);box-shadow:0px 0px 0px 1px rgba(0, 0, 0, 0.05)}.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 0.3s ease;width:18px}.searchcraft-toggle-button-handle.active{transform:translateX(16px)}", vn = yn, Yt = /* @__PURE__ */ k(class extends S {
2170
2386
  constructor() {
2171
- super(), this.__registerHost(), this.toggleUpdated = M(this, "toggleUpdated", 7), this.handleToggle = async () => {
2387
+ super(), this.__registerHost(), this.toggleUpdated = M(this, "toggleUpdated"), this.label = "Toggle", this.isActive = !1, this.handleToggle = async () => {
2172
2388
  this.isActive = !this.isActive, this.toggleUpdated.emit(this.isActive);
2173
- }, this.label = "Toggle", this.subLabel = void 0, this.isActive = !1, this.unsubscribe = void 0, this.lastQuery = void 0;
2389
+ };
2174
2390
  }
2175
2391
  connectedCallback() {
2176
- this.unsubscribe = z.subscribe((t) => {
2392
+ this.unsubscribe = v.subscribe((t) => {
2177
2393
  t.query !== this.lastQuery && t.query.trim().length === 0 && (this.isActive = !1), this.lastQuery = t.query;
2178
2394
  });
2179
2395
  }
@@ -2182,14 +2398,14 @@ const un = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input
2182
2398
  (t = this.unsubscribe) === null || t === void 0 || t.call(this);
2183
2399
  }
2184
2400
  render() {
2185
- return d("div", { key: "90a7816e1e02125939f3f05a9dbfd94a5f161959", class: "searchcraft-toggle-button-container" }, d("div", { key: "6a3e570ba3d00ccc315cd092d5b1c618c0b23ea2" }, d("p", { key: "41d1d0ab4557c856bb0ed12af8a4b0c81203d6d5", class: "searchcraft-toggle-button-label" }, this.label), this.subLabel && d("p", { key: "ec145b4f655bacec600ac9aa137662f7fed9b7d2", class: "searchcraft-toggle-button-sub-label" }, this.subLabel)), d("button", { key: "226599543806881f306630708eee24e922ff592e", class: x("searchcraft-toggle-button-background", {
2401
+ return d("div", { key: "607bbc1adc109ec918effb25c6b91052227a2f7b", class: "searchcraft-toggle-button-container" }, d("div", { key: "b452e1690c617020866f6bf3e591f62cc3fce111" }, d("p", { key: "1bd8fa345516e412ea57bdbeac37dc8e26f2feaa", class: "searchcraft-toggle-button-label" }, this.label), this.subLabel && d("p", { key: "fce324a14721bab5f6173838f677ecb290200c8f", class: "searchcraft-toggle-button-sub-label" }, this.subLabel)), d("button", { key: "7b293a3ef64da88f463e5e6e303dabcbc63589bd", class: x("searchcraft-toggle-button-background", {
2186
2402
  active: this.isActive
2187
- }), onClick: this.handleToggle, type: "button" }, d("div", { key: "b83e81e7820705952cfc8c911223e67dfbc0f98d", class: x("searchcraft-toggle-button-handle", {
2403
+ }), onClick: this.handleToggle, type: "button" }, d("div", { key: "6afd68afeea5bb15ce1bde486ac59f7a958f6752", class: x("searchcraft-toggle-button-handle", {
2188
2404
  active: this.isActive
2189
2405
  }) })));
2190
2406
  }
2191
2407
  static get style() {
2192
- return dn;
2408
+ return vn;
2193
2409
  }
2194
2410
  }, [0, "searchcraft-toggle-button", {
2195
2411
  label: [1],
@@ -2198,23 +2414,23 @@ const un = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input
2198
2414
  unsubscribe: [32],
2199
2415
  lastQuery: [32]
2200
2416
  }]);
2201
- function Gt() {
2417
+ function Kt() {
2202
2418
  if (typeof customElements > "u")
2203
2419
  return;
2204
2420
  ["searchcraft-toggle-button"].forEach((t) => {
2205
2421
  switch (t) {
2206
2422
  case "searchcraft-toggle-button":
2207
- customElements.get(t) || customElements.define(t, Wt);
2423
+ customElements.get(t) || customElements.define(t, Yt);
2208
2424
  break;
2209
2425
  }
2210
2426
  });
2211
2427
  }
2212
- const hn = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}.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);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-bold-font-size);font-weight:var(--sc-body-small-bold-font-weight);line-height:var(--sc-body-small-bold-line-height)}", fn = hn, Qt = /* @__PURE__ */ P(class extends A {
2428
+ const Fn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.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);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-bold-font-size);font-weight:var(--sc-body-small-bold-font-weight);line-height:var(--sc-body-small-bold-line-height)}", xn = Fn, Qt = /* @__PURE__ */ k(class extends S {
2213
2429
  constructor() {
2214
- super(), this.__registerHost(), this.searchStore = z.getState(), this.items = [], this.unsubscribe = void 0, this.lastQuery = void 0;
2430
+ super(), this.__registerHost(), this.items = [], this.searchStore = v.getState();
2215
2431
  }
2216
2432
  componentDidLoad() {
2217
- this.unsubscribe = z.subscribe((t) => {
2433
+ this.unsubscribe = v.subscribe((t) => {
2218
2434
  this.lastQuery = t.query || "";
2219
2435
  });
2220
2436
  }
@@ -2242,7 +2458,7 @@ const hn = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input
2242
2458
  }) : this.searchStore.removeFacetPathsForIndexField(t), this.searchStore.search();
2243
2459
  }
2244
2460
  handleExactMatchToggleUpdated(t) {
2245
- this.searchStore.setSearchMode(t ? "normal" : "fuzzy"), this.searchStore.search();
2461
+ this.searchStore.setSearchMode(t ? "exact" : "fuzzy"), this.searchStore.search();
2246
2462
  }
2247
2463
  handleMostRecentToggleUpdated(t) {
2248
2464
  this.searchStore.setSortType(t ? "desc" : "asc"), this.searchStore.search();
@@ -2251,10 +2467,10 @@ const hn = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input
2251
2467
  * Iterate through `items` and render them based on `type`
2252
2468
  */
2253
2469
  render() {
2254
- return d("div", { key: "45bcbe509465b8fe3720f3a535902906acfac2ea", class: "searchcraft-filter-panel" }, this.items.map((t) => {
2470
+ return d("div", { key: "43bb83b1616c00f46727c7baff2cbc013f88e111", class: "searchcraft-filter-panel" }, this.items.map((t) => {
2255
2471
  switch (t.type) {
2256
2472
  case "dateRange": {
2257
- const r = t, s = new Date(r.options.minDate).getTime(), c = new Date(r.options.maxDate).getTime(), a = Dt(r.options.granularity);
2473
+ const r = t, s = new Date(r.options.minDate).getTime(), c = new Date(r.options.maxDate).getTime(), a = Mt(r.options.granularity);
2258
2474
  return d("div", { class: "searchcraft-filter-panel-section" }, d("p", { class: "searchcraft-filter-panel-label" }, t.label), d("searchcraft-slider", { min: s, max: c, granularity: a, dataType: "date", onRangeChanged: (n) => {
2259
2475
  this.handleDateRangeChanged(r.fieldName, n.detail.startValue, n.detail.endValue);
2260
2476
  } }));
@@ -2287,14 +2503,14 @@ const hn = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input
2287
2503
  }));
2288
2504
  }
2289
2505
  static get style() {
2290
- return fn;
2506
+ return xn;
2291
2507
  }
2292
2508
  }, [0, "searchcraft-filter-panel", {
2293
2509
  items: [16],
2294
2510
  unsubscribe: [32],
2295
2511
  lastQuery: [32]
2296
2512
  }]);
2297
- function pn() {
2513
+ function En() {
2298
2514
  if (typeof customElements > "u")
2299
2515
  return;
2300
2516
  ["searchcraft-filter-panel", "searchcraft-facet-list", "searchcraft-slider", "searchcraft-toggle-button"].forEach((t) => {
@@ -2303,32 +2519,32 @@ function pn() {
2303
2519
  customElements.get(t) || customElements.define(t, Qt);
2304
2520
  break;
2305
2521
  case "searchcraft-facet-list":
2306
- customElements.get(t) || qt();
2522
+ customElements.get(t) || Vt();
2307
2523
  break;
2308
2524
  case "searchcraft-slider":
2309
- customElements.get(t) || Vt();
2525
+ customElements.get(t) || Gt();
2310
2526
  break;
2311
2527
  case "searchcraft-toggle-button":
2312
- customElements.get(t) || Gt();
2528
+ customElements.get(t) || Kt();
2313
2529
  break;
2314
2530
  }
2315
2531
  });
2316
2532
  }
2317
- const gn = Qt, bn = pn, mn = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}.searchcraft-input-label{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-bold-font-size);font-weight:var(--sc-body-small-bold-font-weight);line-height:var(--sc-body-small-bold-line-height);color:var(--sc-content-neutral-primary);margin-top:4px;margin-bottom:4px}", yn = mn, Jt = /* @__PURE__ */ P(class extends A {
2533
+ const wn = Qt, $n = En, Cn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-input-label{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-bold-font-size);font-weight:var(--sc-body-small-bold-font-weight);line-height:var(--sc-body-small-bold-line-height);color:var(--sc-content-neutral-primary);margin-top:4px;margin-bottom:4px}", Sn = Cn, Jt = /* @__PURE__ */ k(class extends S {
2318
2534
  constructor() {
2319
- super(), this.__registerHost(), this.inputLabelClassName = "", this.label = void 0;
2535
+ super(), this.__registerHost(), this.inputLabelClassName = "";
2320
2536
  }
2321
2537
  render() {
2322
- return this.label ? d("label", { class: x("searchcraft-input-label", this.inputLabelClassName), htmlFor: "searchcraft-input-id" }, this.label) : null;
2538
+ return d("label", { key: "4f913c1d9027ff781725a01e71e241cb5767eadb", class: x("searchcraft-input-label", this.inputLabelClassName), htmlFor: "searchcraft-input-id" }, this.label);
2323
2539
  }
2324
2540
  static get style() {
2325
- return yn;
2541
+ return Sn;
2326
2542
  }
2327
2543
  }, [0, "searchcraft-input-label", {
2328
2544
  inputLabelClassName: [1, "input-label-class-name"],
2329
2545
  label: [1]
2330
2546
  }]);
2331
- function Kt() {
2547
+ function Me() {
2332
2548
  if (typeof customElements > "u")
2333
2549
  return;
2334
2550
  ["searchcraft-input-label"].forEach((t) => {
@@ -2339,7 +2555,7 @@ function Kt() {
2339
2555
  }
2340
2556
  });
2341
2557
  }
2342
- const vn = "@searchcraft/javascript-sdk", Fn = "0.5.3", xn = "Searchcraft Javascript SDK", En = "Searchcraft", $n = "Apache-2.0", Sn = "dist/index.cjs.js", wn = "dist/index.js", Cn = "dist/types/index.d.ts", kn = "dist/collection/collection-manifest.json", Rn = "dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js", zn = {
2558
+ const kn = "@searchcraft/javascript-sdk", Rn = "0.7.0", _n = "Searchcraft Javascript SDK", zn = "Searchcraft", Tn = "Apache-2.0", Pn = "dist/index.cjs.js", An = "dist/index.js", Dn = "dist/types/index.d.ts", Bn = "dist/collection/collection-manifest.json", In = "dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js", Mn = {
2343
2559
  ".": {
2344
2560
  import: "./dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.esm.js",
2345
2561
  require: "./dist/searchcraft-javascript-sdk/searchcraft-javascript-sdk.cjs.js",
@@ -2358,58 +2574,59 @@ const vn = "@searchcraft/javascript-sdk", Fn = "0.5.3", xn = "Searchcraft Javasc
2358
2574
  import: "./dist/components/*",
2359
2575
  types: "./dist/components/*"
2360
2576
  }
2361
- }, Tn = {
2577
+ }, Ln = {
2362
2578
  type: "git",
2363
2579
  url: "https://bitbucket.org/madebychalk/searchcraft-javascript-sdks/"
2364
- }, _n = [
2580
+ }, On = [
2365
2581
  "dist/"
2366
- ], An = {
2582
+ ], jn = {
2367
2583
  build: "stencil build",
2368
2584
  dev: "stencil build --dev --watch",
2369
2585
  test: "stencil test --spec --e2e",
2370
2586
  "test.watch": "stencil test --spec --e2e --watchAll",
2371
2587
  generate: "stencil generate"
2372
- }, Pn = {
2588
+ }, Un = {
2589
+ "@stencil/vue-output-target": "^0.9.2",
2373
2590
  classnames: "^2.3.2"
2374
- }, Dn = {
2375
- "@searchcraft/core": "*",
2591
+ }, Hn = {
2592
+ "@searchcraft/core": "^0.7.0",
2376
2593
  "@searchcraft/javascript-sdk": "*",
2377
2594
  "@stencil/core": "^4.7.0",
2378
2595
  "@stencil/react-output-target": "^0.8.2",
2379
2596
  "@stencil/sass": "^3.0.12",
2380
2597
  "@types/node": "^16.18.11",
2381
2598
  zustand: "^5.0.1"
2382
- }, tt = {
2383
- name: vn,
2599
+ }, ct = {
2600
+ name: kn,
2384
2601
  private: !1,
2385
- version: Fn,
2386
- description: xn,
2387
- author: En,
2388
- license: $n,
2389
- main: Sn,
2390
- module: wn,
2391
- types: Cn,
2392
- collection: kn,
2602
+ version: Rn,
2603
+ description: _n,
2604
+ author: zn,
2605
+ license: Tn,
2606
+ main: Pn,
2607
+ module: An,
2608
+ types: Dn,
2609
+ collection: Bn,
2393
2610
  "collection:main": "dist/collection/index.js",
2394
- unpkg: Rn,
2395
- exports: zn,
2396
- repository: Tn,
2397
- files: _n,
2398
- scripts: An,
2399
- dependencies: Pn,
2400
- devDependencies: Dn
2401
- }, Mn = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}.searchcraft-input-wrapper{position:relative;display:flex}.searchcraft-input-grid{display:grid;gap:4px 8px}.searchcraft-input-grid-buttonLeft{grid-template-rows:repeat(3, auto);grid-template-columns:auto 1fr}.searchcraft-input-grid-buttonLeft .searchcraft-input-button-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-label-wrapper{grid-column:2/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-error-wrapper{grid-column:2/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonRight{grid-template-rows:repeat(3, auto);grid-template-columns:1fr auto}.searchcraft-input-grid-buttonRight .searchcraft-input-button-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-label-wrapper{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-error-wrapper{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonNone{grid-template-rows:repeat(3, auto);grid-template-columns:auto}.searchcraft-input-grid-buttonNone .searchcraft-input-button-wrapper{display:none}.searchcraft-input-grid-buttonNone .searchcraft-input-label-wrapper{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonNone .searchcraft-input-error-wrapper{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonNone .searchcraft-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);background-color:var(--sc-surface-neutral-secondary);border:none;border-radius:var(--sc-input-border-radius);color:var(--sc-content-neutral-primary);outline:none;padding-left:var(--sc-input-padding-left);padding-right:var(--sc-input-padding-right);padding-top:12px;padding-bottom:12px;flex:1}.searchcraft-input::placeholder{color:var(--sc-content-disabled)}.searchcraft-input:focus{outline:var(--sc-border-brand) solid 2px}.searchcraft-input:focus::placeholder{opacity:0}.searchcraft-input.error{color:var(--sc-content-danger);outline:var(--sc-border-danger) solid 2px}.searchcraft-input.error:focus{outline:var(--sc-border-danger) solid 2px}.searchcraft-input-search-icon-wrapper{align-items:center;justify-content:center;display:flex;position:absolute;pointer-events:none;bottom:0;left:0;top:0;width:var(--sc-input-padding-left)}.searchcraft-input-search-icon{pointer-events:none;width:var(--sc-input-search-icon-size);height:var(--sc-input-search-icon-size)}.searchcraft-input-clear-button{all:unset;align-items:center;justify-content:center;cursor:pointer;display:flex;position:absolute;border:none;outline:none;bottom:0;right:0;top:0;width:var(--sc-input-padding-right)}.searchcraft-input-clear-icon{width:var(--sc-input-clear-icon-size);height:var(--sc-input-clear-icon-size)}", Bn = Mn, Yt = /* @__PURE__ */ P(class extends A {
2611
+ unpkg: In,
2612
+ exports: Mn,
2613
+ repository: Ln,
2614
+ files: On,
2615
+ scripts: jn,
2616
+ dependencies: Un,
2617
+ devDependencies: Hn
2618
+ }, qn = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-input-grid{display:grid;gap:4px 8px}.searchcraft-input-grid-buttonLeft{grid-template-rows:repeat(3, auto);grid-template-columns:auto 1fr}.searchcraft-input-grid-buttonLeft .searchcraft-input-button-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-label-wrapper{grid-column:2/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-error-wrapper{grid-column:2/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonLeft .searchcraft-input-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonRight{grid-template-rows:repeat(3, auto);grid-template-columns:1fr auto}.searchcraft-input-grid-buttonRight .searchcraft-input-button-wrapper{grid-column:2/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-label-wrapper{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-error-wrapper{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonRight .searchcraft-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-grid-buttonNone{grid-template-rows:repeat(3, auto);grid-template-columns:auto}.searchcraft-input-grid-buttonNone .searchcraft-input-button-wrapper{display:none}.searchcraft-input-grid-buttonNone .searchcraft-input-label-wrapper{grid-column:1/span 1;grid-row:1/span 1}.searchcraft-input-grid-buttonNone .searchcraft-input-error-wrapper{grid-column:1/span 1;grid-row:3/span 1}.searchcraft-input-grid-buttonNone .searchcraft-input-wrapper{grid-column:1/span 1;grid-row:2/span 1}.searchcraft-input-wrapper{position:relative;display:flex}.searchcraft-input{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);background-color:var(--sc-surface-neutral-secondary);border-radius:var(--sc-input-border-radius);border:none;color:var(--sc-content-neutral-primary);outline:none;padding-left:var(--sc-input-padding-left);padding-right:var(--sc-input-padding-right);padding-top:12px;padding-bottom:12px;flex:1}.searchcraft-input::placeholder{color:var(--sc-content-disabled)}.searchcraft-input:focus{outline:var(--sc-border-brand) solid 2px}.searchcraft-input:focus::placeholder{opacity:0}.searchcraft-input.error{color:var(--sc-content-danger);outline:var(--sc-border-danger) solid 2px}.searchcraft-input.error:focus{outline:var(--sc-border-danger) solid 2px}.searchcraft-input-search-icon-wrapper{align-items:center;justify-content:center;display:flex;position:absolute;pointer-events:none;bottom:0;left:0;top:0;width:var(--sc-input-padding-left)}.searchcraft-input-search-icon{pointer-events:none;width:var(--sc-input-search-icon-size);height:var(--sc-input-search-icon-size)}.searchcraft-input-clear-button{all:unset;align-items:center;justify-content:center;cursor:pointer;display:flex;position:absolute;border:none;outline:none;bottom:0;right:0;top:0;width:var(--sc-input-padding-right)}.searchcraft-input-clear-icon{width:var(--sc-input-clear-icon-size);height:var(--sc-input-clear-icon-size)}", Nn = qn, Xt = /* @__PURE__ */ k(class extends S {
2402
2619
  constructor() {
2403
- super(), this.__registerHost(), this.inputCleared = M(this, "inputCleared", 7), this.noResultsReceived = M(this, "noResultsReceived", 7), this.querySubmit = M(this, "querySubmit", 7), this.inputFocus = M(this, "inputFocus", 7), this.inputBlur = M(this, "inputBlur", 7), this.debounceTimeout = null, this.searchStore = z.getState(), this.handleOnInput = (t) => {
2620
+ super(), this.__registerHost(), this.inputCleared = M(this, "inputCleared"), this.noResultsReceived = M(this, "noResultsReceived"), this.inputFocus = M(this, "inputFocus"), this.inputBlur = M(this, "inputBlur"), this.inputInit = M(this, "inputInit"), this.querySubmit = M(this, "querySubmit"), this.autoSearch = !0, this.buttonPlacement = "none", this.customStyles = {}, this.placeholderValue = "Enter Search", this.searchTerm = "", this.inputValue = this.searchTerm, this.error = !1, this.isSearchcraftInitialized = !1, this.searchStore = v.getState(), this.handleOnInput = (t) => {
2404
2621
  const r = t.target;
2405
2622
  if (this.inputValue = r.value, r.value.trim() === "") {
2406
- this.inputCleared.emit();
2623
+ this.inputCleared.emit(), this.searchTerm = "", this.searchStore.setQuery(""), this.searchStore.setSearchResults(null);
2407
2624
  return;
2408
2625
  }
2409
- this.autoSearch && (this.debounceDelay > 0 ? (this.debounceTimeout && clearTimeout(this.debounceTimeout), this.debounceTimeout = setTimeout(() => this.performSearch(r.value), this.debounceDelay)) : this.performSearch(r.value));
2626
+ this.autoSearch && this.performSearch(r.value);
2410
2627
  }, this.performSearch = async (t) => {
2411
- if (t !== z.getState().query) {
2412
- this.querySubmit.emit(t), this.searchTerm = t.trim(), this.error = !1, this.searchStore.setQuery(this.searchTerm);
2628
+ if (t !== v.getState().query) {
2629
+ this.searchTerm = t.trim(), this.error = !1, this.searchStore.setQuery(this.searchTerm), this.querySubmit.emit(this.searchTerm);
2413
2630
  try {
2414
2631
  await this.searchStore.search();
2415
2632
  } catch {
@@ -2417,18 +2634,18 @@ const vn = "@searchcraft/javascript-sdk", Fn = "0.5.3", xn = "Searchcraft Javasc
2417
2634
  }
2418
2635
  }
2419
2636
  }, this.handleClearInput = () => {
2420
- this.inputValue = "", this.debounceTimeout && clearTimeout(this.debounceTimeout), this.searchTerm = "", this.searchStore.setQuery(""), this.searchStore.setSearchResults(null), this.error = !1, this.inputCleared && this.inputCleared.emit();
2637
+ this.inputValue = "", this.searchTerm = "", this.searchStore.setQuery(""), this.searchStore.setSearchResults(null), this.error = !1, this.inputCleared && this.inputCleared.emit();
2421
2638
  }, this.handleFormSubmit = async (t) => {
2422
2639
  t.preventDefault(), await this.performSearch(this.searchTerm);
2423
- }, this.config = void 0, this.autoSearch = !0, this.buttonPlacement = "none", this.buttonLabel = void 0, this.inputLabel = void 0, this.customStyles = {}, this.placeholderValue = "Enter Search", this.searchTerm = "", this.debounceDelay = 0, this.inputValue = this.searchTerm, this.error = !1, this.isSearchcraftInitialized = !1;
2640
+ };
2424
2641
  }
2425
2642
  init() {
2426
2643
  if (this.config && !this.isSearchcraftInitialized) {
2427
- const t = new Ts(this.config, {
2428
- sdkName: tt.name,
2429
- sdkVersion: tt.version
2644
+ const t = new Ls(this.config, {
2645
+ sdkName: ct.name,
2646
+ sdkVersion: ct.version
2430
2647
  });
2431
- this.searchStore.initialize(t, !0), this.isSearchcraftInitialized = !0;
2648
+ this.searchStore.initialize(t, !0), this.isSearchcraftInitialized = !0, this.inputInit.emit();
2432
2649
  }
2433
2650
  }
2434
2651
  componentDidLoad() {
@@ -2438,14 +2655,16 @@ const vn = "@searchcraft/javascript-sdk", Fn = "0.5.3", xn = "Searchcraft Javasc
2438
2655
  this.init();
2439
2656
  }
2440
2657
  render() {
2441
- const t = Bs(this.customStyles), r = this.inputValue.length > 0, s = x("searchcraft-input-grid", {
2658
+ const t = Ws(this.customStyles), r = this.inputValue.length > 0, s = x("searchcraft-input-grid", {
2442
2659
  "searchcraft-input-grid-buttonLeft": this.buttonPlacement === "left",
2443
2660
  "searchcraft-input-grid-buttonRight": this.buttonPlacement === "right",
2444
2661
  "searchcraft-input-grid-buttonNone": this.buttonPlacement === "none"
2445
- });
2446
- return d("form", { key: "7f224a10ab80d70660c9db97be5d68830932570b", class: "searchcraft-input-form", onSubmit: this.handleFormSubmit }, d("div", { key: "6822a21a43e5be992b11ddb6c86370ddd68e1475", class: s }, d("div", { key: "6022989ca876ea46de048398a076bc43d5213554", class: "searchcraft-input-button-wrapper" }, d("searchcraft-button", { key: "d48b61729ef9a3f19049dfe751aefa22fdc85e9f", onButtonClick: this.handleFormSubmit, label: this.buttonLabel })), d("div", { key: "3465e467cbb965ad813b6c9c726173bb3fe828f2", class: "searchcraft-input-label-wrapper" }, d("searchcraft-input-label", { key: "1026b7834358c6673a72ef8352830c9b4681020f", label: this.inputLabel })), this.error && d("div", { key: "ff0d55cd88e1895f9b0bd4c0afc917127e76afa2", class: "searchcraft-input-error-wrapper" }, d("searchcraft-error-message", { key: "57fc160411f21f45617e1a3b8677fb4c6e96c0f0", errorMessage: "Please enter a search query." })), d("div", { key: "b2783bf86177d22d4abedb4420fdb2a1807527ef", class: "searchcraft-input-wrapper" }, d("input", { key: "e985da32be58ab3e200866e085b2acd25b54aa31", autoComplete: "off", class: "searchcraft-input", onFocus: () => this.inputFocus.emit(), onBlur: () => this.inputBlur.emit(), onInput: (c) => {
2447
- this.handleOnInput(c);
2448
- }, placeholder: this.placeholderValue, style: t, type: "text", value: this.inputValue }), d("div", { key: "d5277758ae26262f5f3b49e8763add412661e5cf", class: "searchcraft-input-search-icon-wrapper" }, d("svg", { key: "79792740ea1207fad40786f555c63c4a26ff3fe2", class: "searchcraft-input-search-icon", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "searchcraft-title" }, d("title", { key: "7a487bdf41babdafb802ebd79c34a6a5da300cd6", id: "searchcraft-title" }, "Searchcraft Search Icon Light"), d("path", { key: "27c442bf412aca373cbc982b3a35a00fe7bb82ed", 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: "#404040", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), r && d("button", { key: "4c4bc21e9e87f4245ac38d7af269aae35876b6b0", type: "button", class: "searchcraft-input-clear-button", onClick: this.handleClearInput }, d("svg", { key: "4b82e65987a8a8c296d2b9c279474c29607727e0", class: "searchcraft-input-clear-icon", viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "icon-title" }, d("title", { key: "9d64212798691a2f8c6c9c4f74ceca1d2fe39fd1", id: "icon-title" }, "Searchcraft Clear Input Icon Light"), d("path", { key: "4c6c5b33fbd9ac02661996bb56e0902094e9b140", 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: "black", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))))));
2662
+ }), a = {
2663
+ gap: this.inputLabel || this.error ? "4px 8px" : "0px 8px"
2664
+ };
2665
+ return d("form", { key: "d257962d56a583e66bdf8b55786d5dfbae231965", class: "searchcraft-input-form", onSubmit: this.handleFormSubmit }, d("div", { key: "d9a8467a4d76433bc473941bd4583d991ae38040", class: s, style: a }, d("div", { key: "a94eacc99593ed6a30006532c51cdd38c692c93f", class: "searchcraft-input-button-wrapper" }, d("searchcraft-button", { key: "43de9d2cd538bbdf2a2bbc9f5165bfb969943831", onButtonClick: this.handleFormSubmit, label: this.buttonLabel })), this.inputLabel && d("div", { key: "b3554f81577d4526023d8b67de6837386789e9f3", class: "searchcraft-input-label-wrapper" }, d("searchcraft-input-label", { key: "5cda67f38d0914dfe7e1ea71bee60b69524e9d5c", label: this.inputLabel })), this.error && d("div", { key: "22b82da9420159ebaf00fe3bb790d6b07341a79e", class: "searchcraft-input-error-wrapper" }, d("searchcraft-error-message", { key: "2cc5c322408b976a7043ef9640c812036468435d", errorMessage: "Something went wrong." })), d("div", { key: "f2741bd0d20604327fa4661c3213e48df7a58249", class: "searchcraft-input-wrapper" }, d("input", { key: "692822c6a38001ba4c71289b6b7fba13767742b5", autoComplete: "off", class: "searchcraft-input", onFocus: () => this.inputFocus.emit(), onBlur: () => this.inputBlur.emit(), onInput: (n) => {
2666
+ this.handleOnInput(n);
2667
+ }, placeholder: this.placeholderValue, style: t, type: "text", value: this.inputValue }), d("div", { key: "58af613c048e7c072e4a976f71ea1bd7b3632a62", class: "searchcraft-input-search-icon-wrapper" }, d("svg", { key: "e6cf67405b45703ca7ddaf46a59adbf5ff926f0e", class: "searchcraft-input-search-icon", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "searchcraft-title" }, d("title", { key: "fa510c85900d9a716076ba79866f5bbe4f1a20ed", id: "searchcraft-title" }, "Searchcraft Search Icon Light"), d("path", { key: "ac9d166c19e6644adcbc00fe665e17fcf5449b73", 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: "#404040", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))), r && d("button", { key: "992cf037b6b75200c64c21809915b5ce6f970f5c", type: "button", class: "searchcraft-input-clear-button", onClick: this.handleClearInput }, d("svg", { key: "f09a5f2c1007cc11d89b2df06ec189d923bc634f", class: "searchcraft-input-clear-icon", viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": "icon-title" }, d("title", { key: "92bd5162ae636aaf6c8051959ff16cd26ee98660", id: "icon-title" }, "Searchcraft Clear Input Icon Light"), d("path", { key: "9b5a8a4113a3162035d48895f0facf6f6045f266", 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: "black", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }))))));
2449
2668
  }
2450
2669
  static get watchers() {
2451
2670
  return {
@@ -2453,7 +2672,7 @@ const vn = "@searchcraft/javascript-sdk", Fn = "0.5.3", xn = "Searchcraft Javasc
2453
2672
  };
2454
2673
  }
2455
2674
  static get style() {
2456
- return Bn;
2675
+ return Nn;
2457
2676
  }
2458
2677
  }, [0, "searchcraft-input-form", {
2459
2678
  config: [16],
@@ -2464,39 +2683,308 @@ const vn = "@searchcraft/javascript-sdk", Fn = "0.5.3", xn = "Searchcraft Javasc
2464
2683
  customStyles: [1, "custom-styles"],
2465
2684
  placeholderValue: [1, "placeholder-value"],
2466
2685
  searchTerm: [1, "search-term"],
2467
- debounceDelay: [2, "debounce-delay"],
2468
2686
  inputValue: [32],
2469
2687
  error: [32],
2470
2688
  isSearchcraftInitialized: [32]
2471
2689
  }, void 0, {
2472
2690
  config: ["onConfigChange"]
2473
2691
  }]);
2474
- function In() {
2692
+ function Zt() {
2475
2693
  if (typeof customElements > "u")
2476
2694
  return;
2477
2695
  ["searchcraft-input-form", "searchcraft-button", "searchcraft-error-message", "searchcraft-input-label"].forEach((t) => {
2478
2696
  switch (t) {
2479
2697
  case "searchcraft-input-form":
2480
- customElements.get(t) || customElements.define(t, Yt);
2698
+ customElements.get(t) || customElements.define(t, Xt);
2481
2699
  break;
2482
2700
  case "searchcraft-button":
2483
- customElements.get(t) || Ut();
2701
+ customElements.get(t) || Ie();
2484
2702
  break;
2485
2703
  case "searchcraft-error-message":
2486
- customElements.get(t) || Ae();
2704
+ customElements.get(t) || he();
2487
2705
  break;
2488
2706
  case "searchcraft-input-label":
2489
- customElements.get(t) || Kt();
2707
+ customElements.get(t) || Me();
2708
+ break;
2709
+ }
2710
+ });
2711
+ }
2712
+ const Vn = Xt, Wn = Zt, Gn = Jt, Yn = Me, Kn = "", Qn = Kn, er = /* @__PURE__ */ k(class extends S {
2713
+ constructor() {
2714
+ super(), this.__registerHost();
2715
+ }
2716
+ handleOnClick() {
2717
+ v.getState().setPopoverVisibility(!0);
2718
+ }
2719
+ render() {
2720
+ return d("button", { key: "7885ca44b5ce619d572194d60c3b7e9d9f6666be", type: "button", onClick: this.handleOnClick.bind(this) }, d("slot", { key: "0a8dc506eadbc725e3ed4c7c6987e02dfcecc229" }));
2721
+ }
2722
+ static get style() {
2723
+ return Qn;
2724
+ }
2725
+ }, [4, "searchcraft-popover-button"]);
2726
+ function Jn() {
2727
+ if (typeof customElements > "u")
2728
+ return;
2729
+ ["searchcraft-popover-button"].forEach((t) => {
2730
+ switch (t) {
2731
+ case "searchcraft-popover-button":
2732
+ customElements.get(t) || customElements.define(t, er);
2733
+ break;
2734
+ }
2735
+ });
2736
+ }
2737
+ const Xn = er, Zn = Jn, ea = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-popover-list-item{all:unset;display:flex;flex-direction:row;cursor:pointer;gap:8px;padding-right:var(--sc-popover-list-item-padding-horizontal);padding-left:var(--sc-popover-list-item-padding-horizontal);padding-top:var(--sc-popover-list-item-padding-vertical);padding-bottom:var(--sc-popover-list-item-padding-vertical)}.searchcraft-popover-list-item:focus{background-color:var(--sc-surface-neutral-secondary-active);color:var(--sc-content-neutral-secondary)}.searchcraft-popover-list-item:hover{background-color:var(--sc-surface-neutral-secondary-hover);color:var(--sc-content-neutral-secondary)}.searchcraft-popover-list-item-title{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);margin:0;color:inherit}.searchcraft-popover-list-item-subtitle{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-small-font-size);font-weight:var(--sc-body-small-font-weight);line-height:var(--sc-body-small-line-height);margin:0;color:inherit}.searchcraft-popover-list-item-image-wrapper{width:var(--sc-popover-list-item-image-size);height:var(--sc-popover-list-item-image-size);display:flex;align-items:center;justify-content:center;flex-shrink:0}.searchcraft-popover-list-item-image{max-width:var(--sc-popover-list-item-image-size);max-height:var(--sc-popover-list-item-image-size)}.searchcraft-popover-list-item-info-wrapper{display:flex;flex-direction:column;gap:8px;justify-content:center}", ta = ea, ra = /* @__PURE__ */ k(class extends S {
2738
+ constructor() {
2739
+ super(), this.__registerHost();
2740
+ }
2741
+ componentDidLoad() {
2742
+ }
2743
+ connectedCallback() {
2744
+ }
2745
+ disconnectedCallback() {
2746
+ }
2747
+ handleButtonClick() {
2748
+ }
2749
+ render() {
2750
+ return d("a", { key: "b7a590e92994869477825dd17545e8d4e05d1d07", class: "searchcraft-popover-list-item", href: this.href }, this.imageSrc && d("div", { key: "129525e50ec17dce052f503af318b56e06c900ef", class: "searchcraft-popover-list-item-image-wrapper" }, d("img", { key: "4ba701f35cbf7e167e7edd63ba19e3576e620c26", alt: this.imageAlt, src: this.imageSrc, class: "searchcraft-popover-list-item-image" })), d("div", { key: "6a6ab09451f5d9d4e554dc1f1fcd57ec13adf2f2", class: "searchcraft-popover-list-item-info-wrapper" }, d("p", { key: "476fdefff6cb35167fb00f24cdf03b9f8d826ba5", class: "searchcraft-popover-list-item-title" }, this.titleContent), d("p", { key: "b43fd584bfcc8efc7d50d7220b649fafc8bba244", class: "searchcraft-popover-list-item-subtitle" }, this.subtitleContent)));
2751
+ }
2752
+ static get style() {
2753
+ return ta;
2754
+ }
2755
+ }, [0, "searchcraft-popover-list-item", {
2756
+ titleContent: [1, "title-content"],
2757
+ subtitleContent: [1, "subtitle-content"],
2758
+ imageSrc: [1, "image-src"],
2759
+ imageAlt: [1, "image-alt"],
2760
+ href: [1],
2761
+ documentPosition: [2, "document-position"]
2762
+ }]);
2763
+ function tr() {
2764
+ if (typeof customElements > "u")
2765
+ return;
2766
+ ["searchcraft-popover-list-item"].forEach((t) => {
2767
+ switch (t) {
2768
+ case "searchcraft-popover-list-item":
2769
+ customElements.get(t) || customElements.define(t, ra);
2770
+ break;
2771
+ }
2772
+ });
2773
+ }
2774
+ const sa = "", na = sa, aa = /* @__PURE__ */ k(class extends S {
2775
+ constructor() {
2776
+ super(), this.__registerHost();
2777
+ }
2778
+ renderDocument(t, r) {
2779
+ const s = D(t, this.popoverResultMappings.title), c = D(t, this.popoverResultMappings.subtitle), a = D(t, this.popoverResultMappings.href), n = D(t, this.popoverResultMappings.imageSource), i = D(t, this.popoverResultMappings.imageAlt);
2780
+ return d("searchcraft-popover-list-item", { key: `${t.document_id}-${r}`, "title-content": s, "subtitle-content": c, "image-src": n, "image-alt": i, href: a, "document-position": r });
2781
+ }
2782
+ render() {
2783
+ var t;
2784
+ return d("div", { key: "6e9017370d7079412d6d31fb439be599d689c9c2", class: "searchcraft-popover-list-view" }, (t = this.documents) === null || t === void 0 ? void 0 : t.map((r, s) => this.renderDocument(r, s)));
2785
+ }
2786
+ static get style() {
2787
+ return na;
2788
+ }
2789
+ }, [0, "searchcraft-popover-list-view", {
2790
+ popoverResultMappings: [16],
2791
+ documents: [16]
2792
+ }]);
2793
+ function ca() {
2794
+ if (typeof customElements > "u")
2795
+ return;
2796
+ ["searchcraft-popover-list-view", "searchcraft-popover-list-item"].forEach((t) => {
2797
+ switch (t) {
2798
+ case "searchcraft-popover-list-view":
2799
+ customElements.get(t) || customElements.define(t, aa);
2800
+ break;
2801
+ case "searchcraft-popover-list-item":
2802
+ customElements.get(t) || tr();
2803
+ break;
2804
+ }
2805
+ });
2806
+ }
2807
+ const ia = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-popover-form{display:flex;flex-direction:column;flex:1}.searchcraft-popover-form .searchcraft-popover-form-input-wrapper{padding:12px;background-color:var(--sc-surface-neutral-secondary);display:flex;flex-direction:row;gap:4px}.searchcraft-popover-form .searchcraft-popover-form-input-wrapper>searchcraft-input-form{flex:1}.searchcraft-popover-form .searchcraft-popover-form-cancel-button{font-family:var(--sc-font-family);-webkit-font-smoothing:antialiased;font-size:var(--sc-body-font-size);font-weight:var(--sc-body-font-weight);line-height:var(--sc-body-line-height);border:0;outline:0;padding:0;flex-shrink:0;background:none;cursor:pointer;padding-left:12px;padding-right:12px;border-radius:calc(var(--sc-popover-form-border-radius) * 0.8)}.searchcraft-popover-form .searchcraft-popover-form-cancel-button:hover{background-color:var(--sc-surface-brand-secondary-hover)}.searchcraft-popover-form .searchcraft-popover-form-cancel-button:focus{background-color:var(--sc-surface-brand-secondary-active)}.searchcraft-popover-form-inline .searchcraft-input{border-top-left-radius:var(--sc-popover-form-border-radius);border-top-right-radius:var(--sc-popover-form-border-radius);border-bottom-left-radius:var(--sc-popover-form-border-radius);border-bottom-right-radius:var(--sc-popover-form-border-radius);border:none;outline:none}.searchcraft-popover-form-inline.searchcraft-popover-form-active .searchcraft-input{border-top-left-radius:var(--sc-popover-form-border-radius);border-top-right-radius:var(--sc-popover-form-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.searchcraft-popover-form-inline .searchcraft-popover-inline-wrapper-outer{position:relative}.searchcraft-popover-form-inline .searchcraft-popover-inline-wrapper-inner{position:absolute;height:var(--sc-popover-list-view-height);z-index:1000;width:100%}.searchcraft-popover-form-inline .searchcraft-popover-list-view{display:flex;flex-direction:column;overflow:auto;background-color:var(--sc-surface-neutral-secondary);border-bottom-left-radius:var(--sc-popover-form-border-radius);border-bottom-right-radius:var(--sc-popover-form-border-radius);max-height:var(--sc-popover-list-view-height)}.searchcraft-popover-form-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:flex-start;justify-content:center;padding:0;background-color:var(--sc-surface-neutral-secondary)}@media (min-width: 576px){.searchcraft-popover-form-modal{padding:16px;background-color:transparent}}.searchcraft-popover-form-modal .searchcraft-input{border-radius:calc(var(--sc-popover-form-border-radius) * 0.8);outline-width:1px;outline-color:var(--sc-border-neutral)}.searchcraft-popover-form-modal .searchcraft-popover-form-modal-backdrop{position:absolute;inset:0;background-color:rgba(0, 0, 0, 0.5);display:none}@media (min-width: 576px){.searchcraft-popover-form-modal .searchcraft-popover-form-modal-backdrop{display:block}}.searchcraft-popover-form-modal .searchcraft-popover-form-modal-inner{position:absolute;inset:0;z-index:1002;margin-top:0px;display:flex;border-radius:var(--sc-popover-form-border-radius);overflow:hidden}@media (min-width: 576px){.searchcraft-popover-form-modal .searchcraft-popover-form-modal-inner{inset:auto;position:relative;width:100%;margin-top:100px;max-width:var(--sc-popover-modal-max-width)}}.searchcraft-popover-form-modal .searchcraft-popover-list-view{display:flex;flex-direction:column;overflow:auto;background-color:var(--sc-surface-neutral-secondary);border-bottom-left-radius:0;border-bottom-right-radius:0}@media (min-width: 576px){.searchcraft-popover-form-modal .searchcraft-popover-list-view{max-height:var(--sc-popover-list-view-height)}}.searchcraft-popover-form-modal searchcraft-popover-list-view{overflow:scroll}@media (min-width: 576px){.searchcraft-popover-form-modal searchcraft-popover-list-view{overflow:auto}}.searchcraft-popover-form-fullscreen{position:fixed;inset:0;z-index:1000;background-color:var(--sc-surface-neutral-secondary)}.searchcraft-popover-form-fullscreen .searchcraft-popover-form{position:absolute;inset:0}.searchcraft-popover-form-fullscreen .searchcraft-input{border-radius:calc(var(--sc-popover-form-border-radius) * 0.8);outline-width:1px;outline-color:var(--sc-border-neutral)}.searchcraft-popover-form-fullscreen searchcraft-popover-list-view{overflow:scroll}", oa = ia, rr = /* @__PURE__ */ k(class extends S {
2808
+ constructor() {
2809
+ super(), this.__registerHost(), this.type = "inline", this.hotkey = "k", this.hotkeyModifier = "meta", this.isPopoverVisibleInState = !1, this.isFocused = !1, this.breakpointSm = 576, this.breakpointMd = 768, this.breakpointLg = 992, this.handleDocumentClick = (t) => {
2810
+ this.hostElement.contains(t.target) || (this.isFocused = !1);
2811
+ }, this.handleDocumentKeyDown = (t) => {
2812
+ if (t.key === this.hotkey && this.handleHotkeyPressed(t), !!this.hostElement.contains(document.activeElement))
2813
+ switch (t.key) {
2814
+ case "ArrowDown":
2815
+ case "ArrowUp":
2816
+ t.preventDefault(), this.focusOnNextListItem(t.key);
2817
+ break;
2818
+ case "Escape":
2819
+ v.getState().setPopoverVisibility(!1);
2820
+ break;
2821
+ default:
2822
+ return;
2823
+ }
2824
+ }, this.handleInputInit = () => {
2825
+ const t = this.hostElement.querySelector(".searchcraft-input");
2826
+ t == null || t.focus();
2827
+ };
2828
+ }
2829
+ componentDidLoad() {
2830
+ const t = getComputedStyle(document.documentElement);
2831
+ this.breakpointSm = Number.parseFloat(t.getPropertyValue("--sc-breakpoint-sm").trim()), this.breakpointMd = Number.parseFloat(t.getPropertyValue("--sc-breakpoint-md").trim()), this.breakpointLg = Number.parseFloat(t.getPropertyValue("--sc-breakpoint-lg").trim()), this.isPopoverVisibleInState = v.getState().isPopoverVisible, document.addEventListener("click", this.handleDocumentClick), document.addEventListener("keydown", this.handleDocumentKeyDown), this.unsubscribe = v.subscribe((r) => {
2832
+ this.isPopoverVisibleInState !== r.isPopoverVisible && this.handlePopoverVisibilityChange(r.isPopoverVisible), this.searchResults = Object.assign({}, r.searchResults), this.searchTerm = r.query;
2833
+ });
2834
+ }
2835
+ disconnectedCallback() {
2836
+ var t;
2837
+ (t = this.unsubscribe) === null || t === void 0 || t.call(this), document.removeEventListener("click", this.handleDocumentClick), document.removeEventListener("keydown", this.handleDocumentKeyDown);
2838
+ }
2839
+ /**
2840
+ * Handles when popover visibility is changed in state
2841
+ */
2842
+ handlePopoverVisibilityChange(t) {
2843
+ this.isPopoverVisibleInState = t, document.body.style.overflow = t ? "hidden" : "auto";
2844
+ }
2845
+ /**
2846
+ * When popover is `inline` and the viewport is at the smallest breakpoint,
2847
+ * focusing on the input will open a modal version of the popover form.
2848
+ */
2849
+ handleInputFocus() {
2850
+ this.isFocused = !0, this.type === "inline" && window.visualViewport.width < this.breakpointSm && (v.getState().setPopoverVisibility(!0), this.modalElement || (this.modalElement = document.createElement("searchcraft-popover-form"), this.modalElement.config = this.config, this.modalElement.popoverResultMappings = this.popoverResultMappings, this.modalElement.setAttribute("type", "fullscreen"), document.body.appendChild(this.modalElement)));
2851
+ }
2852
+ handleModalBackdropClick(t) {
2853
+ v.getState().setPopoverVisibility(!1);
2854
+ }
2855
+ /**
2856
+ * When a hotkey is pressed, tests if the modifiers also match.
2857
+ * If modifiers match, toggles visibility of the popover modal.
2858
+ */
2859
+ handleHotkeyPressed(t) {
2860
+ if (t.ctrlKey && this.hotkeyModifier === "ctrl" || t.altKey && this.hotkeyModifier === "alt" || t.metaKey && this.hotkeyModifier === "meta")
2861
+ if (t.preventDefault(), this.type === "inline" && !this.isPopoverVisibleInState) {
2862
+ const r = this.hostElement.querySelector(".searchcraft-input");
2863
+ r == null || r.focus();
2864
+ } else
2865
+ v.getState().setPopoverVisibility(!this.isPopoverVisibleInState);
2866
+ }
2867
+ handleCancelButtonClick() {
2868
+ v.getState().setPopoverVisibility(!1);
2869
+ }
2870
+ /**
2871
+ * Moves focus to the next/previous list item in the list view. If you are at the top
2872
+ * of the list view, it moves focus back to the input.
2873
+ *
2874
+ * @param direction
2875
+ */
2876
+ focusOnNextListItem(t) {
2877
+ var r, s;
2878
+ const c = Array.from(document.querySelectorAll("a.searchcraft-popover-list-item")).filter((n) => !n.hasAttribute("disabled") && n.offsetParent !== null), a = c.indexOf(document.activeElement);
2879
+ if (t === "ArrowDown")
2880
+ (r = c[(a + 1) % c.length]) === null || r === void 0 || r.focus();
2881
+ else if (t === "ArrowUp")
2882
+ if (a >= 1)
2883
+ (s = c[a - 1]) === null || s === void 0 || s.focus();
2884
+ else {
2885
+ const n = document.querySelector(".searchcraft-input");
2886
+ n && (n.focus(), requestAnimationFrame(() => {
2887
+ n.selectionEnd = n.value.length, n.selectionStart = n.value.length;
2888
+ }));
2889
+ }
2890
+ }
2891
+ get hasResultsToShow() {
2892
+ var t, r, s, c, a;
2893
+ return ((r = (t = this.searchTerm) === null || t === void 0 ? void 0 : t.trim()) === null || r === void 0 ? void 0 : r.length) > 0 && ((a = (c = (s = this.searchResults) === null || s === void 0 ? void 0 : s.data) === null || c === void 0 ? void 0 : c.hits) === null || a === void 0 ? void 0 : a.length) > 0;
2894
+ }
2895
+ renderInlinePopover(t) {
2896
+ const r = this.hasResultsToShow && this.isFocused, s = x("searchcraft-popover-form searchcraft-popover-form-inline", {
2897
+ "searchcraft-popover-form-active": r
2898
+ });
2899
+ return d("div", { class: s }, d("searchcraft-input-form", { config: this.config, onInputFocus: this.handleInputFocus.bind(this) }), r && d("div", { class: "searchcraft-popover-inline-wrapper-outer" }, d("div", { class: "searchcraft-popover-inline-wrapper-inner" }, d("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, documents: t }))));
2900
+ }
2901
+ renderModalPopover(t) {
2902
+ if (this.isPopoverVisibleInState) {
2903
+ const r = x("searchcraft-popover-form", {
2904
+ "searchcraft-popover-form-active": this.hasResultsToShow
2905
+ });
2906
+ return d("div", { class: "searchcraft-popover-form-modal" }, d("div", { class: "searchcraft-popover-form-modal-backdrop", onClick: this.handleModalBackdropClick }), d("div", { class: "searchcraft-popover-form-modal-inner" }, d("div", { class: r }, d("div", { class: "searchcraft-popover-form-input-wrapper" }, d("searchcraft-input-form", { config: this.config, onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), d("button", { type: "button", class: "searchcraft-popover-form-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), this.hasResultsToShow && d("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, documents: t }))));
2907
+ }
2908
+ }
2909
+ renderFullscreenPopover(t) {
2910
+ if (this.isPopoverVisibleInState)
2911
+ return d("div", { class: "searchcraft-popover-form-fullscreen" }, d("div", { class: "searchcraft-popover-form" }, d("div", { class: "searchcraft-popover-form-input-wrapper" }, d("searchcraft-input-form", { config: this.config, onInputFocus: this.handleInputFocus.bind(this), onInputInit: this.handleInputInit.bind(this) }), d("button", { type: "button", class: "searchcraft-popover-form-cancel-button", onClick: this.handleCancelButtonClick.bind(this) }, "Cancel")), this.hasResultsToShow && d("searchcraft-popover-list-view", { popoverResultMappings: this.popoverResultMappings, documents: t })));
2912
+ }
2913
+ render() {
2914
+ var t, r, s;
2915
+ const c = (s = (r = (t = this.searchResults) === null || t === void 0 ? void 0 : t.data) === null || r === void 0 ? void 0 : r.hits) === null || s === void 0 ? void 0 : s.map((a, n) => {
2916
+ const { doc: i } = a;
2917
+ return i;
2918
+ });
2919
+ switch (this.type) {
2920
+ case "inline":
2921
+ return this.renderInlinePopover(c);
2922
+ case "modal":
2923
+ return this.renderModalPopover(c);
2924
+ case "fullscreen":
2925
+ return this.renderFullscreenPopover(c);
2926
+ }
2927
+ }
2928
+ get hostElement() {
2929
+ return this;
2930
+ }
2931
+ static get style() {
2932
+ return oa;
2933
+ }
2934
+ }, [0, "searchcraft-popover-form", {
2935
+ config: [16],
2936
+ type: [1],
2937
+ popoverResultMappings: [16],
2938
+ hotkey: [1],
2939
+ hotkeyModifier: [1, "hotkey-modifier"],
2940
+ isPopoverVisibleInState: [32],
2941
+ unsubscribe: [32],
2942
+ searchResults: [32],
2943
+ searchTerm: [32],
2944
+ isFocused: [32],
2945
+ breakpointSm: [32],
2946
+ breakpointMd: [32],
2947
+ breakpointLg: [32],
2948
+ modalElement: [32]
2949
+ }]);
2950
+ function sr() {
2951
+ if (typeof customElements > "u")
2952
+ return;
2953
+ ["searchcraft-popover-form", "searchcraft-button", "searchcraft-error-message", "searchcraft-input-form", "searchcraft-input-label", "searchcraft-popover-form", "searchcraft-popover-list-item", "searchcraft-popover-list-view"].forEach((t) => {
2954
+ switch (t) {
2955
+ case "searchcraft-popover-form":
2956
+ customElements.get(t) || customElements.define(t, rr);
2957
+ break;
2958
+ case "searchcraft-button":
2959
+ customElements.get(t) || Ie();
2960
+ break;
2961
+ case "searchcraft-error-message":
2962
+ customElements.get(t) || he();
2963
+ break;
2964
+ case "searchcraft-input-form":
2965
+ customElements.get(t) || Zt();
2966
+ break;
2967
+ case "searchcraft-input-label":
2968
+ customElements.get(t) || Me();
2969
+ break;
2970
+ case "searchcraft-popover-form":
2971
+ customElements.get(t) || sr();
2972
+ break;
2973
+ case "searchcraft-popover-list-item":
2974
+ customElements.get(t) || tr();
2975
+ break;
2976
+ case "searchcraft-popover-list-view":
2977
+ customElements.get(t) || ca();
2490
2978
  break;
2491
2979
  }
2492
2980
  });
2493
2981
  }
2494
- const Ln = Yt, On = In, jn = Jt, Un = Kt, Nn = ":root{--sc-spinner-size:20px;--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}.searchcraft-results-info-container{border-bottom:1px solid var(--sc-surface-disabled);display:flex;justify-content:flex-start}.searchcraft-results-info-content{color:var(--sc-content-primary);font-family:var(--sc-font-family);font-size:18px;font-weight:600;line-height:20px;margin:0px 0 8px}@media (max-width: 900px){.searchcraft-results-info-content{margin:0;margin-bottom:8px}}", qn = Nn, Xt = /* @__PURE__ */ P(class extends A {
2982
+ const la = rr, ua = sr, da = ":root{--sc-input-border-radius:8px;--sc-input-search-icon-size:20px;--sc-input-clear-icon-size:20px;--sc-input-padding-left:44px;--sc-input-padding-right:44px;--sc-image-border-radius:8px;--sc-popover-form-border-radius:8px;--sc-popover-list-view-height:400px;--sc-popover-list-item-image-size:60px;--sc-popover-list-item-padding-horizontal:8px;--sc-popover-list-item-padding-vertical:8px;--sc-popover-modal-max-width:570px}:root{--sc-surface-disabled:#D9D9D9;--sc-surface-neutral-primary:#FFFFFF;--sc-surface-neutral-secondary:#F3F3F3;--sc-surface-neutral-light:#FFFFFF;--sc-surface-neutral-primary-hover:#FAFAFA;--sc-surface-neutral-primary-active:#F7F7F7;--sc-surface-neutral-secondary-hover:#EDEDED;--sc-surface-neutral-secondary-active:#E6E6E6;--sc-surface-brand-primary:#000000;--sc-surface-brand-secondary:#E6E6E6;--sc-surface-brand-primary-hover:#2E2E2E;--sc-surface-brand-primary-active:#292929;--sc-surface-brand-secondary-hover:#EBEBEB;--sc-surface-brand-secondary-active:#E0E0E0;--sc-surface-success-primary:#008000;--sc-surface-success-secondary:#CCFFCC;--sc-surface-success-primary-hover:#009900;--sc-surface-success-primary-active:#006600;--sc-surface-success-secondary-hover:#E6FFE6;--sc-surface-success-secondary-active:#E6FFE6;--sc-surface-caution-primary:#CC6600;--sc-surface-caution-secondary:#FFD9B3;--sc-surface-caution-primary-hover:#E57300;--sc-surface-caution-primary-active:#B25A00;--sc-surface-caution-secondary-hover:#FFE5CC;--sc-surface-caution-secondary-active:#FFCC99;--sc-surface-danger-primary:#CC0000;--sc-surface-danger-secondary:#FFCCCC;--sc-surface-danger-primary-hover:#E50000;--sc-surface-danger-primary-active:#B30000;--sc-surface-danger-secondary-hover:#FFE7E7;--sc-surface-danger-secondary-active:#FFB3B3;--sc-content-brand:#000000;--sc-content-success:#008000;--sc-content-caution:#994D00;--sc-content-danger:#990000;--sc-content-disabled:#737373;--sc-content-neutral-primary:#292929;--sc-content-neutral-secondary:#404040;--sc-content-brand-on-primary:#FFFFFF;--sc-content-success-on-primary:#FFFFFF;--sc-content-caution-on-primary:#FFFFFF;--sc-content-danger-on-primary:#FFFFFF;--sc-content-disabled-on-disabled:#737373;--sc-border-neutral:rgba(0,0,0, 0.1);--sc-border-brand:#000000;--sc-border-success:#008000;--sc-border-caution:#CC6600;--sc-border-danger:#CC0000;--sc-border-disabled:#737373}:root{--sc-font-family:sans-serif;--sc-heading-1-font-size:32px;--sc-heading-1-line-height:36px;--sc-heading-1-font-weight:700;--sc-heading-2-font-size:29px;--sc-heading-2-line-height:32px;--sc-heading-2-font-weight:700;--sc-heading-3-font-size:26px;--sc-heading-3-line-height:28px;--sc-heading-3-font-weight:700;--sc-heading-4-font-size:23px;--sc-heading-4-line-height:24px;--sc-heading-4-font-weight:700;--sc-heading-5-font-size:20px;--sc-heading-5-line-height:24px;--sc-heading-5-font-weight:700;--sc-heading-6-font-size:10px;--sc-heading-6-line-height:12px;--sc-heading-6-font-weight:700;--sc-body-bold-font-size:16px;--sc-body-bold-line-height:20px;--sc-body-bold-font-weight:700;--sc-body-font-size:16px;--sc-body-line-height:20px;--sc-body-font-weight:400;--sc-body-small-bold-font-size:12px;--sc-body-small-bold-line-height:16px;--sc-body-small-bold-font-weight:700;--sc-body-small-font-size:12px;--sc-body-small-line-height:16px;--sc-body-small-font-weight:400}:root{--sc-breakpoint-sm:576px;--sc-breakpoint-md:768px;--sc-breakpoint-lg:992px}.searchcraft-results-info-container{border-bottom:1px solid var(--sc-surface-disabled);display:flex;justify-content:flex-start}.searchcraft-results-info-content{color:var(--sc-content-primary);font-family:var(--sc-font-family);font-size:18px;font-weight:600;line-height:20px;margin:0px 0 8px}@media (max-width: 768px){.searchcraft-results-info-content{margin:0;margin-bottom:8px}}", fa = da, nr = /* @__PURE__ */ k(class extends S {
2495
2983
  constructor() {
2496
2984
  super(), this.__registerHost(), this.isRequesting = !1, this.resultsCount = 0, this.responseTime = "", this.query = "";
2497
2985
  }
2498
2986
  connectedCallback() {
2499
- this.unsubscribe = z.subscribe((t) => {
2987
+ this.unsubscribe = v.subscribe((t) => {
2500
2988
  var r, s, c, a;
2501
2989
  this.isRequesting = t.isRequesting, this.resultsCount = ((s = (r = t.searchResults) === null || r === void 0 ? void 0 : r.data) === null || s === void 0 ? void 0 : s.count) || 0, this.responseTime = ((((a = (c = t.searchResults) === null || c === void 0 ? void 0 : c.data) === null || a === void 0 ? void 0 : a.time_taken) || 0) * 1e3).toFixed(2), this.query = t.query || "";
2502
2990
  });
@@ -2507,11 +2995,11 @@ const Ln = Yt, On = In, jn = Jt, Un = Kt, Nn = ":root{--sc-spinner-size:20px;--s
2507
2995
  render() {
2508
2996
  if (!this.query || this.resultsCount === 0)
2509
2997
  return null;
2510
- const t = Os(this.resultsCount);
2998
+ const t = Ns(this.resultsCount);
2511
2999
  return d("div", { class: "searchcraft-results-info-container" }, d("p", { class: "searchcraft-results-info-content" }, t, " results found in ", this.responseTime, "ms"));
2512
3000
  }
2513
3001
  static get style() {
2514
- return qn;
3002
+ return fa;
2515
3003
  }
2516
3004
  }, [0, "searchcraft-results-info", {
2517
3005
  isRequesting: [32],
@@ -2519,147 +3007,164 @@ const Ln = Yt, On = In, jn = Jt, Un = Kt, Nn = ":root{--sc-spinner-size:20px;--s
2519
3007
  responseTime: [32],
2520
3008
  query: [32]
2521
3009
  }]);
2522
- function Hn() {
3010
+ function ha() {
2523
3011
  if (typeof customElements > "u")
2524
3012
  return;
2525
3013
  ["searchcraft-results-info"].forEach((t) => {
2526
3014
  switch (t) {
2527
3015
  case "searchcraft-results-info":
2528
- customElements.get(t) || customElements.define(t, Xt);
3016
+ customElements.get(t) || customElements.define(t, nr);
2529
3017
  break;
2530
3018
  }
2531
3019
  });
2532
3020
  }
2533
- const Vn = Xt, Wn = Hn, Gn = Ht, Qn = Vt, Jn = Wt, Kn = Gt;
3021
+ const pa = nr, ga = ha, ma = Wt, ba = Gt, ya = Yt, va = Kt;
2534
3022
  /**
2535
3023
  * @license
2536
3024
  * Copyright 2018 Google LLC
2537
3025
  * SPDX-License-Identifier: BSD-3-Clause
2538
3026
  */
2539
- const Yn = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), rt = /* @__PURE__ */ new WeakMap(), st = (e, t, r, s, c) => {
3027
+ const Fa = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), it = /* @__PURE__ */ new WeakMap(), ot = (e, t, r, s, c) => {
2540
3028
  const a = c == null ? void 0 : c[t];
2541
- a === void 0 ? (e[t] = r, r == null && t in HTMLElement.prototype && e.removeAttribute(t)) : r !== s && ((n, o, u) => {
2542
- let i = rt.get(n);
2543
- i === void 0 && rt.set(n, i = /* @__PURE__ */ new Map());
2544
- let l = i.get(o);
2545
- u !== void 0 ? l === void 0 ? (i.set(o, l = { handleEvent: u }), n.addEventListener(o, l)) : l.handleEvent = u : l !== void 0 && (i.delete(o), n.removeEventListener(o, l));
3029
+ a === void 0 ? (e[t] = r, r == null && t in HTMLElement.prototype && e.removeAttribute(t)) : r !== s && ((n, i, u) => {
3030
+ let o = it.get(n);
3031
+ o === void 0 && it.set(n, o = /* @__PURE__ */ new Map());
3032
+ let l = o.get(i);
3033
+ u !== void 0 ? l === void 0 ? (o.set(i, l = { handleEvent: u }), n.addEventListener(i, l)) : l.handleEvent = u : l !== void 0 && (o.delete(i), n.removeEventListener(i, l));
2546
3034
  })(e, a, r);
2547
- }, Xn = ({ react: e, tagName: t, elementClass: r, events: s, displayName: c }) => {
2548
- const a = new Set(Object.keys(s ?? {})), n = e.forwardRef((o, u) => {
2549
- const i = e.useRef(/* @__PURE__ */ new Map()), l = e.useRef(null), h = {}, f = {};
2550
- for (const [g, b] of Object.entries(o)) Yn.has(g) ? h[g === "className" ? "class" : g] = b : a.has(g) || g in r.prototype ? f[g] = b : h[g] = b;
3035
+ }, xa = ({ react: e, tagName: t, elementClass: r, events: s, displayName: c }) => {
3036
+ const a = new Set(Object.keys(s ?? {})), n = e.forwardRef((i, u) => {
3037
+ const o = e.useRef(/* @__PURE__ */ new Map()), l = e.useRef(null), f = {}, h = {};
3038
+ for (const [p, m] of Object.entries(i)) Fa.has(p) ? f[p === "className" ? "class" : p] = m : a.has(p) || p in r.prototype ? h[p] = m : f[p] = m;
2551
3039
  return e.useLayoutEffect(() => {
2552
3040
  if (l.current === null) return;
2553
- const g = /* @__PURE__ */ new Map();
2554
- for (const b in f) st(l.current, b, o[b], i.current.get(b), s), i.current.delete(b), g.set(b, o[b]);
2555
- for (const [b, v] of i.current) st(l.current, b, void 0, v, s);
2556
- i.current = g;
3041
+ const p = /* @__PURE__ */ new Map();
3042
+ for (const m in h) ot(l.current, m, i[m], o.current.get(m), s), o.current.delete(m), p.set(m, i[m]);
3043
+ for (const [m, E] of o.current) ot(l.current, m, void 0, E, s);
3044
+ o.current = p;
2557
3045
  }), e.useLayoutEffect(() => {
2558
- var g;
2559
- (g = l.current) == null || g.removeAttribute("defer-hydration");
2560
- }, []), h.suppressHydrationWarning = !0, e.createElement(t, { ...h, ref: e.useCallback((g) => {
2561
- l.current = g, typeof u == "function" ? u(g) : u !== null && (u.current = g);
3046
+ var p;
3047
+ (p = l.current) == null || p.removeAttribute("defer-hydration");
3048
+ }, []), f.suppressHydrationWarning = !0, e.createElement(t, { ...f, ref: e.useCallback((p) => {
3049
+ l.current = p, typeof u == "function" ? u(p) : u !== null && (u.current = p);
2562
3050
  }, [u]) });
2563
3051
  });
2564
3052
  return n.displayName = c ?? r.name, n;
2565
- }, D = ({
3053
+ }, T = ({
2566
3054
  defineCustomElement: e,
2567
3055
  ...t
2568
- }) => (typeof e < "u" && e(), Xn(t)), Zn = /* @__PURE__ */ D({
3056
+ }) => (typeof e < "u" && e(), xa(t)), Ea = /* @__PURE__ */ T({
2569
3057
  tagName: "searchcraft-base-search-result",
2570
- elementClass: Ds,
3058
+ elementClass: Hs,
2571
3059
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2572
- react: _,
3060
+ react: z,
2573
3061
  events: {},
2574
- defineCustomElement: Ms
2575
- }), ea = /* @__PURE__ */ D({
3062
+ defineCustomElement: qs
3063
+ }), wa = /* @__PURE__ */ T({
2576
3064
  tagName: "searchcraft-base-search-results",
2577
- elementClass: Js,
3065
+ elementClass: Zs,
2578
3066
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2579
- react: _,
3067
+ react: z,
2580
3068
  events: { onNoResults: "noResults" },
2581
- defineCustomElement: Ks
2582
- }), ta = /* @__PURE__ */ D({
3069
+ defineCustomElement: en
3070
+ }), $a = /* @__PURE__ */ T({
2583
3071
  tagName: "searchcraft-button",
2584
- elementClass: Zs,
3072
+ elementClass: sn,
2585
3073
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2586
- react: _,
3074
+ react: z,
2587
3075
  events: { onButtonClick: "buttonClick" },
2588
- defineCustomElement: en
2589
- }), ra = /* @__PURE__ */ D({
3076
+ defineCustomElement: nn
3077
+ }), Ca = /* @__PURE__ */ T({
2590
3078
  tagName: "searchcraft-error-message",
2591
- elementClass: tn,
3079
+ elementClass: an,
2592
3080
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2593
- react: _,
3081
+ react: z,
2594
3082
  events: {},
2595
- defineCustomElement: rn
2596
- }), sa = /* @__PURE__ */ D({
3083
+ defineCustomElement: cn
3084
+ }), Sa = /* @__PURE__ */ T({
2597
3085
  tagName: "searchcraft-facet-list",
2598
- elementClass: an,
3086
+ elementClass: pn,
2599
3087
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2600
- react: _,
3088
+ react: z,
2601
3089
  events: { onFacetSelectionUpdated: "facetSelectionUpdated" },
2602
- defineCustomElement: cn
2603
- }), na = /* @__PURE__ */ D({
3090
+ defineCustomElement: gn
3091
+ }), ka = /* @__PURE__ */ T({
2604
3092
  tagName: "searchcraft-filter-panel",
2605
- elementClass: gn,
3093
+ elementClass: wn,
2606
3094
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2607
- react: _,
3095
+ react: z,
2608
3096
  events: {},
2609
- defineCustomElement: bn
2610
- }), aa = /* @__PURE__ */ D({
3097
+ defineCustomElement: $n
3098
+ }), Ra = /* @__PURE__ */ T({
2611
3099
  tagName: "searchcraft-input-form",
2612
- elementClass: Ln,
3100
+ elementClass: Vn,
2613
3101
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2614
- react: _,
3102
+ react: z,
2615
3103
  events: {
2616
3104
  onInputCleared: "inputCleared",
2617
3105
  onNoResultsReceived: "noResultsReceived",
2618
- onQuerySubmit: "querySubmit",
2619
3106
  onInputFocus: "inputFocus",
2620
- onInputBlur: "inputBlur"
3107
+ onInputBlur: "inputBlur",
3108
+ onInputInit: "inputInit",
3109
+ onQuerySubmit: "querySubmit"
2621
3110
  },
2622
- defineCustomElement: On
2623
- }), ca = /* @__PURE__ */ D({
3111
+ defineCustomElement: Wn
3112
+ }), _a = /* @__PURE__ */ T({
2624
3113
  tagName: "searchcraft-input-label",
2625
- elementClass: jn,
3114
+ elementClass: Gn,
2626
3115
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2627
- react: _,
3116
+ react: z,
2628
3117
  events: {},
2629
- defineCustomElement: Un
2630
- }), ia = /* @__PURE__ */ D({
3118
+ defineCustomElement: Yn
3119
+ }), za = /* @__PURE__ */ T({
3120
+ tagName: "searchcraft-popover-button",
3121
+ elementClass: Xn,
3122
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
3123
+ react: z,
3124
+ events: {},
3125
+ defineCustomElement: Zn
3126
+ }), Ta = /* @__PURE__ */ T({
3127
+ tagName: "searchcraft-popover-form",
3128
+ elementClass: la,
3129
+ // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
3130
+ react: z,
3131
+ events: {},
3132
+ defineCustomElement: ua
3133
+ }), Pa = /* @__PURE__ */ T({
2631
3134
  tagName: "searchcraft-results-info",
2632
- elementClass: Vn,
3135
+ elementClass: pa,
2633
3136
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2634
- react: _,
3137
+ react: z,
2635
3138
  events: {},
2636
- defineCustomElement: Wn
2637
- }), oa = /* @__PURE__ */ D({
3139
+ defineCustomElement: ga
3140
+ }), Aa = /* @__PURE__ */ T({
2638
3141
  tagName: "searchcraft-slider",
2639
- elementClass: Gn,
3142
+ elementClass: ma,
2640
3143
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2641
- react: _,
3144
+ react: z,
2642
3145
  events: { onRangeChanged: "rangeChanged" },
2643
- defineCustomElement: Qn
2644
- }), la = /* @__PURE__ */ D({
3146
+ defineCustomElement: ba
3147
+ }), Da = /* @__PURE__ */ T({
2645
3148
  tagName: "searchcraft-toggle-button",
2646
- elementClass: Jn,
3149
+ elementClass: ya,
2647
3150
  // @ts-ignore - React type of Stencil Output Target may differ from the React version used in the Nuxt.js project, this can be ignored.
2648
- react: _,
3151
+ react: z,
2649
3152
  events: { onToggleUpdated: "toggleUpdated" },
2650
- defineCustomElement: Kn
2651
- }), $a = (e) => /* @__PURE__ */ T(Zn, { ...e }), Sa = (e) => /* @__PURE__ */ T(ea, { ...e }), wa = (e) => /* @__PURE__ */ T(ta, { ...e }), Ca = (e) => /* @__PURE__ */ T(ra, { ...e }), ka = (e) => /* @__PURE__ */ T(sa, { ...e }), Ra = (e) => /* @__PURE__ */ T(na, { ...e }), za = (e) => /* @__PURE__ */ T(aa, { ...e }), Ta = (e) => /* @__PURE__ */ T(ca, { ...e }), _a = (e) => /* @__PURE__ */ T(ia, { ...e }), Aa = (e) => /* @__PURE__ */ T(oa, { ...e }), Pa = (e) => /* @__PURE__ */ T(la, { ...e });
3153
+ defineCustomElement: va
3154
+ }), Xa = (e) => /* @__PURE__ */ _(Ea, { ...e }), Za = (e) => /* @__PURE__ */ _(wa, { ...e }), ec = (e) => /* @__PURE__ */ _($a, { ...e }), tc = (e) => /* @__PURE__ */ _(Ca, { ...e }), rc = (e) => /* @__PURE__ */ _(Sa, { ...e }), sc = (e) => /* @__PURE__ */ _(ka, { ...e }), nc = (e) => /* @__PURE__ */ _(Ra, { ...e }), ac = (e) => /* @__PURE__ */ _(_a, { ...e }), cc = (e) => /* @__PURE__ */ _(za, { ...e }), ic = (e) => /* @__PURE__ */ _(Ta, { ...e }), oc = (e) => /* @__PURE__ */ _(Pa, { ...e }), lc = (e) => /* @__PURE__ */ _(Aa, { ...e }), uc = (e) => /* @__PURE__ */ _(Da, { ...e });
2652
3155
  export {
2653
- $a as SearchcraftBaseSearchResult,
2654
- Sa as SearchcraftBaseSearchResults,
2655
- wa as SearchcraftButton,
2656
- Ca as SearchcraftErrorMessage,
2657
- ka as SearchcraftFacetList,
2658
- Ra as SearchcraftFilterPanel,
2659
- za as SearchcraftInputForm,
2660
- Ta as SearchcraftInputLabel,
2661
- _a as SearchcraftResultsInfo,
2662
- Aa as SearchcraftSlider,
2663
- Pa as SearchcraftToggleButton
3156
+ Xa as SearchcraftBaseSearchResult,
3157
+ Za as SearchcraftBaseSearchResults,
3158
+ ec as SearchcraftButton,
3159
+ tc as SearchcraftErrorMessage,
3160
+ rc as SearchcraftFacetList,
3161
+ sc as SearchcraftFilterPanel,
3162
+ nc as SearchcraftInputForm,
3163
+ ac as SearchcraftInputLabel,
3164
+ cc as SearchcraftPopoverButton,
3165
+ ic as SearchcraftPopoverForm,
3166
+ oc as SearchcraftResultsInfo,
3167
+ lc as SearchcraftSlider,
3168
+ uc as SearchcraftToggleButton
2664
3169
  };
2665
3170
  //# sourceMappingURL=index.js.map