diff --git a/dist/lib/localizations.d.ts b/dist/lib/localizations.d.ts index 1f6fdbe..557dbd4 100644 --- a/dist/lib/localizations.d.ts +++ b/dist/lib/localizations.d.ts @@ -123,6 +123,10 @@ declare const localizations: { en: string; fr: string; }; + archivePlace: { + en: string; + fr: string; + }; origDate: { en: string; fr: string; @@ -139,14 +143,26 @@ declare const localizations: { en: string; fr: string; }; + formerShelfmark: { + en: string; + fr: string; + }; shelfmarks: { en: string; fr: string; }; + shelfmark: { + en: string; + fr: string; + }; shelfmarkSections: { en: string; fr: string; }; + shelfmarkSection: { + en: string; + fr: string; + }; provenance: { en: string; fr: string; @@ -219,6 +235,38 @@ declare const localizations: { en: string; fr: string; }; + catalogNumber: { + en: string; + fr: string; + }; + numberOfFolios: { + en: string; + fr: string; + }; + pageSize: { + en: string; + fr: string; + }; + textBlockSize: { + en: string; + fr: string; + }; + numberOfLines: { + en: string; + fr: string; + }; + places: { + en: string; + fr: string; + }; + dates: { + en: string; + fr: string; + }; + measures: { + en: string; + fr: string; + }; }; export declare const getLocalizedValues: (items: any[], locale: 'en' | 'fr') => any[]; export default localizations; diff --git a/dist/sapientia-search.js b/dist/sapientia-search.js index d025539..8a7f3a8 100644 --- a/dist/sapientia-search.js +++ b/dist/sapientia-search.js @@ -1,5 +1,5 @@ import * as te from "react"; -import U, { useRef as ut, useContext as Kt, createElement as sl, createContext as Qn, useState as Et, useLayoutEffect as ul, useEffect as Pt, useMemo as Yn, useReducer as cl, useCallback as ll, version as fl, Fragment as dl, forwardRef as Je } from "react"; +import U, { useRef as ut, useContext as Kt, createElement as sl, createContext as Qn, useState as xt, useLayoutEffect as ul, useEffect as Pt, useMemo as Yn, useReducer as cl, useCallback as ll, version as fl, Fragment as dl, forwardRef as Je } from "react"; var hl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; function cr(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; @@ -70,10 +70,10 @@ function vl() { me.unshift("Warning: " + k), Function.prototype.apply.call(console[O], console, me); } } - var S = !1, m = !1, E = !1, j = !1, D = !1, w; + var S = !1, m = !1, x = !1, j = !1, D = !1, w; w = Symbol.for("react.module.reference"); function _(O) { - return !!(typeof O == "string" || typeof O == "function" || O === n || O === a || D || O === i || O === u || O === l || j || O === d || S || m || E || typeof O == "object" && O !== null && (O.$$typeof === h || O.$$typeof === f || O.$$typeof === o || O.$$typeof === s || O.$$typeof === c || // This needs to include all possible module reference object + return !!(typeof O == "string" || typeof O == "function" || O === n || O === a || D || O === i || O === u || O === l || j || O === d || S || m || x || typeof O == "object" && O !== null && (O.$$typeof === h || O.$$typeof === f || O.$$typeof === o || O.$$typeof === s || O.$$typeof === c || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. @@ -215,7 +215,7 @@ function vl() { var H = typeof WeakMap == "function" ? WeakMap : Map; K = new H(); } - function x(O, k) { + function E(O, k) { if (!O || ee) return ""; { @@ -265,18 +265,18 @@ function vl() { if (St && ie && typeof St.stack == "string") { for (var he = St.stack.split(` `), He = ie.stack.split(` -`), Ie = he.length - 1, ke = He.length - 1; Ie >= 1 && ke >= 0 && he[Ie] !== He[ke]; ) +`), Ne = he.length - 1, ke = He.length - 1; Ne >= 1 && ke >= 0 && he[Ne] !== He[ke]; ) ke--; - for (; Ie >= 1 && ke >= 0; Ie--, ke--) - if (he[Ie] !== He[ke]) { - if (Ie !== 1 || ke !== 1) + for (; Ne >= 1 && ke >= 0; Ne--, ke--) + if (he[Ne] !== He[ke]) { + if (Ne !== 1 || ke !== 1) do - if (Ie--, ke--, ke < 0 || he[Ie] !== He[ke]) { + if (Ne--, ke--, ke < 0 || he[Ne] !== He[ke]) { var Ve = ` -` + he[Ie].replace(" at new ", " at "); +` + he[Ne].replace(" at new ", " at "); return O.displayName && Ve.includes("") && (Ve = Ve.replace("", O.displayName)), typeof O == "function" && K.set(O, Ve), Ve; } - while (Ie >= 1 && ke >= 0); + while (Ne >= 1 && ke >= 0); break; } } @@ -287,7 +287,7 @@ function vl() { return typeof O == "function" && K.set(O, jo), jo; } function fe(O, k, M) { - return x(O, !1); + return E(O, !1); } function pe(O) { var k = O.prototype; @@ -297,7 +297,7 @@ function vl() { if (O == null) return ""; if (typeof O == "function") - return x(O, pe(O)); + return E(O, pe(O)); if (typeof O == "string") return A(O); switch (O) { @@ -322,13 +322,13 @@ function vl() { } return ""; } - var je = Object.prototype.hasOwnProperty, de = {}, xe = R.ReactDebugCurrentFrame; + var je = Object.prototype.hasOwnProperty, de = {}, Ee = R.ReactDebugCurrentFrame; function qe(O) { if (O) { var k = O._owner, M = ue(O.type, O._source, k ? k.type : null); - xe.setExtraStackFrame(M); + Ee.setExtraStackFrame(M); } else - xe.setExtraStackFrame(null); + Ee.setExtraStackFrame(null); } function Le(O, k, M, ie, ce) { { @@ -342,8 +342,8 @@ function vl() { throw He.name = "Invariant Violation", He; } he = O[ve](k, ve, ie, M, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); - } catch (Ie) { - he = Ie; + } catch (Ne) { + he = Ne; } he && !(he instanceof Error) && (qe(ce), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ie || "React class", M, ve, typeof he), qe(null)), he instanceof Error && !(he.message in de) && (de[he.message] = !0, qe(ce), y("Failed %s type: %s", M, he.message), qe(null)); } @@ -460,9 +460,9 @@ function vl() { for (me in k) je.call(k, me) && !Ue.hasOwnProperty(me) && (ve[me] = k[me]); if (O && O.defaultProps) { - var Ie = O.defaultProps; - for (me in Ie) - ve[me] === void 0 && (ve[me] = Ie[me]); + var Ne = O.defaultProps; + for (me in Ne) + ve[me] === void 0 && (ve[me] = Ne[me]); } if (he || He) { var ke = typeof O == "function" ? O.displayName || O.name || "Unknown" : O; @@ -597,8 +597,8 @@ Check the top-level render call using <` + M + ">."); (O === void 0 || typeof O == "object" && O !== null && Object.keys(O).length === 0) && (he += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); var He = dn(ce); He ? he += He : he += Ut(); - var Ie; - O === null ? Ie = "null" : lt(O) ? Ie = "array" : O !== void 0 && O.$$typeof === t ? (Ie = "<" + (F(O.type) || "Unknown") + " />", he = " Did you accidentally export a JSX literal instead of a component?") : Ie = typeof O, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ie, he); + var Ne; + O === null ? Ne = "null" : lt(O) ? Ne = "array" : O !== void 0 && O.$$typeof === t ? (Ne = "<" + (F(O.type) || "Unknown") + " />", he = " Did you accidentally export a JSX literal instead of a component?") : Ne = typeof O, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ne, he); } var ke = hr(O, k, M, ce, me); if (ke == null) @@ -830,25 +830,25 @@ var T = $i.exports; }), _; } g.call(b.prototype); - function E(w, _) { + function x(w, _) { _ || (_ = {}), this.type = "default", this.status = _.status === void 0 ? 200 : _.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in _ ? _.statusText : "OK", this.headers = new u(_.headers), this.url = _.url || "", this._initBody(w); } - g.call(E.prototype), E.prototype.clone = function() { - return new E(this._bodyInit, { + g.call(x.prototype), x.prototype.clone = function() { + return new x(this._bodyInit, { status: this.status, statusText: this.statusText, headers: new u(this.headers), url: this.url }); - }, E.error = function() { - var w = new E(null, { status: 0, statusText: "" }); + }, x.error = function() { + var w = new x(null, { status: 0, statusText: "" }); return w.type = "error", w; }; var j = [301, 302, 303, 307, 308]; - E.redirect = function(w, _) { + x.redirect = function(w, _) { if (j.indexOf(_) === -1) throw new RangeError("Invalid status code"); - return new E(null, { status: _, headers: { location: w } }); + return new x(null, { status: _, headers: { location: w } }); }, t.DOMException = e.DOMException; try { new t.DOMException(); @@ -876,7 +876,7 @@ var T = $i.exports; }; oe.url = "responseURL" in Y ? Y.responseURL : oe.headers.get("X-Request-URL"); var J = "response" in Y ? Y.response : Y.responseText; - W(new E(J, oe)); + W(new x(J, oe)); }, Y.onerror = function() { Z(new TypeError("Network request failed")); }, Y.ontimeout = function() { @@ -890,7 +890,7 @@ var T = $i.exports; }), Y.send(typeof F._bodyInit > "u" ? null : F._bodyInit); }); } - return D.polyfill = !0, e.fetch || (e.fetch = D, e.Headers = u, e.Request = b, e.Response = E), t.Headers = u, t.Request = b, t.Response = E, t.fetch = D, Object.defineProperty(t, "__esModule", { value: !0 }), t; + return D.polyfill = !0, e.fetch || (e.fetch = D, e.Headers = u, e.Request = b, e.Response = x), t.Headers = u, t.Request = b, t.Response = x, t.fetch = D, Object.defineProperty(t, "__esModule", { value: !0 }), t; })({}); })(typeof self < "u" ? self : hl); })(); @@ -1120,14 +1120,14 @@ function ni(e) { }, {}); return r; } -function El(e) { +function xl(e) { try { return e = Sl(e), e = Ol(e), e; } catch { throw new mt("The provided host is not valid."); } } -function xl(e) { +function El(e) { if (Array.isArray(e)) return e.reduce(function(r, n) { return r[n[0]] = n[1], r; @@ -1141,7 +1141,7 @@ function xl(e) { return Object.assign({}, e); } function _l(e) { - var t, r, n = "X-Meilisearch-Client", i = "Meilisearch JavaScript (v".concat(Pl, ")"), a = "Content-Type", o = "Authorization", s = xl((r = (t = e.requestConfig) === null || t === void 0 ? void 0 : t.headers) !== null && r !== void 0 ? r : {}); + var t, r, n = "X-Meilisearch-Client", i = "Meilisearch JavaScript (v".concat(Pl, ")"), a = "Content-Type", o = "Authorization", s = El((r = (t = e.requestConfig) === null || t === void 0 ? void 0 : t.headers) !== null && r !== void 0 ? r : {}); if (e.apiKey && !s[o] && (s[o] = "Bearer ".concat(e.apiKey)), s[a] || (s["Content-Type"] = "application/json"), e.clientAgents && Array.isArray(e.clientAgents)) { var c = e.clientAgents.concat(i); s[n] = c.join(" ; "); @@ -1159,7 +1159,7 @@ var Dn = ( function e(t) { this.headers = _l(t), this.requestConfig = t.requestConfig, this.httpClient = t.httpClient; try { - var r = El(t.host); + var r = xl(t.host); this.url = new URL(r); } catch { throw new mt("The provided host is not valid."); @@ -2850,8 +2850,8 @@ function Cu(e) { addPagination: function() { var b = Bl(y, l, u); if (h.finite) { - var S = Vl(h, b), m = S.hitsPerPage, E = S.page; - t.hitsPerPage = m, t.page = E; + var S = Vl(h, b), m = S.hitsPerPage, x = S.page; + t.hitsPerPage = m, t.page = x; } else { var j = ql(h, b), D = j.limit, w = j.offset; t.limit = D, t.offset = w; @@ -2861,11 +2861,11 @@ function Cu(e) { f != null && f.length && (t.sort = Array.isArray(f) ? f : [f]); }, addGeoSearchFilter: function() { - var b = e.insideBoundingBox, S = e.aroundLatLng, m = e.aroundRadius, E = e.minimumAroundRadius, j = Hl({ + var b = e.insideBoundingBox, S = e.aroundLatLng, m = e.aroundRadius, x = e.minimumAroundRadius, j = Hl({ insideBoundingBox: b, aroundLatLng: S, aroundRadius: m, - minimumAroundRadius: E + minimumAroundRadius: x }); j && (t.filter ? t.filter.unshift(j) : t.filter = [j]); }, @@ -3090,7 +3090,7 @@ function Ha(e, t, r) { */ search: function(l) { return Mn(this, void 0, void 0, function() { - var f, h, d, p, v, g, R, y, b, S, m, E; + var f, h, d, p, v, g, R, y, b, S, m, x; return Ln(this, function(j) { switch (j.label) { case 0: @@ -3110,7 +3110,7 @@ function Ha(e, t, r) { case 2: return S = j.sent(), m = sf(S, c, u), [2, m]; case 3: - throw E = j.sent(), console.error(E), new Error(E); + throw x = j.sent(), console.error(x), new Error(x); case 4: return [ 2 @@ -3188,8 +3188,8 @@ function gf() { } } } - var b = a, S = e, m = s, E = r, j = f, D = l, w = t, _ = i, W = n, Z = c; - return Pe.ContextConsumer = o, Pe.ContextProvider = b, Pe.Element = S, Pe.ForwardRef = m, Pe.Fragment = E, Pe.Lazy = j, Pe.Memo = D, Pe.Portal = w, Pe.Profiler = _, Pe.StrictMode = W, Pe.Suspense = Z, Pe.isAsyncMode = function() { + var b = a, S = e, m = s, x = r, j = f, D = l, w = t, _ = i, W = n, Z = c; + return Pe.ContextConsumer = o, Pe.ContextProvider = b, Pe.Element = S, Pe.ForwardRef = m, Pe.Fragment = x, Pe.Lazy = j, Pe.Memo = D, Pe.Portal = w, Pe.Profiler = _, Pe.StrictMode = W, Pe.Suspense = Z, Pe.isAsyncMode = function() { return !1; }, Pe.isConcurrentMode = function() { return !1; @@ -3219,7 +3219,7 @@ function gf() { return typeof F == "string" || typeof F == "function" || F === r || F === i || F === v || F === n || F === c || F === u || F === g || typeof F == "object" && F !== null && (F.$$typeof === f || F.$$typeof === l || F.$$typeof === a || F.$$typeof === o || F.$$typeof === s || F.$$typeof === p || F.$$typeof === h || F[0] === d); }, Pe.typeOf = y, Pe; } -var Ee = {}; +var xe = {}; /** @license React v17.0.2 * react-is.development.js * @@ -3242,8 +3242,8 @@ function yf() { } function S(H) { if (typeof H == "object" && H !== null) { - var x = H.$$typeof; - switch (x) { + var E = H.$$typeof; + switch (E) { case e: var fe = H.type; switch (fe) { @@ -3263,15 +3263,15 @@ function yf() { case a: return pe; default: - return x; + return E; } } case t: - return x; + return E; } } } - var m = o, E = a, j = e, D = s, w = r, _ = f, W = l, Z = t, F = i, Y = n, re = c, oe = !1, J = !1; + var m = o, x = a, j = e, D = s, w = r, _ = f, W = l, Z = t, F = i, Y = n, re = c, oe = !1, J = !1; function z(H) { return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1; } @@ -3311,17 +3311,17 @@ function yf() { function K(H) { return S(H) === c; } - Ee.ContextConsumer = m, Ee.ContextProvider = E, Ee.Element = j, Ee.ForwardRef = D, Ee.Fragment = w, Ee.Lazy = _, Ee.Memo = W, Ee.Portal = Z, Ee.Profiler = F, Ee.StrictMode = Y, Ee.Suspense = re, Ee.isAsyncMode = z, Ee.isConcurrentMode = ae, Ee.isContextConsumer = C, Ee.isContextProvider = L, Ee.isElement = I, Ee.isForwardRef = $, Ee.isFragment = N, Ee.isLazy = B, Ee.isMemo = P, Ee.isPortal = Q, Ee.isProfiler = A, Ee.isStrictMode = ee, Ee.isSuspense = K, Ee.isValidElementType = b, Ee.typeOf = S; - }()), Ee; + xe.ContextConsumer = m, xe.ContextProvider = x, xe.Element = j, xe.ForwardRef = D, xe.Fragment = w, xe.Lazy = _, xe.Memo = W, xe.Portal = Z, xe.Profiler = F, xe.StrictMode = Y, xe.Suspense = re, xe.isAsyncMode = z, xe.isConcurrentMode = ae, xe.isContextConsumer = C, xe.isContextProvider = L, xe.isElement = I, xe.isForwardRef = $, xe.isFragment = N, xe.isLazy = B, xe.isMemo = P, xe.isPortal = Q, xe.isProfiler = A, xe.isStrictMode = ee, xe.isSuspense = K, xe.isValidElementType = b, xe.typeOf = S; + }()), xe; } process.env.NODE_ENV === "production" ? Ni.exports = gf() : Ni.exports = yf(); var Wa = Ni.exports; function bf(e) { function t(I, $, N, B, P) { - for (var Q = 0, A = 0, ee = 0, K = 0, H, x, fe = 0, pe = 0, ue, je = ue = H = 0, de = 0, xe = 0, qe = 0, Le = 0, ct = N.length, lt = ct - 1, Ke, le = "", _e = "", Tt = "", ot = "", Ue; de < ct; ) { - if (x = N.charCodeAt(de), de === lt && A + K + ee + Q !== 0 && (A !== 0 && (x = A === 47 ? 10 : 47), K = ee = Q = 0, ct++, lt++), A + K + ee + Q === 0) { - if (de === lt && (0 < xe && (le = le.replace(h, "")), 0 < le.trim().length)) { - switch (x) { + for (var Q = 0, A = 0, ee = 0, K = 0, H, E, fe = 0, pe = 0, ue, je = ue = H = 0, de = 0, Ee = 0, qe = 0, Le = 0, ct = N.length, lt = ct - 1, Ke, le = "", _e = "", Tt = "", ot = "", Ue; de < ct; ) { + if (E = N.charCodeAt(de), de === lt && A + K + ee + Q !== 0 && (A !== 0 && (E = A === 47 ? 10 : 47), K = ee = Q = 0, ct++, lt++), A + K + ee + Q === 0) { + if (de === lt && (0 < Ee && (le = le.replace(h, "")), 0 < le.trim().length)) { + switch (E) { case 32: case 9: case 59: @@ -3331,12 +3331,12 @@ function bf(e) { default: le += N.charAt(de); } - x = 59; + E = 59; } - switch (x) { + switch (E) { case 123: for (le = le.trim(), H = le.charCodeAt(0), ue = 1, Le = ++de; de < ct; ) { - switch (x = N.charCodeAt(de)) { + switch (E = N.charCodeAt(de)) { case 123: ue++; break; @@ -3344,20 +3344,20 @@ function bf(e) { ue--; break; case 47: - switch (x = N.charCodeAt(de + 1)) { + switch (E = N.charCodeAt(de + 1)) { case 42: case 47: e: { for (je = de + 1; je < lt; ++je) switch (N.charCodeAt(je)) { case 47: - if (x === 42 && N.charCodeAt(je - 1) === 42 && de + 2 !== je) { + if (E === 42 && N.charCodeAt(je - 1) === 42 && de + 2 !== je) { de = je + 1; break e; } break; case 10: - if (x === 47) { + if (E === 47) { de = je + 1; break e; } @@ -3367,12 +3367,12 @@ function bf(e) { } break; case 91: - x++; + E++; case 40: - x++; + E++; case 34: case 39: - for (; de++ < lt && N.charCodeAt(de) !== x; ) + for (; de++ < lt && N.charCodeAt(de) !== E; ) ; } if (ue === 0) @@ -3381,20 +3381,20 @@ function bf(e) { } switch (ue = N.substring(Le, de), H === 0 && (H = (le = le.replace(f, "").trim()).charCodeAt(0)), H) { case 64: - switch (0 < xe && (le = le.replace(h, "")), x = le.charCodeAt(1), x) { + switch (0 < Ee && (le = le.replace(h, "")), E = le.charCodeAt(1), E) { case 100: case 109: case 115: case 45: - xe = $; + Ee = $; break; default: - xe = oe; + Ee = oe; } - if (ue = t($, xe, ue, x, P + 1), Le = ue.length, 0 < z && (xe = r(oe, le, qe), Ue = s(3, ue, xe, $, F, Z, Le, x, P, B), le = xe.join(""), Ue !== void 0 && (Le = (ue = Ue.trim()).length) === 0 && (x = 0, ue = "")), 0 < Le) - switch (x) { + if (ue = t($, Ee, ue, E, P + 1), Le = ue.length, 0 < z && (Ee = r(oe, le, qe), Ue = s(3, ue, Ee, $, F, Z, Le, E, P, B), le = Ee.join(""), Ue !== void 0 && (Le = (ue = Ue.trim()).length) === 0 && (E = 0, ue = "")), 0 < Le) + switch (E) { case 115: - le = le.replace(E, o); + le = le.replace(x, o); case 100: case 109: case 45: @@ -3412,29 +3412,29 @@ function bf(e) { default: ue = t($, r($, le, qe), ue, B, P + 1); } - Tt += ue, ue = qe = xe = je = H = 0, le = "", x = N.charCodeAt(++de); + Tt += ue, ue = qe = Ee = je = H = 0, le = "", E = N.charCodeAt(++de); break; case 125: case 59: - if (le = (0 < xe ? le.replace(h, "") : le).trim(), 1 < (Le = le.length)) - switch (je === 0 && (H = le.charCodeAt(0), H === 45 || 96 < H && 123 > H) && (Le = (le = le.replace(" ", ":")).length), 0 < z && (Ue = s(1, le, $, I, F, Z, _e.length, B, P, B)) !== void 0 && (Le = (le = Ue.trim()).length) === 0 && (le = "\0\0"), H = le.charCodeAt(0), x = le.charCodeAt(1), H) { + if (le = (0 < Ee ? le.replace(h, "") : le).trim(), 1 < (Le = le.length)) + switch (je === 0 && (H = le.charCodeAt(0), H === 45 || 96 < H && 123 > H) && (Le = (le = le.replace(" ", ":")).length), 0 < z && (Ue = s(1, le, $, I, F, Z, _e.length, B, P, B)) !== void 0 && (Le = (le = Ue.trim()).length) === 0 && (le = "\0\0"), H = le.charCodeAt(0), E = le.charCodeAt(1), H) { case 0: break; case 64: - if (x === 105 || x === 99) { + if (E === 105 || E === 99) { ot += le + N.charAt(de); break; } default: - le.charCodeAt(Le - 1) !== 58 && (_e += i(le, H, x, le.charCodeAt(2))); + le.charCodeAt(Le - 1) !== 58 && (_e += i(le, H, E, le.charCodeAt(2))); } - qe = xe = je = H = 0, le = "", x = N.charCodeAt(++de); + qe = Ee = je = H = 0, le = "", E = N.charCodeAt(++de); } } - switch (x) { + switch (E) { case 13: case 10: - A === 47 ? A = 0 : 1 + H === 0 && B !== 107 && 0 < le.length && (xe = 1, le += "\0"), 0 < z * C && s(0, le, $, I, F, Z, _e.length, B, P, B), Z = 1, F++; + A === 47 ? A = 0 : 1 + H === 0 && B !== 107 && 0 < le.length && (Ee = 1, le += "\0"), 0 < z * C && s(0, le, $, I, F, Z, _e.length, B, P, B), Z = 1, F++; break; case 59: case 125: @@ -3443,7 +3443,7 @@ function bf(e) { break; } default: - switch (Z++, Ke = N.charAt(de), x) { + switch (Z++, Ke = N.charAt(de), E) { case 9: case 32: if (K + Q + A === 0) @@ -3455,7 +3455,7 @@ function bf(e) { Ke = ""; break; default: - x !== 32 && (Ke = " "); + E !== 32 && (Ke = " "); } break; case 0: @@ -3468,7 +3468,7 @@ function bf(e) { Ke = "\\v"; break; case 38: - K + A + Q === 0 && (xe = qe = 1, Ke = "\f" + Ke); + K + A + Q === 0 && (Ee = qe = 1, Ke = "\f" + Ke); break; case 108: if (K + A + Q + Y === 0 && 0 < je) @@ -3483,11 +3483,11 @@ function bf(e) { K + A + Q === 0 && (je = de); break; case 44: - A + ee + K + Q === 0 && (xe = 1, Ke += "\r"); + A + ee + K + Q === 0 && (Ee = 1, Ke += "\r"); break; case 34: case 39: - A === 0 && (K = K === x ? 0 : K === 0 ? x : K); + A === 0 && (K = K === E ? 0 : K === 0 ? E : K); break; case 91: K + A + ee === 0 && Q++; @@ -3518,7 +3518,7 @@ function bf(e) { if (!(0 < K + Q + ee)) switch (A) { case 0: - switch (2 * x + 3 * N.charCodeAt(de + 1)) { + switch (2 * E + 3 * N.charCodeAt(de + 1)) { case 235: A = 47; break; @@ -3527,17 +3527,17 @@ function bf(e) { } break; case 42: - x === 47 && fe === 42 && Le + 2 !== de && (N.charCodeAt(Le + 2) === 33 && (_e += N.substring(Le, de + 1)), Ke = "", A = 0); + E === 47 && fe === 42 && Le + 2 !== de && (N.charCodeAt(Le + 2) === 33 && (_e += N.substring(Le, de + 1)), Ke = "", A = 0); } } A === 0 && (le += Ke); } - pe = fe, fe = x, de++; + pe = fe, fe = E, de++; } if (Le = _e.length, 0 < Le) { - if (xe = $, 0 < z && (Ue = s(2, _e, xe, I, F, Z, Le, B, P, B), Ue !== void 0 && (_e = Ue).length === 0)) + if (Ee = $, 0 < z && (Ue = s(2, _e, Ee, I, F, Z, Le, B, P, B), Ue !== void 0 && (_e = Ue).length === 0)) return ot + _e + Tt; - if (_e = xe.join(",") + "{" + _e + "}", re * Y !== 0) { + if (_e = Ee.join(",") + "{" + _e + "}", re * Y !== 0) { switch (re !== 2 || a(_e, 2) || (Y = 0), Y) { case 111: _e = _e.replace(S, ":-moz-$1") + _e; @@ -3700,8 +3700,8 @@ function bf(e) { return N !== $ + ";" ? N.replace(j, " or ($1)").substring(4) : "(" + $ + ")"; } function s(I, $, N, B, P, Q, A, ee, K, H) { - for (var x = 0, fe = $, pe; x < z; ++x) - switch (pe = J[x].call(l, I, fe, N, B, P, Q, A, ee, K, H)) { + for (var E = 0, fe = $, pe; E < z; ++E) + switch (pe = J[E].call(l, I, fe, N, B, P, Q, A, ee, K, H)) { case void 0: case !1: case !0: @@ -3742,7 +3742,7 @@ function bf(e) { var P = t(oe, N, $, 0, 0); return 0 < z && (B = s(-2, P, N, N, F, Z, P.length, 0, 0, 0), B !== void 0 && (P = B)), L = "", Y = 0, Z = F = 1, P; } - var f = /^\0+/g, h = /[\0\r\f]/g, d = /: */g, p = /zoo|gra/, v = /([,: ])(transform)/g, g = /,\r+?/g, R = /([\t\r\n ])*\f?&/g, y = /@(k\w+)\s*(\S*)\s*/, b = /::(place)/g, S = /:(read-only)/g, m = /[svh]\w+-[tblr]{2}/, E = /\(\s*(.*)\s*\)/g, j = /([\s\S]*?);/g, D = /-self|flex-/g, w = /[^]*?(:[rp][el]a[\w-]+)[^]*/, _ = /stretch|:\s*\w+\-(?:conte|avail)/, W = /([^-])(image-set\()/, Z = 1, F = 1, Y = 0, re = 1, oe = [], J = [], z = 0, ae = null, C = 0, L = ""; + var f = /^\0+/g, h = /[\0\r\f]/g, d = /: */g, p = /zoo|gra/, v = /([,: ])(transform)/g, g = /,\r+?/g, R = /([\t\r\n ])*\f?&/g, y = /@(k\w+)\s*(\S*)\s*/, b = /::(place)/g, S = /:(read-only)/g, m = /[svh]\w+-[tblr]{2}/, x = /\(\s*(.*)\s*\)/g, j = /([\s\S]*?);/g, D = /-self|flex-/g, w = /[^]*?(:[rp][el]a[\w-]+)[^]*/, _ = /stretch|:\s*\w+\-(?:conte|avail)/, W = /([^-])(image-set\()/, Z = 1, F = 1, Y = 0, re = 1, oe = [], J = [], z = 0, ae = null, C = 0, L = ""; return l.use = c, l.set = u, e !== void 0 && u(e), l; } var wf = { @@ -3821,8 +3821,8 @@ function Rf() { var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, R = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119; function b(m) { if (typeof m == "object" && m !== null) { - var E = m.$$typeof; - switch (E) { + var x = m.$$typeof; + switch (x) { case t: switch (m = m.type, m) { case c: @@ -3841,11 +3841,11 @@ function Rf() { case o: return m; default: - return E; + return x; } } case r: - return E; + return x; } } } @@ -3893,16 +3893,16 @@ var Lo; function Pf() { return Lo || (Lo = 1, process.env.NODE_ENV !== "production" && function() { var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, R = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119; - function b(x) { - return typeof x == "string" || typeof x == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. - x === n || x === u || x === a || x === i || x === f || x === h || typeof x == "object" && x !== null && (x.$$typeof === p || x.$$typeof === d || x.$$typeof === o || x.$$typeof === s || x.$$typeof === l || x.$$typeof === g || x.$$typeof === R || x.$$typeof === y || x.$$typeof === v); + function b(E) { + return typeof E == "string" || typeof E == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. + E === n || E === u || E === a || E === i || E === f || E === h || typeof E == "object" && E !== null && (E.$$typeof === p || E.$$typeof === d || E.$$typeof === o || E.$$typeof === s || E.$$typeof === l || E.$$typeof === g || E.$$typeof === R || E.$$typeof === y || E.$$typeof === v); } - function S(x) { - if (typeof x == "object" && x !== null) { - var fe = x.$$typeof; + function S(E) { + if (typeof E == "object" && E !== null) { + var fe = E.$$typeof; switch (fe) { case t: - var pe = x.type; + var pe = E.type; switch (pe) { case c: case u: @@ -3929,51 +3929,51 @@ function Pf() { } } } - var m = c, E = u, j = s, D = o, w = t, _ = l, W = n, Z = p, F = d, Y = r, re = a, oe = i, J = f, z = !1; - function ae(x) { - return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), C(x) || S(x) === c; + var m = c, x = u, j = s, D = o, w = t, _ = l, W = n, Z = p, F = d, Y = r, re = a, oe = i, J = f, z = !1; + function ae(E) { + return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), C(E) || S(E) === c; } - function C(x) { - return S(x) === u; + function C(E) { + return S(E) === u; } - function L(x) { - return S(x) === s; + function L(E) { + return S(E) === s; } - function I(x) { - return S(x) === o; + function I(E) { + return S(E) === o; } - function $(x) { - return typeof x == "object" && x !== null && x.$$typeof === t; + function $(E) { + return typeof E == "object" && E !== null && E.$$typeof === t; } - function N(x) { - return S(x) === l; + function N(E) { + return S(E) === l; } - function B(x) { - return S(x) === n; + function B(E) { + return S(E) === n; } - function P(x) { - return S(x) === p; + function P(E) { + return S(E) === p; } - function Q(x) { - return S(x) === d; + function Q(E) { + return S(E) === d; } - function A(x) { - return S(x) === r; + function A(E) { + return S(E) === r; } - function ee(x) { - return S(x) === a; + function ee(E) { + return S(E) === a; } - function K(x) { - return S(x) === i; + function K(E) { + return S(E) === i; } - function H(x) { - return S(x) === f; + function H(E) { + return S(E) === f; } - be.AsyncMode = m, be.ConcurrentMode = E, be.ContextConsumer = j, be.ContextProvider = D, be.Element = w, be.ForwardRef = _, be.Fragment = W, be.Lazy = Z, be.Memo = F, be.Portal = Y, be.Profiler = re, be.StrictMode = oe, be.Suspense = J, be.isAsyncMode = ae, be.isConcurrentMode = C, be.isContextConsumer = L, be.isContextProvider = I, be.isElement = $, be.isForwardRef = N, be.isFragment = B, be.isLazy = P, be.isMemo = Q, be.isPortal = A, be.isProfiler = ee, be.isStrictMode = K, be.isSuspense = H, be.isValidElementType = b, be.typeOf = S; + be.AsyncMode = m, be.ConcurrentMode = x, be.ContextConsumer = j, be.ContextProvider = D, be.Element = w, be.ForwardRef = _, be.Fragment = W, be.Lazy = Z, be.Memo = F, be.Portal = Y, be.Profiler = re, be.StrictMode = oe, be.Suspense = J, be.isAsyncMode = ae, be.isConcurrentMode = C, be.isContextConsumer = L, be.isContextProvider = I, be.isElement = $, be.isForwardRef = N, be.isFragment = B, be.isLazy = P, be.isMemo = Q, be.isPortal = A, be.isProfiler = ee, be.isStrictMode = K, be.isSuspense = H, be.isValidElementType = b, be.typeOf = S; }()), be; } process.env.NODE_ENV === "production" ? ki.exports = Rf() : ki.exports = Pf(); -var Ef = ki.exports, Ua = Ef, xf = { +var xf = ki.exports, Ua = xf, Ef = { childContextTypes: !0, contextType: !0, contextTypes: !0, @@ -4010,7 +4010,7 @@ var Ef = ki.exports, Ua = Ef, xf = { Ba[Ua.ForwardRef] = jf; Ba[Ua.Memo] = Fu; function Ho(e) { - return Ua.isMemo(e) ? Fu : Ba[e.$$typeof] || xf; + return Ua.isMemo(e) ? Fu : Ba[e.$$typeof] || Ef; } var Tf = Object.defineProperty, Af = Object.getOwnPropertyNames, Wo = Object.getOwnPropertySymbols, $f = Object.getOwnPropertyDescriptor, Cf = Object.getPrototypeOf, Uo = Object.prototype; function Iu(e, t, r) { @@ -4151,17 +4151,17 @@ var Mf = function() { `; return n; }, e; -}(), Fn = /* @__PURE__ */ new Map(), Wn = /* @__PURE__ */ new Map(), xr = 1, Sn = function(e) { +}(), Fn = /* @__PURE__ */ new Map(), Wn = /* @__PURE__ */ new Map(), Er = 1, Sn = function(e) { if (Fn.has(e)) return Fn.get(e); - for (; Wn.has(xr); ) - xr++; - var t = xr++; + for (; Wn.has(Er); ) + Er++; + var t = Er++; return process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > 1 << 30) && lr(16, "" + t), Fn.set(e, t), Wn.set(t, e), t; }, Lf = function(e) { return Wn.get(e); }, Hf = function(e, t) { - t >= xr && (xr = t + 1), Fn.set(e, t), Wn.set(t, e); + t >= Er && (Er = t + 1), Fn.set(e, t), Wn.set(t, e); }, Wf = "style[" + nr + '][data-styled-version="5.3.11"]', Uf = new RegExp("^" + nr + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'), Bf = function(e, t, r) { for (var n, i = r.split(","), a = 0, o = i.length; a < o; a++) (n = i[a]) && e.registerName(t, n); @@ -4374,7 +4374,7 @@ function rd(e) { } catch { } } - return function(R, y, b, S, m, E, j, D, w, _) { + return function(R, y, b, S, m, x, j, D, w, _) { switch (R) { case 1: if (w === 0 && y.charCodeAt(0) === 64) @@ -4551,31 +4551,31 @@ function Uu(e, t, r) { return e.shouldForwardProp(y, b, S) && t.shouldForwardProp(y, b, S); } : e.shouldForwardProp); var p, v = new Jf(r, f, n ? e.componentStyle : void 0), g = v.isStatic && o.length === 0, R = function(y, b) { - return function(S, m, E, j) { + return function(S, m, x, j) { var D = S.attrs, w = S.componentStyle, _ = S.defaultProps, W = S.foldedComponentIds, Z = S.shouldForwardProp, F = S.styledComponentId, Y = S.target, re = function(B, P, Q) { B === void 0 && (B = Lt); var A = Rt({}, P, { theme: B }), ee = {}; return Q.forEach(function(K) { - var H, x, fe, pe = K; + var H, E, fe, pe = K; for (H in Tr(pe) && (pe = pe(A)), pe) - A[H] = ee[H] = H === "className" ? (x = ee[H], fe = pe[H], x && fe ? x + " " + fe : x || fe) : pe[H]; + A[H] = ee[H] = H === "className" ? (E = ee[H], fe = pe[H], E && fe ? E + " " + fe : E || fe) : pe[H]; }), [A, ee]; }(hd(m, Kt(Wu), _) || Lt, m, D), oe = re[0], J = re[1], z = function(B, P, Q, A) { var ee = id(), K = ad(), H = P ? B.generateAndInjectStyles(Lt, ee, K) : B.generateAndInjectStyles(Q, ee, K); return process.env.NODE_ENV !== "production" && !P && A && A(H), H; - }(w, j, oe, process.env.NODE_ENV !== "production" ? S.warnTooManyClasses : void 0), ae = E, C = J.$as || m.$as || J.as || m.as || Y, L = Rn(C), I = J !== m ? Rt({}, m, {}, J) : m, $ = {}; + }(w, j, oe, process.env.NODE_ENV !== "production" ? S.warnTooManyClasses : void 0), ae = x, C = J.$as || m.$as || J.as || m.as || Y, L = Rn(C), I = J !== m ? Rt({}, m, {}, J) : m, $ = {}; for (var N in I) N[0] !== "$" && N !== "as" && (N === "forwardedAs" ? $.as = I[N] : (Z ? Z(N, Do, C) : !L || Do(N)) && ($[N] = I[N])); return m.style && J.style !== m.style && ($.style = Rt({}, m.style, {}, J.style)), $.className = Array.prototype.concat(W, F, z !== F ? z : null, m.className, J.className).filter(Boolean).join(" "), $.ref = ae, sl(C, $); }(p, y, b, g); }; return R.displayName = l, (p = U.forwardRef(R)).attrs = h, p.componentStyle = v, p.displayName = l, p.shouldForwardProp = d, p.foldedComponentIds = n ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : Hn, p.styledComponentId = f, p.target = n ? e.target : e, p.withComponent = function(y) { - var b = t.componentId, S = function(E, j) { - if (E == null) + var b = t.componentId, S = function(x, j) { + if (x == null) return {}; - var D, w, _ = {}, W = Object.keys(E); + var D, w, _ = {}, W = Object.keys(x); for (w = 0; w < W.length; w++) - D = W[w], j.indexOf(D) >= 0 || (_[D] = E[D]); + D = W[w], j.indexOf(D) >= 0 || (_[D] = x[D]); return _; }(t, ["componentId"]), m = b && b + "-" + (Rn(y) ? y : oi(Mi(y))); return Uu(y, Rt({}, S, { attrs: h, componentId: m }), r); @@ -4585,8 +4585,8 @@ function Uu(e, t, r) { this._foldedDefaultProps = n ? Hu({}, e.defaultProps, y) : y; } }), process.env.NODE_ENV !== "production" && (dd(l, f), p.warnTooManyClasses = function(y, b) { var S = {}, m = !1; - return function(E) { - if (!m && (S[E] = !0, Object.keys(S).length >= 200)) { + return function(x) { + if (!m && (S[x] = !0, Object.keys(S).length >= 200)) { var j = b ? ' with the id of "' + b + '"' : ""; console.warn("Over 200 classes were generated for component " + y + j + `. Consider using the attrs method, together with a style object for frequently changed styles. @@ -4769,10 +4769,10 @@ function Pd(e, t) { return r; } var Ga = Pd; -function Ed(e) { +function xd(e) { return e && Object.keys(e).length > 0; } -var Xa = Ed, xd = function(t) { +var Xa = xd, Ed = function(t) { return t === null ? !1 : /^[a-zA-Z0-9_-]{1,64}$/.test(t); }, _d = Ka, jd = Ga, Td = Xa, Vt = { /** @@ -4861,7 +4861,7 @@ var Xa = Ed, xd = function(t) { var a = "" + n; return t[r].indexOf(a) !== -1; } -}, Ad = Vt, qi = Kn, ui = Ka, Go = Od, qu = Gn, ci = Rd, Xo = Ga, Vi = Xa, $d = xd, De = Ad; +}, Ad = Vt, qi = Kn, ui = Ka, Go = Od, qu = Gn, ci = Rd, Xo = Ga, Vi = Xa, $d = Ed, De = Ad; function Za(e, t) { return Array.isArray(e) && Array.isArray(t) ? e.length === t.length && e.every(function(r, n) { return Za(t[n], r); @@ -6102,10 +6102,10 @@ function Ht(e, t, r) { d.length === 0 || d[0].split(h).length < 2 || t.slice(c).forEach(function(p) { var v = p && p.facets ? p.facets : {}; Object.keys(v).forEach(function(g) { - var R = v[g], y = wr(e.hierarchicalFacets, function(E) { - return E.name === f.name; - }), b = wr(i.hierarchicalFacets[y], function(E) { - return E.attribute === g; + var R = v[g], y = wr(e.hierarchicalFacets, function(x) { + return x.name === f.name; + }), b = wr(i.hierarchicalFacets[y], function(x) { + return x.attribute === g; }); if (b !== -1) { var S = {}; @@ -6343,7 +6343,7 @@ Xe.prototype.emit = function(e) { } if (r = this._events[e], tc(r)) return !1; - if (xt(r)) + if (Et(r)) switch (arguments.length) { case 1: r.call(this); @@ -6364,12 +6364,12 @@ Xe.prototype.emit = function(e) { }; Xe.prototype.addListener = function(e, t) { var r; - if (!xt(t)) + if (!Et(t)) throw TypeError("listener must be a function"); return this._events || (this._events = {}), this._events.newListener && this.emit( "newListener", e, - xt(t.listener) ? t.listener : t + Et(t.listener) ? t.listener : t ), this._events[e] ? Ar(this._events[e]) ? this._events[e].push(t) : this._events[e] = [this._events[e], t] : this._events[e] = t, Ar(this._events[e]) && !this._events[e].warned && (tc(this._maxListeners) ? r = Xe.defaultMaxListeners : r = this._maxListeners, r && r > 0 && this._events[e].length > r && (this._events[e].warned = !0, console.error( "(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.", this._events[e].length @@ -6377,7 +6377,7 @@ Xe.prototype.addListener = function(e, t) { }; Xe.prototype.on = Xe.prototype.addListener; Xe.prototype.once = function(e, t) { - if (!xt(t)) + if (!Et(t)) throw TypeError("listener must be a function"); var r = !1; function n() { @@ -6387,11 +6387,11 @@ Xe.prototype.once = function(e, t) { }; Xe.prototype.removeListener = function(e, t) { var r, n, i, a; - if (!xt(t)) + if (!Et(t)) throw TypeError("listener must be a function"); if (!this._events || !this._events[e]) return this; - if (r = this._events[e], i = r.length, n = -1, r === t || xt(r.listener) && r.listener === t) + if (r = this._events[e], i = r.length, n = -1, r === t || Et(r.listener) && r.listener === t) delete this._events[e], this._events.removeListener && this.emit("removeListener", e, t); else if (Ar(r)) { for (a = i; a-- > 0; ) @@ -6416,7 +6416,7 @@ Xe.prototype.removeAllListeners = function(e) { t !== "removeListener" && this.removeAllListeners(t); return this.removeAllListeners("removeListener"), this._events = {}, this; } - if (r = this._events[e], xt(r)) + if (r = this._events[e], Et(r)) this.removeListener(e, r); else if (r) for (; r.length; ) @@ -6425,12 +6425,12 @@ Xe.prototype.removeAllListeners = function(e) { }; Xe.prototype.listeners = function(e) { var t; - return !this._events || !this._events[e] ? t = [] : xt(this._events[e]) ? t = [this._events[e]] : t = this._events[e].slice(), t; + return !this._events || !this._events[e] ? t = [] : Et(this._events[e]) ? t = [this._events[e]] : t = this._events[e].slice(), t; }; Xe.prototype.listenerCount = function(e) { if (this._events) { var t = this._events[e]; - if (xt(t)) + if (Et(t)) return 1; if (t) return t.length; @@ -6440,7 +6440,7 @@ Xe.prototype.listenerCount = function(e) { Xe.listenerCount = function(e, t) { return e.listenerCount(t); }; -function xt(e) { +function Et(e) { return typeof e == "function"; } function ah(e) { @@ -7146,13 +7146,13 @@ process.env.NODE_ENV === "development" && (rs = function(t) { }, ge.cache = {}); var Rh = Object.keys; function Ph(e) { - return _h(e) || xh(e) || uc(e) || Eh(); + return _h(e) || Eh(e) || uc(e) || xh(); } -function Eh() { +function xh() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } -function xh(e) { +function Eh(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); } @@ -7954,12 +7954,12 @@ function pp(e, t) { var R = d[g]; Object.keys(R).forEach(function(y) { var b = y, S = R[b], m = Array.isArray(S) ? S : [S]; - m.forEach(function(E) { + m.forEach(function(x) { n.push({ type: "numeric", attribute: g, - name: "".concat(E), - numericValue: E, + name: "".concat(x), + numericValue: x, operator: b }); }); @@ -8140,17 +8140,17 @@ function bt(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t] != null ? arguments[t] : {}; t % 2 ? fs(Object(r), !0).forEach(function(n) { - Ep(e, n, r[n]); + xp(e, n, r[n]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : fs(Object(r)).forEach(function(n) { Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); }); } return e; } -function Ep(e, t, r) { - return t = xp(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e; +function xp(e, t, r) { + return t = Ep(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e; } -function xp(e) { +function Ep(e) { var t = _p(e, "string"); return Nr(t) === "symbol" ? t : String(t); } @@ -8618,7 +8618,7 @@ function Rc() { } var Pc = /* @__PURE__ */ Qn(null); process.env.NODE_ENV === "development" && (Pc.displayName = "InstantSearchServer"); -function Ec() { +function xc() { return Kt(Pc); } function tv(e, t) { @@ -8676,7 +8676,7 @@ function av(e) { return e; } function Ss(e) { - var t = Et(function() { + var t = xt(function() { return e; }), r = tv(t, 2), n = r[0], i = r[1]; return Mr(n, e) || i(e), n; @@ -8813,7 +8813,7 @@ function gv(e, t) { } return (t === "string" ? String : Number)(e); } -function Es(e, t) { +function xs(e, t) { if (e == null) return {}; var r = yv(e, t), n, i; @@ -8833,7 +8833,7 @@ function yv(e, t) { return r; } function Gt(e) { - var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = Ec(), i = Rc(), a = ev(), o = Ss(t), s = Ss(r), c = ut(!0), u = ut(null), l = Yn(function() { + var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = xc(), i = Rc(), a = ev(), o = Ss(t), s = Ss(r), c = ut(!0), u = ut(null), l = Yn(function() { var v = e(function(g, R) { if (R) { c.current = !0; @@ -8841,7 +8841,7 @@ function Gt(e) { } if (c.current) { g.instantSearchInstance, g.widgetParams; - var y = Es(g, uv); + var y = xs(g, uv); Mr(y, u.current, function(b, S) { return (b == null ? void 0 : b.constructor) === Function && (S == null ? void 0 : S.constructor) === Function; }) || (p(y), u.current = y); @@ -8850,7 +8850,7 @@ function Gt(e) { c.current = !1; }); return Ps(Ps({}, v(o)), s); - }, [e, o, s]), f = Et(function() { + }, [e, o, s]), f = xt(function() { if (l.getWidgetRenderState) { var v, g = a.getHelper(), R = a.getWidgetUiState({})[a.getIndexId()]; g.state = ((v = l.getWidgetSearchParameters) === null || v === void 0 ? void 0 : v.call(l, g.state, { @@ -8873,8 +8873,8 @@ function Gt(e) { error: i.error }); m.widgetParams; - var E = Es(m, cv); - return E; + var x = xs(m, cv); + return x; } return {}; }), h = lv(f, 2), d = h[0], p = h[1]; @@ -8895,14 +8895,14 @@ function wv(e) { $$widgetType: "ais.configure" }), null; } -var xs = { +var Es = { current: {} }; -function xc(e, t) { +function Ec(e, t) { if (process.env.NODE_ENV === "development" && !e) { - var r = t.trim(), n = xs.current[r]; + var r = t.trim(), n = Es.current[r]; if (!n) { - xs.current[r] = !0; + Es.current[r] = !0; var i = "[InstantSearch] ".concat(r); console.warn(i); try { @@ -8962,13 +8962,13 @@ function Rv(e, t) { return (t === "string" ? String : Number)(e); } function _c(e) { - return _v(e) || xv(e) || Ev(e) || Pv(); + return _v(e) || Ev(e) || xv(e) || Pv(); } function Pv() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } -function Ev(e, t) { +function xv(e, t) { if (e) { if (typeof e == "string") return ea(e, t); @@ -8979,7 +8979,7 @@ function Ev(e, t) { return ea(e, t); } } -function xv(e) { +function Ev(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); } @@ -9024,13 +9024,13 @@ function jc(e, t) { _uiState: i })); } -function En(e, t) { +function xn(e, t) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; return e.reduce(function(n, i) { return _t(i) || !i.getWidgetUiState && !i.getWidgetState ? n : i.getWidgetUiState ? i.getWidgetUiState(n, t) : i.getWidgetState(n, t); }, r); } -function xn(e, t) { +function En(e, t) { var r = t.initialSearchParameters, n = jv(t, Sv); return e.filter(function(i) { return !_t(i); @@ -9089,7 +9089,7 @@ var Av = function(t) { return c; }, createURL: function(d) { - return s._createURL(_r({}, i, En(a, { + return s._createURL(_r({}, i, xn(a, { searchParameters: d, helper: u }))); @@ -9106,7 +9106,7 @@ var Av = function(t) { })) throw new Error(Rr("The widget definition expects a `render` and/or an `init` method.")); return a = a.concat(d), s && d.length && (jc(u, { - state: xn(a, { + state: En(a, { uiState: o, initialSearchParameters: u.state }), @@ -9143,10 +9143,10 @@ var Av = function(t) { }); return y || g; }, u.state); - o = En(a, { + o = xn(a, { searchParameters: v, helper: u - }), u.setState(xn(a, { + }), u.setState(En(a, { uiState: o, initialSearchParameters: v })), a.length && s.scheduleSearch(); @@ -9157,7 +9157,7 @@ var Av = function(t) { var p = this, v, g = d.instantSearchInstance, R = d.parent, y = d.uiState; if (u === null) { s = g, c = R, o = y[i] || {}; - var b = g.mainHelper, S = xn(a, { + var b = g.mainHelper, S = En(a, { uiState: o, initialSearchParameters: new ft.SearchParameters({ index: r @@ -9180,8 +9180,8 @@ var Av = function(t) { }); var m = (v = g._initialResults) === null || v === void 0 ? void 0 : v[this.getIndexId()]; if (m) { - var E = new ft.SearchResults(new ft.SearchParameters(m.state), m.results); - l.lastResults = E, u.lastResults = E; + var x = new ft.SearchResults(new ft.SearchParameters(m.state), m.results); + l.lastResults = x, u.lastResults = x; } u.on("change", function(j) { var D = j.isPageReset; @@ -9212,7 +9212,7 @@ var Av = function(t) { ), j.init && j.init(Pr(g, p, y)); }), u.on("change", function(j) { var D = j.state, w = j._uiState; - o = En(a, { + o = xn(a, { searchParameters: D, helper: u }, w || {}), g.onStateChange || g.onInternalStateChange(); @@ -9256,13 +9256,13 @@ var Av = function(t) { }, getWidgetSearchParameters: function(d, p) { var v = p.uiState; - return xn(a, { + return En(a, { uiState: v, initialSearchParameters: d }); }, refreshUiState: function() { - o = En(a, { + o = xn(a, { searchParameters: this.getHelper().state, helper: this.getHelper() }, o); @@ -9599,13 +9599,13 @@ function lm() { var v = void 0, g = void 0; if (Array.isArray(s.queue)) { var R = Cr(s.queue.slice().reverse(), function(m) { - var E = Nn(m, 1), j = E[0]; + var x = Nn(m, 1), j = x[0]; return j === "setUserToken"; }) || [], y = Nn(R, 2); v = y[1]; } - s("getUserToken", null, function(m, E) { - g = E; + s("getUserToken", null, function(m, x) { + g = x; }), (r || !As(s)) && s("init", qt({ appId: d, apiKey: p, @@ -9619,14 +9619,14 @@ function lm() { }, subscribe: function() { if (s.shouldAddScript) { - var E = "[insights middleware]: could not load search-insights.js. Please load it manually following https://alg.li/insights-init"; + var x = "[insights middleware]: could not load search-insights.js. Please load it manually following https://alg.li/insights-init"; try { var j = document.createElement("script"); j.async = !0, j.src = cm, j.onerror = function() { - u.emit("error", new Error(E)); + u.emit("error", new Error(x)); }, document.body.appendChild(j), s.shouldAddScript = !1; } catch { - s.shouldAddScript = !1, u.emit("error", new Error(E)); + s.shouldAddScript = !1, u.emit("error", new Error(x)); } } }, @@ -9637,7 +9637,7 @@ function lm() { }, S.overrideStateWithoutTriggeringChangeEvent(qt(qt({}, S.state), {}, { clickAnalytics: !0 })), a || u.scheduleSearch(); - var E = function(_) { + var x = function(_) { if (_) { var W = S.state.userToken; S.overrideStateWithoutTriggeringChangeEvent(qt(qt({}, S.state), {}, { @@ -9645,7 +9645,7 @@ function lm() { })), W && W !== _ && u.scheduleSearch(); } }, j = Zv(); - j && E(j), g ? (E(g), s("setUserToken", g)) : v && (E(v), s("setUserToken", v)), s("onUserTokenChange", E, { + j && x(j), g ? (x(g), s("setUserToken", g)) : v && (x(v), s("setUserToken", v)), s("onUserTokenChange", x, { immediate: !0 }); var D = s; @@ -9846,7 +9846,7 @@ var hm = String.prototype.replace, pm = /%20/g, gi = { return !t || typeof t != "object" ? !1 : !!(t.constructor && t.constructor.isBuffer && t.constructor.isBuffer(t)); }, Pm = function(t, r) { return [].concat(t, r); -}, Em = function(t, r) { +}, xm = function(t, r) { if (Qt(t)) { for (var n = [], i = 0; i < t.length; i += 1) n.push(r(t[i])); @@ -9862,9 +9862,9 @@ var hm = String.prototype.replace, pm = /%20/g, gi = { encode: wm, isBuffer: Rm, isRegExp: Om, - maybeMap: Em, + maybeMap: xm, merge: gm -}, ia = kc, jr = oo, xm = Object.prototype.hasOwnProperty, $s = { +}, ia = kc, jr = oo, Em = Object.prototype.hasOwnProperty, $s = { brackets: function(t) { return t + "[]"; }, @@ -9927,8 +9927,8 @@ var hm = String.prototype.replace, pm = /%20/g, gi = { else if (Yt(s)) m = s; else { - var E = Object.keys(v); - m = c ? E.sort(c) : E; + var x = Object.keys(v); + m = c ? x.sort(c) : x; } for (var j = 0; j < m.length; ++j) { var D = m[j], w = typeof D == "object" && typeof D.value < "u" ? D.value : v[D]; @@ -9963,7 +9963,7 @@ var hm = String.prototype.replace, pm = /%20/g, gi = { throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined"); var n = jr.default; if (typeof t.format < "u") { - if (!xm.call(jr.formatters, t.format)) + if (!Em.call(jr.formatters, t.format)) throw new TypeError("Unknown format option provided."); n = t.format; } @@ -10271,8 +10271,8 @@ var Ns = function(t) { }(); function Xm() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.createURL, r = t === void 0 ? function(d) { - var p = d.qsModule, v = d.routeState, g = d.location, R = g.protocol, y = g.hostname, b = g.port, S = b === void 0 ? "" : b, m = g.pathname, E = g.hash, j = p.stringify(v), D = S === "" ? "" : ":".concat(S); - return j ? "".concat(R, "//").concat(y).concat(D).concat(m, "?").concat(j).concat(E) : "".concat(R, "//").concat(y).concat(D).concat(m).concat(E); + var p = d.qsModule, v = d.routeState, g = d.location, R = g.protocol, y = g.hostname, b = g.port, S = b === void 0 ? "" : b, m = g.pathname, x = g.hash, j = p.stringify(v), D = S === "" ? "" : ":".concat(S); + return j ? "".concat(R, "//").concat(y).concat(D).concat(m, "?").concat(j).concat(x) : "".concat(R, "//").concat(y).concat(D).concat(m).concat(x); } : t, n = e.parseURL, i = n === void 0 ? function(d) { var p = d.qsModule, v = d.location; return p.parse(v.search.slice(1), { @@ -10612,7 +10612,7 @@ function hg(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t] != null ? arguments[t] : {}; t % 2 ? Hs(Object(r), !0).forEach(function(n) { - Ce(e, n, r[n]); + Fe(e, n, r[n]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Hs(Object(r)).forEach(function(n) { Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); }); @@ -10683,7 +10683,7 @@ function Vn(e) { return r.__proto__ || Object.getPrototypeOf(r); }, Vn(e); } -function Ce(e, t, r) { +function Fe(e, t, r) { return t = Wc(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e; } function Wc(e) { @@ -10713,14 +10713,14 @@ var Og = /* @__PURE__ */ function(e) { var t = gg(r); function r(n) { var i; - pg(this, r), i = t.call(this), Ce($e(i), "client", void 0), Ce($e(i), "indexName", void 0), Ce($e(i), "insightsClient", void 0), Ce($e(i), "onStateChange", null), Ce($e(i), "helper", void 0), Ce($e(i), "mainHelper", void 0), Ce($e(i), "mainIndex", void 0), Ce($e(i), "started", void 0), Ce($e(i), "templatesConfig", void 0), Ce($e(i), "renderState", {}), Ce($e(i), "_stalledSearchDelay", void 0), Ce($e(i), "_searchStalledTimer", void 0), Ce($e(i), "_initialUiState", void 0), Ce($e(i), "_initialResults", void 0), Ce($e(i), "_createURL", void 0), Ce($e(i), "_searchFunction", void 0), Ce($e(i), "_mainHelperSearch", void 0), Ce($e(i), "middleware", []), Ce($e(i), "sendEventToInsights", void 0), Ce($e(i), "status", "idle"), Ce($e(i), "error", void 0), Ce($e(i), "scheduleSearch", Or(function() { + pg(this, r), i = t.call(this), Fe($e(i), "client", void 0), Fe($e(i), "indexName", void 0), Fe($e(i), "insightsClient", void 0), Fe($e(i), "onStateChange", null), Fe($e(i), "helper", void 0), Fe($e(i), "mainHelper", void 0), Fe($e(i), "mainIndex", void 0), Fe($e(i), "started", void 0), Fe($e(i), "templatesConfig", void 0), Fe($e(i), "renderState", {}), Fe($e(i), "_stalledSearchDelay", void 0), Fe($e(i), "_searchStalledTimer", void 0), Fe($e(i), "_initialUiState", void 0), Fe($e(i), "_initialResults", void 0), Fe($e(i), "_createURL", void 0), Fe($e(i), "_searchFunction", void 0), Fe($e(i), "_mainHelperSearch", void 0), Fe($e(i), "middleware", []), Fe($e(i), "sendEventToInsights", void 0), Fe($e(i), "status", "idle"), Fe($e(i), "error", void 0), Fe($e(i), "scheduleSearch", Or(function() { i.started && i.mainHelper.search(); - })), Ce($e(i), "scheduleRender", Or(function() { + })), Fe($e(i), "scheduleRender", Or(function() { var w, _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0; (w = i.mainHelper) !== null && w !== void 0 && w.hasPendingRequests() || (clearTimeout(i._searchStalledTimer), i._searchStalledTimer = null, _ && (i.status = "idle", i.error = void 0)), i.mainIndex.render({ instantSearchInstance: $e(i) }), i.emit("render"); - })), Ce($e(i), "onInternalStateChange", Or(function() { + })), Fe($e(i), "onInternalStateChange", Or(function() { var w = i.mainIndex.getWidgetUiState({}); i.middleware.forEach(function(_) { var W = _.instance; @@ -10729,7 +10729,7 @@ var Og = /* @__PURE__ */ function(e) { }); }); })), i.setMaxListeners(100); - var a = n.indexName, o = a === void 0 ? "" : a, s = n.numberLocale, c = n.initialUiState, u = c === void 0 ? {} : c, l = n.routing, f = l === void 0 ? null : l, h = n.insights, d = h === void 0 ? !1 : h, p = n.searchFunction, v = n.stalledSearchDelay, g = v === void 0 ? 200 : v, R = n.searchClient, y = R === void 0 ? null : R, b = n.insightsClient, S = b === void 0 ? null : b, m = n.onStateChange, E = m === void 0 ? null : m; + var a = n.indexName, o = a === void 0 ? "" : a, s = n.numberLocale, c = n.initialUiState, u = c === void 0 ? {} : c, l = n.routing, f = l === void 0 ? null : l, h = n.insights, d = h === void 0 ? !1 : h, p = n.searchFunction, v = n.stalledSearchDelay, g = v === void 0 ? 200 : v, R = n.searchClient, y = R === void 0 ? null : R, b = n.insightsClient, S = b === void 0 ? null : b, m = n.onStateChange, x = m === void 0 ? null : m; if (y === null) throw new Error(vt("The `searchClient` option is required.")); if (typeof y.search != "function") @@ -10744,7 +10744,7 @@ See `).concat(yc({ name: "configure" }))), i.client = y, i.insightsClient = S, i.indexName = o, i.helper = null, i.mainHelper = null, i.mainIndex = $v({ indexName: o - }), i.onStateChange = E, i.started = !1, i.templatesConfig = { + }), i.onStateChange = x, i.started = !1, i.templatesConfig = { helpers: fg({ numberLocale: s }), @@ -11065,20 +11065,20 @@ var wi = {}; * LICENSE file in the root directory of this source tree. */ var Bs; -function Eg() { +function xg() { return Bs || (Bs = 1, process.env.NODE_ENV !== "production" && function() { typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); var e = U, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; function r(b) { { - for (var S = arguments.length, m = new Array(S > 1 ? S - 1 : 0), E = 1; E < S; E++) - m[E - 1] = arguments[E]; + for (var S = arguments.length, m = new Array(S > 1 ? S - 1 : 0), x = 1; x < S; x++) + m[x - 1] = arguments[x]; n("error", b, m); } } function n(b, S, m) { { - var E = t.ReactDebugCurrentFrame, j = E.getStackAddendum(); + var x = t.ReactDebugCurrentFrame, j = x.getStackAddendum(); j !== "" && (S += "%s", m = m.concat([j])); var D = m.map(function(w) { return String(w); @@ -11092,22 +11092,22 @@ function Eg() { var a = typeof Object.is == "function" ? Object.is : i, o = e.useState, s = e.useEffect, c = e.useLayoutEffect, u = e.useDebugValue, l = !1, f = !1; function h(b, S, m) { l || e.startTransition !== void 0 && (l = !0, r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.")); - var E = S(); + var x = S(); if (!f) { var j = S(); - a(E, j) || (r("The result of getSnapshot should be cached to avoid an infinite loop"), f = !0); + a(x, j) || (r("The result of getSnapshot should be cached to avoid an infinite loop"), f = !0); } var D = o({ inst: { - value: E, + value: x, getSnapshot: S } }), w = D[0].inst, _ = D[1]; return c(function() { - w.value = E, w.getSnapshot = S, d(w) && _({ + w.value = x, w.getSnapshot = S, d(w) && _({ inst: w }); - }, [b, E, S]), s(function() { + }, [b, x, S]), s(function() { d(w) && _({ inst: w }); @@ -11117,13 +11117,13 @@ function Eg() { }); }; return b(W); - }, [b]), u(E), E; + }, [b]), u(x), x; } function d(b) { var S = b.getSnapshot, m = b.value; try { - var E = S(); - return !a(m, E); + var x = S(); + return !a(m, x); } catch { return !0; } @@ -11135,10 +11135,10 @@ function Eg() { wi.useSyncExternalStore = y, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); }()), wi; } -process.env.NODE_ENV === "production" ? ua.exports = Pg() : ua.exports = Eg(); -var xg = ua.exports, qs = ["react (".concat(fl, ")"), "react-instantsearch (".concat(Bi, ")"), "react-instantsearch-hooks (".concat(Bi, ")")], Vs = "react-instantsearch-server (".concat(Bi, ")"); +process.env.NODE_ENV === "production" ? ua.exports = Pg() : ua.exports = xg(); +var Eg = ua.exports, qs = ["react (".concat(fl, ")"), "react-instantsearch (".concat(Bi, ")"), "react-instantsearch-hooks (".concat(Bi, ")")], Vs = "react-instantsearch-server (".concat(Bi, ")"); function _g(e) { - var t = Dv(), r = Ec(), n = Mv(), i = n == null ? void 0 : n.initialResults, a = ut(e), o = ut(null); + var t = Dv(), r = xc(), n = Mv(), i = n == null ? void 0 : n.initialResults, a = ut(e), o = ut(null); if (n && (o = n.ssrSearchRef), o.current === null) { var s = new Rg(e); s._schedule = function(p) { @@ -11153,12 +11153,12 @@ function _g(e) { } { var c = o.current, u = a.current; - if (u.indexName !== e.indexName && (c.helper.setIndex(e.indexName || "").search(), a.current = e), u.searchClient !== e.searchClient && (process.env.NODE_ENV === "development" && xc(!1, "The `searchClient` prop of `` changed between renders, which may cause more search requests than necessary. If this is an unwanted behavior, please provide a stable reference: https://www.algolia.com/doc/api-reference/widgets/instantsearch/react-hooks/#widget-param-searchclient"), zs(e.searchClient, [].concat(qs, [r && Vs])), c.mainHelper.setClient(e.searchClient).search(), a.current = e), u.onStateChange !== e.onStateChange && (c.onStateChange = e.onStateChange, a.current = e), u.searchFunction !== e.searchFunction && (c._searchFunction = e.searchFunction, a.current = e), u.stalledSearchDelay !== e.stalledSearchDelay) { + if (u.indexName !== e.indexName && (c.helper.setIndex(e.indexName || "").search(), a.current = e), u.searchClient !== e.searchClient && (process.env.NODE_ENV === "development" && Ec(!1, "The `searchClient` prop of `` changed between renders, which may cause more search requests than necessary. If this is an unwanted behavior, please provide a stable reference: https://www.algolia.com/doc/api-reference/widgets/instantsearch/react-hooks/#widget-param-searchclient"), zs(e.searchClient, [].concat(qs, [r && Vs])), c.mainHelper.setClient(e.searchClient).search(), a.current = e), u.onStateChange !== e.onStateChange && (c.onStateChange = e.onStateChange, a.current = e), u.searchFunction !== e.searchFunction && (c._searchFunction = e.searchFunction, a.current = e), u.stalledSearchDelay !== e.stalledSearchDelay) { var l; c._stalledSearchDelay = (l = e.stalledSearchDelay) !== null && l !== void 0 ? l : 200, a.current = e; } } - var f = ut(null), h = xg.useSyncExternalStore(ll(function() { + var f = ut(null), h = Eg.useSyncExternalStore(ll(function() { var d = o.current; return f.current === null ? d.started || (d.start(), t()) : (clearTimeout(f.current), d._preventWidgetCleanup = !1), function() { function p() { @@ -11187,7 +11187,7 @@ function jg(e) { // @ts-expect-error: _isNextRouter is only set on the Next.js router e !== !0 && (e == null || (t = e.router) === null || t === void 0 ? void 0 : t._isNextRouter) ); - process.env.NODE_ENV === "development" && xc(r, ` + process.env.NODE_ENV === "development" && Ec(r, ` You are using Next.js with InstantSearch without the "react-instantsearch-hooks-router-nextjs" package. This package is recommended to make the routing work correctly with Next.js. Please check its usage instructions: https://github.com/algolia/instantsearch/tree/master/packages/react-instantsearch-hooks-router-nextjs @@ -11591,10 +11591,10 @@ var ay = function(t) { var i = n || {}, a = i.escapeHTML, o = a === void 0 ? !0 : a, s = i.transformItems, c = s === void 0 ? function(b) { return b; } : s, u = i.cache, l = u === void 0 ? ny() : u, f, h, d, p, v = function(S, m) { - var E = S.page, j = E === void 0 ? 0 : E, D = Object.keys(m).map(Number); + var x = S.page, j = x === void 0 ? 0 : x, D = Object.keys(m).map(Number); return D.length === 0 ? j : Math.min.apply(Math, [j].concat(Xs(D))); }, g = function(S, m) { - var E = S.page, j = E === void 0 ? 0 : E, D = Object.keys(m).map(Number); + var x = S.page, j = x === void 0 ? 0 : x, D = Object.keys(m).map(Number); return D.length === 0 ? j : Math.max.apply(Math, [j].concat(Xs(D))); }, R = function(S) { return function() { @@ -11619,10 +11619,10 @@ var ay = function(t) { }), !0); }, render: function(S) { - var m = S.instantSearchInstance, E = this.getWidgetRenderState(S); - t(st(st({}, E), {}, { + var m = S.instantSearchInstance, x = this.getWidgetRenderState(S); + t(st(st({}, x), {}, { instantSearchInstance: m - }), !1), d("view:internal", E.currentPageHits); + }), !1), d("view:internal", x.currentPageHits); }, getRenderState: function(S, m) { return st(st({}, S), {}, { @@ -11630,16 +11630,16 @@ var ay = function(t) { }); }, getWidgetRenderState: function(S) { - var m = S.results, E = S.helper, j = S.parent, D = S.state, w = S.instantSearchInstance, _, W = [], Z = j.getPreviousState() || D, F = l.read({ + var m = S.results, x = S.helper, j = S.parent, D = S.state, w = S.instantSearchInstance, _, W = [], Z = j.getPreviousState() || D, F = l.read({ state: Tn(Z) }) || {}; if (!m) - f = R(E), h = y(E), d = ap({ + f = R(x), h = y(x), d = ap({ instantSearchInstance: w, - index: E.getIndex(), + index: x.getIndex(), widgetType: this.$$type }), p = op({ - index: E.getIndex(), + index: x.getIndex(), widgetType: this.$$type, instantSearchInstance: w }), _ = Z.page === void 0 || v(Z, F) === 0; @@ -11678,13 +11678,13 @@ var ay = function(t) { dispose: function(S) { var m = S.state; r(); - var E = m.setQueryParameter("page", void 0); - return o ? E.setQueryParameters(Object.keys(or).reduce(function(j, D) { + var x = m.setQueryParameter("page", void 0); + return o ? x.setQueryParameters(Object.keys(or).reduce(function(j, D) { return st(st({}, j), {}, qc({}, D, void 0)); - }, {})) : E; + }, {})) : x; }, getWidgetUiState: function(S, m) { - var E = m.searchParameters, j = E.page || 0; + var x = m.searchParameters, j = x.page || 0; return j ? st(st({}, S), {}, { // The page in the UI state is incremented by one // to expose the user value (not `0`). @@ -11692,9 +11692,9 @@ var ay = function(t) { }) : S; }, getWidgetSearchParameters: function(S, m) { - var E = m.uiState, j = S; + var x = m.uiState, j = S; o && (j = S.setQueryParameters(or)); - var D = E.page ? E.page - 1 : 0; + var D = x.page ? x.page - 1 : 0; return j.setQueryParameter("page", D); } }; @@ -11837,10 +11837,10 @@ var vy = function(t) { to: function(b) { return f(b).toLocaleString(); } - }, d = function(b, S, m, E) { - var j = b.state, D = S.min, w = S.max, _ = j.getNumericRefinement(o, ">=") || [], W = er(_, 1), Z = W[0], F = j.getNumericRefinement(o, "<=") || [], Y = er(F, 1), re = Y[0], oe = m === void 0 || m === "", J = E === void 0 || E === "", z = tu({ + }, d = function(b, S, m, x) { + var j = b.state, D = S.min, w = S.max, _ = j.getNumericRefinement(o, ">=") || [], W = er(_, 1), Z = W[0], F = j.getNumericRefinement(o, "<=") || [], Y = er(F, 1), re = Y[0], oe = m === void 0 || m === "", J = x === void 0 || x === "", z = tu({ min: oe ? void 0 : parseFloat(m), - max: J ? void 0 : parseFloat(E), + max: J ? void 0 : parseFloat(x), precision: l }), ae = z.min, C = z.max, L; !Te(s) && D === ae ? L = void 0 : Te(s) && oe ? L = s : L = ae; @@ -11867,12 +11867,12 @@ var vy = function(t) { }); } function g(y) { - var b = y.getNumericRefinement(o, ">=") || [], S = er(b, 1), m = S[0], E = y.getNumericRefinement(o, "<=") || [], j = er(E, 1), D = j[0], w = Te(m) ? m : -1 / 0, _ = Te(D) ? D : 1 / 0; + var b = y.getNumericRefinement(o, ">=") || [], S = er(b, 1), m = S[0], x = y.getNumericRefinement(o, "<=") || [], j = er(x, 1), D = j[0], w = Te(m) ? m : -1 / 0, _ = Te(D) ? D : 1 / 0; return [w, _]; } function R(y, b) { return function() { - var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [void 0, void 0], m = er(S, 2), E = m[0], j = m[1], D = d(y, b, E, j); + var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [void 0, void 0], m = er(S, 2), x = m[0], j = m[1], D = d(y, b, x, j); D && y.setState(D).search(); }; } @@ -11894,7 +11894,7 @@ var vy = function(t) { }); }, getWidgetRenderState: function(b) { - var S = b.results, m = b.helper, E = b.instantSearchInstance, j = S && S.disjunctiveFacets || [], D = Cr(j, function(F) { + var S = b.results, m = b.helper, x = b.instantSearchInstance, j = S && S.disjunctiveFacets || [], D = Cr(j, function(F) { return F.name === o; }), w = D && D.stats || { min: void 0, @@ -11908,7 +11908,7 @@ var vy = function(t) { canRefine: _.min !== _.max, format: h, range: _, - sendEvent: p(E), + sendEvent: p(x), widgetParams: Ge(Ge({}, n), {}, { precision: l }), @@ -11920,21 +11920,21 @@ var vy = function(t) { return r(), S.removeDisjunctiveFacet(o).removeNumericRefinement(o); }, getWidgetUiState: function(b, S) { - var m = S.searchParameters, E = m.getNumericRefinements(o), j = E[">="], D = j === void 0 ? [] : j, w = E["<="], _ = w === void 0 ? [] : w; + var m = S.searchParameters, x = m.getNumericRefinements(o), j = x[">="], D = j === void 0 ? [] : j, w = x["<="], _ = w === void 0 ? [] : w; return D.length === 0 && _.length === 0 ? b : Ge(Ge({}, b), {}, { range: Ge(Ge({}, b.range), {}, kn({}, o, "".concat(D, ":").concat(_))) }); }, getWidgetSearchParameters: function(b, S) { - var m = S.uiState, E = b.addDisjunctiveFacet(o).setQueryParameters({ + var m = S.uiState, x = b.addDisjunctiveFacet(o).setQueryParameters({ numericRefinements: Ge(Ge({}, b.numericRefinements), {}, kn({}, o, {})) }); - Te(s) && (E = E.addNumericRefinement(o, ">=", s)), Te(c) && (E = E.addNumericRefinement(o, "<=", c)); + Te(s) && (x = x.addNumericRefinement(o, ">=", s)), Te(c) && (x = x.addNumericRefinement(o, "<=", c)); var j = m.range && m.range[o]; if (!j || j.indexOf(":") === -1) - return E; + return x; var D = j.split(":").map(parseFloat), w = er(D, 2), _ = w[0], W = w[1]; - return Te(_) && (!Te(s) || s < _) && (E = E.removeNumericRefinement(o, ">="), E = E.addNumericRefinement(o, ">=", _)), Te(W) && (!Te(c) || W < c) && (E = E.removeNumericRefinement(o, "<="), E = E.addNumericRefinement(o, "<=", W)), E; + return Te(_) && (!Te(s) || s < _) && (x = x.removeNumericRefinement(o, ">="), x = x.addNumericRefinement(o, ">=", _)), Te(W) && (!Te(c) || W < c) && (x = x.removeNumericRefinement(o, "<="), x = x.addNumericRefinement(o, "<=", W)), x; } }; }; @@ -11966,14 +11966,14 @@ function Ae(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t] != null ? arguments[t] : {}; t % 2 ? ru(Object(r), !0).forEach(function(n) { - Er(e, n, r[n]); + xr(e, n, r[n]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ru(Object(r)).forEach(function(n) { Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); }); } return e; } -function Er(e, t, r) { +function xr(e, t, r) { return t = wy(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e; } function wy(e) { @@ -12033,7 +12033,7 @@ var An = jt({ label: ae, highlighted: ae }); - }, m, E = [], j = !0, D, w, _ = !1, W = function() { + }, m, x = [], j = !0, D, w, _ = !1, W = function() { }; function Z() { W(); @@ -12053,7 +12053,7 @@ var An = jt({ return function(C) { return function(L) { var I = C.instantSearchInstance, $ = C.results; - if (L === "" && E) + if (L === "" && x) t(Ae(Ae({}, ae.getWidgetRenderState(Ae(Ae({}, C), {}, { results: m }))), {}, { @@ -12110,7 +12110,7 @@ var An = jt({ }, getRenderState: function(z, ae) { return Ae(Ae({}, z), {}, { - refinementList: Ae(Ae({}, z.refinementList), {}, Er({}, a, this.getWidgetRenderState(ae))) + refinementList: Ae(Ae({}, z.refinementList), {}, xr({}, a, this.getWidgetRenderState(ae))) }); }, getWidgetRenderState: function(z) { @@ -12131,9 +12131,9 @@ var An = jt({ results: ae }); var Q = C.maxValuesPerFacet, A = Y(); - j = Q > A ? B.length <= A : B.length < A, m = ae, E = N, z.results && (W = F(z, this)); + j = Q > A ? B.length <= A : B.length < A, m = ae, x = N, z.results && (W = F(z, this)); } - var ee = re && re(z), K = _ && E.length > u, H = f && !j, x = K || H; + var ee = re && re(z), K = _ && x.length > u, H = f && !j, E = K || H; return { createURL: function(pe) { return L(C.resetPage().toggleFacetRefinement(a, pe)); @@ -12145,7 +12145,7 @@ var An = jt({ canRefine: N.length > 0, widgetParams: n, isShowingMore: _, - canToggleShowMore: x, + canToggleShowMore: E, toggleShowMore: Z, sendEvent: w, hasExhaustiveItems: j @@ -12160,7 +12160,7 @@ var An = jt({ getWidgetUiState: function(z, ae) { var C = ae.searchParameters, L = s === "or" ? C.getDisjunctiveRefinements(a) : C.getConjunctiveRefinements(a); return L.length ? Ae(Ae({}, z), {}, { - refinementList: Ae(Ae({}, z.refinementList), {}, Er({}, a, L)) + refinementList: Ae(Ae({}, z.refinementList), {}, xr({}, a, L)) }) : z; }, getWidgetSearchParameters: function(z, ae) { @@ -12174,7 +12174,7 @@ As this is not supported, please make sure to only use this attribute with one o var I = C.refinementList && C.refinementList[a], $ = z.clearRefinements(a), N = L ? $.addDisjunctiveFacet(a) : $.addFacet(a), B = N.maxValuesPerFacet || 0, P = Math.max(B, f ? d : u), Q = N.setQueryParameter("maxValuesPerFacet", P); if (!I) { var A = L ? "disjunctiveFacetsRefinements" : "facetsRefinements"; - return Q.setQueryParameters(Er({}, A, Ae(Ae({}, Q[A]), {}, Er({}, a, [])))); + return Q.setQueryParameters(xr({}, A, Ae(Ae({}, Q[A]), {}, xr({}, a, [])))); } return I.reduce(function(ee, K) { return L ? ee.addDisjunctiveFacetRefinement(a, K) : ee.addFacetRefinement(a, K); @@ -12184,7 +12184,7 @@ As this is not supported, please make sure to only use this attribute with one o }; }; const Py = Ry; -function Ey(e, t) { +function xy(e, t) { return Gt(Py, e, t); } function Xr(e) { @@ -12209,14 +12209,14 @@ function It(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t] != null ? arguments[t] : {}; t % 2 ? au(Object(r), !0).forEach(function(n) { - xy(e, n, r[n]); + Ey(e, n, r[n]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : au(Object(r)).forEach(function(n) { Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); }); } return e; } -function xy(e, t, r) { +function Ey(e, t, r) { return t = _y(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e; } function _y(e) { @@ -12749,11 +12749,11 @@ function hb(e) { } function Qc(e) { var t = e.formRef, r = e.inputRef, n = e.isSearchStalled, i = e.onChange, a = e.onReset, o = e.onSubmit, s = e.placeholder, c = e.value, u = e.autoFocus, l = e.resetIconComponent, f = l === void 0 ? fb : l, h = e.submitIconComponent, d = h === void 0 ? cb : h, p = e.loadingIconComponent, v = p === void 0 ? hb : p, g = e.classNames, R = g === void 0 ? {} : g, y = e.translations, b = ob(e, ab); - function S(E) { - E.preventDefault(), E.stopPropagation(), o && o(E), r.current && r.current.blur(); + function S(x) { + x.preventDefault(), x.stopPropagation(), o && o(x), r.current && r.current.blur(); } - function m(E) { - E.preventDefault(), E.stopPropagation(), a(E), r.current && r.current.focus(); + function m(x) { + x.preventDefault(), x.stopPropagation(), a(x), r.current && r.current.focus(); } return /* @__PURE__ */ U.createElement("div", va({}, b, { className: Oe("ais-SearchBox", R.root, b.className) @@ -12913,7 +12913,7 @@ function Rb(e) { function Pb(e, t) { if (e == null) return {}; - var r = Eb(e, t), n, i; + var r = xb(e, t), n, i; if (Object.getOwnPropertySymbols) { var a = Object.getOwnPropertySymbols(e); for (i = 0; i < a.length; i++) @@ -12921,7 +12921,7 @@ function Pb(e, t) { } return r; } -function Eb(e, t) { +function xb(e, t) { if (e == null) return {}; var r = {}, n = Object.keys(e), i, a; @@ -12930,7 +12930,7 @@ function Eb(e, t) { return r; } function We(e) { - var t = e.searchable, r = e.searchablePlaceholder, n = e.attribute, i = e.operator, a = e.limit, o = e.showMore, s = e.showMoreLimit, c = e.sortBy, u = e.escapeFacetValues, l = e.transformItems, f = e.translations, h = Pb(e, pb), d = Ey({ + var t = e.searchable, r = e.searchablePlaceholder, n = e.attribute, i = e.operator, a = e.limit, o = e.showMore, s = e.showMoreLimit, c = e.sortBy, u = e.escapeFacetValues, l = e.transformItems, f = e.translations, h = Pb(e, pb), d = xy({ attribute: n, operator: i, limit: a, @@ -12941,7 +12941,7 @@ function We(e) { transformItems: l }, { $$widgetType: "ais.refinementList" - }), p = d.canRefine, v = d.canToggleShowMore, g = d.isFromSearch, R = d.isShowingMore, y = d.items, b = d.refine, S = d.searchForItems, m = d.toggleShowMore, E = Et(""), j = bb(E, 2), D = j[0], w = j[1], _ = ut(null); + }), p = d.canRefine, v = d.canToggleShowMore, g = d.isFromSearch, R = d.isShowingMore, y = d.items, b = d.refine, S = d.searchForItems, m = d.toggleShowMore, x = xt(""), j = bb(x, 2), D = j[0], w = j[1], _ = ut(null); function W(z) { w(z), S(z); } @@ -13002,7 +13002,7 @@ function en(e) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, en(e); } -var xb = ["queryHook", "searchAsYouType", "translations"]; +var Eb = ["queryHook", "searchAsYouType", "translations"]; function ga() { return ga = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { @@ -13127,11 +13127,11 @@ function Db(e, t) { return r; } function Mb(e) { - var t = e.queryHook, r = e.searchAsYouType, n = r === void 0 ? !0 : r, i = e.translations, a = kb(e, xb), o = Fy({ + var t = e.queryHook, r = e.searchAsYouType, n = r === void 0 ? !0 : r, i = e.translations, a = kb(e, Eb), o = Fy({ queryHook: t }, { $$widgetType: "ais.searchBox" - }), s = o.query, c = o.refine, u = o.isSearchStalled, l = Et(s), f = $b(l, 2), h = f[0], d = f[1], p = ut(null); + }), s = o.query, c = o.refine, u = o.isSearchStalled, l = xt(s), f = $b(l, 2), h = f[0], d = f[1], p = ut(null); function v(S) { d(S), n && c(S); } @@ -13415,6 +13415,10 @@ const Qb = (e) => Array.isArray(e) ? /* @__PURE__ */ T.jsx("span", { children: e en: "Archive", fr: "Archive" }, + archivePlace: { + en: "Archive Place", + fr: "???" + }, origDate: { en: "Original Date", fr: "Date Originale" @@ -13431,14 +13435,26 @@ const Qb = (e) => Array.isArray(e) ? /* @__PURE__ */ T.jsx("span", { children: e en: "Former Shelfmarks", fr: "Ancienne notation d'étagère" }, + formerShelfmark: { + en: "Former Shelfmark", + fr: "Ancienne notation d'étagère" + }, shelfmarks: { en: "Shelfmarks", fr: "Notation d'étagère" }, + shelfmark: { + en: "Shelfmark", + fr: "Notation d'étagère" + }, shelfmarkSections: { en: "Shelfmark Sections", fr: "Sections de notation d'étagère" }, + shelfmarkSection: { + en: "Shelfmark Section", + fr: "Section de notation d'étagère" + }, provenance: { en: "Provenance", fr: "Provenance" @@ -13510,6 +13526,38 @@ const Qb = (e) => Array.isArray(e) ? /* @__PURE__ */ T.jsx("span", { children: e manuscript: { en: "Manuscript", fr: "Manuscrit" + }, + catalogNumber: { + en: "Catalog number", + fr: "???" + }, + numberOfFolios: { + en: "Number of folios", + fr: "???" + }, + pageSize: { + en: "Page size", + fr: "???" + }, + textBlockSize: { + en: "Text block size", + fr: "???" + }, + numberOfLines: { + en: "Number of lines", + fr: "???" + }, + places: { + en: "Places", + fr: "???" + }, + dates: { + en: "Dates", + fr: "???" + }, + measures: { + en: "Measures", + fr: "???" } }, Oi = (e, t) => e.map((r) => ({ ...r, @@ -13519,7 +13567,7 @@ const Qb = (e) => Array.isArray(e) ? /* @__PURE__ */ T.jsx("span", { children: e hits: t, isLastPage: r, showMore: n - } = sy(e), { locale: i } = e, [a, o] = Et(!0); + } = sy(e), { locale: i } = e, [a, o] = xt(!0); if (Pt(() => { a && t.length > 0 && o(!1); }, [t, a]), a) @@ -13574,8 +13622,8 @@ function Xb() { var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, R = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119; function b(m) { if (typeof m == "object" && m !== null) { - var E = m.$$typeof; - switch (E) { + var x = m.$$typeof; + switch (x) { case t: switch (m = m.type, m) { case c: @@ -13594,11 +13642,11 @@ function Xb() { case o: return m; default: - return E; + return x; } } case r: - return E; + return x; } } } @@ -13646,16 +13694,16 @@ var hu; function Zb() { return hu || (hu = 1, process.env.NODE_ENV !== "production" && function() { var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, R = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119; - function b(x) { - return typeof x == "string" || typeof x == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. - x === n || x === u || x === a || x === i || x === f || x === h || typeof x == "object" && x !== null && (x.$$typeof === p || x.$$typeof === d || x.$$typeof === o || x.$$typeof === s || x.$$typeof === l || x.$$typeof === g || x.$$typeof === R || x.$$typeof === y || x.$$typeof === v); + function b(E) { + return typeof E == "string" || typeof E == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. + E === n || E === u || E === a || E === i || E === f || E === h || typeof E == "object" && E !== null && (E.$$typeof === p || E.$$typeof === d || E.$$typeof === o || E.$$typeof === s || E.$$typeof === l || E.$$typeof === g || E.$$typeof === R || E.$$typeof === y || E.$$typeof === v); } - function S(x) { - if (typeof x == "object" && x !== null) { - var fe = x.$$typeof; + function S(E) { + if (typeof E == "object" && E !== null) { + var fe = E.$$typeof; switch (fe) { case t: - var pe = x.type; + var pe = E.type; switch (pe) { case c: case u: @@ -13682,47 +13730,47 @@ function Zb() { } } } - var m = c, E = u, j = s, D = o, w = t, _ = l, W = n, Z = p, F = d, Y = r, re = a, oe = i, J = f, z = !1; - function ae(x) { - return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), C(x) || S(x) === c; + var m = c, x = u, j = s, D = o, w = t, _ = l, W = n, Z = p, F = d, Y = r, re = a, oe = i, J = f, z = !1; + function ae(E) { + return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), C(E) || S(E) === c; } - function C(x) { - return S(x) === u; + function C(E) { + return S(E) === u; } - function L(x) { - return S(x) === s; + function L(E) { + return S(E) === s; } - function I(x) { - return S(x) === o; + function I(E) { + return S(E) === o; } - function $(x) { - return typeof x == "object" && x !== null && x.$$typeof === t; + function $(E) { + return typeof E == "object" && E !== null && E.$$typeof === t; } - function N(x) { - return S(x) === l; + function N(E) { + return S(E) === l; } - function B(x) { - return S(x) === n; + function B(E) { + return S(E) === n; } - function P(x) { - return S(x) === p; + function P(E) { + return S(E) === p; } - function Q(x) { - return S(x) === d; + function Q(E) { + return S(E) === d; } - function A(x) { - return S(x) === r; + function A(E) { + return S(E) === r; } - function ee(x) { - return S(x) === a; + function ee(E) { + return S(E) === a; } - function K(x) { - return S(x) === i; + function K(E) { + return S(E) === i; } - function H(x) { - return S(x) === f; + function H(E) { + return S(E) === f; } - Se.AsyncMode = m, Se.ConcurrentMode = E, Se.ContextConsumer = j, Se.ContextProvider = D, Se.Element = w, Se.ForwardRef = _, Se.Fragment = W, Se.Lazy = Z, Se.Memo = F, Se.Portal = Y, Se.Profiler = re, Se.StrictMode = oe, Se.Suspense = J, Se.isAsyncMode = ae, Se.isConcurrentMode = C, Se.isContextConsumer = L, Se.isContextProvider = I, Se.isElement = $, Se.isForwardRef = N, Se.isFragment = B, Se.isLazy = P, Se.isMemo = Q, Se.isPortal = A, Se.isProfiler = ee, Se.isStrictMode = K, Se.isSuspense = H, Se.isValidElementType = b, Se.typeOf = S; + Se.AsyncMode = m, Se.ConcurrentMode = x, Se.ContextConsumer = j, Se.ContextProvider = D, Se.Element = w, Se.ForwardRef = _, Se.Fragment = W, Se.Lazy = Z, Se.Memo = F, Se.Portal = Y, Se.Profiler = re, Se.StrictMode = oe, Se.Suspense = J, Se.isAsyncMode = ae, Se.isConcurrentMode = C, Se.isContextConsumer = L, Se.isContextProvider = I, Se.isElement = $, Se.isForwardRef = N, Se.isFragment = B, Se.isLazy = P, Se.isMemo = Q, Se.isPortal = A, Se.isProfiler = ee, Se.isStrictMode = K, Se.isSuspense = H, Se.isValidElementType = b, Se.typeOf = S; }()), Se; } var pu; @@ -13789,14 +13837,14 @@ function so() { var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; return Pi = e, Pi; } -var Ei, gu; +var xi, gu; function Kc() { - return gu || (gu = 1, Ei = Function.call.bind(Object.prototype.hasOwnProperty)), Ei; + return gu || (gu = 1, xi = Function.call.bind(Object.prototype.hasOwnProperty)), xi; } -var xi, yu; +var Ei, yu; function e0() { if (yu) - return xi; + return Ei; yu = 1; var e = function() { }; @@ -13841,7 +13889,7 @@ function e0() { } return i.resetWarningCache = function() { process.env.NODE_ENV !== "production" && (r = {}); - }, xi = i, xi; + }, Ei = i, Ei; } var _i, bu; function t0() { @@ -13881,7 +13929,7 @@ function t0() { arrayOf: b, element: S(), elementType: m(), - instanceOf: E, + instanceOf: x, node: _(), objectOf: D, oneOf: j, @@ -13902,10 +13950,10 @@ function t0() { function $(B, P, Q, A, ee, K, H) { if (A = A || h, K = K || Q, H !== r) { if (c) { - var x = new Error( + var E = new Error( "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types" ); - throw x.name = "Invariant Violation", x; + throw E.name = "Invariant Violation", E; } else if (process.env.NODE_ENV !== "production" && typeof console < "u") { var fe = A + ":" + Q; !L[fe] && // Avoid spamming the console because they are often not actionable except for lib authors @@ -13976,7 +14024,7 @@ function t0() { } return g(C); } - function E(C) { + function x(C) { function L(I, $, N, B, P) { if (!(I[$] instanceof C)) { var Q = C.name || h, A = ae(I[$]); @@ -13995,9 +14043,9 @@ function t0() { for (var Q = I[$], A = 0; A < C.length; A++) if (p(Q, C[A])) return null; - var ee = JSON.stringify(C, function(H, x) { - var fe = J(x); - return fe === "symbol" ? String(x) : x; + var ee = JSON.stringify(C, function(H, E) { + var fe = J(E); + return fe === "symbol" ? String(E) : E; }); return new v("Invalid " + B + " `" + P + "` of value `" + String(Q) + "` " + ("supplied to `" + N + "`, expected one of " + ee + ".")); } @@ -14032,10 +14080,10 @@ function t0() { } function $(N, B, P, Q, A) { for (var ee = [], K = 0; K < C.length; K++) { - var H = C[K], x = H(N, B, P, Q, A, r); - if (x == null) + var H = C[K], E = H(N, B, P, Q, A, r); + if (E == null) return null; - x.data && n(x.data, "expectedType") && ee.push(x.data.expectedType); + E.data && n(E.data, "expectedType") && ee.push(E.data.expectedType); } var fe = ee.length > 0 ? ", expected one of type [" + ee.join(", ") + "]" : ""; return new v("Invalid " + Q + " `" + A + "` supplied to " + ("`" + P + "`" + fe + ".")); @@ -14085,9 +14133,9 @@ function t0() { "Invalid " + B + " `" + P + "` key `" + K + "` supplied to `" + N + "`.\nBad object: " + JSON.stringify(I[$], null, " ") + ` Valid keys: ` + JSON.stringify(Object.keys(C), null, " ") ); - var x = H(Q, K, N, B, P + "." + K, r); - if (x) - return x; + var E = H(Q, K, N, B, P + "." + K, r); + if (E) + return E; } return null; } @@ -14439,15 +14487,15 @@ fo.defaultProps = { }; const w0 = fo; var S0 = ["color", "size", "title"]; -function Ea() { - return Ea = Object.assign || function(e) { +function xa() { + return xa = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t]; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]); } return e; - }, Ea.apply(this, arguments); + }, xa.apply(this, arguments); } function O0(e, t) { if (e == null) @@ -14470,7 +14518,7 @@ function R0(e, t) { } var ho = /* @__PURE__ */ Je(function(e, t) { var r = e.color, n = e.size, i = e.title, a = O0(e, S0); - return /* @__PURE__ */ U.createElement("svg", Ea({ + return /* @__PURE__ */ U.createElement("svg", xa({ ref: t, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", @@ -14495,20 +14543,20 @@ ho.defaultProps = { }; const Xc = ho; var P0 = ["color", "size", "title"]; -function xa() { - return xa = Object.assign || function(e) { +function Ea() { + return Ea = Object.assign || function(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t]; for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]); } return e; - }, xa.apply(this, arguments); + }, Ea.apply(this, arguments); } -function E0(e, t) { +function x0(e, t) { if (e == null) return {}; - var r = x0(e, t), n, i; + var r = E0(e, t), n, i; if (Object.getOwnPropertySymbols) { var a = Object.getOwnPropertySymbols(e); for (i = 0; i < a.length; i++) @@ -14516,7 +14564,7 @@ function E0(e, t) { } return r; } -function x0(e, t) { +function E0(e, t) { if (e == null) return {}; var r = {}, n = Object.keys(e), i, a; @@ -14525,8 +14573,8 @@ function x0(e, t) { return r; } var po = /* @__PURE__ */ Je(function(e, t) { - var r = e.color, n = e.size, i = e.title, a = E0(e, P0); - return /* @__PURE__ */ U.createElement("svg", xa({ + var r = e.color, n = e.size, i = e.title, a = x0(e, P0); + return /* @__PURE__ */ U.createElement("svg", Ea({ ref: t, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", @@ -15100,7 +15148,7 @@ const f1 = Po, d1 = za.div` margin-bottom: 2rem; width: 100%; box-shadow: 0 0 0 1px rgba(35, 38, 59, 0.05), 0 1px 3px 0 rgba(35, 38, 59, 0.15); -`, Ne = ({ header: e, children: t }) => /* @__PURE__ */ T.jsxs(d1, { children: [ +`, Ie = ({ header: e, children: t }) => /* @__PURE__ */ T.jsxs(d1, { children: [ e ? /* @__PURE__ */ T.jsx("span", { className: "header", children: e }) : null, t ] }), h1 = za.div` @@ -15376,130 +15424,135 @@ padding: 10px; } `; -var Fe = /* @__PURE__ */ ((e) => (e.Number = "number", e.String = "string", e))(Fe || {}); +var Ce = /* @__PURE__ */ ((e) => (e.Number = "number", e.String = "string", e))(Ce || {}); const p1 = [ { name: "number_order", - type: Fe.Number, + type: Ce.Number, label: G.number_of_order, limits: [1, 600] }, { name: "year", - type: Fe.Number, + type: Ce.Number, label: G.year, limits: [1380, 1460] }, { name: "month", - type: Fe.Number, + type: Ce.Number, label: G.month, limits: [1, 12] }, { name: "day", - type: Fe.Number, + type: Ce.Number, label: G.day, limits: [1, 31] }, { name: "town.name", - type: Fe.String, + type: Ce.String, label: G.city }, { name: "date_of_place.name", - type: Fe.String, + type: Ce.String, label: G.place_given }, { name: "titulature.full_name", - type: Fe.String, + type: Ce.String, label: G.titulature }, { name: "commandement.full_name", - type: Fe.String, + type: Ce.String, label: G.commandement }, { name: "keywords", - type: Fe.String, + type: Ce.String, label: G.keywords }, { name: "works.title", - type: Fe.String, + type: Ce.String, label: G.works }, { name: "OrigDate", - type: Fe.String, + type: Ce.String, label: G.origDate }, { name: "origPlace", - type: Fe.String, + type: Ce.String, label: G.origPlace }, { name: "sections.shelfmark_sections_id.name", - type: Fe.String, + type: Ce.String, label: G.shelfmarkSections }, { name: "provenance", - type: Fe.String, + type: Ce.String, label: G.provenance }, { name: "archive", - type: Fe.String, + type: Ce.String, label: G.archive }, + { + name: "archive_place", + type: Ce.String, + label: G.archivePlace + }, { name: "shelfmark", - type: Fe.String, + type: Ce.String, label: G.shelfmarks }, { name: "former_shelfmark", - type: Fe.String, + type: Ce.String, label: G.formerShelfmarks }, { name: "status", - type: Fe.String, + type: Ce.String, label: G.status }, { name: "author_id.full_name", - type: Fe.String, + type: Ce.String, label: G.author }, { name: "format", - type: Fe.String, + type: Ce.String, label: G.format }, { name: "type", - type: Fe.String, + type: Ce.String, label: G.type }, { name: "publication_date", - type: Fe.String, + type: Ce.String, label: G.publicationDate }, { name: "publication_location.name", - type: Fe.String, + type: Ce.String, label: G.publicationLocation }, { name: "archives", - type: Fe.String, + type: Ce.String, label: G.archive } ], v1 = (e) => e.refinements[0].type === "numeric", m1 = (e) => { @@ -15564,7 +15617,7 @@ const p1 = [ }, s.display.label )) }); -}, Eo = ({ +}, xo = ({ indexName: e, locale: t, children: r, @@ -15574,7 +15627,7 @@ const p1 = [ hitWrapperComponent: o, getHitWrapperProps: s }) => { - const [c, u] = Et(!1), [l, f] = Et(!0), h = ut(null), d = () => { + const [c, u] = xt(!1), [l, f] = xt(!0), h = ut(null), d = () => { h.current && l && u(!c); }; return Pt(() => { @@ -15598,7 +15651,7 @@ const p1 = [ } ), /* @__PURE__ */ T.jsxs("div", { className: "leftPanel", children: [ - /* @__PURE__ */ T.jsxs(Ne, { header: G.search[t], children: [ + /* @__PURE__ */ T.jsxs(Ie, { header: G.search[t], children: [ /* @__PURE__ */ T.jsx( "button", { @@ -15614,7 +15667,7 @@ const p1 = [ } ) ] }), - /* @__PURE__ */ T.jsx("div", { className: "filters", ref: h, children: i.sortFields ? /* @__PURE__ */ T.jsx(Ne, { header: G.sort[t], children: /* @__PURE__ */ T.jsx( + /* @__PURE__ */ T.jsx("div", { className: "filters", ref: h, children: i.sortFields ? /* @__PURE__ */ T.jsx(Ie, { header: G.sort[t], children: /* @__PURE__ */ T.jsx( zb, { items: i.sortFields @@ -15688,9 +15741,9 @@ const p1 = [ caption: G.origDate[e] }, { - attribute: "origPlace", + attribute: "archive_place", icon: /* @__PURE__ */ T.jsx(G0, {}), - caption: G.origPlace[e] + caption: G.archivePlace[e] }, { attribute: "works", @@ -15717,7 +15770,7 @@ const p1 = [ ] }) : /* @__PURE__ */ T.jsx(T.Fragment, {}) }), [e]); return /* @__PURE__ */ T.jsx(Qa, { children: /* @__PURE__ */ T.jsxs( - Eo, + xo, { searchClient: y1, locale: e, @@ -15727,49 +15780,55 @@ const p1 = [ hitWrapperComponent: r, getHitWrapperProps: n, children: [ - /* @__PURE__ */ T.jsx(Ne, { header: G.works[e], children: /* @__PURE__ */ T.jsx( + /* @__PURE__ */ T.jsx(Ie, { header: G.works[e], children: /* @__PURE__ */ T.jsx( We, { attribute: "works.title" } ) }), - /* @__PURE__ */ T.jsx(Ne, { header: G.origDate[e], children: /* @__PURE__ */ T.jsx( + /* @__PURE__ */ T.jsx(Ie, { header: G.origDate[e], children: /* @__PURE__ */ T.jsx( We, { attribute: "OrigDate" } ) }), - /* @__PURE__ */ T.jsx(Ne, { header: G.origPlace[e], children: /* @__PURE__ */ T.jsx( + /* @__PURE__ */ T.jsx(Ie, { header: G.origPlace[e], children: /* @__PURE__ */ T.jsx( We, { attribute: "origPlace" } ) }), - /* @__PURE__ */ T.jsx(Ne, { header: G.sections[e], children: /* @__PURE__ */ T.jsx( + /* @__PURE__ */ T.jsx(Ie, { header: G.sections[e], children: /* @__PURE__ */ T.jsx( We, { attribute: "sections.shelfmark_sections_id.name" } ) }), - /* @__PURE__ */ T.jsx(Ne, { header: G.provenance[e], children: /* @__PURE__ */ T.jsx( + /* @__PURE__ */ T.jsx(Ie, { header: G.provenance[e], children: /* @__PURE__ */ T.jsx( We, { attribute: "provenance" } ) }), - /* @__PURE__ */ T.jsx(Ne, { header: G.archive[e], children: /* @__PURE__ */ T.jsx( + /* @__PURE__ */ T.jsx(Ie, { header: G.archive[e], children: /* @__PURE__ */ T.jsx( We, { attribute: "archive" } ) }), - /* @__PURE__ */ T.jsx(Ne, { header: G.shelfmarks[e], children: /* @__PURE__ */ T.jsx( + /* @__PURE__ */ T.jsx(Ie, { header: G.archivePlace[e], children: /* @__PURE__ */ T.jsx( + We, + { + attribute: "archive_place" + } + ) }), + /* @__PURE__ */ T.jsx(Ie, { header: G.shelfmarks[e], children: /* @__PURE__ */ T.jsx( We, { attribute: "shelfmark" } ) }), - /* @__PURE__ */ T.jsx(Ne, { header: G.formerShelfmarks[e], children: /* @__PURE__ */ T.jsx( + /* @__PURE__ */ T.jsx(Ie, { header: G.formerShelfmarks[e], children: /* @__PURE__ */ T.jsx( We, { attribute: "former_shelfmark" @@ -15846,7 +15905,7 @@ const p1 = [ } }), [e]); return /* @__PURE__ */ T.jsx(Qa, { children: /* @__PURE__ */ T.jsxs( - Eo, + xo, { searchClient: w1, locale: e, @@ -15856,46 +15915,46 @@ const p1 = [ hitWrapperComponent: r, getHitWrapperProps: n, children: [ - /* @__PURE__ */ T.jsx(Ne, { header: G.status[e], children: /* @__PURE__ */ T.jsx( + /* @__PURE__ */ T.jsx(Ie, { header: G.status[e], children: /* @__PURE__ */ T.jsx( We, { attribute: "status", transformItems: (a) => Oi(a, e) } ) }), - /* @__PURE__ */ T.jsx(Ne, { header: G.author[e], children: /* @__PURE__ */ T.jsx( + /* @__PURE__ */ T.jsx(Ie, { header: G.author[e], children: /* @__PURE__ */ T.jsx( We, { attribute: "author_id.full_name" } ) }), - /* @__PURE__ */ T.jsx(Ne, { header: G.format[e], children: /* @__PURE__ */ T.jsx( + /* @__PURE__ */ T.jsx(Ie, { header: G.format[e], children: /* @__PURE__ */ T.jsx( We, { attribute: "format", transformItems: (a) => Oi(a, e) } ) }), - /* @__PURE__ */ T.jsx(Ne, { header: G.type[e], children: /* @__PURE__ */ T.jsx( + /* @__PURE__ */ T.jsx(Ie, { header: G.type[e], children: /* @__PURE__ */ T.jsx( We, { attribute: "type", transformItems: (a) => Oi(a, e) } ) }), - /* @__PURE__ */ T.jsx(Ne, { header: G.publicationDate[e], children: /* @__PURE__ */ T.jsx( + /* @__PURE__ */ T.jsx(Ie, { header: G.publicationDate[e], children: /* @__PURE__ */ T.jsx( We, { attribute: "publication_date" } ) }), - /* @__PURE__ */ T.jsx(Ne, { header: G.publicationLocation[e], children: /* @__PURE__ */ T.jsx( + /* @__PURE__ */ T.jsx(Ie, { header: G.publicationLocation[e], children: /* @__PURE__ */ T.jsx( We, { attribute: "publication_location.name" } ) }), - /* @__PURE__ */ T.jsx(Ne, { header: G.archive[e], children: /* @__PURE__ */ T.jsx( + /* @__PURE__ */ T.jsx(Ie, { header: G.archive[e], children: /* @__PURE__ */ T.jsx( We, { attribute: "archives" @@ -15947,7 +16006,7 @@ function P1(e) { if (Array.isArray(e)) return Da(e); } -function E1(e) { +function x1(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); } @@ -15962,12 +16021,12 @@ function el(e, t) { return Da(e, t); } } -function x1() { +function E1() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function Mt(e) { - return P1(e) || E1(e) || el(e) || x1(); + return P1(e) || x1(e) || el(e) || E1(); } function _1(e) { if (Array.isArray(e)) @@ -16044,12 +16103,12 @@ var tl = { exports: {} }; })(tl); var A1 = tl.exports; const on = /* @__PURE__ */ cr(A1); -var Ma = {}, xo = [], $1 = function(t) { - xo.push(t); +var Ma = {}, Eo = [], $1 = function(t) { + Eo.push(t); }; function C1(e, t) { if (process.env.NODE_ENV !== "production" && !e && console !== void 0) { - var r = xo.reduce(function(n, i) { + var r = Eo.reduce(function(n, i) { return i(n ?? "", "warning"); }, t); r && console.error("Warning: ".concat(r)); @@ -16057,7 +16116,7 @@ function C1(e, t) { } function F1(e, t) { if (process.env.NODE_ENV !== "production" && !e && console !== void 0) { - var r = xo.reduce(function(n, i) { + var r = Eo.reduce(function(n, i) { return i(n ?? "", "note"); }, t); r && console.warn("Note: ".concat(r)); @@ -16195,7 +16254,7 @@ function nl(e, t) { } return r; } -function Eu(e, t) { +function xu(e, t) { var r = Object.keys(e); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); @@ -16208,9 +16267,9 @@ function Eu(e, t) { function yt(e) { for (var t = 1; t < arguments.length; t++) { var r = arguments[t] != null ? arguments[t] : {}; - t % 2 ? Eu(Object(r), !0).forEach(function(n) { + t % 2 ? xu(Object(r), !0).forEach(function(n) { dt(e, n, r[n]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Eu(Object(r)).forEach(function(n) { + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : xu(Object(r)).forEach(function(n) { Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); }); } @@ -16764,7 +16823,7 @@ function rr(e, t) { return Array.isArray(e) ? e[t] : e; } var W1 = ["prefixCls", "value", "valueIndex", "onStartMove", "style", "render", "dragging", "onOffsetChange"], il = /* @__PURE__ */ te.forwardRef(function(e, t) { - var r, n, i = e.prefixCls, a = e.value, o = e.valueIndex, s = e.onStartMove, c = e.style, u = e.render, l = e.dragging, f = e.onOffsetChange, h = nl(e, W1), d = te.useContext(Xt), p = d.min, v = d.max, g = d.direction, R = d.disabled, y = d.keyboard, b = d.range, S = d.tabIndex, m = d.ariaLabelForHandle, E = d.ariaLabelledByForHandle, j = d.ariaValueTextFormatterForHandle, D = "".concat(i, "-handle"), w = function(Y) { + var r, n, i = e.prefixCls, a = e.value, o = e.valueIndex, s = e.onStartMove, c = e.style, u = e.render, l = e.dragging, f = e.onOffsetChange, h = nl(e, W1), d = te.useContext(Xt), p = d.min, v = d.max, g = d.direction, R = d.disabled, y = d.keyboard, b = d.range, S = d.tabIndex, m = d.ariaLabelForHandle, x = d.ariaLabelledByForHandle, j = d.ariaValueTextFormatterForHandle, D = "".concat(i, "-handle"), w = function(Y) { R || s(Y, o); }, _ = function(Y) { if (!R && y) { @@ -16811,7 +16870,7 @@ var W1 = ["prefixCls", "value", "valueIndex", "onStartMove", "style", "render", "aria-valuenow": a, "aria-disabled": R, "aria-label": rr(m, o), - "aria-labelledby": rr(E, o), + "aria-labelledby": rr(x, o), "aria-valuetext": (n = rr(j, o)) === null || n === void 0 ? void 0 : n(a), "aria-orientation": g === "ltr" || g === "rtl" ? "horizontal" : "vertical" }, h)); @@ -16850,7 +16909,7 @@ var U1 = ["prefixCls", "style", "onStartMove", "onOffsetChange", "values", "hand })); }); process.env.NODE_ENV !== "production" && (al.displayName = "Handles"); -function xu(e) { +function Eu(e) { var t = "touches" in e ? e.touches[0] : e; return { pageX: t.pageX, @@ -16858,7 +16917,7 @@ function xu(e) { }; } function B1(e, t, r, n, i, a, o, s, c) { - var u = te.useState(null), l = it(u, 2), f = l[0], h = l[1], d = te.useState(-1), p = it(d, 2), v = p[0], g = p[1], R = te.useState(r), y = it(R, 2), b = y[0], S = y[1], m = te.useState(r), E = it(m, 2), j = E[0], D = E[1], w = te.useRef(null), _ = te.useRef(null); + var u = te.useState(null), l = it(u, 2), f = l[0], h = l[1], d = te.useState(-1), p = it(d, 2), v = p[0], g = p[1], R = te.useState(r), y = it(R, 2), b = y[0], S = y[1], m = te.useState(r), x = it(m, 2), j = x[0], D = x[1], w = te.useRef(null), _ = te.useRef(null); te.useEffect(function() { v === -1 && S(r); }, [r, v]), te.useEffect(function() { @@ -16892,9 +16951,9 @@ function B1(e, t, r, n, i, a, o, s, c) { J.stopPropagation(); var ae = r[z]; g(z), h(ae), D(r); - var C = xu(J), L = C.pageX, I = C.pageY, $ = function(P) { + var C = Eu(J), L = C.pageX, I = C.pageY, $ = function(P) { P.preventDefault(); - var Q = xu(P), A = Q.pageX, ee = Q.pageY, K = A - L, H = ee - I, x = e.current.getBoundingClientRect(), fe = x.width, pe = x.height, ue; + var Q = Eu(P), A = Q.pageX, ee = Q.pageY, K = A - L, H = ee - I, E = e.current.getBoundingClientRect(), fe = E.width, pe = E.height, ue; switch (t) { case "btt": ue = -H / pe; @@ -17066,8 +17125,8 @@ function G1(e, t, r, n, i, a) { n.forEach(function(_) { m.push(_.value); }), m.push(e, t), m.push(s(b)); - var E = v > 0 ? 1 : -1; - R === "unit" ? m.push(s(b + E * r)) : m.push(s(S)), m = m.filter(function(_) { + var x = v > 0 ? 1 : -1; + R === "unit" ? m.push(s(b + x * r)) : m.push(s(S)), m = m.filter(function(_) { return _ !== null; }).filter(function(_) { return v < 0 ? _ <= b : _ >= b; @@ -17086,7 +17145,7 @@ function G1(e, t, r, n, i, a) { return y; if (Math.abs(v) > 1) { var w = Mt(p); - return w[g] = y, d(w, v - E, g, R); + return w[g] = y, d(w, v - x, g, R); } return y; } else { @@ -17109,10 +17168,10 @@ function G1(e, t, r, n, i, a) { var m = a || 0; g > 0 && y[g - 1] !== b && (y[g] = Math.max(y[g], y[g - 1] + m)), g < y.length - 1 && y[g + 1] !== b && (y[g] = Math.min(y[g], y[g + 1] - m)); } else if (typeof a == "number" || a === null) { - for (var E = g + 1; E < y.length; E += 1) - for (var j = !0; f(y[E] - y[E - 1]) && j; ) { - var D = l(y, 1, E); - y[E] = D.value, j = D.changed; + for (var x = g + 1; x < y.length; x += 1) + for (var j = !0; f(y[x] - y[x - 1]) && j; ) { + var D = l(y, 1, x); + y[x] = D.value, j = D.changed; } for (var w = g; w > 0; w -= 1) for (var _ = !0; f(y[w] - y[w - 1]) && _; ) { @@ -17138,11 +17197,11 @@ function G1(e, t, r, n, i, a) { return [c, h]; } var ol = /* @__PURE__ */ te.forwardRef(function(e, t) { - var r, n = e.prefixCls, i = n === void 0 ? "rc-slider" : n, a = e.className, o = e.style, s = e.disabled, c = s === void 0 ? !1 : s, u = e.keyboard, l = u === void 0 ? !0 : u, f = e.autoFocus, h = e.onFocus, d = e.onBlur, p = e.min, v = p === void 0 ? 0 : p, g = e.max, R = g === void 0 ? 100 : g, y = e.step, b = y === void 0 ? 1 : y, S = e.value, m = e.defaultValue, E = e.range, j = e.count, D = e.onChange, w = e.onBeforeChange, _ = e.onAfterChange, W = e.allowCross, Z = W === void 0 ? !0 : W, F = e.pushable, Y = F === void 0 ? !1 : F, re = e.draggableTrack, oe = e.reverse, J = e.vertical, z = e.included, ae = z === void 0 ? !0 : z, C = e.startPoint, L = e.trackStyle, I = e.handleStyle, $ = e.railStyle, N = e.dotStyle, B = e.activeDotStyle, P = e.marks, Q = e.dots, A = e.handleRender, ee = e.tabIndex, K = ee === void 0 ? 0 : ee, H = e.ariaLabelForHandle, x = e.ariaLabelledByForHandle, fe = e.ariaValueTextFormatterForHandle, pe = te.useRef(), ue = te.useRef(), je = te.useMemo(function() { + var r, n = e.prefixCls, i = n === void 0 ? "rc-slider" : n, a = e.className, o = e.style, s = e.disabled, c = s === void 0 ? !1 : s, u = e.keyboard, l = u === void 0 ? !0 : u, f = e.autoFocus, h = e.onFocus, d = e.onBlur, p = e.min, v = p === void 0 ? 0 : p, g = e.max, R = g === void 0 ? 100 : g, y = e.step, b = y === void 0 ? 1 : y, S = e.value, m = e.defaultValue, x = e.range, j = e.count, D = e.onChange, w = e.onBeforeChange, _ = e.onAfterChange, W = e.allowCross, Z = W === void 0 ? !0 : W, F = e.pushable, Y = F === void 0 ? !1 : F, re = e.draggableTrack, oe = e.reverse, J = e.vertical, z = e.included, ae = z === void 0 ? !0 : z, C = e.startPoint, L = e.trackStyle, I = e.handleStyle, $ = e.railStyle, N = e.dotStyle, B = e.activeDotStyle, P = e.marks, Q = e.dots, A = e.handleRender, ee = e.tabIndex, K = ee === void 0 ? 0 : ee, H = e.ariaLabelForHandle, E = e.ariaLabelledByForHandle, fe = e.ariaValueTextFormatterForHandle, pe = te.useRef(), ue = te.useRef(), je = te.useMemo(function() { return J ? oe ? "ttb" : "btt" : oe ? "rtl" : "ltr"; }, [oe, J]), de = te.useMemo(function() { return isFinite(v) ? v : 0; - }, [v]), xe = te.useMemo(function() { + }, [v]), Ee = te.useMemo(function() { return isFinite(R) ? R : 100; }, [R]), qe = te.useMemo(function() { return b !== null && b <= 0 ? 1 : b; @@ -17161,11 +17220,11 @@ var ol = /* @__PURE__ */ te.forwardRef(function(e, t) { }).sort(function(k, M) { return k.value - M.value; }); - }, [P]), lt = G1(de, xe, qe, ct, Z, Le), Ke = it(lt, 2), le = Ke[0], _e = Ke[1], Tt = L1(m, { + }, [P]), lt = G1(de, Ee, qe, ct, Z, Le), Ke = it(lt, 2), le = Ke[0], _e = Ke[1], Tt = L1(m, { value: S }), ot = it(Tt, 2), Ue = ot[0], un = ot[1], rt = te.useMemo(function() { var O = Ue == null ? [] : Array.isArray(Ue) ? Ue : [Ue], k = it(O, 1), M = k[0], ie = M === void 0 ? de : M, ce = Ue === null ? [] : [ie]; - if (E) { + if (x) { if (ce = Mt(O), j || Ue === void 0) { var me = j >= 0 ? j + 1 : 2; for (ce = ce.slice(0, me); ce.length < me; ) { @@ -17180,10 +17239,10 @@ var ol = /* @__PURE__ */ te.forwardRef(function(e, t) { return ce.forEach(function(he, He) { ce[He] = le(he); }), ce; - }, [Ue, E, de, j, le]), At = te.useRef(rt); + }, [Ue, x, de, j, le]), At = te.useRef(rt); At.current = rt; var wt = function(k) { - return E ? k : k[0]; + return x ? k : k[0]; }, dr = function(k) { var M = Mt(k).sort(function(ie, ce) { return ie - ce; @@ -17191,17 +17250,17 @@ var ol = /* @__PURE__ */ te.forwardRef(function(e, t) { D && !k1(M, At.current, !0) && D(wt(M)), un(M); }, cn = function(k) { if (!c) { - var M = 0, ie = xe - de; + var M = 0, ie = Ee - de; rt.forEach(function(me, ve) { var he = Math.abs(k - me); he <= ie && (ie = he, M = ve); }); var ce = Mt(rt); - ce[M] = k, E && !rt.length && j === void 0 && ce.push(k), w == null || w(wt(ce)), dr(ce), _ == null || _(wt(ce)); + ce[M] = k, x && !rt.length && j === void 0 && ce.push(k), w == null || w(wt(ce)), dr(ce), _ == null || _(wt(ce)); } }, ei = function(k) { k.preventDefault(); - var M = ue.current.getBoundingClientRect(), ie = M.width, ce = M.height, me = M.left, ve = M.top, he = M.bottom, He = M.right, Ie = k.clientX, ke = k.clientY, Ve; + var M = ue.current.getBoundingClientRect(), ie = M.width, ce = M.height, me = M.left, ve = M.top, he = M.bottom, He = M.right, Ne = k.clientX, ke = k.clientY, Ve; switch (je) { case "btt": Ve = (he - ke) / ce; @@ -17210,12 +17269,12 @@ var ol = /* @__PURE__ */ te.forwardRef(function(e, t) { Ve = (ke - ve) / ce; break; case "rtl": - Ve = (He - Ie) / ie; + Ve = (He - Ne) / ie; break; default: - Ve = (Ie - me) / ie; + Ve = (Ne - me) / ie; } - var Ft = de + Ve * (xe - de); + var Ft = de + Ve * (Ee - de); cn(le(Ft)); }, ti = te.useState(null), ln = it(ti, 2), hr = ln[0], Zt = ln[1], fn = function(k, M) { if (!c) { @@ -17234,7 +17293,7 @@ var ol = /* @__PURE__ */ te.forwardRef(function(e, t) { return re && qe === null ? (process.env.NODE_ENV !== "production" && sn(!1, "`draggableTrack` is not supported when `step` is `null`."), !1) : re; }, [re, qe]), pr = function() { _ == null || _(wt(At.current)); - }, vr = B1(ue, je, rt, de, xe, le, dr, pr, _e), Ut = it(vr, 4), dn = Ut[0], hn = Ut[1], mr = Ut[2], pn = Ut[3], gr = function(k, M) { + }, vr = B1(ue, je, rt, de, Ee, le, dr, pr, _e), Ut = it(vr, 4), dn = Ut[0], hn = Ut[1], mr = Ut[2], pn = Ut[3], gr = function(k, M) { pn(k, M), w == null || w(wt(At.current)); }, vn = dn !== -1; te.useEffect(function() { @@ -17248,8 +17307,8 @@ var ol = /* @__PURE__ */ te.forwardRef(function(e, t) { return O - k; }); }, [mr]), mn = te.useMemo(function() { - return E ? [Ct[0], Ct[Ct.length - 1]] : [de, Ct[0]]; - }, [Ct, E, de]), gn = it(mn, 2), yn = gn[0], bn = gn[1]; + return x ? [Ct[0], Ct[Ct.length - 1]] : [de, Ct[0]]; + }, [Ct, x, de]), gn = it(mn, 2), yn = gn[0], bn = gn[1]; te.useImperativeHandle(t, function() { return { focus: function() { @@ -17266,7 +17325,7 @@ var ol = /* @__PURE__ */ te.forwardRef(function(e, t) { var ri = te.useMemo(function() { return { min: de, - max: xe, + max: Ee, direction: je, disabled: c, keyboard: l, @@ -17274,13 +17333,13 @@ var ol = /* @__PURE__ */ te.forwardRef(function(e, t) { included: ae, includedStart: yn, includedEnd: bn, - range: E, + range: x, tabIndex: K, ariaLabelForHandle: H, - ariaLabelledByForHandle: x, + ariaLabelledByForHandle: E, ariaValueTextFormatterForHandle: fe }; - }, [de, xe, je, c, l, qe, ae, yn, bn, E, K, H, x, fe]); + }, [de, Ee, je, c, l, qe, ae, yn, bn, x, K, H, E, fe]); return /* @__PURE__ */ te.createElement(Xt.Provider, { value: ri }, /* @__PURE__ */ te.createElement("div", { @@ -17335,7 +17394,7 @@ const X1 = { start: t, range: r, refine: n - } = gy(e), [i, a] = Et(_u(r)), [o, s] = Et({ + } = gy(e), [i, a] = xt(_u(r)), [o, s] = xt({ min: r.min, max: r.max }); @@ -17435,7 +17494,7 @@ const X1 = { ] }; return /* @__PURE__ */ T.jsx(Qa, { children: /* @__PURE__ */ T.jsxs( - Eo, + xo, { searchClient: Z1, locale: "fr", @@ -17445,13 +17504,13 @@ const X1 = { hitWrapperComponent: r, getHitWrapperProps: n, children: [ - /* @__PURE__ */ T.jsx(Ne, { header: G.number_of_order[e], children: /* @__PURE__ */ T.jsx( + /* @__PURE__ */ T.jsx(Ie, { header: G.number_of_order[e], children: /* @__PURE__ */ T.jsx( Cn, { attribute: "number_order" } ) }), - /* @__PURE__ */ T.jsxs(Ne, { header: G.date[e], children: [ + /* @__PURE__ */ T.jsxs(Ie, { header: G.date[e], children: [ /* @__PURE__ */ T.jsxs("div", { className: "dateSlider", children: [ /* @__PURE__ */ T.jsx("p", { className: "header", children: G.year[e] }), /* @__PURE__ */ T.jsx( @@ -17480,31 +17539,31 @@ const X1 = { ) ] }) ] }), - /* @__PURE__ */ T.jsx(Ne, { header: G.city[e], children: /* @__PURE__ */ T.jsx( + /* @__PURE__ */ T.jsx(Ie, { header: G.city[e], children: /* @__PURE__ */ T.jsx( We, { attribute: "town.name" } ) }), - /* @__PURE__ */ T.jsx(Ne, { header: G.place_given[e], children: /* @__PURE__ */ T.jsx( + /* @__PURE__ */ T.jsx(Ie, { header: G.place_given[e], children: /* @__PURE__ */ T.jsx( We, { attribute: "date_of_place.name" } ) }), - /* @__PURE__ */ T.jsx(Ne, { header: G.titulature[e], children: /* @__PURE__ */ T.jsx( + /* @__PURE__ */ T.jsx(Ie, { header: G.titulature[e], children: /* @__PURE__ */ T.jsx( We, { attribute: "titulature.full_name" } ) }), - /* @__PURE__ */ T.jsx(Ne, { header: G.commandement[e], children: /* @__PURE__ */ T.jsx( + /* @__PURE__ */ T.jsx(Ie, { header: G.commandement[e], children: /* @__PURE__ */ T.jsx( We, { attribute: "commandement.full_name" } ) }), - /* @__PURE__ */ T.jsx(Ne, { header: G.keywords[e], children: /* @__PURE__ */ T.jsx( + /* @__PURE__ */ T.jsx(Ie, { header: G.keywords[e], children: /* @__PURE__ */ T.jsx( We, { attribute: "keywords", diff --git a/dist/sapientia-search.umd.cjs b/dist/sapientia-search.umd.cjs index d2f0313..dce06b1 100644 --- a/dist/sapientia-search.umd.cjs +++ b/dist/sapientia-search.umd.cjs @@ -14,47 +14,47 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Po;function nl(){return Po||(Po=1,process.env.NODE_ENV!=="production"&&function(){var e=R,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),p=Symbol.iterator,v="@@iterator";function g(O){if(O===null||typeof O!="object")return null;var D=p&&O[p]||O[v];return typeof D=="function"?D:null}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(O){{for(var D=arguments.length,L=new Array(D>1?D-1:0),ie=1;ie=1&&ke>=0&&he[Ne]!==He[ke];)ke--;for(;Ne>=1&&ke>=0;Ne--,ke--)if(he[Ne]!==He[ke]){if(Ne!==1||ke!==1)do if(Ne--,ke--,ke<0||he[Ne]!==He[ke]){var ze=` -`+he[Ne].replace(" at new "," at ");return O.displayName&&ze.includes("")&&(ze=ze.replace("",O.displayName)),typeof O=="function"&&K.set(O,ze),ze}while(Ne>=1&&ke>=0);break}}}finally{ee=!1,E.current=me,B(),Error.prepareStackTrace=ce}var Dt=O?O.displayName||O.name:"",el=Dt?$(Dt):"";return typeof O=="function"&&K.set(O,el),el}function fe(O,D,L){return j(O,!1)}function pe(O){var D=O.prototype;return!!(D&&D.isReactComponent)}function ue(O,D,L){if(O==null)return"";if(typeof O=="function")return j(O,pe(O));if(typeof O=="string")return $(O);switch(O){case u:return $("Suspense");case l:return $("SuspenseList")}if(typeof O=="object")switch(O.$$typeof){case c:return fe(O.render);case f:return ue(O.type,D,L);case h:{var ie=O,ce=ie._payload,me=ie._init;try{return ue(me(ce),D,L)}catch{}}}return""}var $e=Object.prototype.hasOwnProperty,de={},Re=P.ReactDebugCurrentFrame;function Ve(O){if(O){var D=O._owner,L=ue(O.type,O._source,D?D.type:null);Re.setExtraStackFrame(L)}else Re.setExtraStackFrame(null)}function Le(O,D,L,ie,ce){{var me=Function.call.bind($e);for(var ve in O)if(me(O,ve)){var he=void 0;try{if(typeof O[ve]!="function"){var He=Error((ie||"React class")+": "+L+" type `"+ve+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof O[ve]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw He.name="Invariant Violation",He}he=O[ve](D,ve,ie,L,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ne){he=Ne}he&&!(he instanceof Error)&&(Ve(ce),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ie||"React class",L,ve,typeof he),Ve(null)),he instanceof Error&&!(he.message in de)&&(de[he.message]=!0,Ve(ce),y("Failed %s type: %s",L,he.message),Ve(null))}}}var lt=Array.isArray;function ft(O){return lt(O)}function Ze(O){{var D=typeof Symbol=="function"&&Symbol.toStringTag,L=D&&O[Symbol.toStringTag]||O.constructor.name||"Object";return L}}function le(O){try{return je(O),!1}catch{return!0}}function je(O){return""+O}function Ft(O){if(le(O))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ze(O)),je(O)}var ot=P.ReactCurrentOwner,Be={key:!0,ref:!0,__self:!0,__source:!0},kn,it,It;It={};function Pt(O){if($e.call(O,"ref")){var D=Object.getOwnPropertyDescriptor(O,"ref").get;if(D&&D.isReactWarning)return!1}return O.ref!==void 0}function Xr(O){if($e.call(O,"key")){var D=Object.getOwnPropertyDescriptor(O,"key").get;if(D&&D.isReactWarning)return!1}return O.key!==void 0}function Dn(O,D){if(typeof O.ref=="string"&&ot.current&&D&&ot.current.stateNode!==D){var L=I(ot.current.type);It[L]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',I(ot.current.type),O.ref),It[L]=!0)}}function bo(O,D){{var L=function(){kn||(kn=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",D))};L.isReactWarning=!0,Object.defineProperty(O,"key",{get:L,configurable:!0})}}function wo(O,D){{var L=function(){it||(it=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",D))};L.isReactWarning=!0,Object.defineProperty(O,"ref",{get:L,configurable:!0})}}var Mn=function(O,D,L,ie,ce,me,ve){var he={$$typeof:t,type:O,key:D,ref:L,props:ve,_owner:me};return he._store={},Object.defineProperty(he._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(he,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ie}),Object.defineProperty(he,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ce}),Object.freeze&&(Object.freeze(he.props),Object.freeze(he)),he};function Zr(O,D,L,ie,ce){{var me,ve={},he=null,He=null;L!==void 0&&(Ft(L),he=""+L),Xr(D)&&(Ft(D.key),he=""+D.key),Pt(D)&&(He=D.ref,Dn(D,ce));for(me in D)$e.call(D,me)&&!Be.hasOwnProperty(me)&&(ve[me]=D[me]);if(O&&O.defaultProps){var Ne=O.defaultProps;for(me in Ne)ve[me]===void 0&&(ve[me]=Ne[me])}if(he||He){var ke=typeof O=="function"?O.displayName||O.name||"Unknown":O;he&&bo(ve,ke),He&&wo(ve,ke)}return Mn(O,he,He,ce,ie,ot.current,ve)}}var or=P.ReactCurrentOwner,Ln=P.ReactDebugCurrentFrame;function Nt(O){if(O){var D=O._owner,L=ue(O.type,O._source,D?D.type:null);Ln.setExtraStackFrame(L)}else Ln.setExtraStackFrame(null)}var Jr;Jr=!1;function en(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function zt(){{if(or.current){var O=I(or.current.type);if(O)return` + */var Po;function nl(){return Po||(Po=1,process.env.NODE_ENV!=="production"&&function(){var e=R,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),p=Symbol.iterator,v="@@iterator";function g(O){if(O===null||typeof O!="object")return null;var D=p&&O[p]||O[v];return typeof D=="function"?D:null}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(O){{for(var D=arguments.length,L=new Array(D>1?D-1:0),ie=1;ie=1&&ke>=0&&he[Ne]!==We[ke];)ke--;for(;Ne>=1&&ke>=0;Ne--,ke--)if(he[Ne]!==We[ke]){if(Ne!==1||ke!==1)do if(Ne--,ke--,ke<0||he[Ne]!==We[ke]){var ze=` +`+he[Ne].replace(" at new "," at ");return O.displayName&&ze.includes("")&&(ze=ze.replace("",O.displayName)),typeof O=="function"&&G.set(O,ze),ze}while(Ne>=1&&ke>=0);break}}}finally{ee=!1,x.current=me,B(),Error.prepareStackTrace=ce}var Dt=O?O.displayName||O.name:"",el=Dt?$(Dt):"";return typeof O=="function"&&G.set(O,el),el}function fe(O,D,L){return _(O,!1)}function pe(O){var D=O.prototype;return!!(D&&D.isReactComponent)}function ue(O,D,L){if(O==null)return"";if(typeof O=="function")return _(O,pe(O));if(typeof O=="string")return $(O);switch(O){case u:return $("Suspense");case l:return $("SuspenseList")}if(typeof O=="object")switch(O.$$typeof){case c:return fe(O.render);case f:return ue(O.type,D,L);case h:{var ie=O,ce=ie._payload,me=ie._init;try{return ue(me(ce),D,L)}catch{}}}return""}var Ce=Object.prototype.hasOwnProperty,de={},Re=P.ReactDebugCurrentFrame;function Ve(O){if(O){var D=O._owner,L=ue(O.type,O._source,D?D.type:null);Re.setExtraStackFrame(L)}else Re.setExtraStackFrame(null)}function He(O,D,L,ie,ce){{var me=Function.call.bind(Ce);for(var ve in O)if(me(O,ve)){var he=void 0;try{if(typeof O[ve]!="function"){var We=Error((ie||"React class")+": "+L+" type `"+ve+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof O[ve]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw We.name="Invariant Violation",We}he=O[ve](D,ve,ie,L,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ne){he=Ne}he&&!(he instanceof Error)&&(Ve(ce),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ie||"React class",L,ve,typeof he),Ve(null)),he instanceof Error&&!(he.message in de)&&(de[he.message]=!0,Ve(ce),y("Failed %s type: %s",L,he.message),Ve(null))}}}var lt=Array.isArray;function ft(O){return lt(O)}function Ze(O){{var D=typeof Symbol=="function"&&Symbol.toStringTag,L=D&&O[Symbol.toStringTag]||O.constructor.name||"Object";return L}}function le(O){try{return _e(O),!1}catch{return!0}}function _e(O){return""+O}function Ft(O){if(le(O))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ze(O)),_e(O)}var ot=P.ReactCurrentOwner,Be={key:!0,ref:!0,__self:!0,__source:!0},kn,it,It;It={};function Pt(O){if(Ce.call(O,"ref")){var D=Object.getOwnPropertyDescriptor(O,"ref").get;if(D&&D.isReactWarning)return!1}return O.ref!==void 0}function Xr(O){if(Ce.call(O,"key")){var D=Object.getOwnPropertyDescriptor(O,"key").get;if(D&&D.isReactWarning)return!1}return O.key!==void 0}function Dn(O,D){if(typeof O.ref=="string"&&ot.current&&D&&ot.current.stateNode!==D){var L=I(ot.current.type);It[L]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',I(ot.current.type),O.ref),It[L]=!0)}}function bo(O,D){{var L=function(){kn||(kn=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",D))};L.isReactWarning=!0,Object.defineProperty(O,"key",{get:L,configurable:!0})}}function wo(O,D){{var L=function(){it||(it=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",D))};L.isReactWarning=!0,Object.defineProperty(O,"ref",{get:L,configurable:!0})}}var Mn=function(O,D,L,ie,ce,me,ve){var he={$$typeof:t,type:O,key:D,ref:L,props:ve,_owner:me};return he._store={},Object.defineProperty(he._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(he,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ie}),Object.defineProperty(he,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ce}),Object.freeze&&(Object.freeze(he.props),Object.freeze(he)),he};function Zr(O,D,L,ie,ce){{var me,ve={},he=null,We=null;L!==void 0&&(Ft(L),he=""+L),Xr(D)&&(Ft(D.key),he=""+D.key),Pt(D)&&(We=D.ref,Dn(D,ce));for(me in D)Ce.call(D,me)&&!Be.hasOwnProperty(me)&&(ve[me]=D[me]);if(O&&O.defaultProps){var Ne=O.defaultProps;for(me in Ne)ve[me]===void 0&&(ve[me]=Ne[me])}if(he||We){var ke=typeof O=="function"?O.displayName||O.name||"Unknown":O;he&&bo(ve,ke),We&&wo(ve,ke)}return Mn(O,he,We,ce,ie,ot.current,ve)}}var or=P.ReactCurrentOwner,Ln=P.ReactDebugCurrentFrame;function Nt(O){if(O){var D=O._owner,L=ue(O.type,O._source,D?D.type:null);Ln.setExtraStackFrame(L)}else Ln.setExtraStackFrame(null)}var Jr;Jr=!1;function en(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function zt(){{if(or.current){var O=I(or.current.type);if(O)return` Check the render method of \``+O+"`."}return""}}function Hn(O){{if(O!==void 0){var D=O.fileName.replace(/^.*[\\\/]/,""),L=O.lineNumber;return` Check your code at `+D+":"+L+"."}return""}}var Wn={};function tn(O){{var D=zt();if(!D){var L=typeof O=="string"?O:O.displayName||O.name;L&&(D=` -Check the top-level render call using <`+L+">.")}return D}}function Un(O,D){{if(!O._store||O._store.validated||O.key!=null)return;O._store.validated=!0;var L=tn(D);if(Wn[L])return;Wn[L]=!0;var ie="";O&&O._owner&&O._owner!==or.current&&(ie=" It was passed a child from "+I(O._owner.type)+"."),Nt(O),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',L,ie),Nt(null)}}function rn(O,D){{if(typeof O!="object")return;if(ft(O))for(var L=0;L",he=" Did you accidentally export a JSX literal instead of a component?"):Ne=typeof O,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ne,he)}var ke=Zr(O,D,L,ce,me);if(ke==null)return ke;if(ve){var ze=D.children;if(ze!==void 0)if(ie)if(ft(ze)){for(var Dt=0;Dt-1};function o(w){if(typeof w!="string"&&(w=String(w)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(w))throw new TypeError("Invalid character in header field name");return w.toLowerCase()}function s(w){return typeof w!="string"&&(w=String(w)),w}function c(w){var _={next:function(){var U=w.shift();return{done:U===void 0,value:U}}};return r.iterable&&(_[Symbol.iterator]=function(){return _}),_}function u(w){this.map={},w instanceof u?w.forEach(function(_,U){this.append(U,_)},this):Array.isArray(w)?w.forEach(function(_){this.append(_[0],_[1])},this):w&&Object.getOwnPropertyNames(w).forEach(function(_){this.append(_,w[_])},this)}u.prototype.append=function(w,_){w=o(w),_=s(_);var U=this.map[w];this.map[w]=U?U+", "+_:_},u.prototype.delete=function(w){delete this.map[o(w)]},u.prototype.get=function(w){return w=o(w),this.has(w)?this.map[w]:null},u.prototype.has=function(w){return this.map.hasOwnProperty(o(w))},u.prototype.set=function(w,_){this.map[o(w)]=s(_)},u.prototype.forEach=function(w,_){for(var U in this.map)this.map.hasOwnProperty(U)&&w.call(_,this.map[U],U,this)},u.prototype.keys=function(){var w=[];return this.forEach(function(_,U){w.push(U)}),c(w)},u.prototype.values=function(){var w=[];return this.forEach(function(_){w.push(_)}),c(w)},u.prototype.entries=function(){var w=[];return this.forEach(function(_,U){w.push([U,_])}),c(w)},r.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function l(w){if(w.bodyUsed)return Promise.reject(new TypeError("Already read"));w.bodyUsed=!0}function f(w){return new Promise(function(_,U){w.onload=function(){_(w.result)},w.onerror=function(){U(w.error)}})}function h(w){var _=new FileReader,U=f(_);return _.readAsArrayBuffer(w),U}function d(w){var _=new FileReader,U=f(_);return _.readAsText(w),U}function p(w){for(var _=new Uint8Array(w),U=new Array(_.length),Z=0;Z<_.length;Z++)U[Z]=String.fromCharCode(_[Z]);return U.join("")}function v(w){if(w.slice)return w.slice(0);var _=new Uint8Array(w.byteLength);return _.set(new Uint8Array(w)),_.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(w){this._bodyInit=w,w?typeof w=="string"?this._bodyText=w:r.blob&&Blob.prototype.isPrototypeOf(w)?this._bodyBlob=w:r.formData&&FormData.prototype.isPrototypeOf(w)?this._bodyFormData=w:r.searchParams&&URLSearchParams.prototype.isPrototypeOf(w)?this._bodyText=w.toString():r.arrayBuffer&&r.blob&&n(w)?(this._bodyArrayBuffer=v(w.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(w)||a(w))?this._bodyArrayBuffer=v(w):this._bodyText=w=Object.prototype.toString.call(w):this._bodyText="",this.headers.get("content-type")||(typeof w=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(w)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var w=l(this);if(w)return w;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var w=l(this);if(w)return w;if(this._bodyBlob)return d(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(p(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},r.formData&&(this.formData=function(){return this.text().then(S)}),this.json=function(){return this.text().then(JSON.parse)},this}var P=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(w){var _=w.toUpperCase();return P.indexOf(_)>-1?_:w}function b(w,_){_=_||{};var U=_.body;if(w instanceof b){if(w.bodyUsed)throw new TypeError("Already read");this.url=w.url,this.credentials=w.credentials,_.headers||(this.headers=new u(w.headers)),this.method=w.method,this.mode=w.mode,this.signal=w.signal,!U&&w._bodyInit!=null&&(U=w._bodyInit,w.bodyUsed=!0)}else this.url=String(w);if(this.credentials=_.credentials||this.credentials||"same-origin",(_.headers||!this.headers)&&(this.headers=new u(_.headers)),this.method=y(_.method||this.method||"GET"),this.mode=_.mode||this.mode||null,this.signal=_.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&U)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(U)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})};function S(w){var _=new FormData;return w.trim().split("&").forEach(function(U){if(U){var Z=U.split("="),I=Z.shift().replace(/\+/g," "),Y=Z.join("=").replace(/\+/g," ");_.append(decodeURIComponent(I),decodeURIComponent(Y))}}),_}function m(w){var _=new u,U=w.replace(/\r?\n[\t ]+/g," ");return U.split(/\r?\n/).forEach(function(Z){var I=Z.split(":"),Y=I.shift().trim();if(Y){var re=I.join(":").trim();_.append(Y,re)}}),_}g.call(b.prototype);function x(w,_){_||(_={}),this.type="default",this.status=_.status===void 0?200:_.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in _?_.statusText:"OK",this.headers=new u(_.headers),this.url=_.url||"",this._initBody(w)}g.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},x.error=function(){var w=new x(null,{status:0,statusText:""});return w.type="error",w};var T=[301,302,303,307,308];x.redirect=function(w,_){if(T.indexOf(_)===-1)throw new RangeError("Invalid status code");return new x(null,{status:_,headers:{location:w}})},t.DOMException=e.DOMException;try{new t.DOMException}catch{t.DOMException=function(_,U){this.message=_,this.name=U;var Z=Error(_);this.stack=Z.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function M(w,_){return new Promise(function(U,Z){var I=new b(w,_);if(I.signal&&I.signal.aborted)return Z(new t.DOMException("Aborted","AbortError"));var Y=new XMLHttpRequest;function re(){Y.abort()}Y.onload=function(){var se={status:Y.status,statusText:Y.statusText,headers:m(Y.getAllResponseHeaders()||"")};se.url="responseURL"in Y?Y.responseURL:se.headers.get("X-Request-URL");var J="response"in Y?Y.response:Y.responseText;U(new x(J,se))},Y.onerror=function(){Z(new TypeError("Network request failed"))},Y.ontimeout=function(){Z(new TypeError("Network request failed"))},Y.onabort=function(){Z(new t.DOMException("Aborted","AbortError"))},Y.open(I.method,I.url,!0),I.credentials==="include"?Y.withCredentials=!0:I.credentials==="omit"&&(Y.withCredentials=!1),"responseType"in Y&&r.blob&&(Y.responseType="blob"),I.headers.forEach(function(se,J){Y.setRequestHeader(J,se)}),I.signal&&(I.signal.addEventListener("abort",re),Y.onreadystatechange=function(){Y.readyState===4&&I.signal.removeEventListener("abort",re)}),Y.send(typeof I._bodyInit>"u"?null:I._bodyInit)})}return M.polyfill=!0,e.fetch||(e.fetch=M,e.Headers=u,e.Request=b,e.Response=x),t.Headers=u,t.Request=b,t.Response=x,t.fetch=M,Object.defineProperty(t,"__esModule",{value:!0}),t})({})})(typeof self<"u"?self:tl)})();const il={};var Kn=function(e,t){return Kn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Kn(e,t)};function lr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Kn(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ye=function(){return ye=Object.assign||function(t){for(var r,n=1,i=arguments.length;n0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]"u"?this.tokens.generateTenantToken(r,n,i):e.prototype.generateTenantToken.call(this,r,n,i)},t}(ml),tt=function(){return tt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]n&&r.splice(r.length-1,1);var o=r.map(function(s){if(Object.keys(s).length>0){var c=s._formatted;s._matchesPosition;var u=Pl(s,["_formatted","_matchesPosition"]),l=Object.assign(u,Ml(c));return a&&(l.objectID=s[a]),l}return s});return o=Ll(o),o}function Wl(e){var t=e.hitsPerPage,r=t===void 0?0:t,n=e.totalPages,i=n===void 0?0:n,a=e.estimatedTotalHits,o=e.totalHits;return a??o??r*i}function Ul(e,t){if(e.totalPages!=null)return e.totalPages;if(t===0)return 0;var r=e.limit,n=r===void 0?20:r,i=e.offset,a=i===void 0?0:i,o=e.hits,s=o.length>=n?1:0;return a/t+1+s}function Bl(e,t){var r=t.hitsPerPage,n=t.page,i=Ul(e,r);return{page:n,nbPages:i,hitsPerPage:r}}function ql(e){if(e){if(typeof e=="string")return[e]}else return[];return e}function Vl(e,t,r){for(var n=ql(e),i={},a=0,o=n;a.")}return D}}function Un(O,D){{if(!O._store||O._store.validated||O.key!=null)return;O._store.validated=!0;var L=tn(D);if(Wn[L])return;Wn[L]=!0;var ie="";O&&O._owner&&O._owner!==or.current&&(ie=" It was passed a child from "+I(O._owner.type)+"."),Nt(O),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',L,ie),Nt(null)}}function rn(O,D){{if(typeof O!="object")return;if(ft(O))for(var L=0;L",he=" Did you accidentally export a JSX literal instead of a component?"):Ne=typeof O,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ne,he)}var ke=Zr(O,D,L,ce,me);if(ke==null)return ke;if(ve){var ze=D.children;if(ze!==void 0)if(ie)if(ft(ze)){for(var Dt=0;Dt-1};function o(w){if(typeof w!="string"&&(w=String(w)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(w))throw new TypeError("Invalid character in header field name");return w.toLowerCase()}function s(w){return typeof w!="string"&&(w=String(w)),w}function c(w){var j={next:function(){var U=w.shift();return{done:U===void 0,value:U}}};return r.iterable&&(j[Symbol.iterator]=function(){return j}),j}function u(w){this.map={},w instanceof u?w.forEach(function(j,U){this.append(U,j)},this):Array.isArray(w)?w.forEach(function(j){this.append(j[0],j[1])},this):w&&Object.getOwnPropertyNames(w).forEach(function(j){this.append(j,w[j])},this)}u.prototype.append=function(w,j){w=o(w),j=s(j);var U=this.map[w];this.map[w]=U?U+", "+j:j},u.prototype.delete=function(w){delete this.map[o(w)]},u.prototype.get=function(w){return w=o(w),this.has(w)?this.map[w]:null},u.prototype.has=function(w){return this.map.hasOwnProperty(o(w))},u.prototype.set=function(w,j){this.map[o(w)]=s(j)},u.prototype.forEach=function(w,j){for(var U in this.map)this.map.hasOwnProperty(U)&&w.call(j,this.map[U],U,this)},u.prototype.keys=function(){var w=[];return this.forEach(function(j,U){w.push(U)}),c(w)},u.prototype.values=function(){var w=[];return this.forEach(function(j){w.push(j)}),c(w)},u.prototype.entries=function(){var w=[];return this.forEach(function(j,U){w.push([U,j])}),c(w)},r.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function l(w){if(w.bodyUsed)return Promise.reject(new TypeError("Already read"));w.bodyUsed=!0}function f(w){return new Promise(function(j,U){w.onload=function(){j(w.result)},w.onerror=function(){U(w.error)}})}function h(w){var j=new FileReader,U=f(j);return j.readAsArrayBuffer(w),U}function d(w){var j=new FileReader,U=f(j);return j.readAsText(w),U}function p(w){for(var j=new Uint8Array(w),U=new Array(j.length),Z=0;Z-1?j:w}function b(w,j){j=j||{};var U=j.body;if(w instanceof b){if(w.bodyUsed)throw new TypeError("Already read");this.url=w.url,this.credentials=w.credentials,j.headers||(this.headers=new u(w.headers)),this.method=w.method,this.mode=w.mode,this.signal=w.signal,!U&&w._bodyInit!=null&&(U=w._bodyInit,w.bodyUsed=!0)}else this.url=String(w);if(this.credentials=j.credentials||this.credentials||"same-origin",(j.headers||!this.headers)&&(this.headers=new u(j.headers)),this.method=y(j.method||this.method||"GET"),this.mode=j.mode||this.mode||null,this.signal=j.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&U)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(U)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})};function S(w){var j=new FormData;return w.trim().split("&").forEach(function(U){if(U){var Z=U.split("="),I=Z.shift().replace(/\+/g," "),Y=Z.join("=").replace(/\+/g," ");j.append(decodeURIComponent(I),decodeURIComponent(Y))}}),j}function m(w){var j=new u,U=w.replace(/\r?\n[\t ]+/g," ");return U.split(/\r?\n/).forEach(function(Z){var I=Z.split(":"),Y=I.shift().trim();if(Y){var re=I.join(":").trim();j.append(Y,re)}}),j}g.call(b.prototype);function E(w,j){j||(j={}),this.type="default",this.status=j.status===void 0?200:j.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in j?j.statusText:"OK",this.headers=new u(j.headers),this.url=j.url||"",this._initBody(w)}g.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},E.error=function(){var w=new E(null,{status:0,statusText:""});return w.type="error",w};var A=[301,302,303,307,308];E.redirect=function(w,j){if(A.indexOf(j)===-1)throw new RangeError("Invalid status code");return new E(null,{status:j,headers:{location:w}})},t.DOMException=e.DOMException;try{new t.DOMException}catch{t.DOMException=function(j,U){this.message=j,this.name=U;var Z=Error(j);this.stack=Z.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function M(w,j){return new Promise(function(U,Z){var I=new b(w,j);if(I.signal&&I.signal.aborted)return Z(new t.DOMException("Aborted","AbortError"));var Y=new XMLHttpRequest;function re(){Y.abort()}Y.onload=function(){var se={status:Y.status,statusText:Y.statusText,headers:m(Y.getAllResponseHeaders()||"")};se.url="responseURL"in Y?Y.responseURL:se.headers.get("X-Request-URL");var J="response"in Y?Y.response:Y.responseText;U(new E(J,se))},Y.onerror=function(){Z(new TypeError("Network request failed"))},Y.ontimeout=function(){Z(new TypeError("Network request failed"))},Y.onabort=function(){Z(new t.DOMException("Aborted","AbortError"))},Y.open(I.method,I.url,!0),I.credentials==="include"?Y.withCredentials=!0:I.credentials==="omit"&&(Y.withCredentials=!1),"responseType"in Y&&r.blob&&(Y.responseType="blob"),I.headers.forEach(function(se,J){Y.setRequestHeader(J,se)}),I.signal&&(I.signal.addEventListener("abort",re),Y.onreadystatechange=function(){Y.readyState===4&&I.signal.removeEventListener("abort",re)}),Y.send(typeof I._bodyInit>"u"?null:I._bodyInit)})}return M.polyfill=!0,e.fetch||(e.fetch=M,e.Headers=u,e.Request=b,e.Response=E),t.Headers=u,t.Request=b,t.Response=E,t.fetch=M,Object.defineProperty(t,"__esModule",{value:!0}),t})({})})(typeof self<"u"?self:tl)})();const il={};var Kn=function(e,t){return Kn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Kn(e,t)};function lr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Kn(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ye=function(){return ye=Object.assign||function(t){for(var r,n=1,i=arguments.length;n0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]"u"?this.tokens.generateTenantToken(r,n,i):e.prototype.generateTenantToken.call(this,r,n,i)},t}(ml),tt=function(){return tt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]n&&r.splice(r.length-1,1);var o=r.map(function(s){if(Object.keys(s).length>0){var c=s._formatted;s._matchesPosition;var u=Pl(s,["_formatted","_matchesPosition"]),l=Object.assign(u,Ml(c));return a&&(l.objectID=s[a]),l}return s});return o=Ll(o),o}function Wl(e){var t=e.hitsPerPage,r=t===void 0?0:t,n=e.totalPages,i=n===void 0?0:n,a=e.estimatedTotalHits,o=e.totalHits;return a??o??r*i}function Ul(e,t){if(e.totalPages!=null)return e.totalPages;if(t===0)return 0;var r=e.limit,n=r===void 0?20:r,i=e.offset,a=i===void 0?0:i,o=e.hits,s=o.length>=n?1:0;return a/t+1+s}function Bl(e,t){var r=t.hitsPerPage,n=t.page,i=Ul(e,r);return{page:n,nbPages:i,hitsPerPage:r}}function ql(e){if(e){if(typeof e=="string")return[e]}else return[];return e}function Vl(e,t,r){for(var n=ql(e),i={},a=0,o=n;aW)&&(Le=(le=le.replace(" ",":")).length),0B&&(B=(C=C.trim()).charCodeAt(0)),B){case 38:return C.replace(P,"$1"+N.trim());case 58:return N.trim()+C.replace(P,"$1"+N.trim());default:if(0<1*k&&0$.charCodeAt(8))break;case 115:E=E.replace($,"-webkit-"+$)+";"+E;break;case 207:case 102:E=E.replace($,"-webkit-"+(102k.charCodeAt(0)&&(k=k.trim()),H=k,k=[H],0W)&&(He=(le=le.replace(" ",":")).length),0B&&(B=(C=C.trim()).charCodeAt(0)),B){case 38:return C.replace(P,"$1"+N.trim());case 58:return N.trim()+C.replace(P,"$1"+N.trim());default:if(0<1*k&&0$.charCodeAt(8))break;case 115:x=x.replace($,"-webkit-"+$)+";"+x;break;case 207:case 102:x=x.replace($,"-webkit-"+(102k.charCodeAt(0)&&(k=k.trim()),H=k,k=[H],01?t-1:0),n=1;n0?" Args: "+r.join(", "):"")):new Error(xf.apply(void 0,[Ef[e]].concat(r)).trim())}var Rf=function(){function e(r){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=r}var t=e.prototype;return t.indexOfGroup=function(r){for(var n=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,a=i.length,o=a;r>=o;)(o<<=1)<0&&Kt(16,""+r);this.groupSizes=new Uint32Array(o),this.groupSizes.set(i),this.length=o;for(var s=a;s=this.length||this.groupSizes[r]===0)return n;for(var i=this.groupSizes[r],a=this.indexOfGroup(r),o=a+i,s=a;s1<<30)&&Kt(16,""+t),cn.set(e,t),ln.set(t,e),t},jf=function(e){return ln.get(e)},_f=function(e,t){t>=dr&&(dr=t+1),cn.set(e,t),ln.set(t,e)},Tf="style["+Yt+'][data-styled-version="5.3.11"]',Af=new RegExp("^"+Yt+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),$f=function(e,t,r){for(var n,i=r.split(","),a=0,o=i.length;a=0;u--){var l=c[u];if(l&&l.nodeType===1&&l.hasAttribute(Yt))return l}}(r),a=i!==void 0?i.nextSibling:null;n.setAttribute(Yt,"active"),n.setAttribute("data-styled-version","5.3.11");var o=Ff();return o&&n.setAttribute("nonce",o),r.insertBefore(n,a),n},If=function(){function e(r){var n=this.element=qo(r);n.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var a=document.styleSheets,o=0,s=a.length;o=0){var i=document.createTextNode(n),a=this.nodes[r];return this.element.insertBefore(i,a||null),this.length++,!0}return!1},t.deleteRule=function(r){this.element.removeChild(this.nodes[r]),this.length--},t.getRule=function(r){return r0&&(f+=h+",")}),a+=""+u+l+'{content:"'+f+`"}/*!sc*/ -`}}}return a}(this)},e}(),Mf=/(a)(d)/gi,Qo=function(e){return String.fromCharCode(e+(e>25?39:97))};function fi(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Qo(t%52)+r;return(Qo(t%52)+r).replace(Mf,"$1-$2")}var Lt=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Yo=function(e){return Lt(5381,e)};function Lf(e){for(var t=0;t>>0);if(!r.hasNameForId(i,s)){var c=n(o,"."+s,void 0,i);r.insertRules(i,s,c)}a.push(s),this.staticRulesId=s}else{for(var u=this.rules.length,l=Lt(this.baseHash,n.hash),f="",h=0;h>>0);if(!r.hasNameForId(i,g)){var P=n(f,"."+g,void 0,i);r.insertRules(i,g,P)}a.push(g)}}return a.join(" ")},e}(),Uf=/^\s*\/\/.*$/gm,Bf=[":","[",".","#"];function qf(e){var t,r,n,i,a=e===void 0?xt:e,o=a.options,s=o===void 0?xt:o,c=a.plugins,u=c===void 0?un:c,l=new sf(s),f=[],h=function(v){function g(P){if(P)try{v(P+"}")}catch{}}return function(P,y,b,S,m,x,T,M,w,_){switch(P){case 1:if(w===0&&y.charCodeAt(0)===64)return v(y+";"),"";break;case 2:if(M===0)return y+"/*|*/";break;case 3:switch(M){case 102:case 112:return v(b[0]+y),"";default:return y+(_===0?"/*|*/":"")}case-2:y.split("/*|*/}").forEach(g)}}}(function(v){f.push(v)}),d=function(v,g,P){return g===0&&Bf.indexOf(P[r.length])!==-1||P.match(i)?v:"."+t};function p(v,g,P,y){y===void 0&&(y="&");var b=v.replace(Uf,""),S=g&&P?P+" "+g+" { "+b+" }":b;return t=y,r=g,n=new RegExp("\\"+r+"\\b","g"),i=new RegExp("(\\"+r+"\\b){2,}"),l(P||!g?"":g,S)}return l.use([].concat(u,[function(v,g,P){v===2&&P.length&&P[0].lastIndexOf(r)>0&&(P[0]=P[0].replace(n,d))},h,function(v){if(v===-2){var g=f;return f=[],g}}])),p.hash=u.length?u.reduce(function(v,g){return g.name||Kt(15),Lt(v,g.name)},5381).toString():"",p}var Ko=R.createContext();Ko.Consumer;var Go=R.createContext(),Vf=(Go.Consumer,new zo),di=qf();function zf(){return R.useContext(Ko)||Vf}function Qf(){return R.useContext(Go)||di}var Yf=function(){function e(t,r){var n=this;this.inject=function(i,a){a===void 0&&(a=di);var o=n.name+a.hash;i.hasNameForId(n.id,o)||i.insertRules(n.id,o,a(n.rules,o,"@keyframes"))},this.toString=function(){return Kt(12,String(n.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=r}return e.prototype.getName=function(t){return t===void 0&&(t=di),this.name+t.hash},e}(),Kf=/([A-Z])/,Gf=/([A-Z])/g,Xf=/^ms-/,Zf=function(e){return"-"+e.toLowerCase()};function Xo(e){return Kf.test(e)?e.replace(Gf,Zf).replace(Xf,"-ms-"):e}var Zo=function(e){return e==null||e===!1||e===""};function Gt(e,t,r,n){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o1?t-1:0),n=1;n1?t-1:0),n=1;n0?" Args: "+r.join(", "):"")):new Error(Ef.apply(void 0,[xf[e]].concat(r)).trim())}var Rf=function(){function e(r){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=r}var t=e.prototype;return t.indexOfGroup=function(r){for(var n=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,a=i.length,o=a;r>=o;)(o<<=1)<0&&Kt(16,""+r);this.groupSizes=new Uint32Array(o),this.groupSizes.set(i),this.length=o;for(var s=a;s=this.length||this.groupSizes[r]===0)return n;for(var i=this.groupSizes[r],a=this.indexOfGroup(r),o=a+i,s=a;s1<<30)&&Kt(16,""+t),cn.set(e,t),ln.set(t,e),t},_f=function(e){return ln.get(e)},jf=function(e,t){t>=dr&&(dr=t+1),cn.set(e,t),ln.set(t,e)},Tf="style["+Yt+'][data-styled-version="5.3.11"]',Af=new RegExp("^"+Yt+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),$f=function(e,t,r){for(var n,i=r.split(","),a=0,o=i.length;a=0;u--){var l=c[u];if(l&&l.nodeType===1&&l.hasAttribute(Yt))return l}}(r),a=i!==void 0?i.nextSibling:null;n.setAttribute(Yt,"active"),n.setAttribute("data-styled-version","5.3.11");var o=Ff();return o&&n.setAttribute("nonce",o),r.insertBefore(n,a),n},If=function(){function e(r){var n=this.element=qo(r);n.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var a=document.styleSheets,o=0,s=a.length;o=0){var i=document.createTextNode(n),a=this.nodes[r];return this.element.insertBefore(i,a||null),this.length++,!0}return!1},t.deleteRule=function(r){this.element.removeChild(this.nodes[r]),this.length--},t.getRule=function(r){return r0&&(f+=h+",")}),a+=""+u+l+'{content:"'+f+`"}/*!sc*/ +`}}}return a}(this)},e}(),Mf=/(a)(d)/gi,Qo=function(e){return String.fromCharCode(e+(e>25?39:97))};function fi(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Qo(t%52)+r;return(Qo(t%52)+r).replace(Mf,"$1-$2")}var Lt=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Yo=function(e){return Lt(5381,e)};function Lf(e){for(var t=0;t>>0);if(!r.hasNameForId(i,s)){var c=n(o,"."+s,void 0,i);r.insertRules(i,s,c)}a.push(s),this.staticRulesId=s}else{for(var u=this.rules.length,l=Lt(this.baseHash,n.hash),f="",h=0;h>>0);if(!r.hasNameForId(i,g)){var P=n(f,"."+g,void 0,i);r.insertRules(i,g,P)}a.push(g)}}return a.join(" ")},e}(),Uf=/^\s*\/\/.*$/gm,Bf=[":","[",".","#"];function qf(e){var t,r,n,i,a=e===void 0?Et:e,o=a.options,s=o===void 0?Et:o,c=a.plugins,u=c===void 0?un:c,l=new sf(s),f=[],h=function(v){function g(P){if(P)try{v(P+"}")}catch{}}return function(P,y,b,S,m,E,A,M,w,j){switch(P){case 1:if(w===0&&y.charCodeAt(0)===64)return v(y+";"),"";break;case 2:if(M===0)return y+"/*|*/";break;case 3:switch(M){case 102:case 112:return v(b[0]+y),"";default:return y+(j===0?"/*|*/":"")}case-2:y.split("/*|*/}").forEach(g)}}}(function(v){f.push(v)}),d=function(v,g,P){return g===0&&Bf.indexOf(P[r.length])!==-1||P.match(i)?v:"."+t};function p(v,g,P,y){y===void 0&&(y="&");var b=v.replace(Uf,""),S=g&&P?P+" "+g+" { "+b+" }":b;return t=y,r=g,n=new RegExp("\\"+r+"\\b","g"),i=new RegExp("(\\"+r+"\\b){2,}"),l(P||!g?"":g,S)}return l.use([].concat(u,[function(v,g,P){v===2&&P.length&&P[0].lastIndexOf(r)>0&&(P[0]=P[0].replace(n,d))},h,function(v){if(v===-2){var g=f;return f=[],g}}])),p.hash=u.length?u.reduce(function(v,g){return g.name||Kt(15),Lt(v,g.name)},5381).toString():"",p}var Ko=R.createContext();Ko.Consumer;var Go=R.createContext(),Vf=(Go.Consumer,new zo),di=qf();function zf(){return R.useContext(Ko)||Vf}function Qf(){return R.useContext(Go)||di}var Yf=function(){function e(t,r){var n=this;this.inject=function(i,a){a===void 0&&(a=di);var o=n.name+a.hash;i.hasNameForId(n.id,o)||i.insertRules(n.id,o,a(n.rules,o,"@keyframes"))},this.toString=function(){return Kt(12,String(n.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=r}return e.prototype.getName=function(t){return t===void 0&&(t=di),this.name+t.hash},e}(),Kf=/([A-Z])/,Gf=/([A-Z])/g,Xf=/^ms-/,Zf=function(e){return"-"+e.toLowerCase()};function Xo(e){return Kf.test(e)?e.replace(Gf,Zf).replace(Xf,"-ms-"):e}var Zo=function(e){return e==null||e===!1||e===""};function Gt(e,t,r,n){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o1?t-1:0),n=1;n1?o-1:0),c=1;c?@[\\\]^`{|}~-]+/g,nd=/(^-|-$)/g;function hi(e){return e.replace(rd,"-").replace(nd,"")}var id=function(e){return fi(Yo(e)>>>0)};function hn(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var pi=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},ad=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function od(e,t,r){var n=e[r];pi(t)&&pi(n)?ts(n,t):e[r]=t}function ts(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=0||(_[M]=x[M]);return _}(t,["componentId"]),m=b&&b+"-"+(hn(y)?y:hi(ui(y)));return ns(y,yt({},S,{attrs:h,componentId:m}),r)},Object.defineProperty(p,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(y){this._foldedDefaultProps=n?ts({},e.defaultProps,y):y}}),process.env.NODE_ENV!=="production"&&(ed(l,f),p.warnTooManyClasses=function(y,b){var S={},m=!1;return function(x){if(!m&&(S[x]=!0,Object.keys(S).length>=200)){var T=b?' with the id of "'+b+'"':"";console.warn("Over 200 classes were generated for component "+y+T+`. +To resolve this only create new StyledComponents outside of any render method and function component.`,n=console.error;try{var i=!0;console.error=function(a){if(es.test(a))i=!1,dn.delete(r);else{for(var o=arguments.length,s=new Array(o>1?o-1:0),c=1;c?@[\\\]^`{|}~-]+/g,nd=/(^-|-$)/g;function hi(e){return e.replace(rd,"-").replace(nd,"")}var id=function(e){return fi(Yo(e)>>>0)};function hn(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var pi=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},ad=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function od(e,t,r){var n=e[r];pi(t)&&pi(n)?ts(n,t):e[r]=t}function ts(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=0||(j[M]=E[M]);return j}(t,["componentId"]),m=b&&b+"-"+(hn(y)?y:hi(ui(y)));return ns(y,yt({},S,{attrs:h,componentId:m}),r)},Object.defineProperty(p,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(y){this._foldedDefaultProps=n?ts({},e.defaultProps,y):y}}),process.env.NODE_ENV!=="production"&&(ed(l,f),p.warnTooManyClasses=function(y,b){var S={},m=!1;return function(E){if(!m&&(S[E]=!0,Object.keys(S).length>=200)){var A=b?' with the id of "'+b+'"':"";console.warn("Over 200 classes were generated for component "+y+A+`. Consider using the attrs method, together with a style object for frequently changed styles. Example: const Component = styled.div.attrs(props => ({ @@ -109,7 +109,7 @@ Example: }, }))\`width: 100%;\` - `),m=!0,S={}}}}(l,f)),Object.defineProperty(p,"toString",{value:function(){return"."+p.styledComponentId}}),i&&Of(p,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),p}var mi=function(e){return function t(r,n,i){if(i===void 0&&(i=xt),!ni.isValidElementType(n))return Kt(1,String(n));var a=function(){return r(n,i,Jf.apply(void 0,arguments))};return a.withConfig=function(o){return t(r,n,yt({},i,{},o))},a.attrs=function(o){return t(r,n,yt({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},a}(ns,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){mi[e]=mi(e)}),process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native. + `),m=!0,S={}}}}(l,f)),Object.defineProperty(p,"toString",{value:function(){return"."+p.styledComponentId}}),i&&Of(p,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),p}var mi=function(e){return function t(r,n,i){if(i===void 0&&(i=Et),!ni.isValidElementType(n))return Kt(1,String(n));var a=function(){return r(n,i,Jf.apply(void 0,arguments))};return a.withConfig=function(o){return t(r,n,yt({},i,{},o))},a.attrs=function(o){return t(r,n,yt({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},a}(ns,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){mi[e]=mi(e)}),process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native. Perhaps you're looking to import 'styled-components/native'? Read more about this at https://www.styled-components.com/docs/basics#react-native`),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,window["__styled-components-init__"]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason. @@ -191,7 +191,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"] flex-grow: 1; } } -`,Ww="",Uw="",bi="6.38.1";function sd(e){return typeof e=="object"&&e!==null?wi(Array.isArray(e)?[]:{},e):e}function pn(e){return typeof e=="function"||Array.isArray(e)||Object.prototype.toString.call(e)==="[object Object]"}function wi(e,t){if(e===t)return e;for(var r in t)if(!(!Object.prototype.hasOwnProperty.call(t,r)||r==="__proto__"||r==="constructor")){var n=t[r],i=e[r];typeof i<"u"&&typeof n>"u"||(pn(i)&&pn(n)?e[r]=wi(i,n):e[r]=sd(n))}return e}function ud(e){pn(e)||(e={});for(var t=1,r=arguments.length;t-1&&e.indexOf(r)===n})}var ld=cd,mn=function(t,r){if(Array.isArray(t)){for(var n=0;n=0)&&(r[i]=e[i]);return r}var Oi=dd;function hd(e){return e&&Object.keys(e).length>0}var Pi=hd,pd=function(t){return t===null?!1:/^[a-zA-Z0-9_-]{1,64}$/.test(t)},vd=Si,md=Oi,gd=Pi,Ht={addRefinement:function(t,r,n){if(Ht.isRefined(t,r,n))return t;var i=""+n,a=t[r]?t[r].concat(i):[i],o={};return o[r]=a,vd({},o,t)},removeRefinement:function(t,r,n){if(n===void 0)return Ht.clearRefinement(t,function(a,o){return r===o});var i=""+n;return Ht.clearRefinement(t,function(a,o){return r===o&&i===a})},toggleRefinement:function(t,r,n){if(n===void 0)throw new Error("toggleRefinement should be used with a value");return Ht.isRefined(t,r,n)?Ht.removeRefinement(t,r,n):Ht.addRefinement(t,r,n)},clearRefinement:function(t,r,n){if(r===void 0)return gd(t)?{}:t;if(typeof r=="string")return md(t,[r]);if(typeof r=="function"){var i=!1,a=Object.keys(t).reduce(function(o,s){var c=t[s]||[],u=c.filter(function(l){return!r(l,s,n)});return u.length!==c.length&&(i=!0),o[s]=u,o},{});return i?a:t}},isRefined:function(t,r,n){var i=!!t[r]&&t[r].length>0;if(n===void 0||!i)return i;var a=""+n;return t[r].indexOf(a)!==-1}},yd=Ht,Ei=vn,xi=Si,as=ld,os=mn,Ri=fd,ss=Oi,ji=Pi,bd=pd,Me=yd;function _i(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(r,n){return _i(t[n],r)}):e===t}function wd(e,t){return os(e,function(r){return _i(r,t)})}function Je(e){var t=e?Je._parseNumbers(e):{};t.userToken!==void 0&&!bd(t.userToken)&&console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var r=this;Object.keys(t).forEach(function(n){var i=Je.PARAMETERS.indexOf(n)!==-1,a=t[n]!==void 0;!i&&a&&(r[n]=t[n])})}Je.PARAMETERS=Object.keys(new Je),Je._parseNumbers=function(e){if(e instanceof Je)return e;var t={},r=["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"];if(r.forEach(function(i){var a=e[i];if(typeof a=="string"){var o=parseFloat(a);t[i]=isNaN(o)?a:o}}),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map(function(i){return Array.isArray(i)?i.map(function(a){return parseFloat(a)}):i})),e.numericRefinements){var n={};Object.keys(e.numericRefinements).forEach(function(i){var a=e.numericRefinements[i]||{};n[i]={},Object.keys(a).forEach(function(o){var s=a[o],c=s.map(function(u){return Array.isArray(u)?u.map(function(l){return typeof l=="string"?parseFloat(l):l}):typeof u=="string"?parseFloat(u):u});n[i][o]=c})}),t.numericRefinements=n}return Ei({},e,t)},Je.make=function(t){var r=new Je(t),n=t.hierarchicalFacets||[];return n.forEach(function(i){if(i.rootPath){var a=r.getHierarchicalRefinement(i.name);a.length>0&&a[0].indexOf(i.rootPath)!==0&&(r=r.clearRefinements(i.name)),a=r.getHierarchicalRefinement(i.name),a.length===0&&(r=r.toggleHierarchicalFacetRefinement(i.name,i.rootPath))}}),r},Je.validate=function(e,t){var r=t||{};return e.tagFilters&&r.tagRefinements&&r.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&r.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&r.numericRefinements&&ji(r.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):ji(e.numericRefinements)&&r.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},Je.prototype={constructor:Je,clearRefinements:function(t){var r={numericRefinements:this._clearNumericRefinements(t),facetsRefinements:Me.clearRefinement(this.facetsRefinements,t,"conjunctiveFacet"),facetsExcludes:Me.clearRefinement(this.facetsExcludes,t,"exclude"),disjunctiveFacetsRefinements:Me.clearRefinement(this.disjunctiveFacetsRefinements,t,"disjunctiveFacet"),hierarchicalFacetsRefinements:Me.clearRefinement(this.hierarchicalFacetsRefinements,t,"hierarchicalFacet")};return r.numericRefinements===this.numericRefinements&&r.facetsRefinements===this.facetsRefinements&&r.facetsExcludes===this.facetsExcludes&&r.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&r.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(r)},clearTags:function(){return this.tagFilters===void 0&&this.tagRefinements.length===0?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(t){return t===this.index?this:this.setQueryParameters({index:t})},setQuery:function(t){return t===this.query?this:this.setQueryParameters({query:t})},setPage:function(t){return t===this.page?this:this.setQueryParameters({page:t})},setFacets:function(t){return this.setQueryParameters({facets:t})},setDisjunctiveFacets:function(t){return this.setQueryParameters({disjunctiveFacets:t})},setHitsPerPage:function(t){return this.hitsPerPage===t?this:this.setQueryParameters({hitsPerPage:t})},setTypoTolerance:function(t){return this.typoTolerance===t?this:this.setQueryParameters({typoTolerance:t})},addNumericRefinement:function(e,t,r){var n=Ri(r);if(this.isNumericRefined(e,t,n))return this;var i=Ei({},this.numericRefinements);return i[e]=Ei({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(n)):i[e][t]=[n],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)?this.facetsRefinements[e]||[]:[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)?this.disjunctiveFacetsRefinements[e]||[]:[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)?this.facetsExcludes[e]||[]:[]},removeNumericRefinement:function(e,t,r){return r!==void 0?this.isNumericRefined(e,t,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,i){return i===e&&n.op===t&&_i(n.val,Ri(r))})}):this:t!==void 0?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,i){return i===e&&n.op===t})}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,i){return i===e})}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(t){if(t===void 0)return ji(this.numericRefinements)?{}:this.numericRefinements;if(typeof t=="string")return ss(this.numericRefinements,[t]);if(typeof t=="function"){var r=!1,n=this.numericRefinements,i=Object.keys(n).reduce(function(a,o){var s=n[o],c={};return s=s||{},Object.keys(s).forEach(function(u){var l=s[u]||[],f=[];l.forEach(function(h){var d=t({val:h,op:u},o,"numeric");d||f.push(h)}),f.length!==l.length&&(r=!0),c[u]=f}),a[o]=c,a},{});return r?i:this.numericRefinements}},addFacet:function(t){return this.isConjunctiveFacet(t)?this:this.setQueryParameters({facets:this.facets.concat([t])})},addDisjunctiveFacet:function(t){return this.isDisjunctiveFacet(t)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([t])})},addHierarchicalFacet:function(t){if(this.isHierarchicalFacet(t.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+t.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([t])})},addFacetRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return Me.isRefined(this.facetsRefinements,t,r)?this:this.setQueryParameters({facetsRefinements:Me.addRefinement(this.facetsRefinements,t,r)})},addExcludeRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return Me.isRefined(this.facetsExcludes,t,r)?this:this.setQueryParameters({facetsExcludes:Me.addRefinement(this.facetsExcludes,t,r)})},addDisjunctiveFacetRefinement:function(t,r){if(!this.isDisjunctiveFacet(t))throw new Error(t+" is not defined in the disjunctiveFacets attribute of the helper configuration");return Me.isRefined(this.disjunctiveFacetsRefinements,t,r)?this:this.setQueryParameters({disjunctiveFacetsRefinements:Me.addRefinement(this.disjunctiveFacetsRefinements,t,r)})},addTagRefinement:function(t){if(this.isTagRefined(t))return this;var r={tagRefinements:this.tagRefinements.concat(t)};return this.setQueryParameters(r)},removeFacet:function(t){return this.isConjunctiveFacet(t)?this.clearRefinements(t).setQueryParameters({facets:this.facets.filter(function(r){return r!==t})}):this},removeDisjunctiveFacet:function(t){return this.isDisjunctiveFacet(t)?this.clearRefinements(t).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter(function(r){return r!==t})}):this},removeHierarchicalFacet:function(t){return this.isHierarchicalFacet(t)?this.clearRefinements(t).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter(function(r){return r.name!==t})}):this},removeFacetRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return Me.isRefined(this.facetsRefinements,t,r)?this.setQueryParameters({facetsRefinements:Me.removeRefinement(this.facetsRefinements,t,r)}):this},removeExcludeRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return Me.isRefined(this.facetsExcludes,t,r)?this.setQueryParameters({facetsExcludes:Me.removeRefinement(this.facetsExcludes,t,r)}):this},removeDisjunctiveFacetRefinement:function(t,r){if(!this.isDisjunctiveFacet(t))throw new Error(t+" is not defined in the disjunctiveFacets attribute of the helper configuration");return Me.isRefined(this.disjunctiveFacetsRefinements,t,r)?this.setQueryParameters({disjunctiveFacetsRefinements:Me.removeRefinement(this.disjunctiveFacetsRefinements,t,r)}):this},removeTagRefinement:function(t){if(!this.isTagRefined(t))return this;var r={tagRefinements:this.tagRefinements.filter(function(n){return n!==t})};return this.setQueryParameters(r)},toggleRefinement:function(t,r){return this.toggleFacetRefinement(t,r)},toggleFacetRefinement:function(t,r){if(this.isHierarchicalFacet(t))return this.toggleHierarchicalFacetRefinement(t,r);if(this.isConjunctiveFacet(t))return this.toggleConjunctiveFacetRefinement(t,r);if(this.isDisjunctiveFacet(t))return this.toggleDisjunctiveFacetRefinement(t,r);throw new Error("Cannot refine the undeclared facet "+t+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:Me.toggleRefinement(this.facetsRefinements,t,r)})},toggleExcludeFacetRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:Me.toggleRefinement(this.facetsExcludes,t,r)})},toggleDisjunctiveFacetRefinement:function(t,r){if(!this.isDisjunctiveFacet(t))throw new Error(t+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:Me.toggleRefinement(this.disjunctiveFacetsRefinements,t,r)})},toggleHierarchicalFacetRefinement:function(t,r){if(!this.isHierarchicalFacet(t))throw new Error(t+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(t)),i={},a=this.hierarchicalFacetsRefinements[t]!==void 0&&this.hierarchicalFacetsRefinements[t].length>0&&(this.hierarchicalFacetsRefinements[t][0]===r||this.hierarchicalFacetsRefinements[t][0].indexOf(r+n)===0);return a?r.indexOf(n)===-1?i[t]=[]:i[t]=[r.slice(0,r.lastIndexOf(n))]:i[t]=[r],this.setQueryParameters({hierarchicalFacetsRefinements:xi({},i,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var r={};return r[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:xi({},r,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:xi({},t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(t){return this.isTagRefined(t)?this.removeTagRefinement(t):this.addTagRefinement(t)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return this.getHierarchicalFacetByName(e)!==void 0},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(t,r){return this.isConjunctiveFacet(t)?Me.isRefined(this.facetsRefinements,t,r):!1},isExcludeRefined:function(t,r){return this.isConjunctiveFacet(t)?Me.isRefined(this.facetsExcludes,t,r):!1},isDisjunctiveFacetRefined:function(t,r){return this.isDisjunctiveFacet(t)?Me.isRefined(this.disjunctiveFacetsRefinements,t,r):!1},isHierarchicalFacetRefined:function(t,r){if(!this.isHierarchicalFacet(t))return!1;var n=this.getHierarchicalRefinement(t);return r?n.indexOf(r)!==-1:n.length>0},isNumericRefined:function(t,r,n){if(n===void 0&&r===void 0)return!!this.numericRefinements[t];var i=this.numericRefinements[t]&&this.numericRefinements[t][r]!==void 0;if(n===void 0||!i)return i;var a=Ri(n),o=wd(this.numericRefinements[t][r],a)!==void 0;return i&&o},isTagRefined:function(t){return this.tagRefinements.indexOf(t)!==-1},getRefinedDisjunctiveFacets:function(){var t=this,r=as(Object.keys(this.numericRefinements).filter(function(n){return Object.keys(t.numericRefinements[n]).length>0}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(n){return t.disjunctiveFacetsRefinements[n].length>0}).concat(r).concat(this.getRefinedHierarchicalFacets())},getRefinedHierarchicalFacets:function(){var t=this;return as(this.hierarchicalFacets.map(function(r){return r.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(r){return t.hierarchicalFacetsRefinements[r].length>0}))},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(t){return e.indexOf(t)===-1})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var t=this.managedParameters,r={},n=this;return Object.keys(this).forEach(function(i){var a=n[i];t.indexOf(i)===-1&&a!==void 0&&(r[i]=a)}),r},setQueryParameter:function(t,r){if(this[t]===r)return this;var n={};return n[t]=r,this.setQueryParameters(n)},setQueryParameters:function(t){if(!t)return this;var r=Je.validate(this,t);if(r)throw r;var n=this,i=Je._parseNumbers(t),a=Object.keys(this).reduce(function(s,c){return s[c]=n[c],s},{}),o=Object.keys(i).reduce(function(s,c){var u=s[c]!==void 0,l=i[c]!==void 0;return u&&!l?ss(s,[c]):(l&&(s[c]=i[c]),s)},a);return new this.constructor(o)},resetPage:function(){return this.page===void 0?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return typeof e.showParentLevel=="boolean"?e.showParentLevel:!0},getHierarchicalFacetByName:function(e){return os(this.hierarchicalFacets,function(t){return t.name===e})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),n=t.split(r);return n.map(function(i){return i.trim()})},toString:function(){return JSON.stringify(this,null,2)}};var us=Je;function Sd(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=t!==void 0,a=t===null;if(!a&&e>t||n&&i||!r)return 1;if(!n&&e=r.length?c:r[s]==="desc"?-c:c}return a.index-o.index}),n.map(function(i){return i.value})}var cs=Od,Pd=function(t){return Array.isArray(t)?t.filter(Boolean):[]},Ed=function(t,r){if(!Array.isArray(t))return-1;for(var n=0;n1||!c?(a[0].push(s[0]),a[1].push(s[1]),a):(a[0].push(c[0]),a[1].push(c[1]),a)},[[],[]])};function Rd(e){return typeof e!="string"?e:String(e).replace(/^-/,"\\-")}function jd(e){return typeof e!="string"?e:e.replace(/^\\-/,"-")}var Ti={escapeFacetValue:Rd,unescapeFacetValue:jd},_d=Id,Td=cs,Ad=mn,$d=ls,fs=Ti,Cd=fs.escapeFacetValue,Fd=fs.unescapeFacetValue;function Id(e){return function(r,n){var i=e.hierarchicalFacets[n],a=e.hierarchicalFacetsRefinements[i.name]&&e.hierarchicalFacetsRefinements[i.name][0]||"",o=e._getHierarchicalFacetSeparator(i),s=e._getHierarchicalRootPath(i),c=e._getHierarchicalShowParentLevel(i),u=$d(e._getHierarchicalFacetSortBy(i)),l=r.every(function(d){return d.exhaustive}),f=Nd(u,o,s,c,a),h=r;return s&&(h=r.slice(s.split(o).length)),h.reduce(f,{name:e.hierarchicalFacets[n].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:l,data:null})}}function Nd(e,t,r,n,i){return function(o,s,c){var u=o;if(c>0){var l=0;for(u=o;l-1})}function Rt(e,t,r){var n=t[0];this._rawResults=t;var i=this;Object.keys(n).forEach(function(l){i[l]=n[l]}),Object.keys(r||{}).forEach(function(l){i[l]=r[l]}),this.processingTimeMS=t.reduce(function(l,f){return f.processingTimeMS===void 0?l:l+f.processingTimeMS},0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map(function(){return[]}),this.facets=[];var a=e.getRefinedDisjunctiveFacets(),o=ms(e.facets),s=ms(e.disjunctiveFacets),c=1,u=n.facets||{};Object.keys(u).forEach(function(l){var f=u[l],h=Wd(e.hierarchicalFacets,l);if(h){var d=h.attributes.indexOf(l),p=hr(e.hierarchicalFacets,function(y){return y.name===h.name});i.hierarchicalFacets[p][d]={attribute:l,data:f,exhaustive:n.exhaustiveFacetsCount}}else{var v=e.disjunctiveFacets.indexOf(l)!==-1,g=e.facets.indexOf(l)!==-1,P;v&&(P=s[l],i.disjunctiveFacets[P]={name:l,data:f,exhaustive:n.exhaustiveFacetsCount},$i(i.disjunctiveFacets[P],n.facets_stats,l)),g&&(P=o[l],i.facets[P]={name:l,data:f,exhaustive:n.exhaustiveFacetsCount},$i(i.facets[P],n.facets_stats,l))}}),this.hierarchicalFacets=Ai(this.hierarchicalFacets),a.forEach(function(l){var f=t[c],h=f&&f.facets?f.facets:{},d=e.getHierarchicalFacetByName(l);Object.keys(h).forEach(function(p){var v=h[p],g;if(d){g=hr(e.hierarchicalFacets,function(b){return b.name===d.name});var P=hr(i.hierarchicalFacets[g],function(b){return b.attribute===p});if(P===-1)return;i.hierarchicalFacets[g][P].data=Md({},i.hierarchicalFacets[g][P].data,v)}else{g=s[p];var y=n.facets&&n.facets[p]||{};i.disjunctiveFacets[g]={name:p,data:gn({},v,y),exhaustive:f.exhaustiveFacetsCount},$i(i.disjunctiveFacets[g],f.facets_stats,p),e.disjunctiveFacetsRefinements[p]&&e.disjunctiveFacetsRefinements[p].forEach(function(b){!i.disjunctiveFacets[g].data[b]&&e.disjunctiveFacetsRefinements[p].indexOf(vs(b))>-1&&(i.disjunctiveFacets[g].data[b]=0)})}}),c++}),e.getRefinedHierarchicalFacets().forEach(function(l){var f=e.getHierarchicalFacetByName(l),h=e._getHierarchicalFacetSeparator(f),d=e.getHierarchicalRefinement(l);d.length===0||d[0].split(h).length<2||t.slice(c).forEach(function(p){var v=p&&p.facets?p.facets:{};Object.keys(v).forEach(function(g){var P=v[g],y=hr(e.hierarchicalFacets,function(x){return x.name===f.name}),b=hr(i.hierarchicalFacets[y],function(x){return x.attribute===g});if(b!==-1){var S={};if(d.length>0){var m=d[0].split(h)[0];S[m]=i.hierarchicalFacets[y][b].data[m]}i.hierarchicalFacets[y][b].data=gn(S,P,i.hierarchicalFacets[y][b].data)}}),c++})}),Object.keys(e.facetsExcludes).forEach(function(l){var f=e.facetsExcludes[l],h=o[l];i.facets[h]={name:l,data:n.facets[l],exhaustive:n.exhaustiveFacetsCount},f.forEach(function(d){i.facets[h]=i.facets[h]||{name:l},i.facets[h].data=i.facets[h].data||{},i.facets[h].data[d]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(Hd(e)),this.facets=Ai(this.facets),this.disjunctiveFacets=Ai(this.disjunctiveFacets),this._state=e}Rt.prototype.getFacetByName=function(e){function t(r){return r.name===e}return st(this.facets,t)||st(this.disjunctiveFacets,t)||st(this.hierarchicalFacets,t)};function Ud(e,t){function r(c){return c.name===t}if(e._state.isConjunctiveFacet(t)){var n=st(e.facets,r);return n?Object.keys(n.data).map(function(c){var u=ps(c);return{name:c,escapedValue:u,count:n.data[c],isRefined:e._state.isFacetRefined(t,u),isExcluded:e._state.isExcludeRefined(t,c)}}):[]}else if(e._state.isDisjunctiveFacet(t)){var i=st(e.disjunctiveFacets,r);return i?Object.keys(i.data).map(function(c){var u=ps(c);return{name:c,escapedValue:u,count:i.data[c],isRefined:e._state.isDisjunctiveFacetRefined(t,u)}}):[]}else if(e._state.isHierarchicalFacet(t)){var a=st(e.hierarchicalFacets,r);if(!a)return a;var o=e._state.getHierarchicalFacetByName(t),s=vs(e._state.getHierarchicalRefinement(t)[0]||"").split(e._state._getHierarchicalFacetSeparator(o));return s.unshift(t),gs(a,s,0),a}}function gs(e,t,r){e.isRefined=e.name===t[r],e.data&&e.data.forEach(function(n){gs(n,t,r+1)})}function ys(e,t,r,n){if(n=n||0,Array.isArray(t))return e(t,r[n]);if(!t.data||t.data.length===0)return t;var i=t.data.map(function(s){return ys(e,s,r,n+1)}),a=e(i,r[n]),o=gn({data:a},t);return o}Rt.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"];function Bd(e,t){return t.sort(e)}function qd(e,t){var r=[],n=[],i=t.order||[],a=i.reduce(function(c,u,l){return c[u]=l,c},{});e.forEach(function(c){var u=c.path||c.name;a[u]!==void 0?r[a[u]]=c:n.push(c)}),r=r.filter(function(c){return c});var o=t.sortRemainingBy,s;return o==="hidden"?r:(o==="alpha"?s=[["path","name"],["asc","asc"]]:s=[["count"],["desc"]],r.concat(ds(n,s[0],s[1])))}function Vd(e,t){return e.renderingContent&&e.renderingContent.facetOrdering&&e.renderingContent.facetOrdering.values&&e.renderingContent.facetOrdering.values[t]}Rt.prototype.getFacetValues=function(e,t){var r=Ud(this,e);if(r){var n=gn({},t,{sortBy:Rt.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),i=this,a;if(Array.isArray(r))a=[e];else{var o=i._state.getHierarchicalFacetByName(r.name);a=o.attributes}return ys(function(s,c){if(n.facetOrdering){var u=Vd(i,c);if(u)return qd(s,u)}if(Array.isArray(n.sortBy)){var l=Ld(n.sortBy,Rt.DEFAULT_SORT);return ds(s,l[0],l[1])}else if(typeof n.sortBy=="function")return Bd(n.sortBy,s);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},r,a)}},Rt.prototype.getFacetStats=function(e){if(this._state.isConjunctiveFacet(e))return bs(this.facets,e);if(this._state.isDisjunctiveFacet(e))return bs(this.disjunctiveFacets,e)};function bs(e,t){var r=st(e,function(n){return n.name===t});return r&&r.stats}Rt.prototype.getRefinements=function(){var e=this._state,t=this,r=[];return Object.keys(e.facetsRefinements).forEach(function(n){e.facetsRefinements[n].forEach(function(i){r.push(Ci(e,"facet",n,i,t.facets))})}),Object.keys(e.facetsExcludes).forEach(function(n){e.facetsExcludes[n].forEach(function(i){r.push(Ci(e,"exclude",n,i,t.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(n){e.disjunctiveFacetsRefinements[n].forEach(function(i){r.push(Ci(e,"disjunctive",n,i,t.disjunctiveFacets))})}),Object.keys(e.hierarchicalFacetsRefinements).forEach(function(n){e.hierarchicalFacetsRefinements[n].forEach(function(i){r.push(zd(e,n,i,t.hierarchicalFacets))})}),Object.keys(e.numericRefinements).forEach(function(n){var i=e.numericRefinements[n];Object.keys(i).forEach(function(a){i[a].forEach(function(o){r.push({type:"numeric",attributeName:n,name:o,numericValue:o,operator:a})})})}),e.tagRefinements.forEach(function(n){r.push({type:"tag",attributeName:"_tags",name:n})}),r};function Ci(e,t,r,n,i){var a=st(i,function(c){return c.name===r}),o=a&&a.data&&a.data[n]?a.data[n]:0,s=a&&a.exhaustive||!1;return{type:t,attributeName:r,name:n,count:o,exhaustive:s}}function zd(e,t,r,n){var i=e.getHierarchicalFacetByName(t),a=e._getHierarchicalFacetSeparator(i),o=r.split(a),s=st(n,function(h){return h.name===t}),c=o.reduce(function(h,d){var p=h&&st(h.data,function(v){return v.name===d});return p!==void 0?p:h},s),u=c&&c.count||0,l=c&&c.exhaustive||!1,f=c&&c.path||"";return{type:"hierarchical",attributeName:t,name:f,count:u,exhaustive:l}}var ws=Rt;function Ke(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}var Fi=Ke;Ke.prototype._events=void 0,Ke.prototype._maxListeners=void 0,Ke.defaultMaxListeners=10,Ke.prototype.setMaxListeners=function(e){if(!Qd(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Ke.prototype.emit=function(e){var t,r,n,i,a,o;if(this._events||(this._events={}),e==="error"&&(!this._events.error||pr(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var s=new Error('Uncaught, unspecified "error" event. ('+t+")");throw s.context=t,s}if(r=this._events[e],Ss(r))return!1;if(bt(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),r.apply(this,i)}else if(pr(r))for(i=Array.prototype.slice.call(arguments,1),o=r.slice(),n=o.length,a=0;a0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),typeof console.trace=="function"&&console.trace())),this},Ke.prototype.on=Ke.prototype.addListener,Ke.prototype.once=function(e,t){if(!bt(t))throw TypeError("listener must be a function");var r=!1;function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}return n.listener=t,this.on(e,n),this},Ke.prototype.removeListener=function(e,t){var r,n,i,a;if(!bt(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],i=r.length,n=-1,r===t||bt(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(pr(r)){for(a=i;a-- >0;)if(r[a]===t||r[a].listener&&r[a].listener===t){n=a;break}if(n<0)return this;r.length===1?(r.length=0,delete this._events[e]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},Ke.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[e]&&delete this._events[e],this;if(arguments.length===0){for(t in this._events)t!=="removeListener"&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],bt(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},Ke.prototype.listeners=function(e){var t;return!this._events||!this._events[e]?t=[]:bt(this._events[e])?t=[this._events[e]]:t=this._events[e].slice(),t},Ke.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(bt(t))return 1;if(t)return t.length}return 0},Ke.listenerCount=function(e,t){return e.listenerCount(t)};function bt(e){return typeof e=="function"}function Qd(e){return typeof e=="number"}function pr(e){return typeof e=="object"&&e!==null}function Ss(e){return e===void 0}const Yd=Qt(Fi);function Kd(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}var Os=Kd,Gd=Fi,Xd=Os;function yn(e,t){this.main=e,this.fn=t,this.lastResults=null}Xd(yn,Gd),yn.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},yn.prototype.getModifiedState=function(e){return this.fn(e)};var Zd=yn,Ii=vn;function Ni(e){return Object.keys(e).sort(function(t,r){return t.localeCompare(r)}).reduce(function(t,r){return t[r]=e[r],t},{})}var rt={_getQueries:function(t,r){var n=[];return n.push({indexName:t,params:rt._getHitsSearchParams(r)}),r.getRefinedDisjunctiveFacets().forEach(function(i){n.push({indexName:t,params:rt._getDisjunctiveFacetSearchParams(r,i)})}),r.getRefinedHierarchicalFacets().forEach(function(i){var a=r.getHierarchicalFacetByName(i),o=r.getHierarchicalRefinement(i),s=r._getHierarchicalFacetSeparator(a);if(o.length>0&&o[0].split(s).length>1){var c=o[0].split(s).slice(0,-1).reduce(function(l,f,h){return l.concat({attribute:a.attributes[h],value:h===0?f:[l[l.length-1].value,f].join(s)})},[]);c.forEach(function(u,l){var f=rt._getDisjunctiveFacetSearchParams(r,u.attribute,l===0);function h(v){return a.attributes.some(function(g){return g===v.split(":")[0]})}var d=(f.facetFilters||[]).reduce(function(v,g){if(Array.isArray(g)){var P=g.filter(function(y){return!h(y)});P.length>0&&v.push(P)}return typeof g=="string"&&!h(g)&&v.push(g),v},[]),p=c[l-1];l>0?f.facetFilters=d.concat(p.attribute+":"+p.value):f.facetFilters=d.length>0?d:void 0,n.push({indexName:t,params:f})})}}),n},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(rt._getHitsHierarchicalFacetsAttributes(e)),r=rt._getFacetFilters(e),n=rt._getNumericFilters(e),i=rt._getTagFilters(e),a={facets:t.indexOf("*")>-1?["*"]:t,tagFilters:i};return r.length>0&&(a.facetFilters=r),n.length>0&&(a.numericFilters=n),Ni(Ii({},e.getQueryParams(),a))},_getDisjunctiveFacetSearchParams:function(e,t,r){var n=rt._getFacetFilters(e,t,r),i=rt._getNumericFilters(e,t),a=rt._getTagFilters(e),o={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};a.length>0&&(o.tagFilters=a);var s=e.getHierarchicalFacetByName(t);return s?o.facets=rt._getDisjunctiveHierarchicalFacetAttribute(e,s,r):o.facets=t,i.length>0&&(o.numericFilters=i),n.length>0&&(o.facetFilters=n),Ni(Ii({},e.getQueryParams(),o))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var r=[];return Object.keys(e.numericRefinements).forEach(function(n){var i=e.numericRefinements[n]||{};Object.keys(i).forEach(function(a){var o=i[a]||[];t!==n&&o.forEach(function(s){if(Array.isArray(s)){var c=s.map(function(u){return n+a+u});r.push(c)}else r.push(n+a+s)})})}),r},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,r){var n=[],i=e.facetsRefinements||{};Object.keys(i).forEach(function(c){var u=i[c]||[];u.forEach(function(l){n.push(c+":"+l)})});var a=e.facetsExcludes||{};Object.keys(a).forEach(function(c){var u=a[c]||[];u.forEach(function(l){n.push(c+":-"+l)})});var o=e.disjunctiveFacetsRefinements||{};Object.keys(o).forEach(function(c){var u=o[c]||[];if(!(c===t||!u||u.length===0)){var l=[];u.forEach(function(f){l.push(c+":"+f)}),n.push(l)}});var s=e.hierarchicalFacetsRefinements||{};return Object.keys(s).forEach(function(c){var u=s[c]||[],l=u[0];if(l!==void 0){var f=e.getHierarchicalFacetByName(c),h=e._getHierarchicalFacetSeparator(f),d=e._getHierarchicalRootPath(f),p,v;if(t===c){if(l.indexOf(h)===-1||!d&&r===!0||d&&d.split(h).length===l.split(h).length)return;d?(v=d.split(h).length-1,l=d):(v=l.split(h).length-2,l=l.slice(0,l.lastIndexOf(h))),p=f.attributes[v]}else v=l.split(h).length-1,p=f.attributes[v];p&&n.push([p+":"+l])}}),n},_getHitsHierarchicalFacetsAttributes:function(e){var t=[];return e.hierarchicalFacets.reduce(function(n,i){var a=e.getHierarchicalRefinement(i.name)[0];if(!a)return n.push(i.attributes[0]),n;var o=e._getHierarchicalFacetSeparator(i),s=a.split(o).length,c=i.attributes.slice(0,s+1);return n.concat(c)},t)},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,r){var n=e._getHierarchicalFacetSeparator(t);if(r===!0){var i=e._getHierarchicalRootPath(t),a=0;return i&&(a=i.split(n).length),[t.attributes[a]]}var o=e.getHierarchicalRefinement(t.name)[0]||"",s=o.split(n).length-1;return t.attributes.slice(0,s+1)},getSearchForFacetQuery:function(e,t,r,n){var i=n.isDisjunctiveFacet(e)?n.clearRefinements(e):n,a={facetQuery:t,facetName:e};return typeof r=="number"&&(a.maxFacetHits=r),Ni(Ii({},rt._getHitsSearchParams(i),a))}},Jd=rt,Ps="3.13.0",ki=us,Di=ws,eh=Zd,Xt=Jd,th=Fi,rh=Os,nh=Pi,ih=Oi,ah=vn,Es=Ps,oh=Ti.escapeFacetValue;function ne(e,t,r){typeof e.addAlgoliaAgent=="function"&&e.addAlgoliaAgent("JS Helper ("+Es+")"),this.setClient(e);var n=r||{};n.index=t,this.state=ki.make(n),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}rh(ne,th),ne.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},ne.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},ne.prototype.getQuery=function(){var e=this.state;return Xt._getHitsSearchParams(e)},ne.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,n=Xt._getQueries(r.index,r),i=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:r}),t){this.client.search(n).then(function(a){i._currentNbQueries--,i._currentNbQueries===0&&i.emit("searchQueueEmpty"),t(null,new Di(r,a.results),r)}).catch(function(a){i._currentNbQueries--,i._currentNbQueries===0&&i.emit("searchQueueEmpty"),t(a,null,r)});return}return this.client.search(n).then(function(a){return i._currentNbQueries--,i._currentNbQueries===0&&i.emit("searchQueueEmpty"),{content:new Di(r,a.results),state:r,_originalResponse:a}},function(a){throw i._currentNbQueries--,i._currentNbQueries===0&&i.emit("searchQueueEmpty"),a})},ne.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,r=this.derivedHelpers[0];if(!r)return Promise.resolve([]);var n=r.getModifiedState(t),i=ah({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:ih(Xt._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),a="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if(typeof this.client.initIndex!="function")throw new Error(a);var o=this.client.initIndex(n.index);if(typeof o.findAnswers!="function")throw new Error(a);return o.findAnswers(n.query,e.queryLanguages,i)},ne.prototype.searchForFacetValues=function(e,t,r,n){var i=typeof this.client.searchForFacetValues=="function",a=typeof this.client.initIndex=="function";if(!i&&!a&&typeof this.client.search!="function")throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var o=this.state.setQueryParameters(n||{}),s=o.isDisjunctiveFacet(e),c=Xt.getSearchForFacetQuery(e,t,r,o);this._currentNbQueries++;var u=this,l;return i?l=this.client.searchForFacetValues([{indexName:o.index,params:c}]):a?l=this.client.initIndex(o.index).searchForFacetValues(c):(delete c.facetName,l=this.client.search([{type:"facet",facet:e,indexName:o.index,params:c}]).then(function(h){return h.results[0]})),this.emit("searchForFacetValues",{state:o,facet:e,query:t}),l.then(function(h){return u._currentNbQueries--,u._currentNbQueries===0&&u.emit("searchQueueEmpty"),h=Array.isArray(h)?h[0]:h,h.facetHits.forEach(function(d){d.escapedValue=oh(d.value),d.isRefined=s?o.isDisjunctiveFacetRefined(e,d.escapedValue):o.isFacetRefined(e,d.escapedValue)}),h},function(f){throw u._currentNbQueries--,u._currentNbQueries===0&&u.emit("searchQueueEmpty"),f})},ne.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},ne.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},ne.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},ne.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},ne.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},ne.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},ne.prototype.addNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,r),isPageReset:!0}),this},ne.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},ne.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},ne.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},ne.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},ne.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},ne.prototype.removeNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,r),isPageReset:!0}),this},ne.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},ne.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},ne.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},ne.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},ne.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},ne.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},ne.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},ne.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},ne.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},ne.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},ne.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},ne.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},ne.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},ne.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},ne.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},ne.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)};function xs(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}ne.prototype.setCurrentPage=xs,ne.prototype.setPage=xs,ne.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},ne.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},ne.prototype.setState=function(e){return this._change({state:ki.make(e),isPageReset:!1}),this},ne.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new ki(e),this},ne.prototype.hasRefinements=function(e){return nh(this.state.getNumericRefinements(e))?!0:this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):this.state.isHierarchicalFacet(e)?this.state.isHierarchicalFacetRefined(e):!1},ne.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},ne.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},ne.prototype.hasTag=function(e){return this.state.isTagRefined(e)},ne.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},ne.prototype.getIndex=function(){return this.state.index};function Rs(){return this.state.page}ne.prototype.getCurrentPage=Rs,ne.prototype.getPage=Rs,ne.prototype.getTags=function(){return this.state.tagRefinements},ne.prototype.getRefinements=function(e){var t=[];if(this.state.isConjunctiveFacet(e)){var r=this.state.getConjunctiveRefinements(e);r.forEach(function(o){t.push({value:o,type:"conjunctive"})});var n=this.state.getExcludeRefinements(e);n.forEach(function(o){t.push({value:o,type:"exclude"})})}else if(this.state.isDisjunctiveFacet(e)){var i=this.state.getDisjunctiveRefinements(e);i.forEach(function(o){t.push({value:o,type:"disjunctive"})})}var a=this.state.getNumericRefinements(e);return Object.keys(a).forEach(function(o){var s=a[o];t.push({value:s,operator:o,type:"numeric"})}),t},ne.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},ne.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},ne.prototype._search=function(e){var t=this.state,r=[],n=[];e.onlyWithDerivedHelpers||(n=Xt._getQueries(t.index,t),r.push({state:t,queriesCount:n.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map(function(s){var c=s.getModifiedState(t),u=c.index?Xt._getQueries(c.index,c):[];return r.push({state:c,queriesCount:u.length,helper:s}),s.emit("search",{state:c,results:s.lastResults}),u}),a=Array.prototype.concat.apply(n,i),o=this._queryId++;if(this._currentNbQueries++,!a.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,r,o));try{this.client.search(a).then(this._dispatchAlgoliaResponse.bind(this,r,o)).catch(this._dispatchAlgoliaError.bind(this,o))}catch(s){this.emit("error",{error:s})}},ne.prototype._dispatchAlgoliaResponse=function(e,t,r){if(!(t0},ne.prototype._change=function(e){var t=e.state,r=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:r}))},ne.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},ne.prototype.setClient=function(e){return this.client===e?this:(typeof e.addAlgoliaAgent=="function"&&e.addAlgoliaAgent("JS Helper ("+Es+")"),this.client=e,this)},ne.prototype.getClient=function(){return this.client},ne.prototype.derive=function(e){var t=new eh(this,e);return this.derivedHelpers.push(t),t},ne.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(t===-1)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},ne.prototype.hasPendingRequests=function(){return this._currentNbQueries>0};var sh=ne,js=sh,uh=us,ch=ws;function vr(e,t,r){return new js(e,t,r)}vr.version=Ps,vr.AlgoliaSearchHelper=js,vr.SearchParameters=uh,vr.SearchResults=ch;var lh=vr;const ut=Qt(lh);function _s(e){return e.toString().charAt(0).toUpperCase()+e.toString().slice(1)}function Ue(){}var Ts=Ue,ge=Ue;process.env.NODE_ENV==="development"&&(Ts=function(t){console.warn("[InstantSearch.js]: ".concat(t.trim()))},ge=function(t,r){if(!t){var n=ge.cache[r];n||(ge.cache[r]=!0,process.env.NODE_ENV==="development"&&Ts(r))}},ge.cache={});var fh=Object.keys;function dh(e){return vh(e)||ph(e)||As(e)||hh()}function hh(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +`,Ww="",Uw="",bi="6.38.1";function sd(e){return typeof e=="object"&&e!==null?wi(Array.isArray(e)?[]:{},e):e}function pn(e){return typeof e=="function"||Array.isArray(e)||Object.prototype.toString.call(e)==="[object Object]"}function wi(e,t){if(e===t)return e;for(var r in t)if(!(!Object.prototype.hasOwnProperty.call(t,r)||r==="__proto__"||r==="constructor")){var n=t[r],i=e[r];typeof i<"u"&&typeof n>"u"||(pn(i)&&pn(n)?e[r]=wi(i,n):e[r]=sd(n))}return e}function ud(e){pn(e)||(e={});for(var t=1,r=arguments.length;t-1&&e.indexOf(r)===n})}var ld=cd,mn=function(t,r){if(Array.isArray(t)){for(var n=0;n=0)&&(r[i]=e[i]);return r}var Oi=dd;function hd(e){return e&&Object.keys(e).length>0}var Pi=hd,pd=function(t){return t===null?!1:/^[a-zA-Z0-9_-]{1,64}$/.test(t)},vd=Si,md=Oi,gd=Pi,Ht={addRefinement:function(t,r,n){if(Ht.isRefined(t,r,n))return t;var i=""+n,a=t[r]?t[r].concat(i):[i],o={};return o[r]=a,vd({},o,t)},removeRefinement:function(t,r,n){if(n===void 0)return Ht.clearRefinement(t,function(a,o){return r===o});var i=""+n;return Ht.clearRefinement(t,function(a,o){return r===o&&i===a})},toggleRefinement:function(t,r,n){if(n===void 0)throw new Error("toggleRefinement should be used with a value");return Ht.isRefined(t,r,n)?Ht.removeRefinement(t,r,n):Ht.addRefinement(t,r,n)},clearRefinement:function(t,r,n){if(r===void 0)return gd(t)?{}:t;if(typeof r=="string")return md(t,[r]);if(typeof r=="function"){var i=!1,a=Object.keys(t).reduce(function(o,s){var c=t[s]||[],u=c.filter(function(l){return!r(l,s,n)});return u.length!==c.length&&(i=!0),o[s]=u,o},{});return i?a:t}},isRefined:function(t,r,n){var i=!!t[r]&&t[r].length>0;if(n===void 0||!i)return i;var a=""+n;return t[r].indexOf(a)!==-1}},yd=Ht,xi=vn,Ei=Si,as=ld,os=mn,Ri=fd,ss=Oi,_i=Pi,bd=pd,Me=yd;function ji(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(r,n){return ji(t[n],r)}):e===t}function wd(e,t){return os(e,function(r){return ji(r,t)})}function Je(e){var t=e?Je._parseNumbers(e):{};t.userToken!==void 0&&!bd(t.userToken)&&console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var r=this;Object.keys(t).forEach(function(n){var i=Je.PARAMETERS.indexOf(n)!==-1,a=t[n]!==void 0;!i&&a&&(r[n]=t[n])})}Je.PARAMETERS=Object.keys(new Je),Je._parseNumbers=function(e){if(e instanceof Je)return e;var t={},r=["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"];if(r.forEach(function(i){var a=e[i];if(typeof a=="string"){var o=parseFloat(a);t[i]=isNaN(o)?a:o}}),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map(function(i){return Array.isArray(i)?i.map(function(a){return parseFloat(a)}):i})),e.numericRefinements){var n={};Object.keys(e.numericRefinements).forEach(function(i){var a=e.numericRefinements[i]||{};n[i]={},Object.keys(a).forEach(function(o){var s=a[o],c=s.map(function(u){return Array.isArray(u)?u.map(function(l){return typeof l=="string"?parseFloat(l):l}):typeof u=="string"?parseFloat(u):u});n[i][o]=c})}),t.numericRefinements=n}return xi({},e,t)},Je.make=function(t){var r=new Je(t),n=t.hierarchicalFacets||[];return n.forEach(function(i){if(i.rootPath){var a=r.getHierarchicalRefinement(i.name);a.length>0&&a[0].indexOf(i.rootPath)!==0&&(r=r.clearRefinements(i.name)),a=r.getHierarchicalRefinement(i.name),a.length===0&&(r=r.toggleHierarchicalFacetRefinement(i.name,i.rootPath))}}),r},Je.validate=function(e,t){var r=t||{};return e.tagFilters&&r.tagRefinements&&r.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&r.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&r.numericRefinements&&_i(r.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):_i(e.numericRefinements)&&r.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},Je.prototype={constructor:Je,clearRefinements:function(t){var r={numericRefinements:this._clearNumericRefinements(t),facetsRefinements:Me.clearRefinement(this.facetsRefinements,t,"conjunctiveFacet"),facetsExcludes:Me.clearRefinement(this.facetsExcludes,t,"exclude"),disjunctiveFacetsRefinements:Me.clearRefinement(this.disjunctiveFacetsRefinements,t,"disjunctiveFacet"),hierarchicalFacetsRefinements:Me.clearRefinement(this.hierarchicalFacetsRefinements,t,"hierarchicalFacet")};return r.numericRefinements===this.numericRefinements&&r.facetsRefinements===this.facetsRefinements&&r.facetsExcludes===this.facetsExcludes&&r.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&r.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(r)},clearTags:function(){return this.tagFilters===void 0&&this.tagRefinements.length===0?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(t){return t===this.index?this:this.setQueryParameters({index:t})},setQuery:function(t){return t===this.query?this:this.setQueryParameters({query:t})},setPage:function(t){return t===this.page?this:this.setQueryParameters({page:t})},setFacets:function(t){return this.setQueryParameters({facets:t})},setDisjunctiveFacets:function(t){return this.setQueryParameters({disjunctiveFacets:t})},setHitsPerPage:function(t){return this.hitsPerPage===t?this:this.setQueryParameters({hitsPerPage:t})},setTypoTolerance:function(t){return this.typoTolerance===t?this:this.setQueryParameters({typoTolerance:t})},addNumericRefinement:function(e,t,r){var n=Ri(r);if(this.isNumericRefined(e,t,n))return this;var i=xi({},this.numericRefinements);return i[e]=xi({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(n)):i[e][t]=[n],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)?this.facetsRefinements[e]||[]:[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)?this.disjunctiveFacetsRefinements[e]||[]:[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)?this.facetsExcludes[e]||[]:[]},removeNumericRefinement:function(e,t,r){return r!==void 0?this.isNumericRefined(e,t,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,i){return i===e&&n.op===t&&ji(n.val,Ri(r))})}):this:t!==void 0?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,i){return i===e&&n.op===t})}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,i){return i===e})}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(t){if(t===void 0)return _i(this.numericRefinements)?{}:this.numericRefinements;if(typeof t=="string")return ss(this.numericRefinements,[t]);if(typeof t=="function"){var r=!1,n=this.numericRefinements,i=Object.keys(n).reduce(function(a,o){var s=n[o],c={};return s=s||{},Object.keys(s).forEach(function(u){var l=s[u]||[],f=[];l.forEach(function(h){var d=t({val:h,op:u},o,"numeric");d||f.push(h)}),f.length!==l.length&&(r=!0),c[u]=f}),a[o]=c,a},{});return r?i:this.numericRefinements}},addFacet:function(t){return this.isConjunctiveFacet(t)?this:this.setQueryParameters({facets:this.facets.concat([t])})},addDisjunctiveFacet:function(t){return this.isDisjunctiveFacet(t)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([t])})},addHierarchicalFacet:function(t){if(this.isHierarchicalFacet(t.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+t.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([t])})},addFacetRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return Me.isRefined(this.facetsRefinements,t,r)?this:this.setQueryParameters({facetsRefinements:Me.addRefinement(this.facetsRefinements,t,r)})},addExcludeRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return Me.isRefined(this.facetsExcludes,t,r)?this:this.setQueryParameters({facetsExcludes:Me.addRefinement(this.facetsExcludes,t,r)})},addDisjunctiveFacetRefinement:function(t,r){if(!this.isDisjunctiveFacet(t))throw new Error(t+" is not defined in the disjunctiveFacets attribute of the helper configuration");return Me.isRefined(this.disjunctiveFacetsRefinements,t,r)?this:this.setQueryParameters({disjunctiveFacetsRefinements:Me.addRefinement(this.disjunctiveFacetsRefinements,t,r)})},addTagRefinement:function(t){if(this.isTagRefined(t))return this;var r={tagRefinements:this.tagRefinements.concat(t)};return this.setQueryParameters(r)},removeFacet:function(t){return this.isConjunctiveFacet(t)?this.clearRefinements(t).setQueryParameters({facets:this.facets.filter(function(r){return r!==t})}):this},removeDisjunctiveFacet:function(t){return this.isDisjunctiveFacet(t)?this.clearRefinements(t).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter(function(r){return r!==t})}):this},removeHierarchicalFacet:function(t){return this.isHierarchicalFacet(t)?this.clearRefinements(t).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter(function(r){return r.name!==t})}):this},removeFacetRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return Me.isRefined(this.facetsRefinements,t,r)?this.setQueryParameters({facetsRefinements:Me.removeRefinement(this.facetsRefinements,t,r)}):this},removeExcludeRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return Me.isRefined(this.facetsExcludes,t,r)?this.setQueryParameters({facetsExcludes:Me.removeRefinement(this.facetsExcludes,t,r)}):this},removeDisjunctiveFacetRefinement:function(t,r){if(!this.isDisjunctiveFacet(t))throw new Error(t+" is not defined in the disjunctiveFacets attribute of the helper configuration");return Me.isRefined(this.disjunctiveFacetsRefinements,t,r)?this.setQueryParameters({disjunctiveFacetsRefinements:Me.removeRefinement(this.disjunctiveFacetsRefinements,t,r)}):this},removeTagRefinement:function(t){if(!this.isTagRefined(t))return this;var r={tagRefinements:this.tagRefinements.filter(function(n){return n!==t})};return this.setQueryParameters(r)},toggleRefinement:function(t,r){return this.toggleFacetRefinement(t,r)},toggleFacetRefinement:function(t,r){if(this.isHierarchicalFacet(t))return this.toggleHierarchicalFacetRefinement(t,r);if(this.isConjunctiveFacet(t))return this.toggleConjunctiveFacetRefinement(t,r);if(this.isDisjunctiveFacet(t))return this.toggleDisjunctiveFacetRefinement(t,r);throw new Error("Cannot refine the undeclared facet "+t+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:Me.toggleRefinement(this.facetsRefinements,t,r)})},toggleExcludeFacetRefinement:function(t,r){if(!this.isConjunctiveFacet(t))throw new Error(t+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:Me.toggleRefinement(this.facetsExcludes,t,r)})},toggleDisjunctiveFacetRefinement:function(t,r){if(!this.isDisjunctiveFacet(t))throw new Error(t+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:Me.toggleRefinement(this.disjunctiveFacetsRefinements,t,r)})},toggleHierarchicalFacetRefinement:function(t,r){if(!this.isHierarchicalFacet(t))throw new Error(t+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(t)),i={},a=this.hierarchicalFacetsRefinements[t]!==void 0&&this.hierarchicalFacetsRefinements[t].length>0&&(this.hierarchicalFacetsRefinements[t][0]===r||this.hierarchicalFacetsRefinements[t][0].indexOf(r+n)===0);return a?r.indexOf(n)===-1?i[t]=[]:i[t]=[r.slice(0,r.lastIndexOf(n))]:i[t]=[r],this.setQueryParameters({hierarchicalFacetsRefinements:Ei({},i,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var r={};return r[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:Ei({},r,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:Ei({},t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(t){return this.isTagRefined(t)?this.removeTagRefinement(t):this.addTagRefinement(t)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return this.getHierarchicalFacetByName(e)!==void 0},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(t,r){return this.isConjunctiveFacet(t)?Me.isRefined(this.facetsRefinements,t,r):!1},isExcludeRefined:function(t,r){return this.isConjunctiveFacet(t)?Me.isRefined(this.facetsExcludes,t,r):!1},isDisjunctiveFacetRefined:function(t,r){return this.isDisjunctiveFacet(t)?Me.isRefined(this.disjunctiveFacetsRefinements,t,r):!1},isHierarchicalFacetRefined:function(t,r){if(!this.isHierarchicalFacet(t))return!1;var n=this.getHierarchicalRefinement(t);return r?n.indexOf(r)!==-1:n.length>0},isNumericRefined:function(t,r,n){if(n===void 0&&r===void 0)return!!this.numericRefinements[t];var i=this.numericRefinements[t]&&this.numericRefinements[t][r]!==void 0;if(n===void 0||!i)return i;var a=Ri(n),o=wd(this.numericRefinements[t][r],a)!==void 0;return i&&o},isTagRefined:function(t){return this.tagRefinements.indexOf(t)!==-1},getRefinedDisjunctiveFacets:function(){var t=this,r=as(Object.keys(this.numericRefinements).filter(function(n){return Object.keys(t.numericRefinements[n]).length>0}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(n){return t.disjunctiveFacetsRefinements[n].length>0}).concat(r).concat(this.getRefinedHierarchicalFacets())},getRefinedHierarchicalFacets:function(){var t=this;return as(this.hierarchicalFacets.map(function(r){return r.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(r){return t.hierarchicalFacetsRefinements[r].length>0}))},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(t){return e.indexOf(t)===-1})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var t=this.managedParameters,r={},n=this;return Object.keys(this).forEach(function(i){var a=n[i];t.indexOf(i)===-1&&a!==void 0&&(r[i]=a)}),r},setQueryParameter:function(t,r){if(this[t]===r)return this;var n={};return n[t]=r,this.setQueryParameters(n)},setQueryParameters:function(t){if(!t)return this;var r=Je.validate(this,t);if(r)throw r;var n=this,i=Je._parseNumbers(t),a=Object.keys(this).reduce(function(s,c){return s[c]=n[c],s},{}),o=Object.keys(i).reduce(function(s,c){var u=s[c]!==void 0,l=i[c]!==void 0;return u&&!l?ss(s,[c]):(l&&(s[c]=i[c]),s)},a);return new this.constructor(o)},resetPage:function(){return this.page===void 0?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return typeof e.showParentLevel=="boolean"?e.showParentLevel:!0},getHierarchicalFacetByName:function(e){return os(this.hierarchicalFacets,function(t){return t.name===e})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),n=t.split(r);return n.map(function(i){return i.trim()})},toString:function(){return JSON.stringify(this,null,2)}};var us=Je;function Sd(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=t!==void 0,a=t===null;if(!a&&e>t||n&&i||!r)return 1;if(!n&&e=r.length?c:r[s]==="desc"?-c:c}return a.index-o.index}),n.map(function(i){return i.value})}var cs=Od,Pd=function(t){return Array.isArray(t)?t.filter(Boolean):[]},xd=function(t,r){if(!Array.isArray(t))return-1;for(var n=0;n1||!c?(a[0].push(s[0]),a[1].push(s[1]),a):(a[0].push(c[0]),a[1].push(c[1]),a)},[[],[]])};function Rd(e){return typeof e!="string"?e:String(e).replace(/^-/,"\\-")}function _d(e){return typeof e!="string"?e:e.replace(/^\\-/,"-")}var Ti={escapeFacetValue:Rd,unescapeFacetValue:_d},jd=Id,Td=cs,Ad=mn,$d=ls,fs=Ti,Cd=fs.escapeFacetValue,Fd=fs.unescapeFacetValue;function Id(e){return function(r,n){var i=e.hierarchicalFacets[n],a=e.hierarchicalFacetsRefinements[i.name]&&e.hierarchicalFacetsRefinements[i.name][0]||"",o=e._getHierarchicalFacetSeparator(i),s=e._getHierarchicalRootPath(i),c=e._getHierarchicalShowParentLevel(i),u=$d(e._getHierarchicalFacetSortBy(i)),l=r.every(function(d){return d.exhaustive}),f=Nd(u,o,s,c,a),h=r;return s&&(h=r.slice(s.split(o).length)),h.reduce(f,{name:e.hierarchicalFacets[n].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:l,data:null})}}function Nd(e,t,r,n,i){return function(o,s,c){var u=o;if(c>0){var l=0;for(u=o;l-1})}function Rt(e,t,r){var n=t[0];this._rawResults=t;var i=this;Object.keys(n).forEach(function(l){i[l]=n[l]}),Object.keys(r||{}).forEach(function(l){i[l]=r[l]}),this.processingTimeMS=t.reduce(function(l,f){return f.processingTimeMS===void 0?l:l+f.processingTimeMS},0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map(function(){return[]}),this.facets=[];var a=e.getRefinedDisjunctiveFacets(),o=ms(e.facets),s=ms(e.disjunctiveFacets),c=1,u=n.facets||{};Object.keys(u).forEach(function(l){var f=u[l],h=Wd(e.hierarchicalFacets,l);if(h){var d=h.attributes.indexOf(l),p=hr(e.hierarchicalFacets,function(y){return y.name===h.name});i.hierarchicalFacets[p][d]={attribute:l,data:f,exhaustive:n.exhaustiveFacetsCount}}else{var v=e.disjunctiveFacets.indexOf(l)!==-1,g=e.facets.indexOf(l)!==-1,P;v&&(P=s[l],i.disjunctiveFacets[P]={name:l,data:f,exhaustive:n.exhaustiveFacetsCount},$i(i.disjunctiveFacets[P],n.facets_stats,l)),g&&(P=o[l],i.facets[P]={name:l,data:f,exhaustive:n.exhaustiveFacetsCount},$i(i.facets[P],n.facets_stats,l))}}),this.hierarchicalFacets=Ai(this.hierarchicalFacets),a.forEach(function(l){var f=t[c],h=f&&f.facets?f.facets:{},d=e.getHierarchicalFacetByName(l);Object.keys(h).forEach(function(p){var v=h[p],g;if(d){g=hr(e.hierarchicalFacets,function(b){return b.name===d.name});var P=hr(i.hierarchicalFacets[g],function(b){return b.attribute===p});if(P===-1)return;i.hierarchicalFacets[g][P].data=Md({},i.hierarchicalFacets[g][P].data,v)}else{g=s[p];var y=n.facets&&n.facets[p]||{};i.disjunctiveFacets[g]={name:p,data:gn({},v,y),exhaustive:f.exhaustiveFacetsCount},$i(i.disjunctiveFacets[g],f.facets_stats,p),e.disjunctiveFacetsRefinements[p]&&e.disjunctiveFacetsRefinements[p].forEach(function(b){!i.disjunctiveFacets[g].data[b]&&e.disjunctiveFacetsRefinements[p].indexOf(vs(b))>-1&&(i.disjunctiveFacets[g].data[b]=0)})}}),c++}),e.getRefinedHierarchicalFacets().forEach(function(l){var f=e.getHierarchicalFacetByName(l),h=e._getHierarchicalFacetSeparator(f),d=e.getHierarchicalRefinement(l);d.length===0||d[0].split(h).length<2||t.slice(c).forEach(function(p){var v=p&&p.facets?p.facets:{};Object.keys(v).forEach(function(g){var P=v[g],y=hr(e.hierarchicalFacets,function(E){return E.name===f.name}),b=hr(i.hierarchicalFacets[y],function(E){return E.attribute===g});if(b!==-1){var S={};if(d.length>0){var m=d[0].split(h)[0];S[m]=i.hierarchicalFacets[y][b].data[m]}i.hierarchicalFacets[y][b].data=gn(S,P,i.hierarchicalFacets[y][b].data)}}),c++})}),Object.keys(e.facetsExcludes).forEach(function(l){var f=e.facetsExcludes[l],h=o[l];i.facets[h]={name:l,data:n.facets[l],exhaustive:n.exhaustiveFacetsCount},f.forEach(function(d){i.facets[h]=i.facets[h]||{name:l},i.facets[h].data=i.facets[h].data||{},i.facets[h].data[d]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(Hd(e)),this.facets=Ai(this.facets),this.disjunctiveFacets=Ai(this.disjunctiveFacets),this._state=e}Rt.prototype.getFacetByName=function(e){function t(r){return r.name===e}return st(this.facets,t)||st(this.disjunctiveFacets,t)||st(this.hierarchicalFacets,t)};function Ud(e,t){function r(c){return c.name===t}if(e._state.isConjunctiveFacet(t)){var n=st(e.facets,r);return n?Object.keys(n.data).map(function(c){var u=ps(c);return{name:c,escapedValue:u,count:n.data[c],isRefined:e._state.isFacetRefined(t,u),isExcluded:e._state.isExcludeRefined(t,c)}}):[]}else if(e._state.isDisjunctiveFacet(t)){var i=st(e.disjunctiveFacets,r);return i?Object.keys(i.data).map(function(c){var u=ps(c);return{name:c,escapedValue:u,count:i.data[c],isRefined:e._state.isDisjunctiveFacetRefined(t,u)}}):[]}else if(e._state.isHierarchicalFacet(t)){var a=st(e.hierarchicalFacets,r);if(!a)return a;var o=e._state.getHierarchicalFacetByName(t),s=vs(e._state.getHierarchicalRefinement(t)[0]||"").split(e._state._getHierarchicalFacetSeparator(o));return s.unshift(t),gs(a,s,0),a}}function gs(e,t,r){e.isRefined=e.name===t[r],e.data&&e.data.forEach(function(n){gs(n,t,r+1)})}function ys(e,t,r,n){if(n=n||0,Array.isArray(t))return e(t,r[n]);if(!t.data||t.data.length===0)return t;var i=t.data.map(function(s){return ys(e,s,r,n+1)}),a=e(i,r[n]),o=gn({data:a},t);return o}Rt.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"];function Bd(e,t){return t.sort(e)}function qd(e,t){var r=[],n=[],i=t.order||[],a=i.reduce(function(c,u,l){return c[u]=l,c},{});e.forEach(function(c){var u=c.path||c.name;a[u]!==void 0?r[a[u]]=c:n.push(c)}),r=r.filter(function(c){return c});var o=t.sortRemainingBy,s;return o==="hidden"?r:(o==="alpha"?s=[["path","name"],["asc","asc"]]:s=[["count"],["desc"]],r.concat(ds(n,s[0],s[1])))}function Vd(e,t){return e.renderingContent&&e.renderingContent.facetOrdering&&e.renderingContent.facetOrdering.values&&e.renderingContent.facetOrdering.values[t]}Rt.prototype.getFacetValues=function(e,t){var r=Ud(this,e);if(r){var n=gn({},t,{sortBy:Rt.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),i=this,a;if(Array.isArray(r))a=[e];else{var o=i._state.getHierarchicalFacetByName(r.name);a=o.attributes}return ys(function(s,c){if(n.facetOrdering){var u=Vd(i,c);if(u)return qd(s,u)}if(Array.isArray(n.sortBy)){var l=Ld(n.sortBy,Rt.DEFAULT_SORT);return ds(s,l[0],l[1])}else if(typeof n.sortBy=="function")return Bd(n.sortBy,s);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},r,a)}},Rt.prototype.getFacetStats=function(e){if(this._state.isConjunctiveFacet(e))return bs(this.facets,e);if(this._state.isDisjunctiveFacet(e))return bs(this.disjunctiveFacets,e)};function bs(e,t){var r=st(e,function(n){return n.name===t});return r&&r.stats}Rt.prototype.getRefinements=function(){var e=this._state,t=this,r=[];return Object.keys(e.facetsRefinements).forEach(function(n){e.facetsRefinements[n].forEach(function(i){r.push(Ci(e,"facet",n,i,t.facets))})}),Object.keys(e.facetsExcludes).forEach(function(n){e.facetsExcludes[n].forEach(function(i){r.push(Ci(e,"exclude",n,i,t.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(n){e.disjunctiveFacetsRefinements[n].forEach(function(i){r.push(Ci(e,"disjunctive",n,i,t.disjunctiveFacets))})}),Object.keys(e.hierarchicalFacetsRefinements).forEach(function(n){e.hierarchicalFacetsRefinements[n].forEach(function(i){r.push(zd(e,n,i,t.hierarchicalFacets))})}),Object.keys(e.numericRefinements).forEach(function(n){var i=e.numericRefinements[n];Object.keys(i).forEach(function(a){i[a].forEach(function(o){r.push({type:"numeric",attributeName:n,name:o,numericValue:o,operator:a})})})}),e.tagRefinements.forEach(function(n){r.push({type:"tag",attributeName:"_tags",name:n})}),r};function Ci(e,t,r,n,i){var a=st(i,function(c){return c.name===r}),o=a&&a.data&&a.data[n]?a.data[n]:0,s=a&&a.exhaustive||!1;return{type:t,attributeName:r,name:n,count:o,exhaustive:s}}function zd(e,t,r,n){var i=e.getHierarchicalFacetByName(t),a=e._getHierarchicalFacetSeparator(i),o=r.split(a),s=st(n,function(h){return h.name===t}),c=o.reduce(function(h,d){var p=h&&st(h.data,function(v){return v.name===d});return p!==void 0?p:h},s),u=c&&c.count||0,l=c&&c.exhaustive||!1,f=c&&c.path||"";return{type:"hierarchical",attributeName:t,name:f,count:u,exhaustive:l}}var ws=Rt;function Ke(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}var Fi=Ke;Ke.prototype._events=void 0,Ke.prototype._maxListeners=void 0,Ke.defaultMaxListeners=10,Ke.prototype.setMaxListeners=function(e){if(!Qd(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Ke.prototype.emit=function(e){var t,r,n,i,a,o;if(this._events||(this._events={}),e==="error"&&(!this._events.error||pr(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var s=new Error('Uncaught, unspecified "error" event. ('+t+")");throw s.context=t,s}if(r=this._events[e],Ss(r))return!1;if(bt(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),r.apply(this,i)}else if(pr(r))for(i=Array.prototype.slice.call(arguments,1),o=r.slice(),n=o.length,a=0;a0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),typeof console.trace=="function"&&console.trace())),this},Ke.prototype.on=Ke.prototype.addListener,Ke.prototype.once=function(e,t){if(!bt(t))throw TypeError("listener must be a function");var r=!1;function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}return n.listener=t,this.on(e,n),this},Ke.prototype.removeListener=function(e,t){var r,n,i,a;if(!bt(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],i=r.length,n=-1,r===t||bt(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(pr(r)){for(a=i;a-- >0;)if(r[a]===t||r[a].listener&&r[a].listener===t){n=a;break}if(n<0)return this;r.length===1?(r.length=0,delete this._events[e]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},Ke.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[e]&&delete this._events[e],this;if(arguments.length===0){for(t in this._events)t!=="removeListener"&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],bt(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},Ke.prototype.listeners=function(e){var t;return!this._events||!this._events[e]?t=[]:bt(this._events[e])?t=[this._events[e]]:t=this._events[e].slice(),t},Ke.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(bt(t))return 1;if(t)return t.length}return 0},Ke.listenerCount=function(e,t){return e.listenerCount(t)};function bt(e){return typeof e=="function"}function Qd(e){return typeof e=="number"}function pr(e){return typeof e=="object"&&e!==null}function Ss(e){return e===void 0}const Yd=Qt(Fi);function Kd(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}var Os=Kd,Gd=Fi,Xd=Os;function yn(e,t){this.main=e,this.fn=t,this.lastResults=null}Xd(yn,Gd),yn.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},yn.prototype.getModifiedState=function(e){return this.fn(e)};var Zd=yn,Ii=vn;function Ni(e){return Object.keys(e).sort(function(t,r){return t.localeCompare(r)}).reduce(function(t,r){return t[r]=e[r],t},{})}var rt={_getQueries:function(t,r){var n=[];return n.push({indexName:t,params:rt._getHitsSearchParams(r)}),r.getRefinedDisjunctiveFacets().forEach(function(i){n.push({indexName:t,params:rt._getDisjunctiveFacetSearchParams(r,i)})}),r.getRefinedHierarchicalFacets().forEach(function(i){var a=r.getHierarchicalFacetByName(i),o=r.getHierarchicalRefinement(i),s=r._getHierarchicalFacetSeparator(a);if(o.length>0&&o[0].split(s).length>1){var c=o[0].split(s).slice(0,-1).reduce(function(l,f,h){return l.concat({attribute:a.attributes[h],value:h===0?f:[l[l.length-1].value,f].join(s)})},[]);c.forEach(function(u,l){var f=rt._getDisjunctiveFacetSearchParams(r,u.attribute,l===0);function h(v){return a.attributes.some(function(g){return g===v.split(":")[0]})}var d=(f.facetFilters||[]).reduce(function(v,g){if(Array.isArray(g)){var P=g.filter(function(y){return!h(y)});P.length>0&&v.push(P)}return typeof g=="string"&&!h(g)&&v.push(g),v},[]),p=c[l-1];l>0?f.facetFilters=d.concat(p.attribute+":"+p.value):f.facetFilters=d.length>0?d:void 0,n.push({indexName:t,params:f})})}}),n},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(rt._getHitsHierarchicalFacetsAttributes(e)),r=rt._getFacetFilters(e),n=rt._getNumericFilters(e),i=rt._getTagFilters(e),a={facets:t.indexOf("*")>-1?["*"]:t,tagFilters:i};return r.length>0&&(a.facetFilters=r),n.length>0&&(a.numericFilters=n),Ni(Ii({},e.getQueryParams(),a))},_getDisjunctiveFacetSearchParams:function(e,t,r){var n=rt._getFacetFilters(e,t,r),i=rt._getNumericFilters(e,t),a=rt._getTagFilters(e),o={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};a.length>0&&(o.tagFilters=a);var s=e.getHierarchicalFacetByName(t);return s?o.facets=rt._getDisjunctiveHierarchicalFacetAttribute(e,s,r):o.facets=t,i.length>0&&(o.numericFilters=i),n.length>0&&(o.facetFilters=n),Ni(Ii({},e.getQueryParams(),o))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var r=[];return Object.keys(e.numericRefinements).forEach(function(n){var i=e.numericRefinements[n]||{};Object.keys(i).forEach(function(a){var o=i[a]||[];t!==n&&o.forEach(function(s){if(Array.isArray(s)){var c=s.map(function(u){return n+a+u});r.push(c)}else r.push(n+a+s)})})}),r},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,r){var n=[],i=e.facetsRefinements||{};Object.keys(i).forEach(function(c){var u=i[c]||[];u.forEach(function(l){n.push(c+":"+l)})});var a=e.facetsExcludes||{};Object.keys(a).forEach(function(c){var u=a[c]||[];u.forEach(function(l){n.push(c+":-"+l)})});var o=e.disjunctiveFacetsRefinements||{};Object.keys(o).forEach(function(c){var u=o[c]||[];if(!(c===t||!u||u.length===0)){var l=[];u.forEach(function(f){l.push(c+":"+f)}),n.push(l)}});var s=e.hierarchicalFacetsRefinements||{};return Object.keys(s).forEach(function(c){var u=s[c]||[],l=u[0];if(l!==void 0){var f=e.getHierarchicalFacetByName(c),h=e._getHierarchicalFacetSeparator(f),d=e._getHierarchicalRootPath(f),p,v;if(t===c){if(l.indexOf(h)===-1||!d&&r===!0||d&&d.split(h).length===l.split(h).length)return;d?(v=d.split(h).length-1,l=d):(v=l.split(h).length-2,l=l.slice(0,l.lastIndexOf(h))),p=f.attributes[v]}else v=l.split(h).length-1,p=f.attributes[v];p&&n.push([p+":"+l])}}),n},_getHitsHierarchicalFacetsAttributes:function(e){var t=[];return e.hierarchicalFacets.reduce(function(n,i){var a=e.getHierarchicalRefinement(i.name)[0];if(!a)return n.push(i.attributes[0]),n;var o=e._getHierarchicalFacetSeparator(i),s=a.split(o).length,c=i.attributes.slice(0,s+1);return n.concat(c)},t)},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,r){var n=e._getHierarchicalFacetSeparator(t);if(r===!0){var i=e._getHierarchicalRootPath(t),a=0;return i&&(a=i.split(n).length),[t.attributes[a]]}var o=e.getHierarchicalRefinement(t.name)[0]||"",s=o.split(n).length-1;return t.attributes.slice(0,s+1)},getSearchForFacetQuery:function(e,t,r,n){var i=n.isDisjunctiveFacet(e)?n.clearRefinements(e):n,a={facetQuery:t,facetName:e};return typeof r=="number"&&(a.maxFacetHits=r),Ni(Ii({},rt._getHitsSearchParams(i),a))}},Jd=rt,Ps="3.13.0",ki=us,Di=ws,eh=Zd,Xt=Jd,th=Fi,rh=Os,nh=Pi,ih=Oi,ah=vn,xs=Ps,oh=Ti.escapeFacetValue;function ne(e,t,r){typeof e.addAlgoliaAgent=="function"&&e.addAlgoliaAgent("JS Helper ("+xs+")"),this.setClient(e);var n=r||{};n.index=t,this.state=ki.make(n),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}rh(ne,th),ne.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},ne.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},ne.prototype.getQuery=function(){var e=this.state;return Xt._getHitsSearchParams(e)},ne.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,n=Xt._getQueries(r.index,r),i=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:r}),t){this.client.search(n).then(function(a){i._currentNbQueries--,i._currentNbQueries===0&&i.emit("searchQueueEmpty"),t(null,new Di(r,a.results),r)}).catch(function(a){i._currentNbQueries--,i._currentNbQueries===0&&i.emit("searchQueueEmpty"),t(a,null,r)});return}return this.client.search(n).then(function(a){return i._currentNbQueries--,i._currentNbQueries===0&&i.emit("searchQueueEmpty"),{content:new Di(r,a.results),state:r,_originalResponse:a}},function(a){throw i._currentNbQueries--,i._currentNbQueries===0&&i.emit("searchQueueEmpty"),a})},ne.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,r=this.derivedHelpers[0];if(!r)return Promise.resolve([]);var n=r.getModifiedState(t),i=ah({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:ih(Xt._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),a="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if(typeof this.client.initIndex!="function")throw new Error(a);var o=this.client.initIndex(n.index);if(typeof o.findAnswers!="function")throw new Error(a);return o.findAnswers(n.query,e.queryLanguages,i)},ne.prototype.searchForFacetValues=function(e,t,r,n){var i=typeof this.client.searchForFacetValues=="function",a=typeof this.client.initIndex=="function";if(!i&&!a&&typeof this.client.search!="function")throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var o=this.state.setQueryParameters(n||{}),s=o.isDisjunctiveFacet(e),c=Xt.getSearchForFacetQuery(e,t,r,o);this._currentNbQueries++;var u=this,l;return i?l=this.client.searchForFacetValues([{indexName:o.index,params:c}]):a?l=this.client.initIndex(o.index).searchForFacetValues(c):(delete c.facetName,l=this.client.search([{type:"facet",facet:e,indexName:o.index,params:c}]).then(function(h){return h.results[0]})),this.emit("searchForFacetValues",{state:o,facet:e,query:t}),l.then(function(h){return u._currentNbQueries--,u._currentNbQueries===0&&u.emit("searchQueueEmpty"),h=Array.isArray(h)?h[0]:h,h.facetHits.forEach(function(d){d.escapedValue=oh(d.value),d.isRefined=s?o.isDisjunctiveFacetRefined(e,d.escapedValue):o.isFacetRefined(e,d.escapedValue)}),h},function(f){throw u._currentNbQueries--,u._currentNbQueries===0&&u.emit("searchQueueEmpty"),f})},ne.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},ne.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},ne.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},ne.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},ne.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},ne.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},ne.prototype.addNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,r),isPageReset:!0}),this},ne.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},ne.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},ne.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},ne.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},ne.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},ne.prototype.removeNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,r),isPageReset:!0}),this},ne.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},ne.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},ne.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},ne.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},ne.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},ne.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},ne.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},ne.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},ne.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},ne.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},ne.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},ne.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},ne.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},ne.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},ne.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},ne.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)};function Es(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}ne.prototype.setCurrentPage=Es,ne.prototype.setPage=Es,ne.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},ne.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},ne.prototype.setState=function(e){return this._change({state:ki.make(e),isPageReset:!1}),this},ne.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new ki(e),this},ne.prototype.hasRefinements=function(e){return nh(this.state.getNumericRefinements(e))?!0:this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):this.state.isHierarchicalFacet(e)?this.state.isHierarchicalFacetRefined(e):!1},ne.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},ne.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},ne.prototype.hasTag=function(e){return this.state.isTagRefined(e)},ne.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},ne.prototype.getIndex=function(){return this.state.index};function Rs(){return this.state.page}ne.prototype.getCurrentPage=Rs,ne.prototype.getPage=Rs,ne.prototype.getTags=function(){return this.state.tagRefinements},ne.prototype.getRefinements=function(e){var t=[];if(this.state.isConjunctiveFacet(e)){var r=this.state.getConjunctiveRefinements(e);r.forEach(function(o){t.push({value:o,type:"conjunctive"})});var n=this.state.getExcludeRefinements(e);n.forEach(function(o){t.push({value:o,type:"exclude"})})}else if(this.state.isDisjunctiveFacet(e)){var i=this.state.getDisjunctiveRefinements(e);i.forEach(function(o){t.push({value:o,type:"disjunctive"})})}var a=this.state.getNumericRefinements(e);return Object.keys(a).forEach(function(o){var s=a[o];t.push({value:s,operator:o,type:"numeric"})}),t},ne.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},ne.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},ne.prototype._search=function(e){var t=this.state,r=[],n=[];e.onlyWithDerivedHelpers||(n=Xt._getQueries(t.index,t),r.push({state:t,queriesCount:n.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map(function(s){var c=s.getModifiedState(t),u=c.index?Xt._getQueries(c.index,c):[];return r.push({state:c,queriesCount:u.length,helper:s}),s.emit("search",{state:c,results:s.lastResults}),u}),a=Array.prototype.concat.apply(n,i),o=this._queryId++;if(this._currentNbQueries++,!a.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,r,o));try{this.client.search(a).then(this._dispatchAlgoliaResponse.bind(this,r,o)).catch(this._dispatchAlgoliaError.bind(this,o))}catch(s){this.emit("error",{error:s})}},ne.prototype._dispatchAlgoliaResponse=function(e,t,r){if(!(t0},ne.prototype._change=function(e){var t=e.state,r=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:r}))},ne.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},ne.prototype.setClient=function(e){return this.client===e?this:(typeof e.addAlgoliaAgent=="function"&&e.addAlgoliaAgent("JS Helper ("+xs+")"),this.client=e,this)},ne.prototype.getClient=function(){return this.client},ne.prototype.derive=function(e){var t=new eh(this,e);return this.derivedHelpers.push(t),t},ne.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(t===-1)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},ne.prototype.hasPendingRequests=function(){return this._currentNbQueries>0};var sh=ne,_s=sh,uh=us,ch=ws;function vr(e,t,r){return new _s(e,t,r)}vr.version=Ps,vr.AlgoliaSearchHelper=_s,vr.SearchParameters=uh,vr.SearchResults=ch;var lh=vr;const ut=Qt(lh);function js(e){return e.toString().charAt(0).toUpperCase()+e.toString().slice(1)}function Ue(){}var Ts=Ue,ge=Ue;process.env.NODE_ENV==="development"&&(Ts=function(t){console.warn("[InstantSearch.js]: ".concat(t.trim()))},ge=function(t,r){if(!t){var n=ge.cache[r];n||(ge.cache[r]=!0,process.env.NODE_ENV==="development"&&Ts(r))}},ge.cache={});var fh=Object.keys;function dh(e){return vh(e)||ph(e)||As(e)||hh()}function hh(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ph(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vh(e){if(Array.isArray(e))return Mi(e)}function mr(e,t){return yh(e)||gh(e,t)||As(e,t)||mh()}function mh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function As(e,t){if(e){if(typeof e=="string")return Mi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mi(e,t)}}function Mi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0}).map(function(a){var o=mr(a,2);o[0];var s=o[1],c=s.connectors,u=s.widgets,l=_s(u[0]),f=c[0];return"const virtual".concat(l," = ").concat(f,"(() => null);")}).join(` +`).concat(i.filter(function(a){var o=mr(a,2);o[0];var s=o[1].connectors;return s.length>0}).map(function(a){var o=mr(a,2);o[0];var s=o[1],c=s.connectors,u=s.widgets,l=js(u[0]),f=c[0];return"const virtual".concat(l," = ").concat(f,"(() => null);")}).join(` `),` search.addWidgets([ - `).concat(i.filter(function(a){var o=mr(a,2);o[0];var s=o[1].connectors;return s.length>0}).map(function(a){var o=mr(a,2);o[0];var s=o[1].widgets,c=_s(s[0]);return"virtual".concat(c,"({ /* ... */ })")}).join(`, + `).concat(i.filter(function(a){var o=mr(a,2);o[0];var s=o[1].connectors;return s.length>0}).map(function(a){var o=mr(a,2);o[0];var s=o[1].widgets,c=js(s[0]);return"virtual".concat(c,"({ /* ... */ })")}).join(`, `),` ]); \`\`\` @@ -214,7 +214,7 @@ If you're using custom widgets that do set these query parameters, we recommend See https://www.algolia.com/doc/guides/building-search-ui/widgets/customize-an-existing-widget/js/#customize-the-complete-ui-of-the-widgets`))}function Sh(e){return Object.prototype.toString.call(e).slice(8,-1)}function Zt(e,t){if(e===void 0||typeof e!="function")throw new Error("The render function is not valid (received type ".concat(Sh(e),`). -`).concat(t))}var Oh={"&":"&","<":"<",">":">",'"':""","'":"'"},Cs=/[&<>"']/g,Ph=RegExp(Cs.source);function Eh(e){return e&&Ph.test(e)?e.replace(Cs,function(t){return Oh[t]}):e}var xh={"&":"&","<":"<",">":">",""":'"',"'":"'"},Fs=/&(amp|quot|lt|gt|#39);/g,Rh=RegExp(Fs.source);function Li(e){return e&&Rh.test(e)?e.replace(Fs,function(t){return xh[t]}):e}function Hi(e){"@babel/helpers - typeof";return Hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hi(e)}function jh(e){return e===null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function _h(e){return Hi(e)==="object"&&e!==null}function Is(e){if(!_h(e)||jh(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function gr(e){"@babel/helpers - typeof";return gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gr(e)}function Th(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function Wi(){return Wi=Object.assign?Object.assign.bind():function(e){for(var t=1;t",highlightPostTag:""};function Ds(e){return Eh(e).replace(new RegExp(er.highlightPreTag,"g"),Ge.highlightPreTag).replace(new RegExp(er.highlightPostTag,"g"),Ge.highlightPostTag)}function bn(e){return Is(e)&&typeof e.value!="string"?Object.keys(e).reduce(function(t,r){return Jt(Jt({},t),{},ks({},r,bn(e[r])))},{}):Array.isArray(e)?e.map(bn):Jt(Jt({},e),{},{value:Ds(e.value)})}function Ch(e){return e.__escaped===void 0&&(e=e.map(function(t){var r=Wi({},(Th(t),t));return r._highlightResult&&(r._highlightResult=bn(r._highlightResult)),r._snippetResult&&(r._snippetResult=bn(r._snippetResult)),r}),e.__escaped=!0),e}function Fh(e){return e.map(function(t){return Jt(Jt({},t),{},{highlighted:Ds(t.highlighted)})})}function Ms(e){var t=Ge.highlightPreTag,r=Ge.highlightPostTag;return e.map(function(n){return n.isHighlighted?t+n.value+r:n.value}).join("")}function Ih(e,t,r){return e.state.isHierarchicalFacet(t)?e.state.isHierarchicalFacetRefined(t,r):e.state.isConjunctiveFacet(t)?e.state.isFacetRefined(t,r):e.state.isDisjunctiveFacetRefined(t,r)}function Ui(e){"@babel/helpers - typeof";return Ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ui(e)}function Nh(e,t){return Lh(e)||Mh(e,t)||Dh(e,t)||kh()}function kh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +`).concat(t))}var Oh={"&":"&","<":"<",">":">",'"':""","'":"'"},Cs=/[&<>"']/g,Ph=RegExp(Cs.source);function xh(e){return e&&Ph.test(e)?e.replace(Cs,function(t){return Oh[t]}):e}var Eh={"&":"&","<":"<",">":">",""":'"',"'":"'"},Fs=/&(amp|quot|lt|gt|#39);/g,Rh=RegExp(Fs.source);function Li(e){return e&&Rh.test(e)?e.replace(Fs,function(t){return Eh[t]}):e}function Hi(e){"@babel/helpers - typeof";return Hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hi(e)}function _h(e){return e===null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function jh(e){return Hi(e)==="object"&&e!==null}function Is(e){if(!jh(e)||_h(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function gr(e){"@babel/helpers - typeof";return gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gr(e)}function Th(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function Wi(){return Wi=Object.assign?Object.assign.bind():function(e){for(var t=1;t",highlightPostTag:""};function Ds(e){return xh(e).replace(new RegExp(er.highlightPreTag,"g"),Ge.highlightPreTag).replace(new RegExp(er.highlightPostTag,"g"),Ge.highlightPostTag)}function bn(e){return Is(e)&&typeof e.value!="string"?Object.keys(e).reduce(function(t,r){return Jt(Jt({},t),{},ks({},r,bn(e[r])))},{}):Array.isArray(e)?e.map(bn):Jt(Jt({},e),{},{value:Ds(e.value)})}function Ch(e){return e.__escaped===void 0&&(e=e.map(function(t){var r=Wi({},(Th(t),t));return r._highlightResult&&(r._highlightResult=bn(r._highlightResult)),r._snippetResult&&(r._snippetResult=bn(r._snippetResult)),r}),e.__escaped=!0),e}function Fh(e){return e.map(function(t){return Jt(Jt({},t),{},{highlighted:Ds(t.highlighted)})})}function Ms(e){var t=Ge.highlightPreTag,r=Ge.highlightPostTag;return e.map(function(n){return n.isHighlighted?t+n.value+r:n.value}).join("")}function Ih(e,t,r){return e.state.isHierarchicalFacet(t)?e.state.isHierarchicalFacetRefined(t,r):e.state.isConjunctiveFacet(t)?e.state.isFacetRefined(t,r):e.state.isDisjunctiveFacetRefined(t,r)}function Ui(e){"@babel/helpers - typeof";return Ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ui(e)}function Nh(e,t){return Lh(e)||Mh(e,t)||Dh(e,t)||kh()}function kh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dh(e,t){if(e){if(typeof e=="string")return Ls(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ls(e,t)}}function Ls(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r4&&arguments[4]!==void 0?arguments[4]:[],a={type:t,attribute:r,name:n,escapedValue:Xh(n)},o=br(i,function(d){return d.name===r}),s;if(t==="hierarchical"){for(var c=e.getHierarchicalFacetByName(r),u=n.split(c.separator),l=function(p){return function(v){return p[v]}},f=function(p){o=o&&o.data&&br(Object.keys(o.data).map(l(o.data)),function(v){return v.name===u[p]})},h=0;o!==void 0&&h2&&arguments[2]!==void 0?arguments[2]:!1,n=[],i=t.facetsRefinements,a=i===void 0?{}:i,o=t.facetsExcludes,s=o===void 0?{}:o,c=t.disjunctiveFacetsRefinements,u=c===void 0?{}:c,l=t.hierarchicalFacetsRefinements,f=l===void 0?{}:l,h=t.numericRefinements,d=h===void 0?{}:h,p=t.tagRefinements,v=p===void 0?[]:p;return Object.keys(a).forEach(function(g){var P=a[g];P.forEach(function(y){n.push(Vi(t,"facet",g,y,e.facets))})}),Object.keys(s).forEach(function(g){var P=s[g];P.forEach(function(y){n.push({type:"exclude",attribute:g,name:y,exclude:!0})})}),Object.keys(u).forEach(function(g){var P=u[g];P.forEach(function(y){n.push(Vi(t,"disjunctive",g,Gh(y),e.disjunctiveFacets))})}),Object.keys(f).forEach(function(g){var P=f[g];P.forEach(function(y){n.push(Vi(t,"hierarchical",g,y,e.hierarchicalFacets))})}),Object.keys(d).forEach(function(g){var P=d[g];Object.keys(P).forEach(function(y){var b=y,S=P[b],m=Array.isArray(S)?S:[S];m.forEach(function(x){n.push({type:"numeric",attribute:g,name:"".concat(x),numericValue:x,operator:b})})})}),v.forEach(function(g){n.push({type:"tag",attribute:"_tags",name:g})}),r&&t.query&&t.query.trim()&&n.push({attribute:"query",type:"query",name:t.query,query:t.query}),n}function Sr(e){"@babel/helpers - typeof";return Sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sr(e)}function qs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vs(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gp(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var yp=function(t,r){r.facets,r.disjunctiveFacets,r.facetsRefinements,r.facetsExcludes,r.disjunctiveFacetsRefinements,r.numericRefinements,r.tagRefinements,r.hierarchicalFacets,r.hierarchicalFacetsRefinements,r.ruleContexts;var n=mp(r,dp);return t.setQueryParameters(n)},bp=function(t,r){return r.facets.reduce(function(n,i){return n.addFacet(i)},t)},wp=function(t,r){return r.disjunctiveFacets.reduce(function(n,i){return n.addDisjunctiveFacet(i)},t)},Sp=function(t,r){return t.setQueryParameters({hierarchicalFacets:r.hierarchicalFacets.reduce(function(n,i){var a=Zh(n,function(s){return s.name===i.name});if(a===-1)return n.concat(i);var o=n.slice();return o.splice(a,1,i),o},t.hierarchicalFacets)})},Op=function(t,r){return r.tagRefinements.reduce(function(n,i){return n.addTagRefinement(i)},t)},Pp=function(t,r){return t.setQueryParameters({facetsRefinements:ht(ht({},t.facetsRefinements),r.facetsRefinements)})},Ep=function(t,r){return t.setQueryParameters({facetsExcludes:ht(ht({},t.facetsExcludes),r.facetsExcludes)})},xp=function(t,r){return t.setQueryParameters({disjunctiveFacetsRefinements:ht(ht({},t.disjunctiveFacetsRefinements),r.disjunctiveFacetsRefinements)})},Rp=function(t,r){return t.setQueryParameters({numericRefinements:ht(ht({},t.numericRefinements),r.numericRefinements)})},jp=function(t,r){return t.setQueryParameters({hierarchicalFacetsRefinements:ht(ht({},t.hierarchicalFacetsRefinements),r.hierarchicalFacetsRefinements)})},_p=function(t,r){var n=fp([].concat(t.ruleContexts).concat(r.ruleContexts).filter(Boolean));return n.length>0?t.setQueryParameters({ruleContexts:n}):t},Sn=function(){for(var t=arguments.length,r=new Array(t),n=0;n1&&arguments[1]!==void 0?arguments[1]:{fallback:function(){}},r=t.fallback;return typeof window>"u"?r():e({window})}function Rr(e){"@babel/helpers - typeof";return Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rr(e)}function eu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qe(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:Ue,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue;return function(n){if(!n||!Is(n.searchParameters))throw new Error(Np("The `searchParameters` option expects an object."));var i={};function a(o){return function(s){var c=ru(o.state,n),u=Sn(c,new ut.SearchParameters(s));n.searchParameters=s,o.setState(u).search()}}return{$$type:"ais.configure",init:function(s){var c=s.instantSearchInstance;t(qe(qe({},this.getWidgetRenderState(s)),{},{instantSearchInstance:c}),!0)},render:function(s){var c=s.instantSearchInstance;t(qe(qe({},this.getWidgetRenderState(s)),{},{instantSearchInstance:c}),!1)},dispose:function(s){var c=s.state;return r(),ru(c,n)},getRenderState:function(s,c){var u,l=this.getWidgetRenderState(c);return qe(qe({},s),{},{configure:qe(qe({},l),{},{widgetParams:qe(qe({},l.widgetParams),{},{searchParameters:Sn(new ut.SearchParameters((u=s.configure)===null||u===void 0?void 0:u.widgetParams.searchParameters),new ut.SearchParameters(l.widgetParams.searchParameters)).getQueryParams()})})})},getWidgetRenderState:function(s){var c=s.helper;return i.refine||(i.refine=a(c)),{refine:i.refine,widgetParams:n}},getWidgetSearchParameters:function(s,c){var u=c.uiState;return Sn(s,new ut.SearchParameters(qe(qe({},u.configure),n.searchParameters)))},getWidgetUiState:function(s){return qe(qe({},s),{},{configure:qe(qe({},s.configure),n.searchParameters)})}}}};const Dp=kp;function Qi(e){"@babel/helpers - typeof";return Qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qi(e)}var nu=Object.prototype.hasOwnProperty;function jr(e,t,r){if(r!=null&&r(e,t))return!0;var n,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((i=e.length)===t.length)for(;i--&&jr(e[i],t[i],r););return i===-1}if(!n||Qi(e)==="object"){i=0;for(n in e)if(nu.call(e,n)&&++i&&!nu.call(t,n)||!(n in t)||!jr(e[n],t[n],r))return!1;return Object.keys(t).length===i}}return e!==e&&t!==t}function iu(e){var t,r,n;return new ut.SearchResults(e,[{query:(t=e.query)!==null&&t!==void 0?t:"",page:(r=e.page)!==null&&r!==void 0?r:0,hitsPerPage:(n=e.hitsPerPage)!==null&&n!==void 0?n:20,hits:[],nbHits:0,nbPages:0,params:"",exhaustiveNbHits:!0,exhaustiveFacetsCount:!0,processingTimeMS:0,index:e.index}],{__isArtificial:!0})}function _r(e){"@babel/helpers - typeof";return _r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_r(e)}function au(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ou(e){for(var t=1;t component must be used within ."),e}var Ki=R.createContext(null);process.env.NODE_ENV==="development"&&(Ki.displayName="InstantSearch");function uu(){var e=R.useContext(Ki);return su(e!==null,"Hooks must be used inside the component.\n\nThey are not compatible with the `react-instantsearch-core` and `react-instantsearch-dom` packages, so make sure to use the component from `react-instantsearch-hooks`."),e}var cu=R.createContext(null);process.env.NODE_ENV==="development"&&(cu.displayName="InstantSearchServer");function lu(){return R.useContext(cu)}function Bp(e,t){return Qp(e)||zp(e,t)||Vp(e,t)||qp()}function qp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vp(e,t){if(e){if(typeof e=="string")return fu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fu(e,t)}}function fu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ov(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Wt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=lu(),i=uu(),a=Up(),o=du(t),s=du(r),c=R.useRef(!0),u=R.useRef(null),l=R.useMemo(function(){var v=e(function(g,P){if(P){c.current=!0;return}if(c.current){g.instantSearchInstance,g.widgetParams;var y=mu(g,Gp);jr(y,u.current,function(b,S){return(b==null?void 0:b.constructor)===Function&&(S==null?void 0:S.constructor)===Function})||(p(y),u.current=y)}},function(){c.current=!1});return vu(vu({},v(o)),s)},[e,o,s]),f=R.useState(function(){if(l.getWidgetRenderState){var v,g=a.getHelper(),P=a.getWidgetUiState({})[a.getIndexId()];g.state=((v=l.getWidgetSearchParameters)===null||v===void 0?void 0:v.call(l,g.state,{uiState:P}))||g.state;var y=Wp(a),b=y.results,S=y.scopedResults,m=l.getWidgetRenderState({helper:g,parent:a,instantSearchInstance:i,results:b,scopedResults:S,state:g.state,renderState:i.renderState,templatesConfig:i.templatesConfig,createURL:a.createURL,searchMetadata:{isSearchStalled:i.status==="stalled"},status:i.status,error:i.error});m.widgetParams;var x=mu(m,Xp);return x}return{}}),h=Zp(f,2),d=h[0],p=h[1];return Kp({widget:l,parentIndex:a,props:o,shouldSsr:!!n}),d}function sv(e,t){return Wt(Dp,{searchParameters:e},t)}function uv(e){return sv(e,{$$widgetType:"ais.configure"}),null}var gu={current:{}};function yu(e,t){if(process.env.NODE_ENV==="development"&&!e){var r=t.trim(),n=gu.current[r];if(!n){gu.current[r]=!0;var i="[InstantSearch] ".concat(r);console.warn(i);try{throw new Error(i)}catch{}}}}function Ar(e){"@babel/helpers - typeof";return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ar(e)}var cv=["initialSearchParameters"];function bu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pt(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gv(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Cr=St({name:"index-widget"});function Su(e,t){var r=t.state,n=t.isPageReset,i=t._uiState;r!==e.state&&(e.state=r,e.emit("change",{state:e.state,results:e.lastResults,isPageReset:n,_uiState:i}))}function Pn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return e.reduce(function(n,i){return wt(i)||!i.getWidgetUiState&&!i.getWidgetState?n:i.getWidgetUiState?i.getWidgetUiState(n,t):i.getWidgetState(n,t)},r)}function En(e,t){var r=t.initialSearchParameters,n=mv(t,cv);return e.filter(function(i){return!wt(i)}).reduce(function(i,a){return a.getWidgetSearchParameters?a.getWidgetSearchParameters(i,n):i},r)}function Ou(e){var t=e.filter(wt);t.length!==0&&t.forEach(function(r){var n=r.getHelper();Su(n,{state:n.state.resetPage(),isPageReset:!0}),Ou(r.getWidgets())})}function Pu(e){var t=e.filter(wt);return t.reduce(function(r,n){return r.concat.apply(r,[{indexId:n.getIndexId(),results:n.getResults(),helper:n.getHelper()}].concat(wu(Pu(n.getWidgets()))))},[])}var yv=function(t){if(t===void 0||t.indexName===void 0)throw new Error(Cr("The `indexName` option is required."));var r=t.indexName,n=t.indexId,i=n===void 0?r:n,a=[],o={},s=null,c=null,u=null,l=null,f=null;return{$$type:"ais.index",$$widgetType:"ais.index",getIndexName:function(){return r},getIndexId:function(){return i},getHelper:function(){return u},getResults:function(){var d;return(d=l)!==null&&d!==void 0&&d.lastResults?(l.lastResults._state=u.state,l.lastResults):null},getPreviousState:function(){return f},getScopedResults:function(){var d=this.getParent(),p=d?d.getWidgets():[this];return Pu(p)},getParent:function(){return c},createURL:function(d){return s._createURL($r({},i,Pn(a,{searchParameters:d,helper:u})))},getWidgets:function(){return a},addWidgets:function(d){var p=this;if(!Array.isArray(d))throw new Error(Cr("The `addWidgets` method expects an array of widgets."));if(d.some(function(v){return typeof v.init!="function"&&typeof v.render!="function"}))throw new Error(Cr("The widget definition expects a `render` and/or an `init` method."));return a=a.concat(d),s&&d.length&&(Su(u,{state:En(a,{uiState:o,initialSearchParameters:u.state}),_uiState:o}),d.forEach(function(v){if(v.getRenderState){var g=v.getRenderState(s.renderState[p.getIndexId()]||{},Er(s,p,s._initialUiState));Xi({renderState:g,instantSearchInstance:s,parent:p})}}),d.forEach(function(v){v.init&&v.init(Er(s,p,s._initialUiState))}),s.scheduleSearch()),this},removeWidgets:function(d){var p=this;if(!Array.isArray(d))throw new Error(Cr("The `removeWidgets` method expects an array of widgets."));if(d.some(function(g){return typeof g.dispose!="function"}))throw new Error(Cr("The widget definition expects a `dispose` method."));if(a=a.filter(function(g){return d.indexOf(g)===-1}),s&&d.length){var v=d.reduce(function(g,P){var y=P.dispose({helper:u,state:g,parent:p});return y||g},u.state);o=Pn(a,{searchParameters:v,helper:u}),u.setState(En(a,{uiState:o,initialSearchParameters:v})),a.length&&s.scheduleSearch()}return this},init:function(d){var p=this,v,g=d.instantSearchInstance,P=d.parent,y=d.uiState;if(u===null){s=g,c=P,o=y[i]||{};var b=g.mainHelper,S=En(a,{uiState:o,initialSearchParameters:new ut.SearchParameters({index:r})});u=ut({},S.index,S),u.search=function(){return g.onStateChange?(g.onStateChange({uiState:g.mainIndex.getWidgetUiState({}),setUiState:function(M){return g.setUiState(M,!1)}}),b):b.search()},u.searchWithoutTriggeringOnStateChange=function(){return b.search()},u.searchForFacetValues=function(T,M,w,_){var U=u.state.setQueryParameters(_);return b.searchForFacetValues(T,M,w,U)},l=b.derive(function(){return Sn.apply(void 0,wu(Tp(p)))});var m=(v=g._initialResults)===null||v===void 0?void 0:v[this.getIndexId()];if(m){var x=new ut.SearchResults(new ut.SearchParameters(m.state),m.results);l.lastResults=x,u.lastResults=x}u.on("change",function(T){var M=T.isPageReset;M&&Ou(a)}),l.on("search",function(){g.scheduleStalledRender(),process.env.NODE_ENV==="development"&&$s({index:p,indexUiState:o})}),l.on("result",function(T){var M=T.results;g.scheduleRender(),u.lastResults=M,f=M==null?void 0:M._state}),a.forEach(function(T){if(T.getRenderState){var M=T.getRenderState(g.renderState[p.getIndexId()]||{},Er(g,p,y));Xi({renderState:M,instantSearchInstance:g,parent:p})}}),a.forEach(function(T){process.env.NODE_ENV==="development"&&ge(!T.getWidgetState||!!T.getWidgetUiState,"The `getWidgetState` method is renamed `getWidgetUiState` and will no longer exist under that name in InstantSearch.js 5.x. Please use `getWidgetUiState` instead."),T.init&&T.init(Er(g,p,y))}),u.on("change",function(T){var M=T.state,w=T._uiState;o=Pn(a,{searchParameters:M,helper:u},w||{}),g.onStateChange||g.onInternalStateChange()}),m&&g.scheduleRender()}},render:function(d){var p=this,v=d.instantSearchInstance;v.status==="error"&&!v.mainHelper.hasPendingRequests()&&f&&u.setState(f);var g=this.getResults()?a:a.filter(wt);g.forEach(function(P){if(P.getRenderState){var y=P.getRenderState(v.renderState[p.getIndexId()]||{},Xs(v,p));Xi({renderState:y,instantSearchInstance:v,parent:p})}}),g.forEach(function(P){P.render&&P.render(Xs(v,p))})},dispose:function(){var d=this,p,v;a.forEach(function(g){g.dispose&&g.dispose({helper:u,state:u.state,parent:d})}),s=null,c=null,(p=u)===null||p===void 0||p.removeAllListeners(),u=null,(v=l)===null||v===void 0||v.detach(),l=null},getWidgetUiState:function(d){return a.filter(wt).reduce(function(p,v){return v.getWidgetUiState(p)},pt(pt({},d),{},$r({},i,pt(pt({},d[i]),o))))},getWidgetState:function(d){return process.env.NODE_ENV==="development"&&ge(!1,"The `getWidgetState` method is renamed `getWidgetUiState` and will no longer exist under that name in InstantSearch.js 5.x. Please use `getWidgetUiState` instead."),this.getWidgetUiState(d)},getWidgetSearchParameters:function(d,p){var v=p.uiState;return En(a,{uiState:v,initialSearchParameters:d})},refreshUiState:function(){o=Pn(a,{searchParameters:this.getHelper().state,helper:this.getHelper()},o)},setIndexUiState:function(d){var p=typeof d=="function"?d(o):d;s.setUiState(function(v){return pt(pt({},v),{},$r({},i,p))})}}};const bv=yv;function Xi(e){var t=e.renderState,r=e.instantSearchInstance,n=e.parent,i=n?n.getIndexId():r.mainIndex.getIndexId();r.renderState=pt(pt({},r.renderState),{},$r({},i,pt(pt({},r.renderState[i]),t)))}function wv(e,t){return Ev(e)||Pv(e,t)||Ov(e,t)||Sv()}function Sv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ov(e,t){if(e){if(typeof e=="string")return Eu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Eu(e,t)}}function Eu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:{},n=r.descendantName,i=r.modifierName,a=n?"-".concat(n):"",o=i?"--".concat(i):"";return"".concat(jv,"-").concat(t).concat(a).concat(o)}},_v=xn("Highlight");function Tv(e){var t=e.attribute,r=e.highlightedTagName,n=r===void 0?"mark":r,i=e.hit,a=e.cssClasses,o=a===void 0?{}:a;process.env.NODE_ENV==="development"&&ge(!1,"`instantsearch.highlight` function has been deprecated. It is still supported in 4.x releases, but not further. It is replaced by the `Highlight` component.\n\nFor more information, visit https://www.algolia.com/doc/guides/building-search-ui/upgrade-guides/js/?client=html+tagged+templates#upgrade-templates");var s=wr(i._highlightResult,t);process.env.NODE_ENV==="development"&&ge(s,'Could not enable highlight for "'.concat(t,`", will display an empty string. +`)}}function Gh(e){return typeof e=="string"?e.replace(/^\\-/,"-"):e}function Xh(e){return typeof e=="number"&&e<0||typeof e=="string"?String(e).replace(/^-/,"\\-"):e}function br(e,t){for(var r,n=0;n4&&arguments[4]!==void 0?arguments[4]:[],a={type:t,attribute:r,name:n,escapedValue:Xh(n)},o=br(i,function(d){return d.name===r}),s;if(t==="hierarchical"){for(var c=e.getHierarchicalFacetByName(r),u=n.split(c.separator),l=function(p){return function(v){return p[v]}},f=function(p){o=o&&o.data&&br(Object.keys(o.data).map(l(o.data)),function(v){return v.name===u[p]})},h=0;o!==void 0&&h2&&arguments[2]!==void 0?arguments[2]:!1,n=[],i=t.facetsRefinements,a=i===void 0?{}:i,o=t.facetsExcludes,s=o===void 0?{}:o,c=t.disjunctiveFacetsRefinements,u=c===void 0?{}:c,l=t.hierarchicalFacetsRefinements,f=l===void 0?{}:l,h=t.numericRefinements,d=h===void 0?{}:h,p=t.tagRefinements,v=p===void 0?[]:p;return Object.keys(a).forEach(function(g){var P=a[g];P.forEach(function(y){n.push(Vi(t,"facet",g,y,e.facets))})}),Object.keys(s).forEach(function(g){var P=s[g];P.forEach(function(y){n.push({type:"exclude",attribute:g,name:y,exclude:!0})})}),Object.keys(u).forEach(function(g){var P=u[g];P.forEach(function(y){n.push(Vi(t,"disjunctive",g,Gh(y),e.disjunctiveFacets))})}),Object.keys(f).forEach(function(g){var P=f[g];P.forEach(function(y){n.push(Vi(t,"hierarchical",g,y,e.hierarchicalFacets))})}),Object.keys(d).forEach(function(g){var P=d[g];Object.keys(P).forEach(function(y){var b=y,S=P[b],m=Array.isArray(S)?S:[S];m.forEach(function(E){n.push({type:"numeric",attribute:g,name:"".concat(E),numericValue:E,operator:b})})})}),v.forEach(function(g){n.push({type:"tag",attribute:"_tags",name:g})}),r&&t.query&&t.query.trim()&&n.push({attribute:"query",type:"query",name:t.query,query:t.query}),n}function Sr(e){"@babel/helpers - typeof";return Sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sr(e)}function qs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vs(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gp(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var yp=function(t,r){r.facets,r.disjunctiveFacets,r.facetsRefinements,r.facetsExcludes,r.disjunctiveFacetsRefinements,r.numericRefinements,r.tagRefinements,r.hierarchicalFacets,r.hierarchicalFacetsRefinements,r.ruleContexts;var n=mp(r,dp);return t.setQueryParameters(n)},bp=function(t,r){return r.facets.reduce(function(n,i){return n.addFacet(i)},t)},wp=function(t,r){return r.disjunctiveFacets.reduce(function(n,i){return n.addDisjunctiveFacet(i)},t)},Sp=function(t,r){return t.setQueryParameters({hierarchicalFacets:r.hierarchicalFacets.reduce(function(n,i){var a=Zh(n,function(s){return s.name===i.name});if(a===-1)return n.concat(i);var o=n.slice();return o.splice(a,1,i),o},t.hierarchicalFacets)})},Op=function(t,r){return r.tagRefinements.reduce(function(n,i){return n.addTagRefinement(i)},t)},Pp=function(t,r){return t.setQueryParameters({facetsRefinements:ht(ht({},t.facetsRefinements),r.facetsRefinements)})},xp=function(t,r){return t.setQueryParameters({facetsExcludes:ht(ht({},t.facetsExcludes),r.facetsExcludes)})},Ep=function(t,r){return t.setQueryParameters({disjunctiveFacetsRefinements:ht(ht({},t.disjunctiveFacetsRefinements),r.disjunctiveFacetsRefinements)})},Rp=function(t,r){return t.setQueryParameters({numericRefinements:ht(ht({},t.numericRefinements),r.numericRefinements)})},_p=function(t,r){return t.setQueryParameters({hierarchicalFacetsRefinements:ht(ht({},t.hierarchicalFacetsRefinements),r.hierarchicalFacetsRefinements)})},jp=function(t,r){var n=fp([].concat(t.ruleContexts).concat(r.ruleContexts).filter(Boolean));return n.length>0?t.setQueryParameters({ruleContexts:n}):t},Sn=function(){for(var t=arguments.length,r=new Array(t),n=0;n1&&arguments[1]!==void 0?arguments[1]:{fallback:function(){}},r=t.fallback;return typeof window>"u"?r():e({window})}function Rr(e){"@babel/helpers - typeof";return Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rr(e)}function eu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qe(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:Ue,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue;return function(n){if(!n||!Is(n.searchParameters))throw new Error(Np("The `searchParameters` option expects an object."));var i={};function a(o){return function(s){var c=ru(o.state,n),u=Sn(c,new ut.SearchParameters(s));n.searchParameters=s,o.setState(u).search()}}return{$$type:"ais.configure",init:function(s){var c=s.instantSearchInstance;t(qe(qe({},this.getWidgetRenderState(s)),{},{instantSearchInstance:c}),!0)},render:function(s){var c=s.instantSearchInstance;t(qe(qe({},this.getWidgetRenderState(s)),{},{instantSearchInstance:c}),!1)},dispose:function(s){var c=s.state;return r(),ru(c,n)},getRenderState:function(s,c){var u,l=this.getWidgetRenderState(c);return qe(qe({},s),{},{configure:qe(qe({},l),{},{widgetParams:qe(qe({},l.widgetParams),{},{searchParameters:Sn(new ut.SearchParameters((u=s.configure)===null||u===void 0?void 0:u.widgetParams.searchParameters),new ut.SearchParameters(l.widgetParams.searchParameters)).getQueryParams()})})})},getWidgetRenderState:function(s){var c=s.helper;return i.refine||(i.refine=a(c)),{refine:i.refine,widgetParams:n}},getWidgetSearchParameters:function(s,c){var u=c.uiState;return Sn(s,new ut.SearchParameters(qe(qe({},u.configure),n.searchParameters)))},getWidgetUiState:function(s){return qe(qe({},s),{},{configure:qe(qe({},s.configure),n.searchParameters)})}}}};const Dp=kp;function Qi(e){"@babel/helpers - typeof";return Qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qi(e)}var nu=Object.prototype.hasOwnProperty;function _r(e,t,r){if(r!=null&&r(e,t))return!0;var n,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((i=e.length)===t.length)for(;i--&&_r(e[i],t[i],r););return i===-1}if(!n||Qi(e)==="object"){i=0;for(n in e)if(nu.call(e,n)&&++i&&!nu.call(t,n)||!(n in t)||!_r(e[n],t[n],r))return!1;return Object.keys(t).length===i}}return e!==e&&t!==t}function iu(e){var t,r,n;return new ut.SearchResults(e,[{query:(t=e.query)!==null&&t!==void 0?t:"",page:(r=e.page)!==null&&r!==void 0?r:0,hitsPerPage:(n=e.hitsPerPage)!==null&&n!==void 0?n:20,hits:[],nbHits:0,nbPages:0,params:"",exhaustiveNbHits:!0,exhaustiveFacetsCount:!0,processingTimeMS:0,index:e.index}],{__isArtificial:!0})}function jr(e){"@babel/helpers - typeof";return jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jr(e)}function au(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ou(e){for(var t=1;t component must be used within ."),e}var Ki=R.createContext(null);process.env.NODE_ENV==="development"&&(Ki.displayName="InstantSearch");function uu(){var e=R.useContext(Ki);return su(e!==null,"Hooks must be used inside the component.\n\nThey are not compatible with the `react-instantsearch-core` and `react-instantsearch-dom` packages, so make sure to use the component from `react-instantsearch-hooks`."),e}var cu=R.createContext(null);process.env.NODE_ENV==="development"&&(cu.displayName="InstantSearchServer");function lu(){return R.useContext(cu)}function Bp(e,t){return Qp(e)||zp(e,t)||Vp(e,t)||qp()}function qp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vp(e,t){if(e){if(typeof e=="string")return fu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fu(e,t)}}function fu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ov(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Wt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=lu(),i=uu(),a=Up(),o=du(t),s=du(r),c=R.useRef(!0),u=R.useRef(null),l=R.useMemo(function(){var v=e(function(g,P){if(P){c.current=!0;return}if(c.current){g.instantSearchInstance,g.widgetParams;var y=mu(g,Gp);_r(y,u.current,function(b,S){return(b==null?void 0:b.constructor)===Function&&(S==null?void 0:S.constructor)===Function})||(p(y),u.current=y)}},function(){c.current=!1});return vu(vu({},v(o)),s)},[e,o,s]),f=R.useState(function(){if(l.getWidgetRenderState){var v,g=a.getHelper(),P=a.getWidgetUiState({})[a.getIndexId()];g.state=((v=l.getWidgetSearchParameters)===null||v===void 0?void 0:v.call(l,g.state,{uiState:P}))||g.state;var y=Wp(a),b=y.results,S=y.scopedResults,m=l.getWidgetRenderState({helper:g,parent:a,instantSearchInstance:i,results:b,scopedResults:S,state:g.state,renderState:i.renderState,templatesConfig:i.templatesConfig,createURL:a.createURL,searchMetadata:{isSearchStalled:i.status==="stalled"},status:i.status,error:i.error});m.widgetParams;var E=mu(m,Xp);return E}return{}}),h=Zp(f,2),d=h[0],p=h[1];return Kp({widget:l,parentIndex:a,props:o,shouldSsr:!!n}),d}function sv(e,t){return Wt(Dp,{searchParameters:e},t)}function uv(e){return sv(e,{$$widgetType:"ais.configure"}),null}var gu={current:{}};function yu(e,t){if(process.env.NODE_ENV==="development"&&!e){var r=t.trim(),n=gu.current[r];if(!n){gu.current[r]=!0;var i="[InstantSearch] ".concat(r);console.warn(i);try{throw new Error(i)}catch{}}}}function Ar(e){"@babel/helpers - typeof";return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ar(e)}var cv=["initialSearchParameters"];function bu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pt(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gv(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Cr=St({name:"index-widget"});function Su(e,t){var r=t.state,n=t.isPageReset,i=t._uiState;r!==e.state&&(e.state=r,e.emit("change",{state:e.state,results:e.lastResults,isPageReset:n,_uiState:i}))}function Pn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return e.reduce(function(n,i){return wt(i)||!i.getWidgetUiState&&!i.getWidgetState?n:i.getWidgetUiState?i.getWidgetUiState(n,t):i.getWidgetState(n,t)},r)}function xn(e,t){var r=t.initialSearchParameters,n=mv(t,cv);return e.filter(function(i){return!wt(i)}).reduce(function(i,a){return a.getWidgetSearchParameters?a.getWidgetSearchParameters(i,n):i},r)}function Ou(e){var t=e.filter(wt);t.length!==0&&t.forEach(function(r){var n=r.getHelper();Su(n,{state:n.state.resetPage(),isPageReset:!0}),Ou(r.getWidgets())})}function Pu(e){var t=e.filter(wt);return t.reduce(function(r,n){return r.concat.apply(r,[{indexId:n.getIndexId(),results:n.getResults(),helper:n.getHelper()}].concat(wu(Pu(n.getWidgets()))))},[])}var yv=function(t){if(t===void 0||t.indexName===void 0)throw new Error(Cr("The `indexName` option is required."));var r=t.indexName,n=t.indexId,i=n===void 0?r:n,a=[],o={},s=null,c=null,u=null,l=null,f=null;return{$$type:"ais.index",$$widgetType:"ais.index",getIndexName:function(){return r},getIndexId:function(){return i},getHelper:function(){return u},getResults:function(){var d;return(d=l)!==null&&d!==void 0&&d.lastResults?(l.lastResults._state=u.state,l.lastResults):null},getPreviousState:function(){return f},getScopedResults:function(){var d=this.getParent(),p=d?d.getWidgets():[this];return Pu(p)},getParent:function(){return c},createURL:function(d){return s._createURL($r({},i,Pn(a,{searchParameters:d,helper:u})))},getWidgets:function(){return a},addWidgets:function(d){var p=this;if(!Array.isArray(d))throw new Error(Cr("The `addWidgets` method expects an array of widgets."));if(d.some(function(v){return typeof v.init!="function"&&typeof v.render!="function"}))throw new Error(Cr("The widget definition expects a `render` and/or an `init` method."));return a=a.concat(d),s&&d.length&&(Su(u,{state:xn(a,{uiState:o,initialSearchParameters:u.state}),_uiState:o}),d.forEach(function(v){if(v.getRenderState){var g=v.getRenderState(s.renderState[p.getIndexId()]||{},xr(s,p,s._initialUiState));Xi({renderState:g,instantSearchInstance:s,parent:p})}}),d.forEach(function(v){v.init&&v.init(xr(s,p,s._initialUiState))}),s.scheduleSearch()),this},removeWidgets:function(d){var p=this;if(!Array.isArray(d))throw new Error(Cr("The `removeWidgets` method expects an array of widgets."));if(d.some(function(g){return typeof g.dispose!="function"}))throw new Error(Cr("The widget definition expects a `dispose` method."));if(a=a.filter(function(g){return d.indexOf(g)===-1}),s&&d.length){var v=d.reduce(function(g,P){var y=P.dispose({helper:u,state:g,parent:p});return y||g},u.state);o=Pn(a,{searchParameters:v,helper:u}),u.setState(xn(a,{uiState:o,initialSearchParameters:v})),a.length&&s.scheduleSearch()}return this},init:function(d){var p=this,v,g=d.instantSearchInstance,P=d.parent,y=d.uiState;if(u===null){s=g,c=P,o=y[i]||{};var b=g.mainHelper,S=xn(a,{uiState:o,initialSearchParameters:new ut.SearchParameters({index:r})});u=ut({},S.index,S),u.search=function(){return g.onStateChange?(g.onStateChange({uiState:g.mainIndex.getWidgetUiState({}),setUiState:function(M){return g.setUiState(M,!1)}}),b):b.search()},u.searchWithoutTriggeringOnStateChange=function(){return b.search()},u.searchForFacetValues=function(A,M,w,j){var U=u.state.setQueryParameters(j);return b.searchForFacetValues(A,M,w,U)},l=b.derive(function(){return Sn.apply(void 0,wu(Tp(p)))});var m=(v=g._initialResults)===null||v===void 0?void 0:v[this.getIndexId()];if(m){var E=new ut.SearchResults(new ut.SearchParameters(m.state),m.results);l.lastResults=E,u.lastResults=E}u.on("change",function(A){var M=A.isPageReset;M&&Ou(a)}),l.on("search",function(){g.scheduleStalledRender(),process.env.NODE_ENV==="development"&&$s({index:p,indexUiState:o})}),l.on("result",function(A){var M=A.results;g.scheduleRender(),u.lastResults=M,f=M==null?void 0:M._state}),a.forEach(function(A){if(A.getRenderState){var M=A.getRenderState(g.renderState[p.getIndexId()]||{},xr(g,p,y));Xi({renderState:M,instantSearchInstance:g,parent:p})}}),a.forEach(function(A){process.env.NODE_ENV==="development"&&ge(!A.getWidgetState||!!A.getWidgetUiState,"The `getWidgetState` method is renamed `getWidgetUiState` and will no longer exist under that name in InstantSearch.js 5.x. Please use `getWidgetUiState` instead."),A.init&&A.init(xr(g,p,y))}),u.on("change",function(A){var M=A.state,w=A._uiState;o=Pn(a,{searchParameters:M,helper:u},w||{}),g.onStateChange||g.onInternalStateChange()}),m&&g.scheduleRender()}},render:function(d){var p=this,v=d.instantSearchInstance;v.status==="error"&&!v.mainHelper.hasPendingRequests()&&f&&u.setState(f);var g=this.getResults()?a:a.filter(wt);g.forEach(function(P){if(P.getRenderState){var y=P.getRenderState(v.renderState[p.getIndexId()]||{},Xs(v,p));Xi({renderState:y,instantSearchInstance:v,parent:p})}}),g.forEach(function(P){P.render&&P.render(Xs(v,p))})},dispose:function(){var d=this,p,v;a.forEach(function(g){g.dispose&&g.dispose({helper:u,state:u.state,parent:d})}),s=null,c=null,(p=u)===null||p===void 0||p.removeAllListeners(),u=null,(v=l)===null||v===void 0||v.detach(),l=null},getWidgetUiState:function(d){return a.filter(wt).reduce(function(p,v){return v.getWidgetUiState(p)},pt(pt({},d),{},$r({},i,pt(pt({},d[i]),o))))},getWidgetState:function(d){return process.env.NODE_ENV==="development"&&ge(!1,"The `getWidgetState` method is renamed `getWidgetUiState` and will no longer exist under that name in InstantSearch.js 5.x. Please use `getWidgetUiState` instead."),this.getWidgetUiState(d)},getWidgetSearchParameters:function(d,p){var v=p.uiState;return xn(a,{uiState:v,initialSearchParameters:d})},refreshUiState:function(){o=Pn(a,{searchParameters:this.getHelper().state,helper:this.getHelper()},o)},setIndexUiState:function(d){var p=typeof d=="function"?d(o):d;s.setUiState(function(v){return pt(pt({},v),{},$r({},i,p))})}}};const bv=yv;function Xi(e){var t=e.renderState,r=e.instantSearchInstance,n=e.parent,i=n?n.getIndexId():r.mainIndex.getIndexId();r.renderState=pt(pt({},r.renderState),{},$r({},i,pt(pt({},r.renderState[i]),t)))}function wv(e,t){return xv(e)||Pv(e,t)||Ov(e,t)||Sv()}function Sv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ov(e,t){if(e){if(typeof e=="string")return xu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xu(e,t)}}function xu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:{},n=r.descendantName,i=r.modifierName,a=n?"-".concat(n):"",o=i?"--".concat(i):"";return"".concat(_v,"-").concat(t).concat(a).concat(o)}},jv=En("Highlight");function Tv(e){var t=e.attribute,r=e.highlightedTagName,n=r===void 0?"mark":r,i=e.hit,a=e.cssClasses,o=a===void 0?{}:a;process.env.NODE_ENV==="development"&&ge(!1,"`instantsearch.highlight` function has been deprecated. It is still supported in 4.x releases, but not further. It is replaced by the `Highlight` component.\n\nFor more information, visit https://www.algolia.com/doc/guides/building-search-ui/upgrade-guides/js/?client=html+tagged+templates#upgrade-templates");var s=wr(i._highlightResult,t);process.env.NODE_ENV==="development"&&ge(s,'Could not enable highlight for "'.concat(t,`", will display an empty string. Please check whether this attribute exists and is either searchable or specified in \`attributesToHighlight\`. See: https://alg.li/highlighting -`));var c=s||{},u=c.value,l=u===void 0?"":u,f=_v({descendantName:"highlighted"})+(o.highlighted?" ".concat(o.highlighted):"");return l.replace(new RegExp(Ge.highlightPreTag,"g"),"<".concat(n,' class="').concat(f,'">')).replace(new RegExp(Ge.highlightPostTag,"g"),""))}var Av=xn("ReverseHighlight");function $v(e){var t=e.attribute,r=e.highlightedTagName,n=r===void 0?"mark":r,i=e.hit,a=e.cssClasses,o=a===void 0?{}:a;process.env.NODE_ENV==="development"&&ge(!1,"`instantsearch.reverseHighlight` function has been deprecated. It is still supported in 4.x releases, but not further. It is replaced by the `ReverseHighlight` component.\n\nFor more information, visit https://www.algolia.com/doc/guides/building-search-ui/upgrade-guides/js/?client=html+tagged+templates#upgrade-templates");var s=wr(i._highlightResult,t);process.env.NODE_ENV==="development"&&ge(s,'Could not enable reverse highlight for "'.concat(t,`", will display an empty string. +`));var c=s||{},u=c.value,l=u===void 0?"":u,f=jv({descendantName:"highlighted"})+(o.highlighted?" ".concat(o.highlighted):"");return l.replace(new RegExp(Ge.highlightPreTag,"g"),"<".concat(n,' class="').concat(f,'">')).replace(new RegExp(Ge.highlightPostTag,"g"),""))}var Av=En("ReverseHighlight");function $v(e){var t=e.attribute,r=e.highlightedTagName,n=r===void 0?"mark":r,i=e.hit,a=e.cssClasses,o=a===void 0?{}:a;process.env.NODE_ENV==="development"&&ge(!1,"`instantsearch.reverseHighlight` function has been deprecated. It is still supported in 4.x releases, but not further. It is replaced by the `ReverseHighlight` component.\n\nFor more information, visit https://www.algolia.com/doc/guides/building-search-ui/upgrade-guides/js/?client=html+tagged+templates#upgrade-templates");var s=wr(i._highlightResult,t);process.env.NODE_ENV==="development"&&ge(s,'Could not enable reverse highlight for "'.concat(t,`", will display an empty string. Please check whether this attribute exists and is either searchable or specified in \`attributesToHighlight\`. See: https://alg.li/highlighting -`));var c=s||{},u=c.value,l=u===void 0?"":u,f=Av({descendantName:"highlighted"})+(o.highlighted?" ".concat(o.highlighted):""),h=Ms(Js(wn(l)));return h.replace(new RegExp(Ge.highlightPreTag,"g"),"<".concat(n,' class="').concat(f,'">')).replace(new RegExp(Ge.highlightPostTag,"g"),""))}var Cv=xn("Snippet");function Fv(e){var t=e.attribute,r=e.highlightedTagName,n=r===void 0?"mark":r,i=e.hit,a=e.cssClasses,o=a===void 0?{}:a;process.env.NODE_ENV==="development"&&ge(!1,"`instantsearch.snippet` function has been deprecated. It is still supported in 4.x releases, but not further. It is replaced by the `Snippet` component.\n\nFor more information, visit https://www.algolia.com/doc/guides/building-search-ui/upgrade-guides/js/?client=html+tagged+templates#upgrade-templates");var s=wr(i._snippetResult,t);process.env.NODE_ENV==="development"&&ge(s,'Could not enable snippet for "'.concat(t,`", will display an empty string. +`));var c=s||{},u=c.value,l=u===void 0?"":u,f=Av({descendantName:"highlighted"})+(o.highlighted?" ".concat(o.highlighted):""),h=Ms(Js(wn(l)));return h.replace(new RegExp(Ge.highlightPreTag,"g"),"<".concat(n,' class="').concat(f,'">')).replace(new RegExp(Ge.highlightPostTag,"g"),""))}var Cv=En("Snippet");function Fv(e){var t=e.attribute,r=e.highlightedTagName,n=r===void 0?"mark":r,i=e.hit,a=e.cssClasses,o=a===void 0?{}:a;process.env.NODE_ENV==="development"&&ge(!1,"`instantsearch.snippet` function has been deprecated. It is still supported in 4.x releases, but not further. It is replaced by the `Snippet` component.\n\nFor more information, visit https://www.algolia.com/doc/guides/building-search-ui/upgrade-guides/js/?client=html+tagged+templates#upgrade-templates");var s=wr(i._snippetResult,t);process.env.NODE_ENV==="development"&&ge(s,'Could not enable snippet for "'.concat(t,`", will display an empty string. Please check whether this attribute exists and is specified in \`attributesToSnippet\`. See: https://alg.li/highlighting -`));var c=s||{},u=c.value,l=u===void 0?"":u,f=Cv({descendantName:"highlighted"})+(o.highlighted?" ".concat(o.highlighted):"");return l.replace(new RegExp(Ge.highlightPreTag,"g"),"<".concat(n,' class="').concat(f,'">')).replace(new RegExp(Ge.highlightPostTag,"g"),""))}var Iv=xn("ReverseSnippet");function Nv(e){var t=e.attribute,r=e.highlightedTagName,n=r===void 0?"mark":r,i=e.hit,a=e.cssClasses,o=a===void 0?{}:a;process.env.NODE_ENV==="development"&&ge(!1,"`instantsearch.reverseSnippet` function has been deprecated. It is still supported in 4.x releases, but not further. It is replaced by the `ReverseSnippet` component.\n\nFor more information, visit https://www.algolia.com/doc/guides/building-search-ui/upgrade-guides/js/?client=html+tagged+templates#upgrade-templates");var s=wr(i._snippetResult,t);process.env.NODE_ENV==="development"&&ge(s,'Could not enable reverse snippet for "'.concat(t,`", will display an empty string. +`));var c=s||{},u=c.value,l=u===void 0?"":u,f=Cv({descendantName:"highlighted"})+(o.highlighted?" ".concat(o.highlighted):"");return l.replace(new RegExp(Ge.highlightPreTag,"g"),"<".concat(n,' class="').concat(f,'">')).replace(new RegExp(Ge.highlightPostTag,"g"),""))}var Iv=En("ReverseSnippet");function Nv(e){var t=e.attribute,r=e.highlightedTagName,n=r===void 0?"mark":r,i=e.hit,a=e.cssClasses,o=a===void 0?{}:a;process.env.NODE_ENV==="development"&&ge(!1,"`instantsearch.reverseSnippet` function has been deprecated. It is still supported in 4.x releases, but not further. It is replaced by the `ReverseSnippet` component.\n\nFor more information, visit https://www.algolia.com/doc/guides/building-search-ui/upgrade-guides/js/?client=html+tagged+templates#upgrade-templates");var s=wr(i._snippetResult,t);process.env.NODE_ENV==="development"&&ge(s,'Could not enable reverse snippet for "'.concat(t,`", will display an empty string. Please check whether this attribute exists and is specified in \`attributesToSnippet\`. See: https://alg.li/highlighting -`));var c=s||{},u=c.value,l=u===void 0?"":u,f=Iv({descendantName:"highlighted"})+(o.highlighted?" ".concat(o.highlighted):""),h=Ms(Js(wn(l)));return h.replace(new RegExp(Ge.highlightPreTag,"g"),"<".concat(n,' class="').concat(f,'">')).replace(new RegExp(Ge.highlightPostTag,"g"),""))}function Zi(e){"@babel/helpers - typeof";return Zi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zi(e)}function kv(e){var t=e.method,r=e.payload;if(Zi(r)!=="object")throw new Error("The insights helper expects the payload to be an object.");var n;try{n=Hs(r)}catch{throw new Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(t,'" data-insights-payload="').concat(n,'"')}function Dv(e,t){return process.env.NODE_ENV==="development"&&ge(!1,"`insights` function has been deprecated. It is still supported in 4.x releases, but not further. It is replaced by the `insights` middleware.\n\nFor more information, visit https://www.algolia.com/doc/guides/getting-insights-and-analytics/search-analytics/click-through-and-conversions/how-to/send-click-and-conversion-events-with-instantsearch/js/"),kv({method:e,payload:t})}function Ji(e){"@babel/helpers - typeof";return Ji=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ji(e)}var Mv="_ALGOLIA";function Lv(e){if(!((typeof document>"u"?"undefined":Ji(document))!=="object"||typeof document.cookie!="string"))for(var t="".concat(e,"="),r=document.cookie.split(";"),n=0;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:{},t=e.insightsClient,r=e.insightsInitParams,n=e.onEvent,i=e.$$internal,a=i===void 0?!1:i,o=t;!t&&t!==null&&jt(function(c){var u=c.window,l=u.AlgoliaAnalyticsObject||"aa";typeof l=="string"&&(o=u[l]),o||(u.AlgoliaAnalyticsObject=l,u[l]||(u[l]=function(){u[l].queue||(u[l].queue=[]);for(var f=arguments.length,h=new Array(f),d=0;d')).replace(new RegExp(Ge.highlightPostTag,"g"),""))}function Zi(e){"@babel/helpers - typeof";return Zi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zi(e)}function kv(e){var t=e.method,r=e.payload;if(Zi(r)!=="object")throw new Error("The insights helper expects the payload to be an object.");var n;try{n=Hs(r)}catch{throw new Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(t,'" data-insights-payload="').concat(n,'"')}function Dv(e,t){return process.env.NODE_ENV==="development"&&ge(!1,"`insights` function has been deprecated. It is still supported in 4.x releases, but not further. It is replaced by the `insights` middleware.\n\nFor more information, visit https://www.algolia.com/doc/guides/getting-insights-and-analytics/search-analytics/click-through-and-conversions/how-to/send-click-and-conversion-events-with-instantsearch/js/"),kv({method:e,payload:t})}function Ji(e){"@babel/helpers - typeof";return Ji=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ji(e)}var Mv="_ALGOLIA";function Lv(e){if(!((typeof document>"u"?"undefined":Ji(document))!=="object"||typeof document.cookie!="string"))for(var t="".concat(e,"="),r=document.cookie.split(";"),n=0;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:{},t=e.insightsClient,r=e.insightsInitParams,n=e.onEvent,i=e.$$internal,a=i===void 0?!1:i,o=t;!t&&t!==null&&_t(function(c){var u=c.window,l=u.AlgoliaAnalyticsObject||"aa";typeof l=="string"&&(o=u[l]),o||(u.AlgoliaAnalyticsObject=l,u[l]||(u[l]=function(){u[l].queue||(u[l].queue=[]);for(var f=arguments.length,h=new Array(f),d=0;d=3,o=n===2&&i>=6,s=n===1&&i>=10;return a||o||s}function Au(e,t,r){var n=Er(t,t.mainIndex,t._initialUiState);e.forEach(function(i){var a={};if(i.getWidgetRenderState){var o=i.getWidgetRenderState(n);o&&o.widgetParams&&(a=o.widgetParams)}var s=Object.keys(a).filter(function(c){return a[c]!==void 0});r.widgets.push({type:i.$$type,widgetType:i.$$widgetType,params:s}),i.$$type==="ais.index"&&Au(i.getWidgets(),t,r)})}function Jv(){return jt(function(e){var t,r,n=e.window;return((t=n.navigator)===null||t===void 0||(r=t.userAgent)===null||r===void 0?void 0:r.indexOf("Algolia Crawler"))>-1},{fallback:function(){return!1}})}function em(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.$$internal,r=t===void 0?!1:t;return function(n){var i=n.instantSearchInstance,a={widgets:[]},o=document.createElement("meta"),s=document.querySelector("head");return o.name="instantsearch:widgets",{$$type:"ais.metadata",$$internal:r,onStateChange:function(){},subscribe:function(){setTimeout(function(){var u=i.client;a.ua=u.transporter&&u.transporter.userAgent?u.transporter.userAgent.value:u._ua,Au(i.mainIndex.getWidgets(),i,a),i.middleware.forEach(function(l){return a.widgets.push({middleware:!0,type:l.instance.$$type,internal:l.instance.$$internal})}),o.content=JSON.stringify(a),s.appendChild(o)},0)},started:function(){},unsubscribe:function(){o.remove()}}}}var tm=String.prototype.replace,rm=/%20/g,ta={RFC1738:"RFC1738",RFC3986:"RFC3986"},ra={default:ta.RFC3986,formatters:{RFC1738:function(e){return tm.call(e,rm,"+")},RFC3986:function(e){return String(e)}},RFC1738:ta.RFC1738,RFC3986:ta.RFC3986},nm=ra,na=Object.prototype.hasOwnProperty,Bt=Array.isArray,vt=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),im=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(Bt(n)){for(var i=[],a=0;a=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||a===nm.RFC1738&&(u===40||u===41)){s+=o.charAt(c);continue}if(u<128){s=s+vt[u];continue}if(u<2048){s=s+(vt[192|u>>6]+vt[128|u&63]);continue}if(u<55296||u>=57344){s=s+(vt[224|u>>12]+vt[128|u>>6&63]+vt[128|u&63]);continue}c+=1,u=65536+((u&1023)<<10|o.charCodeAt(c)&1023),s+=vt[240|u>>18]+vt[128|u>>12&63]+vt[128|u>>6&63]+vt[128|u&63]}return s},cm=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i"u")return S;var m;if(n==="comma"&&qt(v))m=[{value:v.length>0?v.join(",")||null:void 0}];else if(qt(s))m=s;else{var x=Object.keys(v);m=c?x.sort(c):x}for(var T=0;T"u"?Qe.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Qe.charsetSentinel,delimiter:typeof t.delimiter>"u"?Qe.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Qe.encode,encoder:typeof t.encoder=="function"?t.encoder:Qe.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Qe.encodeValuesOnly,filter:a,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Qe.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Qe.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Qe.strictNullHandling}},Sm=function(e,t){var r=e,n=wm(t),i,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):qt(n.filter)&&(a=n.filter,i=a);var o=[];if(typeof r!="object"||r===null)return"";var s;t&&t.arrayFormat in Fu?s=t.arrayFormat:t&&"indices"in t?s=t.indices?"indices":"repeat":s="indices";var c=Fu[s];i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var u=0;u0?h+f:""},tr=Cu,aa=Object.prototype.hasOwnProperty,Om=Array.isArray,Ye={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:tr.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Pm=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},ku=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Em="utf8=%26%2310003%3B",xm="utf8=%E2%9C%93",Rm=function(t,r){var n={},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=r.parameterLimit===1/0?void 0:r.parameterLimit,o=i.split(r.delimiter,a),s=-1,c,u=r.charset;if(r.charsetSentinel)for(c=0;c-1&&(p=Om(p)?[p]:p),aa.call(n,d)?n[d]=tr.combine(n[d],p):n[d]=p}return n},jm=function(e,t,r,n){for(var i=n?t:ku(t,r),a=e.length-1;a>=0;--a){var o,s=e[a];if(s==="[]"&&r.parseArrays)o=[].concat(i);else{o=r.plainObjects?Object.create(null):{};var c=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,u=parseInt(c,10);!r.parseArrays&&c===""?o={0:i}:!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(o=[],o[u]=i):c!=="__proto__"&&(o[c]=i)}i=o}return i},_m=function(t,r,n,i){if(t){var a=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(a),u=c?a.slice(0,c.index):a,l=[];if(u){if(!n.plainObjects&&aa.call(Object.prototype,u)&&!n.allowPrototypes)return;l.push(u)}for(var f=0;n.depth>0&&(c=s.exec(a))!==null&&f"u"?Ye.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Ye.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Ye.allowPrototypes,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Ye.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ye.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Ye.comma,decoder:typeof t.decoder=="function"?t.decoder:Ye.decoder,delimiter:typeof t.delimiter=="string"||tr.isRegExp(t.delimiter)?t.delimiter:Ye.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Ye.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Ye.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Ye.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Ye.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ye.strictNullHandling}},Am=function(e,t){var r=Tm(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?Rm(e,r):e,i=r.plainObjects?Object.create(null):{},a=Object.keys(n),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},t=e.createURL,r=t===void 0?function(d){var p=d.qsModule,v=d.routeState,g=d.location,P=g.protocol,y=g.hostname,b=g.port,S=b===void 0?"":b,m=g.pathname,x=g.hash,T=p.stringify(v),M=S===""?"":":".concat(S);return T?"".concat(P,"//").concat(y).concat(M).concat(m,"?").concat(T).concat(x):"".concat(P,"//").concat(y).concat(M).concat(m).concat(x)}:t,n=e.parseURL,i=n===void 0?function(d){var p=d.qsModule,v=d.location;return p.parse(v.search.slice(1),{arrayLimit:99})}:n,a=e.writeDelay,o=a===void 0?400:a,s=e.windowTitle,c=e.getLocation,u=c===void 0?function(){return jt(function(d){var p=d.window;return p.location},{fallback:function(){throw new Error("You need to provide `getLocation` to the `history` router in environments where `window` does not exist.")}})}:c,l=e.start,f=e.dispose,h=e.push;return new Mm({createURL:r,parseURL:i,writeDelay:o,windowTitle:s,getLocation:u,start:l,dispose:f,push:h})}function kr(e){"@babel/helpers - typeof";return kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kr(e)}var Hm=["configure"];function Wu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jn(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qm(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Uu(e){e.configure;var t=Bm(e,Hm);return t}function Vm(){return{$$type:"ais.simple",stateToRoute:function(t){return Object.keys(t).reduce(function(r,n){return jn(jn({},r),{},oa({},n,Uu(t[n])))},{})},routeToState:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(t).reduce(function(r,n){return jn(jn({},r),{},oa({},n,Uu(t[n])))},{})}}}function Dr(e){"@babel/helpers - typeof";return Dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dr(e)}function Bu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _n(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},r=t.router,n=r===void 0?Lm():r,i=t.stateMapping,a=i===void 0?Vm():i,o=t.$$internal,s=o===void 0?!1:o;return function(c){var u=c.instantSearchInstance;function l(d){var p=Object.keys(d).reduce(function(g,P){return _n(_n({},g),{},qu({},P,d[P]))},u.mainIndex.getWidgetUiState({})),v=a.stateToRoute(p);return n.createURL(v)}u._createURL=l;var f=void 0,h=u._initialUiState;return{$$type:"ais.router({router:".concat(n.$$type||"__unknown__",", stateMapping:").concat(a.$$type||"__unknown__","})"),$$internal:s,onStateChange:function(p){var v=p.uiState,g=a.stateToRoute(v);(f===void 0||!zi(f,g))&&(n.write(g),f=g)},subscribe:function(){u._initialUiState=_n(_n({},h),a.routeToState(n.read())),n.onUpdate(function(p){u.setUiState(a.routeToState(p))})},started:function(){var p;(p=n.start)===null||p===void 0||p.call(n)},unsubscribe:function(){n.dispose()}}}};function Km(e,t){return e.toLocaleString(t)}function Mr(e){"@babel/helpers - typeof";return Mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mr(e)}function Vu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ot(e){for(var t=1;t=3,o=n===2&&i>=6,s=n===1&&i>=10;return a||o||s}function Au(e,t,r){var n=xr(t,t.mainIndex,t._initialUiState);e.forEach(function(i){var a={};if(i.getWidgetRenderState){var o=i.getWidgetRenderState(n);o&&o.widgetParams&&(a=o.widgetParams)}var s=Object.keys(a).filter(function(c){return a[c]!==void 0});r.widgets.push({type:i.$$type,widgetType:i.$$widgetType,params:s}),i.$$type==="ais.index"&&Au(i.getWidgets(),t,r)})}function Jv(){return _t(function(e){var t,r,n=e.window;return((t=n.navigator)===null||t===void 0||(r=t.userAgent)===null||r===void 0?void 0:r.indexOf("Algolia Crawler"))>-1},{fallback:function(){return!1}})}function em(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.$$internal,r=t===void 0?!1:t;return function(n){var i=n.instantSearchInstance,a={widgets:[]},o=document.createElement("meta"),s=document.querySelector("head");return o.name="instantsearch:widgets",{$$type:"ais.metadata",$$internal:r,onStateChange:function(){},subscribe:function(){setTimeout(function(){var u=i.client;a.ua=u.transporter&&u.transporter.userAgent?u.transporter.userAgent.value:u._ua,Au(i.mainIndex.getWidgets(),i,a),i.middleware.forEach(function(l){return a.widgets.push({middleware:!0,type:l.instance.$$type,internal:l.instance.$$internal})}),o.content=JSON.stringify(a),s.appendChild(o)},0)},started:function(){},unsubscribe:function(){o.remove()}}}}var tm=String.prototype.replace,rm=/%20/g,ta={RFC1738:"RFC1738",RFC3986:"RFC3986"},ra={default:ta.RFC3986,formatters:{RFC1738:function(e){return tm.call(e,rm,"+")},RFC3986:function(e){return String(e)}},RFC1738:ta.RFC1738,RFC3986:ta.RFC3986},nm=ra,na=Object.prototype.hasOwnProperty,Bt=Array.isArray,vt=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),im=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(Bt(n)){for(var i=[],a=0;a=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||a===nm.RFC1738&&(u===40||u===41)){s+=o.charAt(c);continue}if(u<128){s=s+vt[u];continue}if(u<2048){s=s+(vt[192|u>>6]+vt[128|u&63]);continue}if(u<55296||u>=57344){s=s+(vt[224|u>>12]+vt[128|u>>6&63]+vt[128|u&63]);continue}c+=1,u=65536+((u&1023)<<10|o.charCodeAt(c)&1023),s+=vt[240|u>>18]+vt[128|u>>12&63]+vt[128|u>>6&63]+vt[128|u&63]}return s},cm=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i"u")return S;var m;if(n==="comma"&&qt(v))m=[{value:v.length>0?v.join(",")||null:void 0}];else if(qt(s))m=s;else{var E=Object.keys(v);m=c?E.sort(c):E}for(var A=0;A"u"?Qe.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Qe.charsetSentinel,delimiter:typeof t.delimiter>"u"?Qe.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Qe.encode,encoder:typeof t.encoder=="function"?t.encoder:Qe.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Qe.encodeValuesOnly,filter:a,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Qe.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Qe.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Qe.strictNullHandling}},Sm=function(e,t){var r=e,n=wm(t),i,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):qt(n.filter)&&(a=n.filter,i=a);var o=[];if(typeof r!="object"||r===null)return"";var s;t&&t.arrayFormat in Fu?s=t.arrayFormat:t&&"indices"in t?s=t.indices?"indices":"repeat":s="indices";var c=Fu[s];i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var u=0;u0?h+f:""},tr=Cu,aa=Object.prototype.hasOwnProperty,Om=Array.isArray,Ye={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:tr.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Pm=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},ku=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},xm="utf8=%26%2310003%3B",Em="utf8=%E2%9C%93",Rm=function(t,r){var n={},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=r.parameterLimit===1/0?void 0:r.parameterLimit,o=i.split(r.delimiter,a),s=-1,c,u=r.charset;if(r.charsetSentinel)for(c=0;c-1&&(p=Om(p)?[p]:p),aa.call(n,d)?n[d]=tr.combine(n[d],p):n[d]=p}return n},_m=function(e,t,r,n){for(var i=n?t:ku(t,r),a=e.length-1;a>=0;--a){var o,s=e[a];if(s==="[]"&&r.parseArrays)o=[].concat(i);else{o=r.plainObjects?Object.create(null):{};var c=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,u=parseInt(c,10);!r.parseArrays&&c===""?o={0:i}:!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(o=[],o[u]=i):c!=="__proto__"&&(o[c]=i)}i=o}return i},jm=function(t,r,n,i){if(t){var a=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(a),u=c?a.slice(0,c.index):a,l=[];if(u){if(!n.plainObjects&&aa.call(Object.prototype,u)&&!n.allowPrototypes)return;l.push(u)}for(var f=0;n.depth>0&&(c=s.exec(a))!==null&&f"u"?Ye.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Ye.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Ye.allowPrototypes,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Ye.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ye.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Ye.comma,decoder:typeof t.decoder=="function"?t.decoder:Ye.decoder,delimiter:typeof t.delimiter=="string"||tr.isRegExp(t.delimiter)?t.delimiter:Ye.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Ye.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Ye.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Ye.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Ye.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ye.strictNullHandling}},Am=function(e,t){var r=Tm(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?Rm(e,r):e,i=r.plainObjects?Object.create(null):{},a=Object.keys(n),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},t=e.createURL,r=t===void 0?function(d){var p=d.qsModule,v=d.routeState,g=d.location,P=g.protocol,y=g.hostname,b=g.port,S=b===void 0?"":b,m=g.pathname,E=g.hash,A=p.stringify(v),M=S===""?"":":".concat(S);return A?"".concat(P,"//").concat(y).concat(M).concat(m,"?").concat(A).concat(E):"".concat(P,"//").concat(y).concat(M).concat(m).concat(E)}:t,n=e.parseURL,i=n===void 0?function(d){var p=d.qsModule,v=d.location;return p.parse(v.search.slice(1),{arrayLimit:99})}:n,a=e.writeDelay,o=a===void 0?400:a,s=e.windowTitle,c=e.getLocation,u=c===void 0?function(){return _t(function(d){var p=d.window;return p.location},{fallback:function(){throw new Error("You need to provide `getLocation` to the `history` router in environments where `window` does not exist.")}})}:c,l=e.start,f=e.dispose,h=e.push;return new Mm({createURL:r,parseURL:i,writeDelay:o,windowTitle:s,getLocation:u,start:l,dispose:f,push:h})}function kr(e){"@babel/helpers - typeof";return kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kr(e)}var Hm=["configure"];function Wu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _n(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qm(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Uu(e){e.configure;var t=Bm(e,Hm);return t}function Vm(){return{$$type:"ais.simple",stateToRoute:function(t){return Object.keys(t).reduce(function(r,n){return _n(_n({},r),{},oa({},n,Uu(t[n])))},{})},routeToState:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(t).reduce(function(r,n){return _n(_n({},r),{},oa({},n,Uu(t[n])))},{})}}}function Dr(e){"@babel/helpers - typeof";return Dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dr(e)}function Bu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jn(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},r=t.router,n=r===void 0?Lm():r,i=t.stateMapping,a=i===void 0?Vm():i,o=t.$$internal,s=o===void 0?!1:o;return function(c){var u=c.instantSearchInstance;function l(d){var p=Object.keys(d).reduce(function(g,P){return jn(jn({},g),{},qu({},P,d[P]))},u.mainIndex.getWidgetUiState({})),v=a.stateToRoute(p);return n.createURL(v)}u._createURL=l;var f=void 0,h=u._initialUiState;return{$$type:"ais.router({router:".concat(n.$$type||"__unknown__",", stateMapping:").concat(a.$$type||"__unknown__","})"),$$internal:s,onStateChange:function(p){var v=p.uiState,g=a.stateToRoute(v);(f===void 0||!zi(f,g))&&(n.write(g),f=g)},subscribe:function(){u._initialUiState=jn(jn({},h),a.routeToState(n.read())),n.onUpdate(function(p){u.setUiState(a.routeToState(p))})},started:function(){var p;(p=n.start)===null||p===void 0||p.call(n)},unsubscribe:function(){n.dispose()}}}};function Km(e,t){return e.toLocaleString(t)}function Mr(e){"@babel/helpers - typeof";return Mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mr(e)}function Vu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ot(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Tn(e){return Tn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Tn(e)}function Ce(e,t,r){return t=Yu(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yu(e){var t=ug(e,"string");return rr(t)==="symbol"?t:String(t)}function ug(e,t){if(rr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(rr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mt=St({name:"instantsearch"});function cg(){return"#"}var lg=function(e){ig(r,e);var t=ag(r);function r(n){var i;rg(this,r),i=t.call(this),Ce(Te(i),"client",void 0),Ce(Te(i),"indexName",void 0),Ce(Te(i),"insightsClient",void 0),Ce(Te(i),"onStateChange",null),Ce(Te(i),"helper",void 0),Ce(Te(i),"mainHelper",void 0),Ce(Te(i),"mainIndex",void 0),Ce(Te(i),"started",void 0),Ce(Te(i),"templatesConfig",void 0),Ce(Te(i),"renderState",{}),Ce(Te(i),"_stalledSearchDelay",void 0),Ce(Te(i),"_searchStalledTimer",void 0),Ce(Te(i),"_initialUiState",void 0),Ce(Te(i),"_initialResults",void 0),Ce(Te(i),"_createURL",void 0),Ce(Te(i),"_searchFunction",void 0),Ce(Te(i),"_mainHelperSearch",void 0),Ce(Te(i),"middleware",[]),Ce(Te(i),"sendEventToInsights",void 0),Ce(Te(i),"status","idle"),Ce(Te(i),"error",void 0),Ce(Te(i),"scheduleSearch",yr(function(){i.started&&i.mainHelper.search()})),Ce(Te(i),"scheduleRender",yr(function(){var w,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;(w=i.mainHelper)!==null&&w!==void 0&&w.hasPendingRequests()||(clearTimeout(i._searchStalledTimer),i._searchStalledTimer=null,_&&(i.status="idle",i.error=void 0)),i.mainIndex.render({instantSearchInstance:Te(i)}),i.emit("render")})),Ce(Te(i),"onInternalStateChange",yr(function(){var w=i.mainIndex.getWidgetUiState({});i.middleware.forEach(function(_){var U=_.instance;U.onStateChange({uiState:w})})})),i.setMaxListeners(100);var a=n.indexName,o=a===void 0?"":a,s=n.numberLocale,c=n.initialUiState,u=c===void 0?{}:c,l=n.routing,f=l===void 0?null:l,h=n.insights,d=h===void 0?!1:h,p=n.searchFunction,v=n.stalledSearchDelay,g=v===void 0?200:v,P=n.searchClient,y=P===void 0?null:P,b=n.insightsClient,S=b===void 0?null:b,m=n.onStateChange,x=m===void 0?null:m;if(y===null)throw new Error(mt("The `searchClient` option is required."));if(typeof y.search!="function")throw new Error("The `searchClient` must implement a `search` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/backend-instantsearch/js/");if(typeof y.addAlgoliaAgent=="function"&&y.addAlgoliaAgent("instantsearch.js (".concat(eg,")")),process.env.NODE_ENV==="development"&&ge(S===null,"`insightsClient` property has been deprecated. It is still supported in 4.x releases, but not further. It is replaced by the `insights` middleware.\n\nFor more information, visit https://www.algolia.com/doc/guides/getting-insights-and-analytics/search-analytics/click-through-and-conversions/how-to/send-click-and-conversion-events-with-instantsearch/js/"),S&&typeof S!="function")throw new Error(mt("The `insightsClient` option should be a function."));if(process.env.NODE_ENV==="development"&&ge(!n.searchParameters,"The `searchParameters` option is deprecated and will not be supported in InstantSearch.js 4.x.\n\nYou can replace it with the `configure` widget:\n\n```\nsearch.addWidgets([\n configure(".concat(JSON.stringify(n.searchParameters,null,2),`) +{ "method": "method-name", "payload": { "eventName": "name of the event" } }`)}}}}const eg="4.56.1";function rr(e){"@babel/helpers - typeof";return rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rr(e)}function zu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tg(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Tn(e){return Tn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Tn(e)}function Fe(e,t,r){return t=Yu(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yu(e){var t=ug(e,"string");return rr(t)==="symbol"?t:String(t)}function ug(e,t){if(rr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(rr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mt=St({name:"instantsearch"});function cg(){return"#"}var lg=function(e){ig(r,e);var t=ag(r);function r(n){var i;rg(this,r),i=t.call(this),Fe(Te(i),"client",void 0),Fe(Te(i),"indexName",void 0),Fe(Te(i),"insightsClient",void 0),Fe(Te(i),"onStateChange",null),Fe(Te(i),"helper",void 0),Fe(Te(i),"mainHelper",void 0),Fe(Te(i),"mainIndex",void 0),Fe(Te(i),"started",void 0),Fe(Te(i),"templatesConfig",void 0),Fe(Te(i),"renderState",{}),Fe(Te(i),"_stalledSearchDelay",void 0),Fe(Te(i),"_searchStalledTimer",void 0),Fe(Te(i),"_initialUiState",void 0),Fe(Te(i),"_initialResults",void 0),Fe(Te(i),"_createURL",void 0),Fe(Te(i),"_searchFunction",void 0),Fe(Te(i),"_mainHelperSearch",void 0),Fe(Te(i),"middleware",[]),Fe(Te(i),"sendEventToInsights",void 0),Fe(Te(i),"status","idle"),Fe(Te(i),"error",void 0),Fe(Te(i),"scheduleSearch",yr(function(){i.started&&i.mainHelper.search()})),Fe(Te(i),"scheduleRender",yr(function(){var w,j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;(w=i.mainHelper)!==null&&w!==void 0&&w.hasPendingRequests()||(clearTimeout(i._searchStalledTimer),i._searchStalledTimer=null,j&&(i.status="idle",i.error=void 0)),i.mainIndex.render({instantSearchInstance:Te(i)}),i.emit("render")})),Fe(Te(i),"onInternalStateChange",yr(function(){var w=i.mainIndex.getWidgetUiState({});i.middleware.forEach(function(j){var U=j.instance;U.onStateChange({uiState:w})})})),i.setMaxListeners(100);var a=n.indexName,o=a===void 0?"":a,s=n.numberLocale,c=n.initialUiState,u=c===void 0?{}:c,l=n.routing,f=l===void 0?null:l,h=n.insights,d=h===void 0?!1:h,p=n.searchFunction,v=n.stalledSearchDelay,g=v===void 0?200:v,P=n.searchClient,y=P===void 0?null:P,b=n.insightsClient,S=b===void 0?null:b,m=n.onStateChange,E=m===void 0?null:m;if(y===null)throw new Error(mt("The `searchClient` option is required."));if(typeof y.search!="function")throw new Error("The `searchClient` must implement a `search` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/backend-instantsearch/js/");if(typeof y.addAlgoliaAgent=="function"&&y.addAlgoliaAgent("instantsearch.js (".concat(eg,")")),process.env.NODE_ENV==="development"&&ge(S===null,"`insightsClient` property has been deprecated. It is still supported in 4.x releases, but not further. It is replaced by the `insights` middleware.\n\nFor more information, visit https://www.algolia.com/doc/guides/getting-insights-and-analytics/search-analytics/click-through-and-conversions/how-to/send-click-and-conversion-events-with-instantsearch/js/"),S&&typeof S!="function")throw new Error(mt("The `insightsClient` option should be a function."));if(process.env.NODE_ENV==="development"&&ge(!n.searchParameters,"The `searchParameters` option is deprecated and will not be supported in InstantSearch.js 4.x.\n\nYou can replace it with the `configure` widget:\n\n```\nsearch.addWidgets([\n configure(".concat(JSON.stringify(n.searchParameters,null,2),`) ]); \`\`\` -See `).concat(Bs({name:"configure"}))),i.client=y,i.insightsClient=S,i.indexName=o,i.helper=null,i.mainHelper=null,i.mainIndex=bv({indexName:o}),i.onStateChange=x,i.started=!1,i.templatesConfig={helpers:Jm({numberLocale:s}),compileOptions:{}},i._stalledSearchDelay=g,i._searchStalledTimer=null,i._createURL=cg,i._initialUiState=u,i._initialResults=null,p&&(process.env.NODE_ENV==="development"&&ge(!1,"The `searchFunction` option is deprecated. Use `onStateChange` instead."),i._searchFunction=p),i.sendEventToInsights=Ue,f){var T=typeof f=="boolean"?{}:f;T.$$internal=!0,i.use(Ym(T))}if(d){var M=typeof d=="boolean"?{}:d;M.$$internal=!0,i.use(Zv(M))}return Jv()&&i.use(em({$$internal:!0})),i}return ng(r,[{key:"_isSearchStalled",get:function(){return process.env.NODE_ENV==="development"&&ge(!1,'`InstantSearch._isSearchStalled` is deprecated and will be removed in InstantSearch.js 5.0.\n\nUse `InstantSearch.status === "stalled"` instead.'),this.status==="stalled"}},{key:"use",value:function(){for(var i=this,a=arguments.length,o=new Array(a),s=0;s0&&this.scheduleSearch();this.helper=this.mainIndex.getHelper(),this.started=!0,this.middleware.forEach(function(c){var u=c.instance;u.started()})}},{key:"dispose",value:function(){var i;this.scheduleSearch.cancel(),this.scheduleRender.cancel(),clearTimeout(this._searchStalledTimer),this.removeWidgets(this.mainIndex.getWidgets()),this.mainIndex.dispose(),this.started=!1,this.removeAllListeners(),(i=this.mainHelper)===null||i===void 0||i.removeAllListeners(),this.mainHelper=null,this.helper=null,this.middleware.forEach(function(a){var o=a.instance;o.unsubscribe()})}},{key:"scheduleStalledRender",value:function(){var i=this;this._searchStalledTimer||(this._searchStalledTimer=setTimeout(function(){i.status="stalled",i.scheduleRender()},this._stalledSearchDelay))}},{key:"setUiState",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!this.mainHelper)throw new Error(mt("The `start` method needs to be called before `setUiState`."));this.mainIndex.refreshUiState();var s=typeof i=="function"?i(this.mainIndex.getWidgetUiState({})):i;this.onStateChange&&o?this.onStateChange({uiState:s,setUiState:function(u){qi(typeof u=="function"?u(s):u,a.mainIndex),a.scheduleSearch(),a.onInternalStateChange()}}):(qi(s,this.mainIndex),this.scheduleSearch(),this.onInternalStateChange())}},{key:"getUiState",value:function(){return this.started&&this.mainIndex.refreshUiState(),this.mainIndex.getWidgetUiState({})}},{key:"createURL",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.started)throw new Error(mt("The `start` method needs to be called before `createURL`."));return this._createURL(i)}},{key:"refresh",value:function(){if(!this.mainHelper)throw new Error(mt("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}]),r}(Yd);const fg=lg;var ua={exports:{}},ca={};/** +See `).concat(Bs({name:"configure"}))),i.client=y,i.insightsClient=S,i.indexName=o,i.helper=null,i.mainHelper=null,i.mainIndex=bv({indexName:o}),i.onStateChange=E,i.started=!1,i.templatesConfig={helpers:Jm({numberLocale:s}),compileOptions:{}},i._stalledSearchDelay=g,i._searchStalledTimer=null,i._createURL=cg,i._initialUiState=u,i._initialResults=null,p&&(process.env.NODE_ENV==="development"&&ge(!1,"The `searchFunction` option is deprecated. Use `onStateChange` instead."),i._searchFunction=p),i.sendEventToInsights=Ue,f){var A=typeof f=="boolean"?{}:f;A.$$internal=!0,i.use(Ym(A))}if(d){var M=typeof d=="boolean"?{}:d;M.$$internal=!0,i.use(Zv(M))}return Jv()&&i.use(em({$$internal:!0})),i}return ng(r,[{key:"_isSearchStalled",get:function(){return process.env.NODE_ENV==="development"&&ge(!1,'`InstantSearch._isSearchStalled` is deprecated and will be removed in InstantSearch.js 5.0.\n\nUse `InstantSearch.status === "stalled"` instead.'),this.status==="stalled"}},{key:"use",value:function(){for(var i=this,a=arguments.length,o=new Array(a),s=0;s0&&this.scheduleSearch();this.helper=this.mainIndex.getHelper(),this.started=!0,this.middleware.forEach(function(c){var u=c.instance;u.started()})}},{key:"dispose",value:function(){var i;this.scheduleSearch.cancel(),this.scheduleRender.cancel(),clearTimeout(this._searchStalledTimer),this.removeWidgets(this.mainIndex.getWidgets()),this.mainIndex.dispose(),this.started=!1,this.removeAllListeners(),(i=this.mainHelper)===null||i===void 0||i.removeAllListeners(),this.mainHelper=null,this.helper=null,this.middleware.forEach(function(a){var o=a.instance;o.unsubscribe()})}},{key:"scheduleStalledRender",value:function(){var i=this;this._searchStalledTimer||(this._searchStalledTimer=setTimeout(function(){i.status="stalled",i.scheduleRender()},this._stalledSearchDelay))}},{key:"setUiState",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!this.mainHelper)throw new Error(mt("The `start` method needs to be called before `setUiState`."));this.mainIndex.refreshUiState();var s=typeof i=="function"?i(this.mainIndex.getWidgetUiState({})):i;this.onStateChange&&o?this.onStateChange({uiState:s,setUiState:function(u){qi(typeof u=="function"?u(s):u,a.mainIndex),a.scheduleSearch(),a.onInternalStateChange()}}):(qi(s,this.mainIndex),this.scheduleSearch(),this.onInternalStateChange())}},{key:"getUiState",value:function(){return this.started&&this.mainIndex.refreshUiState(),this.mainIndex.getWidgetUiState({})}},{key:"createURL",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.started)throw new Error(mt("The `start` method needs to be called before `createURL`."));return this._createURL(i)}},{key:"refresh",value:function(){if(!this.mainHelper)throw new Error(mt("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}]),r}(Yd);const fg=lg;var ua={exports:{}},ca={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -286,45 +286,45 @@ See `).concat(Bs({name:"configure"}))),i.client=y,i.insightsClient=S,i.indexName * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Gu;function hg(){return Gu||(Gu=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=R,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(b){{for(var S=arguments.length,m=new Array(S>1?S-1:0),x=1;x` changed between renders, which may cause more search requests than necessary. If this is an unwanted behavior, please provide a stable reference: https://www.algolia.com/doc/api-reference/widgets/instantsearch/react-hooks/#widget-param-searchclient"),Ju(e.searchClient,[].concat(Xu,[r&&Zu])),c.mainHelper.setClient(e.searchClient).search(),a.current=e),u.onStateChange!==e.onStateChange&&(c.onStateChange=e.onStateChange,a.current=e),u.searchFunction!==e.searchFunction&&(c._searchFunction=e.searchFunction,a.current=e),u.stalledSearchDelay!==e.stalledSearchDelay){var l;c._stalledSearchDelay=(l=e.stalledSearchDelay)!==null&&l!==void 0?l:200,a.current=e}}var f=R.useRef(null),h=pg.useSyncExternalStore(R.useCallback(function(){var d=o.current;return f.current===null?d.started||(d.start(),t()):(clearTimeout(f.current),d._preventWidgetCleanup=!1),function(){function p(){d.dispose()}clearTimeout(d._schedule.timer),f.current=setTimeout(p),d._preventWidgetCleanup=!0}},[t]),function(){return o.current},function(){return o.current});return h}function Ju(e,t){typeof e.addAlgoliaAgent=="function"&&t.filter(Boolean).forEach(function(r){e.addAlgoliaAgent(r)})}function mg(e){if(process.env.NODE_ENV==="development"){var t;if(!e||typeof window>"u"||!("__NEXT_DATA__"in window))return;var r=e!==!0&&(e==null||(t=e.router)===null||t===void 0?void 0:t._isNextRouter);process.env.NODE_ENV==="development"&&yu(r,` + */var Gu;function hg(){return Gu||(Gu=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=R,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(b){{for(var S=arguments.length,m=new Array(S>1?S-1:0),E=1;E` changed between renders, which may cause more search requests than necessary. If this is an unwanted behavior, please provide a stable reference: https://www.algolia.com/doc/api-reference/widgets/instantsearch/react-hooks/#widget-param-searchclient"),Ju(e.searchClient,[].concat(Xu,[r&&Zu])),c.mainHelper.setClient(e.searchClient).search(),a.current=e),u.onStateChange!==e.onStateChange&&(c.onStateChange=e.onStateChange,a.current=e),u.searchFunction!==e.searchFunction&&(c._searchFunction=e.searchFunction,a.current=e),u.stalledSearchDelay!==e.stalledSearchDelay){var l;c._stalledSearchDelay=(l=e.stalledSearchDelay)!==null&&l!==void 0?l:200,a.current=e}}var f=R.useRef(null),h=pg.useSyncExternalStore(R.useCallback(function(){var d=o.current;return f.current===null?d.started||(d.start(),t()):(clearTimeout(f.current),d._preventWidgetCleanup=!1),function(){function p(){d.dispose()}clearTimeout(d._schedule.timer),f.current=setTimeout(p),d._preventWidgetCleanup=!0}},[t]),function(){return o.current},function(){return o.current});return h}function Ju(e,t){typeof e.addAlgoliaAgent=="function"&&t.filter(Boolean).forEach(function(r){e.addAlgoliaAgent(r)})}function mg(e){if(process.env.NODE_ENV==="development"){var t;if(!e||typeof window>"u"||!("__NEXT_DATA__"in window))return;var r=e!==!0&&(e==null||(t=e.router)===null||t===void 0?void 0:t._isNextRouter);process.env.NODE_ENV==="development"&&yu(r,` You are using Next.js with InstantSearch without the "react-instantsearch-hooks-router-nextjs" package. This package is recommended to make the routing work correctly with Next.js. Please check its usage instructions: https://github.com/algolia/instantsearch/tree/master/packages/react-instantsearch-hooks-router-nextjs -You can ignore this warning if you are using a custom router that suits your needs, it won't be outputted in production builds.`)}}var gg=["children"];function yg(e,t){if(e==null)return{};var r=bg(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bg(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function wg(e){var t=e.children,r=yg(e,gg),n=vg(r);return n.started?R.createElement(Ki.Provider,{value:n},R.createElement(Yi.Provider,{value:n.mainIndex},t)):null}function Lr(e){"@babel/helpers - typeof";return Lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lr(e)}function Sg(e){return xg(e)||Eg(e)||Pg(e)||Og()}function Og(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pg(e,t){if(e){if(typeof e=="string")return fa(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fa(e,t)}}function Eg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xg(e){if(Array.isArray(e))return fa(e)}function fa(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:Ue;return Zt(t,tc()),function(n){if((n||{}).includedAttributes&&(n||{}).excludedAttributes)throw new Error(tc("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var i=n||{},a=i.includedAttributes,o=i.excludedAttributes,s=o===void 0?["query"]:o,c=i.transformItems,u=c===void 0?function(l){return l}:c;return{$$type:"ais.currentRefinements",init:function(f){var h=f.instantSearchInstance;t(nr(nr({},this.getWidgetRenderState(f)),{},{instantSearchInstance:h}),!0)},render:function(f){var h=f.instantSearchInstance;t(nr(nr({},this.getWidgetRenderState(f)),{},{instantSearchInstance:h}),!1)},dispose:function(){r()},getRenderState:function(f,h){return nr(nr({},f),{},{currentRefinements:this.getWidgetRenderState(h)})},getWidgetRenderState:function(f){var h=f.results,d=f.scopedResults,p=f.createURL,v=f.helper;function g(){return h?d.reduce(function(y,b){return y.concat(u(rc({results:b.results,helper:b.helper,indexId:b.indexId,includedAttributes:a,excludedAttributes:s}),{results:h}))},[]):u(rc({results:{},helper:v,indexId:v.state.index,includedAttributes:a,excludedAttributes:s}),{results:h})}var P=g();return{items:P,canRefine:P.length>0,refine:function(b){return ic(v,b)},createURL:function(b){return p(nc(v.state,b))},widgetParams:n}}}}};function rc(e){var t=e.results,r=e.helper,n=e.indexId,i=e.includedAttributes,a=e.excludedAttributes,o=(i||[]).indexOf("query")!==-1||(a||[]).indexOf("query")===-1,s=i?function(u){return i.indexOf(u.attribute)!==-1}:function(u){return a.indexOf(u.attribute)===-1},c=rp(t,r.state,o).map($g).filter(s);return c.reduce(function(u,l){return[].concat(Sg(u.filter(function(f){return f.attribute!==l.attribute})),[{indexName:r.state.index,indexId:n,attribute:l.attribute,label:l.attribute,refinements:c.filter(function(f){return f.attribute===l.attribute}).sort(function(f,h){return f.type==="numeric"?f.value-h.value:0}),refine:function(h){return ic(r,h)}}])},[])}function nc(e,t){switch(e=e.resetPage(),t.type){case"facet":return e.removeFacetRefinement(t.attribute,String(t.value));case"disjunctive":return e.removeDisjunctiveFacetRefinement(t.attribute,String(t.value));case"hierarchical":return e.removeHierarchicalFacetRefinement(t.attribute);case"exclude":return e.removeExcludeRefinement(t.attribute,String(t.value));case"numeric":return e.removeNumericRefinement(t.attribute,t.operator,String(t.value));case"tag":return e.removeTagRefinement(String(t.value));case"query":return e.setQueryParameter("query","");default:return process.env.NODE_ENV==="development"&&ge(!1,'The refinement type "'.concat(t.type,'" does not exist and cannot be cleared from the current refinements.')),e}}function ic(e,t){e.setState(nc(e.state,t)).search()}function Ag(e){switch(e){case">=":return"≥";case"<=":return"≤";default:return e}}function $g(e){var t=Cg(e),r=e.operator?"".concat(Ag(e.operator)," ").concat(e.name):e.name,n={attribute:e.attribute,type:e.type,value:t,label:r};return e.operator!==void 0&&(n.operator=e.operator),e.count!==void 0&&(n.count=e.count),e.exhaustive!==void 0&&(n.exhaustive=e.exhaustive),n}function Cg(e){return e.type==="numeric"?Number(e.name):"escapedValue"in e?e.escapedValue:e.name}const Fg=Tg;function Ig(e,t){return Wt(Fg,e,t)}function Hr(e){"@babel/helpers - typeof";return Hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hr(e)}var Ng=["page"],kg=["clickAnalytics","userToken"];function ac(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function at(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Bg(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var qg=St({name:"infinite-hits",connector:!0});function cc(e){var t=e||{};t.page;var r=uc(t,Ng);return r}function An(e){var t=e||{};t.clickAnalytics,t.userToken;var r=uc(t,kg);return r}function Vg(){var e=null,t=null;return{read:function(n){var i=n.state;return zi(t,cc(i))?e:null},write:function(n){var i=n.state,a=n.hits;t=cc(i),e=a}}}function zg(e){return Object.keys(e).map(Number).sort(function(t,r){return t-r}).reduce(function(t,r){return t.concat(e[r])},[])}var Qg=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue;return Zt(t,qg()),function(n){var i=n||{},a=i.escapeHTML,o=a===void 0?!0:a,s=i.transformItems,c=s===void 0?function(b){return b}:s,u=i.cache,l=u===void 0?Vg():u,f,h,d,p,v=function(S,m){var x=S.page,T=x===void 0?0:x,M=Object.keys(m).map(Number);return M.length===0?T:Math.min.apply(Math,[T].concat(sc(M)))},g=function(S,m){var x=S.page,T=x===void 0?0:x,M=Object.keys(m).map(Number);return M.length===0?T:Math.max.apply(Math,[T].concat(sc(M)))},P=function(S){return function(){S.overrideStateWithoutTriggeringChangeEvent(at(at({},S.state),{},{page:v(S.state,l.read({state:An(S.state)})||{})-1})).searchWithoutTriggeringOnStateChange()}},y=function(S){return function(){S.setPage(g(S.state,l.read({state:An(S.state)})||{})+1).search()}};return{$$type:"ais.infiniteHits",init:function(S){t(at(at({},this.getWidgetRenderState(S)),{},{instantSearchInstance:S.instantSearchInstance}),!0)},render:function(S){var m=S.instantSearchInstance,x=this.getWidgetRenderState(S);t(at(at({},x),{},{instantSearchInstance:m}),!1),d("view:internal",x.currentPageHits)},getRenderState:function(S,m){return at(at({},S),{},{infiniteHits:this.getWidgetRenderState(m)})},getWidgetRenderState:function(S){var m=S.results,x=S.helper,T=S.parent,M=S.state,w=S.instantSearchInstance,_,U=[],Z=T.getPreviousState()||M,I=l.read({state:An(Z)})||{};if(!m)f=P(x),h=y(x),d=Qh({instantSearchInstance:w,index:x.getIndex(),widgetType:this.$$type}),p=Yh({index:x.getIndex(),widgetType:this.$$type,instantSearchInstance:w}),_=Z.page===void 0||v(Z,I)===0;else{var Y,re,se,J=Z.page,z=J===void 0?0:J;o&&m.hits.length>0&&(m.hits=Ch(m.hits));var ae=op(m.hits,m.page,m.hitsPerPage),F=lp(ae,m.queryID),H=c(F,{results:m}),N=!1;Ks(w.mainIndex,function(E){!N&&E.getWidgets().some(function(Q){var $=Q.$$type;return $==="ais.dynamicWidgets"})&&(N=!0)});var C=!((Y=m.disjunctiveFacets)!==null&&Y!==void 0&&Y.length)&&!((re=m.facets)!==null&&re!==void 0&&re.length)&&!((se=m.hierarchicalFacets)!==null&&se!==void 0&&se.length);I[z]===void 0&&!m.__isArtificial&&w.status==="idle"&&!(N&&C)&&(I[z]=H,l.write({state:An(Z),hits:I})),U=H,_=v(Z,I)===0}var k=zg(I),B=m?m.nbPages<=g(Z,I)+1:!0;return{hits:k,currentPageHits:U,sendEvent:d,bindEvent:p,results:m,showPrevious:f,showMore:h,isFirstPage:_,isLastPage:B,widgetParams:n}},dispose:function(S){var m=S.state;r();var x=m.setQueryParameter("page",void 0);return o?x.setQueryParameters(Object.keys(er).reduce(function(T,M){return at(at({},T),{},oc({},M,void 0))},{})):x},getWidgetUiState:function(S,m){var x=m.searchParameters,T=x.page||0;return T?at(at({},S),{},{page:T+1}):S},getWidgetSearchParameters:function(S,m){var x=m.uiState,T=S;o&&(T=S.setQueryParameters(er));var M=x.page?x.page-1:0;return T.setQueryParameter("page",M)}}}};const Yg=Qg;function Kg(e,t){return Wt(Yg,e,t)}function Wr(e){"@babel/helpers - typeof";return Wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wr(e)}function lc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xe(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:Ue;return Zt(t,ha()),function(n){var i=n||{},a=i.attribute,o=a===void 0?"":a,s=i.min,c=i.max,u=i.precision,l=u===void 0?0:u;if(!o)throw new Error(ha("The `attribute` option is required."));if(_e(s)&&_e(c)&&s>c)throw new Error(ha("The `max` option can't be lower than `min`."));var f=function(b){return Number(Number(b).toFixed(l))},h={from:function(b){return b.toLocaleString()},to:function(b){return f(b).toLocaleString()}},d=function(b,S,m,x){var T=b.state,M=S.min,w=S.max,_=T.getNumericRefinement(o,">=")||[],U=ir(_,1),Z=U[0],I=T.getNumericRefinement(o,"<=")||[],Y=ir(I,1),re=Y[0],se=m===void 0||m==="",J=x===void 0||x==="",z=dc({min:se?void 0:parseFloat(m),max:J?void 0:parseFloat(x),precision:l}),ae=z.min,F=z.max,H;!_e(s)&&M===ae?H=void 0:_e(s)&&se?H=s:H=ae;var N;!_e(c)&&w===F?N=void 0:_e(c)&&J?N=c:N=F;var C=H===void 0,k=_e(M)&&M<=H,B=C||_e(H)&&(!_e(M)||k),E=N===void 0,Q=_e(N)&&w>=N,$=E||_e(N)&&(!_e(w)||Q),ee=Z!==H,K=re!==N;return(ee||K)&&B&&$?(T=T.removeNumericRefinement(o),_e(H)&&(T=T.addNumericRefinement(o,">=",H)),_e(N)&&(T=T.addNumericRefinement(o,"<=",N)),T.resetPage()):null},p=function(b){return function(){if(arguments.length===1){b.sendEventToInsights(arguments.length<=0?void 0:arguments[0]);return}}};function v(y){var b;_e(s)?b=s:_e(y.min)?b=y.min:b=0;var S;return _e(c)?S=c:_e(y.max)?S=y.max:S=0,dc({min:b,max:S,precision:l})}function g(y){var b=y.getNumericRefinement(o,">=")||[],S=ir(b,1),m=S[0],x=y.getNumericRefinement(o,"<=")||[],T=ir(x,1),M=T[0],w=_e(m)?m:-1/0,_=_e(M)?M:1/0;return[w,_]}function P(y,b){return function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[void 0,void 0],m=ir(S,2),x=m[0],T=m[1],M=d(y,b,x,T);M&&y.setState(M).search()}}return{$$type:ry,init:function(b){t(Xe(Xe({},this.getWidgetRenderState(b)),{},{instantSearchInstance:b.instantSearchInstance}),!0)},render:function(b){t(Xe(Xe({},this.getWidgetRenderState(b)),{},{instantSearchInstance:b.instantSearchInstance}),!1)},getRenderState:function(b,S){return Xe(Xe({},b),{},{range:Xe(Xe({},b.range),{},$n({},o,this.getWidgetRenderState(S)))})},getWidgetRenderState:function(b){var S=b.results,m=b.helper,x=b.instantSearchInstance,T=S&&S.disjunctiveFacets||[],M=br(T,function(I){return I.name===o}),w=M&&M.stats||{min:void 0,max:void 0},_=v(w),U=g(m),Z;return S?Z=P(m,_):Z=P(m,{min:void 0,max:void 0}),{refine:Z,canRefine:_.min!==_.max,format:h,range:_,sendEvent:p(x),widgetParams:Xe(Xe({},n),{},{precision:l}),start:U}},dispose:function(b){var S=b.state;return r(),S.removeDisjunctiveFacet(o).removeNumericRefinement(o)},getWidgetUiState:function(b,S){var m=S.searchParameters,x=m.getNumericRefinements(o),T=x[">="],M=T===void 0?[]:T,w=x["<="],_=w===void 0?[]:w;return M.length===0&&_.length===0?b:Xe(Xe({},b),{},{range:Xe(Xe({},b.range),{},$n({},o,"".concat(M,":").concat(_)))})},getWidgetSearchParameters:function(b,S){var m=S.uiState,x=b.addDisjunctiveFacet(o).setQueryParameters({numericRefinements:Xe(Xe({},b.numericRefinements),{},$n({},o,{}))});_e(s)&&(x=x.addNumericRefinement(o,">=",s)),_e(c)&&(x=x.addNumericRefinement(o,"<=",c));var T=m.range&&m.range[o];if(!T||T.indexOf(":")===-1)return x;var M=T.split(":").map(parseFloat),w=ir(M,2),_=w[0],U=w[1];return _e(_)&&(!_e(s)||s<_)&&(x=x.removeNumericRefinement(o,">="),x=x.addNumericRefinement(o,">=",_)),_e(U)&&(!_e(c)||U=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ly(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Cn=St({name:"refinement-list",connector:!0}),vc=["isRefined","count:desc","name:asc"],fy=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue;return Zt(t,Cn()),function(n){var i=n||{},a=i.attribute,o=i.operator,s=o===void 0?"or":o,c=i.limit,u=c===void 0?10:c,l=i.showMore,f=l===void 0?!1:l,h=i.showMoreLimit,d=h===void 0?20:h,p=i.sortBy,v=p===void 0?vc:p,g=i.escapeFacetValues,P=g===void 0?!0:g,y=i.transformItems,b=y===void 0?function(J){return J}:y;if(!a)throw new Error(Cn("The `attribute` option is required."));if(!/^(and|or)$/.test(s))throw new Error(Cn('The `operator` must one of: `"and"`, `"or"` (got "'.concat(s,'").')));if(f===!0&&d<=u)throw new Error(Cn("`showMoreLimit` should be greater than `limit`."));var S=function(z){var ae=z.name,F=z.escapedValue,H=pc(z,oy);return Ae(Ae({},H),{},{value:F,label:ae,highlighted:ae})},m,x=[],T=!0,M,w,_=!1,U=function(){};function Z(){U()}function I(J,z){return function(){_=!_,z.render(J)}}function Y(){return _?d:u}var re=function(){return function(){}},se=function(z,ae){return function(F){return function(H){var N=F.instantSearchInstance,C=F.results;if(H===""&&x)t(Ae(Ae({},ae.getWidgetRenderState(Ae(Ae({},F),{},{results:m}))),{},{instantSearchInstance:N}),!1);else{var k={highlightPreTag:P?er.highlightPreTag:Ge.highlightPreTag,highlightPostTag:P?er.highlightPostTag:Ge.highlightPostTag};z.searchForFacetValues(a,H,Math.min(Y(),100),k).then(function(B){var E=P?Fh(B.facetHits):B.facetHits,Q=b(E.map(function($){var ee=$.escapedValue,K=$.value,W=pc($,sy);return Ae(Ae({},W),{},{value:ee,label:K})}),{results:C});t(Ae(Ae({},ae.getWidgetRenderState(Ae(Ae({},F),{},{results:m}))),{},{items:Q,canToggleShowMore:!1,canRefine:!0,isFromSearch:!0,instantSearchInstance:N}),!1)})}}}};return{$$type:"ais.refinementList",init:function(z){t(Ae(Ae({},this.getWidgetRenderState(z)),{},{instantSearchInstance:z.instantSearchInstance}),!0)},render:function(z){t(Ae(Ae({},this.getWidgetRenderState(z)),{},{instantSearchInstance:z.instantSearchInstance}),!1)},getRenderState:function(z,ae){return Ae(Ae({},z),{},{refinementList:Ae(Ae({},z.refinementList),{},Br({},a,this.getWidgetRenderState(ae)))})},getWidgetRenderState:function(z){var ae=z.results,F=z.state,H=z.createURL,N=z.instantSearchInstance,C=z.helper,k=[],B=[];if((!w||!M||!re)&&(w=Hh({instantSearchInstance:N,helper:C,attribute:a,widgetType:this.$$type}),M=function(pe){w("click:internal",pe),C.toggleFacetRefinement(a,pe).search()},re=se(C,this)),ae){var E=ae.getFacetValues(a,{sortBy:v,facetOrdering:v===vc});B=E&&Array.isArray(E)?E:[],k=b(B.slice(0,Y()).map(S),{results:ae});var Q=F.maxValuesPerFacet,$=Y();T=Q>$?B.length<=$:B.length<$,m=ae,x=k,z.results&&(U=I(z,this))}var ee=re&&re(z),K=_&&x.length>u,W=f&&!T,j=K||W;return{createURL:function(pe){return H(F.resetPage().toggleFacetRefinement(a,pe))},items:k,refine:M,searchForItems:ee,isFromSearch:!1,canRefine:k.length>0,widgetParams:n,isShowingMore:_,canToggleShowMore:j,toggleShowMore:Z,sendEvent:w,hasExhaustiveItems:T}},dispose:function(z){var ae=z.state;r();var F=ae.setQueryParameter("maxValuesPerFacet",void 0);return s==="and"?F.removeFacet(a):F.removeDisjunctiveFacet(a)},getWidgetUiState:function(z,ae){var F=ae.searchParameters,H=s==="or"?F.getDisjunctiveRefinements(a):F.getConjunctiveRefinements(a);return H.length?Ae(Ae({},z),{},{refinementList:Ae(Ae({},z.refinementList),{},Br({},a,H))}):z},getWidgetSearchParameters:function(z,ae){var F=ae.uiState,H=s==="or";if(z.isHierarchicalFacet(a))return process.env.NODE_ENV==="development"&&ge(!1,'RefinementList: Attribute "'.concat(a,`" is already used by another widget applying hierarchical faceting. +You can ignore this warning if you are using a custom router that suits your needs, it won't be outputted in production builds.`)}}var gg=["children"];function yg(e,t){if(e==null)return{};var r=bg(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bg(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function wg(e){var t=e.children,r=yg(e,gg),n=vg(r);return n.started?R.createElement(Ki.Provider,{value:n},R.createElement(Yi.Provider,{value:n.mainIndex},t)):null}function Lr(e){"@babel/helpers - typeof";return Lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lr(e)}function Sg(e){return Eg(e)||xg(e)||Pg(e)||Og()}function Og(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pg(e,t){if(e){if(typeof e=="string")return fa(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fa(e,t)}}function xg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Eg(e){if(Array.isArray(e))return fa(e)}function fa(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:Ue;return Zt(t,tc()),function(n){if((n||{}).includedAttributes&&(n||{}).excludedAttributes)throw new Error(tc("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var i=n||{},a=i.includedAttributes,o=i.excludedAttributes,s=o===void 0?["query"]:o,c=i.transformItems,u=c===void 0?function(l){return l}:c;return{$$type:"ais.currentRefinements",init:function(f){var h=f.instantSearchInstance;t(nr(nr({},this.getWidgetRenderState(f)),{},{instantSearchInstance:h}),!0)},render:function(f){var h=f.instantSearchInstance;t(nr(nr({},this.getWidgetRenderState(f)),{},{instantSearchInstance:h}),!1)},dispose:function(){r()},getRenderState:function(f,h){return nr(nr({},f),{},{currentRefinements:this.getWidgetRenderState(h)})},getWidgetRenderState:function(f){var h=f.results,d=f.scopedResults,p=f.createURL,v=f.helper;function g(){return h?d.reduce(function(y,b){return y.concat(u(rc({results:b.results,helper:b.helper,indexId:b.indexId,includedAttributes:a,excludedAttributes:s}),{results:h}))},[]):u(rc({results:{},helper:v,indexId:v.state.index,includedAttributes:a,excludedAttributes:s}),{results:h})}var P=g();return{items:P,canRefine:P.length>0,refine:function(b){return ic(v,b)},createURL:function(b){return p(nc(v.state,b))},widgetParams:n}}}}};function rc(e){var t=e.results,r=e.helper,n=e.indexId,i=e.includedAttributes,a=e.excludedAttributes,o=(i||[]).indexOf("query")!==-1||(a||[]).indexOf("query")===-1,s=i?function(u){return i.indexOf(u.attribute)!==-1}:function(u){return a.indexOf(u.attribute)===-1},c=rp(t,r.state,o).map($g).filter(s);return c.reduce(function(u,l){return[].concat(Sg(u.filter(function(f){return f.attribute!==l.attribute})),[{indexName:r.state.index,indexId:n,attribute:l.attribute,label:l.attribute,refinements:c.filter(function(f){return f.attribute===l.attribute}).sort(function(f,h){return f.type==="numeric"?f.value-h.value:0}),refine:function(h){return ic(r,h)}}])},[])}function nc(e,t){switch(e=e.resetPage(),t.type){case"facet":return e.removeFacetRefinement(t.attribute,String(t.value));case"disjunctive":return e.removeDisjunctiveFacetRefinement(t.attribute,String(t.value));case"hierarchical":return e.removeHierarchicalFacetRefinement(t.attribute);case"exclude":return e.removeExcludeRefinement(t.attribute,String(t.value));case"numeric":return e.removeNumericRefinement(t.attribute,t.operator,String(t.value));case"tag":return e.removeTagRefinement(String(t.value));case"query":return e.setQueryParameter("query","");default:return process.env.NODE_ENV==="development"&&ge(!1,'The refinement type "'.concat(t.type,'" does not exist and cannot be cleared from the current refinements.')),e}}function ic(e,t){e.setState(nc(e.state,t)).search()}function Ag(e){switch(e){case">=":return"≥";case"<=":return"≤";default:return e}}function $g(e){var t=Cg(e),r=e.operator?"".concat(Ag(e.operator)," ").concat(e.name):e.name,n={attribute:e.attribute,type:e.type,value:t,label:r};return e.operator!==void 0&&(n.operator=e.operator),e.count!==void 0&&(n.count=e.count),e.exhaustive!==void 0&&(n.exhaustive=e.exhaustive),n}function Cg(e){return e.type==="numeric"?Number(e.name):"escapedValue"in e?e.escapedValue:e.name}const Fg=Tg;function Ig(e,t){return Wt(Fg,e,t)}function Hr(e){"@babel/helpers - typeof";return Hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hr(e)}var Ng=["page"],kg=["clickAnalytics","userToken"];function ac(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function at(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Bg(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var qg=St({name:"infinite-hits",connector:!0});function cc(e){var t=e||{};t.page;var r=uc(t,Ng);return r}function An(e){var t=e||{};t.clickAnalytics,t.userToken;var r=uc(t,kg);return r}function Vg(){var e=null,t=null;return{read:function(n){var i=n.state;return zi(t,cc(i))?e:null},write:function(n){var i=n.state,a=n.hits;t=cc(i),e=a}}}function zg(e){return Object.keys(e).map(Number).sort(function(t,r){return t-r}).reduce(function(t,r){return t.concat(e[r])},[])}var Qg=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue;return Zt(t,qg()),function(n){var i=n||{},a=i.escapeHTML,o=a===void 0?!0:a,s=i.transformItems,c=s===void 0?function(b){return b}:s,u=i.cache,l=u===void 0?Vg():u,f,h,d,p,v=function(S,m){var E=S.page,A=E===void 0?0:E,M=Object.keys(m).map(Number);return M.length===0?A:Math.min.apply(Math,[A].concat(sc(M)))},g=function(S,m){var E=S.page,A=E===void 0?0:E,M=Object.keys(m).map(Number);return M.length===0?A:Math.max.apply(Math,[A].concat(sc(M)))},P=function(S){return function(){S.overrideStateWithoutTriggeringChangeEvent(at(at({},S.state),{},{page:v(S.state,l.read({state:An(S.state)})||{})-1})).searchWithoutTriggeringOnStateChange()}},y=function(S){return function(){S.setPage(g(S.state,l.read({state:An(S.state)})||{})+1).search()}};return{$$type:"ais.infiniteHits",init:function(S){t(at(at({},this.getWidgetRenderState(S)),{},{instantSearchInstance:S.instantSearchInstance}),!0)},render:function(S){var m=S.instantSearchInstance,E=this.getWidgetRenderState(S);t(at(at({},E),{},{instantSearchInstance:m}),!1),d("view:internal",E.currentPageHits)},getRenderState:function(S,m){return at(at({},S),{},{infiniteHits:this.getWidgetRenderState(m)})},getWidgetRenderState:function(S){var m=S.results,E=S.helper,A=S.parent,M=S.state,w=S.instantSearchInstance,j,U=[],Z=A.getPreviousState()||M,I=l.read({state:An(Z)})||{};if(!m)f=P(E),h=y(E),d=Qh({instantSearchInstance:w,index:E.getIndex(),widgetType:this.$$type}),p=Yh({index:E.getIndex(),widgetType:this.$$type,instantSearchInstance:w}),j=Z.page===void 0||v(Z,I)===0;else{var Y,re,se,J=Z.page,z=J===void 0?0:J;o&&m.hits.length>0&&(m.hits=Ch(m.hits));var ae=op(m.hits,m.page,m.hitsPerPage),F=lp(ae,m.queryID),H=c(F,{results:m}),N=!1;Ks(w.mainIndex,function(x){!N&&x.getWidgets().some(function(Q){var $=Q.$$type;return $==="ais.dynamicWidgets"})&&(N=!0)});var C=!((Y=m.disjunctiveFacets)!==null&&Y!==void 0&&Y.length)&&!((re=m.facets)!==null&&re!==void 0&&re.length)&&!((se=m.hierarchicalFacets)!==null&&se!==void 0&&se.length);I[z]===void 0&&!m.__isArtificial&&w.status==="idle"&&!(N&&C)&&(I[z]=H,l.write({state:An(Z),hits:I})),U=H,j=v(Z,I)===0}var k=zg(I),B=m?m.nbPages<=g(Z,I)+1:!0;return{hits:k,currentPageHits:U,sendEvent:d,bindEvent:p,results:m,showPrevious:f,showMore:h,isFirstPage:j,isLastPage:B,widgetParams:n}},dispose:function(S){var m=S.state;r();var E=m.setQueryParameter("page",void 0);return o?E.setQueryParameters(Object.keys(er).reduce(function(A,M){return at(at({},A),{},oc({},M,void 0))},{})):E},getWidgetUiState:function(S,m){var E=m.searchParameters,A=E.page||0;return A?at(at({},S),{},{page:A+1}):S},getWidgetSearchParameters:function(S,m){var E=m.uiState,A=S;o&&(A=S.setQueryParameters(er));var M=E.page?E.page-1:0;return A.setQueryParameter("page",M)}}}};const Yg=Qg;function Kg(e,t){return Wt(Yg,e,t)}function Wr(e){"@babel/helpers - typeof";return Wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wr(e)}function lc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xe(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:Ue;return Zt(t,ha()),function(n){var i=n||{},a=i.attribute,o=a===void 0?"":a,s=i.min,c=i.max,u=i.precision,l=u===void 0?0:u;if(!o)throw new Error(ha("The `attribute` option is required."));if(je(s)&&je(c)&&s>c)throw new Error(ha("The `max` option can't be lower than `min`."));var f=function(b){return Number(Number(b).toFixed(l))},h={from:function(b){return b.toLocaleString()},to:function(b){return f(b).toLocaleString()}},d=function(b,S,m,E){var A=b.state,M=S.min,w=S.max,j=A.getNumericRefinement(o,">=")||[],U=ir(j,1),Z=U[0],I=A.getNumericRefinement(o,"<=")||[],Y=ir(I,1),re=Y[0],se=m===void 0||m==="",J=E===void 0||E==="",z=dc({min:se?void 0:parseFloat(m),max:J?void 0:parseFloat(E),precision:l}),ae=z.min,F=z.max,H;!je(s)&&M===ae?H=void 0:je(s)&&se?H=s:H=ae;var N;!je(c)&&w===F?N=void 0:je(c)&&J?N=c:N=F;var C=H===void 0,k=je(M)&&M<=H,B=C||je(H)&&(!je(M)||k),x=N===void 0,Q=je(N)&&w>=N,$=x||je(N)&&(!je(w)||Q),ee=Z!==H,G=re!==N;return(ee||G)&&B&&$?(A=A.removeNumericRefinement(o),je(H)&&(A=A.addNumericRefinement(o,">=",H)),je(N)&&(A=A.addNumericRefinement(o,"<=",N)),A.resetPage()):null},p=function(b){return function(){if(arguments.length===1){b.sendEventToInsights(arguments.length<=0?void 0:arguments[0]);return}}};function v(y){var b;je(s)?b=s:je(y.min)?b=y.min:b=0;var S;return je(c)?S=c:je(y.max)?S=y.max:S=0,dc({min:b,max:S,precision:l})}function g(y){var b=y.getNumericRefinement(o,">=")||[],S=ir(b,1),m=S[0],E=y.getNumericRefinement(o,"<=")||[],A=ir(E,1),M=A[0],w=je(m)?m:-1/0,j=je(M)?M:1/0;return[w,j]}function P(y,b){return function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[void 0,void 0],m=ir(S,2),E=m[0],A=m[1],M=d(y,b,E,A);M&&y.setState(M).search()}}return{$$type:ry,init:function(b){t(Xe(Xe({},this.getWidgetRenderState(b)),{},{instantSearchInstance:b.instantSearchInstance}),!0)},render:function(b){t(Xe(Xe({},this.getWidgetRenderState(b)),{},{instantSearchInstance:b.instantSearchInstance}),!1)},getRenderState:function(b,S){return Xe(Xe({},b),{},{range:Xe(Xe({},b.range),{},$n({},o,this.getWidgetRenderState(S)))})},getWidgetRenderState:function(b){var S=b.results,m=b.helper,E=b.instantSearchInstance,A=S&&S.disjunctiveFacets||[],M=br(A,function(I){return I.name===o}),w=M&&M.stats||{min:void 0,max:void 0},j=v(w),U=g(m),Z;return S?Z=P(m,j):Z=P(m,{min:void 0,max:void 0}),{refine:Z,canRefine:j.min!==j.max,format:h,range:j,sendEvent:p(E),widgetParams:Xe(Xe({},n),{},{precision:l}),start:U}},dispose:function(b){var S=b.state;return r(),S.removeDisjunctiveFacet(o).removeNumericRefinement(o)},getWidgetUiState:function(b,S){var m=S.searchParameters,E=m.getNumericRefinements(o),A=E[">="],M=A===void 0?[]:A,w=E["<="],j=w===void 0?[]:w;return M.length===0&&j.length===0?b:Xe(Xe({},b),{},{range:Xe(Xe({},b.range),{},$n({},o,"".concat(M,":").concat(j)))})},getWidgetSearchParameters:function(b,S){var m=S.uiState,E=b.addDisjunctiveFacet(o).setQueryParameters({numericRefinements:Xe(Xe({},b.numericRefinements),{},$n({},o,{}))});je(s)&&(E=E.addNumericRefinement(o,">=",s)),je(c)&&(E=E.addNumericRefinement(o,"<=",c));var A=m.range&&m.range[o];if(!A||A.indexOf(":")===-1)return E;var M=A.split(":").map(parseFloat),w=ir(M,2),j=w[0],U=w[1];return je(j)&&(!je(s)||s="),E=E.addNumericRefinement(o,">=",j)),je(U)&&(!je(c)||U=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ly(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Cn=St({name:"refinement-list",connector:!0}),vc=["isRefined","count:desc","name:asc"],fy=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue;return Zt(t,Cn()),function(n){var i=n||{},a=i.attribute,o=i.operator,s=o===void 0?"or":o,c=i.limit,u=c===void 0?10:c,l=i.showMore,f=l===void 0?!1:l,h=i.showMoreLimit,d=h===void 0?20:h,p=i.sortBy,v=p===void 0?vc:p,g=i.escapeFacetValues,P=g===void 0?!0:g,y=i.transformItems,b=y===void 0?function(J){return J}:y;if(!a)throw new Error(Cn("The `attribute` option is required."));if(!/^(and|or)$/.test(s))throw new Error(Cn('The `operator` must one of: `"and"`, `"or"` (got "'.concat(s,'").')));if(f===!0&&d<=u)throw new Error(Cn("`showMoreLimit` should be greater than `limit`."));var S=function(z){var ae=z.name,F=z.escapedValue,H=pc(z,oy);return Ae(Ae({},H),{},{value:F,label:ae,highlighted:ae})},m,E=[],A=!0,M,w,j=!1,U=function(){};function Z(){U()}function I(J,z){return function(){j=!j,z.render(J)}}function Y(){return j?d:u}var re=function(){return function(){}},se=function(z,ae){return function(F){return function(H){var N=F.instantSearchInstance,C=F.results;if(H===""&&E)t(Ae(Ae({},ae.getWidgetRenderState(Ae(Ae({},F),{},{results:m}))),{},{instantSearchInstance:N}),!1);else{var k={highlightPreTag:P?er.highlightPreTag:Ge.highlightPreTag,highlightPostTag:P?er.highlightPostTag:Ge.highlightPostTag};z.searchForFacetValues(a,H,Math.min(Y(),100),k).then(function(B){var x=P?Fh(B.facetHits):B.facetHits,Q=b(x.map(function($){var ee=$.escapedValue,G=$.value,W=pc($,sy);return Ae(Ae({},W),{},{value:ee,label:G})}),{results:C});t(Ae(Ae({},ae.getWidgetRenderState(Ae(Ae({},F),{},{results:m}))),{},{items:Q,canToggleShowMore:!1,canRefine:!0,isFromSearch:!0,instantSearchInstance:N}),!1)})}}}};return{$$type:"ais.refinementList",init:function(z){t(Ae(Ae({},this.getWidgetRenderState(z)),{},{instantSearchInstance:z.instantSearchInstance}),!0)},render:function(z){t(Ae(Ae({},this.getWidgetRenderState(z)),{},{instantSearchInstance:z.instantSearchInstance}),!1)},getRenderState:function(z,ae){return Ae(Ae({},z),{},{refinementList:Ae(Ae({},z.refinementList),{},Br({},a,this.getWidgetRenderState(ae)))})},getWidgetRenderState:function(z){var ae=z.results,F=z.state,H=z.createURL,N=z.instantSearchInstance,C=z.helper,k=[],B=[];if((!w||!M||!re)&&(w=Hh({instantSearchInstance:N,helper:C,attribute:a,widgetType:this.$$type}),M=function(pe){w("click:internal",pe),C.toggleFacetRefinement(a,pe).search()},re=se(C,this)),ae){var x=ae.getFacetValues(a,{sortBy:v,facetOrdering:v===vc});B=x&&Array.isArray(x)?x:[],k=b(B.slice(0,Y()).map(S),{results:ae});var Q=F.maxValuesPerFacet,$=Y();A=Q>$?B.length<=$:B.length<$,m=ae,E=k,z.results&&(U=I(z,this))}var ee=re&&re(z),G=j&&E.length>u,W=f&&!A,_=G||W;return{createURL:function(pe){return H(F.resetPage().toggleFacetRefinement(a,pe))},items:k,refine:M,searchForItems:ee,isFromSearch:!1,canRefine:k.length>0,widgetParams:n,isShowingMore:j,canToggleShowMore:_,toggleShowMore:Z,sendEvent:w,hasExhaustiveItems:A}},dispose:function(z){var ae=z.state;r();var F=ae.setQueryParameter("maxValuesPerFacet",void 0);return s==="and"?F.removeFacet(a):F.removeDisjunctiveFacet(a)},getWidgetUiState:function(z,ae){var F=ae.searchParameters,H=s==="or"?F.getDisjunctiveRefinements(a):F.getConjunctiveRefinements(a);return H.length?Ae(Ae({},z),{},{refinementList:Ae(Ae({},z.refinementList),{},Br({},a,H))}):z},getWidgetSearchParameters:function(z,ae){var F=ae.uiState,H=s==="or";if(z.isHierarchicalFacet(a))return process.env.NODE_ENV==="development"&&ge(!1,'RefinementList: Attribute "'.concat(a,`" is already used by another widget applying hierarchical faceting. As this is not supported, please make sure to remove this other widget or this RefinementList widget will not work at all.`)),z;if(H&&z.isConjunctiveFacet(a)||!H&&z.isDisjunctiveFacet(a))return process.env.NODE_ENV==="development"&&ge(!1,'RefinementList: Attribute "'.concat(a,`" is used by another refinement list with a different operator. -As this is not supported, please make sure to only use this attribute with one of the two operators.`)),z;var N=F.refinementList&&F.refinementList[a],C=z.clearRefinements(a),k=H?C.addDisjunctiveFacet(a):C.addFacet(a),B=k.maxValuesPerFacet||0,E=Math.max(B,f?d:u),Q=k.setQueryParameter("maxValuesPerFacet",E);if(!N){var $=H?"disjunctiveFacetsRefinements":"facetsRefinements";return Q.setQueryParameters(Br({},$,Ae(Ae({},Q[$]),{},Br({},a,[]))))}return N.reduce(function(ee,K){return H?ee.addDisjunctiveFacetRefinement(a,K):ee.addFacetRefinement(a,K)},Q)}}}};const dy=fy;function hy(e,t){return Wt(dy,e,t)}function qr(e){"@babel/helpers - typeof";return qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qr(e)}function mc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _t(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:Ue;return Zt(t,gy()),function(n){var i=n||{},a=i.queryHook,o=a===void 0?yy:a,s,c;return{$$type:"ais.searchBox",init:function(l){var f=l.instantSearchInstance;t(_t(_t({},this.getWidgetRenderState(l)),{},{instantSearchInstance:f}),!0)},render:function(l){var f=l.instantSearchInstance;t(_t(_t({},this.getWidgetRenderState(l)),{},{instantSearchInstance:f}),!1)},dispose:function(l){var f=l.state;return r(),f.setQueryParameter("query",void 0)},getRenderState:function(l,f){return _t(_t({},l),{},{searchBox:this.getWidgetRenderState(f)})},getWidgetRenderState:function(l){var f=l.helper,h=l.searchMetadata,d=l.state;return s||(s=function(v){o(v,function(g){return f.setQuery(g).search()})},c=function(){f.setQuery("").search()}),{query:d.query||"",refine:s,clear:c,widgetParams:n,isSearchStalled:h.isSearchStalled}},getWidgetUiState:function(l,f){var h=f.searchParameters,d=h.query||"";return d===""||l&&l.query===d?l:_t(_t({},l),{},{query:d})},getWidgetSearchParameters:function(l,f){var h=f.uiState;return l.setQueryParameter("query",h.query||"")}}}};const wy=by;function Sy(e,t){return Wt(wy,e,t)}function Vr(e){"@babel/helpers - typeof";return Vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vr(e)}function gc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tt(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:Ue;Zt(t,yc());var n={};return function(i){var a=i||{},o=a.items,s=a.transformItems,c=s===void 0?function(u){return u}:s;if(!Array.isArray(o))throw new Error(yc("The `items` option expects an array of objects."));return{$$type:"ais.sortBy",init:function(l){var f=l.instantSearchInstance,h=this.getWidgetRenderState(l),d=h.currentRefinement,p=br(o,function(v){return v.value===d});process.env.NODE_ENV==="development"&&ge(p!==void 0,'The index named "'.concat(d,'" is not listed in the `items` of `sortBy`.')),t(Tt(Tt({},h),{},{instantSearchInstance:f}),!0)},render:function(l){var f=l.instantSearchInstance;t(Tt(Tt({},this.getWidgetRenderState(l)),{},{instantSearchInstance:f}),!1)},dispose:function(l){var f=l.state;return r(),n.initialIndex?f.setIndex(n.initialIndex):f},getRenderState:function(l,f){return Tt(Tt({},l),{},{sortBy:this.getWidgetRenderState(f)})},getWidgetRenderState:function(l){var f=l.results,h=l.helper,d=l.state,p=l.parent;!n.initialIndex&&p&&(n.initialIndex=p.getIndexName()),n.setIndex||(n.setIndex=function(g){h.setIndex(g).search()});var v=f?f.nbHits===0:!0;return{currentRefinement:d.index,options:c(o,{results:f}),refine:n.setIndex,hasNoResults:v,canRefine:!v&&o.length>0,widgetParams:i}},getWidgetUiState:function(l,f){var h=f.searchParameters,d=h.index;return Tt(Tt({},l),{},{sortBy:d!==n.initialIndex?d:void 0})},getWidgetSearchParameters:function(l,f){var h=f.uiState;return l.setQueryParameter("index",h.sortBy||n.initialIndex||l.index)}}}};const Ry=xy;function jy(e,t){return Wt(Ry,e,t)}function Se(){for(var e=arguments.length,t=new Array(e),r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ay(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function $y(e){var t=e.isShowingMore,r=e.translations,n=Ty(e,_y);return R.createElement("button",n,r.showMoreButtonText({isShowingMore:t}))}var Cy=["parts","highlightedTagName","nonHighlightedTagName","separator","className","classNames"];function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Iy(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Ny(e){var t=e.classNames,r=e.children,n=e.highlightedTagName,i=e.isHighlighted,a=e.nonHighlightedTagName,o=i?n:a;return R.createElement(o,{className:i?t.highlighted:t.nonHighlighted},r)}function ky(e){var t=e.parts,r=e.highlightedTagName,n=r===void 0?"mark":r,i=e.nonHighlightedTagName,a=i===void 0?"span":i,o=e.separator,s=o===void 0?", ":o,c=e.className,u=e.classNames,l=Fy(e,Cy);return R.createElement("span",pa({},l,{className:Se(u.root,c)}),t.map(function(f,h){var d=h===t.length-1;return R.createElement(R.Fragment,{key:h},f.map(function(p,v){return R.createElement(Ny,{key:v,classNames:u,highlightedTagName:n,nonHighlightedTagName:a,isHighlighted:p.isHighlighted},p.value)}),!d&&R.createElement("span",{className:u.separator},s))}))}var Dy=["classNames"];function va(){return va=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ly(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function bc(e){var t=e.classNames,r=t===void 0?{}:t,n=My(e,Dy);return R.createElement(ky,va({classNames:{root:Se("ais-Highlight",r.root),highlighted:Se("ais-Highlight-highlighted",r.highlighted),nonHighlighted:Se("ais-Highlight-nonHighlighted",r.nonHighlighted),separator:Se("ais-Highlight-separator",r.separator)}},n))}var Hy=["hit","attribute","highlightedTagName","nonHighlightedTagName","separator"];function ma(){return ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Uy(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function zr(e){var t=e.hit,r=e.attribute,n=e.highlightedTagName,i=e.nonHighlightedTagName,a=e.separator,o=Wy(e,Hy),s=wr(t._highlightResult,r)||[],c=Array.isArray(s)?s:[s],u=c.map(function(l){return wn(Li(l.value||""))});return R.createElement(bc,ma({},o,{parts:u,highlightedTagName:n,nonHighlightedTagName:i,separator:a}))}var By=["canRefine","items","onRefine","query","searchBox","noResults","showMore","canToggleShowMore","onToggleShowMore","isShowingMore","className","classNames","translations"];function ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Vy(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function zy(e){var t=e.canRefine,r=e.items,n=e.onRefine,i=e.query,a=e.searchBox,o=e.noResults,s=e.showMore,c=e.canToggleShowMore,u=e.onToggleShowMore,l=e.isShowingMore,f=e.className,h=e.classNames,d=h===void 0?{}:h,p=e.translations,v=qy(e,By);return R.createElement("div",ga({},v,{className:Se("ais-RefinementList",d.root,!t&&Se("ais-RefinementList--noRefinement",d.noRefinementRoot),f)}),a&&R.createElement("div",{className:Se("ais-RefinementList-searchBox",d.searchBox)},a),o?R.createElement("div",{className:Se("ais-RefinementList-noResults",d.noResults)},o):R.createElement("ul",{className:Se("ais-RefinementList-list",d.list)},r.map(function(g){return R.createElement("li",{key:g.value,className:Se("ais-RefinementList-item",d.item,g.isRefined&&Se("ais-RefinementList-item--selected",d.selectedItem))},R.createElement("label",{className:Se("ais-RefinementList-label",d.label)},R.createElement("input",{checked:g.isRefined,className:Se("ais-RefinementList-checkbox",d.checkbox),type:"checkbox",value:g.value,onChange:function(){n(g)}}),R.createElement("span",{className:Se("ais-RefinementList-labelText",d.labelText)},i.length>0?R.createElement(bc,{parts:[wn(Li(g.highlighted||""))]}):g.label),R.createElement("span",{className:Se("ais-RefinementList-count",d.count)},g.count)))})),s&&R.createElement($y,{className:Se("ais-RefinementList-showMore",d.showMore,!c&&Se("ais-RefinementList-showMore--disabled",d.disabledShowMore)),disabled:!c,onClick:u,isShowingMore:l,translations:p}))}var Qy=["formRef","inputRef","isSearchStalled","onChange","onReset","onSubmit","placeholder","value","autoFocus","resetIconComponent","submitIconComponent","loadingIconComponent","classNames","translations"];function ya(){return ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ky(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Gy=R.createElement("path",{d:"M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"});function Xy(e){var t=e.classNames;return R.createElement("svg",{className:Se("ais-SearchBox-submitIcon",t.submitIcon),width:"10",height:"10",viewBox:"0 0 40 40","aria-hidden":"true"},Gy)}var Zy=R.createElement("path",{d:"M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"});function Jy(e){var t=e.classNames;return R.createElement("svg",{className:Se("ais-SearchBox-resetIcon",t.resetIcon),viewBox:"0 0 20 20",width:"10",height:"10","aria-hidden":"true"},Zy)}var eb=R.createElement("g",{fill:"none",fillRule:"evenodd"},R.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},R.createElement("circle",{strokeOpacity:".5",cx:"18",cy:"18",r:"18"}),R.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},R.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}))));function tb(e){var t=e.classNames;return R.createElement("svg",{width:"16",height:"16",viewBox:"0 0 38 38",stroke:"#444",className:Se("ais-SearchBox-loadingIcon",t.loadingIcon),"aria-hidden":"true"},eb)}function wc(e){var t=e.formRef,r=e.inputRef,n=e.isSearchStalled,i=e.onChange,a=e.onReset,o=e.onSubmit,s=e.placeholder,c=e.value,u=e.autoFocus,l=e.resetIconComponent,f=l===void 0?Jy:l,h=e.submitIconComponent,d=h===void 0?Xy:h,p=e.loadingIconComponent,v=p===void 0?tb:p,g=e.classNames,P=g===void 0?{}:g,y=e.translations,b=Yy(e,Qy);function S(x){x.preventDefault(),x.stopPropagation(),o&&o(x),r.current&&r.current.blur()}function m(x){x.preventDefault(),x.stopPropagation(),a(x),r.current&&r.current.focus()}return R.createElement("div",ya({},b,{className:Se("ais-SearchBox",P.root,b.className)}),R.createElement("form",{ref:t,action:"",className:Se("ais-SearchBox-form",P.form),noValidate:!0,onSubmit:S,onReset:m},R.createElement("input",{ref:r,className:Se("ais-SearchBox-input",P.input),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",placeholder:s,spellCheck:!1,maxLength:512,type:"search",value:c,onChange:i,autoFocus:u}),R.createElement("button",{className:Se("ais-SearchBox-submit",P.submit),type:"submit",title:y.submitButtonTitle},R.createElement(d,{classNames:P})),R.createElement("button",{className:Se("ais-SearchBox-reset",P.reset),type:"reset",title:y.resetButtonTitle,hidden:c.length===0||n},R.createElement(f,{classNames:P})),R.createElement("span",{className:Se("ais-SearchBox-loadingIndicator",P.loadingIndicator),hidden:!n},R.createElement(v,{classNames:P}))))}function Qr(e){"@babel/helpers - typeof";return Qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qr(e)}var rb=["searchable","searchablePlaceholder","attribute","operator","limit","showMore","showMoreLimit","sortBy","escapeFacetValues","transformItems","translations"];function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hb(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function We(e){var t=e.searchable,r=e.searchablePlaceholder,n=e.attribute,i=e.operator,a=e.limit,o=e.showMore,s=e.showMoreLimit,c=e.sortBy,u=e.escapeFacetValues,l=e.transformItems,f=e.translations,h=db(e,rb),d=hy({attribute:n,operator:i,limit:a,showMore:o,showMoreLimit:s,sortBy:c,escapeFacetValues:u,transformItems:l},{$$widgetType:"ais.refinementList"}),p=d.canRefine,v=d.canToggleShowMore,g=d.isFromSearch,P=d.isShowingMore,y=d.items,b=d.refine,S=d.searchForItems,m=d.toggleShowMore,x=R.useState(""),T=sb(x,2),M=T[0],w=T[1],_=R.useRef(null);function U(z){w(z),S(z)}function Z(z){b(z.value),U("")}function I(z){U(z.currentTarget.value)}function Y(){U("")}function re(){y.length>0&&(b(y[0].value),U(""))}var se=nb({resetButtonTitle:"Clear the search query",submitButtonTitle:"Submit the search query",noResultsText:"No results.",showMoreButtonText:function(ae){return ae.isShowingMore?"Show less":"Show more"}},f),J={items:y,canRefine:p,onRefine:Z,query:M,searchBox:t&&R.createElement(wc,{inputRef:_,placeholder:r,isSearchStalled:!1,value:M,onChange:I,onReset:Y,onSubmit:re,translations:{submitButtonTitle:se.submitButtonTitle,resetButtonTitle:se.resetButtonTitle}}),noResults:t&&g&&y.length===0&&se.noResultsText,canToggleShowMore:v,onToggleShowMore:m,isShowingMore:P,translations:{showMoreButtonText:se.showMoreButtonText}};return R.createElement(zy,ba({},h,J,{showMore:o}))}function Yr(e){"@babel/helpers - typeof";return Yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yr(e)}var pb=["queryHook","searchAsYouType","translations"];function wa(){return wa=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xb(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Rb(e){var t=e.queryHook,r=e.searchAsYouType,n=r===void 0?!0:r,i=e.translations,a=Eb(e,pb),o=Sy({queryHook:t},{$$widgetType:"ais.searchBox"}),s=o.query,c=o.refine,u=o.isSearchStalled,l=R.useState(s),f=bb(l,2),h=f[0],d=f[1],p=R.useRef(null);function v(S){d(S),n&&c(S)}function g(){v(""),n||c("")}function P(S){v(S.currentTarget.value)}function y(S){n||c(h),a.onSubmit&&a.onSubmit(S)}s!==h&&document.activeElement!==p.current&&d(s);var b={inputRef:p,isSearchStalled:u,onChange:P,onReset:g,onSubmit:y,value:h,translations:vb({submitButtonTitle:"Submit the search query",resetButtonTitle:"Clear the search query"},i)};return R.createElement(wc,wa({},a,b))}var jb=["items","value","onChange","classNames"];function Sa(){return Sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Tb(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Ab(e){var t=e.items,r=e.value,n=e.onChange,i=n===void 0?function(){}:n,a=e.classNames,o=a===void 0?{}:a,s=_b(e,jb);return R.createElement("div",Sa({},s,{className:Se("ais-SortBy",o.root,s.className)}),R.createElement("select",{className:Se("ais-SortBy-select",o.select),onChange:function(u){return i(u.target.value)},value:r},t.map(function(c){return R.createElement("option",{className:Se("ais-SortBy-option",o.option),key:c.value,value:c.value},c.label)})))}var $b=["items","transformItems"];function Oa(){return Oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Fb(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Ib(e){var t=e.items,r=e.transformItems,n=Cb(e,$b),i=jy({items:t,transformItems:r},{$$widgetType:"ais.sortBy"}),a=i.currentRefinement,o=i.options,s=i.refine,c={items:o,value:a,onChange:s};return R.createElement(Ab,Oa({},n,c))}const Nb=e=>Array.isArray(e)?A.jsx("span",{children:e.join(", ")}):A.jsx("span",{children:e}),kb=({hit:e,onHitClick:t,children:r})=>A.jsx("a",{className:"hitLink",onClick:t?()=>t(e):()=>null,children:r}),Db=({hit:e,hitConfig:t,onHitClick:r,hitWrapperComponent:n,getHitWrapperProps:i})=>{const a=n||kb,o=R.useMemo(()=>i?i(e):{hit:e,onHitClick:r},[i,e,r]);return A.jsx(a,{...o,className:"hitLink",children:A.jsxs("li",{className:"hit",children:[A.jsxs("div",{className:"left",children:[t.headlineAttribute?A.jsx("h2",{className:"headline",children:t.renderHeadlineAttribute?t.renderHeadlineAttribute(e):e[t.headlineAttribute]}):null,t.leftColumnItems.map(s=>{if(s.renderDisplay||e[s.attribute])return A.jsxs("p",{className:"hitData",children:[A.jsx("span",{title:s.caption,children:s.icon}),A.jsx("strong",{children:s.renderDisplay?s.renderDisplay(e):Nb(e[s.attribute])})]},s.attribute)})]}),A.jsx("div",{className:"right",children:A.jsxs("div",{className:"summary",children:[t.rightPanel.label?A.jsx("h3",{children:t.rightPanel.label}):null,A.jsx("p",{children:A.jsx(zr,{attribute:t.rightPanel.attribute,hit:e,highlightedTagName:"mark"})})]})})]})})},G={commandement:{en:"Commandment",fr:"Commandement"},titulature:{en:"Title",fr:"Titulature"},city:{en:"City",fr:"Ville"},place_given:{en:"Place Given",fr:"Date de Lieu"},search:{en:"Search",fr:"Rechercher"},number_of_order:{en:"Number of Order",fr:"Numero d'ordre"},reset:{en:"Clear filters",fr:"Effacer les filtres"},searchHere:{en:"Search here...",fr:"Recherchez ici..."},to:{en:"To",fr:"à"},summary:{en:"Summary",fr:"Sommaire"},text:{en:"Text",fr:"Texte"},year:{en:"Year",fr:"Année"},date:{en:"Date",fr:"Date"},month:{en:"Month",fr:"Mois"},day:{en:"Day",fr:"Jour"},references:{en:"References",fr:"Références"},comments:{en:"Comments",fr:"Commentaires"},emptyField:{en:"This field is empty.",fr:"Ce champ est vide."},error:{en:"Error",fr:"Erreur"},documentNotFound:{en:"Document not found",fr:"Document introuvable"},sort:{en:"Sort",fr:"Trier"},chronologicalAsc:{en:"Chronological asc.",fr:"Chronologique asc."},chronologicalDesc:{en:"Chronological desc.",fr:"Chronologique desc."},numberOrderAsc:{en:"Number order asc.",fr:"Numéro d'ordre asc."},numberOrderDesc:{en:"Number order desc.",fr:"Numéro d'ordre desc."},relevance:{en:"Relevance",fr:"Pertinence"},showMore:{en:"Show more",fr:"Montre plus"},loading:{en:"Loading...",fr:"Chargement..."},noResults:{en:"No results.",fr:"Aucun résultat."},keywords:{en:"Keywords",fr:"Mots-clé"},archive:{en:"Archive",fr:"Archive"},origDate:{en:"Original Date",fr:"Date Originale"},origPlace:{en:"Original Place",fr:"Lieu Originale"},works:{en:"Works",fr:"Oeuvres"},formerShelfmarks:{en:"Former Shelfmarks",fr:"Ancienne notation d'étagère"},shelfmarks:{en:"Shelfmarks",fr:"Notation d'étagère"},shelfmarkSections:{en:"Shelfmark Sections",fr:"Sections de notation d'étagère"},provenance:{en:"Provenance",fr:"Provenance"},sections:{en:"Section",fr:"Section"},title:{en:"Title",fr:"Titre"},genericTitle:{en:"Generic Title",fr:"Titre Générique"},publicationDate:{en:"Publication Date",fr:"Date d'édition"},publicationLocation:{en:"Publication Location",fr:"Lieu d'édition"},parentEdition:{en:"Parent Edition",fr:"Édition parente"},status:{en:"Status",fr:"Statut"},line:{en:"Line",fr:"Ligne"},author:{en:"Author",fr:"Auteur"},format:{en:"Format",fr:"Format"},publisher:{en:"Publisher",fr:"Éditeur"},type:{en:"Type",fr:"Type"},draft:{en:"Draft",fr:"Brouillon"},published:{en:"Published",fr:"Publié"},archived:{en:"Archived",fr:"Archivé"},print:{en:"Print",fr:"Imprimé"},manuscript:{en:"Manuscript",fr:"Manuscrit"}},Pa=(e,t)=>e.map(r=>({...r,label:G[r.value.toLocaleLowerCase()]?G[r.value.toLocaleLowerCase()][t]:r.label})),Mb=e=>{const{hits:t,isLastPage:r,showMore:n}=Kg(e),{locale:i}=e,[a,o]=R.useState(!0);if(R.useEffect(()=>{a&&t.length>0&&o(!1)},[t,a]),a)return A.jsx("p",{className:"center",children:G.loading[i]});if(t.length===0)return A.jsx("p",{className:"center",children:G.noResults[i]});const s=()=>r?A.jsx("button",{disabled:!0,className:"ais-InfiniteHits-loadMore",children:G.showMore[i]}):A.jsx("button",{onClick:()=>n(),className:"ais-InfiniteHits-loadMore",children:G.showMore[i]});return A.jsxs(A.Fragment,{children:[A.jsx("ul",{className:"hitList",children:t.map(c=>A.jsx(Db,{locale:i,hit:c,hitConfig:e.hitConfig,onHitClick:e.onHitClick,hitWrapperComponent:e.hitWrapperComponent,getHitWrapperProps:e.getHitWrapperProps},c.id))}),s()]})};var Ea={exports:{}},Fn={exports:{}},Oe={};/** @license React v16.13.1 +As this is not supported, please make sure to only use this attribute with one of the two operators.`)),z;var N=F.refinementList&&F.refinementList[a],C=z.clearRefinements(a),k=H?C.addDisjunctiveFacet(a):C.addFacet(a),B=k.maxValuesPerFacet||0,x=Math.max(B,f?d:u),Q=k.setQueryParameter("maxValuesPerFacet",x);if(!N){var $=H?"disjunctiveFacetsRefinements":"facetsRefinements";return Q.setQueryParameters(Br({},$,Ae(Ae({},Q[$]),{},Br({},a,[]))))}return N.reduce(function(ee,G){return H?ee.addDisjunctiveFacetRefinement(a,G):ee.addFacetRefinement(a,G)},Q)}}}};const dy=fy;function hy(e,t){return Wt(dy,e,t)}function qr(e){"@babel/helpers - typeof";return qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qr(e)}function mc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jt(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:Ue;return Zt(t,gy()),function(n){var i=n||{},a=i.queryHook,o=a===void 0?yy:a,s,c;return{$$type:"ais.searchBox",init:function(l){var f=l.instantSearchInstance;t(jt(jt({},this.getWidgetRenderState(l)),{},{instantSearchInstance:f}),!0)},render:function(l){var f=l.instantSearchInstance;t(jt(jt({},this.getWidgetRenderState(l)),{},{instantSearchInstance:f}),!1)},dispose:function(l){var f=l.state;return r(),f.setQueryParameter("query",void 0)},getRenderState:function(l,f){return jt(jt({},l),{},{searchBox:this.getWidgetRenderState(f)})},getWidgetRenderState:function(l){var f=l.helper,h=l.searchMetadata,d=l.state;return s||(s=function(v){o(v,function(g){return f.setQuery(g).search()})},c=function(){f.setQuery("").search()}),{query:d.query||"",refine:s,clear:c,widgetParams:n,isSearchStalled:h.isSearchStalled}},getWidgetUiState:function(l,f){var h=f.searchParameters,d=h.query||"";return d===""||l&&l.query===d?l:jt(jt({},l),{},{query:d})},getWidgetSearchParameters:function(l,f){var h=f.uiState;return l.setQueryParameter("query",h.query||"")}}}};const wy=by;function Sy(e,t){return Wt(wy,e,t)}function Vr(e){"@babel/helpers - typeof";return Vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vr(e)}function gc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tt(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:Ue;Zt(t,yc());var n={};return function(i){var a=i||{},o=a.items,s=a.transformItems,c=s===void 0?function(u){return u}:s;if(!Array.isArray(o))throw new Error(yc("The `items` option expects an array of objects."));return{$$type:"ais.sortBy",init:function(l){var f=l.instantSearchInstance,h=this.getWidgetRenderState(l),d=h.currentRefinement,p=br(o,function(v){return v.value===d});process.env.NODE_ENV==="development"&&ge(p!==void 0,'The index named "'.concat(d,'" is not listed in the `items` of `sortBy`.')),t(Tt(Tt({},h),{},{instantSearchInstance:f}),!0)},render:function(l){var f=l.instantSearchInstance;t(Tt(Tt({},this.getWidgetRenderState(l)),{},{instantSearchInstance:f}),!1)},dispose:function(l){var f=l.state;return r(),n.initialIndex?f.setIndex(n.initialIndex):f},getRenderState:function(l,f){return Tt(Tt({},l),{},{sortBy:this.getWidgetRenderState(f)})},getWidgetRenderState:function(l){var f=l.results,h=l.helper,d=l.state,p=l.parent;!n.initialIndex&&p&&(n.initialIndex=p.getIndexName()),n.setIndex||(n.setIndex=function(g){h.setIndex(g).search()});var v=f?f.nbHits===0:!0;return{currentRefinement:d.index,options:c(o,{results:f}),refine:n.setIndex,hasNoResults:v,canRefine:!v&&o.length>0,widgetParams:i}},getWidgetUiState:function(l,f){var h=f.searchParameters,d=h.index;return Tt(Tt({},l),{},{sortBy:d!==n.initialIndex?d:void 0})},getWidgetSearchParameters:function(l,f){var h=f.uiState;return l.setQueryParameter("index",h.sortBy||n.initialIndex||l.index)}}}};const Ry=Ey;function _y(e,t){return Wt(Ry,e,t)}function Se(){for(var e=arguments.length,t=new Array(e),r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ay(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function $y(e){var t=e.isShowingMore,r=e.translations,n=Ty(e,jy);return R.createElement("button",n,r.showMoreButtonText({isShowingMore:t}))}var Cy=["parts","highlightedTagName","nonHighlightedTagName","separator","className","classNames"];function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Iy(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Ny(e){var t=e.classNames,r=e.children,n=e.highlightedTagName,i=e.isHighlighted,a=e.nonHighlightedTagName,o=i?n:a;return R.createElement(o,{className:i?t.highlighted:t.nonHighlighted},r)}function ky(e){var t=e.parts,r=e.highlightedTagName,n=r===void 0?"mark":r,i=e.nonHighlightedTagName,a=i===void 0?"span":i,o=e.separator,s=o===void 0?", ":o,c=e.className,u=e.classNames,l=Fy(e,Cy);return R.createElement("span",pa({},l,{className:Se(u.root,c)}),t.map(function(f,h){var d=h===t.length-1;return R.createElement(R.Fragment,{key:h},f.map(function(p,v){return R.createElement(Ny,{key:v,classNames:u,highlightedTagName:n,nonHighlightedTagName:a,isHighlighted:p.isHighlighted},p.value)}),!d&&R.createElement("span",{className:u.separator},s))}))}var Dy=["classNames"];function va(){return va=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ly(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function bc(e){var t=e.classNames,r=t===void 0?{}:t,n=My(e,Dy);return R.createElement(ky,va({classNames:{root:Se("ais-Highlight",r.root),highlighted:Se("ais-Highlight-highlighted",r.highlighted),nonHighlighted:Se("ais-Highlight-nonHighlighted",r.nonHighlighted),separator:Se("ais-Highlight-separator",r.separator)}},n))}var Hy=["hit","attribute","highlightedTagName","nonHighlightedTagName","separator"];function ma(){return ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Uy(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function zr(e){var t=e.hit,r=e.attribute,n=e.highlightedTagName,i=e.nonHighlightedTagName,a=e.separator,o=Wy(e,Hy),s=wr(t._highlightResult,r)||[],c=Array.isArray(s)?s:[s],u=c.map(function(l){return wn(Li(l.value||""))});return R.createElement(bc,ma({},o,{parts:u,highlightedTagName:n,nonHighlightedTagName:i,separator:a}))}var By=["canRefine","items","onRefine","query","searchBox","noResults","showMore","canToggleShowMore","onToggleShowMore","isShowingMore","className","classNames","translations"];function ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Vy(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function zy(e){var t=e.canRefine,r=e.items,n=e.onRefine,i=e.query,a=e.searchBox,o=e.noResults,s=e.showMore,c=e.canToggleShowMore,u=e.onToggleShowMore,l=e.isShowingMore,f=e.className,h=e.classNames,d=h===void 0?{}:h,p=e.translations,v=qy(e,By);return R.createElement("div",ga({},v,{className:Se("ais-RefinementList",d.root,!t&&Se("ais-RefinementList--noRefinement",d.noRefinementRoot),f)}),a&&R.createElement("div",{className:Se("ais-RefinementList-searchBox",d.searchBox)},a),o?R.createElement("div",{className:Se("ais-RefinementList-noResults",d.noResults)},o):R.createElement("ul",{className:Se("ais-RefinementList-list",d.list)},r.map(function(g){return R.createElement("li",{key:g.value,className:Se("ais-RefinementList-item",d.item,g.isRefined&&Se("ais-RefinementList-item--selected",d.selectedItem))},R.createElement("label",{className:Se("ais-RefinementList-label",d.label)},R.createElement("input",{checked:g.isRefined,className:Se("ais-RefinementList-checkbox",d.checkbox),type:"checkbox",value:g.value,onChange:function(){n(g)}}),R.createElement("span",{className:Se("ais-RefinementList-labelText",d.labelText)},i.length>0?R.createElement(bc,{parts:[wn(Li(g.highlighted||""))]}):g.label),R.createElement("span",{className:Se("ais-RefinementList-count",d.count)},g.count)))})),s&&R.createElement($y,{className:Se("ais-RefinementList-showMore",d.showMore,!c&&Se("ais-RefinementList-showMore--disabled",d.disabledShowMore)),disabled:!c,onClick:u,isShowingMore:l,translations:p}))}var Qy=["formRef","inputRef","isSearchStalled","onChange","onReset","onSubmit","placeholder","value","autoFocus","resetIconComponent","submitIconComponent","loadingIconComponent","classNames","translations"];function ya(){return ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ky(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Gy=R.createElement("path",{d:"M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"});function Xy(e){var t=e.classNames;return R.createElement("svg",{className:Se("ais-SearchBox-submitIcon",t.submitIcon),width:"10",height:"10",viewBox:"0 0 40 40","aria-hidden":"true"},Gy)}var Zy=R.createElement("path",{d:"M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"});function Jy(e){var t=e.classNames;return R.createElement("svg",{className:Se("ais-SearchBox-resetIcon",t.resetIcon),viewBox:"0 0 20 20",width:"10",height:"10","aria-hidden":"true"},Zy)}var eb=R.createElement("g",{fill:"none",fillRule:"evenodd"},R.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},R.createElement("circle",{strokeOpacity:".5",cx:"18",cy:"18",r:"18"}),R.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},R.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}))));function tb(e){var t=e.classNames;return R.createElement("svg",{width:"16",height:"16",viewBox:"0 0 38 38",stroke:"#444",className:Se("ais-SearchBox-loadingIcon",t.loadingIcon),"aria-hidden":"true"},eb)}function wc(e){var t=e.formRef,r=e.inputRef,n=e.isSearchStalled,i=e.onChange,a=e.onReset,o=e.onSubmit,s=e.placeholder,c=e.value,u=e.autoFocus,l=e.resetIconComponent,f=l===void 0?Jy:l,h=e.submitIconComponent,d=h===void 0?Xy:h,p=e.loadingIconComponent,v=p===void 0?tb:p,g=e.classNames,P=g===void 0?{}:g,y=e.translations,b=Yy(e,Qy);function S(E){E.preventDefault(),E.stopPropagation(),o&&o(E),r.current&&r.current.blur()}function m(E){E.preventDefault(),E.stopPropagation(),a(E),r.current&&r.current.focus()}return R.createElement("div",ya({},b,{className:Se("ais-SearchBox",P.root,b.className)}),R.createElement("form",{ref:t,action:"",className:Se("ais-SearchBox-form",P.form),noValidate:!0,onSubmit:S,onReset:m},R.createElement("input",{ref:r,className:Se("ais-SearchBox-input",P.input),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",placeholder:s,spellCheck:!1,maxLength:512,type:"search",value:c,onChange:i,autoFocus:u}),R.createElement("button",{className:Se("ais-SearchBox-submit",P.submit),type:"submit",title:y.submitButtonTitle},R.createElement(d,{classNames:P})),R.createElement("button",{className:Se("ais-SearchBox-reset",P.reset),type:"reset",title:y.resetButtonTitle,hidden:c.length===0||n},R.createElement(f,{classNames:P})),R.createElement("span",{className:Se("ais-SearchBox-loadingIndicator",P.loadingIndicator),hidden:!n},R.createElement(v,{classNames:P}))))}function Qr(e){"@babel/helpers - typeof";return Qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qr(e)}var rb=["searchable","searchablePlaceholder","attribute","operator","limit","showMore","showMoreLimit","sortBy","escapeFacetValues","transformItems","translations"];function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hb(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Le(e){var t=e.searchable,r=e.searchablePlaceholder,n=e.attribute,i=e.operator,a=e.limit,o=e.showMore,s=e.showMoreLimit,c=e.sortBy,u=e.escapeFacetValues,l=e.transformItems,f=e.translations,h=db(e,rb),d=hy({attribute:n,operator:i,limit:a,showMore:o,showMoreLimit:s,sortBy:c,escapeFacetValues:u,transformItems:l},{$$widgetType:"ais.refinementList"}),p=d.canRefine,v=d.canToggleShowMore,g=d.isFromSearch,P=d.isShowingMore,y=d.items,b=d.refine,S=d.searchForItems,m=d.toggleShowMore,E=R.useState(""),A=sb(E,2),M=A[0],w=A[1],j=R.useRef(null);function U(z){w(z),S(z)}function Z(z){b(z.value),U("")}function I(z){U(z.currentTarget.value)}function Y(){U("")}function re(){y.length>0&&(b(y[0].value),U(""))}var se=nb({resetButtonTitle:"Clear the search query",submitButtonTitle:"Submit the search query",noResultsText:"No results.",showMoreButtonText:function(ae){return ae.isShowingMore?"Show less":"Show more"}},f),J={items:y,canRefine:p,onRefine:Z,query:M,searchBox:t&&R.createElement(wc,{inputRef:j,placeholder:r,isSearchStalled:!1,value:M,onChange:I,onReset:Y,onSubmit:re,translations:{submitButtonTitle:se.submitButtonTitle,resetButtonTitle:se.resetButtonTitle}}),noResults:t&&g&&y.length===0&&se.noResultsText,canToggleShowMore:v,onToggleShowMore:m,isShowingMore:P,translations:{showMoreButtonText:se.showMoreButtonText}};return R.createElement(zy,ba({},h,J,{showMore:o}))}function Yr(e){"@babel/helpers - typeof";return Yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yr(e)}var pb=["queryHook","searchAsYouType","translations"];function wa(){return wa=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Eb(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Rb(e){var t=e.queryHook,r=e.searchAsYouType,n=r===void 0?!0:r,i=e.translations,a=xb(e,pb),o=Sy({queryHook:t},{$$widgetType:"ais.searchBox"}),s=o.query,c=o.refine,u=o.isSearchStalled,l=R.useState(s),f=bb(l,2),h=f[0],d=f[1],p=R.useRef(null);function v(S){d(S),n&&c(S)}function g(){v(""),n||c("")}function P(S){v(S.currentTarget.value)}function y(S){n||c(h),a.onSubmit&&a.onSubmit(S)}s!==h&&document.activeElement!==p.current&&d(s);var b={inputRef:p,isSearchStalled:u,onChange:P,onReset:g,onSubmit:y,value:h,translations:vb({submitButtonTitle:"Submit the search query",resetButtonTitle:"Clear the search query"},i)};return R.createElement(wc,wa({},a,b))}var _b=["items","value","onChange","classNames"];function Sa(){return Sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Tb(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Ab(e){var t=e.items,r=e.value,n=e.onChange,i=n===void 0?function(){}:n,a=e.classNames,o=a===void 0?{}:a,s=jb(e,_b);return R.createElement("div",Sa({},s,{className:Se("ais-SortBy",o.root,s.className)}),R.createElement("select",{className:Se("ais-SortBy-select",o.select),onChange:function(u){return i(u.target.value)},value:r},t.map(function(c){return R.createElement("option",{className:Se("ais-SortBy-option",o.option),key:c.value,value:c.value},c.label)})))}var $b=["items","transformItems"];function Oa(){return Oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Fb(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Ib(e){var t=e.items,r=e.transformItems,n=Cb(e,$b),i=_y({items:t,transformItems:r},{$$widgetType:"ais.sortBy"}),a=i.currentRefinement,o=i.options,s=i.refine,c={items:o,value:a,onChange:s};return R.createElement(Ab,Oa({},n,c))}const Nb=e=>Array.isArray(e)?T.jsx("span",{children:e.join(", ")}):T.jsx("span",{children:e}),kb=({hit:e,onHitClick:t,children:r})=>T.jsx("a",{className:"hitLink",onClick:t?()=>t(e):()=>null,children:r}),Db=({hit:e,hitConfig:t,onHitClick:r,hitWrapperComponent:n,getHitWrapperProps:i})=>{const a=n||kb,o=R.useMemo(()=>i?i(e):{hit:e,onHitClick:r},[i,e,r]);return T.jsx(a,{...o,className:"hitLink",children:T.jsxs("li",{className:"hit",children:[T.jsxs("div",{className:"left",children:[t.headlineAttribute?T.jsx("h2",{className:"headline",children:t.renderHeadlineAttribute?t.renderHeadlineAttribute(e):e[t.headlineAttribute]}):null,t.leftColumnItems.map(s=>{if(s.renderDisplay||e[s.attribute])return T.jsxs("p",{className:"hitData",children:[T.jsx("span",{title:s.caption,children:s.icon}),T.jsx("strong",{children:s.renderDisplay?s.renderDisplay(e):Nb(e[s.attribute])})]},s.attribute)})]}),T.jsx("div",{className:"right",children:T.jsxs("div",{className:"summary",children:[t.rightPanel.label?T.jsx("h3",{children:t.rightPanel.label}):null,T.jsx("p",{children:T.jsx(zr,{attribute:t.rightPanel.attribute,hit:e,highlightedTagName:"mark"})})]})})]})})},K={commandement:{en:"Commandment",fr:"Commandement"},titulature:{en:"Title",fr:"Titulature"},city:{en:"City",fr:"Ville"},place_given:{en:"Place Given",fr:"Date de Lieu"},search:{en:"Search",fr:"Rechercher"},number_of_order:{en:"Number of Order",fr:"Numero d'ordre"},reset:{en:"Clear filters",fr:"Effacer les filtres"},searchHere:{en:"Search here...",fr:"Recherchez ici..."},to:{en:"To",fr:"à"},summary:{en:"Summary",fr:"Sommaire"},text:{en:"Text",fr:"Texte"},year:{en:"Year",fr:"Année"},date:{en:"Date",fr:"Date"},month:{en:"Month",fr:"Mois"},day:{en:"Day",fr:"Jour"},references:{en:"References",fr:"Références"},comments:{en:"Comments",fr:"Commentaires"},emptyField:{en:"This field is empty.",fr:"Ce champ est vide."},error:{en:"Error",fr:"Erreur"},documentNotFound:{en:"Document not found",fr:"Document introuvable"},sort:{en:"Sort",fr:"Trier"},chronologicalAsc:{en:"Chronological asc.",fr:"Chronologique asc."},chronologicalDesc:{en:"Chronological desc.",fr:"Chronologique desc."},numberOrderAsc:{en:"Number order asc.",fr:"Numéro d'ordre asc."},numberOrderDesc:{en:"Number order desc.",fr:"Numéro d'ordre desc."},relevance:{en:"Relevance",fr:"Pertinence"},showMore:{en:"Show more",fr:"Montre plus"},loading:{en:"Loading...",fr:"Chargement..."},noResults:{en:"No results.",fr:"Aucun résultat."},keywords:{en:"Keywords",fr:"Mots-clé"},archive:{en:"Archive",fr:"Archive"},archivePlace:{en:"Archive Place",fr:"???"},origDate:{en:"Original Date",fr:"Date Originale"},origPlace:{en:"Original Place",fr:"Lieu Originale"},works:{en:"Works",fr:"Oeuvres"},formerShelfmarks:{en:"Former Shelfmarks",fr:"Ancienne notation d'étagère"},formerShelfmark:{en:"Former Shelfmark",fr:"Ancienne notation d'étagère"},shelfmarks:{en:"Shelfmarks",fr:"Notation d'étagère"},shelfmark:{en:"Shelfmark",fr:"Notation d'étagère"},shelfmarkSections:{en:"Shelfmark Sections",fr:"Sections de notation d'étagère"},shelfmarkSection:{en:"Shelfmark Section",fr:"Section de notation d'étagère"},provenance:{en:"Provenance",fr:"Provenance"},sections:{en:"Section",fr:"Section"},title:{en:"Title",fr:"Titre"},genericTitle:{en:"Generic Title",fr:"Titre Générique"},publicationDate:{en:"Publication Date",fr:"Date d'édition"},publicationLocation:{en:"Publication Location",fr:"Lieu d'édition"},parentEdition:{en:"Parent Edition",fr:"Édition parente"},status:{en:"Status",fr:"Statut"},line:{en:"Line",fr:"Ligne"},author:{en:"Author",fr:"Auteur"},format:{en:"Format",fr:"Format"},publisher:{en:"Publisher",fr:"Éditeur"},type:{en:"Type",fr:"Type"},draft:{en:"Draft",fr:"Brouillon"},published:{en:"Published",fr:"Publié"},archived:{en:"Archived",fr:"Archivé"},print:{en:"Print",fr:"Imprimé"},manuscript:{en:"Manuscript",fr:"Manuscrit"},catalogNumber:{en:"Catalog number",fr:"???"},numberOfFolios:{en:"Number of folios",fr:"???"},pageSize:{en:"Page size",fr:"???"},textBlockSize:{en:"Text block size",fr:"???"},numberOfLines:{en:"Number of lines",fr:"???"},places:{en:"Places",fr:"???"},dates:{en:"Dates",fr:"???"},measures:{en:"Measures",fr:"???"}},Pa=(e,t)=>e.map(r=>({...r,label:K[r.value.toLocaleLowerCase()]?K[r.value.toLocaleLowerCase()][t]:r.label})),Mb=e=>{const{hits:t,isLastPage:r,showMore:n}=Kg(e),{locale:i}=e,[a,o]=R.useState(!0);if(R.useEffect(()=>{a&&t.length>0&&o(!1)},[t,a]),a)return T.jsx("p",{className:"center",children:K.loading[i]});if(t.length===0)return T.jsx("p",{className:"center",children:K.noResults[i]});const s=()=>r?T.jsx("button",{disabled:!0,className:"ais-InfiniteHits-loadMore",children:K.showMore[i]}):T.jsx("button",{onClick:()=>n(),className:"ais-InfiniteHits-loadMore",children:K.showMore[i]});return T.jsxs(T.Fragment,{children:[T.jsx("ul",{className:"hitList",children:t.map(c=>T.jsx(Db,{locale:i,hit:c,hitConfig:e.hitConfig,onHitClick:e.onHitClick,hitWrapperComponent:e.hitWrapperComponent,getHitWrapperProps:e.getHitWrapperProps},c.id))}),s()]})};var xa={exports:{}},Fn={exports:{}},Oe={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var xc;function Lb(){if(xc)return Oe;xc=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(m){if(typeof m=="object"&&m!==null){var x=m.$$typeof;switch(x){case t:switch(m=m.type,m){case c:case u:case n:case a:case i:case f:return m;default:switch(m=m&&m.$$typeof,m){case s:case l:case p:case d:case o:return m;default:return x}}case r:return x}}}function S(m){return b(m)===u}return Oe.AsyncMode=c,Oe.ConcurrentMode=u,Oe.ContextConsumer=s,Oe.ContextProvider=o,Oe.Element=t,Oe.ForwardRef=l,Oe.Fragment=n,Oe.Lazy=p,Oe.Memo=d,Oe.Portal=r,Oe.Profiler=a,Oe.StrictMode=i,Oe.Suspense=f,Oe.isAsyncMode=function(m){return S(m)||b(m)===c},Oe.isConcurrentMode=S,Oe.isContextConsumer=function(m){return b(m)===s},Oe.isContextProvider=function(m){return b(m)===o},Oe.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},Oe.isForwardRef=function(m){return b(m)===l},Oe.isFragment=function(m){return b(m)===n},Oe.isLazy=function(m){return b(m)===p},Oe.isMemo=function(m){return b(m)===d},Oe.isPortal=function(m){return b(m)===r},Oe.isProfiler=function(m){return b(m)===a},Oe.isStrictMode=function(m){return b(m)===i},Oe.isSuspense=function(m){return b(m)===f},Oe.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===u||m===a||m===i||m===f||m===h||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===d||m.$$typeof===o||m.$$typeof===s||m.$$typeof===l||m.$$typeof===g||m.$$typeof===P||m.$$typeof===y||m.$$typeof===v)},Oe.typeOf=b,Oe}var Pe={};/** @license React v16.13.1 + */var Ec;function Lb(){if(Ec)return Oe;Ec=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(m){if(typeof m=="object"&&m!==null){var E=m.$$typeof;switch(E){case t:switch(m=m.type,m){case c:case u:case n:case a:case i:case f:return m;default:switch(m=m&&m.$$typeof,m){case s:case l:case p:case d:case o:return m;default:return E}}case r:return E}}}function S(m){return b(m)===u}return Oe.AsyncMode=c,Oe.ConcurrentMode=u,Oe.ContextConsumer=s,Oe.ContextProvider=o,Oe.Element=t,Oe.ForwardRef=l,Oe.Fragment=n,Oe.Lazy=p,Oe.Memo=d,Oe.Portal=r,Oe.Profiler=a,Oe.StrictMode=i,Oe.Suspense=f,Oe.isAsyncMode=function(m){return S(m)||b(m)===c},Oe.isConcurrentMode=S,Oe.isContextConsumer=function(m){return b(m)===s},Oe.isContextProvider=function(m){return b(m)===o},Oe.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},Oe.isForwardRef=function(m){return b(m)===l},Oe.isFragment=function(m){return b(m)===n},Oe.isLazy=function(m){return b(m)===p},Oe.isMemo=function(m){return b(m)===d},Oe.isPortal=function(m){return b(m)===r},Oe.isProfiler=function(m){return b(m)===a},Oe.isStrictMode=function(m){return b(m)===i},Oe.isSuspense=function(m){return b(m)===f},Oe.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===u||m===a||m===i||m===f||m===h||typeof m=="object"&&m!==null&&(m.$$typeof===p||m.$$typeof===d||m.$$typeof===o||m.$$typeof===s||m.$$typeof===l||m.$$typeof===g||m.$$typeof===P||m.$$typeof===y||m.$$typeof===v)},Oe.typeOf=b,Oe}var Pe={};/** @license React v16.13.1 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Rc;function Hb(){return Rc||(Rc=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(j){return typeof j=="string"||typeof j=="function"||j===n||j===u||j===a||j===i||j===f||j===h||typeof j=="object"&&j!==null&&(j.$$typeof===p||j.$$typeof===d||j.$$typeof===o||j.$$typeof===s||j.$$typeof===l||j.$$typeof===g||j.$$typeof===P||j.$$typeof===y||j.$$typeof===v)}function S(j){if(typeof j=="object"&&j!==null){var fe=j.$$typeof;switch(fe){case t:var pe=j.type;switch(pe){case c:case u:case n:case a:case i:case f:return pe;default:var ue=pe&&pe.$$typeof;switch(ue){case s:case l:case p:case d:case o:return ue;default:return fe}}case r:return fe}}}var m=c,x=u,T=s,M=o,w=t,_=l,U=n,Z=p,I=d,Y=r,re=a,se=i,J=f,z=!1;function ae(j){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(j)||S(j)===c}function F(j){return S(j)===u}function H(j){return S(j)===s}function N(j){return S(j)===o}function C(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function k(j){return S(j)===l}function B(j){return S(j)===n}function E(j){return S(j)===p}function Q(j){return S(j)===d}function $(j){return S(j)===r}function ee(j){return S(j)===a}function K(j){return S(j)===i}function W(j){return S(j)===f}Pe.AsyncMode=m,Pe.ConcurrentMode=x,Pe.ContextConsumer=T,Pe.ContextProvider=M,Pe.Element=w,Pe.ForwardRef=_,Pe.Fragment=U,Pe.Lazy=Z,Pe.Memo=I,Pe.Portal=Y,Pe.Profiler=re,Pe.StrictMode=se,Pe.Suspense=J,Pe.isAsyncMode=ae,Pe.isConcurrentMode=F,Pe.isContextConsumer=H,Pe.isContextProvider=N,Pe.isElement=C,Pe.isForwardRef=k,Pe.isFragment=B,Pe.isLazy=E,Pe.isMemo=Q,Pe.isPortal=$,Pe.isProfiler=ee,Pe.isStrictMode=K,Pe.isSuspense=W,Pe.isValidElementType=b,Pe.typeOf=S}()),Pe}var jc;function _c(){return jc||(jc=1,process.env.NODE_ENV==="production"?Fn.exports=Lb():Fn.exports=Hb()),Fn.exports}/* + */var Rc;function Hb(){return Rc||(Rc=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(_){return typeof _=="string"||typeof _=="function"||_===n||_===u||_===a||_===i||_===f||_===h||typeof _=="object"&&_!==null&&(_.$$typeof===p||_.$$typeof===d||_.$$typeof===o||_.$$typeof===s||_.$$typeof===l||_.$$typeof===g||_.$$typeof===P||_.$$typeof===y||_.$$typeof===v)}function S(_){if(typeof _=="object"&&_!==null){var fe=_.$$typeof;switch(fe){case t:var pe=_.type;switch(pe){case c:case u:case n:case a:case i:case f:return pe;default:var ue=pe&&pe.$$typeof;switch(ue){case s:case l:case p:case d:case o:return ue;default:return fe}}case r:return fe}}}var m=c,E=u,A=s,M=o,w=t,j=l,U=n,Z=p,I=d,Y=r,re=a,se=i,J=f,z=!1;function ae(_){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(_)||S(_)===c}function F(_){return S(_)===u}function H(_){return S(_)===s}function N(_){return S(_)===o}function C(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function k(_){return S(_)===l}function B(_){return S(_)===n}function x(_){return S(_)===p}function Q(_){return S(_)===d}function $(_){return S(_)===r}function ee(_){return S(_)===a}function G(_){return S(_)===i}function W(_){return S(_)===f}Pe.AsyncMode=m,Pe.ConcurrentMode=E,Pe.ContextConsumer=A,Pe.ContextProvider=M,Pe.Element=w,Pe.ForwardRef=j,Pe.Fragment=U,Pe.Lazy=Z,Pe.Memo=I,Pe.Portal=Y,Pe.Profiler=re,Pe.StrictMode=se,Pe.Suspense=J,Pe.isAsyncMode=ae,Pe.isConcurrentMode=F,Pe.isContextConsumer=H,Pe.isContextProvider=N,Pe.isElement=C,Pe.isForwardRef=k,Pe.isFragment=B,Pe.isLazy=x,Pe.isMemo=Q,Pe.isPortal=$,Pe.isProfiler=ee,Pe.isStrictMode=G,Pe.isSuspense=W,Pe.isValidElementType=b,Pe.typeOf=S}()),Pe}var _c;function jc(){return _c||(_c=1,process.env.NODE_ENV==="production"?Fn.exports=Lb():Fn.exports=Hb()),Fn.exports}/* object-assign (c) Sindre Sorhus @license MIT -*/var xa,Tc;function Wb(){if(Tc)return xa;Tc=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(o).map(function(l){return o[l]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(l){u[l]=l}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return xa=i()?Object.assign:function(a,o){for(var s,c=n(a),u,l=1;l1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function H(N,C,k,B,E){for(var Q=N[C],$=0;$0?", expected one of type ["+ee.join(", ")+"]":"";return new v("Invalid "+Q+" `"+$+"` supplied to "+("`"+E+"`"+fe+"."))}return g(C)}function _(){function F(H,N,C,k,B){return Y(H[N])?null:new v("Invalid "+k+" `"+B+"` supplied to "+("`"+C+"`, expected a ReactNode."))}return g(F)}function U(F,H,N,C,k){return new v((F||"React class")+": "+H+" type `"+N+"."+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+k+"`.")}function Z(F){function H(N,C,k,B,E){var Q=N[C],$=se(Q);if($!=="object")return new v("Invalid "+B+" `"+E+"` of type `"+$+"` "+("supplied to `"+k+"`, expected `object`."));for(var ee in F){var K=F[ee];if(typeof K!="function")return U(k,B,E,ee,J(K));var W=K(Q,ee,k,B,E+"."+ee,r);if(W)return W}return null}return g(H)}function I(F){function H(N,C,k,B,E){var Q=N[C],$=se(Q);if($!=="object")return new v("Invalid "+B+" `"+E+"` of type `"+$+"` "+("supplied to `"+k+"`, expected `object`."));var ee=t({},N[C],F);for(var K in ee){var W=F[K];if(n(F,K)&&typeof W!="function")return U(k,B,E,K,J(W));if(!W)return new v("Invalid "+B+" `"+E+"` key `"+K+"` supplied to `"+k+"`.\nBad object: "+JSON.stringify(N[C],null," ")+` -Valid keys: `+JSON.stringify(Object.keys(F),null," "));var j=W(Q,K,k,B,E+"."+K,r);if(j)return j}return null}return g(H)}function Y(F){switch(typeof F){case"number":case"string":case"undefined":return!0;case"boolean":return!F;case"object":if(Array.isArray(F))return F.every(Y);if(F===null||s(F))return!0;var H=f(F);if(H){var N=H.call(F),C;if(H!==F.entries){for(;!(C=N.next()).done;)if(!Y(C.value))return!1}else for(;!(C=N.next()).done;){var k=C.value;if(k&&!Y(k[1]))return!1}}else return!1;return!0;default:return!1}}function re(F,H){return F==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function se(F){var H=typeof F;return Array.isArray(F)?"array":F instanceof RegExp?"object":re(H,F)?"symbol":H}function J(F){if(typeof F>"u"||F===null)return""+F;var H=se(F);if(H==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return H}function z(F){var H=J(F);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function ae(F){return!F.constructor||!F.constructor.name?h:F.constructor.name}return d.checkPropTypes=i,d.resetWarningCache=i.resetWarningCache,d.PropTypes=d,d},Aa}var $a,Nc;function qb(){if(Nc)return $a;Nc=1;var e=ja();function t(){}function r(){}return r.resetWarningCache=t,$a=function(){function n(o,s,c,u,l,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},$a}if(process.env.NODE_ENV!=="production"){var Vb=_c(),zb=!0;Ea.exports=Bb()(Vb.isElement,zb)}else Ea.exports=qb()();var Qb=Ea.exports;const X=Qt(Qb);var Yb=["color","size","title"];function Ca(){return Ca=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Gb(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Fa=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=Kb(e,Yb);return R.createElement("svg",Ca({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{fillRule:"evenodd",d:"M8 10a.5.5 0 0 0 .5-.5V3.707l2.146 2.147a.5.5 0 0 0 .708-.708l-3-3a.5.5 0 0 0-.708 0l-3 3a.5.5 0 1 0 .708.708L7.5 3.707V9.5a.5.5 0 0 0 .5.5zm-7 2.5a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13a.5.5 0 0 1-.5-.5z"}))});Fa.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},Fa.defaultProps={color:"currentColor",size:"1em",title:null};const Xb=Fa;var Zb=["color","size","title"];function Ia(){return Ia=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function e0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Na=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=Jb(e,Zb);return R.createElement("svg",Ia({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"m8 0 6.61 3h.89a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5H15v7a.5.5 0 0 1 .485.38l.5 2a.498.498 0 0 1-.485.62H.5a.498.498 0 0 1-.485-.62l.5-2A.501.501 0 0 1 1 13V6H.5a.5.5 0 0 1-.5-.5v-2A.5.5 0 0 1 .5 3h.89L8 0ZM3.777 3h8.447L8 1 3.777 3ZM2 6v7h1V6H2Zm2 0v7h2.5V6H4Zm3.5 0v7h1V6h-1Zm2 0v7H12V6H9.5ZM13 6v7h1V6h-1Zm2-1V4H1v1h14Zm-.39 9H1.39l-.25 1h13.72l-.25-1Z"}))});Na.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},Na.defaultProps={color:"currentColor",size:"1em",title:null};const kc=Na;var t0=["color","size","title"];function ka(){return ka=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function n0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Da=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=r0(e,t0);return R.createElement("svg",ka({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M4 11H2v3h2v-3zm5-4H7v7h2V7zm5-5v12h-2V2h2zm-2-1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1h-2zM6 7a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V7zm-5 4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-3z"}))});Da.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},Da.defaultProps={color:"currentColor",size:"1em",title:null};const i0=Da;var a0=["color","size","title"];function Ma(){return Ma=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function s0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var La=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=o0(e,a0);return R.createElement("svg",Ma({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M1 2.828c.885-.37 2.154-.769 3.388-.893 1.33-.134 2.458.063 3.112.752v9.746c-.935-.53-2.12-.603-3.213-.493-1.18.12-2.37.461-3.287.811V2.828zm7.5-.141c.654-.689 1.782-.886 3.112-.752 1.234.124 2.503.523 3.388.893v9.923c-.918-.35-2.107-.692-3.287-.81-1.094-.111-2.278-.039-3.213.492V2.687zM8 1.783C7.015.936 5.587.81 4.287.94c-1.514.153-3.042.672-3.994 1.105A.5.5 0 0 0 0 2.5v11a.5.5 0 0 0 .707.455c.882-.4 2.303-.881 3.68-1.02 1.409-.142 2.59.087 3.223.877a.5.5 0 0 0 .78 0c.633-.79 1.814-1.019 3.222-.877 1.378.139 2.8.62 3.681 1.02A.5.5 0 0 0 16 13.5v-11a.5.5 0 0 0-.293-.455c-.952-.433-2.48-.952-3.994-1.105C10.413.809 8.985.936 8 1.783z"}))});La.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},La.defaultProps={color:"currentColor",size:"1em",title:null};const u0=La;var c0=["color","size","title"];function Ha(){return Ha=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function f0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Wa=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=l0(e,c0);return R.createElement("svg",Ha({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M4 2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1ZM4 5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1ZM7.5 5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1Zm2.5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1ZM4.5 8a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1Zm2.5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1Z"}),R.createElement("path",{d:"M2 1a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V1Zm11 0H3v14h3v-2.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V15h3V1Z"}))});Wa.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},Wa.defaultProps={color:"currentColor",size:"1em",title:null};const Dc=Wa;var d0=["color","size","title"];function Ua(){return Ua=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function p0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Ba=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=h0(e,d0);return R.createElement("svg",Ua({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"}))});Ba.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},Ba.defaultProps={color:"currentColor",size:"1em",title:null};const Mc=Ba;var v0=["color","size","title"];function qa(){return qa=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function g0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Va=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=m0(e,v0);return R.createElement("svg",qa({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM2 2a1 1 0 0 0-1 1v1h14V3a1 1 0 0 0-1-1H2zm13 3H1v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V5z"}),R.createElement("path",{d:"M11 7.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1z"}))});Va.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},Va.defaultProps={color:"currentColor",size:"1em",title:null};const y0=Va;var b0=["color","size","title"];function za(){return za=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function S0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Qa=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=w0(e,b0);return R.createElement("svg",za({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zM4.5 9a.5.5 0 0 1 0-1h7a.5.5 0 0 1 0 1h-7zM4 10.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm.5 2.5a.5.5 0 0 1 0-1h4a.5.5 0 0 1 0 1h-4z"}))});Qa.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},Qa.defaultProps={color:"currentColor",size:"1em",title:null};const O0=Qa;var P0=["color","size","title"];function Ya(){return Ya=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function x0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Ka=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=E0(e,P0);return R.createElement("svg",Ya({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M6 10.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z"}))});Ka.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},Ka.defaultProps={color:"currentColor",size:"1em",title:null};const R0=Ka;var j0=["color","size","title"];function Ga(){return Ga=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function T0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Xa=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=_0(e,j0);return R.createElement("svg",Ga({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M.54 3.87.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3h3.982a2 2 0 0 1 1.992 2.181l-.637 7A2 2 0 0 1 13.174 14H2.826a2 2 0 0 1-1.991-1.819l-.637-7a1.99 1.99 0 0 1 .342-1.31zM2.19 4a1 1 0 0 0-.996 1.09l.637 7a1 1 0 0 0 .995.91h10.348a1 1 0 0 0 .995-.91l.637-7A1 1 0 0 0 13.81 4H2.19zm4.69-1.707A1 1 0 0 0 6.172 2H2.5a1 1 0 0 0-1 .981l.006.139C1.72 3.042 1.95 3 2.19 3h5.396l-.707-.707z"}))});Xa.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},Xa.defaultProps={color:"currentColor",size:"1em",title:null};const A0=Xa;var $0=["color","size","title"];function Za(){return Za=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function F0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Ja=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=C0(e,$0);return R.createElement("svg",Za({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M12.166 8.94c-.524 1.062-1.234 2.12-1.96 3.07A31.493 31.493 0 0 1 8 14.58a31.481 31.481 0 0 1-2.206-2.57c-.726-.95-1.436-2.008-1.96-3.07C3.304 7.867 3 6.862 3 6a5 5 0 0 1 10 0c0 .862-.305 1.867-.834 2.94zM8 16s6-5.686 6-10A6 6 0 0 0 2 6c0 4.314 6 10 6 10z"}),R.createElement("path",{d:"M8 8a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0 1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"}))});Ja.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},Ja.defaultProps={color:"currentColor",size:"1em",title:null};const I0=Ja;var N0=["color","size","title"];function eo(){return eo=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function D0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var to=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=k0(e,N0);return R.createElement("svg",eo({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{fillRule:"evenodd",d:"M16 .5a.5.5 0 0 0-.598-.49L10.5.99 5.598.01a.5.5 0 0 0-.196 0l-5 1A.5.5 0 0 0 0 1.5v14a.5.5 0 0 0 .598.49l4.902-.98 4.902.98a.502.502 0 0 0 .196 0l5-1A.5.5 0 0 0 16 14.5V.5zM5 14.09V1.11l.5-.1.5.1v12.98l-.402-.08a.498.498 0 0 0-.196 0L5 14.09zm5 .8V1.91l.402.08a.5.5 0 0 0 .196 0L11 1.91v12.98l-.5.1-.5-.1z"}))});to.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},to.defaultProps={color:"currentColor",size:"1em",title:null};const M0=to;var L0=["color","size","title"];function ro(){return ro=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function W0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var no=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=H0(e,L0);return R.createElement("svg",ro({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4Zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10Z"}))});no.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},no.defaultProps={color:"currentColor",size:"1em",title:null};const Lc=no;var U0=["color","size","title"];function io(){return io=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function q0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var ao=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=B0(e,U0);return R.createElement("svg",io({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M4.146.146A.5.5 0 0 1 4.5 0h7a.5.5 0 0 1 .5.5c0 .68-.342 1.174-.646 1.479-.126.125-.25.224-.354.298v4.431l.078.048c.203.127.476.314.751.555C12.36 7.775 13 8.527 13 9.5a.5.5 0 0 1-.5.5h-4v4.5c0 .276-.224 1.5-.5 1.5s-.5-1.224-.5-1.5V10h-4a.5.5 0 0 1-.5-.5c0-.973.64-1.725 1.17-2.189A5.921 5.921 0 0 1 5 6.708V2.277a2.77 2.77 0 0 1-.354-.298C4.342 1.674 4 1.179 4 .5a.5.5 0 0 1 .146-.354zm1.58 1.408-.002-.001.002.001zm-.002-.001.002.001A.5.5 0 0 1 6 2v5a.5.5 0 0 1-.276.447h-.002l-.012.007-.054.03a4.922 4.922 0 0 0-.827.58c-.318.278-.585.596-.725.936h7.792c-.14-.34-.407-.658-.725-.936a4.915 4.915 0 0 0-.881-.61l-.012-.006h-.002A.5.5 0 0 1 10 7V2a.5.5 0 0 1 .295-.458 1.775 1.775 0 0 0 .351-.271c.08-.08.155-.17.214-.271H5.14c.06.1.133.191.214.271a1.78 1.78 0 0 0 .37.282z"}))});ao.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},ao.defaultProps={color:"currentColor",size:"1em",title:null};const V0=ao;var z0=["color","size","title"];function oo(){return oo=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Y0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var so=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=Q0(e,z0);return R.createElement("svg",oo({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{fillRule:"evenodd",d:"M2 12.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm4-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5z"}))});so.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},so.defaultProps={color:"currentColor",size:"1em",title:null};const K0=so;var G0=["color","size","title"];function uo(){return uo=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Z0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var co=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=X0(e,G0);return R.createElement("svg",uo({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"}))});co.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},co.defaultProps={color:"currentColor",size:"1em",title:null};const J0=co,ew=gi.div` +*/var Ea,Tc;function Wb(){if(Tc)return Ea;Tc=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(o).map(function(l){return o[l]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(l){u[l]=l}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ea=i()?Object.assign:function(a,o){for(var s,c=n(a),u,l=1;l1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function H(N,C,k,B,x){for(var Q=N[C],$=0;$0?", expected one of type ["+ee.join(", ")+"]":"";return new v("Invalid "+Q+" `"+$+"` supplied to "+("`"+x+"`"+fe+"."))}return g(C)}function j(){function F(H,N,C,k,B){return Y(H[N])?null:new v("Invalid "+k+" `"+B+"` supplied to "+("`"+C+"`, expected a ReactNode."))}return g(F)}function U(F,H,N,C,k){return new v((F||"React class")+": "+H+" type `"+N+"."+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+k+"`.")}function Z(F){function H(N,C,k,B,x){var Q=N[C],$=se(Q);if($!=="object")return new v("Invalid "+B+" `"+x+"` of type `"+$+"` "+("supplied to `"+k+"`, expected `object`."));for(var ee in F){var G=F[ee];if(typeof G!="function")return U(k,B,x,ee,J(G));var W=G(Q,ee,k,B,x+"."+ee,r);if(W)return W}return null}return g(H)}function I(F){function H(N,C,k,B,x){var Q=N[C],$=se(Q);if($!=="object")return new v("Invalid "+B+" `"+x+"` of type `"+$+"` "+("supplied to `"+k+"`, expected `object`."));var ee=t({},N[C],F);for(var G in ee){var W=F[G];if(n(F,G)&&typeof W!="function")return U(k,B,x,G,J(W));if(!W)return new v("Invalid "+B+" `"+x+"` key `"+G+"` supplied to `"+k+"`.\nBad object: "+JSON.stringify(N[C],null," ")+` +Valid keys: `+JSON.stringify(Object.keys(F),null," "));var _=W(Q,G,k,B,x+"."+G,r);if(_)return _}return null}return g(H)}function Y(F){switch(typeof F){case"number":case"string":case"undefined":return!0;case"boolean":return!F;case"object":if(Array.isArray(F))return F.every(Y);if(F===null||s(F))return!0;var H=f(F);if(H){var N=H.call(F),C;if(H!==F.entries){for(;!(C=N.next()).done;)if(!Y(C.value))return!1}else for(;!(C=N.next()).done;){var k=C.value;if(k&&!Y(k[1]))return!1}}else return!1;return!0;default:return!1}}function re(F,H){return F==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function se(F){var H=typeof F;return Array.isArray(F)?"array":F instanceof RegExp?"object":re(H,F)?"symbol":H}function J(F){if(typeof F>"u"||F===null)return""+F;var H=se(F);if(H==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return H}function z(F){var H=J(F);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function ae(F){return!F.constructor||!F.constructor.name?h:F.constructor.name}return d.checkPropTypes=i,d.resetWarningCache=i.resetWarningCache,d.PropTypes=d,d},Aa}var $a,Nc;function qb(){if(Nc)return $a;Nc=1;var e=_a();function t(){}function r(){}return r.resetWarningCache=t,$a=function(){function n(o,s,c,u,l,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},$a}if(process.env.NODE_ENV!=="production"){var Vb=jc(),zb=!0;xa.exports=Bb()(Vb.isElement,zb)}else xa.exports=qb()();var Qb=xa.exports;const X=Qt(Qb);var Yb=["color","size","title"];function Ca(){return Ca=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Gb(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Fa=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=Kb(e,Yb);return R.createElement("svg",Ca({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{fillRule:"evenodd",d:"M8 10a.5.5 0 0 0 .5-.5V3.707l2.146 2.147a.5.5 0 0 0 .708-.708l-3-3a.5.5 0 0 0-.708 0l-3 3a.5.5 0 1 0 .708.708L7.5 3.707V9.5a.5.5 0 0 0 .5.5zm-7 2.5a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 0 1h-13a.5.5 0 0 1-.5-.5z"}))});Fa.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},Fa.defaultProps={color:"currentColor",size:"1em",title:null};const Xb=Fa;var Zb=["color","size","title"];function Ia(){return Ia=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function e0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Na=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=Jb(e,Zb);return R.createElement("svg",Ia({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"m8 0 6.61 3h.89a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5H15v7a.5.5 0 0 1 .485.38l.5 2a.498.498 0 0 1-.485.62H.5a.498.498 0 0 1-.485-.62l.5-2A.501.501 0 0 1 1 13V6H.5a.5.5 0 0 1-.5-.5v-2A.5.5 0 0 1 .5 3h.89L8 0ZM3.777 3h8.447L8 1 3.777 3ZM2 6v7h1V6H2Zm2 0v7h2.5V6H4Zm3.5 0v7h1V6h-1Zm2 0v7H12V6H9.5ZM13 6v7h1V6h-1Zm2-1V4H1v1h14Zm-.39 9H1.39l-.25 1h13.72l-.25-1Z"}))});Na.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},Na.defaultProps={color:"currentColor",size:"1em",title:null};const kc=Na;var t0=["color","size","title"];function ka(){return ka=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function n0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Da=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=r0(e,t0);return R.createElement("svg",ka({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M4 11H2v3h2v-3zm5-4H7v7h2V7zm5-5v12h-2V2h2zm-2-1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1h-2zM6 7a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V7zm-5 4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-3z"}))});Da.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},Da.defaultProps={color:"currentColor",size:"1em",title:null};const i0=Da;var a0=["color","size","title"];function Ma(){return Ma=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function s0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var La=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=o0(e,a0);return R.createElement("svg",Ma({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M1 2.828c.885-.37 2.154-.769 3.388-.893 1.33-.134 2.458.063 3.112.752v9.746c-.935-.53-2.12-.603-3.213-.493-1.18.12-2.37.461-3.287.811V2.828zm7.5-.141c.654-.689 1.782-.886 3.112-.752 1.234.124 2.503.523 3.388.893v9.923c-.918-.35-2.107-.692-3.287-.81-1.094-.111-2.278-.039-3.213.492V2.687zM8 1.783C7.015.936 5.587.81 4.287.94c-1.514.153-3.042.672-3.994 1.105A.5.5 0 0 0 0 2.5v11a.5.5 0 0 0 .707.455c.882-.4 2.303-.881 3.68-1.02 1.409-.142 2.59.087 3.223.877a.5.5 0 0 0 .78 0c.633-.79 1.814-1.019 3.222-.877 1.378.139 2.8.62 3.681 1.02A.5.5 0 0 0 16 13.5v-11a.5.5 0 0 0-.293-.455c-.952-.433-2.48-.952-3.994-1.105C10.413.809 8.985.936 8 1.783z"}))});La.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},La.defaultProps={color:"currentColor",size:"1em",title:null};const u0=La;var c0=["color","size","title"];function Ha(){return Ha=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function f0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Wa=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=l0(e,c0);return R.createElement("svg",Ha({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M4 2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1ZM4 5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1ZM7.5 5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1Zm2.5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1ZM4.5 8a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1Zm2.5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1Zm3.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1Z"}),R.createElement("path",{d:"M2 1a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V1Zm11 0H3v14h3v-2.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V15h3V1Z"}))});Wa.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},Wa.defaultProps={color:"currentColor",size:"1em",title:null};const Dc=Wa;var d0=["color","size","title"];function Ua(){return Ua=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function p0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Ba=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=h0(e,d0);return R.createElement("svg",Ua({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"}))});Ba.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},Ba.defaultProps={color:"currentColor",size:"1em",title:null};const Mc=Ba;var v0=["color","size","title"];function qa(){return qa=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function g0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Va=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=m0(e,v0);return R.createElement("svg",qa({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM2 2a1 1 0 0 0-1 1v1h14V3a1 1 0 0 0-1-1H2zm13 3H1v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V5z"}),R.createElement("path",{d:"M11 7.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1z"}))});Va.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},Va.defaultProps={color:"currentColor",size:"1em",title:null};const y0=Va;var b0=["color","size","title"];function za(){return za=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function S0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Qa=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=w0(e,b0);return R.createElement("svg",za({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zM4.5 9a.5.5 0 0 1 0-1h7a.5.5 0 0 1 0 1h-7zM4 10.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm.5 2.5a.5.5 0 0 1 0-1h4a.5.5 0 0 1 0 1h-4z"}))});Qa.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},Qa.defaultProps={color:"currentColor",size:"1em",title:null};const O0=Qa;var P0=["color","size","title"];function Ya(){return Ya=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function E0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Ka=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=x0(e,P0);return R.createElement("svg",Ya({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M6 10.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z"}))});Ka.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},Ka.defaultProps={color:"currentColor",size:"1em",title:null};const R0=Ka;var _0=["color","size","title"];function Ga(){return Ga=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function T0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Xa=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=j0(e,_0);return R.createElement("svg",Ga({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M.54 3.87.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3h3.982a2 2 0 0 1 1.992 2.181l-.637 7A2 2 0 0 1 13.174 14H2.826a2 2 0 0 1-1.991-1.819l-.637-7a1.99 1.99 0 0 1 .342-1.31zM2.19 4a1 1 0 0 0-.996 1.09l.637 7a1 1 0 0 0 .995.91h10.348a1 1 0 0 0 .995-.91l.637-7A1 1 0 0 0 13.81 4H2.19zm4.69-1.707A1 1 0 0 0 6.172 2H2.5a1 1 0 0 0-1 .981l.006.139C1.72 3.042 1.95 3 2.19 3h5.396l-.707-.707z"}))});Xa.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},Xa.defaultProps={color:"currentColor",size:"1em",title:null};const A0=Xa;var $0=["color","size","title"];function Za(){return Za=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function F0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var Ja=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=C0(e,$0);return R.createElement("svg",Za({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M12.166 8.94c-.524 1.062-1.234 2.12-1.96 3.07A31.493 31.493 0 0 1 8 14.58a31.481 31.481 0 0 1-2.206-2.57c-.726-.95-1.436-2.008-1.96-3.07C3.304 7.867 3 6.862 3 6a5 5 0 0 1 10 0c0 .862-.305 1.867-.834 2.94zM8 16s6-5.686 6-10A6 6 0 0 0 2 6c0 4.314 6 10 6 10z"}),R.createElement("path",{d:"M8 8a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0 1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"}))});Ja.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},Ja.defaultProps={color:"currentColor",size:"1em",title:null};const I0=Ja;var N0=["color","size","title"];function eo(){return eo=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function D0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var to=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=k0(e,N0);return R.createElement("svg",eo({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{fillRule:"evenodd",d:"M16 .5a.5.5 0 0 0-.598-.49L10.5.99 5.598.01a.5.5 0 0 0-.196 0l-5 1A.5.5 0 0 0 0 1.5v14a.5.5 0 0 0 .598.49l4.902-.98 4.902.98a.502.502 0 0 0 .196 0l5-1A.5.5 0 0 0 16 14.5V.5zM5 14.09V1.11l.5-.1.5.1v12.98l-.402-.08a.498.498 0 0 0-.196 0L5 14.09zm5 .8V1.91l.402.08a.5.5 0 0 0 .196 0L11 1.91v12.98l-.5.1-.5-.1z"}))});to.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},to.defaultProps={color:"currentColor",size:"1em",title:null};const M0=to;var L0=["color","size","title"];function ro(){return ro=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function W0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var no=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=H0(e,L0);return R.createElement("svg",ro({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4Zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10Z"}))});no.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},no.defaultProps={color:"currentColor",size:"1em",title:null};const Lc=no;var U0=["color","size","title"];function io(){return io=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function q0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var ao=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=B0(e,U0);return R.createElement("svg",io({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M4.146.146A.5.5 0 0 1 4.5 0h7a.5.5 0 0 1 .5.5c0 .68-.342 1.174-.646 1.479-.126.125-.25.224-.354.298v4.431l.078.048c.203.127.476.314.751.555C12.36 7.775 13 8.527 13 9.5a.5.5 0 0 1-.5.5h-4v4.5c0 .276-.224 1.5-.5 1.5s-.5-1.224-.5-1.5V10h-4a.5.5 0 0 1-.5-.5c0-.973.64-1.725 1.17-2.189A5.921 5.921 0 0 1 5 6.708V2.277a2.77 2.77 0 0 1-.354-.298C4.342 1.674 4 1.179 4 .5a.5.5 0 0 1 .146-.354zm1.58 1.408-.002-.001.002.001zm-.002-.001.002.001A.5.5 0 0 1 6 2v5a.5.5 0 0 1-.276.447h-.002l-.012.007-.054.03a4.922 4.922 0 0 0-.827.58c-.318.278-.585.596-.725.936h7.792c-.14-.34-.407-.658-.725-.936a4.915 4.915 0 0 0-.881-.61l-.012-.006h-.002A.5.5 0 0 1 10 7V2a.5.5 0 0 1 .295-.458 1.775 1.775 0 0 0 .351-.271c.08-.08.155-.17.214-.271H5.14c.06.1.133.191.214.271a1.78 1.78 0 0 0 .37.282z"}))});ao.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},ao.defaultProps={color:"currentColor",size:"1em",title:null};const V0=ao;var z0=["color","size","title"];function oo(){return oo=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Y0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var so=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=Q0(e,z0);return R.createElement("svg",oo({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{fillRule:"evenodd",d:"M2 12.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm4-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5z"}))});so.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},so.defaultProps={color:"currentColor",size:"1em",title:null};const K0=so;var G0=["color","size","title"];function uo(){return uo=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Z0(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var co=R.forwardRef(function(e,t){var r=e.color,n=e.size,i=e.title,a=X0(e,G0);return R.createElement("svg",uo({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},a),i?R.createElement("title",null,i):null,R.createElement("path",{d:"M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"}))});co.propTypes={color:X.string,size:X.oneOfType([X.string,X.number]),title:X.string},co.defaultProps={color:"currentColor",size:"1em",title:null};const J0=co,ew=gi.div` background: #eee; padding: 20px; border-radius: 10px; margin-bottom: 2rem; width: 100%; box-shadow: 0 0 0 1px rgba(35, 38, 59, 0.05), 0 1px 3px 0 rgba(35, 38, 59, 0.15); -`,Ie=({header:e,children:t})=>A.jsxs(ew,{children:[e?A.jsx("span",{className:"header",children:e}):null,t]}),tw=gi.div` +`,Ie=({header:e,children:t})=>T.jsxs(ew,{children:[e?T.jsx("span",{className:"header",children:e}):null,t]}),tw=gi.div` padding: 10px; .search { @@ -596,10 +596,10 @@ padding: 10px; } } -`;var Fe=(e=>(e.Number="number",e.String="string",e))(Fe||{});const rw=[{name:"number_order",type:Fe.Number,label:G.number_of_order,limits:[1,600]},{name:"year",type:Fe.Number,label:G.year,limits:[1380,1460]},{name:"month",type:Fe.Number,label:G.month,limits:[1,12]},{name:"day",type:Fe.Number,label:G.day,limits:[1,31]},{name:"town.name",type:Fe.String,label:G.city},{name:"date_of_place.name",type:Fe.String,label:G.place_given},{name:"titulature.full_name",type:Fe.String,label:G.titulature},{name:"commandement.full_name",type:Fe.String,label:G.commandement},{name:"keywords",type:Fe.String,label:G.keywords},{name:"works.title",type:Fe.String,label:G.works},{name:"OrigDate",type:Fe.String,label:G.origDate},{name:"origPlace",type:Fe.String,label:G.origPlace},{name:"sections.shelfmark_sections_id.name",type:Fe.String,label:G.shelfmarkSections},{name:"provenance",type:Fe.String,label:G.provenance},{name:"archive",type:Fe.String,label:G.archive},{name:"shelfmark",type:Fe.String,label:G.shelfmarks},{name:"former_shelfmark",type:Fe.String,label:G.formerShelfmarks},{name:"status",type:Fe.String,label:G.status},{name:"author_id.full_name",type:Fe.String,label:G.author},{name:"format",type:Fe.String,label:G.format},{name:"type",type:Fe.String,label:G.type},{name:"publication_date",type:Fe.String,label:G.publicationDate},{name:"publication_location.name",type:Fe.String,label:G.publicationLocation},{name:"archives",type:Fe.String,label:G.archive}],nw=e=>e.refinements[0].type==="numeric",iw=e=>{const{items:t,refine:r}=Ig(e),{locale:n}=e,i=s=>{var l,f,h;const c=(l=rw.find(d=>d.name===s.attribute))==null?void 0:l.label[n];let u;if(nw(s)){const d=(f=s.refinements[0])==null?void 0:f.value,p=(h=s.refinements[1])==null?void 0:h.value;d&&p?u=[`${d} - ${p}`]:d?u=[`> ${d}`]:u=[`< ${p}`]}else u=s.refinements.map(d=>d.value);return{label:c||s.attribute,values:u}},a=t.map(s=>({display:i(s),original:s}));if(t.length===0)return null;const o=s=>{r(s.refinements[0])};return A.jsx("ul",{className:"currentRefinementList",children:a.map(s=>A.jsxs("li",{className:"currentRefinement",children:[A.jsxs("span",{className:"currentRefinementLabel",children:[s.display.label,": "]}),s.display.values.map(c=>A.jsxs("button",{onClick:()=>o(s.original),children:[A.jsx("span",{className:"currentRefinementValue",children:c}),A.jsx(J0,{})]},c))]},s.display.label))})},lo=({indexName:e,locale:t,children:r,searchClient:n,hitConfig:i,onHitClick:a,hitWrapperComponent:o,getHitWrapperProps:s})=>{const[c,u]=R.useState(!1),[l,f]=R.useState(!0),h=R.useRef(null),d=()=>{h.current&&l&&u(!c)};return R.useEffect(()=>{const p=g=>f(g.matches),v=window.matchMedia("(max-width: 800px)");return v.addEventListener("change",p),f(v.matches),()=>v.removeEventListener("change",p)},[]),R.useEffect(()=>{h.current&&u(!l)},[l]),R.useEffect(()=>{h.current&&(c?h.current.style.transform="translateX(0)":h.current.style.transform="translateX(-120vw)")},[c]),A.jsx(tw,{children:A.jsx("div",{className:"search",children:A.jsxs(wg,{indexName:e,searchClient:n,children:[A.jsx(uv,{attributesToSnippet:["texte:75"],hitsPerPage:20}),A.jsxs("div",{className:"leftPanel",children:[A.jsxs(Ie,{header:G.search[t],children:[A.jsx("button",{className:"filterButton",onClick:()=>d(),children:A.jsx(R0,{})}),A.jsx(Rb,{translations:{submitButtonTitle:G.searchHere[t]}})]}),A.jsx("div",{className:"filters",ref:h,children:i.sortFields?A.jsx(Ie,{header:G.sort[t],children:A.jsx(Ib,{items:i.sortFields})}):null}),r]}),A.jsxs("div",{className:"mainPanel",children:[A.jsx(iw,{locale:t}),A.jsx(Mb,{locale:t,hitConfig:i,onHitClick:a,hitWrapperComponent:o,getHitWrapperProps:s})]})]})})})},aw=e=>e.year&&e.month&&e.day?A.jsx("span",{children:new Date(e.year,e.month-1,e.day).toISOString().slice(0,10)}):A.jsx("span",{children:A.jsx("em",{children:"?"})}),fo=(e,t,r)=>{const n=t.split(".");let i=e;for(;n.length>0;)if(i[n[0]])i=i[n[0]],n.shift();else{i=null;break}return i?A.jsx(zr,{attribute:[t],hit:e}):A.jsx("span",{children:A.jsx("em",{children:G.emptyField[r]})})},At=(e,t,r)=>e[t]?A.jsx(zr,{attribute:[t],hit:e}):A.jsx("span",{children:A.jsx("em",{children:G.emptyField[r]})}),ow=ti("https://search.archivengine.com","adb8cdf811841ce52bf0e09ce1a9bb29e4bb2f3d12578f114b755420307f4030",{primaryKey:"id"}),sw=({locale:e,onHitClick:t,hitWrapperComponent:r,getHitWrapperProps:n})=>{const i=R.useMemo(()=>({leftColumnItems:[{attribute:"archive.name",icon:A.jsx(Dc,{}),caption:G.archive[e],renderDisplay:a=>At(a,"archive",e)},{attribute:"OrigDate",icon:A.jsx(Mc,{}),caption:G.origDate[e]},{attribute:"origPlace",icon:A.jsx(M0,{}),caption:G.origPlace[e]},{attribute:"works",icon:A.jsx(u0,{}),caption:G.works[e],renderDisplay:a=>a.works.map(o=>o.title).join(", ")}],rightPanel:{attribute:"text",label:G.text[e]},headlineAttribute:"catalog_number",renderHeadlineAttribute:a=>a.catalog_number?A.jsxs("span",{children:["#",A.jsx(zr,{attribute:"catalog_number",hit:a,highlightedTagName:"mark"})]}):A.jsx(A.Fragment,{})}),[e]);return A.jsx(yi,{children:A.jsxs(lo,{searchClient:ow,locale:e,indexName:"bischoff",hitConfig:i,onHitClick:t,hitWrapperComponent:r,getHitWrapperProps:n,children:[A.jsx(Ie,{header:G.works[e],children:A.jsx(We,{attribute:"works.title"})}),A.jsx(Ie,{header:G.origDate[e],children:A.jsx(We,{attribute:"OrigDate"})}),A.jsx(Ie,{header:G.origPlace[e],children:A.jsx(We,{attribute:"origPlace"})}),A.jsx(Ie,{header:G.sections[e],children:A.jsx(We,{attribute:"sections.shelfmark_sections_id.name"})}),A.jsx(Ie,{header:G.provenance[e],children:A.jsx(We,{attribute:"provenance"})}),A.jsx(Ie,{header:G.archive[e],children:A.jsx(We,{attribute:"archive"})}),A.jsx(Ie,{header:G.shelfmarks[e],children:A.jsx(We,{attribute:"shelfmark"})}),A.jsx(Ie,{header:G.formerShelfmarks[e],children:A.jsx(We,{attribute:"former_shelfmark"})})]})})},uw=ti("https://search.archivengine.com","adb8cdf811841ce52bf0e09ce1a9bb29e4bb2f3d12578f114b755420307f4030",{primaryKey:"id"}),cw=({locale:e,onHitClick:t,hitWrapperComponent:r,getHitWrapperProps:n})=>{const i=R.useMemo(()=>({leftColumnItems:[{attribute:"generic_title",icon:A.jsx(K0,{}),caption:G.genericTitle[e]},{attribute:"publication_date",icon:A.jsx(Mc,{}),caption:G.publicationDate[e]},{attribute:"publication_location.name",icon:A.jsx(V0,{}),caption:G.publicationLocation[e],renderDisplay:a=>fo(a,"publication_location.name",e)},{attribute:"parent_edition.title",icon:A.jsx(Xb,{}),caption:G.parentEdition[e],renderDisplay:a=>fo(a,"parent_edition.title",e)},{attribute:"status",icon:A.jsx(i0,{}),caption:G.status[e],renderDisplay:a=>At(a,"status",e)},{attribute:"line",icon:A.jsx(O0,{}),caption:G.line[e],renderDisplay:a=>At(a,"line",e)},{attribute:"format",icon:A.jsx(A0,{}),caption:G.format[e],renderDisplay:a=>At(a,"format",e)},{attribute:"author_id.full_name",icon:A.jsx(Lc,{}),caption:G.author[e],renderDisplay:a=>fo(a,"author_id.full_name",e)},{attribute:"archives",icon:A.jsx(kc,{}),caption:G.archive[e],render:a=>a.archives.join(", ")}],rightPanel:{attribute:"title"}}),[e]);return A.jsx(yi,{children:A.jsxs(lo,{searchClient:uw,locale:e,indexName:"rumpf",hitConfig:i,onHitClick:t,hitWrapperComponent:r,getHitWrapperProps:n,children:[A.jsx(Ie,{header:G.status[e],children:A.jsx(We,{attribute:"status",transformItems:a=>Pa(a,e)})}),A.jsx(Ie,{header:G.author[e],children:A.jsx(We,{attribute:"author_id.full_name"})}),A.jsx(Ie,{header:G.format[e],children:A.jsx(We,{attribute:"format",transformItems:a=>Pa(a,e)})}),A.jsx(Ie,{header:G.type[e],children:A.jsx(We,{attribute:"type",transformItems:a=>Pa(a,e)})}),A.jsx(Ie,{header:G.publicationDate[e],children:A.jsx(We,{attribute:"publication_date"})}),A.jsx(Ie,{header:G.publicationLocation[e],children:A.jsx(We,{attribute:"publication_location.name"})}),A.jsx(Ie,{header:G.archive[e],children:A.jsx(We,{attribute:"archives"})})]})})};function $t(e){"@babel/helpers - typeof";return $t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$t(e)}function lw(e,t){if($t(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($t(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fw(e){var t=lw(e,"string");return $t(t)==="symbol"?t:String(t)}function ct(e,t,r){return t=fw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ho(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r(e.Number="number",e.String="string",e))($e||{});const rw=[{name:"number_order",type:$e.Number,label:K.number_of_order,limits:[1,600]},{name:"year",type:$e.Number,label:K.year,limits:[1380,1460]},{name:"month",type:$e.Number,label:K.month,limits:[1,12]},{name:"day",type:$e.Number,label:K.day,limits:[1,31]},{name:"town.name",type:$e.String,label:K.city},{name:"date_of_place.name",type:$e.String,label:K.place_given},{name:"titulature.full_name",type:$e.String,label:K.titulature},{name:"commandement.full_name",type:$e.String,label:K.commandement},{name:"keywords",type:$e.String,label:K.keywords},{name:"works.title",type:$e.String,label:K.works},{name:"OrigDate",type:$e.String,label:K.origDate},{name:"origPlace",type:$e.String,label:K.origPlace},{name:"sections.shelfmark_sections_id.name",type:$e.String,label:K.shelfmarkSections},{name:"provenance",type:$e.String,label:K.provenance},{name:"archive",type:$e.String,label:K.archive},{name:"archive_place",type:$e.String,label:K.archivePlace},{name:"shelfmark",type:$e.String,label:K.shelfmarks},{name:"former_shelfmark",type:$e.String,label:K.formerShelfmarks},{name:"status",type:$e.String,label:K.status},{name:"author_id.full_name",type:$e.String,label:K.author},{name:"format",type:$e.String,label:K.format},{name:"type",type:$e.String,label:K.type},{name:"publication_date",type:$e.String,label:K.publicationDate},{name:"publication_location.name",type:$e.String,label:K.publicationLocation},{name:"archives",type:$e.String,label:K.archive}],nw=e=>e.refinements[0].type==="numeric",iw=e=>{const{items:t,refine:r}=Ig(e),{locale:n}=e,i=s=>{var l,f,h;const c=(l=rw.find(d=>d.name===s.attribute))==null?void 0:l.label[n];let u;if(nw(s)){const d=(f=s.refinements[0])==null?void 0:f.value,p=(h=s.refinements[1])==null?void 0:h.value;d&&p?u=[`${d} - ${p}`]:d?u=[`> ${d}`]:u=[`< ${p}`]}else u=s.refinements.map(d=>d.value);return{label:c||s.attribute,values:u}},a=t.map(s=>({display:i(s),original:s}));if(t.length===0)return null;const o=s=>{r(s.refinements[0])};return T.jsx("ul",{className:"currentRefinementList",children:a.map(s=>T.jsxs("li",{className:"currentRefinement",children:[T.jsxs("span",{className:"currentRefinementLabel",children:[s.display.label,": "]}),s.display.values.map(c=>T.jsxs("button",{onClick:()=>o(s.original),children:[T.jsx("span",{className:"currentRefinementValue",children:c}),T.jsx(J0,{})]},c))]},s.display.label))})},lo=({indexName:e,locale:t,children:r,searchClient:n,hitConfig:i,onHitClick:a,hitWrapperComponent:o,getHitWrapperProps:s})=>{const[c,u]=R.useState(!1),[l,f]=R.useState(!0),h=R.useRef(null),d=()=>{h.current&&l&&u(!c)};return R.useEffect(()=>{const p=g=>f(g.matches),v=window.matchMedia("(max-width: 800px)");return v.addEventListener("change",p),f(v.matches),()=>v.removeEventListener("change",p)},[]),R.useEffect(()=>{h.current&&u(!l)},[l]),R.useEffect(()=>{h.current&&(c?h.current.style.transform="translateX(0)":h.current.style.transform="translateX(-120vw)")},[c]),T.jsx(tw,{children:T.jsx("div",{className:"search",children:T.jsxs(wg,{indexName:e,searchClient:n,children:[T.jsx(uv,{attributesToSnippet:["texte:75"],hitsPerPage:20}),T.jsxs("div",{className:"leftPanel",children:[T.jsxs(Ie,{header:K.search[t],children:[T.jsx("button",{className:"filterButton",onClick:()=>d(),children:T.jsx(R0,{})}),T.jsx(Rb,{translations:{submitButtonTitle:K.searchHere[t]}})]}),T.jsx("div",{className:"filters",ref:h,children:i.sortFields?T.jsx(Ie,{header:K.sort[t],children:T.jsx(Ib,{items:i.sortFields})}):null}),r]}),T.jsxs("div",{className:"mainPanel",children:[T.jsx(iw,{locale:t}),T.jsx(Mb,{locale:t,hitConfig:i,onHitClick:a,hitWrapperComponent:o,getHitWrapperProps:s})]})]})})})},aw=e=>e.year&&e.month&&e.day?T.jsx("span",{children:new Date(e.year,e.month-1,e.day).toISOString().slice(0,10)}):T.jsx("span",{children:T.jsx("em",{children:"?"})}),fo=(e,t,r)=>{const n=t.split(".");let i=e;for(;n.length>0;)if(i[n[0]])i=i[n[0]],n.shift();else{i=null;break}return i?T.jsx(zr,{attribute:[t],hit:e}):T.jsx("span",{children:T.jsx("em",{children:K.emptyField[r]})})},At=(e,t,r)=>e[t]?T.jsx(zr,{attribute:[t],hit:e}):T.jsx("span",{children:T.jsx("em",{children:K.emptyField[r]})}),ow=ti("https://search.archivengine.com","adb8cdf811841ce52bf0e09ce1a9bb29e4bb2f3d12578f114b755420307f4030",{primaryKey:"id"}),sw=({locale:e,onHitClick:t,hitWrapperComponent:r,getHitWrapperProps:n})=>{const i=R.useMemo(()=>({leftColumnItems:[{attribute:"archive.name",icon:T.jsx(Dc,{}),caption:K.archive[e],renderDisplay:a=>At(a,"archive",e)},{attribute:"OrigDate",icon:T.jsx(Mc,{}),caption:K.origDate[e]},{attribute:"archive_place",icon:T.jsx(M0,{}),caption:K.archivePlace[e]},{attribute:"works",icon:T.jsx(u0,{}),caption:K.works[e],renderDisplay:a=>a.works.map(o=>o.title).join(", ")}],rightPanel:{attribute:"text",label:K.text[e]},headlineAttribute:"catalog_number",renderHeadlineAttribute:a=>a.catalog_number?T.jsxs("span",{children:["#",T.jsx(zr,{attribute:"catalog_number",hit:a,highlightedTagName:"mark"})]}):T.jsx(T.Fragment,{})}),[e]);return T.jsx(yi,{children:T.jsxs(lo,{searchClient:ow,locale:e,indexName:"bischoff",hitConfig:i,onHitClick:t,hitWrapperComponent:r,getHitWrapperProps:n,children:[T.jsx(Ie,{header:K.works[e],children:T.jsx(Le,{attribute:"works.title"})}),T.jsx(Ie,{header:K.origDate[e],children:T.jsx(Le,{attribute:"OrigDate"})}),T.jsx(Ie,{header:K.origPlace[e],children:T.jsx(Le,{attribute:"origPlace"})}),T.jsx(Ie,{header:K.sections[e],children:T.jsx(Le,{attribute:"sections.shelfmark_sections_id.name"})}),T.jsx(Ie,{header:K.provenance[e],children:T.jsx(Le,{attribute:"provenance"})}),T.jsx(Ie,{header:K.archive[e],children:T.jsx(Le,{attribute:"archive"})}),T.jsx(Ie,{header:K.archivePlace[e],children:T.jsx(Le,{attribute:"archive_place"})}),T.jsx(Ie,{header:K.shelfmarks[e],children:T.jsx(Le,{attribute:"shelfmark"})}),T.jsx(Ie,{header:K.formerShelfmarks[e],children:T.jsx(Le,{attribute:"former_shelfmark"})})]})})},uw=ti("https://search.archivengine.com","adb8cdf811841ce52bf0e09ce1a9bb29e4bb2f3d12578f114b755420307f4030",{primaryKey:"id"}),cw=({locale:e,onHitClick:t,hitWrapperComponent:r,getHitWrapperProps:n})=>{const i=R.useMemo(()=>({leftColumnItems:[{attribute:"generic_title",icon:T.jsx(K0,{}),caption:K.genericTitle[e]},{attribute:"publication_date",icon:T.jsx(Mc,{}),caption:K.publicationDate[e]},{attribute:"publication_location.name",icon:T.jsx(V0,{}),caption:K.publicationLocation[e],renderDisplay:a=>fo(a,"publication_location.name",e)},{attribute:"parent_edition.title",icon:T.jsx(Xb,{}),caption:K.parentEdition[e],renderDisplay:a=>fo(a,"parent_edition.title",e)},{attribute:"status",icon:T.jsx(i0,{}),caption:K.status[e],renderDisplay:a=>At(a,"status",e)},{attribute:"line",icon:T.jsx(O0,{}),caption:K.line[e],renderDisplay:a=>At(a,"line",e)},{attribute:"format",icon:T.jsx(A0,{}),caption:K.format[e],renderDisplay:a=>At(a,"format",e)},{attribute:"author_id.full_name",icon:T.jsx(Lc,{}),caption:K.author[e],renderDisplay:a=>fo(a,"author_id.full_name",e)},{attribute:"archives",icon:T.jsx(kc,{}),caption:K.archive[e],render:a=>a.archives.join(", ")}],rightPanel:{attribute:"title"}}),[e]);return T.jsx(yi,{children:T.jsxs(lo,{searchClient:uw,locale:e,indexName:"rumpf",hitConfig:i,onHitClick:t,hitWrapperComponent:r,getHitWrapperProps:n,children:[T.jsx(Ie,{header:K.status[e],children:T.jsx(Le,{attribute:"status",transformItems:a=>Pa(a,e)})}),T.jsx(Ie,{header:K.author[e],children:T.jsx(Le,{attribute:"author_id.full_name"})}),T.jsx(Ie,{header:K.format[e],children:T.jsx(Le,{attribute:"format",transformItems:a=>Pa(a,e)})}),T.jsx(Ie,{header:K.type[e],children:T.jsx(Le,{attribute:"type",transformItems:a=>Pa(a,e)})}),T.jsx(Ie,{header:K.publicationDate[e],children:T.jsx(Le,{attribute:"publication_date"})}),T.jsx(Ie,{header:K.publicationLocation[e],children:T.jsx(Le,{attribute:"publication_location.name"})}),T.jsx(Ie,{header:K.archive[e],children:T.jsx(Le,{attribute:"archives"})})]})})};function $t(e){"@babel/helpers - typeof";return $t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$t(e)}function lw(e,t){if($t(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($t(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fw(e){var t=lw(e,"string");return $t(t)==="symbol"?t:String(t)}function ct(e,t,r){return t=fw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ho(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=n.has(a);if(Gr(!c,"Warning: There may be circular references"),c)return!1;if(a===o)return!0;if(r&&s>1)return!1;n.add(a);var u=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var l=0;l=0)&&(r[i]=e[i]);return r}function Qc(e,t){if(e==null)return{};var r=_w(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Yc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gt(e){for(var t=1;t=oe.F1&&r<=oe.F12)return!1;switch(r){case oe.ALT:case oe.CAPS_LOCK:case oe.CONTEXT_MENU:case oe.CTRL:case oe.DOWN:case oe.END:case oe.ESC:case oe.HOME:case oe.INSERT:case oe.LEFT:case oe.MAC_FF_META:case oe.META:case oe.NUMLOCK:case oe.NUM_CENTER:case oe.PAGE_DOWN:case oe.PAGE_UP:case oe.PAUSE:case oe.PRINT_SCREEN:case oe.RIGHT:case oe.SHIFT:case oe.UP:case oe.WIN_KEY:case oe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=oe.ZERO&&t<=oe.NINE||t>=oe.NUM_ZERO&&t<=oe.NUM_MULTIPLY||t>=oe.A&&t<=oe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case oe.SPACE:case oe.QUESTION_MARK:case oe.NUM_PLUS:case oe.NUM_MINUS:case oe.NUM_PERIOD:case oe.NUM_DIVISION:case oe.SEMICOLON:case oe.DASH:case oe.EQUALS:case oe.COMMA:case oe.PERIOD:case oe.SLASH:case oe.APOSTROPHE:case oe.SINGLE_QUOTE:case oe.OPEN_SQUARE_BRACKET:case oe.BACKSLASH:case oe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Vt=te.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function go(e,t,r){return(e-t)/(r-t)}function yo(e,t,r,n){var i=go(t,r,n),a={};switch(e){case"rtl":a.right="".concat(i*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(i*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(i*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(i*100,"%"),a.transform="translateX(-50%)";break}return a}function ar(e,t){return Array.isArray(e)?e[t]:e}var Tw=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],Kc=te.forwardRef(function(e,t){var r,n,i=e.prefixCls,a=e.value,o=e.valueIndex,s=e.onStartMove,c=e.style,u=e.render,l=e.dragging,f=e.onOffsetChange,h=Qc(e,Tw),d=te.useContext(Vt),p=d.min,v=d.max,g=d.direction,P=d.disabled,y=d.keyboard,b=d.range,S=d.tabIndex,m=d.ariaLabelForHandle,x=d.ariaLabelledByForHandle,T=d.ariaValueTextFormatterForHandle,M="".concat(i,"-handle"),w=function(Y){P||s(Y,o)},_=function(Y){if(!P&&y){var re=null;switch(Y.which||Y.keyCode){case oe.LEFT:re=g==="ltr"||g==="btt"?-1:1;break;case oe.RIGHT:re=g==="ltr"||g==="btt"?1:-1;break;case oe.UP:re=g!=="ttb"?1:-1;break;case oe.DOWN:re=g!=="ttb"?-1:1;break;case oe.HOME:re="min";break;case oe.END:re="max";break;case oe.PAGE_UP:re=2;break;case oe.PAGE_DOWN:re=-2;break}re!==null&&(Y.preventDefault(),f(re,o))}},U=yo(g,a,p,v),Z=te.createElement("div",In({ref:t,className:Kr(M,(r={},ct(r,"".concat(M,"-").concat(o+1),b),ct(r,"".concat(M,"-dragging"),l),r)),style:gt(gt({},U),c),onMouseDown:w,onTouchStart:w,onKeyDown:_,tabIndex:P?null:ar(S,o),role:"slider","aria-valuemin":p,"aria-valuemax":v,"aria-valuenow":a,"aria-disabled":P,"aria-label":ar(m,o),"aria-labelledby":ar(x,o),"aria-valuetext":(n=ar(T,o))===null||n===void 0?void 0:n(a),"aria-orientation":g==="ltr"||g==="rtl"?"horizontal":"vertical"},h));return u&&(Z=u(Z,{index:o,prefixCls:i,value:a,dragging:l})),Z});process.env.NODE_ENV!=="production"&&(Kc.displayName="Handle");var Aw=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],Gc=te.forwardRef(function(e,t){var r=e.prefixCls,n=e.style,i=e.onStartMove,a=e.onOffsetChange,o=e.values,s=e.handleRender,c=e.draggingIndex,u=Qc(e,Aw),l=te.useRef({});return te.useImperativeHandle(t,function(){return{focus:function(h){var d;(d=l.current[h])===null||d===void 0||d.focus()}}}),te.createElement(te.Fragment,null,o.map(function(f,h){return te.createElement(Kc,In({ref:function(p){p?l.current[h]=p:delete l.current[h]},dragging:c===h,prefixCls:r,style:ar(n,h),key:h,value:f,valueIndex:h,onStartMove:i,onOffsetChange:a,render:s},u))}))});process.env.NODE_ENV!=="production"&&(Gc.displayName="Handles");function Xc(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function $w(e,t,r,n,i,a,o,s,c){var u=te.useState(null),l=nt(u,2),f=l[0],h=l[1],d=te.useState(-1),p=nt(d,2),v=p[0],g=p[1],P=te.useState(r),y=nt(P,2),b=y[0],S=y[1],m=te.useState(r),x=nt(m,2),T=x[0],M=x[1],w=te.useRef(null),_=te.useRef(null);te.useEffect(function(){v===-1&&S(r)},[r,v]),te.useEffect(function(){return function(){document.removeEventListener("mousemove",w.current),document.removeEventListener("mouseup",_.current),document.removeEventListener("touchmove",w.current),document.removeEventListener("touchend",_.current)}},[]);var U=function(J,z){b.some(function(ae,F){return ae!==J[F]})&&(z!==void 0&&h(z),S(J),o(J))},Z=function(J,z){if(J===-1){var ae=T[0],F=T[T.length-1],H=n-ae,N=i-F,C=z*(i-n);C=Math.max(C,H),C=Math.min(C,N);var k=a(ae+C);C=k-ae;var B=T.map(function(ee){return ee+C});U(B)}else{var E=(i-n)*z,Q=Ct(b);Q[J]=T[J];var $=c(Q,E,J,"dist");U($.values,$.value)}},I=te.useRef(Z);I.current=Z;var Y=function(J,z){J.stopPropagation();var ae=r[z];g(z),h(ae),M(r);var F=Xc(J),H=F.pageX,N=F.pageY,C=function(E){E.preventDefault();var Q=Xc(E),$=Q.pageX,ee=Q.pageY,K=$-H,W=ee-N,j=e.current.getBoundingClientRect(),fe=j.width,pe=j.height,ue;switch(t){case"btt":ue=-W/pe;break;case"ttb":ue=W/pe;break;case"rtl":ue=-K/fe;break;default:ue=K/fe}I.current(z,ue)},k=function B(E){E.preventDefault(),document.removeEventListener("mouseup",B),document.removeEventListener("mousemove",C),document.removeEventListener("touchend",B),document.removeEventListener("touchmove",C),w.current=null,_.current=null,g(-1),s()};document.addEventListener("mouseup",k),document.addEventListener("mousemove",C),document.addEventListener("touchend",k),document.addEventListener("touchmove",C),w.current=C,_.current=k},re=te.useMemo(function(){var se=Ct(r).sort(function(z,ae){return z-ae}),J=Ct(b).sort(function(z,ae){return z-ae});return se.every(function(z,ae){return z===J[ae]})?b:r},[r,b]);return[v,f,re,Y]}function Cw(e){var t,r=e.prefixCls,n=e.style,i=e.start,a=e.end,o=e.index,s=e.onStartMove,c=te.useContext(Vt),u=c.direction,l=c.min,f=c.max,h=c.disabled,d=c.range,p="".concat(r,"-track"),v=go(i,l,f),g=go(a,l,f),P=function(S){!h&&s&&s(S,-1)},y={};switch(u){case"rtl":y.right="".concat(v*100,"%"),y.width="".concat(g*100-v*100,"%");break;case"btt":y.bottom="".concat(v*100,"%"),y.height="".concat(g*100-v*100,"%");break;case"ttb":y.top="".concat(v*100,"%"),y.height="".concat(g*100-v*100,"%");break;default:y.left="".concat(v*100,"%"),y.width="".concat(g*100-v*100,"%")}return te.createElement("div",{className:Kr(p,(t={},ct(t,"".concat(p,"-").concat(o+1),d),ct(t,"".concat(r,"-track-draggable"),s),t)),style:gt(gt({},y),n),onMouseDown:P,onTouchStart:P})}function Fw(e){var t=e.prefixCls,r=e.style,n=e.values,i=e.startPoint,a=e.onStartMove,o=te.useContext(Vt),s=o.included,c=o.range,u=o.min,l=te.useMemo(function(){if(!c){if(n.length===0)return[];var f=i??u,h=n[0];return[{start:Math.min(f,h),end:Math.max(f,h)}]}for(var d=[],p=0;p3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var y,b=p[g],S=b+v,m=[];n.forEach(function(_){m.push(_.value)}),m.push(e,t),m.push(s(b));var x=v>0?1:-1;P==="unit"?m.push(s(b+x*r)):m.push(s(S)),m=m.filter(function(_){return _!==null}).filter(function(_){return v<0?_<=b:_>=b}),P==="unit"&&(m=m.filter(function(_){return _!==b}));var T=P==="unit"?b:S;y=m[0];var M=Math.abs(y-T);if(m.forEach(function(_){var U=Math.abs(_-T);U1){var w=Ct(p);return w[g]=y,d(w,v-x,g,P)}return y}else{if(v==="min")return e;if(v==="max")return t}},l=function(p,v,g){var P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=p[g],b=u(p,v,g,P);return{value:b,changed:b!==y}},f=function(p){return a===null&&p===0||typeof a=="number"&&p3&&arguments[3]!==void 0?arguments[3]:"unit",y=p.map(c),b=y[g],S=u(y,v,g,P);if(y[g]=S,i===!1){var m=a||0;g>0&&y[g-1]!==b&&(y[g]=Math.max(y[g],y[g-1]+m)),g0;w-=1)for(var _=!0;f(y[w]-y[w-1])&&_;){var U=l(y,-1,w-1);y[w-1]=U.value,_=U.changed}for(var Z=y.length-1;Z>0;Z-=1)for(var I=!0;f(y[Z]-y[Z-1])&&I;){var Y=l(y,-1,Z-1);y[Z-1]=Y.value,I=Y.changed}for(var re=0;re=0?Y:!1},[Y,Ve]),lt=te.useMemo(function(){var O=Object.keys(E||{});return O.map(function(D){var L=E[D],ie={value:Number(D)};return L&&$t(L)==="object"&&!te.isValidElement(L)&&("label"in L||"style"in L)?(ie.style=L.style,ie.label=L.label):ie.label=L,ie}).filter(function(D){var L=D.label;return L||typeof L=="number"}).sort(function(D,L){return D.value-L.value})},[E]),ft=Mw(de,Re,Ve,lt,Z,Le),Ze=nt(ft,2),le=Ze[0],je=Ze[1],Ft=jw(m,{value:S}),ot=nt(Ft,2),Be=ot[0],kn=ot[1],it=te.useMemo(function(){var O=Be==null?[]:Array.isArray(Be)?Be:[Be],D=nt(O,1),L=D[0],ie=L===void 0?de:L,ce=Be===null?[]:[ie];if(x){if(ce=Ct(O),T||Be===void 0){var me=T>=0?T+1:2;for(ce=ce.slice(0,me);ce.length=0&&pe.current.focus(O)}or(null)},[Zr]);var Nt=te.useMemo(function(){return re&&Ve===null?(process.env.NODE_ENV!=="production"&&Gr(!1,"`draggableTrack` is not supported when `step` is `null`."),!1):re},[re,Ve]),Jr=function(){_==null||_(Pt(It.current))},en=$w(ue,$e,it,de,Re,le,Xr,Jr,je),zt=nt(en,4),Hn=zt[0],Wn=zt[1],tn=zt[2],Un=zt[3],rn=function(D,L){Un(D,L),w==null||w(Pt(It.current))},Bn=Hn!==-1;te.useEffect(function(){if(!Bn){var O=it.lastIndexOf(Wn);pe.current.focus(O)}},[Bn]);var kt=te.useMemo(function(){return Ct(tn).sort(function(O,D){return O-D})},[tn]),qn=te.useMemo(function(){return x?[kt[0],kt[kt.length-1]]:[de,kt[0]]},[kt,x,de]),Vn=nt(qn,2),zn=Vn[0],Qn=Vn[1];te.useImperativeHandle(t,function(){return{focus:function(){pe.current.focus(0)},blur:function(){var D=document,L=D.activeElement;ue.current.contains(L)&&(L==null||L.blur())}}}),te.useEffect(function(){f&&pe.current.focus(0)},[]);var So=te.useMemo(function(){return{min:de,max:Re,direction:$e,disabled:c,keyboard:l,step:Ve,included:ae,includedStart:zn,includedEnd:Qn,range:x,tabIndex:K,ariaLabelForHandle:W,ariaLabelledByForHandle:j,ariaValueTextFormatterForHandle:fe}},[de,Re,$e,c,l,Ve,ae,zn,Qn,x,K,W,j,fe]);return te.createElement(Vt.Provider,{value:So},te.createElement("div",{ref:ue,className:Kr(i,a,(r={},ct(r,"".concat(i,"-disabled"),c),ct(r,"".concat(i,"-vertical"),J),ct(r,"".concat(i,"-horizontal"),!J),ct(r,"".concat(i,"-with-marks"),lt.length),r)),style:o,onMouseDown:bo},te.createElement("div",{className:"".concat(i,"-rail"),style:C}),te.createElement(Fw,{prefixCls:i,style:H,values:kt,startPoint:F,onStartMove:Nt?rn:null}),te.createElement(Dw,{prefixCls:i,marks:lt,dots:Q,style:k,activeStyle:B}),te.createElement(Gc,{ref:pe,prefixCls:i,style:N,values:tn,draggingIndex:Hn,onStartMove:rn,onOffsetChange:Ln,onFocus:h,onBlur:d,handleRender:$}),te.createElement(Nw,{prefixCls:i,marks:lt,onClick:Dn})))});process.env.NODE_ENV!=="production"&&(Zc.displayName="Slider");const Bw="",Lw={sliderValues:{display:"flex",justifyContent:"space-between",marginBottom:"5px"}},Jc=e=>({min:e.min||0,max:e.max||100}),Nn=e=>{const{start:t,range:r,refine:n}=ay(e),[i,a]=R.useState(Jc(r)),[o,s]=R.useState({min:r.min,max:r.max});R.useEffect(()=>{i&&n([i.min,i.max])},[i,n]),R.useEffect(()=>{if(t[0]!==o.min||t[1]!==o.max){const u=Jc({min:t[0],max:t[1]});s({...u}),a({...u})}},[r,t]);const c=(u,l)=>{let f;return u===1/0||u===-1/0?f=l==="min"?r.min:r.max:f=u,e.renderValue&&f&&(f=e.renderValue(f)),f};return A.jsxs(A.Fragment,{children:[A.jsxs("div",{style:Lw.sliderValues,children:[A.jsx("span",{children:c(o.min,"min")}),A.jsx("span",{children:c(o.max,"max")})]}),A.jsx(Zc,{range:!0,defaultValue:[r.min||0,r.max||100],onChange:u=>s({min:u[0],max:u[1]}),onAfterChange:u=>a({min:u[0],max:u[1]}),min:r.min,max:r.max,value:[o.min||r.min||0,o.max||r.max||100]})]})},Hw=ti("https://search.archivengine.com","adb8cdf811841ce52bf0e09ce1a9bb29e4bb2f3d12578f114b755420307f4030",{primaryKey:"id"});return{Bischoff:sw,Rumpf:cw,SuppliquePolitique:({locale:e,onHitClick:t,hitWrapperComponent:r,getHitWrapperProps:n})=>{const i={leftColumnItems:[{attribute:"date",icon:A.jsx(y0,{}),caption:G.date[e],renderDisplay:a=>aw(a)},{attribute:"town",icon:A.jsx(Dc,{}),caption:G.city[e],renderDisplay:a=>At(a,"town.name",e)},{attribute:"place_given",icon:A.jsx(I0,{}),caption:G.place_given[e],renderDisplay:a=>At(a,"date_of_place.name",e)},{attribute:"titulature",icon:A.jsx(kc,{}),caption:G.titulature[e],renderDisplay:a=>At(a,"titulature.full_name",e)},{attribute:"commandement",icon:A.jsx(Lc,{}),caption:G.commandement[e],renderDisplay:a=>At(a,"commandement.full_name",e)}],rightPanel:{attribute:"texte",label:G.text[e]},headlineAttribute:"number_order",renderHeadlineAttribute:a=>A.jsxs("span",{children:["#",A.jsx(zr,{attribute:"number_order",hit:a,highlightedTagName:"mark"})]}),sortFields:[{value:"textes",label:G.relevance[e]},{value:"textes:timestamp:asc",label:G.chronologicalAsc[e]},{value:"textes:timestamp:desc",label:G.chronologicalDesc[e]},{value:"textes:number_order:asc",label:G.numberOrderAsc[e]},{value:"textes:number_order:desc",label:G.numberOrderDesc[e]}]};return A.jsx(yi,{children:A.jsxs(lo,{searchClient:Hw,locale:"fr",indexName:"textes",hitConfig:i,onHitClick:t,hitWrapperComponent:r,getHitWrapperProps:n,children:[A.jsx(Ie,{header:G.number_of_order[e],children:A.jsx(Nn,{attribute:"number_order"})}),A.jsxs(Ie,{header:G.date[e],children:[A.jsxs("div",{className:"dateSlider",children:[A.jsx("p",{className:"header",children:G.year[e]}),A.jsx(Nn,{attribute:"year"})]}),A.jsxs("div",{className:"dateSlider",children:[A.jsx("p",{className:"header",children:G.month[e]}),A.jsx(Nn,{attribute:"month"})]}),A.jsxs("div",{className:"dateSlider",children:[A.jsx("p",{className:"header",children:G.day[e]}),A.jsx(Nn,{attribute:"day"})]})]}),A.jsx(Ie,{header:G.city[e],children:A.jsx(We,{attribute:"town.name"})}),A.jsx(Ie,{header:G.place_given[e],children:A.jsx(We,{attribute:"date_of_place.name"})}),A.jsx(Ie,{header:G.titulature[e],children:A.jsx(We,{attribute:"titulature.full_name"})}),A.jsx(Ie,{header:G.commandement[e],children:A.jsx(We,{attribute:"commandement.full_name"})}),A.jsx(Ie,{header:G.keywords[e],children:A.jsx(We,{attribute:"keywords",operator:"or"})})]})})}}}); +*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function i(a,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=n.has(a);if(Gr(!c,"Warning: There may be circular references"),c)return!1;if(a===o)return!0;if(r&&s>1)return!1;n.add(a);var u=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(var l=0;l=0)&&(r[i]=e[i]);return r}function Qc(e,t){if(e==null)return{};var r=jw(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Yc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gt(e){for(var t=1;t=oe.F1&&r<=oe.F12)return!1;switch(r){case oe.ALT:case oe.CAPS_LOCK:case oe.CONTEXT_MENU:case oe.CTRL:case oe.DOWN:case oe.END:case oe.ESC:case oe.HOME:case oe.INSERT:case oe.LEFT:case oe.MAC_FF_META:case oe.META:case oe.NUMLOCK:case oe.NUM_CENTER:case oe.PAGE_DOWN:case oe.PAGE_UP:case oe.PAUSE:case oe.PRINT_SCREEN:case oe.RIGHT:case oe.SHIFT:case oe.UP:case oe.WIN_KEY:case oe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=oe.ZERO&&t<=oe.NINE||t>=oe.NUM_ZERO&&t<=oe.NUM_MULTIPLY||t>=oe.A&&t<=oe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case oe.SPACE:case oe.QUESTION_MARK:case oe.NUM_PLUS:case oe.NUM_MINUS:case oe.NUM_PERIOD:case oe.NUM_DIVISION:case oe.SEMICOLON:case oe.DASH:case oe.EQUALS:case oe.COMMA:case oe.PERIOD:case oe.SLASH:case oe.APOSTROPHE:case oe.SINGLE_QUOTE:case oe.OPEN_SQUARE_BRACKET:case oe.BACKSLASH:case oe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Vt=te.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function go(e,t,r){return(e-t)/(r-t)}function yo(e,t,r,n){var i=go(t,r,n),a={};switch(e){case"rtl":a.right="".concat(i*100,"%"),a.transform="translateX(50%)";break;case"btt":a.bottom="".concat(i*100,"%"),a.transform="translateY(50%)";break;case"ttb":a.top="".concat(i*100,"%"),a.transform="translateY(-50%)";break;default:a.left="".concat(i*100,"%"),a.transform="translateX(-50%)";break}return a}function ar(e,t){return Array.isArray(e)?e[t]:e}var Tw=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],Kc=te.forwardRef(function(e,t){var r,n,i=e.prefixCls,a=e.value,o=e.valueIndex,s=e.onStartMove,c=e.style,u=e.render,l=e.dragging,f=e.onOffsetChange,h=Qc(e,Tw),d=te.useContext(Vt),p=d.min,v=d.max,g=d.direction,P=d.disabled,y=d.keyboard,b=d.range,S=d.tabIndex,m=d.ariaLabelForHandle,E=d.ariaLabelledByForHandle,A=d.ariaValueTextFormatterForHandle,M="".concat(i,"-handle"),w=function(Y){P||s(Y,o)},j=function(Y){if(!P&&y){var re=null;switch(Y.which||Y.keyCode){case oe.LEFT:re=g==="ltr"||g==="btt"?-1:1;break;case oe.RIGHT:re=g==="ltr"||g==="btt"?1:-1;break;case oe.UP:re=g!=="ttb"?1:-1;break;case oe.DOWN:re=g!=="ttb"?-1:1;break;case oe.HOME:re="min";break;case oe.END:re="max";break;case oe.PAGE_UP:re=2;break;case oe.PAGE_DOWN:re=-2;break}re!==null&&(Y.preventDefault(),f(re,o))}},U=yo(g,a,p,v),Z=te.createElement("div",In({ref:t,className:Kr(M,(r={},ct(r,"".concat(M,"-").concat(o+1),b),ct(r,"".concat(M,"-dragging"),l),r)),style:gt(gt({},U),c),onMouseDown:w,onTouchStart:w,onKeyDown:j,tabIndex:P?null:ar(S,o),role:"slider","aria-valuemin":p,"aria-valuemax":v,"aria-valuenow":a,"aria-disabled":P,"aria-label":ar(m,o),"aria-labelledby":ar(E,o),"aria-valuetext":(n=ar(A,o))===null||n===void 0?void 0:n(a),"aria-orientation":g==="ltr"||g==="rtl"?"horizontal":"vertical"},h));return u&&(Z=u(Z,{index:o,prefixCls:i,value:a,dragging:l})),Z});process.env.NODE_ENV!=="production"&&(Kc.displayName="Handle");var Aw=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],Gc=te.forwardRef(function(e,t){var r=e.prefixCls,n=e.style,i=e.onStartMove,a=e.onOffsetChange,o=e.values,s=e.handleRender,c=e.draggingIndex,u=Qc(e,Aw),l=te.useRef({});return te.useImperativeHandle(t,function(){return{focus:function(h){var d;(d=l.current[h])===null||d===void 0||d.focus()}}}),te.createElement(te.Fragment,null,o.map(function(f,h){return te.createElement(Kc,In({ref:function(p){p?l.current[h]=p:delete l.current[h]},dragging:c===h,prefixCls:r,style:ar(n,h),key:h,value:f,valueIndex:h,onStartMove:i,onOffsetChange:a,render:s},u))}))});process.env.NODE_ENV!=="production"&&(Gc.displayName="Handles");function Xc(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function $w(e,t,r,n,i,a,o,s,c){var u=te.useState(null),l=nt(u,2),f=l[0],h=l[1],d=te.useState(-1),p=nt(d,2),v=p[0],g=p[1],P=te.useState(r),y=nt(P,2),b=y[0],S=y[1],m=te.useState(r),E=nt(m,2),A=E[0],M=E[1],w=te.useRef(null),j=te.useRef(null);te.useEffect(function(){v===-1&&S(r)},[r,v]),te.useEffect(function(){return function(){document.removeEventListener("mousemove",w.current),document.removeEventListener("mouseup",j.current),document.removeEventListener("touchmove",w.current),document.removeEventListener("touchend",j.current)}},[]);var U=function(J,z){b.some(function(ae,F){return ae!==J[F]})&&(z!==void 0&&h(z),S(J),o(J))},Z=function(J,z){if(J===-1){var ae=A[0],F=A[A.length-1],H=n-ae,N=i-F,C=z*(i-n);C=Math.max(C,H),C=Math.min(C,N);var k=a(ae+C);C=k-ae;var B=A.map(function(ee){return ee+C});U(B)}else{var x=(i-n)*z,Q=Ct(b);Q[J]=A[J];var $=c(Q,x,J,"dist");U($.values,$.value)}},I=te.useRef(Z);I.current=Z;var Y=function(J,z){J.stopPropagation();var ae=r[z];g(z),h(ae),M(r);var F=Xc(J),H=F.pageX,N=F.pageY,C=function(x){x.preventDefault();var Q=Xc(x),$=Q.pageX,ee=Q.pageY,G=$-H,W=ee-N,_=e.current.getBoundingClientRect(),fe=_.width,pe=_.height,ue;switch(t){case"btt":ue=-W/pe;break;case"ttb":ue=W/pe;break;case"rtl":ue=-G/fe;break;default:ue=G/fe}I.current(z,ue)},k=function B(x){x.preventDefault(),document.removeEventListener("mouseup",B),document.removeEventListener("mousemove",C),document.removeEventListener("touchend",B),document.removeEventListener("touchmove",C),w.current=null,j.current=null,g(-1),s()};document.addEventListener("mouseup",k),document.addEventListener("mousemove",C),document.addEventListener("touchend",k),document.addEventListener("touchmove",C),w.current=C,j.current=k},re=te.useMemo(function(){var se=Ct(r).sort(function(z,ae){return z-ae}),J=Ct(b).sort(function(z,ae){return z-ae});return se.every(function(z,ae){return z===J[ae]})?b:r},[r,b]);return[v,f,re,Y]}function Cw(e){var t,r=e.prefixCls,n=e.style,i=e.start,a=e.end,o=e.index,s=e.onStartMove,c=te.useContext(Vt),u=c.direction,l=c.min,f=c.max,h=c.disabled,d=c.range,p="".concat(r,"-track"),v=go(i,l,f),g=go(a,l,f),P=function(S){!h&&s&&s(S,-1)},y={};switch(u){case"rtl":y.right="".concat(v*100,"%"),y.width="".concat(g*100-v*100,"%");break;case"btt":y.bottom="".concat(v*100,"%"),y.height="".concat(g*100-v*100,"%");break;case"ttb":y.top="".concat(v*100,"%"),y.height="".concat(g*100-v*100,"%");break;default:y.left="".concat(v*100,"%"),y.width="".concat(g*100-v*100,"%")}return te.createElement("div",{className:Kr(p,(t={},ct(t,"".concat(p,"-").concat(o+1),d),ct(t,"".concat(r,"-track-draggable"),s),t)),style:gt(gt({},y),n),onMouseDown:P,onTouchStart:P})}function Fw(e){var t=e.prefixCls,r=e.style,n=e.values,i=e.startPoint,a=e.onStartMove,o=te.useContext(Vt),s=o.included,c=o.range,u=o.min,l=te.useMemo(function(){if(!c){if(n.length===0)return[];var f=i??u,h=n[0];return[{start:Math.min(f,h),end:Math.max(f,h)}]}for(var d=[],p=0;p3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var y,b=p[g],S=b+v,m=[];n.forEach(function(j){m.push(j.value)}),m.push(e,t),m.push(s(b));var E=v>0?1:-1;P==="unit"?m.push(s(b+E*r)):m.push(s(S)),m=m.filter(function(j){return j!==null}).filter(function(j){return v<0?j<=b:j>=b}),P==="unit"&&(m=m.filter(function(j){return j!==b}));var A=P==="unit"?b:S;y=m[0];var M=Math.abs(y-A);if(m.forEach(function(j){var U=Math.abs(j-A);U1){var w=Ct(p);return w[g]=y,d(w,v-E,g,P)}return y}else{if(v==="min")return e;if(v==="max")return t}},l=function(p,v,g){var P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=p[g],b=u(p,v,g,P);return{value:b,changed:b!==y}},f=function(p){return a===null&&p===0||typeof a=="number"&&p3&&arguments[3]!==void 0?arguments[3]:"unit",y=p.map(c),b=y[g],S=u(y,v,g,P);if(y[g]=S,i===!1){var m=a||0;g>0&&y[g-1]!==b&&(y[g]=Math.max(y[g],y[g-1]+m)),g0;w-=1)for(var j=!0;f(y[w]-y[w-1])&&j;){var U=l(y,-1,w-1);y[w-1]=U.value,j=U.changed}for(var Z=y.length-1;Z>0;Z-=1)for(var I=!0;f(y[Z]-y[Z-1])&&I;){var Y=l(y,-1,Z-1);y[Z-1]=Y.value,I=Y.changed}for(var re=0;re=0?Y:!1},[Y,Ve]),lt=te.useMemo(function(){var O=Object.keys(x||{});return O.map(function(D){var L=x[D],ie={value:Number(D)};return L&&$t(L)==="object"&&!te.isValidElement(L)&&("label"in L||"style"in L)?(ie.style=L.style,ie.label=L.label):ie.label=L,ie}).filter(function(D){var L=D.label;return L||typeof L=="number"}).sort(function(D,L){return D.value-L.value})},[x]),ft=Mw(de,Re,Ve,lt,Z,He),Ze=nt(ft,2),le=Ze[0],_e=Ze[1],Ft=_w(m,{value:S}),ot=nt(Ft,2),Be=ot[0],kn=ot[1],it=te.useMemo(function(){var O=Be==null?[]:Array.isArray(Be)?Be:[Be],D=nt(O,1),L=D[0],ie=L===void 0?de:L,ce=Be===null?[]:[ie];if(E){if(ce=Ct(O),A||Be===void 0){var me=A>=0?A+1:2;for(ce=ce.slice(0,me);ce.length=0&&pe.current.focus(O)}or(null)},[Zr]);var Nt=te.useMemo(function(){return re&&Ve===null?(process.env.NODE_ENV!=="production"&&Gr(!1,"`draggableTrack` is not supported when `step` is `null`."),!1):re},[re,Ve]),Jr=function(){j==null||j(Pt(It.current))},en=$w(ue,Ce,it,de,Re,le,Xr,Jr,_e),zt=nt(en,4),Hn=zt[0],Wn=zt[1],tn=zt[2],Un=zt[3],rn=function(D,L){Un(D,L),w==null||w(Pt(It.current))},Bn=Hn!==-1;te.useEffect(function(){if(!Bn){var O=it.lastIndexOf(Wn);pe.current.focus(O)}},[Bn]);var kt=te.useMemo(function(){return Ct(tn).sort(function(O,D){return O-D})},[tn]),qn=te.useMemo(function(){return E?[kt[0],kt[kt.length-1]]:[de,kt[0]]},[kt,E,de]),Vn=nt(qn,2),zn=Vn[0],Qn=Vn[1];te.useImperativeHandle(t,function(){return{focus:function(){pe.current.focus(0)},blur:function(){var D=document,L=D.activeElement;ue.current.contains(L)&&(L==null||L.blur())}}}),te.useEffect(function(){f&&pe.current.focus(0)},[]);var So=te.useMemo(function(){return{min:de,max:Re,direction:Ce,disabled:c,keyboard:l,step:Ve,included:ae,includedStart:zn,includedEnd:Qn,range:E,tabIndex:G,ariaLabelForHandle:W,ariaLabelledByForHandle:_,ariaValueTextFormatterForHandle:fe}},[de,Re,Ce,c,l,Ve,ae,zn,Qn,E,G,W,_,fe]);return te.createElement(Vt.Provider,{value:So},te.createElement("div",{ref:ue,className:Kr(i,a,(r={},ct(r,"".concat(i,"-disabled"),c),ct(r,"".concat(i,"-vertical"),J),ct(r,"".concat(i,"-horizontal"),!J),ct(r,"".concat(i,"-with-marks"),lt.length),r)),style:o,onMouseDown:bo},te.createElement("div",{className:"".concat(i,"-rail"),style:C}),te.createElement(Fw,{prefixCls:i,style:H,values:kt,startPoint:F,onStartMove:Nt?rn:null}),te.createElement(Dw,{prefixCls:i,marks:lt,dots:Q,style:k,activeStyle:B}),te.createElement(Gc,{ref:pe,prefixCls:i,style:N,values:tn,draggingIndex:Hn,onStartMove:rn,onOffsetChange:Ln,onFocus:h,onBlur:d,handleRender:$}),te.createElement(Nw,{prefixCls:i,marks:lt,onClick:Dn})))});process.env.NODE_ENV!=="production"&&(Zc.displayName="Slider");const Bw="",Lw={sliderValues:{display:"flex",justifyContent:"space-between",marginBottom:"5px"}},Jc=e=>({min:e.min||0,max:e.max||100}),Nn=e=>{const{start:t,range:r,refine:n}=ay(e),[i,a]=R.useState(Jc(r)),[o,s]=R.useState({min:r.min,max:r.max});R.useEffect(()=>{i&&n([i.min,i.max])},[i,n]),R.useEffect(()=>{if(t[0]!==o.min||t[1]!==o.max){const u=Jc({min:t[0],max:t[1]});s({...u}),a({...u})}},[r,t]);const c=(u,l)=>{let f;return u===1/0||u===-1/0?f=l==="min"?r.min:r.max:f=u,e.renderValue&&f&&(f=e.renderValue(f)),f};return T.jsxs(T.Fragment,{children:[T.jsxs("div",{style:Lw.sliderValues,children:[T.jsx("span",{children:c(o.min,"min")}),T.jsx("span",{children:c(o.max,"max")})]}),T.jsx(Zc,{range:!0,defaultValue:[r.min||0,r.max||100],onChange:u=>s({min:u[0],max:u[1]}),onAfterChange:u=>a({min:u[0],max:u[1]}),min:r.min,max:r.max,value:[o.min||r.min||0,o.max||r.max||100]})]})},Hw=ti("https://search.archivengine.com","adb8cdf811841ce52bf0e09ce1a9bb29e4bb2f3d12578f114b755420307f4030",{primaryKey:"id"});return{Bischoff:sw,Rumpf:cw,SuppliquePolitique:({locale:e,onHitClick:t,hitWrapperComponent:r,getHitWrapperProps:n})=>{const i={leftColumnItems:[{attribute:"date",icon:T.jsx(y0,{}),caption:K.date[e],renderDisplay:a=>aw(a)},{attribute:"town",icon:T.jsx(Dc,{}),caption:K.city[e],renderDisplay:a=>At(a,"town.name",e)},{attribute:"place_given",icon:T.jsx(I0,{}),caption:K.place_given[e],renderDisplay:a=>At(a,"date_of_place.name",e)},{attribute:"titulature",icon:T.jsx(kc,{}),caption:K.titulature[e],renderDisplay:a=>At(a,"titulature.full_name",e)},{attribute:"commandement",icon:T.jsx(Lc,{}),caption:K.commandement[e],renderDisplay:a=>At(a,"commandement.full_name",e)}],rightPanel:{attribute:"texte",label:K.text[e]},headlineAttribute:"number_order",renderHeadlineAttribute:a=>T.jsxs("span",{children:["#",T.jsx(zr,{attribute:"number_order",hit:a,highlightedTagName:"mark"})]}),sortFields:[{value:"textes",label:K.relevance[e]},{value:"textes:timestamp:asc",label:K.chronologicalAsc[e]},{value:"textes:timestamp:desc",label:K.chronologicalDesc[e]},{value:"textes:number_order:asc",label:K.numberOrderAsc[e]},{value:"textes:number_order:desc",label:K.numberOrderDesc[e]}]};return T.jsx(yi,{children:T.jsxs(lo,{searchClient:Hw,locale:"fr",indexName:"textes",hitConfig:i,onHitClick:t,hitWrapperComponent:r,getHitWrapperProps:n,children:[T.jsx(Ie,{header:K.number_of_order[e],children:T.jsx(Nn,{attribute:"number_order"})}),T.jsxs(Ie,{header:K.date[e],children:[T.jsxs("div",{className:"dateSlider",children:[T.jsx("p",{className:"header",children:K.year[e]}),T.jsx(Nn,{attribute:"year"})]}),T.jsxs("div",{className:"dateSlider",children:[T.jsx("p",{className:"header",children:K.month[e]}),T.jsx(Nn,{attribute:"month"})]}),T.jsxs("div",{className:"dateSlider",children:[T.jsx("p",{className:"header",children:K.day[e]}),T.jsx(Nn,{attribute:"day"})]})]}),T.jsx(Ie,{header:K.city[e],children:T.jsx(Le,{attribute:"town.name"})}),T.jsx(Ie,{header:K.place_given[e],children:T.jsx(Le,{attribute:"date_of_place.name"})}),T.jsx(Ie,{header:K.titulature[e],children:T.jsx(Le,{attribute:"titulature.full_name"})}),T.jsx(Ie,{header:K.commandement[e],children:T.jsx(Le,{attribute:"commandement.full_name"})}),T.jsx(Ie,{header:K.keywords[e],children:T.jsx(Le,{attribute:"keywords",operator:"or"})})]})})}}}); diff --git a/src/components/Bischoff.tsx b/src/components/Bischoff.tsx index 9bda342..ae46589 100644 --- a/src/components/Bischoff.tsx +++ b/src/components/Bischoff.tsx @@ -41,9 +41,9 @@ const Bischoff: React.FC = ({ locale, onHitClick, hitWrapperCompo caption: localizations.origDate[locale] }, { - attribute: 'origPlace', + attribute: 'archive_place', icon: , - caption: localizations.origPlace[locale] + caption: localizations.archivePlace[locale] }, { attribute: 'works', @@ -115,6 +115,11 @@ const Bischoff: React.FC = ({ locale, onHitClick, hitWrapperCompo attribute="archive" /> + + +