text: /*! algoliaBundle 4.3.9 | © Algolia SAS | algolia.com */
  !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("algoliaBundle",[],t):"object"==typeof exports?exports.algoliaBundle=t():e.algoliaBundle=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports={$:n(1),instantsearch:n(2),algoliasearch:n(3),algoliasearchHelper:n(41),Hogan:n(62),autocomplete:n(65)}},function(e,t){var n,r;!function(t,n){"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(i,s){function a(e){var t=!!e&&"length"in e&&e.length,n=ue.type(e);return"function"===n||ue.isWindow(e)?!1:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function o(e,t,n){if(ue.isFunction(t))return ue.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return ue.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(be.test(t))return ue.filter(t,e,n);t=ue.filter(t,e)}return ue.grep(e,function(e){return re.call(t,e)>-1!==n})}function c(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function u(e){var t={};return ue.each(e.match(Pe)||[],function(e,n){t[n]=!0}),t}function l(){Z.removeEventListener("DOMContentLoaded",l),i.removeEventListener("load",l),ue.ready()}function h(){this.expando=ue.expando+h.uid++}function f(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ke,"-$&").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:Ee.test(n)?ue.parseJSON(n):n}catch(i){}je.set(e,t,n)}else n=void 0;return n}function d(e,t,n,r){var i,s=1,a=20,o=r?function(){return r.cur()}:function(){return ue.css(e,t,"")},c=o(),u=n&&n[3]||(ue.cssNumber[t]?"":"px"),l=(ue.cssNumber[t]||"px"!==u&&+c)&&Ae.exec(ue.css(e,t));if(l&&l[3]!==u){u=u||l[3],n=n||[],l=+c||1;do s=s||".5",l/=s,ue.style(e,t,l+u);while(s!==(s=o()/c)&&1!==s&&--a)}return n&&(l=+l||+c||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=l,r.end=i)),i}function p(e,t){var n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&ue.nodeName(e,t)?ue.merge([e],n):n}function m(e,t){for(var n=0,r=e.length;r>n;n++)Ne.set(e[n],"globalEval",!t||Ne.get(t[n],"globalEval"))}function g(e,t,n,r,i){for(var s,a,o,c,u,l,h=t.createDocumentFragment(),f=[],d=0,g=e.length;g>d;d++)if(s=e[d],s||0===s)if("object"===ue.type(s))ue.merge(f,s.nodeType?[s]:s);else if(Ue.test(s)){for(a=a||h.appendChild(t.createElement("div")),o=(De.exec(s)||["",""])[1].toLowerCase(),c=qe[o]||qe._default,a.innerHTML=c[1]+ue.htmlPrefilter(s)+c[2],l=c[0];l--;)a=a.lastChild;ue.merge(f,a.childNodes),a=h.firstChild,a.textContent=""}else f.push(t.createTextNode(s));for(h.textContent="",d=0;s=f[d++];)if(r&&ue.inArray(s,r)>-1)i&&i.push(s);else if(u=ue.contains(s.ownerDocument,s),a=p(h.appendChild(s),"script"),u&&m(a),n)for(l=0;s=a[l++];)He.test(s.type||"")&&n.push(s);return h}function v(){return!0}function y(){return!1}function b(){try{return Z.activeElement}catch(e){}}function w(e,t,n,r,i,s){var a,o;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(o in t)w(e,o,n,r,t[o],s);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=y;else if(!i)return e;return 1===s&&(a=i,i=function(e){return ue().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=ue.guid++)),e.each(function(){ue.event.add(this,t,i,r,n)})}function R(e,t){return ue.nodeName(e,"table")&&ue.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function x(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function S(e){var t=ze.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function _(e,t){var n,r,i,s,a,o,c,u;if(1===t.nodeType){if(Ne.hasData(e)&&(s=Ne.access(e),a=Ne.set(t,s),u=s.events)){delete a.handle,a.events={};for(i in u)for(n=0,r=u[i].length;r>n;n++)ue.event.add(t,i,u[i][n])}je.hasData(e)&&(o=je.access(e),c=ue.extend({},o),je.set(t,c))}}function P(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Me.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function T(e,t,n,r){t=te.apply([],t);var i,s,a,o,c,u,l=0,h=e.length,f=h-1,d=t[0],m=ue.isFunction(d);if(m||h>1&&"string"==typeof d&&!oe.checkClone&&Ke.test(d))return e.each(function(i){var s=e.eq(i);m&&(t[0]=d.call(this,i,s.html())),T(s,t,n,r)});if(h&&(i=g(t,e[0].ownerDocument,!1,e,r),s=i.firstChild,1===i.childNodes.length&&(i=s),s||r)){for(a=ue.map(p(i,"script"),x),o=a.length;h>l;l++)c=i,l!==f&&(c=ue.clone(c,!0,!0),o&&ue.merge(a,p(c,"script"))),n.call(e[l],c,l);if(o)for(u=a[a.length-1].ownerDocument,ue.map(a,S),l=0;o>l;l++)c=a[l],He.test(c.type||"")&&!Ne.access(c,"globalEval")&&ue.contains(u,c)&&(c.src?ue._evalUrl&&ue._evalUrl(c.src):ue.globalEval(c.textContent.replace(Je,"")))}return e}function F(e,t,n){for(var r,i=t?ue.filter(t,e):e,s=0;null!=(r=i[s]);s++)n||1!==r.nodeType||ue.cleanData(p(r)),r.parentNode&&(n&&ue.contains(r.ownerDocument,r)&&m(p(r,"script")),r.parentNode.removeChild(r));return e}function C(e,t){var n=ue(t.createElement(e)).appendTo(t.body),r=ue.css(n[0],"display");return n.detach(),r}function N(e){var t=Z,n=Ge[e];return n||(n=C(e,t),"none"!==n&&n||(Xe=(Xe||ue("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=Xe[0].contentDocument,t.write(),t.close(),n=C(e,t),Xe.detach()),Ge[e]=n),n}function j(e,t,n){var r,i,s,a,o=e.style;return n=n||et(e),a=n?n.getPropertyValue(t)||n[t]:void 0,""!==a&&void 0!==a||ue.contains(e.ownerDocument,e)||(a=ue.style(e,t)),n&&!oe.pixelMarginRight()&&Ze.test(a)&&Ye.test(t)&&(r=o.width,i=o.minWidth,s=o.maxWidth,o.minWidth=o.maxWidth=o.width=a,a=n.width,o.width=r,o.minWidth=i,o.maxWidth=s),void 0!==a?a+"":a}function E(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function k(e){if(e in ot)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=at.length;n--;)if(e=at[n]+t,e in ot)return e}function I(e,t,n){var r=Ae.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function A(e,t,n,r,i){for(var s=n===(r?"border":"content")?4:"width"===t?1:0,a=0;4>s;s+=2)"margin"===n&&(a+=ue.css(e,n+Oe[s],!0,i)),r?("content"===n&&(a-=ue.css(e,"padding"+Oe[s],!0,i)),"margin"!==n&&(a-=ue.css(e,"border"+Oe[s]+"Width",!0,i))):(a+=ue.css(e,"padding"+Oe[s],!0,i),"padding"!==n&&(a+=ue.css(e,"border"+Oe[s]+"Width",!0,i)));return a}function O(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,s=et(e),a="border-box"===ue.css(e,"boxSizing",!1,s);if(0>=i||null==i){if(i=j(e,t,s),(0>i||null==i)&&(i=e.style[t]),Ze.test(i))return i;r=a&&(oe.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+A(e,t,n||(a?"border":"content"),r,s)+"px"}function L(e,t){for(var n,r,i,s=[],a=0,o=e.length;o>a;a++)r=e[a],r.style&&(s[a]=Ne.get(r,"olddisplay"),n=r.style.display,t?(s[a]||"none"!==n||(r.style.display=""),""===r.style.display&&Le(r)&&(s[a]=Ne.access(r,"olddisplay",N(r.nodeName)))):(i=Le(r),"none"===n&&i||Ne.set(r,"olddisplay",i?n:ue.css(r,"display"))));for(a=0;o>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?s[a]||"":"none"));return e}function M(e,t,n,r,i){return new M.prototype.init(e,t,n,r,i)}function D(){return i.setTimeout(function(){ct=void 0}),ct=ue.now()}function H(e,t){var n,r=0,i={height:e};for(t=t?1:0;4>r;r+=2-t)n=Oe[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function q(e,t,n){for(var r,i=(Q.tweeners[t]||[]).concat(Q.tweeners["*"]),s=0,a=i.length;a>s;s++)if(r=i[s].call(n,t,e))return r}function U(e,t,n){var r,i,s,a,o,c,u,l,h=this,f={},d=e.style,p=e.nodeType&&Le(e),m=Ne.get(e,"fxshow");n.queue||(o=ue._queueHooks(e,"fx"),null==o.unqueued&&(o.unqueued=0,c=o.empty.fire,o.empty.fire=function(){o.unqueued||c()}),o.unqueued++,h.always(function(){h.always(function(){o.unqueued--,ue.queue(e,"fx").length||o.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],u=ue.css(e,"display"),l="none"===u?Ne.get(e,"olddisplay")||N(e.nodeName):u,"inline"===l&&"none"===ue.css(e,"float")&&(d.display="inline-block")),n.overflow&&(d.overflow="hidden",h.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],lt.exec(i)){if(delete t[r],s=s||"toggle"===i,i===(p?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;p=!0}f[r]=m&&m[r]||ue.style(e,r)}else u=void 0;if(ue.isEmptyObject(f))"inline"===("none"===u?N(e.nodeName):u)&&(d.display=u);else{m?"hidden"in m&&(p=m.hidden):m=Ne.access(e,"fxshow",{}),s&&(m.hidden=!p),p?ue(e).show():h.done(function(){ue(e).hide()}),h.done(function(){var t;Ne.remove(e,"fxshow");for(t in f)ue.style(e,t,f[t])});for(r in f)a=q(p?m[r]:0,r,h),r in m||(m[r]=a.start,p&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function B(e,t){var n,r,i,s,a;for(n in e)if(r=ue.camelCase(n),i=t[r],s=e[n],ue.isArray(s)&&(i=s[1],s=e[n]=s[0]),n!==r&&(e[r]=s,delete e[n]),a=ue.cssHooks[r],a&&"expand"in a){s=a.expand(s),delete e[r];for(n in s)n in e||(e[n]=s[n],t[n]=i)}else t[r]=i}function Q(e,t,n){var r,i,s=0,a=Q.prefilters.length,o=ue.Deferred().always(function(){delete c.elem}),c=function(){if(i)return!1;for(var t=ct||D(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,s=1-r,a=0,c=u.tweens.length;c>a;a++)u.tweens[a].run(s);return o.notifyWith(e,[u,s,n]),1>s&&c?n:(o.resolveWith(e,[u]),!1)},u=o.promise({elem:e,props:ue.extend({},t),opts:ue.extend(!0,{specialEasing:{},easing:ue.easing._default},n),originalProperties:t,originalOptions:n,startTime:ct||D(),duration:n.duration,tweens:[],createTween:function(t,n){var r=ue.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)u.tweens[n].run(1);return t?(o.notifyWith(e,[u,1,0]),o.resolveWith(e,[u,t])):o.rejectWith(e,[u,t]),this}}),l=u.props;for(B(l,u.opts.specialEasing);a>s;s++)if(r=Q.prefilters[s].call(u,e,l,u.opts))return ue.isFunction(r.stop)&&(ue._queueHooks(u.elem,u.opts.queue).stop=ue.proxy(r.stop,r)),r;return ue.map(l,q,u),ue.isFunction(u.opts.start)&&u.opts.start.call(e,u),ue.fx.timer(ue.extend(c,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function $(e){return e.getAttribute&&e.getAttribute("class")||""}function V(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,s=t.toLowerCase().match(Pe)||[];if(ue.isFunction(n))for(;r=s[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function W(e,t,n,r){function i(o){var c;return s[o]=!0,ue.each(e[o]||[],function(e,o){var u=o(t,n,r);return"string"!=typeof u||a||s[u]?a?!(c=u):void 0:(t.dataTypes.unshift(u),i(u),!1)}),c}var s={},a=e===jt;return i(t.dataTypes[0])||!s["*"]&&i("*")}function K(e,t){var n,r,i=ue.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&ue.extend(!0,e,r),e}function z(e,t,n){for(var r,i,s,a,o=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in o)if(o[i]&&o[i].test(r)){c.unshift(i);break}if(c[0]in n)s=c[0];else{for(i in n){if(!c[0]||e.converters[i+" "+c[0]]){s=i;break}a||(a=i)}s=s||a}return s?(s!==c[0]&&c.unshift(s),n[s]):void 0}function J(e,t,n,r){var i,s,a,o,c,u={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(s=l.shift();s;)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=s,s=l.shift())if("*"===s)s=c;else if("*"!==c&&c!==s){if(a=u[c+" "+s]||u["* "+s],!a)for(i in u)if(o=i.split(" "),o[1]===s&&(a=u[c+" "+o[0]]||u["* "+o[0]])){a===!0?a=u[i]:u[i]!==!0&&(s=o[0],l.unshift(o[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(h){return{state:"parsererror",error:a?h:"No conversion from "+c+" to "+s}}}return{state:"success",data:t}}function X(e,t,n,r){var i;if(ue.isArray(t))ue.each(t,function(t,i){n||At.test(e)?r(e,i):X(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==ue.type(t))r(e,t);else for(i in t)X(e+"["+i+"]",t[i],n,r)}function G(e){return ue.isWindow(e)?e:9===e.nodeType&&e.defaultView}var Y=[],Z=i.document,ee=Y.slice,te=Y.concat,ne=Y.push,re=Y.indexOf,ie={},se=ie.toString,ae=ie.hasOwnProperty,oe={},ce="2.2.4",ue=function(e,t){return new ue.fn.init(e,t)},le=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,he=/^-ms-/,fe=/-([\da-z])/gi,de=function(e,t){return t.toUpperCase()};ue.fn=ue.prototype={jquery:ce,constructor:ue,selector:"",length:0,toArray:function(){return ee.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:ee.call(this)},pushStack:function(e){var t=ue.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return ue.each(this,e)},map:function(e){return this.pushStack(ue.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(ee.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ne,sort:Y.sort,splice:Y.splice},ue.extend=ue.fn.extend=function(){var e,t,n,r,i,s,a=arguments[0]||{},o=1,c=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[o]||{},o++),"object"==typeof a||ue.isFunction(a)||(a={}),o===c&&(a=this,o--);c>o;o++)if(null!=(e=arguments[o]))for(t in e)n=a[t],r=e[t],a!==r&&(u&&r&&(ue.isPlainObject(r)||(i=ue.isArray(r)))?(i?(i=!1,s=n&&ue.isArray(n)?n:[]):s=n&&ue.isPlainObject(n)?n:{},a[t]=ue.extend(u,s,r)):void 0!==r&&(a[t]=r));return a},ue.extend({expando:"jQuery"+(ce+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===ue.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!ue.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){var t;if("object"!==ue.type(e)||e.nodeType||ue.isWindow(e))return!1;if(e.constructor&&!ae.call(e,"constructor")&&!ae.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||ae.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ie[se.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;e=ue.trim(e),e&&(1===e.indexOf("use strict")?(t=Z.createElement("script"),t.text=e,Z.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(he,"ms-").replace(fe,de)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(a(e))for(n=e.length;n>r&&t.call(e[r],r,e[r])!==!1;r++);else for(r in e)if(t.call(e[r],r,e[r])===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(le,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(a(Object(e))?ue.merge(n,"string"==typeof e?[e]:e):ne.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:re.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;n>r;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],s=0,a=e.length,o=!n;a>s;s++)r=!t(e[s],s),r!==o&&i.push(e[s]);return i},map:function(e,t,n){var r,i,s=0,o=[];if(a(e))for(r=e.length;r>s;s++)i=t(e[s],s,n),null!=i&&o.push(i);else for(s in e)i=t(e[s],s,n),null!=i&&o.push(i);return te.apply([],o)},guid:1,proxy:function(e,t){var n,r,i;return"string"==typeof t&&(n=e[t],t=e,e=n),ue.isFunction(e)?(r=ee.call(arguments,2),i=function(){return e.apply(t||this,r.concat(ee.call(arguments)))},i.guid=e.guid=e.guid||ue.guid++,i):void 0},now:Date.now,support:oe}),"function"==typeof Symbol&&(ue.fn[Symbol.iterator]=Y[Symbol.iterator]),ue.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ie["[object "+t+"]"]=t.toLowerCase()});var pe=function(e){function t(e,t,n,r){var i,s,a,o,c,u,h,d,p=t&&t.ownerDocument,m=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==m&&9!==m&&11!==m)return n;if(!r&&((t?t.ownerDocument||t:q)!==k&&E(t),t=t||k,A)){if(11!==m&&(u=ve.exec(e)))if(i=u[1]){if(9===m){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(p&&(a=p.getElementById(i))&&D(t,a)&&a.id===i)return n.push(a),n}else{if(u[2])return Y.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&R.getElementsByClassName&&t.getElementsByClassName)return Y.apply(n,t.getElementsByClassName(i)),n}if(!(!R.qsa||V[e+" "]||O&&O.test(e))){if(1!==m)p=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((o=t.getAttribute("id"))?o=o.replace(be,"\\$&"):t.setAttribute("id",o=H),h=P(e),s=h.length,c=fe.test(o)?"#"+o:"[id='"+o+"']";s--;)h[s]=c+" "+f(h[s]);d=h.join(","),p=ye.test(e)&&l(t.parentNode)||t}if(d)try{return Y.apply(n,p.querySelectorAll(d)),n}catch(g){}finally{o===H&&t.removeAttribute("id")}}}return F(e.replace(oe,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>x.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[H]=!0,e}function i(e){var t=k.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function s(e,t){for(var n=e.split("|"),r=n.length;r--;)x.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||K)-(~e.sourceIndex||K);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function o(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function c(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function u(e){return r(function(t){return t=+t,r(function(n,r){for(var i,s=e([],n.length,t),a=s.length;a--;)n[i=s[a]]&&(n[i]=!(r[i]=n[i]))})})}function l(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function h(){}function f(e){for(var t=0,n=e.length,r="";n>t;t++)r+=e[t].value;return r}function d(e,t,n){var r=t.dir,i=n&&"parentNode"===r,s=B++;return t.first?function(t,n,s){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,s)}:function(t,n,a){var o,c,u,l=[U,s];if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if(u=t[H]||(t[H]={}),c=u[t.uniqueID]||(u[t.uniqueID]={}),(o=c[r])&&o[0]===U&&o[1]===s)return l[2]=o[2];if(c[r]=l,l[2]=e(t,n,a))return!0}}}function p(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function m(e,n,r){for(var i=0,s=n.length;s>i;i++)t(e,n[i],r);return r}function g(e,t,n,r,i){for(var s,a=[],o=0,c=e.length,u=null!=t;c>o;o++)(s=e[o])&&(!n||n(s,r,i))&&(a.push(s),u&&t.push(o));return a}function v(e,t,n,i,s,a){return i&&!i[H]&&(i=v(i)),s&&!s[H]&&(s=v(s,a)),r(function(r,a,o,c){var u,l,h,f=[],d=[],p=a.length,v=r||m(t||"*",o.nodeType?[o]:o,[]),y=!e||!r&&t?v:g(v,f,e,o,c),b=n?s||(r?e:p||i)?[]:a:y;if(n&&n(y,b,o,c),i)for(u=g(b,d),i(u,[],o,c),l=u.length;l--;)(h=u[l])&&(b[d[l]]=!(y[d[l]]=h));if(r){if(s||e){if(s){for(u=[],l=b.length;l--;)(h=b[l])&&u.push(y[l]=h);s(null,b=[],u,c)}for(l=b.length;l--;)(h=b[l])&&(u=s?ee(r,h):f[l])>-1&&(r[u]=!(a[u]=h))}}else b=g(b===a?b.splice(p,b.length):b),s?s(null,a,b,c):Y.apply(a,b)})}function y(e){for(var t,n,r,i=e.length,s=x.relative[e[0].type],a=s||x.relative[" "],o=s?1:0,c=d(function(e){return e===t},a,!0),u=d(function(e){return ee(t,e)>-1},a,!0),l=[function(e,n,r){var i=!s&&(r||n!==C)||((t=n).nodeType?c(e,n,r):u(e,n,r));return t=null,i}];i>o;o++)if(n=x.relative[e[o].type])l=[d(p(l),n)];else{if(n=x.filter[e[o].type].apply(null,e[o].matches),n[H]){for(r=++o;i>r&&!x.relative[e[r].type];r++);return v(o>1&&p(l),o>1&&f(e.slice(0,o-1).concat({value:" "===e[o-2].type?"*":""})).replace(oe,"$1"),n,r>o&&y(e.slice(o,r)),i>r&&y(e=e.slice(r)),i>r&&f(e))}l.push(n)}return p(l)}function b(e,n){var i=n.length>0,s=e.length>0,a=function(r,a,o,c,u){var l,h,f,d=0,p="0",m=r&&[],v=[],y=C,b=r||s&&x.find.TAG("*",u),w=U+=null==y?1:Math.random()||.1,R=b.length;for(u&&(C=a===k||a||u);p!==R&&null!=(l=b[p]);p++){if(s&&l){for(h=0,a||l.ownerDocument===k||(E(l),o=!A);f=e[h++];)if(f(l,a||k,o)){c.push(l);break}u&&(U=w)}i&&((l=!f&&l)&&d--,r&&m.push(l))}if(d+=p,i&&p!==d){for(h=0;f=n[h++];)f(m,v,a,o);if(r){if(d>0)for(;p--;)m[p]||v[p]||(v[p]=X.call(c));v=g(v)}Y.apply(c,v),u&&!r&&v.length>0&&d+n.length>1&&t.uniqueSort(c)}return u&&(U=w,C=y),m};return i?r(a):a}var w,R,x,S,_,P,T,F,C,N,j,E,k,I,A,O,L,M,D,H="sizzle"+1*new Date,q=e.document,U=0,B=0,Q=n(),$=n(),V=n(),W=function(e,t){return e===t&&(j=!0),0},K=1<<31,z={}.hasOwnProperty,J=[],X=J.pop,G=J.push,Y=J.push,Z=J.slice,ee=function(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",re="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ie="\\["+ne+"*("+re+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+re+"))|)"+ne+"*\\]",se=":("+re+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ie+")*)|.*)\\)|)",ae=new RegExp(ne+"+","g"),oe=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),ce=new RegExp("^"+ne+"*,"+ne+"*"),ue=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),le=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),he=new RegExp(se),fe=new RegExp("^"+re+"$"),de={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+se),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},pe=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,be=/'|\\/g,we=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),Re=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},xe=function(){E()};try{Y.apply(J=Z.call(q.childNodes),q.childNodes),J[q.childNodes.length].nodeType}catch(Se){Y={apply:J.length?function(e,t){G.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}R=t.support={},_=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},E=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:q;return r!==k&&9===r.nodeType&&r.documentElement?(k=r,I=k.documentElement,A=!_(k),(n=k.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",xe,!1):n.attachEvent&&n.attachEvent("onunload",xe)),R.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),R.getElementsByTagName=i(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),R.getElementsByClassName=ge.test(k.getElementsByClassName),R.getById=i(function(e){return I.appendChild(e).id=H,!k.getElementsByName||!k.getElementsByName(H).length}),R.getById?(x.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&A){var n=t.getElementById(e);return n?[n]:[]}},x.filter.ID=function(e){var t=e.replace(we,Re);return function(e){return e.getAttribute("id")===t}}):(delete x.find.ID,x.filter.ID=function(e){var t=e.replace(we,Re);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),x.find.TAG=R.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):R.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,s=t.getElementsByTagName(e);if("*"===e){for(;n=s[i++];)1===n.nodeType&&r.push(n);return r}return s},x.find.CLASS=R.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&A?t.getElementsByClassName(e):void 0},L=[],O=[],(R.qsa=ge.test(k.querySelectorAll))&&(i(function(e){I.appendChild(e).innerHTML="<a id='"+H+"'></a><select id='"+H+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&O.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||O.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+H+"-]").length||O.push("~="),e.querySelectorAll(":checked").length||O.push(":checked"),e.querySelectorAll("a#"+H+"+*").length||O.push(".#.+[+~]")}),i(function(e){var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&O.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||O.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),O.push(",.*:")})),(R.matchesSelector=ge.test(M=I.matches||I.webkitMatchesSelector||I.mozMatchesSelector||I.oMatchesSelector||I.msMatchesSelector))&&i(function(e){R.disconnectedMatch=M.call(e,"div"),M.call(e,"[s!='']:x"),L.push("!=",se)}),O=O.length&&new RegExp(O.join("|")),L=L.length&&new RegExp(L.join("|")),t=ge.test(I.compareDocumentPosition),D=t||ge.test(I.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},W=t?function(e,t){if(e===t)return j=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!R.sortDetached&&t.compareDocumentPosition(e)===n?e===k||e.ownerDocument===q&&D(q,e)?-1:t===k||t.ownerDocument===q&&D(q,t)?1:N?ee(N,e)-ee(N,t):0:4&n?-1:1)}:function(e,t){if(e===t)return j=!0,0;var n,r=0,i=e.parentNode,s=t.parentNode,o=[e],c=[t];if(!i||!s)return e===k?-1:t===k?1:i?-1:s?1:N?ee(N,e)-ee(N,t):0;if(i===s)return a(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)c.unshift(n);for(;o[r]===c[r];)r++;return r?a(o[r],c[r]):o[r]===q?-1:c[r]===q?1:0},k):k},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==k&&E(e),n=n.replace(le,"='$1']"),!(!R.matchesSelector||!A||V[n+" "]||L&&L.test(n)||O&&O.test(n)))try{var r=M.call(e,n);if(r||R.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return t(n,k,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==k&&E(e),D(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==k&&E(e);var n=x.attrHandle[t.toLowerCase()],r=n&&z.call(x.attrHandle,t.toLowerCase())?n(e,t,!A):void 0;return void 0!==r?r:R.attributes||!A?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(j=!R.detectDuplicates,N=!R.sortStable&&e.slice(0),e.sort(W),j){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return N=null,e},S=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=S(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=S(t);return n},x=t.selectors={cacheLength:50,createPseudo:r,match:de,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(we,Re),e[3]=(e[3]||e[4]||e[5]||"").replace(we,Re),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return de.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&he.test(n)&&(t=P(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(we,Re).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Q[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&Q(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var s=t.attr(i,e);return null==s?"!="===n:n?(s+="","="===n?s===r:"!="===n?s!==r:"^="===n?r&&0===s.indexOf(r):"*="===n?r&&s.indexOf(r)>-1:"$="===n?r&&s.slice(-r.length)===r:"~="===n?(" "+s.replace(ae," ")+" ").indexOf(r)>-1:"|="===n?s===r||s.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(e,t,n,r,i){var s="nth"!==e.slice(0,3),a="last"!==e.slice(-4),o="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,c){var u,l,h,f,d,p,m=s!==a?"nextSibling":"previousSibling",g=t.parentNode,v=o&&t.nodeName.toLowerCase(),y=!c&&!o,b=!1;if(g){if(s){for(;m;){for(f=t;f=f[m];)if(o?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&y){for(f=g,h=f[H]||(f[H]={}),l=h[f.uniqueID]||(h[f.uniqueID]={}),u=l[e]||[],d=u[0]===U&&u[1],b=d&&u[2],f=d&&g.childNodes[d];f=++d&&f&&f[m]||(b=d=0)||p.pop();)if(1===f.nodeType&&++b&&f===t){l[e]=[U,d,b];break}}else if(y&&(f=t,h=f[H]||(f[H]={}),l=h[f.uniqueID]||(h[f.uniqueID]={}),u=l[e]||[],d=u[0]===U&&u[1],b=d),b===!1)for(;(f=++d&&f&&f[m]||(b=d=0)||p.pop())&&((o?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++b||(y&&(h=f[H]||(f[H]={}),l=h[f.uniqueID]||(h[f.uniqueID]={}),l[e]=[U,b]),f!==t)););return b-=i,b===r||b%r===0&&b/r>=0}}},PSEUDO:function(e,n){var i,s=x.pseudos[e]||x.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return s[H]?s(n):s.length>1?(i=[e,e,"",n],x.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=s(e,n),a=i.length;a--;)r=ee(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return s(e,0,i)}):s}},pseudos:{not:r(function(e){var t=[],n=[],i=T(e.replace(oe,"$1"));return i[H]?r(function(e,t,n,r){for(var s,a=i(e,null,r,[]),o=e.length;o--;)(s=a[o])&&(e[o]=!(t[o]=s))}):function(e,r,s){return t[0]=e,i(t,null,s,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(we,Re),function(t){return(t.textContent||t.innerText||S(t)).indexOf(e)>-1}}),lang:r(function(e){return fe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(we,Re).toLowerCase(),function(t){var n;do if(n=A?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===I},focus:function(e){return e===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;
  
  return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return pe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[0>n?n+t:n]}),even:u(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:u(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:u(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:u(function(e,t,n){for(var r=0>n?n+t:n;++r<t;)e.push(r);return e})}},x.pseudos.nth=x.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[w]=o(w);for(w in{submit:!0,reset:!0})x.pseudos[w]=c(w);return h.prototype=x.filters=x.pseudos,x.setFilters=new h,P=t.tokenize=function(e,n){var r,i,s,a,o,c,u,l=$[e+" "];if(l)return n?0:l.slice(0);for(o=e,c=[],u=x.preFilter;o;){(!r||(i=ce.exec(o)))&&(i&&(o=o.slice(i[0].length)||o),c.push(s=[])),r=!1,(i=ue.exec(o))&&(r=i.shift(),s.push({value:r,type:i[0].replace(oe," ")}),o=o.slice(r.length));for(a in x.filter)!(i=de[a].exec(o))||u[a]&&!(i=u[a](i))||(r=i.shift(),s.push({value:r,type:a,matches:i}),o=o.slice(r.length));if(!r)break}return n?o.length:o?t.error(e):$(e,c).slice(0)},T=t.compile=function(e,t){var n,r=[],i=[],s=V[e+" "];if(!s){for(t||(t=P(e)),n=t.length;n--;)s=y(t[n]),s[H]?r.push(s):i.push(s);s=V(e,b(i,r)),s.selector=e}return s},F=t.select=function(e,t,n,r){var i,s,a,o,c,u="function"==typeof e&&e,h=!r&&P(e=u.selector||e);if(n=n||[],1===h.length){if(s=h[0]=h[0].slice(0),s.length>2&&"ID"===(a=s[0]).type&&R.getById&&9===t.nodeType&&A&&x.relative[s[1].type]){if(t=(x.find.ID(a.matches[0].replace(we,Re),t)||[])[0],!t)return n;u&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(i=de.needsContext.test(e)?0:s.length;i--&&(a=s[i],!x.relative[o=a.type]);)if((c=x.find[o])&&(r=c(a.matches[0].replace(we,Re),ye.test(s[0].type)&&l(t.parentNode)||t))){if(s.splice(i,1),e=r.length&&f(s),!e)return Y.apply(n,r),n;break}}return(u||T(e,h))(r,t,!A,n,!t||ye.test(e)&&l(t.parentNode)||t),n},R.sortStable=H.split("").sort(W).join("")===H,R.detectDuplicates=!!j,E(),R.sortDetached=i(function(e){return 1&e.compareDocumentPosition(k.createElement("div"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||s("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),R.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||s("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||s(te,function(e,t,n){var r;return n?void 0:e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(i);ue.find=pe,ue.expr=pe.selectors,ue.expr[":"]=ue.expr.pseudos,ue.uniqueSort=ue.unique=pe.uniqueSort,ue.text=pe.getText,ue.isXMLDoc=pe.isXML,ue.contains=pe.contains;var me=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&ue(e).is(n))break;r.push(e)}return r},ge=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},ve=ue.expr.match.needsContext,ye=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,be=/^.[^:#\[\.,]*$/;ue.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ue.find.matchesSelector(r,e)?[r]:[]:ue.find.matches(e,ue.grep(t,function(e){return 1===e.nodeType}))},ue.fn.extend({find:function(e){var t,n=this.length,r=[],i=this;if("string"!=typeof e)return this.pushStack(ue(e).filter(function(){for(t=0;n>t;t++)if(ue.contains(i[t],this))return!0}));for(t=0;n>t;t++)ue.find(e,i[t],r);return r=this.pushStack(n>1?ue.unique(r):r),r.selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(o(this,e||[],!1))},not:function(e){return this.pushStack(o(this,e||[],!0))},is:function(e){return!!o(this,"string"==typeof e&&ve.test(e)?ue(e):e||[],!1).length}});var we,Re=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,xe=ue.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||we,"string"==typeof e){if(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Re.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ue?t[0]:t,ue.merge(this,ue.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:Z,!0)),ye.test(r[1])&&ue.isPlainObject(t))for(r in t)ue.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=Z.getElementById(r[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=Z,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):ue.isFunction(e)?void 0!==n.ready?n.ready(e):e(ue):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),ue.makeArray(e,this))};xe.prototype=ue.fn,we=ue(Z);var Se=/^(?:parents|prev(?:Until|All))/,_e={children:!0,contents:!0,next:!0,prev:!0};ue.fn.extend({has:function(e){var t=ue(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++)if(ue.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,s=[],a=ve.test(e)||"string"!=typeof e?ue(e,t||this.context):0;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&ue.find.matchesSelector(n,e))){s.push(n);break}return this.pushStack(s.length>1?ue.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?re.call(ue(e),this[0]):re.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ue.uniqueSort(ue.merge(this.get(),ue(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ue.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return me(e,"parentNode")},parentsUntil:function(e,t,n){return me(e,"parentNode",n)},next:function(e){return c(e,"nextSibling")},prev:function(e){return c(e,"previousSibling")},nextAll:function(e){return me(e,"nextSibling")},prevAll:function(e){return me(e,"previousSibling")},nextUntil:function(e,t,n){return me(e,"nextSibling",n)},prevUntil:function(e,t,n){return me(e,"previousSibling",n)},siblings:function(e){return ge((e.parentNode||{}).firstChild,e)},children:function(e){return ge(e.firstChild)},contents:function(e){return e.contentDocument||ue.merge([],e.childNodes)}},function(e,t){ue.fn[e]=function(n,r){var i=ue.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=ue.filter(r,i)),this.length>1&&(_e[e]||ue.uniqueSort(i),Se.test(e)&&i.reverse()),this.pushStack(i)}});var Pe=/\S+/g;ue.Callbacks=function(e){e="string"==typeof e?u(e):ue.extend({},e);var t,n,r,i,s=[],a=[],o=-1,c=function(){for(i=e.once,r=t=!0;a.length;o=-1)for(n=a.shift();++o<s.length;)s[o].apply(n[0],n[1])===!1&&e.stopOnFalse&&(o=s.length,n=!1);e.memory||(n=!1),t=!1,i&&(s=n?[]:"")},l={add:function(){return s&&(n&&!t&&(o=s.length-1,a.push(n)),function r(t){ue.each(t,function(t,n){ue.isFunction(n)?e.unique&&l.has(n)||s.push(n):n&&n.length&&"string"!==ue.type(n)&&r(n)})}(arguments),n&&!t&&c()),this},remove:function(){return ue.each(arguments,function(e,t){for(var n;(n=ue.inArray(t,s,n))>-1;)s.splice(n,1),o>=n&&o--}),this},has:function(e){return e?ue.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return i=a=[],s=n="",this},disabled:function(){return!s},lock:function(){return i=a=[],n||(s=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],a.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},ue.extend({Deferred:function(e){var t=[["resolve","done",ue.Callbacks("once memory"),"resolved"],["reject","fail",ue.Callbacks("once memory"),"rejected"],["notify","progress",ue.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return ue.Deferred(function(n){ue.each(t,function(t,s){var a=ue.isFunction(e[t])&&e[t];i[s[1]](function(){var e=a&&a.apply(this,arguments);e&&ue.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[s[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?ue.extend(e,r):r}},i={};return r.pipe=r.then,ue.each(t,function(e,s){var a=s[2],o=s[3];r[s[1]]=a.add,o&&a.add(function(){n=o},t[1^e][2].disable,t[2][2].lock),i[s[0]]=function(){return i[s[0]+"With"](this===i?r:this,arguments),this},i[s[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,s=ee.call(arguments),a=s.length,o=1!==a||e&&ue.isFunction(e.promise)?a:0,c=1===o?e:ue.Deferred(),u=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?ee.call(arguments):i,r===t?c.notifyWith(n,r):--o||c.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);a>i;i++)s[i]&&ue.isFunction(s[i].promise)?s[i].promise().progress(u(i,n,t)).done(u(i,r,s)).fail(c.reject):--o;return o||c.resolveWith(r,s),c.promise()}});var Te;ue.fn.ready=function(e){return ue.ready.promise().done(e),this},ue.extend({isReady:!1,readyWait:1,holdReady:function(e){e?ue.readyWait++:ue.ready(!0)},ready:function(e){(e===!0?--ue.readyWait:ue.isReady)||(ue.isReady=!0,e!==!0&&--ue.readyWait>0||(Te.resolveWith(Z,[ue]),ue.fn.triggerHandler&&(ue(Z).triggerHandler("ready"),ue(Z).off("ready"))))}}),ue.ready.promise=function(e){return Te||(Te=ue.Deferred(),"complete"===Z.readyState||"loading"!==Z.readyState&&!Z.documentElement.doScroll?i.setTimeout(ue.ready):(Z.addEventListener("DOMContentLoaded",l),i.addEventListener("load",l))),Te.promise(e)},ue.ready.promise();var Fe=function(e,t,n,r,i,s,a){var o=0,c=e.length,u=null==n;if("object"===ue.type(n)){i=!0;for(o in n)Fe(e,t,o,n[o],!0,s,a)}else if(void 0!==r&&(i=!0,ue.isFunction(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(ue(e),n)})),t))for(;c>o;o++)t(e[o],n,a?r:r.call(e[o],o,t(e[o],n)));return i?e:u?t.call(e):c?t(e[0],n):s},Ce=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};h.uid=1,h.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!Ce(e))return{};var t=e[this.expando];return t||(t={},Ce(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[t]=n;else for(r in t)i[r]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?(r=this.get(e,t),void 0!==r?r:this.get(e,ue.camelCase(t))):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,i,s=e[this.expando];if(void 0!==s){if(void 0===t)this.register(e);else{ue.isArray(t)?r=t.concat(t.map(ue.camelCase)):(i=ue.camelCase(t),t in s?r=[t,i]:(r=i,r=r in s?[r]:r.match(Pe)||[])),n=r.length;for(;n--;)delete s[r[n]]}(void 0===t||ue.isEmptyObject(s))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ue.isEmptyObject(t)}};var Ne=new h,je=new h,Ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ke=/[A-Z]/g;ue.extend({hasData:function(e){return je.hasData(e)||Ne.hasData(e)},data:function(e,t,n){return je.access(e,t,n)},removeData:function(e,t){je.remove(e,t)},_data:function(e,t,n){return Ne.access(e,t,n)},_removeData:function(e,t){Ne.remove(e,t)}}),ue.fn.extend({data:function(e,t){var n,r,i,s=this[0],a=s&&s.attributes;if(void 0===e){if(this.length&&(i=je.get(s),1===s.nodeType&&!Ne.get(s,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=ue.camelCase(r.slice(5)),f(s,r,i[r])));Ne.set(s,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){je.set(this,e)}):Fe(this,function(t){var n,r;if(s&&void 0===t){if(n=je.get(s,e)||je.get(s,e.replace(ke,"-$&").toLowerCase()),void 0!==n)return n;if(r=ue.camelCase(e),n=je.get(s,r),void 0!==n)return n;if(n=f(s,r,void 0),void 0!==n)return n}else r=ue.camelCase(e),this.each(function(){var n=je.get(this,r);je.set(this,r,t),e.indexOf("-")>-1&&void 0!==n&&je.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){je.remove(this,e)})}}),ue.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=Ne.get(e,t),n&&(!r||ue.isArray(n)?r=Ne.access(e,t,ue.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=ue.queue(e,t),r=n.length,i=n.shift(),s=ue._queueHooks(e,t),a=function(){ue.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete s.stop,i.call(e,a,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Ne.get(e,n)||Ne.access(e,n,{empty:ue.Callbacks("once memory").add(function(){Ne.remove(e,[t+"queue",n])})})}}),ue.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?ue.queue(this[0],e):void 0===t?this:this.each(function(){var n=ue.queue(this,e,t);ue._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&ue.dequeue(this,e)})},dequeue:function(e){return this.each(function(){ue.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ue.Deferred(),s=this,a=this.length,o=function(){--r||i.resolveWith(s,[s])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)n=Ne.get(s[a],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(o));return o(),i.promise(t)}});var Ie=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ae=new RegExp("^(?:([+-])=|)("+Ie+")([a-z%]*)$","i"),Oe=["Top","Right","Bottom","Left"],Le=function(e,t){return e=t||e,"none"===ue.css(e,"display")||!ue.contains(e.ownerDocument,e)},Me=/^(?:checkbox|radio)$/i,De=/<([\w:-]+)/,He=/^$|\/(?:java|ecma)script/i,qe={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};qe.optgroup=qe.option,qe.tbody=qe.tfoot=qe.colgroup=qe.caption=qe.thead,qe.th=qe.td;var Ue=/<|&#?\w+;/;!function(){var e=Z.createDocumentFragment(),t=e.appendChild(Z.createElement("div")),n=Z.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),oe.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",oe.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Be=/^key/,Qe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,$e=/^([^.]*)(?:\.(.+)|)/;ue.event={global:{},add:function(e,t,n,r,i){var s,a,o,c,u,l,h,f,d,p,m,g=Ne.get(e);if(g)for(n.handler&&(s=n,n=s.handler,i=s.selector),n.guid||(n.guid=ue.guid++),(c=g.events)||(c=g.events={}),(a=g.handle)||(a=g.handle=function(t){return"undefined"!=typeof ue&&ue.event.triggered!==t.type?ue.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Pe)||[""],u=t.length;u--;)o=$e.exec(t[u])||[],d=m=o[1],p=(o[2]||"").split(".").sort(),d&&(h=ue.event.special[d]||{},d=(i?h.delegateType:h.bindType)||d,h=ue.event.special[d]||{},l=ue.extend({type:d,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ue.expr.match.needsContext.test(i),namespace:p.join(".")},s),(f=c[d])||(f=c[d]=[],f.delegateCount=0,h.setup&&h.setup.call(e,r,p,a)!==!1||e.addEventListener&&e.addEventListener(d,a)),h.add&&(h.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,l):f.push(l),ue.event.global[d]=!0)},remove:function(e,t,n,r,i){var s,a,o,c,u,l,h,f,d,p,m,g=Ne.hasData(e)&&Ne.get(e);if(g&&(c=g.events)){for(t=(t||"").match(Pe)||[""],u=t.length;u--;)if(o=$e.exec(t[u])||[],d=m=o[1],p=(o[2]||"").split(".").sort(),d){for(h=ue.event.special[d]||{},d=(r?h.delegateType:h.bindType)||d,f=c[d]||[],o=o[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=s=f.length;s--;)l=f[s],!i&&m!==l.origType||n&&n.guid!==l.guid||o&&!o.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(f.splice(s,1),l.selector&&f.delegateCount--,h.remove&&h.remove.call(e,l));a&&!f.length&&(h.teardown&&h.teardown.call(e,p,g.handle)!==!1||ue.removeEvent(e,d,g.handle),delete c[d])}else for(d in c)ue.event.remove(e,d+t[u],n,r,!0);ue.isEmptyObject(c)&&Ne.remove(e,"handle events")}},dispatch:function(e){e=ue.event.fix(e);var t,n,r,i,s,a=[],o=ee.call(arguments),c=(Ne.get(this,"events")||{})[e.type]||[],u=ue.event.special[e.type]||{};if(o[0]=e,e.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,e)!==!1){for(a=ue.event.handlers.call(this,e,c),t=0;(i=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(s=i.handlers[n++])&&!e.isImmediatePropagationStopped();)(!e.rnamespace||e.rnamespace.test(s.namespace))&&(e.handleObj=s,e.data=s.data,r=((ue.event.special[s.origType]||{}).handle||s.handler).apply(i.elem,o),void 0!==r&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,s,a=[],o=t.delegateCount,c=e.target;if(o&&c.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&(c.disabled!==!0||"click"!==e.type)){for(r=[],n=0;o>n;n++)s=t[n],i=s.selector+" ",void 0===r[i]&&(r[i]=s.needsContext?ue(i,this).index(c)>-1:ue.find(i,this,null,[c]).length),r[i]&&r.push(s);r.length&&a.push({elem:c,handlers:r})}return o<t.length&&a.push({elem:this,handlers:t.slice(o)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,s=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||Z,r=n.documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||void 0===s||(e.which=1&s?1:2&s?3:4&s?2:0),e}},fix:function(e){if(e[ue.expando])return e;var t,n,r,i=e.type,s=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Qe.test(i)?this.mouseHooks:Be.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new ue.Event(s),t=r.length;t--;)n=r[t],e[n]=s[n];return e.target||(e.target=Z),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,s):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==b()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===b()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&ue.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return ue.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ue.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ue.Event=function(e,t){return this instanceof ue.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?v:y):this.type=e,t&&ue.extend(this,t),this.timeStamp=e&&e.timeStamp||ue.now(),void(this[ue.expando]=!0)):new ue.Event(e,t)},ue.Event.prototype={constructor:ue.Event,isDefaultPrevented:y,isPropagationStopped:y,isImmediatePropagationStopped:y,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=v,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=v,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=v,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ue.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){ue.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,s=e.handleObj;return(!i||i!==r&&!ue.contains(r,i))&&(e.type=s.origType,n=s.handler.apply(this,arguments),e.type=t),n}}}),ue.fn.extend({on:function(e,t,n,r){return w(this,e,t,n,r)},one:function(e,t,n,r){return w(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ue(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=void 0),n===!1&&(n=y),this.each(function(){ue.event.remove(this,e,n,t)})}});var Ve=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,We=/<script|<style|<link/i,Ke=/checked\s*(?:[^=]|=\s*.checked.)/i,ze=/^true\/(.*)/,Je=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;ue.extend({htmlPrefilter:function(e){return e.replace(Ve,"<$1></$2>")},clone:function(e,t,n){var r,i,s,a,o=e.cloneNode(!0),c=ue.contains(e.ownerDocument,e);if(!(oe.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ue.isXMLDoc(e)))for(a=p(o),s=p(e),r=0,i=s.length;i>r;r++)P(s[r],a[r]);if(t)if(n)for(s=s||p(e),a=a||p(o),r=0,i=s.length;i>r;r++)_(s[r],a[r]);else _(e,o);return a=p(o,"script"),a.length>0&&m(a,!c&&p(e,"script")),o},cleanData:function(e){for(var t,n,r,i=ue.event.special,s=0;void 0!==(n=e[s]);s++)if(Ce(n)){if(t=n[Ne.expando]){if(t.events)for(r in t.events)i[r]?ue.event.remove(n,r):ue.removeEvent(n,r,t.handle);n[Ne.expando]=void 0}n[je.expando]&&(n[je.expando]=void 0)}}}),ue.fn.extend({domManip:T,detach:function(e){return F(this,e,!0)},remove:function(e){return F(this,e)},text:function(e){return Fe(this,function(e){return void 0===e?ue.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=e)})},null,e,arguments.length)},append:function(){return T(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=R(this,e);t.appendChild(e)}})},prepend:function(){return T(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=R(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return T(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return T(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ue.cleanData(p(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return ue.clone(this,e,t)})},html:function(e){return Fe(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!We.test(e)&&!qe[(De.exec(e)||["",""])[1].toLowerCase()]){e=ue.htmlPrefilter(e);try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(ue.cleanData(p(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return T(this,arguments,function(t){var n=this.parentNode;ue.inArray(this,e)<0&&(ue.cleanData(p(this)),n&&n.replaceChild(t,this))},e)}}),ue.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){ue.fn[e]=function(e){for(var n,r=[],i=ue(e),s=i.length-1,a=0;s>=a;a++)n=a===s?this:this.clone(!0),ue(i[a])[t](n),ne.apply(r,n.get());return this.pushStack(r)}});var Xe,Ge={HTML:"block",BODY:"block"},Ye=/^margin/,Ze=new RegExp("^("+Ie+")(?!px)[a-z%]+$","i"),et=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=i),t.getComputedStyle(e)},tt=function(e,t,n,r){var i,s,a={};for(s in t)a[s]=e.style[s],e.style[s]=t[s];i=n.apply(e,r||[]);for(s in t)e.style[s]=a[s];return i},nt=Z.documentElement;!function(){function e(){o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",o.innerHTML="",nt.appendChild(a);var e=i.getComputedStyle(o);t="1%"!==e.top,s="2px"===e.marginLeft,n="4px"===e.width,o.style.marginRight="50%",r="4px"===e.marginRight,nt.removeChild(a)}var t,n,r,s,a=Z.createElement("div"),o=Z.createElement("div");o.style&&(o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",oe.clearCloneStyle="content-box"===o.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(o),ue.extend(oe,{pixelPosition:function(){return e(),t},boxSizingReliable:function(){return null==n&&e(),n},pixelMarginRight:function(){return null==n&&e(),r},reliableMarginLeft:function(){return null==n&&e(),s},reliableMarginRight:function(){var e,t=o.appendChild(Z.createElement("div"));return t.style.cssText=o.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",o.style.width="1px",nt.appendChild(a),e=!parseFloat(i.getComputedStyle(t).marginRight),nt.removeChild(a),o.removeChild(t),e}}))}();var rt=/^(none|table(?!-c[ea]).+)/,it={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"},at=["Webkit","O","Moz","ms"],ot=Z.createElement("div").style;ue.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=j(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,s,a,o=ue.camelCase(t),c=e.style;return t=ue.cssProps[o]||(ue.cssProps[o]=k(o)||o),a=ue.cssHooks[t]||ue.cssHooks[o],void 0===n?a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:c[t]:(s=typeof n,"string"===s&&(i=Ae.exec(n))&&i[1]&&(n=d(e,t,i),s="number"),null!=n&&n===n&&("number"===s&&(n+=i&&i[3]||(ue.cssNumber[o]?"":"px")),oe.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(c[t]=n)),void 0)}},css:function(e,t,n,r){var i,s,a,o=ue.camelCase(t);return t=ue.cssProps[o]||(ue.cssProps[o]=k(o)||o),a=ue.cssHooks[t]||ue.cssHooks[o],a&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=j(e,t,r)),"normal"===i&&t in st&&(i=st[t]),""===n||n?(s=parseFloat(i),n===!0||isFinite(s)?s||0:i):i}}),ue.each(["height","width"],function(e,t){ue.cssHooks[t]={get:function(e,n,r){return n?rt.test(ue.css(e,"display"))&&0===e.offsetWidth?tt(e,it,function(){return O(e,t,r)}):O(e,t,r):void 0},set:function(e,n,r){var i,s=r&&et(e),a=r&&A(e,t,r,"border-box"===ue.css(e,"boxSizing",!1,s),s);return a&&(i=Ae.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=ue.css(e,t)),I(e,n,a)}}}),ue.cssHooks.marginLeft=E(oe.reliableMarginLeft,function(e,t){return t?(parseFloat(j(e,"marginLeft"))||e.getBoundingClientRect().left-tt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px":void 0}),ue.cssHooks.marginRight=E(oe.reliableMarginRight,function(e,t){return t?tt(e,{display:"inline-block"},j,[e,"marginRight"]):void 0}),ue.each({margin:"",padding:"",border:"Width"},function(e,t){ue.cssHooks[e+t]={expand:function(n){for(var r=0,i={},s="string"==typeof n?n.split(" "):[n];4>r;r++)i[e+Oe[r]+t]=s[r]||s[r-2]||s[0];return i}},Ye.test(e)||(ue.cssHooks[e+t].set=I)}),ue.fn.extend({css:function(e,t){return Fe(this,function(e,t,n){var r,i,s={},a=0;if(ue.isArray(t)){for(r=et(e),i=t.length;i>a;a++)s[t[a]]=ue.css(e,t[a],!1,r);return s}return void 0!==n?ue.style(e,t,n):ue.css(e,t)},e,t,arguments.length>1)},show:function(){return L(this,!0)},hide:function(){return L(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Le(this)?ue(this).show():ue(this).hide()})}}),ue.Tween=M,M.prototype={constructor:M,init:function(e,t,n,r,i,s){this.elem=e,this.prop=n,this.easing=i||ue.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(ue.cssNumber[n]?"":"px")},cur:function(){var e=M.propHooks[this.prop];return e&&e.get?e.get(this):M.propHooks._default.get(this)},run:function(e){var t,n=M.propHooks[this.prop];return this.pos=t=this.options.duration?ue.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):M.propHooks._default.set(this),this}},M.prototype.init.prototype=M.prototype,M.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ue.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){ue.fx.step[e.prop]?ue.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[ue.cssProps[e.prop]]&&!ue.cssHooks[e.prop]?e.elem[e.prop]=e.now:ue.style(e.elem,e.prop,e.now+e.unit)}}},M.propHooks.scrollTop=M.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ue.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ue.fx=M.prototype.init,ue.fx.step={};var ct,ut,lt=/^(?:toggle|show|hide)$/,ht=/queueHooks$/;ue.Animation=ue.extend(Q,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return d(n.elem,e,Ae.exec(t),n),n}]},tweener:function(e,t){ue.isFunction(e)?(t=e,e=["*"]):e=e.match(Pe);for(var n,r=0,i=e.length;i>r;r++)n=e[r],Q.tweeners[n]=Q.tweeners[n]||[],Q.tweeners[n].unshift(t)},prefilters:[U],prefilter:function(e,t){t?Q.prefilters.unshift(e):Q.prefilters.push(e)}}),ue.speed=function(e,t,n){var r=e&&"object"==typeof e?ue.extend({},e):{complete:n||!n&&t||ue.isFunction(e)&&e,duration:e,easing:n&&t||t&&!ue.isFunction(t)&&t};return r.duration=ue.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in ue.fx.speeds?ue.fx.speeds[r.duration]:ue.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){ue.isFunction(r.old)&&r.old.call(this),r.queue&&ue.dequeue(this,r.queue)},r},ue.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Le).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=ue.isEmptyObject(e),s=ue.speed(t,n,r),a=function(){var t=Q(this,ue.extend({},e),s);(i||Ne.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||s.queue===!1?this.each(a):this.queue(s.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",s=ue.timers,a=Ne.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ht.test(i)&&r(a[i]);for(i=s.length;i--;)s[i].elem!==this||null!=e&&s[i].queue!==e||(s[i].anim.stop(n),t=!1,s.splice(i,1));(t||!n)&&ue.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=Ne.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],s=ue.timers,a=r?r.length:0;for(n.finish=!0,ue.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));
  
  for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),ue.each(["toggle","show","hide"],function(e,t){var n=ue.fn[t];ue.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(H(t,!0),e,r,i)}}),ue.each({slideDown:H("show"),slideUp:H("hide"),slideToggle:H("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){ue.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),ue.timers=[],ue.fx.tick=function(){var e,t=0,n=ue.timers;for(ct=ue.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||ue.fx.stop(),ct=void 0},ue.fx.timer=function(e){ue.timers.push(e),e()?ue.fx.start():ue.timers.pop()},ue.fx.interval=13,ue.fx.start=function(){ut||(ut=i.setInterval(ue.fx.tick,ue.fx.interval))},ue.fx.stop=function(){i.clearInterval(ut),ut=null},ue.fx.speeds={slow:600,fast:200,_default:400},ue.fn.delay=function(e,t){return e=ue.fx?ue.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=i.setTimeout(t,e);n.stop=function(){i.clearTimeout(r)}})},function(){var e=Z.createElement("input"),t=Z.createElement("select"),n=t.appendChild(Z.createElement("option"));e.type="checkbox",oe.checkOn=""!==e.value,oe.optSelected=n.selected,t.disabled=!0,oe.optDisabled=!n.disabled,e=Z.createElement("input"),e.value="t",e.type="radio",oe.radioValue="t"===e.value}();var ft,dt=ue.expr.attrHandle;ue.fn.extend({attr:function(e,t){return Fe(this,ue.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){ue.removeAttr(this,e)})}}),ue.extend({attr:function(e,t,n){var r,i,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return"undefined"==typeof e.getAttribute?ue.prop(e,t,n):(1===s&&ue.isXMLDoc(e)||(t=t.toLowerCase(),i=ue.attrHooks[t]||(ue.expr.match.bool.test(t)?ft:void 0)),void 0!==n?null===n?void ue.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=ue.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!oe.radioValue&&"radio"===t&&ue.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r,i=0,s=t&&t.match(Pe);if(s&&1===e.nodeType)for(;n=s[i++];)r=ue.propFix[n]||n,ue.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)}}),ft={set:function(e,t,n){return t===!1?ue.removeAttr(e,n):e.setAttribute(n,n),n}},ue.each(ue.expr.match.bool.source.match(/\w+/g),function(e,t){var n=dt[t]||ue.find.attr;dt[t]=function(e,t,r){var i,s;return r||(s=dt[t],dt[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,dt[t]=s),i}});var pt=/^(?:input|select|textarea|button)$/i,mt=/^(?:a|area)$/i;ue.fn.extend({prop:function(e,t){return Fe(this,ue.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[ue.propFix[e]||e]})}}),ue.extend({prop:function(e,t,n){var r,i,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&ue.isXMLDoc(e)||(t=ue.propFix[t]||t,i=ue.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ue.find.attr(e,"tabindex");return t?parseInt(t,10):pt.test(e.nodeName)||mt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),oe.optSelected||(ue.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ue.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ue.propFix[this.toLowerCase()]=this});var gt=/[\t\r\n\f]/g;ue.fn.extend({addClass:function(e){var t,n,r,i,s,a,o,c=0;if(ue.isFunction(e))return this.each(function(t){ue(this).addClass(e.call(this,t,$(this)))});if("string"==typeof e&&e)for(t=e.match(Pe)||[];n=this[c++];)if(i=$(n),r=1===n.nodeType&&(" "+i+" ").replace(gt," ")){for(a=0;s=t[a++];)r.indexOf(" "+s+" ")<0&&(r+=s+" ");o=ue.trim(r),i!==o&&n.setAttribute("class",o)}return this},removeClass:function(e){var t,n,r,i,s,a,o,c=0;if(ue.isFunction(e))return this.each(function(t){ue(this).removeClass(e.call(this,t,$(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Pe)||[];n=this[c++];)if(i=$(n),r=1===n.nodeType&&(" "+i+" ").replace(gt," ")){for(a=0;s=t[a++];)for(;r.indexOf(" "+s+" ")>-1;)r=r.replace(" "+s+" "," ");o=ue.trim(r),i!==o&&n.setAttribute("class",o)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):this.each(ue.isFunction(e)?function(n){ue(this).toggleClass(e.call(this,n,$(this),t),t)}:function(){var t,r,i,s;if("string"===n)for(r=0,i=ue(this),s=e.match(Pe)||[];t=s[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else(void 0===e||"boolean"===n)&&(t=$(this),t&&Ne.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":Ne.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+$(n)+" ").replace(gt," ").indexOf(t)>-1)return!0;return!1}});var vt=/\r/g,yt=/[\x20\t\r\n\f]+/g;ue.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=ue.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,ue(this).val()):e,null==i?i="":"number"==typeof i?i+="":ue.isArray(i)&&(i=ue.map(i,function(e){return null==e?"":e+""})),t=ue.valHooks[this.type]||ue.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=ue.valHooks[i.type]||ue.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(vt,""):null==n?"":n)}}}),ue.extend({valHooks:{option:{get:function(e){var t=ue.find.attr(e,"value");return null!=t?t:ue.trim(ue.text(e)).replace(yt," ")}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,s="select-one"===e.type||0>i,a=s?null:[],o=s?i+1:r.length,c=0>i?o:s?i:0;o>c;c++)if(n=r[c],!(!n.selected&&c!==i||(oe.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&ue.nodeName(n.parentNode,"optgroup"))){if(t=ue(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,s=ue.makeArray(t),a=i.length;a--;)r=i[a],(r.selected=ue.inArray(ue.valHooks.option.get(r),s)>-1)&&(n=!0);return n||(e.selectedIndex=-1),s}}}}),ue.each(["radio","checkbox"],function(){ue.valHooks[this]={set:function(e,t){return ue.isArray(t)?e.checked=ue.inArray(ue(e).val(),t)>-1:void 0}},oe.checkOn||(ue.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var bt=/^(?:focusinfocus|focusoutblur)$/;ue.extend(ue.event,{trigger:function(e,t,n,r){var s,a,o,c,u,l,h,f=[n||Z],d=ae.call(e,"type")?e.type:e,p=ae.call(e,"namespace")?e.namespace.split("."):[];if(a=o=n=n||Z,3!==n.nodeType&&8!==n.nodeType&&!bt.test(d+ue.event.triggered)&&(d.indexOf(".")>-1&&(p=d.split("."),d=p.shift(),p.sort()),u=d.indexOf(":")<0&&"on"+d,e=e[ue.expando]?e:new ue.Event(d,"object"==typeof e&&e),e.isTrigger=r?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:ue.makeArray(t,[e]),h=ue.event.special[d]||{},r||!h.trigger||h.trigger.apply(n,t)!==!1)){if(!r&&!h.noBubble&&!ue.isWindow(n)){for(c=h.delegateType||d,bt.test(c+d)||(a=a.parentNode);a;a=a.parentNode)f.push(a),o=a;o===(n.ownerDocument||Z)&&f.push(o.defaultView||o.parentWindow||i)}for(s=0;(a=f[s++])&&!e.isPropagationStopped();)e.type=s>1?c:h.bindType||d,l=(Ne.get(a,"events")||{})[e.type]&&Ne.get(a,"handle"),l&&l.apply(a,t),l=u&&a[u],l&&l.apply&&Ce(a)&&(e.result=l.apply(a,t),e.result===!1&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||h._default&&h._default.apply(f.pop(),t)!==!1||!Ce(n)||u&&ue.isFunction(n[d])&&!ue.isWindow(n)&&(o=n[u],o&&(n[u]=null),ue.event.triggered=d,n[d](),ue.event.triggered=void 0,o&&(n[u]=o)),e.result}},simulate:function(e,t,n){var r=ue.extend(new ue.Event,n,{type:e,isSimulated:!0});ue.event.trigger(r,null,t)}}),ue.fn.extend({trigger:function(e,t){return this.each(function(){ue.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?ue.event.trigger(e,t,n,!0):void 0}}),ue.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){ue.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ue.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),oe.focusin="onfocusin"in i,oe.focusin||ue.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){ue.event.simulate(t,e.target,ue.event.fix(e))};ue.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Ne.access(r,t);i||r.addEventListener(e,n,!0),Ne.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Ne.access(r,t)-1;i?Ne.access(r,t,i):(r.removeEventListener(e,n,!0),Ne.remove(r,t))}}});var wt=i.location,Rt=ue.now(),xt=/\?/;ue.parseJSON=function(e){return JSON.parse(e+"")},ue.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(n){t=void 0}return(!t||t.getElementsByTagName("parsererror").length)&&ue.error("Invalid XML: "+e),t};var St=/#.*$/,_t=/([?&])_=[^&]*/,Pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Tt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ft=/^(?:GET|HEAD)$/,Ct=/^\/\//,Nt={},jt={},Et="*/".concat("*"),kt=Z.createElement("a");kt.href=wt.href,ue.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:wt.href,type:"GET",isLocal:Tt.test(wt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Et,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ue.parseJSON,"text xml":ue.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?K(K(e,ue.ajaxSettings),t):K(ue.ajaxSettings,e)},ajaxPrefilter:V(Nt),ajaxTransport:V(jt),ajax:function(e,t){function n(e,t,n,o){var u,h,y,b,R,S=t;2!==w&&(w=2,c&&i.clearTimeout(c),r=void 0,a=o||"",x.readyState=e>0?4:0,u=e>=200&&300>e||304===e,n&&(b=z(f,x,n)),b=J(f,b,x,u),u?(f.ifModified&&(R=x.getResponseHeader("Last-Modified"),R&&(ue.lastModified[s]=R),R=x.getResponseHeader("etag"),R&&(ue.etag[s]=R)),204===e||"HEAD"===f.type?S="nocontent":304===e?S="notmodified":(S=b.state,h=b.data,y=b.error,u=!y)):(y=S,(e||!S)&&(S="error",0>e&&(e=0))),x.status=e,x.statusText=(t||S)+"",u?m.resolveWith(d,[h,S,x]):m.rejectWith(d,[x,S,y]),x.statusCode(v),v=void 0,l&&p.trigger(u?"ajaxSuccess":"ajaxError",[x,f,u?h:y]),g.fireWith(d,[x,S]),l&&(p.trigger("ajaxComplete",[x,f]),--ue.active||ue.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,s,a,o,c,u,l,h,f=ue.ajaxSetup({},t),d=f.context||f,p=f.context&&(d.nodeType||d.jquery)?ue(d):ue.event,m=ue.Deferred(),g=ue.Callbacks("once memory"),v=f.statusCode||{},y={},b={},w=0,R="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===w){if(!o)for(o={};t=Pt.exec(a);)o[t[1].toLowerCase()]=t[2];t=o[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===w?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return w||(e=b[n]=b[n]||e,y[e]=t),this},overrideMimeType:function(e){return w||(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>w)for(t in e)v[t]=[v[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){var t=e||R;return r&&r.abort(t),n(0,t),this}};if(m.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,f.url=((e||f.url||wt.href)+"").replace(St,"").replace(Ct,wt.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=ue.trim(f.dataType||"*").toLowerCase().match(Pe)||[""],null==f.crossDomain){u=Z.createElement("a");try{u.href=f.url,u.href=u.href,f.crossDomain=kt.protocol+"//"+kt.host!=u.protocol+"//"+u.host}catch(S){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=ue.param(f.data,f.traditional)),W(Nt,f,t,x),2===w)return x;l=ue.event&&f.global,l&&0===ue.active++&&ue.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ft.test(f.type),s=f.url,f.hasContent||(f.data&&(s=f.url+=(xt.test(s)?"&":"?")+f.data,delete f.data),f.cache===!1&&(f.url=_t.test(s)?s.replace(_t,"$1_="+Rt++):s+(xt.test(s)?"&":"?")+"_="+Rt++)),f.ifModified&&(ue.lastModified[s]&&x.setRequestHeader("If-Modified-Since",ue.lastModified[s]),ue.etag[s]&&x.setRequestHeader("If-None-Match",ue.etag[s])),(f.data&&f.hasContent&&f.contentType!==!1||t.contentType)&&x.setRequestHeader("Content-Type",f.contentType),x.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Et+"; q=0.01":""):f.accepts["*"]);for(h in f.headers)x.setRequestHeader(h,f.headers[h]);if(f.beforeSend&&(f.beforeSend.call(d,x,f)===!1||2===w))return x.abort();R="abort";for(h in{success:1,error:1,complete:1})x[h](f[h]);if(r=W(jt,f,t,x)){if(x.readyState=1,l&&p.trigger("ajaxSend",[x,f]),2===w)return x;f.async&&f.timeout>0&&(c=i.setTimeout(function(){x.abort("timeout")},f.timeout));try{w=1,r.send(y,n)}catch(S){if(!(2>w))throw S;n(-1,S)}}else n(-1,"No Transport");return x},getJSON:function(e,t,n){return ue.get(e,t,n,"json")},getScript:function(e,t){return ue.get(e,void 0,t,"script")}}),ue.each(["get","post"],function(e,t){ue[t]=function(e,n,r,i){return ue.isFunction(n)&&(i=i||r,r=n,n=void 0),ue.ajax(ue.extend({url:e,type:t,dataType:i,data:n,success:r},ue.isPlainObject(e)&&e))}}),ue._evalUrl=function(e){return ue.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},ue.fn.extend({wrapAll:function(e){var t;return ue.isFunction(e)?this.each(function(t){ue(this).wrapAll(e.call(this,t))}):(this[0]&&(t=ue(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return this.each(ue.isFunction(e)?function(t){ue(this).wrapInner(e.call(this,t))}:function(){var t=ue(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ue.isFunction(e);return this.each(function(n){ue(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){ue.nodeName(this,"body")||ue(this).replaceWith(this.childNodes)}).end()}}),ue.expr.filters.hidden=function(e){return!ue.expr.filters.visible(e)},ue.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var It=/%20/g,At=/\[\]$/,Ot=/\r?\n/g,Lt=/^(?:submit|button|image|reset|file)$/i,Mt=/^(?:input|select|textarea|keygen)/i;ue.param=function(e,t){var n,r=[],i=function(e,t){t=ue.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=ue.ajaxSettings&&ue.ajaxSettings.traditional),ue.isArray(e)||e.jquery&&!ue.isPlainObject(e))ue.each(e,function(){i(this.name,this.value)});else for(n in e)X(n,e[n],t,i);return r.join("&").replace(It,"+")},ue.fn.extend({serialize:function(){return ue.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ue.prop(this,"elements");return e?ue.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ue(this).is(":disabled")&&Mt.test(this.nodeName)&&!Lt.test(e)&&(this.checked||!Me.test(e))}).map(function(e,t){var n=ue(this).val();return null==n?null:ue.isArray(n)?ue.map(n,function(e){return{name:t.name,value:e.replace(Ot,"\r\n")}}):{name:t.name,value:n.replace(Ot,"\r\n")}}).get()}}),ue.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Dt={0:200,1223:204},Ht=ue.ajaxSettings.xhr();oe.cors=!!Ht&&"withCredentials"in Ht,oe.ajax=Ht=!!Ht,ue.ajaxTransport(function(e){var t,n;return oe.cors||Ht&&!e.crossDomain?{send:function(r,s){var a,o=e.xhr();if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)o[a]=e.xhrFields[a];e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(a in r)o.setRequestHeader(a,r[a]);t=function(e){return function(){t&&(t=n=o.onload=o.onerror=o.onabort=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?s(0,"error"):s(o.status,o.statusText):s(Dt[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=t(),n=o.onerror=t("error"),void 0!==o.onabort?o.onabort=n:o.onreadystatechange=function(){4===o.readyState&&i.setTimeout(function(){t&&n()})},t=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(c){if(t)throw c}},abort:function(){t&&t()}}:void 0}),ue.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ue.globalEval(e),e}}}),ue.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ue.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=ue("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),Z.head.appendChild(t[0])},abort:function(){n&&n()}}}});var qt=[],Ut=/(=)\?(?=&|$)|\?\?/;ue.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=qt.pop()||ue.expando+"_"+Rt++;return this[e]=!0,e}}),ue.ajaxPrefilter("json jsonp",function(e,t,n){var r,s,a,o=e.jsonp!==!1&&(Ut.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(e.data)&&"data");return o||"jsonp"===e.dataTypes[0]?(r=e.jsonpCallback=ue.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(Ut,"$1"+r):e.jsonp!==!1&&(e.url+=(xt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||ue.error(r+" was not called"),a[0]},e.dataTypes[0]="json",s=i[r],i[r]=function(){a=arguments},n.always(function(){void 0===s?ue(i).removeProp(r):i[r]=s,e[r]&&(e.jsonpCallback=t.jsonpCallback,qt.push(r)),a&&ue.isFunction(s)&&s(a[0]),a=s=void 0}),"script"):void 0}),ue.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||Z;var r=ye.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=g([e],t,i),i&&i.length&&ue(i).remove(),ue.merge([],r.childNodes))};var Bt=ue.fn.load;ue.fn.load=function(e,t,n){if("string"!=typeof e&&Bt)return Bt.apply(this,arguments);var r,i,s,a=this,o=e.indexOf(" ");return o>-1&&(r=ue.trim(e.slice(o)),e=e.slice(0,o)),ue.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&ue.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){s=arguments,a.html(r?ue("<div>").append(ue.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,s||[e.responseText,t,e])})}),this},ue.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ue.fn[t]=function(e){return this.on(t,e)}}),ue.expr.filters.animated=function(e){return ue.grep(ue.timers,function(t){return e===t.elem}).length},ue.offset={setOffset:function(e,t,n){var r,i,s,a,o,c,u,l=ue.css(e,"position"),h=ue(e),f={};"static"===l&&(e.style.position="relative"),o=h.offset(),s=ue.css(e,"top"),c=ue.css(e,"left"),u=("absolute"===l||"fixed"===l)&&(s+c).indexOf("auto")>-1,u?(r=h.position(),a=r.top,i=r.left):(a=parseFloat(s)||0,i=parseFloat(c)||0),ue.isFunction(t)&&(t=t.call(e,n,ue.extend({},o))),null!=t.top&&(f.top=t.top-o.top+a),null!=t.left&&(f.left=t.left-o.left+i),"using"in t?t.using.call(e,f):h.css(f)}},ue.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){ue.offset.setOffset(this,e,t)});var t,n,r=this[0],i={top:0,left:0},s=r&&r.ownerDocument;if(s)return t=s.documentElement,ue.contains(t,r)?(i=r.getBoundingClientRect(),n=G(s),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===ue.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),ue.nodeName(e[0],"html")||(r=e.offset()),r.top+=ue.css(e[0],"borderTopWidth",!0),r.left+=ue.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-ue.css(n,"marginTop",!0),left:t.left-r.left-ue.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===ue.css(e,"position");)e=e.offsetParent;return e||nt})}}),ue.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;ue.fn[e]=function(r){return Fe(this,function(e,r,i){var s=G(e);return void 0===i?s?s[t]:e[r]:void(s?s.scrollTo(n?s.pageXOffset:i,n?i:s.pageYOffset):e[r]=i)},e,r,arguments.length)}}),ue.each(["top","left"],function(e,t){ue.cssHooks[t]=E(oe.pixelPosition,function(e,n){return n?(n=j(e,t),Ze.test(n)?ue(e).position()[t]+"px":n):void 0})}),ue.each({Height:"height",Width:"width"},function(e,t){ue.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){ue.fn[r]=function(r,i){var s=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||i===!0?"margin":"border");return Fe(this,function(t,n,r){var i;return ue.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?ue.css(t,n,a):ue.style(t,n,r,a)},t,s?r:void 0,s,null)}})}),ue.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),ue.fn.andSelf=ue.fn.addBack,n=[],r=function(){return ue}.apply(t,n),!(void 0!==r&&(e.exports=r));var Qt=i.jQuery,$t=i.$;return ue.noConflict=function(e){return i.$===ue&&(i.$=$t),e&&i.jQuery===ue&&(i.jQuery=Qt),ue},s||(i.jQuery=i.$=ue),ue})},function(e){!function(t,n){e.exports=n()}(this,function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],0<=t.indexOf(n)||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?f(e):t}function p(e,t){return function(e){return Array.isArray(e)?e:void 0}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,s=e}finally{try{r||null==o["return"]||o["return"]()}finally{if(i)throw s}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function m(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){return Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)?Array.from(e):void 0}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function g(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}function v(e,t){if(e===t)return e;for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n],i=e[n];void 0!==i&&void 0===r||(e[n]=g(i)&&g(r)?v(i,r):"object"==typeof(s=r)&&null!==s?v(Array.isArray(s)?[]:{},s):s)}var s;return e}function y(){return Array.prototype.slice.call(arguments).reduceRight(function(e,t){return Object.keys(Object(t)).forEach(function(n){void 0!==t[n]&&(void 0!==e[n]&&delete e[n],e[n]=t[n])}),e},{})}function b(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(e,n){return b(t[n],e)}):e===t}function w(e){var t=e?w._parseNumbers(e):{};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 n=this;Object.keys(t).forEach(function(e){var r=-1!==w.PARAMETERS.indexOf(e),i=void 0!==t[e];!r&&i&&(n[e]=t[e])})}function R(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=void 0!==t,s=null===t;if(!s&&e>t||r&&i||!n)return 1;if(!r&&t>e||s&&n||!i)return-1}return 0}function x(e){return Array.isArray(e)?e.filter(Boolean):[]}function S(e,t){if(!Array.isArray(e))return-1;for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function _(e,t){var n=(t||[]).map(function(e){return e.split(":")});return e.reduce(function(e,t){var r=t.split(":"),i=On(n,function(e){return e[0]===r[0]});return 1<r.length||!i?(e[0].push(r[0]),e[1].push(r[1])):(e[0].push(i[0]),e[1].push(i[1])),e},[[],[]])}function P(e){var t={};return e.forEach(function(e,n){t[e]=n}),t}function T(e,t,n){t&&t[n]&&(e.stats=t[n])}function F(e,t){var n=t[0];this._rawResults=t;var r=this;Object.keys(n).forEach(function(e){r[e]=n[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 i=e.getRefinedDisjunctiveFacets(),s=P(e.facets),a=P(e.disjunctiveFacets),o=1,c=n.facets||{};Object.keys(c).forEach(function(t){var i=c[t],o=function(e,t){return On(e,function(e){return-1<(e.attributes||[]).indexOf(t)})}(e.hierarchicalFacets,t);if(o){var u=o.attributes.indexOf(t),l=S(e.hierarchicalFacets,function(e){return e.name===o.name});r.hierarchicalFacets[l][u]={attribute:t,data:i,exhaustive:n.exhaustiveFacetsCount}}else{var h,f=-1!==e.disjunctiveFacets.indexOf(t),d=-1!==e.facets.indexOf(t);f&&(h=a[t],r.disjunctiveFacets[h]={name:t,data:i,exhaustive:n.exhaustiveFacetsCount},T(r.disjunctiveFacets[h],n.facets_stats,t)),d&&(h=s[t],r.facets[h]={name:t,data:i,exhaustive:n.exhaustiveFacetsCount},T(r.facets[h],n.facets_stats,t))}}),this.hierarchicalFacets=x(this.hierarchicalFacets),i.forEach(function(i){var s=t[o],c=s&&s.facets?s.facets:{},u=e.getHierarchicalFacetByName(i);Object.keys(c).forEach(function(t){var i,o=c[t];if(u){i=S(e.hierarchicalFacets,function(e){return e.name===u.name});var l=S(r.hierarchicalFacets[i],function(e){return e.attribute===t});if(-1===l)return;r.hierarchicalFacets[i][l].data=In({},r.hierarchicalFacets[i][l].data,o)}else{i=a[t];var h=n.facets&&n.facets[t]||{};r.disjunctiveFacets[i]={name:t,data:y({},o,h),exhaustive:s.exhaustiveFacetsCount},T(r.disjunctiveFacets[i],s.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach(function(n){!r.disjunctiveFacets[i].data[n]&&-1<e.disjunctiveFacetsRefinements[t].indexOf(n)&&(r.disjunctiveFacets[i].data[n]=0)})}}),o++}),e.getRefinedHierarchicalFacets().forEach(function(n){var i=e.getHierarchicalFacetByName(n),s=e._getHierarchicalFacetSeparator(i),a=e.getHierarchicalRefinement(n);if(!(0===a.length||a[0].split(s).length<2)){var c=t[o],u=c&&c.facets?c.facets:{};Object.keys(u).forEach(function(t){var n=u[t],o=S(e.hierarchicalFacets,function(e){return e.name===i.name}),c=S(r.hierarchicalFacets[o],function(e){return e.attribute===t});if(-1!==c){var l={};if(0<a.length){var h=a[0].split(s)[0];l[h]=r.hierarchicalFacets[o][c].data[h]}r.hierarchicalFacets[o][c].data=y(l,n,r.hierarchicalFacets[o][c].data)}}),o++}}),Object.keys(e.facetsExcludes).forEach(function(t){var i=e.facetsExcludes[t],a=s[t];r.facets[a]={name:t,data:n.facets[t],exhaustive:n.exhaustiveFacetsCount},i.forEach(function(e){r.facets[a]=r.facets[a]||{name:t},r.facets[a].data=r.facets[a].data||{},r.facets[a].data[e]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(Qn(e)),this.facets=x(this.facets),this.disjunctiveFacets=x(this.disjunctiveFacets),this._state=e}function C(e,t){if(!t.data||0===t.data.length)return t;var n=t.data.map(function(t){return C(e,t)}),r=e(n);return In({},t,{data:r})}function N(e,t){var n=On(e,function(e){return e.name===t});return n&&n.stats}function j(e,t,n,r,i){var s=On(i,function(e){return e.name===n}),a=s&&s.data&&s.data[r]?s.data[r]:0,o=s&&s.exhaustive||!1;return{type:t,attributeName:n,name:r,count:a,exhaustive:o}}function E(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function k(e){return"function"==typeof e}function I(e){return"object"==typeof e&&null!==e}function A(e){return void 0===e}function O(e,t){this.main=e,this.fn=t,this.lastResults=null}function L(e,t,n){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper (3.2.2)"),this.setClient(e);var r=n||{};r.index=t,this.state=Un.make(r),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}function M(e){if(0>e)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function D(){return this.state.page}function H(e,t,n){return new Gn(e,t,n)}function q(e){function t(){
  for(var t=arguments.length,i=new Array(t),s=0;t>s;s++)i[s]=arguments[s];null===n&&(n=Zn.then(function(){n=null,r?r=!1:e.apply(void 0,i)}))}var n=null,r=!1;return t.wait=function(){if(null===n)throw new Error("The deferred function should be called before calling `wait()`");return n},t.cancel=function(){null!==n&&(r=!0)},t}function U(e){var t="string"==typeof e,n=t?document.querySelector(e):e;if(function(e){return e instanceof HTMLElement||Boolean(e)&&0<e.nodeType}(n))return n;var r="Container must be `string` or `HTMLElement`.";throw t&&(r+=" Unable to find ".concat(e)),new Error(r)}function B(e){return 1===e.button||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}function Q(e){return e.filter(function(e,t,n){return n.indexOf(e)===t})}function $(e){var t=e.defaultTemplates,n=e.templates;return o({templatesConfig:e.templatesConfig},function(e,t){var n=0<arguments.length&&void 0!==e?e:{},r=1<arguments.length&&void 0!==t?t:{};return Q([].concat(m(Object.keys(n)),m(Object.keys(r)))).reduce(function(e,t){var i=n[t],s=r[t],a=void 0!==s&&s!==i;return e.templates[t]=a?s:i,e.useCustomCompileOptions[t]=a,e},{templates:{},useCustomCompileOptions:{}})}(t,n))}function V(e,t){return e(t={exports:{}},t.exports),t.exports}function W(t){var n=t.templates,r=t.templateKey,s=t.compileOptions,a=t.helpers,c=t.data,u=n[r],l=e(u),h="function"===l;if("string"!==l&&!h)throw new Error("Template must be 'string' or 'function', was '".concat(l,"' (key: ").concat(r,")"));if(h)return u(c);var f=function(e,t,n){var r=0<arguments.length&&void 0!==e?e:{},s=1<arguments.length?t:void 0,a=2<arguments.length?n:void 0;return Object.keys(r).reduce(function(e,t){return o({},e,i({},t,function(){var e=this;return function(n){return r[t].call(a,n,function(t){return or.compile(t,s).render(e)})}}))},{})}(a,s,c);return or.compile(u,s).render(o({},c,{helpers:f})).replace(/[ \n\r\t\f\xA0]+/g,function(e){return e.replace(/(^|\xA0+)[^\xA0]+/g,"$1 ")}).trim()}function K(e,t,n){return Array.prototype.find?e.find(t,n):e.filter(t,n)[0]}function z(e){return String(e).replace(/^\\-/,"-")}function J(e,t,n,r,i){var s,a={type:t,attribute:n,name:r},o=K(4<arguments.length&&void 0!==i?i:[],function(e){return e.name===n});"hierarchical"===t?function(){for(var t=e.getHierarchicalFacetByName(n),i=r.split(t.separator),a=function(e){o=o&&o.data&&K(Object.keys(o.data).map(function(e){return function(t){return e[t]}}(o.data)),function(t){return t.name===i[e]})},c=0;void 0!==o&&c<i.length;++c)a(c);s=o&&o.count}():s=o&&o.data&&o.data[a.name];var c=o&&o.exhaustive;return void 0!==s&&(a.count=s),void 0!==c&&(a.exhaustive=c),a}function X(e,t,n){var r=2<arguments.length&&void 0!==n&&n,i=[],s=t.facetsRefinements,a=void 0===s?{}:s,o=t.facetsExcludes,c=void 0===o?{}:o,u=t.disjunctiveFacetsRefinements,l=void 0===u?{}:u,h=t.hierarchicalFacetsRefinements,f=void 0===h?{}:h,d=t.numericRefinements,p=void 0===d?{}:d,m=t.tagRefinements,g=void 0===m?[]:m;return Object.keys(a).forEach(function(n){a[n].forEach(function(r){i.push(J(t,"facet",n,r,e.facets))})}),Object.keys(c).forEach(function(e){c[e].forEach(function(t){i.push({type:"exclude",attribute:e,name:t,exclude:!0})})}),Object.keys(l).forEach(function(n){l[n].forEach(function(r){i.push(J(t,"disjunctive",n,z(r),e.disjunctiveFacets))})}),Object.keys(f).forEach(function(n){f[n].forEach(function(r){i.push(J(t,"hierarchical",n,r,e.hierarchicalFacets))})}),Object.keys(p).forEach(function(e){var t=p[e];Object.keys(t).forEach(function(n){var r=n,s=t[r];(Array.isArray(s)?s:[s]).forEach(function(t){i.push({type:"numeric",attribute:e,name:"".concat(t),numericValue:t,operator:r})})})}),g.forEach(function(e){i.push({type:"tag",attribute:"_tags",name:e})}),r&&t.query&&t.query.trim()&&i.push({attribute:"query",type:"query",name:t.query,query:t.query}),i}function G(e){var t=e.helper,n=e.attributesToClear,r=void 0===n?[]:n,i=t.state.setPage(0);return i=r.reduce(function(e,t){return i.isNumericRefined(t)?e.removeNumericRefinement(t):i.isHierarchicalFacet(t)?e.removeHierarchicalFacetRefinement(t):i.isDisjunctiveFacet(t)?e.removeDisjunctiveFacetRefinement(t):i.isConjunctiveFacet(t)?e.removeFacetRefinement(t):e},i),-1!==r.indexOf("query")&&(i=i.setQuery("")),i}function Y(e){return"number"==typeof e&&0>e&&(e=String(e).replace(/^-/,"\\-")),e}function Z(e,t){if(void 0===e||"function"!=typeof e)throw new Error("The render function is not valid (received type ".concat(function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e),").\n\n").concat(t))}function ee(){}function te(e,t){return t.split(".").reduce(function(e,t){return e&&e[t]},e)}function ne(e){return"number"==typeof e&&isFinite(e)}function re(t){if(!function(t){return"object"===e(t)&&null!==t}(t)||"[object Object]"!==function(e){return null===e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}(t))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(t)===n}function ie(e){var t=e.start,n=void 0===t?0:t,r=e.end,i=e.step,s=void 0===i?1:i,a=0===s?1:s,o=Math.round((r-n)/a);return m(Array(o)).map(function(e,t){return n+t*a})}function se(e){return e!==Object(e)}function ae(e,t){if(e===t)return!0;if(se(e)||se(t)||"function"==typeof e||"function"==typeof t)return e===t;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(!(i in t))return!1;if(!ae(e[i],t[i]))return!1}return!0}function oe(e,t){return e.setQueryParameters({hierarchicalFacets:t.hierarchicalFacets.reduce(function(e,t){var n=function(e,t){if(!Array.isArray(e))return-1;for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}(e,function(e){return e.name===t.name});if(-1===n)return e.concat(t);var r=e.slice();return r.splice(n,1,t),r},e.hierarchicalFacets)})}function ce(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];return t.reduce(function(e,t){var n=function(e,t){return e.setQueryParameters({hierarchicalFacetsRefinements:o({},e.hierarchicalFacetsRefinements,{},t.hierarchicalFacetsRefinements)})}(e,t);return function(e,t){t.facets,t.disjunctiveFacets,t.facetsRefinements,t.facetsExcludes,t.disjunctiveFacetsRefinements,t.numericRefinements,t.tagRefinements,t.hierarchicalFacets,t.hierarchicalFacetsRefinements,t.ruleContexts;var n=h(t,["facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements","ruleContexts"]);return e.setQueryParameters(n)}(function(e,t){return t.facets.reduce(function(e,t){return e.addFacet(t)},e)}(function(e,t){var n=Q([].concat(e.ruleContexts).concat(t.ruleContexts).filter(Boolean));return 0<n.length?e.setQueryParameters({ruleContexts:n}):e}(function(e,t){return t.disjunctiveFacets.reduce(function(e,t){return e.addDisjunctiveFacet(t)},e)}(function(e,t){return e.setQueryParameters({facetsRefinements:o({},e.facetsRefinements,{},t.facetsRefinements)})}(function(e,t){return e.setQueryParameters({facetsExcludes:o({},e.facetsExcludes,{},t.facetsExcludes)})}(function(e,t){return e.setQueryParameters({disjunctiveFacetsRefinements:o({},e.disjunctiveFacetsRefinements,{},t.disjunctiveFacetsRefinements)})}(function(e,t){return e.setQueryParameters({numericRefinements:o({},e.numericRefinements,{},t.numericRefinements)})}(function(e,t){return t.tagRefinements.reduce(function(e,t){return e.addTagRefinement(t)},e)}(oe(n,t),t),t),t),t),t),t),t),t),t)})}function ue(e){return Array.isArray(e)?e:[e]}function le(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=t.map(function(e){return function(e){var t=e.name,n=e.connector;return["https://www.algolia.com/doc/api-reference/widgets/",t,"/js/",void 0!==n&&n?"#connector":""].join("")}(e)}).join(", ");return function(e){return[e,"See documentation: ".concat(r)].filter(Boolean).join("\n\n")}}function he(e){return Array.isArray(e)?function(e){var t=p(e,1)[0],n=p(t=void 0===t?[void 0,void 0,void 0,void 0]:t,4),r=n[0],i=n[1],s=n[2],a=n[3];if(!(r&&i&&s&&a))throw new Error('Invalid value for "insideBoundingBox" parameter: ['.concat(e,"]"));return{northEast:{lat:r,lng:i},southWest:{lat:s,lng:a}}}(e):function(e){var t=p(e.split(",").map(parseFloat),4),n=t[0],r=t[1],i=t[2],s=t[3];if(!(n&&r&&i&&s))throw new Error('Invalid value for "insideBoundingBox" parameter: "'.concat(e,'"'));return{northEast:{lat:n,lng:r},southWest:{lat:i,lng:s}}}(e)}function fe(e,t,n){return e.map(function(e,r){return o({},e,{__position:n*t+r+1})})}function de(e,t){return t?e.map(function(e){return o({},e,{__queryID:t})}):e}function pe(e){return"ais.index"===e.$$type}function me(e,t){var n=t.state,r=t.isPageReset,i=t._uiState;n!==e.state&&(e.state=n,e.emit("change",{state:e.state,results:e.lastResults,isPageReset:r,_uiState:i}))}function ge(e,t,n){var r=2<arguments.length&&void 0!==n?n:{};return e.filter(function(e){return!pe(e)}).reduce(function(e,n){return n.getWidgetState?n.getWidgetState(e,t):e},r)}function ve(e,t){var n=t.initialSearchParameters,r=h(t,["initialSearchParameters"]);return e.filter(function(e){return!pe(e)}).reduce(function(e,t){return t.getWidgetSearchParameters?t.getWidgetSearchParameters(e,r):e},n)}function ye(e){var t=e.getParent();return function n(e){return e.filter(pe).reduce(function(e,t){return e.concat.apply(e,[{indexId:t.getIndexId(),results:t.getResults(),helper:t.getHelper()}].concat(m(n(t.getWidgets()))))},[])}(t?t.getWidgets():[e])}function be(e){function t(e){return u._createURL(i({},s,ge(a,{searchParameters:e,helper:h})))}if(void 0===e||void 0===e.indexName)throw new Error(fr("The `indexName` option is required."));var n=e.indexName,r=e.indexId,s=void 0===r?n:r,a=[],c={},u=null,l=null,h=null,f=null;return{$$type:"ais.index",getIndexName:function(){return n},getIndexId:function(){return s},getHelper:function(){return h},getResults:function(){return f&&f.lastResults},getParent:function(){return l},getWidgets:function(){return a},addWidgets:function(e){var n=this;if(!Array.isArray(e))throw new Error(fr("The `addWidgets` method expects an array of widgets."));if(e.some(function(e){return"function"!=typeof e.init&&"function"!=typeof e.render}))throw new Error(fr("The widget definition expects a `render` and/or an `init` method."));return a=a.concat(e),u&&Boolean(e.length)&&(me(h,{state:ve(a,{uiState:c,initialSearchParameters:h.state}),_uiState:c}),e.forEach(function(e){u&&e.init&&e.init({helper:h,parent:n,uiState:u._initialUiState,instantSearchInstance:u,state:h.state,templatesConfig:u.templatesConfig,createURL:t})}),u.scheduleSearch()),this},removeWidgets:function(e){if(!Array.isArray(e))throw new Error(fr("The `removeWidgets` method expects an array of widgets."));if(e.some(function(e){return"function"!=typeof e.dispose}))throw new Error(fr("The widget definition expects a `dispose` method."));if(a=a.filter(function(t){return-1===e.indexOf(t)}),u&&Boolean(e.length)){var t=e.reduce(function(e,t){return t.dispose({helper:h,state:e})||e},h.state);c=ge(a,{searchParameters:t,helper:h}),h.setState(ve(a,{uiState:c,initialSearchParameters:t})),a.length&&u.scheduleSearch()}return this},init:function(e){var r=this,i=e.instantSearchInstance,o=e.parent,d=e.uiState;u=i,l=o,c=d[s]||{};var p=i.mainHelper,g=ve(a,{uiState:c,initialSearchParameters:new Yn.SearchParameters({index:n})});(h=Yn({},g.index,g)).search=function(){return i.onStateChange?(i.onStateChange({uiState:i.mainIndex.getWidgetState({}),setUiState:i.setUiState.bind(i)}),p):p.search()},h.searchWithoutTriggeringOnStateChange=function(){return p.search()},h.searchForFacetValues=function(e,t,n,r){var i=h.state.setQueryParameters(r);return p.searchForFacetValues(e,t,n,i)},f=p.derive(function(){return ce.apply(void 0,m(function(e){for(var t=e.getParent(),n=[e.getHelper().state];null!==t;)n=[t.getHelper().state].concat(n),t=t.getParent();return n}(r)))}),h.on("change",function(e){e.isPageReset&&!function t(e){var n=e.filter(pe);0!==n.length&&n.forEach(function(e){var n=e.getHelper();me(n,{state:n.state.resetPage(),isPageReset:!0}),t(e.getWidgets())})}(a)}),f.on("search",function(){i.scheduleStalledRender()}),f.on("result",function(e){var t=e.results;i.scheduleRender(),h.lastResults=t}),a.forEach(function(e){e.init&&e.init({uiState:d,helper:h,parent:r,instantSearchInstance:i,state:h.state,templatesConfig:i.templatesConfig,createURL:t})}),h.on("change",function(e){var t=e.state,n=e._uiState;c=ge(a,{searchParameters:t,helper:h},n||{}),i.onStateChange||i.onInternalStateChange()})},render:function(e){var n=this,r=e.instantSearchInstance;a.forEach(function(e){e.render&&f.lastResults&&e.render({helper:h,instantSearchInstance:r,results:f.lastResults,scopedResults:ye(n),state:f.lastResults._state,templatesConfig:r.templatesConfig,createURL:t,searchMetadata:{isSearchStalled:r._isSearchStalled}})})},dispose:function(){a.forEach(function(e){e.dispose&&e.dispose({helper:h,state:h.state})}),l=u=null,h.removeAllListeners(),h=null,f.detach(),f=null},getWidgetState:function(e){return a.filter(pe).reduce(function(e,t){return t.getWidgetState(e)},o({},e,i({},this.getIndexId(),c)))},getWidgetSearchParameters:function(e,t){var n=t.uiState;return ve(a,{uiState:n,initialSearchParameters:e})},refreshUiState:function(){c=ge(a,{searchParameters:this.getHelper().state,helper:this.getHelper()})}}}function we(e){return function(e){return e&&lr.test(e)?e.replace(ur,function(e){return cr[e]}):e}(e).replace(new RegExp(dr.highlightPreTag,"g"),pr.highlightPreTag).replace(new RegExp(dr.highlightPostTag,"g"),pr.highlightPostTag)}function Re(e){return re(e)&&"string"!=typeof e.value?Object.keys(e).reduce(function(t,n){return o({},t,i({},n,Re(e[n])))},{}):Array.isArray(e)?e.map(Re):o({},e,{value:we(e.value)})}function xe(e){return void 0===e.__escaped&&((e=e.map(function(e){var t=s({},e);return t._highlightResult&&(t._highlightResult=Re(t._highlightResult)),t._snippetResult&&(t._snippetResult=Re(t._snippetResult)),t})).__escaped=!0),e}function Se(e){return function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=t.descendantName,r=t.modifierName,i=n?"-".concat(n):"",s=r?"--".concat(r):"";return"".concat("ais","-").concat(e).concat(i).concat(s)}}function _e(e){var t=e.attribute,n=e.highlightedTagName,r=void 0===n?"mark":n,i=e.hit,s=e.cssClasses,a=void 0===s?{}:s,o=te(i,"_highlightResult.".concat(t,".value"))||"",c=mr({descendantName:"highlighted"})+(a.highlighted?" ".concat(a.highlighted):"");return o.replace(new RegExp(pr.highlightPreTag,"g"),"<".concat(r,' class="').concat(c,'">')).replace(new RegExp(pr.highlightPostTag,"g"),"</".concat(r,">"))}function Pe(e){var t=e.attribute,n=e.highlightedTagName,r=void 0===n?"mark":n,i=e.hit,s=e.cssClasses,a=void 0===s?{}:s,o=te(i,"_snippetResult.".concat(t,".value"))||"",c=gr({descendantName:"highlighted"})+(a.highlighted?" ".concat(a.highlighted):"");return o.replace(new RegExp(pr.highlightPreTag,"g"),"<".concat(r,' class="').concat(c,'">')).replace(new RegExp(pr.highlightPostTag,"g"),"</".concat(r,">"))}function Te(t,n){return function(t){var n,r=t.method,i=t.payload;if("object"!==e(i))throw new Error("The insights helper expects the payload to be an object.");try{n=btoa(JSON.stringify(i))}catch(t){throw new Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(r,'" data-insights-payload="').concat(n,'"')}({method:t,payload:n})}function Fe(e){return e.configure,h(e,["configure"])}function Ce(){return{stateToRoute:function(e){return Object.keys(e).reduce(function(t,n){return o({},t,i({},n,Fe(e[n])))},{})},routeToState:function(e){var t=0<arguments.length&&void 0!==e?e:{};return Object.keys(t).reduce(function(e,n){return o({},e,i({},n,Fe(t[n])))},{})}}}function Ne(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n}function je(e,t){Cr.apply(e,Fr(t)?t:[t])}function Ee(e,t,n,r,i,s,a,o,c,u,l,h,f){var d=e;if("function"==typeof a?d=a(t,d):d instanceof Date?d=u(d):"comma"===n&&Fr(d)&&(d=d.join(",")),null===d){if(r)return s&&!h?s(t,Er.encoder,f):t;d=""}if(function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e}(d)||wr.isBuffer(d))return s?[l(h?t:s(t,Er.encoder,f))+"="+l(s(d,Er.encoder,f))]:[l(t)+"="+l(String(d))];var p,m=[];if(void 0===d)return m;if(Fr(a))p=a;else{var g=Object.keys(d);p=o?g.sort(o):g}for(var v=0;v<p.length;++v){var y=p[v];i&&null===d[y]||(Fr(d)?je(m,Ee(d[y],"function"==typeof n?n(t,y):t,n,r,i,s,a,o,c,u,l,h,f)):je(m,Ee(d[y],t+(c?"."+y:"["+y+"]"),n,r,i,s,a,o,c,u,l,h,f)))}return m}function ke(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,s=0<n.depth&&/(\[[^[\]]*])/.exec(r),a=s?r.slice(0,s.index):r,o=[];if(a){if(!n.plainObjects&&kr.call(Object.prototype,a)&&!n.allowPrototypes)return;o.push(a)}for(var c=0;0<n.depth&&null!==(s=i.exec(r))&&c<n.depth;){if(c+=1,!n.plainObjects&&kr.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;o.push(s[1])}return s&&o.push("["+r.slice(s.index)+"]"),function(e,t,n){for(var r=t,i=e.length-1;i>=0;--i){var s,a=e[i];if("[]"===a&&n.parseArrays)s=[].concat(r);else{s=n.plainObjects?Object.create(null):{};var o="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(o,10);n.parseArrays||""!==o?!isNaN(c)&&a!==o&&String(c)===o&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(s=[])[c]=r:s[o]=r:s={0:r}}r=s}return r}(o,t,n)}}function Ie(e){var t=e.qsModule,n=e.routeState,r=e.location,i=r.protocol,s=r.hostname,a=r.port,o=void 0===a?"":a,c=r.pathname,u=r.hash,l=t.stringify(n),h=""===o?"":":".concat(o);return l?"".concat(i,"//").concat(s).concat(h).concat(c,"?").concat(l).concat(u):"".concat(i,"//").concat(s).concat(h).concat(c).concat(u)}function Ae(e){var t=e.qsModule,n=e.location;return t.parse(n.search.slice(1),{arrayLimit:99})}function Oe(e){e&&(window.document.title=e)}function Le(e){return new Or(e)}function Me(){return"#"}function De(e,t){var n=1<arguments.length&&void 0!==t?t:ee;return Z(e,Dr()),function(t){function r(){return f.refine()}function i(){return f.createURL()}var s=t||{},a=s.includedAttributes,o=void 0===a?[]:a,c=s.excludedAttributes,u=void 0===c?["query"]:c,l=s.transformItems,h=void 0===l?function(e){return e}:l;if(t.includedAttributes&&t.excludedAttributes)throw new Error(Dr("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var f={refine:ee,createURL:function(){return""}};return{$$type:"ais.clearRefinements",init:function(n){var s=n.instantSearchInstance;e({hasRefinements:!1,refine:r,createURL:i,instantSearchInstance:s,widgetParams:t},!0)},render:function(n){var s=n.scopedResults,a=n.createURL,c=n.instantSearchInstance,l=s.reduce(function(e,t){return e.concat(function(e){var t=e.scopedResult,n=e.includedAttributes,r=e.excludedAttributes,i=e.transformItems,s=-1!==n.indexOf("query")||-1===r.indexOf("query");return{helper:t.helper,items:i(Q(X(t.results,t.helper.state,s).map(function(e){return e.attribute}).filter(function(e){return 0===n.length||-1!==n.indexOf(e)}).filter(function(e){return"query"===e&&s||-1===r.indexOf(e)})))}}({scopedResult:t,includedAttributes:o,excludedAttributes:u,transformItems:h}))},[]);f.refine=function(){l.forEach(function(e){var t=e.helper,n=e.items;t.setState(G({helper:t,attributesToClear:n})).search()})},f.createURL=function(){return a(ce.apply(void 0,m(l.map(function(e){return G({helper:e.helper,attributesToClear:e.items})}))))},e({hasRefinements:l.some(function(e){return 0<e.items.length}),refine:r,createURL:i,instantSearchInstance:c,widgetParams:t},!1)},dispose:function(){n()}}}}function He(e,t){var n=1<arguments.length&&void 0!==t?t:ee;return Z(e,Hr()),function(t){if((t||{}).includedAttributes&&(t||{}).excludedAttributes)throw new Error(Hr("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var r=t||{},i=r.includedAttributes,s=r.excludedAttributes,a=void 0===s?["query"]:s,o=r.transformItems,c=void 0===o?function(e){return e}:o;return{$$type:"ais.currentRefinements",init:function(n){var r=n.helper,s=n.createURL,o=n.instantSearchInstance,u=c(qe({results:{},helper:r,includedAttributes:i,excludedAttributes:a}));e({items:u,refine:function(e){return Be(r,e)},createURL:function(e){return s(Ue(r.state,e))},instantSearchInstance:o,widgetParams:t},!0)},render:function(n){var r=n.scopedResults,s=n.helper,o=n.createURL,u=n.instantSearchInstance,l=r.reduce(function(e,t){return e.concat(c(qe({results:t.results,helper:t.helper,includedAttributes:i,excludedAttributes:a})))},[]);e({items:l,refine:function(e){return Be(s,e)},createURL:function(e){return o(Ue(s.state,e))},instantSearchInstance:u,widgetParams:t},!1)},dispose:function(){n()}}}}function qe(e){var t=e.results,n=e.helper,r=e.includedAttributes,i=e.excludedAttributes,s=-1!==(r||[]).indexOf("query")||-1===(i||[]).indexOf("query"),a=r?function(e){return-1!==r.indexOf(e.attribute)}:function(e){return-1===i.indexOf(e.attribute)},o=X(t,n.state,s).map(Qe).filter(a);return o.reduce(function(e,t){return[].concat(m(e.filter(function(e){return e.attribute!==t.attribute})),[{indexName:n.state.index,attribute:t.attribute,label:t.attribute,refinements:o.filter(function(e){return e.attribute===t.attribute}).sort(function(e,t){return"numeric"===e.type?e.value-t.value:0}),refine:function(e){return Be(n,e)}}])},[])}function Ue(e,t){switch(t.type){case"facet":return e.removeFacetRefinement(t.attribute,String(t.value));case"disjunctive":return e.removeDisjunctiveFacetRefinement(t.attribute,String(t.value));case"hierarchical":return e.removeHierarchicalFacetRefinement(t.attribute);case"exclude":return e.removeExcludeRefinement(t.attribute,String(t.value));case"numeric":return e.removeNumericRefinement(t.attribute,t.operator,String(t.value));case"tag":return e.removeTagRefinement(String(t.value));case"query":return e.setQueryParameter("query","");default:return e}}function Be(e,t){e.setState(Ue(e.state,t)).search()}function Qe(e){var t="numeric"===e.type?Number(e.name):e.name,n=e.operator?"".concat(function(e){switch(e){case">=":return"≥";case"<=":return"≤";default:return e}}(e.operator)," ").concat(e.name):e.name,r={attribute:e.attribute,type:e.type,value:t,label:n};return void 0!==e.operator&&(r.operator=e.operator),void 0!==e.count&&(r.count=e.count),void 0!==e.exhaustive&&(r.exhaustive=e.exhaustive),r}function $e(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:ee;return Z(e,qr()),function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=n.attributes,s=n.separator,a=void 0===s?" > ":s,c=n.rootPath,u=void 0===c?null:c,l=n.showParentLevel,f=void 0===l||l,d=n.limit,m=void 0===d?10:d,g=n.showMore,v=void 0!==g&&g,y=n.showMoreLimit,b=void 0===y?20:y,w=n.sortBy,R=void 0===w?["name:asc"]:w,x=n.transformItems,S=void 0===x?function(e){return e}:x;if(!r||!Array.isArray(r)||0===r.length)throw new Error(qr("The `attributes` option expects an array of strings."));if(!0===v&&m>=b)throw new Error(qr("The `showMoreLimit` option must be greater than `limit`."));var _=p(r,1)[0];return{$$type:"ais.hierarchicalMenu",isShowingMore:!1,toggleShowMore:function(){},cachedToggleShowMore:function(){this.toggleShowMore()},createToggleShowMore:function(e){var t=this;return function(){t.isShowingMore=!t.isShowingMore,t.render(e)}},getLimit:function(){return this.isShowingMore?b:m},init:function(t){var r=t.helper,i=t.createURL,s=t.instantSearchInstance;this.cachedToggleShowMore=this.cachedToggleShowMore.bind(this),this._refine=function(e){r.toggleRefinement(_,e).search()},e({items:[],createURL:function(e){return i(r.state.toggleRefinement(_,e))},refine:this._refine,instantSearchInstance:s,widgetParams:n,isShowingMore:!1,toggleShowMore:this.cachedToggleShowMore,canToggleShowMore:!1},!0)},_prepareFacetValues:function(e,t){var n=this;return e.slice(0,this.getLimit()).map(function(e){var r=e.name,i=e.path,s=h(e,["name","path"]);return Array.isArray(s.data)&&(s.data=n._prepareFacetValues(s.data,t)),o({},s,{label:r,value:i})})},render:function(t){var r=t.results,i=t.state,s=t.createURL,a=t.instantSearchInstance,o=r.getFacetValues(_,{sortBy:R}).data||[],c=S(this._prepareFacetValues(o),i),u=i.maxValuesPerFacet,l=this.getLimit(),h=u>l?o.length<=l:o.length<l;this.toggleShowMore=this.createToggleShowMore(t),e({items:c,refine:this._refine,createURL:function(e){return s(i.toggleRefinement(_,e))},instantSearchInstance:a,widgetParams:n,isShowingMore:this.isShowingMore,toggleShowMore:this.cachedToggleShowMore,canToggleShowMore:v&&(this.isShowingMore||!h)},!1)},dispose:function(e){var n=e.state;return t(),n.removeHierarchicalFacet(_).setQueryParameter("maxValuesPerFacet",void 0)},getWidgetState:function(e,t){var n=t.searchParameters.getHierarchicalFacetBreadcrumb(_);return n.length?o({},e,{hierarchicalMenu:o({},e.hierarchicalMenu,i({},_,n))}):e},getWidgetSearchParameters:function(e,t){var n=t.uiState,s=n.hierarchicalMenu&&n.hierarchicalMenu[_];e.isHierarchicalFacet(_)&&e.getHierarchicalFacetByName(_);var c=e.removeHierarchicalFacet(_).addHierarchicalFacet({name:_,attributes:r,separator:a,rootPath:u,showParentLevel:f}),l=c.maxValuesPerFacet||0,h=Math.max(l,v?b:m),d=c.setQueryParameter("maxValuesPerFacet",h);return s?d.addHierarchicalFacetRefinement(_,s.join(a)):d.setQueryParameters({hierarchicalFacetsRefinements:o({},d.hierarchicalFacetsRefinements,i({},_,[]))})}}}}function Ve(e,t){var n=1<arguments.length&&void 0!==t?t:ee;return Z(e,Ur()),function(t){var r=t||{},s=r.escapeHTML,a=void 0===s||s,c=r.transformItems,u=void 0===c?function(e){return e}:c;return{$$type:"ais.hits",init:function(n){var r=n.instantSearchInstance;e({hits:[],results:void 0,instantSearchInstance:r,widgetParams:t},!0)},render:function(n){var r=n.results,i=n.instantSearchInstance;a&&0<r.hits.length&&(r.hits=xe(r.hits));var s=r.hits.__escaped;r.hits=fe(r.hits,r.page,r.hitsPerPage),r.hits=de(r.hits,r.queryID),r.hits=u(r.hits),r.hits.__escaped=s,e({hits:r.hits,results:r,instantSearchInstance:i,widgetParams:t},!1)},dispose:function(e){var t=e.state;return n(),a?t.setQueryParameters(Object.keys(dr).reduce(function(e,t){return o({},e,i({},t,void 0))},{})):t},getWidgetSearchParameters:function(e){return a?e.setQueryParameters(dr):e}}}}function We(e){var t=e.method,n=e.results,r=e.hits,i=e.objectIDs,s=n.index,a=function(e,t){return t.map(function(t){var n=K(e,function(e){return e.objectID===t});if(void 0===n)throw new Error('Could not find objectID "'.concat(t,'" passed to `clickedObjectIDsAfterSearch` in the returned hits. This is necessary to infer the absolute position and the query ID.'));return n})}(r,i),o=function(e){var t=Q(e.map(function(e){return e.__queryID}));if(1<t.length)throw new Error("Insights currently allows a single `queryID`. The `objectIDs` provided map to multiple `queryID`s.");var n=t[0];if("string"!=typeof n)throw new Error("Could not infer `queryID`. Ensure InstantSearch `clickAnalytics: true` was added with the Configure widget.\n\nSee: https://alg.li/lNiZZ7");return n}(a);switch(t){case"clickedObjectIDsAfterSearch":return{index:s,queryID:o,objectIDs:i,positions:function(e){return e.map(function(e){return e.__position})}(a)};case"convertedObjectIDsAfterSearch":return{index:s,queryID:o,objectIDs:i};default:throw new Error('Unsupported method passed to insights: "'.concat(t,'".'))}}function Ke(e){function t(e){return function(t,n){var r=t.results,i=t.hits,s=t.instantSearchInstance;if(r&&i&&s){var a=function(e,t,n){return function(r,i){if(!e){var s=le({name:"instantsearch"});throw new Error(s("The `insightsClient` option has not been provided to `instantsearch`."))}if(!Array.isArray(i.objectIDs))throw new TypeError("Expected `objectIDs` to be an array.");var a=We({method:r,results:t,hits:n,objectIDs:i.objectIDs});e(r,o({},a,{},i))}}(s.insightsClient,r,i);return e(o({},t,{insights:a}),n)}return e(t,n)}}return function(n,r){return e(t(n),r)}}function ze(e,t){for(var n in t)e[n]=t[n];return e}function Je(e){var t=e.parentNode;t&&t.removeChild(e)}function Xe(e,t,n){var r,i,s,a,o=arguments;if(t=ze({},t),3<arguments.length)for(n=[n],r=3;r<arguments.length;r++)n.push(o[r]);if(null!=n&&(t.children=n),null!=e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===t[i]&&(t[i]=e.defaultProps[i]);return a=t.key,null!=(s=t.ref)&&delete t.ref,null!=a&&delete t.key,Ge(e,t,a,s)}function Ge(e,t,n,r){var i={type:e,props:t,key:n,ref:r,__k:null,__p:null,__b:0,__e:null,l:null,__c:null,constructor:void 0};return nr.vnode&&nr.vnode(i),i}function Ye(e){return e.children}function Ze(e,t){this.props=e,this.context=t}function et(e,t){if(null==t)return e.__p?et(e.__p,e.__p.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?et(e):null}function tt(e){var t,n;if(null!=(e=e.__p)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return tt(e)}}function nt(e){(!e.__d&&(e.__d=!0)&&1===rr.push(e)||sr!==nr.debounceRendering)&&(sr=nr.debounceRendering,(nr.debounceRendering||ir)(rt))}function rt(){var e,t,n,r,i,s,a,o;for(rr.sort(function(e,t){return t.__v.__b-e.__v.__b});e=rr.pop();)e.__d&&(r=n=void 0,s=(i=(t=e).__v).__e,a=t.__P,o=t.u,t.u=!1,a&&(n=[],r=ut(a,i,ze({},i),t.__n,void 0!==a.ownerSVGElement,null,n,o,null==s?et(i):s),lt(n,i),r!=s&&tt(i)))}function it(e,t,n,r,i,s,a,o,c){var u,l,h,f,d,p,m,g=n&&n.__k||Qr,v=g.length;if(o==Br&&(o=null!=s?s[0]:v?et(n,0):null),u=0,t.__k=st(t.__k,function(n){if(null!=n){if(n.__p=t,n.__b=t.__b+1,null===(h=g[u])||h&&n.key==h.key&&n.type===h.type)g[u]=void 0;else for(l=0;v>l;l++){if((h=g[l])&&n.key==h.key&&n.type===h.type){g[l]=void 0;break}h=null}if(f=ut(e,n,h=h||Br,r,i,s,a,null,o,c),(l=n.ref)&&h.ref!=l&&(m=m||[]).push(l,n.__c||f,n),null!=f){if(null==p&&(p=f),null!=n.l)f=n.l,n.l=null;else if(s==h||f!=o||null==f.parentNode){e:if(null==o||o.parentNode!==e)e.appendChild(f);else{for(d=o,l=0;(d=d.nextSibling)&&v>l;l+=2)if(d==f)break e;e.insertBefore(f,o)}"option"==t.type&&(e.value="")}o=f.nextSibling,"function"==typeof t.type&&(t.l=f)}}return u++,n}),t.__e=p,null!=s&&"function"!=typeof t.type)for(u=s.length;u--;)null!=s[u]&&Je(s[u]);for(u=v;u--;)null!=g[u]&&ft(g[u],g[u]);if(m)for(u=0;u<m.length;u++)ht(m[u],m[++u],m[++u])}function st(e,t,n){if(null==n&&(n=[]),null==e||"boolean"==typeof e)t&&n.push(t(null));else if(Array.isArray(e))for(var r=0;r<e.length;r++)st(e[r],t,n);else n.push(t?t(function(e){if(null==e||"boolean"==typeof e)return null;if("string"==typeof e||"number"==typeof e)return Ge(null,e,null,null);if(null==e.__e&&null==e.__c)return e;var t=Ge(e.type,e.props,e.key,null);return t.__e=e.__e,t}(e)):e);return n}function at(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]="number"==typeof n&&!1===$r.test(t)?n+"px":null==n?"":n}function ot(e,t,n,r,i){var s,a,o,c,u;if("key"===(t=i?"className"===t?"class":t:"class"===t?"className":t)||"children"===t);else if("style"===t)if(s=e.style,"string"==typeof n)s.cssText=n;else{if("string"==typeof r&&(s.cssText="",r=null),r)for(a in r)n&&a in n||at(s,a,"");if(n)for(o in n)r&&n[o]===r[o]||at(s,o,n[o])}else"o"===t[0]&&"n"===t[1]?(c=t!==(t=t.replace(/Capture$/,"")),t=((u=t.toLowerCase())in e?u:t).slice(2),n?(r||e.addEventListener(t,ct,c),(e.t||(e.t={}))[t]=n):e.removeEventListener(t,ct,c)):"list"!==t&&"tagName"!==t&&"form"!==t&&!i&&t in e?e[t]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==t&&(t!==(t=t.replace(/^xlink:?/,""))?null==n||!1===n?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):null==n||!1===n?e.removeAttribute(t):e.setAttribute(t,n))}function ct(e){return this.t[e.type](nr.event?nr.event(e):e)}function ut(e,t,n,r,i,s,a,o,c,u){var l,h,f,d,p,m,g,v,y,b,w=t.type;if(void 0!==t.constructor)return null;(l=nr.__b)&&l(t);try{e:if("function"==typeof w){if(v=t.props,y=(l=w.contextType)&&r[l.__c],b=l?y?y.props.value:l.__p:r,n.__c?g=(h=t.__c=n.__c).__p=h.__E:("prototype"in w&&w.prototype.render?t.__c=h=new w(v,b):(t.__c=h=new Ze(v,b),
  h.constructor=w,h.render=dt),y&&y.sub(h),h.props=v,h.state||(h.state={}),h.context=b,h.__n=r,f=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=w.getDerivedStateFromProps&&ze(h.__s==h.state?h.__s=ze({},h.__s):h.__s,w.getDerivedStateFromProps(v,h.__s)),f)null==w.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&a.push(h);else{if(null==w.getDerivedStateFromProps&&null==o&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(v,b),!o&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(v,h.__s,b)){for(h.props=v,h.state=h.__s,h.__d=!1,(h.__v=t).__e=null!=c?c!==n.__e?c:n.__e:null,t.__k=n.__k,l=0;l<t.__k.length;l++)t.__k[l]&&(t.__k[l].__p=t);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(v,h.__s,b)}for(d=h.props,p=h.state,h.context=b,h.props=v,h.state=h.__s,(l=nr.__r)&&l(t),h.__d=!1,h.__v=t,h.__P=e,l=h.render(h.props,h.state,h.context),t.__k=st(null!=l&&l.type==Ye&&null==l.key?l.props.children:l),null!=h.getChildContext&&(r=ze(ze({},r),h.getChildContext())),f||null==h.getSnapshotBeforeUpdate||(m=h.getSnapshotBeforeUpdate(d,p)),it(e,t,n,r,i,s,a,c,u),h.base=t.__e;l=h.__h.pop();)h.__s&&(h.state=h.__s),l.call(h);f||null==d||null==h.componentDidUpdate||h.componentDidUpdate(d,p,m),g&&(h.__E=h.__p=null)}else t.__e=function(e,t,n,r,i,s,a,o){var c,u,l,h,f=n.props,d=t.props;if(i="svg"===t.type||i,null==e&&null!=s)for(c=0;c<s.length;c++)if(null!=(u=s[c])&&(null===t.type?3===u.nodeType:u.localName===t.type)){e=u,s[c]=null;break}if(null==e){if(null===t.type)return document.createTextNode(d);e=i?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type),s=null}return null===t.type?f!==d&&(null!=s&&(s[s.indexOf(e)]=null),e.data=d):t!==n&&(null!=s&&(s=Qr.slice.call(e.childNodes)),l=(f=n.props||Br).dangerouslySetInnerHTML,h=d.dangerouslySetInnerHTML,o||(h||l)&&(h&&l&&h.__html==l.__html||(e.innerHTML=h&&h.__html||"")),function(e,t,n,r,i){var s;for(s in n)s in t||ot(e,s,null,n[s],r);for(s in t)i&&"function"!=typeof t[s]||"value"===s||"checked"===s||n[s]===t[s]||ot(e,s,t[s],n[s],r)}(e,d,f,i,o),t.__k=t.props.children,h||it(e,t,n,r,"foreignObject"!==t.type&&i,s,a,Br,o),o||("value"in d&&void 0!==d.value&&d.value!==e.value&&(e.value=null==d.value?"":d.value),"checked"in d&&void 0!==d.checked&&d.checked!==e.checked&&(e.checked=d.checked))),e}(n.__e,t,n,r,i,s,a,u);(l=nr.diffed)&&l(t)}catch(e){nr.__e(e,t,n)}return t.__e}function lt(e,t){for(var n;n=e.pop();)try{n.componentDidMount()}catch(e){nr.__e(e,n.__v)}nr.__c&&nr.__c(t)}function ht(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){nr.__e(e,n)}}function ft(e,t,n){var r,i,s;if(nr.unmount&&nr.unmount(e),(r=e.ref)&&ht(r,null,t),n||"function"==typeof e.type||(n=null!=(i=e.__e)),e.__e=e.l=null,null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){nr.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&ft(r[s],t,n);null!=i&&Je(i)}function dt(e,t,n){return this.constructor(e,n)}function pt(e,t,n){var r,i,s;nr.__p&&nr.__p(e,t),i=(r=n===ar)?null:n&&n.__k||t.__k,e=Xe(Ye,null,[e]),s=[],ut(t,r?t.__k=e:(n||t).__k=e,i||Br,Br,void 0!==t.ownerSVGElement,n&&!r?[n]:i?null:Qr.slice.call(t.childNodes),s,!1,n||Br,r),lt(s,e)}function mt(e){return function(t){return Xe("div",{onClick:function(e){var n=function(e,t){for(var n=e;n&&!n.hasAttribute("data-insights-method");){if(n===t)return null;n=n.parentElement}return n}(e.target,e.currentTarget);if(n){var r=function(e){var t=e.getAttribute("data-insights-method"),n=e.getAttribute("data-insights-payload");if("string"!=typeof n)throw new Error("The insights helper expects `data-insights-payload` to be a base64-encoded JSON string.");try{return{method:t,payload:JSON.parse(atob(n))}}catch(e){throw new Error("The insights helper was unable to parse `data-insights-payload`.")}}(n),i=r.method,s=r.payload;t.insights(i,s)}}},Xe(e,t))}}function gt(e,t){var n=1<arguments.length&&void 0!==t?t:ee;return Z(e,Wr()),function(t){function r(e){var t=e.hitsPerPage;return u.map(function(e){return o({},e,{isRefined:Number(e.value)===Number(t)})})}var i=t||{},s=i.items,a=i.transformItems,c=void 0===a?function(e){return e}:a,u=s;if(!Array.isArray(u))throw new Error(Wr("The `items` option expects an array of objects."));var l=u.filter(function(e){return!0===e["default"]});if(0===l.length)throw new Error(Wr("A default value must be specified in `items`."));if(1<l.length)throw new Error(Wr("More than one default value is specified in `items`."));var h=l[0],f={};return{$$type:"ais.hitsPerPage",init:function(n){var i=n.helper,s=n.createURL,a=n.state,o=n.instantSearchInstance,l=u.some(function(e){return Number(a.hitsPerPage)===Number(e.value)});f.setHitsPerPage=function(e){return e||0===e?i.setQueryParameter("hitsPerPage",e).search():i.setQueryParameter("hitsPerPage",void 0).search()},l||(u=[{value:"",label:""}].concat(m(u))),f.createURLFactory=function(e){return function(t){return s(e.setQueryParameter("hitsPerPage",t||0===t?t:void 0))}},e({items:c(r(a)),refine:f.setHitsPerPage,createURL:f.createURLFactory(i.state),hasNoResults:!0,widgetParams:t,instantSearchInstance:o},!0)},render:function(n){var i=n.state,s=n.results,a=n.instantSearchInstance,o=0===s.nbHits;e({items:c(r(i)),refine:f.setHitsPerPage,createURL:f.createURLFactory(i),hasNoResults:o,widgetParams:t,instantSearchInstance:a},!1)},dispose:function(e){var t=e.state;return n(),t.setQueryParameter("hitsPerPage",void 0)},getWidgetState:function(e,t){var n=t.searchParameters.hitsPerPage;return void 0===n||n===h.value?e:o({},e,{hitsPerPage:n})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return e.setQueryParameters({hitsPerPage:n.hitsPerPage||h.value})}}}}function vt(e){var t=e||{};return t.page,h(t,["page"])}function yt(e){return Object.keys(e).map(Number).sort(function(e,t){return e-t}).reduce(function(t,n){return t.concat(e[n])},[])}function bt(e,t){var n=1<arguments.length&&void 0!==t?t:ee;return Z(e,Kr()),function(t){function r(){return Math.min.apply(Math,m(Object.keys(w||{}).map(Number)))}function s(e){return function(){e.setPage(Math.max.apply(Math,m(Object.keys(w||{}).map(Number)))+1).search()}}function a(e){var t=0<arguments.length&&void 0!==e?e:{};return Object.keys(t).filter(function(e){return Array.isArray(t[e])?t[e].length:Object.keys(t[e]).length}).reduce(function(e,n){return e[n]=t[n],e},{})}var c,u,l,f=t||{},d=f.escapeHTML,p=void 0===d||d,g=f.transformItems,v=void 0===g?function(e){return e}:g,y=f.cache,b=void 0===y?function(){var e=null,t=void 0;return{read:function(n){var r=n.state;return ae(t,vt(r))?e:null},write:function(n){var r=n.state,i=n.hits;t=vt(r),e=i}}}():y,w=void 0;return{$$type:"ais.infiniteHits",init:function(n){var i=n.instantSearchInstance,a=n.helper;u=function(e){return function(){e.overrideStateWithoutTriggeringChangeEvent(o({},e.state,{page:r()-1})).searchWithoutTriggeringOnStateChange()}}(a),l=s(a),e({hits:yt(b.read({state:a.state})||{}),results:void 0,showPrevious:u,showMore:l,isFirstPage:0===r()||void 0===a.state.page,isLastPage:!0,instantSearchInstance:i,widgetParams:t},!0)},render:function(n){var i=n.results,s=n.state,o=n.instantSearchInstance,f=s.page,d=void 0===f?0:f,m=(s.facets,s.hierarchicalFacets,s.disjunctiveFacets,s.maxValuesPerFacet,h(s,["page","facets","hierarchicalFacets","disjunctiveFacets","maxValuesPerFacet"]));m.facetsRefinements=a(m.facetsRefinements),m.hierarchicalFacetsRefinements=a(m.hierarchicalFacetsRefinements),m.disjunctiveFacetsRefinements=a(m.disjunctiveFacetsRefinements),m.numericRefinements=a(m.numericRefinements),ae(m,c)||(w=b.read({state:s})||{},c=m),p&&0<i.hits.length&&(i.hits=xe(i.hits));var g=i.hits.__escaped;i.hits=fe(i.hits,i.page,i.hitsPerPage),i.hits=de(i.hits,i.queryID),i.hits=v(i.hits),i.hits.__escaped=g,void 0===w&&(w=b.read({state:s})||{}),void 0===w[d]&&(w[d]=i.hits,b.write({state:s,hits:w}));var y=0===r(),R=i.nbPages<=i.page+1;e({hits:yt(w),results:i,showPrevious:u,showMore:l,isFirstPage:y,isLastPage:R,instantSearchInstance:o,widgetParams:t},!1)},dispose:function(e){var t=e.state;n();var r=t.setQueryParameter("page",void 0);return p?r.setQueryParameters(Object.keys(dr).reduce(function(e,t){return o({},e,i({},t,void 0))},{})):r},getWidgetState:function(e,t){var n=t.searchParameters.page||0;return n?o({},e,{page:n+1}):e},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=e;p&&(r=e.setQueryParameters(dr));var i=n.page?n.page-1:0;return r.setQueryParameter("page",i)}}}}function wt(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:ee;return Z(e,Jr()),function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=n.attribute,s=n.limit,a=void 0===s?10:s,c=n.showMore,u=void 0!==c&&c,l=n.showMoreLimit,f=void 0===l?20:l,d=n.sortBy,m=void 0===d?["isRefined","name:asc"]:d,g=n.transformItems,v=void 0===g?function(e){return e}:g;if(!r)throw new Error(Jr("The `attribute` option is required."));if(!0===u&&a>=f)throw new Error(Jr("The `showMoreLimit` option must be greater than `limit`."));return{$$type:"ais.menu",isShowingMore:!1,toggleShowMore:function(){},cachedToggleShowMore:function(){this.toggleShowMore()},createToggleShowMore:function(e){var t=this,n=e.results,r=e.instantSearchInstance;return function(){t.isShowingMore=!t.isShowingMore,t.render({results:n,instantSearchInstance:r})}},getLimit:function(){return this.isShowingMore?f:a},refine:function(e){return function(t){var n=p(e.getHierarchicalFacetBreadcrumb(r),1)[0];e.toggleRefinement(r,t||n).search()}},init:function(t){var i=t.helper,s=t.createURL,a=t.instantSearchInstance;this.cachedToggleShowMore=this.cachedToggleShowMore.bind(this),this._createURL=function(e){return s(i.state.toggleRefinement(r,e))},this._refine=this.refine(i),e({items:[],createURL:this._createURL,refine:this._refine,instantSearchInstance:a,canRefine:!1,widgetParams:n,isShowingMore:this.isShowingMore,toggleShowMore:this.cachedToggleShowMore,canToggleShowMore:!1},!0)},render:function(t){var i=t.results,s=t.instantSearchInstance,a=i.getFacetValues(r,{sortBy:m}),c=a&&a.data?a.data:[],l=v(c.slice(0,this.getLimit()).map(function(e){var t=e.name,n=e.path;return o({},h(e,["name","path"]),{label:t,value:n})}));this.toggleShowMore=this.createToggleShowMore({results:i,instantSearchInstance:s}),e({items:l,createURL:this._createURL,refine:this._refine,instantSearchInstance:s,canRefine:0<l.length,widgetParams:n,isShowingMore:this.isShowingMore,toggleShowMore:this.cachedToggleShowMore,canToggleShowMore:u&&(this.isShowingMore||c.length>this.getLimit())},!1)},dispose:function(e){var n=e.state;return t(),n.removeHierarchicalFacet(r).setQueryParameter("maxValuesPerFacet",void 0)},getWidgetState:function(e,t){var n=p(t.searchParameters.getHierarchicalFacetBreadcrumb(r),1)[0];return n?o({},e,{menu:o({},e.menu,i({},r,n))}):e},getWidgetSearchParameters:function(e,t){var n=t.uiState,s=n.menu&&n.menu[r],c=e.removeHierarchicalFacet(r).addHierarchicalFacet({name:r,attributes:[r]}),l=c.maxValuesPerFacet||0,h=Math.max(l,u?f:a),d=c.setQueryParameter("maxValuesPerFacet",h);return s?d.addHierarchicalFacetRefinement(r,s):d.setQueryParameters({hierarchicalFacetsRefinements:o({},d.hierarchicalFacetsRefinements,i({},r,[]))})}}}}function Rt(e,t){var n=1<arguments.length&&void 0!==t?t:ee;return Z(e,Xr()),function(t){function r(e){return l.map(function(t){var n=t.start,r=t.end,i=t.label;return{label:i,value:window.encodeURI(JSON.stringify({start:n,end:r})),isRefined:xt(e,c,{start:n,end:r,label:i})}})}var s=t||{},a=s.attribute,c=void 0===a?"":a,u=s.items,l=void 0===u?[]:u,h=s.transformItems,f=void 0===h?function(e){return e}:h;if(""===c)throw new Error(Xr("The `attribute` option is required."));if(!l||0===l.length)throw new Error(Xr("The `items` option expects an array of objects."));var d={};return{$$type:"ais.numericMenu",init:function(n){var i=n.helper,s=n.createURL,a=n.instantSearchInstance;d.refine=function(e){var t=St(i.state,c,e);i.setState(t).search()},d.createURL=function(e){return function(t){return s(St(e,c,t))}},e({createURL:d.createURL(i.state),items:f(r(i.state)),hasNoResults:!0,refine:d.refine,instantSearchInstance:a,widgetParams:t},!0)},render:function(n){var i=n.results,s=n.state,a=n.instantSearchInstance;e({createURL:d.createURL(s),items:f(r(s)),hasNoResults:0===i.nbHits,refine:d.refine,instantSearchInstance:a,widgetParams:t},!1)},dispose:function(e){var t=e.state;return n(),t.clearRefinements(c)},getWidgetState:function(e,t){var n=t.searchParameters.getNumericRefinements(c),r=n["="]&&n["="][0];if(r||0===r)return o({},e,{numericMenu:o({},e.numericMenu,i({},c,"".concat(n["="])))});var s=n[">="]&&n[">="][0]||"",a=n["<="]&&n["<="][0]||"";return""===s&&""===a?e:o({},e,{numericMenu:o({},e.numericMenu,i({},c,"".concat(s,":").concat(a)))})},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=n.numericMenu&&n.numericMenu[c],s=e.clearRefinements(c);if(!r)return s.setQueryParameters({numericRefinements:o({},s.numericRefinements,i({},c,{}))});if(-1===r.indexOf(":"))return s.addNumericRefinement(c,"=",Number(r));var a=p(r.split(":").map(parseFloat),2),u=a[0],l=a[1],h=ne(u)?s.addNumericRefinement(c,">=",u):s;return ne(l)?h.addNumericRefinement(c,"<=",l):h}}}}function xt(e,t,n){var r=e.getNumericRefinements(t);return void 0!==n.start&&void 0!==n.end&&n.start===n.end?_t(r,"=",n.start):void 0!==n.start?_t(r,">=",n.start):void 0!==n.end?_t(r,"<=",n.end):void 0===n.start&&void 0===n.end&&Object.keys(r).every(function(e){return 0===(r[e]||[]).length})}function St(e,t,n){var r=e,i=JSON.parse(window.decodeURI(n)),s=r.getNumericRefinements(t);if(void 0===i.start&&void 0===i.end)return r.removeNumericRefinement(t);if(xt(r,t,i)||(r=r.removeNumericRefinement(t)),void 0!==i.start&&void 0!==i.end){if(i.start>i.end)throw new Error("option.start should be > to option.end");if(i.start===i.end)return r=_t(s,"=",i.start)?r.removeNumericRefinement(t,"=",i.start):r.addNumericRefinement(t,"=",i.start)}return void 0!==i.start&&(r=_t(s,">=",i.start)?r.removeNumericRefinement(t,">=",i.start):r.addNumericRefinement(t,">=",i.start)),void 0!==i.end&&(r=_t(s,"<=",i.end)?r.removeNumericRefinement(t,"<=",i.end):r.addNumericRefinement(t,"<=",i.end)),"number"==typeof r.page&&(r.page=0),r}function _t(e,t,n){return void 0!==e[t]&&e[t].includes(n)}function Pt(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:ee;return Z(e,Yr()),function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=n.totalPages,i=n.padding,s=new Gr({currentPage:0,total:0,padding:void 0===i?3:i});return{$$type:"ais.pagination",init:function(t){var r=t.helper,i=t.createURL,s=t.instantSearchInstance;this.refine=function(e){r.setPage(e),r.search()},this.createURL=function(e){return function(t){return i(e.setPage(t))}},e({createURL:this.createURL(r.state),currentRefinement:r.state.page||0,nbHits:0,nbPages:0,pages:[],isFirstPage:!0,isLastPage:!0,refine:this.refine,widgetParams:n,instantSearchInstance:s},!0)},getMaxPage:function(e){var t=e.nbPages;return void 0!==r?Math.min(r,t):t},render:function(t){var r=t.results,i=t.state,a=t.instantSearchInstance,o=i.page||0,c=this.getMaxPage(r);s.currentPage=o,s.total=c,e({createURL:this.createURL(i),currentRefinement:o,refine:this.refine,nbHits:r.nbHits,nbPages:c,pages:s.pages(),isFirstPage:s.isFirstPage(),isLastPage:s.isLastPage(),widgetParams:n,instantSearchInstance:a},!1)},dispose:function(e){var n=e.state;return t(),n.setQueryParameter("page",void 0)},getWidgetState:function(e,t){var n=t.searchParameters.page||0;return n?o({},e,{page:n+1}):e},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=n.page?n.page-1:0;return e.setQueryParameter("page",r)}}}}function Tt(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:ee;return Z(e,Zr()),function(){function n(e){return Number(Number(e).toFixed(l))}var r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},s=r.attribute,a=r.min,c=r.max,u=r.precision,l=void 0===u?0:u,h=ne(a),f=ne(c);if(!s)throw new Error(Zr("The `attribute` option is required."));if(h&&f&&a>c)throw new Error(Zr("The `max` option can't be lower than `min`."));var d={from:function(e){return e},to:function(e){return n(e).toLocaleString()}};return{$$type:"ais.range",_getCurrentRange:function(e){var t,n,r=Math.pow(10,l);return t=h?a:ne(e.min)?e.min:0,n=f?c:ne(e.max)?e.max:0,{min:Math.floor(t*r)/r,max:Math.ceil(n*r)/r}},_getCurrentRefinement:function(e){var t=p(e.getNumericRefinement(s,">=")||[],1)[0],n=p(e.getNumericRefinement(s,"<=")||[],1)[0];return[ne(t)?t:-1/0,ne(n)?n:1/0]},_refine:function(e,t){return function(){var r,i,o=p(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],2),u=o[0],l=o[1],d=t.min,m=t.max,g=p(e.getNumericRefinement(s,">=")||[],1)[0],v=p(e.getNumericRefinement(s,"<=")||[],1)[0],y=void 0===u||""===u,b=void 0===l||""===l,w=y?void 0:parseFloat(u),R=b?void 0:parseFloat(l);i=f||m!==R?f&&b?c:R:void 0;var x=void 0===(r=h||d!==w?h&&y?a:w:void 0),S=ne(r),_=ne(d),P=x||S&&(!_||_&&r>=d),T=void 0===i,F=ne(i),C=ne(m);(g!==r||v!==i)&&P&&(T||F&&(!C||C&&m>=i))&&(e.removeNumericRefinement(s),S&&e.addNumericRefinement(s,">=",n(r)),F&&e.addNumericRefinement(s,"<=",n(i)),e.search())}},init:function(t){var n=t.helper,i=t.instantSearchInstance,s=this._getCurrentRange({}),a=this._getCurrentRefinement(n);e({refine:this._refine(n,{}),format:d,range:s,widgetParams:o({},r,{precision:l}),start:a,instantSearchInstance:i},!0)},render:function(t){var n=t.results,i=t.helper,a=t.instantSearchInstance,c=K(n.disjunctiveFacets||[],function(e){return e.name===s}),u=c&&c.stats||{},h=this._getCurrentRange(u),f=this._getCurrentRefinement(i);e({refine:this._refine(i,h),format:d,range:h,widgetParams:o({},r,{precision:l}),start:f,instantSearchInstance:a},!1)},dispose:function(e){var n=e.state;t();var r=n.removeDisjunctiveFacet(s);return r.numericRefinements=o({},n.numericRefinements,i({},s,void 0)),r},getWidgetState:function(e,t){var n=t.searchParameters.getNumericRefinements(s),r=n[">="],a=void 0===r?[]:r,c=n["<="],u=void 0===c?[]:c;return 0===a.length&&0===u.length?e:o({},e,{range:o({},e.range,i({},s,"".concat(a,":").concat(u)))})},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=e.addDisjunctiveFacet(s).setQueryParameters({numericRefinements:o({},e.numericRefinements,i({},s,{}))});h&&(r=r.addNumericRefinement(s,">=",a)),f&&(r=r.addNumericRefinement(s,"<=",c));var u=n.range&&n.range[s];if(!u||-1===u.indexOf(":"))return r;var l=p(u.split(":").map(parseFloat),2),d=l[0],m=l[1];return ne(d)&&(r=r.addNumericRefinement(s,">=",d)),ne(m)&&(r=r.addNumericRefinement(s,"<=",m)),r}}}}function Ft(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:ee;return Z(e,ei()),function(){function n(e){var t=e.name;return o({},h(e,["name"]),{label:t,value:t,highlighted:t})}function r(e){return e?y:p}function s(t){var n=t.items,r=t.state,i=t.createURL,s=t.helperSpecializedSearchFacetValues,a=t.refine,o=t.isFromSearch,l=t.isFirstSearch,h=t.isShowingMore,f=t.toggleShowMore,d=t.instantSearchInstance,m=s&&s(r,i,s,a,d,h),v=h&&F.length>p||g&&!o&&!C;e({createURL:function(e){return i(r.toggleRefinement(u,e))},items:n,refine:a,searchForItems:m,instantSearchInstance:d,isFromSearch:o,canRefine:o||0<n.length,widgetParams:c,isShowingMore:h,canToggleShowMore:v,toggleShowMore:f,hasExhaustiveItems:C},l)}function a(e,t){return function(n,i,a,c,l,f){return function(d){if(""===d&&F)s({items:F,state:n,createURL:i,helperSpecializedSearchFacetValues:a,refine:c,isFromSearch:!1,isFirstSearch:!1,instantSearchInstance:l,toggleShowMore:t,isShowingMore:f});else{var p={highlightPreTag:x?dr.highlightPreTag:pr.highlightPreTag,highlightPostTag:x?dr.highlightPostTag:pr.highlightPostTag};e.searchForFacetValues(u,d,r(f),p).then(function(e){var t=x?function(e){return e.map(function(e){return o({},e,{highlighted:we(e.highlighted)})})}(e.facetHits):e.facetHits,r=_(t.map(function(e){var t=e.value;return o({},h(e,["value"]),{value:t,label:t})}));s({items:r,state:n,createURL:i,helperSpecializedSearchFacetValues:a,refine:c,isFromSearch:!0,isFirstSearch:!1,instantSearchInstance:l,isShowingMore:f})})}}}}var c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},u=c.attribute,l=c.operator,f=void 0===l?"or":l,d=c.limit,p=void 0===d?10:d,m=c.showMore,g=void 0!==m&&m,v=c.showMoreLimit,y=void 0===v?20:v,b=c.sortBy,w=void 0===b?["isRefined","count:desc","name:asc"]:b,R=c.escapeFacetValues,x=void 0===R||R,S=c.transformItems,_=void 0===S?function(e){return e}:S;if(!u)throw new Error(ei("The `attribute` option is required."));if(!/^(and|or)$/.test(f))throw new Error(ei('The `operator` must one of: `"and"`, `"or"` (got "'.concat(f,'").')));if(!0===g&&p>=y)throw new Error(ei("`showMoreLimit` should be greater than `limit`."));var P,T,F=[],C=!0;return{$$type:"ais.refinementList",isShowingMore:!1,toggleShowMore:function(){},cachedToggleShowMore:function(){this.toggleShowMore()},createToggleShowMore:function(e){var t=this;return function(){t.isShowingMore=!t.isShowingMore,t.render(e)}},getLimit:function(){return r(this.isShowingMore)},init:function(e){var t=e.helper,n=e.createURL,r=e.instantSearchInstance;this.cachedToggleShowMore=this.cachedToggleShowMore.bind(this),T=function(e){return t.toggleRefinement(u,e).search()},P=a(t,this.cachedToggleShowMore),s({items:[],state:t.state,createURL:n,helperSpecializedSearchFacetValues:P,refine:T,isFromSearch:!1,isFirstSearch:!0,instantSearchInstance:r,isShowingMore:this.isShowingMore,toggleShowMore:this.cachedToggleShowMore})},render:function(e){var t=e.results,r=e.state,i=e.createURL,a=e.instantSearchInstance,o=t.getFacetValues(u,{sortBy:w})||[],c=_(o.slice(0,this.getLimit()).map(n)),l=r.maxValuesPerFacet,h=this.getLimit();C=l>h?o.length<=h:o.length<h,F=c,this.toggleShowMore=this.createToggleShowMore(e),s({items:c,state:r,createURL:i,helperSpecializedSearchFacetValues:P,refine:T,isFromSearch:!1,isFirstSearch:!1,instantSearchInstance:a,isShowingMore:this.isShowingMore,toggleShowMore:this.cachedToggleShowMore})},dispose:function(e){var n=e.state;t();var r=n.setQueryParameter("maxValuesPerFacet",void 0);return"and"===f?r.removeFacet(u):r.removeDisjunctiveFacet(u)},getWidgetState:function(e,t){var n=t.searchParameters,r="or"===f?n.getDisjunctiveRefinements(u):n.getConjunctiveRefinements(u);return r.length?o({},e,{refinementList:o({},e.refinementList,i({},u,r))}):e},getWidgetSearchParameters:function(e,t){var n=t.uiState,r="or"===f,s=n.refinementList&&n.refinementList[u],a=e.clearRefinements(u),c=r?a.addDisjunctiveFacet(u):a.addFacet(u),l=c.maxValuesPerFacet||0,h=Math.max(l,g?y:p),d=c.setQueryParameter("maxValuesPerFacet",h);if(s)return s.reduce(function(e,t){return r?e.addDisjunctiveFacetRefinement(u,t):e.addFacetRefinement(u,t)},d);var m=r?"disjunctiveFacetsRefinements":"facetsRefinements";return d.setQueryParameters(i({},m,o({},d[m],i({},u,[]))))}}}}function Ct(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:ee;return Z(e,ti()),function(){function n(e){return function(){e.setQuery(""),e.search()}}var r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i=r.queryHook;return{$$type:"ais.searchBox",_clear:function(){},_cachedClear:function(){this._clear()},init:function(t){function s(e){e!==a.state.query&&a.setQuery(e).search()}var a=t.helper,o=t.instantSearchInstance;this._cachedClear=this._cachedClear.bind(this),this._clear=n(a),this._refine=function(e){i?i(e,s):s(e)},e({query:a.state.query||"",refine:this._refine,clear:this._cachedClear,widgetParams:r,instantSearchInstance:o},!0)},render:function(t){var i=t.helper,s=t.instantSearchInstance,a=t.searchMetadata;this._clear=n(i),e({query:i.state.query||"",refine:this._refine,clear:this._cachedClear,widgetParams:r,instantSearchInstance:s,isSearchStalled:a.isSearchStalled},!1)},dispose:function(e){var n=e.state;return t(),n.setQueryParameter("query",void 0)},getWidgetState:function(e,t){var n=t.searchParameters.query||"";return""===n||e&&e.query===n?e:o({},e,{query:n})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return e.setQueryParameter("query",n.query||"")}}}}function Nt(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:ee;return Z(e,ni()),function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=n.items,i=n.transformItems,s=void 0===i?function(e){return e}:i;if(!Array.isArray(r))throw new Error(ni("The `items` option expects an array of objects."));return{$$type:"ais.sortBy",init:function(t){var i=t.helper,a=t.instantSearchInstance,o=t.parent,c=i.state.index;K(r,function(e){return e.value===c}),this.initialIndex=o.getIndexName(),this.setIndex=function(e){i.setIndex(e).search()},e({currentRefinement:c,options:s(r),refine:this.setIndex,hasNoResults:!0,widgetParams:n,instantSearchInstance:a},!0)},render:function(t){var i=t.helper,a=t.results,o=t.instantSearchInstance;e({currentRefinement:i.state.index,options:s(r),refine:this.setIndex,hasNoResults:0===a.nbHits,widgetParams:n,instantSearchInstance:o},!1)},dispose:function(e){var n=e.state;return t(),n.setIndex(this.initialIndex)},getWidgetState:function(e,t){var n=t.searchParameters.index;return n===this.initialIndex?e:o({},e,{sortBy:n})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return e.setQueryParameter("index",n.sortBy||this.initialIndex||e.index)}}}}function jt(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:ee;return Z(e,ri()),function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=n.attribute,s=n.max,a=void 0===s?5:s;if(!r)throw new Error(ri("The `attribute` option is required."));return{$$type:"ais.ratingMenu",init:function(t){var i=t.helper,s=t.createURL,a=t.instantSearchInstance;this._toggleRefinement=this._toggleRefinement.bind(this,i),this._createURL=function(e){return function(t){return s(e.toggleRefinement(r,t))}},e({instantSearchInstance:a,items:[],hasNoResults:!0,refine:this._toggleRefinement,createURL:this._createURL(i.state),widgetParams:n},!0)},render:function(t){for(var i=t.helper,s=t.results,o=t.state,c=t.instantSearchInstance,u=[],l={},h=a;h>=0;--h)l[h]=0;(s.getFacetValues(r)||[]).forEach(function(e){var t=Math.round(e.name);if(t&&!(t>a))for(var n=t;n>=1;--n)l[n]+=e.count});for(var f=this._getRefinedStar(i.state),d=a-1;d>=1;--d){var p=l[d];if(!f||d===f||0!==p){for(var m=[],g=1;a>=g;++g)m.push(d>=g);u.push({stars:m,name:String(d),value:String(d),count:p,isRefined:f===d})}}e({instantSearchInstance:c,items:u,hasNoResults:0===s.nbHits,refine:this._toggleRefinement,createURL:this._createURL(o),widgetParams:n},!1)},dispose:function(e){var n=e.state;return t(),n.removeDisjunctiveFacet(r)},getWidgetState:function(e,t){var n=t.searchParameters,s=this._getRefinedStar(n);return"number"!=typeof s?e:o({},e,{ratingMenu:o({},e.ratingMenu,i({},r,s))})},getWidgetSearchParameters:function(e,t){var n=t.uiState,s=n.ratingMenu&&n.ratingMenu[r],c=e.clearRefinements(r).addDisjunctiveFacet(r);return s?ie({start:Number(s),end:a+1}).reduce(function(e,t){return e.addDisjunctiveFacetRefinement(r,t)},c):c.setQueryParameters({disjunctiveFacetsRefinements:o({},c.disjunctiveFacetsRefinements,i({},r,[]))})},_toggleRefinement:function(e,t){var n=this._getRefinedStar(e.state)===Number(t);if(e.removeDisjunctiveFacetRefinement(r),!n)for(var i=Number(t);a>=i;++i)e.addDisjunctiveFacetRefinement(r,i);e.search()},_getRefinedStar:function(e){var t=e.getDisjunctiveRefinements(r);return t.length?Math.min.apply(Math,m(t.map(Number))):void 0}}}}function Et(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:ee;return Z(e,ii()),function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return{$$type:"ais.stats",init:function(t){var r=t.helper,i=t.instantSearchInstance;e({instantSearchInstance:i,hitsPerPage:r.state.hitsPerPage,nbHits:0,nbPages:0,page:r.state.page||0,processingTimeMS:-1,query:r.state.query||"",widgetParams:n},!0)},render:function(t){var r=t.results,i=t.instantSearchInstance;e({instantSearchInstance:i,hitsPerPage:r.hitsPerPage,nbHits:r.nbHits,nbPages:r.nbPages,page:r.page,processingTimeMS:r.processingTimeMS,query:r.query,widgetParams:n},!1)},dispose:function(){t()}}}}function kt(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:ee;return Z(e,si()),function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=n.attribute,s=n.on,a=void 0===s||s,c=n.off;if(!r)throw new Error(si("The `attribute` option is required."));var u=void 0!==c,l=void 0!==a?ue(a).map(Y):void 0,h=u?ue(c).map(Y):void 0;return{$$type:"ais.toggleRefinement",_toggleRefinement:function(e,t){(1<arguments.length&&void 0!==t?t:{}).isRefined?(l.forEach(function(t){return e.removeDisjunctiveFacetRefinement(r,t)}),u&&h.forEach(function(t){return e.addDisjunctiveFacetRefinement(r,t)})):(u&&h.forEach(function(t){return e.removeDisjunctiveFacetRefinement(r,t)}),l.forEach(function(t){return e.addDisjunctiveFacetRefinement(r,t)})),e.search()},init:function(t){var i=this,s=t.state,a=t.helper,o=t.createURL,c=t.instantSearchInstance;this._createURL=function(e){return function(){var t=e?l:h;t&&t.forEach(function(e){s.removeDisjunctiveFacetRefinement(r,e)});var n=e?h:l;return n&&n.forEach(function(e){s.addDisjunctiveFacetRefinement(r,e)}),o(s)}},this.toggleRefinement=function(e){i._toggleRefinement(a,e)};var f=l&&l.every(function(e){return s.isDisjunctiveFacetRefined(r,e)});if(u&&!f){var d=a.state.page;h&&h.forEach(function(e){return a.addDisjunctiveFacetRefinement(r,e)}),a.setPage(d)}var p={name:r,isRefined:f,count:null,onFacetValue:{isRefined:f,count:0},offFacetValue:{isRefined:u&&!f,count:0}};e({value:p,createURL:this._createURL(p.isRefined),refine:this.toggleRefinement,instantSearchInstance:c,widgetParams:n},!0)},render:function(t){var i=t.helper,s=t.results,a=t.state,o=t.instantSearchInstance,c=l&&l.every(function(e){return i.state.isDisjunctiveFacetRefined(r,e)}),f=ue(void 0!==h&&h),d=s.getFacetValues(r)||[],p=l&&l.map(function(e){return K(d,function(t){return t.name===z(e)})}).filter(function(e){return void 0!==e}),m={isRefined:0<p.length&&p.every(function(e){return e.isRefined}),count:0===p.length?null:p.reduce(function(e,t){return e+t.count},0)},g=u?f.map(function(e){return K(d,function(t){return t.name===z(e)})}).filter(function(e){return void 0!==e}):[],v={isRefined:0<g.length&&g.every(function(e){return e.isRefined}),count:0===g.length?d.reduce(function(e,t){return e+t.count},0):g.reduce(function(e,t){return e+t.count},0)},y={name:r,isRefined:c,count:(c?v:m).count,onFacetValue:m,offFacetValue:v};e({value:y,state:a,createURL:this._createURL(y.isRefined),refine:this.toggleRefinement,helper:i,instantSearchInstance:o,widgetParams:n},!1)},dispose:function(e){var n=e.state;return t(),n.removeDisjunctiveFacet(r)},getWidgetState:function(e,t){var n=t.searchParameters,s=l&&l.every(function(e){return n.isDisjunctiveFacetRefined(r,e)});return s?o({},e,{toggle:o({},e.toggle,i({},r,s))}):e},getWidgetSearchParameters:function(e,t){var n=t.uiState,s=e.clearRefinements(r).addDisjunctiveFacet(r);return Boolean(n.toggle&&n.toggle[r])?(l&&l.forEach(function(e){s=s.addDisjunctiveFacetRefinement(r,e)}),s):u?(h&&h.forEach(function(e){s=s.addDisjunctiveFacetRefinement(r,e)}),s):s.setQueryParameters({disjunctiveFacetsRefinements:o({},e.disjunctiveFacetsRefinements,i({},r,[]))})}}}}function It(e,t){var n=1<arguments.length&&void 0!==t?t:ee;Z(e,ai());var r={};return function(t){var i=t||{},s=i.attributes,a=i.separator,o=void 0===a?" > ":a,c=i.rootPath,u=void 0===c?null:c,l=i.transformItems,h=void 0===l?function(e){return e}:l;if(!s||!Array.isArray(s)||0===s.length)throw new Error(ai("The `attributes` option expects an array of strings."));var f=p(s,1)[0];return{$$type:"ais.breadcrumb",init:function(n){var i=n.createURL,s=n.helper,a=n.instantSearchInstance;r.createURL=function(e){if(!e){var t=s.getHierarchicalFacetBreadcrumb(f);if(0<t.length)return i(s.state.toggleFacetRefinement(f,t[0]))}return i(s.state.toggleFacetRefinement(f,e))},r.refine=function(e){if(e)s.toggleRefinement(f,e).search();else{var t=s.getHierarchicalFacetBreadcrumb(f);0<t.length&&s.toggleRefinement(f,t[0]).search()}},e({createURL:r.createURL,canRefine:!1,instantSearchInstance:a,
  items:[],refine:r.refine,widgetParams:t},!0)},render:function(n){var i=n.instantSearchInstance,s=n.results,a=p(n.state.hierarchicalFacets,1)[0].name,o=s.getFacetValues(a,{}),c=Array.isArray(o.data)?o.data:[],u=h(function(e){return e.map(function(t,n){return{label:t.label,value:n+1===e.length?null:e[n+1].value}})}(function l(e){return e.reduce(function(e,t){return t.isRefined&&(e.push({label:t.name,value:t.path}),Array.isArray(t.data)&&(e=e.concat(l(t.data)))),e},[])}(c)));e({canRefine:0<u.length,createURL:r.createURL,instantSearchInstance:i,items:u,refine:r.refine,widgetParams:t},!1)},dispose:function(){n()},getWidgetSearchParameters:function(e){return e.isHierarchicalFacet(f)?(e.getHierarchicalFacetByName(f),e):e.addHierarchicalFacet({name:f,attributes:s,separator:o,rootPath:u})}}}}function At(e,t){var n=1<arguments.length&&void 0!==t?t:ee;return Z(e,oi()),function(){function t(e){return e.aroundLatLng&&function(e){var t=e.match(hr);if(!t)throw new Error('Invalid value for "aroundLatLng" parameter: "'.concat(e,'"'));return{lat:parseFloat(t[1]),lng:parseFloat(t[2])}}(e.aroundLatLng)}function r(e){return e.insideBoundingBox&&he(e.insideBoundingBox)}function i(e){return function(t){var n=t.northEast,r=t.southWest,i=[n.lat,n.lng,r.lat,r.lng].join();e.setQueryParameter("insideBoundingBox",i).search(),b.hasMapMoveSinceLastRefine=!1,b.lastRefineBoundingBox=i}}function s(e){return function(){e.setQueryParameter("insideBoundingBox",void 0).search()}}function a(e){return function(){return Boolean(e.insideBoundingBox)}}function c(){return b.internalToggleRefineOnMapMove()}function u(e,t){return function(){b.isRefineOnMapMove=!b.isRefineOnMapMove,e(t)}}function l(){return b.isRefineOnMapMove}function h(){return b.internalSetMapMoveSinceLastRefine()}function f(e,t){return function(){var n=!0!==b.hasMapMoveSinceLastRefine;b.hasMapMoveSinceLastRefine=!0,n&&e(t)}}function d(){return b.hasMapMoveSinceLastRefine}var p=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},m=p.enableRefineOnMapMove,g=void 0===m||m,v=p.transformItems,y=void 0===v?function(e){return e}:v,b={isRefineOnMapMove:g,hasMapMoveSinceLastRefine:!1,lastRefinePosition:"",lastRefineBoundingBox:"",internalToggleRefineOnMapMove:ee,internalSetMapMoveSinceLastRefine:ee};return{$$type:"ais.geoSearch",init:function(n){var o=n.state,m=n.helper,g=n.instantSearchInstance;b.internalToggleRefineOnMapMove=u(ee,n),b.internalSetMapMoveSinceLastRefine=f(ee,n),e({items:[],position:t(o),currentRefinement:r(o),refine:i(m),clearMapRefinement:s(m),isRefinedWithMap:a(o),toggleRefineOnMapMove:c,isRefineOnMapMove:l,setMapMoveSinceLastRefine:h,hasMapMoveSinceLastRefine:d,widgetParams:p,instantSearchInstance:g},!0)},render:function w(n){var o=n.results,m=n.helper,g=n.instantSearchInstance,v=m.state,R=Boolean(v.aroundLatLng)&&Boolean(b.lastRefinePosition)&&v.aroundLatLng!==b.lastRefinePosition,x=!v.insideBoundingBox&&Boolean(b.lastRefineBoundingBox)&&v.insideBoundingBox!==b.lastRefineBoundingBox;(R||x)&&(b.hasMapMoveSinceLastRefine=!1),b.lastRefinePosition=v.aroundLatLng||"",b.lastRefineBoundingBox=v.insideBoundingBox||"",b.internalToggleRefineOnMapMove=u(w,n),b.internalSetMapMoveSinceLastRefine=f(w,n);var S=y(o.hits.filter(function(e){return e._geoloc}));e({items:S,position:t(v),currentRefinement:r(v),refine:i(m),clearMapRefinement:s(m),isRefinedWithMap:a(v),toggleRefineOnMapMove:c,isRefineOnMapMove:l,setMapMoveSinceLastRefine:h,hasMapMoveSinceLastRefine:d,widgetParams:p,instantSearchInstance:g},!1)},dispose:function(e){var t=e.state;return n(),t.setQueryParameter("insideBoundingBox",void 0)},getWidgetState:function(e,t){var n=t.searchParameters.insideBoundingBox;return!n||e&&e.geoSearch&&e.geoSearch.boundingBox===n?e:o({},e,{geoSearch:{boundingBox:n}})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return n&&n.geoSearch?e.setQueryParameter("insideBoundingBox",n.geoSearch.boundingBox):e.setQueryParameter("insideBoundingBox",void 0)}}}}function Ot(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:ee;Z(e,ci());var n="https://www.algolia.com/?utm_source=instantsearch.js&utm_medium=website&"+"utm_content=".concat("undefined"!=typeof window&&window.location?window.location.hostname:"","&")+"utm_campaign=poweredby";return function(){var r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i=r.url,s=void 0===i?n:i;return{$$type:"ais.poweredBy",init:function(){e({url:s,widgetParams:r},!0)},render:function(){e({url:s,widgetParams:r},!1)},dispose:function(){t()}}}}function Lt(e,t){return e.setQueryParameters(Object.keys(t.searchParameters).reduce(function(e,t){return o({},e,i({},t,void 0))},{}))}function Mt(e,t){var n=0<arguments.length&&void 0!==e?e:ee,r=1<arguments.length&&void 0!==t?t:ee;return function(e){if(!e||!re(e.searchParameters))throw new Error(ui("The `searchParameters` option expects an object."));var t={};return{$$type:"ais.configure",init:function(r){var i=r.instantSearchInstance,s=r.helper;t.refine=function(t){return function(n){var r=Lt(t.state,e),i=ce(r,new Yn.SearchParameters(n));t.setState(i).search(),e.searchParameters=n}}(s),n({refine:t.refine,instantSearchInstance:i,widgetParams:e},!0)},render:function(r){var i=r.instantSearchInstance;n({refine:t.refine,instantSearchInstance:i,widgetParams:e},!1)},dispose:function(t){var n=t.state;return r(),Lt(n,e)},getWidgetSearchParameters:function(t,n){var r=n.uiState;return ce(t,new Yn.SearchParameters(o({},r.configure,{},e.searchParameters)))},getWidgetState:function(t){return o({},t,{configure:o({},t.configure,{},e.searchParameters)})}}}}function Dt(e){var t=e.attributeName,n=e.attributeValue,r=e.attributeScore;return"".concat(t,":").concat(n,"<score=").concat(r||1,">")}function Ht(e,t){return function(n){var r=n||{},i=r.hit,s=r.matchingPatterns,a=r.transformSearchParameters,c=void 0===a?function(e){return e}:a;if(!i)throw new Error(li("The `hit` option is required."));if(!s)throw new Error(li("The `matchingPatterns` option is required."));var u=Object.keys(s).reduce(function(e,t){var n=s[t],r=te(i,t),a=n.score;return Array.isArray(r)?[].concat(m(e),[r.map(function(e){return Dt({attributeName:t,attributeValue:e,attributeScore:a})})]):"string"==typeof r?[].concat(m(e),[Dt({attributeName:t,attributeValue:r,attributeScore:a})]):e},[]),l=o({},c(new Yn.SearchParameters({sumOrFiltersScores:!0,facetFilters:["objectID:-".concat(i.objectID)],optionalFilters:u})));return o({},Mt(e,t)({searchParameters:l}),{$$type:"ais.configureRelatedItems"})}}function qt(e){var t=this.helper,n=this.initialRuleContexts,r=this.trackedFilters,i=this.transformRuleContexts,s=e.state,a=s.ruleContexts||[],c=function(e){var t=e.helper,n=e.sharedHelperState,r=e.trackedFilters;return Object.keys(r).reduce(function(e,i){var s=X(t.lastResults||{},n).filter(function(e){return e.attribute===i}).map(function(e){return e.numericValue||e.name}),a=r[i](s);return[].concat(m(e),m(s.filter(function(e){return a.includes(e)}).map(function(e){return function(e){return e.replace(/[^a-z0-9-_]+/gi,"_")}("ais-".concat(i,"-").concat(e))})))},[])}({helper:t,sharedHelperState:s,trackedFilters:r}),u=i([].concat(m(n),m(c))).slice(0,10);ae(a,u)||t.overrideStateWithoutTriggeringChangeEvent(o({},s,{ruleContexts:u}))}function Ut(e,t){var n=1<arguments.length&&void 0!==t?t:ee;return Z(e,fi()),function(t){var r=t||{},i=r.trackedFilters,s=void 0===i?{}:i,a=r.transformRuleContexts,o=void 0===a?function(e){return e}:a,c=r.transformItems,u=void 0===c?function(e){return e}:c;Object.keys(s).forEach(function(e){if("function"!=typeof s[e])throw new Error(fi("'The \"".concat(e,'" filter value in the `trackedFilters` option expects a function.')))});var l,h=0<Object.keys(s).length,f=[];return{$$type:"ais.queryRules",init:function(n){var r=n.helper,i=n.state,a=n.instantSearchInstance;f=i.ruleContexts||[],l=qt.bind({helper:r,initialRuleContexts:f,trackedFilters:s,transformRuleContexts:o}),h&&((function(e){return[e.disjunctiveFacetsRefinements,e.facetsRefinements,e.hierarchicalFacetsRefinements,e.numericRefinements].some(function(e){return Boolean(e&&0<Object.keys(e).length)})}(i)||Boolean(t.transformRuleContexts))&&l({state:i}),r.on("change",l)),e({items:[],instantSearchInstance:a,widgetParams:t},!0)},render:function(n){var r=n.results,i=n.instantSearchInstance,s=r.userData,a=u(void 0===s?[]:s);e({items:a,instantSearchInstance:i,widgetParams:t},!1)},dispose:function(e){var t=e.helper,r=e.state;return n(),h?(t.removeListener("change",l),r.setQueryParameter("ruleContexts",f)):r}}}}function Bt(e){function t(e){return{status:e,transcript:"",isSpeechFinal:!1,errorCode:void 0}}function n(e){g=o({},g,{},0<arguments.length&&void 0!==e?e:{}),p()}function r(e){n(t(0<arguments.length&&void 0!==e?e:"initial"))}function i(){n({status:"waiting"})}function s(e){n({status:"error",errorCode:e.error})}function a(e){n({status:"recognizing",transcript:e.results[0]&&e.results[0][0]&&e.results[0][0].transcript||"",isSpeechFinal:e.results[0]&&e.results[0].isFinal}),h&&g.transcript&&d(g.transcript)}function c(){g.errorCode||!g.transcript||h||d(g.transcript),"error"!==g.status&&n({status:"finished"})}function u(){l&&(l.stop(),l.removeEventListener("start",i),l.removeEventListener("error",s),l.removeEventListener("result",a),l.removeEventListener("end",c),l=void 0)}var l,h=e.searchAsYouSpeak,f=e.language,d=e.onQueryChange,p=e.onStateChange,m=window.webkitSpeechRecognition||window.SpeechRecognition,g=t("initial");return{getState:function(){return g},isBrowserSupported:function(){return Boolean(m)},isListening:function(){return"askingPermission"===g.status||"waiting"===g.status||"recognizing"===g.status},startListening:function(){(l=new m)&&(r("askingPermission"),l.interimResults=!0,f&&(l.lang=f),l.addEventListener("start",i),l.addEventListener("error",s),l.addEventListener("result",a),l.addEventListener("end",c),l.start())},stopListening:function(){u(),r("finished")},dispose:u}}function Qt(e,t){var n=1<arguments.length&&void 0!==t?t:ee;return Z(e,di()),function(t){function r(n){var r=n.isFirstRendering,i=n.instantSearchInstance,s=n.voiceSearchHelper,a=s.isBrowserSupported,o=s.isListening,c=s.startListening,u=s.stopListening,l=s.getState;e({isBrowserSupported:a(),isListening:o(),toggleListening:function(){a()&&(o()?u():c())},voiceListeningState:l(),widgetParams:t,instantSearchInstance:i},r)}var i=t.searchAsYouSpeak,s=void 0!==i&&i,a=t.language,c=t.additionalQueryParameters,u=t.createVoiceSearchHelper,l=void 0===u?Bt:u;return{$$type:"ais.voiceSearch",init:function(e){var t=this,n=e.helper,i=e.instantSearchInstance;this._refine=function(e){if(e!==n.state.query){var t=a?[a.split("-")[0]]:void 0;n.setQueryParameter("queryLanguages",t),"function"==typeof c&&n.setState(n.state.setQueryParameters(o({ignorePlurals:!0,removeStopWords:!0,optionalWords:e},c({query:e})))),n.setQuery(e).search()}},this._voiceSearchHelper=l({searchAsYouSpeak:s,language:a,onQueryChange:function(e){return t._refine(e)},onStateChange:function(){r({isFirstRendering:!1,instantSearchInstance:i,voiceSearchHelper:t._voiceSearchHelper})}}),r({isFirstRendering:!0,instantSearchInstance:i,voiceSearchHelper:this._voiceSearchHelper})},render:function(e){var t=e.instantSearchInstance;r({isFirstRendering:!1,instantSearchInstance:t,voiceSearchHelper:this._voiceSearchHelper})},dispose:function(e){var t=e.state;this._voiceSearchHelper.dispose(),n();var r=t;if("function"==typeof c){var i=c({query:""}),s=i?Object.keys(i).reduce(function(e,t){return e[t]=void 0,e},{}):{};r=t.setQueryParameters(o({queryLanguages:void 0,ignorePlurals:void 0,removeStopWords:void 0,optionalWords:void 0},s))}return r.setQueryParameter("query",void 0)},getWidgetState:function(e,t){var n=t.searchParameters.query||"";return n?o({},e,{query:n}):e},getWidgetSearchParameters:function(e,t){var n=t.uiState;return e.setQueryParameter("query",n.query||"")}}}}function $t(e){var t=e.hasRefinements,n=e.refine,r=e.cssClasses,a=e.templateProps;return Xe("div",{className:r.root},Xe(gi,s({},a,{templateKey:"resetLabel",rootTagName:"button",rootProps:{className:mi(r.button,i({},r.disabledButton,!t)),onClick:n,disabled:!t},data:{hasRefinements:t}})))}function Vt(e){var t=e.items,n=e.cssClasses;return Xe("div",{className:n.root},Xe("ul",{className:n.list},t.map(function(e,t){return Xe("li",{key:"".concat(e.indexName,"-").concat(e.attribute,"-").concat(t),className:n.item},Xe("span",{className:n.label},function(e){return e.toString().charAt(0).toUpperCase()+e.toString().slice(1)}(e.label),":"),e.refinements.map(function(t){return Xe("span",{key:function(e){var t=e.attribute,n=e.value;return[t,e.type,n,e.operator].map(function(e){return e}).filter(Boolean).join(":")}(t),className:n.category},Xe("span",{className:n.categoryLabel},"query"===t.attribute?Xe("q",null,t.label):t.label),Xe("button",{className:n["delete"],onClick:function(e){return function(t){B(t)||(t.preventDefault(),e())}}(e.refine.bind(null,t))},"✕"))}))})))}function Wt(e,t){var n=e.items,r=e.widgetParams;if(!t){var i=r.container,s=r.cssClasses;pt(Xe(Vt,{cssClasses:s,items:n}),i)}}function Kt(e){var t=e.className,n=e.disabled;return Xe("button",{className:t,onClick:e.onClick,disabled:n},e.children)}function zt(e){var t=e.classNameLabel,n=e.classNameInput,r=e.checked,i=e.onToggle,s=e.children;return Xe("label",{className:t},Xe("input",{className:n,type:"checkbox",checked:r,onChange:i}),s)}function Jt(e){var t=e.cssClasses,n=e.enableRefine,r=e.enableRefineControl,a=e.enableClearMapRefinement,o=e.isRefineOnMapMove,c=e.isRefinedWithMap,u=e.hasMapMoveSinceLastRefine,l=e.onRefineToggle,h=e.onRefineClick,f=e.onClearClick,d=e.templateProps;return n&&Xe("div",null,r&&Xe("div",{className:t.control},o||!u?Xe(zt,{classNameLabel:mi(t.label,i({},t.selectedLabel,o)),classNameInput:t.input,checked:o,onToggle:l},Xe(gi,s({},d,{templateKey:"toggle",rootTagName:"span"}))):Xe(Kt,{className:t.redo,disabled:!u,onClick:h},Xe(gi,s({},d,{templateKey:"redo",rootTagName:"span"})))),!r&&!o&&Xe("div",{className:t.control},Xe(Kt,{className:mi(t.redo,i({},t.disabledRedo,!u)),disabled:!u,onClick:h},Xe(gi,s({},d,{templateKey:"redo",rootTagName:"span"})))),a&&c&&Xe(Kt,{className:t.reset,onClick:f},Xe(gi,s({},d,{templateKey:"reset",rootTagName:"span"}))))}function Xt(e){var t=e.refine,n=e.mapInstance;return t({northEast:n.getBounds().getNorthEast().toJSON(),southWest:n.getBounds().getSouthWest().toJSON()})}function Gt(e,t){e.isUserInteraction=!1,t(),e.isUserInteraction=!0}function Yt(e,t){var n=e.items,r=e.position,i=e.currentRefinement,s=e.refine,a=e.clearMapRefinement,c=e.toggleRefineOnMapMove,u=e.isRefineOnMapMove,l=e.setMapMoveSinceLastRefine,h=e.hasMapMoveSinceLastRefine,f=e.isRefinedWithMap,d=e.widgetParams,m=e.instantSearchInstance,g=d.container,v=d.googleReference,y=d.cssClasses,b=d.templates,w=d.initialZoom,R=d.initialPosition,x=d.enableRefine,S=d.enableClearMapRefinement,_=d.enableRefineControl,P=d.mapOptions,T=d.createMarker,F=d.markerOptions,C=d.renderState;if(t){C.isUserInteraction=!0,C.isPendingRefine=!1,C.markers=[];var N=document.createElement("div");N.className=y.root,g.appendChild(N);var j=document.createElement("div");j.className=y.map,N.appendChild(j);var E=document.createElement("div");return E.className=y.tree,N.appendChild(E),C.mapInstance=new v.maps.Map(j,o({mapTypeControl:!1,fullscreenControl:!1,streetViewControl:!1,clickableIcons:!1,zoomControlOptions:{position:v.maps.ControlPosition.LEFT_TOP}},P)),v.maps.event.addListenerOnce(C.mapInstance,"idle",function(){function e(){C.isUserInteraction&&x&&(l(),u()&&(C.isPendingRefine=!0))}C.mapInstance.addListener("center_changed",e),C.mapInstance.addListener("zoom_changed",e),C.mapInstance.addListener("dragstart",e),C.mapInstance.addListener("idle",function(){C.isUserInteraction&&C.isPendingRefine&&(C.isPendingRefine=!1,Xt({mapInstance:C.mapInstance,refine:s}))})}),void(C.templateProps=$({templatesConfig:m.templatesConfig,templates:b}))}var k=n.map(function(e){return e.objectID}),I=p(function(e,t){return e.reduce(function(e,n){var r=p(e,2),i=r[0],s=r[1];return t.includes(n.__id)?[i.concat(n),s]:[i,s.concat(n)]},[[],[]])}(C.markers,k),2),A=I[0],O=I[1],L=A.map(function(e){return e.__id}),M=n.filter(function(e){return!L.includes(e.objectID)});O.forEach(function(e){return e.setMap(null)}),C.markers=A.concat(M.map(function(e){var t=T({map:C.mapInstance,item:e});return Object.keys(F.events).forEach(function(n){t.addListener(n,function(r){F.events[n]({map:C.mapInstance,event:r,item:e,marker:t})})}),t}));var D=!h(),H=i?0:null,q=!i&&Boolean(C.markers.length)?function(e,t){var n=t.reduce(function(e,t){return e.extend(t.getPosition())},new e.maps.LatLngBounds);return{northEast:n.getNorthEast().toJSON(),southWest:n.getSouthWest().toJSON()}}(v,C.markers):i;q&&D?Gt(C,function(){C.mapInstance.fitBounds(new v.maps.LatLngBounds(q.southWest,q.northEast),H)}):D&&Gt(C,function(){C.mapInstance.setCenter(r||R),C.mapInstance.setZoom(w)}),pt(Xe(Jt,{cssClasses:y,enableRefine:x,enableRefineControl:_,enableClearMapRefinement:S,isRefineOnMapMove:u(),isRefinedWithMap:f(),hasMapMoveSinceLastRefine:h(),onRefineToggle:c,onRefineClick:function(){return Xt({mapInstance:C.mapInstance,refine:s})},onClearClick:a,templateProps:C.templateProps}),g.querySelector(".".concat(y.tree)))}function Zt(e){var t=e.className,n=e.handleClick,r=e.facetValueToRefine,i=e.isRefined,a=e.templateProps,o=e.templateKey,c=e.templateData,u=e.subItems;return Xe("li",{className:t,onClick:function(e){n({facetValueToRefine:r,isRefined:i,originalEvent:e})}},Xe(gi,s({},a,{templateKey:o,data:c})),u)}function en(e){var t=e.results,n=e.hits,r=e.cssClasses,i=e.templateProps;return 0===t.hits.length?Xe(gi,s({},i,{templateKey:"empty",rootProps:{className:mi(r.root,r.emptyRoot)},data:t})):Xe("div",{className:r.root},Xe("ol",{className:r.list},n.map(function(e,t){return Xe(gi,s({},i,{templateKey:"item",rootTagName:"li",rootProps:{className:r.item},key:e.objectID,data:o({},e,{__hitIndex:t})}))})))}function tn(e){var t=e.currentValue,n=e.options,r=e.cssClasses,i=e.setValue;return Xe("select",{className:mi(r.select),onChange:function(e){return i(e.target.value)},value:"".concat(t)},n.map(function(e){return Xe("option",{className:mi(r.option),key:e.label+e.value,value:"".concat(e.value)},e.label)}))}function nn(e){var t=e.cssClasses,n=e.label,r=e.ariaLabel,i=e.url,s=e.isDisabled,a=e.handleClick,o=e.pageNumber;return Xe("li",{className:t.item},s?Xe("span",{className:t.link,dangerouslySetInnerHTML:{__html:n}}):Xe("a",{className:t.link,"aria-label":r,href:i,onClick:function(e){return a(o,e)},dangerouslySetInnerHTML:{__html:n}}))}function rn(e,t,n){return(e-t)/(n-t)*100}function sn(e,t,n){var r=e/100;return 0===e?t:100===e?n:Math.round((n-t)*r+t)}function an(e){return["rheostat","vertical"===e.orientation?"rheostat-vertical":"rheostat-horizontal"].concat(e.className.split(" ")).join(" ")}function on(e){return Number(e.currentTarget.getAttribute("data-handle-key"))}function cn(e){e.stopPropagation(),e.preventDefault()}function un(e){var t=e.style,n=e.children,r=Math.round(parseFloat(t.left)),i=[0,50,100].includes(r),s=Array.isArray(n)?n[0]:n,a=Math.round(100*parseInt(s,10))/100;return Xe("div",{style:o({},t,{marginLeft:100===r?"-2px":0}),className:mi("rheostat-marker","rheostat-marker-horizontal",{"rheostat-marker-large":i})},i&&Xe("div",{className:"rheostat-value"},a))}function ln(e){var t=e.nbHits,n=e.hitsPerPage,r=e.nbPages,i=e.page,a=e.processingTimeMS,o=e.query,c=e.templateProps,u=e.cssClasses;return Xe("div",{className:u.root},Xe(gi,s({},c,{templateKey:"text",rootTagName:"span",rootProps:{className:u.text},data:{hasManyResults:t>1,hasNoResults:0===t,hasOneResult:1===t,hitsPerPage:n,nbHits:t,nbPages:r,page:i,processingTimeMS:a,query:o,cssClasses:u}})))}function hn(e){var t=e.currentRefinement,n=e.refine,r=e.cssClasses,i=e.templateProps;return Xe("div",{className:r.root},Xe("label",{className:r.label},Xe("input",{className:r.checkbox,type:"checkbox",checked:t.isRefined,onChange:function(e){return n(!e.target.checked)}}),Xe(gi,s({},i,{rootTagName:"span",rootProps:{className:r.labelText},templateKey:"labelText",data:t}))))}function fn(e){var t=e.items,n=e.cssClasses,r=e.templateProps,a=e.createURL,o=e.refine;return Xe("div",{className:mi(n.root,i({},n.noRefinementRoot,0===t.length))},Xe("ul",{className:n.list},Xe("li",{className:mi(n.item,i({},n.selectedItem,0===t.length))},Xe(gi,s({},r,{templateKey:"home",rootTagName:"a",rootProps:{className:n.link,href:a(void 0),onClick:function(e){e.preventDefault(),o(void 0)}}}))),t.map(function(e,c){var u=c===t.length-1;return Xe("li",{key:e.label+c,className:mi(n.item,i({},n.selectedItem,u))},Xe(gi,s({},r,{templateKey:"separator",rootTagName:"span",rootProps:{className:n.separator,"aria-hidden":!0}})),u?e.label:Xe("a",{className:n.link,href:a(e.value),onClick:function(t){t.preventDefault(),o(e.value)}},e.label))})))}function dn(e){var t=e.cssClasses,n=e.templateProps,r=e.items,a=e.refine,o=(K(r,function(e){return e.isRefined})||{value:""}).value;return Xe("div",{className:mi(t.root,i({},t.noRefinementRoot,0===r.length))},Xe("select",{className:t.select,value:o,onChange:function(e){a(e.target.value)}},Xe(gi,s({},n,{templateKey:"defaultOption",rootTagName:"option",rootProps:{value:"",className:t.option}})),r.map(function(e){return Xe(gi,s({},n,{templateKey:"item",rootTagName:"option",rootProps:{value:e.value,className:t.option},key:e.value,data:e}))})))}function pn(e){var t=e.url,n=e.theme,r=e.cssClasses;return Xe("div",{className:r.root},Xe("a",{href:t,target:"_blank",className:r.link,"aria-label":"Search by Algolia",rel:"noopener noreferrer"},Xe("svg",{height:"1.2em",className:r.logo,viewBox:"0 0 168 24",style:{width:"auto"}},Xe("path",{fill:"dark"===n?"#FFF":"#5D6494",d:"M6.97 6.68V8.3a4.47 4.47 0 0 0-2.42-.67 2.2 2.2 0 0 0-1.38.4c-.34.26-.5.6-.5 1.02 0 .43.16.77.49 1.03.33.25.83.53 1.51.83a7.04 7.04 0 0 1 1.9 1.08c.34.24.58.54.73.89.15.34.23.74.23 1.18 0 .95-.33 1.7-1 2.24a4 4 0 0 1-2.6.81 5.71 5.71 0 0 1-2.94-.68v-1.71c.84.63 1.81.94 2.92.94.58 0 1.05-.14 1.39-.4.34-.28.5-.65.5-1.13 0-.29-.1-.55-.3-.8a2.2 2.2 0 0 0-.65-.53 23.03 23.03 0 0 0-1.64-.78 13.67 13.67 0 0 1-1.11-.64c-.12-.1-.28-.22-.46-.4a1.72 1.72 0 0 1-.39-.5 4.46 4.46 0 0 1-.22-.6c-.07-.23-.1-.48-.1-.75 0-.91.33-1.63 1-2.17a4 4 0 0 1 2.57-.8c.97 0 1.8.18 2.47.52zm7.47 5.7v-.3a2.26 2.26 0 0 0-.5-1.44c-.3-.35-.74-.53-1.32-.53-.53 0-.99.2-1.37.58-.38.39-.62.95-.72 1.68h3.91zm1 2.79v1.4c-.6.34-1.38.51-2.36.51a4.02 4.02 0 0 1-3-1.13 4.04 4.04 0 0 1-1.11-2.97c0-1.3.34-2.32 1.02-3.06a3.38 3.38 0 0 1 2.6-1.1c1.03 0 1.85.32 2.46.96.6.64.9 1.57.9 2.78 0 .33-.03.68-.09 1.04h-5.31c.1.7.4 1.24.89 1.61.49.38 1.1.56 1.85.56.86 0 1.58-.2 2.15-.6zm6.61-1.78h-1.21c-.6 0-1.05.12-1.35.36-.3.23-.46.53-.46.89 0 .37.12.66.36.88.23.2.57.32 1.02.32.5 0 .9-.15 1.2-.43.3-.28.44-.65.44-1.1v-.92zm-4.07-2.55V9.33a4.96 4.96 0 0 1 2.5-.55c2.1 0 3.17 1.03 3.17 3.08V17H22.1v-.96c-.42.68-1.15 1.02-2.19 1.02-.76 0-1.38-.22-1.84-.66-.46-.44-.7-1-.7-1.68 0-.78.3-1.38.88-1.81.59-.43 1.4-.65 2.46-.65h1.34v-.46c0-.55-.13-.97-.4-1.25-.26-.29-.7-.43-1.32-.43-.86 0-1.65.24-2.35.72zm9.34-1.93v1.42c.39-1 1.1-1.5 2.12-1.5.15 0 .31.02.5.05v1.53c-.23-.1-.48-.14-.76-.14-.54 0-.99.24-1.34.71a2.8 2.8 0 0 0-.52 1.71V17h-1.57V8.91h1.57zm5 4.09a3 3 0 0 0 .76 2.01c.47.53 1.14.8 2 .8.64 0 1.24-.18 1.8-.53v1.4c-.53.32-1.2.48-2 .48a3.98 3.98 0 0 1-4.17-4.18c0-1.16.38-2.15 1.14-2.98a4 4 0 0 1 3.1-1.23c.7 0 1.34.15 1.92.44v1.44a3.24 3.24 0 0 0-1.77-.5A2.65 2.65 0 0 0 32.33 13zm7.92-7.28v4.58c.46-1 1.3-1.5 2.5-1.5.8 0 1.42.24 1.9.73.48.5.72 1.17.72 2.05V17H43.8v-5.1c0-.56-.14-.99-.43-1.29-.28-.3-.65-.45-1.1-.45-.54 0-1 .2-1.42.6-.4.4-.61 1.02-.61 1.85V17h-1.56V5.72h1.56zM55.2 15.74c.6 0 1.1-.25 1.5-.76.4-.5.6-1.16.6-1.95 0-.92-.2-1.62-.6-2.12-.4-.5-.92-.74-1.55-.74-.56 0-1.05.22-1.5.67-.44.45-.66 1.13-.66 2.06 0 .96.22 1.67.64 2.14.43.47.95.7 1.57.7zM53 5.72v4.42a2.74 2.74 0 0 1 2.43-1.34c1.03 0 1.86.38 2.51 1.15.65.76.97 1.78.97 3.05 0 1.13-.3 2.1-.92 2.9-.62.81-1.47 1.21-2.54 1.21s-1.9-.45-2.46-1.34V17h-1.58V5.72H53zm9.9 11.1l-3.22-7.9h1.74l1 2.62 1.26 3.42c.1-.32.48-1.46 1.15-3.42l.91-2.63h1.66l-2.92 7.87c-.78 2.07-1.96 3.1-3.56 3.1-.28 0-.53-.02-.73-.07v-1.34c.17.04.35.06.54.06 1.03 0 1.76-.57 2.17-1.7z"}),$s,Vs,Xe("path",{fill:"dark"===n?"#FFF":"#5468FF",d:"M120.92 18.8c-4.38.02-4.38-3.54-4.38-4.1V1.36l2.67-.42v13.25c0 .32 0 2.36 1.71 2.37v2.24zm-10.84-2.18c.82 0 1.43-.04 1.85-.12v-2.72a5.48 5.48 0 0 0-1.57-.2c-.3 0-.6.02-.9.07-.3.04-.57.12-.81.24-.24.11-.44.28-.58.49a.93.93 0 0 0-.22.65c0 .63.22 1 .61 1.23.4.24.94.36 1.62.36zm-.23-9.7c.88 0 1.62.11 2.23.33.6.22 1.09.53 1.44.92.36.4.61.92.76 1.48.16.56.23 1.17.23 1.85v6.87c-.4.1-1.03.2-1.86.32-.84.12-1.78.18-2.82.18-.69 0-1.32-.07-1.9-.2a4 4 0 0 1-1.46-.63c-.4-.3-.72-.67-.96-1.13a4.3 4.3 0 0 1-.34-1.8c0-.66.13-1.08.39-1.53.26-.45.6-.82 1.04-1.1.45-.3.95-.5 1.54-.62a8.8 8.8 0 0 1 3.79.05v-.44c0-.3-.04-.6-.11-.87a1.78 1.78 0 0 0-1.1-1.22c-.31-.12-.7-.2-1.15-.2a9.75 9.75 0 0 0-2.95.46l-.33-2.19c.34-.12.84-.23 1.48-.35.65-.12 1.34-.18 2.08-.18zm52.84 9.63c.82 0 1.43-.05 1.85-.13V13.7a5.42 5.42 0 0 0-1.57-.2c-.3 0-.6.02-.9.07-.3.04-.57.12-.81.24-.24.12-.44.28-.58.5a.93.93 0 0 0-.22.65c0 .63.22.99.61 1.23.4.24.94.36 1.62.36zm-.23-9.7c.88 0 1.63.11 2.23.33.6.22 1.1.53 1.45.92.35.39.6.92.76 1.48.15.56.23 1.18.23 1.85v6.88c-.41.08-1.03.19-1.87.31-.83.12-1.77.18-2.81.18-.7 0-1.33-.06-1.9-.2a4 4 0 0 1-1.47-.63c-.4-.3-.72-.67-.95-1.13a4.3 4.3 0 0 1-.34-1.8c0-.66.13-1.08.38-1.53.26-.45.61-.82 1.05-1.1.44-.3.95-.5 1.53-.62a8.8 8.8 0 0 1 3.8.05v-.43c0-.31-.04-.6-.12-.88-.07-.28-.2-.52-.38-.73a1.78 1.78 0 0 0-.73-.5c-.3-.1-.68-.2-1.14-.2a9.85 9.85 0 0 0-2.95.47l-.32-2.19a11.63 11.63 0 0 1 3.55-.53zm-8.03-1.27a1.62 1.62 0 0 0 0-3.24 1.62 1.62 0 1 0 0 3.24zm1.35 13.22h-2.7V7.27l2.7-.42V18.8zm-4.72 0c-4.38.02-4.38-3.54-4.38-4.1l-.01-13.34 2.67-.42v13.25c0 .32 0 2.36 1.72 2.37v2.24zm-8.7-5.9a4.7 4.7 0 0 0-.74-2.79 2.4 2.4 0 0 0-2.07-1 2.4 2.4 0 0 0-2.06 1 4.7 4.7 0 0 0-.74 2.8c0 1.16.25 1.94.74 2.62a2.4 2.4 0 0 0 2.07 1.02c.88 0 1.57-.34 2.07-1.02.49-.68.73-1.46.73-2.63zm2.74 0a6.46 6.46 0 0 1-1.52 4.23c-.49.53-1.07.94-1.76 1.22-.68.29-1.73.45-2.26.45-.53 0-1.58-.15-2.25-.45a5.1 5.1 0 0 1-2.88-3.13 7.3 7.3 0 0 1-.01-4.84 5.13 5.13 0 0 1 2.9-3.1 5.67 5.67 0 0 1 2.22-.42c.81 0 1.56.14 2.24.42.69.29 1.28.69 1.75 1.22.49.52.87 1.15 1.14 1.89a7 7 0 0 1 .43 2.5zm-20.14 0c0 1.11.25 2.36.74 2.88.5.52 1.13.78 1.91.78a4.07 4.07 0 0 0 2.12-.6V9.33c-.19-.04-.99-.2-1.76-.23a2.67 2.67 0 0 0-2.23 1 4.73 4.73 0 0 0-.78 2.8zm7.44 5.27c0 1.82-.46 3.16-1.4 4-.94.85-2.37 1.27-4.3 1.27-.7 0-2.17-.13-3.34-.4l.43-2.11c.98.2 2.27.26 2.95.26 1.08 0 1.84-.22 2.3-.66.46-.43.68-1.08.68-1.94v-.44a5.2 5.2 0 0 1-2.54.6 5.6 5.6 0 0 1-2.01-.36 4.2 4.2 0 0 1-2.58-2.71 9.88 9.88 0 0 1 .02-5.35 4.92 4.92 0 0 1 2.93-2.96 6.6 6.6 0 0 1 2.43-.46 19.64 19.64 0 0 1 4.43.66v10.6z"}))))}function mn(e){nr.__h&&nr.__h(ws);var t=ws.__H||(ws.__H={o:[],t:[],i:[],u:[]});return e>=t.o.length&&t.o.push({}),t.o[e]}function gn(e){return function(e,t,n){var r=mn(bs++);return r.__c||(r.__c=ws,r.v=[n?n(t):Sn(void 0,t),function(t){var n=e(r.v[0],t);r.v[0]!==n&&(r.v[0]=n,r.__c.setState({}))}]),r.v}(Sn,e)}function vn(e){return function(e,t){var n=mn(bs++);return xn(n.m,t)?(n.m=t,n.p=e,n.v=e()):n.v}(function(){return{current:e}},[])}function yn(){zs.some(function(e){e.s=!1,e.__P&&(e.__H.t=bn(e.__H.t))}),zs=[]}function bn(e){return e.forEach(wn),e.forEach(Rn),[]}function wn(e){e.l&&e.l()}function Rn(e){var t=e.v();"function"==typeof t&&(e.l=t)}function xn(e,t){return!e||t.some(function(t,n){return t!==e[n]})}function Sn(e,t){return"function"==typeof t?t(e):t}function _n(e){var t,n=p(gn(e.isCollapsed),2),r=n[0],s=n[1],a=p(gn(!1),2),o=a[0],c=a[1],u=vn(null);return function(e,t){var n=mn(bs++);xn(n.m,t)&&(n.v=e,n.m=t,ws.__H.t.push(n),Ys(ws))}(function(){return u.current?(u.current.appendChild(e.bodyElement),function(){u.current.removeChild(e.bodyElement)}):void 0},[u,e.bodyElement]),o||e.isCollapsed===r||s(e.isCollapsed),Xe("div",{className:mi(e.cssClasses.root,(t={},i(t,e.cssClasses.noRefinementRoot,e.hidden),i(t,e.cssClasses.collapsibleRoot,e.collapsible),i(t,e.cssClasses.collapsedRoot,r),t)),hidden:e.hidden},e.templates.header&&Xe("div",{className:e.cssClasses.header},Xe(gi,{templates:e.templates,templateKey:"header",rootTagName:"span",data:e.data}),e.collapsible&&Xe("button",{className:e.cssClasses.collapseButton,"aria-expanded":!r,onClick:function(e){e.preventDefault(),c(!0),s(function(e){return!e})}},Xe(gi,{templates:e.templates,templateKey:"collapseButtonText",rootTagName:"span",data:{collapsed:r}}))),Xe("div",{className:e.cssClasses.body,ref:u}),e.templates.footer&&Xe(gi,{templates:e.templates,templateKey:"footer",rootProps:{className:e.cssClasses.footer},data:e.data}))}function Pn(e){var t=e.cssClasses,n=e.isBrowserSupported,r=e.isListening,i=e.toggleListening,s=e.voiceListeningState,a=e.templates,o=s.status,c=s.transcript,u=s.isSpeechFinal,l=s.errorCode;return Xe("div",{className:t.root},Xe(gi,{templateKey:"buttonText",rootTagName:"button",rootProps:{className:t.button,type:"button",title:"Search by voice".concat(n?"":" (not supported on this browser)"),onClick:function(e){e.currentTarget.blur(),i()},disabled:!n},data:{status:o,errorCode:l,isListening:r,transcript:c,isSpeechFinal:u,isBrowserSupported:n},templates:a}),Xe(gi,{templateKey:"status",rootProps:{className:t.status},data:{status:o,errorCode:l,isListening:r,transcript:c,isSpeechFinal:u,isBrowserSupported:n},templates:a}))}function Tn(e){var t=e.isBrowserSupported,n=e.isListening,r=e.toggleListening,i=e.voiceListeningState,s=e.widgetParams,a=s.container,o=s.cssClasses,c=s.templates;pt(Xe(Pn,{cssClasses:o,templates:c,isBrowserSupported:t,isListening:n,toggleListening:r,voiceListeningState:i}),a)}function Fn(e){var t=e.cssClasses,n=e.templates,r=e.items;return Xe(gi,{templateKey:"default",templates:n,rootProps:{className:t.root},data:{items:r}})}function Cn(e){var t=e.items,n=e.widgetParams,r=n.container,i=n.cssClasses,s=n.templates;pt(Xe(Fn,{cssClasses:i,templates:s,items:t}),r)}function Nn(e){return e.configure,h(e,["configure"])}function jn(e){var t=e||{};return t.page,h(t,["page"])}function En(){return"undefined"!=typeof window&&void 0!==window.sessionStorage}function kn(e){return new Mr(e)}var In=function(e){g(e)||(e={});for(var t=1,n=arguments.length;n>t;t++){var r=arguments[t];g(r)&&v(e,r)}return e},An=function(e,t){return e.filter(function(n,r){return-1<t.indexOf(n)&&e.indexOf(n)===r})},On=function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]},Ln=function fa(e){if("number"==typeof e)return e;if("string"==typeof e)return parseFloat(e);if(Array.isArray(e))return e.map(fa);throw new Error("The value should be a number, a parsable string or an array of those.")},Mn=function(e,t){if(null===e)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],0<=t.indexOf(n)||(i[n]=e[n]);return i},Dn=function(e){return e&&0<Object.keys(e).length},Hn={addRefinement:function(e,t,n){if(Hn.isRefined(e,t,n))return e;var r=""+n,i=e[t]?e[t].concat(r):[r],s={};return s[t]=i,y({},s,e)},removeRefinement:function(e,t,n){if(void 0===n)return Hn.clearRefinement(e,function(e,n){return t===n});var r=""+n;return Hn.clearRefinement(e,function(e,n){return t===n&&r===e})},toggleRefinement:function(e,t,n){if(void 0===n)throw new Error("toggleRefinement should be used with a value");return Hn.isRefined(e,t,n)?Hn.removeRefinement(e,t,n):Hn.addRefinement(e,t,n)},clearRefinement:function(e,t,n){if(void 0===t)return Dn(e)?{}:e;if("string"==typeof t)return Mn(e,[t]);if("function"==typeof t){var r=!1,i=Object.keys(e).reduce(function(i,s){var a=e[s]||[],o=a.filter(function(e){return!t(e,s,n)});return o.length!==a.length&&(r=!0),i[s]=o,i},{});return r?i:e}},isRefined:function(e,t,n){var r=!!e[t]&&0<e[t].length;if(void 0===n||!r)return r;var i=""+n;return-1!==e[t].indexOf(i)}},qn=Hn;w.PARAMETERS=Object.keys(new w),w._parseNumbers=function(e){if(e instanceof w)return e;var t={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach(function(n){
  var r=e[n];if("string"==typeof r){var i=parseFloat(r);t[n]=isNaN(i)?r:i}}),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map(function(e){return Array.isArray(e)?e.map(function(e){return parseFloat(e)}):e})),e.numericRefinements){var n={};Object.keys(e.numericRefinements).forEach(function(t){var r=e.numericRefinements[t]||{};n[t]={},Object.keys(r).forEach(function(e){var i=r[e].map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?parseFloat(e):e}):"string"==typeof e?parseFloat(e):e});n[t][e]=i})}),t.numericRefinements=n}return In({},e,t)},w.make=function(e){var t=new w(e);return(e.hierarchicalFacets||[]).forEach(function(e){if(e.rootPath){var n=t.getHierarchicalRefinement(e.name);0<n.length&&0!==n[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),0===(n=t.getHierarchicalRefinement(e.name)).length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}}),t},w.validate=function(e,t){var n=t||{};return e.tagFilters&&n.tagRefinements&&0<n.tagRefinements.length?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):0<e.tagRefinements.length&&n.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&n.numericRefinements&&Dn(n.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):Dn(e.numericRefinements)&&n.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},w.prototype={constructor:w,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:qn.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:qn.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:qn.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:qn.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,n){var r=Ln(n);if(this.isNumericRefined(e,t,r))return this;var i=In({},this.numericRefinements);return i[e]=In({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(r)):i[e][t]=[r],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,n){return void 0!==n?this.isNumericRefined(e,t,n)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(r,i){return i===e&&r.op===t&&b(r.val,Ln(n))})}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,r){return r===e&&n.op===t})}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(t,n){return n===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 Dn(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof e)return Dn(this.numericRefinements[e])?Mn(this.numericRefinements,[e]):this.numericRefinements;if("function"==typeof e){var t=!1,n=this.numericRefinements,r=Object.keys(n).reduce(function(r,i){var s=n[i],a={};return s=s||{},Object.keys(s).forEach(function(n){var r=s[n]||[],o=[];r.forEach(function(t){e({val:t,op:n},i,"numeric")||o.push(t)}),o.length!==r.length&&(t=!0),a[n]=o}),r[i]=a,r},{});return t?r: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 new 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 new Error(e+" is not defined in the facets attribute of the helper configuration");return qn.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:qn.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return qn.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:qn.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return qn.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:qn.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 new Error(e+" is not defined in the facets attribute of the helper configuration");return qn.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:qn.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return qn.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:qn.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return qn.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:qn.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 new 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 new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:qn.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:qn.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:qn.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),r={};return r[e]=void 0!==this.hierarchicalFacetsRefinements[e]&&0<this.hierarchicalFacetsRefinements[e].length&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+n))?-1===t.indexOf(n)?[]:[t.slice(0,t.lastIndexOf(n))]:[t],this.setQueryParameters({hierarchicalFacetsRefinements:y({},r,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var n={};return n[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:y({},n,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:y({},t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return-1<this.disjunctiveFacets.indexOf(e)},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return-1<this.facets.indexOf(e)},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&qn.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&qn.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&qn.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var n=this.getHierarchicalRefinement(e);return t?-1!==n.indexOf(t):0<n.length},isNumericRefined:function(e,t,n){if(void 0===n&&void 0===t)return!!this.numericRefinements[e];var r=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===n||!r)return r;var i=Ln(n),s=void 0!==function(e,t){return On(e,function(e){return b(e,t)})}(this.numericRefinements[e][t],i);return r&&s},isTagRefined:function(e){return-1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=An(Object.keys(this.numericRefinements).filter(function(t){return 0<Object.keys(e.numericRefinements[t]).length}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(t){return 0<e.disjunctiveFacetsRefinements[t].length}).concat(t).concat(this.getRefinedHierarchicalFacets())},getRefinedHierarchicalFacets:function(){var e=this;return An(this.hierarchicalFacets.map(function(e){return e.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(t){return 0<e.hierarchicalFacetsRefinements[t].length}))},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(t){return-1===e.indexOf(t)})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},n=this;return Object.keys(this).forEach(function(r){var i=n[r];-1===e.indexOf(r)&&void 0!==i&&(t[r]=i)}),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var n={};return n[e]=t,this.setQueryParameters(n)},setQueryParameters:function(e){if(!e)return this;var t=w.validate(this,e);if(t)throw t;var n=this,r=w._parseNumbers(e),i=Object.keys(this).reduce(function(e,t){return e[t]=n[t],e},{}),s=Object.keys(r).reduce(function(e,t){var n=void 0!==e[t],i=void 0!==r[t];return n&&!i?Mn(e,[t]):(i&&(e[t]=r[t]),e)},i);return new this.constructor(s)},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 On(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 n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(n).map(function(e){return e.trim()})},toString:function(){return JSON.stringify(this,null,2)}};var Un=w,Bn=function(e,t,n){if(!Array.isArray(e))return[];Array.isArray(n)||(n=[]);var r=e.map(function(e,n){return{criteria:t.map(function(t){return e[t]}),index:n,value:e}});return r.sort(function(e,t){for(var r=-1;++r<e.criteria.length;){var i=R(e.criteria[r],t.criteria[r]);if(i)return r>=n.length?i:"desc"===n[r]?-i:i}return e.index-t.index}),r.map(function(e){return e.value})},Qn=function(e){return function(t,n){var r=e.hierarchicalFacets[n],i=e.hierarchicalFacetsRefinements[r.name]&&e.hierarchicalFacetsRefinements[r.name][0]||"",s=e._getHierarchicalFacetSeparator(r),a=e._getHierarchicalRootPath(r),o=e._getHierarchicalShowParentLevel(r),c=_(e._getHierarchicalFacetSortBy(r)),u=t.every(function(e){return e.exhaustive}),l=function(e,t,n,r,i){return function(s,a,o){var c=s;if(o>0){var u=0;for(c=s;o>u;){var l=c&&Array.isArray(c.data)?c.data:[];c=On(l,function(e){return e.isRefined}),u++}}if(c){var h=Object.keys(a.data).map(function(e){return[e,a.data[e]]}).filter(function(e){return function(e,t,n,r,i,s){return(!i||0===e.indexOf(i)&&i!==e)&&(!i&&-1===e.indexOf(r)||i&&e.split(r).length-i.split(r).length==1||-1===e.indexOf(r)&&-1===n.indexOf(r)||0===n.indexOf(e)||0===e.indexOf(t+r)&&(s||0===e.indexOf(n)))}(e[0],c.path||n,i,t,n,r)});c.data=Bn(h.map(function(e){var n=e[0];return function(e,t,n,r,i){var s=t.split(n);return{name:s[s.length-1].trim(),path:t,count:e,isRefined:r===t||0===r.indexOf(t+n),exhaustive:i,data:null}}(e[1],n,t,i,a.exhaustive)}),e[0],e[1])}return s}}(c,s,a,o,i),h=t;return a&&(h=t.slice(a.split(s).length)),h.reduce(l,{name:e.hierarchicalFacets[n].name,count:null,isRefined:!0,path:null,exhaustive:u,data:null})}};F.prototype.getFacetByName=function(e){function t(t){return t.name===e}return On(this.facets,t)||On(this.disjunctiveFacets,t)||On(this.hierarchicalFacets,t)},F.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],F.prototype.getFacetValues=function(e,t){var n=function(e,t){function n(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var r=On(e.facets,n);return r?Object.keys(r.data).map(function(n){return{name:n,count:r.data[n],isRefined:e._state.isFacetRefined(t,n),isExcluded:e._state.isExcludeRefined(t,n)}}):[]}if(e._state.isDisjunctiveFacet(t)){var i=On(e.disjunctiveFacets,n);return i?Object.keys(i.data).map(function(n){return{name:n,count:i.data[n],isRefined:e._state.isDisjunctiveFacetRefined(t,n)}}):[]}return e._state.isHierarchicalFacet(t)?On(e.hierarchicalFacets,n):void 0}(this,e);if(n){var r=y({},t,{sortBy:F.DEFAULT_SORT});if(Array.isArray(r.sortBy)){var i=_(r.sortBy,F.DEFAULT_SORT);return Array.isArray(n)?Bn(n,i[0],i[1]):C(function(e){return Bn(e,i[0],i[1])},n)}if("function"==typeof r.sortBy)return Array.isArray(n)?n.sort(r.sortBy):C(function(e){return function(e,t){return t.sort(e)}(r.sortBy,e)},n);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")}},F.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?N(this.facets,e):this._state.isDisjunctiveFacet(e)?N(this.disjunctiveFacets,e):void 0},F.prototype.getRefinements=function(){var e=this._state,t=this,n=[];return Object.keys(e.facetsRefinements).forEach(function(r){e.facetsRefinements[r].forEach(function(i){n.push(j(e,"facet",r,i,t.facets))})}),Object.keys(e.facetsExcludes).forEach(function(r){e.facetsExcludes[r].forEach(function(i){n.push(j(e,"exclude",r,i,t.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(r){e.disjunctiveFacetsRefinements[r].forEach(function(i){n.push(j(e,"disjunctive",r,i,t.disjunctiveFacets))})}),Object.keys(e.hierarchicalFacetsRefinements).forEach(function(r){e.hierarchicalFacetsRefinements[r].forEach(function(i){n.push(function(e,t,n,r){var i=e.getHierarchicalFacetByName(t),s=e._getHierarchicalFacetSeparator(i),a=n.split(s),o=On(r,function(e){return e.name===t}),c=a.reduce(function(e,t){var n=e&&On(e.data,function(e){return e.name===t});return void 0!==n?n:e},o),u=c&&c.count||0,l=c&&c.exhaustive||!1,h=c&&c.path||"";return{type:"hierarchical",attributeName:t,name:h,count:u,exhaustive:l}}(e,r,i,t.hierarchicalFacets))})}),Object.keys(e.numericRefinements).forEach(function(t){var r=e.numericRefinements[t];Object.keys(r).forEach(function(e){r[e].forEach(function(r){n.push({type:"numeric",attributeName:t,name:r,numericValue:r,operator:e})})})}),e.tagRefinements.forEach(function(e){n.push({type:"tag",attributeName:"_tags",name:e})}),n};var $n=F,Vn=E;(E.EventEmitter=E).prototype._events=void 0,E.prototype._maxListeners=void 0,E.defaultMaxListeners=10,E.prototype.setMaxListeners=function(e){if(!function(e){return"number"==typeof e}(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},E.prototype.emit=function(e){var t,n,r,i,s,a;if(this._events||(this._events={}),"error"===e&&(!this._events.error||I(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var o=new Error('Uncaught, unspecified "error" event. ('+t+")");throw o.context=t,o}if(A(n=this._events[e]))return!1;if(k(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),n.apply(this,i)}else if(I(n))for(i=Array.prototype.slice.call(arguments,1),r=(a=n.slice()).length,s=0;r>s;s++)a[s].apply(this,i);return!0},E.prototype.on=E.prototype.addListener=function(e,t){var n;if(!k(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,k(t.listener)?t.listener:t),this._events[e]?I(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,I(this._events[e])&&!this._events[e].warned&&(n=A(this._maxListeners)?E.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(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},E.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!k(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},E.prototype.removeListener=function(e,t){var n,r,i,s;if(!k(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||k(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(I(n)){for(s=i;0<s--;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(0>r)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},E.prototype.removeAllListeners=function(e){var t,n;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(k(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},E.prototype.listeners=function(e){return this._events&&this._events[e]?k(this._events[e])?[this._events[e]]:this._events[e].slice():[]},E.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(k(t))return 1;if(t)return t.length}return 0},E.listenerCount=function(e,t){return e.listenerCount(t)};var Wn=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})};Wn(O,Vn.EventEmitter),O.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},O.prototype.getModifiedState=function(e){return this.fn(e)};var Kn=O,zn={_getQueries:function(e,t){var n=[];return n.push({indexName:e,params:zn._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach(function(r){n.push({indexName:e,params:zn._getDisjunctiveFacetSearchParams(t,r)})}),t.getRefinedHierarchicalFacets().forEach(function(r){var i=t.getHierarchicalFacetByName(r),s=t.getHierarchicalRefinement(r),a=t._getHierarchicalFacetSeparator(i);0<s.length&&1<s[0].split(a).length&&n.push({indexName:e,params:zn._getDisjunctiveFacetSearchParams(t,r,!0)})}),n},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(zn._getHitsHierarchicalFacetsAttributes(e)),n=zn._getFacetFilters(e),r=zn._getNumericFilters(e),i={facets:t,tagFilters:zn._getTagFilters(e)};return 0<n.length&&(i.facetFilters=n),0<r.length&&(i.numericFilters=r),In({},e.getQueryParams(),i)},_getDisjunctiveFacetSearchParams:function(e,t,n){var r=zn._getFacetFilters(e,t,n),i=zn._getNumericFilters(e,t),s={hitsPerPage:1,page:0,attributesToRetrieve:[],attributesToHighlight:[],attributesToSnippet:[],tagFilters:zn._getTagFilters(e),analytics:!1,clickAnalytics:!1},a=e.getHierarchicalFacetByName(t);return s.facets=a?zn._getDisjunctiveHierarchicalFacetAttribute(e,a,n):t,0<i.length&&(s.numericFilters=i),0<r.length&&(s.facetFilters=r),In({},e.getQueryParams(),s)},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var n=[];return Object.keys(e.numericRefinements).forEach(function(r){var i=e.numericRefinements[r]||{};Object.keys(i).forEach(function(e){var s=i[e]||[];t!==r&&s.forEach(function(t){if(Array.isArray(t)){var i=t.map(function(t){return r+e+t});n.push(i)}else n.push(r+e+t)})})}),n},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,n){var r=[],i=e.facetsRefinements||{};Object.keys(i).forEach(function(e){(i[e]||[]).forEach(function(t){r.push(e+":"+t)})});var s=e.facetsExcludes||{};Object.keys(s).forEach(function(e){(s[e]||[]).forEach(function(t){r.push(e+":-"+t)})});var a=e.disjunctiveFacetsRefinements||{};Object.keys(a).forEach(function(e){var n=a[e]||[];if(e!==t&&n&&0!==n.length){var i=[];n.forEach(function(t){i.push(e+":"+t)}),r.push(i)}});var o=e.hierarchicalFacetsRefinements||{};return Object.keys(o).forEach(function(i){var s=(o[i]||[])[0];if(void 0!==s){var a,c,u=e.getHierarchicalFacetByName(i),l=e._getHierarchicalFacetSeparator(u),h=e._getHierarchicalRootPath(u);if(t===i){if(-1===s.indexOf(l)||!h&&!0===n||h&&h.split(l).length===s.split(l).length)return;s=h?(c=h.split(l).length-1,h):(c=s.split(l).length-2,s.slice(0,s.lastIndexOf(l))),a=u.attributes[c]}else c=s.split(l).length-1,a=u.attributes[c];a&&r.push([a+":"+s])}}),r},_getHitsHierarchicalFacetsAttributes:function(e){return e.hierarchicalFacets.reduce(function(t,n){var r=e.getHierarchicalRefinement(n.name)[0];if(!r)return t.push(n.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(n),s=r.split(i).length,a=n.attributes.slice(0,s+1);return t.concat(a)},[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,n){var r=e._getHierarchicalFacetSeparator(t);if(!0===n){var i=e._getHierarchicalRootPath(t),s=0;return i&&(s=i.split(r).length),[t.attributes[s]]}var a=(e.getHierarchicalRefinement(t.name)[0]||"").split(r).length-1;return t.attributes.slice(0,1+a)},getSearchForFacetQuery:function(e,t,n,r){var i=r.isDisjunctiveFacet(e)?r.clearRefinements(e):r,s={facetQuery:t,facetName:e};return"number"==typeof n&&(s.maxFacetHits=n),In({},zn._getHitsSearchParams(i),s)}},Jn=zn,Xn="3.2.2";Wn(L,Vn.EventEmitter),L.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},L.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},L.prototype.getQuery=function(){var e=this.state;return Jn._getHitsSearchParams(e)},L.prototype.searchOnce=function(e,t){var n=e?this.state.setQueryParameters(e):this.state,r=Jn._getQueries(n.index,n),i=this;return this._currentNbQueries++,this.emit("searchOnce",{state:n}),t?void this.client.search(r).then(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(null,new $n(n,e.results),n)})["catch"](function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(e,null,n)}):this.client.search(r).then(function(e){return i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),{content:new $n(n,e.results),state:n,_originalResponse:e}},function(e){throw i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),e})},L.prototype.searchForFacetValues=function(e,t,n,r){var i="function"==typeof this.client.searchForFacetValues;if(!i&&"function"!=typeof this.client.initIndex)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var s=this.state.setQueryParameters(r||{}),a=s.isDisjunctiveFacet(e),o=Jn.getSearchForFacetQuery(e,t,n,s);this._currentNbQueries++;var c=this;return this.emit("searchForFacetValues",{state:s,facet:e,query:t}),(i?this.client.searchForFacetValues([{indexName:s.index,params:o}]):this.client.initIndex(s.index).searchForFacetValues(o)).then(function(t){return c._currentNbQueries--,0===c._currentNbQueries&&c.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits.forEach(function(t){t.isRefined=a?s.isDisjunctiveFacetRefined(e,t.value):s.isFacetRefined(e,t.value)}),t},function(e){throw c._currentNbQueries--,0===c._currentNbQueries&&c.emit("searchQueueEmpty"),e})},L.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},L.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},L.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},L.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},L.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},L.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},L.prototype.addNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,n),isPageReset:!0}),this},L.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},L.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},L.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},L.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},L.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},L.prototype.removeNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,n),isPageReset:!0}),this},L.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},L.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},L.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},L.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},L.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},L.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},L.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},L.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},L.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},L.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},L.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},L.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},L.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},L.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),
  isPageReset:!0}),this},L.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},L.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},L.prototype.setCurrentPage=M,L.prototype.setPage=M,L.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},L.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},L.prototype.setState=function(e){return this._change({state:Un.make(e),isPageReset:!1}),this},L.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new Un(e),this},L.prototype.hasRefinements=function(e){return!!Dn(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))},L.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},L.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},L.prototype.hasTag=function(e){return this.state.isTagRefined(e)},L.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},L.prototype.getIndex=function(){return this.state.index},L.prototype.getCurrentPage=D,L.prototype.getPage=D,L.prototype.getTags=function(){return this.state.tagRefinements},L.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 n=this.state.getNumericRefinements(e);return Object.keys(n).forEach(function(e){var r=n[e];t.push({value:r,operator:e,type:"numeric"})}),t},L.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},L.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},L.prototype._search=function(e){var t=this.state,n=[],r=[];e.onlyWithDerivedHelpers||(r=Jn._getQueries(t.index,t),n.push({state:t,queriesCount:r.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map(function(e){var r=e.getModifiedState(t),i=Jn._getQueries(r.index,r);return n.push({state:r,queriesCount:i.length,helper:e}),e.emit("search",{state:r,results:e.lastResults}),i}),s=Array.prototype.concat.apply(r,i),a=this._queryId++;this._currentNbQueries++;try{this.client.search(s).then(this._dispatchAlgoliaResponse.bind(this,n,a))["catch"](this._dispatchAlgoliaError.bind(this,a))}catch(e){this.emit("error",{error:e})}},L.prototype._dispatchAlgoliaResponse=function(e,t,n){if(!(t<this._lastQueryIdReceived)){this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,0===this._currentNbQueries&&this.emit("searchQueueEmpty");var r=n.results.slice();e.forEach(function(e){var t=e.state,n=e.queriesCount,i=e.helper,s=r.splice(0,n),a=i.lastResults=new $n(t,s);i.emit("result",{results:a,state:t})})}},L.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"))},L.prototype.containsRefinement=function(e,t,n,r){return e||0!==t.length||0!==n.length||0!==r.length},L.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&0<this.state.disjunctiveRefinements[e].length},L.prototype._change=function(e){var t=e.state,n=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:n}))},L.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},L.prototype.setClient=function(e){return this.client===e||("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper (3.2.2)"),this.client=e),this},L.prototype.getClient=function(){return this.client},L.prototype.derive=function(e){var t=new Kn(this,e);return this.derivedHelpers.push(t),t},L.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},L.prototype.hasPendingRequests=function(){return 0<this._currentNbQueries};var Gn=L;H.version=Xn,H.AlgoliaSearchHelper=Gn,H.SearchParameters=Un,H.SearchResults=$n;var Yn=H,Zn=Promise.resolve(),er=V(function(e,t){!function(e){function t(e){"}"===e.n.substr(e.n.length-1)&&(e.n=e.n.substring(0,e.n.length-1))}function n(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function r(e,t,n){if(t.charAt(n)!=e.charAt(0))return!1;for(var r=1,i=e.length;i>r;r++)if(t.charAt(n+r)!=e.charAt(r))return!1;return!0}function i(e,t){for(var n=0,r=t.length;r>n;n++)if(t[n].o==e.n)return e.tag="#",!0}function s(e,t,n){for(var r=0,i=n.length;i>r;r++)if(n[r].c==e&&n[r].o==t)return!0}function a(e){var t=[];for(var n in e.partials)t.push('"'+o(n)+'":{name:"'+o(e.partials[n].name)+'", '+a(e.partials[n])+"}");return"partials: {"+t.join(",")+"}, subs: "+function(e){var t=[];for(var n in e)t.push('"'+o(n)+'": function(c,p,t,i) {'+e[n]+"}");return"{ "+t.join(",")+" }"}(e.subs)}function o(e){return e.replace(g,"\\\\").replace(d,'\\"').replace(p,"\\n").replace(m,"\\r").replace(v,"\\u2028").replace(y,"\\u2029")}function c(e){return~e.indexOf(".")?"d":"f"}function u(e,t){var n="<"+(t.prefix||"")+e.n+w++;return t.partials[n]={name:e.n,partials:{}},t.code+='t.b(t.rp("'+o(n)+'",c,p,"'+(e.indent||"")+'"));',n}function l(e,t){t.code+="t.b(t.t(t."+c(e.n)+'("'+o(e.n)+'",c,p,0)));'}function h(e){return"t.b("+e+");"}var f=/\S/,d=/\"/g,p=/\n/g,m=/\r/g,g=/\\/g,v=/\u2028/,y=/\u2029/;e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(i,s){function a(){0<y.length&&(b.push({tag:"_t",text:new String(y)}),y="")}function o(t,n){if(a(),t&&function(){for(var t=!0,n=x;n<b.length;n++)if(!(t=e.tags[b[n].tag]<e.tags._v||"_t"==b[n].tag&&null===b[n].text.match(f)))return!1;return t}())for(var r,i=x;i<b.length;i++)b[i].text&&((r=b[i+1])&&">"==r.tag&&(r.indent=b[i].text.toString()),b.splice(i,1));else n||b.push({tag:"\n"});w=!1,x=b.length}var c,u,l,h,d,p=i.length,m=0,g=null,v=null,y="",b=[],w=!1,R=0,x=0,S="{{",_="}}";for(s&&(s=s.split(" "),S=s[0],_=s[1]),R=0;p>R;R++)0==m?r(S,i,R)?(--R,a(),m=1):"\n"==i.charAt(R)?o(w):y+=i.charAt(R):1==m?(R+=S.length-1,m="="==(g=(v=e.tags[i.charAt(R+1)])?i.charAt(R+1):"_v")?(u=R,l="="+_,h=(c=i).indexOf(l,u),d=n(c.substring(c.indexOf("=",u)+1,h)).split(" "),S=d[0],_=d[d.length-1],R=h+l.length-1,0):(v&&R++,2),w=R):r(_,i,R)?(b.push({tag:g,n:n(y),otag:S,ctag:_,i:"/"==g?w-S.length:R+_.length}),y="",R+=_.length-1,m=0,"{"==g&&("}}"==_?R++:t(b[b.length-1]))):y+=i.charAt(R);return o(w,!0),b};var b={_t:!0,"\n":!0,$:!0,"/":!0};e.stringify=function(t){return"{code: function (c,p,i) { "+e.wrapMain(t.code)+" },"+a(t)+"}"};var w=0;e.generate=function(t,n,r){w=0;var i={code:"",subs:{},partials:{}};return e.walk(t,i),r.asString?this.stringify(i,n,r):this.makeTemplate(i,n,r)},e.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(e,t,n){var r=this.makePartials(e);return r.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(r,t,this,n)},e.makePartials=function(e){var t,n={subs:{},partials:e.partials,name:e.name};for(t in n.partials)n.partials[t]=this.makePartials(n.partials[t]);for(t in e.subs)n.subs[t]=new Function("c","p","t","i",e.subs[t]);return n},e.codegen={"#":function(t,n){n.code+="if(t.s(t."+c(t.n)+'("'+o(t.n)+'",c,p,1),c,p,0,'+t.i+","+t.end+',"'+t.otag+" "+t.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(t.nodes,n),n.code+="});c.pop();}"},"^":function(t,n){n.code+="if(!t.s(t."+c(t.n)+'("'+o(t.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(t.nodes,n),n.code+="};"},">":u,"<":function(t,n){var r={partials:{},code:"",subs:{},inPartial:!0};e.walk(t.nodes,r);var i=n.partials[u(t,n)];i.subs=r.subs,i.partials=r.partials},$:function(t,n){var r={subs:{},code:"",partials:n.partials,prefix:t.n};e.walk(t.nodes,r),n.subs[t.n]=r.code,n.inPartial||(n.code+='t.sub("'+o(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=h('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+c(e.n)+'("'+o(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=h('"'+o(e.text)+'"')},"{":l,"&":l},e.walk=function(t,n){for(var r,i=0,s=t.length;s>i;i++)(r=e.codegen[t[i].tag])&&r(t[i],n);return n},e.parse=function(t,n,r){return function a(t,n,r,o){var c,u=[],l=null,h=null;for(c=r[r.length-1];0<t.length;){if(h=t.shift(),c&&"<"==c.tag&&!(h.tag in b))throw new Error("Illegal content in < super tag.");if(e.tags[h.tag]<=e.tags.$||i(h,o))r.push(h),h.nodes=a(t,h.tag,r,o);else{if("/"==h.tag){if(0===r.length)throw new Error("Closing tag without opener: /"+h.n);if(l=r.pop(),h.n!=l.n&&!s(h.n,l.n,o))throw new Error("Nesting error: "+l.n+" vs. "+h.n);return l.end=h.i,u}"\n"==h.tag&&(h.last=0==t.length||"\n"==t[0].tag)}u.push(h)}if(0<r.length)throw new Error("missing closing tag: "+r.pop().n);return u}(t,0,[],(r=r||{}).sectionTags||[])},e.cache={},e.cacheKey=function(e,t){return[e,!!t.asString,!!t.disableLambda,t.delimiters,!!t.modelGet].join("||")},e.compile=function(t,n){n=n||{};var r=e.cacheKey(t,n),i=this.cache[r];if(i){var s=i.partials;for(var a in s)delete s[a].instance;return i}return i=this.generate(this.parse(this.scan(t,n.delimiters),t,n),t,n),this.cache[r]=i}}(t)}),tr=V(function(e,t){!function(e){function t(e,t,n){var r;return t&&"object"==typeof t&&(void 0!==t[e]?r=t[e]:n&&t.get&&"function"==typeof t.get&&(r=t.get(e))),r}function n(e){return String(null==e?"":e)}e.Template=function(e,t,n,r){e=e||{},this.r=e.code||this.r,this.c=n,this.options=r||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(){return""},v:function(e){return e=n(e),c.test(e)?e.replace(r,"&amp;").replace(i,"&lt;").replace(s,"&gt;").replace(a,"&#39;").replace(o,"&quot;"):e},t:n,render:function(e,t,n){return this.ri([e],t||{},n)},ri:function(e,t,n){return this.r(e,t,n)},ep:function(e,t){var n=this.partials[e],r=t[n.name];if(n.instance&&n.base==r)return n.instance;if("string"==typeof r){if(!this.c)throw new Error("No compiler available.");r=this.c.compile(r,this.options)}if(!r)return null;if(this.partials[e].base=r,n.subs){for(key in t.stackText||(t.stackText={}),n.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);r=function(e,t,n,r,i,s){function a(){}function o(){}var c;o.prototype=(a.prototype=e).subs;var u=new a;for(c in u.subs=new o,u.subsText={},u.buf="",r=r||{},u.stackSubs=r,u.subsText=s,t)r[c]||(r[c]=t[c]);for(c in r)u.subs[c]=r[c];for(c in i=i||{},u.stackPartials=i,n)i[c]||(i[c]=n[c]);for(c in i)u.partials[c]=i[c];return u}(r,n.subs,n.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=r},rp:function(e,t,n,r){var i=this.ep(e,n);return i?i.ri(t,n,r):""},rs:function(e,t,n){var r=e[e.length-1];if(u(r))for(var i=0;i<r.length;i++)e.push(r[i]),n(e,t,this),e.pop();else n(e,t,this)},s:function(e,t,n,r,i,s,a){var o;return(!u(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,t,n,r,i,s,a)),o=!!e,!r&&o&&t&&t.push("object"==typeof e?e:t[t.length-1]),o)},d:function(e,n,r,i){var s,a=e.split("."),o=this.f(a[0],n,r,i),c=this.options.modelGet,l=null;if("."===e&&u(n[n.length-2]))o=n[n.length-1];else for(var h=1;h<a.length;h++)o=void 0!==(s=t(a[h],o,c))?(l=o,s):"";return!(i&&!o)&&(i||"function"!=typeof o||(n.push(l),o=this.mv(o,n,r),n.pop()),o)},f:function(e,n,r,i){for(var s=!1,a=!1,o=this.options.modelGet,c=n.length-1;c>=0;c--)if(void 0!==(s=t(e,n[c],o))){a=!0;break}return a?(i||"function"!=typeof s||(s=this.mv(s,n,r)),s):!i&&""},ls:function(e,t,r,i,s){var a=this.options.delimiters;return this.options.delimiters=s,this.b(this.ct(n(e.call(t,i)),t,r)),this.options.delimiters=a,!1},ct:function(e,t,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,n)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,n,r,i,s,a){var o,c=t[t.length-1],u=e.call(c);return"function"==typeof u?!!r||(o=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(u,c,n,o.substring(i,s),a)):u},mv:function(e,t,r){var i=t[t.length-1],s=e.call(i);return"function"==typeof s?this.ct(n(s.call(i)),i,r):s},sub:function(e,t,n,r){var i=this.subs[e];i&&(this.activeSub=e,i(t,n,this,r),this.activeSub=!1)}};var r=/&/g,i=/</g,s=/>/g,a=/\'/g,o=/\"/g,c=/[&<>\"\']/,u=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)});er.Template=tr.Template,er.template=er.Template;var nr,rr,ir,sr,ar,or=er,cr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ur=/[&<>"']/g,lr=RegExp(ur.source),hr=/^(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)$/,fr=le({name:"index-widget"}),dr={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},pr={highlightPreTag:"<mark>",highlightPostTag:"</mark>"},mr=Se("Highlight"),gr=Se("Snippet"),vr=Object.prototype.hasOwnProperty,yr=Array.isArray,br=function(){for(var e=[],t=0;256>t;++t)e.push("%"+((16>t?"0":"")+t.toString(16)).toUpperCase());return e}(),wr={arrayToObject:Ne,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],s=i.obj[i.prop],a=Object.keys(s),o=0;o<a.length;++o){var c=a[o],u=s[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:s,prop:c}),n.push(u))}return function(e){for(;1<e.length;){var t=e.pop(),n=t.obj[t.prop];if(yr(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var i="",s=0;s<r.length;++s){var a=r.charCodeAt(s);45===a||46===a||95===a||126===a||a>=48&&57>=a||a>=65&&90>=a||a>=97&&122>=a?i+=r.charAt(s):128>a?i+=br[a]:2048>a?i+=br[192|a>>6]+br[128|63&a]:55296>a||a>=57344?i+=br[224|a>>12]+br[128|a>>6&63]+br[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),i+=br[240|a>>18]+br[128|a>>12&63]+br[128|a>>6&63]+br[128|63&a])}return i},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function da(e,t,n){if(!t)return e;if("object"!=typeof t){if(yr(e))e.push(t);else{if(!e||"object"!=typeof e)return[e,t];(n&&(n.plainObjects||n.allowPrototypes)||!vr.call(Object.prototype,t))&&(e[t]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(t);var r=e;return yr(e)&&!yr(t)&&(r=Ne(e,n)),yr(e)&&yr(t)?(t.forEach(function(t,r){if(vr.call(e,r)){var i=e[r];i&&"object"==typeof i&&t&&"object"==typeof t?e[r]=da(i,t,n):e.push(t)}else e[r]=t}),e):Object.keys(t).reduce(function(e,r){var i=t[r];return e[r]=vr.call(e,r)?da(e[r],i,n):i,e},r)}},Rr=String.prototype.replace,xr=/%20/g,Sr={RFC1738:"RFC1738",RFC3986:"RFC3986"},_r=wr.assign({"default":Sr.RFC3986,formatters:{RFC1738:function(e){return Rr.call(e,xr,"+")},RFC3986:function(e){return String(e)}}},Sr),Pr=Object.prototype.hasOwnProperty,Tr={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Fr=Array.isArray,Cr=Array.prototype.push,Nr=Date.prototype.toISOString,jr=_r["default"],Er={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:wr.encode,encodeValuesOnly:!1,format:jr,formatter:_r.formatters[jr],indices:!1,serializeDate:function(e){return Nr.call(e)},skipNulls:!1,strictNullHandling:!1},kr=Object.prototype.hasOwnProperty,Ir={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:wr.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Ar={formats:_r,parse:function(e,t){var n=function(e){if(!e)return Ir;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?Ir.charset:e.charset;return{allowDots:void 0===e.allowDots?Ir.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Ir.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Ir.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Ir.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Ir.comma,decoder:"function"==typeof e.decoder?e.decoder:Ir.decoder,delimiter:"string"==typeof e.delimiter||wr.isRegExp(e.delimiter)?e.delimiter:Ir.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Ir.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Ir.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Ir.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Ir.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Ir.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var r="string"==typeof e?function(e,t){var n,r={},i=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,s=t.parameterLimit===1/0?void 0:t.parameterLimit,a=i.split(t.delimiter,s),o=-1,c=t.charset;if(t.charsetSentinel)for(n=0;n<a.length;++n)0===a[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[n]?c="utf-8":"utf8=%26%2310003%3B"===a[n]&&(c="iso-8859-1"),o=n,n=a.length);for(n=0;n<a.length;++n)if(n!==o){var u,l,h=a[n],f=h.indexOf("]="),d=-1===f?h.indexOf("="):f+1;(l=-1===d?(u=t.decoder(h,Ir.decoder,c),t.strictNullHandling?null:""):(u=t.decoder(h.slice(0,d),Ir.decoder,c),t.decoder(h.slice(d+1),Ir.decoder,c)))&&t.interpretNumericEntities&&"iso-8859-1"===c&&(l=l.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),l&&t.comma&&-1<l.indexOf(",")&&(l=l.split(",")),r[u]=kr.call(r,u)?wr.combine(r[u],l):l}return r}(e,n):e,i=n.plainObjects?Object.create(null):{},s=Object.keys(r),a=0;a<s.length;++a){var o=s[a],c=ke(o,r[o],n);i=wr.merge(i,c,n)}return wr.compact(i)},stringify:function(e,t){var n,r=e,i=function(e){if(!e)return Er;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||Er.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=_r["default"];if(void 0!==e.format){if(!Pr.call(_r.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=_r.formatters[n],i=Er.filter;return"function"!=typeof e.filter&&!Fr(e.filter)||(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Er.addQueryPrefix,allowDots:void 0===e.allowDots?Er.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Er.charsetSentinel,delimiter:void 0===e.delimiter?Er.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Er.encode,encoder:"function"==typeof e.encoder?e.encoder:Er.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Er.encodeValuesOnly,filter:i,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Er.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Er.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Er.strictNullHandling}}(t);"function"==typeof i.filter?r=i.filter("",r):Fr(i.filter)&&(n=i.filter);var s,a=[];if("object"!=typeof r||null===r)return"";s=t&&t.arrayFormat in Tr?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var o=Tr[s];n=n||Object.keys(r),i.sort&&n.sort(i.sort);for(var c=0;c<n.length;++c){var u=n[c];i.skipNulls&&null===r[u]||je(a,Ee(r[u],u,o,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.formatter,i.encodeValuesOnly,i.charset))}var l=a.join(i.delimiter),h=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&(h+="iso-8859-1"===i.charset?"utf8=%26%2310003%3B&":"utf8=%E2%9C%93&"),0<l.length?h+l:""}},Or=function(){function e(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=n.windowTitle,s=n.writeDelay,a=void 0===s?400:s,o=n.createURL,c=void 0===o?Ie:o,u=n.parseURL,l=void 0===u?Ae:u;t(this,e),i(this,"windowTitle",void 0),i(this,"writeDelay",void 0),i(this,"_createURL",void 0),i(this,"parseURL",void 0),i(this,"writeTimer",void 0),this.windowTitle=r,this.writeTimer=void 0,this.writeDelay=a,this._createURL=c,this.parseURL=l;var h=this.windowTitle&&this.windowTitle(this.read());Oe(h)}return r(e,[{key:"read",value:function(){return this.parseURL({qsModule:Ar,location:window.location})}},{key:"write",value:function(e){var t=this,n=this.createURL(e),r=this.windowTitle&&this.windowTitle(e);this.writeTimer&&window.clearTimeout(this.writeTimer),this.writeTimer=window.setTimeout(function(){Oe(r),window.history.pushState(e,r||"",n),t.writeTimer=void 0},this.writeDelay)}},{key:"onUpdate",value:function(e){var t=this;this._onPopState=function(n){t.writeTimer&&(window.clearTimeout(t.writeTimer),t.writeTimer=void 0);var r=n.state;e(r||t.read())},window.addEventListener("popstate",this._onPopState)}},{key:"createURL",value:function(e){return this._createURL({qsModule:Ar,routeState:e,location:window.location})}},{key:"dispose",value:function(){this._onPopState&&window.removeEventListener("popstate",this._onPopState),this.writeTimer&&window.clearTimeout(this.writeTimer),this.write({})}}]),e}(),Lr=le({name:"instantsearch"}),Mr=function(){function e(n){var r;t(this,e),i(f(r=d(this,u(e).call(this))),"client",void 0),i(f(r),"indexName",void 0),i(f(r),"insightsClient",void 0),i(f(r),"onStateChange",null),i(f(r),"helper",void 0),i(f(r),"mainHelper",void 0),i(f(r),"mainIndex",void 0),i(f(r),"started",void 0),i(f(r),"templatesConfig",void 0),i(f(r),"_stalledSearchDelay",void 0),i(f(r),"_searchStalledTimer",void 0),i(f(r),"_isSearchStalled",void 0),i(f(r),"_initialUiState",void 0),i(f(r),"_createURL",void 0),i(f(r),"_searchFunction",void 0),i(f(r),"_mainHelperSearch",void 0),i(f(r),"middleware",[]),i(f(r),"scheduleSearch",q(function(){r.started&&r.mainHelper.search()})),i(f(r),"scheduleRender",q(function(){r.mainHelper.hasPendingRequests()||(clearTimeout(r._searchStalledTimer),r._searchStalledTimer=null,r._isSearchStalled=!1),r.mainIndex.render({instantSearchInstance:f(r)}),r.emit("render")})),i(f(r),"setUiState",function(e){if(!r.mainHelper)throw new Error(Lr("The `start` method needs to be called before `setUiState`."));r.mainIndex.refreshUiState();var t="function"==typeof e?e(r.mainIndex.getWidgetState({})):e;!function n(e){e.getHelper().overrideStateWithoutTriggeringChangeEvent(e.getWidgetSearchParameters(e.getHelper().state,{uiState:t[e.getIndexId()]})),e.getWidgets().filter(pe).forEach(n)}(r.mainIndex),r.scheduleSearch(),r.onInternalStateChange()}),i(f(r),"onInternalStateChange",function(){var e=r.mainIndex.getWidgetState({});r.middleware.forEach(function(t){t.onStateChange({uiState:e})})});var s=n.indexName,a=void 0===s?null:s,c=n.numberLocale,l=n.initialUiState,h=void 0===l?{}:l,p=n.routing,m=void 0===p?null:p,g=n.searchFunction,v=n.stalledSearchDelay,y=void 0===v?200:v,b=n.searchClient,w=void 0===b?null:b,R=n.insightsClient,x=void 0===R?null:R,S=n.onStateChange,_=void 0===S?null:S;if(null===a)throw new Error(Lr("The `indexName` option is required."));if(null===w)throw new Error(Lr("The `searchClient` option is required."));if("function"!=typeof w.search)throw new Error("The `searchClient` must implement a `search` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/backend-instantsearch/js/");if("function"==typeof w.addAlgoliaAgent&&w.addAlgoliaAgent("instantsearch.js (".concat("4.7.2",")")),x&&"function"!=typeof x)throw new Error(Lr("The `insightsClient` option should be a function."));if(r.client=w,r.insightsClient=x,r.indexName=a,r.helper=null,r.mainHelper=null,r.mainIndex=be({indexName:a}),r.onStateChange=_,r.started=!1,r.templatesConfig={helpers:function(e){var t=e.numberLocale;return{formatNumber:function(e,n){return Number(n(e)).toLocaleString(t)},highlight:function(e,t){try{return t(_e(o({},JSON.parse(e),{hit:this})))}catch(e){throw new Error('\nThe highlight helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},snippet:function(e,t){try{return t(Pe(o({},JSON.parse(e),{hit:this})))}catch(e){throw new Error('\nThe snippet helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},insights:function(e,t){try{var n=JSON.parse(e),r=n.method,i=n.payload;return t(Te(r,o({objectIDs:[this.objectID]},i)))}catch(e){throw new Error('\nThe insights helper expects a JSON object of the format:\n{ "method": "method-name", "payload": { "eventName": "name of the event" } }')}}}}({numberLocale:c}),compileOptions:{}},r._stalledSearchDelay=y,r._searchStalledTimer=null,r._isSearchStalled=!1,r._createURL=Me,r._initialUiState=h,g&&(r._searchFunction=g),m){var P="boolean"==typeof m?void 0:m;r.EXPERIMENTAL_use(function(e){var t=0<arguments.length&&void 0!==e?e:{},n=t.router,r=void 0===n?Le():n,s=t.stateMapping,a=void 0===s?Ce():s;return function(e){var t=e.instantSearchInstance;t._createURL=function(e){var n=Object.keys(e).reduce(function(t,n){return o({},t,i({},n,e[n]))},t.mainIndex.getWidgetState({})),s=a.stateToRoute(n);return r.createURL(s)},t._initialUiState=o({},t._initialUiState,{},a.routeToState(r.read()));var n=void 0;return{onStateChange:function(e){var t=e.uiState,i=a.stateToRoute(t);void 0!==n&&ae(n,i)||(r.write(i),n=i)},subscribe:function(){r.onUpdate(function(e){var n=a.routeToState(e);!function r(e,t){t(e),e.getWidgets().filter(function(e){return"ais.index"===e.$$type}).forEach(function(e){r(e,t)})}(t.mainIndex,function(e){var r=e.getWidgets(),i=n[e.getIndexId()]||{},s=r.reduce(function(e,t){return t.getWidgetSearchParameters?t.getWidgetSearchParameters(e,{uiState:i}):e},e.getHelper().state);e.getHelper().overrideStateWithoutTriggeringChangeEvent(s),t.scheduleSearch()})})},unsubscribe:function(){r.dispose()}}}}(P))}return r}return c(e,Vn),r(e,[{key:"EXPERIMENTAL_use",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;t>r;r++)n[r]=arguments[r];var i=n.map(function(t){var n=t({instantSearchInstance:e});return e.middleware.push(n),n});return this.started&&i.forEach(function(e){e.subscribe()}),this}},{key:"addWidget",value:function(e){return this.addWidgets([e])}},{key:"addWidgets",value:function(e){if(!Array.isArray(e))throw new Error(Lr("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));if(e.some(function(e){return"function"!=typeof e.init&&"function"!=typeof e.render}))throw new Error(Lr("The widget definition expects a `render` and/or an `init` method."));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 new Error(Lr("The `removeWidgets` method expects an array of widgets. Please use `removeWidget`."));if(e.some(function(e){return"function"!=typeof e.dispose}))throw new Error(Lr("The widget definition expects a `dispose` method."));return this.mainIndex.removeWidgets(e),this}},{key:"start",value:function(){var e=this;if(this.started)throw new Error(Lr("The `start` method has already been called once."));var t=Yn(this.client,this.indexName);if(t.search=function(){return t.searchOnlyWithDerivedHelpers()},this._searchFunction){var n={search:function(){return new Promise(ee)}};this._mainHelperSearch=t.search.bind(t),t.search=function(){var r=e.mainIndex.getHelper(),i=Yn(n,r.state.index,r.state);return i.once("search",function(t){var n=t.state;r.overrideStateWithoutTriggeringChangeEvent(n),e._mainHelperSearch()}),i.on("change",function(e){var t=e.state;r.setState(t)}),e._searchFunction(i),t}}t.on("error",function(t){var n=t.error;e.emit("error",{error:n})}),this.mainHelper=t,this.mainIndex.init({instantSearchInstance:this,parent:null,uiState:this._initialUiState}),this.middleware.forEach(function(e){e.subscribe()}),t.search(),this.helper=this.mainIndex.getHelper(),this.started=!0}},{key:"dispose",value:function(){this.scheduleSearch.cancel(),this.scheduleRender.cancel(),clearTimeout(this._searchStalledTimer),this.removeWidgets(this.mainIndex.getWidgets()),this.mainIndex.dispose(),this.started=!1,this.removeAllListeners(),this.mainHelper.removeAllListeners(),this.mainHelper=null,this.helper=null,this.middleware.forEach(function(e){e.unsubscribe()})}},{key:"scheduleStalledRender",value:function(){var e=this;this._searchStalledTimer||(this._searchStalledTimer=setTimeout(function(){e._isSearchStalled=!0,e.scheduleRender()},this._stalledSearchDelay))}},{key:"createURL",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};if(!this.started)throw new Error(Lr("The `start` method needs to be called before `createURL`."));return this._createURL(t)}},{key:"refresh",value:function(){if(!this.mainHelper)throw new Error(Lr("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}]),e}(),Dr=le({name:"clear-refinements",connector:!0}),Hr=le({name:"current-refinements",connector:!0}),qr=le({name:"hierarchical-menu",connector:!0}),Ur=le({name:"hits",connector:!0}),Br={},Qr=[],$r=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i;nr={},Ze.prototype.setState=function(e,t){var n=this.__s!==this.state&&this.__s||(this.__s=ze({},this.state));"function"==typeof e&&!(e=e(n,this.props))||ze(n,e),null!=e&&this.__v&&(this.u=!1,t&&this.__h.push(t),nt(this))},Ze.prototype.forceUpdate=function(e){this.__v&&(e&&this.__h.push(e),this.u=!0,nt(this))},Ze.prototype.render=Ye,rr=[],ir="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,sr=nr.debounceRendering,nr.__e=function(e,t){for(var n;t=t.__p;)if((n=t.__c)&&!n.__p)try{if(n.constructor&&null!=n.constructor.getDerivedStateFromError)n.setState(n.constructor.getDerivedStateFromError(e));else{if(null==n.componentDidCatch)continue;n.componentDidCatch(e)}return nt(n.__E=n)}catch(t){e=t}throw e},ar=Br;var Vr=Ke(Ve),Wr=le({name:"hits-per-page",connector:!0}),Kr=le({name:"infinite-hits",connector:!0}),zr=Ke(bt),Jr=le({name:"menu",connector:!0}),Xr=le({name:"numeric-menu",connector:!0}),Gr=function(){function e(n){t(this,e),this.currentPage=n.currentPage,this.total=n.total,this.padding=n.padding}return r(e,[{key:"pages",value:function(){var e=this.total,t=this.currentPage,n=this.padding;if(0===e)return[0];var r=this.nbPagesDisplayed(n,e);if(r===e)return ie({end:e});var i=this.calculatePaddingLeft(t,n,e,r);
  
  return ie({start:t-i,end:t+(r-i)})}},{key:"nbPagesDisplayed",value:function(e,t){return Math.min(2*e+1,t)}},{key:"calculatePaddingLeft",value:function(e,t,n,r){return t>=e?e:e>=n-t?r-(n-e):t}},{key:"isLastPage",value:function(){return this.currentPage===this.total-1||0===this.total}},{key:"isFirstPage",value:function(){return 0===this.currentPage}}]),e}(),Yr=le({name:"pagination",connector:!0}),Zr=le({name:"range-input",connector:!0},{name:"range-slider",connector:!0}),ei=le({name:"refinement-list",connector:!0}),ti=le({name:"search-box",connector:!0}),ni=le({name:"sort-by",connector:!0}),ri=le({name:"rating-menu",connector:!0}),ii=le({name:"stats",connector:!0}),si=le({name:"toggle-refinement",connector:!0}),ai=le({name:"breadcrumb",connector:!0}),oi=le({name:"geo-search",connector:!0}),ci=le({name:"powered-by",connector:!0}),ui=le({name:"configure",connector:!0}),li=le({name:"configure-related-items",connector:!0}),hi=le({name:"autocomplete",connector:!0}),fi=le({name:"query-rules",connector:!0}),di=le({name:"voice-search",connector:!0}),pi=Object.freeze({__proto__:null,connectClearRefinements:De,connectCurrentRefinements:He,connectHierarchicalMenu:$e,connectHits:Ve,connectHitsWithInsights:Vr,connectHitsPerPage:gt,connectInfiniteHits:bt,connectInfiniteHitsWithInsights:zr,connectMenu:wt,connectNumericMenu:Rt,connectPagination:Pt,connectRange:Tt,connectRefinementList:Ft,connectSearchBox:Ct,connectSortBy:Nt,connectRatingMenu:jt,connectStats:Et,connectToggleRefinement:kt,connectBreadcrumb:It,connectGeoSearch:At,connectPoweredBy:Ot,connectConfigure:Mt,EXPERIMENTAL_connectConfigureRelatedItems:Ht,connectAutocomplete:function(e,t){var n=1<arguments.length&&void 0!==t?t:ee;return Z(e,hi()),function(t){var r=(t||{}).escapeHTML,s=void 0===r||r,a={};return{$$type:"ais.autocomplete",init:function(n){var r=n.instantSearchInstance,i=n.helper;a.refine=function(e){i.setQuery(e).search()},e({widgetParams:t,currentRefinement:i.state.query||"",indices:[],refine:a.refine,instantSearchInstance:r},!0)},render:function(n){var r=n.helper,i=n.scopedResults,o=n.instantSearchInstance,c=i.map(function(e){return e.results.hits=s?xe(e.results.hits):e.results.hits,{indexId:e.indexId,indexName:e.results.index,hits:e.results.hits,results:e.results}});e({widgetParams:t,currentRefinement:r.state.query||"",indices:c,refine:a.refine,instantSearchInstance:o},!1)},getWidgetState:function(e,t){var n=t.searchParameters.query||"";return""===n||e&&e.query===n?e:o({},e,{query:n})},getWidgetSearchParameters:function(e,t){var n={query:t.uiState.query||""};return e.setQueryParameters(s?o({},n,{},dr):n)},dispose:function(e){var t=e.state;n();var r=t.setQueryParameter("query",void 0);return s?r.setQueryParameters(Object.keys(dr).reduce(function(e,t){return o({},e,i({},t,void 0))},{})):r}}}},connectQueryRules:Ut,connectVoiceSearch:Qt}),mi=V(function(e){function t(){for(var e=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var s=typeof i;if("string"==s||"number"==s)e.push(i);else if(Array.isArray(i)&&i.length){var a=t.apply(null,i);a&&e.push(a)}else if("object"==s)for(var o in i)n.call(i,o)&&i[o]&&e.push(o)}}return e.join(" ")}var n;n={}.hasOwnProperty,e.exports?(t["default"]=t,e.exports=t):window.classNames=t}),gi=function(){function e(){return t(this,e),d(this,u(e).apply(this,arguments))}return c(e,Ze),r(e,[{key:"shouldComponentUpdate",value:function(e){return!ae(this.props.data,e.data)||this.props.templateKey!==e.templateKey||!ae(this.props.rootProps,e.rootProps)}},{key:"render",value:function(){var e=this.props.rootTagName,t=this.props.useCustomCompileOptions[this.props.templateKey]?this.props.templatesConfig.compileOptions:{},n=W({templates:this.props.templates,templateKey:this.props.templateKey,compileOptions:t,helpers:this.props.templatesConfig.helpers,data:this.props.data});return null===n?null:Xe(e,s({},this.props.rootProps,{dangerouslySetInnerHTML:{__html:n}}))}}]),e}();gi.defaultProps={data:{},rootTagName:"div",useCustomCompileOptions:{},templates:{},templatesConfig:{}};var vi={resetLabel:"Clear refinements"},yi=le({name:"clear-refinements"}),bi=Se("ClearRefinements"),wi=le({name:"current-refinements"}),Ri=Se("CurrentRefinements");Kt.defaultProps={disabled:!1};var xi={HTMLMarker:"<p>Your custom HTML Marker</p>",reset:"Clear the map refinement",toggle:"Search as I move the map",redo:"Redo search here"},Si=le({name:"geo-search"}),_i=Se("GeoSearch"),Pi=function(){function e(){var n,r;t(this,e);for(var s=arguments.length,a=new Array(s),o=0;s>o;o++)a[o]=arguments[o];return i(f(r=d(this,(n=u(e)).call.apply(n,[this].concat(a)))),"state",{query:r.props.query,focused:!1}),i(f(r),"onInput",function(e){var t=r.props,n=t.searchAsYouType,i=t.refine,s=t.onChange,a=e.target.value;n&&i(a),r.setState({query:a}),s(e)}),i(f(r),"onSubmit",function(e){var t=r.props,n=t.searchAsYouType,i=t.refine,s=t.onSubmit;return e.preventDefault(),e.stopPropagation(),r.input.blur(),n||i(r.state.query),s(e),!1}),i(f(r),"onReset",function(e){var t=r.props,n=t.refine,i=t.onReset;r.input.focus(),n(""),r.setState({query:""}),i(e)}),i(f(r),"onBlur",function(){r.setState({focused:!1})}),i(f(r),"onFocus",function(){r.setState({focused:!0})}),r}return c(e,Ze),r(e,[{key:"resetInput",value:function(){this.setState({query:""})}},{key:"componentWillReceiveProps",value:function(e){this.state.focused||e.query===this.state.query||this.setState({query:e.query})}},{key:"render",value:function(){var e=this,t=this.props,n=t.cssClasses,r=t.placeholder,i=t.autofocus,s=t.showSubmit,a=t.showReset,o=t.showLoadingIndicator,c=t.templates,u=t.isSearchStalled;return Xe("div",{className:n.root},Xe("form",{action:"",role:"search",className:n.form,noValidate:!0,onSubmit:this.onSubmit,onReset:this.onReset},Xe("input",{ref:function(t){return e.input=t},value:this.state.query,disabled:this.props.disabled,className:n.input,type:"search",placeholder:r,autoFocus:i,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",maxLength:512,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus}),Xe(gi,{templateKey:"submit",rootTagName:"button",rootProps:{className:n.submit,type:"submit",title:"Submit the search query.",hidden:!s},templates:c,data:{cssClasses:n}}),Xe(gi,{templateKey:"reset",rootTagName:"button",rootProps:{className:n.reset,type:"reset",title:"Clear the search query.",hidden:!(a&&this.state.query.trim()&&!u)},templates:c,data:{cssClasses:n}}),o&&Xe(gi,{templateKey:"loadingIndicator",rootTagName:"span",rootProps:{className:n.loadingIndicator,hidden:!u},templates:c,data:{cssClasses:n}})))}}]),e}();i(Pi,"defaultProps",{query:"",showSubmit:!0,showReset:!0,showLoadingIndicator:!0,autofocus:!1,searchAsYouType:!0,isSearchStalled:!1,disabled:!1,onChange:ee,onSubmit:ee,onReset:ee,refine:ee});var Ti=function(){function e(n){var r;return t(this,e),(r=d(this,u(e).call(this,n))).handleItemClick=r.handleItemClick.bind(f(r)),r}return c(e,Ze),r(e,[{key:"shouldComponentUpdate",value:function(e,t){var n=this.state!==t,r=!ae(this.props.facetValues,e.facetValues);return n||r}},{key:"refine",value:function(e,t){this.props.toggleRefinement(e,t)}},{key:"_generateFacetItem",value:function(t){var n,r,a=t.data&&0<t.data.length;if(a){var c=this.props.cssClasses,u=(c.root,h(c,["root"]));r=Xe(e,s({},this.props,{cssClasses:u,depth:this.props.depth+1,facetValues:t.data,showMore:!1,className:this.props.cssClasses.childList}))}var l=o({},t,{url:this.props.createURL(t.value),attribute:this.props.attribute,cssClasses:this.props.cssClasses,isFromSearch:this.props.isFromSearch}),f=t.value;return void 0!==t.isRefined&&(f+="/".concat(t.isRefined)),void 0!==t.count&&(f+="/".concat(t.count)),Xe(Zt,{templateKey:"item",key:f,facetValueToRefine:t.value,handleClick:this.handleItemClick,isRefined:t.isRefined,className:mi(this.props.cssClasses.item,(n={},i(n,this.props.cssClasses.selectedItem,t.isRefined),i(n,this.props.cssClasses.disabledItem,!t.count),i(n,this.props.cssClasses.parentItem,a),n)),subItems:r,templateData:l,templateProps:this.props.templateProps})}},{key:"handleItemClick",value:function(e){var t=e.facetValueToRefine,n=e.originalEvent,r=e.isRefined;if(!(B(n)||r&&n.target.parentNode.querySelector('input[type="radio"]:checked')))if("INPUT"!==n.target.tagName){for(var i=n.target;i!==n.currentTarget;){if("LABEL"===i.tagName&&(i.querySelector('input[type="checkbox"]')||i.querySelector('input[type="radio"]')))return;"A"===i.tagName&&i.href&&n.preventDefault(),i=i.parentNode}n.stopPropagation(),this.refine(t,r)}else this.refine(t,r)}},{key:"componentWillReceiveProps",value:function(e){this.searchBox&&!e.isFromSearch&&this.searchBox.resetInput()}},{key:"refineFirstValue",value:function(){var e=this.props.facetValues[0];if(e){var t=e.value;this.props.toggleRefinement(t)}}},{key:"render",value:function(){var e=this,t=mi(this.props.cssClasses.list,i({},"".concat(this.props.cssClasses.depth).concat(this.props.depth),this.props.cssClasses.depth)),n=mi(this.props.cssClasses.showMore,i({},this.props.cssClasses.disabledShowMore,!(!0===this.props.showMore&&this.props.canToggleShowMore))),r=!0===this.props.showMore&&Xe(gi,s({},this.props.templateProps,{templateKey:"showMoreText",rootTagName:"button",rootProps:{className:n,disabled:!this.props.canToggleShowMore,onClick:this.props.toggleShowMore},data:{isShowingMore:this.props.isShowingMore}})),a=!0!==this.props.searchIsAlwaysActive&&!(this.props.isFromSearch||!this.props.hasExhaustiveItems),o=this.props.searchFacetValues&&Xe("div",{className:this.props.cssClasses.searchBox},Xe(Pi,{ref:function(t){return e.searchBox=t},placeholder:this.props.searchPlaceholder,disabled:a,cssClasses:this.props.cssClasses.searchable,templates:this.props.templateProps.templates,onChange:function(t){return e.props.searchFacetValues(t.target.value)},onReset:function(){return e.props.searchFacetValues("")},onSubmit:function(){return e.refineFirstValue()},searchAsYouType:!1})),c=this.props.facetValues&&0<this.props.facetValues.length&&Xe("ul",{className:t},this.props.facetValues.map(this._generateFacetItem,this)),u=this.props.searchFacetValues&&this.props.isFromSearch&&0===this.props.facetValues.length&&Xe(gi,s({},this.props.templateProps,{templateKey:"searchableNoResults",rootProps:{className:this.props.cssClasses.noResults}}));return Xe("div",{className:mi(this.props.cssClasses.root,i({},this.props.cssClasses.noRefinementRoot,!this.props.facetValues||0===this.props.facetValues.length),this.props.className)},this.props.children,o,c,u,r)}}]),e}();Ti.defaultProps={cssClasses:{},depth:0};var Fi={item:'<a class="{{cssClasses.link}}" href="{{url}}"><span class="{{cssClasses.label}}">{{label}}</span><span class="{{cssClasses.count}}">{{#helpers.formatNumber}}{{count}}{{/helpers.formatNumber}}</span></a>',showMoreText:"\n    {{#isShowingMore}}\n      Show less\n    {{/isShowingMore}}\n    {{^isShowingMore}}\n      Show more\n    {{/isShowingMore}}\n  "},Ci=le({name:"hierarchical-menu"}),Ni=Se("HierarchicalMenu");en.defaultProps={results:{hits:[]},hits:[]};var ji={empty:"No results",item:function(e){return JSON.stringify(e,null,2)}},Ei=le({name:"hits"}),ki=Se("Hits"),Ii=mt(en),Ai=le({name:"hits-per-page"}),Oi=Se("HitsPerPage"),Li={empty:"No results",showPreviousText:"Show previous results",showMoreText:"Show more results",item:function(e){return JSON.stringify(e,null,2)}},Mi=le({name:"infinite-hits"}),Di=Se("InfiniteHits"),Hi=mt(function(e){var t=e.results,n=e.hits,r=e.hasShowPrevious,a=e.showPrevious,c=e.showMore,u=e.isFirstPage,l=e.isLastPage,h=e.cssClasses,f=e.templateProps;return 0===t.hits.length?Xe(gi,s({},f,{templateKey:"empty",rootProps:{className:mi(h.root,h.emptyRoot)},data:t})):Xe("div",{className:h.root},r&&Xe(gi,s({},f,{templateKey:"showPreviousText",rootTagName:"button",rootProps:{className:mi(h.loadPrevious,i({},h.disabledLoadPrevious,u)),disabled:u,onClick:a}})),Xe("ol",{className:h.list},n.map(function(e,t){return Xe(gi,s({},f,{templateKey:"item",rootTagName:"li",rootProps:{className:h.item},key:e.objectID,data:o({},e,{__hitIndex:t})}))})),Xe(gi,s({},f,{templateKey:"showMoreText",rootTagName:"button",rootProps:{className:mi(h.loadMore,i({},h.disabledLoadMore,l)),disabled:l,onClick:c}})))}),qi={item:'<a class="{{cssClasses.link}}" href="{{url}}"><span class="{{cssClasses.label}}">{{label}}</span><span class="{{cssClasses.count}}">{{#helpers.formatNumber}}{{count}}{{/helpers.formatNumber}}</span></a>',showMoreText:"\n    {{#isShowingMore}}\n      Show less\n    {{/isShowingMore}}\n    {{^isShowingMore}}\n      Show more\n    {{/isShowingMore}}\n  "},Ui=le({name:"menu"}),Bi=Se("Menu"),Qi={reset:'\n<svg class="{{cssClasses.resetIcon}}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="10" height="10">\n  <path d="M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"></path>\n</svg>\n  ',submit:'\n<svg class="{{cssClasses.submitIcon}}" xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 40 40">\n  <path d="M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"></path>\n</svg>\n  ',loadingIndicator:'\n<svg class="{{cssClasses.loadingIcon}}" width="16" height="16" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" stroke="#444">\n  <g fill="none" fillRule="evenodd">\n    <g transform="translate(1 1)" strokeWidth="2">\n      <circle strokeOpacity=".5" cx="18" cy="18" r="18" />\n      <path d="M36 18c0-9.94-8.06-18-18-18">\n        <animateTransform\n          attributeName="transform"\n          type="rotate"\n          from="0 18 18"\n          to="360 18 18"\n          dur="1s"\n          repeatCount="indefinite"\n        />\n      </path>\n    </g>\n  </g>\n</svg>\n  '},$i={item:'<label class="{{cssClasses.label}}">\n  <input type="checkbox"\n         class="{{cssClasses.checkbox}}"\n         value="{{value}}"\n         {{#isRefined}}checked{{/isRefined}} />\n  <span class="{{cssClasses.labelText}}">{{#isFromSearch}}{{{highlighted}}}{{/isFromSearch}}{{^isFromSearch}}{{highlighted}}{{/isFromSearch}}</span>\n  <span class="{{cssClasses.count}}">{{#helpers.formatNumber}}{{count}}{{/helpers.formatNumber}}</span>\n</label>',showMoreText:"\n    {{#isShowingMore}}\n      Show less\n    {{/isShowingMore}}\n    {{^isShowingMore}}\n      Show more\n    {{/isShowingMore}}\n    ",searchableNoResults:"No results",searchableReset:Qi.reset,searchableSubmit:Qi.submit,searchableLoadingIndicator:Qi.loadingIndicator},Vi=le({name:"refinement-list"}),Wi=Se("RefinementList"),Ki=Se("SearchBox"),zi={item:'<label class="{{cssClasses.label}}">\n  <input type="radio" class="{{cssClasses.radio}}" name="{{attribute}}"{{#isRefined}} checked{{/isRefined}} />\n  <span class="{{cssClasses.labelText}}">{{label}}</span>\n</label>'},Ji=le({name:"numeric-menu"}),Xi=Se("NumericMenu"),Gi=function(){function e(){var n,r;t(this,e);for(var s=arguments.length,a=new Array(s),o=0;s>o;o++)a[o]=arguments[o];return i(f(r=d(this,(n=u(e)).call.apply(n,[this].concat(a)))),"handleClick",function(e,t){B(t)||(t.preventDefault(),r.props.setCurrentPage(e))}),r}return c(e,Ze),r(e,[{key:"pageLink",value:function(e){var t=e.label,n=e.ariaLabel,r=e.pageNumber,i=e.additionalClassName,s=void 0===i?null:i,a=e.isDisabled,o=void 0!==a&&a,c=e.isSelected,u=void 0!==c&&c,l=e.createURL,h={item:mi(this.props.cssClasses.item,s),link:this.props.cssClasses.link};o?h.item=mi(h.item,this.props.cssClasses.disabledItem):u&&(h.item=mi(h.item,this.props.cssClasses.selectedItem));var f=l&&!o?l(r):"#";return Xe(nn,{ariaLabel:n,cssClasses:h,handleClick:this.handleClick,isDisabled:o,key:t+r+n,label:t,pageNumber:r,url:f})}},{key:"previousPageLink",value:function(e){var t=e.isFirstPage,n=e.currentPage,r=e.createURL;return this.pageLink({ariaLabel:"Previous",additionalClassName:this.props.cssClasses.previousPageItem,isDisabled:t,label:this.props.templates.previous,pageNumber:n-1,createURL:r})}},{key:"nextPageLink",value:function(e){var t=e.isLastPage,n=e.currentPage,r=e.createURL;return this.pageLink({ariaLabel:"Next",additionalClassName:this.props.cssClasses.nextPageItem,isDisabled:t,label:this.props.templates.next,pageNumber:n+1,createURL:r})}},{key:"firstPageLink",value:function(e){var t=e.isFirstPage,n=e.createURL;return this.pageLink({ariaLabel:"First",additionalClassName:this.props.cssClasses.firstPageItem,isDisabled:t,label:this.props.templates.first,pageNumber:0,createURL:n})}},{key:"lastPageLink",value:function(e){var t=e.isLastPage,n=e.nbPages,r=e.createURL;return this.pageLink({ariaLabel:"Last",additionalClassName:this.props.cssClasses.lastPageItem,isDisabled:t,label:this.props.templates.last,pageNumber:n-1,createURL:r})}},{key:"pages",value:function(e){var t=this,n=e.currentPage,r=e.pages,i=e.createURL;return r.map(function(e){return t.pageLink({ariaLabel:e+1,additionalClassName:t.props.cssClasses.pageItem,isSelected:e===n,label:e+1,pageNumber:e,createURL:i})})}},{key:"render",value:function(){return Xe("div",{className:mi(this.props.cssClasses.root,i({},this.props.cssClasses.noRefinementRoot,this.props.nbPages<=1))},Xe("ul",{className:this.props.cssClasses.list},this.props.showFirst&&this.firstPageLink(this.props),this.props.showPrevious&&this.previousPageLink(this.props),this.pages(this.props),this.props.showNext&&this.nextPageLink(this.props),this.props.showLast&&this.lastPageLink(this.props)))}}]),e}();Gi.defaultProps={nbHits:0,currentPage:0,nbPages:0};var Yi=le({name:"pagination"}),Zi=Se("Pagination"),es={previous:"‹",next:"›",first:"«",last:"»"},ts=function(){function e(n){var r;return t(this,e),i(f(r=d(this,u(e).call(this,n))),"onInput",function(e){return function(t){r.setState(i({},e,t.currentTarget.value))}}),i(f(r),"onSubmit",function(e){e.preventDefault(),r.props.refine([r.state.min&&Number(r.state.min),r.state.max&&Number(r.state.max)])}),r.state={min:n.values.min,max:n.values.max},r}return c(e,Ze),r(e,[{key:"componentWillReceiveProps",value:function(e){this.setState({min:e.values.min,max:e.values.max})}},{key:"render",value:function(){var e=this.state,t=e.min,n=e.max,r=this.props,a=r.min,o=r.max,c=r.step,u=r.cssClasses,l=r.templateProps,h=a>=o,f=Boolean(t||n);return Xe("div",{className:mi(u.root,i({},u.noRefinement,!f))},Xe("form",{className:u.form,onSubmit:this.onSubmit},Xe("label",{className:u.label},Xe("input",{className:mi(u.input,u.inputMin),type:"number",min:a,max:o,step:c,value:null!=t?t:"",onInput:this.onInput("min"),placeholder:a,disabled:h})),Xe(gi,s({},l,{templateKey:"separatorText",rootTagName:"span",rootProps:{className:u.separator}})),Xe("label",{className:u.label},Xe("input",{className:mi(u.input,u.inputMax),type:"number",min:a,max:o,step:c,value:null!=n?n:"",onInput:this.onInput("max"),placeholder:o,disabled:h})),Xe(gi,s({},l,{templateKey:"submitText",rootTagName:"button",rootProps:{type:"submit",className:u.submit,disabled:h}}))))}}]),e}(),ns=le({name:"range-input"}),rs=Se("RangeInput"),is=le({name:"search-box"}),ss=Se("SearchBox"),as=40,os=35,cs=27,us=36,ls=37,hs=34,fs=33,ds=39,ps=38,ms=100,gs=function(){function e(){return t(this,e),d(this,u(e).apply(this,arguments))}return c(e,Ze),r(e,[{key:"render",value:function(){return Xe("button",s({},this.props,{type:"button"}))}}]),e}(),vs=Xe("div",{className:"rheostat-background"}),ys=function(){function e(n){var r;return t(this,e),i(f(r=d(this,u(e).call(this,n))),"state",{className:an(r.props),handlePos:r.props.values.map(function(e){return rn(e,r.props.min,r.props.max)}),handleDimensions:0,mousePos:null,sliderBox:{},slidingIndex:null,values:r.props.values}),r.getPublicState=r.getPublicState.bind(f(r)),r.getSliderBoundingBox=r.getSliderBoundingBox.bind(f(r)),r.getProgressStyle=r.getProgressStyle.bind(f(r)),r.getMinValue=r.getMinValue.bind(f(r)),r.getMaxValue=r.getMaxValue.bind(f(r)),r.getHandleDimensions=r.getHandleDimensions.bind(f(r)),r.getClosestSnapPoint=r.getClosestSnapPoint.bind(f(r)),r.getSnapPosition=r.getSnapPosition.bind(f(r)),r.getNextPositionForKey=r.getNextPositionForKey.bind(f(r)),r.getNextState=r.getNextState.bind(f(r)),r.handleClick=r.handleClick.bind(f(r)),r.getClosestHandle=r.getClosestHandle.bind(f(r)),r.setStartSlide=r.setStartSlide.bind(f(r)),r.startMouseSlide=r.startMouseSlide.bind(f(r)),r.startTouchSlide=r.startTouchSlide.bind(f(r)),r.handleMouseSlide=r.handleMouseSlide.bind(f(r)),r.handleTouchSlide=r.handleTouchSlide.bind(f(r)),r.handleSlide=r.handleSlide.bind(f(r)),r.endSlide=r.endSlide.bind(f(r)),r.handleKeydown=r.handleKeydown.bind(f(r)),r.validatePosition=r.validatePosition.bind(f(r)),r.validateValues=r.validateValues.bind(f(r)),r.canMove=r.canMove.bind(f(r)),r.fireChangeEvent=r.fireChangeEvent.bind(f(r)),r.slideTo=r.slideTo.bind(f(r)),r.updateNewValues=r.updateNewValues.bind(f(r)),r}return c(e,Ze),r(e,[{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.className,r=t.disabled,i=t.min,s=t.max,a=t.orientation,o=this.state,c=o.values,u=o.slidingIndex,l=e.min!==i||e.max!==s,h=c.length!==e.values.length||c.some(function(t,n){return e.values[n]!==t}),f=e.className!==n||e.orientation!==a,d=e.disabled&&!r;f&&this.setState({className:an(e)}),(l||h)&&this.updateNewValues(e),d&&null!==u&&this.endSlide()}},{key:"getPublicState",value:function(){var e=this.props,t=e.min;return{max:e.max,min:t,values:this.state.values}}},{key:"getSliderBoundingBox",value:function(){var e=this.rheostat.getDOMNode?this.rheostat.getDOMNode():this.rheostat,t=e.getBoundingClientRect();return{height:t.height||e.clientHeight,left:t.left,top:t.top,width:t.width||e.clientWidth}}},{key:"getProgressStyle",value:function(e){var t=this.state.handlePos,n=t[e];if(0===e)return"vertical"===this.props.orientation?{height:"".concat(n,"%"),top:0}:{left:0,width:"".concat(n,"%")};var r=t[e-1],i=n-r;return"vertical"===this.props.orientation?{height:"".concat(i,"%"),top:"".concat(r,"%")}:{left:"".concat(r,"%"),width:"".concat(i,"%")}}},{key:"getMinValue",value:function(e){return this.state.values[e-1]?Math.max(this.props.min,this.state.values[e-1]):this.props.min}},{key:"getMaxValue",value:function(e){return this.state.values[e+1]?Math.min(this.props.max,this.state.values[e+1]):this.props.max}},{key:"getHandleDimensions",value:function(e,t){var n=e.currentTarget||null;return n?"vertical"===this.props.orientation?n.clientHeight/t.height*ms/2:n.clientWidth/t.width*ms/2:0}},{key:"getClosestSnapPoint",value:function(e){return this.props.snapPoints.length?this.props.snapPoints.reduce(function(t,n){return Math.abs(t-e)<Math.abs(n-e)?t:n}):e}},{key:"getSnapPosition",value:function(e){if(!this.props.snap)return e;var t=this.props,n=t.max,r=t.min,i=sn(e,r,n);return rn(this.getClosestSnapPoint(i),r,n)}},{key:"getNextPositionForKey",value:function(e,t){var n,r=this.state,s=r.handlePos,a=r.values,o=this.props,c=o.max,u=o.min,l=o.snapPoints,h=this.props.snap,f=a[e],d=s[e],p=d,m=1;c>=100?d=Math.round(d):m=100/(c-u);var g=null;h&&(g=l.indexOf(this.getClosestSnapPoint(a[e])));var v=(i(n={},ls,function(e){return-1*e}),i(n,ds,function(e){return e}),i(n,ps,function(e){return e}),i(n,as,function(e){return-1*e}),i(n,hs,function(e){return e>1?-e:-10*e}),i(n,fs,function(e){return e>1?e:10*e}),n);if(Object.prototype.hasOwnProperty.call(v,t))d+=v[t](m),h&&(d>p?g<l.length-1&&(f=l[g+1]):g>0&&(f=l[g-1]));else if(t===us)d=0,h&&(f=l[0]);else{if(t!==os)return null;d=ms,h&&(f=l[l.length-1])}return h?rn(f,u,c):d}},{key:"getNextState",value:function(e,t){var n=this.state.handlePos,r=this.props,i=r.max,s=r.min,a=this.validatePosition(e,t),o=n.map(function(t,n){return n===e?a:t});return{handlePos:o,values:o.map(function(e){return sn(e,s,i)})}}},{key:"getClosestHandle",value:function(e){var t=this.state.handlePos;return t.reduce(function(n,r,i){return Math.abs(t[i]-e)<Math.abs(t[n]-e)?i:n},0)}},{key:"setStartSlide",value:function(e,t,n){var r=this.getSliderBoundingBox();this.setState({handleDimensions:this.getHandleDimensions(e,r),mousePos:{x:t,y:n},sliderBox:r,slidingIndex:on(e)})}},{key:"startMouseSlide",value:function(e){this.setStartSlide(e,e.clientX,e.clientY),"function"==typeof document.addEventListener?(document.addEventListener("mousemove",this.handleMouseSlide,!1),document.addEventListener("mouseup",this.endSlide,!1)):(document.attachEvent("onmousemove",this.handleMouseSlide),document.attachEvent("onmouseup",this.endSlide)),cn(e)}},{key:"startTouchSlide",value:function(e){if(!(1<e.changedTouches.length)){var t=e.changedTouches[0];this.setStartSlide(e,t.clientX,t.clientY),document.addEventListener("touchmove",this.handleTouchSlide,!1),document.addEventListener("touchend",this.endSlide,!1),this.props.onSliderDragStart&&this.props.onSliderDragStart(),cn(e)}}},{key:"handleMouseSlide",value:function(e){null!==this.state.slidingIndex&&(this.handleSlide(e.clientX,e.clientY),cn(e))}},{key:"handleTouchSlide",value:function(e){if(null!==this.state.slidingIndex)if(1<e.changedTouches.length)this.endSlide();else{var t=e.changedTouches[0];this.handleSlide(t.clientX,t.clientY),cn(e)}}},{key:"handleSlide",value:function(e,t){var n=this.state,r=n.slidingIndex,i=n.sliderBox,s="vertical"===this.props.orientation?(t-i.top)/i.height*ms:(e-i.left)/i.width*ms;this.slideTo(r,s),this.canMove(r,s)&&(this.setState({x:e,y:t}),this.props.onSliderDragMove&&this.props.onSliderDragMove())}},{key:"endSlide",value:function(){var e=this,t=this.state.slidingIndex;if(this.setState({slidingIndex:null}),"function"==typeof document.removeEventListener?(document.removeEventListener("mouseup",this.endSlide,!1),document.removeEventListener("touchend",this.endSlide,!1),document.removeEventListener("touchmove",this.handleTouchSlide,!1),document.removeEventListener("mousemove",this.handleMouseSlide,!1)):(document.detachEvent("onmousemove",this.handleMouseSlide),document.detachEvent("onmouseup",this.endSlide)),this.props.onSliderDragEnd&&this.props.onSliderDragEnd(),this.props.snap){var n=this.getSnapPosition(this.state.handlePos[t]);this.slideTo(t,n,function(){return e.fireChangeEvent()})}else this.fireChangeEvent()}},{key:"handleClick",value:function(e){var t=this;if(!e.target.getAttribute("data-handle-key")){var n=this.getSliderBoundingBox(),r=("vertical"===this.props.orientation?(e.clientY-n.top)/n.height:(e.clientX-n.left)/n.width)*ms,i=this.getClosestHandle(r),s=this.getSnapPosition(r);this.slideTo(i,s,function(){return t.fireChangeEvent()}),this.props.onClick&&this.props.onClick()}}},{key:"handleKeydown",value:function(e){var t=this,n=on(e);if(e.keyCode!==cs){var r=this.getNextPositionForKey(n,e.keyCode);null!==r&&(this.canMove(n,r)&&(this.slideTo(n,r,function(){return t.fireChangeEvent()}),this.props.onKeyPress&&this.props.onKeyPress()),cn(e))}else e.currentTarget.blur()}},{key:"validatePosition",value:function(e,t){var n=this.state,r=n.handlePos,i=n.handleDimensions;return Math.max(Math.min(t,void 0!==r[e+1]?r[e+1]-i:ms),void 0!==r[e-1]?r[e-1]+i:0)}},{key:"validateValues",value:function(e,t){var n=t||this.props,r=n.max,i=n.min;return e.map(function(e,t,n){var s=Math.max(Math.min(e,r),i);return n.length&&s<n[t-1]?n[t-1]:s})}},{key:"canMove",value:function(e,t){var n=this.state,r=n.handlePos,i=n.handleDimensions;return!(0>t||t>ms||(void 0!==r[e+1]?r[e+1]-i:1/0)<t||t<(void 0!==r[e-1]?r[e-1]+i:-1/0))}},{key:"fireChangeEvent",value:function(){var e=this.props.onChange;e&&e(this.getPublicState())}},{key:"slideTo",value:function(e,t,n){var r=this,i=this.getNextState(e,t);this.setState(i,function(){var e=r.props.onValuesUpdated;e&&e(r.getPublicState()),n&&n()})}},{key:"updateNewValues",value:function(e){var t=this;if(null===this.state.slidingIndex){var n=e.max,r=e.min,i=e.values,s=this.validateValues(i,e);this.setState({handlePos:s.map(function(e){return rn(e,r,n)}),values:s},function(){return t.fireChangeEvent()})}}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.disabled,i=t.handle,s=t.max,a=t.min,o=t.orientation,c=t.pitComponent,u=t.pitPoints,l=t.progressBar,h=this.state,f=h.className,d=h.handlePos,p=h.values;return Xe("div",{className:f,ref:function(t){e.rheostat=t},onClick:!r&&this.handleClick,style:{position:"relative"}},vs,d.map(function(t,n){var s="vertical"===o?{top:"".concat(t,"%"),position:"absolute"}:{left:"".concat(t,"%"),position:"absolute"};return Xe(i,{"aria-valuemax":e.getMaxValue(n),"aria-valuemin":e.getMinValue(n),"aria-valuenow":p[n],"aria-disabled":r,"data-handle-key":n,className:"rheostat-handle",key:"handle-".concat(n),onClick:e.killEvent,onKeyDown:!r&&e.handleKeydown,onMouseDown:!r&&e.startMouseSlide,onTouchStart:!r&&e.startTouchSlide,role:"slider",style:s,tabIndex:0})}),d.map(function(t,n,r){return 0===n&&1<r.length?null:Xe(l,{className:"rheostat-progress",key:"progress-bar-".concat(n),style:e.getProgressStyle(n)})}),c&&u.map(function(e){var t=rn(e,a,s),n="vertical"===o?{top:"".concat(t,"%"),position:"absolute"}:{left:"".concat(t,"%"),position:"absolute"};return Xe(c,{key:"pit-".concat(e),style:n},e)}),n)}}]),e}();i(ys,"defaultProps",{className:"",children:null,disabled:!1,handle:gs,max:ms,min:0,onClick:null,onChange:null,onKeyPress:null,onSliderDragEnd:null,onSliderDragMove:null,onSliderDragStart:null,onValuesUpdated:null,orientation:"horizontal",pitComponent:null,pitPoints:[],progressBar:"div",snap:!1,snapPoints:[],values:[0]});var bs,ws,Rs=function(){function e(){var n,r;t(this,e);for(var a=arguments.length,o=new Array(a),c=0;a>c;c++)o[c]=arguments[c];return i(f(r=d(this,(n=u(e)).call.apply(n,[this].concat(o)))),"handleChange",function(e){var t=e.values;r.isDisabled||r.props.refine(t)}),i(f(r),"createHandleComponent",function(e){return function(t){var n=Math.round(100*parseFloat(t["aria-valuenow"]))/100,r=e&&e.format?e.format(n):n;return Xe("div",s({},t,{className:mi(t.className,{"rheostat-handle-lower":0===t["data-handle-key"],"rheostat-handle-upper":1===t["data-handle-key"]})}),e&&Xe("div",{className:"rheostat-tooltip"},r))}}),r}return c(e,Ze),r(e,[{key:"computeDefaultPitPoints",value:function(e){var t=e.min,n=e.max,r=(n-t)/34;return[t].concat(m(ie({end:33}).map(function(e){return t+r*(e+1)})),[n])}},{key:"computeSnapPoints",value:function(e){var t=e.min,n=e.max,r=e.step;return r?[].concat(m(ie({start:t,end:n,step:r})),[n]):void 0}},{key:"render",value:function(){var e=this.props,t=e.tooltips,n=e.step,r=e.pips,s=e.values,a=e.cssClasses,o=this.isDisabled?{min:this.props.min,max:this.props.max+.001}:this.props,c=o.min,u=o.max,l=this.computeSnapPoints({min:c,max:u,step:n}),h=!1===r?[]:this.computeDefaultPitPoints({min:c,max:u});return Xe("div",{className:mi(a.root,i({},a.disabledRoot,this.isDisabled))},Xe(ys,{handle:this.createHandleComponent(t),onChange:this.handleChange,min:c,max:u,pitComponent:un,pitPoints:h,snap:!0,snapPoints:l,values:this.isDisabled?[c,u]:s,disabled:this.isDisabled}))}},{key:"isDisabled",get:function(){return this.props.min>=this.props.max}}]),e}(),xs=le({name:"range-slider"}),Ss=Se("RangeSlider"),_s=le({name:"sort-by"}),Ps=Se("SortBy"),Ts={item:'{{#count}}<a class="{{cssClasses.link}}" aria-label="{{value}} & up" href="{{href}}">{{/count}}{{^count}}<div class="{{cssClasses.link}}" aria-label="{{value}} & up" disabled>{{/count}}\n  {{#stars}}<svg class="{{cssClasses.starIcon}} {{#.}}{{cssClasses.fullStarIcon}}{{/.}}{{^.}}{{cssClasses.emptyStarIcon}}{{/.}}" aria-hidden="true" width="24" height="24">\n    {{#.}}<use xlink:href="#ais-RatingMenu-starSymbol"></use>{{/.}}{{^.}}<use xlink:href="#ais-RatingMenu-starEmptySymbol"></use>{{/.}}\n  </svg>{{/stars}}\n  <span class="{{cssClasses.label}}">& Up</span>\n  {{#count}}<span class="{{cssClasses.count}}">{{#helpers.formatNumber}}{{count}}{{/helpers.formatNumber}}</span>{{/count}}\n{{#count}}</a>{{/count}}{{^count}}</div>{{/count}}'},Fs=le({name:"rating-menu"}),Cs=Se("RatingMenu"),Ns=Xe("path",{d:"M12 .288l2.833 8.718h9.167l-7.417 5.389 2.833 8.718-7.416-5.388-7.417 5.388 2.833-8.718-7.416-5.389h9.167z"
  }),js=Xe("path",{d:"M12 6.76l1.379 4.246h4.465l-3.612 2.625 1.379 4.246-3.611-2.625-3.612 2.625 1.379-4.246-3.612-2.625h4.465l1.38-4.246zm0-6.472l-2.833 8.718h-9.167l7.416 5.389-2.833 8.718 7.417-5.388 7.416 5.388-2.833-8.718 7.417-5.389h-9.167l-2.833-8.718z"}),Es={text:"{{#hasNoResults}}No results{{/hasNoResults}}\n    {{#hasOneResult}}1 result{{/hasOneResult}}\n    {{#hasManyResults}}{{#helpers.formatNumber}}{{nbHits}}{{/helpers.formatNumber}} results{{/hasManyResults}} found in {{processingTimeMS}}ms"},ks=le({name:"stats"}),Is=Se("Stats"),As={labelText:"{{name}}"},Os=le({name:"toggle-refinement"}),Ls=Se("ToggleRefinement"),Ms=le({name:"analytics"}),Ds={home:"Home",separator:">"},Hs=le({name:"breadcrumb"}),qs=Se("Breadcrumb"),Us={item:"{{label}} ({{#helpers.formatNumber}}{{count}}{{/helpers.formatNumber}})",defaultOption:"See all"},Bs=le({name:"menu-select"}),Qs=Se("MenuSelect"),$s=Xe("path",{fill:"#5468FF",d:"M78.99.94h16.6a2.97 2.97 0 0 1 2.96 2.96v16.6a2.97 2.97 0 0 1-2.97 2.96h-16.6a2.97 2.97 0 0 1-2.96-2.96V3.9A2.96 2.96 0 0 1 79 .94"}),Vs=Xe("path",{fill:"#FFF",d:"M89.63 5.97v-.78a.98.98 0 0 0-.98-.97h-2.28a.98.98 0 0 0-.97.97V6c0 .09.08.15.17.13a7.13 7.13 0 0 1 3.9-.02c.08.02.16-.04.16-.13m-6.25 1L83 6.6a.98.98 0 0 0-1.38 0l-.46.46a.97.97 0 0 0 0 1.38l.38.39c.06.06.15.04.2-.02a7.49 7.49 0 0 1 1.63-1.62c.07-.04.08-.14.02-.2m4.16 2.45v3.34c0 .1.1.17.2.12l2.97-1.54c.06-.03.08-.12.05-.18a3.7 3.7 0 0 0-3.08-1.87c-.07 0-.14.06-.14.13m0 8.05a4.49 4.49 0 1 1 0-8.98 4.49 4.49 0 0 1 0 8.98m0-10.85a6.37 6.37 0 1 0 0 12.74 6.37 6.37 0 0 0 0-12.74"}),Ws=Se("PoweredBy"),Ks=le({name:"powered-by"}),zs=[],Js=nr.__r;nr.__r=function(e){Js&&Js(e),bs=0,(ws=e.__c).__H&&(ws.__H.t=bn(ws.__H.t))};var Xs=nr.diffed;nr.diffed=function(e){Xs&&Xs(e);var t=e.__c;if(t){var n=t.__H;n&&(n.u=(n.u.some(function(e){e.ref&&(e.ref.current=e.createHandle())}),[]),n.i=bn(n.i))}};var Gs=nr.unmount;nr.unmount=function(e){Gs&&Gs(e);var t=e.__c;if(t){var n=t.__H;n&&n.o.forEach(function(e){return e.l&&e.l()})}};var Ys=function(){};if("undefined"!=typeof window){var Zs=nr.requestAnimationFrame;Ys=function(e){(!e.s&&(e.s=!0)&&1===zs.push(e)||Zs!==nr.requestAnimationFrame)&&(Zs=nr.requestAnimationFrame,(nr.requestAnimationFrame||function(e){function t(){clearTimeout(n),cancelAnimationFrame(r),setTimeout(e)}var n=setTimeout(t,100),r=requestAnimationFrame(t)})(yn))}}var ea=le({name:"panel"}),ta=Se("Panel"),na={buttonText:function(e){var t=e.status,n=e.errorCode,r=e.isListening;return'<svg\n       xmlns="http://www.w3.org/2000/svg"\n       width="16"\n       height="16"\n       viewBox="0 0 24 24"\n       fill="none"\n       stroke="currentColor"\n       stroke-width="2"\n       stroke-linecap="round"\n       stroke-linejoin="round"\n     >\n       '.concat(function(e,t,n){return"error"===e&&"not-allowed"===t?'<line x1="1" y1="1" x2="23" y2="23"></line>\n            <path d="M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"></path>\n            <path d="M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"></path>\n            <line x1="12" y1="19" x2="12" y2="23"></line>\n            <line x1="8" y1="23" x2="16" y2="23"></line>':'<path\n            d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"\n            fill="'.concat(n?"currentColor":"none",'">\n          </path>\n          <path d="M19 10v2a7 7 0 0 1-14 0v-2"></path>\n          <line x1="12" y1="19" x2="12" y2="23"></line>\n          <line x1="8" y1="23" x2="16" y2="23"></line>')}(t,n,r),"\n     </svg>")},status:"<p>{{transcript}}</p>"},ra=le({name:"voice-search"}),ia=Se("VoiceSearch"),sa=le({name:"query-rule-custom-data"}),aa=Se("QueryRuleCustomData"),oa=le({name:"query-rule-context"}),ca=Object.freeze({__proto__:null,clearRefinements:function(e){var t=e||{},n=t.container,r=t.templates,i=void 0===r?vi:r,s=t.includedAttributes,a=t.excludedAttributes,o=t.transformItems,c=t.cssClasses,u=void 0===c?{}:c;if(!n)throw new Error(yi("The `container` option is required."));var l=U(n),h={root:mi(bi(),u.root),button:mi(bi({descendantName:"button"}),u.button),disabledButton:mi(bi({descendantName:"button",modifierName:"disabled"}),u.disabledButton)},f=function(e){var t=e.containerNode,n=e.cssClasses,r=e.renderState,i=e.templates;return function(e,s){var a=e.refine,o=e.hasRefinements,c=e.instantSearchInstance;s?r.templateProps=$({defaultTemplates:vi,templatesConfig:c.templatesConfig,templates:i}):pt(Xe($t,{refine:a,cssClasses:n,hasRefinements:o,templateProps:r.templateProps}),t)}}({containerNode:l,cssClasses:h,renderState:{},templates:i});return De(f,function(){return pt(null,l)})({includedAttributes:s,excludedAttributes:a,transformItems:o})},configure:function(e){return Mt(ee)({searchParameters:e})},EXPERIMENTAL_configureRelatedItems:function(e){return Ht(ee)(e)},currentRefinements:function(e){var t=e||{},n=t.container,r=t.includedAttributes,i=t.excludedAttributes,s=t.cssClasses,a=void 0===s?{}:s,o=t.transformItems;if(!n)throw new Error(wi("The `container` option is required."));var c=U(n),u={root:mi(Ri(),a.root),list:mi(Ri({descendantName:"list"}),a.list),item:mi(Ri({descendantName:"item"}),a.item),label:mi(Ri({descendantName:"label"}),a.label),category:mi(Ri({descendantName:"category"}),a.category),categoryLabel:mi(Ri({descendantName:"categoryLabel"}),a.categoryLabel),"delete":mi(Ri({descendantName:"delete"}),a["delete"])};return He(Wt,function(){return pt(null,c)})({container:c,cssClasses:u,includedAttributes:r,excludedAttributes:i,transformItems:o})},geoSearch:function(e){var n=0<arguments.length&&void 0!==e?e:{},s=n.initialZoom,a=void 0===s?1:s,l=n.initialPosition,p=void 0===l?{lat:0,lng:0}:l,m=n.templates,g=void 0===m?{}:m,v=n.cssClasses,y=void 0===v?{}:v,b=n.builtInMarker,w=void 0===b?{}:b,R=n.customHTMLMarker,x=n.enableRefine,S=void 0===x||x,_=n.enableClearMapRefinement,P=void 0===_||_,T=n.enableRefineControl,F=void 0===T||T,C=n.container,N=n.googleReference,j=h(n,["initialZoom","initialPosition","templates","cssClasses","builtInMarker","customHTMLMarker","enableRefine","enableClearMapRefinement","enableRefineControl","container","googleReference"]),E={createOptions:ee,events:{}},k={createOptions:ee,events:{}};if(!C)throw new Error(Si("The `container` option is required."));if(!N)throw new Error(Si("The `googleReference` option is required."));var I=U(C),A={root:mi(_i(),y.root),tree:_i({descendantName:"tree"}),map:mi(_i({descendantName:"map"}),y.map),control:mi(_i({descendantName:"control"}),y.control),label:mi(_i({descendantName:"label"}),y.label),selectedLabel:mi(_i({descendantName:"label",modifierName:"selected"}),y.selectedLabel),input:mi(_i({descendantName:"input"}),y.input),redo:mi(_i({descendantName:"redo"}),y.redo),disabledRedo:mi(_i({descendantName:"redo",modifierName:"disabled"}),y.disabledRedo),reset:mi(_i({descendantName:"reset"}),y.reset)},O=o({},xi,{},g),L=o({},E,{},w),M=(Boolean(R)||Boolean(g.HTMLMarker))&&o({},k,{},R),D=function(e){return function(){function n(r){var s,a=r.__id,o=r.position,c=r.map,l=r.template,h=r.className,p=r.anchor,m=void 0===p?{x:0,y:0}:p;return t(this,n),i(f(s=d(this,u(n).call(this))),"__id",void 0),i(f(s),"anchor",void 0),i(f(s),"offset",void 0),i(f(s),"listeners",void 0),i(f(s),"latLng",void 0),i(f(s),"element",void 0),s.__id=a,s.anchor=m,s.listeners={},s.latLng=new e.maps.LatLng(o),s.element=document.createElement("div"),s.element.className=h,s.element.style.position="absolute",s.element.innerHTML=l,s.setMap(c),s}return c(n,e.maps.OverlayView),r(n,[{key:"onAdd",value:function(){this.getPanes().overlayMouseTarget.appendChild(this.element);var e=this.element.getBoundingClientRect();this.offset={x:this.anchor.x+e.width/2,y:this.anchor.y+e.height},this.element.style.width="".concat(e.width,"px")}},{key:"draw",value:function(){var e=this.getProjection().fromLatLngToDivPixel(this.latLng);this.element.style.left="".concat(Math.round(e.x-this.offset.x),"px"),this.element.style.top="".concat(Math.round(e.y-this.offset.y),"px"),this.element.style.zIndex=String(parseInt(this.element.style.top,10))}},{key:"onRemove",value:function(){var e=this;this.element&&(this.element.parentNode.removeChild(this.element),Object.keys(this.listeners).forEach(function(t){e.element.removeEventListener(t,e.listeners[t])}),delete this.element,delete this.listeners)}},{key:"addListener",value:function(e,t){this.listeners[e]=t;var n=this.element;return n.addEventListener(e,t),{remove:function(){return n.removeEventListener(e,t)}}}},{key:"getPosition",value:function(){return this.latLng}}]),n}()}(N),H=M?function(e){var t=e.item,n=h(e,["item"]);return new D(o({},M.createOptions(t),{},n,{__id:t.objectID,position:t._geoloc,className:mi(_i({descendantName:"marker"})),template:W({templateKey:"HTMLMarker",templates:O,data:t})}))}:function(e){var t=e.item,n=h(e,["item"]);return new N.maps.Marker(o({},L.createOptions(t),{},n,{__id:t.objectID,position:t._geoloc}))},q=M||L;return At(Yt,function(){return pt(null,I)})(o({},j,{renderState:{},container:I,googleReference:N,initialZoom:a,initialPosition:p,templates:O,cssClasses:A,createMarker:H,markerOptions:q,enableRefine:S,enableClearMapRefinement:P,enableRefineControl:F}))},hierarchicalMenu:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.attributes,r=e.separator,i=e.rootPath,s=e.showParentLevel,a=e.limit,o=e.showMore,c=void 0!==o&&o,u=e.showMoreLimit,l=e.sortBy,h=e.transformItems,f=e.templates,d=void 0===f?Fi:f,p=e.cssClasses,m=void 0===p?{}:p;if(!t)throw new Error(Ci("The `container` option is required."));var g=U(t);return $e(function(e){var t=e.cssClasses,n=e.containerNode,r=e.showMore,i=e.templates,s=e.renderState;return function(e,a){var o=e.createURL,c=e.items,u=e.refine,l=e.instantSearchInstance,h=e.isShowingMore,f=e.toggleShowMore,d=e.canToggleShowMore;a?s.templateProps=$({defaultTemplates:Fi,templatesConfig:l.templatesConfig,templates:i}):pt(Xe(Ti,{createURL:o,cssClasses:t,facetValues:c,templateProps:s.templateProps,toggleRefinement:u,showMore:r,toggleShowMore:f,isShowingMore:h,canToggleShowMore:d}),n)}}({cssClasses:{root:mi(Ni(),m.root),noRefinementRoot:mi(Ni({modifierName:"noRefinement"}),m.noRefinementRoot),list:mi(Ni({descendantName:"list"}),m.list),childList:mi(Ni({descendantName:"list",modifierName:"child"}),m.childList),item:mi(Ni({descendantName:"item"}),m.item),selectedItem:mi(Ni({descendantName:"item",modifierName:"selected"}),m.selectedItem),parentItem:mi(Ni({descendantName:"item",modifierName:"parent"}),m.parentItem),link:mi(Ni({descendantName:"link"}),m.link),label:mi(Ni({descendantName:"label"}),m.label),count:mi(Ni({descendantName:"count"}),m.count),showMore:mi(Ni({descendantName:"showMore"}),m.showMore),disabledShowMore:mi(Ni({descendantName:"showMore",modifierName:"disabled"}),m.disabledShowMore)},containerNode:g,templates:d,showMore:c,renderState:{}}),function(){return pt(null,g)})({attributes:n,separator:r,rootPath:i,showParentLevel:s,limit:a,showMore:c,showMoreLimit:u,sortBy:l,transformItems:h})},hits:function(e){var t=e||{},n=t.container,r=t.escapeHTML,i=t.transformItems,s=t.templates,a=void 0===s?ji:s,o=t.cssClasses,c=void 0===o?{}:o;if(!n)throw new Error(Ei("The `container` option is required."));var u=U(n),l={root:mi(ki(),c.root),emptyRoot:mi(ki({modifierName:"empty"}),c.emptyRoot),list:mi(ki({descendantName:"list"}),c.list),item:mi(ki({descendantName:"item"}),c.item)},h=function(e){var t=e.renderState,n=e.cssClasses,r=e.containerNode,i=e.templates;return function(e,s){var a=e.hits,o=e.results,c=e.instantSearchInstance,u=e.insights;s?t.templateProps=$({defaultTemplates:ji,templatesConfig:c.templatesConfig,templates:i}):pt(Xe(Ii,{cssClasses:n,hits:a,results:o,templateProps:t.templateProps,insights:u}),r)}}({containerNode:u,cssClasses:l,renderState:{},templates:a});return Ke(Ve)(h,function(){return pt(null,u)})({escapeHTML:r,transformItems:i})},hitsPerPage:function(e){var t=e||{},n=t.container,r=t.items,i=t.cssClasses,s=void 0===i?{}:i,a=t.transformItems;if(!n)throw new Error(Ai("The `container` option is required."));var o=U(n),c={root:mi(Oi(),s.root),select:mi(Oi({descendantName:"select"}),s.select),option:mi(Oi({descendantName:"option"}),s.option)},u=function(e){var t=e.containerNode,n=e.cssClasses;return function(e,r){var i=e.items,s=e.refine;if(!r){var a=(K(i,function(e){return e.isRefined})||{}).value;pt(Xe("div",{className:n.root},Xe(tn,{cssClasses:n,currentValue:a,options:i,setValue:s})),t)}}}({containerNode:o,cssClasses:c});return gt(u,function(){return pt(null,o)})({items:r,transformItems:a})},infiniteHits:function(e){var t=0<arguments.length&&void 0!==e?e:{},n=t.container,r=t.escapeHTML,i=t.transformItems,s=t.templates,a=void 0===s?Li:s,o=t.cssClasses,c=void 0===o?{}:o,u=t.showPrevious,l=t.cache;if(!n)throw new Error(Mi("The `container` option is required."));var h=U(n),f={root:mi(Di(),c.root),emptyRoot:mi(Di({modifierName:"empty"}),c.emptyRoot),item:mi(Di({descendantName:"item"}),c.item),list:mi(Di({descendantName:"list"}),c.list),loadPrevious:mi(Di({descendantName:"loadPrevious"}),c.loadPrevious),disabledLoadPrevious:mi(Di({descendantName:"loadPrevious",modifierName:"disabled"}),c.disabledLoadPrevious),loadMore:mi(Di({descendantName:"loadMore"}),c.loadMore),disabledLoadMore:mi(Di({descendantName:"loadMore",modifierName:"disabled"}),c.disabledLoadMore)},d=function(e){var t=e.cssClasses,n=e.containerNode,r=e.renderState,i=e.templates,s=e.showPrevious;return function(e,a){var o=e.hits,c=e.results,u=e.showMore,l=e.showPrevious,h=e.isFirstPage,f=e.isLastPage,d=e.instantSearchInstance,p=e.insights;a?r.templateProps=$({defaultTemplates:Li,templatesConfig:d.templatesConfig,templates:i}):pt(Xe(Hi,{cssClasses:t,hits:o,results:c,hasShowPrevious:s,showPrevious:l,showMore:u,templateProps:r.templateProps,isFirstPage:h,isLastPage:f,insights:p}),n)}}({containerNode:h,cssClasses:f,templates:a,showPrevious:u,renderState:{}});return Ke(bt)(d,function(){return pt(null,h)})({escapeHTML:r,transformItems:i,showPrevious:u,cache:l})},menu:function(e){var t=e.container,n=e.attribute,r=e.sortBy,i=e.limit,s=e.showMore,a=e.showMoreLimit,c=e.cssClasses,u=void 0===c?{}:c,l=e.templates,h=void 0===l?qi:l,f=e.transformItems;if(!t)throw new Error(Ui("The `container` option is required."));var d=U(t),p={root:mi(Bi(),u.root),noRefinementRoot:mi(Bi({modifierName:"noRefinement"}),u.noRefinementRoot),list:mi(Bi({descendantName:"list"}),u.list),item:mi(Bi({descendantName:"item"}),u.item),selectedItem:mi(Bi({descendantName:"item",modifierName:"selected"}),u.selectedItem),link:mi(Bi({descendantName:"link"}),u.link),label:mi(Bi({descendantName:"label"}),u.label),count:mi(Bi({descendantName:"count"}),u.count),showMore:mi(Bi({descendantName:"showMore"}),u.showMore),disabledShowMore:mi(Bi({descendantName:"showMore",modifierName:"disabled"}),u.disabledShowMore)};return wt(function(e){var t=e.containerNode,n=e.cssClasses,r=e.renderState,i=e.templates,s=e.showMore;return function(e,a){var c=e.refine,u=e.items,l=e.createURL,h=e.instantSearchInstance,f=e.isShowingMore,d=e.toggleShowMore,p=e.canToggleShowMore;if(a)r.templateProps=$({defaultTemplates:qi,templatesConfig:h.templatesConfig,templates:i});else{var m=u.map(function(e){return o({},e,{url:l(e.name)})});pt(Xe(Ti,{createURL:l,cssClasses:n,facetValues:m,showMore:s,templateProps:r.templateProps,toggleRefinement:c,toggleShowMore:d,isShowingMore:f,canToggleShowMore:p}),t)}}}({containerNode:d,cssClasses:p,renderState:{},templates:h,showMore:s}),function(){return pt(null,d)})({attribute:n,limit:i,showMore:s,showMoreLimit:a,sortBy:r,transformItems:f})},refinementList:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.attribute,r=e.operator,i=e.sortBy,s=e.limit,a=e.showMore,c=e.showMoreLimit,u=e.searchable,l=void 0!==u&&u,f=e.searchablePlaceholder,d=void 0===f?"Search...":f,p=e.searchableEscapeFacetValues,m=void 0===p||p,g=e.searchableIsAlwaysActive,v=void 0===g||g,y=e.cssClasses,b=void 0===y?{}:y,w=e.templates,R=void 0===w?$i:w,x=e.transformItems;if(!t)throw new Error(Vi("The `container` option is required."));var S=!!l&&Boolean(m),_=U(t),P=function(e){var t=o({},e,{submit:e.searchableSubmit,reset:e.searchableReset,loadingIndicator:e.searchableLoadingIndicator});return t.searchableReset,t.searchableSubmit,t.searchableLoadingIndicator,h(t,["searchableReset","searchableSubmit","searchableLoadingIndicator"])}(o({},$i,{},R)),T={root:mi(Wi(),b.root),noRefinementRoot:mi(Wi({modifierName:"noRefinement"}),b.noRefinementRoot),list:mi(Wi({descendantName:"list"}),b.list),item:mi(Wi({descendantName:"item"}),b.item),selectedItem:mi(Wi({descendantName:"item",modifierName:"selected"}),b.selectedItem),searchBox:mi(Wi({descendantName:"searchBox"}),b.searchBox),label:mi(Wi({descendantName:"label"}),b.label),checkbox:mi(Wi({descendantName:"checkbox"}),b.checkbox),labelText:mi(Wi({descendantName:"labelText"}),b.labelText),count:mi(Wi({descendantName:"count"}),b.count),noResults:mi(Wi({descendantName:"noResults"}),b.noResults),showMore:mi(Wi({descendantName:"showMore"}),b.showMore),disabledShowMore:mi(Wi({descendantName:"showMore",modifierName:"disabled"}),b.disabledShowMore),searchable:{root:mi(Ki(),b.searchableRoot),form:mi(Ki({descendantName:"form"}),b.searchableForm),input:mi(Ki({descendantName:"input"}),b.searchableInput),submit:mi(Ki({descendantName:"submit"}),b.searchableSubmit),submitIcon:mi(Ki({descendantName:"submitIcon"}),b.searchableSubmitIcon),reset:mi(Ki({descendantName:"reset"}),b.searchableReset),resetIcon:mi(Ki({descendantName:"resetIcon"}),b.searchableResetIcon),loadingIndicator:mi(Ki({descendantName:"loadingIndicator"}),b.searchableLoadingIndicator),loadingIcon:mi(Ki({descendantName:"loadingIcon"}),b.searchableLoadingIcon)}};return Ft(function(e){var t=e.containerNode,n=e.cssClasses,r=e.templates,i=e.renderState,s=e.showMore,a=e.searchable,o=e.searchablePlaceholder,c=e.searchableIsAlwaysActive;return function(e,u){var l=e.refine,h=e.items,f=e.createURL,d=e.searchForItems,p=e.isFromSearch,m=e.instantSearchInstance,g=e.toggleShowMore,v=e.isShowingMore,y=e.hasExhaustiveItems,b=e.canToggleShowMore;u?i.templateProps=$({templatesConfig:m.templatesConfig,templates:r}):pt(Xe(Ti,{createURL:f,cssClasses:n,facetValues:h,templateProps:i.templateProps,toggleRefinement:l,searchFacetValues:a?d:void 0,searchPlaceholder:o,searchIsAlwaysActive:c,isFromSearch:p,showMore:s&&!p&&0<h.length,toggleShowMore:g,isShowingMore:v,hasExhaustiveItems:y,canToggleShowMore:b}),t)}}({containerNode:_,cssClasses:T,templates:P,renderState:{},searchable:l,searchablePlaceholder:d,searchableIsAlwaysActive:v,showMore:a}),function(){return pt(null,_)})({attribute:n,operator:r,limit:s,showMore:a,showMoreLimit:c,sortBy:i,escapeFacetValues:S,transformItems:x})},numericMenu:function(e){var t=e||{},n=t.container,r=t.attribute,i=t.items,s=t.cssClasses,a=void 0===s?{}:s,o=t.templates,c=void 0===o?zi:o,u=t.transformItems;if(!n)throw new Error(Ji("The `container` option is required."));var l=U(n),h={root:mi(Xi(),a.root),noRefinementRoot:mi(Xi({modifierName:"noRefinement"}),a.noRefinementRoot),list:mi(Xi({descendantName:"list"}),a.list),item:mi(Xi({descendantName:"item"}),a.item),selectedItem:mi(Xi({descendantName:"item",modifierName:"selected"}),a.selectedItem),label:mi(Xi({descendantName:"label"}),a.label),radio:mi(Xi({descendantName:"radio"}),a.radio),labelText:mi(Xi({descendantName:"labelText"}),a.labelText)},f=function(e){var t=e.containerNode,n=e.attribute,r=e.cssClasses,i=e.renderState,s=e.templates;return function(e,a){var o=e.createURL,c=e.instantSearchInstance,u=e.refine,l=e.items;a?i.templateProps=$({defaultTemplates:zi,templatesConfig:c.templatesConfig,templates:s}):pt(Xe(Ti,{createURL:o,cssClasses:r,facetValues:l,templateProps:i.templateProps,toggleRefinement:u,attribute:n}),t)}}({containerNode:l,attribute:r,cssClasses:h,renderState:{},templates:c});return Rt(f,function(){return pt(null,l)})({attribute:r,items:i,transformItems:u})},pagination:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.templates,r=void 0===n?{}:n,i=e.cssClasses,s=void 0===i?{}:i,a=e.totalPages,c=e.padding,u=e.showFirst,l=void 0===u||u,h=e.showLast,f=void 0===h||h,d=e.showPrevious,p=void 0===d||d,m=e.showNext,g=void 0===m||m,v=e.scrollTo,y=void 0===v?"body":v;if(!t)throw new Error(Yi("The `container` option is required."));var b=U(t),w=!0===y?"body":y,R=!1!==w&&U(w),x={root:mi(Zi(),s.root),noRefinementRoot:mi(Zi({modifierName:"noRefinement"}),s.noRefinementRoot),list:mi(Zi({descendantName:"list"}),s.list),item:mi(Zi({descendantName:"item"}),s.item),firstPageItem:mi(Zi({descendantName:"item",modifierName:"firstPage"}),s.firstPageItem),lastPageItem:mi(Zi({descendantName:"item",modifierName:"lastPage"}),s.lastPageItem),previousPageItem:mi(Zi({descendantName:"item",modifierName:"previousPage"}),s.previousPageItem),nextPageItem:mi(Zi({descendantName:"item",modifierName:"nextPage"}),s.nextPageItem),pageItem:mi(Zi({descendantName:"item",modifierName:"page"}),s.pageItem),selectedItem:mi(Zi({descendantName:"item",modifierName:"selected"}),s.selectedItem),disabledItem:mi(Zi({descendantName:"item",modifierName:"disabled"}),s.disabledItem),link:mi(Zi({descendantName:"link"}),s.link)},S=o({},es,{},r);return Pt(function(e){var t=e.containerNode,n=e.cssClasses,r=e.templates,i=e.totalPages,s=e.showFirst,a=e.showLast,o=e.showPrevious,c=e.showNext,u=e.scrollToNode;return function(e,l){var h=e.createURL,f=e.currentRefinement,d=e.nbHits,p=e.nbPages,m=e.pages,g=e.isFirstPage,v=e.isLastPage,y=e.refine;l||pt(Xe(Gi,{createURL:h,cssClasses:n,currentPage:f,templates:r,nbHits:d,nbPages:p,pages:m,totalPages:i,isFirstPage:g,isLastPage:v,setCurrentPage:function(e){y(e),!1!==u&&u.scrollIntoView()},showFirst:s,showLast:a,showPrevious:o,showNext:c}),t)}}({containerNode:b,cssClasses:x,templates:S,showFirst:l,showLast:f,showPrevious:p,showNext:g,padding:c,scrollToNode:R}),function(){return pt(null,b)})({totalPages:a,padding:c})},rangeInput:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.attribute,r=e.min,i=e.max,s=e.precision,a=void 0===s?0:s,c=e.cssClasses,u=void 0===c?{}:c,l=e.templates,h=void 0===l?{}:l;if(!t)throw new Error(ns("The `container` option is required."));var f=U(t),d=o({separatorText:"to",submitText:"Go"},h),m={root:mi(rs(),u.root),noRefinement:mi(rs({modifierName:"noRefinement"})),form:mi(rs({descendantName:"form"}),u.form),label:mi(rs({descendantName:"label"}),u.label),input:mi(rs({descendantName:"input"}),u.input),inputMin:mi(rs({descendantName:"input",modifierName:"min"}),u.inputMin),inputMax:mi(rs({descendantName:"input",modifierName:"max"}),u.inputMax),separator:mi(rs({descendantName:"separator"}),u.separator),submit:mi(rs({descendantName:"submit"}),u.submit)};return o({},Tt(function(e){var t=e.containerNode,n=e.cssClasses,r=e.renderState,i=e.templates;return function(e,s){var a=e.refine,o=e.range,c=e.start,u=e.widgetParams,l=e.instantSearchInstance;if(s)r.templateProps=$({templatesConfig:l.templatesConfig,templates:i});else{var h=o.min,f=o.max,d=p(c,2),m=d[0],g=d[1],v=1/Math.pow(10,u.precision);pt(Xe(ts,{min:h,max:f,step:v,values:{min:m!==-1/0&&m!==h?m:void 0,max:g!==1/0&&g!==f?g:void 0},cssClasses:n,refine:a,templateProps:r.templateProps}),t)}}}({containerNode:f,cssClasses:m,templates:d,renderState:{}}),function(){return pt(null,f)})({attribute:n,min:r,max:i,precision:a}),{$$type:"ais.rangeInput"})},searchBox:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.placeholder,r=void 0===n?"":n,i=e.cssClasses,s=void 0===i?{}:i,a=e.autofocus,c=void 0!==a&&a,u=e.searchAsYouType,l=void 0===u||u,h=e.showReset,f=void 0===h||h,d=e.showSubmit,p=void 0===d||d,m=e.showLoadingIndicator,g=void 0===m||m,v=e.queryHook,y=e.templates;if(!t)throw new Error(is("The `container` option is required."));var b=U(t),w={root:mi(ss(),s.root),form:mi(ss({descendantName:"form"}),s.form),input:mi(ss({descendantName:"input"}),s.input),submit:mi(ss({descendantName:"submit"}),s.submit),submitIcon:mi(ss({descendantName:"submitIcon"}),s.submitIcon),reset:mi(ss({descendantName:"reset"}),s.reset),resetIcon:mi(ss({descendantName:"resetIcon"}),s.resetIcon),loadingIndicator:mi(ss({descendantName:"loadingIndicator"}),s.loadingIndicator),loadingIcon:mi(ss({descendantName:"loadingIcon"}),s.loadingIcon)};return Ct(function(e){var t=e.containerNode,n=e.cssClasses,r=e.placeholder,i=e.templates,s=e.autofocus,a=e.searchAsYouType,o=e.showReset,c=e.showSubmit,u=e.showLoadingIndicator;return function(e){var l=e.refine,h=e.query,f=e.isSearchStalled;pt(Xe(Pi,{query:h,placeholder:r,autofocus:s,refine:l,searchAsYouType:a,templates:i,showSubmit:c,showReset:o,showLoadingIndicator:u,isSearchStalled:f,cssClasses:n}),t)}}({containerNode:b,cssClasses:w,placeholder:r,templates:o({},Qi,{},y),autofocus:c,searchAsYouType:l,showReset:f,showSubmit:p,showLoadingIndicator:g}),function(){return pt(null,b)})({queryHook:v})},rangeSlider:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.attribute,r=e.min,i=e.max,s=e.cssClasses,a=void 0===s?{}:s,c=e.step,u=e.pips,l=void 0===u||u,h=e.precision,f=void 0===h?0:h,d=e.tooltips,m=void 0===d||d;if(!t)throw new Error(xs("The `container` option is required."));var g=U(t),v={root:mi(Ss(),a.root),disabledRoot:mi(Ss({modifierName:"disabled"}),a.disabledRoot)};return o({},Tt(function(e){var t=e.containerNode,n=e.cssClasses,r=e.pips,i=e.step,s=e.tooltips;return function(e,a){var o=e.refine,c=e.range,u=e.start;if(!a){var l=c.min,h=c.max,f=p(u,2),d=f[0],m=f[1],g=d===-1/0?l:d,v=m===1/0?h:m;pt(Xe(Rs,{cssClasses:n,refine:o,min:l,max:h,values:[g>h?h:g,l>v?l:v],tooltips:s,step:i,pips:r}),t)}}}({containerNode:g,step:c,pips:l,tooltips:m,renderState:{},cssClasses:v}),function(){return pt(null,g)})({attribute:n,min:r,max:i,precision:f}),{$$type:"ais.rangeSlider"})},sortBy:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.items,r=e.cssClasses,i=void 0===r?{}:r,s=e.transformItems;if(!t)throw new Error(_s("The `container` option is required."));var a=U(t),o={root:mi(Ps(),i.root),select:mi(Ps({descendantName:"select"}),i.select),option:mi(Ps({descendantName:"option"}),i.option)};return Nt(function(e){var t=e.containerNode,n=e.cssClasses;return function(e,r){var i=e.currentRefinement,s=e.options,a=e.refine;r||pt(Xe("div",{className:n.root},Xe(tn,{cssClasses:n,currentValue:i,options:s,setValue:a})),t)}}({containerNode:a,cssClasses:o}),function(){return pt(null,a)})({items:n,transformItems:s})},ratingMenu:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.attribute,r=e.max,i=void 0===r?5:r,s=e.cssClasses,a=void 0===s?{}:s,o=e.templates,c=void 0===o?Ts:o;if(!t)throw new Error(Fs("The `container` option is required."));var u=U(t),l={root:mi(Cs(),a.root),noRefinementRoot:mi(Cs({modifierName:"noRefinement"}),a.noRefinementRoot),list:mi(Cs({descendantName:"list"}),a.list),item:mi(Cs({descendantName:"item"}),a.item),selectedItem:mi(Cs({descendantName:"item",modifierName:"selected"}),a.selectedItem),disabledItem:mi(Cs({descendantName:"item",modifierName:"disabled"}),a.disabledItem),link:mi(Cs({descendantName:"link"}),a.link),starIcon:mi(Cs({descendantName:"starIcon"}),a.starIcon),fullStarIcon:mi(Cs({descendantName:"starIcon",modifierName:"full"}),a.fullStarIcon),emptyStarIcon:mi(Cs({descendantName:"starIcon",modifierName:"empty"}),a.emptyStarIcon),label:mi(Cs({descendantName:"label"}),a.label),count:mi(Cs({descendantName:"count"}),a.count)};return jt(function(e){var t=e.containerNode,n=e.cssClasses,r=e.templates,i=e.renderState;return function(e,s){var a=e.refine,o=e.items,c=e.createURL,u=e.instantSearchInstance;s?i.templateProps=$({defaultTemplates:Ts,templatesConfig:u.templatesConfig,templates:r}):pt(Xe(Ti,{createURL:c,cssClasses:n,facetValues:o,templateProps:i.templateProps,toggleRefinement:a},Xe("svg",{xmlns:"http://www.w3.org/2000/svg",style:"display:none;"},Xe("symbol",{id:Cs({descendantName:"starSymbol"}),viewBox:"0 0 24 24"},Ns),Xe("symbol",{id:Cs({descendantName:"starEmptySymbol"}),viewBox:"0 0 24 24"},js))),t)}}({containerNode:u,cssClasses:l,renderState:{},templates:c}),function(){return pt(null,u)})({attribute:n,max:i})},stats:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.cssClasses,r=void 0===n?{}:n,i=e.templates,s=void 0===i?Es:i;if(!t)throw new Error(ks("The `container` option is required."));var a=U(t),o={root:mi(Is(),r.root),text:mi(Is({descendantName:"text"}),r.text)};return Et(function(e){var t=e.containerNode,n=e.cssClasses,r=e.renderState,i=e.templates;return function(e,s){var a=e.hitsPerPage,o=e.nbHits,c=e.nbPages,u=e.page,l=e.processingTimeMS,h=e.query,f=e.instantSearchInstance;s?r.templateProps=$({defaultTemplates:Es,templatesConfig:f.templatesConfig,templates:i}):pt(Xe(ln,{cssClasses:n,hitsPerPage:a,nbHits:o,nbPages:c,page:u,processingTimeMS:l,query:h,templateProps:r.templateProps}),t)}}({containerNode:a,cssClasses:o,renderState:{},templates:s}),function(){return pt(null,a)})()},toggleRefinement:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.attribute,r=e.cssClasses,i=void 0===r?{}:r,s=e.templates,a=void 0===s?As:s,o=e.on,c=void 0===o||o,u=e.off;if(!t)throw new Error(Os("The `container` option is required."));var l=U(t),h={root:mi(Ls(),i.root),label:mi(Ls({descendantName:"label"}),i.label),checkbox:mi(Ls({descendantName:"checkbox"}),i.checkbox),labelText:mi(Ls({descendantName:"labelText"}),i.labelText)};return kt(function(e){var t=e.containerNode,n=e.cssClasses,r=e.renderState,i=e.templates;return function(e,s){var a=e.value,o=e.createURL,c=e.refine,u=e.instantSearchInstance;s?r.templateProps=$({defaultTemplates:As,templatesConfig:u.templatesConfig,templates:i}):pt(Xe(hn,{createURL:o,cssClasses:n,currentRefinement:a,templateProps:r.templateProps,refine:function(e){return c({isRefined:e})}}),t)}}({containerNode:l,cssClasses:h,renderState:{},templates:a}),function(){return pt(null,l)})({attribute:n,on:c,off:u})},analytics:function(e){function t(e){if(null!==e){var t=[],n=function(e){var t=[];for(var n in e)if(e.hasOwnProperty(n)){var r=e[n].join("+");t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(n),"_").concat(encodeURIComponent(r)))}return t.join("&")}(o({},e.state.disjunctiveFacetsRefinements,{},e.state.facetsRefinements,{},e.state.hierarchicalFacetsRefinements)),r=function(e){var t=[];for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(r.hasOwnProperty(">=")&&r.hasOwnProperty("<="))t.push(r[">="]&&r[">="][0]===r["<="]&&r["<="][0]?"".concat(n,"=").concat(n,"_").concat(r[">="]):"".concat(n,"=").concat(n,"_").concat(r[">="],"to").concat(r["<="]));else if(r.hasOwnProperty(">="))t.push("".concat(n,"=").concat(n,"_from").concat(r[">="]));else if(r.hasOwnProperty("<="))t.push("".concat(n,"=").concat(n,"_to").concat(r["<="]));else if(r.hasOwnProperty("=")){var i=[];for(var s in r["="])r["="].hasOwnProperty(s)&&i.push(r["="][s]);t.push("".concat(n,"=").concat(n,"_").concat(i.join("-")))}}return t.join("&")}(e.state.numericRefinements);""!==n&&t.push(n),""!==r&&t.push(r);var i=t.join("&"),a="Query: ".concat(e.state.query||"",", ").concat(i);!0===p&&(a+=", Page: ".concat(e.state.page||0)),v!==a&&(s(i,e.state,e.results),v=a)}}function n(){t(g)}function r(){t(g)}var i=e||{},s=i.pushFunction,a=i.delay,c=void 0===a?3e3:a,u=i.triggerOnUIInteraction,l=void 0!==u&&u,h=i.pushInitialSearch,f=void 0===h||h,d=i.pushPagination,p=void 0!==d&&d;if(!s)throw new Error(Ms("The `pushFunction` option is required."));var m,g=null,v="",y=!0;return!0===f&&(y=!1),{init:function(){!0===l&&(document.addEventListener("click",n),window.addEventListener("beforeunload",r))},render:function(e){var n=e.results,r=e.state;!0!==y?(g={results:n,state:r},m&&clearTimeout(m),m=window.setTimeout(function(){return t(g)},c)):y=!1},dispose:function(){!0===l&&(document.removeEventListener("click",n),window.removeEventListener("beforeunload",r))}}},breadcrumb:function(e){var t=e||{},n=t.container,r=t.attributes,i=t.separator,s=t.rootPath,a=t.transformItems,o=t.templates,c=void 0===o?Ds:o,u=t.cssClasses,l=void 0===u?{}:u;
  
  if(!n)throw new Error(Hs("The `container` option is required."));var h=U(n),f={root:mi(qs(),l.root),noRefinementRoot:mi(qs({modifierName:"noRefinement"}),l.noRefinementRoot),list:mi(qs({descendantName:"list"}),l.list),item:mi(qs({descendantName:"item"}),l.item),selectedItem:mi(qs({descendantName:"item",modifierName:"selected"}),l.selectedItem),separator:mi(qs({descendantName:"separator"}),l.separator),link:mi(qs({descendantName:"link"}),l.link)},d=function(e){var t=e.containerNode,n=e.cssClasses,r=e.renderState,i=e.templates;return function(e,s){var a=e.canRefine,o=e.createURL,c=e.instantSearchInstance,u=e.items,l=e.refine;s?r.templateProps=$({defaultTemplates:Ds,templatesConfig:c.templatesConfig,templates:i}):pt(Xe(fn,{canRefine:a,cssClasses:n,createURL:o,items:u,refine:l,templateProps:r.templateProps}),t)}}({containerNode:h,cssClasses:f,renderState:{},templates:c});return It(d,function(){return pt(null,h)})({attributes:r,separator:i,rootPath:s,transformItems:a})},menuSelect:function(e){var t=e.container,n=e.attribute,r=e.sortBy,i=void 0===r?["name:asc"]:r,s=e.limit,a=void 0===s?10:s,o=e.cssClasses,c=void 0===o?{}:o,u=e.templates,l=void 0===u?Us:u,h=e.transformItems;if(!t)throw new Error(Bs("The `container` option is required."));var f=U(t),d={root:mi(Qs(),c.root),noRefinementRoot:mi(Qs({modifierName:"noRefinement"}),c.noRefinementRoot),select:mi(Qs({descendantName:"select"}),c.select),option:mi(Qs({descendantName:"option"}),c.option)};return wt(function(e){var t=e.containerNode,n=e.cssClasses,r=e.renderState,i=e.templates;return function(e,s){var a=e.refine,o=e.items,c=e.canRefine,u=e.instantSearchInstance;s?r.templateProps=$({defaultTemplates:Us,templatesConfig:u.templatesConfig,templates:i}):pt(Xe(dn,{cssClasses:n,items:o,refine:a,templateProps:r.templateProps,canRefine:c}),t)}}({containerNode:f,cssClasses:d,renderState:{},templates:l}),function(){return pt(null,f)})({attribute:n,limit:a,sortBy:i,transformItems:h})},poweredBy:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.cssClasses,r=void 0===n?{}:n,i=e.theme,s=void 0===i?"light":i;if(!t)throw new Error(Ks("The `container` option is required."));var a=U(t),o={root:mi(Ws(),Ws({modifierName:"dark"===s?"dark":"light"}),r.root),link:mi(Ws({descendantName:"link"}),r.link),logo:mi(Ws({descendantName:"logo"}),r.logo)};return Ot(function(e){var t=e.containerNode,n=e.cssClasses;return function(e,r){var i=e.url,s=e.widgetParams;if(r){var a=s.theme;pt(Xe(pn,{cssClasses:n,url:i,theme:a}),t)}}}({containerNode:a,cssClasses:o}),function(){return pt(null,a)})({theme:s})},panel:function(e){var t=e||{},n=t.templates,r=void 0===n?{}:n,i=t.hidden,s=void 0===i?function(){return!1}:i,a=t.collapsed,c=t.cssClasses,u=void 0===c?{}:c,l=document.createElement("div"),h=Boolean(a),f="function"==typeof a?a:function(){return!1},d={root:mi(ta(),u.root),noRefinementRoot:mi(ta({modifierName:"noRefinement"}),u.noRefinementRoot),collapsibleRoot:mi(ta({modifierName:"collapsible"}),u.collapsibleRoot),collapsedRoot:mi(ta({modifierName:"collapsed"}),u.collapsedRoot),collapseButton:mi(ta({descendantName:"collapseButton"}),u.collapseButton),collapseIcon:mi(ta({descendantName:"collapseIcon"}),u.collapseIcon),body:mi(ta({descendantName:"body"}),u.body),header:mi(ta({descendantName:"header"}),u.header),footer:mi(ta({descendantName:"footer"}),u.footer)};return function(e){return function(t){var n=(t||{}).container;if(!n)throw new Error(ea("The `container` option is required in the widget within the panel."));var i={header:"",footer:"",collapseButtonText:function(e){var t=e.collapsed;return'<svg\n          class="'.concat(d.collapseIcon,'"\n          width="1em"\n          height="1em"\n          viewBox="0 0 500 500"\n        >\n        <path d="').concat(t?"M100 250l300-150v300z":"M250 400l150-300H100z",'" fill="currentColor" />\n        </svg>')}},a=function(e){var t=e.containerNode,n=e.bodyContainerNode,r=e.cssClasses,i=e.templates;return function(e){var s=e.options,a=e.hidden,o=e.collapsible,c=e.collapsed;pt(Xe(_n,{cssClasses:r,hidden:a,collapsible:o,isCollapsed:c,templates:i,data:s,bodyElement:n}),t)}}({containerNode:U(n),bodyContainerNode:l,cssClasses:d,templates:o({},i,{},r)});a({options:{},hidden:!0,collapsible:h,collapsed:!1});var c=e(o({},t,{container:l}));return o({},c,{dispose:function(){if(pt(null,U(n)),"function"==typeof c.dispose){for(var e,t=arguments.length,r=new Array(t),i=0;t>i;i++)r[i]=arguments[i];return(e=c.dispose).call.apply(e,[this].concat(r))}},render:function(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];var r,i=t[0];a({options:i,hidden:Boolean(s(i)),collapsible:h,collapsed:Boolean(f(i))}),"function"==typeof c.render&&(r=c.render).call.apply(r,[this].concat(t))}})}}},voiceSearch:function(e){var t=0<arguments.length&&void 0!==e?e:{},n=t.container,r=t.cssClasses,i=void 0===r?{}:r,s=t.templates,a=t.searchAsYouSpeak,c=void 0!==a&&a,u=t.language,l=t.additionalQueryParameters,h=t.createVoiceSearchHelper;if(!n)throw new Error(ra("The `container` option is required."));var f=U(n),d={root:mi(ia(),i.root),button:mi(ia({descendantName:"button"}),i.button),status:mi(ia({descendantName:"status"}),i.status)};return Qt(Tn,function(){return pt(null,f)})({container:f,cssClasses:d,templates:o({},na,{},s),searchAsYouSpeak:c,language:u,additionalQueryParameters:l,createVoiceSearchHelper:h})},queryRuleCustomData:function(e){var t=0<arguments.length&&void 0!==e?e:{},n=t.container,r=t.cssClasses,i=void 0===r?{}:r,s=t.templates,a=void 0===s?{}:s,c=t.transformItems,u=void 0===c?function(e){return e}:c;if(!n)throw new Error(sa("The `container` option is required."));var l={root:mi(aa(),i.root)},h=o({},{"default":function(e){var t=e.items;return JSON.stringify(t,null,2)}},{},a),f=U(n);return o({},Ut(Cn,function(){pt(null,f)})({container:f,cssClasses:l,templates:h,transformItems:u}),{$$type:"ais.queryRuleCustomData"})},queryRuleContext:function(e){var t=0<arguments.length&&void 0!==e?e:{},n=t.trackedFilters,r=t.transformRuleContexts;if(!n)throw new Error(oa("The `trackedFilters` option is required."));return o({},Ut(ee)({trackedFilters:n,transformRuleContexts:r}),{$$type:"ais.queryRuleContext"})},index:be,places:function(e){var t=e||{},n=t.placesReference,r=void 0===n?void 0:n,i=t.defaultPosition,s=void 0===i?[]:i,a=h(t,["placesReference","defaultPosition"]);if("function"!=typeof r)throw new Error("The `placesReference` option requires a valid Places.js reference.");var c=r(a),u={query:"",initialLatLngViaIP:void 0,isInitialLatLngViaIPSet:!1};return{$$type:"ais.places",init:function(e){var t=e.helper;c.on("change",function(e){var n=e.suggestion,r=n.value,i=n.latlng,s=i.lat,a=i.lng;u.query=r,t.setQueryParameter("insideBoundingBox",void 0).setQueryParameter("aroundLatLngViaIP",!1).setQueryParameter("aroundLatLng","".concat(s,",").concat(a)).search()}),c.on("clear",function(){u.query="",t.setQueryParameter("insideBoundingBox",void 0),1<s.length?t.setQueryParameter("aroundLatLngViaIP",!1).setQueryParameter("aroundLatLng",s.join(",")):t.setQueryParameter("aroundLatLngViaIP",u.initialLatLngViaIP).setQueryParameter("aroundLatLng",void 0),t.search()})},getWidgetState:function(e,t){var n=t.searchParameters.aroundLatLng||s.join(",");return n!==s.join(",")||u.query?o({},e,{places:{query:u.query,position:n}}):(e.places,h(e,["places"]))},getWidgetSearchParameters:function(e,t){var n=t.uiState.places||{},r=n.query,i=void 0===r?"":r,a=n.position,o=void 0===a?s.join(","):a;return u.query=i,u.isInitialLatLngViaIPSet||(u.isInitialLatLngViaIPSet=!0,u.initialLatLngViaIP=e.aroundLatLngViaIP),c.setVal(i),c.close(),e.setQueryParameter("insideBoundingBox",void 0).setQueryParameter("aroundLatLngViaIP",!1).setQueryParameter("aroundLatLng",o||void 0)}}}}),ua=Object.freeze({__proto__:null,history:Le}),la=Object.freeze({__proto__:null,simple:Ce,singleIndex:function(e){return{stateToRoute:function(t){return Nn(t[e]||{})},routeToState:function(t){return i({},e,Nn(0<arguments.length&&void 0!==t?t:{}))}}}}),ha="ais.infiniteHits";return kn.routers=ua,kn.stateMappings=la,kn.connectors=pi,kn.widgets=ca,kn.version="4.7.2",kn.createInfiniteHitsSessionStorageCache=function(){return{read:function(e){var t=e.state;if(!En())return null;try{var n=JSON.parse(window.sessionStorage.getItem(ha));return n&&ae(n.state,jn(t))?n.hits:null}catch(e){if(e instanceof SyntaxError)try{window.sessionStorage.removeItem(ha)}catch(e){}return null}},write:function(e){var t=e.state,n=e.hits;if(En())try{window.sessionStorage.setItem(ha,JSON.stringify({state:jn(t),hits:n}))}catch(e){}}}},kn.highlight=_e,kn.snippet=Pe,kn.insights=Te,kn})},function(e,t,n){"use strict";var r=n(4),i=n(30);e.exports=i(r,"Browser")},function(e,t,n){function r(){c.apply(this,arguments)}function i(){var e="Not implemented in this environment.\nIf you feel this is a mistake, write to support@algolia.com";throw new l.AlgoliaSearchError(e)}e.exports=r;var s=n(5),a=n(11),o=n(12),c=n(23),u=n(6),l=n(9);u(r,c),r.prototype.deleteIndex=function(e,t){return this._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(e),hostType:"write",callback:t})},r.prototype.moveIndex=function(e,t,n){var r={operation:"move",destination:t};return this._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(e)+"/operation",body:r,hostType:"write",callback:n})},r.prototype.copyIndex=function(e,t,n,r){var i={operation:"copy",destination:t},s=r;if("function"==typeof n)s=n;else if(Array.isArray(n)&&n.length>0)i.scope=n;else if("undefined"!=typeof n)throw new Error("the scope given to `copyIndex` was not an array with settings, synonyms or rules");return this._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(e)+"/operation",body:i,hostType:"write",callback:s})},r.prototype.getLogs=function(e,t,r){var i=n(14),s={};return"object"==typeof e?(s=i(e),r=t):0===arguments.length||"function"==typeof e?r=e:1===arguments.length||"function"==typeof t?(r=t,s.offset=e):(s.offset=e,s.length=t),void 0===s.offset&&(s.offset=0),void 0===s.length&&(s.length=10),this._jsonRequest({method:"GET",url:"/1/logs?"+this._getSearchParams(s,""),hostType:"read",callback:r})},r.prototype.listIndexes=function(e,t){var n="";return void 0===e||"function"==typeof e?t=e:n="?page="+e,this._jsonRequest({method:"GET",url:"/1/indexes"+n,hostType:"read",callback:t})},r.prototype.initIndex=function(e){return new s(this,e)},r.prototype.initAnalytics=function(e){var t=n(29);return t(this.applicationID,this.apiKey,e)},r.prototype.listUserKeys=a(function(e){return this.listApiKeys(e)},o("client.listUserKeys()","client.listApiKeys()")),r.prototype.listApiKeys=function(e){return this._jsonRequest({method:"GET",url:"/1/keys",hostType:"read",callback:e})},r.prototype.getUserKeyACL=a(function(e,t){return this.getApiKey(e,t)},o("client.getUserKeyACL()","client.getApiKey()")),r.prototype.getApiKey=function(e,t){return this._jsonRequest({method:"GET",url:"/1/keys/"+e,hostType:"read",callback:t})},r.prototype.deleteUserKey=a(function(e,t){return this.deleteApiKey(e,t)},o("client.deleteUserKey()","client.deleteApiKey()")),r.prototype.deleteApiKey=function(e,t){return this._jsonRequest({method:"DELETE",url:"/1/keys/"+e,hostType:"write",callback:t})},r.prototype.restoreApiKey=function(e,t){return this._jsonRequest({method:"POST",url:"/1/keys/"+e+"/restore",hostType:"write",callback:t})},r.prototype.addUserKey=a(function(e,t,n){return this.addApiKey(e,t,n)},o("client.addUserKey()","client.addApiKey()")),r.prototype.addApiKey=function(e,t,r){var i=n(18),s="Usage: client.addApiKey(arrayOfAcls[, params, callback])";if(!i(e))throw new Error(s);(1===arguments.length||"function"==typeof t)&&(r=t,t=null);var a={acl:e};return t&&(a.validity=t.validity,a.maxQueriesPerIPPerHour=t.maxQueriesPerIPPerHour,a.maxHitsPerQuery=t.maxHitsPerQuery,a.indexes=t.indexes,a.description=t.description,t.queryParameters&&(a.queryParameters=this._getSearchParams(t.queryParameters,"")),a.referers=t.referers),this._jsonRequest({method:"POST",url:"/1/keys",body:a,hostType:"write",callback:r})},r.prototype.addUserKeyWithValidity=a(function(e,t,n){return this.addApiKey(e,t,n)},o("client.addUserKeyWithValidity()","client.addApiKey()")),r.prototype.updateUserKey=a(function(e,t,n,r){return this.updateApiKey(e,t,n,r)},o("client.updateUserKey()","client.updateApiKey()")),r.prototype.updateApiKey=function(e,t,r,i){var s=n(18),a="Usage: client.updateApiKey(key, arrayOfAcls[, params, callback])";if(!s(t))throw new Error(a);(2===arguments.length||"function"==typeof r)&&(i=r,r=null);var o={acl:t};return r&&(o.validity=r.validity,o.maxQueriesPerIPPerHour=r.maxQueriesPerIPPerHour,o.maxHitsPerQuery=r.maxHitsPerQuery,o.indexes=r.indexes,o.description=r.description,r.queryParameters&&(o.queryParameters=this._getSearchParams(r.queryParameters,"")),o.referers=r.referers),this._jsonRequest({method:"PUT",url:"/1/keys/"+e,body:o,hostType:"write",callback:i})},r.prototype.startQueriesBatch=a(function(){this._batch=[]},o("client.startQueriesBatch()","client.search()")),r.prototype.addQueryInBatch=a(function(e,t,n){this._batch.push({indexName:e,query:t,params:n})},o("client.addQueryInBatch()","client.search()")),r.prototype.sendQueriesBatch=a(function(e){return this.search(this._batch,e)},o("client.sendQueriesBatch()","client.search()")),r.prototype.batch=function(e,t){var r=n(18),i="Usage: client.batch(operations[, callback])";if(!r(e))throw new Error(i);return this._jsonRequest({method:"POST",url:"/1/indexes/*/batch",body:{requests:e},hostType:"write",callback:t})},r.prototype.assignUserID=function(e,t){if(!e.userID||!e.cluster)throw new l.AlgoliaSearchError("You have to provide both a userID and cluster",e);return this._jsonRequest({method:"POST",url:"/1/clusters/mapping",hostType:"write",body:{cluster:e.cluster},callback:t,headers:{"x-algolia-user-id":e.userID}})},r.prototype.assignUserIDs=function(e,t){if(!e.userIDs||!e.cluster)throw new l.AlgoliaSearchError("You have to provide both an array of userIDs and cluster",e);return this._jsonRequest({method:"POST",url:"/1/clusters/mapping/batch",hostType:"write",body:{cluster:e.cluster,users:e.userIDs},callback:t})},r.prototype.getTopUserID=function(e){return this._jsonRequest({method:"GET",url:"/1/clusters/mapping/top",hostType:"read",callback:e})},r.prototype.getUserID=function(e,t){if(!e.userID)throw new l.AlgoliaSearchError("You have to provide a userID",{debugData:e});return this._jsonRequest({method:"GET",url:"/1/clusters/mapping/"+e.userID,hostType:"read",callback:t})},r.prototype.listClusters=function(e){return this._jsonRequest({method:"GET",url:"/1/clusters",hostType:"read",callback:e})},r.prototype.listUserIDs=function(e,t){return this._jsonRequest({method:"GET",url:"/1/clusters/mapping",body:e,hostType:"read",callback:t})},r.prototype.removeUserID=function(e,t){if(!e.userID)throw new l.AlgoliaSearchError("You have to provide a userID",{debugData:e});return this._jsonRequest({method:"DELETE",url:"/1/clusters/mapping",hostType:"write",callback:t,headers:{"x-algolia-user-id":e.userID}})},r.prototype.searchUserIDs=function(e,t){return this._jsonRequest({method:"POST",url:"/1/clusters/mapping/search",body:e,hostType:"read",callback:t})},r.prototype.setPersonalizationStrategy=function(e,t){return this._jsonRequest({method:"POST",url:"/1/recommendation/personalization/strategy",body:e,hostType:"write",callback:t})},r.prototype.getPersonalizationStrategy=function(e){return this._jsonRequest({method:"GET",url:"/1/recommendation/personalization/strategy",hostType:"read",callback:e})},r.prototype.destroy=i,r.prototype.enableRateLimitForward=i,r.prototype.disableRateLimitForward=i,r.prototype.useSecuredAPIKey=i,r.prototype.disableSecuredAPIKey=i,r.prototype.generateSecuredApiKey=i,r.prototype.getSecuredApiKeyRemainingValidity=i},function(e,t,n){function r(){a.apply(this,arguments)}function i(e,t,n){function r(n,i){var s={page:n||0,hitsPerPage:t||100},a=i||[];return e(s).then(function(e){var t=e.hits,n=e.nbHits,i=t.map(function(e){return delete e._highlightResult,e}),o=a.concat(i);return o.length<n?r(s.page+1,o):o})}return r().then(function(e){return"function"==typeof n?void n(e):e})}var s=n(6),a=n(7),o=n(11),c=n(12),u=n(20),l=n(9),h=o(function(){},c("forwardToSlaves","forwardToReplicas"));e.exports=r,s(r,a),r.prototype.addObject=function(e,t,n){var r=this;return(1===arguments.length||"function"==typeof t)&&(n=t,t=void 0),this.as._jsonRequest({method:void 0!==t?"PUT":"POST",url:"/1/indexes/"+encodeURIComponent(r.indexName)+(void 0!==t?"/"+encodeURIComponent(t):""),body:e,hostType:"write",callback:n})},r.prototype.addObjects=function(e,t){var r=n(18),i="Usage: index.addObjects(arrayOfObjects[, callback])";if(!r(e))throw new Error(i);for(var s=this,a={requests:[]},o=0;o<e.length;++o){var c={action:"addObject",body:e[o]};a.requests.push(c)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(s.indexName)+"/batch",body:a,hostType:"write",callback:t})},r.prototype.partialUpdateObject=function(e,t,n){(1===arguments.length||"function"==typeof t)&&(n=t,t=void 0);var r=this,i="/1/indexes/"+encodeURIComponent(r.indexName)+"/"+encodeURIComponent(e.objectID)+"/partial";return t===!1&&(i+="?createIfNotExists=false"),this.as._jsonRequest({method:"POST",url:i,body:e,hostType:"write",callback:n})},r.prototype.partialUpdateObjects=function(e,t,r){(1===arguments.length||"function"==typeof t)&&(r=t,t=!0);var i=n(18),s="Usage: index.partialUpdateObjects(arrayOfObjects[, callback])";if(!i(e))throw new Error(s);for(var a=this,o={requests:[]},c=0;c<e.length;++c){var u={action:t===!0?"partialUpdateObject":"partialUpdateObjectNoCreate",objectID:e[c].objectID,body:e[c]};o.requests.push(u)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(a.indexName)+"/batch",body:o,hostType:"write",callback:r})},r.prototype.saveObject=function(e,t){var n=this;return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(n.indexName)+"/"+encodeURIComponent(e.objectID),body:e,hostType:"write",callback:t})},r.prototype.saveObjects=function(e,t){var r=n(18),i="Usage: index.saveObjects(arrayOfObjects[, callback])";if(!r(e))throw new Error(i);for(var s=this,a={requests:[]},o=0;o<e.length;++o){var c={action:"updateObject",objectID:e[o].objectID,body:e[o]};a.requests.push(c)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(s.indexName)+"/batch",body:a,hostType:"write",callback:t})},r.prototype.deleteObject=function(e,t){if("function"==typeof e||"string"!=typeof e&&"number"!=typeof e){var n=new l.AlgoliaSearchError(e&&"function"!=typeof e?"ObjectID must be a string":"Cannot delete an object without an objectID");return t=e,"function"==typeof t?t(n):this.as._promise.reject(n)}var r=this;return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(r.indexName)+"/"+encodeURIComponent(e),hostType:"write",callback:t})},r.prototype.deleteObjects=function(e,t){var r=n(18),i=n(19),s="Usage: index.deleteObjects(arrayOfObjectIDs[, callback])";if(!r(e))throw new Error(s);var a=this,o={requests:i(e,function(e){return{action:"deleteObject",objectID:e,body:{objectID:e}}})};return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(a.indexName)+"/batch",body:o,hostType:"write",callback:t})},r.prototype.deleteByQuery=o(function(e,t,r){function i(e){if(0===e.nbHits)return e;var t=h(e.hits,function(e){return e.objectID});return f.deleteObjects(t).then(s).then(a)}function s(e){return f.waitTask(e.taskID)}function a(){return f.deleteByQuery(e,t)}function o(){u(function(){r(null)},d._setTimeout||setTimeout)}function c(e){u(function(){r(e)},d._setTimeout||setTimeout)}var l=n(14),h=n(19),f=this,d=f.as;1===arguments.length||"function"==typeof t?(r=t,t={}):t=l(t),t.attributesToRetrieve="objectID",t.hitsPerPage=1e3,t.distinct=!1,this.clearCache();var p=this.search(e,t).then(i);return r?void p.then(o,c):p},c("index.deleteByQuery()","index.deleteBy()")),r.prototype.deleteBy=function(e,t){var n=this;return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(n.indexName)+"/deleteByQuery",body:{params:n.as._getSearchParams(e,"")},hostType:"write",callback:t})},r.prototype.browseAll=function(e,t){function r(e){if(!o._stopped){var t;t=void 0!==e?{cursor:e}:{params:l},c._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(u.indexName)+"/browse",hostType:"read",body:t,callback:i})}}function i(e,t){return o._stopped?void 0:e?void o._error(e):(o._result(t),void 0===t.cursor?void o._end():void r(t.cursor))}"object"==typeof e&&(t=e,e=void 0);var s=n(13),a=n(21),o=new a,c=this.as,u=this,l=c._getSearchParams(s({},t||{},{query:e}),"");return r(),o},r.prototype.ttAdapter=o(function(e){var t=this;return function(n,r,i){var s;s="function"==typeof i?i:r,t.search(n,e,function(e,t){return e?void s(e):void s(t.hits)})}},"ttAdapter is not necessary anymore and will be removed in the next version,\nhave a look at autocomplete.js (https://github.com/algolia/autocomplete.js)"),r.prototype.waitTask=function(e,t){function n(){return l._jsonRequest({method:"GET",hostType:"read",url:"/1/indexes/"+encodeURIComponent(c.indexName)+"/task/"+e}).then(function(e){o++;var t=s*o*o;return t>a&&(t=a),"published"!==e.status?l._promise.delay(t).then(n):e})}function r(e){u(function(){t(null,e)},l._setTimeout||setTimeout)}function i(e){u(function(){t(e)},l._setTimeout||setTimeout)}var s=100,a=5e3,o=0,c=this,l=c.as,h=n();return t?void h.then(r,i):h},r.prototype.clearIndex=function(e){var t=this;return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(t.indexName)+"/clear",hostType:"write",callback:e})},r.prototype.getSettings=function(e,t){1===arguments.length&&"function"==typeof e&&(t=e,e={}),e=e||{};var n=encodeURIComponent(this.indexName);return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+n+"/settings?getVersion=2"+(e.advanced?"&advanced="+e.advanced:""),hostType:"read",callback:t})},r.prototype.searchSynonyms=function(e,t){return"function"==typeof e?(t=e,e={}):void 0===e&&(e={}),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/search",body:e,hostType:"read",callback:t})},r.prototype.exportSynonyms=function(e,t){return i(this.searchSynonyms.bind(this),e,t)},r.prototype.saveSynonym=function(e,t,n){"function"==typeof t?(n=t,t={}):void 0===t&&(t={}),void 0!==t.forwardToSlaves&&h();var r=t.forwardToSlaves||t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(e.objectID)+"?forwardToReplicas="+r,body:e,hostType:"write",callback:n})},r.prototype.getSynonym=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(e),hostType:"read",callback:t})},r.prototype.deleteSynonym=function(e,t,n){"function"==typeof t?(n=t,t={}):void 0===t&&(t={}),void 0!==t.forwardToSlaves&&h();var r=t.forwardToSlaves||t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(e)+"?forwardToReplicas="+r,hostType:"write",callback:n})},r.prototype.clearSynonyms=function(e,t){"function"==typeof e?(t=e,e={}):void 0===e&&(e={}),void 0!==e.forwardToSlaves&&h();var n=e.forwardToSlaves||e.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/clear?forwardToReplicas="+n,hostType:"write",callback:t})},r.prototype.batchSynonyms=function(e,t,n){"function"==typeof t?(n=t,t={}):void 0===t&&(t={}),void 0!==t.forwardToSlaves&&h();var r=t.forwardToSlaves||t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/batch?forwardToReplicas="+r+"&replaceExistingSynonyms="+(t.replaceExistingSynonyms?"true":"false"),hostType:"write",body:e,callback:n})},r.prototype.searchRules=function(e,t){return"function"==typeof e?(t=e,e={}):void 0===e&&(e={}),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/search",body:e,hostType:"read",callback:t})},r.prototype.exportRules=function(e,t){return i(this.searchRules.bind(this),e,t)},r.prototype.saveRule=function(e,t,n){if("function"==typeof t?(n=t,t={}):void 0===t&&(t={}),!e.objectID)throw new l.AlgoliaSearchError("Missing or empty objectID field for rule");var r=t.forwardToReplicas===!0?"true":"false";return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(e.objectID)+"?forwardToReplicas="+r,body:e,hostType:"write",callback:n})},r.prototype.getRule=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(e),hostType:"read",callback:t})},r.prototype.deleteRule=function(e,t,n){"function"==typeof t?(n=t,t={}):void 0===t&&(t={});var r=t.forwardToReplicas===!0?"true":"false";return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(e)+"?forwardToReplicas="+r,hostType:"write",callback:n})},r.prototype.clearRules=function(e,t){"function"==typeof e?(t=e,e={}):void 0===e&&(e={});var n=e.forwardToReplicas===!0?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/clear?forwardToReplicas="+n,hostType:"write",callback:t})},r.prototype.batchRules=function(e,t,n){"function"==typeof t?(n=t,t={}):void 0===t&&(t={});var r=t.forwardToReplicas===!0?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/batch?forwardToReplicas="+r+"&clearExistingRules="+(t.clearExistingRules===!0?"true":"false"),hostType:"write",body:e,callback:n})},r.prototype.exists=function(e){var t=this.getSettings().then(function(){return!0})["catch"](function(e){if(e instanceof l.AlgoliaSearchError&&404===e.statusCode)return!1;throw e});return"function"!=typeof e?t:void t.then(function(t){e(null,t)})["catch"](function(t){e(t)})},r.prototype.findObject=function(e,t,n){t=void 0===t?{}:t;var r=void 0!==t.paginate?t.paginate:!0,i=void 0!==t.query?t.query:"",s=this,a=0,o=function(){return t.page=a,s.search(i,t).then(function(t){for(var n=t.hits,i=0;i<n.length;i++){var s=n[i];if(e(s))return{object:s,position:i,page:a}}if(a+=1,!r||a>=t.nbPages)throw new l.ObjectNotFound("Object not found");return o()})},c=o(a);return void 0===n?c:void c.then(function(e){n(null,e)})["catch"](function(e){n(e)})},r.prototype.getObjectPosition=function(e,t){for(var n=e.hits,r=0;r<n.length;r++)if(n[r].objectID===t)return r;return-1},r.prototype.setSettings=function(e,t,n){(1===arguments.length||"function"==typeof t)&&(n=t,t={}),void 0!==t.forwardToSlaves&&h();var r=t.forwardToSlaves||t.forwardToReplicas?"true":"false",i=this;return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(i.indexName)+"/settings?forwardToReplicas="+r,hostType:"write",body:e,callback:n})},r.prototype.listUserKeys=o(function(e){return this.listApiKeys(e)},c("index.listUserKeys()","client.listApiKeys()")),r.prototype.listApiKeys=o(function(e){var t=this;return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(t.indexName)+"/keys",hostType:"read",callback:e})},c("index.listApiKeys()","client.listApiKeys()")),r.prototype.getUserKeyACL=o(function(e,t){return this.getApiKey(e,t)},c("index.getUserKeyACL()","client.getApiKey()")),r.prototype.getApiKey=o(function(e,t){var n=this;return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(n.indexName)+"/keys/"+e,hostType:"read",callback:t})},c("index.getApiKey()","client.getApiKey()")),r.prototype.deleteUserKey=o(function(e,t){return this.deleteApiKey(e,t)},c("index.deleteUserKey()","client.deleteApiKey()")),r.prototype.deleteApiKey=o(function(e,t){var n=this;return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(n.indexName)+"/keys/"+e,hostType:"write",callback:t})},c("index.deleteApiKey()","client.deleteApiKey()")),r.prototype.addUserKey=o(function(e,t,n){return this.addApiKey(e,t,n)},c("index.addUserKey()","client.addApiKey()")),r.prototype.addApiKey=o(function(e,t,r){var i=n(18),s="Usage: index.addApiKey(arrayOfAcls[, params, callback])";if(!i(e))throw new Error(s);(1===arguments.length||"function"==typeof t)&&(r=t,t=null);var a={acl:e};return t&&(a.validity=t.validity,a.maxQueriesPerIPPerHour=t.maxQueriesPerIPPerHour,a.maxHitsPerQuery=t.maxHitsPerQuery,a.description=t.description,t.queryParameters&&(a.queryParameters=this.as._getSearchParams(t.queryParameters,"")),a.referers=t.referers),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys",body:a,hostType:"write",callback:r})},c("index.addApiKey()","client.addApiKey()")),r.prototype.addUserKeyWithValidity=o(function(e,t,n){return this.addApiKey(e,t,n)},c("index.addUserKeyWithValidity()","client.addApiKey()")),r.prototype.updateUserKey=o(function(e,t,n,r){return this.updateApiKey(e,t,n,r)},c("index.updateUserKey()","client.updateApiKey()")),r.prototype.updateApiKey=o(function(e,t,r,i){var s=n(18),a="Usage: index.updateApiKey(key, arrayOfAcls[, params, callback])";if(!s(t))throw new Error(a);(2===arguments.length||"function"==typeof r)&&(i=r,r=null);var o={acl:t};return r&&(o.validity=r.validity,o.maxQueriesPerIPPerHour=r.maxQueriesPerIPPerHour,o.maxHitsPerQuery=r.maxHitsPerQuery,o.description=r.description,r.queryParameters&&(o.queryParameters=this.as._getSearchParams(r.queryParameters,"")),o.referers=r.referers),this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys/"+e,body:o,hostType:"write",callback:i})},c("index.updateApiKey()","client.updateApiKey()"))},function(e){e.exports="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){function r(e,t){this.indexName=t,this.as=e,this.typeAheadArgs=null,this.typeAheadValueOption=null,this.cache={}}var i=n(8),s=n(11),a=n(12);e.exports=r,r.prototype.clearCache=function(){this.cache={}},r.prototype.search=i("query"),r.prototype.similarSearch=s(i("similarQuery"),a("index.similarSearch(query[, callback])","index.search({ similarQuery: query }[, callback])")),r.prototype.browse=function(e,t,r){var i,s,a=n(13),o=this;0===arguments.length||1===arguments.length&&"function"==typeof arguments[0]?(i=0,r=arguments[0],e=void 0):"number"==typeof arguments[0]?(i=arguments[0],"number"==typeof arguments[1]?s=arguments[1]:"function"==typeof arguments[1]&&(r=arguments[1],s=void 0),e=void 0,t=void 0):"object"==typeof arguments[0]?("function"==typeof arguments[1]&&(r=arguments[1]),t=arguments[0],e=void 0):"string"==typeof arguments[0]&&"function"==typeof arguments[1]&&(r=arguments[1],t=void 0),t=a({},t||{},{page:i,hitsPerPage:s,query:e});var c=this.as._getSearchParams(t,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(o.indexName)+"/browse",body:{params:c},hostType:"read",callback:r})},r.prototype.browseFrom=function(e,t){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse",body:{cursor:e},hostType:"read",callback:t})},r.prototype.searchForFacetValues=function(e,t){var r=n(14),i=n(15),s="Usage: index.searchForFacetValues({facetName, facetQuery, ...params}[, callback])";if(void 0===e.facetName||void 0===e.facetQuery)throw new Error(s);var a=e.facetName,o=i(r(e),function(e){return"facetName"===e}),c=this.as._getSearchParams(o,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/facets/"+encodeURIComponent(a)+"/query",hostType:"read",
  body:{params:c},callback:t})},r.prototype.searchFacet=s(function(e,t){return this.searchForFacetValues(e,t)},a("index.searchFacet(params[, callback])","index.searchForFacetValues(params[, callback])")),r.prototype._search=function(e,t,n,r){return this.as._jsonRequest({cache:this.cache,method:"POST",url:t||"/1/indexes/"+encodeURIComponent(this.indexName)+"/query",body:{params:e},hostType:"read",fallback:{method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName),body:{params:e}},callback:n,additionalUA:r})},r.prototype.getObject=function(e,t,n){var r=this;(1===arguments.length||"function"==typeof t)&&(n=t,t=void 0);var i="";if(void 0!==t){i="?attributes=";for(var s=0;s<t.length;++s)0!==s&&(i+=","),i+=t[s]}return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(r.indexName)+"/"+encodeURIComponent(e)+i,hostType:"read",callback:n})},r.prototype.getObjects=function(e,t,r){var i=n(18),s=n(19),a="Usage: index.getObjects(arrayOfObjectIDs[, callback])";if(!i(e))throw new Error(a);var o=this;(1===arguments.length||"function"==typeof t)&&(r=t,t=void 0);var c={requests:s(e,function(e){var n={indexName:o.indexName,objectID:e};return t&&(n.attributesToRetrieve=t.join(",")),n})};return this.as._jsonRequest({method:"POST",url:"/1/indexes/*/objects",hostType:"read",body:c,callback:r})},r.prototype.as=null,r.prototype.indexName=null,r.prototype.typeAheadArgs=null,r.prototype.typeAheadValueOption=null},function(e,t,n){function r(e,t){return function(n,r,s){if("function"==typeof n&&"object"==typeof r||"object"==typeof s)throw new i.AlgoliaSearchError("index.search usage is index.search(query, params, cb)");0===arguments.length||"function"==typeof n?(s=n,n=""):(1===arguments.length||"function"==typeof r)&&(s=r,r=void 0),"object"==typeof n&&null!==n?(r=n,n=void 0):(void 0===n||null===n)&&(n="");var a="";void 0!==n&&(a+=e+"="+encodeURIComponent(n));var o;return void 0!==r&&(r.additionalUA&&(o=r.additionalUA,delete r.additionalUA),a=this.as._getSearchParams(r,a)),this._search(a,t,s,o)}}e.exports=r;var i=n(9)},function(e,t,n){"use strict";function r(e,t){var r=n(10),i=this;"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):i.stack=(new Error).stack||"Cannot get a stacktrace, browser is too old",this.name="AlgoliaSearchError",this.message=e||"Unknown error",t&&r(t,function(e,t){i[t]=e})}function i(e,t){function n(){var n=Array.prototype.slice.call(arguments,0);"string"!=typeof n[0]&&n.unshift(t),r.apply(this,n),this.name="AlgoliaSearch"+e+"Error"}return s(n,r),n}var s=n(6);s(r,Error),e.exports={AlgoliaSearchError:r,UnparsableJSON:i("UnparsableJSON","Could not parse the incoming response as JSON, see err.more for details"),RequestTimeout:i("RequestTimeout","Request timed out before getting a response"),Network:i("Network","Network issue, see err.more for details"),JSONPScriptFail:i("JSONPScriptFail","<script> was loaded but did not call our provided callback"),ValidUntilNotFound:i("ValidUntilNotFound","The SecuredAPIKey does not have a validUntil parameter."),JSONPScriptError:i("JSONPScriptError","<script> unable to load due to an `error` event on it"),ObjectNotFound:i("ObjectNotFound","Object not found"),Unknown:i("Unknown","Unknown error occured")}},function(e){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;e.exports=function(e,r,i){if("[object Function]"!==n.call(r))throw new TypeError("iterator must be a function");var s=e.length;if(s===+s)for(var a=0;s>a;a++)r.call(i,e[a],a,e);else for(var o in e)t.call(e,o)&&r.call(i,e[o],o,e)}},function(e){e.exports=function(e,t){function n(){return r||(console.warn(t),r=!0),e.apply(this,arguments)}var r=!1;return n}},function(e){e.exports=function(e,t){var n=e.toLowerCase().replace(/[\.\(\)]/g,"");return"algoliasearch: `"+e+"` was replaced by `"+t+"`. Please see https://github.com/algolia/algoliasearch-client-javascript/wiki/Deprecated#"+n}},function(e,t,n){var r=n(10);e.exports=function i(e){var t=Array.prototype.slice.call(arguments);return r(t,function(t){for(var n in t)t.hasOwnProperty(n)&&("object"==typeof e[n]&&"object"==typeof t[n]?e[n]=i({},e[n],t[n]):void 0!==t[n]&&(e[n]=t[n]))}),e}},function(e){e.exports=function(e){return JSON.parse(JSON.stringify(e))}},function(e,t,n){e.exports=function(e,t){var r=n(16),i=n(10),s={};return i(r(e),function(n){t(n)!==!0&&(s[n]=e[n])}),s}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,s=Array.prototype.slice,a=n(17),o=Object.prototype.propertyIsEnumerable,c=!o.call({toString:null},"toString"),u=o.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(e){var t=e.constructor;return t&&t.prototype===e},f={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&r.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{h(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),p=function(e){if("undefined"==typeof window||!d)return h(e);try{return h(e)}catch(t){return!1}},m=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),s=a(e),o=t&&"[object String]"===i.call(e),h=[];if(!t&&!n&&!s)throw new TypeError("Object.keys called on a non-object");var f=u&&n;if(o&&e.length>0&&!r.call(e,0))for(var d=0;d<e.length;++d)h.push(String(d));if(s&&e.length>0)for(var m=0;m<e.length;++m)h.push(String(m));else for(var g in e)f&&"prototype"===g||!r.call(e,g)||h.push(String(g));if(c)for(var v=p(e),y=0;y<l.length;++y)v&&"constructor"===l[y]||!r.call(e,l[y])||h.push(l[y]);return h};m.shim=function(){if(Object.keys){var e=function(){return 2===(Object.keys(arguments)||"").length}(1,2);if(!e){var t=Object.keys;Object.keys=function(e){return t(a(e)?s.call(e):e)}}}else Object.keys=m;return Object.keys||m},e.exports=m},function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=[];return r(e,function(r,i){n.push(t(r,i,e))}),n}},function(e){e.exports=function(e,t){t(e,0)}},function(e,t,n){"use strict";function r(){}e.exports=r;var i=n(6),s=n(22).EventEmitter;i(r,s),r.prototype.stop=function(){this._stopped=!0,this._clean()},r.prototype._end=function(){this.emit("end"),this._clean()},r.prototype._error=function(e){this.emit("error",e),this._clean()},r.prototype._result=function(e){this.emit("result",e)},r.prototype._clean=function(){this.removeAllListeners("stop"),this.removeAllListeners("end"),this.removeAllListeners("error"),this.removeAllListeners("result")}},function(e){function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function r(e){return"number"==typeof e}function i(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}e.exports=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if(!r(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,r,a,o,c,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(r=this._events[e],s(r))return!1;if(n(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:o=Array.prototype.slice.call(arguments,1),r.apply(this,o)}else if(i(r))for(o=Array.prototype.slice.call(arguments,1),u=r.slice(),a=u.length,c=0;a>c;c++)u[c].apply(this,o);return!0},t.prototype.addListener=function(e,r){var a;if(!n(r))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,n(r.listener)?r.listener:r),this._events[e]?i(this._events[e])?this._events[e].push(r):this._events[e]=[this._events[e],r]:this._events[e]=r,i(this._events[e])&&!this._events[e].warned&&(a=s(this._maxListeners)?t.defaultMaxListeners:this._maxListeners,a&&a>0&&this._events[e].length>a&&(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},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){function r(){this.removeListener(e,r),i||(i=!0,t.apply(this,arguments))}if(!n(t))throw TypeError("listener must be a function");var i=!1;return r.listener=t,this.on(e,r),this},t.prototype.removeListener=function(e,t){var r,s,a,o;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],a=r.length,s=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(r)){for(o=a;o-->0;)if(r[o]===t||r[o].listener&&r[o].listener===t){s=o;break}if(0>s)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(s,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.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(r=this._events[e],n(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){function r(e,t,r){var s=n(25)("algoliasearch"),a=n(14),o=n(18),u=n(19),l="Usage: algoliasearch(applicationID, apiKey, opts)";if(r._allowEmptyCredentials!==!0&&!e)throw new c.AlgoliaSearchError("Please provide an application ID. "+l);if(r._allowEmptyCredentials!==!0&&!t)throw new c.AlgoliaSearchError("Please provide an API key. "+l);this.applicationID=e,this.apiKey=t,this.hosts={read:[],write:[]},r=r||{},this._timeouts=r.timeouts||{connect:1e3,read:2e3,write:3e4},r.timeout&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=r.timeout);var h=r.protocol||"https:";if(/:$/.test(h)||(h+=":"),"http:"!==h&&"https:"!==h)throw new c.AlgoliaSearchError("protocol must be `http:` or `https:` (was `"+r.protocol+"`)");if(this._checkAppIdData(),r.hosts)o(r.hosts)?(this.hosts.read=a(r.hosts),this.hosts.write=a(r.hosts)):(this.hosts.read=a(r.hosts.read),this.hosts.write=a(r.hosts.write));else{var f=u(this._shuffleResult,function(t){return e+"-"+t+".algolianet.com"}),d=(r.dsn===!1?"":"-dsn")+".algolia.net";this.hosts.read=[this.applicationID+d].concat(f),this.hosts.write=[this.applicationID+".algolia.net"].concat(f)}this.hosts.read=u(this.hosts.read,i(h)),this.hosts.write=u(this.hosts.write,i(h)),this.extraHeaders={},this.cache=r._cache||{},this._ua=r._ua,this._useCache=void 0===r._useCache||r._cache?!0:r._useCache,this._useRequestCache=this._useCache&&r._useRequestCache,this._useFallback=void 0===r.useFallback?!0:r.useFallback,this._setTimeout=r._setTimeout,s("init done, %j",this)}function i(e){return function(t){return e+"//"+t.toLowerCase()}}function s(e){if(void 0===Array.prototype.toJSON)return JSON.stringify(e);var t=Array.prototype.toJSON;delete Array.prototype.toJSON;var n=JSON.stringify(e);return Array.prototype.toJSON=t,n}function a(e){for(var t,n,r=e.length;0!==r;)n=Math.floor(Math.random()*r),r-=1,t=e[r],e[r]=e[n],e[n]=t;return e}function o(e){var t={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r;r="x-algolia-api-key"===n||"x-algolia-application-id"===n?"**hidden for security purposes**":e[n],t[n]=r}return t}e.exports=r;var c=n(9),u=n(20),l=n(7),h=n(24),f=500,d={NODE_ENV:"production"}.RESET_APP_DATA_TIMER&&parseInt({NODE_ENV:"production"}.RESET_APP_DATA_TIMER,10)||12e4;r.prototype.initIndex=function(e){return new l(this,e)},r.prototype.setExtraHeader=function(e,t){this.extraHeaders[e.toLowerCase()]=t},r.prototype.getExtraHeader=function(e){return this.extraHeaders[e.toLowerCase()]},r.prototype.unsetExtraHeader=function(e){delete this.extraHeaders[e.toLowerCase()]},r.prototype.addAlgoliaAgent=function(e){var t="; "+e;-1===this._ua.indexOf(t)&&(this._ua+=t)},r.prototype._jsonRequest=function(e){function t(n,i){function u(e){var t=e&&e.body&&e.body.message&&e.body.status||e.statusCode||e&&e.body&&200;d("received response: statusCode: %s, computed statusCode: %d, headers: %j",e.statusCode,t,e.headers);var n=2===Math.floor(t/100),r=new Date;if(w.push({currentHost:P,headers:o(h),content:a||null,contentLength:void 0!==a?a.length:null,method:i.method,timeouts:i.timeouts,url:i.url,startTime:S,endTime:r,duration:r-S,statusCode:t}),n)return g._useCache&&!g._useRequestCache&&m&&(m[l]=e.responseText),{responseText:e.responseText,body:e.body};var s=4!==Math.floor(t/100);if(s)return v+=1,R();d("unrecoverable error");var u=new c.AlgoliaSearchError(e.body&&e.body.message,{debugData:w,statusCode:t});return g._promise.reject(u)}function f(t){d("error: %s, stack: %s",t.message,t.stack);var n=new Date;return w.push({currentHost:P,headers:o(h),content:a||null,contentLength:void 0!==a?a.length:null,method:i.method,timeouts:i.timeouts,url:i.url,startTime:S,endTime:n,duration:n-S}),t instanceof c.AlgoliaSearchError||(t=new c.Unknown(t&&t.message,t)),v+=1,t instanceof c.Unknown||t instanceof c.UnparsableJSON||v>=g.hosts[e.hostType].length&&(y||!b)?(t.debugData=w,g._promise.reject(t)):t instanceof c.RequestTimeout?x():R()}function R(){return d("retrying request"),g._incrementHostIndex(e.hostType),t(n,i)}function x(){return d("retrying request with higher timeout"),g._incrementHostIndex(e.hostType),g._incrementTimeoutMultipler(),i.timeouts=g._getTimeoutsForRequest(e.hostType),t(n,i)}g._checkAppIdData();var S=new Date;if(g._useCache&&!g._useRequestCache&&(l=e.url),g._useCache&&!g._useRequestCache&&a&&(l+="_body_"+i.body),r(!g._useRequestCache,m,l)){d("serving response from cache");var _=m[l];return g._promise.resolve({body:JSON.parse(_),responseText:_})}if(v>=g.hosts[e.hostType].length)return!b||y?(d("could not get any response"),g._promise.reject(new c.AlgoliaSearchError("Cannot connect to the AlgoliaSearch API. Send an email to support@algolia.com to report and resolve the issue. Application id was: "+g.applicationID,{debugData:w}))):(d("switching to fallback"),v=0,i.method=e.fallback.method,i.url=e.fallback.url,i.jsonBody=e.fallback.body,i.jsonBody&&(i.body=s(i.jsonBody)),h=g._computeRequestHeaders({additionalUA:p,headers:e.headers}),i.timeouts=g._getTimeoutsForRequest(e.hostType),g._setHostIndexByType(0,e.hostType),y=!0,t(g._request.fallback,i));var P=g._getHostByType(e.hostType),T=P+i.url,F={body:i.body,jsonBody:i.jsonBody,method:i.method,headers:h,timeouts:i.timeouts,debug:d,forceAuthHeaders:i.forceAuthHeaders};return d("method: %s, url: %s, headers: %j, timeouts: %d",F.method,T,F.headers,F.timeouts),n===g._request.fallback&&d("using fallback"),n.call(g,T,F).then(u,f)}function r(e,t,n){return g._useCache&&e&&t&&void 0!==t[n]}function i(t,n){return r(g._useRequestCache,m,l)&&t["catch"](function(){delete m[l]}),"function"!=typeof e.callback?t.then(n):void t.then(function(t){u(function(){e.callback(null,n(t))},g._setTimeout||setTimeout)},function(t){u(function(){e.callback(t)},g._setTimeout||setTimeout)})}this._checkAppIdData();var a,l,h,d=n(25)("algoliasearch:"+e.url),p=e.additionalUA||"",m=e.cache,g=this,v=0,y=!1,b=g._useFallback&&g._request.fallback&&e.fallback;this.apiKey.length>f&&void 0!==e.body&&(void 0!==e.body.params||void 0!==e.body.requests)?(e.body.apiKey=this.apiKey,h=this._computeRequestHeaders({additionalUA:p,withApiKey:!1,headers:e.headers})):h=this._computeRequestHeaders({additionalUA:p,headers:e.headers}),void 0!==e.body&&(a=s(e.body)),d("request start");var w=[];if(g._useCache&&g._useRequestCache&&(l=e.url),g._useCache&&g._useRequestCache&&a&&(l+="_body_"+a),r(g._useRequestCache,m,l)){d("serving request from cache");var R=m[l],x="function"!=typeof R.then?g._promise.resolve({responseText:R}):R;return i(x,function(e){return JSON.parse(e.responseText)})}var S=t(g._request,{url:e.url,method:e.method,body:a,jsonBody:e.body,timeouts:g._getTimeoutsForRequest(e.hostType),forceAuthHeaders:e.forceAuthHeaders});return g._useCache&&g._useRequestCache&&m&&(m[l]=S),i(S,function(e){return e.body})},r.prototype._getSearchParams=function(e,t){if(void 0===e||null===e)return t;for(var n in e)null!==n&&void 0!==e[n]&&e.hasOwnProperty(n)&&(t+=""===t?"":"&",t+=n+"="+encodeURIComponent("[object Array]"===Object.prototype.toString.call(e[n])?s(e[n]):e[n]));return t},r.prototype._computeRequestHeaders=function(e){var t=n(10),r=e.additionalUA?this._ua+"; "+e.additionalUA:this._ua,i={"x-algolia-agent":r,"x-algolia-application-id":this.applicationID};return e.withApiKey!==!1&&(i["x-algolia-api-key"]=this.apiKey),this.userToken&&(i["x-algolia-usertoken"]=this.userToken),this.securityTags&&(i["x-algolia-tagfilters"]=this.securityTags),t(this.extraHeaders,function(e,t){i[t]=e}),e.headers&&t(e.headers,function(e,t){i[t]=e}),i},r.prototype.search=function(e,t,r){var i=n(18),s=n(19),a="Usage: client.search(arrayOfQueries[, callback])";if(!i(e))throw new Error(a);"function"==typeof t?(r=t,t={}):void 0===t&&(t={});var o=this,c={requests:s(e,function(e){var t="";return void 0!==e.query&&(t+="query="+encodeURIComponent(e.query)),{indexName:e.indexName,params:o._getSearchParams(e.params,t)}})},u=s(c.requests,function(e,t){return t+"="+encodeURIComponent("/1/indexes/"+encodeURIComponent(e.indexName)+"?"+e.params)}).join("&"),l="/1/indexes/*/queries";return void 0!==t.strategy&&(c.strategy=t.strategy),this._jsonRequest({cache:this.cache,method:"POST",url:l,body:c,hostType:"read",fallback:{method:"GET",url:"/1/indexes/*",body:{params:u}},callback:r})},r.prototype.searchForFacetValues=function(e){var t=n(18),r=n(19),i="Usage: client.searchForFacetValues([{indexName, params: {facetName, facetQuery, ...params}}, ...queries])";if(!t(e))throw new Error(i);var s=this;return s._promise.all(r(e,function(e){if(!e||void 0===e.indexName||void 0===e.params.facetName||void 0===e.params.facetQuery)throw new Error(i);var t=n(14),r=n(15),a=e.indexName,o=e.params,c=o.facetName,u=r(t(o),function(e){return"facetName"===e}),l=s._getSearchParams(u,"");return s._jsonRequest({cache:s.cache,method:"POST",url:"/1/indexes/"+encodeURIComponent(a)+"/facets/"+encodeURIComponent(c)+"/query",hostType:"read",body:{params:l}})}))},r.prototype.setSecurityTags=function(e){if("[object Array]"===Object.prototype.toString.call(e)){for(var t=[],n=0;n<e.length;++n)if("[object Array]"===Object.prototype.toString.call(e[n])){for(var r=[],i=0;i<e[n].length;++i)r.push(e[n][i]);t.push("("+r.join(",")+")")}else t.push(e[n]);e=t.join(",")}this.securityTags=e},r.prototype.setUserToken=function(e){this.userToken=e},r.prototype.clearCache=function(){this.cache={}},r.prototype.setRequestTimeout=function(e){e&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=e)},r.prototype.setTimeouts=function(e){this._timeouts=e},r.prototype.getTimeouts=function(){return this._timeouts},r.prototype._getAppIdData=function(){var e=h.get(this.applicationID);return null!==e&&this._cacheAppIdData(e),e},r.prototype._setAppIdData=function(e){return e.lastChange=(new Date).getTime(),this._cacheAppIdData(e),h.set(this.applicationID,e)},r.prototype._checkAppIdData=function(){var e=this._getAppIdData(),t=(new Date).getTime();return null===e||t-e.lastChange>d?this._resetInitialAppIdData(e):e},r.prototype._resetInitialAppIdData=function(e){var t=e||{};return t.hostIndexes={read:0,write:0},t.timeoutMultiplier=1,t.shuffleResult=t.shuffleResult||a([1,2,3]),this._setAppIdData(t)},r.prototype._cacheAppIdData=function(e){this._hostIndexes=e.hostIndexes,this._timeoutMultiplier=e.timeoutMultiplier,this._shuffleResult=e.shuffleResult},r.prototype._partialAppIdDataUpdate=function(e){var t=n(10),r=this._getAppIdData();return t(e,function(e,t){r[t]=e}),this._setAppIdData(r)},r.prototype._getHostByType=function(e){return this.hosts[e][this._getHostIndexByType(e)]},r.prototype._getTimeoutMultiplier=function(){return this._timeoutMultiplier},r.prototype._getHostIndexByType=function(e){return this._hostIndexes[e]},r.prototype._setHostIndexByType=function(e,t){var r=n(14),i=r(this._hostIndexes);return i[t]=e,this._partialAppIdDataUpdate({hostIndexes:i}),e},r.prototype._incrementHostIndex=function(e){return this._setHostIndexByType((this._getHostIndexByType(e)+1)%this.hosts[e].length,e)},r.prototype._incrementTimeoutMultipler=function(){var e=Math.max(this._timeoutMultiplier+1,4);return this._partialAppIdDataUpdate({timeoutMultiplier:e})},r.prototype._getTimeoutsForRequest=function(e){return{connect:this._timeouts.connect*this._timeoutMultiplier,complete:this._timeouts[e]*this._timeoutMultiplier}}},function(e,t,n){(function(t){function r(e,t){return c("localStorage failed with",t),a(),o=l,o.get(e)}function i(e,t){return 1===arguments.length?o.get(e):o.set(e,t)}function s(){try{return"localStorage"in t&&null!==t.localStorage?(t.localStorage[u]||t.localStorage.setItem(u,JSON.stringify({})),!0):!1}catch(e){return!1}}function a(){try{t.localStorage.removeItem(u)}catch(e){}}var o,c=n(25)("algoliasearch:src/hostIndexState.js"),u="algoliasearch-client-js",l={state:{},set:function(e,t){return this.state[e]=t,this.state[e]},get:function(e){return this.state[e]||null}},h={set:function(e,n){l.set(e,n);try{var i=JSON.parse(t.localStorage[u]);return i[e]=n,t.localStorage[u]=JSON.stringify(i),i[e]}catch(s){return r(e,s)}},get:function(e){try{return JSON.parse(t.localStorage[u])[e]||null}catch(n){return r(e,n)}}};o=s()?h:l,e.exports={get:i,set:i,supportsLocalStorage:s}}).call(t,function(){return this}())},function(e,t,n){(function(r){function i(){return"undefined"!=typeof window&&window.process&&"renderer"===window.process.type?!0:"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function s(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,s=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(s=i))}),e.splice(s,0,r)}}function a(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(n){}}function c(){var e;try{e=t.storage.debug}catch(n){}return!e&&"undefined"!=typeof r&&"env"in r&&(e={NODE_ENV:"production"}.DEBUG),e}function u(){try{return window.localStorage}catch(e){}}t=e.exports=n(27),t.log=a,t.formatArgs=s,t.save=o,t.load=c,t.useColors=i,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:u(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},t.enable(c())}).call(t,n(26))},function(e){function t(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function r(e){if(u===setTimeout)return setTimeout(e,0);if((u===t||!u)&&setTimeout)return u=setTimeout,setTimeout(e,0);try{return u(e,0)}catch(n){try{return u.call(null,e,0)}catch(n){return u.call(this,e,0)}}}function i(e){if(l===clearTimeout)return clearTimeout(e);if((l===n||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(e);try{return l(e)}catch(t){try{return l.call(null,e)}catch(t){return l.call(this,e)}}}function s(){p&&f&&(p=!1,f.length?d=f.concat(d):m=-1,d.length&&a())}function a(){if(!p){var e=r(s);p=!0;for(var t=d.length;t;){for(f=d,d=[];++m<t;)f&&f[m].run();m=-1,t=d.length}f=null,p=!1,i(e)}}function o(e,t){this.fun=e,this.array=t}function c(){}var u,l,h=e.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:t}catch(e){u=t}try{l="function"==typeof clearTimeout?clearTimeout:n}catch(e){l=n}}();var f,d=[],p=!1,m=-1;h.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];d.push(new o(e,t)),1!==d.length||p||r(a)},o.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=c,h.addListener=c,h.once=c,h.off=c,h.removeListener=c,h.removeAllListeners=c,h.emit=c,h.prependListener=c,h.prependOnceListener=c,h.listeners=function(){return[]},h.binding=function(){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(e,t,n){function r(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}function i(e){function n(){if(n.enabled){var e=n,r=+new Date,i=r-(u||r);e.diff=i,e.prev=u,e.curr=r,u=r;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var o=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;o++;var i=t.formatters[r];if("function"==typeof i){var a=s[o];n=i.call(e,a),s.splice(o,1),o--}return n}),t.formatArgs.call(e,s);var c=n.log||t.log||console.log.bind(console);c.apply(e,s)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=r(e),"function"==typeof t.init&&t.init(n),n}function s(e){t.save(e),t.names=[],t.skips=[];for(var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length,i=0;r>i;i++)n[i]&&(e=n[i].replace(/\*/g,".*?"),"-"===e[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))}function a(){t.enable("")}function o(e){var n,r;for(n=0,r=t.skips.length;r>n;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;r>n;n++)if(t.names[n].test(e))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}t=e.exports=i.debug=i["default"]=i,t.coerce=c,t.disable=a,t.enable=s,t.enabled=o,t.humanize=n(28),t.names=[],t.skips=[],t.formatters={};var u},function(e){function t(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*u;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*o;case"minutes":case"minute":case"mins":case"min":case"m":return n*a;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return void 0}}}}function n(e){return e>=c?Math.round(e/c)+"d":e>=o?Math.round(e/o)+"h":e>=a?Math.round(e/a)+"m":e>=s?Math.round(e/s)+"s":e+"ms"}function r(e){return i(e,c,"day")||i(e,o,"hour")||i(e,a,"minute")||i(e,s,"second")||e+" ms"}function i(e,t,n){return t>e?void 0:1.5*t>e?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var s=1e3,a=60*s,o=60*a,c=24*o,u=365.25*c;e.exports=function(e,i){i=i||{};var s=typeof e;if("string"===s&&e.length>0)return t(e);if("number"===s&&isNaN(e)===!1)return i["long"]?r(e):n(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){function r(e,t,n){var r={};return n=n||{},n.hosts=n.hosts||["analytics.algolia.com","analytics.algolia.com","analytics.algolia.com","analytics.algolia.com"],n.protocol=n.protocol||"https:",r.as=i(e,t,n),r.getABTests=function(e,t){var n=n||{},r=n.offset||0,i=n.limit||10;return this.as._jsonRequest({method:"GET",url:"/2/abtests?offset="+encodeURIComponent(r)+"&limit="+encodeURIComponent(i),hostType:"read",forceAuthHeaders:!0,callback:t})},r.getABTest=function(e,t){return this.as._jsonRequest({method:"GET",url:"/2/abtests/"+encodeURIComponent(e),hostType:"read",forceAuthHeaders:!0,callback:t})},r.addABTest=function(e,t){return this.as._jsonRequest({method:"POST",url:"/2/abtests",body:e,hostType:"read",forceAuthHeaders:!0,callback:t})},r.stopABTest=function(e,t){return this.as._jsonRequest({method:"POST",url:"/2/abtests/"+encodeURIComponent(e)+"/stop",hostType:"read",forceAuthHeaders:!0,callback:t})},r.deleteABTest=function(e,t){return this.as._jsonRequest({method:"DELETE",url:"/2/abtests/"+encodeURIComponent(e),hostType:"write",forceAuthHeaders:!0,callback:t})},r.waitTask=function(e,t,n){return this.as.initIndex(e).waitTask(t,n)},r}e.exports=r;var i=n(3)},function(e,t,n){"use strict";var r=n(31),i=r.Promise||n(32).Promise;e.exports=function(e,t){function s(e,t,r){var i=n(14);return r=i(r||{}),r._ua=r._ua||s.ua,new a(e,t,r)}function a(){e.apply(this,arguments)}var o=n(6),c=n(9),u=n(34),l=n(36),h=n(37);t=t||"",s.version=n(40),s.ua="Algolia for JavaScript ("+s.version+"); "+t,s.initPlaces=h(s),r.__algolia={debug:n(25),algoliasearch:s};var f={hasXMLHttpRequest:"XMLHttpRequest"in r,hasXDomainRequest:"XDomainRequest"in r};return f.hasXMLHttpRequest&&(f.cors="withCredentials"in new XMLHttpRequest),o(a,e),a.prototype._request=function(e,t){return new i(function(n,r){function i(){if(!p){clearTimeout(d);var e;try{e={body:JSON.parse(g.responseText),responseText:g.responseText,statusCode:g.status,headers:g.getAllResponseHeaders&&g.getAllResponseHeaders()||{}}}catch(t){e=new c.UnparsableJSON({more:g.responseText})}e instanceof c.UnparsableJSON?r(e):n(e)}}function s(e){p||(clearTimeout(d),r(new c.Network({more:e})))}function a(){p=!0,g.abort(),r(new c.RequestTimeout)}function o(){v=!0,clearTimeout(d),d=setTimeout(a,t.timeouts.complete)}function l(){v||o()}function h(){!v&&g.readyState>1&&o()}if(!f.cors&&!f.hasXDomainRequest)return void r(new c.Network("CORS not supported"));e=u(e,t.headers);var d,p,m=t.body,g=f.cors?new XMLHttpRequest:new XDomainRequest,v=!1;d=setTimeout(a,t.timeouts.connect),g.onprogress=l,"onreadystatechange"in g&&(g.onreadystatechange=h),g.onload=i,g.onerror=s,g instanceof XMLHttpRequest?(g.open(t.method,e,!0),t.forceAuthHeaders&&(g.setRequestHeader("x-algolia-application-id",t.headers["x-algolia-application-id"]),g.setRequestHeader("x-algolia-api-key",t.headers["x-algolia-api-key"]))):g.open(t.method,e),f.cors&&(m&&("POST"===t.method?g.setRequestHeader("content-type","application/x-www-form-urlencoded"):g.setRequestHeader("content-type","application/json")),g.setRequestHeader("accept","application/json")),
  m?g.send(m):g.send()})},a.prototype._request.fallback=function(e,t){return e=u(e,t.headers),new i(function(n,r){l(e,t,function(e,t){return e?void r(e):void n(t)})})},a.prototype._promise={reject:function(e){return i.reject(e)},resolve:function(e){return i.resolve(e)},delay:function(e){return new i(function(t){setTimeout(t,e)})},all:function(e){return i.all(e)}},s}},function(e,t){(function(t){var n;n="undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(t,function(){return this}())},function(e,t,n){(function(t,r){!function(t,n){e.exports=n()}(this,function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function i(e){return"function"==typeof e}function s(e){K=e}function a(e){z=e}function o(){return function(){return t.nextTick(f)}}function c(){return"undefined"!=typeof W?function(){W(f)}:h()}function u(){var e=0,t=new G(f),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function l(){var e=new MessageChannel;return e.port1.onmessage=f,function(){return e.port2.postMessage(0)}}function h(){var e=setTimeout;return function(){return e(f,1)}}function f(){for(var e=0;V>e;e+=2){var t=ee[e],n=ee[e+1];t(n),ee[e]=void 0,ee[e+1]=void 0}V=0}function d(){try{var e=n(33);return W=e.runOnLoop||e.runOnContext,c()}catch(t){return h()}}function p(e,t){var n=this,r=new this.constructor(g);void 0===r[ne]&&O(r);var i=n._state;if(i){var s=arguments[i-1];z(function(){return k(i,r,s,n._result)})}else C(n,r,e,t);return r}function m(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var n=new t(g);return _(n,e),n}function g(){}function v(){return new TypeError("You cannot resolve a promise with itself")}function y(){return new TypeError("A promises callback cannot return that same promise.")}function b(e){try{return e.then}catch(t){return ae.error=t,ae}}function w(e,t,n,r){try{e.call(t,n,r)}catch(i){return i}}function R(e,t,n){z(function(e){var r=!1,i=w(n,t,function(n){r||(r=!0,t!==n?_(e,n):T(e,n))},function(t){r||(r=!0,F(e,t))},"Settle: "+(e._label||" unknown promise"));!r&&i&&(r=!0,F(e,i))},e)}function x(e,t){t._state===ie?T(e,t._result):t._state===se?F(e,t._result):C(t,void 0,function(t){return _(e,t)},function(t){return F(e,t)})}function S(e,t,n){t.constructor===e.constructor&&n===p&&t.constructor.resolve===m?x(e,t):n===ae?(F(e,ae.error),ae.error=null):void 0===n?T(e,t):i(n)?R(e,t,n):T(e,t)}function _(t,n){t===n?F(t,v()):e(n)?S(t,n,b(n)):T(t,n)}function P(e){e._onerror&&e._onerror(e._result),N(e)}function T(e,t){e._state===re&&(e._result=t,e._state=ie,0!==e._subscribers.length&&z(N,e))}function F(e,t){e._state===re&&(e._state=se,e._result=t,z(P,e))}function C(e,t,n,r){var i=e._subscribers,s=i.length;e._onerror=null,i[s]=t,i[s+ie]=n,i[s+se]=r,0===s&&e._state&&z(N,e)}function N(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,i=void 0,s=e._result,a=0;a<t.length;a+=3)r=t[a],i=t[a+n],r?k(n,r,i,s):i(s);e._subscribers.length=0}}function j(){this.error=null}function E(e,t){try{return e(t)}catch(n){return oe.error=n,oe}}function k(e,t,n,r){var s=i(n),a=void 0,o=void 0,c=void 0,u=void 0;if(s){if(a=E(n,r),a===oe?(u=!0,o=a.error,a.error=null):c=!0,t===a)return void F(t,y())}else a=r,c=!0;t._state!==re||(s&&c?_(t,a):u?F(t,o):e===ie?T(t,a):e===se&&F(t,a))}function I(e,t){try{t(function(t){_(e,t)},function(t){F(e,t)})}catch(n){F(e,n)}}function A(){return ce++}function O(e){e[ne]=ce++,e._state=void 0,e._result=void 0,e._subscribers=[]}function L(){return new Error("Array Methods must be provided an Array")}function L(){return new Error("Array Methods must be provided an Array")}function M(e){return new ue(this,e).promise}function D(e){var t=this;return new t($(e)?function(n,r){for(var i=e.length,s=0;i>s;s++)t.resolve(e[s]).then(n,r)}:function(e,t){return t(new TypeError("You must pass an array to race."))})}function H(e){var t=this,n=new t(g);return F(n,e),n}function q(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function U(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function B(){var e=void 0;if("undefined"!=typeof r)e=r;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=e.Promise;if(n){var i=null;try{i=Object.prototype.toString.call(n.resolve())}catch(t){}if("[object Promise]"===i&&!n.cast)return}e.Promise=le}var Q=void 0;Q=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var $=Q,V=0,W=void 0,K=void 0,z=function(e,t){ee[V]=e,ee[V+1]=t,V+=2,2===V&&(K?K(f):te())},J="undefined"!=typeof window?window:void 0,X=J||{},G=X.MutationObserver||X.WebKitMutationObserver,Y="undefined"==typeof self&&"undefined"!=typeof t&&"[object process]"==={}.toString.call(t),Z="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,ee=new Array(1e3),te=void 0;te=Y?o():G?u():Z?l():void 0===J?d():h();var ne=Math.random().toString(36).substring(16),re=void 0,ie=1,se=2,ae=new j,oe=new j,ce=0,ue=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(g),this.promise[ne]||O(this.promise),$(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?T(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&T(this.promise,this._result))):F(this.promise,L())}return e.prototype._enumerate=function(e){for(var t=0;this._state===re&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===m){var i=b(e);if(i===p&&e._state!==re)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(n===le){var s=new n(g);S(s,e,i),this._willSettleAt(s,t)}else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===re&&(this._remaining--,e===se?F(r,n):this._result[t]=n),0===this._remaining&&T(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;C(e,void 0,function(e){return n._settledAt(ie,t,e)},function(e){return n._settledAt(se,t,e)})},e}(),le=function(){function e(t){this[ne]=A(),this._result=this._state=void 0,this._subscribers=[],g!==t&&("function"!=typeof t&&q(),this instanceof e?I(this,t):U())}return e.prototype["catch"]=function(e){return this.then(null,e)},e.prototype["finally"]=function(e){var t=this,n=t.constructor;return t.then(function(t){return n.resolve(e()).then(function(){return t})},function(t){return n.resolve(e()).then(function(){throw t})})},e}();return le.prototype.then=p,le.all=M,le.race=D,le.resolve=m,le.reject=H,le._setScheduler=s,le._setAsap=a,le._asap=z,le.polyfill=B,le.Promise=le,le})}).call(t,n(26),function(){return this}())},function(){},function(e,t,n){"use strict";function r(e,t){return e+=/\?/.test(e)?"&":"?",e+i(t)}e.exports=r;var i=n(35)},function(e){"use strict";function t(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,s,a,o){return s=s||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e?t(i(e),function(i){var o=encodeURIComponent(n(i))+a;return r(e[i])?t(e[i],function(e){return o+encodeURIComponent(n(e))}).join(s):o+encodeURIComponent(n(e[i]))}).join(s):o?encodeURIComponent(n(o))+a+encodeURIComponent(n(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){"use strict";function r(e,t,n){function r(){t.debug("JSONP: success"),g||f||(g=!0,h||(t.debug("JSONP: Fail. Script loaded but did not call the callback"),o(),n(new i.JSONPScriptFail)))}function a(){("loaded"===this.readyState||"complete"===this.readyState)&&r()}function o(){clearTimeout(v),p.onload=null,p.onreadystatechange=null,p.onerror=null,d.removeChild(p)}function c(){try{delete window[m],delete window[m+"_loaded"]}catch(e){window[m]=window[m+"_loaded"]=void 0}}function u(){t.debug("JSONP: Script timeout"),f=!0,o(),n(new i.RequestTimeout)}function l(){t.debug("JSONP: Script error"),g||f||(o(),n(new i.JSONPScriptError))}if("GET"!==t.method)return void n(new Error("Method "+t.method+" "+e+" is not supported by JSONP."));t.debug("JSONP: start");var h=!1,f=!1;s+=1;var d=document.getElementsByTagName("head")[0],p=document.createElement("script"),m="algoliaJSONP_"+s,g=!1;window[m]=function(e){return c(),f?void t.debug("JSONP: Late answer, ignoring"):(h=!0,o(),void n(null,{body:e,responseText:JSON.stringify(e)}))},e+="&callback="+m,t.jsonBody&&t.jsonBody.params&&(e+="&"+t.jsonBody.params);var v=setTimeout(u,t.timeouts.complete);p.onreadystatechange=a,p.onload=r,p.onerror=l,p.async=!0,p.defer=!0,p.src=e,d.appendChild(p)}e.exports=r;var i=n(9),s=0},function(e,t,n){function r(e){return function(t,r,a){var o=n(14);a=a&&o(a)||{},a.hosts=a.hosts||["places-dsn.algolia.net","places-1.algolianet.com","places-2.algolianet.com","places-3.algolianet.com"],(0===arguments.length||"object"==typeof t||void 0===t)&&(t="",r="",a._allowEmptyCredentials=!0);var c=e(t,r,a),u=c.initIndex("places");return u.search=s("query","/1/places/query"),u.reverse=function(e,t){var n=i.encode(e);return this.as._jsonRequest({method:"GET",url:"/1/places/reverse?"+n,hostType:"read",callback:t})},u.getObject=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/places/"+encodeURIComponent(e),hostType:"read",callback:t})},u}}e.exports=r;var i=n(38),s=n(8)},function(e,t,n){"use strict";t.decode=t.parse=n(39),t.encode=t.stringify=n(35)},function(e){"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,i,s){r=r||"&",i=i||"=";var a={};if("string"!=typeof e||0===e.length)return a;var o=/\+/g;e=e.split(r);var c=1e3;s&&"number"==typeof s.maxKeys&&(c=s.maxKeys);var u=e.length;c>0&&u>c&&(u=c);for(var l=0;u>l;++l){var h,f,d,p,m=e[l].replace(o,"%20"),g=m.indexOf(i);g>=0?(h=m.substr(0,g),f=m.substr(g+1)):(h=m,f=""),d=decodeURIComponent(h),p=decodeURIComponent(f),t(a,d)?n(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e){"use strict";e.exports="3.35.1"},function(e,t,n){"use strict";function r(e,t,n){return new i(e,t,n)}var i=n(42),s=n(43),a=n(52);r.version=n(61),r.AlgoliaSearchHelper=i,r.SearchParameters=s,r.SearchResults=a,e.exports=r},function(e,t,n){"use strict";function r(e,t,n){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+d+")"),this.setClient(e);var r=n||{};r.index=t,this.state=a.make(r),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}function i(e){if(0>e)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function s(){return this.state.page}var a=n(43),o=n(52),c=n(58),u=n(60),l=n(22),h=n(59),f=n(50),d=n(61);h(r,l.EventEmitter),r.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},r.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},r.prototype.getQuery=function(){var e=this.state;return u._getHitsSearchParams(e)},r.prototype.searchOnce=function(e,t){var n=e?this.state.setQueryParameters(e):this.state,r=u._getQueries(n.index,n),i=this;return this._currentNbQueries++,this.emit("searchOnce",{state:n}),t?void this.client.search(r).then(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(null,new o(n,e.results),n)})["catch"](function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(e,null,n)}):this.client.search(r).then(function(e){return i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),{content:new o(n,e.results),state:n,_originalResponse:e}},function(e){throw i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),e})},r.prototype.searchForFacetValues=function(e,t,n,r){var i="function"==typeof this.client.searchForFacetValues;if(!i&&"function"!=typeof this.client.initIndex)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var s=this.state.setQueryParameters(r||{}),a=s.isDisjunctiveFacet(e),o=u.getSearchForFacetQuery(e,t,n,s);this._currentNbQueries++;var c=this;this.emit("searchForFacetValues",{state:s,facet:e,query:t});var l=i?this.client.searchForFacetValues([{indexName:s.index,params:o}]):this.client.initIndex(s.index).searchForFacetValues(o);return l.then(function(t){return c._currentNbQueries--,0===c._currentNbQueries&&c.emit("searchQueueEmpty"),t=Array.isArray(t)?t[0]:t,t.facetHits.forEach(function(t){t.isRefined=a?s.isDisjunctiveFacetRefined(e,t.value):s.isFacetRefined(e,t.value)}),t},function(e){throw c._currentNbQueries--,0===c._currentNbQueries&&c.emit("searchQueueEmpty"),e})},r.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},r.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},r.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},r.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},r.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},r.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},r.prototype.addNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,n),isPageReset:!0}),this},r.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},r.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},r.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},r.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},r.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},r.prototype.removeNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,n),isPageReset:!0}),this},r.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},r.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},r.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},r.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},r.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},r.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},r.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},r.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},r.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},r.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},r.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},r.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},r.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},r.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},r.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},r.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},r.prototype.setCurrentPage=i,r.prototype.setPage=i,r.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},r.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},r.prototype.setState=function(e){return this._change({state:a.make(e),isPageReset:!1}),this},r.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new a(e),this},r.prototype.hasRefinements=function(e){return f(this.state.getNumericRefinements(e))?!0:this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):this.state.isHierarchicalFacet(e)?this.state.isHierarchicalFacetRefined(e):!1},r.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},r.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},r.prototype.hasTag=function(e){return this.state.isTagRefined(e)},r.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},r.prototype.getIndex=function(){return this.state.index},r.prototype.getCurrentPage=s,r.prototype.getPage=s,r.prototype.getTags=function(){return this.state.tagRefinements},r.prototype.getRefinements=function(e){var t=[];if(this.state.isConjunctiveFacet(e)){var n=this.state.getConjunctiveRefinements(e);n.forEach(function(e){t.push({value:e,type:"conjunctive"})});var r=this.state.getExcludeRefinements(e);r.forEach(function(e){t.push({value:e,type:"exclude"})})}else if(this.state.isDisjunctiveFacet(e)){var i=this.state.getDisjunctiveRefinements(e);i.forEach(function(e){t.push({value:e,type:"disjunctive"})})}var s=this.state.getNumericRefinements(e);return Object.keys(s).forEach(function(e){var n=s[e];t.push({value:n,operator:e,type:"numeric"})}),t},r.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},r.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},r.prototype._search=function(e){var t=this.state,n=[],r=[];e.onlyWithDerivedHelpers||(r=u._getQueries(t.index,t),n.push({state:t,queriesCount:r.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map(function(e){var r=e.getModifiedState(t),i=u._getQueries(r.index,r);return n.push({state:r,queriesCount:i.length,helper:e}),e.emit("search",{state:r,results:e.lastResults}),i}),s=Array.prototype.concat.apply(r,i),a=this._queryId++;this._currentNbQueries++;try{this.client.search(s).then(this._dispatchAlgoliaResponse.bind(this,n,a))["catch"](this._dispatchAlgoliaError.bind(this,a))}catch(o){this.emit("error",{error:o})}},r.prototype._dispatchAlgoliaResponse=function(e,t,n){if(!(t<this._lastQueryIdReceived)){this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,0===this._currentNbQueries&&this.emit("searchQueueEmpty");var r=n.results.slice();e.forEach(function(e){var t=e.state,n=e.queriesCount,i=e.helper,s=r.splice(0,n),a=i.lastResults=new o(t,s);i.emit("result",{results:a,state:t})})}},r.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"))},r.prototype.containsRefinement=function(e,t,n,r){return e||0!==t.length||0!==n.length||0!==r.length},r.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&this.state.disjunctiveRefinements[e].length>0},r.prototype._change=function(e){var t=e.state,n=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:n}))},r.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},r.prototype.setClient=function(e){return this.client===e?this:("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+d+")"),this.client=e,this)},r.prototype.getClient=function(){return this.client},r.prototype.derive=function(e){var t=new c(this,e);return this.derivedHelpers.push(t),t},r.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},r.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=r},function(e,t,n){"use strict";function r(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(e,n){return r(t[n],e)}):e===t}function i(e,t){return u(e,function(e){return r(e,t)})}function s(e){var t=e?s._parseNumbers(e):{};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 n=this;Object.keys(t).forEach(function(e){var r=-1!==s.PARAMETERS.indexOf(e),i=void 0!==t[e];!r&&i&&(n[e]=t[e])})}var a=n(44),o=n(45),c=n(46),u=n(47),l=n(48),h=n(49),f=n(50),d=n(51);s.PARAMETERS=Object.keys(new s),s._parseNumbers=function(e){if(e instanceof s)return e;var t={},n=["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"];if(n.forEach(function(n){var r=e[n];if("string"==typeof r){var i=parseFloat(r);t[n]=isNaN(i)?r:i}}),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map(function(e){return Array.isArray(e)?e.map(function(e){return parseFloat(e)}):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],s=i.map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?parseFloat(e):e}):"string"==typeof e?parseFloat(e):e});r[t][e]=s})}),t.numericRefinements=r}return a({},e,t)},s.make=function(e){var t=new s(e),n=e.hierarchicalFacets||[];return n.forEach(function(e){if(e.rootPath){var n=t.getHierarchicalRefinement(e.name);n.length>0&&0!==n[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),n=t.getHierarchicalRefinement(e.name),0===n.length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}}),t},s.validate=function(e,t){var n=t||{};return e.tagFilters&&n.tagRefinements&&n.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&n.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&n.numericRefinements&&f(n.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):f(e.numericRefinements)&&n.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},s.prototype={constructor:s,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,n){var r=l(n);if(this.isNumericRefined(e,t,r))return this;var i=a({},this.numericRefinements);return i[e]=a({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(r)):i[e][t]=[r],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,n){return void 0!==n?this.isNumericRefined(e,t,n)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(i,s){return s===e&&i.op===t&&r(i.val,l(n))})}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,r){return r===e&&n.op===t})}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(t,n){return n===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 f(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof e)return f(this.numericRefinements[e])?h(this.numericRefinements,[e]):this.numericRefinements;if("function"==typeof e){var t=!1,n=this.numericRefinements,r=Object.keys(n).reduce(function(r,i){var s=n[i],a={};return s=s||{},Object.keys(s).forEach(function(n){var r=s[n]||[],o=[];r.forEach(function(t){var r=e({val:t,op:n},i,"numeric");r||o.push(t)}),o.length!==r.length&&(t=!0),a[n]=o}),r[i]=a,r},{});return t?r: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 new 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 new 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 new 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 new 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 new 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 new 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 new 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 new 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 new 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 new 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 new 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 new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),r={},i=void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+n));return r[e]=i?-1===t.indexOf(n)?[]:[t.slice(0,t.lastIndexOf(n))]:[t],this.setQueryParameters({hierarchicalFacetsRefinements:o({},r,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var n={};return n[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:o({},n,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:o({},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):!1},isExcludeRefined:function(e,t){return this.isConjunctiveFacet(e)?d.isRefined(this.facetsExcludes,e,t):!1},isDisjunctiveFacetRefined:function(e,t){return this.isDisjunctiveFacet(e)?d.isRefined(this.disjunctiveFacetsRefinements,e,t):!1},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var n=this.getHierarchicalRefinement(e);return t?-1!==n.indexOf(t):n.length>0},isNumericRefined:function(e,t,n){if(void 0===n&&void 0===t)return!!this.numericRefinements[e];var r=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===n||!r)return r;var s=l(n),a=void 0!==i(this.numericRefinements[e][t],s);return r&&a},isTagRefined:function(e){return-1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=c(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())},getRefinedHierarchicalFacets:function(){var e=this;return c(this.hierarchicalFacets.map(function(e){return e.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(t){return e.hierarchicalFacetsRefinements[t].length>0}))},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(t){return-1===e.indexOf(t)})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},n=this;return Object.keys(this).forEach(function(r){var i=n[r];-1===e.indexOf(r)&&void 0!==i&&(t[r]=i)}),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var n={};return n[e]=t,this.setQueryParameters(n)},setQueryParameters:function(e){if(!e)return this;var t=s.validate(this,e);if(t)throw t;var n=this,r=s._parseNumbers(e),i=Object.keys(this).reduce(function(e,t){return e[t]=n[t],e},{}),a=Object.keys(r).reduce(function(e,t){var n=void 0!==e[t],i=void 0!==r[t];return n&&!i?h(e,[t]):(i&&(e[t]=r[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:!0},getHierarchicalFacetByName:function(e){return u(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 n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),r=t.split(n);return r.map(function(e){return e.trim()})},toString:function(){return JSON.stringify(this,null,2)}},e.exports=s},function(e){"use strict";function t(e){return"object"==typeof e&&null!==e?r(Array.isArray(e)?[]:{},e):e}function n(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}function r(e,i){if(e===i)return e;for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)){var a=i[s],o=e[s];("undefined"==typeof o||"undefined"!=typeof a)&&(e[s]=n(o)&&n(a)?r(o,a):t(a))}return e}function i(e){n(e)||(e={});for(var t=1,i=arguments.length;i>t;t++){var s=arguments[t];n(s)&&r(e,s)}return e}e.exports=i},function(e){"use strict";e.exports=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight(function(e,t){return Object.keys(Object(t)).forEach(function(n){void 0!==t[n]&&(void 0!==e[n]&&delete e[n],e[n]=t[n])}),e},{})}},function(e){"use strict";function t(e,t){return e.filter(function(n,r){return t.indexOf(n)>-1&&e.indexOf(n)===r})}e.exports=t},function(e){"use strict";e.exports=function(e,t){if(!Array.isArray(e))return void 0;for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}},function(e){"use strict";function t(e){if("number"==typeof e)return e;if("string"==typeof e)return parseFloat(e);if(Array.isArray(e))return e.map(t);throw new Error("The value should be a number, a parsable string or an array of those.")}e.exports=t},function(e){"use strict";function t(e,t){if(null===e)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}e.exports=t},function(e){"use strict";function t(e){return e&&Object.keys(e).length>0}e.exports=t},function(e,t,n){"use strict";var r=n(45),i=n(49),s=n(50),a={addRefinement:function(e,t,n){if(a.isRefined(e,t,n))return e;var i=""+n,s=e[t]?e[t].concat(i):[i],o={};return o[t]=s,r({},o,e)},removeRefinement:function(e,t,n){if(void 0===n)return a.clearRefinement(e,function(e,n){return t===n});var r=""+n;return a.clearRefinement(e,function(e,n){return t===n&&r===e})},toggleRefinement:function(e,t,n){if(void 0===n)throw new Error("toggleRefinement should be used with a value");return a.isRefined(e,t,n)?a.removeRefinement(e,t,n):a.addRefinement(e,t,n)},clearRefinement:function(e,t,n){if(void 0===t)return s(e)?{}:e;if("string"==typeof t)return i(e,[t]);if("function"==typeof t){var r=!1,a=Object.keys(e).reduce(function(i,s){var a=e[s]||[],o=a.filter(function(e){return!t(e,s,n)});return o.length!==a.length&&(r=!0),i[s]=o,i},{});return r?a:e}},isRefined:function(e,t,n){var r=!!e[t]&&e[t].length>0;if(void 0===n||!r)return r;var i=""+n;return-1!==e[t].indexOf(i)}};e.exports=a},function(e,t,n){"use strict";function r(e){var t={};return e.forEach(function(e,n){t[e]=n}),t}function i(e,t,n){t&&t[n]&&(e.stats=t[n])}function s(e,t){return v(e,function(e){var n=e.attributes||[];return n.indexOf(t)>-1})}function a(e,t){var n=t[0];this._rawResults=t;var a=this;Object.keys(n).forEach(function(e){a[e]=n[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 o=e.getRefinedDisjunctiveFacets(),c=r(e.facets),u=r(e.disjunctiveFacets),l=1,h=n.facets||{};Object.keys(h).forEach(function(t){var r=h[t],o=s(e.hierarchicalFacets,t);if(o){var l=o.attributes.indexOf(t),f=y(e.hierarchicalFacets,function(e){return e.name===o.name});a.hierarchicalFacets[f][l]={attribute:t,data:r,exhaustive:n.exhaustiveFacetsCount}}else{var d,p=-1!==e.disjunctiveFacets.indexOf(t),m=-1!==e.facets.indexOf(t);p&&(d=u[t],a.disjunctiveFacets[d]={name:t,data:r,exhaustive:n.exhaustiveFacetsCount},i(a.disjunctiveFacets[d],n.facets_stats,t)),m&&(d=c[t],a.facets[d]={name:t,data:r,exhaustive:n.exhaustiveFacetsCount},i(a.facets[d],n.facets_stats,t))}}),this.hierarchicalFacets=g(this.hierarchicalFacets),o.forEach(function(r){var s=t[l],o=s&&s.facets?s.facets:{},c=e.getHierarchicalFacetByName(r);Object.keys(o).forEach(function(t){var r,l=o[t];if(c){r=y(e.hierarchicalFacets,function(e){return e.name===c.name});var h=y(a.hierarchicalFacets[r],function(e){return e.attribute===t});if(-1===h)return;a.hierarchicalFacets[r][h].data=d({},a.hierarchicalFacets[r][h].data,l)}else{r=u[t];var f=n.facets&&n.facets[t]||{};a.disjunctiveFacets[r]={name:t,data:p({},l,f),exhaustive:s.exhaustiveFacetsCount},i(a.disjunctiveFacets[r],s.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach(function(n){!a.disjunctiveFacets[r].data[n]&&e.disjunctiveFacetsRefinements[t].indexOf(n)>-1&&(a.disjunctiveFacets[r].data[n]=0)})}}),l++}),e.getRefinedHierarchicalFacets().forEach(function(n){var r=e.getHierarchicalFacetByName(n),i=e._getHierarchicalFacetSeparator(r),s=e.getHierarchicalRefinement(n);if(!(0===s.length||s[0].split(i).length<2)){var o=t[l],c=o&&o.facets?o.facets:{};Object.keys(c).forEach(function(t){var n=c[t],o=y(e.hierarchicalFacets,function(e){return e.name===r.name}),u=y(a.hierarchicalFacets[o],function(e){return e.attribute===t});if(-1!==u){var l={};if(s.length>0){var h=s[0].split(i)[0];l[h]=a.hierarchicalFacets[o][u].data[h]}a.hierarchicalFacets[o][u].data=p(l,n,a.hierarchicalFacets[o][u].data)}}),l++}}),Object.keys(e.facetsExcludes).forEach(function(t){var r=e.facetsExcludes[t],i=c[t];a.facets[i]={name:t,data:n.facets[t],exhaustive:n.exhaustiveFacetsCount},r.forEach(function(e){a.facets[i]=a.facets[i]||{name:t},a.facets[i].data=a.facets[i].data||{},a.facets[i].data[e]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(w(e)),this.facets=g(this.facets),this.disjunctiveFacets=g(this.disjunctiveFacets),this._state=e}function o(e,t){function n(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var r=v(e.facets,n);return r?Object.keys(r.data).map(function(n){return{name:n,count:r.data[n],isRefined:e._state.isFacetRefined(t,n),isExcluded:e._state.isExcludeRefined(t,n)}}):[]}if(e._state.isDisjunctiveFacet(t)){var i=v(e.disjunctiveFacets,n);return i?Object.keys(i.data).map(function(n){return{name:n,count:i.data[n],isRefined:e._state.isDisjunctiveFacetRefined(t,n)}}):[]}return e._state.isHierarchicalFacet(t)?v(e.hierarchicalFacets,n):void 0}function c(e,t){if(!t.data||0===t.data.length)return t;var n=t.data.map(function(t){return c(e,t)}),r=e(n),i=d({},t,{data:r});return i}function u(e,t){return t.sort(e)}function l(e,t){var n=v(e,function(e){return e.name===t});return n&&n.stats}function h(e,t,n,r,i){var s=v(i,function(e){return e.name===n}),a=s&&s.data&&s.data[r]?s.data[r]:0,o=s&&s.exhaustive||!1;return{type:t,attributeName:n,name:r,count:a,exhaustive:o}}function f(e,t,n,r){var i=e.getHierarchicalFacetByName(t),s=e._getHierarchicalFacetSeparator(i),a=n.split(s),o=v(r,function(e){return e.name===t}),c=a.reduce(function(e,t){var n=e&&v(e.data,function(e){return e.name===t});return void 0!==n?n:e},o),u=c&&c.count||0,l=c&&c.exhaustive||!1,h=c&&c.path||"";return{type:"hierarchical",attributeName:t,name:h,count:u,exhaustive:l}}var d=n(44),p=n(45),m=n(53),g=n(54),v=n(47),y=n(55),b=n(56),w=n(57);a.prototype.getFacetByName=function(e){function t(t){return t.name===e}return v(this.facets,t)||v(this.disjunctiveFacets,t)||v(this.hierarchicalFacets,t)},a.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],a.prototype.getFacetValues=function(e,t){var n=o(this,e);if(!n)return void 0;var r=p({},t,{sortBy:a.DEFAULT_SORT});if(Array.isArray(r.sortBy)){var i=b(r.sortBy,a.DEFAULT_SORT);return Array.isArray(n)?m(n,i[0],i[1]):c(function(e){return m(e,i[0],i[1])},n)}if("function"==typeof r.sortBy)return Array.isArray(n)?n.sort(r.sortBy):c(function(e){return u(r.sortBy,e)},n);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},a.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?l(this.facets,e):this._state.isDisjunctiveFacet(e)?l(this.disjunctiveFacets,e):void 0},a.prototype.getRefinements=function(){var e=this._state,t=this,n=[];return Object.keys(e.facetsRefinements).forEach(function(r){e.facetsRefinements[r].forEach(function(i){n.push(h(e,"facet",r,i,t.facets))})}),Object.keys(e.facetsExcludes).forEach(function(r){e.facetsExcludes[r].forEach(function(i){n.push(h(e,"exclude",r,i,t.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(r){e.disjunctiveFacetsRefinements[r].forEach(function(i){n.push(h(e,"disjunctive",r,i,t.disjunctiveFacets))})}),Object.keys(e.hierarchicalFacetsRefinements).forEach(function(r){e.hierarchicalFacetsRefinements[r].forEach(function(i){n.push(f(e,r,i,t.hierarchicalFacets))})}),Object.keys(e.numericRefinements).forEach(function(t){var r=e.numericRefinements[t];Object.keys(r).forEach(function(e){r[e].forEach(function(r){n.push({type:"numeric",attributeName:t,name:r,numericValue:r,operator:e})})})}),e.tagRefinements.forEach(function(e){n.push({type:"tag",attributeName:"_tags",name:e})}),n},e.exports=a},function(e){"use strict";function t(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=void 0!==t,s=null===t;if(!s&&e>t||r&&i||!n)return 1;if(!r&&t>e||s&&n||!i)return-1}return 0}function n(e,n,r){if(!Array.isArray(e))return[];Array.isArray(r)||(r=[]);var i=e.map(function(e,t){return{criteria:n.map(function(t){return e[t]}),index:t,value:e}});return i.sort(function(e,n){for(var i=-1;++i<e.criteria.length;){var s=t(e.criteria[i],n.criteria[i]);if(s)return i>=r.length?s:"desc"===r[i]?-s:s}return e.index-n.index}),i.map(function(e){return e.value})}e.exports=n},function(e){"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},function(e){"use strict";e.exports=function(e,t){if(!Array.isArray(e))return-1;for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}},function(e,t,n){"use strict";var r=n(47);e.exports=function(e,t){var n=(t||[]).map(function(e){return e.split(":")});return e.reduce(function(e,t){var i=t.split(":"),s=r(n,function(e){return e[0]===i[0]});return i.length>1||!s?(e[0].push(i[0]),e[1].push(i[1]),e):(e[0].push(s[0]),e[1].push(s[1]),e)},[[],[]])}},function(e,t,n){"use strict";function r(e){return function(t,n){var r=e.hierarchicalFacets[n],s=e.hierarchicalFacetsRefinements[r.name]&&e.hierarchicalFacetsRefinements[r.name][0]||"",a=e._getHierarchicalFacetSeparator(r),o=e._getHierarchicalRootPath(r),c=e._getHierarchicalShowParentLevel(r),l=u(e._getHierarchicalFacetSortBy(r)),h=t.every(function(e){return e.exhaustive}),f=i(l,a,o,c,s),d=t;return o&&(d=t.slice(o.split(a).length)),d.reduce(f,{name:e.hierarchicalFacets[n].name,count:null,isRefined:!0,path:null,exhaustive:h,data:null})}}function i(e,t,n,r,i){return function(u,l,h){var f=u;if(h>0){var d=0;for(f=u;h>d;){var p=f&&Array.isArray(f.data)?f.data:[];f=c(p,function(e){return e.isRefined}),d++}}if(f){var m=Object.keys(l.data).map(function(e){return[e,l.data[e]]}).filter(function(e){var a=e[0];return s(a,f.path||n,i,t,n,r)});f.data=o(m.map(function(e){var n=e[0],r=e[1];return a(r,n,t,i,l.exhaustive)}),e[0],e[1])}return u}}function s(e,t,n,r,i,s){return!i||0===e.indexOf(i)&&i!==e?!i&&-1===e.indexOf(r)||i&&e.split(r).length-i.split(r).length===1||-1===e.indexOf(r)&&-1===n.indexOf(r)||0===n.indexOf(e)||0===e.indexOf(t+r)&&(s||0===e.indexOf(n)):!1}function a(e,t,n,r,i){var s=t.split(n);return{name:s[s.length-1].trim(),path:t,count:e,isRefined:r===t||0===r.indexOf(t+n),exhaustive:i,data:null}}e.exports=r;var o=n(53),c=n(47),u=n(56)},function(e,t,n){"use strict";function r(e,t){this.main=e,this.fn=t,this.lastResults=null}var i=n(22),s=n(59);s(r,i.EventEmitter),r.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},r.prototype.getModifiedState=function(e){return this.fn(e)},e.exports=r},function(e){"use strict";function t(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}e.exports=t},function(e,t,n){"use strict";var r=n(44),i={_getQueries:function(e,t){var n=[];return n.push({indexName:e,params:i._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach(function(r){n.push({indexName:e,params:i._getDisjunctiveFacetSearchParams(t,r)})}),t.getRefinedHierarchicalFacets().forEach(function(r){var s=t.getHierarchicalFacetByName(r),a=t.getHierarchicalRefinement(r),o=t._getHierarchicalFacetSeparator(s);a.length>0&&a[0].split(o).length>1&&n.push({indexName:e,params:i._getDisjunctiveFacetSearchParams(t,r,!0)})}),n},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(i._getHitsHierarchicalFacetsAttributes(e)),n=i._getFacetFilters(e),s=i._getNumericFilters(e),a=i._getTagFilters(e),o={facets:t,tagFilters:a};return n.length>0&&(o.facetFilters=n),s.length>0&&(o.numericFilters=s),r({},e.getQueryParams(),o)},_getDisjunctiveFacetSearchParams:function(e,t,n){var s=i._getFacetFilters(e,t,n),a=i._getNumericFilters(e,t),o=i._getTagFilters(e),c={hitsPerPage:1,page:0,attributesToRetrieve:[],attributesToHighlight:[],attributesToSnippet:[],tagFilters:o,analytics:!1,clickAnalytics:!1},u=e.getHierarchicalFacetByName(t);return c.facets=u?i._getDisjunctiveHierarchicalFacetAttribute(e,u,n):t,a.length>0&&(c.numericFilters=a),s.length>0&&(c.facetFilters=s),r({},e.getQueryParams(),c)},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var n=[];return Object.keys(e.numericRefinements).forEach(function(r){var i=e.numericRefinements[r]||{};Object.keys(i).forEach(function(e){var s=i[e]||[];t!==r&&s.forEach(function(t){if(Array.isArray(t)){var i=t.map(function(t){return r+e+t});n.push(i)}else n.push(r+e+t)})})}),n},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,n){var r=[],i=e.facetsRefinements||{};Object.keys(i).forEach(function(e){var t=i[e]||[];t.forEach(function(t){r.push(e+":"+t)})});var s=e.facetsExcludes||{};Object.keys(s).forEach(function(e){var t=s[e]||[];t.forEach(function(t){r.push(e+":-"+t)})});var a=e.disjunctiveFacetsRefinements||{};Object.keys(a).forEach(function(e){var n=a[e]||[];if(e!==t&&n&&0!==n.length){var i=[];n.forEach(function(t){i.push(e+":"+t)}),r.push(i)}});var o=e.hierarchicalFacetsRefinements||{};return Object.keys(o).forEach(function(i){var s=o[i]||[],a=s[0];if(void 0!==a){var c,u,l=e.getHierarchicalFacetByName(i),h=e._getHierarchicalFacetSeparator(l),f=e._getHierarchicalRootPath(l);if(t===i){if(-1===a.indexOf(h)||!f&&n===!0||f&&f.split(h).length===a.split(h).length)return;f?(u=f.split(h).length-1,a=f):(u=a.split(h).length-2,a=a.slice(0,a.lastIndexOf(h))),c=l.attributes[u]}else u=a.split(h).length-1,c=l.attributes[u];c&&r.push([c+":"+a])}}),r},_getHitsHierarchicalFacetsAttributes:function(e){var t=[];return e.hierarchicalFacets.reduce(function(t,n){var r=e.getHierarchicalRefinement(n.name)[0];if(!r)return t.push(n.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(n),s=r.split(i).length,a=n.attributes.slice(0,s+1);return t.concat(a)},t)},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,n){var r=e._getHierarchicalFacetSeparator(t);if(n===!0){var i=e._getHierarchicalRootPath(t),s=0;return i&&(s=i.split(r).length),[t.attributes[s]]}var a=e.getHierarchicalRefinement(t.name)[0]||"",o=a.split(r).length-1;return t.attributes.slice(0,o+1)},getSearchForFacetQuery:function(e,t,n,s){var a=s.isDisjunctiveFacet(e)?s.clearRefinements(e):s,o={facetQuery:t,facetName:e};return"number"==typeof n&&(o.maxFacetHits=n),r({},i._getHitsSearchParams(a),o)}};e.exports=i},function(e){"use strict";e.exports="3.2.2"},function(e,t,n){var r=n(63);r.Template=n(64).Template,r.template=r.Template,e.exports=r},function(e,t){!function(e){function t(e){"}"===e.n.substr(e.n.length-1)&&(e.n=e.n.substring(0,e.n.length-1))}function n(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function r(e,t,n){if(t.charAt(n)!=e.charAt(0))return!1;for(var r=1,i=e.length;i>r;r++)if(t.charAt(n+r)!=e.charAt(r))return!1;return!0}function i(t,n,r,o){var c=[],u=null,l=null,h=null;for(l=r[r.length-1];t.length>0;){if(h=t.shift(),l&&"<"==l.tag&&!(h.tag in R))throw new Error("Illegal content in < super tag.");if(e.tags[h.tag]<=e.tags.$||s(h,o))r.push(h),h.nodes=i(t,h.tag,r,o);else{if("/"==h.tag){if(0===r.length)throw new Error("Closing tag without opener: /"+h.n);if(u=r.pop(),h.n!=u.n&&!a(h.n,u.n,o))throw new Error("Nesting error: "+u.n+" vs. "+h.n);return u.end=h.i,c}"\n"==h.tag&&(h.last=0==t.length||"\n"==t[0].tag)}c.push(h)}if(r.length>0)throw new Error("missing closing tag: "+r.pop().n);return c}function s(e,t){for(var n=0,r=t.length;r>n;n++)if(t[n].o==e.n)return e.tag="#",!0}function a(e,t,n){for(var r=0,i=n.length;i>r;r++)if(n[r].c==e&&n[r].o==t)return!0}function o(e){var t=[];for(var n in e)t.push('"'+u(n)+'": function(c,p,t,i) {'+e[n]+"}");return"{ "+t.join(",")+" }"}function c(e){var t=[];for(var n in e.partials)t.push('"'+u(n)+'":{name:"'+u(e.partials[n].name)+'", '+c(e.partials[n])+"}");return"partials: {"+t.join(",")+"}, subs: "+o(e.subs)}function u(e){return e.replace(y,"\\\\").replace(m,'\\"').replace(g,"\\n").replace(v,"\\r").replace(b,"\\u2028").replace(w,"\\u2029")}function l(e){return~e.indexOf(".")?"d":"f"}function h(e,t){var n="<"+(t.prefix||""),r=n+e.n+x++;return t.partials[r]={name:e.n,partials:{}},t.code+='t.b(t.rp("'+u(r)+'",c,p,"'+(e.indent||"")+'"));',r}function f(e,t){t.code+="t.b(t.t(t."+l(e.n)+'("'+u(e.n)+'",c,p,0)));'}function d(e){return"t.b("+e+");"}var p=/\S/,m=/\"/g,g=/\n/g,v=/\r/g,y=/\\/g,b=/\u2028/,w=/\u2029/;e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(i,s){function a(){y.length>0&&(b.push({tag:"_t",text:new String(y)}),y="")}function o(){for(var t=!0,n=x;n<b.length;n++)if(t=e.tags[b[n].tag]<e.tags._v||"_t"==b[n].tag&&null===b[n].text.match(p),!t)return!1;return t}function c(e,t){if(a(),e&&o())for(var n,r=x;r<b.length;r++)b[r].text&&((n=b[r+1])&&">"==n.tag&&(n.indent=b[r].text.toString()),b.splice(r,1));else t||b.push({tag:"\n"});w=!1,x=b.length}function u(e,t){var r="="+_,i=e.indexOf(r,t),s=n(e.substring(e.indexOf("=",t)+1,i)).split(" ");return S=s[0],_=s[s.length-1],i+r.length-1}var l=i.length,h=0,f=1,d=2,m=h,g=null,v=null,y="",b=[],w=!1,R=0,x=0,S="{{",_="}}";for(s&&(s=s.split(" "),S=s[0],_=s[1]),R=0;l>R;R++)m==h?r(S,i,R)?(--R,a(),m=f):"\n"==i.charAt(R)?c(w):y+=i.charAt(R):m==f?(R+=S.length-1,v=e.tags[i.charAt(R+1)],g=v?i.charAt(R+1):"_v","="==g?(R=u(i,R),m=h):(v&&R++,m=d),w=R):r(_,i,R)?(b.push({tag:g,n:n(y),otag:S,ctag:_,i:"/"==g?w-S.length:R+_.length}),y="",R+=_.length-1,m=h,"{"==g&&("}}"==_?R++:t(b[b.length-1]))):y+=i.charAt(R);return c(w,!0),b};var R={_t:!0,"\n":!0,$:!0,"/":!0};e.stringify=function(t){return"{code: function (c,p,i) { "+e.wrapMain(t.code)+" },"+c(t)+"}"};var x=0;e.generate=function(t,n,r){x=0;var i={code:"",subs:{},partials:{}};return e.walk(t,i),r.asString?this.stringify(i,n,r):this.makeTemplate(i,n,r)},e.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(e,t,n){var r=this.makePartials(e);return r.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(r,t,this,n)},e.makePartials=function(e){var t,n={subs:{},partials:e.partials,name:e.name};for(t in n.partials)n.partials[t]=this.makePartials(n.partials[t]);for(t in e.subs)n.subs[t]=new Function("c","p","t","i",e.subs[t]);return n},e.codegen={"#":function(t,n){n.code+="if(t.s(t."+l(t.n)+'("'+u(t.n)+'",c,p,1),c,p,0,'+t.i+","+t.end+',"'+t.otag+" "+t.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(t.nodes,n),n.code+="});c.pop();}"},"^":function(t,n){n.code+="if(!t.s(t."+l(t.n)+'("'+u(t.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(t.nodes,n),n.code+="};"},">":h,"<":function(t,n){var r={partials:{},code:"",subs:{},inPartial:!0};e.walk(t.nodes,r);var i=n.partials[h(t,n)];i.subs=r.subs,i.partials=r.partials},$:function(t,n){var r={subs:{},code:"",partials:n.partials,prefix:t.n};e.walk(t.nodes,r),n.subs[t.n]=r.code,n.inPartial||(n.code+='t.sub("'+u(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=d('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+l(e.n)+'("'+u(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=d('"'+u(e.text)+'"')},"{":f,"&":f},e.walk=function(t,n){for(var r,i=0,s=t.length;s>i;i++)r=e.codegen[t[i].tag],r&&r(t[i],n);return n},e.parse=function(e,t,n){return n=n||{},i(e,"",[],n.sectionTags||[])},e.cache={},e.cacheKey=function(e,t){return[e,!!t.asString,!!t.disableLambda,t.delimiters,!!t.modelGet].join("||")},e.compile=function(t,n){n=n||{};var r=e.cacheKey(t,n),i=this.cache[r];if(i){var s=i.partials;for(var a in s)delete s[a].instance;return i}return i=this.generate(this.parse(this.scan(t,n.delimiters),t,n),t,n),this.cache[r]=i}}(t)},function(e,t){!function(e){function t(e,t,n){var r;return t&&"object"==typeof t&&(void 0!==t[e]?r=t[e]:n&&t.get&&"function"==typeof t.get&&(r=t.get(e))),r}function n(e,t,n,r,i,s){function a(){}function o(){}a.prototype=e,o.prototype=e.subs;var c,u=new a;u.subs=new o,u.subsText={},u.buf="",r=r||{},u.stackSubs=r,u.subsText=s;for(c in t)r[c]||(r[c]=t[c]);for(c in r)u.subs[c]=r[c];i=i||{},u.stackPartials=i;for(c in n)i[c]||(i[c]=n[c]);for(c in i)u.partials[c]=i[c];return u}function r(e){return String(null===e||void 0===e?"":e)}function i(e){return e=r(e),l.test(e)?e.replace(s,"&amp;").replace(a,"&lt;").replace(o,"&gt;").replace(c,"&#39;").replace(u,"&quot;"):e}e.Template=function(e,t,n,r){e=e||{},this.r=e.code||this.r,this.c=n,this.options=r||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(){return""},v:i,t:r,render:function(e,t,n){return this.ri([e],t||{},n)},ri:function(e,t,n){return this.r(e,t,n)},ep:function(e,t){var r=this.partials[e],i=t[r.name];if(r.instance&&r.base==i)return r.instance;if("string"==typeof i){if(!this.c)throw new Error("No compiler available.");i=this.c.compile(i,this.options)}if(!i)return null;if(this.partials[e].base=i,r.subs){t.stackText||(t.stackText={});for(key in r.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);i=n(i,r.subs,r.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=i,i},rp:function(e,t,n,r){var i=this.ep(e,n);return i?i.ri(t,n,r):""},rs:function(e,t,n){var r=e[e.length-1];if(!h(r))return void n(e,t,this);for(var i=0;i<r.length;i++)e.push(r[i]),n(e,t,this),e.pop()},s:function(e,t,n,r,i,s,a){var o;return h(e)&&0===e.length?!1:("function"==typeof e&&(e=this.ms(e,t,n,r,i,s,a)),o=!!e,!r&&o&&t&&t.push("object"==typeof e?e:t[t.length-1]),o)},d:function(e,n,r,i){var s,a=e.split("."),o=this.f(a[0],n,r,i),c=this.options.modelGet,u=null;if("."===e&&h(n[n.length-2]))o=n[n.length-1];else for(var l=1;l<a.length;l++)s=t(a[l],o,c),void 0!==s?(u=o,o=s):o="";return i&&!o?!1:(i||"function"!=typeof o||(n.push(u),o=this.mv(o,n,r),n.pop()),o)},f:function(e,n,r,i){for(var s=!1,a=null,o=!1,c=this.options.modelGet,u=n.length-1;u>=0;u--)if(a=n[u],s=t(e,a,c),void 0!==s){o=!0;break}return o?(i||"function"!=typeof s||(s=this.mv(s,n,r)),s):i?!1:""},ls:function(e,t,n,i,s){var a=this.options.delimiters;return this.options.delimiters=s,this.b(this.ct(r(e.call(t,i)),t,n)),this.options.delimiters=a,!1},ct:function(e,t,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,n)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,n,r,i,s,a){var o,c=t[t.length-1],u=e.call(c);return"function"==typeof u?r?!0:(o=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(u,c,n,o.substring(i,s),a)):u},mv:function(e,t,n){var i=t[t.length-1],s=e.call(i);return"function"==typeof s?this.ct(r(s.call(i)),i,n):s},sub:function(e,t,n,r){var i=this.subs[e];i&&(this.activeSub=e,i(t,n,this,r),this.activeSub=!1)}};var s=/&/g,a=/</g,o=/>/g,c=/\'/g,u=/\"/g,l=/[&<>\"\']/,h=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)},function(e,t,n){"use strict";e.exports=n(66)},function(e,t,n){"use strict";var r=n(67),i=n(1);r.element=i;var s=n(68);s.isArray=i.isArray,s.isFunction=i.isFunction,s.isObject=i.isPlainObject,s.bind=i.proxy,s.each=function(e,t){function n(e,n){return t(n,e)}i.each(e,n)},s.map=i.map,s.mixin=i.extend,s.Event=i.Event;var a,o,c,u=n(69),l=n(70);a=i.fn.autocomplete,o="aaAutocomplete",c={initialize:function(e,t){function n(){var n,r=i(this),s=new l({el:r});n=new u({input:r,eventBus:s,dropdownMenuContainer:e.dropdownMenuContainer,hint:void 0===e.hint?!0:!!e.hint,minLength:e.minLength,autoselect:e.autoselect,autoselectOnBlur:e.autoselectOnBlur,tabAutocomplete:e.tabAutocomplete,openOnFocus:e.openOnFocus,templates:e.templates,debug:e.debug,clearOnSelected:e.clearOnSelected,cssClasses:e.cssClasses,datasets:t,keyboardShortcuts:e.keyboardShortcuts,appendTo:e.appendTo,autoWidth:e.autoWidth}),r.data(o,n)}return t=s.isArray(t)?t:[].slice.call(arguments,1),e=e||{},this.each(n)},open:function(){function e(){var e,t=i(this);(e=t.data(o))&&e.open()}return this.each(e)},close:function(){function e(){var e,t=i(this);(e=t.data(o))&&e.close()}return this.each(e)},val:function(e){function t(){var t,n=i(this);(t=n.data(o))&&t.setVal(e)}function n(e){var t,n;return(t=e.data(o))&&(n=t.getVal()),n}return arguments.length?this.each(t):n(this.first())},destroy:function(){function e(){var e,t=i(this);(e=t.data(o))&&(e.destroy(),t.removeData(o))}return this.each(e)}},i.fn.autocomplete=function(e){var t;return c[e]&&"initialize"!==e?(t=this.filter(function(){return!!i(this).data(o)}),c[e].apply(t,[].slice.call(arguments,1))):c.initialize.apply(this,arguments)},i.fn.autocomplete.noConflict=function(){return i.fn.autocomplete=a,this},i.fn.autocomplete.sources=u.sources,i.fn.autocomplete.escapeHighlightedString=s.escapeHighlightedString,e.exports=i.fn.autocomplete},function(e){"use strict";e.exports={element:null}},function(e,t,n){"use strict";function r(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var i=n(67);e.exports={isArray:null,isFunction:null,isObject:null,bind:null,each:null,map:null,mixin:null,isMsie:function(e){if(void 0===e&&(e=navigator.userAgent),/(msie|trident)/i.test(e)){var t=e.match(/(msie |rv:)(\d+(.\d+)?)/i);if(t)return t[2]}return!1},escapeRegExChars:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isNumber:function(e){return"number"==typeof e},toStr:function(e){return void 0===e||null===e?"":e+"";
  
  },cloneDeep:function(e){var t=this.mixin({},e),n=this;return this.each(t,function(e,r){e&&(n.isArray(e)?t[r]=[].concat(e):n.isObject(e)&&(t[r]=n.cloneDeep(e)))}),t},error:function(e){throw new Error(e)},every:function(e,t){var n=!0;return e?(this.each(e,function(r,i){n&&(n=t.call(null,r,i,e)&&n)}),!!n):n},any:function(e,t){var n=!1;return e?(this.each(e,function(r,i){return t.call(null,r,i,e)?(n=!0,!1):void 0}),n):n},getUniqueId:function(){var e=0;return function(){return e++}}(),templatify:function(e){if(this.isFunction(e))return e;var t=i.element(e);return"SCRIPT"===t.prop("tagName")?function(){return t.text()}:function(){return String(e)}},defer:function(e){setTimeout(e,0)},noop:function(){},formatPrefix:function(e,t){return t?"":e+"-"},className:function(e,t,n){return(n?"":".")+e+t},escapeHighlightedString:function(e,t,n){t=t||"<em>";var i=document.createElement("div");i.appendChild(document.createTextNode(t)),n=n||"</em>";var s=document.createElement("div");s.appendChild(document.createTextNode(n));var a=document.createElement("div");return a.appendChild(document.createTextNode(e)),a.innerHTML.replace(RegExp(r(i.innerHTML),"g"),t).replace(RegExp(r(s.innerHTML),"g"),n)}}},function(e,t,n){"use strict";function r(e){var t,n;if(e=e||{},e.input||c.error("missing input"),this.isActivated=!1,this.debug=!!e.debug,this.autoselect=!!e.autoselect,this.autoselectOnBlur=!!e.autoselectOnBlur,this.openOnFocus=!!e.openOnFocus,this.minLength=c.isNumber(e.minLength)?e.minLength:1,this.autoWidth=void 0===e.autoWidth?!0:!!e.autoWidth,this.clearOnSelected=!!e.clearOnSelected,this.tabAutocomplete=void 0===e.tabAutocomplete?!0:!!e.tabAutocomplete,e.hint=!!e.hint,e.hint&&e.appendTo)throw new Error("[autocomplete.js] hint and appendTo options can't be used at the same time");this.css=e.css=c.mixin({},p,e.appendTo?p.appendTo:{}),this.cssClasses=e.cssClasses=c.mixin({},p.defaultClasses,e.cssClasses||{}),this.cssClasses.prefix=e.cssClasses.formattedPrefix=c.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),this.listboxId=e.listboxId=[this.cssClasses.root,"listbox",c.getUniqueId()].join("-");var s=i(e);this.$node=s.wrapper;var a=this.$input=s.input;t=s.menu,n=s.hint,e.dropdownMenuContainer&&u.element(e.dropdownMenuContainer).css("position","relative").append(t.css("top","0")),a.on("blur.aa",function(e){var n=document.activeElement;c.isMsie()&&(t[0]===n||t[0].contains(n))&&(e.preventDefault(),e.stopImmediatePropagation(),c.defer(function(){a.focus()}))}),t.on("mousedown.aa",function(e){e.preventDefault()}),this.eventBus=e.eventBus||new l({el:a}),this.dropdown=new r.Dropdown({appendTo:e.appendTo,wrapper:this.$node,menu:t,datasets:e.datasets,templates:e.templates,cssClasses:e.cssClasses,minLength:this.minLength}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onSync("shown",this._onShown,this).onSync("empty",this._onEmpty,this).onSync("redrawn",this._onRedrawn,this).onAsync("datasetRendered",this._onDatasetRendered,this),this.input=new r.Input({input:a,hint:n}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this),this._bindKeyboardShortcuts(e),this._setLanguageDirection()}function i(e){var t,n,r,i;t=u.element(e.input),n=u.element(d.wrapper.replace("%ROOT%",e.cssClasses.root)).css(e.css.wrapper),e.appendTo||"block"!==t.css("display")||"table"!==t.parent().css("display")||n.css("display","table-cell");var a=d.dropdown.replace("%PREFIX%",e.cssClasses.prefix).replace("%DROPDOWN_MENU%",e.cssClasses.dropdownMenu);r=u.element(a).css(e.css.dropdown).attr({role:"listbox",id:e.listboxId}),e.templates&&e.templates.dropdownMenu&&r.html(c.templatify(e.templates.dropdownMenu)()),i=t.clone().css(e.css.hint).css(s(t)),i.val("").addClass(c.className(e.cssClasses.prefix,e.cssClasses.hint,!0)).removeAttr("id name placeholder required").prop("readonly",!0).attr({"aria-hidden":"true",autocomplete:"off",spellcheck:"false",tabindex:-1}),i.removeData&&i.removeData(),t.data(o,{"aria-autocomplete":t.attr("aria-autocomplete"),"aria-expanded":t.attr("aria-expanded"),"aria-owns":t.attr("aria-owns"),autocomplete:t.attr("autocomplete"),dir:t.attr("dir"),role:t.attr("role"),spellcheck:t.attr("spellcheck"),style:t.attr("style"),type:t.attr("type")}),t.addClass(c.className(e.cssClasses.prefix,e.cssClasses.input,!0)).attr({autocomplete:"off",spellcheck:!1,role:"combobox","aria-autocomplete":e.datasets&&e.datasets[0]&&e.datasets[0].displayKey?"both":"list","aria-expanded":"false","aria-label":e.ariaLabel,"aria-owns":e.listboxId}).css(e.hint?e.css.input:e.css.inputWithNoHint);try{t.attr("dir")||t.attr("dir","auto")}catch(l){}return n=e.appendTo?n.appendTo(u.element(e.appendTo).eq(0)).eq(0):t.wrap(n).parent(),n.prepend(e.hint?i:null).append(r),{wrapper:n,input:t,hint:i,menu:r}}function s(e){return{backgroundAttachment:e.css("background-attachment"),backgroundClip:e.css("background-clip"),backgroundColor:e.css("background-color"),backgroundImage:e.css("background-image"),backgroundOrigin:e.css("background-origin"),backgroundPosition:e.css("background-position"),backgroundRepeat:e.css("background-repeat"),backgroundSize:e.css("background-size")}}function a(e,t){var n=e.find(c.className(t.prefix,t.input));c.each(n.data(o),function(e,t){void 0===e?n.removeAttr(t):n.attr(t,e)}),n.detach().removeClass(c.className(t.prefix,t.input,!0)).insertAfter(e),n.removeData&&n.removeData(o),e.remove()}var o="aaAttrs",c=n(68),u=n(67),l=n(70),h=n(71),f=n(79),d=n(81),p=n(82);c.mixin(r.prototype,{_bindKeyboardShortcuts:function(e){if(e.keyboardShortcuts){var t=this.$input,n=[];c.each(e.keyboardShortcuts,function(e){"string"==typeof e&&(e=e.toUpperCase().charCodeAt(0)),n.push(e)}),u.element(document).keydown(function(e){var r=e.target||e.srcElement,i=r.tagName;if(!r.isContentEditable&&"INPUT"!==i&&"SELECT"!==i&&"TEXTAREA"!==i){var s=e.which||e.keyCode;-1!==n.indexOf(s)&&(t.focus(),e.stopPropagation(),e.preventDefault())}})}},_onSuggestionClicked:function(e,t){var n,r={selectionMethod:"click"};(n=this.dropdown.getDatumForSuggestion(t))&&this._select(n,r)},_onCursorMoved:function(e,t){var n=this.dropdown.getDatumForCursor(),r=this.dropdown.getCurrentCursor().attr("id");this.input.setActiveDescendant(r),n&&(t&&this.input.setInputValue(n.value,!0),this.eventBus.trigger("cursorchanged",n.raw,n.datasetName))},_onCursorRemoved:function(){this.input.resetInputValue(),this._updateHint(),this.eventBus.trigger("cursorremoved")},_onDatasetRendered:function(){this._updateHint(),this.eventBus.trigger("updated")},_onOpened:function(){this._updateHint(),this.input.expand(),this.eventBus.trigger("opened")},_onEmpty:function(){this.eventBus.trigger("empty")},_onRedrawn:function(){this.$node.css("top","0px"),this.$node.css("left","0px");var e=this.$input[0].getBoundingClientRect();this.autoWidth&&this.$node.css("width",e.width+"px");var t=this.$node[0].getBoundingClientRect(),n=e.bottom-t.top;this.$node.css("top",n+"px");var r=e.left-t.left;this.$node.css("left",r+"px"),this.eventBus.trigger("redrawn")},_onShown:function(){this.eventBus.trigger("shown"),this.autoselect&&this.dropdown.cursorTopSuggestion()},_onClosed:function(){this.input.clearHint(),this.input.removeActiveDescendant(),this.input.collapse(),this.eventBus.trigger("closed")},_onFocused:function(){if(this.isActivated=!0,this.openOnFocus){var e=this.input.getQuery();e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty(),this.dropdown.open()}},_onBlurred:function(){var e,t;e=this.dropdown.getDatumForCursor(),t=this.dropdown.getDatumForTopSuggestion();var n={selectionMethod:"blur"};this.debug||(this.autoselectOnBlur&&e?this._select(e,n):this.autoselectOnBlur&&t?this._select(t,n):(this.isActivated=!1,this.dropdown.empty(),this.dropdown.close()))},_onEnterKeyed:function(e,t){var n,r;n=this.dropdown.getDatumForCursor(),r=this.dropdown.getDatumForTopSuggestion();var i={selectionMethod:"enterKey"};n?(this._select(n,i),t.preventDefault()):this.autoselect&&r&&(this._select(r,i),t.preventDefault())},_onTabKeyed:function(e,t){if(!this.tabAutocomplete)return void this.dropdown.close();var n,r={selectionMethod:"tabKey"};(n=this.dropdown.getDatumForCursor())?(this._select(n,r),t.preventDefault()):this._autocomplete(!0)},_onEscKeyed:function(){this.dropdown.close(),this.input.resetInputValue()},_onUpKeyed:function(){var e=this.input.getQuery();this.dropdown.isEmpty&&e.length>=this.minLength?this.dropdown.update(e):this.dropdown.moveCursorUp(),this.dropdown.open()},_onDownKeyed:function(){var e=this.input.getQuery();this.dropdown.isEmpty&&e.length>=this.minLength?this.dropdown.update(e):this.dropdown.moveCursorDown(),this.dropdown.open()},_onLeftKeyed:function(){"rtl"===this.dir&&this._autocomplete()},_onRightKeyed:function(){"ltr"===this.dir&&this._autocomplete()},_onQueryChanged:function(e,t){this.input.clearHintIfInvalid(),t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty(),this.dropdown.open(),this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint(),this.dropdown.open()},_setLanguageDirection:function(){var e=this.input.getLanguageDirection();this.dir!==e&&(this.dir=e,this.$node.css("direction",e),this.dropdown.setLanguageDirection(e))},_updateHint:function(){var e,t,n,r,i,s;e=this.dropdown.getDatumForTopSuggestion(),e&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(t=this.input.getInputValue(),n=h.normalizeQuery(t),r=c.escapeRegExChars(n),i=new RegExp("^(?:"+r+")(.+$)","i"),s=i.exec(e.value),s?this.input.setHint(t+s[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(e){var t,n,r,i;t=this.input.getHint(),n=this.input.getQuery(),r=e||this.input.isCursorAtEnd(),t&&n!==t&&r&&(i=this.dropdown.getDatumForTopSuggestion(),i&&this.input.setInputValue(i.value),this.eventBus.trigger("autocompleted",i.raw,i.datasetName))},_select:function(e,t){"undefined"!=typeof e.value&&this.input.setQuery(e.value),this.clearOnSelected?this.setVal(""):this.input.setInputValue(e.value,!0),this._setLanguageDirection();var n=this.eventBus.trigger("selected",e.raw,e.datasetName,t);n.isDefaultPrevented()===!1&&(this.dropdown.close(),c.defer(c.bind(this.dropdown.empty,this.dropdown)))},open:function(){if(!this.isActivated){var e=this.input.getInputValue();e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty()}this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(e){e=c.toStr(e),this.isActivated?this.input.setInputValue(e):(this.input.setQuery(e),this.input.setInputValue(e,!0)),this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){this.input.destroy(),this.dropdown.destroy(),a(this.$node,this.cssClasses),this.$node=null},getWrapper:function(){return this.dropdown.$container[0]}}),r.Dropdown=f,r.Input=h,r.sources=n(83),e.exports=r},function(e,t,n){"use strict";function r(e){e&&e.el||s.error("EventBus initialized without el"),this.$el=a.element(e.el)}var i="autocomplete:",s=n(68),a=n(67);s.mixin(r.prototype,{trigger:function(e,t,n,r){var a=s.Event(i+e);return this.$el.trigger(a,[t,n,r]),a}}),e.exports=r},function(e,t,n){"use strict";function r(e){var t,n,r,s,a=this;e=e||{},e.input||c.error("input is missing"),t=c.bind(this._onBlur,this),n=c.bind(this._onFocus,this),r=c.bind(this._onKeydown,this),s=c.bind(this._onInput,this),this.$hint=u.element(e.hint),this.$input=u.element(e.input).on("blur.aa",t).on("focus.aa",n).on("keydown.aa",r),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=c.noop),c.isMsie()?this.$input.on("keydown.aa keypress.aa cut.aa paste.aa",function(e){o[e.which||e.keyCode]||c.defer(c.bind(a._onInput,a,e))}):this.$input.on("input.aa",s),this.query=this.$input.val(),this.$overflowHelper=i(this.$input)}function i(e){return u.element('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:e.css("font-family"),fontSize:e.css("font-size"),fontStyle:e.css("font-style"),fontVariant:e.css("font-variant"),fontWeight:e.css("font-weight"),wordSpacing:e.css("word-spacing"),letterSpacing:e.css("letter-spacing"),textIndent:e.css("text-indent"),textRendering:e.css("text-rendering"),textTransform:e.css("text-transform")}).insertAfter(e)}function s(e,t){return r.normalizeQuery(e)===r.normalizeQuery(t)}function a(e){return e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}var o;o={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"};var c=n(68),u=n(67),l=n(72);r.normalizeQuery=function(e){return(e||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},c.mixin(r.prototype,l,{_onBlur:function(){this.resetInputValue(),this.$input.removeAttr("aria-activedescendant"),this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(e){var t=o[e.which||e.keyCode];this._managePreventDefault(t,e),t&&this._shouldTrigger(t,e)&&this.trigger(t+"Keyed",e)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(e,t){var n,r,i;switch(e){case"tab":r=this.getHint(),i=this.getInputValue(),n=r&&r!==i&&!a(t);break;case"up":case"down":n=!a(t);break;default:n=!1}n&&t.preventDefault()},_shouldTrigger:function(e,t){var n;switch(e){case"tab":n=!a(t);break;default:n=!0}return n},_checkInputValue:function(){var e,t,n;e=this.getInputValue(),t=s(e,this.query),n=t&&this.query?this.query.length!==e.length:!1,this.query=e,t?n&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(e){this.query=e},getInputValue:function(){return this.$input.val()},setInputValue:function(e,t){"undefined"==typeof e&&(e=this.query),this.$input.val(e),t?this.clearHint():this._checkInputValue()},expand:function(){this.$input.attr("aria-expanded","true")},collapse:function(){this.$input.attr("aria-expanded","false")},setActiveDescendant:function(e){this.$input.attr("aria-activedescendant",e)},removeActiveDescendant:function(){this.$input.removeAttr("aria-activedescendant")},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(e){this.$hint.val(e)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var e,t,n,r;e=this.getInputValue(),t=this.getHint(),n=e!==t&&0===t.indexOf(e),r=""!==e&&n&&!this.hasOverflow(),r||this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var e=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=e},isCursorAtEnd:function(){var e,t,n;return e=this.$input.val().length,t=this.$input[0].selectionStart,c.isNumber(t)?t===e:document.selection?(n=document.selection.createRange(),n.moveStart("character",-e),e===n.text.length):!0},destroy:function(){this.$hint.off(".aa"),this.$input.off(".aa"),this.$hint=this.$input=this.$overflowHelper=null}}),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){var i;if(!n)return this;for(t=t.split(h),n=r?u(n,r):n,this._callbacks=this._callbacks||{};i=t.shift();)this._callbacks[i]=this._callbacks[i]||{sync:[],async:[]},this._callbacks[i][e].push(n);return this}function i(e,t,n){return r.call(this,"async",e,t,n)}function s(e,t,n){return r.call(this,"sync",e,t,n)}function a(e){var t;if(!this._callbacks)return this;for(e=e.split(h);t=e.shift();)delete this._callbacks[t];return this}function o(e){var t,n,r,i,s;if(!this._callbacks)return this;for(e=e.split(h),r=[].slice.call(arguments,1);(t=e.shift())&&(n=this._callbacks[t]);)i=c(n.sync,this,[t].concat(r)),s=c(n.async,this,[t].concat(r)),i()&&l(s);return this}function c(e,t,n){function r(){for(var r,i=0,s=e.length;!r&&s>i;i+=1)r=e[i].apply(t,n)===!1;return!r}return r}function u(e,t){return e.bind?e.bind(t):function(){e.apply(t,[].slice.call(arguments,0))}}var l=n(73),h=/\s+/;e.exports={onSync:s,onAsync:i,off:a,trigger:o}},function(e,t,n){"use strict";function r(){o&&c&&(o=!1,c.length?f=c.concat(f):h=-1,f.length&&i())}function i(){if(!o){d=!1,o=!0;for(var e=f.length,t=setTimeout(r);e;){for(c=f,f=[];c&&++h<e;)c[h].run();h=-1,e=f.length}c=null,h=-1,o=!1,clearTimeout(t)}}function s(e,t){this.fun=e,this.array=t}function a(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];f.push(new s(e,t)),d||o||(d=!0,u())}for(var o,c,u,l=[n(74),n(75),n(76),n(77),n(78)],h=-1,f=[],d=!1,p=-1,m=l.length;++p<m;)if(l[p]&&l[p].test&&l[p].test()){u=l[p].install(i);break}s.prototype.run=function(){var e=this.fun,t=this.array;switch(t.length){case 0:return e();case 1:return e(t[0]);case 2:return e(t[0],t[1]);case 3:return e(t[0],t[1],t[2]);default:return e.apply(null,t)}},e.exports=a},function(e,t,n){(function(e){"use strict";t.test=function(){return"undefined"!=typeof e&&!e.browser},t.install=function(t){return function(){e.nextTick(t)}}}).call(t,n(26))},function(e,t){(function(e){"use strict";var n=e.MutationObserver||e.WebKitMutationObserver;t.test=function(){return n},t.install=function(t){var r=0,i=new n(t),s=e.document.createTextNode("");return i.observe(s,{characterData:!0}),function(){s.data=r=++r%2}}}).call(t,function(){return this}())},function(e,t){(function(e){"use strict";t.test=function(){return e.setImmediate?!1:"undefined"!=typeof e.MessageChannel},t.install=function(t){var n=new e.MessageChannel;return n.port1.onmessage=t,function(){n.port2.postMessage(0)}}}).call(t,function(){return this}())},function(e,t){(function(e){"use strict";t.test=function(){return"document"in e&&"onreadystatechange"in e.document.createElement("script")},t.install=function(t){return function(){var n=e.document.createElement("script");return n.onreadystatechange=function(){t(),n.onreadystatechange=null,n.parentNode.removeChild(n),n=null},e.document.documentElement.appendChild(n),t}}}).call(t,function(){return this}())},function(e,t){"use strict";t.test=function(){return!0},t.install=function(e){return function(){setTimeout(e,0)}}},function(e,t,n){"use strict";function r(e){var t,n,r,o=this;e=e||{},e.menu||s.error("menu is required"),s.isArray(e.datasets)||s.isObject(e.datasets)||s.error("1 or more datasets required"),e.datasets||s.error("datasets is required"),this.isOpen=!1,this.isEmpty=!0,this.minLength=e.minLength||0,this.templates={},this.appendTo=e.appendTo||!1,this.css=s.mixin({},u,e.appendTo?u.appendTo:{}),this.cssClasses=e.cssClasses=s.mixin({},u.defaultClasses,e.cssClasses||{}),this.cssClasses.prefix=e.cssClasses.formattedPrefix||s.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),t=s.bind(this._onSuggestionClick,this),n=s.bind(this._onSuggestionMouseEnter,this),r=s.bind(this._onSuggestionMouseLeave,this);var c=s.className(this.cssClasses.prefix,this.cssClasses.suggestion);this.$menu=a.element(e.menu).on("mouseenter.aa",c,n).on("mouseleave.aa",c,r).on("click.aa",c,t),this.$container=e.appendTo?e.wrapper:this.$menu,e.templates&&e.templates.header&&(this.templates.header=s.templatify(e.templates.header),this.$menu.prepend(this.templates.header())),e.templates&&e.templates.empty&&(this.templates.empty=s.templatify(e.templates.empty),this.$empty=a.element('<div class="'+s.className(this.cssClasses.prefix,this.cssClasses.empty,!0)+'"></div>'),this.$menu.append(this.$empty),this.$empty.hide()),this.datasets=s.map(e.datasets,function(t){return i(o.$menu,t,e.cssClasses)}),s.each(this.datasets,function(e){var t=e.getRoot();t&&0===t.parent().length&&o.$menu.append(t),e.onSync("rendered",o._onRendered,o)}),e.templates&&e.templates.footer&&(this.templates.footer=s.templatify(e.templates.footer),this.$menu.append(this.templates.footer()));var l=this;a.element(window).resize(function(){l._redraw()})}function i(e,t,n){return new r.Dataset(s.mixin({$menu:e,cssClasses:n},t))}var s=n(68),a=n(67),o=n(72),c=n(80),u=n(82);s.mixin(r.prototype,o,{_onSuggestionClick:function(e){this.trigger("suggestionClicked",a.element(e.currentTarget))},_onSuggestionMouseEnter:function(e){var t=a.element(e.currentTarget);if(!t.hasClass(s.className(this.cssClasses.prefix,this.cssClasses.cursor,!0))){this._removeCursor();var n=this;setTimeout(function(){n._setCursor(t,!1)},0)}},_onSuggestionMouseLeave:function(e){if(e.relatedTarget){var t=a.element(e.relatedTarget);if(t.closest("."+s.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).length>0)return}this._removeCursor(),this.trigger("cursorRemoved")},_onRendered:function(e,t){function n(e){return e.isEmpty()}function r(e){return e.templates&&e.templates.empty}if(this.isEmpty=s.every(this.datasets,n),this.isEmpty)if(t.length>=this.minLength&&this.trigger("empty"),this.$empty)if(t.length<this.minLength)this._hide();else{var i=this.templates.empty({query:this.datasets[0]&&this.datasets[0].query});this.$empty.html(i),this.$empty.show(),this._show()}else s.any(this.datasets,r)?t.length<this.minLength?this._hide():this._show():this._hide();else this.isOpen&&(this.$empty&&(this.$empty.empty(),this.$empty.hide()),t.length>=this.minLength?this._show():this._hide());this.trigger("datasetRendered")},_hide:function(){this.$container.hide()},_show:function(){this.$container.css("display","block"),this._redraw(),this.trigger("shown")},_redraw:function(){this.isOpen&&this.appendTo&&this.trigger("redrawn")},_getSuggestions:function(){return this.$menu.find(s.className(this.cssClasses.prefix,this.cssClasses.suggestion))},_getCursor:function(){return this.$menu.find(s.className(this.cssClasses.prefix,this.cssClasses.cursor)).first()},_setCursor:function(e,t){e.first().addClass(s.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).attr("aria-selected","true"),this.trigger("cursorMoved",t)},_removeCursor:function(){this._getCursor().removeClass(s.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).removeAttr("aria-selected")},_moveCursor:function(e){var t,n,r,i;if(this.isOpen){if(n=this._getCursor(),t=this._getSuggestions(),this._removeCursor(),r=t.index(n)+e,r=(r+1)%(t.length+1)-1,-1===r)return void this.trigger("cursorRemoved");-1>r&&(r=t.length-1),this._setCursor(i=t.eq(r),!0),this._ensureVisible(i)}},_ensureVisible:function(e){var t,n,r,i;t=e.position().top,n=t+e.height()+parseInt(e.css("margin-top"),10)+parseInt(e.css("margin-bottom"),10),r=this.$menu.scrollTop(),i=this.$menu.height()+parseInt(this.$menu.css("padding-top"),10)+parseInt(this.$menu.css("padding-bottom"),10),0>t?this.$menu.scrollTop(r+t):n>i&&this.$menu.scrollTop(r+(n-i))},close:function(){this.isOpen&&(this.isOpen=!1,this._removeCursor(),this._hide(),this.trigger("closed"))},open:function(){this.isOpen||(this.isOpen=!0,this.isEmpty||this._show(),this.trigger("opened"))},setLanguageDirection:function(e){this.$menu.css("ltr"===e?this.css.ltr:this.css.rtl)},moveCursorUp:function(){this._moveCursor(-1)},moveCursorDown:function(){this._moveCursor(1)},getDatumForSuggestion:function(e){var t=null;return e.length&&(t={raw:c.extractDatum(e),value:c.extractValue(e),datasetName:c.extractDatasetName(e)}),t},getCurrentCursor:function(){return this._getCursor().first()},getDatumForCursor:function(){return this.getDatumForSuggestion(this._getCursor().first())},getDatumForTopSuggestion:function(){return this.getDatumForSuggestion(this._getSuggestions().first())},cursorTopSuggestion:function(){this._setCursor(this._getSuggestions().first(),!1)},update:function(e){function t(t){t.update(e)}s.each(this.datasets,t)},empty:function(){function e(e){e.clear()}s.each(this.datasets,e),this.isEmpty=!0},isVisible:function(){return this.isOpen&&!this.isEmpty},destroy:function(){function e(e){e.destroy()}this.$menu.off(".aa"),this.$menu=null,s.each(this.datasets,e)}}),r.Dataset=c,e.exports=r},function(e,t,n){"use strict";function r(e){e=e||{},e.templates=e.templates||{},e.source||l.error("missing source"),e.name&&!a(e.name)&&l.error("invalid dataset name: "+e.name),this.query=null,this._isEmpty=!0,this.highlight=!!e.highlight,this.name="undefined"==typeof e.name||null===e.name?l.getUniqueId():e.name,this.source=e.source,this.displayFn=i(e.display||e.displayKey),this.debounce=e.debounce,this.cache=e.cache!==!1,this.templates=s(e.templates,this.displayFn),this.css=l.mixin({},d,e.appendTo?d.appendTo:{}),this.cssClasses=e.cssClasses=l.mixin({},d.defaultClasses,e.cssClasses||{}),this.cssClasses.prefix=e.cssClasses.formattedPrefix||l.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix);var t=l.className(this.cssClasses.prefix,this.cssClasses.dataset);this.$el=h.element(e.$menu&&e.$menu.find(t+"-"+this.name).length>0?e.$menu.find(t+"-"+this.name)[0]:f.dataset.replace("%CLASS%",this.name).replace("%PREFIX%",this.cssClasses.prefix).replace("%DATASET%",this.cssClasses.dataset)),this.$menu=e.$menu,this.clearCachedSuggestions()}function i(e){function t(t){return t[e]}return e=e||"value",l.isFunction(e)?e:t}function s(e,t){function n(e){return"<p>"+t(e)+"</p>"}return{empty:e.empty&&l.templatify(e.empty),header:e.header&&l.templatify(e.header),footer:e.footer&&l.templatify(e.footer),suggestion:e.suggestion||n}}function a(e){return/^[_a-zA-Z0-9-]+$/.test(e)}var o="aaDataset",c="aaValue",u="aaDatum",l=n(68),h=n(67),f=n(81),d=n(82),p=n(72);r.extractDatasetName=function(e){return h.element(e).data(o)},r.extractValue=function(e){return h.element(e).data(c)},r.extractDatum=function(e){var t=h.element(e).data(u);return"string"==typeof t&&(t=JSON.parse(t)),t},l.mixin(r.prototype,p,{_render:function(e,t){function n(){var t=[].slice.call(arguments,0);return t=[{query:e,isEmpty:!0}].concat(t),d.templates.empty.apply(this,t)}function r(){function e(e){var t,n=f.suggestion.replace("%PREFIX%",s.cssClasses.prefix).replace("%SUGGESTION%",s.cssClasses.suggestion);return t=h.element(n).attr({role:"option",id:["option",Math.floor(1e8*Math.random())].join("-")}).append(d.templates.suggestion.apply(this,[e].concat(i))),t.data(o,d.name),t.data(c,d.displayFn(e)||void 0),t.data(u,JSON.stringify(e)),t.children().each(function(){h.element(this).css(s.css.suggestionChild)}),t}var n,r,i=[].slice.call(arguments,0),s=this,a=f.suggestions.replace("%PREFIX%",this.cssClasses.prefix).replace("%SUGGESTIONS%",this.cssClasses.suggestions);return n=h.element(a).css(this.css.suggestions),r=l.map(t,e),n.append.apply(n,r),n}function i(){var t=[].slice.call(arguments,0);return t=[{query:e,isEmpty:!a}].concat(t),d.templates.header.apply(this,t)}function s(){var t=[].slice.call(arguments,0);return t=[{query:e,isEmpty:!a}].concat(t),d.templates.footer.apply(this,t)}if(this.$el){var a,d=this,p=[].slice.call(arguments,2);if(this.$el.empty(),a=t&&t.length,this._isEmpty=!a,!a&&this.templates.empty)this.$el.html(n.apply(this,p)).prepend(d.templates.header?i.apply(this,p):null).append(d.templates.footer?s.apply(this,p):null);else if(a)this.$el.html(r.apply(this,p)).prepend(d.templates.header?i.apply(this,p):null).append(d.templates.footer?s.apply(this,p):null);else if(t&&!Array.isArray(t))throw new TypeError("suggestions must be an array");this.$menu&&this.$menu.addClass(this.cssClasses.prefix+(a?"with":"without")+"-"+this.name).removeClass(this.cssClasses.prefix+(a?"without":"with")+"-"+this.name),this.trigger("rendered",e)}},getRoot:function(){return this.$el},update:function(e){function t(t){if(!this.canceled&&e===this.query){var n=[].slice.call(arguments,1);this.cacheSuggestions(e,t,n),this._render.apply(this,[e,t].concat(n))}}if(this.query=e,this.canceled=!1,this.shouldFetchFromCache(e))t.apply(this,[this.cachedSuggestions].concat(this.cachedRenderExtraArgs));else{var n=this,r=function(){n.canceled||n.source(e,t.bind(n))};if(this.debounce){var i=function(){n.debounceTimeout=null,r()};clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(i,this.debounce)}else r()}},cacheSuggestions:function(e,t,n){this.cachedQuery=e,this.cachedSuggestions=t,this.cachedRenderExtraArgs=n},shouldFetchFromCache:function(e){return this.cache&&this.cachedQuery===e&&this.cachedSuggestions&&this.cachedSuggestions.length},clearCachedSuggestions:function(){delete this.cachedQuery,delete this.cachedSuggestions,delete this.cachedRenderExtraArgs},cancel:function(){this.canceled=!0},clear:function(){this.$el&&(this.cancel(),this.$el.empty(),this.trigger("rendered",""))},isEmpty:function(){return this._isEmpty},destroy:function(){this.clearCachedSuggestions(),this.$el=null}}),e.exports=r},function(e){"use strict";e.exports={wrapper:'<span class="%ROOT%"></span>',dropdown:'<span class="%PREFIX%%DROPDOWN_MENU%"></span>',dataset:'<div class="%PREFIX%%DATASET%-%CLASS%"></div>',suggestions:'<span class="%PREFIX%%SUGGESTIONS%"></span>',suggestion:'<div class="%PREFIX%%SUGGESTION%"></div>'}},function(e,t,n){"use strict";var r=n(68),i={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:"0"},defaultClasses:{root:"algolia-autocomplete",prefix:"aa",noPrefix:!1,dropdownMenu:"dropdown-menu",input:"input",hint:"hint",suggestions:"suggestions",suggestion:"suggestion",cursor:"cursor",dataset:"dataset",empty:"empty"},appendTo:{wrapper:{position:"absolute",zIndex:"100",display:"none"},input:{},inputWithNoHint:{},dropdown:{display:"block"}}};r.isMsie()&&r.mixin(i.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),r.isMsie()&&r.isMsie()<=7&&r.mixin(i.input,{marginTop:"-1px"}),e.exports=i},function(e,t,n){"use strict";e.exports={hits:n(84),popularIn:n(87)}},function(e,t,n){"use strict";function r(){function e(e,i){return window.Promise.resolve().then(function(){return t.length&&(r=e.search(t),t=[]),r}).then(function(e){return e?(n=e.results,n[i]):void 0})}var t=[],n=[],r=window.Promise.resolve();return function(n,r){return function(s,a){var o=n.as,c=t.push({indexName:n.indexName,query:s,params:r})-1;e(o,c).then(function(e){e&&a(e.hits,e)})["catch"](function(e){i.error(e.message)})}}}var i=n(68),s=n(85),a=n(86),o=r();e.exports=function(e,t){var n=a(e.as._ua);if(n&&n[0]>=3&&n[1]>20){var r="autocomplete.js "+s;-1===e.as._ua.indexOf(r)&&(e.as._ua+="; "+r)}return o(e,t)}},function(e){e.exports="0.38.0"},function(e){"use strict";e.exports=function(e){var t=e.match(/Algolia for JavaScript \((\d+\.)(\d+\.)(\d+)\)/)||e.match(/Algolia for vanilla JavaScript (\d+\.)(\d+\.)(\d+)/);return t?[t[1],t[2],t[3]]:void 0}},function(e,t,n){"use strict";var r=n(68),i=n(85),s=n(86);e.exports=function(e,t,n,a){function o(o,c){e.search(o,t,function(e,o){if(e)return void r.error(e.message);if(o.hits.length>0){var h=o.hits[0],f=r.mixin({hitsPerPage:0},n);delete f.source,delete f.index;var d=s(l.as._ua);return d&&d[0]>=3&&d[1]>20&&(t.additionalUA="autocomplete.js "+i),void l.search(u(h),f,function(e,t){if(e)return void r.error(e.message);var n=[];if(a.includeAll){var i=a.allTitle||"All departments";n.push(r.mixin({facet:{value:i,count:t.nbHits}},r.cloneDeep(h)))}r.each(t.facets,function(e,t){r.each(e,function(e,i){n.push(r.mixin({facet:{facet:t,value:i,count:e}},r.cloneDeep(h)))})});for(var s=1;s<o.hits.length;++s)n.push(o.hits[s]);c(n,o)})}c([])})}var c=s(e.as._ua);if(c&&c[0]>=3&&c[1]>20&&(t=t||{},t.additionalUA="autocomplete.js "+i),
  !n.source)return r.error("Missing 'source' key");var u=r.isFunction(n.source)?n.source:function(e){return e[n.source]};if(!n.index)return r.error("Missing 'index' key");var l=n.index;return a=a||{},o}}])});
  //# sourceMappingURL=algoliaBundle.min.js.map
  