From 791cbd8a20e4dcde30e200ac7f4b8a887ca8cbc4 Mon Sep 17 00:00:00 2001
From: zzhaobraze
Date: Mon, 28 Oct 2024 10:46:48 -0400
Subject: [PATCH] Add aria-label to search inputs
---
assets/js/algolia_search.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/assets/js/algolia_search.js b/assets/js/algolia_search.js
index d742d4992de..ba9f5b36d69 100644
--- a/assets/js/algolia_search.js
+++ b/assets/js/algolia_search.js
@@ -2,14 +2,14 @@
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).algoliasearch=t()}(this,(function(){"use strict";function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var r=[],n=!0,o=!1,a=void 0;try{for(var u,i=e[Symbol.iterator]();!(n=(u=i.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw a}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var r=JSON.stringify(e),n=a()[r];return Promise.all([n||t(),void 0!==n])})).then((function(e){var t=o(e,2),n=t[0],a=t[1];return Promise.all([n,a||r.miss(n)])})).then((function(e){return o(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var o=a();return o[JSON.stringify(e)]=t,n().setItem(r,JSON.stringify(o)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=a();delete t[JSON.stringify(e)],n().setItem(r,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){n().removeItem(r)}))}}}function i(e){var t=a(e.caches),r=t.shift();return void 0===r?{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},n=t();return n.then((function(e){return Promise.all([e,r.miss(e)])})).then((function(e){return o(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return r.get(e,n,o).catch((function(){return i({caches:t}).get(e,n,o)}))},set:function(e,n){return r.set(e,n).catch((function(){return i({caches:t}).set(e,n)}))},delete:function(e){return r.delete(e).catch((function(){return i({caches:t}).delete(e)}))},clear:function(){return r.clear().catch((function(){return i({caches:t}).clear()}))}}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(r,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},a=JSON.stringify(r);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);var u=n(),i=o&&o.miss||function(){return Promise.resolve()};return u.then((function(e){return i(e)})).then((function(){return u}))},set:function(r,n){return t[JSON.stringify(r)]=e.serializable?JSON.stringify(n):n,Promise.resolve(n)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function c(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}function l(e,t){return Object.keys(void 0!==t?t:{}).forEach((function(r){e[r]=t[r](e)})),e}function f(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0?n:void 0,timeout:r.timeout||t,headers:r.headers||{},queryParameters:r.queryParameters||{},cacheable:r.cacheable}}var m={Read:1,Write:2,Any:3},p=1,v=2,y=3;function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;return r(r({},e),{},{status:t,lastUpdate:Date.now()})}function b(e){return"string"==typeof e?{protocol:"https",url:e,accept:m.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||m.Any}}var O="GET",P="POST";function q(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(g(t))}))}))).then((function(e){var r=e.filter((function(e){return function(e){return e.status===p||Date.now()-e.lastUpdate>12e4}(e)})),n=e.filter((function(e){return function(e){return e.status===y&&Date.now()-e.lastUpdate<=12e4}(e)})),o=[].concat(a(r),a(n));return{getTimeout:function(e,t){return(0===n.length&&0===e?1:n.length+3+e)*t},statelessHosts:o.length>0?o.map((function(e){return b(e)})):t}}))}function j(e,t,n,o){var u=[],i=function(e,t){if(e.method===O||void 0===e.data&&void 0===t.data)return;var n=Array.isArray(e.data)?e.data:r(r({},e.data),t.data);return JSON.stringify(n)}(n,o),s=function(e,t){var n=r(r({},e.headers),t.headers),o={};return Object.keys(n).forEach((function(e){var t=n[e];o[e.toLowerCase()]=t})),o}(e,o),c=n.method,l=n.method!==O?{}:r(r({},n.data),o.data),f=r(r(r({"x-algolia-agent":e.userAgent.value},e.queryParameters),l),o.queryParameters),h=0,d=function t(r,a){var l=r.pop();if(void 0===l)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:A(u)};var d={data:i,headers:s,method:c,url:w(l,n.path,f),connectTimeout:a(h,e.timeouts.connect),responseTimeout:a(h,o.timeout)},m=function(e){var t={request:d,response:e,host:l,triesLeft:r.length};return u.push(t),t},p={onSucess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(n){var o=m(n);return n.isTimedOut&&h++,Promise.all([e.logger.info("Retryable failure",x(o)),e.hostsCache.set(l,g(l,n.isTimedOut?y:v))]).then((function(){return t(r,a)}))},onFail:function(e){throw m(e),function(e,t){var r=e.content,n=e.status,o=r;try{o=JSON.parse(r).message}catch(e){}return function(e,t,r){return{name:"ApiError",message:e,status:t,transporterStackTrace:r}}(o,n,t)}(e,A(u))}};return e.requester.send(d).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,r=e.status;return!t&&0==~~r}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSucess(e):t.onFail(e)}(e,p)}))};return q(e.hostsCache,t).then((function(e){return d(a(e.statelessHosts).reverse(),e.getTimeout)}))}function S(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var r="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(r)&&(t.value="".concat(t.value).concat(r)),t}};return t}function w(e,t,r){var n=T(r),o="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return n.length&&(o+="?".concat(n)),o}function T(e){return Object.keys(e).map((function(t){return f("%s=%s",t,(r=e[t],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r)?JSON.stringify(e[t]):e[t]));var r})).join("&")}function A(e){return e.map((function(e){return x(e)}))}function x(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return r(r({},e),{},{request:r(r({},e.request),{},{headers:r(r({},e.request.headers),t)})})}var C=function(e){var t=e.appId,n=function(e,t,r){var n={"x-algolia-api-key":r,"x-algolia-application-id":t};return{headers:function(){return e===h.WithinHeaders?n:{}},queryParameters:function(){return e===h.WithinQueryParameters?n:{}}}}(void 0!==e.authMode?e.authMode:h.WithinHeaders,t,e.apiKey),a=function(e){var t=e.hostsCache,r=e.logger,n=e.requester,a=e.requestsCache,u=e.responsesCache,i=e.timeouts,s=e.userAgent,c=e.hosts,l=e.queryParameters,f={hostsCache:t,logger:r,requester:n,requestsCache:a,responsesCache:u,timeouts:i,userAgent:s,headers:e.headers,queryParameters:l,hosts:c.map((function(e){return b(e)})),read:function(e,t){var r=d(t,f.timeouts.read),n=function(){return j(f,f.hosts.filter((function(e){return 0!=(e.accept&m.Read)})),e,r)};if(!0!==(void 0!==r.cacheable?r.cacheable:e.cacheable))return n();var a={request:e,mappedRequestOptions:r,transporter:{queryParameters:f.queryParameters,headers:f.headers}};return f.responsesCache.get(a,(function(){return f.requestsCache.get(a,(function(){return f.requestsCache.set(a,n()).then((function(e){return Promise.all([f.requestsCache.delete(a),e])}),(function(e){return Promise.all([f.requestsCache.delete(a),Promise.reject(e)])})).then((function(e){var t=o(e,2);t[0];return t[1]}))}))}),{miss:function(e){return f.responsesCache.set(a,e)}})},write:function(e,t){return j(f,f.hosts.filter((function(e){return 0!=(e.accept&m.Write)})),e,d(t,f.timeouts.write))}};return f}(r(r({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:m.Read},{url:"".concat(t,".algolia.net"),accept:m.Write}].concat(c([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:r(r(r({},n.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:r(r({},n.queryParameters()),e.queryParameters)}));return l({transporter:a,appId:t,addAlgoliaAgent:function(e,t){a.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([a.requestsCache.clear(),a.responsesCache.clear()]).then((function(){}))}},e.methods)},N=function(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={transporter:e.transporter,appId:e.appId,indexName:t};return l(n,r.methods)}},k=function(e){return function(t,n){var o=t.map((function(e){return r(r({},e),{},{params:T(e.params||{})})}));return e.transporter.read({method:P,path:"1/indexes/*/queries",data:{requests:o},cacheable:!0},n)}},J=function(e){return function(t,o){return Promise.all(t.map((function(t){var a=t.params,u=a.facetName,i=a.facetQuery,s=n(a,["facetName","facetQuery"]);return N(e)(t.indexName,{methods:{searchForFacetValues:I}}).searchForFacetValues(u,i,r(r({},o),s))})))}},E=function(e){return function(t,r){return e.transporter.read({method:P,path:f("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},r)}},I=function(e){return function(t,r,n){return e.transporter.read({method:P,path:f("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:r},cacheable:!0},n)}},F=1,R=2,D=3;function W(e,t,n){var o,a={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return r.setRequestHeader(t,e.headers[t])}));var n,o=function(e,n){return setTimeout((function(){r.abort(),t({status:0,content:n,isTimedOut:!0})}),1e3*e)},a=o(e.connectTimeout,"Connection timeout");r.onreadystatechange=function(){r.readyState>r.OPENED&&void 0===n&&(clearTimeout(a),n=o(e.responseTimeout,"Socket timeout"))},r.onerror=function(){0===r.status&&(clearTimeout(a),clearTimeout(n),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=function(){clearTimeout(a),clearTimeout(n),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},logger:(o=D,{debug:function(e,t){return F>=o&&console.debug(e,t),Promise.resolve()},info:function(e,t){return R>=o&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:i({caches:[u({key:"".concat("4.5.1","-").concat(e)}),s()]}),userAgent:S("4.5.1").add({segment:"Browser",version:"lite"}),authMode:h.WithinQueryParameters};return C(r(r(r({},a),n),{},{methods:{search:k,searchForFacetValues:J,multipleQueries:k,multipleSearchForFacetValues:J,initIndex:function(e){return function(t){return N(e)(t,{methods:{search:E,searchForFacetValues:I}})}}}}))}return W.version="4.5.1",W}));
/*! InstantSearch.js 4.8.3 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch.js */
-!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).instantsearch=t()}(this,function(){"use strict";function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(t){return v(this.hierarchicalFacets,function(e){return e.name===t})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(n).map(function(e){return e.trim()})},toString:function(){return JSON.stringify(this,null,2)}};var R=b;function w(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=void 0!==t,a=null===t;if(!a&&t=i.length?r:"desc"===i[n]?-r:r}return e.index-t.index}),t.map(function(e){return e.value})},x=function(h){return function(e,t){var n=h.hierarchicalFacets[t],r=h.hierarchicalFacetsRefinements[n.name]&&h.hierarchicalFacetsRefinements[n.name][0]||"",i=h._getHierarchicalFacetSeparator(n),a=h._getHierarchicalRootPath(n),s=h._getHierarchicalShowParentLevel(n),o=P(h._getHierarchicalFacetSortBy(n)),c=e.every(function(e){return e.exhaustive}),u=function(o,c,u,l,h){return function(e,n,t){var r=e;if(0n&&(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),"function"==typeof console.trace&&console.trace()),this},V.prototype.once=function(e,t){if(!W(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},V.prototype.removeListener=function(e,t){var n,r,i,a;if(!W(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||W(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if($(n)){for(a=i;0":7,"=":8,_v:9,"{":10,"&":11,_t:12},R.scan=function(e,t){var n,r,i,a,s,o=e.length,c=0,u=null,l=null,h="",f=[],d=!1,m=0,p=0,v="{{",g="}}";function y(){0"==n.tag&&(n.indent=f[r].text.toString()),f.splice(r,1));else t||f.push({tag:"\n"});d=!1,p=f.length}for(t&&(t=t.split(" "),v=t[0],g=t[1]),m=0;m":m,"<":function(e,t){var n={partials:{},code:"",subs:{},inPartial:!0};R.walk(e.nodes,n);var r=t.partials[m(e,t)];r.subs=n.subs,r.partials=n.partials},$:function(e,t){var n={subs:{},code:"",partials:t.partials,prefix:e.n};R.walk(e.nodes,n),t.subs[e.n]=n.code,t.inPartial||(t.code+='t.sub("'+f(e.n)+'",c,p,i);')},"\n":function(e,t){t.code+=p('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+d(e.n)+'("'+f(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=p('"'+f(e.text)+'"')},"{":e,"&":e},R.walk=function(e,t){for(var n,r=0,i=e.length;r/g,i=/\'/g,a=/\"/g,s=/[&<>\"\']/;function o(e){return String(null==e?"":e)}var h=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)});de.Template=me.Template,de.template=de.Template;var pe=de;function ve(e){var t=e.templates,n=e.templateKey,r=e.compileOptions,i=e.helpers,a=e.data,s=e.bindEvent,o=t[n],c=h(o),u="function"===c;if(!("string"===c)&&!u)throw new Error("Template must be 'string' or 'function', was '".concat(c,"' (key: ").concat(n,")"));if(u)return o(a,s);var l=function(e,t,n){var r=0":">",'"':""","'":"'"},ke=/[&<>"']/g,Me=RegExp(ke.source);function Le(e,t){return e.setQueryParameters({hierarchicalFacets:t.hierarchicalFacets.reduce(function(e,t){var n=function(e,t){if(!Array.isArray(e))return-1;for(var n=0;n",highlightPostTag:""};function nt(e){return function(e){return e&&Me.test(e)?e.replace(ke,function(e){return Ee[e]}):e}(e).replace(new RegExp(et.highlightPreTag,"g"),tt.highlightPreTag).replace(new RegExp(et.highlightPostTag,"g"),tt.highlightPostTag)}function rt(n){return Fe(n)&&"string"!=typeof n.value?Object.keys(n).reduce(function(e,t){return D({},e,L({},t,rt(n[t])))},{}):Array.isArray(n)?n.map(rt):D({},n,{value:nt(n.value)})}function it(e){return void 0===e.__escaped&&((e=e.map(function(e){var t=f({},e);return t._highlightResult&&(t._highlightResult=rt(t._highlightResult)),t._snippetResult&&(t._snippetResult=rt(t._snippetResult)),t})).__escaped=!0),e}function at(a){return function(){var e=0')).replace(new RegExp(tt.highlightPostTag,"g"),"".concat(r,">"))}var ct=at("Snippet");function ut(e){var t=e.attribute,n=e.highlightedTagName,r=void 0===n?"mark":n,i=e.hit,a=e.cssClasses,s=void 0===a?{}:a,o=Ne(i,"_snippetResult.".concat(t,".value"))||"",c=ct({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):"");return o.replace(new RegExp(tt.highlightPreTag,"g"),"<".concat(r,' class="').concat(c,'">')).replace(new RegExp(tt.highlightPostTag,"g"),"".concat(r,">"))}function lt(e,t){return function(e){var t,n=e.method,r=e.payload;if("object"!==h(r))throw new Error("The insights helper expects the payload to be an object.");try{t=btoa(JSON.stringify(r))}catch(e){throw new Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(n,'" data-insights-payload="').concat(t,'"')}({method:e,payload:t})}function ht(){return function(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r>6]+Pt[128|63&s]:s<55296||57344<=s?i+=Pt[224|s>>12]+Pt[128|s>>6&63]+Pt[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(a)),i+=Pt[240|s>>18]+Pt[128|s>>12&63]+Pt[128|s>>6&63]+Pt[128|63&s])}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function r(i,a,s){if(!a)return i;if("object"!=typeof a){if(St(i))i.push(a);else{if(!i||"object"!=typeof i)return[i,a];(s&&(s.plainObjects||s.allowPrototypes)||!wt.call(Object.prototype,a))&&(i[a]=!0)}return i}if(!i||"object"!=typeof i)return[i].concat(a);var e=i;return St(i)&&!St(a)&&(e=mt(i,s)),St(i)&&St(a)?(a.forEach(function(e,t){if(wt.call(i,t)){var n=i[t];n&&"object"==typeof n&&e&&"object"==typeof e?i[t]=r(n,e,s):i.push(e)}else i[t]=e}),i):Object.keys(a).reduce(function(e,t){var n=a[t];return wt.call(e,t)?e[t]=r(e[t],n,s):e[t]=n,e},e)}},Nt=String.prototype.replace,xt=/%20/g,Ft={RFC1738:"RFC1738",RFC3986:"RFC3986"},It=_t.assign({default:Ft.RFC3986,formatters:{RFC1738:function(e){return Nt.call(e,xt,"+")},RFC3986:function(e){return String(e)}}},Ft),Ct=Object.prototype.hasOwnProperty,Tt={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Et=Array.isArray,kt=Array.prototype.push,Mt=Date.prototype.toISOString,Lt=It.default,jt={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:_t.encode,encodeValuesOnly:!1,format:Lt,formatter:It.formatters[Lt],indices:!1,serializeDate:function(e){return Mt.call(e)},skipNulls:!1,strictNullHandling:!1},Ot=Object.prototype.hasOwnProperty,At={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:_t.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Ht={formats:It,parse:function(e,t){var n=function(e){if(!e)return At;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?At.charset:e.charset;return{allowDots:void 0===e.allowDots?At.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:At.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:At.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:At.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:At.comma,decoder:"function"==typeof e.decoder?e.decoder:At.decoder,delimiter:"string"==typeof e.delimiter||_t.isRegExp(e.delimiter)?e.delimiter:At.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:At.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:At.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:At.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:At.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:At.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var r="string"==typeof e?function(e,t){var n,r={},i=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,s=i.split(t.delimiter,a),o=-1,c=t.charset;if(t.charsetSentinel)for(n=0;n=":return"≥";case"<=":return"≤";default:return e}}(e.operator)," ").concat(e.name):e.name,r={attribute:e.attribute,type:e.type,value:t,label:n};return void 0!==e.operator&&(r.operator=e.operator),void 0!==e.count&&(r.count=e.count),void 0!==e.exhaustive&&(r.exhaustive=e.exhaustive),r}var Zt=Ae({name:"hierarchical-menu",connector:!0});function en(R){var w=1 ":e,t=l.rootPath,h=void 0===t?null:t,n=l.showParentLevel,f=void 0===n||n,r=l.limit,d=void 0===r?10:r,i=l.showMore,m=void 0!==i&&i,a=l.showMoreLimit,p=void 0===a?20:a,s=l.sortBy,v=void 0===s?["name:asc"]:s,o=l.transformItems,g=void 0===o?function(e){return e}:o;if(!c||!Array.isArray(c)||0===c.length)throw new Error(Zt("The `attributes` option expects an array of strings."));if(!0===m&&p<=d)throw new Error(Zt("The `showMoreLimit` option must be greater than `limit`."));var y,b=Q(c,1)[0];return{$$type:"ais.hierarchicalMenu",isShowingMore:!1,toggleShowMore:function(){},cachedToggleShowMore:function(){this.toggleShowMore()},createToggleShowMore:function(e){var t=this;return function(){t.isShowingMore=!t.isShowingMore,t.render(e)}},getLimit:function(){return this.isShowingMore?p:d},init:function(e){var t=e.helper,n=e.createURL,r=e.instantSearchInstance;y=qe({instantSearchInstance:r,helper:t,attribute:b,widgetType:this.$$type}),this.cachedToggleShowMore=this.cachedToggleShowMore.bind(this),this._refine=function(e){y("click",e),t.toggleRefinement(b,e).search()},R({items:[],createURL:function(e){return n(t.state.toggleRefinement(b,e))},refine:this._refine,sendEvent:y,instantSearchInstance:r,widgetParams:l,isShowingMore:!1,toggleShowMore:this.cachedToggleShowMore,canToggleShowMore:!1},!0)},_prepareFacetValues:function(e,i){var a=this;return e.slice(0,this.getLimit()).map(function(e){var t=e.name,n=e.path,r=A(e,["name","path"]);return Array.isArray(r.data)&&(r.data=a._prepareFacetValues(r.data,i)),D({},r,{label:t,value:n})})},render:function(e){var t=e.results,n=e.state,r=e.createURL,i=e.instantSearchInstance,a=t.getFacetValues(b,{sortBy:v}).data||[],s=g(this._prepareFacetValues(a),n);var o=n.maxValuesPerFacet,c=this.getLimit(),u=cthis.getLimit())},!1)},dispose:function(e){var t=e.state;return a(),t.removeHierarchicalFacet(c).setQueryParameter("maxValuesPerFacet",void 0)},getWidgetState:function(e,t){var n=Q(t.searchParameters.getHierarchicalFacetBreadcrumb(c),1)[0];return n?D({},e,{menu:D({},e.menu,L({},c,n))}):e},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=n.menu&&n.menu[c],i=e.removeHierarchicalFacet(c).addHierarchicalFacet({name:c,attributes:[c]}),a=i.maxValuesPerFacet||0,s=Math.max(a,l?h:u),o=i.setQueryParameter("maxValuesPerFacet",s);return r?o.addHierarchicalFacetRefinement(c,r):o.setQueryParameters({hierarchicalFacetsRefinements:D({},o.hierarchicalFacetsRefinements,L({},c,[]))})}}}}function zn(l,e){var h=1="]&&n[">="][0]||"",a=n["<="]&&n["<="][0]||"";return""===i&&""===a?e:D({},e,{numericMenu:D({},e.numericMenu,L({},u,"".concat(i,":").concat(a)))})},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=n.numericMenu&&n.numericMenu[u],i=e.clearRefinements(u);if(!r)return i.setQueryParameters({numericRefinements:D({},i.numericRefinements,L({},u,{}))});if(-1===r.indexOf(":"))return i.addNumericRefinement(u,"=",Number(r));var a=Q(r.split(":").map(parseFloat),2),s=a[0],o=a[1],c=xe(s)?i.addNumericRefinement(u,">=",s):i;return xe(o)?c.addNumericRefinement(u,"<=",o):c}}}}var Kn=Ae({name:"numeric-menu",connector:!0}),Jn="ais.numericMenu";function Yn(e,t,n){var r=e.getNumericRefinements(t);return void 0!==n.start&&void 0!==n.end&&n.start===n.end?Xn(r,"=",n.start):void 0!==n.start?Xn(r,">=",n.start):void 0!==n.end?Xn(r,"<=",n.end):void 0===n.start&&void 0===n.end&&Object.keys(r).every(function(e){return 0===(r[e]||[]).length})}function Gn(e,t,n){var r=e,i=JSON.parse(window.decodeURI(n)),a=r.getNumericRefinements(t);if(void 0===i.start&&void 0===i.end)return r.removeNumericRefinement(t);if(Yn(r,t,i)||(r=r.removeNumericRefinement(t)),void 0!==i.start&&void 0!==i.end){if(i.start>i.end)throw new Error("option.start should be > to option.end");if(i.start===i.end)return r=Xn(a,"=",i.start)?r.removeNumericRefinement(t,"=",i.start):r.addNumericRefinement(t,"=",i.start)}return void 0!==i.start&&(r=Xn(a,">=",i.start)?r.removeNumericRefinement(t,">=",i.start):r.addNumericRefinement(t,">=",i.start)),void 0!==i.end&&(r=Xn(a,"<=",i.end)?r.removeNumericRefinement(t,"<=",i.end):r.addNumericRefinement(t,"<=",i.end)),"number"==typeof r.page&&(r.page=0),r}function Xn(e,t,n){return void 0!==e[t]&&e[t].includes(n)}var Zn=function(){function t(e){k(this,t),this.currentPage=e.currentPage,this.total=e.total,this.padding=e.padding}return M(t,[{key:"pages",value:function(){var e=this.total,t=this.currentPage,n=this.padding;if(0===e)return[0];var r=this.nbPagesDisplayed(n,e);if(r===e)return Ie({end:e});var i=this.calculatePaddingLeft(t,n,e,r);return Ie({start:t-i,end:t+(r-i)})}},{key:"nbPagesDisplayed",value:function(e,t){return Math.min(2*e+1,t)}},{key:"calculatePaddingLeft",value:function(e,t,n,r){return e<=t?e:n-t<=e?r-(n-e):t}},{key:"isLastPage",value:function(){return this.currentPage===this.total-1||0===this.total}},{key:"isFirstPage",value:function(){return 0===this.currentPage}}]),t}(),er=Ae({name:"pagination",connector:!0});function tr(c){var r=1=")||[],1)[0],l=Q(s.getNumericRefinement(S,"<=")||[],1)[0],h=void 0===n||""===n,f=void 0===r||""===r,d=h?void 0:parseFloat(n),m=f?void 0:parseFloat(r);a=x||c!==m?x&&f?_:m:void 0;var p=void 0===(i=N||o!==d?N&&h?P:d:void 0),v=xe(i),g=xe(o),y=p||v&&(!g||g&&o<=i),b=void 0===a,R=xe(a),w=xe(c);return(u!==i||l!==a)&&y&&(b||R&&(!w||w&&a<=c))?(s=s.removeNumericRefinement(S),v&&(s=s.addNumericRefinement(S,">=",F(i))),R&&(s=s.addNumericRefinement(S,"<=",F(a))),s):null}function m(e,t,n,r){var i=3=")||[],1)[0],n=Q(e.getNumericRefinement(S,"<=")||[],1)[0];return[xe(t)?t:-1/0,xe(n)?n:1/0]},_refine:function(i,a,s){return function(){var e=Q(0="],i=void 0===r?[]:r,a=n["<="],s=void 0===a?[]:a;return 0===i.length&&0===s.length?e:D({},e,{range:D({},e.range,L({},S,"".concat(i,":").concat(s)))})},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=e.addDisjunctiveFacet(S).setQueryParameters({numericRefinements:D({},e.numericRefinements,L({},S,{}))});N&&(r=r.addNumericRefinement(S,">=",P)),x&&(r=r.addNumericRefinement(S,"<=",_));var i=n.range&&n.range[S];if(!i||-1===i.indexOf(":"))return r;var a=Q(i.split(":").map(parseFloat),2),s=a[0],o=a[1];return xe(s)&&(r=r.addNumericRefinement(S,">=",s)),xe(o)&&(r=r.addNumericRefinement(S,"<=",o)),r}}}}var ar=Ae({name:"refinement-list",connector:!0});function sr(x){var c=1p||v&&!s&&!N;x({createURL:function(e){return r(n.toggleRefinement(m,e))},items:t,refine:a,searchForItems:h,instantSearchInstance:l,isFromSearch:s,canRefine:s||0=").concat(i)]}})}else o.sendEventToInsights(t[0])}};function mr(g){var n=1 ":n,i=e.rootPath,a=void 0===i?null:i,s=e.transformItems,c=void 0===s?function(e){return e}:s;if(!t||!Array.isArray(t)||0===t.length)throw new Error(Sr("The `attributes` option expects an array of strings."));var u=Q(t,1)[0];return{$$type:"ais.breadcrumb",init:function(e){var n=e.createURL,r=e.helper,t=e.instantSearchInstance;f.createURL=function(e){if(!e){var t=r.getHierarchicalFacetBreadcrumb(u);if(0")}function Mr(c,u){return function(e){var t=e||{},a=t.hit,s=t.matchingPatterns,n=t.transformSearchParameters,r=void 0===n?function(e){return e}:n;if(!a)throw new Error(Er("The `hit` option is required."));if(!s)throw new Error(Er("The `matchingPatterns` option is required."));var i=Object.keys(s).reduce(function(e,t){var n=s[t],r=Ne(a,t),i=n.score;return Array.isArray(r)?[].concat(_(e),[r.map(function(e){return kr({attributeName:t,attributeValue:e,attributeScore:i})})]):"string"==typeof r?[].concat(_(e),[kr({attributeName:t,attributeValue:r,attributeScore:i})]):e},[]),o=D({},r(new ae.SearchParameters({sumOrFiltersScores:!0,facetFilters:["objectID:-".concat(a.objectID)],optionalFilters:i})));return D({},Tr(c,u)({searchParameters:o}),{$$type:"ais.configureRelatedItems"})}}var Lr=Ae({name:"autocomplete",connector:!0}),jr=Ae({name:"query-rules",connector:!0});function Or(e){var t=this.helper,n=this.initialRuleContexts,r=this.trackedFilters,i=this.transformRuleContexts,a=e.state,s=a.ruleContexts||[],o=function(e){var i=e.helper,a=e.sharedHelperState,s=e.trackedFilters;return Object.keys(s).reduce(function(e,t){var n=Re(i.lastResults||{},a).filter(function(e){return e.attribute===t}).map(function(e){return e.numericValue||e.name}),r=(0,s[t])(n);return[].concat(_(e),_(n.filter(function(e){return r.includes(e)}).map(function(e){return function(e){return e.replace(/[^a-z0-9-_]+/gi,"_")}("ais-".concat(t,"-").concat(e))})))},[])}({helper:t,sharedHelperState:a,trackedFilters:r}),c=i([].concat(_(n),_(o))).slice(0,10);Te(s,c)||t.overrideStateWithoutTriggeringChangeEvent(D({},a,{ruleContexts:c}))}function Ar(h,e){var f=1Your custom HTML Marker
",reset:"Clear the map refinement",toggle:"Search as I move the map",redo:"Redo search here"},ai=Ae({name:"geo-search"}),si=at("GeoSearch");function oi(e){var t=e.className,n=e.handleClick,r=e.facetValueToRefine,i=e.isRefined,a=e.templateProps,s=e.templateKey,o=e.templateData,c=e.subItems;return vn("li",{className:t,onClick:function(e){n({facetValueToRefine:r,isRefined:i,originalEvent:e})}},vn(Ur,f({},a,{templateKey:s,data:o})),c)}var ci=function(){function i(){var e,s;k(this,i);for(var t=arguments.length,n=new Array(t),r=0;r{{label}}{{#helpers.formatNumber}}{{count}}{{/helpers.formatNumber}}',showMoreText:"\n {{#isShowingMore}}\n Show less\n {{/isShowingMore}}\n {{^isShowingMore}}\n Show more\n {{/isShowingMore}}\n "},hi=Ae({name:"hierarchical-menu"}),fi=at("HierarchicalMenu");function di(e){var t=e.results,n=e.hits,r=e.bindEvent,i=e.cssClasses,a=e.templateProps;return 0===t.hits.length?vn(Ur,f({},a,{templateKey:"empty",rootProps:{className:qr(i.root,i.emptyRoot)},data:t})):vn("div",{className:i.root},vn("ol",{className:i.list},n.map(function(e,t){return vn(Ur,f({},a,{templateKey:"item",rootTagName:"li",rootProps:{className:i.item},key:e.objectID,data:D({},e,{__hitIndex:t}),bindEvent:r}))})))}di.defaultProps={results:{hits:[]},hits:[]};var mi={empty:"No results",item:function(e){return JSON.stringify(e,null,2)}},pi=Ae({name:"hits"}),vi=at("Hits"),gi=On(di);function yi(e){var t=e.currentValue,n=e.options,r=e.cssClasses,i=e.setValue;return vn("select",{className:qr(r.select),onChange:function(e){return i(e.target.value)},value:"".concat(t)},n.map(function(e){return vn("option",{className:qr(r.option),key:e.label+e.value,value:"".concat(e.value)},e.label)}))}var bi=Ae({name:"hits-per-page"}),Ri=at("HitsPerPage"),wi={empty:"No results",showPreviousText:"Show previous results",showMoreText:"Show more results",item:function(e){return JSON.stringify(e,null,2)}},Si=Ae({name:"infinite-hits"}),Pi=at("InfiniteHits"),_i=On(function(e){var t=e.results,n=e.hits,r=e.bindEvent,i=e.hasShowPrevious,a=e.showPrevious,s=e.showMore,o=e.isFirstPage,c=e.isLastPage,u=e.cssClasses,l=e.templateProps;return 0===t.hits.length?vn(Ur,f({},l,{templateKey:"empty",rootProps:{className:qr(u.root,u.emptyRoot)},data:t})):vn("div",{className:u.root},i&&vn(Ur,f({},l,{templateKey:"showPreviousText",rootTagName:"button",rootProps:{className:qr(u.loadPrevious,L({},u.disabledLoadPrevious,o)),disabled:o,onClick:a}})),vn("ol",{className:u.list},n.map(function(e,t){return vn(Ur,f({},l,{templateKey:"item",rootTagName:"li",rootProps:{className:u.item},key:e.objectID,data:D({},e,{__hitIndex:t}),bindEvent:r}))})),vn(Ur,f({},l,{templateKey:"showMoreText",rootTagName:"button",rootProps:{className:qr(u.loadMore,L({},u.disabledLoadMore,c)),disabled:c,onClick:s}})))}),Ni={item:'{{label}}{{#helpers.formatNumber}}{{count}}{{/helpers.formatNumber}}',showMoreText:"\n {{#isShowingMore}}\n Show less\n {{/isShowingMore}}\n {{^isShowingMore}}\n Show more\n {{/isShowingMore}}\n "},xi=Ae({name:"menu"}),Fi=at("Menu");var Ii={reset:'\n\n ',submit:'\n\n ',loadingIndicator:'\n\n '},Ci={item:'',showMoreText:"\n {{#isShowingMore}}\n Show less\n {{/isShowingMore}}\n {{^isShowingMore}}\n Show more\n {{/isShowingMore}}\n ",searchableNoResults:"No results",searchableReset:Ii.reset,searchableSubmit:Ii.submit,searchableLoadingIndicator:Ii.loadingIndicator},Ti=Ae({name:"refinement-list"}),Ei=at("RefinementList"),ki=at("SearchBox");var Mi={item:''},Li=Ae({name:"numeric-menu"}),ji=at("NumericMenu");function Oi(e){var t=e.cssClasses,n=e.label,r=e.ariaLabel,i=e.url,a=e.isDisabled,s=e.handleClick,o=e.pageNumber;return vn("li",{className:t.item},a?vn("span",{className:t.link,dangerouslySetInnerHTML:{__html:n}}):vn("a",{className:t.link,"aria-label":r,href:i,onClick:function(e){return s(o,e)},dangerouslySetInnerHTML:{__html:n}}))}var Ai=function(){function a(){var e,n;k(this,a);for(var t=arguments.length,r=new Array(t),i=0;i=this.props.max}}]),a}(),fa=Ae({name:"range-slider"}),da=at("RangeSlider");var ma=Ae({name:"sort-by"}),pa=at("SortBy");var va={item:'{{#count}}{{/count}}{{^count}}{{/count}}\n {{#stars}}{{/stars}}\n & Up\n {{#count}}{{#helpers.formatNumber}}{{count}}{{/helpers.formatNumber}}{{/count}}\n{{#count}}{{/count}}{{^count}}
{{/count}}'},ga=Ae({name:"rating-menu"}),ya=at("RatingMenu"),ba=vn("path",{d:"M12 .288l2.833 8.718h9.167l-7.417 5.389 2.833 8.718-7.416-5.388-7.417 5.388 2.833-8.718-7.416-5.389h9.167z"}),Ra=vn("path",{d:"M12 6.76l1.379 4.246h4.465l-3.612 2.625 1.379 4.246-3.611-2.625-3.612 2.625 1.379-4.246-3.612-2.625h4.465l1.38-4.246zm0-6.472l-2.833 8.718h-9.167l7.416 5.389-2.833 8.718 7.417-5.388 7.416 5.388-2.833-8.718 7.417-5.389h-9.167l-2.833-8.718z"});function wa(e){var t=e.nbHits,n=e.hitsPerPage,r=e.nbPages,i=e.page,a=e.processingTimeMS,s=e.query,o=e.templateProps,c=e.cssClasses;return vn("div",{className:c.root},vn(Ur,f({},o,{templateKey:"text",rootTagName:"span",rootProps:{className:c.text},data:{hasManyResults:1"},ka=Ae({name:"breadcrumb"}),Ma=at("Breadcrumb");function La(e){var t=e.cssClasses,n=e.templateProps,r=e.items,i=e.refine,a=(ge(r,function(e){return e.isRefined})||{value:""}).value;return vn("div",{className:qr(t.root,L({},t.noRefinementRoot,0===r.length))},vn("select",{className:t.select,value:a,onChange:function(e){i(e.target.value)}},vn(Ur,f({},n,{templateKey:"defaultOption",rootTagName:"option",rootProps:{value:"",className:t.option}})),r.map(function(e){return vn(Ur,f({},n,{templateKey:"item",rootTagName:"option",rootProps:{value:e.value,className:t.option},key:e.value,data:e}))})))}var ja={item:"{{label}} ({{#helpers.formatNumber}}{{count}}{{/helpers.formatNumber}})",defaultOption:"See all"},Oa=Ae({name:"menu-select"}),Aa=at("MenuSelect");function Ha(e){var t=e.url,n=e.theme,r=e.cssClasses;return vn("div",{className:r.root},vn("a",{href:t,target:"_blank",className:r.link,"aria-label":"Search by Algolia",rel:"noopener noreferrer"},vn("svg",{height:"1.2em",className:r.logo,viewBox:"0 0 168 24",style:{width:"auto"}},vn("path",{fill:"dark"===n?"#FFF":"#5D6494",d:"M6.97 6.68V8.3a4.47 4.47 0 0 0-2.42-.67 2.2 2.2 0 0 0-1.38.4c-.34.26-.5.6-.5 1.02 0 .43.16.77.49 1.03.33.25.83.53 1.51.83a7.04 7.04 0 0 1 1.9 1.08c.34.24.58.54.73.89.15.34.23.74.23 1.18 0 .95-.33 1.7-1 2.24a4 4 0 0 1-2.6.81 5.71 5.71 0 0 1-2.94-.68v-1.71c.84.63 1.81.94 2.92.94.58 0 1.05-.14 1.39-.4.34-.28.5-.65.5-1.13 0-.29-.1-.55-.3-.8a2.2 2.2 0 0 0-.65-.53 23.03 23.03 0 0 0-1.64-.78 13.67 13.67 0 0 1-1.11-.64c-.12-.1-.28-.22-.46-.4a1.72 1.72 0 0 1-.39-.5 4.46 4.46 0 0 1-.22-.6c-.07-.23-.1-.48-.1-.75 0-.91.33-1.63 1-2.17a4 4 0 0 1 2.57-.8c.97 0 1.8.18 2.47.52zm7.47 5.7v-.3a2.26 2.26 0 0 0-.5-1.44c-.3-.35-.74-.53-1.32-.53-.53 0-.99.2-1.37.58-.38.39-.62.95-.72 1.68h3.91zm1 2.79v1.4c-.6.34-1.38.51-2.36.51a4.02 4.02 0 0 1-3-1.13 4.04 4.04 0 0 1-1.11-2.97c0-1.3.34-2.32 1.02-3.06a3.38 3.38 0 0 1 2.6-1.1c1.03 0 1.85.32 2.46.96.6.64.9 1.57.9 2.78 0 .33-.03.68-.09 1.04h-5.31c.1.7.4 1.24.89 1.61.49.38 1.1.56 1.85.56.86 0 1.58-.2 2.15-.6zm6.61-1.78h-1.21c-.6 0-1.05.12-1.35.36-.3.23-.46.53-.46.89 0 .37.12.66.36.88.23.2.57.32 1.02.32.5 0 .9-.15 1.2-.43.3-.28.44-.65.44-1.1v-.92zm-4.07-2.55V9.33a4.96 4.96 0 0 1 2.5-.55c2.1 0 3.17 1.03 3.17 3.08V17H22.1v-.96c-.42.68-1.15 1.02-2.19 1.02-.76 0-1.38-.22-1.84-.66-.46-.44-.7-1-.7-1.68 0-.78.3-1.38.88-1.81.59-.43 1.4-.65 2.46-.65h1.34v-.46c0-.55-.13-.97-.4-1.25-.26-.29-.7-.43-1.32-.43-.86 0-1.65.24-2.35.72zm9.34-1.93v1.42c.39-1 1.1-1.5 2.12-1.5.15 0 .31.02.5.05v1.53c-.23-.1-.48-.14-.76-.14-.54 0-.99.24-1.34.71a2.8 2.8 0 0 0-.52 1.71V17h-1.57V8.91h1.57zm5 4.09a3 3 0 0 0 .76 2.01c.47.53 1.14.8 2 .8.64 0 1.24-.18 1.8-.53v1.4c-.53.32-1.2.48-2 .48a3.98 3.98 0 0 1-4.17-4.18c0-1.16.38-2.15 1.14-2.98a4 4 0 0 1 3.1-1.23c.7 0 1.34.15 1.92.44v1.44a3.24 3.24 0 0 0-1.77-.5A2.65 2.65 0 0 0 32.33 13zm7.92-7.28v4.58c.46-1 1.3-1.5 2.5-1.5.8 0 1.42.24 1.9.73.48.5.72 1.17.72 2.05V17H43.8v-5.1c0-.56-.14-.99-.43-1.29-.28-.3-.65-.45-1.1-.45-.54 0-1 .2-1.42.6-.4.4-.61 1.02-.61 1.85V17h-1.56V5.72h1.56zM55.2 15.74c.6 0 1.1-.25 1.5-.76.4-.5.6-1.16.6-1.95 0-.92-.2-1.62-.6-2.12-.4-.5-.92-.74-1.55-.74-.56 0-1.05.22-1.5.67-.44.45-.66 1.13-.66 2.06 0 .96.22 1.67.64 2.14.43.47.95.7 1.57.7zM53 5.72v4.42a2.74 2.74 0 0 1 2.43-1.34c1.03 0 1.86.38 2.51 1.15.65.76.97 1.78.97 3.05 0 1.13-.3 2.1-.92 2.9-.62.81-1.47 1.21-2.54 1.21s-1.9-.45-2.46-1.34V17h-1.58V5.72H53zm9.9 11.1l-3.22-7.9h1.74l1 2.62 1.26 3.42c.1-.32.48-1.46 1.15-3.42l.91-2.63h1.66l-2.92 7.87c-.78 2.07-1.96 3.1-3.56 3.1-.28 0-.53-.02-.73-.07v-1.34c.17.04.35.06.54.06 1.03 0 1.76-.57 2.17-1.7z"}),Da,Ba,vn("path",{fill:"dark"===n?"#FFF":"#5468FF",d:"M120.92 18.8c-4.38.02-4.38-3.54-4.38-4.1V1.36l2.67-.42v13.25c0 .32 0 2.36 1.71 2.37v2.24zm-10.84-2.18c.82 0 1.43-.04 1.85-.12v-2.72a5.48 5.48 0 0 0-1.57-.2c-.3 0-.6.02-.9.07-.3.04-.57.12-.81.24-.24.11-.44.28-.58.49a.93.93 0 0 0-.22.65c0 .63.22 1 .61 1.23.4.24.94.36 1.62.36zm-.23-9.7c.88 0 1.62.11 2.23.33.6.22 1.09.53 1.44.92.36.4.61.92.76 1.48.16.56.23 1.17.23 1.85v6.87c-.4.1-1.03.2-1.86.32-.84.12-1.78.18-2.82.18-.69 0-1.32-.07-1.9-.2a4 4 0 0 1-1.46-.63c-.4-.3-.72-.67-.96-1.13a4.3 4.3 0 0 1-.34-1.8c0-.66.13-1.08.39-1.53.26-.45.6-.82 1.04-1.1.45-.3.95-.5 1.54-.62a8.8 8.8 0 0 1 3.79.05v-.44c0-.3-.04-.6-.11-.87a1.78 1.78 0 0 0-1.1-1.22c-.31-.12-.7-.2-1.15-.2a9.75 9.75 0 0 0-2.95.46l-.33-2.19c.34-.12.84-.23 1.48-.35.65-.12 1.34-.18 2.08-.18zm52.84 9.63c.82 0 1.43-.05 1.85-.13V13.7a5.42 5.42 0 0 0-1.57-.2c-.3 0-.6.02-.9.07-.3.04-.57.12-.81.24-.24.12-.44.28-.58.5a.93.93 0 0 0-.22.65c0 .63.22.99.61 1.23.4.24.94.36 1.62.36zm-.23-9.7c.88 0 1.63.11 2.23.33.6.22 1.1.53 1.45.92.35.39.6.92.76 1.48.15.56.23 1.18.23 1.85v6.88c-.41.08-1.03.19-1.87.31-.83.12-1.77.18-2.81.18-.7 0-1.33-.06-1.9-.2a4 4 0 0 1-1.47-.63c-.4-.3-.72-.67-.95-1.13a4.3 4.3 0 0 1-.34-1.8c0-.66.13-1.08.38-1.53.26-.45.61-.82 1.05-1.1.44-.3.95-.5 1.53-.62a8.8 8.8 0 0 1 3.8.05v-.43c0-.31-.04-.6-.12-.88-.07-.28-.2-.52-.38-.73a1.78 1.78 0 0 0-.73-.5c-.3-.1-.68-.2-1.14-.2a9.85 9.85 0 0 0-2.95.47l-.32-2.19a11.63 11.63 0 0 1 3.55-.53zm-8.03-1.27a1.62 1.62 0 0 0 0-3.24 1.62 1.62 0 1 0 0 3.24zm1.35 13.22h-2.7V7.27l2.7-.42V18.8zm-4.72 0c-4.38.02-4.38-3.54-4.38-4.1l-.01-13.34 2.67-.42v13.25c0 .32 0 2.36 1.72 2.37v2.24zm-8.7-5.9a4.7 4.7 0 0 0-.74-2.79 2.4 2.4 0 0 0-2.07-1 2.4 2.4 0 0 0-2.06 1 4.7 4.7 0 0 0-.74 2.8c0 1.16.25 1.94.74 2.62a2.4 2.4 0 0 0 2.07 1.02c.88 0 1.57-.34 2.07-1.02.49-.68.73-1.46.73-2.63zm2.74 0a6.46 6.46 0 0 1-1.52 4.23c-.49.53-1.07.94-1.76 1.22-.68.29-1.73.45-2.26.45-.53 0-1.58-.15-2.25-.45a5.1 5.1 0 0 1-2.88-3.13 7.3 7.3 0 0 1-.01-4.84 5.13 5.13 0 0 1 2.9-3.1 5.67 5.67 0 0 1 2.22-.42c.81 0 1.56.14 2.24.42.69.29 1.28.69 1.75 1.22.49.52.87 1.15 1.14 1.89a7 7 0 0 1 .43 2.5zm-20.14 0c0 1.11.25 2.36.74 2.88.5.52 1.13.78 1.91.78a4.07 4.07 0 0 0 2.12-.6V9.33c-.19-.04-.99-.2-1.76-.23a2.67 2.67 0 0 0-2.23 1 4.73 4.73 0 0 0-.78 2.8zm7.44 5.27c0 1.82-.46 3.16-1.4 4-.94.85-2.37 1.27-4.3 1.27-.7 0-2.17-.13-3.34-.4l.43-2.11c.98.2 2.27.26 2.95.26 1.08 0 1.84-.22 2.3-.66.46-.43.68-1.08.68-1.94v-.44a5.2 5.2 0 0 1-2.54.6 5.6 5.6 0 0 1-2.01-.36 4.2 4.2 0 0 1-2.58-2.71 9.88 9.88 0 0 1 .02-5.35 4.92 4.92 0 0 1 2.93-2.96 6.6 6.6 0 0 1 2.43-.46 19.64 19.64 0 0 1 4.43.66v10.6z"}))))}var Da=vn("path",{fill:"#5468FF",d:"M78.99.94h16.6a2.97 2.97 0 0 1 2.96 2.96v16.6a2.97 2.97 0 0 1-2.97 2.96h-16.6a2.97 2.97 0 0 1-2.96-2.96V3.9A2.96 2.96 0 0 1 79 .94"}),Ba=vn("path",{fill:"#FFF",d:"M89.63 5.97v-.78a.98.98 0 0 0-.98-.97h-2.28a.98.98 0 0 0-.97.97V6c0 .09.08.15.17.13a7.13 7.13 0 0 1 3.9-.02c.08.02.16-.04.16-.13m-6.25 1L83 6.6a.98.98 0 0 0-1.38 0l-.46.46a.97.97 0 0 0 0 1.38l.38.39c.06.06.15.04.2-.02a7.49 7.49 0 0 1 1.63-1.62c.07-.04.08-.14.02-.2m4.16 2.45v3.34c0 .1.1.17.2.12l2.97-1.54c.06-.03.08-.12.05-.18a3.7 3.7 0 0 0-3.08-1.87c-.07 0-.14.06-.14.13m0 8.05a4.49 4.49 0 1 1 0-8.98 4.49 4.49 0 0 1 0 8.98m0-10.85a6.37 6.37 0 1 0 0 12.74 6.37 6.37 0 0 0 0-12.74"}),Qa=at("PoweredBy"),qa=Ae({name:"powered-by"});var Ua,Va,Wa=[],$a=sn.__r;sn.__r=function(e){$a&&$a(e),Ua=0,(Va=e.__c).__H&&(Va.__H.t=ts(Va.__H.t))};var za=sn.diffed;sn.diffed=function(e){za&&za(e);var t=e.__c;if(t){var n=t.__H;n&&(n.u=(n.u.some(function(e){e.ref&&(e.ref.current=e.createHandle())}),[]),n.i=ts(n.i))}};var Ka=sn.unmount;function Ja(e){sn.__h&&sn.__h(Va);var t=Va.__H||(Va.__H={o:[],t:[],i:[],u:[]});return e>=t.o.length&&t.o.push({}),t.o[e]}function Ya(e){return function(n,e,t){var r=Ja(Ua++);return r.__c||(r.__c=Va,r.v=[t?t(e):as(void 0,e),function(e){var t=n(r.v[0],e);r.v[0]!==t&&(r.v[0]=t,r.__c.setState({}))}]),r.v}(as,e)}function Ga(e){return function(e,t){var n=Ja(Ua++);return is(n.m,t)?(n.m=t,n.p=e,n.v=e()):n.v}(function(){return{current:e}},[])}sn.unmount=function(e){Ka&&Ka(e);var t=e.__c;if(t){var n=t.__H;n&&n.o.forEach(function(e){return e.l&&e.l()})}};var Xa=function(){};function Za(){Wa.some(function(e){e.s=!1,e.__P&&(e.__H.t=ts(e.__H.t))}),Wa=[]}if("undefined"!=typeof window){var es=sn.requestAnimationFrame;Xa=function(e){(!e.s&&(e.s=!0)&&1===Wa.push(e)||es!==sn.requestAnimationFrame)&&(es=sn.requestAnimationFrame,(sn.requestAnimationFrame||function(e){function t(){clearTimeout(n),cancelAnimationFrame(r),setTimeout(e)}var n=setTimeout(t,100),r=requestAnimationFrame(t)})(Za))}}function ts(e){return e.forEach(ns),e.forEach(rs),[]}function ns(e){e.l&&e.l()}function rs(e){var t=e.v();"function"==typeof t&&(e.l=t)}function is(n,e){return!n||e.some(function(e,t){return e!==n[t]})}function as(e,t){return"function"==typeof t?t(e):t}function ss(e){var t,n=Q(Ya(e.isCollapsed),2),r=n[0],i=n[1],a=Q(Ya(!1),2),s=a[0],o=a[1],c=Ga(null);return function(e,t){var n=Ja(Ua++);is(n.m,t)&&(n.v=e,n.m=t,Va.__H.t.push(n),Xa(Va))}(function(){if(c.current)return c.current.appendChild(e.bodyElement),function(){c.current.removeChild(e.bodyElement)}},[c,e.bodyElement]),s||e.isCollapsed===r||i(e.isCollapsed),vn("div",{className:qr(e.cssClasses.root,(t={},L(t,e.cssClasses.noRefinementRoot,e.hidden),L(t,e.cssClasses.collapsibleRoot,e.collapsible),L(t,e.cssClasses.collapsedRoot,r),t)),hidden:e.hidden},e.templates.header&&vn("div",{className:e.cssClasses.header},vn(Ur,{templates:e.templates,templateKey:"header",rootTagName:"span",data:e.data}),e.collapsible&&vn("button",{className:e.cssClasses.collapseButton,"aria-expanded":!r,onClick:function(e){e.preventDefault(),o(!0),i(function(e){return!e})}},vn(Ur,{templates:e.templates,templateKey:"collapseButtonText",rootTagName:"span",data:{collapsed:r}}))),vn("div",{className:e.cssClasses.body,ref:c}),e.templates.footer&&vn(Ur,{templates:e.templates,templateKey:"footer",rootProps:{className:e.cssClasses.footer},data:e.data}))}function os(e){var t=e.cssClasses,n=e.isBrowserSupported,r=e.isListening,i=e.toggleListening,a=e.voiceListeningState,s=e.templates,o=a.status,c=a.transcript,u=a.isSpeechFinal,l=a.errorCode;return vn("div",{className:t.root},vn(Ur,{templateKey:"buttonText",rootTagName:"button",rootProps:{className:t.button,type:"button",title:"Search by voice".concat(n?"":" (not supported on this browser)"),onClick:function(e){e.currentTarget.blur(),i()},disabled:!n},data:{status:o,errorCode:l,isListening:r,transcript:c,isSpeechFinal:u,isBrowserSupported:n},templates:s}),vn(Ur,{templateKey:"status",rootProps:{className:t.status},data:{status:o,errorCode:l,isListening:r,transcript:c,isSpeechFinal:u,isBrowserSupported:n},templates:s}))}function cs(e){var t=e.isBrowserSupported,n=e.isListening,r=e.toggleListening,i=e.voiceListeningState,a=e.widgetParams,s=a.container,o=a.cssClasses,c=a.templates;Ln(vn(os,{cssClasses:o,templates:c,isBrowserSupported:t,isListening:n,toggleListening:r,voiceListeningState:i}),s)}function us(e){var t=e.cssClasses,n=e.templates,r=e.items;return vn(Ur,{templateKey:"default",templates:n,rootProps:{className:t.root},data:{items:r}})}function ls(e){var t=e.items,n=e.widgetParams,r=n.container,i=n.cssClasses,a=n.templates;Ln(vn(us,{cssClasses:i,templates:a,items:t}),r)}var hs=Ae({name:"panel"}),fs=at("Panel"),ds={buttonText:function(e){var t=e.status,n=e.errorCode,r=e.isListening;return'")},status:"{{transcript}}
"},ms=Ae({name:"voice-search"}),ps=at("VoiceSearch"),vs=Ae({name:"query-rule-custom-data"}),gs=at("QueryRuleCustomData"),ys=Ae({name:"query-rule-context"}),bs=Object.freeze({__proto__:null,clearRefinements:function(e){var t=e||{},n=t.container,r=t.templates,i=void 0===r?Kr:r,a=t.includedAttributes,s=t.excludedAttributes,o=t.transformItems,c=t.cssClasses,u=void 0===c?{}:c;if(!n)throw new Error(Jr("The `container` option is required."));var l=ce(n),h={root:qr(Yr(),u.root),button:qr(Yr({descendantName:"button"}),u.button),disabledButton:qr(Yr({descendantName:"button",modifierName:"disabled"}),u.disabledButton)},f=function(e){var a=e.containerNode,s=e.cssClasses,o=e.renderState,c=e.templates;return function(e,t){var n=e.refine,r=e.hasRefinements,i=e.instantSearchInstance;t?o.templateProps=he({defaultTemplates:Kr,templatesConfig:i.templatesConfig,templates:c}):Ln(vn(Vr,{refine:n,cssClasses:s,hasRefinements:r,templateProps:o.templateProps}),a)}}({containerNode:l,cssClasses:h,renderState:{},templates:i});return Vt(f,function(){return Ln(null,l)})({includedAttributes:a,excludedAttributes:s,transformItems:o})},configure:function(e){return Tr(_e)({searchParameters:e})},EXPERIMENTAL_configureRelatedItems:function(e){return Mr(_e)(e)},currentRefinements:function(e){var t=e||{},n=t.container,r=t.includedAttributes,i=t.excludedAttributes,a=t.cssClasses,s=void 0===a?{}:a,o=t.transformItems;if(!n)throw new Error(Gr("The `container` option is required."));var c=ce(n),u={root:qr(Xr(),s.root),list:qr(Xr({descendantName:"list"}),s.list),item:qr(Xr({descendantName:"item"}),s.item),label:qr(Xr({descendantName:"label"}),s.label),category:qr(Xr({descendantName:"category"}),s.category),categoryLabel:qr(Xr({descendantName:"categoryLabel"}),s.categoryLabel),delete:qr(Xr({descendantName:"delete"}),s.delete)};return zt($r,function(){return Ln(null,c)})({container:c,cssClasses:u,includedAttributes:r,excludedAttributes:i,transformItems:o})},geoSearch:function(e){var t=0=")&&r.hasOwnProperty("<="))r[">="]&&r[">="][0]===r["<="]&&r["<="][0]?t.push("".concat(n,"=").concat(n,"_").concat(r[">="])):t.push("".concat(n,"=").concat(n,"_").concat(r[">="],"to").concat(r["<="]));else if(r.hasOwnProperty(">="))t.push("".concat(n,"=").concat(n,"_from").concat(r[">="]));else if(r.hasOwnProperty("<="))t.push("".concat(n,"=").concat(n,"_to").concat(r["<="]));else if(r.hasOwnProperty("=")){var i=[];for(var a in r["="])r["="].hasOwnProperty(a)&&i.push(r["="][a]);t.push("".concat(n,"=").concat(n,"_").concat(i.join("-")))}}return t.join("&")}(e.state.numericRefinements);""!==n&&t.push(n),""!==r&&t.push(r);var i=t.join("&"),a="Query: ".concat(e.state.query||"",", ").concat(i);!0===l&&(a+=", Page: ".concat(e.state.page||0)),m!==a&&(s(i,e.state,e.results),m=a)}}var f,d=null,m="",p=!0;!0===c&&(p=!1);function v(){h(d)}function g(){h(d)}return{init:function(){!0===a&&(document.addEventListener("click",v),window.addEventListener("beforeunload",g))},render:function(e){var t=e.results,n=e.state;!0!==p?(d={results:t,state:n},f&&clearTimeout(f),f=window.setTimeout(function(){return h(d)},r)):p=!1},dispose:function(){!0===a&&(document.removeEventListener("click",v),window.removeEventListener("beforeunload",g))}}},breadcrumb:function(e){var t=e||{},n=t.container,r=t.attributes,i=t.separator,a=t.rootPath,s=t.transformItems,o=t.templates,c=void 0===o?Ea:o,u=t.cssClasses,l=void 0===u?{}:u;if(!n)throw new Error(ka("The `container` option is required."));var h=ce(n),f={root:qr(Ma(),l.root),noRefinementRoot:qr(Ma({modifierName:"noRefinement"}),l.noRefinementRoot),list:qr(Ma({descendantName:"list"}),l.list),item:qr(Ma({descendantName:"item"}),l.item),selectedItem:qr(Ma({descendantName:"item",modifierName:"selected"}),l.selectedItem),separator:qr(Ma({descendantName:"separator"}),l.separator),link:qr(Ma({descendantName:"link"}),l.link)},d=function(e){var o=e.containerNode,c=e.cssClasses,u=e.renderState,l=e.templates;return function(e,t){var n=e.canRefine,r=e.createURL,i=e.instantSearchInstance,a=e.items,s=e.refine;t?u.templateProps=he({defaultTemplates:Ea,templatesConfig:i.templatesConfig,templates:l}):Ln(vn(Ca,{canRefine:n,cssClasses:c,createURL:r,items:a,refine:s,templateProps:u.templateProps}),o)}}({containerNode:h,cssClasses:f,renderState:{},templates:c});return wr(d,function(){return Ln(null,h)})({attributes:r,separator:i,rootPath:a,transformItems:s})},menuSelect:function(e){var t=e.container,n=e.attribute,r=e.sortBy,i=void 0===r?["name:asc"]:r,a=e.limit,s=void 0===a?10:a,o=e.cssClasses,c=void 0===o?{}:o,u=e.templates,l=void 0===u?ja:u,h=e.transformItems;if(!t)throw new Error(Oa("The `container` option is required."));var f=ce(t),d={root:qr(Aa(),c.root),noRefinementRoot:qr(Aa({modifierName:"noRefinement"}),c.noRefinementRoot),select:qr(Aa({descendantName:"select"}),c.select),option:qr(Aa({descendantName:"option"}),c.option)};return $n(function(e){var s=e.containerNode,o=e.cssClasses,c=e.renderState,u=e.templates;return function(e,t){var n=e.refine,r=e.items,i=e.canRefine,a=e.instantSearchInstance;t?c.templateProps=he({defaultTemplates:ja,templatesConfig:a.templatesConfig,templates:u}):Ln(vn(La,{cssClasses:o,items:r,refine:n,templateProps:c.templateProps,canRefine:i}),s)}}({containerNode:f,cssClasses:d,renderState:{},templates:l}),function(){return Ln(null,f)})({attribute:n,limit:s,sortBy:i,transformItems:h})},poweredBy:function(){var e=0\n \n ')}},a=function(e){var a=e.containerNode,s=e.bodyContainerNode,o=e.cssClasses,c=e.templates;return function(e){var t=e.options,n=e.hidden,r=e.collapsible,i=e.collapsed;Ln(vn(ss,{cssClasses:o,hidden:n,collapsible:r,isCollapsed:i,templates:c,data:t,bodyElement:s}),a)}}({containerNode:ce(i),bodyContainerNode:u,cssClasses:f,templates:D({},t,{},r)});a({options:{},hidden:!0,collapsible:l,collapsed:!1});var s=n(D({},e,{container:u}));return D({},s,{dispose:function(){if(Ln(null,ce(i)),"function"==typeof s.dispose){for(var e,t=arguments.length,n=new Array(t),r=0;r "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(t){return v(this.hierarchicalFacets,function(e){return e.name===t})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(n).map(function(e){return e.trim()})},toString:function(){return JSON.stringify(this,null,2)}};var R=b;function w(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=void 0!==t,a=null===t;if(!a&&t=i.length?r:"desc"===i[n]?-r:r}return e.index-t.index}),t.map(function(e){return e.value})},x=function(h){return function(e,t){var n=h.hierarchicalFacets[t],r=h.hierarchicalFacetsRefinements[n.name]&&h.hierarchicalFacetsRefinements[n.name][0]||"",i=h._getHierarchicalFacetSeparator(n),a=h._getHierarchicalRootPath(n),s=h._getHierarchicalShowParentLevel(n),o=P(h._getHierarchicalFacetSortBy(n)),c=e.every(function(e){return e.exhaustive}),u=function(o,c,u,l,h){return function(e,n,t){var r=e;if(0n&&(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),"function"==typeof console.trace&&console.trace()),this},V.prototype.once=function(e,t){if(!W(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},V.prototype.removeListener=function(e,t){var n,r,i,a;if(!W(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||W(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if($(n)){for(a=i;0":7,"=":8,_v:9,"{":10,"&":11,_t:12},R.scan=function(e,t){var n,r,i,a,s,o=e.length,c=0,u=null,l=null,h="",f=[],d=!1,m=0,p=0,v="{{",g="}}";function y(){0"==n.tag&&(n.indent=f[r].text.toString()),f.splice(r,1));else t||f.push({tag:"\n"});d=!1,p=f.length}for(t&&(t=t.split(" "),v=t[0],g=t[1]),m=0;m":m,"<":function(e,t){var n={partials:{},code:"",subs:{},inPartial:!0};R.walk(e.nodes,n);var r=t.partials[m(e,t)];r.subs=n.subs,r.partials=n.partials},$:function(e,t){var n={subs:{},code:"",partials:t.partials,prefix:e.n};R.walk(e.nodes,n),t.subs[e.n]=n.code,t.inPartial||(t.code+='t.sub("'+f(e.n)+'",c,p,i);')},"\n":function(e,t){t.code+=p('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+d(e.n)+'("'+f(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=p('"'+f(e.text)+'"')},"{":e,"&":e},R.walk=function(e,t){for(var n,r=0,i=e.length;r/g,i=/\'/g,a=/\"/g,s=/[&<>\"\']/;function o(e){return String(null==e?"":e)}var h=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)});de.Template=me.Template,de.template=de.Template;var pe=de;function ve(e){var t=e.templates,n=e.templateKey,r=e.compileOptions,i=e.helpers,a=e.data,s=e.bindEvent,o=t[n],c=h(o),u="function"===c;if(!("string"===c)&&!u)throw new Error("Template must be 'string' or 'function', was '".concat(c,"' (key: ").concat(n,")"));if(u)return o(a,s);var l=function(e,t,n){var r=0":">",'"':""","'":"'"},ke=/[&<>"']/g,Me=RegExp(ke.source);function Le(e,t){return e.setQueryParameters({hierarchicalFacets:t.hierarchicalFacets.reduce(function(e,t){var n=function(e,t){if(!Array.isArray(e))return-1;for(var n=0;n",highlightPostTag:""};function nt(e){return function(e){return e&&Me.test(e)?e.replace(ke,function(e){return Ee[e]}):e}(e).replace(new RegExp(et.highlightPreTag,"g"),tt.highlightPreTag).replace(new RegExp(et.highlightPostTag,"g"),tt.highlightPostTag)}function rt(n){return Fe(n)&&"string"!=typeof n.value?Object.keys(n).reduce(function(e,t){return D({},e,L({},t,rt(n[t])))},{}):Array.isArray(n)?n.map(rt):D({},n,{value:nt(n.value)})}function it(e){return void 0===e.__escaped&&((e=e.map(function(e){var t=f({},e);return t._highlightResult&&(t._highlightResult=rt(t._highlightResult)),t._snippetResult&&(t._snippetResult=rt(t._snippetResult)),t})).__escaped=!0),e}function at(a){return function(){var e=0')).replace(new RegExp(tt.highlightPostTag,"g"),"".concat(r,">"))}var ct=at("Snippet");function ut(e){var t=e.attribute,n=e.highlightedTagName,r=void 0===n?"mark":n,i=e.hit,a=e.cssClasses,s=void 0===a?{}:a,o=Ne(i,"_snippetResult.".concat(t,".value"))||"",c=ct({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):"");return o.replace(new RegExp(tt.highlightPreTag,"g"),"<".concat(r,' class="').concat(c,'">')).replace(new RegExp(tt.highlightPostTag,"g"),"".concat(r,">"))}function lt(e,t){return function(e){var t,n=e.method,r=e.payload;if("object"!==h(r))throw new Error("The insights helper expects the payload to be an object.");try{t=btoa(JSON.stringify(r))}catch(e){throw new Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(n,'" data-insights-payload="').concat(t,'"')}({method:e,payload:t})}function ht(){return function(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r>6]+Pt[128|63&s]:s<55296||57344<=s?i+=Pt[224|s>>12]+Pt[128|s>>6&63]+Pt[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(a)),i+=Pt[240|s>>18]+Pt[128|s>>12&63]+Pt[128|s>>6&63]+Pt[128|63&s])}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function r(i,a,s){if(!a)return i;if("object"!=typeof a){if(St(i))i.push(a);else{if(!i||"object"!=typeof i)return[i,a];(s&&(s.plainObjects||s.allowPrototypes)||!wt.call(Object.prototype,a))&&(i[a]=!0)}return i}if(!i||"object"!=typeof i)return[i].concat(a);var e=i;return St(i)&&!St(a)&&(e=mt(i,s)),St(i)&&St(a)?(a.forEach(function(e,t){if(wt.call(i,t)){var n=i[t];n&&"object"==typeof n&&e&&"object"==typeof e?i[t]=r(n,e,s):i.push(e)}else i[t]=e}),i):Object.keys(a).reduce(function(e,t){var n=a[t];return wt.call(e,t)?e[t]=r(e[t],n,s):e[t]=n,e},e)}},Nt=String.prototype.replace,xt=/%20/g,Ft={RFC1738:"RFC1738",RFC3986:"RFC3986"},It=_t.assign({default:Ft.RFC3986,formatters:{RFC1738:function(e){return Nt.call(e,xt,"+")},RFC3986:function(e){return String(e)}}},Ft),Ct=Object.prototype.hasOwnProperty,Tt={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Et=Array.isArray,kt=Array.prototype.push,Mt=Date.prototype.toISOString,Lt=It.default,jt={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:_t.encode,encodeValuesOnly:!1,format:Lt,formatter:It.formatters[Lt],indices:!1,serializeDate:function(e){return Mt.call(e)},skipNulls:!1,strictNullHandling:!1},Ot=Object.prototype.hasOwnProperty,At={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:_t.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Ht={formats:It,parse:function(e,t){var n=function(e){if(!e)return At;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?At.charset:e.charset;return{allowDots:void 0===e.allowDots?At.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:At.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:At.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:At.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:At.comma,decoder:"function"==typeof e.decoder?e.decoder:At.decoder,delimiter:"string"==typeof e.delimiter||_t.isRegExp(e.delimiter)?e.delimiter:At.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:At.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:At.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:At.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:At.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:At.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var r="string"==typeof e?function(e,t){var n,r={},i=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,s=i.split(t.delimiter,a),o=-1,c=t.charset;if(t.charsetSentinel)for(n=0;n=":return"≥";case"<=":return"≤";default:return e}}(e.operator)," ").concat(e.name):e.name,r={attribute:e.attribute,type:e.type,value:t,label:n};return void 0!==e.operator&&(r.operator=e.operator),void 0!==e.count&&(r.count=e.count),void 0!==e.exhaustive&&(r.exhaustive=e.exhaustive),r}var Zt=Ae({name:"hierarchical-menu",connector:!0});function en(R){var w=1 ":e,t=l.rootPath,h=void 0===t?null:t,n=l.showParentLevel,f=void 0===n||n,r=l.limit,d=void 0===r?10:r,i=l.showMore,m=void 0!==i&&i,a=l.showMoreLimit,p=void 0===a?20:a,s=l.sortBy,v=void 0===s?["name:asc"]:s,o=l.transformItems,g=void 0===o?function(e){return e}:o;if(!c||!Array.isArray(c)||0===c.length)throw new Error(Zt("The `attributes` option expects an array of strings."));if(!0===m&&p<=d)throw new Error(Zt("The `showMoreLimit` option must be greater than `limit`."));var y,b=Q(c,1)[0];return{$$type:"ais.hierarchicalMenu",isShowingMore:!1,toggleShowMore:function(){},cachedToggleShowMore:function(){this.toggleShowMore()},createToggleShowMore:function(e){var t=this;return function(){t.isShowingMore=!t.isShowingMore,t.render(e)}},getLimit:function(){return this.isShowingMore?p:d},init:function(e){var t=e.helper,n=e.createURL,r=e.instantSearchInstance;y=qe({instantSearchInstance:r,helper:t,attribute:b,widgetType:this.$$type}),this.cachedToggleShowMore=this.cachedToggleShowMore.bind(this),this._refine=function(e){y("click",e),t.toggleRefinement(b,e).search()},R({items:[],createURL:function(e){return n(t.state.toggleRefinement(b,e))},refine:this._refine,sendEvent:y,instantSearchInstance:r,widgetParams:l,isShowingMore:!1,toggleShowMore:this.cachedToggleShowMore,canToggleShowMore:!1},!0)},_prepareFacetValues:function(e,i){var a=this;return e.slice(0,this.getLimit()).map(function(e){var t=e.name,n=e.path,r=A(e,["name","path"]);return Array.isArray(r.data)&&(r.data=a._prepareFacetValues(r.data,i)),D({},r,{label:t,value:n})})},render:function(e){var t=e.results,n=e.state,r=e.createURL,i=e.instantSearchInstance,a=t.getFacetValues(b,{sortBy:v}).data||[],s=g(this._prepareFacetValues(a),n);var o=n.maxValuesPerFacet,c=this.getLimit(),u=cthis.getLimit())},!1)},dispose:function(e){var t=e.state;return a(),t.removeHierarchicalFacet(c).setQueryParameter("maxValuesPerFacet",void 0)},getWidgetState:function(e,t){var n=Q(t.searchParameters.getHierarchicalFacetBreadcrumb(c),1)[0];return n?D({},e,{menu:D({},e.menu,L({},c,n))}):e},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=n.menu&&n.menu[c],i=e.removeHierarchicalFacet(c).addHierarchicalFacet({name:c,attributes:[c]}),a=i.maxValuesPerFacet||0,s=Math.max(a,l?h:u),o=i.setQueryParameter("maxValuesPerFacet",s);return r?o.addHierarchicalFacetRefinement(c,r):o.setQueryParameters({hierarchicalFacetsRefinements:D({},o.hierarchicalFacetsRefinements,L({},c,[]))})}}}}function zn(l,e){var h=1="]&&n[">="][0]||"",a=n["<="]&&n["<="][0]||"";return""===i&&""===a?e:D({},e,{numericMenu:D({},e.numericMenu,L({},u,"".concat(i,":").concat(a)))})},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=n.numericMenu&&n.numericMenu[u],i=e.clearRefinements(u);if(!r)return i.setQueryParameters({numericRefinements:D({},i.numericRefinements,L({},u,{}))});if(-1===r.indexOf(":"))return i.addNumericRefinement(u,"=",Number(r));var a=Q(r.split(":").map(parseFloat),2),s=a[0],o=a[1],c=xe(s)?i.addNumericRefinement(u,">=",s):i;return xe(o)?c.addNumericRefinement(u,"<=",o):c}}}}var Kn=Ae({name:"numeric-menu",connector:!0}),Jn="ais.numericMenu";function Yn(e,t,n){var r=e.getNumericRefinements(t);return void 0!==n.start&&void 0!==n.end&&n.start===n.end?Xn(r,"=",n.start):void 0!==n.start?Xn(r,">=",n.start):void 0!==n.end?Xn(r,"<=",n.end):void 0===n.start&&void 0===n.end&&Object.keys(r).every(function(e){return 0===(r[e]||[]).length})}function Gn(e,t,n){var r=e,i=JSON.parse(window.decodeURI(n)),a=r.getNumericRefinements(t);if(void 0===i.start&&void 0===i.end)return r.removeNumericRefinement(t);if(Yn(r,t,i)||(r=r.removeNumericRefinement(t)),void 0!==i.start&&void 0!==i.end){if(i.start>i.end)throw new Error("option.start should be > to option.end");if(i.start===i.end)return r=Xn(a,"=",i.start)?r.removeNumericRefinement(t,"=",i.start):r.addNumericRefinement(t,"=",i.start)}return void 0!==i.start&&(r=Xn(a,">=",i.start)?r.removeNumericRefinement(t,">=",i.start):r.addNumericRefinement(t,">=",i.start)),void 0!==i.end&&(r=Xn(a,"<=",i.end)?r.removeNumericRefinement(t,"<=",i.end):r.addNumericRefinement(t,"<=",i.end)),"number"==typeof r.page&&(r.page=0),r}function Xn(e,t,n){return void 0!==e[t]&&e[t].includes(n)}var Zn=function(){function t(e){k(this,t),this.currentPage=e.currentPage,this.total=e.total,this.padding=e.padding}return M(t,[{key:"pages",value:function(){var e=this.total,t=this.currentPage,n=this.padding;if(0===e)return[0];var r=this.nbPagesDisplayed(n,e);if(r===e)return Ie({end:e});var i=this.calculatePaddingLeft(t,n,e,r);return Ie({start:t-i,end:t+(r-i)})}},{key:"nbPagesDisplayed",value:function(e,t){return Math.min(2*e+1,t)}},{key:"calculatePaddingLeft",value:function(e,t,n,r){return e<=t?e:n-t<=e?r-(n-e):t}},{key:"isLastPage",value:function(){return this.currentPage===this.total-1||0===this.total}},{key:"isFirstPage",value:function(){return 0===this.currentPage}}]),t}(),er=Ae({name:"pagination",connector:!0});function tr(c){var r=1=")||[],1)[0],l=Q(s.getNumericRefinement(S,"<=")||[],1)[0],h=void 0===n||""===n,f=void 0===r||""===r,d=h?void 0:parseFloat(n),m=f?void 0:parseFloat(r);a=x||c!==m?x&&f?_:m:void 0;var p=void 0===(i=N||o!==d?N&&h?P:d:void 0),v=xe(i),g=xe(o),y=p||v&&(!g||g&&o<=i),b=void 0===a,R=xe(a),w=xe(c);return(u!==i||l!==a)&&y&&(b||R&&(!w||w&&a<=c))?(s=s.removeNumericRefinement(S),v&&(s=s.addNumericRefinement(S,">=",F(i))),R&&(s=s.addNumericRefinement(S,"<=",F(a))),s):null}function m(e,t,n,r){var i=3=")||[],1)[0],n=Q(e.getNumericRefinement(S,"<=")||[],1)[0];return[xe(t)?t:-1/0,xe(n)?n:1/0]},_refine:function(i,a,s){return function(){var e=Q(0="],i=void 0===r?[]:r,a=n["<="],s=void 0===a?[]:a;return 0===i.length&&0===s.length?e:D({},e,{range:D({},e.range,L({},S,"".concat(i,":").concat(s)))})},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=e.addDisjunctiveFacet(S).setQueryParameters({numericRefinements:D({},e.numericRefinements,L({},S,{}))});N&&(r=r.addNumericRefinement(S,">=",P)),x&&(r=r.addNumericRefinement(S,"<=",_));var i=n.range&&n.range[S];if(!i||-1===i.indexOf(":"))return r;var a=Q(i.split(":").map(parseFloat),2),s=a[0],o=a[1];return xe(s)&&(r=r.addNumericRefinement(S,">=",s)),xe(o)&&(r=r.addNumericRefinement(S,"<=",o)),r}}}}var ar=Ae({name:"refinement-list",connector:!0});function sr(x){var c=1p||v&&!s&&!N;x({createURL:function(e){return r(n.toggleRefinement(m,e))},items:t,refine:a,searchForItems:h,instantSearchInstance:l,isFromSearch:s,canRefine:s||0=").concat(i)]}})}else o.sendEventToInsights(t[0])}};function mr(g){var n=1 ":n,i=e.rootPath,a=void 0===i?null:i,s=e.transformItems,c=void 0===s?function(e){return e}:s;if(!t||!Array.isArray(t)||0===t.length)throw new Error(Sr("The `attributes` option expects an array of strings."));var u=Q(t,1)[0];return{$$type:"ais.breadcrumb",init:function(e){var n=e.createURL,r=e.helper,t=e.instantSearchInstance;f.createURL=function(e){if(!e){var t=r.getHierarchicalFacetBreadcrumb(u);if(0")}function Mr(c,u){return function(e){var t=e||{},a=t.hit,s=t.matchingPatterns,n=t.transformSearchParameters,r=void 0===n?function(e){return e}:n;if(!a)throw new Error(Er("The `hit` option is required."));if(!s)throw new Error(Er("The `matchingPatterns` option is required."));var i=Object.keys(s).reduce(function(e,t){var n=s[t],r=Ne(a,t),i=n.score;return Array.isArray(r)?[].concat(_(e),[r.map(function(e){return kr({attributeName:t,attributeValue:e,attributeScore:i})})]):"string"==typeof r?[].concat(_(e),[kr({attributeName:t,attributeValue:r,attributeScore:i})]):e},[]),o=D({},r(new ae.SearchParameters({sumOrFiltersScores:!0,facetFilters:["objectID:-".concat(a.objectID)],optionalFilters:i})));return D({},Tr(c,u)({searchParameters:o}),{$$type:"ais.configureRelatedItems"})}}var Lr=Ae({name:"autocomplete",connector:!0}),jr=Ae({name:"query-rules",connector:!0});function Or(e){var t=this.helper,n=this.initialRuleContexts,r=this.trackedFilters,i=this.transformRuleContexts,a=e.state,s=a.ruleContexts||[],o=function(e){var i=e.helper,a=e.sharedHelperState,s=e.trackedFilters;return Object.keys(s).reduce(function(e,t){var n=Re(i.lastResults||{},a).filter(function(e){return e.attribute===t}).map(function(e){return e.numericValue||e.name}),r=(0,s[t])(n);return[].concat(_(e),_(n.filter(function(e){return r.includes(e)}).map(function(e){return function(e){return e.replace(/[^a-z0-9-_]+/gi,"_")}("ais-".concat(t,"-").concat(e))})))},[])}({helper:t,sharedHelperState:a,trackedFilters:r}),c=i([].concat(_(n),_(o))).slice(0,10);Te(s,c)||t.overrideStateWithoutTriggeringChangeEvent(D({},a,{ruleContexts:c}))}function Ar(h,e){var f=1Your custom HTML Marker",reset:"Clear the map refinement",toggle:"Search as I move the map",redo:"Redo search here"},ai=Ae({name:"geo-search"}),si=at("GeoSearch");function oi(e){var t=e.className,n=e.handleClick,r=e.facetValueToRefine,i=e.isRefined,a=e.templateProps,s=e.templateKey,o=e.templateData,c=e.subItems;return vn("li",{className:t,onClick:function(e){n({facetValueToRefine:r,isRefined:i,originalEvent:e})}},vn(Ur,f({},a,{templateKey:s,data:o})),c)}var ci=function(){function i(){var e,s;k(this,i);for(var t=arguments.length,n=new Array(t),r=0;r{{label}}{{#helpers.formatNumber}}{{count}}{{/helpers.formatNumber}}',showMoreText:"\n {{#isShowingMore}}\n Show less\n {{/isShowingMore}}\n {{^isShowingMore}}\n Show more\n {{/isShowingMore}}\n "},hi=Ae({name:"hierarchical-menu"}),fi=at("HierarchicalMenu");function di(e){var t=e.results,n=e.hits,r=e.bindEvent,i=e.cssClasses,a=e.templateProps;return 0===t.hits.length?vn(Ur,f({},a,{templateKey:"empty",rootProps:{className:qr(i.root,i.emptyRoot)},data:t})):vn("div",{className:i.root},vn("ol",{className:i.list},n.map(function(e,t){return vn(Ur,f({},a,{templateKey:"item",rootTagName:"li",rootProps:{className:i.item},key:e.objectID,data:D({},e,{__hitIndex:t}),bindEvent:r}))})))}di.defaultProps={results:{hits:[]},hits:[]};var mi={empty:"No results",item:function(e){return JSON.stringify(e,null,2)}},pi=Ae({name:"hits"}),vi=at("Hits"),gi=On(di);function yi(e){var t=e.currentValue,n=e.options,r=e.cssClasses,i=e.setValue;return vn("select",{className:qr(r.select),onChange:function(e){return i(e.target.value)},value:"".concat(t)},n.map(function(e){return vn("option",{className:qr(r.option),key:e.label+e.value,value:"".concat(e.value)},e.label)}))}var bi=Ae({name:"hits-per-page"}),Ri=at("HitsPerPage"),wi={empty:"No results",showPreviousText:"Show previous results",showMoreText:"Show more results",item:function(e){return JSON.stringify(e,null,2)}},Si=Ae({name:"infinite-hits"}),Pi=at("InfiniteHits"),_i=On(function(e){var t=e.results,n=e.hits,r=e.bindEvent,i=e.hasShowPrevious,a=e.showPrevious,s=e.showMore,o=e.isFirstPage,c=e.isLastPage,u=e.cssClasses,l=e.templateProps;return 0===t.hits.length?vn(Ur,f({},l,{templateKey:"empty",rootProps:{className:qr(u.root,u.emptyRoot)},data:t})):vn("div",{className:u.root},i&&vn(Ur,f({},l,{templateKey:"showPreviousText",rootTagName:"button",rootProps:{className:qr(u.loadPrevious,L({},u.disabledLoadPrevious,o)),disabled:o,onClick:a}})),vn("ol",{className:u.list},n.map(function(e,t){return vn(Ur,f({},l,{templateKey:"item",rootTagName:"li",rootProps:{className:u.item},key:e.objectID,data:D({},e,{__hitIndex:t}),bindEvent:r}))})),vn(Ur,f({},l,{templateKey:"showMoreText",rootTagName:"button",rootProps:{className:qr(u.loadMore,L({},u.disabledLoadMore,c)),disabled:c,onClick:s}})))}),Ni={item:'{{label}}{{#helpers.formatNumber}}{{count}}{{/helpers.formatNumber}}',showMoreText:"\n {{#isShowingMore}}\n Show less\n {{/isShowingMore}}\n {{^isShowingMore}}\n Show more\n {{/isShowingMore}}\n "},xi=Ae({name:"menu"}),Fi=at("Menu");var Ii={reset:'\n\n ',submit:'\n\n ',loadingIndicator:'\n\n '},Ci={item:'',showMoreText:"\n {{#isShowingMore}}\n Show less\n {{/isShowingMore}}\n {{^isShowingMore}}\n Show more\n {{/isShowingMore}}\n ",searchableNoResults:"No results",searchableReset:Ii.reset,searchableSubmit:Ii.submit,searchableLoadingIndicator:Ii.loadingIndicator},Ti=Ae({name:"refinement-list"}),Ei=at("RefinementList"),ki=at("SearchBox");var Mi={item:''},Li=Ae({name:"numeric-menu"}),ji=at("NumericMenu");function Oi(e){var t=e.cssClasses,n=e.label,r=e.ariaLabel,i=e.url,a=e.isDisabled,s=e.handleClick,o=e.pageNumber;return vn("li",{className:t.item},a?vn("span",{className:t.link,dangerouslySetInnerHTML:{__html:n}}):vn("a",{className:t.link,"aria-label":r,href:i,onClick:function(e){return s(o,e)},dangerouslySetInnerHTML:{__html:n}}))}var Ai=function(){function a(){var e,n;k(this,a);for(var t=arguments.length,r=new Array(t),i=0;i=this.props.max}}]),a}(),fa=Ae({name:"range-slider"}),da=at("RangeSlider");var ma=Ae({name:"sort-by"}),pa=at("SortBy");var va={item:'{{#count}}{{/count}}{{^count}}{{/count}}\n {{#stars}}{{/stars}}\n & Up\n {{#count}}{{#helpers.formatNumber}}{{count}}{{/helpers.formatNumber}}{{/count}}\n{{#count}}{{/count}}{{^count}}
{{/count}}'},ga=Ae({name:"rating-menu"}),ya=at("RatingMenu"),ba=vn("path",{d:"M12 .288l2.833 8.718h9.167l-7.417 5.389 2.833 8.718-7.416-5.388-7.417 5.388 2.833-8.718-7.416-5.389h9.167z"}),Ra=vn("path",{d:"M12 6.76l1.379 4.246h4.465l-3.612 2.625 1.379 4.246-3.611-2.625-3.612 2.625 1.379-4.246-3.612-2.625h4.465l1.38-4.246zm0-6.472l-2.833 8.718h-9.167l7.416 5.389-2.833 8.718 7.417-5.388 7.416 5.388-2.833-8.718 7.417-5.389h-9.167l-2.833-8.718z"});function wa(e){var t=e.nbHits,n=e.hitsPerPage,r=e.nbPages,i=e.page,a=e.processingTimeMS,s=e.query,o=e.templateProps,c=e.cssClasses;return vn("div",{className:c.root},vn(Ur,f({},o,{templateKey:"text",rootTagName:"span",rootProps:{className:c.text},data:{hasManyResults:1"},ka=Ae({name:"breadcrumb"}),Ma=at("Breadcrumb");function La(e){var t=e.cssClasses,n=e.templateProps,r=e.items,i=e.refine,a=(ge(r,function(e){return e.isRefined})||{value:""}).value;return vn("div",{className:qr(t.root,L({},t.noRefinementRoot,0===r.length))},vn("select",{className:t.select,value:a,onChange:function(e){i(e.target.value)}},vn(Ur,f({},n,{templateKey:"defaultOption",rootTagName:"option",rootProps:{value:"",className:t.option}})),r.map(function(e){return vn(Ur,f({},n,{templateKey:"item",rootTagName:"option",rootProps:{value:e.value,className:t.option},key:e.value,data:e}))})))}var ja={item:"{{label}} ({{#helpers.formatNumber}}{{count}}{{/helpers.formatNumber}})",defaultOption:"See all"},Oa=Ae({name:"menu-select"}),Aa=at("MenuSelect");function Ha(e){var t=e.url,n=e.theme,r=e.cssClasses;return vn("div",{className:r.root},vn("a",{href:t,target:"_blank",className:r.link,"aria-label":"Search by Algolia",rel:"noopener noreferrer"},vn("svg",{height:"1.2em",className:r.logo,viewBox:"0 0 168 24",style:{width:"auto"}},vn("path",{fill:"dark"===n?"#FFF":"#5D6494",d:"M6.97 6.68V8.3a4.47 4.47 0 0 0-2.42-.67 2.2 2.2 0 0 0-1.38.4c-.34.26-.5.6-.5 1.02 0 .43.16.77.49 1.03.33.25.83.53 1.51.83a7.04 7.04 0 0 1 1.9 1.08c.34.24.58.54.73.89.15.34.23.74.23 1.18 0 .95-.33 1.7-1 2.24a4 4 0 0 1-2.6.81 5.71 5.71 0 0 1-2.94-.68v-1.71c.84.63 1.81.94 2.92.94.58 0 1.05-.14 1.39-.4.34-.28.5-.65.5-1.13 0-.29-.1-.55-.3-.8a2.2 2.2 0 0 0-.65-.53 23.03 23.03 0 0 0-1.64-.78 13.67 13.67 0 0 1-1.11-.64c-.12-.1-.28-.22-.46-.4a1.72 1.72 0 0 1-.39-.5 4.46 4.46 0 0 1-.22-.6c-.07-.23-.1-.48-.1-.75 0-.91.33-1.63 1-2.17a4 4 0 0 1 2.57-.8c.97 0 1.8.18 2.47.52zm7.47 5.7v-.3a2.26 2.26 0 0 0-.5-1.44c-.3-.35-.74-.53-1.32-.53-.53 0-.99.2-1.37.58-.38.39-.62.95-.72 1.68h3.91zm1 2.79v1.4c-.6.34-1.38.51-2.36.51a4.02 4.02 0 0 1-3-1.13 4.04 4.04 0 0 1-1.11-2.97c0-1.3.34-2.32 1.02-3.06a3.38 3.38 0 0 1 2.6-1.1c1.03 0 1.85.32 2.46.96.6.64.9 1.57.9 2.78 0 .33-.03.68-.09 1.04h-5.31c.1.7.4 1.24.89 1.61.49.38 1.1.56 1.85.56.86 0 1.58-.2 2.15-.6zm6.61-1.78h-1.21c-.6 0-1.05.12-1.35.36-.3.23-.46.53-.46.89 0 .37.12.66.36.88.23.2.57.32 1.02.32.5 0 .9-.15 1.2-.43.3-.28.44-.65.44-1.1v-.92zm-4.07-2.55V9.33a4.96 4.96 0 0 1 2.5-.55c2.1 0 3.17 1.03 3.17 3.08V17H22.1v-.96c-.42.68-1.15 1.02-2.19 1.02-.76 0-1.38-.22-1.84-.66-.46-.44-.7-1-.7-1.68 0-.78.3-1.38.88-1.81.59-.43 1.4-.65 2.46-.65h1.34v-.46c0-.55-.13-.97-.4-1.25-.26-.29-.7-.43-1.32-.43-.86 0-1.65.24-2.35.72zm9.34-1.93v1.42c.39-1 1.1-1.5 2.12-1.5.15 0 .31.02.5.05v1.53c-.23-.1-.48-.14-.76-.14-.54 0-.99.24-1.34.71a2.8 2.8 0 0 0-.52 1.71V17h-1.57V8.91h1.57zm5 4.09a3 3 0 0 0 .76 2.01c.47.53 1.14.8 2 .8.64 0 1.24-.18 1.8-.53v1.4c-.53.32-1.2.48-2 .48a3.98 3.98 0 0 1-4.17-4.18c0-1.16.38-2.15 1.14-2.98a4 4 0 0 1 3.1-1.23c.7 0 1.34.15 1.92.44v1.44a3.24 3.24 0 0 0-1.77-.5A2.65 2.65 0 0 0 32.33 13zm7.92-7.28v4.58c.46-1 1.3-1.5 2.5-1.5.8 0 1.42.24 1.9.73.48.5.72 1.17.72 2.05V17H43.8v-5.1c0-.56-.14-.99-.43-1.29-.28-.3-.65-.45-1.1-.45-.54 0-1 .2-1.42.6-.4.4-.61 1.02-.61 1.85V17h-1.56V5.72h1.56zM55.2 15.74c.6 0 1.1-.25 1.5-.76.4-.5.6-1.16.6-1.95 0-.92-.2-1.62-.6-2.12-.4-.5-.92-.74-1.55-.74-.56 0-1.05.22-1.5.67-.44.45-.66 1.13-.66 2.06 0 .96.22 1.67.64 2.14.43.47.95.7 1.57.7zM53 5.72v4.42a2.74 2.74 0 0 1 2.43-1.34c1.03 0 1.86.38 2.51 1.15.65.76.97 1.78.97 3.05 0 1.13-.3 2.1-.92 2.9-.62.81-1.47 1.21-2.54 1.21s-1.9-.45-2.46-1.34V17h-1.58V5.72H53zm9.9 11.1l-3.22-7.9h1.74l1 2.62 1.26 3.42c.1-.32.48-1.46 1.15-3.42l.91-2.63h1.66l-2.92 7.87c-.78 2.07-1.96 3.1-3.56 3.1-.28 0-.53-.02-.73-.07v-1.34c.17.04.35.06.54.06 1.03 0 1.76-.57 2.17-1.7z"}),Da,Ba,vn("path",{fill:"dark"===n?"#FFF":"#5468FF",d:"M120.92 18.8c-4.38.02-4.38-3.54-4.38-4.1V1.36l2.67-.42v13.25c0 .32 0 2.36 1.71 2.37v2.24zm-10.84-2.18c.82 0 1.43-.04 1.85-.12v-2.72a5.48 5.48 0 0 0-1.57-.2c-.3 0-.6.02-.9.07-.3.04-.57.12-.81.24-.24.11-.44.28-.58.49a.93.93 0 0 0-.22.65c0 .63.22 1 .61 1.23.4.24.94.36 1.62.36zm-.23-9.7c.88 0 1.62.11 2.23.33.6.22 1.09.53 1.44.92.36.4.61.92.76 1.48.16.56.23 1.17.23 1.85v6.87c-.4.1-1.03.2-1.86.32-.84.12-1.78.18-2.82.18-.69 0-1.32-.07-1.9-.2a4 4 0 0 1-1.46-.63c-.4-.3-.72-.67-.96-1.13a4.3 4.3 0 0 1-.34-1.8c0-.66.13-1.08.39-1.53.26-.45.6-.82 1.04-1.1.45-.3.95-.5 1.54-.62a8.8 8.8 0 0 1 3.79.05v-.44c0-.3-.04-.6-.11-.87a1.78 1.78 0 0 0-1.1-1.22c-.31-.12-.7-.2-1.15-.2a9.75 9.75 0 0 0-2.95.46l-.33-2.19c.34-.12.84-.23 1.48-.35.65-.12 1.34-.18 2.08-.18zm52.84 9.63c.82 0 1.43-.05 1.85-.13V13.7a5.42 5.42 0 0 0-1.57-.2c-.3 0-.6.02-.9.07-.3.04-.57.12-.81.24-.24.12-.44.28-.58.5a.93.93 0 0 0-.22.65c0 .63.22.99.61 1.23.4.24.94.36 1.62.36zm-.23-9.7c.88 0 1.63.11 2.23.33.6.22 1.1.53 1.45.92.35.39.6.92.76 1.48.15.56.23 1.18.23 1.85v6.88c-.41.08-1.03.19-1.87.31-.83.12-1.77.18-2.81.18-.7 0-1.33-.06-1.9-.2a4 4 0 0 1-1.47-.63c-.4-.3-.72-.67-.95-1.13a4.3 4.3 0 0 1-.34-1.8c0-.66.13-1.08.38-1.53.26-.45.61-.82 1.05-1.1.44-.3.95-.5 1.53-.62a8.8 8.8 0 0 1 3.8.05v-.43c0-.31-.04-.6-.12-.88-.07-.28-.2-.52-.38-.73a1.78 1.78 0 0 0-.73-.5c-.3-.1-.68-.2-1.14-.2a9.85 9.85 0 0 0-2.95.47l-.32-2.19a11.63 11.63 0 0 1 3.55-.53zm-8.03-1.27a1.62 1.62 0 0 0 0-3.24 1.62 1.62 0 1 0 0 3.24zm1.35 13.22h-2.7V7.27l2.7-.42V18.8zm-4.72 0c-4.38.02-4.38-3.54-4.38-4.1l-.01-13.34 2.67-.42v13.25c0 .32 0 2.36 1.72 2.37v2.24zm-8.7-5.9a4.7 4.7 0 0 0-.74-2.79 2.4 2.4 0 0 0-2.07-1 2.4 2.4 0 0 0-2.06 1 4.7 4.7 0 0 0-.74 2.8c0 1.16.25 1.94.74 2.62a2.4 2.4 0 0 0 2.07 1.02c.88 0 1.57-.34 2.07-1.02.49-.68.73-1.46.73-2.63zm2.74 0a6.46 6.46 0 0 1-1.52 4.23c-.49.53-1.07.94-1.76 1.22-.68.29-1.73.45-2.26.45-.53 0-1.58-.15-2.25-.45a5.1 5.1 0 0 1-2.88-3.13 7.3 7.3 0 0 1-.01-4.84 5.13 5.13 0 0 1 2.9-3.1 5.67 5.67 0 0 1 2.22-.42c.81 0 1.56.14 2.24.42.69.29 1.28.69 1.75 1.22.49.52.87 1.15 1.14 1.89a7 7 0 0 1 .43 2.5zm-20.14 0c0 1.11.25 2.36.74 2.88.5.52 1.13.78 1.91.78a4.07 4.07 0 0 0 2.12-.6V9.33c-.19-.04-.99-.2-1.76-.23a2.67 2.67 0 0 0-2.23 1 4.73 4.73 0 0 0-.78 2.8zm7.44 5.27c0 1.82-.46 3.16-1.4 4-.94.85-2.37 1.27-4.3 1.27-.7 0-2.17-.13-3.34-.4l.43-2.11c.98.2 2.27.26 2.95.26 1.08 0 1.84-.22 2.3-.66.46-.43.68-1.08.68-1.94v-.44a5.2 5.2 0 0 1-2.54.6 5.6 5.6 0 0 1-2.01-.36 4.2 4.2 0 0 1-2.58-2.71 9.88 9.88 0 0 1 .02-5.35 4.92 4.92 0 0 1 2.93-2.96 6.6 6.6 0 0 1 2.43-.46 19.64 19.64 0 0 1 4.43.66v10.6z"}))))}var Da=vn("path",{fill:"#5468FF",d:"M78.99.94h16.6a2.97 2.97 0 0 1 2.96 2.96v16.6a2.97 2.97 0 0 1-2.97 2.96h-16.6a2.97 2.97 0 0 1-2.96-2.96V3.9A2.96 2.96 0 0 1 79 .94"}),Ba=vn("path",{fill:"#FFF",d:"M89.63 5.97v-.78a.98.98 0 0 0-.98-.97h-2.28a.98.98 0 0 0-.97.97V6c0 .09.08.15.17.13a7.13 7.13 0 0 1 3.9-.02c.08.02.16-.04.16-.13m-6.25 1L83 6.6a.98.98 0 0 0-1.38 0l-.46.46a.97.97 0 0 0 0 1.38l.38.39c.06.06.15.04.2-.02a7.49 7.49 0 0 1 1.63-1.62c.07-.04.08-.14.02-.2m4.16 2.45v3.34c0 .1.1.17.2.12l2.97-1.54c.06-.03.08-.12.05-.18a3.7 3.7 0 0 0-3.08-1.87c-.07 0-.14.06-.14.13m0 8.05a4.49 4.49 0 1 1 0-8.98 4.49 4.49 0 0 1 0 8.98m0-10.85a6.37 6.37 0 1 0 0 12.74 6.37 6.37 0 0 0 0-12.74"}),Qa=at("PoweredBy"),qa=Ae({name:"powered-by"});var Ua,Va,Wa=[],$a=sn.__r;sn.__r=function(e){$a&&$a(e),Ua=0,(Va=e.__c).__H&&(Va.__H.t=ts(Va.__H.t))};var za=sn.diffed;sn.diffed=function(e){za&&za(e);var t=e.__c;if(t){var n=t.__H;n&&(n.u=(n.u.some(function(e){e.ref&&(e.ref.current=e.createHandle())}),[]),n.i=ts(n.i))}};var Ka=sn.unmount;function Ja(e){sn.__h&&sn.__h(Va);var t=Va.__H||(Va.__H={o:[],t:[],i:[],u:[]});return e>=t.o.length&&t.o.push({}),t.o[e]}function Ya(e){return function(n,e,t){var r=Ja(Ua++);return r.__c||(r.__c=Va,r.v=[t?t(e):as(void 0,e),function(e){var t=n(r.v[0],e);r.v[0]!==t&&(r.v[0]=t,r.__c.setState({}))}]),r.v}(as,e)}function Ga(e){return function(e,t){var n=Ja(Ua++);return is(n.m,t)?(n.m=t,n.p=e,n.v=e()):n.v}(function(){return{current:e}},[])}sn.unmount=function(e){Ka&&Ka(e);var t=e.__c;if(t){var n=t.__H;n&&n.o.forEach(function(e){return e.l&&e.l()})}};var Xa=function(){};function Za(){Wa.some(function(e){e.s=!1,e.__P&&(e.__H.t=ts(e.__H.t))}),Wa=[]}if("undefined"!=typeof window){var es=sn.requestAnimationFrame;Xa=function(e){(!e.s&&(e.s=!0)&&1===Wa.push(e)||es!==sn.requestAnimationFrame)&&(es=sn.requestAnimationFrame,(sn.requestAnimationFrame||function(e){function t(){clearTimeout(n),cancelAnimationFrame(r),setTimeout(e)}var n=setTimeout(t,100),r=requestAnimationFrame(t)})(Za))}}function ts(e){return e.forEach(ns),e.forEach(rs),[]}function ns(e){e.l&&e.l()}function rs(e){var t=e.v();"function"==typeof t&&(e.l=t)}function is(n,e){return!n||e.some(function(e,t){return e!==n[t]})}function as(e,t){return"function"==typeof t?t(e):t}function ss(e){var t,n=Q(Ya(e.isCollapsed),2),r=n[0],i=n[1],a=Q(Ya(!1),2),s=a[0],o=a[1],c=Ga(null);return function(e,t){var n=Ja(Ua++);is(n.m,t)&&(n.v=e,n.m=t,Va.__H.t.push(n),Xa(Va))}(function(){if(c.current)return c.current.appendChild(e.bodyElement),function(){c.current.removeChild(e.bodyElement)}},[c,e.bodyElement]),s||e.isCollapsed===r||i(e.isCollapsed),vn("div",{className:qr(e.cssClasses.root,(t={},L(t,e.cssClasses.noRefinementRoot,e.hidden),L(t,e.cssClasses.collapsibleRoot,e.collapsible),L(t,e.cssClasses.collapsedRoot,r),t)),hidden:e.hidden},e.templates.header&&vn("div",{className:e.cssClasses.header},vn(Ur,{templates:e.templates,templateKey:"header",rootTagName:"span",data:e.data}),e.collapsible&&vn("button",{className:e.cssClasses.collapseButton,"aria-expanded":!r,onClick:function(e){e.preventDefault(),o(!0),i(function(e){return!e})}},vn(Ur,{templates:e.templates,templateKey:"collapseButtonText",rootTagName:"span",data:{collapsed:r}}))),vn("div",{className:e.cssClasses.body,ref:c}),e.templates.footer&&vn(Ur,{templates:e.templates,templateKey:"footer",rootProps:{className:e.cssClasses.footer},data:e.data}))}function os(e){var t=e.cssClasses,n=e.isBrowserSupported,r=e.isListening,i=e.toggleListening,a=e.voiceListeningState,s=e.templates,o=a.status,c=a.transcript,u=a.isSpeechFinal,l=a.errorCode;return vn("div",{className:t.root},vn(Ur,{templateKey:"buttonText",rootTagName:"button",rootProps:{className:t.button,type:"button",title:"Search by voice".concat(n?"":" (not supported on this browser)"),onClick:function(e){e.currentTarget.blur(),i()},disabled:!n},data:{status:o,errorCode:l,isListening:r,transcript:c,isSpeechFinal:u,isBrowserSupported:n},templates:s}),vn(Ur,{templateKey:"status",rootProps:{className:t.status},data:{status:o,errorCode:l,isListening:r,transcript:c,isSpeechFinal:u,isBrowserSupported:n},templates:s}))}function cs(e){var t=e.isBrowserSupported,n=e.isListening,r=e.toggleListening,i=e.voiceListeningState,a=e.widgetParams,s=a.container,o=a.cssClasses,c=a.templates;Ln(vn(os,{cssClasses:o,templates:c,isBrowserSupported:t,isListening:n,toggleListening:r,voiceListeningState:i}),s)}function us(e){var t=e.cssClasses,n=e.templates,r=e.items;return vn(Ur,{templateKey:"default",templates:n,rootProps:{className:t.root},data:{items:r}})}function ls(e){var t=e.items,n=e.widgetParams,r=n.container,i=n.cssClasses,a=n.templates;Ln(vn(us,{cssClasses:i,templates:a,items:t}),r)}var hs=Ae({name:"panel"}),fs=at("Panel"),ds={buttonText:function(e){var t=e.status,n=e.errorCode,r=e.isListening;return'")},status:"{{transcript}}
"},ms=Ae({name:"voice-search"}),ps=at("VoiceSearch"),vs=Ae({name:"query-rule-custom-data"}),gs=at("QueryRuleCustomData"),ys=Ae({name:"query-rule-context"}),bs=Object.freeze({__proto__:null,clearRefinements:function(e){var t=e||{},n=t.container,r=t.templates,i=void 0===r?Kr:r,a=t.includedAttributes,s=t.excludedAttributes,o=t.transformItems,c=t.cssClasses,u=void 0===c?{}:c;if(!n)throw new Error(Jr("The `container` option is required."));var l=ce(n),h={root:qr(Yr(),u.root),button:qr(Yr({descendantName:"button"}),u.button),disabledButton:qr(Yr({descendantName:"button",modifierName:"disabled"}),u.disabledButton)},f=function(e){var a=e.containerNode,s=e.cssClasses,o=e.renderState,c=e.templates;return function(e,t){var n=e.refine,r=e.hasRefinements,i=e.instantSearchInstance;t?o.templateProps=he({defaultTemplates:Kr,templatesConfig:i.templatesConfig,templates:c}):Ln(vn(Vr,{refine:n,cssClasses:s,hasRefinements:r,templateProps:o.templateProps}),a)}}({containerNode:l,cssClasses:h,renderState:{},templates:i});return Vt(f,function(){return Ln(null,l)})({includedAttributes:a,excludedAttributes:s,transformItems:o})},configure:function(e){return Tr(_e)({searchParameters:e})},EXPERIMENTAL_configureRelatedItems:function(e){return Mr(_e)(e)},currentRefinements:function(e){var t=e||{},n=t.container,r=t.includedAttributes,i=t.excludedAttributes,a=t.cssClasses,s=void 0===a?{}:a,o=t.transformItems;if(!n)throw new Error(Gr("The `container` option is required."));var c=ce(n),u={root:qr(Xr(),s.root),list:qr(Xr({descendantName:"list"}),s.list),item:qr(Xr({descendantName:"item"}),s.item),label:qr(Xr({descendantName:"label"}),s.label),category:qr(Xr({descendantName:"category"}),s.category),categoryLabel:qr(Xr({descendantName:"categoryLabel"}),s.categoryLabel),delete:qr(Xr({descendantName:"delete"}),s.delete)};return zt($r,function(){return Ln(null,c)})({container:c,cssClasses:u,includedAttributes:r,excludedAttributes:i,transformItems:o})},geoSearch:function(e){var t=0=")&&r.hasOwnProperty("<="))r[">="]&&r[">="][0]===r["<="]&&r["<="][0]?t.push("".concat(n,"=").concat(n,"_").concat(r[">="])):t.push("".concat(n,"=").concat(n,"_").concat(r[">="],"to").concat(r["<="]));else if(r.hasOwnProperty(">="))t.push("".concat(n,"=").concat(n,"_from").concat(r[">="]));else if(r.hasOwnProperty("<="))t.push("".concat(n,"=").concat(n,"_to").concat(r["<="]));else if(r.hasOwnProperty("=")){var i=[];for(var a in r["="])r["="].hasOwnProperty(a)&&i.push(r["="][a]);t.push("".concat(n,"=").concat(n,"_").concat(i.join("-")))}}return t.join("&")}(e.state.numericRefinements);""!==n&&t.push(n),""!==r&&t.push(r);var i=t.join("&"),a="Query: ".concat(e.state.query||"",", ").concat(i);!0===l&&(a+=", Page: ".concat(e.state.page||0)),m!==a&&(s(i,e.state,e.results),m=a)}}var f,d=null,m="",p=!0;!0===c&&(p=!1);function v(){h(d)}function g(){h(d)}return{init:function(){!0===a&&(document.addEventListener("click",v),window.addEventListener("beforeunload",g))},render:function(e){var t=e.results,n=e.state;!0!==p?(d={results:t,state:n},f&&clearTimeout(f),f=window.setTimeout(function(){return h(d)},r)):p=!1},dispose:function(){!0===a&&(document.removeEventListener("click",v),window.removeEventListener("beforeunload",g))}}},breadcrumb:function(e){var t=e||{},n=t.container,r=t.attributes,i=t.separator,a=t.rootPath,s=t.transformItems,o=t.templates,c=void 0===o?Ea:o,u=t.cssClasses,l=void 0===u?{}:u;if(!n)throw new Error(ka("The `container` option is required."));var h=ce(n),f={root:qr(Ma(),l.root),noRefinementRoot:qr(Ma({modifierName:"noRefinement"}),l.noRefinementRoot),list:qr(Ma({descendantName:"list"}),l.list),item:qr(Ma({descendantName:"item"}),l.item),selectedItem:qr(Ma({descendantName:"item",modifierName:"selected"}),l.selectedItem),separator:qr(Ma({descendantName:"separator"}),l.separator),link:qr(Ma({descendantName:"link"}),l.link)},d=function(e){var o=e.containerNode,c=e.cssClasses,u=e.renderState,l=e.templates;return function(e,t){var n=e.canRefine,r=e.createURL,i=e.instantSearchInstance,a=e.items,s=e.refine;t?u.templateProps=he({defaultTemplates:Ea,templatesConfig:i.templatesConfig,templates:l}):Ln(vn(Ca,{canRefine:n,cssClasses:c,createURL:r,items:a,refine:s,templateProps:u.templateProps}),o)}}({containerNode:h,cssClasses:f,renderState:{},templates:c});return wr(d,function(){return Ln(null,h)})({attributes:r,separator:i,rootPath:a,transformItems:s})},menuSelect:function(e){var t=e.container,n=e.attribute,r=e.sortBy,i=void 0===r?["name:asc"]:r,a=e.limit,s=void 0===a?10:a,o=e.cssClasses,c=void 0===o?{}:o,u=e.templates,l=void 0===u?ja:u,h=e.transformItems;if(!t)throw new Error(Oa("The `container` option is required."));var f=ce(t),d={root:qr(Aa(),c.root),noRefinementRoot:qr(Aa({modifierName:"noRefinement"}),c.noRefinementRoot),select:qr(Aa({descendantName:"select"}),c.select),option:qr(Aa({descendantName:"option"}),c.option)};return $n(function(e){var s=e.containerNode,o=e.cssClasses,c=e.renderState,u=e.templates;return function(e,t){var n=e.refine,r=e.items,i=e.canRefine,a=e.instantSearchInstance;t?c.templateProps=he({defaultTemplates:ja,templatesConfig:a.templatesConfig,templates:u}):Ln(vn(La,{cssClasses:o,items:r,refine:n,templateProps:c.templateProps,canRefine:i}),s)}}({containerNode:f,cssClasses:d,renderState:{},templates:l}),function(){return Ln(null,f)})({attribute:n,limit:s,sortBy:i,transformItems:h})},poweredBy:function(){var e=0\n \n ')}},a=function(e){var a=e.containerNode,s=e.bodyContainerNode,o=e.cssClasses,c=e.templates;return function(e){var t=e.options,n=e.hidden,r=e.collapsible,i=e.collapsed;Ln(vn(ss,{cssClasses:o,hidden:n,collapsible:r,isCollapsed:i,templates:c,data:t,bodyElement:s}),a)}}({containerNode:ce(i),bodyContainerNode:u,cssClasses:f,templates:D({},t,{},r)});a({options:{},hidden:!0,collapsible:l,collapsed:!1});var s=n(D({},e,{container:u}));return D({},s,{dispose:function(){if(Ln(null,ce(i)),"function"==typeof s.dispose){for(var e,t=arguments.length,n=new Array(t),r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function a(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=n?null===r?null:0:o}var _=function(){};function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,t){var n=[];return Promise.resolve(e(t)).then((function(e){return Array.isArray(e),"The `getSources` function must return an array of sources but returned type ".concat(JSON.stringify(S(e)),":\n\n").concat(JSON.stringify(e,null,2)),Promise.all(e.filter((function(e){return Boolean(e)})).map((function(e){if(e.sourceId,n.includes(e.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(e.sourceId)," is not unique."));n.push(e.sourceId);var t=function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Y=null;function Z(e){var t=e.event,n=e.nextState,r=void 0===n?{}:n,o=e.props,i=e.query,u=e.refresh,a=e.store,c=X(e,["event","nextState","props","query","refresh","store"]);Y&&o.environment.clearTimeout(Y);var l,s=c.setCollections,p=c.setIsOpen,f=c.setQuery,d=c.setActiveItemId,m=c.setStatus;return f(i),d(o.defaultActiveItemId),i||!1!==o.openOnFocus?(m("loading"),Y=o.environment.setTimeout((function(){m("stalled")}),o.stallThreshold),o.getSources(J({query:i,refresh:u,state:a.getState()},c)).then((function(e){return m("loading"),Promise.all(e.map((function(e){return Promise.resolve(e.getItems(J({query:i,refresh:u,state:a.getState()},c))).then((function(t){return Q(t,e.sourceId)}))}))).then($).then((function(t){return z(t,e)})).then((function(e){var n;m("idle"),s(e);var l=o.shouldPanelOpen({state:a.getState()});p(null!==(n=r.isOpen)&&void 0!==n?n:o.openOnFocus&&!i&&l||l);var f=w(a.getState());if(null!==a.getState().activeItemId&&f){var d=f.item,v=f.itemInputValue,h=f.itemUrl,y=f.source;y.onActive(J({event:t,item:d,itemInputValue:v,itemUrl:h,refresh:u,source:y,state:a.getState()},c))}})).finally((function(){Y&&o.environment.clearTimeout(Y)}))}))):(m("idle"),s(a.getState().collections.map((function(e){return J(J({},e),{},{items:[]})}))),p(null!==(l=r.isOpen)&&void 0!==l?l:o.shouldPanelOpen({state:a.getState()})),Promise.resolve())}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ce(e){var t=e.props,n=e.refresh,r=e.store,o=ae(e,["props","refresh","store"]);return{getEnvironmentProps:function(e){var n=e.inputElement,o=e.formElement,i=e.panelElement;return ie({onTouchStart:function(e){!1!==r.getState().isOpen&&e.target!==n&&(!1===[o,i].some((function(n){return I(n,e.target)||I(n,t.environment.document.activeElement)}))&&r.dispatch("blur",null))},onTouchMove:function(e){!1!==r.getState().isOpen&&n===t.environment.document.activeElement&&e.target!==n&&n.blur()}},ae(e,["inputElement","formElement","panelElement"]))},getRootProps:function(e){return ie({role:"combobox","aria-expanded":r.getState().isOpen,"aria-haspopup":"listbox","aria-owns":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label")},e)},getFormProps:function(e){e.inputElement;return ie({action:"",noValidate:!0,role:"search",onSubmit:function(i){var u;i.preventDefault(),t.onSubmit(ie({event:i,refresh:n,state:r.getState()},o)),r.dispatch("submit",null),null===(u=e.inputElement)||void 0===u||u.blur()},onReset:function(i){var u;i.preventDefault(),t.onReset(ie({event:i,refresh:n,state:r.getState()},o)),r.dispatch("reset",null),null===(u=e.inputElement)||void 0===u||u.focus()}},ae(e,["inputElement"]))},getLabelProps:function(e){return ie({htmlFor:"".concat(t.id,"-input"),id:"".concat(t.id,"-label")},e)},getInputProps:function(e){function i(e){(t.openOnFocus||Boolean(r.getState().query))&&Z(ie({event:e,props:t,query:r.getState().completion||r.getState().query,refresh:n,store:r},o)),r.dispatch("focus",null)}var u="ontouchstart"in t.environment,a=e||{},c=(a.inputElement,a.maxLength),l=void 0===c?512:c,s=ae(a,["inputElement","maxLength"]),p=w(r.getState());return ie({"aria-autocomplete":"both","aria-activedescendant":r.getState().isOpen&&null!==r.getState().activeItemId?"".concat(t.id,"-item-").concat(r.getState().activeItemId):void 0,"aria-controls":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label"),value:r.getState().completion||r.getState().query,id:"".concat(t.id,"-input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:null!=p&&p.itemUrl?"go":"search",spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:l,type:"search",onChange:function(e){Z(ie({event:e,props:t,query:e.currentTarget.value.slice(0,l),refresh:n,store:r},o))},onKeyDown:function(e){!function(e){var t=e.event,n=e.props,r=e.refresh,o=e.store,i=re(e,["event","props","refresh","store"]);if("ArrowUp"===t.key||"ArrowDown"===t.key){t.preventDefault(),o.dispatch(t.key,null);var u=n.environment.document.getElementById("".concat(n.id,"-item-").concat(o.getState().activeItemId));u&&(u.scrollIntoViewIfNeeded?u.scrollIntoViewIfNeeded(!1):u.scrollIntoView(!1));var a=w(o.getState());if(null!==o.getState().activeItemId&&a){var c=a.item,l=a.itemInputValue,s=a.itemUrl,p=a.source;p.onActive(te({event:t,item:c,itemInputValue:l,itemUrl:s,refresh:r,source:p,state:o.getState()},i))}}else if("Escape"===t.key)t.preventDefault(),o.dispatch(t.key,null);else if("Enter"===t.key){if(null===o.getState().activeItemId||o.getState().collections.every((function(e){return 0===e.items.length})))return;t.preventDefault();var f=w(o.getState()),d=f.item,m=f.itemInputValue,v=f.itemUrl,h=f.source;if(t.metaKey||t.ctrlKey)void 0!==v&&(h.onSelect(te({event:t,item:d,itemInputValue:m,itemUrl:v,refresh:r,source:h,state:o.getState()},i)),n.navigator.navigateNewTab({itemUrl:v,item:d,state:o.getState()}));else if(t.shiftKey)void 0!==v&&(h.onSelect(te({event:t,item:d,itemInputValue:m,itemUrl:v,refresh:r,source:h,state:o.getState()},i)),n.navigator.navigateNewWindow({itemUrl:v,item:d,state:o.getState()}));else if(t.altKey);else{if(void 0!==v)return h.onSelect(te({event:t,item:d,itemInputValue:m,itemUrl:v,refresh:r,source:h,state:o.getState()},i)),void n.navigator.navigate({itemUrl:v,item:d,state:o.getState()});Z(te({event:t,nextState:{isOpen:!1},props:n,query:m,refresh:r,store:o},i)).then((function(){h.onSelect(te({event:t,item:d,itemInputValue:m,itemUrl:v,refresh:r,source:h,state:o.getState()},i))}))}}}(ie({event:e,props:t,refresh:n,store:r},o))},onFocus:i,onBlur:function(){u||r.dispatch("blur",null)},onClick:function(n){e.inputElement!==t.environment.document.activeElement||r.getState().isOpen||i(n)}},s)},getPanelProps:function(e){return ie({onMouseDown:function(e){e.preventDefault()},onMouseLeave:function(){r.dispatch("mouseleave",null)}},e)},getListProps:function(e){return ie({role:"listbox","aria-labelledby":"".concat(t.id,"-label"),id:"".concat(t.id,"-list")},e)},getItemProps:function(e){var i=e.item,u=e.source,a=ae(e,["item","source"]);return ie({id:"".concat(t.id,"-item-").concat(i.__autocomplete_id),role:"option","aria-selected":r.getState().activeItemId===i.__autocomplete_id,onMouseMove:function(e){if(i.__autocomplete_id!==r.getState().activeItemId){r.dispatch("mousemove",i.__autocomplete_id);var t=w(r.getState());if(null!==r.getState().activeItemId&&t){var u=t.item,a=t.itemInputValue,c=t.itemUrl,l=t.source;l.onActive(ie({event:e,item:u,itemInputValue:a,itemUrl:c,refresh:n,source:l,state:r.getState()},o))}}},onMouseDown:function(e){e.preventDefault()},onClick:function(e){var a=u.getItemInputValue({item:i,state:r.getState()}),c=u.getItemUrl({item:i,state:r.getState()});(c?Promise.resolve():Z(ie({event:e,nextState:{isOpen:!1},props:t,query:a,refresh:n,store:r},o))).then((function(){u.onSelect(ie({event:e,item:i,itemInputValue:a,itemUrl:c,refresh:n,source:u,state:r.getState()},o))}))}},a)}}}function le(e){var t=e.state;return!1===t.isOpen||null===t.activeItemId?null:w(t).itemInputValue||null}function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t0}},e),{},{id:null!==(n=e.id)&&void 0!==n?n:f(),plugins:o,initialState:R({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},e.initialState),onStateChange:function(t){var n;null===(n=e.onStateChange)||void 0===n||n.call(e,t),o.forEach((function(e){var n;return null===(n=e.onStateChange)||void 0===n?void 0:n.call(e,t)}))},onSubmit:function(t){var n;null===(n=e.onSubmit)||void 0===n||n.call(e,t),o.forEach((function(e){var n;return null===(n=e.onSubmit)||void 0===n?void 0:n.call(e,t)}))},onReset:function(t){var n;null===(n=e.onReset)||void 0===n||n.call(e,t),o.forEach((function(e){var n;return null===(n=e.onReset)||void 0===n?void 0:n.call(e,t)}))},getSources:function(n){return Promise.all([].concat(N(o.map((function(e){return e.getSources}))),[e.getSources]).filter(Boolean).map((function(e){return j(e,n)}))).then((function(e){return g(e)})).then((function(e){return e.map((function(e){return R(R({},e),{},{onSelect:function(n){e.onSelect(n),t.forEach((function(e){var t;return null===(t=e.onSelect)||void 0===t?void 0:t.call(e,n)}))},onActive:function(n){e.onActive(n),t.forEach((function(e){var t;return null===(t=e.onActive)||void 0===t?void 0:t.call(e,n)}))}})}))}))},navigator:R({navigate:function(e){var t=e.itemUrl;r.location.assign(t)},navigateNewTab:function(e){var t=e.itemUrl,n=r.open(t,"_blank","noopener");null==n||n.focus()},navigateNewWindow:function(e){var t=e.itemUrl;r.open(t,"_blank","noopener")}},e.navigator)})}(e,t),r=y(de,n,(function(e){var t=e.prevState,r=e.state;n.onStateChange(ve({prevState:t,state:r,refresh:u},o))})),o=function(e){var t=e.store;return{setActiveItemId:function(e){t.dispatch("setActiveItemId",e)},setQuery:function(e){t.dispatch("setQuery",e)},setCollections:function(e){var n=0,r=e.map((function(e){return k(k({},e),{},{items:g(e.items).map((function(e){return k(k({},e),{},{__autocomplete_id:n++})}))})}));t.dispatch("setCollections",r)},setIsOpen:function(e){t.dispatch("setIsOpen",e)},setStatus:function(e){t.dispatch("setStatus",e)},setContext:function(e){t.dispatch("setContext",e)}}}({store:r}),i=ce(ve({props:n,refresh:u,store:r},o));function u(){return Z(ve({event:new Event("input"),nextState:{isOpen:r.getState().isOpen},props:n,query:r.getState().query,refresh:u,store:r},o))}return n.plugins.forEach((function(e){var n;return null===(n=e.subscribe)||void 0===n?void 0:n.call(e,ve(ve({},o),{},{refresh:u,onSelect:function(e){t.push({onSelect:e})},onActive:function(e){t.push({onActive:e})}}))})),ve(ve({refresh:u},i),o)}var ge=function(e){var t=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-ClearIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","18"),n.setAttribute("height","18"),n.setAttribute("fill","currentColor");var r=t.document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d","M5.293 6.707l5.293 5.293-5.293 5.293c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l5.293-5.293 5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-5.293-5.293 5.293-5.293c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z"),n.appendChild(r),n};function be(e,t){if("string"==typeof t){var n=e.document.querySelector(t);return"The element ".concat(JSON.stringify(t)," is not in the document."),n}return t}function _e(){for(var e=arguments.length,t=new Array(e),n=0;n\n \n',t},ke=function(e){var t=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-SubmitIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","20"),n.setAttribute("height","20"),n.setAttribute("fill","currentColor");var r=t.document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d","M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z"),n.appendChild(r),n};function xe(e){var t=e.autocomplete,n=e.autocompleteScopeApi,r=e.classNames,o=e.environment,a=e.isDetached,c=e.placeholder,l=void 0===c?"Search":c,s=e.propGetters,p=e.setIsModalOpen,f=e.state,d=Ce(o),m=s.getRootProps(i({state:f,props:t.getRootProps({})},n)),v=d("div",i({class:r.root},m)),h=d("div",{class:r.detachedContainer,onMouseDown:function(e){e.stopPropagation()}}),y=d("div",{class:r.detachedOverlay,children:[h],onMouseDown:function(){p(!1),t.setIsOpen(!1)}}),g=s.getLabelProps(i({state:f,props:t.getLabelProps({})},n)),b=d("button",{class:r.submitButton,type:"submit",title:"Submit",children:[ke({environment:o})]}),_=d("label",i({class:r.label,children:[b]},g)),O=d("button",{class:r.clearButton,type:"reset",title:"Clear",children:[ge({environment:o})]}),P=d("div",{class:r.loadingIndicator,children:[De({environment:o})]}),S=function(e){var t=e.autocompleteScopeApi,n=e.environment,r=(e.classNames,e.getInputProps),o=e.getInputPropsCore,a=e.onDetachedEscape,c=e.state,l=u(e,["autocompleteScopeApi","environment","classNames","getInputProps","getInputPropsCore","onDetachedEscape","state"]),s=Ce(n)("input",l),p=r(i({state:c,props:o({inputElement:s}),inputElement:s},t));return Ee(s,i(i({},p),{},{onKeyDown:function(e){if(a&&"Escape"===e.key)return e.preventDefault(),void a();p.onKeyDown(e)}})),s}({class:r.input,environment:o,state:f,getInputProps:s.getInputProps,getInputPropsCore:t.getInputProps,autocompleteScopeApi:n,onDetachedEscape:a?function(){t.setIsOpen(!1),p(!1)}:void 0}),j=d("div",{class:r.inputWrapperPrefix,children:[_,P]}),w=d("div",{class:r.inputWrapperSuffix,children:[O]}),I=d("div",{class:r.inputWrapper,children:[S]}),E=s.getFormProps(i({state:f,props:t.getFormProps({inputElement:S})},n)),A=d("form",i({class:r.form,children:[j,I,w]},E)),C=s.getPanelProps(i({state:f,props:t.getPanelProps({})},n)),D=d("div",i({class:r.panel},C));if(a){var k=d("div",{class:r.detachedSearchButtonIcon,children:[ke({environment:o})]}),x=d("div",{class:r.detachedSearchButtonPlaceholder,textContent:l}),N=d("button",{class:r.detachedSearchButton,onClick:function(e){e.preventDefault(),p(!0)},children:[k,x]}),F=d("button",{class:r.detachedCancelButton,textContent:"Cancel",onClick:function(){t.setIsOpen(!1),p(!1)}}),L=d("div",{class:r.detachedFormContainer,children:[A,F]});h.appendChild(L),v.appendChild(N)}else v.appendChild(A);return{detachedContainer:h,detachedOverlay:y,inputWrapper:I,input:S,root:v,form:A,label:_,submitButton:b,clearButton:O,loadingIndicator:P,panel:D}}var Ne,Fe,Le,Re,qe={},Te=[],Be=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ue(e,t){for(var n in t)e[n]=t[n];return e}function Me(e){var t=e.parentNode;t&&t.removeChild(e)}function He(e,t,n){var r,o,i,u=arguments,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>3)for(n=[n],i=3;i0?Ve(d.type,d.props,d.key,null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(f=y[s])||f&&d.key==f.key&&d.type===f.type)y[s]=void 0;else for(p=0;p0&&void 0!==arguments[0]?arguments[0]:[];return{get:function(){return e},add:function(t){var n=e[e.length-1];(null==n?void 0:n.isHighlighted)===t.isHighlighted?e[e.length-1]={value:n.value+t.value,isHighlighted:n.isHighlighted}:e.push(t)}}}(n?[{value:n,isHighlighted:!1}]:[]);return t.forEach((function(e){var t=e.split(st);r.add({value:t[0],isHighlighted:!0}),""!==t[1]&&r.add({value:t[1],isHighlighted:!1})})),r.get()}function ft(e){return function(e){if(Array.isArray(e))return dt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return dt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n",""":'"',"'":"'"},ht=new RegExp(/\w/i),yt=/&(amp|quot|lt|gt|#39);/g,gt=RegExp(yt.source);function bt(e,t){var n,r,o,i=e[t],u=(null===(n=e[t+1])||void 0===n?void 0:n.isHighlighted)||!0,a=(null===(r=e[t-1])||void 0===r?void 0:r.isHighlighted)||!0;return ht.test((o=i.value)&>.test(o)?o.replace(yt,(function(e){return vt[e]})):o)||a!==u?i.isHighlighted:a}function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ot(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Lt(e){return function(e){if(Array.isArray(e))return Rt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Rt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0;if(!_.value.core.openOnFocus&&!t.query)return n;var r=Boolean(y.current||_.value.renderer.renderNoResults);return!n&&r||n}}))})),S=l(i({collections:[],completion:null,context:{},isOpen:!1,query:"",activeItemId:null,status:"idle"},_.value.core.initialState)),j={getEnvironmentProps:_.value.renderer.getEnvironmentProps,getFormProps:_.value.renderer.getFormProps,getInputProps:_.value.renderer.getInputProps,getItemProps:_.value.renderer.getItemProps,getLabelProps:_.value.renderer.getLabelProps,getListProps:_.value.renderer.getListProps,getPanelProps:_.value.renderer.getPanelProps,getRootProps:_.value.renderer.getRootProps},w={setActiveItemId:P.value.setActiveItemId,setQuery:P.value.setQuery,setCollections:P.value.setCollections,setIsOpen:P.value.setIsOpen,setStatus:P.value.setStatus,setContext:P.value.setContext,refresh:P.value.refresh},I=v((function(){return xe({autocomplete:P.value,autocompleteScopeApi:w,classNames:_.value.renderer.classNames,environment:_.value.core.environment,isDetached:O.value,placeholder:_.value.core.placeholder,propGetters:j,setIsModalOpen:D,state:S.current})}));function E(){Ee(I.value.panel,{style:O.value?{}:Vt({panelPlacement:_.value.renderer.panelPlacement,container:I.value.root,form:I.value.form,environment:_.value.core.environment})})}function A(e){S.current=e;var t={autocomplete:P.value,autocompleteScopeApi:w,classNames:_.value.renderer.classNames,components:_.value.renderer.components,container:_.value.renderer.container,createElement:_.value.renderer.renderer.createElement,dom:I.value,Fragment:_.value.renderer.renderer.Fragment,panelContainer:O.value?I.value.detachedContainer:_.value.renderer.panelContainer,propGetters:j,state:S.current},n=!m(e)&&!y.current&&_.value.renderer.renderNoResults||_.value.renderer.render;!function(e){var t=e.autocomplete,n=e.autocompleteScopeApi,r=e.dom,o=e.propGetters,u=e.state;Ae(r.root,o.getRootProps(i({state:u,props:t.getRootProps({})},n))),Ae(r.input,o.getInputProps(i({state:u,props:t.getInputProps({inputElement:r.input}),inputElement:r.input},n))),Ee(r.label,{hidden:"stalled"===u.status}),Ee(r.loadingIndicator,{hidden:"stalled"!==u.status}),Ee(r.clearButton,{hidden:!u.query})}(t),function(e,t){var n=t.autocomplete,o=t.autocompleteScopeApi,u=t.classNames,a=t.createElement,c=t.dom,l=t.Fragment,s=t.panelContainer,p=t.propGetters,f=t.state,d=t.components;if(f.isOpen){s.contains(c.panel)||"loading"===f.status||s.appendChild(c.panel),c.panel.classList.toggle("aa-Panel--stalled","stalled"===f.status);var m=f.collections.map((function(e,t){var c=e.source,s=e.items;return a("section",{key:t,className:u.source,"data-autocomplete-source-id":c.sourceId},c.templates.header&&a("div",{className:u.sourceHeader},c.templates.header({components:d,createElement:a,Fragment:l,items:s,source:c,state:f})),c.templates.noResults&&0===s.length?a("div",{className:u.sourceNoResults},c.templates.noResults({components:d,createElement:a,Fragment:l,source:c,state:f})):a("ul",r({className:u.list},p.getListProps(i({state:f,props:n.getListProps({})},o))),s.map((function(e){var t=n.getItemProps({item:e,source:c});return a("li",r({key:t.id,className:u.item},p.getItemProps(i({state:f,props:t},o))),c.templates.item({components:d,createElement:a,Fragment:l,item:e,state:f}))}))),c.templates.footer&&a("div",{className:u.sourceFooter},c.templates.footer({components:d,createElement:a,Fragment:l,items:s,source:c,state:f})))})),v=a(l,null,a("div",{className:"aa-PanelLayout aa-Panel--scrollable"},m),a("div",{className:"aa-GradientBottom"})),h=m.reduce((function(e,t){return e[t.props["data-autocomplete-source-id"]]=t,e}),{});e({children:v,state:f,sections:m,elements:h,createElement:a,Fragment:l,components:d},c.panel)}else s.contains(c.panel)&&s.removeChild(c.panel)}(n,t)}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(),g.current=Pe(_.value.renderer,_.value.core,{initialState:S.current},e),h(),p(),P.value.refresh().then((function(){A(S.current)}))}function D(e){requestAnimationFrame((function(){var t=_.value.core.environment.document.body.contains(I.value.detachedOverlay);e!==t&&(e?(_.value.core.environment.document.body.appendChild(I.value.detachedOverlay),_.value.core.environment.document.body.classList.add("aa-Detached"),I.value.input.focus()):(_.value.core.environment.document.body.removeChild(I.value.detachedOverlay),_.value.core.environment.document.body.classList.remove("aa-Detached"),P.value.setQuery(""),P.value.refresh()))}))}return a((function(){var e=P.value.getEnvironmentProps({formElement:I.value.form,panelElement:I.value.panel,inputElement:I.value.input});return Ee(_.value.core.environment,e),function(){Ee(_.value.core.environment,Object.keys(e).reduce((function(e,t){return i(i({},e),{},n({},t,void 0))}),{}))}})),a((function(){var e=O.value?_.value.core.environment.document.body:_.value.renderer.panelContainer,t=O.value?I.value.detachedOverlay:I.value.panel;return O.value&&S.current.isOpen&&D(!0),A(S.current),function(){e.contains(t)&&e.removeChild(t)}})),a((function(){var e=_.value.renderer.container;return e.appendChild(I.value.root),function(){e.removeChild(I.value.root)}})),a((function(){var e=s((function(e){A(e.state)}),0);return b.current=function(t){var n=t.state,r=t.prevState;(O.value&&r.isOpen!==n.isOpen&&D(n.isOpen),O.value||!n.isOpen||r.isOpen||E(),n.query!==r.query)&&_.value.core.environment.document.querySelectorAll(".aa-Panel--scrollable").forEach((function(e){0!==e.scrollTop&&(e.scrollTop=0)}));e({state:n})},function(){b.current=void 0}})),a((function(){var e=s((function(){var e=O.value;O.value=_.value.core.environment.matchMedia(_.value.renderer.detachedMediaQuery).matches,e!==O.value?C({}):requestAnimationFrame(E)}),20);return _.value.core.environment.addEventListener("resize",e),function(){_.value.core.environment.removeEventListener("resize",e)}})),a((function(){if(!O.value)return function(){};function e(e){I.value.detachedContainer.classList.toggle("aa-DetachedContainer--modal",e)}function t(t){e(t.matches)}var n=_.value.core.environment.matchMedia(getComputedStyle(_.value.core.environment.document.documentElement).getPropertyValue("--aa-detached-modal-media-query"));return e(n.matches),n.addEventListener("change",t),function(){n.removeEventListener("change",t)}})),a((function(){return requestAnimationFrame(E),function(){}})),i(i({},w),{},{update:C,destroy:function(){c()}})},e.getAlgoliaFacets=function(e){var t=Wt({transformResponse:function(e){return e.facetHits}}),n=e.queries.map((function(e){return i(i({},e),{},{type:"facet"})}));return t(i(i({},e),{},{queries:n}))},e.getAlgoliaResults=Qt,Object.defineProperty(e,"__esModule",{value:!0})}));
+!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@algolia/autocomplete-js"]={})}(this,(function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(){return(r=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function a(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=n?null===r?null:0:o}var _=function(){};function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,t){var n=[];return Promise.resolve(e(t)).then((function(e){return Array.isArray(e),"The `getSources` function must return an array of sources but returned type ".concat(JSON.stringify(S(e)),":\n\n").concat(JSON.stringify(e,null,2)),Promise.all(e.filter((function(e){return Boolean(e)})).map((function(e){if(e.sourceId,n.includes(e.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(e.sourceId)," is not unique."));n.push(e.sourceId);var t=function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Y=null;function Z(e){var t=e.event,n=e.nextState,r=void 0===n?{}:n,o=e.props,i=e.query,u=e.refresh,a=e.store,c=X(e,["event","nextState","props","query","refresh","store"]);Y&&o.environment.clearTimeout(Y);var l,s=c.setCollections,p=c.setIsOpen,f=c.setQuery,d=c.setActiveItemId,m=c.setStatus;return f(i),d(o.defaultActiveItemId),i||!1!==o.openOnFocus?(m("loading"),Y=o.environment.setTimeout((function(){m("stalled")}),o.stallThreshold),o.getSources(J({query:i,refresh:u,state:a.getState()},c)).then((function(e){return m("loading"),Promise.all(e.map((function(e){return Promise.resolve(e.getItems(J({query:i,refresh:u,state:a.getState()},c))).then((function(t){return Q(t,e.sourceId)}))}))).then($).then((function(t){return z(t,e)})).then((function(e){var n;m("idle"),s(e);var l=o.shouldPanelOpen({state:a.getState()});p(null!==(n=r.isOpen)&&void 0!==n?n:o.openOnFocus&&!i&&l||l);var f=w(a.getState());if(null!==a.getState().activeItemId&&f){var d=f.item,v=f.itemInputValue,h=f.itemUrl,y=f.source;y.onActive(J({event:t,item:d,itemInputValue:v,itemUrl:h,refresh:u,source:y,state:a.getState()},c))}})).finally((function(){Y&&o.environment.clearTimeout(Y)}))}))):(m("idle"),s(a.getState().collections.map((function(e){return J(J({},e),{},{items:[]})}))),p(null!==(l=r.isOpen)&&void 0!==l?l:o.shouldPanelOpen({state:a.getState()})),Promise.resolve())}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ce(e){var t=e.props,n=e.refresh,r=e.store,o=ae(e,["props","refresh","store"]);return{getEnvironmentProps:function(e){var n=e.inputElement,o=e.formElement,i=e.panelElement;return ie({onTouchStart:function(e){!1!==r.getState().isOpen&&e.target!==n&&(!1===[o,i].some((function(n){return I(n,e.target)||I(n,t.environment.document.activeElement)}))&&r.dispatch("blur",null))},onTouchMove:function(e){!1!==r.getState().isOpen&&n===t.environment.document.activeElement&&e.target!==n&&n.blur()}},ae(e,["inputElement","formElement","panelElement"]))},getRootProps:function(e){return ie({role:"combobox","aria-expanded":r.getState().isOpen,"aria-haspopup":"listbox","aria-owns":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label"),"aria-label":"".concat(t.id,"-label")},e)},getFormProps:function(e){e.inputElement;return ie({action:"",noValidate:!0,role:"search",onSubmit:function(i){var u;i.preventDefault(),t.onSubmit(ie({event:i,refresh:n,state:r.getState()},o)),r.dispatch("submit",null),null===(u=e.inputElement)||void 0===u||u.blur()},onReset:function(i){var u;i.preventDefault(),t.onReset(ie({event:i,refresh:n,state:r.getState()},o)),r.dispatch("reset",null),null===(u=e.inputElement)||void 0===u||u.focus()}},ae(e,["inputElement"]))},getLabelProps:function(e){return ie({htmlFor:"".concat(t.id,"-input"),id:"".concat(t.id,"-label")},e)},getInputProps:function(e){function i(e){(t.openOnFocus||Boolean(r.getState().query))&&Z(ie({event:e,props:t,query:r.getState().completion||r.getState().query,refresh:n,store:r},o)),r.dispatch("focus",null)}var u="ontouchstart"in t.environment,a=e||{},c=(a.inputElement,a.maxLength),l=void 0===c?512:c,s=ae(a,["inputElement","maxLength"]),p=w(r.getState());return ie({"aria-autocomplete":"both","aria-activedescendant":r.getState().isOpen&&null!==r.getState().activeItemId?"".concat(t.id,"-item-").concat(r.getState().activeItemId):void 0,"aria-controls":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label"),"aria-label":"".concat(t.id,"-label"),value:r.getState().completion||r.getState().query,id:"".concat(t.id,"-input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:null!=p&&p.itemUrl?"go":"search",spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:l,type:"search",onChange:function(e){Z(ie({event:e,props:t,query:e.currentTarget.value.slice(0,l),refresh:n,store:r},o))},onKeyDown:function(e){!function(e){var t=e.event,n=e.props,r=e.refresh,o=e.store,i=re(e,["event","props","refresh","store"]);if("ArrowUp"===t.key||"ArrowDown"===t.key){t.preventDefault(),o.dispatch(t.key,null);var u=n.environment.document.getElementById("".concat(n.id,"-item-").concat(o.getState().activeItemId));u&&(u.scrollIntoViewIfNeeded?u.scrollIntoViewIfNeeded(!1):u.scrollIntoView(!1));var a=w(o.getState());if(null!==o.getState().activeItemId&&a){var c=a.item,l=a.itemInputValue,s=a.itemUrl,p=a.source;p.onActive(te({event:t,item:c,itemInputValue:l,itemUrl:s,refresh:r,source:p,state:o.getState()},i))}}else if("Escape"===t.key)t.preventDefault(),o.dispatch(t.key,null);else if("Enter"===t.key){if(null===o.getState().activeItemId||o.getState().collections.every((function(e){return 0===e.items.length})))return;t.preventDefault();var f=w(o.getState()),d=f.item,m=f.itemInputValue,v=f.itemUrl,h=f.source;if(t.metaKey||t.ctrlKey)void 0!==v&&(h.onSelect(te({event:t,item:d,itemInputValue:m,itemUrl:v,refresh:r,source:h,state:o.getState()},i)),n.navigator.navigateNewTab({itemUrl:v,item:d,state:o.getState()}));else if(t.shiftKey)void 0!==v&&(h.onSelect(te({event:t,item:d,itemInputValue:m,itemUrl:v,refresh:r,source:h,state:o.getState()},i)),n.navigator.navigateNewWindow({itemUrl:v,item:d,state:o.getState()}));else if(t.altKey);else{if(void 0!==v)return h.onSelect(te({event:t,item:d,itemInputValue:m,itemUrl:v,refresh:r,source:h,state:o.getState()},i)),void n.navigator.navigate({itemUrl:v,item:d,state:o.getState()});Z(te({event:t,nextState:{isOpen:!1},props:n,query:m,refresh:r,store:o},i)).then((function(){h.onSelect(te({event:t,item:d,itemInputValue:m,itemUrl:v,refresh:r,source:h,state:o.getState()},i))}))}}}(ie({event:e,props:t,refresh:n,store:r},o))},onFocus:i,onBlur:function(){u||r.dispatch("blur",null)},onClick:function(n){e.inputElement!==t.environment.document.activeElement||r.getState().isOpen||i(n)}},s)},getPanelProps:function(e){return ie({onMouseDown:function(e){e.preventDefault()},onMouseLeave:function(){r.dispatch("mouseleave",null)}},e)},getListProps:function(e){return ie({role:"listbox","aria-labelledby":"".concat(t.id,"-label"),"aria-label":"".concat(t.id,"-label"),id:"".concat(t.id,"-list")},e)},getItemProps:function(e){var i=e.item,u=e.source,a=ae(e,["item","source"]);return ie({id:"".concat(t.id,"-item-").concat(i.__autocomplete_id),role:"option","aria-selected":r.getState().activeItemId===i.__autocomplete_id,onMouseMove:function(e){if(i.__autocomplete_id!==r.getState().activeItemId){r.dispatch("mousemove",i.__autocomplete_id);var t=w(r.getState());if(null!==r.getState().activeItemId&&t){var u=t.item,a=t.itemInputValue,c=t.itemUrl,l=t.source;l.onActive(ie({event:e,item:u,itemInputValue:a,itemUrl:c,refresh:n,source:l,state:r.getState()},o))}}},onMouseDown:function(e){e.preventDefault()},onClick:function(e){var a=u.getItemInputValue({item:i,state:r.getState()}),c=u.getItemUrl({item:i,state:r.getState()});(c?Promise.resolve():Z(ie({event:e,nextState:{isOpen:!1},props:t,query:a,refresh:n,store:r},o))).then((function(){u.onSelect(ie({event:e,item:i,itemInputValue:a,itemUrl:c,refresh:n,source:u,state:r.getState()},o))}))}},a)}}}function le(e){var t=e.state;return!1===t.isOpen||null===t.activeItemId?null:w(t).itemInputValue||null}function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t0}},e),{},{id:null!==(n=e.id)&&void 0!==n?n:f(),plugins:o,initialState:R({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},e.initialState),onStateChange:function(t){var n;null===(n=e.onStateChange)||void 0===n||n.call(e,t),o.forEach((function(e){var n;return null===(n=e.onStateChange)||void 0===n?void 0:n.call(e,t)}))},onSubmit:function(t){var n;null===(n=e.onSubmit)||void 0===n||n.call(e,t),o.forEach((function(e){var n;return null===(n=e.onSubmit)||void 0===n?void 0:n.call(e,t)}))},onReset:function(t){var n;null===(n=e.onReset)||void 0===n||n.call(e,t),o.forEach((function(e){var n;return null===(n=e.onReset)||void 0===n?void 0:n.call(e,t)}))},getSources:function(n){return Promise.all([].concat(N(o.map((function(e){return e.getSources}))),[e.getSources]).filter(Boolean).map((function(e){return j(e,n)}))).then((function(e){return g(e)})).then((function(e){return e.map((function(e){return R(R({},e),{},{onSelect:function(n){e.onSelect(n),t.forEach((function(e){var t;return null===(t=e.onSelect)||void 0===t?void 0:t.call(e,n)}))},onActive:function(n){e.onActive(n),t.forEach((function(e){var t;return null===(t=e.onActive)||void 0===t?void 0:t.call(e,n)}))}})}))}))},navigator:R({navigate:function(e){var t=e.itemUrl;r.location.assign(t)},navigateNewTab:function(e){var t=e.itemUrl,n=r.open(t,"_blank","noopener");null==n||n.focus()},navigateNewWindow:function(e){var t=e.itemUrl;r.open(t,"_blank","noopener")}},e.navigator)})}(e,t),r=y(de,n,(function(e){var t=e.prevState,r=e.state;n.onStateChange(ve({prevState:t,state:r,refresh:u},o))})),o=function(e){var t=e.store;return{setActiveItemId:function(e){t.dispatch("setActiveItemId",e)},setQuery:function(e){t.dispatch("setQuery",e)},setCollections:function(e){var n=0,r=e.map((function(e){return k(k({},e),{},{items:g(e.items).map((function(e){return k(k({},e),{},{__autocomplete_id:n++})}))})}));t.dispatch("setCollections",r)},setIsOpen:function(e){t.dispatch("setIsOpen",e)},setStatus:function(e){t.dispatch("setStatus",e)},setContext:function(e){t.dispatch("setContext",e)}}}({store:r}),i=ce(ve({props:n,refresh:u,store:r},o));function u(){return Z(ve({event:new Event("input"),nextState:{isOpen:r.getState().isOpen},props:n,query:r.getState().query,refresh:u,store:r},o))}return n.plugins.forEach((function(e){var n;return null===(n=e.subscribe)||void 0===n?void 0:n.call(e,ve(ve({},o),{},{refresh:u,onSelect:function(e){t.push({onSelect:e})},onActive:function(e){t.push({onActive:e})}}))})),ve(ve({refresh:u},i),o)}var ge=function(e){var t=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-ClearIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","18"),n.setAttribute("height","18"),n.setAttribute("fill","currentColor");var r=t.document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d","M5.293 6.707l5.293 5.293-5.293 5.293c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l5.293-5.293 5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-5.293-5.293 5.293-5.293c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z"),n.appendChild(r),n};function be(e,t){if("string"==typeof t){var n=e.document.querySelector(t);return"The element ".concat(JSON.stringify(t)," is not in the document."),n}return t}function _e(){for(var e=arguments.length,t=new Array(e),n=0;n\n \n',t},ke=function(e){var t=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-SubmitIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","20"),n.setAttribute("height","20"),n.setAttribute("fill","currentColor");var r=t.document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d","M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z"),n.appendChild(r),n};function xe(e){var t=e.autocomplete,n=e.autocompleteScopeApi,r=e.classNames,o=e.environment,a=e.isDetached,c=e.placeholder,l=void 0===c?"Search":c,s=e.propGetters,p=e.setIsModalOpen,f=e.state,d=Ce(o),m=s.getRootProps(i({state:f,props:t.getRootProps({})},n)),v=d("div",i({class:r.root},m)),h=d("div",{class:r.detachedContainer,onMouseDown:function(e){e.stopPropagation()}}),y=d("div",{class:r.detachedOverlay,children:[h],onMouseDown:function(){p(!1),t.setIsOpen(!1)}}),g=s.getLabelProps(i({state:f,props:t.getLabelProps({})},n)),b=d("button",{class:r.submitButton,type:"submit",title:"Submit",children:[ke({environment:o})]}),_=d("label",i({class:r.label,children:[b]},g)),O=d("button",{class:r.clearButton,type:"reset",title:"Clear",children:[ge({environment:o})]}),P=d("div",{class:r.loadingIndicator,children:[De({environment:o})]}),S=function(e){var t=e.autocompleteScopeApi,n=e.environment,r=(e.classNames,e.getInputProps),o=e.getInputPropsCore,a=e.onDetachedEscape,c=e.state,l=u(e,["autocompleteScopeApi","environment","classNames","getInputProps","getInputPropsCore","onDetachedEscape","state"]),s=Ce(n)("input",l),p=r(i({state:c,props:o({inputElement:s}),inputElement:s},t));return Ee(s,i(i({},p),{},{onKeyDown:function(e){if(a&&"Escape"===e.key)return e.preventDefault(),void a();p.onKeyDown(e)}})),s}({class:r.input,environment:o,state:f,getInputProps:s.getInputProps,getInputPropsCore:t.getInputProps,autocompleteScopeApi:n,onDetachedEscape:a?function(){t.setIsOpen(!1),p(!1)}:void 0}),j=d("div",{class:r.inputWrapperPrefix,children:[_,P]}),w=d("div",{class:r.inputWrapperSuffix,children:[O]}),I=d("div",{class:r.inputWrapper,children:[S]}),E=s.getFormProps(i({state:f,props:t.getFormProps({inputElement:S})},n)),A=d("form",i({class:r.form,children:[j,I,w]},E)),C=s.getPanelProps(i({state:f,props:t.getPanelProps({})},n)),D=d("div",i({class:r.panel},C));if(a){var k=d("div",{class:r.detachedSearchButtonIcon,children:[ke({environment:o})]}),x=d("div",{class:r.detachedSearchButtonPlaceholder,textContent:l}),N=d("button",{class:r.detachedSearchButton,onClick:function(e){e.preventDefault(),p(!0)},children:[k,x]}),F=d("button",{class:r.detachedCancelButton,textContent:"Cancel",onClick:function(){t.setIsOpen(!1),p(!1)}}),L=d("div",{class:r.detachedFormContainer,children:[A,F]});h.appendChild(L),v.appendChild(N)}else v.appendChild(A);return{detachedContainer:h,detachedOverlay:y,inputWrapper:I,input:S,root:v,form:A,label:_,submitButton:b,clearButton:O,loadingIndicator:P,panel:D}}var Ne,Fe,Le,Re,qe={},Te=[],Be=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ue(e,t){for(var n in t)e[n]=t[n];return e}function Me(e){var t=e.parentNode;t&&t.removeChild(e)}function He(e,t,n){var r,o,i,u=arguments,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>3)for(n=[n],i=3;i0?Ve(d.type,d.props,d.key,null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(f=y[s])||f&&d.key==f.key&&d.type===f.type)y[s]=void 0;else for(p=0;p0&&void 0!==arguments[0]?arguments[0]:[];return{get:function(){return e},add:function(t){var n=e[e.length-1];(null==n?void 0:n.isHighlighted)===t.isHighlighted?e[e.length-1]={value:n.value+t.value,isHighlighted:n.isHighlighted}:e.push(t)}}}(n?[{value:n,isHighlighted:!1}]:[]);return t.forEach((function(e){var t=e.split(st);r.add({value:t[0],isHighlighted:!0}),""!==t[1]&&r.add({value:t[1],isHighlighted:!1})})),r.get()}function ft(e){return function(e){if(Array.isArray(e))return dt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return dt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n",""":'"',"'":"'"},ht=new RegExp(/\w/i),yt=/&(amp|quot|lt|gt|#39);/g,gt=RegExp(yt.source);function bt(e,t){var n,r,o,i=e[t],u=(null===(n=e[t+1])||void 0===n?void 0:n.isHighlighted)||!0,a=(null===(r=e[t-1])||void 0===r?void 0:r.isHighlighted)||!0;return ht.test((o=i.value)&>.test(o)?o.replace(yt,(function(e){return vt[e]})):o)||a!==u?i.isHighlighted:a}function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ot(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Lt(e){return function(e){if(Array.isArray(e))return Rt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Rt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0;if(!_.value.core.openOnFocus&&!t.query)return n;var r=Boolean(y.current||_.value.renderer.renderNoResults);return!n&&r||n}}))})),S=l(i({collections:[],completion:null,context:{},isOpen:!1,query:"",activeItemId:null,status:"idle"},_.value.core.initialState)),j={getEnvironmentProps:_.value.renderer.getEnvironmentProps,getFormProps:_.value.renderer.getFormProps,getInputProps:_.value.renderer.getInputProps,getItemProps:_.value.renderer.getItemProps,getLabelProps:_.value.renderer.getLabelProps,getListProps:_.value.renderer.getListProps,getPanelProps:_.value.renderer.getPanelProps,getRootProps:_.value.renderer.getRootProps},w={setActiveItemId:P.value.setActiveItemId,setQuery:P.value.setQuery,setCollections:P.value.setCollections,setIsOpen:P.value.setIsOpen,setStatus:P.value.setStatus,setContext:P.value.setContext,refresh:P.value.refresh},I=v((function(){return xe({autocomplete:P.value,autocompleteScopeApi:w,classNames:_.value.renderer.classNames,environment:_.value.core.environment,isDetached:O.value,placeholder:_.value.core.placeholder,propGetters:j,setIsModalOpen:D,state:S.current})}));function E(){Ee(I.value.panel,{style:O.value?{}:Vt({panelPlacement:_.value.renderer.panelPlacement,container:I.value.root,form:I.value.form,environment:_.value.core.environment})})}function A(e){S.current=e;var t={autocomplete:P.value,autocompleteScopeApi:w,classNames:_.value.renderer.classNames,components:_.value.renderer.components,container:_.value.renderer.container,createElement:_.value.renderer.renderer.createElement,dom:I.value,Fragment:_.value.renderer.renderer.Fragment,panelContainer:O.value?I.value.detachedContainer:_.value.renderer.panelContainer,propGetters:j,state:S.current},n=!m(e)&&!y.current&&_.value.renderer.renderNoResults||_.value.renderer.render;!function(e){var t=e.autocomplete,n=e.autocompleteScopeApi,r=e.dom,o=e.propGetters,u=e.state;Ae(r.root,o.getRootProps(i({state:u,props:t.getRootProps({})},n))),Ae(r.input,o.getInputProps(i({state:u,props:t.getInputProps({inputElement:r.input}),inputElement:r.input},n))),Ee(r.label,{hidden:"stalled"===u.status}),Ee(r.loadingIndicator,{hidden:"stalled"!==u.status}),Ee(r.clearButton,{hidden:!u.query})}(t),function(e,t){var n=t.autocomplete,o=t.autocompleteScopeApi,u=t.classNames,a=t.createElement,c=t.dom,l=t.Fragment,s=t.panelContainer,p=t.propGetters,f=t.state,d=t.components;if(f.isOpen){s.contains(c.panel)||"loading"===f.status||s.appendChild(c.panel),c.panel.classList.toggle("aa-Panel--stalled","stalled"===f.status);var m=f.collections.map((function(e,t){var c=e.source,s=e.items;return a("section",{key:t,className:u.source,"data-autocomplete-source-id":c.sourceId},c.templates.header&&a("div",{className:u.sourceHeader},c.templates.header({components:d,createElement:a,Fragment:l,items:s,source:c,state:f})),c.templates.noResults&&0===s.length?a("div",{className:u.sourceNoResults},c.templates.noResults({components:d,createElement:a,Fragment:l,source:c,state:f})):a("ul",r({className:u.list},p.getListProps(i({state:f,props:n.getListProps({})},o))),s.map((function(e){var t=n.getItemProps({item:e,source:c});return a("li",r({key:t.id,className:u.item},p.getItemProps(i({state:f,props:t},o))),c.templates.item({components:d,createElement:a,Fragment:l,item:e,state:f}))}))),c.templates.footer&&a("div",{className:u.sourceFooter},c.templates.footer({components:d,createElement:a,Fragment:l,items:s,source:c,state:f})))})),v=a(l,null,a("div",{className:"aa-PanelLayout aa-Panel--scrollable"},m),a("div",{className:"aa-GradientBottom"})),h=m.reduce((function(e,t){return e[t.props["data-autocomplete-source-id"]]=t,e}),{});e({children:v,state:f,sections:m,elements:h,createElement:a,Fragment:l,components:d},c.panel)}else s.contains(c.panel)&&s.removeChild(c.panel)}(n,t)}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(),g.current=Pe(_.value.renderer,_.value.core,{initialState:S.current},e),h(),p(),P.value.refresh().then((function(){A(S.current)}))}function D(e){requestAnimationFrame((function(){var t=_.value.core.environment.document.body.contains(I.value.detachedOverlay);e!==t&&(e?(_.value.core.environment.document.body.appendChild(I.value.detachedOverlay),_.value.core.environment.document.body.classList.add("aa-Detached"),I.value.input.focus()):(_.value.core.environment.document.body.removeChild(I.value.detachedOverlay),_.value.core.environment.document.body.classList.remove("aa-Detached"),P.value.setQuery(""),P.value.refresh()))}))}return a((function(){var e=P.value.getEnvironmentProps({formElement:I.value.form,panelElement:I.value.panel,inputElement:I.value.input});return Ee(_.value.core.environment,e),function(){Ee(_.value.core.environment,Object.keys(e).reduce((function(e,t){return i(i({},e),{},n({},t,void 0))}),{}))}})),a((function(){var e=O.value?_.value.core.environment.document.body:_.value.renderer.panelContainer,t=O.value?I.value.detachedOverlay:I.value.panel;return O.value&&S.current.isOpen&&D(!0),A(S.current),function(){e.contains(t)&&e.removeChild(t)}})),a((function(){var e=_.value.renderer.container;return e.appendChild(I.value.root),function(){e.removeChild(I.value.root)}})),a((function(){var e=s((function(e){A(e.state)}),0);return b.current=function(t){var n=t.state,r=t.prevState;(O.value&&r.isOpen!==n.isOpen&&D(n.isOpen),O.value||!n.isOpen||r.isOpen||E(),n.query!==r.query)&&_.value.core.environment.document.querySelectorAll(".aa-Panel--scrollable").forEach((function(e){0!==e.scrollTop&&(e.scrollTop=0)}));e({state:n})},function(){b.current=void 0}})),a((function(){var e=s((function(){var e=O.value;O.value=_.value.core.environment.matchMedia(_.value.renderer.detachedMediaQuery).matches,e!==O.value?C({}):requestAnimationFrame(E)}),20);return _.value.core.environment.addEventListener("resize",e),function(){_.value.core.environment.removeEventListener("resize",e)}})),a((function(){if(!O.value)return function(){};function e(e){I.value.detachedContainer.classList.toggle("aa-DetachedContainer--modal",e)}function t(t){e(t.matches)}var n=_.value.core.environment.matchMedia(getComputedStyle(_.value.core.environment.document.documentElement).getPropertyValue("--aa-detached-modal-media-query"));return e(n.matches),n.addEventListener("change",t),function(){n.removeEventListener("change",t)}})),a((function(){return requestAnimationFrame(E),function(){}})),i(i({},w),{},{update:C,destroy:function(){c()}})},e.getAlgoliaFacets=function(e){var t=Wt({transformResponse:function(e){return e.facetHits}}),n=e.queries.map((function(e){return i(i({},e),{},{type:"facet"})}));return t(i(i({},e),{},{queries:n}))},e.getAlgoliaResults=Qt,Object.defineProperty(e,"__esModule",{value:!0})}));
/**
* Skipped minification because the original files appears to be already minified.
@@ -24,4 +24,4 @@ var ALGOLIA_INSIGHTS_SRC = "https://cdn.jsdelivr.net/npm/search-insights@2.0.0";
!function(e,a,t,n,s,i,c){e.AlgoliaAnalyticsObject=s,e[s]=e[s]||function(){
(e[s].queue=e[s].queue||[]).push(arguments)},i=a.createElement(t),c=a.getElementsByTagName(t)[0],
i.async=1,i.src=n,c.parentNode.insertBefore(i,c)
-}(window,document,"script",ALGOLIA_INSIGHTS_SRC,"insightsClient");
\ No newline at end of file
+}(window,document,"script",ALGOLIA_INSIGHTS_SRC,"insightsClient");