1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[41629],{17331:function(e){function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"object"==typeof e&&null!==e}e.exports=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,i,o,s,a,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var c=Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(void 0===(i=this._events[e]))return!1;if(r(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),i.apply(this,s)}else if(n(i))for(a=0,s=Array.prototype.slice.call(arguments,1),o=(u=i.slice()).length;a<o;a++)u[a].apply(this,s);return!0},t.prototype.addListener=function(e,i){var o;if(!r(i))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(i.listener)?i.listener:i),this._events[e]?n(this._events[e])?this._events[e].push(i):this._events[e]=[this._events[e],i]:this._events[e]=i,n(this._events[e])&&!this._events[e].warned&&(o=void 0===this._maxListeners?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[e].length>o&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var i,o,s,a;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=(i=this._events[e]).length,o=-1,i===t||r(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(n(i)){for(a=s;a-- >0;)if(i[a]===t||i[a].listener&&i[a].listener===t){o=a;break}if(o<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0==arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0==arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},8131:function(e,t,r){"use strict";var n=r(49374),i=r(17775),o=r(23076);function s(e,t,r){return new n(e,t,r)}s.version=r(24336),s.AlgoliaSearchHelper=n,s.SearchParameters=i,s.SearchResults=o,e.exports=s},68078:function(e,t,r){"use strict";var n=r(17331);function i(e,t){this.main=e,this.fn=t,this.lastResults=null}r(14853)(i,n),i.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},i.prototype.getModifiedState=function(e){return this.fn(e)},e.exports=i},82437:function(e,t,r){"use strict";var n=r(52344),i=r(90116),o=r(49803),s={addRefinement:function(e,t,r){if(s.isRefined(e,t,r))return e;var i=""+r,o=e[t]?e[t].concat(i):[i],a={};return a[t]=o,n({},a,e)},removeRefinement:function(e,t,r){if(void 0===r)return s.clearRefinement(e,function(e,r){return t===r});var n=""+r;return s.clearRefinement(e,function(e,r){return t===r&&n===e})},toggleRefinement:function(e,t,r){if(void 0===r)throw Error("toggleRefinement should be used with a value");return s.isRefined(e,t,r)?s.removeRefinement(e,t,r):s.addRefinement(e,t,r)},clearRefinement:function(e,t,r){if(void 0===t)return i(e)?{}:e;if("string"==typeof t)return o(e,[t]);if("function"==typeof t){var n=!1,s=Object.keys(e).reduce(function(i,o){var s=e[o]||[],a=s.filter(function(e){return!t(e,o,r)});return a.length!==s.length&&(n=!0),i[o]=a,i},{});return n?s:e}},isRefined:function(e,t,r){var n=!!e[t]&&e[t].length>0;return void 0!==r&&n?-1!==e[t].indexOf(""+r):n}};e.exports=s},17775:function(e,t,r){"use strict";
vendor: 6,445 bytes, line 1
1var n=r(52344),i=r(7888),o=r(22686),s=r(60185),a=r(90116),u=r(49803),c=r(28023),l=r(46801),h=r(82437);function f(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(e,r){return f(t[r],e)}):e===t}function p(e){var t=e?p._parseNumbers(e):{};void 0===t.userToken||l(t.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var r=this;Object.keys(t).forEach(function(e){var n=-1!==p.PARAMETERS.indexOf(e),i=void 0!==t[e];!n&&i&&(r[e]=t[e])})}p.PARAMETERS=Object.keys(new p),p._parseNumbers=function(e){if(e instanceof p)return e;var t={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach(function(r){var n=e[r];if("string"==typeof n){var i=parseFloat(n);t[r]=isNaN(i)?n:i}}),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map(function(e){return Array.isArray(e)?e.map(function(e){return parseFloat(e)}):e})),e.numericRefinements){var r={};Object.keys(e.numericRefinements).forEach(function(t){var n=e.numericRefinements[t]||{};r[t]={},Object.keys(n).forEach(function(e){var i=n[e].map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?parseFloat(e):e}):"string"==typeof e?parseFloat(e):e});r[t][e]=i})}),t.numericRefinements=r}return s({},e,t)},p.make=function(e){var t=new p(e);return(e.hierarchicalFacets||[]).forEach(function(e){if(e.rootPath){var r=t.getHierarchicalRefinement(e.name);r.length>0&&0!==r[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),0===(r=t.getHierarchicalRefinement(e.name)).length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}}),t},p.validate=function(e,t){var r=t||{};return e.tagFilters&&r.tagRefinements&&r.tagRefinements.length>0?Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&r.tagFilters?Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&r.numericRefinements&&a(r.numericRefinements)?Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):a(e.numericRefinements)&&r.numericFilters?Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},p.prototype={constructor:p,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:h.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:h.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:h.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:h.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return t.numericRefinements===this.numericRefinements&&t.facetsRefinements===this.facetsRefinements&&t.facetsExcludes===this.facetsExcludes&&t.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&t.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(t)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,r){var n=c(r);if(this.isNumericRefined(e,t,n))return this;var i=s({},this.numericRefinements);return i[e]=s({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(n)):i[e][t]=[n],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,r){return void 0!==r?this.isNumericRefined(e,t,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,i){return i===e&&n.op===t&&f(n.val,c(r))})}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(r,n){return n===e&&r.op===t})}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(t,r){return r===e})}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(void 0===e)return a(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof e)return u(this.numericRefinements,[e]);if("function"==typeof e){var t=!1,r=this.numericRefinements,n=Object.keys(r).reduce(function(n,i){var o=r[i],s={};return Object.keys(o=o||{}
1).forEach(function(r){var n=o[r]||[],a=[];n.forEach(function(t){e({val:t,op:r},i,"numeric")||a.push(t)}),a.length!==n.length&&(t=!0),s[r]=a}),n[i]=s,n},{});return t?n:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:h.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:h.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return h.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:h.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter(function(t){return t!==e})}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter(function(t){return t!==e})}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter(function(t){return t.name!==e})}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:h.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:h.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return h.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:h.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.filter(function(t){return t!==e})};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:h.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:h.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:h.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),i={};return void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+r))?-1===t.indexOf(r)?i[e]=[]:i[e]=[t.slice(0,t.lastIndexOf(r))]:i[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:n({},i,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var r={};return r[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:n({},r,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:n({},t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&h.isRef
1ined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&h.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&h.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var r=this.getHierarchicalRefinement(e);return t?-1!==r.indexOf(t):r.length>0},isNumericRefined:function(e,t,r){if(void 0===r&&void 0===t)return!!this.numericRefinements[e];var n=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===r||!n)return n;var o=c(r),s=void 0!==i(this.numericRefinements[e][t],function(e){return f(e,o)});return n&&s},isTagRefined:function(e){return -1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=o(Object.keys(this.numericRefinements).filter(function(t){return Object.keys(e.numericRefinements[t]).length>0}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(t){return e.disjunctiveFacetsRefinements[t].length>0}).concat(t).concat(this.getRefinedHierarchicalFacets()).sort()},getRefinedHierarchicalFacets:function(){var e=this;return o(this.hierarchicalFacets.map(function(e){return e.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(t){return e.hierarchicalFacetsRefinements[t].length>0})).sort()},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(t){return -1===e.indexOf(t)})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},r=this;return Object.keys(this).forEach(function(n){var i=r[n];-1===e.indexOf(n)&&void 0!==i&&(t[n]=i)}),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var r={};return r[e]=t,this.setQueryParameters(r)},setQueryParameters:function(e){if(!e)return this;var t=p.validate(this,e);if(t)throw t;var r=this,n=p._parseNumbers(e),i=Object.keys(this).reduce(function(e,t){return e[t]=r[t],e},{}),o=Object.keys(n).reduce(function(e,t){var r=void 0!==e[t],i=void 0!==n[t];return r&&!i?u(e,[t]):(i&&(e[t]=n[t]),e)},i);return new this.constructor(o)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return i(this.hierarchicalFacets,function(t){return t.name===e})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(r).map(function(e){return e.trim()})},toString:function(){return JSON.stringify(this,null,2)}},e.exports=p},10210:function(e,t,r){"use strict";e.exports=function(e){return function(t,r){var n=e.hierarchicalFacets[r],c=e.hierarchicalFacetsRefinements[n.name]&&e.hierarchicalFacetsRefinements[n.name][0]||"",l=e._getHierarchicalFacetSeparator(n),h=e._getHierarchicalRootPath(n),f=e._getHierarchicalShowParentLevel(n),p=o(e._getHierarchicalFacetSortBy(n)),d=t.every(function(e){return e.exhaustive}),m=t;return h&&(m=t.slice(h.split(l).length)),m.reduce(function(e,t,r){var n=e;if(r>0){var o=0;for(n=e;o<r;)n=i(n&&Array.isArray(n.data)?n.data:[],function(e){return e.isRefined}),o++}if(n){var d=Object.keys(t.data).map(function(e){return[e,t.data[e]]}).filter(function(e){var t,r;return t=e[0],r=n.path||h,(!h||0===t.indexOf(h)&&h!==t)&&(!h&&-1===t.indexOf(l)||h&&t.split(l).length-h.split(l).length==1||-1===t.indexOf(l)&&-1===c.indexOf(l)||0===c.indexOf(t)||0===t.indexOf(r+l)&&(f||0===t.indexOf(c)))});n.data=s(d.map(function(e){var r,n,i,o,s=e[0];return r=e[1],n=u(c),i=t.exhaustive,{name:(o=s.split(l))[o.length-1].trim(),path:s,escapedValue:a(s),count:r,isRefined:n===s||
10===n.indexOf(s+l),exhaustive:i,data:null}}),p[0],p[1])}return e},{name:e.hierarchicalFacets[r].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:d,data:null})}};var n=r(94039),i=r(7888),o=r(82293),s=r(42148),a=n.escapeFacetValue,u=n.unescapeFacetValue},23076:function(e,t,r){"use strict";var n=r(74587),i=r(52344),o=r(94039),s=r(7888),a=r(69725),u=r(82293),c=r(60185),l=r(42148),h=o.escapeFacetValue,f=o.unescapeFacetValue,p=r(10210);function d(e){var t={};return e.forEach(function(e,r){t[e]=r}),t}function m(e,t,r){t&&t[r]&&(e.stats=t[r])}function v(e,t,r){var o=t[0];this._rawResults=t;var u=this;Object.keys(o).forEach(function(e){u[e]=o[e]}),Object.keys(r||{}).forEach(function(e){u[e]=r[e]}),this.processingTimeMS=t.reduce(function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS},0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map(function(){return[]}),this.facets=[];var l=e.getRefinedDisjunctiveFacets(),h=d(e.facets),v=d(e.disjunctiveFacets),y=1,g=o.facets||{};Object.keys(g).forEach(function(t){var r=g[t],n=s(e.hierarchicalFacets,function(e){return(e.attributes||[]).indexOf(t)>-1});if(n){var i=n.attributes.indexOf(t),c=a(e.hierarchicalFacets,function(e){return e.name===n.name});u.hierarchicalFacets[c][i]={attribute:t,data:r,exhaustive:o.exhaustiveFacetsCount}}else{var l,f=-1!==e.disjunctiveFacets.indexOf(t),p=-1!==e.facets.indexOf(t);f&&(l=v[t],u.disjunctiveFacets[l]={name:t,data:r,exhaustive:o.exhaustiveFacetsCount},m(u.disjunctiveFacets[l],o.facets_stats,t)),p&&(l=h[t],u.facets[l]={name:t,data:r,exhaustive:o.exhaustiveFacetsCount},m(u.facets[l],o.facets_stats,t))}}),this.hierarchicalFacets=n(this.hierarchicalFacets),l.forEach(function(r){var n=t[y],s=n&&n.facets?n.facets:{},l=e.getHierarchicalFacetByName(r);Object.keys(s).forEach(function(t){var r,h=s[t];if(l){r=a(e.hierarchicalFacets,function(e){return e.name===l.name});var p=a(u.hierarchicalFacets[r],function(e){return e.attribute===t});if(-1===p)return;u.hierarchicalFacets[r][p].data=c({},u.hierarchicalFacets[r][p].data,h)}else{r=v[t];var d=o.facets&&o.facets[t]||{};u.disjunctiveFacets[r]={name:t,data:i({},h,d),exhaustive:n.exhaustiveFacetsCount},m(u.disjunctiveFacets[r],n.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach(function(n){!u.disjunctiveFacets[r].data[n]&&e.disjunctiveFacetsRefinements[t].indexOf(f(n))>-1&&(u.disjunctiveFacets[r].data[n]=0)})}}),y++}),e.getRefinedHierarchicalFacets().forEach(function(r){var n=e.getHierarchicalFacetByName(r),o=e._getHierarchicalFacetSeparator(n),s=e.getHierarchicalRefinement(r);0===s.length||s[0].split(o).length<2||t.slice(y).forEach(function(t){var r=t&&t.facets?t.facets:{};Object.keys(r).forEach(function(t){var c=r[t],l=a(e.hierarchicalFacets,function(e){return e.name===n.name}),h=a(u.hierarchicalFacets[l],function(e){return e.attribute===t});if(-1!==h){var f={};if(s.length>0){var p=s[0].split(o)[0];f[p]=u.hierarchicalFacets[l][h].data[p]}u.hierarchicalFacets[l][h].data=i(f,c,u.hierarchicalFacets[l][h].data)}}),y++})}),Object.keys(e.facetsExcludes).forEach(function(t){var r=e.facetsExcludes[t],n=h[t];u.facets[n]={name:t,data:g[t],exhaustive:o.exhaustiveFacetsCount},r.forEach(function(e){u.facets[n]=u.facets[n]||{name:t},u.facets[n].data=u.facets[n].data||{},u.facets[n].data[e]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(p(e)),this.facets=n(this.facets),this.disjunctiveFacets=n(this.disjunctiveFacets),this._state=e}function y(e,t){var r=s(e,function(e){return e.name===t});return r&&r.stats}function g(e,t,r,n,i){var o=s(i,function(e){return e.name===r}),a=o&&o.data&&o.data[n]?o.data[n]:0;return{type:t,attributeName:r,name:n,count:a,exhaustive:o&&o.exhaustive||!1}}v.prototype.getFacetByName=function(e){function t(t){return t.name===e}return s(this.facets,t)||s(this.disjunctiveFacets,t)||s(this.hierarchicalFacets,t)},v.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],v.prototype.getFacetValues=function(e,t){var r,n=function(e,t){function r(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var n=s(e.facets,r);return n?Object.keys(n.data).map(function(r){var i=h(r);
1return{name:r,escapedValue:i,count:n.data[r],isRefined:e._state.isFacetRefined(t,i),isExcluded:e._state.isExcludeRefined(t,r)}}):[]}if(e._state.isDisjunctiveFacet(t)){var i=s(e.disjunctiveFacets,r);return i?Object.keys(i.data).map(function(r){var n=h(r);return{name:r,escapedValue:n,count:i.data[r],isRefined:e._state.isDisjunctiveFacetRefined(t,n)}}):[]}if(e._state.isHierarchicalFacet(t)){var o=s(e.hierarchicalFacets,r);if(!o)return o;var a=e._state.getHierarchicalFacetByName(t),u=e._state._getHierarchicalFacetSeparator(a),c=f(e._state.getHierarchicalRefinement(t)[0]||"");0===c.indexOf(a.rootPath)&&(c=c.replace(a.rootPath+u,""));var l=c.split(u);return l.unshift(t),function e(t,r,n){t.isRefined=t.name===r[n],t.data&&t.data.forEach(function(t){e(t,r,n+1)})}(o,l,0),o}}(this,e);if(n){var o=i({},t,{sortBy:v.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),a=this;return r=Array.isArray(n)?[e]:a._state.getHierarchicalFacetByName(n.name).attributes,function e(t,r,n,o){if(o=o||0,Array.isArray(r))return t(r,n[o]);if(!r.data||0===r.data.length)return r;var s=r.data.map(function(r){return e(t,r,n,o+1)});return i({data:t(s,n[o])},r)}(function(e,t){if(o.facetOrdering){var r,n,i,s,c,h,f=a.renderingContent&&a.renderingContent.facetOrdering&&a.renderingContent.facetOrdering.values&&a.renderingContent.facetOrdering.values[t];if(f)return i=[],s=[],c=(f.order||[]).reduce(function(e,t,r){return e[t]=r,e},{}),e.forEach(function(e){var t=e.path||e.name;void 0!==c[t]?i[c[t]]=e:s.push(e)}),i=i.filter(function(e){return e}),"hidden"===(h=f.sortRemainingBy)?i:(n="alpha"===h?[["path","name"],["asc","asc"]]:[["count"],["desc"]],i.concat(l(s,n[0],n[1])))}if(Array.isArray(o.sortBy)){var p=u(o.sortBy,v.DEFAULT_SORT);return l(e,p[0],p[1])}if("function"==typeof o.sortBy)return r=o.sortBy,e.sort(r);throw Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},n,r)}},v.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?y(this.facets,e):this._state.isDisjunctiveFacet(e)?y(this.disjunctiveFacets,e):void 0},v.prototype.getRefinements=function(){var e=this._state,t=this,r=[];return Object.keys(e.facetsRefinements).forEach(function(n){e.facetsRefinements[n].forEac
1h(function(i){r.push(g(e,"facet",n,i,t.facets))})}),Object.keys(e.facetsExcludes).forEach(function(n){e.facetsExcludes[n].forEach(function(i){r.push(g(e,"exclude",n,i,t.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(n){e.disjunctiveFacetsRefinements[n].forEach(function(i){r.push(g(e,"disjunctive",n,i,t.disjunctiveFacets))})}),Object.keys(e.hierarchicalFacetsRefinements).forEach(function(n){e.hierarchicalFacetsRefinements[n].forEach(function(i){var o,a,u,c,l,h,f,p;r.push((o=t.hierarchicalFacets,a=e.getHierarchicalFacetByName(n),u=e._getHierarchicalFacetSeparator(a),c=i.split(u),l=s(o,function(e){return e.name===n}),f=(h=c.reduce(function(e,t){var r=e&&s(e.data,function(e){return e.name===t});return void 0!==r?r:e},l))&&h.count||0,p=h&&h.exhaustive||!1,{type:"hierarchical",attributeName:n,name:h&&h.path||"",count:f,exhaustive:p}))})}),Object.keys(e.numericRefinements).forEach(function(t){var n=e.numericRefinements[t];Object.keys(n).forEach(function(e){n[e].forEach(function(n){r.push({type:"numeric",attributeName:t,name:n,numericValue:n,operator:e})})})}),e.tagRefinements.forEach(function(e){r.push({type:"tag",attributeName:"_tags",name:e})}),r},e.exports=v},49374:function(e,t,r){"use strict";var n=r(17331),i=r(68078),o=r(94039).escapeFacetValue,s=r(14853),a=r(60185),u=r(90116),c=r(49803),l=r(96394),h=r(17775),f=r(23076),p=r(24336);function d(e,t,r){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+p+")"),this.setClient(e);var n=r||{};n.index=t,this.state=h.make(n),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}function m(e){if(e<0)throw Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function v(){return this.state.page}s(d,n),d.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},d.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},d.prototype.getQuery=function(){var e=this.state;return l._getHitsSearchParams(e)},d.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,n=l._getQueries(r.index,r),i=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:r}),t){this.client.search(n).then(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(null,new f(r,e.results),r)}).catch(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(e,null,r)});return}return this.client.search(n).then(function(e){return i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),{content:new f(r,e.results),state:r,_originalResponse:e}},function(e){throw i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),e})},d.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,r=this.derivedHelpers[0];if(!r)return Promise.resolve([]);var n=r.getModifiedState(t),i=a({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:c(l._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),o="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!=typeof this.client.initIndex)throw Error(o);var s=this.client.initIndex(n.index);if("function"!=typeof s.findAnswers)throw Error(o);return s.findAnswers(n.query,e.queryLanguages,i)},d.prototype.searchForFacetValues=function(e,t,r,n){var i,s="function"==typeof this.client.searchForFacetValues,a="function"==typeof this.client.initIndex;if(!s&&!a&&"function"!=typeof this.client.search)throw Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var u=this.state.setQueryParameters(n||{}),c=u.isDisjunctiveFacet(e),h=l.getSearchForFacetQuery(e,t,r,u);this._currentNbQueries++;var f=this;return s?i=this.client.searchForFacetValues([{indexName:u.index,params:h}]):a?i=this.client.initIndex(u.index).searchForFacetValues(h):(delete h.facetName,i=this.client.search([{type:"facet",facet:e,indexName:u.index,params:h}]).then(function(e){return e.results[0]}
vendor: 4,579 bytes, line 1
1)),this.emit("searchForFacetValues",{state:u,facet:e,query:t}),i.then(function(t){return f._currentNbQueries--,0===f._currentNbQueries&&f.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits.forEach(function(t){t.escapedValue=o(t.value),t.isRefined=c?u.isDisjunctiveFacetRefined(e,t.escapedValue):u.isFacetRefined(e,t.escapedValue)}),t},function(e){throw f._currentNbQueries--,0===f._currentNbQueries&&f.emit("searchQueueEmpty"),e})},d.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},d.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},d.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},d.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},d.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},d.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},d.prototype.addNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,r),isPageReset:!0}),this},d.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},d.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},d.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},d.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},d.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},d.prototype.removeNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,r),isPageReset:!0}),this},d.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},d.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},d.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},d.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},d.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},d.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},d.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},d.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},d.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},d.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},d.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},d.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},d.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},d.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},d.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},d.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},d.prototype.setCurrentPage=m,d.prototype.setPage=m,d.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},d.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},d.prototype.setState=function(e){return this._change({state:h.make(e),isPageReset:!1}),this},d.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new h(e),this}
1,d.prototype.hasRefinements=function(e){return!!u(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},d.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},d.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},d.prototype.hasTag=function(e){return this.state.isTagRefined(e)},d.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},d.prototype.getIndex=function(){return this.state.index},d.prototype.getCurrentPage=v,d.prototype.getPage=v,d.prototype.getTags=function(){return this.state.tagRefinements},d.prototype.getRefinements=function(e){var t=[];this.state.isConjunctiveFacet(e)?(this.state.getConjunctiveRefinements(e).forEach(function(e){t.push({value:e,type:"conjunctive"})}),this.state.getExcludeRefinements(e).forEach(function(e){t.push({value:e,type:"exclude"})})):this.state.isDisjunctiveFacet(e)&&this.state.getDisjunctiveRefinements(e).forEach(function(e){t.push({value:e,type:"disjunctive"})});var r=this.state.getNumericRefinements(e);return Object.keys(r).forEach(function(e){var n=r[e];t.push({value:n,operator:e,type:"numeric"})}),t},d.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},d.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},d.prototype._search=function(e){var t=this.state,r=[],n=[];e.onlyWithDerivedHelpers||(n=l._getQueries(t.index,t),r.push({state:t,queriesCount:n.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map(function(e){var n=e.getModifiedState(t),i=n.index?l._getQueries(n.index,n):[];return r.push({state:n,queriesCount:i.length,helper:e}),e.emit("search",{state:n,results:e.lastResults}),i}),o=Array.prototype.concat.apply(n,i),s=this._queryId++;if(this._currentNbQueries++,!o.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,r,s));try{this.client.search(o).then(this._dispatchAlgoliaResponse.bind(this,r,s)).catch(this._dispatchAlgoliaError.bind(this,s))}catch(e){this.emit("error",{error:e})}},d.prototype._dispatchAlgoliaResponse=function(e,t,r){if(!(t<this._lastQueryIdReceived)){this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,0===this._currentNbQueries&&this.emit("searchQueueEmpty");var n=r.results.slice();e.forEach(function(e){var t=e.state,r=e.queriesCount,i=e.helper,o=n.splice(0,r);if(!t.index){i.emit("result",{results:null,state:t});return}i.lastResults=new f(t,o),i.emit("result",{results:i.lastResults,state:t})})}},d.prototype._dispatchAlgoliaError=function(e,t){e<this._lastQueryIdReceived||(this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbQueries&&this.emit("searchQueueEmpty"))},d.prototype.containsRefinement=function(e,t,r,n){return e||0!==t.length||0!==r.length||0!==n.length},d.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&this.state.disjunctiveRefinements[e].length>0},d.prototype._change=function(e){var t=e.state,r=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:r}))},d.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},d.prototype.setClient=function(e){return this.client===e||("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+p+")"),this.client=e),this},d.prototype.getClient=function(){return this.client},d.prototype.derive=function(e){var t=new i(this,e);return this.derivedHelpers.push(t),t},d.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},d.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=d},74587:function(e){"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},52344:function(e){"use strict";e.exports=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight(function(e,t){return Object.keys(Object(t)).forEac
1h(function(r){void 0!==t[r]&&(void 0!==e[r]&&delete e[r],e[r]=t[r])}),e},{})}},94039:function(e){"use strict";e.exports={escapeFacetValue:function(e){return"string"!=typeof e?e:String(e).replace(/^-/,"\\-")},unescapeFacetValue:function(e){return"string"!=typeof e?e:e.replace(/^\\-/,"-")}}},7888:function(e){"use strict";e.exports=function(e,t){if(Array.isArray(e)){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}}},69725:function(e){"use strict";e.exports=function(e,t){if(!Array.isArray(e))return -1;for(var r=0;r<e.length;r++)if(t(e[r]))return r;return -1}},82293:function(e,t,r){"use strict";var n=r(7888);e.exports=function(e,t){var r=(t||[]).map(function(e){return e.split(":")});return e.reduce(function(e,t){var i=t.split(":"),o=n(r,function(e){return e[0]===i[0]});return i.length>1||!o?(e[0].push(i[0]),e[1].push(i[1])):(e[0].push(o[0]),e[1].push(o[1])),e},[[],[]])}},14853:function(e){"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},22686:function(e){"use strict";e.exports=function(e,t){return e.filter(function(r,n){return t.indexOf(r)>-1&&e.indexOf(r)===n})}},60185:function(e){"use strict";function t(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){t(e)||(e={});for(var r=1,n=arguments.length;r<n;r++){var i=arguments[r];t(i)&&function e(r,n){if(r===n)return r;for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&"__proto__"!==i&&"constructor"!==i){var o=n[i],s=r[i];(void 0===s||void 0!==o)&&(t(s)&&t(o)?r[i]=e(s,o):r[i]="object"==typeof o&&null!==o?e(Array.isArray(o)?[]:{},o):o)}return r}(e,i)}return e}},90116:function(e){"use strict";e.exports=function(e){return e&&Object.keys(e).length>0}},49803:function(e){"use strict";e.exports=function(e,t){if(null===e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}},42148:function(e){"use strict";e.exports=function(e,t,r){if(!Array.isArray(e))return[];Array.isArray(r)||(r=[]);var n=e.map(function(e,r){return{criteria:t.map(function(t){return e[t]}),index:r,value:e}});return n.sort(function(e,t){for(var n=-1;++n<e.criteria.length;){var i=function(e,t){if(e!==t){var r=void 0!==e,n=null===e,i=void 0!==t,o=null===t;if(!o&&e>t||n&&i||!r)return 1;if(!n&&e<t||o&&r||!i)return -1}return 0}(e.criteria[n],t.criteria[n]);if(i){if(n>=r.length)return i;if("desc"===r[n])return-i;return i}}return e.index-t.index}),n.map(function(e){return e.value})}},28023:function(e){"use strict";e.exports=function e(t){if("number"==typeof t)return t;if("string"==typeof t)return parseFloat(t);if(Array.isArray(t))return t.map(e);throw Error("The value should be a number, a parsable string or an array of those.")}},96394:function(e,t,r){"use strict";var n=r(60185);function i(e){return Object.keys(e).sort().reduce(function(t,r){return t[r]=e[r],t},{})}var o={_getQueries:function(e,t){var r=[];return r.push({indexName:e,params:o._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach(function(n){r.push({indexName:e,params:o._getDisjunctiveFacetSearchParams(t,n)})}),t.getRefinedHierarchicalFacets().forEach(function(n){var i=t.getHierarchicalFacetByName(n),s=t.getHierarchicalRefinement(n),a=t._getHierarchicalFacetSeparator(i);if(s.length>0&&s[0].split(a).length>1){var u=s[0].split(a).slice(0,-1).reduce(function(e,t,r){return e.concat({attribute:i.attributes[r],value:0===r?t:[e[e.length-1].value,t].join(a)})},[]);u.forEach(function(n,s){var a=o._getDisjunctiveFacetSearchParams(t,n.attribute,0===s);function c(e){return i.attributes.some(function(t){return t===e.split(":")[0]})}var l=(a.facetFilters||[]).reduce(function(e,t){if(Array.isArray(t)){var r=t.filter(function(e){return!c(e)});r.length>0&&e.push(r)}return"string"!=typeof t||c(t)||e.push(t),e},[]),h=u[s-1];s>0?a.facetFilters=l.concat(h.attribute+":"+h.value):a.facetFilters=l.length>0?l:void 0,r.push({indexName:e,params:a})})}}),r},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(o._getHitsHierarchicalFacetsAttributes(e)).sort(),r=o._getFacetFilters(e),s=o._getNumericFilters(e),a=o._getTagFilters(e),u={facets:t.indexOf("*")>-1?["*"]:t,tagFilters:a};return r.length>0&&(u.facetFilters=r),s.length>0&&(u.numericFilters=s),i(n({},e.getQueryParams(),u))},_getDisjunctiveFacetSearchParams:function(e,t,r){var s=o._getFacetFilters(e,t,r),a=o._getNumericFilters(e,t),u=o._getTagFilters(e),c={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};u.length>0&&(c.tagFilters=u);var l=e.getHierarchicalFacetByName(t);return l?c.facets=o._getDisjunctiveHierarchicalFacetAttribute(e,l,r):c.facets=t,a.length>0&&(c.numericFilters=a),s.length>0&&(c.facetFilters=s),i(n({},e.getQueryParams(),c))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var r=[];
1return Object.keys(e.numericRefinements).forEach(function(n){var i=e.numericRefinements[n]||{};Object.keys(i).forEach(function(e){var o=i[e]||[];t!==n&&o.forEach(function(t){if(Array.isArray(t)){var i=t.map(function(t){return n+e+t});r.push(i)}else r.push(n+e+t)})})}),r},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,r){var n=[],i=e.facetsRefinements||{};Object.keys(i).sort().forEach(function(e){(i[e]||[]).sort().forEach(function(t){n.push(e+":"+t)})});var o=e.facetsExcludes||{};Object.keys(o).sort().forEach(function(e){(o[e]||[]).sort().forEach(function(t){n.push(e+":-"+t)})});var s=e.disjunctiveFacetsRefinements||{};Object.keys(s).sort().forEach(function(e){var r=s[e]||[];if(e!==t&&r&&0!==r.length){var i=[];r.sort().forEach(function(t){i.push(e+":"+t)}),n.push(i)}});var a=e.hierarchicalFacetsRefinements||{};return Object.keys(a).sort().forEach(function(i){var o,s,u=(a[i]||[])[0];if(void 0!==u){var c=e.getHierarchicalFacetByName(i),l=e._getHierarchicalFacetSeparator(c),h=e._getHierarchicalRootPath(c);if(t===i){if(-1===u.indexOf(l)||!h&&!0===r||h&&h.split(l).length===u.split(l).length)return;h?(s=h.split(l).length-1,u=h):(s=u.split(l).length-2,u=u.slice(0,u.lastIndexOf(l))),o=c.attributes[s]}else s=u.split(l).length-1,o=c.attributes[s];o&&n.push([o+":"+u])}}),n},_getHitsHierarchicalFacetsAttributes:function(e){return e.hierarchicalFacets.reduce(function(t,r){var n=e.getHierarchicalRefinement(r.name)[0];if(!n)return t.push(r.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(r),o=n.split(i).length,s=r.attributes.slice(0,o+1);return t.concat(s)},[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,r){var n=e._getHierarchicalFacetSeparator(t);if(!0===r){var i=e._getHierarchicalRootPath(t),o=0;return i&&(o=i.split(n).length),[t.attributes[o]]}var s=(e.getHierarchicalRefinement(t.name)[0]||"").split(n).length-1;return t.attributes.slice(0,s+1)},getSearchForFacetQuery:function(e,t,r,s){var a=s.isDisjunctiveFacet(e)?s.clearRefinements(e):s,u={facetQuery:t,facetName:e};return"number"==typeof r&&(u.maxFacetHits=r),i(n({},o._getHitsSearchParams(a),u))}};e.exports=o},46801:function(e){"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},24336:function(e){"use strict";e.exports="3.14.0"},10175:function(e,t,r){var n=r(34155);function i(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e}(t=e.exports=r(76914)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),r){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))}),e.splice(o,0,n)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=i,t.useColors=function(){return"undefined"!=typeof window&&!!window.process&&"renderer"===window.process.type||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(i())},76914:function(e,t,r){var n;function i(e){function r(){if(r.enabled){var e=+new Date,i=e-(n||e);r.diff=i,r.prev=n,r.curr=e,n=e;for(var o=Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];o[0]=t.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var a=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(e,n){if("%%"===e)return e;a++;var i=t.formatters[n];if("function"==typeof i){var s=o[a];e=i.call(r,s),o.splice(a,1),a--}return e}),t.formatArgs.call(r,o),(r.log||t.log||console.log.bind(console)).apply(r,o)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var r,n=0;for(r in e)n=(n<<5)-n+e.charCodeAt(r)|0;return t.colors[Math.abs(n)%t.colors.length]}(e),"function"==typeof t.init&&t.init(r),r}
1(t=e.exports=i.debug=i.default=i).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length,i=0;i<n;i++)r[i]&&("-"===(e=r[i].replace(/\*/g,".*?"))[0]?t.skips.push(RegExp("^"+e.substr(1)+"$")):t.names.push(RegExp("^"+e+"$")))},t.enabled=function(e){var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(46601),t.names=[],t.skips=[],t.formatters={}},46601:function(e){function t(e,t,r){return e<t?void 0:e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}e.exports=function(e,r){r=r||{};var n=typeof e;if("string"===n&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"days":case"day":case"d":return 864e5*r;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*r;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*r;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===n&&!1===isNaN(e))return r.long?t(e,864e5,"day")||t(e,36e5,"hour")||t(e,6e4,"minute")||t(e,1e3,"second")||e+" ms":e>=864e5?Math.round(e/864e5)+"d":e>=36e5?Math.round(e/36e5)+"h":e>=6e4?Math.round(e/6e4)+"m":e>=1e3?Math.round(e/1e3)+"s":e+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},51580:function(e,t,r){var n=r(34155);e.exports=c;var i=r(23733),o=r(93753),s=r(99437),a=r(44475),u=n.env.RESET_APP_DATA_TIMER&&parseInt(n.env.RESET_APP_DATA_TIMER,10)||12e4;function c(e,t,n){var o=r(10175)("algoliasearch"),s=r(82882),a=r(5826),u=r(37164),c="Usage: algoliasearch(applicationID, apiKey, opts)";if(!0!==n._allowEmptyCredentials&&!e)throw new i.AlgoliaSearchError("Please provide an application ID. "+c);if(!0!==n._allowEmptyCredentials&&!t)throw new i.AlgoliaSearchError("Please provide an API key. "+c);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);var h=n.protocol||"https:";if(/:$/.test(h)||(h+=":"),"http:"!==h&&"https:"!==h)throw new i.AlgoliaSearchError("protocol must be `http:` or `https:` (was `"+n.protocol+"`)");if(this._checkAppIdData(),n.hosts)a(n.hosts)?(this.hosts.read=s(n.hosts),this.hosts.write=s(n.hosts)):(this.hosts.read=s(n.hosts.read),this.hosts.write=s(n.hosts.write));else{var f=u(this._shuffleResult,function(t){return e+"-"+t+".algolianet.com"}),p=(!1===n.dsn?"":"-dsn")+".algolia.net";this.hosts.read=[this.applicationID+p].concat(f),this.hosts.write=[this.applicationID+".algolia.net"].concat(f)}this.hosts.read=u(this.hosts.read,l(h)),this.hosts.write=u(this.hosts.write,l(h)),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,o("init done, %j",this)}function l(e){return function(t){return e+"//"+t.toLowerCase()}}function h(e){if(void 0===Array.prototype.toJSON)return JSON.stringify(e);var t=Array.prototype.toJSON;delete Array.prototype.toJSON;var r=JSON.stringify(e);return Array.prototype.toJSON=t,r}function f(e){var t,r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t="x-algolia-api-key"===n||"x-algolia-application-id"===n?"**hidden for security purposes**":e[n],r[n]=t);return r}c.prototype.initIndex=function(e){return new s(this,e)},c.prototype.setExtraHeader=function(e,t){this.extraHeaders[e.toLowerCase()]=t},c.prototype.getExtraHeader=function(e){return this.extraHeaders[e.toLowerCase()]},c.prototype.unsetExtraHeader=function(e){delete this.extraHeaders[e.toLowerCase()]},c.prototype.addAlgoliaAgent=function(e){var t="; "+e;-1===this._ua.indexOf(t)&&(this._ua+=t)},c.prototype._jsonRequest=function(e){this._checkAppIdData();var t,n,s,a=r(10175)("algoliasearch:"+e.url),u=e.additionalUA||"",c=e.cache,l=this,p=0,d=!1,m=l._useFallback&&l._request.fallback&&e.fallback;this.apiKey.length>500&&void 0!==e.body&&(void 0!==e.body.params||void 0!==e.body.requests)?(e.body.apiKey=this.apiKey,s=this._computeRequestHeaders({additionalUA:u,withApiKey:!1,headers:e.headers})):s=this._computeRequestHeaders({additionalUA:u,headers:e.headers}),void 0!==e.body&&(t=h(e.body)),a("request start");var v=[];function y(e,t,r){return l._useCache&&e&&t&&void 0!==t[r]}function g(t,r){if(y(l._useRequestCache,c,n)&&t.catch(function(){delete c[n]}),"function"!=typeof e.callback)return t.then(r);t.then(function(t){o(function(){e.callback(null,r(t))},l._setTimeout||setTimeout)},function(t){o(function(){e.callback(t)},l._setTimeout||setTimeout)})}if(l._useCache&&l._useRequestCache&&(n=e.url),l._useCache&&l._useRequestCache&&t&&(n+="_body_"+t),y(l._useRequestCache,c,n)){a("serving request from cache");var b=c[n];return g("function"!=typeof b.then?l._promise.resolve({responseText:b}):b,function(e){return JSON.parse(e.responseText)})}var x=function r(o,g){l._checkAppIdData();var b=new Date;if(l._useCache&&!l._useRequestCache&&(n=e.url),l._useCache&&!l._useRequestCache&&t&&(n+="_body_"+g.body),y(!l._useRequestCache,c,n)){a("serving response from cache");var x=c[n];return l._promise.resolve({body:JSON.parse(x),responseText:x})}if(p>=l.hosts[e.hostType].length)return!m||d?(a("could not get any response"),l._promise.reject(new i.AlgoliaSearchError("Cannot connect to the AlgoliaSearch API. Send an email to supp
1[email protected] to report and resolve the issue. Application id was: "+l.applicationID,{debugData:v}))):(a("switching to fallback"),p=0,g.method=e.fallback.method,g.url=e.fallback.url,g.jsonBody=e.fallback.body,g.jsonBody&&(g.body=h(g.jsonBody)),s=l._computeRequestHeaders({additionalUA:u,headers:e.headers}),g.timeouts=l._getTimeoutsForRequest(e.hostType),l._setHostIndexByType(0,e.hostType),d=!0,r(l._request.fallback,g));var w=l._getHostByType(e.hostType),P=w+g.url,S={body:g.body,jsonBody:g.jsonBody,method:g.method,headers:s,timeouts:g.timeouts,debug:a,forceAuthHeaders:g.forceAuthHeaders};return a("method: %s, url: %s, headers: %j, timeouts: %d",S.method,P,S.headers,S.timeouts),o===l._request.fallback&&a("using fallback"),o.call(l,P,S).then(function(e){var r=e&&e.body&&e.body.message&&e.body.status||e.statusCode||e&&e.body&&200;a("received response: statusCode: %s, computed statusCode: %d, headers: %j",e.statusCode,r,e.headers);var o=2===Math.floor(r/100),u=new Date;if(v.push({currentHost:w,headers:f(s),content:t||null,contentLength:void 0!==t?t.length:null,method:g.method,timeouts:g.timeouts,url:g.url,startTime:b,endTime:u,duration:u-b,statusCode:r}),o)return l._useCache&&!l._useRequestCache&&c&&(c[n]=e.responseText),{responseText:e.responseText,body:e.body};if(4!==Math.floor(r/100))return p+=1,R();a("unrecoverable error");var h=new i.AlgoliaSearchError(e.body&&e.body.message,{debugData:v,statusCode:r});return l._promise.reject(h)},function(n){a("error: %s, stack: %s",n.message,n.stack);var u=new Date;return(v.push({currentHost:w,headers:f(s),content:t||null,contentLength:void 0!==t?t.length:null,method:g.method,timeouts:g.timeouts,url:g.url,startTime:b,endTime:u,duration:u-b}),n instanceof i.AlgoliaSearchError||(n=new i.Unknown(n&&n.message,n)),p+=1,n instanceof i.Unknown||n instanceof i.UnparsableJSON||p>=l.hosts[e.hostType].length&&(d||!m))?(n.debugData=v,l._promise.reject(n)):n instanceof i.RequestTimeout?(a("retrying request with higher timeout"),l._incrementHostIndex(e.hostType),l._incrementTimeoutMultipler(),g.timeouts=l._getTimeoutsForRequest(e.hostType),r(o,g)):R()});function R(){return a("retrying request"),l._incrementHostIndex(e.hostType),r(o,g)}}(l._request,{url:e.url,method:e.method,body:t,jsonBody:e.body,timeouts:l._getTimeoutsForRequest(e.hostType),forceAuthHeaders:e.forceAuthHeaders});return l._useCache&&l._useRequestCache&&c&&(c[n]=x),g(x,function(e){return e.body})},c.prototype._getSearchParams=function(e,t){if(null==e)return t;for(var r in e)null!==r&&void 0!==e[r]&&e.hasOwnProperty(r)&&(t+=(""===t?"":"&")+r+"="+encodeURIComponent("[object Array]"===Object.prototype.toString.call(e[r])?h(e[r]):e[r]));return t},c.prototype._computeRequestHeaders=function(e){var t=r(49804),n={"x-algolia-agent":e.additionalUA?this._ua+"; "+e.additionalUA:this._ua,"x-algolia-application-id":this.applicationID};return!1!==e.withApiKey&&(n["x-algolia-api-key"]=this.apiKey),this.userToken&&(n["x-algolia-usertoken"]=this.userToken),this.securityTags&&(n["x-algolia-tagfilters"]=this.securityTags),t(this.extraHeaders,function(e,t){n[t]=e}),e.headers&&t(e.headers,function(e,t){n[t]=e}),n},c.prototype.search=function(e,t,n){var i=r(5826),o=r(37164);if(!i(e))throw Error("Usage: client.search(arrayOfQueries[, callback])");"function"==typeof t?(n=t,t={}):void 0===t&&(t={});var s=this,a={requests:o(e,function(e){var t="";return void 0!==e.query&&(t+="query="+encodeURIComponent(e.query)),{indexName:e.indexName,params:s._getSearchParams(e.params,t)}})},u=o(a.requests,function(e,t){return t+"="+encodeURIComponent("/1/indexes/"+encodeURIComponent(e.indexName)+"?"+e.params)}).join("&");return void 0!==t.strategy&&(a.strategy=t.strategy),this._jsonRequest({cache:this.cache,method:"POST",url:"/1/indexes/*/queries",body:a,hostType:"read",fallback:{method:"GET",url:"/1/indexes/*",body:{params:u}},callback:n})},c.prototype.searchForFacetValues=function(e){var t=r(5826),n=r(37164),i="Usage: client.searchForFacetValues([{indexName, params: {facetName, facetQuery, ...params}}, ...queries])";if(!t(e))throw Error(i);var o=this;return o._promise.all(n(e,function(e){if(!e||void 0===e.indexName||void 0===e.params.facetName||void 0===e.params.facetQuery)throw Error(i);var t=r(82882),n=r(33076),s=e.indexName,a=e.params,u=a.facetName,c=n(t(a),function(e){return"facetName"===e}),l=o._getSearchParams(c,"");return o._jsonRequest({cache:o.cache,method:"POST",url:"/1/indexes/"+encodeURIComponent(s)+"/facets/"+encodeURIComponent(u)+"/query",hostType:"read",body:{params:l}})}))},c.prototype.setSecurityTags=function(e){if("[object Array]"===Object.prototype.toString.call(e)){for(var t=[],r=0;r<e.length;++r)if("[object Array]"===Object.prototype.toString.call(e[r])){for(var n=[],i=0;i<e[r].length;++i)n.push(e[r][i]);t.push("("+n.join(",")+")")}else t.push(e[r]);e=t.join(",")}this.securityTags=e},c.prototype.setUserToken=function(e){this.userToken=e},c.prototype.clearCache=function(){this.cache={}},c.prototype.setRequestTimeout=function(e){e&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=e)},c.prototype.setTimeouts=function(e){this._timeouts=e},c.prototype.getTimeouts=function(){return this._timeouts},c.prototype._getAppIdData=function(){var e=a.get(this.applicationID);return null!==e&&this._cacheAppIdData(e),e},c.prototype._setAppIdData=function(e){return e.lastChange=new Date().getTime(),this._cacheAppIdData(e),a.set(this.applicationID,e)},c.prototype._checkAppIdData=function(){var e=this._getAppIdData(),t=new Date().getTime();return null===e||t-e.lastChange>u?this._resetInitialAppIdData(e):e},c.prototype._resetInitialAppIdData=function(e){var t=e||{};return t.hostIndexes={read:0,write:0},t.timeoutMultiplier=1,t.shuffleResult=t.shuffleResult||function(e){for(var t,r,n=e.length;0!==n;)r=Math.floor(Math.random()*n),n-=1,t=e[n],e[n]=e[r],e[r]=t;return e}([1,2,3]),this._setAppIdData(t)},c.prototype._cacheAppIdData=function(e){this._hostIndexes=e.hostIndexes,this._timeoutMultiplier=e.timeoutMultiplier,this._shuffleResult=e.shuffleResult},c.prototype._partialAppIdDataUpdate=function(e){var t=r(49804),n=this._getAppIdData();return t(e,function(e,t){n[t]=e}),this._setAppIdData(n)},c.prototype._getHostByType=function(e){return this.hosts[e][this._getHostIndexByType(e)]},c.prototype._getTimeoutMultiplier=function(){return this._timeoutMultiplier},c.prototype._getHostIndexByType=function(e){return this._hostIndexes[e]},c.prototype._setHostIndexByType=function(e,t){var n=r(82882)(this._hostIndexes);return n[t]=e,this._partialAppIdDataUpdate({hostIndexes:n}),e},c.prototype._incrementHostIndex=function(e){return this._setHostIndexByType((this._getHostIndexByType(e)+1)%this.hosts[e].length,e)},c.prototype._incrementTimeoutMultipler=function(){var e=Math.max(this._timeoutMultiplier+1,4);return this._partialAppIdDataUpdate({timeoutMultiplier:e})},c.prototype._getTimeoutsForRequest=function(e){return{connect:this._timeouts.connect*this._timeoutMultiplier,complete:this._timeouts[e]*this._timeoutMultiplier}}}
1,99437:function(e,t,r){var n=r(10148),i=r(93043),o=r(10137);function s(e,t){this.indexName=t,this.as=e,this.typeAheadArgs=null,this.typeAheadValueOption=null,this.cache={}}e.exports=s,s.prototype.clearCache=function(){this.cache={}},s.prototype.search=n("query"),s.prototype.similarSearch=i(n("similarQuery"),o("index.similarSearch(query[, callback])","index.search({ similarQuery: query }[, callback])")),s.prototype.browse=function(e,t,n){var i,o,s=r(51004);0==arguments.length||1==arguments.length&&"function"==typeof arguments[0]?(i=0,n=arguments[0],e=void 0):"number"==typeof arguments[0]?(i=arguments[0],"number"==typeof arguments[1]?o=arguments[1]:"function"==typeof arguments[1]&&(n=arguments[1],o=void 0),e=void 0,t=void 0):"object"==typeof arguments[0]?("function"==typeof arguments[1]&&(n=arguments[1]),t=arguments[0],e=void 0):"string"==typeof arguments[0]&&"function"==typeof arguments[1]&&(n=arguments[1],t=void 0),t=s({},t||{},{page:i,hitsPerPage:o,query:e});var a=this.as._getSearchParams(t,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse",body:{params:a},hostType:"read",callback:n})},s.prototype.browseFrom=function(e,t){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse",body:{cursor:e},hostType:"read",callback:t})},s.prototype.searchForFacetValues=function(e,t){var n=r(82882),i=r(33076);if(void 0===e.facetName||void 0===e.facetQuery)throw Error("Usage: index.searchForFacetValues({facetName, facetQuery, ...params}[, callback])");var o=e.facetName,s=i(n(e),function(e){return"facetName"===e}),a=this.as._getSearchParams(s,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/facets/"+encodeURIComponent(o)+"/query",hostType:"read",body:{params:a},callback:t})},s.prototype.searchFacet=i(function(e,t){return this.searchForFacetValues(e,t)},o("index.searchFacet(params[, callback])","index.searchForFacetValues(params[, callback])")),s.prototype._search=function(e,t,r,n){return this.as._jsonRequest({cache:this.cache,method:"POST",url:t||"/1/indexes/"+encodeURIComponent(this.indexName)+"/query",body:{params:e},hostType:"read",fallback:{method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName),body:{params:e}},callback:r,additionalUA:n})},s.prototype.getObject=function(e,t,r){(1==arguments.length||"function"==typeof t)&&(r=t,t=void 0);var n="";if(void 0!==t){n="?attributes=";for(var i=0;i<t.length;++i)0!==i&&(n+=","),n+=t[i]}return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/"+encodeURIComponent(e)+n,hostType:"read",callback:r})},s.prototype.getObjects=function(e,t,n){var i=r(5826),o=r(37164);if(!i(e))throw Error("Usage: index.getObjects(arrayOfObjectIDs[, callback])");var s=this;(1==arguments.length||"function"==typeof t)&&(n=t,t=void 0);var a={requests:o(e,function(e){var r={indexName:s.indexName,objectID:e};return t&&(r.attributesToRetrieve=t.join(",")),r})};return this.as._jsonRequest({method:"POST",url:"/1/indexes/*/objects",hostType:"read",body:a,callback:n})},s.prototype.as=null,s.prototype.indexName=null,s.prototype.typeAheadArgs=null,s.prototype.typeAheadValueOption=null},67191:function(e,t,r){"use strict";var n=r(51580),i=r(8779);e.exports=i(n,"Browser (lite)")},8779:function(e,t,r){"use strict";var n=r(58908),i=n.Promise||r(82702).Promise;e.exports=function(e,t){var o=r(35717),s=r(23733),a=r(80660),u=r(53970),c=r(94504);function l(e,t,n){return(n=r(82882)(n||{}))._ua=n._ua||l.ua,new f(e,t,n)}t=t||"",l.version=r(4572),l.ua="Algolia for JavaScript ("+l.version+"); "+t,l.initPlaces=c(l),n.__algolia={debug:r(10175),algoliasearch:l};var h={hasXMLHttpRequest:"XMLHttpRequest"in n,hasXDomainRequest:"XDomainRequest"in n};function f(){e.apply(this,arguments)}return h.hasXMLHttpRequest&&(h.cors="withCredentials"in new XMLHttpRequest),o(f,e),f.prototype._request=function(e,t){return new i(function(r,n){if(!h.cors&&!h.hasXDomainRequest){n(new s.Network("CORS not supported"));return}e=a(e,t.headers);var i,o,u=t.body,c=h.cors?new XMLHttpRequest:new XDomainRequest,l=!1;function f(){o=!0,c.abort(),n(new s.RequestTimeout)}
1function p(){l=!0,clearTimeout(i),i=setTimeout(f,t.timeouts.complete)}i=setTimeout(f,t.timeouts.connect),c.onprogress=function(){l||p()},"onreadystatechange"in c&&(c.onreadystatechange=function(){!l&&c.readyState>1&&p()}),c.onload=function(){var e;if(!o){clearTimeout(i);try{e={body:JSON.parse(c.responseText),responseText:c.responseText,statusCode:c.status,headers:c.getAllResponseHeaders&&c.getAllResponseHeaders()||{}}}catch(t){e=new s.UnparsableJSON({more:c.responseText})}e instanceof s.UnparsableJSON?n(e):r(e)}},c.onerror=function(e){o||(clearTimeout(i),n(new s.Network({more:e})))},c instanceof XMLHttpRequest?(c.open(t.method,e,!0),t.forceAuthHeaders&&(c.setRequestHeader("x-algolia-application-id",t.headers["x-algolia-application-id"]),c.setRequestHeader("x-algolia-api-key",t.headers["x-algolia-api-key"]))):c.open(t.method,e),h.cors&&(u&&("POST"===t.method?c.setRequestHeader("content-type","application/x-www-form-urlencoded"):c.setRequestHeader("content-type","application/json")),c.setRequestHeader("accept","application/json")),u?c.send(u):c.send()})},f.prototype._request.fallback=function(e,t){return e=a(e,t.headers),new i(function(r,n){u(e,t,function(e,t){if(e){n(e);return}r(t)})})},f.prototype._promise={reject:function(e){return i.reject(e)},resolve:function(e){return i.resolve(e)},delay:function(e){return new i(function(t){setTimeout(t,e)})},all:function(e){return i.all(e)}},l}},80660:function(e,t,r){"use strict";e.exports=function(e,t){return/\?/.test(e)?e+="&":e+="?",e+n(t)};var n=r(68795)},53970:function(e,t,r){"use strict";e.exports=function(e,t,r){if("GET"!==t.method){r(Error("Method "+t.method+" "+e+" is not supported by JSONP."));return}t.debug("JSONP: start");var o=!1,s=!1;i+=1;var a=document.getElementsByTagName("head")[0],u=document.createElement("script"),c="algoliaJSONP_"+i,l=!1;window[c]=function(e){if(function(){try{delete window[c],delete window[c+"_loaded"]}catch(e){window[c]=window[c+"_loaded"]=void 0}}(),s){t.debug("JSONP: Late answer, ignoring");return}o=!0,p(),r(null,{body:e,responseText:JSON.stringify(e)})},e+="&callback="+c,t.jsonBody&&t.jsonBody.params&&(e+="&"+t.jsonBody.params);var h=setTimeout(function(){t.debug("JSONP: Script timeout"),s=!0,p(),r(new n.RequestTimeout)},t.timeouts.complete);function f(){t.debug("JSONP: success"),l||s||(l=!0,o||(t.debug("JSONP: Fail. Script loaded but did not call the callback"),p(),r(new n.JSONPScriptFail)))}function p(){clearTimeout(h),u.onload=null,u.onreadystatechange=null,u.onerror=null,a.removeChild(u)}u.onreadystatechange=function(){("loaded"===this.readyState||"complete"===this.readyState)&&f()},u.onload=f,u.onerror=function(){t.debug("JSONP: Script error"),l||s||(p(),r(new n.JSONPScriptError))},u.async=!0,u.defer=!0,u.src=e,a.appendChild(u)};var n=r(23733),i=0},10148:function(e,t,r){e.exports=function(e,t){return function(r,i,o){if("function"==typeof r&&"object"==typeof i||"object"==typeof o)throw new n.AlgoliaSearchError("index.search usage is index.search(query, params, cb)");0==arguments.length||"function"==typeof r?(o=r,r=""):(1==arguments.length||"function"==typeof i)&&(o=i,i=void 0),"object"==typeof r&&null!==r?(i=r,r=void 0):null==r&&(r="");var s,a="";return void 0!==r&&(a+=e+"="+encodeURIComponent(r)),void 0!==i&&(i.additionalUA&&(s=i.additionalUA,delete i.additionalUA),a=this.as._getSearchParams(i,a)),this._search(a,t,o,s)}};var n=r(23733)},82882:function(e){e.exports=function(e){return JSON.parse(JSON.stringify(e))}},93043:function(e){e.exports=function(e,t){var r=!1;return function(){return r||(console.warn(t),r=!0),e.apply(this,arguments)}}},10137:function(e){e.exports=function(e,t){var r=e.toLowerCase().replace(/[\.\(\)]/g,"");return"algoliasearch: `"+e+"` was replaced by `"+t+"`. Please see https://github.com/algolia/algoliasearch-client-javascript/wiki/Deprecated#"+r}},23733:function(e,t,r){"use strict";var n=r(35717);function i(e,t){var n=r(49804),i=this;"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):i.stack=Error().stack||"Cannot get a stacktrace, browser is too old",this.name="AlgoliaSearchError",this.message=e||"Unknown error",t&&n(t,function(e,t){i[t]=e})}function o(e,t){function r(){var r=Array.prototype.slice.call(arguments,0);"string"!=typeof r[0]&&r.unshift(t),i.apply(this,r),this.name="AlgoliaSearch"+e+"Error"}return n(r,i),r}n(i,Error),e.exports={AlgoliaSearchError:i,UnparsableJSON:o("UnparsableJSON","Could not parse the incoming response as JSON, see err.more for details"),RequestTimeout:o("RequestTimeout","Request timed out before getting a response"),Network:o("Network","Network issue, see err.more for details"),JSONPScriptFail:o("JSONPScriptFail","<script> was loaded but did not call our provided callback"),ValidUntilNotFound:o("ValidUntilNotFound","The SecuredAPIKey does not have a validUntil parameter."),JSONPScriptError:o("JSONPScriptError","<script> unable to load due to an `error` event on it"),ObjectNotFound:o("Ob
1jectNotFound","Object not found"),Unknown:o("Unknown","Unknown error occured")}},93753:function(e){e.exports=function(e,t){t(e,0)}},37164:function(e,t,r){var n=r(49804);e.exports=function(e,t){var r=[];return n(e,function(n,i){r.push(t(n,i,e))}),r}},51004:function(e,t,r){var n=r(49804);e.exports=function e(t){var r=Array.prototype.slice.call(arguments);return n(r,function(r){for(var n in r)r.hasOwnProperty(n)&&("object"==typeof t[n]&&"object"==typeof r[n]?t[n]=e({},t[n],r[n]):void 0!==r[n]&&(t[n]=r[n]))}),t}},33076:function(e,t,r){e.exports=function(e,t){var n=r(82215),i=r(49804),o={};return i(n(e),function(r){!0!==t(r)&&(o[r]=e[r])}),o}},94504:function(e,t,r){e.exports=function(e){return function(t,o,s){var a=r(82882);(s=s&&a(s)||{}).hosts=s.hosts||["places-dsn.algolia.net","places-1.algolianet.com","places-2.algolianet.com","places-3.algolianet.com"],(0==arguments.length||"object"==typeof t||void 0===t)&&(t="",o="",s._allowEmptyCredentials=!0);var u=e(t,o,s).initIndex("places");return u.search=i("query","/1/places/query"),u.reverse=function(e,t){var r=n.encode(e);return this.as._jsonRequest({method:"GET",url:"/1/places/reverse?"+r,hostType:"read",callback:t})},u.getObject=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/places/"+encodeURIComponent(e),hostType:"read",callback:t})},u}};var n=r(87735),i=r(10148)},44475:function(e,t,r){var n,i=r(10175)("algoliasearch:src/hostIndexState.js"),o="algoliasearch-client-js",s={state:{},set:function(e,t){return this.state[e]=t,this.state[e]},get:function(e){return this.state[e]||null}};function a(e,t){return i("localStorage failed with",t),function(){try{r.g.localStorage.removeItem(o)}catch(e){}}(),(n=s).get(e)}function u(e,t){return 1==arguments.length?n.get(e):n.set(e,t)}function c(){try{if("localStorage"in r.g&&null!==r.g.localStorage)return r.g.localStorage[o]||r.g.localStorage.setItem(o,JSON.stringify({})),!0;return!1}catch(e){return!1}}n=c()?{set:function(e,t){s.set(e,t);try{var n=JSON.parse(r.g.localStorage[o]);return n[e]=t,r.g.localStorage[o]=JSON.stringify(n),n[e]}catch(t){return a(e,t)}},get:function(e){try{return JSON.parse(r.g.localStorage[o])[e]||null}catch(t){return a(e,t)}}}:s,e.exports={get:u,set:u,supportsLocalStorage:c}},4572:function(e){"use strict";e.exports="3.35.1"},82702:function(e,t,r){var n,i=r(34155);n=function(){"use strict";function e(e){return"function"==typeof e}var t,n,o,s,a=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},u=0,c=void 0,l=void 0,h=function(e,t){g[u]=e,g[u+1]=t,2===(u+=2)&&(l?l(b):x())},f="undefined"!=typeof window?window:void 0,p=f||{},d=p.MutationObserver||p.WebKitMutationObserver,m="undefined"==typeof self&&void 0!==i&&"[object process]"===({}).toString.call(i),v="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function y(){var e=setTimeout;return function(){return e(b,1)}}var g=Array(1e3);function b(){for(var e=0;e<u;e+=2)(0,g[e])(g[e+1]),g[e]=void 0,g[e+1]=void 0;u=0}var x=void 0;function w(e,t){var r=this,n=new this.constructor(R);void 0===n[S]&&N(n);var i=r._state;if(i){var o=arguments[i-1];h(function(){return k(i,n,o,r._result)})}else A(r,n,e,t);return n}function P(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(R);return T(t,e),t}m?x=function(){return i.nextTick(b)}:d?(t=0,n=new d(b),o=document.createTextNode(""),n.observe(o,{characterData:!0}),x=function(){o.data=t=++t%2}):v?((s=new MessageChannel).port1.onmessage=b,x=function(){return s.port2.postMessage(0)}):x=void 0===f?function(){try{var e=Function("return this")().require("vertx");return c=e.runOnLoop||e.runOnContext,void 0!==c?function(){c(b)}:y()}catch(e){return y()}}():y();var S=Math.random().toString(36).substring(2);function R(){}var O=void 0;function j(t,r,n){r.constructor===t.constructor&&n===w&&r.constructor.resolve===P?1===r._state?F(t,r._result):2===r._state?_(t,r._result):A(r,void 0,function(e){return T(t,e)},function(e){return _(t,e)}):void 0===n?F(t,r):e(n)?h(function(e){var t=!1,i=function(e,t,r,n){try{e.call(t,r,n)}catch(e){return e}}(n,r,function(n){t||(t=!0,r!==n?T(e,n):F(e,n))},function(r){t||(t=!0,_(e,r))},"Settle: "+(e._label||" unknown promise"));!t&&i&&(t=!0,_(e,i))},t):F(t,r)}function T(e,t){if(e===t)_(e,TypeError("You cannot resolve a promise with itself"));else if(r=typeof t,null!==t&&("object"===r||"function"===r)){var r,n=void 0;try{n=t.then}catch(t){_(e,t);return}j(e,t,n)}else F(e,t)}
1function E(e){e._onerror&&e._onerror(e._result),C(e)}function F(e,t){e._state===O&&(e._result=t,e._state=1,0!==e._subscribers.length&&h(C,e))}function _(e,t){e._state===O&&(e._state=2,e._result=t,h(E,e))}function A(e,t,r,n){var i=e._subscribers,o=i.length;e._onerror=null,i[o]=t,i[o+1]=r,i[o+2]=n,0===o&&e._state&&h(C,e)}function C(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var n=void 0,i=void 0,o=e._result,s=0;s<t.length;s+=3)n=t[s],i=t[s+r],n?k(r,n,i,o):i(o);e._subscribers.length=0}}function k(t,r,n,i){var o=e(n),s=void 0,a=void 0,u=!0;if(o){try{s=n(i)}catch(e){u=!1,a=e}if(r===s){_(r,TypeError("A promises callback cannot return that same promise."));return}}else s=i;r._state!==O||(o&&u?T(r,s):!1===u?_(r,a):1===t?F(r,s):2===t&&_(r,s))}var D=0;function N(e){e[S]=D++,e._state=void 0,e._result=void 0,e._subscribers=[]}var V=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(R),this.promise[S]||N(this.promise),a(t)?(this.length=t.length,this._remaining=t.length,this._result=Array(this.length),0===this.length?F(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&F(this.promise,this._result))):_(this.promise,Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;this._state===O&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var r=this._instanceConstructor,n=r.resolve;if(n===P){var i=void 0,o=void 0,s=!1;try{i=e.then}catch(e){s=!0,o=e}if(i===w&&e._state!==O)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(r===I){var a=new r(R);s?_(a,o):j(a,e,i),this._willSettleAt(a,t)}else this._willSettleAt(new r(function(t){return t(e)}),t)}else this._willSettleAt(n(e),t)},e.prototype._settledAt=function(e,t,r){var n=this.promise;n._state===O&&(this._remaining--,2===e?_(n,r):this._result[t]=r),0===this._remaining&&F(n,this._result)},e.prototype._willSettleAt=function(e,t){var r=this;A(e,void 0,function(e){return r._settledAt(1,t,e)},function(e){return r._settledAt(2,t,e)})},e}(),I=function(){function t(e){this[S]=D++,this._result=this._state=void 0,this._subscribers=[],R!==e&&("function"!=typeof e&&function(){throw TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t(function(t){T(e,t)},function(t){_(e,t)})}catch(t){_(e,t)}}(this,e):function(){throw TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object c
1onstructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var r=this.constructor;return e(t)?this.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):this.then(t,t)},t}();return I.prototype.then=w,I.all=function(e){return new V(this,e).promise},I.race=function(e){var t=this;return new t(a(e)?function(r,n){for(var i=e.length,o=0;o<i;o++)t.resolve(e[o]).then(r,n)}:function(e,t){return t(TypeError("You must pass an array to race."))})},I.resolve=P,I.reject=function(e){var t=new this(R);return _(t,e),t},I._setScheduler=function(e){l=e},I._setAsap=function(e){h=e},I._asap=h,I.polyfill=function(){var e=void 0;if(void 0!==r.g)e=r.g;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=I},I.Promise=I,I},e.exports=n()},17187:function(e){function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"object"==typeof e&&null!==e}e.exports=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,i,o,s,a,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var c=Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(void 0===(i=this._events[e]))return!1;if(r(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),i.apply(this,s)}else if(n(i))for(a=0,s=Array.prototype.slice.call(arguments,1),o=(u=i.slice()).length;a<o;a++)u[a].apply(this,s);return!0},t.prototype.addListener=function(e,i){var o;if(!r(i))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(i.listener)?i.listener:i),this._events[e]?n(this._events[e])?this._events[e].push(i):this._events[e]=[this._events[e],i]:this._events[e]=i,n(this._events[e])&&!this._events[e].warned&&(o=void 0===this._maxListeners?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[e].length>o&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var i,o,s,a;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=(i=this._events[e]).length,o=-1,i===t||r(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(n(i)){for(a=s;a-- >0;)if(i[a]===t||i[a].listener&&i[a].listener===t){o=a;break}if(o<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0==arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0==arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},54483:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(i=function(){return!!e})()}
1function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}var u=r(67294),c=r(45697),l=r(15303).createFocusTrap,h=r(88388).isFocusable,f=function(e){var t;function r(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),t=r,s=[e],t=o(t),u=h=function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,i()?Reflect.construct(t,s||[],o(this).constructor):t.apply(this,s)),c="getNodeForOption",l=function(e){var t,r,n=null!==(t=this.internalOptions[e])&&void 0!==t?t:this.originalOptions[e];if("function"==typeof n){for(var i=arguments.length,o=Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];n=n.apply(void 0,o)}if(!0===n&&(n=void 0),!n){if(void 0===n||!1===n)return n;throw Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var a=n;if("string"==typeof n&&!(a=null===(r=this.getDocument())||void 0===r?void 0:r.querySelector(n)))throw Error("`".concat(e,"` as selector refers to no known node"));return a},(c=a(c))in u?Object.defineProperty(u,c,{value:l,enumerable:!0,configurable:!0,writable:!0}):u[c]=l,h.handleDeactivate=h.handleDeactivate.bind(h),h.handlePostDeactivate=h.handlePostDeactivate.bind(h),h.handleClickOutsideDeactivates=h.handleClickOutsideDeactivates.bind(h),h.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:h.handleDeactivate,onPostDeactivate:h.handlePostDeactivate,clickOutsideDeactivates:h.handleClickOutsideDeactivates},h.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var t,s,u,c,l,h,f=e.focusTrapOptions;for(var p in f)if(Object.prototype.hasOwnProperty.call(f,p)){if("returnFocusOnDeactivate"===p||"onDeactivate"===p||"onPostDeactivate"===p||"checkCanReturnFocus"===p||"clickOutsideDeactivates"===p){h.originalOptions[p]=f[p];continue}h.internalOptions[p]=f[p]}return h.outsideClick=null,h.focusTrapElements=e.containerElements||[],h.updatePreviousElement(),h}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(r,e),t=[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0)}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return e||!1!==e&&this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.getDocument();e&&(this.previouslyFocusedElement=e.activeElement)}},{key:"deactivateTrap",value:function(){this.focusTrap&&this.focusTrap.active&&this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(e){var t="function"==typeof this.originalOptions.clickOutsideDeactivates?this.originalOptions.clickOutsideDeactivates.call(null,e):this.originalOptions.clickOutsideDeactivates;return t&&(this.outsideClick={target:e.target,allowDeactivation:t}),t}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var e=this,t=function(){var t=e.getReturnFocusNode(),r=!!(e.originalOptions.returnFocusOnDeactivate&&null!=t&&t.focus&&(!e.outsideClick||e.outsideClick.allowDeactivation&&!h(e.outsideClick.target,e.internalOptions.tabbableOptions))),n=e.internalOptions.preventScroll;r&&t.focus({preventScroll:void 0!==n&&n}),e.originalOptions.onPostDeactivate&&e.originalOptions.onPostDeactivate.call(null),e.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(t,t):t()}},{key:"setupFocusTrap",value:function(){this.focusTrap?this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()):this.focusTrapElements.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,r=e.active&&!this.props.active,n=!e.paused&&this.props.paused,i=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),r){this.deactivateTrap();return}n&&this.focusTrap.pause(),i&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var e=this,t=this.props.children?u.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===u.Fragment)throw Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return u.cloneElement(t,{ref:function(r){var n=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(r):t.ref&&(t.ref.current=r)),e.focusTrapElements=n||[r]}})}return null}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}(r.prototype,t),Object.defineProperty(r,"prototype",{writable:!1}),r}(u.Component),p="undefined"==typeof Element?Function:Element;
1f.propTypes={active:c.bool,paused:c.bool,focusTrapOptions:c.shape({document:c.object,onActivate:c.func,onPostActivate:c.func,checkCanFocusTrap:c.func,onPause:c.func,onPostPause:c.func,onUnpause:c.func,onPostUnpause:c.func,onDeactivate:c.func,onPostDeactivate:c.func,checkCanReturnFocus:c.func,initialFocus:c.oneOfType([c.instanceOf(p),c.string,c.bool,c.func]),fallbackFocus:c.oneOfType([c.instanceOf(p),c.string,c.func]),escapeDeactivates:c.oneOfType([c.bool,c.func]),clickOutsideDeactivates:c.oneOfType([c.bool,c.func]),returnFocusOnDeactivate:c.bool,setReturnFocus:c.oneOfType([c.instanceOf(p),c.string,c.bool,c.func]),allowOutsideClick:c.oneOfType([c.bool,c.func]),preventScroll:c.bool,tabbableOptions:c.shape({displayCheck:c.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:c.oneOfType([c.bool,c.func])}),trapStack:c.array,isKeyForward:c.func,isKeyBackward:c.func}),containerElements:c.arrayOf(c.instanceOf(p)),children:c.oneOfType([c.element,c.instanceOf(p)])},f.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:l},e.exports=f},15303:function(e,t,r){"use strict";r.r(t),r.d(t,{createFocusTrap:function(){return v}});var n=r(88388);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){var n,i;n=t,i=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var a=function(e,t){if(e.length>0){var r=e[e.length-1];r!==t&&r._setPausedState(!0)}var n=e.indexOf(t);-1===n||e.splice(n,1),e.push(t)},u=function(e,t){var r=e.indexOf(t);-1!==r&&e.splice(r,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)},c=function(e){return(null==e?void 0:e.key)==="Tab"||(null==e?void 0:e.keyCode)===9},l=function(e){return c(e)&&!e.shiftKey},h=function(e){return c(e)&&e.shiftKey},f=function(e){return setTimeout(e,0)},p=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return"function"==typeof e?e.apply(void 0,r):e},d=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},m=[],v=function(e,t){var r,o=(null==t?void 0:t.document)||document,v=(null==t?void 0:t.trapStack)||m,y=s({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:l,isKeyBackward:h},t),g={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},b=function(e,t,r){return e&&void 0!==e[t]?e[t]:y[r||t]},x=function(e,t){var r="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return g.containerGroups.findIndex(function(t){var n=t.container,i=t.tabbableNodes;return n.contains(e)||(null==r?void 0:r.includes(n))||i.find(function(t){return t===e})})},w=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.hasFallback,s=r.params,a=y[e];if("function"==typeof a&&(a=a.apply(void 0,function(e){if(Array.isArray(e))return i(e)}(t=void 0===s?[]:s)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return i(e,void 0);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,void 0):void 0}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),!0===a&&(a=void 0),!a){if(void 0===a||!1===a)return a;throw Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var u=a;if("string"==typeof a){try{u=o.querySelector(a)}
1catch(t){throw Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!u&&!(void 0!==n&&n))throw Error("`".concat(e,"` as selector refers to no known node"))}return u},P=function(){var e=w("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,n.isFocusable)(e,y.tabbableOptions)){if(x(o.activeElement)>=0)e=o.activeElement;else{var t=g.tabbableGroups[0];e=t&&t.firstTabbableNode||w("fallbackFocus")}}else null===e&&(e=w("fallbackFocus"));if(!e)throw Error("Your focus-trap needs to have at least one focusable element");return e},S=function(){if(g.containerGroups=g.containers.map(function(e){var t=(0,n.tabbable)(e,y.tabbableOptions),r=(0,n.focusable)(e,y.tabbableOptions),i=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,s=r.find(function(e){return(0,n.isTabbable)(e)}),a=r.slice().reverse().find(function(e){return(0,n.isTabbable)(e)}),u=!!t.find(function(e){return(0,n.getTabIndex)(e)>0});return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:u,firstTabbableNode:i,lastTabbableNode:o,firstDomTabbableNode:s,lastDomTabbableNode:a,nextTabbableNode:function(e){var i=!(arguments.length>1)||void 0===arguments[1]||arguments[1],o=t.indexOf(e);return o<0?i?r.slice(r.indexOf(e)+1).find(function(e){return(0,n.isTabbable)(e)}):r.slice(0,r.indexOf(e)).reverse().find(function(e){return(0,n.isTabbable)(e)}):t[o+(i?1:-1)]}}}),g.tabbableGroups=g.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),g.tabbableGroups.length<=0&&!w("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(g.containerGroups.find(function(e){return e.posTabIndexesFound})&&g.containerGroups.length>1)throw Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},R=function(e){var t=e.activeElement;return t?t.shadowRoot&&null!==t.shadowRoot.activeElement?R(t.shadowRoot):t:void 0},O=function(e){if(!1!==e&&e!==R(document)){if(!e||!e.focus){O(P());return}
1e.focus({preventScroll:!!y.preventScroll}),g.mostRecentlyFocusedNode=e,e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select&&e.select()}},j=function(e){var t=w("setReturnFocus",{params:[e]});return t||!1!==t&&e},T=function(e){var t=e.target,r=e.event,i=e.isBackward,o=void 0!==i&&i;t=t||d(r),S();var s=null;if(g.tabbableGroups.length>0){var a=x(t,r),u=a>=0?g.containerGroups[a]:void 0;if(a<0)s=o?g.tabbableGroups[g.tabbableGroups.length-1].lastTabbableNode:g.tabbableGroups[0].firstTabbableNode;else if(o){var l=g.tabbableGroups.findIndex(function(e){var r=e.firstTabbableNode;return t===r});if(l<0&&(u.container===t||(0,n.isFocusable)(t,y.tabbableOptions)&&!(0,n.isTabbable)(t,y.tabbableOptions)&&!u.nextTabbableNode(t,!1))&&(l=a),l>=0){var h=0===l?g.tabbableGroups.length-1:l-1,f=g.tabbableGroups[h];s=(0,n.getTabIndex)(t)>=0?f.lastTabbableNode:f.lastDomTabbableNode}else c(r)||(s=u.nextTabbableNode(t,!1))}else{var p=g.tabbableGroups.findIndex(function(e){var r=e.lastTabbableNode;return t===r});if(p<0&&(u.container===t||(0,n.isFocusable)(t,y.tabbableOptions)&&!(0,n.isTabbable)(t,y.tabbableOptions)&&!u.nextTabbableNode(t))&&(p=a),p>=0){var m=p===g.tabbableGroups.length-1?0:p+1,v=g.tabbableGroups[m];s=(0,n.getTabIndex)(t)>=0?v.firstTabbableNode:v.firstDomTabbableNode}else c(r)||(s=u.nextTabbableNode(t))}}else s=w("fallbackFocus");return s},E=function(e){if(!(x(d(e),e)>=0)){if(p(y.clickOutsideDeactivates,e)){r.deactivate({returnFocus:y.returnFocusOnDeactivate});return}p(y.allowOutsideClick,e)||e.preventDefault()}},F=function(e){var t=d(e),r=x(t,e)>=0;if(r||t instanceof Document)r&&(g.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var i,o=!0;if(g.mostRecentlyFocusedNode){if((0,n.getTabIndex)(g.mostRecentlyFocusedNode)>0){var s=x(g.mostRecentlyFocusedNode),a=g.containerGroups[s].tabbableNodes;if(a.length>0){var u=a.findIndex(function(e){return e===g.mostRecentlyFocusedNode});u>=0&&(y.isKeyForward(g.recentNavEvent)?u+1<a.length&&(i=a[u+1],o=!1):u-1>=0&&(i=a[u-1],o=!1))}}else g.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return(0,n.getTabIndex)(e)>0})})||(o=!1)}else o=!1;o&&(i=T({target:g.mostRecentlyFocusedNode,isBackward:y.isKeyBackward(g.recentNavEvent)})),i?O(i):O(g.mostRecentlyFocusedNode||P())}g.recentNavEvent=void 0},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];g.recentNavEvent=e;var r=T({event:e,isBackward:t});r&&(c(e)&&e.preventDefault(),O(r))},A=function(e){(y.isKeyForward(e)||y.isKeyBackward(e))&&_(e,y.isKeyBackward(e))},C=function(e){((null==e?void 0:e.key)==="Escape"||(null==e?void 0:e.key)==="Esc"||(null==e?void 0:e.keyCode)===27)&&!1!==p(y.escapeDeactivates,e)&&(e.preventDefault(),r.deactivate())},k=function(e){x(d(e),e)>=0||p(y.clickOutsideDeactivates,e)||p(y.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},D=function(){if(g.active)return a(v,r),g.delayInitialFocusTimer=y.delayInitialFocus?f(function(){O(P())}):O(P()),o.addEventListener("focusin",F,!0),o.addEventListener("mousedown",E,{capture:!0,passive:!1}),o.addEventListener("touchstart",E,{capture:!0,passive:!1}),o.addEventListener("click",k,{capture:!0,passive:!1}),o.addEventListener("keydown",A,{capture:!0,passive:!1}),o.addEventListener("keydown",C),r},N=function(){if(g.active)return o.removeEventListener("focusin",F,!0),o.removeEventListener("mousedown",E,!0),o.removeEventListener("touchstart",E,!0),o.removeEventListener("click",k,!0),o.removeEventListener("keydown",A,!0),o.removeEventListener("keydown",C),r},V="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===g.mostRecentlyFocusedNode})})&&O(P())}):void 0,I=function(){V&&(V.disconnect(),g.active&&!g.paused&&g.containers.map(function(e){V.observe(e,{subtree:!0,childList:!0})}))};return Object.defineProperties(r={get active(){return g.active},get paused(){return g.paused},activate:function(e){if(g.active)return this;var t=b(e,"onActivate"),r=b(e,"onPostActivate"),n=b(e,"checkCanFocusTrap");n||S(),g.active=!0,g.paused=!1,g.nodeFocusedBeforeActivation=R(o),null==t||t();var i=function(){n&&S(),D(),I(),null==r||r()};return n?n(g.containers.concat()).then(i,i):i(),this},deactivate:function(e){if(!g.active)return this;var t=s({onDeactivate:y.onDeactivate,onPostDeactivate:y.onPostDeactivate,checkCanReturnFocus:y.checkCanReturnFocus},e);clearTimeout(g.delayInitialFocusTimer),g.delayInitialFocusTimer=void 0,N(),g.active=!1,g.paused=!1,I(),u(v,r);var n=b(t,"onDeactivate"),i=b(t,"onPostDeactivate"),o=b(t,"checkCanReturnFocus"),a=b(t,"returnFocus","returnFocusOnDeactivate");null==n||n();var c=function(){f(function(){a&&O(j(g.nodeFocusedBeforeActivation)),null==i||i()})};return a&&o?o(j(g.nodeFocusedBeforeActivation)).then(c,c):c(),this},pause:function(e){return g.active?(g.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return g.active?(g.manuallyPaused=!1,v[v.length-1]!==this)?this:this._setPausedState(!1,e):this}
1,updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return g.containers=t.map(function(e){return"string"==typeof e?o.querySelector(e):e}),g.active&&S(),I(),this}},{_isManuallyPaused:{value:function(){return g.manuallyPaused}},_setPausedState:{value:function(e,t){if(g.paused===e)return this;if(g.paused=e,e){var r=b(t,"onPause"),n=b(t,"onPostPause");null==r||r(),N(),I(),null==n||n()}else{var i=b(t,"onUnpause"),o=b(t,"onPostUnpause");null==i||i(),S(),D(),I(),null==o||o()}return this}}}),r.updateContainerElements(e),r}},49804:function(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,i){if("[object Function]"!==r.call(n))throw TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var s=0;s<o;s++)n.call(i,e[s],s,e);else for(var a in e)t.call(e,a)&&n.call(i,e[a],a,e)}},58908:function(e,t,r){var n;"undefined"!=typeof window?n=window:void 0!==r.g?n=r.g:"undefined"!=typeof self?n=self:n={},e.exports=n},35717:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},5826:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},62705:function(e,t,r){var n=r(55639).Symbol;e.exports=n},44239:function(e,t,r){var n=r(62705),i=r(89607),o=r(2333),s=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):o(e)}},27561:function(e,t,r){var n=r(67990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},31957:function(e,t,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},89607:function(e,t,r){var n=r(62705),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var i=s.call(e);return n&&(t?e[a]=r:delete e[a]),i}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,r){var n=r(31957),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},67990:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},23279:function(e,t,r){var n=r(13218),i=r(7771),o=r(14841),s=Math.max,a=Math.min;e.exports=function(e,t,r){var u,c,l,h,f,p,d=0,m=!1,v=!1,y=!0;if("function"!=typeof e)throw TypeError("Expected a function");function g(t){var r=u,n=c;return u=c=void 0,d=t,h=e.apply(n,r)}function b(e){var r=e-p,n=e-d;return void 0===p||r>=t||r<0||v&&n>=l}function x(){var e,r,n,o=i();if(b(o))return w(o);f=setTimeout(x,(e=o-p,r=o-d,n=t-e,v?a(n,l-r):n))}function w(e){return(f=void 0,y&&u)?g(e):(u=c=void 0,h)}function P(){var e,r=i(),n=b(r);if(u=arguments,c=this,p=r,n){if(void 0===f)return d=e=p,f=setTimeout(x,t),m?g(e):h;if(v)return clearTimeout(f),f=setTimeout(x,t),g(p)}return void 0===f&&(f=setTimeout(x,t)),h}return t=o(t)||0,n(r)&&(m=!!r.leading,l=(v="maxWait"in r)?s(o(r.maxWait)||0,t):l,y="trailing"in r?!!r.trailing:y),P.cancel=function(){void 0!==f&&clearTimeout(f),d=0,u=p=c=f=void 0},P.flush=function(){return void 0===f?h:w(i())},P}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,r){var n=r(44239),i=r(37005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},7771:function(e,t,r){var n=r(55639);e.exports=function(){return n.Date.now()}},14841:function(e,t,r){var n=r(27561),i=r(13218),o=r(33448),s=0/0,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return s;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=u.test(e);return r||c.test(e)?l(e.slice(2),r?2:8):a.test(e)?s:+e}},38199:function(e,t){"use strict";var r,n,i,o;
1Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_FAST_REFRESH:function(){return h},ACTION_NAVIGATE:function(){return a},ACTION_PREFETCH:function(){return l},ACTION_REFRESH:function(){return s},ACTION_RESTORE:function(){return u},ACTION_SERVER_ACTION:function(){return f},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return n},PrefetchKind:function(){return r},isThenable:function(){return p}});let s="refresh",a="navigate",u="restore",c="server-patch",l="prefetch",h="fast-refresh",f="server-action";function p(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(i=r||(r={})).AUTO="auto",i.FULL="full",i.TEMPORARY="temporary",(o=n||(n={})).fresh="fresh",o.reusable="reusable",o.expired="expired",o.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},87195:function(e,t,r){"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(98337),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98342:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let n=r(38754),i=r(85893),o=n._(r(67294)),s=r(36075),a=r(53955),u=r(48041),c=r(99903),l=r(65490),h=r(81928),f=r(60257),p=r(84229),d=r(87195),m=r(89470),v=r(38199),y=new Set;function g(e,t,r,n,i,o){if(o||(0,a.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(y.has(i))return;y.add(i)}(async()=>o?e.prefetch(t,i):e.prefetch(t,r,n))().catch(e=>{})}}function b(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}let x=o.default.forwardRef(function(e,t){let r,n;let{href:u,as:y,children:x,prefetch:w=null,passHref:P,replace:S,shallow:R,scroll:O,locale:j,onClick:T,onMouseEnter:E,onTouchStart:F,legacyBehavior:_=!1,...A}=e;r=x,_&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let C=o.default.useContext(h.RouterContext),k=o.default.useContext(f.AppRouterContext),D=null!=C?C:k,N=!C,V=!1!==w,I=null===w?v.PrefetchKind.AUTO:v.PrefetchKind.FULL,{href:M,as:L}=o.default.useMemo(()=>{if(!C){let e=b(u);return{href:e,as:y?b(y):e}}let[e,t]=(0,s.resolveHref)(C,u,!0);return{href:e,as:y?(0,s.resolveHref)(C,y):t||e}},[C,u,y]),H=o.default.useRef(M),B=o.default.useRef(L);_&&(n=o.default.Children.only(r));let U=_?n&&"object"==typeof n&&n.ref:t,[q,$,W]=(0,p.useIntersection)({rootMargin:"200px"}),Q=o.default.useCallback(e=>{(B.current!==L||H.current!==M)&&(W(),B.current=L,H.current=M),q(e),U&&("function"==typeof U?U(e):"object"==typeof U&&(U.current=e))},[L,U,M,W,q]);o.default.useEffect(()=>{D&&$&&V&&g(D,M,L,{locale:j},{kind:I},N)},[L,M,$,j,V,null==C?void 0:C.locale,D,N,I]);let z={ref:Q,onClick(e){_||"function"!=typeof T||T(e),_&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),D&&!e.defaultPrevented&&function(e,t,r,n,i,s,u,c,l){let{nodeName:h}=e.currentTarget;if("A"===h.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!l&&!(0,a.isLocalURL)(r)))return;e.preventDefault();let f=()=>{let e=null==u||u;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:s,locale:c,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})};l?o.default.startTransition(f):f()}(e,D,M,L,S,R,O,j,N)},onMouseEnter(e){_||"function"!=typeof E||E(e),_&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),D&&(V||!N)&&g(D,M,L,{locale:j,priority:!0,bypassPrefetchedCheck:!0},{kind:I},N)},onTouchStart:function(e){_||"function"!=typeof F||F(e),_&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),D&&(V||!N)&&g(D,M,L,{locale:j,priority:!0,bypassPrefetchedCheck:!0},{kind:I},N)}};if((0,c.isAbsoluteUrl)(L))z.href=L;else if(!_||P||"a"===n.type&&!("href"in n.props)){let e=void 0!==j?j:null==C?void 0:C.locale,t=(null==C?void 0:C.isLocaleDomain)&&(0,d.getDomainLocale)(L,e,null==C?void 0:C.locales,null==C?void 0:C.domainLocales);z.href=t||(0,m.addBasePath)((0,l.addLocale)(L,e,null==C?void 0:C.defaultLocale))}return _?o.default.cloneElement(n,z):(0,i.jsx)("a",{...A,...z,children:r})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84229:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});let n=r(67294),i=r(84474),o="function"==typeof IntersectionObserver,s=new Map,a=[];function u(e){let{rootRef:t,rootMargin:r,disabled:u}=e,c=u||!o,[l,h]=(0,n.useState)(!1),f=(0,n.useRef)(null),p=(0,n.useCallback)(e=>{f.current=e},[]);return(0,n.useEffect)(()=>{if(o){if(c||l)return;let e=f.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:i,elements:o}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=a.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=s.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},a.push(r),s.set(r,t),t}(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),s.delete(n);let e=a.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&h(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!l){let e=(0,i.requestIdleCallback)(()=>h(!0));return()=>(0,i.cancelIdleCallback)(e)}},[c,r,t,l,f.current]),[p,l,(0,n.useCallback)(()=>{h(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},32602:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return a},noSSR:function(){return s}});let n=r(38754);r(85893),r(67294);let i=n._(r(35491));function o(e){return{default:(null==e?void 0:e.default)||e}}function s(e,t){return delete t.webpack,delete t.modules,e(t)}function a(e,t){let r=i.default,n={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n={...n,...e});let a=(n={...n,...t}).loader;return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r({...n,loader:()=>null!=a?a().then(o):Promise.resolve(o(()=>null))}):(delete n.webpack,delete n.modules,s(r,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1159:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});let n=r(38754)._(r(67294)).default.createContext(null)},35491:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let n=r(38754)._(r(67294)),i=r(1159),o=[],s=[],a=!1;function u(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function l(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),o=null;function u(){if(!o){let t=new c(e,r);o={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return o.promise()}if(!a){let e=r.webpack?r.webpack():r.modules;e&&s.push(t=>{for(let r of e)if(t.includes(r))return u()})}function l(e,t){!function(){u();let e=n.default.useContext(i.LoadableContext);
1e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let s=n.default.useSyncExternalStore(o.subscribe,o.getCurrentValue,o.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:o.retry}),[]),n.default.useMemo(()=>{var t;return s.loading||s.error?n.default.createElement(r.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:o.retry}):s.loaded?n.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return l.preload=()=>u(),l.displayName="LoadableComponent",n.default.forwardRef(l)}(u,e)}function h(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return h(e,t)})}l.preloadAll=()=>new Promise((e,t)=>{h(o).then(e,t)}),l.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(a=!0,t());h(s,e).then(r,r)})),window.__NEXT_PRELOADREADY=l.preloadReady;let f=l},5152:function(e,t,r){e.exports=r(32602)},41664:function(e,t,r){e.exports=r(98342)},18987:function(e,t,r){"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=r(21414),a=Object.prototype.propertyIsEnumerable,u=!a.call({toString:null},"toString"),c=a.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!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},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{h(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),d=function(e){if("undefined"==typeof window||!p)return h(e);try{return h(e)}catch(e){return!1}};n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=s(e),a=t&&"[object String]"===o.call(e),h=[];if(!t&&!r&&!n)throw TypeError("Object.keys called on a non-object");var f=c&&r;if(a&&e.length>0&&!i.call(e,0))for(var p=0;p<e.length;++p)h.push(String(p));if(n&&e.length>0)for(var m=0;m<e.length;++m)h.push(String(m));else for(var v in e)!(f&&"prototype"===v)&&i.call(e,v)&&h.push(String(v));if(u)for(var y=d(e),g=0;g<l.length;++g)!(y&&"constructor"===l[g])&&i.call(e,l[g])&&h.push(l[g]);return h}}e.exports=n},82215:function(e,t,r){"use strict";var n=Array.prototype.slice,i=r(21414),o=Object.keys,s=o?function(e){return o(e)}:r(18987),a=Object.keys;s.shim=function(){return Object.keys?!function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)&&(Object.keys=function(e){return i(e)?a(n.call(e)):a(e)}):Object.keys=s,Object.keys||s},e.exports=s},21414:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},34155:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u=[],c=!1,l=-1;function h(){c&&n&&(c=!1,n.length?u=n.concat(u):l=-1,u.length&&f())}function f(){if(!c){var e=a(h);c=!0;for(var t=u.length;t;){for(n=u,u=[];++l<t;)n&&n[l].run();l=-1,t=u.length}n=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)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function d(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new p(e,t)),1!==u.length||c||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=d,i.addListener=d,i.once=d,i.off=d,i.removeListener=d,i.removeAllListeners=d,i.emit=d,i.prependListener=d,i.prependOnceListener=d,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},92703:function(e,t,r){"use strict";var n=r(50414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,s){if
1(s!==n){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},45697:function(e,t,r){e.exports=r(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},29335:function(e){"use strict";e.exports=function(e,r,n,i){r=r||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var s=/\+/g;e=e.split(r);var a=1e3;i&&"number"==typeof i.maxKeys&&(a=i.maxKeys);var u=e.length;a>0&&u>a&&(u=a);for(var c=0;c<u;++c){var l,h,f,p,d=e[c].replace(s,"%20"),m=d.indexOf(n);(m>=0?(l=d.substr(0,m),h=d.substr(m+1)):(l=d,h=""),f=decodeURIComponent(l),p=decodeURIComponent(h),Object.prototype.hasOwnProperty.call(o,f))?t(o[f])?o[f].push(p):o[f]=[o[f],p]:o[f]=p}return o};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},68795:function(e){"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,s,a){return(o=o||"&",s=s||"=",null===e&&(e=void 0),"object"==typeof e)?n(i(e),function(i){var a=encodeURIComponent(t(i))+s;return r(e[i])?n(e[i],function(e){return a+encodeURIComponent(t(e))}).join(o):a+encodeURIComponent(t(e[i]))}).join(o):a?encodeURIComponent(t(a))+s+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var i=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},87735:function(e,t,r){"use strict";t.decode=t.parse=r(29335),t.encode=t.stringify=r(68795)},69590:function(e){var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,o){try{return function e(o,s){if(o===s)return!0;if(o&&s&&"object"==typeof o&&"object"==typeof s){var a,u,c,l;if(o.constructor!==s.constructor)return!1;if(Array.isArray(o)){if((a=o.length)!=s.length)return!1;for(u=a;0!=u--;)if(!e(o[u],s[u]))return!1;return!0}if(r&&o instanceof Map&&s instanceof Map){if(o.size!==s.size)return!1;for(l=o.entries();!(u=l.next()).done;)if(!s.has(u.value[0]))return!1;for(l=o.entries();!(u=l.next()).done;)if(!e(u.value[1],s.get(u.value[0])))return!1;return!0}if(n&&o instanceof Set&&s instanceof Set){if(o.size!==s.size)return!1;for(l=o.entries();!(u=l.next()).done;)if(!s.has(u.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(s)){if((a=o.length)!=s.length)return!1;for(u=a;0!=u--;)if(o[u]!==s[u])return!1;return!0}if(o.constructor===RegExp)return o.source===s.source&&o.flags===s.flags;if(o.valueOf!==Object.prototype.valueOf&&"function"==typeof o.valueOf&&"function"==typeof s.valueOf)return o.valueOf()===s.valueOf();if(o.toString!==Object.prototype.toString&&"function"==typeof o.toString&&"function"==typeof s.toString)return o.toString()===s.toString();if((a=(c=Object.keys(o)).length)!==Object.keys(s).length)return!1;for(u=a;0!=u--;)if(!Object.prototype.hasOwnProperty.call(s,c[u]))return!1;if(t&&o instanceof Element)return!1;for(u=a;0!=u--;)if(("_owner"!==c[u]&&"__v"!==c[u]&&"__o"!==c[u]||!o.$$typeof)&&!e(o[c[u]],s[c[u]]))return!1;return!0}return o!=o&&s!=s}(e,o)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},23852:function(e,t,r){"use strict";var n=r(71773),i=r(63050),o=function(e){var t=e.attribute,r=e.hit,n=e.highlightProperty,o=e.preTag,s=void 0===o?i.p.highlightPreTag:o,a=e.postTag,u=void 0===a?i.p.highlightPostTag:a;return(0,i.$)({attribute:t,highlightProperty:n,hit:r,preTag:s,postTag:u})};t.Z=(0,n.Z)({displayName:"AlgoliaHighlighter",$$type:"ais.highlighter",propT
1ypes:{},getProvidedProps:function(){return{highlight:o}}})},33866:function(e,t,r){"use strict";r.d(t,{BT:function(){return o},tJ:function(){return s},wX:function(){return u}});var n=r(67294),i=(0,n.createContext)({onInternalStateUpdate:function(){},createHrefForState:function(){return"#"},onSearchForFacetValues:function(){},onSearchStateChange:function(){},onSearchParameters:function(){},store:{},widgetsManager:{},mainTargetedIndex:""}),o=i.Consumer,s=i.Provider,a=(0,n.createContext)(void 0),u=a.Consumer;a.Provider},71773:function(e,t,r){"use strict";var n=r(67294),i=r(69590),o=r.n(i),s=r(33866),a=r(60647),u=["contextValue"];function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){v(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function d(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t,r){return(t=y(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==c(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===c(t)?t:String(t)}t.Z=function(e){return function(t,r){var i=(function(e){if(!e.displayName)throw Error("`createConnector` requires you to provide a `displayName` property.");var t="function"==typeof e.getSearchParameters||"function"==typeof e.getMetadata||"function"==typeof e.transitionState;return function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=function(i){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(b,i);var s,h,g=(s=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=m(b);return e=s?Reflect.construct(t,arguments,m(this).constructor):t.apply(this,arguments),function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return d(e)}(this,e)});function b(t){var r;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,b),v(d(r=g.call(this,t)),"unsubscribe",void 0),v(d(r),"unregisterWidget",void 0),v(d(r),"cleanupTimerRef",null),v(d(r),"isUnmounting",!1),v(d(r),"state",{providedProps:r.getProvidedProps(r.props)}),v(d(r),"refine",function(){for(var t,n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];r.props.contextValue.onInternalStateUpdate((t=e.refine).call.apply(t,[d(r),r.props,r.props.contextValue.store.getState().widgets].concat(i)))}),v(d(r),"createURL",function(){for(var t,n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return r.props.contextValue.createHrefForState((t=e.refine).call.apply(t,[d(r),r.props,r.props.contextValue.store.getState().widgets].concat(i)))}),v(d(r),"searchForFacetValues",function(){for(var t,n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];r.props.contextValue.onSearchForFacetValues((t=e.searchForFacetValues).call.apply(t,[d(r),r.props,r.props.contextValue.store.getState().widgets].concat(i)))}),e.getSearchParameters&&r.props.contextValue.onSearchParameters(e.getSearchParameters.bind(d(r)),{ais:r.props.contextValue,multiIndexContext:r.props.indexContextValue},r.props,e.getMetadata&&e.getMetadata.bind(d(r)),e.displayName),r}return h=[{key:"componentDidMount",value:function(){var e=this;this.cleanupTimerRef&&(clearTimeout(this.cleanupTimerRef),this.cleanupTimerRef=null),this.unsubscribe=this.props.contextValue.store.subscribe(function(){e.isUnmounting||e.setState({providedProps:e.getProvidedProps(e.props)})}),t&&(this.unregisterWidget=this.props.contextValue.widgetsManager.registerWidget(this))}},{key:"shouldComponentUpdate",value:function(t,r){if("function"==typeof e.shouldComponentUpdate)return e.shouldComponentUpdate.call(this,this.props,t,this.state,r);var n=(0,a.wU)(this.props,t);return null===this.state.providedProps||null===r.providedProps?this.state.providedProps!==r.providedProps||!n:!n||!(0,a.wU)(this.state.providedProps,r.providedProps)}},{key:"componentDidUpdate",value:function(r){!o()(r,this.props)&&(this.setState({providedProps:this.getProvidedProps(this.props)}
1),t&&(this.props.contextValue.widgetsManager.update(),"function"==typeof e.transitionState&&this.props.contextValue.onSearchStateChange(e.transitionState.call(this,this.props,this.props.contextValue.store.getState().widgets,this.props.contextValue.store.getState().widgets))))}},{key:"componentWillUnmount",value:function(){var t=this;this.cleanupTimerRef=setTimeout(function(){if(t.isUnmounting=!0,t.unsubscribe&&t.unsubscribe(),t.unregisterWidget&&(t.unregisterWidget(),"function"==typeof e.cleanUp)){var r=e.cleanUp.call(t,t.props,t.props.contextValue.store.getState().widgets);t.props.contextValue.store.setState(f(f({},t.props.contextValue.store.getState()),{},{widgets:r})),t.props.contextValue.onSearchStateChange((0,a.YC)(r))}})}},{key:"getProvidedProps",value:function(t){var r=this.props.contextValue.store.getState(),n=r.widgets,i=r.results,o=r.resultsFacetValues,s=r.searching,a=r.searchingForFacetValues,u=r.isSearchStalled,c=r.metadata,l=r.error;return e.getProvidedProps.call(this,t,n,{results:i,searching:s,searchingForFacetValues:a,isSearchStalled:u,error:l},c,o)}},{key:"getSearchParameters",value:function(t){return"function"==typeof e.getSearchParameters?e.getSearchParameters.call(this,t,this.props,this.props.contextValue.store.getState().widgets):null}},{key:"getMetadata",value:function(t){return"function"==typeof e.getMetadata?e.getMetadata.call(this,this.props,t):{}}},{key:"transitionState",value:function(t,r){return"function"==typeof e.transitionState?e.transitionState.call(this,this.props,t,r):r}},{key:"render",value:function(){var t=this.props,i=(t.contextValue,function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(t,u)),o=this.state.providedProps;if(null===o)return null;var s="function"==typeof e.refine?{refine:this.refine,createURL:this.createURL}:{},a="function"==typeof e.searchForFacetValues?{searchForItems:this.searchForFacetValues}:{};return n.createElement(r,l({},i,o,s,a))}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y(n.key),n)}}(b.prototype,h),Object.defineProperty(b,"prototype",{writable:!1}),b}(n.Component);return v(s,"displayName","".concat(e.displayName,"(").concat((0,a.Gf)(r),")")),v(s,"$$type",e.$$type),v(s,"$$widgetType",i.$$widgetType),v(s,"propTypes",e.propTypes),v(s,"defaultProps",e.defaultProps),v(s,"_connectorDesc",e),s}})(e)(t,r);return function(e){return n.createElement(s.BT,null,function(t){return n.createElement(s.wX,null,function(r){return n.createElement(i,l({contextValue:t,indexContextValue:r},e))})})}}}},63050:function(e,t,r){"use strict";r.d(t,{$:function(){return s},p:function(){return i}});var n=r(60647),i={highlightPreTag:"<ais-highlight-0000000000>",highlightPostTag:"</ais-highlight-0000000000>"};function o(e){var t=e.preTag,r=e.postTag,n=e.highlightedValue,i=(void 0===n?"":n).split(t),o=i.shift(),s=""===o?[]:[{value:o,isHighlighted:!1}];if(r===t){var a=!0;i.forEach(function(e){s.push({value:e,isHighlighted:a}),a=!a})}else i.forEach(function(e){var t=e.split(r);s.push({value:t[0],isHighlighted:!0}),""!==t[1]&&s.push({value:t[1],isHighlighted:!1})});return s}function s(e){var t=e.preTag,r=void 0===t?"<em>":t,i=e.postTag,s=void 0===i?"</em>":i,a=e.highlightProperty,u=e.attribute,c=e.hit;if(!c)throw Error("`hit`, the matching record, must be provided");var l=(0,n.Es)(c[a],u)||{};return Array.isArray(l)?l.map(function(e){return o({preTag:r,postTag:s,highlightedValue:e.value})}):o({preTag:r,postTag:s,highlightedValue:l.value})}},95009:function(e,t,r){"use strict";r.d(t,{Ei:function(){return l},O7:function(){return c},RD:function(){return function e(t,r,n,i,o){if(!l(n))return t.indices&&i&&Object.keys(t.indices).forEach(function(r){t=e(t,{page:1},{multiIndexContext:{targetedIndex:r}},!0,o)}),o?s(s({},c=t),{},a({},o,s(s({},c[o]),r)),i?{page:1}:void 0):s(s(s({},t),r),i?{page:1}:void 0);var c,h,f,p,d,m,v,y=u(n);return o?(p=(h=t).indices&&h.indices[y]?s(s({},h.indices),{},a({},y,s(s({},h.indices[y]),{},(a(f={},o,s(s({},h.indices[y][o]),r)),a(f,"page",1),f)))):s(s({},h.indices),{},a({},y,s(a({},o,r),i?{page:1}:void 0))),s(s({},h),{},{indices:p})):(d=t,m=i?{page:1}:void 0,v=d.indices&&d.indices[y]?s(s({},d.indices),{},a({},y,s(s(s({},d.indices[y]),r),m))):s(s({},d.indices),{},a({},y,s(s({},r),m))),s(s({},d),{},{indices:v}))}},U6:function(){return f},WN:function(){return u},cI:function(){return p}});var n=r(60647);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?o(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e,t,r){var n;return(n=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===i(n)?n:String(n))in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){return l(e)?e.multiIndexContext.targetedIndex:e.ais.mainTargetedIndex}function c(e,t){if(e.results){if(e.results.hits)return e.results;var r=u(t);if(e.results[r])return e.results[r]}return null}function l(e){return e&&e.multiIndexContext}function h(e){var t=e.match(/^([^.]*)\.(.*)/);return{namespace:t&&t[1],attributeName:t&&t[2]}}function f(e,t,r,n,i){var o,s,a,c,f,p,d,m,v,y,g,b,x=u(r),w=h(n),P=w.namespace,S=w.attributeName,R={multiIndex:l(r),indexId:x,namespace:P,attributeName:S,id:n,searchState:t};return(o=R.multiIndex,s=R.indexId,a=R.namespace,c=R.attributeName,f=R.id,p=R.searchState,o&&a?p.indices&&p.indices[s]&&p.indices[s][a]&&Object.hasOwnProperty.call(p.indices[s][a],c):o?p.indices&&p.indices[s]&&Object.hasOwnProperty.call(p.indices[s],f):a?p[a]&&Object.hasOwnProperty.call(p[a],c):Object.hasOwnProperty.call(p,f))?(d=R.multiIndex,m=R.indexId,v=R.namespace,y=R.attributeName,g=R.id,b=R.searchState,d&&v?b.indices[m][v][y]:d?b.indices[m][g]:v?b[v][y]:b[g]):e.defaultRefinement?e.defaultRefinement:i}function p(e,t,r){var i,o,c,f,p,d,m,v,y,g,b,x,w=u(t),P=h(r),S=P.namespace,R=P.attributeName;return l(t)&&e.indices?(o=(i={attribute:R,searchState:e,indexId:w,id:r,namespace:S}).searchState,c=i.indexId,f=i.id,p=i.namespace,d=i.attribute,m=o.indices[c],p&&m?s(s({},o),{},{indices:s(s({},o.indices),{},a({},c,s(s({},m),{},a({},p,(0,n.CE)(m[p],[d])))))}):m?s(s({},o),{},{indices:s(s({},o.indices),{},a({},c,(0,n.CE)(m,[f])))}):o):(y=(v={attribute:R,searchState:e,id:r,namespace:S}).searchState,g=v.id,b=v.namespace,x=v.attribute,b?s(s({},y),{},a({},b,(0,n.CE)(y[b],[x]))):(0,n.CE)(y,[g]))}},60647:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){var n,i;n=t,i=r[t],(n=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,{CE:function(){return d},Es:function(){return m},Gf:function(){return u},Io:function(){return p},PQ:function(){return l},RC:function(){return f},YC:function(){return h},wU:function(){return a}});var s=Object.prototype.hasOwnProperty,a=function(e,t){if(e===t)return!0;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!s.call(t,r[i])||e[r[i]]!==t[r[i]])return!1;return!0},u=function(e){return e.displayName||e.name||"UnknownComponent"},c=Promise.resolve(),l=function(e){c.then(e)},h=function e(t){return Object.keys(t).forEach(function(r){var n=t[r];"object"===o(n)&&null!==n&&!Array.isArray(n)&&(n&&Object.keys(n).length>0?e(n):delete t[r])}),t};function f(e,t,r){return e.map(function(e,n){return i(i({},e),{},{__position:t*r+n+1})})}function p(e,t){return t?e.map(function(e){return i(i({},e),{},{__queryID:t})}):e}function d(e,t){if(null==e)return{};for(var r={},n=Object.keys(e),i=0;i<n.length;i++){var o=n[i];t.indexOf(o)>=0||(r[o]=e[o])}return r}var m=function(e,t){return(Array.isArray(t)?t:t.replace(/\[(\d+)]/g,".$1").split(".")).reduce(function(e,t){return e?e[t]:void 0},e)}},34859:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var n=r(71773),i=r(95009),o=r(60647);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=["children","contextValue","indexContextValue"],u=["children","contextValue","indexContextValue"];function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?c(Object(r),!0).forEach(function(t){h(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function h(e,t,r){var n;return(n=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==s(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===s(n)?n:String(n))in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function p(){return"configure"}var d=(0,n.Z)({displayName:"AlgoliaConfigure",$$type:"ais.configure",getProvidedProps:function(){return{}},getSearchParameters:function(e,t){t.children,t.contextValue,t.indexContextValue;var r=f(t,a);return e.setQueryParameters(r)},transitionState:function(e,t,r){var n=p();e.children,e.contextValue,e.indexContextValue;var s=f(e,u),a=Object.keys(e),c=this._props?Object.keys(this._props).filter(function(e){return -1===a.indexOf(e)}):[];this._props=e;var d=h({},n,l(l({},(0,o.CE)(r[n],c)),s));return(0,i.RD)(r,d,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){var r=p(),n=(0,i.WN)({ais:e.contextValue,multiIndexContext:e.indexContextValue}),o=(0,i.Ei)({ais:e.contextValue,multiIndexContext:e.indexContextValue})&&t.indices?t.indices[n]:t,s=(o&&o[r]?Object.keys(o[r]):[]).reduce(function(t,n){return e[n]||(t[n]=o[r][n]),t},{}),a=h({},r,s);return(0,i.RD)(t,a,{ais:e.contextValue,multiIndexContext:e.indexContextValue})}})(function(){return null},{$$widgetType:"ais.configure"})},56843:function(e,t,r){"use strict";r.d(t,{Z:function(){return H}});var n=r(45697),i=r.n(n),o=r(67294),s=r(69590),a=r.n(s),u=r(33866),c=r(8131),l=r.n(c),h=r(60647),f=r(63050),p=r(95009),d=["resultsFacetValues"],m=["resultsFacetValues"],v=["resultsFacetValues"];function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(t){w(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function w(e,t,r){var n;return(n=function(e,t){if("object"!==y(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==y(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===y(n)?n:String(n))in e)?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e){"function"==typeof e.addAlgoliaAgent&&(e.addAlgoliaAgent("react (".concat(o.version,")")),e.addAlgoliaAgent("react-instantsearch (".concat("6.40.4",")")))}var S=function(e){return(0,p.Ei)({ais:e.props.contextValue,multiIndexContext:e.props.indexContextValue})},R=function(e,t){return e.props.indexContextValue.targetedIndex===t},O=function(e){return!!e.props.indexId},j=function(e,t){return e.props.indexId===t},T=function(e,t){var r=O(e),n=O(t);return r&&!n?-1:!r&&n?1:0};function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?_(Object(r),!0).forEach(function(t){V(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function C(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,I(n.key),n)}}function k(e,t){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function D(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function V(e,t,r){return(t=I(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I(e){var t=function(e,t){if("object"!==F(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==F(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===F(t)?t:String(t)}function M(e){return!!e.searchState}var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(s,e);var t,r,n,i=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=N(s);return e=t?Reflect.construct(r,arguments,N(this).constructor):r.apply(this,arguments),function(e,t){if(t&&("object"===F(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return D(e)}(this,e)});function s(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,s),V(D(t=i.call(this,e)),"cleanupTimerRef",null),V(D(t),"isUnmounting",!1);var t,r=function(e){var t,r,n,i=e.indexName,o=e.initialState,s=e.searchClient,a=e.resultsState,u=e.stalledSearchDelay,c=l()(s,i,x({},f.p));P(s),c.on("search",function(){y||(y=setTimeout(function(){var e=F.getState(),t=(e.resultsFacetValues,g(e,v));F.setState(x(x({},t),{},{isSearchStalled:!0}))},u))}).on("result",k({indexId:i})).on("error",D);var p=!1,y=null,b=c.state,E=function(e){var t=[],r=!1;function n(){r||(r=!0,(0,h.PQ)(function(){r=!1,e()}))}return{registerWidget:function(e){return t.push(e),n(),function(){t.splice(t.indexOf(e),1),n()}},update:n,getWidgets:function(){return t}}}(function(){var e=_(F.getState().widgets);F.setState(x(x({},F.getState()),{},{metadata:e,searching:!0})),C()});!function(e,t){if(t&&(e.transporter&&!e._cacheHydrated||e._useCache&&"function"==typeof e.addAlgoliaAgent)){if(e.transporter&&!e._cacheHydrated){e._cacheHydrated=!0;var r=e.search;e.search=function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];var s=t.map(function(e){var t,r;return x(x({},e),{},{params:(t=e.params,r=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0;return e.replace(/%s/g,function(){return encodeURIComponent(r[i++])})},Object.keys(t).map(function(e){var n;return r("%s=%s",e,(n=t[e],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n))?JSON.stringify(t[e]):t[e])}).join("&"))})});return e.transporter.responsesCache.get({method:"search",args:[s].concat(i)},function(){return r.apply(void 0,[t].concat(i))})}}if(Array.isArray(t.results)){!function(e,t){if(e.transporter){e.transporter.responsesCache.set({method:"search",args:[t.reduce(function(e,t){return e.concat(t.rawResults.map(function(e){return{indexName:e.index,params:e.params}}))},[])]},{results:t.reduce(function(e,t){return e.concat(t.rawResults)},[])});return}var r="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:t.reduce(function(e,t){return e.concat(t.rawResults.map(function(e){return{indexName:e.index,params:e.params}}))},[])}));e.cache=x(x({},e.cache),{},w({},r,JSON.stringify({results:t.reduce(function(e,t){return e.concat(t.rawResults)},[])})))}(e,t.results);return}!function(e,t){if(e.transporter){e.transporter.responsesCache.set({method:"search",args:[t.rawResults.map(function(e){return{indexName:e.index,params:e.params}})]},{results:t.rawResults});return}var r="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:t.rawResults.map(function(e){return{indexName:e.index,params:e.params}})}));e.cache=x(x({},e.cache),{},w({},r,JSON.stringify({results:t.rawResults})))}(e,t)}}(s,a);var F=(t={widgets:void 0===o?{}:o,metadata:a?a.metadata.map(function(e){return x(x({value:function(){return{}}},e),{},{items:e.items&&e.items.map(function(e){return x(x({value:function(){return{}}},e),{},{items:e.items&&e.items.map(function(e){return x({value:function(){return{}}},e)})})})})}):[],results:a?Array.isArray(a.results)?a.results.reduce(function(e,t){return x(x({},e),{},w({},t._internalIndexId,new(l()).SearchResults(new(l()).SearchParameters(t.state),t.rawResults)))},{}):new(l()).SearchResults(new(l()).SearchParameters(a.state),a.rawResults):null,error:null,searching:!1,isSearchStalled:!0,searchingForFacetValues:!1},r=[],{getState:function(){return t},setState:function(e){t=e,r.forEach(function(e){return e()})},subscribe:function(e){return r.push(e),function(){r.splice(r.indexOf(e),1)}}});function _(e){return E.getWidgets().filter(function(e){return!!e.getMetadata}).map(function(t){return t.getMetadata(e)})}function A(){var e=E.getWidgets().filter(function(e){return!!e.getSearchParameters}).filter(function(e){return!S(e)&&!O(e)}).reduce(function(e,t){return t.getSearchParameters(e)},b),t=E.getWidgets().filter(function(e){return!!e.getSearchParameters}).filter(function(e){var t=S(e)&&R(e,i),r=O(e)&&j(e,i);return t||r}).sort(T).reduce(function(e,t){return t.getSearchParameters(e)},e),r=E.getWidgets().filter(function(e){return!!e.getSearchParameters}).filter(function(e){var t=S(e)&&!R(e,i),r=O(e)&&!j(e,i);return t||r}).sort(T).reduce(function(e,t){var r=S(t)?t.props.indexContextValue.targetedIndex:t.props.indexId,n=e[r]||[];return x(x({},e),{},w({},r,n.concat(t)))},{});return{mainParameters:t,derivedParameters:Object.keys(r).map(function(t){return{parameters:r[t].reduce(function(e,t){return t.getSearchParameters(e)},e),indexId:t}})}}function C(){if(!p){var e=A(c.state),t=e.mainParameters,r=e.derivedParameters;
1n=r.length+1,c.derivedHelpers.slice().forEach(function(e){e.detach()}),r.forEach(function(e){var t=e.indexId,r=e.parameters;c.derive(function(){return r}).on("result",k({indexId:t})).on("error",D)}),c.setState(t),c.search()}}function k(e){var t=e.indexId;return function(e){n--;var r=F.getState(),i=!c.derivedHelpers.length,o=r.results?r.results:{};o=!i&&o.getFacetByName?{}:o,o=i?e.results:x(x({},o),{},w({},t,e.results));var s=F.getState(),a=s.isSearchStalled;c.hasPendingRequests()||(clearTimeout(y),y=null,a=!1),s.resultsFacetValues;var u=g(s,d);F.setState(x(x({},u),{},{results:o,isSearchStalled:a,searching:n>0,error:null}))}}function D(e){var t=e.error,r=F.getState(),n=r.isSearchStalled;c.hasPendingRequests()||(clearTimeout(y),n=!1),r.resultsFacetValues;var i=g(r,m);F.setState(x(x({},i),{},{isSearchStalled:n,error:t,searching:!1}))}return{store:F,widgetsManager:E,getWidgetsIds:function(){return F.getState().metadata.reduce(function(e,t){return void 0!==t.id?e.concat(t.id):e},[])},getSearchParameters:A,onSearchForFacetValues:function(e){var t=e.facetName,r=e.query,n=e.maxFacetHits;F.setState(x(x({},F.getState()),{},{searchingForFacetValues:!0})),c.searchForFacetValues(t,r,Math.max(1,Math.min(void 0===n?10:n,100))).then(function(e){var n;F.setState(x(x({},F.getState()),{},{error:null,searchingForFacetValues:!1,resultsFacetValues:x(x({},F.getState().resultsFacetValues),{},(w(n={},t,e.facetHits),w(n,"query",r),n))}))},function(e){F.setState(x(x({},F.getState()),{},{searchingForFacetValues:!1,error:e}))}).catch(function(e){setTimeout(function(){throw e})})},onExternalStateUpdate:function(e){var t=_(e);F.setState(x(x({},F.getState()),{},{widgets:e,metadata:t,searching:!0})),C()},transitionState:function(e){var t=F.getState().widgets;return E.getWidgets().filter(function(e){return!!e.transitionState}).reduce(function(e,r){return r.transitionState(t,e)},e)},updateClient:function(e){P(e),c.setClient(e),C()},updateIndex:function(e){b=b.setIndex(e)},clearCache:function(){c.clearCache(),C()},skipSearch:function(){p=!0}}}({indexName:t.props.indexName,searchClient:t.props.searchClient,initialState:t.props.searchState||{},resultsState:t.props.resultsState,stalledSearchDelay:t.props.stalledSearchDelay}),n={store:r.store,widgetsManager:r.widgetsManager,mainTargetedIndex:t.props.indexName,onInternalStateUpdate:t.onWidgetsInternalStateUpdate.bind(D(t)),createHrefForState:t.createHrefForState.bind(D(t)),onSearchForFacetValues:t.onSearchForFacetValues.bind(D(t)),onSearchStateChange:t.onSearchStateChange.bind(D(t)),onSearchParameters:t.onSearchParameters.bind(D(t))};return t.state={isControlled:M(t.props),instantSearchManager:r,contextValue:n},t}return r=[{key:"componentDidUpdate",value:function(e){var t=M(e);if(t&&!this.state.isControlled)throw Error("You can't switch <InstantSearch> from being controlled to uncontrolled");if(!t&&this.state.isControlled)throw Error("You can't switch <InstantSearch> from being uncontrolled to controlled");this.props.refresh!==e.refresh&&this.props.refresh&&this.state.instantSearchManager.clearCache(),e.indexName!==this.props.indexName&&this.state.instantSearchManager.updateIndex(this.props.indexName),e.searchClient!==this.props.searchClient&&this.state.instantSearchManager.updateClient(this.props.searchClient)}},{key:"componentDidMount",value:function(){if(this.cleanupTimerRef&&(clearTimeout(this.cleanupTimerRef),this.cleanupTimerRef=null),("undefined"==typeof window?"undefined":E(window))==="object"&&"object"===E(window.navigator)&&"string"==typeof window.navigator.userAgent&&window.navigator.userAgent.includes("Algolia Crawler")&&"object"===E(window.document)){var e,t,r,n,i,o,s;e=this.state.instantSearchManager.widgetsManager.getWidgets(),t=this.props.searchClient,r=document.createElement("meta"),n=document.querySelector("head"),r.name="algolia:metadata",i=["contextValue","indexContextValue"],o=e.map(function(e){var t=e.props,r=e.constructor,n=r._connectorDesc||{},o=n.defaultProps,s=void 0===o?{}:o,a=n.displayName;return{displayName:void 0===a?r.displayName:a,$$type:r.$$type,$$widgetType:r.$$widgetType,params:Object.keys(t).filter(function(e){return!i.includes(e)&&s[e]!==t[e]&&void 0!==t[e]})}}),s={ua:t.transporter&&t.transporter.userAgent?t.transporter.userAgent.value:t._ua,widgets:o},r.content=JSON.stringify(s),n.appendChild(r)}}},{key:"componentWillUnmount",value:function(){var e=this;this.cleanupTimerRef=setTimeout(function(){e.isUnmounting=!0,e.state.instantSearchManager.skipSearch()})}},{key:"createHrefForState",value:function(e){return e=this.state.instantSearchManager.transitionState(e),this.state.isControlled&&this.props.createURL?this.props.createURL(e,this.getKnownKeys()):"#"}},{key:"onWidgetsInternalStateUpdate",value:function(e){e=this.state.instantSearchManager.transitionState(e),this.onSearchStateChange(e),this.state.isControlled||this.state.instantSearchManager.onExternalStateUpdate(e)}},{key:"onSearchStateChange",value:function(e){this.props.onSearchStateChange&&!this.isUnmounting&&this.props.onSearchStateChange(e)}},{key:"onSearchParameters",value:function(e,t,r,n,i){if(this.props.onSearchParameters){var o=this.props.searchState?this.props.searchState:{};this.props.onSearchParameters(e,t,r,o)}if(this.props.widgetsCollector){var s=this.props.searchState?this.props.searchState:{};this.props.widgetsCollector({getSearchParameters:e,getMetadata:n,context:t,props:r,searchState:s,displayName:i})}}},{key:"onSearchForFacetValues",value:function(e){this.state.instantSearchManager.onSearchForFacetValues(e)}},{key:"getKnownKeys",value:function(){return this.state.instantSearchManager.getWidgetsIds()}},{key:"render",value:function(){return 0===o.Children.count(this.props.children)?null:o.createElement(u.tJ,{value:this.state.contextValue},this.props.children)}}],n=[{key:"getDerivedStateFromProps",value:function(e,t){var r=M(e),n=t.instantSearchManager.store.getState().widgets,i=e.searchState;return r&&!a()(n,i)&&t.instantSearchManager.onExternalStateUpdate(e.searchState),{isControlled:r,contextValue:A(A({},t.contextValue),{},{mainTargetedIndex:e.indexName})}}}],r&&C(s.prototype,r),n&&C(s,n),Object.defineProperty(s,"prototype",{writable:!1}),s}(o.Component);V(L,"defaultProps",{stalledSearchDelay:200,refresh:!1}
1),V(L,"propTypes",{indexName:i().string.isRequired,searchClient:i().shape({search:i().func.isRequired,searchForFacetValues:i().func,addAlgoliaAgent:i().func,clearCache:i().func}).isRequired,createURL:i().func,refresh:i().bool,searchState:i().object,onSearchStateChange:i().func,onSearchParameters:i().func,widgetsCollector:i().func,resultsState:i().oneOfType([i().object,i().array]),children:i().node,stalledSearchDelay:i().number});var H=L},7189:function(e,t,r){"use strict";var n=r(93967),i=r.n(n),o=r(45697),s=r.n(o),a=r(67294),u=function(e){var t=e.cx,r=e.value,n=e.highlightedTagName,i=e.isHighlighted,o=e.nonHighlightedTagName;return a.createElement(i?n:o,{className:t(i?"highlighted":"nonHighlighted")},r)};u.propTypes={cx:s().func.isRequired,value:s().string.isRequired,isHighlighted:s().bool.isRequired,highlightedTagName:s().string.isRequired,nonHighlightedTagName:s().string.isRequired};var c=function(e){var t=e.cx,r=e.hit,n=e.attribute,o=e.highlight,s=e.highlightProperty,c=e.tagName,l=e.nonHighlightedTagName,h=e.separator,f=e.className,p=o({hit:r,attribute:n,highlightProperty:s});return a.createElement("span",{className:i()(t(""),f)},p.map(function(e,r){if(Array.isArray(e)){var n=r===p.length-1;return a.createElement("span",{key:r},e.map(function(e,r){return a.createElement(u,{cx:t,key:r,value:e.value,highlightedTagName:c,nonHighlightedTagName:l,isHighlighted:e.isHighlighted})}),!n&&a.createElement("span",{className:t("separator")},h))}return a.createElement(u,{cx:t,key:r,value:e.value,highlightedTagName:c,nonHighlightedTagName:l,isHighlighted:e.isHighlighted})}))};c.propTypes={cx:s().func.isRequired,hit:s().object.isRequired,attribute:s().oneOfType([s().arrayOf(s().string),s().string]).isRequired,highlight:s().func.isRequired,highlightProperty:s().string.isRequired,tagName:s().string,nonHighlightedTagName:s().string,className:s().string,separator:s().node},c.defaultProps={tagName:"em",nonHighlightedTagName:"span",className:"",separator:", "},t.Z=c},89978:function(e,t,r){"use strict";r.d(t,{JV:function(){return o}});var n=r(93967),i=r.n(n),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ais";return function(){for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];var s=n.filter(function(e){return e||""===e}).map(function(r){var n="".concat(t,"-").concat(e);return r?"".concat(n,"-").concat(r):n});return i()(s)}}},33181:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(23852),i=r(67294),o=r(89978),s=r(7189);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var u=(0,o.JV)("Highlight"),c=(0,n.Z)(function(e){return i.createElement(s.Z,a({},e,{highlightProperty:"_highlightResult",cx:u}))},{$$widgetType:"ais.highlight"})},14606:function(e,t,r){"use strict";r.d(t,{Z:function(){return v}});var n=r(71773),i=r(95009),o=r(60647),s=(0,n.Z)({displayName:"AlgoliaHits",$$type:"ais.hits",getProvidedProps:function(e,t,r){var n=(0,i.O7)(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});if(!n)return{hits:[]};var s=(0,o.RC)(n.hits,n.hitsPerPage,n.page);return{hits:(0,o.Io)(s,n.queryID)}},getSearchParameters:function(e){return e}}),a=r(93967),u=r.n(a),c=r(45697),l=r.n(c),h=r(67294),f=(0,r(89978).JV)("Hits"),p=function(e){return h.createElement("div",{style:{borderBottom:"1px solid #bbb",paddingBottom:"5px",marginBottom:"5px",wordBreak:"break-all"}},JSON.stringify(e).slice(0,100),"...")},d=function(e){var t=e.hits,r=e.className,n=e.hitComponent,i=void 0===n?p:n;return h.createElement("div",{className:u()(f(""),void 0===r?"":r)},h.createElement("ul",{className:f("list")},t.map(function(e){return h.createElement("li",{className:f("item"),key:e.objectID},h.createElement(i,{hit:e}))})))},m=l().shape({objectID:l().oneOfType([l().string,l().number]).isRequired});d.propTypes={hits:l().arrayOf(m.isRequired).isRequired,className:l().string,hitComponent:l().any};var v=s(d,{$$widgetType:"ais.hits"})},95861:function(e,t,r){"use strict";r.d(t,{Z:function(){return V}});var n,i=r(45697),o=r.n(i),s=r(71773),a=r(95009);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){return"query"}function l(e,t,r){var n=c(e);return(0,a.U6)(e,t,r,n,"")||""}function h(e,t,r,n){var i,o,s,l=(o={},(i=function(e,t){if("object"!==u(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==u(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(s=c(),"string"),(s="symbol"===u(i)?i:String(i))in o)?Object.defineProperty(o,s,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[s]=r,o);return(0,a.RD)(t,l,n,!0)}var f=(0,s.Z)({displayName:"AlgoliaSearchBox",$$type:"ais.searchBox",propTypes:{defaultRefinement:o().string},getProvidedProps:function(e,t,r){return{currentRefinement:l(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),isSearchStalled:r.isSearchStalled}},refine:function(e,t,r){return h(e,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){var r;return r={ais:e.contextValue,multiIndexContext:e.indexContextValue},(0,a.cI)(t,r,c())},getSearchParameters:function(e,t,r){return e.setQuery(l(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}))},getMetadata:function(e,t){var r=c(e),n=l(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return{id:r,index:(0,a.WN)({ais:e.contextValue,multiIndexContext:e.indexContextValue}),items:null===n?[]:[{label:"".concat(r,": ").concat(n),value:function(t){return h(e,t,"",{ais:e.contextValue,multiIndexContext:e.indexContextValue})},currentRefinement:n}]}}}),p=r(93967),d=r.n(p),m=r(67294);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function g(e,t){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function b(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e){var t=function(e,t){if("object"!==v(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==v(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===v(t)?t:String(t)}function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach(function(t){F(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function j(e,t){return(j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function T(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function F(e,t,r){return(t=_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _(e){var t=function(e,t){if("object"!==P(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==P(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===P(t)?t:String(t)}var A=(0,r(89978).JV)("SearchBox"),C=m.createElement("svg",{width:"18",height:"18",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:"#444",className:A("loadingIcon"),"aria-hidden":"true"},m.createElement("g",{fill:"none",fillRule:"evenodd"},m.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},m.createElement("circle",{strokeOpacity:".5",cx:"18",cy:"18",r:"18"}),m.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},m.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}))))),k=m.createElement("svg",{className:A("resetIcon"),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",width:"10",height:"10","aria-hidden":"true"},m.createElement("path",{d:"M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"})),D=m.createElement("svg",{className:A("submitIcon"),xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 40 40","aria-hidden":"true"},m.createElement("path",{d:"M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"})),N=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}(i,e);var t,r,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=E(i);return e=t?Reflect.construct(r,arguments,E(this).constructor):r.apply(this,arguments),function(e,t){if(t&&("object"===P(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return T(e)}(this,e)});function i(e){var t;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),F(T(t=n.call(this)),"getQuery",function(){return t.props.searchAsYouType?t.props.currentRefinement:t.state.query}
1),F(T(t),"onInputMount",function(e){t.input=e,t.props.inputRef&&("function"==typeof t.props.inputRef?t.props.inputRef(e):t.props.inputRef.current=e)}),F(T(t),"onKeyDown",function(e){if(t.props.focusShortcuts){var r=t.props.focusShortcuts.map(function(e){return"string"==typeof e?e.toUpperCase().charCodeAt(0):e}),n=e.target||e.srcElement,i=n.tagName;if(!n.isContentEditable&&"INPUT"!==i&&"SELECT"!==i&&"TEXTAREA"!==i){var o=e.which||e.keyCode;-1!==r.indexOf(o)&&(t.input.focus(),e.stopPropagation(),e.preventDefault())}}}),F(T(t),"onSubmit",function(e){e.preventDefault(),e.stopPropagation(),t.input.blur();var r=t.props,n=r.refine;return r.searchAsYouType||n(t.getQuery()),!1}),F(T(t),"onChange",function(e){var r=t.props,n=r.searchAsYouType,i=r.refine,o=r.onChange,s=e.target.value;n?i(s):t.setState({query:s}),o&&o(e)}),F(T(t),"onReset",function(e){var r=t.props,n=r.searchAsYouType,i=r.refine,o=r.onReset;i(""),t.input.focus(),n||t.setState({query:""}),o&&o(e)}),t.state={query:e.searchAsYouType?null:e.currentRefinement},t}return r=[{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.onKeyDown)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onKeyDown)}},{key:"componentDidUpdate",value:function(e){this.props.searchAsYouType||e.currentRefinement===this.props.currentRefinement||this.setState({query:this.props.currentRefinement})}},{key:"render",value:function(){var e=this,t=this.props,r=t.className,n=t.inputId,i=t.translate,o=t.autoFocus,s=t.loadingIndicator,a=t.submit,u=t.reset,c=this.getQuery(),l=Object.keys(this.props).reduce(function(t,r){return -1===["onsubmit","onreset","onchange"].indexOf(r.toLowerCase())&&0===r.indexOf("on")?O(O({},t),{},F({},r,e.props[r])):t},{}),h=this.props.showLoadingIndicator&&this.props.isSearchStalled;return m.createElement("div",{className:d()(A(""),r)},m.createElement("form",{ref:this.props.formRef,noValidate:!0,onSubmit:this.props.onSubmit?this.props.onSubmit:this.onSubmit,onReset:this.onReset,className:A("form",h&&"form--stalledSearch"),action:"",role:"search"},m.createElement("input",S({ref:this.onInputMount,id:n,type:"search",placeholder:i("placeholder"),autoFocus:o,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",required:!0,maxLength:"512",value:c,onChange:this.onChange},l,{className:A("input")})),m.createElement("button",{type:"submit",title:i("submitTitle"),className:A("submit")},a),m.createElement("button",{type:"reset",title:i("resetTitle"),className:A("reset"),hidden:!c||h},u),this.props.showLoadingIndicator&&m.createElement("span",{hidden:!h,className:A("loadingIndicator")},s)))}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_(n.key),n)}}(i.prototype,r),Object.defineProperty(i,"prototype",{writable:!1}),i}(m.Component);F(N,"propTypes",{currentRefinement:o().string,className:o().string,refine:o().func.isRequired,translate:o().func.isRequired,loadingIndicator:o().node,reset:o().node,submit:o().node,focusShortcuts:o().arrayOf(o().oneOfType([o().string,o().number])),autoFocus:o().bool,searchAsYouType:o().bool,onSubmit:o().func,onReset:o().func,onChange:o().func,isSearchStalled:o().bool,showLoadingIndicator:o().bool,formRef:o().oneOfType([o().func,o().exact({current:o().object})]),inputRef:o().oneOfType([o().func,o().exact({current:o().object})]),inputId:o().string}),F(N,"defaultProps",{currentRefinement:"",className:"",focusShortcuts:["s","/"],autoFocus:!1,searchAsYouType:!0,showLoadingIndicator:!1,isSearchStalled:!1,loadingIndicator:C,reset:k,submit:D});var V=f((n={resetTitle:"Clear the search query.",submitTitle:"Submit your search query.",placeholder:"Search here…"},function(e){var t,r=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(s,t);var r,i,o=(r=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=x(s);return e=r?Reflect.construct(t,arguments,x(this).constructor):t.apply(this,arguments),function(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return b(e)}(this,e)});function s(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,s);for(var e,t,r,i,a=arguments.length,u=Array(a),c=0;c<a;c++)u[c]=arguments[c];return t=b(e=o.call.apply(o,[this].concat(u))),r="translate",i=function(t){var r=e.props.translations,i=r&&r.hasOwnProperty(t)?r[t]:n[t];if("function"==typeof i){for(var o=arguments.length,s=Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return i.apply(void 0,s)}return i},(r=w(r))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,e}return(i=[{key:"render",value:function(){return m.createElement(e,y({translate:this.translate},this.props))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,w(n.key),n)}}
1(s.prototype,i),Object.defineProperty(s,"prototype",{writable:!1}),s}(m.Component),i=e.displayName||e.name||"UnknownComponent";return r.displayName="Translatable(".concat(i,")"),r.propTypes={translations:(t=Object.keys(n),function(e,r,n){var i=e[r];if(i)for(var o=0,s=Object.keys(i);o<s.length;o++){var a=s[o];if(-1===t.indexOf(a))return Error("Unknown `".concat(r,"` key `").concat(a,"`. Check the render method ")+"of `".concat(n,"`."))}})},r})(N),{$$widgetType:"ais.searchBox"})},13554:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(23852),i=r(67294),o=r(89978),s=r(7189);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var u=(0,o.JV)("Snippet"),c=(0,n.Z)(function(e){return i.createElement(s.Z,a({},e,{highlightProperty:"_snippetResult",cx:u}))},{$$widgetType:"ais.snippet"})},88388:function(e,t,r){"use strict";r.r(t),r.d(t,{focusable:function(){return E},getTabIndex:function(){return p},isFocusable:function(){return A},isTabbable:function(){return F},tabbable:function(){return T}});var n=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],i=n.join(","),o="undefined"==typeof Element,s=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,a=!o&&Element.prototype.getRootNode?function(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},u=function e(t,r){void 0===r&&(r=!0);var n,i=null==t?void 0:null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"inert");return""===i||"true"===i||r&&t&&e(t.parentNode)},c=function(e){var t,r=null==e?void 0:null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===r||"true"===r},l=function(e,t,r){if(u(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&s.call(e,i)&&n.unshift(e),n=n.filter(r)},h=function e(t,r,n){for(var o=[],a=Array.from(t);a.length;){var c=a.shift();if(!u(c,!1)){if("SLOT"===c.tagName){var l=c.assignedElements(),h=e(l.length?l:c.children,!0,n);n.flatten?o.push.apply(o,h):o.push({scopeParent:c,candidates:h})}else{s.call(c,i)&&n.filter(c)&&(r||!t.includes(c))&&o.push(c);var f=c.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(c),p=!u(f,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(c));if(f&&p){var d=e(!0===f?c.children:f.children,!0,n);n.flatten?o.push.apply(o,d):o.push({scopeParent:c,candidates:d})}else a.unshift.apply(a,c.children)}}}return o},f=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},p=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||c(e))&&!f(e)?0:e.tabIndex},d=function(e,t){var r=p(e);return r<0&&t&&!f(e)?0:r},m=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},v=function(e){return"INPUT"===e.tagName},y=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},g=function(e){if(!e.name)return!0;var t,r=e.form||a(e),n=function(e){return r.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=n(window.CSS.escape(e.name));else try{t=n(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=y(t,e.form);return!i||i===e},b=function(e){var t,r,n,i,o,s,u,c=e&&a(e),l=null===(t=c)||void 0===t?void 0:t.host,h=!1;if(c&&c!==e)for(h=!!(null!==(r=l)&&void 0!==r&&null!==(n=r.ownerDocument)&&void 0!==n&&n.contains(l)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!h&&l;)h=!!(null!==(s=l=null===(o=c=a(l))||void 0===o?void 0:o.host)&&void 0!==s&&null!==(u=s.ownerDocument)&&void 0!==u&&u.contains(l));return h},x=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return 0===r&&0===n},w=function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=s.call(e,"details>summary:first-of-type")?e.parentElement:e;if(s.call(i,"details:not([open]) *"))return!0;
1if(r&&"full"!==r&&"legacy-full"!==r){if("non-zero-area"===r)return x(e)}else{if("function"==typeof n){for(var o=e;e;){var u=e.parentElement,c=a(e);if(u&&!u.shadowRoot&&!0===n(u))return x(e);e=e.assignedSlot?e.assignedSlot:u||c===e.ownerDocument?u:c.host}e=o}if(b(e))return!e.getClientRects().length;if("legacy-full"!==r)return!0}return!1},P=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var r=0;r<t.children.length;r++){var n=t.children.item(r);if("LEGEND"===n.tagName)return!!s.call(t,"fieldset[disabled] *")||!n.contains(e)}return!0}t=t.parentElement}return!1},S=function(e,t){return!(t.disabled||u(t)||v(t)&&"hidden"===t.type||w(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||P(t))},R=function(e,t){var r;return!(v(r=t)&&"radio"===r.type&&!g(r)||0>p(t))&&!!S(e,t)},O=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||t>=0},j=function e(t){var r=[],n=[];return t.forEach(function(t,i){var o=!!t.scopeParent,s=o?t.scopeParent:t,a=d(s,o),u=o?e(t.candidates):s;0===a?o?r.push.apply(r,u):r.push(s):n.push({documentOrder:i,tabIndex:a,item:t,isScope:o,content:u})}),n.sort(m).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(r)},T=function(e,t){return j((t=t||{}).getShadowRoot?h([e],t.includeContainer,{filter:R.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:O}):l(e,t.includeContainer,R.bind(null,t)))},E=function(e,t){return(t=t||{}).getShadowRoot?h([e],t.includeContainer,{filter:S.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):l(e,t.includeContainer,S.bind(null,t))},F=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==s.call(e,i)&&R(t,e)},_=n.concat("iframe").join(","),A=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==s.call(e,_)&&S(t,e)}},93967:function(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=o(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=o(t,r));return t}(r)))}return e}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0!==(r=(function(){return i}).apply(t,[]))&&(e.exports=r)}()},51526:function(e,t,r){"use strict";r.d(t,{M:function(){return v}});var n=r(67294),i=r(58868);function o(){let e=(0,n.useRef)(!1);return(0,i.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var s=r(2074),a=r(240),u=r(96681);class c extends n.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function l({children:e,isPresent:t}){let r=(0,n.useId)(),i=(0,n.useRef)(null),o=(0,n.useRef)({width:0,height:0,top:0,left:0});return(0,n.useInsertionEffect)(()=>{let{width:e,height:n,top:s,left:a}=o.current;if(t||!i.current||!e||!n)return;i.current.dataset.motionPopId=r;let u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` 2 [data-motion-pop-id="${r}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${n}px !important; 6 top: ${s}px !important; 7 left: ${a}px !important; 8 } 9 `),()=>{document.head.removeChild(u)}},[t]),n.createElement(c,{isPresent:t,childRef:i,sizeRef:o},n.cloneElement(e,{ref:i}))}let h=({children:e,initial:t,isPresent:r,onExitComplete:i,custom:o,presenceAffectsLayout:s,mode:c})=>{let h=(0,u.h)(f),p=(0,n.useId)(),d=(0,n.useMemo)(()=>({id:p,initial:t,isPresent:r,custom:o,onExitComplete:e=>
9{for(let t of(h.set(e,!0),h.values()))if(!t)return;i&&i()},register:e=>(h.set(e,!1),()=>h.delete(e))}),s?void 0:[r]);return(0,n.useMemo)(()=>{h.forEach((e,t)=>h.set(t,!1))},[r]),n.useEffect(()=>{r||h.size||!i||i()},[r]),"popLayout"===c&&(e=n.createElement(l,{isPresent:r},e)),n.createElement(a.O.Provider,{value:d},e)};function f(){return new Map}var p=r(25364),d=r(45487);let m=e=>e.key||"",v=({children:e,custom:t,initial:r=!0,onExitComplete:a,exitBeforeEnter:u,presenceAffectsLayout:c=!0,mode:l="sync"})=>{var f;(0,d.k)(!u,"Replace exitBeforeEnter with mode='wait'");let v=(0,n.useContext)(p.p).forceRender||function(){let e=o(),[t,r]=(0,n.useState)(0),i=(0,n.useCallback)(()=>{e.current&&r(t+1)},[t]);return[(0,n.useCallback)(()=>s.Wi.postRender(i),[i]),t]}()[0],y=o(),g=function(e){let t=[];return n.Children.forEach(e,e=>{(0,n.isValidElement)(e)&&t.push(e)}),t}(e),b=g,x=(0,n.useRef)(new Map).current,w=(0,n.useRef)(b),P=(0,n.useRef)(new Map).current,S=(0,n.useRef)(!0);if((0,i.L)(()=>{S.current=!1,function(e,t){e.forEach(e=>{let r=m(e);t.set(r,e)})}(g,P),w.current=b}),f=()=>{S.current=!0,P.clear(),x.clear()},(0,n.useEffect)(()=>()=>f(),[]),S.current)return n.createElement(n.Fragment,null,b.map(e=>n.createElement(h,{key:m(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:c,mode:l},e)));b=[...b];let R=w.current.map(m),O=g.map(m),j=R.length;for(let e=0;e<j;e++){let t=R[e];-1!==O.indexOf(t)||x.has(t)||x.set(t,void 0)}return"wait"===l&&x.size&&(b=[]),x.forEach((e,r)=>{if(-1!==O.indexOf(r))return;let i=P.get(r);if(!i)return;let o=R.indexOf(r),s=e;s||(s=n.createElement(h,{key:m(i),isPresent:!1,onExitComplete:()=>{x.delete(r);let e=Array.from(P.keys()).filter(e=>!O.includes(e));if(e.forEach(e=>P.delete(e)),w.current=g.filter(t=>{let n=m(t);return n===r||e.includes(n)}),!x.size){if(!1===y.current)return;v(),a&&a()}},custom:t,presenceAffectsLayout:c,mode:l},i),x.set(r,s)),b.splice(o,0,s)}),b=b.map(e=>{let t=e.key;return x.has(t)?e:n.createElement(h,{key:m(e),isPresent:!0,presenceAffectsLayout:c,mode:l},e)}),n.createElement(n.Fragment,null,x.size?b:b.map(e=>(0,n.cloneElement)(e)))}},25364:function(e,t,r){"use strict";r.d(t,{p:function(){return n}});let n=(0,r(67294).createContext)({})},240:function(e,t,r){"use strict";r.d(t,{O:function(){return n}});let n=(0,r(67294).createContext)(null)},2074:function(e,t,r){"use strict";r.d(t,{Pn:function(){return a},Wi:function(){return s},frameData:function(){return u},S6:function(){return c}});var n=r(81662);class i{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}let o=["prepare","read","update","preRender","render","postRender"],{schedule:s,cancel:a,state:u,steps:c}=function(e,t){let r=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},a=o.reduce((e,t)=>(e[t]=function(e){let t=new i,r=new i,n=0,o=!1,s=!1,a=new WeakSet,u={schedule:(e,i=!1,s=!1)=>{let u=s&&o,c=u?t:r;return i&&a.add(e),c.add(e)&&u&&o&&(n=t.order.length),e},cancel:e=>{r.remove(e),a.delete(e)},process:i=>{if(o){s=!0;return}if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length)for(let r=0;r<n;r++){let n=t.order[r];n(i),a.has(n)&&(u.schedule(n),e())}o=!1,s&&(s=!1,u.process(i))}};return u}(()=>r=!0),e),{}),u=e=>a[e].process(s),c=()=>{let i=performance.now();r=!1,s.delta=n?1e3/60:Math.max(Math.min(i-s.timestamp,40),1),s.timestamp=i,s.isProcessing=!0,o.forEach(u),s.isProcessing=!1,r&&t&&(n=!1,e(c))},l=()=>{r=!0,n=!0,s.isProcessing||e(c)};return{schedule:o.reduce((e,t)=>{let n=a[t];return e[t]=(e,t=!1,i=!1)=>(r||l(),n.schedule(e,t,i)),e},{}),cancel:e=>o.forEach(t=>a[t].cancel(e)),state:s,steps:a}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.Z,!0)},43495:function(e,t,r){"use strict";let n;r.d(t,{E:function(){return iW}});var i,o,s=r(67294);let a=(0,s.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),u=(0,s.createContext)({});var c=r(240),l=r(58868);let h=(0,s.createContext)({strict:!1}),f=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),p="data-"+f("framerAppearId");function d(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function m(e){return"string"==typeof e||Array.isArray(e)}function v(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}let y=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],g=["initial",...y];function b(e){return v(e.animate)||g.some(t=>m(e[t]))}function x(e){return!!(b(e)||e.variants)}function w(e){return Array.isArray(e)?e.join(" "):e}let P={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},S={};for(let e in P)S[e]={isEnabled:t=>P[e].some(e=>!!t[e])};var R=r(11741),O=r(25364);let j=(0,s.createContext)({}),T=Symbol.for("motionComponentSymbol"),E=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function F(e){if("string"!=typeof e||e.includes("-"));else if(E.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let _={},A=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],C=new Set(A);function k(e,{layout:t,layoutId:r}){return C.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!_[e]||"opacity"===e)}let D=e=>!!(e&&e.getVelocity),N={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},V=A.length,I=e=>t=>"string"==typeof t&&t.startsWith(e),M=I("--"),L=I("var(--"),H=(e,t)=>t&&"number"==typeof e?t.transform(e):e,B=(e,t,r)=>
9Math.min(Math.max(r,e),t),U={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},q={...U,transform:e=>B(0,1,e)},$={...U,default:1},W=e=>Math.round(1e5*e)/1e5,Q=/(-)?([\d]*\.?[\d])+/g,z=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,G=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function J(e){return"string"==typeof e}let Z=e=>({test:t=>J(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),K=Z("deg"),Y=Z("%"),X=Z("px"),ee=Z("vh"),et=Z("vw"),er={...Y,parse:e=>Y.parse(e)/100,transform:e=>Y.transform(100*e)},en={...U,transform:Math.round},ei={borderWidth:X,borderTopWidth:X,borderRightWidth:X,borderBottomWidth:X,borderLeftWidth:X,borderRadius:X,radius:X,borderTopLeftRadius:X,borderTopRightRadius:X,borderBottomRightRadius:X,borderBottomLeftRadius:X,width:X,maxWidth:X,height:X,maxHeight:X,size:X,top:X,right:X,bottom:X,left:X,padding:X,paddingTop:X,paddingRight:X,paddingBottom:X,paddingLeft:X,margin:X,marginTop:X,marginRight:X,marginBottom:X,marginLeft:X,rotate:K,rotateX:K,rotateY:K,rotateZ:K,scale:$,scaleX:$,scaleY:$,scaleZ:$,skew:K,skewX:K,skewY:K,distance:X,translateX:X,translateY:X,translateZ:X,x:X,y:X,z:X,perspective:X,transformPerspective:X,opacity:q,originX:er,originY:er,originZ:X,zIndex:en,fillOpacity:q,strokeOpacity:q,numOctaves:en};function eo(e,t,r,n){let{style:i,vars:o,transform:s,transformOrigin:a}=e,u=!1,c=!1,l=!0;for(let e in t){let r=t[e];if(M(e)){o[e]=r;continue}let n=ei[e],h=H(r,n);if(C.has(e)){if(u=!0,s[e]=h,!l)continue;r!==(n.default||0)&&(l=!1)}else e.startsWith("origin")?(c=!0,a[e]=h):i[e]=h}if(!t.transform&&(u||n?i.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let o="";for(let t=0;t<V;t++){let r=A[t];if(void 0!==e[r]){let t=N[r]||r;o+=`${t}(${e[r]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,n?"":o):r&&n&&(o="none"),o}(e.transform,r,l,n):i.transform&&(i.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:r=0}=a;i.transformOrigin=`${e} ${t} ${r}`}}let es=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ea(e,t,r){for(let n in t)D(t[n])||k(n,r)||(e[n]=t[n])}let eu=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ec(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||eu.has(e)}let el=e=>!ec(e);try{(i=require("@emotion/is-prop-valid").default)&&(el=e=>e.startsWith("on")?!ec(e):i(e))}catch(e){}function eh(e,t,r){return"string"==typeof e?e:X.transform(t+r*e)}let ef={offset:"stroke-dashoffset",array:"stroke-dasharray"},ep={offset:"strokeDashoffset",array:"strokeDasharray"};function ed(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:u=0,...c},l,h,f){if(eo(e,c,l,f),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:p,style:d,dimensions:m}=e;p.transform&&(m&&(d.transform=p.transform),delete p.transform),m&&(void 0!==i||void 0!==o||d.transform)&&(d.transformOrigin=function(e,t,r){let n=eh(t,e.x,e.width),i=eh(r,e.y,e.height);return`${n} ${i}`}(m,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(p.x=t),void 0!==r&&(p.y=r),void 0!==n&&(p.scale=n),void 0!==s&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?ef:ep;e[o.offset]=X.transform(-n);let s=X.transform(t),a=X.transform(r);e[o.array]=`${s} ${a}`}(p,s,a,u,!1)}let em=()=>({...es(),attrs:{}}),ev=e=>"string"==typeof e&&"svg"===e.toLowerCase();function ey(e,{style:t,vars:r},n,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(n)),r)e.style.setProperty(o,r[o])}let eg=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function eb(e,t,r,n){for(let r in ey(e,t,void 0,n),t.attrs)e.setAttribute(eg.has(r)?r:f(r),t.attrs[r])}function ex(e,t){let{style:r}=e,n={};for(let i in r)(D(r[i])||t.style&&D(t.style[i])||k(i,e))&&(n[i]=r[i]);return n}function ew(e,t){let r=ex(e,t);for(let n in e)(D(e[n])||D(t[n]))&&(r[-1!==A.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}function eP(e,t,r,n={},i={}){return"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),t}var eS=r(96681);let eR=e=>Array.isArray(e),eO=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),ej=e=>eR(e)?e[e.length-1]||0:e;function eT(e){let t=D(e)?e.get():e;return eO(t)?t.toValue():t}let eE=e=>(t,r)=>{let n=(0,s.useContext)(u),i=(0,s.useContext)(c.O),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){let s={latestValues:function(e,t,r,n){let i={},o=n(e,{});for(let e in o)i[e]=eT(o[e]);let{initial:s,animate:a}=e,u=b(e),c=x(e);t&&c&&!u&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let l=!!r&&!1===r.initial,h=(l=l||!1===s)?a:s;return h&&"boolean"!=typeof h&&!v(h)&&(Array.isArray(h)?h:[h]).forEac
9h(t=>{let r=eP(e,t);if(!r)return;let{transitionEnd:n,transition:o,...s}=r;for(let e in s){let t=s[e];if(Array.isArray(t)){let e=l?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in n)i[e]=n[e]}),i}(n,i,o,e),renderState:t()};return r&&(s.mount=e=>r(n,e,s)),s})(e,t,n,i);return r?o():(0,eS.h)(o)};var eF=r(2074);let e_={useVisualState:eE({scrapeMotionValuesFromProps:ew,createRenderState:em,onMount:(e,t,{renderState:r,latestValues:n})=>{eF.Wi.read(()=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}}),eF.Wi.render(()=>{ed(r,n,{enableHardwareAcceleration:!1},ev(t.tagName),e.transformTemplate),eb(t,r)})}})},eA={useVisualState:eE({scrapeMotionValuesFromProps:ex,createRenderState:es})};function eC(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}let ek=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function eD(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}let eN=e=>t=>ek(t)&&e(t,eD(t));function eV(e,t,r,n){return eC(e,t,eN(r),n)}let eI=(e,t)=>r=>t(e(r)),eM=(...e)=>e.reduce(eI);function eL(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let eH=eL("dragHorizontal"),eB=eL("dragVertical");function eU(e){let t=!1;if("y"===e)t=eB();else if("x"===e)t=eH();else{let e=eH(),r=eB();e&&r?t=()=>{e(),r()}
9:(e&&e(),r&&r())}return t}function eq(){let e=eU(!0);return!e||(e(),!1)}class e${constructor(e){this.isMounted=!1,this.node=e}update(){}}function eW(e,t){let r="onHover"+(t?"Start":"End");return eV(e.current,"pointer"+(t?"enter":"leave"),(n,i)=>{if("touch"===n.pointerType||eq())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[r]&&eF.Wi.update(()=>o[r](n,i))},{passive:!e.getProps()[r]})}class eQ extends e${mount(){this.unmount=eM(eW(this.node,!0),eW(this.node,!1))}unmount(){}}class ez extends e${constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=eM(eC(this.node.current,"focus",()=>this.onFocus()),eC(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let eG=(e,t)=>!!t&&(e===t||eG(e,t.parentElement));var eJ=r(81662);function eZ(e,t){if(!t)return;let r=new PointerEvent("pointer"+e);t(r,eD(r))}class eK extends e${constructor(){super(...arguments),this.removeStartListeners=eJ.Z,this.removeEndListeners=eJ.Z,this.removeAccessibleListeners=eJ.Z,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let r=this.node.getProps(),n=eV(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:r,onTapCancel:n,globalTapTarget:i}=this.node.getProps();eF.Wi.update(()=>{i||eG(this.node.current,e.target)?r&&r(e,t):n&&n(e,t)})},{passive:!(r.onTap||r.onPointerUp)}),i=eV(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=eM(n,i),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=eC(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=eC(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&eZ("up",(e,t)=>{let{onTap:r}=this.node.getProps();r&&eF.Wi.update(()=>r(e,t))})}),eZ("down",(e,t)=>{this.startPress(e,t)}))}),t=eC(this.node.current,"blur",()=>{this.isPressing&&eZ("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=eM(e,t)}}startPress(e,t){this.isPressing=!0;let{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&eF.Wi.update(()=>r(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!eq()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:r}=this.node.getProps();r&&eF.Wi.update(()=>r(e,t))}mount(){let e=this.node.getProps(),t=eV(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=eC(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=eM(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let eY=new WeakMap,eX=new WeakMap,e0=e=>{let t=eY.get(e.target);t&&t(e)},e1=e=>{e.forEach(e0)},e3={some:0,all:1};class e2 extends e${constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:e3[n]};return function(e,t,r){let n=function({root:e,...t}){let r=e||document;eX.has(r)||eX.set(r,{});let n=eX.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(e1,{root:e,...t})),n[i]}(t);return eY.set(e,r),n.observe(e),()=>{eY.delete(e),n.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),o=t?r:n;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}function e4(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function e5(e,t,r){let n=e.getProps();return eP(n,t,void 0!==r?r:n.custom,function(e){let t={};
9return e.values.forEach((e,r)=>t[r]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,r)=>t[r]=e.getVelocity()),t}(e))}var e8=r(45487);let e7=e=>1e3*e,e6=e=>e/1e3,e9={current:!1},te=e=>Array.isArray(e)&&"number"==typeof e[0],tt=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,tr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tt([0,.65,.55,1]),circOut:tt([.55,0,1,.45]),backIn:tt([.31,.01,.66,-.59]),backOut:tt([.33,1.53,.69,.99])},tn=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function ti(e,t,r,n){if(e===t&&r===n)return eJ.Z;let i=t=>(function(e,t,r,n,i){let o,s;let a=0;do(o=tn(s=t+(r-t)/2,n,i)-e)>0?r=s:t=s;while(Math.abs(o)>1e-7&&++a<12);return s})(t,0,1,e,r);return e=>0===e||1===e?e:tn(i(e),t,n)}let to=ti(.42,0,1,1),ts=ti(0,0,.58,1),ta=ti(.42,0,.58,1),tu=e=>Array.isArray(e)&&"number"!=typeof e[0],tc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tl=e=>t=>1-e(1-t),th=e=>1-Math.sin(Math.acos(e)),tf=tl(th),tp=tc(th),td=ti(.33,1.53,.69,.99),tm=tl(td),tv=tc(tm),ty={linear:eJ.Z,easeIn:to,easeInOut:ta,easeOut:ts,circIn:th,circInOut:tp,circOut:tf,backIn:tm,backInOut:tv,backOut:td,anticipate:e=>(e*=2)<1?.5*tm(e):.5*(2-Math.pow(2,-10*(e-1)))},tg=e=>{if(Array.isArray(e)){(0,e8.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return ti(t,r,n,i)}return"string"==typeof e?((0,e8.k)(void 0!==ty[e],`Invalid easing type '${e}'`),ty[e]):e},tb=(e,t)=>r=>!!(J(r)&&G.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),tx=(e,t,r)=>n=>{if(!J(n))return n;let[i,o,s,a]=n.match(Q);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},tw=e=>B(0,255,e),tP={...U,transform:e=>Math.round(tw(e))},tS={test:tb("rgb","red"),parse:tx("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+tP.transform(e)+", "+tP.transform(t)+", "+tP.transform(r)+", "+W(q.transform(n))+")"},tR={test:tb("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:tS.transform},tO={test:tb("hsl","hue"),parse:tx("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Y.transform(W(t))+", "+Y.transform(W(r))+", "+W(q.transform(n))+")"},tj={test:e=>tS.test(e)||tR.test(e)||tO.test(e),parse:e=>tS.test(e)?tS.parse(e):tO.test(e)?tO.parse(e):tR.parse(e),transform:e=>J(e)?e:e.hasOwnProperty("red")?tS.transform(e):tO.transform(e)},tT=(e,t,r)=>-r*e+r*t+e;function tE(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}let tF=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},t_=[tR,tS,tO],tA=e=>t_.find(t=>t.test(e));function tC(e){let t=tA(e);(0,e8.k)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===tO&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,s=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,a=2*r-n;i=tE(a,n,e+1/3),o=tE(a,n,e),s=tE(a,n,e-1/3)}else i=o=s=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:n}}(r)),r}let tk=(e,t)=>{let r=tC(e),n=tC(t),i={...r};return e=>(i.red=tF(r.red,n.red,e),i.green=tF(r.green,n.green,e),i.blue=tF(r.blue,n.blue,e),i.alpha=tT(r.alpha,n.alpha,e),tS.transform(i))}
9,tD={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:eJ.Z},tN={regex:z,countKey:"Colors",token:"${c}",parse:tj.parse},tV={regex:Q,countKey:"Numbers",token:"${n}",parse:U.parse};function tI(e,{regex:t,countKey:r,token:n,parse:i}){let o=e.tokenised.match(t);o&&(e["num"+r]=o.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...o.map(i)))}function tM(e){let t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&tI(r,tD),tI(r,tN),tI(r,tV),r}function tL(e){return tM(e).values}function tH(e){let{values:t,numColors:r,numVars:n,tokenised:i}=tM(e),o=t.length;return e=>{let t=i;for(let i=0;i<o;i++)t=i<n?t.replace(tD.token,e[i]):i<n+r?t.replace(tN.token,tj.transform(e[i])):t.replace(tV.token,W(e[i]));return t}}let tB=e=>"number"==typeof e?0:e,tU={test:function(e){var t,r;return isNaN(e)&&J(e)&&((null===(t=e.match(Q))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(z))||void 0===r?void 0:r.length)||0)>0},parse:tL,createTransformer:tH,getAnimatableNone:function(e){let t=tL(e);return tH(e)(t.map(tB))}},tq=(e,t)=>r=>`${r>0?t:e}`;function t$(e,t){return"number"==typeof e?r=>tT(e,t,r):tj.test(e)?tk(e,t):e.startsWith("var(")?tq(e,t):tz(e,t)}let tW=(e,t)=>{let r=[...e],n=r.length,i=e.map((e,r)=>t$(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}},tQ=(e,t)=>{let r={...e,...t},n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=t$(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}},tz=(e,t)=>{let r=tU.createTransformer(t),n=tM(e),i=tM(t);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?eM(tW(n.values,i.values),r):((0,e8.K)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),tq(e,t))},tG=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n},tJ=(e,t)=>r=>tT(e,t,r);function tZ(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;if((0,e8.k)(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,r){let n=[],i=r||function(e){if("number"==typeof e);else if("string"==typeof e)return tj.test(e)?tk:tz;else if(Array.isArray(e))return tW;else if("object"==typeof e)return tQ;return tJ}(e[0]),o=e.length-1;for(let r=0;r<o;r++){let o=i(e[r],e[r+1]);t&&(o=eM(Array.isArray(t)?t[r]||eJ.Z:t,o)),n.push(o)}return n}(t,n,i),a=s.length,u=t=>{let r=0;if(a>1)for(;r<e.length-2&&!(t<e[r+1]);r++);let n=tG(e[r],e[r+1],t);return s[r](n)};return r?t=>u(B(e[0],e[o-1],t)):u}function tK({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){let i=tu(n)?n.map(tg):tg(n),o={done:!1,value:t[0]},s=tZ((r&&r.length===t.length?r:function(e){let t=[0];return function(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let i=tG(0,t,n);e.push(tT(r,1,i))}}(t,e.length-1),t}(t)).map(t=>t*e),t,{ease:Array.isArray(i)?i:t.map(()=>i||ta).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}function tY(e,t,r){var n,i;let o=Math.max(t-5,0);return n=r-e(o),(i=t-o)?1e3/i*n:0}function tX(e,t){return e*Math.sqrt(1-t*t)}let t0=["duration","bounce"],t1=["stiffness","damping","mass"];function t3(e,t){return t.some(t=>void 0!==e[t])}function t2({keyframes:e,restDelta:t,restSpeed:r,...n}){let i;let o=e[0],s=e[e.length-1],a={done:!1,value:o},{stiffness:u,damping:c,mass:l,duration:h,velocity:f,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!t3(e,t1)&&t3(e,t0)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;(0,e8.K)(e<=e7(10),"Spring duration must be 10 seconds or less");let s=1-t;s=B(.05,1,s),e=B(.01,10,e6(e)),s<1?(i=t=>{let n=t*s,i=n*e;return .001-(n-r)/tX(t,s)*Math.exp(-i)},o=t=>{let n=t*s*e,o=Math.pow(s,2)*Math.pow(t,2)*e,a=tX(Math.pow(t,2),s);return(n*r+r-o)*Math.exp(-n)*(-i(t)+.001>0?-1:1)/a}):(i=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),o=t=>e*e*(r-t)*Math.exp(-t*e));let a=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,o,5/e);if(e=e7(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(a,2)*n;return{stiffness:t,damping:2*s*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...r,mass:1}).isResolvedFromDuration=!0}return t}({...n,velocity:-e6(n.velocity||0)}),d=f||0,m=c/(2*Math.sqrt(u*l)),v=s-o,y=e6(Math.sqrt(u/l)),g=5>Math.abs(v);if(r||(r=g?.01:2),t||(t=g?.005:.5),m<1){let e=tX(y,m);i=t=>s-Math.exp(-m*y*t)*((d+m*y*v)/e*Math.sin(e*t)+v*Math.cos(e*t))}else if(1===m)i=e=>s-Math.exp(-y*e)*(v+(d+y*v)*e);else{let e=y*Math.sqrt(m*m-1);i=t=>{let r=Math.exp(-m*y*t),n=Math.min(e*t,300);return s-r*((d+m*y*v)*Math.sinh(n)+e*v*Math.cosh(n))/e}}
9return{calculatedDuration:p&&h||null,next:e=>{let n=i(e);if(p)a.done=e>=h;else{let o=d;0!==e&&(o=m<1?tY(i,e,n):0);let u=Math.abs(o)<=r,c=Math.abs(s-n)<=t;a.done=u&&c}return a.value=a.done?s:n,a}}}function t4({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:u,restDelta:c=.5,restSpeed:l}){let h,f;let p=e[0],d={done:!1,value:p},m=e=>void 0!==a&&e<a||void 0!==u&&e>u,v=e=>void 0===a?u:void 0===u?a:Math.abs(a-e)<Math.abs(u-e)?a:u,y=r*t,g=p+y,b=void 0===s?g:s(g);b!==g&&(y=b-p);let x=e=>-y*Math.exp(-e/n),w=e=>b+x(e),P=e=>{let t=x(e),r=w(e);d.done=Math.abs(t)<=c,d.value=d.done?b:r},S=e=>{m(d.value)&&(h=e,f=t2({keyframes:[d.value,v(d.value)],velocity:tY(w,e,d.value),damping:i,stiffness:o,restDelta:c,restSpeed:l}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==h||(t=!0,P(e),S(e)),void 0!==h&&e>h)?f.next(e-h):(t||P(e),d)}}}let t5=e=>{let t=({timestamp:t})=>e(t);return{start:()=>eF.Wi.update(t,!0),stop:()=>(0,eF.Pn)(t),now:()=>eF.frameData.isProcessing?eF.frameData.timestamp:performance.now()}};function t8(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}let t7={decay:t4,inertia:t4,tween:tK,keyframes:tK,spring:t2};function t6({autoplay:e=!0,delay:t=0,driver:r=t5,keyframes:n,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:u,onStop:c,onComplete:l,onUpdate:h,...f}){let p,d,m,v,y,g=1,b=!1,x=()=>{d=new Promise(e=>{p=e})};x();let w=t7[i]||tK;w!==tK&&"number"!=typeof n[0]&&(v=tZ([0,100],n,{clamp:!1}),n=[0,100]);let P=w({...f,keyframes:n});"mirror"===a&&(y=w({...f,keyframes:[...n].reverse(),velocity:-(f.velocity||0)}));let S="idle",R=null,O=null,j=null;null===P.calculatedDuration&&o&&(P.calculatedDuration=t8(P));let{calculatedDuration:T}=P,E=1/0,F=1/0;null!==T&&(F=(E=T+s)*(o+1)-s);let _=0,A=e=>{if(null===O)return;g>0&&(O=Math.min(O,e)),g<0&&(O=Math.min(e-F/g,O));let r=(_=null!==R?R:Math.round(e-O)*g)-t*(g>=0?1:-1),i=g>=0?r<0:r>F;_=Math.max(r,0),"finished"===S&&null===R&&(_=F);let u=_,c=P;if(o){let e=Math.min(_,F)/E,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,o+1))%2&&("reverse"===a?(r=1-r,s&&(r-=s/E)):"mirror"===a&&(c=y)),u=B(0,1,r)*E}let l=i?{done:!1,value:n[0]}:c.next(u);v&&(l.value=v(l.value));let{done:f}=l;i||null===T||(f=g>=0?_>=F:_<=0);let p=null===R&&("finished"===S||"running"===S&&f);return h&&h(l.value),p&&D(),l},C=()=>{m&&m.stop(),m=void 0},k=()=>{S="idle",C(),p(),x(),O=j=null},D=()=>{S="finished",l&&l(),C(),p()},N=()=>{if(b)return;m||(m=r(A));let e=m.now();u&&u(),null!==R?O=e-R:O&&"finished"!==S||(O=e),"finished"===S&&x(),j=O,R=null,S="running",m.start()};e&&N();let V={then:(e,t)=>d.then(e,t),get time(){return e6(_)},set time(newTime){_=newTime=e7(newTime),null===R&&m&&0!==g?O=m.now()-newTime/g:R=newTime},get duration(){return e6(null===P.calculatedDuration?t8(P):P.calculatedDuration)},get speed(){return g},set speed(newSpeed){if(newSpeed===g||!m)return;g=newSpeed,V.time=e6(_)},get state(){return S},play:N,pause:()=>{S="paused",R=_},stop:()=>{b=!0,"idle"!==S&&(S="idle",c&&c(),k())},cancel:()=>{null!==j&&A(j),k()},complete:()=>{S="finished"},sample:e=>(O=0,A(e))};return V}let t9=(o=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===n&&(n=o()),n)),re=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),rt=(e,t)=>"spring"===t.type||"backgroundColor"===e||!function e(t){return!!(!t||"string"==typeof t&&tr[t]||te(t)||Array.isArray(t)&&t.every(e))}(t.ease),rr={type:"spring",stiffness:500,damping:25,restSpeed:10},rn=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),ri={type:"keyframes",duration:.8},ro={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rs=(e,{keyframes:t})=>t.length>2?ri:C.has(e)?e.startsWith("scale")?rn(t[1]):rr:ro,ra=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tU.test(t)||"0"===t)&&!t.startsWith("url(")),ru=new Set(["brightness","contrast","saturate","opacity"]);function rc(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(Q)||[];if(!n)return e;let i=r.replace(n,""),o=ru.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}let rl=/([a-z-]*)\(.*?\)/g,rh={...tU,getAnimatableNone:e=>{let t=e.match(rl);return t?t.map(rc).join(" "):e}},rf={...ei,color:tj,backgroundColor:tj,outlineColor:tj,fill:tj,stroke:tj,borderColor:tj,borderTopColor:tj,borderRightColor:tj,borderBottomColor:tj,borderLeftColor:tj,filter:rh,WebkitFilter:rh},rp=e=>rf[e];function rd(e,t){let r=rp(e);return r!==rh&&(r=tU),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let rm=e=>/^0[^.\s]+$/.test(e);function rv(e,t){return e[t]||e.default||e}let ry={skipAnimations:!1},rg=(e,t,r,n={})=>i=>{let o=rv(n,e)||{},s=o.delay||n.delay||0,{elapsed:a=0}=n;a-=e7(s);let u=function(e,t,r,n){let i,o;let s=ra(t,r);i=Array.isArray(r)?[...r]:[null,r];let a=void 0!==n.from?n.from:e.get(),u=[];for(let e=0;e<i.length;e++){var c;null===i[e]&&(i[e]=0===e?a:i[e-1]),("number"==typeof(c=i[e])?0===c:null!==c?"none"===c||"0"===c||rm(c):void 0)&&u.push(e),"string"==typeof i[e]&&"none"!==i[e]&&"0"!==i[e]&&(o=i[e])}if(s&&u.length&&o)for(let e=0;e<u.length;e++)i[u[e]]=rd(t,o);return i}(t,e,r,o),c=u[0],l=u[u.length-1],h=ra(e,c),f=ra(e,l);(0,e8.K)(h===f,`You are trying to animate ${e} from "${c}" to "${l}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${l} via the \`style\` property.`);let p={keyframes:u,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:u,elapsed:c,...l}){return!!Object.keys(l).length}(o)&&(p={...p,...rs(e,p)}),p.duration&&(p.duration=e7(p.duration)),p.repeatDelay&&(p.repeatDelay=e7(p.repeatDelay)),!h||!f||e9.current||!1===o.type||ry.skipAnimations)return function({keyframes:e,delay:t,onUpdate:r,onComplete:n}){let i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:eJ.Z,pause:eJ.Z,stop:eJ.Z,then:e=>(e(),Promise.resolve()),cancel:eJ.Z,complete:eJ.Z});return t?t6({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}(e9.current?{...p,delay:0}:p);if(!n.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUp
9date){let r=function(e,t,{onUpdate:r,onComplete:n,...i}){let o,s;if(!(t9()&&re.has(t)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;let a=!1,u=!1,c=()=>{s=new Promise(e=>{o=e})};c();let{keyframes:l,duration:h=300,ease:f,times:p}=i;if(rt(t,i)){let e=t6({...i,repeat:0,delay:0}),t={done:!1,value:l[0]},r=[],n=0;for(;!t.done&&n<2e4;)t=e.sample(n),r.push(t.value),n+=10;p=void 0,l=r,h=n-10,f="linear"}let d=function(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:u}={}){let c={[t]:r};u&&(c.offset=u);let l=function e(t){if(t)return te(t)?tt(t):Array.isArray(t)?t.map(e):tr[t]}(a);return Array.isArray(l)&&(c.easing=l),e.animate(c,{delay:n,duration:i,easing:Array.isArray(l)?"linear":l,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(e.owner.current,t,l,{...i,duration:h,ease:f,times:p}),m=()=>{u=!1,d.cancel()},v=()=>{u=!0,eF.Wi.update(m),o(),c()};return d.onfinish=()=>{u||(e.set(function(e,{repeat:t,repeatType:r="loop"}){let n=t&&"loop"!==r&&t%2==1?0:e.length-1;return e[n]}(l,i)),n&&n(),v())},{then:(e,t)=>s.then(e,t),attachTimeline:e=>(d.timeline=e,d.onfinish=null,eJ.Z),get time(){return e6(d.currentTime||0)},set time(newTime){d.currentTime=e7(newTime)},get speed(){return d.playbackRate},set speed(newSpeed){d.playbackRate=newSpeed},get duration(){return e6(h)},play:()=>{a||(d.play(),(0,eF.Pn)(m))},pause:()=>d.pause(),stop:()=>{if(a=!0,"idle"===d.playState)return;let{currentTime:t}=d;if(t){let r=t6({...i,autoplay:!1});e.setWithVelocity(r.sample(t-10).value,r.sample(t).value,10)}v()},complete:()=>{u||d.finish()},cancel:v}}(t,e,p);if(r)return r}return t6(p)};function rb(e){return!!(D(e)&&e.add)}let rx=e=>/^\-?\d*\.?\d+$/.test(e);function rw(e,t){-1===e.indexOf(t)&&e.push(t)}function rP(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}class rS{constructor(){this.subscriptions=[]}add(e){return rw(this.subscriptions,e),()=>rP(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(e,t,r)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let rR=e=>!isNaN(parseFloat(e)),rO={current:void 0};class rj{constructor(e,t={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:r,timestamp:n}=eF.frameData;this.lastUpdated!==n&&(this.timeDelta=r,this.lastUpdated=n,eF.Wi.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>eF.Wi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=rR(this.current),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new rS);let r=this.events[e].add(t);return"change"===e?()=>{r(),eF.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return rO.current&&rO.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?1e3/t*e:0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function rT(e,t){return new rj(e,t)}let rE=e=>t=>t.test(e),rF=[U,X,Y,K,et,ee,{test:e=>"auto"===e,parse:e=>e}],r_=e=>rF.find(rE(e)),rA=[...rF,tj,tU],rC=e=>rA.find(rE(e));function rk(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t),u=e.getValue("willChange");n&&(o=n);let c=[],l=i&&e.animationState&&e.animationState.getState()[i];for(let t in a){let n=e.getValue(t),i=a[t];if(!n||void 0===i||l&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(l,t))continue;let s={delay:r,elapsed:0,...rv(o||{},t)};if(window.HandoffAppearAnimations){let r=e.getProps()[p];if(r){let e=window.HandoffAppearAnimations(r,t,n,eF.Wi);null!==e&&(s.elapsed=e,s.isHandoff=!0)}}let h=!s.isHandoff&&!function(e,t){let r=e.get();if(!Array.isArray(t))return r!==t;for(let e=0;e<t.length;e++)if(t[e]!==r)return!0}(n,i);if("spring"===s.type&&(n.getVelocity()||s.velocity)&&(h=!1),n.animation&&(h=!1),h)continue;n.start(rg(t,n,i,e.shouldReduceMotion&&C.has(t)?{type:!1}:s));let f=n.animation;rb(u)&&(u.add(t),f.then(()=>u.remove(t))),c.push(f)}return s&&Promise.all(c).then(()=>{s&&function(e,t){let r=e5(e,t),{transitionEnd:n={},transition:i={},...o}=r?e.makeTargetAnimatable(r,!1):{};for(let t in o={...o,...n}){let r=ej(o[t]);e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,rT(r))}}(e,s)}),c}function rD(e,t,r={}){let n=e5(e,t,r.custom),{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);let o=n?()=>Promise.all(rk(e,n,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(e,t,r=0,n=0,i=1,o){let s=[],a=(e.variantChildren.size-1)*n,u=1===i?(e=0)=>e*n:(e=0)=>a-e*n;
9return Array.from(e.variantChildren).sort(rN).forEach((e,n)=>{e.notify("AnimationStart",t),s.push(rD(e,t,{...o,delay:r+u(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,o+n,s,a,r)}:()=>Promise.resolve(),{when:a}=i;if(!a)return Promise.all([o(),s(r.delay)]);{let[e,t]="beforeChildren"===a?[o,s]:[s,o];return e().then(()=>t())}}function rN(e,t){return e.sortNodePosition(t)}let rV=[...y].reverse(),rI=y.length;function rM(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class rL extends e${constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>rD(e,t,r)));else if("string"==typeof t)n=rD(e,t,r);else{let i="function"==typeof t?e5(e,t,r.custom):t;n=Promise.all(rk(e,i,r))}return n.then(()=>e.notify("AnimationComplete",t))})(e,t,r))),r={animate:rM(!0),whileInView:rM(),whileHover:rM(),whileTap:rM(),whileDrag:rM(),whileFocus:rM(),exit:rM()},n=!0,i=(t,r)=>{let n=e5(e,r);if(n){let{transition:e,transitionEnd:r,...i}=n;t={...t,...i,...r}}return t};function o(o,s){let a=e.getProps(),u=e.getVariantContext(!0)||{},c=[],l=new Set,h={},f=1/0;for(let t=0;t<rI;t++){var p;let d=rV[t],y=r[d],g=void 0!==a[d]?a[d]:u[d],b=m(g),x=d===s?y.isActive:null;!1===x&&(f=t);let w=g===u[d]&&g!==a[d]&&b;if(w&&n&&e.manuallyAnimateOnMount&&(w=!1),y.protectedKeys={...h},!y.isActive&&null===x||!g&&!y.prevProp||v(g)||"boolean"==typeof g)continue;let P=(p=y.prevProp,("string"==typeof g?g!==p:!!Array.isArray(g)&&!e4(g,p))||d===s&&y.isActive&&!w&&b||t>f&&b),S=!1,R=Array.isArray(g)?g:[g],O=R.reduce(i,{});!1===x&&(O={});let{prevResolvedValues:j={}}=y,T={...j,...O},E=e=>{P=!0,l.has(e)&&(S=!0,l.delete(e)),y.needsAnimating[e]=!0};for(let e in T){let t=O[e],r=j[e];if(!h.hasOwnProperty(e))(eR(t)&&eR(r)?e4(t,r):t===r)?void 0!==t&&l.has(e)?E(e):y.protectedKeys[e]=!0:void 0!==t?E(e):l.add(e)}y.prevProp=g,y.prevResolvedValues=O,y.isActive&&(h={...h,...O}),n&&e.blockInitialAnimation&&(P=!1),P&&(!w||S)&&c.push(...R.map(e=>({animation:e,options:{type:d,...o}})))}if(l.size){let t={};l.forEach(r=>{let n=e.getBaseTarget(r);void 0!==n&&(t[r]=n)}),c.push({animation:t})}let d=!!c.length;return n&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(d=!1),n=!1,d?t(c):Promise.resolve()}return{animateChanges:o,setActive:function(t,n,i){var s;if(r[t].isActive===n)return Promise.resolve();null===(s=e.variantChildren)||void 0===s||s.forEach(e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;let a=o(i,t);for(let e in r)r[e].protectedKeys={};return a},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),v(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}let rH=0;class rB extends e${constructor(){super(...arguments),this.id=rH++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t,custom:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let i=this.node.animationState.setActive("exit",!e,{custom:null!=r?r:this.node.getProps().custom});t&&!e&&i.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}let rU=(e,t)=>Math.abs(e-t);class rq{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=rQ(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,i=(e=r.offset,t={x:0,y:0},Math.sqrt(rU(e.x,t.x)**2+rU(e.y,t.y)**2)>=3);if(!n&&!i)return;let{point:o}=r,{timestamp:s}=eF.frameData;this.history.push({...o,timestamp:s});let{onStart:a,onMove:u}=this.handlers;n||(a&&a(this.lastMoveEvent,r),this.startEvent=this.lastMoveEvent),u&&u(this.lastMoveEvent,r)},this.handlePointerMove=(e,t)=>
9{this.lastMoveEvent=e,this.lastMoveEventInfo=r$(t,this.transformPagePoint),eF.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=rQ("pointercancel"===e.type?this.lastMoveEventInfo:r$(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,o),n&&n(e,o)},!ek(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;let o=r$(eD(e),this.transformPagePoint),{point:s}=o,{timestamp:a}=eF.frameData;this.history=[{...s,timestamp:a}];let{onSessionStart:u}=t;u&&u(e,rQ(o,this.history)),this.removeListeners=eM(eV(this.contextWindow,"pointermove",this.handlePointerMove),eV(this.contextWindow,"pointerup",this.handlePointerUp),eV(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,eF.Pn)(this.updatePoint)}}function r$(e,t){return t?{point:t(e.point)}:e}function rW(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rQ({point:e},t){return{point:e,delta:rW(e,rz(t)),offset:rW(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=rz(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>e7(.1)));)r--;if(!n)return{x:0,y:0};let o=e6(i.timestamp-n.timestamp);if(0===o)return{x:0,y:0};let s={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,0)}}function rz(e){return e[e.length-1]}function rG(e){return e.max-e.min}function rJ(e,t=0,r=.01){return Math.abs(e-t)<=r}function rZ(e,t,r,n=.5){e.origin=n,e.originPoint=tT(t.min,t.max,e.origin),e.scale=rG(r)/rG(t),(rJ(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=tT(r.min,r.max,e.origin)-e.originPoint,(rJ(e.translate)||isNaN(e.translate))&&(e.translate=0)}function rK(e,t,r,n){rZ(e.x,t.x,r.x,n?n.originX:void 0),rZ(e.y,t.y,r.y,n?n.originY:void 0)}function rY(e,t,r){e.min=r.min+t.min,e.max=e.min+rG(t)}function rX(e,t,r){e.min=t.min-r.min,e.max=e.min+rG(t)}function r0(e,t,r){rX(e.x,t.x,r.x),rX(e.y,t.y,r.y)}function r1(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function r3(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function r2(e,t,r){return{min:r4(e,t),max:r4(e,r)}}function r4(e,t){return"number"==typeof e?e:e[t]||0}let r5=()=>({translate:0,scale:1,origin:0,originPoint:0}),r8=()=>({x:r5(),y:r5()}),r7=()=>({min:0,max:0}),r6=()=>({x:r7(),y:r7()});function r9(e){return[e("x"),e("y")]}function ne({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function nt(e){return void 0===e||1===e}function nr({scale:e,scaleX:t,scaleY:r}){return!nt(e)||!nt(t)||!nt(r)}function nn(e){return nr(e)||ni(e)||e.z||e.rotate||e.rotateX||e.rotateY}function ni(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function no(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function ns(e,t=0,r=1,n,i){e.min=no(e.min,t,r,n,i),e.max=no(e.max,t,r,n,i)}function na(e,{x:t,y:r}){ns(e.x,t.translate,t.scale,t.originPoint),ns(e.y,r.translate,r.scale,r.originPoint)}function nu(e){return Number.isInteger(e)?e:e>1.0000000000001||e<.999999999999?e:1}function nc(e,t){e.min=e.min+t,e.max=e.max+t}function nl(e,t,[r,n,i]){let o=void 0!==t[i]?t[i]:.5,s=tT(e.min,e.max,o);ns(e,t[r],t[n],s,t.scale)}let nh=["x","scaleX","originX"],nf=["y","scaleY","originY"];function np(e,t){nl(e.x,t,nh),nl(e.y,t,nf)}function nd(e,t){return ne(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}let nm=({current:e})=>e?e.ownerDocument.defaultView:null,nv=new WeakMap;class ny{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=r6(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new rq(e,{onSessionStart:e=>{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(eD(e,"page").point)},onStart:(e,t)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=eU(r),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),r9(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Y.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[e];if(n){let e=rG(n);t=parseFloat(t)/100*e}}}this.originPoint[e]=t}),i&&eF.Wi.update(()=>i(e,t),!1,!0);let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>
9{let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openGlobalLock)return;let{offset:s}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>r9(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:nm(this.visualElement)})}stop(e,t){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:n}=t;this.startAnimation(n);let{onDragEnd:i}=this.getProps();i&&eF.Wi.update(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!ng(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?tT(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?tT(r,e,n.max):Math.min(e,r)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&d(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=function(e,{top:t,left:r,bottom:n,right:i}){return{x:r1(e.x,r,i),y:r1(e.y,t,n)}}(n.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:r2(e,"left","right"),y:r2(e,"top","bottom")}}(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&r9(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!d(t))return!1;let n=t.current;(0,e8.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,r){let n=nd(e,r),{scroll:i}=t;return i&&(nc(n.x,i.offset.x),nc(n.y,i.offset.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),s={x:r3((e=i.layout.layoutBox).x,o.x),y:r3(e.y,o.y)};if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=ne(e))}return s}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(r9(s=>{if(!ng(s,t,this.currentDirection))return;let u=a&&a[s]||{};o&&(u={min:0,max:0});let c={type:"inertia",velocity:r?e[s]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(s,c)})).then(s)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return r.start(rg(e,r,0,t))}stopAnimation(){r9(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){r9(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){let t="_drag"+e.toUpperCase(),r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){r9(t=>{let{drag:r}=this.getProps();if(!ng(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:o}=n.layout.layoutBox[t];i.set(e[t]-tT(r,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!d(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};r9(e=>{let t=this.getAxisMotionValue(e);if(t){let r=t.get();n[e]=function(e,t){let r=.5,n=rG(e),i=rG(t);return i>n?r=tG(t.min,t.max-n,e.min):n>i&&(r=tG(e.min,e.max-i,t.min)),B(0,1,r)}({min:r,max:r},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),r9(t=>
9{if(!ng(t,e,null))return;let r=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];r.set(tT(i,o,n[t]))})}addListeners(){if(!this.visualElement.current)return;nv.set(this.visualElement,this);let e=eV(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();d(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),t();let i=eC(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(r9(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),n(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function ng(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}class nb extends e${constructor(e){super(e),this.removeGroupControls=eJ.Z,this.removeListeners=eJ.Z,this.controls=new ny(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eJ.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let nx=e=>(t,r)=>{e&&eF.Wi.update(()=>e(t,r))};class nw extends e${constructor(){super(...arguments),this.removePointerDownListener=eJ.Z}onPointerDown(e){this.session=new rq(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nm(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:nx(e),onStart:nx(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&eF.Wi.update(()=>n(e,t))}}}mount(){this.removePointerDownListener=eV(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let nP={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let nR={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!X.test(e))return e;e=parseFloat(e)}let r=nS(e,t.target.x),n=nS(e,t.target.y);return`${r}% ${n}%`}};class nO extends s.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;Object.assign(_,nT),i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),nP.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,n||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||eF.Wi.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nj(e){let[t,r]=function(){let e=(0,s.useContext)(c.O);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,i=(0,s.useId)();return(0,s.useEffect)(()=>n(i),[]),!t&&r?[!1,()=>r&&r(i)]:[!0]}(),n=(0,s.useContext)(O.p);return s.createElement(nO,{...e,layoutGroup:n,switchLayoutGroup:(0,s.useContext)(j),isPresent:t,safeToRemove:r})}let nT={borderRadius:{...nR,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nR,borderTopRightRadius:nR,borderBottomLeftRadius:nR,borderBottomRightRadius:nR,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let n=tU.parse(e);if(n.length>5)return e;let i=tU.createTransformer(e),o="number"!=typeof n[0]?1:0,s=r.x.scale*t.x,a=r.y.scale*t.y;n[0+o]/=s,n[1+o]/=a;let u=tT(s,a,.5);return"number"==typeof n[2+o]&&(n[2+o]/=u),"number"==typeof n[3+o]&&(n[3+o]/=u),i(n)}}},nE=["TopLeft","TopRight","BottomLeft","BottomRight"],nF=nE.length,n_=e=>"string"==typeof e?parseFloat(e):e,nA=e=>"number"==typeof e||X.test(e);function nC(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let nk=nN(0,.5,tf),nD=nN(.5,.95,eJ.Z);function nN(e,t,r){return n=>n<e?0:n>t?1:r(tG(e,t,n))}function nV(e,t){e.min=t.min,e.max=t.max}function nI(e,t){nV(e.x,t.x),nV(e.y,t.y)}function nM(e,t,r,n,i){return e-=t,e=n+1/r*(e-n),void 0!==i&&(e=n+1/i*(e-n)),e}function nL(e,t,[r,n,i],o,s){!function(e,t=0,r=1,n=.5,i,o=e,s=e){if(Y.test(t)&&(t=parseFloat(t),t=tT(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=tT(o.min,o.max,n);e===o&&(a-=t),e.min=nM(e.min,t,r,a,i),e.max=nM(e.max,t,r,a,i)}(e,t[r],t[n],t[i],t.scale,o,s)}let nH=["x","scaleX","originX"],nB=["y","scaleY","originY"];function nU(e,t,r,n){nL(e.x,t,nH,r?r.x:void 0,n?n.x:void 0),nL(e.y,t,nB,r?r.y:void 0,n?n.y:void 0)}function nq(e){return 0===e.translate&&1===e.scale}function n$(e){return nq(e.x)&&nq(e.y)}function nW(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function nQ(e){return rG(e.x)/rG(e.y)}class nz{constructor(){this.members=[]}add(e){rw(this.members,e),e.scheduleRender()}remove(e){if(rP(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;!1===n&&r.hide()}}
9exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function nG(e,t,r){let n="",i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{rotate:e,rotateX:t,rotateY:i}=r;e&&(n+=`rotate(${e}deg) `),t&&(n+=`rotateX(${t}deg) `),i&&(n+=`rotateY(${i}deg) `)}let s=e.x.scale*t.x,a=e.y.scale*t.y;return(1!==s||1!==a)&&(n+=`scale(${s}, ${a})`),n||"none"}let nJ=(e,t)=>e.depth-t.depth;class nZ{constructor(){this.children=[],this.isDirty=!1}add(e){rw(this.children,e),this.isDirty=!0}remove(e){rP(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(nJ),this.isDirty=!1,this.children.forEach(e)}}let nK=["","X","Y","Z"],nY={visibility:"hidden"},nX=0,n0={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function n1({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e={},r=null==t?void 0:t()){this.id=nX++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,n0.totalNodes=n0.resolvedTargetDeltas=n0.recalculatedProjection=0,this.nodes.forEach(n4),this.nodes.forEach(it),this.nodes.forEach(ir),this.nodes.forEach(n5),window.MotionDebug&&window.MotionDebug.record(n0)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new nZ)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new rS),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:n,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(i||n)&&(this.isLayoutDirty=!0),e){let r;let n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){let r=performance.now(),n=({timestamp:t})=>{let i=t-r;i>=250&&((0,eF.Pn)(n),e(i-250))};return eF.Wi.read(n,!0),()=>(0,eF.Pn)(n)}(n,0),nP.hasAnimatedSinceResize&&(nP.hasAnimatedSinceResize=!1,this.nodes.forEach(ie))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&o&&(n||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||ic,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=o.getProps(),u=!this.targetLayout||!nW(this.targetLayout,n)||r,c=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);let t={...rv(i,"layout"),onPlay:s,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||ie(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,eF.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
9h(ii),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(n7);return}this.isUpdating||this.nodes.forEach(n6),this.isUpdating=!1,this.nodes.forEach(n9),this.nodes.forEach(n3),this.nodes.forEach(n2),this.clearAllSnapshots();let e=performance.now();eF.frameData.delta=B(0,1e3/60,e-eF.frameData.timestamp),eF.frameData.timestamp=e,eF.frameData.isProcessing=!0,eF.S6.update.process(eF.frameData),eF.S6.preRender.process(eF.frameData),eF.S6.render.process(eF.frameData),eF.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(n8),this.sharedNodes.forEach(io)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eF.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eF.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=r6(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!n$(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;e&&(t||nn(this.latestValues)||o)&&(i(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),n=this.removeElementScroll(r);return e&&(n=this.removeTransform(n)),ip((t=n).x),ip(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return r6();let t=e.measureViewportBox(),{scroll:r}=this.root;return r&&(nc(t.x,r.offset.x),nc(t.y,r.offset.y)),t}removeElementScroll(e){let t=r6();nI(t,e);for(let r=0;r<this.path.length;r++){let n=this.path[r],{scroll:i,options:o}=n;if(n!==this.root&&i&&o.layoutScroll){if(i.isRoot){nI(t,e);let{scroll:r}=this.root;r&&(nc(t.x,-r.offset.x),nc(t.y,-r.offset.y))}nc(t.x,i.offset.x),nc(t.y,i.offset.y)}}return t}applyTransform(e,t=!1){let r=r6();nI(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&np(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),nn(n.latestValues)&&np(r,n.latestValues)}return nn(this.latestValues)&&np(r,this.latestValues),r}removeTransform(e){let t=r6();nI(t,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];if(!r.instance||!nn(r.latestValues))continue;nr(r.latestValues)&&r.updateSnapshot();let n=r6();nI(n,r.measurePageBox()),nU(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return nn(this.latestValues)&&nU(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eF.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,r,n,i;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==o;if(!(e||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:a,layoutId:u}=this.options;if(this.layout&&(a||u)){if(this.resolvedRelativeTargetAt=eF.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=r6(),this.relativeTargetOrigin=r6(),r0(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),nI(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=r6(),this.targetWithTransforms=r6()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),r=this.target,n=this.relativeTarget,i=this.relativeParent.target,rY(r.x,n.x,i.x),rY(r.y,n.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nI(this.target,this.layout.layoutBox),na(this.target,this.targetDelta)):nI(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=r6(),this.relativeTargetOrigin=r6(),r0(this.relativeTargetOrigin,this.target,e.target),nI(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}n0.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||nr(this.parent.latestValues)||ni(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),r=!!this.resumingFrom||this!==t,n=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(n=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===eF.frameData.timestamp&&(n=!1),n)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;nI(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(e,t,r,n=!1){let i,o;let s=r.length;if(s){t.x=t.y=1;for(let a=0;a<s;a++){o=(i=r[a]).projectionDelta;let s=i.instance;(!s||!s.style||"contents"!==s.style.display)&&(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&np(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,na(e,o)),n&&nn(i.latestValues)&&np(e,i.latestValues))}t.x=nu(t.x),t.y=nu(t.y)}}(this.layoutCorrected,this.treeScale,this.path,r),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox);let{target:u}=t;if(!u){this.projectionTransform&&(this.projectionDelta=r8(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=r8(),this.projectionDeltaWithTransform=r8());let c=this.projectionTransform;rK(this.projectionDelta,this.layoutCorrected,u,this.latestValues),this.projectionTransform=nG(this.projectionDelta,this.treeScale),(this.projectionTransform!==c||this.treeScale.x!==s||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",u)),n0.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){let r;let n=this.snapshot,i=n?n.latestValues:{},o={...this.latestValues},s=r8();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let a=r6(),u=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,h=!!(u&&!l&&!0===this.options.crossfade&&!this.path.some(iu));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(is(s.x,e.x,n),is(s.y,e.y,n),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,f,p,d;r0(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,d=this.relativeTargetOrigin,ia(p.x,d.x,a.x,n),ia(p.y,d.y,a.y,n),r&&(c=this.relativeTarget,f=r,c.x.min===f.x.min&&c.x.max===f.x.max&&c.y.min===f.y.min&&c.y.max===f.y.max)&&(this.isProjectionDirty=!1),r||(r=r6()),nI(r,this.relativeTarget)}u&&(this.animationValues=o,function(e,t,r,n,i,o){i?(e.opacity=tT(0,void 0!==r.opacity?r.opacity:1,nk(n)),e.opacityExit=tT(void 0!==t.opacity?t.opacity:1,0,nD(n))):o&&(e.opacity=tT(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let i=0;i<nF;i++){let o=`border${nE[i]}Radius`,s=nC(t,o),a=nC(r,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||nA(s)===nA(a)?(e[o]=Math.max(tT(n_(s),n_(a),n),0),(Y.test(a)||Y.test(s))&&(e[o]+="%")):e[o]=a)}(t.rotate||r.rotate)&&(e.rotate=tT(t.rotate||0,r.rotate||0,n))}(o,i,this.latestValues,n,h,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,eF.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eF.Wi.update(()=>{nP.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){let n=D(0)?0:rT(0);return n.start(rg("",n,1e3,r)),n.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&id(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||r6();let t=rG(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=rG(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}nI(t,r),np(t,i),rK(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
9)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nz),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.rotate||r.rotateX||r.rotateY||r.rotateZ)&&(t=!0),!t)return;let n={};for(let t=0;t<nK.length;t++){let i="rotate"+nK[t];r[i]&&(n[i]=r[i],e.setStaticValue(i,0))}for(let t in e.render(),n)e.setStaticValue(t,n[t]);e.scheduleRender()}getProjectionStyles(e){var t,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return nY;let n={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=eT(null==e?void 0:e.pointerEvents)||"",n.transform=i?i(this.latestValues,""):"none",n;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=eT(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!nn(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}let s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),n.transform=nG(this.projectionDeltaWithTransform,this.treeScale,s),i&&(n.transform=i(s,n.transform));let{x:a,y:u}=this.projectionDelta;for(let e in n.transformOrigin=`${100*a.origin}% ${100*u.origin}% 0`,o.animationValues?n.opacity=o===this?null!==(r=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:n.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,_){if(void 0===s[e])continue;let{correct:t,applyTo:r}=_[e],i="none"===n.transform?s[e]:t(s[e],o);if(r){let e=r.length;for(let t=0;t<e;t++)n[r[t]]=i}else n[e]=i}return this.options.layoutId&&(n.pointerEvents=o===this?eT(null==e?void 0:e.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(n7),this.root.sharedNodes.clear()}}}function n3(e){e.updateLayout()}function n2(e){var t;let r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:n}=e.layout,{animationType:i}=e.options,o=r.source!==e.layout.source;"size"===i?r9(e=>{let n=o?r.measuredBox[e]:r.layoutBox[e],i=rG(n);n.min=t[e].min,n.max=n.min+i}):id(i,r.layoutBox,t)&&r9(n=>{let i=o?r.measuredBox[n]:r.layoutBox[n],s=rG(t[n]);i.max=i.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+s)});let s=r8();rK(s,t,r.layoutBox);let a=r8();o?rK(a,e.applyTransform(n,!0),r.measuredBox):rK(a,t,r.layoutBox);let u=!n$(s),c=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:o}=n;if(i&&o){let s=r6();r0(s,r.layoutBox,i.layoutBox);let a=r6();r0(a,t,o.layoutBox),nW(s,a)||(c=!0),n.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:a,layoutDelta:s,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function n4(e){n0.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function n5(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function n8(e){e.clearSnapshot()}function n7(e){e.clearMeasurements()}function n6(e){e.isLayoutDirty=!1}function n9(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ie(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function it(e){e.resolveTargetDelta()}function ir(e){e.calcProjection()}function ii(e){e.resetRotation()}function io(e){e.removeLeadSnapshot()}function is(e,t,r){e.translate=tT(t.translate,0,r),e.scale=tT(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function ia(e,t,r,n){e.min=tT(t.min,r.min,n),e.max=tT(t.max,r.max,n)}function iu(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let ic={duration:.45,ease:[.4,0,.1,1]},il=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),ih=il("applewebkit/")&&!il("chrome/")?Math.round:eJ.Z;function ip(e){e.min=ih(e.min),e.max=ih(e.max)}function id(e,t,r){return"position"===e||"preserve-aspect"===e&&!rJ(nQ(t),nQ(r),.2)}let im=n1({attachResizeListener:(e,t)=>eC(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iv={current:void 0},iy=n1({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!iv.current){let e=new im({});e.mount(window),e.setOptions({layoutScroll:!0}),iv.current=e}return iv.current},resetTransform:(e,t)=>
9{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),ig=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ib(e,t,r=1){(0,e8.k)(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,i]=function(e){let t=ig.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]}(e);if(!n)return;let o=window.getComputedStyle(t).getPropertyValue(n);if(o){let e=o.trim();return rx(e)?parseFloat(e):e}return L(i)?ib(i,t,r+1):i}let ix=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),iw=e=>ix.has(e),iP=e=>Object.keys(e).some(iw),iS=e=>e===U||e===X,iR=(e,t)=>parseFloat(e.split(", ")[t]),iO=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/);if(i)return iR(i[1],t);{let t=n.match(/^matrix\((.+)\)$/);return t?iR(t[1],e):0}},ij=new Set(["x","y","z"]),iT=A.filter(e=>!ij.has(e)),iE={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:iO(4,13),y:iO(5,14)};iE.translateX=iE.x,iE.translateY=iE.y;let iF=(e,t,r)=>{let n=t.measureViewportBox(),i=getComputedStyle(t.current),{display:o}=i,s={};"none"===o&&t.setStaticValue("display",e.display||"block"),r.forEach(e=>{s[e]=iE[e](n,i)}),t.render();let a=t.measureViewportBox();return r.forEach(r=>{let n=t.getValue(r);n&&n.jump(s[r]),e[r]=iE[r](a,i)}),e},i_=(e,t,r={},n={})=>{t={...t},n={...n};let i=Object.keys(t).filter(iw),o=[],s=!1,a=[];if(i.forEach(i=>{let u;let c=e.getValue(i);if(!e.hasValue(i))return;let l=r[i],h=r_(l),f=t[i];if(eR(f)){let e=f.length,t=null===f[0]?1:0;h=r_(l=f[t]);for(let r=t;r<e&&null!==f[r];r++)u?(0,e8.k)(r_(f[r])===u,"All keyframes must be of the same type"):(u=r_(f[r]),(0,e8.k)(u===h||iS(h)&&iS(u),"Keyframes must be of the same dimension as the current value"))}else u=r_(f);if(h!==u){if(iS(h)&&iS(u)){let e=c.get();"string"==typeof e&&c.set(parseFloat(e)),"string"==typeof f?t[i]=parseFloat(f):Array.isArray(f)&&u===X&&(t[i]=f.map(parseFloat))}else(null==h?void 0:h.transform)&&(null==u?void 0:u.transform)&&(0===l||0===f)?0===l?c.set(u.transform(l)):t[i]=h.transform(f):(s||(o=function(e){let t=[];return iT.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),s=!0),a.push(i),n[i]=void 0!==n[i]?n[i]:t[i],c.jump(f))}}),!a.length)return{target:t,transitionEnd:n};{let r=a.indexOf("height")>=0?window.pageYOffset:null,i=iF(t,e,a);return o.length&&o.forEach(([t,r])=>{e.getValue(t).set(r)}),e.render(),R.j&&null!==r&&window.scrollTo({top:r}),{target:i,transitionEnd:n}}},iA=(e,t,r,n)=>{var i,o;let s=function(e,{...t},r){let n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};for(let i in r&&(r={...r}),e.values.forEach(e=>{let t=e.get();if(!L(t))return;let r=ib(t,n);r&&e.set(r)}),t){let e=t[i];if(!L(e))continue;let o=ib(e,n);o&&(t[i]=o,r||(r={}),void 0===r[i]&&(r[i]=e))}return{target:t,transitionEnd:r}}(e,t,n);return t=s.target,n=s.transitionEnd,i=t,o=n,iP(i)?i_(e,i,r,o):{target:i,transitionEnd:o}},iC={current:null},ik={current:!1},iD=new WeakMap,iN=Object.keys(S),iV=iN.length,iI=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],iM=g.length;class iL{constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>eF.Wi.render(this.render,!1,!0);let{latestValues:s,renderState:a}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=a,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=b(t),this.isVariantNode=x(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{});for(let e in c){let t=c[e];void 0!==s[e]&&D(t)&&(t.set(s[e],!1),rb(u)&&u.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,iD.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
9h((e,t)=>this.bindToMotionValue(t,e)),ik.current||function(){if(ik.current=!0,R.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>iC.current=e.matches;e.addListener(t),t()}else iC.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||iC.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in iD.delete(this.current),this.projection&&this.projection.unmount(),(0,eF.Pn)(this.notifyUpdate),(0,eF.Pn)(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){let r=C.has(e),n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eF.Wi.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),i()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},r,n,i){let o,s;for(let e=0;e<iV;e++){let r=iN[e],{isEnabled:n,Feature:i,ProjectionNode:a,MeasureLayout:u}=S[r];a&&(o=a),n(t)&&(!this.features[r]&&i&&(this.features[r]=new i(this)),u&&(s=u))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);let{layoutId:e,layout:r,drag:n,dragConstraints:s,layoutScroll:a,layoutRoot:u}=t;this.projection.setOptions({layoutId:e,layout:r,alwaysMeasureLayout:!!n||s&&d(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof r?r:"both",initialPromotionConfig:i,layoutScroll:a,layoutRoot:u})}return s}updateFeatures(){for(let e in this.features){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):r6()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<iI.length;t++){let r=iI[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){let{willChange:n}=t;for(let i in t){let o=t[i],s=r[i];if(D(o))e.addValue(i,o),rb(n)&&n.add(i);else if(D(s))e.addValue(i,rT(o,{owner:e})),rb(n)&&n.remove(i);else if(s!==o){if(e.hasValue(i)){let t=e.getValue(i);t.hasAnimated||t.set(o)}else{let t=e.getStaticValue(i);e.addValue(i,rT(void 0!==t?t:o,{owner:e}))}}}for(let n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let t={};for(let e=0;e<iM;e++){let r=g[e],n=this.props[r];(m(n)||!1===n)&&(t[r]=n)}return t}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=rT(t,{owner:this}),this.addValue(e,r)),r}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:r}=this.props,n="string"==typeof r||"object"==typeof r?null===(t=eP(this.props,r))||void 0===t?void 0:t[e]:void 0;if(r&&void 0!==n)return n;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||D(i)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new rS),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class iH extends iL{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...r},{transformValues:n},i){let o=function(e,t,r){let n={};for(let i in e){let e=function(e,t){if(t)return(t[e]||t.default||t).from}(i,t);if(void 0!==e)n[i]=e;else{let e=r.getValue(i);e&&(n[i]=e.get())}}return n}(r,e||{},this);if(n&&(t&&(t=n(t)),r&&(r=n(r)),o&&(o=n(o))),i){!function(e,t,r){var n,i;let o=Object.keys(t).filter(t=>!e.hasValue(t)),s=o.length;if(s)for(let a=0;a<s;a++){let s=o[a],u=t[s],c=null;Array.isArray(u)&&(c=u[0]),null===c&&(c=null!==(i=null!==(n=r[s])&&void 0!==n?n:e.readValue(s))&&void 0!==i?i:t[s]),null!=c&&("string"==typeof c&&(rx(c)||rm(c))?c=parseFloat(c):!rC(c)&&tU.test(u)&&(c=rd(s,u)),e.addValue(s,rT(c,{owner:e})),void 0===r[s]&&(r[s]=c),null!==c&&e.setBaseTarget(s,c))}}(this,r,o);let e=iA(this,r,o,t);t=e.transitionEnd,r=e.target}return{transition:e,transitionEnd:t,...r}}}class iB extends iH{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(C.has(t)){let e=rp(t);return e&&e.default||0}{let r=window.getComputedStyle(e),n=(M(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return nd(e,t)}build(e,t,r,n){eo(e,t,r,n.transformTemplate)}scrapeMotionValuesFromProps(e,t){return ex(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;D(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,r,n){ey(e,t,r,n)}}class iU extends iH{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(C.has(t)){let e=rp(t);return e&&e.default||0}return t=eg.has(t)?t:f(t),e.getAttribute(t)}measureInstanceViewportBox(){return r6()}scrapeMotionValuesFromProps(e,t){return ew(e,t)}
9build(e,t,r,n){ed(e,t,r,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,r,n){eb(e,t,r,n)}mount(e){this.isSVGTag=ev(e.tagName),super.mount(e)}}let iq=(e,t)=>F(e)?new iU(t,{enableHardwareAcceleration:!1}):new iB(t,{enableHardwareAcceleration:!0}),i$={animation:{Feature:rL},exit:{Feature:rB},inView:{Feature:e2},tap:{Feature:eK},focus:{Feature:ez},hover:{Feature:eQ},pan:{Feature:nw},drag:{Feature:nb,ProjectionNode:iy,MeasureLayout:nj},layout:{ProjectionNode:iy,MeasureLayout:nj}},iW=function(e){function t(t,r={}){return function({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&function(e){for(let t in e)S[t]={...S[t],...e[t]}}(e);let o=(0,s.forwardRef)(function(o,f){var v;let y;let g={...(0,s.useContext)(a),...o,layoutId:function({layoutId:e}){let t=(0,s.useContext)(O.p).id;return t&&void 0!==e?t+"-"+e:e}(o)},{isStatic:x}=g,P=function(e){let{initial:t,animate:r}=function(e,t){if(b(e)){let{initial:t,animate:r}=e;return{initial:!1===t||m(t)?t:void 0,animate:m(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,s.useContext)(u));return(0,s.useMemo)(()=>({initial:t,animate:r}),[w(t),w(r)])}(o),S=n(o,x);if(!x&&R.j){P.visualElement=function(e,t,r,n){let{visualElement:i}=(0,s.useContext)(u),o=(0,s.useContext)(h),f=(0,s.useContext)(c.O),d=(0,s.useContext)(a).reducedMotion,m=(0,s.useRef)();n=n||o.renderer,!m.current&&n&&(m.current=n(e,{visualState:t,parent:i,props:r,presenceContext:f,blockInitialAnimation:!!f&&!1===f.initial,reducedMotionConfig:d}));let v=m.current;(0,s.useInsertionEffect)(()=>{v&&v.update(r,f)});let y=(0,s.useRef)(!!(r[p]&&!window.HandoffComplete));return(0,l.L)(()=>{v&&(v.render(),y.current&&v.animationState&&v.animationState.animateChanges())}),(0,s.useEffect)(()=>{v&&(v.updateFeatures(),!y.current&&v.animationState&&v.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))}),v}(i,S,g,t);let r=(0,s.useContext)(j),n=(0,s.useContext)(h).strict;P.visualElement&&(y=P.visualElement.loadFeatures(g,n,e,r))}return s.createElement(u.Provider,{value:P},y&&P.visualElement?s.createElement(y,{visualElement:P.visualElement,...g}):null,r(i,o,(v=P.visualElement,(0,s.useCallback)(e=>{e&&S.mount&&S.mount(e),v&&(e?v.mount(e):v.unmount()),f&&("function"==typeof f?f(e):d(f)&&(f.current=e))},[v])),S,x,P.visualElement))});return o[T]=i,o}(e(t,r))}if("undefined"==typeof Proxy)return t;let r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},r,n){return{...F(e)?e_:eA,preloadedFeatures:r,useRender:function(e=!1){return(t,r,n,{latestValues:i},o)=>{let a=(F(t)?function(e,t,r,n){let i=(0,s.useMemo)(()=>{let r=em();return ed(r,t,{enableHardwareAcceleration:!1},ev(n),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};ea(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t,r){let n={},i=function(e,t,r){let n=e.style||{},i={};return ea(i,n,e),Object.assign(i,function({transformTemplate:e},t,r){return(0,s.useMemo)(()=>{let n=es();return eo(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}(e,t,r)),e.transformValues?e.transformValues(i):i}(e,t,r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n})(r,i,o,t),u={...function(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(el(i)||!0===r&&ec(i)||!t&&!ec(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"==typeof t,e),...a,ref:n},{children:c}=r,l=(0,s.useMemo)(()=>D(c)?c.get():c,[c]);return(0,s.createElement)(t,{...u,children:l})}}(t),createVisualElement:n,Component:e}})(e,t,i$,iq))},45487:function(e,t,r){"use strict";r.d(t,{K:function(){return i},k:function(){return o}});var n=r(81662);let i=n.Z,o=n.Z},11741:function(e,t,r){"use strict";r.d(t,{j:function(){return n}});let n="undefined"!=typeof document},81662:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=e=>e},96681:function(e,t,r){"use strict";r.d(t,{h:function(){return i}});var n=r(67294);function i(e){let t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},58868:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(67294);let i=r(11741).j?n.useLayoutEffect:n.useEffect}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.