PageSourceSearch

https://www.kukident.it/_next/static/chunks/1cm6ixqkf2o4a.js

js kukident.it collected 2026-10-05 23:18:53 UTC 210,964 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,94834,(e,t,r)=>{e.e,t.exports=function(){"use strict";var e="millisecond",t="second",r="minute",n="hour",i="week",a="month",s="quarter",o="year",c="date",u="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},f="en",m={};m[f]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}};var p="$isDayjsObject",g=function(e){return e instanceof R||!(!e||!e[p])},v=function e(t,r,n){var i;if(!t)return f;if("string"==typeof t){var a=t.toLowerCase();m[a]&&(i=a),r&&(m[a]=r,i=a);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var o=t.name;m[o]=t,i=o}return!n&&i&&(f=i),i||!n&&f},y=function(e,t){if(g(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new R(r)},b={s:h,z:function(e){var t=-e.utcOffset(),r=Math.abs(t);return(t<=0?"+":"-")+h(Math.floor(r/60),2,"0")+":"+h(r%60,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,a),s=r-i<0,o=t.clone().add(n+(s?-1:1),a);return+(-(n+(r-i)/(s?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(u){return({M:a,y:o,w:i,d:"day",D:c,h:n,m:r,s:t,ms:e,Q:s})[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};b.l=v,b.i=g,b.w=function(e,t){return y(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var R=function(){function h(e){this.$L=v(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[p]=!0}var f=h.prototype;return f.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(b.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(l);if(n){var i=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(t)}(e),this.init()},f.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},f.$utils=function(){return b},f.isValid=function(){return this.$d.toString()!==u},f.isSame=function(e,t){var r=y(e);return this.startOf(t)<=r&&r<=this.endOf(t)},f.isAfter=function(e,t){return y(e)<this.startOf(t)},f.isBefore=function(e,t){return this.endOf(t)<y(e)},f.$g=function(e,t,r){return b.u(e)?this[t]:this.set(r,e)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(e,s){var u=this,l=!!b.u(s)||s,d=b.p(e),h=function(e,t){var r=b.w(u.$u?Date.UTC(u.$y,t,e):new Date(u.$y,t,e),u);return l?r:r.endOf("day")},f=function(e,t){return b.w(u.toDate()[e].apply(u.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(t)),u)},m=this.$W,p=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(d){case o:return l?h(1,0):h(31,11);case a:return l?h(1,p):h(0,p+1);case i:var y=this.$locale().weekStart||0,R=(m<y?m+7:m)-y;return h(l?g-R:g+(6-R),p);case"day":case c:return f(v+"Hours",0);case n:return f(v+"Minutes",1);case r:return f(v+"Seconds",2);case t:return f(v+"Milliseconds",3);default:return this.clone()}},f.endOf=function(e){return this.startOf(e,!1)},f.$set=function(i,s){var u,l=b.p(i),d="set"+(this.$u?"UTC":""),h=((u={}).day=d+"Date",u[c]=d+"Date",u[a]=d+"Month",u[o]=d+"FullYear",u[n]=d+"Hours",u[r]=d+"Minutes",u[t]=d+"Seconds",u[e]=d+"Milliseconds",u)[l],f="day"===l?this.$D+(s-this.$W):s;if(l===a||l===o){var m=this.clone().set(c,1);
1m.$d[h](f),m.init(),this.$d=m.set(c,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](f);return this.init(),this},f.set=function(e,t){return this.clone().$set(e,t)},f.get=function(e){return this[b.p(e)]()},f.add=function(e,s){var c,u=this;e=Number(e);var l=b.p(s),d=function(t){var r=y(u);return b.w(r.date(r.date()+Math.round(t*e)),u)};if(l===a)return this.set(a,this.$M+e);if(l===o)return this.set(o,this.$y+e);if("day"===l)return d(1);if(l===i)return d(7);var h=((c={})[r]=6e4,c[n]=36e5,c[t]=1e3,c)[l]||1,f=this.$d.getTime()+e*h;return b.w(f,this)},f.subtract=function(e,t){return this.add(-1*e,t)},f.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||u;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),a=this.$H,s=this.$m,o=this.$M,c=r.weekdays,l=r.months,h=r.meridiem,f=function(e,r,i,a){return e&&(e[r]||e(t,n))||i[r].slice(0,a)},m=function(e){return b.s(a%12||12,e,"0")},p=h||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(d,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return b.s(t.$y,4,"0");case"M":return o+1;case"MM":return b.s(o+1,2,"0");case"MMM":return f(r.monthsShort,o,l,3);case"MMMM":return f(l,o);case"D":return t.$D;case"DD":return b.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(r.weekdaysMin,t.$W,c,2);case"ddd":return f(r.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(a);case"HH":return b.s(a,2,"0");case"h":return m(1);case"hh":return m(2);case"a":return p(a,s,!0);case"A":return p(a,s,!1);case"m":return String(s);case"mm":return b.s(s,2,"0");case"s":return String(t.$s);case"ss":return b.s(t.$s,2,"0");case"SSS":return b.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},f.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},f.diff=function(e,c,u){var l,d=this,h=b.p(c),f=y(e),m=(f.utcOffset()-this.utcOffset())*6e4,p=this-f,g=function(){return b.m(d,f)};switch(h){case o:l=g()/12;break;case a:l=g();break;case s:l=g()/3;break;case i:l=(p-m)/6048e5;break;case"day":l=(p-m)/864e5;break;case n:l=p/36e5;break;case r:l=p/6e4;break;case t:l=p/1e3;break;default:l=p}return u?l:b.a(l)},f.daysInMonth=function(){return this.endOf(a).$D},f.$locale=function(){return m[this.$L]},f.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=v(e,t,!0);return n&&(r.$L=n),r},f.clone=function(){return b.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},h}(),x=R.prototype;return y.prototype=x,[["$ms",e],["$s",t],["$m",r],["$H",n],["$W","day"],["$M",a],["$y",o],["$D",c]].forEach(function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),y.extend=function(e,t){return e.$i||(e(t,R,y),e.$i=!0),y},y.locale=v,y.isDayjs=g,y.unix=function(e){return y(1e3*e)},y.en=m[f],y.Ls=m,y.p={},y}()},37940,(e,t,r)=>{"use strict";t.exports="3.29.1"},37609,(e,t,r)=>{function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function a(e){return"object"==typeof e&&null!==e}t.exports=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,r,n,s,o,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var u=Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(void 0===(r=this._events[e]))return!1;if(i(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),r.apply(this,s)}
1else if(a(r))for(o=0,s=Array.prototype.slice.call(arguments,1),n=(c=r.slice()).length;o<n;o++)c[o].apply(this,s);return!0},n.prototype.addListener=function(e,t){var r;if(!i(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned&&(r=void 0===this._maxListeners?n.defaultMaxListeners:this._maxListeners)&&r>0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){if(!i(t))throw TypeError("listener must be a function");var r=!1;function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var r,n,s,o;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=(r=this._events[e]).length,n=-1,r===t||i(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(r)){for(o=s;o-- >0;)if(r[o]===t||r[o].listener&&r[o].listener===t){n=o;break}if(n<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0==arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0==arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(i(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},24740,(e,t,r)=>{"use strict";t.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},80892,(e,t,r)=>{"use strict";var n=e.r(37609);function i(e,t,r){this.main=e,this.fn=t,this.recommendFn=r,this.lastResults=null,this.lastRecommendResults=null}e.r(24740)(i,n),i.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},i.prototype.getModifiedState=function(e){return this.fn(e)},i.prototype.getModifiedRecommendState=function(e){return this.recommendFn(e)},t.exports=i},7300,(e,t,r)=>{"use strict";t.exports={escapeFacetValue:function(e){return"string"!=typeof e?e:String(e).replace(/^-/,"\\-")},unescapeFacetValue:function(e){return"string"!=typeof e?e:e.replace(/^\\-/,"-")}}},32879,(e,t,r)=>{"use strict";function n(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}t.exports=function(e){n(e)||(e={});for(var t=1,r=arguments.length;t<r;t++){var i=arguments[t];n(i)&&function e(t,r){if(t===r)return t;for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)&&"__proto__"!==i&&"constructor"!==i){var a=r[i],s=t[i];(void 0===s||void 0!==a)&&(n(s)&&n(a)?t[i]=e(s,a):t[i]="object"==typeof a&&null!==a?e(Array.isArray(a)?[]:{},a):a)}return t}(e,i)}return e}},13941,(e,t,r)=>{"use strict";t.exports=function(e){return e&&Object.keys(e).length>0}},40726,(e,t,r)=>{"use strict";t.exports=function(e,t){if(null===e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}},65903,(e,t,r)=>{"use strict";function n(e){e=e||{},this.params=e.params||[]}n.prototype={constructor:n,addParams:function(e){var t=this.params.slice();return t.push(e),new n({params:t})}
vendor: 4,002 bytes, line 1
1,removeParams:function(e){return new n({params:this.params.filter(function(t){return t.$$id!==e})})},addFrequentlyBoughtTogether:function(e){return this.addParams(Object.assign({},e,{model:"bought-together"}))},addRelatedProducts:function(e){return this.addParams(Object.assign({},e,{model:"related-products"}))},addTrendingItems:function(e){return this.addParams(Object.assign({},e,{model:"trending-items"}))},addTrendingFacets:function(e){return this.addParams(Object.assign({},e,{model:"trending-facets"}))},addLookingSimilar:function(e){return this.addParams(Object.assign({},e,{model:"looking-similar"}))},_buildQueries:function(e,t){return this.params.filter(function(e){return void 0===t[e.$$id]}).map(function(t){var r=Object.assign({},t,{indexName:e,threshold:t.threshold||0});return delete r.$$id,r})}},t.exports=n},3849,(e,t,r)=>{"use strict";function n(e,t){this._state=e,this._rawResults={};var r=this;e.params.forEach(function(e){var n=e.$$id;r[n]=t[n],r._rawResults[n]=t[n]})}n.prototype={constructor:n},t.exports=n},65326,(e,t,r)=>{"use strict";var n=e.r(32879);function i(e){return Object.keys(e).sort().reduce(function(t,r){return t[r]=e[r],t},{})}var a={_getQueries:function(e,t){var r=[];return r.push({indexName:e,params:a._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach(function(n){r.push({indexName:e,params:a._getDisjunctiveFacetSearchParams(t,n)})}),t.getRefinedHierarchicalFacets().forEach(function(n){var i=t.getHierarchicalFacetByName(n),s=t.getHierarchicalRefinement(n),o=t._getHierarchicalFacetSeparator(i);if(s.length>0&&s[0].split(o).length>1){var c=s[0].split(o).slice(0,-1).reduce(function(e,t,r){return e.concat({attribute:i.attributes[r],value:0===r?t:[e[e.length-1].value,t].join(o)})},[]);c.forEach(function(n,s){var o=a._getDisjunctiveFacetSearchParams(t,n.attribute,0===s);function u(e){return i.attributes.some(function(t){return t===e.split(":")[0]})}var l=(o.facetFilters||[]).reduce(function(e,t){if(Array.isArray(t)){var r=t.filter(function(e){return!u(e)});r.length>0&&e.push(r)}return"string"!=typeof t||u(t)||e.push(t),e},[]),d=c[s-1];s>0?o.facetFilters=l.concat(d.attribute+":"+d.value):l.length>0?o.facetFilters=l:delete o.facetFilters,r.push({indexName:e,params:o})})}}),r},_getCompositionQueries:function(e){return[{compositionID:e.index,requestBody:{params:a._getCompositionHitsSearchParams(e)}}]},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(a._getHitsHierarchicalFacetsAttributes(e)).sort(),r=a._getFacetFilters(e),s=a._getNumericFilters(e),o=a._getTagFilters(e),c={};return t.length>0&&(c.facets=t.indexOf("*")>-1?["*"]:t),o.length>0&&(c.tagFilters=o),r.length>0&&(c.facetFilters=r),s.length>0&&(c.numericFilters=s),i(n({},e.getQueryParams(),c))},_getCompositionHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets.map(function(t){return e.disjunctiveFacetsRefinements&&e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].length>0?"disjunctive("+t+")":t})).concat(a._getHitsHierarchicalFacetsAttributes(e)).sort(),r=a._getFacetFilters(e),s=a._getNumericFilters(e),o=a._getTagFilters(e),c={};t.length>0&&(c.facets=t.indexOf("*")>-1?["*"]:t),o.length>0&&(c.tagFilters=o),r.length>0&&(c.facetFilters=r),s.length>0&&(c.numericFilters=s);var u=e.getQueryParams();return delete u.highlightPreTag,delete u.highlightPostTag,delete u.index,i(n({},u,c))},_getDisjunctiveFacetSearchParams:function(e,t,r){var s=a._getFacetFilters(e,t,r),o=a._getNumericFilters(e,t),c=a._getTagFilters(e),u={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};c.length>0&&(u.tagFilters=c);var l=e.getHierarchicalFacetByName(t);return l?u.facets=a._getDisjunctiveHierarchicalFacetAttribute(e,l,r):u.facets=t,o.length>0&&(u.numericFilters=o),s.length>0&&(u.facetFilters=s),i(n({},e.getQueryParams(),u))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var r=[];return Object.keys(e.numericRefinements).forEach(function(n){var i=e.numericRefinements[n]||{};
1Object.keys(i).forEach(function(e){var a=i[e]||[];t!==n&&a.forEach(function(t){if(Array.isArray(t)){var i=t.map(function(t){return n+e+t});r.push(i)}else r.push(n+e+t)})})}),r},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,r){var n=[],i=e.facetsRefinements||{};Object.keys(i).sort().forEach(function(e){(i[e]||[]).slice().sort().forEach(function(t){n.push(e+":"+t)})});var a=e.facetsExcludes||{};Object.keys(a).sort().forEach(function(e){(a[e]||[]).sort().forEach(function(t){n.push(e+":-"+t)})});var s=e.disjunctiveFacetsRefinements||{};Object.keys(s).sort().forEach(function(e){var r=s[e]||[];if(e!==t&&r&&0!==r.length){var i=[];r.slice().sort().forEach(function(t){i.push(e+":"+t)}),n.push(i)}});var o=e.hierarchicalFacetsRefinements||{};return Object.keys(o).sort().forEach(function(i){var a,s,c=(o[i]||[])[0];if(void 0!==c){var u=e.getHierarchicalFacetByName(i),l=e._getHierarchicalFacetSeparator(u),d=e._getHierarchicalRootPath(u);if(t===i){if(-1===c.indexOf(l)||!d&&!0===r||d&&d.split(l).length===c.split(l).length)return;d?(s=d.split(l).length-1,c=d):(s=c.split(l).length-2,c=c.slice(0,c.lastIndexOf(l))),a=u.attributes[s]}else s=c.split(l).length-1,a=u.attributes[s];a&&n.push([a+":"+c])}}),n},_getHitsHierarchicalFacetsAttributes:function(e){return e.hierarchicalFacets.reduce(function(t,r){var n=e.getHierarchicalRefinement(r.name)[0];if(!n)return t.push(r.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(r),a=n.split(i).length,s=r.attributes.slice(0,a+1);return t.concat(s)},[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,r){var n=e._getHierarchicalFacetSeparator(t);if(!0===r){var i=e._getHierarchicalRootPath(t),a=0;return i&&(a=i.split(n).length),[t.attributes[a]]}var s=(e.getHierarchicalRefinement(t.name)[0]||"").split(n).length-1;return t.attributes.slice(0,s+1)},getSearchForFacetQuery:function(e,t,r,s){var o=s.isDisjunctiveFacet(e)?s.clearRefinements(e):s,c={facetQuery:t,facetName:e};return"number"==typeof r&&(c.maxFacetHits=r),i(n({},a._getHitsSearchParams(o),c))}};t.exports=a},41722,(e,t,r)=>{"use strict";t.exports=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight(function(e,t){return Object.keys(Object(t)).forEach(function(r){void 0!==t[r]&&(void 0!==e[r]&&delete e[r],e[r]=t[r])}),e},{})}},76759,(e,t,r)=>{"use strict";t.exports=function(e,t){if(Array.isArray(e)){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}}},62231,(e,t,r)=>{"use strict";t.exports=function(e,t){return e.filter(function(r,n){return t.indexOf(r)>-1&&e.indexOf(r)===n})}},26247,(e,t,r)=>{"use strict";t.exports=function e(t){if("number"==typeof t)return t;if("string"==typeof t)return parseFloat(t);if(Array.isArray(t))return t.map(e);throw Error("The value should be a number, a parsable string or an array of those.")}},70688,(e,t,r)=>{"use strict";t.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},62338,(e,t,r)=>{"use strict";var n=e.r(41722),i=e.r(13941),a=e.r(40726),s={addRefinement:function(e,t,r){if(s.isRefined(e,t,r))return e;var i=""+r,a=e[t]?e[t].concat(i):[i],o={};return o[t]=a,n(o,e)},removeRefinement:function(e,t,r){if(void 0===r)return s.clearRefinement(e,function(e,r){return t===r});var n=""+r;return s.clearRefinement(e,function(e,r){return t===r&&n===e})},toggleRefinement:function(e,t,r){if(void 0===r)throw Error("toggleRefinement should be used with a value");return s.isRefined(e,t,r)?s.removeRefinement(e,t,r):s.addRefinement(e,t,r)},clearRefinement:function(e,t,r){if(void 0===t)return i(e)?{}:e;if("string"==typeof t)return a(e,[t]);if("function"==typeof t){var n=!1,s=Object.keys(e).reduce(function(i,a){var s=e[a]||[],o=s.filter(function(e){return!t(e,a,r)});return o.length!==s.length&&(n=!0),i[a]=o,i},{});return n?s:e}},isRefined:function(e,t,r){var n=!!e[t]&&e[t].length>0;return void 0!==r&&n?-1!==e[t].indexOf(""+r):n}};t.exports=s},76940,(e,t,r)=>{"use strict";var n=e.r(41722),i=e.r(76759),a=e.r(62231),s=e.r(32879),o=e.r(13941),c=e.r(40726),u=e.r(26247),l=e.r(70688),d=e.r(62338);function h(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(e,r){return h(t[r],e)}):e===t}function f(e){var t=e?f._parseNumbers(e):{};void 0===t.userToken||l(t.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is invali
1d. This can lead to wrong analytics.\n  - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var r=this;Object.keys(t).forEach(function(e){var n=-1!==f.PARAMETERS.indexOf(e),i=void 0!==t[e];!n&&i&&(r[e]=t[e])})}function m(e){var t=parseFloat(e);return isFinite(t)?t:null}f.PARAMETERS=Object.keys(new f),f._parseNumbers=function(e){if(e instanceof f)return e;var t={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach(function(r){var n=e[r];if("string"==typeof n){var i=parseFloat(n);isNaN(i)?t[r]=n:isFinite(i)?t[r]=i:t[r]=null}else"number"!=typeof n||isFinite(n)||(t[r]=null)}),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?m(e):"number"!=typeof e||isFinite(e)?e:null}):e})),e.numericRefinements){var r={};Object.keys(e.numericRefinements).forEach(function(t){var n=e.numericRefinements[t]||{};r[t]={},Object.keys(n).forEach(function(e){var i=n[e].map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?m(e):"number"!=typeof e||isFinite(e)?e:null}):"string"==typeof e?m(e):"number"!=typeof e||isFinite(e)?e:null});r[t][e]=i})}),t.numericRefinements=r}return s(e,t)},f.make=function(e){var t=new f(e);return(e.hierarchicalFacets||[]).forEach(function(e){if(e.rootPath){var r=t.getHierarchicalRefinement(e.name);r.length>0&&0!==r[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),0===(r=t.getHierarchicalRefinement(e.name)).length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}}),t},f.validate=function(e,t){var r=t||{};return e.tagFilters&&r.tagRefinements&&r.tagRefinements.length>0?Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&r.tagFilters?Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&r.numericRefinements&&o(r.numericRefinements)?Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):o(e.numericRefinements)&&r.numericFilters?Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},f.prototype={constructor:f,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:d.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:d.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:d.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:d.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return t.numericRefinements===this.numericRefinements&&t.facetsRefinements===this.facetsRefinements&&t.facetsExcludes===this.facetsExcludes&&t.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&t.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(t)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,r){var n=u(r);if(this.isNumericRefined(e,t,n))return this;var i=s({},this.numericRefinements);return i[e]=s({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(n)):i[e][t]=[n],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,r){return void 0!==r?this.isNumericRefined(e,t,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,i){return i===e&&n.op===t&&h(n.val,u(r))})}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(r,n){return n===e&&r.op===t})}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(t,r){return r===e})}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(void 0===e)return o(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof e)return c(this.numericRefinements,[e]);if("function"==typeof e){var t=!1,r=this.numericRefinements,n=Object.keys(r).reduce(function(n,i){var a=r[i],s={};return Object.keys(a=a||{}
vendor: 8,277 bytes, line 1
1).forEach(function(r){var n=a[r]||[],o=[];n.forEach(function(t){e({val:t,op:r},i,"numeric")||o.push(t)}),o.length!==n.length&&(t=!0),s[r]=o}),n[i]=s,n},{});return t?n:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:d.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:d.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return d.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:d.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter(function(t){return t!==e})}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter(function(t){return t!==e})}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter(function(t){return t.name!==e})}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:d.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return d.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:d.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return d.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:d.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.filter(function(t){return t!==e})};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:d.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:d.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:d.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),i={};return void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+r))?-1===t.indexOf(r)?i[e]=[]:i[e]=[t.slice(0,t.lastIndexOf(r))]:i[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:n(i,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var r={};return r[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:n(r,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:n(t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&d.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&d.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&d.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var r=this.getHierarchicalRefinement(e);return t?-1!==r.indexOf(t):r.length>0},isNumericRefined:function(e,t,r){if(void 0===r&&void 0===t)return!!this.numericRefinements[e];var n,a=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===r||!a)return a;var s=u(r),o=void 0!==(n=this.numericRefinements[e][t],i(n,function(e){return h(e,s)}));return a&&o},isTagRefined:function(e){return -1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=a(Object.keys(this.numericRefinements).filter(function(t){return Object.keys(e.numericRefinements[t]).length>0}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(t){return e.disjunctiveFacetsRefinements[t].length>0}).concat(t).concat(this.getRefinedHierarchicalFacets()).sort()},getRefinedHierarchicalFacets:function(){var e=this;return a(this.hierarchicalFacets.map(function(e){return e.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(t){return e.hierarchicalFacetsRefinements[t].length>0})).sort()},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(t){return -1===e.indexOf(t)})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},r=this;
1return Object.keys(this).forEach(function(n){var i=r[n];-1===e.indexOf(n)&&void 0!==i&&(t[n]=i)}),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var r={};return r[e]=t,this.setQueryParameters(r)},setQueryParameters:function(e){if(!e)return this;var t=f.validate(this,e);if(t)throw t;var r=this,n=f._parseNumbers(e),i=Object.keys(this).reduce(function(e,t){return e[t]=r[t],e},{}),a=Object.keys(n).reduce(function(e,t){var r=void 0!==e[t],i=void 0!==n[t];return r&&!i?c(e,[t]):(i&&(e[t]=n[t]),e)},i);return new this.constructor(a)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return i(this.hierarchicalFacets,function(t){return t.name===e})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(r).map(function(e){return e.trim()})},toString:function(){return JSON.stringify(this,null,2)}},t.exports=f},70915,(e,t,r)=>{"use strict";t.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},61065,(e,t,r)=>{"use strict";t.exports=function(e,t){if(!Array.isArray(e))return -1;for(var r=0;r<e.length;r++)if(t(e[r]))return r;return -1}},22212,(e,t,r)=>{"use strict";var n=e.r(76759);t.exports=function(e,t){var r=(t||[]).map(function(e){return e.split(":")});return e.reduce(function(e,t){var i=t.split(":"),a=n(r,function(e){return e[0]===i[0]});return i.length>1||!a?(e[0].push(i[0]),e[1].push(i[1])):(e[0].push(a[0]),e[1].push(a[1])),e},[[],[]])}},6626,(e,t,r)=>{"use strict";t.exports=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight(function(e,t){return Object.keys(Object(t)).forEach(function(r){var n="number"==typeof e[r]?e[r]:0,i=t[r];void 0!==i&&i>=n&&(void 0!==e[r]&&delete e[r],e[r]=i)}),e},{})}},44174,(e,t,r)=>{"use strict";t.exports=function(e,t,r){if(!Array.isArray(e))return[];Array.isArray(r)||(r=[]);var n=e.map(function(e,r){return{criteria:t.map(function(t){return e[t]}),index:r,value:e}});return n.sort(function(e,t){for(var n=-1;++n<e.criteria.length;){var i=function(e,t){if(e!==t){var r=void 0!==e,n=null===e,i=void 0!==t,a=null===t;if(!a&&e>t||n&&i||!r)return 1;if(!n&&e<t||a&&r||!i)return -1}return 0}(e.criteria[n],t.criteria[n]);if(i){if(n>=r.length)return i;if("desc"===r[n])return-i;return i}}return e.index-t.index}),n.map(function(e){return e.value})}},91223,(e,t,r)=>{"use strict";t.exports=function(e){return function(t,r){var n,u,l,d,h,f=e.hierarchicalFacets[r],m=e.hierarchicalFacetsRefinements[f.name]&&e.hierarchicalFacetsRefinements[f.name][0]||"",p=e._getHierarchicalFacetSeparator(f),g=e._getHierarchicalRootPath(f),v=e._getHierarchicalShowParentLevel(f),y=a(e._getHierarchicalFacetSortBy(f)),b=t.every(function(e){return e.exhaustive}),R=(n=y,u=p,l=g,d=v,h=m,function(e,t,r){var a=e;if(r>0){var f=0;for(a=e;f<r;)a=i(a&&Array.isArray(a.data)?a.data:[],function(e){return e.isRefined}),f++}if(a){var m=Object.keys(t.data).map(function(e){return[e,t.data[e]]}).filter(function(e){var t,r,n,i,s,o;return t=e[0],r=a.path||l,n=h,i=u,s=l,o=d,(!s||0===t.indexOf(s)&&s!==t)&&(!s&&-1===t.indexOf(i)||s&&t.split(i).length-s.split(i).length==1||-1===t.indexOf(i)&&-1===n.indexOf(i)||0===n.indexOf(t)||0===t.indexOf(r+i)&&(o||0===t.indexOf(n)))});a.data=s(m.map(function(e){var r,n,i,a,s,l,d=e[0];return r=e[1],n=d,i=u,a=c(h),s=t.exhaustive,{name:(l=n.split(i))[l.length-1].trim(),path:n,escapedValue:o(n),count:r,isRefined:a===n||0===a.indexOf(n+i),exhaustive:s,data:null}}),n[0],n[1])}return e}),x=t;return g&&(x=t.slice(g.split(p).length)),x.reduce(R,{name:e.hierarchicalFacets[r].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:b,data:null})}};var n=e.r(7300),i=e.r(76759),a=e.r(22212),s=e.r(44174),o=n.escapeFacetValue,c=n.unescapeFacetValue},85017,(e,t,r)=>{"use strict";var n=e.r(70915),i=e.r(41722),a=e.r(7300),s=e.r(76759),o=e.r(61065),c=e.r(22212),u=e.r(6626),l=e.r(44174),d=a.escapeFacetValue,h=a.unescapeFacetValue,f=e.r(91223);function m(e){var t={};return e.forEach(function(e,r){t[e]=r}),t}function p(e,t,r){t&&t[r]&&(e.stats=t[r])}function g(e,t,r){var a=t[0]||{};this._rawResults=t;var c=this;
1Object.keys(a).forEach(function(e){c[e]=a[e]});var l=i(r,{persistHierarchicalRootCount:!1});Object.keys(l).forEach(function(e){c[e]=l[e]}),this.processingTimeMS=t.reduce(function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS},0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map(function(){return[]}),this.facets=[];var d=e.getRefinedDisjunctiveFacets(),g=m(e.facets),v=m(e.disjunctiveFacets),y=1,b=a.facets||{};Object.keys(b).forEach(function(t){var r=b[t],n=(l=e.hierarchicalFacets,s(l,function(e){return(e.attributes||[]).indexOf(t)>-1}));if(n){var i=n.attributes.indexOf(t),u=o(e.hierarchicalFacets,function(e){return e.name===n.name});c.hierarchicalFacets[u][i]={attribute:t,data:r,exhaustive:a.exhaustiveFacetsCount}}else{var l,d,h=-1!==e.disjunctiveFacets.indexOf(t),f=-1!==e.facets.indexOf(t);h&&(d=v[t],c.disjunctiveFacets[d]={name:t,data:r,exhaustive:a.exhaustiveFacetsCount},p(c.disjunctiveFacets[d],a.facets_stats,t)),f&&(d=g[t],c.facets[d]={name:t,data:r,exhaustive:a.exhaustiveFacetsCount},p(c.facets[d],a.facets_stats,t))}}),this.hierarchicalFacets=n(this.hierarchicalFacets),d.forEach(function(r){var n=t[y],s=n&&n.facets?n.facets:{},l=e.getHierarchicalFacetByName(r);Object.keys(s).forEach(function(t){var r,d=s[t];if(l){r=o(e.hierarchicalFacets,function(e){return e.name===l.name});var f=o(c.hierarchicalFacets[r],function(e){return e.attribute===t});if(-1===f)return;c.hierarchicalFacets[r][f].data=c.persistHierarchicalRootCount?u(c.hierarchicalFacets[r][f].data,d):i(d,c.hierarchicalFacets[r][f].data)}else{r=v[t];var m=a.facets&&a.facets[t]||{};c.disjunctiveFacets[r]={name:t,data:u(m,d),exhaustive:n.exhaustiveFacetsCount},p(c.disjunctiveFacets[r],n.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach(function(n){!c.disjunctiveFacets[r].data[n]&&e.disjunctiveFacetsRefinements[t].indexOf(h(n))>-1&&(c.disjunctiveFacets[r].data[n]=0)})}}),y++}),e.getRefinedHierarchicalFacets().forEach(function(r){var n=e.getHierarchicalFacetByName(r),a=e._getHierarchicalFacetSeparator(n),s=e.getHierarchicalRefinement(r);0===s.length||s[0].split(a).length<2||t.slice(y).forEach(function(t){var r=t&&t.facets?t.facets:{};Object.keys(r).forEach(function(t){var u=r[t],l=o(e.hierarchicalFacets,function(e){return e.name===n.name}),d=o(c.hierarchicalFacets[l],function(e){return e.attribute===t});if(-1!==d){var h={};if(s.length>0&&!c.persistHierarchicalRootCount){var f=s[0].split(a)[0];h[f]=c.hierarchicalFacets[l][d].data[f]}c.hierarchicalFacets[l][d].data=i(h,u,c.hierarchicalFacets[l][d].data)}}),y++})}),Object.keys(e.facetsExcludes).forEach(function(t){var r=e.facetsExcludes[t],n=g[t];c.facets[n]={name:t,data:b[t],exhaustive:a.exhaustiveFacetsCount},r.forEach(function(e){c.facets[n]=c.facets[n]||{name:t},c.facets[n].data=c.facets[n].data||{},c.facets[n].data[e]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(f(e)),this.facets=n(this.facets),this.disjunctiveFacets=n(this.disjunctiveFacets),this._state=e}function v(e,t){var r=s(e,function(e){return e.name===t});return r&&r.stats}function y(e,t,r,n,i){var a=s(i,function(e){return e.name===r}),o=a&&a.data&&a.data[n]?a.data[n]:0;return{type:t,attributeName:r,name:n,count:o,exhaustive:a&&a.exhaustive||!1}}g.prototype.getFacetByName=function(e){function t(t){return t.name===e}return s(this.facets,t)||s(this.disjunctiveFacets,t)||s(this.hierarchicalFacets,t)},g.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],g.prototype.getFacetValues=function(e,t){var r,n=function(e,t){function r(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var n=s(e.facets,r);return n?Object.keys(n.data).map(function(r){var i=d(r);return{name:r,escapedValue:i,count:n.data[r],isRefined:e._state.isFacetRefined(t,i),isExcluded:e._state.isExcludeRefined(t,r)}}):[]}if(e._state.isDisjunctiveFacet(t)){var i=s(e.disjunctiveFacets,r);return i?Object.keys(i.data).map(function(r){var n=d(r);return{name:r,escapedValue:n,count:i.data[r],isRefined:e._state.isDisjunctiveFacetRefined(t,n)}}):[]}if(e._state.isHierarchicalFacet(t)){var a=s(e.hierarchicalFacets,r);if(!a)return a;var o=e._state.getHierarchicalFacetByName(t),c=e._state._getHierarchicalFacetSeparator(o),u=h(e._state.getHierarchicalRefinement(t)[0]||"");0===u.indexOf(o.rootPath)&&(u=u.replace(o.rootPath+c,""));var l=u.split(c);return l.unshift(t),function e(t,r,n){t.isRefined=t.name===(r[n]&&r[n].trim()),t.data&&t.data.forEach(function(t){e(t,r,n+1)})}(a,l,0),a}}(this,e);if(n){var a=i(t,{sortBy:g.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),o=this;return r=Array.isArray(n)?[e]:o._state.getHierarchicalFacetByName(n.name).attributes,function e(t,r,n,a){if(a=a||0,Array.isArray(r))return t(r,n[a]);if(!r.data||0===r.data.length)return r;var s=r.data.map(function(r){return e(t,r,n,a+1)});return i({data:t(s,n[a])},r)}(function(e,t){var r,n,i,s,u,d,h,f=o.renderingContent&&o.renderingContent.facetOrdering&&o.renderingContent.facetOrdering.values&&o.renderingContent.facetOrdering.values[t];if(a.facetOrdering&&f)return n=[],i=[],s=f.hide||[],u=(f.order||[]).reduce(function(e,t,r){return e[t]=r,e},{}),e.forEach(function(e){var t=e.path||e.name,r=s.indexOf(t)>-1;r||void 0===u[t]?r||i.push(e):n[u[t]]=e}),n=n.filter(function(e){return e}),"hidden"===(d=f.sortRemainingBy)?n:(r="alpha"===d?[["path","name"],["asc","asc"]]:[["count"],["desc"]],n.concat(l(i,r[0],r[1])));if(Array.isArray(a.sortBy)){var m=c(a.sortBy,g.DEFAULT_SORT),p=l(e,m[0],m[1]),v=f&&f.hide?f.hide:[];if(v.length>0){var y=[];return p.forEach(function(e){var t=e.path||e.name;-1===v.indexOf(t)&&y.push(e)}),y}return p}if("function"==typeof a.sortBy)return h=a.sortBy,e.sort(h);throw Error("options.sortBy is optional but if defined it must be either an array of str
1ing (predicates) or a sorting function")},n,r)}},g.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?v(this.facets,e):this._state.isDisjunctiveFacet(e)?v(this.disjunctiveFacets,e):void 0},g.prototype.getRefinements=function(){var e=this._state,t=this,r=[];return Object.keys(e.facetsRefinements).forEach(function(n){e.facetsRefinements[n].forEach(function(i){r.push(y(e,"facet",n,i,t.facets))})}),Object.keys(e.facetsExcludes).forEach(function(n){e.facetsExcludes[n].forEach(function(i){r.push(y(e,"exclude",n,i,t.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(n){e.disjunctiveFacetsRefinements[n].forEach(function(i){r.push(y(e,"disjunctive",n,i,t.disjunctiveFacets))})}),Object.keys(e.hierarchicalFacetsRefinements).forEach(function(n){e.hierarchicalFacetsRefinements[n].forEach(function(i){var a,o,c,u,l,d,h,f,m,p,g;r.push((a=e,o=n,c=i,u=t.hierarchicalFacets,l=a.getHierarchicalFacetByName(o),d=a._getHierarchicalFacetSeparator(l),h=c.split(d),f=s(u,function(e){return e.name===o}),p=(m=h.reduce(function(e,t){var r=e&&s(e.data,function(e){return e.name===t});return void 0!==r?r:e},f))&&m.count||0,g=m&&m.exhaustive||!1,{type:"hierarchical",attributeName:o,name:m&&m.path||"",count:p,exhaustive:g}))})}),Object.keys(e.numericRefinements).forEach(function(t){var n=e.numericRefinements[t];Object.keys(n).forEach(function(e){n[e].forEach(function(n){r.push({type:"numeric",attributeName:t,name:n,numericValue:n,operator:e})})})}),e.tagRefinements.forEach(function(e){r.push({type:"tag",attributeName:"_tags",name:e})}),r},t.exports=g},85100,(e,t,r)=>{t.exports=function(e){return e.reduce(function(e,t){return e.concat(t)},[])}},69701,(e,t,r)=>{"use strict";var n=e.r(76759),i=e.r(85100);t.exports=function(e,t){var r,a,s={};return t.forEach(function(t){t.forEach(function(t,r){e.includes(t.objectID)||(s[t.objectID]?s[t.objectID]={indexSum:s[t.objectID].indexSum+r,count:s[t.objectID].count+1}:s[t.objectID]={indexSum:r,count:1})})}),(r=t.length,a=[],Object.keys(s).forEach(function(e){s[e].count<2&&(s[e].indexSum+=100),a.push({objectID:e,avgOfIndices:s[e].indexSum/r})}),a.sort(function(e,t){return e.avgOfIndices>t.avgOfIndices?1:-1})).reduce(function(e,r){var a=n(i(t),function(e){return e.objectID===r.objectID});return a?e.concat(a):e},[])}},99940,(e,t,r)=>{"use strict";var n=e.r(37609),i=e.r(80892),a=e.r(7300).escapeFacetValue,s=e.r(24740),o=e.r(32879),c=e.r(13941),u=e.r(40726),l=e.r(65903),d=e.r(3849),h=e.r(65326),f=e.r(76940),m=e.r(85017),p=e.r(69701),g=e.r(37940);function v(e,t,r,n){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+g+")"),this.setClient(e);var i=r||{};i.index=t,this.state=f.make(i),this.recommendState=new l({params:i.recommendState}),this.lastResults=null,this.lastRecommendResults=null,this._queryId=0,this._recommendQueryId=0,this._lastQueryIdReceived=-1,this._lastRecommendQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0,this._currentNbRecommendQueries=0,this._searchResultsOptions=n,this._recommendCache={}}function y(e){if(e<0)throw Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function b(){return this.state.page}s(v,n),v.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},v.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},v.prototype.searchWithComposition=function(){return this._runComposition({onlyWithDerivedHelpers:!0}),this},v.prototype.recommend=function(){return this._recommend(),this},v.prototype.getQuery=function(){var e=this.state;return h._getHitsSearchParams(e)},v.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,n=h._getQueries(r.index,r),i=this;return(this._currentNbQueries++,this.emit("searchOnce",{state:r}),t)?void this.client.search(n).then(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(null,new m(r,e.results),r)}).catch(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(e,null,r)}):this.client.search(n).then(function(e){return i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),{content:new m(r,e.results),state:r,_originalResponse:e}},function(e){throw i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),e})},v.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,r=this.derivedHelpers[0];if(!r)return Promise.resolve([]);var n=r.getModifiedState(t),i=o({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:u(h._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),a="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!=typeof this.client.initIndex)throw Error(a);var s=this.client.initIndex(n.index);if("function"!=typeof s.findAnswers)throw Error(a);return s.findAnswers(n.query,e.queryLanguages,i)},v.prototype.searchForFacetValues=function(e,t,r,n){var i,s="function"==typeof this.client.searchForFacetValues&&"function"!=typeof this.client.searchForFacets,o="function"==typeof this.client.initIndex;if(!s&&!o&&"function"!=typeof this.client.search)throw Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var c=this.state.setQueryParameters(n||{}),u=c.isDisjunctiveFacet(e),l=h.getSearchForFacetQuery(e,t,r,c);this._currentNbQueries++;var d=this;s?i=this.client.searchForFacetValues([{indexName:c.index,params:l}]):o?i=this.client.initIndex(c.index).searchForFacetValues(l):(delete l.facetName,i=this.client.search([{type:"facet",facet:e,indexName:c.index,params:l}]).then(function(e){return e.results[0]}
1)),this.emit("searchForFacetValues",{state:c,facet:e,query:t});var f=this.lastResults&&this.lastResults.index===c.index&&this.lastResults.renderingContent&&this.lastResults.renderingContent.facetOrdering&&this.lastResults.renderingContent.facetOrdering.values&&this.lastResults.renderingContent.facetOrdering.values[e]&&this.lastResults.renderingContent.facetOrdering.values[e].hide||[];return i.then(function(t){return d._currentNbQueries--,0===d._currentNbQueries&&d.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits=t.facetHits.reduce(function(t,r){return f.indexOf(r.value)>-1||(r.escapedValue=a(r.value),r.isRefined=u?c.isDisjunctiveFacetRefined(e,r.escapedValue):c.isFacetRefined(e,r.escapedValue),t.push(r)),t},[]),t},function(e){throw d._currentNbQueries--,0===d._currentNbQueries&&d.emit("searchQueueEmpty"),e})},v.prototype.searchForCompositionFacetValues=function(e,t,r,n){if("function"!=typeof this.client.searchForFacetValues)throw Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues");var i,s=this.state.setQueryParameters(n||{}),o=s.isDisjunctiveFacet(e);this._currentNbQueries++;var c=this;return i=this.client.searchForFacetValues({compositionID:s.index,facetName:e,searchForFacetValuesRequest:{params:{query:t,maxFacetHits:r,searchQuery:h._getCompositionHitsSearchParams(s)}}}),this.emit("searchForFacetValues",{state:s,facet:e,query:t}),i.then(function(t){return c._currentNbQueries--,0===c._currentNbQueries&&c.emit("searchQueueEmpty"),(t=t.results[0]).facetHits.forEach(function(t){t.escapedValue=a(t.value),t.isRefined=o?s.isDisjunctiveFacetRefined(e,t.escapedValue):s.isFacetRefined(e,t.escapedValue)}),t},function(e){throw c._currentNbQueries--,0===c._currentNbQueries&&c.emit("searchQueueEmpty"),e})},v.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},v.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},v.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},v.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},v.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,r),isPageReset:!0}),this},v.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},v.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},v.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},v.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},v.prototype.addFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.addFrequentlyBoughtTogether(e)}),this},v.prototype.addRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.addRelatedProducts(e)}),this},v.prototype.addTrendingItems=function(e){return this._recommendChange({state:this.recommendState.addTrendingItems(e)}),this},v.prototype.addTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.addTrendingFacets(e)}),this},v.prototype.addLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.addLookingSimilar(e)}),this},v.prototype.removeNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,r),isPageReset:!0}),this},v.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},v.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},v.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},v.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},v.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},v.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},v.prototype.removeFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.removeParam
vendor: 4,059 bytes, line 1
1s(e)}),this},v.prototype.removeRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeTrendingItems=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},v.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},v.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},v.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},v.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},v.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},v.prototype.setCurrentPage=y,v.prototype.setPage=y,v.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},v.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},v.prototype.setState=function(e){return this._change({state:f.make(e),isPageReset:!1}),this},v.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new f(e),this},v.prototype.hasRefinements=function(e){return!!c(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},v.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},v.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},v.prototype.hasTag=function(e){return this.state.isTagRefined(e)},v.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},v.prototype.getIndex=function(){return this.state.index},v.prototype.getCurrentPage=b,v.prototype.getPage=b,v.prototype.getTags=function(){return this.state.tagRefinements},v.prototype.getRefinements=function(e){var t=[];this.state.isConjunctiveFacet(e)?(this.state.getConjunctiveRefinements(e).forEach(function(e){t.push({value:e,type:"conjunctive"})}),this.state.getExcludeRefinements(e).forEach(function(e){t.push({value:e,type:"exclude"})})):this.state.isDisjunctiveFacet(e)&&this.state.getDisjunctiveRefinements(e).forEach(function(e){t.push({value:e,type:"disjunctive"})});var r=this.state.getNumericRefinements(e);return Object.keys(r).forEach(function(e){var n=r[e];t.push({value:n,operator:e,type:"numeric"})}),t},v.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},v.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},v.prototype._search=function(e){var t=this.state,r=[],n=[];e.onlyWithDerivedHelpers||(n=h._getQueries(t.index,t),r.push({state:t,queriesCount:n.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map(function(e){var n=e.getModifiedState(t),i=n.index?h._getQueries(n.index,n):[];return r.push({state:n,queriesCount:i.length,helper:e}),e.emit("search",{state:n,results:e.lastResults}),i}),a=Array.prototype.concat.apply(n,i),s=this._queryId++;if(this._currentNbQueries++,!a.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,r,s));
1try{this.client.search(a).then(this._dispatchAlgoliaResponse.bind(this,r,s)).catch(this._dispatchAlgoliaError.bind(this,s))}catch(e){this.emit("error",{error:e})}},v.prototype._runComposition=function(){var e=this.state,t=[],r=this.derivedHelpers.map(function(r){var n=r.getModifiedState(e),i=h._getCompositionQueries(n);return t.push({state:n,helper:r}),r.emit("search",{state:n,results:r.lastResults}),i}),n=Array.prototype.concat.apply([],r),i=this._queryId++;if(this._currentNbQueries++,!n.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,t,i));if(n.length>1)throw Error("Only one query is allowed when using a composition.");var a=n[0];try{this.client.search(a).then(this._dispatchAlgoliaResponse.bind(this,t,i)).catch(this._dispatchAlgoliaError.bind(this,i))}catch(e){this.emit("error",{error:e})}},v.prototype._recommend=function(){var e=this.state,t=this.recommendState,r=this.getIndex(),n=[{state:t,index:r,helper:this}],i=t.params.map(function(e){return e.$$id});this.emit("fetch",{recommend:{state:t,results:this.lastRecommendResults}});var a=this._recommendCache,s=this.derivedHelpers.map(function(t){var r=t.getModifiedState(e).index;if(!r)return[];var s=t.getModifiedRecommendState(new l);return n.push({state:s,index:r,helper:t}),i=Array.prototype.concat.apply(i,s.params.map(function(e){return e.$$id})),t.emit("fetch",{recommend:{state:s,results:t.lastRecommendResults}}),s._buildQueries(r,a)}),o=Array.prototype.concat.apply(this.recommendState._buildQueries(r,a),s);if(0!==o.length){if(o.length>0&&void 0===this.client.getRecommendations)return void console.warn("Please update algoliasearch/lite to the latest version in order to use recommend widgets.");var c=this._recommendQueryId++;this._currentNbRecommendQueries++;try{this.client.getRecommendations(o).then(this._dispatchRecommendResponse.bind(this,c,n,i)).catch(this._dispatchRecommendError.bind(this,c))}catch(e){this.emit("error",{error:e})}}},v.prototype._dispatchAlgoliaResponse=function(e,t,r){var n=this;if(!(t<this._lastQueryIdReceived)){this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,0===this._currentNbQueries&&this.emit("searchQueueEmpty");var i=r.results.slice(),a=Object.keys(r).reduce(function(e,t){return"results"!==t&&(e[t]=r[t]),e},{});Object.keys(a).length<=0&&(a=void 0),e.forEach(function(e){var t=e.state,r=e.queriesCount,s=e.helper,o=void 0!==r?i.splice(0,r):i;if(!t.index)return void s.emit("result",{results:null,state:t});if(o.length>0&&o[0].feedID){var c=o.map(function(e){var r=new m(t,[e],n._searchResultsOptions);return void 0!==a&&(r._rawContent=a),r});s.lastResults=new m(t,[o[0]],n._searchResultsOptions),s.lastResults.feeds=c,void 0!==a&&(s.lastResults._rawContent=a)}else s.lastResults=new m(t,o,n._searchResultsOptions),void 0!==a&&(s.lastResults._rawContent=a);s.emit("result",{results:s.lastResults,state:t})})}},v.prototype._dispatchRecommendResponse=function(e,t,r,n){if(!(e<this._lastRecommendQueryIdReceived)){this._currentNbRecommendQueries-=e-this._lastRecommendQueryIdReceived,this._lastRecommendQueryIdReceived=e,0===this._currentNbRecommendQueries&&this.emit("recommendQueueEmpty");var i=this._recommendCache,a={};r.filter(function(e){return void 0===i[e]}).forEach(function(e,t){a[e]||(a[e]=[]),a[e].push(t)}),Object.keys(a).forEach(function(e){var t=a[e],s=n.results[t[0]];if(1===t.length){i[e]=s;return}i[e]=Object.assign({},s,{hits:p(r,t.map(function(e){return n.results[e].hits}))})});var s={};r.forEach(function(e){s[e]=i[e]}),t.forEach(function(e){var t=e.state,r=e.helper;e.index?(r.lastRecommendResults=new d(t,s),r.emit("recommend:result",{recommend:{results:r.lastRecommendResults,state:t}})):r.emit("recommend:result",{results:null,state:t})})}},v.prototype._dispatchAlgoliaError=function(e,t){e<this._lastQueryIdReceived||(this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbQueries&&this.emit("searchQueueEmpty"))},v.prototype._dispatchRecommendError=function(e,t){e<this._lastRecommendQueryIdReceived||(this._currentNbRecommendQueries-=e-this._lastRecommendQueryId
1Received,this._lastRecommendQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbRecommendQueries&&this.emit("recommendQueueEmpty"))},v.prototype.containsRefinement=function(e,t,r,n){return e||0!==t.length||0!==r.length||0!==n.length},v.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&this.state.disjunctiveRefinements[e].length>0},v.prototype._change=function(e){var t=e.state,r=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:r}))},v.prototype._recommendChange=function(e){var t=e.state;t!==this.recommendState&&(this.recommendState=t,this.emit("recommend:change",{search:{results:this.lastResults,state:this.state},recommend:{results:this.lastRecommendResults,state:this.recommendState}}))},v.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},v.prototype.setClient=function(e){return this.client===e||("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+g+")"),this.client=e),this},v.prototype.getClient=function(){return this.client},v.prototype.derive=function(e,t){var r=new i(this,e,t);return this.derivedHelpers.push(r),r},v.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},v.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},t.exports=v},49692,(e,t,r)=>{"use strict";var n=e.r(99940),i=e.r(65903),a=e.r(3849),s=e.r(76940),o=e.r(85017);function c(e,t,r,i){return new n(e,t,r,i)}c.version=e.r(37940),c.AlgoliaSearchHelper=n,c.SearchParameters=s,c.RecommendParameters=i,c.SearchResults=o,c.RecommendResults=a,t.exports=c},60121,(e,t,r)=>{"use strict";var n=e.r(91788),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,s=n.useEffect,o=n.useLayoutEffect,c=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var l="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,l=n[1];return o(function(){i.value=r,i.getSnapshot=t,u(i)&&l({inst:i})},[e,r,t]),s(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(r),r};r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},90979,(e,t,r)=>{"use strict";t.exports=e.r(60121)},80102,(e,t,r)=>{e.e,t.exports=function(){"use strict";function e(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 t(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?e(Object(n),!0).forEach(function(e){var r;r=n[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function r(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function n(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)){var r=[],n=!0,i=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return r}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance")}()}function a(){var e="u">typeof globalThis?globalThis:void 0;return e&&e.scheduler&&e.scheduler.yield?e.scheduler.yield().catch(function(e){return console.error("Failed to yield to main: ",e),new Promise(function(e){return setTimeout(e,0)})}):new Promise(function(e){return setTimeout(e,0)})}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(r,n){var i=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 s=n(),o=i&&i.miss||function(){return Promise.resolve()};return s.then(function(e){return o(e)}).then(function(){return s})},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 o(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:{}}}}function c(e){var t=0;return e(function r(){return t++,new Promise(function(n){setTimeout(function(){n(e(r))},Math.min(100*t,1e3))})})}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e,t){return Promise.resolve()};return Object.assign(e,{wait:function(r){return u(e.then(function(e){return Promise.all([t(e,r),e])}).then(function(e){return e[1]}))}})}function l(e,t){return t&&Object.keys(t).forEach(function(r){e[r]=t[r](e)}),e}function d(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0;return e.replace(/%s/g,function(){return encodeURIComponent(r[i++])})}var h={WithinQueryParameters:0,WithinHeaders:1};function f(e,t){var r=e||{},n=r.data||{};return Object.keys(r).forEach(function(e){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(e)&&(n[e]=r[e])}),{data:Object.entries(n).length>0?n:void 0,timeout:r.timeout||t,headers:r.headers||{},queryParameters:r.queryParameters||{},cacheable:r.cacheable}}var m={Read:1,Write:2,Any:3};function p(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;
1return t(t({},e),{},{status:r,lastUpdate:Date.now()})}function g(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 v="DELETE",y="POST";function b(e,r,n,a){var s,o,c,u=[],l=function(e,r){if("GET"!==e.method&&(void 0!==e.data||void 0!==r.data))return JSON.stringify(Array.isArray(e.data)?e.data:t(t({},e.data),r.data))}(n,a),d=(s=t(t({},e.headers),a.headers),o={},Object.keys(s).forEach(function(e){var t=s[e];o[e.toLowerCase()]=t}),o),h=n.method,f="GET"!==n.method?{}:t(t({},n.data),a.data),m=t(t(t({"x-algolia-agent":e.userAgent.value},e.queryParameters),f),a.queryParameters),v=0,y=function t(r,i){var s,o,c,f,g=r.pop();if(void 0===g)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support .",transporterStackTrace:S(u)};var y={data:l,headers:d,method:h,url:(s=g,o=n.path,c=x(m),f="".concat(s.protocol,"://").concat(s.url,"/").concat("/"===o.charAt(0)?o.substr(1):o),c.length&&(f+="?".concat(c)),f),connectTimeout:i(v,e.timeouts.connect),responseTimeout:i(v,a.timeout)},b=function(e){var t={request:y,response:e,host:g,triesLeft:r.length};return u.push(t),t},R={onSuccess:function(e){try{return JSON.parse(e.content)}catch(t){throw{name:"DeserializationError",message:t.message,response:e}}},onRetry:function(n){var a=b(n);return n.isTimedOut&&v++,Promise.all([e.logger.info("Retryable failure",j(a)),e.hostsCache.set(g,p(g,n.isTimedOut?3:2))]).then(function(){return t(r,i)})},onFail:function(e){throw b(e),function(e,t){var r=e.content,n=e.status,i=r;try{i=JSON.parse(r).message}catch(e){}return{name:"ApiError",message:i,status:n,transporterStackTrace:t}}(e,S(u))}};return e.requester.send(y).then(function(e){var t,r,n;return(t=e.status,e.isTimedOut||(r=e.isTimedOut,n=e.status,!r&&0==~~n)||2!=~~(t/100)&&4!=~~(t/100))?R.onRetry(e):2==~~(e.status/100)?R.onSuccess(e):R.onFail(e)})};return(c=e.hostsCache,Promise.all(r.map(function(e){return c.get(e,function(){return Promise.resolve(p(e))})})).then(function(e){var t=e.filter(function(e){return 1===e.status||Date.now()-e.lastUpdate>12e4}),n=e.filter(function(e){return 3===e.status&&Date.now()-e.lastUpdate<=12e4}),a=[].concat(i(t),i(n));return{getTimeout:function(e,t){return(0===n.length&&0===e?1:n.length+3+e)*t},statelessHosts:a.length>0?a.map(function(e){return g(e)}):r}})).then(function(e){return y(i(e.statelessHosts).reverse(),e.getTimeout)})}function R(e){var t=e.hostsCache,r=e.logger,i=e.requester,a=e.requestsCache,s=e.responsesCache,o=e.timeouts,c=e.userAgent,u=e.hosts,l=e.queryParameters,d={hostsCache:t,logger:r,requester:i,requestsCache:a,responsesCache:s,timeouts:o,userAgent:c,headers:e.headers,queryParameters:l,hosts:u.map(function(e){return g(e)}),read:function(e,t){var r=f(t,d.timeouts.read),i=function(){return b(d,d.hosts.filter(function(e){return 0!=(e.accept&m.Read)}),e,r)};if(!0!==(void 0!==r.cacheable?r.cacheable:e.cacheable))return i();var a={request:e,mappedRequestOptions:r,transporter:{queryParameters:d.queryParameters,headers:d.headers}};return d.responsesCache.get(a,function(){return d.requestsCache.get(a,function(){return d.requestsCache.set(a,i()).then(function(e){return Promise.all([d.requestsCache.delete(a),e])},function(e){return Promise.all([d.requestsCache.delete(a),Promise.reject(e)])}).then(function(e){var t=n(e,2);return t[0],t[1]})})},{miss:function(e){return d.responsesCache.set(a,e)}})},write:function(e,t){return b(d,d.hosts.filter(function(e){return 0!=(e.accept&m.Write)}),e,f(t,d.timeouts.write))}};return d}function x(e){return Object.keys(e).map(function(t){var r;return d("%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]))}).join("&")}function S(e){return e.map(function(e){return j(e)})}function j(e){var r=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return t(t({},e),{},{request:t(t({},e.request),{},{headers:t(t({},e.request.headers),r)})})}var w=function(e){return function(t,r){return e.transporter.write({method:y,path:"2/abtests",data:t},r)}},P=function(e){return function(t,r){return e.transporter.write({method:v,path:d("2/abtests/%s",t)},r)}},_=function(e){return function(t,r){return e.transporter.read({method:"GET",path:d("2/abtests/%s",t)},r)}},F=function(e){return function(t){return e.transporter.read({method:"GET",path:"2/abtests"},t)}},I=function(e){return function(t,r){return e.transporter.write({method:y,path:d("2/abtests/%s/stop",t)},r)}},T=function(e){return function(t){return e.transporter.read({method:"GET",path:"1/strategies/personalization"},t)}},E=function(e){return function(t,r){return e.transporter.write({method:y,path:"1/strategies/personalization",data:t},r)}};function O(e){return function t(r){return e.request(r).then(function(n){if(void 0!==e.batch&&e.batch(n.hits),!e.shouldStop(n))return n.cursor?t({cursor:n.cursor}):t({page:(r.page||0)+1})})}({})}var C=function(e){return function(n,i){var a=i||{},s=a.queryParameters,o=r(a,["queryParameters"]),l=t({acl:n},void 0!==s?{queryParameters:s}:{});return u(e.transporter.write({method:y,path:"1/keys",data:l},o),function(t,r){return c(function(n){return W(e)(t.key,r).catch(function(e){if(404!==e.status)throw e;return n()})})})}},N=function(e){return function(t,r,n){var i=f(n);return i.queryParameters["X-Algolia-User-ID"]=t,e.transporter.write({method:y,path:"1/clusters/mapping",data:{cluster:r}},i)}},k=function(e){return function(t,r,n){return e.transporter.write({method:y,path:"1/clusters/mapping/batch",data:{users:t,cluster:r}},n)}},A=function(e){return function(t,r){return u(e.transporter.write({method:y,path:d("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!0,requests:{action:"addEntry",body:[]}}},r),function(t,r){return em(e)(t.taskID,r)})}},D=function(e){return function(t,r,n){return u(e.transporter.write({method:y,path:d("1/indexes/%s/operation",t),data:{operation:"copy",destination:r}},n),function(r,n){return Y(e)(t,{methods:{waitTask:e0}}).waitTask(r.taskID,n)})}},H=function(e){return function(r,n,i){return D(e)(r,n,t(t({},i),{},{scope:[e2.Rules]}))}},$=function(e){return function(r,n,i){return D(e)(r,n,t(t({},i),{},{scope:[e2.Settings]}))}},L=function(e){return function(r,n,i){return D(e)(r,n,t(t({},i),{},{scope:[e2.Synonyms]}))}},q=function(e){return function(t,r){return"GET"===t.method?e.transporter.read(t,r):e.transporter.write(t,r)}},U=function(e){return function(t,r){return u(e.transporter.write({method:v,path:d("1/keys/%s",t)},r),function(r,n){return c(function(r){return W(e)(t,n).then(r).catch(function(e){if(404!==e.status)throw e})})})}},Q=function(e){return function(t,r,n){var i=r.map(function(e){return{action:"deleteEntry",body:{objectID:e}}});return u(e.transporter.write({method:y,path:d("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!1,requests:i}},n),function(t,r){return em(e)(t.taskID,r)})}},W=function(e){return function(t,r){return e.transporter.read({method:"GET",path:d("1/keys/%s",t)},r)}},M=function(e){return function(t,r){return e.transporter.read({method:"GET",path:d("1/task/%s",t.toString())},r)}},B=function(e){return function(t){return e.transporter.read({method:"GET",path:"/1/dictionaries/*/settings"},t)}},V=function(e){return function(t){return e.transporter.read({method:"GET",path:"1/logs"},t)}},G=function(e){return function(t){return e.transporter.read({method:"GET",path:"1/clusters/mapping/top"},t)}},z=function(e){return function(t,r){return e.transporter.read({method:"GET",path:d("1/clusters/mapping/%s",t)},r)}},J=function(e){return function(t){var n=t||{},i=n.retrieveMappings,a=r(n,["retrieveMappings"]);return!0===i&&(a.getClusters=!0),e.transporter.read({method:"GET",path:"1/clusters/mapping/pending"},a)}},Y=function(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l({transporter:e.transporter,appId:e.appId,indexName:t},r.methods)}},K=function(e){return function(t){return e.transporter.read({method:"GET",path:"1/keys"},t)}},X=function(e){return function(t){return e.transporter.read({method:"GET",path:"1/clusters"},t)}},Z=function(e){return function(t){return e.transporter.read({method:"GET",path:"1/indexes"},t)}},ee=function(e){return function(t){return e.transporter.read({method:"GET",path:"1/clusters/mapping"},t)}},et=function(e){return function(t,r,n){return u(e.transporter.write({method:y,path:d("1/indexes/%s/operation",t),data:{operation:"move",destination:r}},n),function(r,n){return Y(e)(t,{methods:{waitTask:e0}}).waitTask(r.taskID,n)})}},er=function(e){return function(t,r){return u(e.transporter.write({method:y,path:"1/indexes/*/batch",data:{requests:t}},r),function(t,r){return Promise.all(Object.keys(t.taskID).map(function(n){return Y(e)(n,{methods:{waitTask:e0}}).waitTask(t.taskID[n],r)}))})}},en=function(e){return function(t,r){return e.transporter.read({method:y,path:"1/indexes/*/objects",data:{requests:t}},r)}},ei=function(e){return function(r,n){var i=r.map(function(e){return t(t
1({},e),{},{params:x(e.params||{})})});return e.transporter.read({method:y,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},n)}},ea=function(e){return function(n,i){return Promise.all(n.map(function(n){var a=n.params,s=a.facetName,o=a.facetQuery,c=r(a,["facetName","facetQuery"]);return Y(e)(n.indexName,{methods:{searchForFacetValues:eY}}).searchForFacetValues(s,o,t(t({},i),c))}))}},es=function(e){return function(t,r){var n=f(r);return n.queryParameters["X-Algolia-User-ID"]=t,e.transporter.write({method:v,path:"1/clusters/mapping"},n)}},eo=function(e){return function(t,r,n){var i=r.map(function(e){return{action:"addEntry",body:e}});return u(e.transporter.write({method:y,path:d("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!0,requests:i}},n),function(t,r){return em(e)(t.taskID,r)})}},ec=function(e){return function(t,r){return u(e.transporter.write({method:y,path:d("1/keys/%s/restore",t)},r),function(r,n){return c(function(r){return W(e)(t,n).catch(function(e){if(404!==e.status)throw e;return r()})})})}},eu=function(e){return function(t,r,n){var i=r.map(function(e){return{action:"addEntry",body:e}});return u(e.transporter.write({method:y,path:d("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!1,requests:i}},n),function(t,r){return em(e)(t.taskID,r)})}},el=function(e){return function(t,r,n){return e.transporter.read({method:y,path:d("/1/dictionaries/%s/search",t),data:{query:r},cacheable:!0},n)}},ed=function(e){return function(t,r){return e.transporter.read({method:y,path:"1/clusters/mapping/search",data:{query:t}},r)}},eh=function(e){return function(t,r){return u(e.transporter.write({method:"PUT",path:"/1/dictionaries/*/settings",data:t},r),function(t,r){return em(e)(t.taskID,r)})}},ef=function(e){return function(t,n){var i=Object.assign({},n),a=n||{},s=a.queryParameters,o=r(a,["queryParameters"]),l=["acl","indexes","referers","restrictSources","queryParameters","description","maxQueriesPerIPPerHour","maxHitsPerQuery"];return u(e.transporter.write({method:"PUT",path:d("1/keys/%s",t),data:s?{queryParameters:s}:{}},o),function(r,n){return c(function(r){return W(e)(t,n).then(function(e){return Object.keys(i).filter(function(e){return -1!==l.indexOf(e)}).every(function(t){if(Array.isArray(e[t])&&Array.isArray(i[t])){var r=e[t];return r.length===i[t].length&&r.every(function(e,r){return e===i[t][r]})}return e[t]===i[t]})?Promise.resolve():r()})})})}},em=function(e){return function(t,r){return c(function(n){return M(e)(t,r).then(function(e){return"published"!==e.status?n():void 0})})}},ep=function(e){return function(t,r){return u(e.transporter.write({method:y,path:d("1/indexes/%s/batch",e.indexName),data:{requests:t}},r),function(t,r){return e0(e)(t.taskID,r)})}},eg=function(e){return function(r){return O(t(t({shouldStop:function(e){return void 0===e.cursor}},r),{},{request:function(t){return e.transporter.read({method:y,path:d("1/indexes/%s/browse",e.indexName),data:t},r)}}))}},ev=function(e){return function(r){var n=t({hitsPerPage:1e3},r);return O(t(t({shouldStop:function(e){return e.hits.length<n.hitsPerPage}},n),{},{request:function(r){return eK(e)("",t(t({},n),r)).then(function(e){return t(t({},e),{},{hits:e.hits.map(function(e){return delete e._highlightResult,e})})})}}))}},ey=function(e){return function(r){var n=t({hitsPerPage:1e3},r);return O(t(t({shouldStop:function(e){return e.hits.length<n.hitsPerPage}},n),{},{request:function(r){return eX(e)("",t(t({},n),r)).then(function(e){return t(t({},e),{},{hits:e.hits.map(function(e){return delete e._highlightResult,e})})})}}))}},eb=function(e){return function(t,n,i){var a=i||{},s=a.batchSize,o=r(a,["batchSize"]),c={taskIDs:[],objectIDs:[]};return u(function r(){var i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,u=[];for(i=a;i<t.length&&(u.push(t[i]),u.length!==(s||1e3));i++);return 0===u.length?Promise.resolve(c):ep(e)(u.map(function(e){return{action:n,body:e}}),o).then(function(e){return c.objectIDs=c.objectIDs.concat(e.objectIDs),c.taskIDs.push(e.taskID),r(++i)})}(),function(t,r){return Promise.all(t.taskIDs.map(function(t){return e0(e)(t,r)}))})}},eR=function(e){return function(t){return u(e.transporter.write({method:y,path:d("1/indexes/%s/clear",e.indexName)},t),function(t,r){return e0(e)(t.taskID,r)})}},ex=function(e){return function(t){var n=t||{},i=n.forwardToReplicas,a=f(r(n,["forwardToReplicas"]));return i&&(a.queryParameters.forwardToReplicas=1),u(e.transporter.write({method:y,path:d("1/indexes/%s/rules/clear",e.indexName)},a),function(t,r){return e0(e)(t.taskID,r)})}},eS=function(e){return function(t){var n=t||{},i=n.forwardToReplicas,a=f(r(n,["forwardToReplicas"]));return i&&(a.queryParameters.forwardToReplicas=1),u(e.transporter.write({method:y,path:d("1/indexes/%s/synonyms/clear",e.indexName)},a),function(t,r){return e0(e)(t.taskID,r)})}},ej=function(e){return function(t,r){return u(e.transporter.write({method:y,path:d("1/indexes/%s/deleteByQuery",e.indexName),data:t},r),function(t,r){return e0(e)(t.taskID,r)})}},ew=function(e){return function(t){return u(e.transporter.write({method:v,path:d("1/indexes/%s",e.indexName)},t),function(t,r){return e0(e)(t.taskID,r)})}},eP=function(e){return function(t,r){return u(e_(e)([t],r).then(function(e){return{taskID:e.taskIDs[0]}}),function(t,r){return e0(e)(t.taskID,r)})}},e_=function(e){return function(t,r){var n=t.map(function(e){return{objectID:e}});return eb(e)(n,e1.DeleteObject,r)}},eF=function(e){return function(t,n){var i=n||{},a=i.forwardToReplicas,s=f(r(i,["forwardToReplicas"]));return a&&(s.queryParameters.forwardToReplicas=1),u(e.transporter.write({method:v,path:d("1/indexes/%s/rules/%s",e.indexName,t)},s),function(t,r){return e0(e)(t.taskID,r)})}},eI=function(e){return function(t,n){var i=n||{},a=i.forwardToReplicas,s=f(r(i,["forwardToReplicas"]));return a&&(s.queryParameters.forwardToReplicas=1),u(e.transporter.write({method:v,path:d("1/indexes/%s/synonyms/%s",e.indexName,t)},s),function(t,r){return e0(e)(t.taskID,r)})}},eT=function(e){return function(t){return eD(e)(t).then(function(){return!0}).catch(function(e){if(404!==e.status)throw e;return!1})}},eE=function(e){return function(t,r,n){return e.transporter.read({method:y,path:d("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:r},cacheable:!0},n)}},eO=function(e){return function(i,a){var s=a||{},o=s.query,c=s.paginate,u=r(s,["query","paginate"]),l=0;
1return function r(){return eJ(e)(o||"",t(t({},u),{},{page:l})).then(function(e){for(var t=0,a=Object.entries(e.hits);t<a.length;t++){var s=n(a[t],2),o=s[0],u=s[1];if(i(u))return{object:u,position:parseInt(o,10),page:l}}if(l++,!1===c||l>=e.nbPages)throw{name:"ObjectNotFoundError",message:"Object not found."};return r()})}()}},eC=function(e){return function(t,r){return e.transporter.read({method:"GET",path:d("1/indexes/%s/%s",e.indexName,t)},r)}},eN=function(){return function(e,t){for(var r=0,i=Object.entries(e.hits);r<i.length;r++){var a=n(i[r],2),s=a[0];if(a[1].objectID===t)return parseInt(s,10)}return -1}},ek=function(e){return function(n,i){var a=i||{},s=a.attributesToRetrieve,o=r(a,["attributesToRetrieve"]),c=n.map(function(r){return t({indexName:e.indexName,objectID:r},s?{attributesToRetrieve:s}:{})});return e.transporter.read({method:y,path:"1/indexes/*/objects",data:{requests:c}},o)}},eA=function(e){return function(t,r){return e.transporter.read({method:"GET",path:d("1/indexes/%s/rules/%s",e.indexName,t)},r)}},eD=function(e){return function(t){return e.transporter.read({method:"GET",path:d("1/indexes/%s/settings",e.indexName),data:{getVersion:2}},t)}},eH=function(e){return function(t,r){return e.transporter.read({method:"GET",path:d("1/indexes/%s/synonyms/%s",e.indexName,t)},r)}},e$=function(e){return function(t,r){return u(eL(e)([t],r).then(function(e){return{objectID:e.objectIDs[0],taskID:e.taskIDs[0]}}),function(t,r){return e0(e)(t.taskID,r)})}},eL=function(e){return function(t,n){var i=n||{},a=i.createIfNotExists,s=r(i,["createIfNotExists"]),o=a?e1.PartialUpdateObject:e1.PartialUpdateObjectNoCreate;return eb(e)(t,o,s)}},eq=function(e){return function(a,s){var o=s||{},c=o.safe,l=o.autoGenerateObjectIDIfNotExist,h=o.batchSize,f=r(o,["safe","autoGenerateObjectIDIfNotExist","batchSize"]),m=function(t,r,n,i){return u(e.transporter.write({method:y,path:d("1/indexes/%s/operation",t),data:{operation:n,destination:r}},i),function(t,r){return e0(e)(t.taskID,r)})},p=Math.random().toString(36).substring(7),g="".concat(e.indexName,"_tmp_").concat(p),v=eM({appId:e.appId,transporter:e.transporter,indexName:g}),b=[],R=m(e.indexName,g,"copy",t(t({},f),{},{scope:["settings","synonyms","rules"]}));return b.push(R),u((c?R.wait(f):R).then(function(){var e=v(a,t(t({},f),{},{autoGenerateObjectIDIfNotExist:l,batchSize:h}));return b.push(e),c?e.wait(f):e}).then(function(){var t=m(g,e.indexName,"move",f);return b.push(t),c?t.wait(f):t}).then(function(){return Promise.all(b)}).then(function(e){var t=n(e,3),r=t[0],a=t[1],s=t[2];return{objectIDs:a.objectIDs,taskIDs:[r.taskID].concat(i(a.taskIDs),[s.taskID])}}).catch(function(t){return ew({appId:e.appId,transporter:e.transporter,indexName:g})().catch(function(){}).then(function(){throw t})}),function(e,t){return Promise.all(b.map(function(e){return e.wait(t)}))})}},eU=function(e){return function(r,n){return eV(e)(r,t(t({},n),{},{clearExistingRules:!0}))}},eQ=function(e){return function(r,n){return ez(e)(r,t(t({},n),{},{clearExistingSynonyms:!0}))}},eW=function(e){return function(t,r){return u(eM(e)([t],r).then(function(e){return{objectID:e.objectIDs[0],taskID:e.taskIDs[0]}}),function(t,r){return e0(e)(t.taskID,r)})}},eM=function(e){return function(t,n){var i=n||{},a=i.autoGenerateObjectIDIfNotExist,s=r(i,["autoGenerateObjectIDIfNotExist"]),o=a?e1.AddObject:e1.UpdateObject;if(o===e1.UpdateObject){var c=!0,l=!1,d=void 0;try{for(var h,f=t[Symbol.iterator]();!(c=(h=f.next()).done);c=!0)if(void 0===h.value.objectID)return u(Promise.reject({name:"MissingObjectIDError",message:"All objects must have an unique objectID (like a primary key) to be valid. Algolia is also able to generate objectIDs automatically but *it's not recommended*. To do it, use the `{'autoGenerateObjectIDIfNotExist': true}` option."}))}catch(e){l=!0,d=e}finally{try{c||null==f.return||f.return()}finally{if(l)throw d}}}return eb(e)(t,o,s)}},eB=function(e){return function(t,r){return eV(e)([t],r)}},eV=function(e){return function(t,n){var i=n||{},a=i.forwardToReplicas,s=i.clearExistingRules,o=f(r(i,["forwardToReplicas","clearExistingRules"]));return a&&(o.queryParameters.forwardToReplicas=1),s&&(o.queryParameters.clearExistingRules=1),u(e.transporter.write({method:y,path:d("1/indexes/%s/rules/batch",e.indexName),data:t},o),function(t,r){return e0(e)(t.taskID,r)})}},eG=function(e){return function(t,r){return ez(e)([t],r)}},ez=function(e){return function(t,n){var i=n||{},a=i.forwardToReplicas,s=i.clearExistingSynonyms,o=i.replaceExistingSynonyms,c=f(r(i,["forwardToReplicas","clearExistingSynonyms","replaceExistingSynonyms"]));return a&&(c.queryParameters.forwardToReplicas=1),(o||s)&&(c.queryParameters.replaceExistingSynonyms=1),u(e.transporter.write({method:y,path:d("1/indexes/%s/synonyms/batch",e.indexName),data:t},c),function(t,r){return e0(e)(t.taskID,r)})}},eJ=function(e){return function(t,r){return e.transporter.read({method:y,path:d("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},r)}},eY=function(e){return function(t,r,n){return e.transporter.read({method:y,path:d("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:r},cacheable:!0},n)}},eK=function(e){return function(t,r){return e.transporter.read({method:y,path:d("1/indexes/%s/rules/search",e.indexName),data:{query:t}},r)}},eX=function(e){return function(t,r){return e.transporter.read({method:y,path:d("1/indexes/%s/synonyms/search",e.indexName),data:{query:t}},r)}},eZ=function(e){return function(t,n){var i=n||{},a=i.forwardToReplicas,s=f(r(i,["forwardToReplicas"]));return a&&(s.queryParameters.forwardToReplicas=1),u(e.transporter.write({method:"PUT",path:d("1/indexes/%s/settings",e.indexName),data:t},s),function(t,r){return e0(e)(t.taskID,r)})}},e0=function(e){return function(t,r){return c(function(n){return(function(t,r){return e.transporter.read({method:"GET",path:d("1/indexes/%s/task/%s",e.indexName,t.toString())},r)})(t,r).then(function(e){return"published"!==e.status?n():void 0})})}}
1,e1={AddObject:"addObject",UpdateObject:"updateObject",PartialUpdateObject:"partialUpdateObject",PartialUpdateObjectNoCreate:"partialUpdateObjectNoCreate",DeleteObject:"deleteObject"},e2={Settings:"settings",Synonyms:"synonyms",Rules:"rules"},e3=function(e){return function(r,n){var i=r.map(function(e){return t(t({},e),{},{threshold:e.threshold||0})});return e.transporter.read({method:y,path:"1/indexes/*/recommendations",data:{requests:i},cacheable:!0},n)}},e4=function(e){return function(r,n){return e3(e)(r.map(function(e){return t(t({},e),{},{fallbackParameters:{},model:"bought-together"})}),n)}},e9=function(e){return function(r,n){return e3(e)(r.map(function(e){return t(t({},e),{},{model:"related-products"})}),n)}},e6=function(e){return function(r,n){var i=r.map(function(e){return t(t({},e),{},{model:"trending-facets",threshold:e.threshold||0})});return e.transporter.read({method:y,path:"1/indexes/*/recommendations",data:{requests:i},cacheable:!0},n)}},e7=function(e){return function(r,n){var i=r.map(function(e){return t(t({},e),{},{model:"trending-items",threshold:e.threshold||0})});return e.transporter.read({method:y,path:"1/indexes/*/recommendations",data:{requests:i},cacheable:!0},n)}},e5=function(e){return function(r,n){return e3(e)(r.map(function(e){return t(t({},e),{},{model:"looking-similar"})}),n)}},e8=function(e){return function(r,n){var i=r.map(function(e){return t(t({},e),{},{model:"recommended-for-you",threshold:e.threshold||0})});return e.transporter.read({method:y,path:"1/indexes/*/recommendations",data:{requests:i},cacheable:!0},n)}};function te(e){return{name:"TransformationConfigurationError",message:e}}function tt(e,c,u){var f,p,g,v,b,x,S,j,O,eb,e2,tt,tr,tn={appId:e,apiKey:c,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,i=function(e,n){return setTimeout(function(){r.abort(),t({status:0,content:n,isTimedOut:!0})},1e3*e)},a=i(e.connectTimeout,"Connection timeout");r.onreadystatechange=function(){r.readyState>r.OPENED&&void 0===n&&(clearTimeout(a),n=i(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:{debug:function(e,t){return Promise.resolve()},info:function(e,t){return Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}},responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:function e(t){var r=i(t.caches),a=r.shift();return void 0===a?{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then(function(e){return Promise.all([e,r.miss(e)])}).then(function(e){return n(e,1)[0]})},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return a.get(t,n,i).catch(function(){return e({caches:r}).get(t,n,i)})},set:function(t,n){return a.set(t,n).catch(function(){return e({caches:r}).set(t,n)})},delete:function(t){return a.delete(t).catch(function(){return e({caches:r}).delete(t)})},clear:function(){return a.clear().catch(function(){return e({caches:r}).clear()})}}}({caches:[(b={key:"".concat("4.26.0","-").concat(e)},S="algoliasearch-client-js-".concat(b.key),j=function(){return void 0===x&&(x=b.localStorage||window.localStorage),x},O=function(){return JSON.parse(j().getItem(S)||"{}")},eb=function(e){j().setItem(S,JSON.stringify(e))},e2=function(){var e=b.timeToLive?1e3*b.timeToLive:null,t=O(),r=(new Date).getTime();return Object.fromEntries(Object.entries(t).filter(function(t){var i=n(t,2)[1];return!(!i||void 0===i.timestamp)&&(!e||i.timestamp+e>=r)}))},{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return a().then(function(){var n=e2(),i=n[JSON.stringify(e)];return eb(n),i?i.value:t().then(function(e){return r.miss(e).then(function(){return e})})})},set:function(e,t){return a().then(function(){var r=O();return r[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},j().setItem(S,JSON.stringify(r)),t})},delete:function(e){return a().then(function(){var t=O();delete t[JSON.stringify(e)],j().setItem(S,JSON.stringify(t))})},clear:function(){return Promise.resolve().then(function(){j().removeItem(S)})}}),s()]}),userAgent:(tt={value:"Algolia for JavaScript (".concat("4.26.0",")"),add:function(e){var t="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return -1===tt.value.indexOf(t)&&(tt.value="".concat(tt.value).concat(t)),tt}}).add({segment:"Browser"})},ti=t(t({},tn),u),ta=function(){return function(e){var r,n,i,a;return n=(r=t(t(t({},tn),e),{},{methods:{getPersonalizationStrategy:T,setPersonalizationStrategy:E}})).region||"us",i=o(h.WithinHeaders,r.appId,r.apiKey),a=R(t(t({hosts:[{url:"personalization.".concat(n,".algolia.com")}]},r),{},{headers:t(t(t({},i.headers()),{"content-type":"application/json"}),r.headers),queryParameters:t(t({},i.queryParameters()),r.queryParameters)})),l({appId:r.appId,transporter:a},r.methods)}};if(u&&u.transformation){if(!u.transformation.region)throw te("`region` must be provided when leveraging the transformation pipeline");tr=function(e){if(!e||!e.transformation||!e.transformation.region)throw te("`region` must be provided when leveraging the transformation pipeline");if("eu"!==e.transformation.region&&"us"!==e.transformation.region)throw te("`region` is required and must be one of the following: eu, us");var r=e.appId,n=o(h.WithinHeaders,r,e.apiKey),i=R(t(t({hosts:[{url:"data.".concat(e.transformation.region,".algolia.com"),accept:m.ReadWrite,protocol:"https"}]},e),{},{headers:t(t(t({},n.headers()),{"content-type":"text/plain"}),e.headers),queryParameters:t(t({},n.queryParameters()),e.queryParameters)}));return{transporter:i,appId:r,addAlgoliaAgent:function(e,t){i.userAgent.add({segment:e,version:t}),i.userAgent.add({segment:"Ingestion",version:t}),i.userAgent.add({segment:"Ingestion via Algoliasearch"})},clearCache:function(){return Promise.all([i.requestsCache.clear(),i.responsesCache.clear()]).then(function(){})},push:function(e,r){var n=e.indexName,a=e.pushTaskPayload,s=e.watch;if(!n)throw te("Parameter `indexName` is required when calling `push`.");if(!a)throw te("Parameter `pushTaskPayload` is required when calling `push`.");if(!a.action)throw te("Parameter `pushTaskPayload.action` is required when calling `push`.");if(!a.records)throw te("Parameter `pushTaskPayload.records` is required when calling `push`.");var o=r||{queryParameters:{}};return i.write({method:y,path:d("1/push/%s",n),data:a},t(t({},o),{},{queryParameters:t(t({},o.queryParameters),{},{watch:void 0!==s})}))}}}(t(t({},u),tn))}return p=(f=t(t({},ti),{},{methods:{search:ei,searchForFacetValues:ea,multipleBatch:er,multipleGetObjects:en,multipleQueries:ei,copyIndex:D,copySettings:$,copySynonyms:L,copyRules:H,moveIndex:et,listIndices:Z,getLogs:V,listCluster
1s:X,multipleSearchForFacetValues:ea,getApiKey:W,addApiKey:C,listApiKeys:K,updateApiKey:ef,deleteApiKey:U,restoreApiKey:ec,assignUserID:N,assignUserIDs:k,getUserID:z,searchUserIDs:ed,listUserIDs:ee,getTopUserIDs:G,removeUserID:es,hasPendingMappings:J,clearDictionaryEntries:A,deleteDictionaryEntries:Q,getDictionarySettings:B,getAppTask:M,replaceDictionaryEntries:eo,saveDictionaryEntries:eu,searchDictionaryEntries:el,setDictionarySettings:eh,waitAppTask:em,customRequest:q,initIndex:function(e){return function(n){var i,a;return t(t({},Y(e)(n,{methods:{batch:ep,delete:ew,findAnswers:eE,getObject:eC,getObjects:ek,saveObject:eW,saveObjects:eM,search:eJ,searchForFacetValues:eY,waitTask:e0,setSettings:eZ,getSettings:eD,partialUpdateObject:e$,partialUpdateObjects:eL,deleteObject:eP,deleteObjects:e_,deleteBy:ej,clearObjects:eR,browseObjects:eg,getObjectPosition:eN,findObject:eO,exists:eT,saveSynonym:eG,saveSynonyms:ez,getSynonym:eH,searchSynonyms:eX,browseSynonyms:ey,deleteSynonym:eI,clearSynonyms:eS,replaceAllObjects:eq,replaceAllSynonyms:eQ,searchRules:eK,getRule:eA,deleteRule:eF,saveRule:eB,saveRules:eV,replaceAllRules:eU,browseRules:ev,clearRules:ex}})),{},{saveObjectsWithTransformation:(i=tr,function(e,t){if(!i)throw te("`options.transformation.region` must be provided at client instantiation before calling this method.");var a=t||{},s=a.autoGenerateObjectIDIfNotExist,o=a.watch,c=r(a,["autoGenerateObjectIDIfNotExist","watch"]),u=s?e1.AddObject:e1.UpdateObject;return i.push({indexName:n,pushTaskPayload:{action:u,records:e},watch:o},c)}),partialUpdateObjectsWithTransformation:(a=tr,function(e,t){if(!a)throw te("`options.transformation.region` must be provided at client instantiation before calling this method.");var i=t||{},s=i.createIfNotExists,o=i.watch,c=r(i,["createIfNotExists","watch"]),u=s?e1.PartialUpdateObject:e1.PartialUpdateObjectNoCreate;return a.push({indexName:n,pushTaskPayload:{action:u,records:e},watch:o},c)})})}},initAnalytics:function(){return function(e){var r,n,i,a;return n=(r=t(t(t({},tn),e),{},{methods:{addABTest:w,getABTest:_,getABTests:F,stopABTest:I,deleteABTest:P}})).region||"us",i=o(h.WithinHeaders,r.appId,r.apiKey),a=R(t(t({hosts:[{url:"analytics.".concat(n,".algolia.com")}]},r),{},{headers:t(t(t({},i.headers()),{"content-type":"application/json"}),r.headers),queryParameters:t(t({},i.queryParameters()),r.queryParameters)})),l({appId:r.appId,transporter:a},r.methods)}},initPersonalization:ta,initRecommendation:function(){return function(e){return ti.logger.info("The `initRecommendation` method is deprecated. Use `initPersonalization` instead."),ta()(e)}},getRecommendations:e3,getFrequentlyBoughtTogether:e4,getLookingSimilar:e5,getRecommendedForYou:e8,getRelatedProducts:e9,getTrendingFacets:e6,getTrendingItems:e7}})).appId,g=o(void 0!==f.authMode?f.authMode:h.WithinHeaders,p,f.apiKey),l({transporter:v=R(t(t({hosts:[{url:"".concat(p,"-dsn.algolia.net"),accept:m.Read},{url:"".concat(p,".algolia.net"),accept:m.Write}].concat(function(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}([{url:"".concat(p,"-1.algolianet.com")},{url:"".concat(p,"-2.algolianet.com")},{url:"".concat(p,"-3.algolianet.com")}]))},f),{},{headers:t(t(t({},g.headers()),{"content-type":"application/x-www-form-urlencoded"}),f.headers),queryParameters:t(t({},g.queryParameters()),f.queryParameters)})),appId:p,addAlgoliaAgent:function(e,t){v.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([v.requestsCache.clear(),v.responsesCache.clear()]).then(function(){})}},f.methods)}return tt.version="4.26.0",tt}()},75762,e=>{"use strict";let t;var r=e.i(50461),n=e.i(91398),i=e.i(91788),a=e.i(91567);let s=e=>e&&e.children||null;s.propTypes={children:a.default.node.isRequired},e.i(7905);var o=e.i(78774);let c=e=>{let{title:t,content:r}=e;return(0,n.jsxs)("div",{className:"content-page",children:[t&&(0,n.jsx)("h1",{children:t}),r&&(0,n.jsx)("div",{className:"content",children:(0,n.jsx)(o.Richtext,{json:r})})]})};c.propTypes={title:a.default.string,content:a.default.shape()},c.defaultProps={title:"",content:null},e.i(77687);var u=e.i(48947),u=u;let l=e=>{let{label:t}=e,{labels:r}=t;return(0,n.jsxs)("div",{className:"page-contact",children:[(0,n.jsx)(u.default,{lg:"12",className:"text-center",children:(0,n.jsx)("h1",{children:(null==r?void 0:r.title)||""})}),(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),(0,n.jsx)("div",{className:"page-contact__iframe",children:(0,n.jsx)("iframe",{src:(null==r?void 0:r.iframeUrl)||"https://pg
1consumersupport.secure.force.com/carehub?brand=Kukident&language=it&country=it&GTIN=undefined&username=undefined",title:`${null==r?void 0:r.title} Iframe`})})]})};l.propTypes={label:a.default.shape({labels:a.default.shape()})},e.i(59254);var d=e.i(51806),h=e.i(70940),h=h;function f(e){let{content:t,gridConfiguration:r}=e;return(0,n.jsx)(h.default,{containerType:r.pageContainerType,customContainerClass:r.customClass,contentAlignment:r.contentAlignment,pageLayoutClasses:r.pageLayoutClasses,children:(0,n.jsx)(d.DynamicComponent,{blocks:t})})}f.propTypes={content:a.default.shape(),globalLabels:a.default.shape(),gridConfiguration:a.default.shape()},f.defaultProps={};let m=e=>{let{content:t}=e;return(0,n.jsx)("div",{className:"dynamic-page",children:t&&(0,n.jsx)(d.DynamicComponent,{blocks:t})})};m.propTypes={content:a.default.array};var p=e.i(58678),g=e.i(3828),v=e.i(94834),y=e.i(35115),b=e.i(64577),R=e.i(37148),R=R,x=e.i(26914),S=e.i(51035),j=e.i(84855),w=e.i(28686),P=e.i(23139),_=e.i(55304),F=e.i(43289),I=e.i(7018);let T={wrappingContainer:"Fixed width",contentAlignment:"center",desktopColumnsConfig:"12",mobileColumnsConfig:"12",infiniteColumns:!0},E=e=>{let{content:t,image:r,title:a,publishDate:s,relatedArticles:o,relatedProducts:c,sources:u,perex:l,breadcrumbs:h}=e,f=(0,y.useGlobalContext)(),m=(0,j.extractDefaultImage)(r),x=(0,v.default)(s).locale("it").format(f.getLabel("article.format")||"MMM DD, YYYY"),T=(0,g.useRouter)(),E=f.getLabel("root.url","https://fixodent.com")+T.asPath,C=parseInt((e=>{let t=_.default.stringify(e),r=/"value":"(.*?)"/g,n=[],i=r.exec(t);for(;null!=i;)n.push(i[1]),i=r.exec(t);return n.join()})(t).split(" ").length/300);0==C&&(C=1);let N=C+" "+(1==C?f.getLabel("article.oneMinute","minute to read"):f.getLabel("article.moreMinutes","minutes to read"));return(0,i.useEffect)(()=>{(0,w.GTMUpdateDataLayer)("event_view_article_page",a,"event_informational_action")},[a]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("article",{className:`article-page ${!r?"without-hero-image":"with-hero-image"}`,children:[(0,n.jsxs)(p.default,{children:[(0,n.jsx)("meta",{className:"swiftype",name:"type","data-type":"enum",content:"article"}),(0,n.jsx)("meta",{className:"swiftype",name:"title","data-type":"string",content:a}),(0,n.jsx)("meta",{className:"swiftype",name:"timeToRead","data-type":"string",content:N}),m&&(0,n.jsx)("meta",{className:"swiftype",name:"image","data-type":"enum",content:null==m?void 0:m.url}),(0,n.jsx)("meta",{property:"og:title",content:a}),(0,n.jsx)("meta",{property:"og:description",content:l}),(0,n.jsx)("meta",{property:"og:image",content:null==m?void 0:m.url}),(0,n.jsx)("meta",{property:"og:url",content:E})]}),(0,n.jsx)(P.Breadcrumbs,{breadcrumbs:h}),(0,n.jsxs)("div",{className:"hero-image",children:[r&&(0,n.jsx)(b.ResponsiveImage,{types:["webp","png"],cloudinaryStruct:r,preload:!0,fetchPriority:"high",loading:"eager"}),a&&(0,n.jsx)("div",{className:"title-container",children:(0,n.jsx)("h1",{dangerouslySetInnerHTML:{__html:I.default.sanitize(a)}})})]}),(0,n.jsx)("div",{className:"article-small-header",children:(0,n.jsxs)("div",{className:"article-small-header-left",children:[N&&(0,n.jsxs)("div",{className:"time",children:[(0,n.jsx)(S.default.Clock,{className:"clock"}),(0,n.jsx)("p",{className:"time-to-read",children:N})]}),(0,n.jsxs)("p",{className:"published-date",children:[f.getLabel("article.posted")," ",x]})]})}),(0,n.jsx)(F.default,{offset:10,children:(0,n.jsxs)("div",{className:"article-main-content",children:[t&&(0,n.jsx)(d.DynamicComponent,{blocks:t}),u&&(0,n.jsx)(O,{sources:u})]})})]}),(0,n.jsx)(F.default,{offset:100,children:(0,n.jsx)(R.default,{relatedProducts:o,textation:"article.relatedArticles",withBackground:!0})}),(0,n.jsx)(F.default,{offset:100,children:(0,n.jsx)(R.default,{relatedProducts:c,textation:"article.relatedProducts"})})]})};E.propTypes={breadcrumbs:a.default.array,content:a.default.array,relatedArticles:a.default.array,relatedProducts:a.default.array,image:a.default.shape(),sources:a.default.shape(),title:a.default.string,timeToRead:a.default.string,publishDate:a.default.string,perex:a.default.string};let O=({sources:e})=>{let[t,r]=(0,i.useState)(!1);return e&&(0,n.jsxs)(x.GenericSection,{gridConfiguration:T,sectionCustomClass:`article-sources ${t?"open":"closed"}`,children:[(0,n.jsx)("h6",{children:(0,n.jsxs)("div",{role:"button",tabIndex:0,onMouseDown:()=>r(!t),"aria-label":"Sources",children:["Sources ",t?(0,n.jsx)(S.default.MarkDown,{}):(0,n.jsx)(S.default.MarkRight,{})]})}),t&&(0,n.jsx)(o.Richtext,{json:e})]})};
1O.propTypes={sources:a.default.shape()};var C=e.i(59233),R=R;let N={wrappingContainer:"Fixed width",contentAlignment:"center",desktopColumnsConfig:"12",mobileColumnsConfig:"12",infiniteColumns:!0},k=e=>{let{content:t,heroImage:r,title:i,mainText:a,relatedProducts:s,breadcrumbs:o}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(p.default,{children:[(0,n.jsx)("meta",{className:"swiftype",name:"type","data-type":"enum",content:"articleListing"}),(0,n.jsx)("meta",{className:"swiftype",name:"title","data-type":"string",content:i})]}),(0,n.jsxs)("div",{className:"article-listing-page",children:[(0,n.jsx)(P.Breadcrumbs,{breadcrumbs:o}),(0,n.jsxs)("div",{className:`hero-image margin-bottom ${!r?"without-image":""}`,children:[r&&(0,n.jsx)(b.ResponsiveImage,{types:["webp","png"],cloudinaryStruct:r,preload:!0,fetchPriority:"high",loading:"eager"}),i&&(0,n.jsx)("div",{className:"title-container",children:(0,n.jsx)("h1",{dangerouslySetInnerHTML:{__html:I.default.sanitize(i)}})})]}),(0,n.jsxs)("div",{className:"article-main-content",children:[a&&(0,n.jsx)(x.GenericSection,{gridConfiguration:N,children:(0,n.jsx)(C.default,{source:a,className:"richtext-container main-text"})}),t&&r?(0,n.jsx)(F.default,{offset:100,children:(0,n.jsx)(d.DynamicComponent,{blocks:t})}):(0,n.jsx)(F.default,{offset:10,children:(0,n.jsx)(d.DynamicComponent,{blocks:t})})]})]}),(0,n.jsx)(F.default,{offset:100,children:(0,n.jsx)(R.default,{relatedProducts:s,textation:"articleListing.relatedProducts"})})]})};k.propTypes={breadcrumbs:a.default.array,title:a.default.string,mainText:a.default.string,heroImage:a.default.shape(),content:a.default.array,relatedProducts:a.default.array};var A=e.i(71091),D=e.i(1214);let H=(0,a.shape)({url:a.string,alternativeText:a.string,name:a.string,cloudinaryExtension:(0,a.arrayOf)((0,a.shape)({url:a.string,id:a.string}))}),$=(0,a.shape)({name:a.string,title:a.string,productShortName:a.string,productId:a.string,images:(0,a.arrayOf)(H),psSku:a.string,bvSku:a.string,caption:a.string,benefits:a.string,benefitsIcons:(0,a.shape)({items:(0,a.arrayOf)(H)})}),L=e=>{if(Math.abs(e.touches[0].clientX-t)>5)return e.preventDefault(),e.returnValue=!1,!1},q=e=>{t=e.touches[0].clientX},U=({images:e,onClickThumb:t})=>{let r,a=(0,i.useRef)(null),s=(0,i.useRef)(),o=Array.isArray(e)?e:[];return(0,i.useEffect)(()=>(s.current&&(s.current.addEventListener("touchstart",q),s.current.addEventListener("touchmove",L,{passive:!1})),()=>{s.current&&(s.current.removeEventListener("touchstart",q),s.current.removeEventListener("touchmove",L,{passive:!1}))})),(0,i.useEffect)(()=>{document.querySelectorAll(".slick-slide.slick-cloned").forEach(function(e){e.setAttribute("aria-hidden","false")})},[]),(0,n.jsxs)(n.Fragment,{children:[o.length>4&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{onClick:()=>null==a?void 0:a.current.slickPrev(),className:"slider-button slider-vertical-button slider-prev","aria-hidden":!0,children:(0,n.jsx)("div",{className:"slider-arrow arrow-up"})}),(0,n.jsx)("div",{onClick:()=>null==a?void 0:a.current.slickNext(),className:"slider-button slider-vertical-button slider-next","aria-hidden":!0,children:(0,n.jsx)("div",{className:"slider-arrow arrow-down"})})]}),(0,n.jsxs)("div",{className:"vertical-carousel-wrapper",children:[" ",(0,n.jsx)("div",{className:"slider-wrapper",ref:s,children:(0,n.jsx)(A.default,{...{infinite:(r=o.length)>5,slidesToShow:5,slidesToScroll:1,vertical:!0,verticalSwiping:r>5,swipeToSlide:r>5,touchThreshold:100,arrows:!1},ref:a,children:o.map((e,r)=>{var i;return(0,n.jsx)("div",{className:"thumbnail",children:(0,n.jsx)("button",{onClick:()=>t(r),children:(0,n.jsx)(D.default,{cloudinaryStruct:e,breakpoints:{0:null},transformations:["w_150","h_150","c_lfill"],className:"event_image_click"})})},(null==(i=e.sys)?void 0:i.id)||r)})})})]})]})};U.propTypes={images:a.default.arrayOf(H),onClickUp:a.default.func,onClickDown:a.default.func,onClickThumb:a.default.func,forwardedRef:a.default.oneOfType([a.default.func,a.default.shape({current:a.default.shape()})])};var Q=e.i(57849);let W={arrows:!1,infinite:!0,slidesToShow:1,slidesToScroll:1,speed:400,fade:!0,centerMode:!1,centerPadding:"0px",responsive:[{breakpoint:992,settings:{arrows:!0,fade:!1,centerMode:!0,centerPadding:"40px",className:"image-margin"}}]},M=e=>{var t,r;let{product:a,currentVariantIndex:s,onChangeVariant:o}=e,{description:c,variants:u,smartLabelLink:l}=a,d=(0,i.useRef)(null),h=(0,y.useGlobalContext)(),[f,m]=(0,i.useState)(0),[p,g]=(0,i.useState)(!1),v={...W,nextArrow:(0,n.jsx)(B,{ownClass:"arrowNext"}),prevArrow:(0,n.jsx)(B,{ownClass:"arrowPrev"})};(0,i.useEffect)(()=>{m(window.innerWidth),g(!0)},[f]);let b=(0,n.jsxs)("div",{className:"col-12 col-lg-5 description-content",children:[(0,n.jsx)("div",{itemProp:"description",children:(0,n.jsx)(C.default,{className:"richtext-container",children:c})}),(0,n.jsx)("div",{className:"col-12 d-none d-lg-flex description-buy-button",children:(0,n.jsx)("select",{name:"selectVariant","aria-label":"Select variant",className:"variant-select",onChange:o,onBlur:o,children:u&&u.map((e,t)=>(0,n.jsx)("option",{value:t,children:e.size},t))})}),l&&(0,n.jsxs)("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"description-smartlabel event_outbound_link","data-action-detail":l,children:[(0,n.jsx)(S.default.Smartlabel,{}),(0,n.jsx)("p",{children:h.getLabel("productDetail.ingredients","Click here to see ingredients and more.")})]})]});return(0,n.jsx)("div",{className:"product-description",children:(0,n.jsx)("div",{className:"container-lg","data-swiftype-index":"true",children:(0,n.jsxs)("div",{className:"row mx-lg-0",children:[(0,n.jsx)("div",{className:"col-lg-1 d-none d-lg-block p-0 position-relative vertical-carousel",children:(0,n.jsx)(U,{images:u[s].images,onClickThumb:e=>{var t;return null==d||null==(t=d.current)?void 0:t.slickGoTo(e)}})}),(0,n.jsx)("div",{className:"col-12 col-lg-6 main-image-container px-3 px-lg-2",children:p?(0,n.jsx)(A.default,{...v,ref:d,children:u&&(null==(t=u[s].images)?void 0:t.length)&&u[s].images.map((e,t)=>{var r;return(0,n.jsx)(D.default,{types:["webp","png"],className:"main-image px-lg-0",cloudinaryStruct:e,breakpoints:{0:null}},(null==(r=e.sys)?void 0:r.id)||t)})}):(0,n.jsx)("div",{className:"product-image-initial",children:u&&(null==(r=u[s].images)?void 0:r.length)&&u[s].images.map((e,t)=>{var r;return 0==t&&(0,n.jsx)(D.default,{types:["webp","png"],className:"main-image px-lg-0",cloudinaryStruct:e,breakpoints:{0:null}},(null==(r=e.sys)?void 0:r.id)||t)})})}),(0,n.jsx)("div",{className:"col-12 d-lg-none description-buy-button",children:(0,n.jsx)("select",{name:"selectVariant","aria-label":"Select variant",className:"variant-select",onChange:o,onBlur:o,children:u&&u.map((e,t)=>(0,n.jsx)("option",{value:t,children:e.size},t))})}),f<Q.Default_Desktop_Width?(0,n.jsx)(F.default,{offset:10,children:(0,n.jsx)(n.Fragment,{children:b})}):(0,n.jsx)(n.Fragment,{children:b})]})})})};M.propTypes={product:$,smartLabelLink:a.default.string,currentVariantIndex:a.default.number,onChangeVariant:a.default.func};let B=e=>{let{className:t,ownClass:r,style:i,onClick:a}=e;return(0,n.jsx)("div",{className:`${t} ${r}`,style:{...i},role:"button",tabIndex:0,onMouseDown:a})};B.propTypes={onClick:a.default.func,style:a.default.shape(),ownClass:a.default.string,className:a.default.string};let V=e=>{let{title:t}=e,[r,a]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let e=()=>{let e=document.getElementById("site-header"),t=document.getElementById("product-sticky-bar-anchor");t&&(t.getBoundingClientRect().top<0?(e.style.display="none",a(!0)):(e.style.display="block",a(!1)))};return e(),window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{id:"product-sticky-bar",className:r?"product-sticky-bar-frozen":"",children:(0,n.jsx)("div",{className:"container",children:(0,n.jsx)(C.default,{className:"product-sticky-bar-title",children:t})})})})};V.propTypes={title:a.default.string};let G=e=>{var t;let{product:r}=e,{title:i,productAttributes:a}=r;return(0,n.jsxs)("div",{className:"product-detail-top-bar",children:[(0,n.jsx)("div",{className:"container",children:(0,n.jsx)("div",{className:"row",children:(0,n.jsxs)("div",{className:"col-12",children:[(0,n.jsx)("div",{className:"label",children:(null==a?void 0:a.length)&&(null==(t=a[0])?void 0:t.t
1itle)}),i&&(0,n.jsx)("h1",{itemProp:"name",children:i})]})})}),(0,n.jsx)(V,{title:i})]})};G.propTypes={product:a.default.shape({title:a.default.string,variants:a.default.array,productAttributes:a.default.array}),onChangeVariant:a.default.func,bazaarRating:a.default.string,bazaarTotalRatingCount:a.default.number};var R=R,z=e.i(25699),z=z;let J=e=>{let{breadcrumbs:t,product:r,content:a,relatedProducts:s,bazaarRating:o,bazaarTotalRatingCount:c,comparisionChart:u}=e,{title:l,previewImage:h,bvSku:f,bvId:m}=r||{},g=(0,j.extractImage)(h),[v,y]=(0,i.useState)(0),b=e=>{var t;(0,w.GTMUpdateDataLayer)("event_buy_now_choose_product","","event_bin_action"),y((null==e||null==(t=e.target)?void 0:t.value)||e)};return(0,i.useEffect)(()=>{if(!l)return null;(0,w.GTMUpdateProductLayer)(function(e,t){(t=t||{}).listUnicodeChar=!!Object.prototype.hasOwnProperty.call(t,"listUnicodeChar")&&t.listUnicodeChar,t.stripListLeaders=!Object.prototype.hasOwnProperty.call(t,"stripListLeaders")||t.stripListLeaders,t.gfm=!Object.prototype.hasOwnProperty.call(t,"gfm")||t.gfm,t.useImgAltText=!Object.prototype.hasOwnProperty.call(t,"useImgAltText")||t.useImgAltText;let r=e||"";r=r.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*$/gm,"");try{t.stripListLeaders&&(r=t.listUnicodeChar?r.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,t.listUnicodeChar+" $1"):r.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),t.gfm&&(r=r.replace(/\n={2,}/g,"\n").replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/`{3}.*\n/g,"")),r=r.replace(/[<>]/g,"").replace(/^[=\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/g,"").replace(/\!\[(.*?)\][\[\(].*?[\]\)]/g,t.useImgAltText?"$1":"").replace(/\[(.*?)\][\[\(].*?[\]\)]/g,"$1").replace(/^\s{0,3}>\s?/g,"").replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s+| {0,}(\n)?\s{0,}#{0,} {0,}(\n)?\s{0,}$/gm,"$1$2$3").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/\n{2,}/g,"\n\n")}catch(t){return e}return r}(l),"Fixodent",null==r?void 0:r.caption,f),(0,w.GTMUpdateDataLayer)("event_view_product_detail_page",l,"event_informational_action")},[l]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"product-detail-page",children:[(0,n.jsx)("meta",{itemProp:"brand",content:"Fixodent"}),(0,n.jsxs)(p.default,{children:[(0,n.jsx)("meta",{className:"swiftype",name:"type","data-type":"enum",content:"product"}),(0,n.jsx)("meta",{className:"swiftype",name:"title","data-type":"string",content:l}),g&&g.url&&(0,n.jsx)("meta",{className:"swiftype",name:"image","data-type":"enum",content:g.url}),f&&(0,n.jsx)("meta",{className:"swiftype",name:"bv_sku","data-type":"string",content:f})]}),(0,n.jsx)(P.Breadcrumbs,{breadcrumbs:t}),(0,n.jsx)(G,{product:r,bvId:m,onChangeVariant:b,bazaarRating:o,bazaarTotalRatingCount:c}),(0,n.jsx)("div",{id:"product-sticky-bar-anchor"}),(0,n.jsx)(M,{product:r,currentVariantIndex:v,onChangeVariant:b}),(0,n.jsx)(F.default,{offset:100,children:(0,n.jsx)("div",{className:"product-detail-content",children:a&&(0,n.jsx)(d.DynamicComponent,{blocks:a})})}),(0,n.jsx)(z.default,{comparisionChart:u}),(0,n.jsx)(F.default,{offset:100,children:(0,n.jsx)(R.default,{relatedProducts:s,textation:"productDetail.relatedProducts"})})]})})};J.propTypes={breadcrumbs:a.default.array,product:a.default.shape(),content:a.default.array,relatedProducts:a.default.array,bazaarRating:a.default.string,bazaarTotalRatingCount:a.default.number,comparisionChart:a.default.array},J.getStaticProps=async()=>({bazaarRating:0,bazaarTotalRatingCount:0});var Y=e.i(45507),K=e.i(51565),X=e.i(89661),Z=e.i(3239);let ee=e=>{let{breadcrumbs:t,content:r,productAttributes:i,products:a,relatedArticlesTopLevelPosition:s,relatedArticlesWithLink:o}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(P.Breadcrumbs,{breadcrumbs:t}),(i||a||o||s)&&(0,n.jsx)(Z.default,{productAttributes:i,products:a,relatedArticles:_.default.parse(o),relatedArticlesTopLevelPosition:s}),(0,n.jsx)(F.default,{offset:10,children:(0,n.jsx)("div",{className:"product-listing-main-content",children:r&&(0,n.jsx)(d.DynamicComponent,{blocks:r})})})]})};ee.propTypes={breadcrumbs:a.default.array,content:a.default.array,relatedArticlesTopLevelPosition:a.default.string,relatedArticlesWithLink:a.default.string,productAttributes:a.default.array,products:a.default.array},ee.getStaticProps=async e=>{var t;let r=(0,Y.isPreview)(e),n="it-IT",i=null!=e&&null!=(t=e.page)&&t.relatedArticles?await Promise.all(e.page.relatedArticles.map(async e=>{let t=await (0,K.getPageByName)(e.name,r,n);return{...e,link:t.fields.url}})):[],a=await (0,K.getProductAttributes)(r,n),s=await (0,K.getProducts)(r,n),o=(0,X.prepareSchema)(["$ref:/page"],{page:{url:"string",page:{name:"string",product:{title:"string",shortTitle:"string",psSku:"string",bvId:"string",bvSku:"string",description:"object",previewDescription:"object",previewImage:"object",rating:"number",productAttributes:"object",isProductRequiredInProductListingPage:"boolean"}}},image:"object",responsiveImage:b.ResponsiveImage.schema,productPage:{name:"string"}},5)(s),c=(0,X.prepareSchema)({title:"string",previewImage:b.ResponsiveImage.schema,link:"string"},{},3),u=i.map(c);for(let e of o)e.title=e.page.product.title,e.genericProduct=e.page.product;return e.page.relatedArticles=[],{productAttributes:a,products:o,relatedArticlesWithLink:_.default.stringify(u),context:e}};var et=e.i(62049);function er(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function en(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){er(e,t,r[t])})}return e}function ei(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function ea(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.map(function(e){var t;return"https://www.algolia.com/doc/api-reference/widgets/"+e.name+"/js/"+(void 0!==(t=e.connector)&&t?"#connector":"")}).join(", ");return function(e){return[e,"See documentation: ".concat(n)].filter(Boolean).join("\n\n")}}function es(e,t){if(void 0===e||"function"!=typeof e)throw Error("The render function is not valid (received type ".concat(Object.prototype.toString.call(e).slice(8,-1),").\n\n").concat(t))}function eo(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r]}var ec=ea({name:"search-box",connector:!0}),eu=function(e,t){return t(e)},el=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eo;return es(e,ec()),function(r){var n,i,a=(r||{}).queryHook,s=void 0===a?eu:a;return{$$type:"ais.searchBox",init:function(t){var r=t.instantSearchInstance;e(ei(en({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e(ei(en({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(e){var r=e.state;return t(),r.setQueryParameter("query",void 0)},getRenderState:function(e,t){return ei(en({},e),{searchBox:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.helper,a=e.instantSearchInstance,o=e.state;return n||(n=function(e){s(e,function(e){return t.setQuery(e).search()})},i=function(){t.setQuery("").search()}),{query:o.query||"",refine:n,clear:i,widgetParams:r,isSearchStalled:"stalled"===a.status}},getWidgetUiState:function(e,t){var r=t.searchParameters.query||"";return""===r||e&&e.query===r?e:ei(en({},e),{query:r})},getWidgetSearchParameters:function(e,t){var r=t.uiState;return e.setQueryParameter("query",r.query||"")}}}};function ed(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function eh(e){if(Array.isArray(e))return e}function ef(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function em(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ep(e,t){if(e){if("string"==typeof e)return em(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return em(e,t)}}function eg(e,t){return eh(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],s=!0,o=!1;try{for(i=i.call(e);!(s=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);s=!0);}catch(e){o=!0,n=e}finally{try{s||null==i.return||i.return()}finally{if(o)throw n}}return a}}(e,t)||ep(e,t)||ef()}function ev(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ey(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var eb=Object.prototype.hasOwnProperty;function eR(e,t,r){var n,i;if((null==r?void 0:r(e,t))||e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((i=e.length)===t.length)for(;i--&&eR(e[i],t[i],r););return -1===i}if(!n||(void 0===e?"undefined":ey(e))==="object"){for(n in i=0,e)if(eb.call(e,n)&&++i&&!eb.call(t,n)||!(n in t)||!eR(e[n],t[n],r))return!1;return Object.keys(t).length===i}}return e!=e&&t!=t}var ex=e.i(49692);function eS(e){var t,r,n;return new ex.default.SearchResults(e,[{query:null!=(t=e.query)?t:"",page:null!=(r=e.page)?r:0,hitsPerPage:null!=(n=e.hitsPerPage)?n:20,hits:[],nbHits:0,nbPages:0,params:"",exhaustiveNbHits:!0,exhaustiveFacetsCount:!0,processingTimeMS:0,index:e.index}],{__isArtificial:!0})}function ej(e){var t=e.getHelper(),r=e.getResults()||eS(t.state),n=e.getScopedResults().map(function(t){var n=t.indexId===e.getIndexId()?r:eS(t.helper.state);return ei(en({},t),{results:t.results||n})});return{results:r,scopedResults:n,recommendResults:t.lastRecommendResults}}var ew=(0,i.createContext)(null);function eP(e,t){if(!e)throw Error("Invariant failed")}function e_(){var e=(0,i.useContext)(ew);return eP(null!==e),e}var eF=(0,i.createContext)(null);function eI(){var e=(0,i.useContext)(eF);return eP(null!==e),e}var eT=(0,i.createContext)(null);function eE(){return(0,i.useContext)(eT)}var eO=(0,i.createContext)(null);function eC(){return(0,i.useContext)(eO)}function eN(e){var t=eg((0,i.useState)(function(){return e}),2),r=t[0],n=t[1];return eR(r,e)||n(e),r}var ek=i.use,eA="u">typeof window?i.useLayoutEffect:i.useEffect,eD=(0,i.createContext)({countRef:{current:0},waitForResultsRef:null,ignoreMultipleHooksWarning:!1});function eH(){return(0,i.useContext)(eD)}function e$(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,a=eh(t=[r,n])||ev(t)||ep(t)||ef(),s=a[0],o=eg(a.slice(1),1)[0],c=void 0===o?{}:o,u=c.skipSuspense,l=ed(c,["skipSuspense"]),d=eE(),h=eC(),f=eI(),m=e_(),p=eN(void 0===s?{}:s),g=eN(l),v=(0,i.useRef)(!0),y=(0,i.useRef)(null),b=(0,i.useRef)(f.status),R=(0,i.useMemo)(function(){return en({},e(function(e,t){if(t){v.current=!0;return}if(v.current){var r=e.instantSearchInstance;e.widgetParams;var n=ed(e,["instantSearchInstance","widgetParams"]);eR(n,y.current,function(e,t){return(null==e?void 0:e.constructor)===Function&&(null==t?void 0:t.constructor)===Function})&&r.status===b.current||(j(n),y.current=n,b.current=r.status)}},function(){v.current=!1})(p),g)},[e,p,g]),x=eg((0,i.useState)(function(){if(R.getWidgetRenderState){var e,t=m.getHelper(),r=m.getWidgetUiState({})[m.getIndexId()];t.state=(null==(e=R.getWidgetSearchParameters)?void 0:e.call(R,t.state,{uiState:r}))||t.state;var n=ej(m),i=n.results,a=n.scopedResults,s=n.recommendResults,o=R.getWidgetRenderState({helper:t,parent:m,instantSearchInstance:f,results:"recommend"===R.dependsOn&&s&&h?s[h.recommendIdx.current++]:i,scopedResults:a,state:t.state,render
1State:f.renderState,templatesConfig:f.templatesConfig,createURL:m.createURL,searchMetadata:{isSearchStalled:"stalled"===f.status},status:f.status,error:f.error});return o.widgetParams,ed(o,["widgetParams"])}return{}}),2),S=x[0],j=x[1];return!function(e){var t,r,n,a=e.widget,s=e.parentIndex,o=e.props,c=e.shouldSsr,u=e.skipSuspense,l=eH(),d=l.waitForResultsRef,h=l.countRef;l.ignoreMultipleHooksWarning;var f=(0,i.useRef)(o);(0,i.useEffect)(function(){f.current=o},[o]);var m=(0,i.useRef)(a);(0,i.useEffect)(function(){m.current=a},[a]);var p=(0,i.useRef)(null),g=c&&!s.getWidgets().includes(a),v=eI();eA(function(){var e=m.current;return p.current?(clearTimeout(p.current),eR(o,f.current)||(s.removeWidgets([e]),s.addWidgets([a]))):c||s.addWidgets([a]),function(){p.current=setTimeout(function(){v._schedule(function(){v._preventWidgetCleanup||s.removeWidgets([e])})})}},[s,a,c,v,o]),(g||(null==d||null==(t=d.current)?void 0:t.status)==="pending")&&s.addWidgets([a]),(null==d?void 0:d.current)&&!u&&(ek(d.current),"ais.dynamicWidgets"!==a.$$type&&"ais.feeds"!==a.$$type&&(null==(n=v.helper)?void 0:n.lastResults)&&ek(d.current)),(null==d||null==(r=d.current)?void 0:r.status)==="fulfilled"&&(h.current+=1)}({widget:R,parentIndex:m,props:p,shouldSsr:!!d,skipSuspense:void 0!==u&&u}),S}function eL(e){return btoa(encodeURIComponent(JSON.stringify(e)))}function eq(e){var t=e.helper,r=e.widgetType;e.methodName;var n=e.args,i=e.instantSearchInstance;if(1===n.length&&"object"===ey(n[0]))return[n[0]];var a=eg(n[0].split(":"),2),s=a[0],o=a[1],c=n[1],u=n[2],l=n[3]||{};if(!c||("click"===s||"conversion"===s)&&!u)return[];var d=Array.isArray(c)?c:[c];if(0===d.length)return[];var h=d[0].__queryID,f=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,r=[],n=0;n<Math.ceil(e.length/t);n++)r.push(e.slice(n*t,(n+1)*t));return r}(d),m=f.map(function(e){return e.map(function(e){return e.objectID})}),p=f.map(function(e){return e.map(function(e){return e.__position})});return"view"===s?"idle"!==i.status?[]:f.map(function(e,n){var i;return{insightsMethod:"viewedObjectIDs",widgetType:r,eventType:s,payload:en({eventName:u||"Hits Viewed",index:(null==(i=t.lastResults)?void 0:i.index)||t.state.index,objectIDs:m[n]},l),hits:e,eventModifier:o}}):"click"===s?f.map(function(e,n){var i;return{insightsMethod:"clickedObjectIDsAfterSearch",widgetType:r,eventType:s,payload:en({eventName:u||"Hit Clicked",index:(null==(i=t.lastResults)?void 0:i.index)||t.state.index,queryID:h,objectIDs:m[n],positions:p[n]},l),hits:e,eventModifier:o}}):"conversion"===s?f.map(function(e,n){var i;return{insightsMethod:"convertedObjectIDsAfterSearch",widgetType:r,eventType:s,payload:en({eventName:u||"Hit Converted",index:(null==(i=t.lastResults)?void 0:i.index)||t.state.index,queryID:h,objectIDs:m[n]},l),hits:e,eventModifier:o}}):[]}function eU(e){var t=e.instantSearchInstance,r=e.helper,n=e.widgetType,i={},a=void 0;return function(){for(var e=arguments.length,s=Array(e),o=0;o<e;o++)s[o]=arguments[o];eq({widgetType:n,helper:r,methodName:"sendEvent",args:s,instantSearchInstance:t}).forEach(function(e){"click"===e.eventType&&"internal"===e.eventModifier&&i[e.eventType]||(i[e.eventType]=!0,t.sendEventToInsights(e))}),clearTimeout(a),a=setTimeout(function(){i={}},0)}}function eQ(){return(eQ=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var eW={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},eM=/[&<>"']/g,eB=RegExp(eM.source),eV={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},eG=/&(amp|quot|lt|gt|#39);/g,ez=RegExp(eG.source),eJ={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},eY="<mark>",eK="</mark>";function eX(e){return(e&&eB.test(e)?e.replace(eM,function(e){return eW[e]}):e).replace(RegExp(eJ.highlightPreTag,"g"),eY).replace(RegExp(eJ.highlightPostTag,"g"),eK)}function eZ(e){return function(e){if((void 0===e?"undefined":ey(e))!=="object"||null===e||"[object Object]"!==(null===e?void 0===e?"[object Undef
1ined]":"[object Null]":Object.prototype.toString.call(e)))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e)&&"string"!=typeof e.value?Object.keys(e).reduce(function(t,r){return ei(en({},t),er({},r,eZ(e[r])))},{}):Array.isArray(e)?e.map(eZ):ei(en({},e),{value:eX(e.value)})}function e0(e){return void 0===e.__escaped&&((e=e.map(function(e){var t=e;if(null==t)throw TypeError("Cannot destructure "+t);var r=eQ({},e);return r._highlightResult&&(r._highlightResult=eZ(r._highlightResult)),r._snippetResult&&(r._snippetResult=eZ(r._snippetResult)),r})).__escaped=!0),e}function e1(e,t){return t?e.map(function(e){return ei(en({},e),{__queryID:t})}):e}function e2(e,t,r){return e.map(function(e,n){return ei(en({},e),{__position:r*t+n+1})})}var e3=ea({name:"autocomplete",connector:!0}),e4=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eo;return es(e,e3()),function(r){var n=r||{},i=n.escapeHTML,a=void 0===i||i,s=n.transformItems,o=void 0===s?function(e){return e}:s,c=n.future,u=(void 0===c?{}:c).undefinedEmptyQuery,l=void 0!==u&&u,d={};return{$$type:"ais.autocomplete",init:function(t){var r=t.instantSearchInstance;e(ei(en({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance,n=this.getWidgetRenderState(t);n.indices.forEach(function(e){(0,e.sendEvent)("view:internal",e.hits)}),e(ei(en({},n),{instantSearchInstance:r}),!1)},getRenderState:function(e,t){return ei(en({},e),{autocomplete:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=this,n=e.helper,i=e.state,s=e.scopedResults,c=e.instantSearchInstance;d.refine||(d.refine=function(e){n.setQuery(e).search()});var u={},h=s.map(function(e){e.results&&(e.results.hits=a?e0(e.results.hits):e.results.hits),u[e.indexId]=eU({instantSearchInstance:c,helper:e.helper,widgetType:t.$$type});var r,n=e.results?e1(e2(e.results.hits,e.results.page,e.results.hitsPerPage),e.results.queryID):[];return{indexId:e.indexId,indexName:(null==(r=e.results)?void 0:r.index)||"",hits:n,results:e.results||{}}});return{currentRefinement:l?i.query:i.query||"",indices:o(h).map(function(e){return ei(en({},e),{sendEvent:u[e.indexId]})}),refine:d.refine,widgetParams:r}},getWidgetUiState:function(e,t){var r=t.searchParameters,n=l?r.query:r.query||"";return!n||""===n||e&&e.query===n?e:ei(en({},e),{query:n})},getWidgetSearchParameters:function(e,t){var r=t.uiState,n={query:l?r.query:r.query||""};return a?e.setQueryParameters(en({},n,eJ)):e.setQueryParameters(n)},dispose:function(e){var r=e.state;t();var n=r.setQueryParameter("query",void 0);return a?n.setQueryParameters(Object.keys(eJ).reduce(function(e,t){return ei(en({},e),er({},t,void 0))},{})):n}}}};let e9=({state:e,dispatch:t})=>{let{hits:r,refine:i}=e$(e4,void 0,void 0);return e.showAutocomplete&&(null==r?void 0:r.length)>0&&(0,n.jsxs)("div",{id:"autocomplete-sugg",tabIndex:0,className:"ob-search-bar-autocomplete",children:[(0,n.jsx)("div",{className:"ob-search-bar-autocomplete-title",children:e.searchStaticContent.commonSearchesLabel}),(0,n.jsx)("div",{className:"flex flex-col align-center justify-center p-2 shadow-lg",children:(0,n.jsx)("ul",{className:"ob-search-bar-autocomplete-results",children:r.map(r=>{let a=r._highlightResult.title.value?r._highlightResult.title.value.split("|"):[];return(0,n.jsx)("li",{className:"ob-search-bar-autocomplete__result-item",children:(0,n.jsx)("button",{className:"ob-search-bar-autocomplete__result-item-button event_search","data-index":r.objectID,role:"link",onClick:n=>{let a;n.preventDefault(),a=r.title?r.title.split("|"):[],window.location.hash=et.SearchBlockConstants.queryHashName+et.SearchBlockConstants.queryHashEqual+a[0],i(a[0]),t({type:et.algoliaReducerConstants.queryParm,payload:a[0],...e}),t({type:et.algoliaReducerConstants.SearchClicked,payload:!0,...e}),t({type:et.algoliaReducerConstants.showAutocomplete,payload:!1,...e}),t({type:et.algoliaReducerConstants.searchValue,payload:a[0],...e}),t({type:et.algoliaReducerConstants.isSpinning,payload:!0,...e})},dangerouslySetInnerHTML:{__html:I.default.sanitize(null==a?void 0:a[0])}})},r.objectID)})})})]})},e6=({state:e,dispatch:t,document:r})=>{let{refine:a}=e$(el,void 0,void 0);(0,i.useEffect)(()=>{var r;let n=o(e.queryParm);""!=e.queryParm&&(""==e.searchValue||void 0==e.searchValue||null==e.searchValue)&&(null==(r=e.hitsResponse)?void 0:r.length)==0&&(t({type:et.algoliaReducerConstants.searchValue,payload:n,...e}),t({type:et.algoliaReducerConstants.SearchClicked,payload:!0,...e}),a(n))},[]);let s=r=>{var n;if(r.preventDefault(),(null==e||null==(n=e.searchValue)?void 0:n.length)>3&&(null==e?void 0:e.queryParm)!==e.searchValue&&""!==e.searchValue){let r=o(e.searchValue);a(r),window.location.hash=et.SearchBlockConstants.queryHashName+et.SearchBlockConstants.queryHashEqual+r,t({type:et.algoliaReducerConstants.SearchClicked,payload:!0,...e}),t({type:et.algoliaReducerConstants.showAutocomplete,payload:!1,...e}),t({type:et.algoliaReducerConstants.queryParm,payload:r,...e}),t({type:et.algoliaReducerConstants.isSpinning,payload:!0,...e})}},o=e=>e=e.replace(/[&\\#,+()$~%.'":*?<>[\]{}]/g,"");return(0,n.jsx)("div",{className:"ob-search-block__search",children:(0,n.jsxs)("form",{noValidate:!0,action:"",className:"ob-search-bar-form",role:"search",onSubmit:s,children:[(0,n.jsx)("h1",{id:"searchTitle",className:"ob-search-block__search-title",children:(0,n.jsx)("label",{htmlFor:"searchText",children:null==r?void 0:r.mainTitle})}),(0,n.jsxs)("div",{className:"ob-search-bar",children:[(0,n.jsx)("input",{id:"searchText",type:"text","aria-label":"Search",value:e.searchValue,onChange:r=>{var n;let i=o(r.target.value);t({type:et.algoliaReducerConstants.searchValue,payload:i,...e}),(null==(n=r.target.value)?void 0:n.length)>3?t({type:et.algoliaReducerConstants.showAutocomplete,payload:!0,...e}):t({type:et.algoliaReducerConstants.showAutocomplete,payload:!1,...e}),t({type:et.algoliaReducerConstants.SearchClicked,payload:!1,...e}),a(i)}}),(0,n.jsx)("button",{type:"submit",className:"ob-search-bar-icon",onClick:""==e.searchValue?r=>{r.preventDefault(),t({type:et.algoliaReducerConstants.searchValue,payload:"",...e}),t({type:et.algoliaReducerConstants.queryParm,payload:"",...e}),t({type:et.algoliaReducerConstants.showAutocomplete,payload:"",...e})}:s,"aria-label":Q.SEARCH_BAR_ICON,children:null!=e&&e.isSpinning?(0,n.jsx)("div",{className:"ob-search-bar-spinner",children:(0,n.jsx)("div",{})}):(0,n.jsx)(S.default.Search,{})}),(0,n.jsx)(e9,{state:e,dispatch:t})]})]})})};function e7(e){return function(e){if(Array.isArray(e))return em(e)}(e)||ev(e)||ep(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}
1function e5(e){return(e5=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function e8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(e8=function(){return!!e})()}function te(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function tt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function tr(e,t,r){return t&&tt(e.prototype,t),r&&tt(e,r),e}function tn(e,t){return(tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ti(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}e6.propTypes={state:a.default.object,dispatch:a.default.any,document:a.default.object};var ta=e.i(37609);function ts(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fallback:function(){}}).fallback;return"u"<typeof window?t():e({window:window})}function to(e){if(e.appId&&e.apiKey)return[e.appId,e.apiKey];if(!e.transporter)return[e.applicationID,e.apiKey];var t=e.transporter,r=t.headers||t.baseHeaders,n=t.queryParameters||t.baseQueryParameters,i="x-algolia-application-id",a="x-algolia-api-key";return[r[i]||n[i],r[a]||n[a]]}function tc(e,t){for(var r,n=0;n<e.length;n++)if(t(r=e[n],n,e))return r}var tu="2.17.2",tl="https://cdn.jsdelivr.net/npm/search-insights@".concat(tu,"/dist/search-insights.min.js");function td(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.insightsClient,r=e.insightsInitParams,n=e.onEvent,i=e.$$internal,a=void 0!==i&&i,s=e.$$automatic,o=void 0!==s&&s,c=t;t||null===t||ts(function(e){var t=e.window,r=t.AlgoliaAnalyticsObject||"aa";"string"==typeof r&&(c=t[r]),c||(t.AlgoliaAnalyticsObject=r,t[r]||(t[r]=function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];t[r].queue||(t[r].queue=[]),t[r].queue.push(n)},t[r].version=tu,t[r].shouldAddScript=!0),c=t[r])});var u=c||eo;return function(e){var t,i,s,c=e.instantSearchInstance,l=c.middleware.filter(function(e){return"ais.insights"===e.instance.$$type&&e.instance.$$internal}).map(function(e){return e.creator});c.unuse.apply(c,e7(l));var d=eg(to(c.client),2),h=d[0],f=d[1],m=void 0,p=void 0,g=void 0,v=u.queue;return Array.isArray(v)&&(p=(t=eg(["setUserToken","init"].map(function(e){return eg(tc(v.slice().reverse(),function(t){return eg(t,1)[0]===e})||[],2)[1]}),2))[0],m=t[1]),u("getUserToken",null,function(e,t){g=tf(t)}),(r||!th(u))&&u("init",en({appId:h,apiKey:f,partial:!0},r)),{$$type:"ais.insights",$$internal:a,$$automatic:o,onStateChange:function(){},subscribe:function(){if(u.shouldAddScript){var e="[insights middleware]: could not load search-insights.js. Please load it manually following https://alg.li/insights-init";try{var t=document.createElement("script");t.async=!0,t.src=tl,t.onerror=function(){c.emit("error",Error(e))},document.body.appendChild(t),u.shouldAddScript=!1}catch(t){u.shouldAddScript=!1,c.emit("error",Error(e))}}},started:function(){u("addAlgoliaAgent","insights-middleware"),s=c.mainHelper;var e,t,l,d,h,f,v,y,b,R,x,S,j=u.queue;Array.isArray(j)&&(p=(R=eg(["setUserToken","init"].map(function(e){return eg(tc(j.slice().reverse(),function(t){return eg(t,1)[0]===e})||[],2)[1]}),2))[0],m=R[1]),d=(null==(l=(e=c)._initialResults)||null==(t=l[e.indexName])?void 0:t.state)||{},h=e.mainHelper.state,i={userToken:d.userToken||h.userToken,clickAnalytics:d.clickAnalytics||h.clickAnalytics},o||s.overrideStateWithoutTriggeringChangeEvent(ei(en({},s.state),{clickAnalytics:!0})),a||c.scheduleSearch();var w=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=tf(e);if(r){var n=s.state.userToken;t?i():setTimeout(i,0)}function i(){s.overrideStateWithoutTriggeringChangeEvent(ei(en({},s.state),{userToken:r})),n&&n!==e&&c.scheduleSearch()}};function P(e){w(e,!0),u("setUserToken",e)}var _=void 0,F=function(){if(("u"<typeof document?"undefined":ey(document))==="object"&&"string"==typeof document.cookie)for(var e="".concat("_ALGOLIA","="),t=document.cookie.split(";"),r=0;r<t.length;r++){for(var n=t[r];" "===n.charAt(0);)n=n.substring(1);if(0===n.indexOf(e))return n.substring(e.length,n.length)}}();_=F||"anonymous-".concat("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}));var I=i.userToken;(null==r?void 0:r.userToken)&&(x=r.userToken),x?P(x):I?P(I):g?P(g):p?P(p):_&&(P(_),((null==r?void 0:r.useCookie)||(null==m?void 0:m.useCookie))&&(f=_,v=(null==r?void 0:r.cookieDuration)||(null==m?void 0:m.cookieDuration),(y=new Date).setTime(y.getTime()+(v||15552e6)),b="expires=".concat(y.toUTCString()),document.cookie="_ALGOLIA=".concat(f,";").concat(b,";path=/"))),u("onUserTokenChange",function(e){return w(e,!0)},{immediate:!0});var T=u;th(u)&&(T=function(e,t){var r=eg(to(c.client),2);return u(e,t,{headers:{"X-Algolia-Application-Id":r[0],"X-Algolia-API-Key":r[1]}})});var E=new Set;c.mainHelper.derivedHelpers[0].on("result",function(e){var t=e.results;t&&(!t.queryID||t.queryID!==S)&&(S=t.queryID,E.clear())}),c.sendEventToInsights=function(e){if(n)n(e,T);else if(e.insightsMethod){if("viewedObjectIDs"===e.insightsMethod){var t=e.payload,r=t.objectIDs.filter(function(e){return!E.has(e)});if(0===r.length)return;r.forEach(function(e){return E.add(e)}),t.objectIDs=r}e.payload.algoliaSource=["instantsearch"],o&&e.payload.algoliaSource.pu
1sh("instantsearch-automatic"),"internal"===e.eventModifier&&e.payload.algoliaSource.push("instantsearch-internal"),T(e.insightsMethod,e.payload)}}},unsubscribe:function(){u("onUserTokenChange",void 0),c.sendEventToInsights=eo,s&&i&&(s.overrideStateWithoutTriggeringChangeEvent(en({},s.state,i)),c.scheduleSearch())}}}}function th(e){var t=eg((e.version||"").split(".").map(Number),2),r=t[0],n=t[1];return r>=3||2===r&&n>=6||1===r&&n>=10}function tf(e){if(e)return"number"==typeof e?e.toString():e}var tm=["ais.index","ais.feedContainer"];function tp(e){return tm.includes(e.$$type)}function tg(e,t,r){var n=t.getHelper();return{uiState:r,helper:n,parent:t,instantSearchInstance:e,state:n.state,renderState:e.renderState,templatesConfig:e.templatesConfig,createURL:t.createURL,scopedResults:[],searchMetadata:{isSearchStalled:"stalled"===e.status},status:e.status,error:e.error}}function tv(e,t,r){var n=t.getResultsForWidget(r),i=t.getHelper();return{helper:i,parent:t,instantSearchInstance:e,results:n,scopedResults:t.getScopedResults(),state:n&&"_state"in n?n._state:i.state,renderState:e.renderState,templatesConfig:e.templatesConfig,createURL:t.createURL,searchMetadata:{isSearchStalled:"stalled"===e.status},status:e.status,error:e.error}}function ty(e){var t=e.renderState,r=e.instantSearchInstance,n=e.parent,i=n?n.getIndexId():r.mainIndex.getIndexId();r.renderState=ei(en({},r.renderState),er({},i,en({},r.renderState[i],t)))}var tb=e.i(28948),tR=function(e){e&&(window.document.title=e)},tx=function(){function e(t){var r=this,n=t.windowTitle,i=t.writeDelay,a=t.createURL,s=t.parseURL,o=t.getLocation,c=t.start,u=t.dispose,l=t.push,d=t.cleanUrlOnDispose;te(this,e),er(this,"$$type","ais.browser"),er(this,"windowTitle",void 0),er(this,"writeDelay",void 0),er(this,"_createURL",void 0),er(this,"parseURL",void 0),er(this,"getLocation",void 0),er(this,"writeTimer",void 0),er(this,"_onPopState",void 0),er(this,"inPopState",!1),er(this,"isDisposed",!1),er(this,"latestAcknowledgedHistory",0),er(this,"_start",void 0),er(this,"_dispose",void 0),er(this,"_push",void 0),er(this,"_cleanUrlOnDispose",void 0),this.windowTitle=n,this.writeTimer=void 0,this.writeDelay=void 0===i?400:i,this._createURL=a,this.parseURL=s,this.getLocation=o,this._start=c,this._dispose=u,this._push=l,this._cleanUrlOnDispose=void 0===d||d,ts(function(e){var t=e.window;tR(r.windowTitle&&r.windowTitle(r.read())),r.latestAcknowledgedHistory=t.history.length})}return tr(e,[{key:"read",value:function(){return this.parseURL({qsModule:tb.default,location:this.getLocation()})}},{key:"write",value:function(e){var t=this;ts(function(r){var n=r.window,i=t.createURL(e),a=t.windowTitle&&t.windowTitle(e);t.writeTimer&&clearTimeout(t.writeTimer),t.writeTimer=setTimeout(function(){tR(a),t.shouldWrite(i)&&(t._push?t._push(i):n.history.pushState(e,a||"",i),t.latestAcknowledgedHistory=n.history.length),t.inPopState=!1,t.writeTimer=void 0},t.writeDelay)})}},{key:"onUpdate",value:function(e){var t=this;this._start&&this._start(function(){e(t.read())}),this._onPopState=function(){t.writeTimer&&(clearTimeout(t.writeTimer),t.writeTimer=void 0),t.inPopState=!0,e(t.read())},ts(function(e){e.window.addEventListener("popstate",t._onPopState)})}},{key:"createURL",value:function(e){return this._createURL({qsModule:tb.default,routeState:e,location:this.getLocation()})}},{key:"dispose",value:function(){var e=this;this._dispose&&this._dispose(),this.isDisposed=!0,ts(function(t){var r=t.window;e._onPopState&&r.removeEventListener("popstate",e._onPopState)}),this.writeTimer&&clearTimeout(this.writeTimer),this._cleanUrlOnDispose&&this.write({})}},{key:"start",value:function(){this.isDisposed=!1}},{key:"shouldWrite",value:function(e){var t=this;return ts(function(r){var n=r.window;if(t.isDisposed&&!t._cleanUrlOnDispose)return!1;var i=!(t.isDisposed&&t.latestAcknowledgedHistory!==n.history.length);return!t.inPopState&&i&&e!==n.location.href})}}]),e}();function tS(e){return e.configure,ed(e,["configure"])}function tj(e){return e!==Object(e)}var tw=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.router,r=void 0===t?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.createURL,r=void 0===t?function(e){var t=e.qsModule,r=e.routeState,n=e.location,i=n.protocol,a=n.hostname,s=n.port,o=void 0===s?"":s,c=n.pathname,u=n.hash,l=t.stringify(r),d=""===o?"":":".concat(o);return l?"".concat(i,"//").concat(a).concat(d).concat(c,"?").concat(l).concat(u):"".concat(i,"//").concat(a).concat(d).concat(c).concat(u)}:t,n=e.parseURL,i=void 0===n?function(e){var t=e.qsModule,r=e.location;return t.parse(r.search.slice(1),{arrayLimit:99})}:n,a=e.writeDelay,s=e.windowTitle,o=e.getLocation;return new tx({createURL:r,parseURL:i,writeDelay:void 0===a?400:a,windowTitle:s,getLocation:void 0===o?function(){return ts(function(e){return e.window.location},{fallback:function(){throw Error("You need to provide `getLocation` to the `history` router in environments where `window` does not exist.")}})}:o,start:e.start,dispose:e.dispose,push:e.push,cleanUrlOnDispose:e.cleanUrlOnDispose})}():t,n=e.stateMapping,i=void 0===n?{$$type:"ais.simple",stateToRoute:function(e){return Object.keys(e).reduce(function(t,r){return ei(en({},t),er({},r,tS(e[r])))},{})},routeToState:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];return(void 0===n?"undefined":ey(n))!=="object"||null===n?t:ei(en({},t),er({},r,tS(n)))},{})}}:n,a=e.$$internal,s=void 0!==a&&a;return function(e){var t=e.instantSearchInstance;
1t._createURL=function(e){var n=0===t.mainIndex.getWidgets().length?t._initialUiState:t.mainIndex.getWidgetUiState({}),a=Object.keys(e).reduce(function(t,r){return ei(en({},t),er({},r,e[r]))},n),s=i.stateToRoute(a);return r.createURL(s)};var n=void 0,a=t._initialUiState;return{$$type:"ais.router({router:".concat(r.$$type||"__unknown__",", stateMapping:").concat(i.$$type||"__unknown__","})"),$$internal:s,onStateChange:function(e){var t=e.uiState,a=i.stateToRoute(t);(void 0===n||!function e(t,r){if(t===r)return!0;if(tj(t)||tj(r)||"function"==typeof t||"function"==typeof r)return t===r;if(Object.keys(t).length!==Object.keys(r).length)return!1;var n=!0,i=!1,a=void 0;try{for(var s,o=Object.keys(t)[Symbol.iterator]();!(n=(s=o.next()).done);n=!0){var c=s.value;if(!(c in r)||!e(t[c],r[c]))return!1}}catch(e){i=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(i)throw a}}return!0}(n,a))&&(r.write(a),n=a)},subscribe:function(){t._initialUiState=en({},a,i.routeToState(r.read())),r.onUpdate(function(e){t.mainIndex.getWidgets().length>0&&t.setUiState(i.routeToState(e))})},started:function(){var e;null==(e=r.start)||e.call(r)},unsubscribe:function(){r.dispose()}}}},tP=0,t_=Promise.resolve();function tF(e){var t=null,r=!1,n=function(){for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];null===t&&(t=t_.then(function(){if(t=null,r){r=!1;return}e.apply(void 0,e7(i))}))};return n.wait=function(){if(null===t)throw Error("The deferred function should be called before calling `wait()`");return t},n.cancel=function(){null!==t&&(r=!0)},n}function tI(e){for(var t=e.getParent(),r=[e.getHelper().state];null!==t;)r=[t.getHelper().state].concat(r),t=t.getParent();return r}var tT=function(e,t){t.facets,t.disjunctiveFacets,t.facetsRefinements,t.facetsExcludes,t.disjunctiveFacetsRefinements,t.numericRefinements,t.tagRefinements,t.hierarchicalFacets,t.hierarchicalFacetsRefinements,t.ruleContexts;var r=ed(t,["facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements","ruleContexts"]);return e.setQueryParameters(r)},tE=function(e,t){var r=[].concat(e.ruleContexts).concat(t.ruleContexts).filter(Boolean).filter(function(e,t,r){return r.indexOf(e)===t});return r.length>0?e.setQueryParameters({ruleContexts:r}):e},tO=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t){var r,n,i,a,s,o,c,u;return tT((u=tE((r=e.setQueryParameters({hierarchicalFacetsRefinements:en({},e.hierarchicalFacetsRefinements,t.hierarchicalFacetsRefinements)}),n=r.setQueryParameters({hierarchicalFacets:t.hierarchicalFacets.reduce(function(e,t){var r=function(e,t){if(!Array.isArray(e))return -1;for(var r=0;r<e.length;r++)if(t(e[r]))return r;return -1}(e,function(e){return e.name===t.name});if(-1===r)return e.concat(t);var n=e.slice();return n.splice(r,1,t),n},r.hierarchicalFacets)}),i=t.tagRefinements.reduce(function(e,t){return e.addTagRefinement(t)},n),a=i.setQueryParameters({numericRefinements:en({},i.numericRefinements,t.numericRefinements)}),s=a.setQueryParameters({disjunctiveFacetsRefinements:en({},a.disjunctiveFacetsRefinements,t.disjunctiveFacetsRefinements)}),o=s.setQueryParameters({facetsExcludes:en({},s.facetsExcludes,t.facetsExcludes)}),c=o.setQueryParameters({facetsRefinements:en({},o.facetsRefinements,t.facetsRefinements)}),t.disjunctiveFacets.reduce(function(e,t){return e.addDisjunctiveFacet(t)},c)),t),t.facets.reduce(function(e,t){return e.addFacet(t)},u)),t)})},tC=ea({name:"index-widget"});function tN(e,t){var r=t.state,n=t.recommendState,i=t.isPageReset,a=t._uiState;r!==e.state&&(e.state=r,e.emit("change",{state:e.state,results:e.lastResults,isPageReset:i,_uiState:a})),n!==e.recommendState&&(e.recommendState=n)}function tk(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(e,r){return!tp(r)&&(r.getWidgetUiState||r.getWidgetState)?r.getWidgetUiState?r.getWidgetUiState(e,t):r.getWidgetState(e,t):e},r)}function tA(e,t){var r=t.initialSearchParameters,n=ed(t,["initialSearchParameters"]);return e.reduce(function(e,t){return!t.getWidgetSearchParameters||tp(t)?e:"search"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,n):t.getWidgetSearchParameters(e,n)},r)}function tD(e,t){var r=t.initialRecommendParameters,n=ed(t,["initialRecommendParameters"]);return e.reduce(function(e,t){return!tp(t)&&"recommend"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,n):e},r)}var tH=function(e){if(void 0===e||void 0===e.indexName&&!e.EXPERIMENTAL_isolated)throw Error(tC("The `indexName` option is required."));var t=e.indexName,r=void 0===t?"":t,n=e.indexId,i=void 0===n?r:n,a=e.EXPERIMENTAL_isolated,s=void 0!==a&&a,o=[],c={},u=null,l=null,d=null,h=null,f=null,m=!1,p=!1;return{$$type:"ais.index",$$widgetType:"ais.index",_isolated:s,getIndexName:function(){return r},getIndexId:function(){return i},getHelper:function(){return d},getResults:function(){return(null==h?void 0:h.lastResults)?(h.lastResults._state=d.state,h.lastResults):null},getResultsForWidget:function(e){return"recommend"!==e.dependsOn||tp(e)||void 0===e.$$id?this.getResults():(null==d?void 0:d.lastRecommendResults)?d.lastRecommendResults[e.$$id]:null},getPreviousState:function(){return f},getScopedResults:function(){var e=this.getParent();return function e(t){return t.filter(tp).reduce(function(t,r){return t.concat.apply(t,[{indexId:r.getIndexId(),results:r.getResults(),helper:r.getHelper()}].concat(e7(e(r.getWidgets()))))},[])}(e?e.getWidgets():0===r.length?this.getWidgets():[this])},getParent:function(){return s?null:l},createURL:function(e){return"function"==typeof e?u._createURL(er({},i,e(c))):u._createURL(er({},i,tk(o,{searchParameters:e,helper:d})))},scheduleLocalSearch:tF(function(){s&&(null==d||d.search())}),getWidgets:function(){return o},addWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error(tC("The `addWidgets` method expects an array of widgets."));var r=e.reduce(function(e,t){return e.concat(Array.isArray(t)?t:[t])},[]);if(r.some(function(e){return"function"!=typeof e.init&&"function"!=typeof e.render}))throw Error(tC("The widget definition expects a `render` and/or an `init` method."));return r.forEach(function(e){(e.parent=t,!tp(e))&&(u&&"recommend"===e.dependsOn?u._hasRecommendWidget=!0:u?u._hasSearchWidget=!0:"recommend"===e.dependsOn?m=!0:p=!0,"recommend"===e.dependsOn&&(e.$$id=tP++))}),o=o.concat(r),u&&r.length&&(tN(d,{state:tA(o,{uiState:c,initialSearchParameters:d.state}),recommendState:tD(o,{uiState:c,initialRecommendParameters:d.recommendState}),_uiState:c}),r.forEach(function(e){e.getRenderState&&ty({renderState:e.getRenderState(u.renderState[t.getIndexId()]||{},tg(u,t,u._initialUiState)),instantSearchInstance:u,parent:t})}),r.forEach(function(e){e.init&&e.init(tg(u,t,u._initialUiState))}),s?this.scheduleLocalSearch():u.scheduleSearch()),this},removeWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error(tC("The `removeWidgets` method expects an array of widgets."));var r=e.reduce(function(e,t){return e.concat(Array.isArray(t)?t:[t])},[]);if(r.some(function(e){return"function"!=typeof e.dispose}))throw Error(tC("The widget definition expects a `dispose` method."));if((o=o.filter(function(e){return -1===r.indexOf(e)}
1)).forEach(function(e){e.parent=void 0,tp(e)||(u&&"recommend"===e.dependsOn?u._hasRecommendWidget=!0:u?u._hasSearchWidget=!0:"recommend"===e.dependsOn?m=!0:p=!0)}),u&&r.length){var n=r.reduce(function(e,r){var n=r.dispose({helper:d,state:e.cleanedSearchState,recommendState:e.cleanedRecommendState,parent:t});return ti(n,ex.default.RecommendParameters)?e.cleanedRecommendState=n:n&&(e.cleanedSearchState=n),e},{cleanedSearchState:d.state,cleanedRecommendState:d.recommendState}),i=n.cleanedSearchState,a=n.cleanedRecommendState,l=u.future.preserveSharedStateOnUnmount?tA(o,{uiState:c,initialSearchParameters:new ex.default.SearchParameters({index:this.getIndexName()})}):tA(o,{uiState:tk(o,{searchParameters:i,helper:d}),initialSearchParameters:i});c=tk(o,{searchParameters:l,helper:d}),d.setState(l),d.recommendState=a,o.length&&(s?this.scheduleLocalSearch():u.scheduleSearch())}return this},init:function(e){var t,n=this,a=e.instantSearchInstance,g=e.parent,v=e.uiState;if(null===d){u=a,l=g,c=v[i]||{};var y=a.mainHelper,b=tA(o,{uiState:c,initialSearchParameters:new ex.default.SearchParameters({index:r})}),R=tD(o,{uiState:c,initialRecommendParameters:new ex.default.RecommendParameters});(d=(0,ex.default)(y.getClient(),b.index,b)).recommendState=R,d.search=function(){return s?(a.status="loading",n.render({instantSearchInstance:a}),a.compositionID?d.searchWithComposition():d.searchOnlyWithDerivedHelpers()):a.onStateChange?(a.onStateChange({uiState:a.mainIndex.getWidgetUiState({}),setUiState:function(e){return a.setUiState(e,!1)}}),y):y.search()},d.searchWithoutTriggeringOnStateChange=function(){return y.search()},d.searchForFacetValues=function(e,t,r,i){var a=tO.apply(void 0,[y.state].concat(e7(tI(n)))).setQueryParameters(i);return y.searchForFacetValues(e,t,r,a)};var x=r?d:(0,ex.default)({},"__empty_index__",{});h=(s?x:function(e,t){for(;e;){if(e._isolated)return e.getHelper();e=e.getParent()}return t}(g,y)).derive(function(){return tO.apply(void 0,[y.state].concat(e7(tI(n))))},function(){return n.getHelper().recommendState});var S=null==(t=a._initialResults)?void 0:t[this.getIndexId()];if(null==S?void 0:S.results){var j=new ex.default.SearchResults(new ex.default.SearchParameters(S.state),S.results);h.lastResults=j,d.lastResults=j}if(null==S?void 0:S.recommendResults){var w=new ex.default.RecommendResults(new ex.default.RecommendParameters({params:S.recommendResults.params}),S.recommendResults.results);h.lastRecommendResults=w,d.lastRecommendResults=w}d.on("change",function(e){e.isPageReset&&function e(t){var r=t.filter(tp);0!==r.length&&r.forEach(function(t){var r=t.getHelper();tN(r,{state:r.state.resetPage(),recommendState:r.recommendState,isPageReset:!0}),e(t.getWidgets())})}(o)}),h.on("search",function(){a.scheduleStalledRender()}),h.on("result",function(e){var t=e.results;a.scheduleRender(),d.lastResults=t,f=null==t?void 0:t._state}),h.on("recommend:result",function(e){var t=e.recommend;a.scheduleRender(),d.lastRecommendResults=t.results}),o.forEach(function(e){e.getRenderState&&ty({renderState:e.getRenderState(a.renderState[n.getIndexId()]||{},tg(a,n,v)),instantSearchInstance:a,parent:n})}),o.forEach(function(e){e.init&&e.init(tg(a,n,v))}),d.on("change",function(e){var t=e.state,r=e._uiState;c=tk(o,{searchParameters:t,helper:d},r||{}),a.onStateChange||a.onInternalStateChange()}),S&&a.scheduleRender(),m&&(a._hasRecommendWidget=!0),p&&(a._hasSearchWidget=!0)}},render:function(e){var t=this,n=e.instantSearchInstance;"error"===n.status&&!n.mainHelper.hasPendingRequests()&&f&&d.setState(f);var i=this.getResults()||(null==h?void 0:h.lastRecommendResults)||s&&!r?o:o.filter(function(e){return e.shouldRender});(i=i.filter(function(e){return!e.shouldRender||e.shouldRender({instantSearchInstance:n})})).forEach(function(e){e.getRenderState&&ty({renderState:e.getRenderState(n.renderState[t.getIndexId()]||{},tv(n,t,e)),instantSearchInstance:n,parent:t})}
1),i.forEach(function(e){e.render&&e.render(tv(n,t,e))})},dispose:function(){var e=this;o.forEach(function(t){t.dispose&&d&&t.dispose({helper:d,state:d.state,recommendState:d.recommendState,parent:e})}),u=null,l=null,null==d||d.removeAllListeners(),d=null,null==h||h.detach(),h=null},getWidgetUiState:function(e){return o.filter(tp).filter(function(e){return!e._isolated}).reduce(function(e,t){return t.getWidgetUiState(e)},ei(en({},e),er({},i,en({},e[i],c))))},getWidgetState:function(e){return this.getWidgetUiState(e)},getWidgetSearchParameters:function(e,t){var r=t.uiState;return tA(o,{uiState:r,initialSearchParameters:e})},shouldRender:function(){return!0},refreshUiState:function(){c=tk(o,{searchParameters:this.getHelper().state,helper:this.getHelper()},c)},setIndexUiState:function(e){var t="function"==typeof e?e(c):e;u.setUiState(function(e){return ei(en({},e),er({},i,t))})}}},t$=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.descendantName,n=t.modifierName;return"".concat("ais","-").concat(e).concat(r?"-".concat(r):"").concat(n?"--".concat(n):"")}};function tL(e,t){return(Array.isArray(t)?t:t.split(".")).reduce(function(e,t){return e&&e[t]},e)}var tq=t$("Highlight");function tU(e){return e.map(function(e){return e.isHighlighted?eY+e.value+eK:e.value}).join("")}var tQ=new RegExp(/\w/i);function tW(e){return e.some(function(e){return e.isHighlighted})?e.map(function(t,r){var n,i,a,s,o,c;return ei(en({},t),{isHighlighted:(a=e[r],s=(null==(n=e[r+1])?void 0:n.isHighlighted)||!0,o=(null==(i=e[r-1])?void 0:i.isHighlighted)||!0,tQ.test((c=a.value)&&ez.test(c)?c.replace(eG,function(e){return eV[e]}):c)||o!==s?!a.isHighlighted:!o)})}):e.map(function(e){return ei(en({},e),{isHighlighted:!1})})}function tM(e){var t=e.split(eY),r=t.shift(),n=r?[{value:r,isHighlighted:!1}]:[];return t.forEach(function(e){var t=e.split(eK);n.push({value:t[0],isHighlighted:!0}),""!==t[1]&&n.push({value:t[1],isHighlighted:!1})}),n}var tB=t$("ReverseHighlight"),tV=t$("Snippet"),tG=t$("ReverseSnippet");function tz(e){var t;return(null==(t=e.compositionFeedsResults)?void 0:t.length)?e.compositionFeedsResults:e.results||[]}function tJ(e){var t=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0;return e.replace(/%s/g,function(){return encodeURIComponent(r[i++])})};return Object.keys(e).map(function(r){var n;return t("%s=%s",r,(n=e[r],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n))?JSON.stringify(e[r]):e[r])}).join("&")}function tY(e,t){var r=e[t.getIndexId()]||{};t.getHelper().setState(t.getWidgetSearchParameters(t.getHelper().state,{uiState:r})),t.getWidgets().filter(tp).forEach(function(t){return tY(e,t)})}var tK=ea({name:"instantsearch"});function tX(){return"#"}var tZ={preserveSharedStateOnUnmount:!1,persistHierarchicalRootCount:!1},t0=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(e){te(this,t),er(r=function(e,t){t=e5(t);var r=e8()?Reflect.construct(t,[],e5(e).constructor):t.apply(e,void 0);if(r&&("object"===ey(r)||"function"==typeof r))return r;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,t),"client",void 0),er(r,"indexName",void 0),er(r,"compositionID",void 0),er(r,"insightsClient",void 0),er(r,"onStateChange",null),er(r,"future",void 0),er(r,"helper",void 0),er(r,"mainHelper",void 0),er(r,"mainIndex",void 0),er(r,"started",void 0),er(r,"templatesConfig",void 0),er(r,"renderState",{}),er(r,"_stalledSearchDelay",void 0),er(r,"_searchStalledTimer",void 0),er(r,"_initialUiState",void 0),er(r,"_initialResults",void 0),er(r,"_manuallyResetScheduleSearch",!1),er(r,"_resetScheduleSearch",void 0),er(r,"_createURL",void 0),er(r,"_searchFunction",void 0),er(r,"_mainHelperSearch",void 0),er(r,"_hasSearchWidget",!1),er(r,"_hasRecommendWidget",!1),er(r,"_insights",void 0),er(r,"middleware",[]),er(r,"sendEventToInsights",void 0),er(r,"status","idle"),er(r,"error",void 0),er(r,"scheduleSearch",tF(function(){r.started&&r.mainHelper.search()})),er(r,"scheduleRender",tF(function(){var e,t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];(null==(e=r.mainHelper)?void 0:e.hasPendingRequests())||(clearTimeout(r._searchStalledTimer),r._searchStalledTimer=null,t&&(r.status="idle",r.error=void 0)),r.mainIndex.render({instantSearchInstance:r}),r.emit("render")})),er(r,"onInternalStateChange",tF(function(){var e=r.mainIndex.getWidgetUiState({});r.middleware.forEach(function(t){t.instance.onStateChange({uiState:e})})})),r.setMaxListeners(100);var r,n=e.indexName,i=e.compositionID,a=e.numberLocale,s=e.initialUiState,o=e.routing,c=void 0===o?null:o,u=e.insights,l=void 0===u?void 0:u,d=e.searchFunction,h=e.stalledSearchDelay,f=e.searchClient,m=void 0===f?null:f,p=e.insightsClient,g=void 0===p?null:p,v=e.onStateChange,y=e.future,b=void 0===y?en({},tZ,e.future||{}):y;if(null===m)throw Error(tK("The `searchClient` option is required."));if("function"!=typeof m.search)throw Error("The `searchClient` must implement a `search` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/backend-instantsearch/js/");if("function"==typeof m.addAlgoliaAgent&&m.addAlgoliaAgent("instantsearch.js (".concat("4.99.0",")")),g&&"function"!=typeof g)throw Error(tK("The `insightsClient` option should be a function."));if(r.client=m,r.future=b,r.insightsClient=g,r.indexName=void 0===n?"":n,r.compositionID=i,r.helper=null,r.mainHelper=null,r.mainIndex=tH({indexName:r.compositionID||r.indexName}),r.onStateChange=void 0===v?null:v,r.started=!1,r.templatesConfig={helpers:{formatNumber:function(e,t){var r;
1return r=Number(t(e)),r.toLocaleString(a)},highlight:function(e,t){try{var r,n,i,a,s,o,c,u,l,d=JSON.parse(e);return t((n=(r=ei(en({},d),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,o=r.cssClasses,c=void 0===o?{}:o,u=(tL(s._highlightResult,n)||{}).value,l=tq({descendantName:"highlighted"})+(c.highlighted?" ".concat(c.highlighted):""),(void 0===u?"":u).replace(RegExp(eY,"g"),"<".concat(a,' class="').concat(l,'">')).replace(RegExp(eK,"g"),"</".concat(a,">"))))}catch(e){throw Error('\nThe highlight helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},reverseHighlight:function(e,t){try{var r,n,i,a,s,o,c,u,l,d=JSON.parse(e);return t((n=(r=ei(en({},d),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,o=r.cssClasses,c=void 0===o?{}:o,u=(tL(s._highlightResult,n)||{}).value,l=tB({descendantName:"highlighted"})+(c.highlighted?" ".concat(c.highlighted):""),tU(tW(tM(void 0===u?"":u))).replace(RegExp(eY,"g"),"<".concat(a,' class="').concat(l,'">')).replace(RegExp(eK,"g"),"</".concat(a,">"))))}catch(e){throw Error('\n  The reverseHighlight helper expects a JSON object of the format:\n  { "attribute": "name", "highlightedTagName": "mark" }')}},snippet:function(e,t){try{var r,n,i,a,s,o,c,u,l,d=JSON.parse(e);return t((n=(r=ei(en({},d),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,o=r.cssClasses,c=void 0===o?{}:o,u=(tL(s._snippetResult,n)||{}).value,l=tV({descendantName:"highlighted"})+(c.highlighted?" ".concat(c.highlighted):""),(void 0===u?"":u).replace(RegExp(eY,"g"),"<".concat(a,' class="').concat(l,'">')).replace(RegExp(eK,"g"),"</".concat(a,">"))))}catch(e){throw Error('\nThe snippet helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},reverseSnippet:function(e,t){try{var r,n,i,a,s,o,c,u,l,d=JSON.parse(e);return t((n=(r=ei(en({},d),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,o=r.cssClasses,c=void 0===o?{}:o,u=(tL(s._snippetResult,n)||{}).value,l=tG({descendantName:"highlighted"})+(c.highlighted?" ".concat(c.highlighted):""),tU(tW(tM(void 0===u?"":u))).replace(RegExp(eY,"g"),"<".concat(a,' class="').concat(l,'">')).replace(RegExp(eK,"g"),"</".concat(a,">"))))}catch(e){throw Error('\n  The reverseSnippet helper expects a JSON object of the format:\n  { "attribute": "name", "highlightedTagName": "mark" }')}},insights:function(e,t){try{var r,n=JSON.parse(e),i=n.method,a=n.payload;return t((r=en({objectIDs:[this.objectID]},a),function(e){var t,r=e.method,n=e.payload;if((void 0===n?"undefined":ey(n))!=="object")throw Error("The insights helper expects the payload to be an object.");try{t=eL(n)}catch(e){throw Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(r,'" data-insights-payload="').concat(t,'"')}({method:i,payload:r})))}catch(e){throw Error('\nThe insights helper expects a JSON object of the format:\n{ "method": "method-name", "payload": { "eventName": "name of the event" } }')}}},compileOptions:{}},r._stalledSearchDelay=void 0===h?200:h,r._searchStalledTimer=null,r._createURL=tX,r._initialUiState=void 0===s?{}:s,r._initialResults=null,r._insights=l,d&&(r._searchFunction=d),r.sendEventToInsights=eo,c){var R="boolean"==typeof c?{}:c;R.$$internal=!0,r.use(tw(R))}if(l){var x="boolean"==typeof l?{}:l;x.$$internal=!0,r.use(td(x))}return ts(function(e){var t,r;return(null==(r=e.window.navigator)||null==(t=r.userAgent)?void 0:t.indexOf("Algolia Crawler"))>-1},{fallback:function(){return!1}})&&r.use(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.$$internal,r=void 0!==t&&t;return function(e){var t=e.instantSearchInstance,n={widgets:[]},i=document.createElement("meta"),a=document.querySelector("head");return i.name="instantsearch:widgets",{$$type:"ais.metadata",$$internal:r,onStateChange:function(){},subscribe:function(){setTimeout(function(){var e;n.ua=(e=t.client).transporter&&e.transporter.userAgent?e.transporter.userAgent.value:e._ua,function e(t,r,n){var i=tg(r,r.mainIndex,r._initialUiState);t.forEach(function(t){var a={};
1if(t.getWidgetRenderState){var s=t.getWidgetRenderState(i);s&&s.widgetParams&&(a=s.widgetParams)}var o=Object.keys(a).filter(function(e){return void 0!==a[e]});n.widgets.push({type:t.$$type,widgetType:t.$$widgetType,params:o}),tp(t)&&e(t.getWidgets(),r,n)})}(t.mainIndex.getWidgets(),t,n),t.middleware.forEach(function(e){return n.widgets.push({middleware:!0,type:e.instance.$$type,internal:e.instance.$$internal})}),i.content=JSON.stringify(n),a.appendChild(i)},0)},started:function(){},unsubscribe:function(){i.remove()}}}}({$$internal:!0})),r}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&tn(t,e),tr(t,[{key:"_isSearchStalled",get:function(){return"stalled"===this.status}},{key:"use",value:function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.map(function(t){var r=en({$$type:"__unknown__",$$internal:!1,subscribe:eo,started:eo,unsubscribe:eo,onStateChange:eo},t({instantSearchInstance:e}));return e.middleware.push({creator:t,instance:r}),r});return this.started&&i.forEach(function(e){e.subscribe(),e.started()}),this}},{key:"unuse",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.middleware.filter(function(e){return t.includes(e.creator)}).forEach(function(e){return e.instance.unsubscribe()}),this.middleware=this.middleware.filter(function(e){return!t.includes(e.creator)}),this}},{key:"EXPERIMENTAL_use",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.use.apply(this,e7(t))}},{key:"addWidget",value:function(e){return this.addWidgets([e])}},{key:"addWidgets",value:function(e){if(!Array.isArray(e))throw Error(tK("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));if(this.compositionID&&e.some(function(e){return!Array.isArray(e)&&tp(e)&&!e._isolated}))throw Error(tK("The `index` widget cannot be used with a composition-based InstantSearch implementation."));return this.mainIndex.addWidgets(e),this}},{key:"removeWidget",value:function(e){return this.removeWidgets([e])}},{key:"removeWidgets",value:function(e){if(!Array.isArray(e))throw Error(tK("The `removeWidgets` method expects an array of widgets. Please use `removeWidget`."));return this.mainIndex.removeWidgets(e),this}},{key:"start",value:function(){var e=this;if(this.started)throw Error(tK("The `start` method has already been called once."));var t=this.mainHelper||(0,ex.default)(this.client,this.indexName,void 0,{persistHierarchicalRootCount:this.future.persistHierarchicalRootCount});if(this.compositionID&&(t.searchForFacetValues=t.searchForCompositionFacetValues.bind(t)),t.search=function(){return e.status="loading",e.scheduleRender(!1),e._hasSearchWidget&&(e.compositionID?t.searchWithComposition():t.searchOnlyWithDerivedHelpers()),e._hasRecommendWidget&&t.recommend(),t},this._searchFunction){var r={search:function(){return new Promise(eo)}};this._mainHelperSearch=t.search.bind(t),t.search=function(){var n=e.mainIndex.getHelper(),i=(0,ex.default)(r,n.state.index,n.state);return i.once("search",function(t){var r=t.state;n.overrideStateWithoutTriggeringChangeEvent(r),e._mainHelperSearch()}),i.on("change",function(e){var t=e.state;n.setState(t)}),e._searchFunction(i),t}}if(t.on("error",function(t){var r=t.error;if(!ti(r,Error)){var n=r;r=Object.keys(n).reduce(function(e,t){return e[t]=n[t],e},Error(n.message))}r.error=r,e.error=r,e.status="error",e.scheduleRender(!1),e.emit("error",r)}),this.mainHelper=t,this.middleware.forEach(function(e){e.instance.subscribe()}),this.mainIndex.init({instantSearchInstance:this,parent:null,uiState:this._initialUiState}),this._initialResults){!function(e,t){if(t&&("transporter"in e&&!e._cacheHydrated||e._useCache&&"function"==typeof e.addAlgoliaAgent)){var r=[Object.keys(t).reduce(function(e,r){var n=t[r],i=n.state,a=n.requestParams,s=tz(n),o=s&&i?s.map(function(e,t){return en({indexName:i.index||e.index},(null==a?void 0:a[t])||e.params?{params:tJ((null==a?void 0:a[t])||e.params.split("&").reduce(function(e,t){var r=eg(t.split("="),2),n=r[0],i=r[1];
1return e[n]=i?decodeURIComponent(i):"",e},{}))}:{})}):[];return e.concat(o)},[])],n=Object.keys(t).reduce(function(e,r){var n=tz(t[r]);return n?e.concat(n):e},[]);if("transporter"in e&&!e._cacheHydrated){e._cacheHydrated=!0;var i=e.search.bind(e);e.search=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var s=Array.isArray(t)?t.map(function(e){return ei(en({},e),{params:tJ(e.params)})}):tJ(t.requestBody.params);return e.transporter.responsesCache.get({method:"search",args:[s].concat(e7(n))},function(){return i.apply(void 0,[t].concat(e7(n)))})},e.transporter.responsesCache.set({method:"search",args:r},{results:n})}if(!("transporter"in e)){var a="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:r}));e.cache=ei(en({},e.cache),er({},a,JSON.stringify({results:Object.keys(t).map(function(e){return tz(t[e])})})))}}}(this.client,this._initialResults),this.mainHelper._recommendCache=Object.keys(n=this._initialResults).reduce(function(e,t){var r=n[t];return r.recommendResults?en({},e,r.recommendResults.results):e},{});var n,i=this.scheduleSearch;this.scheduleSearch=tF(eo),this._manuallyResetScheduleSearch?this._resetScheduleSearch=function(){e.scheduleSearch=i}:tF(function(){e.scheduleSearch=i})()}else this.mainIndex.getWidgets().length>0&&this.scheduleSearch();this.helper=this.mainIndex.getHelper(),this.started=!0,this.middleware.forEach(function(e){e.instance.started()}),void 0===this._insights&&t.derivedHelpers[0].once("result",function(){e.mainIndex.getScopedResults().some(function(e){var t=e.results;return null==t?void 0:t._automaticInsights})&&e.use(td({$$internal:!0,$$automatic:!0}))})}},{key:"dispose",value:function(){var e;this.scheduleSearch.cancel(),this.scheduleRender.cancel(),clearTimeout(this._searchStalledTimer),this.removeWidgets(this.mainIndex.getWidgets()),this.mainIndex.dispose(),this.started=!1,this.removeAllListeners(),null==(e=this.mainHelper)||e.removeAllListeners(),this.mainHelper=null,this.helper=null,this.middleware.forEach(function(e){e.instance.unsubscribe()})}},{key:"scheduleStalledRender",value:function(){var e=this;this._searchStalledTimer||(this._searchStalledTimer=setTimeout(function(){e.status="stalled",e.scheduleRender()},this._stalledSearchDelay))}},{key:"setUiState",value:function(e){var t=this,r=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(!this.mainHelper)throw Error(tK("The `start` method needs to be called before `setUiState`."));this.mainIndex.refreshUiState();var n="function"==typeof e?e(this.mainIndex.getWidgetUiState({})):e;this.onStateChange&&r?this.onStateChange({uiState:n,setUiState:function(e){tY("function"==typeof e?e(n):e,t.mainIndex),t.scheduleSearch(),t.onInternalStateChange()}}):(tY(n,this.mainIndex),this.scheduleSearch(),this.onInternalStateChange())}},{key:"getUiState",value:function(){return this.started&&this.mainIndex.refreshUiState(),this.mainIndex.getWidgetUiState({})}},{key:"createURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.started)throw Error(tK("The `start` method needs to be called before `createURL`."));return this._createURL(e)}},{key:"refresh",value:function(){if(!this.mainHelper)throw Error(tK("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}]),t}(ta.default),t1=e.i(90979),t2="7.33.1",t3=["react (".concat(i.version,")"),"react-instantsearch (".concat(t2,")"),"react-instantsearch-core (".concat(t2,")")],t4="react-instantsearch-server (".concat(t2,")");function t9(e,t){"function"==typeof e.addAlgoliaAgent&&t.filter(Boolean).forEach(function(t){e.addAlgoliaAgent(t)})}function t6(e){var t=e.children,n=function(e){var t=eg((0,i.useReducer)(function(e){return e+1},0),2)[1],n=eE(),a=eC(),s=eH().waitForResultsRef,o=null==a?void 0:a.initialResults,c=(0,i.useRef)(e),u=n||o||s,l=(0,i.useRef)(null);if((null==a?void 0:a.ssrSearchRef)&&(l=a.ssrSearchRef),null===l.current){var d,h,f,m=new t0(e);m._schedule=function(e){m._schedule.queue.push(e),clearTimeout(m._schedule.timer),m._schedule.timer=setTimeout(function(){m._schedule.queue.forEach(function(e){e()}),m._schedule.queue=[]},0)},m._schedule.queue=[],u&&(m._initialResults=o||{},m._manuallyResetScheduleSearch=!0),t9(e.searchClient,e7(t3).concat([n&&t4,(f="u">typeof window&&(null==(d=window.next)?void 0:d.version)||(void 0!==r.default?null==(h=r.default.env)?void 0:h.NEXT_RUNTIME:void 0))?"next.js (".concat(f,")"):null])),u&&m.start(),n&&n.notifyServer({search:m}
1),e.routing,l.current=m}var p,g=l.current,v=c.current;v.indexName!==e.indexName&&(g.helper.setIndex(e.indexName||"").search(),c.current=e),v.searchClient!==e.searchClient&&(t9(e.searchClient,e7(t3).concat([n&&t4])),g.mainHelper.setClient(e.searchClient).search(),c.current=e),v.onStateChange!==e.onStateChange&&(g.onStateChange=e.onStateChange,c.current=e),v.searchFunction!==e.searchFunction&&(g._searchFunction=e.searchFunction,c.current=e),v.stalledSearchDelay!==e.stalledSearchDelay&&(g._stalledSearchDelay=null!=(p=e.stalledSearchDelay)?p:200,c.current=e),eR(v.future,e.future)||(g.future=en({},tZ,e.future),c.current=e);var y=(0,i.useRef)(null);return(0,t1.useSyncExternalStore)((0,i.useCallback)(function(){var e=l.current;return null===y.current?e.started||(e.start(),t()):(clearTimeout(y.current),e._preventWidgetCleanup=!1),function(){null!=a&&a.ssrSearchRef||(clearTimeout(e._schedule.timer),y.current=setTimeout(function(){e.dispose()}),e._preventWidgetCleanup=!0)}},[t,a]),function(){return l.current},function(){return l.current})}(ed(e,["children"]));return n.started?i.default.createElement(eF.Provider,{value:n},i.default.createElement(ew.Provider,{value:n.mainIndex},t,i.default.createElement(t7,{search:n}))):null}function t7(e){var t=e.search;return(0,i.useEffect)(function(){t._resetScheduleSearch&&t._resetScheduleSearch()},[t]),null}var t5=e.i(80102);let t8={search:null};var re=ea({name:"hits",connector:!0}),rt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eo;return es(e,re()),function(r){var n,i,a=r||{},s=a.escapeHTML,o=void 0===s||s,c=a.transformItems,u=void 0===c?function(e){return e}:c;return{$$type:"ais.hits",init:function(t){e(ei(en({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){var r=this.getWidgetRenderState(t);e(ei(en({},r),{instantSearchInstance:t.instantSearchInstance}),!1),r.sendEvent("view:internal",r.items)},getRenderState:function(e,t){return ei(en({},e),{hits:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t,a,s,c,l,d,h,f=e.results,m=e.helper,p=e.instantSearchInstance;if(n||(n=eU({instantSearchInstance:p,helper:m,widgetType:this.$$type})),i||(a=(t={helper:m,widgetType:this.$$type,instantSearchInstance:p}).helper,s=t.widgetType,c=t.instantSearchInstance,i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=eq({widgetType:s,helper:a,methodName:"bindEvent",args:t,instantSearchInstance:c});return n.length?"data-insights-event=".concat(eL(n)):""}),!f)return{hits:[],items:[],results:void 0,banner:void 0,sendEvent:n,bindEvent:i,widgetParams:r};o&&f.hits.length>0&&(f.hits=e0(f.hits));var g=u(e1(e2(f.hits,f.page,f.hitsPerPage),f.queryID),{results:f}),v=null==(h=f.renderingContent)||null==(d=h.widgets)||null==(l=d.banners)?void 0:l[0];return{hits:g,items:g,results:f,banner:v,sendEvent:n,bindEvent:i,widgetParams:r}},dispose:function(e){var r=e.state;return(t(),o)?r.setQueryParameters(Object.keys(eJ).reduce(function(e,t){return ei(en({},e),er({},t,void 0))},{})):r},getWidgetSearchParameters:function(e,t){return o?e.setQueryParameters(eJ):e}}}},rr=e.i(17002),rn=e.i(71709);let ri=i.default.memo(({hit:e})=>{let{pageType:t}=e,r=e=>e&&e.replace(et.SearchPageConstants.DomainURL,"");return(0,n.jsx)(n.Fragment,{children:t==et.SearchPageConstants.productPage?(0,n.jsx)(({url:e,rating:t,image:i,title:a})=>{let s=a?null==a?void 0:a.split("|"):[],o=(0,y.useGlobalContext)();return(0,n.jsx)(rn.default,{href:r(e),children:(0,n.jsxs)("div",{className:"preview-card",children:[(0,n.jsxs)("div",{className:"preview-card-header",children:[(0,n.jsx)("h4",{children:(null==s?void 0:s.length)!==0?s[0]:""}),(0,n.jsx)("span",{children:t})]}),i&&(0,n.jsx)(b.ResponsiveImage,{directImageUrl:i,preload:!1,loading:"lazy"}),(0,n.jsx)(rr.Link,{style:"magenta",asButton:!0,href:r(e),text:o.getLabel("productDetail.buyButton","Buy now"),"data-action-detail":s[0]})]},"preview-card-1")})},{...e}):(0,n.jsx)(({url:e,title:t,image:i,description:a})=>{let s=t?null==t?void 0:t.split("|"):[],o=(0,y.useGlobalContext)();return(0,n.jsx)("a",{href:r(e),className:"preview-card card-container event_internal_link","data-action-detail":e||void 0,children:(0,n.jsxs)("div",{className:"card cursor mt-5",children:[i&&(0,n.jsx)("div",{className:"picture-container",children:(0,n.jsx)(b.ResponsiveImage,{directImageUrl:i,preload:!1,loading:"lazy",height:250,width:353})}),(0,n.jsxs)("div",{className:"content",children:[(0,n.jsx)("h5",{className:"card-title",children:(null==s?void 0:s.length)!==0?s[0]:""}),(0,n.jsx)("p",{children:a}),(0,n.jsx)(rr.Link,{style:"magenta",asButton:!0,href:r(e),text:o.getLabel("productListing.readMoreButton","Read more"),"data-action-detail":s[0]})]})]})})},{...e})})}),ra=({state:e,dispatch:t})=>{let{results:r}=function(){var e,t,r,n,a,s,o,c,u,l,d,h,f,m,p,g,v,y,b=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).catchError,R=eI(),x=(e=eI(),r=(t=e_()).getIndexId(),a=(n=eg((0,i.useState)(function(){return e.getUiState()}),2))[0],s=n[1],o=a[r],u=(c=eg((0,i.useState)(function(){return e.render
1State}),2))[0],l=c[1],d=u[r]||{},h=(0,i.useCallback)(function(t){e.setUiState(t)},[e]),f=(0,i.useCallback)(function(e){t.setIndexUiState(e)},[t]),(0,i.useEffect)(function(){function t(){s(e.getUiState()),l(e.renderState)}return e.addListener("render",t),t(),function(){e.removeListener("render",t)}},[e]),{uiState:a,setUiState:h,indexUiState:o,setIndexUiState:f,renderState:u,indexRenderState:d}),S=x.uiState,j=x.setUiState,w=x.indexUiState,P=x.setIndexUiState,_=x.renderState,F=x.indexRenderState,I=(m=eI(),p=e_(),v=(g=eg((0,i.useState)(function(){var e=ej(p);return{results:e.results,scopedResults:e.scopedResults}}),2))[0],y=g[1],(0,i.useEffect)(function(){function e(){var e=p.getResults();if(null!==e)y({results:e,scopedResults:p.getScopedResults()});else if(0===m.mainIndex.getIndexName().length){var t=m.mainIndex.getWidgets().find(tp);t&&y({results:ej(p).results,scopedResults:t.getScopedResults()})}}return m.addListener("render",e),e(),function(){m.removeListener("render",e)}},[m,p]),v),T=I.results,E=I.scopedResults,O=(0,i.useCallback)(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return R.use.apply(R,e7(t)),function(){R.unuse.apply(R,e7(t))}},[R]),C=(0,i.useCallback)(function(){R.refresh()},[R]);return eA(function(){if(b){var e=function(){};return R.addListener("error",e),function(){return R.removeListener("error",e)}}return function(){}},[R,b]),{results:T,scopedResults:E,uiState:S,setUiState:j,indexUiState:w,setIndexUiState:P,renderState:_,indexRenderState:F,addMiddlewares:O,refresh:C,status:R.status,error:R.error}}(),a=e&&(null==e?void 0:e.nbHits),s=(null==e?void 0:e.pageNoClicked)>1?10*((null==e?void 0:e.pageNoClicked)-1)+1:1,o=(null==e?void 0:e.pageNoClicked)>1?10*((null==e?void 0:e.pageNoClicked)-1):10;if(r){var c;let t=(null==r||null==(c=r.hits)?void 0:c.length)%10;e.nbHits<=10&&(null==e?void 0:e.nbPages)==1?(o=e.nbHits,s=1):o=e.pageNoClicked==e.nbPages?s+(t-1):s+9}let u=null!=e&&e.searchStaticContent.resultLabelUseQueryAsPlaceholder?null==e?void 0:e.searchStaticContent.resultLabelUseQueryAsPlaceholder.replace("${QUERY}",e.queryParm.replace(/\s+/g," ").trim()).replace("${FIRST_INDEX}",s).replace("${LAST_INDEX}",o).replace("${TOTAL_RESULTS}",a):"";return(0,i.useEffect)(()=>{e.showAutocomplete||""==e.searchValue||e.searchValue!=e.queryParm||(t({type:et.algoliaReducerConstants.pageNoClicked,payload:(null==r?void 0:r.page)+1,...e}),t({type:et.algoliaReducerConstants.totalPageNumber,payload:null==r?void 0:r.nbPages,...e}),t({type:et.algoliaReducerConstants.isSpinning,payload:!1,...e}),t({type:et.algoliaReducerConstants.nbHits,payload:null==r?void 0:r.nbHits,...e}),t({type:et.algoliaReducerConstants.nbPages,payload:null==r?void 0:r.nbPages,...e}))},[e.hitsResponse]),(0,n.jsx)("div",{className:"ob-search-block__results-title fw-bold text-center mt-5",dangerouslySetInnerHTML:{__html:I.default.sanitize(u)}})};ra.propTypes={state:a.default.object,dispatch:a.default.any};var rs=ea({name:"refinement-list",connector:!0}),ro=["isRefined","count:desc","name:asc"],rc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eo;return es(e,rs()),function(r){var n,i,a,s=r||{},o=s.attribute,c=s.operator,u=void 0===c?"or":c,l=s.limit,d=void 0===l?10:l,h=s.showMore,f=void 0!==h&&h,m=s.showMoreLimit,p=void 0===m?20:m,g=s.sortBy,v=void 0===g?ro:g,y=s.escapeFacetValues,b=void 0===y||y,R=s.transformItems,x=void 0===R?function(e){return e}:R;if(!o)throw Error(rs("The `attribute` option is required."));if(!/^(and|or)$/.test(u))throw Error(rs('The `operator` must one of: `"and"`, `"or"` (got "'.concat(u,'").')));if(!0===f&&p<=d)throw Error(rs("`showMoreLimit` should be greater than `limit`."));var S=function(e){var t=e.name,r=e.escapedValue;return ei(en({},ed(e,["name","escapedValue"])),{value:r,label:t,highlighted:t})},j=[],w=!0,P=!1,_=function(){};function F(){_()}var I=function(){return function(){}};return{$$type:"ais.refinementList",init:function(t){e(ei(en({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){e(ei(en({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!1)},getRenderState:function(e,t){return ei(en({},e),{refinementList:ei(en({},e.refinementList),er({},o,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(t){var s=this,c=t.results,u=t.state,l=t.createURL,h=t.instantSearchInstance,m=t.helper,g=[],y=[];if(a&&i&&I||(T=(R={instantSearchInstance:h,helper:m,attribute:o,widgetType:this.$$type}).instantSearchInstance,E=R.helper,O=R.attribute,C=R.widgetType,a=function(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=eg(r,4),a=i[1],s=i[2],o=i[3],c=eg(r[0].split(":"),2),u=c[0],l=c[1],d="string"==typeof O?O:O(a);1===r.length&&"object"===ey(r[0])?T.sendEventToInsights(r[0]):"click"===u&&r.length>=2&&r.length<=4&&((E.state.isHierarchicalFacet(d)?E.state.isHierarchicalFacetRefined(d,a):E.state.isConjunctiveFacet(d)?E.state.isFacetRefined(d,a):E.state.isDisjunctiveFacetRefined(d,a))||T.sendEventToInsights({insightsMethod:"clickedFilters",widgetType:C,eventType:u,eventModifier:l,payload:en({eventName:void 0===s?"Filter Applied":s,index:(null==(e=E.lastResults)?void 0:e.index)||E.state.index,filters:["".concat(d,":").concat(a)]},void 0===o?{}:o),attribute:d}))},i=function(e){a("click:internal",e),m.toggleFacetRefinement(o,e).search()},N=this,I=function(t){return function(r){var i=t.instantSearchInstance,a=t.results;if(""===r&&j)e(ei(en({}
1,N.getWidgetRenderState(ei(en({},t),{results:n}))),{instantSearchInstance:i}),!1);else{var s={highlightPreTag:b?eJ.highlightPreTag:eY,highlightPostTag:b?eJ.highlightPostTag:eK};m.searchForFacetValues(o,r,Math.min(P?p:d,100),s).then(function(r){var s=x((b?r.facetHits.map(function(e){return ei(en({},e),{highlighted:eX(e.highlighted)})}):r.facetHits).map(function(e){var t=e.escapedValue,r=e.value;return ei(en({},ed(e,["escapedValue","value"])),{value:t,label:r})}),{results:a});e(ei(en({},N.getWidgetRenderState(ei(en({},t),{results:n}))),{items:s,canToggleShowMore:!1,canRefine:!0,isFromSearch:!0,instantSearchInstance:i}),!1)})}}}),c){var R,T,E,O,C,N,k,A=c.getFacetValues(o,{sortBy:v,facetOrdering:v===ro});g=x((y=A&&Array.isArray(A)?A:[]).slice(0,P?p:d).map(S),{results:c});var D=u.maxValuesPerFacet,H=P?p:d;w=D>H?y.length<=H:y.length<H,n=c,j=g,t.results&&(k=this,_=function(){P=!P,k.render(t)})}var $=I&&I(t),L=P&&j.length>d,q=f&&!w;return{createURL:function(e){return l(function(t){return s.getWidgetUiState(t,{searchParameters:u.resetPage().toggleFacetRefinement(o,e),helper:m})})},items:g,refine:i,searchForItems:$,isFromSearch:!1,canRefine:g.length>0,widgetParams:r,isShowingMore:P,canToggleShowMore:L||q,toggleShowMore:F,sendEvent:a,hasExhaustiveItems:w}},dispose:function(e){var r=e.state;t();var n=r.setQueryParameter("maxValuesPerFacet",void 0);return"and"===u?n.removeFacet(o):n.removeDisjunctiveFacet(o)},getWidgetUiState:function(e,t){var r,n,i=t.searchParameters,a="or"===u?i.getDisjunctiveRefinements(o):i.getConjunctiveRefinements(o);return r=ei(en({},e),{refinementList:ei(en({},e.refinementList),er({},o,a))}),n=o,r.refinementList&&(r.refinementList[n]&&0!==r.refinementList[n].length||delete r.refinementList[n],0===Object.keys(r.refinementList).length&&delete r.refinementList),r},getWidgetSearchParameters:function(e,t){var r=t.uiState,n="or"===u;if(e.isHierarchicalFacet(o)||n&&e.isConjunctiveFacet(o)||!n&&e.isDisjunctiveFacet(o))return e;var i=r.refinementList&&r.refinementList[o],a=n?e.addDisjunctiveFacet(o).removeDisjunctiveFacetRefinement(o):e.addFacet(o).removeFacetRefinement(o),s=Math.max(a.maxValuesPerFacet||0,f?p:d),c=a.setQueryParameter("maxValuesPerFacet",s);if(!i){var l=n?"disjunctiveFacetsRefinements":"facetsRefinements";return c.setQueryParameters(er({},l,ei(en({},c[l]),er({},o,[]))))}return i.reduce(function(e,t){return n?e.addDisjunctiveFacetRefinement(o,t):e.addFacetRefinement(o,t)},c)}}}},ru=ea({name:"sort-by",connector:!0});function rl(e){return"strategy"in e&&void 0!==e.strategy}function rd(e){return rl(e)?e.strategy:e.value}function rh(e,t){if(!t)return!1;var r=e[t];return void 0!==r&&rl(r)}var rf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eo;es(e,ru());var r={};return function(n){var i=n||{},a=i.items,s=i.transformItems,o=void 0===s?function(e){return e}:s;if(!Array.isArray(a))throw Error(ru("The `items` option expects an array of objects."));var c={};return a.forEach(function(e,t){var r="value"in e&&void 0!==e.value,n="strategy"in e&&void 0!==e.strategy;if(r&&n)throw Error(ru("Item at index ".concat(t,' cannot have both "value" and "strategy" properties.')));if(!r&&!n)throw Error(ru("Item at index ".concat(t,' must have either a "value" or "strategy" property.')));c[rd(e)]=e}),r.itemsLookup=c,{$$type:"ais.sortBy",init:function(t){var r=t.instantSearchInstance;if(a.some(function(e){return"strategy"in e&&e.strategy})&&!r.compositionID)throw Error(ru('Sorting strategies can only be used in composition mode. Please provide a "compositionID" to your InstantSearch instance.'));var n=this.getWidgetRenderState(t),i=n.currentRefinement;tc(a,function(e){return rd(e)===i}),e(ei(en({},n),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e(ei(en({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(e){var n=e.state;return(t(),r.isUsingComposition&&n.sortBy&&(n=n.setQueryParameter("sortBy",void 0)),r.initialValue&&n.index!==r.initialValue)?n.setIndex(r.initialValue):n},getRenderState:function(e,t){return ei(en({},e),{sortBy:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.results,i=e.helper,s=e.state,c=e.parent,u=e.instantSearchInstance;!r.initialValue&&c&&(r.initialValue=c.getIndexName()),r.refine||(r.isUsingComposition=!!(null==u?void 0:u.compositionID),r.refine=function(e){var t=r.itemsLookup[e];t&&rl(t)?i.setQueryParameter("sortBy",t.strategy).search():i.setQueryParameter("sortBy",void 0).setIndex(e).search()});var l=o(a,{results:t}).map(function(e){return{label:e.label,value:rd(e)}}),d=r.isUsingComposition&&rh(r.itemsLookup,s.sortBy)?s.sortBy:s.index,h=!t||0===t.nbHits;return{currentRefinement:d,options:l,refine:r.refine,hasNoResults:h,canRefine:!h&&a.length>0,widgetParams:n}},getWidgetUiState:function(e,t){var n=t.searchParameters,i=r.isUsingComposition&&rh(r.itemsLookup,n.sortBy)?n.sortBy:n.index;return ei(en({},e),{sortBy:i!==r.initialValue?i:void 0})},getWidgetSearchParameters:function(e,t){var n=t.uiState,i=(!n.sortBy||Object.prototype.hasOwnProperty.call(r.itemsLookup,n.sortBy)?n.sortBy:void 0)||r.initialValue||e.index;if(rh(r.itemsLookup,i)){var a=r.itemsLookup[i];return e.setQueryParameter("sortBy",a.strategy)}return e.setQueryParameter("index",i)}}}};function rm(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t){return Array.isArray(t)?e.concat(t):e.concat([t])}
1,[]).filter(Boolean).join(" ")}function rp(e){var t=e.items,r=e.value,n=e.onChange,a=void 0===n?function(){}:n,s=e.classNames,o=void 0===s?{}:s,c=ed(e,["items","value","onChange","classNames"]);return i.default.createElement("div",ei(en({},c),{className:rm("ais-SortBy",o.root,c.className)}),i.default.createElement("select",{className:rm("ais-SortBy-select",o.select),onChange:function(e){return a(e.target.value)},value:r,"aria-label":"Sort results by"},t.map(function(e){return i.default.createElement("option",{className:rm("ais-SortBy-option",o.option),key:e.value,value:e.value},e.label)})))}function rg(e){var t=e.items,r=e.transformItems,n=ed(e,["items","transformItems"]),a=e$(rf,{items:t,transformItems:r},{$$widgetType:"ais.sortBy"}),s=a.currentRefinement,o=a.options,c=a.refine;return i.default.createElement(rp,en({},n,{items:o,value:s,onChange:c}))}let rv=({attribute:e,state:t,dispatch:r})=>{let{items:a,refine:s}=e$(rc,{attribute:e},void 0);return(0,i.useEffect)(()=>{t.showAutocomplete||""==t.searchValue||t.searchValue!=t.queryParm||(r({type:et.algoliaReducerConstants.isSpinning,payload:!1,...t}),r({type:et.algoliaReducerConstants.filterItems,payload:a,...t}))},[a]),(0,i.useEffect)(()=>{""==t.filerClicked&&(t.filterItems.some(e=>e.label==et.SearchPageConstants.productPage)||t.hitsResponse.some(e=>e.pageType==et.SearchPageConstants.productPage))?s(et.SearchPageConstants.productPage):t.filterItems.some(e=>e.label==et.SearchPageConstants.articlePage)||t.hitsResponse.some(e=>e.pageType==et.SearchPageConstants.articlePage)?s(et.SearchPageConstants.articlePage):s(et.SearchPageConstants.productPage)},[]),(0,n.jsxs)("div",{className:"ob-search-block__popular-topics",children:[(0,n.jsx)("hr",{className:"horizontal-line hide-line"}),(0,n.jsx)("div",{className:"ob-search-block__results-title",children:t.searchStaticContent.resultsBySectionTitle}),(0,n.jsx)("div",{className:"d-flex ob-search-block__popular-topics-container",children:t.filterItems&&t.filterItems.map((e,i)=>(0,n.jsx)("div",{className:(null==e?void 0:e.label)==et.SearchPageConstants.productPage?"ob-search-block__popular-topics__toggle-wrapper-productPage":"ob-search-block__popular-topics__toggle-wrapper-articlePage",children:(0,n.jsx)("button",{className:"ob-outline-button event_button_click "+(e.isRefined?"filterSelected":"filterNotSelected"),"data-action-detail":e.label,type:"button",onClick:n=>{n.preventDefault(),s(e.label),r({type:et.algoliaReducerConstants.filerClicked,payload:e.label,...t})},children:(null==e?void 0:e.label)==et.SearchPageConstants.productPage?t.searchStaticContent.productCategoryLabel:t.searchStaticContent.articleCategoryLabel})},i))}),(0,n.jsx)("hr",{className:"horizontal-line sm-horizontal-line"}),(0,n.jsxs)("div",{className:"sortBy-wrapper ",children:[(0,n.jsx)("span",{className:"sortby-label",children:"Ordina per:"}),(0,n.jsx)(rg,{defaultRefinement:"crawler_fixodent_it_prod",items:[{value:"crawler_fixodent_it_prod_title_asc",label:"Titolo A-Z"},{value:"crawler_fixodent_it_prod_title_desc",label:"Titolo Z-A"}]})]}),(0,n.jsx)("hr",{className:"horizontal-line"})]})};function ry(e){var t=e.start,r=void 0===t?0:t,n=e.end,i=e.step,a=void 0===i?1:i,s=0===a?1:a;return e7(Array(Math.round((n-r)/s))).map(function(e,t){return r+t*s})}rv.propTypes={attribute:a.default.string.isRequired,state:a.default.object,dispatch:a.default.any};var rb=function(){function e(t){te(this,e),er(this,"currentPage",void 0),er(this,"total",void 0),er(this,"padding",void 0),this.currentPage=t.currentPage,this.total=t.total,this.padding=t.padding}return tr(e,[{key:"pages",value:function(){var e=this.total,t=this.currentPage,r=this.padding;if(0===e)return[0];var n=this.nbPagesDisplayed(r,e);if(n===e)return ry({end:e});var i=this.calculatePaddingLeft(t,r,e,n),a=n-i;return ry({start:t-i,end:t+a})}},{key:"nbPagesDisplayed",value:function(e,t){return Math.min(2*e+1,t)}},{key:"calculatePaddingLeft",value:function(e,t,r,n){return e<=t?e:e>=r-t?n-(r-e):t}},{key:"isLastPage",value:function(){return this.currentPage>=this.total-1}},{key:"isFirstPage",value:function(){return this.currentPage<=0}}]),e}(),rR=ea({name:"pagination",connector:!0}),rx=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eo;return es(e,rR()),function(r){var n=r||{},i=n.totalPages,a=n.padding,s=new rb({currentPage:0,total:0,padding:void 0===a?3:a}),o={};return{$$type:"ais.pagination",init:function(t){var r=t.instantSearchInstance;e(ei(en({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e(ei(en({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(e){var r=e.state;return t(),r.setQueryParameter("page",void 0)},getWidgetUiState:function(e,t){var r=t.searchParameters.page||0;return r?ei(en({},e),{page:r+1}):e},getWidgetSearchParameters:function(e,t){var r=t.uiState,n=r.page?r.page-1:0;return e.setQueryParameter("page",n)},getWidgetRenderState:function(e){var t,n=e.results,a=e.helper,c=e.state,u=e.createURL;o.refine||(o.refine=function(e){a.setPage(e),a.search()}),o.createURL||(o.createURL=function(e){return u(function(t){return ei(en({},t),{page:e+1})})});var l=c.page||0,d=(t=(n||{nbPages:0}).nbPages,void 0!==i?Math.min(i,t):t);return s.currentPage=l,s.total=d,{createURL:o.createURL,refine:o.refine,canRefine:d>1,currentRefinement:l,nbHits:(null==n?void 0:n.nbHits)||0,nbPages:d,pages:n?s.pages():[],isFirstPage:s.isFirstPage(),isLastPage:s.isLastPage(),widgetParams:r}},getRenderState:function(e,t){return ei(en({},e),{pagination:this.getWidgetRenderState(t)})}}}};let rS=({state:e,dispatch:t})=>{let{refine:r}=e$(rx,void 0,void 0),i=e.nbPages;return i>1&&(0,n.jsx)("div",{className:"ob-paging-wrapper text-center my-5",children:(0,n.jsxs)("div",{className:"ob-paging d-flex justify-content-center",children:[i>1&&(0,n.jsx)("button",{onClick:()=>{t({type:et.algoliaReducerConstants.pageNoClicked,payload:(null==e?void 0:e.pageNoClicked)-1,...e}),r((null==e?void 0:e.pageNoClicked)-1)},disabled:!(null!=e&&e.pageNoClicked)>1||(null==e?void 0:e.pageNoClicked)===1,className:(!(null!=e&&e.pageNoClicked),"icon-button"),children:(0,n.jsx)("span",{children:(0,n.jsx)(S.default.ChevronLeft,{})})}),(()=>{let a,s,o,{pagesToIncrement:c,pagesToDecrement:u}=((a=null==e?void 0:e.pageNoClicked)>2&&(a=2),(s=i-(null==e?void 0:e.pageNoClicked))>2&&(s=2),o=5-a-s-1,a<s?(s+=o,(null==e?void 0:e.pageNoClicked)+s>i&&(s=i-e.pageNoClicked)):a>s&&(a+=o,e.pageNoClicked-a<1&&(a=e.pageNoClicked-1)),{pagesToIncrement:s,pagesToDecrement:a}),l=((t,r)=>{let n=[];for(let t=(null==e?void 0:e.pageNoClicked)-r;t<(null==e?void 0:e.pageNoClicked);t++)n.push(t);n.push(null==e?void 0:e.pageNoClicked);for(let r=(null==e?void 0:e.pageNoClicked)+1;r<=(null==e?void 0:e.pageNoClicked)+t;r++)n.push(r);return n})(c,u);5===l.length&&(l[l.length-1]<i&&(l[l.length-1]=-1,l.push(i)),l[0]>1&&(l[0]=-1,l.unshift(1)));let d=l.indexOf(0);return d>-1&&l.splice(d,1),(0,n.jsx)("div",{className:"ob-paging__page-numbers",children:l.map((i,a)=>i<=0?(0,n.jsx)("span",{children:"..."},"ob-paging__page-spacer-"+a):(0,n.jsxs)("button",{className:`event_button_click ob-paging__page-number${i===(null==e?void 0:e.pageNoClicked)?" active":""}`,"data-action-detail":i,onClick:()=>{t({type:et.algoliaReducerConstants.pageNoClicked,payload:i,...e}),r(i)},children:[(0,n.jsx)("span",{className:"visuallyhidden",children:null==e?void 0:e.pageLabel}),i]},"ob-paging__page-number-"+i))})})(),i>1&&(0,n.jsxs)("button",{onClick:()=>{t({type:et.algoliaReducerConstants.pageNoClicked,payload:(null==e?void 0:e.pageNoClicked)+1,...e}),r((null==e?void 0:e.pageNoClicked)+1)},disabled:(null==e?void 0:e.pageNoClicked)===i,className:(!(null!=e&&e.pageNoClicked),"icon-button"),children:[(0,n.jsx)("span",{children:(0,n.jsx)(S.default.ChevronRight,{})}),(0,n.jsx)("span",{className:"visuallyhidden",children:(null==e?void 0:e.pageNoClicked)<i})]})]})})};rS.propTypes={state:a.default.object,dispatch:a.default.any};let rj=i.default.memo(rS),rw=i.default.memo(({state:e,dispatch:t})=>{var r,a,s,o;let{hits:c}=e$(rt,void 0,void 0),u=(null==(r=e.hitsResponse)?void 0:r.length)===0;(0,i.useEffect)(()=>{null!=e&&e.showAutocomplete||(null==e?void 0:e.searchValue)==""||(null==e?void 0:e.searchValue)!=(null==e?void 0:e.queryParm)||(t({type:et.algoliaReducerConstants.isSpinning,payload:!1,...e}),t({type:et.algoliaReducerConstants.hitsResponse,payload:c,...e}))},[c]);let l=null;if(u){let t=null==e||null==(a=e.searchStaticContent)||null==(s=a.noResultLabelUseQueryAsPlaceholder)?void 0:s.replace("${QUERY}",null==e?void 0:e.searchValue);l=(0,n.jsx)("div",{className:"ob-search-block__no-results-title",dangerouslySetInnerHTML:{__html:I.default.sanitize(t)}})}else null!=e&&e.hitsResponse&&(l=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(rv,{attribute:"pageType",state:e,dispatch:t}),(0,n.jsx)(ra,{state:e,dispatch:t}),(0,n.jsx)("div",{className:"products-list-grid container-wrapper",children:null==e||null==(o=e.hitsResponse)?void 0:o.map((e,t)=>(0,n.jsx)(ri,{hit:e},t))}),(0,n.jsx)(rj,{state:e,dispatch:t})]}));return l}),rP=e=>{var t;let r=(t8.search||(t8.search=(0,t5.default)("4OCMORUHT5","c232f0aea8a180b1b95a599aac1e28e8")),t8.search),a=null==e?void 0:e.document,s=e.context.state,o=e.context.dispatch;return(0,i.useEffect)(()=>{o({type:et.algoliaReducerConstants.searchStaticContent,payload:a,...s})},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(P.Breadcrumbs,{breadcrumbs:null==a?void 0:a.breadcrumbs}),(0,n.jsx)("div",{className:"search-block",children:(0,n.jsxs)(t6,{searchClient:r,indexName:"crawler_fix
1odent_it_prod",children:[(0,n.jsx)(e6,{defaultRefinement:"",state:s,dispatch:o,document:a}),""===s.queryParm||void 0===s.queryParm?(0,n.jsxs)(i.default.Fragment,{children:[(0,n.jsx)("b",{children:(0,n.jsx)("div",{className:"ob-search-block__suggested-title",dangerouslySetInnerHTML:{__html:I.default.sanitize(a.suggestedTitleRequired)}})}),(0,n.jsx)("div",{className:"ob-search-block__suggested-categories",children:(null==a||null==(t=a.suggestedCategories)?void 0:t.length)>0&&a.suggestedCategories.map((e,t)=>{var r,i,a;let s,o,c;return r="suggestedCategoryIndex"+t,s=null==e||null==(i=e.page)?void 0:i.name,o=null==e?void 0:e.url,c=null==e||null==(a=e.fields)?void 0:a.linkClassName,(0,n.jsx)("a",{href:o,className:c,children:s},r)})})]}):(0,n.jsx)(rw,{state:s,dispatch:o})]})})]})};rP.propTypes={document:a.default.object,context:a.default.object};let r_=i.default.memo(rP),rF=i.default.memo(e=>(0,n.jsx)("div",{children:(0,n.jsx)(y.GlobalContext.Consumer,{children:t=>t&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(r_,{document:e,context:t})})})}));e.s([],99668),e.i(99668),e.s(["ArticleListingPage",0,k,"ArticlePage",0,E,"ContactPage",0,l,"ContentPage",0,c,"DynamicPage",0,m,"GenericPage",0,f,"ProductListingPage",0,ee,"ProductPage",0,J,"SearchPage",0,rF,"Unknown",0,s],47631);var rI=e.i(47631),rT=e.i(17014);e.i(15528);let rE=e=>{let{model:t,content:r,breadcrumbs:i}=e;try{let e=(0,rT.lowercaseObjectKeys)(rI),a=e[t]?e[t]:e.unknown;if(!a)return console.error(`${Q.ERROR_NO_TEMPLATE_FOUND} ${t}`),(0,n.jsx)("div",{children:Q.ERROR_TEMPLATE_NOT_FOUND_UI});return(0,n.jsx)(a,{breadcrumbs:i,...r})}catch(e){return console.error(Q.ERROR_RENDERING_PAGE,e.message,e.stack),(0,n.jsx)("div",{children:Q.ERROR_RENDERING_PAGE_UI})}};rE.propTypes={model:a.default.string,content:a.default.shape(),breadcrumbs:a.default.array};let rO=e=>{let{page:t,url:r,slug:a,nextPreview:s,breadcrumbs:o}=e;if(!t)return(0,n.jsx)("div",{children:"Page not found"});let{_model:c}=t;return(0,g.useRouter)(),(0,i.useEffect)(()=>{sessionStorage.getItem("preview")},[]),(0,n.jsx)(rE,{url:r,model:c,content:t,breadcrumbs:o},r)};rO.propTypes={page:a.default.shape(),breadcrumbs:a.default.array,url:a.default.string.isRequired,slug:a.default.string.isRequired,nextPreview:a.default.bool},e.s(["__N_SSG",0,!0,"default",0,rO],75762)},10031,(e,t,r)=>{let n="/[...slug]";(window.__NEXT_P=window.__NEXT_P||[]).push([n,()=>e.r(75762)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([n])})}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.