@searchcraft/vue-sdk 0.8.2 → 0.9.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.es.js CHANGED
@@ -1,772 +1,953 @@
1
- import { defineComponent as Ie, ref as Ae, getCurrentInstance as Fe, inject as De, h as je } from "vue";
2
- const B = "routerLink", oe = "navManager", Ne = "router", Ue = "aria", A = Symbol(), le = { default: A }, ie = (e) => (e == null ? void 0 : e.split(" ")) || [], ze = (e, t, s = []) => {
3
- var n;
4
- return [...Array.from(((n = e.value) == null ? void 0 : n.classList) || []), ...s].filter((r, i, l) => !t.has(r) && l.indexOf(r) === i);
5
- }, E = (e, t, s = [], n = [], r, i) => {
6
- const l = Ie((a, { attrs: o, slots: f, emit: $ }) => {
7
- var y;
8
- const c = Ae(), u = new Set(ie(o.class)), d = Fe(), g = ((y = d == null ? void 0 : d.appContext) == null ? void 0 : y.provides[oe]) ? De(oe) : void 0, S = (p) => {
9
- const { routerLink: I } = a;
10
- if (I !== A)
11
- if (g !== void 0) {
12
- p.preventDefault();
13
- let b = { event: p };
14
- for (const P in a) {
15
- const m = a[P];
16
- a.hasOwnProperty(P) && P.startsWith(Ne) && m !== A && (b[P] = m);
17
- }
18
- g.navigate(b);
19
- } else
20
- console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.");
21
- };
22
- return () => {
23
- a[r], ie(o.class).forEach((m) => {
24
- u.add(m);
25
- });
26
- const p = a.onClick, I = (m) => {
27
- p !== void 0 && p(m), m.defaultPrevented || S(m);
28
- };
29
- let b = {
30
- ref: c,
31
- class: ze(c, u),
32
- onClick: I
33
- };
34
- for (const m in a) {
35
- const re = a[m];
36
- (a.hasOwnProperty(m) && re !== A || m.startsWith(Ue)) && (b[m] = re);
37
- const ae = "on" + m.slice(0, 1).toUpperCase() + m.slice(1), Oe = o[ae];
38
- c.value && o.hasOwnProperty(ae) && "addEventListener" in c.value && c.value.addEventListener(m, Oe);
1
+ import { defineComponent as te, ref as ne, getCurrentInstance as re, inject as ae, h as oe } from "vue";
2
+ var ie = Object.defineProperty, se = (t, n, r) => n in t ? ie(t, n, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[n] = r, f = (t, n, r) => se(t, typeof n != "symbol" ? n + "" : n, r);
3
+ function w(t, n, r, a) {
4
+ return new (r || (r = Promise))(function(o, i) {
5
+ function e(c) {
6
+ try {
7
+ d(a.next(c));
8
+ } catch (s) {
9
+ i(s);
39
10
  }
40
- return B in a && a[B] !== A && (b = {
41
- ...b,
42
- href: a[B]
43
- }), je(e, b, f.default && f.default());
44
- };
11
+ }
12
+ function u(c) {
13
+ try {
14
+ d(a.throw(c));
15
+ } catch (s) {
16
+ i(s);
17
+ }
18
+ }
19
+ function d(c) {
20
+ var s;
21
+ c.done ? o(c.value) : (s = c.value, s instanceof r ? s : new r(function(h) {
22
+ h(s);
23
+ })).then(e, u);
24
+ }
25
+ d((a = a.apply(t, [])).next());
45
26
  });
46
- if (typeof l != "function") {
47
- let a = [], o = {};
48
- o.ROUTER_LINK_VALUE = le, s.forEach((f) => o[f] = le), a = n, l.name = e, l.emits = a, l.props = o;
27
+ }
28
+ function b(t, n) {
29
+ var r, a, o, i, e = { label: 0, sent: function() {
30
+ if (1 & o[0]) throw o[1];
31
+ return o[1];
32
+ }, trys: [], ops: [] };
33
+ return i = { next: u(0), throw: u(1), return: u(2) }, typeof Symbol == "function" && (i[Symbol.iterator] = function() {
34
+ return this;
35
+ }), i;
36
+ function u(d) {
37
+ return function(c) {
38
+ return function(s) {
39
+ if (r) throw new TypeError("Generator is already executing.");
40
+ for (; i && (i = 0, s[0] && (e = 0)), e; ) try {
41
+ if (r = 1, a && (o = 2 & s[0] ? a.return : s[0] ? a.throw || ((o = a.return) && o.call(a), 0) : a.next) && !(o = o.call(a, s[1])).done) return o;
42
+ switch (a = 0, o && (s = [2 & s[0], o.value]), s[0]) {
43
+ case 0:
44
+ case 1:
45
+ o = s;
46
+ break;
47
+ case 4:
48
+ return e.label++, { value: s[1], done: !1 };
49
+ case 5:
50
+ e.label++, a = s[1], s = [0];
51
+ continue;
52
+ case 7:
53
+ s = e.ops.pop(), e.trys.pop();
54
+ continue;
55
+ default:
56
+ if (o = e.trys, !((o = o.length > 0 && o[o.length - 1]) || s[0] !== 6 && s[0] !== 2)) {
57
+ e = 0;
58
+ continue;
59
+ }
60
+ if (s[0] === 3 && (!o || s[1] > o[0] && s[1] < o[3])) {
61
+ e.label = s[1];
62
+ break;
63
+ }
64
+ if (s[0] === 6 && e.label < o[1]) {
65
+ e.label = o[1], o = s;
66
+ break;
67
+ }
68
+ if (o && e.label < o[2]) {
69
+ e.label = o[2], e.ops.push(s);
70
+ break;
71
+ }
72
+ o[2] && e.ops.pop(), e.trys.pop();
73
+ continue;
74
+ }
75
+ s = n.call(t, e);
76
+ } catch (h) {
77
+ s = [6, h], a = 0;
78
+ } finally {
79
+ r = o = 0;
80
+ }
81
+ if (5 & s[0]) throw s[1];
82
+ return { value: s[0] ? s[1] : void 0, done: !0 };
83
+ }([d, c]);
84
+ };
49
85
  }
50
- return l;
51
- }, He = /* @__PURE__ */ E("searchcraft-base-search-results", void 0, [
52
- "customStylesForResults",
53
- "searchResultMappings",
54
- "resultImagePlacement",
55
- "buttonLabel",
56
- "buttonTarget",
57
- "buttonRel",
58
- "containerTarget",
59
- "containerRel",
60
- "noResults"
61
- ], [
62
- "noResults"
63
- ]), Me = /* @__PURE__ */ E("searchcraft-filter-panel", void 0, [
64
- "items"
65
- ]), Be = /* @__PURE__ */ E("searchcraft-input-form", void 0, [
66
- "config",
67
- "autoSearch",
68
- "buttonPlacement",
69
- "buttonLabel",
70
- "inputLabel",
71
- "customStyles",
72
- "placeholderValue",
73
- "searchTerm",
74
- "inputCleared",
75
- "noResultsReceived",
76
- "inputFocus",
77
- "inputBlur",
78
- "inputInit",
79
- "querySubmit"
80
- ], [
81
- "inputCleared",
82
- "noResultsReceived",
83
- "inputFocus",
84
- "inputBlur",
85
- "inputInit",
86
- "querySubmit"
87
- ]), We = /* @__PURE__ */ E("searchcraft-pagination", void 0, [
88
- "customStyles"
89
- ]), qe = /* @__PURE__ */ E("searchcraft-popover-button"), Ge = /* @__PURE__ */ E("searchcraft-popover-form", void 0, [
90
- "config",
91
- "type",
92
- "popoverResultMappings",
93
- "hotkey",
94
- "hotkeyModifier"
95
- ]), Xe = /* @__PURE__ */ E("searchcraft-results-info", void 0, [
96
- "customFormatter",
97
- "customStyles"
98
- ]), Ke = /* @__PURE__ */ E("searchcraft-search-results-per-page", void 0, [
99
- "increment",
100
- "customStyles"
101
- ]), Ye = /* @__PURE__ */ E("searchcraft-theme", void 0, [
102
- "theme",
103
- "customTheme"
104
- ]), Ut = He, zt = Me, Ht = Be, Mt = qe, Bt = Ge, Wt = Xe, qt = Ye, Gt = We, Xt = Ke, Qe = "searchcraft-javascript-sdk", w = (
105
- /* searchcraft-javascript-sdk */
106
- { 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", initializeNextTick: !1, invisiblePrehydration: !0, isDebug: !1, isDev: !1, isTesting: !1, lazyLoad: !0, lifecycle: !0, lifecycleDOMEvents: !1, member: !0, method: !1, mode: !1, modernPropertyDecls: !0, 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: !1, svg: !0, taskQueue: !0, transformTagName: !1, 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 }
107
- );
108
- var Je = Object.defineProperty, Ze = (e, t) => {
109
- for (var s in t)
110
- Je(e, s, { get: t[s], enumerable: !0 });
111
- }, Ve = "http://www.w3.org/2000/svg", et = "http://www.w3.org/1999/xhtml", ye = /* @__PURE__ */ new WeakMap(), k = (e) => ye.get(e), tt = (e, t) => {
112
- const s = {
113
- $flags$: 0,
114
- $hostElement$: e,
115
- $cmpMeta$: t,
116
- $instanceValues$: /* @__PURE__ */ new Map()
117
- };
118
- return s.$onReadyPromise$ = new Promise((r) => s.$onReadyResolve$ = r), e["s-p"] = [], e["s-rc"] = [], ye.set(e, s);
119
- }, ce = (e, t) => t in e, O = (e, t) => (0, console.error)(e, t), fe = /* @__PURE__ */ new Map(), st = (e, t, s) => {
120
- const n = e.$tagName$.replace(/-/g, "_"), r = e.$lazyBundleId$;
121
- if (!r)
122
- return;
123
- const i = fe.get(r);
124
- if (i)
125
- return i[n];
126
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
127
- return import(
128
- /* @vite-ignore */
129
- /* webpackInclude: /\.entry\.js$/ */
130
- /* webpackExclude: /\.system\.entry\.js$/ */
131
- /* webpackMode: "lazy" */
132
- `./${r}.entry.js`
133
- ).then(
134
- (l) => (fe.set(r, l), l[n]),
135
- (l) => {
136
- O(l, t.$hostElement$);
86
+ }
87
+ var S = { exclude: [] }, J = {}, ce = { timeout: "true" }, y = function(t, n) {
88
+ typeof window < "u" && (J[t] = n);
89
+ }, ue = function() {
90
+ return Object.fromEntries(Object.entries(J).filter(function(t) {
91
+ var n, r = t[0];
92
+ return !(!((n = S == null ? void 0 : S.exclude) === null || n === void 0) && n.includes(r));
93
+ }).map(function(t) {
94
+ return [t[0], (0, t[1])()];
95
+ }));
96
+ };
97
+ function I(t) {
98
+ return t ^= t >>> 16, t = Math.imul(t, 2246822507), t ^= t >>> 13, t = Math.imul(t, 3266489909), (t ^= t >>> 16) >>> 0;
99
+ }
100
+ var p = new Uint32Array([597399067, 2869860233, 951274213, 2716044179]);
101
+ function v(t, n) {
102
+ return t << n | t >>> 32 - n;
103
+ }
104
+ function D(t, n) {
105
+ var r;
106
+ if (n === void 0 && (n = 0), n = n ? 0 | n : 0, typeof t == "string" && (r = t, t = new TextEncoder().encode(r).buffer), !(t instanceof ArrayBuffer)) throw new TypeError("Expected key to be ArrayBuffer or string");
107
+ var a = new Uint32Array([n, n, n, n]);
108
+ (function(i, e) {
109
+ for (var u = i.byteLength / 16 | 0, d = new Uint32Array(i, 0, 4 * u), c = 0; c < u; c++) {
110
+ var s = d.subarray(4 * c, 4 * (c + 1));
111
+ s[0] = Math.imul(s[0], p[0]), s[0] = v(s[0], 15), s[0] = Math.imul(s[0], p[1]), e[0] = e[0] ^ s[0], e[0] = v(e[0], 19), e[0] = e[0] + e[1], e[0] = Math.imul(e[0], 5) + 1444728091, s[1] = Math.imul(s[1], p[1]), s[1] = v(s[1], 16), s[1] = Math.imul(s[1], p[2]), e[1] = e[1] ^ s[1], e[1] = v(e[1], 17), e[1] = e[1] + e[2], e[1] = Math.imul(e[1], 5) + 197830471, s[2] = Math.imul(s[2], p[2]), s[2] = v(s[2], 17), s[2] = Math.imul(s[2], p[3]), e[2] = e[2] ^ s[2], e[2] = v(e[2], 15), e[2] = e[2] + e[3], e[2] = Math.imul(e[2], 5) + 2530024501, s[3] = Math.imul(s[3], p[3]), s[3] = v(s[3], 18), s[3] = Math.imul(s[3], p[0]), e[3] = e[3] ^ s[3], e[3] = v(e[3], 13), e[3] = e[3] + e[0], e[3] = Math.imul(e[3], 5) + 850148119;
137
112
  }
138
- );
139
- }, nt = "{visibility:hidden}.hydrated{visibility:inherit}", rt = "slot-fb{display:contents}slot-fb[hidden]{display:none}", M = typeof window < "u" ? window : {}, T = M.document || { head: {} }, v = {
140
- $flags$: 0,
141
- $resourcesUrl$: "",
142
- jmp: (e) => e(),
143
- raf: (e) => requestAnimationFrame(e),
144
- ael: (e, t, s, n) => e.addEventListener(t, s, n),
145
- rel: (e, t, s, n) => e.removeEventListener(t, s, n),
146
- ce: (e, t) => new CustomEvent(e, t)
147
- }, at = w.shadowDom, ot = (e) => Promise.resolve(e), q = !1, ue = [], me = [], lt = (e, t) => (s) => {
148
- e.push(s), q || (q = !0, v.$flags$ & 4 ? Z(G) : v.raf(G));
149
- }, $e = (e) => {
150
- for (let t = 0; t < e.length; t++)
151
- try {
152
- e[t](performance.now());
153
- } catch (s) {
154
- O(s);
113
+ })(t, a), function(i, e) {
114
+ var u = i.byteLength / 16 | 0, d = i.byteLength % 16, c = new Uint32Array(4), s = new Uint8Array(i, 16 * u, d);
115
+ switch (d) {
116
+ case 15:
117
+ c[3] = c[3] ^ s[14] << 16;
118
+ case 14:
119
+ c[3] = c[3] ^ s[13] << 8;
120
+ case 13:
121
+ c[3] = c[3] ^ s[12] << 0, c[3] = Math.imul(c[3], p[3]), c[3] = v(c[3], 18), c[3] = Math.imul(c[3], p[0]), e[3] = e[3] ^ c[3];
122
+ case 12:
123
+ c[2] = c[2] ^ s[11] << 24;
124
+ case 11:
125
+ c[2] = c[2] ^ s[10] << 16;
126
+ case 10:
127
+ c[2] = c[2] ^ s[9] << 8;
128
+ case 9:
129
+ c[2] = c[2] ^ s[8] << 0, c[2] = Math.imul(c[2], p[2]), c[2] = v(c[2], 17), c[2] = Math.imul(c[2], p[3]), e[2] = e[2] ^ c[2];
130
+ case 8:
131
+ c[1] = c[1] ^ s[7] << 24;
132
+ case 7:
133
+ c[1] = c[1] ^ s[6] << 16;
134
+ case 6:
135
+ c[1] = c[1] ^ s[5] << 8;
136
+ case 5:
137
+ c[1] = c[1] ^ s[4] << 0, c[1] = Math.imul(c[1], p[1]), c[1] = v(c[1], 16), c[1] = Math.imul(c[1], p[2]), e[1] = e[1] ^ c[1];
138
+ case 4:
139
+ c[0] = c[0] ^ s[3] << 24;
140
+ case 3:
141
+ c[0] = c[0] ^ s[2] << 16;
142
+ case 2:
143
+ c[0] = c[0] ^ s[1] << 8;
144
+ case 1:
145
+ c[0] = c[0] ^ s[0] << 0, c[0] = Math.imul(c[0], p[0]), c[0] = v(c[0], 15), c[0] = Math.imul(c[0], p[1]), e[0] = e[0] ^ c[0];
155
146
  }
156
- e.length = 0;
157
- }, G = () => {
158
- $e(ue), $e(me), (q = ue.length > 0) && v.raf(G);
159
- }, Z = (e) => ot().then(e), it = /* @__PURE__ */ lt(me), V = (e) => (e = typeof e, e === "object" || e === "function");
160
- function ct(e) {
161
- var t, s, n;
162
- return (n = (s = (t = e.head) == null ? void 0 : t.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : s.getAttribute("content")) != null ? n : void 0;
147
+ }(t, a), function(i, e) {
148
+ e[0] = e[0] ^ i.byteLength, e[1] = e[1] ^ i.byteLength, e[2] = e[2] ^ i.byteLength, e[3] = e[3] ^ i.byteLength, e[0] = e[0] + e[1] | 0, e[0] = e[0] + e[2] | 0, e[0] = e[0] + e[3] | 0, e[1] = e[1] + e[0] | 0, e[2] = e[2] + e[0] | 0, e[3] = e[3] + e[0] | 0, e[0] = I(e[0]), e[1] = I(e[1]), e[2] = I(e[2]), e[3] = I(e[3]), e[0] = e[0] + e[1] | 0, e[0] = e[0] + e[2] | 0, e[0] = e[0] + e[3] | 0, e[1] = e[1] + e[0] | 0, e[2] = e[2] + e[0] | 0, e[3] = e[3] + e[0] | 0;
149
+ }(t, a);
150
+ var o = new Uint8Array(a.buffer);
151
+ return Array.from(o).map(function(i) {
152
+ return i.toString(16).padStart(2, "0");
153
+ }).join("");
163
154
  }
164
- var ft = {};
165
- Ze(ft, {
166
- err: () => Se,
167
- map: () => ut,
168
- ok: () => X,
169
- unwrap: () => $t,
170
- unwrapErr: () => dt
171
- });
172
- var X = (e) => ({
173
- isOk: !0,
174
- isErr: !1,
175
- value: e
176
- }), Se = (e) => ({
177
- isOk: !1,
178
- isErr: !0,
179
- value: e
180
- });
181
- function ut(e, t) {
182
- if (e.isOk) {
183
- const s = t(e.value);
184
- return s instanceof Promise ? s.then((n) => X(n)) : X(s);
185
- }
186
- if (e.isErr) {
187
- const s = e.value;
188
- return Se(s);
189
- }
190
- throw "should never get here";
155
+ function de(t, n) {
156
+ return new Promise(function(r) {
157
+ setTimeout(function() {
158
+ return r(n);
159
+ }, t);
160
+ });
191
161
  }
192
- var $t = (e) => {
193
- if (e.isOk)
194
- return e.value;
195
- throw e.value;
196
- }, dt = (e) => {
197
- if (e.isErr)
198
- return e.value;
199
- throw e.value;
200
- }, be = (e) => {
201
- const t = e.__childNodes || e.childNodes;
202
- e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && Re(t, e.tagName).forEach((s) => {
203
- var n;
204
- s.nodeType === 1 && s.tagName === "SLOT-FB" && ((n = ht(s, s["s-sn"], !1)) != null && n.length ? s.hidden = !0 : s.hidden = !1);
162
+ function le(t, n, r) {
163
+ return Promise.all(t.map(function(a) {
164
+ return Promise.race([a, de(n, r)]);
165
+ }));
166
+ }
167
+ function he() {
168
+ return w(this, void 0, void 0, function() {
169
+ var t, n, r, a, o;
170
+ return b(this, function(i) {
171
+ switch (i.label) {
172
+ case 0:
173
+ return i.trys.push([0, 2, , 3]), t = ue(), n = Object.keys(t), [4, le(Object.values(t), (S == null ? void 0 : S.timeout) || 1e3, ce)];
174
+ case 1:
175
+ return r = i.sent(), a = r.filter(function(e) {
176
+ return e !== void 0;
177
+ }), o = {}, a.forEach(function(e, u) {
178
+ o[n[u]] = e;
179
+ }), [2, X(o, S.exclude || [])];
180
+ case 2:
181
+ throw i.sent();
182
+ case 3:
183
+ return [2];
184
+ }
185
+ });
205
186
  });
206
- for (const s of t)
207
- s.nodeType === 1 && (s.__childNodes || s.childNodes).length && be(s);
208
- };
209
- function Re(e, t, s) {
210
- let n = 0, r = [], i;
211
- for (; n < e.length; n++)
212
- i = e[n], i["s-sr"] && i["s-hn"] === t && s === void 0 && r.push(i), r = [...r, ...Re(i.childNodes, t, s)];
213
- return r;
214
187
  }
215
- var ht = (e, t, s = !0) => {
216
- const n = [];
217
- for ((s && e["s-sr"] || !e["s-sr"]) && n.push(e); (e = e.nextSibling) && e["s-sn"] === t; )
218
- n.push(e);
219
- return n;
220
- }, de = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", L = (e, t = "") => () => {
221
- }, pt = (e, t) => () => {
222
- }, gt = (e, t, ...s) => {
223
- let n = null, r = null, i = null, l = !1, a = !1;
224
- const o = [], f = (c) => {
225
- for (let u = 0; u < c.length; u++)
226
- n = c[u], Array.isArray(n) ? f(n) : n != null && typeof n != "boolean" && ((l = !V(n)) && (n = String(n)), l && a ? o[o.length - 1].$text$ += n : o.push(l ? K(null, n) : n), a = l);
227
- };
228
- f(s);
229
- const $ = K(e, null);
230
- return $.$attrs$ = t, o.length > 0 && ($.$children$ = o), $.$key$ = r, $.$name$ = i, $;
231
- }, K = (e, t) => {
232
- const s = {
233
- $flags$: 0,
234
- $tag$: e,
235
- $text$: t,
236
- $elm$: null,
237
- $children$: null
188
+ function X(t, n) {
189
+ var r = {}, a = function(i) {
190
+ if (t.hasOwnProperty(i)) {
191
+ var e = t[i];
192
+ if (typeof e != "object" || Array.isArray(e)) n.includes(i) || (r[i] = e);
193
+ else {
194
+ var u = X(e, n.map(function(d) {
195
+ return d.startsWith(i + ".") ? d.slice(i.length + 1) : d;
196
+ }));
197
+ Object.keys(u).length > 0 && (r[i] = u);
198
+ }
199
+ }
238
200
  };
239
- return s.$attrs$ = null, s.$key$ = null, s.$name$ = null, s;
240
- }, vt = {}, yt = (e) => e && e.$tag$ === vt, Y = (e, t) => e != null && !V(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, mt = (e, t, s) => {
241
- const n = v.ce(t, s);
242
- return e.dispatchEvent(n), n;
243
- }, j = /* @__PURE__ */ new WeakMap(), he = (e, t, s, n, r, i) => {
244
- if (s !== n) {
245
- let l = ce(e, t), a = t.toLowerCase();
246
- if (t === "class") {
247
- const o = e.classList, f = pe(s);
248
- let $ = pe(n);
249
- e["s-si"] ? ($.push(e["s-si"]), f.forEach((c) => {
250
- c.startsWith(e["s-si"]) && $.push(c);
251
- }), $ = [...new Set($)], o.add(...$), delete e["s-si"]) : (o.remove(...f.filter((c) => c && !$.includes(c))), o.add(...$.filter((c) => c && !f.includes(c))));
252
- } else if (t === "style") {
253
- for (const o in s)
254
- (!n || n[o] == null) && (o.includes("-") ? e.style.removeProperty(o) : e.style[o] = "");
255
- for (const o in n)
256
- (!s || n[o] !== s[o]) && (o.includes("-") ? e.style.setProperty(o, n[o]) : e.style[o] = n[o]);
257
- } else if (t !== "key") if (!l && t[0] === "o" && t[1] === "n") {
258
- if (t[2] === "-" ? t = t.slice(3) : ce(M, a) ? t = a.slice(2) : t = a[2] + t.slice(3), s || n) {
259
- const o = t.endsWith(Pe);
260
- t = t.replace(bt, ""), s && v.rel(e, t, s, o), n && v.ael(e, t, n, o);
201
+ for (var o in t) a(o);
202
+ return r;
203
+ }
204
+ function fe(t) {
205
+ return w(this, void 0, void 0, function() {
206
+ var n, r;
207
+ return b(this, function(a) {
208
+ switch (a.label) {
209
+ case 0:
210
+ return a.trys.push([0, 2, , 3]), [4, he()];
211
+ case 1:
212
+ return n = a.sent(), r = D(JSON.stringify(n)), [2, r.toString()];
213
+ case 2:
214
+ throw a.sent();
215
+ case 3:
216
+ return [2];
261
217
  }
262
- } else {
263
- const o = V(n);
264
- if ((l || o && n !== null) && !r)
218
+ });
219
+ });
220
+ }
221
+ function me(t) {
222
+ for (var n = 0, r = 0; r < t.length; ++r) n += Math.abs(t[r]);
223
+ return n;
224
+ }
225
+ function Q(t, n, r) {
226
+ for (var a = [], o = 0; o < t[0].data.length; o++) {
227
+ for (var i = [], e = 0; e < t.length; e++) i.push(t[e].data[o]);
228
+ a.push(pe(i));
229
+ }
230
+ var u = new Uint8ClampedArray(a);
231
+ return new ImageData(u, n, r);
232
+ }
233
+ function pe(t) {
234
+ if (t.length === 0) return 0;
235
+ for (var n = {}, r = 0, a = t; r < a.length; r++)
236
+ n[i = a[r]] = (n[i] || 0) + 1;
237
+ var o = t[0];
238
+ for (var i in n) n[i] > n[o] && (o = parseInt(i, 10));
239
+ return o;
240
+ }
241
+ function k() {
242
+ if (typeof navigator > "u") return { name: "unknown", version: "unknown" };
243
+ for (var t = navigator.userAgent, n = { Edg: "Edge", OPR: "Opera" }, r = 0, a = [/(?<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 < a.length; r++) {
244
+ var o = a[r], i = t.match(o);
245
+ if (i && i.groups) return { name: n[i.groups.name] || i.groups.name, version: i.groups.version };
246
+ }
247
+ return { name: "unknown", version: "unknown" };
248
+ }
249
+ y("audio", function() {
250
+ return w(this, void 0, void 0, function() {
251
+ return b(this, function(t) {
252
+ return [2, new Promise(function(n, r) {
265
253
  try {
266
- if (e.tagName.includes("-"))
267
- e[t] !== n && (e[t] = n);
268
- else {
269
- const f = n ?? "";
270
- t === "list" ? l = !1 : (s == null || e[t] != f) && (typeof e.__lookupSetter__(t) == "function" ? e[t] = f : e.setAttribute(t, f));
271
- }
272
- } catch {
254
+ var a = new (window.OfflineAudioContext || window.webkitOfflineAudioContext)(1, 5e3, 44100), o = a.createBufferSource(), i = a.createOscillator();
255
+ i.frequency.value = 1e3;
256
+ var e, u = a.createDynamicsCompressor();
257
+ u.threshold.value = -50, u.knee.value = 40, u.ratio.value = 12, u.attack.value = 0, u.release.value = 0.2, i.connect(u), u.connect(a.destination), i.start(), a.oncomplete = function(d) {
258
+ e = d.renderedBuffer.getChannelData(0), n({ sampleHash: me(e), oscillator: i.type, maxChannels: a.destination.maxChannelCount, channelCountMode: o.channelCountMode });
259
+ }, a.startRendering();
260
+ } catch (d) {
261
+ console.error("Error creating audio fingerprint:", d), r(d);
273
262
  }
274
- n == null || n === !1 ? (n !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!l || i & 4 || r) && !o && (n = n === !0 ? "" : n, e.setAttribute(t, n));
263
+ })];
264
+ });
265
+ });
266
+ });
267
+ var ge = k().name !== "SamsungBrowser" ? 1 : 3, G = 280, W = 20;
268
+ k().name != "Firefox" && y("canvas", function() {
269
+ return document.createElement("canvas").getContext("2d"), new Promise(function(t) {
270
+ var n = Array.from({ length: ge }, function() {
271
+ return function() {
272
+ var r = document.createElement("canvas"), a = r.getContext("2d");
273
+ if (!a) return new ImageData(1, 1);
274
+ r.width = G, r.height = W;
275
+ var o = a.createLinearGradient(0, 0, r.width, r.height);
276
+ o.addColorStop(0, "red"), o.addColorStop(0.16666666666666666, "orange"), o.addColorStop(0.3333333333333333, "yellow"), o.addColorStop(0.5, "green"), o.addColorStop(0.6666666666666666, "blue"), o.addColorStop(0.8333333333333334, "indigo"), o.addColorStop(1, "violet"), a.fillStyle = o, a.fillRect(0, 0, r.width, r.height);
277
+ var i = "Random Text WMwmil10Oo";
278
+ a.font = "23.123px Arial", a.fillStyle = "black", a.fillText(i, -5, 15), a.fillStyle = "rgba(0, 0, 255, 0.5)", a.fillText(i, -3.3, 17.7), a.beginPath(), a.moveTo(0, 0), a.lineTo(2 * r.width / 7, r.height), a.strokeStyle = "white", a.lineWidth = 2, a.stroke();
279
+ var e = a.getImageData(0, 0, r.width, r.height);
280
+ return e;
281
+ }();
282
+ });
283
+ t({ commonImageDataHash: D(Q(n, G, W).data.toString()).toString() });
284
+ });
285
+ });
286
+ var O, ve = ["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"], ye = ["monospace", "sans-serif", "serif"];
287
+ function $(t, n) {
288
+ if (!t) throw new Error("Canvas context not supported");
289
+ return t.font, t.font = "72px ".concat(n), t.measureText("WwMmLli0Oo").width;
290
+ }
291
+ function we() {
292
+ var t, n = document.createElement("canvas"), r = (t = n.getContext("webgl")) !== null && t !== void 0 ? t : n.getContext("experimental-webgl");
293
+ if (r && "getParameter" in r) try {
294
+ var a = (r.getParameter(r.VENDOR) || "").toString(), o = (r.getParameter(r.RENDERER) || "").toString(), i = { vendor: a, renderer: o, version: (r.getParameter(r.VERSION) || "").toString(), shadingLanguageVersion: (r.getParameter(r.SHADING_LANGUAGE_VERSION) || "").toString() };
295
+ if (!o.length || !a.length) {
296
+ var e = r.getExtension("WEBGL_debug_renderer_info");
297
+ if (e) {
298
+ var u = (r.getParameter(e.UNMASKED_VENDOR_WEBGL) || "").toString(), d = (r.getParameter(e.UNMASKED_RENDERER_WEBGL) || "").toString();
299
+ u && (i.vendorUnmasked = u), d && (i.rendererUnmasked = d);
300
+ }
275
301
  }
302
+ return i;
303
+ } catch {
276
304
  }
277
- }, St = /\s/, pe = (e) => (typeof e == "object" && "baseVal" in e && (e = e.baseVal), e ? e.split(St) : []), Pe = "Capture", bt = new RegExp(Pe + "$"), Te = (e, t, s) => {
278
- const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = e && e.$attrs$ || {}, i = t.$attrs$ || {};
279
- for (const l of ge(Object.keys(r)))
280
- l in i || he(n, l, r[l], void 0, s, t.$flags$);
281
- for (const l of ge(Object.keys(i)))
282
- he(n, l, r[l], i[l], s, t.$flags$);
283
- };
284
- function ge(e) {
285
- return e.includes("ref") ? (
286
- // we need to sort these to ensure that `'ref'` is the last attr
287
- [...e.filter((t) => t !== "ref"), "ref"]
288
- ) : (
289
- // no need to sort, return the original array
290
- e
291
- );
305
+ return "undefined";
292
306
  }
293
- var Q, ee, U = !1, z = !1, te = !1, R = !1, H = (e, t, s) => {
294
- var n;
295
- const r = t.$children$[s];
296
- let i = 0, l, a, o;
297
- if (U || (te = !0, r.$tag$ === "slot" && (r.$flags$ |= r.$children$ ? (
298
- // slot element has fallback content
299
- // still create an element that "mocks" the slot element
300
- 2
301
- ) : (
302
- // slot element does not have fallback content
303
- // create an html comment we'll use to always reference
304
- // where actual slot content should sit next to
305
- 1
306
- ))), r.$text$ !== null)
307
- l = r.$elm$ = T.createTextNode(r.$text$);
308
- else if (r.$flags$ & 1)
309
- l = r.$elm$ = T.createTextNode("");
310
- else {
311
- if (R || (R = r.$tag$ === "svg"), l = r.$elm$ = T.createElementNS(
312
- R ? Ve : et,
313
- !U && w.slotRelocation && r.$flags$ & 2 ? "slot-fb" : r.$tag$
314
- ), R && r.$tag$ === "foreignObject" && (R = !1), Te(null, r, R), r.$children$)
315
- for (i = 0; i < r.$children$.length; ++i)
316
- a = H(e, r, i), a && l.appendChild(a);
317
- r.$tag$ === "svg" ? R = !1 : l.tagName === "foreignObject" && (R = !0);
318
- }
319
- return l["s-hn"] = ee, r.$flags$ & 3 && (l["s-sr"] = !0, l["s-cr"] = Q, l["s-sn"] = r.$name$ || "", l["s-rf"] = (n = r.$attrs$) == null ? void 0 : n.ref, o = e && e.$children$ && e.$children$[s], o && o.$tag$ === r.$tag$ && e.$elm$ && F(e.$elm$, !1)), l;
320
- }, F = (e, t) => {
321
- v.$flags$ |= 1;
322
- const s = Array.from(e.__childNodes || e.childNodes);
323
- e["s-sr"] && w.experimentalSlotFixes;
324
- for (let n = s.length - 1; n >= 0; n--) {
325
- const r = s[n];
326
- r["s-hn"] !== ee && r["s-ol"] && (_(D(r).parentNode, r, D(r)), r["s-ol"].remove(), r["s-ol"] = void 0, r["s-sh"] = void 0, te = !0), t && F(r, t);
327
- }
328
- v.$flags$ &= -2;
329
- }, ke = (e, t, s, n, r, i) => {
330
- let l = e["s-cr"] && e["s-cr"].parentNode || e, a;
331
- for (; r <= i; ++r)
332
- n[r] && (a = H(null, s, r), a && (n[r].$elm$ = a, _(l, a, D(t))));
333
- }, Ce = (e, t, s) => {
334
- for (let n = t; n <= s; ++n) {
335
- const r = e[n];
336
- if (r) {
337
- const i = r.$elm$;
338
- i && (z = !0, i["s-ol"] ? i["s-ol"].remove() : F(i, !0), i.remove());
339
- }
307
+ function be() {
308
+ var t = new Float32Array(1), n = new Uint8Array(t.buffer);
309
+ return t[0] = 1 / 0, t[0] = t[0] - t[0], n[3];
310
+ }
311
+ function Se(t, n) {
312
+ var r = {};
313
+ return n.forEach(function(a) {
314
+ var o = function(i) {
315
+ if (i.length === 0) return null;
316
+ var e = {};
317
+ i.forEach(function(c) {
318
+ var s = String(c);
319
+ e[s] = (e[s] || 0) + 1;
320
+ });
321
+ var u = i[0], d = 1;
322
+ return Object.keys(e).forEach(function(c) {
323
+ e[c] > d && (u = c, d = e[c]);
324
+ }), u;
325
+ }(t.map(function(i) {
326
+ return a in i ? i[a] : void 0;
327
+ }).filter(function(i) {
328
+ return i !== void 0;
329
+ }));
330
+ o && (r[a] = o);
331
+ }), r;
332
+ }
333
+ function Ee() {
334
+ var t = [], n = { "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"] };
335
+ return Object.keys(n).forEach(function(r) {
336
+ n[r].forEach(function(a) {
337
+ matchMedia("(".concat(r, ": ").concat(a, ")")).matches && t.push("".concat(r, ": ").concat(a));
338
+ });
339
+ }), t;
340
+ }
341
+ function Pe() {
342
+ if (window.location.protocol === "https:" && typeof window.ApplePaySession == "function") try {
343
+ for (var t = window.ApplePaySession.supportsVersion, n = 15; n > 0; n--) if (t(n)) return n;
344
+ } catch {
345
+ return 0;
340
346
  }
341
- }, Rt = (e, t, s, n, r = !1) => {
342
- let i = 0, l = 0, a = 0, o = 0, f = t.length - 1, $ = t[0], c = t[f], u = n.length - 1, d = n[0], h = n[u], g, S;
343
- for (; i <= f && l <= u; )
344
- if ($ == null)
345
- $ = t[++i];
346
- else if (c == null)
347
- c = t[--f];
348
- else if (d == null)
349
- d = n[++l];
350
- else if (h == null)
351
- h = n[--u];
352
- else if (N($, d, r))
353
- x($, d, r), $ = t[++i], d = n[++l];
354
- else if (N(c, h, r))
355
- x(c, h, r), c = t[--f], h = n[--u];
356
- else if (N($, h, r))
357
- ($.$tag$ === "slot" || h.$tag$ === "slot") && F($.$elm$.parentNode, !1), x($, h, r), _(e, $.$elm$, c.$elm$.nextSibling), $ = t[++i], h = n[--u];
358
- else if (N(c, d, r))
359
- ($.$tag$ === "slot" || h.$tag$ === "slot") && F(c.$elm$.parentNode, !1), x(c, d, r), _(e, c.$elm$, $.$elm$), c = t[--f], d = n[++l];
360
- else {
361
- for (a = -1, o = i; o <= f; ++o)
362
- if (t[o] && t[o].$key$ !== null && t[o].$key$ === d.$key$) {
363
- a = o;
364
- break;
365
- }
366
- a >= 0 ? (S = t[a], S.$tag$ !== d.$tag$ ? g = H(t && t[l], s, a) : (x(S, d, r), t[a] = void 0, g = S.$elm$), d = n[++l]) : (g = H(t && t[l], s, l), d = n[++l]), g && _(
367
- D($.$elm$).parentNode,
368
- g,
369
- D($.$elm$)
370
- );
347
+ return 0;
348
+ }
349
+ k().name != "Firefox" && y("fonts", function() {
350
+ var t = this;
351
+ return new Promise(function(n, r) {
352
+ try {
353
+ (function(a) {
354
+ var o;
355
+ w(this, void 0, void 0, function() {
356
+ var i, e, u;
357
+ return b(this, function(d) {
358
+ switch (d.label) {
359
+ case 0:
360
+ return document.body ? [3, 2] : [4, (c = 50, new Promise(function(h) {
361
+ return setTimeout(h, c, s);
362
+ }))];
363
+ case 1:
364
+ return d.sent(), [3, 0];
365
+ case 2:
366
+ if ((i = document.createElement("iframe")).setAttribute("frameBorder", "0"), (e = i.style).setProperty("position", "fixed"), e.setProperty("display", "block", "important"), e.setProperty("visibility", "visible"), e.setProperty("border", "0"), e.setProperty("opacity", "0"), i.src = "about:blank", document.body.appendChild(i), !(u = i.contentDocument || ((o = i.contentWindow) === null || o === void 0 ? void 0 : o.document))) throw new Error("Iframe document is not accessible");
367
+ return a({ iframe: u }), setTimeout(function() {
368
+ document.body.removeChild(i);
369
+ }, 0), [2];
370
+ }
371
+ var c, s;
372
+ });
373
+ });
374
+ })(function(a) {
375
+ var o = a.iframe;
376
+ return w(t, void 0, void 0, function() {
377
+ var i, e, u, d;
378
+ return b(this, function(c) {
379
+ return i = o.createElement("canvas"), e = i.getContext("2d"), u = ye.map(function(s) {
380
+ return $(e, s);
381
+ }), d = {}, ve.forEach(function(s) {
382
+ var h = $(e, s);
383
+ u.includes(h) || (d[s] = h);
384
+ }), n(d), [2];
385
+ });
386
+ });
387
+ });
388
+ } catch {
389
+ r({ error: "unsupported" });
371
390
  }
372
- i > f ? ke(
373
- e,
374
- n[u + 1] == null ? null : n[u + 1].$elm$,
375
- s,
376
- n,
377
- l,
378
- u
379
- ) : l > u && Ce(t, i, f);
380
- }, N = (e, t, s = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : s ? (s && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, D = (e) => e && e["s-ol"] || e, x = (e, t, s = !1) => {
381
- const n = t.$elm$ = e.$elm$, r = e.$children$, i = t.$children$, l = t.$tag$, a = t.$text$;
382
- let o;
383
- a === null ? (R = l === "svg" ? !0 : l === "foreignObject" ? !1 : R, l === "slot" && !U || Te(e, t, R), r !== null && i !== null ? Rt(n, r, t, i, s) : i !== null ? (e.$text$ !== null && (n.textContent = ""), ke(n, null, t, i, 0, i.length - 1)) : (
384
- // don't do this on initial render as it can cause non-hydrated content to be removed
385
- !s && w.updatable && r !== null && Ce(r, 0, r.length - 1)
386
- ), R && l === "svg" && (R = !1)) : (o = n["s-cr"]) ? o.parentNode.textContent = a : e.$text$ !== a && (n.data = a);
387
- }, C = [], Ee = (e) => {
388
- let t, s, n;
389
- const r = e.__childNodes || e.childNodes;
390
- for (const i of r) {
391
- if (i["s-sr"] && (t = i["s-cr"]) && t.parentNode) {
392
- s = t.parentNode.__childNodes || t.parentNode.childNodes;
393
- const l = i["s-sn"];
394
- for (n = s.length - 1; n >= 0; n--)
395
- if (t = s[n], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== i["s-hn"])
396
- if (de(t, l)) {
397
- let a = C.find((o) => o.$nodeToRelocate$ === t);
398
- z = !0, t["s-sn"] = t["s-sn"] || l, a ? (a.$nodeToRelocate$["s-sh"] = i["s-hn"], a.$slotRefNode$ = i) : (t["s-sh"] = i["s-hn"], C.push({
399
- $slotRefNode$: i,
400
- $nodeToRelocate$: t
401
- })), t["s-sr"] && C.map((o) => {
402
- de(o.$nodeToRelocate$, t["s-sn"]) && (a = C.find((f) => f.$nodeToRelocate$ === t), a && !o.$slotRefNode$ && (o.$slotRefNode$ = a.$slotRefNode$));
391
+ });
392
+ }), y("hardware", function() {
393
+ return new Promise(function(t, n) {
394
+ var r = navigator.deviceMemory !== void 0 ? navigator.deviceMemory : 0, a = window.performance && window.performance.memory ? window.performance.memory : 0;
395
+ t({ videocard: we(), architecture: be(), deviceMemory: r.toString() || "undefined", jsHeapSizeLimit: a.jsHeapSizeLimit || 0 });
396
+ });
397
+ }), y("locales", function() {
398
+ return new Promise(function(t) {
399
+ t({ languages: navigator.language, timezone: Intl.DateTimeFormat().resolvedOptions().timeZone });
400
+ });
401
+ }), y("permissions", function() {
402
+ return w(this, void 0, void 0, function() {
403
+ var t;
404
+ return b(this, function(n) {
405
+ return O = (S == null ? void 0 : S.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"], t = Array.from({ length: (S == null ? void 0 : S.retries) || 3 }, function() {
406
+ return function() {
407
+ return w(this, void 0, void 0, function() {
408
+ var r, a, o, i, e;
409
+ return b(this, function(u) {
410
+ switch (u.label) {
411
+ case 0:
412
+ r = {}, a = 0, o = O, u.label = 1;
413
+ case 1:
414
+ if (!(a < o.length)) return [3, 6];
415
+ i = o[a], u.label = 2;
416
+ case 2:
417
+ return u.trys.push([2, 4, , 5]), [4, navigator.permissions.query({ name: i })];
418
+ case 3:
419
+ return e = u.sent(), r[i] = e.state.toString(), [3, 5];
420
+ case 4:
421
+ return u.sent(), [3, 5];
422
+ case 5:
423
+ return a++, [3, 1];
424
+ case 6:
425
+ return [2, r];
426
+ }
403
427
  });
404
- } else C.some((a) => a.$nodeToRelocate$ === t) || C.push({
405
- $nodeToRelocate$: t
406
428
  });
407
- }
408
- i.nodeType === 1 && Ee(i);
429
+ }();
430
+ }), [2, Promise.all(t).then(function(r) {
431
+ return Se(r, O);
432
+ })];
433
+ });
434
+ });
435
+ }), y("plugins", function() {
436
+ var t = [];
437
+ if (navigator.plugins) for (var n = 0; n < navigator.plugins.length; n++) {
438
+ var r = navigator.plugins[n];
439
+ t.push([r.name, r.filename, r.description].join("|"));
409
440
  }
410
- }, _ = (e, t, s) => e == null ? void 0 : e.insertBefore(t, s), Pt = (e, t, s = !1) => {
411
- var n, r, i, l;
412
- const a = e.$hostElement$, o = e.$vnode$ || K(null, null), f = yt(t) ? t : gt(null, null, t);
413
- if (ee = a.tagName, s && f.$attrs$)
414
- for (const $ of Object.keys(f.$attrs$))
415
- a.hasAttribute($) && !["key", "ref", "style", "class"].includes($) && (f.$attrs$[$] = a[$]);
416
- f.$tag$ = null, f.$flags$ |= 4, e.$vnode$ = f, f.$elm$ = o.$elm$ = a, U = at, Q = a["s-cr"], z = !1, x(o, f, s);
417
- {
418
- if (v.$flags$ |= 1, te) {
419
- Ee(f.$elm$);
420
- for (const $ of C) {
421
- const c = $.$nodeToRelocate$;
422
- if (!c["s-ol"]) {
423
- const u = T.createTextNode("");
424
- u["s-nr"] = c, _(c.parentNode, c["s-ol"] = u, c);
425
- }
426
- }
427
- for (const $ of C) {
428
- const c = $.$nodeToRelocate$, u = $.$slotRefNode$;
429
- if (u) {
430
- const d = u.parentNode;
431
- let h = u.nextSibling;
432
- {
433
- let y = (n = c["s-ol"]) == null ? void 0 : n.previousSibling;
434
- for (; y; ) {
435
- let p = (r = y["s-nr"]) != null ? r : null;
436
- if (p && p["s-sn"] === c["s-sn"] && d === (p.__parentNode || p.parentNode)) {
437
- for (p = p.nextSibling; p === c || p != null && p["s-sr"]; )
438
- p = p == null ? void 0 : p.nextSibling;
439
- if (!p || !p["s-nr"]) {
440
- h = p;
441
- break;
442
- }
441
+ return new Promise(function(a) {
442
+ a({ plugins: t });
443
+ });
444
+ }), y("screen", function() {
445
+ return new Promise(function(t) {
446
+ t({ is_touchscreen: navigator.maxTouchPoints > 0, maxTouchPoints: navigator.maxTouchPoints, colorDepth: screen.colorDepth, mediaMatches: Ee() });
447
+ });
448
+ }), y("system", function() {
449
+ return new Promise(function(t) {
450
+ var n = k();
451
+ t({ platform: window.navigator.platform, cookieEnabled: window.navigator.cookieEnabled, productSub: navigator.productSub, product: navigator.product, useragent: navigator.userAgent, hardwareConcurrency: navigator.hardwareConcurrency, browser: { name: n.name, version: n.version }, applePayVersion: Pe() });
452
+ });
453
+ });
454
+ var g, Me = k().name !== "SamsungBrowser" ? 1 : 3, l = null;
455
+ y("webgl", function() {
456
+ return w(this, void 0, void 0, function() {
457
+ var t;
458
+ return b(this, function(n) {
459
+ typeof document < "u" && ((g = document.createElement("canvas")).width = 200, g.height = 100, l = g.getContext("webgl"));
460
+ try {
461
+ if (!l) throw new Error("WebGL not supported");
462
+ return t = Array.from({ length: Me }, function() {
463
+ return function() {
464
+ try {
465
+ if (!l) throw new Error("WebGL not supported");
466
+ var r = `
467
+ attribute vec2 position;
468
+ void main() {
469
+ gl_Position = vec4(position, 0.0, 1.0);
470
+ }
471
+ `, a = `
472
+ precision mediump float;
473
+ void main() {
474
+ gl_FragColor = vec4(0.812, 0.195, 0.553, 0.921); // Set line color
475
+ }
476
+ `, o = l.createShader(l.VERTEX_SHADER), i = l.createShader(l.FRAGMENT_SHADER);
477
+ if (!o || !i) throw new Error("Failed to create shaders");
478
+ if (l.shaderSource(o, r), l.shaderSource(i, a), l.compileShader(o), !l.getShaderParameter(o, l.COMPILE_STATUS)) throw new Error("Vertex shader compilation failed: " + l.getShaderInfoLog(o));
479
+ if (l.compileShader(i), !l.getShaderParameter(i, l.COMPILE_STATUS)) throw new Error("Fragment shader compilation failed: " + l.getShaderInfoLog(i));
480
+ var e = l.createProgram();
481
+ if (!e) throw new Error("Failed to create shader program");
482
+ if (l.attachShader(e, o), l.attachShader(e, i), l.linkProgram(e), !l.getProgramParameter(e, l.LINK_STATUS)) throw new Error("Shader program linking failed: " + l.getProgramInfoLog(e));
483
+ l.useProgram(e);
484
+ for (var u = 137, d = new Float32Array(4 * u), c = 2 * Math.PI / u, s = 0; s < u; s++) {
485
+ var h = s * c;
486
+ d[4 * s] = 0, d[4 * s + 1] = 0, d[4 * s + 2] = Math.cos(h) * (g.width / 2), d[4 * s + 3] = Math.sin(h) * (g.height / 2);
443
487
  }
444
- y = y.previousSibling;
488
+ var T = l.createBuffer();
489
+ l.bindBuffer(l.ARRAY_BUFFER, T), l.bufferData(l.ARRAY_BUFFER, d, l.STATIC_DRAW);
490
+ var R = l.getAttribLocation(e, "position");
491
+ l.enableVertexAttribArray(R), l.vertexAttribPointer(R, 2, l.FLOAT, !1, 0, 0), l.viewport(0, 0, g.width, g.height), l.clearColor(0, 0, 0, 1), l.clear(l.COLOR_BUFFER_BIT), l.drawArrays(l.LINES, 0, 2 * u);
492
+ var L = new Uint8ClampedArray(g.width * g.height * 4);
493
+ return l.readPixels(0, 0, g.width, g.height, l.RGBA, l.UNSIGNED_BYTE, L), new ImageData(L, g.width, g.height);
494
+ } catch {
495
+ return new ImageData(1, 1);
496
+ } finally {
497
+ l && (l.bindBuffer(l.ARRAY_BUFFER, null), l.useProgram(null), l.viewport(0, 0, l.drawingBufferWidth, l.drawingBufferHeight), l.clearColor(0, 0, 0, 0));
445
498
  }
446
- }
447
- const g = c.__parentNode || c.parentNode, S = c.__nextSibling || c.nextSibling;
448
- (!h && d !== g || S !== h) && c !== h && (!c["s-hn"] && c["s-ol"] && (c["s-hn"] = c["s-ol"].parentNode.nodeName), _(d, c, h), c.nodeType === 1 && c.tagName !== "SLOT-FB" && (c.hidden = (i = c["s-ih"]) != null ? i : !1)), c && typeof u["s-rf"] == "function" && u["s-rf"](c);
449
- } else
450
- c.nodeType === 1 && (s && (c["s-ih"] = (l = c.hidden) != null ? l : !1), c.hidden = !0);
499
+ }();
500
+ }), [2, { commonImageHash: D(Q(t, g.width, g.height).data.toString()).toString() }];
501
+ } catch {
502
+ return [2, { webgl: "unsupported" }];
451
503
  }
452
- }
453
- z && be(f.$elm$), v.$flags$ &= -2, C.length = 0;
504
+ return [2];
505
+ });
506
+ });
507
+ });
508
+ var M = function(t, n, r, a) {
509
+ for (var o = (r - n) / a, i = 0, e = 0; e < a; e++)
510
+ i += t(n + (e + 0.5) * o);
511
+ return i * o;
512
+ };
513
+ y("math", function() {
514
+ return w(void 0, void 0, void 0, function() {
515
+ return b(this, function(t) {
516
+ return [2, { acos: Math.acos(0.5), asin: M(Math.asin, -1, 1, 97), atan: M(Math.atan, -1, 1, 97), cos: M(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: M(Math.sin, -Math.PI, Math.PI, 97), sinh: M(Math.sinh, -9 / 7, 7 / 9, 97), sqrt: Math.sqrt(2), tan: M(Math.tan, 0, 2 * Math.PI, 97), tanh: M(Math.tanh, -9 / 7, 7 / 9, 97) }];
517
+ });
518
+ });
519
+ });
520
+ const Re = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
521
+ let _ = (t = 21) => {
522
+ let n = "", r = crypto.getRandomValues(new Uint8Array(t |= 0));
523
+ for (; t--; )
524
+ n += Re[r[t] & 63];
525
+ return n;
526
+ };
527
+ class B {
528
+ constructor(n) {
529
+ f(this, "config"), this.config = n;
454
530
  }
455
- Q = void 0;
456
- }, _e = (e, t) => {
457
- if (t && !e.$onRenderResolve$ && t["s-p"]) {
458
- const s = t["s-p"].push(
459
- new Promise(
460
- (n) => e.$onRenderResolve$ = () => {
461
- t["s-p"].splice(s - 1, 1), n();
462
- }
463
- )
464
- );
531
+ async getAdsForSearchParams(n) {
532
+ return [];
465
533
  }
466
- }, se = (e, t) => {
467
- if (e.$flags$ |= 16, e.$flags$ & 4) {
468
- e.$flags$ |= 512;
469
- return;
534
+ }
535
+ class Ae extends B {
536
+ /**
537
+ * Gets ads from the adMarketplace API based on the search term.
538
+ */
539
+ async getAdsForSearchParams(n) {
540
+ if (!this.config.admSub)
541
+ return console.error("No admSub specified in config."), [];
542
+ const r = `https://demofeed.is.ampfeed.com/is?${new URLSearchParams({
543
+ partner: "demofeed",
544
+ sub1: this.config.admSub,
545
+ qt: n.searchTerm,
546
+ v: "2.0",
547
+ rfr: "searchcraft.io",
548
+ "results-ta": `${this.config.admTextAdQuantity || 0}`,
549
+ "results-pa": `${this.config.admProductAdQuantity || 0}`
550
+ }).toString()}`, a = await (await fetch(r, { method: "GET" })).json(), o = a.product_ads.map(
551
+ (e) => ({
552
+ id: _(),
553
+ adSource: "adMarketplace",
554
+ admAdType: "adm-product-ad",
555
+ admAd: e
556
+ })
557
+ ), i = a.text_ads.map((e) => ({
558
+ id: _(),
559
+ adSource: "adMarketplace",
560
+ admAdType: "adm-text-ad",
561
+ admAd: e
562
+ }));
563
+ return o.concat(i);
470
564
  }
471
- return _e(e, e.$ancestorComponent$), it(() => Tt(e, t));
472
- }, Tt = (e, t) => {
473
- const s = e.$hostElement$, n = L("scheduleUpdate", e.$cmpMeta$.$tagName$), r = e.$lazyInstance$;
474
- if (!r)
475
- throw new Error(
476
- `Can't render component <${s.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`
477
- );
478
- let i;
479
- return n(), kt(i, () => Et(e, r, t));
480
- }, kt = (e, t) => Ct(e) ? e.then(t).catch((s) => {
481
- console.error(s), t();
482
- }) : t(), Ct = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Et = async (e, t, s) => {
483
- var n;
484
- const r = e.$hostElement$, i = L("update", e.$cmpMeta$.$tagName$), l = r["s-rc"], a = L("render", e.$cmpMeta$.$tagName$);
485
- _t(e, t, r, s), l && (l.map((o) => o()), r["s-rc"] = void 0), a(), i();
486
- {
487
- const o = (n = r["s-p"]) != null ? n : [], f = () => Lt(e);
488
- o.length === 0 ? f() : (Promise.all(o).then(f), e.$flags$ |= 4, o.length = 0);
565
+ }
566
+ class Ce extends B {
567
+ async getAdsForSearchParams(n) {
568
+ return [];
489
569
  }
490
- }, _t = (e, t, s, n) => {
491
- try {
492
- t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Pt(e, t, n);
493
- } catch (r) {
494
- O(r, e.$hostElement$);
570
+ }
571
+ class xe extends B {
572
+ async getAdsForSearchParams(n) {
573
+ return [];
495
574
  }
496
- return null;
497
- }, Lt = (e) => {
498
- const t = e.$cmpMeta$.$tagName$, s = e.$hostElement$, n = L("postUpdate", t), r = e.$lazyInstance$, i = e.$ancestorComponent$;
499
- e.$flags$ & 64 ? n() : (e.$flags$ |= 64, xe(s), ne(r, "componentDidLoad", void 0, s), n(), e.$onReadyResolve$(s), i || Le()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && Z(() => se(e, !1)), e.$flags$ &= -517;
500
- }, Le = (e) => {
501
- xe(T.documentElement), Z(() => mt(M, "appload", { detail: { namespace: Qe } }));
502
- }, ne = (e, t, s, n) => {
503
- if (e && e[t])
504
- try {
505
- return e[t](s);
506
- } catch (r) {
507
- O(r, n);
508
- }
509
- }, xe = (e) => {
510
- var t;
511
- return e.classList.add((t = w.hydratedSelectorName) != null ? t : "hydrated");
512
- }, xt = (e, t) => k(e).$instanceValues$.get(t), W = (e, t, s, n) => {
513
- const r = k(e);
514
- if (!r)
575
+ }
576
+ const ke = 500;
577
+ class Te {
578
+ constructor(n, r, a) {
579
+ f(this, "measureRequestTimeout"), f(this, "measureRequestsBatched", []), f(this, "config"), f(this, "sdkInfo"), f(this, "userId"), f(this, "sessionId"), f(this, "sendMeasureEvent", (o, i = {}, e = {}) => {
580
+ const u = {
581
+ event_name: o,
582
+ properties: {
583
+ searchcraft_index_names: this.config.index,
584
+ session_id: this.sessionId,
585
+ ...i
586
+ },
587
+ user: {
588
+ ...this.measureRequestUser,
589
+ ...e
590
+ }
591
+ };
592
+ this.measureRequestsBatched.push(u), clearTimeout(this.measureRequestTimeout), this.measureRequestTimeout = setTimeout(async () => {
593
+ const d = JSON.stringify({ items: this.measureRequestsBatched }), c = `${this.baseMeasureUrl}/batch`;
594
+ try {
595
+ const s = await fetch(c, {
596
+ method: "POST",
597
+ headers: {
598
+ "Content-Type": "application/json",
599
+ Authorization: this.config.readKey,
600
+ "X-Sc-User-Id": this.userId
601
+ },
602
+ body: d,
603
+ keepalive: !0
604
+ });
605
+ if (!s.ok)
606
+ throw new Error(
607
+ `Failed to send request: ${s.status} ${s.statusText}`
608
+ );
609
+ this.measureRequestsBatched = [];
610
+ return;
611
+ } catch (s) {
612
+ throw console.error("Error sending MeasureRequest:", s), s;
613
+ }
614
+ }, ke);
615
+ }), this.config = n, this.sdkInfo = r, this.userId = a, this.sessionId = _(), this.sendMeasureEvent("sdk_initialized");
616
+ }
617
+ /**
618
+ * Getter for the base url used by the /measure endpoints.
619
+ */
620
+ get baseMeasureUrl() {
621
+ return `${this.config.endpointURL}/measure`;
622
+ }
623
+ /**
624
+ * Getter for the measure request user. Uses config values + navigator values.
625
+ */
626
+ get measureRequestUser() {
627
+ return {
628
+ user_id: this.userId,
629
+ locale: navigator.language || "en-US",
630
+ os: navigator.userAgent.includes("Windows") ? "Windows" : navigator.userAgent.includes("Mac") ? "Mac" : navigator.userAgent.includes("Linux") ? "Linux" : "Unknown",
631
+ platform: navigator.platform || "Unknown",
632
+ sdk_name: this.sdkInfo.sdkName,
633
+ sdk_version: this.sdkInfo.sdkVersion,
634
+ user_agent: navigator.userAgent || "Unknown"
635
+ };
636
+ }
637
+ }
638
+ function Ie(t) {
639
+ const n = [];
640
+ let r = "should";
641
+ return t.facetPathsForIndexFields && Object.keys(t.facetPathsForIndexFields).forEach((a) => {
642
+ var o;
643
+ const i = (o = t.facetPathsForIndexFields) == null ? void 0 : o[a];
644
+ i && (r = "must", n.push({
645
+ occur: r,
646
+ exact: {
647
+ ctx: i.value
648
+ }
649
+ }));
650
+ }), t.rangeValueForIndexFields && Object.keys(t.rangeValueForIndexFields).forEach((a) => {
651
+ var o;
652
+ const i = (o = t.rangeValueForIndexFields) == null ? void 0 : o[a];
653
+ i && (r = "must", n.push({
654
+ occur: r,
655
+ exact: {
656
+ ctx: i.value
657
+ }
658
+ }));
659
+ }), t.sort === "desc" ? t.order_by = "date_published" : t.order_by = "", n.push({
660
+ occur: r,
661
+ // Valid, as 'occur' is a required property in QueryItem
662
+ [t.mode]: { ctx: t.searchTerm }
663
+ // Ensure dynamic mode is inside queryType
664
+ }), n;
665
+ }
666
+ const _e = (t) => t.endsWith("/") ? t.slice(0, -1) : t, Le = (t) => {
667
+ let n = "";
668
+ if (n = t.trim(), n = n.replace(/[‘’“”]/g, (r) => ({
669
+ "‘": "'",
670
+ "’": "'",
671
+ "“": '"',
672
+ "”": '"'
673
+ })[r] || r), (n.match(/"/g) || []).length % 2 !== 0)
515
674
  throw new Error(
516
- `Couldn't find host element for "${n.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
675
+ "The search term contains an uneven number of quote characters."
517
676
  );
518
- const i = r.$hostElement$, l = r.$instanceValues$.get(t), a = r.$flags$, o = r.$lazyInstance$;
519
- s = Y(s, n.$members$[t][0]);
520
- const f = Number.isNaN(l) && Number.isNaN(s), $ = s !== l && !f;
521
- if ((!(a & 8) || l === void 0) && $ && (r.$instanceValues$.set(t, s), o)) {
522
- if (n.$watchers$ && a & 128) {
523
- const c = n.$watchers$[t];
524
- c && c.map((u) => {
525
- try {
526
- o[u](s, l, t);
527
- } catch (d) {
528
- O(d, i);
677
+ return n;
678
+ };
679
+ class Fe {
680
+ constructor(n, r, a) {
681
+ f(this, "config"), f(this, "userId"), f(this, "parent"), f(this, "getSearchResponse", async (o) => {
682
+ var i, e;
683
+ const u = Le(o.searchTerm);
684
+ (i = this.parent.measureClient) == null || i.sendMeasureEvent("search_requested", {
685
+ search_term: u
686
+ }), this.parent.emitEvent("query_submitted", {
687
+ name: "query_submitted",
688
+ data: {
689
+ searchTerm: u
529
690
  }
530
691
  });
531
- }
532
- (a & 18) === 2 && se(r, !1);
533
- }
534
- }, we = (e, t, s) => {
535
- var n, r;
536
- const i = e.prototype;
537
- if (t.$members$ || t.$watchers$ || e.watchers) {
538
- e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
539
- const l = Object.entries((n = t.$members$) != null ? n : {});
540
- if (l.map(([a, [o]]) => {
541
- if (o & 31 || s & 2 && o & 32) {
542
- const { get: f, set: $ } = Object.getOwnPropertyDescriptor(i, a) || {};
543
- f && (t.$members$[a][0] |= 2048), $ && (t.$members$[a][0] |= 4096), (s & 1 || !f) && Object.defineProperty(i, a, {
544
- get() {
545
- {
546
- if (!(t.$members$[a][0] & 2048))
547
- return xt(this, a);
548
- const c = k(this), u = c ? c.$lazyInstance$ : i;
549
- return u ? u[a] : void 0;
550
- }
692
+ try {
693
+ const d = {
694
+ query: Ie(o),
695
+ offset: o.offset || 0,
696
+ // Default to 0 (first page) if not provided
697
+ limit: o.limit || this.config.searchResultsPerPage || 20
698
+ // Default to 20 if not provided
699
+ };
700
+ o.order_by && (d.order_by = o.order_by, d.sort = o.sort === "desc" || o.sort === "asc" ? o.sort : "asc");
701
+ const c = {
702
+ method: "POST",
703
+ headers: {
704
+ Authorization: this.config.readKey,
705
+ "Content-Type": "application/json",
706
+ "X-Sc-User-Id": this.userId
551
707
  },
552
- configurable: !0,
553
- enumerable: !0
554
- }), Object.defineProperty(i, a, {
555
- set(c) {
556
- const u = k(this);
557
- if ($) {
558
- const d = o & 32 ? this[a] : u.$hostElement$[a];
559
- typeof d > "u" && u.$instanceValues$.get(a) ? c = u.$instanceValues$.get(a) : !u.$instanceValues$.get(a) && d && u.$instanceValues$.set(a, d), $.apply(this, [Y(c, o)]), c = o & 32 ? this[a] : u.$hostElement$[a], W(this, a, c, t);
560
- return;
561
- }
562
- {
563
- if (!(s & 1) || !(t.$members$[a][0] & 4096)) {
564
- W(this, a, c, t), s & 1 && !u.$lazyInstance$ && u.$onReadyPromise$.then(() => {
565
- t.$members$[a][0] & 4096 && u.$lazyInstance$[a] !== u.$instanceValues$.get(a) && (u.$lazyInstance$[a] = c);
566
- });
567
- return;
568
- }
569
- const d = () => {
570
- const h = u.$lazyInstance$[a];
571
- !u.$instanceValues$.get(a) && h && u.$instanceValues$.set(a, h), u.$lazyInstance$[a] = Y(c, o), W(this, a, u.$lazyInstance$[a], t);
572
- };
573
- u.$lazyInstance$ ? d() : u.$onReadyPromise$.then(() => d());
574
- }
575
- }
576
- });
708
+ body: JSON.stringify(d)
709
+ }, s = await fetch(this.baseSearchUrl, c);
710
+ if (!s.ok)
711
+ throw new Error(
712
+ `Error: ${s.statusText} (Status: ${s.status})`
713
+ );
714
+ const h = await s.json();
715
+ return (e = this.parent.measureClient) == null || e.sendMeasureEvent("search_response_received", {
716
+ search_term: u,
717
+ number_of_documents: h.data.count
718
+ }), h;
719
+ } catch (d) {
720
+ throw console.error("Error parsing response:", d), d;
577
721
  }
578
- }), s & 1) {
579
- const a = /* @__PURE__ */ new Map();
580
- i.attributeChangedCallback = function(o, f, $) {
581
- v.jmp(() => {
582
- var c;
583
- const u = a.get(o);
584
- if (this.hasOwnProperty(u) && w.lazyLoad)
585
- $ = this[u], delete this[u];
586
- else {
587
- if (i.hasOwnProperty(u) && typeof this[u] == "number" && // cast type to number to avoid TS compiler issues
588
- this[u] == $)
589
- return;
590
- if (u == null) {
591
- const h = k(this), g = h == null ? void 0 : h.$flags$;
592
- if (g && !(g & 8) && g & 128 && $ !== f) {
593
- const S = h.$lazyInstance$, y = (c = t.$watchers$) == null ? void 0 : c[o];
594
- y == null || y.forEach((p) => {
595
- S[p] != null && S[p].call(S, $, f, o);
596
- });
597
- }
598
- return;
599
- }
722
+ }), this.parent = n, this.config = r, this.userId = a;
723
+ }
724
+ /**
725
+ * Getter for the base url used by the /search endpoint.
726
+ */
727
+ get baseSearchUrl() {
728
+ return `${this.config.endpointURL}/index/${this.config.index.join(",")}/search`;
729
+ }
730
+ }
731
+ class Oe {
732
+ constructor(n, r) {
733
+ if (f(this, "config"), f(this, "measureClient"), f(this, "searchClient"), f(this, "adClient"), f(this, "userId"), f(this, "requestTimeout"), f(this, "subscriptionEvents", {}), f(this, "getItems", (a, o, i) => {
734
+ const e = async () => {
735
+ (async () => {
736
+ var u, d;
737
+ const c = await ((u = this == null ? void 0 : this.searchClient) == null ? void 0 : u.getSearchResponse(a));
738
+ if (!c)
739
+ throw new Error("Search client was not initialized.");
740
+ const s = (d = c.data.hits || []) == null ? void 0 : d.map((h) => h.doc).filter((h) => !!h).map((h) => ({
741
+ type: "SearchDocument",
742
+ id: _(),
743
+ document: h
744
+ }));
745
+ s.length === 0 && this.emitEvent("no_results_returned", {
746
+ name: "no_results_returned"
747
+ }), o(c, s);
748
+ })(), (async () => {
749
+ if (this.adClient) {
750
+ const u = await this.adClient.getAdsForSearchParams(a);
751
+ i(u);
600
752
  }
601
- const d = Object.getOwnPropertyDescriptor(i, u);
602
- $ = $ === null && typeof this[u] == "boolean" ? !1 : $, $ !== this[u] && (!d.get || d.set) && (this[u] = $);
603
- });
604
- }, e.observedAttributes = Array.from(
605
- /* @__PURE__ */ new Set([
606
- ...Object.keys((r = t.$watchers$) != null ? r : {}),
607
- ...l.filter(
608
- ([o, f]) => f[0] & 15
609
- /* HasAttribute */
610
- ).map(([o, f]) => {
611
- const $ = f[1] || o;
612
- return a.set($, o), $;
613
- })
614
- ])
753
+ })();
754
+ };
755
+ clearTimeout(this.requestTimeout), this.config.searchDebounceDelay ? this.requestTimeout = setTimeout(
756
+ e,
757
+ this.config.searchDebounceDelay
758
+ ) : e();
759
+ }), !n.endpointURL || !n.index || !n.readKey)
760
+ throw new Error(
761
+ "Endpoint URL, Index value(s), and Read Key must be provided"
615
762
  );
616
- }
763
+ this.config = {
764
+ ...n,
765
+ // Strips off the trailing '/' from an endpointURL if one is accidentally added
766
+ endpointURL: _e(n.endpointURL)
767
+ }, this.userId = "", this.initClients(this.config, r), this.initInputForms(), this.startObservingMutations();
617
768
  }
618
- return e;
619
- }, wt = async (e, t, s, n) => {
620
- let r;
621
- if (!(t.$flags$ & 32)) {
622
- t.$flags$ |= 32;
623
- {
624
- const a = st(s, t);
625
- if (a && "then" in a) {
626
- const f = pt();
627
- r = await a, f();
628
- } else
629
- r = a;
630
- if (!r)
631
- throw new Error(`Constructor for "${s.$tagName$}#${t.$modeName$}" was not found`);
632
- r.isProxied || (s.$watchers$ = r.watchers, we(
633
- r,
634
- s,
635
- 2
636
- /* proxyState */
637
- ), r.isProxied = !0);
638
- const o = L("createInstance", s.$tagName$);
639
- t.$flags$ |= 8;
640
- try {
641
- new r(t);
642
- } catch (f) {
643
- O(f, e);
644
- }
645
- t.$flags$ &= -9, t.$flags$ |= 128, o(), J(t.$lazyInstance$, e);
646
- }
769
+ initInputForms() {
770
+ const n = document.querySelectorAll(
771
+ "searchcraft-input-form"
772
+ );
773
+ setTimeout(() => {
774
+ n.forEach((r) => {
775
+ r.core = this;
776
+ });
777
+ }, 40);
647
778
  }
648
- const i = t.$ancestorComponent$, l = () => se(t, !0);
649
- i && i["s-rc"] ? i["s-rc"].push(l) : l();
650
- }, J = (e, t) => {
651
- ne(e, "connectedCallback", void 0, t);
652
- }, Ot = (e) => {
653
- if (!(v.$flags$ & 1)) {
654
- const t = k(e), s = t.$cmpMeta$, n = L("connectedCallback", s.$tagName$);
655
- if (t.$flags$ & 1)
656
- t != null && t.$lazyInstance$ ? J(t.$lazyInstance$, e) : t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => J(t.$lazyInstance$, e));
657
- else {
658
- t.$flags$ |= 1, // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
659
- s.$flags$ & 12 && It(e);
660
- {
661
- let r = e;
662
- for (; r = r.parentNode || r.host; )
663
- if (r["s-p"]) {
664
- _e(t, t.$ancestorComponent$ = r);
665
- break;
666
- }
779
+ /**
780
+ * When changes happen in the DOM, we want to link any input forms found to the instance of the core.
781
+ */
782
+ startObservingMutations() {
783
+ new MutationObserver((n, r) => {
784
+ let a = !1;
785
+ for (const o of n)
786
+ o.type === "childList" && o.addedNodes.forEach((i) => {
787
+ i.nodeType === 1 && i.className.toLowerCase() === "searchcraft-input-form" && (a = !0);
788
+ });
789
+ a && this.initInputForms();
790
+ }).observe(document.body, { childList: !0, subtree: !0 });
791
+ }
792
+ initClients(n, r) {
793
+ setTimeout(async () => {
794
+ let a = this.config.userId;
795
+ switch (a || (a = await fe()), this.measureClient = new Te(n, r, a), this.searchClient = new Fe(this, n, a), n.adSource) {
796
+ case "adMarketplace":
797
+ this.adClient = new Ae(n);
798
+ break;
799
+ case "Nativo":
800
+ this.adClient = new xe(n);
801
+ break;
802
+ case "Custom":
803
+ this.adClient = new Ce(n);
804
+ break;
667
805
  }
668
- s.$members$ && Object.entries(s.$members$).map(([r, [i]]) => {
669
- if (i & 31 && e.hasOwnProperty(r)) {
670
- const l = e[r];
671
- delete e[r], e[r] = l;
672
- }
673
- }), wt(e, t, s);
674
- }
675
- n();
806
+ }, 300);
676
807
  }
677
- }, It = (e) => {
678
- const t = e["s-cr"] = T.createComment(
679
- ""
680
- );
681
- t["s-cn"] = !0, _(e, t, e.firstChild);
682
- }, ve = (e, t) => {
683
- ne(e, "disconnectedCallback", void 0, t || e);
684
- }, At = async (e) => {
685
- if (!(v.$flags$ & 1)) {
686
- const t = k(e);
687
- t != null && t.$lazyInstance$ ? ve(t.$lazyInstance$, e) : t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => ve(t.$lazyInstance$, e));
808
+ emitEvent(n, r) {
809
+ var a;
810
+ (a = this.subscriptionEvents[n]) == null || a.forEach((o) => {
811
+ o(r);
812
+ });
688
813
  }
689
- j.has(e) && j.delete(e), e.shadowRoot && j.has(e.shadowRoot) && j.delete(e.shadowRoot);
690
- }, Ft = (e, t = {}) => {
691
- var s;
692
- const n = L(), r = [], i = t.exclude || [], l = M.customElements, a = T.head, o = /* @__PURE__ */ a.querySelector("meta[charset]"), f = /* @__PURE__ */ T.createElement("style"), $ = [];
693
- let c, u = !0;
694
- Object.assign(v, t), v.$resourcesUrl$ = new URL(t.resourcesUrl || "./", T.baseURI).href;
695
- let d = !1;
696
- if (e.map((h) => {
697
- h[1].map((g) => {
698
- var S;
699
- const y = {
700
- $flags$: g[0],
701
- $tagName$: g[1],
702
- $members$: g[2],
703
- $listeners$: g[3]
814
+ subscribe(n, r) {
815
+ return this.subscriptionEvents[n] || (this.subscriptionEvents[n] = []), this.subscriptionEvents[n].push(
816
+ r
817
+ ), () => {
818
+ this.subscriptionEvents[n] = this.subscriptionEvents[n].filter((a) => a !== r);
819
+ };
820
+ }
821
+ }
822
+ const Ue = "@searchcraft/vue-sdk", De = "0.9.0", Be = "Searchcraft Vue SDK.", Ne = "module", je = "Apache-2.0", qe = ["searchcraft"], Ve = { dev: "vite", clean: "rm -rf dist", build: "yarn clean && vite build && yarn docs", docs: "typedoc --options typedoc.json", preview: "vite preview", "build-only": "vite build", "type-check": "vue-tsc --build" }, Ge = { type: "git", url: "https://bitbucket.org/madebychalk/searchcraft-javascript-sdks/" }, We = { node: ">=18.0.0", npm: ">=10.0.0" }, $e = "./dist/index.umd.js", He = "./dist/index.es.js", Ke = "./dist/index.d.ts", ze = { ".": { types: "./dist/index.d.ts", import: "./dist/index.es.js", require: "./dist/index.umd.js" }, "./components": "./dist/components/index.d.ts", "./plugin": "./dist/plugin.d.ts" }, Ye = ["dist"], Je = { vue: "^3.5.13" }, Xe = { "@tsconfig/node22": "^22.0.0", "@types/node": "^22.10.7", "@vitejs/plugin-vue": "^5.2.1", "@vitejs/plugin-vue-jsx": "^4.1.1", "@vue/runtime-dom": "^3.5.13", "@vue/tsconfig": "^0.7.0", "npm-run-all2": "^7.0.2", vite: "^6.0.11", "vite-plugin-dts": "^4.5.0", "vite-plugin-vue-devtools": "^7.7.0", "vue-docgen-web-types": "^0.1.8", "vue-tsc": "^2.2.0" }, H = {
823
+ name: Ue,
824
+ version: De,
825
+ private: !1,
826
+ description: Be,
827
+ type: Ne,
828
+ license: je,
829
+ keywords: qe,
830
+ scripts: Ve,
831
+ repository: Ge,
832
+ engines: We,
833
+ main: $e,
834
+ module: He,
835
+ types: Ke,
836
+ exports: ze,
837
+ files: Ye,
838
+ peerDependencies: Je,
839
+ devDependencies: Xe
840
+ }, U = "routerLink", K = "navManager", Qe = "router", Ze = "aria", x = Symbol(), z = { default: x }, Y = (t) => (t == null ? void 0 : t.split(" ")) || [], et = (t, n, r = []) => {
841
+ var a;
842
+ return [...Array.from(((a = t.value) == null ? void 0 : a.classList) || []), ...r].filter((o, i, e) => !n.has(o) && e.indexOf(o) === i);
843
+ }, E = (t, n, r = [], a = [], o, i) => {
844
+ const e = te((u, { attrs: d, slots: c, emit: s }) => {
845
+ var j;
846
+ const h = ne(), T = new Set(Y(d.class)), R = re(), N = ((j = R == null ? void 0 : R.appContext) == null ? void 0 : j.provides[K]) ? ae(K) : void 0, Z = (A) => {
847
+ const { routerLink: F } = u;
848
+ if (F !== x)
849
+ if (N !== void 0) {
850
+ A.preventDefault();
851
+ let P = { event: A };
852
+ for (const C in u) {
853
+ const m = u[C];
854
+ u.hasOwnProperty(C) && C.startsWith(Qe) && m !== x && (P[C] = m);
855
+ }
856
+ N.navigate(P);
857
+ } else
858
+ console.warn("Tried to navigate, but no router was found. Make sure you have mounted Vue Router.");
859
+ };
860
+ return () => {
861
+ u[o], Y(d.class).forEach((m) => {
862
+ T.add(m);
863
+ });
864
+ const A = u.onClick, F = (m) => {
865
+ A !== void 0 && A(m), m.defaultPrevented || Z(m);
704
866
  };
705
- y.$flags$ & 4 && (d = !0), y.$members$ = g[2], y.$watchers$ = (S = g[4]) != null ? S : {};
706
- const p = y.$tagName$, I = class extends HTMLElement {
707
- // StencilLazyHost
708
- constructor(b) {
709
- super(b), this.hasRegisteredEventListeners = !1, b = this, tt(b, y);
710
- }
711
- connectedCallback() {
712
- k(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), c && (clearTimeout(c), c = null), u ? $.push(this) : v.jmp(() => Ot(this));
713
- }
714
- disconnectedCallback() {
715
- v.jmp(() => At(this)), v.raf(() => {
716
- var b;
717
- const P = k(this);
718
- ((b = P == null ? void 0 : P.$vnode$) == null ? void 0 : b.$elm$) instanceof Node && !P.$vnode$.$elm$.isConnected && delete P.$vnode$.$elm$;
719
- });
720
- }
721
- componentOnReady() {
722
- return k(this).$onReadyPromise$;
723
- }
867
+ let P = {
868
+ ref: h,
869
+ class: et(h, T),
870
+ onClick: F
724
871
  };
725
- y.$lazyBundleId$ = h[0], !i.includes(p) && !l.get(p) && (r.push(p), l.define(
726
- p,
727
- we(
728
- I,
729
- y,
730
- 1
731
- /* isElementConstructor */
732
- )
733
- ));
734
- });
735
- }), r.length > 0 && (d && (f.textContent += rt), f.textContent += r.sort() + nt, f.innerHTML.length)) {
736
- f.setAttribute("data-styles", "");
737
- const h = (s = v.$nonce$) != null ? s : ct(T);
738
- h != null && f.setAttribute("nonce", h), a.insertBefore(f, o ? o.nextSibling : a.firstChild);
739
- }
740
- u = !1, $.length ? $.map((h) => h.connectedCallback()) : v.jmp(() => c = setTimeout(Le, 30)), n();
741
- };
742
- const Dt = () => {
743
- }, jt = async (e, t) => {
744
- if (!(typeof window > "u"))
745
- return await Dt(), Ft([["searchcraft-base-search-results", [[4, "searchcraft-base-search-results", { customStylesForResults: [1, "custom-styles-for-results"], searchResultMappings: [16], resultImagePlacement: [1, "result-image-placement"], buttonLabel: [1, "button-label"], buttonTarget: [1, "button-target"], buttonRel: [1, "button-rel"], containerTarget: [1, "container-target"], containerRel: [1, "container-rel"], searchTerm: [32], searchClientResponseItems: [32], adClientResponseItems: [32], searchResultsPerPage: [32], searchResultsPage: [32] }]]], ["searchcraft-filter-panel", [[0, "searchcraft-filter-panel", { items: [16], unsubscribe: [32], lastSearchTerm: [32] }]]], ["searchcraft-pagination", [[0, "searchcraft-pagination", { customStyles: [1, "custom-styles"], searchTerm: [32], searchResultsPerPage: [32], searchResultsPage: [32], searchResultsCount: [32], searchResultsPagesCount: [32], searchResultsRangeMin: [32], searchResultsRangeMax: [32], setSearchResultsPage: [32] }]]], ["searchcraft-search-results-per-page", [[0, "searchcraft-search-results-per-page", { increment: [8], customStyles: [1, "custom-styles"], searchTerm: [32], searchResultsPage: [32], searchResultsPerPage: [32], searchResultsCount: [32], searchResultsPagesCount: [32], initialSearchResultsPerPage: [32], setSearchResultsPerPage: [32], setSearchResultsPage: [32] }]]], ["searchcraft-popover-button", [[4, "searchcraft-popover-button"]]], ["searchcraft-results-info", [[0, "searchcraft-results-info", { customFormatter: [16], customStyles: [1, "custom-styles"], searchTerm: [32], searchResultsPage: [32], searchResultsPerPage: [32], searchResultsCount: [32], count: [32], range: [32], responseTime: [32] }]]], ["searchcraft-theme", [[0, "searchcraft-theme", { theme: [1], customTheme: [1, "custom-theme"] }]]], ["searchcraft-input-form_2", [[0, "searchcraft-input-form", { config: [16], autoSearch: [4, "auto-search"], buttonPlacement: [1, "button-placement"], buttonLabel: [1, "button-label"], inputLabel: [1, "input-label"], customStyles: [1, "custom-styles"], placeholderValue: [1, "placeholder-value"], searchTerm: [1, "search-term"], inputValue: [32], error: [32], isSearchcraftInitialized: [32] }, null, { config: ["onConfigChange"] }], [0, "searchcraft-popover-list-view", { popoverResultMappings: [16], searchClientResponseItems: [16], adClientResponseItems: [16], searchResultsPage: [2, "search-results-page"], searchResultsPerPage: [2, "search-results-per-page"] }]]], ["searchcraft-popover-form", [[0, "searchcraft-popover-form", { config: [16], type: [1], popoverResultMappings: [16], hotkey: [1], hotkeyModifier: [1, "hotkey-modifier"], isPopoverVisibleInState: [32], unsubscribe: [32], searchClientResponseItems: [32], adClientResponseItems: [32], searchTerm: [32], isFocused: [32], breakpointSm: [32], breakpointMd: [32], breakpointLg: [32], searchResultsPage: [32], searchResultsPerPage: [32], modalElement: [32] }]]], ["searchcraft-select", [[0, "searchcraft-select", { caption: [1], disabled: [4], inputId: [1, "input-id"], label: [1], labelId: [1, "label-id"], name: [1], options: [1], customStyles: [1, "custom-styles"], searchResultsPerPage: [32], setSearchResultsPage: [32], setSearchResultsPerPage: [32] }]]], ["searchcraft-base-search-result_2", [[0, "searchcraft-base-search-result", { item: [16], searchResultMappings: [16], containerTarget: [1, "container-target"], containerRel: [1, "container-rel"], buttonTarget: [1, "button-target"], buttonRel: [1, "button-rel"], imagePlacement: [1, "image-placement"], customStyles: [1, "custom-styles"], documentPosition: [2, "document-position"], titleContent: [32], subtitleContent: [32], bodyContent: [32], footerContent: [32], buttonLabel: [32], buttonHref: [32], containerHref: [32], imageSrc: [32], imageAlt: [32] }], [0, "searchcraft-base-search-result-ad", { adClientResponseItem: [16] }]]], ["searchcraft-facet-list_3", [[0, "searchcraft-facet-list", { fieldName: [1, "field-name"], baseFacetRoot: [32], facetRoot: [32], selectedPaths: [32], lastTimeTaken: [32], hasNewSearchTerm: [32], lastSearchTerm: [32], lastSearchMode: [32], lastSortType: [32], unsubscribe: [32] }], [0, "searchcraft-slider", { max: [2], min: [2], granularity: [2], dataType: [1, "data-type"], endValue: [32], startValue: [32], lastFocusedHandle: [32] }], [0, "searchcraft-toggle-button", { label: [1], subLabel: [1, "sub-label"], isActive: [32], unsubscribe: [32], lastSearchTerm: [32] }]]], ["searchcraft-popover-list-item_2", [[0, "searchcraft-popover-list-item", { item: [16], popoverResultMappings: [16], documentPosition: [2, "document-position"], href: [32], imageSrc: [32], imageAlt: [32], titleContent: [32], subtitleContent: [32] }], [0, "searchcraft-popover-list-item-ad", { adClientResponseItem: [16] }]]], ["searchcraft-button_3", [[0, "searchcraft-input-label", { inputLabelClassName: [1, "input-label-class-name"], label: [1] }], [0, "searchcraft-button", { hierarchy: [1], disabled: [4], icon: [16], iconOnly: [4, "icon-only"], iconPosition: [1, "icon-position"], label: [1], type: [1] }], [0, "searchcraft-error-message", { errorMessage: [1, "error-message"] }]]]], t);
746
- };
747
- (function() {
748
- if (typeof window < "u" && window.Reflect !== void 0 && window.customElements !== void 0) {
749
- var e = HTMLElement;
750
- window.HTMLElement = function() {
751
- return Reflect.construct(e, [], this.constructor);
752
- }, HTMLElement.prototype = e.prototype, HTMLElement.prototype.constructor = HTMLElement, Object.setPrototypeOf(HTMLElement, e);
872
+ for (const m in u) {
873
+ const q = u[m];
874
+ (u.hasOwnProperty(m) && q !== x || m.startsWith(Ze)) && (P[m] = q);
875
+ const V = "on" + m.slice(0, 1).toUpperCase() + m.slice(1), ee = d[V];
876
+ h.value && d.hasOwnProperty(V) && "addEventListener" in h.value && h.value.addEventListener(m, ee);
877
+ }
878
+ return U in u && u[U] !== x && (P = {
879
+ ...P,
880
+ href: u[U]
881
+ }), oe(t, P, c.default && c.default());
882
+ };
883
+ });
884
+ if (typeof e != "function") {
885
+ let u = [], d = {};
886
+ d.ROUTER_LINK_VALUE = z, r.forEach((c) => d[c] = z), u = a, e.name = t, e.emits = u, e.props = d;
753
887
  }
754
- })();
755
- const Kt = {
756
- async install() {
757
- jt();
888
+ return e;
889
+ }, tt = /* @__PURE__ */ E("searchcraft-base-search-results", void 0, [
890
+ "customStylesForResults",
891
+ "searchResultMappings",
892
+ "resultImagePlacement",
893
+ "buttonLabel",
894
+ "buttonTarget",
895
+ "buttonRel",
896
+ "containerTarget",
897
+ "containerRel"
898
+ ]), nt = /* @__PURE__ */ E("searchcraft-filter-panel", void 0, [
899
+ "items"
900
+ ]), rt = /* @__PURE__ */ E("searchcraft-input-form", void 0, [
901
+ "autoSearch",
902
+ "buttonPlacement",
903
+ "buttonLabel",
904
+ "inputLabel",
905
+ "customStyles",
906
+ "placeholderValue",
907
+ "searchTerm",
908
+ "core",
909
+ "inputFocus",
910
+ "inputBlur",
911
+ "inputInit"
912
+ ], [
913
+ "inputFocus",
914
+ "inputBlur",
915
+ "inputInit"
916
+ ]), at = /* @__PURE__ */ E("searchcraft-pagination", void 0, [
917
+ "customStyles"
918
+ ]), ot = /* @__PURE__ */ E("searchcraft-popover-button"), it = /* @__PURE__ */ E("searchcraft-popover-form", void 0, [
919
+ "type",
920
+ "popoverResultMappings",
921
+ "hotkey",
922
+ "hotkeyModifier"
923
+ ]), st = /* @__PURE__ */ E("searchcraft-results-info", void 0, [
924
+ "customFormatter",
925
+ "customStyles"
926
+ ]), ct = /* @__PURE__ */ E("searchcraft-search-results-per-page", void 0, [
927
+ "increment",
928
+ "customStyles"
929
+ ]), ut = /* @__PURE__ */ E("searchcraft-theme", void 0, [
930
+ "theme",
931
+ "customTheme"
932
+ ]), lt = tt, ht = nt, ft = rt, mt = ot, pt = it, gt = st, vt = ut, yt = at, wt = ct;
933
+ class bt extends Oe {
934
+ constructor(n) {
935
+ super(n, {
936
+ sdkName: H.name,
937
+ sdkVersion: H.version
938
+ });
758
939
  }
759
- };
940
+ }
760
941
  export {
761
- Kt as ComponentLibrary,
762
- Ut as SearchcraftBaseSearchResults,
763
- zt as SearchcraftFilterPanel,
764
- Ht as SearchcraftInputForm,
765
- Gt as SearchcraftPagination,
766
- Mt as SearchcraftPopoverButton,
767
- Bt as SearchcraftPopoverForm,
768
- Wt as SearchcraftResultsInfo,
769
- Xt as SearchcraftSearchResultsPerPage,
770
- qt as SearchcraftTheme
942
+ bt as Searchcraft,
943
+ lt as SearchcraftBaseSearchResults,
944
+ ht as SearchcraftFilterPanel,
945
+ ft as SearchcraftInputForm,
946
+ yt as SearchcraftPagination,
947
+ mt as SearchcraftPopoverButton,
948
+ pt as SearchcraftPopoverForm,
949
+ gt as SearchcraftResultsInfo,
950
+ wt as SearchcraftSearchResultsPerPage,
951
+ vt as SearchcraftTheme
771
952
  };
772
953
  //# sourceMappingURL=index.es.js.map