blob: aced954bb1f914a4d6db7f363c185b4528f94928 [file] [log] [blame]
!function(){t=function(t,i){function e(){var t;try{t=i.storage.debug}catch(t){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t}(i=t.exports=l).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},i.formatArgs=function(t){var e=this.useColors;if(t[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+t[0]+(e?"%c ":" ")+"+"+i.humanize(this.diff),!e)return;e="color: "+this.color;t.splice(1,0,e,"color: inherit");var n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&(n++,"%c"===t&&(r=n))}),t.splice(r,0,e)},i.save=function(t){try{null==t?i.storage.removeItem("debug"):i.storage.debug=t}catch(t){}},i.load=e,i.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"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+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},i.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),i.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],i.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},i.enable(e())};var t,e,r=1e3,i=60*r,s=60*i,o=24*s,a=365.25*o;function u(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var c,l={};function n(t){function o(){if(o.enabled){var r=o,t=+new Date,e=t-(c||t);r.diff=e,r.prev=c,r.curr=t,c=t;for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];i[0]=l.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var s=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,function(t,e){if("%%"===t)return t;s++;var n=l.formatters[e];return"function"==typeof n&&(e=i[s],t=n.call(r,e),i.splice(s,1),s--),t}),l.formatArgs.call(r,i),(o.log||l.log||console.log.bind(console)).apply(r,i)}}return o.namespace=t,o.enabled=l.enabled(t),o.useColors=l.useColors(),o.color=function(t){var e,n=0;for(e in t)n=(n<<5)-n+t.charCodeAt(e),n|=0;return l.colors[Math.abs(n)%l.colors.length]}(t),"function"==typeof l.init&&l.init(o),o}(l=n.debug=n.default=n).coerce=function(t){return t instanceof Error?t.stack||t.message:t},l.disable=function(){l.enable("")},l.enable=function(t){l.save(t),l.names=[],l.skips=[];for(var e=("string"==typeof t?t:"").split(/[\s,]+/),n=e.length,r=0;r<n;r++)e[r]&&("-"===(t=e[r].replace(/\*/g,".*?"))[0]?l.skips.push(new RegExp("^"+t.substr(1)+"$")):l.names.push(new RegExp("^"+t+"$")))},l.enabled=function(t){var e,n;for(e=0,n=l.skips.length;e<n;e++)if(l.skips[e].test(t))return!1;for(e=0,n=l.names.length;e<n;e++)if(l.names[e].test(t))return!0;return!1},l.humanize=function(t,e){e=e||{};var n=typeof t;if("string"==n&&0<t.length)return function(t){if(100<(t=String(t)).length)return;t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(!t)return;var e=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return e*a;case"days":case"day":case"d":return e*o;case"hours":case"hour":case"hrs":case"hr":case"h":return e*s;case"minutes":case"minute":case"mins":case"min":case"m":return e*i;case"seconds":case"second":case"secs":case"sec":case"s":return e*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}(t);if("number"==n&&!1===isNaN(t))return e.long?u(e=t,o,"day")||u(e,s,"hour")||u(e,i,"minute")||u(e,r,"second")||e+" ms":function(t){if(o<=t)return Math.round(t/o)+"d";if(s<=t)return Math.round(t/s)+"h";if(i<=t)return Math.round(t/i)+"m";if(r<=t)return Math.round(t/r)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))},l.names=[],l.skips=[],l.formatters={};var h,p,f={exports:{}};h="undefined"!=typeof self?self:this,p=function(){return i={},r.m=n=[function(t,e,n){"use strict";var r,i=n(1);function o(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}t.exports={isArray:null,isFunction:null,isObject:null,bind:null,each:null,map:null,mixin:null,isMsie:function(t){if(void 0===t&&(t=navigator.userAgent),/(msie|trident)/i.test(t)){t=t.match(/(msie |rv:)(\d+(.\d+)?)/i);if(t)return t[2]}return!1},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isNumber:function(t){return"number"==typeof t},toStr:function(t){return null==t?"":t+""},cloneDeep:function(t){var n=this.mixin({},t),r=this;return this.each(n,function(t,e){t&&(r.isArray(t)?n[e]=[].concat(t):r.isObject(t)&&(n[e]=r.cloneDeep(t)))}),n},error:function(t){throw new Error(t)},every:function(n,r){var i=!0;return n?(this.each(n,function(t,e){i=i&&(r.call(null,t,e,n)&&i)}),!!i):i},any:function(n,r){var i=!1;return n&&this.each(n,function(t,e){if(r.call(null,t,e,n))return!(i=!0)}),i},getUniqueId:(r=0,function(){return r++}),templatify:function(t){if(this.isFunction(t))return t;var e=i.element(t);return"SCRIPT"===e.prop("tagName")?function(){return e.text()}:function(){return String(t)}},defer:function(t){setTimeout(t,0)},noop:function(){},formatPrefix:function(t,e){return e?"":t+"-"},className:function(t,e,n){return(n?"":".")+t+e},escapeHighlightedString:function(t,e,n){e=e||"<em>";var r=document.createElement("div");r.appendChild(document.createTextNode(e)),n=n||"</em>";var i=document.createElement("div");i.appendChild(document.createTextNode(n));var s=document.createElement("div");return s.appendChild(document.createTextNode(t)),s.innerHTML.replace(RegExp(o(r.innerHTML),"g"),e).replace(RegExp(o(i.innerHTML),"g"),n)}}},function(t,e,n){"use strict";t.exports={element:null}},function(t,e){var o=Object.prototype.hasOwnProperty,a=Object.prototype.toString;t.exports=function(t,e,n){if("[object Function]"!==a.call(e))throw new TypeError("iterator must be a function");var r=t.length;if(r===+r)for(var i=0;i<r;i++)e.call(n,t[i],i,t);else for(var s in t)o.call(t,s)&&e.call(n,t[s],s,t)}},function(t,e){t.exports=function(t){return JSON.parse(JSON.stringify(t))}},function(t,e){var n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,i){"use strict";var r=i(12);function s(t,e){var n=i(2),r=this;"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):r.stack=(new Error).stack||"Cannot get a stacktrace, browser is too old",this.name="AlgoliaSearchError",this.message=t||"Unknown error",e&&n(e,function(t,e){r[e]=t})}function n(e,n){function t(){var t=Array.prototype.slice.call(arguments,0);"string"!=typeof t[0]&&t.unshift(n),s.apply(this,t),this.name="AlgoliaSearch"+e+"Error"}return r(t,s),t}r(s,Error),t.exports={AlgoliaSearchError:s,UnparsableJSON:n("UnparsableJSON","Could not parse the incoming response as JSON, see err.more for details"),RequestTimeout:n("RequestTimeout","Request timedout before getting a response"),Network:n("Network","Network issue, see err.more for details"),JSONPScriptFail:n("JSONPScriptFail","<script> was loaded but did not call our provided callback"),JSONPScriptError:n("JSONPScriptError","<script> unable to load due to an `error` event on it"),Unknown:n("Unknown","Unknown error occured")}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){var s=n(2);t.exports=function(n,r){var i=[];return s(n,function(t,e){i.push(r(t,e,n))}),i}},function(n,i,r){(function(e){function t(){var t;try{t=i.storage.debug}catch(t){}return!t&&void 0!==e&&"env"in e&&(t=Object({NODE_ENV:"production"}).DEBUG),t}(i=n.exports=r(39)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},i.formatArgs=function(t){var e=this.useColors;if(t[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+t[0]+(e?"%c ":" ")+"+"+i.humanize(this.diff),!e)return;e="color: "+this.color;t.splice(1,0,e,"color: inherit");var n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&(n++,"%c"===t&&(r=n))}),t.splice(r,0,e)},i.save=function(t){try{null==t?i.storage.removeItem("debug"):i.storage.debug=t}catch(t){}},i.load=t,i.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"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+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},i.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),i.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],i.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},i.enable(t())}).call(i,r(9))},function(t,e){var n,r,t=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function o(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var a,u=[],c=!1,l=-1;function h(){c&&a&&(c=!1,a.length?u=a.concat(u):l=-1,u.length&&p())}function p(){if(!c){var t=o(h);c=!0;for(var e=u.length;e;){for(a=u,u=[];++l<e;)a&&a[l].run();l=-1,e=u.length}a=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function d(){}t.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new f(t,e)),1!==u.length||c||o(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=d,t.addListener=d,t.once=d,t.off=d,t.removeListener=d,t.removeAllListeners=d,t.emit=d,t.prependListener=d,t.prependOnceListener=d,t.listeners=function(t){return[]},t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},function(t,e,n){"use strict";var s=n(53),a=/\s+/;function r(t,e,n,r){var i,s,o;if(!n)return this;for(e=e.split(a),n=r?(o=r,(s=n).bind?s.bind(o):function(){s.apply(o,[].slice.call(arguments,0))}):n,this._callbacks=this._callbacks||{};i=e.shift();)this._callbacks[i]=this._callbacks[i]||{sync:[],async:[]},this._callbacks[i][t].push(n);return this}function o(r,i,s){return function(){for(var t,e=0,n=r.length;!t&&e<n;e+=1)t=!1===r[e].apply(i,s);return!t}}t.exports={onSync:function(t,e,n){return r.call(this,"sync",t,e,n)},onAsync:function(t,e,n){return r.call(this,"async",t,e,n)},off:function(t){var e;if(!this._callbacks)return this;t=t.split(a);for(;e=t.shift();)delete this._callbacks[e];return this},trigger:function(t){var e,n,r,i;if(!this._callbacks)return this;t=t.split(a),n=[].slice.call(arguments,1);for(;(i=t.shift())&&(e=this._callbacks[i]);)r=o(e.sync,this,[i].concat(n)),i=o(e.async,this,[i].concat(n)),r()&&s(i);return this}}},function(t,e,n){"use strict";var r=n(0),n={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(n.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),r.isMsie()&&r.isMsie()<=7&&r.mixin(n.input,{marginTop:"-1px"}),t.exports=n},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;function n(){}n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){t.exports=function(s,o){return function(t,e,n){if("function"==typeof t&&"object"==typeof e||"object"==typeof n)throw new a.AlgoliaSearchError("index.search usage is index.search(query, params, cb)");0===arguments.length||"function"==typeof t?(n=t,t=""):1!==arguments.length&&"function"!=typeof e||(n=e,e=void 0),"object"==typeof t&&null!==t?(e=t,t=void 0):null==t&&(t="");var r,i="";return void 0!==t&&(i+=s+"="+encodeURIComponent(t)),void 0!==e&&(e.additionalUA&&(r=e.additionalUA,delete e.additionalUA),i=this.as._getSearchParams(e,i)),this._search(i,o,n,r)}};var a=n(5)},function(t,e,s){t.exports=function(e,n){var t=s(36),r=s(2),i={};return r(t(e),function(t){!0!==n(t)&&(i[t]=e[t])}),i}},function(t,e){var n,W,r;n=window,t.exports=(W=n,function(l){function c(t){return"string"==typeof t}var h,e=1,p=Array.prototype.slice,f=l.isFunction,d={},s={},n="onfocusin"in W,r={focus:"focusin",blur:"focusout"},g={mouseenter:"mouseover",mouseleave:"mouseout"};function m(t){return t._zid||(t._zid=e++)}function o(t,e,n,r){var i,s;return(e=y(e)).ns&&(s=e.ns,i=new RegExp("(?:^| )"+s.replace(" "," .* ?")+"(?: |$)")),(d[m(t)]||[]).filter(function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||i.test(t.ns))&&(!n||m(t.fn)===m(n))&&(!r||t.sel==r)})}function y(t){t=(""+t).split(".");return{e:t[0],ns:t.slice(1).sort().join(" ")}}function v(t,e){return t.del&&!n&&t.e in r||!!e}function b(t){return g[t]||n&&r[t]||t}function w(i,t,e,s,o,a,u){var n=m(i),c=d[n]||(d[n]=[]);t.split(/\s/).forEach(function(t){if("ready"==t)return l(document).ready(e);var n=y(t);n.fn=e,n.sel=o,n.e in g&&(e=function(t){var e=t.relatedTarget;if(!e||e!==this&&!l.contains(this,e))return n.fn.apply(this,arguments)});var r=(n.del=a)||e;n.proxy=function(t){if(!(t=S(t)).isImmediatePropagationStopped()){try{var e=Object.getOwnPropertyDescriptor(t,"data");e&&!e.writable||(t.data=s)}catch(t){}var n=r.apply(i,t._args==h?[t]:[t].concat(t._args));return!1===n&&(t.preventDefault(),t.stopPropagation()),n}},n.i=c.length,c.push(n),"addEventListener"in i&&i.addEventListener(b(n.e),n.proxy,v(n,u))})}function _(e,t,n,r,i){var s=m(e);(t||"").split(/\s/).forEach(function(t){o(e,t,n,r).forEach(function(t){delete d[s][t.i],"removeEventListener"in e&&e.removeEventListener(b(t.e),t.proxy,v(t,i))})})}s.click=s.mousedown=s.mouseup=s.mousemove="MouseEvents",l.event={add:w,remove:_},l.proxy=function(t,e){var n=2 in arguments&&p.call(arguments,2);if(f(t)){function r(){return t.apply(e,n?n.concat(p.call(arguments)):arguments)}return r._zid=m(t),r}if(c(e))return n?(n.unshift(t[e],t),l.proxy.apply(null,n)):l.proxy(t[e],t);throw new TypeError("expected function")},l.fn.bind=function(t,e,n){return this.on(t,e,n)},l.fn.unbind=function(t,e){return this.off(t,e)},l.fn.one=function(t,e,n,r){return this.on(t,e,n,r,1)};var a=function(){return!0},x=function(){return!1},i=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,t={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};function S(r,i){return!i&&r.isDefaultPrevented||(i=i||r,l.each(t,function(t,e){var n=i[t];r[t]=function(){return this[e]=a,n&&n.apply(i,arguments)},r[e]=x}),r.timeStamp||(r.timeStamp=Date.now()),(i.defaultPrevented!==h?i.defaultPrevented:"returnValue"in i?!1===i.returnValue:i.getPreventDefault&&i.getPreventDefault())&&(r.isDefaultPrevented=a)),r}function C(t){var e,n={originalEvent:t};for(e in t)i.test(e)||t[e]===h||(n[e]=t[e]);return S(n,t)}l.fn.delegate=function(t,e,n){return this.on(e,t,n)},l.fn.undelegate=function(t,e,n){return this.off(e,t,n)},l.fn.live=function(t,e){return l(document.body).delegate(this.selector,t,e),this},l.fn.die=function(t,e){return l(document.body).undelegate(this.selector,t,e),this},l.fn.on=function(e,i,n,s,o){var a,u,r=this;return e&&!c(e)?(l.each(e,function(t,e){r.on(t,i,n,e,o)}),r):(c(i)||f(s)||!1===s||(s=n,n=i,i=h),s!==h&&!1!==n||(s=n,n=h),!1===s&&(s=x),r.each(function(t,r){o&&(a=function(t){return _(r,t.type,s),s.apply(this,arguments)}),i&&(u=function(t){var e,n=l(t.target).closest(i,r).get(0);if(n&&n!==r)return e=l.extend(C(t),{currentTarget:n,liveFired:r}),(a||s).apply(n,[e].concat(p.call(arguments,1)))}),w(r,e,s,n,i,u||a)}))},l.fn.off=function(t,n,e){var r=this;return t&&!c(t)?(l.each(t,function(t,e){r.off(t,n,e)}),r):(c(n)||f(e)||!1===e||(e=n,n=h),!1===e&&(e=x),r.each(function(){_(this,t,e,n)}))},l.fn.trigger=function(t,e){return(t=c(t)||l.isPlainObject(t)?l.Event(t):S(t))._args=e,this.each(function(){t.type in r&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):l(this).triggerHandler(t,e)})},l.fn.triggerHandler=function(n,r){var i,s;return this.each(function(t,e){(i=C(c(n)?l.Event(n):n))._args=r,i.target=e,l.each(o(e,n.type||n),function(t,e){if(s=e.proxy(i),i.isImmediatePropagationStopped())return!1})}),s},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(e){l.fn[e]=function(t){return 0 in arguments?this.bind(e,t):this.trigger(e)}}),l.Event=function(t,e){c(t)||(t=(e=t).type);var n=document.createEvent(s[t]||"Events"),r=!0;if(e)for(var i in e)"bubbles"==i?r=!!e[i]:n[i]=e[i];return n.initEvent(t,r,!0),S(n)}}(r=function(){var u,o,c,r,a,n,i=[],s=i.concat,l=i.filter,h=i.slice,p=W.document,f={},e={},d={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},g=/^\s*<(\w+|!)[^>]*>/,m=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,v=/^(?:body|html)$/i,b=/([A-Z])/g,w=["val","css","html","text","data","width","height","offset"],t=p.createElement("table"),_=p.createElement("tr"),x={tr:p.createElement("tbody"),tbody:t,thead:t,tfoot:t,td:_,th:_,"*":p.createElement("div")},S=/complete|loaded|interactive/,C=/^[\w-]*$/,A={},T=A.toString,E={},O=p.createElement("div"),k={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},N=Array.isArray||function(t){return t instanceof Array};function I(t){return null==t?String(t):A[T.call(t)]||"object"}function R(t){return"function"==I(t)}function j(t){return null!=t&&t==t.window}function D(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function $(t){return"object"==I(t)}function P(t){return $(t)&&!j(t)&&Object.getPrototypeOf(t)==Object.prototype}function q(t){var e=!!t&&"length"in t&&t.length,n=c.type(t);return"function"!=n&&!j(t)&&("array"==n||0===e||"number"==typeof e&&0<e&&e-1 in t)}function L(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function M(t){return t in e?e[t]:e[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function H(t,e){return"number"!=typeof e||d[L(t)]?e:e+"px"}function F(t){return"children"in t?h.call(t.children):c.map(t.childNodes,function(t){if(1==t.nodeType)return t})}function U(t,e){for(var n=t?t.length:0,r=0;r<n;r++)this[r]=t[r];this.length=n,this.selector=e||""}function B(t,e){return null==e?c(t):c(t).filter(e)}function V(t,e,n,r){return R(e)?e.call(t,n,r):e}function K(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function J(t,e){var n=t.className||"",r=n&&n.baseVal!==u;if(e===u)return r?n.baseVal:n;r?n.baseVal=e:t.className=e}function z(e){try{return e&&("true"==e||"false"!=e&&("null"==e?null:+e+""==e?+e:/^[\[\{]/.test(e)?c.parseJSON(e):e))}catch(t){return e}}return E.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var r=t.parentNode,n=!r;return n&&(r=O).appendChild(t),e=~E.qsa(r,e).indexOf(t),n&&O.removeChild(t),e},a=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},n=function(n){return l.call(n,function(t,e){return n.indexOf(t)==e})},E.fragment=function(t,e,n){var r,i,s;return m.test(t)&&(r=c(p.createElement(RegExp.$1))),r||(t.replace&&(t=t.replace(y,"<$1></$2>")),e===u&&(e=g.test(t)&&RegExp.$1),e in x||(e="*"),(s=x[e]).innerHTML=""+t,r=c.each(h.call(s.childNodes),function(){s.removeChild(this)})),P(n)&&(i=c(r),c.each(n,function(t,e){-1<w.indexOf(t)?i[t](e):i.attr(t,e)})),r},E.Z=function(t,e){return new U(t,e)},E.isZ=function(t){return t instanceof E.Z},E.init=function(t,e){var n,r;if(!t)return E.Z();if("string"==typeof t)if("<"==(t=t.trim())[0]&&g.test(t))n=E.fragment(t,RegExp.$1,e),t=null;else{if(e!==u)return c(e).find(t);n=E.qsa(p,t)}else{if(R(t))return c(p).ready(t);if(E.isZ(t))return t;if(N(t))r=t,n=l.call(r,function(t){return null!=t});else if($(t))n=[t],t=null;else if(g.test(t))n=E.fragment(t.trim(),RegExp.$1,e),t=null;else{if(e!==u)return c(e).find(t);n=E.qsa(p,t)}}return E.Z(n,t)},(c=function(t,e){return E.init(t,e)}).extend=function(e){var n,t=h.call(arguments,1);return"boolean"==typeof e&&(n=e,e=t.shift()),t.forEach(function(t){!function t(e,n,r){for(o in n)r&&(P(n[o])||N(n[o]))?(P(n[o])&&!P(e[o])&&(e[o]={}),N(n[o])&&!N(e[o])&&(e[o]=[]),t(e[o],n[o],r)):n[o]!==u&&(e[o]=n[o])}(e,t,n)}),e},E.qsa=function(t,e){var n,r="#"==e[0],i=!r&&"."==e[0],s=r||i?e.slice(1):e,o=C.test(s);return t.getElementById&&o&&r?(n=t.getElementById(s))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:h.call(o&&!r&&t.getElementsByClassName?i?t.getElementsByClassName(s):t.getElementsByTagName(e):t.querySelectorAll(e))},c.contains=p.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e=e&&e.parentNode;)if(e===t)return!0;return!1},c.type=I,c.isFunction=R,c.isWindow=j,c.isArray=N,c.isPlainObject=P,c.isEmptyObject=function(t){for(var e in t)return!1;return!0},c.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},c.inArray=function(t,e,n){return i.indexOf.call(e,t,n)},c.camelCase=a,c.trim=function(t){return null==t?"":String.prototype.trim.call(t)},c.uuid=0,c.support={},c.expr={},c.noop=function(){},c.map=function(t,e){var n,r,i,s,o=[];if(q(t))for(r=0;r<t.length;r++)null!=(n=e(t[r],r))&&o.push(n);else for(i in t)null!=(n=e(t[i],i))&&o.push(n);return 0<(s=o).length?c.fn.concat.apply([],s):s},c.each=function(t,e){var n,r;if(q(t)){for(n=0;n<t.length;n++)if(!1===e.call(t[n],n,t[n]))return t}else for(r in t)if(!1===e.call(t[r],r,t[r]))return t;return t},c.grep=function(t,e){return l.call(t,e)},W.JSON&&(c.parseJSON=JSON.parse),c.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){A["[object "+e+"]"]=e.toLowerCase()}),c.fn={constructor:E.Z,length:0,forEach:i.forEach,reduce:i.reduce,push:i.push,sort:i.sort,splice:i.splice,indexOf:i.indexOf,concat:function(){for(var t,e=[],n=0;n<arguments.length;n++)t=arguments[n],e[n]=E.isZ(t)?t.toArray():t;return s.apply(E.isZ(this)?this.toArray():this,e)},map:function(n){return c(c.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return c(h.apply(this,arguments))},ready:function(t){return S.test(p.readyState)&&p.body?t(c):p.addEventListener("DOMContentLoaded",function(){t(c)},!1),this},get:function(t){return t===u?h.call(this):this[0<=t?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(n){return i.every.call(this,function(t,e){return!1!==n.call(t,e,t)}),this},filter:function(e){return R(e)?this.not(this.not(e)):c(l.call(this,function(t){return E.matches(t,e)}))},add:function(t,e){return c(n(this.concat(c(t,e))))},is:function(t){return 0<this.length&&E.matches(this[0],t)},not:function(e){var n,r=[];return R(e)&&e.call!==u?this.each(function(t){e.call(this,t)||r.push(this)}):(n="string"==typeof e?this.filter(e):q(e)&&R(e.item)?h.call(e):c(e),this.forEach(function(t){n.indexOf(t)<0&&r.push(t)})),c(r)},has:function(t){return this.filter(function(){return $(t)?c.contains(this,t):c(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!$(t)?t:c(t)},last:function(){var t=this[this.length-1];return t&&!$(t)?t:c(t)},find:function(t){var n=this,e=t?"object"==typeof t?c(t).filter(function(){var e=this;return i.some.call(n,function(t){return c.contains(t,e)})}):1==this.length?c(E.qsa(this[0],t)):this.map(function(){return E.qsa(this,t)}):c();return e},closest:function(n,r){var i=[],s="object"==typeof n&&c(n);return this.each(function(t,e){for(;e&&!(s?0<=s.indexOf(e):E.matches(e,n));)e=e!==r&&!D(e)&&e.parentNode;e&&i.indexOf(e)<0&&i.push(e)}),c(i)},parents:function(t){for(var e=[],n=this;0<n.length;)n=c.map(n,function(t){if((t=t.parentNode)&&!D(t)&&e.indexOf(t)<0)return e.push(t),t});return B(e,t)},parent:function(t){return B(n(this.pluck("parentNode")),t)},children:function(t){return B(this.map(function(){return F(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||h.call(this.childNodes)})},siblings:function(t){return B(this.map(function(t,e){return l.call(F(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(e){return c.map(this,function(t){return t[e]})},show:function(){return this.each(function(){var t,e,n;"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=(t=this.nodeName,f[t]||(e=p.createElement(t),p.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),f[t]=n),f[t]))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(e){var n,r,i=R(e);return this[0]&&!i&&(n=c(e).get(0),r=n.parentNode||1<this.length),this.each(function(t){c(this).wrapAll(i?e.call(this,t):r?n.cloneNode(!0):n)})},wrapAll:function(t){if(this[0]){var e;for(c(this[0]).before(t=c(t));(e=t.children()).length;)t=e.first();c(t).append(this)}return this},wrapInner:function(r){var i=R(r);return this.each(function(t){var e=c(this),n=e.contents(),t=i?r.call(this,t):r;n.length?n.wrapAll(t):e.append(t)})},unwrap:function(){return this.parent().each(function(){c(this).replaceWith(c(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(e){return this.each(function(){var t=c(this);(e===u?"none"==t.css("display"):e)?t.show():t.hide()})},prev:function(t){return c(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return c(this.pluck("nextElementSibling")).filter(t||"*")},html:function(n){return 0 in arguments?this.each(function(t){var e=this.innerHTML;c(this).empty().append(V(this,n,t,e))}):0 in this?this[0].innerHTML:null},text:function(e){return 0 in arguments?this.each(function(t){t=V(this,e,t,this.textContent);this.textContent=null==t?"":""+t}):0 in this?this.pluck("textContent").join(""):null},attr:function(e,n){var t;return"string"!=typeof e||1 in arguments?this.each(function(t){if(1===this.nodeType)if($(e))for(o in e)K(this,o,e[o]);else K(this,e,V(this,n,t,this.getAttribute(e)))}):0 in this&&1==this[0].nodeType&&null!=(t=this[0].getAttribute(e))?t:u},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){K(this,t)},this)})},prop:function(e,n){return e=k[e]||e,1 in arguments?this.each(function(t){this[e]=V(this,n,t,this[e])}):this[0]&&this[0][e]},removeProp:function(t){return t=k[t]||t,this.each(function(){delete this[t]})},data:function(t,e){var n="data-"+t.replace(b,"-$1").toLowerCase(),n=1 in arguments?this.attr(n,e):this.attr(n);return null!==n?z(n):u},val:function(e){return 0 in arguments?(null==e&&(e=""),this.each(function(t){this.value=V(this,e,t,this.value)})):this[0]&&(this[0].multiple?c(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(r){if(r)return this.each(function(t){var e=c(this),n=V(this,r,t,e.offset()),t=e.offsetParent().offset(),t={top:n.top-t.top,left:n.left-t.left};"static"==e.css("position")&&(t.position="relative"),e.css(t)});if(!this.length)return null;if(p.documentElement!==this[0]&&!c.contains(p.documentElement,this[0]))return{top:0,left:0};var t=this[0].getBoundingClientRect();return{left:t.left+W.pageXOffset,top:t.top+W.pageYOffset,width:Math.round(t.width),height:Math.round(t.height)}},css:function(t,e){if(arguments.length<2){var n=this[0];if("string"==typeof t)return n?n.style[a(t)]||getComputedStyle(n,"").getPropertyValue(t):void 0;if(N(t)){if(!n)return;var r={},i=getComputedStyle(n,"");return c.each(t,function(t,e){r[e]=n.style[a(e)]||i.getPropertyValue(e)}),r}}var s="";if("string"==I(t))e||0===e?s=L(t)+":"+H(t,e):this.each(function(){this.style.removeProperty(L(t))});else for(o in t)t[o]||0===t[o]?s+=L(o)+":"+H(o,t[o])+";":this.each(function(){this.style.removeProperty(L(o))});return this.each(function(){this.style.cssText+=";"+s})},index:function(t){return t?this.indexOf(c(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&i.some.call(this,function(t){return this.test(J(t))},M(t))},addClass:function(n){return n?this.each(function(t){var e;"className"in this&&(r=[],e=J(this),V(this,n,t,e).split(/\s+/g).forEach(function(t){c(this).hasClass(t)||r.push(t)},this),r.length&&J(this,e+(e?" ":"")+r.join(" ")))}):this},removeClass:function(e){return this.each(function(t){if("className"in this){if(e===u)return J(this,"");r=J(this),V(this,e,t,r).split(/\s+/g).forEach(function(t){r=r.replace(M(t)," ")}),J(this,r.trim())}})},toggleClass:function(n,r){return n?this.each(function(t){var e=c(this);V(this,n,t,J(this)).split(/\s+/g).forEach(function(t){(r===u?!e.hasClass(t):r)?e.addClass(t):e.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var e="scrollTop"in this[0];return t===u?e?this[0].scrollTop:this[0].pageYOffset:this.each(e?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var e="scrollLeft"in this[0];return t===u?e?this[0].scrollLeft:this[0].pageXOffset:this.each(e?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),r=v.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(c(t).css("margin-top"))||0,n.left-=parseFloat(c(t).css("margin-left"))||0,r.top+=parseFloat(c(e[0]).css("border-top-width"))||0,r.left+=parseFloat(c(e[0]).css("border-left-width"))||0,{top:n.top-r.top,left:n.left-r.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||p.body;t&&!v.test(t.nodeName)&&"static"==c(t).css("position");)t=t.offsetParent;return t})}},c.fn.detach=c.fn.remove,["width","height"].forEach(function(r){var i=r.replace(/./,function(t){return t[0].toUpperCase()});c.fn[r]=function(e){var t,n=this[0];return e===u?j(n)?n["inner"+i]:D(n)?n.documentElement["scroll"+i]:(t=this.offset())&&t[r]:this.each(function(t){(n=c(this)).css(r,V(this,e,t,n[r]()))})}}),["after","prepend","before","append"].forEach(function(e,o){var a=o%2;c.fn[e]=function(){var n,r,i=c.map(arguments,function(t){var e=[];return"array"==(n=I(t))?(t.forEach(function(t){return t.nodeType!==u?e.push(t):c.zepto.isZ(t)?e=e.concat(t.get()):void(e=e.concat(E.fragment(t)))}),e):"object"==n||null==t?t:E.fragment(t)}),s=1<this.length;return i.length<1?this:this.each(function(t,e){r=a?e:e.parentNode,e=0==o?e.nextSibling:1==o?e.firstChild:2==o?e:null;var n=c.contains(p.documentElement,r);i.forEach(function(t){if(s)t=t.cloneNode(!0);else if(!r)return c(t).remove();r.insertBefore(t,e),n&&function t(e,n){n(e);for(var r=0,i=e.childNodes.length;r<i;r++)t(e.childNodes[r],n)}(t,function(t){var e;null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src||(e=t.ownerDocument?t.ownerDocument.defaultView:W).eval.call(e,t.innerHTML)})})})},c.fn[a?e+"To":"insert"+(o?"Before":"After")]=function(t){return c(t)[e](this),this}}),E.Z.prototype=U.prototype=c.fn,E.uniq=n,E.deserializeValue=z,c.zepto=E,c}()),function(){var t,e=[];r.fn.remove=function(){return this.each(function(){this.parentNode&&("IMG"===this.tagName&&(e.push(this),this.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",t&&clearTimeout(t),t=setTimeout(function(){e=[]},6e4)),this.parentNode.removeChild(this))})}}(),function(o){var a={},i=o.fn.data,u=o.camelCase,c=o.expando="Zepto"+ +new Date,l=[];function s(t,e,n){var r,i,s=t[c]||(t[c]=++o.uuid),r=a[s]||(a[s]=(r=t,i={},o.each(r.attributes||l,function(t,e){0==e.name.indexOf("data-")&&(i[u(e.name.replace("data-",""))]=o.zepto.deserializeValue(e.value))}),i));return void 0!==e&&(r[u(e)]=n),r}o.fn.data=function(e,t){return void 0===t?o.isPlainObject(e)?this.each(function(t,n){o.each(e,function(t,e){s(n,t,e)})}):0 in this?function(t,e){var n=t[c],r=n&&a[n];if(void 0===e)return r||s(t);if(r){if(e in r)return r[e];n=u(e);if(n in r)return r[n]}return i.call(o(t),e)}(this[0],e):void 0:this.each(function(){s(this,e,t)})},o.data=function(t,e,n){return o(t).data(e,n)},o.hasData=function(t){t=t[c],t=t&&a[t];return!!t&&!o.isEmptyObject(t)},o.fn.removeData=function(n){return"string"==typeof n&&(n=n.split(/\s+/)),this.each(function(){var t=this[c],e=t&&a[t];e&&o.each(n||e,function(t){delete e[n?u(this):t]})})},["remove","empty"].forEach(function(e){var n=o.fn[e];o.fn[e]=function(){var t=this.find("*");return"remove"===e&&(t=t.add(this)),t.removeData(),n.call(this)}})}(r),r)},function(t,e,n){"use strict";var i=n(0),r=n(1);function s(t){t&&t.el||i.error("EventBus initialized without el"),this.$el=r.element(t.el)}i.mixin(s.prototype,{trigger:function(t,e,n,r){t=i.Event("autocomplete:"+t);return this.$el.trigger(t,[e,n,r]),t}}),t.exports=s},function(t,e,n){"use strict";t.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(t,e){t.exports="0.36.0"},function(t,e,n){"use strict";t.exports=function(t){t=t.match(/Algolia for vanilla JavaScript (\d+\.)(\d+\.)(\d+)/);if(t)return[t[1],t[2],t[3]]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(15),n=(r=i)&&r.__esModule?r:{default:r};e.default=n.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="2.6.3"},function(t,e,n){"use strict";var r,i=n(23),n=(r=i)&&r.__esModule?r:{default:r};t.exports=n.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s(n(24)),i=s(n(25)),n=s(n(21));function s(t){return t&&t.__esModule?t:{default:t}}i=(0,r.default)(i.default);i.version=n.default,e.default=i},function(t,e,n){"use strict";var i=Function.prototype.bind;t.exports=function(r){function t(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return new(i.apply(r,[null].concat(e)))}return t.__proto__=r,t.prototype=r.prototype,t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,r=arguments[e];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},r=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t};function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var s=o(n(26)),d=o(n(29)),g=o(n(49)),m=o(n(64)),c=o(n(65)),y=o(n(21)),v=o(n(20));function o(t){return t&&t.__esModule?t:{default:t}}r(b,[{key:"getAutocompleteSource",value:function(n,r){var i=this;return function(t,e){r&&(t=r(t)||t),i.client.search([{indexName:i.indexName,query:t,params:i.algoliaOptions}]).then(function(t){i.queryDataCallback&&"function"==typeof i.queryDataCallback&&i.queryDataCallback(t);t=t.results[0].hits;n&&(t=n(t)||t),e(b.formatHits(t))})}}},{key:"handleSelected",value:function(t,e,n,r,i){"click"!==(4<arguments.length&&void 0!==i?i:{}).selectionMethod&&(t.setVal(""),window.location.assign(n.url))}},{key:"handleShown",value:function(t){var e=t.offset().left+t.width()/2,n=(0,v.default)(document).width()/2;isNaN(n)&&(n=900);t=0<=e-n?"algolia-autocomplete-right":"algolia-autocomplete-left",e=e-n<0?"algolia-autocomplete-right":"algolia-autocomplete-left",n=(0,v.default)(".algolia-autocomplete");n.hasClass(t)||n.addClass(t),n.hasClass(e)&&n.removeClass(e)}}],[{key:"checkArguments",value:function(t){if(!t.apiKey||!t.indexName)throw new Error("Usage:\n documentationSearch({\n apiKey,\n indexName,\n inputSelector,\n [ appId ],\n [ algoliaOptions.{hitsPerPage} ]\n [ autocompleteOptions.{hint,debug} ]\n})");if("string"!=typeof t.inputSelector)throw new Error("Error: inputSelector:"+t.inputSelector+" must be a string. Each selector must match only one element and separated by ','");if(!b.getInputFromSelector(t.inputSelector))throw new Error("Error: No input element in the page matches "+t.inputSelector)}},{key:"injectSearchBox",value:function(t){t.before(m.default.searchBox);var e=t.prev().prev().find("input");return t.remove(),e}},{key:"bindSearchBoxEvent",value:function(){(0,v.default)('.searchbox [type="reset"]').on("click",function(){(0,v.default)("input#docsearch").focus(),(0,v.default)(this).addClass("hide"),g.default.autocomplete.setVal("")}),(0,v.default)("input#docsearch").on("keyup",function(){var t=document.querySelector("input#docsearch"),e=document.querySelector('.searchbox [type="reset"]');e.className="searchbox__reset",0===t.value.length&&(e.className+=" hide")})}},{key:"getInputFromSelector",value:function(t){t=(0,v.default)(t).filter("input");return t.length?(0,v.default)(t[0]):null}},{key:"formatHits",value:function(t){var t=c.default.deepClone(t).map(function(t){return t._highlightResult&&(t._highlightResult=c.default.mergeKeyWithParent(t._highlightResult,"hierarchy")),c.default.mergeKeyWithParent(t,"hierarchy")}),n=c.default.groupBy(t,"lvl0");return v.default.each(n,function(t,e){e=c.default.groupBy(e,"lvl1"),e=c.default.flattenAndFlagFirst(e,"isSubCategoryHeader");n[t]=e}),(n=c.default.flattenAndFlagFirst(n,"isCategoryHeader")).map(function(t){var e=b.formatURL(t),n=c.default.getHighlightedValue(t,"lvl0"),r=c.default.getHighlightedValue(t,"lvl1")||n,i=c.default.compact([c.default.getHighlightedValue(t,"lvl2")||r,c.default.getHighlightedValue(t,"lvl3"),c.default.getHighlightedValue(t,"lvl4"),c.default.getHighlightedValue(t,"lvl5"),c.default.getHighlightedValue(t,"lvl6")]).join('<span class="aa-suggestion-title-separator" aria-hidden="true"> › </span>'),s=c.default.getSnippetedValue(t,"content"),o=r&&""!==r||i&&""!==i,a=i&&""!==i&&i!==r,u=!a&&r&&""!==r&&r!==n;return{isLvl0:!u&&!a,isLvl1:u,isLvl2:a,isLvl1EmptyOrDuplicate:!r||""===r||r===n,isCategoryHeader:t.isCategoryHeader,isSubCategoryHeader:t.isSubCategoryHeader,isTextOrSubcategoryNonEmpty:o,category:n,subcategory:r,title:i,text:s,url:e}})}},{key:"formatURL",value:function(t){var e=t.url,n=t.anchor;return e?-1===e.indexOf("#")&&n?t.url+"#"+t.anchor:e:n?"#"+t.anchor:(console.warn("no anchor nor url for : ",JSON.stringify(t)),null)}},{key:"getEmptyTemplate",value:function(){return function(t){return s.default.compile(m.default.empty).render(t)}}},{key:"getSuggestionTemplate",value:function(t){var t=t?m.default.suggestionSimple:m.default.suggestion,e=s.default.compile(t);return function(t){return e.render(t)}}}]),r=b;function b(t){var e=t.apiKey,n=t.indexName,r=t.inputSelector,i=t.appId,s=void 0===i?"BH4D9OD16A":i,o=t.debug,a=void 0!==o&&o,u=t.algoliaOptions,c=void 0===u?{}:u,l=t.queryDataCallback,h=void 0===l?null:l,p=t.autocompleteOptions,i=void 0===p?{debug:!1,hint:!1,autoselect:!0}:p,o=t.transformData,u=void 0!==o&&o,l=t.queryHook,p=void 0!==l&&l,o=t.handleSelected,l=void 0!==o&&o,o=t.enhancedSearchInput,o=void 0!==o&&o,t=t.layout,t=void 0===t?"collumns":t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,b),b.checkArguments({apiKey:e,indexName:n,inputSelector:r,debug:a,algoliaOptions:c,queryDataCallback:h,autocompleteOptions:i,transformData:u,queryHook:p,handleSelected:l,enhancedSearchInput:o,layout:t}),this.apiKey=e,this.appId=s,this.indexName=n,this.input=b.getInputFromSelector(r),this.algoliaOptions=f({hitsPerPage:5},c),this.queryDataCallback=h||null;h=!(!i||!i.debug)&&i.debug;i.debug=a||h,this.autocompleteOptions=i,this.autocompleteOptions.cssClasses=this.autocompleteOptions.cssClasses||{},this.autocompleteOptions.cssClasses.prefix=this.autocompleteOptions.cssClasses.prefix||"ds";h=this.input&&"function"==typeof this.input.attr&&this.input.attr("aria-label");this.autocompleteOptions.ariaLabel=this.autocompleteOptions.ariaLabel||h||"search input",this.isSimpleLayout="simple"===t,this.client=(0,d.default)(this.appId,this.apiKey),this.client.addAlgoliaAgent("docsearch.js "+y.default),o&&(this.input=b.injectSearchBox(this.input)),this.autocomplete=(0,g.default)(this.input,i,[{source:this.getAutocompleteSource(u,p),templates:{suggestion:b.getSuggestionTemplate(this.isSimpleLayout),footer:m.default.footer,empty:b.getEmptyTemplate()}}]);this.handleSelected=l||this.handleSelected,l&&(0,v.default)(".algolia-autocomplete").on("click",".ds-suggestions a",function(t){t.preventDefault()}),this.autocomplete.on("autocomplete:selected",this.handleSelected.bind(null,this.autocomplete.autocomplete)),this.autocomplete.on("autocomplete:shown",this.handleShown.bind(null,this.input)),o&&b.bindSearchBoxEvent()}e.default=r},function(t,e,n){var r=n(27);r.Template=n(28).Template,r.template=r.Template,t.exports=r},function(t,e,n){!function(w){var _=/\S/,e=/\"/g,n=/\n/g,r=/\r/g,i=/\\/g,s=/\u2028/,o=/\u2029/;function x(t){return t.trim?t.trim():t.replace(/^\s*|\s*$/g,"")}function S(t,e,n){if(e.charAt(n)==t.charAt(0)){for(var r=1,i=t.length;r<i;r++)if(e.charAt(n+r)!=t.charAt(r))return;return 1}}w.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},w.scan=function(t,e){var n,r,i,s,o,a,u=t.length,c=0,l=null,h="",p=[],f=!1,d=0,g=0,m="{{",y="}}";function v(){0<h.length&&(p.push({tag:"_t",text:new String(h)}),h="")}function b(t,e){if(v(),t&&function(){for(var t=!0,e=g;e<p.length;e++)if(!(t=w.tags[p[e].tag]<w.tags._v||"_t"==p[e].tag&&null===p[e].text.match(_)))return;return t}())for(var n,r=g;r<p.length;r++)p[r].text&&((n=p[r+1])&&">"==n.tag&&(n.indent=p[r].text.toString()),p.splice(r,1));else e||p.push({tag:"\n"});f=!1,g=p.length}for(e&&(e=e.split(" "),m=e[0],y=e[1]),d=0;d<u;d++)0==c?S(m,t,d)?(--d,v(),c=1):"\n"==t.charAt(d)?b(f):h+=t.charAt(d):1==c?(d+=m.length-1,c="="==(l=(n=w.tags[t.charAt(d+1)])?t.charAt(d+1):"_v")?(s=d,a=o=void 0,o="="+y,a=(i=t).indexOf(o,s),s=x(i.substring(i.indexOf("=",s)+1,a)).split(" "),m=s[0],y=s[s.length-1],d=a+o.length-1,0):(n&&d++,2),f=d):S(y,t,d)?(p.push({tag:l,n:x(h),otag:m,ctag:y,i:"/"==l?f-m.length:d+y.length}),h="",d+=y.length-1,c=0,"{"==l&&("}}"==y?d++:"}"===(r=p[p.length-1]).n.substr(r.n.length-1)&&(r.n=r.n.substring(0,r.n.length-1)))):h+=t.charAt(d);return b(f,!0),p};var u={_t:!0,"\n":!0,$:!0,"/":!0};function c(t,e,n,r){for(var i=[],s=null,o=null,a=n[n.length-1];0<t.length;){if(o=t.shift(),a&&"<"==a.tag&&!(o.tag in u))throw new Error("Illegal content in < super tag.");if(w.tags[o.tag]<=w.tags.$||function(t,e){for(var n=0,r=e.length;n<r;n++)if(e[n].o==t.n)return t.tag="#",!0}(o,r))n.push(o),o.nodes=c(t,o.tag,n,r);else{if("/"==o.tag){if(0===n.length)throw new Error("Closing tag without opener: /"+o.n);if(s=n.pop(),o.n!=s.n&&!function(t,e,n){for(var r=0,i=n.length;r<i;r++)if(n[r].c==t&&n[r].o==e)return!0}(o.n,s.n,r))throw new Error("Nesting error: "+s.n+" vs. "+o.n);return s.end=o.i,i}"\n"==o.tag&&(o.last=0==t.length||"\n"==t[0].tag)}i.push(o)}if(0<n.length)throw new Error("missing closing tag: "+n.pop().n);return i}function a(t){var e,n=[];for(e in t.partials)n.push('"'+h(e)+'":{name:"'+h(t.partials[e].name)+'", '+a(t.partials[e])+"}");return"partials: {"+n.join(",")+"}, subs: "+function(t){var e,n=[];for(e in t)n.push('"'+h(e)+'": function(c,p,t,i) {'+t[e]+"}");return"{ "+n.join(",")+" }"}(t.subs)}w.stringify=function(t,e,n){return"{code: function (c,p,i) { "+w.wrapMain(t.code)+" },"+a(t)+"}"};var l=0;function h(t){return t.replace(i,"\\\\").replace(e,'\\"').replace(n,"\\n").replace(r,"\\r").replace(s,"\\u2028").replace(o,"\\u2029")}function p(t){return~t.indexOf(".")?"d":"f"}function f(t,e){var n="<"+(e.prefix||"")+t.n+l++;return e.partials[n]={name:t.n,partials:{}},e.code+='t.b(t.rp("'+h(n)+'",c,p,"'+(t.indent||"")+'"));',n}function t(t,e){e.code+="t.b(t.t(t."+p(t.n)+'("'+h(t.n)+'",c,p,0)));'}function d(t){return"t.b("+t+");"}w.generate=function(t,e,n){l=0;var r={code:"",subs:{},partials:{}};return w.walk(t,r),n.asString?this.stringify(r,e,n):this.makeTemplate(r,e,n)},w.wrapMain=function(t){return'var t=this;t.b(i=i||"");'+t+"return t.fl();"},w.template=w.Template,w.makeTemplate=function(t,e,n){var r=this.makePartials(t);return r.code=new Function("c","p","i",this.wrapMain(t.code)),new this.template(r,e,this,n)},w.makePartials=function(t){var e,n={subs:{},partials:t.partials,name:t.name};for(e in n.partials)n.partials[e]=this.makePartials(n.partials[e]);for(e in t.subs)n.subs[e]=new Function("c","p","t","i",t.subs[e]);return n},w.codegen={"#":function(t,e){e.code+="if(t.s(t."+p(t.n)+'("'+h(t.n)+'",c,p,1),c,p,0,'+t.i+","+t.end+',"'+t.otag+" "+t.ctag+'")){t.rs(c,p,function(c,p,t){',w.walk(t.nodes,e),e.code+="});c.pop();}"},"^":function(t,e){e.code+="if(!t.s(t."+p(t.n)+'("'+h(t.n)+'",c,p,1),c,p,1,0,0,"")){',w.walk(t.nodes,e),e.code+="};"},">":f,"<":function(t,e){var n={partials:{},code:"",subs:{},inPartial:!0};w.walk(t.nodes,n);e=e.partials[f(t,e)];e.subs=n.subs,e.partials=n.partials},$:function(t,e){var n={subs:{},code:"",partials:e.partials,prefix:t.n};w.walk(t.nodes,n),e.subs[t.n]=n.code,e.inPartial||(e.code+='t.sub("'+h(t.n)+'",c,p,i);')},"\n":function(t,e){e.code+=d('"\\n"'+(t.last?"":" + i"))},_v:function(t,e){e.code+="t.b(t.v(t."+p(t.n)+'("'+h(t.n)+'",c,p,0)));'},_t:function(t,e){e.code+=d('"'+h(t.text)+'"')},"{":t,"&":t},w.walk=function(t,e){for(var n,r=0,i=t.length;r<i;r++)(n=w.codegen[t[r].tag])&&n(t[r],e);return e},w.parse=function(t,e,n){return c(t,0,[],(n=n||{}).sectionTags||[])},w.cache={},w.cacheKey=function(t,e){return[t,!!e.asString,!!e.disableLambda,e.delimiters,!!e.modelGet].join("||")},w.compile=function(t,e){e=e||{};var n=w.cacheKey(t,e),r=this.cache[n];if(r){var i,s=r.partials;for(i in s)delete s[i].instance;return r}return r=this.generate(this.parse(this.scan(t,e.delimiters),t,e),t,e),this.cache[n]=r}}(e)},function(t,e,n){!function(t){function l(t,e,n){var r;return e&&"object"==typeof e&&(void 0!==e[t]?r=e[t]:n&&e.get&&"function"==typeof e.get&&(r=e.get(t))),r}t.Template=function(t,e,n,r){t=t||{},this.r=t.code||this.r,this.c=n,this.options=r||{},this.text=e||"",this.partials=t.partials||{},this.subs=t.subs||{},this.buf=""},t.Template.prototype={r:function(t,e,n){return""},v:function(t){return t=a(t),o.test(t)?t.replace(e,"&amp;").replace(n,"&lt;").replace(r,"&gt;").replace(i,"&#39;").replace(s,"&quot;"):t},t:a,render:function(t,e,n){return this.ri([t],e||{},n)},ri:function(t,e,n){return this.r(t,e,n)},ep:function(t,e){var n=this.partials[t],r=e[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[t].base=r,n.subs){for(key in e.stackText||(e.stackText={}),n.subs)e.stackText[key]||(e.stackText[key]=void 0!==this.activeSub&&e.stackText[this.activeSub]?e.stackText[this.activeSub]:this.text);r=function(t,e,n,r,i,s){function o(){}function a(){}a.prototype=(o.prototype=t).subs;var u=new o;for(var c in u.subs=new a,u.subsText={},u.buf="",r=r||{},u.stackSubs=r,u.subsText=s,e)r[c]||(r[c]=e[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,e.stackText)}return this.partials[t].instance=r},rp:function(t,e,n,r){t=this.ep(t,n);return t?t.ri(e,n,r):""},rs:function(t,e,n){var r=t[t.length-1];if(h(r))for(var i=0;i<r.length;i++)t.push(r[i]),n(t,e,this),t.pop();else n(t,e,this)},s:function(t,e,n,r,i,s,o){return(!h(t)||0!==t.length)&&("function"==typeof t&&(t=this.ms(t,e,n,r,i,s,o)),o=!!t,!r&&o&&e&&e.push("object"==typeof t?t:e[e.length-1]),o)},d:function(t,e,n,r){var i,s=t.split("."),o=this.f(s[0],e,n,r),a=this.options.modelGet,u=null;if("."===t&&h(e[e.length-2]))o=e[e.length-1];else for(var c=1;c<s.length;c++)o=void 0!==(i=l(s[c],o,a))?(u=o,i):"";return!(r&&!o)&&(r||"function"!=typeof o||(e.push(u),o=this.mv(o,e,n),e.pop()),o)},f:function(t,e,n,r){for(var i=!1,s=!1,o=this.options.modelGet,a=e.length-1;0<=a;a--)if(void 0!==(i=l(t,e[a],o))){s=!0;break}return s?(r||"function"!=typeof i||(i=this.mv(i,e,n)),i):!r&&""},ls:function(t,e,n,r,i){var s=this.options.delimiters;return this.options.delimiters=i,this.b(this.ct(a(t.call(e,r)),e,n)),this.options.delimiters=s,!1},ct:function(t,e,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(t,this.options).render(e,n)},b:function(t){this.buf+=t},fl:function(){var t=this.buf;return this.buf="",t},ms:function(t,e,n,r,i,s,o){e=e[e.length-1],t=t.call(e);return"function"==typeof t?!!r||(r=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(t,e,n,r.substring(i,s),o)):t},mv:function(t,e,n){e=e[e.length-1],t=t.call(e);return"function"==typeof t?this.ct(a(t.call(e)),e,n):t},sub:function(t,e,n,r){var i=this.subs[t];i&&(this.activeSub=t,i(e,n,this,r),this.activeSub=!1)}};var e=/&/g,n=/</g,r=/>/g,i=/\'/g,s=/\"/g,o=/[&<>\"\']/;function a(t){return String(null==t?"":t)}var h=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}}(e)},function(t,e,n){"use strict";var r=n(30),n=n(41);t.exports=n(r,"(lite) ")},function(t,e,_){t.exports=o;var x=_(5),n=_(31),r=_(32),i=_(38),s=Object({NODE_ENV:"production"}).RESET_APP_DATA_TIMER&&parseInt(Object({NODE_ENV:"production"}).RESET_APP_DATA_TIMER,10)||12e4;function o(e,t,n){var r=_(8)("algoliasearch"),i=_(3),s=_(6),o=_(7),a="Usage: algoliasearch(applicationID, apiKey, opts)";if(!0!==n._allowEmptyCredentials&&!e)throw new x.AlgoliaSearchError("Please provide an application ID. "+a);if(!0!==n._allowEmptyCredentials&&!t)throw new x.AlgoliaSearchError("Please provide an API key. "+a);this.applicationID=e,this.apiKey=t,this.hosts={read:[],write:[]},n=n||{},this._timeouts=n.timeouts||{connect:1e3,read:2e3,write:3e4},n.timeout&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=n.timeout);t=n.protocol||"https:";if(/:$/.test(t)||(t+=":"),"http:"!==t&&"https:"!==t)throw new x.AlgoliaSearchError("protocol must be `http:` or `https:` (was `"+n.protocol+"`)");this._checkAppIdData(),n.hosts?s(n.hosts)?(this.hosts.read=i(n.hosts),this.hosts.write=i(n.hosts)):(this.hosts.read=i(n.hosts.read),this.hosts.write=i(n.hosts.write)):(s=o(this._shuffleResult,function(t){return e+"-"+t+".algolianet.com"}),i=(!1===n.dsn?"":"-dsn")+".algolia.net",this.hosts.read=[this.applicationID+i].concat(s),this.hosts.write=[this.applicationID+".algolia.net"].concat(s)),this.hosts.read=o(this.hosts.read,u(t)),this.hosts.write=o(this.hosts.write,u(t)),this.extraHeaders={},this.cache=n._cache||{},this._ua=n._ua,this._useCache=!(void 0!==n._useCache&&!n._cache)||n._useCache,this._useRequestCache=this._useCache&&n._useRequestCache,this._useFallback=void 0===n.useFallback||n.useFallback,this._setTimeout=n._setTimeout,r("init done, %j",this)}function u(e){return function(t){return e+"//"+t.toLowerCase()}}function S(t){if(void 0===Array.prototype.toJSON)return JSON.stringify(t);var e=Array.prototype.toJSON;delete Array.prototype.toJSON;t=JSON.stringify(t);return Array.prototype.toJSON=e,t}function C(t){var e,n,r={};for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n="x-algolia-api-key"===e||"x-algolia-application-id"===e?"**hidden for security purposes**":t[e],r[e]=n);return r}o.prototype.initIndex=function(t){return new r(this,t)},o.prototype.setExtraHeader=function(t,e){this.extraHeaders[t.toLowerCase()]=e},o.prototype.getExtraHeader=function(t){return this.extraHeaders[t.toLowerCase()]},o.prototype.unsetExtraHeader=function(t){delete this.extraHeaders[t.toLowerCase()]},o.prototype.addAlgoliaAgent=function(t){-1===this._ua.indexOf(";"+t)&&(this._ua+=";"+t)},o.prototype._jsonRequest=function(u){this._checkAppIdData();var c,l,h=_(8)("algoliasearch:"+u.url),p=u.additionalUA||"",f=u.cache,d=this,g=0,m=!1,y=d._useFallback&&d._request.fallback&&u.fallback,v=500<this.apiKey.length&&void 0!==u.body&&(void 0!==u.body.params||void 0!==u.body.requests)?(u.body.apiKey=this.apiKey,this._computeRequestHeaders({additionalUA:p,withApiKey:!1,headers:u.headers})):this._computeRequestHeaders({additionalUA:p,headers:u.headers});void 0!==u.body&&(c=S(u.body)),h("request start");var b=[];function w(t,e,n){return d._useCache&&t&&e&&void 0!==e[n]}function t(t,e){if(w(d._useRequestCache,f,l)&&t.catch(function(){delete f[l]}),"function"!=typeof u.callback)return t.then(e);t.then(function(t){n(function(){u.callback(null,e(t))},d._setTimeout||setTimeout)},function(t){n(function(){u.callback(t)},d._setTimeout||setTimeout)})}if(d._useCache&&d._useRequestCache&&(l=u.url),d._useCache&&d._useRequestCache&&c&&(l+="_body_"+c),w(d._useRequestCache,f,l)){h("serving request from cache");var e=f[l];return t("function"!=typeof e.then?d._promise.resolve({responseText:e}):e,function(t){return JSON.parse(t.responseText)})}e=function n(r,i){d._checkAppIdData();var s=new Date;if(d._useCache&&!d._useRequestCache&&(l=u.url),d._useCache&&!d._useRequestCache&&c&&(l+="_body_"+i.body),w(!d._useRequestCache,f,l)){h("serving response from cache");var t=f[l];return d._promise.resolve({body:JSON.parse(t),responseText:t})}if(g>=d.hosts[u.hostType].length)return!y||m?(h("could not get any response"),d._promise.reject(new x.AlgoliaSearchError("Cannot connect to the AlgoliaSearch API. Send an email to support@algolia.com to report and resolve the issue. Application id was: "+d.applicationID,{debugData:b}))):(h("switching to fallback"),g=0,i.method=u.fallback.method,i.url=u.fallback.url,i.jsonBody=u.fallback.body,i.jsonBody&&(i.body=S(i.jsonBody)),v=d._computeRequestHeaders({additionalUA:p,headers:u.headers}),i.timeouts=d._getTimeoutsForRequest(u.hostType),d._setHostIndexByType(0,u.hostType),m=!0,n(d._request.fallback,i));var o=d._getHostByType(u.hostType),e=o+i.url,t={body:i.body,jsonBody:i.jsonBody,method:i.method,headers:v,timeouts:i.timeouts,debug:h,forceAuthHeaders:i.forceAuthHeaders};return h("method: %s, url: %s, headers: %j, timeouts: %d",t.method,e,t.headers,t.timeouts),r===d._request.fallback&&h("using fallback"),r.call(d,e,t).then(function(t){var e=t&&t.body&&t.body.message&&t.body.status||t.statusCode||t&&t.body&&200;h("received response: statusCode: %s, computed statusCode: %d, headers: %j",t.statusCode,e,t.headers);var n=2===Math.floor(e/100),r=new Date;return b.push({currentHost:o,headers:C(v),content:c||null,contentLength:void 0!==c?c.length:null,method:i.method,timeouts:i.timeouts,url:i.url,startTime:s,endTime:r,duration:r-s,statusCode:e}),n?(d._useCache&&!d._useRequestCache&&f&&(f[l]=t.responseText),{responseText:t.responseText,body:t.body}):4!==Math.floor(e/100)?(g+=1,a()):(h("unrecoverable error"),e=new x.AlgoliaSearchError(t.body&&t.body.message,{debugData:b,statusCode:e}),d._promise.reject(e))},function(t){h("error: %s, stack: %s",t.message,t.stack);var e=new Date;return b.push({currentHost:o,headers:C(v),content:c||null,contentLength:void 0!==c?c.length:null,method:i.method,timeouts:i.timeouts,url:i.url,startTime:s,endTime:e,duration:e-s}),t instanceof x.AlgoliaSearchError||(t=new x.Unknown(t&&t.message,t)),g+=1,t instanceof x.Unknown||t instanceof x.UnparsableJSON||g>=d.hosts[u.hostType].length&&(m||!y)?(t.debugData=b,d._promise.reject(t)):t instanceof x.RequestTimeout?(h("retrying request with higher timeout"),d._incrementHostIndex(u.hostType),d._incrementTimeoutMultipler(),i.timeouts=d._getTimeoutsForRequest(u.hostType),n(r,i)):a()});function a(){return h("retrying request"),d._incrementHostIndex(u.hostType),n(r,i)}}(d._request,{url:u.url,method:u.method,body:c,jsonBody:u.body,timeouts:d._getTimeoutsForRequest(u.hostType),forceAuthHeaders:u.forceAuthHeaders});return d._useCache&&d._useRequestCache&&f&&(f[l]=e),t(e,function(t){return t.body})},o.prototype._getSearchParams=function(t,e){if(null==t)return e;for(var n in t)null!==n&&void 0!==t[n]&&t.hasOwnProperty(n)&&(e+=""===e?"":"&",e+=n+"="+encodeURIComponent("[object Array]"===Object.prototype.toString.call(t[n])?S(t[n]):t[n]));return e},o.prototype._computeRequestHeaders=function(t){var e=_(2),n={"x-algolia-agent":t.additionalUA?this._ua+";"+t.additionalUA:this._ua,"x-algolia-application-id":this.applicationID};return!1!==t.withApiKey&&(n["x-algolia-api-key"]=this.apiKey),this.userToken&&(n["x-algolia-usertoken"]=this.userToken),this.securityTags&&(n["x-algolia-tagfilters"]=this.securityTags),e(this.extraHeaders,function(t,e){n[e]=t}),t.headers&&e(t.headers,function(t,e){n[e]=t}),n},o.prototype.search=function(t,e,n){var r=_(6),i=_(7);if(!r(t))throw new Error("Usage: client.search(arrayOfQueries[, callback])");"function"==typeof e?(n=e,e={}):void 0===e&&(e={});var s=this,t={requests:i(t,function(t){var e="";return void 0!==t.query&&(e+="query="+encodeURIComponent(t.query)),{indexName:t.indexName,params:s._getSearchParams(t.params,e)}})},i=i(t.requests,function(t,e){return e+"="+encodeURIComponent("/1/indexes/"+encodeURIComponent(t.indexName)+"?"+t.params)}).join("&");return void 0!==e.strategy&&(t.strategy=e.strategy),this._jsonRequest({cache:this.cache,method:"POST",url:"/1/indexes/*/queries",body:t,hostType:"read",fallback:{method:"GET",url:"/1/indexes/*",body:{params:i}},callback:n})},o.prototype.searchForFacetValues=function(t){var e=_(6),n=_(7),s="Usage: client.searchForFacetValues([{indexName, params: {facetName, facetQuery, ...params}}, ...queries])";if(!e(t))throw new Error(s);var o=this;return o._promise.all(n(t,function(t){if(!t||void 0===t.indexName||void 0===t.params.facetName||void 0===t.params.facetQuery)throw new Error(s);var e=_(3),n=_(14),r=t.indexName,i=t.params,t=i.facetName,i=n(e(i),function(t){return"facetName"===t}),i=o._getSearchParams(i,"");return o._jsonRequest({cache:o.cache,method:"POST",url:"/1/indexes/"+encodeURIComponent(r)+"/facets/"+encodeURIComponent(t)+"/query",hostType:"read",body:{params:i}})}))},o.prototype.setSecurityTags=function(t){if("[object Array]"===Object.prototype.toString.call(t)){for(var e=[],n=0;n<t.length;++n)if("[object Array]"===Object.prototype.toString.call(t[n])){for(var r=[],i=0;i<t[n].length;++i)r.push(t[n][i]);e.push("("+r.join(",")+")")}else e.push(t[n]);t=e.join(",")}this.securityTags=t},o.prototype.setUserToken=function(t){this.userToken=t},o.prototype.clearCache=function(){this.cache={}},o.prototype.setRequestTimeout=function(t){t&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=t)},o.prototype.setTimeouts=function(t){this._timeouts=t},o.prototype.getTimeouts=function(){return this._timeouts},o.prototype._getAppIdData=function(){var t=i.get(this.applicationID);return null!==t&&this._cacheAppIdData(t),t},o.prototype._setAppIdData=function(t){return t.lastChange=(new Date).getTime(),this._cacheAppIdData(t),i.set(this.applicationID,t)},o.prototype._checkAppIdData=function(){var t=this._getAppIdData(),e=(new Date).getTime();return null===t||e-t.lastChange>s?this._resetInitialAppIdData(t):t},o.prototype._resetInitialAppIdData=function(t){t=t||{};return t.hostIndexes={read:0,write:0},t.timeoutMultiplier=1,t.shuffleResult=t.shuffleResult||function(t){var e,n,r=t.length;for(;0!==r;)n=Math.floor(Math.random()*r),e=t[--r],t[r]=t[n],t[n]=e;return t}([1,2,3]),this._setAppIdData(t)},o.prototype._cacheAppIdData=function(t){this._hostIndexes=t.hostIndexes,this._timeoutMultiplier=t.timeoutMultiplier,this._shuffleResult=t.shuffleResult},o.prototype._partialAppIdDataUpdate=function(t){var e=_(2),n=this._getAppIdData();return e(t,function(t,e){n[e]=t}),this._setAppIdData(n)},o.prototype._getHostByType=function(t){return this.hosts[t][this._getHostIndexByType(t)]},o.prototype._getTimeoutMultiplier=function(){return this._timeoutMultiplier},o.prototype._getHostIndexByType=function(t){return this._hostIndexes[t]},o.prototype._setHostIndexByType=function(t,e){var n=_(3)(this._hostIndexes);return n[e]=t,this._partialAppIdDataUpdate({hostIndexes:n}),t},o.prototype._incrementHostIndex=function(t){return this._setHostIndexByType((this._getHostIndexByType(t)+1)%this.hosts[t].length,t)},o.prototype._incrementTimeoutMultipler=function(){var t=Math.max(this._timeoutMultiplier+1,4);return this._partialAppIdDataUpdate({timeoutMultiplier:t})},o.prototype._getTimeoutsForRequest=function(t){return{connect:this._timeouts.connect*this._timeoutMultiplier,complete:this._timeouts[t]*this._timeoutMultiplier}}},function(t,e){t.exports=function(t,e){e(t,0)}},function(t,e,o){var n=o(13),r=o(33),i=o(34);function s(t,e){this.indexName=e,this.as=t,this.typeAheadArgs=null,this.typeAheadValueOption=null,this.cache={}}(t.exports=s).prototype.clearCache=function(){this.cache={}},s.prototype.search=n("query"),s.prototype.similarSearch=n("similarQuery"),s.prototype.browse=function(t,e,n){var r,i=o(35);0===arguments.length||1===arguments.length&&"function"==typeof arguments[0]?(n=arguments[r=0],t=void 0):"number"==typeof arguments[0]?(r=arguments[0],"number"==typeof arguments[1]?s=arguments[1]:"function"==typeof arguments[1]&&(n=arguments[1],s=void 0),e=t=void 0):"object"==typeof arguments[0]?("function"==typeof arguments[1]&&(n=arguments[1]),e=arguments[0],t=void 0):"string"==typeof arguments[0]&&"function"==typeof arguments[1]&&(n=arguments[1],e=void 0),e=i({},e||{},{page:r,hitsPerPage:s,query:t});var s=this.as._getSearchParams(e,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse",body:{params:s},hostType:"read",callback:n})},s.prototype.browseFrom=function(t,e){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse",body:{cursor:t},hostType:"read",callback:e})},s.prototype.searchForFacetValues=function(t,e){var n=o(3),r=o(14);if(void 0===t.facetName||void 0===t.facetQuery)throw new Error("Usage: index.searchForFacetValues({facetName, facetQuery, ...params}[, callback])");var i=t.facetName,t=r(n(t),function(t){return"facetName"===t}),t=this.as._getSearchParams(t,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/facets/"+encodeURIComponent(i)+"/query",hostType:"read",body:{params:t},callback:e})},s.prototype.searchFacet=r(function(t,e){return this.searchForFacetValues(t,e)},i("index.searchFacet(params[, callback])","index.searchForFacetValues(params[, callback])")),s.prototype._search=function(t,e,n,r){return this.as._jsonRequest({cache:this.cache,method:"POST",url:e||"/1/indexes/"+encodeURIComponent(this.indexName)+"/query",body:{params:t},hostType:"read",fallback:{method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName),body:{params:t}},callback:n,additionalUA:r})},s.prototype.getObject=function(t,e,n){1!==arguments.length&&"function"!=typeof e||(n=e,e=void 0);var r="";if(void 0!==e){r="?attributes=";for(var i=0;i<e.length;++i)0!==i&&(r+=","),r+=e[i]}return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/"+encodeURIComponent(t)+r,hostType:"read",callback:n})},s.prototype.getObjects=function(t,e,n){var r=o(6),i=o(7);if(!r(t))throw new Error("Usage: index.getObjects(arrayOfObjectIDs[, callback])");var s=this;1!==arguments.length&&"function"!=typeof e||(n=e,e=void 0);i={requests:i(t,function(t){t={indexName:s.indexName,objectID:t};return e&&(t.attributesToRetrieve=e.join(",")),t})};return this.as._jsonRequest({method:"POST",url:"/1/indexes/*/objects",hostType:"read",body:i,callback:n})},s.prototype.as=null,s.prototype.indexName=null,s.prototype.typeAheadArgs=null,s.prototype.typeAheadValueOption=null},function(t,e){t.exports=function(t,e){var n=!1;return function(){return n||(console.warn(e),n=!0),t.apply(this,arguments)}}},function(t,e){t.exports=function(t,e){var n=t.toLowerCase().replace(/[\.\(\)]/g,"");return"algoliasearch: `"+t+"` was replaced by `"+e+"`. Please see https://github.com/algolia/algoliasearch-client-javascript/wiki/Deprecated#"+n}},function(t,e,n){var i=n(2);t.exports=function n(r){var t=Array.prototype.slice.call(arguments);return i(t,function(t){for(var e in t)t.hasOwnProperty(e)&&("object"==typeof r[e]&&"object"==typeof t[e]?r[e]=n({},r[e],t[e]):void 0!==t[e]&&(r[e]=t[e]))}),r}},function(t,e,n){"use strict";function p(t){var e=t.constructor;return e&&e.prototype===t}function r(t){var e=null!==t&&"object"==typeof t,n="[object Function]"===d.call(t),r=g(t),i=e&&"[object String]"===d.call(t),s=[];if(!e&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var o=y&&n;if(i&&0<t.length&&!f.call(t,0))for(var a=0;a<t.length;++a)s.push(String(a));if(r&&0<t.length)for(var u=0;u<t.length;++u)s.push(String(u));else for(var c in t)o&&"prototype"===c||!f.call(t,c)||s.push(String(c));if(m)for(var l=function(t){if("undefined"==typeof window||!b)return p(t);try{return p(t)}catch(t){return!1}}(t),h=0;h<v.length;++h)l&&"constructor"===v[h]||!f.call(t,v[h])||s.push(v[h]);return s}var f=Object.prototype.hasOwnProperty,d=Object.prototype.toString,i=Array.prototype.slice,g=n(37),n=Object.prototype.propertyIsEnumerable,m=!n.call({toString:null},"toString"),y=n.call(function(){},"prototype"),v=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s={$applicationCache:!0,$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},b=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!s["$"+t]&&f.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{p(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();r.shim=function(){var e;return Object.keys?function(){return 2===(Object.keys(arguments)||"").length}(1,2)||(e=Object.keys,Object.keys=function(t){return g(t)?e(i.call(t)):e(t)}):Object.keys=r,Object.keys||r},t.exports=r},function(t,e,n){"use strict";var r=Object.prototype.toString;t.exports=function(t){var e=r.call(t);return"[object Arguments]"===e||"[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&0<=t.length&&"[object Function]"===r.call(t.callee)}},function(c,t,l){(function(r){var n,i=l(8)("algoliasearch:src/hostIndexState.js"),s="algoliasearch-client-js",o={state:{},set:function(t,e){return this.state[t]=e,this.state[t]},get:function(t){return this.state[t]||null}},t={set:function(e,t){o.set(e,t);try{var n=JSON.parse(r.localStorage[s]);return n[e]=t,r.localStorage[s]=JSON.stringify(n),n[e]}catch(t){return a(e,t)}},get:function(e){try{return JSON.parse(r.localStorage[s])[e]||null}catch(t){return a(e,t)}}};function a(t,e){return i("localStorage failed with",e),function(){try{r.localStorage.removeItem(s)}catch(t){}}(),(n=o).get(t)}function e(t,e){return 1===arguments.length?n.get(t):n.set(t,e)}function u(){try{return"localStorage"in r&&null!==r.localStorage?(r.localStorage[s]||r.localStorage.setItem(s,JSON.stringify({})),!0):!1}catch(t){return!1}}n=u()?t:o,c.exports={get:e,set:e,supportsLocalStorage:u}}).call(t,l(4))},function(t,a,e){var u;function n(t){function o(){if(o.enabled){var r=o,t=+new Date,e=t-(u||t);r.diff=e,r.prev=u,r.curr=t,u=t;for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];i[0]=a.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var s=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,function(t,e){if("%%"===t)return t;s++;var n=a.formatters[e];return"function"==typeof n&&(e=i[s],t=n.call(r,e),i.splice(s,1),s--),t}),a.formatArgs.call(r,i),(o.log||a.log||console.log.bind(console)).apply(r,i)}}return o.namespace=t,o.enabled=a.enabled(t),o.useColors=a.useColors(),o.color=function(t){var e,n=0;for(e in t)n=(n<<5)-n+t.charCodeAt(e),n|=0;return a.colors[Math.abs(n)%a.colors.length]}(t),"function"==typeof a.init&&a.init(o),o}(a=t.exports=n.debug=n.default=n).coerce=function(t){return t instanceof Error?t.stack||t.message:t},a.disable=function(){a.enable("")},a.enable=function(t){a.save(t),a.names=[],a.skips=[];for(var e=("string"==typeof t?t:"").split(/[\s,]+/),n=e.length,r=0;r<n;r++)e[r]&&("-"===(t=e[r].replace(/\*/g,".*?"))[0]?a.skips.push(new RegExp("^"+t.substr(1)+"$")):a.names.push(new RegExp("^"+t+"$")))},a.enabled=function(t){var e,n;for(e=0,n=a.skips.length;e<n;e++)if(a.skips[e].test(t))return!1;for(e=0,n=a.names.length;e<n;e++)if(a.names[e].test(t))return!0;return!1},a.humanize=e(40),a.names=[],a.skips=[],a.formatters={}},function(t,e){var r=36e5,i=864e5;function s(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}t.exports=function(t,e){e=e||{};var n=typeof t;if("string"==n&&0<t.length)return function(t){if(100<(t=String(t)).length)return;t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(!t)return;var e=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*e;case"days":case"day":case"d":return e*i;case"hours":case"hour":case"hrs":case"hr":case"h":return e*r;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*e;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}(t);if("number"==n&&!1===isNaN(t))return e.long?s(e=t,i,"day")||s(e,r,"hour")||s(e,6e4,"minute")||s(e,1e3,"second")||e+" ms":function(t){if(i<=t)return Math.round(t/i)+"d";if(r<=t)return Math.round(t/r)+"h";if(6e4<=t)return Math.round(t/6e4)+"m";if(1e3<=t)return Math.round(t/1e3)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,a){"use strict";var u=a(42),d=u.Promise||a(43).Promise;t.exports=function(t,e){var n=a(12),h=a(5),p=a(44),i=a(46),r=a(47);function s(t,e,n){return(n=a(3)(n||{}))._ua=n._ua||s.ua,new o(t,e,n)}e=e||"",s.version=a(48),s.ua="Algolia for vanilla JavaScript "+e+s.version,s.initPlaces=r(s),u.__algolia={debug:a(8),algoliasearch:s};var f={hasXMLHttpRequest:"XMLHttpRequest"in u,hasXDomainRequest:"XDomainRequest"in u};function o(){t.apply(this,arguments)}return f.hasXMLHttpRequest&&(f.cors="withCredentials"in new XMLHttpRequest),n(o,t),(o.prototype._request=function(c,l){return new d(function(t,n){var e,r,i,s,o;function a(){i=!0,r.abort(),n(new h.RequestTimeout)}function u(){s=!0,clearTimeout(o),o=setTimeout(a,l.timeouts.complete)}f.cors||f.hasXDomainRequest?(c=p(c,l.headers),e=l.body,r=new(f.cors?XMLHttpRequest:XDomainRequest),s=!1,o=setTimeout(a,l.timeouts.connect),r.onprogress=function(){s||u()},"onreadystatechange"in r&&(r.onreadystatechange=function(){!s&&1<r.readyState&&u()}),r.onload=function(){if(i)return;var e;clearTimeout(o);try{e={body:JSON.parse(r.responseText),responseText:r.responseText,statusCode:r.status,headers:r.getAllResponseHeaders&&r.getAllResponseHeaders()||{}}}catch(t){e=new h.UnparsableJSON({more:r.responseText})}(e instanceof h.UnparsableJSON?n:t)(e)},r.onerror=function(t){if(i)return;clearTimeout(o),n(new h.Network({more:t}))},r instanceof XMLHttpRequest?(r.open(l.method,c,!0),l.forceAuthHeaders&&(r.setRequestHeader("x-algolia-application-id",l.headers["x-algolia-application-id"]),r.setRequestHeader("x-algolia-api-key",l.headers["x-algolia-api-key"]))):r.open(l.method,c),f.cors&&(e&&("POST"===l.method?r.setRequestHeader("content-type","application/x-www-form-urlencoded"):r.setRequestHeader("content-type","application/json")),r.setRequestHeader("accept","application/json")),e?r.send(e):r.send()):n(new h.Network("CORS not supported"))})}).fallback=function(t,e){return t=p(t,e.headers),new d(function(n,r){i(t,e,function(t,e){t?r(t):n(e)})})},o.prototype._promise={reject:function(t){return d.reject(t)},resolve:function(t){return d.resolve(t)},delay:function(e){return new d(function(t){setTimeout(t,e)})},all:function(t){return d.all(t)}},s}},function(e,t,n){(function(t){t="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};e.exports=t}).call(t,n(4))},function(e,t,n){(function(U,B){var t;t=function(){"use strict";function c(t){return"function"==typeof t}var n=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},r=0,e=void 0,i=void 0,o=function(t,e){h[r]=t,h[r+1]=e,2===(r+=2)&&(i?i(p):y())};var t="undefined"!=typeof window?window:void 0,s=t||{},a=s.MutationObserver||s.WebKitMutationObserver,u="undefined"==typeof self&&void 0!==U&&"[object process]"==={}.toString.call(U),s="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function l(){var t=setTimeout;return function(){return t(p,1)}}var h=new Array(1e3);function p(){for(var t=0;t<r;t+=2)(0,h[t])(h[t+1]),h[t]=void 0,h[t+1]=void 0;r=0}var f,d,g,m,y=void 0;function v(t,e){var n=this,r=new this.constructor(_);void 0===r[w]&&q(r);var i,s=n._state;return s?(i=arguments[s-1],o(function(){return $(s,r,i,n._result)})):j(n,r,t,e),r}function b(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(_);return k(e,t),e}y=u?function(){return U.nextTick(p)}:a?(d=0,g=new a(p),m=document.createTextNode(""),g.observe(m,{characterData:!0}),function(){m.data=d=++d%2}):s?((f=new MessageChannel).port1.onmessage=p,function(){return f.port2.postMessage(0)}):(void 0===t?function(){try{var t=Function("return this")().require("vertx");return void 0!==(e=t.runOnLoop||t.runOnContext)?function(){e(p)}:l()}catch(t){return l()}}:l)();var w=Math.random().toString(36).substring(2);function _(){}var x=void 0,S=1,C=2,A={error:null};function T(t){try{return t.then}catch(t){return A.error=t,A}}function E(t,r,i){o(function(e){var n=!1,t=function(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}(i,r,function(t){n||(n=!0,(r!==t?k:I)(e,t))},function(t){n||(n=!0,R(e,t))},e._label);!n&&t&&(n=!0,R(e,t))},t)}function O(t,e,n){var r,i;e.constructor===t.constructor&&n===v&&e.constructor.resolve===b?(r=t,(i=e)._state===S?I(r,i._result):i._state===C?R(r,i._result):j(i,void 0,function(t){return k(r,t)},function(t){return R(r,t)})):n===A?(R(t,A.error),A.error=null):void 0!==n&&c(n)?E(t,e,n):I(t,e)}function k(t,e){var n,r;t===e?R(t,new TypeError("You cannot resolve a promise with itself")):(r=typeof(n=e),null===n||"object"!=r&&"function"!=r?I(t,e):O(t,e,T(e)))}function N(t){t._onerror&&t._onerror(t._result),D(t)}function I(t,e){t._state===x&&(t._result=e,t._state=S,0!==t._subscribers.length&&o(D,t))}function R(t,e){t._state===x&&(t._state=C,t._result=e,o(N,t))}function j(t,e,n,r){var i=t._subscribers,s=i.length;t._onerror=null,i[s]=e,i[s+S]=n,i[s+C]=r,0===s&&t._state&&o(D,t)}function D(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r,i=void 0,s=t._result,o=0;o<e.length;o+=3)r=e[o],i=e[o+n],r?$(n,r,i,s):i(s);t._subscribers.length=0}}function $(t,e,n,r){var i=c(n),s=void 0,o=void 0,a=void 0,u=void 0;if(i){if((s=function(t,e){try{return t(e)}catch(t){return A.error=t,A}}(n,r))===A?(u=!0,o=s.error,s.error=null):a=!0,e===s)return void R(e,new TypeError("A promises callback cannot return that same promise."))}else s=r,a=!0;e._state!==x||(i&&a?k(e,s):u?R(e,o):t===S?I(e,s):t===C&&R(e,s))}var P=0;function q(t){t[w]=P++,t._state=void 0,t._result=void 0,t._subscribers=[]}var L=(M.prototype._enumerate=function(t){for(var e=0;this._state===x&&e<t.length;e++)this._eachEntry(t[e],e)},M.prototype._eachEntry=function(e,t){var n,r,i=this._instanceConstructor,s=i.resolve;s===b?(n=T(e))===v&&e._state!==x?this._settledAt(e._state,t,e._result):"function"!=typeof n?(this._remaining--,this._result[t]=e):i===H?(O(r=new i(_),e,n),this._willSettleAt(r,t)):this._willSettleAt(new i(function(t){return t(e)}),t):this._willSettleAt(s(e),t)},M.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===x&&(this._remaining--,t===C?R(r,n):this._result[e]=n),0===this._remaining&&I(r,this._result)},M.prototype._willSettleAt=function(t,e){var n=this;j(t,void 0,function(t){return n._settledAt(S,e,t)},function(t){return n._settledAt(C,e,t)})},M);function M(t,e){this._instanceConstructor=t,this.promise=new t(_),this.promise[w]||q(this.promise),n(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?I(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&I(this.promise,this._result))):R(this.promise,new Error("Array Methods must be provided an Array"))}var H=(F.prototype.catch=function(t){return this.then(null,t)},F.prototype.finally=function(e){var n=this.constructor;return this.then(function(t){return n.resolve(e()).then(function(){return t})},function(t){return n.resolve(e()).then(function(){throw t})})},F);function F(t){this[w]=P++,this._result=this._state=void 0,this._subscribers=[],_!==t&&("function"!=typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof F?function(e,t){try{t(function(t){k(e,t)},function(t){R(e,t)})}catch(t){R(e,t)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return H.prototype.then=v,H.all=function(t){return new L(this,t).promise},H.race=function(i){var s=this;return n(i)?new s(function(t,e){for(var n=i.length,r=0;r<n;r++)s.resolve(i[r]).then(t,e)}):new s(function(t,e){return e(new TypeError("You must pass an array to race."))})},H.resolve=b,H.reject=function(t){var e=new this(_);return R(e,t),e},H._setScheduler=function(t){i=t},H._setAsap=function(t){o=t},H._asap=o,H.polyfill=function(){var t=void 0;if(void 0!==B)t=B;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var n=null;try{n=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===n&&!e.cast)return}t.Promise=H},H.Promise=H},e.exports=t()}).call(t,n(9),n(4))},function(t,e,n){"use strict";t.exports=function(t,e){/\?/.test(t)?t+="&":t+="?";return t+r(e)};var r=n(45)},function(t,e,n){"use strict";function s(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}}t.exports=function(n,r,i,t){return r=r||"&",i=i||"=",null===n&&(n=void 0),"object"==typeof n?a(u(n),function(t){var e=encodeURIComponent(s(t))+i;return o(n[t])?a(n[t],function(t){return e+encodeURIComponent(s(t))}).join(r):e+encodeURIComponent(s(n[t]))}).join(r):t?encodeURIComponent(s(t))+i+encodeURIComponent(s(n)):""};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function a(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r));return n}var u=Object.keys||function(t){var e,n=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.push(e);return n}},function(t,e,n){"use strict";t.exports=function(t,e,n){if("GET"!==e.method)return void n(new Error("Method "+e.method+" "+t+" is not supported by JSONP."));e.debug("JSONP: start");var r=!1,i=!1;f+=1;var s=document.getElementsByTagName("head")[0],o=document.createElement("script"),a="algoliaJSONP_"+f,u=!1;window[a]=function(t){!function(){try{delete window[a],delete window[a+"_loaded"]}catch(t){window[a]=window[a+"_loaded"]=void 0}}(),i?e.debug("JSONP: Late answer, ignoring"):(r=!0,h(),n(null,{body:t,responseText:JSON.stringify(t)}))},t+="&callback="+a,e.jsonBody&&e.jsonBody.params&&(t+="&"+e.jsonBody.params);var c=setTimeout(function(){e.debug("JSONP: Script timeout"),i=!0,h(),n(new p.RequestTimeout)},e.timeouts.complete);function l(){e.debug("JSONP: success"),u||i||(u=!0,r||(e.debug("JSONP: Fail. Script loaded but did not call the callback"),h(),n(new p.JSONPScriptFail)))}function h(){clearTimeout(c),o.onload=null,o.onreadystatechange=null,o.onerror=null,s.removeChild(o)}o.onreadystatechange=function(){"loaded"!==this.readyState&&"complete"!==this.readyState||l()},o.onload=l,o.onerror=function(){e.debug("JSONP: Script error"),u||i||(h(),n(new p.JSONPScriptError))},o.async=!0,o.defer=!0,o.src=t,s.appendChild(o)};var p=n(5),f=0},function(t,e,s){t.exports=function(i){return function(t,e,n){var r=s(3);(n=n&&r(n)||{}).hosts=n.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||(e=t="",n._allowEmptyCredentials=!0);r=i(t,e,n).initIndex("places");return r.search=o("query","/1/places/query"),r.getObject=function(t,e){return this.as._jsonRequest({method:"GET",url:"/1/places/"+encodeURIComponent(t),hostType:"read",callback:e})},r}};var o=s(13)},function(t,e,n){"use strict";t.exports="3.30.0"},function(t,e,n){"use strict";t.exports=n(50)},function(t,e,n){"use strict";var a=n(15);n(1).element=a;var r=n(0);r.isArray=a.isArray,r.isFunction=a.isFunction,r.isObject=a.isPlainObject,r.bind=a.proxy,r.each=function(t,n){a.each(t,function(t,e){return n(e,t)})},r.map=a.map,r.mixin=a.extend,r.Event=a.Event;var u="aaAutocomplete",c=n(51),l=n(16);function i(t,i,s,o){s=r.isArray(s)?s:[].slice.call(arguments,2);var e=a(t).each(function(t,e){var n=a(e),r=new l({el:n}),e=o||new c({input:n,eventBus:r,dropdownMenuContainer:i.dropdownMenuContainer,hint:void 0===i.hint||!!i.hint,minLength:i.minLength,autoselect:i.autoselect,autoselectOnBlur:i.autoselectOnBlur,tabAutocomplete:i.tabAutocomplete,openOnFocus:i.openOnFocus,templates:i.templates,debug:i.debug,clearOnSelected:i.clearOnSelected,cssClasses:i.cssClasses,datasets:s,keyboardShortcuts:i.keyboardShortcuts,appendTo:i.appendTo,autoWidth:i.autoWidth,ariaLabel:i.ariaLabel||e.getAttribute("aria-label")});n.data(u,e)});return e.autocomplete={},r.each(["open","close","getVal","setVal","destroy","getWrapper"],function(i){e.autocomplete[i]=function(){var n,r=arguments;return e.each(function(t,e){e=a(e).data(u);n=e[i].apply(e,r)}),n}}),e}i.sources=c.sources,i.escapeHighlightedString=r.escapeHighlightedString;var s="autocomplete"in window,o=window.autocomplete;i.noConflict=function(){return s?window.autocomplete=o:delete window.autocomplete,i},t.exports=i},function(t,e,n){"use strict";var s="aaAttrs",o=n(0),a=n(1),i=n(16),r=n(52),u=n(59),c=n(17),l=n(11);function h(t){if((t=t||{}).input||o.error("missing input"),this.isActivated=!1,this.debug=!!t.debug,this.autoselect=!!t.autoselect,this.autoselectOnBlur=!!t.autoselectOnBlur,this.openOnFocus=!!t.openOnFocus,this.minLength=o.isNumber(t.minLength)?t.minLength:1,this.autoWidth=void 0===t.autoWidth||!!t.autoWidth,this.clearOnSelected=!!t.clearOnSelected,this.tabAutocomplete=void 0===t.tabAutocomplete||!!t.tabAutocomplete,t.hint=!!t.hint,t.hint&&t.appendTo)throw new Error("[autocomplete.js] hint and appendTo options can't be used at the same time");this.css=t.css=o.mixin({},l,t.appendTo?l.appendTo:{}),this.cssClasses=t.cssClasses=o.mixin({},l.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix=o.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),this.listboxId=t.listboxId=[this.cssClasses.root,"listbox",o.getUniqueId()].join("-");var e=function(t){var e,n,r;e=a.element(t.input),n=a.element(c.wrapper.replace("%ROOT%",t.cssClasses.root)).css(t.css.wrapper),t.appendTo||"block"!==e.css("display")||"table"!==e.parent().css("display")||n.css("display","table-cell");var i=c.dropdown.replace("%PREFIX%",t.cssClasses.prefix).replace("%DROPDOWN_MENU%",t.cssClasses.dropdownMenu);r=a.element(i).css(t.css.dropdown).attr({role:"listbox",id:t.listboxId}),t.templates&&t.templates.dropdownMenu&&r.html(o.templatify(t.templates.dropdownMenu)());(i=e.clone().css(t.css.hint).css(function(t){return{backgroundAttachment:t.css("background-attachment"),backgroundClip:t.css("background-clip"),backgroundColor:t.css("background-color"),backgroundImage:t.css("background-image"),backgroundOrigin:t.css("background-origin"),backgroundPosition:t.css("background-position"),backgroundRepeat:t.css("background-repeat"),backgroundSize:t.css("background-size")}}(e))).val("").addClass(o.className(t.cssClasses.prefix,t.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();e.data(s,{"aria-autocomplete":e.attr("aria-autocomplete"),"aria-expanded":e.attr("aria-expanded"),"aria-owns":e.attr("aria-owns"),autocomplete:e.attr("autocomplete"),dir:e.attr("dir"),role:e.attr("role"),spellcheck:e.attr("spellcheck"),style:e.attr("style"),type:e.attr("type")}),e.addClass(o.className(t.cssClasses.prefix,t.cssClasses.input,!0)).attr({autocomplete:"off",spellcheck:!1,role:"combobox","aria-autocomplete":t.datasets&&t.datasets[0]&&t.datasets[0].displayKey?"both":"list","aria-expanded":"false","aria-label":t.ariaLabel,"aria-owns":t.listboxId}).css(t.hint?t.css.input:t.css.inputWithNoHint);try{e.attr("dir")||e.attr("dir","auto")}catch(t){}return(n=t.appendTo?n.appendTo(a.element(t.appendTo).eq(0)).eq(0):e.wrap(n).parent()).prepend(t.hint?i:null).append(r),{wrapper:n,input:e,hint:i,menu:r}}(t);this.$node=e.wrapper;var n=this.$input=e.input,r=e.menu,e=e.hint;t.dropdownMenuContainer&&a.element(t.dropdownMenuContainer).css("position","relative").append(r.css("top","0")),n.on("blur.aa",function(t){var e=document.activeElement;o.isMsie()&&(r[0]===e||r[0].contains(e))&&(t.preventDefault(),t.stopImmediatePropagation(),o.defer(function(){n.focus()}))}),r.on("mousedown.aa",function(t){t.preventDefault()}),this.eventBus=t.eventBus||new i({el:n}),this.dropdown=new h.Dropdown({appendTo:t.appendTo,wrapper:this.$node,menu:r,datasets:t.datasets,templates:t.templates,cssClasses:t.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 h.Input({input:n,hint:e}).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(t),this._setLanguageDirection()}o.mixin(h.prototype,{_bindKeyboardShortcuts:function(t){var r,i;t.keyboardShortcuts&&(r=this.$input,i=[],o.each(t.keyboardShortcuts,function(t){"string"==typeof t&&(t=t.toUpperCase().charCodeAt(0)),i.push(t)}),a.element(document).keydown(function(t){var e=t.target||t.srcElement,n=e.tagName;e.isContentEditable||"INPUT"===n||"SELECT"===n||"TEXTAREA"===n||(n=t.which||t.keyCode,-1!==i.indexOf(n)&&(r.focus(),t.stopPropagation(),t.preventDefault()))}))},_onSuggestionClicked:function(t,e){(e=this.dropdown.getDatumForSuggestion(e))&&this._select(e,{selectionMethod:"click"})},_onCursorMoved:function(t,e){var n=this.dropdown.getDatumForCursor(),r=this.dropdown.getCurrentCursor().attr("id");this.input.setActiveDescendant(r),n&&(e&&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 t=this.$input[0].getBoundingClientRect();this.autoWidth&&this.$node.css("width",t.width+"px");var e=this.$node[0].getBoundingClientRect(),n=t.bottom-e.top;this.$node.css("top",n+"px");e=t.left-e.left;this.$node.css("left",e+"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(){var t;this.isActivated=!0,this.openOnFocus&&((t=this.input.getQuery()).length>=this.minLength?this.dropdown.update(t):this.dropdown.empty(),this.dropdown.open())},_onBlurred:function(){var t=this.dropdown.getDatumForCursor(),e=this.dropdown.getDatumForTopSuggestion(),n={selectionMethod:"blur"};this.debug||(this.autoselectOnBlur&&t?this._select(t,n):this.autoselectOnBlur&&e?this._select(e,n):(this.isActivated=!1,this.dropdown.empty(),this.dropdown.close()))},_onEnterKeyed:function(t,e){var n=this.dropdown.getDatumForCursor(),r=this.dropdown.getDatumForTopSuggestion(),i={selectionMethod:"enterKey"};n?(this._select(n,i),e.preventDefault()):this.autoselect&&r&&(this._select(r,i),e.preventDefault())},_onTabKeyed:function(t,e){var n;this.tabAutocomplete?(n=this.dropdown.getDatumForCursor())?(this._select(n,{selectionMethod:"tabKey"}),e.preventDefault()):this._autocomplete(!0):this.dropdown.close()},_onEscKeyed:function(){this.dropdown.close(),this.input.resetInputValue()},_onUpKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorUp(),this.dropdown.open()},_onDownKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorDown(),this.dropdown.open()},_onLeftKeyed:function(){"rtl"===this.dir&&this._autocomplete()},_onRightKeyed:function(){"ltr"===this.dir&&this._autocomplete()},_onQueryChanged:function(t,e){this.input.clearHintIfInvalid(),e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty(),this.dropdown.open(),this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint(),this.dropdown.open()},_setLanguageDirection:function(){var t=this.input.getLanguageDirection();this.dir!==t&&(this.dir=t,this.$node.css("direction",t),this.dropdown.setLanguageDirection(t))},_updateHint:function(){var t,e,n=this.dropdown.getDatumForTopSuggestion();n&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(t=this.input.getInputValue(),e=r.normalizeQuery(t),e=o.escapeRegExChars(e),(n=new RegExp("^(?:"+e+")(.+$)","i").exec(n.value))?this.input.setHint(t+n[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(t){var e=this.input.getHint(),n=this.input.getQuery(),t=t||this.input.isCursorAtEnd();e&&n!==e&&t&&((t=this.dropdown.getDatumForTopSuggestion())&&this.input.setInputValue(t.value),this.eventBus.trigger("autocompleted",t.raw,t.datasetName))},_select:function(t,e){void 0!==t.value&&this.input.setQuery(t.value),this.clearOnSelected?this.setVal(""):this.input.setInputValue(t.value,!0),this._setLanguageDirection(),!1===this.eventBus.trigger("selected",t.raw,t.datasetName,e).isDefaultPrevented()&&(this.dropdown.close(),o.defer(o.bind(this.dropdown.empty,this.dropdown)))},open:function(){var t;this.isActivated||((t=this.input.getInputValue()).length>=this.minLength?this.dropdown.update(t):this.dropdown.empty()),this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(t){t=o.toStr(t),this.isActivated?this.input.setInputValue(t):(this.input.setQuery(t),this.input.setInputValue(t,!0)),this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){this.input.destroy(),this.dropdown.destroy(),function(t,e){var n=t.find(o.className(e.prefix,e.input));o.each(n.data(s),function(t,e){void 0===t?n.removeAttr(e):n.attr(e,t)}),n.detach().removeClass(o.className(e.prefix,e.input,!0)).insertAfter(t),n.removeData&&n.removeData(s);t.remove()}(this.$node,this.cssClasses),this.$node=null},getWrapper:function(){return this.dropdown.$container[0]}}),h.Dropdown=u,h.Input=r,h.sources=n(61),t.exports=h},function(t,e,n){"use strict";var o={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},a=n(0),u=n(1),n=n(10);function r(t){var e,n,r,i,s=this;(t=t||{}).input||a.error("input is missing"),e=a.bind(this._onBlur,this),n=a.bind(this._onFocus,this),r=a.bind(this._onKeydown,this),i=a.bind(this._onInput,this),this.$hint=u.element(t.hint),this.$input=u.element(t.input).on("blur.aa",e).on("focus.aa",n).on("keydown.aa",r),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=a.noop),a.isMsie()?this.$input.on("keydown.aa keypress.aa cut.aa paste.aa",function(t){o[t.which||t.keyCode]||a.defer(a.bind(s._onInput,s,t))}):this.$input.on("input.aa",i),this.query=this.$input.val(),this.$overflowHelper=(i=this.$input,u.element('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:i.css("font-family"),fontSize:i.css("font-size"),fontStyle:i.css("font-style"),fontVariant:i.css("font-variant"),fontWeight:i.css("font-weight"),wordSpacing:i.css("word-spacing"),letterSpacing:i.css("letter-spacing"),textIndent:i.css("text-indent"),textRendering:i.css("text-rendering"),textTransform:i.css("text-transform")}).insertAfter(i))}function s(t){return t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}r.normalizeQuery=function(t){return(t||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},a.mixin(r.prototype,n,{_onBlur:function(){this.resetInputValue(),this.$input.removeAttr("aria-activedescendant"),this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(t){var e=o[t.which||t.keyCode];this._managePreventDefault(e,t),e&&this._shouldTrigger(e,t)&&this.trigger(e+"Keyed",t)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(t,e){var n,r,i;switch(t){case"tab":r=this.getHint(),i=this.getInputValue(),n=r&&r!==i&&!s(e);break;case"up":case"down":n=!s(e);break;default:n=!1}n&&e.preventDefault()},_shouldTrigger:function(t,e){e="tab"!==t||!s(e);return e},_checkInputValue:function(){var t,e,n=this.getInputValue();t=n,e=this.query,e=!(!(t=r.normalizeQuery(t)===r.normalizeQuery(e))||!this.query)&&this.query.length!==n.length,this.query=n,t?e&&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(t){this.query=t},getInputValue:function(){return this.$input.val()},setInputValue:function(t,e){void 0===t&&(t=this.query),this.$input.val(t),e?this.clearHint():this._checkInputValue()},expand:function(){this.$input.attr("aria-expanded","true")},collapse:function(){this.$input.attr("aria-expanded","false")},setActiveDescendant:function(t){this.$input.attr("aria-activedescendant",t)},removeActiveDescendant:function(){this.$input.removeAttr("aria-activedescendant")},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(t){this.$hint.val(t)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var t=this.getInputValue(),e=this.getHint(),e=t!==e&&0===e.indexOf(t);""!==t&&e&&!this.hasOverflow()||this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var t=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=t},isCursorAtEnd:function(){var t=this.$input.val().length,e=this.$input[0].selectionStart;return a.isNumber(e)?e===t:!document.selection||((e=document.selection.createRange()).moveStart("character",-t),t===e.text.length)},destroy:function(){this.$hint.off(".aa"),this.$input.off(".aa"),this.$hint=this.$input=this.$overflowHelper=null}}),t.exports=r},function(t,e,n){"use strict";var r,i,s,o=[n(54),n(55),n(56),n(57),n(58)],a=-1,u=[],c=!1;function l(){r&&i&&(r=!1,i.length?u=i.concat(u):a=-1,u.length&&h())}function h(){if(!r){r=!(c=!1);for(var t=u.length,e=setTimeout(l);t;){for(i=u,u=[];i&&++a<t;)i[a].run();a=-1,t=u.length}i=null,r=!(a=-1),clearTimeout(e)}}for(var p=-1,f=o.length;++p<f;)if(o[p]&&o[p].test&&o[p].test()){s=o[p].install(h);break}function d(t,e){this.fun=t,this.array=e}d.prototype.run=function(){var t=this.fun,e=this.array;switch(e.length){case 0:return t();case 1:return t(e[0]);case 2:return t(e[0],e[1]);case 3:return t(e[0],e[1],e[2]);default:return t.apply(null,e)}},t.exports=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new d(t,e)),c||r||(c=!0,s())}},function(t,n,e){"use strict";(function(e){n.test=function(){return void 0!==e&&!e.browser},n.install=function(t){return function(){e.nextTick(t)}}}).call(n,e(9))},function(t,e,n){"use strict";(function(r){var i=r.MutationObserver||r.WebKitMutationObserver;e.test=function(){return i},e.install=function(t){var e=0,t=new i(t),n=r.document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}}).call(e,n(4))},function(t,e,n){"use strict";(function(n){e.test=function(){return!n.setImmediate&&void 0!==n.MessageChannel},e.install=function(t){var e=new n.MessageChannel;return e.port1.onmessage=t,function(){e.port2.postMessage(0)}}}).call(e,n(4))},function(t,e,n){"use strict";(function(n){e.test=function(){return"document"in n&&"onreadystatechange"in n.document.createElement("script")},e.install=function(e){return function(){var t=n.document.createElement("script");return t.onreadystatechange=function(){e(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},n.document.documentElement.appendChild(t),e}}}).call(e,n(4))},function(t,e,n){"use strict";e.test=function(){return!0},e.install=function(t){return function(){setTimeout(t,0)}}},function(t,e,n){"use strict";var a=n(0),u=n(1),r=n(10),i=n(60),c=n(11);function l(r){var t,e,n,i=this;(r=r||{}).menu||a.error("menu is required"),a.isArray(r.datasets)||a.isObject(r.datasets)||a.error("1 or more datasets required"),r.datasets||a.error("datasets is required"),this.isOpen=!1,this.isEmpty=!0,this.minLength=r.minLength||0,this.templates={},this.appendTo=r.appendTo||!1,this.css=a.mixin({},c,r.appendTo?c.appendTo:{}),this.cssClasses=r.cssClasses=a.mixin({},c.defaultClasses,r.cssClasses||{}),this.cssClasses.prefix=r.cssClasses.formattedPrefix||a.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),t=a.bind(this._onSuggestionClick,this),e=a.bind(this._onSuggestionMouseEnter,this),n=a.bind(this._onSuggestionMouseLeave,this);var s=a.className(this.cssClasses.prefix,this.cssClasses.suggestion);this.$menu=u.element(r.menu).on("mouseenter.aa",s,e).on("mouseleave.aa",s,n).on("click.aa",s,t),this.$container=r.appendTo?r.wrapper:this.$menu,r.templates&&r.templates.header&&(this.templates.header=a.templatify(r.templates.header),this.$menu.prepend(this.templates.header())),r.templates&&r.templates.empty&&(this.templates.empty=a.templatify(r.templates.empty),this.$empty=u.element('<div class="'+a.className(this.cssClasses.prefix,this.cssClasses.empty,!0)+'"></div>'),this.$menu.append(this.$empty),this.$empty.hide()),this.datasets=a.map(r.datasets,function(t){return e=i.$menu,n=t,t=r.cssClasses,new l.Dataset(a.mixin({$menu:e,cssClasses:t},n));var e,n}),a.each(this.datasets,function(t){var e=t.getRoot();e&&0===e.parent().length&&i.$menu.append(e),t.onSync("rendered",i._onRendered,i)}),r.templates&&r.templates.footer&&(this.templates.footer=a.templatify(r.templates.footer),this.$menu.append(this.templates.footer()));var o=this;u.element(window).resize(function(){o._redraw()})}a.mixin(l.prototype,r,{_onSuggestionClick:function(t){this.trigger("suggestionClicked",u.element(t.currentTarget))},_onSuggestionMouseEnter:function(t){var e,n=u.element(t.currentTarget);n.hasClass(a.className(this.cssClasses.prefix,this.cssClasses.cursor,!0))||(this._removeCursor(),e=this,setTimeout(function(){e._setCursor(n,!1)},0))},_onSuggestionMouseLeave:function(t){if(t.relatedTarget&&0<u.element(t.relatedTarget).closest("."+a.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).length)return;this._removeCursor(),this.trigger("cursorRemoved")},_onRendered:function(t,e){var n;this.isEmpty=a.every(this.datasets,function(t){return t.isEmpty()}),this.isEmpty?(e.length>=this.minLength&&this.trigger("empty"),this.$empty?e.length<this.minLength?this._hide():(n=this.templates.empty({query:this.datasets[0]&&this.datasets[0].query}),this.$empty.html(n),this.$empty.show(),this._show()):!a.any(this.datasets,function(t){return t.templates&&t.templates.empty})||e.length<this.minLength?this._hide():this._show()):this.isOpen&&(this.$empty&&(this.$empty.empty(),this.$empty.hide()),e.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(a.className(this.cssClasses.prefix,this.cssClasses.suggestion))},_getCursor:function(){return this.$menu.find(a.className(this.cssClasses.prefix,this.cssClasses.cursor)).first()},_setCursor:function(t,e){t.first().addClass(a.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).attr("aria-selected","true"),this.trigger("cursorMoved",e)},_removeCursor:function(){this._getCursor().removeClass(a.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).removeAttr("aria-selected")},_moveCursor:function(t){var e,n;this.isOpen&&(n=this._getCursor(),e=this._getSuggestions(),this._removeCursor(),-1!==(t=((t=e.index(n)+t)+1)%(e.length+1)-1)?(t<-1&&(t=e.length-1),this._setCursor(t=e.eq(t),!0),this._ensureVisible(t)):this.trigger("cursorRemoved"))},_ensureVisible:function(t){var e=t.position().top,n=e+t.height()+parseInt(t.css("margin-top"),10)+parseInt(t.css("margin-bottom"),10),r=this.$menu.scrollTop(),t=this.$menu.height()+parseInt(this.$menu.css("padding-top"),10)+parseInt(this.$menu.css("padding-bottom"),10);e<0?this.$menu.scrollTop(r+e):t<n&&this.$menu.scrollTop(r+(n-t))},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(t){this.$menu.css("ltr"===t?this.css.ltr:this.css.rtl)},moveCursorUp:function(){this._moveCursor(-1)},moveCursorDown:function(){this._moveCursor(1)},getDatumForSuggestion:function(t){var e=null;return t.length&&(e={raw:i.extractDatum(t),value:i.extractValue(t),datasetName:i.extractDatasetName(t)}),e},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){a.each(this.datasets,function(t){t.update(e)})},empty:function(){a.each(this.datasets,function(t){t.clear()}),this.isEmpty=!0},isVisible:function(){return this.isOpen&&!this.isEmpty},destroy:function(){this.$menu.off(".aa"),this.$menu=null,a.each(this.datasets,function(t){t.destroy()})}}),l.Dataset=i,t.exports=l},function(t,e,n){"use strict";var a="aaDataset",u="aaValue",c="aaDatum",l=n(0),h=n(1),p=n(17),i=n(11),n=n(10);function r(t){var e,n;(t=t||{}).templates=t.templates||{},t.source||l.error("missing source"),t.name&&!/^[_a-zA-Z0-9-]+$/.test(t.name)&&l.error("invalid dataset name: "+t.name),this.query=null,this._isEmpty=!0,this.highlight=!!t.highlight,this.name=void 0===t.name||null===t.name?l.getUniqueId():t.name,this.source=t.source,this.displayFn=(e=(e=t.display||t.displayKey)||"value",l.isFunction(e)?e:function(t){return t[e]}),this.debounce=t.debounce,this.cache=!1!==t.cache,this.templates=(r=t.templates,n=this.displayFn,{empty:r.empty&&l.templatify(r.empty),header:r.header&&l.templatify(r.header),footer:r.footer&&l.templatify(r.footer),suggestion:r.suggestion||function(t){return"<p>"+n(t)+"</p>"}}),this.css=l.mixin({},i,t.appendTo?i.appendTo:{}),this.cssClasses=t.cssClasses=l.mixin({},i.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix||l.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix);var r=l.className(this.cssClasses.prefix,this.cssClasses.dataset);this.$el=t.$menu&&0<t.$menu.find(r+"-"+this.name).length?h.element(t.$menu.find(r+"-"+this.name)[0]):h.element(p.dataset.replace("%CLASS%",this.name).replace("%PREFIX%",this.cssClasses.prefix).replace("%DATASET%",this.cssClasses.dataset)),this.$menu=t.$menu,this.clearCachedSuggestions()}r.extractDatasetName=function(t){return h.element(t).data(a)},r.extractValue=function(t){return h.element(t).data(u)},r.extractDatum=function(t){t=h.element(t).data(c);return"string"==typeof t&&(t=JSON.parse(t)),t},l.mixin(r.prototype,n,{_render:function(e,i){if(this.$el){var n,s=this,t=[].slice.call(arguments,2);if(this.$el.empty(),n=i&&i.length,this._isEmpty=!n,!n&&this.templates.empty)this.$el.html(function(){var t=[].slice.call(arguments,0);return t=[{query:e,isEmpty:!0}].concat(t),s.templates.empty.apply(this,t)}.apply(this,t)).prepend(s.templates.header?r.apply(this,t):null).append(s.templates.footer?o.apply(this,t):null);else if(n)this.$el.html(function(){var t,n=[].slice.call(arguments,0),r=this,e=p.suggestions.replace("%PREFIX%",this.cssClasses.prefix).replace("%SUGGESTIONS%",this.cssClasses.suggestions);return t=h.element(e).css(this.css.suggestions),e=l.map(i,function(t){var e=p.suggestion.replace("%PREFIX%",r.cssClasses.prefix).replace("%SUGGESTION%",r.cssClasses.suggestion);return(e=h.element(e).attr({role:"option",id:["option",Math.floor(1e8*Math.random())].join("-")}).append(s.templates.suggestion.apply(this,[t].concat(n)))).data(a,s.name),e.data(u,s.displayFn(t)||void 0),e.data(c,JSON.stringify(t)),e.children().each(function(){h.element(this).css(r.css.suggestionChild)}),e}),t.append.apply(t,e),t}.apply(this,t)).prepend(s.templates.header?r.apply(this,t):null).append(s.templates.footer?o.apply(this,t):null);else if(i&&!Array.isArray(i))throw new TypeError("suggestions must be an array");this.$menu&&this.$menu.addClass(this.cssClasses.prefix+(n?"with":"without")+"-"+this.name).removeClass(this.cssClasses.prefix+(n?"without":"with")+"-"+this.name),this.trigger("rendered",e)}function r(){var t=[].slice.call(arguments,0),t=[{query:e,isEmpty:!n}].concat(t);return s.templates.header.apply(this,t)}function o(){var t=[].slice.call(arguments,0),t=[{query:e,isEmpty:!n}].concat(t);return s.templates.footer.apply(this,t)}},getRoot:function(){return this.$el},update:function(n){function t(t){var e;this.canceled||n!==this.query||(e=[].slice.call(arguments,1),this.cacheSuggestions(n,t,e),this._render.apply(this,[n,t].concat(e)))}var e,r;this.query=n,this.canceled=!1,this.shouldFetchFromCache(n)?t.apply(this,[this.cachedSuggestions].concat(this.cachedRenderExtraArgs)):(r=function(){e.canceled||e.source(n,t.bind(e))},(e=this).debounce?(clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(function(){e.debounceTimeout=null,r()},this.debounce)):r())},cacheSuggestions:function(t,e,n){this.cachedQuery=t,this.cachedSuggestions=e,this.cachedRenderExtraArgs=n},shouldFetchFromCache:function(t){return this.cache&&this.cachedQuery===t&&this.cachedSuggestions&&this.cachedSuggestions.length},clearCachedSuggestions:function(){delete this.cachedQuery,delete this.cachedSuggestions,delete this.cachedRenderExtraArgs},cancel:function(){this.canceled=!0},clear:function(){this.cancel(),this.$el.empty(),this.trigger("rendered","")},isEmpty:function(){return this._isEmpty},destroy:function(){this.clearCachedSuggestions(),this.$el=null}}),t.exports=r},function(t,e,n){"use strict";t.exports={hits:n(62),popularIn:n(63)}},function(t,e,n){"use strict";var i=n(0),s=n(18),o=n(19);t.exports=function(e,r){var t=o(e.as._ua);return t&&3<=t[0]&&20<t[1]&&((r=r||{}).additionalUA="autocomplete.js "+s),function(t,n){e.search(t,r,function(t,e){t?i.error(t.message):n(e.hits,e)})}}},function(t,e,n){"use strict";var l=n(0),h=n(18),p=n(19);t.exports=function(e,n,r,a){var t=p(e.as._ua);if(t&&3<=t[0]&&20<t[1]&&((n=n||{}).additionalUA="autocomplete.js "+h),!r.source)return l.error("Missing 'source' key");var u=l.isFunction(r.source)?r.source:function(t){return t[r.source]};if(!r.index)return l.error("Missing 'index' key");var c=r.index;return a=a||{},function(t,o){e.search(t,n,function(t,i){if(t)l.error(t.message);else{if(0<i.hits.length){var s=i.hits[0],e=l.mixin({hitsPerPage:0},r);delete e.source,delete e.index;t=p(c.as._ua);return t&&3<=t[0]&&20<t[1]&&(n.additionalUA="autocomplete.js "+h),void c.search(u(s),e,function(t,e){if(t)l.error(t.message);else{var r=[];a.includeAll&&(t=a.allTitle||"All departments",r.push(l.mixin({facet:{value:t,count:e.nbHits}},l.cloneDeep(s)))),l.each(e.facets,function(t,n){l.each(t,function(t,e){r.push(l.mixin({facet:{facet:n,value:e,count:t}},l.cloneDeep(s)))})});for(var n=1;n<i.hits.length;++n)r.push(i.hits[n]);o(r,i)}})}o([])}})}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="algolia-docsearch",i=r+"-suggestion",r=r+"-footer",i={suggestion:'\n <a class="'+i+"\n {{#isCategoryHeader}}"+i+"__main{{/isCategoryHeader}}\n {{#isSubCategoryHeader}}"+i+'__secondary{{/isSubCategoryHeader}}\n "\n aria-label="Link to the result"\n href="{{{url}}}"\n >\n <div class="'+i+'--category-header">\n <span class="'+i+'--category-header-lvl0">{{{category}}}</span>\n </div>\n <div class="'+i+'--wrapper">\n <div class="'+i+'--subcategory-column">\n <span class="'+i+'--subcategory-column-text">{{{subcategory}}}</span>\n </div>\n {{#isTextOrSubcategoryNonEmpty}}\n <div class="'+i+'--content">\n <div class="'+i+'--subcategory-inline">{{{subcategory}}}</div>\n <div class="'+i+'--title">{{{title}}}</div>\n {{#text}}<div class="'+i+'--text">{{{text}}}</div>{{/text}}\n </div>\n {{/isTextOrSubcategoryNonEmpty}}\n </div>\n </a>\n ',suggestionSimple:'\n <div class="'+i+"\n {{#isCategoryHeader}}"+i+"__main{{/isCategoryHeader}}\n {{#isSubCategoryHeader}}"+i+'__secondary{{/isSubCategoryHeader}}\n suggestion-layout-simple\n ">\n <div class="'+i+'--category-header">\n {{^isLvl0}}\n <span class="'+i+"--category-header-lvl0 "+i+'--category-header-item">{{{category}}}</span>\n {{^isLvl1}}\n {{^isLvl1EmptyOrDuplicate}}\n <span class="'+i+"--category-header-lvl1 "+i+'--category-header-item">\n {{{subcategory}}}\n </span>\n {{/isLvl1EmptyOrDuplicate}}\n {{/isLvl1}}\n {{/isLvl0}}\n <div class="'+i+"--title "+i+'--category-header-item">\n {{#isLvl2}}\n {{{title}}}\n {{/isLvl2}}\n {{#isLvl1}}\n {{{subcategory}}}\n {{/isLvl1}}\n {{#isLvl0}}\n {{{category}}}\n {{/isLvl0}}\n </div>\n </div>\n <div class="'+i+'--wrapper">\n {{#text}}\n <div class="'+i+'--content">\n <div class="'+i+'--text">{{{text}}}</div>\n </div>\n {{/text}}\n </div>\n </div>\n ',footer:'\n <div class="'+r+'">\n Search by <a class="'+r+'--logo" href="https://www.algolia.com/docsearch">Algolia</a>\n </div>\n ',empty:'\n <div class="'+i+'">\n <div class="'+i+'--wrapper">\n <div class="'+i+"--content "+i+'--no-results">\n <div class="'+i+'--title">\n <div class="'+i+'--text">\n No results found for query <b>"{{query}}"</b>\n </div>\n </div>\n </div>\n </div>\n </div>\n ',searchBox:'\n <form novalidate="novalidate" onsubmit="return false;" class="searchbox">\n <div role="search" class="searchbox__wrapper">\n <input id="docsearch" type="search" name="search" placeholder="Search the docs" autocomplete="off" required="required" class="searchbox__input"/>\n <button type="submit" title="Submit your search query." class="searchbox__submit" >\n <svg width=12 height=12 role="img" aria-label="Search">\n <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#sbx-icon-search-13"></use>\n </svg>\n </button>\n <button type="reset" title="Clear the search query." class="searchbox__reset hide">\n <svg width=12 height=12 role="img" aria-label="Reset">\n <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#sbx-icon-clear-3"></use>\n </svg>\n </button>\n </div>\n</form>\n\n<div class="svg-icons" style="height: 0; width: 0; position: absolute; visibility: hidden">\n <svg xmlns="http://www.w3.org/2000/svg">\n <symbol id="sbx-icon-clear-3" viewBox="0 0 40 40"><path d="M16.228 20L1.886 5.657 0 3.772 3.772 0l1.885 1.886L20 16.228 34.343 1.886 36.228 0 40 3.772l-1.886 1.885L23.772 20l14.342 14.343L40 36.228 36.228 40l-1.885-1.886L20 23.772 5.657 38.114 3.772 40 0 36.228l1.886-1.885L16.228 20z" fill-rule="evenodd"></symbol>\n <symbol id="sbx-icon-search-13" viewBox="0 0 40 40"><path d="M26.806 29.012a16.312 16.312 0 0 1-10.427 3.746C7.332 32.758 0 25.425 0 16.378 0 7.334 7.333 0 16.38 0c9.045 0 16.378 7.333 16.378 16.38 0 3.96-1.406 7.593-3.746 10.426L39.547 37.34c.607.608.61 1.59-.004 2.203a1.56 1.56 0 0 1-2.202.004L26.807 29.012zm-10.427.627c7.322 0 13.26-5.938 13.26-13.26 0-7.324-5.938-13.26-13.26-13.26-7.324 0-13.26 5.936-13.26 13.26 0 7.322 5.936 13.26 13.26 13.26z" fill-rule="evenodd"></symbol>\n </svg>\n</div>\n '};e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=n(20),o=(r=s)&&r.__esModule?r:{default:r};n={mergeKeyWithParent:function(t,e){if(void 0===t[e])return t;if("object"!==i(t[e]))return t;t=o.default.extend({},t,t[e]);return delete t[e],t},groupBy:function(t,r){var i={};return o.default.each(t,function(t,e){if(void 0===e[r])throw new Error("[groupBy]: Object has no key "+r);var n=e[r];"string"==typeof n&&(n=n.toLowerCase()),Object.prototype.hasOwnProperty.call(i,n)||(i[n]=[]),i[n].push(e)}),i},values:function(e){return Object.keys(e).map(function(t){return e[t]})},flatten:function(t){var e=[];return t.forEach(function(t){Array.isArray(t)?t.forEach(function(t){e.push(t)}):e.push(t)}),e},flattenAndFlagFirst:function(t,n){t=this.values(t).map(function(t){return t.map(function(t,e){return t[n]=0===e,t})});return this.flatten(t)},compact:function(t){var e=[];return t.forEach(function(t){t&&e.push(t)}),e},getHighlightedValue:function(t,e){return t._highlightResult&&t._highlightResult.hierarchy_camel&&t._highlightResult.hierarchy_camel[e]&&t._highlightResult.hierarchy_camel[e].matchLevel&&"none"!==t._highlightResult.hierarchy_camel[e].matchLevel&&t._highlightResult.hierarchy_camel[e].value?t._highlightResult.hierarchy_camel[e].value:t._highlightResult&&t._highlightResult&&t._highlightResult[e]&&t._highlightResult[e].value?t._highlightResult[e].value:t[e]},getSnippetedValue:function(t,e){if(!t._snippetResult||!t._snippetResult[e]||!t._snippetResult[e].value)return t[e];e=t._snippetResult[e].value;return e[0]!==e[0].toUpperCase()&&(e="…"+e),-1===[".","!","?"].indexOf(e[e.length-1])&&(e+="…"),e},deepClone:function(t){return JSON.parse(JSON.stringify(t))}};e.default=n}],r.c=i,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=22);function r(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}var n,i},"object"==typeof f.exports?f.exports=p():"function"==typeof define&&define.amd?define([],p):"object"==typeof f.exports?f.exports.docsearch=p():h.docsearch=p(),f=f.exports;!function(){"use strict";window.addEventListener("load",function(){var t=document.getElementById("search-script").dataset,e=document.createElement("link");e.rel="stylesheet",e.href=t.stylesheet,document.head.appendChild(e);var n=f({appId:t.appId,apiKey:t.apiKey,indexName:t.indexName,inputSelector:"#search-query",algoliaOptions:{hitsPerPage:25},debug:!1});document.querySelector("button.search").addEventListener("click",function(t){document.querySelector(".navbar-start").classList.toggle("reveal-search-input")&&(n.autocomplete.autocomplete.setVal(""),n.input.focus())})})}()}();