@appbaseio/reactivesearch-vue 3.2.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@appbaseio/reactivesearch-vue.umd.js +377 -304
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +4 -4
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/DynamicRangeSlider.js +5 -3
- package/dist/cjs/ReactiveList.js +5 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/{install-a3c5b872.js → install-c61d8b86.js} +3 -3
- package/dist/cjs/install.js +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/es/DynamicRangeSlider.js +5 -3
- package/dist/es/ReactiveList.js +5 -0
- package/dist/es/index.js +2 -2
- package/dist/es/{install-3c9a9694.js → install-4fe6038c.js} +3 -3
- package/dist/es/install.js +1 -1
- package/dist/es/version.js +1 -1
- package/package.json +91 -91
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e=e||self).ReactiveSearchVue={},e.Vue)}(this,(function(exports,vue){"use strict";var vue__default="default"in vue?vue.default:vue,commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}function _typeof(e){return(_typeof="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 _toPrimitive(e,t){if("object"!==_typeof(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"===_typeof(t)?t:String(t)}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function formatProdErrorMessage(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var $$observable="function"==typeof Symbol&&Symbol.observable||"@@observable",randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function createStore(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(formatProdErrorMessage(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(formatProdErrorMessage(1));return n(createStore)(e,t)}if("function"!=typeof e)throw new Error(formatProdErrorMessage(2));var o=e,s=t,a=[],i=a,l=!1;function u(){i===a&&(i=a.slice())}function c(){if(l)throw new Error(formatProdErrorMessage(3));return s}function p(e){if("function"!=typeof e)throw new Error(formatProdErrorMessage(4));if(l)throw new Error(formatProdErrorMessage(5));var t=!0;return u(),i.push(e),function(){if(t){if(l)throw new Error(formatProdErrorMessage(6));t=!1,u();var n=i.indexOf(e);i.splice(n,1),a=null}}}function d(e){if(!isPlainObject(e))throw new Error(formatProdErrorMessage(7));if(void 0===e.type)throw new Error(formatProdErrorMessage(8));if(l)throw new Error(formatProdErrorMessage(9));try{l=!0,s=o(s,e)}finally{l=!1}for(var t=a=i,n=0;n<t.length;n++){(0,t[n])()}return e}function h(e){if("function"!=typeof e)throw new Error(formatProdErrorMessage(10));o=e,d({type:ActionTypes.REPLACE})}function f(){var e,t=p;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(formatProdErrorMessage(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[$$observable]=function(){return this},e}return d({type:ActionTypes.INIT}),(r={dispatch:d,subscribe:p,getState:c,replaceReducer:h})[$$observable]=f,r}var legacy_createStore=createStore;function assertReducerShape(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:ActionTypes.INIT}))throw new Error(formatProdErrorMessage(12));if(void 0===n(void 0,{type:ActionTypes.PROBE_UNKNOWN_ACTION()}))throw new Error(formatProdErrorMessage(13))}))}function combineReducers(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var s,a=Object.keys(n);try{assertReducerShape(n)}catch(e){s=e}return function(e,t){if(void 0===e&&(e={}),s)throw s;for(var r=!1,o={},i=0;i<a.length;i++){var l=a[i],u=n[l],c=e[l],p=u(c,t);if(void 0===p){t&&t.type;throw new Error(formatProdErrorMessage(14))}o[l]=p,r=r||p!==c}return(r=r||a.length!==Object.keys(e).length)?o:e}}function bindActionCreator(e,t){return function(){return t(e.apply(this,arguments))}}function bindActionCreators(e,t){if("function"==typeof e)return bindActionCreator(e,t);if("object"!=typeof e||null===e)throw new Error(formatProdErrorMessage(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=bindActionCreator(o,t))}return n}function compose(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function applyMiddleware(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(formatProdErrorMessage(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},s=t.map((function(e){return e(o)}));return r=compose.apply(void 0,s)(n.dispatch),_objectSpread2(_objectSpread2({},n),{},{dispatch:r})}}}var redux=Object.freeze({__proto__:null,__DO_NOT_USE__ActionTypes:ActionTypes,applyMiddleware:applyMiddleware,bindActionCreators:bindActionCreators,combineReducers:combineReducers,compose:compose,createStore:createStore,legacy_createStore:legacy_createStore});function createThunkMiddleware(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var thunk=createThunkMiddleware();thunk.withExtraArgument=createThunkMiddleware;var constants=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.ADD_COMPONENT="ADD_COMPONENT",t.REMOVE_COMPONENT="REMOVE_COMPONENT",t.WATCH_COMPONENT="WATCH_COMPONENT",t.SET_QUERY="SET_QUERY",t.SET_APPBASE_QUERY="SET_APPBASE_QUERY",t.SET_QUERY_OPTIONS="SET_QUERY_OPTIONS",t.EXECUTE_QUERY="EXECUTE_QUERY",t.UPDATE_HITS="UPDATE_HITS",t.UPDATE_AGGS="UPDATE_AGGS",t.UPDATE_COMPOSITE_AGGS="UPDATE_COMPOSITE_AGGS",t.ADD_CONFIG="ADD_CONFIG",t.UPDATE_CONFIG="UPDATE_CONFIG",t.ADD_APPBASE_REF="ADD_APPBASE_REF",t.ADD_ANALYTICS_REF="ADD_ANALYTICS_REF",t.LOG_QUERY="LOG_QUERY",t.LOG_COMBINED_QUERY="LOG_COMBINED_QUERY",t.SET_INTERNAL_VALUE="SET_INTERNAL_VALUE",t.PATCH_VALUE="PATCH_VALUE",t.CLEAR_VALUES="CLEAR_VALUES",t.SET_LOADING="SET_LOADING",t.SET_ERROR="SET_ERROR",t.SET_TIMESTAMP="SET_TIMESTAMP",t.SET_HEADERS="SET_HEADERS",t.SET_MAP_DATA="SET_MAP_DATA",t.SET_MAP_RESULTS="SET_MAP_RESULTS",t.SET_QUERY_LISTENER="SET_QUERY_LISTENER",t.STORE_KEY="__REACTIVESEARCH__",t.SET_SEARCH_ID="SET_SEARCH_ID",t.SET_PROMOTED_RESULTS="SET_PROMOTED_RESULTS",t.SET_DEFAULT_QUERY="SET_DEFAULT_QUERY",t.SET_CUSTOM_QUERY="SET_CUSTOM_QUERY",t.SET_CUSTOM_HIGHLIGHT_OPTIONS="SET_CUSTOM_HIGHLIGHT_OPTIONS",t.SET_CUSTOM_DATA="SET_CUSTOM_DATA",t.SET_APPLIED_SETTINGS="SET_APPLIED_SETTINGS",t.SET_PROPS="SET_PROPS",t.UPDATE_PROPS="UPDATE_PROPS",t.REMOVE_PROPS="REMOVE_PROPS",t.SET_SUGGESTIONS_SEARCH_VALUE="SET_SUGGESTIONS_SEARCH_VALUE",t.CLEAR_SUGGESTIONS_SEARCH_VALUE="CLEAR_SUGGESTIONS_SEARCH_VALUE",t.SET_SUGGESTIONS_SEARCH_ID="SET_SUGGESTIONS_SEARCH_ID",t.UPDATE_ANALYTICS_CONFIG="UPDATE_ANALYTICS_CONFIG",t.SET_RAW_DATA="SET_RAW_DATA",t.SET_POPULAR_SUGGESTIONS="SET_POPULAR_SUGGESTIONS",t.SET_DEFAULT_POPULAR_SUGGESTIONS="SET_DEFAULT_POPULAR_SUGGESTIONS",t.SET_QUERY_TO_HITS="SET_QUERY_TO_HITS",t.RECENT_SEARCHES_SUCCESS="RECENT_SEARCHES_SUCCESS",t.RECENT_SEARCHES_ERROR="RECENT_SEARCHES_ERROR",t.SET_VALUE="SET_VALUE",t.SET_VALUES="SET_VALUES",t.RESET_TO_DEFAULT="RESET_TO_DEFAULT",t.SET_GOOGLE_MAP_SCRIPT_LOADING="SET_GOOGLE_MAP_SCRIPT_LOADING",t.SET_GOOGLE_MAP_SCRIPT_LOADED="SET_GOOGLE_MAP_SCRIPT_LOADED",t.SET_GOOGLE_MAP_SCRIPT_ERROR="SET_GOOGLE_MAP_SCRIPT_ERROR",t.SET_REGISTERED_COMPONENT_TIMESTAMP="SET_REGISTERED_COMPONENT_TIMESTAMP",t.REMOVE_REGISTERED_COMPONENT_TIMESTAMP="REMOVE_REGISTERED_COMPONENT_TIMESTAMP",t.SET_AI_RESPONSE="SET_AI_RESPONSE",t.SET_AI_RESPONSE_DELAYED="SET_AI_RESPONSE_DELAYED",t.REMOVE_AI_RESPONSE="REMOVE_AI_RESPONSE",t.SET_AI_RESPONSE_ERROR="SET_AI_RESPONSE_ERROR",t.SET_AI_RESPONSE_LOADING="SET_AI_RESPONSE_LOADING"}));unwrapExports(constants);var constants_1=constants.ADD_COMPONENT,constants_2=constants.REMOVE_COMPONENT,constants_3=constants.WATCH_COMPONENT,constants_4=constants.SET_QUERY,constants_5=constants.SET_APPBASE_QUERY,constants_6=constants.SET_QUERY_OPTIONS,constants_7=constants.EXECUTE_QUERY,constants_8=constants.UPDATE_HITS,constants_9=constants.UPDATE_AGGS,constants_10=constants.UPDATE_COMPOSITE_AGGS,constants_11=constants.ADD_CONFIG,constants_12=constants.UPDATE_CONFIG,constants_13=constants.ADD_APPBASE_REF,constants_14=constants.ADD_ANALYTICS_REF,constants_15=constants.LOG_QUERY,constants_16=constants.LOG_COMBINED_QUERY,constants_17=constants.SET_INTERNAL_VALUE,constants_18=constants.PATCH_VALUE,constants_19=constants.CLEAR_VALUES,constants_20=constants.SET_LOADING,constants_21=constants.SET_ERROR,constants_22=constants.SET_TIMESTAMP,constants_23=constants.SET_HEADERS,constants_24=constants.SET_MAP_DATA,constants_25=constants.SET_MAP_RESULTS,constants_26=constants.SET_QUERY_LISTENER,constants_27=constants.STORE_KEY,constants_28=constants.SET_SEARCH_ID,constants_29=constants.SET_PROMOTED_RESULTS,constants_30=constants.SET_DEFAULT_QUERY,constants_31=constants.SET_CUSTOM_QUERY,constants_32=constants.SET_CUSTOM_HIGHLIGHT_OPTIONS,constants_33=constants.SET_CUSTOM_DATA,constants_34=constants.SET_APPLIED_SETTINGS,constants_35=constants.SET_PROPS,constants_36=constants.UPDATE_PROPS,constants_37=constants.REMOVE_PROPS,constants_38=constants.SET_SUGGESTIONS_SEARCH_VALUE,constants_39=constants.CLEAR_SUGGESTIONS_SEARCH_VALUE,constants_40=constants.SET_SUGGESTIONS_SEARCH_ID,constants_41=constants.UPDATE_ANALYTICS_CONFIG,constants_42=constants.SET_RAW_DATA,constants_43=constants.SET_POPULAR_SUGGESTIONS,constants_44=constants.SET_DEFAULT_POPULAR_SUGGESTIONS,constants_45=constants.SET_QUERY_TO_HITS,constants_46=constants.RECENT_SEARCHES_SUCCESS,constants_47=constants.RECENT_SEARCHES_ERROR,constants_48=constants.SET_VALUE,constants_49=constants.SET_VALUES,constants_50=constants.RESET_TO_DEFAULT,constants_51=constants.SET_GOOGLE_MAP_SCRIPT_LOADING,constants_52=constants.SET_GOOGLE_MAP_SCRIPT_LOADED,constants_53=constants.SET_GOOGLE_MAP_SCRIPT_ERROR,constants_54=constants.SET_REGISTERED_COMPONENT_TIMESTAMP,constants_55=constants.REMOVE_REGISTERED_COMPONENT_TIMESTAMP,constants_56=constants.SET_AI_RESPONSE,constants_57=constants.SET_AI_RESPONSE_DELAYED,constants_58=constants.REMOVE_AI_RESPONSE,constants_59=constants.SET_AI_RESPONSE_ERROR,constants_60=constants.SET_AI_RESPONSE_LOADING,componentsReducer_1=createCommonjsModule((function(e,t){function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(t.type===constants.ADD_COMPONENT)return[].concat(n(e),[t.component]);if(t.type===constants.REMOVE_COMPONENT)return e.filter((function(e){return e!==t.component}));return e}}));unwrapExports(componentsReducer_1);var watchManReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){var t=Object.values(e),n=[];return t.forEach((function(e){"string"==typeof e?n.push(e):Array.isArray(e)?e.forEach((function(e){"string"==typeof e?n.push(e):n.push.apply(n,r(o(e)))})):"object"==typeof e&&null!==e&&n.push.apply(n,r(o(e)))})),n.filter((function(e,t,n){return n.indexOf(e)===t}))}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.WATCH_COMPONENT){var s=o(t.react),a=n({},e);return Object.keys(a).forEach((function(e){a[e]=a[e].filter((function(e){return e!==t.component}))})),s.forEach((function(e){Array.isArray(a[e])?a[e]=[].concat(r(a[e]),[t.component]):a[e]=[t.component]})),a}return e}}));unwrapExports(watchManReducer_1);var dependencyTreeReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.WATCH_COMPONENT)return n({},e,o({},t.component,t.react));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(dependencyTreeReducer_1);var queryReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_QUERY)return n({},e,o({},t.component,t.query));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(queryReducer_1);var appbaseQueryReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_APPBASE_QUERY)return n({},e,t.query);return e}}));unwrapExports(appbaseQueryReducer_1);var queryOptionsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_QUERY_OPTIONS)return n({},e,o({},t.component,t.options));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(queryOptionsReducer_1);var constants$1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.componentTypes={reactiveList:"REACTIVELIST",dataSearch:"DATASEARCH",categorySearch:"CATEGORYSEARCH",searchBox:"SEARCHBOX",singleList:"SINGLELIST",multiList:"MULTILIST",singleDataList:"SINGLEDATALIST",tabDataList:"TABDATALIST",singleDropdownList:"SINGLEDROPDOWNLIST",multiDataList:"MULTIDATALIST",multiDropdownList:"MULTIDROPDOWNLIST",singleDropdownRange:"SINGLEDROPDOWNRANGE",treeList:"TREELIST",numberBox:"NUMBERBOX",tagCloud:"TAGCLOUD",toggleButton:"TOGGLEBUTTON",reactiveComponent:"REACTIVECOMPONENT",datePicker:"DATEPICKER",dateRange:"DATERANGE",dynamicRangeSlider:"DYNAMICRANGESLIDER",multiDropdownRange:"MULTIDROPDOWNRANGE",singleRange:"SINGLERANGE",multiRange:"MULTIRANGE",rangeSlider:"RANGESLIDER",ratingsFilter:"RATINGSFILTER",rangeInput:"RANGEINPUT",geoDistanceDropdown:"GEO_DISTANCE_DROPDOWN",geoDistanceSlider:"GEO_DISTANCE_SLIDER",reactiveMap:"REACTIVE_MAP",reactiveChart:"REACTIVE_CHART",AIAnswer:"AI_ANSWER"},t.queryTypes={search:"search",term:"term",range:"range",geo:"geo",suggestion:"suggestion"},t.validProps=["type","componentType","aggregationField","aggregationSize","distinctField","distinctFieldConfig","index","aggregations","compoundClause","dataField","includeFields","excludeFields","size","from","sortBy","sortOptions","pagination","autoFocus","autosuggest","debounce","defaultValue","defaultSuggestions","fieldWeights","filterLabel","fuzziness","highlight","highlightConfig","highlightField","nestedField","placeholder","queryFormat","searchOperators","enableSynonyms","enableQuerySuggestions","queryString","categoryField","strictSelection","selectAllLabel","showCheckbox","showFilter","showSearch","showCount","showLoadMore","loadMoreLabel","showMissing","missingLabel","data","showRadio","multiSelect","includeNullValues","interval","showHistogram","snap","stepValue","range","showSlider","parseDate","calendarInterval","unit","enablePopularSuggestions","enableRecentSuggestions","popularSuggestionsConfig","recentSuggestionsConfig","indexSuggestionsConfig","featuredSuggestionsConfig","FAQSuggestionsConfig","documentSuggestionsConfig","enablePredictiveSuggestions","applyStopwords","customStopwords","enableIndexSuggestions","enableFeaturedSuggestions","enableFAQSuggestions","enableDocumentSuggestions","enableEndpointSuggestions","searchboxId","endpoint","enableAI","AIConfig","showDistinctSuggestions"],t.CLEAR_ALL={NEVER:"never",ALWAYS:"always",DEFAULT:"default"},t.SEARCH_COMPONENTS_MODES={SELECT:"select",TAG:"tag"},t.TREELIST_VALUES_PATH_SEPARATOR="◐◑◒◓",t.AI_ROLES={USER:"user",SYSTEM:"system",ASSISTANT:"assistant"},t.AI_LOCAL_CACHE_KEY="AISessions",t.AI_TRIGGER_MODES={QUESTION:"question",MANUAL:"manual",ALWAYS:"always"}}));unwrapExports(constants$1);var constants_1$1=constants$1.componentTypes,constants_2$1=constants$1.queryTypes,constants_3$1=constants$1.validProps,constants_4$1=constants$1.CLEAR_ALL,constants_5$1=constants$1.SEARCH_COMPONENTS_MODES,constants_6$1=constants$1.TREELIST_VALUES_PATH_SEPARATOR,constants_7$1=constants$1.AI_ROLES,constants_8$1=constants$1.AI_LOCAL_CACHE_KEY,constants_9$1=constants$1.AI_TRIGGER_MODES,analytics=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseCustomEvents=t.parseRangeObject=t.parseFilterValue=t.rangeObjectComponents=t.rangeComponents=t.filterComponents=t.defaultAnalyticsConfig=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(("function"==typeof Symbol?Symbol.iterator:"@@iterator")in Object(e))return function(e,t){var n=[],r=!0,o=!1,s=void 0;try{for(var a,i=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,s=e}finally{try{!r&&i.return&&i.return()}finally{if(o)throw s}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=[constants$1.componentTypes.numberBox,constants$1.componentTypes.tagCloud,constants$1.componentTypes.toggleButton,constants$1.componentTypes.datePicker,constants$1.componentTypes.dateRange,constants$1.componentTypes.multiDataList,constants$1.componentTypes.multiDropdownList,constants$1.componentTypes.multiList,constants$1.componentTypes.singleDataList,constants$1.componentTypes.singleDropdownList,constants$1.componentTypes.singleList,constants$1.componentTypes.dynamicRangeSlider,constants$1.componentTypes.multiDropdownRange,constants$1.componentTypes.multiRange,constants$1.componentTypes.rangeSlider,constants$1.componentTypes.ratingsFilter,constants$1.componentTypes.singleDropdownRange,constants$1.componentTypes.singleRange,constants$1.componentTypes.treeList],o=[constants$1.componentTypes.dateRange,constants$1.componentTypes.dynamicRangeSlider,constants$1.componentTypes.rangeSlider,constants$1.componentTypes.rangeInput,constants$1.componentTypes.ratingsFilter],s=[constants$1.componentTypes.singleRange,constants$1.componentTypes.singleDropdownRange,constants$1.componentTypes.multiRange,constants$1.componentTypes.multiDropdownRange];function a(e,t){return e+"="+t.start+"~"+t.end}function i(e,t){var n=t.label,r=t.value,i=t.componentType,l=n||e;return o.includes(i)?l+"="+r[0]+"~"+r[1]:s.includes(i)?Array.isArray(r)?r.map((function(e){return a(l,e)})).join():a(l,r):Array.isArray(r)?"object"==typeof r[0]&&null!==r[0]?r.map((function(e){return l+"="+e.value})).join():r.map((function(e){return l+"="+e})).join():l+"="+r}t.defaultAnalyticsConfig={emptyQuery:!0,suggestionAnalytics:!0,userId:null,customEvents:null,enableQueryRules:!0};t.filterComponents=r,t.rangeComponents=o,t.rangeObjectComponents=s,t.parseFilterValue=i,t.parseRangeObject=a,t.parseCustomEvents=function(e){var t="";return Object.keys(e).forEach((function(n,r){t+=n+"="+e[n],r<Object.keys(e).length-1&&(t+=",")})),t},t.default=function(e){return e&&Object.keys(e).length?Object.entries(e).filter((function(e){var t=n(e,2)[1];return r.includes(t.componentType)&&(t.value&&t.value.length||t.value&&t.value.start||t.value&&t.value.end)})).map((function(e){var t=n(e,2);return i(t[0],t[1])})).join():null}}));unwrapExports(analytics);var analytics_1=analytics.parseCustomEvents,analytics_2=analytics.parseRangeObject,analytics_3=analytics.parseFilterValue,analytics_4=analytics.rangeObjectComponents,analytics_5=analytics.rangeComponents,analytics_6=analytics.filterComponents,analytics_7=analytics.defaultAnalyticsConfig,configReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{analyticsConfig:analytics.defaultAnalyticsConfig,lock:!1},t=arguments[1];if(t.type===constants.ADD_CONFIG)return n({},e,{analyticsConfig:n({},analytics.defaultAnalyticsConfig,t.analyticsConfig)});if(t.type===constants.UPDATE_ANALYTICS_CONFIG)return n({},e,{analyticsConfig:n({},e.analyticsConfig,t.analyticsConfig)});if(t.type===constants.UPDATE_CONFIG)return n({},e,t.config);return e}}));unwrapExports(configReducer_1);var appbaseRefReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.ADD_APPBASE_REF)return t.appbaseRef;return e}}));unwrapExports(appbaseRefReducer_1);var hitsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.UPDATE_HITS)return t.append?n({},e,o({},t.component,{hits:[].concat(s(e[t.component].hits),s(t.hits)),total:t.total,time:t.time,hidden:t.hidden||0})):n({},e,o({},t.component,{hits:t.hits,total:t.total,time:t.time,hidden:t.hidden||0}));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}}));unwrapExports(hitsReducer_1);var logsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.LOG_QUERY)return n({},e,o({},t.component,t.query));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(logsReducer_1);var combinedLogsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.LOG_COMBINED_QUERY)return n({},e,o({},t.component,t.query));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(combinedLogsReducer_1);var valueReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case constants.SET_VALUE:var s={};return Object.keys(t.componentsToReset||{}).forEach((function(r){s[r]=n({},e[r],{value:t.componentsToReset[r]})})),n({},e,s,o({},t.component,{value:t.value,label:t.label||t.component,showFilter:t.showFilter,URLParams:t.URLParams,componentType:t.componentType,category:t.category,meta:t.meta,reference:t.reference}));case constants.SET_VALUES:var a=t.componentsValues?Object.keys(t.componentsValues):[];if(a.length){var i={};return a.forEach((function(o){var s=t.componentsValues[o],a=s.value,l=r(s,["value"]);i[o]=n({},e[o],{value:a},l)})),n({},e,i)}return e;case constants.PATCH_VALUE:return n({},e,o({},t.component,n({},e[t.component],t.payload)));case constants.CLEAR_VALUES:var l={};return t.resetValues&&Object.keys(t.resetValues).forEach((function(r){l[r]=n({},e[r],{value:t.resetValues[r]})})),Array.isArray(t.clearAllBlacklistComponents)&&Object.keys(e).forEach((function(n){t.clearAllBlacklistComponents.includes(n)&&(l[n]=e[n])})),l;case constants.REMOVE_COMPONENT:e[t.component];var u=r(e,[t.component]);return u;case constants.RESET_TO_DEFAULT:return n({},e,t.defaultValues);default:return e}}}));unwrapExports(valueReducer_1);var internalValueReducer=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case constants.SET_INTERNAL_VALUE:return n({},e,o({},t.component,{value:t.value,componentType:t.componentType,category:t.category,meta:t.meta}));case constants.CLEAR_VALUES:var s={};return t.resetValues&&Object.keys(t.resetValues).forEach((function(r){s[r]=n({},e[r],{value:t.resetValues[r]})})),Array.isArray(t.clearAllBlacklistComponents)&&Object.keys(e).forEach((function(n){t.clearAllBlacklistComponents.includes(n)&&(s[n]=e[n])})),s;case constants.RESET_TO_DEFAULT:return n({},e,t.defaultValues);case constants.REMOVE_COMPONENT:e[t.component];var a=r(e,[t.component]);return a;default:return e}}}));unwrapExports(internalValueReducer);var loadingReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_LOADING){var s,a=e[t.component+"_active"]||0;return t.isLoading?a+=1:a&&(a-=1),n({},e,(o(s={},t.component,t.isLoading),o(s,t.component+"_active",a),s),t.isLoading?o({},t.component+"_timestamp",(new Date).getTime()):null)}if(t.type===constants.REMOVE_COMPONENT){e[t.component],e[t.component+"_active"];var i=r(e,[t.component,t.component+"_active"]);return i}return e}}));unwrapExports(loadingReducer_1);var errorReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_ERROR)return n({},e,o({},t.component,t.error));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(errorReducer_1);var timestampReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_TIMESTAMP)return n({},e,o({},t.component,t.timestamp));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(timestampReducer_1);var headersReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_HEADERS)return t.headers;return e}}));unwrapExports(headersReducer_1);var mapDataReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_MAP_DATA)return n({},e,o({},t.componentId,{query:t.query,persistMapQuery:t.persistMapQuery}));if(t.type===constants.SET_MAP_RESULTS)return n({},e,o({},t.componentId,n({},e[t.componentId],t.payload)));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(mapDataReducer_1);var queryListenerReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_QUERY_LISTENER)return n({},e,o({},t.component,{onQueryChange:t.onQueryChange,onError:t.onError}));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(queryListenerReducer_1);var analyticsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1];switch(t.type){case constants.SET_VALUE:return o.includes(t.componentType)?{searchValue:t.value,searchId:null}:e;case constants.SET_SEARCH_ID:return n({},e,{searchId:t.searchId});case constants.SET_SUGGESTIONS_SEARCH_VALUE:return n({},e,{suggestionsSearchValue:t.value,suggestionsSearchId:null});case constants.SET_SUGGESTIONS_SEARCH_ID:return n({},e,{suggestionsSearchId:t.searchId});case constants.CLEAR_SUGGESTIONS_SEARCH_VALUE:return n({},e,{suggestionsSearchValue:null,suggestionsSearchId:null});default:return e}};var r={searchValue:null,searchId:null,suggestionsSearchId:null,suggestionsSearchValue:null},o=[constants$1.componentTypes.dataSearch,constants$1.componentTypes.categorySearch]}));unwrapExports(analyticsReducer_1);var promotedResultsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_PROMOTED_RESULTS)return n({},e,o({},t.component,t.results.map((function(e){return n({},e,{_promoted:!0})}))));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(promotedResultsReducer_1);var customDataReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_CUSTOM_DATA)return n({},e,o({},t.component,t.data));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(customDataReducer_1);var defaultQueryReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_DEFAULT_QUERY)return n({},e,o({},t.component,t.query));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(defaultQueryReducer_1);var customQueryReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_CUSTOM_QUERY)return n({},e,o({},t.component,t.query));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(customQueryReducer_1);var propsReducer=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case constants.SET_PROPS:return n({},e,o({},t.component,t.options));case constants.UPDATE_PROPS:return n({},e,o({},t.component,n({},e[t.component],t.options)));case constants.REMOVE_PROPS:case constants.REMOVE_COMPONENT:e[t.component];var s=r(e,[t.component]);return s;default:return e}}}));unwrapExports(propsReducer);var aggsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function s(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.UPDATE_AGGS){if(t.append){var a=Object.keys(e[t.component])[0],i=t.aggregations[a],l=i.buckets,u=s(i,["buckets"]);return n({},e,r({},t.component,r({},a,n({buckets:[].concat(o(e[t.component][a].buckets),o(l))},u))))}return n({},e,r({},t.component,t.aggregations))}if(t.type===constants.REMOVE_COMPONENT){e[t.component];var c=s(e,[t.component]);return c}return e}}));unwrapExports(aggsReducer_1);var compositeAggsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function s(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.UPDATE_COMPOSITE_AGGS){var a=Object.values(t.aggregations)&&Object.values(t.aggregations)[0],i=Object.keys(t.aggregations)[0];if(!a)return e;var l=[];a.buckets&&Array.isArray(a.buckets)&&(l=a.buckets);var u=l.map((function(e){var t=e.doc_count,r=e.key,o=e[i],a={},l={};if(o&&o.hits){var u=o.hits.hits[0];l=u._source,a=s(u,["_source"])}return n({_doc_count:t,_key:"string"==typeof r?r:r[i],top_hits:o},a,l)}));return n({},e,r({},t.component,t.append?[].concat(o(e[t.component]),o(u)):u))}return e}}));unwrapExports(compositeAggsReducer_1);var appliedSettingsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_APPLIED_SETTINGS)return n({},e,r({},t.component,t.data));return e}}));unwrapExports(appliedSettingsReducer_1);var customHighlightReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_CUSTOM_HIGHLIGHT_OPTIONS)return n({},e,o({},t.component,t.data));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(customHighlightReducer_1);var rawDataReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_RAW_DATA)return n({},e,o({},t.component,t.response));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(rawDataReducer_1);var querySuggestionsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_POPULAR_SUGGESTIONS)return n({},e,r({},t.component,t.suggestions));return e}}));unwrapExports(querySuggestionsReducer_1);var defaultPopularSuggestions_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_DEFAULT_POPULAR_SUGGESTIONS)return n({},e,r({},t.component,t.suggestions));return e}}));unwrapExports(defaultPopularSuggestions_1);var queryToHitsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_QUERY_TO_HITS)return n({},e,o({},t.component,t.query));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(queryToHitsReducer_1);var recentSearches=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.RECENT_SEARCHES_SUCCESS)return{error:null,data:t.data};if(t.type===constants.RECENT_SEARCHES_ERROR)return{error:t.error};return e}}));unwrapExports(recentSearches);var googleMapScriptReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1],o=t.type,s=t.loading,a=t.loaded,i=t.error;if(o===constants.SET_GOOGLE_MAP_SCRIPT_LOADING)return n({},r,{loading:s});if(o===constants.SET_GOOGLE_MAP_SCRIPT_LOADED)return n({},r,{loaded:a});if(o===constants.SET_GOOGLE_MAP_SCRIPT_ERROR)return n({},r,{error:i});return e};var r={loading:!1,loaded:!1,error:null}}));unwrapExports(googleMapScriptReducer_1);var analyticsRefReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.ADD_ANALYTICS_REF)return t.analyticsRef;return e}}));unwrapExports(analyticsRefReducer_1);var registeredComponentReducer=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_REGISTERED_COMPONENT_TIMESTAMP)return n({},e,o({},t.component,t.timestamp));if(t.type===constants.REMOVE_REGISTERED_COMPONENT_TIMESTAMP){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(registeredComponentReducer);var dateFormats_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={date:"YYYY-MM-DD",basic_date:"YYYYMMDD",basic_date_time:"YYYYMMDD[T]HHmmss.SSSZ",basic_date_time_no_millis:"YYYYMMDD[T]HHmmssZ",date_time_no_millis:"YYYY-MM-DD[T]HH:mm:ssZ",basic_time:"HHmmss.SSSZ",basic_time_no_millis:"HHmmssZ",epoch_millis:"epoch_millis",epoch_second:"epoch_second"}}));unwrapExports(dateFormats_1);var diacritics_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={"«":'"',"²":"2","³":"3","¹":"1","»":'"',"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"q","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ŋ":"N","ŋ":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƀ":"b","Ɓ":"B","Ƃ":"B","ƃ":"b","Ɔ":"O","Ƈ":"C","ƈ":"c","Ɖ":"D","Ɗ":"D","Ƌ":"D","ƌ":"d","Ǝ":"E","Ə":"A","Ɛ":"E","Ƒ":"F","ƒ":"f","Ɠ":"G","ƕ":"hv","Ɩ":"I","Ɨ":"I","Ƙ":"K","ƙ":"k","ƚ":"l","Ɯ":"M","Ɲ":"N","ƞ":"n","Ɵ":"O","Ơ":"O","ơ":"o","Ƥ":"P","ƥ":"p","ƫ":"t","Ƭ":"T","ƭ":"t","Ʈ":"T","Ư":"U","ư":"u","Ʋ":"V","Ƴ":"Y","ƴ":"y","Ƶ":"Z","ƶ":"z","ƿ":"w","DŽ":"DZ","Dž":"Dz","dž":"dz","LJ":"LJ","Lj":"Lj","lj":"lj","NJ":"NJ","Nj":"Nj","nj":"nj","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","ǝ":"e","Ǟ":"A","ǟ":"a","Ǡ":"A","ǡ":"a","Ǣ":"AE","ǣ":"ae","Ǥ":"G","ǥ":"G","Ǧ":"G","ǧ":"G","Ǩ":"K","ǩ":"k","Ǫ":"O","ǫ":"o","Ǭ":"O","ǭ":"o","ǰ":"j","DZ":"DZ","Dz":"Dz","dz":"dz","Ǵ":"G","ǵ":"g","Ƕ":"HV","Ƿ":"W","Ǹ":"N","ǹ":"n","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Ȁ":"A","ȁ":"a","Ȃ":"A","ȃ":"a","Ȅ":"E","ȅ":"e","Ȇ":"E","ȇ":"e","Ȉ":"I","ȉ":"i","Ȋ":"I","ȋ":"i","Ȍ":"O","ȍ":"o","Ȏ":"O","ȏ":"o","Ȑ":"R","ȑ":"r","Ȓ":"R","ȓ":"r","Ȕ":"U","ȕ":"u","Ȗ":"U","ȗ":"u","Ș":"S","ș":"s","Ț":"T","ț":"t","Ȝ":"Z","ȝ":"z","Ȟ":"H","ȟ":"h","Ƞ":"N","ȡ":"d","Ȣ":"OU","ȣ":"ou","Ȥ":"Z","ȥ":"z","Ȧ":"A","ȧ":"a","Ȩ":"E","ȩ":"e","Ȫ":"O","ȫ":"o","Ȭ":"O","ȭ":"o","Ȯ":"O","ȯ":"o","Ȱ":"O","ȱ":"o","Ȳ":"Y","ȳ":"y","ȴ":"l","ȵ":"n","ȶ":"t","ȷ":"j","ȸ":"db","ȹ":"qp","Ⱥ":"A","Ȼ":"C","ȼ":"c","Ƚ":"L","Ⱦ":"T","ȿ":"s","ɀ":"z","Ƀ":"B","Ʉ":"U","Ʌ":"V","Ɇ":"E","ɇ":"e","Ɉ":"J","ɉ":"j","Ɋ":"Q","ɋ":"q","Ɍ":"R","ɍ":"r","Ɏ":"Y","ɏ":"y","ɐ":"a","ɓ":"b","ɔ":"o","ɕ":"c","ɖ":"d","ɗ":"d","ɘ":"e","ə":"a","ɚ":"a","ɛ":"e","ɜ":"e","ɝ":"e","ɞ":"e","ɟ":"j","ɠ":"g","ɡ":"g","ɢ":"G","ɥ":"h","ɦ":"h","ɨ":"i","ɪ":"I","ɫ":"l","ɬ":"l","ɭ":"l","ɯ":"m","ɰ":"m","ɱ":"m","ɲ":"n","ɳ":"n","ɴ":"N","ɵ":"o","ɶ":"OE","ɼ":"r","ɽ":"r","ɾ":"r","ɿ":"r","ʀ":"R","ʁ":"R","ʂ":"s","ʄ":"j","ʇ":"t","ʈ":"t","ʉ":"u","ʋ":"v","ʌ":"v","ʍ":"w","ʎ":"y","ʏ":"Y","ʐ":"z","ʑ":"z","ʗ":"C","ʙ":"B","ʚ":"e","ʛ":"G","ʜ":"H","ʝ":"j","ʞ":"k","ʟ":"L","ʠ":"q","ʣ":"dz","ʥ":"dz","ʦ":"ts","ʨ":"tc","ʪ":"ls","ʫ":"lz","ʮ":"h","ʯ":"h","ᴀ":"A","ᴁ":"AE","ᴂ":"ae","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴆ":"D","ᴇ":"E","ᴈ":"e","ᴉ":"i","ᴊ":"J","ᴋ":"K","ᴌ":"L","ᴍ":"M","ᴎ":"N","ᴏ":"O","ᴐ":"O","ᴔ":"oe","ᴕ":"OU","ᴖ":"o","ᴗ":"o","ᴘ":"P","ᴙ":"R","ᴚ":"R","ᴛ":"T","ᴜ":"U","ᴠ":"V","ᴡ":"W","ᴢ":"Z","ᵢ":"i","ᵣ":"r","ᵤ":"u","ᵥ":"v","ᵫ":"ue","ᵬ":"b","ᵭ":"d","ᵮ":"f","ᵯ":"m","ᵰ":"n","ᵱ":"p","ᵲ":"r","ᵳ":"r","ᵴ":"s","ᵵ":"t","ᵶ":"z","ᵷ":"g","ᵹ":"g","ᵺ":"th","ᵻ":"I","ᵼ":"i","ᵽ":"p","ᵾ":"U","ᶀ":"b","ᶁ":"d","ᶂ":"f","ᶃ":"g","ᶄ":"k","ᶅ":"l","ᶆ":"m","ᶇ":"n","ᶈ":"p","ᶉ":"r","ᶊ":"s","ᶌ":"v","ᶍ":"x","ᶎ":"z","ᶏ":"a","ᶑ":"d","ᶒ":"e","ᶓ":"e","ᶔ":"e","ᶕ":"a","ᶖ":"i","ᶗ":"o","ᶙ":"u","Ḁ":"A","ḁ":"a","Ḃ":"B","ḃ":"b","Ḅ":"B","ḅ":"b","Ḇ":"B","ḇ":"b","Ḉ":"C","ḉ":"c","Ḋ":"D","ḋ":"d","Ḍ":"D","ḍ":"d","Ḏ":"D","ḏ":"d","Ḑ":"D","ḑ":"d","Ḓ":"D","ḓ":"d","Ḕ":"E","ḕ":"e","Ḗ":"E","ḗ":"e","Ḙ":"E","ḙ":"e","Ḛ":"E","ḛ":"e","Ḝ":"E","ḝ":"e","Ḟ":"F","ḟ":"f","Ḡ":"G","ḡ":"g","Ḣ":"H","ḣ":"h","Ḥ":"H","ḥ":"h","Ḧ":"H","ḧ":"h","Ḩ":"H","ḩ":"h","Ḫ":"H","ḫ":"h","Ḭ":"I","ḭ":"i","Ḯ":"I","ḯ":"i","Ḱ":"K","ḱ":"k","Ḳ":"K","ḳ":"k","Ḵ":"K","ḵ":"k","Ḷ":"L","ḷ":"l","Ḹ":"L","ḹ":"l","Ḻ":"L","ḻ":"l","Ḽ":"L","ḽ":"l","Ḿ":"M","ḿ":"m","Ṁ":"M","ṁ":"m","Ṃ":"M","ṃ":"m","Ṅ":"N","ṅ":"n","Ṇ":"N","ṇ":"n","Ṉ":"N","ṉ":"n","Ṋ":"N","ṋ":"n","Ṍ":"O","ṍ":"o","Ṏ":"O","ṏ":"o","Ṑ":"O","ṑ":"o","Ṓ":"O","ṓ":"o","Ṕ":"P","ṕ":"p","Ṗ":"P","ṗ":"p","Ṙ":"R","ṙ":"r","Ṛ":"R","ṛ":"r","Ṝ":"R","ṝ":"r","Ṟ":"R","ṟ":"r","Ṡ":"S","ṡ":"s","Ṣ":"S","ṣ":"s","Ṥ":"S","ṥ":"s","Ṧ":"S","ṧ":"s","Ṩ":"S","ṩ":"s","Ṫ":"T","ṫ":"t","Ṭ":"T","ṭ":"t","Ṯ":"T","ṯ":"t","Ṱ":"T","ṱ":"t","Ṳ":"U","ṳ":"u","Ṵ":"U","ṵ":"u","Ṷ":"U","ṷ":"u","Ṹ":"U","ṹ":"u","Ṻ":"U","ṻ":"u","Ṽ":"V","ṽ":"v","Ṿ":"V","ṿ":"v","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","Ẇ":"W","ẇ":"w","Ẉ":"W","ẉ":"w","Ẋ":"X","ẋ":"x","Ẍ":"X","ẍ":"x","Ẏ":"Y","ẏ":"y","Ẑ":"Z","ẑ":"z","Ẓ":"Z","ẓ":"z","Ẕ":"Z","ẕ":"z","ẖ":"h","ẗ":"t","ẘ":"w","ẙ":"y","ẚ":"a","ẛ":"f","ẜ":"s","ẝ":"s","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","Ỻ":"LL","ỻ":"ll","Ỽ":"V","Ỿ":"Y","ỿ":"y","‐":"-","‑":"-","‒":"-","–":"-","—":"-","‘":'"',"’":'"',"‚":'"',"‛":'"',"“":'"',"”":'"',"„":'"',"′":'"',"″":'"',"‵":'"',"‶":'"',"‸":"^","‹":'"',"›":'"',"‼":"!!","⁄":"/","⁅":"[","⁆":"]","⁇":"??","⁈":"?!","⁉":"!?","⁎":"*","⁏":";","⁒":"%","⁓":"~","⁰":"0","ⁱ":"i","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","ⁿ":"n","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","₊":"+","₋":"-","₌":"=","₍":"(","₎":")","ₐ":"a","ₑ":"e","ₒ":"o","ₓ":"x","ₔ":"a","ↄ":"c","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"19","⑳":"20","⑴":"(1)","⑵":"(2)","⑶":"(3)","⑷":"(4)","⑸":"(5)","⑹":"(6)","⑺":"(7)","⑻":"(8)","⑼":"(9)","⑽":"(10)","⑾":"(11)","⑿":"(12)","⒀":"(13)","⒁":"(14)","⒂":"(15)","⒃":"(16)","⒄":"(17)","⒅":"(18)","⒆":"(19)","⒇":"(20)","⒈":"1.","⒉":"2.","⒊":"3.","⒋":"4.","⒌":"5.","⒍":"6.","⒎":"7.","⒏":"8.","⒐":"9.","⒑":"10.","⒒":"11.","⒓":"12.","⒔":"13.","⒕":"14.","⒖":"15.","⒗":"16.","⒘":"17.","⒙":"18.","⒚":"19.","⒛":"20.","⒜":"(a)","⒝":"(b)","⒞":"(c)","⒟":"(d)","⒠":"(e)","⒡":"(f)","⒢":"(g)","⒣":"(h)","⒤":"(i)","⒥":"(j)","⒦":"(k)","⒧":"(l)","⒨":"(m)","⒩":"(n)","⒪":"(o)","⒫":"(p)","⒬":"(q)","⒭":"(r)","⒮":"(s)","⒯":"(t)","⒰":"(u)","⒱":"(v)","⒲":"(w)","⒳":"(x)","⒴":"(y)","⒵":"(z)","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓥ":"v","ⓦ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","⓪":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","❛":'"',"❜":'"',"❝":'"',"❞":'"',"❨":"(","❩":")","❪":"(","❫":")","❬":"<","❭":">","❮":'"',"❯":'"',"❰":"<","❱":">","❲":"[","❳":"]","❴":"{","❵":"}","❶":"1","❷":"2","❸":"3","❹":"4","❺":"5","❻":"6","❼":"7","❽":"8","❾":"9","❿":"10","➀":"1","➁":"2","➂":"3","➃":"4","➄":"5","➅":"6","➆":"7","➇":"8","➈":"9","➉":"10","➊":"1","➋":"2","➌":"3","➍":"4","➎":"5","➏":"6","➐":"7","➑":"8","➒":"9","➓":"10","Ⱡ":"L","ⱡ":"l","Ɫ":"L","Ᵽ":"P","Ɽ":"R","ⱥ":"a","ⱦ":"t","Ⱨ":"H","ⱨ":"h","Ⱪ":"K","ⱪ":"k","Ⱬ":"Z","ⱬ":"z","Ɱ":"M","Ɐ":"a","ⱱ":"v","Ⱳ":"W","ⱳ":"w","ⱴ":"v","Ⱶ":"H","ⱶ":"h","ⱸ":"e","ⱺ":"o","ⱻ":"E","ⱼ":"j","⸨":"((","⸩":"))","Ꜩ":"TZ","ꜩ":"tz","ꜰ":"F","ꜱ":"S","Ꜳ":"AA","ꜳ":"aa","Ꜵ":"AO","ꜵ":"ao","Ꜷ":"AU","ꜷ":"au","Ꜹ":"AV","ꜹ":"av","Ꜻ":"AV","ꜻ":"av","Ꜽ":"AY","ꜽ":"ay","Ꜿ":"c","ꜿ":"c","Ꝁ":"K","ꝁ":"k","Ꝃ":"K","ꝃ":"k","Ꝅ":"K","ꝅ":"k","Ꝇ":"L","ꝇ":"l","Ꝉ":"L","ꝉ":"l","Ꝋ":"O","ꝋ":"o","Ꝍ":"O","ꝍ":"o","Ꝏ":"OO","ꝏ":"oo","Ꝑ":"P","ꝑ":"p","Ꝓ":"P","ꝓ":"p","Ꝕ":"P","ꝕ":"p","Ꝗ":"Q","ꝗ":"q","Ꝙ":"Q","ꝙ":"q","Ꝛ":"R","ꝛ":"r","Ꝟ":"V","ꝟ":"v","Ꝡ":"VY","ꝡ":"vy","Ꝣ":"Z","ꝣ":"z","Ꝧ":"TH","ꝧ":"th","Ꝩ":"V","Ꝺ":"D","ꝺ":"d","Ꝼ":"F","ꝼ":"f","Ᵹ":"G","Ꝿ":"G","ꝿ":"g","Ꞁ":"L","ꞁ":"l","Ꞃ":"R","ꞃ":"r","Ꞅ":"s","ꞅ":"S","Ꞇ":"T","ꟻ":"F","ꟼ":"p","ꟽ":"M","ꟾ":"I","ꟿ":"M","ff":"ff","fi":"fi","fl":"fl","ffi":"ffi","ffl":"ffl","st":"st","!":"!",""":'"',"#":"#","$":"$","%":"%","&":"&","'":'"',"(":"(",")":")","*":"*","+":"+",",":",","-":"-",".":".","/":"/","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9",":":":",";":";","<":"<","=":"=",">":">","?":"?","@":"@","A":"A","B":"B","C":"C","D":"D","E":"E","F":"F","G":"G","H":"H","I":"I","J":"J","K":"K","L":"L","M":"M","N":"N","O":"O","P":"P","Q":"Q","R":"R","S":"S","T":"T","U":"U","V":"V","W":"W","X":"X","Y":"Y","Z":"Z","[":"[","\":"\\","]":"]","^":"^","_":"_","a":"a","b":"b","c":"c","d":"d","e":"e","f":"f","g":"g","h":"h","i":"i","j":"j","k":"k","l":"l","m":"m","n":"n","o":"o","p":"p","q":"q","r":"r","s":"s","t":"t","u":"u","v":"v","w":"w","x":"x","y":"y","z":"z","{":"{","}":"}","~":"~"}}));unwrapExports(diacritics_1);var suggestions=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.replaceDiacritics=i;var r,o=(r=diacritics_1)&&r.__esModule?r:{default:r};function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a=function(e){switch(typeof e){case"string":return e;case"object":return Array.isArray(e)?function e(t){return t.reduce((function(t,n){return t.concat(Array.isArray(n)?e(n):n)}),[])}(e):null;default:return e}};function i(e){for(var t=e?String(e):"",n=0;n<t.length;n++){var r=t.charAt(n);o.default[r]&&(t=t.replaceAll(r,o.default[r]))}return t}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var u=function(e){var t=e.suggestions,r=e.currentValue,o=e.wordsToShowAfterHighlight,a={};if(r){var i=r.trim();return t.reduce((function(e,t){var r=t.label,u=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["label"]),c=(new DOMParser).parseFromString(r,"text/html").documentElement.textContent,p="^("+l(i)+")\\w+",d=new RegExp(p,"i"),h=d.exec(c);if(h||(p="^("+l(i)+")",h=(d=new RegExp(p,"i")).exec(c)),h){var f=c.slice(h.index,c.length).slice(i.length).split(" ").slice(0,o+1).join(" "),m=i+'<mark class="highlight">'+f+"</mark>",g=""+i+f;return a[m]?e:(a[m]=1,[].concat(s(e),[n({},u,{label:m,value:g,isPredictiveSuggestion:!0})]))}return e}),[])}return[]};t.default=function(e){var t=e.fields,r=e.suggestions,o=e.currentValue,l=e.suggestionProperties,c=void 0===l?[]:l,p=e.showDistinctSuggestions,d=void 0!==p&&p,h=e.enablePredictiveSuggestions,f=void 0!==h&&h,m=e.wordsToShowAfterHighlight,g=void 0===m?2:m,y=e.enableSynonyms,v=[],b=[],_=!1,$=function(e,t,r){if((_||o.trim().split(" ").some((function(t){return i(e).toLowerCase().includes(i(t))})))&&!b.includes(e)||r._promoted){var a={label:e,value:e,source:r},l={};Array.isArray(c)&&c.length>0&&c.forEach((function(e){t.hasOwnProperty(e)&&(l=n({},l,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t[e])))}));var u=n({},a,l);if(b=[].concat(s(b),[e]),v=[].concat(s(v),[u]),d)return!0}return!1},C=function(){r.forEach((function(e){t.forEach((function(t){!function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;if("object"==typeof t){var s=n.split("."),i=t[s[0]];if(t[n]){var l=t[n],u=a(l);if(u&&"string"==typeof u)return $(u,t,r)}if(Array.isArray(i)&&(i.length>1&&(i=i.filter((function(e){return e&&e.toString().toLowerCase().includes(o.toString().toLowerCase())}))),i=i[0]),i)if(s.length>1){var c=n.substring(s[0].length+1);e(i,c,r)}else{var p=a(i);if(p)return $(p,t,r)}}return!1}(e,t)}))}))};if(C(),v.length<r.length&&!_&&y&&(_=!0,C()),f){var S=u({suggestions:v,currentValue:o,wordsToShowAfterHighlight:g});v=S}if(d){var O={},w=[];return v.forEach((function(e){e.source&&e.source._id&&(O[e.source._id]||(w.push(e),O[e.source._id]=!0))})),w}return v}}));unwrapExports(suggestions);var suggestions_1=suggestions.replaceDiacritics,helper=createCommonjsModule((function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.hexToRGBA=t.getObjectFromLocalStorage=t.setObjectInLocalStorage=t.transformRequestUsingEndpoint=t.flatten=t.saveDataAsFile=t.transformTreeListLocalStateIntoQueryComptaibleFormat=t.transformRawTreeListData=t.recLookup=t.hasCustomRenderer=t.getComponent=t.isFunction=t.getCalendarIntervalErrorMessage=t.queryFormatMillisecondsMap=t.featuredSuggestionsActionTypes=t.suggestionTypes=t.getTopSuggestions=t.withClickIds=t.getCompositeAggsQuery=t.getAggsQuery=t.extractQueryFromDefaultQuery=t.updateInternalQuery=t.getSearchState=t.componentTypeToDefaultValue=t.extractQueryFromCustomQuery=t.getOptionsForCustomQuery=t.getOptionsFromQuery=t.parseHits=t.handleA11yAction=t.getInnerKey=t.getClassName=t.checkSomePropChange=t.checkPropChange=t.updateDefaultQuery=t.updateCustomQuery=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.isEqual=p,t.compareQueries=function(e,t){try{return p(JSON.parse(JSON.stringify(e)),JSON.parse(JSON.stringify(t)))}catch(e){return!1}},t.debounce=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(!t)return e;var r=null,o=null,s=function(){return e.apply(n,o)};return function(){o=arguments,clearTimeout(r),r=setTimeout(s,t)}},t.getQueryOptions=function(e){var t={};void 0!==e.size&&(t.size=e.size);if(e.includeFields||e.excludeFields){var n={};e.includeFields&&(n.includes=e.includeFields),e.excludeFields&&(n.excludes=e.excludeFields),t._source=n}return t},t.buildQuery=function(e,t,n,o){var s=null,a=null;e in t&&(s=function e(t,n){var r=[];if(Object.keys(t).forEach((function(o){if(Array.isArray(t[o])){var s=h(d(o),t[o].map((function(t){return"string"!=typeof t?e(t,n):t in n&&n[t]&&Object.keys(n[t]).length?n[t]:null})).filter((function(e){return!!e})));s&&Object.keys(s).length&&(r=[].concat(l(r),[s]))}else if("string"==typeof t[o]){var a=h(d(o),n[t[o]]);a&&Object.keys(a).length&&(r=[].concat(l(r),[a]))}else if("object"==typeof t[o]&&null!==t[o]){var i=e(t[o],n);i&&Object.keys(i).length&&(r=[].concat(l(r),[i]))}})),Array.isArray(r)&&r.length)return{bool:{must:r}};if(r&&Object.keys(r).length)return r;return null}(t[e],n),a=function e(t,n,o){var s={};Object.keys(t).forEach((function(o){Array.isArray(t[o])?t[o].forEach((function(e){n[e]&&(s=r({},s,n[e]))})):"string"==typeof t[o]?n[t[o]]&&(s=r({},s,n[t[o]])):"object"!=typeof t[o]||null===t[o]||Array.isArray(t[o])||(s=r({},s,e(t[o],n)))})),n[o]&&(s=r({},s,n[o]));return s}(t[e],o,e));return{queryObj:s,options:a}},t.pushToAndClause=function e(t,n){var o=r({},t);if(o.and)return Array.isArray(o.and)?(o.and=[].concat(l(o.and),[n]),o):"string"==typeof o.and?(o.and=[o.and,n],o):(o.and=e(o.and,n),o);return r({},o,{and:n})},t.checkValueChange=function(e,t,n,r){var o=t;Array.isArray(t)&&!t.length&&(o=null);var s=function(t){console.warn(e+" - beforeValueChange rejected the promise with ",t)};if(n)try{var a=n(o);a instanceof Promise?a.then(r).catch(s):r()}catch(e){s(e)}else r()},t.getAggsOrder=f,t.formatDate=function(e,t){if(t.parseDate)return t.parseDate(e,t);switch(t.queryFormat){case"epoch_millis":return e.valueOf();case"epoch_second":return Math.floor(e.valueOf()/1e3);default:return o.default[t.queryFormat]?e.format(o.default[t.queryFormat]):e.valueOf()}},t.unwrapToNativeDate=function(e){if(e)return new Date(e.valueOf());return e},t.getResultStats=function(e){var t=e.total,n=e.size,o=e.time,s=e.hidden,a=e.promotedResults;return r({numberOfResults:t},n>0?{numberOfPages:Math.ceil(t/n)}:null,{time:o||0,hidden:s,promoted:a?a.length:0})},t.extractFieldsFromSource=S,t.normalizeDataField=O,t.handleOnSuggestions=function(e,t,n){var r=n.parseSuggestion,o=n.promotedResults,a=n.enablePredictiveSuggestions,i=[];n.dataField?i=O(n.dataField).map((function(e){return e.field})):e&&Array.isArray(e)&&e.length>0&&e[0]&&e[0]._source&&(i=S(e[0]._source));var u=y(e,!1),c=y(o,!1);if(c&&c.length){var p=c.map((function(e){return e._id})).filter(Boolean);p&&(u=u.filter((function(e){return!p.includes(e._id)}))),u=[].concat(l(c),l(u))}var d=(0,s.default)({fields:i,suggestions:u,currentValue:t.toLowerCase(),showDistinctSuggestions:n.showDistinctSuggestions,enablePredictiveSuggestions:a,enableSynonyms:n.enableSynonyms});if(r)return d.map((function(e){return r(e)}));return d},t.isValidDateRangeQueryFormat=function(e){return Object.keys(o.default).includes(e)},t.setDeep=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.reduce((function(e,o,s){return r&&"object"!=typeof e[o]&&s!==t.length-1?(e[o]={},e[o]):s===t.length-1?(e[o]=n,n):"object"==typeof e[o]?e[o]:{}}),e)},t.getStackTrace=function(){var e=new Error;console.log(e.stack)};var o=a(dateFormats_1),s=a(suggestions);function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.updateCustomQuery=function(e,t,n){t.customQuery&&"function"==typeof t.customQuery&&t.setCustomQuery(e,t.customQuery(n,t))};var c=t.updateDefaultQuery=function(e,t,n){t.defaultQuery&&"function"==typeof t.defaultQuery&&t.setDefaultQuery(e,t.defaultQuery(n,t))};function p(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;if(e.constructor!==t.constructor)return!1;for(var n in e)if(e.hasOwnProperty(n)){if(!t.hasOwnProperty(n))return!1;if(e[n]!==t[n]){if("object"!=typeof e[n])return!1;if(!p(e[n],t[n]))return!1}}for(var r in t)if(t.hasOwnProperty(r)&&!e.hasOwnProperty(r))return!1;return!0}function d(e){return"and"===e?"must":"or"===e?"should":"must_not"}function h(e,t){var n=null;return(Array.isArray(t)&&t.length||!Array.isArray(t)&&t)&&(n={bool:u({},e,t)}),"should"===e&&n&&(n={bool:r({},n.bool,{minimum_should_match:1})}),n}function f(e){return"count"===e?{_count:"desc"}:{_key:e}}var m=t.checkPropChange=function(e,t,n){return!p(e,t)&&(n(),!0)},g=(t.checkSomePropChange=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],r=arguments[3];n.some((function(n){return m(e[n],t[n],r)}))},t.getClassName=function(e,t){return e&&e[t]||""},t.getInnerKey=function(e,t){return e&&e[t]||{}},t.handleA11yAction=function(e,t){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t())},function(e){var t=r({},e);return t.highlight&&Object.keys(t.highlight).forEach((function(e){var n=t.highlight[e][0];t._source=r({},t._source,u({},e,n))})),t}),y=t.parseHits=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=null;return e&&(n=[].concat(l(e)).map((function(e){var n=r({},e);return t&&(n=g(e)),Object.keys(n).filter((function(e){return"_source"!==e})).reduce((function(e,t){return e[t]=n[t],e}),r({highlight:n.highlight||{}},n._source))}))),n};var v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e){e.query;var t=i(e,["query"]);return Object.keys(t).length?t:null}return null};t.getOptionsFromQuery=v;t.getOptionsForCustomQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e){e.query,e.id,e.params;var t=i(e,["query","id","params"]);return Object.keys(t).length?t:null}return null};t.extractQueryFromCustomQuery=function(e){return e?e.id?{id:e.id,params:e.params}:e.query:null};function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=arguments[2];Object.keys(e).forEach((function(o){var s=e[o]||{},a=s.hidden,i=s.total,l=s.time;t[o]=r({},t[o],{resultStats:r({},t[o].resultStats,{numberOfResults:i,time:l,promoted:n[o]&&n[o].length,hidden:a||0})})}))}var _=t.componentTypeToDefaultValue=(u(n={},constants$1.componentTypes.singleList,""),u(n,constants$1.componentTypes.multiList,[]),u(n,constants$1.componentTypes.singleDataList,""),u(n,constants$1.componentTypes.singleDropdownList,""),u(n,constants$1.componentTypes.multiDataList,[]),u(n,constants$1.componentTypes.multiDropdownList,[]),u(n,constants$1.componentTypes.tagCloud,""),u(n,constants$1.componentTypes.toggleButton,""),u(n,constants$1.componentTypes.singleDropdownRange,""),u(n,constants$1.componentTypes.multiDropdownRange,[]),u(n,constants$1.componentTypes.singleRange,""),u(n,constants$1.componentTypes.multiRange,[]),n),$=(t.getSearchState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.selectedValues,o=e.queryLog,s=e.dependencyTree,a=e.props,i=e.hits,l=e.aggregations,c=e.isLoading,p=e.error,d=e.promotedResults,h=e.settings,f=e.customData,m=e.rawData,g={},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return Object.keys(e).forEach((function(n){g[n]=r({},g[n],t?u({},t,e[n]):e[n])}))};return y(a),Object.keys(n||{}).forEach((function(e){var t=g[e],o=n[e],s=a[e],i=s?s.componentType:null;if(o){var l=r({},t,r({title:o.label,componentType:o.componentType,value:o.value||_[i]},o.category&&{category:o.category},{URLParams:o.URLParams}));Object.keys(l).length&&(g[e]=l)}})),t||(y(o),y(i,"hits"),y(l,"aggregations"),y(c,"isLoading"),y(p,"error"),y(d,"promotedData"),y(h,"settings"),y(f,"customData"),y(m,"rawData"),b(i,g,d)),y(s,"react"),g},t.updateInternalQuery=function(e,t,n,o,s,a){var i=o.defaultQuery,l=void 0,u=s;if(i){var p=i(n,o);u=(p||{}).query,l=v(p),c(e,o,n)}u?(o.setQueryOptions(e,r({},l,t||s)),o.updateQuery(r({componentId:e,query:u,value:n},a))):o.setQueryOptions(e,r({},l,t||s))},function(e,t){var n={},r=e.defaultQuery;if(r){var o=r(t,e);if(o){o.query;var s=i(o,["query"]);s&&(n=s)}}return n});t.extractQueryFromDefaultQuery=$;t.getAggsQuery=function(e,t,n){var o=t,s=n.dataField,a=n.size,i=n.sortBy,c=n.showMissing,p=n.missingLabel,d=n.aggregationSize;if(o.size=0,"string"==typeof s)o.aggs=u({},s,{terms:r({field:s,size:a,aggregationSize:d,order:f(i||"count")},c?{missing:p}:{})});else{var h=void 0;[].concat(l(s)).reverse().forEach((function(e){h=u({},e,{terms:r({field:e,size:a,aggregationSize:d,order:f(i||"count")},c?{missing:p}:{}),aggs:h})})),o.aggs=h}return n.nestedField&&(o.aggs={reactivesearch_nested:{nested:{path:n.nestedField},aggs:o.aggs}}),r({},o,$(n,e))},t.getCompositeAggsQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,n=void 0===t?{}:t,o=e.props,s=e.after,a=void 0===s?null:s,i=e.showTopHits,l=void 0!==i&&i,c=e.value,p=n,d=o.dataField,h=o.size,f=o.sortBy,m=o.showMissing,g=o.aggregationField,y=g||d,v="count"===f?{}:{order:f};return p.aggs=u({},y,r({composite:r({sources:[u({},y,{terms:r({field:y},v,m?{missing_bucket:!0}:{})})],size:h},a)},l?{aggs:u({},y,{top_hits:{size:1}})}:{})),p.size=0,o.nestedField&&(p.aggs={reactivesearch_nested:{nested:{path:o.nestedField},aggs:p.aggs}}),r({},p,$(o,c))};var C=t.withClickIds=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e,t){return r({},e,{_click_id:t})}))};function S(e){var t=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).reduce((function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments[1],a=n?n+"."+s:s;return Number.isNaN(parseInt(s,10))||(a=n||s),t[s]&&"object"==typeof t[s]?r({},o,e(t[s],a)):r({},o,u({},a,!0))}),[])}(e);return Object.keys(t)}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return"string"==typeof e?[{field:e,weight:t.length?t[0]:void 0}]:Array.isArray(e)?e.map((function(e,n){var r={};return"string"==typeof e?(r.field=e,t.length>n&&(r.weight=t[n])):"object"==typeof e&&e&&e.field&&(r.field=e.field,r.weight=e.weight),r})):"object"==typeof e&&e?[{field:e.field,weight:e.weight}]:[]}t.getTopSuggestions=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments[2],r=y(e,!1),o=(0,s.default)({fields:["key","key.autosuggest","key.search"],suggestions:r||[],currentValue:t.toLowerCase(),showDistinctSuggestions:n});return C(o)};t.suggestionTypes={Popular:"popular",Index:"index",Recent:"recent",Promoted:"promoted",Featured:"featured",FAQ:"faq",Document:"document"},t.featuredSuggestionsActionTypes={NAVIGATE:"navigate",FUNCTION:"function",SELECT:"select"};var w=t.queryFormatMillisecondsMap={minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629746e3,quarter:7889238e3,year:31556952e3},T=(t.getCalendarIntervalErrorMessage=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"minute",n=Object.keys(w),r=n.indexOf(t);if(-1===r&&console.error("Invalid calendarInterval Passed"),"year"===t)return"Try using a shorter range of values.";for(var o=r+1;o<n.length;o+=1)if(e/Object.values(w)[o]<=100){var s=n[o];return{errorMessage:"Please pass calendarInterval prop with value greater than or equal to a `"+s+"` for a meaningful resolution of histogram.",calculatedCalendarInterval:s}}return{errorMessage:"Try using a shorter range of values.",calculatedCalendarInterval:"year"}},t.isFunction=function(e){return"function"==typeof e});t.getComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.children,r=t.render;return T(n)?n(e):T(r)?r(e):null},t.hasCustomRenderer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.render,n=e.children;return T(n)||T(t)},t.recLookup=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";try{var o=n.split(r);return 1===o.length?t[o[0]]:e(t[o[0]],o.slice(1).join(r),r)}catch(e){return!1}};t.transformRawTreeListData=function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=[];if(t instanceof Object){var a=Object.keys(t);a.forEach((function(a){Array.isArray(t[a].buckets)&&t[a].buckets.forEach((function(t){s.push(r({key:t.key,count:t.doc_count,level:o},t[n[o+1]]instanceof Object?{list:e(u({},n[o+1],t[n[o+1]]),n,o+1)}:{}))}))}))}return s},t.transformTreeListLocalStateIntoQueryComptaibleFormat=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[];return t instanceof Object&&(Object.keys(t).length?Object.keys(t).forEach((function(o){t[o]instanceof Object&&r.push.apply(r,l(e(t[o],n?n+" > "+o:o))),!0===t[o]&&r.push(n?n+" > "+o:o)})):n&&r.push(n)),r},t.saveDataAsFile=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"exportedData",t=arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"csv",r=t,o="text/"+n;"json"===n&&(r=JSON.stringify(r,0,4));var s=new Blob([r],{type:o}),a=document.createElement("a");a.download=e+"."+n,a.href=window.URL.createObjectURL(s),a.dataset.downloadurl=[o,a.download,a.href].join(":");var i=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});a.dispatchEvent(i),a.remove()},t.flatten=function(e){var t={};return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(Object(n)!==n)t[r]=n;else if(Array.isArray(n))t[r]=JSON.stringify(n);else{var o=!0;Object.keys(n).forEach((function(t){o=!1,e(n[t],r?r+"."+t:t)})),o&&r&&(t[r]={})}}(e),t};t.transformRequestUsingEndpoint=function(e,t){if(t instanceof Object){var n=t.headers,o=void 0===n?{}:n,s=t.body,a=i(t,["headers","body"]);return r({},e,a,{headers:r({},e.headers,o)},s instanceof Object?{body:JSON.stringify(s)}:{})}return e};t.setObjectInLocalStorage=function(e,t){if("undefined"!=typeof localStorage){if(!e||!t)throw new Error("Key and value are required for setObject");try{var n=JSON.stringify(t);localStorage.setItem(e,n)}catch(e){console.error("Error saving object to localStorage:",e)}}else console.warn("localstorage not available")},t.getObjectFromLocalStorage=function(e){if(!e)throw new Error("Key is required for getObject");try{var t=localStorage.getItem(e);return null===t?null:JSON.parse(t)}catch(e){return console.error("Error retrieving object from localStorage:",e),null}},t.hexToRGBA=function(e){if(function(e){return/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/.test(e)}(e)||function(e){return/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(0|1|0\.\d{1,2})\)$/.test(e)}(e)||function(e){return/^hsl\(\d{1,3},\s*[\d.]+%,\s*[\d.]+%\)$/.test(e)}(e)||function(e){return/^hsla\(\d{1,3},\s*[\d.]+%,\s*[\d.]+%,\s*(0|1|0\.\d{1,2})\)$/.test(e)}(e))return e;if(!function(e){return/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(e)}(e))return null;var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,(function(e,t,n,r,o){return t+t+n+n+r+r+(o?o+o:"")})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(t);return n?"rgba("+parseInt(n[1],16)+", "+parseInt(n[2],16)+", "+parseInt(n[3],16)+", "+(n[4]?parseInt(n[4],16)/255:1)+")":null}}));unwrapExports(helper);var helper_1=helper.hexToRGBA,helper_2=helper.getObjectFromLocalStorage,helper_3=helper.setObjectInLocalStorage,helper_4=helper.transformRequestUsingEndpoint,helper_5=helper.flatten,helper_6=helper.saveDataAsFile,helper_7=helper.transformTreeListLocalStateIntoQueryComptaibleFormat,helper_8=helper.transformRawTreeListData,helper_9=helper.recLookup,helper_10=helper.hasCustomRenderer,helper_11=helper.getComponent,helper_12=helper.isFunction,helper_13=helper.getCalendarIntervalErrorMessage,helper_14=helper.queryFormatMillisecondsMap,helper_15=helper.featuredSuggestionsActionTypes,helper_16=helper.suggestionTypes,helper_17=helper.getTopSuggestions,helper_18=helper.withClickIds,helper_19=helper.getCompositeAggsQuery,helper_20=helper.getAggsQuery,helper_21=helper.extractQueryFromDefaultQuery,helper_22=helper.updateInternalQuery,helper_23=helper.getSearchState,helper_24=helper.componentTypeToDefaultValue,helper_25=helper.extractQueryFromCustomQuery,helper_26=helper.getOptionsForCustomQuery,helper_27=helper.getOptionsFromQuery,helper_28=helper.parseHits,helper_29=helper.handleA11yAction,helper_30=helper.getInnerKey,helper_31=helper.getClassName,helper_32=helper.checkSomePropChange,helper_33=helper.checkPropChange,helper_34=helper.updateDefaultQuery,helper_35=helper.updateCustomQuery,helper_36=helper.isEqual,helper_37=helper.compareQueries,helper_38=helper.debounce,helper_39=helper.getQueryOptions,helper_40=helper.buildQuery,helper_41=helper.pushToAndClause,helper_42=helper.checkValueChange,helper_43=helper.getAggsOrder,helper_44=helper.formatDate,helper_45=helper.unwrapToNativeDate,helper_46=helper.getResultStats,helper_47=helper.extractFieldsFromSource,helper_48=helper.normalizeDataField,helper_49=helper.handleOnSuggestions,helper_50=helper.isValidDateRangeQueryFormat,helper_51=helper.setDeep,helper_52=helper.getStackTrace,aiReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_AI_RESPONSE)return(0,helper.setObjectInLocalStorage)("AISessions",n({},(0,helper.getObjectFromLocalStorage)(constants$1.AI_LOCAL_CACHE_KEY)||{},o({},t.component,n({},e[t.component]||{},t.payload)))),n({},e,o({},t.component,n({},e[t.component]?e[t.component]:{},{response:n({},e[t.component]?e[t.component].response:{},t.payload),isLoading:!1,error:null})));if(t.type===constants.REMOVE_AI_RESPONSE){e[t.component];var s=r(e,[t.component]);return s}if(t.type===constants.SET_AI_RESPONSE_ERROR)return n({},e,o({},t.component,n({},e[t.component]?e[t.component]:{},{error:t.error,isLoading:!1,response:null},t.meta||{})));if(t.type===constants.SET_AI_RESPONSE_LOADING)return n({},e,o({},t.component,n({},e[t.component]?e[t.component]:{},{isLoading:t.isLoading})));return e}}));unwrapExports(aiReducer_1);var reducers=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=D(componentsReducer_1),r=D(watchManReducer_1),o=D(dependencyTreeReducer_1),s=D(queryReducer_1),a=D(appbaseQueryReducer_1),i=D(queryOptionsReducer_1),l=D(configReducer_1),u=D(appbaseRefReducer_1),c=D(hitsReducer_1),p=D(logsReducer_1),d=D(combinedLogsReducer_1),h=D(valueReducer_1),f=D(internalValueReducer),m=D(loadingReducer_1),g=D(errorReducer_1),y=D(timestampReducer_1),v=D(headersReducer_1),b=D(mapDataReducer_1),_=D(queryListenerReducer_1),$=D(analyticsReducer_1),C=D(promotedResultsReducer_1),S=D(customDataReducer_1),O=D(defaultQueryReducer_1),w=D(customQueryReducer_1),T=D(propsReducer),k=D(aggsReducer_1),A=D(compositeAggsReducer_1),E=D(appliedSettingsReducer_1),I=D(customHighlightReducer_1),R=D(rawDataReducer_1),x=D(querySuggestionsReducer_1),P=D(defaultPopularSuggestions_1),L=D(queryToHitsReducer_1),Q=D(recentSearches),V=D(googleMapScriptReducer_1),M=D(analyticsRefReducer_1),N=D(registeredComponentReducer),j=D(aiReducer_1);function D(e){return e&&e.__esModule?e:{default:e}}t.default=(0,redux.combineReducers)({components:n.default,customQueries:w.default,defaultQueries:O.default,customHighlightOptions:I.default,settings:E.default,watchMan:r.default,queryList:s.default,queryOptions:i.default,dependencyTree:o.default,appbaseRef:u.default,analyticsRef:M.default,config:l.default,hits:c.default,promotedResults:C.default,customData:S.default,aggregations:k.default,compositeAggregations:A.default,queryLog:p.default,combinedLog:d.default,selectedValues:h.default,internalValues:f.default,isLoading:m.default,error:g.default,timestamp:y.default,headers:v.default,mapData:b.default,queryListener:_.default,analytics:$.default,props:T.default,rawData:R.default,querySuggestions:x.default,defaultPopularSuggestions:P.default,queryToHits:L.default,recentSearches:Q.default,urlValues:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e},googleMapScriptStatus:V.default,lastUsedAppbaseQuery:a.default,registeredComponentsTimestamps:N.default,AIResponses:j.default})}));unwrapExports(reducers);var middlewares=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.aiResponseMiddleware=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r=t.aiResponseMiddleware=function(e){return function(t){var r={},o={};return function(s){if(s.type===constants.SET_AI_RESPONSE_DELAYED){var a=s.component;r[a]||(r[a]=[],o[a]=!1),r[a].push(n({},s,{type:constants.SET_AI_RESPONSE})),function t(n){if(0!==r[n].length&&!o[n]){o[n]=!0;var s=r[n].shift();requestAnimationFrame((function(){e.dispatch(s),o[n]=!1,t(n)}))}}(a)}else if(s.type===constants.SET_AI_RESPONSE_LOADING&&s.isLoading){var i=s.component;r[i]&&(r[i]=[],o[i]=!1)}return t(s)}}};t.default=r}));unwrapExports(middlewares);var middlewares_1=middlewares.aiResponseMiddleware,dayjs_min=createCommonjsModule((function(e,t){e.exports=function(){var e=6e4,t=36e5,n="millisecond",r="second",o="minute",s="hour",a="day",i="week",l="month",u="quarter",c="year",p="date",d="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,l),s=n-o<0,a=t.clone().add(r+(s?-1:1),l);return+(-(r+(n-o)/(s?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:c,w:i,d:a,D:p,h:s,m:o,s:r,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",b={};b[v]=m;var _=function(e){return e instanceof O},$=function e(t,n,r){var o;if(!t)return v;if("string"==typeof t){var s=t.toLowerCase();b[s]&&(o=s),n&&(b[s]=n,o=s);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var i=t.name;b[i]=t,o=i}return!r&&o&&(v=o),o||!r&&v},C=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new O(n)},S=y;S.l=$,S.i=_,S.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var O=function(){function m(e){this.$L=$(e.locale,null,!0),this.parse(e)}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return C(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<C(e)},g.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,u=!!S.u(t)||t,d=S.p(e),h=function(e,t){var r=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return u?r:r.endOf(a)},f=function(e,t){return S.w(n.toDate()[e].apply(n.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(d){case c:return u?h(1,0):h(31,11);case l:return u?h(1,g):h(0,g+1);case i:var b=this.$locale().weekStart||0,_=(m<b?m+7:m)-b;return h(u?y-_:y+(6-_),g);case a:case p:return f(v+"Hours",0);case s:return f(v+"Minutes",1);case o:return f(v+"Seconds",2);case r:return f(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var i,u=S.p(e),d="set"+(this.$u?"UTC":""),h=(i={},i[a]=d+"Date",i[p]=d+"Date",i[l]=d+"Month",i[c]=d+"FullYear",i[s]=d+"Hours",i[o]=d+"Minutes",i[r]=d+"Seconds",i[n]=d+"Milliseconds",i)[u],f=u===a?this.$D+(t-this.$W):t;if(u===l||u===c){var m=this.clone().set(p,1);m.$d[h](f),m.init(),this.$d=m.set(p,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](f);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[S.p(e)]()},g.add=function(n,u){var p,d=this;n=Number(n);var h=S.p(u),f=function(e){var t=C(d);return S.w(t.date(t.date()+Math.round(e*n)),d)};if(h===l)return this.set(l,this.$M+n);if(h===c)return this.set(c,this.$y+n);if(h===a)return f(1);if(h===i)return f(7);var m=(p={},p[o]=e,p[s]=t,p[r]=1e3,p)[h]||1,g=this.$d.getTime()+n*m;return S.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=S.z(this),s=this.$H,a=this.$m,i=this.$M,l=n.weekdays,u=n.months,c=n.meridiem,p=function(e,n,o,s){return e&&(e[n]||e(t,r))||o[n].slice(0,s)},h=function(e){return S.s(s%12||12,e,"0")},m=c||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(f,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return S.s(t.$y,4,"0");case"M":return i+1;case"MM":return S.s(i+1,2,"0");case"MMM":return p(n.monthsShort,i,u,3);case"MMMM":return p(u,i);case"D":return t.$D;case"DD":return S.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(n.weekdaysMin,t.$W,l,2);case"ddd":return p(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(s);case"HH":return S.s(s,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return m(s,a,!0);case"A":return m(s,a,!1);case"m":return String(a);case"mm":return S.s(a,2,"0");case"s":return String(t.$s);case"ss":return S.s(t.$s,2,"0");case"SSS":return S.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,p,d){var h,f=this,m=S.p(p),g=C(n),y=(g.utcOffset()-this.utcOffset())*e,v=this-g,b=function(){return S.m(f,g)};switch(m){case c:h=b()/12;break;case l:h=b();break;case u:h=b()/3;break;case i:h=(v-y)/6048e5;break;case a:h=(v-y)/864e5;break;case s:h=v/t;break;case o:h=v/e;break;case r:h=v/1e3;break;default:h=v}return d?h:S.a(h)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return b[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=$(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return S.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),w=O.prototype;return C.prototype=w,[["$ms",n],["$s",r],["$m",o],["$H",s],["$W",a],["$M",l],["$y",c],["$D",p]].forEach((function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||(e(t,O,C),e.$i=!0),C},C.locale=$,C.isDayjs=_,C.unix=function(e){return C(1e3*e)},C.en=b[v],C.Ls=b,C.p={},C}()})),transform=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.transformValueToComponentStateFormat=t.getDependentQueries=t.extractPropsFromState=t.getValidInterval=t.getRSQuery=t.hasPaginationSupport=t.isComponentUsesLabelAsValue=t.isSearchComponent=t.isDRSRangeComponent=t.getHistogramComponentID=t.getInternalComponentID=t.isInternalComponent=t.getNormalizedField=t.componentToTypeMap=void 0;var n,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.flatReactProp=O;var o=a(dayjs_min),s=a(dateFormats_1);function a(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=t.componentToTypeMap=(l(n={},constants$1.componentTypes.reactiveList,constants$1.queryTypes.search),l(n,constants$1.componentTypes.dataSearch,constants$1.queryTypes.search),l(n,constants$1.componentTypes.categorySearch,constants$1.queryTypes.search),l(n,constants$1.componentTypes.searchBox,constants$1.queryTypes.suggestion),l(n,constants$1.componentTypes.AIAnswer,constants$1.queryTypes.search),l(n,constants$1.componentTypes.singleList,constants$1.queryTypes.term),l(n,constants$1.componentTypes.multiList,constants$1.queryTypes.term),l(n,constants$1.componentTypes.singleDataList,constants$1.queryTypes.term),l(n,constants$1.componentTypes.singleDropdownList,constants$1.queryTypes.term),l(n,constants$1.componentTypes.multiDataList,constants$1.queryTypes.term),l(n,constants$1.componentTypes.multiDropdownList,constants$1.queryTypes.term),l(n,constants$1.componentTypes.tagCloud,constants$1.queryTypes.term),l(n,constants$1.componentTypes.toggleButton,constants$1.queryTypes.term),l(n,constants$1.componentTypes.reactiveChart,constants$1.queryTypes.term),l(n,constants$1.componentTypes.treeList,constants$1.queryTypes.term),l(n,constants$1.componentTypes.numberBox,constants$1.queryTypes.term),l(n,constants$1.componentTypes.datePicker,constants$1.queryTypes.range),l(n,constants$1.componentTypes.dateRange,constants$1.queryTypes.range),l(n,constants$1.componentTypes.dynamicRangeSlider,constants$1.queryTypes.range),l(n,constants$1.componentTypes.singleDropdownRange,constants$1.queryTypes.range),l(n,constants$1.componentTypes.multiDropdownRange,constants$1.queryTypes.range),l(n,constants$1.componentTypes.singleRange,constants$1.queryTypes.range),l(n,constants$1.componentTypes.multiRange,constants$1.queryTypes.range),l(n,constants$1.componentTypes.rangeSlider,constants$1.queryTypes.range),l(n,constants$1.componentTypes.ratingsFilter,constants$1.queryTypes.range),l(n,constants$1.componentTypes.rangeInput,constants$1.queryTypes.range),l(n,constants$1.componentTypes.geoDistanceDropdown,constants$1.queryTypes.geo),l(n,constants$1.componentTypes.geoDistanceSlider,constants$1.queryTypes.geo),l(n,constants$1.componentTypes.reactiveMap,constants$1.queryTypes.geo),n),c=[constants$1.componentTypes.multiRange,constants$1.componentTypes.multiDropdownRange],p=[constants$1.componentTypes.dateRange,constants$1.componentTypes.datePicker],d=[constants$1.componentTypes.categorySearch,constants$1.componentTypes.dataSearch,constants$1.componentTypes.searchBox],h=[constants$1.componentTypes.singleList,constants$1.componentTypes.multiList,constants$1.componentTypes.singleDropdownList,constants$1.componentTypes.multiDropdownList],f=t.getNormalizedField=function(e){return e&&!Array.isArray(e)?[e]:e},m=t.isInternalComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith("__internal")},g=t.getInternalComponentID=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__internal"},y=t.getHistogramComponentID=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__histogram__internal"},v=t.isDRSRangeComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith("__range__internal")},b=t.isSearchComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return d.includes(e)},_=t.isComponentUsesLabelAsValue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e===constants$1.componentTypes.multiDataList||e===constants$1.componentTypes.singleDataList||e===constants$1.componentTypes.tabDataList},$=t.hasPaginationSupport=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return h.includes(e)},C=t.getRSQuery=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&e){var o=t.type?t.type:u[t.componentType];if(t.componentType!==constants$1.componentTypes.AIAnswer&&!b(t.componentType)&&!t.dataField)return null;var s=void 0,a=t.compoundClause;t.endpoint instanceof Object&&(s=t.endpoint);var i={enableFeaturedSuggestions:t.enableFeaturedSuggestions,featuredSuggestionsConfig:t.featuredSuggestionsConfig},l={enableFAQSuggestions:t.enableFAQSuggestions,FAQSuggestionsConfig:t.FAQSuggestionsConfig};return t.enableFAQSuggestions&&!t.searchboxId&&(l={},console.error("Reactivesearch Error: You should also pass a searchboxId when passing enableFAQSuggestions as true.\nRefer to Searchbox component documentation specific to frontend frameworks.\n\nReact(https://docs.reactivesearch.io/docs/reactivesearch/react/search/searchbox/)\n\nVue(https://docs.reactivesearch.io/docs/reactivesearch/vue/search/SearchBox/).")),t.enableFeaturedSuggestions&&!t.searchboxId&&(i={},console.error("Reactivesearch Error: You should also pass a searchboxId when passing enableFeaturedSuggestions.\nRefer to Searchbox component documentation specific to frontend frameworks.\n\nReact(https://docs.reactivesearch.io/docs/reactivesearch/react/search/searchbox/)\n\nVue(https://docs.reactivesearch.io/docs/reactivesearch/vue/search/SearchBox/).")),a&&!["filter","must"].includes(a)&&(console.error("Reactivesearch Error: Invalid prop supplied - compoundClause. Prop can be one of ['filter', 'must']"),a=void 0),r({id:e,type:o||constants$1.queryTypes.search,dataField:f(t.dataField),execute:n,react:t.react,highlight:t.highlight,highlightField:f(t.highlightField),fuzziness:t.fuzziness,searchOperators:t.searchOperators,includeFields:t.includeFields,excludeFields:t.excludeFields,size:t.size,aggregationSize:t.aggregationSize,from:t.from||void 0,queryFormat:t.queryFormat,sortBy:t.sortBy,fieldWeights:f(t.fieldWeights),includeNullValues:t.includeNullValues,aggregationField:t.aggregationField||void 0,categoryField:t.categoryField||void 0,missingLabel:t.missingLabel||void 0,showMissing:t.showMissing,nestedField:t.nestedField||void 0,interval:t.interval,highlightConfig:t.customHighlight||t.highlightConfig,customQuery:t.customQuery,defaultQuery:t.defaultQuery,value:t.value,categoryValue:t.categoryValue||void 0,after:t.after||void 0,aggregations:t.aggregations||void 0,enableSynonyms:t.enableSynonyms,selectAllLabel:t.selectAllLabel,pagination:t.pagination,queryString:t.queryString,distinctField:t.distinctField,distinctFieldConfig:t.distinctFieldConfig,index:t.index,compoundClause:a},o===constants$1.queryTypes.suggestion?r({enablePopularSuggestions:t.enablePopularSuggestions,enableEndpointSuggestions:t.enableEndpointSuggestions,enableRecentSuggestions:t.enableRecentSuggestions,popularSuggestionsConfig:t.popularSuggestionsConfig,recentSuggestionsConfig:t.recentSuggestionsConfig,applyStopwords:t.applyStopwords,customStopwords:t.customStopwords,enablePredictiveSuggestions:t.enablePredictiveSuggestions,indexSuggestionsConfig:t.indexSuggestionsConfig,enableDocumentSuggestions:t.enableDocumentSuggestions,showDistinctSuggestions:t.showDistinctSuggestions,documentSuggestionsConfig:t.enableDocumentSuggestions?t.documentSuggestionsConfig:void 0},i,l,{enableIndexSuggestions:t.enableIndexSuggestions},t.searchboxId?{searchboxId:t.searchboxId}:{}):{},{calendarInterval:t.calendarInterval,endpoint:s,range:t.range},o!==constants$1.queryTypes.suggestion&&t.enableAI&&n?r({enableAI:!0},t.AIConfig?{AIConfig:t.AIConfig}:{},{execute:!0}):{})}return null},S=(t.getValidInterval=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Math.ceil((t.end-t.start)/100)||1;return e?e<n?n:e:n},t.extractPropsFromState=function(e,t,n){var a=e.props[t];if(!a)return null;var i=a.type?a.type:u[a.componentType],l=e.selectedValues[t],d=null!=l?l.value:void 0,h=a.queryFormat,f=void 0,m=a.interval,C=i,S=a.dataField,O=a.aggregations,w=void 0,T=a.from,k=void 0;if(i===constants$1.queryTypes.term)if(a.showLoadMore&&$(a.componentType)&&(w=!0),null!=d&&"object"==typeof d&&d.value)d=d.value;else if(Array.isArray(d)){var A=[];d.forEach((function(e){null!=e&&"object"==typeof e&&e.value?A.push(e.value):A.push(e)})),d=A}if(i===constants$1.queryTypes.range){if(Array.isArray(d))d=c.includes(a.componentType)?d.map((function(e){return{start:e.start,end:e.end}})):{start:d[0],end:d[1]};else if(a.showHistogram){var E=g(t),I=e.internalValues[E];if(!I){var R=y(t);I=e.internalValues[R]}I&&Array.isArray(I.value)&&(d={start:I.value[0],end:I.value[1]})}if(v(t)?O=["min","max"]:a.showHistogram&&(O=["histogram"]),a.componentType===constants$1.componentTypes.dynamicRangeSlider||a.componentType===constants$1.componentTypes.rangeSlider){f=Object.keys(s.default).includes(h)?a.calendarInterval:void 0,d&&(d=(0,helper.isValidDateRangeQueryFormat)(a.queryFormat)?{start:(0,helper.formatDate)((0,o.default)(new Date(d.start)),a),end:(0,helper.formatDate)((0,o.default)(new Date(d.end)),a)}:{start:parseFloat(d.start),end:parseFloat(d.end)});var x=void 0;a.componentType===constants$1.componentTypes.dynamicRangeSlider?(x=e.aggregations[t+"__range__internal"],x=a.nestedField?x&&e.aggregations[t+"__range__internal"][a.nestedField].min?{start:e.aggregations[t+"__range__internal"][a.nestedField].min.value,end:e.aggregations[t+"__range__internal"][a.nestedField].max.value}:null:x&&e.aggregations[t+"__range__internal"].min&&e.aggregations[t+"__range__internal"].min.value?{start:e.aggregations[t+"__range__internal"].min.value,end:e.aggregations[t+"__range__internal"].max.value}:null):x=a.range,x&&(k=(0,helper.isValidDateRangeQueryFormat)(a.queryFormat)?{start:(0,helper.formatDate)((0,o.default)(x.start),a),end:(0,helper.formatDate)((0,o.default)(x.end),a)}:{start:parseFloat(x.start),end:parseFloat(x.end)})}p.includes(a.componentType)&&d&&(0,helper.isValidDateRangeQueryFormat)(a.queryFormat)&&(d="string"==typeof d?{start:(0,helper.formatDate)((0,o.default)(d).subtract(24,"hour"),a),end:(0,helper.formatDate)((0,o.default)(d),a)}:Array.isArray(d)?d.map((function(e){return{start:(0,helper.formatDate)((0,o.default)(e).subtract(24,"hour"),a),end:(0,helper.formatDate)((0,o.default)(e),a)}})):{start:(0,helper.formatDate)((0,o.default)(d.start).subtract(24,"hour"),a),end:(0,helper.formatDate)((0,o.default)(d.end),a)})}if(i===constants$1.queryTypes.geo){d=void 0;var P=e.selectedValues[t]||e.internalValues[t]||e.internalValues[g(t)];P&&P.meta&&(P.meta.distance&&P.meta.coordinates&&(d={distance:P.meta.distance,location:P.meta.coordinates},a.unit&&(d.unit=a.unit)),P.meta.mapBoxBounds&&P.meta.mapBoxBounds.top_left&&P.meta.mapBoxBounds.bottom_right&&(d={geoBoundingBox:{topLeft:P.meta.mapBoxBounds.top_left[1]+", "+P.meta.mapBoxBounds.top_left[0],bottomRight:P.meta.mapBoxBounds.bottom_right[1]+", "+P.meta.mapBoxBounds.bottom_right[0]}}))}if(a.componentType===constants$1.componentTypes.numberBox&&("exact"===h?C="term":(C="range",d="lte"===h?{end:d,boost:2}:{start:d,boost:2}),h="or"),a.componentType===constants$1.componentTypes.reactiveComponent&&(C="term",S="reactive_component_field",d=void 0),b(a.componentType)&&!d&&(d=""),_(a.componentType)){var L=a.data,Q=a.selectAllLabel,V=[];d&&Array.isArray(d)?V=d:d&&"string"==typeof d&&(V=[d]);var M=[];V.length&&L&&Array.isArray(L)&&V.forEach((function(e){var t=L.find((function(t){return t.label===e}));t&&t.value&&M.push(t.value)})),Q&&V.length&&V.includes(Q)&&(M=V),d=M.length?M:void 0}a.componentType===constants$1.componentTypes.reactiveList&&(d>0&&(T=(d-1)*(a.size||10)),d=void 0);var N=d||void 0;a.componentType===constants$1.componentTypes.searchBox&&Array.isArray(N)&&(N=void 0);var j=void 0;return a.endpoint instanceof Object&&(j=r({},j||{},a.endpoint)),r({},a,{endpoint:j,calendarInterval:f,dataField:S,queryFormat:h,type:C,aggregations:O,interval:m,react:e.dependencyTree?e.dependencyTree[t]:void 0,customQuery:e.customQueries?e.customQueries[t]:void 0,defaultQuery:e.defaultQueries?e.defaultQueries[t]:void 0,customHighlight:e.customHighlightOptions?e.customHighlightOptions[t]:void 0,categoryValue:e.internalValues[t]?e.internalValues[t].category:void 0,value:N,pagination:w,from:T,range:k},n)});function O(e,t){var n=[];return function e(t){t&&Object.keys(t)&&Object.keys(t).forEach((function(r){t[r]&&("string"==typeof t[r]?n=[].concat(i(n),[t[r]]):Array.isArray(t[r])?n=[].concat(i(n),i(t[r])):"object"==typeof t[r]&&e(t[r]))}))}(e),n=n.filter((function(e){return e!==t}))}t.getDependentQueries=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o={},s=O(e.dependencyTree[t],t);return s.forEach((function(t){var s=t,a=e.customQueries[s];if(!m(s)){var i=e.selectedValues[s]||e.internalValues[s];if((i&&i.value||a)&&!o[s]){var l=!1,u=e.props[s];!Array.isArray(n)||!n.includes(s)||u.componentType===constants$1.componentTypes.searchBox&&u.enableAI||(l=!0);var c=C(s,S(e,s,r({},u&&r({},u.componentType===constants$1.componentTypes.searchBox?r({},!1===l?{type:constants$1.queryTypes.search}:{},i.category?{categoryValue:i.category}:{categoryValue:void 0},i.value?{value:i.value}:{}):{},u.componentType===constants$1.componentTypes.categorySearch?r({},i.category?{categoryValue:i.category}:{categoryValue:void 0}):{}))),l);c&&(o[s]=c)}}})),o},t.transformValueToComponentStateFormat=function(e,t){var n=t.componentType,s=t.data,a=t.queryFormat,l=e,u={};if(e)switch(n){case constants$1.componentTypes.singleDataList:case constants$1.componentTypes.tabDataList:l="",l=Array.isArray(e)&&"string"==typeof e[0]?e[0]:"object"==typeof e&&e.label?e.label:e;break;case constants$1.componentTypes.multiDataList:l=[],Array.isArray(e)&&e.forEach((function(e){"object"==typeof e&&(e.label||e.value)?l.push(e.label||e.value):"string"==typeof e&&l.push(e)}));break;case constants$1.componentTypes.toggleButton:if(l=[],Array.isArray(e))e.forEach((function(e){if("object"==typeof e&&e.label&&e.value)l.push(e);else if("string"==typeof e){var t=s.find((function(t){return t.label.trim()===e.trim()||t.value.trim()===e.trim()}));l.push(t)}}));else if("object"==typeof e&&e.label&&e.value)l=e.value;else if("string"==typeof e){var c=s.find((function(t){return t.label.trim()===e.trim()||t.value.trim()===e.trim()}));l=c.value}break;case constants$1.componentTypes.singleRange:case constants$1.componentTypes.singleDropdownRange:if(l={},Array.isArray(e)||"object"!=typeof e){if("string"==typeof e){var p=s.find((function(t){return t.label.trim()===e.trim()}));l=r({},p)}}else l=r({},e);break;case constants$1.componentTypes.multiDropdownRange:case constants$1.componentTypes.multiRange:if(l=[],Array.isArray(e))e.forEach((function(e){if("object"==typeof e&&"number"==typeof e.start&&"number"==typeof e.end){var t=r({},e);t.label||(t=s.find((function(t){return t.start===e.start&&t.end===e.end}))),l.push(t)}else if("string"==typeof e){var n=s.find((function(t){return t.label.trim()===e.trim()}));l.push(n)}}));else if("string"==typeof e){var d=s.find((function(t){return t.label.trim()===e.trim()}));l.push(d)}break;case constants$1.componentTypes.rangeSlider:case constants$1.componentTypes.ratingsFilter:case constants$1.componentTypes.dynamicRangeSlider:case constants$1.componentTypes.reactiveChart:l=[],a?Array.isArray(e)?l=e.map((function(e){return(0,helper.formatDate)((0,o.default)(e),t)})):"object"==typeof e&&(l=[(0,helper.formatDate)((0,o.default)(e.start),t),(0,helper.formatDate)((0,o.default)(e.end),t)]):l=Array.isArray(e)?[].concat(i(e)):"object"==typeof e?[e.start,e.end]:e;break;case constants$1.componentTypes.numberBox:l=[],Array.isArray(e)||"object"!=typeof e?"number"==typeof e&&(l=e):l=e.start;break;case constants$1.componentTypes.datePicker:l="","object"!=typeof e?l=(0,o.default)(e).format("YYYY-MM-DD"):e.end?l=(0,o.default)(e.end).format("YYYY-MM-DD"):e.start&&(l=(0,o.default)(e.start).add(24,"hour").format("YYYY-MM-DD"));break;case constants$1.componentTypes.dateRange:l=[],Array.isArray(e)?l=e.map((function(e){return(0,o.default)(e).format("YYYY-MM-DD")})):"object"==typeof e&&(l=[(0,o.default)(e.start).format("YYYY-MM-DD"),(0,o.default)(e.end).format("YYYY-MM-DD")]);break;case constants$1.componentTypes.categorySearch:l="","object"==typeof e?(l=e.value,void 0!==e.category&&(u.category=e.category)):"string"==typeof e&&(l=e)}return{value:l,meta:u}}}));unwrapExports(transform);var transform_1=transform.transformValueToComponentStateFormat,transform_2=transform.getDependentQueries,transform_3=transform.extractPropsFromState,transform_4=transform.getValidInterval,transform_5=transform.getRSQuery,transform_6=transform.hasPaginationSupport,transform_7=transform.isComponentUsesLabelAsValue,transform_8=transform.isSearchComponent,transform_9=transform.isDRSRangeComponent,transform_10=transform.getHistogramComponentID,transform_11=transform.getInternalComponentID,transform_12=transform.isInternalComponent,transform_13=transform.getNormalizedField,transform_14=transform.componentToTypeMap,transform_15=transform.flatReactProp,hits=createCommonjsModule((function(e,t){function n(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:constants.UPDATE_AGGS,component:e,aggregations:t,append:n}}function r(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{type:constants.UPDATE_HITS,component:e,hits:t.hits,total:"object"==typeof t.total?t.total.value:t.total,hidden:r,time:n,append:o}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateAggs=n,t.updateCompositeAggs=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:constants.UPDATE_COMPOSITE_AGGS,component:e,aggregations:t,append:n}},t.updateHits=r,t.saveQueryToHits=function(e,t){return{type:constants.SET_QUERY_TO_HITS,component:e,query:t}},t.mockDataForTesting=function(e,t){return function(o){t.hasOwnProperty("error")&&o((0,misc.setError)(e,t.error)),t.hasOwnProperty("aggregations")&&o(n(e,t.aggregations)),t.hasOwnProperty("hits")&&o(r(e,t,t.time||void 0)),t.hasOwnProperty("rawData")&&o((0,misc.setRawData)(e,t.rawData)),t.hasOwnProperty("AI_RESPONSE")&&o((0,misc.setAIResponse)(e,t.AI_RESPONSE))}}}));unwrapExports(hits);var hits_1=hits.updateAggs,hits_2=hits.updateCompositeAggs,hits_3=hits.updateHits,hits_4=hits.saveQueryToHits,hits_5=hits.mockDataForTesting,misc=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){return{type:constants.SET_RAW_DATA,component:e,response:t}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:constants.SET_PROMOTED_RESULTS,results:e,component:t}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:constants.SET_POPULAR_SUGGESTIONS,suggestions:e,component:t}}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:constants.SET_DEFAULT_POPULAR_SUGGESTIONS,suggestions:e,component:t}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:constants.SET_CUSTOM_DATA,data:e,component:t}}t.setRawData=r,t.setLoading=function(e,t){return{type:constants.SET_LOADING,component:e,isLoading:t}},t.setError=function(e,t){return{type:constants.SET_ERROR,component:e,error:t}},t.setTimestamp=function(e,t){return{type:constants.SET_TIMESTAMP,component:e,timestamp:t}},t.setSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:constants.SET_SEARCH_ID,searchId:e}},t.setSuggestionsSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:constants.SET_SUGGESTIONS_SEARCH_ID,searchId:e}},t.setQuery=function(e,t){return{type:constants.SET_QUERY,component:e,query:t}},t.setCustomQuery=function(e,t){return{type:constants.SET_CUSTOM_QUERY,component:e,query:t}},t.setDefaultQuery=function(e,t){return{type:constants.SET_DEFAULT_QUERY,component:e,query:t}},t.setCustomHighlightOptions=function(e,t){return{type:constants.SET_CUSTOM_HIGHLIGHT_OPTIONS,component:e,data:t}},t.updateQueryOptions=function(e,t){return{type:constants.SET_QUERY_OPTIONS,component:e,options:t}},t.logQuery=function(e,t){return{type:constants.LOG_QUERY,component:e,query:t}},t.logCombinedQuery=function(e,t){return{type:constants.LOG_COMBINED_QUERY,component:e,query:t}},t.setHeaders=function(e){return{type:constants.SET_HEADERS,headers:e}},t.setPromotedResults=o,t.setPopularSuggestions=s,t.setDefaultPopularSuggestions=a,t.setCustomData=i,t.setAppliedSettings=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:constants.SET_APPLIED_SETTINGS,data:e,component:t}},t.setQueryListener=function(e,t,n){return{type:constants.SET_QUERY_LISTENER,component:e,onQueryChange:t,onError:n}},t.setGoogleMapScriptLoading=function(e){return{type:constants.SET_GOOGLE_MAP_SCRIPT_LOADING,loading:e}},t.setGoogleMapScriptLoaded=function(e){return{type:constants.SET_GOOGLE_MAP_SCRIPT_LOADED,loaded:e}},t.setGoogleMapScriptError=function(e){return{type:constants.SET_GOOGLE_MAP_SCRIPT_ERROR,error:e}},t.resetStoreForComponent=function(e){return function(t){t(r(e,null)),t(i(null,e)),t(o([],e)),t(s([],e)),t(a([],e)),t((0,hits.updateAggs)(e,null)),t((0,hits.updateCompositeAggs)(e,{})),t((0,hits.updateHits)(e,{hits:[],total:0},0))}},t.setLastUsedAppbaseQuery=function(e){return{type:constants.SET_APPBASE_QUERY,query:e}},t.setSearchState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var r={};Object.keys(e).forEach((function(t){var o=e[t],s=o.value,a=o.componentProps,i=(0,transform.transformValueToComponentStateFormat)(s,a),l=i.value,u=i.meta,c=void 0===u?{}:u;r[t]=n({value:l},c)})),t((0,value.setValues)(r))}},t.setAIResponse=function(e,t){return{type:constants.SET_AI_RESPONSE,component:e,payload:t}},t.setAIResponseDelayed=function(e,t){return{type:constants.SET_AI_RESPONSE_DELAYED,component:e,payload:t}},t.removeAIResponse=function(e){return{type:constants.REMOVE_AI_RESPONSE,component:e}},t.setAIResponseError=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{type:constants.SET_AI_RESPONSE_ERROR,component:e,error:t,meta:n}},t.setAIResponseLoading=function(e,t){return{type:constants.SET_AI_RESPONSE_LOADING,component:e,isLoading:t}}}));unwrapExports(misc);var misc_1=misc.setRawData,misc_2=misc.setLoading,misc_3=misc.setError,misc_4=misc.setTimestamp,misc_5=misc.setSearchId,misc_6=misc.setSuggestionsSearchId,misc_7=misc.setQuery,misc_8=misc.setCustomQuery,misc_9=misc.setDefaultQuery,misc_10=misc.setCustomHighlightOptions,misc_11=misc.updateQueryOptions,misc_12=misc.logQuery,misc_13=misc.logCombinedQuery,misc_14=misc.setHeaders,misc_15=misc.setPromotedResults,misc_16=misc.setPopularSuggestions,misc_17=misc.setDefaultPopularSuggestions,misc_18=misc.setCustomData,misc_19=misc.setAppliedSettings,misc_20=misc.setQueryListener,misc_21=misc.setGoogleMapScriptLoading,misc_22=misc.setGoogleMapScriptLoaded,misc_23=misc.setGoogleMapScriptError,misc_24=misc.resetStoreForComponent,misc_25=misc.setLastUsedAppbaseQuery,misc_26=misc.setSearchState,misc_27=misc.setAIResponse,misc_28=misc.setAIResponseDelayed,misc_29=misc.removeAIResponse,misc_30=misc.setAIResponseError,misc_31=misc.setAIResponseLoading,utils=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getSuggestionQuery=t.isPropertyDefined=t.handleResponse=t.handleError=t.getQuerySuggestionsId=t.isComponentActive=t.handleTransformResponse=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.executeQueryListener=function(e,t,n){e&&e.onQueryChange&&e.onQueryChange(t,n)},t.updateStoreConfig=function(e){return function(t){t({type:constants.UPDATE_CONFIG,config:e})}};var o=t.handleTransformResponse=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.transformResponse&&"function"==typeof t.transformResponse?t.transformResponse(e,n):new Promise((function(t){return t(e)}))},s=t.isComponentActive=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e(),r=n.components;return!!r.includes(t)},a=t.getQuerySuggestionsId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__suggestions"},i=t.handleError=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.orderOfQueries,n=void 0===t?[]:t,r=e.error,o=void 0===r?null:r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},i=arguments[2],l=a(),u=l.queryListener;try{console.error(JSON.stringify(o))}catch(e){console.error(o)}n.forEach((function(e){s(a,e)&&(u[e]&&u[e].onError&&u[e].onError(o),i((0,misc.setError)(e,o)),i((0,misc.setLoading)(e,!1)))}))};t.handleResponse=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.res,a=e.orderOfQueries,l=void 0===a?[]:a,u=e.appendToHits,c=void 0!==u&&u,p=e.appendToAggs,d=void 0!==p&&p,h=e.isSuggestionsQuery,f=void 0!==h&&h,m=e.query,g=e.queryId,y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},v=arguments[2],b=y(),_=b.config,$=b.internalValues,C=b.lastUsedAppbaseQuery,S=b.analyticsRef,O=t._headers?t._headers.get("X-Search-Id"):null;O&&(f?v((0,misc.setSuggestionsSearchId)(O)):(v((0,misc.setSearchId)(O)),S&&(S.queryID=O))),l.forEach((function(e){if(s(y,e)){if(C[e]&&C[e].queryId&&g&&C[e].queryId!==g)return;t.settings&&v((0,misc.setAppliedSettings)(t.settings,e)),o(t[e],_,e).then((function(o){if(o){var s=y(),a=s.timestamp,i=s.props;if(void 0===a[e]||a[e]<t._timestamp||o.AISessionId&&i[e].enableAI&&i[e].componentType===constants$1.componentTypes.searchBox){var l=o.promoted;if(l){var u=l.map((function(e){return n({},e.doc,{_position:e.position})}));v((0,misc.setPromotedResults)(u,e))}else v((0,misc.setPromotedResults)([],e));if(v((0,misc.setRawData)(e,o)),o.AIAnswer){if(o.AIAnswer.error)return v((0,misc.setAIResponseError)(e,{message:o.AIAnswer.error})),void v((0,misc.setLoading)(e,!1));var p=o.AIAnswer,h={response:{answer:{documentIds:p.documentIds,model:p.model,text:p.choices[0].message.content}},meta:o.hits,isTyping:!1};o.AISessionId&&(h.sessionId=o.AISessionId),v((0,misc.setAIResponse)(e,h))}else if(o.AISessionId){var f=((0,helper.getObjectFromLocalStorage)(constants$1.AI_LOCAL_CACHE_KEY)||{})[i.componentId];f&&f.sessionId&&f.sessionId===o.AISessionId?v((0,misc.setAIResponse)(e,f)):((0,helper.setObjectInLocalStorage)("AISessions",r({},e,{})),i[e].componentType===constants$1.componentTypes.AIAnswer?v((0,misc.setAIResponse)(e,{sessionId:o.AISessionId,meta:{hits:o.hits||{}}})):v((0,query.fetchAIResponse)(o.AISessionId,e,"",{hits:o.hits||{}},i[e].componentType===constants$1.componentTypes.searchBox||i[e].componentType===constants$1.componentTypes.AIAnswer)))}if(v((0,misc.setCustomData)(o.customData,e)),o.hits&&(!o.AIAnswer&&!o.AISessionId||i[e].componentType!==constants$1.componentTypes.searchBox)){v((0,misc.setTimestamp)(e,t._timestamp)),i[e].componentType===constants$1.componentTypes.reactiveList&&m.find((function(t){return t.id===e})).execute&&v((0,misc.setLastUsedAppbaseQuery)(r({},e,m))),v((0,hits.updateHits)(e,o.hits,o.took,o.hits&&o.hits.hidden,c));var g=(0,transform.getInternalComponentID)(e);$[g]&&v((0,hits.saveQueryToHits)(e,$[g].value))}o.aggregations&&(v((0,hits.updateAggs)(e,o.aggregations,d)),v((0,hits.updateCompositeAggs)(e,o.aggregations,d)))}v((0,misc.setLoading)(e,!1))}})).catch((function(e){i({orderOfQueries:l,error:e},y,v)}))}}))},t.isPropertyDefined=function(e){return null!=e},t.getSuggestionQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments[1],n=e(),r=n.internalValues,o=r[t],s=o&&o.value||"";return[{id:a(t),dataField:["key","key.autosuggest"],size:5,value:s,defaultQuery:{query:{bool:{minimum_should_match:1,should:[{function_score:{field_value_factor:{field:"count",modifier:"sqrt",missing:1}}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],fuzziness:0,operator:"or",query:s,type:"best_fields"}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],operator:"or",query:s,type:"phrase"}},{multi_match:{fields:["key^9"],operator:"or",query:s,type:"phrase_prefix"}}]}}}}]}}));unwrapExports(utils);var utils_1=utils.getSuggestionQuery,utils_2=utils.isPropertyDefined,utils_3=utils.handleResponse,utils_4=utils.handleError,utils_5=utils.getQuerySuggestionsId,utils_6=utils.isComponentActive,utils_7=utils.handleTransformResponse,utils_8=utils.executeQueryListener,utils_9=utils.updateStoreConfig,value=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.setValue=function(e,t,n,o,s,a,i,l,u){return function(c,p){var d=p(),h=d.urlValues,f=d.selectedValues,m=d.watchMan,g=d.props,y=u;(0,helper.isEqual)(h[e],t)&&(y="URL");var v={},b=[constants$1.componentTypes.reactiveList,constants$1.componentTypes.reactiveMap].includes(g[e]&&g[e].componentType),_=f[e]&&f[e].value;if(!(0,helper.isEqual)(_,t)&&g[e]&&!b){var $=[e],C=m[e]||[];($=[].concat(r($),r(C))).forEach((function(e){var t=g[e];"URL"!==y&&t&&[constants$1.componentTypes.reactiveList,constants$1.componentTypes.reactiveMap].includes(t.componentType)&&null!==f[e]&&(v[e]=null)}))}b&&t<2&&(!_||_<2)||c({type:constants.SET_VALUE,component:e,reference:y,value:t,label:n,showFilter:o,URLParams:s,componentType:a,category:i,meta:l,componentsToReset:v})}},t.resetValuesToDefault=function(e){return function(t,r){var o=r(),s=o.selectedValues,a=o.props,i={},l=void 0;Object.keys(s).forEach((function(t){Array.isArray(e)&&e.includes(t)||(a[t]&&a[t].componentType&&a[t].defaultValue?[constants$1.componentTypes.rangeSlider,constants$1.componentTypes.rangeInput,constants$1.componentTypes.ratingsFilter,constants$1.componentTypes.dateRange].includes(a[t].componentType)?l="object"==typeof a[t].defaultValue?[a[t].defaultValue.start,a[t].defaultValue.end]:null:[constants$1.componentTypes.multiDropdownList,constants$1.componentTypes.multiDataList,constants$1.componentTypes.multiList,constants$1.componentTypes.singleDataList,constants$1.componentTypes.singleDropdownList,constants$1.componentTypes.singleList,constants$1.componentTypes.tagCloud,constants$1.componentTypes.toggleButton,constants$1.componentTypes.multiDropdownRange,constants$1.componentTypes.multiRange,constants$1.componentTypes.singleDropdownRange,constants$1.componentTypes.singleRange,constants$1.componentTypes.dataSearch,constants$1.componentTypes.datePicker,constants$1.componentTypes.treeList].includes(a[t].componentType)?l=a[t].defaultValue:[constants$1.componentTypes.categorySearch].includes(a[t].componentType)&&(l=a[t].defaultValue?a[t].defaultValue.term:""):l=null,(0,helper.isEqual)(s[t].value,l)||(i=n({},i,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},t,n({},s[t],{value:l})))))})),t({type:constants.RESET_TO_DEFAULT,defaultValues:i})}},t.setInternalValue=function(e,t,n,r,o){return{type:constants.SET_INTERNAL_VALUE,component:e,value:t,componentType:n,category:r,meta:o}},t.patchValue=function(e,t){return{type:constants.PATCH_VALUE,component:e,payload:t}},t.clearValues=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{type:constants.CLEAR_VALUES,resetValues:e,clearAllBlacklistComponents:t}},t.setValues=function(e){return function(t){t((0,utils.updateStoreConfig)({queryLockConfig:{initialTimestamp:(new Date).getTime(),lockTime:300}})),t({type:constants.SET_VALUES,componentsValues:e})}}}));unwrapExports(value);var value_1=value.setValue,value_2=value.resetValuesToDefault,value_3=value.setInternalValue,value_4=value.patchValue,value_5=value.clearValues,value_6=value.setValues,maps=createCommonjsModule((function(e,t){function n(e,t,n){return{type:constants.SET_MAP_DATA,componentId:e,query:t,persistMapQuery:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateMapData=n,t.setMapData=function(e,t,r,o){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";return function(i){if(i(n(e,t,r)),i((0,value.setInternalValue)((0,transform.getInternalComponentID)(e),void 0,void 0,void 0,s)),o){i((0,query.executeQuery)(e,!1,!0,constants$1.componentTypes.reactiveMap,{},a))}}},t.setMapResults=function(e,t){var n=t.center,r=t.zoom,o=t.markers;return{type:constants.SET_MAP_RESULTS,componentId:e,payload:{center:n,zoom:r,markers:o}}}}));unwrapExports(maps);var maps_1=maps.updateMapData,maps_2=maps.setMapData,maps_3=maps.setMapResults,query=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e){return function(t,n){var r=n(),o=r.config,s=r.appbaseRef,a=r.props,i=r.internalValues,l=a[e]||{},u=i[e],c=u&&u.value||"";if(l.enablePopularSuggestions){if(o.mongodb)return void t((0,misc.setDefaultPopularSuggestions)([],e.split("__internal")[0]));var p=(0,utils.getSuggestionQuery)(n,e);s.getQuerySuggestions(p).then((function(n){var r=n[(0,utils.getQuerySuggestionsId)(e)];t(c?(0,misc.setPopularSuggestions)(r&&r.hits&&r.hits.hits,e.split("__internal")[0]):(0,misc.setDefaultPopularSuggestions)(r&&r.hits&&r.hits.hits,e.split("__internal")[0]))})).catch((function(r){(0,utils.handleError)({orderOfQueries:[e],error:r},n,t)}))}}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.queryId,r=e.query,o=e.orderOfQueries,s=e.appendToHits,i=void 0!==s&&s,l=e.isSuggestionsQuery,u=void 0!==l&&l,c=e.searchComponentID,p=e.appendToAggs,d=void 0!==p&&p;return function(e,s){var l=s(),p=l.appbaseRef,h=l.config,f=l.headers,m=l.props,g=!1;h&&((0,utils.isPropertyDefined)(h.analytics)?g=h.analytics:h.analyticsConfig&&((0,utils.isPropertyDefined)(h.analyticsConfig.recordAnalytics)?g=h.analyticsConfig.recordAnalytics:(0,utils.isPropertyDefined)(h.analyticsConfig.analytics)&&(g=h.analyticsConfig.analytics)));var y={recordAnalytics:g};if(h.analyticsConfig){y.userId=(0,utils.isPropertyDefined)(h.analyticsConfig.userId)?h.analyticsConfig.userId:void 0,y.enableQueryRules=(0,utils.isPropertyDefined)(h.analyticsConfig.enableQueryRules)?h.analyticsConfig.enableQueryRules:void 0,y.customEvents=(0,utils.isPropertyDefined)(h.analyticsConfig.customEvents)?h.analyticsConfig.customEvents:void 0,y.emptyQuery=(0,utils.isPropertyDefined)(h.analyticsConfig.emptyQuery)?h.analyticsConfig.emptyQuery:void 0;var v=h.analyticsConfig.enableSearchRelevancy;y.enableSearchRelevancy=(0,utils.isPropertyDefined)(v)?v:void 0,y.suggestionAnalytics=(0,utils.isPropertyDefined)(h.analyticsConfig.suggestionAnalytics)?h.analyticsConfig.suggestionAnalytics:void 0,y.useCache=(0,utils.isPropertyDefined)(h.analyticsConfig.useCache)?h.analyticsConfig.useCache:void 0,y.queryParams=(0,utils.isPropertyDefined)(h.analyticsConfig.queryParams)?h.analyticsConfig.queryParams:void 0}o.forEach((function(t){e((0,misc.setLoading)(t,!0)),m[t]&&m[t].enableAI&&e((0,misc.removeAIResponse)(t)),e((0,misc.setError)(t,null))})),p.setHeaders(n({},f)),u&&c&&e(a(c)),p.reactiveSearch(r,y,y.queryParams).then((function(n){(0,utils.handleResponse)({res:n,orderOfQueries:o,appendToHits:i,appendToAggs:d,query:r,queryId:t},s,e)})).catch((function(n){(0,utils.handleError)({orderOfQueries:o,error:n,queryId:t},s,e)}))}}t.loadPopularSuggestions=a,t.executeQuery=u,t.setQueryOptions=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(r){r((0,misc.updateQueryOptions)(e,t)),n&&r(u(e,!0))}},t.updateQuery=function(e){var t=e.componentId,n=e.query,r=e.value,o=e.label,s=void 0===o?null:o,a=e.showFilter,i=void 0===a||a,l=e.URLParams,c=void 0!==l&&l,p=e.componentType,d=void 0===p?null:p,h=e.category,f=void 0===h?null:h,m=e.meta,g=void 0===m?{}:m,y=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],v=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(e){var o=n;n&&n.query&&(o=n.query),t.endsWith("__internal")?e((0,value.setInternalValue)(t,r,d,f,g)):(e((0,value.setValue)(t,r,s,i,c,d,f,g)),v&&(d===constants$1.componentTypes.dynamicRangeSlider?e((0,value.setInternalValue)((0,transform.getHistogramComponentID)(t),r,d,f,g)):e((0,value.setInternalValue)(t+"__internal",r,d,f,g)))),e((0,misc.setQuery)(t,o)),y&&e(u(t,!0,!1,d,d===constants$1.componentTypes.searchBox&&g&&"boolean"==typeof g.enableAI?{enableAI:g.enableAI}:void 0))}},t.loadMore=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(a,l){var u=l(),c=(0,helper.buildQuery)(e,u.dependencyTree,u.queryList,u.queryOptions),p=c.queryObj,d=c.options,h=u.queryLog;d||(d={}),d=n({},d,t),(!p||p&&!Object.keys(p).length)&&(p={match_all:{}});var f,m=u.props[e]||{},g=m.aggregationField;transform.componentToTypeMap[m.componentType]===constants$1.queryTypes.term&&(g=m.dataField);var y=(0,transform.getRSQuery)(e,(0,transform.extractPropsFromState)(u,e,{from:d.from,after:u.aggregations[e]&&u.aggregations[e][g]&&u.aggregations[e][g].after_key||void 0}));(f=n(o({},e,y),(0,transform.getDependentQueries)(l(),e,[])),(0,helper.compareQueries)(h[e],f))||(a((0,misc.logQuery)(e,f)),a(i({query:Object.keys(f).map((function(e){return f[e]})),orderOfQueries:[e],appendToHits:r,appendToAggs:s})))}},t.loadDataToExport=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return function(i,l){var u=l(),c=u.appbaseRef,p=u.lastUsedAppbaseQuery[t];if(p){var d=p.map((function(e){if(e.id===t){var s=n({},e,{deepPaginationConfig:{cursor:r},deepPagination:!0,size:o<1e3?o:1e3,sortField:"_id",sortBy:"asc"});return delete s.from,s}return e}));return o&&Array.isArray(a)&&o<=a.length?a:c.reactiveSearchv3(d).then((function(n){var r=n[t].hits.hits;return Array.isArray(r)&&0!==r.length?i(e(t,r[r.length-1]._id,n[t].hits.total.value,[].concat(s(a),s(r)))):a})).catch((function(e){console.error("Error fetching data to export! ",e)}))}return console.error("Error fetching data to export!")}},t.fetchAIResponse=function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(a,i){var l=!!r;a((0,misc.setAIResponseLoading)(t,!0));var u=i().config,h=u.url,f=u.credentials,m=u.endpoint,g=new URL(h.match(/https:\/\/[^/]+/)[0]),y=f;g.username&&g.password&&(y=g.username+":"+g.password,g.username="",g.password="");var v=g.toString()+"_ai/"+e,b=v+"/sse",_=new Headers;if(y){var $=btoa(y);_.append("Authorization","Basic "+$)}else m&&m.headers&&m.headers.Authorization&&_.append("Authorization",m.headers.Authorization);var C=l?"POST":"GET",S=((0,helper.getObjectFromLocalStorage)(constants$1.AI_LOCAL_CACHE_KEY)||{})[t],O={headers:_,method:C,body:l?JSON.stringify({question:r}):void 0},w=1;!function i(){var l=new AbortController;d[t]&&d[t].abort(),d[t]=l,fetch(b,n({},O,{signal:l.signal})).then((function(l){if(!l.ok&&w<2)return w++,void setTimeout(i,1e3);var u=l.headers.get("content-type");if(u&&u.startsWith("application/json"))l.json().then((function(n){n.error?a((0,misc.setAIResponseError)(t,n.error)):c(a,t,e,S,n,o)}));else{var d=void 0;s&&(d=fetch(v,n({},O.headers?{headers:O.headers}:{},{method:"GET"}))),p(l,a,t,e,o,r,d)}})).catch((function(n){"AbortError"!==n.name&&a((0,misc.setAIResponseError)(t,n,{sessionId:e}))}))}()}},t.createAISession=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Reactivesearch";return function(t,r){var o=r().config,s=o.url,a=o.credentials,i=o.endpoint,l=new URL(s.match(/https:\/\/[^/]+/)[0]),u=a;l.username&&l.password&&(u=l.username+":"+l.password,l.username="",l.password="");var c=l.toString()+"_ai",p=new Headers;if(u){var d=btoa(u);p.append("Authorization","Basic "+d)}else i&&i.headers&&i.headers.Authorization&&p.append("Authorization",i.headers.Authorization);var h={headers:p,method:"POST",body:JSON.stringify({question:e})};return fetch(c,n({},h)).then((function(e){return e.json()})).then((function(e){return e})).catch((function(e){console.error("Error creating an AI session: ",e)}))}};var l=[];function u(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],u=arguments[3],c=arguments[4],p=arguments[5];return function(d,h){var f=h(),m=f.queryLog,g=f.config,y=f.mapData,v=f.watchMan,b=f.queryListener,_=f.props,$=f.internalValues,C=f.lock,S=f.dependencyTree,O=f.queryList,w=f.queryOptions,T=g.initialQueriesSyncTime||100,k=g.initialTimestamp,A=p||(new Date).getTime();g.queryLockConfig instanceof Object&&(T=g.queryLockConfig.lockTime,k=g.queryLockConfig.initialTimestamp);var E,I=[e],R={},x=[];if(t){var P=v[e]||[];I=[].concat(s(I),s(P))}if(I.forEach((function(t){var i=(0,helper.buildQuery)(t,S,O,w),l=i.queryObj,u=i.options;if(l||u){var p=void 0,f=e.endsWith("__internal"),g=_[e];f&&g&&(0,transform.isSearchComponent)(g.componentType)&&(p=$[e]&&$[e].value);var v=(0,transform.getRSQuery)(t,(0,transform.extractPropsFromState)(h(),t,n({},p?{value:p}:null,c?n({from:c.from},p&&!0===c.enableAI?{enableAI:!0,type:"search"}:{}):null)));if(v&&Object.keys(v).length){var C=v,T=m[t],k=_[t],E=(0,transform.getDependentQueries)(h(),t,x),I=n(o({},t,C),Object.keys(E).reduce((function(e,t){return n({},e,o({},t,n({},E[t],{execute:!1},E[t].type===constants$1.queryTypes.suggestion?{type:"search"}:{})))}),{})),P=transform.componentToTypeMap[k&&k.componentType];if([constants$1.queryTypes.range,constants$1.queryTypes.term].includes(P)){C.value;var L=r(C,["value"]);I=n(o({},t,L),Object.keys(E).reduce((function(e,t){return n({},e,o({},t,n({},E[t],{execute:!1},E[t].type===constants$1.queryTypes.suggestion?{type:"search"}:{})))}),{}))}if(a||!(0,helper.compareQueries)(I,T,!1)){x=[].concat(s(x),[t]);var Q=Object.keys(y).includes(t);if(Q&&d((0,misc.setLastUsedAppbaseQuery)(o({},t,{queryId:A}))),d((0,misc.logQuery)(t,I)),Q&&y[t].query){var V=C.query;C.query={bool:{must:[V,y[t].query]}},y[t].persistMapQuery||d((0,maps.updateMapData)(e,null,!1));var M=h().combinedLog;if((0,helper.compareQueries)(M[t],C))return;d((0,misc.logCombinedQuery)(t,C))}if((0,utils.executeQueryListener)(b[t],T,C),v&&(R=n({},R,o({},t,v),(0,transform.getDependentQueries)(h(),t,x))),Q){var N=(0,transform.getInternalComponentID)(t),j=(0,transform.getRSQuery)(N,(0,transform.extractPropsFromState)(h(),N,c?{from:c.from}:null));j&&(R[N]=n({},j,{execute:!1}))}}}}})),(E=Object.keys(R).map((function(e){return R[e]}))).length){var L=[constants$1.componentTypes.dataSearch,constants$1.componentTypes.categorySearch],Q=e.endsWith("__internal")&&-1!==L.indexOf(u);(new Date).getTime()-k<T?(C&&!g.queryLockConfig||setTimeout((function(){var e=[],t=!1,r="",o={},a={},u={};l.forEach((function(i){t||(t=i.isSuggestionsQuery),r||(r=i.searchComponentID),Array.isArray(i.query)&&i.query.forEach((function(e){e.execute&&(u[e.id]=e.execute);var t=e;if(u[e.id]&&(t.execute=!0),a[e.id]&&a[e.id].type===constants$1.queryTypes.suggestion&&t.type!==constants$1.queryTypes.suggestion)return a[e.id+"__suggestion_type"]=n({},a[e.id]),void(a[e.id]=n({},t,{execute:!1}));a[e.id]=t})),Array.isArray(i.orderOfQueries)&&i.orderOfQueries.forEach((function(t){o[t.id]?o[t.id]=!0:e=[t].concat(s(e))}))}));var c=Object.values(a);c.length&&d(i({query:c,orderOfQueries:e,isSuggestionsQuery:t,searchComponentID:r})),l=[],d((0,utils.updateStoreConfig)({queryLockConfig:void 0}))}),T),d((0,utils.updateStoreConfig)({lock:!0})),l.push({query:E,orderOfQueries:x,isSuggestionsQuery:Q,searchComponentID:e})):d(i({queryId:A,query:E,orderOfQueries:x,isSuggestionsQuery:Q,searchComponentID:e}))}}}function c(e,t,r,o,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};try{var l=n({},a);l.answer&&(l.answer.role=constants$1.AI_ROLES.ASSISTANT),e((0,misc.setAIResponse)(t,{meta:i,sessionId:r,messages:[].concat(s(o&&o.messages||[]),s(l.question?[{content:l.question,role:constants$1.AI_ROLES.USER}]:[]),s(l.answer?[{content:l.answer.text,role:constants$1.AI_ROLES.ASSISTANT}]:[])),response:n({},l)}))}catch(n){(0,helper.getStackTrace)(),e((0,misc.setAIResponseError)(t,n,{sessionId:r}))}}function p(e,t,r,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=arguments[5],l=arguments[6],u=e.body.getReader(),c=new TextDecoder,p="",d=void 0,h=i?{content:i,role:constants$1.AI_ROLES.USER}:null,f=function(e){p+=e;var n=((0,helper.getObjectFromLocalStorage)(constants$1.AI_LOCAL_CACHE_KEY)||{})[r],i=[].concat(s(n&&n.messages||n&&n.response&&n.response.messages||[]));h&&-1===i.findIndex((function(e){return e.content===h.content&&e.role===h.role}))&&i.push(h),void 0===d?(d=i.length,i.push({content:p,role:constants$1.AI_ROLES.ASSISTANT})):i[d]={content:p,role:constants$1.AI_ROLES.ASSISTANT},t((0,misc.setAIResponseDelayed)(r,{meta:a,sessionId:o,isTyping:!0,messages:i,response:{answer:{text:p,role:constants$1.AI_ROLES.ASSISTANT}}}))};function m(){u.read().then((function(e){var s=e.value;if(e.done)u.releaseLock();else{for(var i=c.decode(s,{stream:!0}).split(/\n\n(?=data:|$)/),p=!1,d=0;d<i.length;d++){var h=i[d];if(h.startsWith("data: ")){var g=h.slice(6);if("[DONE]"===g){p=!0,Promise.resolve(l)===l?l.then((function(e){return e.json()})).then((function(e){var s=[];e.question&&e.answer&&s.push.apply(s,[{content:e.question,role:constants$1.AI_ROLES.USER},{content:e.answer.text,role:constants$1.AI_ROLES.ASSISTANT}]),t((0,misc.setAIResponseDelayed)(r,{meta:a,sessionId:o,response:n({},e),messages:s,isTyping:!1}))})).catch((function(e){console.error("Error fetching meta details for sessionId: "+o,e)})):t((0,misc.setAIResponseDelayed)(r,{isTyping:!1}));break}f(g)}}p?u.releaseLock():m()}})).catch((function(e){u.releaseLock(),t((0,misc.setAIResponseError)(r,e,{sessionId:o,isTyping:!1}))}))}m()}var d={}}));unwrapExports(query);var query_1=query.loadPopularSuggestions,query_2=query.executeQuery,query_3=query.setQueryOptions,query_4=query.updateQuery,query_5=query.loadMore,query_6=query.loadDataToExport,query_7=query.fetchAIResponse,query_8=query.createAISession,component=createCommonjsModule((function(e,t){function n(e,t){return{type:constants.WATCH_COMPONENT,component:e,react:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.addComponent=function(e,t){return function(n){n(function(e){return{type:constants.ADD_COMPONENT,component:e}}(e)),n(function(e,t){return{type:constants.SET_REGISTERED_COMPONENT_TIMESTAMP,component:e,timestamp:t}}(e,t))}},t.removeComponent=function(e){return{type:constants.REMOVE_COMPONENT,component:e}},t.watchComponent=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(o){o(n(e,t)),r&&o((0,query.executeQuery)(e))}}}));unwrapExports(component);var component_1=component.addComponent,component_2=component.removeComponent,component_3=component.watchComponent,props=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.setComponentProps=function(e,t,o){return{type:constants.SET_PROPS,component:e,options:r(n({},t,{componentType:o}))}},t.updateComponentProps=function(e,t,o){return{type:constants.UPDATE_PROPS,component:e,options:r(n({},t,{componentType:o}))}},t.removeComponentProps=function(e){return{type:constants.REMOVE_PROPS,component:e}};var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.keys(e).forEach((function(n){constants$1.validProps.includes(n)&&(t[n]=e[n])})),t}}));unwrapExports(props);var props_1=props.setComponentProps,props_2=props.updateComponentProps,props_3=props.removeComponentProps,analytics$1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=e.documentId,n=e.clickPosition,o=e.analyticsInstance,s=e.isSuggestionClick;t?o.click({queryID:o.getQueryID(),objects:r({},t,n+1),isSuggestionClick:s}):console.warn("ReactiveSearch: document id is required to record the click analytics")}t.setSuggestionsSearchValue=function(e){return{type:constants.SET_SUGGESTIONS_SEARCH_VALUE,value:e}},t.clearSuggestionsSearchValue=function(){return{type:constants.CLEAR_SUGGESTIONS_SEARCH_VALUE}},t.updateAnalyticsConfig=function(e){return{type:constants.UPDATE_ANALYTICS_CONFIG,analyticsConfig:e}},t.getRecentSearches=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{size:5,minChars:3};return function(t,r){var o=r(),s=o.config,a=o.headers,i=o.appbaseRef,l=i.url,u=i.protocol,c=i.credentials,p=s.app,d=s.mongodb,h=(u+"://"+l||"").replace(/\/+$/,""),f={headers:n({},a,{"Content-Type":"application/json",Authorization:"Basic "+btoa(c)})},m="",g=function(e,t){m+=m?"&"+e+"="+t:e+"="+t};return s.analyticsConfig&&s.analyticsConfig.userId&&g("user_id",s.analyticsConfig.userId),e&&(e.size&&g("size",String(e.size)),e.from&&g("from",e.from),e.to&&g("to",e.to),e.minChars&&g("min_chars",String(e.minChars)),e.customEvents&&Object.keys(e.customEvents).forEach((function(t){g(t,e.customEvents[t])}))),d?t({type:constants.RECENT_SEARCHES_SUCCESS,data:[]}):fetch(h+"/_analytics/"+p+"/recent-searches?"+m,f).then((function(e){return e.status>=500||e.status>=400?t({type:constants.RECENT_SEARCHES_ERROR,error:e}):e.json().then((function(e){return t({type:constants.RECENT_SEARCHES_SUCCESS,data:e})})).catch((function(e){return t({type:constants.RECENT_SEARCHES_ERROR,error:e})}))})).catch((function(e){return t({type:constants.RECENT_SEARCHES_ERROR,error:e})}))}},t.recordResultClick=function(e,t){return function(r,s){var a=s(),i=a.config,l=a.analytics.searchId,u=a.headers,c=a.appbaseRef,p=c.url,d=c.protocol,h=c.credentials,f=a.analyticsRef,m=i.app,g=d+"://"+p;if(i.analytics&&l){var y=u;delete y["X-Search-Query"];var v=(g||"").replace(/\/+$/,"");v.includes("scalr.api.appbase.io")?fetch(v+"/"+m+"/_analytics",{method:"POST",headers:n({},y,{"Content-Type":"application/json",Authorization:"Basic "+btoa(h),"X-Search-Id":l,"X-Search-Click":!0,"X-Search-ClickPosition":e+1})}):o({documentId:t,clickPosition:e,analyticsInstance:f})}}},t.recordSuggestionClick=function(e,t){return function(r,s){var a=s(),i=a.config,l=a.analytics.suggestionsSearchId,u=a.headers,c=a.appbaseRef,p=c.url,d=c.protocol,h=c.credentials,f=a.analyticsRef,m=i.app,g=d+"://"+p;if(i.analytics&&(void 0===i.analyticsConfig||void 0===i.analyticsConfig.suggestionAnalytics||i.analyticsConfig.suggestionAnalytics)){var y=u;delete y["X-Search-Query"];var v=(g||"").replace(/\/+$/,"");v.includes("scalr.api.appbase.io")&&void 0!==e&&l?fetch(v+"/"+m+"/_analytics",{method:"POST",headers:n({},y,{"Content-Type":"application/json",Authorization:"Basic "+btoa(h),"X-Search-Id":l,"X-Search-Suggestions-Click":!0,"X-Search-Suggestions-ClickPosition":e+1})}):void 0!==e&&o({documentId:t,clickPosition:e,analyticsInstance:f,isSuggestionClick:!0})}}},t.recordImpressions=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n,r){var o=r(),s=o.appbaseRef,a=s.url,i=s.protocol,l=o.analyticsRef,u=o.config,c=(i+"://"+a).replace(/\/+$/,"");u.analytics&&!c.includes("scalr.api.appbase.io")&&e&&t.length&&l.search({queryID:l.getQueryID(),impressions:t})}},t.recordAISessionUsefulness=function(e,t){return function(r,o){var s=o(),a=s.analyticsRef,i=s.config;if(i&&i.analyticsConfig&&i.analyticsConfig.recordAnalytics){var l=i&&i.analyticsConfig&&i.analyticsConfig.userId;e?a.saveSessionUsefulness(e,n({},t,{userID:l}),(function(e,t){t._bodyBlob.text().then((function(e){try{var t=JSON.parse(e);if(t.error){var n=t.error.code,r=t.error.message,o="There was an error recording the usefulness of the session. \n\n";n&&(o+=n),r&&(o+=(n?": ":"")+r),console.error(o)}}catch(e){console.error("There was an error recording the usefulness of the session. \n\n")}})).catch((function(e){console.error("Error reading component error text data:",e)}))})):console.warn("ReactiveSearch: AI sessionID is required to record the usefulness of session.")}else console.warn("ReactiveSearch: Unable to record usefulness of session. To enable analytics, make sure to include the following prop on your <ReactiveBase> component: reactivesearchAPIConfig={{ recordAnalytics: true }}")}}}));unwrapExports(analytics$1);var analytics_1$1=analytics$1.setSuggestionsSearchValue,analytics_2$1=analytics$1.clearSuggestionsSearchValue,analytics_3$1=analytics$1.updateAnalyticsConfig,analytics_4$1=analytics$1.getRecentSearches,analytics_5$1=analytics$1.recordResultClick,analytics_6$1=analytics$1.recordSuggestionClick,analytics_7$1=analytics$1.recordImpressions,analytics_8=analytics$1.recordAISessionUsefulness,actions=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(component).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return component[e]}})})),Object.keys(hits).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return hits[e]}})})),Object.keys(maps).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return maps[e]}})})),Object.keys(query).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return query[e]}})})),Object.keys(value).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return value[e]}})})),Object.keys(props).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return props[e]}})})),Object.keys(analytics$1).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return analytics$1[e]}})})),Object.keys(misc).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return misc[e]}})}))}));if(unwrapExports(actions),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o<n;){var s=t[o];if(e.call(r,s,o,t))return s;o++}},configurable:!0,writable:!0}),String.prototype.endsWith||(String.prototype.endsWith=function(e){var t=this.length-e.length;return t>=0&&this.lastIndexOf(e)===t}),"function"!=typeof Event){var _Event=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t};"undefined"!=typeof window&&(window.Event=_Event)}var polyfills=Object.freeze({__proto__:null}),causes_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n={ENTER_PRESS:"ENTER_PRESS",SUGGESTION_SELECT:"SUGGESTION_SELECT",CLEAR_VALUE:"CLEAR_VALUE",SEARCH_ICON_CLICK:"SEARCH_ICON_CLICK"};t.default=n}));unwrapExports(causes_1);var lib=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.constants=t.Reducers=t.polyfills=t.storeKey=t.Actions=t.suggestions=t.causes=t.helper=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=n({},e,{config:n({},e.config,{lock:!1,analyticsConfig:e.config&&e.config.analyticsConfig?n({},analytics.defaultAnalyticsConfig,e.config.analyticsConfig):analytics.defaultAnalyticsConfig})});return(0,redux.createStore)(o.default,t,C)};var r=y(thunk),o=y(reducers),s=g(actions),a=g(helper),i=y(suggestions),l=y(constants$1),u=y(polyfills),c=y(causes_1),p=y(valueReducer_1),d=y(queryReducer_1),h=y(queryOptionsReducer_1),f=y(dependencyTreeReducer_1),m=y(propsReducer);function g(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function y(e){return e&&e.__esModule?e:{default:e}}var v=constants.STORE_KEY,b=i.default,_=c.default,$={valueReducer:p.default,queryOptionsReducer:h.default,queryReducer:d.default,dependencyTreeReducer:f.default,propsReducer:m.default};t.helper=a,t.causes=_,t.suggestions=b,t.Actions=s,t.storeKey=v,t.polyfills=u.default,t.Reducers=$,t.constants=l.default;var C=("object"==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({}):redux.compose)((0,redux.applyMiddleware)(r.default,middlewares.aiResponseMiddleware))})),configureStore=unwrapExports(lib),lib_1=lib.constants,lib_2=lib.Reducers,lib_3=lib.polyfills,lib_4=lib.storeKey,lib_5=lib.Actions,lib_6=lib.suggestions,lib_7=lib.causes,lib_8=lib.helper,transformOn=function(e){var t={};return Object.keys(e).forEach((function(n){t["on"+n[0].toUpperCase()+n.slice(1)]=e[n]})),t},babelHelperVueTransformOn=transformOn;function _regeneratorRuntime(){_regeneratorRuntime=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",i=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var s=t&&t.prototype instanceof d?t:d,a=Object.create(s.prototype),i=new w(o||[]);return r(a,"_invoke",{value:$(e,n,i)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p={};function d(){}function h(){}function f(){}var m={};l(m,s,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(T([])));y&&y!==t&&n.call(y,s)&&(m=y);var v=f.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){var o;r(this,"_invoke",{value:function(r,s){function a(){return new t((function(o,a){!function r(o,s,a,i){var l=c(e[o],e,s);if("throw"!==l.type){var u=l.arg,p=u.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,a,i)}),(function(e){r("throw",e,a,i)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,i)}))}i(l.arg)}(r,s,o,a)}))}return o=o?o.then(a,a):a()}})}function $(e,t,n){var r="suspendedStart";return function(o,s){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw s;return{value:void 0,done:!0}}for(n.method=o,n.arg=s;;){var a=n.delegate;if(a){var i=C(a,n);if(i){if(i===p)continue;return i}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var s=o.arg;return s?s.done?(t[e.resultName]=s.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):s:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function T(e){if(e||""===e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return h.prototype=f,r(v,"constructor",{value:f,configurable:!0}),r(f,"constructor",{value:h,configurable:!0}),h.displayName=l(f,i,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,l(e,i,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},b(_.prototype),l(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,n,r,o,s){void 0===s&&(s=Promise);var a=new _(u(t,n,r,o),s);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(v),l(v,i,"Generator"),l(v,s,(function(){return this})),l(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,w.prototype={constructor:w,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var i=n.call(s,"catchLoc"),l=n.call(s,"finallyLoc");if(i&&l){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(i){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var s=o;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var a=s?s.completion:{};return a.type=e,a.arg=t,s?(this.method="next",this.next=s.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function asyncGeneratorStep(e,t,n,r,o,s,a){try{var i=e[s](a),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,o)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var s=e.apply(t,n);function a(e){asyncGeneratorStep(s,r,o,a,i,"next",e)}function i(e){asyncGeneratorStep(s,r,o,a,i,"throw",e)}a(void 0)}))}}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_toPropertyKey$1(r.key),r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function _taggedTemplateLiteralLoose(e,t){return t||(t=e.slice(0)),e.raw=t,e}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _createForOfIteratorHelperLoose(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _toPrimitive$1(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _toPropertyKey$1(e){var t=_toPrimitive$1(e,"string");return"symbol"==typeof t?t:String(t)}
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e=e||self).ReactiveSearchVue={},e.Vue)}(this,(function(exports,vue){"use strict";var vue__default="default"in vue?vue.default:vue,commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}function _typeof(e){return(_typeof="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 _toPrimitive(e,t){if("object"!==_typeof(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"===_typeof(t)?t:String(t)}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function formatProdErrorMessage(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var $$observable="function"==typeof Symbol&&Symbol.observable||"@@observable",randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function createStore(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(formatProdErrorMessage(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(formatProdErrorMessage(1));return n(createStore)(e,t)}if("function"!=typeof e)throw new Error(formatProdErrorMessage(2));var o=e,s=t,a=[],i=a,l=!1;function u(){i===a&&(i=a.slice())}function c(){if(l)throw new Error(formatProdErrorMessage(3));return s}function p(e){if("function"!=typeof e)throw new Error(formatProdErrorMessage(4));if(l)throw new Error(formatProdErrorMessage(5));var t=!0;return u(),i.push(e),function(){if(t){if(l)throw new Error(formatProdErrorMessage(6));t=!1,u();var n=i.indexOf(e);i.splice(n,1),a=null}}}function d(e){if(!isPlainObject(e))throw new Error(formatProdErrorMessage(7));if(void 0===e.type)throw new Error(formatProdErrorMessage(8));if(l)throw new Error(formatProdErrorMessage(9));try{l=!0,s=o(s,e)}finally{l=!1}for(var t=a=i,n=0;n<t.length;n++){(0,t[n])()}return e}function h(e){if("function"!=typeof e)throw new Error(formatProdErrorMessage(10));o=e,d({type:ActionTypes.REPLACE})}function f(){var e,t=p;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(formatProdErrorMessage(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[$$observable]=function(){return this},e}return d({type:ActionTypes.INIT}),(r={dispatch:d,subscribe:p,getState:c,replaceReducer:h})[$$observable]=f,r}var legacy_createStore=createStore;function assertReducerShape(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:ActionTypes.INIT}))throw new Error(formatProdErrorMessage(12));if(void 0===n(void 0,{type:ActionTypes.PROBE_UNKNOWN_ACTION()}))throw new Error(formatProdErrorMessage(13))}))}function combineReducers(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var s,a=Object.keys(n);try{assertReducerShape(n)}catch(e){s=e}return function(e,t){if(void 0===e&&(e={}),s)throw s;for(var r=!1,o={},i=0;i<a.length;i++){var l=a[i],u=n[l],c=e[l],p=u(c,t);if(void 0===p){t&&t.type;throw new Error(formatProdErrorMessage(14))}o[l]=p,r=r||p!==c}return(r=r||a.length!==Object.keys(e).length)?o:e}}function bindActionCreator(e,t){return function(){return t(e.apply(this,arguments))}}function bindActionCreators(e,t){if("function"==typeof e)return bindActionCreator(e,t);if("object"!=typeof e||null===e)throw new Error(formatProdErrorMessage(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=bindActionCreator(o,t))}return n}function compose(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function applyMiddleware(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(formatProdErrorMessage(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},s=t.map((function(e){return e(o)}));return r=compose.apply(void 0,s)(n.dispatch),_objectSpread2(_objectSpread2({},n),{},{dispatch:r})}}}var redux=Object.freeze({__proto__:null,__DO_NOT_USE__ActionTypes:ActionTypes,applyMiddleware:applyMiddleware,bindActionCreators:bindActionCreators,combineReducers:combineReducers,compose:compose,createStore:createStore,legacy_createStore:legacy_createStore});function createThunkMiddleware(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var thunk=createThunkMiddleware();thunk.withExtraArgument=createThunkMiddleware;var constants=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.ADD_COMPONENT="ADD_COMPONENT",t.REMOVE_COMPONENT="REMOVE_COMPONENT",t.WATCH_COMPONENT="WATCH_COMPONENT",t.SET_QUERY="SET_QUERY",t.SET_APPBASE_QUERY="SET_APPBASE_QUERY",t.SET_QUERY_OPTIONS="SET_QUERY_OPTIONS",t.EXECUTE_QUERY="EXECUTE_QUERY",t.UPDATE_HITS="UPDATE_HITS",t.UPDATE_AGGS="UPDATE_AGGS",t.UPDATE_COMPOSITE_AGGS="UPDATE_COMPOSITE_AGGS",t.ADD_CONFIG="ADD_CONFIG",t.UPDATE_CONFIG="UPDATE_CONFIG",t.ADD_APPBASE_REF="ADD_APPBASE_REF",t.ADD_ANALYTICS_REF="ADD_ANALYTICS_REF",t.LOG_QUERY="LOG_QUERY",t.LOG_COMBINED_QUERY="LOG_COMBINED_QUERY",t.SET_INTERNAL_VALUE="SET_INTERNAL_VALUE",t.PATCH_VALUE="PATCH_VALUE",t.CLEAR_VALUES="CLEAR_VALUES",t.SET_LOADING="SET_LOADING",t.SET_ERROR="SET_ERROR",t.SET_TIMESTAMP="SET_TIMESTAMP",t.SET_HEADERS="SET_HEADERS",t.SET_MAP_DATA="SET_MAP_DATA",t.SET_MAP_RESULTS="SET_MAP_RESULTS",t.SET_QUERY_LISTENER="SET_QUERY_LISTENER",t.STORE_KEY="__REACTIVESEARCH__",t.SET_SEARCH_ID="SET_SEARCH_ID",t.SET_PROMOTED_RESULTS="SET_PROMOTED_RESULTS",t.SET_DEFAULT_QUERY="SET_DEFAULT_QUERY",t.SET_CUSTOM_QUERY="SET_CUSTOM_QUERY",t.SET_CUSTOM_HIGHLIGHT_OPTIONS="SET_CUSTOM_HIGHLIGHT_OPTIONS",t.SET_CUSTOM_DATA="SET_CUSTOM_DATA",t.SET_APPLIED_SETTINGS="SET_APPLIED_SETTINGS",t.SET_PROPS="SET_PROPS",t.UPDATE_PROPS="UPDATE_PROPS",t.REMOVE_PROPS="REMOVE_PROPS",t.SET_SUGGESTIONS_SEARCH_VALUE="SET_SUGGESTIONS_SEARCH_VALUE",t.CLEAR_SUGGESTIONS_SEARCH_VALUE="CLEAR_SUGGESTIONS_SEARCH_VALUE",t.SET_SUGGESTIONS_SEARCH_ID="SET_SUGGESTIONS_SEARCH_ID",t.UPDATE_ANALYTICS_CONFIG="UPDATE_ANALYTICS_CONFIG",t.SET_RAW_DATA="SET_RAW_DATA",t.SET_POPULAR_SUGGESTIONS="SET_POPULAR_SUGGESTIONS",t.SET_DEFAULT_POPULAR_SUGGESTIONS="SET_DEFAULT_POPULAR_SUGGESTIONS",t.SET_QUERY_TO_HITS="SET_QUERY_TO_HITS",t.RECENT_SEARCHES_SUCCESS="RECENT_SEARCHES_SUCCESS",t.RECENT_SEARCHES_ERROR="RECENT_SEARCHES_ERROR",t.SET_VALUE="SET_VALUE",t.SET_VALUES="SET_VALUES",t.RESET_TO_DEFAULT="RESET_TO_DEFAULT",t.SET_GOOGLE_MAP_SCRIPT_LOADING="SET_GOOGLE_MAP_SCRIPT_LOADING",t.SET_GOOGLE_MAP_SCRIPT_LOADED="SET_GOOGLE_MAP_SCRIPT_LOADED",t.SET_GOOGLE_MAP_SCRIPT_ERROR="SET_GOOGLE_MAP_SCRIPT_ERROR",t.SET_REGISTERED_COMPONENT_TIMESTAMP="SET_REGISTERED_COMPONENT_TIMESTAMP",t.REMOVE_REGISTERED_COMPONENT_TIMESTAMP="REMOVE_REGISTERED_COMPONENT_TIMESTAMP",t.SET_AI_RESPONSE="SET_AI_RESPONSE",t.SET_AI_RESPONSE_DELAYED="SET_AI_RESPONSE_DELAYED",t.REMOVE_AI_RESPONSE="REMOVE_AI_RESPONSE",t.SET_AI_RESPONSE_ERROR="SET_AI_RESPONSE_ERROR",t.SET_AI_RESPONSE_LOADING="SET_AI_RESPONSE_LOADING"}));unwrapExports(constants);var constants_1=constants.ADD_COMPONENT,constants_2=constants.REMOVE_COMPONENT,constants_3=constants.WATCH_COMPONENT,constants_4=constants.SET_QUERY,constants_5=constants.SET_APPBASE_QUERY,constants_6=constants.SET_QUERY_OPTIONS,constants_7=constants.EXECUTE_QUERY,constants_8=constants.UPDATE_HITS,constants_9=constants.UPDATE_AGGS,constants_10=constants.UPDATE_COMPOSITE_AGGS,constants_11=constants.ADD_CONFIG,constants_12=constants.UPDATE_CONFIG,constants_13=constants.ADD_APPBASE_REF,constants_14=constants.ADD_ANALYTICS_REF,constants_15=constants.LOG_QUERY,constants_16=constants.LOG_COMBINED_QUERY,constants_17=constants.SET_INTERNAL_VALUE,constants_18=constants.PATCH_VALUE,constants_19=constants.CLEAR_VALUES,constants_20=constants.SET_LOADING,constants_21=constants.SET_ERROR,constants_22=constants.SET_TIMESTAMP,constants_23=constants.SET_HEADERS,constants_24=constants.SET_MAP_DATA,constants_25=constants.SET_MAP_RESULTS,constants_26=constants.SET_QUERY_LISTENER,constants_27=constants.STORE_KEY,constants_28=constants.SET_SEARCH_ID,constants_29=constants.SET_PROMOTED_RESULTS,constants_30=constants.SET_DEFAULT_QUERY,constants_31=constants.SET_CUSTOM_QUERY,constants_32=constants.SET_CUSTOM_HIGHLIGHT_OPTIONS,constants_33=constants.SET_CUSTOM_DATA,constants_34=constants.SET_APPLIED_SETTINGS,constants_35=constants.SET_PROPS,constants_36=constants.UPDATE_PROPS,constants_37=constants.REMOVE_PROPS,constants_38=constants.SET_SUGGESTIONS_SEARCH_VALUE,constants_39=constants.CLEAR_SUGGESTIONS_SEARCH_VALUE,constants_40=constants.SET_SUGGESTIONS_SEARCH_ID,constants_41=constants.UPDATE_ANALYTICS_CONFIG,constants_42=constants.SET_RAW_DATA,constants_43=constants.SET_POPULAR_SUGGESTIONS,constants_44=constants.SET_DEFAULT_POPULAR_SUGGESTIONS,constants_45=constants.SET_QUERY_TO_HITS,constants_46=constants.RECENT_SEARCHES_SUCCESS,constants_47=constants.RECENT_SEARCHES_ERROR,constants_48=constants.SET_VALUE,constants_49=constants.SET_VALUES,constants_50=constants.RESET_TO_DEFAULT,constants_51=constants.SET_GOOGLE_MAP_SCRIPT_LOADING,constants_52=constants.SET_GOOGLE_MAP_SCRIPT_LOADED,constants_53=constants.SET_GOOGLE_MAP_SCRIPT_ERROR,constants_54=constants.SET_REGISTERED_COMPONENT_TIMESTAMP,constants_55=constants.REMOVE_REGISTERED_COMPONENT_TIMESTAMP,constants_56=constants.SET_AI_RESPONSE,constants_57=constants.SET_AI_RESPONSE_DELAYED,constants_58=constants.REMOVE_AI_RESPONSE,constants_59=constants.SET_AI_RESPONSE_ERROR,constants_60=constants.SET_AI_RESPONSE_LOADING,componentsReducer_1=createCommonjsModule((function(e,t){function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(t.type===constants.ADD_COMPONENT)return[].concat(n(e),[t.component]);if(t.type===constants.REMOVE_COMPONENT)return e.filter((function(e){return e!==t.component}));return e}}));unwrapExports(componentsReducer_1);var watchManReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){var t=Object.values(e),n=[];return t.forEach((function(e){"string"==typeof e?n.push(e):Array.isArray(e)?e.forEach((function(e){"string"==typeof e?n.push(e):n.push.apply(n,r(o(e)))})):"object"==typeof e&&null!==e&&n.push.apply(n,r(o(e)))})),n.filter((function(e,t,n){return n.indexOf(e)===t}))}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.WATCH_COMPONENT){var s=o(t.react),a=n({},e);return Object.keys(a).forEach((function(e){a[e]=a[e].filter((function(e){return e!==t.component}))})),s.forEach((function(e){Array.isArray(a[e])?a[e]=[].concat(r(a[e]),[t.component]):a[e]=[t.component]})),a}return e}}));unwrapExports(watchManReducer_1);var dependencyTreeReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.WATCH_COMPONENT)return n({},e,o({},t.component,t.react));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(dependencyTreeReducer_1);var queryReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_QUERY)return n({},e,o({},t.component,t.query));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(queryReducer_1);var appbaseQueryReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_APPBASE_QUERY)return n({},e,t.query);return e}}));unwrapExports(appbaseQueryReducer_1);var queryOptionsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_QUERY_OPTIONS)return n({},e,o({},t.component,t.options));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(queryOptionsReducer_1);var constants$1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.componentTypes={reactiveList:"REACTIVELIST",dataSearch:"DATASEARCH",categorySearch:"CATEGORYSEARCH",searchBox:"SEARCHBOX",singleList:"SINGLELIST",multiList:"MULTILIST",singleDataList:"SINGLEDATALIST",tabDataList:"TABDATALIST",singleDropdownList:"SINGLEDROPDOWNLIST",multiDataList:"MULTIDATALIST",multiDropdownList:"MULTIDROPDOWNLIST",singleDropdownRange:"SINGLEDROPDOWNRANGE",treeList:"TREELIST",numberBox:"NUMBERBOX",tagCloud:"TAGCLOUD",toggleButton:"TOGGLEBUTTON",reactiveComponent:"REACTIVECOMPONENT",datePicker:"DATEPICKER",dateRange:"DATERANGE",dynamicRangeSlider:"DYNAMICRANGESLIDER",multiDropdownRange:"MULTIDROPDOWNRANGE",singleRange:"SINGLERANGE",multiRange:"MULTIRANGE",rangeSlider:"RANGESLIDER",ratingsFilter:"RATINGSFILTER",rangeInput:"RANGEINPUT",geoDistanceDropdown:"GEO_DISTANCE_DROPDOWN",geoDistanceSlider:"GEO_DISTANCE_SLIDER",reactiveMap:"REACTIVE_MAP",reactiveChart:"REACTIVE_CHART",AIAnswer:"AI_ANSWER"},t.queryTypes={search:"search",term:"term",range:"range",geo:"geo",suggestion:"suggestion"},t.validProps=["type","componentType","aggregationField","aggregationSize","distinctField","distinctFieldConfig","index","aggregations","compoundClause","dataField","includeFields","excludeFields","size","from","sortBy","sortOptions","pagination","autoFocus","autosuggest","debounce","defaultValue","defaultSuggestions","fieldWeights","filterLabel","fuzziness","highlight","highlightConfig","highlightField","nestedField","placeholder","queryFormat","searchOperators","enableSynonyms","enableQuerySuggestions","queryString","vectorDataField","imageValue","categoryField","strictSelection","selectAllLabel","showCheckbox","showFilter","showSearch","showCount","showLoadMore","loadMoreLabel","showMissing","missingLabel","data","showRadio","multiSelect","includeNullValues","interval","showHistogram","snap","stepValue","range","showSlider","parseDate","calendarInterval","unit","enablePopularSuggestions","enableRecentSuggestions","popularSuggestionsConfig","recentSuggestionsConfig","indexSuggestionsConfig","featuredSuggestionsConfig","FAQSuggestionsConfig","documentSuggestionsConfig","enablePredictiveSuggestions","applyStopwords","customStopwords","enableIndexSuggestions","enableFeaturedSuggestions","enableFAQSuggestions","enableDocumentSuggestions","enableEndpointSuggestions","searchboxId","endpoint","enableAI","AIConfig","showDistinctSuggestions"],t.CLEAR_ALL={NEVER:"never",ALWAYS:"always",DEFAULT:"default"},t.SEARCH_COMPONENTS_MODES={SELECT:"select",TAG:"tag"},t.TREELIST_VALUES_PATH_SEPARATOR="◐◑◒◓",t.AI_ROLES={USER:"user",SYSTEM:"system",ASSISTANT:"assistant"},t.AI_LOCAL_CACHE_KEY="AISessions",t.AI_TRIGGER_MODES={QUESTION:"question",MANUAL:"manual",ALWAYS:"always"}}));unwrapExports(constants$1);var constants_1$1=constants$1.componentTypes,constants_2$1=constants$1.queryTypes,constants_3$1=constants$1.validProps,constants_4$1=constants$1.CLEAR_ALL,constants_5$1=constants$1.SEARCH_COMPONENTS_MODES,constants_6$1=constants$1.TREELIST_VALUES_PATH_SEPARATOR,constants_7$1=constants$1.AI_ROLES,constants_8$1=constants$1.AI_LOCAL_CACHE_KEY,constants_9$1=constants$1.AI_TRIGGER_MODES,analytics=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseCustomEvents=t.parseRangeObject=t.parseFilterValue=t.rangeObjectComponents=t.rangeComponents=t.filterComponents=t.defaultAnalyticsConfig=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(("function"==typeof Symbol?Symbol.iterator:"@@iterator")in Object(e))return function(e,t){var n=[],r=!0,o=!1,s=void 0;try{for(var a,i=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,s=e}finally{try{!r&&i.return&&i.return()}finally{if(o)throw s}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=[constants$1.componentTypes.numberBox,constants$1.componentTypes.tagCloud,constants$1.componentTypes.toggleButton,constants$1.componentTypes.datePicker,constants$1.componentTypes.dateRange,constants$1.componentTypes.multiDataList,constants$1.componentTypes.multiDropdownList,constants$1.componentTypes.multiList,constants$1.componentTypes.singleDataList,constants$1.componentTypes.singleDropdownList,constants$1.componentTypes.singleList,constants$1.componentTypes.dynamicRangeSlider,constants$1.componentTypes.multiDropdownRange,constants$1.componentTypes.multiRange,constants$1.componentTypes.rangeSlider,constants$1.componentTypes.ratingsFilter,constants$1.componentTypes.singleDropdownRange,constants$1.componentTypes.singleRange,constants$1.componentTypes.treeList],o=[constants$1.componentTypes.dateRange,constants$1.componentTypes.dynamicRangeSlider,constants$1.componentTypes.rangeSlider,constants$1.componentTypes.rangeInput,constants$1.componentTypes.ratingsFilter],s=[constants$1.componentTypes.singleRange,constants$1.componentTypes.singleDropdownRange,constants$1.componentTypes.multiRange,constants$1.componentTypes.multiDropdownRange];function a(e,t){return e+"="+t.start+"~"+t.end}function i(e,t){var n=t.label,r=t.value,i=t.componentType,l=n||e;return o.includes(i)?l+"="+r[0]+"~"+r[1]:s.includes(i)?Array.isArray(r)?r.map((function(e){return a(l,e)})).join():a(l,r):Array.isArray(r)?"object"==typeof r[0]&&null!==r[0]?r.map((function(e){return l+"="+e.value})).join():r.map((function(e){return l+"="+e})).join():l+"="+r}t.defaultAnalyticsConfig={emptyQuery:!0,suggestionAnalytics:!0,userId:null,customEvents:null,enableQueryRules:!0};t.filterComponents=r,t.rangeComponents=o,t.rangeObjectComponents=s,t.parseFilterValue=i,t.parseRangeObject=a,t.parseCustomEvents=function(e){var t="";return Object.keys(e).forEach((function(n,r){t+=n+"="+e[n],r<Object.keys(e).length-1&&(t+=",")})),t},t.default=function(e){return e&&Object.keys(e).length?Object.entries(e).filter((function(e){var t=n(e,2)[1];return r.includes(t.componentType)&&(t.value&&t.value.length||t.value&&t.value.start||t.value&&t.value.end)})).map((function(e){var t=n(e,2);return i(t[0],t[1])})).join():null}}));unwrapExports(analytics);var analytics_1=analytics.parseCustomEvents,analytics_2=analytics.parseRangeObject,analytics_3=analytics.parseFilterValue,analytics_4=analytics.rangeObjectComponents,analytics_5=analytics.rangeComponents,analytics_6=analytics.filterComponents,analytics_7=analytics.defaultAnalyticsConfig,configReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{analyticsConfig:analytics.defaultAnalyticsConfig,lock:!1},t=arguments[1];if(t.type===constants.ADD_CONFIG)return n({},e,{analyticsConfig:n({},analytics.defaultAnalyticsConfig,t.analyticsConfig)});if(t.type===constants.UPDATE_ANALYTICS_CONFIG)return n({},e,{analyticsConfig:n({},e.analyticsConfig,t.analyticsConfig)});if(t.type===constants.UPDATE_CONFIG)return n({},e,t.config);return e}}));unwrapExports(configReducer_1);var appbaseRefReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.ADD_APPBASE_REF)return t.appbaseRef;return e}}));unwrapExports(appbaseRefReducer_1);var hitsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.UPDATE_HITS)return t.append?n({},e,o({},t.component,{hits:[].concat(s(e[t.component].hits),s(t.hits)),total:t.total,time:t.time,hidden:t.hidden||0})):n({},e,o({},t.component,{hits:t.hits,total:t.total,time:t.time,hidden:t.hidden||0}));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}}));unwrapExports(hitsReducer_1);var logsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.LOG_QUERY)return n({},e,o({},t.component,t.query));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(logsReducer_1);var combinedLogsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.LOG_COMBINED_QUERY)return n({},e,o({},t.component,t.query));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(combinedLogsReducer_1);var valueReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case constants.SET_VALUE:var s={};return Object.keys(t.componentsToReset||{}).forEach((function(r){s[r]=n({},e[r],{value:t.componentsToReset[r]})})),n({},e,s,o({},t.component,{value:t.value,label:t.label||t.component,showFilter:t.showFilter,URLParams:t.URLParams,componentType:t.componentType,category:t.category,meta:t.meta,reference:t.reference}));case constants.SET_VALUES:var a=t.componentsValues?Object.keys(t.componentsValues):[];if(a.length){var i={};return a.forEach((function(o){var s=t.componentsValues[o],a=s.value,l=r(s,["value"]);i[o]=n({},e[o],{value:a},l)})),n({},e,i)}return e;case constants.PATCH_VALUE:return n({},e,o({},t.component,n({},e[t.component],t.payload)));case constants.CLEAR_VALUES:var l={};return t.resetValues&&Object.keys(t.resetValues).forEach((function(r){l[r]=n({},e[r],{value:t.resetValues[r]})})),Array.isArray(t.clearAllBlacklistComponents)&&Object.keys(e).forEach((function(n){t.clearAllBlacklistComponents.includes(n)&&(l[n]=e[n])})),l;case constants.REMOVE_COMPONENT:e[t.component];var u=r(e,[t.component]);return u;case constants.RESET_TO_DEFAULT:return n({},e,t.defaultValues);default:return e}}}));unwrapExports(valueReducer_1);var internalValueReducer=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case constants.SET_INTERNAL_VALUE:return n({},e,o({},t.component,{value:t.value,componentType:t.componentType,category:t.category,meta:t.meta}));case constants.CLEAR_VALUES:var s={};return t.resetValues&&Object.keys(t.resetValues).forEach((function(r){s[r]=n({},e[r],{value:t.resetValues[r]})})),Array.isArray(t.clearAllBlacklistComponents)&&Object.keys(e).forEach((function(n){t.clearAllBlacklistComponents.includes(n)&&(s[n]=e[n])})),s;case constants.RESET_TO_DEFAULT:return n({},e,t.defaultValues);case constants.REMOVE_COMPONENT:e[t.component];var a=r(e,[t.component]);return a;default:return e}}}));unwrapExports(internalValueReducer);var loadingReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_LOADING){var s,a=e[t.component+"_active"]||0;return t.isLoading?a+=1:a&&(a-=1),n({},e,(o(s={},t.component,t.isLoading),o(s,t.component+"_active",a),s),t.isLoading?o({},t.component+"_timestamp",(new Date).getTime()):null)}if(t.type===constants.REMOVE_COMPONENT){e[t.component],e[t.component+"_active"];var i=r(e,[t.component,t.component+"_active"]);return i}return e}}));unwrapExports(loadingReducer_1);var errorReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_ERROR)return n({},e,o({},t.component,t.error));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(errorReducer_1);var timestampReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_TIMESTAMP)return n({},e,o({},t.component,t.timestamp));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(timestampReducer_1);var headersReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_HEADERS)return t.headers;return e}}));unwrapExports(headersReducer_1);var mapDataReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_MAP_DATA)return n({},e,o({},t.componentId,{query:t.query,persistMapQuery:t.persistMapQuery}));if(t.type===constants.SET_MAP_RESULTS)return n({},e,o({},t.componentId,n({},e[t.componentId],t.payload)));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(mapDataReducer_1);var queryListenerReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_QUERY_LISTENER)return n({},e,o({},t.component,{onQueryChange:t.onQueryChange,onError:t.onError}));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(queryListenerReducer_1);var analyticsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1];switch(t.type){case constants.SET_VALUE:return o.includes(t.componentType)?{searchValue:t.value,searchId:null}:e;case constants.SET_SEARCH_ID:return n({},e,{searchId:t.searchId});case constants.SET_SUGGESTIONS_SEARCH_VALUE:return n({},e,{suggestionsSearchValue:t.value,suggestionsSearchId:null});case constants.SET_SUGGESTIONS_SEARCH_ID:return n({},e,{suggestionsSearchId:t.searchId});case constants.CLEAR_SUGGESTIONS_SEARCH_VALUE:return n({},e,{suggestionsSearchValue:null,suggestionsSearchId:null});default:return e}};var r={searchValue:null,searchId:null,suggestionsSearchId:null,suggestionsSearchValue:null},o=[constants$1.componentTypes.dataSearch,constants$1.componentTypes.categorySearch]}));unwrapExports(analyticsReducer_1);var promotedResultsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_PROMOTED_RESULTS)return n({},e,o({},t.component,t.results.map((function(e){return n({},e,{_promoted:!0})}))));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(promotedResultsReducer_1);var customDataReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_CUSTOM_DATA)return n({},e,o({},t.component,t.data));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(customDataReducer_1);var defaultQueryReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_DEFAULT_QUERY)return n({},e,o({},t.component,t.query));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(defaultQueryReducer_1);var customQueryReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_CUSTOM_QUERY)return n({},e,o({},t.component,t.query));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(customQueryReducer_1);var propsReducer=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case constants.SET_PROPS:return n({},e,o({},t.component,t.options));case constants.UPDATE_PROPS:return n({},e,o({},t.component,n({},e[t.component],t.options)));case constants.REMOVE_PROPS:case constants.REMOVE_COMPONENT:e[t.component];var s=r(e,[t.component]);return s;default:return e}}}));unwrapExports(propsReducer);var aggsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function s(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.UPDATE_AGGS){if(t.append){var a=Object.keys(e[t.component])[0],i=t.aggregations[a],l=i.buckets,u=s(i,["buckets"]);return n({},e,r({},t.component,r({},a,n({buckets:[].concat(o(e[t.component][a].buckets),o(l))},u))))}return n({},e,r({},t.component,t.aggregations))}if(t.type===constants.REMOVE_COMPONENT){e[t.component];var c=s(e,[t.component]);return c}return e}}));unwrapExports(aggsReducer_1);var compositeAggsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function s(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.UPDATE_COMPOSITE_AGGS){var a=Object.values(t.aggregations)&&Object.values(t.aggregations)[0],i=Object.keys(t.aggregations)[0];if(!a)return e;var l=[];a.buckets&&Array.isArray(a.buckets)&&(l=a.buckets);var u=l.map((function(e){var t=e.doc_count,r=e.key,o=e[i],a={},l={};if(o&&o.hits){var u=o.hits.hits[0];l=u._source,a=s(u,["_source"])}return n({_doc_count:t,_key:"string"==typeof r?r:r[i],top_hits:o},a,l)}));return n({},e,r({},t.component,t.append?[].concat(o(e[t.component]),o(u)):u))}return e}}));unwrapExports(compositeAggsReducer_1);var appliedSettingsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_APPLIED_SETTINGS)return n({},e,r({},t.component,t.data));return e}}));unwrapExports(appliedSettingsReducer_1);var customHighlightReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_CUSTOM_HIGHLIGHT_OPTIONS)return n({},e,o({},t.component,t.data));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(customHighlightReducer_1);var rawDataReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_RAW_DATA)return n({},e,o({},t.component,t.response));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(rawDataReducer_1);var querySuggestionsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_POPULAR_SUGGESTIONS)return n({},e,r({},t.component,t.suggestions));return e}}));unwrapExports(querySuggestionsReducer_1);var defaultPopularSuggestions_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_DEFAULT_POPULAR_SUGGESTIONS)return n({},e,r({},t.component,t.suggestions));return e}}));unwrapExports(defaultPopularSuggestions_1);var queryToHitsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_QUERY_TO_HITS)return n({},e,o({},t.component,t.query));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(queryToHitsReducer_1);var recentSearches=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.RECENT_SEARCHES_SUCCESS)return{error:null,data:t.data};if(t.type===constants.RECENT_SEARCHES_ERROR)return{error:t.error};return e}}));unwrapExports(recentSearches);var googleMapScriptReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1],o=t.type,s=t.loading,a=t.loaded,i=t.error;if(o===constants.SET_GOOGLE_MAP_SCRIPT_LOADING)return n({},r,{loading:s});if(o===constants.SET_GOOGLE_MAP_SCRIPT_LOADED)return n({},r,{loaded:a});if(o===constants.SET_GOOGLE_MAP_SCRIPT_ERROR)return n({},r,{error:i});return e};var r={loading:!1,loaded:!1,error:null}}));unwrapExports(googleMapScriptReducer_1);var analyticsRefReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.ADD_ANALYTICS_REF)return t.analyticsRef;return e}}));unwrapExports(analyticsRefReducer_1);var registeredComponentReducer=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_REGISTERED_COMPONENT_TIMESTAMP)return n({},e,o({},t.component,t.timestamp));if(t.type===constants.REMOVE_REGISTERED_COMPONENT_TIMESTAMP){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(registeredComponentReducer);var dateFormats_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={date:"YYYY-MM-DD",basic_date:"YYYYMMDD",basic_date_time:"YYYYMMDD[T]HHmmss.SSSZ",basic_date_time_no_millis:"YYYYMMDD[T]HHmmssZ",date_time_no_millis:"YYYY-MM-DD[T]HH:mm:ssZ",basic_time:"HHmmss.SSSZ",basic_time_no_millis:"HHmmssZ",epoch_millis:"epoch_millis",epoch_second:"epoch_second"}}));unwrapExports(dateFormats_1);var diacritics_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={"«":'"',"²":"2","³":"3","¹":"1","»":'"',"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"q","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ŋ":"N","ŋ":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƀ":"b","Ɓ":"B","Ƃ":"B","ƃ":"b","Ɔ":"O","Ƈ":"C","ƈ":"c","Ɖ":"D","Ɗ":"D","Ƌ":"D","ƌ":"d","Ǝ":"E","Ə":"A","Ɛ":"E","Ƒ":"F","ƒ":"f","Ɠ":"G","ƕ":"hv","Ɩ":"I","Ɨ":"I","Ƙ":"K","ƙ":"k","ƚ":"l","Ɯ":"M","Ɲ":"N","ƞ":"n","Ɵ":"O","Ơ":"O","ơ":"o","Ƥ":"P","ƥ":"p","ƫ":"t","Ƭ":"T","ƭ":"t","Ʈ":"T","Ư":"U","ư":"u","Ʋ":"V","Ƴ":"Y","ƴ":"y","Ƶ":"Z","ƶ":"z","ƿ":"w","DŽ":"DZ","Dž":"Dz","dž":"dz","LJ":"LJ","Lj":"Lj","lj":"lj","NJ":"NJ","Nj":"Nj","nj":"nj","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","ǝ":"e","Ǟ":"A","ǟ":"a","Ǡ":"A","ǡ":"a","Ǣ":"AE","ǣ":"ae","Ǥ":"G","ǥ":"G","Ǧ":"G","ǧ":"G","Ǩ":"K","ǩ":"k","Ǫ":"O","ǫ":"o","Ǭ":"O","ǭ":"o","ǰ":"j","DZ":"DZ","Dz":"Dz","dz":"dz","Ǵ":"G","ǵ":"g","Ƕ":"HV","Ƿ":"W","Ǹ":"N","ǹ":"n","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Ȁ":"A","ȁ":"a","Ȃ":"A","ȃ":"a","Ȅ":"E","ȅ":"e","Ȇ":"E","ȇ":"e","Ȉ":"I","ȉ":"i","Ȋ":"I","ȋ":"i","Ȍ":"O","ȍ":"o","Ȏ":"O","ȏ":"o","Ȑ":"R","ȑ":"r","Ȓ":"R","ȓ":"r","Ȕ":"U","ȕ":"u","Ȗ":"U","ȗ":"u","Ș":"S","ș":"s","Ț":"T","ț":"t","Ȝ":"Z","ȝ":"z","Ȟ":"H","ȟ":"h","Ƞ":"N","ȡ":"d","Ȣ":"OU","ȣ":"ou","Ȥ":"Z","ȥ":"z","Ȧ":"A","ȧ":"a","Ȩ":"E","ȩ":"e","Ȫ":"O","ȫ":"o","Ȭ":"O","ȭ":"o","Ȯ":"O","ȯ":"o","Ȱ":"O","ȱ":"o","Ȳ":"Y","ȳ":"y","ȴ":"l","ȵ":"n","ȶ":"t","ȷ":"j","ȸ":"db","ȹ":"qp","Ⱥ":"A","Ȼ":"C","ȼ":"c","Ƚ":"L","Ⱦ":"T","ȿ":"s","ɀ":"z","Ƀ":"B","Ʉ":"U","Ʌ":"V","Ɇ":"E","ɇ":"e","Ɉ":"J","ɉ":"j","Ɋ":"Q","ɋ":"q","Ɍ":"R","ɍ":"r","Ɏ":"Y","ɏ":"y","ɐ":"a","ɓ":"b","ɔ":"o","ɕ":"c","ɖ":"d","ɗ":"d","ɘ":"e","ə":"a","ɚ":"a","ɛ":"e","ɜ":"e","ɝ":"e","ɞ":"e","ɟ":"j","ɠ":"g","ɡ":"g","ɢ":"G","ɥ":"h","ɦ":"h","ɨ":"i","ɪ":"I","ɫ":"l","ɬ":"l","ɭ":"l","ɯ":"m","ɰ":"m","ɱ":"m","ɲ":"n","ɳ":"n","ɴ":"N","ɵ":"o","ɶ":"OE","ɼ":"r","ɽ":"r","ɾ":"r","ɿ":"r","ʀ":"R","ʁ":"R","ʂ":"s","ʄ":"j","ʇ":"t","ʈ":"t","ʉ":"u","ʋ":"v","ʌ":"v","ʍ":"w","ʎ":"y","ʏ":"Y","ʐ":"z","ʑ":"z","ʗ":"C","ʙ":"B","ʚ":"e","ʛ":"G","ʜ":"H","ʝ":"j","ʞ":"k","ʟ":"L","ʠ":"q","ʣ":"dz","ʥ":"dz","ʦ":"ts","ʨ":"tc","ʪ":"ls","ʫ":"lz","ʮ":"h","ʯ":"h","ᴀ":"A","ᴁ":"AE","ᴂ":"ae","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴆ":"D","ᴇ":"E","ᴈ":"e","ᴉ":"i","ᴊ":"J","ᴋ":"K","ᴌ":"L","ᴍ":"M","ᴎ":"N","ᴏ":"O","ᴐ":"O","ᴔ":"oe","ᴕ":"OU","ᴖ":"o","ᴗ":"o","ᴘ":"P","ᴙ":"R","ᴚ":"R","ᴛ":"T","ᴜ":"U","ᴠ":"V","ᴡ":"W","ᴢ":"Z","ᵢ":"i","ᵣ":"r","ᵤ":"u","ᵥ":"v","ᵫ":"ue","ᵬ":"b","ᵭ":"d","ᵮ":"f","ᵯ":"m","ᵰ":"n","ᵱ":"p","ᵲ":"r","ᵳ":"r","ᵴ":"s","ᵵ":"t","ᵶ":"z","ᵷ":"g","ᵹ":"g","ᵺ":"th","ᵻ":"I","ᵼ":"i","ᵽ":"p","ᵾ":"U","ᶀ":"b","ᶁ":"d","ᶂ":"f","ᶃ":"g","ᶄ":"k","ᶅ":"l","ᶆ":"m","ᶇ":"n","ᶈ":"p","ᶉ":"r","ᶊ":"s","ᶌ":"v","ᶍ":"x","ᶎ":"z","ᶏ":"a","ᶑ":"d","ᶒ":"e","ᶓ":"e","ᶔ":"e","ᶕ":"a","ᶖ":"i","ᶗ":"o","ᶙ":"u","Ḁ":"A","ḁ":"a","Ḃ":"B","ḃ":"b","Ḅ":"B","ḅ":"b","Ḇ":"B","ḇ":"b","Ḉ":"C","ḉ":"c","Ḋ":"D","ḋ":"d","Ḍ":"D","ḍ":"d","Ḏ":"D","ḏ":"d","Ḑ":"D","ḑ":"d","Ḓ":"D","ḓ":"d","Ḕ":"E","ḕ":"e","Ḗ":"E","ḗ":"e","Ḙ":"E","ḙ":"e","Ḛ":"E","ḛ":"e","Ḝ":"E","ḝ":"e","Ḟ":"F","ḟ":"f","Ḡ":"G","ḡ":"g","Ḣ":"H","ḣ":"h","Ḥ":"H","ḥ":"h","Ḧ":"H","ḧ":"h","Ḩ":"H","ḩ":"h","Ḫ":"H","ḫ":"h","Ḭ":"I","ḭ":"i","Ḯ":"I","ḯ":"i","Ḱ":"K","ḱ":"k","Ḳ":"K","ḳ":"k","Ḵ":"K","ḵ":"k","Ḷ":"L","ḷ":"l","Ḹ":"L","ḹ":"l","Ḻ":"L","ḻ":"l","Ḽ":"L","ḽ":"l","Ḿ":"M","ḿ":"m","Ṁ":"M","ṁ":"m","Ṃ":"M","ṃ":"m","Ṅ":"N","ṅ":"n","Ṇ":"N","ṇ":"n","Ṉ":"N","ṉ":"n","Ṋ":"N","ṋ":"n","Ṍ":"O","ṍ":"o","Ṏ":"O","ṏ":"o","Ṑ":"O","ṑ":"o","Ṓ":"O","ṓ":"o","Ṕ":"P","ṕ":"p","Ṗ":"P","ṗ":"p","Ṙ":"R","ṙ":"r","Ṛ":"R","ṛ":"r","Ṝ":"R","ṝ":"r","Ṟ":"R","ṟ":"r","Ṡ":"S","ṡ":"s","Ṣ":"S","ṣ":"s","Ṥ":"S","ṥ":"s","Ṧ":"S","ṧ":"s","Ṩ":"S","ṩ":"s","Ṫ":"T","ṫ":"t","Ṭ":"T","ṭ":"t","Ṯ":"T","ṯ":"t","Ṱ":"T","ṱ":"t","Ṳ":"U","ṳ":"u","Ṵ":"U","ṵ":"u","Ṷ":"U","ṷ":"u","Ṹ":"U","ṹ":"u","Ṻ":"U","ṻ":"u","Ṽ":"V","ṽ":"v","Ṿ":"V","ṿ":"v","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","Ẇ":"W","ẇ":"w","Ẉ":"W","ẉ":"w","Ẋ":"X","ẋ":"x","Ẍ":"X","ẍ":"x","Ẏ":"Y","ẏ":"y","Ẑ":"Z","ẑ":"z","Ẓ":"Z","ẓ":"z","Ẕ":"Z","ẕ":"z","ẖ":"h","ẗ":"t","ẘ":"w","ẙ":"y","ẚ":"a","ẛ":"f","ẜ":"s","ẝ":"s","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","Ỻ":"LL","ỻ":"ll","Ỽ":"V","Ỿ":"Y","ỿ":"y","‐":"-","‑":"-","‒":"-","–":"-","—":"-","‘":'"',"’":'"',"‚":'"',"‛":'"',"“":'"',"”":'"',"„":'"',"′":'"',"″":'"',"‵":'"',"‶":'"',"‸":"^","‹":'"',"›":'"',"‼":"!!","⁄":"/","⁅":"[","⁆":"]","⁇":"??","⁈":"?!","⁉":"!?","⁎":"*","⁏":";","⁒":"%","⁓":"~","⁰":"0","ⁱ":"i","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","ⁿ":"n","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","₊":"+","₋":"-","₌":"=","₍":"(","₎":")","ₐ":"a","ₑ":"e","ₒ":"o","ₓ":"x","ₔ":"a","ↄ":"c","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"19","⑳":"20","⑴":"(1)","⑵":"(2)","⑶":"(3)","⑷":"(4)","⑸":"(5)","⑹":"(6)","⑺":"(7)","⑻":"(8)","⑼":"(9)","⑽":"(10)","⑾":"(11)","⑿":"(12)","⒀":"(13)","⒁":"(14)","⒂":"(15)","⒃":"(16)","⒄":"(17)","⒅":"(18)","⒆":"(19)","⒇":"(20)","⒈":"1.","⒉":"2.","⒊":"3.","⒋":"4.","⒌":"5.","⒍":"6.","⒎":"7.","⒏":"8.","⒐":"9.","⒑":"10.","⒒":"11.","⒓":"12.","⒔":"13.","⒕":"14.","⒖":"15.","⒗":"16.","⒘":"17.","⒙":"18.","⒚":"19.","⒛":"20.","⒜":"(a)","⒝":"(b)","⒞":"(c)","⒟":"(d)","⒠":"(e)","⒡":"(f)","⒢":"(g)","⒣":"(h)","⒤":"(i)","⒥":"(j)","⒦":"(k)","⒧":"(l)","⒨":"(m)","⒩":"(n)","⒪":"(o)","⒫":"(p)","⒬":"(q)","⒭":"(r)","⒮":"(s)","⒯":"(t)","⒰":"(u)","⒱":"(v)","⒲":"(w)","⒳":"(x)","⒴":"(y)","⒵":"(z)","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓥ":"v","ⓦ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","⓪":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","❛":'"',"❜":'"',"❝":'"',"❞":'"',"❨":"(","❩":")","❪":"(","❫":")","❬":"<","❭":">","❮":'"',"❯":'"',"❰":"<","❱":">","❲":"[","❳":"]","❴":"{","❵":"}","❶":"1","❷":"2","❸":"3","❹":"4","❺":"5","❻":"6","❼":"7","❽":"8","❾":"9","❿":"10","➀":"1","➁":"2","➂":"3","➃":"4","➄":"5","➅":"6","➆":"7","➇":"8","➈":"9","➉":"10","➊":"1","➋":"2","➌":"3","➍":"4","➎":"5","➏":"6","➐":"7","➑":"8","➒":"9","➓":"10","Ⱡ":"L","ⱡ":"l","Ɫ":"L","Ᵽ":"P","Ɽ":"R","ⱥ":"a","ⱦ":"t","Ⱨ":"H","ⱨ":"h","Ⱪ":"K","ⱪ":"k","Ⱬ":"Z","ⱬ":"z","Ɱ":"M","Ɐ":"a","ⱱ":"v","Ⱳ":"W","ⱳ":"w","ⱴ":"v","Ⱶ":"H","ⱶ":"h","ⱸ":"e","ⱺ":"o","ⱻ":"E","ⱼ":"j","⸨":"((","⸩":"))","Ꜩ":"TZ","ꜩ":"tz","ꜰ":"F","ꜱ":"S","Ꜳ":"AA","ꜳ":"aa","Ꜵ":"AO","ꜵ":"ao","Ꜷ":"AU","ꜷ":"au","Ꜹ":"AV","ꜹ":"av","Ꜻ":"AV","ꜻ":"av","Ꜽ":"AY","ꜽ":"ay","Ꜿ":"c","ꜿ":"c","Ꝁ":"K","ꝁ":"k","Ꝃ":"K","ꝃ":"k","Ꝅ":"K","ꝅ":"k","Ꝇ":"L","ꝇ":"l","Ꝉ":"L","ꝉ":"l","Ꝋ":"O","ꝋ":"o","Ꝍ":"O","ꝍ":"o","Ꝏ":"OO","ꝏ":"oo","Ꝑ":"P","ꝑ":"p","Ꝓ":"P","ꝓ":"p","Ꝕ":"P","ꝕ":"p","Ꝗ":"Q","ꝗ":"q","Ꝙ":"Q","ꝙ":"q","Ꝛ":"R","ꝛ":"r","Ꝟ":"V","ꝟ":"v","Ꝡ":"VY","ꝡ":"vy","Ꝣ":"Z","ꝣ":"z","Ꝧ":"TH","ꝧ":"th","Ꝩ":"V","Ꝺ":"D","ꝺ":"d","Ꝼ":"F","ꝼ":"f","Ᵹ":"G","Ꝿ":"G","ꝿ":"g","Ꞁ":"L","ꞁ":"l","Ꞃ":"R","ꞃ":"r","Ꞅ":"s","ꞅ":"S","Ꞇ":"T","ꟻ":"F","ꟼ":"p","ꟽ":"M","ꟾ":"I","ꟿ":"M","ff":"ff","fi":"fi","fl":"fl","ffi":"ffi","ffl":"ffl","st":"st","!":"!",""":'"',"#":"#","$":"$","%":"%","&":"&","'":'"',"(":"(",")":")","*":"*","+":"+",",":",","-":"-",".":".","/":"/","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9",":":":",";":";","<":"<","=":"=",">":">","?":"?","@":"@","A":"A","B":"B","C":"C","D":"D","E":"E","F":"F","G":"G","H":"H","I":"I","J":"J","K":"K","L":"L","M":"M","N":"N","O":"O","P":"P","Q":"Q","R":"R","S":"S","T":"T","U":"U","V":"V","W":"W","X":"X","Y":"Y","Z":"Z","[":"[","\":"\\","]":"]","^":"^","_":"_","a":"a","b":"b","c":"c","d":"d","e":"e","f":"f","g":"g","h":"h","i":"i","j":"j","k":"k","l":"l","m":"m","n":"n","o":"o","p":"p","q":"q","r":"r","s":"s","t":"t","u":"u","v":"v","w":"w","x":"x","y":"y","z":"z","{":"{","}":"}","~":"~"}}));unwrapExports(diacritics_1);var suggestions=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.replaceDiacritics=i;var r,o=(r=diacritics_1)&&r.__esModule?r:{default:r};function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a=function(e){switch(typeof e){case"string":return e;case"object":return Array.isArray(e)?function e(t){return t.reduce((function(t,n){return t.concat(Array.isArray(n)?e(n):n)}),[])}(e):null;default:return e}};function i(e){for(var t=e?String(e):"",n=0;n<t.length;n++){var r=t.charAt(n);o.default[r]&&(t=t.replaceAll(r,o.default[r]))}return t}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var u=function(e){var t=e.suggestions,r=e.currentValue,o=e.wordsToShowAfterHighlight,a={};if(r){var i=r.trim();return t.reduce((function(e,t){var r=t.label,u=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["label"]),c=(new DOMParser).parseFromString(r,"text/html").documentElement.textContent,p="^("+l(i)+")\\w+",d=new RegExp(p,"i"),h=d.exec(c);if(h||(p="^("+l(i)+")",h=(d=new RegExp(p,"i")).exec(c)),h){var f=c.slice(h.index,c.length).slice(i.length).split(" ").slice(0,o+1).join(" "),m=i+'<mark class="highlight">'+f+"</mark>",g=""+i+f;return a[m]?e:(a[m]=1,[].concat(s(e),[n({},u,{label:m,value:g,isPredictiveSuggestion:!0})]))}return e}),[])}return[]};t.default=function(e){var t=e.fields,r=e.suggestions,o=e.currentValue,l=e.suggestionProperties,c=void 0===l?[]:l,p=e.showDistinctSuggestions,d=void 0!==p&&p,h=e.enablePredictiveSuggestions,f=void 0!==h&&h,m=e.wordsToShowAfterHighlight,g=void 0===m?2:m,y=e.enableSynonyms,v=[],b=[],_=!1,$=function(e,t,r){if((_||o.trim().split(" ").some((function(t){return i(e).toLowerCase().includes(i(t))})))&&!b.includes(e)||r._promoted){var a={label:e,value:e,source:r},l={};Array.isArray(c)&&c.length>0&&c.forEach((function(e){t.hasOwnProperty(e)&&(l=n({},l,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t[e])))}));var u=n({},a,l);if(b=[].concat(s(b),[e]),v=[].concat(s(v),[u]),d)return!0}return!1},C=function(){r.forEach((function(e){t.forEach((function(t){!function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;if("object"==typeof t){var s=n.split("."),i=t[s[0]];if(t[n]){var l=t[n],u=a(l);if(u&&"string"==typeof u)return $(u,t,r)}if(Array.isArray(i)&&(i.length>1&&(i=i.filter((function(e){return e&&e.toString().toLowerCase().includes(o.toString().toLowerCase())}))),i=i[0]),i)if(s.length>1){var c=n.substring(s[0].length+1);e(i,c,r)}else{var p=a(i);if(p)return $(p,t,r)}}return!1}(e,t)}))}))};if(C(),v.length<r.length&&!_&&y&&(_=!0,C()),f){var S=u({suggestions:v,currentValue:o,wordsToShowAfterHighlight:g});v=S}if(d){var O={},w=[];return v.forEach((function(e){e.source&&e.source._id&&(O[e.source._id]||(w.push(e),O[e.source._id]=!0))})),w}return v}}));unwrapExports(suggestions);var suggestions_1=suggestions.replaceDiacritics,helper=createCommonjsModule((function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.hexToRGBA=t.getObjectFromLocalStorage=t.setObjectInLocalStorage=t.transformRequestUsingEndpoint=t.flatten=t.saveDataAsFile=t.transformTreeListLocalStateIntoQueryComptaibleFormat=t.transformRawTreeListData=t.recLookup=t.hasCustomRenderer=t.getComponent=t.isFunction=t.getCalendarIntervalErrorMessage=t.queryFormatMillisecondsMap=t.featuredSuggestionsActionTypes=t.suggestionTypes=t.getTopSuggestions=t.withClickIds=t.getCompositeAggsQuery=t.getAggsQuery=t.extractQueryFromDefaultQuery=t.updateInternalQuery=t.getSearchState=t.componentTypeToDefaultValue=t.extractQueryFromCustomQuery=t.getOptionsForCustomQuery=t.getOptionsFromQuery=t.parseHits=t.handleA11yAction=t.getInnerKey=t.getClassName=t.checkSomePropChange=t.checkPropChange=t.updateDefaultQuery=t.updateCustomQuery=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.isEqual=p,t.compareQueries=function(e,t){try{return p(JSON.parse(JSON.stringify(e)),JSON.parse(JSON.stringify(t)))}catch(e){return!1}},t.debounce=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(!t)return e;var r=null,o=null,s=function(){return e.apply(n,o)};return function(){o=arguments,clearTimeout(r),r=setTimeout(s,t)}},t.getQueryOptions=function(e){var t={};void 0!==e.size&&(t.size=e.size);if(e.includeFields||e.excludeFields){var n={};e.includeFields&&(n.includes=e.includeFields),e.excludeFields&&(n.excludes=e.excludeFields),t._source=n}return t},t.buildQuery=function(e,t,n,o){var s=null,a=null;e in t&&(s=function e(t,n){var r=[];if(Object.keys(t).forEach((function(o){if(Array.isArray(t[o])){var s=h(d(o),t[o].map((function(t){return"string"!=typeof t?e(t,n):t in n&&n[t]&&Object.keys(n[t]).length?n[t]:null})).filter((function(e){return!!e})));s&&Object.keys(s).length&&(r=[].concat(l(r),[s]))}else if("string"==typeof t[o]){var a=h(d(o),n[t[o]]);a&&Object.keys(a).length&&(r=[].concat(l(r),[a]))}else if("object"==typeof t[o]&&null!==t[o]){var i=e(t[o],n);i&&Object.keys(i).length&&(r=[].concat(l(r),[i]))}})),Array.isArray(r)&&r.length)return{bool:{must:r}};if(r&&Object.keys(r).length)return r;return null}(t[e],n),a=function e(t,n,o){var s={};Object.keys(t).forEach((function(o){Array.isArray(t[o])?t[o].forEach((function(e){n[e]&&(s=r({},s,n[e]))})):"string"==typeof t[o]?n[t[o]]&&(s=r({},s,n[t[o]])):"object"!=typeof t[o]||null===t[o]||Array.isArray(t[o])||(s=r({},s,e(t[o],n)))})),n[o]&&(s=r({},s,n[o]));return s}(t[e],o,e));return{queryObj:s,options:a}},t.pushToAndClause=function e(t,n){var o=r({},t);if(o.and)return Array.isArray(o.and)?(o.and=[].concat(l(o.and),[n]),o):"string"==typeof o.and?(o.and=[o.and,n],o):(o.and=e(o.and,n),o);return r({},o,{and:n})},t.checkValueChange=function(e,t,n,r){var o=t;Array.isArray(t)&&!t.length&&(o=null);var s=function(t){console.warn(e+" - beforeValueChange rejected the promise with ",t)};if(n)try{var a=n(o);a instanceof Promise?a.then(r).catch(s):r()}catch(e){s(e)}else r()},t.getAggsOrder=f,t.formatDate=function(e,t){if(t.parseDate)return t.parseDate(e,t);switch(t.queryFormat){case"epoch_millis":return e.valueOf();case"epoch_second":return Math.floor(e.valueOf()/1e3);default:return o.default[t.queryFormat]?e.format(o.default[t.queryFormat]):e.valueOf()}},t.unwrapToNativeDate=function(e){if(e)return new Date(e.valueOf());return e},t.getResultStats=function(e){var t=e.total,n=e.size,o=e.time,s=e.hidden,a=e.promotedResults;return r({numberOfResults:t},n>0?{numberOfPages:Math.ceil(t/n)}:null,{time:o||0,hidden:s,promoted:a?a.length:0})},t.extractFieldsFromSource=S,t.normalizeDataField=O,t.handleOnSuggestions=function(e,t,n){var r=n.parseSuggestion,o=n.promotedResults,a=n.enablePredictiveSuggestions,i=[];n.dataField?i=O(n.dataField).map((function(e){return e.field})):e&&Array.isArray(e)&&e.length>0&&e[0]&&e[0]._source&&(i=S(e[0]._source));var u=y(e,!1),c=y(o,!1);if(c&&c.length){var p=c.map((function(e){return e._id})).filter(Boolean);p&&(u=u.filter((function(e){return!p.includes(e._id)}))),u=[].concat(l(c),l(u))}var d=(0,s.default)({fields:i,suggestions:u,currentValue:t.toLowerCase(),showDistinctSuggestions:n.showDistinctSuggestions,enablePredictiveSuggestions:a,enableSynonyms:n.enableSynonyms});if(r)return d.map((function(e){return r(e)}));return d},t.isValidDateRangeQueryFormat=function(e){return Object.keys(o.default).includes(e)},t.setDeep=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.reduce((function(e,o,s){return r&&"object"!=typeof e[o]&&s!==t.length-1?(e[o]={},e[o]):s===t.length-1?(e[o]=n,n):"object"==typeof e[o]?e[o]:{}}),e)},t.getStackTrace=function(){var e=new Error;console.log(e.stack)};var o=a(dateFormats_1),s=a(suggestions);function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.updateCustomQuery=function(e,t,n){t.customQuery&&"function"==typeof t.customQuery&&t.setCustomQuery(e,t.customQuery(n,t))};var c=t.updateDefaultQuery=function(e,t,n){t.defaultQuery&&"function"==typeof t.defaultQuery&&t.setDefaultQuery(e,t.defaultQuery(n,t))};function p(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;if(e.constructor!==t.constructor)return!1;for(var n in e)if(e.hasOwnProperty(n)){if(!t.hasOwnProperty(n))return!1;if(e[n]!==t[n]){if("object"!=typeof e[n])return!1;if(!p(e[n],t[n]))return!1}}for(var r in t)if(t.hasOwnProperty(r)&&!e.hasOwnProperty(r))return!1;return!0}function d(e){return"and"===e?"must":"or"===e?"should":"must_not"}function h(e,t){var n=null;return(Array.isArray(t)&&t.length||!Array.isArray(t)&&t)&&(n={bool:u({},e,t)}),"should"===e&&n&&(n={bool:r({},n.bool,{minimum_should_match:1})}),n}function f(e){return"count"===e?{_count:"desc"}:{_key:e}}var m=t.checkPropChange=function(e,t,n){return!p(e,t)&&(n(),!0)},g=(t.checkSomePropChange=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],r=arguments[3];n.some((function(n){return m(e[n],t[n],r)}))},t.getClassName=function(e,t){return e&&e[t]||""},t.getInnerKey=function(e,t){return e&&e[t]||{}},t.handleA11yAction=function(e,t){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t())},function(e){var t=r({},e);return t.highlight&&Object.keys(t.highlight).forEach((function(e){var n=t.highlight[e][0];t._source=r({},t._source,u({},e,n))})),t}),y=t.parseHits=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=null;return e&&(n=[].concat(l(e)).map((function(e){var n=r({},e);return t&&(n=g(e)),Object.keys(n).filter((function(e){return"_source"!==e})).reduce((function(e,t){return e[t]=n[t],e}),r({highlight:n.highlight||{}},n._source))}))),n};var v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e){e.query;var t=i(e,["query"]);return Object.keys(t).length?t:null}return null};t.getOptionsFromQuery=v;t.getOptionsForCustomQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e){e.query,e.id,e.params;var t=i(e,["query","id","params"]);return Object.keys(t).length?t:null}return null};t.extractQueryFromCustomQuery=function(e){return e?e.id?{id:e.id,params:e.params}:e.query:null};function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=arguments[2];Object.keys(e).forEach((function(o){var s=e[o]||{},a=s.hidden,i=s.total,l=s.time;t[o]=r({},t[o],{resultStats:r({},t[o].resultStats,{numberOfResults:i,time:l,promoted:n[o]&&n[o].length,hidden:a||0})})}))}var _=t.componentTypeToDefaultValue=(u(n={},constants$1.componentTypes.singleList,""),u(n,constants$1.componentTypes.multiList,[]),u(n,constants$1.componentTypes.singleDataList,""),u(n,constants$1.componentTypes.singleDropdownList,""),u(n,constants$1.componentTypes.multiDataList,[]),u(n,constants$1.componentTypes.multiDropdownList,[]),u(n,constants$1.componentTypes.tagCloud,""),u(n,constants$1.componentTypes.toggleButton,""),u(n,constants$1.componentTypes.singleDropdownRange,""),u(n,constants$1.componentTypes.multiDropdownRange,[]),u(n,constants$1.componentTypes.singleRange,""),u(n,constants$1.componentTypes.multiRange,[]),n),$=(t.getSearchState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.selectedValues,o=e.queryLog,s=e.dependencyTree,a=e.props,i=e.hits,l=e.aggregations,c=e.isLoading,p=e.error,d=e.promotedResults,h=e.settings,f=e.customData,m=e.rawData,g={},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return Object.keys(e).forEach((function(n){g[n]=r({},g[n],t?u({},t,e[n]):e[n])}))};return y(a),Object.keys(n||{}).forEach((function(e){var t=g[e],o=n[e],s=a[e],i=s?s.componentType:null;if(o){var l=r({},t,r({title:o.label,componentType:o.componentType,value:o.value||_[i]},o.category&&{category:o.category},{URLParams:o.URLParams}));Object.keys(l).length&&(g[e]=l)}})),t||(y(o),y(i,"hits"),y(l,"aggregations"),y(c,"isLoading"),y(p,"error"),y(d,"promotedData"),y(h,"settings"),y(f,"customData"),y(m,"rawData"),b(i,g,d)),y(s,"react"),g},t.updateInternalQuery=function(e,t,n,o,s,a){var i=o.defaultQuery,l=void 0,u=s;if(i){var p=i(n,o);u=(p||{}).query,l=v(p),c(e,o,n)}u?(o.setQueryOptions(e,r({},l,t||s)),o.updateQuery(r({componentId:e,query:u,value:n},a))):o.setQueryOptions(e,r({},l,t||s))},function(e,t){var n={},r=e.defaultQuery;if(r){var o=r(t,e);if(o){o.query;var s=i(o,["query"]);s&&(n=s)}}return n});t.extractQueryFromDefaultQuery=$;t.getAggsQuery=function(e,t,n){var o=t,s=n.dataField,a=n.size,i=n.sortBy,c=n.showMissing,p=n.missingLabel,d=n.aggregationSize;if(o.size=0,"string"==typeof s)o.aggs=u({},s,{terms:r({field:s,size:a,aggregationSize:d,order:f(i||"count")},c?{missing:p}:{})});else{var h=void 0;[].concat(l(s)).reverse().forEach((function(e){h=u({},e,{terms:r({field:e,size:a,aggregationSize:d,order:f(i||"count")},c?{missing:p}:{}),aggs:h})})),o.aggs=h}return n.nestedField&&(o.aggs={reactivesearch_nested:{nested:{path:n.nestedField},aggs:o.aggs}}),r({},o,$(n,e))},t.getCompositeAggsQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,n=void 0===t?{}:t,o=e.props,s=e.after,a=void 0===s?null:s,i=e.showTopHits,l=void 0!==i&&i,c=e.value,p=n,d=o.dataField,h=o.size,f=o.sortBy,m=o.showMissing,g=o.aggregationField,y=g||d,v="count"===f?{}:{order:f};return p.aggs=u({},y,r({composite:r({sources:[u({},y,{terms:r({field:y},v,m?{missing_bucket:!0}:{})})],size:h},a)},l?{aggs:u({},y,{top_hits:{size:1}})}:{})),p.size=0,o.nestedField&&(p.aggs={reactivesearch_nested:{nested:{path:o.nestedField},aggs:p.aggs}}),r({},p,$(o,c))};var C=t.withClickIds=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e,t){return r({},e,{_click_id:t})}))};function S(e){var t=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).reduce((function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments[1],a=n?n+"."+s:s;return Number.isNaN(parseInt(s,10))||(a=n||s),t[s]&&"object"==typeof t[s]?r({},o,e(t[s],a)):r({},o,u({},a,!0))}),[])}(e);return Object.keys(t)}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return"string"==typeof e?[{field:e,weight:t.length?t[0]:void 0}]:Array.isArray(e)?e.map((function(e,n){var r={};return"string"==typeof e?(r.field=e,t.length>n&&(r.weight=t[n])):"object"==typeof e&&e&&e.field&&(r.field=e.field,r.weight=e.weight),r})):"object"==typeof e&&e?[{field:e.field,weight:e.weight}]:[]}t.getTopSuggestions=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments[2],r=y(e,!1),o=(0,s.default)({fields:["key","key.autosuggest","key.search"],suggestions:r||[],currentValue:t.toLowerCase(),showDistinctSuggestions:n});return C(o)};t.suggestionTypes={Popular:"popular",Index:"index",Recent:"recent",Promoted:"promoted",Featured:"featured",FAQ:"faq",Document:"document"},t.featuredSuggestionsActionTypes={NAVIGATE:"navigate",FUNCTION:"function",SELECT:"select"};var w=t.queryFormatMillisecondsMap={minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629746e3,quarter:7889238e3,year:31556952e3},T=(t.getCalendarIntervalErrorMessage=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"minute",n=Object.keys(w),r=n.indexOf(t);if(-1===r&&console.error("Invalid calendarInterval Passed"),"year"===t)return"Try using a shorter range of values.";for(var o=r+1;o<n.length;o+=1)if(e/Object.values(w)[o]<=100){var s=n[o];return{errorMessage:"Please pass calendarInterval prop with value greater than or equal to a `"+s+"` for a meaningful resolution of histogram.",calculatedCalendarInterval:s}}return{errorMessage:"Try using a shorter range of values.",calculatedCalendarInterval:"year"}},t.isFunction=function(e){return"function"==typeof e});t.getComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.children,r=t.render;return T(n)?n(e):T(r)?r(e):null},t.hasCustomRenderer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.render,n=e.children;return T(n)||T(t)},t.recLookup=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";try{var o=n.split(r);return 1===o.length?t[o[0]]:e(t[o[0]],o.slice(1).join(r),r)}catch(e){return!1}};t.transformRawTreeListData=function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=[];if(t instanceof Object){var a=Object.keys(t);a.forEach((function(a){Array.isArray(t[a].buckets)&&t[a].buckets.forEach((function(t){s.push(r({key:t.key,count:t.doc_count,level:o},t[n[o+1]]instanceof Object?{list:e(u({},n[o+1],t[n[o+1]]),n,o+1)}:{}))}))}))}return s},t.transformTreeListLocalStateIntoQueryComptaibleFormat=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[];return t instanceof Object&&(Object.keys(t).length?Object.keys(t).forEach((function(o){t[o]instanceof Object&&r.push.apply(r,l(e(t[o],n?n+" > "+o:o))),!0===t[o]&&r.push(n?n+" > "+o:o)})):n&&r.push(n)),r},t.saveDataAsFile=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"exportedData",t=arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"csv",r=t,o="text/"+n;"json"===n&&(r=JSON.stringify(r,0,4));var s=new Blob([r],{type:o}),a=document.createElement("a");a.download=e+"."+n,a.href=window.URL.createObjectURL(s),a.dataset.downloadurl=[o,a.download,a.href].join(":");var i=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});a.dispatchEvent(i),a.remove()},t.flatten=function(e){var t={};return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(Object(n)!==n)t[r]=n;else if(Array.isArray(n))t[r]=JSON.stringify(n);else{var o=!0;Object.keys(n).forEach((function(t){o=!1,e(n[t],r?r+"."+t:t)})),o&&r&&(t[r]={})}}(e),t};t.transformRequestUsingEndpoint=function(e,t){if(t instanceof Object){var n=t.headers,o=void 0===n?{}:n,s=t.body,a=i(t,["headers","body"]);return r({},e,a,{headers:r({},e.headers,o)},s instanceof Object?{body:JSON.stringify(s)}:{})}return e};t.setObjectInLocalStorage=function(e,t){if("undefined"!=typeof localStorage){if(!e||!t)throw new Error("Key and value are required for setObject");try{var n=JSON.stringify(t);localStorage.setItem(e,n)}catch(e){console.error("Error saving object to localStorage:",e)}}else console.warn("localstorage not available")},t.getObjectFromLocalStorage=function(e){if(!e)throw new Error("Key is required for getObject");try{var t=localStorage.getItem(e);return null===t?null:JSON.parse(t)}catch(e){return console.error("Error retrieving object from localStorage:",e),null}},t.hexToRGBA=function(e){if(function(e){return/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/.test(e)}(e)||function(e){return/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(0|1|0\.\d{1,2})\)$/.test(e)}(e)||function(e){return/^hsl\(\d{1,3},\s*[\d.]+%,\s*[\d.]+%\)$/.test(e)}(e)||function(e){return/^hsla\(\d{1,3},\s*[\d.]+%,\s*[\d.]+%,\s*(0|1|0\.\d{1,2})\)$/.test(e)}(e))return e;if(!function(e){return/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(e)}(e))return null;var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,(function(e,t,n,r,o){return t+t+n+n+r+r+(o?o+o:"")})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(t);return n?"rgba("+parseInt(n[1],16)+", "+parseInt(n[2],16)+", "+parseInt(n[3],16)+", "+(n[4]?parseInt(n[4],16)/255:1)+")":null}}));unwrapExports(helper);var helper_1=helper.hexToRGBA,helper_2=helper.getObjectFromLocalStorage,helper_3=helper.setObjectInLocalStorage,helper_4=helper.transformRequestUsingEndpoint,helper_5=helper.flatten,helper_6=helper.saveDataAsFile,helper_7=helper.transformTreeListLocalStateIntoQueryComptaibleFormat,helper_8=helper.transformRawTreeListData,helper_9=helper.recLookup,helper_10=helper.hasCustomRenderer,helper_11=helper.getComponent,helper_12=helper.isFunction,helper_13=helper.getCalendarIntervalErrorMessage,helper_14=helper.queryFormatMillisecondsMap,helper_15=helper.featuredSuggestionsActionTypes,helper_16=helper.suggestionTypes,helper_17=helper.getTopSuggestions,helper_18=helper.withClickIds,helper_19=helper.getCompositeAggsQuery,helper_20=helper.getAggsQuery,helper_21=helper.extractQueryFromDefaultQuery,helper_22=helper.updateInternalQuery,helper_23=helper.getSearchState,helper_24=helper.componentTypeToDefaultValue,helper_25=helper.extractQueryFromCustomQuery,helper_26=helper.getOptionsForCustomQuery,helper_27=helper.getOptionsFromQuery,helper_28=helper.parseHits,helper_29=helper.handleA11yAction,helper_30=helper.getInnerKey,helper_31=helper.getClassName,helper_32=helper.checkSomePropChange,helper_33=helper.checkPropChange,helper_34=helper.updateDefaultQuery,helper_35=helper.updateCustomQuery,helper_36=helper.isEqual,helper_37=helper.compareQueries,helper_38=helper.debounce,helper_39=helper.getQueryOptions,helper_40=helper.buildQuery,helper_41=helper.pushToAndClause,helper_42=helper.checkValueChange,helper_43=helper.getAggsOrder,helper_44=helper.formatDate,helper_45=helper.unwrapToNativeDate,helper_46=helper.getResultStats,helper_47=helper.extractFieldsFromSource,helper_48=helper.normalizeDataField,helper_49=helper.handleOnSuggestions,helper_50=helper.isValidDateRangeQueryFormat,helper_51=helper.setDeep,helper_52=helper.getStackTrace,aiReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_AI_RESPONSE)return(0,helper.setObjectInLocalStorage)("AISessions",n({},(0,helper.getObjectFromLocalStorage)(constants$1.AI_LOCAL_CACHE_KEY)||{},o({},t.component,n({},e[t.component]||{},t.payload)))),n({},e,o({},t.component,n({},e[t.component]?e[t.component]:{},{response:n({},e[t.component]?e[t.component].response:{},t.payload),isLoading:!1,error:null})));if(t.type===constants.REMOVE_AI_RESPONSE){e[t.component];var s=r(e,[t.component]);return s}if(t.type===constants.SET_AI_RESPONSE_ERROR)return n({},e,o({},t.component,n({},e[t.component]?e[t.component]:{},{error:t.error,isLoading:!1,response:null},t.meta||{})));if(t.type===constants.SET_AI_RESPONSE_LOADING)return n({},e,o({},t.component,n({},e[t.component]?e[t.component]:{},{isLoading:t.isLoading})));return e}}));unwrapExports(aiReducer_1);var reducers=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=D(componentsReducer_1),r=D(watchManReducer_1),o=D(dependencyTreeReducer_1),s=D(queryReducer_1),a=D(appbaseQueryReducer_1),i=D(queryOptionsReducer_1),l=D(configReducer_1),u=D(appbaseRefReducer_1),c=D(hitsReducer_1),p=D(logsReducer_1),d=D(combinedLogsReducer_1),h=D(valueReducer_1),f=D(internalValueReducer),m=D(loadingReducer_1),g=D(errorReducer_1),y=D(timestampReducer_1),v=D(headersReducer_1),b=D(mapDataReducer_1),_=D(queryListenerReducer_1),$=D(analyticsReducer_1),C=D(promotedResultsReducer_1),S=D(customDataReducer_1),O=D(defaultQueryReducer_1),w=D(customQueryReducer_1),T=D(propsReducer),k=D(aggsReducer_1),A=D(compositeAggsReducer_1),E=D(appliedSettingsReducer_1),I=D(customHighlightReducer_1),R=D(rawDataReducer_1),x=D(querySuggestionsReducer_1),P=D(defaultPopularSuggestions_1),L=D(queryToHitsReducer_1),Q=D(recentSearches),V=D(googleMapScriptReducer_1),M=D(analyticsRefReducer_1),N=D(registeredComponentReducer),j=D(aiReducer_1);function D(e){return e&&e.__esModule?e:{default:e}}t.default=(0,redux.combineReducers)({components:n.default,customQueries:w.default,defaultQueries:O.default,customHighlightOptions:I.default,settings:E.default,watchMan:r.default,queryList:s.default,queryOptions:i.default,dependencyTree:o.default,appbaseRef:u.default,analyticsRef:M.default,config:l.default,hits:c.default,promotedResults:C.default,customData:S.default,aggregations:k.default,compositeAggregations:A.default,queryLog:p.default,combinedLog:d.default,selectedValues:h.default,internalValues:f.default,isLoading:m.default,error:g.default,timestamp:y.default,headers:v.default,mapData:b.default,queryListener:_.default,analytics:$.default,props:T.default,rawData:R.default,querySuggestions:x.default,defaultPopularSuggestions:P.default,queryToHits:L.default,recentSearches:Q.default,urlValues:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e},googleMapScriptStatus:V.default,lastUsedAppbaseQuery:a.default,registeredComponentsTimestamps:N.default,AIResponses:j.default})}));unwrapExports(reducers);var middlewares=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.aiResponseMiddleware=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r=t.aiResponseMiddleware=function(e){return function(t){var r={},o={};return function(s){if(s.type===constants.SET_AI_RESPONSE_DELAYED){var a=s.component;r[a]||(r[a]=[],o[a]=!1),r[a].push(n({},s,{type:constants.SET_AI_RESPONSE})),function t(n){if(0!==r[n].length&&!o[n]){o[n]=!0;var s=r[n].shift();requestAnimationFrame((function(){e.dispatch(s),o[n]=!1,t(n)}))}}(a)}else if(s.type===constants.SET_AI_RESPONSE_LOADING&&s.isLoading){var i=s.component;r[i]&&(r[i]=[],o[i]=!1)}return t(s)}}};t.default=r}));unwrapExports(middlewares);var middlewares_1=middlewares.aiResponseMiddleware,dayjs_min=createCommonjsModule((function(e,t){e.exports=function(){var e=6e4,t=36e5,n="millisecond",r="second",o="minute",s="hour",a="day",i="week",l="month",u="quarter",c="year",p="date",d="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,l),s=n-o<0,a=t.clone().add(r+(s?-1:1),l);return+(-(r+(n-o)/(s?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:c,w:i,d:a,D:p,h:s,m:o,s:r,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",b={};b[v]=m;var _="$isDayjsObject",$=function(e){return e instanceof w||!(!e||!e[_])},C=function e(t,n,r){var o;if(!t)return v;if("string"==typeof t){var s=t.toLowerCase();b[s]&&(o=s),n&&(b[s]=n,o=s);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var i=t.name;b[i]=t,o=i}return!r&&o&&(v=o),o||!r&&v},S=function(e,t){if($(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new w(n)},O=y;O.l=C,O.i=$,O.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var w=function(){function m(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(O.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return O},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return S(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<S(e)},g.$g=function(e,t,n){return O.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,u=!!O.u(t)||t,d=O.p(e),h=function(e,t){var r=O.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return u?r:r.endOf(a)},f=function(e,t){return O.w(n.toDate()[e].apply(n.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(d){case c:return u?h(1,0):h(31,11);case l:return u?h(1,g):h(0,g+1);case i:var b=this.$locale().weekStart||0,_=(m<b?m+7:m)-b;return h(u?y-_:y+(6-_),g);case a:case p:return f(v+"Hours",0);case s:return f(v+"Minutes",1);case o:return f(v+"Seconds",2);case r:return f(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var i,u=O.p(e),d="set"+(this.$u?"UTC":""),h=(i={},i[a]=d+"Date",i[p]=d+"Date",i[l]=d+"Month",i[c]=d+"FullYear",i[s]=d+"Hours",i[o]=d+"Minutes",i[r]=d+"Seconds",i[n]=d+"Milliseconds",i)[u],f=u===a?this.$D+(t-this.$W):t;if(u===l||u===c){var m=this.clone().set(p,1);m.$d[h](f),m.init(),this.$d=m.set(p,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](f);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[O.p(e)]()},g.add=function(n,u){var p,d=this;n=Number(n);var h=O.p(u),f=function(e){var t=S(d);return O.w(t.date(t.date()+Math.round(e*n)),d)};if(h===l)return this.set(l,this.$M+n);if(h===c)return this.set(c,this.$y+n);if(h===a)return f(1);if(h===i)return f(7);var m=(p={},p[o]=e,p[s]=t,p[r]=1e3,p)[h]||1,g=this.$d.getTime()+n*m;return O.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=O.z(this),s=this.$H,a=this.$m,i=this.$M,l=n.weekdays,u=n.months,c=n.meridiem,p=function(e,n,o,s){return e&&(e[n]||e(t,r))||o[n].slice(0,s)},h=function(e){return O.s(s%12||12,e,"0")},m=c||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(f,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return O.s(t.$y,4,"0");case"M":return i+1;case"MM":return O.s(i+1,2,"0");case"MMM":return p(n.monthsShort,i,u,3);case"MMMM":return p(u,i);case"D":return t.$D;case"DD":return O.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(n.weekdaysMin,t.$W,l,2);case"ddd":return p(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(s);case"HH":return O.s(s,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return m(s,a,!0);case"A":return m(s,a,!1);case"m":return String(a);case"mm":return O.s(a,2,"0");case"s":return String(t.$s);case"ss":return O.s(t.$s,2,"0");case"SSS":return O.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,p,d){var h,f=this,m=O.p(p),g=S(n),y=(g.utcOffset()-this.utcOffset())*e,v=this-g,b=function(){return O.m(f,g)};switch(m){case c:h=b()/12;break;case l:h=b();break;case u:h=b()/3;break;case i:h=(v-y)/6048e5;break;case a:h=(v-y)/864e5;break;case s:h=v/t;break;case o:h=v/e;break;case r:h=v/1e3;break;default:h=v}return d?h:O.a(h)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return b[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return O.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),T=w.prototype;return S.prototype=T,[["$ms",n],["$s",r],["$m",o],["$H",s],["$W",a],["$M",l],["$y",c],["$D",p]].forEach((function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,w,S),e.$i=!0),S},S.locale=C,S.isDayjs=$,S.unix=function(e){return S(1e3*e)},S.en=b[v],S.Ls=b,S.p={},S}()})),transform=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.transformValueToComponentStateFormat=t.getDependentQueries=t.extractPropsFromState=t.getValidInterval=t.getRSQuery=t.hasPaginationSupport=t.isComponentUsesLabelAsValue=t.isSearchComponent=t.isDRSRangeComponent=t.getHistogramComponentID=t.getInternalComponentID=t.isInternalComponent=t.getNormalizedField=t.componentToTypeMap=void 0;var n,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.flatReactProp=O;var o=a(dayjs_min),s=a(dateFormats_1);function a(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=t.componentToTypeMap=(l(n={},constants$1.componentTypes.reactiveList,constants$1.queryTypes.search),l(n,constants$1.componentTypes.dataSearch,constants$1.queryTypes.search),l(n,constants$1.componentTypes.categorySearch,constants$1.queryTypes.search),l(n,constants$1.componentTypes.searchBox,constants$1.queryTypes.suggestion),l(n,constants$1.componentTypes.AIAnswer,constants$1.queryTypes.search),l(n,constants$1.componentTypes.singleList,constants$1.queryTypes.term),l(n,constants$1.componentTypes.multiList,constants$1.queryTypes.term),l(n,constants$1.componentTypes.singleDataList,constants$1.queryTypes.term),l(n,constants$1.componentTypes.singleDropdownList,constants$1.queryTypes.term),l(n,constants$1.componentTypes.multiDataList,constants$1.queryTypes.term),l(n,constants$1.componentTypes.multiDropdownList,constants$1.queryTypes.term),l(n,constants$1.componentTypes.tagCloud,constants$1.queryTypes.term),l(n,constants$1.componentTypes.toggleButton,constants$1.queryTypes.term),l(n,constants$1.componentTypes.reactiveChart,constants$1.queryTypes.term),l(n,constants$1.componentTypes.treeList,constants$1.queryTypes.term),l(n,constants$1.componentTypes.numberBox,constants$1.queryTypes.term),l(n,constants$1.componentTypes.datePicker,constants$1.queryTypes.range),l(n,constants$1.componentTypes.dateRange,constants$1.queryTypes.range),l(n,constants$1.componentTypes.dynamicRangeSlider,constants$1.queryTypes.range),l(n,constants$1.componentTypes.singleDropdownRange,constants$1.queryTypes.range),l(n,constants$1.componentTypes.multiDropdownRange,constants$1.queryTypes.range),l(n,constants$1.componentTypes.singleRange,constants$1.queryTypes.range),l(n,constants$1.componentTypes.multiRange,constants$1.queryTypes.range),l(n,constants$1.componentTypes.rangeSlider,constants$1.queryTypes.range),l(n,constants$1.componentTypes.ratingsFilter,constants$1.queryTypes.range),l(n,constants$1.componentTypes.rangeInput,constants$1.queryTypes.range),l(n,constants$1.componentTypes.geoDistanceDropdown,constants$1.queryTypes.geo),l(n,constants$1.componentTypes.geoDistanceSlider,constants$1.queryTypes.geo),l(n,constants$1.componentTypes.reactiveMap,constants$1.queryTypes.geo),n),c=[constants$1.componentTypes.multiRange,constants$1.componentTypes.multiDropdownRange],p=[constants$1.componentTypes.dateRange,constants$1.componentTypes.datePicker],d=[constants$1.componentTypes.categorySearch,constants$1.componentTypes.dataSearch,constants$1.componentTypes.searchBox],h=[constants$1.componentTypes.singleList,constants$1.componentTypes.multiList,constants$1.componentTypes.singleDropdownList,constants$1.componentTypes.multiDropdownList],f=t.getNormalizedField=function(e){return e&&!Array.isArray(e)?[e]:e},m=t.isInternalComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith("__internal")},g=t.getInternalComponentID=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__internal"},y=t.getHistogramComponentID=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__histogram__internal"},v=t.isDRSRangeComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith("__range__internal")},b=t.isSearchComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return d.includes(e)},_=t.isComponentUsesLabelAsValue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e===constants$1.componentTypes.multiDataList||e===constants$1.componentTypes.singleDataList||e===constants$1.componentTypes.tabDataList},$=t.hasPaginationSupport=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return h.includes(e)},C=t.getRSQuery=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&e){var o=t.type?t.type:u[t.componentType];if(t.componentType!==constants$1.componentTypes.AIAnswer&&!b(t.componentType)&&!t.dataField)return null;var s=void 0,a=t.compoundClause;t.endpoint instanceof Object&&(s=t.endpoint);var i={enableFeaturedSuggestions:t.enableFeaturedSuggestions,featuredSuggestionsConfig:t.featuredSuggestionsConfig},l={enableFAQSuggestions:t.enableFAQSuggestions,FAQSuggestionsConfig:t.FAQSuggestionsConfig};return t.enableFAQSuggestions&&!t.searchboxId&&(l={},console.error("Reactivesearch Error: You should also pass a searchboxId when passing enableFAQSuggestions as true.\nRefer to Searchbox component documentation specific to frontend frameworks.\n\nReact(https://docs.reactivesearch.io/docs/reactivesearch/react/search/searchbox/)\n\nVue(https://docs.reactivesearch.io/docs/reactivesearch/vue/search/SearchBox/).")),t.enableFeaturedSuggestions&&!t.searchboxId&&(i={},console.error("Reactivesearch Error: You should also pass a searchboxId when passing enableFeaturedSuggestions.\nRefer to Searchbox component documentation specific to frontend frameworks.\n\nReact(https://docs.reactivesearch.io/docs/reactivesearch/react/search/searchbox/)\n\nVue(https://docs.reactivesearch.io/docs/reactivesearch/vue/search/SearchBox/).")),a&&!["filter","must"].includes(a)&&(console.error("Reactivesearch Error: Invalid prop supplied - compoundClause. Prop can be one of ['filter', 'must']"),a=void 0),r({id:e,type:o||constants$1.queryTypes.search,dataField:f(t.dataField),execute:n,react:t.react,highlight:t.highlight,highlightField:f(t.highlightField),fuzziness:t.fuzziness,searchOperators:t.searchOperators,includeFields:t.includeFields,excludeFields:t.excludeFields,size:t.size,aggregationSize:t.aggregationSize,from:t.from||void 0,queryFormat:t.queryFormat,sortBy:t.sortBy,fieldWeights:f(t.fieldWeights),includeNullValues:t.includeNullValues,aggregationField:t.aggregationField||void 0,categoryField:t.categoryField||void 0,missingLabel:t.missingLabel||void 0,showMissing:t.showMissing,nestedField:t.nestedField||void 0,interval:t.interval,highlightConfig:t.customHighlight||t.highlightConfig,customQuery:t.customQuery,defaultQuery:t.defaultQuery,value:t.value,categoryValue:t.categoryValue||void 0,after:t.after||void 0,aggregations:t.aggregations||void 0,enableSynonyms:t.enableSynonyms,selectAllLabel:t.selectAllLabel,pagination:t.pagination,queryString:t.queryString,distinctField:t.distinctField,distinctFieldConfig:t.distinctFieldConfig,index:t.index,compoundClause:a},o===constants$1.queryTypes.suggestion?r({enablePopularSuggestions:t.enablePopularSuggestions,enableEndpointSuggestions:t.enableEndpointSuggestions,enableRecentSuggestions:t.enableRecentSuggestions,popularSuggestionsConfig:t.popularSuggestionsConfig,recentSuggestionsConfig:t.recentSuggestionsConfig,applyStopwords:t.applyStopwords,customStopwords:t.customStopwords,enablePredictiveSuggestions:t.enablePredictiveSuggestions,indexSuggestionsConfig:t.indexSuggestionsConfig,enableDocumentSuggestions:t.enableDocumentSuggestions,showDistinctSuggestions:t.showDistinctSuggestions,documentSuggestionsConfig:t.enableDocumentSuggestions?t.documentSuggestionsConfig:void 0},i,l,{enableIndexSuggestions:t.enableIndexSuggestions},t.searchboxId?{searchboxId:t.searchboxId}:{}):{},{calendarInterval:t.calendarInterval,endpoint:s,range:t.range},o!==constants$1.queryTypes.suggestion&&t.enableAI&&n?r({enableAI:!0},t.AIConfig?{AIConfig:t.AIConfig}:{},{execute:!0}):{},o!==constants$1.queryTypes.suggestion?{vectorDataField:t.vectorDataField||void 0,imageValue:t.imageValue||void 0}:{})}return null},S=(t.getValidInterval=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Math.ceil((t.end-t.start)/100)||1;return e?e<n?n:e:n},t.extractPropsFromState=function(e,t,n){var a=e.props[t];if(!a)return null;var i=a.type?a.type:u[a.componentType],l=e.selectedValues[t],d=null!=l?l.value:void 0,h=a.queryFormat,f=void 0,m=a.interval,C=i,S=a.dataField,O=a.aggregations,w=void 0,T=a.from,k=void 0;if(i===constants$1.queryTypes.term)if(a.showLoadMore&&$(a.componentType)&&(w=!0),null!=d&&"object"==typeof d&&d.value)d=d.value;else if(Array.isArray(d)){var A=[];d.forEach((function(e){null!=e&&"object"==typeof e&&e.value?A.push(e.value):A.push(e)})),d=A}if(i===constants$1.queryTypes.range){if(Array.isArray(d))d=c.includes(a.componentType)?d.map((function(e){return{start:e.start,end:e.end}})):{start:d[0],end:d[1]};else if(a.showHistogram){var E=g(t),I=e.internalValues[E];if(!I){var R=y(t);I=e.internalValues[R]}I&&Array.isArray(I.value)&&(d={start:I.value[0],end:I.value[1]})}if(v(t)?O=["min","max"]:a.showHistogram&&(O=["histogram"]),a.componentType===constants$1.componentTypes.dynamicRangeSlider||a.componentType===constants$1.componentTypes.rangeSlider){f=Object.keys(s.default).includes(h)?a.calendarInterval:void 0,d&&(d=(0,helper.isValidDateRangeQueryFormat)(a.queryFormat)?{start:(0,helper.formatDate)((0,o.default)(new Date(d.start)),a),end:(0,helper.formatDate)((0,o.default)(new Date(d.end)),a)}:{start:parseFloat(d.start),end:parseFloat(d.end)});var x=void 0;a.componentType===constants$1.componentTypes.dynamicRangeSlider?(x=e.aggregations[t+"__range__internal"],x=a.nestedField?x&&e.aggregations[t+"__range__internal"][a.nestedField].min?{start:e.aggregations[t+"__range__internal"][a.nestedField].min.value,end:e.aggregations[t+"__range__internal"][a.nestedField].max.value}:null:x&&e.aggregations[t+"__range__internal"].min&&e.aggregations[t+"__range__internal"].min.value?{start:e.aggregations[t+"__range__internal"].min.value,end:e.aggregations[t+"__range__internal"].max.value}:null):x=a.range,x&&(k=(0,helper.isValidDateRangeQueryFormat)(a.queryFormat)?{start:(0,helper.formatDate)((0,o.default)(x.start),a),end:(0,helper.formatDate)((0,o.default)(x.end),a)}:{start:parseFloat(x.start),end:parseFloat(x.end)})}p.includes(a.componentType)&&d&&(0,helper.isValidDateRangeQueryFormat)(a.queryFormat)&&(d="string"==typeof d?{start:(0,helper.formatDate)((0,o.default)(d).subtract(24,"hour"),a),end:(0,helper.formatDate)((0,o.default)(d),a)}:Array.isArray(d)?d.map((function(e){return{start:(0,helper.formatDate)((0,o.default)(e).subtract(24,"hour"),a),end:(0,helper.formatDate)((0,o.default)(e),a)}})):{start:(0,helper.formatDate)((0,o.default)(d.start).subtract(24,"hour"),a),end:(0,helper.formatDate)((0,o.default)(d.end),a)})}if(i===constants$1.queryTypes.geo){d=void 0;var P=e.selectedValues[t]||e.internalValues[t]||e.internalValues[g(t)];P&&P.meta&&(P.meta.distance&&P.meta.coordinates&&(d={distance:P.meta.distance,location:P.meta.coordinates},a.unit&&(d.unit=a.unit)),P.meta.mapBoxBounds&&P.meta.mapBoxBounds.top_left&&P.meta.mapBoxBounds.bottom_right&&(d={geoBoundingBox:{topLeft:P.meta.mapBoxBounds.top_left[1]+", "+P.meta.mapBoxBounds.top_left[0],bottomRight:P.meta.mapBoxBounds.bottom_right[1]+", "+P.meta.mapBoxBounds.bottom_right[0]}}))}if(a.componentType===constants$1.componentTypes.numberBox&&("exact"===h?C="term":(C="range",d="lte"===h?{end:d,boost:2}:{start:d,boost:2}),h="or"),a.componentType===constants$1.componentTypes.reactiveComponent&&(C="term",S="reactive_component_field",d=void 0),b(a.componentType)&&!d&&(d=""),_(a.componentType)){var L=a.data,Q=a.selectAllLabel,V=[];d&&Array.isArray(d)?V=d:d&&"string"==typeof d&&(V=[d]);var M=[];V.length&&L&&Array.isArray(L)&&V.forEach((function(e){var t=L.find((function(t){return t.label===e}));t&&t.value&&M.push(t.value)})),Q&&V.length&&V.includes(Q)&&(M=V),d=M.length?M:void 0}a.componentType===constants$1.componentTypes.reactiveList&&(d>0&&(T=(d-1)*(a.size||10)),d=void 0);var N=d||void 0;a.componentType===constants$1.componentTypes.searchBox&&Array.isArray(N)&&(N=void 0);var j=void 0;return a.endpoint instanceof Object&&(j=r({},j||{},a.endpoint)),r({},a,{endpoint:j,calendarInterval:f,dataField:S,queryFormat:h,type:C,aggregations:O,interval:m,react:e.dependencyTree?e.dependencyTree[t]:void 0,customQuery:e.customQueries?e.customQueries[t]:void 0,defaultQuery:e.defaultQueries?e.defaultQueries[t]:void 0,customHighlight:e.customHighlightOptions?e.customHighlightOptions[t]:void 0,categoryValue:e.internalValues[t]?e.internalValues[t].category:void 0,value:N,pagination:w,from:T,range:k},n)});function O(e,t){var n=[];return function e(t){t&&Object.keys(t)&&Object.keys(t).forEach((function(r){t[r]&&("string"==typeof t[r]?n=[].concat(i(n),[t[r]]):Array.isArray(t[r])?n=[].concat(i(n),i(t[r])):"object"==typeof t[r]&&e(t[r]))}))}(e),n=n.filter((function(e){return e!==t}))}t.getDependentQueries=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o={},s=O(e.dependencyTree[t],t);return s.forEach((function(t){var s=t,a=e.customQueries[s];if(!m(s)){var i=e.selectedValues[s]||e.internalValues[s],l=i&&i.meta&&i.meta.imageValue;if((i&&(i.value||l)||a)&&!o[s]){var u=!1,c=e.props[s];Array.isArray(n)&&n.includes(s)&&(c.componentType!==constants$1.componentTypes.searchBox||!c.enableAI&&!1!==c.autosuggest)&&(u=!0);var p=C(s,S(e,s,r({},c&&r({},c.componentType===constants$1.componentTypes.searchBox?r({},!1===u?{type:constants$1.queryTypes.search}:{},i.category?{categoryValue:i.category}:{categoryValue:void 0},i.value?{value:i.value}:{},l?{imageValue:l}:{}):{},c.componentType===constants$1.componentTypes.categorySearch?r({},i.category?{categoryValue:i.category}:{categoryValue:void 0}):{}))),u);p&&(o[s]=p)}}})),o},t.transformValueToComponentStateFormat=function(e,t){var n=t.componentType,s=t.data,a=t.queryFormat,l=e,u={};if(e)switch(n){case constants$1.componentTypes.singleDataList:case constants$1.componentTypes.tabDataList:l="",l=Array.isArray(e)&&"string"==typeof e[0]?e[0]:"object"==typeof e&&e.label?e.label:e;break;case constants$1.componentTypes.multiDataList:l=[],Array.isArray(e)&&e.forEach((function(e){"object"==typeof e&&(e.label||e.value)?l.push(e.label||e.value):"string"==typeof e&&l.push(e)}));break;case constants$1.componentTypes.toggleButton:if(l=[],Array.isArray(e))e.forEach((function(e){if("object"==typeof e&&e.label&&e.value)l.push(e);else if("string"==typeof e){var t=s.find((function(t){return t.label.trim()===e.trim()||t.value.trim()===e.trim()}));l.push(t)}}));else if("object"==typeof e&&e.label&&e.value)l=e.value;else if("string"==typeof e){var c=s.find((function(t){return t.label.trim()===e.trim()||t.value.trim()===e.trim()}));l=c.value}break;case constants$1.componentTypes.singleRange:case constants$1.componentTypes.singleDropdownRange:if(l={},Array.isArray(e)||"object"!=typeof e){if("string"==typeof e){var p=s.find((function(t){return t.label.trim()===e.trim()}));l=r({},p)}}else l=r({},e);break;case constants$1.componentTypes.multiDropdownRange:case constants$1.componentTypes.multiRange:if(l=[],Array.isArray(e))e.forEach((function(e){if("object"==typeof e&&"number"==typeof e.start&&"number"==typeof e.end){var t=r({},e);t.label||(t=s.find((function(t){return t.start===e.start&&t.end===e.end}))),l.push(t)}else if("string"==typeof e){var n=s.find((function(t){return t.label.trim()===e.trim()}));l.push(n)}}));else if("string"==typeof e){var d=s.find((function(t){return t.label.trim()===e.trim()}));l.push(d)}break;case constants$1.componentTypes.rangeSlider:case constants$1.componentTypes.ratingsFilter:case constants$1.componentTypes.dynamicRangeSlider:case constants$1.componentTypes.reactiveChart:l=[],a?Array.isArray(e)?l=e.map((function(e){return(0,helper.formatDate)((0,o.default)(e),t)})):"object"==typeof e&&(l=[(0,helper.formatDate)((0,o.default)(e.start),t),(0,helper.formatDate)((0,o.default)(e.end),t)]):l=Array.isArray(e)?[].concat(i(e)):"object"==typeof e?[e.start,e.end]:e;break;case constants$1.componentTypes.numberBox:l=[],Array.isArray(e)||"object"!=typeof e?"number"==typeof e&&(l=e):l=e.start;break;case constants$1.componentTypes.datePicker:l="","object"!=typeof e?l=(0,o.default)(e).format("YYYY-MM-DD"):e.end?l=(0,o.default)(e.end).format("YYYY-MM-DD"):e.start&&(l=(0,o.default)(e.start).add(24,"hour").format("YYYY-MM-DD"));break;case constants$1.componentTypes.dateRange:l=[],Array.isArray(e)?l=e.map((function(e){return(0,o.default)(e).format("YYYY-MM-DD")})):"object"==typeof e&&(l=[(0,o.default)(e.start).format("YYYY-MM-DD"),(0,o.default)(e.end).format("YYYY-MM-DD")]);break;case constants$1.componentTypes.categorySearch:l="","object"==typeof e?(l=e.value,void 0!==e.category&&(u.category=e.category)):"string"==typeof e&&(l=e)}return{value:l,meta:u}}}));unwrapExports(transform);var transform_1=transform.transformValueToComponentStateFormat,transform_2=transform.getDependentQueries,transform_3=transform.extractPropsFromState,transform_4=transform.getValidInterval,transform_5=transform.getRSQuery,transform_6=transform.hasPaginationSupport,transform_7=transform.isComponentUsesLabelAsValue,transform_8=transform.isSearchComponent,transform_9=transform.isDRSRangeComponent,transform_10=transform.getHistogramComponentID,transform_11=transform.getInternalComponentID,transform_12=transform.isInternalComponent,transform_13=transform.getNormalizedField,transform_14=transform.componentToTypeMap,transform_15=transform.flatReactProp,hits=createCommonjsModule((function(e,t){function n(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:constants.UPDATE_AGGS,component:e,aggregations:t,append:n}}function r(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{type:constants.UPDATE_HITS,component:e,hits:t.hits,total:"object"==typeof t.total?t.total.value:t.total,hidden:r,time:n,append:o}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateAggs=n,t.updateCompositeAggs=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:constants.UPDATE_COMPOSITE_AGGS,component:e,aggregations:t,append:n}},t.updateHits=r,t.saveQueryToHits=function(e,t){return{type:constants.SET_QUERY_TO_HITS,component:e,query:t}},t.mockDataForTesting=function(e,t){return function(o){t.hasOwnProperty("error")&&o((0,misc.setError)(e,t.error)),t.hasOwnProperty("aggregations")&&o(n(e,t.aggregations)),t.hasOwnProperty("hits")&&o(r(e,t,t.time||void 0)),t.hasOwnProperty("rawData")&&o((0,misc.setRawData)(e,t.rawData)),t.hasOwnProperty("AI_RESPONSE")&&o((0,misc.setAIResponse)(e,t.AI_RESPONSE))}}}));unwrapExports(hits);var hits_1=hits.updateAggs,hits_2=hits.updateCompositeAggs,hits_3=hits.updateHits,hits_4=hits.saveQueryToHits,hits_5=hits.mockDataForTesting,misc=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){return{type:constants.SET_RAW_DATA,component:e,response:t}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:constants.SET_PROMOTED_RESULTS,results:e,component:t}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:constants.SET_POPULAR_SUGGESTIONS,suggestions:e,component:t}}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:constants.SET_DEFAULT_POPULAR_SUGGESTIONS,suggestions:e,component:t}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:constants.SET_CUSTOM_DATA,data:e,component:t}}t.setRawData=r,t.setLoading=function(e,t){return{type:constants.SET_LOADING,component:e,isLoading:t}},t.setError=function(e,t){return{type:constants.SET_ERROR,component:e,error:t}},t.setTimestamp=function(e,t){return{type:constants.SET_TIMESTAMP,component:e,timestamp:t}},t.setSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:constants.SET_SEARCH_ID,searchId:e}},t.setSuggestionsSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:constants.SET_SUGGESTIONS_SEARCH_ID,searchId:e}},t.setQuery=function(e,t){return{type:constants.SET_QUERY,component:e,query:t}},t.setCustomQuery=function(e,t){return{type:constants.SET_CUSTOM_QUERY,component:e,query:t}},t.setDefaultQuery=function(e,t){return{type:constants.SET_DEFAULT_QUERY,component:e,query:t}},t.setCustomHighlightOptions=function(e,t){return{type:constants.SET_CUSTOM_HIGHLIGHT_OPTIONS,component:e,data:t}},t.updateQueryOptions=function(e,t){return{type:constants.SET_QUERY_OPTIONS,component:e,options:t}},t.logQuery=function(e,t){return{type:constants.LOG_QUERY,component:e,query:t}},t.logCombinedQuery=function(e,t){return{type:constants.LOG_COMBINED_QUERY,component:e,query:t}},t.setHeaders=function(e){return{type:constants.SET_HEADERS,headers:e}},t.setPromotedResults=o,t.setPopularSuggestions=s,t.setDefaultPopularSuggestions=a,t.setCustomData=i,t.setAppliedSettings=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:constants.SET_APPLIED_SETTINGS,data:e,component:t}},t.setQueryListener=function(e,t,n){return{type:constants.SET_QUERY_LISTENER,component:e,onQueryChange:t,onError:n}},t.setGoogleMapScriptLoading=function(e){return{type:constants.SET_GOOGLE_MAP_SCRIPT_LOADING,loading:e}},t.setGoogleMapScriptLoaded=function(e){return{type:constants.SET_GOOGLE_MAP_SCRIPT_LOADED,loaded:e}},t.setGoogleMapScriptError=function(e){return{type:constants.SET_GOOGLE_MAP_SCRIPT_ERROR,error:e}},t.resetStoreForComponent=function(e){return function(t){t(r(e,null)),t(i(null,e)),t(o([],e)),t(s([],e)),t(a([],e)),t((0,hits.updateAggs)(e,null)),t((0,hits.updateCompositeAggs)(e,{})),t((0,hits.updateHits)(e,{hits:[],total:0},0))}},t.setLastUsedAppbaseQuery=function(e){return{type:constants.SET_APPBASE_QUERY,query:e}},t.setSearchState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var r={};Object.keys(e).forEach((function(t){var o=e[t],s=o.value,a=o.componentProps,i=(0,transform.transformValueToComponentStateFormat)(s,a),l=i.value,u=i.meta,c=void 0===u?{}:u;r[t]=n({value:l},c)})),t((0,value.setValues)(r))}},t.setAIResponse=function(e,t){return{type:constants.SET_AI_RESPONSE,component:e,payload:t}},t.setAIResponseDelayed=function(e,t){return{type:constants.SET_AI_RESPONSE_DELAYED,component:e,payload:t}},t.removeAIResponse=function(e){return{type:constants.REMOVE_AI_RESPONSE,component:e}},t.setAIResponseError=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{type:constants.SET_AI_RESPONSE_ERROR,component:e,error:t,meta:n}},t.setAIResponseLoading=function(e,t){return{type:constants.SET_AI_RESPONSE_LOADING,component:e,isLoading:t}}}));unwrapExports(misc);var misc_1=misc.setRawData,misc_2=misc.setLoading,misc_3=misc.setError,misc_4=misc.setTimestamp,misc_5=misc.setSearchId,misc_6=misc.setSuggestionsSearchId,misc_7=misc.setQuery,misc_8=misc.setCustomQuery,misc_9=misc.setDefaultQuery,misc_10=misc.setCustomHighlightOptions,misc_11=misc.updateQueryOptions,misc_12=misc.logQuery,misc_13=misc.logCombinedQuery,misc_14=misc.setHeaders,misc_15=misc.setPromotedResults,misc_16=misc.setPopularSuggestions,misc_17=misc.setDefaultPopularSuggestions,misc_18=misc.setCustomData,misc_19=misc.setAppliedSettings,misc_20=misc.setQueryListener,misc_21=misc.setGoogleMapScriptLoading,misc_22=misc.setGoogleMapScriptLoaded,misc_23=misc.setGoogleMapScriptError,misc_24=misc.resetStoreForComponent,misc_25=misc.setLastUsedAppbaseQuery,misc_26=misc.setSearchState,misc_27=misc.setAIResponse,misc_28=misc.setAIResponseDelayed,misc_29=misc.removeAIResponse,misc_30=misc.setAIResponseError,misc_31=misc.setAIResponseLoading,utils=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getSuggestionQuery=t.isPropertyDefined=t.handleResponse=t.handleError=t.getQuerySuggestionsId=t.isComponentActive=t.handleTransformResponse=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.executeQueryListener=function(e,t,n){e&&e.onQueryChange&&e.onQueryChange(t,n)},t.updateStoreConfig=function(e){return function(t){t({type:constants.UPDATE_CONFIG,config:e})}};var o=t.handleTransformResponse=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.transformResponse&&"function"==typeof t.transformResponse?t.transformResponse(e,n):new Promise((function(t){return t(e)}))},s=t.isComponentActive=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e(),r=n.components;return!!r.includes(t)},a=t.getQuerySuggestionsId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__suggestions"},i=t.handleError=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.orderOfQueries,n=void 0===t?[]:t,r=e.error,o=void 0===r?null:r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},i=arguments[2],l=a(),u=l.queryListener;try{console.error(JSON.stringify(o))}catch(e){console.error(o)}n.forEach((function(e){s(a,e)&&(u[e]&&u[e].onError&&u[e].onError(o),i((0,misc.setError)(e,o)),i((0,misc.setLoading)(e,!1)))}))};t.handleResponse=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.res,a=e.orderOfQueries,l=void 0===a?[]:a,u=e.appendToHits,c=void 0!==u&&u,p=e.appendToAggs,d=void 0!==p&&p,h=e.isSuggestionsQuery,f=void 0!==h&&h,m=e.query,g=e.queryId,y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},v=arguments[2],b=y(),_=b.config,$=b.internalValues,C=b.lastUsedAppbaseQuery,S=b.analyticsRef,O=t._headers?t._headers.get("X-Search-Id"):null;O&&(f?v((0,misc.setSuggestionsSearchId)(O)):(v((0,misc.setSearchId)(O)),S&&(S.queryID=O))),l.forEach((function(e){if(s(y,e)){if(C[e]&&C[e].queryId&&g&&C[e].queryId!==g)return;t.settings&&v((0,misc.setAppliedSettings)(t.settings,e)),o(t[e],_,e).then((function(o){if(o){var s=y(),a=s.timestamp,i=s.props;if(void 0===a[e]||a[e]<t._timestamp||o.AISessionId&&i[e].enableAI&&i[e].componentType===constants$1.componentTypes.searchBox){var l=o.promoted;if(l){var u=l.map((function(e){return n({},e.doc,{_position:e.position})}));v((0,misc.setPromotedResults)(u,e))}else v((0,misc.setPromotedResults)([],e));if(v((0,misc.setRawData)(e,o)),o.AIAnswer){if(o.AIAnswer.error)return v((0,misc.setAIResponseError)(e,{message:o.AIAnswer.error})),void v((0,misc.setLoading)(e,!1));var p=o.AIAnswer,h={response:{answer:{documentIds:p.documentIds,model:p.model,text:p.choices[0].message.content}},meta:o.hits,isTyping:!1};o.AISessionId&&(h.sessionId=o.AISessionId),v((0,misc.setAIResponse)(e,h))}else if(o.AISessionId){var f=((0,helper.getObjectFromLocalStorage)(constants$1.AI_LOCAL_CACHE_KEY)||{})[i.componentId];f&&f.sessionId&&f.sessionId===o.AISessionId?v((0,misc.setAIResponse)(e,f)):((0,helper.setObjectInLocalStorage)("AISessions",r({},e,{})),i[e].componentType===constants$1.componentTypes.AIAnswer?v((0,misc.setAIResponse)(e,{sessionId:o.AISessionId,meta:{hits:o.hits||{}}})):v((0,query.fetchAIResponse)(o.AISessionId,e,"",{hits:o.hits||{}},i[e].componentType===constants$1.componentTypes.searchBox||i[e].componentType===constants$1.componentTypes.AIAnswer)))}if(v((0,misc.setCustomData)(o.customData,e)),o.hits&&(!o.AIAnswer&&!o.AISessionId||i[e].componentType!==constants$1.componentTypes.searchBox)){v((0,misc.setTimestamp)(e,t._timestamp)),i[e].componentType===constants$1.componentTypes.reactiveList&&m.find((function(t){return t.id===e})).execute&&v((0,misc.setLastUsedAppbaseQuery)(r({},e,m))),v((0,hits.updateHits)(e,o.hits,o.took,o.hits&&o.hits.hidden,c));var g=(0,transform.getInternalComponentID)(e);$[g]&&v((0,hits.saveQueryToHits)(e,$[g].value))}o.aggregations&&(v((0,hits.updateAggs)(e,o.aggregations,d)),v((0,hits.updateCompositeAggs)(e,o.aggregations,d)))}v((0,misc.setLoading)(e,!1))}})).catch((function(e){i({orderOfQueries:l,error:e},y,v)}))}}))},t.isPropertyDefined=function(e){return null!=e},t.getSuggestionQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments[1],n=e(),r=n.internalValues,o=r[t],s=o&&o.value||"";return[{id:a(t),dataField:["key","key.autosuggest"],size:5,value:s,defaultQuery:{query:{bool:{minimum_should_match:1,should:[{function_score:{field_value_factor:{field:"count",modifier:"sqrt",missing:1}}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],fuzziness:0,operator:"or",query:s,type:"best_fields"}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],operator:"or",query:s,type:"phrase"}},{multi_match:{fields:["key^9"],operator:"or",query:s,type:"phrase_prefix"}}]}}}}]}}));unwrapExports(utils);var utils_1=utils.getSuggestionQuery,utils_2=utils.isPropertyDefined,utils_3=utils.handleResponse,utils_4=utils.handleError,utils_5=utils.getQuerySuggestionsId,utils_6=utils.isComponentActive,utils_7=utils.handleTransformResponse,utils_8=utils.executeQueryListener,utils_9=utils.updateStoreConfig,value=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.setValue=function(e,t,n,o,s,a,i,l,u){return function(c,p){var d=p(),h=d.urlValues,f=d.selectedValues,m=d.watchMan,g=d.props,y=u;(0,helper.isEqual)(h[e],t)&&(y="URL");var v={},b=[constants$1.componentTypes.reactiveList,constants$1.componentTypes.reactiveMap].includes(g[e]&&g[e].componentType),_=f[e]&&f[e].value,$=!0;if(a===constants$1.componentTypes.searchBox||void 0===a){var C=f[e]&&f[e].meta&&f[e].meta.imageValue;$=(0,helper.isEqual)(C,l&&l.imageValue)}if((!(0,helper.isEqual)(_,t)||!$)&&g[e]&&!b){var S=[e],O=m[e]||[];(S=[].concat(r(S),r(O))).forEach((function(e){var t=g[e];"URL"!==y&&t&&[constants$1.componentTypes.reactiveList,constants$1.componentTypes.reactiveMap].includes(t.componentType)&&null!==f[e]&&(v[e]=null)}))}b&&t<2&&(!_||_<2)||c({type:constants.SET_VALUE,component:e,reference:y,value:t,label:n,showFilter:o,URLParams:s,componentType:a,category:i,meta:l,componentsToReset:v})}},t.resetValuesToDefault=function(e){return function(t,r){var o=r(),s=o.selectedValues,a=o.props,i={},l=void 0;Object.keys(s).forEach((function(t){Array.isArray(e)&&e.includes(t)||(a[t]&&a[t].componentType&&a[t].defaultValue?[constants$1.componentTypes.rangeSlider,constants$1.componentTypes.rangeInput,constants$1.componentTypes.ratingsFilter,constants$1.componentTypes.dateRange].includes(a[t].componentType)?l="object"==typeof a[t].defaultValue?[a[t].defaultValue.start,a[t].defaultValue.end]:null:[constants$1.componentTypes.multiDropdownList,constants$1.componentTypes.multiDataList,constants$1.componentTypes.multiList,constants$1.componentTypes.singleDataList,constants$1.componentTypes.singleDropdownList,constants$1.componentTypes.singleList,constants$1.componentTypes.tagCloud,constants$1.componentTypes.toggleButton,constants$1.componentTypes.multiDropdownRange,constants$1.componentTypes.multiRange,constants$1.componentTypes.singleDropdownRange,constants$1.componentTypes.singleRange,constants$1.componentTypes.dataSearch,constants$1.componentTypes.datePicker,constants$1.componentTypes.treeList].includes(a[t].componentType)?l=a[t].defaultValue:[constants$1.componentTypes.categorySearch].includes(a[t].componentType)&&(l=a[t].defaultValue?a[t].defaultValue.term:""):l=null,(0,helper.isEqual)(s[t].value,l)||(i=n({},i,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},t,n({},s[t],{value:l})))))})),t({type:constants.RESET_TO_DEFAULT,defaultValues:i})}},t.setInternalValue=function(e,t,n,r,o){return{type:constants.SET_INTERNAL_VALUE,component:e,value:t,componentType:n,category:r,meta:o}},t.patchValue=function(e,t){return{type:constants.PATCH_VALUE,component:e,payload:t}},t.clearValues=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{type:constants.CLEAR_VALUES,resetValues:e,clearAllBlacklistComponents:t}},t.setValues=function(e){return function(t){t((0,utils.updateStoreConfig)({queryLockConfig:{initialTimestamp:(new Date).getTime(),lockTime:300}})),t({type:constants.SET_VALUES,componentsValues:e})}}}));unwrapExports(value);var value_1=value.setValue,value_2=value.resetValuesToDefault,value_3=value.setInternalValue,value_4=value.patchValue,value_5=value.clearValues,value_6=value.setValues,maps=createCommonjsModule((function(e,t){function n(e,t,n){return{type:constants.SET_MAP_DATA,componentId:e,query:t,persistMapQuery:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateMapData=n,t.setMapData=function(e,t,r,o){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";return function(i){if(i(n(e,t,r)),i((0,value.setInternalValue)((0,transform.getInternalComponentID)(e),void 0,void 0,void 0,s)),o){i((0,query.executeQuery)(e,!1,!0,constants$1.componentTypes.reactiveMap,{},a))}}},t.setMapResults=function(e,t){var n=t.center,r=t.zoom,o=t.markers;return{type:constants.SET_MAP_RESULTS,componentId:e,payload:{center:n,zoom:r,markers:o}}}}));unwrapExports(maps);var maps_1=maps.updateMapData,maps_2=maps.setMapData,maps_3=maps.setMapResults,query=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e){return function(t,n){var r=n(),o=r.config,s=r.appbaseRef,a=r.props,i=r.internalValues,l=a[e]||{},u=i[e],c=u&&u.value||"";if(l.enablePopularSuggestions){if(o.mongodb)return void t((0,misc.setDefaultPopularSuggestions)([],e.split("__internal")[0]));var p=(0,utils.getSuggestionQuery)(n,e);s.getQuerySuggestions(p).then((function(n){var r=n[(0,utils.getQuerySuggestionsId)(e)];t(c?(0,misc.setPopularSuggestions)(r&&r.hits&&r.hits.hits,e.split("__internal")[0]):(0,misc.setDefaultPopularSuggestions)(r&&r.hits&&r.hits.hits,e.split("__internal")[0]))})).catch((function(r){(0,utils.handleError)({orderOfQueries:[e],error:r},n,t)}))}}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.queryId,r=e.query,o=e.orderOfQueries,s=e.appendToHits,i=void 0!==s&&s,l=e.isSuggestionsQuery,u=void 0!==l&&l,c=e.searchComponentID,p=e.appendToAggs,d=void 0!==p&&p;return function(e,s){var l=s(),p=l.appbaseRef,h=l.config,f=l.headers,m=l.props,g=!1;h&&((0,utils.isPropertyDefined)(h.analytics)?g=h.analytics:h.analyticsConfig&&((0,utils.isPropertyDefined)(h.analyticsConfig.recordAnalytics)?g=h.analyticsConfig.recordAnalytics:(0,utils.isPropertyDefined)(h.analyticsConfig.analytics)&&(g=h.analyticsConfig.analytics)));var y={recordAnalytics:g};if(h.analyticsConfig){y.userId=(0,utils.isPropertyDefined)(h.analyticsConfig.userId)?h.analyticsConfig.userId:void 0,y.enableQueryRules=(0,utils.isPropertyDefined)(h.analyticsConfig.enableQueryRules)?h.analyticsConfig.enableQueryRules:void 0,y.customEvents=(0,utils.isPropertyDefined)(h.analyticsConfig.customEvents)?h.analyticsConfig.customEvents:void 0,y.emptyQuery=(0,utils.isPropertyDefined)(h.analyticsConfig.emptyQuery)?h.analyticsConfig.emptyQuery:void 0;var v=h.analyticsConfig.enableSearchRelevancy;y.enableSearchRelevancy=(0,utils.isPropertyDefined)(v)?v:void 0,y.suggestionAnalytics=(0,utils.isPropertyDefined)(h.analyticsConfig.suggestionAnalytics)?h.analyticsConfig.suggestionAnalytics:void 0,y.useCache=(0,utils.isPropertyDefined)(h.analyticsConfig.useCache)?h.analyticsConfig.useCache:void 0,y.queryParams=(0,utils.isPropertyDefined)(h.analyticsConfig.queryParams)?h.analyticsConfig.queryParams:void 0}o.forEach((function(t){e((0,misc.setLoading)(t,!0)),m[t]&&m[t].enableAI&&e((0,misc.removeAIResponse)(t)),e((0,misc.setError)(t,null))})),p.setHeaders(n({},f)),u&&c&&e(a(c)),p.reactiveSearch(r,y,y.queryParams).then((function(n){(0,utils.handleResponse)({res:n,orderOfQueries:o,appendToHits:i,appendToAggs:d,query:r,queryId:t},s,e)})).catch((function(n){(0,utils.handleError)({orderOfQueries:o,error:n,queryId:t},s,e)}))}}t.loadPopularSuggestions=a,t.executeQuery=u,t.setQueryOptions=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(r){r((0,misc.updateQueryOptions)(e,t)),n&&r(u(e,!0))}},t.updateQuery=function(e){var t=e.componentId,r=e.query,o=e.value,s=e.label,a=void 0===s?null:s,i=e.showFilter,l=void 0===i||i,c=e.URLParams,p=void 0!==c&&c,d=e.componentType,h=void 0===d?null:d,f=e.category,m=void 0===f?null:f,g=e.meta,y=void 0===g?{}:g,v=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],b=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(e){var s=r;r&&r.query&&(s=r.query),t.endsWith("__internal")?e((0,value.setInternalValue)(t,o,h,m,y)):(e((0,value.setValue)(t,o,a,l,p,h,m,y)),b&&(h===constants$1.componentTypes.dynamicRangeSlider?e((0,value.setInternalValue)((0,transform.getHistogramComponentID)(t),o,h,m,y)):e((0,value.setInternalValue)(t+"__internal",o,h,m,y)))),e((0,misc.setQuery)(t,s)),v&&e(u(t,!0,!1,h,h===constants$1.componentTypes.searchBox&&y&&"boolean"==typeof y.enableAI?n({},y,{enableAI:y.enableAI}):void 0))}},t.loadMore=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(a,l){var u=l(),c=(0,helper.buildQuery)(e,u.dependencyTree,u.queryList,u.queryOptions),p=c.queryObj,d=c.options,h=u.queryLog;d||(d={}),d=n({},d,t),(!p||p&&!Object.keys(p).length)&&(p={match_all:{}});var f,m=u.props[e]||{},g=m.aggregationField;transform.componentToTypeMap[m.componentType]===constants$1.queryTypes.term&&(g=m.dataField);var y=(0,transform.getRSQuery)(e,(0,transform.extractPropsFromState)(u,e,{from:d.from,after:u.aggregations[e]&&u.aggregations[e][g]&&u.aggregations[e][g].after_key||void 0}));(f=n(o({},e,y),(0,transform.getDependentQueries)(l(),e,[])),(0,helper.compareQueries)(h[e],f))||(a((0,misc.logQuery)(e,f)),a(i({query:Object.keys(f).map((function(e){return f[e]})),orderOfQueries:[e],appendToHits:r,appendToAggs:s})))}},t.loadDataToExport=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return function(i,l){var u=l(),c=u.appbaseRef,p=u.lastUsedAppbaseQuery[t];if(p){var d=p.map((function(e){if(e.id===t){var s=n({},e,{deepPaginationConfig:{cursor:r},deepPagination:!0,size:o<1e3?o:1e3,sortField:"_id",sortBy:"asc"});return delete s.from,s}return e}));return o&&Array.isArray(a)&&o<=a.length?a:c.reactiveSearchv3(d).then((function(n){var r=n[t].hits.hits;return Array.isArray(r)&&0!==r.length?i(e(t,r[r.length-1]._id,n[t].hits.total.value,[].concat(s(a),s(r)))):a})).catch((function(e){console.error("Error fetching data to export! ",e)}))}return console.error("Error fetching data to export!")}},t.fetchAIResponse=function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(a,i){var l=!!r;a((0,misc.setAIResponseLoading)(t,!0));var u=i().config,h=u.url,f=u.credentials,m=u.endpoint,g=new URL(h.match(/https:\/\/[^/]+/)[0]),y=f;g.username&&g.password&&(y=g.username+":"+g.password,g.username="",g.password="");var v=g.toString()+"_ai/"+e,b=v+"/sse",_=new Headers;if(y){var $=btoa(y);_.append("Authorization","Basic "+$)}else m&&m.headers&&m.headers.Authorization&&_.append("Authorization",m.headers.Authorization);var C=l?"POST":"GET",S=((0,helper.getObjectFromLocalStorage)(constants$1.AI_LOCAL_CACHE_KEY)||{})[t],O={headers:_,method:C,body:l?JSON.stringify({question:r}):void 0},w=1;!function i(){var l=new AbortController;d[t]&&d[t].abort(),d[t]=l,fetch(b,n({},O,{signal:l.signal})).then((function(l){if(!l.ok&&w<2)return w++,void setTimeout(i,1e3);var u=l.headers.get("content-type");if(u&&u.startsWith("application/json"))l.json().then((function(n){n.error?a((0,misc.setAIResponseError)(t,n.error)):c(a,t,e,S,n,o)}));else{var d=void 0;s&&(d=fetch(v,n({},O.headers?{headers:O.headers}:{},{method:"GET"}))),p(l,a,t,e,o,r,d)}})).catch((function(n){"AbortError"!==n.name&&a((0,misc.setAIResponseError)(t,n,{sessionId:e}))}))}()}},t.createAISession=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Reactivesearch";return function(t,r){var o=r().config,s=o.url,a=o.credentials,i=o.endpoint,l=new URL(s.match(/https:\/\/[^/]+/)[0]),u=a;l.username&&l.password&&(u=l.username+":"+l.password,l.username="",l.password="");var c=l.toString()+"_ai",p=new Headers;if(u){var d=btoa(u);p.append("Authorization","Basic "+d)}else i&&i.headers&&i.headers.Authorization&&p.append("Authorization",i.headers.Authorization);var h={headers:p,method:"POST",body:JSON.stringify({question:e})};return fetch(c,n({},h)).then((function(e){return e.json()})).then((function(e){return e})).catch((function(e){console.error("Error creating an AI session: ",e)}))}};var l=[];function u(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],u=arguments[3],c=arguments[4],p=arguments[5];return function(d,h){var f=h(),m=f.queryLog,g=f.config,y=f.mapData,v=f.watchMan,b=f.queryListener,_=f.props,$=f.internalValues,C=f.lock,S=f.dependencyTree,O=f.queryList,w=f.queryOptions,T=g.initialQueriesSyncTime||100,k=g.initialTimestamp,A=p||(new Date).getTime();g.queryLockConfig instanceof Object&&(T=g.queryLockConfig.lockTime,k=g.queryLockConfig.initialTimestamp);var E,I=[e],R={},x=[];if(t){var P=v[e]||[];I=[].concat(s(I),s(P))}if(I.forEach((function(t){var i=(0,helper.buildQuery)(t,S,O,w),l=i.queryObj,u=i.options;if(l||u){var p=void 0,f=e.endsWith("__internal"),g=_[e];f&&g&&(0,transform.isSearchComponent)(g.componentType)&&(p=$[e]&&$[e].value);var v=(0,transform.getRSQuery)(t,(0,transform.extractPropsFromState)(h(),t,n({},p?{value:p}:null,c?n({from:c.from},p&&!0===c.enableAI?n({},c,{enableAI:!0,type:"search"}):{}):null)));if(v&&Object.keys(v).length){var C=v,T=m[t],k=_[t],E=(0,transform.getDependentQueries)(h(),t,x),I=n(o({},t,C),Object.keys(E).reduce((function(e,t){return n({},e,o({},t,n({},E[t],{execute:!1},E[t].type===constants$1.queryTypes.suggestion?{type:"search"}:{})))}),{})),P=transform.componentToTypeMap[k&&k.componentType];if([constants$1.queryTypes.range,constants$1.queryTypes.term].includes(P)){C.value;var L=r(C,["value"]);I=n(o({},t,L),Object.keys(E).reduce((function(e,t){return n({},e,o({},t,n({},E[t],{execute:!1},E[t].type===constants$1.queryTypes.suggestion?{type:"search"}:{})))}),{}))}if(a||!(0,helper.compareQueries)(I,T,!1)){x=[].concat(s(x),[t]);var Q=Object.keys(y).includes(t);if(Q&&d((0,misc.setLastUsedAppbaseQuery)(o({},t,{queryId:A}))),d((0,misc.logQuery)(t,I)),Q&&y[t].query){var V=C.query;C.query={bool:{must:[V,y[t].query]}},y[t].persistMapQuery||d((0,maps.updateMapData)(e,null,!1));var M=h().combinedLog;if((0,helper.compareQueries)(M[t],C))return;d((0,misc.logCombinedQuery)(t,C))}if((0,utils.executeQueryListener)(b[t],T,C),v&&(R=n({},R,o({},t,v),(0,transform.getDependentQueries)(h(),t,x))),Q){var N=(0,transform.getInternalComponentID)(t),j=(0,transform.getRSQuery)(N,(0,transform.extractPropsFromState)(h(),N,c?{from:c.from}:null));j&&(R[N]=n({},j,{execute:!1}))}}}}})),(E=Object.keys(R).map((function(e){return R[e]}))).length){var L=[constants$1.componentTypes.dataSearch,constants$1.componentTypes.categorySearch],Q=e.endsWith("__internal")&&-1!==L.indexOf(u);(new Date).getTime()-k<T?(C&&!g.queryLockConfig||setTimeout((function(){var e=[],t=!1,r="",o={},a={},u={};l.forEach((function(i){t||(t=i.isSuggestionsQuery),r||(r=i.searchComponentID),Array.isArray(i.query)&&i.query.forEach((function(e){e.execute&&(u[e.id]=e.execute);var t=e;if(u[e.id]&&(t.execute=!0),a[e.id]&&a[e.id].type===constants$1.queryTypes.suggestion&&t.type!==constants$1.queryTypes.suggestion)return a[e.id+"__suggestion_type"]=n({},a[e.id]),void(a[e.id]=n({},t,{execute:!1}));a[e.id]=t})),Array.isArray(i.orderOfQueries)&&i.orderOfQueries.forEach((function(t){o[t.id]?o[t.id]=!0:e=[t].concat(s(e))}))}));var c=Object.values(a);c.length&&d(i({query:c,orderOfQueries:e,isSuggestionsQuery:t,searchComponentID:r})),l=[],d((0,utils.updateStoreConfig)({queryLockConfig:void 0}))}),T),d((0,utils.updateStoreConfig)({lock:!0})),l.push({query:E,orderOfQueries:x,isSuggestionsQuery:Q,searchComponentID:e})):d(i({queryId:A,query:E,orderOfQueries:x,isSuggestionsQuery:Q,searchComponentID:e}))}}}function c(e,t,r,o,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};try{var l=n({},a);l.answer&&(l.answer.role=constants$1.AI_ROLES.ASSISTANT),e((0,misc.setAIResponse)(t,{meta:i,sessionId:r,messages:[].concat(s(o&&o.messages||[]),s(l.question?[{content:l.question,role:constants$1.AI_ROLES.USER}]:[]),s(l.answer?[{content:l.answer.text,role:constants$1.AI_ROLES.ASSISTANT}]:[])),response:n({},l)}))}catch(n){(0,helper.getStackTrace)(),e((0,misc.setAIResponseError)(t,n,{sessionId:r}))}}function p(e,t,r,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=arguments[5],l=arguments[6],u=e.body.getReader(),c=new TextDecoder,p="",d=void 0,h=i?{content:i,role:constants$1.AI_ROLES.USER}:null,f=function(e){p+=e;var n=((0,helper.getObjectFromLocalStorage)(constants$1.AI_LOCAL_CACHE_KEY)||{})[r],i=[].concat(s(n&&n.messages||n&&n.response&&n.response.messages||[]));h&&-1===i.findIndex((function(e){return e.content===h.content&&e.role===h.role}))&&i.push(h),void 0===d?(d=i.length,i.push({content:p,role:constants$1.AI_ROLES.ASSISTANT})):i[d]={content:p,role:constants$1.AI_ROLES.ASSISTANT},t((0,misc.setAIResponseDelayed)(r,{meta:a,sessionId:o,isTyping:!0,messages:i,response:{answer:{text:p,role:constants$1.AI_ROLES.ASSISTANT}}}))};function m(){u.read().then((function(e){var s=e.value;if(e.done)u.releaseLock();else{for(var i=c.decode(s,{stream:!0}).split(/\n\n(?=data:|$)/),p=!1,d=0;d<i.length;d++){var h=i[d];if(h.startsWith("data: ")){var g=h.slice(6);if("[DONE]"===g){p=!0,Promise.resolve(l)===l?l.then((function(e){return e.json()})).then((function(e){var s=[];e.question&&e.answer&&s.push.apply(s,[{content:e.question,role:constants$1.AI_ROLES.USER},{content:e.answer.text,role:constants$1.AI_ROLES.ASSISTANT}]),t((0,misc.setAIResponseDelayed)(r,{meta:a,sessionId:o,response:n({},e),messages:s,isTyping:!1}))})).catch((function(e){console.error("Error fetching meta details for sessionId: "+o,e)})):t((0,misc.setAIResponseDelayed)(r,{isTyping:!1}));break}f(g)}}p?u.releaseLock():m()}})).catch((function(e){u.releaseLock(),t((0,misc.setAIResponseError)(r,e,{sessionId:o,isTyping:!1}))}))}m()}var d={}}));unwrapExports(query);var query_1=query.loadPopularSuggestions,query_2=query.executeQuery,query_3=query.setQueryOptions,query_4=query.updateQuery,query_5=query.loadMore,query_6=query.loadDataToExport,query_7=query.fetchAIResponse,query_8=query.createAISession,component=createCommonjsModule((function(e,t){function n(e,t){return{type:constants.WATCH_COMPONENT,component:e,react:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.addComponent=function(e,t){return function(n){n(function(e){return{type:constants.ADD_COMPONENT,component:e}}(e)),n(function(e,t){return{type:constants.SET_REGISTERED_COMPONENT_TIMESTAMP,component:e,timestamp:t}}(e,t))}},t.removeComponent=function(e){return{type:constants.REMOVE_COMPONENT,component:e}},t.watchComponent=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(o){o(n(e,t)),r&&o((0,query.executeQuery)(e))}}}));unwrapExports(component);var component_1=component.addComponent,component_2=component.removeComponent,component_3=component.watchComponent,props=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.setComponentProps=function(e,t,o){return{type:constants.SET_PROPS,component:e,options:r(n({},t,{componentType:o}))}},t.updateComponentProps=function(e,t,o){return{type:constants.UPDATE_PROPS,component:e,options:r(n({},t,{componentType:o}))}},t.removeComponentProps=function(e){return{type:constants.REMOVE_PROPS,component:e}};var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.keys(e).forEach((function(n){constants$1.validProps.includes(n)&&(t[n]=e[n])})),t}}));unwrapExports(props);var props_1=props.setComponentProps,props_2=props.updateComponentProps,props_3=props.removeComponentProps,analytics$1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=e.documentId,n=e.clickPosition,o=e.analyticsInstance,s=e.isSuggestionClick;t?o.click({queryID:o.getQueryID(),objects:r({},t,n+1),isSuggestionClick:s}):console.warn("ReactiveSearch: document id is required to record the click analytics")}t.setSuggestionsSearchValue=function(e){return{type:constants.SET_SUGGESTIONS_SEARCH_VALUE,value:e}},t.clearSuggestionsSearchValue=function(){return{type:constants.CLEAR_SUGGESTIONS_SEARCH_VALUE}},t.updateAnalyticsConfig=function(e){return{type:constants.UPDATE_ANALYTICS_CONFIG,analyticsConfig:e}},t.getRecentSearches=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{size:5,minChars:3};return function(t,r){var o=r(),s=o.config,a=o.headers,i=o.appbaseRef,l=i.url,u=i.protocol,c=i.credentials,p=s.app,d=s.mongodb,h=(u+"://"+l||"").replace(/\/+$/,""),f={headers:n({},a,{"Content-Type":"application/json",Authorization:"Basic "+btoa(c)})},m="",g=function(e,t){m+=m?"&"+e+"="+t:e+"="+t};return s.analyticsConfig&&s.analyticsConfig.userId&&g("user_id",s.analyticsConfig.userId),e&&(e.size&&g("size",String(e.size)),e.from&&g("from",e.from),e.to&&g("to",e.to),e.minChars&&g("min_chars",String(e.minChars)),e.customEvents&&Object.keys(e.customEvents).forEach((function(t){g(t,e.customEvents[t])}))),d?t({type:constants.RECENT_SEARCHES_SUCCESS,data:[]}):fetch(h+"/_analytics/"+p+"/recent-searches?"+m,f).then((function(e){return e.status>=500||e.status>=400?t({type:constants.RECENT_SEARCHES_ERROR,error:e}):e.json().then((function(e){return t({type:constants.RECENT_SEARCHES_SUCCESS,data:e})})).catch((function(e){return t({type:constants.RECENT_SEARCHES_ERROR,error:e})}))})).catch((function(e){return t({type:constants.RECENT_SEARCHES_ERROR,error:e})}))}},t.recordResultClick=function(e,t){return function(r,s){var a=s(),i=a.config,l=a.analytics.searchId,u=a.headers,c=a.appbaseRef,p=c.url,d=c.protocol,h=c.credentials,f=a.analyticsRef,m=i.app,g=d+"://"+p;if(i.analytics&&l){var y=u;delete y["X-Search-Query"];var v=(g||"").replace(/\/+$/,"");v.includes("scalr.api.appbase.io")?fetch(v+"/"+m+"/_analytics",{method:"POST",headers:n({},y,{"Content-Type":"application/json",Authorization:"Basic "+btoa(h),"X-Search-Id":l,"X-Search-Click":!0,"X-Search-ClickPosition":e+1})}):o({documentId:t,clickPosition:e,analyticsInstance:f})}}},t.recordSuggestionClick=function(e,t){return function(r,s){var a=s(),i=a.config,l=a.analytics.suggestionsSearchId,u=a.headers,c=a.appbaseRef,p=c.url,d=c.protocol,h=c.credentials,f=a.analyticsRef,m=i.app,g=d+"://"+p;if(i.analytics&&(void 0===i.analyticsConfig||void 0===i.analyticsConfig.suggestionAnalytics||i.analyticsConfig.suggestionAnalytics)){var y=u;delete y["X-Search-Query"];var v=(g||"").replace(/\/+$/,"");v.includes("scalr.api.appbase.io")&&void 0!==e&&l?fetch(v+"/"+m+"/_analytics",{method:"POST",headers:n({},y,{"Content-Type":"application/json",Authorization:"Basic "+btoa(h),"X-Search-Id":l,"X-Search-Suggestions-Click":!0,"X-Search-Suggestions-ClickPosition":e+1})}):void 0!==e&&o({documentId:t,clickPosition:e,analyticsInstance:f,isSuggestionClick:!0})}}},t.recordImpressions=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n,r){var o=r(),s=o.appbaseRef,a=s.url,i=s.protocol,l=o.analyticsRef,u=o.config,c=(i+"://"+a).replace(/\/+$/,"");u.analytics&&!c.includes("scalr.api.appbase.io")&&e&&t.length&&l.search({queryID:l.getQueryID(),impressions:t})}},t.recordAISessionUsefulness=function(e,t){return function(r,o){var s=o(),a=s.analyticsRef,i=s.config;if(i&&i.analyticsConfig&&i.analyticsConfig.recordAnalytics){var l=i&&i.analyticsConfig&&i.analyticsConfig.userId;e?a.saveSessionUsefulness(e,n({},t,{userID:l}),(function(e,t){t._bodyBlob.text().then((function(e){try{var t=JSON.parse(e);if(t.error){var n=t.error.code,r=t.error.message,o="There was an error recording the usefulness of the session. \n\n";n&&(o+=n),r&&(o+=(n?": ":"")+r),console.error(o)}}catch(e){console.error("There was an error recording the usefulness of the session. \n\n")}})).catch((function(e){console.error("Error reading component error text data:",e)}))})):console.warn("ReactiveSearch: AI sessionID is required to record the usefulness of session.")}else console.warn("ReactiveSearch: Unable to record usefulness of session. To enable analytics, make sure to include the following prop on your <ReactiveBase> component: reactivesearchAPIConfig={{ recordAnalytics: true }}")}}}));unwrapExports(analytics$1);var analytics_1$1=analytics$1.setSuggestionsSearchValue,analytics_2$1=analytics$1.clearSuggestionsSearchValue,analytics_3$1=analytics$1.updateAnalyticsConfig,analytics_4$1=analytics$1.getRecentSearches,analytics_5$1=analytics$1.recordResultClick,analytics_6$1=analytics$1.recordSuggestionClick,analytics_7$1=analytics$1.recordImpressions,analytics_8=analytics$1.recordAISessionUsefulness,actions=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(component).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return component[e]}})})),Object.keys(hits).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return hits[e]}})})),Object.keys(maps).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return maps[e]}})})),Object.keys(query).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return query[e]}})})),Object.keys(value).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return value[e]}})})),Object.keys(props).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return props[e]}})})),Object.keys(analytics$1).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return analytics$1[e]}})})),Object.keys(misc).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return misc[e]}})}))}));if(unwrapExports(actions),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o<n;){var s=t[o];if(e.call(r,s,o,t))return s;o++}},configurable:!0,writable:!0}),String.prototype.endsWith||(String.prototype.endsWith=function(e){var t=this.length-e.length;return t>=0&&this.lastIndexOf(e)===t}),"function"!=typeof Event){var _Event=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t};"undefined"!=typeof window&&(window.Event=_Event)}var polyfills=Object.freeze({__proto__:null}),causes_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n={ENTER_PRESS:"ENTER_PRESS",SUGGESTION_SELECT:"SUGGESTION_SELECT",CLEAR_VALUE:"CLEAR_VALUE",SEARCH_ICON_CLICK:"SEARCH_ICON_CLICK",CLEAR_ALL_TAGS:"CLEAR_ALL_TAGS"};t.default=n}));unwrapExports(causes_1);var lib=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.constants=t.Reducers=t.polyfills=t.storeKey=t.Actions=t.suggestions=t.causes=t.helper=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=n({},e,{config:n({},e.config,{lock:!1,analyticsConfig:e.config&&e.config.analyticsConfig?n({},analytics.defaultAnalyticsConfig,e.config.analyticsConfig):analytics.defaultAnalyticsConfig})});return(0,redux.createStore)(o.default,t,C)};var r=y(thunk),o=y(reducers),s=g(actions),a=g(helper),i=y(suggestions),l=y(constants$1),u=y(polyfills),c=y(causes_1),p=y(valueReducer_1),d=y(queryReducer_1),h=y(queryOptionsReducer_1),f=y(dependencyTreeReducer_1),m=y(propsReducer);function g(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function y(e){return e&&e.__esModule?e:{default:e}}var v=constants.STORE_KEY,b=i.default,_=c.default,$={valueReducer:p.default,queryOptionsReducer:h.default,queryReducer:d.default,dependencyTreeReducer:f.default,propsReducer:m.default};t.helper=a,t.causes=_,t.suggestions=b,t.Actions=s,t.storeKey=v,t.polyfills=u.default,t.Reducers=$,t.constants=l.default;var C=("object"==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({}):redux.compose)((0,redux.applyMiddleware)(r.default,middlewares.aiResponseMiddleware))})),configureStore=unwrapExports(lib),lib_1=lib.constants,lib_2=lib.Reducers,lib_3=lib.polyfills,lib_4=lib.storeKey,lib_5=lib.Actions,lib_6=lib.suggestions,lib_7=lib.causes,lib_8=lib.helper,transformOn=function(e){var t={};return Object.keys(e).forEach((function(n){t["on"+n[0].toUpperCase()+n.slice(1)]=e[n]})),t},babelHelperVueTransformOn=transformOn;function _regeneratorRuntime(){_regeneratorRuntime=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",i=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var s=t&&t.prototype instanceof g?t:g,a=Object.create(s.prototype),i=new E(r||[]);return o(a,"_invoke",{value:w(e,n,i)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d="suspendedStart",h="executing",f="completed",m={};function g(){}function y(){}function v(){}var b={};u(b,a,(function(){return this}));var _=Object.getPrototypeOf,$=_&&_(_(I([])));$&&$!==n&&r.call($,a)&&(b=$);var C=v.prototype=g.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(o,s,a,i){var l=p(e[o],e,s);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,a,i)}),(function(e){n("throw",e,a,i)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,i)}))}i(l.arg)}var s;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return s=s?s.then(o,o):o()}})}function w(t,n,r){var o=d;return function(s,a){if(o===h)throw new Error("Generator is already running");if(o===f){if("throw"===s)throw a;return{value:e,done:!0}}for(r.method=s,r.arg=a;;){var i=r.delegate;if(i){var l=T(i,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=p(t,n,r);if("normal"===u.type){if(o=r.done?f:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=f,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var s=p(o,t.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,m;var a=s.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return s.next=s}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=v,o(C,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:y,configurable:!0}),y.displayName=u(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},S(O.prototype),u(O.prototype,i,(function(){return this})),t.AsyncIterator=O,t.async=function(e,n,r,o,s){void 0===s&&(s=Promise);var a=new O(c(e,n,r,o),s);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(C),u(C,l,"Generator"),u(C,a,(function(){return this})),u(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return i.type="throw",i.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var s=this.tryEntries.length-1;s>=0;--s){var a=this.tryEntries[s],i=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var s=o;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var a=s?s.completion:{};return a.type=e,a.arg=t,s?(this.method="next",this.next=s.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function asyncGeneratorStep(e,t,n,r,o,s,a){try{var i=e[s](a),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,o)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var s=e.apply(t,n);function a(e){asyncGeneratorStep(s,r,o,a,i,"next",e)}function i(e){asyncGeneratorStep(s,r,o,a,i,"throw",e)}a(void 0)}))}}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_toPropertyKey$1(r.key),r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function _taggedTemplateLiteralLoose(e,t){return t||(t=e.slice(0)),e.raw=t,e}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _createForOfIteratorHelperLoose(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _toPrimitive$1(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _toPropertyKey$1(e){var t=_toPrimitive$1(e,"string");return"symbol"==typeof t?t:String(t)}
|
|
2
2
|
/*!
|
|
3
3
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
6
6
|
* Released under the MIT License.
|
|
7
|
-
*/function isObject(e){return"[object Object]"===Object.prototype.toString.call(e)}function isPlainObject$1(e){var t,n;return!1!==isObject(e)&&(void 0===(t=e.constructor)||!1!==isObject(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o),r)}var o}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)t.indexOf(n=s[r])>=0||(o[n]=e[n]);return o}var a={silent:!1,logLevel:"warn"},f=["validator"],l=Object.prototype,c=l.toString,s=l.hasOwnProperty,v=/^\s*function (\w+)/;function d(e){var t,n=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(n){var r=n.toString().match(v);return r?r[1]:""}return""}var y=isPlainObject$1,p=function(e){return e},h=p,g=function(e,t){return s.call(e,t)},O=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},m=Array.isArray||function(e){return"[object Array]"===c.call(e)},j=function(e){return"[object Function]"===c.call(e)},_=function(e,t){return y(e)&&g(e,"_vueTypes_name")&&(!t||e._vueTypes_name===t)},T=function(e){return y(e)&&(g(e,"type")||["_vueTypes_name","validator","default","required"].some((function(t){return g(e,t)})))};function w(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function P(e,t,n){var r;void 0===n&&(n=!1);var o=!0,s="";r=y(e)?e:{type:e};var a=_(r)?r._vueTypes_name+" - ":"";if(T(r)&&null!==r.type){if(void 0===r.type||!0===r.type)return o;if(!r.required&&null==t)return o;m(r.type)?(o=r.type.some((function(e){return!0===P(e,t,!0)})),s=r.type.map((function(e){return d(e)})).join(" or ")):o="Array"===(s=d(r))?m(t):"Object"===s?y(t):"String"===s||"Number"===s||"Boolean"===s||"Function"===s?function(e){if(null==e)return"";var t=e.constructor.toString().match(v);return t?t[1].replace(/^Async/,""):""}(t)===s:t instanceof r.type}if(!o){var i=a+'value "'+t+'" should be of type "'+s+'"';return!1===n?(h(i),!1):i}if(g(r,"validator")&&j(r.validator)){var l=h,u=[];if(h=function(e){u.push(e)},o=r.validator(t),h=l,!o){var c=(u.length>1?"* ":"")+u.join("\n* ");return u.length=0,!1===n?(h(c),o):c}}return o}function k(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(e){return void 0===e?this.type===Boolean||Array.isArray(this.type)&&this.type.includes(Boolean)?void(this.default=void 0):(g(this,"default")&&delete this.default,this):j(e)||!0===P(this,e,!0)?(this.default=m(e)?function(){return[].concat(e)}:y(e)?function(){return Object.assign({},e)}:e,this):(h(this._vueTypes_name+' - invalid default value: "'+e+'"'),this)}}}),r=n.validator;return j(r)&&(n.validator=w(r,n)),n}function x(e,t){var n=k(e,t);return Object.defineProperty(n,"validate",{value:function(e){return j(this.validator)&&h(this._vueTypes_name+" - calling .validate() will overwrite the current custom validator function. Validator info:\n"+JSON.stringify(this)),this.validator=w(e,this),this}})}function S(e,t,n){var r,o,s=(r=t,o={},Object.getOwnPropertyNames(r).forEach((function(e){o[e]=Object.getOwnPropertyDescriptor(r,e)})),Object.defineProperties({},o));if(s._vueTypes_name=e,!y(n))return s;var a,i,l=n.validator,c=u(n,f);if(j(l)){var p=s.validator;p&&(p=null!==(i=(a=p).__original)&&void 0!==i?i:a),s.validator=w(p?function(e){return p.call(this,e)&&l.call(this,e)}:l,s)}return Object.assign(s,c)}function A(e){return e.replace(/^(?!\s*$)/gm," ")}var E=function(){return x("any",{})},N=function(){return x("function",{type:Function})},V=function(){return x("boolean",{type:Boolean})},q=function(){return x("string",{type:String})},L=function(){return x("number",{type:Number})},B=function(){return x("array",{type:Array})},D=function(){return x("object",{type:Object})},F=function(){return k("integer",{type:Number,validator:function(e){var t=O(e);return!1===t&&h('integer - "'+e+'" is not an integer'),t}})},Y=function(){return k("symbol",{validator:function(e){var t="symbol"==typeof e;return!1===t&&h('symbol - invalid value "'+e+'"'),t}})},I=function(){return Object.defineProperty({type:null,validator:function(e){var t=null===e;return!1===t&&h("nullable - value should be null"),t}},"_vueTypes_name",{value:"nullable"})};function J(e,t){if(void 0===t&&(t="custom validation failed"),"function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return k(e.name||"<<anonymous function>>",{type:null,validator:function(n){var r=e(n);return r||h(this._vueTypes_name+" - "+t),r}})}function M(e){if(!m(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.map((function(e){return"symbol"==typeof e?e.toString():e})).join('", "')+'".',n={validator:function(n){var r=-1!==e.indexOf(n);return r||h(t),r}};if(-1===e.indexOf(null)){var r=e.reduce((function(e,t){if(null!=t){var n=t.constructor;-1===e.indexOf(n)&&e.push(n)}return e}),[]);r.length>0&&(n.type=r)}return k("oneOf",n)}function R(e){if(!m(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=!1,r=[],o=0;o<e.length;o+=1){var s=e[o];if(T(s)){if(j(s.validator)&&(t=!0),_(s,"oneOf")&&s.type){r=r.concat(s.type);continue}if(_(s,"nullable")){n=!0;continue}if(!0===s.type||!s.type){h('oneOfType - invalid usage of "true" and "null" as types.');continue}r=r.concat(s.type)}else r.push(s)}r=r.filter((function(e,t){return r.indexOf(e)===t}));var a=!1===n&&r.length>0?r:null;return k("oneOfType",t?{type:a,validator:function(t){var n=[],r=e.some((function(e){var r=P(e,t,!0);return"string"==typeof r&&n.push(r),!0===r}));return r||h("oneOfType - provided value does not match any of the "+n.length+" passed-in validators:\n"+A(n.join("\n"))),r}}:{type:a})}function U(e){return k("arrayOf",{type:Array,validator:function(t){var n="",r=t.every((function(t){return!0===(n=P(e,t,!0))}));return r||h("arrayOf - value validation error:\n"+A(n)),r}})}function $(e){return k("instanceOf",{type:e})}function z(e){return k("objectOf",{type:Object,validator:function(t){var n="",r=Object.keys(t).every((function(r){return!0===(n=P(e,t[r],!0))}));return r||h("objectOf - value validation error:\n"+A(n)),r}})}function C(e){var t=Object.keys(e),n=t.filter((function(t){var n;return!(null===(n=e[t])||void 0===n||!n.required)})),r=k("shape",{type:Object,validator:function(r){var o=this;if(!y(r))return!1;var s=Object.keys(r);if(n.length>0&&n.some((function(e){return-1===s.indexOf(e)}))){var a=n.filter((function(e){return-1===s.indexOf(e)}));return h(1===a.length?'shape - required property "'+a[0]+'" is not defined.':'shape - required properties "'+a.join('", "')+'" are not defined.'),!1}return s.every((function(n){if(-1===t.indexOf(n))return!0===o._vueTypes_isLoose||(h('shape - shape definition does not include a "'+n+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var s=P(e[n],r[n],!0);return"string"==typeof s&&h('shape - "'+n+'" property validation error:\n '+A(s)),!0===s}))}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),r}var G=["name","validate","getter"],H=function(){var e;return(e=function(){function e(){}return e.extend=function(e){var t=this;if(h("VueTypes.extend is deprecated. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."),m(e))return e.forEach((function(e){return t.extend(e)})),this;var n=e.name,r=e.validate,o=void 0!==r&&r,s=e.getter,a=void 0!==s&&s,i=u(e,G);if(g(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var l,c=i.type;return _(c)?(delete i.type,Object.defineProperty(this,n,a?{get:function(){return S(n,c,i)}}:{value:function(){var e,t=S(n,c,i);return t.validator&&(t.validator=(e=t.validator).bind.apply(e,[t].concat([].slice.call(arguments)))),t}})):(l=a?{get:function(){var e=Object.assign({},i);return o?x(n,e):k(n,e)},enumerable:!0}:{value:function(){var e,t,r=Object.assign({},i);return e=o?x(n,r):k(n,r),r.validator&&(e.validator=(t=r.validator).bind.apply(t,[e].concat([].slice.call(arguments)))),e},enumerable:!0},Object.defineProperty(this,n,l))},n(e,null,[{key:"any",get:function(){return E()}},{key:"func",get:function(){return N().def(this.defaults.func)}},{key:"bool",get:function(){return void 0===this.defaults.bool?V():V().def(this.defaults.bool)}},{key:"string",get:function(){return q().def(this.defaults.string)}},{key:"number",get:function(){return L().def(this.defaults.number)}},{key:"array",get:function(){return B().def(this.defaults.array)}},{key:"object",get:function(){return D().def(this.defaults.object)}},{key:"integer",get:function(){return F().def(this.defaults.integer)}},{key:"symbol",get:function(){return Y()}},{key:"nullable",get:function(){return I()}}]),e}()).defaults={},e.sensibleDefaults=void 0,e.config=a,e.custom=J,e.oneOf=M,e.instanceOf=$,e.oneOfType=R,e.arrayOf=U,e.objectOf=z,e.shape=C,e.utils={validate:function(e,t){return!0===P(t,e,!0)},toType:function(e,t,n){return void 0===n&&(n=!1),n?x(e,t):k(e,t)}},e}();function K(e){var t;return void 0===e&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(t){function o(){return t.apply(this,arguments)||this}return i(o,t),n(o,null,[{key:"sensibleDefaults",get:function(){return r({},this.defaults)},set:function(t){this.defaults=!1!==t?r({},!0!==t?t:e):{}}}]),o}(H)).defaults=r({},e),t}var Q=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(K());function sheetForTag(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function createStyleElement(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var StyleSheet=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(createStyleElement(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=sheetForTag(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),e="-ms-",r$1="-moz-",a$1="-webkit-",n$1="comm",c$1="rule",s$1="decl",i$1="@import",h$1="@keyframes",$$1="@layer",g$1=Math.abs,k$1=String.fromCharCode,m$1=Object.assign;function x$1(e,t){return 45^O$1(e,0)?(((t<<2^O$1(e,0))<<2^O$1(e,1))<<2^O$1(e,2))<<2^O$1(e,3):0}function y$1(e){return e.trim()}function j$1(e,t){return(e=t.exec(e))?e[0]:e}function z$1(e,t,n){return e.replace(t,n)}function C$1(e,t){return e.indexOf(t)}function O$1(e,t){return 0|e.charCodeAt(t)}function A$1(e,t,n){return e.slice(t,n)}function M$1(e){return e.length}function S$1(e){return e.length}function q$1(e,t){return t.push(e),e}function B$1(e,t){return e.map(t).join("")}var D$1=1,E$1=1,F$1=0,G$1=0,H$1=0,I$1="";function J$1(e,t,n,r,o,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:D$1,column:E$1,length:a,return:""}}function K$1(e,t){return m$1(J$1("",null,null,"",null,null,0),e,{length:-e.length},t)}function L$1(){return H$1}function N$1(){return H$1=G$1>0?O$1(I$1,--G$1):0,E$1--,10===H$1&&(E$1=1,D$1--),H$1}function P$1(){return H$1=G$1<F$1?O$1(I$1,G$1++):0,E$1++,10===H$1&&(E$1=1,D$1++),H$1}function Q$1(){return O$1(I$1,G$1)}function R$1(){return G$1}function T$1(e,t){return A$1(I$1,e,t)}function U$1(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function V$1(e){return D$1=E$1=1,F$1=M$1(I$1=e),G$1=0,[]}function W(e){return I$1="",e}function X(e){return y$1(T$1(G$1-1,re(91===e?e+2:40===e?e+1:e)))}function Z(e){for(;(H$1=Q$1())&&H$1<33;)P$1();return U$1(e)>2||U$1(H$1)>3?"":" "}function ee(e,t){for(;--t&&P$1()&&!(H$1<48||H$1>102||H$1>57&&H$1<65||H$1>70&&H$1<97););return T$1(e,R$1()+(t<6&&32==Q$1()&&32==P$1()))}function re(e){for(;P$1();)switch(H$1){case e:return G$1;case 34:case 39:34!==e&&39!==e&&re(H$1);break;case 40:41===e&&re(e);break;case 92:P$1()}return G$1}function ae(e,t){for(;P$1()&&e+H$1!==57&&(e+H$1!==84||47!==Q$1()););return"/*"+T$1(t,G$1-1)+"*"+k$1(47===e?e:P$1())}function ne(e){for(;!U$1(Q$1());)P$1();return T$1(e,G$1)}function ce(e){return W(se("",null,null,null,[""],e=V$1(e),0,[0],e))}function se(e,t,n,r,o,s,a,i,l){for(var u=0,c=0,p=a,d=0,h=0,f=0,m=1,g=1,y=1,v=0,b="",_=o,$=s,C=r,S=b;g;)switch(f=v,v=P$1()){case 40:if(108!=f&&58==O$1(S,p-1)){-1!=C$1(S+=z$1(X(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=X(v);break;case 9:case 10:case 13:case 32:S+=Z(f);break;case 92:S+=ee(R$1()-1,7);continue;case 47:switch(Q$1()){case 42:case 47:q$1(ue(ae(P$1(),R$1()),t,n),l);break;default:S+="/"}break;case 123*m:i[u++]=M$1(S)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==y&&(S=z$1(S,/\f/g,"")),h>0&&M$1(S)-p&&q$1(h>32?ie(S+";",r,n,p-1):ie(z$1(S," ","")+";",r,n,p-2),l);break;case 59:S+=";";default:if(q$1(C=te(S,t,n,u,c,o,i,b,_=[],$=[],p),s),123===v)if(0===c)se(S,t,C,C,_,s,p,i,$);else switch(99===d&&110===O$1(S,3)?100:d){case 100:case 108:case 109:case 115:se(e,C,C,r&&q$1(te(e,C,C,0,0,o,i,b,o,_=[],p),$),o,$,p,i,r?_:$);break;default:se(S,C,C,C,[""],$,0,i,$)}}u=c=h=0,m=y=1,b=S="",p=a;break;case 58:p=1+M$1(S),h=f;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==N$1())continue;switch(S+=k$1(v),v*m){case 38:y=c>0?1:(S+="\f",-1);break;case 44:i[u++]=(M$1(S)-1)*y,y=1;break;case 64:45===Q$1()&&(S+=X(P$1())),d=Q$1(),c=p=M$1(b=S+=ne(R$1())),v++;break;case 45:45===f&&2==M$1(S)&&(m=0)}}return s}function te(e,t,n,r,o,s,a,i,l,u,c){for(var p=o-1,d=0===o?s:[""],h=S$1(d),f=0,m=0,g=0;f<r;++f)for(var y=0,v=A$1(e,p+1,p=g$1(m=a[f])),b=e;y<h;++y)(b=y$1(m>0?d[y]+" "+v:z$1(v,/&\f/g,d[y])))&&(l[g++]=b);return J$1(e,t,n,0===o?c$1:i,l,u,c)}function ue(e,t,n){return J$1(e,t,n,n$1,k$1(L$1()),A$1(e,2,-2),0)}function ie(e,t,n,r){return J$1(e,t,n,s$1,A$1(e,0,r),A$1(e,r+1,-1),r)}function oe(e,t){for(var n="",r=S$1(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function le(e,t,n,r){switch(e.type){case $$1:if(e.children.length)break;case i$1:case s$1:return e.return=e.return||e.value;case n$1:return"";case h$1:return e.return=e.value+"{"+oe(e.children,r)+"}";case c$1:e.value=e.props.join(",")}return M$1(n=oe(e.children,r))?e.return=e.value+"{"+n+"}":""}function ve(e){var t=S$1(e);return function(n,r,o,s){for(var a="",i=0;i<t;i++)a+=e[i](n,r,o,s)||"";return a}}function pe(e){return function(t){t.root||(t=t.return)&&e(t)}}function memoize(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var identifierWithPointTracking=function(e,t,n){for(var r=0,o=0;r=o,o=Q$1(),38===r&&12===o&&(t[n]=1),!U$1(o);)P$1();return T$1(e,G$1)},toRules=function(e,t){var n=-1,r=44;do{switch(U$1(r)){case 0:38===r&&12===Q$1()&&(t[n]=1),e[n]+=identifierWithPointTracking(G$1-1,t,n);break;case 2:e[n]+=X(r);break;case 4:if(44===r){e[++n]=58===Q$1()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=k$1(r)}}while(r=P$1());return e},getRules=function(e,t){return W(toRules(V$1(e),t))},fixedElements=new WeakMap,compat=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||fixedElements.get(n))&&!r){fixedElements.set(e,!0);for(var o=[],s=getRules(t,o),a=n.props,i=0,l=0;i<s.length;i++)for(var u=0;u<a.length;u++,l++)e.props[l]=o[i]?s[i].replace(/&\f/g,a[u]):a[u]+" "+s[i]}}},removeLabel=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function prefix(t,n){switch(x$1(t,n)){case 5103:return a$1+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a$1+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return a$1+t+r$1+t+e+t+t;case 6828:case 4268:return a$1+t+e+t+t;case 6165:return a$1+t+e+"flex-"+t+t;case 5187:return a$1+t+z$1(t,/(\w+).+(:[^]+)/,a$1+"box-$1$2"+e+"flex-$1$2")+t;case 5443:return a$1+t+e+"flex-item-"+z$1(t,/flex-|-self/,"")+t;case 4675:return a$1+t+e+"flex-line-pack"+z$1(t,/align-content|flex-|-self/,"")+t;case 5548:return a$1+t+e+z$1(t,"shrink","negative")+t;case 5292:return a$1+t+e+z$1(t,"basis","preferred-size")+t;case 6060:return a$1+"box-"+z$1(t,"-grow","")+a$1+t+e+z$1(t,"grow","positive")+t;case 4554:return a$1+z$1(t,/([^-])(transform)/g,"$1"+a$1+"$2")+t;case 6187:return z$1(z$1(z$1(t,/(zoom-|grab)/,a$1+"$1"),/(image-set)/,a$1+"$1"),t,"")+t;case 5495:case 3959:return z$1(t,/(image-set\([^]*)/,a$1+"$1$`$1");case 4968:return z$1(z$1(t,/(.+:)(flex-)?(.*)/,a$1+"box-pack:$3"+e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a$1+t+t;case 4095:case 3583:case 4068:case 2532:return z$1(t,/(.+)-inline(.+)/,a$1+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(M$1(t)-1-n>6)switch(O$1(t,n+1)){case 109:if(45!==O$1(t,n+4))break;case 102:return z$1(t,/(.+:)(.+)-([^]+)/,"$1"+a$1+"$2-$3$1"+r$1+(108==O$1(t,n+3)?"$3":"$2-$3"))+t;case 115:return~C$1(t,"stretch")?prefix(z$1(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==O$1(t,n+1))break;case 6444:switch(O$1(t,M$1(t)-3-(~C$1(t,"!important")&&10))){case 107:return z$1(t,":",":"+a$1)+t;case 101:return z$1(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a$1+(45===O$1(t,14)?"inline-":"")+"box$3$1"+a$1+"$2$3$1"+e+"$2box$3")+t}break;case 5936:switch(O$1(t,n+11)){case 114:return a$1+t+e+z$1(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return a$1+t+e+z$1(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return a$1+t+e+z$1(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return a$1+t+e+t+t}return t}var prefixer=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case s$1:t.return=prefix(t.value,t.length);break;case h$1:return oe([K$1(t,{value:z$1(t.value,"@","@"+a$1)})],o);case c$1:if(t.length)return B$1(t.props,(function(n){switch(j$1(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return oe([K$1(t,{props:[z$1(n,/:(read-\w+)/,":"+r$1+"$1")]})],o);case"::placeholder":return oe([K$1(t,{props:[z$1(n,/:(plac\w+)/,":"+a$1+"input-$1")]}),K$1(t,{props:[z$1(n,/:(plac\w+)/,":"+r$1+"$1")]}),K$1(t,{props:[z$1(n,/:(plac\w+)/,e+"input-$1")]})],o)}return""}))}},defaultStylisPlugins=[prefixer],createCache=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,s=e.stylisPlugins||defaultStylisPlugins,a={},i=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;i.push(e)}));var l,u=[compat,removeLabel],c=[le,pe((function(e){l.insert(e)}))],p=ve(u.concat(s,c));o=function(e,t,n,r){l=n,oe(ce(e?e+"{"+t.styles+"}":t.styles),p),r&&(d.inserted[t.name]=!0)};var d={key:t,sheet:new StyleSheet({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return d.sheet.hydrate(i),d},isBrowser=!0;function getRegisteredStyles(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var registerStyles=function(e,t,n){var r=e.key+"-"+t.name;!1!==n&&!1!==isBrowser||void 0!==e.registered[r]||(e.registered[r]=t.styles)},insertStyles=function(e,t,n){registerStyles(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};function murmur2(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(e){return 45===e.charCodeAt(1)},isProcessableValue=function(e){return null!=e&&"boolean"!=typeof e},processStyleName=memoize((function(e){return isCustomProperty(e)?e:e.replace(hyphenateRegex,"-$&").toLowerCase()})),processStyleValue=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(animationRegex,(function(e,t,n){return cursor={name:t,styles:n,next:cursor},t}))}return 1===unitlessKeys[e]||isCustomProperty(e)||"number"!=typeof t||0===t?t:t+"px"},noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return cursor={name:n.name,styles:n.styles,next:cursor},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)cursor={name:r.name,styles:r.styles,next:cursor},r=r.next;return n.styles+";"}return createStringFromObject(e,t,n);case"function":if(void 0!==e){var o=cursor,s=n(e);return cursor=o,handleInterpolation(e,t,s)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}function createStringFromObject(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=handleInterpolation(e,t,n[o])+";";else for(var s in n){var a=n[s];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=s+"{"+t[a]+"}":isProcessableValue(a)&&(r+=processStyleName(s)+":"+processStyleValue(s,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var i=handleInterpolation(e,t,a);switch(s){case"animation":case"animationName":r+=processStyleName(s)+":"+i+";";break;default:r+=s+"{"+i+"}"}}else for(var l=0;l<a.length;l++)isProcessableValue(a[l])&&(r+=processStyleName(s)+":"+processStyleValue(s,a[l])+";")}return r}var labelPattern=/label:\s*([^\s;\n{]+)\s*(;|$)/g,cursor,serializeStyles=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";cursor=void 0;var s=e[0];null==s||void 0===s.raw?(r=!1,o+=handleInterpolation(n,t,s)):o+=s[0];for(var a=1;a<e.length;a++)o+=handleInterpolation(n,t,e[a]),r&&(o+=s[a]);labelPattern.lastIndex=0;for(var i,l="";null!==(i=labelPattern.exec(o));)l+="-"+i[1];return{name:murmur2(o)+l,styles:o,next:cursor}},_excluded=["as"],createStyled=function e(t,n){void 0===n&&(n={});var r=n.label,o=n.target,s=t.__emotion_real===t,a=s&&t.__emotion_base||t;return function(){var i=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];void 0!==r&&i.push("label:"+r+";");for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];if(null===u[0]||void 0===u[0].raw)i.push.apply(i,u);else{i.push(u[0][0]);for(var p=u.length,d=1;d<p;d++)i.push(u[d],u[0][d])}var h={inheritAttrs:!1,inject:{theme:{from:"theme_reactivesearch",default:void 0},$emotionCache:{default:null}},render:function(e){var t=e.theme,r=e.$attrs,s=e.$options,l=e.$slots,u=e.$props,c=(e.$parent,this.$emotionCache),p=r||{},d=p.as,h=_objectWithoutPropertiesLoose(p,_excluded),f="",m=d||a,g=[],y=_extends({},r,{theme:t||s.inject.theme});r.class&&(f+=getRegisteredStyles(c.registered,g,r.class));var v=serializeStyles(i.concat(g),c.registered,y);insertStyles(c,v,"string"==typeof m),f+=c.key+"-"+v.name,void 0!==o&&(f+=" "+o);var b=_extends({},u,n.getAttrs?n.getAttrs(h):h,{class:f});return vue.h(m,b,l)}};return h.name=void 0===r?"Styled"+("string"==typeof a?a:a.name||"Component"):r,h.__emotion_real=h,h.__emotion_base=a,h.__emotion_styles=i,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,void 0===r?n:_extends({},n||{},r)).apply(void 0,i)},h}},styled=createStyled;function sheetForTag$1(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function createStyleElement$1(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var StyleSheet$1=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(createStyleElement$1(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=sheetForTag$1(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();function memoize$1(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var identifierWithPointTracking$1=function(e,t,n){for(var r=0,o=0;r=o,o=Q$1(),38===r&&12===o&&(t[n]=1),!U$1(o);)P$1();return T$1(e,G$1)},toRules$1=function(e,t){var n=-1,r=44;do{switch(U$1(r)){case 0:38===r&&12===Q$1()&&(t[n]=1),e[n]+=identifierWithPointTracking$1(G$1-1,t,n);break;case 2:e[n]+=X(r);break;case 4:if(44===r){e[++n]=58===Q$1()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=k$1(r)}}while(r=P$1());return e},getRules$1=function(e,t){return W(toRules$1(V$1(e),t))},fixedElements$1=new WeakMap,compat$1=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||fixedElements$1.get(n))&&!r){fixedElements$1.set(e,!0);for(var o=[],s=getRules$1(t,o),a=n.props,i=0,l=0;i<s.length;i++)for(var u=0;u<a.length;u++,l++)e.props[l]=o[i]?s[i].replace(/&\f/g,a[u]):a[u]+" "+s[i]}}},removeLabel$1=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function prefix$1(t,n){switch(x$1(t,n)){case 5103:return a$1+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a$1+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return a$1+t+r$1+t+e+t+t;case 6828:case 4268:return a$1+t+e+t+t;case 6165:return a$1+t+e+"flex-"+t+t;case 5187:return a$1+t+z$1(t,/(\w+).+(:[^]+)/,a$1+"box-$1$2"+e+"flex-$1$2")+t;case 5443:return a$1+t+e+"flex-item-"+z$1(t,/flex-|-self/,"")+t;case 4675:return a$1+t+e+"flex-line-pack"+z$1(t,/align-content|flex-|-self/,"")+t;case 5548:return a$1+t+e+z$1(t,"shrink","negative")+t;case 5292:return a$1+t+e+z$1(t,"basis","preferred-size")+t;case 6060:return a$1+"box-"+z$1(t,"-grow","")+a$1+t+e+z$1(t,"grow","positive")+t;case 4554:return a$1+z$1(t,/([^-])(transform)/g,"$1"+a$1+"$2")+t;case 6187:return z$1(z$1(z$1(t,/(zoom-|grab)/,a$1+"$1"),/(image-set)/,a$1+"$1"),t,"")+t;case 5495:case 3959:return z$1(t,/(image-set\([^]*)/,a$1+"$1$`$1");case 4968:return z$1(z$1(t,/(.+:)(flex-)?(.*)/,a$1+"box-pack:$3"+e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a$1+t+t;case 4095:case 3583:case 4068:case 2532:return z$1(t,/(.+)-inline(.+)/,a$1+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(M$1(t)-1-n>6)switch(O$1(t,n+1)){case 109:if(45!==O$1(t,n+4))break;case 102:return z$1(t,/(.+:)(.+)-([^]+)/,"$1"+a$1+"$2-$3$1"+r$1+(108==O$1(t,n+3)?"$3":"$2-$3"))+t;case 115:return~C$1(t,"stretch")?prefix$1(z$1(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==O$1(t,n+1))break;case 6444:switch(O$1(t,M$1(t)-3-(~C$1(t,"!important")&&10))){case 107:return z$1(t,":",":"+a$1)+t;case 101:return z$1(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a$1+(45===O$1(t,14)?"inline-":"")+"box$3$1"+a$1+"$2$3$1"+e+"$2box$3")+t}break;case 5936:switch(O$1(t,n+11)){case 114:return a$1+t+e+z$1(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return a$1+t+e+z$1(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return a$1+t+e+z$1(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return a$1+t+e+t+t}return t}var prefixer$1=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case s$1:t.return=prefix$1(t.value,t.length);break;case h$1:return oe([K$1(t,{value:z$1(t.value,"@","@"+a$1)})],o);case c$1:if(t.length)return B$1(t.props,(function(n){switch(j$1(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return oe([K$1(t,{props:[z$1(n,/:(read-\w+)/,":"+r$1+"$1")]})],o);case"::placeholder":return oe([K$1(t,{props:[z$1(n,/:(plac\w+)/,":"+a$1+"input-$1")]}),K$1(t,{props:[z$1(n,/:(plac\w+)/,":"+r$1+"$1")]}),K$1(t,{props:[z$1(n,/:(plac\w+)/,e+"input-$1")]})],o)}return""}))}},defaultStylisPlugins$1=[prefixer$1],createCache$1=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,s=e.stylisPlugins||defaultStylisPlugins$1,a={},i=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;i.push(e)}));var l,u=[compat$1,removeLabel$1],c=[le,pe((function(e){l.insert(e)}))],p=ve(u.concat(s,c));o=function(e,t,n,r){l=n,oe(ce(e?e+"{"+t.styles+"}":t.styles),p),r&&(d.inserted[t.name]=!0)};var d={key:t,sheet:new StyleSheet$1({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return d.sheet.hydrate(i),d};function murmur2$1(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var unitlessKeys$1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex$1=/[A-Z]|^ms/g,animationRegex$1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty$1=function(e){return 45===e.charCodeAt(1)},isProcessableValue$1=function(e){return null!=e&&"boolean"!=typeof e},processStyleName$1=memoize$1((function(e){return isCustomProperty$1(e)?e:e.replace(hyphenateRegex$1,"-$&").toLowerCase()})),processStyleValue$1=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(animationRegex$1,(function(e,t,n){return cursor$1={name:t,styles:n,next:cursor$1},t}))}return 1===unitlessKeys$1[e]||isCustomProperty$1(e)||"number"!=typeof t||0===t?t:t+"px"},noComponentSelectorMessage$1="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation$1(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return cursor$1={name:n.name,styles:n.styles,next:cursor$1},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)cursor$1={name:r.name,styles:r.styles,next:cursor$1},r=r.next;return n.styles+";"}return createStringFromObject$1(e,t,n);case"function":if(void 0!==e){var o=cursor$1,s=n(e);return cursor$1=o,handleInterpolation$1(e,t,s)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}function createStringFromObject$1(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=handleInterpolation$1(e,t,n[o])+";";else for(var s in n){var a=n[s];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=s+"{"+t[a]+"}":isProcessableValue$1(a)&&(r+=processStyleName$1(s)+":"+processStyleValue$1(s,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var i=handleInterpolation$1(e,t,a);switch(s){case"animation":case"animationName":r+=processStyleName$1(s)+":"+i+";";break;default:r+=s+"{"+i+"}"}}else for(var l=0;l<a.length;l++)isProcessableValue$1(a[l])&&(r+=processStyleName$1(s)+":"+processStyleValue$1(s,a[l])+";")}return r}var labelPattern$1=/label:\s*([^\s;\n{]+)\s*(;|$)/g,cursor$1,serializeStyles$1=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";cursor$1=void 0;var s=e[0];null==s||void 0===s.raw?(r=!1,o+=handleInterpolation$1(n,t,s)):o+=s[0];for(var a=1;a<e.length;a++)o+=handleInterpolation$1(n,t,e[a]),r&&(o+=s[a]);labelPattern$1.lastIndex=0;for(var i,l="";null!==(i=labelPattern$1.exec(o));)l+="-"+i[1];return{name:murmur2$1(o)+l,styles:o,next:cursor$1}},isBrowser$1=!0;function getRegisteredStyles$1(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var registerStyles$1=function(e,t,n){var r=e.key+"-"+t.name;!1!==n&&!1!==isBrowser$1||void 0!==e.registered[r]||(e.registered[r]=t.styles)},insertStyles$1=function(e,t,n){registerStyles$1(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};function insertWithoutScoping(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function merge(e,t,n){var r=[],o=getRegisteredStyles$1(e,r,n);return r.length<2?n:o+t(r)}var createEmotion=function(e){var t=createCache$1(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=serializeStyles$1(n,t.registered,void 0);return insertStyles$1(t,o,!1),t.key+"-"+o.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return merge(t.registered,n,classnames(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=serializeStyles$1(n,t.registered);insertWithoutScoping(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=serializeStyles$1(n,t.registered),s="animation-"+o.name;return insertWithoutScoping(t,{name:o.name,styles:"@keyframes "+s+"{"+o.styles+"}"}),s},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:getRegisteredStyles$1.bind(null,t.registered),merge:merge.bind(null,t.registered,n)}},classnames=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var s=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))s=e(o);else for(var a in s="",o)o[a]&&a&&(s&&(s+=" "),s+=a);break;default:s=o}s&&(n&&(n+=" "),n+=s)}}return n},_createEmotion=createEmotion({key:"css"}),keyframes=_createEmotion.keyframes,css=_createEmotion.css;function _extends$1(){return(_extends$1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function colorToInt(e){return Math.round(255*e)}function convertToInt(e,t,n){return colorToInt(e)+","+colorToInt(t)+","+colorToInt(n)}function hslToRgb(e,t,n,r){if(void 0===r&&(r=convertToInt),0===t)return r(n,n,n);var o=e%360/60,s=(1-Math.abs(2*n-1))*t,a=s*(1-Math.abs(o%2-1)),i=0,l=0,u=0;o>=0&&o<1?(i=s,l=a):o>=1&&o<2?(i=a,l=s):o>=2&&o<3?(l=s,u=a):o>=3&&o<4?(l=a,u=s):o>=4&&o<5?(i=a,u=s):o>=5&&o<6&&(i=s,u=a);var c=n-s/2;return r(i+c,l+c,u+c)}var namedColorMap={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function nameToHex(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return namedColorMap[t]?"#"+namedColorMap[t]:e}var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,rgbaRegex=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,hslRegex=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,hslaRegex=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/;function parseToRgb(e){if("string"!=typeof e)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");var t=nameToHex(e);if(t.match(hexRegex))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(hexRgbaRegex)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(reducedHexRegex))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(reducedRgbaHexRegex)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=rgbRegex.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var s=rgbaRegex.exec(t);if(s)return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10),alpha:parseFloat(""+s[4])};var a=hslRegex.exec(t);if(a){var i="rgb("+hslToRgb(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",l=rgbRegex.exec(i);if(!l)throw new Error("Couldn't generate valid rgb string from "+t+", it returned "+i+".");return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var u=hslaRegex.exec(t);if(u){var c="rgb("+hslToRgb(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",p=rgbRegex.exec(c);if(!p)throw new Error("Couldn't generate valid rgb string from "+t+", it returned "+c+".");return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10),alpha:parseFloat(""+u[4])}}throw new Error("Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.")}function rgbToHsl(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,s=Math.max(n,r,o),a=Math.min(n,r,o),i=(s+a)/2;if(s===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var l=s-a,u=i>.5?l/(2-s-a):l/(s+a);switch(s){case n:t=(r-o)/l+(r<o?6:0);break;case r:t=(o-n)/l+2;break;default:t=(n-r)/l+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:u,lightness:i,alpha:e.alpha}:{hue:t,saturation:u,lightness:i}}function parseToHsl(e){return rgbToHsl(parseToRgb(e))}var reduceHexValue=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function numberToHex(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function colorToHex(e){return numberToHex(Math.round(255*e))}function convertToHex(e,t,n){return reduceHexValue("#"+colorToHex(e)+colorToHex(t)+colorToHex(n))}function hslToHex(e,t,n){return hslToRgb(e,t,n,convertToHex)}function hsl(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return hslToHex(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return hslToHex(e.hue,e.saturation,e.lightness);throw new Error("Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).")}function hsla(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?hslToHex(e,t,n):"rgba("+hslToRgb(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?hslToHex(e.hue,e.saturation,e.lightness):"rgba("+hslToRgb(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Error("Passed invalid arguments to hsla, please pass multiple numbers e.g. hsl(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).")}function rgb(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return reduceHexValue("#"+numberToHex(e)+numberToHex(t)+numberToHex(n));if("object"==typeof e&&void 0===t&&void 0===n)return reduceHexValue("#"+numberToHex(e.red)+numberToHex(e.green)+numberToHex(e.blue));throw new Error("Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).")}function rgba(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=parseToRgb(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?rgb(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?rgb(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Error("Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).")}var isRgb=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},isRgba=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},isHsl=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},isHsla=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha},errMsg="Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.";function toColorString(e){if("object"!=typeof e)throw new Error(errMsg);if(isRgba(e))return rgba(e);if(isRgb(e))return rgb(e);if(isHsla(e))return hsla(e);if(isHsl(e))return hsl(e);throw new Error(errMsg)}function curried(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):curried(e,t,r)}}function curry(e){return curried(e,e.length,[])}function guard(e,t,n){return Math.max(e,Math.min(t,n))}function darken(e,t){var n=parseToHsl(t);return toColorString(_extends$1({},n,{lightness:guard(0,1,n.lightness-parseFloat(e))}))}var curriedDarken=curry(darken);function lighten(e,t){var n=parseToHsl(t);return toColorString(_extends$1({},n,{lightness:guard(0,1,n.lightness+parseFloat(e))}))}var curriedLighten=curry(lighten),_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,filters=function(e){var t=e.colors.borderColor;return css(_templateObject||(_templateObject=_taggedTemplateLiteralLoose(["\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\tbutton {\n\t\tmargin: 2px 3px;\n\t\tpadding: 5px 8px;\n\t\tfont-size: 0.85rem;\n\t\tposition: relative;\n\n\t\tspan:first-child {\n\t\t\tmax-width: 260px;\n\t\t\twhite-space: nowrap;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\tmargin-right: 26px;\n\t\t}\n\n\t\tspan:last-child {\n\t\t\tdisplay: flex;\n\t\t\theight: 100%;\n\t\t\ttop: 0;\n\t\t\tright: 8px;\n\t\t\tposition: absolute;\n\t\t\talign-items: center;\n\t\t\tborder-left: 1px solid ",";\n\t\t\tpadding-left: 8px;\n\t\t\tmargin-left: 8px;\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tspan:first-child {\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t}\n"])),t||"#fff")},pagination=css(_templateObject2||(_templateObject2=_taggedTemplateLiteralLoose(["\n\tmargin: 10px -3px;\n\tmax-width: 100%;\n\ttext-align: center;\n\n\tbutton {\n\t\tmargin: 0 3px;\n\t}\n"]))),toggleButtons=css(_templateObject3||(_templateObject3=_taggedTemplateLiteralLoose(["\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\tbutton {\n\t\tmargin: 3px 3px;\n\t}\n"]))),numberBoxContainer=css(_templateObject4||(_templateObject4=_taggedTemplateLiteralLoose(["\n\tmargin: 0 -5px;\n\tbutton {\n\t\tmargin: 5px;\n\t}\n\tspan {\n\t\tmargin: 0 5px;\n\t}\n"]))),primary=function(e){var t=e.theme;return"\n\tbackground-color: "+t.colors.primaryColor+";\n\tcolor: "+t.colors.primaryTextColor+";\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: "+curriedDarken(.1,t.colors.primaryColor)+";\n\t}\n"},large=function(){return"\n\tmin-height: 40px;\n\tpadding: 10px 20px;\n"},disabled=function(e){var t=e.theme;return"\n\tbackground-color: "+(t.colors.backgroundColor?curriedLighten(.1,t.colors.backgroundColor):"#fafafa")+";\n\tcolor: #ccc;\n\tcursor: not-allowed;\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: "+(t.colors.backgroundColor?curriedLighten(.2,t.colors.backgroundColor):"#fafafa")+";\n\t}\n"},info=function(e){var t=e.theme;return"\n\tborder: 1px solid "+t.colors.primaryColor+";\n\tcolor: "+t.colors.primaryColor+";\n\tbackground-color: "+t.colors.primaryTextColor+";\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: "+curriedDarken(.1,helper_1(t.colors.primaryTextColor))+";\n\t}\n"},Button=styled("button")(_templateObject5||(_templateObject5=_taggedTemplateLiteralLoose(["\n\tdisplay: inline-flex;\n\tjustify-content: center;\n\talign-items: center;\n\tborder-radius: 3px;\n\tborder: 1px solid transparent;\n\tmin-height: 30px;\n\tword-wrap: break-word;\n\tpadding: 5px 12px;\n\tline-height: 1.2rem;\n\tbackground-color: ",";\n\tcolor: ",";\n\tcursor: pointer;\n\tuser-select: none;\n\ttransition: all 0.3s ease;\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n\n\t&:focus {\n\t\toutline: 0;\n\t\tborder-color: ",";\n\t\tbox-shadow: ",";\n\t}\n\t",";\n\t",";\n\t",";\n\t",";\n\n\t&.enter-btn {\n\t\tborder-top-left-radius: 0px;\n\t\tborder-bottom-left-radius: 0px;\n\t\theight: 100%;\n\t}\n"])),(function(e){var t=e.theme;return t.colors?t.colors.backgroundColor:"#eee"}),(function(e){var t=e.theme;return t.colors?t.colors.textColor:""}),(function(e){var t=e.theme;return t.colors&&t.colors.backgroundColor?curriedDarken(.1,t.colors.backgroundColor):"#ccc"}),(function(e){var t=e.theme;return t.colors&&t.colors.primaryColor?rgba(t.colors.primaryColor,.6):"unset"}),(function(e){var t=e.theme;return t.colors&&t.colors.primaryColor?"0 0 0 2px "+rgba(t.colors.primaryColor,.3):""}),(function(e){return e.info?info:null}),(function(e){return e.disabled?disabled:null}),(function(e){return e.large&&large}),(function(e){return e.primary?primary:null})),loadMoreContainer=css({margin:"5px 0",display:"flex",justifyContent:"center"});Q.sensibleDefaults=!1;var reactKeyType=Q.oneOfType([Q.string,Q.arrayOf(Q.string),Q.object,Q.arrayOf(Q.object)]);function validateLocation(e){return e&&e.lat&&e.lng?isNaN(e.lat)?(console.error(new Error("lat value must be a number")),!1):isNaN(e.lat)?(console.error(new Error("lng value must be a number")),!1):e.lat<-90||e.lat>90?(console.error(new Error("lat value should be between -90 and 90.")),!1):!(e.lat<-180||e.lat>180)||(console.error(new Error("lng value should be between -180 and 180.")),!1):(console.error(new Error("location must be an object with lat and lng keys defined")),!1)}var types={any:Q.any,bool:Q.bool,boolRequired:Q.bool.isRequired,components:Q.arrayOf(Q.string),compoundClause:Q.oneOf(["filter","must"]),children:Q.any,data:Q.arrayOf(Q.object),dataFieldArray:Q.oneOfType([Q.string,Q.arrayOf(Q.string)]).isRequired,dataNumberBox:Q.shape({label:Q.string,start:Q.number.isRequired,end:Q.number.isRequired}).isRequired,date:Q.oneOfType([Q.string,Q.arrayOf(Q.string)]),dateObject:Q.object,excludeFields:Q.arrayOf(Q.string),fieldWeights:Q.arrayOf(Q.number),filterLabel:Q.string,func:Q.func,funcRequired:Q.func.isRequired,fuzziness:Q.oneOf([0,1,2,"AUTO"]),headers:Q.object,hits:Q.arrayOf(Q.object),iconPosition:Q.oneOf(["left","right"]),includeFields:Q.arrayOf(Q.string),labelPosition:Q.oneOf(["left","right","top","bottom"]),number:Q.number,options:Q.oneOfType([Q.arrayOf(Q.object),Q.object]),paginationAt:Q.oneOf(["top","bottom","both"]),range:Q.shape({start:Q.number.isRequired,end:Q.number.isRequired}),rangeLabels:Q.shape({start:Q.string.isRequired,end:Q.string.isRequired}),react:Q.shape({and:reactKeyType,or:reactKeyType,not:reactKeyType}),selectedValues:Q.object,selectedValue:Q.oneOfType([Q.string,Q.arrayOf(Q.string),Q.arrayOf(Q.object),Q.object,Number,Q.arrayOf(Number)]),suggestions:Q.arrayOf(Q.object),supportedOrientations:Q.oneOf(["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"]),sortBy:Q.oneOf(["asc","desc"]),sortOptions:Q.arrayOf(Q.shape({label:Q.string,dataField:Q.string,sortBy:Q.string})),sortByWithCount:Q.oneOf(["asc","desc","count"]),stats:Q.arrayOf(Q.object),string:Q.string,stringArray:Q.arrayOf(Q.string),stringOrArray:Q.oneOfType([Q.string,Q.arrayOf(Q.string)]),stringRequired:Q.string.isRequired,style:Q.object,themePreset:Q.oneOf(["light","dark"]),queryFormatSearch:Q.oneOf(["and","or"]),queryFormatNumberBox:Q.oneOf(["exact","lte","gte"]),params:Q.object.isRequired,props:Q.object,rangeLabelsAlign:Q.oneOf(["left","right"]),title:Q.oneOfType([Q.string,Q.nullable]),tooltipTrigger:Q.oneOf(["always","none","hover"]),location:Q.custom(validateLocation),unit:Q.oneOf(["mi","miles","yd","yards","ft","feet","in","inch","km","kilometers","m","meters","cm","centimeters","mm","millimeters","NM","nmi","nauticalmiles"]),value:Q.string.def(void 0),reactivesearchAPIConfig:Q.shape({recordAnalytics:Q.bool,emptyQuery:Q.bool,suggestionAnalytics:Q.bool,enableQueryRules:Q.bool,enableSearchRelevancy:Q.bool,userId:Q.string,useCache:Q.bool,customEvents:Q.object,enableTelemetry:Q.bool.def(!0)}).def({}),mongodb:Q.shape({db:Q.string,collection:Q.string}),endpointConfig:Q.shape({url:Q.string.isRequired,method:Q.string,headers:Q.object,body:Q.object}),AIConfig:Q.shape({systemPrompt:Q.string,topDocsForContext:Q.number,maxTokens:Q.number,docTemplate:Q.string,queryTemplate:Q.string,temperature:Q.number}),AIUIConfig:Q.shape({loaderMessage:Q.string,showSourceDocuments:Q.bool,renderSourceDocument:Q.func,onSourceClick:Q.func,askButton:Q.bool,showFeedback:Q.bool})};function _isSlot(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var getClassName=lib_8.getClassName,handleA11yAction=lib_8.handleA11yAction;function getStartPage(e,t,n){var r=parseInt(e/2,10),o=t-(n?Math.ceil(r/2)-1:r);return o>1?o:2}var Pagination={name:"Pagination",functional:!0,props:{currentPage:types.number,innerClass:types.style,pages:types.number,setPage:types.func,totalPages:types.number,showEndPage:Q.bool,prevLabel:types.string,nextLabel:types.string},render:function(e){var t=e.$props,n=function(){t.currentPage&&t.setPage(t.currentPage-1)},r=function(){t.currentPage<t.totalPages-1&&t.setPage(t.currentPage+1)};if(!t.totalPages)return null;var o,s,a,i,l=getClassName(t.innerClass,"button"),u=0===t.currentPage,c=l||u?l+" "+(u?"active":""):"",p=function(e){var n=t.pages,r=t.currentPage,o=t.totalPages,s=t.setPage,a=t.showEndPage,i="start"===e?getStartPage(n,r,a):Math.max(2,Math.ceil(o-(n-1)/2+1)),u=[],c=i;if(i<=o){var p=n<o?i+(n-1):o+1;a&&(p="start"===e?i+(Math.ceil(n/2)-n%2):o+1),r>o-n+2&&(i=Math.max(2,o-n+2),p=i+n);for(var d=function(e){var t=r===e-1,n=l||t?l+" "+(t?"active":""):"",a=vue.createVNode(Button,{class:n,primary:t,tabIndex:"0",onKeyPress:function(t){return handleA11yAction(t,(function(){return s(e-1)}))},alt:"page-"+e,onClick:function(){return s(e-1)}},_isSlot(e)?e:{default:function(){return[e]}});e<=o+1&&(u.push(a),e===Math.min(o+1,p)-1&&(c=e))},h=i;h<Math.min(o+1,p);h+=1)d(h)}return[u,i,c]};return vue.createVNode("div",{class:pagination+" "+getClassName(t.innerClass,"pagination")},[vue.createVNode(Button,vue.mergeProps(babelHelperVueTransformOn({click:n,"key-press":function(e){return handleA11yAction(e,n)}}),{class:getClassName(t.innerClass,"button")||"",disabled:0===t.currentPage,tabIndex:"0"}),{default:function(){return[t.prevLabel||"Prev"]}}),vue.createVNode(Button,vue.mergeProps(babelHelperVueTransformOn({click:function(){return t.setPage(0)}}),{class:c,primary:u,onKeyPress:function(e){return handleA11yAction(e,(function(){return t.setPage(0)}))},tabIndex:"0"}),{default:function(){return[vue.createTextVNode("1")]}}),t.showEndPage&&t.currentPage>=Math.floor(t.pages/2)+!!(t.pages%2)&&2!==p("start")[1]?vue.createVNode("span",null,[vue.createTextVNode("...")]):null,(o=t.showEndPage,s=t.currentPage,a=t.totalPages,i=t.pages,o?s<=a-i+2||a<i?p("start")[0]:null:p("start")[0]),t.showEndPage&&t.pages>2&&t.currentPage<=t.totalPages-Math.ceil(.75*t.pages)&&p("start")[2]!==p("end")[1]-1?vue.createVNode("span",null,[vue.createTextVNode("...")]):null,t.showEndPage&&t.totalPages>=t.pages&&p("end")[0],vue.createVNode(Button,vue.mergeProps(babelHelperVueTransformOn({click:r,"key-press":function(e){return handleA11yAction(e,r)}}),{class:getClassName(t.innerClass,"button")||"",disabled:t.currentPage>=t.totalPages-1,tabIndex:"0"}),{default:function(){return[t.nextLabel||"Next"]}})])}},_templateObject$1;Pagination.install=function(e){e.component(Pagination.name,Pagination)};var PoweredByImage=styled("img")(_templateObject$1||(_templateObject$1=_taggedTemplateLiteralLoose(["\n\twidth: 110px;\n"]))),PoweredBy=function(){return vue.createVNode("a",{href:"https://appbase.io/",target:"_blank",rel:"noopener noreferrer"},[vue.createVNode(PoweredByImage,{src:"https://cdn.jsdelivr.net/gh/appbaseio/cdn@d2ec210045e59104ee5485841fa17b23fc83f097/appbase/logos/rbc-logo.svg"},null)])},hasOwn=Object.prototype.hasOwnProperty;function is(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function shallowEqual(e,t){if(is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o+=1)if(!hasOwn.call(t,n[o])||!is(e[n[o]],t[n[o]]))return!1;return!0}var defaultMapState=function(){return{}},defaultMapDispatch={},normalizeMapState=function(e){if("function"==typeof e)return e;if(e===Object(e))return function(t,n){return Object.keys(e).filter((function(t){return"function"==typeof e[t]})).reduce((function(r,o){var s;return _extends({},r,((s={})[o]=e[o](t,n),s))}),{})};throw new Error("[revux] - mapState provided to connect is invalid")},connector=function(e,t){return void 0===e&&(e=defaultMapState),void 0===t&&(t=defaultMapDispatch),function(n){var r=normalizeMapState(e);return{name:"connect-"+n.name,mixins:[n],inject:["$$store"],data:function(){var e=_extends({},r(this.$$store.getState(),this.$props||{}),bindActionCreators(t,this.$$store.dispatch));return Object.keys(e).reduce((function(t,n){var r;return _extends({},t,((r={})[n]=e[n],r))}),{})},created:function(){var e=this;this._unsubscribe=function(e,t,n){var r=t(e.getState());return e.subscribe((function(){var o=t(e.getState());if(!shallowEqual(r,o)){var s=r;n(r=o,s)}}))}(this.$$store,(function(t){return r(t,e.$props||{})}),(function(t){Object.keys(t).forEach((function(n){e[n]=t[n]}))}))},beforeUnmount:function(){this._unsubscribe()}}}},defaultQueryUtil=lib_8.updateDefaultQuery,customQueryUtil=lib_8.updateCustomQuery,isEqual=lib_8.isEqual,connect=function(){return connector.apply(void 0,arguments)},X_SEARCH_CLIENT="ReactiveSearch Vue",composeThemeObject=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n={};return"boolean"!=typeof t&&Object.keys(t).length&&(n=_extends({},t)),{typography:_extends({},e.typography,n.typography),colors:_extends({},e.colors,n.colors),component:_extends({},e.component,n.component)}},isFunction=function(e){return"function"==typeof e};function parseValueArray(e,t){var n;Array.isArray(e)?n=[].concat(e):n=Object.keys(e).map((function(t){return e[t]?t:null}));return n.includes(t)?n.filter((function(e){return e!==t})):[].concat(n,[t])}var getComponent=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=(t.$slots||t.$props).render;return n?n(e):null},hasCustomRenderer=function(e){void 0===e&&(e={});var t=(e.$slots||e.$props).render;return Boolean(t)},getValidPropsKeys=function(e){return void 0===e&&(e={}),Object.keys(e).filter((function(e){return constants_3$1.includes(e)}))},isEvent=function(e){return!!(e&&e.stopPropagation&&e.preventDefault)},updateDefaultQuery=function(e,t,n,r){defaultQueryUtil(e,_extends({},n,{setDefaultQuery:t}),r)},updateCustomQuery=function(e,t,n,r){customQueryUtil(e,_extends({},n,{setCustomQuery:t}),r)},isQueryIdentical=function(e,t,n,r){return"function"!=typeof e||"function"!=typeof t||isEqual(t(n,r),e(n,r))},getCamelCase=function(e){void 0===e&&(e="");var t=e.split("-").map((function(e,t){return t?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e})).join("");return["u-r-l-params"].includes(e)&&(t=t[0].toUpperCase()+t.substring(1)),t||""},isEmpty=function(e){return!(e&&e.length&&Object.keys(e).length)};function isNumeric(e){return/^-?\d+$/.test(e)}function isHotkeyCombination(e){return"string"==typeof e&&-1!==e.indexOf("+")}function getCharFromCharCode(e){var t=e,n=t-48*Math.floor(t/48);return String.fromCharCode(t>=96?n:t)}function parseFocusShortcuts(e){if(isEmpty(e))return[];var t=[];return e.forEach((function(e){if("string"==typeof e)if(isHotkeyCombination(e)){for(var n,r=e.split("+"),o=[],s=0;s<r.length;s+=1)isNumeric(r[s])?o.push(getCharFromCharCode(+r[s])):o.push(r[s]);n=o.join("+"),t.push(n)}else isNumeric(e)?t.push(getCharFromCharCode(+e)):t.push(e);else t.push(getCharFromCharCode(e))})),t}var MODIFIER_KEYS=["shift","ctrl","alt","control","option","cmd","command"];function extractModifierKeysFromFocusShortcuts(e){return e.filter((function(e){return MODIFIER_KEYS.includes(e)}))}function decodeHtml(e){return"string"!=typeof e?e:e.replace(/&#([0-9]{1,3});/gi,(function(e,t){var n=parseInt(t,10);return String.fromCharCode(n)}))}var addComponent=lib_5.addComponent,removeComponent=lib_5.removeComponent,watchComponent=lib_5.watchComponent,setQueryListener=lib_5.setQueryListener,setComponentProps=lib_5.setComponentProps,updateComponentProps=lib_5.updateComponentProps,pushToAndClause=lib_8.pushToAndClause,checkPropChange=lib_8.checkPropChange,checkSomePropChange=lib_8.checkSomePropChange,ComponentWrapper=function(e,t){return void 0===t&&(t={componentType:null,internalComponent:!1}),{name:"ComponentWrapper",$timestamp:null,props:{destroyOnUnmount:Q.bool.def(!0)},created:function(){var e=this,n=_extends({},this.$attrs),r={};Object.keys(n).forEach((function(e){r[getCamelCase(e)]=n[e]})),t.componentType===constants_1$1.AIAnswer&&(r.enableAI=!0),this.componentProps=r,this.componentId=this.componentProps.componentId,this.react=this.componentProps.react,this.$timestamp=(new Date).getTime();var o=[];this.$$store&&(o=this.$$store.getState().components);if(this.destroyOnUnmount||-1===o.indexOf(this.componentProps.componentId)){this.addComponent(this.componentId,this.$timestamp);this.setQueryListener(this.componentId,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.$emit.apply(e,["queryChange"].concat(n)),e.$emit.apply(e,["query-change"].concat(n))}),(function(t){e.$emit("error",t)})),this.setComponentProps(this.componentId,this.componentProps,t.componentType)}(t.internalComponent||this.componentProps.defaultQuery&&t.componentType===constants_1$1.reactiveComponent)&&(this.internalComponent=transform_11(this.componentId)),this.internalComponent&&(this.destroyOnUnmount||-1===o.indexOf(this.internalComponent))&&(this.addComponent(this.internalComponent,this.$timestamp),this.setComponentProps(this.internalComponent,this.componentProps,t.componentType)),this.internalComponent&&this.setReact(this.componentProps,!1)},mounted:function(){this.internalComponent&&this.setReact(this.componentProps,!0)},beforeDestroy:function(){if(this.destroyOnUnmount){var e={};if(this.$$store)e=this.$$store.getState().registeredComponentsTimestamps;e[this.componentId]===this.$timestamp&&(this.removeComponent(this.componentId),this.internalComponent&&this.removeComponent(this.internalComponent))}},watch:{$attrs:{deep:!0,handler:function(e){var n=this,r=getValidPropsKeys(e);checkSomePropChange(e,this.savedComponentProps,r,(function(){n.updateComponentProps(n.componentId,e,t.componentType),n.updateComponentProps(n.internalComponent,e,t.componentType)}))}},react:function(e,t){var n=this;checkPropChange(e,t,(function(){return n.setReact(n.componentProps)}))}},methods:{setReact:function(e,t){var n=e.react,r=e.executeInitialQuery;if(this.internalComponent)if(n){var o=pushToAndClause(n,this.internalComponent);this.watchComponent(e.componentId,o,r)}else this.watchComponent(e.componentId,{and:this.internalComponent},t||r);else this.watchComponent(e.componentId,n,t||r)}},render:function(){return vue.h(e,null,this.$slots)}}},mapStateToProps=function(e,t){return{savedComponentProps:e.props[t.componentId]}},mapDispatchToProps={addComponent:addComponent,removeComponent:removeComponent,setQueryListener:setQueryListener,watchComponent:watchComponent,setComponentProps:setComponentProps,updateComponentProps:updateComponentProps},ComponentWrapper$1=function(e,t){return void 0===t&&(t={}),connect(mapStateToProps,mapDispatchToProps)(ComponentWrapper(e,t))},deepValue=function(e,t){return t.split(".").reduce((function(e,t){return e?e[t]:null}),e)},PreferencesConsumer=function PreferencesConsumer(component){return{name:"PreferencesConsumer",inject:{$searchPreferences:{default:null}},render:function render(){var _this=this,userProps=Object.keys(this.$attrs).reduce((function(e,t){var n;return _extends({},e,((n={})[getCamelCase(t)]=_this.$attrs[t],n))}),{}),context=this.$searchPreferences;if(!userProps||!userProps.componentId)throw Error("ReactiveSearch: componentId is required");var componentId=userProps.componentId,preferencesPath=userProps.preferencesPath,preferences;context&&(preferences=deepValue(context,preferencesPath||["componentSettings",componentId].join(".")));var componentProps=userProps;return preferences&&(componentProps=preferences.rsConfig?_extends({},preferences.rsConfig,componentProps):_extends({},preferences,componentProps),void 0!==preferences.enabled&&!preferences.enabled)?null:(Object.keys(componentProps).forEach((function(p){"string"==typeof componentProps[p]&&["defaultQuery","customQuery","setOption"].includes(p)&&(componentProps[p]=eval(componentProps[p]))})),vue.h(component,componentProps,this.$slots))}}},_templateObject$2,Title=styled("h2")(_templateObject$2||(_templateObject$2=_taggedTemplateLiteralLoose(["\n\tmargin: 0 0 8px;\n\tfont-size: 1rem;\n\tcolor: ",";\n"])),(function(e){return e.theme.colors.titleColor})),_templateObject$3,_templateObject2$1,_templateObject3$1,container=css(_templateObject$3||(_templateObject$3=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tmargin: 0;\n\tborder-radius: 0.25rem;\n\toverflow: hidden;\n"]))),smallImage="\n\twidth: 100px;\n\theight: 100px;\n",Image=styled("div")(_templateObject2$1||(_templateObject2$1=_taggedTemplateLiteralLoose(["\n\twidth: 160px;\n\theight: 160px;\n\t",";\n\tmargin: 0;\n\tbackground-size: contain;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n\tbackground-image: ",";\n"])),(function(e){return e.small?smallImage:null}),(function(e){return"url("+e.src+")"})),ListItem=styled("a")(_templateObject3$1||(_templateObject3$1=_taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\theight: auto;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 0;\n\tbackground-color: ",";\n\tdisplay: flex;\n\tflex-direction: row;\n\tmargin: 0;\n\tpadding: 10px;\n\tborder-bottom: 1px solid ",";\n\tcolor: ",";\n\t","; all 0.3s ease;\n\n\t&:hover, &:focus {\n\t\tbackground-color: ",";\n\t}\n\n\t&:last-child {\n\t\tborder: 0;\n\t}\n\n\th2 {\n\t\twidth: 100%;\n\t\tline-height: 1.2rem;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\tmargin: 0;\n\t\tpadding: 0 0 8px;\n\t}\n\n\tp {\n\t\tmargin: 0;\n\t}\n\n\tarticle {\n\t\twidth: ",";\n\t\tpadding-left: ",";\n\t\tfont-size: 0.9rem;\n\t}\n\n\t&:hover, &:focus {\n\t\tbox-shadow: 0 0 0 0 rgba(0,0,0,0.10);\n\t}\n\n\t@media (max-width: 420px) {\n\t\tmin-width: 0;\n\t\tmargin: 0;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tborder: 1px solid #eee;\n\n\t\t&:hover, &:focus {\n\t\t\tbox-shadow: 0;\n\t\t}\n\t}\n\n\t","\n"])),(function(e){var t=e.theme;return t.colors.backgroundColor?curriedLighten(.1,t.colors.backgroundColor):"#fff"}),(function(e){var t=e.theme;return t.colors.backgroundColor?curriedLighten(.3,t.colors.backgroundColor):curriedLighten(.68,t.colors.textColor)}),(function(e){return e.theme.colors.textColor}),(function(e){return e.href?"cursor: pointer":null}),(function(e){var t=e.theme;return t.colors.backgroundColor?curriedLighten(.2,t.colors.backgroundColor):"#fdfefd"}),(function(e){return e.image?e.small?"calc(100% - 100px)":"calc(100% - 160px)":"100%"}),(function(e){return e.image?"10px":0}),(function(e){return e.isTreeListItem?"border-bottom: none; width:max-content; cursor:pointer; padding: 5px 12px;":""})),ResultListWrapper={name:"ResultListWrapper",functional:!0,render:function(e){return vue.createVNode("div",vue.mergeProps({className:container},e.$props),[e.$slots.default()])}},_templateObject$4,_templateObject2$2,_templateObject3$2;ResultListWrapper.install=function(e){e.component(ResultListWrapper.name,ResultListWrapper)};var container$1=css(_templateObject$4||(_templateObject$4=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-direction: row;\n\tjustify-content: center;\n\tflex-wrap: wrap;\n\tmargin: 0 -8px;\n\n\t@media (max-width: 420px) {\n\t\tmargin: 0;\n\t}\n"]))),Image$1=styled("div")(_templateObject2$2||(_templateObject2$2=_taggedTemplateLiteralLoose(["\n\twidth: calc(100% + 20px);\n\theight: 220px;\n\tmargin: -10px -10px 0;\n\tbackground-color: ",";\n\tbackground-size: contain;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n"])),(function(e){return e.theme.colors.backgroundColor||"#fcfcfc"})),Card=styled("a")(_templateObject3$2||(_templateObject3$2=_taggedTemplateLiteralLoose(["\n\twidth: auto;\n\tflex-grow: 1;\n\toutline: none;\n\ttext-decoration: none;\n\tmin-width: 240px;\n\tmax-width: 250px;\n\tborder-radius: 0.25rem;\n\tbackground-color: ",";\n\theight: 300px;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\tmargin: 8px;\n\tpadding: 10px;\n\toverflow: hidden;\n\tbox-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);\n\tcolor: ",";\n\t",";\n\ttransition: all 0.3s ease;\n\n\th2 {\n\t\twidth: 100%;\n\t\tfont-size: 0.9rem;\n\t\tline-height: 1.2rem;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\tmargin: 0;\n\t\tpadding: 10px 0 8px;\n\t}\n\n\tp {\n\t\tmargin: 0;\n\t}\n\n\tarticle {\n\t\tflex-grow: 1;\n\t\tfont-size: 0.9rem;\n\t}\n\n\t&:hover,\n\t&:focus {\n\t\tbox-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.3);\n\t}\n\n\t@media (max-width: 420px) {\n\t\twidth: 50%;\n\t\tmin-width: 0;\n\t\theight: 210px;\n\t\tmargin: 0;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tborder: 1px solid #eee;\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tbox-shadow: 0;\n\t\t}\n\t}\n"])),(function(e){var t=e.theme;return t.colors.backgroundColor?curriedLighten(.1,t.colors.backgroundColor):"#fff"}),(function(e){return e.theme.colors.textColor}),(function(e){return e.href?"cursor: pointer":null})),ResultCardsWrapper={name:"ResultCardsWrapper",functional:!0,render:function(e){return vue.createVNode("div",vue.mergeProps({className:container$1},e.$props),[e.$slots.default()])}},_templateObject$5;ResultCardsWrapper.install=function(e){e.component(ResultCardsWrapper.name,ResultCardsWrapper)};var leftLabel="\n\tflex-direction: row;\n\talign-items: center;\n",rightLabel="\n\tflex-direction: row-reverse;\n\talign-items: center;\n",topLabel="\n\tflex-direction: column;\n",bottomLabel="\n\tflex-direction: column-reverse;\n",border=function(e){var t=e.theme.colors;return"\n\tborder: 1px solid "+((void 0===t?{}:t).borderColor||"#ccc")+";\n"},Flex=styled("div")(_templateObject$5||(_templateObject$5=_taggedTemplateLiteralLoose(["\n\tdisplay: ",";\n\t",";\n\t",";\n\t",";\n\t",";\n\t",";\n\n\t",";\n\t",";\n\t",";\n\n\t",";\n\t",";\n\t",";\n\n\tsvg.cancel-icon {\n\t\tcursor: pointer;\n\t\tfill: ",";\n\t\tflex-basis: 30px;\n\n\t\t&:hover {\n\t\t\tfill: ",";\n\t\t}\n\t}\n"])),(function(e){return e.inline?"inline-flex":"flex"}),(function(e){return("left"===e.labelPosition||"right"===e.iconPosition)&&leftLabel}),(function(e){return("right"===e.labelPosition||"left"===e.iconPosition)&&rightLabel}),(function(e){return"top"===e.labelPosition&&topLabel}),(function(e){return"bottom"===e.labelPosition&&bottomLabel}),(function(e){return e.showBorder&&border}),(function(e){return e.justifyContent&&"\n\t\t\tjustify-content: "+e.justifyContent+";\n\t\t"}),(function(e){return e.alignItems&&"\n\t\t\talign-items: "+e.alignItems+";\n\t\t"}),(function(e){return e.gap&&"\n\t\t\tgap: "+e.gap+";\n\t\t"}),(function(e){return e.flex&&"\n\t\t\tflex: "+e.flex+";\n\t\t"}),(function(e){return e.direction&&"\n\t\t\tflex-direction: "+e.direction+";\n\t\t"}),(function(e){return e.basis&&"\n\t\t\tflex-basis: "+e.basis+";\n\t\t"}),(function(e){var t=e.theme.colors,n=void 0===t?{}:t;return n.borderColor||curriedLighten(.3,n.textColor||"#fff")}),(function(e){var t=e.theme;return t.colors?t.colors.textColor:""})),_templateObject$6,_templateObject2$3,resultStats=css(_templateObject$6||(_templateObject$6=_taggedTemplateLiteralLoose(["\n\tflex-grow: 1;\n\tfont-size: 0.82rem;\n"]))),sortOptions=css(_templateObject2$3||(_templateObject2$3=_taggedTemplateLiteralLoose(["\n\tcolor: #424242;\n\theight: 32px;\n\tfont-size: 0.82rem;\n\tpadding: 0 25px 0 10px;\n\tbackground: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iNC45NSIgaGVpZ2h0PSIxMCIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxLjQxIDQuNjcgMi40OCAzLjE4IDMuNTQgNC42NyAxLjQxIDQuNjciLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMy41NCA1LjMzIDIuNDggNi44MiAxLjQxIDUuMzMgMy41NCA1LjMzIi8+PC9zdmc+)\n\t\tno-repeat 95% 50%;\n\tbackground-color: #fff;\n\t-moz-appearance: none;\n\t-webkit-appearance: none;\n\tappearance: none;\n\t-webkit-border-radius: 0;\n\tborder-radius: 0;\n\tborder: 0;\n\toutline: 1px solid #ddd;\n\toutline-offset: -1px;\n"]))),recordImpressions=lib_5.recordImpressions,isEqual$1=lib_8.isEqual,debounce=function(e,t){clearTimeout(e._tId),e._tId=setTimeout((function(){e()}),t)},ImpressionTracker={name:"ImpressionTracker",inject:["$$store"],props:{hits:types.hits},created:function(){this.currentHits=[],this.trackedIds={},this.waitingToBeTracked={}},mounted:function(){this.setCurrentHits(this.hits),window&&window.addEventListener("scroll",this.tracker)},destroy:function(){this.clearTrackerInterval()},watch:{hits:function(e,t){if(e&&e!==t){var n=t.map((function(e){return e._id})),r=e.map((function(e){return e._id}));isEqual$1(r,n)||this.setCurrentHits(e)}}},methods:{inViewPort:function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},setCurrentHits:function(e){this.currentHits=e,this.trackedIds={},e&&e.length&&(this.tracker(),this.setTrackerInterval())},recordImpression:function(){var e=this;if(Object.keys(this.waitingToBeTracked).length){var t=_extends({},this.waitingToBeTracked);Object.keys(t).forEach((function(n){t[n]&&t[n].length&&(e.trackImpressions(n,t[n]),delete e.waitingToBeTracked[n])}))}},addToWaitingList:function(e){var t=this.getQueryId();if(e&&t){var n={id:e._id,index:e._index};this.waitingToBeTracked[t]?this.waitingToBeTracked[t].push(n):this.waitingToBeTracked[t]=[n]}},tracker:function(){var e=this;this.getHitIds().length?(window&&document&&this.getHitIds().forEach((function(t){var n=document.getElementById(t);if(n&&e.inViewPort(n)){var r=e.currentHits.find((function(e){return e._id===t}));e.trackedIds[t]=!0,e.addToWaitingList(r)}})),debounce(this.recordImpression,300)):this.clearTrackerInterval()},setTrackerInterval:function(){this.intervalID=setInterval(this.tracker,1e3)},clearTrackerInterval:function(){this.intervalID&&(clearInterval(this.intervalID),this.intervalID=null)},getQueryId:function(){var e=this.$$store?this.$$store.getState():null;return e?e.analytics.searchId:null},getHitIds:function(){var e=this;return this.currentHits.map((function(e){return e._id})).filter((function(t){return!e.trackedIds[t]}))}},render:function(){return this.$slots.default()}},mapDispatchToProps$1={trackImpressions:recordImpressions},ImpressionTracker$1=connect((function(){return null}),mapDispatchToProps$1)(ImpressionTracker);function _isSlot$1(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var setQueryOptions=lib_5.setQueryOptions,updateQuery=lib_5.updateQuery,loadMore=lib_5.loadMore,setValue=lib_5.setValue,updateComponentProps$1=lib_5.updateComponentProps,setDefaultQuery=lib_5.setDefaultQuery,recordResultClick=lib_5.recordResultClick,isEqual$2=lib_8.isEqual,getQueryOptions=lib_8.getQueryOptions,getClassName$1=lib_8.getClassName,parseHits=lib_8.parseHits,getCompositeAggsQuery=lib_8.getCompositeAggsQuery,getResultStats=lib_8.getResultStats,extractQueryFromCustomQuery=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery=lib_8.getOptionsForCustomQuery,ReactiveList={name:"ReactiveList",components:{ResultListWrapper:ResultListWrapper,ResultCardsWrapper:ResultCardsWrapper},data:function(){var e=0,t=this.defaultPage||-1;return t>=0?e=t:this.currentPage&&(e=Math.max(this.currentPage-1,0)),this.__state={from:e*this.size,currentPageState:e},this.__state},created:function(){var e=this;this.pagination&&this.aggregationField&&console.warn("Pagination is not supported when aggregationField is present. The list will be rendered with infinite scroll");var t=this.defaultPage||-1;t>=0&&(this.currentPageState=t,this.from=this.currentPageState*this.$props.size),this.internalComponent=this.$props.componentId+"__internal",this.sortOptionIndex=0,this.defaultSortOption&&this.sortOptions&&Array.isArray(this.sortOptions)&&(this.sortOptionIndex=this.sortOptions.findIndex((function(t){return t.label===e.defaultSortOption}))),this.urlSortOption&&(this.sortOptionIndex=this.$props.sortOptions.findIndex((function(t){return t.label===e.urlSortOption}))||0),this.updateComponentProps(this.componentId,{from:this.from},constants_1$1.reactiveList),this.updateComponentProps(this.internalComponent,{from:this.from},constants_1$1.reactiveList)},props:{currentPage:Q.number,includeFields:types.includeFields,className:types.string,componentId:types.stringRequired,compoundClause:types.compoundClause,dataField:types.stringRequired,aggregationField:types.string,aggregationSize:Q.number,defaultQuery:types.func,defaultSortOption:types.string,excludeFields:types.excludeFields,innerClass:types.style,listClass:Q.string.def(""),loader:types.title,render:types.func,renderItem:types.func,renderNoResults:Q.any.def("No Results found."),renderError:types.title,renderResultStats:types.func,pages:Q.number.def(5),pagination:Q.bool.def(!1),infiniteScroll:Q.bool.def(!0),paginationAt:Q.oneOf(["top","bottom","both"]).def("bottom"),react:types.react,scrollOnChange:Q.bool.def(!0),showResultStats:Q.bool.def(!0),showEndPage:Q.bool.def(!1),size:Q.number.def(10),sortBy:types.sortBy,sortOptions:types.sortOptions,URLParams:Q.bool.def(!1),prevLabel:types.string,nextLabel:types.string,distinctField:types.string,distinctFieldConfig:types.props,index:Q.string,endpoint:types.endpointConfig},computed:{shouldRenderPagination:function(){return this.pagination&&!this.aggregationField},totalPages:function(){return Math.ceil(this.total/this.$props.size)||0},hasPageChangeListener:function(){return this.$attrs&&this.$attrs.pageChange},hasResultStatsListener:function(){return this.$attrs&&this.$attrs.resultStats},stats:function(){return _extends({},getResultStats(this),{currentPage:this.currentPageState,displayedResults:this.data.length})},hasCustomRender:function(){return hasCustomRenderer(this)},showInfiniteScroll:function(){return this.infiniteScroll&&!this.shouldRenderPagination},data:function(){var e=parseHits(this.hits)||[],t=parseHits(this.promotedResults)||[],n=e;if(t.length){var r=t.map((function(e){return e._id})).filter(Boolean);r&&(n=n.filter((function(e){return!r.includes(e._id)}))),n=[].concat(t,n)}return helper_18(n)}},watch:{sortOptions:function(e,t){isEqual$2(t,e)||this.updateQueryOptions(this.$props)},sortBy:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},size:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},dataField:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},includeFields:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},excludeFields:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},defaultQuery:function(e,t){if(!isQueryIdentical(e,t,null,this.$props)){var n=getQueryOptions(this.$props);n.from=0,this.$defaultQuery=e(null,this.$props);var r=extractQueryFromCustomQuery(this.$defaultQuery),o=getOptionsForCustomQuery(this.$defaultQuery);o&&(n=_extends({},n,o)),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props),this.setQueryOptions(this.$props.componentId,_extends({},n,this.getAggsQuery()),!r),this.updateQuery({componentId:this.internalComponent,query:r},!0),this.currentPageState=0,this.from=0}},promotedResults:function(e,t){isEqual$2(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){isEqual$2(e,t)||this.$emit("data",this.getData())},time:function(e,t){isEqual$2(e,t)||this.$emit("data",this.getData())},hits:function(e,t){this.$emit("data",this.getData()),this.shouldRenderPagination?this.isLoading&&(t||e)&&(this.hasPageChangeListener?(this.$emit("pageChange",this.currentPageState+1,this.totalPages),this.$emit("page-change",this.currentPageState+1,this.totalPages)):this.scrollOnChange&&window.scrollTo(0,0)):t&&e&&(t.length===e.length&&e.length!==this.$props.total||e.length<t.length&&(this.scrollOnChange&&window.scrollTo(0,0),this.from=0))},rawData:function(e,t){isEqual$2(e,t)||this.$emit("data",this.getData())},currentPage:function(e,t){t!==e&&e>0&&e<=this.totalPages&&this.setPage(e-1)},infiniteScroll:function(e,t){e!==t&&(e&&!this.pagination?window.addEventListener("scroll",this.scrollHandler):window.removeEventListener("scroll",this.scrollHandler))},pagination:function(e,t){e!==t&&(!e&&this.infiniteScroll?window.addEventListener("scroll",this.scrollHandler):window.removeEventListener("scroll",this.scrollHandler))},defaultPage:function(e,t){this.currentPageState!==e&&t!==e&&this.setPage(e>=0?e:0)}},mounted:function(){this.defaultPage<0&&this.currentPage>0&&this.setPageURL(this.$props.componentId,this.currentPage,this.$props.componentId,!1,this.URLParams);var e=getQueryOptions(this.$props);if(e.from=this.$data.from,this.sortOptions&&this.sortOptions[this.sortOptionIndex]){var t,n=this.sortOptions[this.sortOptionIndex].dataField,r=this.sortOptions[this.sortOptionIndex].sortBy;e.sort=[(t={},t[n]={order:r},t)],this.updateComponentProps(this.componentId,{dataField:n,sortBy:r},constants_1$1.reactiveList)}else if(this.$props.sortBy){var o;e.sort=[(o={},o[this.$props.dataField]={order:this.$props.sortBy},o)]}this.$defaultQuery=null,this.$props.defaultQuery&&(this.$defaultQuery=this.$props.defaultQuery(),e=_extends({},e,getOptionsForCustomQuery(this.$defaultQuery)),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props));var s=extractQueryFromCustomQuery(this.$defaultQuery);this.setQueryOptions(this.$props.componentId,_extends({},e,this.getAggsQuery()),!1),this.$defaultQuery?this.updateQuery({componentId:this.internalComponent,query:s},!1):this.updateQuery({componentId:this.internalComponent,query:null},!1),this.showInfiniteScroll&&window.addEventListener("scroll",this.scrollHandler)},beforeUnmount:function(){this.showInfiniteScroll&&window.removeEventListener("scroll",this.scrollHandler)},render:function(){var e=this,t=this.$data.hits,n=parseHits(t)||[];return vue.createVNode("div",{style:this.$props.style,class:this.$props.className},[this.isLoading&&this.shouldRenderPagination&&this.showInfiniteScroll&&(this.$slots.loader||this.$props.loader),this.renderErrorComponent(),vue.createVNode(Flex,{labelPosition:this.sortOptions?"right":"left",class:getClassName$1(this.$props.innerClass,"resultsInfo")},{default:function(){return[e.sortOptions?e.renderSortOptions():null,e.$props.showResultStats&&n.length?e.renderStats():null]}}),!this.isLoading&&t&&0===t.length?this.renderNoResult():null,!this.shouldRenderPagination||"top"!==this.$props.paginationAt&&"both"!==this.$props.paginationAt?null:vue.createVNode(Pagination,{pages:this.$props.pages,totalPages:this.totalPages,currentPage:this.currentPageState,setPage:this.setPage,innerClass:this.$props.innerClass,prevLabel:this.$props.prevLabel,nextLabel:this.$props.nextLabel},null),this.renderResults(),this.isLoading&&!this.shouldRenderPagination?this.$slots.loader||this.$props.loader||vue.createVNode("div",{style:{textAlign:"center",margin:"20px 0",color:"#666"}},[vue.createTextVNode("Loading...")]):null,!this.shouldRenderPagination||"bottom"!==this.$props.paginationAt&&"both"!==this.$props.paginationAt?null:vue.createVNode(Pagination,{pages:this.$props.pages,totalPages:Math.ceil(this.$data.total/this.$props.size),currentPage:this.currentPageState,setPage:this.setPage,showEndPage:this.$props.showEndPage,innerClass:this.$props.innerClass,prevLabel:this.$props.prevLabel,nextLabel:this.$props.nextLabel},null),this.url.endsWith("appbase.io")&&n.length?vue.createVNode(Flex,{direction:"row-reverse",class:getClassName$1(this.$props.innerClass,"poweredBy")},{default:function(){return[vue.createVNode(PoweredBy,null,null)]}}):null])},methods:{renderErrorComponent:function(){var e=this.$slots.renderError||this.$props.renderError;return e&&this.error&&!this.isLoading?isFunction(e)?e(this.error):e:null},renderResults:function(){var e=this,t=this.$props.size,n=this.$slots.renderItem||this.$props.renderItem,r=this.hasCustomRender?this.getComponent():vue.createVNode("div",{class:this.$props.listClass+" "+getClassName$1(this.$props.innerClass,"list")},[this.data.map((function(r,o){return n({item:r,count:e.currentPageState*t+o+1,triggerClickAnalytics:function(){return e.triggerClickAnalytics(e.currentPageState*t+o)}})}))]);return this.analytics?vue.createVNode(ImpressionTracker$1,{hits:this.data},_isSlot$1(r)?r:{default:function(){return[r]}}):r},updateQueryOptions:function(e){var t=getQueryOptions(e);if(t.from=this.$data.from,e.sortOptions&&Array.isArray(e.sortOptions)){var n,r=e.defaultSortOption?e.sortOptions.findIndex((function(t){return t.label===e.defaultSortOption})):0;if(e.sortOptions[r])t.sort=[(n={},n[e.sortOptions[r].dataField]={order:e.sortOptions[r].sortBy},n)]}else if(e.sortBy){var o;t.sort=[(o={},o[e.dataField]={order:e.sortBy},o)]}this.setQueryOptions(this.$props.componentId,_extends({},t,this.getAggsQuery()),!0)},getAggsQuery:function(){var e=this.$props,t=e.size,n=e.aggregationField,r=this.$data.afterKey,o={size:t};return n&&(o.aggs=getCompositeAggsQuery({props:this.$props,after:r||null,showTopHits:!0}).aggs),o},scrollHandler:function(){!this.isLoading&&window.innerHeight+window.pageYOffset+300>=document.body.scrollHeight&&this.loadMore()},loadMore:function(){if((!this.aggregationField||this.afterKey)&&this.hits&&!this.shouldRenderPagination&&this.total>this.hits.length){var e=this.$data.from+this.$props.size;if(this.hits.length<e)return;var t=_extends({},getQueryOptions(this.$props),this.getAggsQuery());this.from=e,updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props),this.loadMoreAction(this.$props.componentId,_extends({},t,{from:e}),!0,!!this.aggregationField)}},setPage:function(e){if(e!==this.currentPageState){this.$emit("pageClick",e+1),this.$emit("page-click",e+1);var t=this.$props.size*e,n=getQueryOptions(this.$props);n.from=this.$data.from,this.from=t,this.currentPageState=e,this.loadMoreAction(this.$props.componentId,_extends({},n,{from:t}),!1),this.setPageURL(this.$props.componentId,e+1,this.$props.componentId,!1,this.URLParams)}},renderStats:function(){var e=this.$slots.renderResultStats||this.$props.renderResultStats;return e&&this.$data.total?e(this.stats):this.stats.numberOfResults?vue.createVNode("p",{class:resultStats+" "+getClassName$1(this.$props.innerClass,"resultStats")},[this.stats.numberOfResults,vue.createTextVNode(" results found in "),this.stats.time||0,vue.createTextVNode("ms")]):null},renderNoResult:function(){var e=this.$slots.renderNoResults||this.$props.renderNoResults;return this.$slots.renderNoResults?isFunction(e)?e():e:vue.createVNode("p",{class:getClassName$1(this.$props.innerClass,"noResults")||null},[isFunction(e)?e():e])},handleSortChange:function(e){var t=e.target.value;if(this.sortOptions&&this.sortOptions[t]){var n,r=getQueryOptions(this.$props);r.from=0;var o=this.sortOptions[t].dataField,s=this.sortOptions[t].sortBy;r.sort=[(n={},n[o]={order:s},n)],this.sortOptionIndex=t,this.updateComponentProps(this.componentId,{dataField:o,sortBy:s},constants_1$1.reactiveList),this.setQueryOptions(this.$props.componentId,r,!0),this.setPage(0),this.currentPageState=0,this.from=0;var a=this.$props.sortOptions[this.sortOptionIndex]?this.$props.sortOptions[this.sortOptionIndex].label:null;this.setPageURL(this.$props.componentId+"sortOption",a,this.$props.componentId+"sortOption",!1,this.$props.URLParams)}},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.getData().data.find((function(t){return t._click_id===e}));r&&r._id&&(n=r._id)}this.recordResultClick(e,n)},renderSortOptions:function(){return vue.createVNode("select",vue.mergeProps(babelHelperVueTransformOn({change:this.handleSortChange}),{class:sortOptions+" "+getClassName$1(this.$props.innerClass,"sortOptions"),name:"sort-options","aria-label":"Sort options",value:this.sortOptionIndex}),[this.sortOptions.map((function(e,t){return vue.createVNode("option",{key:e.label,value:t},[e.label])}))])},withClickIds:function(e){var t=this.getAllData().base;return e.map((function(e,n){return _extends({},e,{_click_id:t+n})}))},getAllData:function(){var e=this.size,t=this.promotedResults,n=this.aggregationData,r=this.customData,o=this.currentPage,s=this.hits,a=o*e;return{results:parseHits(s)||[],customData:r||{},promotedResults:parseHits(t)||[],aggregationData:n,loadMore:this.loadMore,base:a,triggerClickAnalytics:this.triggerClickAnalytics}},getData:function(){var e=this.getAllData(),t=e.promotedResults,n=e.aggregationData,r=e.customData;return{data:this.data,aggregationData:this.withClickIds(n||[]),promotedData:this.withClickIds(t||[]),rawData:this.rawData,resultStats:this.stats,customData:r}},getComponent:function(){var e=_extends({error:this.error,loading:this.isLoading||!1,loadMore:this.loadMore,triggerClickAnalytics:this.triggerClickAnalytics,setPage:this.setPage},this.getData());return getComponent(e,this)}}},mapStateToProps$1=function(e,t){return{defaultPage:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value-1,urlSortOption:e.selectedValues[t.componentId+"sortOption"]&&e.selectedValues[t.componentId+"sortOption"].value,hits:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId],promotedResults:e.promotedResults[t.componentId],customData:e.customData[t.componentId],time:e.hits[t.componentId]&&e.hits[t.componentId].time,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,analytics:e.config&&e.config.analytics,url:e.config.url,error:e.error[t.componentId],afterKey:e.aggregations[t.componentId]&&e.aggregations[t.componentId][t.aggregationField]&&e.aggregations[t.componentId][t.aggregationField].after_key,componentProps:e.props[t.componentId],isLoading:e.isLoading[t.componentId]}},mapDispatchtoProps={loadMoreAction:loadMore,setPageURL:setValue,setQueryOptions:setQueryOptions,updateQuery:updateQuery,updateComponentProps:updateComponentProps$1,setDefaultQuery:setDefaultQuery,recordResultClick:recordResultClick};ReactiveList.generateQueryOptions=function(e){var t=getQueryOptions(e),n=e.size,r=e.dataField,o=e.defaultSortOption,s=e.sortOptions,a=e.currentPage,i=e.sortBy;t.from=a?(a-1)*(n||10):0,t.size=n||10;if(s)t.sort=[function(){var e;if(o){var t,n=s.find((function(e){return e.label===o}));if(n)return(t={})[n.dataField]={order:n.sortBy},t}return(e={})[s[0].dataField]={order:s[0].sortBy},e}()];else if(i){var l;t.sort=[(l={},l[r]={order:i},l)]}return t},ReactiveList.hasInternalComponent=function(){return!0};var RLConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$1,mapDispatchtoProps)(ReactiveList),{componentType:constants_1$1.reactiveList,internalComponent:ReactiveList.hasInternalComponent()}));function URL$1(e){var t=RegExp("^(([^:/?#]*)?://)?(((.*)?@)?([^/?#]*)?)([^?#]*)(\\?([^#]*))?(#(.*))?"),n=e.match(t);return{protocol:n[2],auth:n[5],host:n[6],path:n[7],query:n[9],hash:n[11]}}RLConnected.name=ReactiveList.name,RLConnected.generateQueryOptions=ReactiveList.generateQueryOptions,RLConnected.hasInternalComponent=ReactiveList.hasInternalComponent,RLConnected.install=function(e){e.component(RLConnected.name,RLConnected),e.component(ResultListWrapper.name,ResultListWrapper),e.component(ResultCardsWrapper.name,ResultCardsWrapper)},RLConnected.componentType=constants_1$1.reactiveList;var urlParserLite=URL$1;function hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var decode=function(e,t,n,r){t=t||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var s=/\+/g;e=e.split(t);var a=1e3;r&&"number"==typeof r.maxKeys&&(a=r.maxKeys);var i=e.length;a>0&&i>a&&(i=a);for(var l=0;l<i;++l){var u,c,p,d,h=e[l].replace(s,"%20"),f=h.indexOf(n);f>=0?(u=h.substr(0,f),c=h.substr(f+1)):(u=h,c=""),p=decodeURIComponent(u),d=decodeURIComponent(c),hasOwnProperty(o,p)?Array.isArray(o[p])?o[p].push(d):o[p]=[o[p],d]:o[p]=d}return o},stringifyPrimitive=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},encode=function(e,t,n,r){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(r){var o=encodeURIComponent(stringifyPrimitive(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(stringifyPrimitive(e))})).join(t):o+encodeURIComponent(stringifyPrimitive(e[r]))})).filter(Boolean).join(t):r?encodeURIComponent(stringifyPrimitive(r))+n+encodeURIComponent(stringifyPrimitive(e)):""},querystring=createCommonjsModule((function(e,t){t.decode=t.parse=decode,t.encode=t.stringify=encode})),querystring_1=querystring.decode,querystring_2=querystring.parse,querystring_3=querystring.encode,querystring_4=querystring.stringify,browserPonyfill=createCommonjsModule((function(e,t){var n="undefined"!=typeof self?self:commonjsGlobal,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in e,a="ArrayBuffer"in e;if(a)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function m(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=f(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=u(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},d.prototype.delete=function(e){delete this.map[u(e)]},d.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},d.prototype.set=function(e,t){this.map[u(e)]=c(t)},d.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},r&&(d.prototype[Symbol.iterator]=d.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n,r,o=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),v.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function $(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call($.prototype),$.prototype.clone=function(){return new $(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},$.error=function(){var e=new $(null,{status:0,statusText:""});return e.type="error",e};var C=[301,302,303,307,308];$.redirect=function(e,t){if(-1===C.indexOf(t))throw new RangeError("Invalid status code");return new $(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,n){return new Promise((function(r,s){var a=new b(e,n);if(a.signal&&a.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var i=new XMLHttpRequest;function l(){i.abort()}i.onload=function(){var e,t,n={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;r(new $(o,n))},i.onerror=function(){s(new TypeError("Network request failed"))},i.ontimeout=function(){s(new TypeError("Network request failed"))},i.onabort=function(){s(new t.DOMException("Aborted","AbortError"))},i.open(a.method,a.url,!0),"include"===a.credentials?i.withCredentials=!0:"omit"===a.credentials&&(i.withCredentials=!1),"responseType"in i&&o&&(i.responseType="blob"),a.headers.forEach((function(e,t){i.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",l),i.onreadystatechange=function(){4===i.readyState&&a.signal.removeEventListener("abort",l)}),i.send(void 0===a._bodyInit?null:a._bodyInit)}))}S.polyfill=!0,e.fetch||(e.fetch=S,e.Headers=d,e.Request=b,e.Response=$),t.Headers=d,t.Request=b,t.Response=$,t.fetch=S,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t})),fetch$1=unwrapExports(browserPonyfill),browserPonyfill_1=browserPonyfill.fetch,browserPonyfill_2=browserPonyfill.Headers,browserPonyfill_3=browserPonyfill.Request,browserPonyfill_4=browserPonyfill.Response,_typeof$1="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};function contains(e,t){return-1!==e.indexOf(t)}function isAppbase(e){return contains(e,"scalr.api.appbase.io")}function btoa$1(){for(var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r=t,o="",s=0,a=0,i=n;r.charAt(0|a)||(i="=",a%1);o+=i.charAt(63&s>>8-a%1*8)){if((e=r.charCodeAt(a+=3/4))>255)throw new Error('"btoa" failed: The string to be encoded contains characters outside of the Latin1 range.');s=s<<8|e}return o}function validateRSQuery(e){if(e&&"[object Array]"===Object.prototype.toString.call(e)){for(var t=0;t<e.length;t+=1){var n=e[t];if(!n)return new Error("query object can not have an empty value");if(!n.id)return new Error("'id' field must be present in query object")}return!0}return new Error("invalid query value, 'query' value must be an array")}function validate(e,t){var n=[],r={object:null,string:"",number:0};Object.keys(t).forEach((function(o){var s=t[o].split("|").find((function(t){return _typeof$1(e[o])===t}));s&&e[o]!==r[s]||n.push(o)}));for(var o="",s=0;s<n.length;s+=1)o+=n[s]+", ";return!(n.length>0)||new Error("fields missing: "+o)}function removeUndefined(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e||0!==Object.keys(e).length||e.constructor!==Object?JSON.parse(JSON.stringify(e)):null}function encodeHeaders(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={};return t?Object.keys(e).forEach((function(t){n[t]=encodeURI(e[t])})):n=e,n}function getMongoRequest(e,t){var n={};return e&&(n.index=e),t&&(t.db&&(n.db=t.db),t.collection&&(n.collection=t.collection)),n}function getTelemetryHeaders(e,t){var n={};return t?(Object.assign(n,{"X-Search-Client":"Appbase JS"}),!1===e&&Object.assign(n,{"X-Enable-Telemetry":e}),n):n}var backendAlias={MONGODB:"mongodb",ELASTICSEARCH:"elasticsearch"},dataTypes={ARRAY:"array",FUNCTION:"function",OBJECT:"object",NUMBER:"number",BOOLEAN:"boolean",STRING:"string"},checkDataType=function(e){return(void 0===e?"undefined":_typeof$1(e))===dataTypes.OBJECT?Array.isArray(e)?dataTypes.ARRAY:dataTypes.OBJECT:void 0===e?"undefined":_typeof$1(e)};function validateSchema(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=Object.keys(e).filter((function(t){return!!e[t]})),o=Object.keys(t),s=[];o.forEach((function(e){t[e].required&&s.push(e)})),s.forEach((function(e){if(!r.includes(e))throw new Error(e+" is required when using the "+n+" Search backend.")})),r.forEach((function(r){if(!o.includes(r))throw new Error(r+" property isn't accepted property by "+n+" backend.");var s=Array.isArray(t[r].type)?t[r].type:[].concat(t[r].type),a=checkDataType(e[r]);if(!s.includes(a))throw new Error("The property "+r+" is expected with type(s) ["+s.join(", ")+"], but type was set as "+a+".")}))}function isValidHttpUrl(e){var t=void 0;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol}var mongodb={url:{type:dataTypes.STRING,required:!0},app:{type:dataTypes.STRING,required:!1},credentials:{type:dataTypes.STRING,required:!1},enableTelemetry:{type:dataTypes.BOOLEAN,required:!1},mongodb:{type:dataTypes.OBJECT,required:!0},username:{type:dataTypes.STRING,required:!1},password:{type:dataTypes.STRING,required:!1}},elasticsearch={url:{type:dataTypes.STRING,required:!0},app:{type:dataTypes.STRING,required:!0},credentials:{type:dataTypes.STRING,required:!1},enableTelemetry:{type:dataTypes.BOOLEAN,required:!1},username:{type:dataTypes.STRING,required:!1},password:{type:dataTypes.STRING,required:!1}},SCHEMA={mongodb:mongodb,elasticsearch:elasticsearch};function AppBase(e){var t=urlParserLite((e.endpoint?e.endpoint.url:e.url)||""),n=t.auth,r=void 0===n?null:n,o=t.host,s=void 0===o?"":o,a=t.path,i=void 0===a?"":a,l=t.protocol,u=void 0===l?"":l,c=e.url;"/"===(c=s+i).slice(-1)&&(c=c.slice(0,-1));var p=backendAlias[e.mongodb?"MONGODB":"ELASTICSEARCH"],d=SCHEMA[p];if(e.endpoint&&isValidHttpUrl(e.endpoint.url)&&(d.url.required=!1,d.app.required=!1,d.credentials.required=!1),validateSchema({url:e.url,app:e.app,credentials:e.credentials,username:e.username,password:e.password,enableTelemetry:e.enableTelemetry,mongodb:e.mongodb},d,p),"string"!=typeof u||""===u)throw new Error("Protocol is not present in url. URL should be of the form https://appbase-demo-ansible-abxiydt-arc.searchbase.io");var h=r||null;if("string"==typeof e.credentials&&""!==e.credentials?h=e.credentials:"string"==typeof e.username&&""!==e.username&&"string"==typeof e.password&&""!==e.password&&(h=e.username+":"+e.password),!e.mongodb&&isAppbase(c)&&null===h)throw new Error("Authentication information is not present. Did you add credentials?");this.url=c,this.protocol=u,this.app=e.app,this.credentials=h,e.mongodb&&(this.mongodb=e.mongodb),e.httpRequestTimeout&&(this.httpRequestTimeout=e.httpRequestTimeout),"boolean"==typeof e.enableTelemetry&&(this.enableTelemetry=e.enableTelemetry)}function fetchRequest(e){var t=this;return new Promise((function(n,r){var o=removeUndefined(e);try{var s=o.method,a=o.path,i=o.params,l=o.body,u=o.isRSAPI,c=o.isSuggestionsAPI,p=o.isMongoRequest,d=void 0!==p&&p,h=o.httpRequestTimeout,f=void 0===h?0:h,m=c?".suggestions":t.app,g=l,y=a.endsWith("msearch")||a.endsWith("bulk")?"application/x-ndjson":"application/json",v=Object.assign({},{Accept:"application/json","Content-Type":y},e.headers,t.headers),b=Date.now();t.credentials&&(v.Authorization="Basic "+btoa$1(t.credentials));var _={method:s,headers:v};if(Array.isArray(g)){var $="";g.forEach((function(e){$+=JSON.stringify(e),$+="\n"})),g=$}else g=JSON.stringify(g)||{};0!==Object.keys(g).length&&(_.body=g);var C={},S="";i&&(S="?"+querystring.stringify(i));var O=d?t.protocol+"://"+t.url:t.protocol+"://"+t.url+"/"+m+"/"+a+S;return function(e){if(t.transformRequest&&"function"==typeof t.transformRequest){var n=t.transformRequest(e);return n instanceof Promise?n:Promise.resolve(n)}return Promise.resolve(e)}(Object.assign({},{url:O},_)).then((function(e){var t=Object.assign({},e),o=t.url;delete t.url;var s=new AbortController,a=s.signal,i=fetch$1(o||O,Object.assign({},t,{headers:u&&!d?Object.assign({},t.headers,{"x-timestamp":(new Date).getTime()}):t.headers,signal:a})),c=new Promise((function(e,t){f>0&&setTimeout((function(){t(new Error("Request timeout")),s.abort()}),f)}));return Promise.race([i,c]).then((function(e){return e.status>=500?r(e):(C=e.headers,e.json().then((function(t){if(e.status>=400)return r(e);if(t&&t.error)return r(t);if(u&&t&&"[object Object]"===Object.prototype.toString.call(t)&&l&&l.query&&l.query instanceof Array){var o=0,s=l.query.filter((function(e){return e.execute||void 0===e.execute})).length;if(t&&Object.keys(t).forEach((function(e){t[e]&&Object.prototype.hasOwnProperty.call(t[e],"error")&&t[e].error&&(o+=1)})),o>0&&s===o)return r(t)}if(t&&t.responses instanceof Array&&t.responses.length===t.responses.filter((function(e){return Object.prototype.hasOwnProperty.call(e,"error")})).length)return r(t);var a=Object.assign({},t,{_timestamp:b,_headers:C});return n(a)})).catch((function(e){return r(e)})))})).catch((function(e){return r(e)}))})).catch((function(e){return r(e)}))}catch(e){return r(e)}}))}function indexApi(e){var t=removeUndefined(e),n=validate(t,{body:"object"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,s=t.id,a=t.body;delete t.type,delete t.body,delete t.id;var i=void 0;return i=s?o?o+"/"+encodeURIComponent(s):encodeURIComponent(s):o,this.performFetchRequest({method:"POST",path:i,params:t,body:a})}function getApi(e){var t=removeUndefined(e),n=validate(t,{id:"string|number"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,s=t.id;delete t.type,delete t.id;var a=o+"/"+encodeURIComponent(s);return this.performFetchRequest({method:"GET",path:a,params:t})}function updateApi(e){var t=removeUndefined(e),n=validate(t,{id:"string|number",body:"object"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,s=t.id,a=t.body;delete t.type,delete t.id,delete t.body;var i=o+"/"+encodeURIComponent(s)+"/_update";return this.performFetchRequest({method:"POST",path:i,params:t,body:a})}function deleteApi(e){var t=removeUndefined(e),n=validate(t,{id:"string|number"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,s=t.id;delete t.type,delete t.id;var a=o+"/"+encodeURIComponent(s);return this.performFetchRequest({method:"DELETE",path:a,params:t})}function bulkApi(e){var t=removeUndefined(e),n=validate(t,{body:"object"});if(!0!==n)throw n;var r=t.type,o=t.body;delete t.type,delete t.body;var s=void 0;return s=r?r+"/_bulk":"_bulk",this.performFetchRequest({method:"POST",path:s,params:t,body:o})}function searchApi(e){var t=removeUndefined(e),n=validate(t,{body:"object"});if(!0!==n)throw n;var r=void 0;r=Array.isArray(t.type)?t.type.join():t.type;var o=t.body;delete t.type,delete t.body;var s=void 0;return s=r?r+"/_search":"_search",this.performFetchRequest({method:"POST",path:s,params:t,body:o})}function msearchApi(e){var t=removeUndefined(e),n=validate(t,{body:"object"});if(!0!==n)throw n;var r=void 0;r=Array.isArray(t.type)?t.type.join():t.type;var o=t.body;delete t.type,delete t.body;var s=void 0;return s=r?r+"/_msearch":"_msearch",this.performFetchRequest({method:"POST",path:s,params:t,body:o})}function reactiveSearchApi(e,t,n){var r=removeUndefined(t),o=validateRSQuery(e);if(!0!==o)throw o;var s={settings:r,query:e};return this.mongodb&&Object.assign(s,{mongodb:getMongoRequest(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch",body:s,headers:getTelemetryHeaders(this.enableTelemetry,!this.mongodb),isRSAPI:!0,isMongoRequest:!!this.mongodb,params:n,httpRequestTimeout:this.httpRequestTimeout||0})}function reactiveSearchv3Api(e,t,n){var r=removeUndefined(t),o=validateRSQuery(e);if(!0!==o)throw o;var s={settings:r,query:e};return this.mongodb&&Object.assign(s,{mongodb:getMongoRequest(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch.v3",body:s,headers:getTelemetryHeaders(this.enableTelemetry,!this.mongodb),isRSAPI:!0,isMongoRequest:!!this.mongodb,params:n,httpRequestTimeout:this.httpRequestTimeout||0})}function getMappings(){return this.performFetchRequest({method:"GET",path:"_mapping"})}function getSuggestionsv3Api(e,t){var n=removeUndefined(t),r=validateRSQuery(e);if(!0!==r)throw r;var o={settings:n,query:e};return this.mongodb&&Object.assign(o,{mongodb:getMongoRequest(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch.v3",body:o,headers:getTelemetryHeaders(this.enableTelemetry),isRSAPI:!0,isSuggestionsAPI:!0,isMongoRequest:!!this.mongodb})}function appbasejs(e){var t=new AppBase(e);return AppBase.prototype.performFetchRequest=fetchRequest,AppBase.prototype.index=indexApi,AppBase.prototype.get=getApi,AppBase.prototype.update=updateApi,AppBase.prototype.delete=deleteApi,AppBase.prototype.bulk=bulkApi,AppBase.prototype.search=searchApi,AppBase.prototype.msearch=msearchApi,AppBase.prototype.reactiveSearch=reactiveSearchApi,AppBase.prototype.reactiveSearchv3=reactiveSearchv3Api,AppBase.prototype.getQuerySuggestions=getSuggestionsv3Api,AppBase.prototype.getMappings=getMappings,AppBase.prototype.setHeaders=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.headers=t?encodeHeaders(e):e},"undefined"!=typeof window&&(window.Appbase=t),t}function _extends$2(){return(_extends$2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function btoa$2(e){void 0===e&&(e="");for(var t,n=e,r="",o=0,s=0,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.charAt(0|s)||(a="=",s%1);r+=a.charAt(63&o>>8-s%1*8)){if((t=n.charCodeAt(s+=3/4))>255)throw new Error('"btoa" failed: The string to be encoded contains characters outside of the Latin1 range.');o=o<<8|t}return r}function validateIndex(e){if(!e)throw new Error("appbase-analytics: A valid index must be present to record analytics events.")}function validateCredentials(e){if(!e)throw new Error("appbase-analytics: Auth credentials is missing.")}function validateURL(e){if(!e)throw new Error("appbase-analytics: URL is missing.")}function validateQuery(e,t){if(null==e&&!t)throw new Error("appbase-analytics: query or queryID must be present to register a click/conversion event")}function validateQueryID(e){if(!e)throw new Error("appbase-analytics: queryID must be present to save search/favorite")}function validateClickObjects(e){if(!e||Object.keys(e).length<1)throw new Error("appbase-analytics: at least one click object must be present to register a click event")}function validateConversionObjects(e){if(!e||Object.keys(e).length<1)throw new Error("appbase-analytics: at least one click object must be present to register a click event")}function initClient(e){void 0===e&&(e={});var t={credentials:e.credentials,index:e.index,url:e.url,userID:e.userID,globalCustomEvents:e.globalCustomEvents,queryID:"",headers:null,_request:function(e,n,r,o,s){var a=_extends$2({user_id:t.userID},r,{custom_events:_extends$2({},r&&r.custom_events,{},t.globalCustomEvents)}),i="";return o&&(i=Object.keys(o).map((function(e){return e+"="+o[e]})).join("&")),fetch$1(t.url+"/"+n+"?"+i,{method:e,headers:_extends$2({},t.headers,{"Content-Type":"application/json",Authorization:"Basic "+btoa$2(t.credentials)}),body:"GET"===e?null:JSON.stringify(a)}).then((function(e){s&&s(null,e)})).catch((function(e){s&&s(e,null)}))}};return validateIndex(t.index),validateCredentials(t.credentials),validateURL(t.url),t.search=function(e,n){validateQuery(e.query,e.queryID);if(t._request){var r={query:e.query,query_id:e.queryID,custom_events:e.customEvents,filters:e.filters,hits:e.hits,impressions:e.impressions};t._request("PUT",t.index+"/_analytics/search",r,null,(function(e,r){r?r.json().then((function(o){o&&o.query_id&&(t.queryID=o.query_id),n&&n(e,r)})).catch((function(e){n&&n(e,r)})):n&&n(e,r)}))}},t.click=function(e,n){if(validateQuery(e.query,e.queryID),validateClickObjects(e.objects),t._request){var r={click_on:e.objects,click_type:e.isSuggestionClick?"suggestion":"result",query:e.query,query_id:e.queryID,custom_events:e.customEvents,meta:e.meta};t._request("PUT",t.index+"/_analytics/click",r,null,n)}},t.conversion=function(e,n){if(validateQuery(null,e.queryID),validateConversionObjects(e.objects),t._request){var r={conversion_on:e.objects,query_id:e.queryID,meta:e.meta};t._request("PUT",t.index+"/_analytics/conversion",r,null,n)}},t.saveSearch=function(e,n){validateQueryID(e.queryID);var r={query_id:e.queryID,save_search_id:e.saveSearchID,save_search_meta:e.saveSearchMeta,user_id:e.userID,custom_events:e.customEvents};t._request("PUT","_analytics/save-search",r,null,n)},t.deleteSavedSearch=function(e,n){t._request("DELETE","_analytics/save-search/"+e,null,null,n)},t.getSavedSearches=function(e,n){t._request&&t._request("GET","_analytics/saved-searches",null,e,n)},t.favorite=function(e,n){if(validateQueryID(e.queryID),!e.favoriteOn||""===e.favoriteOn)throw new Error("appbase-analytics: favoriteOn property is required");if(!e.source)throw new Error("appbase-analytics: source property is required");var r={query_id:e.queryID,favorite_on:e.favoriteOn,source:e.source,id:e.id,meta:e.meta,user_id:e.userID,custom_events:e.customEvents};t._request("PUT","_analytics/favorite",r,null,n)},t.getFavorites=function(e,n){t._request&&t._request("GET","_analytics/favorites",null,e,n)},t.setUserID=function(e){t.userID=e},t.setGlobalCustomEvents=function(e){t.globalCustomEvents=e},t.setHeaders=function(e){t.headers=e},t.getQueryID=function(){return t.queryID},t.saveSessionUsefulness=function(e,n,r){if("string"!=typeof e||""===e)throw new Error("appbase-analytics: AISessionId is required");if("boolean"!=typeof n.useful)throw new Error("appbase-analytics: useful property is required and must be a boolean");var o={useful:n.useful,reason:n.reason,user_id:n.userID,meta:n.meta};t._request("PUT","_ai/"+e+"/analytics",o,null,r)},t}var index={init:initClient};
|
|
7
|
+
*/function isObject(e){return"[object Object]"===Object.prototype.toString.call(e)}function isPlainObject$1(e){var t,n;return!1!==isObject(e)&&(void 0===(t=e.constructor)||!1!==isObject(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,"symbol"==typeof(o=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key))?o:String(o),r)}var o}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)t.indexOf(n=s[r])>=0||(o[n]=e[n]);return o}var a={silent:!1,logLevel:"warn"},f=["validator"],l=Object.prototype,c=l.toString,s=l.hasOwnProperty,v=/^\s*function (\w+)/;function d(e){var t,n=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(n){var r=n.toString().match(v);return r?r[1]:""}return""}var y=isPlainObject$1,p=function(e){return e},h=p,g=function(e,t){return s.call(e,t)},O=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},m=Array.isArray||function(e){return"[object Array]"===c.call(e)},j=function(e){return"[object Function]"===c.call(e)},_=function(e,t){return y(e)&&g(e,"_vueTypes_name")&&(!t||e._vueTypes_name===t)},T=function(e){return y(e)&&(g(e,"type")||["_vueTypes_name","validator","default","required"].some((function(t){return g(e,t)})))};function w(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function P(e,t,n){var r;void 0===n&&(n=!1);var o=!0,s="";r=y(e)?e:{type:e};var a=_(r)?r._vueTypes_name+" - ":"";if(T(r)&&null!==r.type){if(void 0===r.type||!0===r.type)return o;if(!r.required&&null==t)return o;m(r.type)?(o=r.type.some((function(e){return!0===P(e,t,!0)})),s=r.type.map((function(e){return d(e)})).join(" or ")):o="Array"===(s=d(r))?m(t):"Object"===s?y(t):"String"===s||"Number"===s||"Boolean"===s||"Function"===s?function(e){if(null==e)return"";var t=e.constructor.toString().match(v);return t?t[1].replace(/^Async/,""):""}(t)===s:t instanceof r.type}if(!o){var i=a+'value "'+t+'" should be of type "'+s+'"';return!1===n?(h(i),!1):i}if(g(r,"validator")&&j(r.validator)){var l=h,u=[];if(h=function(e){u.push(e)},o=r.validator(t),h=l,!o){var c=(u.length>1?"* ":"")+u.join("\n* ");return u.length=0,!1===n?(h(c),o):c}}return o}function k(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(e){return void 0===e?this.type===Boolean||Array.isArray(this.type)&&this.type.includes(Boolean)?void(this.default=void 0):(g(this,"default")&&delete this.default,this):j(e)||!0===P(this,e,!0)?(this.default=m(e)?function(){return[].concat(e)}:y(e)?function(){return Object.assign({},e)}:e,this):(h(this._vueTypes_name+' - invalid default value: "'+e+'"'),this)}}}),r=n.validator;return j(r)&&(n.validator=w(r,n)),n}function x(e,t){var n=k(e,t);return Object.defineProperty(n,"validate",{value:function(e){return j(this.validator)&&h(this._vueTypes_name+" - calling .validate() will overwrite the current custom validator function. Validator info:\n"+JSON.stringify(this)),this.validator=w(e,this),this}})}function S(e,t,n){var r,o,s=(r=t,o={},Object.getOwnPropertyNames(r).forEach((function(e){o[e]=Object.getOwnPropertyDescriptor(r,e)})),Object.defineProperties({},o));if(s._vueTypes_name=e,!y(n))return s;var a,i,l=n.validator,c=u(n,f);if(j(l)){var p=s.validator;p&&(p=null!==(i=(a=p).__original)&&void 0!==i?i:a),s.validator=w(p?function(e){return p.call(this,e)&&l.call(this,e)}:l,s)}return Object.assign(s,c)}function A(e){return e.replace(/^(?!\s*$)/gm," ")}var E=function(){return x("any",{})},N=function(){return x("function",{type:Function})},V=function(){return x("boolean",{type:Boolean})},q=function(){return x("string",{type:String})},L=function(){return x("number",{type:Number})},B=function(){return x("array",{type:Array})},D=function(){return x("object",{type:Object})},F=function(){return k("integer",{type:Number,validator:function(e){var t=O(e);return!1===t&&h('integer - "'+e+'" is not an integer'),t}})},Y=function(){return k("symbol",{validator:function(e){var t="symbol"==typeof e;return!1===t&&h('symbol - invalid value "'+e+'"'),t}})},I=function(){return Object.defineProperty({type:null,validator:function(e){var t=null===e;return!1===t&&h("nullable - value should be null"),t}},"_vueTypes_name",{value:"nullable"})};function J(e,t){if(void 0===t&&(t="custom validation failed"),"function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return k(e.name||"<<anonymous function>>",{type:null,validator:function(n){var r=e(n);return r||h(this._vueTypes_name+" - "+t),r}})}function M(e){if(!m(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.map((function(e){return"symbol"==typeof e?e.toString():e})).join('", "')+'".',n={validator:function(n){var r=-1!==e.indexOf(n);return r||h(t),r}};if(-1===e.indexOf(null)){var r=e.reduce((function(e,t){if(null!=t){var n=t.constructor;-1===e.indexOf(n)&&e.push(n)}return e}),[]);r.length>0&&(n.type=r)}return k("oneOf",n)}function R(e){if(!m(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=!1,r=[],o=0;o<e.length;o+=1){var s=e[o];if(T(s)){if(j(s.validator)&&(t=!0),_(s,"oneOf")&&s.type){r=r.concat(s.type);continue}if(_(s,"nullable")){n=!0;continue}if(!0===s.type||!s.type){h('oneOfType - invalid usage of "true" and "null" as types.');continue}r=r.concat(s.type)}else r.push(s)}r=r.filter((function(e,t){return r.indexOf(e)===t}));var a=!1===n&&r.length>0?r:null;return k("oneOfType",t?{type:a,validator:function(t){var n=[],r=e.some((function(e){var r=P(e,t,!0);return"string"==typeof r&&n.push(r),!0===r}));return r||h("oneOfType - provided value does not match any of the "+n.length+" passed-in validators:\n"+A(n.join("\n"))),r}}:{type:a})}function U(e){return k("arrayOf",{type:Array,validator:function(t){var n="",r=t.every((function(t){return!0===(n=P(e,t,!0))}));return r||h("arrayOf - value validation error:\n"+A(n)),r}})}function $(e){return k("instanceOf",{type:e})}function z(e){return k("objectOf",{type:Object,validator:function(t){var n="",r=Object.keys(t).every((function(r){return!0===(n=P(e,t[r],!0))}));return r||h("objectOf - value validation error:\n"+A(n)),r}})}function C(e){var t=Object.keys(e),n=t.filter((function(t){var n;return!(null===(n=e[t])||void 0===n||!n.required)})),r=k("shape",{type:Object,validator:function(r){var o=this;if(!y(r))return!1;var s=Object.keys(r);if(n.length>0&&n.some((function(e){return-1===s.indexOf(e)}))){var a=n.filter((function(e){return-1===s.indexOf(e)}));return h(1===a.length?'shape - required property "'+a[0]+'" is not defined.':'shape - required properties "'+a.join('", "')+'" are not defined.'),!1}return s.every((function(n){if(-1===t.indexOf(n))return!0===o._vueTypes_isLoose||(h('shape - shape definition does not include a "'+n+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var s=P(e[n],r[n],!0);return"string"==typeof s&&h('shape - "'+n+'" property validation error:\n '+A(s)),!0===s}))}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),r}var G=["name","validate","getter"],H=function(){var e;return(e=function(){function e(){}return e.extend=function(e){var t=this;if(h("VueTypes.extend is deprecated. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."),m(e))return e.forEach((function(e){return t.extend(e)})),this;var n=e.name,r=e.validate,o=void 0!==r&&r,s=e.getter,a=void 0!==s&&s,i=u(e,G);if(g(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var l,c=i.type;return _(c)?(delete i.type,Object.defineProperty(this,n,a?{get:function(){return S(n,c,i)}}:{value:function(){var e,t=S(n,c,i);return t.validator&&(t.validator=(e=t.validator).bind.apply(e,[t].concat([].slice.call(arguments)))),t}})):(l=a?{get:function(){var e=Object.assign({},i);return o?x(n,e):k(n,e)},enumerable:!0}:{value:function(){var e,t,r=Object.assign({},i);return e=o?x(n,r):k(n,r),r.validator&&(e.validator=(t=r.validator).bind.apply(t,[e].concat([].slice.call(arguments)))),e},enumerable:!0},Object.defineProperty(this,n,l))},n(e,null,[{key:"any",get:function(){return E()}},{key:"func",get:function(){return N().def(this.defaults.func)}},{key:"bool",get:function(){return void 0===this.defaults.bool?V():V().def(this.defaults.bool)}},{key:"string",get:function(){return q().def(this.defaults.string)}},{key:"number",get:function(){return L().def(this.defaults.number)}},{key:"array",get:function(){return B().def(this.defaults.array)}},{key:"object",get:function(){return D().def(this.defaults.object)}},{key:"integer",get:function(){return F().def(this.defaults.integer)}},{key:"symbol",get:function(){return Y()}},{key:"nullable",get:function(){return I()}}]),e}()).defaults={},e.sensibleDefaults=void 0,e.config=a,e.custom=J,e.oneOf=M,e.instanceOf=$,e.oneOfType=R,e.arrayOf=U,e.objectOf=z,e.shape=C,e.utils={validate:function(e,t){return!0===P(t,e,!0)},toType:function(e,t,n){return void 0===n&&(n=!1),n?x(e,t):k(e,t)}},e}();function K(e){var t;return void 0===e&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(t){function o(){return t.apply(this,arguments)||this}return i(o,t),n(o,null,[{key:"sensibleDefaults",get:function(){return r({},this.defaults)},set:function(t){this.defaults=!1!==t?r({},!0!==t?t:e):{}}}]),o}(H)).defaults=r({},e),t}var Q=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(K());function sheetForTag(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function createStyleElement(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var StyleSheet=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(createStyleElement(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=sheetForTag(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),e="-ms-",r$1="-moz-",a$1="-webkit-",n$1="comm",c$1="rule",s$1="decl",i$1="@import",h$1="@keyframes",$$1="@layer",g$1=Math.abs,k$1=String.fromCharCode,m$1=Object.assign;function x$1(e,t){return 45^O$1(e,0)?(((t<<2^O$1(e,0))<<2^O$1(e,1))<<2^O$1(e,2))<<2^O$1(e,3):0}function y$1(e){return e.trim()}function j$1(e,t){return(e=t.exec(e))?e[0]:e}function z$1(e,t,n){return e.replace(t,n)}function C$1(e,t){return e.indexOf(t)}function O$1(e,t){return 0|e.charCodeAt(t)}function A$1(e,t,n){return e.slice(t,n)}function M$1(e){return e.length}function S$1(e){return e.length}function q$1(e,t){return t.push(e),e}function B$1(e,t){return e.map(t).join("")}var D$1=1,E$1=1,F$1=0,G$1=0,H$1=0,I$1="";function J$1(e,t,n,r,o,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:D$1,column:E$1,length:a,return:""}}function K$1(e,t){return m$1(J$1("",null,null,"",null,null,0),e,{length:-e.length},t)}function L$1(){return H$1}function N$1(){return H$1=G$1>0?O$1(I$1,--G$1):0,E$1--,10===H$1&&(E$1=1,D$1--),H$1}function P$1(){return H$1=G$1<F$1?O$1(I$1,G$1++):0,E$1++,10===H$1&&(E$1=1,D$1++),H$1}function Q$1(){return O$1(I$1,G$1)}function R$1(){return G$1}function T$1(e,t){return A$1(I$1,e,t)}function U$1(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function V$1(e){return D$1=E$1=1,F$1=M$1(I$1=e),G$1=0,[]}function W(e){return I$1="",e}function X(e){return y$1(T$1(G$1-1,re(91===e?e+2:40===e?e+1:e)))}function Z(e){for(;(H$1=Q$1())&&H$1<33;)P$1();return U$1(e)>2||U$1(H$1)>3?"":" "}function ee(e,t){for(;--t&&P$1()&&!(H$1<48||H$1>102||H$1>57&&H$1<65||H$1>70&&H$1<97););return T$1(e,R$1()+(t<6&&32==Q$1()&&32==P$1()))}function re(e){for(;P$1();)switch(H$1){case e:return G$1;case 34:case 39:34!==e&&39!==e&&re(H$1);break;case 40:41===e&&re(e);break;case 92:P$1()}return G$1}function ae(e,t){for(;P$1()&&e+H$1!==57&&(e+H$1!==84||47!==Q$1()););return"/*"+T$1(t,G$1-1)+"*"+k$1(47===e?e:P$1())}function ne(e){for(;!U$1(Q$1());)P$1();return T$1(e,G$1)}function ce(e){return W(se("",null,null,null,[""],e=V$1(e),0,[0],e))}function se(e,t,n,r,o,s,a,i,l){for(var u=0,c=0,p=a,d=0,h=0,f=0,m=1,g=1,y=1,v=0,b="",_=o,$=s,C=r,S=b;g;)switch(f=v,v=P$1()){case 40:if(108!=f&&58==O$1(S,p-1)){-1!=C$1(S+=z$1(X(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=X(v);break;case 9:case 10:case 13:case 32:S+=Z(f);break;case 92:S+=ee(R$1()-1,7);continue;case 47:switch(Q$1()){case 42:case 47:q$1(ue(ae(P$1(),R$1()),t,n),l);break;default:S+="/"}break;case 123*m:i[u++]=M$1(S)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==y&&(S=z$1(S,/\f/g,"")),h>0&&M$1(S)-p&&q$1(h>32?ie(S+";",r,n,p-1):ie(z$1(S," ","")+";",r,n,p-2),l);break;case 59:S+=";";default:if(q$1(C=te(S,t,n,u,c,o,i,b,_=[],$=[],p),s),123===v)if(0===c)se(S,t,C,C,_,s,p,i,$);else switch(99===d&&110===O$1(S,3)?100:d){case 100:case 108:case 109:case 115:se(e,C,C,r&&q$1(te(e,C,C,0,0,o,i,b,o,_=[],p),$),o,$,p,i,r?_:$);break;default:se(S,C,C,C,[""],$,0,i,$)}}u=c=h=0,m=y=1,b=S="",p=a;break;case 58:p=1+M$1(S),h=f;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==N$1())continue;switch(S+=k$1(v),v*m){case 38:y=c>0?1:(S+="\f",-1);break;case 44:i[u++]=(M$1(S)-1)*y,y=1;break;case 64:45===Q$1()&&(S+=X(P$1())),d=Q$1(),c=p=M$1(b=S+=ne(R$1())),v++;break;case 45:45===f&&2==M$1(S)&&(m=0)}}return s}function te(e,t,n,r,o,s,a,i,l,u,c){for(var p=o-1,d=0===o?s:[""],h=S$1(d),f=0,m=0,g=0;f<r;++f)for(var y=0,v=A$1(e,p+1,p=g$1(m=a[f])),b=e;y<h;++y)(b=y$1(m>0?d[y]+" "+v:z$1(v,/&\f/g,d[y])))&&(l[g++]=b);return J$1(e,t,n,0===o?c$1:i,l,u,c)}function ue(e,t,n){return J$1(e,t,n,n$1,k$1(L$1()),A$1(e,2,-2),0)}function ie(e,t,n,r){return J$1(e,t,n,s$1,A$1(e,0,r),A$1(e,r+1,-1),r)}function oe(e,t){for(var n="",r=S$1(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function le(e,t,n,r){switch(e.type){case $$1:if(e.children.length)break;case i$1:case s$1:return e.return=e.return||e.value;case n$1:return"";case h$1:return e.return=e.value+"{"+oe(e.children,r)+"}";case c$1:e.value=e.props.join(",")}return M$1(n=oe(e.children,r))?e.return=e.value+"{"+n+"}":""}function ve(e){var t=S$1(e);return function(n,r,o,s){for(var a="",i=0;i<t;i++)a+=e[i](n,r,o,s)||"";return a}}function pe(e){return function(t){t.root||(t=t.return)&&e(t)}}function memoize(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var identifierWithPointTracking=function(e,t,n){for(var r=0,o=0;r=o,o=Q$1(),38===r&&12===o&&(t[n]=1),!U$1(o);)P$1();return T$1(e,G$1)},toRules=function(e,t){var n=-1,r=44;do{switch(U$1(r)){case 0:38===r&&12===Q$1()&&(t[n]=1),e[n]+=identifierWithPointTracking(G$1-1,t,n);break;case 2:e[n]+=X(r);break;case 4:if(44===r){e[++n]=58===Q$1()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=k$1(r)}}while(r=P$1());return e},getRules=function(e,t){return W(toRules(V$1(e),t))},fixedElements=new WeakMap,compat=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||fixedElements.get(n))&&!r){fixedElements.set(e,!0);for(var o=[],s=getRules(t,o),a=n.props,i=0,l=0;i<s.length;i++)for(var u=0;u<a.length;u++,l++)e.props[l]=o[i]?s[i].replace(/&\f/g,a[u]):a[u]+" "+s[i]}}},removeLabel=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function prefix(t,n){switch(x$1(t,n)){case 5103:return a$1+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a$1+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return a$1+t+r$1+t+e+t+t;case 6828:case 4268:return a$1+t+e+t+t;case 6165:return a$1+t+e+"flex-"+t+t;case 5187:return a$1+t+z$1(t,/(\w+).+(:[^]+)/,a$1+"box-$1$2"+e+"flex-$1$2")+t;case 5443:return a$1+t+e+"flex-item-"+z$1(t,/flex-|-self/,"")+t;case 4675:return a$1+t+e+"flex-line-pack"+z$1(t,/align-content|flex-|-self/,"")+t;case 5548:return a$1+t+e+z$1(t,"shrink","negative")+t;case 5292:return a$1+t+e+z$1(t,"basis","preferred-size")+t;case 6060:return a$1+"box-"+z$1(t,"-grow","")+a$1+t+e+z$1(t,"grow","positive")+t;case 4554:return a$1+z$1(t,/([^-])(transform)/g,"$1"+a$1+"$2")+t;case 6187:return z$1(z$1(z$1(t,/(zoom-|grab)/,a$1+"$1"),/(image-set)/,a$1+"$1"),t,"")+t;case 5495:case 3959:return z$1(t,/(image-set\([^]*)/,a$1+"$1$`$1");case 4968:return z$1(z$1(t,/(.+:)(flex-)?(.*)/,a$1+"box-pack:$3"+e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a$1+t+t;case 4095:case 3583:case 4068:case 2532:return z$1(t,/(.+)-inline(.+)/,a$1+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(M$1(t)-1-n>6)switch(O$1(t,n+1)){case 109:if(45!==O$1(t,n+4))break;case 102:return z$1(t,/(.+:)(.+)-([^]+)/,"$1"+a$1+"$2-$3$1"+r$1+(108==O$1(t,n+3)?"$3":"$2-$3"))+t;case 115:return~C$1(t,"stretch")?prefix(z$1(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==O$1(t,n+1))break;case 6444:switch(O$1(t,M$1(t)-3-(~C$1(t,"!important")&&10))){case 107:return z$1(t,":",":"+a$1)+t;case 101:return z$1(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a$1+(45===O$1(t,14)?"inline-":"")+"box$3$1"+a$1+"$2$3$1"+e+"$2box$3")+t}break;case 5936:switch(O$1(t,n+11)){case 114:return a$1+t+e+z$1(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return a$1+t+e+z$1(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return a$1+t+e+z$1(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return a$1+t+e+t+t}return t}var prefixer=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case s$1:t.return=prefix(t.value,t.length);break;case h$1:return oe([K$1(t,{value:z$1(t.value,"@","@"+a$1)})],o);case c$1:if(t.length)return B$1(t.props,(function(n){switch(j$1(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return oe([K$1(t,{props:[z$1(n,/:(read-\w+)/,":"+r$1+"$1")]})],o);case"::placeholder":return oe([K$1(t,{props:[z$1(n,/:(plac\w+)/,":"+a$1+"input-$1")]}),K$1(t,{props:[z$1(n,/:(plac\w+)/,":"+r$1+"$1")]}),K$1(t,{props:[z$1(n,/:(plac\w+)/,e+"input-$1")]})],o)}return""}))}},defaultStylisPlugins=[prefixer],createCache=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,s=e.stylisPlugins||defaultStylisPlugins,a={},i=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;i.push(e)}));var l,u=[compat,removeLabel],c=[le,pe((function(e){l.insert(e)}))],p=ve(u.concat(s,c));o=function(e,t,n,r){l=n,oe(ce(e?e+"{"+t.styles+"}":t.styles),p),r&&(d.inserted[t.name]=!0)};var d={key:t,sheet:new StyleSheet({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return d.sheet.hydrate(i),d},isBrowser=!0;function getRegisteredStyles(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var registerStyles=function(e,t,n){var r=e.key+"-"+t.name;!1!==n&&!1!==isBrowser||void 0!==e.registered[r]||(e.registered[r]=t.styles)},insertStyles=function(e,t,n){registerStyles(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};function murmur2(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(e){return 45===e.charCodeAt(1)},isProcessableValue=function(e){return null!=e&&"boolean"!=typeof e},processStyleName=memoize((function(e){return isCustomProperty(e)?e:e.replace(hyphenateRegex,"-$&").toLowerCase()})),processStyleValue=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(animationRegex,(function(e,t,n){return cursor={name:t,styles:n,next:cursor},t}))}return 1===unitlessKeys[e]||isCustomProperty(e)||"number"!=typeof t||0===t?t:t+"px"},noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return cursor={name:n.name,styles:n.styles,next:cursor},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)cursor={name:r.name,styles:r.styles,next:cursor},r=r.next;return n.styles+";"}return createStringFromObject(e,t,n);case"function":if(void 0!==e){var o=cursor,s=n(e);return cursor=o,handleInterpolation(e,t,s)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}function createStringFromObject(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=handleInterpolation(e,t,n[o])+";";else for(var s in n){var a=n[s];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=s+"{"+t[a]+"}":isProcessableValue(a)&&(r+=processStyleName(s)+":"+processStyleValue(s,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var i=handleInterpolation(e,t,a);switch(s){case"animation":case"animationName":r+=processStyleName(s)+":"+i+";";break;default:r+=s+"{"+i+"}"}}else for(var l=0;l<a.length;l++)isProcessableValue(a[l])&&(r+=processStyleName(s)+":"+processStyleValue(s,a[l])+";")}return r}var labelPattern=/label:\s*([^\s;\n{]+)\s*(;|$)/g,cursor,serializeStyles=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";cursor=void 0;var s=e[0];null==s||void 0===s.raw?(r=!1,o+=handleInterpolation(n,t,s)):o+=s[0];for(var a=1;a<e.length;a++)o+=handleInterpolation(n,t,e[a]),r&&(o+=s[a]);labelPattern.lastIndex=0;for(var i,l="";null!==(i=labelPattern.exec(o));)l+="-"+i[1];return{name:murmur2(o)+l,styles:o,next:cursor}},_excluded=["as"],createStyled=function e(t,n){void 0===n&&(n={});var r=n.label,o=n.target,s=t.__emotion_real===t,a=s&&t.__emotion_base||t;return function(){var i=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];void 0!==r&&i.push("label:"+r+";");for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];if(null===u[0]||void 0===u[0].raw)i.push.apply(i,u);else{i.push(u[0][0]);for(var p=u.length,d=1;d<p;d++)i.push(u[d],u[0][d])}var h={inheritAttrs:!1,inject:{theme:{from:"theme_reactivesearch",default:void 0},$emotionCache:{default:null}},render:function(e){var t=e.theme,r=e.$attrs,s=e.$options,l=e.$slots,u=e.$props,c=(e.$parent,this.$emotionCache),p=r||{},d=p.as,h=_objectWithoutPropertiesLoose(p,_excluded),f="",m=d||a,g=[],y=_extends({},r,{theme:t||s.inject.theme});r.class&&(f+=getRegisteredStyles(c.registered,g,r.class));var v=serializeStyles(i.concat(g),c.registered,y);insertStyles(c,v,"string"==typeof m),f+=c.key+"-"+v.name,void 0!==o&&(f+=" "+o);var b=_extends({},u,n.getAttrs?n.getAttrs(h):h,{class:f});return vue.h(m,b,l)}};return h.name=void 0===r?"Styled"+("string"==typeof a?a:a.name||"Component"):r,h.__emotion_real=h,h.__emotion_base=a,h.__emotion_styles=i,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,void 0===r?n:_extends({},n||{},r)).apply(void 0,i)},h}},styled=createStyled;function sheetForTag$1(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function createStyleElement$1(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var StyleSheet$1=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(createStyleElement$1(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=sheetForTag$1(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();function memoize$1(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var identifierWithPointTracking$1=function(e,t,n){for(var r=0,o=0;r=o,o=Q$1(),38===r&&12===o&&(t[n]=1),!U$1(o);)P$1();return T$1(e,G$1)},toRules$1=function(e,t){var n=-1,r=44;do{switch(U$1(r)){case 0:38===r&&12===Q$1()&&(t[n]=1),e[n]+=identifierWithPointTracking$1(G$1-1,t,n);break;case 2:e[n]+=X(r);break;case 4:if(44===r){e[++n]=58===Q$1()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=k$1(r)}}while(r=P$1());return e},getRules$1=function(e,t){return W(toRules$1(V$1(e),t))},fixedElements$1=new WeakMap,compat$1=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||fixedElements$1.get(n))&&!r){fixedElements$1.set(e,!0);for(var o=[],s=getRules$1(t,o),a=n.props,i=0,l=0;i<s.length;i++)for(var u=0;u<a.length;u++,l++)e.props[l]=o[i]?s[i].replace(/&\f/g,a[u]):a[u]+" "+s[i]}}},removeLabel$1=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function prefix$1(t,n){switch(x$1(t,n)){case 5103:return a$1+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a$1+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return a$1+t+r$1+t+e+t+t;case 6828:case 4268:return a$1+t+e+t+t;case 6165:return a$1+t+e+"flex-"+t+t;case 5187:return a$1+t+z$1(t,/(\w+).+(:[^]+)/,a$1+"box-$1$2"+e+"flex-$1$2")+t;case 5443:return a$1+t+e+"flex-item-"+z$1(t,/flex-|-self/,"")+t;case 4675:return a$1+t+e+"flex-line-pack"+z$1(t,/align-content|flex-|-self/,"")+t;case 5548:return a$1+t+e+z$1(t,"shrink","negative")+t;case 5292:return a$1+t+e+z$1(t,"basis","preferred-size")+t;case 6060:return a$1+"box-"+z$1(t,"-grow","")+a$1+t+e+z$1(t,"grow","positive")+t;case 4554:return a$1+z$1(t,/([^-])(transform)/g,"$1"+a$1+"$2")+t;case 6187:return z$1(z$1(z$1(t,/(zoom-|grab)/,a$1+"$1"),/(image-set)/,a$1+"$1"),t,"")+t;case 5495:case 3959:return z$1(t,/(image-set\([^]*)/,a$1+"$1$`$1");case 4968:return z$1(z$1(t,/(.+:)(flex-)?(.*)/,a$1+"box-pack:$3"+e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a$1+t+t;case 4095:case 3583:case 4068:case 2532:return z$1(t,/(.+)-inline(.+)/,a$1+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(M$1(t)-1-n>6)switch(O$1(t,n+1)){case 109:if(45!==O$1(t,n+4))break;case 102:return z$1(t,/(.+:)(.+)-([^]+)/,"$1"+a$1+"$2-$3$1"+r$1+(108==O$1(t,n+3)?"$3":"$2-$3"))+t;case 115:return~C$1(t,"stretch")?prefix$1(z$1(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==O$1(t,n+1))break;case 6444:switch(O$1(t,M$1(t)-3-(~C$1(t,"!important")&&10))){case 107:return z$1(t,":",":"+a$1)+t;case 101:return z$1(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a$1+(45===O$1(t,14)?"inline-":"")+"box$3$1"+a$1+"$2$3$1"+e+"$2box$3")+t}break;case 5936:switch(O$1(t,n+11)){case 114:return a$1+t+e+z$1(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return a$1+t+e+z$1(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return a$1+t+e+z$1(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return a$1+t+e+t+t}return t}var prefixer$1=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case s$1:t.return=prefix$1(t.value,t.length);break;case h$1:return oe([K$1(t,{value:z$1(t.value,"@","@"+a$1)})],o);case c$1:if(t.length)return B$1(t.props,(function(n){switch(j$1(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return oe([K$1(t,{props:[z$1(n,/:(read-\w+)/,":"+r$1+"$1")]})],o);case"::placeholder":return oe([K$1(t,{props:[z$1(n,/:(plac\w+)/,":"+a$1+"input-$1")]}),K$1(t,{props:[z$1(n,/:(plac\w+)/,":"+r$1+"$1")]}),K$1(t,{props:[z$1(n,/:(plac\w+)/,e+"input-$1")]})],o)}return""}))}},defaultStylisPlugins$1=[prefixer$1],createCache$1=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,s=e.stylisPlugins||defaultStylisPlugins$1,a={},i=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;i.push(e)}));var l,u=[compat$1,removeLabel$1],c=[le,pe((function(e){l.insert(e)}))],p=ve(u.concat(s,c));o=function(e,t,n,r){l=n,oe(ce(e?e+"{"+t.styles+"}":t.styles),p),r&&(d.inserted[t.name]=!0)};var d={key:t,sheet:new StyleSheet$1({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return d.sheet.hydrate(i),d};function murmur2$1(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var unitlessKeys$1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex$1=/[A-Z]|^ms/g,animationRegex$1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty$1=function(e){return 45===e.charCodeAt(1)},isProcessableValue$1=function(e){return null!=e&&"boolean"!=typeof e},processStyleName$1=memoize$1((function(e){return isCustomProperty$1(e)?e:e.replace(hyphenateRegex$1,"-$&").toLowerCase()})),processStyleValue$1=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(animationRegex$1,(function(e,t,n){return cursor$1={name:t,styles:n,next:cursor$1},t}))}return 1===unitlessKeys$1[e]||isCustomProperty$1(e)||"number"!=typeof t||0===t?t:t+"px"},noComponentSelectorMessage$1="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation$1(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return cursor$1={name:n.name,styles:n.styles,next:cursor$1},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)cursor$1={name:r.name,styles:r.styles,next:cursor$1},r=r.next;return n.styles+";"}return createStringFromObject$1(e,t,n);case"function":if(void 0!==e){var o=cursor$1,s=n(e);return cursor$1=o,handleInterpolation$1(e,t,s)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}function createStringFromObject$1(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=handleInterpolation$1(e,t,n[o])+";";else for(var s in n){var a=n[s];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=s+"{"+t[a]+"}":isProcessableValue$1(a)&&(r+=processStyleName$1(s)+":"+processStyleValue$1(s,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var i=handleInterpolation$1(e,t,a);switch(s){case"animation":case"animationName":r+=processStyleName$1(s)+":"+i+";";break;default:r+=s+"{"+i+"}"}}else for(var l=0;l<a.length;l++)isProcessableValue$1(a[l])&&(r+=processStyleName$1(s)+":"+processStyleValue$1(s,a[l])+";")}return r}var labelPattern$1=/label:\s*([^\s;\n{]+)\s*(;|$)/g,cursor$1,serializeStyles$1=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";cursor$1=void 0;var s=e[0];null==s||void 0===s.raw?(r=!1,o+=handleInterpolation$1(n,t,s)):o+=s[0];for(var a=1;a<e.length;a++)o+=handleInterpolation$1(n,t,e[a]),r&&(o+=s[a]);labelPattern$1.lastIndex=0;for(var i,l="";null!==(i=labelPattern$1.exec(o));)l+="-"+i[1];return{name:murmur2$1(o)+l,styles:o,next:cursor$1}},isBrowser$1=!0;function getRegisteredStyles$1(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var registerStyles$1=function(e,t,n){var r=e.key+"-"+t.name;!1!==n&&!1!==isBrowser$1||void 0!==e.registered[r]||(e.registered[r]=t.styles)},insertStyles$1=function(e,t,n){registerStyles$1(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};function insertWithoutScoping(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function merge(e,t,n){var r=[],o=getRegisteredStyles$1(e,r,n);return r.length<2?n:o+t(r)}var createEmotion=function(e){var t=createCache$1(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=serializeStyles$1(n,t.registered,void 0);return insertStyles$1(t,o,!1),t.key+"-"+o.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return merge(t.registered,n,classnames(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=serializeStyles$1(n,t.registered);insertWithoutScoping(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=serializeStyles$1(n,t.registered),s="animation-"+o.name;return insertWithoutScoping(t,{name:o.name,styles:"@keyframes "+s+"{"+o.styles+"}"}),s},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:getRegisteredStyles$1.bind(null,t.registered),merge:merge.bind(null,t.registered,n)}},classnames=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var s=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))s=e(o);else for(var a in s="",o)o[a]&&a&&(s&&(s+=" "),s+=a);break;default:s=o}s&&(n&&(n+=" "),n+=s)}}return n},_createEmotion=createEmotion({key:"css"}),keyframes=_createEmotion.keyframes,css=_createEmotion.css;function _extends$1(){return(_extends$1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function colorToInt(e){return Math.round(255*e)}function convertToInt(e,t,n){return colorToInt(e)+","+colorToInt(t)+","+colorToInt(n)}function hslToRgb(e,t,n,r){if(void 0===r&&(r=convertToInt),0===t)return r(n,n,n);var o=e%360/60,s=(1-Math.abs(2*n-1))*t,a=s*(1-Math.abs(o%2-1)),i=0,l=0,u=0;o>=0&&o<1?(i=s,l=a):o>=1&&o<2?(i=a,l=s):o>=2&&o<3?(l=s,u=a):o>=3&&o<4?(l=a,u=s):o>=4&&o<5?(i=a,u=s):o>=5&&o<6&&(i=s,u=a);var c=n-s/2;return r(i+c,l+c,u+c)}var namedColorMap={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function nameToHex(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return namedColorMap[t]?"#"+namedColorMap[t]:e}var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,rgbaRegex=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,hslRegex=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,hslaRegex=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/;function parseToRgb(e){if("string"!=typeof e)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");var t=nameToHex(e);if(t.match(hexRegex))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(hexRgbaRegex)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(reducedHexRegex))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(reducedRgbaHexRegex)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=rgbRegex.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var s=rgbaRegex.exec(t);if(s)return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10),alpha:parseFloat(""+s[4])};var a=hslRegex.exec(t);if(a){var i="rgb("+hslToRgb(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",l=rgbRegex.exec(i);if(!l)throw new Error("Couldn't generate valid rgb string from "+t+", it returned "+i+".");return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var u=hslaRegex.exec(t);if(u){var c="rgb("+hslToRgb(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",p=rgbRegex.exec(c);if(!p)throw new Error("Couldn't generate valid rgb string from "+t+", it returned "+c+".");return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10),alpha:parseFloat(""+u[4])}}throw new Error("Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.")}function rgbToHsl(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,s=Math.max(n,r,o),a=Math.min(n,r,o),i=(s+a)/2;if(s===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var l=s-a,u=i>.5?l/(2-s-a):l/(s+a);switch(s){case n:t=(r-o)/l+(r<o?6:0);break;case r:t=(o-n)/l+2;break;default:t=(n-r)/l+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:u,lightness:i,alpha:e.alpha}:{hue:t,saturation:u,lightness:i}}function parseToHsl(e){return rgbToHsl(parseToRgb(e))}var reduceHexValue=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function numberToHex(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function colorToHex(e){return numberToHex(Math.round(255*e))}function convertToHex(e,t,n){return reduceHexValue("#"+colorToHex(e)+colorToHex(t)+colorToHex(n))}function hslToHex(e,t,n){return hslToRgb(e,t,n,convertToHex)}function hsl(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return hslToHex(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return hslToHex(e.hue,e.saturation,e.lightness);throw new Error("Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).")}function hsla(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?hslToHex(e,t,n):"rgba("+hslToRgb(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?hslToHex(e.hue,e.saturation,e.lightness):"rgba("+hslToRgb(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Error("Passed invalid arguments to hsla, please pass multiple numbers e.g. hsl(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).")}function rgb(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return reduceHexValue("#"+numberToHex(e)+numberToHex(t)+numberToHex(n));if("object"==typeof e&&void 0===t&&void 0===n)return reduceHexValue("#"+numberToHex(e.red)+numberToHex(e.green)+numberToHex(e.blue));throw new Error("Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).")}function rgba(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=parseToRgb(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?rgb(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?rgb(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Error("Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).")}var isRgb=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},isRgba=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},isHsl=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},isHsla=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha},errMsg="Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.";function toColorString(e){if("object"!=typeof e)throw new Error(errMsg);if(isRgba(e))return rgba(e);if(isRgb(e))return rgb(e);if(isHsla(e))return hsla(e);if(isHsl(e))return hsl(e);throw new Error(errMsg)}function curried(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):curried(e,t,r)}}function curry(e){return curried(e,e.length,[])}function guard(e,t,n){return Math.max(e,Math.min(t,n))}function darken(e,t){var n=parseToHsl(t);return toColorString(_extends$1({},n,{lightness:guard(0,1,n.lightness-parseFloat(e))}))}var curriedDarken=curry(darken);function lighten(e,t){var n=parseToHsl(t);return toColorString(_extends$1({},n,{lightness:guard(0,1,n.lightness+parseFloat(e))}))}var curriedLighten=curry(lighten),_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,filters=function(e){var t=e.colors.borderColor;return css(_templateObject||(_templateObject=_taggedTemplateLiteralLoose(["\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\tbutton {\n\t\tmargin: 2px 3px;\n\t\tpadding: 5px 8px;\n\t\tfont-size: 0.85rem;\n\t\tposition: relative;\n\n\t\tspan:first-child {\n\t\t\tmax-width: 260px;\n\t\t\twhite-space: nowrap;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\tmargin-right: 26px;\n\t\t}\n\n\t\tspan:last-child {\n\t\t\tdisplay: flex;\n\t\t\theight: 100%;\n\t\t\ttop: 0;\n\t\t\tright: 8px;\n\t\t\tposition: absolute;\n\t\t\talign-items: center;\n\t\t\tborder-left: 1px solid ",";\n\t\t\tpadding-left: 8px;\n\t\t\tmargin-left: 8px;\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tspan:first-child {\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t}\n"])),t||"#fff")},pagination=css(_templateObject2||(_templateObject2=_taggedTemplateLiteralLoose(["\n\tmargin: 10px -3px;\n\tmax-width: 100%;\n\ttext-align: center;\n\n\tbutton {\n\t\tmargin: 0 3px;\n\t}\n"]))),toggleButtons=css(_templateObject3||(_templateObject3=_taggedTemplateLiteralLoose(["\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\tbutton {\n\t\tmargin: 3px 3px;\n\t}\n"]))),numberBoxContainer=css(_templateObject4||(_templateObject4=_taggedTemplateLiteralLoose(["\n\tmargin: 0 -5px;\n\tbutton {\n\t\tmargin: 5px;\n\t}\n\tspan {\n\t\tmargin: 0 5px;\n\t}\n"]))),primary=function(e){var t=e.theme;return"\n\tbackground-color: "+t.colors.primaryColor+";\n\tcolor: "+t.colors.primaryTextColor+";\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: "+curriedDarken(.1,t.colors.primaryColor)+";\n\t}\n"},large=function(){return"\n\tmin-height: 40px;\n\tpadding: 10px 20px;\n"},disabled=function(e){var t=e.theme;return"\n\tbackground-color: "+(t.colors.backgroundColor?curriedLighten(.1,t.colors.backgroundColor):"#fafafa")+";\n\tcolor: #ccc;\n\tcursor: not-allowed;\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: "+(t.colors.backgroundColor?curriedLighten(.2,t.colors.backgroundColor):"#fafafa")+";\n\t}\n"},info=function(e){var t=e.theme;return"\n\tborder: 1px solid "+t.colors.primaryColor+";\n\tcolor: "+t.colors.primaryColor+";\n\tbackground-color: "+t.colors.primaryTextColor+";\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: "+curriedDarken(.1,helper_1(t.colors.primaryTextColor))+";\n\t}\n"},Button=styled("button")(_templateObject5||(_templateObject5=_taggedTemplateLiteralLoose(["\n\tdisplay: inline-flex;\n\tjustify-content: center;\n\talign-items: center;\n\tborder-radius: 3px;\n\tborder: 1px solid transparent;\n\tmin-height: 30px;\n\tword-wrap: break-word;\n\tpadding: 5px 12px;\n\tline-height: 1.2rem;\n\tbackground-color: ",";\n\tcolor: ",";\n\tcursor: pointer;\n\tuser-select: none;\n\ttransition: all 0.3s ease;\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n\n\t&:focus {\n\t\toutline: 0;\n\t\tborder-color: ",";\n\t\tbox-shadow: ",";\n\t}\n\t",";\n\t",";\n\t",";\n\t",";\n\n\t&.enter-btn {\n\t\tborder-top-left-radius: 0px;\n\t\tborder-bottom-left-radius: 0px;\n\t\theight: 100%;\n\t}\n"])),(function(e){var t=e.theme;return t.colors?t.colors.backgroundColor:"#eee"}),(function(e){var t=e.theme;return t.colors?t.colors.textColor:""}),(function(e){var t=e.theme;return t.colors&&t.colors.backgroundColor?curriedDarken(.1,t.colors.backgroundColor):"#ccc"}),(function(e){var t=e.theme;return t.colors&&t.colors.primaryColor?rgba(t.colors.primaryColor,.6):"unset"}),(function(e){var t=e.theme;return t.colors&&t.colors.primaryColor?"0 0 0 2px "+rgba(t.colors.primaryColor,.3):""}),(function(e){return e.info?info:null}),(function(e){return e.disabled?disabled:null}),(function(e){return e.large&&large}),(function(e){return e.primary?primary:null})),loadMoreContainer=css({margin:"5px 0",display:"flex",justifyContent:"center"});Q.sensibleDefaults=!1;var reactKeyType=Q.oneOfType([Q.string,Q.arrayOf(Q.string),Q.object,Q.arrayOf(Q.object)]);function validateLocation(e){return e&&e.lat&&e.lng?isNaN(e.lat)?(console.error(new Error("lat value must be a number")),!1):isNaN(e.lat)?(console.error(new Error("lng value must be a number")),!1):e.lat<-90||e.lat>90?(console.error(new Error("lat value should be between -90 and 90.")),!1):!(e.lat<-180||e.lat>180)||(console.error(new Error("lng value should be between -180 and 180.")),!1):(console.error(new Error("location must be an object with lat and lng keys defined")),!1)}var types={any:Q.any,bool:Q.bool,boolRequired:Q.bool.isRequired,components:Q.arrayOf(Q.string),compoundClause:Q.oneOf(["filter","must"]),children:Q.any,data:Q.arrayOf(Q.object),dataFieldArray:Q.oneOfType([Q.string,Q.arrayOf(Q.string)]).isRequired,dataNumberBox:Q.shape({label:Q.string,start:Q.number.isRequired,end:Q.number.isRequired}).isRequired,date:Q.oneOfType([Q.string,Q.arrayOf(Q.string)]),dateObject:Q.object,excludeFields:Q.arrayOf(Q.string),fieldWeights:Q.arrayOf(Q.number),filterLabel:Q.string,func:Q.func,funcRequired:Q.func.isRequired,fuzziness:Q.oneOf([0,1,2,"AUTO"]),headers:Q.object,hits:Q.arrayOf(Q.object),iconPosition:Q.oneOf(["left","right"]),includeFields:Q.arrayOf(Q.string),labelPosition:Q.oneOf(["left","right","top","bottom"]),number:Q.number,options:Q.oneOfType([Q.arrayOf(Q.object),Q.object]),paginationAt:Q.oneOf(["top","bottom","both"]),range:Q.shape({start:Q.number.isRequired,end:Q.number.isRequired}),rangeLabels:Q.shape({start:Q.string.isRequired,end:Q.string.isRequired}),react:Q.shape({and:reactKeyType,or:reactKeyType,not:reactKeyType}),selectedValues:Q.object,selectedValue:Q.oneOfType([Q.string,Q.arrayOf(Q.string),Q.arrayOf(Q.object),Q.object,Number,Q.arrayOf(Number)]),suggestions:Q.arrayOf(Q.object),supportedOrientations:Q.oneOf(["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"]),sortBy:Q.oneOf(["asc","desc"]),sortOptions:Q.arrayOf(Q.shape({label:Q.string,dataField:Q.string,sortBy:Q.string})),sortByWithCount:Q.oneOf(["asc","desc","count"]),stats:Q.arrayOf(Q.object),string:Q.string,stringArray:Q.arrayOf(Q.string),stringOrArray:Q.oneOfType([Q.string,Q.arrayOf(Q.string)]),stringRequired:Q.string.isRequired,style:Q.object,themePreset:Q.oneOf(["light","dark"]),queryFormatSearch:Q.oneOf(["and","or"]),queryFormatNumberBox:Q.oneOf(["exact","lte","gte"]),params:Q.object.isRequired,props:Q.object,rangeLabelsAlign:Q.oneOf(["left","right"]),title:Q.oneOfType([Q.string,Q.nullable]),tooltipTrigger:Q.oneOf(["always","none","hover"]),location:Q.custom(validateLocation),unit:Q.oneOf(["mi","miles","yd","yards","ft","feet","in","inch","km","kilometers","m","meters","cm","centimeters","mm","millimeters","NM","nmi","nauticalmiles"]),value:Q.string.def(void 0),reactivesearchAPIConfig:Q.shape({recordAnalytics:Q.bool,emptyQuery:Q.bool,suggestionAnalytics:Q.bool,enableQueryRules:Q.bool,enableSearchRelevancy:Q.bool,userId:Q.string,useCache:Q.bool,customEvents:Q.object,enableTelemetry:Q.bool.def(!0)}).def({}),mongodb:Q.shape({db:Q.string,collection:Q.string}),endpointConfig:Q.shape({url:Q.string.isRequired,method:Q.string,headers:Q.object,body:Q.object}),AIConfig:Q.shape({systemPrompt:Q.string,topDocsForContext:Q.number,maxTokens:Q.number,docTemplate:Q.string,queryTemplate:Q.string,temperature:Q.number}),AIUIConfig:Q.shape({loaderMessage:Q.string,showSourceDocuments:Q.bool,renderSourceDocument:Q.func,onSourceClick:Q.func,askButton:Q.bool,showFeedback:Q.bool})};function _isSlot(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var getClassName=lib_8.getClassName,handleA11yAction=lib_8.handleA11yAction;function getStartPage(e,t,n){var r=parseInt(e/2,10),o=t-(n?Math.ceil(r/2)-1:r);return o>1?o:2}var Pagination={name:"Pagination",functional:!0,props:{currentPage:types.number,innerClass:types.style,pages:types.number,setPage:types.func,totalPages:types.number,showEndPage:Q.bool,prevLabel:types.string,nextLabel:types.string},render:function(e){var t=e.$props,n=function(){t.currentPage&&t.setPage(t.currentPage-1)},r=function(){t.currentPage<t.totalPages-1&&t.setPage(t.currentPage+1)};if(!t.totalPages)return null;var o,s,a,i,l=getClassName(t.innerClass,"button"),u=0===t.currentPage,c=l||u?l+" "+(u?"active":""):"",p=function(e){var n=t.pages,r=t.currentPage,o=t.totalPages,s=t.setPage,a=t.showEndPage,i="start"===e?getStartPage(n,r,a):Math.max(2,Math.ceil(o-(n-1)/2+1)),u=[],c=i;if(i<=o){var p=n<o?i+(n-1):o+1;a&&(p="start"===e?i+(Math.ceil(n/2)-n%2):o+1),r>o-n+2&&(i=Math.max(2,o-n+2),p=i+n);for(var d=function(e){var t=r===e-1,n=l||t?l+" "+(t?"active":""):"",a=vue.createVNode(Button,{class:n,primary:t,tabIndex:"0",onKeyPress:function(t){return handleA11yAction(t,(function(){return s(e-1)}))},alt:"page-"+e,onClick:function(){return s(e-1)}},_isSlot(e)?e:{default:function(){return[e]}});e<=o+1&&(u.push(a),e===Math.min(o+1,p)-1&&(c=e))},h=i;h<Math.min(o+1,p);h+=1)d(h)}return[u,i,c]};return vue.createVNode("div",{class:pagination+" "+getClassName(t.innerClass,"pagination")},[vue.createVNode(Button,vue.mergeProps(babelHelperVueTransformOn({click:n,"key-press":function(e){return handleA11yAction(e,n)}}),{class:getClassName(t.innerClass,"button")||"",disabled:0===t.currentPage,tabIndex:"0"}),{default:function(){return[t.prevLabel||"Prev"]}}),vue.createVNode(Button,vue.mergeProps(babelHelperVueTransformOn({click:function(){return t.setPage(0)}}),{class:c,primary:u,onKeyPress:function(e){return handleA11yAction(e,(function(){return t.setPage(0)}))},tabIndex:"0"}),{default:function(){return[vue.createTextVNode("1")]}}),t.showEndPage&&t.currentPage>=Math.floor(t.pages/2)+!!(t.pages%2)&&2!==p("start")[1]?vue.createVNode("span",null,[vue.createTextVNode("...")]):null,(o=t.showEndPage,s=t.currentPage,a=t.totalPages,i=t.pages,o?s<=a-i+2||a<i?p("start")[0]:null:p("start")[0]),t.showEndPage&&t.pages>2&&t.currentPage<=t.totalPages-Math.ceil(.75*t.pages)&&p("start")[2]!==p("end")[1]-1?vue.createVNode("span",null,[vue.createTextVNode("...")]):null,t.showEndPage&&t.totalPages>=t.pages&&p("end")[0],vue.createVNode(Button,vue.mergeProps(babelHelperVueTransformOn({click:r,"key-press":function(e){return handleA11yAction(e,r)}}),{class:getClassName(t.innerClass,"button")||"",disabled:t.currentPage>=t.totalPages-1,tabIndex:"0"}),{default:function(){return[t.nextLabel||"Next"]}})])}},_templateObject$1;Pagination.install=function(e){e.component(Pagination.name,Pagination)};var PoweredByImage=styled("img")(_templateObject$1||(_templateObject$1=_taggedTemplateLiteralLoose(["\n\twidth: 110px;\n"]))),PoweredBy=function(){return vue.createVNode("a",{href:"https://appbase.io/",target:"_blank",rel:"noopener noreferrer"},[vue.createVNode(PoweredByImage,{src:"https://cdn.jsdelivr.net/gh/appbaseio/cdn@d2ec210045e59104ee5485841fa17b23fc83f097/appbase/logos/rbc-logo.svg"},null)])},hasOwn=Object.prototype.hasOwnProperty;function is(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function shallowEqual(e,t){if(is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o+=1)if(!hasOwn.call(t,n[o])||!is(e[n[o]],t[n[o]]))return!1;return!0}var defaultMapState=function(){return{}},defaultMapDispatch={},normalizeMapState=function(e){if("function"==typeof e)return e;if(e===Object(e))return function(t,n){return Object.keys(e).filter((function(t){return"function"==typeof e[t]})).reduce((function(r,o){var s;return _extends({},r,((s={})[o]=e[o](t,n),s))}),{})};throw new Error("[revux] - mapState provided to connect is invalid")},connector=function(e,t){return void 0===e&&(e=defaultMapState),void 0===t&&(t=defaultMapDispatch),function(n){var r=normalizeMapState(e);return{name:"connect-"+n.name,mixins:[n],inject:["$$store"],data:function(){var e=_extends({},r(this.$$store.getState(),this.$props||{}),bindActionCreators(t,this.$$store.dispatch));return Object.keys(e).reduce((function(t,n){var r;return _extends({},t,((r={})[n]=e[n],r))}),{})},created:function(){var e=this;this._unsubscribe=function(e,t,n){var r=t(e.getState());return e.subscribe((function(){var o=t(e.getState());if(!shallowEqual(r,o)){var s=r;n(r=o,s)}}))}(this.$$store,(function(t){return r(t,e.$props||{})}),(function(t){Object.keys(t).forEach((function(n){e[n]=t[n]}))}))},beforeUnmount:function(){this._unsubscribe()}}}},defaultQueryUtil=lib_8.updateDefaultQuery,customQueryUtil=lib_8.updateCustomQuery,isEqual=lib_8.isEqual,connect=function(){return connector.apply(void 0,arguments)},X_SEARCH_CLIENT="ReactiveSearch Vue",composeThemeObject=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n={};return"boolean"!=typeof t&&Object.keys(t).length&&(n=_extends({},t)),{typography:_extends({},e.typography,n.typography),colors:_extends({},e.colors,n.colors),component:_extends({},e.component,n.component)}},isFunction=function(e){return"function"==typeof e};function parseValueArray(e,t){var n;Array.isArray(e)?n=[].concat(e):n=Object.keys(e).map((function(t){return e[t]?t:null}));return n.includes(t)?n.filter((function(e){return e!==t})):[].concat(n,[t])}var getComponent=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=(t.$slots||t.$props).render;return n?n(e):null},hasCustomRenderer=function(e){void 0===e&&(e={});var t=(e.$slots||e.$props).render;return Boolean(t)},getValidPropsKeys=function(e){return void 0===e&&(e={}),Object.keys(e).filter((function(e){return constants_3$1.includes(e)}))},isEvent=function(e){return!!(e&&e.stopPropagation&&e.preventDefault)},updateDefaultQuery=function(e,t,n,r){defaultQueryUtil(e,_extends({},n,{setDefaultQuery:t}),r)},updateCustomQuery=function(e,t,n,r){customQueryUtil(e,_extends({},n,{setCustomQuery:t}),r)},isQueryIdentical=function(e,t,n,r){return"function"!=typeof e||"function"!=typeof t||isEqual(t(n,r),e(n,r))},getCamelCase=function(e){void 0===e&&(e="");var t=e.split("-").map((function(e,t){return t?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e})).join("");return["u-r-l-params"].includes(e)&&(t=t[0].toUpperCase()+t.substring(1)),t||""},isEmpty=function(e){return!(e&&e.length&&Object.keys(e).length)};function isNumeric(e){return/^-?\d+$/.test(e)}function isHotkeyCombination(e){return"string"==typeof e&&-1!==e.indexOf("+")}function getCharFromCharCode(e){var t=e,n=t-48*Math.floor(t/48);return String.fromCharCode(t>=96?n:t)}function parseFocusShortcuts(e){if(isEmpty(e))return[];var t=[];return e.forEach((function(e){if("string"==typeof e)if(isHotkeyCombination(e)){for(var n,r=e.split("+"),o=[],s=0;s<r.length;s+=1)isNumeric(r[s])?o.push(getCharFromCharCode(+r[s])):o.push(r[s]);n=o.join("+"),t.push(n)}else isNumeric(e)?t.push(getCharFromCharCode(+e)):t.push(e);else t.push(getCharFromCharCode(e))})),t}var MODIFIER_KEYS=["shift","ctrl","alt","control","option","cmd","command"];function extractModifierKeysFromFocusShortcuts(e){return e.filter((function(e){return MODIFIER_KEYS.includes(e)}))}function decodeHtml(e){return"string"!=typeof e?e:e.replace(/&#([0-9]{1,3});/gi,(function(e,t){var n=parseInt(t,10);return String.fromCharCode(n)}))}var addComponent=lib_5.addComponent,removeComponent=lib_5.removeComponent,watchComponent=lib_5.watchComponent,setQueryListener=lib_5.setQueryListener,setComponentProps=lib_5.setComponentProps,updateComponentProps=lib_5.updateComponentProps,pushToAndClause=lib_8.pushToAndClause,checkPropChange=lib_8.checkPropChange,checkSomePropChange=lib_8.checkSomePropChange,ComponentWrapper=function(e,t){return void 0===t&&(t={componentType:null,internalComponent:!1}),{name:"ComponentWrapper",$timestamp:null,props:{destroyOnUnmount:Q.bool.def(!0)},created:function(){var e=this,n=_extends({},this.$attrs),r={};Object.keys(n).forEach((function(e){r[getCamelCase(e)]=n[e]})),t.componentType===constants_1$1.AIAnswer&&(r.enableAI=!0),this.componentProps=r,this.componentId=this.componentProps.componentId,this.react=this.componentProps.react,this.$timestamp=(new Date).getTime();var o=[];this.$$store&&(o=this.$$store.getState().components);if(this.destroyOnUnmount||-1===o.indexOf(this.componentProps.componentId)){this.addComponent(this.componentId,this.$timestamp);this.setQueryListener(this.componentId,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.$emit.apply(e,["queryChange"].concat(n)),e.$emit.apply(e,["query-change"].concat(n))}),(function(t){e.$emit("error",t)})),this.setComponentProps(this.componentId,this.componentProps,t.componentType)}(t.internalComponent||this.componentProps.defaultQuery&&t.componentType===constants_1$1.reactiveComponent)&&(this.internalComponent=transform_11(this.componentId)),this.internalComponent&&(this.destroyOnUnmount||-1===o.indexOf(this.internalComponent))&&(this.addComponent(this.internalComponent,this.$timestamp),this.setComponentProps(this.internalComponent,this.componentProps,t.componentType)),this.internalComponent&&this.setReact(this.componentProps,!1)},mounted:function(){this.internalComponent&&this.setReact(this.componentProps,!0)},beforeDestroy:function(){if(this.destroyOnUnmount){var e={};if(this.$$store)e=this.$$store.getState().registeredComponentsTimestamps;e[this.componentId]===this.$timestamp&&(this.removeComponent(this.componentId),this.internalComponent&&this.removeComponent(this.internalComponent))}},watch:{$attrs:{deep:!0,handler:function(e){var n=this,r=getValidPropsKeys(e);checkSomePropChange(e,this.savedComponentProps,r,(function(){n.updateComponentProps(n.componentId,e,t.componentType),n.updateComponentProps(n.internalComponent,e,t.componentType)}))}},react:function(e,t){var n=this;checkPropChange(e,t,(function(){return n.setReact(n.componentProps)}))}},methods:{setReact:function(e,t){var n=e.react,r=e.executeInitialQuery;if(this.internalComponent)if(n){var o=pushToAndClause(n,this.internalComponent);this.watchComponent(e.componentId,o,r)}else this.watchComponent(e.componentId,{and:this.internalComponent},t||r);else this.watchComponent(e.componentId,n,t||r)}},render:function(){return vue.h(e,null,this.$slots)}}},mapStateToProps=function(e,t){return{savedComponentProps:e.props[t.componentId]}},mapDispatchToProps={addComponent:addComponent,removeComponent:removeComponent,setQueryListener:setQueryListener,watchComponent:watchComponent,setComponentProps:setComponentProps,updateComponentProps:updateComponentProps},ComponentWrapper$1=function(e,t){return void 0===t&&(t={}),connect(mapStateToProps,mapDispatchToProps)(ComponentWrapper(e,t))},deepValue=function(e,t){return t.split(".").reduce((function(e,t){return e?e[t]:null}),e)},PreferencesConsumer=function PreferencesConsumer(component){return{name:"PreferencesConsumer",inject:{$searchPreferences:{default:null}},render:function render(){var _this=this,userProps=Object.keys(this.$attrs).reduce((function(e,t){var n;return _extends({},e,((n={})[getCamelCase(t)]=_this.$attrs[t],n))}),{}),context=this.$searchPreferences;if(!userProps||!userProps.componentId)throw Error("ReactiveSearch: componentId is required");var componentId=userProps.componentId,preferencesPath=userProps.preferencesPath,preferences;context&&(preferences=deepValue(context,preferencesPath||["componentSettings",componentId].join(".")));var componentProps=userProps;return preferences&&(componentProps=preferences.rsConfig?_extends({},preferences.rsConfig,componentProps):_extends({},preferences,componentProps),void 0!==preferences.enabled&&!preferences.enabled)?null:(Object.keys(componentProps).forEach((function(p){"string"==typeof componentProps[p]&&["defaultQuery","customQuery","setOption"].includes(p)&&(componentProps[p]=eval(componentProps[p]))})),vue.h(component,componentProps,this.$slots))}}},_templateObject$2,Title=styled("h2")(_templateObject$2||(_templateObject$2=_taggedTemplateLiteralLoose(["\n\tmargin: 0 0 8px;\n\tfont-size: 1rem;\n\tcolor: ",";\n"])),(function(e){return e.theme.colors.titleColor})),_templateObject$3,_templateObject2$1,_templateObject3$1,container=css(_templateObject$3||(_templateObject$3=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tmargin: 0;\n\tborder-radius: 0.25rem;\n\toverflow: hidden;\n"]))),smallImage="\n\twidth: 100px;\n\theight: 100px;\n",Image=styled("div")(_templateObject2$1||(_templateObject2$1=_taggedTemplateLiteralLoose(["\n\twidth: 160px;\n\theight: 160px;\n\t",";\n\tmargin: 0;\n\tbackground-size: contain;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n\tbackground-image: ",";\n"])),(function(e){return e.small?smallImage:null}),(function(e){return"url("+e.src+")"})),ListItem=styled("a")(_templateObject3$1||(_templateObject3$1=_taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\theight: auto;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 0;\n\tbackground-color: ",";\n\tdisplay: flex;\n\tflex-direction: row;\n\tmargin: 0;\n\tpadding: 10px;\n\tborder-bottom: 1px solid ",";\n\tcolor: ",";\n\t","; all 0.3s ease;\n\n\t&:hover, &:focus {\n\t\tbackground-color: ",";\n\t}\n\n\t&:last-child {\n\t\tborder: 0;\n\t}\n\n\th2 {\n\t\twidth: 100%;\n\t\tline-height: 1.2rem;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\tmargin: 0;\n\t\tpadding: 0 0 8px;\n\t}\n\n\tp {\n\t\tmargin: 0;\n\t}\n\n\tarticle {\n\t\twidth: ",";\n\t\tpadding-left: ",";\n\t\tfont-size: 0.9rem;\n\t}\n\n\t&:hover, &:focus {\n\t\tbox-shadow: 0 0 0 0 rgba(0,0,0,0.10);\n\t}\n\n\t@media (max-width: 420px) {\n\t\tmin-width: 0;\n\t\tmargin: 0;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tborder: 1px solid #eee;\n\n\t\t&:hover, &:focus {\n\t\t\tbox-shadow: 0;\n\t\t}\n\t}\n\n\t","\n"])),(function(e){var t=e.theme;return t.colors.backgroundColor?curriedLighten(.1,t.colors.backgroundColor):"#fff"}),(function(e){var t=e.theme;return t.colors.backgroundColor?curriedLighten(.3,t.colors.backgroundColor):curriedLighten(.68,t.colors.textColor)}),(function(e){return e.theme.colors.textColor}),(function(e){return e.href?"cursor: pointer":null}),(function(e){var t=e.theme;return t.colors.backgroundColor?curriedLighten(.2,t.colors.backgroundColor):"#fdfefd"}),(function(e){return e.image?e.small?"calc(100% - 100px)":"calc(100% - 160px)":"100%"}),(function(e){return e.image?"10px":0}),(function(e){return e.isTreeListItem?"border-bottom: none; width:max-content; cursor:pointer; padding: 5px 12px;":""})),ResultListWrapper={name:"ResultListWrapper",functional:!0,render:function(e){return vue.createVNode("div",vue.mergeProps({className:container},e.$props),[e.$slots.default()])}},_templateObject$4,_templateObject2$2,_templateObject3$2;ResultListWrapper.install=function(e){e.component(ResultListWrapper.name,ResultListWrapper)};var container$1=css(_templateObject$4||(_templateObject$4=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-direction: row;\n\tjustify-content: center;\n\tflex-wrap: wrap;\n\tmargin: 0 -8px;\n\n\t@media (max-width: 420px) {\n\t\tmargin: 0;\n\t}\n"]))),Image$1=styled("div")(_templateObject2$2||(_templateObject2$2=_taggedTemplateLiteralLoose(["\n\twidth: calc(100% + 20px);\n\theight: 220px;\n\tmargin: -10px -10px 0;\n\tbackground-color: ",";\n\tbackground-size: contain;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n"])),(function(e){return e.theme.colors.backgroundColor||"#fcfcfc"})),Card=styled("a")(_templateObject3$2||(_templateObject3$2=_taggedTemplateLiteralLoose(["\n\twidth: auto;\n\tflex-grow: 1;\n\toutline: none;\n\ttext-decoration: none;\n\tmin-width: 240px;\n\tmax-width: 250px;\n\tborder-radius: 0.25rem;\n\tbackground-color: ",";\n\theight: 300px;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\tmargin: 8px;\n\tpadding: 10px;\n\toverflow: hidden;\n\tbox-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);\n\tcolor: ",";\n\t",";\n\ttransition: all 0.3s ease;\n\n\th2 {\n\t\twidth: 100%;\n\t\tfont-size: 0.9rem;\n\t\tline-height: 1.2rem;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\tmargin: 0;\n\t\tpadding: 10px 0 8px;\n\t}\n\n\tp {\n\t\tmargin: 0;\n\t}\n\n\tarticle {\n\t\tflex-grow: 1;\n\t\tfont-size: 0.9rem;\n\t}\n\n\t&:hover,\n\t&:focus {\n\t\tbox-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.3);\n\t}\n\n\t@media (max-width: 420px) {\n\t\twidth: 50%;\n\t\tmin-width: 0;\n\t\theight: 210px;\n\t\tmargin: 0;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tborder: 1px solid #eee;\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tbox-shadow: 0;\n\t\t}\n\t}\n"])),(function(e){var t=e.theme;return t.colors.backgroundColor?curriedLighten(.1,t.colors.backgroundColor):"#fff"}),(function(e){return e.theme.colors.textColor}),(function(e){return e.href?"cursor: pointer":null})),ResultCardsWrapper={name:"ResultCardsWrapper",functional:!0,render:function(e){return vue.createVNode("div",vue.mergeProps({className:container$1},e.$props),[e.$slots.default()])}},_templateObject$5;ResultCardsWrapper.install=function(e){e.component(ResultCardsWrapper.name,ResultCardsWrapper)};var leftLabel="\n\tflex-direction: row;\n\talign-items: center;\n",rightLabel="\n\tflex-direction: row-reverse;\n\talign-items: center;\n",topLabel="\n\tflex-direction: column;\n",bottomLabel="\n\tflex-direction: column-reverse;\n",border=function(e){var t=e.theme.colors;return"\n\tborder: 1px solid "+((void 0===t?{}:t).borderColor||"#ccc")+";\n"},Flex=styled("div")(_templateObject$5||(_templateObject$5=_taggedTemplateLiteralLoose(["\n\tdisplay: ",";\n\t",";\n\t",";\n\t",";\n\t",";\n\t",";\n\n\t",";\n\t",";\n\t",";\n\n\t",";\n\t",";\n\t",";\n\n\tsvg.cancel-icon {\n\t\tcursor: pointer;\n\t\tfill: ",";\n\t\tflex-basis: 30px;\n\n\t\t&:hover {\n\t\t\tfill: ",";\n\t\t}\n\t}\n"])),(function(e){return e.inline?"inline-flex":"flex"}),(function(e){return("left"===e.labelPosition||"right"===e.iconPosition)&&leftLabel}),(function(e){return("right"===e.labelPosition||"left"===e.iconPosition)&&rightLabel}),(function(e){return"top"===e.labelPosition&&topLabel}),(function(e){return"bottom"===e.labelPosition&&bottomLabel}),(function(e){return e.showBorder&&border}),(function(e){return e.justifyContent&&"\n\t\t\tjustify-content: "+e.justifyContent+";\n\t\t"}),(function(e){return e.alignItems&&"\n\t\t\talign-items: "+e.alignItems+";\n\t\t"}),(function(e){return e.gap&&"\n\t\t\tgap: "+e.gap+";\n\t\t"}),(function(e){return e.flex&&"\n\t\t\tflex: "+e.flex+";\n\t\t"}),(function(e){return e.direction&&"\n\t\t\tflex-direction: "+e.direction+";\n\t\t"}),(function(e){return e.basis&&"\n\t\t\tflex-basis: "+e.basis+";\n\t\t"}),(function(e){var t=e.theme.colors,n=void 0===t?{}:t;return n.borderColor||curriedLighten(.3,n.textColor||"#fff")}),(function(e){var t=e.theme;return t.colors?t.colors.textColor:""})),_templateObject$6,_templateObject2$3,resultStats=css(_templateObject$6||(_templateObject$6=_taggedTemplateLiteralLoose(["\n\tflex-grow: 1;\n\tfont-size: 0.82rem;\n"]))),sortOptions=css(_templateObject2$3||(_templateObject2$3=_taggedTemplateLiteralLoose(["\n\tcolor: #424242;\n\theight: 32px;\n\tfont-size: 0.82rem;\n\tpadding: 0 25px 0 10px;\n\tbackground: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iNC45NSIgaGVpZ2h0PSIxMCIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxLjQxIDQuNjcgMi40OCAzLjE4IDMuNTQgNC42NyAxLjQxIDQuNjciLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMy41NCA1LjMzIDIuNDggNi44MiAxLjQxIDUuMzMgMy41NCA1LjMzIi8+PC9zdmc+)\n\t\tno-repeat 95% 50%;\n\tbackground-color: #fff;\n\t-moz-appearance: none;\n\t-webkit-appearance: none;\n\tappearance: none;\n\t-webkit-border-radius: 0;\n\tborder-radius: 0;\n\tborder: 0;\n\toutline: 1px solid #ddd;\n\toutline-offset: -1px;\n"]))),recordImpressions=lib_5.recordImpressions,isEqual$1=lib_8.isEqual,debounce=function(e,t){clearTimeout(e._tId),e._tId=setTimeout((function(){e()}),t)},ImpressionTracker={name:"ImpressionTracker",inject:["$$store"],props:{hits:types.hits},created:function(){this.currentHits=[],this.trackedIds={},this.waitingToBeTracked={}},mounted:function(){this.setCurrentHits(this.hits),window&&window.addEventListener("scroll",this.tracker)},destroy:function(){this.clearTrackerInterval()},watch:{hits:function(e,t){if(e&&e!==t){var n=t.map((function(e){return e._id})),r=e.map((function(e){return e._id}));isEqual$1(r,n)||this.setCurrentHits(e)}}},methods:{inViewPort:function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},setCurrentHits:function(e){this.currentHits=e,this.trackedIds={},e&&e.length&&(this.tracker(),this.setTrackerInterval())},recordImpression:function(){var e=this;if(Object.keys(this.waitingToBeTracked).length){var t=_extends({},this.waitingToBeTracked);Object.keys(t).forEach((function(n){t[n]&&t[n].length&&(e.trackImpressions(n,t[n]),delete e.waitingToBeTracked[n])}))}},addToWaitingList:function(e){var t=this.getQueryId();if(e&&t){var n={id:e._id,index:e._index};this.waitingToBeTracked[t]?this.waitingToBeTracked[t].push(n):this.waitingToBeTracked[t]=[n]}},tracker:function(){var e=this;this.getHitIds().length?(window&&document&&this.getHitIds().forEach((function(t){var n=document.getElementById(t);if(n&&e.inViewPort(n)){var r=e.currentHits.find((function(e){return e._id===t}));e.trackedIds[t]=!0,e.addToWaitingList(r)}})),debounce(this.recordImpression,300)):this.clearTrackerInterval()},setTrackerInterval:function(){this.intervalID=setInterval(this.tracker,1e3)},clearTrackerInterval:function(){this.intervalID&&(clearInterval(this.intervalID),this.intervalID=null)},getQueryId:function(){var e=this.$$store?this.$$store.getState():null;return e?e.analytics.searchId:null},getHitIds:function(){var e=this;return this.currentHits.map((function(e){return e._id})).filter((function(t){return!e.trackedIds[t]}))}},render:function(){return this.$slots.default()}},mapDispatchToProps$1={trackImpressions:recordImpressions},ImpressionTracker$1=connect((function(){return null}),mapDispatchToProps$1)(ImpressionTracker);function _isSlot$1(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var setQueryOptions=lib_5.setQueryOptions,updateQuery=lib_5.updateQuery,loadMore=lib_5.loadMore,setValue=lib_5.setValue,updateComponentProps$1=lib_5.updateComponentProps,setDefaultQuery=lib_5.setDefaultQuery,recordResultClick=lib_5.recordResultClick,isEqual$2=lib_8.isEqual,getQueryOptions=lib_8.getQueryOptions,getClassName$1=lib_8.getClassName,parseHits=lib_8.parseHits,getCompositeAggsQuery=lib_8.getCompositeAggsQuery,getResultStats=lib_8.getResultStats,extractQueryFromCustomQuery=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery=lib_8.getOptionsForCustomQuery,ReactiveList={name:"ReactiveList",components:{ResultListWrapper:ResultListWrapper,ResultCardsWrapper:ResultCardsWrapper},data:function(){var e=0,t=this.defaultPage||-1;return t>=0?e=t:this.currentPage&&(e=Math.max(this.currentPage-1,0)),this.__state={from:e*this.size,currentPageState:e},this.__state},created:function(){var e=this;this.pagination&&this.aggregationField&&console.warn("Pagination is not supported when aggregationField is present. The list will be rendered with infinite scroll");var t=this.defaultPage||-1;t>=0&&(this.currentPageState=t,this.from=this.currentPageState*this.$props.size),this.internalComponent=this.$props.componentId+"__internal",this.sortOptionIndex=0,this.defaultSortOption&&this.sortOptions&&Array.isArray(this.sortOptions)&&(this.sortOptionIndex=this.sortOptions.findIndex((function(t){return t.label===e.defaultSortOption}))),this.urlSortOption&&(this.sortOptionIndex=this.$props.sortOptions.findIndex((function(t){return t.label===e.urlSortOption}))||0),this.updateComponentProps(this.componentId,{from:this.from},constants_1$1.reactiveList),this.updateComponentProps(this.internalComponent,{from:this.from},constants_1$1.reactiveList)},props:{currentPage:Q.number,includeFields:types.includeFields,className:types.string,componentId:types.stringRequired,compoundClause:types.compoundClause,dataField:types.stringRequired,aggregationField:types.string,aggregationSize:Q.number,defaultQuery:types.func,defaultSortOption:types.string,excludeFields:types.excludeFields,innerClass:types.style,listClass:Q.string.def(""),loader:types.title,render:types.func,renderItem:types.func,renderNoResults:Q.any.def("No Results found."),renderError:types.title,renderResultStats:types.func,pages:Q.number.def(5),pagination:Q.bool.def(!1),infiniteScroll:Q.bool.def(!0),paginationAt:Q.oneOf(["top","bottom","both"]).def("bottom"),react:types.react,scrollOnChange:Q.bool.def(!0),showResultStats:Q.bool.def(!0),showEndPage:Q.bool.def(!1),size:Q.number.def(10),sortBy:types.sortBy,sortOptions:types.sortOptions,URLParams:Q.bool.def(!1),prevLabel:types.string,nextLabel:types.string,distinctField:types.string,distinctFieldConfig:types.props,index:Q.string,endpoint:types.endpointConfig},computed:{shouldRenderPagination:function(){return this.pagination&&!this.aggregationField},totalPages:function(){return Math.ceil(this.total/this.$props.size)||0},hasPageChangeListener:function(){return this.$attrs&&this.$attrs.pageChange},hasResultStatsListener:function(){return this.$attrs&&this.$attrs.resultStats},stats:function(){return _extends({},getResultStats(this),{currentPage:this.currentPageState,displayedResults:this.data.length})},hasCustomRender:function(){return hasCustomRenderer(this)},showInfiniteScroll:function(){return this.infiniteScroll&&!this.shouldRenderPagination},data:function(){var e=parseHits(this.hits)||[],t=parseHits(this.promotedResults)||[],n=e;if(t.length){var r=t.map((function(e){return e._id})).filter(Boolean);r&&(n=n.filter((function(e){return!r.includes(e._id)}))),n=[].concat(t,n)}return helper_18(n)}},watch:{sortOptions:function(e,t){isEqual$2(t,e)||this.updateQueryOptions(this.$props)},sortBy:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},size:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},dataField:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},includeFields:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},excludeFields:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},defaultQuery:function(e,t){if(!isQueryIdentical(e,t,null,this.$props)){var n=getQueryOptions(this.$props);n.from=0,this.$defaultQuery=e(null,this.$props);var r=extractQueryFromCustomQuery(this.$defaultQuery),o=getOptionsForCustomQuery(this.$defaultQuery);o&&(n=_extends({},n,o)),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props),this.setQueryOptions(this.$props.componentId,_extends({},n,this.getAggsQuery()),!r),this.updateQuery({componentId:this.internalComponent,query:r},!0),this.currentPageState=0,this.from=0}},promotedResults:function(e,t){isEqual$2(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){isEqual$2(e,t)||this.$emit("data",this.getData())},time:function(e,t){isEqual$2(e,t)||this.$emit("data",this.getData())},hits:function(e,t){this.$emit("data",this.getData()),this.shouldRenderPagination?this.isLoading&&(t||e)&&(this.hasPageChangeListener?(this.$emit("pageChange",this.currentPageState+1,this.totalPages),this.$emit("page-change",this.currentPageState+1,this.totalPages)):this.scrollOnChange&&window.scrollTo(0,0)):t&&e&&(t.length===e.length&&e.length!==this.$props.total||e.length<t.length&&(this.scrollOnChange&&window.scrollTo(0,0),this.from=0))},rawData:function(e,t){isEqual$2(e,t)||this.$emit("data",this.getData())},currentPage:function(e,t){t!==e&&e>0&&e<=this.totalPages&&this.setPage(e-1)},infiniteScroll:function(e,t){e!==t&&(e&&!this.pagination?window.addEventListener("scroll",this.scrollHandler):window.removeEventListener("scroll",this.scrollHandler))},pagination:function(e,t){e!==t&&(!e&&this.infiniteScroll?window.addEventListener("scroll",this.scrollHandler):window.removeEventListener("scroll",this.scrollHandler))},defaultPage:function(e,t){this.currentPageState!==e&&t!==e&&this.setPage(e>=0?e:0)},isLoading:function(e,t){e!==t&&this.$emit("loading",e)}},mounted:function(){this.defaultPage<0&&this.currentPage>0&&this.setPageURL(this.$props.componentId,this.currentPage,this.$props.componentId,!1,this.URLParams);var e=getQueryOptions(this.$props);if(e.from=this.$data.from,this.sortOptions&&this.sortOptions[this.sortOptionIndex]){var t,n=this.sortOptions[this.sortOptionIndex].dataField,r=this.sortOptions[this.sortOptionIndex].sortBy;e.sort=[(t={},t[n]={order:r},t)],this.updateComponentProps(this.componentId,{dataField:n,sortBy:r},constants_1$1.reactiveList)}else if(this.$props.sortBy){var o;e.sort=[(o={},o[this.$props.dataField]={order:this.$props.sortBy},o)]}this.$defaultQuery=null,this.$props.defaultQuery&&(this.$defaultQuery=this.$props.defaultQuery(),e=_extends({},e,getOptionsForCustomQuery(this.$defaultQuery)),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props));var s=extractQueryFromCustomQuery(this.$defaultQuery);this.setQueryOptions(this.$props.componentId,_extends({},e,this.getAggsQuery()),!1),this.$defaultQuery?this.updateQuery({componentId:this.internalComponent,query:s},!1):this.updateQuery({componentId:this.internalComponent,query:null},!1),this.showInfiniteScroll&&window.addEventListener("scroll",this.scrollHandler)},beforeUnmount:function(){this.showInfiniteScroll&&window.removeEventListener("scroll",this.scrollHandler)},render:function(){var e=this,t=this.$data.hits,n=parseHits(t)||[];return vue.createVNode("div",{style:this.$props.style,class:this.$props.className},[this.isLoading&&this.shouldRenderPagination&&this.showInfiniteScroll&&(this.$slots.loader||this.$props.loader),this.renderErrorComponent(),vue.createVNode(Flex,{labelPosition:this.sortOptions?"right":"left",class:getClassName$1(this.$props.innerClass,"resultsInfo")},{default:function(){return[e.sortOptions?e.renderSortOptions():null,e.$props.showResultStats&&n.length?e.renderStats():null]}}),!this.isLoading&&t&&0===t.length?this.renderNoResult():null,!this.shouldRenderPagination||"top"!==this.$props.paginationAt&&"both"!==this.$props.paginationAt?null:vue.createVNode(Pagination,{pages:this.$props.pages,totalPages:this.totalPages,currentPage:this.currentPageState,setPage:this.setPage,innerClass:this.$props.innerClass,prevLabel:this.$props.prevLabel,nextLabel:this.$props.nextLabel},null),this.renderResults(),this.isLoading&&!this.shouldRenderPagination?this.$slots.loader||this.$props.loader||vue.createVNode("div",{style:{textAlign:"center",margin:"20px 0",color:"#666"}},[vue.createTextVNode("Loading...")]):null,!this.shouldRenderPagination||"bottom"!==this.$props.paginationAt&&"both"!==this.$props.paginationAt?null:vue.createVNode(Pagination,{pages:this.$props.pages,totalPages:Math.ceil(this.$data.total/this.$props.size),currentPage:this.currentPageState,setPage:this.setPage,showEndPage:this.$props.showEndPage,innerClass:this.$props.innerClass,prevLabel:this.$props.prevLabel,nextLabel:this.$props.nextLabel},null),this.url.endsWith("appbase.io")&&n.length?vue.createVNode(Flex,{direction:"row-reverse",class:getClassName$1(this.$props.innerClass,"poweredBy")},{default:function(){return[vue.createVNode(PoweredBy,null,null)]}}):null])},methods:{renderErrorComponent:function(){var e=this.$slots.renderError||this.$props.renderError;return e&&this.error&&!this.isLoading?isFunction(e)?e(this.error):e:null},renderResults:function(){var e=this,t=this.$props.size,n=this.$slots.renderItem||this.$props.renderItem,r=this.hasCustomRender?this.getComponent():vue.createVNode("div",{class:this.$props.listClass+" "+getClassName$1(this.$props.innerClass,"list")},[this.data.map((function(r,o){return n({item:r,count:e.currentPageState*t+o+1,triggerClickAnalytics:function(){return e.triggerClickAnalytics(e.currentPageState*t+o)}})}))]);return this.analytics?vue.createVNode(ImpressionTracker$1,{hits:this.data},_isSlot$1(r)?r:{default:function(){return[r]}}):r},updateQueryOptions:function(e){var t=getQueryOptions(e);if(t.from=this.$data.from,e.sortOptions&&Array.isArray(e.sortOptions)){var n,r=e.defaultSortOption?e.sortOptions.findIndex((function(t){return t.label===e.defaultSortOption})):0;if(e.sortOptions[r])t.sort=[(n={},n[e.sortOptions[r].dataField]={order:e.sortOptions[r].sortBy},n)]}else if(e.sortBy){var o;t.sort=[(o={},o[e.dataField]={order:e.sortBy},o)]}this.setQueryOptions(this.$props.componentId,_extends({},t,this.getAggsQuery()),!0)},getAggsQuery:function(){var e=this.$props,t=e.size,n=e.aggregationField,r=this.$data.afterKey,o={size:t};return n&&(o.aggs=getCompositeAggsQuery({props:this.$props,after:r||null,showTopHits:!0}).aggs),o},scrollHandler:function(){!this.isLoading&&window.innerHeight+window.pageYOffset+300>=document.body.scrollHeight&&this.loadMore()},loadMore:function(){if((!this.aggregationField||this.afterKey)&&this.hits&&!this.shouldRenderPagination&&this.total>this.hits.length){var e=this.$data.from+this.$props.size;if(this.hits.length<e)return;var t=_extends({},getQueryOptions(this.$props),this.getAggsQuery());this.from=e,updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props),this.loadMoreAction(this.$props.componentId,_extends({},t,{from:e}),!0,!!this.aggregationField)}},setPage:function(e){if(e!==this.currentPageState){this.$emit("pageClick",e+1),this.$emit("page-click",e+1);var t=this.$props.size*e,n=getQueryOptions(this.$props);n.from=this.$data.from,this.from=t,this.currentPageState=e,this.loadMoreAction(this.$props.componentId,_extends({},n,{from:t}),!1),this.setPageURL(this.$props.componentId,e+1,this.$props.componentId,!1,this.URLParams)}},renderStats:function(){var e=this.$slots.renderResultStats||this.$props.renderResultStats;return e&&this.$data.total?e(this.stats):this.stats.numberOfResults?vue.createVNode("p",{class:resultStats+" "+getClassName$1(this.$props.innerClass,"resultStats")},[this.stats.numberOfResults,vue.createTextVNode(" results found in "),this.stats.time||0,vue.createTextVNode("ms")]):null},renderNoResult:function(){var e=this.$slots.renderNoResults||this.$props.renderNoResults;return this.$slots.renderNoResults?isFunction(e)?e():e:vue.createVNode("p",{class:getClassName$1(this.$props.innerClass,"noResults")||null},[isFunction(e)?e():e])},handleSortChange:function(e){var t=e.target.value;if(this.sortOptions&&this.sortOptions[t]){var n,r=getQueryOptions(this.$props);r.from=0;var o=this.sortOptions[t].dataField,s=this.sortOptions[t].sortBy;r.sort=[(n={},n[o]={order:s},n)],this.sortOptionIndex=t,this.updateComponentProps(this.componentId,{dataField:o,sortBy:s},constants_1$1.reactiveList),this.setQueryOptions(this.$props.componentId,r,!0),this.setPage(0),this.currentPageState=0,this.from=0;var a=this.$props.sortOptions[this.sortOptionIndex]?this.$props.sortOptions[this.sortOptionIndex].label:null;this.setPageURL(this.$props.componentId+"sortOption",a,this.$props.componentId+"sortOption",!1,this.$props.URLParams)}},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.getData().data.find((function(t){return t._click_id===e}));r&&r._id&&(n=r._id)}this.recordResultClick(e,n)},renderSortOptions:function(){return vue.createVNode("select",vue.mergeProps(babelHelperVueTransformOn({change:this.handleSortChange}),{class:sortOptions+" "+getClassName$1(this.$props.innerClass,"sortOptions"),name:"sort-options","aria-label":"Sort options",value:this.sortOptionIndex}),[this.sortOptions.map((function(e,t){return vue.createVNode("option",{key:e.label,value:t},[e.label])}))])},withClickIds:function(e){var t=this.getAllData().base;return e.map((function(e,n){return _extends({},e,{_click_id:t+n})}))},getAllData:function(){var e=this.size,t=this.promotedResults,n=this.aggregationData,r=this.customData,o=this.currentPage,s=this.hits,a=o*e;return{results:parseHits(s)||[],customData:r||{},promotedResults:parseHits(t)||[],aggregationData:n,loadMore:this.loadMore,base:a,triggerClickAnalytics:this.triggerClickAnalytics}},getData:function(){var e=this.getAllData(),t=e.promotedResults,n=e.aggregationData,r=e.customData;return{data:this.data,aggregationData:this.withClickIds(n||[]),promotedData:this.withClickIds(t||[]),rawData:this.rawData,resultStats:this.stats,customData:r}},getComponent:function(){var e=_extends({error:this.error,loading:this.isLoading||!1,loadMore:this.loadMore,triggerClickAnalytics:this.triggerClickAnalytics,setPage:this.setPage},this.getData());return getComponent(e,this)}}},mapStateToProps$1=function(e,t){return{defaultPage:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value-1,urlSortOption:e.selectedValues[t.componentId+"sortOption"]&&e.selectedValues[t.componentId+"sortOption"].value,hits:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId],promotedResults:e.promotedResults[t.componentId],customData:e.customData[t.componentId],time:e.hits[t.componentId]&&e.hits[t.componentId].time,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,analytics:e.config&&e.config.analytics,url:e.config.url,error:e.error[t.componentId],afterKey:e.aggregations[t.componentId]&&e.aggregations[t.componentId][t.aggregationField]&&e.aggregations[t.componentId][t.aggregationField].after_key,componentProps:e.props[t.componentId],isLoading:e.isLoading[t.componentId]}},mapDispatchtoProps={loadMoreAction:loadMore,setPageURL:setValue,setQueryOptions:setQueryOptions,updateQuery:updateQuery,updateComponentProps:updateComponentProps$1,setDefaultQuery:setDefaultQuery,recordResultClick:recordResultClick};ReactiveList.generateQueryOptions=function(e){var t=getQueryOptions(e),n=e.size,r=e.dataField,o=e.defaultSortOption,s=e.sortOptions,a=e.currentPage,i=e.sortBy;t.from=a?(a-1)*(n||10):0,t.size=n||10;if(s)t.sort=[function(){var e;if(o){var t,n=s.find((function(e){return e.label===o}));if(n)return(t={})[n.dataField]={order:n.sortBy},t}return(e={})[s[0].dataField]={order:s[0].sortBy},e}()];else if(i){var l;t.sort=[(l={},l[r]={order:i},l)]}return t},ReactiveList.hasInternalComponent=function(){return!0};var RLConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$1,mapDispatchtoProps)(ReactiveList),{componentType:constants_1$1.reactiveList,internalComponent:ReactiveList.hasInternalComponent()}));function URL$1(e){var t=RegExp("^(([^:/?#]*)?://)?(((.*)?@)?([^/?#]*)?)([^?#]*)(\\?([^#]*))?(#(.*))?"),n=e.match(t);return{protocol:n[2],auth:n[5],host:n[6],path:n[7],query:n[9],hash:n[11]}}RLConnected.name=ReactiveList.name,RLConnected.generateQueryOptions=ReactiveList.generateQueryOptions,RLConnected.hasInternalComponent=ReactiveList.hasInternalComponent,RLConnected.install=function(e){e.component(RLConnected.name,RLConnected),e.component(ResultListWrapper.name,ResultListWrapper),e.component(ResultCardsWrapper.name,ResultCardsWrapper)},RLConnected.componentType=constants_1$1.reactiveList;var urlParserLite=URL$1;function hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var decode=function(e,t,n,r){t=t||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var s=/\+/g;e=e.split(t);var a=1e3;r&&"number"==typeof r.maxKeys&&(a=r.maxKeys);var i=e.length;a>0&&i>a&&(i=a);for(var l=0;l<i;++l){var u,c,p,d,h=e[l].replace(s,"%20"),f=h.indexOf(n);f>=0?(u=h.substr(0,f),c=h.substr(f+1)):(u=h,c=""),p=decodeURIComponent(u),d=decodeURIComponent(c),hasOwnProperty(o,p)?Array.isArray(o[p])?o[p].push(d):o[p]=[o[p],d]:o[p]=d}return o},stringifyPrimitive=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},encode=function(e,t,n,r){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(r){var o=encodeURIComponent(stringifyPrimitive(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(stringifyPrimitive(e))})).join(t):o+encodeURIComponent(stringifyPrimitive(e[r]))})).filter(Boolean).join(t):r?encodeURIComponent(stringifyPrimitive(r))+n+encodeURIComponent(stringifyPrimitive(e)):""},querystring=createCommonjsModule((function(e,t){t.decode=t.parse=decode,t.encode=t.stringify=encode})),querystring_1=querystring.decode,querystring_2=querystring.parse,querystring_3=querystring.encode,querystring_4=querystring.stringify,browserPonyfill=createCommonjsModule((function(e,t){var n="undefined"!=typeof self?self:commonjsGlobal,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in e,a="ArrayBuffer"in e;if(a)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function m(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=f(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=u(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},d.prototype.delete=function(e){delete this.map[u(e)]},d.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},d.prototype.set=function(e,t){this.map[u(e)]=c(t)},d.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},r&&(d.prototype[Symbol.iterator]=d.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n,r,o=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),v.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function $(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call($.prototype),$.prototype.clone=function(){return new $(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},$.error=function(){var e=new $(null,{status:0,statusText:""});return e.type="error",e};var C=[301,302,303,307,308];$.redirect=function(e,t){if(-1===C.indexOf(t))throw new RangeError("Invalid status code");return new $(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,n){return new Promise((function(r,s){var a=new b(e,n);if(a.signal&&a.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var i=new XMLHttpRequest;function l(){i.abort()}i.onload=function(){var e,t,n={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;r(new $(o,n))},i.onerror=function(){s(new TypeError("Network request failed"))},i.ontimeout=function(){s(new TypeError("Network request failed"))},i.onabort=function(){s(new t.DOMException("Aborted","AbortError"))},i.open(a.method,a.url,!0),"include"===a.credentials?i.withCredentials=!0:"omit"===a.credentials&&(i.withCredentials=!1),"responseType"in i&&o&&(i.responseType="blob"),a.headers.forEach((function(e,t){i.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",l),i.onreadystatechange=function(){4===i.readyState&&a.signal.removeEventListener("abort",l)}),i.send(void 0===a._bodyInit?null:a._bodyInit)}))}S.polyfill=!0,e.fetch||(e.fetch=S,e.Headers=d,e.Request=b,e.Response=$),t.Headers=d,t.Request=b,t.Response=$,t.fetch=S,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t})),fetch$1=unwrapExports(browserPonyfill),browserPonyfill_1=browserPonyfill.fetch,browserPonyfill_2=browserPonyfill.Headers,browserPonyfill_3=browserPonyfill.Request,browserPonyfill_4=browserPonyfill.Response,_typeof$1="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};function contains(e,t){return-1!==e.indexOf(t)}function isAppbase(e){return contains(e,"scalr.api.appbase.io")}function btoa$1(){for(var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r=t,o="",s=0,a=0,i=n;r.charAt(0|a)||(i="=",a%1);o+=i.charAt(63&s>>8-a%1*8)){if((e=r.charCodeAt(a+=3/4))>255)throw new Error('"btoa" failed: The string to be encoded contains characters outside of the Latin1 range.');s=s<<8|e}return o}function validateRSQuery(e){if(e&&"[object Array]"===Object.prototype.toString.call(e)){for(var t=0;t<e.length;t+=1){var n=e[t];if(!n)return new Error("query object can not have an empty value");if(!n.id)return new Error("'id' field must be present in query object")}return!0}return new Error("invalid query value, 'query' value must be an array")}function validate(e,t){var n=[],r={object:null,string:"",number:0};Object.keys(t).forEach((function(o){var s=t[o].split("|").find((function(t){return _typeof$1(e[o])===t}));s&&e[o]!==r[s]||n.push(o)}));for(var o="",s=0;s<n.length;s+=1)o+=n[s]+", ";return!(n.length>0)||new Error("fields missing: "+o)}function removeUndefined(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e||0!==Object.keys(e).length||e.constructor!==Object?JSON.parse(JSON.stringify(e)):null}function encodeHeaders(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={};return t?Object.keys(e).forEach((function(t){n[t]=encodeURI(e[t])})):n=e,n}function getMongoRequest(e,t){var n={};return e&&(n.index=e),t&&(t.db&&(n.db=t.db),t.collection&&(n.collection=t.collection)),n}function getTelemetryHeaders(e,t){var n={};return t?(Object.assign(n,{"X-Search-Client":"Appbase JS"}),!1===e&&Object.assign(n,{"X-Enable-Telemetry":e}),n):n}var backendAlias={MONGODB:"mongodb",ELASTICSEARCH:"elasticsearch"},dataTypes={ARRAY:"array",FUNCTION:"function",OBJECT:"object",NUMBER:"number",BOOLEAN:"boolean",STRING:"string"},checkDataType=function(e){return(void 0===e?"undefined":_typeof$1(e))===dataTypes.OBJECT?Array.isArray(e)?dataTypes.ARRAY:dataTypes.OBJECT:void 0===e?"undefined":_typeof$1(e)};function validateSchema(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=Object.keys(e).filter((function(t){return!!e[t]})),o=Object.keys(t),s=[];o.forEach((function(e){t[e].required&&s.push(e)})),s.forEach((function(e){if(!r.includes(e))throw new Error(e+" is required when using the "+n+" Search backend.")})),r.forEach((function(r){if(!o.includes(r))throw new Error(r+" property isn't accepted property by "+n+" backend.");var s=Array.isArray(t[r].type)?t[r].type:[].concat(t[r].type),a=checkDataType(e[r]);if(!s.includes(a))throw new Error("The property "+r+" is expected with type(s) ["+s.join(", ")+"], but type was set as "+a+".")}))}function isValidHttpUrl(e){var t=void 0;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol}var mongodb={url:{type:dataTypes.STRING,required:!0},app:{type:dataTypes.STRING,required:!1},credentials:{type:dataTypes.STRING,required:!1},enableTelemetry:{type:dataTypes.BOOLEAN,required:!1},mongodb:{type:dataTypes.OBJECT,required:!0},username:{type:dataTypes.STRING,required:!1},password:{type:dataTypes.STRING,required:!1}},elasticsearch={url:{type:dataTypes.STRING,required:!0},app:{type:dataTypes.STRING,required:!0},credentials:{type:dataTypes.STRING,required:!1},enableTelemetry:{type:dataTypes.BOOLEAN,required:!1},username:{type:dataTypes.STRING,required:!1},password:{type:dataTypes.STRING,required:!1}},SCHEMA={mongodb:mongodb,elasticsearch:elasticsearch};function AppBase(e){var t=urlParserLite((e.endpoint?e.endpoint.url:e.url)||""),n=t.auth,r=void 0===n?null:n,o=t.host,s=void 0===o?"":o,a=t.path,i=void 0===a?"":a,l=t.protocol,u=void 0===l?"":l,c=e.url;"/"===(c=s+i).slice(-1)&&(c=c.slice(0,-1));var p=backendAlias[e.mongodb?"MONGODB":"ELASTICSEARCH"],d=SCHEMA[p];if(e.endpoint&&isValidHttpUrl(e.endpoint.url)&&(d.url.required=!1,d.app.required=!1,d.credentials.required=!1),validateSchema({url:e.url,app:e.app,credentials:e.credentials,username:e.username,password:e.password,enableTelemetry:e.enableTelemetry,mongodb:e.mongodb},d,p),"string"!=typeof u||""===u)throw new Error("Protocol is not present in url. URL should be of the form https://appbase-demo-ansible-abxiydt-arc.searchbase.io");var h=r||null;if("string"==typeof e.credentials&&""!==e.credentials?h=e.credentials:"string"==typeof e.username&&""!==e.username&&"string"==typeof e.password&&""!==e.password&&(h=e.username+":"+e.password),!e.mongodb&&isAppbase(c)&&null===h)throw new Error("Authentication information is not present. Did you add credentials?");this.url=c,this.protocol=u,this.app=e.app,this.credentials=h,e.mongodb&&(this.mongodb=e.mongodb),e.httpRequestTimeout&&(this.httpRequestTimeout=e.httpRequestTimeout),"boolean"==typeof e.enableTelemetry&&(this.enableTelemetry=e.enableTelemetry)}function fetchRequest(e){var t=this;return new Promise((function(n,r){var o=removeUndefined(e);try{var s=o.method,a=o.path,i=o.params,l=o.body,u=o.isRSAPI,c=o.isSuggestionsAPI,p=o.isMongoRequest,d=void 0!==p&&p,h=o.httpRequestTimeout,f=void 0===h?0:h,m=c?".suggestions":t.app,g=l,y=a.endsWith("msearch")||a.endsWith("bulk")?"application/x-ndjson":"application/json",v=Object.assign({},{Accept:"application/json","Content-Type":y},e.headers,t.headers),b=Date.now();t.credentials&&(v.Authorization="Basic "+btoa$1(t.credentials));var _={method:s,headers:v};if(Array.isArray(g)){var $="";g.forEach((function(e){$+=JSON.stringify(e),$+="\n"})),g=$}else g=JSON.stringify(g)||{};0!==Object.keys(g).length&&(_.body=g);var C={},S="";i&&(S="?"+querystring.stringify(i));var O=d?t.protocol+"://"+t.url:t.protocol+"://"+t.url+"/"+m+"/"+a+S;return function(e){if(t.transformRequest&&"function"==typeof t.transformRequest){var n=t.transformRequest(e);return n instanceof Promise?n:Promise.resolve(n)}return Promise.resolve(e)}(Object.assign({},{url:O},_)).then((function(e){var t=Object.assign({},e),o=t.url;delete t.url;var s=new AbortController,a=s.signal,i=fetch$1(o||O,Object.assign({},t,{headers:u&&!d?Object.assign({},t.headers,{"x-timestamp":(new Date).getTime()}):t.headers,signal:a})),c=new Promise((function(e,t){f>0&&setTimeout((function(){t(new Error("Request timeout")),s.abort()}),f)}));return Promise.race([i,c]).then((function(e){return e.status>=500?r(e):(C=e.headers,e.json().then((function(t){if(e.status>=400)return r(e);if(t&&t.error)return r(t);if(u&&t&&"[object Object]"===Object.prototype.toString.call(t)&&l&&l.query&&l.query instanceof Array){var o=0,s=l.query.filter((function(e){return e.execute||void 0===e.execute})).length;if(t&&Object.keys(t).forEach((function(e){t[e]&&Object.prototype.hasOwnProperty.call(t[e],"error")&&t[e].error&&(o+=1)})),o>0&&s===o)return r(t)}if(t&&t.responses instanceof Array&&t.responses.length===t.responses.filter((function(e){return Object.prototype.hasOwnProperty.call(e,"error")})).length)return r(t);var a=Object.assign({},t,{_timestamp:b,_headers:C});return n(a)})).catch((function(e){return r(e)})))})).catch((function(e){return r(e)}))})).catch((function(e){return r(e)}))}catch(e){return r(e)}}))}function indexApi(e){var t=removeUndefined(e),n=validate(t,{body:"object"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,s=t.id,a=t.body;delete t.type,delete t.body,delete t.id;var i=void 0;return i=s?o?o+"/"+encodeURIComponent(s):encodeURIComponent(s):o,this.performFetchRequest({method:"POST",path:i,params:t,body:a})}function getApi(e){var t=removeUndefined(e),n=validate(t,{id:"string|number"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,s=t.id;delete t.type,delete t.id;var a=o+"/"+encodeURIComponent(s);return this.performFetchRequest({method:"GET",path:a,params:t})}function updateApi(e){var t=removeUndefined(e),n=validate(t,{id:"string|number",body:"object"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,s=t.id,a=t.body;delete t.type,delete t.id,delete t.body;var i=o+"/"+encodeURIComponent(s)+"/_update";return this.performFetchRequest({method:"POST",path:i,params:t,body:a})}function deleteApi(e){var t=removeUndefined(e),n=validate(t,{id:"string|number"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,s=t.id;delete t.type,delete t.id;var a=o+"/"+encodeURIComponent(s);return this.performFetchRequest({method:"DELETE",path:a,params:t})}function bulkApi(e){var t=removeUndefined(e),n=validate(t,{body:"object"});if(!0!==n)throw n;var r=t.type,o=t.body;delete t.type,delete t.body;var s=void 0;return s=r?r+"/_bulk":"_bulk",this.performFetchRequest({method:"POST",path:s,params:t,body:o})}function searchApi(e){var t=removeUndefined(e),n=validate(t,{body:"object"});if(!0!==n)throw n;var r=void 0;r=Array.isArray(t.type)?t.type.join():t.type;var o=t.body;delete t.type,delete t.body;var s=void 0;return s=r?r+"/_search":"_search",this.performFetchRequest({method:"POST",path:s,params:t,body:o})}function msearchApi(e){var t=removeUndefined(e),n=validate(t,{body:"object"});if(!0!==n)throw n;var r=void 0;r=Array.isArray(t.type)?t.type.join():t.type;var o=t.body;delete t.type,delete t.body;var s=void 0;return s=r?r+"/_msearch":"_msearch",this.performFetchRequest({method:"POST",path:s,params:t,body:o})}function reactiveSearchApi(e,t,n){var r=removeUndefined(t),o=validateRSQuery(e);if(!0!==o)throw o;var s={settings:r,query:e};return this.mongodb&&Object.assign(s,{mongodb:getMongoRequest(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch",body:s,headers:getTelemetryHeaders(this.enableTelemetry,!this.mongodb),isRSAPI:!0,isMongoRequest:!!this.mongodb,params:n,httpRequestTimeout:this.httpRequestTimeout||0})}function reactiveSearchv3Api(e,t,n){var r=removeUndefined(t),o=validateRSQuery(e);if(!0!==o)throw o;var s={settings:r,query:e};return this.mongodb&&Object.assign(s,{mongodb:getMongoRequest(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch.v3",body:s,headers:getTelemetryHeaders(this.enableTelemetry,!this.mongodb),isRSAPI:!0,isMongoRequest:!!this.mongodb,params:n,httpRequestTimeout:this.httpRequestTimeout||0})}function getMappings(){return this.performFetchRequest({method:"GET",path:"_mapping"})}function getSuggestionsv3Api(e,t){var n=removeUndefined(t),r=validateRSQuery(e);if(!0!==r)throw r;var o={settings:n,query:e};return this.mongodb&&Object.assign(o,{mongodb:getMongoRequest(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch.v3",body:o,headers:getTelemetryHeaders(this.enableTelemetry),isRSAPI:!0,isSuggestionsAPI:!0,isMongoRequest:!!this.mongodb})}function appbasejs(e){var t=new AppBase(e);return AppBase.prototype.performFetchRequest=fetchRequest,AppBase.prototype.index=indexApi,AppBase.prototype.get=getApi,AppBase.prototype.update=updateApi,AppBase.prototype.delete=deleteApi,AppBase.prototype.bulk=bulkApi,AppBase.prototype.search=searchApi,AppBase.prototype.msearch=msearchApi,AppBase.prototype.reactiveSearch=reactiveSearchApi,AppBase.prototype.reactiveSearchv3=reactiveSearchv3Api,AppBase.prototype.getQuerySuggestions=getSuggestionsv3Api,AppBase.prototype.getMappings=getMappings,AppBase.prototype.setHeaders=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.headers=t?encodeHeaders(e):e},"undefined"!=typeof window&&(window.Appbase=t),t}function _extends$2(){return(_extends$2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function btoa$2(e){void 0===e&&(e="");for(var t,n=e,r="",o=0,s=0,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.charAt(0|s)||(a="=",s%1);r+=a.charAt(63&o>>8-s%1*8)){if((t=n.charCodeAt(s+=3/4))>255)throw new Error('"btoa" failed: The string to be encoded contains characters outside of the Latin1 range.');o=o<<8|t}return r}function validateIndex(e){if(!e)throw new Error("appbase-analytics: A valid index must be present to record analytics events.")}function validateCredentials(e){if(!e)throw new Error("appbase-analytics: Auth credentials is missing.")}function validateURL(e){if(!e)throw new Error("appbase-analytics: URL is missing.")}function validateQuery(e,t){if(null==e&&!t)throw new Error("appbase-analytics: query or queryID must be present to register a click/conversion event")}function validateQueryID(e){if(!e)throw new Error("appbase-analytics: queryID must be present to save search/favorite")}function validateClickObjects(e){if(!e||Object.keys(e).length<1)throw new Error("appbase-analytics: at least one click object must be present to register a click event")}function validateConversionObjects(e){if(!e||Object.keys(e).length<1)throw new Error("appbase-analytics: at least one click object must be present to register a click event")}function initClient(e){void 0===e&&(e={});var t={credentials:e.credentials,index:e.index,url:e.url,userID:e.userID,globalCustomEvents:e.globalCustomEvents,queryID:"",headers:null,_request:function(e,n,r,o,s){var a=_extends$2({user_id:t.userID},r,{custom_events:_extends$2({},r&&r.custom_events,{},t.globalCustomEvents)}),i="";return o&&(i=Object.keys(o).map((function(e){return e+"="+o[e]})).join("&")),fetch$1(t.url+"/"+n+"?"+i,{method:e,headers:_extends$2({},t.headers,{"Content-Type":"application/json",Authorization:"Basic "+btoa$2(t.credentials)}),body:"GET"===e?null:JSON.stringify(a)}).then((function(e){s&&s(null,e)})).catch((function(e){s&&s(e,null)}))}};return validateIndex(t.index),validateCredentials(t.credentials),validateURL(t.url),t.search=function(e,n){validateQuery(e.query,e.queryID);if(t._request){var r={query:e.query,query_id:e.queryID,custom_events:e.customEvents,filters:e.filters,hits:e.hits,impressions:e.impressions};t._request("PUT",t.index+"/_analytics/search",r,null,(function(e,r){r?r.json().then((function(o){o&&o.query_id&&(t.queryID=o.query_id),n&&n(e,r)})).catch((function(e){n&&n(e,r)})):n&&n(e,r)}))}},t.click=function(e,n){if(validateQuery(e.query,e.queryID),validateClickObjects(e.objects),t._request){var r={click_on:e.objects,click_type:e.isSuggestionClick?"suggestion":"result",query:e.query,query_id:e.queryID,custom_events:e.customEvents,meta:e.meta};t._request("PUT",t.index+"/_analytics/click",r,null,n)}},t.conversion=function(e,n){if(validateQuery(null,e.queryID),validateConversionObjects(e.objects),t._request){var r={conversion_on:e.objects,query_id:e.queryID,meta:e.meta};t._request("PUT",t.index+"/_analytics/conversion",r,null,n)}},t.saveSearch=function(e,n){validateQueryID(e.queryID);var r={query_id:e.queryID,save_search_id:e.saveSearchID,save_search_meta:e.saveSearchMeta,user_id:e.userID,custom_events:e.customEvents};t._request("PUT","_analytics/save-search",r,null,n)},t.deleteSavedSearch=function(e,n){t._request("DELETE","_analytics/save-search/"+e,null,null,n)},t.getSavedSearches=function(e,n){t._request&&t._request("GET","_analytics/saved-searches",null,e,n)},t.favorite=function(e,n){if(validateQueryID(e.queryID),!e.favoriteOn||""===e.favoriteOn)throw new Error("appbase-analytics: favoriteOn property is required");if(!e.source)throw new Error("appbase-analytics: source property is required");var r={query_id:e.queryID,favorite_on:e.favoriteOn,source:e.source,id:e.id,meta:e.meta,user_id:e.userID,custom_events:e.customEvents};t._request("PUT","_analytics/favorite",r,null,n)},t.getFavorites=function(e,n){t._request&&t._request("GET","_analytics/favorites",null,e,n)},t.setUserID=function(e){t.userID=e},t.setGlobalCustomEvents=function(e){t.globalCustomEvents=e},t.setHeaders=function(e){t.headers=e},t.getQueryID=function(){return t.queryID},t.saveSessionUsefulness=function(e,n,r){if("string"!=typeof e||""===e)throw new Error("appbase-analytics: AISessionId is required");if("boolean"!=typeof n.useful)throw new Error("appbase-analytics: useful property is required and must be a boolean");var o={useful:n.useful,reason:n.reason,user_id:n.userID,meta:n.meta};t._request("PUT","_ai/"+e+"/analytics",o,null,r)},t}var index={init:initClient};
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
10
10
|
*
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
*
|
|
22
22
|
* https://github.com/Astray-git/vue-highlight-words
|
|
23
23
|
*
|
|
24
|
-
*/function _defineProperty$1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_defineProperty$1(e,t,n[t])}))}return e}var VueHighlightWords={functional:!0,props:{activeClassName:String,activeIndex:Number,activeStyle:Object,autoEscape:Boolean,findChunks:Function,highlightClassName:String,highlightStyle:Object,highlightTag:[Object,Function,String],sanitize:Function,searchWords:{type:Array,validator:function(e){return e.every((function(e){return"string"==typeof e}))},required:!0},textToHighlight:{type:String,required:!0},unhighlightClassName:String,unhighlightStyle:Object},render:function(e,t){var n,r=t.props,o=r.activeClassName,s=void 0===o?"":o,a=r.activeIndex,i=void 0===a?-1:a,l=r.activeStyle,u=r.autoEscape,c=r.caseSensitive,p=void 0!==c&&c,d=r.findChunks,h=r.highlightClassName,f=void 0===h?"":h,m=r.highlightStyle,g=void 0===m?{}:m,y=r.highlightTag,v=void 0===y?"mark":y,b=r.sanitize,_=r.searchWords,$=r.textToHighlight,C=r.unhighlightClassName,S=void 0===C?"":C,O=r.unhighlightStyle,w=t.data,T=dist_1({autoEscape:u,caseSensitive:p,findChunks:d,sanitize:b,searchWords:_,textToHighlight:$}),k=v,A=-1,E="";return e("span",_objectSpread({},w),T.map((function(t,r){var o=$.substr(t.start,t.end-t.start);if(t.highlight){var a=++A===+i;E="".concat(f," ").concat(a?s:""),n=!0===a&&null!=l?Object.assign({},g,l):g;var u={class:E,key:r,style:n};return"string"!=typeof k&&(u.props={highlightIndex:A}),w.scopedSlots?e(k,u,[w.scopedSlots.default({children:o,highlightIndex:A})]):e(k,u,o)}return e("span",{class:S,key:r,style:O},o)})))}},_templateObject$f,highlightStyle={fontWeight:600,padding:0,backgroundColor:"transparent",color:"inherit"},PredictiveSuggestion=styled("span")(_templateObject$f||(_templateObject$f=_taggedTemplateLiteralLoose(["\n\t.highlight {\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont-weight: 600;\n\t\tpadding: 0;\n\t}\n"]))),SuggestionItem={name:"SuggestionItem",props:{currentValue:types.string,suggestion:types.any,innerHTML:types.string.isRequired},data:function(){return{isOverflowing:!1}},methods:{updateOverflowing:function(){if(this.$refs.container&&this.$refs.content){var e=this.$refs,t=e.container,n=e.content,r=t.offsetWidth,o=n.scrollWidth;this.isOverflowing=o>r}else this.isOverflowing=!1}},mounted:function(){this.updateOverflowing()},render:function(){var e=this,t=this.suggestion,n=t.label,r=t.value,o=t.title,s=t.description,a=t.image,i=t.isPredictiveSuggestion,l=t._suggestion_type,u=t._category;return n?"string"==typeof n?vue.createVNode("div",{ref:"container",class:"trim",title:this.isOverflowing?n:""},[vue.createVNode("div",{ref:"content"},[u||!i&&!l?vue.createVNode(VueHighlightWords,{searchWords:u?[u]:this.currentValue.split(" "),textToHighlight:n,autoEscape:!0,highlightStyle:highlightStyle},null):vue.createVNode(PredictiveSuggestion,{innerHTML:n},null)])]):n:o||a||s?vue.createVNode(Flex,{alignItems:"center",css:{width:"100%"}},{default:function(){return[a&&vue.createVNode("div",{css:{margin:"auto",marginRight:10}},[vue.createVNode("img",{src:a,alt:" ",height:"50px",width:"50px",css:{objectFit:"contain"}},null)]),vue.createVNode(Flex,{direction:"column",css:{width:a?"calc(100% - 60px)":"100%"}},{default:function(){return[o&&vue.createVNode("div",{class:"trim"},[vue.createVNode(VueHighlightWords,{searchWords:e.currentValue.split(" "),textToHighlight:o,highlightStyle:highlightStyle,class:css({fontSize:"1rem"})},null)]),s&&vue.createVNode("div",{class:["trim",css({marginTop:3})]},[vue.createVNode(VueHighlightWords,{searchWords:e.currentValue.split(" "),textToHighlight:s,highlightStyle:highlightStyle},null)])]}})]}}):r}},SearchSvg={name:"SearchSvg",props:["styles"],render:function(){return vue.createVNode("svg",{alt:"Search",class:"search-icon",height:"12",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 15",style:_extends({transform:"scale(1.35)",position:"relative"},this.$props.styles?this.$props.styles:{})},[vue.createVNode("title",null,[vue.createTextVNode("Search")]),vue.createVNode("path",{d:"M6.02945,10.20327a4.17382,4.17382,0,1,1,4.17382-4.17382A4.15609,4.15609,0,0,1,6.02945,10.20327Zm9.69195,4.2199L10.8989,9.59979A5.88021,5.88021,0,0,0,12.058,6.02856,6.00467,6.00467,0,1,0,9.59979,10.8989l4.82338,4.82338a.89729.89729,0,0,0,1.29912,0,.89749.89749,0,0,0-.00087-1.29909Z"},null)])}},CancelSvg=function(){return vue.createVNode("svg",{alt:"Clear",class:"cancel-icon",xmlns:"http://www.w3.org/2000/svg",height:"20px",viewBox:"0 0 24 24",width:"20px"},[vue.createVNode("title",null,[vue.createTextVNode("Clear")]),vue.createVNode("path",{d:"M0 0h24v24H0V0z",fill:"none"},null),vue.createVNode("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"},null)])};function styleInject(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var MicSvg={name:"MicSvg",props:["className"],render:function(){return vue.createVNode("svg",{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",id:"el_xS0FRzQjJ",width:28,height:28,className:this.$props.className,style:{transform:"scale(1.5)"}},[vue.createVNode("g",{id:"el_TvxDfTAtKp",fillRule:"evenodd"},[vue.createVNode("g",{id:"el_D93PK3GbmJ",fillRule:"nonzero",style:{fill:"#595959"}},[vue.createVNode("path",{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_uly3EwA2O3"},null),vue.createVNode("path",{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,-2.84217094e-14 76.9864699,-2.84217094e-14 C55.8825877,-2.84217094e-14 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_tnDbR4ytu4"},null)])])])}},MuteSvg={name:"MuteSvg",props:["className"],render:function(){return vue.createVNode("svg",{style:{transform:"scale(1.5)"},viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",id:"el_D1rEpH2zj",width:28,height:28,className:this.$props.className},[vue.createVNode("g",{id:"el_X81iT9kZYo",fillRule:"evenodd"},[vue.createVNode("g",{id:"el_gMpyalCphp"},[vue.createVNode("path",{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_c7H-3u-D4l",fillRule:"nonzero",style:{fill:"#595959"}},null),vue.createVNode("path",{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,-2.84217094e-14 76.9864699,-2.84217094e-14 C55.8825877,-2.84217094e-14 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_qhFcdAAFwo",fillRule:"nonzero",style:{fill:"#595959"}},null),vue.createVNode("path",{d:"M11.5,206.5 L142.5,12.5",id:"el_M8X8g37WOI",strokeLinecap:"round",strokeLinejoin:"round"},null)])])])}},ListenSvg={name:"ListenSvg",props:["className"],render:function(){return vue.createVNode("svg",{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",id:"el_hiibMG0x-",width:28,height:29,className:this.$props.className,style:{transform:"scale(1.5)"}},[vue.createVNode("defs",null,[vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-1"},null),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-3"},null),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-5"},null),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-7"},null),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-9"},null),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-11"},null),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-13"},null),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-15"},null)]),vue.createVNode("g",{id:"el_QJeJ_2CDw5",fillRule:"evenodd"},[vue.createVNode("g",{id:"el_UYYCfubTRf"},[vue.createVNode("path",{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_uzZNtK32Zi",fillRule:"nonzero",style:{fill:"#0B6AFF"}},null),vue.createVNode("path",{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,0 76.9864699,0 C55.8825877,0 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_EYKQ2N9Kgy",fillRule:"nonzero"},null),vue.createVNode("g",{id:"el_6SDP2LAgKC"},[vue.createVNode("mask",{id:"mask-2",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-1"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_-Vm65Ltfy7",fillRule:"nonzero",mask:"url(#mask-2)"},null),vue.createVNode("rect",{id:"el_q04iZcSim4",mask:"url(#mask-2)",x:"0.279",width:"77",height:"130"},null)]),vue.createVNode("g",{id:"el_6WKby7wXqV"},[vue.createVNode("mask",{id:"mask-4",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-3"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_9bggsfQOtU",fillRule:"nonzero",mask:"url(#mask-4)"},null),vue.createVNode("rect",{id:"el_NKxqi9eIym",mask:"url(#mask-4)",x:"0.279",width:"77",height:"115"},null)]),vue.createVNode("g",{id:"el_Wi-my975tM"},[vue.createVNode("mask",{id:"mask-6",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-5"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_zclQ34fvf7",fillRule:"nonzero",mask:"url(#mask-6)"},null),vue.createVNode("rect",{id:"el_1OsvRT8HkeZ",mask:"url(#mask-6)",x:"0.279",width:"77",height:"100"},null)]),vue.createVNode("g",{id:"el_DkfFFTaFxy8"},[vue.createVNode("mask",{id:"mask-8",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-7"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_aa9sjx4H0vA",fillRule:"nonzero",mask:"url(#mask-8)"},null),vue.createVNode("rect",{id:"el_tea114vWg0J",mask:"url(#mask-8)",x:"0.279",width:"77",height:"85"},null)]),vue.createVNode("g",{id:"el_34IgwiMB5rf"},[vue.createVNode("mask",{id:"mask-10",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-9"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_z5u6RAFhx7d",fillRule:"nonzero",mask:"url(#mask-10)"},null),vue.createVNode("rect",{id:"el_7nfuWmA5Uhy",mask:"url(#mask-10)",x:"0.279",width:"77",height:"70"},null)]),vue.createVNode("g",{id:"el_DeebuCsPTGA"},[vue.createVNode("mask",{id:"mask-12",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-11"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el__ZcqlS20zcw",fillRule:"nonzero",mask:"url(#mask-12)"},null),vue.createVNode("rect",{id:"el_8DnEQnD7VWV",mask:"url(#mask-12)",x:"0.279",width:"77",height:"55"},null)]),vue.createVNode("g",{id:"el_ZOjjrPTvyrv"},[vue.createVNode("mask",{id:"mask-14",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-13"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_FYYKCI_u24e",fillRule:"nonzero",mask:"url(#mask-14)"},null),vue.createVNode("rect",{id:"el_XZty4MnTp5Y",mask:"url(#mask-14)",x:"0.279",width:"77",height:"40"},null)]),vue.createVNode("g",{id:"el_2FATegVmf0K"},[vue.createVNode("mask",{id:"mask-16",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-15"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_RMT1KUfbdF8",fillRule:"nonzero",mask:"url(#mask-16)"},null),vue.createVNode("rect",{id:"el_RgLcovvFiO1",mask:"url(#mask-16)",x:"0.279",width:"77",height:"25"},null)])])])])}},STATUS={inactive:"INACTIVE",stopped:"STOPPED",active:"ACTIVE",denied:"DENIED"},Mic={name:"Mic",props:{children:types.title,lang:Q.string.def("en-US"),iconPosition:Q.string.def("left"),handleResult:types.func,onNoMatch:types.func,onError:types.func,getInstance:types.func,render:types.func,className:types.string,applyClearStyle:Q.bool,showIcon:Q.bool},methods:{getComponent:function(){var e=this.$data.status,t={handleClick:this.handleClick,status:e};return getComponent(t,this)},stopMic:function(){this.instance&&(this.status=STATUS.inactive,this.instance.stop(),this.instance=null)},handleClick:function(){var e=this;if(this.results=[],window&&window.SpeechRecognition){this.$data.status===STATUS.active&&(this.status=STATUS.inactive);var t=this.$props,n=t.handleResult,r=t.onNoMatch,o=t.onError,s=t.lang,a=t.getInstance,i=window.SpeechRecognition;if(this.instance&&this.status!==STATUS.denied)return this.status=STATUS.inactive,this.instance.stop(),void(this.instance=null);this.instance=new i,this.instance.continuous=!0,this.instance.interimResults=!1,this.instance.lang=s,a&&a(this.instance),this.instance.start(),this.instance.onstart=function(){e.status=STATUS.active},this.instance.onresult=function(t){var r=t.results,o=t.timeStamp;e.stopMic(),n&&n({results:r,timeStamp:o}),e.results.push({results:r,timeStamp:o})},this.instance.onnomatch=function(e){return r?r(e):console.warn(e)},this.instance.onerror=function(t){"no-speech"===t.error||"audio-capture"===t.error?e.status=STATUS.inactive:"not-allowed"===t.error&&(e.status=STATUS.denied),console.error(t),o&&o(t)},this.instance.onspeechend=function(){e.status=STATUS.inactive},this.instance.onaudioend=function(){e.status=STATUS.inactive}}}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)},Icon:function(){var e=this.$data.status,t=this.$props.className;switch(e){case STATUS.active:return vue.createVNode(ListenSvg,{className:t,onClick:this.handleClick},null);case STATUS.stopped:case STATUS.denied:return vue.createVNode(MuteSvg,{className:t,onClick:this.handleClick},null);default:return vue.createVNode(MicSvg,{className:t,onClick:this.handleClick},null)}}},data:function(){return{status:STATUS.inactive}},created:function(){this.results=[],"undefined"!=typeof window&&(window.SpeechRecognition=window.webkitSpeechRecognition||window.SpeechRecognition||null,window.SpeechRecognition||console.error("SpeechRecognition is not supported in this browser. Please check the browser compatibility at https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition#Browser_compatibility."))},render:function(){var e=this;return this.hasCustomRenderer?this.getComponent():vue.createVNode(IconWrapper,null,{default:function(){return[e.Icon]}})}},CustomSvg={name:"CustomSvg",props:{className:String,icon:Function,type:String},data:function(){return{customIcon:this.$props.icon&&"function"==typeof this.$props.icon?this.$props.icon():null}},render:function(){return this.customIcon?vue.createVNode("div",{class:this.$props.className},[this.customIcon]):"recent-search-icon"===this.$props.type?vue.createVNode("svg",{xmlns:"http://www.w3.org/2000/svg",alt:"Recent Search",height:"20",width:"20",viewBox:"0 0 24 24",style:{fill:"#707070"},class:this.$props.className},[vue.createVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null),vue.createVNode("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"},null)]):"promoted-search-icon"===this.$props.type?vue.createVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",alt:"promoted search",height:"20",viewBox:"0 0 24 24",class:this.$props.className,style:{fill:"#707070"}},[vue.createVNode("path",{d:"M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279-7.416-3.967-7.417 3.967 1.481-8.279-6.064-5.828 8.332-1.151z"},null)]):"popular-search-icon"===this.$props.type?vue.createVNode("svg",{xmlns:"http://www.w3.org/2000/svg",alt:"Popular Search",height:"20",width:"20",viewBox:"0 0 24 24",style:{fill:"#707070"},class:this.$props.className},[vue.createVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null),vue.createVNode("path",{d:"M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"},null)]):vue.createVNode(SearchSvg,{styles:{position:"relative",fill:"#707070",left:"3px",marginRight:"8px"}},null)}},_templateObject$g,AutofillSvgIcon=styled("button")(_templateObject$g||(_templateObject$g=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tmargin-left: auto;\n\tposition: relative;\n\tright: -3px;\n\tborder: none;\n\toutline: none;\n\tbackground: transparent;\n\tpadding: 0;\n\tz-index: 111000;\n\n\tsvg {\n\t\tcursor: pointer;\n\t\tfill: #707070;\n\t\theight: 20px;\n\t}\n\n\t&:hover {\n\t\tsvg {\n\t\t\tfill: #1c1a1a;\n\t\t}\n\t}\n"]))),AutoFillSvg={name:"AutoFillSvg",render:function(){return vue.createVNode(AutofillSvgIcon,{onClick:this.$attrs.click},{default:function(){return[vue.createVNode("svg",{viewBox:"0 0 24 24"},[vue.createVNode("path",{d:"M8 17v-7.586l8.293 8.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-8.293-8.293h7.586c0.552 0 1-0.448 1-1s-0.448-1-1-1h-10c-0.552 0-1 0.448-1 1v10c0 0.552 0.448 1 1 1s1-0.448 1-1z"},null)])]}})},methods:{clicked:function(e){e.stopPropagation(),window.console.log("hey",e)}}},_templateObject$h,_templateObject2$6,TagsContainer=styled("div")(_templateObject$h||(_templateObject$h=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tmargin-top: 10px;\n\twidth: 100%;\n"]))),TagItem=styled("span")(_templateObject2$6||(_templateObject2$6=_taggedTemplateLiteralLoose(["\n\tcursor: default;\n\tbox-sizing: border-box;\n\tmargin: 0 4px 4px 0;\n\tcolor: #000000d9;\n\tfont-size: 14px;\n\tfont-variant: tabular-nums;\n\tline-height: 1.5715;\n\tlist-style: none;\n\tfont-feature-settings: 'tnum';\n\tdisplay: inline-block;\n\theight: auto;\n\tpadding: 0 2px 0 7px;\n\tfont-size: 12px;\n\tline-height: 22px;\n\twhite-space: nowrap;\n\tbackground: #fafafa;\n\tborder: 1px solid #d9d9d9;\n\tborder-radius: 2px;\n\topacity: 1;\n\ttransition: all 0.3s;\n\n\tspan.close-icon {\n\t\tsvg {\n\t\t\tcursor: pointer;\n\t\t\theight: 15px;\n\t\t\tposition: relative;\n\t\t\ttop: 4px;\n\t\t\tfill: #262626;\n\t\t}\n\t}\n"]))),_templateObject$i,AutosuggestFooterContainer=styled("div")(_templateObject$i||(_templateObject$i=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tcolor: #8792a2;\n\tbackground: #f7fafc;\n\tpadding: 10px;\n\theight: 40px;\n"]))),_templateObject$j,_templateObject2$7,_templateObject3$4,skeletonAnimation=keyframes(_templateObject$j||(_templateObject$j=_taggedTemplateLiteralLoose(["\n 0% {\n background-position: 100% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n"]))),SkeletonLoader=styled("div")(_templateObject2$7||(_templateObject2$7=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 10px;\n"]))),SkeletonLine=styled("div")(_templateObject3$4||(_templateObject3$4=_taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\theight: 20px;\n\tbackground: linear-gradient(\n\t\t90deg,\n\t\trgba(220, 220, 220, 0.5) 25%,\n\t\trgba(240, 240, 240, 0.9) 50%,\n\t\trgba(220, 220, 220, 0.5) 75%\n\t);\n\tbackground-size: 200% 100%;\n\tanimation: "," 1.5s infinite;\n"])),skeletonAnimation),HorizontalSkeletonLoader=vue.defineComponent({name:"HorizontalSkeletonLoader",render:function(){return vue.createVNode(SkeletonLoader,null,{default:function(){return[vue.createVNode(SkeletonLine,null,null),vue.createVNode(SkeletonLine,null,null),vue.createVNode(SkeletonLine,null,null),vue.createVNode(SkeletonLine,null,null)]}})}}),_templateObject$k,_templateObject2$8,_templateObject3$5,_templateObject4$2,_templateObject5$2,_templateObject6$1,_templateObject7$1,_templateObject8$1,_templateObject9$1,_templateObject10,_templateObject11,Chatbox=styled("div")(_templateObject$k||(_templateObject$k=_taggedTemplateLiteralLoose(["\n\tposition: relative;\n\tmargin: 0 auto;\n\tpadding: 10px;\n\tbackground-color: #fafafa;\n\twidth: 100%;\n\tbox-shadow: rgb(0 0 0 / 20%) 0px 0px 6px;\n\tborder-radius: 6px;\n\tmargin-bottom: 20px;\n\tbackground-color: ",";\n\n\t.--trigger-message-wrapper {\n\t\tcursor: pointer;\n\t}\n"])),(function(e){return e.theme&&e.theme.colors&&e.theme.colors.backgroundColor?curriedLighten(.1,e.theme.colors.backgroundColor):"#fff"})),ChatContainer=styled("div")(_templateObject2$8||(_templateObject2$8=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-direction: column;\n\theight: 100%;\n\tposition: relative;\n\t.--ai-answer-error-container {\n\t\ttext-align: center;\n\t\tposition: absolute;\n\t\tbottom: 0px;\n\t\t",";\n\t\tz-index: 1;\n\t\tleft: 50%;\n\t\ttransform: translateX(-50%);\n\t\twidth: 100%;\n\n\t\t.--default-error-element {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\talign-items: center;\n\t\t\tpadding: 10px;\n\t\t\tbackground-color: ",";\n\t\t\tbox-shadow: 0 -5px 5px -2px\n\t\t\t\t",";\n\n\t\t\tspan {\n\t\t\t\tmargin-bottom: 5px;\n\t\t\t}\n\n\t\t\tbutton {\n\t\t\t}\n\t\t}\n\t}\n\n\t",";\n"])),(function(e){return e.showInput?"bottom: 48px;":""}),(function(e){return e.theme&&e.theme.colors&&e.theme.colors.backgroundColor?e.theme.colors.backgroundColor:"#fff"}),(function(e){return e.theme&&e.theme.colors&&e.theme.colors.backgroundColor?e.theme.colors.backgroundColor:"#fff"}),(function(e){return e.showInput?".--ai-answer-feedback-container {\n\t\tmargin-top: 15px;\n\t\tmargin-bottom: -10px;\n\t}":".--ai-answer-feedback-container {\n\t\tmargin-top: 4px;\n\t}"})),MessagesContainer=styled("div")(_templateObject3$5||(_templateObject3$5=_taggedTemplateLiteralLoose(["\n\tmax-height: 400px;\n overflow-y: auto;\n\tpadding: 10px;\n\tdisplay: flex;\n\tflex-direction: column;\n\tmin-height: 200px;\n\n}};\n"]))),typingDots=keyframes(_templateObject4$2||(_templateObject4$2=_taggedTemplateLiteralLoose(["\n 0% {\n transform: translateY(0);\n }\n 50% {\n transform: translateY(-70%);\n }\n 100% {\n transform: translateY(0);\n }\n"]))),TypingIndicator=styled("div")(_templateObject5$2||(_templateObject5$2=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin: 5px !important;\n"]))),TypingDot=styled("div")(_templateObject6$1||(_templateObject6$1=_taggedTemplateLiteralLoose(["\n\twidth: 6px;\n\theight: 6px;\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\tmargin: 0 2px !important;\n\tanimation: "," 1s infinite;\n\t&:nth-child(2) {\n\t\tanimation-delay: 0.2s;\n\t}\n\t&:nth-child(3) {\n\t\tanimation-delay: 0.4s;\n\t}\n"])),(function(e){return e.isSender?"dark"!==e.themePreset?e.theme.colors.primaryTextColor:e.theme.colors.textColor:"dark"!==e.themePreset?e.theme.colors.borderColor:e.theme.colors.textColor}),typingDots),resetCSS=function(e){return"\n\thtml,\n\tbody,\n\tdiv,\n\tspan,\n\tapplet,\n\tobject,\n\tiframe,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tp,\n\tblockquote,\n\tpre,\n\ta,\n\tabbr,\n\tacronym,\n\taddress,\n\tbig,\n\tcite,\n\tcode,\n\tdel,\n\tdfn,\n\tem,\n\timg,\n\tins,\n\tkbd,\n\tq,\n\ts,\n\tsamp,\n\tsmall,\n\tstrike,\n\tstrong,\n\tsub,\n\tsup,\n\ttt,\n\tvar,\n\tb,\n\tu,\n\ti,\n\tcenter,\n\tdl,\n\tdt,\n\tdd,\n\tol,\n\tul,\n\tli,\n\tfieldset,\n\tform,\n\tlabel,\n\tlegend,\n\ttable,\n\tcaption,\n\ttbody,\n\ttfoot,\n\tthead,\n\ttr,\n\tth,\n\ttd,\n\tarticle,\n\taside,\n\tcanvas,\n\tdetails,\n\tembed,\n\tfigure,\n\tfigcaption,\n\tfooter,\n\theader,\n\thgroup,\n\tmenu,\n\tnav,\n\toutput,\n\truby,\n\tsection,\n\tsummary,\n\ttime,\n\tmark,\n\taudio,\n\tvideo {\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\tborder: 0;\n\t\tfont-size: 100%;\n\t\tfont: inherit;\n\t\tvertical-align: baseline;\n\t\toverflow-wrap: anywhere;\n\t}\n\tpre {\n\t\tmargin: 10px auto;\n\t\twhite-space: pre-wrap;\n\n\t}\n\ttable {\n\t\tmargin: 10px auto;\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\t}\n\ttr {\n\t\tborder-bottom: 1px solid #ccc;\n\t}\n\tth,\n\ttd {\n\t\ttext-align: left;\n\t\tpadding: 4px;\n\t\tborder: 1px solid;\n\t\tborder-collapse: collapse;\n\t}\n\tpre,\n\tcode {\n\t\tpadding: 0.6em 0.4em;\n\t\tbackground: "+(e.isSender&&"dark"!==e.themePreset?e.theme.colors.primaryColor:e.theme.colors.borderColor)+";\n\n\t}\n\n\tpre{\n\t\tcolor: "+(e.isSender?"dark"!==e.themePreset?e.theme.colors.primaryTextColor:e.theme.colors.textColor:e.theme.colors.primaryTextColor)+";}\n\n\tcode {\n\t\tline-height: normal;\n\n\t\tcolor: "+(e.isSender?"dark"!==e.themePreset?e.theme.colors.primaryTextColor:e.theme.colors.textColor:e.theme.colors.primaryTextColor)+";\n\t\tborder-radius: 3px;\n\t\tfont-size: 85%;\n\t\tpadding: 0.2em 0.4em;\n\t\tmargin-top: 5px;\n\t\tdisplay: inline-block;\n\t\toverflow: auto;\n\t\twidth: fit-content;\n\t\tmax-width: 100%;\n\t}\n\ncode[class*='language-'],\n\tpre[class*='language-'] {\n\t\tcolor: "+(e.isSender?"dark"!==e.themePreset?e.theme.colors.primaryTextColor:e.theme.colors.textColor:e.theme.colors.primaryTextColor)+";\n\t\ttext-shadow: none;\n\t}\n\n\tul,\n\tol {\n\t\tlist-style-position: inside;\n\t\tpadding-left: 10px;\n\n\t}\n\n\tli{\n\t\tdisplay: list-item;\n\t\tcursor: default;\n\t\tpadding: initial;\n\n\t\t&:hover{\n\t\t\tbackground-color: initial;\n\t\t}\n\t}\n\tp {\n\t\tmargin: inherit;\n\t}\n\n\t"+("dark"===e.themePreset&&"a{\n\t\tcolor: cornflowerblue\n\t\t}")+";\n"},messageBGColor=function(e){return e.isSender?"dark"!==e.themePreset?e.theme.colors.primaryColor:e.theme.colors.borderColor:"dark"!==e.themePreset?curriedLighten(.53,e.theme.colors.borderColor):e.theme.colors.backgroundColor},Message=styled("div")(_templateObject7$1||(_templateObject7$1=_taggedTemplateLiteralLoose(["\n\tbackground-color: ",";\n\tcolor: ",";\n\tborder: 1px solid\n\t\t",";\n\tpadding: 10px;\n\tborder-radius: 7px;\n\tmargin-bottom: 10px;\n\tmax-width: 80%;\n\talign-self: ",";\n\tdisplay: inline-block;\n\tposition: relative;\n\toverflow-wrap: anywhere;\n\t","\n"])),(function(e){return messageBGColor(e)}),(function(e){return e.isSender?"dark"!==e.themePreset?e.theme.colors.primaryTextColor:e.theme.colors.textColor:"dark"!==e.themePreset?e.theme.colors.borderColor:e.theme.colors.textColor}),(function(e){return"dark"===e.themePreset?"currentColor":messageBGColor(e)}),(function(e){return e.isSender?"flex-end":"flex-start"}),(function(e){return resetCSS(e)})),MessageInputContainer=styled("form")(_templateObject8$1||(_templateObject8$1=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tpadding-top: 12px;\n\talign-items: stretch;\n\tmargin-top: 10px;\n\t.ai-enter-button-wrapper {\n\t\talign-self: baseline;\n\t\theight: 41px;\n\t}\n"]))),MessageInput=styled(TextArea)(_templateObject9$1||(_templateObject9$1=_taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\tborder-radius: 5px;\n\tborder: 1px solid #ccc;\n\tbackground-color: ",";\n\tcolor: ",";\n\n\t","\n\tpadding-left: 35px;\n"])),(function(e){return"dark"===e.themePreset?e.theme.colors.borderColor:"#fff"}),(function(e){return"dark"===e.themePreset?e.theme.colors.titleColor:e.theme.colors.textColor}),(function(e){return e.enterButton&&"\n\t\t border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n\t"})),SendButton=styled(Button)(_templateObject10||(_templateObject10=_taggedTemplateLiteralLoose(["\n\tborder: none;\n\tcolor: #ffffff;\n\tcursor: pointer;\n\tfont-size: 16px;\n\tmargin-left: 8px;\n\toutline: none;\n\tpadding: 10px;\n\ttext-align: center;\n\n\t&:disabled {\n\t\tcursor: not-allowed;\n\t}\n"]))),AIFeedbackContainer=styled("div")(_templateObject11||(_templateObject11=_taggedTemplateLiteralLoose(["\n\t.--feedback-svgs-wrapper {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: flex-end;\n\t\tgap: 5px;\n\n\t\tsvg {\n\t\t\tcursor: pointer;\n\t\t\ttransition: all ease-in 0.1s;\n\t\t\t&.selected {\n\t\t\t\ttransform: scale(1.1);\n\t\t\t\tcursor: default;\n\t\t\t}\n\n\t\t\t&:hover {\n\t\t\t\ttransform: scale(1.1);\n\t\t\t}\n\t\t}\n\t}\n\n\t.--feedback-input-wrapper {\n\t\tdisplay: flex;\n\t\tgap: 7px;\n\t}\n"]))),_templateObject$l,_templateObject2$9,_templateObject3$6,_templateObject4$3,_templateObject5$3,_templateObject6$2,_templateObject7$2,fadeInFromBottom=keyframes(_templateObject$l||(_templateObject$l=_taggedTemplateLiteralLoose(["\n 0% {\n opacity: 0;\n transform: translateY(20px);\n }\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n"]))),fadeInFromTop=keyframes(_templateObject2$9||(_templateObject2$9=_taggedTemplateLiteralLoose(["\n 0% {\n opacity: 0;\n transform: translateY(-20px);\n }\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n"]))),SearchBoxAISection=styled("div")(_templateObject3$6||(_templateObject3$6=_taggedTemplateLiteralLoose(["\n\tpadding: 10px;\n\tborder-radius: 4px;\n\tmin-height: 200px;\n\tpadding-top: 20px;\n\tposition: relative;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\tbackground-color: ",";\n\tcolor: ",";\n\t.--ai-answer-error-container {\n\t\tposition: absolute;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, -50%);\n\t\t.--default-error-element {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\talign-items: center;\n\t\t\tgap: 10px;\n\t\t}\n\t}\n"])),(function(e){var t=e.themePreset,n=e.theme;return"dark"===t?"#424242":n.colors.backgroundColor}),(function(e){return e.theme.colors.textColor})),Question=styled("div")(_templateObject4$3||(_templateObject4$3=_taggedTemplateLiteralLoose(["\n\tfont-weight: bold;\n\tmargin-bottom: 5px;\n\tanimation: "," 0.5s ease-out;\n"])),fadeInFromTop),Answer=styled("div")(_templateObject5$3||(_templateObject5$3=_taggedTemplateLiteralLoose(["\n\t","\n\tposition: relative;\n\tmargin-bottom: 5px;\n\tmin-height: 100px;\n\toverflow: auto;\n\twhite-space: pre-wrap;\n\tpre {\n\t\twhite-space: pre-wrap;\n\t}\n\tcode,\n\tpre {\n\t\tdisplay: revert;\n\t}\n"])),(function(e){return resetCSS(e)})),Footer=styled("div")(_templateObject6$2||(_templateObject6$2=_taggedTemplateLiteralLoose(["\n\tcolor: #777;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tgap: 1rem;\n\tflex-wrap: wrap;\n\tanimation: "," 0.5s ease-out;\n\tpadding: 10px 0;\n\tbackground: white;\n\tbackground-color: ",";\n\tcolor: ",";\n"])),fadeInFromBottom,(function(e){var t=e.themePreset,n=e.theme;return"dark"===t?"#424242":n.colors.backgroundColor}),(function(e){return e.theme.colors.textColor})),SourceTags=styled("div")(_templateObject7$2||(_templateObject7$2=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tgap: 8px;\n\tflex-wrap: wrap;\n\t.--ai-source-tag {\n\t\tdisplay: inline-block;\n\t\tmax-width: 200px;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n"]))),ThumbsUpSvg={name:"ThumbsUpSvg",props:["clickHandler","className"],render:function(){return vue.createVNode("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",class:this.$props.className,height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",onClick:this.$props.clickHandler},[vue.createVNode("path",{d:"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"},null)])}},ThumbsDownSvg={name:"ThumbsDownSvg",props:["clickHandler","className"],render:function(){return vue.createVNode("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",class:this.$props.className,height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",onClick:this.$props.clickHandler},[vue.createVNode("path",{d:"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"},null)," "])}},AIFeedback=vue.defineComponent({name:"FeedbackComponent",props:{onFeedbackSubmit:{type:Function,default:function(){}},hideUI:{type:Boolean,default:!1},overrideState:{type:Object,default:function(){return{}}}},setup:function(e,t){var n=t.emit,r=vue.ref(!1),o=vue.ref(null),s=vue.ref(""),a=vue.ref(!1);return vue.watch((function(){return e.overrideState}),(function(e){e&&e.isRecorded&&(a.value=!0,o.value=e.feedbackType||"positive")})),e.overrideState&&e.overrideState.isRecorded&&(a.value=!0,o.value=e.overrideState.feedbackType||"positive"),{showInput:r,feedbackType:o,feedbackText:s,feedbackRecorded:a,handleButtonClick:function(e){o.value===e?(o.value=null,r.value=!1):(o.value=e,r.value=!0)},handleInputChange:function(e){s.value=e.target.value},handleSubmit:function(){n("feedback-submit","positive"===o.value,s.value),s.value="",r.value=!1,a.value=!0},handleCancel:function(){o.value=null,s.value="",r.value=!1}}},render:function(){var e=this;return this.$props.hideUI?null:this.feedbackRecorded?vue.createVNode(AIFeedbackContainer,null,{default:function(){return[vue.createVNode("div",{class:"--feedback-svgs-wrapper"},["positive"===e.feedbackType?vue.createVNode(ThumbsUpSvg,{class:"selected"},null):vue.createVNode(ThumbsDownSvg,{class:"selected"},null)])]}}):vue.createVNode(AIFeedbackContainer,null,{default:function(){return[!e.showInput&&vue.createVNode("div",{class:"--feedback-svgs-wrapper"},[vue.createVNode(ThumbsUpSvg,{class:"positive"===e.feedbackType?"selected":"",onClick:function(){return e.handleButtonClick("positive")}},null),vue.createVNode(ThumbsDownSvg,{class:"negative"===e.feedbackType?"selected":"",onClick:function(){return e.handleButtonClick("negative")}},null)]),e.showInput&&vue.createVNode("div",{class:"--feedback-input-wrapper"},[vue.createVNode(Input,{show:e.showInput,placeholder:"positive"===e.feedbackType?"What do you like about the response?":"What was the issue with the response? How can it be improved?",value:e.feedbackText,onInput:e.handleInputChange},null),vue.createVNode(Button,{primary:!0,onClick:e.handleSubmit},{default:function(){return[vue.createTextVNode("Submit")]}}),vue.createVNode(Button,{onClick:e.handleCancel},{default:function(){return[vue.createTextVNode("Cancel")]}})])]}})}}),innerText=function e(t){return null===t||"boolean"==typeof t||void 0===t?"":"number"==typeof t?t.toString():"string"==typeof t?t:Array.isArray(t)?t.reduce(reduceJsxToString,""):Object.prototype.hasOwnProperty.call(t,"children")?e(t.children):""};function reduceJsxToString(e,t){return e+innerText(t)}innerText.default=innerText;var _excluded$1=["_source"];function _isSlot$5(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var md=new Remarkable;md.set({html:!0,breaks:!0,xhtmlOut:!0,linkify:!0,linkTarget:"_blank"});var _dropdownULRef="dropdownULRef",_inputGroupRef="inputGroupRef",updateQuery$1=lib_5.updateQuery,setCustomQuery=lib_5.setCustomQuery,setDefaultQuery$1=lib_5.setDefaultQuery,recordSuggestionClick=lib_5.recordSuggestionClick,_debounce=lib_8.debounce,checkValueChange=lib_8.checkValueChange,getClassName$3=lib_8.getClassName,isEqual$4=lib_8.isEqual,getCompositeAggsQuery$1=lib_8.getCompositeAggsQuery,withClickIds=lib_8.withClickIds,getResultStats$1=lib_8.getResultStats,SearchBox=vue.defineComponent({name:"SearchBox",isTagsMode:!1,data:function(){var e=this.$props;return this.__state={currentValue:"",selectedTags:[],isOpen:!1,normalizedSuggestions:[],showAIScreen:!1,showAIScreenFooter:!1,showFeedbackComponent:!1,feedbackState:null,faqAnswer:"",faqQuestion:"",initialHits:null},this.internalComponent=e.componentId+"__internal",this.__state},inject:{theme:{from:"theme_reactivesearch"}},created:function(){this.$props.mode===constants_5$1.TAG&&(this.$options.isTagsMode=!0),this.$options.isTagsMode&&console.warn("Warning(ReactiveSearch): The `categoryField` prop is not supported when `mode` prop is set to `tag`"),this.currentValue=decodeHtml(this.selectedValue||this.value||this.defaultValue||""),this.$options.isTagsMode&&(this.currentValue=""),this.handleTextChange=_debounce(this.handleText,this.$props.debounce),this.triggerCustomQuery(this.currentValue,this.selectedCategory),this.triggerDefaultQuery(this.currentValue),this.selectedValue?this.setValue(this.selectedValue,!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0):this.$props.value?this.setValue(this.$props.value,!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0)},computed:{currentTriggerMode:function(){return this.$props.AIUIConfig&&this.$props.AIUIConfig.triggerOn||constants_9$1.MANUAL},hasCustomRenderer:function(){return hasCustomRenderer(this)},stats:function(){return getResultStats$1(this)},mergedAIQuestion:function(){return this.faqQuestion||this.AIResponse&&this.AIResponse.response&&this.AIResponse.response.question},mergedAIAnswer:function(){return this.faqAnswer||this.AIResponse&&this.AIResponse.response&&this.AIResponse.response.answer&&this.AIResponse.response.answer.text},parsedSuggestions:function(){var e=this,t=[];Array.isArray(this.suggestions)&&this.suggestions.length&&(t=[].concat(withClickIds(this.suggestions))),this.renderTriggerMessage()&&this.currentValue&&t.unshift({label:this.renderTriggerMessage(),value:"AI_TRIGGER_MESSAGE",_suggestion_type:"_internal_a_i_trigger"}),t=t.map((function(e){return e.sectionId?e:_extends({},e,{sectionId:e._suggestion_type})})).map((function(t){if(t._suggestion_type===helper_16.Document){var n=_extends({},t);n.label="For document suggestions, please implement a renderItem method to display label.";var r=e.$slots.renderItem||e.$props.renderItem;if("function"==typeof r){var o=r(n),s=innerText(o);n.value=lib$2(s)}return n}return t}));var n=[],r=t.reduce((function(e,r,o){return n.includes(r.sectionId)||(r.sectionId?(e[o]=t.filter((function(e){return e.sectionId===r.sectionId})),n.push(r.sectionId)):e[o]=r),e}),{});return Object.values(r)}},props:{autoFocus:Q.bool,autosuggest:Q.bool.def(!0),beforeValueChange:types.func,className:Q.string.def(""),clearIcon:types.children,componentId:types.stringRequired,compoundClause:types.compoundClause,customHighlight:types.func,customQuery:types.func,defaultQuery:types.func,dataField:Q.oneOfType([Q.string,Q.shape({field:Q.string,weight:Q.number}),Q.arrayOf(Q.string),Q.arrayOf({field:Q.string,weight:Q.number})]),aggregationField:types.string,aggregationSize:Q.number,size:Q.number,debounce:Q.number.def(0),defaultValue:types.string,excludeFields:types.excludeFields,value:Q.oneOfType([Q.arrayOf(Q.string),types.value]),defaultSuggestions:types.suggestions,enableSynonyms:Q.bool.def(!0),enableQuerySuggestions:Q.bool.def(!1),enablePopularSuggestions:Q.bool.def(!1),enableRecentSuggestions:Q.bool.def(!1),enableFAQSuggestions:Q.bool.def(!1),enableDocumentSuggestions:Q.bool.def(!1),documentSuggestionsConfig:Q.shape({size:Q.number,from:Q.number,maxChars:Q.number}),FAQSuggestionsConfig:Q.shape({sectionLabel:Q.string,size:Q.number}),fieldWeights:types.fieldWeights,filterLabel:types.string,fuzziness:types.fuzziness,highlight:Q.bool,highlightField:types.stringOrArray,icon:types.children,iconPosition:Q.oneOf(["left","right"]).def("left"),includeFields:types.includeFields,innerClass:types.style,innerRef:Q.string.def("searchInputField"),render:types.func,renderNoSuggestion:types.title,renderError:types.title,placeholder:Q.string.def("Search"),queryFormat:Q.oneOf(["and","or"]).def("or"),react:types.react,showClear:Q.bool.def(!0),showDistinctSuggestions:Q.bool.def(!0),showFilter:Q.bool.def(!0),showIcon:Q.bool.def(!0),title:types.title,URLParams:Q.bool.def(!1),strictSelection:Q.bool.def(!1),nestedField:types.string,enablePredictiveSuggestions:Q.bool.def(!1),recentSearchesIcon:Q.any,popularSearchesIcon:Q.any,showVoiceSearch:Q.bool.def(!1),getMicInstance:types.func,renderMic:types.func,distinctField:types.string,distinctFieldConfig:types.props,focusShortcuts:Q.arrayOf(Q.oneOfType([Q.string,Q.number])).def(["/"]),showFocusShortcutsIcon:Q.bool.def(!0),addonBefore:Q.any,addonAfter:Q.any,showSuggestionsFooter:Q.bool.def(!0),expandSuggestionsContainer:Q.bool.def(!0),renderSuggestionsFooter:Q.func,index:Q.string,popularSuggestionsConfig:Q.object,recentSuggestionsConfig:Q.object,featuredSuggestionsConfig:Q.shape({maxSuggestionsPerSection:Q.number,sectionsOrder:Q.arrayOf(Q.string)}),customEvents:Q.object,applyStopwords:Q.bool,customStopwords:types.stringArray,onData:types.func,renderItem:types.func,enterButton:Q.bool.def(!1),renderEnterButton:Q.any,mode:Q.oneOf(["select","tag"]).def("select"),renderSelectedTags:Q.any,searchboxId:Q.string,endpoint:types.endpointConfig,enableAI:Q.bool.def(!1),AIConfig:types.AIConfig,AIUIConfig:types.AIUIConfig},mounted:function(){var e=this;this.listenForFocusShortcuts();var t=this.$refs[_dropdownULRef];if(t){t.addEventListener("scroll",(function(){var n=t.scrollTop;e.lastScrollTop=n,n<e.lastScrollTop&&(clearInterval(e.scrollTimerRef),e.isUserScrolling=!0),e.lastScrollTop=n}))}},updated:function(){this.$props.mode===constants_5$1.SELECT&&!0===this.$options.isTagsMode?(this.$options.isTagsMode=!1,this.selectedTags=[]):this.$props.mode===constants_5$1.TAG&&!1===this.$options.isTagsMode&&(this.$options.isTagsMode=!0)},watch:{AIResponse:function(e){if(e&&this.$props.AIUIConfig&&this.$props.AIUIConfig.showSourceDocuments&&e.response&&e.response.answer&&Array.isArray(e.response.answer.documentIds)){this.sourceDocIds=e.response.answer.documentIds;var t=helper_2(constants_8$1)&&helper_2(constants_8$1)[this.$props.componentId];t&&t.meta&&t.meta.hits&&t.meta.hits.hits&&(this.initialHits=t.meta.hits.hits),this.showAIScreenFooter||(this.showAIScreenFooter=!0)}},dataField:function(e,t){isEqual$4(e,t)||this.triggerCustomQuery(this.$data.currentValue)},fieldWeights:function(){this.triggerCustomQuery(this.$data.currentValue)},fuzziness:function(){this.triggerCustomQuery(this.$data.currentValue)},queryFormat:function(){this.triggerCustomQuery(this.$data.currentValue)},defaultValue:function(e){this.setValue(e,!0,this.$props)},value:function(e,t){isEqual$4(e,t)||this.setValue(e,!0,this.$props,""===e?lib_7.CLEAR_VALUE:void 0,!1)},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.triggerDefaultQuery(this.$data.currentValue)},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.triggerCustomQuery(this.$data.currentValue)},suggestions:function(e){var t=[];Array.isArray(e)&&e.length?t=[].concat(withClickIds(e)):Array.isArray(this.$props.defaultSuggestions)&&this.$props.defaultSuggestions.length&&(t=[].concat(withClickIds(this.$props.defaultSuggestions))),this.normalizedSuggestions=t,this.handleTextAreaHeightChange()},selectedValue:function(e,t){if(!isEqual$4(e,t)&&(this.$options.isTagsMode?!isEqual$4(this.$data.selectedTags,e):this.$data.currentValue!==e)){!e&&this.$data.currentValue&&this.onValueSelectedHandler("",lib_7.CLEAR_VALUE),this.$options.isTagsMode&&(this.selectedTags=[]);var n=e?void 0:lib_7.CLEAR_VALUE;this.$options.isTagsMode&&(n=lib_7.SUGGESTION_SELECT),void 0===this.$props.value?this.setValue(e,""===e,this.$props,n,!1):this.setValue(e||"",!0,this.$props,n)}},focusShortcuts:function(){this.listenForFocusShortcuts()},rawData:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:e,aggregationData:this.aggregationData,loading:this.isLoading,error:this.isError}),e&&e.hits&&e.hits.hits&&(this.initialHits=e.hits.hits)},aggregationData:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:e,loading:this.isLoading,error:this.isError})},loading:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:this.aggregationData,loading:e,error:this.isError})},error:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:this.aggregationData,loading:this.isLoading,error:e})},debounce:function(e,t){isEqual$4(e,t)||(this.handleTextChange=_debounce(this.handleText,e))},isAITyping:function(e,t){var n=this,r=function(){if(!n.isUserScrolling){var e=n.$refs[_dropdownULRef];e&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}};!e&&t?(clearInterval(this.scrollTimerRef),this.showAIScreenFooter=!0,this.$props.AIUIConfig&&"boolean"==typeof this.$props.AIUIConfig.showFeedback&&!this.$props.AIUIConfig.showFeedback||(this.showFeedbackComponent=!0),setTimeout((function(){r()}),500)):e&&(this.scrollTimerRef=setInterval((function(){r()}),2e3))},showAIScreen:function(e){var t;e?null!=(t=this.$refs)&&t[this.$props.innerRef]&&this.$refs[this.$props.innerRef].$el&&this.$refs[this.$props.innerRef].$el.blur():(this.feedbackState=null,this.showFeedbackComponent=!1)},currentValue:function(){this.$nextTick(this.handleTextAreaHeightChange)}},methods:{renderTriggerMessage:function(){if(this.$props.enableAI){if(this.$props.AIUIConfig&&this.$props.AIUIConfig.renderTriggerMessage)return this.$props.AIUIConfig.renderTriggerMessage;if(this.$slots.renderTriggerMessage)return this.$slots.renderTriggerMessage();if(!(this.currentTriggerMode!==constants_9$1.MANUAL||this.$props.AIUIConfig&&this.$props.AIUIConfig.askButton))return"Click to trigger AIAnswer"}return null},handleText:function(e,t){t===lib_7.CLEAR_VALUE?(this.triggerCustomQuery(e),this.triggerDefaultQuery(e)):this.$props.autosuggest?this.triggerDefaultQuery(e):this.$props.enterButton||this.triggerCustomQuery(e)},getComponent:function(e){void 0===e&&(e={});var t=this.$data.currentValue,n={error:this.error,loading:this.isLoading,downshiftProps:e,data:this.normalizedSuggestions,rawData:this.rawData,value:t,resultStats:this.stats,AIData:{question:this.mergedAIQuestion,answer:this.mergedAIAnswer,documentIds:this.AIResponse&&this.AIResponse.response&&this.AIResponse.response.answer&&this.AIResponse.response.answer.documentIds||[],showAIScreen:this.showAIScreen,sources:this.getAISourceObjects(),isAILoading:this.isAIResponseLoading,AIError:this.AIResponseError}};return vue.createVNode("div",{ref:_dropdownULRef},[getComponent(n,this)])},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=helper_39(this.$props);return e&&(t.aggs=getCompositeAggsQuery$1({props:this.$props,showTopHits:!0}).aggs),t},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.setValue(e,!0),this.onValueSelectedHandler(e,lib_7.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o,s,a){var i=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0),void 0===s&&(s=void 0),void 0===a&&(a=!0);checkValueChange(n.componentId,e,n.beforeValueChange,(function(){if(!i.$options.isTagsMode||!isEqual$4(e,i.selectedTags)){if(i.$options.isTagsMode&&r===lib_7.SUGGESTION_SELECT){if(Array.isArray(i.selectedTags)&&i.selectedTags.length){if("string"==typeof e&&i.selectedTags.includes(e))return void(i.isOpen=!1);i.selectedTags=[].concat(i.selectedTags),"string"==typeof e&&e?i.selectedTags.push(e):Array.isArray(e)&&!isEqual$4(i.selectedTags,e)&&(i.selectedTags=e)}else e&&(i.selectedTags="string"!=typeof e?e:[].concat(e));i.currentValue=""}else i.currentValue=decodeHtml(e);var l=e;i.$options.isTagsMode&&r===lib_7.SUGGESTION_SELECT&&(l=Array.isArray(i.selectedTags)&&i.selectedTags.length?i.selectedTags:void 0),(i.faqAnswer||i.faqQuestion)&&""===e&&(i.faqAnswer="",i.faqQuestion="",i.showAIScreen=!1),t?(i.$props.autosuggest&&(o&&(i.isOpen=!1),"string"==typeof i.currentValue&&i.triggerDefaultQuery(i.currentValue,n.enableAI&&i.currentTriggerMode===constants_9$1.QUESTION&&i.currentValue.endsWith("?")?{enableAI:!0}:{},a)),n.strictSelection?r===lib_7.SUGGESTION_SELECT||(i.$options.isTagsMode?0===i.selectedTags.length:""===e)?i.triggerCustomQuery(l,i.$options.isTagsMode?void 0:s,a):i.setValue("",!0):void 0!==n.value&&r!==lib_7.SUGGESTION_SELECT&&r!==lib_7.CLEAR_VALUE||(i.showAIScreen=!1,i.triggerCustomQuery(l,i.$options.isTagsMode?void 0:s,a))):i.handleTextChange(e,r),i.$emit("valueChange",e),i.$emit("value-change",e)}}))},triggerDefaultQuery:function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n=!0),this.$props.autosuggest){var r="string"!=typeof e?this.currentValue:e,o=SearchBox.defaultQuery(r,this.$props);if(this.defaultQuery){var s=this.defaultQuery(r,this.$props)||{};s.query&&(o=s.query),updateDefaultQuery(this.$props.componentId,this.setDefaultQuery,this.$props,r)}this.updateQuery({componentId:this.internalComponent,query:o,value:r,componentType:constants_1$1.searchBox,meta:t},n)}},triggerCustomQuery:function(e,t,n){void 0===t&&(t=void 0),void 0===n&&(n=!0);var r=this.$props,o=r.customQuery,s=r.filterLabel,a=r.showFilter,i=r.URLParams,l="string"!=typeof e?this.$data.currentValue:e;this.$options.isTagsMode&&(l=e);var u=SearchBox.defaultQuery(l+(t?" in "+t:""),this.$props);if(o){var c=o(l,this.$props).query;c&&(u=c),updateCustomQuery(this.$props.componentId,this.setCustomQuery,this.$props,l)}this.updateQuery({componentId:this.$props.componentId,query:u,value:l,label:s,showFilter:a,URLParams:i,componentType:constants_1$1.searchBox,category:t},n)},handleFocus:function(e){this.$props.autosuggest&&(this.isOpen=!0),this.$emit("focus",e)},handleVoiceResults:function(e){var t,n=e.results;n&&n[0]&&n[0].isFinal&&n[0][0]&&n[0][0].transcript&&n[0][0].transcript.trim()&&(this.setValue(n[0][0].transcript.trim(),!0),null==(t=this.$refs)||null==(t=t[this.$props.innerRef])||null==(t=t.$el)||t.focus())},triggerQuery:function(e){var t=e.isOpen,n=void 0===t?void 0:t,r=e.customQuery,o=void 0===r||r,s=e.defaultQuery,a=void 0===s||s,i=e.value,l=void 0===i?void 0:i,u=e.categoryValue,c=void 0===u?void 0:u;"boolean"==typeof n&&(this.isOpen=n),o&&this.triggerCustomQuery(l,c),a&&this.triggerDefaultQuery(l)},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.normalizedSuggestions.find((function(t){return t._click_id===e}));r&&r.source&&r.source._id&&(n=r.source._id)}this.recordSuggestionClick(e,n)},clearValue:function(){this.setValue("",!1,this.$props,this.$options.isTagsMode?void 0:lib_7.CLEAR_VALUE,!1),this.onValueSelectedHandler("",this.$options.isTagsMode?void 0:lib_7.CLEAR_VALUE),this.showAIScreen=!1,this.isOpen=!1},handleKeyDown:function(e,t){void 0===t&&(t=null),"Enter"===e.key&&(!1===this.$props.autosuggest?this.enterButtonOnClick():null===t&&(this.setValue(e.target.value,!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0,!(this.$props.enableAI&&this.currentTriggerMode===constants_9$1.QUESTION&&e.target.value.endsWith("?"))),this.$props.enableAI&&!this.showAIScreen&&this.currentTriggerMode===constants_9$1.QUESTION&&e.target.value.endsWith("?")&&(this.showAIScreen=!0,this.isOpen=!0),this.onValueSelectedHandler(e.target.value,lib_7.ENTER_PRESS))),this.$emit("keyDown",e,this.triggerQuery),this.$emit("key-down",e,this.triggerQuery)},onInputChange:function(e){var t=this,n=e.target.value;!this.$data.isOpen&&this.$props.autosuggest&&(this.isOpen=!0),this.showAIScreen&&(this.showAIScreen=!1),void 0===this.$props.value?this.setValue(n,""===n,this.$props,void 0,!1):this.$emit("change",n,(function(e){var r=e.isOpen;return t.triggerQuery({defaultQuery:!0,customQuery:!0,value:n,isOpen:r})}),e)},handleFeaturedSuggestionClicked:function(e){try{var t;if(e.action===helper_15.NAVIGATE){var n=JSON.parse(e.subAction),r=n.target,o=void 0===r?"_self":r,s=n.link,a=void 0===s?"/":s;"undefined"!=typeof window&&window.open(a,o)}if(e.action===helper_15.FUNCTION){var i=e.subAction.match(/function\s*\(.*\)(.|\n)*/),l=i&&i[0];new Function("return "+l)()(e,this.$data.currentValue,this.$props.customEvents)}e.action===helper_15.SELECT&&(this.setValue(e.value,!0,this.$props,this.$options.isTagsMode.current?lib_7.SUGGESTION_SELECT:lib_7.ENTER_PRESS,!1),this.onValueSelectedHandler(e.value,lib_7.SUGGESTION_SELECT)),null==(t=this.$refs)||null==(t=t[this.$props.innerRef])||null==(t=t.el)||t.blur()}catch(t){console.error('Error: There was an error parsing the subAction for the featured suggestion with label, "'+e.label+'"',t)}},onSuggestionSelected:function(e){var t=this,n=this.$props.value;if(e&&e._suggestion_type===helper_16.FAQ)return this.currentValue=e.value,this.faqAnswer=e._answer,this.faqQuestion=e.value,this.isOpen=!0,this.showAIScreen=!0,void 0!==n&&this.$emit("change",e.value,(function(){})),void this.onValueSelectedHandler(e.value);if(e&&"_internal_a_i_trigger"===e._suggestion_type)return this.showAIScreen=!0,void this.askButtonOnClick();if(e._suggestion_type===helper_16.Featured)return this.handleFeaturedSuggestionClicked(e),void(this.$props.enableAI?this.showAIScreen=!0:this.isOpen=!1);if(this.triggerClickAnalytics(e._click_id),void 0===n)this.setValue(e.value,!0,this.$props,lib_7.SUGGESTION_SELECT,!1,e._category);else{var r=e.value;if(this.$options.isTagsMode){if(r=Array.isArray(this.selectedTags)?[].concat(this.selectedTags):[],this.selectedTags.includes(e.value))return void(this.isOpen=!1);r.push(e.value)}this.setValue(r,!0,this.$props,lib_7.SUGGESTION_SELECT,!1,e._category),this.$emit("change",r,(function(n){var o=n.isOpen;return t.triggerQuery(_extends({isOpen:o,value:r},!t.$options.isTagsMode&&{categoryValue:e._category}))}))}this.onValueSelectedHandler(e.value,lib_7.SUGGESTION_SELECT,e.source),this.$props.enableAI?this.currentTriggerMode===constants_9$1.QUESTION&&e.value.endsWith("?")&&(this.showAIScreen=!0):this.isOpen=!1},onValueSelectedHandler:function(e){void 0===e&&(e=this.$data.currentValue);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.$emit.apply(this,["valueSelected",e].concat(n)),this.$emit.apply(this,["value-selected",e].concat(n))},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){return"dark"===this.themePreset?e===t?"#555":"#424242":e===t?"#eee":"#fff"},renderIcon:function(){return this.$props.showIcon?this.$props.icon||vue.createVNode(SearchSvg,null,null):null},renderErrorComponent:function(e){var t=this;void 0===e&&(e=!1);var n=this.$slots.renderError||this.$props.renderError;return e&&this.showAIScreen&&this.AIResponseError&&!this.isAIResponseLoading?n?vue.createVNode("div",{class:"--ai-answer-error-container "+(getClassName$3(this.$props.innerClass,"ai-error")||"")},[n(this.AIResponseError)]):vue.createVNode("div",{class:"--ai-answer-error-container "+(getClassName$3(this.$props.innerClass,"ai-error")||"")},[vue.createVNode("div",{class:"--default-error-element"},[vue.createVNode("span",null,["string"==typeof this.AIResponseError?this.AIResponseError:this.AIResponseError.message?this.AIResponseError.message:"There was an error in generating the response.",this.AIResponseError.code?"Code:\n\t\t\t\t\t\t\t"+this.AIResponseError.code:""])])]):this.error&&n&&this.$data.currentValue&&!this.isLoading?vue.createVNode(SuggestionWrapper,{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset},{default:function(){return[isFunction(n)?n(t.error):n]}}):null},renderCancelIcon:function(){return this.$props.showClear?this.$props.clearIcon||vue.createVNode(CancelSvg,null,null):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$props.innerClass,n=this.$slots.renderNoSuggestion||this.$props.renderNoSuggestion,r=this.$slots.renderError||this.$props.renderError,o=this.$data,s=o.isOpen,a=o.currentValue;return!n||!s||e.length||this.isLoading||!a||r&&this.error?null:vue.createVNode(SuggestionWrapper,{innerClass:t,themePreset:this.themePreset,theme:this.theme,innerClassName:"noSuggestion"},{default:function(){return"function"==typeof n?n(a):n}})},renderInputAddonBefore:function(){var e,t=this.$slots.addonBefore;return t?vue.createVNode(InputAddon,{class:"addon-before"},_isSlot$5(e=t())?e:{default:function(){return[e]}}):null},renderInputAddonAfter:function(){var e,t=this.$slots.addonAfter;return t?vue.createVNode(InputAddon,{class:"addon-after"},_isSlot$5(e=t())?e:{default:function(){return[e]}}):null},enterButtonOnClick:function(){this.showAIScreen=!1,this.triggerQuery({isOpen:!1,value:this.currentValue,customQuery:!0})},suggestionsFooter:function(){return"function"==typeof renderSuggestionsFooter?this.$props.renderSuggestionsFooter():vue.createVNode(AutosuggestFooterContainer,null,{default:function(){return[vue.createVNode("div",null,[vue.createTextVNode("↑↓ Navigate")]),vue.createVNode("div",null,[vue.createTextVNode("↩ Go")])]}})},renderEnterButtonElement:function(){var e=this,t=this.$props,n=t.enterButton,r=t.innerClass,o=this.$slots.renderEnterButton;if(n){return vue.createVNode("div",{class:"enter-button-wrapper"},[o?o(e.enterButtonOnClick):vue.createVNode(Button,{class:"enter-btn "+getClassName$3(r,"enter-button"),primary:!0,onClick:e.enterButtonOnClick},{default:function(){return[vue.createTextVNode("Search")]}})])}return null},renderShortcut:function(){if(this.$props.focusShortcuts&&this.$props.focusShortcuts.length){var e=this.$props.focusShortcuts[0];return(e=(e=(e=(e=(e=e.toLowerCase()).replace("shift","⬆️")).replace("command","cmd")).replace("control","ctrl")).replace("option","alt")).toUpperCase()}return"/"},renderLeftIcons:function(){var e,t=this,n=this.$props,r=n.iconPosition,o=n.showIcon;return vue.createVNode("div",null,[vue.createVNode(IconGroup,{groupPosition:"left"},{default:function(){return["left"===r&&o&&vue.createVNode(IconWrapper,{onClick:t.handleSearchIconClick},_isSlot$5(e=t.renderIcon())?e:{default:function(){return[e]}})]}})])},renderRightIcons:function(){var e,t,n,r=this,o=this.$props,s=o.iconPosition,a=o.showClear,i=o.innerClass,l=o.getMicInstance,u=o.showVoiceSearch,c=o.showIcon,p=o.showFocusShortcutsIcon,d=this.$slots.renderMic||this.$props.renderMic,h=this.$data.currentValue;return vue.createVNode("div",null,[vue.createVNode(IconGroup,{groupPosition:"right"},{default:function(){return[h&&a&&vue.createVNode(IconWrapper,{onClick:r.clearValue,showIcon:c,isClearIcon:!0},_isSlot$5(e=r.renderCancelIcon())?e:{default:function(){return[e]}}),p&&vue.createVNode(ButtonIconWrapper,{onClick:function(e){return r.focusSearchBox(e)}},_isSlot$5(t=r.renderShortcut())?t:{default:function(){return[t]}}),u&&vue.createVNode(Mic,{getInstance:l,render:d,handleResult:r.handleVoiceResults,className:getClassName$3(i,"mic")||null},null),"right"===s&&c&&vue.createVNode(IconWrapper,{onClick:r.handleSearchIconClick},_isSlot$5(n=r.renderIcon())?n:{default:function(){return[n]}})]}})])},focusSearchBox:function(e){var t,n=e.target||e.srcElement,r=n.tagName;n.isContentEditable||"INPUT"===r||"SELECT"===r||"TEXTAREA"===r||null==(t=this.$refs)||null==(t=t[this.$props.innerRef])||null==(t=t.$el)||t.focus()},listenForFocusShortcuts:function(){var e=this,t=this.$props.focusShortcuts,n=void 0===t?["/"]:t;isEmpty(n)||(hotkeys(parseFocusShortcuts(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),hotkeys("*",(function(t){var r=extractModifierKeysFromFocusShortcuts(n);if(0!==r.length)for(var o=0;o<r.length;o+=1){if(hotkeys[r[o]]){e.focusSearchBox(t);break}}})))},onAutofillClick:function(e){var t=e.value;this.isOpen=!0,this.currentValue=decodeHtml(t),this.triggerDefaultQuery(t)},renderActionIcon:function(e){var t=this;return e._suggestion_type===helper_16.Featured?e.action===helper_15.FUNCTION?vue.createVNode(AutoFillSvg,{style:{transform:"rotate(135deg)",pointerEvents:"none"}},null):null:e._category?null:vue.createVNode(AutoFillSvg,{onClick:function(n){n.stopPropagation(),t.onAutofillClick(e)}},null)},renderTag:function(e){var t=this,n=this.$props.innerClass;return vue.createVNode(TagItem,{class:getClassName$3(n,"selected-tag")||""},{default:function(){return[vue.createVNode("span",null,[e]),vue.createVNode("span",{role:"img","aria-label":"delete-tag",class:"close-icon",onClick:function(){return t.clearTag(e)}},[vue.createVNode(CancelSvg,null,null)])]}})},clearAllTags:function(){this.selectedTags=[],this.setValue("",!0,this.$props,lib_7.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},clearTag:function(e){this.selectedTags=[].concat(this.selectedTags.filter((function(t){return t!==e}))),this.setValue("",!0,this.$props,lib_7.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},renderTags:function(){var e=this;if(!Array.isArray(this.selectedTags))return null;var t=[].concat(this.selectedTags),n=t.length>1,r=this.$slots.renderSelectedTags||this.$props.renderSelectedTags;return r?r({values:this.selectedTags,handleClear:this.clearTag,handleClearAll:this.clearAllTags}):vue.createVNode(TagsContainer,null,{default:function(){return[t.map((function(t){return e.renderTag(t)})),n&&vue.createVNode(TagItem,{class:getClassName$3(e.$props.innerClass,"selected-tag")||""},{default:function(){return[vue.createVNode("span",null,[vue.createTextVNode("Clear All")]),vue.createVNode("span",{role:"img","aria-label":"delete-tag",class:"close-icon",onClick:e.clearAllTags},[vue.createVNode(CancelSvg,null,null)])]}})]}})},getAISourceObjects:function(){var e=this,t=[];if(!this.AIResponse)return t;var n=this.AIResponse&&this.AIResponse.response&&this.AIResponse.response.answer&&this.AIResponse.response.answer.documentIds||[];return this.initialHits?n.forEach((function(n){var r=e.initialHits.find((function(e){return e._id===n}))||{};if(r){var o=r._source,s=void 0===o?{}:o,a=_objectWithoutPropertiesLoose(r,_excluded$1);t.push(_extends({},a,s))}})):t.push.apply(t,n.map((function(e){return{_id:e}}))),t},renderAIScreenLoader:function(){var e=this.$props.AIUIConfig,t=((void 0===e?{}:e)||{}).loaderMessage;return t||(this.$slots.AILoaderMessage?this.$slots.AILoaderMessage():vue.createVNode(HorizontalSkeletonLoader,null,null))},renderAIScreenFooter:function(){var e,t=this,n=this.$props.AIUIConfig,r=(void 0===n?{}:n)||{},o=r.showSourceDocuments,s=void 0!==o&&o,a=r.onSourceClick,i=void 0===a?function(){}:a;return s&&this.showAIScreenFooter&&this.AIResponse&&this.AIResponse.response&&this.AIResponse.response.answer&&this.AIResponse.response.answer.documentIds&&this.AIResponse.response.answer.documentIds.length?vue.createVNode(Footer,{themePreset:this.$props.themePreset},{default:function(){return[vue.createTextVNode("Summary generated using the following sources:")," ",vue.createVNode(SourceTags,null,_isSlot$5(e=t.getAISourceObjects().map((function(e){var n,r;return vue.createVNode(Button,{class:"--ai-source-tag "+(getClassName$3(t.$props.innerClass,"ai-source-tag")||""),info:!0,onClick:function(){return i&&i(e)}},_isSlot$5((r=e,n=t.$props.AIUIConfig&&t.$props.AIUIConfig.renderSourceDocument?t.$props.AIUIConfig.renderSourceDocument(r):t.$slots.renderSourceDocument?t.$slots.renderSourceDocument(r):r._id))?n:{default:function(){return[n]}})})))?e:{default:function(){return[e]}})]}}):null},renderAIScreen:function(){var e=this,t=this.$props.renderAIAnswer||this.$slots.renderAIAnswer;return t?t({question:this.mergedAIQuestion,answer:this.mergedAIAnswer,documentIds:this.AIResponse&&this.AIResponse.response&&this.AIResponse.response.answer&&this.AIResponse.response.answer.documentIds||[],loading:this.isAIResponseLoading||this.isLoading,sources:this.getAISourceObjects(),error:this.AIResponseError}):this.isAIResponseLoading||this.isLoading?this.renderAIScreenLoader():vue.createVNode("div",null,[vue.createVNode(Answer,{innerHTML:md.render(this.mergedAIAnswer)},null),this.renderAIScreenFooter(),this.showFeedbackComponent&&vue.createVNode("div",{class:""+(getClassName$3(this.$props.innerClass,"ai-feedback")||"")},[vue.createVNode(AIFeedback,{overrideState:this.feedbackState,hideUI:this.isAIResponseLoading||this.isLoading||!this.sessionIdFromStore,key:this.sessionIdFromStore,onFeedbackSubmit:function(t,n){e.feedbackState={isRecorded:!0,feedbackType:t?"positive":"negative"},e.recordAISessionUsefulness(e.sessionIdFromStore,{useful:t,reason:n})}},null)])])},handleTextAreaHeightChange:function(){var e,t,n=null==(e=this.$refs[this.$props.innerRef])?void 0:e.$el,r=null==(t=this.$refs[_inputGroupRef])?void 0:t.$el;if(n){n.style.height="42px";var o=4*parseInt(getComputedStyle(n).lineHeight,10),s=Math.min(n.scrollHeight,o);n.style.height=s+"px",n.style.overflowY=s===o?"auto":"hidden";var a=this.$refs[_dropdownULRef];a&&(a.style.top=""+n.style.height),r&&(r.style.height=""+n.style.height)}},askButtonOnClick:function(){this.showAIScreen=!0,this.isOpen=!0,this.triggerDefaultQuery(this.currentValue,{enableAI:!0})},renderAskButtonElement:function(){var e=this,t=this.$props,n=t.AIUIConfig,r=t.innerClass,o=(n||{}).askButton,s=this.$slots.renderAskButton;if(o){return vue.createVNode("div",{class:"enter-button-wrapper"},[s?s(e.askButtonOnClick):vue.createVNode(Button,{class:"enter-btn "+getClassName$3(r,"ask-button"),info:!0,onClick:e.askButtonOnClick},{default:function(){return[vue.createTextVNode("Ask")]}})])}return null}},render:function(){var e=this,t=this.$props.expandSuggestionsContainer,n=this.$slots,r=n.recentSearchesIcon,o=n.popularSearchesIcon,s=Array.isArray(this.parsedSuggestions)&&this.parsedSuggestions.length,a=this.$slots.renderItem||this.$props.renderItem;return vue.createVNode(Container,{class:this.$props.className},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$3(e.$props.innerClass,"title")||""},{default:function(){return[e.$props.title]}}),e.$props.autosuggest?vue.createVNode(Downshift,{id:e.$props.componentId+"-downshift",handleChange:e.onSuggestionSelected,handleMouseup:e.handleStateChange,isOpen:e.$data.isOpen},{default:function(n){var i=n.getInputEvents,l=n.getInputProps,u=n.getItemProps,c=n.getItemEvents,p=n.isOpen,d=n.highlightedIndex,h=n.setHighlightedIndex,f=function(){var t=function(e,t,n){switch(e){case helper_16.Recent:return r;case helper_16.Popular:return o;case helper_16.Featured:return t.icon?function(){return vue.createVNode("div",{style:{display:"flex"},innerHTML:lib$2(t.icon)},null)}:t.iconURL?function(){return vue.createVNode("img",{style:{maxWidth:"30px"},src:lib$2(t.iconURL),alt:t.value},null)}:function(){return vue.createVNode("span",{style:{display:"inline-block",height:"30px",width:n?"30px":0}},null)};default:return null}},n=0;return vue.createVNode("div",null,[e.hasCustomRenderer&&e.getComponent({isOpen:p,getItemProps:u,getItemEvents:c,highlightedIndex:d}),e.renderErrorComponent(),!e.hasCustomRenderer&&p&&s?vue.createVNode("ul",{class:suggestions$1(e.themePreset,e.theme)+" "+getClassName$3(e.$props.innerClass,"list")+" "+searchboxSuggestions(e.themePreset,e.theme)+"\n\t\t\t\t\t\t\t\t\t\t\t\t\t",ref:_dropdownULRef},[e.showAIScreen&&vue.createVNode(SearchBoxAISection,{themePreset:e.$props.themePreset},{default:function(){return[e.renderAIScreen()," ",e.renderErrorComponent(!0)]}}),!e.showAIScreen&&e.parsedSuggestions.map((function(r,o){var s=n+o;if(Array.isArray(r)){var i=lib$2(r[0].sectionLabel);return n+=r.length-1,vue.createVNode("div",{key:"section-"+o,class:"section-container"},[i?vue.createVNode("div",{class:"section-header "+getClassName$3(e.$props.innerClass,"section-label"),key:""+r[0].sectionId,innerHTML:i},null):null,vue.createVNode("ul",{class:"section-list"},[r.map((function(n,o){var i=r.some((function(e){return e.icon||e.iconURL}));return a?vue.createVNode("li",vue.mergeProps(u({item:n}),babelHelperVueTransformOn(c({item:n})),{key:n._id+"_"+s+"_"+o,style:{justifyContent:"flex-start",alignItems:"center"},class:d===s+o?"active-li-item "+getClassName$3(e.$props.innerClass,"active-suggestion-item"):"li-item "+getClassName$3(e.$props.innerClass,"suggestion-item")}),[a(n)]):"_internal_a_i_trigger"===n._suggestion_type?vue.createVNode("li",vue.mergeProps(u({item:n}),babelHelperVueTransformOn(c({item:n})),{key:n._id+"_"+s+"_"+o,style:{justifyContent:"flex-start",alignItems:"center"},class:d===s+o?"active-li-item "+getClassName$3(e.$props.innerClass,"active-suggestion-item"):"li-item "+getClassName$3(e.$props.innerClass,"suggestion-item")}),[vue.createVNode(SuggestionItem,{currentValue:e.currentValue,suggestion:n},null)]):vue.createVNode("li",vue.mergeProps(u({item:n}),babelHelperVueTransformOn(c({item:n})),{key:n._id+"_"+s+"_"+o,style:{justifyContent:"flex-start",alignItems:"center"},class:d===s+o?"active-li-item "+getClassName$3(e.$props.innerClass,"active-suggestion-item"):"li-item "+getClassName$3(e.$props.innerClass,"suggestion-item")}),[vue.createVNode("div",{style:{padding:"0 10px 0 0",display:"flex"}},[vue.createVNode(CustomSvg,{key:n._suggestion_type+"-"+o,className:getClassName$3(e.$props.innerClass,n._suggestion_type+"-search-icon")||null,icon:t(n._suggestion_type,n,i),type:n._suggestion_type+"-search-icon"},null)]),vue.createVNode(SuggestionItem,{currentValue:e.currentValue,suggestion:n},null),e.renderActionIcon(n)])}))])])}return vue.createVNode("div",null,[vue.createTextVNode("No suggestions")])})),!e.showAIScreen&&e.parsedSuggestions.length&&e.$props.showSuggestionsFooter?e.suggestionsFooter():null]):e.renderNoSuggestions(e.normalizedSuggestions)])};return vue.createVNode("div",{class:suggestionsContainer},[vue.createVNode(InputGroup,{searchBox:!0,ref:_inputGroupRef,isOpen:e.$data.isOpen},{default:function(){return[vue.createVNode(Actions,null,{default:function(){return[e.renderInputAddonBefore(),e.renderLeftIcons()]}}),vue.createVNode(InputWrapper,null,{default:function(){return[vue.createVNode(TextArea,vue.mergeProps(babelHelperVueTransformOn(i({onInput:e.onInputChange,onBlur:function(t){e.$emit("blur",t,e.triggerQuery)},onFocus:e.handleFocus,onKeyPress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},onKeyDown:function(t){return e.handleKeyDown(t,d)},onKeyUp:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)},onClick:function(){h(null)}})),{searchBox:!0,isOpen:e.$data.isOpen,id:e.$props.componentId+"-input",ref:e.$props.innerRef,class:getClassName$3(e.$props.innerClass,"input"),placeholder:e.$props.placeholder,autoFocus:e.$props.autoFocus},l({value:null===e.$data.currentValue?"":e.$data.currentValue}),{themePreset:e.themePreset,autocomplete:"off"}),null),!t&&f()]}}),vue.createVNode(Actions,null,{default:function(){return[e.renderRightIcons(),e.renderInputAddonAfter(),e.renderAskButtonElement(),e.renderEnterButtonElement()]}})]}}),t&&f(),e.renderTags()])}}):vue.createVNode("div",{class:suggestionsContainer},[vue.createVNode(InputGroup,{searchBox:!0,ref:_inputGroupRef},{default:function(){return[vue.createVNode(Actions,null,{default:function(){return[e.renderInputAddonBefore(),e.renderLeftIcons()]}}),vue.createVNode(InputWrapper,null,{default:function(){return[vue.createVNode(TextArea,vue.mergeProps(babelHelperVueTransformOn({blur:function(t){e.$emit("blur",t,e.triggerQuery)},keypress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},input:e.onInputChange,focus:function(t){e.$emit("focus",t,e.triggerQuery)},keydown:e.handleKeyDown,keyup:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)}}),{searchBox:!0,class:getClassName$3(e.$props.innerClass,"input")||"",placeholder:e.$props.placeholder,autofocus:e.$props.autoFocus,value:e.$data.currentValue?e.$data.currentValue:"",iconPosition:e.$props.iconPosition,showIcon:e.$props.showIcon,showClear:e.$props.showClear,ref:e.$props.innerRef,themePreset:e.themePreset}),null)]}}),vue.createVNode(Actions,null,{default:function(){return[e.renderRightIcons(),e.renderInputAddonAfter(),e.renderEnterButtonElement()]}})]}})])]}})},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)}});SearchBox.hasInternalComponent=function(){return!0},SearchBox.defaultQuery=function(e,t){var n;return(n={bool:{should:SearchBox.shouldQuery(e,t),minimum_should_match:"1"}})&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},SearchBox.shouldQuery=function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,nestedField:t.nestedField,queryString:t.queryString,searchOperators:t.searchOperators}}};var mapStateToProps$3=function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,selectedCategory:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].category||null,suggestions:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId]||[],themePreset:e.config.themePreset,isLoading:!!e.isLoading[""+t.componentId],error:e.error[t.componentId],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,AIResponse:e.AIResponses[t.componentId]&&e.AIResponses[t.componentId].response||null,isAIResponseLoading:e.AIResponses[t.componentId]&&e.AIResponses[t.componentId].isLoading,AIResponseError:e.AIResponses[t.componentId]&&e.AIResponses[t.componentId].error,sessionIdFromStore:e.AIResponses[t.componentId]&&e.AIResponses[t.componentId].response&&e.AIResponses[t.componentId].response.sessionId||"",isAITyping:e.AIResponses[t.componentId]&&e.AIResponses[t.componentId].response&&e.AIResponses[t.componentId].response.isTyping||!1}},mapDispatchToProps$2={updateQuery:updateQuery$1,setCustomQuery:setCustomQuery,setDefaultQuery:setDefaultQuery$1,recordSuggestionClick:recordSuggestionClick,recordAISessionUsefulness:analytics_8},SBConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$3,mapDispatchToProps$2)(SearchBox),{componentType:constants_1$1.searchBox,internalComponent:!0}));SBConnected.name=SearchBox.name,SBConnected.defaultQuery=SearchBox.defaultQuery,SBConnected.shouldQuery=SearchBox.shouldQuery,SBConnected.hasInternalComponent=SearchBox.hasInternalComponent,SBConnected.install=function(e){e.component(SBConnected.name,SBConnected)},SBConnected.componentType=constants_1$1.searchBox;var _excluded$2=["_source"];function _isSlot$6(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var md$1=new Remarkable;md$1.set({html:!0,breaks:!0,xhtmlOut:!0,linkify:!0,linkTarget:"_blank"});var _inputWrapperRef="inputWrapperRef",_inputRef="inputRef",_errorContainerRef="errorContainerRef",AIAnswer=vue.defineComponent({name:"AIAnswer",data:function(){var e=this.$props;return this.__state={messages:[],inputMessage:"",AISessionId:"",error:null,sourceDocIds:null,initialHits:null,isTriggered:!1},this.internalComponent=e.componentId+"__internal",this.__state},inject:{theme:{from:"theme_reactivesearch"}},created:function(){this.$props.triggerOn===constants_9$1.ALWAYS?this.isTriggered=!0:this.$props.triggerOn===constants_9$1.QUESTION&&this.dependentComponentValue&&this.dependentComponentValue.endsWith("?")&&(this.isTriggered=!0,this.AISessionId&&this.handleSendMessage(null,!1,"",!0))},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)},isLoadingState:function(){return this.isAIResponseLoading||this.isLoading},shouldShowComponent:function(){return this.showComponent},errorMessageForMissingSessionId:function(){return"AISessionId for "+this.$props.componentId+" is missing! AIAnswer component requires an AISessionId to function. Try reloading the App."},hasTriggered:function(){return this.isTriggered}},props:{componentId:types.string.isRequired,showVoiceInput:Q.bool.def(!1),showFeedback:Q.bool.def(!0),showIcon:Q.bool.def(!0),onData:types.func,innerRef:Q.string.def("AISearchInputField"),react:types.react,enableAI:Q.bool.def(!0),AIConfig:types.AIConfig,iconPosition:types.iconPosition.def("left"),themePreset:types.themePreset,theme:types.style,icon:types.children,iconURL:Q.string.def(""),renderMic:types.func,getMicInstance:types.func,innerClass:types.style,placeholder:Q.string.def("Ask a question"),title:types.title,AIResponse:types.componentObject,isAIResponseLoading:Q.bool.def(!1),AIResponseError:types.componentObject,getAIResponse:types.func.isRequired,enterButton:types.bool,renderEnterButton:types.title,showInput:Q.bool.def(!0),clearSessionOnDestroy:Q.bool.def(!0),rawData:types.rawData,render:types.func,onError:types.func,renderError:types.title,isLoading:types.boolRequired,sessionIdFromStore:Q.string,showComponent:types.boolRequired,componentError:types.componentObject,style:types.style,showSourceDocuments:Q.bool.def(!1),renderSourceDocument:types.func,onSourceClick:types.func,isAITyping:types.boolRequired,triggerOn:Q.string.def(constants_9$1.ALWAYS),renderTriggerMessage:types.func},mounted:function(){},watch:{AIResponse:function(e){if(e){if(this.$props.showSourceDocuments&&e.response&&e.response.answer&&Array.isArray(e.response.answer.documentIds)){this.sourceDocIds=e.response.answer.documentIds;var t=helper_2(constants_8$1)&&helper_2(constants_8$1)[this.$props.componentId];t&&t.meta&&t.meta.hits&&(this.initialHits=t.meta.hits)}this.AISessionId=((helper_2(constants_8$1)||{})[this.$props.componentId]||{}).sessionId||(((helper_2(constants_8$1)||{})[this.$props.componentId]||{}).response||{}).sessionId;var n=e.messages,r=e.response,o=[];r&&r.error&&(this.error={message:r.error}),n&&Array.isArray(n)?(o.push.apply(o,n.filter((function(e){return e.role!==constants_7$1.SYSTEM}))),o[0].role===constants_7$1.USER&&o.shift()):r&&r.answer&&r.answer.text&&(o.push({role:constants_7$1.ASSISTANT,content:r.answer.text}),this.AISessionId||(this.error={message:this.errorMessageForMissingSessionId})),this.messages=o}else e||this.error||(this.messages=[])},rawData:function(e){this.$emit("on-data",{data:this.messages,rawData:e,loading:this.$props.isAIResponseLoading||this.$props.isLoading,error:this.$props.AIResponseError}),e&&e.hits&&e.hits.hits&&(this.initialHits=e.hits.hits)},isAIResponseLoading:function(e){this.$emit("on-data",{data:this.messages,rawData:this.$props.rawData,loading:e||this.isLoading,error:this.$props.AIResponseError})},isLoading:function(e){this.$emit("on-data",{data:this.messages,rawData:this.$props.rawData,loading:e||this.isAIResponseLoading,error:this.$props.AIResponseError})},sessionIdFromStore:function(e){e&&(this.sessionId=e)},AIResponseError:function(e){if(this.error=e,this.AISessionId=((helper_2(constants_8$1)||{})[this.$props.componentId]||{}).sessionId||(((helper_2(constants_8$1)||{})[this.$props.componentId]||{}).response||{}).sessionId,this.error&&!this.AISessionId){var t=this.errorMessageForMissingSessionId;this.error={message:t},console.error(t)}this.$emit("on-data",{data:this.messages,rawData:this.$props.rawData,loading:this.isAIResponseLoading||this.isLoading,error:e})},messages:function(){this.scrollToBottom()},componentError:function(e){var t=this;e&&e._bodyBlob&&(this.AISessionId=((helper_2(constants_8$1)||{})[this.$props.componentId]||{}).sessionId||(((helper_2(constants_8$1)||{})[this.$props.componentId]||{}).response||{}).sessionId,this.AISessionId||this.generateNewSessionId(),e._bodyBlob.text().then((function(e){try{var n=JSON.parse(e);n.error&&(t.error=n.error,t.$emit("on-data",{data:t.messages,rawData:t.$props.rawData,loading:t.$props.isAIResponseLoading||t.$props.isLoading,error:n.error}))}catch(e){console.error("Error parsing component error JSON:",e)}})).catch((function(e){console.error("Error reading component error text data:",e)})))},showComponent:function(){this.$props.triggerOn===constants_9$1.QUESTION&&this.$props.dependentComponentValue.endsWith("?")&&(this.isTriggered=!0)},dependentComponentValue:function(e){this.$props.triggerOn===constants_9$1.QUESTION&&e&&e.endsWith("?")?(this.isTriggered=!0,this.AISessionId&&this.handleSendMessage(null,!1,"",!0)):this.hasTriggered&&this.$props.triggerOn!==constants_9$1.ALWAYS&&(this.isTriggered=!1)},AISessionId:function(e){e&&(this.$props.triggerOn===constants_9$1.QUESTION&&this.dependentComponentValue&&this.dependentComponentValue.endsWith("?")||this.$props.triggerOn===constants_9$1.ALWAYS)&&this.handleSendMessage(null,!1,"",!0)},triggerOn:function(e){e===constants_9$1.ALWAYS&&(this.isTriggered=!0)}},methods:{renderTriggerMessageFunc:function(){var e=this.$props.triggerOn;if(this.$props.renderTriggerMessage)return this.$props.renderTriggerMessage;if(this.$slots.renderTriggerMessage)return this.$slots.renderTriggerMessage();if(e===constants_9$1.QUESTION){if(!this.dependentComponentValue.endsWith("?"))return vue.createVNode("span",null,[vue.createVNode("span",{role:"img","aria-label":"bulb"},[vue.createTextVNode("💡")]),vue.createTextVNode("End your question with a question mark (?)")])}else if(e===constants_9$1.MANUAL)return vue.createVNode("span",null,[vue.createTextVNode("Click here to ask AI")," ",vue.createVNode("span",{role:"img","aria-label":"bulb"},[vue.createTextVNode("🤖")])]);return null},handleTriggerClick:function(){this.$props.triggerOn===constants_9$1.MANUAL&&(this.handleSendMessage(null,!1,"",!0),this.isTriggered=!0)},getAISourceObjects:function(){var e=this,t=[];if(!this.AIResponse)return t;var n=this.sourceDocIds||[];return this.initialHits?n.forEach((function(n){var r=e.initialHits.find((function(e){return e._id===n}))||{};if(r){var o=r._source,s=void 0===o?{}:o,a=_objectWithoutPropertiesLoose(r,_excluded$2);t.push(_extends({},a,s))}})):t.push.apply(t,n.map((function(e){return{_id:e}}))),t},renderAIScreenFooter:function(){var e,t=this,n=this.$props||{},r=n.showSourceDocuments,o=void 0===r||r,s=n.onSourceClick,a=void 0===s?function(){}:s,i=n.renderSourceDocument||this.$slots.renderSourceDocument;if(this.isLoadingState||this.isAITyping)return null;return o&&Array.isArray(this.sourceDocIds)&&this.sourceDocIds.length?vue.createVNode(Footer,{themePreset:this.$props.themePreset,style:{marginTop:"1.5rem",background:"inherit"}},{default:function(){return[vue.createTextVNode("Summary generated using the following sources:")," ",vue.createVNode(SourceTags,null,_isSlot$6(e=t.getAISourceObjects().map((function(e){var n,r;return vue.createVNode(Button,{class:"--ai-source-tag "+(helper_31(t.$props.innerClass,"ai-source-tag")||""),info:!0,onClick:function(){return a&&a(e)},key:e._id},_isSlot$6((r=e,n=i?i(r):r._id))?n:{default:function(){return[n]}})})))?e:{default:function(){return[e]}})]}}):null},generateNewSessionId:function(){var e=this;this.createAISession().then((function(t){e.AISessionId=t.AIsessionId})).catch((function(e){console.error(e)}))},scrollToBottom:function(){var e=this;this.$nextTick((function(){var t,n=null==(t=e.$refs)?void 0:t[e.$props.innerRef];n&&n.$el&&n.$el.scrollTo({top:n.$el.scrollHeight,behavior:"smooth"})}))},handleMessageInputChange:function(e){this.inputMessage=e.target.value,this.handleTextAreaHeightChange()},handleSendMessage:function(e,t,n,r){if(void 0===t&&(t=!1),void 0===n&&(n=this.inputMessage),void 0===r&&(r=!1),"object"==typeof e&&null!==e&&e.preventDefault(),n.trim()||!n&&!e){if(this.isLoadingState)return;if(this.AISessionId){if(!t){var o=[].concat(this.messages);n&&o.push({content:n,role:constants_7$1.USER}),this.messages=[].concat(o)}this.getAIResponse(this.AISessionId,this.componentId,n,r)}else console.error(this.errorMessageForMissingSessionId),this.error={message:"AISessionId for "+this.$props.componentId+" is missing! AIAnswer component requires an AISessionId to function. Trying reloading the App."};this.inputMessage=""}},handleRetryRequest:function(){if(this.messages&&!this.isLoadingState){var e,t=null==(e=this.messages[this.messages.length-1])?void 0:e.content;this.AISessionId?(this.getAIResponse(this.AISessionId,this.componentId,t),this.inputMessage=""):console.error("AISessionId for "+this.componentId+" is missing! AIAnswer component requires an AISessionId to function. Try reloading the App.")}},renderErrorComponent:function(){var e,t,n=this.$slots.renderError||this.$props.renderError;return this.error&&!this.isLoadingState?n?vue.createVNode("div",{ref:_errorContainerRef,class:"--ai-answer-error-container "+(helper_31(this.$props.innerClass,"ai-error")||"")},[isFunction(n)?n(this.error,this.handleRetryRequest):n]):vue.createVNode("div",{ref:_errorContainerRef,class:"--ai-answer-error-container "+(helper_31(this.$props.innerClass,"ai-error")||"")},[vue.createVNode("div",{class:"--default-error-element"},[vue.createVNode("span",null,[null!=(e=this.error)&&e.message?this.error.message:"There was an error in generating the response."," ",null!=(t=this.error)&&t.code?", Code:\n\t\t\t\t\t\t\t"+this.error.code:""]),this.AISessionId&&vue.createVNode(Button,{primary:!0,onClick:this.handleRetryRequest},{default:function(){return[vue.createTextVNode("Try again")]}})])]):null},handleKeyPress:function(e){"Enter"===e.key&&(this.handleSendMessage(e),this.inputMessage="")},renderIcon:function(){return this.$props.showIcon?this.$props.icon?this.$props.icon:this.$slots.icon?this.$slots.icon():this.$props.iconURL?vue.createVNode("img",{style:{maxHeight:"25px"},src:this.$props.iconURL,alt:"search-icon"},null):vue.createVNode(SearchSvg,null,null):null},shouldMicRender:function(e){return"undefined"!=typeof window&&(e&&(window.webkitSpeechRecognition||window.SpeechRecognition))},handleVoiceResults:function(e){var t=e.results;t&&t[0]&&t[0].isFinal&&t[0][0]&&t[0][0].transcript&&t[0][0].transcript.trim()&&this.handleSendMessage(null,!1,t[0][0].transcript.trim())},renderIcons:function(){var e,t,n=this,r=this.$props,o=r.getMicInstance,s=r.showVoiceInput,a=r.iconPosition,i=r.innerClass,l=this.$slots.renderMic||this.$props.renderMic;return vue.createVNode("div",null,[vue.createVNode(IconGroup,{enableAI:!0,groupPosition:"right",positionType:"absolute"},{default:function(){return[!n.isLoadingState&&n.AISessionId&&n.shouldMicRender(s)&&vue.createVNode(Mic,{getInstance:o,render:l,handleResult:n.handleVoiceResults,class:helper_31(i,"ai-search-mic")||null},null),"right"===a&&vue.createVNode(IconWrapper,null,_isSlot$6(e=n.renderIcon())?e:{default:function(){return[e]}})]}}),vue.createVNode(IconGroup,{enableAI:!0,groupPosition:"left",positionType:"absolute"},{default:function(){return["left"===a&&vue.createVNode(IconWrapper,null,_isSlot$6(t=n.renderIcon())?t:{default:function(){return[t]}})]}})])},enterButtonOnClick:function(e){this.handleSendMessage(e)},renderEnterButtonElement:function(){var e=this,t=this.$props,n=t.enterButton,r=t.innerClass,o=this.$slots.renderEnterButton;if(n){return vue.createVNode("div",{class:"ai-enter-button-wrapper"},[o?o(e.enterButtonOnClick):vue.createVNode(SendButton,{primary:!0,type:"submit",tabIndex:0,onClick:e.handleSendMessage,onKeyPress:e.handleKeyPress,class:"ask-btn "+helper_31(r,"ai-enter-button"),disabled:e.isLoadingState||!e.AISessionId},{default:function(){return[vue.createTextVNode("Send")]}})])}return null},getComponent:function(){var e={error:this.AIResponseError,loading:this.isAIResponseLoading,data:this.messages,rawData:this.rawData};return getComponent(e,this)},handleTextAreaHeightChange:function(){var e,t,n,r=null==(e=this.$refs)||null==(e=e[_inputRef])?void 0:e.$el,o=null==(t=this.$refs)||null==(t=t[_inputWrapperRef])?void 0:t.$el,s=null==(n=this.$refs)?void 0:n[_errorContainerRef];if(r){r.style.height="42px";var a=11*parseInt(getComputedStyle(r).lineHeight,10),i=Math.min(r.scrollHeight,a);r.style.height=i+"px",r.style.overflowY=i===a?"auto":"hidden",o.style.height=i+"px",s&&(s.style.bottom=i+"px"),this.$forceUpdate()}},getTitle:function(){var e=this;return this.$props.title||this.$slots.title||null?vue.createVNode(Title,{class:helper_31(this.$props.innerClass,"ai-title")||null},{default:function(){return[e.$props.title||e.$slots.title()]}}):null}},beforeUnmount:function(){if(this.$props.clearSessionOnDestroy){var e=helper_2(constants_8$1)||{};delete e[this.$props.componentId],helper_3(constants_8$1,e)}},render:function(){var e,t=this,n=this.$props;return this.shouldShowComponent?this.isTriggered?vue.createVNode(Chatbox,{style:n.style||{}},{default:function(){return[t.getTitle(),vue.createVNode(ChatContainer,{class:"--ai-chat-container",theme:n.theme,showInput:n.showInput},{default:function(){return[t.hasCustomRenderer&&vue.createVNode(MessagesContainer,{themePreset:t.themePreset,theme:n.theme,ref:t.$props.innerRef,class:"--ai-message-container "+(helper_31(n.innerClass,"ai-message-container")||"")},_isSlot$6(e=t.getComponent())?e:{default:function(){return[e]}}),!t.hasCustomRenderer&&vue.createVNode(MessagesContainer,{themePreset:t.themePreset,theme:n.theme,ref:t.$props.innerRef,class:"--ai-message-container "+(helper_31(n.innerClass,"ai-message-container")||"")},{default:function(){return[t.messages.map((function(e,r){return vue.createVNode(Message,{key:r,isSender:e.role===constants_7$1.USER,innerHTML:md$1.render(e.content),themePreset:t.themePreset,theme:n.theme,class:"--ai-answer-message "+(helper_31(n.innerClass,"ai-message")||"")},null)})),t.isLoadingState&&vue.createVNode(Message,{themePreset:t.themePreset,theme:n.theme,isSender:!1,class:"--ai-answer-message "+(helper_31(n.innerClass,"ai-message")||null)},{default:function(){return[vue.createVNode(TypingIndicator,null,{default:function(){return[vue.createVNode(TypingDot,{themePreset:t.themePreset},null),vue.createVNode(TypingDot,{themePreset:t.themePreset},null),vue.createVNode(TypingDot,{themePreset:t.themePreset},null)]}})]}})]}}),t.renderErrorComponent()," ",n.showFeedback&&!t.isLoadingState&&!t.isAITyping&&vue.createVNode("div",{class:"--ai-answer-feedback-container "+(helper_31(n.innerClass,"ai-feedback")||"")},[vue.createVNode(AIFeedback,{hideUI:t.isLoadingState||!t.sessionId,key:t.sessionId,onFeedbackSubmit:function(e,n){t.trackUsefullness(t.sessionId,{useful:e,reason:n})}},null)])," ",t.renderAIScreenFooter(),n.showInput&&!t.isLoadingState&&!t.isAITyping&&vue.createVNode(MessageInputContainer,{class:"--ai-input-container",onSubmit:t.handleSendMessage},{default:function(){return[vue.createVNode(InputGroup,{enableAI:!0,isOpen:!1},{default:function(){return[vue.createVNode(InputWrapper,{ref:_inputWrapperRef},{default:function(){return[vue.createVNode(MessageInput,{ref:_inputRef,placeholder:n.placeholder,enterButton:n.enterButton,value:t.inputMessage,onInput:t.handleMessageInputChange,id:n.componentId+"-ai-input",showIcon:n.showIcon,iconPosition:n.iconPosition,themePreset:t.themePreset,disabled:t.isLoadingState||!t.AISessionId,class:helper_31(n.innerClass,"ai-input")||null},null)," ",t.renderIcons()]}})]}}),t.renderEnterButtonElement()]}})," "]}})]}}):vue.createVNode(Chatbox,{style:n.style||{}},{default:function(){return[t.getTitle(),vue.createVNode("div",{class:"--trigger-message-wrapper",onClick:t.handleTriggerClick,"aria-hidden":"true"},[t.renderTriggerMessageFunc()])]}}):null}});AIAnswer.hasInternalComponent=function(){return!0};var mapStateToProps$4=function(e,t){var n=Object.values(t.react)[0];return Array.isArray(n)&&(n=n[0]),{showComponent:!(!e.selectedValues[n]||!e.selectedValues[n].value),dependentComponentValue:e.selectedValues[n]&&e.selectedValues[n].value||"",AIResponse:e.AIResponses[t.componentId]&&e.AIResponses[t.componentId].response,isAIResponseLoading:e.AIResponses[t.componentId]&&e.AIResponses[t.componentId].isLoading,AIResponseError:e.AIResponses[t.componentId]&&e.AIResponses[t.componentId].error,rawData:e.rawData[t.componentId],themePreset:e.config.themePreset,isLoading:e.isLoading[t.componentId]||!1,sessionIdFromStore:e.AIResponses[t.componentId]&&e.AIResponses[t.componentId].response&&e.AIResponses[t.componentId].response.sessionId||"",componentError:e.error[t.componentId]||null,isAITyping:e.AIResponses[t.componentId]&&e.AIResponses[t.componentId].response&&e.AIResponses[t.componentId].response.isTyping||!1}},mapDispatchToProps$3={getAIResponse:function(e,t,n,r){return void 0===r&&(r=!1),query_7(e,t,n,null,r)},trackUsefullness:analytics_8,createAISession:query_8},AIConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$4,mapDispatchToProps$3)(AIAnswer),{componentType:constants_1$1.AIAnswer,internalComponent:!0})),_templateObject$m,_templateObject2$a,_templateObject3$7;AIConnected.name=AIAnswer.name,AIConnected.hasInternalComponent=AIAnswer.hasInternalComponent,AIConnected.install=function(e){e.component(AIConnected.name,AIConnected)},AIConnected.componentType=constants_1$1.AIAnswer;var item={width:"15px",height:"15px",scale:"4px"},vh="\n\tborder: 0;\n\tclip: rect(1px, 1px, 1px, 1px);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tpadding: 0;\n\tposition: absolute;\n\twidth: 1px;\n\twhite-space: nowrap;\n",hideInputControl="\n\t+ label {\n\t\tpadding-left: 0;\n\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder: 0;\n\t\t\tmargin: 0;\n\t\t\tvisibility: hidden;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t+ label {\n\t\t\tfont-weight: bold;\n\t\t}\n\t}\n",formItem=function(e){var t=e.theme,n=void 0===t?{}:t;return"\n\t"+vh+";\n\n\t&:focus {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tbox-shadow: 0 0 0 2px "+curriedLighten(.4,n.colors.primaryColor)+";\n\t\t\t}\n\t\t}\n\t}\n\n\t&:hover {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tborder-color: "+n.colors.primaryColor+";\n\t\t\t}\n\t\t}\n\t}\n\n\t&:active {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\ttransition-duration: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t+ label {\n\t\tposition: relative;\n\t\tuser-select: none;\n\t\tdisplay: flex;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\talign-items: center;\n\t\tcursor: pointer;\n\n\t\t&::before {\n\t\t\tbackground-color: #fff;\n\t\t\tborder: 1px solid "+(n.colors.borderColor||curriedLighten(.1,n.colors.textColor))+";\n\t\t\tbox-sizing: content-box;\n\t\t\tcontent: '';\n\t\t\tcolor: "+n.colors.primaryColor+";\n\t\t\tmargin-right: calc("+item.width+" * 0.5);\n\t\t\ttop: 50%;\n\t\t\tleft: 0;\n\t\t\twidth: "+item.width+";\n\t\t\theight: "+item.height+";\n\t\t\tdisplay: inline-block;\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\t&::after {\n\t\t\tbox-sizing: content-box;\n\t\t\tcontent: '';\n\t\t\tbackground-color: "+n.colors.primaryColor+";\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: calc(1px + "+item.scale+" / 2);\n\t\t\twidth: calc("+item.width+" - "+item.scale+");\n\t\t\theight: calc("+item.height+" - "+item.scale+");\n\t\t\tmargin-top: calc("+item.height+" / -2 - "+item.scale+" / -2);\n\t\t\ttransform: scale(0);\n\t\t\ttransform-origin: 50%;\n\t\t\ttransition: transform 200ms ease-out;\n\t\t}\n\t}\n"},Radio=styled("input")(_templateObject$m||(_templateObject$m=_taggedTemplateLiteralLoose(["\n\t",";\n\t",";\n\n\t+ label {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-radius: 50%;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t+ label {\n\t\t\t\tcolor: ",";\n\n\t\t\t\t&::before {\n\t\t\t\t\tanimation: none;\n\t\t\t\t\tfilter: none;\n\t\t\t\t\ttransition: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tanimation: none;\n\t\t\t\tbackground-color: #fff;\n\t\t\t\tborder-color: ",";\n\t\t}\n\n\t\t&::after {\n\t\t\ttransform: scale(1);\n\t\t}\n\t}\n"])),formItem,(function(e){return e.show?null:hideInputControl}),(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),Checkbox=styled("input")(_templateObject2$a||(_templateObject2$a=_taggedTemplateLiteralLoose(["\n\t",";\n\t",";\n\n\t+ label {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-radius: 0;\n\t\t}\n\n\t\t&::after {\n\t\t\tbackground-color: transparent;\n\t\t\ttop: 50%;\n\t\t\tleft: calc(1px + "," / 5);\n\t\t\twidth: calc("," / 2);\n\t\t\theight: calc("," / 5);\n\t\t\tmargin-top: calc("," / -2 / 2 * 0.8);\n\t\t\tborder-style: solid;\n\t\t\tborder-color: ",";\n\t\t\tborder-width: 0 0 2px 2px;\n\t\t\tborder-radius: 0;\n\t\t\tborder-image: none;\n\t\t\ttransform: rotate(-45deg) scale(0);\n\t\t\ttransition: none;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tborder-color: ",";\n\t\t\t}\n\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\ttransform: rotate(-45deg) scale(1);\n\t\t\t\ttransition: transform 200ms ease-out;\n\t\t\t}\n\t\t}\n\t}\n"])),formItem,(function(e){return e.show?null:hideInputControl}),item.width,item.width,item.width,item.height,(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),UL=styled("ul")(_templateObject3$7||(_templateObject3$7=_taggedTemplateLiteralLoose(["\n\tlist-style: none;\n\tpadding: 0;\n\tmargin: 0;\n\tmax-height: 240px;\n\tposition: relative;\n\toverflow-y: auto;\n\tpadding-bottom: 12px;\n\n\tli {\n\t\theight: 30px;\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\talign-items: center;\n\t\tpadding-left: 2px;\n\t}\n"]))),getAggsOrder=lib_8.getAggsOrder,extractQuery=function(e){var t={};if(e.defaultQuery){var n=e.defaultQuery([],e);n&&(n.query&&(t.query=n.query),n.aggs&&(t.aggs=n.aggs))}return t},getAggsQuery=function(e,t){var n,r=e,o=t.dataField,s=t.size,a=t.sortBy,i=t.showMissing,l=t.missingLabel;return r.size=0,r.aggs=((n={})[o]={terms:_extends({field:o,size:s,order:getAggsOrder(a||"count")},i?{missing:l}:{})},n),t.nestedField&&(r.aggs={reactivesearch_nested:{nested:{path:t.nestedField},aggs:r.aggs}}),_extends({},r,extractQuery(t))},sanitizeObject=function(e){return JSON.parse(JSON.stringify(e,(function(e,t){return null===t||t=={}||!1===t?void 0:t})))},updateQuery$2=lib_5.updateQuery,setQueryOptions$1=lib_5.setQueryOptions,setCustomQuery$1=lib_5.setCustomQuery,setDefaultQuery$2=lib_5.setDefaultQuery,getQueryOptions$1=lib_8.getQueryOptions,checkValueChange$1=lib_8.checkValueChange,getClassName$4=lib_8.getClassName,isEqual$5=lib_8.isEqual,extractQueryFromCustomQuery$1=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$1=lib_8.getOptionsForCustomQuery,SingleList={name:"SingleList",props:{beforeValueChange:types.func,className:Q.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultValue:types.string,value:types.value,defaultQuery:types.func,filterLabel:types.string,innerClass:types.style,placeholder:Q.string.def("Search"),react:types.react,render:types.func,renderItem:types.func,renderNoResults:Q.any,transformData:types.func,selectAllLabel:types.string,showCount:Q.bool.def(!0),showFilter:Q.bool.def(!0),showRadio:Q.bool.def(!0),showSearch:Q.bool.def(!0),size:Q.number,sortBy:Q.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:Q.bool.def(!1),showMissing:Q.bool.def(!1),missingLabel:Q.string.def("N/A"),nestedField:types.string,index:Q.string,enableStrictSelection:Q.bool.def(!1),endpoint:types.endpointConfig},data:function(){var e=this.$props;return this.__state={currentValue:"",modifiedOptions:[],searchTerm:""},this.internalComponent=e.componentId+"__internal",this.__state},created:function(){var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.currentValue),this.updateQueryHandlerOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{options:function(e){e&&(this.modifiedOptions=e[this.$props.dataField]?e[this.$props.dataField].buckets:[])},size:function(){this.updateQueryHandlerOptions(this.$props)},sortBy:function(){this.updateQueryHandlerOptions(this.$props)},dataField:function(){this.updateQueryHandlerOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){isEqual$5(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=this.$props,n=t.selectAllLabel,r=t.renderItem,o=t.renderError,s=this.$slots.renderItem||r,a=this.$slots.renderError||o;if(a&&this.error)return isFunction(a)?a(this.error):a;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResults)return null;this.renderNoResult()}var i=this.$data.modifiedOptions;this.$props.transformData&&(i=this.$props.transformData(i));var l=i.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||suggestions_1(String(t.key)).toLowerCase().includes(suggestions_1(e.$data.searchTerm.toLowerCase())))}));return vue.createVNode(Container,{class:this.$props.className},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$4(e.$props.innerClass,"title")||""},{default:function(){return[e.$props.title]}}),e.renderSearch(),e.hasCustomRenderer?e.getComponent():vue.createVNode(UL,{class:getClassName$4(e.$props.innerClass,"list")||""},{default:function(){return[n?vue.createVNode("li",{key:n,class:e.$data.currentValue===n?"active":""},[vue.createVNode(Radio,{class:getClassName$4(e.$props.innerClass,"radio"),id:e.$props.componentId+"-"+n,name:e.$props.componentId,value:n,onClick:e.handleClick,readOnly:!0,type:"radio",show:e.$props.showRadio,checked:e.$data.currentValue===n},null),vue.createVNode("label",{class:getClassName$4(e.$props.innerClass,"label")||null,for:e.$props.componentId+"-"+n},[vue.createVNode("span",null,[n,e.$props.showCount&&vue.createVNode("span",{class:getClassName$4(e.$props.innerClass,"count")||null},[vue.createTextVNode(" ("),e.totalDocumentCount,vue.createTextVNode(")")])])])]):null,e.hasCustomRenderer||0!==l.length||e.isLoading?l.map((function(t){return vue.createVNode("li",{key:t.key,class:e.currentValue===String(t.key)?"active":""},[vue.createVNode(Radio,{class:getClassName$4(e.$props.innerClass,"radio"),id:e.$props.componentId+"-"+t.key,name:e.$props.componentId,value:t.key,readOnly:!0,onClick:e.handleClick,type:"radio",show:e.$props.showRadio,checked:e.currentValue===String(t.key)},null),vue.createVNode("label",{class:getClassName$4(e.$props.innerClass,"label")||null,for:e.$props.componentId+"-"+t.key},[s?s({label:t.key,count:t.doc_count,isChecked:e.currentValue===String(t.key)}):vue.createVNode("span",null,[t.key,e.$props.showCount&&vue.createVNode("span",{class:getClassName$4(e.$props.innerClass,"count")||null},[vue.createTextVNode(" ("),t.doc_count,vue.createTextVNode(")")])])])])})):e.renderNoResult()]}})]}})},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);var r=e;e===this.$data.currentValue&&(r="");checkValueChange$1(t.componentId,r,t.beforeValueChange,(function(){n.currentValue=r,n.updateQueryHandler(r,t),n.$emit("valueChange",r),n.$emit("value-change",r)}))},updateDefaultQueryHandler:function(e,t){var n=SingleList.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=extractQueryFromCustomQuery$1(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var s=getOptionsForCustomQuery$1(r);this.setQueryOptions(this.internalComponent,s,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:constants_1$1.singleList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=SingleList.defaultQuery(e,t);if(n){var o=n(e,t);r=extractQueryFromCustomQuery$1(o);var s=getOptionsForCustomQuery$1(o);updateCustomQuery(t.componentId,this.setCustomQuery,t,e),this.setQueryOptions(t.componentId,s,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.singleList})},generateQueryOptions:function(e){var t=getQueryOptions$1(e);return getAggsQuery(t,e)},updateQueryHandlerOptions:function(e){var t=SingleList.generateQueryOptions(e);if(e.defaultQuery){var n=this.$data.currentValue,r=getOptionsForCustomQuery$1(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,_extends({},t,r))}else this.setQueryOptions(this.internalComponent,t)},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},renderSearch:function(){return this.$props.showSearch?vue.createVNode(Input,{class:getClassName$4(this.$props.innerClass,"input")||"",onInput:this.handleInputChange,value:this.$data.searchTerm,placeholder:this.$props.placeholder,style:{margin:"0 0 8px"},themePreset:this.$props.themePreset},null):null},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var s={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return getComponent(s,this)},handleClick:function(e){var t=e;return isEvent(e)&&(t=e.target.value),(!this.enableStrictSelection||t!==this.currentValue)&&(void 0===this.$props.value?this.setValue(t):this.$emit("change",t),!0)},renderNoResult:function(){var e=this.$slots.renderNoResults||this.$props.renderNoResults;return vue.createVNode("p",{class:getClassName$4(this.$props.innerClass,"noResults")||null},[isFunction(e)?e():e])}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)}},generateQueryOptions:function(e){var t=getQueryOptions$1(e);return getAggsQuery(t,e)},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,nestedField:t.nestedField,selectAllLabel:t.selectAllLabel,showMissing:t.showMissing}}},hasInternalComponent:function(){return!0}},mapStateToProps$5=function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId]}},mapDispatchtoProps$2={setQueryOptions:setQueryOptions$1,updateQuery:updateQuery$2,setCustomQuery:setCustomQuery$1,setDefaultQuery:setDefaultQuery$2},ListConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$5,mapDispatchtoProps$2)(SingleList),{componentType:constants_1$1.singleList,internalComponent:SingleList.hasInternalComponent()}));ListConnected.name=SingleList.name,ListConnected.defaultQuery=SingleList.defaultQuery,ListConnected.generateQueryOptions=SingleList.generateQueryOptions,ListConnected.hasInternalComponent=SingleList.hasInternalComponent,ListConnected.componentType=constants_1$1.singleList,ListConnected.install=function(e){e.component(ListConnected.name,ListConnected)};var updateQuery$3=lib_5.updateQuery,setQueryOptions$2=lib_5.setQueryOptions,setCustomQuery$2=lib_5.setCustomQuery,setDefaultQuery$3=lib_5.setDefaultQuery,isEqual$6=lib_8.isEqual,getQueryOptions$2=lib_8.getQueryOptions,checkValueChange$2=lib_8.checkValueChange,getClassName$5=lib_8.getClassName,extractQueryFromCustomQuery$2=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$2=lib_8.getOptionsForCustomQuery,MultiList={name:"MultiList",props:{defaultValue:types.stringArray,value:types.stringArray,queryFormat:Q.oneOf(["and","or"]).def("or"),showCheckbox:Q.bool.def(!0),beforeValueChange:types.func,className:Q.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultQuery:types.func,filterLabel:types.string,innerClass:types.style,placeholder:Q.string.def("Search"),react:types.react,render:types.func,renderItem:types.func,renderError:types.title,renderNoResults:Q.any,transformData:types.func,selectAllLabel:types.string,showCount:Q.bool.def(!0),showFilter:Q.bool.def(!0),showSearch:Q.bool.def(!0),size:Q.number,sortBy:Q.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:Q.bool.def(!1),showMissing:Q.bool.def(!1),missingLabel:Q.string.def("N/A"),nestedField:types.string,index:Q.string,endpoint:types.endpointConfig},data:function(){var e=this.$props;return this.__state={currentValue:{},modifiedOptions:[],searchTerm:""},this.internalComponent=e.componentId+"__internal",this.__state},created:function(){var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.currentValue),this.updateQueryHandlerOptions(this.$props);var t=this.selectedValue||this.$props.value||this.$props.defaultValue;this.setValue(t,!this.selectedValue)},mounted:function(){var e=Object.keys(this.$data.currentValue);void 0===this.$props.value||isEqual$6(this.$props.value,e)||this.$emit("change",e)},watch:{options:function(e){e&&(this.modifiedOptions=e[this.$props.dataField]?e[this.$props.dataField].buckets:[])},size:function(){this.updateQueryHandlerOptions(this.$props)},sortBy:function(){this.updateQueryHandlerOptions(this.$props)},dataField:function(){this.updateQueryHandlerOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},value:function(e,t){isEqual$6(t,e)||this.setValue(e,!0)},defaultValue:function(e,t){isEqual$6(t,e)||this.setValue(e,!0)},selectedValue:function(e){var t=this,n=Object.keys(this.$data.currentValue);this.$props.selectAllLabel&&(n=n.filter((function(e){return e!==t.$props.selectAllLabel})),this.$data.currentValue[this.$props.selectAllLabel]&&(n=[this.$props.selectAllLabel])),isEqual$6(n,e)||(void 0===this.value?this.setValue(e,!0):this.$emit("change",e))},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=this.$props,n=t.selectAllLabel,r=t.renderItem,o=t.renderError,s=this.$slots.renderItem||r,a=this.$slots.renderError||o;if(a&&this.error)return isFunction(a)?a(this.error):a;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResults)return null;this.renderNoResult()}var i=this.$data.modifiedOptions;this.$props.transformData&&(i=this.$props.transformData(i));var l=i.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||suggestions_1(String(t.key)).toLowerCase().includes(suggestions_1(e.$data.searchTerm).toLowerCase()))}));return vue.createVNode(Container,{class:this.$props.className},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$5(e.$props.innerClass,"title")},{default:function(){return[e.$props.title]}}),e.renderSearch(),e.hasCustomRenderer?e.getComponent():vue.createVNode(UL,null,{default:function(){return[n?vue.createVNode("li",{key:n,class:e.currentValue[n]?"active":""},[vue.createVNode(Checkbox,{type:"checkbox",class:getClassName$5(e.$props.innerClass,"checkbox"),id:e.$props.componentId+"-"+n,name:n,value:n,onClick:e.handleClick,checked:!!e.currentValue[n],show:e.$props.showCheckbox},null),vue.createVNode("label",{class:getClassName$5(e.$props.innerClass,"label"),for:e.$props.componentId+"-"+n},[vue.createVNode("span",null,[n,e.$props.showCount&&vue.createVNode("span",{class:getClassName$5(e.$props.innerClass,"count")},[vue.createTextVNode(" ("),e.totalDocumentCount,vue.createTextVNode(")")])])])]):null,e.hasCustomRenderer||0!==l.length||e.isLoading?l.map((function(t){return vue.createVNode("li",{key:t.key,class:e.$data.currentValue[t.key]?"active":""},[vue.createVNode(Checkbox,{type:"checkbox",class:getClassName$5(e.$props.innerClass,"checkbox"),id:e.$props.componentId+"-"+t.key,name:e.$props.componentId,value:t.key,onClick:e.handleClick,show:e.$props.showCheckbox,checked:!!e.$data.currentValue[t.key]},null),vue.createVNode("label",{class:getClassName$5(e.$props.innerClass,"label"),for:e.$props.componentId+"-"+t.key},[s?s({label:t.key,count:t.doc_count,isChecked:!!e.$data.currentValue[t.key]}):vue.createVNode("span",null,[t.key,e.$props.showCount&&vue.createVNode("span",{class:getClassName$5(e.$props.innerClass,"count")},[vue.createTextVNode(" ("),t.doc_count,vue.createTextVNode(")")])])])])})):e.renderNoResult()]}})]}})},methods:{setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,s=this.$data.currentValue,a=null;if(o&&(Array.isArray(e)&&e.includes(o)||"string"==typeof e&&e===o))s[o]?(s={},a=[]):(this.$data.modifiedOptions.forEach((function(e){s[e.key]=!0})),s[o]=!0,a=[o]);else if(t){if(a=e,s={},e&&e.length&&e.forEach((function(e){s[e]=!0})),o&&o in s){var i=s,l=(i[o],_objectWithoutPropertiesLoose(i,[o].map(_toPropertyKey$1)));s=_extends({},l)}}else{if(s[e]){var u=s,c=(u[e],_objectWithoutPropertiesLoose(u,[e].map(_toPropertyKey$1)));s=_extends({},c)}else Array.isArray(e)?e.forEach((function(e){s[e]=!0})):s[e]=!0;if(o&&o in s){var p=s,d=(p[o],_objectWithoutPropertiesLoose(p,[o].map(_toPropertyKey$1)));s=_extends({},d)}a=Object.keys(s)}checkValueChange$2(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=Object.assign({},s),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n=MultiList.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=extractQueryFromCustomQuery$2(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var s=getOptionsForCustomQuery$2(r);this.setQueryOptions(this.internalComponent,s,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:constants_1$1.multiList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=MultiList.defaultQuery(e,t);if(n){var o=n(e,t);r=extractQueryFromCustomQuery$2(o),updateCustomQuery(t.componentId,this.setCustomQuery,t,e);var s=getOptionsForCustomQuery$2(o);this.setQueryOptions(t.componentId,s,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.multiList})},generateQueryOptions:function(e){var t=getQueryOptions$2(e);return getAggsQuery(t,e)},updateQueryHandlerOptions:function(e){var t=MultiList.generateQueryOptions(e);if(e.defaultQuery){var n=Object.keys(this.$data.currentValue),r=getOptionsForCustomQuery$2(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,_extends({},t,r))}else this.setQueryOptions(this.internalComponent,t)},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},renderSearch:function(){return this.$props.showSearch?vue.createVNode(Input,{class:getClassName$5(this.$props.innerClass,"input")||"",onInput:this.handleInputChange,value:this.$data.searchTerm,placeholder:this.$props.placeholder,style:{margin:"0 0 8px"},themePreset:this.$props.themePreset},null):null},handleClick:function(e){var t=e;isEvent(e)&&(t=e.target.value);var n=this.$props.value;if(void 0===n)this.setValue(t);else{var r=parseValueArray(n||[],t);this.$emit("change",r)}},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var s={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return getComponent(s,this)},renderNoResult:function(){var e=this.$slots.renderNoResults||this.$props.renderNoResults;return vue.createVNode("p",{class:getClassName$5(this.$props.innerClass,"noResults")||null},[isFunction(e)?e():e])}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)}},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,nestedField:t.nestedField,selectAllLabel:t.selectAllLabel,showMissing:t.showMissing}}},generateQueryOptions:function(e){var t=getQueryOptions$2(e);return getAggsQuery(t,e)}},mapStateToProps$6=function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,themePreset:e.config.themePreset,totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,error:e.error[t.componentId],componentProps:e.props[t.componentId]}},mapDispatchtoProps$3={setQueryOptions:setQueryOptions$2,updateQuery:updateQuery$3,setCustomQuery:setCustomQuery$2,setDefaultQuery:setDefaultQuery$3};MultiList.hasInternalComponent=function(){return!0};var ListConnected$1=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$6,mapDispatchtoProps$3)(MultiList),{componentType:constants_1$1.multiList,internalComponent:MultiList.hasInternalComponent()}));ListConnected$1.name=MultiList.name,ListConnected$1.defaultQuery=MultiList.defaultQuery,ListConnected$1.generateQueryOptions=MultiList.generateQueryOptions,ListConnected$1.hasInternalComponent=MultiList.hasInternalComponent,ListConnected$1.componentType=constants_1$1.multiList,ListConnected$1.install=function(e){e.component(ListConnected$1.name,ListConnected$1)};var ReactPropTypesSecret="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function e(e,t,n,r,o,s){if(s!==ReactPropTypesSecret_1){var a=new 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 n={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:emptyFunctionWithReset,resetWarningCache:emptyFunction};return n.PropTypes=n,n},propTypes=createCommonjsModule((function(e){e.exports=factoryWithThrowingShims()})),types_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,r=(n=dateFormats_1)&&n.__esModule?n:{default:n};var o=(0,propTypes.oneOfType)([propTypes.string,(0,propTypes.arrayOf)(propTypes.string),propTypes.object,(0,propTypes.arrayOf)(propTypes.object)]);function s(e,t){return isNaN(e[t])?new Error(t+" value must be a number"):"lat"===t&&(e[t]<-90||e[t]>90)?new Error(t+" value should be between -90 and 90."):"lng"===t&&(e[t]<-180||e[t]>180)?new Error(t+" value should be between -180 and 180."):null}var a={any:propTypes.any,analyticsConfig:(0,propTypes.shape)({emptyQuery:propTypes.bool,suggestionAnalytics:propTypes.bool,userId:propTypes.string,customEvents:propTypes.object}),appbaseConfig:(0,propTypes.shape)({enableQueryRules:propTypes.bool,enableSearchRelevancy:propTypes.bool,recordAnalytics:propTypes.bool,emptyQuery:propTypes.bool,suggestionAnalytics:propTypes.bool,userId:propTypes.string,useCache:propTypes.bool,customEvents:propTypes.object,enableTelemetry:propTypes.bool,queryString:propTypes.object}),bool:propTypes.bool,boolRequired:propTypes.bool.isRequired,components:(0,propTypes.arrayOf)(propTypes.string),compoundClause:(0,propTypes.oneOf)(["filter","must"]),children:propTypes.any,data:(0,propTypes.arrayOf)(propTypes.object),dataFieldArray:(0,propTypes.oneOfType)([propTypes.string,(0,propTypes.arrayOf)(propTypes.string)]).isRequired,dataNumberBox:(0,propTypes.shape)({label:propTypes.string,start:propTypes.number.isRequired,end:propTypes.number.isRequired}).isRequired,date:(0,propTypes.oneOfType)([propTypes.string,(0,propTypes.arrayOf)(propTypes.string)]),dateObject:propTypes.object,excludeFields:(0,propTypes.arrayOf)(propTypes.string),fieldWeights:(0,propTypes.arrayOf)(propTypes.number),filterLabel:propTypes.string,func:propTypes.func,funcRequired:propTypes.func.isRequired,fuzziness:(0,propTypes.oneOf)([0,1,2,"AUTO"]),headers:propTypes.object,hits:(0,propTypes.arrayOf)(propTypes.object),rawData:propTypes.object,iconPosition:(0,propTypes.oneOf)(["left","right"]),includeFields:(0,propTypes.arrayOf)(propTypes.string),labelPosition:(0,propTypes.oneOf)(["left","right","top","bottom"]),number:propTypes.number,options:(0,propTypes.oneOfType)([(0,propTypes.arrayOf)(propTypes.object),propTypes.object]),paginationAt:(0,propTypes.oneOf)(["top","bottom","both"]),range:(0,propTypes.shape)({start:(0,propTypes.oneOfType)([propTypes.number,propTypes.string,propTypes.object]).isRequired,end:(0,propTypes.oneOfType)([propTypes.number,propTypes.string,propTypes.object]).isRequired}),rangeLabels:(0,propTypes.shape)({start:propTypes.string.isRequired,end:propTypes.string.isRequired}),react:(0,propTypes.shape)({and:o,or:o,not:o}),categorySearchValue:(0,propTypes.shape)({term:propTypes.string,category:propTypes.string}),selectedValues:propTypes.object,selectedValue:(0,propTypes.oneOfType)([propTypes.string,(0,propTypes.arrayOf)(propTypes.string),(0,propTypes.arrayOf)(propTypes.object),propTypes.object,propTypes.number,(0,propTypes.arrayOf)(propTypes.number)]),suggestions:(0,propTypes.arrayOf)(propTypes.object),supportedOrientations:(0,propTypes.oneOf)(["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"]),tooltipTrigger:(0,propTypes.oneOf)(["hover","none","focus","always"]),sortBy:(0,propTypes.oneOf)(["asc","desc"]),sortOptions:(0,propTypes.arrayOf)((0,propTypes.shape)({label:propTypes.string,dataField:propTypes.string,sortBy:propTypes.string})),sortByWithCount:(0,propTypes.oneOf)(["asc","desc","count"]),stats:(0,propTypes.arrayOf)(propTypes.object),string:propTypes.string,stringArray:(0,propTypes.arrayOf)(propTypes.string),stringOrArray:(0,propTypes.oneOfType)([propTypes.string,(0,propTypes.arrayOf)(propTypes.string)]),stringRequired:propTypes.string.isRequired,style:propTypes.object,themePreset:(0,propTypes.oneOf)(["light","dark"]),queryFormatDate:(0,propTypes.oneOf)(Object.keys(r.default)),queryFormatSearch:(0,propTypes.oneOf)(["and","or"]),queryFormatNumberBox:(0,propTypes.oneOf)(["exact","lte","gte"]),params:propTypes.object.isRequired,props:propTypes.object,rangeLabelsAlign:(0,propTypes.oneOf)(["left","right"]),title:(0,propTypes.oneOfType)([propTypes.string,propTypes.any]),location:(0,propTypes.shape)({lat:s,lng:s}),unit:(0,propTypes.oneOf)(["mi","miles","yd","yards","ft","feet","in","inch","km","kilometers","m","meters","cm","centimeters","mm","millimeters","NM","nmi","nauticalmiles"]),aggregationData:propTypes.array,showClearAll:(0,propTypes.oneOf)([constants$1.CLEAR_ALL.NEVER,constants$1.CLEAR_ALL.ALWAYS,constants$1.CLEAR_ALL.DEFAULT,!0,!1]),componentType:(0,propTypes.oneOf)(Object.values(constants$1.componentTypes)),componentObject:propTypes.object,dataFieldValidator:function(e,t,n){var r=new Error(t+" supplied to "+n+" is required. Validation failed."),o=e[t];return o?"string"==typeof o||"object"==typeof o||Array.isArray(o)?Array.isArray(o)&&0===o.length?r:void 0:new Error("Invalid "+t+" supplied to "+n+". Validation failed."):r},focusShortcuts:(0,propTypes.oneOfType)([(0,propTypes.arrayOf)(propTypes.string),(0,propTypes.arrayOf)(propTypes.number)]),mongodb:(0,propTypes.shape)({db:propTypes.string,collection:propTypes.string}),calendarInterval:(0,propTypes.oneOf)(["month","day","year","week","quarter","hour","minute"]),preferences:propTypes.object,endpoint:(0,propTypes.shape)({url:propTypes.string.isRequired,method:propTypes.string,headers:propTypes.object,body:propTypes.object}),AIConfig:(0,propTypes.shape)({docTemplate:propTypes.string,queryTemplate:propTypes.string,maxTokens:propTypes.number,systemPrompt:propTypes.string,temperature:propTypes.number,topDocsForContext:propTypes.number})};t.default=a})),types$1=unwrapExports(types_1),_templateObject$n,_templateObject2$b,HierarchicalMenuList=styled("ul")(_templateObject$n||(_templateObject$n=_taggedTemplateLiteralLoose(["\n\tlist-style: none;\n\tpadding: 0;\n\tmargin: 0;\n\tmax-height: 0;\n\toverflow: hidden;\n\n\t&.--open {\n\t\tmax-height: 100%;\n\t}\n"]))),HierarchicalMenuListItem=styled("li")(_templateObject2$b||(_templateObject2$b=_taggedTemplateLiteralLoose(["\n\tfont-weight: 400;\n\tline-height: 1.5;\n\tbox-sizing: border-box;\n\n\ta {\n\t\tcolor: #424242;\n\t\ttext-decoration: none;\n\t\tgap: 5px;\n\t\t.--leaf-icon,\n\t\t.--folder-icon {\n\t\t\tline-height: 15px;\n\t\t\tsvg {\n\t\t\t\theight: 15px;\n\t\t\t}\n\t\t}\n\n\t\tinput {\n\t\t\tmargin: 0;\n\t\t\tcursor: pointer;\n\t\t}\n\t}\n\n\t.--switcher-icon {\n\t\ttransition: all 0.2s ease-in;\n\t\tmargin-right: 2px;\n\t}\n\t.--list-child {\n\t\tpadding-left: 1rem;\n\t\tposition: relative;\n\t\t&:before {\n\t\t\theight: 100%;\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\tborder-left: 1px solid #787878;\n\t\t\twidth: 0;\n\t\t\tleft: 19px;\n\t\t\t",";\n\t\t}\n\n\t\t&.--show-switcher-icon {\n\t\t\tpadding-left: 36px;\n\t\t}\n\t}\n\t.--list-item-label {\n\t\tline-height: 100%;\n\t}\n\t.--list-item-count {\n\t\tmargin-left: 10px;\n\t\tpadding: 0.1rem 0.4rem;\n\t\tfont-size: 0.8rem;\n\t\tcolor: #424242;\n\t\tbackground-color: #dee1e6;\n\t\tborder-radius: 8px;\n\t}\n\t&.-selected-item {\n\t\tfont-weight: 700 !important;\n\t}\n\t&.-expanded-item {\n\t\t& > a {\n\t\t\t& div > .--switcher-icon {\n\t\t\t\ttransform: rotate(90deg);\n\t\t\t}\n\t\t}\n\t}\n\t.--list-item-label-count-wrapper {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\t&:hover {\n\t\t\t.--list-item-count,\n\t\t\t.--list-item-label {\n\t\t\t\tfont-weight: 700;\n\t\t\t}\n\t\t}\n\t}\n"])),(function(e){return!e.showLine&&"\n\t\t\t\t\tdisplay: none;\n\t\t\t\t"})),HierarchicalMenuListItemComponent={name:"HierarchicalMenuListItemComponent",data:function(){return{isExpanded:!1,newParentPath:""}},created:function(){var e=this.listItem.key,t=e;this.parentPath&&(t=""+this.parentPath+constants_6$1+e),this.newParentPath=t,this.isExpanded=!!helper_9(this.selectedValues,t,constants_6$1)},watch:{listItem:function(e){e.initiallyExpanded&&(this.isExpanded=e.initiallyExpanded)},selectedValues:function(e){this.isExpanded=!!helper_9(e,this.newParentPath,constants_6$1)}},props:{parentPath:types$1.string,selectedValues:types$1.rawData,mode:types$1.string,searchTerm:types$1.string,listItem:types$1.rawData,showLine:types$1.bool,renderItem:types$1.func,handleListItemClick:types$1.func,renderSwitcherIcon:types$1.func,showCheckbox:Q.bool,innerClass:types$1.style,showRadio:Q.bool,renderIcon:types$1.func,showCount:Q.bool,showSwitcherIcon:types$1.bool,switcherIcon:types$1.children},render:function(){var e=this,t=this.$props,n=t.selectedValues,r=t.mode,o=t.searchTerm,s=t.listItem,a=t.parentPath,i=t.showLine,l=t.renderItem,u=t.handleListItemClick,c=t.showCheckbox,p=t.innerClass,d=t.showRadio,h=t.renderIcon,f=t.showCount,m=t.showSwitcherIcon;if(!(s instanceof Object)||0===Object.keys(s).length)return null;var g=s.key,y=s.count,v=!(Array.isArray(s.list)&&s.list.length>0),b=function(t){if(!1===m)return null;var n=e.$props.switcherIcon;return n?n(t):vue.createVNode("span",{tabIndex:"0",onClick:function(t){t.stopPropagation(),e.isExpanded=!e.isExpanded},class:"--switcher-icon"},[vue.createTextVNode("➤")])},_=!1;return"single"===r?!0===helper_9(n,this.newParentPath,constants_6$1)&&(_=!0):_=!!helper_9(n,this.newParentPath,constants_6$1),vue.createVNode(HierarchicalMenuListItem,{class:(_?"-selected-item":"")+" "+(this.isExpanded?"-expanded-item":""),key:this.newParentPath,showLine:i},{default:function(){return[vue.createVNode(ListItem,{isTreeListItem:!0,onClick:function(){u(g,a)},style:{textDecoration:"none"}},{default:function(){return[l?l(g,y,_):vue.createVNode(Flex,{alignItems:"center",gap:"5px"},{default:function(){return[!v&&b(_),"multiple"===r&&c&&vue.createVNode(Flex,{alignItems:"center",gap:"5px"},{default:function(){return[vue.createVNode(Checkbox,{type:"checkbox",class:helper_31(p,"checkbox")||null,checked:_,id:g+"-checkbox-"+e.newParentPath,name:g+"-checkbox-"+e.newParentPath,show:!0,readOnly:!0},null),vue.createVNode("label",{style:{width:"26px",marginTop:0,marginBottom:0,marginRight:"-9px",left:"-3px"},htmlFor:g+"-checkbox-"+e.newParentPath,onClick:function(e){e.stopPropagation()}},null)]}}),"single"===r&&d&&vue.createVNode(Flex,{alignItems:"center",gap:"5px"},{default:function(){return[vue.createVNode(Radio,{checked:_,class:helper_31(p,"radio")||null,id:g+"-radio-"+e.newParentPath,name:g+"-radio-"+e.newParentPath,show:!0,readOnly:!0,type:"radio"},null),vue.createVNode("label",{style:{width:"26px",marginTop:0,marginBottom:0,marginRight:"-9px",left:"-3px"},htmlFor:g+"-radio-"+e.newParentPath,onClick:function(e){e.stopPropagation()}},null)]}})," ",h(v),vue.createVNode("div",{class:"--list-item-label-count-wrapper"},[vue.createVNode("span",{class:"--list-item-label "+(helper_31(p,"label")||"")},[g]),f&&vue.createVNode("span",{class:"--list-item-count "+(helper_31(p,"count")||"")},[y])])]}})]}}),!1===v&&vue.createVNode("div",{class:"--list-child "+(m?" --show-switcher-icon":"")},[vue.createVNode(HierarchicalMenuComponent,{key:e.newParentPath+"-"+g+"-"+y,listArray:s.list,parentPath:e.newParentPath,isExpanded:e.isExpanded,listItemProps:{mode:r,selectedValues:n,searchTerm:o,showLine:i,renderItem:l,handleListItemClick:u,renderSwitcherIcon:b,showCheckbox:c,innerClass:p,showRadio:d,renderIcon:h,showCount:f,showSwitcherIcon:m,switcherIcon:e.$props.switcherIcon}},null)])]}})}};function _isSlot$7(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var HierarchicalMenuComponent={name:"HierarchicalMenuComponent",props:{listArray:Q.arrayOf(Q.object),parentPath:Q.string.def(""),isExpanded:Q.bool.def(!1),listItemProps:types$1.rawData},render:function(){var e,t=this.$props,n=t.listArray,r=t.isExpanded,o=t.parentPath,s=t.listItemProps;return Array.isArray(n)&&0!==n.length?vue.createVNode(HierarchicalMenuList,{class:r?"--open":"",isSelected:r},_isSlot$7(e=n.map((function(e){return vue.createVNode(HierarchicalMenuListItemComponent,vue.mergeProps({key:o+"__"+JSON.stringify(e),parentPath:o,listItem:e},s),null)})))?e:{default:function(){return[e]}}):null}};function _isSlot$8(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var updateQueryAction=lib_5.updateQuery,setQueryOptions$3=lib_5.setQueryOptions,transformValueIntoLocalState=function(e){var t={};if(e.length){var n={};e.forEach((function(e){helper_51(n,e.split(" > "),!helper_9(n,e.split(" > "),constants_6$1),!0)})),t=n}return t},TreeList={name:"TreeList",props:{selectedValue:types.selectedValue,error:types.title,rawData:types.rawData,aggregationData:types.rawData,themePreset:types.themePreset,updateQueryAction:types.funcRequired,setQueryOptions:types.funcRequired,componentId:types.string.isRequired,className:types.string,style:types.style,showRadio:Q.bool.def(!1),showCheckbox:types.bool.def(!1),mode:Q.oneOf(["single","multiple"]).def("multiple"),showCount:Q.bool.def(!1),showSearch:Q.bool.def(!1),showIcon:Q.bool.def(!1),icon:types.children,showLeafIcon:Q.bool.def(!1),leafIcon:types.children,showLine:Q.bool.def(!1),switcherIcon:types.func,render:types.func,renderItem:types.func,innerClass:types.style,placeholder:types.string,title:types.title,isLoading:types.bool,dataField:types.stringArray.isRequired,onQueryChange:types.func,defaultValue:types.stringArray,value:types.stringArray,customQuery:types.func,defaultQuery:types.func,enableAppbase:types.bool,index:types.string,showFilter:types.bool,URLParams:types.bool,filterLabel:types.string,onChange:types.func,onValueChange:types.func,beforeValueChange:types.func,sortBy:types.sortByWithCount.def("count"),onError:types.func,showSwitcherIcon:types.bool.def(!0),renderError:types.title,renderNoResults:types.func,loader:types.title,aggergationSize:types.number,endpoint:types.endpoint,queryFormat:types.queryFormatSearch.def("or"),size:types.number.def(100),nestedField:types.string,react:types.react,transformData:types.func,selectAllLabel:types.string,showMissing:Q.bool.def(!1),missingLabel:Q.string.def("N/A")},data:function(){var e=this.$props;return this.__state={selectedValues:{},searchTerm:"",aggregationData:[]},this.internalComponent=e.componentId+"__internal",this.__state},created:function(){var e=this.$props,t=e.componentId,n=this.defaultValue||this.value,r=this.selectedValue||n||[];if(r.length){var o=transformValueIntoLocalState(r);this.setValue(o,!0)}helper_35(t,e,r),helper_34(t,e,r),this.updateQueryOptions()},mounted:function(){var e=this.$props,t=e.enableAppbase,n=e.index;!t&&n&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.")},watch:{defaultQuery:function(){this.updateDefaultQuery(),this.updateQuery([])},customQuery:function(){var e=helper_7(this.$data.selectedValues)||[];this.updateQuery(e)},sortBy:function(){this.updateQueryOptions()},dataField:function(){var e=helper_7(this.$data.selectedValues)||[];this.updateQueryOptions(),this.updateQuery(e)},value:function(e,t){helper_36(e,t)||this.setValue(e)},selectedValue:function(e){if(!helper_36(helper_7(this.$data.selectedValues),e)){var t=this.$props,n=t.value,r=t.onChange,o=[];Array.isArray(e)&&e.length&&(o=e),void 0===n?this.setValue(o):r&&!helper_36(n,o)&&r(o)}},aggregationData:function(e,t){e&&!helper_36(e,t)&&(this.$data.aggregationData=e)}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)}},methods:{renderIcon:function(e){var t=this.$props,n=t.showIcon,r=t.showLeafIcon,o=t.icon;if(e){if(!r)return null;var s=(this.$slots||this.$props).leafIcon;return s?s():vue.createVNode("span",{role:"img","aria-label":"file",class:"--leaf-icon"},[vue.createVNode("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"file",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[vue.createVNode("path",{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"},null)])])}return n?o||(this.$slots.icon?this.$slots.icon():vue.createVNode("span",{role:"img","aria-label":"folder-open",class:"--folder-icon"},[vue.createVNode("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"folder-open",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[vue.createVNode("path",{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"},null)])])):null},getTransformedData:function(){var e=this.$props,t=e.dataField,n=e.showSearch,r=helper_8(this.$data.aggregationData,t),o=[];return n&&this.searchTerm&&(o=this.filterDataBasedOnSearchTerm(r,"")),o.length?o:r},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},renderSearch:function(){var e=this.$props,t=e.showSearch,n=e.innerClass,r=e.placeholder,o=e.componentId,s=e.themePreset;return t?vue.createVNode(Input,{class:helper_31(n,"input")||null,onInput:this.handleInputChange,value:this.searchTerm,placeholder:r||"Search",style:{margin:"0 0 8px"},"aria-label":o+"-search",themePreset:s},null):null},handleListItemClick:function(e,t){var n=e;t&&(n=""+t+constants_6$1+e);var r=_extends({},this.selectedValues);if("single"===this.$props.mode)helper_51(r={},n.split(constants_6$1),!0,!0);else{var o=!helper_9(r,n,constants_6$1);helper_51(r,n.split(constants_6$1),o,!0)}if(r=sanitizeObject(_extends({},r)),void 0===this.$props.value)this.setValue(r);else if(this.$props.onChange){var s=helper_7(r);this.$props.onChange(s)}},filterDataBasedOnSearchTerm:function(e,t){var n=this;if(!(e&&Array.isArray(e)&&e.length))return null;var r=[];return e.forEach((function(e){var o=!e.list,s=e.key;t&&(s=t+"."+e.key);var a=suggestions_1(e.key).toLowerCase().includes(suggestions_1(n.$data.searchTerm).toLowerCase())||helper_9(n.$data.selectedValues,s,constants_6$1);if(o&&a)r.push(_extends({},e,{initiallyExpanded:a}));else if(!o){var i=n.filterDataBasedOnSearchTerm(e.list,s);(a||i.length)&&r.push(_extends({},e,{initiallyExpanded:a||!!i.length,list:i}))}})),r},getComponent:function(){var e=this.$props,t=e.rawData,n=e.error,r=e.isLoading,o={data:this.getTransformedData(),rawData:t,error:n,handleClick:this.handleListItemClick,value:this.$data.selectedValues,loading:r,PATH_SEPARATOR:constants_6$1};return this.$slots.render(o)||helper_11(o,this.$props)},getDefaultQuery:function(e){var t=this,n=null,r="or"===this.$props.queryFormat?"should":"must";if(!Array.isArray(e)||0===e.length)return null;if(e){var o,s=e.map((function(e){return{bool:{must:e.split(" > ").map((function(e,n){var r,o;return(o={}).term=((r={})[t.$props.dataField[n]]=e,r),o}))}}})),a={bool:(o={},o[r]=s,o)};n=e.length?a:null}return n&&this.$props.nestedField?{nested:{path:this.$props.nestedField,query:n}}:n},updateQuery:function(e){var t,n=this.$props.customQuery,r=this.getDefaultQuery(e);n&&(r=(n(e,this.$props)||{}).query,t=helper_27(n(e,this.$props)),helper_35(this.$props.componentId,this.$props,e));this.setQueryOptions(this.$props.componentId,_extends({},this.generateQueryOptions(),t)),this.updateQueryAction({componentId:this.$props.componentId,query:r,value:e,label:this.$props.filterLabel,showFilter:this.$props.showFilter,URLParams:this.$props.URLParams,componentType:constants_1$1.treeList})},setValue:function(e,t){var n=this;void 0===t&&(t=!0);var r=!1===Array.isArray(e)?helper_7(e):e;helper_42(this.$props.componentId,r,this.$props.beforeValueChange,(function(){var o=function(){n.updateQuery(r),n.$props.onValueChange&&n.$props.onValueChange(r)};t?(n.selectedValues=Array.isArray(e)?transformValueIntoLocalState(e):e,o()):o()}))},generateQueryOptions:function(){var e=helper_39(this.$props),t=helper_7(this.selectedValues);return helper_20(t,e,this.$props)},updateDefaultQuery:function(e){var t=helper_7(this.selectedValues);helper_34(this.$props.componentId,this.$props,t),helper_22(transform_11(this.$props.componentId),e,t,this.$props,this.generateQueryOptions(),null)},updateQueryOptions:function(){var e=this.generateQueryOptions(this.$props,{},helper_7(this.$data.selectedValues));this.$props.defaultQuery?this.updateDefaultQuery(e):this.setQueryOptions(transform_11(this.$props.componentId),e)}},render:function(){var e=this,t=this.$props,n=t.style,r=t.className,o=t.mode,s=t.showLine,a=t.renderItem,i=t.showCheckbox,l=t.innerClass,u=t.showRadio,c=t.showCount,p=t.showSwitcherIcon,d=t.switcherIcon,h=t.title,f=t.loader,m=t.renderError;if(this.isLoading)return(this.$slots.loader?this.$slots.loader():f)||null;if(this.error)return this.$slots.renderError?this.$slots.renderError(this.error):helper_12(m)?m(this.error):m;var g=this.getTransformedData();return g&&0!==g.length?vue.createVNode(Container,{style:n,class:r},{default:function(){return[t.title&&vue.createVNode(Title,{class:helper_31(l,"title")||null},_isSlot$8(h)?h:{default:function(){return[h]}}),e.renderSearch(),e.hasCustomRenderer?e.getComponent():vue.createVNode(HierarchicalMenuComponent,{key:"initial-node",listArray:g,parentPath:"",isExpanded:!0,listItemProps:{mode:o,selectedValues:e.selectedValues,searchTerm:e.searchTerm,showLine:s,renderItem:null!=a?a:e.$slots.renderItem,handleListItemClick:e.handleListItemClick,showCheckbox:i,innerClass:l,showRadio:u,renderIcon:e.renderIcon,showCount:c,showSwitcherIcon:p,switcherIcon:null!=d?d:e.$slots.switcherIcon}},null)]}}):this.$slots.renderNoResults?this.$slots.renderNoResults():null}},mapStateToProps$7=function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,rawData:e.rawData[t.componentId]||{},aggregationData:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId]||{},themePreset:e.config.themePreset,error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$4={setQueryOptions:setQueryOptions$3,updateQueryAction:updateQueryAction};TreeList.hasInternalComponent=function(){return!0};var TreeListConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$7,mapDispatchtoProps$4)(TreeList),{componentType:constants_1$1.treeList,internalComponent:TreeList.hasInternalComponent()})),_templateObject$o,_templateObject2$c;TreeListConnected.name=TreeList.name,TreeListConnected.install=function(e){e.component(TreeListConnected.name,TreeListConnected)},TreeListConnected.componentType=constants_1$1.treeList;var small="\n\tmin-height: 0;\n\theight: 30px;\n\tborder: 0;\n\tbox-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;\n\tborder-radius: 2px;\n",dark$2=function(e){var t=e.theme;return"\n\tbackground-color: "+(t.colors?t.colors.backgroundColor:"")+";\n\tborder-color: "+(t.colors?t.colors.borderColor:"")+";\n\tcolor: "+(t.colors?t.colors.textColor:"")+";\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: "+(t.colors?t.colors.backgroundColor:"")+";\n\t}\n"},Select=styled("button")(_templateObject$o||(_templateObject$o=_taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tmin-height: 42px;\n\tborder-radius: 0;\n\toutline: none;\n\tpadding: 5px 12px;\n\tfont-size: 0.9rem;\n\tline-height: 1.2rem;\n\tbackground-color: #fff;\n\tborder: 1px solid #ccc;\n\tcolor: #424242;\n\tcursor: pointer;\n\tuser-select: none;\n\ttransition: all 0.3s ease;\n\n\t",";\n\n\t& > div {\n\t\twidth: calc(100% - 24px);\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\ttext-align: left;\n\t}\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: #fcfcfc;\n\t}\n\n\t",";\n"])),(function(e){return e.small?small:null}),(function(e){return"dark"===e.themePreset&&dark$2})),Tick=styled("span")(_templateObject2$c||(_templateObject2$c=_taggedTemplateLiteralLoose(["\n\twidth: 16px;\n\theight: 16px;\n\tdisplay: inline-block;\n\tposition: relative;\n\tuser-select: none;\n\talign-items: center;\n\n\t&::after {\n\t\tbox-sizing: content-box;\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tbackground-color: transparent;\n\t\ttop: 50%;\n\t\tleft: 0;\n\t\twidth: 8px;\n\t\theight: 4px;\n\t\tmargin-top: -4px;\n\t\tborder-style: solid;\n\t\tborder-color: ",";\n\t\tborder-width: 0 0 2px 2px;\n\t\tborder-radius: 0;\n\t\tborder-image: none;\n\t\ttransform: rotate(-45deg) scale(1);\n\t\ttransition: all 200ms ease-out;\n\t}\n"])),(function(e){return e.theme.colors.primaryColor})),_templateObject$p,open="\n\ttop: 0.55em;\n\ttransform: rotate(-45deg);\n",Chevron=styled("span")(_templateObject$p||(_templateObject$p=_taggedTemplateLiteralLoose(["\n\t&::before {\n\t\tcontent: '';\n\t\tborder-style: solid;\n\t\tborder-width: 0.15em 0.15em 0 0;\n\t\tdisplay: inline-block;\n\t\theight: 0.45em;\n\t\tposition: relative;\n\t\ttop: 0.35em;\n\t\tleft: 0;\n\t\ttransform: rotate(135deg);\n\t\tvertical-align: top;\n\t\twidth: 0.45em;\n\n\t\t",";\n\t}\n"])),(function(e){return e.open?open:null})),getClassName$6=lib_8.getClassName,Dropdown={data:function(){return this.__state={isOpen:!1,searchTerm:""},this.__state},inject:{theme:{from:"theme_reactivesearch"}},props:{innerClass:types.style,items:types.data,keyField:Q.string.def("key"),labelField:Q.string.def("label"),multi:Q.bool,placeholder:types.string,returnsObject:Q.bool,customLabelRenderer:types.func,hasCustomRenderer:Q.bool,customRenderer:types.func,renderItem:types.func,renderNoResults:Q.any,handleChange:types.func,transformData:types.func,selectedItem:types.selectedValue,showCount:Q.bool,single:Q.bool,small:Q.bool.def(!1),themePreset:types.themePreset,showSearch:Q.bool,showClear:Q.bool,searchPlaceholder:Q.string.def("Type here to search...")},render:function(){var e=this,t=this.$props,n=t.items,r=t.selectedItem,o=t.placeholder,s=t.labelField,a=t.keyField,i=t.themePreset,l=t.renderItem,u=t.transformData,c=t.footer,p=t.customLabelRenderer,d=t.hasCustomRenderer,h=t.customRenderer,f=n;u&&(f=u(f));var m=f.filter((function(t){return!!String(t[s]).length&&(!e.$props.showSearch||!e.$data.searchTerm||suggestions_1(String(t[s])).toLowerCase().includes(suggestions_1(e.$data.searchTerm.toLowerCase())))}));return vue.createVNode(Downshift,{isOpen:this.$data.isOpen,selectedItem:r,handleChange:this.onChange,handleMouseup:this.handleStateChange},{default:function(t){var n=t.getItemProps,u=t.isOpen,g=t.highlightedIndex,y=t.getButtonProps,v=t.getItemEvents,b=t.getInputEvents;return vue.createVNode("div",{class:suggestionsContainer},[vue.createVNode(Select,vue.mergeProps(babelHelperVueTransformOn(y({onClick:e.toggle})),{class:getClassName$6(e.$props.innerClass,"select")||"",title:r?e.renderToString(r):o,small:e.$props.small,themePreset:e.$props.themePreset}),{default:function(){return[p?p(r):vue.createVNode("div",null,[r?e.renderToString(r):o]),vue.createVNode(Chevron,{open:u},null)]}}),d?h(f,{getItemProps:n,isOpen:u,highlightedIndex:g,getButtonProps:y,getItemEvents:v}):u&&f.length?vue.createVNode("ul",{class:suggestions$1(i,e.theme)+" "+(e.$props.small?"small":"")+" "+getClassName$6(e.$props.innerClass,"list")},[e.$props.showSearch?e.renderSearchbox({on:{input:b({onInput:e.handleInputChange}).input}}):null,d||0!==m.length?m.map((function(t,o){var i=e.$props.multi&&(r&&!!r[t[a]]||Array.isArray(r)&&r.find((function(e){return e[s]===t[s]})));return e.$props.multi||(i=t.key===r),vue.createVNode("li",vue.mergeProps(n({item:t}),babelHelperVueTransformOn(v({item:t})),{key:t[a],class:i?"active":"",style:{backgroundColor:e.getBackgroundColor(g===o,i)}}),[l?l({label:t[s],count:t.doc_count,isChecked:i&&e.$props.multi}):vue.createVNode("div",null,["string"==typeof t[s]?vue.createVNode("span",{innerHTML:t[s]},null):t[s],e.$props.showCount&&t.doc_count&&vue.createVNode("span",{class:getClassName$6(e.$props.innerClass,"count")||""},[vue.createTextVNode(" ("),t.doc_count,vue.createTextVNode(")")])]),i&&e.$props.multi?vue.createVNode(Tick,{class:getClassName$6(e.$props.innerClass,"icon")||""},null):null])})):e.renderNoResult(),c]):null])}})},methods:{toggle:function(){this.isOpen=!this.$data.isOpen},close:function(){this.isOpen=!1},onChange:function(e){this.$props.returnsObject?this.$props.handleChange(e):this.$props.handleChange(e[this.$props.keyField]),this.$props.multi||(this.isOpen=!1,this.searchTerm="")},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){var n="dark"===this.$props.themePreset;return e?n?"#555":"#eee":t?n?"#686868":"#fafafa":n?"#424242":"#fff"},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},clearSearchTerm:function(){this.searchTerm=""},renderToString:function(e){var t=this,n=this.$props.customLabelRenderer;if(n){var r=n(e);if("string"==typeof r)return r}return Array.isArray(e)&&e.length?e.map((function(e){return t.renderToString(e)})).join(", "):e&&"object"==typeof e?e[this.$props.labelField]?e[this.$props.labelField]:Object.keys(e).length?this.renderToString(Object.keys(e)):this.$props.placeholder:e},renderNoResult:function(){var e=this.$slots.renderNoResults||this.$props.renderNoResults;return vue.createVNode("p",{class:getClassName$6(this.$props.innerClass,"noResults")||null},[isFunction(e)?e():e])},renderSearchbox:function(e){var t=this,n=this.$props,r=n.componentId,o=n.searchPlaceholder,s=n.showClear,a=n.themePreset,i=n.innerClass,l=vue.createVNode(Input,vue.mergeProps({id:r+"-input",style:{border:0,borderBottom:"1px solid #ddd"},showIcon:!1,showClear:s,class:getClassName$6(i,"input"),placeholder:o,value:this.$data.searchTerm,themePreset:a},e),null);return s?vue.createVNode(InputWrapper,null,{default:function(){return[l,t.searchTerm&&vue.createVNode(IconGroup,{groupPosition:"right",positionType:"absolute"},{default:function(){return[vue.createVNode(IconWrapper,{onClick:t.clearSearchTerm,isClearIcon:!0},{default:function(){return[vue.createVNode(CancelSvg,null,null)]}})]}})]}}):l}}};function _isSlot$9(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var updateQuery$4=lib_5.updateQuery,setQueryOptions$4=lib_5.setQueryOptions,setCustomQuery$3=lib_5.setCustomQuery,setDefaultQuery$4=lib_5.setDefaultQuery,getQueryOptions$3=lib_8.getQueryOptions,checkValueChange$3=lib_8.checkValueChange,checkPropChange$1=lib_8.checkPropChange,getClassName$7=lib_8.getClassName,isEqual$7=lib_8.isEqual,getCompositeAggsQuery$2=lib_8.getCompositeAggsQuery,extractQueryFromCustomQuery$3=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$3=lib_8.getOptionsForCustomQuery,SingleDropdownList={name:"SingleDropdownList",data:function(){var e=this.$props;return this.__state={currentValue:"",modifiedOptions:[],after:{},isLastBucket:!1},this.internalComponent=e.componentId+"__internal",this.__state},props:{beforeValueChange:types.func,className:Q.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultQuery:types.func,defaultValue:types.string,value:types.value,filterLabel:types.string,innerClass:types.style,placeholder:Q.string.def("Select a value"),react:types.react,renderLabel:types.func,render:types.func,renderItem:types.func,renderError:types.title,renderNoResults:Q.any,transformData:types.func,selectAllLabel:types.string,showCount:Q.bool.def(!0),showFilter:Q.bool.def(!0),size:Q.number,sortBy:Q.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:Q.bool.def(!1),showMissing:Q.bool.def(!1),missingLabel:Q.string.def("N/A"),showSearch:Q.bool.def(!1),showClear:Q.bool.def(!1),showLoadMore:Q.bool.def(!1),loadMoreLabel:Q.oneOfType([Q.string,Q.nullable]).def("Load More"),nestedField:types.string,index:Q.string,searchPlaceholder:Q.string.def("Type here to search..."),endpoint:types.endpointConfig},created:function(){var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.currentValue),this.updateQueryOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{options:function(e,t){var n=this;e&&checkPropChange$1(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,s=n.$data.modifiedOptions;if(r){var a=e[o].buckets,i=[].concat(s,a.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),l=e[o].after_key,u=!a.length;n.after={after:l},n.isLastBucket=u,n.modifiedOptions=i}else n.modifiedOptions=e[n.$props.dataField]?e[n.$props.dataField].buckets:[]}))},size:function(){this.updateQueryOptions(this.$props)},sortBy:function(){this.updateQueryOptions(this.$props)},dataField:function(){this.updateQueryOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){isEqual$7(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,s=t.renderError,a=t.renderLabel,i=this.$data.isLastBucket,l=[],u=this.$slots.renderItem||o,c=this.$slots.renderError||s,p=this.$slots.renderLabel||a,d=this.$slots.renderNoResults||this.$props.renderNoResults;return c&&this.error?isFunction(c)?c(this.error):c:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(l=[{key:this.$props.selectAllLabel,doc_count:this.totalDocumentCount}]),vue.createVNode(Container,{class:this.$props.className},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$7(e.$props.innerClass,"title")||""},{default:function(){return[e.$props.title]}}),vue.createVNode(Dropdown,{innerClass:e.$props.innerClass,items:[].concat(l,e.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return _extends({},e,{key:String(e.key)})}))),handleChange:e.handleChange,selectedItem:e.$data.currentValue,placeholder:e.$props.placeholder,labelField:"key",showCount:e.$props.showCount,hasCustomRenderer:e.hasCustomRenderer,customRenderer:e.getComponent,renderItem:u,renderNoResults:e.$slots.renderNoResults||e.$props.renderNoResults,themePreset:e.themePreset,showSearch:e.$props.showSearch,showClear:e.$props.showClear,searchPlaceholder:e.$props.searchPlaceholder,transformData:e.$props.transformData,footer:n&&!i&&vue.createVNode("div",{css:loadMoreContainer},[vue.createVNode(Button,{onClick:e.handleLoadMore},_isSlot$9(r)?r:{default:function(){return[r]}})]),customLabelRenderer:p},null)]}})):d&&isFunction(d)?vue.createVNode("div",null,[d()]):d&&!isFunction(d)?d:null},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);checkValueChange$3(t.componentId,e,t.beforeValueChange,(function(){n.currentValue=e,n.updateQueryHandler(e,t),n.$emit("valueChange",e),n.$emit("value-change",e)}))},handleChange:function(e){void 0===this.$props.value?this.setValue(e):this.$emit("change",e)},updateDefaultQueryHandler:function(e,t){var n=SingleDropdownList.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=extractQueryFromCustomQuery$3(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var s=getOptionsForCustomQuery$3(r);this.setQueryOptions(this.internalComponent,s,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:constants_1$1.singleDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=SingleDropdownList.defaultQuery(e,t);if(n){var o=n(e,t);r=extractQueryFromCustomQuery$3(o),updateCustomQuery(t.componentId,this.setCustomQuery,t,e);var s=getOptionsForCustomQuery$3(o);this.setQueryOptions(t.componentId,s,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.singleDropdownList})},generateQueryOptions:function(e,t){var n=getQueryOptions$3(e);return e.showLoadMore?getCompositeAggsQuery$2({query:n,props:e,after:t}):getAggsQuery(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=SingleDropdownList.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=this.$data.currentValue,o=getOptionsForCustomQuery$3(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,_extends({},n,o))}else this.setQueryOptions(this.internalComponent,n)},handleLoadMore:function(){this.updateQueryOptions(this.$props,!0)},getComponent:function(e,t){void 0===t&&(t={});var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,value:n,data:e||[],rawData:this.rawData,handleChange:this.handleChange,downshiftProps:t};return getComponent(r,this)}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)}},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,nestedField:t.nestedField,selectAllLabel:t.selectAllLabel,showMissing:t.showMissing}}},generateQueryOptions:function(e,t){var n=getQueryOptions$3(e);return e.showLoadMore?getCompositeAggsQuery$2({query:n,props:e,after:t}):getAggsQuery(n,e)},hasInternalComponent:function(){return!0}},mapStateToProps$8=function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId]}},mapDispatchtoProps$5={setQueryOptions:setQueryOptions$4,updateQuery:updateQuery$4,setCustomQuery:setCustomQuery$3,setDefaultQuery:setDefaultQuery$4},ListConnected$2=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$8,mapDispatchtoProps$5)(SingleDropdownList),{componentType:constants_1$1.singleDropdownList,internalComponent:SingleDropdownList.hasInternalComponent()}));function _isSlot$a(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}ListConnected$2.defaultQuery=SingleDropdownList.defaultQuery,ListConnected$2.generateQueryOptions=SingleDropdownList.generateQueryOptions,ListConnected$2.hasInternalComponent=SingleDropdownList.hasInternalComponent,ListConnected$2.name=SingleDropdownList.name,ListConnected$2.componentType=constants_1$1.singleDropdownList,ListConnected$2.install=function(e){e.component(ListConnected$2.name,ListConnected$2)};var updateQuery$5=lib_5.updateQuery,setQueryOptions$5=lib_5.setQueryOptions,setCustomQuery$4=lib_5.setCustomQuery,setDefaultQuery$5=lib_5.setDefaultQuery,isEqual$8=lib_8.isEqual,getQueryOptions$4=lib_8.getQueryOptions,checkValueChange$4=lib_8.checkValueChange,checkPropChange$2=lib_8.checkPropChange,getClassName$8=lib_8.getClassName,getCompositeAggsQuery$3=lib_8.getCompositeAggsQuery,extractQueryFromCustomQuery$4=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$4=lib_8.getOptionsForCustomQuery,MultiDropdownList={name:"MultiDropdownList",data:function(){var e=this.$props;return this.__state={currentValue:{},modifiedOptions:[],after:{},isLastBucket:!1},this.internalComponent=e.componentId+"__internal",this.__state},props:{beforeValueChange:types.func,className:Q.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultValue:types.stringArray,value:types.stringArray,defaultQuery:types.func,filterLabel:types.string,innerClass:types.style,placeholder:Q.string.def("Select values"),queryFormat:Q.oneOf(["and","or"]).def("or"),react:types.react,renderLabel:types.func,render:types.func,renderItem:types.func,renderError:types.title,renderNoResults:Q.any,transformData:types.func,selectAllLabel:types.string,showCount:Q.bool.def(!0),showFilter:Q.bool.def(!0),size:Q.number,sortBy:Q.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:Q.bool.def(!1),showMissing:Q.bool.def(!1),missingLabel:Q.string.def("N/A"),showSearch:Q.bool.def(!1),showClear:Q.bool.def(!1),showLoadMore:Q.bool.def(!1),loadMoreLabel:Q.oneOfType([Q.string,Q.nullable]).def("Load More"),nestedField:types.string,index:Q.string,searchPlaceholder:Q.string.def("Type here to search..."),endpoint:types.endpointConfig},created:function(){var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.currentValue),this.updateQueryOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue,!0):this.$props.value?this.setValue(this.$props.value,!0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0)},watch:{selectedValue:function(e){var t=this,n=Object.keys(this.$data.currentValue);this.$props.selectAllLabel&&(n=n.filter((function(e){return e!==t.$props.selectAllLabel})),this.$data.currentValue[this.$props.selectAllLabel]&&(n=[this.$props.selectAllLabel])),isEqual$8(n,e)||this.setValue(e||[],!0)},options:function(e,t){var n=this;e&&checkPropChange$2(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,s=n.$data.modifiedOptions;if(r){var a=e[o].buckets,i=[].concat(s,a.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),l=e[o].after_key,u=!a.length;n.after={after:l},n.isLastBucket=u,n.modifiedOptions=i}else n.modifiedOptions=e[n.$props.dataField]?e[n.$props.dataField].buckets:[]}))},size:function(){this.updateQueryOptions(this.$props)},sortBy:function(){this.updateQueryOptions(this.$props)},dataField:function(){this.updateQueryOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e,!0)},value:function(e,t){isEqual$8(e,t)||this.setValue(e,!0)},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,s=t.renderError,a=t.renderLabel,i=this.$slots.renderItem||o,l=this.$slots.renderError||s,u=this.$slots.renderLabel||a,c=this.$data.isLastBucket,p=this.$slots.renderNoResults||this.$props.renderNoResults,d=[];return l&&this.error?isFunction(l)?l(this.error):l:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(d=[{key:this.$props.selectAllLabel,doc_count:this.totalDocumentCount}]),vue.createVNode(Container,{class:this.$props.className},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$8(e.$props.innerClass,"title")||""},{default:function(){return[e.$props.title]}}),vue.createVNode(Dropdown,{innerClass:e.$props.innerClass,items:[].concat(d,e.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return _extends({},e,{key:String(e.key)})}))),hasCustomRenderer:e.hasCustomRenderer,customRenderer:e.getComponent,handleChange:e.handleChange,selectedItem:e.$data.currentValue,placeholder:e.$props.placeholder,labelField:"key",multi:!0,showCount:e.$props.showCount,themePreset:e.themePreset,renderItem:i,renderNoResults:e.$slots.renderNoResults||e.$props.renderNoResults,showSearch:e.$props.showSearch,showClear:e.$props.showClear,searchPlaceholder:e.$props.searchPlaceholder,transformData:e.$props.transformData,footer:n&&!c&&vue.createVNode("div",{css:loadMoreContainer},[vue.createVNode(Button,{onClick:e.handleLoadMore},_isSlot$a(r)?r:{default:function(){return[r]}})]),customLabelRenderer:u},null)]}})):p&&isFunction(p)?vue.createVNode("div",null,[p()]):p&&!isFunction(p)?p:null},methods:{handleChange:function(e){if(void 0===this.$props.value)this.setValue(e);else{var t=parseValueArray(this.currentValue,e);this.$emit("change",t)}},setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,s=this.$data.currentValue,a=null;if(o&&e.includes(o))s[o]?(s={},a=[]):(this.$data.modifiedOptions.forEach((function(e){s[e.key]=!0})),s[o]=!0,a=[o]);else if(t){if(a=e,s={},Array.isArray(e)&&e.forEach((function(e){s[e]=!0})),o&&o in s){var i=s,l=(i[o],_objectWithoutPropertiesLoose(i,[o].map(_toPropertyKey$1)));s=_extends({},l)}}else{if(s[e]){var u=s,c=(u[e],_objectWithoutPropertiesLoose(u,[e].map(_toPropertyKey$1)));s=_extends({},c)}else s[e]=!0;if(o&&o in s){var p=s,d=(p[o],_objectWithoutPropertiesLoose(p,[o].map(_toPropertyKey$1)));s=_extends({},d)}a=Object.keys(s)}checkValueChange$4(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=_extends({},s),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n=MultiDropdownList.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=extractQueryFromCustomQuery$4(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var s=getOptionsForCustomQuery$4(r);this.setQueryOptions(this.internalComponent,s,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:constants_1$1.multiDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=MultiDropdownList.defaultQuery(e,t);if(n){var o=n(e,t);r=extractQueryFromCustomQuery$4(o),updateCustomQuery(t.componentId,this.setCustomQuery,t,e);var s=getOptionsForCustomQuery$4(o);this.setQueryOptions(t.componentId,s,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.multiDropdownList})},generateQueryOptions:function(e,t){var n=getQueryOptions$4(e);return e.showLoadMore?getCompositeAggsQuery$3({query:n,props:e,after:t}):getAggsQuery(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=MultiDropdownList.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=Object.keys(this.$data.currentValue),o=getOptionsForCustomQuery$4(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,_extends({},n,o))}else this.setQueryOptions(this.internalComponent,n)},handleLoadMore:function(){this.updateQueryOptions(this.$props,!0)},getComponent:function(e,t){void 0===t&&(t={});var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,value:n,data:e||[],rawData:this.rawData,handleChange:this.handleChange,downshiftProps:t};return getComponent(r,this)}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)}},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,nestedField:t.nestedField,selectAllLabel:t.selectAllLabel,showMissing:t.showMissing}}},generateQueryOptions:function(e,t){var n=getQueryOptions$4(e);return e.showLoadMore?getCompositeAggsQuery$3({query:n,props:e,after:t}):getAggsQuery(n,e)},hasInternalComponent:function(){return!0}},mapStateToProps$9=function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId]}},mapDispatchtoProps$6={setQueryOptions:setQueryOptions$5,updateQuery:updateQuery$5,setCustomQuery:setCustomQuery$4,setDefaultQuery:setDefaultQuery$5},ListConnected$3=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$9,mapDispatchtoProps$6)(MultiDropdownList),{componentType:constants_1$1.multiDropdownList,internalComponent:MultiDropdownList.hasInternalComponent()}));ListConnected$3.name=MultiDropdownList.name,ListConnected$3.componentType=constants_1$1.multiDropdownList,ListConnected$3.defaultQuery=MultiDropdownList.defaultQuery,ListConnected$3.generateQueryOptions=MultiDropdownList.generateQueryOptions,ListConnected$3.hasInternalComponent=MultiDropdownList.hasInternalComponent,ListConnected$3.install=function(e){e.component(ListConnected$3.name,ListConnected$3)};var updateQuery$6=lib_5.updateQuery,setQueryOptions$6=lib_5.setQueryOptions,setCustomQuery$5=lib_5.setCustomQuery,isEqual$9=lib_8.isEqual,checkValueChange$5=lib_8.checkValueChange,getClassName$9=lib_8.getClassName,getOptionsFromQuery=lib_8.getOptionsFromQuery,handleA11yAction$1=lib_8.handleA11yAction,ToggleButton={name:"ToggleButton",props:{componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,data:types.data,dataField:types.stringRequired,defaultValue:types.any,value:types.stringOrArray,filterLabel:types.string,nestedField:types.string,innerClass:types.style,multiSelect:Q.bool,react:types.react,showFilter:Q.bool,title:types.title,URLParams:Q.bool,renderItem:types.func,index:Q.string,enableStrictSelection:Q.bool,endpoint:types.endpointConfig},data:function(){return this.__state={currentValue:[]},this.__state},created:function(){updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue);var e=this.$props,t=this.selectedValue||e.value||e.defaultValue||[],n=ToggleButton.parseValue(t,e);this.setValue(n),this.$data.currentValue.length&&this.handleToggle(this.$data.currentValue,!0,e,!1)},watch:{defaultValue:function(e){this.setValue(ToggleButton.parseValue(e,this.$props))},dataField:function(){this.updateQuery(this.$data.currentValue,this.$props)},nestedField:function(){this.updateQuery(this.$data.currentValue,this.$props)},value:function(e,t){isEqual$9(e,t)||this.handleToggle(e,!0,this.$props)},selectedValue:function(e,t){if(this.$props.multiSelect)isEqual$9(this.$data.currentValue,e)||isEqual$9(t,e)||this.handleToggle(e||[],!0,this.$props);else{var n=this.$data.currentValue[0]?this.$data.currentValue[0].value:null;isEqual$9(n,this.selectedValue)||isEqual$9(t,this.selectedValue)||this.handleToggle(this.selectedValue||[],!0,this.$props)}},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQuery(this.$data.currentValue,this.$props)}},methods:{handleToggle:function(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!0);var o=this.$data.currentValue,s=e,a=[];a=t?ToggleButton.parseValue(s,n):this.$props.multiSelect?o.some((function(e){return e.value===s.value}))?o.filter((function(e){return e.value!==s.value})):o.concat(s):o.some((function(e){return e.value===s.value}))?[]:[s],this.setValue(a,n,r)},setReact:function(e){e.react&&this.watchComponent(e.componentId,e.react)},setValue:function(e,t,n){var r=this;void 0===t&&(t=this.$props),void 0===n&&(n=!0);checkValueChange$5(t.componentId,t.multiSelect?e:e[0],t.beforeValueChange,(function(){var o=function(){r.updateQuery(e,t),r.$emit("valueChange",e),r.$emit("value-change",e)};n?(r.currentValue=e,o()):o()}))},updateQuery:function(e,t){var n=e;t.multiSelect||(n=e[0]?e[0].value:null);var r=t.customQuery,o=ToggleButton.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,this.setQueryOptions(t.componentId,getOptionsFromQuery(r(e,t)),!1),updateCustomQuery(t.componentId,this.setCustomQuery,t,e));this.updateQueryHandler({componentId:t.componentId,query:o,value:n,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.toggleButton})},handleClick:function(e){var t=this.$props,n=t.enableStrictSelection,r=t.multiSelect;return!(n&&!r&&this.$data.currentValue.find((function(t){return isEqual$9(e,t)})))&&(void 0===this.$props.value?this.handleToggle(e):this.$emit("change",e.value),!0)},renderButton:function(e){var t=this,n=this.$slots.renderItem||this.renderItem,r=this.$data.currentValue.some((function(t){return t.value===e.value}));return n?n({item:e,isSelected:r,handleClick:function(){return t.handleClick(e)}}):vue.createVNode(Button,{class:getClassName$9(this.$props.innerClass,"button")+" "+(r?"active":""),onClick:function(){return t.handleClick(e)},key:e.value,primary:r,large:!0,tabIndex:r?"-1":"0",onKeypress:function(n){return handleA11yAction$1(n,(function(){return t.handleClick(e)}))}},{default:function(){return[e.label]}})}},render:function(){var e=this;return vue.createVNode(Container,{class:toggleButtons},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$9(e.$props.innerClass,"title")},{default:function(){return[e.$props.title]}}),e.$props.data.map((function(t){return e.renderButton(t)}))]}})},parseValue:function(e,t){return Array.isArray(e)?"string"==typeof e[0]?t.data.filter((function(t){return e.includes(t.value)})):e:t.data.filter((function(t){return t.value===e}))},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,nestedField:t.nestedField,selectAllLabel:t.selectAllLabel,showMissing:t.showMissing,multiSelect:t.multiSelect}}}},mapStateToProps$a=function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId]}},mapDispatchtoProps$7={updateQueryHandler:updateQuery$6,setQueryOptions:setQueryOptions$6,setCustomQuery:setCustomQuery$5},TBConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$a,mapDispatchtoProps$7)(ToggleButton),{componentType:constants_1$1.toggleButton}));TBConnected.parseValue=ToggleButton.parseValue,TBConnected.defaultQuery=ToggleButton.defaultQuery,TBConnected.name=ToggleButton.name,TBConnected.install=function(e){e.component(TBConnected.name,TBConnected)},TBConnected.componentType=constants_1$1.toggleButton;var _excluded$3=["options"],updateQuery$7=lib_5.updateQuery,setQueryOptions$7=lib_5.setQueryOptions,setCustomQuery$6=lib_5.setCustomQuery,setDefaultQuery$6=lib_5.setDefaultQuery,parseHits$1=lib_8.parseHits,isEqual$a=lib_8.isEqual,getCompositeAggsQuery$4=lib_8.getCompositeAggsQuery,getResultStats$2=lib_8.getResultStats,extractQueryFromCustomQuery$5=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$5=lib_8.getOptionsForCustomQuery,ReactiveComponent={name:"ReactiveComponent",props:{componentId:types.stringRequired,compoundClause:types.compoundClause,aggregationField:types.string,aggregationSize:Q.number,size:Q.number,defaultQuery:types.func,customQuery:types.func,filterLabel:types.string,react:types.react,showFilter:Q.bool.def(!0),URLParams:Q.bool.def(!1),distinctField:types.string,distinctFieldConfig:types.props,index:Q.string,endpoint:types.endpointConfig},created:function(){var e=this,t=this.$props;this.internalComponent=null,this.$defaultQuery=null,updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.selectedValue);var n=t.customQuery,r=t.componentId,o=t.filterLabel,s=t.showFilter,a=t.URLParams;if(n){var i=n(this.selectedValue,t),l=extractQueryFromCustomQuery$5(i),u=i?getOptionsForCustomQuery$5(i):null;u?this.setQueryOptions(r,_extends({},u,this.getAggsQuery()),!1):this.setQueryOptions(r,this.getAggsQuery(),!1),this.updateQuery({componentId:r,query:l,value:this.selectedValue||null,label:o,showFilter:s,URLParams:a})}if(this.setQuery=function(n){var r=n.options,o=_objectWithoutPropertiesLoose(n,_excluded$3),s=o.query;s&&s.query&&(s=s.query);var a=_extends({},r,{query:s}),i=a;s&&s.id&&(i=s),e.setCustomQuery(t.componentId,i),r&&e.setQueryOptions(t.componentId,_extends({},e.getAggsQuery(),r),!1),e.updateQuery(_extends({},o,{query:a.query,componentId:t.componentId,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams}))},t.defaultQuery&&(this.internalComponent=t.componentId+"__internal"),this.internalComponent&&this.$props.defaultQuery){updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.$defaultQuery=this.$props.defaultQuery(this.selectedValue,this.$props);var c=extractQueryFromCustomQuery$5(this.$defaultQuery),p=getOptionsForCustomQuery$5(this.$defaultQuery);p?this.setQueryOptions(this.internalComponent,_extends({},p,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),this.updateQuery({componentId:this.internalComponent,query:c})}},watch:{hits:function(e,t){isEqual$a(e,t)||this.$emit("data",this.getData())},rawData:function(e,t){isEqual$a(e,t)||this.$emit("data",this.getData())},aggregations:function(e,t){isEqual$a(e,t)||this.$emit("data",this.getData())},aggregationData:function(e,t){isEqual$a(e,t)||this.$emit("data",this.getData())},promotedResults:function(e,t){isEqual$a(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){isEqual$a(e,t)||this.$emit("data",this.getData())},total:function(e,t){isEqual$a(e,t)||this.$emit("data",this.getData())},time:function(e,t){isEqual$a(e,t)||this.$emit("data",this.getData())},defaultQuery:function(e,t){if(e&&!isQueryIdentical(e,t,this.selectedValue,this.$props)){this.$defaultQuery=e(this.selectedValue,this.$props);var n=extractQueryFromCustomQuery$5(this.$defaultQuery),r=getOptionsForCustomQuery$5(this.$defaultQuery);r?this.setQueryOptions(this.internalComponent,_extends({},r,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.updateQuery({componentId:this.internalComponent,query:n})}},customQuery:function(e,t){if(e&&!isQueryIdentical(e,t,this.selectedValue,this.$props)){var n=this.$props.componentId;this.$customQuery=e(this.selectedValue,this.$props);var r=extractQueryFromCustomQuery$5(this.$customQuery),o=getOptionsForCustomQuery$5(this.$customQuery);o?this.setQueryOptions(n,_extends({},o,this.getAggsQuery()),!1):this.setQueryOptions(n,this.getAggsQuery(),!1),updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.selectedValue),this.updateQuery({componentId:n,query:r})}}},render:function(){try{var e=this.$slots.default,t=this.error,n=this.isLoading,r=this.selectedValue,o=_extends({error:t,loading:n},this.getData(),{value:r,setQuery:this.setQuery});return vue.createVNode("div",null,[e(o)])}catch(e){return null}},methods:{getAggsQuery:function(){return this.aggregationField?{aggs:getCompositeAggsQuery$4({props:this.$props,showTopHits:!0,value:this.selectedValue}).aggs}:{}},getData:function(){var e=this.hits,t=this.aggregations,n=this.aggregationData,r=this.promotedResults,o=this.rawData,s=parseHits$1(e);if(r.length){var a=r.map((function(e){return e._id})).filter(Boolean);a&&(s=s.filter((function(e){return!a.includes(e._id)}))),s=[].concat(r,s)}return{data:s,aggregationData:n,rawData:o,aggregations:t,promotedData:r,resultStats:this.stats}}},computed:{stats:function(){return getResultStats$2(this)}},hasInternalComponent:function(e){return!!e.defaultQuery}},mapStateToProps$b=function(e,t){return{aggregations:e.aggregations[t.componentId]&&e.aggregations[t.componentId]||null,aggregationData:e.compositeAggregations[t.componentId]||[],hits:e.hits[t.componentId]&&e.hits[t.componentId].hits||[],rawData:e.rawData[t.componentId],error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,promotedResults:e.promotedResults[t.componentId]||[],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,componentProps:e.props[t.componentId]}},mapDispatchtoProps$8={setQueryOptions:setQueryOptions$7,updateQuery:updateQuery$7,setCustomQuery:setCustomQuery$6,setDefaultQuery:setDefaultQuery$6},ConnectedComponent=ComponentWrapper$1(connect(mapStateToProps$b,mapDispatchtoProps$8)(ReactiveComponent),{componentType:constants_1$1.reactiveComponent}),RcConnected=PreferencesConsumer({name:"RcConnected",render:function(){return vue.h(ConnectedComponent,null,this.$slots)}});RcConnected.name=ReactiveComponent.name,RcConnected.hasInternalComponent=ReactiveComponent.hasInternalComponent,RcConnected.componentType=constants_1$1.reactiveComponent,RcConnected.install=function(e){e.component(RcConnected.name,RcConnected)};var vueSliderComponent_umd_min=createCommonjsModule((function(e,t){"undefined"!=typeof self&&self,e.exports=function(e){return function(){var t={388:function(e,t){var n,r,o;"undefined"!=typeof self&&self,r=[],n=function(){return function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(e){var n,r,o,s=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(e.stack),a=s&&s[1]||!1,i=s&&s[2]||!1,l=document.location.href.replace(document.location.hash,""),u=document.getElementsByTagName("script");a===l&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(i-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var c=0;c<u.length;c++){if("interactive"===u[c].readyState)return u[c];if(u[c].src===a)return u[c];if(a===l&&u[c].innerHTML&&u[c].innerHTML.trim()===o)return u[c]}return null}}},void 0===(o="function"==typeof n?n.apply(t,r):n)||(e.exports=o)},831:function(e,t){t.Z=function(e,t){for(var n,r=e.__vccOpts||e,o=_createForOfIteratorHelperLoose(t);!(n=o()).done;){var s=n.value,a=s[0],i=s[1];r[a]=i}return r}},927:function(t){t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var s=n[e]={exports:{}};return t[e].call(s.exports,s,s.exports,r),s.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="";var o={};return function(){if(r.d(o,{default:function(){return H}}),"undefined"!=typeof window){var e=window.document.currentScript,t=r(388);e=t(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:t});var n=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);n&&(r.p=n[1])}var s=r(927);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i,l={key:0,class:"vue-slider-marks"},u=["aria-valuetext"],c={class:"vue-slider-dot-tooltip-text"},p=(0,s.defineComponent)({name:"VueSliderDot",emits:["drag-start"],props:{value:{type:[String,Number],default:0},tooltip:{type:String,required:!0},tooltipPlacement:{type:String,validator:function(e){return["top","right","bottom","left"].indexOf(e)>-1},required:!0},tooltipFormatter:{type:[String,Function]},focus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dotStyle:{type:Object},tooltipStyle:{type:Object}},computed:{dotClasses:function(){return["vue-slider-dot",{"vue-slider-dot-hover":"hover"===this.tooltip||"active"===this.tooltip,"vue-slider-dot-disabled":this.disabled,"vue-slider-dot-focus":this.focus}]},handleClasses:function(){return["vue-slider-dot-handle",{"vue-slider-dot-handle-disabled":this.disabled,"vue-slider-dot-handle-focus":this.focus}]},tooltipClasses:function(){return["vue-slider-dot-tooltip",["vue-slider-dot-tooltip-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-show":this.showTooltip}]},tooltipInnerClasses:function(){return["vue-slider-dot-tooltip-inner",["vue-slider-dot-tooltip-inner-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-inner-disabled":this.disabled,"vue-slider-dot-tooltip-inner-focus":this.focus}]},showTooltip:function(){switch(this.tooltip){case"always":return!0;case"none":return!1;case"focus":case"active":return!!this.focus;default:return!1}},tooltipValue:function(){return this.tooltipFormatter?"string"==typeof this.tooltipFormatter?this.tooltipFormatter.replace(/\{value\}/,String(this.value)):this.tooltipFormatter(this.value):this.value}},methods:{dragStart:function(){if(this.disabled)return!1;this.$emit("drag-start")}}}),d=r(831),h=(0,d.Z)(p,[["render",function(e,t,n,r,o,a){var i;return(0,s.openBlock)(),(0,s.createElementBlock)("div",{ref:"dot",class:(0,s.normalizeClass)(e.dotClasses),"aria-valuetext":null===(i=e.tooltipValue)||void 0===i?void 0:i.toString(),onMousedownPassive:t[0]||(t[0]=function(){return e.dragStart&&e.dragStart.apply(e,arguments)}),onTouchstartPassive:t[1]||(t[1]=function(){return e.dragStart&&e.dragStart.apply(e,arguments)})},[(0,s.renderSlot)(e.$slots,"dot",{},(function(){return[(0,s.createElementVNode)("div",{class:(0,s.normalizeClass)(e.handleClasses),style:(0,s.normalizeStyle)(e.dotStyle)},null,6)]})),"none"!==e.tooltip?((0,s.openBlock)(),(0,s.createElementBlock)("div",{key:0,class:(0,s.normalizeClass)(e.tooltipClasses)},[(0,s.renderSlot)(e.$slots,"tooltip",{},(function(){return[(0,s.createElementVNode)("div",{class:(0,s.normalizeClass)(e.tooltipInnerClasses),style:(0,s.normalizeStyle)(e.tooltipStyle)},[(0,s.createElementVNode)("span",c,(0,s.toDisplayString)(e.tooltipValue),1)],6)]}))],2)):(0,s.createCommentVNode)("",!0)],42,u)}]]),f=(0,s.defineComponent)({name:"VueSliderMark",emits:["press-label"],props:{mark:{type:Object,required:!0},hideLabel:{type:Boolean},stepStyle:{type:Object,default:function(){return{}}},stepActiveStyle:{type:Object,default:function(){return{}}},labelStyle:{type:Object,default:function(){return{}}},labelActiveStyle:{type:Object,default:function(){return{}}}},computed:{marksClasses:function(){return["vue-slider-mark",{"vue-slider-mark-active":this.mark.active}]},stepClasses:function(){return["vue-slider-mark-step",{"vue-slider-mark-step-active":this.mark.active}]},labelClasses:function(){return["vue-slider-mark-label",{"vue-slider-mark-label-active":this.mark.active}]}},methods:{labelClickHandle:function(e){e.stopPropagation(),this.$emit("press-label",this.mark.pos)}}}),m=(0,d.Z)(f,[["render",function(e,t,n,r,o,a){return(0,s.openBlock)(),(0,s.createElementBlock)("div",{class:(0,s.normalizeClass)(e.marksClasses)},[(0,s.renderSlot)(e.$slots,"step",{},(function(){return[(0,s.createElementVNode)("div",{class:(0,s.normalizeClass)(e.stepClasses),style:(0,s.normalizeStyle)([e.stepStyle,e.mark.style||{},e.mark.active&&e.stepActiveStyle?e.stepActiveStyle:{},e.mark.active&&e.mark.activeStyle?e.mark.activeStyle:{}])},null,6)]})),e.hideLabel?(0,s.createCommentVNode)("",!0):(0,s.renderSlot)(e.$slots,"label",{key:0},(function(){return[(0,s.createElementVNode)("div",{class:(0,s.normalizeClass)(e.labelClasses),style:(0,s.normalizeStyle)([e.labelStyle,e.mark.labelStyle||{},e.mark.active&&e.labelActiveStyle?e.labelActiveStyle:{},e.mark.active&&e.mark.labelActiveStyle?e.mark.labelActiveStyle:{}]),onClick:t[0]||(t[0]=function(){return e.labelClickHandle&&e.labelClickHandle.apply(e,arguments)})},(0,s.toDisplayString)(e.mark.label),7)]}))],2)}]]),g=function(e){return"number"==typeof e?"".concat(e,"px"):e},y=function(e){var t=document.documentElement,n=document.body,r=e.getBoundingClientRect();return{y:r.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||n.clientTop||0),x:r.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||n.clientLeft||0)}};function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}!function(e){e[e.PAGE_UP=33]="PAGE_UP",e[e.PAGE_DOWN=34]="PAGE_DOWN",e[e.END=35]="END",e[e.HOME=36]="HOME",e[e.LEFT=37]="LEFT",e[e.UP=38]="UP",e[e.RIGHT=39]="RIGHT",e[e.DOWN=40]="DOWN"}(i||(i={}));var b,_,$=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"num",void 0),this.num=t}return function(e,t,n){t&&v(e.prototype,t),n&&v(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"decimal",value:function(e,t){var n=this.num,r=this.getDecimalLen(n),o=this.getDecimalLen(e),s=0;switch(t){case"+":s=this.getExponent(r,o),this.num=(this.safeRoundUp(n,s)+this.safeRoundUp(e,s))/s;break;case"-":s=this.getExponent(r,o),this.num=(this.safeRoundUp(n,s)-this.safeRoundUp(e,s))/s;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(n,this.getExponent(r)),this.safeRoundUp(e,this.getExponent(o)))/this.getExponent(r+o);break;case"/":s=this.getExponent(r,o),this.num=this.safeRoundUp(n,s)/this.safeRoundUp(e,s);break;case"%":s=this.getExponent(r,o),this.num=this.safeRoundUp(n,s)%this.safeRoundUp(e,s)/s}return this}},{key:"plus",value:function(e){return this.decimal(e,"+")}},{key:"minus",value:function(e){return this.decimal(e,"-")}},{key:"multiply",value:function(e){return this.decimal(e,"*")}},{key:"divide",value:function(e){return this.decimal(e,"/")}},{key:"remainder",value:function(e){return this.decimal(e,"%")}},{key:"toNumber",value:function(){return this.num}},{key:"getDecimalLen",value:function(e){var t="".concat(e).split("e");return("".concat(t[0]).split(".")[1]||"").length-(t[1]?+t[1]:0)}},{key:"getExponent",value:function(e,t){return Math.pow(10,void 0!==t?Math.max(e,t):e)}},{key:"safeRoundUp",value:function(e,t){return Math.round(e*t)}}]),e}();function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,s=[],a=!0,i=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(s.push(r.value),!t||s.length!==t);a=!0);}catch(e){i=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(i)throw o}}return s}}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){if(e){if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.VALUE=1]="VALUE",e[e.INTERVAL=2]="INTERVAL",e[e.MIN=3]="MIN",e[e.MAX=4]="MAX",e[e.ORDER=5]="ORDER"}(_||(_={}));var E=(A(b={},_.VALUE,'The type of the "value" is illegal'),A(b,_.INTERVAL,'The prop "interval" is invalid, "(max - min)" must be divisible by "interval"'),A(b,_.MIN,'The "value" must be greater than or equal to the "min".'),A(b,_.MAX,'The "value" must be less than or equal to the "max".'),A(b,_.ORDER,'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'),b),I=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),A(this,"dotsPos",[]),A(this,"dotsValue",[]),A(this,"data",void 0),A(this,"enableCross",void 0),A(this,"fixed",void 0),A(this,"max",void 0),A(this,"min",void 0),A(this,"interval",void 0),A(this,"minRange",void 0),A(this,"maxRange",void 0),A(this,"order",void 0),A(this,"marks",void 0),A(this,"included",void 0),A(this,"process",void 0),A(this,"adsorb",void 0),A(this,"dotOptions",void 0),A(this,"onError",void 0),A(this,"cacheRangeDir",{}),this.data=t.data,this.max=t.max,this.min=t.min,this.interval=t.interval,this.order=t.order,this.marks=t.marks,this.included=t.included,this.process=t.process,this.adsorb=t.adsorb,this.dotOptions=t.dotOptions,this.onError=t.onError,this.order?(this.minRange=t.minRange||0,this.maxRange=t.maxRange||0,this.enableCross=t.enableCross,this.fixed=t.fixed):((t.minRange||t.maxRange||!t.enableCross||t.fixed)&&this.emitError(_.ORDER),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(t.value)}return function(e,t,n){t&&k(e.prototype,t),n&&k(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"setValue",value:function(e){this.setDotsValue(Array.isArray(e)?O(e):[e],!0)}},{key:"setDotsValue",value:function(e,t){this.dotsValue=e,t&&this.syncDotsPos()}},{key:"setDotsPos",value:function(e){var t=this,n=this.order?O(e).sort((function(e,t){return e-t})):e;this.dotsPos=n,this.setDotsValue(n.map((function(e){return t.getValueByPos(e)})),this.adsorb)}},{key:"getValueByPos",value:function(e){var t=this.parsePos(e);if(this.included){var n=100;this.markList.forEach((function(r){var o=Math.abs(r.pos-e);o<n&&(n=o,t=r.value)}))}return t}},{key:"syncDotsPos",value:function(){var e=this;this.dotsPos=this.dotsValue.map((function(t){return e.parseValue(t)}))}},{key:"markList",get:function(){var e=this;if(!this.marks)return[];var t=function(t,n){var r=e.parseValue(t);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({pos:r,value:t,label:t,active:e.isActiveByPos(r)},n)};return!0===this.marks?this.getValues().map((function(e){return t(e)})):"[object Object]"===Object.prototype.toString.call(this.marks)?Object.keys(this.marks).sort((function(e,t){return+e-+t})).map((function(n){var r=e.marks[n];return t(n,"string"!=typeof r?r:{label:r})})):Array.isArray(this.marks)?this.marks.map((function(e){return t(e)})):"function"==typeof this.marks?this.getValues().map((function(t){return{value:t,result:e.marks(t)}})).filter((function(e){return!!e.result})).map((function(e){var n=e.value,r=e.result;return t(n,r)})):[]}},{key:"getRecentDot",value:function(e){var t=this.dotsPos.map((function(t){return Math.abs(t-e)}));return t.indexOf(Math.min.apply(Math,O(t)))}},{key:"getIndexByValue",value:function(e){return this.data?this.data.indexOf(e):new $(+e).minus(this.min).divide(this.interval).toNumber()}},{key:"getValueByIndex",value:function(e){return e<0?e=0:e>this.total&&(e=this.total),this.data?this.data[e]:new $(e).multiply(this.interval).plus(this.min).toNumber()}},{key:"setDotPos",value:function(e,t){var n=(e=this.getValidPos(e,t).pos)-this.dotsPos[t];if(n){var r=new Array(this.dotsPos.length);this.fixed?r=this.getFixedChangePosArr(n,t):this.minRange||this.maxRange?r=this.getLimitRangeChangePosArr(e,n,t):r[t]=n,this.setDotsPos(this.dotsPos.map((function(e,t){return e+(r[t]||0)})))}}},{key:"getFixedChangePosArr",value:function(e,t){var n=this;return this.dotsPos.forEach((function(r,o){if(o!==t){var s=n.getValidPos(r+e,o),a=s.pos;s.inRange||(e=Math.min(Math.abs(a-r),Math.abs(e))*(e<0?-1:1))}})),this.dotsPos.map((function(t){return e}))}},{key:"getLimitRangeChangePosArr",value:function(e,t,n){var r=this,o=[{index:n,changePos:t}],s=t;return[this.minRange,this.maxRange].forEach((function(a,i){if(!a)return!1;for(var l,u=0===i,c=t>0,p=function(e,t){var n=Math.abs(e-t);return u?n<r.minRangeDir:n>r.maxRangeDir},d=n+(l=u?c?1:-1:c?-1:1),h=r.dotsPos[d],f=e;r.isPos(h)&&p(h,f);){var m=r.getValidPos(h+s,d).pos;o.push({index:d,changePos:m-h}),d+=l,f=m,h=r.dotsPos[d]}})),this.dotsPos.map((function(e,t){var n=o.filter((function(e){return e.index===t}));return n.length?n[0].changePos:0}))}},{key:"isPos",value:function(e){return"number"==typeof e}},{key:"getValidPos",value:function(e,t){var n=this.valuePosRange[t],r=!0;return e<n[0]?(e=n[0],r=!1):e>n[1]&&(e=n[1],r=!1),{pos:e,inRange:r}}},{key:"parseValue",value:function(e){if(this.data)e=this.data.indexOf(e);else if("number"==typeof e||"string"==typeof e){if((e=+e)<this.min)return this.emitError(_.MIN),0;if(e>this.max)return this.emitError(_.MAX),0;if("number"!=typeof e||e!=e)return this.emitError(_.VALUE),0;e=new $(e).minus(this.min).divide(this.interval).toNumber()}var t=new $(e).multiply(this.gap).toNumber();return t<0?0:t>100?100:t}},{key:"parsePos",value:function(e){var t=Math.round(e/this.gap);return this.getValueByIndex(t)}},{key:"isActiveByPos",value:function(e){return this.processArray.some((function(t){var n=C(t,2),r=n[0],o=n[1];return e>=r&&e<=o}))}},{key:"getValues",value:function(){if(this.data)return this.data;for(var e=[],t=0;t<=this.total;t++)e.push(new $(t).multiply(this.interval).plus(this.min).toNumber());return e}},{key:"getRangeDir",value:function(e){return e?new $(e).divide(new $(this.data?this.data.length-1:this.max).minus(this.data?0:this.min).toNumber()).multiply(100).toNumber():100}},{key:"emitError",value:function(e){this.onError&&this.onError(e,E[e])}},{key:"processArray",get:function(){if(this.process){if("function"==typeof this.process)return this.process(this.dotsPos);if(1===this.dotsPos.length)return[[0,this.dotsPos[0]]];if(this.dotsPos.length>1)return[[Math.min.apply(Math,O(this.dotsPos)),Math.max.apply(Math,O(this.dotsPos))]]}return[]}},{key:"total",get:function(){var e;return(e=this.data?this.data.length-1:new $(this.max).minus(this.min).divide(this.interval).toNumber())-Math.floor(e)!=0?(this.emitError(_.INTERVAL),0):e}},{key:"gap",get:function(){return 100/this.total}},{key:"minRangeDir",get:function(){return this.cacheRangeDir[this.minRange]?this.cacheRangeDir[this.minRange]:this.cacheRangeDir[this.minRange]=this.getRangeDir(this.minRange)}},{key:"maxRangeDir",get:function(){return this.cacheRangeDir[this.maxRange]?this.cacheRangeDir[this.maxRange]:this.cacheRangeDir[this.maxRange]=this.getRangeDir(this.maxRange)}},{key:"getDotRange",value:function(e,t,n){if(!this.dotOptions)return n;var r=Array.isArray(this.dotOptions)?this.dotOptions[e]:this.dotOptions;return r&&void 0!==r[t]?this.parseValue(r[t]):n}},{key:"valuePosRange",get:function(){var e=this,t=this.dotsPos,n=[];return t.forEach((function(r,o){n.push([Math.max(e.minRange?e.minRangeDir*o:0,e.enableCross?0:t[o-1]||0,e.getDotRange(o,"min",0)),Math.min(e.minRange?100-e.minRangeDir*(t.length-1-o):100,e.enableCross?100:t[o+1]||100,e.getDotRange(o,"max",100))])})),n}},{key:"dotsIndex",get:function(){var e=this;return this.dotsValue.map((function(t){return e.getIndexByValue(t)}))}}]),e}();function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),x(this,"map",void 0),x(this,"states",0),this.map=t}return function(e,t,n){t&&R(e.prototype,t),n&&R(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"add",value:function(e){this.states|=e}},{key:"delete",value:function(e){this.states&=~e}},{key:"toggle",value:function(e){this.has(e)?this.delete(e):this.add(e)}},{key:"has",value:function(e){return!!(this.states&e)}}]),e}();function L(e){return function(e){if(Array.isArray(e))return F(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||D(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e){return(Q="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 V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,s=[],a=!0,i=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(s.push(r.value),!t||s.length!==t);a=!0);}catch(e){i=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(i)throw o}}return s}}(e,t)||D(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){if(e){if("string"==typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var q={None:0,Drag:2,Focus:4},U=(0,s.defineComponent)({name:"VueSlider",components:{VueSliderDot:h,VueSliderMark:m},emits:["change","drag-start","dragging","drag-end","error","update:modelValue"],data:function(){return{control:null,states:new P(q),scale:1,focusDotIndex:0}},props:{modelValue:{type:[Number,String,Array],default:0},silent:{type:Boolean,default:!1},direction:{type:String,default:"ltr",validator:function(e){return["ltr","rtl","ttb","btt"].indexOf(e)>-1}},width:{type:[Number,String]},height:{type:[Number,String]},dotSize:{type:[Number,Array],default:14},contained:{type:Boolean,default:!1},min:{type:Number,default:0},max:{type:Number,default:100},interval:{type:Number,default:1},disabled:{type:Boolean,default:!1},clickable:{type:Boolean,default:!0},dragOnClick:{type:Boolean,default:!1},duration:{type:Number,default:.5},data:{type:[Object,Array]},dataValue:{type:String,default:"value"},dataLabel:{type:String,default:"label"},lazy:{type:Boolean,default:!1},tooltip:{type:String,default:"active",validator:function(e){return["none","always","focus","hover","active"].indexOf(e)>-1}},tooltipPlacement:{type:[String,Array],validator:function(e){return(Array.isArray(e)?e:[e]).every((function(e){return["top","right","bottom","left"].indexOf(e)>-1}))}},tooltipFormatter:{type:[String,Array,Function]},useKeyboard:{type:Boolean,default:!0},keydownHook:{type:Function},enableCross:{type:Boolean,default:!0},fixed:{type:Boolean,default:!1},order:{type:Boolean,default:!0},minRange:{type:Number},maxRange:{type:Number},marks:{type:[Boolean,Object,Array,Function],default:!1},process:{type:[Boolean,Function],default:!0},zoom:{type:Number},included:{type:Boolean},adsorb:{type:Boolean},hideLabel:{type:Boolean},dotOptions:{type:[Object,Array]},dotAttrs:{type:Object},railStyle:{type:Object},processStyle:{type:Object},dotStyle:{type:Object},tooltipStyle:{type:Object},stepStyle:{type:Object},stepActiveStyle:{type:Object},labelStyle:{type:Object},labelActiveStyle:{type:Object}},computed:{isHorizontal:function(){return"ltr"===this.direction||"rtl"===this.direction},isReverse:function(){return"rtl"===this.direction||"btt"===this.direction},tailSize:function(){return g((this.isHorizontal?this.height:this.width)||4)},containerClasses:function(){return["vue-slider",["vue-slider-".concat(this.direction)],{"vue-slider-disabled":this.disabled}]},containerStyles:function(){var e=j(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),t=e[0],n=e[1],r=this.width?g(this.width):this.isHorizontal?"auto":g(4),o=this.height?g(this.height):this.isHorizontal?g(4):"auto";return{padding:this.contained?"".concat(n/2,"px ").concat(t/2,"px"):this.isHorizontal?"".concat(n/2,"px 0"):"0 ".concat(t/2,"px"),width:r,height:o}},processArray:function(){var e=this;return this.control.processArray.map((function(t,n){var r,o=j(t,3),s=o[0],a=o[1],i=o[2];if(s>a){var l=[a,s];s=l[0],a=l[1]}var u=e.isHorizontal?"width":"height";return{start:s,end:a,index:n,style:M(M((r={},N(r,e.isHorizontal?"height":"width","100%"),N(r,e.isHorizontal?"top":"left",0),N(r,e.mainDirection,"".concat(s,"%")),N(r,u,"".concat(a-s,"%")),N(r,"transitionProperty","".concat(u,",").concat(e.mainDirection)),N(r,"transitionDuration","".concat(e.animateTime,"s")),r),e.processStyle),i)}}))},dotBaseStyle:function(){var e,t=j(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),n=t[0],r=t[1];return e=this.isHorizontal?N({transform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),WebkitTransform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),top:"50%"},"ltr"===this.direction?"left":"right","0"):N({transform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),WebkitTransform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),left:"50%"},"btt"===this.direction?"bottom":"top","0"),M({width:"".concat(n,"px"),height:"".concat(r,"px")},e)},mainDirection:function(){switch(this.direction){case"ltr":return"left";case"rtl":return"right";case"btt":return"bottom";case"ttb":return"top";default:return"left"}},tooltipDirections:function(){var e=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(e)?e:this.dots.map((function(){return e}))},dots:function(){var e=this;return this.control.dotsPos.map((function(t,n){return M({pos:t,index:n,value:e.control.dotsValue[n],focus:e.states.has(q.Focus)&&e.focusDotIndex===n,disabled:e.disabled,style:e.dotStyle},(Array.isArray(e.dotOptions)?e.dotOptions[n]:e.dotOptions)||{})}))},animateTime:function(){return this.states.has(q.Drag)?0:this.duration},canSort:function(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross},sliderData:function(){var e=this;return this.isObjectArrayData(this.data)?this.data.map((function(t){return t[e.dataValue]})):this.isObjectData(this.data)?Object.keys(this.data):this.data},sliderMarks:function(){var e=this;return this.marks?this.marks:this.isObjectArrayData(this.data)?function(t){var n={label:t};return e.data.some((function(r){return r[e.dataValue]===t&&(n.label=r[e.dataLabel],!0)})),n}:this.isObjectData(this.data)?this.data:void 0},sliderTooltipFormatter:function(){var e=this;if(this.tooltipFormatter)return this.tooltipFormatter;if(this.isObjectArrayData(this.data))return function(t){var n=""+t;return e.data.some((function(r){return r[e.dataValue]===t&&(n=r[e.dataLabel],!0)})),n};if(this.isObjectData(this.data)){var t=this.data;return function(e){return t[e]}}},isNotSync:function(){var e=this.control.dotsValue;return Array.isArray(this.modelValue)?this.modelValue.length!==e.length||this.modelValue.some((function(t,n){return t!==e[n]})):this.modelValue!==e[0]},dragRange:function(){var e=this.dots[this.focusDotIndex-1],t=this.dots[this.focusDotIndex+1];return[e?e.pos:-1/0,t?t.pos:1/0]}},watch:{modelValue:function(){this.control&&!this.states.has(q.Drag)&&this.isNotSync&&this.control.setValue(this.modelValue)}},methods:{isObjectData:function(e){return!!e&&"[object Object]"===Object.prototype.toString.call(e)},isObjectArrayData:function(e){return!!e&&Array.isArray(e)&&e.length>0&&"object"===Q(e[0])},bindEvent:function(){document.addEventListener("touchmove",this.dragMove,{passive:!1}),document.addEventListener("touchend",this.dragEnd,{passive:!1}),document.addEventListener("mousedown",this.blurHandle),document.addEventListener("mousemove",this.dragMove),document.addEventListener("mouseup",this.dragEnd),document.addEventListener("mouseleave",this.dragEnd),document.addEventListener("keydown",this.keydownHandle)},unbindEvent:function(){document.removeEventListener("touchmove",this.dragMove),document.removeEventListener("touchend",this.dragEnd),document.removeEventListener("mousedown",this.blurHandle),document.removeEventListener("mousemove",this.dragMove),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener("mouseleave",this.dragEnd),document.removeEventListener("keydown",this.keydownHandle)},setScale:function(){this.scale=new $(Math.floor(this.isHorizontal?this.$el.offsetWidth:this.$el.offsetHeight)).multiply(this.zoom||1).divide(100).toNumber()},initControl:function(){var e=this;this.control=new I({value:this.modelValue,data:this.sliderData,enableCross:this.enableCross,fixed:this.fixed,max:this.max,min:this.min,interval:this.interval,minRange:this.minRange,maxRange:this.maxRange,order:this.order,marks:this.sliderMarks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach((function(t){e.$watch(t,(function(n){if("data"===t&&Array.isArray(e.control.data)&&Array.isArray(n)&&e.control.data.length===n.length&&n.every((function(t,n){return t===e.control.data[n]})))return!1;switch(t){case"data":case"dataLabel":case"dataValue":e.control.data=e.sliderData;break;case"mark":e.control.marks=e.sliderMarks;break;default:e.control[t]=n}["data","max","min","interval"].indexOf(t)>-1&&e.control.syncDotsPos()}))}))},syncValueByPos:function(){var e=this.control.dotsValue;if(this.isDiff(e,Array.isArray(this.modelValue)?this.modelValue:[this.modelValue])){var t=1===e.length?e[0]:L(e);this.$emit("change",t,this.focusDotIndex),this.$emit("update:modelValue",t)}},isDiff:function(e,t){return e.length!==t.length||e.some((function(e,n){return e!==t[n]}))},emitError:function(e,t){this.silent||console.error("[VueSlider error]: ".concat(t)),this.$emit("error",e,t)},dragStartOnProcess:function(e){if(this.dragOnClick){this.setScale();var t=this.getPosByEvent(e),n=this.control.getRecentDot(t);if(this.dots[n].disabled)return;this.dragStart(n),this.control.setDotPos(t,this.focusDotIndex),this.lazy||this.syncValueByPos()}},dragStart:function(e){this.focusDotIndex=e,this.setScale(),this.states.add(q.Drag),this.states.add(q.Focus),this.$emit("drag-start",this.focusDotIndex)},dragMove:function(e){if(!this.states.has(q.Drag))return!1;e.preventDefault();var t=this.getPosByEvent(e);this.isCrossDot(t),this.control.setDotPos(t,this.focusDotIndex),this.lazy||this.syncValueByPos();var n=this.control.dotsValue;this.$emit("dragging",1===n.length?n[0]:L(n),this.focusDotIndex)},isCrossDot:function(e){if(this.canSort){var t=this.focusDotIndex,n=e;if(n>this.dragRange[1]?(n=this.dragRange[1],this.focusDotIndex++):n<this.dragRange[0]&&(n=this.dragRange[0],this.focusDotIndex--),t!==this.focusDotIndex){var r=this.$refs["dot-".concat(this.focusDotIndex)];r&&r.$el&&r.$el.focus(),this.control.setDotPos(n,t)}}},dragEnd:function(e){var t=this;if(!this.states.has(q.Drag))return!1;setTimeout((function(){t.lazy&&t.syncValueByPos(),t.included&&t.isNotSync?t.control.setValue(t.modelValue):t.control.syncDotsPos(),t.states.delete(q.Drag),t.useKeyboard&&!("targetTouches"in e)||t.states.delete(q.Focus),t.$emit("drag-end",t.focusDotIndex)}))},blurHandle:function(e){if(!this.states.has(q.Focus)||!this.$refs.container||this.$refs.container.contains(e.target))return!1;this.states.delete(q.Focus)},clickHandle:function(e){if(!this.clickable||this.disabled)return!1;if(!this.states.has(q.Drag)){this.setScale();var t=this.getPosByEvent(e);this.setValueByPos(t)}},focus:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e.disabled||(this.states.add(q.Focus),this.focusDotIndex=t)},blur:function(){this.states.delete(q.Focus)},getValue:function(){var e=this.control.dotsValue;return 1===e.length?e[0]:e},getIndex:function(){var e=this.control.dotsIndex;return 1===e.length?e[0]:e},setValue:function(e){this.control.setValue(Array.isArray(e)?L(e):[e]),this.syncValueByPos()},setIndex:function(e){var t=this,n=Array.isArray(e)?e.map((function(e){return t.control.getValueByIndex(e)})):this.control.getValueByIndex(e);this.setValue(n)},setValueByPos:function(e){var t=this,n=this.control.getRecentDot(e);if(this.disabled||this.dots[n].disabled)return!1;this.focusDotIndex=n,this.control.setDotPos(e,n),this.syncValueByPos(),this.useKeyboard&&this.states.add(q.Focus),setTimeout((function(){t.included&&t.isNotSync?t.control.setValue(t.modelValue):t.control.syncDotsPos()}))},keydownHandle:function(e){var t=this;if(!this.useKeyboard||!this.states.has(q.Focus))return!1;var n=this.included&&this.marks,r=function(e,t){if(t.hook){var n=t.hook(e);if("function"==typeof n)return n;if(!n)return null}switch(e.keyCode){case i.UP:return function(e){return"ttb"===t.direction?e-1:e+1};case i.RIGHT:return function(e){return"rtl"===t.direction?e-1:e+1};case i.DOWN:return function(e){return"ttb"===t.direction?e+1:e-1};case i.LEFT:return function(e){return"rtl"===t.direction?e+1:e-1};case i.END:return function(){return t.max};case i.HOME:return function(){return t.min};case i.PAGE_UP:return function(e){return e+10};case i.PAGE_DOWN:return function(e){return e-10};default:return null}}(e,{direction:this.direction,max:n?this.control.markList.length-1:this.control.total,min:0,hook:this.keydownHook});if(r){e.preventDefault();var o=-1,s=0;n?(this.control.markList.some((function(e,n){return e.value===t.control.dotsValue[t.focusDotIndex]&&(o=r(n),!0)})),o<0?o=0:o>this.control.markList.length-1&&(o=this.control.markList.length-1),s=this.control.markList[o].pos):(o=r(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex])),s=this.control.parseValue(this.control.getValueByIndex(o))),this.isCrossDot(s),this.control.setDotPos(s,this.focusDotIndex),this.syncValueByPos()}},getPosByEvent:function(e){return function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o="targetTouches"in e?e.targetTouches[0]:e,s=y(t),a={x:o.pageX-s.x,y:o.pageY-s.y};return{x:n?t.offsetWidth*r-a.x:a.x,y:n?t.offsetHeight*r-a.y:a.y}}(e,this.$el,this.isReverse,this.zoom)[this.isHorizontal?"x":"y"]/this.scale},renderSlot:function(e,t,n){var r=this.$slots[e];return r?r(t):n}},created:function(){this.initControl()},mounted:function(){this.bindEvent()},beforeUnmount:function(){this.unbindEvent()}}),B=(0,d.Z)(U,[["render",function(e,t,n,r,o,i){var u=(0,s.resolveComponent)("vue-slider-mark"),c=(0,s.resolveComponent)("vue-slider-dot");return(0,s.openBlock)(),(0,s.createElementBlock)("div",(0,s.mergeProps)({ref:"container",class:e.containerClasses,style:e.containerStyles,onClick:t[2]||(t[2]=function(){return e.clickHandle&&e.clickHandle.apply(e,arguments)}),onTouchstartPassive:t[3]||(t[3]=function(){return e.dragStartOnProcess&&e.dragStartOnProcess.apply(e,arguments)}),onMousedownPassive:t[4]||(t[4]=function(){return e.dragStartOnProcess&&e.dragStartOnProcess.apply(e,arguments)})},e.$attrs),[(0,s.createElementVNode)("div",{class:"vue-slider-rail",style:(0,s.normalizeStyle)(e.railStyle)},[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(e.processArray,(function(t,n){return(0,s.renderSlot)(e.$slots,"process",(0,s.normalizeProps)((0,s.guardReactiveProps)(t)),(function(){return[((0,s.openBlock)(),(0,s.createElementBlock)("div",{class:"vue-slider-process",key:"process-".concat(n),style:(0,s.normalizeStyle)(t.style)},null,4))]}))})),256)),e.sliderMarks&&e.control?((0,s.openBlock)(),(0,s.createElementBlock)("div",l,[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(e.control.markList,(function(n,r){return(0,s.renderSlot)(e.$slots,"mark",(0,s.normalizeProps)((0,s.guardReactiveProps)(n)),(function(){var o;return[((0,s.openBlock)(),(0,s.createBlock)(u,{key:"mark-".concat(r),mark:n,hideLabel:e.hideLabel,style:(0,s.normalizeStyle)((o={},a(o,e.isHorizontal?"height":"width","100%"),a(o,e.isHorizontal?"width":"height",e.tailSize),a(o,e.mainDirection,"".concat(n.pos,"%")),o)),stepStyle:e.stepStyle,stepActiveStyle:e.stepActiveStyle,labelStyle:e.labelStyle,labelActiveStyle:e.labelActiveStyle,onPressLabel:t[0]||(t[0]=function(t){return e.clickable&&e.setValueByPos(t)})},{step:(0,s.withCtx)((function(){return[(0,s.renderSlot)(e.$slots,"step",(0,s.normalizeProps)((0,s.guardReactiveProps)(n)))]})),label:(0,s.withCtx)((function(){return[(0,s.renderSlot)(e.$slots,"label",(0,s.normalizeProps)((0,s.guardReactiveProps)(n)))]})),_:2},1032,["mark","hideLabel","style","stepStyle","stepActiveStyle","labelStyle","labelActiveStyle"]))]}))})),256))])):(0,s.createCommentVNode)("",!0),((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(e.dots,(function(n,r){var o;return(0,s.openBlock)(),(0,s.createBlock)(c,(0,s.mergeProps)({ref_for:!0,ref:"dot-".concat(r),key:"dot-".concat(r),value:n.value,disabled:n.disabled,focus:n.focus,"dot-style":[n.style,n.disabled?n.disabledStyle:null,n.focus?n.focusStyle:null],tooltip:n.tooltip||e.tooltip,"tooltip-style":[e.tooltipStyle,n.tooltipStyle,n.disabled?n.tooltipDisabledStyle:null,n.focus?n.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(e.sliderTooltipFormatter)?e.sliderTooltipFormatter[r]:e.sliderTooltipFormatter,"tooltip-placement":e.tooltipDirections[r],style:[e.dotBaseStyle,(o={},a(o,e.mainDirection,"".concat(n.pos,"%")),a(o,"transition","".concat(e.mainDirection," ").concat(e.animateTime,"s")),o)],onDragStart:function(){return e.dragStart(r)},role:"slider","aria-valuenow":n.value,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":e.isHorizontal?"horizontal":"vertical",tabindex:"0",onFocus:function(){return e.focus(n,r)},onBlur:t[1]||(t[1]=function(){return e.blur()})},e.dotAttrs),{dot:(0,s.withCtx)((function(){return[(0,s.renderSlot)(e.$slots,"dot",(0,s.normalizeProps)((0,s.guardReactiveProps)(n)))]})),tooltip:(0,s.withCtx)((function(){return[(0,s.renderSlot)(e.$slots,"tooltip",(0,s.normalizeProps)((0,s.guardReactiveProps)(n)))]})),_:2},1040,["value","disabled","focus","dot-style","tooltip","tooltip-style","tooltip-formatter","tooltip-placement","style","onDragStart","aria-valuenow","aria-valuemin","aria-valuemax","aria-orientation","onFocus"])})),128))],4),(0,s.renderSlot)(e.$slots,"default",{value:e.getValue()})],16)}]]);B.VueSliderMark=m,B.VueSliderDot=h;var H=B}(),o=o.default}()}(vue__default)})),css_248z=".vue-slider-dot{position:absolute;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot:focus{outline:none}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-hover:hover .vue-slider-dot-tooltip{visibility:visible}.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%, -100%);transform:translate(-50%, -100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%, 100%);transform:translate(-50%, 100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%, -50%);transform:translate(-100%, -50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}\n.vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%, -50%);transform:translate(50%, -50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-ttb .vue-slider-mark,.vue-slider-btt .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-ttb .vue-slider-mark-step,.vue-slider-btt .vue-slider-mark-step{left:0}.vue-slider-ttb .vue-slider-mark-label,.vue-slider-btt .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%, 50%);transform:translate(-50%, 50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-step,.vue-slider-mark-label{position:absolute}\n.vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}\n";styleInject(css_248z);var css_248z$1='/* component style */\n.vue-slider-disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* rail style */\n.vue-slider-rail {\n background-color: #ccc;\n border-radius: 15px;\n}\n\n/* process style */\n.vue-slider-process {\n background-color: #3498db;\n border-radius: 15px;\n}\n\n/* mark style */\n.vue-slider-mark {\n z-index: 4;\n}\n.vue-slider-mark:first-child .vue-slider-mark-step, .vue-slider-mark:last-child .vue-slider-mark-step {\n display: none;\n}\n.vue-slider-mark-step {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.16);\n}\n.vue-slider-mark-label {\n font-size: 14px;\n white-space: nowrap;\n}\n/* dot style */\n.vue-slider-dot-handle {\n cursor: pointer;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: #fff;\n box-sizing: border-box;\n box-shadow: 0.5px 0.5px 2px 1px rgba(0, 0, 0, 0.32);\n}\n.vue-slider-dot-handle-focus {\n box-shadow: 0px 0px 1px 2px rgba(52, 152, 219, 0.36);\n}\n\n.vue-slider-dot-handle-disabled {\n cursor: not-allowed;\n background-color: #ccc;\n}\n\n.vue-slider-dot-tooltip-inner {\n font-size: 14px;\n white-space: nowrap;\n padding: 2px 5px;\n min-width: 20px;\n text-align: center;\n color: #fff;\n border-radius: 5px;\n border-color: #3498db;\n background-color: #3498db;\n box-sizing: content-box;\n}\n.vue-slider-dot-tooltip-inner::after {\n content: "";\n position: absolute;\n}\n.vue-slider-dot-tooltip-inner-top::after {\n top: 100%;\n left: 50%;\n transform: translate(-50%, 0);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-top-color: inherit;\n}\n.vue-slider-dot-tooltip-inner-bottom::after {\n bottom: 100%;\n left: 50%;\n transform: translate(-50%, 0);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-bottom-color: inherit;\n}\n.vue-slider-dot-tooltip-inner-left::after {\n left: 100%;\n top: 50%;\n transform: translate(0, -50%);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-left-color: inherit;\n}\n.vue-slider-dot-tooltip-inner-right::after {\n right: 100%;\n top: 50%;\n transform: translate(0, -50%);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-right-color: inherit;\n}\n\n.vue-slider-dot-tooltip-wrapper {\n opacity: 0;\n transition: all 0.3s;\n}\n.vue-slider-dot-tooltip-wrapper-show {\n opacity: 1;\n}\n';styleInject(css_248z$1);var NoSSR=vue.defineComponent({props:{isShow:{type:Boolean,default:void 0}},setup:function(e,t){var n=t.slots,r=vue.ref(!1),o=vue.computed((function(){return(void 0===e.isShow||!!e.isShow)&&r.value}));vue.onMounted((function(){r.value=!0}));var s=n.default?vue.h((function(){return n.default&&n.default()})):vue.createCommentVNode("Client only rendering with empty default slot"),a=n.placeholder?vue.h((function(){return n.placeholder&&n.placeholder()})):vue.createCommentVNode("Client only rendering component placeholder");return function(){return o.value?s:a}}}),_templateObject$q,Slider=styled("div")(_templateObject$q||(_templateObject$q=_taggedTemplateLiteralLoose(["\n\tmargin-top: 30px;\n\tpadding: 10px;\n\n\t/* component style */\n\t.vue-slider-disabled {\n\t\topacity: 0.5;\n\t\tcursor: not-allowed;\n\t}\n\n\t/* rail style */\n\t.vue-slider-rail {\n\t\tbackground-color: #ccc;\n\t\tborder-radius: 15px;\n\t\theight: 4px;\n\t}\n\n\t/* process style */\n\t.vue-slider-process {\n\t\tbackground-color: #0b6aff;\n\t\tborder-radius: 15px;\n\t}\n\n\t/* mark style */\n\t.vue-slider-mark {\n\t\tz-index: 4;\n\t}\n\n\t.vue-slider-mark:first-child .vue-slider-mark-step,\n\t.vue-slider-mark:last-child .vue-slider-mark-step {\n\t\tdisplay: none;\n\t}\n\n\t.vue-slider-mark-step {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: rgba(0, 0, 0, 0.16);\n\t}\n\n\t.vue-slider-mark-label {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t}\n\n\t/* dot style */\n\t.vue-slider-dot {\n\t\tz-index: 2;\n\t}\n\n\t.vue-slider-dot-handle {\n\t\tcursor: pointer;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: #fff;\n\t\tbox-sizing: border-box;\n\t\tborder: 1px solid #9a9a9a;\n\t\tz-index: 2;\n\t\tbox-shadow: 0.5px 0.5px 2px 1px rgb(0 0 0 / 32%);\n\t}\n\n\t.vue-slider-dot-handle-disabled {\n\t\tcursor: not-allowed;\n\t\tbackground-color: #ccc;\n\t}\n\n\t.vue-slider-dot-tooltip-inner {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t\tpadding: 2px 5px;\n\t\tmin-width: 20px;\n\t\ttext-align: center;\n\t\tcolor: #fff;\n\t\tborder-radius: 5px;\n\t\tborder: 1px solid #3498db;\n\t\tbackground-color: #3498db;\n\t\tbox-sizing: content-box;\n\t}\n\n\t.vue-slider-dot-tooltip-inner::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-top::after {\n\t\ttop: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-top-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-bottom::after {\n\t\tbottom: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-bottom-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-left::after {\n\t\tleft: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-left-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-right::after {\n\t\tright: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-right-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-wrapper {\n\t\topacity: 0;\n\t\ttransition: all 0.3s;\n\t}\n\t.vue-slider-dot-tooltip-wrapper-show {\n\t\topacity: 1;\n\t}\n\n\t.label-container {\n\t\tmargin: 10px 0;\n\t\twidth: 100%;\n\t}\n\n\t.range-label-right {\n\t\tfloat: right;\n\t}\n"]))),global$1="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},getComponents=function(){var e={NoSSR:NoSSR};try{if("undefined"!=typeof window){var t=document.createElement("script");t.setAttribute("src","https://cdn.jsdelivr.net/npm/vue-slider-component@3.2.15/dist/vue-slider-component.umd.min.js"),t.onload=function(){var t=global$1["vue-slider-component"];e["vue-slider-component"]=t},document.head.appendChild(t)}}catch(e){console.error("Unable to load vue-slider",e)}return e},addComponent$1=lib_5.addComponent,removeComponent$1=lib_5.removeComponent,watchComponent$1=lib_5.watchComponent,updateQuery$8=lib_5.updateQuery,setQueryListener$1=lib_5.setQueryListener,setQueryOptions$8=lib_5.setQueryOptions,setComponentProps$1=lib_5.setComponentProps,setCustomQuery$7=lib_5.setCustomQuery,updateComponentProps$2=lib_5.updateComponentProps,checkValueChange$6=lib_8.checkValueChange,getClassName$a=lib_8.getClassName,isEqual$b=lib_8.isEqual,checkSomePropChange$1=lib_8.checkSomePropChange,extractQueryFromCustomQuery$6=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$6=lib_8.getOptionsForCustomQuery,DynamicRangeSlider={name:"DynamicRangeSlider",components:getComponents(),props:{beforeValueChange:types.func,className:Q.string.def(""),rangeLabels:types.func,componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,data:types.data,dataField:types.stringRequired,defaultValue:types.func,filterLabel:types.string,innerClass:types.style,react:types.react,showFilter:Q.bool.def(!0),destroyOnUnmount:Q.bool,showCheckbox:Q.bool.def(!0),title:types.title,URLParams:Q.bool.def(!1),sliderOptions:Q.object.def({}),nestedField:types.string,index:Q.string,value:types.range,endpoint:types.endpointConfig},data:function(){return this.internalRangeComponent=this.$props.componentId+"__range__internal",{currentValue:null,stats:[]}},created:function(){var e=this;this.$timestamp=(new Date).getTime();var t=[];this.$$store&&(t=this.$$store.getState().components);var n=this.$props.value;(this.destroyOnUnmount||-1===t.indexOf(this.componentId))&&(this.addComponent(this.componentId,this.$timestamp),this.addComponent(this.internalRangeComponent,this.$timestamp),Array.isArray(this.selectedValue)?this.handleChange(this.selectedValue):this.selectedValue?this.handleChange(DynamicRangeSlider.parseValue(this.selectedValue,this.$props)):n&&this.handleChange(DynamicRangeSlider.parseValue(n,this.$props)),this.updateRangeQueryOptions());this.setQueryListener(this.$props.componentId,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.$emit.apply(e,["queryChange"].concat(n)),e.$emit.apply(e,["query-change"].concat(n))}),null),this.setComponentProps(this.componentId,this.$props,constants_1$1.dynamicRangeSlider),this.setComponentProps(this.internalRangeComponent,this.$props,constants_1$1.dynamicRangeSlider),updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setReact(!1)},mounted:function(){this.setReact(!0)},beforeUpdate:function(){this.currentValue||this.setDefaultValue(this.range)},beforeUnmount:function(){this.destroyOnUnmount&&(this.removeComponent(this.$props.componentId),this.removeComponent(this.internalRangeComponent))},methods:{isControlled:function(){return!(!this.$props.value||!this.$attrs)},setDefaultValue:function(e){var t=e.start,n=e.end;if(this.$props.defaultValue){var r=this.$props.defaultValue(t,n),o=r.start,s=r.end;this.handleChange([o,s])}else this.isControlled()?this.handleChange(DynamicRangeSlider.parseValue(this.$props.value),"change"):this.currentValue=[t,n]},setReact:function(e){this.$props.react?(this.watchComponent(this.internalRangeComponent,this.$props.react,e),this.watchComponent(this.$props.componentId,this.$props.react,e)):(this.watchComponent(this.internalRangeComponent,{},e),this.watchComponent(this.$props.componentId,{},e))},rangeQuery:function(){return{min:{min:{field:this.$props.dataField}},max:{max:{field:this.$props.dataField}}}},updateRangeQueryOptions:function(){var e,t={};this.$props.nestedField?((e={})[this.$props.nestedField]={nested:{path:this.$props.nestedField},aggs:this.rangeQuery()},t=e):t=this.rangeQuery();this.setQueryOptions(this.internalRangeComponent,{aggs:t})},handleSlider:function(){var e=this.$refs.slider.getValue();void 0===this.$props.value?this.handleChange(e):this.$emit("change",{start:e[0],end:e[1]})},handleChange:function(e){var t=this,n=[this.range?Math.max(this.range.start,e[0]):e[0],this.range?Math.min(this.range.end,e[1]):e[1]];checkValueChange$6(this.$props.componentId,{start:n[0],end:n[1]},this.$props.beforeValueChange,(function(){t.currentValue=n,t.updateQueryHandler(n,t.$props),t.$emit("valueChange",{start:n[0],end:n[1]}),t.$emit("value-change",{start:n[0],end:n[1]})}))},updateQueryHandler:function(e){var t=DynamicRangeSlider.defaultQuery(e,this.$props);if(this.$props.customQuery){var n=this.$props.customQuery(e,this.$props),r=extractQueryFromCustomQuery$6(n);r&&(t=r);var o=getOptionsForCustomQuery$6(n);updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,e),this.setQueryOptions(this.$props.componentId,o,!1)}var s=this.range||{start:e[0],end:e[1]},a=s.start,i=s.end,l=e[0],u=e[1],c=l===a&&u===i;this.updateQuery({componentId:this.$props.componentId,query:t,value:e,label:this.$props.filterLabel,showFilter:this.$props.showFilter&&!c,URLParams:this.$props.URLParams,componentType:constants_1$1.dynamicRangeSlider})}},computed:{labels:function(){return this.rangeLabels?this.rangeLabels(this.range.start,this.range.end):null}},watch:{$props:{deep:!0,handler:function(e){var t=this,n=getValidPropsKeys(e);checkSomePropChange$1(e,this.componentProps,n,(function(){t.updateComponentProps(t.componentId,e,constants_1$1.dynamicRangeSlider),t.updateComponentProps(t.internalRangeComponent,e,constants_1$1.dynamicRangeSlider)}))}},react:function(){this.setReact()},selectedValue:function(e){if(!isEqual$b(e,this.currentValue)){var t=e||{start:this.range.start,end:this.range.end};this.$emit("change",t),this.handleChange(DynamicRangeSlider.parseValue(t,this.$props))}},range:function(e,t){if(!isEqual$b(e,t)&&this.currentValue){var n=this.currentValue||[],r=n[0],o=n[1],s=t||{},a=s.start,i=s.end,l=r===a?e.start:r,u=o===i?e.end:o;this.handleChange([l,u])}},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue)},value:function(e,t){isEqual$b(e,t)||this.handleChange(DynamicRangeSlider.parseValue(e,this.$props))}},render:function(){var e=this;if(!this.range||!this.currentValue)return null;var t=this.range,n=t.start,r=t.end;return vue.createVNode(Container,{class:this.$props.className},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$a(e.$props.innerClass,"title")},{default:function(){return[e.$props.title]}}),vue.createVNode(NoSSR,null,{default:function(){return[vue.createVNode(Slider,{class:getClassName$a(e.$props.innerClass,"slider")},{default:function(){return[vue.createVNode(vueSliderComponent_umd_min,vue.mergeProps({ref:"slider",modelValue:[Math.floor(Math.max(n,e.currentValue[0])),Math.ceil(Math.min(r,e.currentValue[1]))],min:Math.floor(Math.min(n,e.currentValue[0])),max:Math.ceil(Math.max(r,e.currentValue[1])),"onDrag-end":e.handleSlider,dotSize:20,height:4,"enable-cross":!1,tooltip:"always"},e.$props.sliderOptions),null),e.labels?vue.createVNode("div",{class:"label-container"},[vue.createVNode("label",{class:getClassName$a(e.$props.innerClass,"label")||"range-label-left"},[e.labels.start]),vue.createVNode("label",{class:getClassName$a(e.$props.innerClass,"label")||"range-label-right"},[e.labels.end])]):null]}})]}})]}})},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,showMissing:t.showMissing}}},parseValue:function(e){return e?Array.isArray(e)?e:[e.start,e.end]:[]},hasInternalComponent:function(){return!0}},mapStateToProps$c=function(e,t){var n=e.aggregations[t.componentId],r=e.aggregations[t.componentId+"__range__internal"],o=n&&n[t.dataField],s=e.aggregations[t.componentId+"__range__internal"];return t.nestedField?(o=o&&n[t.dataField][t.nestedField]&&n[t.dataField][t.nestedField].buckets?n[t.dataField][t.nestedField].buckets:[],s=s&&r[t.nestedField].min?{start:r[t.nestedField].min.value,end:r[t.nestedField].max.value}:null):(o=o&&n[t.dataField].buckets?n[t.dataField].buckets:[],s=s&&r.min?{start:r.min.value,end:r.max.value}:null),{options:o,range:s,selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId]}},mapDispatchtoProps$9={addComponent:addComponent$1,removeComponent:removeComponent$1,updateQuery:updateQuery$8,watchComponent:watchComponent$1,setQueryListener:setQueryListener$1,setQueryOptions:setQueryOptions$8,setComponentProps:setComponentProps$1,setCustomQuery:setCustomQuery$7,updateComponentProps:updateComponentProps$2},RangeConnected=PreferencesConsumer(connect(mapStateToProps$c,mapDispatchtoProps$9)(DynamicRangeSlider));function _isSlot$b(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}RangeConnected.defaultQuery=DynamicRangeSlider.defaultQuery,RangeConnected.parseValue=DynamicRangeSlider.parseValue,RangeConnected.hasInternalComponent=DynamicRangeSlider.hasInternalComponent,RangeConnected.name=DynamicRangeSlider.name,RangeConnected.componentType=constants_1$1.dynamicRangeSlider,RangeConnected.install=function(e){e.component(RangeConnected.name,RangeConnected)};var updateQuery$9=lib_5.updateQuery,setQueryOptions$9=lib_5.setQueryOptions,setCustomQuery$8=lib_5.setCustomQuery,isEqual$c=lib_8.isEqual,checkValueChange$7=lib_8.checkValueChange,getClassName$b=lib_8.getClassName,getOptionsFromQuery$1=lib_8.getOptionsFromQuery,SingleRange={name:"SingleRange",data:function(){return this.__state={currentValue:null},this.type="range",this.__state},props:{beforeValueChange:types.func,className:Q.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,data:types.data,dataField:types.stringRequired,defaultValue:types.string,value:types.value,filterLabel:types.string,innerClass:types.style,react:types.react,showFilter:Q.bool.def(!0),showRadio:Q.bool.def(!0),title:types.title,URLParams:Q.bool.def(!1),nestedField:types.string,index:Q.string,endpoint:types.endpointConfig},created:function(){updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{dataField:function(){this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){isEqual$c(e,t)||this.setValue(e)},selectedValue:function(e){isEqual$c(this.$data.currentValue,e)||this.setValue(e)},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},render:function(){var e,t=this;return vue.createVNode(Container,{class:this.$props.className},{default:function(){return[t.$props.title&&vue.createVNode(Title,{class:getClassName$b(t.$props.innerClass,"title")},{default:function(){return[t.$props.title]}}),vue.createVNode(UL,{class:getClassName$b(t.$props.innerClass,"list")},_isSlot$b(e=t.$props.data.map((function(e){var n=!!t.$data.currentValue&&t.$data.currentValue.label===e.label;return vue.createVNode("li",{key:e.label,class:n?"active":""},[vue.createVNode(Radio,vue.mergeProps(babelHelperVueTransformOn({change:t.handleChange}),{class:getClassName$b(t.$props.innerClass,"radio"),id:t.$props.componentId+"-"+e.label,name:t.$props.componentId,value:e.label,type:"radio",checked:n,show:t.$props.showRadio}),null),vue.createVNode("label",{class:getClassName$b(t.$props.innerClass,"label"),for:t.$props.componentId+"-"+e.label},[e.label])])})))?e:{default:function(){return[e]}})]}})},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);var r="string"==typeof e?SingleRange.parseValue(e,t):e;checkValueChange$7(t.componentId,r,t.beforeValueChange,(function(){n.currentValue=r,n.updateQueryHandler(r,t),n.$emit("valueChange",r),n.$emit("value-change",r)}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=SingleRange.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=getOptionsFromQuery$1(n(e,t));updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.singleRange})},handleChange:function(e){void 0===this.$props.value?this.setValue(e.target.value):this.$emit("change",e.target.value)}},parseValue:function(e,t){return t.data.find((function(t){return t.label===e}))||null},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,showMissing:t.showMissing}}}},mapStateToProps$d=function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId]}},mapDispatchtoProps$a={updateQuery:updateQuery$9,setQueryOptions:setQueryOptions$9,setCustomQuery:setCustomQuery$8},RangeConnected$1=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$d,mapDispatchtoProps$a)(SingleRange),{componentType:constants_1$1.singleRange}));function _isSlot$c(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}RangeConnected$1.name=SingleRange.name,RangeConnected$1.defaultQuery=SingleRange.defaultQuery,RangeConnected$1.parseValue=SingleRange.parseValue,RangeConnected$1.hasInternalComponent=SingleRange.hasInternalComponent,RangeConnected$1.install=function(e){e.component(RangeConnected$1.name,RangeConnected$1)},RangeConnected$1.componentType=constants_1$1.singleRange;var updateQuery$a=lib_5.updateQuery,setQueryOptions$a=lib_5.setQueryOptions,setCustomQuery$9=lib_5.setCustomQuery,isEqual$d=lib_8.isEqual,checkValueChange$8=lib_8.checkValueChange,getClassName$c=lib_8.getClassName,getOptionsFromQuery$2=lib_8.getOptionsFromQuery,MultiRange={name:"MultiRange",data:function(){return this.state={currentValue:[],showModal:!1,selectedValues:{}},this.type="range",this.state},props:{beforeValueChange:types.func,className:Q.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,data:types.data,dataField:types.stringRequired,defaultValue:types.stringArray,value:types.stringArray,filterLabel:types.string,innerClass:types.style,react:types.react,showFilter:Q.bool.def(!0),showCheckbox:Q.bool.def(!0),title:types.title,URLParams:Q.bool.def(!1),nestedField:types.string,index:Q.string,endpoint:types.endpointConfig},methods:{handleClick:function(e){if(void 0===this.$props.value)this.selectItem(e.target.value);else{var t=parseValueArray(this.selectedValues,e.target.value);this.$emit("change",t)}},selectItem:function(e,t,n,r){var o=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!1);var s=this.currentValue,a=this.selectedValues;if(e)if(t){s=MultiRange.parseValue(e,n);var i={};s.forEach((function(e){i[[e.label]]=!0})),a=r?i:_extends({},a,i)}else if(a[e]){s=s.filter((function(t){return t.label!==e}));var l=a,u=(l[e],_objectWithoutPropertiesLoose(l,[e].map(_toPropertyKey$1)));a=u}else{var c,p=n.data.filter((function(t){return-1!==e.indexOf(t.label)}));s=[].concat(s,p),a=_extends({},a,((c={})["object"==typeof e?e.label:e]=!0,c))}else s=[],a={};checkValueChange$8(n.componentId,s,n.beforeValueChange,(function(){o.currentValue=s,o.selectedValues=a,o.updateQueryHandler(s,n),o.$emit("valueChange",Object.keys(a)),o.$emit("value-change",Object.keys(a))}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=MultiRange.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=getOptionsFromQuery$2(n(e,t));updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.multiRange})}},watch:{dataField:function(){this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.selectItem(e,!0,void 0,!0)},value:function(e,t){isEqual$d(e,t)||this.selectItem(e,!0,void 0,!0)},selectedValue:function(e){if(!isEqual$d(this.$data.currentValue,e)){var t=e?e.map((function(e){return"object"==typeof e&&"label"in e?e.label:e})):null;this.selectItem(t,!0,void 0,!0)}},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},created:function(){updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.selectedValue?this.selectItem(this.selectedValue,!0):this.$props.value?this.selectItem(this.$props.value,!0):this.$props.defaultValue&&this.selectItem(this.$props.defaultValue,!0)},render:function(){var e,t=this;return vue.createVNode(Container,{class:this.$props.className},{default:function(){return[t.$props.title&&vue.createVNode(Title,{class:getClassName$c(t.$props.innerClass,"title")},{default:function(){return[t.$props.title]}}),vue.createVNode(UL,{class:getClassName$c(t.$props.innerClass,"list")},_isSlot$c(e=t.$props.data.map((function(e){var n=!!t.$data.currentValue&&t.$data.currentValue.label===e.label;return vue.createVNode("li",{key:e.label,class:n?"active":""},[vue.createVNode(Checkbox,vue.mergeProps(babelHelperVueTransformOn({click:t.handleClick}),{class:getClassName$c(t.$props.innerClass,"checkbox"),id:t.$props.componentId+"-"+e.label,name:t.$props.componentId,value:e.label,type:"Checkbox",show:t.$props.showCheckbox,checked:t.selectedValues[e.label]}),null),vue.createVNode("label",{class:getClassName$c(t.$props.innerClass,"label"),for:t.$props.componentId+"-"+e.label},[e.label])])})))?e:{default:function(){return[e]}})]}})},parseValue:function(e,t){return e?t.data.filter((function(t){return e.includes(t.label)})):null},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,showMissing:t.showMissing}}}},mapStateToProps$e=function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId]}},mapDispatchtoProps$b={updateQuery:updateQuery$a,setQueryOptions:setQueryOptions$a,setCustomQuery:setCustomQuery$9},RangeConnected$2=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$e,mapDispatchtoProps$b)(MultiRange),{componentType:constants_1$1.multiRange}));RangeConnected$2.name=MultiRange.name,RangeConnected$2.defaultQuery=MultiRange.defaultQuery,RangeConnected$2.parseValue=MultiRange.parseValue,RangeConnected$2.hasInternalComponent=MultiRange.hasInternalComponent,RangeConnected$2.install=function(e){e.component(RangeConnected$2.name,RangeConnected$2)},RangeConnected$2.componentType=constants_1$1.multiRange;var updateQuery$b=lib_5.updateQuery,setQueryOptions$b=lib_5.setQueryOptions,setCustomQuery$a=lib_5.setCustomQuery,checkValueChange$9=lib_8.checkValueChange,getClassName$d=lib_8.getClassName,getOptionsFromQuery$3=lib_8.getOptionsFromQuery,isEqual$e=lib_8.isEqual,RangeSlider={name:"RangeSlider",components:getComponents(),inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:this.$props.range?[this.$props.range.start,this.$props.range.end]:[],stats:[]}},props:{beforeValueChange:types.func,className:Q.string.def(""),range:Q.shape({start:Q.integer.def(0),end:Q.integer.def(10)}),rangeLabels:types.rangeLabels,componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,data:types.data,dataField:types.stringRequired,defaultValue:types.range,value:types.range,filterLabel:types.string,innerClass:types.style,react:types.react,showFilter:Q.bool.def(!0),showCheckbox:Q.bool.def(!0),title:types.title,URLParams:Q.bool.def(!1),sliderOptions:Q.object.def({}),nestedField:types.string,index:Q.string,endpoint:types.endpointConfig},methods:{handleSliderChange:function(e){void 0===this.$props.value?this.handleChange(e):this.$emit("change",{start:e[0],end:e[1]})},handleSlider:function(){var e=this.$refs.slider.getValue();this.handleSliderChange(e)},handleChange:function(e,t){var n=this;void 0===t&&(t=this.$props);checkValueChange$9(t.componentId,{start:e[0],end:e[1]},t.beforeValueChange,(function(){n.currentValue=e,n.updateQueryHandler([e[0],e[1]],t),n.$emit("valueChange",{start:e[0],end:e[1]}),n.$emit("value-change",{start:e[0],end:e[1]})}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=RangeSlider.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=getOptionsFromQuery$3(n(e,t));updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}var s=t.showFilter,a=t.range,i=a.start,l=a.end,u=e[0],c=e[1],p=u===i&&c===l;this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:s&&!p,URLParams:t.URLParams,componentType:constants_1$1.rangeSlider})}},watch:{defaultValue:function(e){this.handleChange(RangeSlider.parseValue(e,this.$props))},value:function(e,t){isEqual$e(e,t)||this.handleChange(RangeSlider.parseValue(e,this.$props))},selectedValue:function(e){isEqual$e(this.$data.currentValue,e)||(this.handleChange(RangeSlider.parseValue(e,this.$props)),this.$emit("change",e))},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},created:function(){this.$props.range||console.error("%crange is not defined. Read more about this at https://opensource.appbase.io/reactive-manual/vue/range-components/rangeslider.html#props","font-size: 12.5px;"),updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue);var e=this.$props,t=e.value,n=e.defaultValue,r=this.selectedValue;this.$props.range&&(Array.isArray(r)?this.handleChange(r):r?this.handleChange(RangeSlider.parseValue(r,this.$props)):t?this.handleChange(RangeSlider.parseValue(t,this.$props)):n&&this.handleChange(RangeSlider.parseValue(n,this.$props)))},render:function(){var e=this;return vue.createVNode(Container,{class:this.$props.className},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$d(e.$props.innerClass,"title")},{default:function(){return[e.$props.title]}}),e.$props.range?vue.createVNode(NoSSR,null,{default:function(){return[vue.createVNode(Slider,{class:getClassName$d(e.$props.innerClass,"slider")},{default:function(){return[vue.createVNode(vueSliderComponent_umd_min,vue.mergeProps({ref:"slider",modelValue:e.currentValue,min:e.$props.range.start,max:e.$props.range.end,dotSize:20,height:4,"enable-cross":!1,"onDrag-end":e.handleSlider,tooltip:"always"},e.$props.sliderOptions),null),e.$props.rangeLabels&&vue.createVNode("div",{class:"label-container"},[vue.createVNode("label",{class:getClassName$d(e.$props.innerClass,"label")||"range-label-left"},[e.$props.rangeLabels.start]),vue.createVNode("label",{class:getClassName$d(e.$props.innerClass,"label")||"range-label-right"},[e.$props.rangeLabels.end])])]}})]}}):null]}})},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,showMissing:t.showMissing}}},parseValue:function(e,t){return e?Array.isArray(e)?e:[e.start,e.end]:t.range?[t.range.start,t.range.end]:[]}},mapStateToProps$f=function(e,t){return{options:e.aggregations[t.componentId]?e.aggregations[t.componentId][t.dataField]&&e.aggregations[t.componentId][t.dataField].buckets:[],selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId]}},mapDispatchtoProps$c={updateQuery:updateQuery$b,setQueryOptions:setQueryOptions$b,setCustomQuery:setCustomQuery$a},RangeConnected$3=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$f,mapDispatchtoProps$c)(RangeSlider),{componentType:constants_1$1.rangeSlider})),_templateObject$r;RangeConnected$3.name=RangeSlider.name,RangeConnected$3.defaultQuery=RangeSlider.defaultQuery,RangeConnected$3.parseValue=RangeSlider.parseValue,RangeConnected$3.hasInternalComponent=RangeSlider.hasInternalComponent,RangeConnected$3.install=function(e){e.component(RangeConnected$3.name,RangeConnected$3)},RangeConnected$3.componentType=constants_1$1.rangeSlider;var alert=function(e){return"\n\tcolor: "+e.theme.colors.alertColor+";\n"},Content=styled("div")(_templateObject$r||(_templateObject$r=_taggedTemplateLiteralLoose(["\n\t",";\n\tfont-size: 13px;\n\tmargin: 8px;\n"])),(function(e){return e.alert&&alert})),getClassName$e=lib_8.getClassName,isEqual$f=lib_8.isEqual,RangeInput={name:"RangeInput",components:{RangeSlider:RangeConnected$3},inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:{start:this.$props.range?this.$props.range.start:0,end:this.$props.range?this.$props.range.end:10},isStartValid:!0,isEndValid:!0}},props:{className:{types:types.string,default:""},defaultValue:types.range,validateRange:types.func,value:types.range,dataField:types.stringRequired,innerClass:types.style,range:{types:types.range,default:function(){return{start:0,end:10}}},rangeLabels:types.rangeLabels,stepValue:types.number,componentStyle:types.style,componentId:types.stringRequired,compoundClause:types.compoundClause,includeNullValues:Q.bool,beforeValueChange:types.func,customQuery:types.func,data:types.data,filterLabel:types.string,react:types.react,showFilter:Q.bool.def(!0),showCheckbox:Q.bool.def(!0),title:types.title,URLParams:Q.bool.def(!1),sliderOptions:Q.object.def({}),nestedField:types.string,endpoint:types.endpointConfig},methods:{shouldUpdate:function(e){var t=this.$props.validateRange;return t&&e?t([e.start,e.end]):!!e&&e.start<=e.end},isControlled:function(){return!(!this.$props.value||!this.$attrs)},handleChange:function(e,t){var n=e;if(this.shouldUpdate(e)&&!isEqual$f(e,this.currentValue))switch(t){case"change":e||(n={start:this.$props.range?this.$props.range.start:0,end:this.$props.range?this.$props.range.end:10}),this.currentValue=n,this.$emit("change",this.currentValue);break;case"value-change":this.$emit("valueChange",this.currentValue),this.$emit("value-change",this.currentValue);break;default:this.currentValue=_extends({},n)}},handleOnChange:function(e){this.handleChange(e||this.$props.range,"change")},handleValueChange:function(e){this.handleChange(e,"value-change")},handleInputChange:function(e){var t=e.target,n=t.name,r=t.value;Number.isNaN(r)?"start"===n?this.isStartValid=!1:this.isEndValid=!1:"start"!==n||this.isStartValid?"end"!==n||this.isEndValid||(this.isEndValid=!0):this.isStartValid=!0,this.isStartValid&&this.isEndValid&&("start"===n?this.handleChange({start:Number(r),end:this.currentValue.end},"change"):this.handleChange({start:this.currentValue.start,end:Number(r)},"change"))}},watch:{defaultValue:function(e,t){t.start===e.start&&t.end===e.end||this.handleChange(e)},value:function(e,t){isEqual$f(e,t)||this.isControlled()&&this.handleChange(e,"change")}},created:function(){this.$props.defaultValue&&this.$props.defaultValue.start&&this.$props.defaultValue.end&&this.handleChange(this.$props.defaultValue),this.isControlled()&&this.handleChange(this.$props.value,"change")},render:function(){var e=this,t=this.$props,n=t.className,r=t.dataField,o=t.range,s=t.rangeLabels,a=t.componentId,i=t.innerClass,l=t.stepValue,u=t.componentStyle,c=t.themePreset,p=t.includeNullValues,d=t.beforeValueChange,h=t.customQuery,f=t.data,m=t.filterLabel,g=t.react,y=t.showFilter,v=t.showCheckbox,b=t.title,_=t.URLParams,$=t.sliderOptions,C=t.nestedField;return vue.createVNode(Container,{style:u,class:n},{default:function(){return[vue.createVNode(RangeConnected$3,vue.mergeProps(babelHelperVueTransformOn({change:e.handleOnChange,"value-change":e.handleValueChange}),{componentId:a,value:{start:e.currentValue.start,end:e.currentValue.end},range:o,dataField:r,rangeLabels:s,includeNullValues:p,beforeValueChange:d,customQuery:h,data:f,filterLabel:m,react:g,showFilter:y,showCheckbox:v,title:b,URLParams:_,sliderOptions:$,nestedField:C}),null),vue.createVNode(Flex,{class:getClassName$e(i,"input-container")||""},{default:function(){return[vue.createVNode(Flex,{direction:"column",flex:2},{default:function(){return[vue.createVNode(Input,vue.mergeProps(babelHelperVueTransformOn({change:e.handleInputChange}),{key:a+"-start-value",name:"start",type:"number",step:l,themePreset:c,"aria-label":a+"-start-input",min:e.$props.range?e.$props.range.start:0,class:getClassName$e(i,"input")||"",alert:!e.isStartValid,value:e.currentValue.start||0}),null),!e.isStartValid&&vue.createVNode(Content,{alert:!0},{default:function(){return[vue.createTextVNode("Input range is invalid")]}})]}}),vue.createVNode(Flex,{justifyContent:"center",alignItems:"center",flex:1},{default:function(){return[vue.createTextVNode("-")]}}),vue.createVNode(Flex,{direction:"column",flex:2},{default:function(){return[vue.createVNode(Input,vue.mergeProps(babelHelperVueTransformOn({change:e.handleInputChange}),{key:a+"-end-value",name:"end",type:"number",step:l,themePreset:c,"aria-label":a+"-end-input",max:e.$props.range?e.$props.range.end:10,class:getClassName$e(i,"input")||"",alert:!e.isEndValid,value:e.currentValue.end||0}),null),!e.isEndValid&&vue.createVNode(Content,{alert:!0},{default:function(){return[vue.createTextVNode("Input range is invalid")]}})]}})]}})]}})}},mapStateToProps$g=function(e){return{themePreset:e.config.themePreset}},RangeConnected$4=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$g,{})(RangeInput),{componentType:constants_1$1.rangeInput}));RangeConnected$4.name=RangeInput.name,RangeConnected$4.install=function(e){e.component(RangeConnected$4.name,RangeConnected$4)},RangeConnected$4.componentType=constants_1$1.rangeInput;var RcConnected$1=PreferencesConsumer({name:"RcConnected",render:function(){var e=RcConnected;switch(this.$attrs.componentType){case constants_1$1.reactiveList:e=RLConnected;break;case constants_1$1.searchBox:e=SBConnected;break;case constants_1$1.singleList:e=ListConnected;break;case constants_1$1.multiList:e=ListConnected$1;break;case constants_1$1.singleDropdownList:e=ListConnected$2;break;case constants_1$1.multiDropdownList:e=ListConnected$3;break;case constants_1$1.toggleButton:e=TBConnected;break;case constants_1$1.dynamicRangeSlider:e=RangeConnected;break;case constants_1$1.singleRange:e=RangeConnected$1;break;case constants_1$1.multiRange:e=RangeConnected$2;break;case constants_1$1.rangeSlider:e=RangeConnected$3;break;case constants_1$1.rangeInput:e=RangeConnected$4}return vue.h(e,null,this.$slots)}});RcConnected$1.name=RcConnected.name,RcConnected$1.hasInternalComponent=RcConnected.hasInternalComponent,RcConnected$1.componentType=constants_1$1.reactiveComponent,RcConnected$1.install=function(e){e.component(RcConnected$1.name,RcConnected$1)};var setValue$2=lib_5.setValue,clearValues=lib_5.clearValues,resetValuesToDefault=lib_5.resetValuesToDefault,getClassName$f=lib_8.getClassName,handleA11yAction$2=lib_8.handleA11yAction,SelectedFilters={name:"SelectedFilters",props:{className:Q.string.def(""),clearAllLabel:Q.string.def("Clear All"),innerClass:types.style,showClearAll:Q.bool.def(!0),title:types.title,resetToDefault:Q.bool.def(!1),clearAllBlacklistComponents:Q.array,resetToValues:Q.object},inject:{theme:{from:"theme_reactivesearch"}},render:function(){var e=this;if(this.$slots.default)return this.$slots.default({components:this.components,selectedValues:this.selectedValues,clearValues:this.clearValues,clearValue:this.clearValue,setValue:this.setValue,resetValuesToDefault:this.resetValuesToDefault});var t=this.renderFilters(),n=!!t.length;return vue.createVNode(Container,{class:filters(this.theme)+" "+(this.$props.className||"")},{default:function(){return[e.$props.title&&n&&vue.createVNode(Title,{class:getClassName$f(e.$props.innerClass,"title")||""},{default:function(){return[e.$props.title]}}),t,e.$props.showClearAll&&n&&t.length>1?vue.createVNode(Button,vue.mergeProps(babelHelperVueTransformOn({click:e.clearValues,keypress:function(t){return handleA11yAction$2(t,(function(){return e.clearValues()}))}}),{class:getClassName$f(e.$props.innerClass,"button")||"",tabIndex:"0"}),{default:function(){return[e.$props.clearAllLabel]}}):null]}})},methods:{remove:function(e,t){void 0===t&&(t=null),this.setValue(e,null),this.$emit("clear",e,t)},clearValues:function(){var e=this.resetToDefault,t=this.resetToValues,n=this.clearAllBlacklistComponents;e?this.resetValuesToDefault(n):this.clearValuesAction(t,n),this.$emit("clear",t)},clearValue:function(e){var t=this.resetToDefault,n=this.resetToValues;t?this.resetValuesToDefault(this.components.filter((function(t){return t!==e}))):this.setValue(e,(null==n?void 0:n[e])||null),this.$emit("clear",null==n?void 0:n[e])},renderValue:function(e,t){var n=this;if(t&&e.length)return e.map((function(e){return n.renderValue(e)})).join(", ");if(e&&"object"==typeof e){var r=("string"==typeof e.label?e.label:e.value)||e.key||e.distance||null;return e.location&&(r=e.location+" - "+r),r}return e},renderFilterButton:function(e,t,n,r){return vue.createVNode(Button,vue.mergeProps(babelHelperVueTransformOn({click:n,keypress:function(e){return handleA11yAction$2(e,n)}}),{class:getClassName$f(this.$props.innerClass,"button")||"",key:t,tabIndex:"0"}),{default:function(){return[vue.createVNode("span",null,[r]),vue.createVNode("span",null,[vue.createTextVNode("✕")])]}})},renderFilters:function(){var e=this,t=this.selectedValues;return Object.keys(t).filter((function(n){return e.components.includes(n)&&t[n].showFilter})).map((function(n,r){var o=t[n],s=o.label,a=o.value,i=Array.isArray(a);if(s&&(i&&a.length||!i&&a)){var l=e.renderValue(a,i);return e.renderFilterButton(n,n+"-"+(r+1),(function(){return e.remove(n,a)}),t[n].label+": "+decodeHtml(l))}return null})).filter(Boolean)}},watch:{selectedValues:function(e){this.$emit("change",e)}}},mapStateToProps$h=function(e){return{components:e.components,selectedValues:e.selectedValues}},mapDispatchtoProps$d={clearValuesAction:clearValues,setValue:setValue$2,resetValuesToDefault:resetValuesToDefault},RcConnected$2=connect(mapStateToProps$h,mapDispatchtoProps$d)(SelectedFilters);function _isSlot$d(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}RcConnected$2.name=SelectedFilters.name,RcConnected$2.install=function(e){e.component(RcConnected$2.name,RcConnected$2)};var ResultCardTitle={name:"ResultCardTitle",render:function(){var e,t=this.$slots.default;return vue.createVNode(Title,this.$props,_isSlot$d(e=t())?e:{default:function(){return[e]}})},install:function(e){e.component(ResultCardTitle.name,ResultCardTitle)}},_excluded$4=["src"],ResultCardImage={name:"ResultCardImage",props:{src:Q.string.isRequired},render:function(){var e=this.$props,t=e.src,n=_objectWithoutPropertiesLoose(e,_excluded$4);return vue.createVNode(Image$1,vue.mergeProps({style:{backgroundImage:"url("+t+")"}},n),null)},install:function(e){e.component(ResultCardImage.name,ResultCardImage)}},ResultCardDescription={name:"ResultCardDescription",functional:!0,render:function(e){return vue.createVNode("article",e.$props,[e.$slots.default()])},install:function(e){e.component(ResultCardDescription.name,ResultCardDescription)}},_excluded$5=["href","target"];function _isSlot$e(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var ResultCard={name:"ResultCard",components:{ResultCardTitle:ResultCardTitle,ResultCardImage:ResultCardImage,ResultCardDescription:ResultCardDescription},props:{target:Q.string.def("_blank"),href:types.string},render:function(){var e,t=this.$slots.default,n=this.$props,r=n.href,o=n.target,s=_objectWithoutPropertiesLoose(n,_excluded$5);return vue.createVNode(Card,vue.mergeProps({href:r,target:o,rel:"_blank"===o?"noopener noreferrer":null},s),_isSlot$e(e=t())?e:{default:function(){return[e]}})},install:function(e){e.component(ResultCard.name,ResultCard),e.component(ResultCardTitle.name,ResultCardTitle),e.component(ResultCardImage.name,ResultCardImage),e.component(ResultCardDescription.name,ResultCardDescription)}},ResultListContent={name:"ResultListContent",functional:!0,render:function(e){return vue.createVNode("article",e.$props,[e.$slots.default()])},install:function(e){e.component(ResultListContent.name,ResultListContent)}},ResultListDescription={name:"ResultListDescription",functional:!0,render:function(e){return vue.createVNode("div",e.$props,[e.$slots.default()])},install:function(e){e.component(ResultListDescription.name,ResultListDescription)}},_excluded$6=["src","small"],ResultListImage={name:"ResultListImage",props:{src:Q.string.isRequired,small:Q.bool.def(!1)},render:function(){var e=this.$props,t=e.src,n=e.small,r=_objectWithoutPropertiesLoose(e,_excluded$6);return vue.createVNode(Image,vue.mergeProps({src:t,small:n},r),null)}};function _isSlot$f(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}ResultListImage.install=function(e){e.component(ResultListImage.name,ResultListImage)};var ResultListTitle={name:"ResultListTitle",render:function(){var e,t=this.$slots.default;return vue.createVNode(Title,this.$props,_isSlot$f(e=t())?e:{default:function(){return[e]}})},install:function(e){e.component(ResultListTitle.name,ResultListTitle)}},_excluded$7=["href","target"];function _isSlot$g(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var ResultList={name:"ResultList",props:{href:types.string,target:Q.string.def("_blank")},components:{ResultListContent:ResultListContent,ResultListDescription:ResultListDescription,ResultListImage:ResultListImage,ResultListTitle:ResultListTitle},data:function(){return this.__state={hasImage:!1,isSmall:!1},this.__state},mounted:function(){var e=this.$slots.default().find((function(e){return e.type&&e.type.name===ResultListImage.name}));e&&e.props&&(this.hasImage=!0,e.props.small&&(this.isSmall=!0))},render:function(){var e,t=this.$props,n=t.href,r=t.target,o=_objectWithoutPropertiesLoose(t,_excluded$7),s=this.hasImage,a=this.isSmall,i=this.$slots.default;return vue.createVNode(ListItem,vue.mergeProps({href:n,image:s,small:a,target:r,rel:"_blank"===r?"noopener noreferrer":null},o),_isSlot$g(e=i())?e:{default:function(){return[e]}})},install:function(e){e.component(ResultList.name,ResultList),e.component(ResultListContent.name,ResultListContent),e.component(ResultListDescription.name,ResultListDescription),e.component(ResultListImage.name,ResultListImage),e.component(ResultListTitle.name,ResultListTitle)}},setSearchState=lib_5.setSearchState,getSearchState=lib_8.getSearchState,defaultKeys=["hits","value","aggregations","error"],filterProps=function(e){return void 0===e&&(e={}),_extends({},e,{props:e.componentProps})},convertArrayLike=function(e){for(var t=[],n=0;e[n];)t[n]=e[n],n+=1;return t},filterByComponentIds=function(e,t){void 0===t&&(t={});var n=t,r=n.componentIds,o=n.excludeComponentIds;if(r){var s;if("string"==typeof r)return(s={})[r]=e[r],s;if(Array.isArray(r)&&r.length){var a={};return r.forEach((function(t){a[t]=e[t]})),a}}var i={};return t.includeInternalComponents?i=e:Object.keys(e).forEach((function(t){t.endsWith("internal")||t.endsWith("active")||t.endsWith("timestamp")||(i[t]=e[t])})),o&&("string"==typeof o&&Object.keys(e).forEach((function(e){e===o&&delete i[e]})),Array.isArray(o)&&o.length&&Object.keys(e).forEach((function(e){o.includes(e)&&delete i[e]}))),i},filterByKeys=function(e,t){return Object.keys(e).reduce((function(n,r){var o;return _extends({},n,((o={})[r]=Object.keys(e[r]).filter((function(e){return t.includes(e)})).reduce((function(t,n){return t[n]=e[r][n],t}),{}),o))}),{})},StateProvider={name:"StateProvider",props:{onChange:Q.func,componentIds:Q.oneOfType([Q.string,Q.arrayOf(Q.string)]),includeKeys:Q.arrayOf(Q.string).def(defaultKeys),strict:Q.bool.def(!0),includeInternalComponents:Q.bool.def(!1),excludeComponentIds:Q.oneOfType([Q.string,Q.arrayOf(Q.string)])},data:function(){return this.__state={searchState:null},this.__state},created:function(){this.searchState=filterByKeys(getSearchState(filterProps(this.searchStateProps)),this.includeKeys)},computed:{searchStateProps:function(){return{selectedValues:this.selectedValues||{},queryLog:this.queryLog||{},dependencyTree:this.dependencyTree||{},componentProps:this.componentProps||{},hits:this.hits||{},aggregations:this.aggregations||{},isLoading:this.isLoading||{},error:this.error||{},promotedResults:this.promotedResults||{},rawData:this.rawData||{}}}},watch:{searchState:function(e,t){null!=t&&this.isStateChanged(e,t)&&this.$emit("change",t,e)},selectedValues:function(e,t){this.calculateSearchState(e,t)},queryLog:function(e,t){this.calculateSearchState(e,t)},dependencyTree:function(e,t){this.calculateSearchState(e,t)},componentProps:function(e,t){this.calculateSearchState(e,t)},hits:function(e,t){this.calculateSearchState(e,t)},aggregations:function(e,t){this.calculateSearchState(e,t)},isLoading:function(e,t){this.calculateSearchState(e,t)},error:function(e,t){this.calculateSearchState(e,t)},componentIds:function(e,t){this.calculateSearchState(e,t)},excludeComponentIds:function(e,t){this.calculateSearchState(e,t)},includeKeys:function(e,t){this.calculateSearchState(e,t)},promotedResults:function(e,t){this.calculateSearchState(e,t)},rawData:function(e,t){this.calculateSearchState(e,t)},customData:function(e,t){this.calculateSearchState(e,t)},settings:function(e,t){this.calculateSearchState(e,t)}},methods:{isStateChanged:function(e,t){return JSON.stringify(t)!==JSON.stringify(e)},calculateSearchState:function(e,t){this.isStateChanged(e,t)&&(this.searchState=filterByKeys(getSearchState(filterProps(this.searchStateProps)),this.includeKeys))},setSearchState:function(e){var t=this;void 0===e&&(e={});var n=this.components,r={};convertArrayLike(n).filter((function(e){return!transform_12(e)})).forEach((function(n){r[n]=n in e?{value:e[n],componentProps:t.componentProps[n]}:{value:null,componentProps:t.componentProps[n]}})),this.setSearchStateFn(r)}},render:function(){var e=this.searchState,t=this.$slots.default;return t?t({searchState:e,setSearchState:this.setSearchState}):null}},mapStateToProps$i=function(e,t){return{selectedValues:filterByComponentIds(e.selectedValues,t),queryLog:filterByComponentIds(e.queryLog,t),dependencyTree:filterByComponentIds(e.dependencyTree,t),componentProps:filterByComponentIds(e.props,t),hits:filterByComponentIds(e.hits,t),aggregations:filterByComponentIds(e.aggregations,t),isLoading:filterByComponentIds(e.isLoading,t),error:filterByComponentIds(e.error,t),promotedResults:filterByComponentIds(e.promotedResults,t),customData:filterByComponentIds(e.customData,t),settings:filterByComponentIds(e.settings,t),rawData:filterByComponentIds(e.rawData,t),components:e.components}},mapDispatchtoProps$e={setSearchStateFn:setSearchState},StateProviderConnected=connect(mapStateToProps$i,mapDispatchtoProps$e)(StateProvider);StateProviderConnected.name=StateProvider.name,StateProviderConnected.install=function(e){e.component(StateProviderConnected.name,StateProviderConnected)};var lazy=function(e){var t,n=!1;return function(){return n||(n=!0,t=e()),t}},Env=function(){function e(){}return e.isServer=function(){return"undefined"==typeof document},e}();function createMapScript(e){var t=document.createElement("SCRIPT");if("object"!=typeof e)throw new Error("options should be an object");Array.prototype.isPrototypeOf(e.libraries)&&(e.libraries=e.libraries.join(",")),e.callback="vueGoogleMapsInit";var n="https://maps.googleapis.com/maps/api/js?"+Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&");return t.setAttribute("src",n),t.setAttribute("async",""),t.setAttribute("defer",""),t}var isApiSetUp=!1;function loadGMapApi(e){if(!Env.isServer()){if(isApiSetUp)throw new Error("You already started the loading of google maps");isApiSetUp=!0;var t=createMapScript(e);document.head.appendChild(t)}}var bindEvents=function(e,t,n){for(var r,o=function(){var n=r.value,o=("on"+n.charAt(0).toUpperCase()+n.slice(1)).replace(/[-_]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}));(e.$props[o]||e.$attrs[o]||e.$gmapOptions.autobindAllEvents||e.$attrs[n])&&t.addListener(n,(function(t){e.$emit(n,t)}))},s=_createForOfIteratorHelperLoose(n);!(r=s()).done;)o()};function WatchPrimitiveProperties(e,t,n,r){void 0===r&&(r=!1);var o=!1;function s(){o||(o=!0,e.$nextTick((function(){o=!1,n()})))}for(var a,i=_createForOfIteratorHelperLoose(t);!(a=i()).done;){var l=a.value;e.$watch(l,s,{immediate:r})}}var Str=function(){function e(){}return e.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e}();function getPropsValues(e,t){return Object.keys(t).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function bindProps(e,t,n){var r=function(r){var o=n[r],s=o.twoWay,a=o.type,i=o.trackProperties;if(o.noBind)return 1;var l="set"+Str.capitalizeFirstLetter(r),u="get"+Str.capitalizeFirstLetter(r),c=r.toLowerCase()+"_changed",p=e[r];if(void 0===t[l])throw new Error(l+" is not a method of (the Maps object corresponding to) "+e.$options._componentTag);a===Object&&i?WatchPrimitiveProperties(e,i.map((function(e){return r+"."+e})),(function(){t[l](e[r])}),void 0!==e[r]):e.$watch(r,(function(){var n=e[r];t[l](n)}),{immediate:void 0!==p,deep:a===Object}),s&&(e.$gmapOptions.autobindAllEvents||e.$attrs[c])&&t.addListener(c,(function(){e.$emit(c,t[u]())}))};for(var o in n)r(o)}var MapElementMixin={inject:{$mapPromise:{default:"abcdef"}},provide:function(){var e=this;return this.$mapPromise.then((function(t){e.$map=t})),{}}},_excluded$8=["mappedProps","name","ctr","ctrArgs","events","beforeCreate","afterCreate","props"];function buildComponent(e){var t=e.mappedProps,n=e.name,r=e.ctr,o=e.ctrArgs,s=e.events,a=e.beforeCreate,i=e.afterCreate,l=e.props,u=_objectWithoutPropertiesLoose(e,_excluded$8),c="$"+n+"Promise",p="$"+n+"Object";return assert(!(u.props instanceof Array),"`props` should be an object, not Array"),_extends({},"undefined"!=typeof GENERATE_DOC?{$vgmOptions:e}:{},{mixins:[MapElementMixin],props:_extends({},l,mappedPropsToVueProps(t)),render:function(){return""},provide:function(){var e,n=this,u=this.$mapPromise.then((function(e){n.$map=e;var r=_extends({},n.options,{map:e},getPropsValues(n,t));if(delete r.options,a){var o=a.bind(n)(r);if(o instanceof Promise)return o.then((function(){return{options:r}}))}return{options:r}})).then((function(e){var a,u=e.options,c=r();return n[p]=o?new((a=Function.prototype.bind).call.apply(a,[c,null].concat(o(u,getPropsValues(n,l||{}))))):new c(u),bindProps(n,n[p],t),bindEvents(n,n[p],s),i&&i.bind(n)(n[p]),n[p]}));return this[c]=u,(e={})[c]=u,e},unmounted:function(){this[p]&&this[p].setMap&&this[p].setMap(null)}},u)}function assert(e,t){if(!e)throw new Error(t)}function mappedPropsToVueProps(e){return Object.entries(e).map((function(e){var t=e[0],n=e[1],r={};return"type"in n&&(r.type=n.type),"default"in n&&(r.default=n.default),"required"in n&&(r.required=n.required),[t,r]})).reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})}var props$1={draggable:{type:Boolean},editable:{type:Boolean},options:{twoWay:!1,type:Object},path:{type:Array,twoWay:!0}},events=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],Polyline=buildComponent({mappedProps:props$1,props:{deepWatch:{type:Boolean,default:!1}},events:events,name:"polyline",ctr:function(){return google.maps.Polyline},afterCreate:function(){var e=this,t=function(){};this.$watch("path",(function(n){if(n){t(),e.$polylineObject.setPath(n);var r=e.$polylineObject.getPath(),o=[],s=function(){e.$emit("path_changed",e.$polylineObject.getPath())};o.push([r,r.addListener("insert_at",s)]),o.push([r,r.addListener("remove_at",s)]),o.push([r,r.addListener("set_at",s)]),t=function(){o.map((function(e){e[0];var t=e[1];return google.maps.event.removeListener(t)}))}}}),{deep:this.deepWatch,immediate:!0})}}),props$2={draggable:{type:Boolean},editable:{type:Boolean},options:{type:Object},path:{type:Array,twoWay:!0,noBind:!0},paths:{type:Array,twoWay:!0,noBind:!0}},events$1=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],Polygon=buildComponent({props:{deepWatch:{type:Boolean,default:!1}},events:events$1,mappedProps:props$2,name:"polygon",ctr:function(){return google.maps.Polygon},beforeCreate:function(e){e.path||delete e.path,e.paths||delete e.paths},afterCreate:function(e){var t=this,n=function(){};this.$watch("paths",(function(r){if(r){n(),e.setPaths(r);for(var o=function(){t.$emit("paths_changed",e.getPaths())},s=[],a=e.getPaths(),i=0;i<a.getLength();i++){var l=a.getAt(i);s.push([l,l.addListener("insert_at",o)]),s.push([l,l.addListener("remove_at",o)]),s.push([l,l.addListener("set_at",o)])}s.push([a,a.addListener("insert_at",o)]),s.push([a,a.addListener("remove_at",o)]),s.push([a,a.addListener("set_at",o)]),n=function(){s.map((function(e){e[0];var t=e[1];return google.maps.event.removeListener(t)}))}}}),{deep:this.deepWatch,immediate:!0}),this.$watch("path",(function(r){if(r){n(),e.setPaths(r);var o=e.getPath(),s=[],a=function(){t.$emit("path_changed",e.getPath())};s.push([o,o.addListener("insert_at",a)]),s.push([o,o.addListener("remove_at",a)]),s.push([o,o.addListener("set_at",a)]),n=function(){s.map((function(e){e[0];var t=e[1];return google.maps.event.removeListener(t)}))}}}),{deep:this.deepWatch,immediate:!0})}}),props$3={center:{type:Object,twoWay:!0,required:!0},radius:{type:Number,twoWay:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},options:{type:Object,twoWay:!1}},events$2=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],Circle=buildComponent({mappedProps:props$3,name:"circle",ctr:function(){return google.maps.Circle},events:events$2}),props$4={bounds:{type:Object,twoWay:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},options:{type:Object,twoWay:!1}},events$3=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],Rectangle=buildComponent({mappedProps:props$4,name:"rectangle",ctr:function(){return google.maps.Rectangle},events:events$3}),props$5={animation:{twoWay:!0,type:Number},attribution:{type:Object},clickable:{type:Boolean,twoWay:!0,default:!0},cursor:{type:String,twoWay:!0},draggable:{type:Boolean,twoWay:!0,default:!1},icon:{twoWay:!0},label:{},opacity:{type:Number,default:1},options:{type:Object},place:{type:Object},position:{type:Object,twoWay:!0},shape:{type:Object,twoWay:!0},title:{type:String,twoWay:!0},zIndex:{type:Number,twoWay:!0},visible:{twoWay:!0,default:!0}},events$4=["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],script=buildComponent({mappedProps:props$5,events:events$4,name:"marker",ctr:function(){return google.maps.Marker},inject:{$clusterPromise:{default:null}},emits:events$4,unmounted:function(){this.$markerObject&&(this.$clusterObject?this.$clusterObject.removeMarker(this.$markerObject,!0):this.$markerObject.setMap(null))},beforeCreate:function(e){return this.$clusterPromise&&(e.map=null),this.$clusterPromise},afterCreate:function(e){var t=this;events$4.forEach((function(n){e.addListener(n,(function(e){t.$emit(n,e)}))})),this.$clusterPromise&&this.$clusterPromise.then((function(n){t.$clusterObject=n,n.addMarker(e)}))}});function render(e,t,n,r,o,s){return vue.openBlock(),vue.createElementBlock("div",{onClick:t[0]||(t[0]=function(){console.log("sdfsd")})},[vue.renderSlot(e.$slots,"default")])}script.render=render,script.__file="node_modules/vue-google-maps-community-fork/src/components/marker.vue";var fastDeepEqual=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,s;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(s=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,s[o]))return!1;for(o=r;0!=o--;){var a=s[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n},ARRAY_TYPES=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],VERSION=1,HEADER_SIZE=8,KDBush=function(){function e(e,t,n,r){if(void 0===t&&(t=64),void 0===n&&(n=Float64Array),isNaN(e)||e<0)throw new Error("Unpexpected numItems value: "+e+".");this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=n,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;var o=ARRAY_TYPES.indexOf(this.ArrayType),s=2*e*this.ArrayType.BYTES_PER_ELEMENT,a=e*this.IndexArrayType.BYTES_PER_ELEMENT,i=(8-a%8)%8;if(o<0)throw new Error("Unexpected typed array class: "+n+".");r&&r instanceof ArrayBuffer?(this.data=r,this.ids=new this.IndexArrayType(this.data,HEADER_SIZE,e),this.coords=new this.ArrayType(this.data,HEADER_SIZE+a+i,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(HEADER_SIZE+s+a+i),this.ids=new this.IndexArrayType(this.data,HEADER_SIZE,e),this.coords=new this.ArrayType(this.data,HEADER_SIZE+a+i,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(VERSION<<4)+o]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e)}e.from=function(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");var n=new Uint8Array(t,0,2),r=n[0],o=n[1];if(219!==r)throw new Error("Data does not appear to be in a KDBush format.");var s=o>>4;if(s!==VERSION)throw new Error("Got v"+s+" data when expected v"+VERSION+".");var a=ARRAY_TYPES[15&o];if(!a)throw new Error("Unrecognized array type.");var i=new Uint16Array(t,2,1)[0];return new e(new Uint32Array(t,4,1)[0],i,a,t)};var t=e.prototype;return t.add=function(e,t){var n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=e,this.coords[this._pos++]=t,n},t.finish=function(){var e=this._pos>>1;if(e!==this.numItems)throw new Error("Added "+e+" items when expected "+this.numItems+".");return sort(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this},t.range=function(e,t,n,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");for(var o=this.ids,s=this.coords,a=this.nodeSize,i=[0,o.length-1,0],l=[];i.length;){var u=i.pop()||0,c=i.pop()||0,p=i.pop()||0;if(c-p<=a)for(var d=p;d<=c;d++){var h=s[2*d],f=s[2*d+1];h>=e&&h<=n&&f>=t&&f<=r&&l.push(o[d])}else{var m=p+c>>1,g=s[2*m],y=s[2*m+1];g>=e&&g<=n&&y>=t&&y<=r&&l.push(o[m]),(0===u?e<=g:t<=y)&&(i.push(p),i.push(m-1),i.push(1-u)),(0===u?n>=g:r>=y)&&(i.push(m+1),i.push(c),i.push(1-u))}}return l},t.within=function(e,t,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");for(var r=this.ids,o=this.coords,s=this.nodeSize,a=[0,r.length-1,0],i=[],l=n*n;a.length;){var u=a.pop()||0,c=a.pop()||0,p=a.pop()||0;if(c-p<=s)for(var d=p;d<=c;d++)sqDist(o[2*d],o[2*d+1],e,t)<=l&&i.push(r[d]);else{var h=p+c>>1,f=o[2*h],m=o[2*h+1];sqDist(f,m,e,t)<=l&&i.push(r[h]),(0===u?e-n<=f:t-n<=m)&&(a.push(p),a.push(h-1),a.push(1-u)),(0===u?e+n>=f:t+n>=m)&&(a.push(h+1),a.push(c),a.push(1-u))}}return i},e}();function sort(e,t,n,r,o,s){if(!(o-r<=n)){var a=r+o>>1;select(e,t,a,r,o,s),sort(e,t,n,r,a-1,1-s),sort(e,t,n,a+1,o,1-s)}}function select(e,t,n,r,o,s){for(;o>r;){if(o-r>600){var a=o-r+1,i=n-r+1,l=Math.log(a),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(a-u)/a)*(i-a/2<0?-1:1);select(e,t,n,Math.max(r,Math.floor(n-i*u/a+c)),Math.min(o,Math.floor(n+(a-i)*u/a+c)),s)}var p=t[2*n+s],d=r,h=o;for(swapItem(e,t,r,n),t[2*o+s]>p&&swapItem(e,t,r,o);d<h;){for(swapItem(e,t,d,h),d++,h--;t[2*d+s]<p;)d++;for(;t[2*h+s]>p;)h--}t[2*r+s]===p?swapItem(e,t,r,h):swapItem(e,t,++h,o),h<=n&&(r=h+1),n<=h&&(o=h-1)}}function swapItem(e,t,n,r){swap(e,n,r),swap(t,2*n,2*r),swap(t,2*n+1,2*r+1)}function swap(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function sqDist(e,t,n,r){var o=e-n,s=t-r;return o*o+s*s}var defaultOptions={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(e){return e}},fround=Math.fround||(tmp=new Float32Array(1),function(e){return tmp[0]=+e,tmp[0]}),tmp,OFFSET_ZOOM=2,OFFSET_ID=3,OFFSET_PARENT=4,OFFSET_NUM=5,OFFSET_PROP=6,Supercluster=function(){function e(e){this.options=Object.assign(Object.create(defaultOptions),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}var t=e.prototype;return t.load=function(e){var t=this.options,n=t.log,r=t.minZoom,o=t.maxZoom;n&&console.time("total time");var s="prepare "+e.length+" points";n&&console.time(s),this.points=e;for(var a=[],i=0;i<e.length;i++){var l=e[i];if(l.geometry){var u=l.geometry.coordinates,c=u[0],p=u[1],d=fround(lngX(c)),h=fround(latY(p));a.push(d,h,1/0,i,-1,1),this.options.reduce&&a.push(0)}}var f=this.trees[o+1]=this._createTree(a);n&&console.timeEnd(s);for(var m=o;m>=r;m--){var g=+Date.now();f=this.trees[m]=this._createTree(this._cluster(f,m)),n&&console.log("z%d: %d clusters in %dms",m,f.numItems,+Date.now()-g)}return n&&console.timeEnd("total time"),this},t.getClusters=function(e,t){var n=((e[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,e[1])),o=180===e[2]?180:((e[2]+180)%360+360)%360-180,s=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,o=180;else if(n>o){var a=this.getClusters([n,r,180,s],t),i=this.getClusters([-180,r,o,s],t);return a.concat(i)}for(var l,u=this.trees[this._limitZoom(t)],c=u.range(lngX(n),latY(s),lngX(o),latY(r)),p=u.data,d=[],h=_createForOfIteratorHelperLoose(c);!(l=h()).done;){var f=l.value,m=this.stride*f;d.push(p[m+OFFSET_NUM]>1?getClusterJSON(p,m,this.clusterProps):this.points[p[m+OFFSET_ID]])}return d},t.getChildren=function(e){var t=this._getOriginId(e),n=this._getOriginZoom(e),r="No cluster with the specified id.",o=this.trees[n];if(!o)throw new Error(r);var s=o.data;if(t*this.stride>=s.length)throw new Error(r);for(var a,i=this.options.radius/(this.options.extent*Math.pow(2,n-1)),l=s[t*this.stride],u=s[t*this.stride+1],c=[],p=_createForOfIteratorHelperLoose(o.within(l,u,i));!(a=p()).done;){var d=a.value*this.stride;s[d+OFFSET_PARENT]===e&&c.push(s[d+OFFSET_NUM]>1?getClusterJSON(s,d,this.clusterProps):this.points[s[d+OFFSET_ID]])}if(0===c.length)throw new Error(r);return c},t.getLeaves=function(e,t,n){t=t||10,n=n||0;var r=[];return this._appendLeaves(r,e,t,n,0),r},t.getTile=function(e,t,n){var r=this.trees[this._limitZoom(e)],o=Math.pow(2,e),s=this.options,a=s.extent,i=s.radius/a,l=(n-i)/o,u=(n+1+i)/o,c={features:[]};return this._addTileFeatures(r.range((t-i)/o,l,(t+1+i)/o,u),r.data,t,n,o,c),0===t&&this._addTileFeatures(r.range(1-i/o,l,1,u),r.data,o,n,o,c),t===o-1&&this._addTileFeatures(r.range(0,l,i/o,u),r.data,-1,n,o,c),c.features.length?c:null},t.getClusterExpansionZoom=function(e){for(var t=this._getOriginZoom(e)-1;t<=this.options.maxZoom;){var n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t},t._appendLeaves=function(e,t,n,r,o){for(var s,a=_createForOfIteratorHelperLoose(this.getChildren(t));!(s=a()).done;){var i=s.value,l=i.properties;if(l&&l.cluster?o+l.point_count<=r?o+=l.point_count:o=this._appendLeaves(e,l.cluster_id,n,r,o):o<r?o++:e.push(i),e.length===n)break}return o},t._createTree=function(e){for(var t=new KDBush(e.length/this.stride|0,this.options.nodeSize,Float32Array),n=0;n<e.length;n+=this.stride)t.add(e[n],e[n+1]);return t.finish(),t.data=e,t},t._addTileFeatures=function(e,t,n,r,o,s){for(var a,i=_createForOfIteratorHelperLoose(e);!(a=i()).done;){var l=a.value*this.stride,u=t[l+OFFSET_NUM]>1,c=void 0,p=void 0,d=void 0;if(u)c=getClusterProperties(t,l,this.clusterProps),p=t[l],d=t[l+1];else{var h=this.points[t[l+OFFSET_ID]];c=h.properties;var f=h.geometry.coordinates,m=f[0],g=f[1];p=lngX(m),d=latY(g)}var y={type:1,geometry:[[Math.round(this.options.extent*(p*o-n)),Math.round(this.options.extent*(d*o-r))]],tags:c},v=void 0;void 0!==(v=u||this.options.generateId?t[l+OFFSET_ID]:this.points[t[l+OFFSET_ID]].id)&&(y.id=v),s.features.push(y)}},t._limitZoom=function(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))},t._cluster=function(e,t){for(var n=this.options,r=n.radius,o=n.extent,s=n.reduce,a=n.minPoints,i=r/(o*Math.pow(2,t)),l=e.data,u=[],c=this.stride,p=0;p<l.length;p+=c)if(!(l[p+OFFSET_ZOOM]<=t)){l[p+OFFSET_ZOOM]=t;for(var d,h=l[p],f=l[p+1],m=e.within(l[p],l[p+1],i),g=l[p+OFFSET_NUM],y=g,v=_createForOfIteratorHelperLoose(m);!(d=v()).done;){var b=d.value*c;l[b+OFFSET_ZOOM]>t&&(y+=l[b+OFFSET_NUM])}if(y>g&&y>=a){for(var _,$=h*g,C=f*g,S=void 0,O=-1,w=((p/c|0)<<5)+(t+1)+this.points.length,T=_createForOfIteratorHelperLoose(m);!(_=T()).done;){var k=_.value*c;if(!(l[k+OFFSET_ZOOM]<=t)){l[k+OFFSET_ZOOM]=t;var A=l[k+OFFSET_NUM];$+=l[k]*A,C+=l[k+1]*A,l[k+OFFSET_PARENT]=w,s&&(S||(S=this._map(l,p,!0),O=this.clusterProps.length,this.clusterProps.push(S)),s(S,this._map(l,k)))}}l[p+OFFSET_PARENT]=w,u.push($/y,C/y,1/0,w,-1,y),s&&u.push(O)}else{for(var E=0;E<c;E++)u.push(l[p+E]);if(y>1)for(var I,R=_createForOfIteratorHelperLoose(m);!(I=R()).done;){var x=I.value*c;if(!(l[x+OFFSET_ZOOM]<=t)){l[x+OFFSET_ZOOM]=t;for(var P=0;P<c;P++)u.push(l[x+P])}}}}return u},t._getOriginId=function(e){return e-this.points.length>>5},t._getOriginZoom=function(e){return(e-this.points.length)%32},t._map=function(e,t,n){if(e[t+OFFSET_NUM]>1){var r=this.clusterProps[e[t+OFFSET_PROP]];return n?Object.assign({},r):r}var o=this.points[e[t+OFFSET_ID]].properties,s=this.options.map(o);return n&&s===o?Object.assign({},s):s},e}();function getClusterJSON(e,t,n){return{type:"Feature",id:e[t+OFFSET_ID],properties:getClusterProperties(e,t,n),geometry:{type:"Point",coordinates:[xLng(e[t]),yLat(e[t+1])]}}}function getClusterProperties(e,t,n){var r=e[t+OFFSET_NUM],o=r>=1e4?Math.round(r/1e3)+"k":r>=1e3?Math.round(r/100)/10+"k":r,s=e[t+OFFSET_PROP],a=-1===s?{}:Object.assign({},n[s]);return Object.assign(a,{cluster:!0,cluster_id:e[t+OFFSET_ID],point_count:r,point_count_abbreviated:o})}function lngX(e){return e/360+.5}function latY(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function xLng(e){return 360*(e-.5)}function yLat(e){var t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}
|
|
24
|
+
*/function _defineProperty$1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_defineProperty$1(e,t,n[t])}))}return e}var VueHighlightWords={functional:!0,props:{activeClassName:String,activeIndex:Number,activeStyle:Object,autoEscape:Boolean,findChunks:Function,highlightClassName:String,highlightStyle:Object,highlightTag:[Object,Function,String],sanitize:Function,searchWords:{type:Array,validator:function(e){return e.every((function(e){return"string"==typeof e}))},required:!0},textToHighlight:{type:String,required:!0},unhighlightClassName:String,unhighlightStyle:Object},render:function(e,t){var n,r=t.props,o=r.activeClassName,s=void 0===o?"":o,a=r.activeIndex,i=void 0===a?-1:a,l=r.activeStyle,u=r.autoEscape,c=r.caseSensitive,p=void 0!==c&&c,d=r.findChunks,h=r.highlightClassName,f=void 0===h?"":h,m=r.highlightStyle,g=void 0===m?{}:m,y=r.highlightTag,v=void 0===y?"mark":y,b=r.sanitize,_=r.searchWords,$=r.textToHighlight,C=r.unhighlightClassName,S=void 0===C?"":C,O=r.unhighlightStyle,w=t.data,T=dist_1({autoEscape:u,caseSensitive:p,findChunks:d,sanitize:b,searchWords:_,textToHighlight:$}),k=v,A=-1,E="";return e("span",_objectSpread({},w),T.map((function(t,r){var o=$.substr(t.start,t.end-t.start);if(t.highlight){var a=++A===+i;E="".concat(f," ").concat(a?s:""),n=!0===a&&null!=l?Object.assign({},g,l):g;var u={class:E,key:r,style:n};return"string"!=typeof k&&(u.props={highlightIndex:A}),w.scopedSlots?e(k,u,[w.scopedSlots.default({children:o,highlightIndex:A})]):e(k,u,o)}return e("span",{class:S,key:r,style:O},o)})))}},_templateObject$f,highlightStyle={fontWeight:600,padding:0,backgroundColor:"transparent",color:"inherit"},PredictiveSuggestion=styled("span")(_templateObject$f||(_templateObject$f=_taggedTemplateLiteralLoose(["\n\t.highlight {\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont-weight: 600;\n\t\tpadding: 0;\n\t}\n"]))),SuggestionItem={name:"SuggestionItem",props:{currentValue:types.string,suggestion:types.any,innerHTML:types.string.isRequired},data:function(){return{isOverflowing:!1}},methods:{updateOverflowing:function(){if(this.$refs.container&&this.$refs.content){var e=this.$refs,t=e.container,n=e.content,r=t.offsetWidth,o=n.scrollWidth;this.isOverflowing=o>r}else this.isOverflowing=!1}},mounted:function(){this.updateOverflowing()},render:function(){var e=this,t=this.suggestion,n=t.label,r=t.value,o=t.title,s=t.description,a=t.image,i=t.isPredictiveSuggestion,l=t._suggestion_type,u=t._category;return n?"string"==typeof n?vue.createVNode("div",{ref:"container",class:"trim",title:this.isOverflowing?n:""},[vue.createVNode("div",{ref:"content"},[u||!i&&!l?vue.createVNode(VueHighlightWords,{searchWords:u?[u]:this.currentValue.split(" "),textToHighlight:n,autoEscape:!0,highlightStyle:highlightStyle},null):vue.createVNode(PredictiveSuggestion,{innerHTML:n},null)])]):n:o||a||s?vue.createVNode(Flex,{alignItems:"center",css:{width:"100%"}},{default:function(){return[a&&vue.createVNode("div",{css:{margin:"auto",marginRight:10}},[vue.createVNode("img",{src:a,alt:" ",height:"50px",width:"50px",css:{objectFit:"contain"}},null)]),vue.createVNode(Flex,{direction:"column",css:{width:a?"calc(100% - 60px)":"100%"}},{default:function(){return[o&&vue.createVNode("div",{class:"trim"},[vue.createVNode(VueHighlightWords,{searchWords:e.currentValue.split(" "),textToHighlight:o,highlightStyle:highlightStyle,class:css({fontSize:"1rem"})},null)]),s&&vue.createVNode("div",{class:["trim",css({marginTop:3})]},[vue.createVNode(VueHighlightWords,{searchWords:e.currentValue.split(" "),textToHighlight:s,highlightStyle:highlightStyle},null)])]}})]}}):r}},SearchSvg={name:"SearchSvg",props:["styles"],render:function(){return vue.createVNode("svg",{alt:"Search",class:"search-icon",height:"12",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 15",style:_extends({transform:"scale(1.35)",position:"relative"},this.$props.styles?this.$props.styles:{})},[vue.createVNode("title",null,[vue.createTextVNode("Search")]),vue.createVNode("path",{d:"M6.02945,10.20327a4.17382,4.17382,0,1,1,4.17382-4.17382A4.15609,4.15609,0,0,1,6.02945,10.20327Zm9.69195,4.2199L10.8989,9.59979A5.88021,5.88021,0,0,0,12.058,6.02856,6.00467,6.00467,0,1,0,9.59979,10.8989l4.82338,4.82338a.89729.89729,0,0,0,1.29912,0,.89749.89749,0,0,0-.00087-1.29909Z"},null)])}},CancelSvg=function(){return vue.createVNode("svg",{alt:"Clear",class:"cancel-icon",xmlns:"http://www.w3.org/2000/svg",height:"20px",viewBox:"0 0 24 24",width:"20px"},[vue.createVNode("title",null,[vue.createTextVNode("Clear")]),vue.createVNode("path",{d:"M0 0h24v24H0V0z",fill:"none"},null),vue.createVNode("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"},null)])};function styleInject(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var MicSvg={name:"MicSvg",props:["className"],render:function(){return vue.createVNode("svg",{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",id:"el_xS0FRzQjJ",width:28,height:28,className:this.$props.className,style:{transform:"scale(1.5)"}},[vue.createVNode("g",{id:"el_TvxDfTAtKp",fillRule:"evenodd"},[vue.createVNode("g",{id:"el_D93PK3GbmJ",fillRule:"nonzero",style:{fill:"#595959"}},[vue.createVNode("path",{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_uly3EwA2O3"},null),vue.createVNode("path",{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,-2.84217094e-14 76.9864699,-2.84217094e-14 C55.8825877,-2.84217094e-14 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_tnDbR4ytu4"},null)])])])}},MuteSvg={name:"MuteSvg",props:["className"],render:function(){return vue.createVNode("svg",{style:{transform:"scale(1.5)"},viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",id:"el_D1rEpH2zj",width:28,height:28,className:this.$props.className},[vue.createVNode("g",{id:"el_X81iT9kZYo",fillRule:"evenodd"},[vue.createVNode("g",{id:"el_gMpyalCphp"},[vue.createVNode("path",{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_c7H-3u-D4l",fillRule:"nonzero",style:{fill:"#595959"}},null),vue.createVNode("path",{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,-2.84217094e-14 76.9864699,-2.84217094e-14 C55.8825877,-2.84217094e-14 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_qhFcdAAFwo",fillRule:"nonzero",style:{fill:"#595959"}},null),vue.createVNode("path",{d:"M11.5,206.5 L142.5,12.5",id:"el_M8X8g37WOI",strokeLinecap:"round",strokeLinejoin:"round"},null)])])])}},ListenSvg={name:"ListenSvg",props:["className"],render:function(){return vue.createVNode("svg",{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",id:"el_hiibMG0x-",width:28,height:29,className:this.$props.className,style:{transform:"scale(1.5)"}},[vue.createVNode("defs",null,[vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-1"},null),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-3"},null),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-5"},null),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-7"},null),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-9"},null),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-11"},null),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-13"},null),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-15"},null)]),vue.createVNode("g",{id:"el_QJeJ_2CDw5",fillRule:"evenodd"},[vue.createVNode("g",{id:"el_UYYCfubTRf"},[vue.createVNode("path",{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_uzZNtK32Zi",fillRule:"nonzero",style:{fill:"#0B6AFF"}},null),vue.createVNode("path",{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,0 76.9864699,0 C55.8825877,0 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_EYKQ2N9Kgy",fillRule:"nonzero"},null),vue.createVNode("g",{id:"el_6SDP2LAgKC"},[vue.createVNode("mask",{id:"mask-2",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-1"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_-Vm65Ltfy7",fillRule:"nonzero",mask:"url(#mask-2)"},null),vue.createVNode("rect",{id:"el_q04iZcSim4",mask:"url(#mask-2)",x:"0.279",width:"77",height:"130"},null)]),vue.createVNode("g",{id:"el_6WKby7wXqV"},[vue.createVNode("mask",{id:"mask-4",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-3"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_9bggsfQOtU",fillRule:"nonzero",mask:"url(#mask-4)"},null),vue.createVNode("rect",{id:"el_NKxqi9eIym",mask:"url(#mask-4)",x:"0.279",width:"77",height:"115"},null)]),vue.createVNode("g",{id:"el_Wi-my975tM"},[vue.createVNode("mask",{id:"mask-6",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-5"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_zclQ34fvf7",fillRule:"nonzero",mask:"url(#mask-6)"},null),vue.createVNode("rect",{id:"el_1OsvRT8HkeZ",mask:"url(#mask-6)",x:"0.279",width:"77",height:"100"},null)]),vue.createVNode("g",{id:"el_DkfFFTaFxy8"},[vue.createVNode("mask",{id:"mask-8",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-7"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_aa9sjx4H0vA",fillRule:"nonzero",mask:"url(#mask-8)"},null),vue.createVNode("rect",{id:"el_tea114vWg0J",mask:"url(#mask-8)",x:"0.279",width:"77",height:"85"},null)]),vue.createVNode("g",{id:"el_34IgwiMB5rf"},[vue.createVNode("mask",{id:"mask-10",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-9"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_z5u6RAFhx7d",fillRule:"nonzero",mask:"url(#mask-10)"},null),vue.createVNode("rect",{id:"el_7nfuWmA5Uhy",mask:"url(#mask-10)",x:"0.279",width:"77",height:"70"},null)]),vue.createVNode("g",{id:"el_DeebuCsPTGA"},[vue.createVNode("mask",{id:"mask-12",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-11"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el__ZcqlS20zcw",fillRule:"nonzero",mask:"url(#mask-12)"},null),vue.createVNode("rect",{id:"el_8DnEQnD7VWV",mask:"url(#mask-12)",x:"0.279",width:"77",height:"55"},null)]),vue.createVNode("g",{id:"el_ZOjjrPTvyrv"},[vue.createVNode("mask",{id:"mask-14",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-13"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_FYYKCI_u24e",fillRule:"nonzero",mask:"url(#mask-14)"},null),vue.createVNode("rect",{id:"el_XZty4MnTp5Y",mask:"url(#mask-14)",x:"0.279",width:"77",height:"40"},null)]),vue.createVNode("g",{id:"el_2FATegVmf0K"},[vue.createVNode("mask",{id:"mask-16",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-15"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_RMT1KUfbdF8",fillRule:"nonzero",mask:"url(#mask-16)"},null),vue.createVNode("rect",{id:"el_RgLcovvFiO1",mask:"url(#mask-16)",x:"0.279",width:"77",height:"25"},null)])])])])}},STATUS={inactive:"INACTIVE",stopped:"STOPPED",active:"ACTIVE",denied:"DENIED"},Mic={name:"Mic",props:{children:types.title,lang:Q.string.def("en-US"),iconPosition:Q.string.def("left"),handleResult:types.func,onNoMatch:types.func,onError:types.func,getInstance:types.func,render:types.func,className:types.string,applyClearStyle:Q.bool,showIcon:Q.bool},methods:{getComponent:function(){var e=this.$data.status,t={handleClick:this.handleClick,status:e};return getComponent(t,this)},stopMic:function(){this.instance&&(this.status=STATUS.inactive,this.instance.stop(),this.instance=null)},handleClick:function(){var e=this;if(this.results=[],window&&window.SpeechRecognition){this.$data.status===STATUS.active&&(this.status=STATUS.inactive);var t=this.$props,n=t.handleResult,r=t.onNoMatch,o=t.onError,s=t.lang,a=t.getInstance,i=window.SpeechRecognition;if(this.instance&&this.status!==STATUS.denied)return this.status=STATUS.inactive,this.instance.stop(),void(this.instance=null);this.instance=new i,this.instance.continuous=!0,this.instance.interimResults=!1,this.instance.lang=s,a&&a(this.instance),this.instance.start(),this.instance.onstart=function(){e.status=STATUS.active},this.instance.onresult=function(t){var r=t.results,o=t.timeStamp;e.stopMic(),n&&n({results:r,timeStamp:o}),e.results.push({results:r,timeStamp:o})},this.instance.onnomatch=function(e){return r?r(e):console.warn(e)},this.instance.onerror=function(t){"no-speech"===t.error||"audio-capture"===t.error?e.status=STATUS.inactive:"not-allowed"===t.error&&(e.status=STATUS.denied),console.error(t),o&&o(t)},this.instance.onspeechend=function(){e.status=STATUS.inactive},this.instance.onaudioend=function(){e.status=STATUS.inactive}}}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)},Icon:function(){var e=this.$data.status,t=this.$props.className;switch(e){case STATUS.active:return vue.createVNode(ListenSvg,{className:t,onClick:this.handleClick},null);case STATUS.stopped:case STATUS.denied:return vue.createVNode(MuteSvg,{className:t,onClick:this.handleClick},null);default:return vue.createVNode(MicSvg,{className:t,onClick:this.handleClick},null)}}},data:function(){return{status:STATUS.inactive}},created:function(){this.results=[],"undefined"!=typeof window&&(window.SpeechRecognition=window.webkitSpeechRecognition||window.SpeechRecognition||null,window.SpeechRecognition||console.error("SpeechRecognition is not supported in this browser. Please check the browser compatibility at https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition#Browser_compatibility."))},render:function(){var e=this;return this.hasCustomRenderer?this.getComponent():vue.createVNode(IconWrapper,null,{default:function(){return[e.Icon]}})}},CustomSvg={name:"CustomSvg",props:{className:String,icon:Function,type:String},data:function(){return{customIcon:this.$props.icon&&"function"==typeof this.$props.icon?this.$props.icon():null}},render:function(){return this.customIcon?vue.createVNode("div",{class:this.$props.className},[this.customIcon]):"recent-search-icon"===this.$props.type?vue.createVNode("svg",{xmlns:"http://www.w3.org/2000/svg",alt:"Recent Search",height:"20",width:"20",viewBox:"0 0 24 24",style:{fill:"#707070"},class:this.$props.className},[vue.createVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null),vue.createVNode("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"},null)]):"promoted-search-icon"===this.$props.type?vue.createVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",alt:"promoted search",height:"20",viewBox:"0 0 24 24",class:this.$props.className,style:{fill:"#707070"}},[vue.createVNode("path",{d:"M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279-7.416-3.967-7.417 3.967 1.481-8.279-6.064-5.828 8.332-1.151z"},null)]):"popular-search-icon"===this.$props.type?vue.createVNode("svg",{xmlns:"http://www.w3.org/2000/svg",alt:"Popular Search",height:"20",width:"20",viewBox:"0 0 24 24",style:{fill:"#707070"},class:this.$props.className},[vue.createVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null),vue.createVNode("path",{d:"M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"},null)]):vue.createVNode(SearchSvg,{styles:{position:"relative",fill:"#707070",left:"3px",marginRight:"8px"}},null)}},_templateObject$g,AutofillSvgIcon=styled("button")(_templateObject$g||(_templateObject$g=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tmargin-left: auto;\n\tposition: relative;\n\tright: -3px;\n\tborder: none;\n\toutline: none;\n\tbackground: transparent;\n\tpadding: 0;\n\tz-index: 111000;\n\n\tsvg {\n\t\tcursor: pointer;\n\t\tfill: #707070;\n\t\theight: 20px;\n\t}\n\n\t&:hover {\n\t\tsvg {\n\t\t\tfill: #1c1a1a;\n\t\t}\n\t}\n"]))),AutoFillSvg={name:"AutoFillSvg",render:function(){return vue.createVNode(AutofillSvgIcon,{onClick:this.$attrs.click},{default:function(){return[vue.createVNode("svg",{viewBox:"0 0 24 24"},[vue.createVNode("path",{d:"M8 17v-7.586l8.293 8.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-8.293-8.293h7.586c0.552 0 1-0.448 1-1s-0.448-1-1-1h-10c-0.552 0-1 0.448-1 1v10c0 0.552 0.448 1 1 1s1-0.448 1-1z"},null)])]}})},methods:{clicked:function(e){e.stopPropagation(),window.console.log("hey",e)}}},_templateObject$h,_templateObject2$6,TagsContainer=styled("div")(_templateObject$h||(_templateObject$h=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tmargin-top: 10px;\n\twidth: 100%;\n"]))),TagItem=styled("span")(_templateObject2$6||(_templateObject2$6=_taggedTemplateLiteralLoose(["\n\tcursor: default;\n\tbox-sizing: border-box;\n\tmargin: 0 4px 4px 0;\n\tcolor: #000000d9;\n\tfont-size: 14px;\n\tfont-variant: tabular-nums;\n\tline-height: 1.5715;\n\tlist-style: none;\n\tfont-feature-settings: 'tnum';\n\tdisplay: inline-block;\n\theight: auto;\n\tpadding: 0 2px 0 7px;\n\tfont-size: 12px;\n\tline-height: 22px;\n\twhite-space: nowrap;\n\tbackground: #fafafa;\n\tborder: 1px solid #d9d9d9;\n\tborder-radius: 2px;\n\topacity: 1;\n\ttransition: all 0.3s;\n\n\tspan.close-icon {\n\t\tsvg {\n\t\t\tcursor: pointer;\n\t\t\theight: 15px;\n\t\t\tposition: relative;\n\t\t\ttop: 4px;\n\t\t\tfill: #262626;\n\t\t}\n\t}\n"]))),_templateObject$i,AutosuggestFooterContainer=styled("div")(_templateObject$i||(_templateObject$i=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tcolor: #8792a2;\n\tbackground: #f7fafc;\n\tpadding: 10px;\n\theight: 40px;\n"]))),_templateObject$j,_templateObject2$7,_templateObject3$4,skeletonAnimation=keyframes(_templateObject$j||(_templateObject$j=_taggedTemplateLiteralLoose(["\n 0% {\n background-position: 100% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n"]))),SkeletonLoader=styled("div")(_templateObject2$7||(_templateObject2$7=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 10px;\n"]))),SkeletonLine=styled("div")(_templateObject3$4||(_templateObject3$4=_taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\theight: 20px;\n\tbackground: linear-gradient(\n\t\t90deg,\n\t\trgba(220, 220, 220, 0.5) 25%,\n\t\trgba(240, 240, 240, 0.9) 50%,\n\t\trgba(220, 220, 220, 0.5) 75%\n\t);\n\tbackground-size: 200% 100%;\n\tanimation: "," 1.5s infinite;\n"])),skeletonAnimation),HorizontalSkeletonLoader=vue.defineComponent({name:"HorizontalSkeletonLoader",render:function(){return vue.createVNode(SkeletonLoader,null,{default:function(){return[vue.createVNode(SkeletonLine,null,null),vue.createVNode(SkeletonLine,null,null),vue.createVNode(SkeletonLine,null,null),vue.createVNode(SkeletonLine,null,null)]}})}}),_templateObject$k,_templateObject2$8,_templateObject3$5,_templateObject4$2,_templateObject5$2,_templateObject6$1,_templateObject7$1,_templateObject8$1,_templateObject9$1,_templateObject10,_templateObject11,Chatbox=styled("div")(_templateObject$k||(_templateObject$k=_taggedTemplateLiteralLoose(["\n\tposition: relative;\n\tmargin: 0 auto;\n\tpadding: 10px;\n\tbackground-color: #fafafa;\n\twidth: 100%;\n\tbox-shadow: rgb(0 0 0 / 20%) 0px 0px 6px;\n\tborder-radius: 6px;\n\tmargin-bottom: 20px;\n\tbackground-color: ",";\n\n\t.--trigger-message-wrapper {\n\t\tcursor: pointer;\n\t}\n"])),(function(e){return e.theme&&e.theme.colors&&e.theme.colors.backgroundColor?curriedLighten(.1,e.theme.colors.backgroundColor):"#fff"})),ChatContainer=styled("div")(_templateObject2$8||(_templateObject2$8=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-direction: column;\n\theight: 100%;\n\tposition: relative;\n\t.--ai-answer-error-container {\n\t\ttext-align: center;\n\t\tposition: absolute;\n\t\tbottom: 0px;\n\t\t",";\n\t\tz-index: 1;\n\t\tleft: 50%;\n\t\ttransform: translateX(-50%);\n\t\twidth: 100%;\n\n\t\t.--default-error-element {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\talign-items: center;\n\t\t\tpadding: 10px;\n\t\t\tbackground-color: ",";\n\t\t\tbox-shadow: 0 -5px 5px -2px\n\t\t\t\t",";\n\n\t\t\tspan {\n\t\t\t\tmargin-bottom: 5px;\n\t\t\t}\n\n\t\t\tbutton {\n\t\t\t}\n\t\t}\n\t}\n\n\t",";\n"])),(function(e){return e.showInput?"bottom: 48px;":""}),(function(e){return e.theme&&e.theme.colors&&e.theme.colors.backgroundColor?e.theme.colors.backgroundColor:"#fff"}),(function(e){return e.theme&&e.theme.colors&&e.theme.colors.backgroundColor?e.theme.colors.backgroundColor:"#fff"}),(function(e){return e.showInput?".--ai-answer-feedback-container {\n\t\tmargin-top: 15px;\n\t\tmargin-bottom: -10px;\n\t}":".--ai-answer-feedback-container {\n\t\tmargin-top: 4px;\n\t}"})),MessagesContainer=styled("div")(_templateObject3$5||(_templateObject3$5=_taggedTemplateLiteralLoose(["\n\tmax-height: 400px;\n overflow-y: auto;\n\tpadding: 10px;\n\tdisplay: flex;\n\tflex-direction: column;\n\tmin-height: 200px;\n\n}};\n"]))),typingDots=keyframes(_templateObject4$2||(_templateObject4$2=_taggedTemplateLiteralLoose(["\n 0% {\n transform: translateY(0);\n }\n 50% {\n transform: translateY(-70%);\n }\n 100% {\n transform: translateY(0);\n }\n"]))),TypingIndicator=styled("div")(_templateObject5$2||(_templateObject5$2=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin: 5px !important;\n"]))),TypingDot=styled("div")(_templateObject6$1||(_templateObject6$1=_taggedTemplateLiteralLoose(["\n\twidth: 6px;\n\theight: 6px;\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\tmargin: 0 2px !important;\n\tanimation: "," 1s infinite;\n\t&:nth-child(2) {\n\t\tanimation-delay: 0.2s;\n\t}\n\t&:nth-child(3) {\n\t\tanimation-delay: 0.4s;\n\t}\n"])),(function(e){return e.isSender?"dark"!==e.themePreset?e.theme.colors.primaryTextColor:e.theme.colors.textColor:"dark"!==e.themePreset?e.theme.colors.borderColor:e.theme.colors.textColor}),typingDots),resetCSS=function(e){return"\n\thtml,\n\tbody,\n\tdiv,\n\tspan,\n\tapplet,\n\tobject,\n\tiframe,\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tp,\n\tblockquote,\n\tpre,\n\ta,\n\tabbr,\n\tacronym,\n\taddress,\n\tbig,\n\tcite,\n\tcode,\n\tdel,\n\tdfn,\n\tem,\n\timg,\n\tins,\n\tkbd,\n\tq,\n\ts,\n\tsamp,\n\tsmall,\n\tstrike,\n\tstrong,\n\tsub,\n\tsup,\n\ttt,\n\tvar,\n\tb,\n\tu,\n\ti,\n\tcenter,\n\tdl,\n\tdt,\n\tdd,\n\tol,\n\tul,\n\tli,\n\tfieldset,\n\tform,\n\tlabel,\n\tlegend,\n\ttable,\n\tcaption,\n\ttbody,\n\ttfoot,\n\tthead,\n\ttr,\n\tth,\n\ttd,\n\tarticle,\n\taside,\n\tcanvas,\n\tdetails,\n\tembed,\n\tfigure,\n\tfigcaption,\n\tfooter,\n\theader,\n\thgroup,\n\tmenu,\n\tnav,\n\toutput,\n\truby,\n\tsection,\n\tsummary,\n\ttime,\n\tmark,\n\taudio,\n\tvideo {\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t\tborder: 0;\n\t\tfont-size: 100%;\n\t\tfont: inherit;\n\t\tvertical-align: baseline;\n\t\toverflow-wrap: anywhere;\n\t}\n\tpre {\n\t\tmargin: 10px auto;\n\t\twhite-space: pre-wrap;\n\n\t}\n\ttable {\n\t\tmargin: 10px auto;\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\t}\n\ttr {\n\t\tborder-bottom: 1px solid #ccc;\n\t}\n\tth,\n\ttd {\n\t\ttext-align: left;\n\t\tpadding: 4px;\n\t\tborder: 1px solid;\n\t\tborder-collapse: collapse;\n\t}\n\tpre,\n\tcode {\n\t\tpadding: 0.6em 0.4em;\n\t\tbackground: "+(e.isSender&&"dark"!==e.themePreset?e.theme.colors.primaryColor:e.theme.colors.borderColor)+";\n\n\t}\n\n\tpre{\n\t\tcolor: "+(e.isSender?"dark"!==e.themePreset?e.theme.colors.primaryTextColor:e.theme.colors.textColor:e.theme.colors.primaryTextColor)+";}\n\n\tcode {\n\t\tline-height: normal;\n\n\t\tcolor: "+(e.isSender?"dark"!==e.themePreset?e.theme.colors.primaryTextColor:e.theme.colors.textColor:e.theme.colors.primaryTextColor)+";\n\t\tborder-radius: 3px;\n\t\tfont-size: 85%;\n\t\tpadding: 0.2em 0.4em;\n\t\tmargin-top: 5px;\n\t\tdisplay: inline-block;\n\t\toverflow: auto;\n\t\twidth: fit-content;\n\t\tmax-width: 100%;\n\t}\n\ncode[class*='language-'],\n\tpre[class*='language-'] {\n\t\tcolor: "+(e.isSender?"dark"!==e.themePreset?e.theme.colors.primaryTextColor:e.theme.colors.textColor:e.theme.colors.primaryTextColor)+";\n\t\ttext-shadow: none;\n\t}\n\n\tul,\n\tol {\n\t\tlist-style-position: inside;\n\t\tpadding-left: 10px;\n\n\t}\n\n\tli{\n\t\tdisplay: list-item;\n\t\tcursor: default;\n\t\tpadding: initial;\n\n\t\t&:hover{\n\t\t\tbackground-color: initial;\n\t\t}\n\t}\n\tp {\n\t\tmargin: inherit;\n\t}\n\n\t"+("dark"===e.themePreset&&"a{\n\t\tcolor: cornflowerblue\n\t\t}")+";\n"},messageBGColor=function(e){return e.isSender?"dark"!==e.themePreset?e.theme.colors.primaryColor:e.theme.colors.borderColor:"dark"!==e.themePreset?curriedLighten(.53,e.theme.colors.borderColor):e.theme.colors.backgroundColor},Message=styled("div")(_templateObject7$1||(_templateObject7$1=_taggedTemplateLiteralLoose(["\n\tbackground-color: ",";\n\tcolor: ",";\n\tborder: 1px solid\n\t\t",";\n\tpadding: 10px;\n\tborder-radius: 7px;\n\tmargin-bottom: 10px;\n\tmax-width: 80%;\n\talign-self: ",";\n\tdisplay: inline-block;\n\tposition: relative;\n\toverflow-wrap: anywhere;\n\t","\n"])),(function(e){return messageBGColor(e)}),(function(e){return e.isSender?"dark"!==e.themePreset?e.theme.colors.primaryTextColor:e.theme.colors.textColor:"dark"!==e.themePreset?e.theme.colors.borderColor:e.theme.colors.textColor}),(function(e){return"dark"===e.themePreset?"currentColor":messageBGColor(e)}),(function(e){return e.isSender?"flex-end":"flex-start"}),(function(e){return resetCSS(e)})),MessageInputContainer=styled("form")(_templateObject8$1||(_templateObject8$1=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tpadding-top: 12px;\n\talign-items: stretch;\n\tmargin-top: 10px;\n\t.ai-enter-button-wrapper {\n\t\talign-self: baseline;\n\t\theight: 41px;\n\t}\n"]))),MessageInput=styled(TextArea)(_templateObject9$1||(_templateObject9$1=_taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\tborder-radius: 5px;\n\tborder: 1px solid #ccc;\n\tbackground-color: ",";\n\tcolor: ",";\n\n\t","\n\tpadding-left: 35px;\n"])),(function(e){return"dark"===e.themePreset?e.theme.colors.borderColor:"#fff"}),(function(e){return"dark"===e.themePreset?e.theme.colors.titleColor:e.theme.colors.textColor}),(function(e){return e.enterButton&&"\n\t\t border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n\t"})),SendButton=styled(Button)(_templateObject10||(_templateObject10=_taggedTemplateLiteralLoose(["\n\tborder: none;\n\tcolor: #ffffff;\n\tcursor: pointer;\n\tfont-size: 16px;\n\tmargin-left: 8px;\n\toutline: none;\n\tpadding: 10px;\n\ttext-align: center;\n\n\t&:disabled {\n\t\tcursor: not-allowed;\n\t}\n"]))),AIFeedbackContainer=styled("div")(_templateObject11||(_templateObject11=_taggedTemplateLiteralLoose(["\n\t.--feedback-svgs-wrapper {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: flex-end;\n\t\tgap: 5px;\n\n\t\tsvg {\n\t\t\tcursor: pointer;\n\t\t\ttransition: all ease-in 0.1s;\n\t\t\t&.selected {\n\t\t\t\ttransform: scale(1.1);\n\t\t\t\tcursor: default;\n\t\t\t}\n\n\t\t\t&:hover {\n\t\t\t\ttransform: scale(1.1);\n\t\t\t}\n\t\t}\n\t}\n\n\t.--feedback-input-wrapper {\n\t\tdisplay: flex;\n\t\tgap: 7px;\n\t}\n"]))),_templateObject$l,_templateObject2$9,_templateObject3$6,_templateObject4$3,_templateObject5$3,_templateObject6$2,_templateObject7$2,fadeInFromBottom=keyframes(_templateObject$l||(_templateObject$l=_taggedTemplateLiteralLoose(["\n 0% {\n opacity: 0;\n transform: translateY(20px);\n }\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n"]))),fadeInFromTop=keyframes(_templateObject2$9||(_templateObject2$9=_taggedTemplateLiteralLoose(["\n 0% {\n opacity: 0;\n transform: translateY(-20px);\n }\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n"]))),SearchBoxAISection=styled("div")(_templateObject3$6||(_templateObject3$6=_taggedTemplateLiteralLoose(["\n\tpadding: 10px;\n\tborder-radius: 4px;\n\tmin-height: 200px;\n\tpadding-top: 20px;\n\tposition: relative;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\tbackground-color: ",";\n\tcolor: ",";\n\t.--ai-answer-error-container {\n\t\tposition: absolute;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, -50%);\n\t\t.--default-error-element {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\talign-items: center;\n\t\t\tgap: 10px;\n\t\t}\n\t}\n"])),(function(e){var t=e.themePreset,n=e.theme;return"dark"===t?"#424242":n.colors.backgroundColor}),(function(e){return e.theme.colors.textColor})),Question=styled("div")(_templateObject4$3||(_templateObject4$3=_taggedTemplateLiteralLoose(["\n\tfont-weight: bold;\n\tmargin-bottom: 5px;\n\tanimation: "," 0.5s ease-out;\n"])),fadeInFromTop),Answer=styled("div")(_templateObject5$3||(_templateObject5$3=_taggedTemplateLiteralLoose(["\n\t","\n\tposition: relative;\n\tmargin-bottom: 5px;\n\tmin-height: 100px;\n\toverflow: auto;\n\twhite-space: pre-wrap;\n\tpre {\n\t\twhite-space: pre-wrap;\n\t}\n\tcode,\n\tpre {\n\t\tdisplay: revert;\n\t}\n"])),(function(e){return resetCSS(e)})),Footer=styled("div")(_templateObject6$2||(_templateObject6$2=_taggedTemplateLiteralLoose(["\n\tcolor: #777;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tgap: 1rem;\n\tflex-wrap: wrap;\n\tanimation: "," 0.5s ease-out;\n\tpadding: 10px 0;\n\tbackground: white;\n\tbackground-color: ",";\n\tcolor: ",";\n"])),fadeInFromBottom,(function(e){var t=e.themePreset,n=e.theme;return"dark"===t?"#424242":n.colors.backgroundColor}),(function(e){return e.theme.colors.textColor})),SourceTags=styled("div")(_templateObject7$2||(_templateObject7$2=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tgap: 8px;\n\tflex-wrap: wrap;\n\t.--ai-source-tag {\n\t\tdisplay: inline-block;\n\t\tmax-width: 200px;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n"]))),ThumbsUpSvg={name:"ThumbsUpSvg",props:["clickHandler","className"],render:function(){return vue.createVNode("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",class:this.$props.className,height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",onClick:this.$props.clickHandler},[vue.createVNode("path",{d:"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"},null)])}},ThumbsDownSvg={name:"ThumbsDownSvg",props:["clickHandler","className"],render:function(){return vue.createVNode("svg",{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",class:this.$props.className,height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",onClick:this.$props.clickHandler},[vue.createVNode("path",{d:"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"},null)," "])}},AIFeedback=vue.defineComponent({name:"FeedbackComponent",props:{onFeedbackSubmit:{type:Function,default:function(){}},hideUI:{type:Boolean,default:!1},overrideState:{type:Object,default:function(){return{}}}},setup:function(e,t){var n=t.emit,r=vue.ref(!1),o=vue.ref(null),s=vue.ref(""),a=vue.ref(!1);return vue.watch((function(){return e.overrideState}),(function(e){e&&e.isRecorded&&(a.value=!0,o.value=e.feedbackType||"positive")})),e.overrideState&&e.overrideState.isRecorded&&(a.value=!0,o.value=e.overrideState.feedbackType||"positive"),{showInput:r,feedbackType:o,feedbackText:s,feedbackRecorded:a,handleButtonClick:function(e){o.value===e?(o.value=null,r.value=!1):(o.value=e,r.value=!0)},handleInputChange:function(e){s.value=e.target.value},handleSubmit:function(){n("feedback-submit","positive"===o.value,s.value),s.value="",r.value=!1,a.value=!0},handleCancel:function(){o.value=null,s.value="",r.value=!1}}},render:function(){var e=this;return this.$props.hideUI?null:this.feedbackRecorded?vue.createVNode(AIFeedbackContainer,null,{default:function(){return[vue.createVNode("div",{class:"--feedback-svgs-wrapper"},["positive"===e.feedbackType?vue.createVNode(ThumbsUpSvg,{class:"selected"},null):vue.createVNode(ThumbsDownSvg,{class:"selected"},null)])]}}):vue.createVNode(AIFeedbackContainer,null,{default:function(){return[!e.showInput&&vue.createVNode("div",{class:"--feedback-svgs-wrapper"},[vue.createVNode(ThumbsUpSvg,{class:"positive"===e.feedbackType?"selected":"",onClick:function(){return e.handleButtonClick("positive")}},null),vue.createVNode(ThumbsDownSvg,{class:"negative"===e.feedbackType?"selected":"",onClick:function(){return e.handleButtonClick("negative")}},null)]),e.showInput&&vue.createVNode("div",{class:"--feedback-input-wrapper"},[vue.createVNode(Input,{show:e.showInput,placeholder:"positive"===e.feedbackType?"What do you like about the response?":"What was the issue with the response? How can it be improved?",value:e.feedbackText,onInput:e.handleInputChange},null),vue.createVNode(Button,{primary:!0,onClick:e.handleSubmit},{default:function(){return[vue.createTextVNode("Submit")]}}),vue.createVNode(Button,{onClick:e.handleCancel},{default:function(){return[vue.createTextVNode("Cancel")]}})])]}})}}),innerText=function e(t){return null===t||"boolean"==typeof t||void 0===t?"":"number"==typeof t?t.toString():"string"==typeof t?t:Array.isArray(t)?t.reduce(reduceJsxToString,""):Object.prototype.hasOwnProperty.call(t,"children")?e(t.children):""};function reduceJsxToString(e,t){return e+innerText(t)}innerText.default=innerText;var _excluded$1=["_source"];function _isSlot$5(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var md=new Remarkable;md.set({html:!0,breaks:!0,xhtmlOut:!0,linkify:!0,linkTarget:"_blank"});var _dropdownULRef="dropdownULRef",_inputGroupRef="inputGroupRef",updateQuery$1=lib_5.updateQuery,setCustomQuery=lib_5.setCustomQuery,setDefaultQuery$1=lib_5.setDefaultQuery,recordSuggestionClick=lib_5.recordSuggestionClick,_debounce=lib_8.debounce,checkValueChange=lib_8.checkValueChange,getClassName$3=lib_8.getClassName,isEqual$4=lib_8.isEqual,getCompositeAggsQuery$1=lib_8.getCompositeAggsQuery,withClickIds=lib_8.withClickIds,getResultStats$1=lib_8.getResultStats,SearchBox=vue.defineComponent({name:"SearchBox",isTagsMode:!1,data:function(){var e=this.$props;return this.__state={currentValue:"",selectedTags:[],isOpen:!1,normalizedSuggestions:[],showAIScreen:!1,showAIScreenFooter:!1,showFeedbackComponent:!1,feedbackState:null,faqAnswer:"",faqQuestion:"",initialHits:null},this.internalComponent=e.componentId+"__internal",this.__state},inject:{theme:{from:"theme_reactivesearch"}},created:function(){this.$props.mode===constants_5$1.TAG&&(this.$options.isTagsMode=!0),this.$options.isTagsMode&&console.warn("Warning(ReactiveSearch): The `categoryField` prop is not supported when `mode` prop is set to `tag`"),this.currentValue=decodeHtml(this.selectedValue||this.value||this.defaultValue||""),this.$options.isTagsMode&&(this.currentValue=""),this.handleTextChange=_debounce(this.handleText,this.$props.debounce),this.triggerCustomQuery(this.currentValue,this.selectedCategory),this.triggerDefaultQuery(this.currentValue),this.selectedValue?this.setValue(this.selectedValue,!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0):this.$props.value?this.setValue(this.$props.value,!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0)},computed:{currentTriggerMode:function(){return this.$props.AIUIConfig&&this.$props.AIUIConfig.triggerOn||constants_9$1.MANUAL},hasCustomRenderer:function(){return hasCustomRenderer(this)},stats:function(){return getResultStats$1(this)},mergedAIQuestion:function(){return this.faqQuestion||this.AIResponse&&this.AIResponse.response&&this.AIResponse.response.question},mergedAIAnswer:function(){return this.faqAnswer||this.AIResponse&&this.AIResponse.response&&this.AIResponse.response.answer&&this.AIResponse.response.answer.text},parsedSuggestions:function(){var e=this,t=[];Array.isArray(this.suggestions)&&this.suggestions.length&&(t=[].concat(withClickIds(this.suggestions))),this.renderTriggerMessage()&&this.currentValue&&t.unshift({label:this.renderTriggerMessage(),value:"AI_TRIGGER_MESSAGE",_suggestion_type:"_internal_a_i_trigger"}),t=t.map((function(e){return e.sectionId?e:_extends({},e,{sectionId:e._suggestion_type})})).map((function(t){if(t._suggestion_type===helper_16.Document){var n=_extends({},t);n.label="For document suggestions, please implement a renderItem method to display label.";var r=e.$slots.renderItem||e.$props.renderItem;if("function"==typeof r){var o=r(n),s=innerText(o);n.value=lib$2(s)}return n}return t}));var n=[],r=t.reduce((function(e,r,o){return n.includes(r.sectionId)||(r.sectionId?(e[o]=t.filter((function(e){return e.sectionId===r.sectionId})),n.push(r.sectionId)):e[o]=r),e}),{});return Object.values(r)}},props:{autoFocus:Q.bool,autosuggest:Q.bool.def(!0),beforeValueChange:types.func,className:Q.string.def(""),clearIcon:types.children,componentId:types.stringRequired,compoundClause:types.compoundClause,customHighlight:types.func,customQuery:types.func,defaultQuery:types.func,dataField:Q.oneOfType([Q.string,Q.shape({field:Q.string,weight:Q.number}),Q.arrayOf(Q.string),Q.arrayOf({field:Q.string,weight:Q.number})]),aggregationField:types.string,aggregationSize:Q.number,size:Q.number,debounce:Q.number.def(0),defaultValue:types.string,excludeFields:types.excludeFields,value:Q.oneOfType([Q.arrayOf(Q.string),types.value]),defaultSuggestions:types.suggestions,enableSynonyms:Q.bool.def(!0),enableQuerySuggestions:Q.bool.def(!1),enablePopularSuggestions:Q.bool.def(!1),enableRecentSuggestions:Q.bool.def(!1),enableFAQSuggestions:Q.bool.def(!1),enableDocumentSuggestions:Q.bool.def(!1),documentSuggestionsConfig:Q.shape({size:Q.number,from:Q.number,maxChars:Q.number}),FAQSuggestionsConfig:Q.shape({sectionLabel:Q.string,size:Q.number}),fieldWeights:types.fieldWeights,filterLabel:types.string,fuzziness:types.fuzziness,highlight:Q.bool,highlightField:types.stringOrArray,icon:types.children,iconPosition:Q.oneOf(["left","right"]).def("left"),includeFields:types.includeFields,innerClass:types.style,innerRef:Q.string.def("searchInputField"),render:types.func,renderNoSuggestion:types.title,renderError:types.title,placeholder:Q.string.def("Search"),queryFormat:Q.oneOf(["and","or"]).def("or"),react:types.react,showClear:Q.bool.def(!0),showDistinctSuggestions:Q.bool.def(!0),showFilter:Q.bool.def(!0),showIcon:Q.bool.def(!0),title:types.title,URLParams:Q.bool.def(!1),strictSelection:Q.bool.def(!1),nestedField:types.string,enablePredictiveSuggestions:Q.bool.def(!1),recentSearchesIcon:Q.any,popularSearchesIcon:Q.any,showVoiceSearch:Q.bool.def(!1),getMicInstance:types.func,renderMic:types.func,distinctField:types.string,distinctFieldConfig:types.props,focusShortcuts:Q.arrayOf(Q.oneOfType([Q.string,Q.number])).def(["/"]),showFocusShortcutsIcon:Q.bool.def(!0),addonBefore:Q.any,addonAfter:Q.any,showSuggestionsFooter:Q.bool.def(!0),expandSuggestionsContainer:Q.bool.def(!0),renderSuggestionsFooter:Q.func,index:Q.string,popularSuggestionsConfig:Q.object,recentSuggestionsConfig:Q.object,featuredSuggestionsConfig:Q.shape({maxSuggestionsPerSection:Q.number,sectionsOrder:Q.arrayOf(Q.string)}),customEvents:Q.object,applyStopwords:Q.bool,customStopwords:types.stringArray,onData:types.func,renderItem:types.func,enterButton:Q.bool.def(!1),renderEnterButton:Q.any,mode:Q.oneOf(["select","tag"]).def("select"),renderSelectedTags:Q.any,searchboxId:Q.string,endpoint:types.endpointConfig,enableAI:Q.bool.def(!1),AIConfig:types.AIConfig,AIUIConfig:types.AIUIConfig},mounted:function(){var e=this;this.listenForFocusShortcuts();var t=this.$refs[_dropdownULRef];if(t){t.addEventListener("scroll",(function(){var n=t.scrollTop;e.lastScrollTop=n,n<e.lastScrollTop&&(clearInterval(e.scrollTimerRef),e.isUserScrolling=!0),e.lastScrollTop=n}))}},updated:function(){this.$props.mode===constants_5$1.SELECT&&!0===this.$options.isTagsMode?(this.$options.isTagsMode=!1,this.selectedTags=[]):this.$props.mode===constants_5$1.TAG&&!1===this.$options.isTagsMode&&(this.$options.isTagsMode=!0)},watch:{AIResponse:function(e){if(e&&this.$props.AIUIConfig&&this.$props.AIUIConfig.showSourceDocuments&&e.response&&e.response.answer&&Array.isArray(e.response.answer.documentIds)){this.sourceDocIds=e.response.answer.documentIds;var t=helper_2(constants_8$1)&&helper_2(constants_8$1)[this.$props.componentId];t&&t.meta&&t.meta.hits&&t.meta.hits.hits&&(this.initialHits=t.meta.hits.hits),this.showAIScreenFooter||(this.showAIScreenFooter=!0)}},dataField:function(e,t){isEqual$4(e,t)||this.triggerCustomQuery(this.$data.currentValue)},fieldWeights:function(){this.triggerCustomQuery(this.$data.currentValue)},fuzziness:function(){this.triggerCustomQuery(this.$data.currentValue)},queryFormat:function(){this.triggerCustomQuery(this.$data.currentValue)},defaultValue:function(e){this.setValue(e,!0,this.$props)},value:function(e,t){isEqual$4(e,t)||this.setValue(e,!0,this.$props,""===e?lib_7.CLEAR_VALUE:void 0,!1)},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.triggerDefaultQuery(this.$data.currentValue)},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.triggerCustomQuery(this.$data.currentValue)},suggestions:function(e){var t=[];Array.isArray(e)&&e.length?t=[].concat(withClickIds(e)):Array.isArray(this.$props.defaultSuggestions)&&this.$props.defaultSuggestions.length&&(t=[].concat(withClickIds(this.$props.defaultSuggestions))),this.normalizedSuggestions=t,this.handleTextAreaHeightChange()},selectedValue:function(e,t){if(!isEqual$4(e,t)&&(this.$options.isTagsMode?!isEqual$4(this.$data.selectedTags,e):this.$data.currentValue!==e)){!e&&this.$data.currentValue&&this.onValueSelectedHandler("",lib_7.CLEAR_VALUE),this.$options.isTagsMode&&(this.selectedTags=[]);var n=e?void 0:lib_7.CLEAR_VALUE;this.$options.isTagsMode&&(n=lib_7.SUGGESTION_SELECT),void 0===this.$props.value?this.setValue(e,""===e,this.$props,n,!1):this.setValue(e||"",!0,this.$props,n)}},focusShortcuts:function(){this.listenForFocusShortcuts()},rawData:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:e,aggregationData:this.aggregationData,loading:this.isLoading,error:this.isError}),e&&e.hits&&e.hits.hits&&(this.initialHits=e.hits.hits)},aggregationData:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:e,loading:this.isLoading,error:this.isError})},loading:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:this.aggregationData,loading:e,error:this.isError})},error:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:this.aggregationData,loading:this.isLoading,error:e})},debounce:function(e,t){isEqual$4(e,t)||(this.handleTextChange=_debounce(this.handleText,e))},isAITyping:function(e,t){var n=this,r=function(){if(!n.isUserScrolling){var e=n.$refs[_dropdownULRef];e&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}};!e&&t?(clearInterval(this.scrollTimerRef),this.showAIScreenFooter=!0,this.$props.AIUIConfig&&"boolean"==typeof this.$props.AIUIConfig.showFeedback&&!this.$props.AIUIConfig.showFeedback||(this.showFeedbackComponent=!0),setTimeout((function(){r()}),500)):e&&(this.scrollTimerRef=setInterval((function(){r()}),2e3))},showAIScreen:function(e){var t;e?null!=(t=this.$refs)&&t[this.$props.innerRef]&&this.$refs[this.$props.innerRef].$el&&this.$refs[this.$props.innerRef].$el.blur():(this.feedbackState=null,this.showFeedbackComponent=!1)},currentValue:function(){this.$nextTick(this.handleTextAreaHeightChange)}},methods:{renderTriggerMessage:function(){if(this.$props.enableAI){if(this.$props.AIUIConfig&&this.$props.AIUIConfig.renderTriggerMessage)return this.$props.AIUIConfig.renderTriggerMessage;if(this.$slots.renderTriggerMessage)return this.$slots.renderTriggerMessage();if(!(this.currentTriggerMode!==constants_9$1.MANUAL||this.$props.AIUIConfig&&this.$props.AIUIConfig.askButton))return"Click to trigger AIAnswer"}return null},handleText:function(e,t){t===lib_7.CLEAR_VALUE?(this.triggerCustomQuery(e),this.triggerDefaultQuery(e)):this.$props.autosuggest?this.triggerDefaultQuery(e):this.$props.enterButton||this.triggerCustomQuery(e)},getComponent:function(e){void 0===e&&(e={});var t=this.$data.currentValue,n={error:this.error,loading:this.isLoading,downshiftProps:e,data:this.normalizedSuggestions,rawData:this.rawData,value:t,resultStats:this.stats,AIData:{question:this.mergedAIQuestion,answer:this.mergedAIAnswer,documentIds:this.AIResponse&&this.AIResponse.response&&this.AIResponse.response.answer&&this.AIResponse.response.answer.documentIds||[],showAIScreen:this.showAIScreen,sources:this.getAISourceObjects(),isAILoading:this.isAIResponseLoading,AIError:this.AIResponseError}};return vue.createVNode("div",{ref:_dropdownULRef},[getComponent(n,this)])},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=helper_39(this.$props);return e&&(t.aggs=getCompositeAggsQuery$1({props:this.$props,showTopHits:!0}).aggs),t},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.setValue(e,!0),this.onValueSelectedHandler(e,lib_7.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o,s,a){var i=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0),void 0===s&&(s=void 0),void 0===a&&(a=!0);checkValueChange(n.componentId,e,n.beforeValueChange,(function(){if(!i.$options.isTagsMode||!isEqual$4(e,i.selectedTags)){if(i.$options.isTagsMode&&r===lib_7.SUGGESTION_SELECT){if(Array.isArray(i.selectedTags)&&i.selectedTags.length){if("string"==typeof e&&i.selectedTags.includes(e))return void(i.isOpen=!1);i.selectedTags=[].concat(i.selectedTags),"string"==typeof e&&e?i.selectedTags.push(e):Array.isArray(e)&&!isEqual$4(i.selectedTags,e)&&(i.selectedTags=e)}else e&&(i.selectedTags="string"!=typeof e?e:[].concat(e));i.currentValue=""}else i.currentValue=decodeHtml(e);var l=e;i.$options.isTagsMode&&r===lib_7.SUGGESTION_SELECT&&(l=Array.isArray(i.selectedTags)&&i.selectedTags.length?i.selectedTags:void 0),(i.faqAnswer||i.faqQuestion)&&""===e&&(i.faqAnswer="",i.faqQuestion="",i.showAIScreen=!1),t?(i.$props.autosuggest&&(o&&(i.isOpen=!1),"string"==typeof i.currentValue&&i.triggerDefaultQuery(i.currentValue,n.enableAI&&i.currentTriggerMode===constants_9$1.QUESTION&&i.currentValue.endsWith("?")?{enableAI:!0}:{},a)),n.strictSelection?r===lib_7.SUGGESTION_SELECT||(i.$options.isTagsMode?0===i.selectedTags.length:""===e)?i.triggerCustomQuery(l,i.$options.isTagsMode?void 0:s,a):i.setValue("",!0):void 0!==n.value&&r!==lib_7.SUGGESTION_SELECT&&r!==lib_7.CLEAR_VALUE||(i.showAIScreen=!1,i.triggerCustomQuery(l,i.$options.isTagsMode?void 0:s,a))):i.handleTextChange(e,r),i.$emit("valueChange",e),i.$emit("value-change",e)}}))},triggerDefaultQuery:function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n=!0),this.$props.autosuggest){var r="string"!=typeof e?this.currentValue:e,o=SearchBox.defaultQuery(r,this.$props);if(this.defaultQuery){var s=this.defaultQuery(r,this.$props)||{};s.query&&(o=s.query),updateDefaultQuery(this.$props.componentId,this.setDefaultQuery,this.$props,r)}this.updateQuery({componentId:this.internalComponent,query:o,value:r,componentType:constants_1$1.searchBox,meta:t},n)}},triggerCustomQuery:function(e,t,n){void 0===t&&(t=void 0),void 0===n&&(n=!0);var r=this.$props,o=r.customQuery,s=r.filterLabel,a=r.showFilter,i=r.URLParams,l="string"!=typeof e?this.$data.currentValue:e;this.$options.isTagsMode&&(l=e);var u=SearchBox.defaultQuery(l+(t?" in "+t:""),this.$props);if(o){var c=o(l,this.$props).query;c&&(u=c),updateCustomQuery(this.$props.componentId,this.setCustomQuery,this.$props,l)}this.updateQuery({componentId:this.$props.componentId,query:u,value:l,label:s,showFilter:a,URLParams:i,componentType:constants_1$1.searchBox,category:t},n)},handleFocus:function(e){this.$props.autosuggest&&(this.isOpen=!0),this.$emit("focus",e)},handleVoiceResults:function(e){var t,n=e.results;n&&n[0]&&n[0].isFinal&&n[0][0]&&n[0][0].transcript&&n[0][0].transcript.trim()&&(this.setValue(n[0][0].transcript.trim(),!0),null==(t=this.$refs)||null==(t=t[this.$props.innerRef])||null==(t=t.$el)||t.focus())},triggerQuery:function(e){var t=e.isOpen,n=void 0===t?void 0:t,r=e.customQuery,o=void 0===r||r,s=e.defaultQuery,a=void 0===s||s,i=e.value,l=void 0===i?void 0:i,u=e.categoryValue,c=void 0===u?void 0:u;"boolean"==typeof n&&(this.isOpen=n),o&&this.triggerCustomQuery(l,c),a&&this.triggerDefaultQuery(l)},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.normalizedSuggestions.find((function(t){return t._click_id===e}));r&&r.source&&r.source._id&&(n=r.source._id)}this.recordSuggestionClick(e,n)},clearValue:function(){this.setValue("",!1,this.$props,this.$options.isTagsMode?void 0:lib_7.CLEAR_VALUE,!1),this.onValueSelectedHandler("",this.$options.isTagsMode?void 0:lib_7.CLEAR_VALUE),this.showAIScreen=!1,this.isOpen=!1},handleKeyDown:function(e,t){void 0===t&&(t=null),"Enter"===e.key&&(!1===this.$props.autosuggest?this.enterButtonOnClick():null===t&&(this.setValue(e.target.value,!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0,!(this.$props.enableAI&&this.currentTriggerMode===constants_9$1.QUESTION&&e.target.value.endsWith("?"))),this.$props.enableAI&&!this.showAIScreen&&this.currentTriggerMode===constants_9$1.QUESTION&&e.target.value.endsWith("?")&&(this.showAIScreen=!0,this.isOpen=!0),this.onValueSelectedHandler(e.target.value,lib_7.ENTER_PRESS))),this.$emit("keyDown",e,this.triggerQuery),this.$emit("key-down",e,this.triggerQuery)},onInputChange:function(e){var t=this,n=e.target.value;!this.$data.isOpen&&this.$props.autosuggest&&(this.isOpen=!0),this.showAIScreen&&(this.showAIScreen=!1),void 0===this.$props.value?this.setValue(n,""===n,this.$props,void 0,!1):this.$emit("change",n,(function(e){var r=e.isOpen;return t.triggerQuery({defaultQuery:!0,customQuery:!0,value:n,isOpen:r})}),e)},handleFeaturedSuggestionClicked:function(e){try{var t;if(e.action===helper_15.NAVIGATE){var n=JSON.parse(e.subAction),r=n.target,o=void 0===r?"_self":r,s=n.link,a=void 0===s?"/":s;"undefined"!=typeof window&&window.open(a,o)}if(e.action===helper_15.FUNCTION){var i=e.subAction.match(/function\s*\(.*\)(.|\n)*/),l=i&&i[0];new Function("return "+l)()(e,this.$data.currentValue,this.$props.customEvents)}e.action===helper_15.SELECT&&(this.setValue(e.value,!0,this.$props,this.$options.isTagsMode.current?lib_7.SUGGESTION_SELECT:lib_7.ENTER_PRESS,!1),this.onValueSelectedHandler(e.value,lib_7.SUGGESTION_SELECT)),null==(t=this.$refs)||null==(t=t[this.$props.innerRef])||null==(t=t.el)||t.blur()}catch(t){console.error('Error: There was an error parsing the subAction for the featured suggestion with label, "'+e.label+'"',t)}},onSuggestionSelected:function(e){var t=this,n=this.$props.value;if(e&&e._suggestion_type===helper_16.FAQ)return this.currentValue=e.value,this.faqAnswer=e._answer,this.faqQuestion=e.value,this.isOpen=!0,this.showAIScreen=!0,void 0!==n&&this.$emit("change",e.value,(function(){})),void this.onValueSelectedHandler(e.value);if(e&&"_internal_a_i_trigger"===e._suggestion_type)return this.showAIScreen=!0,void this.askButtonOnClick();if(e._suggestion_type===helper_16.Featured)return this.handleFeaturedSuggestionClicked(e),void(this.$props.enableAI?this.showAIScreen=!0:this.isOpen=!1);if(this.triggerClickAnalytics(e._click_id),void 0===n)this.setValue(e.value,!0,this.$props,lib_7.SUGGESTION_SELECT,!1,e._category);else{var r=e.value;if(this.$options.isTagsMode){if(r=Array.isArray(this.selectedTags)?[].concat(this.selectedTags):[],this.selectedTags.includes(e.value))return void(this.isOpen=!1);r.push(e.value)}this.setValue(r,!0,this.$props,lib_7.SUGGESTION_SELECT,!1,e._category),this.$emit("change",r,(function(n){var o=n.isOpen;return t.triggerQuery(_extends({isOpen:o,value:r},!t.$options.isTagsMode&&{categoryValue:e._category}))}))}this.onValueSelectedHandler(e.value,lib_7.SUGGESTION_SELECT,e.source),this.$props.enableAI?this.currentTriggerMode===constants_9$1.QUESTION&&e.value.endsWith("?")&&(this.showAIScreen=!0):this.isOpen=!1},onValueSelectedHandler:function(e){void 0===e&&(e=this.$data.currentValue);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.$emit.apply(this,["valueSelected",e].concat(n)),this.$emit.apply(this,["value-selected",e].concat(n))},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){return"dark"===this.themePreset?e===t?"#555":"#424242":e===t?"#eee":"#fff"},renderIcon:function(){return this.$props.showIcon?this.$props.icon||vue.createVNode(SearchSvg,null,null):null},renderErrorComponent:function(e){var t=this;void 0===e&&(e=!1);var n=this.$slots.renderError||this.$props.renderError;return e&&this.showAIScreen&&this.AIResponseError&&!this.isAIResponseLoading?n?vue.createVNode("div",{class:"--ai-answer-error-container "+(getClassName$3(this.$props.innerClass,"ai-error")||"")},[n(this.AIResponseError)]):vue.createVNode("div",{class:"--ai-answer-error-container "+(getClassName$3(this.$props.innerClass,"ai-error")||"")},[vue.createVNode("div",{class:"--default-error-element"},[vue.createVNode("span",null,["string"==typeof this.AIResponseError?this.AIResponseError:this.AIResponseError.message?this.AIResponseError.message:"There was an error in generating the response.",this.AIResponseError.code?"Code:\n\t\t\t\t\t\t\t"+this.AIResponseError.code:""])])]):this.error&&n&&this.$data.currentValue&&!this.isLoading?vue.createVNode(SuggestionWrapper,{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset},{default:function(){return[isFunction(n)?n(t.error):n]}}):null},renderCancelIcon:function(){return this.$props.showClear?this.$props.clearIcon||vue.createVNode(CancelSvg,null,null):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$props.innerClass,n=this.$slots.renderNoSuggestion||this.$props.renderNoSuggestion,r=this.$slots.renderError||this.$props.renderError,o=this.$data,s=o.isOpen,a=o.currentValue;return!n||!s||e.length||this.isLoading||!a||r&&this.error?null:vue.createVNode(SuggestionWrapper,{innerClass:t,themePreset:this.themePreset,theme:this.theme,innerClassName:"noSuggestion"},{default:function(){return"function"==typeof n?n(a):n}})},renderInputAddonBefore:function(){var e,t=this.$slots.addonBefore;return t?vue.createVNode(InputAddon,{class:"addon-before"},_isSlot$5(e=t())?e:{default:function(){return[e]}}):null},renderInputAddonAfter:function(){var e,t=this.$slots.addonAfter;return t?vue.createVNode(InputAddon,{class:"addon-after"},_isSlot$5(e=t())?e:{default:function(){return[e]}}):null},enterButtonOnClick:function(){this.showAIScreen=!1,this.triggerQuery({isOpen:!1,value:this.currentValue,customQuery:!0})},suggestionsFooter:function(){return"function"==typeof renderSuggestionsFooter?this.$props.renderSuggestionsFooter():vue.createVNode(AutosuggestFooterContainer,null,{default:function(){return[vue.createVNode("div",null,[vue.createTextVNode("↑↓ Navigate")]),vue.createVNode("div",null,[vue.createTextVNode("↩ Go")])]}})},renderEnterButtonElement:function(){var e=this,t=this.$props,n=t.enterButton,r=t.innerClass,o=this.$slots.renderEnterButton;if(n){return vue.createVNode("div",{class:"enter-button-wrapper"},[o?o(e.enterButtonOnClick):vue.createVNode(Button,{class:"enter-btn "+getClassName$3(r,"enter-button"),primary:!0,onClick:e.enterButtonOnClick},{default:function(){return[vue.createTextVNode("Search")]}})])}return null},renderShortcut:function(){if(this.$props.focusShortcuts&&this.$props.focusShortcuts.length){var e=this.$props.focusShortcuts[0];return(e=(e=(e=(e=(e=e.toLowerCase()).replace("shift","⬆️")).replace("command","cmd")).replace("control","ctrl")).replace("option","alt")).toUpperCase()}return"/"},renderLeftIcons:function(){var e,t=this,n=this.$props,r=n.iconPosition,o=n.showIcon;return vue.createVNode("div",null,[vue.createVNode(IconGroup,{groupPosition:"left"},{default:function(){return["left"===r&&o&&vue.createVNode(IconWrapper,{onClick:t.handleSearchIconClick},_isSlot$5(e=t.renderIcon())?e:{default:function(){return[e]}})]}})])},renderRightIcons:function(){var e,t,n,r=this,o=this.$props,s=o.iconPosition,a=o.showClear,i=o.innerClass,l=o.getMicInstance,u=o.showVoiceSearch,c=o.showIcon,p=o.showFocusShortcutsIcon,d=this.$slots.renderMic||this.$props.renderMic,h=this.$data.currentValue;return vue.createVNode("div",null,[vue.createVNode(IconGroup,{groupPosition:"right"},{default:function(){return[h&&a&&vue.createVNode(IconWrapper,{onClick:r.clearValue,showIcon:c,isClearIcon:!0},_isSlot$5(e=r.renderCancelIcon())?e:{default:function(){return[e]}}),p&&vue.createVNode(ButtonIconWrapper,{onClick:function(e){return r.focusSearchBox(e)}},_isSlot$5(t=r.renderShortcut())?t:{default:function(){return[t]}}),u&&vue.createVNode(Mic,{getInstance:l,render:d,handleResult:r.handleVoiceResults,className:getClassName$3(i,"mic")||null},null),"right"===s&&c&&vue.createVNode(IconWrapper,{onClick:r.handleSearchIconClick},_isSlot$5(n=r.renderIcon())?n:{default:function(){return[n]}})]}})])},focusSearchBox:function(e){var t,n=e.target||e.srcElement,r=n.tagName;n.isContentEditable||"INPUT"===r||"SELECT"===r||"TEXTAREA"===r||null==(t=this.$refs)||null==(t=t[this.$props.innerRef])||null==(t=t.$el)||t.focus()},listenForFocusShortcuts:function(){var e=this,t=this.$props.focusShortcuts,n=void 0===t?["/"]:t;isEmpty(n)||(hotkeys(parseFocusShortcuts(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),hotkeys("*",(function(t){var r=extractModifierKeysFromFocusShortcuts(n);if(0!==r.length)for(var o=0;o<r.length;o+=1){if(hotkeys[r[o]]){e.focusSearchBox(t);break}}})))},onAutofillClick:function(e){var t=e.value;this.isOpen=!0,this.currentValue=decodeHtml(t),this.triggerDefaultQuery(t)},renderActionIcon:function(e){var t=this;return e._suggestion_type===helper_16.Featured?e.action===helper_15.FUNCTION?vue.createVNode(AutoFillSvg,{style:{transform:"rotate(135deg)",pointerEvents:"none"}},null):null:e._category?null:vue.createVNode(AutoFillSvg,{onClick:function(n){n.stopPropagation(),t.onAutofillClick(e)}},null)},renderTag:function(e){var t=this,n=this.$props.innerClass;return vue.createVNode(TagItem,{class:getClassName$3(n,"selected-tag")||""},{default:function(){return[vue.createVNode("span",null,[e]),vue.createVNode("span",{role:"img","aria-label":"delete-tag",class:"close-icon",onClick:function(){return t.clearTag(e)}},[vue.createVNode(CancelSvg,null,null)])]}})},clearAllTags:function(){this.selectedTags=[],this.setValue("",!0,this.$props,lib_7.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},clearTag:function(e){this.selectedTags=[].concat(this.selectedTags.filter((function(t){return t!==e}))),this.setValue("",!0,this.$props,lib_7.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},renderTags:function(){var e=this;if(!Array.isArray(this.selectedTags))return null;var t=[].concat(this.selectedTags),n=t.length>1,r=this.$slots.renderSelectedTags||this.$props.renderSelectedTags;return r?r({values:this.selectedTags,handleClear:this.clearTag,handleClearAll:this.clearAllTags}):vue.createVNode(TagsContainer,null,{default:function(){return[t.map((function(t){return e.renderTag(t)})),n&&vue.createVNode(TagItem,{class:getClassName$3(e.$props.innerClass,"selected-tag")||""},{default:function(){return[vue.createVNode("span",null,[vue.createTextVNode("Clear All")]),vue.createVNode("span",{role:"img","aria-label":"delete-tag",class:"close-icon",onClick:e.clearAllTags},[vue.createVNode(CancelSvg,null,null)])]}})]}})},getAISourceObjects:function(){var e=this,t=[];if(!this.AIResponse)return t;var n=this.AIResponse&&this.AIResponse.response&&this.AIResponse.response.answer&&this.AIResponse.response.answer.documentIds||[];return this.initialHits?n.forEach((function(n){var r=e.initialHits.find((function(e){return e._id===n}))||{};if(r){var o=r._source,s=void 0===o?{}:o,a=_objectWithoutPropertiesLoose(r,_excluded$1);t.push(_extends({},a,s))}})):t.push.apply(t,n.map((function(e){return{_id:e}}))),t},renderAIScreenLoader:function(){var e=this.$props.AIUIConfig,t=((void 0===e?{}:e)||{}).loaderMessage;return t||(this.$slots.AILoaderMessage?this.$slots.AILoaderMessage():vue.createVNode(HorizontalSkeletonLoader,null,null))},renderAIScreenFooter:function(){var e,t=this,n=this.$props.AIUIConfig,r=(void 0===n?{}:n)||{},o=r.showSourceDocuments,s=void 0!==o&&o,a=r.onSourceClick,i=void 0===a?function(){}:a;return s&&this.showAIScreenFooter&&this.AIResponse&&this.AIResponse.response&&this.AIResponse.response.answer&&this.AIResponse.response.answer.documentIds&&this.AIResponse.response.answer.documentIds.length?vue.createVNode(Footer,{themePreset:this.$props.themePreset},{default:function(){return[vue.createTextVNode("Summary generated using the following sources:")," ",vue.createVNode(SourceTags,null,_isSlot$5(e=t.getAISourceObjects().map((function(e){var n,r;return vue.createVNode(Button,{class:"--ai-source-tag "+(getClassName$3(t.$props.innerClass,"ai-source-tag")||""),info:!0,onClick:function(){return i&&i(e)}},_isSlot$5((r=e,n=t.$props.AIUIConfig&&t.$props.AIUIConfig.renderSourceDocument?t.$props.AIUIConfig.renderSourceDocument(r):t.$slots.renderSourceDocument?t.$slots.renderSourceDocument(r):r._id))?n:{default:function(){return[n]}})})))?e:{default:function(){return[e]}})]}}):null},renderAIScreen:function(){var e=this,t=this.$props.renderAIAnswer||this.$slots.renderAIAnswer;return t?t({question:this.mergedAIQuestion,answer:this.mergedAIAnswer,documentIds:this.AIResponse&&this.AIResponse.response&&this.AIResponse.response.answer&&this.AIResponse.response.answer.documentIds||[],loading:this.isAIResponseLoading||this.isLoading,sources:this.getAISourceObjects(),error:this.AIResponseError}):this.isAIResponseLoading||this.isLoading?this.renderAIScreenLoader():vue.createVNode("div",null,[vue.createVNode(Answer,{innerHTML:md.render(this.mergedAIAnswer)},null),this.renderAIScreenFooter(),this.showFeedbackComponent&&vue.createVNode("div",{class:""+(getClassName$3(this.$props.innerClass,"ai-feedback")||"")},[vue.createVNode(AIFeedback,{overrideState:this.feedbackState,hideUI:this.isAIResponseLoading||this.isLoading||!this.sessionIdFromStore,key:this.sessionIdFromStore,onFeedbackSubmit:function(t,n){e.feedbackState={isRecorded:!0,feedbackType:t?"positive":"negative"},e.recordAISessionUsefulness(e.sessionIdFromStore,{useful:t,reason:n})}},null)])])},handleTextAreaHeightChange:function(){var e,t,n=null==(e=this.$refs[this.$props.innerRef])?void 0:e.$el,r=null==(t=this.$refs[_inputGroupRef])?void 0:t.$el;if(n){n.style.height="42px";var o=4*parseInt(getComputedStyle(n).lineHeight,10),s=Math.min(n.scrollHeight,o);n.style.height=s+"px",n.style.overflowY=s===o?"auto":"hidden";var a=this.$refs[_dropdownULRef];a&&(a.style.top=""+n.style.height),r&&(r.style.height=""+n.style.height)}},askButtonOnClick:function(){this.showAIScreen=!0,this.isOpen=!0,this.triggerDefaultQuery(this.currentValue,{enableAI:!0})},renderAskButtonElement:function(){var e=this,t=this.$props,n=t.AIUIConfig,r=t.innerClass,o=(n||{}).askButton,s=this.$slots.renderAskButton;if(o){return vue.createVNode("div",{class:"enter-button-wrapper"},[s?s(e.askButtonOnClick):vue.createVNode(Button,{class:"enter-btn "+getClassName$3(r,"ask-button"),info:!0,onClick:e.askButtonOnClick},{default:function(){return[vue.createTextVNode("Ask")]}})])}return null}},render:function(){var e=this,t=this.$props.expandSuggestionsContainer,n=this.$slots,r=n.recentSearchesIcon,o=n.popularSearchesIcon,s=Array.isArray(this.parsedSuggestions)&&this.parsedSuggestions.length,a=this.$slots.renderItem||this.$props.renderItem;return vue.createVNode(Container,{class:this.$props.className},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$3(e.$props.innerClass,"title")||""},{default:function(){return[e.$props.title]}}),e.$props.autosuggest?vue.createVNode(Downshift,{id:e.$props.componentId+"-downshift",handleChange:e.onSuggestionSelected,handleMouseup:e.handleStateChange,isOpen:e.$data.isOpen},{default:function(n){var i=n.getInputEvents,l=n.getInputProps,u=n.getItemProps,c=n.getItemEvents,p=n.isOpen,d=n.highlightedIndex,h=n.setHighlightedIndex,f=function(){var t=function(e,t,n){switch(e){case helper_16.Recent:return r;case helper_16.Popular:return o;case helper_16.Featured:return t.icon?function(){return vue.createVNode("div",{style:{display:"flex"},innerHTML:lib$2(t.icon)},null)}:t.iconURL?function(){return vue.createVNode("img",{style:{maxWidth:"30px"},src:lib$2(t.iconURL),alt:t.value},null)}:function(){return vue.createVNode("span",{style:{display:"inline-block",height:"30px",width:n?"30px":0}},null)};default:return null}},n=0;return vue.createVNode("div",null,[e.hasCustomRenderer&&e.getComponent({isOpen:p,getItemProps:u,getItemEvents:c,highlightedIndex:d}),e.renderErrorComponent(),!e.hasCustomRenderer&&p&&s?vue.createVNode("ul",{class:suggestions$1(e.themePreset,e.theme)+" "+getClassName$3(e.$props.innerClass,"list")+" "+searchboxSuggestions(e.themePreset,e.theme)+"\n\t\t\t\t\t\t\t\t\t\t\t\t\t",ref:_dropdownULRef},[e.showAIScreen&&vue.createVNode(SearchBoxAISection,{themePreset:e.$props.themePreset},{default:function(){return[e.renderAIScreen()," ",e.renderErrorComponent(!0)]}}),!e.showAIScreen&&e.parsedSuggestions.map((function(r,o){var s=n+o;if(Array.isArray(r)){var i=lib$2(r[0].sectionLabel);return n+=r.length-1,vue.createVNode("div",{key:"section-"+o,class:"section-container"},[i?vue.createVNode("div",{class:"section-header "+getClassName$3(e.$props.innerClass,"section-label"),key:""+r[0].sectionId,innerHTML:i},null):null,vue.createVNode("ul",{class:"section-list"},[r.map((function(n,o){var i=r.some((function(e){return e.icon||e.iconURL}));return a?vue.createVNode("li",vue.mergeProps(u({item:n}),babelHelperVueTransformOn(c({item:n})),{key:n._id+"_"+s+"_"+o,style:{justifyContent:"flex-start",alignItems:"center"},class:d===s+o?"active-li-item "+getClassName$3(e.$props.innerClass,"active-suggestion-item"):"li-item "+getClassName$3(e.$props.innerClass,"suggestion-item")}),[a(n)]):"_internal_a_i_trigger"===n._suggestion_type?vue.createVNode("li",vue.mergeProps(u({item:n}),babelHelperVueTransformOn(c({item:n})),{key:n._id+"_"+s+"_"+o,style:{justifyContent:"flex-start",alignItems:"center"},class:d===s+o?"active-li-item "+getClassName$3(e.$props.innerClass,"active-suggestion-item"):"li-item "+getClassName$3(e.$props.innerClass,"suggestion-item")}),[vue.createVNode(SuggestionItem,{currentValue:e.currentValue,suggestion:n},null)]):vue.createVNode("li",vue.mergeProps(u({item:n}),babelHelperVueTransformOn(c({item:n})),{key:n._id+"_"+s+"_"+o,style:{justifyContent:"flex-start",alignItems:"center"},class:d===s+o?"active-li-item "+getClassName$3(e.$props.innerClass,"active-suggestion-item"):"li-item "+getClassName$3(e.$props.innerClass,"suggestion-item")}),[vue.createVNode("div",{style:{padding:"0 10px 0 0",display:"flex"}},[vue.createVNode(CustomSvg,{key:n._suggestion_type+"-"+o,className:getClassName$3(e.$props.innerClass,n._suggestion_type+"-search-icon")||null,icon:t(n._suggestion_type,n,i),type:n._suggestion_type+"-search-icon"},null)]),vue.createVNode(SuggestionItem,{currentValue:e.currentValue,suggestion:n},null),e.renderActionIcon(n)])}))])])}return vue.createVNode("div",null,[vue.createTextVNode("No suggestions")])})),!e.showAIScreen&&e.parsedSuggestions.length&&e.$props.showSuggestionsFooter?e.suggestionsFooter():null]):e.renderNoSuggestions(e.normalizedSuggestions)])};return vue.createVNode("div",{class:suggestionsContainer},[vue.createVNode(InputGroup,{searchBox:!0,ref:_inputGroupRef,isOpen:e.$data.isOpen},{default:function(){return[vue.createVNode(Actions,null,{default:function(){return[e.renderInputAddonBefore(),e.renderLeftIcons()]}}),vue.createVNode(InputWrapper,null,{default:function(){return[vue.createVNode(TextArea,vue.mergeProps(babelHelperVueTransformOn(i({onInput:e.onInputChange,onBlur:function(t){e.$emit("blur",t,e.triggerQuery)},onFocus:e.handleFocus,onKeyPress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},onKeyDown:function(t){return e.handleKeyDown(t,d)},onKeyUp:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)},onClick:function(){h(null)}})),{searchBox:!0,isOpen:e.$data.isOpen,id:e.$props.componentId+"-input",ref:e.$props.innerRef,class:getClassName$3(e.$props.innerClass,"input"),placeholder:e.$props.placeholder,autoFocus:e.$props.autoFocus},l({value:null===e.$data.currentValue?"":e.$data.currentValue}),{themePreset:e.themePreset,autocomplete:"off"}),null),!t&&f()]}}),vue.createVNode(Actions,null,{default:function(){return[e.renderRightIcons(),e.renderInputAddonAfter(),e.renderAskButtonElement(),e.renderEnterButtonElement()]}})]}}),t&&f(),e.renderTags()])}}):vue.createVNode("div",{class:suggestionsContainer},[vue.createVNode(InputGroup,{searchBox:!0,ref:_inputGroupRef},{default:function(){return[vue.createVNode(Actions,null,{default:function(){return[e.renderInputAddonBefore(),e.renderLeftIcons()]}}),vue.createVNode(InputWrapper,null,{default:function(){return[vue.createVNode(TextArea,vue.mergeProps(babelHelperVueTransformOn({blur:function(t){e.$emit("blur",t,e.triggerQuery)},keypress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},input:e.onInputChange,focus:function(t){e.$emit("focus",t,e.triggerQuery)},keydown:e.handleKeyDown,keyup:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)}}),{searchBox:!0,class:getClassName$3(e.$props.innerClass,"input")||"",placeholder:e.$props.placeholder,autofocus:e.$props.autoFocus,value:e.$data.currentValue?e.$data.currentValue:"",iconPosition:e.$props.iconPosition,showIcon:e.$props.showIcon,showClear:e.$props.showClear,ref:e.$props.innerRef,themePreset:e.themePreset}),null)]}}),vue.createVNode(Actions,null,{default:function(){return[e.renderRightIcons(),e.renderInputAddonAfter(),e.renderEnterButtonElement()]}})]}})])]}})},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)}});SearchBox.hasInternalComponent=function(){return!0},SearchBox.defaultQuery=function(e,t){var n;return(n={bool:{should:SearchBox.shouldQuery(e,t),minimum_should_match:"1"}})&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},SearchBox.shouldQuery=function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,nestedField:t.nestedField,queryString:t.queryString,searchOperators:t.searchOperators}}};var mapStateToProps$3=function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,selectedCategory:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].category||null,suggestions:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId]||[],themePreset:e.config.themePreset,isLoading:!!e.isLoading[""+t.componentId],error:e.error[t.componentId],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,AIResponse:e.AIResponses[t.componentId]&&e.AIResponses[t.componentId].response||null,isAIResponseLoading:e.AIResponses[t.componentId]&&e.AIResponses[t.componentId].isLoading,AIResponseError:e.AIResponses[t.componentId]&&e.AIResponses[t.componentId].error,sessionIdFromStore:e.AIResponses[t.componentId]&&e.AIResponses[t.componentId].response&&e.AIResponses[t.componentId].response.sessionId||"",isAITyping:e.AIResponses[t.componentId]&&e.AIResponses[t.componentId].response&&e.AIResponses[t.componentId].response.isTyping||!1}},mapDispatchToProps$2={updateQuery:updateQuery$1,setCustomQuery:setCustomQuery,setDefaultQuery:setDefaultQuery$1,recordSuggestionClick:recordSuggestionClick,recordAISessionUsefulness:analytics_8},SBConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$3,mapDispatchToProps$2)(SearchBox),{componentType:constants_1$1.searchBox,internalComponent:!0}));SBConnected.name=SearchBox.name,SBConnected.defaultQuery=SearchBox.defaultQuery,SBConnected.shouldQuery=SearchBox.shouldQuery,SBConnected.hasInternalComponent=SearchBox.hasInternalComponent,SBConnected.install=function(e){e.component(SBConnected.name,SBConnected)},SBConnected.componentType=constants_1$1.searchBox;var _excluded$2=["_source"];function _isSlot$6(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var md$1=new Remarkable;md$1.set({html:!0,breaks:!0,xhtmlOut:!0,linkify:!0,linkTarget:"_blank"});var _inputWrapperRef="inputWrapperRef",_inputRef="inputRef",_errorContainerRef="errorContainerRef",AIAnswer=vue.defineComponent({name:"AIAnswer",data:function(){var e=this.$props;return this.__state={messages:[],inputMessage:"",AISessionId:"",error:null,sourceDocIds:null,initialHits:null,isTriggered:!1},this.internalComponent=e.componentId+"__internal",this.__state},inject:{theme:{from:"theme_reactivesearch"}},created:function(){this.$props.triggerOn===constants_9$1.ALWAYS?this.isTriggered=!0:this.$props.triggerOn===constants_9$1.QUESTION&&this.dependentComponentValue&&this.dependentComponentValue.endsWith("?")&&(this.isTriggered=!0,this.AISessionId&&this.handleSendMessage(null,!1,"",!0))},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)},isLoadingState:function(){return this.isAIResponseLoading||this.isLoading},shouldShowComponent:function(){return this.showComponent},errorMessageForMissingSessionId:function(){return"AISessionId for "+this.$props.componentId+" is missing! AIAnswer component requires an AISessionId to function. Try reloading the App."},hasTriggered:function(){return this.isTriggered}},props:{componentId:types.string.isRequired,showVoiceInput:Q.bool.def(!1),showFeedback:Q.bool.def(!0),showIcon:Q.bool.def(!0),onData:types.func,innerRef:Q.string.def("AISearchInputField"),react:types.react,enableAI:Q.bool.def(!0),AIConfig:types.AIConfig,iconPosition:types.iconPosition.def("left"),themePreset:types.themePreset,theme:types.style,icon:types.children,iconURL:Q.string.def(""),renderMic:types.func,getMicInstance:types.func,innerClass:types.style,placeholder:Q.string.def("Ask a question"),title:types.title,AIResponse:types.componentObject,isAIResponseLoading:Q.bool.def(!1),AIResponseError:types.componentObject,getAIResponse:types.func.isRequired,enterButton:types.bool,renderEnterButton:types.title,showInput:Q.bool.def(!0),clearSessionOnDestroy:Q.bool.def(!0),rawData:types.rawData,render:types.func,onError:types.func,renderError:types.title,isLoading:types.boolRequired,sessionIdFromStore:Q.string,showComponent:types.boolRequired,componentError:types.componentObject,style:types.style,showSourceDocuments:Q.bool.def(!1),renderSourceDocument:types.func,onSourceClick:types.func,isAITyping:types.boolRequired,triggerOn:Q.string.def(constants_9$1.ALWAYS),renderTriggerMessage:types.func},mounted:function(){},watch:{AIResponse:function(e){if(e){if(this.$props.showSourceDocuments&&e.response&&e.response.answer&&Array.isArray(e.response.answer.documentIds)){this.sourceDocIds=e.response.answer.documentIds;var t=helper_2(constants_8$1)&&helper_2(constants_8$1)[this.$props.componentId];t&&t.meta&&t.meta.hits&&(this.initialHits=t.meta.hits)}this.AISessionId=((helper_2(constants_8$1)||{})[this.$props.componentId]||{}).sessionId||(((helper_2(constants_8$1)||{})[this.$props.componentId]||{}).response||{}).sessionId;var n=e.messages,r=e.response,o=[];r&&r.error&&(this.error={message:r.error}),n&&Array.isArray(n)?(o.push.apply(o,n.filter((function(e){return e.role!==constants_7$1.SYSTEM}))),o[0].role===constants_7$1.USER&&o.shift()):r&&r.answer&&r.answer.text&&(o.push({role:constants_7$1.ASSISTANT,content:r.answer.text}),this.AISessionId||(this.error={message:this.errorMessageForMissingSessionId})),this.messages=o}else e||this.error||(this.messages=[])},rawData:function(e){this.$emit("on-data",{data:this.messages,rawData:e,loading:this.$props.isAIResponseLoading||this.$props.isLoading,error:this.$props.AIResponseError}),e&&e.hits&&e.hits.hits&&(this.initialHits=e.hits.hits)},isAIResponseLoading:function(e){this.$emit("on-data",{data:this.messages,rawData:this.$props.rawData,loading:e||this.isLoading,error:this.$props.AIResponseError})},isLoading:function(e){this.$emit("on-data",{data:this.messages,rawData:this.$props.rawData,loading:e||this.isAIResponseLoading,error:this.$props.AIResponseError})},sessionIdFromStore:function(e){e&&(this.sessionId=e)},AIResponseError:function(e){if(this.error=e,this.AISessionId=((helper_2(constants_8$1)||{})[this.$props.componentId]||{}).sessionId||(((helper_2(constants_8$1)||{})[this.$props.componentId]||{}).response||{}).sessionId,this.error&&!this.AISessionId){var t=this.errorMessageForMissingSessionId;this.error={message:t},console.error(t)}this.$emit("on-data",{data:this.messages,rawData:this.$props.rawData,loading:this.isAIResponseLoading||this.isLoading,error:e})},messages:function(){this.scrollToBottom()},componentError:function(e){var t=this;e&&e._bodyBlob&&(this.AISessionId=((helper_2(constants_8$1)||{})[this.$props.componentId]||{}).sessionId||(((helper_2(constants_8$1)||{})[this.$props.componentId]||{}).response||{}).sessionId,this.AISessionId||this.generateNewSessionId(),e._bodyBlob.text().then((function(e){try{var n=JSON.parse(e);n.error&&(t.error=n.error,t.$emit("on-data",{data:t.messages,rawData:t.$props.rawData,loading:t.$props.isAIResponseLoading||t.$props.isLoading,error:n.error}))}catch(e){console.error("Error parsing component error JSON:",e)}})).catch((function(e){console.error("Error reading component error text data:",e)})))},showComponent:function(){this.$props.triggerOn===constants_9$1.QUESTION&&this.$props.dependentComponentValue.endsWith("?")&&(this.isTriggered=!0)},dependentComponentValue:function(e){this.$props.triggerOn===constants_9$1.QUESTION&&e&&e.endsWith("?")?(this.isTriggered=!0,this.AISessionId&&this.handleSendMessage(null,!1,"",!0)):this.hasTriggered&&this.$props.triggerOn!==constants_9$1.ALWAYS&&(this.isTriggered=!1)},AISessionId:function(e){e&&(this.$props.triggerOn===constants_9$1.QUESTION&&this.dependentComponentValue&&this.dependentComponentValue.endsWith("?")||this.$props.triggerOn===constants_9$1.ALWAYS)&&this.handleSendMessage(null,!1,"",!0)},triggerOn:function(e){e===constants_9$1.ALWAYS&&(this.isTriggered=!0)}},methods:{renderTriggerMessageFunc:function(){var e=this.$props.triggerOn;if(this.$props.renderTriggerMessage)return this.$props.renderTriggerMessage;if(this.$slots.renderTriggerMessage)return this.$slots.renderTriggerMessage();if(e===constants_9$1.QUESTION){if(!this.dependentComponentValue.endsWith("?"))return vue.createVNode("span",null,[vue.createVNode("span",{role:"img","aria-label":"bulb"},[vue.createTextVNode("💡")]),vue.createTextVNode("End your question with a question mark (?)")])}else if(e===constants_9$1.MANUAL)return vue.createVNode("span",null,[vue.createTextVNode("Click here to ask AI")," ",vue.createVNode("span",{role:"img","aria-label":"bulb"},[vue.createTextVNode("🤖")])]);return null},handleTriggerClick:function(){this.$props.triggerOn===constants_9$1.MANUAL&&(this.handleSendMessage(null,!1,"",!0),this.isTriggered=!0)},getAISourceObjects:function(){var e=this,t=[];if(!this.AIResponse)return t;var n=this.sourceDocIds||[];return this.initialHits?n.forEach((function(n){var r=e.initialHits.find((function(e){return e._id===n}))||{};if(r){var o=r._source,s=void 0===o?{}:o,a=_objectWithoutPropertiesLoose(r,_excluded$2);t.push(_extends({},a,s))}})):t.push.apply(t,n.map((function(e){return{_id:e}}))),t},renderAIScreenFooter:function(){var e,t=this,n=this.$props||{},r=n.showSourceDocuments,o=void 0===r||r,s=n.onSourceClick,a=void 0===s?function(){}:s,i=n.renderSourceDocument||this.$slots.renderSourceDocument;if(this.isLoadingState||this.isAITyping)return null;return o&&Array.isArray(this.sourceDocIds)&&this.sourceDocIds.length?vue.createVNode(Footer,{themePreset:this.$props.themePreset,style:{marginTop:"1.5rem",background:"inherit"}},{default:function(){return[vue.createTextVNode("Summary generated using the following sources:")," ",vue.createVNode(SourceTags,null,_isSlot$6(e=t.getAISourceObjects().map((function(e){var n,r;return vue.createVNode(Button,{class:"--ai-source-tag "+(helper_31(t.$props.innerClass,"ai-source-tag")||""),info:!0,onClick:function(){return a&&a(e)},key:e._id},_isSlot$6((r=e,n=i?i(r):r._id))?n:{default:function(){return[n]}})})))?e:{default:function(){return[e]}})]}}):null},generateNewSessionId:function(){var e=this;this.createAISession().then((function(t){e.AISessionId=t.AIsessionId})).catch((function(e){console.error(e)}))},scrollToBottom:function(){var e=this;this.$nextTick((function(){var t,n=null==(t=e.$refs)?void 0:t[e.$props.innerRef];n&&n.$el&&n.$el.scrollTo({top:n.$el.scrollHeight,behavior:"smooth"})}))},handleMessageInputChange:function(e){this.inputMessage=e.target.value,this.handleTextAreaHeightChange()},handleSendMessage:function(e,t,n,r){if(void 0===t&&(t=!1),void 0===n&&(n=this.inputMessage),void 0===r&&(r=!1),"object"==typeof e&&null!==e&&e.preventDefault(),n.trim()||!n&&!e){if(this.isLoadingState)return;if(this.AISessionId){if(!t){var o=[].concat(this.messages);n&&o.push({content:n,role:constants_7$1.USER}),this.messages=[].concat(o)}this.getAIResponse(this.AISessionId,this.componentId,n,r)}else console.error(this.errorMessageForMissingSessionId),this.error={message:"AISessionId for "+this.$props.componentId+" is missing! AIAnswer component requires an AISessionId to function. Trying reloading the App."};this.inputMessage=""}},handleRetryRequest:function(){if(this.messages&&!this.isLoadingState){var e,t=null==(e=this.messages[this.messages.length-1])?void 0:e.content;this.AISessionId?(this.getAIResponse(this.AISessionId,this.componentId,t),this.inputMessage=""):console.error("AISessionId for "+this.componentId+" is missing! AIAnswer component requires an AISessionId to function. Try reloading the App.")}},renderErrorComponent:function(){var e,t,n=this.$slots.renderError||this.$props.renderError;return this.error&&!this.isLoadingState?n?vue.createVNode("div",{ref:_errorContainerRef,class:"--ai-answer-error-container "+(helper_31(this.$props.innerClass,"ai-error")||"")},[isFunction(n)?n(this.error,this.handleRetryRequest):n]):vue.createVNode("div",{ref:_errorContainerRef,class:"--ai-answer-error-container "+(helper_31(this.$props.innerClass,"ai-error")||"")},[vue.createVNode("div",{class:"--default-error-element"},[vue.createVNode("span",null,[null!=(e=this.error)&&e.message?this.error.message:"There was an error in generating the response."," ",null!=(t=this.error)&&t.code?", Code:\n\t\t\t\t\t\t\t"+this.error.code:""]),this.AISessionId&&vue.createVNode(Button,{primary:!0,onClick:this.handleRetryRequest},{default:function(){return[vue.createTextVNode("Try again")]}})])]):null},handleKeyPress:function(e){"Enter"===e.key&&(this.handleSendMessage(e),this.inputMessage="")},renderIcon:function(){return this.$props.showIcon?this.$props.icon?this.$props.icon:this.$slots.icon?this.$slots.icon():this.$props.iconURL?vue.createVNode("img",{style:{maxHeight:"25px"},src:this.$props.iconURL,alt:"search-icon"},null):vue.createVNode(SearchSvg,null,null):null},shouldMicRender:function(e){return"undefined"!=typeof window&&(e&&(window.webkitSpeechRecognition||window.SpeechRecognition))},handleVoiceResults:function(e){var t=e.results;t&&t[0]&&t[0].isFinal&&t[0][0]&&t[0][0].transcript&&t[0][0].transcript.trim()&&this.handleSendMessage(null,!1,t[0][0].transcript.trim())},renderIcons:function(){var e,t,n=this,r=this.$props,o=r.getMicInstance,s=r.showVoiceInput,a=r.iconPosition,i=r.innerClass,l=this.$slots.renderMic||this.$props.renderMic;return vue.createVNode("div",null,[vue.createVNode(IconGroup,{enableAI:!0,groupPosition:"right",positionType:"absolute"},{default:function(){return[!n.isLoadingState&&n.AISessionId&&n.shouldMicRender(s)&&vue.createVNode(Mic,{getInstance:o,render:l,handleResult:n.handleVoiceResults,class:helper_31(i,"ai-search-mic")||null},null),"right"===a&&vue.createVNode(IconWrapper,null,_isSlot$6(e=n.renderIcon())?e:{default:function(){return[e]}})]}}),vue.createVNode(IconGroup,{enableAI:!0,groupPosition:"left",positionType:"absolute"},{default:function(){return["left"===a&&vue.createVNode(IconWrapper,null,_isSlot$6(t=n.renderIcon())?t:{default:function(){return[t]}})]}})])},enterButtonOnClick:function(e){this.handleSendMessage(e)},renderEnterButtonElement:function(){var e=this,t=this.$props,n=t.enterButton,r=t.innerClass,o=this.$slots.renderEnterButton;if(n){return vue.createVNode("div",{class:"ai-enter-button-wrapper"},[o?o(e.enterButtonOnClick):vue.createVNode(SendButton,{primary:!0,type:"submit",tabIndex:0,onClick:e.handleSendMessage,onKeyPress:e.handleKeyPress,class:"ask-btn "+helper_31(r,"ai-enter-button"),disabled:e.isLoadingState||!e.AISessionId},{default:function(){return[vue.createTextVNode("Send")]}})])}return null},getComponent:function(){var e={error:this.AIResponseError,loading:this.isAIResponseLoading,data:this.messages,rawData:this.rawData};return getComponent(e,this)},handleTextAreaHeightChange:function(){var e,t,n,r=null==(e=this.$refs)||null==(e=e[_inputRef])?void 0:e.$el,o=null==(t=this.$refs)||null==(t=t[_inputWrapperRef])?void 0:t.$el,s=null==(n=this.$refs)?void 0:n[_errorContainerRef];if(r){r.style.height="42px";var a=11*parseInt(getComputedStyle(r).lineHeight,10),i=Math.min(r.scrollHeight,a);r.style.height=i+"px",r.style.overflowY=i===a?"auto":"hidden",o.style.height=i+"px",s&&(s.style.bottom=i+"px"),this.$forceUpdate()}},getTitle:function(){var e=this;return this.$props.title||this.$slots.title||null?vue.createVNode(Title,{class:helper_31(this.$props.innerClass,"ai-title")||null},{default:function(){return[e.$props.title||e.$slots.title()]}}):null}},beforeUnmount:function(){if(this.$props.clearSessionOnDestroy){var e=helper_2(constants_8$1)||{};delete e[this.$props.componentId],helper_3(constants_8$1,e)}},render:function(){var e,t=this,n=this.$props;return this.shouldShowComponent?this.isTriggered?vue.createVNode(Chatbox,{style:n.style||{}},{default:function(){return[t.getTitle(),vue.createVNode(ChatContainer,{class:"--ai-chat-container",theme:n.theme,showInput:n.showInput},{default:function(){return[t.hasCustomRenderer&&vue.createVNode(MessagesContainer,{themePreset:t.themePreset,theme:n.theme,ref:t.$props.innerRef,class:"--ai-message-container "+(helper_31(n.innerClass,"ai-message-container")||"")},_isSlot$6(e=t.getComponent())?e:{default:function(){return[e]}}),!t.hasCustomRenderer&&vue.createVNode(MessagesContainer,{themePreset:t.themePreset,theme:n.theme,ref:t.$props.innerRef,class:"--ai-message-container "+(helper_31(n.innerClass,"ai-message-container")||"")},{default:function(){return[t.messages.map((function(e,r){return vue.createVNode(Message,{key:r,isSender:e.role===constants_7$1.USER,innerHTML:md$1.render(e.content),themePreset:t.themePreset,theme:n.theme,class:"--ai-answer-message "+(helper_31(n.innerClass,"ai-message")||"")},null)})),t.isLoadingState&&vue.createVNode(Message,{themePreset:t.themePreset,theme:n.theme,isSender:!1,class:"--ai-answer-message "+(helper_31(n.innerClass,"ai-message")||null)},{default:function(){return[vue.createVNode(TypingIndicator,null,{default:function(){return[vue.createVNode(TypingDot,{themePreset:t.themePreset},null),vue.createVNode(TypingDot,{themePreset:t.themePreset},null),vue.createVNode(TypingDot,{themePreset:t.themePreset},null)]}})]}})]}}),t.renderErrorComponent()," ",n.showFeedback&&!t.isLoadingState&&!t.isAITyping&&vue.createVNode("div",{class:"--ai-answer-feedback-container "+(helper_31(n.innerClass,"ai-feedback")||"")},[vue.createVNode(AIFeedback,{hideUI:t.isLoadingState||!t.sessionId,key:t.sessionId,onFeedbackSubmit:function(e,n){t.trackUsefullness(t.sessionId,{useful:e,reason:n})}},null)])," ",t.renderAIScreenFooter(),n.showInput&&!t.isLoadingState&&!t.isAITyping&&vue.createVNode(MessageInputContainer,{class:"--ai-input-container",onSubmit:t.handleSendMessage},{default:function(){return[vue.createVNode(InputGroup,{enableAI:!0,isOpen:!1},{default:function(){return[vue.createVNode(InputWrapper,{ref:_inputWrapperRef},{default:function(){return[vue.createVNode(MessageInput,{ref:_inputRef,placeholder:n.placeholder,enterButton:n.enterButton,value:t.inputMessage,onInput:t.handleMessageInputChange,id:n.componentId+"-ai-input",showIcon:n.showIcon,iconPosition:n.iconPosition,themePreset:t.themePreset,disabled:t.isLoadingState||!t.AISessionId,class:helper_31(n.innerClass,"ai-input")||null},null)," ",t.renderIcons()]}})]}}),t.renderEnterButtonElement()]}})," "]}})]}}):vue.createVNode(Chatbox,{style:n.style||{}},{default:function(){return[t.getTitle(),vue.createVNode("div",{class:"--trigger-message-wrapper",onClick:t.handleTriggerClick,"aria-hidden":"true"},[t.renderTriggerMessageFunc()])]}}):null}});AIAnswer.hasInternalComponent=function(){return!0};var mapStateToProps$4=function(e,t){var n=Object.values(t.react)[0];return Array.isArray(n)&&(n=n[0]),{showComponent:!(!e.selectedValues[n]||!e.selectedValues[n].value),dependentComponentValue:e.selectedValues[n]&&e.selectedValues[n].value||"",AIResponse:e.AIResponses[t.componentId]&&e.AIResponses[t.componentId].response,isAIResponseLoading:e.AIResponses[t.componentId]&&e.AIResponses[t.componentId].isLoading,AIResponseError:e.AIResponses[t.componentId]&&e.AIResponses[t.componentId].error,rawData:e.rawData[t.componentId],themePreset:e.config.themePreset,isLoading:e.isLoading[t.componentId]||!1,sessionIdFromStore:e.AIResponses[t.componentId]&&e.AIResponses[t.componentId].response&&e.AIResponses[t.componentId].response.sessionId||"",componentError:e.error[t.componentId]||null,isAITyping:e.AIResponses[t.componentId]&&e.AIResponses[t.componentId].response&&e.AIResponses[t.componentId].response.isTyping||!1}},mapDispatchToProps$3={getAIResponse:function(e,t,n,r){return void 0===r&&(r=!1),query_7(e,t,n,null,r)},trackUsefullness:analytics_8,createAISession:query_8},AIConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$4,mapDispatchToProps$3)(AIAnswer),{componentType:constants_1$1.AIAnswer,internalComponent:!0})),_templateObject$m,_templateObject2$a,_templateObject3$7;AIConnected.name=AIAnswer.name,AIConnected.hasInternalComponent=AIAnswer.hasInternalComponent,AIConnected.install=function(e){e.component(AIConnected.name,AIConnected)},AIConnected.componentType=constants_1$1.AIAnswer;var item={width:"15px",height:"15px",scale:"4px"},vh="\n\tborder: 0;\n\tclip: rect(1px, 1px, 1px, 1px);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tpadding: 0;\n\tposition: absolute;\n\twidth: 1px;\n\twhite-space: nowrap;\n",hideInputControl="\n\t+ label {\n\t\tpadding-left: 0;\n\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder: 0;\n\t\t\tmargin: 0;\n\t\t\tvisibility: hidden;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t+ label {\n\t\t\tfont-weight: bold;\n\t\t}\n\t}\n",formItem=function(e){var t=e.theme,n=void 0===t?{}:t;return"\n\t"+vh+";\n\n\t&:focus {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tbox-shadow: 0 0 0 2px "+curriedLighten(.4,n.colors.primaryColor)+";\n\t\t\t}\n\t\t}\n\t}\n\n\t&:hover {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tborder-color: "+n.colors.primaryColor+";\n\t\t\t}\n\t\t}\n\t}\n\n\t&:active {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\ttransition-duration: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t+ label {\n\t\tposition: relative;\n\t\tuser-select: none;\n\t\tdisplay: flex;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\talign-items: center;\n\t\tcursor: pointer;\n\n\t\t&::before {\n\t\t\tbackground-color: #fff;\n\t\t\tborder: 1px solid "+(n.colors.borderColor||curriedLighten(.1,n.colors.textColor))+";\n\t\t\tbox-sizing: content-box;\n\t\t\tcontent: '';\n\t\t\tcolor: "+n.colors.primaryColor+";\n\t\t\tmargin-right: calc("+item.width+" * 0.5);\n\t\t\ttop: 50%;\n\t\t\tleft: 0;\n\t\t\twidth: "+item.width+";\n\t\t\theight: "+item.height+";\n\t\t\tdisplay: inline-block;\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\t&::after {\n\t\t\tbox-sizing: content-box;\n\t\t\tcontent: '';\n\t\t\tbackground-color: "+n.colors.primaryColor+";\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: calc(1px + "+item.scale+" / 2);\n\t\t\twidth: calc("+item.width+" - "+item.scale+");\n\t\t\theight: calc("+item.height+" - "+item.scale+");\n\t\t\tmargin-top: calc("+item.height+" / -2 - "+item.scale+" / -2);\n\t\t\ttransform: scale(0);\n\t\t\ttransform-origin: 50%;\n\t\t\ttransition: transform 200ms ease-out;\n\t\t}\n\t}\n"},Radio=styled("input")(_templateObject$m||(_templateObject$m=_taggedTemplateLiteralLoose(["\n\t",";\n\t",";\n\n\t+ label {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-radius: 50%;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t+ label {\n\t\t\t\tcolor: ",";\n\n\t\t\t\t&::before {\n\t\t\t\t\tanimation: none;\n\t\t\t\t\tfilter: none;\n\t\t\t\t\ttransition: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tanimation: none;\n\t\t\t\tbackground-color: #fff;\n\t\t\t\tborder-color: ",";\n\t\t}\n\n\t\t&::after {\n\t\t\ttransform: scale(1);\n\t\t}\n\t}\n"])),formItem,(function(e){return e.show?null:hideInputControl}),(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),Checkbox=styled("input")(_templateObject2$a||(_templateObject2$a=_taggedTemplateLiteralLoose(["\n\t",";\n\t",";\n\n\t+ label {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-radius: 0;\n\t\t}\n\n\t\t&::after {\n\t\t\tbackground-color: transparent;\n\t\t\ttop: 50%;\n\t\t\tleft: calc(1px + "," / 5);\n\t\t\twidth: calc("," / 2);\n\t\t\theight: calc("," / 5);\n\t\t\tmargin-top: calc("," / -2 / 2 * 0.8);\n\t\t\tborder-style: solid;\n\t\t\tborder-color: ",";\n\t\t\tborder-width: 0 0 2px 2px;\n\t\t\tborder-radius: 0;\n\t\t\tborder-image: none;\n\t\t\ttransform: rotate(-45deg) scale(0);\n\t\t\ttransition: none;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tborder-color: ",";\n\t\t\t}\n\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\ttransform: rotate(-45deg) scale(1);\n\t\t\t\ttransition: transform 200ms ease-out;\n\t\t\t}\n\t\t}\n\t}\n"])),formItem,(function(e){return e.show?null:hideInputControl}),item.width,item.width,item.width,item.height,(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),UL=styled("ul")(_templateObject3$7||(_templateObject3$7=_taggedTemplateLiteralLoose(["\n\tlist-style: none;\n\tpadding: 0;\n\tmargin: 0;\n\tmax-height: 240px;\n\tposition: relative;\n\toverflow-y: auto;\n\tpadding-bottom: 12px;\n\n\tli {\n\t\theight: 30px;\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\talign-items: center;\n\t\tpadding-left: 2px;\n\t}\n"]))),getAggsOrder=lib_8.getAggsOrder,extractQuery=function(e){var t={};if(e.defaultQuery){var n=e.defaultQuery([],e);n&&(n.query&&(t.query=n.query),n.aggs&&(t.aggs=n.aggs))}return t},getAggsQuery=function(e,t){var n,r=e,o=t.dataField,s=t.size,a=t.sortBy,i=t.showMissing,l=t.missingLabel;return r.size=0,r.aggs=((n={})[o]={terms:_extends({field:o,size:s,order:getAggsOrder(a||"count")},i?{missing:l}:{})},n),t.nestedField&&(r.aggs={reactivesearch_nested:{nested:{path:t.nestedField},aggs:r.aggs}}),_extends({},r,extractQuery(t))},sanitizeObject=function(e){return JSON.parse(JSON.stringify(e,(function(e,t){return null===t||t=={}||!1===t?void 0:t})))},updateQuery$2=lib_5.updateQuery,setQueryOptions$1=lib_5.setQueryOptions,setCustomQuery$1=lib_5.setCustomQuery,setDefaultQuery$2=lib_5.setDefaultQuery,getQueryOptions$1=lib_8.getQueryOptions,checkValueChange$1=lib_8.checkValueChange,getClassName$4=lib_8.getClassName,isEqual$5=lib_8.isEqual,extractQueryFromCustomQuery$1=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$1=lib_8.getOptionsForCustomQuery,SingleList={name:"SingleList",props:{beforeValueChange:types.func,className:Q.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultValue:types.string,value:types.value,defaultQuery:types.func,filterLabel:types.string,innerClass:types.style,placeholder:Q.string.def("Search"),react:types.react,render:types.func,renderItem:types.func,renderNoResults:Q.any,transformData:types.func,selectAllLabel:types.string,showCount:Q.bool.def(!0),showFilter:Q.bool.def(!0),showRadio:Q.bool.def(!0),showSearch:Q.bool.def(!0),size:Q.number,sortBy:Q.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:Q.bool.def(!1),showMissing:Q.bool.def(!1),missingLabel:Q.string.def("N/A"),nestedField:types.string,index:Q.string,enableStrictSelection:Q.bool.def(!1),endpoint:types.endpointConfig},data:function(){var e=this.$props;return this.__state={currentValue:"",modifiedOptions:[],searchTerm:""},this.internalComponent=e.componentId+"__internal",this.__state},created:function(){var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.currentValue),this.updateQueryHandlerOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{options:function(e){e&&(this.modifiedOptions=e[this.$props.dataField]?e[this.$props.dataField].buckets:[])},size:function(){this.updateQueryHandlerOptions(this.$props)},sortBy:function(){this.updateQueryHandlerOptions(this.$props)},dataField:function(){this.updateQueryHandlerOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){isEqual$5(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=this.$props,n=t.selectAllLabel,r=t.renderItem,o=t.renderError,s=this.$slots.renderItem||r,a=this.$slots.renderError||o;if(a&&this.error)return isFunction(a)?a(this.error):a;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResults)return null;this.renderNoResult()}var i=this.$data.modifiedOptions;this.$props.transformData&&(i=this.$props.transformData(i));var l=i.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||suggestions_1(String(t.key)).toLowerCase().includes(suggestions_1(e.$data.searchTerm.toLowerCase())))}));return vue.createVNode(Container,{class:this.$props.className},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$4(e.$props.innerClass,"title")||""},{default:function(){return[e.$props.title]}}),e.renderSearch(),e.hasCustomRenderer?e.getComponent():vue.createVNode(UL,{class:getClassName$4(e.$props.innerClass,"list")||""},{default:function(){return[n?vue.createVNode("li",{key:n,class:e.$data.currentValue===n?"active":""},[vue.createVNode(Radio,{class:getClassName$4(e.$props.innerClass,"radio"),id:e.$props.componentId+"-"+n,name:e.$props.componentId,value:n,onClick:e.handleClick,readOnly:!0,type:"radio",show:e.$props.showRadio,checked:e.$data.currentValue===n},null),vue.createVNode("label",{class:getClassName$4(e.$props.innerClass,"label")||null,for:e.$props.componentId+"-"+n},[vue.createVNode("span",null,[n,e.$props.showCount&&vue.createVNode("span",{class:getClassName$4(e.$props.innerClass,"count")||null},[vue.createTextVNode(" ("),e.totalDocumentCount,vue.createTextVNode(")")])])])]):null,e.hasCustomRenderer||0!==l.length||e.isLoading?l.map((function(t){return vue.createVNode("li",{key:t.key,class:e.currentValue===String(t.key)?"active":""},[vue.createVNode(Radio,{class:getClassName$4(e.$props.innerClass,"radio"),id:e.$props.componentId+"-"+t.key,name:e.$props.componentId,value:t.key,readOnly:!0,onClick:e.handleClick,type:"radio",show:e.$props.showRadio,checked:e.currentValue===String(t.key)},null),vue.createVNode("label",{class:getClassName$4(e.$props.innerClass,"label")||null,for:e.$props.componentId+"-"+t.key},[s?s({label:t.key,count:t.doc_count,isChecked:e.currentValue===String(t.key)}):vue.createVNode("span",null,[t.key,e.$props.showCount&&vue.createVNode("span",{class:getClassName$4(e.$props.innerClass,"count")||null},[vue.createTextVNode(" ("),t.doc_count,vue.createTextVNode(")")])])])])})):e.renderNoResult()]}})]}})},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);var r=e;e===this.$data.currentValue&&(r="");checkValueChange$1(t.componentId,r,t.beforeValueChange,(function(){n.currentValue=r,n.updateQueryHandler(r,t),n.$emit("valueChange",r),n.$emit("value-change",r)}))},updateDefaultQueryHandler:function(e,t){var n=SingleList.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=extractQueryFromCustomQuery$1(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var s=getOptionsForCustomQuery$1(r);this.setQueryOptions(this.internalComponent,s,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:constants_1$1.singleList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=SingleList.defaultQuery(e,t);if(n){var o=n(e,t);r=extractQueryFromCustomQuery$1(o);var s=getOptionsForCustomQuery$1(o);updateCustomQuery(t.componentId,this.setCustomQuery,t,e),this.setQueryOptions(t.componentId,s,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.singleList})},generateQueryOptions:function(e){var t=getQueryOptions$1(e);return getAggsQuery(t,e)},updateQueryHandlerOptions:function(e){var t=SingleList.generateQueryOptions(e);if(e.defaultQuery){var n=this.$data.currentValue,r=getOptionsForCustomQuery$1(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,_extends({},t,r))}else this.setQueryOptions(this.internalComponent,t)},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},renderSearch:function(){return this.$props.showSearch?vue.createVNode(Input,{class:getClassName$4(this.$props.innerClass,"input")||"",onInput:this.handleInputChange,value:this.$data.searchTerm,placeholder:this.$props.placeholder,style:{margin:"0 0 8px"},themePreset:this.$props.themePreset},null):null},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var s={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return getComponent(s,this)},handleClick:function(e){var t=e;return isEvent(e)&&(t=e.target.value),(!this.enableStrictSelection||t!==this.currentValue)&&(void 0===this.$props.value?this.setValue(t):this.$emit("change",t),!0)},renderNoResult:function(){var e=this.$slots.renderNoResults||this.$props.renderNoResults;return vue.createVNode("p",{class:getClassName$4(this.$props.innerClass,"noResults")||null},[isFunction(e)?e():e])}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)}},generateQueryOptions:function(e){var t=getQueryOptions$1(e);return getAggsQuery(t,e)},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,nestedField:t.nestedField,selectAllLabel:t.selectAllLabel,showMissing:t.showMissing}}},hasInternalComponent:function(){return!0}},mapStateToProps$5=function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId]}},mapDispatchtoProps$2={setQueryOptions:setQueryOptions$1,updateQuery:updateQuery$2,setCustomQuery:setCustomQuery$1,setDefaultQuery:setDefaultQuery$2},ListConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$5,mapDispatchtoProps$2)(SingleList),{componentType:constants_1$1.singleList,internalComponent:SingleList.hasInternalComponent()}));ListConnected.name=SingleList.name,ListConnected.defaultQuery=SingleList.defaultQuery,ListConnected.generateQueryOptions=SingleList.generateQueryOptions,ListConnected.hasInternalComponent=SingleList.hasInternalComponent,ListConnected.componentType=constants_1$1.singleList,ListConnected.install=function(e){e.component(ListConnected.name,ListConnected)};var updateQuery$3=lib_5.updateQuery,setQueryOptions$2=lib_5.setQueryOptions,setCustomQuery$2=lib_5.setCustomQuery,setDefaultQuery$3=lib_5.setDefaultQuery,isEqual$6=lib_8.isEqual,getQueryOptions$2=lib_8.getQueryOptions,checkValueChange$2=lib_8.checkValueChange,getClassName$5=lib_8.getClassName,extractQueryFromCustomQuery$2=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$2=lib_8.getOptionsForCustomQuery,MultiList={name:"MultiList",props:{defaultValue:types.stringArray,value:types.stringArray,queryFormat:Q.oneOf(["and","or"]).def("or"),showCheckbox:Q.bool.def(!0),beforeValueChange:types.func,className:Q.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultQuery:types.func,filterLabel:types.string,innerClass:types.style,placeholder:Q.string.def("Search"),react:types.react,render:types.func,renderItem:types.func,renderError:types.title,renderNoResults:Q.any,transformData:types.func,selectAllLabel:types.string,showCount:Q.bool.def(!0),showFilter:Q.bool.def(!0),showSearch:Q.bool.def(!0),size:Q.number,sortBy:Q.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:Q.bool.def(!1),showMissing:Q.bool.def(!1),missingLabel:Q.string.def("N/A"),nestedField:types.string,index:Q.string,endpoint:types.endpointConfig},data:function(){var e=this.$props;return this.__state={currentValue:{},modifiedOptions:[],searchTerm:""},this.internalComponent=e.componentId+"__internal",this.__state},created:function(){var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.currentValue),this.updateQueryHandlerOptions(this.$props);var t=this.selectedValue||this.$props.value||this.$props.defaultValue;this.setValue(t,!this.selectedValue)},mounted:function(){var e=Object.keys(this.$data.currentValue);void 0===this.$props.value||isEqual$6(this.$props.value,e)||this.$emit("change",e)},watch:{options:function(e){e&&(this.modifiedOptions=e[this.$props.dataField]?e[this.$props.dataField].buckets:[])},size:function(){this.updateQueryHandlerOptions(this.$props)},sortBy:function(){this.updateQueryHandlerOptions(this.$props)},dataField:function(){this.updateQueryHandlerOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},value:function(e,t){isEqual$6(t,e)||this.setValue(e,!0)},defaultValue:function(e,t){isEqual$6(t,e)||this.setValue(e,!0)},selectedValue:function(e){var t=this,n=Object.keys(this.$data.currentValue);this.$props.selectAllLabel&&(n=n.filter((function(e){return e!==t.$props.selectAllLabel})),this.$data.currentValue[this.$props.selectAllLabel]&&(n=[this.$props.selectAllLabel])),isEqual$6(n,e)||(void 0===this.value?this.setValue(e,!0):this.$emit("change",e))},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=this.$props,n=t.selectAllLabel,r=t.renderItem,o=t.renderError,s=this.$slots.renderItem||r,a=this.$slots.renderError||o;if(a&&this.error)return isFunction(a)?a(this.error):a;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResults)return null;this.renderNoResult()}var i=this.$data.modifiedOptions;this.$props.transformData&&(i=this.$props.transformData(i));var l=i.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||suggestions_1(String(t.key)).toLowerCase().includes(suggestions_1(e.$data.searchTerm).toLowerCase()))}));return vue.createVNode(Container,{class:this.$props.className},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$5(e.$props.innerClass,"title")},{default:function(){return[e.$props.title]}}),e.renderSearch(),e.hasCustomRenderer?e.getComponent():vue.createVNode(UL,null,{default:function(){return[n?vue.createVNode("li",{key:n,class:e.currentValue[n]?"active":""},[vue.createVNode(Checkbox,{type:"checkbox",class:getClassName$5(e.$props.innerClass,"checkbox"),id:e.$props.componentId+"-"+n,name:n,value:n,onClick:e.handleClick,checked:!!e.currentValue[n],show:e.$props.showCheckbox},null),vue.createVNode("label",{class:getClassName$5(e.$props.innerClass,"label"),for:e.$props.componentId+"-"+n},[vue.createVNode("span",null,[n,e.$props.showCount&&vue.createVNode("span",{class:getClassName$5(e.$props.innerClass,"count")},[vue.createTextVNode(" ("),e.totalDocumentCount,vue.createTextVNode(")")])])])]):null,e.hasCustomRenderer||0!==l.length||e.isLoading?l.map((function(t){return vue.createVNode("li",{key:t.key,class:e.$data.currentValue[t.key]?"active":""},[vue.createVNode(Checkbox,{type:"checkbox",class:getClassName$5(e.$props.innerClass,"checkbox"),id:e.$props.componentId+"-"+t.key,name:e.$props.componentId,value:t.key,onClick:e.handleClick,show:e.$props.showCheckbox,checked:!!e.$data.currentValue[t.key]},null),vue.createVNode("label",{class:getClassName$5(e.$props.innerClass,"label"),for:e.$props.componentId+"-"+t.key},[s?s({label:t.key,count:t.doc_count,isChecked:!!e.$data.currentValue[t.key]}):vue.createVNode("span",null,[t.key,e.$props.showCount&&vue.createVNode("span",{class:getClassName$5(e.$props.innerClass,"count")},[vue.createTextVNode(" ("),t.doc_count,vue.createTextVNode(")")])])])])})):e.renderNoResult()]}})]}})},methods:{setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,s=this.$data.currentValue,a=null;if(o&&(Array.isArray(e)&&e.includes(o)||"string"==typeof e&&e===o))s[o]?(s={},a=[]):(this.$data.modifiedOptions.forEach((function(e){s[e.key]=!0})),s[o]=!0,a=[o]);else if(t){if(a=e,s={},e&&e.length&&e.forEach((function(e){s[e]=!0})),o&&o in s){var i=s,l=(i[o],_objectWithoutPropertiesLoose(i,[o].map(_toPropertyKey$1)));s=_extends({},l)}}else{if(s[e]){var u=s,c=(u[e],_objectWithoutPropertiesLoose(u,[e].map(_toPropertyKey$1)));s=_extends({},c)}else Array.isArray(e)?e.forEach((function(e){s[e]=!0})):s[e]=!0;if(o&&o in s){var p=s,d=(p[o],_objectWithoutPropertiesLoose(p,[o].map(_toPropertyKey$1)));s=_extends({},d)}a=Object.keys(s)}checkValueChange$2(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=Object.assign({},s),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n=MultiList.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=extractQueryFromCustomQuery$2(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var s=getOptionsForCustomQuery$2(r);this.setQueryOptions(this.internalComponent,s,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:constants_1$1.multiList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=MultiList.defaultQuery(e,t);if(n){var o=n(e,t);r=extractQueryFromCustomQuery$2(o),updateCustomQuery(t.componentId,this.setCustomQuery,t,e);var s=getOptionsForCustomQuery$2(o);this.setQueryOptions(t.componentId,s,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.multiList})},generateQueryOptions:function(e){var t=getQueryOptions$2(e);return getAggsQuery(t,e)},updateQueryHandlerOptions:function(e){var t=MultiList.generateQueryOptions(e);if(e.defaultQuery){var n=Object.keys(this.$data.currentValue),r=getOptionsForCustomQuery$2(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,_extends({},t,r))}else this.setQueryOptions(this.internalComponent,t)},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},renderSearch:function(){return this.$props.showSearch?vue.createVNode(Input,{class:getClassName$5(this.$props.innerClass,"input")||"",onInput:this.handleInputChange,value:this.$data.searchTerm,placeholder:this.$props.placeholder,style:{margin:"0 0 8px"},themePreset:this.$props.themePreset},null):null},handleClick:function(e){var t=e;isEvent(e)&&(t=e.target.value);var n=this.$props.value;if(void 0===n)this.setValue(t);else{var r=parseValueArray(n||[],t);this.$emit("change",r)}},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var s={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return getComponent(s,this)},renderNoResult:function(){var e=this.$slots.renderNoResults||this.$props.renderNoResults;return vue.createVNode("p",{class:getClassName$5(this.$props.innerClass,"noResults")||null},[isFunction(e)?e():e])}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)}},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,nestedField:t.nestedField,selectAllLabel:t.selectAllLabel,showMissing:t.showMissing}}},generateQueryOptions:function(e){var t=getQueryOptions$2(e);return getAggsQuery(t,e)}},mapStateToProps$6=function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,themePreset:e.config.themePreset,totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,error:e.error[t.componentId],componentProps:e.props[t.componentId]}},mapDispatchtoProps$3={setQueryOptions:setQueryOptions$2,updateQuery:updateQuery$3,setCustomQuery:setCustomQuery$2,setDefaultQuery:setDefaultQuery$3};MultiList.hasInternalComponent=function(){return!0};var ListConnected$1=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$6,mapDispatchtoProps$3)(MultiList),{componentType:constants_1$1.multiList,internalComponent:MultiList.hasInternalComponent()}));ListConnected$1.name=MultiList.name,ListConnected$1.defaultQuery=MultiList.defaultQuery,ListConnected$1.generateQueryOptions=MultiList.generateQueryOptions,ListConnected$1.hasInternalComponent=MultiList.hasInternalComponent,ListConnected$1.componentType=constants_1$1.multiList,ListConnected$1.install=function(e){e.component(ListConnected$1.name,ListConnected$1)};var ReactPropTypesSecret="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function e(e,t,n,r,o,s){if(s!==ReactPropTypesSecret_1){var a=new 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 n={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:emptyFunctionWithReset,resetWarningCache:emptyFunction};return n.PropTypes=n,n},propTypes=createCommonjsModule((function(e){e.exports=factoryWithThrowingShims()})),types_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,r=(n=dateFormats_1)&&n.__esModule?n:{default:n};var o=(0,propTypes.oneOfType)([propTypes.string,(0,propTypes.arrayOf)(propTypes.string),propTypes.object,(0,propTypes.arrayOf)(propTypes.object)]);function s(e,t){return isNaN(e[t])?new Error(t+" value must be a number"):"lat"===t&&(e[t]<-90||e[t]>90)?new Error(t+" value should be between -90 and 90."):"lng"===t&&(e[t]<-180||e[t]>180)?new Error(t+" value should be between -180 and 180."):null}var a={any:propTypes.any,analyticsConfig:(0,propTypes.shape)({emptyQuery:propTypes.bool,suggestionAnalytics:propTypes.bool,userId:propTypes.string,customEvents:propTypes.object}),appbaseConfig:(0,propTypes.shape)({enableQueryRules:propTypes.bool,enableSearchRelevancy:propTypes.bool,recordAnalytics:propTypes.bool,emptyQuery:propTypes.bool,suggestionAnalytics:propTypes.bool,userId:propTypes.string,useCache:propTypes.bool,customEvents:propTypes.object,enableTelemetry:propTypes.bool,queryString:propTypes.object}),bool:propTypes.bool,boolRequired:propTypes.bool.isRequired,components:(0,propTypes.arrayOf)(propTypes.string),compoundClause:(0,propTypes.oneOf)(["filter","must"]),children:propTypes.any,data:(0,propTypes.arrayOf)(propTypes.object),dataFieldArray:(0,propTypes.oneOfType)([propTypes.string,(0,propTypes.arrayOf)(propTypes.string)]).isRequired,dataNumberBox:(0,propTypes.shape)({label:propTypes.string,start:propTypes.number.isRequired,end:propTypes.number.isRequired}).isRequired,date:(0,propTypes.oneOfType)([propTypes.string,(0,propTypes.arrayOf)(propTypes.string)]),dateObject:propTypes.object,excludeFields:(0,propTypes.arrayOf)(propTypes.string),fieldWeights:(0,propTypes.arrayOf)(propTypes.number),filterLabel:propTypes.string,func:propTypes.func,funcRequired:propTypes.func.isRequired,fuzziness:(0,propTypes.oneOf)([0,1,2,"AUTO"]),headers:propTypes.object,hits:(0,propTypes.arrayOf)(propTypes.object),rawData:propTypes.object,iconPosition:(0,propTypes.oneOf)(["left","right"]),includeFields:(0,propTypes.arrayOf)(propTypes.string),labelPosition:(0,propTypes.oneOf)(["left","right","top","bottom"]),number:propTypes.number,options:(0,propTypes.oneOfType)([(0,propTypes.arrayOf)(propTypes.object),propTypes.object]),paginationAt:(0,propTypes.oneOf)(["top","bottom","both"]),range:(0,propTypes.shape)({start:(0,propTypes.oneOfType)([propTypes.number,propTypes.string,propTypes.object]).isRequired,end:(0,propTypes.oneOfType)([propTypes.number,propTypes.string,propTypes.object]).isRequired}),rangeLabels:(0,propTypes.shape)({start:propTypes.string.isRequired,end:propTypes.string.isRequired}),react:(0,propTypes.shape)({and:o,or:o,not:o}),categorySearchValue:(0,propTypes.shape)({term:propTypes.string,category:propTypes.string}),selectedValues:propTypes.object,selectedValue:(0,propTypes.oneOfType)([propTypes.string,(0,propTypes.arrayOf)(propTypes.string),(0,propTypes.arrayOf)(propTypes.object),propTypes.object,propTypes.number,(0,propTypes.arrayOf)(propTypes.number)]),suggestions:(0,propTypes.arrayOf)(propTypes.object),supportedOrientations:(0,propTypes.oneOf)(["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"]),tooltipTrigger:(0,propTypes.oneOf)(["hover","none","focus","always"]),sortBy:(0,propTypes.oneOf)(["asc","desc"]),sortOptions:(0,propTypes.arrayOf)((0,propTypes.shape)({label:propTypes.string,dataField:propTypes.string,sortBy:propTypes.string})),sortByWithCount:(0,propTypes.oneOf)(["asc","desc","count"]),stats:(0,propTypes.arrayOf)(propTypes.object),string:propTypes.string,stringArray:(0,propTypes.arrayOf)(propTypes.string),stringOrArray:(0,propTypes.oneOfType)([propTypes.string,(0,propTypes.arrayOf)(propTypes.string)]),stringRequired:propTypes.string.isRequired,style:propTypes.object,themePreset:(0,propTypes.oneOf)(["light","dark"]),queryFormatDate:(0,propTypes.oneOf)(Object.keys(r.default)),queryFormatSearch:(0,propTypes.oneOf)(["and","or"]),queryFormatNumberBox:(0,propTypes.oneOf)(["exact","lte","gte"]),params:propTypes.object.isRequired,props:propTypes.object,rangeLabelsAlign:(0,propTypes.oneOf)(["left","right"]),title:(0,propTypes.oneOfType)([propTypes.string,propTypes.any]),location:(0,propTypes.shape)({lat:s,lng:s}),unit:(0,propTypes.oneOf)(["mi","miles","yd","yards","ft","feet","in","inch","km","kilometers","m","meters","cm","centimeters","mm","millimeters","NM","nmi","nauticalmiles"]),aggregationData:propTypes.array,showClearAll:(0,propTypes.oneOf)([constants$1.CLEAR_ALL.NEVER,constants$1.CLEAR_ALL.ALWAYS,constants$1.CLEAR_ALL.DEFAULT,!0,!1]),componentType:(0,propTypes.oneOf)(Object.values(constants$1.componentTypes)),componentObject:propTypes.object,dataFieldValidator:function(e,t,n){var r=new Error(t+" supplied to "+n+" is required. Validation failed."),o=e[t];return o?"string"==typeof o||"object"==typeof o||Array.isArray(o)?Array.isArray(o)&&0===o.length?r:void 0:new Error("Invalid "+t+" supplied to "+n+". Validation failed."):r},focusShortcuts:(0,propTypes.oneOfType)([(0,propTypes.arrayOf)(propTypes.string),(0,propTypes.arrayOf)(propTypes.number)]),mongodb:(0,propTypes.shape)({db:propTypes.string,collection:propTypes.string}),calendarInterval:(0,propTypes.oneOf)(["month","day","year","week","quarter","hour","minute"]),preferences:propTypes.object,endpoint:(0,propTypes.shape)({url:propTypes.string.isRequired,method:propTypes.string,headers:propTypes.object,body:propTypes.object}),AIConfig:(0,propTypes.shape)({docTemplate:propTypes.string,queryTemplate:propTypes.string,maxTokens:propTypes.number,systemPrompt:propTypes.string,temperature:propTypes.number,topDocsForContext:propTypes.number})};t.default=a})),types$1=unwrapExports(types_1),_templateObject$n,_templateObject2$b,HierarchicalMenuList=styled("ul")(_templateObject$n||(_templateObject$n=_taggedTemplateLiteralLoose(["\n\tlist-style: none;\n\tpadding: 0;\n\tmargin: 0;\n\tmax-height: 0;\n\toverflow: hidden;\n\n\t&.--open {\n\t\tmax-height: 100%;\n\t}\n"]))),HierarchicalMenuListItem=styled("li")(_templateObject2$b||(_templateObject2$b=_taggedTemplateLiteralLoose(["\n\tfont-weight: 400;\n\tline-height: 1.5;\n\tbox-sizing: border-box;\n\n\ta {\n\t\tcolor: #424242;\n\t\ttext-decoration: none;\n\t\tgap: 5px;\n\t\t.--leaf-icon,\n\t\t.--folder-icon {\n\t\t\tline-height: 15px;\n\t\t\tsvg {\n\t\t\t\theight: 15px;\n\t\t\t}\n\t\t}\n\n\t\tinput {\n\t\t\tmargin: 0;\n\t\t\tcursor: pointer;\n\t\t}\n\t}\n\n\t.--switcher-icon {\n\t\ttransition: all 0.2s ease-in;\n\t\tmargin-right: 2px;\n\t}\n\t.--list-child {\n\t\tpadding-left: 1rem;\n\t\tposition: relative;\n\t\t&:before {\n\t\t\theight: 100%;\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\tborder-left: 1px solid #787878;\n\t\t\twidth: 0;\n\t\t\tleft: 19px;\n\t\t\t",";\n\t\t}\n\n\t\t&.--show-switcher-icon {\n\t\t\tpadding-left: 36px;\n\t\t}\n\t}\n\t.--list-item-label {\n\t\tline-height: 100%;\n\t}\n\t.--list-item-count {\n\t\tmargin-left: 10px;\n\t\tpadding: 0.1rem 0.4rem;\n\t\tfont-size: 0.8rem;\n\t\tcolor: #424242;\n\t\tbackground-color: #dee1e6;\n\t\tborder-radius: 8px;\n\t}\n\t&.-selected-item {\n\t\tfont-weight: 700 !important;\n\t}\n\t&.-expanded-item {\n\t\t& > a {\n\t\t\t& div > .--switcher-icon {\n\t\t\t\ttransform: rotate(90deg);\n\t\t\t}\n\t\t}\n\t}\n\t.--list-item-label-count-wrapper {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\t&:hover {\n\t\t\t.--list-item-count,\n\t\t\t.--list-item-label {\n\t\t\t\tfont-weight: 700;\n\t\t\t}\n\t\t}\n\t}\n"])),(function(e){return!e.showLine&&"\n\t\t\t\t\tdisplay: none;\n\t\t\t\t"})),HierarchicalMenuListItemComponent={name:"HierarchicalMenuListItemComponent",data:function(){return{isExpanded:!1,newParentPath:""}},created:function(){var e=this.listItem.key,t=e;this.parentPath&&(t=""+this.parentPath+constants_6$1+e),this.newParentPath=t,this.isExpanded=!!helper_9(this.selectedValues,t,constants_6$1)},watch:{listItem:function(e){e.initiallyExpanded&&(this.isExpanded=e.initiallyExpanded)},selectedValues:function(e){this.isExpanded=!!helper_9(e,this.newParentPath,constants_6$1)}},props:{parentPath:types$1.string,selectedValues:types$1.rawData,mode:types$1.string,searchTerm:types$1.string,listItem:types$1.rawData,showLine:types$1.bool,renderItem:types$1.func,handleListItemClick:types$1.func,renderSwitcherIcon:types$1.func,showCheckbox:Q.bool,innerClass:types$1.style,showRadio:Q.bool,renderIcon:types$1.func,showCount:Q.bool,showSwitcherIcon:types$1.bool,switcherIcon:types$1.children},render:function(){var e=this,t=this.$props,n=t.selectedValues,r=t.mode,o=t.searchTerm,s=t.listItem,a=t.parentPath,i=t.showLine,l=t.renderItem,u=t.handleListItemClick,c=t.showCheckbox,p=t.innerClass,d=t.showRadio,h=t.renderIcon,f=t.showCount,m=t.showSwitcherIcon;if(!(s instanceof Object)||0===Object.keys(s).length)return null;var g=s.key,y=s.count,v=!(Array.isArray(s.list)&&s.list.length>0),b=function(t){if(!1===m)return null;var n=e.$props.switcherIcon;return n?n(t):vue.createVNode("span",{tabIndex:"0",onClick:function(t){t.stopPropagation(),e.isExpanded=!e.isExpanded},class:"--switcher-icon"},[vue.createTextVNode("➤")])},_=!1;return"single"===r?!0===helper_9(n,this.newParentPath,constants_6$1)&&(_=!0):_=!!helper_9(n,this.newParentPath,constants_6$1),vue.createVNode(HierarchicalMenuListItem,{class:(_?"-selected-item":"")+" "+(this.isExpanded?"-expanded-item":""),key:this.newParentPath,showLine:i},{default:function(){return[vue.createVNode(ListItem,{isTreeListItem:!0,onClick:function(){u(g,a)},style:{textDecoration:"none"}},{default:function(){return[l?l(g,y,_):vue.createVNode(Flex,{alignItems:"center",gap:"5px"},{default:function(){return[!v&&b(_),"multiple"===r&&c&&vue.createVNode(Flex,{alignItems:"center",gap:"5px"},{default:function(){return[vue.createVNode(Checkbox,{type:"checkbox",class:helper_31(p,"checkbox")||null,checked:_,id:g+"-checkbox-"+e.newParentPath,name:g+"-checkbox-"+e.newParentPath,show:!0,readOnly:!0},null),vue.createVNode("label",{style:{width:"26px",marginTop:0,marginBottom:0,marginRight:"-9px",left:"-3px"},htmlFor:g+"-checkbox-"+e.newParentPath,onClick:function(e){e.stopPropagation()}},null)]}}),"single"===r&&d&&vue.createVNode(Flex,{alignItems:"center",gap:"5px"},{default:function(){return[vue.createVNode(Radio,{checked:_,class:helper_31(p,"radio")||null,id:g+"-radio-"+e.newParentPath,name:g+"-radio-"+e.newParentPath,show:!0,readOnly:!0,type:"radio"},null),vue.createVNode("label",{style:{width:"26px",marginTop:0,marginBottom:0,marginRight:"-9px",left:"-3px"},htmlFor:g+"-radio-"+e.newParentPath,onClick:function(e){e.stopPropagation()}},null)]}})," ",h(v),vue.createVNode("div",{class:"--list-item-label-count-wrapper"},[vue.createVNode("span",{class:"--list-item-label "+(helper_31(p,"label")||"")},[g]),f&&vue.createVNode("span",{class:"--list-item-count "+(helper_31(p,"count")||"")},[y])])]}})]}}),!1===v&&vue.createVNode("div",{class:"--list-child "+(m?" --show-switcher-icon":"")},[vue.createVNode(HierarchicalMenuComponent,{key:e.newParentPath+"-"+g+"-"+y,listArray:s.list,parentPath:e.newParentPath,isExpanded:e.isExpanded,listItemProps:{mode:r,selectedValues:n,searchTerm:o,showLine:i,renderItem:l,handleListItemClick:u,renderSwitcherIcon:b,showCheckbox:c,innerClass:p,showRadio:d,renderIcon:h,showCount:f,showSwitcherIcon:m,switcherIcon:e.$props.switcherIcon}},null)])]}})}};function _isSlot$7(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var HierarchicalMenuComponent={name:"HierarchicalMenuComponent",props:{listArray:Q.arrayOf(Q.object),parentPath:Q.string.def(""),isExpanded:Q.bool.def(!1),listItemProps:types$1.rawData},render:function(){var e,t=this.$props,n=t.listArray,r=t.isExpanded,o=t.parentPath,s=t.listItemProps;return Array.isArray(n)&&0!==n.length?vue.createVNode(HierarchicalMenuList,{class:r?"--open":"",isSelected:r},_isSlot$7(e=n.map((function(e){return vue.createVNode(HierarchicalMenuListItemComponent,vue.mergeProps({key:o+"__"+JSON.stringify(e),parentPath:o,listItem:e},s),null)})))?e:{default:function(){return[e]}}):null}};function _isSlot$8(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var updateQueryAction=lib_5.updateQuery,setQueryOptions$3=lib_5.setQueryOptions,transformValueIntoLocalState=function(e){var t={};if(e.length){var n={};e.forEach((function(e){helper_51(n,e.split(" > "),!helper_9(n,e.split(" > "),constants_6$1),!0)})),t=n}return t},TreeList={name:"TreeList",props:{selectedValue:types.selectedValue,error:types.title,rawData:types.rawData,aggregationData:types.rawData,themePreset:types.themePreset,updateQueryAction:types.funcRequired,setQueryOptions:types.funcRequired,componentId:types.string.isRequired,className:types.string,style:types.style,showRadio:Q.bool.def(!1),showCheckbox:types.bool.def(!1),mode:Q.oneOf(["single","multiple"]).def("multiple"),showCount:Q.bool.def(!1),showSearch:Q.bool.def(!1),showIcon:Q.bool.def(!1),icon:types.children,showLeafIcon:Q.bool.def(!1),leafIcon:types.children,showLine:Q.bool.def(!1),switcherIcon:types.func,render:types.func,renderItem:types.func,innerClass:types.style,placeholder:types.string,title:types.title,isLoading:types.bool,dataField:types.stringArray.isRequired,onQueryChange:types.func,defaultValue:types.stringArray,value:types.stringArray,customQuery:types.func,defaultQuery:types.func,enableAppbase:types.bool,index:types.string,showFilter:types.bool,URLParams:types.bool,filterLabel:types.string,onChange:types.func,onValueChange:types.func,beforeValueChange:types.func,sortBy:types.sortByWithCount.def("count"),onError:types.func,showSwitcherIcon:types.bool.def(!0),renderError:types.title,renderNoResults:types.func,loader:types.title,aggergationSize:types.number,endpoint:types.endpoint,queryFormat:types.queryFormatSearch.def("or"),size:types.number.def(100),nestedField:types.string,react:types.react,transformData:types.func,selectAllLabel:types.string,showMissing:Q.bool.def(!1),missingLabel:Q.string.def("N/A")},data:function(){var e=this.$props;return this.__state={selectedValues:{},searchTerm:"",aggregationData:[]},this.internalComponent=e.componentId+"__internal",this.__state},created:function(){var e=this.$props,t=e.componentId,n=this.defaultValue||this.value,r=this.selectedValue||n||[];if(r.length){var o=transformValueIntoLocalState(r);this.setValue(o,!0)}helper_35(t,e,r),helper_34(t,e,r),this.updateQueryOptions()},mounted:function(){var e=this.$props,t=e.enableAppbase,n=e.index;!t&&n&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.")},watch:{defaultQuery:function(){this.updateDefaultQuery(),this.updateQuery([])},customQuery:function(){var e=helper_7(this.$data.selectedValues)||[];this.updateQuery(e)},sortBy:function(){this.updateQueryOptions()},dataField:function(){var e=helper_7(this.$data.selectedValues)||[];this.updateQueryOptions(),this.updateQuery(e)},value:function(e,t){helper_36(e,t)||this.setValue(e)},selectedValue:function(e){if(!helper_36(helper_7(this.$data.selectedValues),e)){var t=this.$props,n=t.value,r=t.onChange,o=[];Array.isArray(e)&&e.length&&(o=e),void 0===n?this.setValue(o):r&&!helper_36(n,o)&&r(o)}},aggregationData:function(e,t){e&&!helper_36(e,t)&&(this.$data.aggregationData=e)}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)}},methods:{renderIcon:function(e){var t=this.$props,n=t.showIcon,r=t.showLeafIcon,o=t.icon;if(e){if(!r)return null;var s=(this.$slots||this.$props).leafIcon;return s?s():vue.createVNode("span",{role:"img","aria-label":"file",class:"--leaf-icon"},[vue.createVNode("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"file",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[vue.createVNode("path",{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"},null)])])}return n?o||(this.$slots.icon?this.$slots.icon():vue.createVNode("span",{role:"img","aria-label":"folder-open",class:"--folder-icon"},[vue.createVNode("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"folder-open",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[vue.createVNode("path",{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"},null)])])):null},getTransformedData:function(){var e=this.$props,t=e.dataField,n=e.showSearch,r=helper_8(this.$data.aggregationData,t),o=[];return n&&this.searchTerm&&(o=this.filterDataBasedOnSearchTerm(r,"")),o.length?o:r},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},renderSearch:function(){var e=this.$props,t=e.showSearch,n=e.innerClass,r=e.placeholder,o=e.componentId,s=e.themePreset;return t?vue.createVNode(Input,{class:helper_31(n,"input")||null,onInput:this.handleInputChange,value:this.searchTerm,placeholder:r||"Search",style:{margin:"0 0 8px"},"aria-label":o+"-search",themePreset:s},null):null},handleListItemClick:function(e,t){var n=e;t&&(n=""+t+constants_6$1+e);var r=_extends({},this.selectedValues);if("single"===this.$props.mode)helper_51(r={},n.split(constants_6$1),!0,!0);else{var o=!helper_9(r,n,constants_6$1);helper_51(r,n.split(constants_6$1),o,!0)}if(r=sanitizeObject(_extends({},r)),void 0===this.$props.value)this.setValue(r);else if(this.$props.onChange){var s=helper_7(r);this.$props.onChange(s)}},filterDataBasedOnSearchTerm:function(e,t){var n=this;if(!(e&&Array.isArray(e)&&e.length))return null;var r=[];return e.forEach((function(e){var o=!e.list,s=e.key;t&&(s=t+"."+e.key);var a=suggestions_1(e.key).toLowerCase().includes(suggestions_1(n.$data.searchTerm).toLowerCase())||helper_9(n.$data.selectedValues,s,constants_6$1);if(o&&a)r.push(_extends({},e,{initiallyExpanded:a}));else if(!o){var i=n.filterDataBasedOnSearchTerm(e.list,s);(a||i.length)&&r.push(_extends({},e,{initiallyExpanded:a||!!i.length,list:i}))}})),r},getComponent:function(){var e=this.$props,t=e.rawData,n=e.error,r=e.isLoading,o={data:this.getTransformedData(),rawData:t,error:n,handleClick:this.handleListItemClick,value:this.$data.selectedValues,loading:r,PATH_SEPARATOR:constants_6$1};return this.$slots.render(o)||helper_11(o,this.$props)},getDefaultQuery:function(e){var t=this,n=null,r="or"===this.$props.queryFormat?"should":"must";if(!Array.isArray(e)||0===e.length)return null;if(e){var o,s=e.map((function(e){return{bool:{must:e.split(" > ").map((function(e,n){var r,o;return(o={}).term=((r={})[t.$props.dataField[n]]=e,r),o}))}}})),a={bool:(o={},o[r]=s,o)};n=e.length?a:null}return n&&this.$props.nestedField?{nested:{path:this.$props.nestedField,query:n}}:n},updateQuery:function(e){var t,n=this.$props.customQuery,r=this.getDefaultQuery(e);n&&(r=(n(e,this.$props)||{}).query,t=helper_27(n(e,this.$props)),helper_35(this.$props.componentId,this.$props,e));this.setQueryOptions(this.$props.componentId,_extends({},this.generateQueryOptions(),t)),this.updateQueryAction({componentId:this.$props.componentId,query:r,value:e,label:this.$props.filterLabel,showFilter:this.$props.showFilter,URLParams:this.$props.URLParams,componentType:constants_1$1.treeList})},setValue:function(e,t){var n=this;void 0===t&&(t=!0);var r=!1===Array.isArray(e)?helper_7(e):e;helper_42(this.$props.componentId,r,this.$props.beforeValueChange,(function(){var o=function(){n.updateQuery(r),n.$props.onValueChange&&n.$props.onValueChange(r)};t?(n.selectedValues=Array.isArray(e)?transformValueIntoLocalState(e):e,o()):o()}))},generateQueryOptions:function(){var e=helper_39(this.$props),t=helper_7(this.selectedValues);return helper_20(t,e,this.$props)},updateDefaultQuery:function(e){var t=helper_7(this.selectedValues);helper_34(this.$props.componentId,this.$props,t),helper_22(transform_11(this.$props.componentId),e,t,this.$props,this.generateQueryOptions(),null)},updateQueryOptions:function(){var e=this.generateQueryOptions(this.$props,{},helper_7(this.$data.selectedValues));this.$props.defaultQuery?this.updateDefaultQuery(e):this.setQueryOptions(transform_11(this.$props.componentId),e)}},render:function(){var e=this,t=this.$props,n=t.style,r=t.className,o=t.mode,s=t.showLine,a=t.renderItem,i=t.showCheckbox,l=t.innerClass,u=t.showRadio,c=t.showCount,p=t.showSwitcherIcon,d=t.switcherIcon,h=t.title,f=t.loader,m=t.renderError;if(this.isLoading)return(this.$slots.loader?this.$slots.loader():f)||null;if(this.error)return this.$slots.renderError?this.$slots.renderError(this.error):helper_12(m)?m(this.error):m;var g=this.getTransformedData();return g&&0!==g.length?vue.createVNode(Container,{style:n,class:r},{default:function(){return[t.title&&vue.createVNode(Title,{class:helper_31(l,"title")||null},_isSlot$8(h)?h:{default:function(){return[h]}}),e.renderSearch(),e.hasCustomRenderer?e.getComponent():vue.createVNode(HierarchicalMenuComponent,{key:"initial-node",listArray:g,parentPath:"",isExpanded:!0,listItemProps:{mode:o,selectedValues:e.selectedValues,searchTerm:e.searchTerm,showLine:s,renderItem:null!=a?a:e.$slots.renderItem,handleListItemClick:e.handleListItemClick,showCheckbox:i,innerClass:l,showRadio:u,renderIcon:e.renderIcon,showCount:c,showSwitcherIcon:p,switcherIcon:null!=d?d:e.$slots.switcherIcon}},null)]}}):this.$slots.renderNoResults?this.$slots.renderNoResults():null}},mapStateToProps$7=function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,rawData:e.rawData[t.componentId]||{},aggregationData:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId]||{},themePreset:e.config.themePreset,error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$4={setQueryOptions:setQueryOptions$3,updateQueryAction:updateQueryAction};TreeList.hasInternalComponent=function(){return!0};var TreeListConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$7,mapDispatchtoProps$4)(TreeList),{componentType:constants_1$1.treeList,internalComponent:TreeList.hasInternalComponent()})),_templateObject$o,_templateObject2$c;TreeListConnected.name=TreeList.name,TreeListConnected.install=function(e){e.component(TreeListConnected.name,TreeListConnected)},TreeListConnected.componentType=constants_1$1.treeList;var small="\n\tmin-height: 0;\n\theight: 30px;\n\tborder: 0;\n\tbox-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;\n\tborder-radius: 2px;\n",dark$2=function(e){var t=e.theme;return"\n\tbackground-color: "+(t.colors?t.colors.backgroundColor:"")+";\n\tborder-color: "+(t.colors?t.colors.borderColor:"")+";\n\tcolor: "+(t.colors?t.colors.textColor:"")+";\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: "+(t.colors?t.colors.backgroundColor:"")+";\n\t}\n"},Select=styled("button")(_templateObject$o||(_templateObject$o=_taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tmin-height: 42px;\n\tborder-radius: 0;\n\toutline: none;\n\tpadding: 5px 12px;\n\tfont-size: 0.9rem;\n\tline-height: 1.2rem;\n\tbackground-color: #fff;\n\tborder: 1px solid #ccc;\n\tcolor: #424242;\n\tcursor: pointer;\n\tuser-select: none;\n\ttransition: all 0.3s ease;\n\n\t",";\n\n\t& > div {\n\t\twidth: calc(100% - 24px);\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\ttext-align: left;\n\t}\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: #fcfcfc;\n\t}\n\n\t",";\n"])),(function(e){return e.small?small:null}),(function(e){return"dark"===e.themePreset&&dark$2})),Tick=styled("span")(_templateObject2$c||(_templateObject2$c=_taggedTemplateLiteralLoose(["\n\twidth: 16px;\n\theight: 16px;\n\tdisplay: inline-block;\n\tposition: relative;\n\tuser-select: none;\n\talign-items: center;\n\n\t&::after {\n\t\tbox-sizing: content-box;\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tbackground-color: transparent;\n\t\ttop: 50%;\n\t\tleft: 0;\n\t\twidth: 8px;\n\t\theight: 4px;\n\t\tmargin-top: -4px;\n\t\tborder-style: solid;\n\t\tborder-color: ",";\n\t\tborder-width: 0 0 2px 2px;\n\t\tborder-radius: 0;\n\t\tborder-image: none;\n\t\ttransform: rotate(-45deg) scale(1);\n\t\ttransition: all 200ms ease-out;\n\t}\n"])),(function(e){return e.theme.colors.primaryColor})),_templateObject$p,open="\n\ttop: 0.55em;\n\ttransform: rotate(-45deg);\n",Chevron=styled("span")(_templateObject$p||(_templateObject$p=_taggedTemplateLiteralLoose(["\n\t&::before {\n\t\tcontent: '';\n\t\tborder-style: solid;\n\t\tborder-width: 0.15em 0.15em 0 0;\n\t\tdisplay: inline-block;\n\t\theight: 0.45em;\n\t\tposition: relative;\n\t\ttop: 0.35em;\n\t\tleft: 0;\n\t\ttransform: rotate(135deg);\n\t\tvertical-align: top;\n\t\twidth: 0.45em;\n\n\t\t",";\n\t}\n"])),(function(e){return e.open?open:null})),getClassName$6=lib_8.getClassName,Dropdown={data:function(){return this.__state={isOpen:!1,searchTerm:""},this.__state},inject:{theme:{from:"theme_reactivesearch"}},props:{innerClass:types.style,items:types.data,keyField:Q.string.def("key"),labelField:Q.string.def("label"),multi:Q.bool,placeholder:types.string,returnsObject:Q.bool,customLabelRenderer:types.func,hasCustomRenderer:Q.bool,customRenderer:types.func,renderItem:types.func,renderNoResults:Q.any,handleChange:types.func,transformData:types.func,selectedItem:types.selectedValue,showCount:Q.bool,single:Q.bool,small:Q.bool.def(!1),themePreset:types.themePreset,showSearch:Q.bool,showClear:Q.bool,searchPlaceholder:Q.string.def("Type here to search...")},render:function(){var e=this,t=this.$props,n=t.items,r=t.selectedItem,o=t.placeholder,s=t.labelField,a=t.keyField,i=t.themePreset,l=t.renderItem,u=t.transformData,c=t.footer,p=t.customLabelRenderer,d=t.hasCustomRenderer,h=t.customRenderer,f=n;u&&(f=u(f));var m=f.filter((function(t){return!!String(t[s]).length&&(!e.$props.showSearch||!e.$data.searchTerm||suggestions_1(String(t[s])).toLowerCase().includes(suggestions_1(e.$data.searchTerm.toLowerCase())))}));return vue.createVNode(Downshift,{isOpen:this.$data.isOpen,selectedItem:r,handleChange:this.onChange,handleMouseup:this.handleStateChange},{default:function(t){var n=t.getItemProps,u=t.isOpen,g=t.highlightedIndex,y=t.getButtonProps,v=t.getItemEvents,b=t.getInputEvents;return vue.createVNode("div",{class:suggestionsContainer},[vue.createVNode(Select,vue.mergeProps(babelHelperVueTransformOn(y({onClick:e.toggle})),{class:getClassName$6(e.$props.innerClass,"select")||"",title:r?e.renderToString(r):o,small:e.$props.small,themePreset:e.$props.themePreset}),{default:function(){return[p?p(r):vue.createVNode("div",null,[r?e.renderToString(r):o]),vue.createVNode(Chevron,{open:u},null)]}}),d?h(f,{getItemProps:n,isOpen:u,highlightedIndex:g,getButtonProps:y,getItemEvents:v}):u&&f.length?vue.createVNode("ul",{class:suggestions$1(i,e.theme)+" "+(e.$props.small?"small":"")+" "+getClassName$6(e.$props.innerClass,"list")},[e.$props.showSearch?e.renderSearchbox({on:{input:b({onInput:e.handleInputChange}).input}}):null,d||0!==m.length?m.map((function(t,o){var i=e.$props.multi&&(r&&!!r[t[a]]||Array.isArray(r)&&r.find((function(e){return e[s]===t[s]})));return e.$props.multi||(i=t.key===r),vue.createVNode("li",vue.mergeProps(n({item:t}),babelHelperVueTransformOn(v({item:t})),{key:t[a],class:i?"active":"",style:{backgroundColor:e.getBackgroundColor(g===o,i)}}),[l?l({label:t[s],count:t.doc_count,isChecked:i&&e.$props.multi}):vue.createVNode("div",null,["string"==typeof t[s]?vue.createVNode("span",{innerHTML:t[s]},null):t[s],e.$props.showCount&&t.doc_count&&vue.createVNode("span",{class:getClassName$6(e.$props.innerClass,"count")||""},[vue.createTextVNode(" ("),t.doc_count,vue.createTextVNode(")")])]),i&&e.$props.multi?vue.createVNode(Tick,{class:getClassName$6(e.$props.innerClass,"icon")||""},null):null])})):e.renderNoResult(),c]):null])}})},methods:{toggle:function(){this.isOpen=!this.$data.isOpen},close:function(){this.isOpen=!1},onChange:function(e){this.$props.returnsObject?this.$props.handleChange(e):this.$props.handleChange(e[this.$props.keyField]),this.$props.multi||(this.isOpen=!1,this.searchTerm="")},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){var n="dark"===this.$props.themePreset;return e?n?"#555":"#eee":t?n?"#686868":"#fafafa":n?"#424242":"#fff"},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},clearSearchTerm:function(){this.searchTerm=""},renderToString:function(e){var t=this,n=this.$props.customLabelRenderer;if(n){var r=n(e);if("string"==typeof r)return r}return Array.isArray(e)&&e.length?e.map((function(e){return t.renderToString(e)})).join(", "):e&&"object"==typeof e?e[this.$props.labelField]?e[this.$props.labelField]:Object.keys(e).length?this.renderToString(Object.keys(e)):this.$props.placeholder:e},renderNoResult:function(){var e=this.$slots.renderNoResults||this.$props.renderNoResults;return vue.createVNode("p",{class:getClassName$6(this.$props.innerClass,"noResults")||null},[isFunction(e)?e():e])},renderSearchbox:function(e){var t=this,n=this.$props,r=n.componentId,o=n.searchPlaceholder,s=n.showClear,a=n.themePreset,i=n.innerClass,l=vue.createVNode(Input,vue.mergeProps({id:r+"-input",style:{border:0,borderBottom:"1px solid #ddd"},showIcon:!1,showClear:s,class:getClassName$6(i,"input"),placeholder:o,value:this.$data.searchTerm,themePreset:a},e),null);return s?vue.createVNode(InputWrapper,null,{default:function(){return[l,t.searchTerm&&vue.createVNode(IconGroup,{groupPosition:"right",positionType:"absolute"},{default:function(){return[vue.createVNode(IconWrapper,{onClick:t.clearSearchTerm,isClearIcon:!0},{default:function(){return[vue.createVNode(CancelSvg,null,null)]}})]}})]}}):l}}};function _isSlot$9(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var updateQuery$4=lib_5.updateQuery,setQueryOptions$4=lib_5.setQueryOptions,setCustomQuery$3=lib_5.setCustomQuery,setDefaultQuery$4=lib_5.setDefaultQuery,getQueryOptions$3=lib_8.getQueryOptions,checkValueChange$3=lib_8.checkValueChange,checkPropChange$1=lib_8.checkPropChange,getClassName$7=lib_8.getClassName,isEqual$7=lib_8.isEqual,getCompositeAggsQuery$2=lib_8.getCompositeAggsQuery,extractQueryFromCustomQuery$3=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$3=lib_8.getOptionsForCustomQuery,SingleDropdownList={name:"SingleDropdownList",data:function(){var e=this.$props;return this.__state={currentValue:"",modifiedOptions:[],after:{},isLastBucket:!1},this.internalComponent=e.componentId+"__internal",this.__state},props:{beforeValueChange:types.func,className:Q.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultQuery:types.func,defaultValue:types.string,value:types.value,filterLabel:types.string,innerClass:types.style,placeholder:Q.string.def("Select a value"),react:types.react,renderLabel:types.func,render:types.func,renderItem:types.func,renderError:types.title,renderNoResults:Q.any,transformData:types.func,selectAllLabel:types.string,showCount:Q.bool.def(!0),showFilter:Q.bool.def(!0),size:Q.number,sortBy:Q.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:Q.bool.def(!1),showMissing:Q.bool.def(!1),missingLabel:Q.string.def("N/A"),showSearch:Q.bool.def(!1),showClear:Q.bool.def(!1),showLoadMore:Q.bool.def(!1),loadMoreLabel:Q.oneOfType([Q.string,Q.nullable]).def("Load More"),nestedField:types.string,index:Q.string,searchPlaceholder:Q.string.def("Type here to search..."),endpoint:types.endpointConfig},created:function(){var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.currentValue),this.updateQueryOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{options:function(e,t){var n=this;e&&checkPropChange$1(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,s=n.$data.modifiedOptions;if(r){var a=e[o].buckets,i=[].concat(s,a.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),l=e[o].after_key,u=!a.length;n.after={after:l},n.isLastBucket=u,n.modifiedOptions=i}else n.modifiedOptions=e[n.$props.dataField]?e[n.$props.dataField].buckets:[]}))},size:function(){this.updateQueryOptions(this.$props)},sortBy:function(){this.updateQueryOptions(this.$props)},dataField:function(){this.updateQueryOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){isEqual$7(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,s=t.renderError,a=t.renderLabel,i=this.$data.isLastBucket,l=[],u=this.$slots.renderItem||o,c=this.$slots.renderError||s,p=this.$slots.renderLabel||a,d=this.$slots.renderNoResults||this.$props.renderNoResults;return c&&this.error?isFunction(c)?c(this.error):c:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(l=[{key:this.$props.selectAllLabel,doc_count:this.totalDocumentCount}]),vue.createVNode(Container,{class:this.$props.className},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$7(e.$props.innerClass,"title")||""},{default:function(){return[e.$props.title]}}),vue.createVNode(Dropdown,{innerClass:e.$props.innerClass,items:[].concat(l,e.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return _extends({},e,{key:String(e.key)})}))),handleChange:e.handleChange,selectedItem:e.$data.currentValue,placeholder:e.$props.placeholder,labelField:"key",showCount:e.$props.showCount,hasCustomRenderer:e.hasCustomRenderer,customRenderer:e.getComponent,renderItem:u,renderNoResults:e.$slots.renderNoResults||e.$props.renderNoResults,themePreset:e.themePreset,showSearch:e.$props.showSearch,showClear:e.$props.showClear,searchPlaceholder:e.$props.searchPlaceholder,transformData:e.$props.transformData,footer:n&&!i&&vue.createVNode("div",{css:loadMoreContainer},[vue.createVNode(Button,{onClick:e.handleLoadMore},_isSlot$9(r)?r:{default:function(){return[r]}})]),customLabelRenderer:p},null)]}})):d&&isFunction(d)?vue.createVNode("div",null,[d()]):d&&!isFunction(d)?d:null},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);checkValueChange$3(t.componentId,e,t.beforeValueChange,(function(){n.currentValue=e,n.updateQueryHandler(e,t),n.$emit("valueChange",e),n.$emit("value-change",e)}))},handleChange:function(e){void 0===this.$props.value?this.setValue(e):this.$emit("change",e)},updateDefaultQueryHandler:function(e,t){var n=SingleDropdownList.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=extractQueryFromCustomQuery$3(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var s=getOptionsForCustomQuery$3(r);this.setQueryOptions(this.internalComponent,s,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:constants_1$1.singleDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=SingleDropdownList.defaultQuery(e,t);if(n){var o=n(e,t);r=extractQueryFromCustomQuery$3(o),updateCustomQuery(t.componentId,this.setCustomQuery,t,e);var s=getOptionsForCustomQuery$3(o);this.setQueryOptions(t.componentId,s,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.singleDropdownList})},generateQueryOptions:function(e,t){var n=getQueryOptions$3(e);return e.showLoadMore?getCompositeAggsQuery$2({query:n,props:e,after:t}):getAggsQuery(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=SingleDropdownList.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=this.$data.currentValue,o=getOptionsForCustomQuery$3(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,_extends({},n,o))}else this.setQueryOptions(this.internalComponent,n)},handleLoadMore:function(){this.updateQueryOptions(this.$props,!0)},getComponent:function(e,t){void 0===t&&(t={});var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,value:n,data:e||[],rawData:this.rawData,handleChange:this.handleChange,downshiftProps:t};return getComponent(r,this)}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)}},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,nestedField:t.nestedField,selectAllLabel:t.selectAllLabel,showMissing:t.showMissing}}},generateQueryOptions:function(e,t){var n=getQueryOptions$3(e);return e.showLoadMore?getCompositeAggsQuery$2({query:n,props:e,after:t}):getAggsQuery(n,e)},hasInternalComponent:function(){return!0}},mapStateToProps$8=function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId]}},mapDispatchtoProps$5={setQueryOptions:setQueryOptions$4,updateQuery:updateQuery$4,setCustomQuery:setCustomQuery$3,setDefaultQuery:setDefaultQuery$4},ListConnected$2=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$8,mapDispatchtoProps$5)(SingleDropdownList),{componentType:constants_1$1.singleDropdownList,internalComponent:SingleDropdownList.hasInternalComponent()}));function _isSlot$a(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}ListConnected$2.defaultQuery=SingleDropdownList.defaultQuery,ListConnected$2.generateQueryOptions=SingleDropdownList.generateQueryOptions,ListConnected$2.hasInternalComponent=SingleDropdownList.hasInternalComponent,ListConnected$2.name=SingleDropdownList.name,ListConnected$2.componentType=constants_1$1.singleDropdownList,ListConnected$2.install=function(e){e.component(ListConnected$2.name,ListConnected$2)};var updateQuery$5=lib_5.updateQuery,setQueryOptions$5=lib_5.setQueryOptions,setCustomQuery$4=lib_5.setCustomQuery,setDefaultQuery$5=lib_5.setDefaultQuery,isEqual$8=lib_8.isEqual,getQueryOptions$4=lib_8.getQueryOptions,checkValueChange$4=lib_8.checkValueChange,checkPropChange$2=lib_8.checkPropChange,getClassName$8=lib_8.getClassName,getCompositeAggsQuery$3=lib_8.getCompositeAggsQuery,extractQueryFromCustomQuery$4=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$4=lib_8.getOptionsForCustomQuery,MultiDropdownList={name:"MultiDropdownList",data:function(){var e=this.$props;return this.__state={currentValue:{},modifiedOptions:[],after:{},isLastBucket:!1},this.internalComponent=e.componentId+"__internal",this.__state},props:{beforeValueChange:types.func,className:Q.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultValue:types.stringArray,value:types.stringArray,defaultQuery:types.func,filterLabel:types.string,innerClass:types.style,placeholder:Q.string.def("Select values"),queryFormat:Q.oneOf(["and","or"]).def("or"),react:types.react,renderLabel:types.func,render:types.func,renderItem:types.func,renderError:types.title,renderNoResults:Q.any,transformData:types.func,selectAllLabel:types.string,showCount:Q.bool.def(!0),showFilter:Q.bool.def(!0),size:Q.number,sortBy:Q.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:Q.bool.def(!1),showMissing:Q.bool.def(!1),missingLabel:Q.string.def("N/A"),showSearch:Q.bool.def(!1),showClear:Q.bool.def(!1),showLoadMore:Q.bool.def(!1),loadMoreLabel:Q.oneOfType([Q.string,Q.nullable]).def("Load More"),nestedField:types.string,index:Q.string,searchPlaceholder:Q.string.def("Type here to search..."),endpoint:types.endpointConfig},created:function(){var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.currentValue),this.updateQueryOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue,!0):this.$props.value?this.setValue(this.$props.value,!0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0)},watch:{selectedValue:function(e){var t=this,n=Object.keys(this.$data.currentValue);this.$props.selectAllLabel&&(n=n.filter((function(e){return e!==t.$props.selectAllLabel})),this.$data.currentValue[this.$props.selectAllLabel]&&(n=[this.$props.selectAllLabel])),isEqual$8(n,e)||this.setValue(e||[],!0)},options:function(e,t){var n=this;e&&checkPropChange$2(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,s=n.$data.modifiedOptions;if(r){var a=e[o].buckets,i=[].concat(s,a.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),l=e[o].after_key,u=!a.length;n.after={after:l},n.isLastBucket=u,n.modifiedOptions=i}else n.modifiedOptions=e[n.$props.dataField]?e[n.$props.dataField].buckets:[]}))},size:function(){this.updateQueryOptions(this.$props)},sortBy:function(){this.updateQueryOptions(this.$props)},dataField:function(){this.updateQueryOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e,!0)},value:function(e,t){isEqual$8(e,t)||this.setValue(e,!0)},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,s=t.renderError,a=t.renderLabel,i=this.$slots.renderItem||o,l=this.$slots.renderError||s,u=this.$slots.renderLabel||a,c=this.$data.isLastBucket,p=this.$slots.renderNoResults||this.$props.renderNoResults,d=[];return l&&this.error?isFunction(l)?l(this.error):l:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(d=[{key:this.$props.selectAllLabel,doc_count:this.totalDocumentCount}]),vue.createVNode(Container,{class:this.$props.className},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$8(e.$props.innerClass,"title")||""},{default:function(){return[e.$props.title]}}),vue.createVNode(Dropdown,{innerClass:e.$props.innerClass,items:[].concat(d,e.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return _extends({},e,{key:String(e.key)})}))),hasCustomRenderer:e.hasCustomRenderer,customRenderer:e.getComponent,handleChange:e.handleChange,selectedItem:e.$data.currentValue,placeholder:e.$props.placeholder,labelField:"key",multi:!0,showCount:e.$props.showCount,themePreset:e.themePreset,renderItem:i,renderNoResults:e.$slots.renderNoResults||e.$props.renderNoResults,showSearch:e.$props.showSearch,showClear:e.$props.showClear,searchPlaceholder:e.$props.searchPlaceholder,transformData:e.$props.transformData,footer:n&&!c&&vue.createVNode("div",{css:loadMoreContainer},[vue.createVNode(Button,{onClick:e.handleLoadMore},_isSlot$a(r)?r:{default:function(){return[r]}})]),customLabelRenderer:u},null)]}})):p&&isFunction(p)?vue.createVNode("div",null,[p()]):p&&!isFunction(p)?p:null},methods:{handleChange:function(e){if(void 0===this.$props.value)this.setValue(e);else{var t=parseValueArray(this.currentValue,e);this.$emit("change",t)}},setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,s=this.$data.currentValue,a=null;if(o&&e.includes(o))s[o]?(s={},a=[]):(this.$data.modifiedOptions.forEach((function(e){s[e.key]=!0})),s[o]=!0,a=[o]);else if(t){if(a=e,s={},Array.isArray(e)&&e.forEach((function(e){s[e]=!0})),o&&o in s){var i=s,l=(i[o],_objectWithoutPropertiesLoose(i,[o].map(_toPropertyKey$1)));s=_extends({},l)}}else{if(s[e]){var u=s,c=(u[e],_objectWithoutPropertiesLoose(u,[e].map(_toPropertyKey$1)));s=_extends({},c)}else s[e]=!0;if(o&&o in s){var p=s,d=(p[o],_objectWithoutPropertiesLoose(p,[o].map(_toPropertyKey$1)));s=_extends({},d)}a=Object.keys(s)}checkValueChange$4(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=_extends({},s),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n=MultiDropdownList.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=extractQueryFromCustomQuery$4(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var s=getOptionsForCustomQuery$4(r);this.setQueryOptions(this.internalComponent,s,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:constants_1$1.multiDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=MultiDropdownList.defaultQuery(e,t);if(n){var o=n(e,t);r=extractQueryFromCustomQuery$4(o),updateCustomQuery(t.componentId,this.setCustomQuery,t,e);var s=getOptionsForCustomQuery$4(o);this.setQueryOptions(t.componentId,s,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.multiDropdownList})},generateQueryOptions:function(e,t){var n=getQueryOptions$4(e);return e.showLoadMore?getCompositeAggsQuery$3({query:n,props:e,after:t}):getAggsQuery(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=MultiDropdownList.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=Object.keys(this.$data.currentValue),o=getOptionsForCustomQuery$4(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,_extends({},n,o))}else this.setQueryOptions(this.internalComponent,n)},handleLoadMore:function(){this.updateQueryOptions(this.$props,!0)},getComponent:function(e,t){void 0===t&&(t={});var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,value:n,data:e||[],rawData:this.rawData,handleChange:this.handleChange,downshiftProps:t};return getComponent(r,this)}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)}},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,nestedField:t.nestedField,selectAllLabel:t.selectAllLabel,showMissing:t.showMissing}}},generateQueryOptions:function(e,t){var n=getQueryOptions$4(e);return e.showLoadMore?getCompositeAggsQuery$3({query:n,props:e,after:t}):getAggsQuery(n,e)},hasInternalComponent:function(){return!0}},mapStateToProps$9=function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId]}},mapDispatchtoProps$6={setQueryOptions:setQueryOptions$5,updateQuery:updateQuery$5,setCustomQuery:setCustomQuery$4,setDefaultQuery:setDefaultQuery$5},ListConnected$3=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$9,mapDispatchtoProps$6)(MultiDropdownList),{componentType:constants_1$1.multiDropdownList,internalComponent:MultiDropdownList.hasInternalComponent()}));ListConnected$3.name=MultiDropdownList.name,ListConnected$3.componentType=constants_1$1.multiDropdownList,ListConnected$3.defaultQuery=MultiDropdownList.defaultQuery,ListConnected$3.generateQueryOptions=MultiDropdownList.generateQueryOptions,ListConnected$3.hasInternalComponent=MultiDropdownList.hasInternalComponent,ListConnected$3.install=function(e){e.component(ListConnected$3.name,ListConnected$3)};var updateQuery$6=lib_5.updateQuery,setQueryOptions$6=lib_5.setQueryOptions,setCustomQuery$5=lib_5.setCustomQuery,isEqual$9=lib_8.isEqual,checkValueChange$5=lib_8.checkValueChange,getClassName$9=lib_8.getClassName,getOptionsFromQuery=lib_8.getOptionsFromQuery,handleA11yAction$1=lib_8.handleA11yAction,ToggleButton={name:"ToggleButton",props:{componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,data:types.data,dataField:types.stringRequired,defaultValue:types.any,value:types.stringOrArray,filterLabel:types.string,nestedField:types.string,innerClass:types.style,multiSelect:Q.bool,react:types.react,showFilter:Q.bool,title:types.title,URLParams:Q.bool,renderItem:types.func,index:Q.string,enableStrictSelection:Q.bool,endpoint:types.endpointConfig},data:function(){return this.__state={currentValue:[]},this.__state},created:function(){updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue);var e=this.$props,t=this.selectedValue||e.value||e.defaultValue||[],n=ToggleButton.parseValue(t,e);this.setValue(n),this.$data.currentValue.length&&this.handleToggle(this.$data.currentValue,!0,e,!1)},watch:{defaultValue:function(e){this.setValue(ToggleButton.parseValue(e,this.$props))},dataField:function(){this.updateQuery(this.$data.currentValue,this.$props)},nestedField:function(){this.updateQuery(this.$data.currentValue,this.$props)},value:function(e,t){isEqual$9(e,t)||this.handleToggle(e,!0,this.$props)},selectedValue:function(e,t){if(this.$props.multiSelect)isEqual$9(this.$data.currentValue,e)||isEqual$9(t,e)||this.handleToggle(e||[],!0,this.$props);else{var n=this.$data.currentValue[0]?this.$data.currentValue[0].value:null;isEqual$9(n,this.selectedValue)||isEqual$9(t,this.selectedValue)||this.handleToggle(this.selectedValue||[],!0,this.$props)}},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQuery(this.$data.currentValue,this.$props)}},methods:{handleToggle:function(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!0);var o=this.$data.currentValue,s=e,a=[];a=t?ToggleButton.parseValue(s,n):this.$props.multiSelect?o.some((function(e){return e.value===s.value}))?o.filter((function(e){return e.value!==s.value})):o.concat(s):o.some((function(e){return e.value===s.value}))?[]:[s],this.setValue(a,n,r)},setReact:function(e){e.react&&this.watchComponent(e.componentId,e.react)},setValue:function(e,t,n){var r=this;void 0===t&&(t=this.$props),void 0===n&&(n=!0);checkValueChange$5(t.componentId,t.multiSelect?e:e[0],t.beforeValueChange,(function(){var o=function(){r.updateQuery(e,t),r.$emit("valueChange",e),r.$emit("value-change",e)};n?(r.currentValue=e,o()):o()}))},updateQuery:function(e,t){var n=e;t.multiSelect||(n=e[0]?e[0].value:null);var r=t.customQuery,o=ToggleButton.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,this.setQueryOptions(t.componentId,getOptionsFromQuery(r(e,t)),!1),updateCustomQuery(t.componentId,this.setCustomQuery,t,e));this.updateQueryHandler({componentId:t.componentId,query:o,value:n,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.toggleButton})},handleClick:function(e){var t=this.$props,n=t.enableStrictSelection,r=t.multiSelect;return!(n&&!r&&this.$data.currentValue.find((function(t){return isEqual$9(e,t)})))&&(void 0===this.$props.value?this.handleToggle(e):this.$emit("change",e.value),!0)},renderButton:function(e){var t=this,n=this.$slots.renderItem||this.renderItem,r=this.$data.currentValue.some((function(t){return t.value===e.value}));return n?n({item:e,isSelected:r,handleClick:function(){return t.handleClick(e)}}):vue.createVNode(Button,{class:getClassName$9(this.$props.innerClass,"button")+" "+(r?"active":""),onClick:function(){return t.handleClick(e)},key:e.value,primary:r,large:!0,tabIndex:r?"-1":"0",onKeypress:function(n){return handleA11yAction$1(n,(function(){return t.handleClick(e)}))}},{default:function(){return[e.label]}})}},render:function(){var e=this;return vue.createVNode(Container,{class:toggleButtons},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$9(e.$props.innerClass,"title")},{default:function(){return[e.$props.title]}}),e.$props.data.map((function(t){return e.renderButton(t)}))]}})},parseValue:function(e,t){return Array.isArray(e)?"string"==typeof e[0]?t.data.filter((function(t){return e.includes(t.value)})):e:t.data.filter((function(t){return t.value===e}))},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,nestedField:t.nestedField,selectAllLabel:t.selectAllLabel,showMissing:t.showMissing,multiSelect:t.multiSelect}}}},mapStateToProps$a=function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId]}},mapDispatchtoProps$7={updateQueryHandler:updateQuery$6,setQueryOptions:setQueryOptions$6,setCustomQuery:setCustomQuery$5},TBConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$a,mapDispatchtoProps$7)(ToggleButton),{componentType:constants_1$1.toggleButton}));TBConnected.parseValue=ToggleButton.parseValue,TBConnected.defaultQuery=ToggleButton.defaultQuery,TBConnected.name=ToggleButton.name,TBConnected.install=function(e){e.component(TBConnected.name,TBConnected)},TBConnected.componentType=constants_1$1.toggleButton;var _excluded$3=["options"],updateQuery$7=lib_5.updateQuery,setQueryOptions$7=lib_5.setQueryOptions,setCustomQuery$6=lib_5.setCustomQuery,setDefaultQuery$6=lib_5.setDefaultQuery,parseHits$1=lib_8.parseHits,isEqual$a=lib_8.isEqual,getCompositeAggsQuery$4=lib_8.getCompositeAggsQuery,getResultStats$2=lib_8.getResultStats,extractQueryFromCustomQuery$5=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$5=lib_8.getOptionsForCustomQuery,ReactiveComponent={name:"ReactiveComponent",props:{componentId:types.stringRequired,compoundClause:types.compoundClause,aggregationField:types.string,aggregationSize:Q.number,size:Q.number,defaultQuery:types.func,customQuery:types.func,filterLabel:types.string,react:types.react,showFilter:Q.bool.def(!0),URLParams:Q.bool.def(!1),distinctField:types.string,distinctFieldConfig:types.props,index:Q.string,endpoint:types.endpointConfig},created:function(){var e=this,t=this.$props;this.internalComponent=null,this.$defaultQuery=null,updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.selectedValue);var n=t.customQuery,r=t.componentId,o=t.filterLabel,s=t.showFilter,a=t.URLParams;if(n){var i=n(this.selectedValue,t),l=extractQueryFromCustomQuery$5(i),u=i?getOptionsForCustomQuery$5(i):null;u?this.setQueryOptions(r,_extends({},u,this.getAggsQuery()),!1):this.setQueryOptions(r,this.getAggsQuery(),!1),this.updateQuery({componentId:r,query:l,value:this.selectedValue||null,label:o,showFilter:s,URLParams:a})}if(this.setQuery=function(n){var r=n.options,o=_objectWithoutPropertiesLoose(n,_excluded$3),s=o.query;s&&s.query&&(s=s.query);var a=_extends({},r,{query:s}),i=a;s&&s.id&&(i=s),e.setCustomQuery(t.componentId,i),r&&e.setQueryOptions(t.componentId,_extends({},e.getAggsQuery(),r),!1),e.updateQuery(_extends({},o,{query:a.query,componentId:t.componentId,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams}))},t.defaultQuery&&(this.internalComponent=t.componentId+"__internal"),this.internalComponent&&this.$props.defaultQuery){updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.$defaultQuery=this.$props.defaultQuery(this.selectedValue,this.$props);var c=extractQueryFromCustomQuery$5(this.$defaultQuery),p=getOptionsForCustomQuery$5(this.$defaultQuery);p?this.setQueryOptions(this.internalComponent,_extends({},p,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),this.updateQuery({componentId:this.internalComponent,query:c})}},watch:{hits:function(e,t){isEqual$a(e,t)||this.$emit("data",this.getData())},rawData:function(e,t){isEqual$a(e,t)||this.$emit("data",this.getData())},aggregations:function(e,t){isEqual$a(e,t)||this.$emit("data",this.getData())},aggregationData:function(e,t){isEqual$a(e,t)||this.$emit("data",this.getData())},promotedResults:function(e,t){isEqual$a(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){isEqual$a(e,t)||this.$emit("data",this.getData())},total:function(e,t){isEqual$a(e,t)||this.$emit("data",this.getData())},time:function(e,t){isEqual$a(e,t)||this.$emit("data",this.getData())},defaultQuery:function(e,t){if(e&&!isQueryIdentical(e,t,this.selectedValue,this.$props)){this.$defaultQuery=e(this.selectedValue,this.$props);var n=extractQueryFromCustomQuery$5(this.$defaultQuery),r=getOptionsForCustomQuery$5(this.$defaultQuery);r?this.setQueryOptions(this.internalComponent,_extends({},r,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.updateQuery({componentId:this.internalComponent,query:n})}},customQuery:function(e,t){if(e&&!isQueryIdentical(e,t,this.selectedValue,this.$props)){var n=this.$props.componentId;this.$customQuery=e(this.selectedValue,this.$props);var r=extractQueryFromCustomQuery$5(this.$customQuery),o=getOptionsForCustomQuery$5(this.$customQuery);o?this.setQueryOptions(n,_extends({},o,this.getAggsQuery()),!1):this.setQueryOptions(n,this.getAggsQuery(),!1),updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.selectedValue),this.updateQuery({componentId:n,query:r})}}},render:function(){try{var e=this.$slots.default,t=this.error,n=this.isLoading,r=this.selectedValue,o=_extends({error:t,loading:n},this.getData(),{value:r,setQuery:this.setQuery});return vue.createVNode("div",null,[e(o)])}catch(e){return null}},methods:{getAggsQuery:function(){return this.aggregationField?{aggs:getCompositeAggsQuery$4({props:this.$props,showTopHits:!0,value:this.selectedValue}).aggs}:{}},getData:function(){var e=this.hits,t=this.aggregations,n=this.aggregationData,r=this.promotedResults,o=this.rawData,s=parseHits$1(e);if(r.length){var a=r.map((function(e){return e._id})).filter(Boolean);a&&(s=s.filter((function(e){return!a.includes(e._id)}))),s=[].concat(r,s)}return{data:s,aggregationData:n,rawData:o,aggregations:t,promotedData:r,resultStats:this.stats}}},computed:{stats:function(){return getResultStats$2(this)}},hasInternalComponent:function(e){return!!e.defaultQuery}},mapStateToProps$b=function(e,t){return{aggregations:e.aggregations[t.componentId]&&e.aggregations[t.componentId]||null,aggregationData:e.compositeAggregations[t.componentId]||[],hits:e.hits[t.componentId]&&e.hits[t.componentId].hits||[],rawData:e.rawData[t.componentId],error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,promotedResults:e.promotedResults[t.componentId]||[],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,componentProps:e.props[t.componentId]}},mapDispatchtoProps$8={setQueryOptions:setQueryOptions$7,updateQuery:updateQuery$7,setCustomQuery:setCustomQuery$6,setDefaultQuery:setDefaultQuery$6},ConnectedComponent=ComponentWrapper$1(connect(mapStateToProps$b,mapDispatchtoProps$8)(ReactiveComponent),{componentType:constants_1$1.reactiveComponent}),RcConnected=PreferencesConsumer({name:"RcConnected",render:function(){return vue.h(ConnectedComponent,null,this.$slots)}});RcConnected.name=ReactiveComponent.name,RcConnected.hasInternalComponent=ReactiveComponent.hasInternalComponent,RcConnected.componentType=constants_1$1.reactiveComponent,RcConnected.install=function(e){e.component(RcConnected.name,RcConnected)};var vueSliderComponent_umd_min=createCommonjsModule((function(e,t){"undefined"!=typeof self&&self,e.exports=function(e){return function(){var t={388:function(e,t){var n,r,o;"undefined"!=typeof self&&self,r=[],n=function(){return function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(e){var n,r,o,s=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(e.stack),a=s&&s[1]||!1,i=s&&s[2]||!1,l=document.location.href.replace(document.location.hash,""),u=document.getElementsByTagName("script");a===l&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(i-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var c=0;c<u.length;c++){if("interactive"===u[c].readyState)return u[c];if(u[c].src===a)return u[c];if(a===l&&u[c].innerHTML&&u[c].innerHTML.trim()===o)return u[c]}return null}}},void 0===(o="function"==typeof n?n.apply(t,r):n)||(e.exports=o)},831:function(e,t){t.Z=function(e,t){for(var n,r=e.__vccOpts||e,o=_createForOfIteratorHelperLoose(t);!(n=o()).done;){var s=n.value,a=s[0],i=s[1];r[a]=i}return r}},927:function(t){t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var s=n[e]={exports:{}};return t[e].call(s.exports,s,s.exports,r),s.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="";var o={};return function(){if(r.d(o,{default:function(){return H}}),"undefined"!=typeof window){var e=window.document.currentScript,t=r(388);e=t(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:t});var n=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);n&&(r.p=n[1])}var s=r(927);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i,l={key:0,class:"vue-slider-marks"},u=["aria-valuetext"],c={class:"vue-slider-dot-tooltip-text"},p=(0,s.defineComponent)({name:"VueSliderDot",emits:["drag-start"],props:{value:{type:[String,Number],default:0},tooltip:{type:String,required:!0},tooltipPlacement:{type:String,validator:function(e){return["top","right","bottom","left"].indexOf(e)>-1},required:!0},tooltipFormatter:{type:[String,Function]},focus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dotStyle:{type:Object},tooltipStyle:{type:Object}},computed:{dotClasses:function(){return["vue-slider-dot",{"vue-slider-dot-hover":"hover"===this.tooltip||"active"===this.tooltip,"vue-slider-dot-disabled":this.disabled,"vue-slider-dot-focus":this.focus}]},handleClasses:function(){return["vue-slider-dot-handle",{"vue-slider-dot-handle-disabled":this.disabled,"vue-slider-dot-handle-focus":this.focus}]},tooltipClasses:function(){return["vue-slider-dot-tooltip",["vue-slider-dot-tooltip-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-show":this.showTooltip}]},tooltipInnerClasses:function(){return["vue-slider-dot-tooltip-inner",["vue-slider-dot-tooltip-inner-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-inner-disabled":this.disabled,"vue-slider-dot-tooltip-inner-focus":this.focus}]},showTooltip:function(){switch(this.tooltip){case"always":return!0;case"none":return!1;case"focus":case"active":return!!this.focus;default:return!1}},tooltipValue:function(){return this.tooltipFormatter?"string"==typeof this.tooltipFormatter?this.tooltipFormatter.replace(/\{value\}/,String(this.value)):this.tooltipFormatter(this.value):this.value}},methods:{dragStart:function(){if(this.disabled)return!1;this.$emit("drag-start")}}}),d=r(831),h=(0,d.Z)(p,[["render",function(e,t,n,r,o,a){var i;return(0,s.openBlock)(),(0,s.createElementBlock)("div",{ref:"dot",class:(0,s.normalizeClass)(e.dotClasses),"aria-valuetext":null===(i=e.tooltipValue)||void 0===i?void 0:i.toString(),onMousedownPassive:t[0]||(t[0]=function(){return e.dragStart&&e.dragStart.apply(e,arguments)}),onTouchstartPassive:t[1]||(t[1]=function(){return e.dragStart&&e.dragStart.apply(e,arguments)})},[(0,s.renderSlot)(e.$slots,"dot",{},(function(){return[(0,s.createElementVNode)("div",{class:(0,s.normalizeClass)(e.handleClasses),style:(0,s.normalizeStyle)(e.dotStyle)},null,6)]})),"none"!==e.tooltip?((0,s.openBlock)(),(0,s.createElementBlock)("div",{key:0,class:(0,s.normalizeClass)(e.tooltipClasses)},[(0,s.renderSlot)(e.$slots,"tooltip",{},(function(){return[(0,s.createElementVNode)("div",{class:(0,s.normalizeClass)(e.tooltipInnerClasses),style:(0,s.normalizeStyle)(e.tooltipStyle)},[(0,s.createElementVNode)("span",c,(0,s.toDisplayString)(e.tooltipValue),1)],6)]}))],2)):(0,s.createCommentVNode)("",!0)],42,u)}]]),f=(0,s.defineComponent)({name:"VueSliderMark",emits:["press-label"],props:{mark:{type:Object,required:!0},hideLabel:{type:Boolean},stepStyle:{type:Object,default:function(){return{}}},stepActiveStyle:{type:Object,default:function(){return{}}},labelStyle:{type:Object,default:function(){return{}}},labelActiveStyle:{type:Object,default:function(){return{}}}},computed:{marksClasses:function(){return["vue-slider-mark",{"vue-slider-mark-active":this.mark.active}]},stepClasses:function(){return["vue-slider-mark-step",{"vue-slider-mark-step-active":this.mark.active}]},labelClasses:function(){return["vue-slider-mark-label",{"vue-slider-mark-label-active":this.mark.active}]}},methods:{labelClickHandle:function(e){e.stopPropagation(),this.$emit("press-label",this.mark.pos)}}}),m=(0,d.Z)(f,[["render",function(e,t,n,r,o,a){return(0,s.openBlock)(),(0,s.createElementBlock)("div",{class:(0,s.normalizeClass)(e.marksClasses)},[(0,s.renderSlot)(e.$slots,"step",{},(function(){return[(0,s.createElementVNode)("div",{class:(0,s.normalizeClass)(e.stepClasses),style:(0,s.normalizeStyle)([e.stepStyle,e.mark.style||{},e.mark.active&&e.stepActiveStyle?e.stepActiveStyle:{},e.mark.active&&e.mark.activeStyle?e.mark.activeStyle:{}])},null,6)]})),e.hideLabel?(0,s.createCommentVNode)("",!0):(0,s.renderSlot)(e.$slots,"label",{key:0},(function(){return[(0,s.createElementVNode)("div",{class:(0,s.normalizeClass)(e.labelClasses),style:(0,s.normalizeStyle)([e.labelStyle,e.mark.labelStyle||{},e.mark.active&&e.labelActiveStyle?e.labelActiveStyle:{},e.mark.active&&e.mark.labelActiveStyle?e.mark.labelActiveStyle:{}]),onClick:t[0]||(t[0]=function(){return e.labelClickHandle&&e.labelClickHandle.apply(e,arguments)})},(0,s.toDisplayString)(e.mark.label),7)]}))],2)}]]),g=function(e){return"number"==typeof e?"".concat(e,"px"):e},y=function(e){var t=document.documentElement,n=document.body,r=e.getBoundingClientRect();return{y:r.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||n.clientTop||0),x:r.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||n.clientLeft||0)}};function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}!function(e){e[e.PAGE_UP=33]="PAGE_UP",e[e.PAGE_DOWN=34]="PAGE_DOWN",e[e.END=35]="END",e[e.HOME=36]="HOME",e[e.LEFT=37]="LEFT",e[e.UP=38]="UP",e[e.RIGHT=39]="RIGHT",e[e.DOWN=40]="DOWN"}(i||(i={}));var b,_,$=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"num",void 0),this.num=t}return function(e,t,n){t&&v(e.prototype,t),n&&v(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"decimal",value:function(e,t){var n=this.num,r=this.getDecimalLen(n),o=this.getDecimalLen(e),s=0;switch(t){case"+":s=this.getExponent(r,o),this.num=(this.safeRoundUp(n,s)+this.safeRoundUp(e,s))/s;break;case"-":s=this.getExponent(r,o),this.num=(this.safeRoundUp(n,s)-this.safeRoundUp(e,s))/s;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(n,this.getExponent(r)),this.safeRoundUp(e,this.getExponent(o)))/this.getExponent(r+o);break;case"/":s=this.getExponent(r,o),this.num=this.safeRoundUp(n,s)/this.safeRoundUp(e,s);break;case"%":s=this.getExponent(r,o),this.num=this.safeRoundUp(n,s)%this.safeRoundUp(e,s)/s}return this}},{key:"plus",value:function(e){return this.decimal(e,"+")}},{key:"minus",value:function(e){return this.decimal(e,"-")}},{key:"multiply",value:function(e){return this.decimal(e,"*")}},{key:"divide",value:function(e){return this.decimal(e,"/")}},{key:"remainder",value:function(e){return this.decimal(e,"%")}},{key:"toNumber",value:function(){return this.num}},{key:"getDecimalLen",value:function(e){var t="".concat(e).split("e");return("".concat(t[0]).split(".")[1]||"").length-(t[1]?+t[1]:0)}},{key:"getExponent",value:function(e,t){return Math.pow(10,void 0!==t?Math.max(e,t):e)}},{key:"safeRoundUp",value:function(e,t){return Math.round(e*t)}}]),e}();function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,s=[],a=!0,i=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(s.push(r.value),!t||s.length!==t);a=!0);}catch(e){i=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(i)throw o}}return s}}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){if(e){if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.VALUE=1]="VALUE",e[e.INTERVAL=2]="INTERVAL",e[e.MIN=3]="MIN",e[e.MAX=4]="MAX",e[e.ORDER=5]="ORDER"}(_||(_={}));var E=(A(b={},_.VALUE,'The type of the "value" is illegal'),A(b,_.INTERVAL,'The prop "interval" is invalid, "(max - min)" must be divisible by "interval"'),A(b,_.MIN,'The "value" must be greater than or equal to the "min".'),A(b,_.MAX,'The "value" must be less than or equal to the "max".'),A(b,_.ORDER,'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'),b),I=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),A(this,"dotsPos",[]),A(this,"dotsValue",[]),A(this,"data",void 0),A(this,"enableCross",void 0),A(this,"fixed",void 0),A(this,"max",void 0),A(this,"min",void 0),A(this,"interval",void 0),A(this,"minRange",void 0),A(this,"maxRange",void 0),A(this,"order",void 0),A(this,"marks",void 0),A(this,"included",void 0),A(this,"process",void 0),A(this,"adsorb",void 0),A(this,"dotOptions",void 0),A(this,"onError",void 0),A(this,"cacheRangeDir",{}),this.data=t.data,this.max=t.max,this.min=t.min,this.interval=t.interval,this.order=t.order,this.marks=t.marks,this.included=t.included,this.process=t.process,this.adsorb=t.adsorb,this.dotOptions=t.dotOptions,this.onError=t.onError,this.order?(this.minRange=t.minRange||0,this.maxRange=t.maxRange||0,this.enableCross=t.enableCross,this.fixed=t.fixed):((t.minRange||t.maxRange||!t.enableCross||t.fixed)&&this.emitError(_.ORDER),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(t.value)}return function(e,t,n){t&&k(e.prototype,t),n&&k(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"setValue",value:function(e){this.setDotsValue(Array.isArray(e)?O(e):[e],!0)}},{key:"setDotsValue",value:function(e,t){this.dotsValue=e,t&&this.syncDotsPos()}},{key:"setDotsPos",value:function(e){var t=this,n=this.order?O(e).sort((function(e,t){return e-t})):e;this.dotsPos=n,this.setDotsValue(n.map((function(e){return t.getValueByPos(e)})),this.adsorb)}},{key:"getValueByPos",value:function(e){var t=this.parsePos(e);if(this.included){var n=100;this.markList.forEach((function(r){var o=Math.abs(r.pos-e);o<n&&(n=o,t=r.value)}))}return t}},{key:"syncDotsPos",value:function(){var e=this;this.dotsPos=this.dotsValue.map((function(t){return e.parseValue(t)}))}},{key:"markList",get:function(){var e=this;if(!this.marks)return[];var t=function(t,n){var r=e.parseValue(t);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({pos:r,value:t,label:t,active:e.isActiveByPos(r)},n)};return!0===this.marks?this.getValues().map((function(e){return t(e)})):"[object Object]"===Object.prototype.toString.call(this.marks)?Object.keys(this.marks).sort((function(e,t){return+e-+t})).map((function(n){var r=e.marks[n];return t(n,"string"!=typeof r?r:{label:r})})):Array.isArray(this.marks)?this.marks.map((function(e){return t(e)})):"function"==typeof this.marks?this.getValues().map((function(t){return{value:t,result:e.marks(t)}})).filter((function(e){return!!e.result})).map((function(e){var n=e.value,r=e.result;return t(n,r)})):[]}},{key:"getRecentDot",value:function(e){var t=this.dotsPos.map((function(t){return Math.abs(t-e)}));return t.indexOf(Math.min.apply(Math,O(t)))}},{key:"getIndexByValue",value:function(e){return this.data?this.data.indexOf(e):new $(+e).minus(this.min).divide(this.interval).toNumber()}},{key:"getValueByIndex",value:function(e){return e<0?e=0:e>this.total&&(e=this.total),this.data?this.data[e]:new $(e).multiply(this.interval).plus(this.min).toNumber()}},{key:"setDotPos",value:function(e,t){var n=(e=this.getValidPos(e,t).pos)-this.dotsPos[t];if(n){var r=new Array(this.dotsPos.length);this.fixed?r=this.getFixedChangePosArr(n,t):this.minRange||this.maxRange?r=this.getLimitRangeChangePosArr(e,n,t):r[t]=n,this.setDotsPos(this.dotsPos.map((function(e,t){return e+(r[t]||0)})))}}},{key:"getFixedChangePosArr",value:function(e,t){var n=this;return this.dotsPos.forEach((function(r,o){if(o!==t){var s=n.getValidPos(r+e,o),a=s.pos;s.inRange||(e=Math.min(Math.abs(a-r),Math.abs(e))*(e<0?-1:1))}})),this.dotsPos.map((function(t){return e}))}},{key:"getLimitRangeChangePosArr",value:function(e,t,n){var r=this,o=[{index:n,changePos:t}],s=t;return[this.minRange,this.maxRange].forEach((function(a,i){if(!a)return!1;for(var l,u=0===i,c=t>0,p=function(e,t){var n=Math.abs(e-t);return u?n<r.minRangeDir:n>r.maxRangeDir},d=n+(l=u?c?1:-1:c?-1:1),h=r.dotsPos[d],f=e;r.isPos(h)&&p(h,f);){var m=r.getValidPos(h+s,d).pos;o.push({index:d,changePos:m-h}),d+=l,f=m,h=r.dotsPos[d]}})),this.dotsPos.map((function(e,t){var n=o.filter((function(e){return e.index===t}));return n.length?n[0].changePos:0}))}},{key:"isPos",value:function(e){return"number"==typeof e}},{key:"getValidPos",value:function(e,t){var n=this.valuePosRange[t],r=!0;return e<n[0]?(e=n[0],r=!1):e>n[1]&&(e=n[1],r=!1),{pos:e,inRange:r}}},{key:"parseValue",value:function(e){if(this.data)e=this.data.indexOf(e);else if("number"==typeof e||"string"==typeof e){if((e=+e)<this.min)return this.emitError(_.MIN),0;if(e>this.max)return this.emitError(_.MAX),0;if("number"!=typeof e||e!=e)return this.emitError(_.VALUE),0;e=new $(e).minus(this.min).divide(this.interval).toNumber()}var t=new $(e).multiply(this.gap).toNumber();return t<0?0:t>100?100:t}},{key:"parsePos",value:function(e){var t=Math.round(e/this.gap);return this.getValueByIndex(t)}},{key:"isActiveByPos",value:function(e){return this.processArray.some((function(t){var n=C(t,2),r=n[0],o=n[1];return e>=r&&e<=o}))}},{key:"getValues",value:function(){if(this.data)return this.data;for(var e=[],t=0;t<=this.total;t++)e.push(new $(t).multiply(this.interval).plus(this.min).toNumber());return e}},{key:"getRangeDir",value:function(e){return e?new $(e).divide(new $(this.data?this.data.length-1:this.max).minus(this.data?0:this.min).toNumber()).multiply(100).toNumber():100}},{key:"emitError",value:function(e){this.onError&&this.onError(e,E[e])}},{key:"processArray",get:function(){if(this.process){if("function"==typeof this.process)return this.process(this.dotsPos);if(1===this.dotsPos.length)return[[0,this.dotsPos[0]]];if(this.dotsPos.length>1)return[[Math.min.apply(Math,O(this.dotsPos)),Math.max.apply(Math,O(this.dotsPos))]]}return[]}},{key:"total",get:function(){var e;return(e=this.data?this.data.length-1:new $(this.max).minus(this.min).divide(this.interval).toNumber())-Math.floor(e)!=0?(this.emitError(_.INTERVAL),0):e}},{key:"gap",get:function(){return 100/this.total}},{key:"minRangeDir",get:function(){return this.cacheRangeDir[this.minRange]?this.cacheRangeDir[this.minRange]:this.cacheRangeDir[this.minRange]=this.getRangeDir(this.minRange)}},{key:"maxRangeDir",get:function(){return this.cacheRangeDir[this.maxRange]?this.cacheRangeDir[this.maxRange]:this.cacheRangeDir[this.maxRange]=this.getRangeDir(this.maxRange)}},{key:"getDotRange",value:function(e,t,n){if(!this.dotOptions)return n;var r=Array.isArray(this.dotOptions)?this.dotOptions[e]:this.dotOptions;return r&&void 0!==r[t]?this.parseValue(r[t]):n}},{key:"valuePosRange",get:function(){var e=this,t=this.dotsPos,n=[];return t.forEach((function(r,o){n.push([Math.max(e.minRange?e.minRangeDir*o:0,e.enableCross?0:t[o-1]||0,e.getDotRange(o,"min",0)),Math.min(e.minRange?100-e.minRangeDir*(t.length-1-o):100,e.enableCross?100:t[o+1]||100,e.getDotRange(o,"max",100))])})),n}},{key:"dotsIndex",get:function(){var e=this;return this.dotsValue.map((function(t){return e.getIndexByValue(t)}))}}]),e}();function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),x(this,"map",void 0),x(this,"states",0),this.map=t}return function(e,t,n){t&&R(e.prototype,t),n&&R(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"add",value:function(e){this.states|=e}},{key:"delete",value:function(e){this.states&=~e}},{key:"toggle",value:function(e){this.has(e)?this.delete(e):this.add(e)}},{key:"has",value:function(e){return!!(this.states&e)}}]),e}();function L(e){return function(e){if(Array.isArray(e))return F(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||D(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e){return(Q="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 V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){N(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,s=[],a=!0,i=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(s.push(r.value),!t||s.length!==t);a=!0);}catch(e){i=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(i)throw o}}return s}}(e,t)||D(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){if(e){if("string"==typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var q={None:0,Drag:2,Focus:4},U=(0,s.defineComponent)({name:"VueSlider",components:{VueSliderDot:h,VueSliderMark:m},emits:["change","drag-start","dragging","drag-end","error","update:modelValue"],data:function(){return{control:null,states:new P(q),scale:1,focusDotIndex:0}},props:{modelValue:{type:[Number,String,Array],default:0},silent:{type:Boolean,default:!1},direction:{type:String,default:"ltr",validator:function(e){return["ltr","rtl","ttb","btt"].indexOf(e)>-1}},width:{type:[Number,String]},height:{type:[Number,String]},dotSize:{type:[Number,Array],default:14},contained:{type:Boolean,default:!1},min:{type:Number,default:0},max:{type:Number,default:100},interval:{type:Number,default:1},disabled:{type:Boolean,default:!1},clickable:{type:Boolean,default:!0},dragOnClick:{type:Boolean,default:!1},duration:{type:Number,default:.5},data:{type:[Object,Array]},dataValue:{type:String,default:"value"},dataLabel:{type:String,default:"label"},lazy:{type:Boolean,default:!1},tooltip:{type:String,default:"active",validator:function(e){return["none","always","focus","hover","active"].indexOf(e)>-1}},tooltipPlacement:{type:[String,Array],validator:function(e){return(Array.isArray(e)?e:[e]).every((function(e){return["top","right","bottom","left"].indexOf(e)>-1}))}},tooltipFormatter:{type:[String,Array,Function]},useKeyboard:{type:Boolean,default:!0},keydownHook:{type:Function},enableCross:{type:Boolean,default:!0},fixed:{type:Boolean,default:!1},order:{type:Boolean,default:!0},minRange:{type:Number},maxRange:{type:Number},marks:{type:[Boolean,Object,Array,Function],default:!1},process:{type:[Boolean,Function],default:!0},zoom:{type:Number},included:{type:Boolean},adsorb:{type:Boolean},hideLabel:{type:Boolean},dotOptions:{type:[Object,Array]},dotAttrs:{type:Object},railStyle:{type:Object},processStyle:{type:Object},dotStyle:{type:Object},tooltipStyle:{type:Object},stepStyle:{type:Object},stepActiveStyle:{type:Object},labelStyle:{type:Object},labelActiveStyle:{type:Object}},computed:{isHorizontal:function(){return"ltr"===this.direction||"rtl"===this.direction},isReverse:function(){return"rtl"===this.direction||"btt"===this.direction},tailSize:function(){return g((this.isHorizontal?this.height:this.width)||4)},containerClasses:function(){return["vue-slider",["vue-slider-".concat(this.direction)],{"vue-slider-disabled":this.disabled}]},containerStyles:function(){var e=j(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),t=e[0],n=e[1],r=this.width?g(this.width):this.isHorizontal?"auto":g(4),o=this.height?g(this.height):this.isHorizontal?g(4):"auto";return{padding:this.contained?"".concat(n/2,"px ").concat(t/2,"px"):this.isHorizontal?"".concat(n/2,"px 0"):"0 ".concat(t/2,"px"),width:r,height:o}},processArray:function(){var e=this;return this.control.processArray.map((function(t,n){var r,o=j(t,3),s=o[0],a=o[1],i=o[2];if(s>a){var l=[a,s];s=l[0],a=l[1]}var u=e.isHorizontal?"width":"height";return{start:s,end:a,index:n,style:M(M((r={},N(r,e.isHorizontal?"height":"width","100%"),N(r,e.isHorizontal?"top":"left",0),N(r,e.mainDirection,"".concat(s,"%")),N(r,u,"".concat(a-s,"%")),N(r,"transitionProperty","".concat(u,",").concat(e.mainDirection)),N(r,"transitionDuration","".concat(e.animateTime,"s")),r),e.processStyle),i)}}))},dotBaseStyle:function(){var e,t=j(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),n=t[0],r=t[1];return e=this.isHorizontal?N({transform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),WebkitTransform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),top:"50%"},"ltr"===this.direction?"left":"right","0"):N({transform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),WebkitTransform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),left:"50%"},"btt"===this.direction?"bottom":"top","0"),M({width:"".concat(n,"px"),height:"".concat(r,"px")},e)},mainDirection:function(){switch(this.direction){case"ltr":return"left";case"rtl":return"right";case"btt":return"bottom";case"ttb":return"top";default:return"left"}},tooltipDirections:function(){var e=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(e)?e:this.dots.map((function(){return e}))},dots:function(){var e=this;return this.control.dotsPos.map((function(t,n){return M({pos:t,index:n,value:e.control.dotsValue[n],focus:e.states.has(q.Focus)&&e.focusDotIndex===n,disabled:e.disabled,style:e.dotStyle},(Array.isArray(e.dotOptions)?e.dotOptions[n]:e.dotOptions)||{})}))},animateTime:function(){return this.states.has(q.Drag)?0:this.duration},canSort:function(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross},sliderData:function(){var e=this;return this.isObjectArrayData(this.data)?this.data.map((function(t){return t[e.dataValue]})):this.isObjectData(this.data)?Object.keys(this.data):this.data},sliderMarks:function(){var e=this;return this.marks?this.marks:this.isObjectArrayData(this.data)?function(t){var n={label:t};return e.data.some((function(r){return r[e.dataValue]===t&&(n.label=r[e.dataLabel],!0)})),n}:this.isObjectData(this.data)?this.data:void 0},sliderTooltipFormatter:function(){var e=this;if(this.tooltipFormatter)return this.tooltipFormatter;if(this.isObjectArrayData(this.data))return function(t){var n=""+t;return e.data.some((function(r){return r[e.dataValue]===t&&(n=r[e.dataLabel],!0)})),n};if(this.isObjectData(this.data)){var t=this.data;return function(e){return t[e]}}},isNotSync:function(){var e=this.control.dotsValue;return Array.isArray(this.modelValue)?this.modelValue.length!==e.length||this.modelValue.some((function(t,n){return t!==e[n]})):this.modelValue!==e[0]},dragRange:function(){var e=this.dots[this.focusDotIndex-1],t=this.dots[this.focusDotIndex+1];return[e?e.pos:-1/0,t?t.pos:1/0]}},watch:{modelValue:function(){this.control&&!this.states.has(q.Drag)&&this.isNotSync&&this.control.setValue(this.modelValue)}},methods:{isObjectData:function(e){return!!e&&"[object Object]"===Object.prototype.toString.call(e)},isObjectArrayData:function(e){return!!e&&Array.isArray(e)&&e.length>0&&"object"===Q(e[0])},bindEvent:function(){document.addEventListener("touchmove",this.dragMove,{passive:!1}),document.addEventListener("touchend",this.dragEnd,{passive:!1}),document.addEventListener("mousedown",this.blurHandle),document.addEventListener("mousemove",this.dragMove),document.addEventListener("mouseup",this.dragEnd),document.addEventListener("mouseleave",this.dragEnd),document.addEventListener("keydown",this.keydownHandle)},unbindEvent:function(){document.removeEventListener("touchmove",this.dragMove),document.removeEventListener("touchend",this.dragEnd),document.removeEventListener("mousedown",this.blurHandle),document.removeEventListener("mousemove",this.dragMove),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener("mouseleave",this.dragEnd),document.removeEventListener("keydown",this.keydownHandle)},setScale:function(){this.scale=new $(Math.floor(this.isHorizontal?this.$el.offsetWidth:this.$el.offsetHeight)).multiply(this.zoom||1).divide(100).toNumber()},initControl:function(){var e=this;this.control=new I({value:this.modelValue,data:this.sliderData,enableCross:this.enableCross,fixed:this.fixed,max:this.max,min:this.min,interval:this.interval,minRange:this.minRange,maxRange:this.maxRange,order:this.order,marks:this.sliderMarks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach((function(t){e.$watch(t,(function(n){if("data"===t&&Array.isArray(e.control.data)&&Array.isArray(n)&&e.control.data.length===n.length&&n.every((function(t,n){return t===e.control.data[n]})))return!1;switch(t){case"data":case"dataLabel":case"dataValue":e.control.data=e.sliderData;break;case"mark":e.control.marks=e.sliderMarks;break;default:e.control[t]=n}["data","max","min","interval"].indexOf(t)>-1&&e.control.syncDotsPos()}))}))},syncValueByPos:function(){var e=this.control.dotsValue;if(this.isDiff(e,Array.isArray(this.modelValue)?this.modelValue:[this.modelValue])){var t=1===e.length?e[0]:L(e);this.$emit("change",t,this.focusDotIndex),this.$emit("update:modelValue",t)}},isDiff:function(e,t){return e.length!==t.length||e.some((function(e,n){return e!==t[n]}))},emitError:function(e,t){this.silent||console.error("[VueSlider error]: ".concat(t)),this.$emit("error",e,t)},dragStartOnProcess:function(e){if(this.dragOnClick){this.setScale();var t=this.getPosByEvent(e),n=this.control.getRecentDot(t);if(this.dots[n].disabled)return;this.dragStart(n),this.control.setDotPos(t,this.focusDotIndex),this.lazy||this.syncValueByPos()}},dragStart:function(e){this.focusDotIndex=e,this.setScale(),this.states.add(q.Drag),this.states.add(q.Focus),this.$emit("drag-start",this.focusDotIndex)},dragMove:function(e){if(!this.states.has(q.Drag))return!1;e.preventDefault();var t=this.getPosByEvent(e);this.isCrossDot(t),this.control.setDotPos(t,this.focusDotIndex),this.lazy||this.syncValueByPos();var n=this.control.dotsValue;this.$emit("dragging",1===n.length?n[0]:L(n),this.focusDotIndex)},isCrossDot:function(e){if(this.canSort){var t=this.focusDotIndex,n=e;if(n>this.dragRange[1]?(n=this.dragRange[1],this.focusDotIndex++):n<this.dragRange[0]&&(n=this.dragRange[0],this.focusDotIndex--),t!==this.focusDotIndex){var r=this.$refs["dot-".concat(this.focusDotIndex)];r&&r.$el&&r.$el.focus(),this.control.setDotPos(n,t)}}},dragEnd:function(e){var t=this;if(!this.states.has(q.Drag))return!1;setTimeout((function(){t.lazy&&t.syncValueByPos(),t.included&&t.isNotSync?t.control.setValue(t.modelValue):t.control.syncDotsPos(),t.states.delete(q.Drag),t.useKeyboard&&!("targetTouches"in e)||t.states.delete(q.Focus),t.$emit("drag-end",t.focusDotIndex)}))},blurHandle:function(e){if(!this.states.has(q.Focus)||!this.$refs.container||this.$refs.container.contains(e.target))return!1;this.states.delete(q.Focus)},clickHandle:function(e){if(!this.clickable||this.disabled)return!1;if(!this.states.has(q.Drag)){this.setScale();var t=this.getPosByEvent(e);this.setValueByPos(t)}},focus:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e.disabled||(this.states.add(q.Focus),this.focusDotIndex=t)},blur:function(){this.states.delete(q.Focus)},getValue:function(){var e=this.control.dotsValue;return 1===e.length?e[0]:e},getIndex:function(){var e=this.control.dotsIndex;return 1===e.length?e[0]:e},setValue:function(e){this.control.setValue(Array.isArray(e)?L(e):[e]),this.syncValueByPos()},setIndex:function(e){var t=this,n=Array.isArray(e)?e.map((function(e){return t.control.getValueByIndex(e)})):this.control.getValueByIndex(e);this.setValue(n)},setValueByPos:function(e){var t=this,n=this.control.getRecentDot(e);if(this.disabled||this.dots[n].disabled)return!1;this.focusDotIndex=n,this.control.setDotPos(e,n),this.syncValueByPos(),this.useKeyboard&&this.states.add(q.Focus),setTimeout((function(){t.included&&t.isNotSync?t.control.setValue(t.modelValue):t.control.syncDotsPos()}))},keydownHandle:function(e){var t=this;if(!this.useKeyboard||!this.states.has(q.Focus))return!1;var n=this.included&&this.marks,r=function(e,t){if(t.hook){var n=t.hook(e);if("function"==typeof n)return n;if(!n)return null}switch(e.keyCode){case i.UP:return function(e){return"ttb"===t.direction?e-1:e+1};case i.RIGHT:return function(e){return"rtl"===t.direction?e-1:e+1};case i.DOWN:return function(e){return"ttb"===t.direction?e+1:e-1};case i.LEFT:return function(e){return"rtl"===t.direction?e+1:e-1};case i.END:return function(){return t.max};case i.HOME:return function(){return t.min};case i.PAGE_UP:return function(e){return e+10};case i.PAGE_DOWN:return function(e){return e-10};default:return null}}(e,{direction:this.direction,max:n?this.control.markList.length-1:this.control.total,min:0,hook:this.keydownHook});if(r){e.preventDefault();var o=-1,s=0;n?(this.control.markList.some((function(e,n){return e.value===t.control.dotsValue[t.focusDotIndex]&&(o=r(n),!0)})),o<0?o=0:o>this.control.markList.length-1&&(o=this.control.markList.length-1),s=this.control.markList[o].pos):(o=r(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex])),s=this.control.parseValue(this.control.getValueByIndex(o))),this.isCrossDot(s),this.control.setDotPos(s,this.focusDotIndex),this.syncValueByPos()}},getPosByEvent:function(e){return function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o="targetTouches"in e?e.targetTouches[0]:e,s=y(t),a={x:o.pageX-s.x,y:o.pageY-s.y};return{x:n?t.offsetWidth*r-a.x:a.x,y:n?t.offsetHeight*r-a.y:a.y}}(e,this.$el,this.isReverse,this.zoom)[this.isHorizontal?"x":"y"]/this.scale},renderSlot:function(e,t,n){var r=this.$slots[e];return r?r(t):n}},created:function(){this.initControl()},mounted:function(){this.bindEvent()},beforeUnmount:function(){this.unbindEvent()}}),B=(0,d.Z)(U,[["render",function(e,t,n,r,o,i){var u=(0,s.resolveComponent)("vue-slider-mark"),c=(0,s.resolveComponent)("vue-slider-dot");return(0,s.openBlock)(),(0,s.createElementBlock)("div",(0,s.mergeProps)({ref:"container",class:e.containerClasses,style:e.containerStyles,onClick:t[2]||(t[2]=function(){return e.clickHandle&&e.clickHandle.apply(e,arguments)}),onTouchstartPassive:t[3]||(t[3]=function(){return e.dragStartOnProcess&&e.dragStartOnProcess.apply(e,arguments)}),onMousedownPassive:t[4]||(t[4]=function(){return e.dragStartOnProcess&&e.dragStartOnProcess.apply(e,arguments)})},e.$attrs),[(0,s.createElementVNode)("div",{class:"vue-slider-rail",style:(0,s.normalizeStyle)(e.railStyle)},[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(e.processArray,(function(t,n){return(0,s.renderSlot)(e.$slots,"process",(0,s.normalizeProps)((0,s.guardReactiveProps)(t)),(function(){return[((0,s.openBlock)(),(0,s.createElementBlock)("div",{class:"vue-slider-process",key:"process-".concat(n),style:(0,s.normalizeStyle)(t.style)},null,4))]}))})),256)),e.sliderMarks&&e.control?((0,s.openBlock)(),(0,s.createElementBlock)("div",l,[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(e.control.markList,(function(n,r){return(0,s.renderSlot)(e.$slots,"mark",(0,s.normalizeProps)((0,s.guardReactiveProps)(n)),(function(){var o;return[((0,s.openBlock)(),(0,s.createBlock)(u,{key:"mark-".concat(r),mark:n,hideLabel:e.hideLabel,style:(0,s.normalizeStyle)((o={},a(o,e.isHorizontal?"height":"width","100%"),a(o,e.isHorizontal?"width":"height",e.tailSize),a(o,e.mainDirection,"".concat(n.pos,"%")),o)),stepStyle:e.stepStyle,stepActiveStyle:e.stepActiveStyle,labelStyle:e.labelStyle,labelActiveStyle:e.labelActiveStyle,onPressLabel:t[0]||(t[0]=function(t){return e.clickable&&e.setValueByPos(t)})},{step:(0,s.withCtx)((function(){return[(0,s.renderSlot)(e.$slots,"step",(0,s.normalizeProps)((0,s.guardReactiveProps)(n)))]})),label:(0,s.withCtx)((function(){return[(0,s.renderSlot)(e.$slots,"label",(0,s.normalizeProps)((0,s.guardReactiveProps)(n)))]})),_:2},1032,["mark","hideLabel","style","stepStyle","stepActiveStyle","labelStyle","labelActiveStyle"]))]}))})),256))])):(0,s.createCommentVNode)("",!0),((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(e.dots,(function(n,r){var o;return(0,s.openBlock)(),(0,s.createBlock)(c,(0,s.mergeProps)({ref_for:!0,ref:"dot-".concat(r),key:"dot-".concat(r),value:n.value,disabled:n.disabled,focus:n.focus,"dot-style":[n.style,n.disabled?n.disabledStyle:null,n.focus?n.focusStyle:null],tooltip:n.tooltip||e.tooltip,"tooltip-style":[e.tooltipStyle,n.tooltipStyle,n.disabled?n.tooltipDisabledStyle:null,n.focus?n.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(e.sliderTooltipFormatter)?e.sliderTooltipFormatter[r]:e.sliderTooltipFormatter,"tooltip-placement":e.tooltipDirections[r],style:[e.dotBaseStyle,(o={},a(o,e.mainDirection,"".concat(n.pos,"%")),a(o,"transition","".concat(e.mainDirection," ").concat(e.animateTime,"s")),o)],onDragStart:function(){return e.dragStart(r)},role:"slider","aria-valuenow":n.value,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":e.isHorizontal?"horizontal":"vertical",tabindex:"0",onFocus:function(){return e.focus(n,r)},onBlur:t[1]||(t[1]=function(){return e.blur()})},e.dotAttrs),{dot:(0,s.withCtx)((function(){return[(0,s.renderSlot)(e.$slots,"dot",(0,s.normalizeProps)((0,s.guardReactiveProps)(n)))]})),tooltip:(0,s.withCtx)((function(){return[(0,s.renderSlot)(e.$slots,"tooltip",(0,s.normalizeProps)((0,s.guardReactiveProps)(n)))]})),_:2},1040,["value","disabled","focus","dot-style","tooltip","tooltip-style","tooltip-formatter","tooltip-placement","style","onDragStart","aria-valuenow","aria-valuemin","aria-valuemax","aria-orientation","onFocus"])})),128))],4),(0,s.renderSlot)(e.$slots,"default",{value:e.getValue()})],16)}]]);B.VueSliderMark=m,B.VueSliderDot=h;var H=B}(),o=o.default}()}(vue__default)})),css_248z=".vue-slider-dot{position:absolute;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot:focus{outline:none}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-hover:hover .vue-slider-dot-tooltip{visibility:visible}.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%, -100%);transform:translate(-50%, -100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%, 100%);transform:translate(-50%, 100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%, -50%);transform:translate(-100%, -50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}\n.vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%, -50%);transform:translate(50%, -50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-ttb .vue-slider-mark,.vue-slider-btt .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-ttb .vue-slider-mark-step,.vue-slider-btt .vue-slider-mark-step{left:0}.vue-slider-ttb .vue-slider-mark-label,.vue-slider-btt .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%, 50%);transform:translate(-50%, 50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-step,.vue-slider-mark-label{position:absolute}\n.vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}\n";styleInject(css_248z);var css_248z$1='/* component style */\n.vue-slider-disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* rail style */\n.vue-slider-rail {\n background-color: #ccc;\n border-radius: 15px;\n}\n\n/* process style */\n.vue-slider-process {\n background-color: #3498db;\n border-radius: 15px;\n}\n\n/* mark style */\n.vue-slider-mark {\n z-index: 4;\n}\n.vue-slider-mark:first-child .vue-slider-mark-step, .vue-slider-mark:last-child .vue-slider-mark-step {\n display: none;\n}\n.vue-slider-mark-step {\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.16);\n}\n.vue-slider-mark-label {\n font-size: 14px;\n white-space: nowrap;\n}\n/* dot style */\n.vue-slider-dot-handle {\n cursor: pointer;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: #fff;\n box-sizing: border-box;\n box-shadow: 0.5px 0.5px 2px 1px rgba(0, 0, 0, 0.32);\n}\n.vue-slider-dot-handle-focus {\n box-shadow: 0px 0px 1px 2px rgba(52, 152, 219, 0.36);\n}\n\n.vue-slider-dot-handle-disabled {\n cursor: not-allowed;\n background-color: #ccc;\n}\n\n.vue-slider-dot-tooltip-inner {\n font-size: 14px;\n white-space: nowrap;\n padding: 2px 5px;\n min-width: 20px;\n text-align: center;\n color: #fff;\n border-radius: 5px;\n border-color: #3498db;\n background-color: #3498db;\n box-sizing: content-box;\n}\n.vue-slider-dot-tooltip-inner::after {\n content: "";\n position: absolute;\n}\n.vue-slider-dot-tooltip-inner-top::after {\n top: 100%;\n left: 50%;\n transform: translate(-50%, 0);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-top-color: inherit;\n}\n.vue-slider-dot-tooltip-inner-bottom::after {\n bottom: 100%;\n left: 50%;\n transform: translate(-50%, 0);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-bottom-color: inherit;\n}\n.vue-slider-dot-tooltip-inner-left::after {\n left: 100%;\n top: 50%;\n transform: translate(0, -50%);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-left-color: inherit;\n}\n.vue-slider-dot-tooltip-inner-right::after {\n right: 100%;\n top: 50%;\n transform: translate(0, -50%);\n height: 0;\n width: 0;\n border-color: transparent;\n border-style: solid;\n border-width: 5px;\n border-right-color: inherit;\n}\n\n.vue-slider-dot-tooltip-wrapper {\n opacity: 0;\n transition: all 0.3s;\n}\n.vue-slider-dot-tooltip-wrapper-show {\n opacity: 1;\n}\n';styleInject(css_248z$1);var NoSSR=vue.defineComponent({props:{isShow:{type:Boolean,default:void 0}},setup:function(e,t){var n=t.slots,r=vue.ref(!1),o=vue.computed((function(){return(void 0===e.isShow||!!e.isShow)&&r.value}));vue.onMounted((function(){r.value=!0}));var s=n.default?vue.h((function(){return n.default&&n.default()})):vue.createCommentVNode("Client only rendering with empty default slot"),a=n.placeholder?vue.h((function(){return n.placeholder&&n.placeholder()})):vue.createCommentVNode("Client only rendering component placeholder");return function(){return o.value?s:a}}}),_templateObject$q,Slider=styled("div")(_templateObject$q||(_templateObject$q=_taggedTemplateLiteralLoose(["\n\tmargin-top: 30px;\n\tpadding: 10px;\n\n\t/* component style */\n\t.vue-slider-disabled {\n\t\topacity: 0.5;\n\t\tcursor: not-allowed;\n\t}\n\n\t/* rail style */\n\t.vue-slider-rail {\n\t\tbackground-color: #ccc;\n\t\tborder-radius: 15px;\n\t\theight: 4px;\n\t}\n\n\t/* process style */\n\t.vue-slider-process {\n\t\tbackground-color: #0b6aff;\n\t\tborder-radius: 15px;\n\t}\n\n\t/* mark style */\n\t.vue-slider-mark {\n\t\tz-index: 4;\n\t}\n\n\t.vue-slider-mark:first-child .vue-slider-mark-step,\n\t.vue-slider-mark:last-child .vue-slider-mark-step {\n\t\tdisplay: none;\n\t}\n\n\t.vue-slider-mark-step {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: rgba(0, 0, 0, 0.16);\n\t}\n\n\t.vue-slider-mark-label {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t}\n\n\t/* dot style */\n\t.vue-slider-dot {\n\t\tz-index: 2;\n\t}\n\n\t.vue-slider-dot-handle {\n\t\tcursor: pointer;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: #fff;\n\t\tbox-sizing: border-box;\n\t\tborder: 1px solid #9a9a9a;\n\t\tz-index: 2;\n\t\tbox-shadow: 0.5px 0.5px 2px 1px rgb(0 0 0 / 32%);\n\t}\n\n\t.vue-slider-dot-handle-disabled {\n\t\tcursor: not-allowed;\n\t\tbackground-color: #ccc;\n\t}\n\n\t.vue-slider-dot-tooltip-inner {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t\tpadding: 2px 5px;\n\t\tmin-width: 20px;\n\t\ttext-align: center;\n\t\tcolor: #fff;\n\t\tborder-radius: 5px;\n\t\tborder: 1px solid #3498db;\n\t\tbackground-color: #3498db;\n\t\tbox-sizing: content-box;\n\t}\n\n\t.vue-slider-dot-tooltip-inner::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-top::after {\n\t\ttop: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-top-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-bottom::after {\n\t\tbottom: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-bottom-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-left::after {\n\t\tleft: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-left-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-right::after {\n\t\tright: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-right-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-wrapper {\n\t\topacity: 0;\n\t\ttransition: all 0.3s;\n\t}\n\t.vue-slider-dot-tooltip-wrapper-show {\n\t\topacity: 1;\n\t}\n\n\t.label-container {\n\t\tmargin: 10px 0;\n\t\twidth: 100%;\n\t}\n\n\t.range-label-right {\n\t\tfloat: right;\n\t}\n"]))),global$1="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},getComponents=function(){var e={NoSSR:NoSSR};try{if("undefined"!=typeof window){var t=document.createElement("script");t.setAttribute("src","https://cdn.jsdelivr.net/npm/vue-slider-component@3.2.15/dist/vue-slider-component.umd.min.js"),t.onload=function(){var t=global$1["vue-slider-component"];e["vue-slider-component"]=t},document.head.appendChild(t)}}catch(e){console.error("Unable to load vue-slider",e)}return e},addComponent$1=lib_5.addComponent,removeComponent$1=lib_5.removeComponent,watchComponent$1=lib_5.watchComponent,updateQuery$8=lib_5.updateQuery,setQueryListener$1=lib_5.setQueryListener,setQueryOptions$8=lib_5.setQueryOptions,setComponentProps$1=lib_5.setComponentProps,setCustomQuery$7=lib_5.setCustomQuery,updateComponentProps$2=lib_5.updateComponentProps,checkValueChange$6=lib_8.checkValueChange,getClassName$a=lib_8.getClassName,isEqual$b=lib_8.isEqual,checkSomePropChange$1=lib_8.checkSomePropChange,extractQueryFromCustomQuery$6=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$6=lib_8.getOptionsForCustomQuery,DynamicRangeSlider={name:"DynamicRangeSlider",components:getComponents(),props:{beforeValueChange:types.func,className:Q.string.def(""),rangeLabels:types.func,componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,data:types.data,dataField:types.stringRequired,defaultValue:types.func,filterLabel:types.string,innerClass:types.style,react:types.react,showFilter:Q.bool.def(!0),destroyOnUnmount:Q.bool,showCheckbox:Q.bool.def(!0),title:types.title,URLParams:Q.bool.def(!1),sliderOptions:Q.object.def({}),nestedField:types.string,index:Q.string,value:types.range,endpoint:types.endpointConfig},data:function(){return this.internalRangeComponent=this.$props.componentId+"__range__internal",{currentValue:null,stats:[]}},created:function(){var e=this;this.$timestamp=(new Date).getTime();var t=[];this.$$store&&(t=this.$$store.getState().components);var n=this.$props.value;(this.destroyOnUnmount||-1===t.indexOf(this.componentId))&&(this.addComponent(this.componentId,this.$timestamp),this.addComponent(this.internalRangeComponent,this.$timestamp),Array.isArray(this.selectedValue)?this.handleChange(this.selectedValue):this.selectedValue?this.handleChange(DynamicRangeSlider.parseValue(this.selectedValue,this.$props)):n&&this.handleChange(DynamicRangeSlider.parseValue(n,this.$props)),this.updateRangeQueryOptions());this.setQueryListener(this.$props.componentId,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.$emit.apply(e,["queryChange"].concat(n)),e.$emit.apply(e,["query-change"].concat(n))}),null),this.setComponentProps(this.componentId,this.$props,constants_1$1.dynamicRangeSlider),this.setComponentProps(this.internalRangeComponent,this.$props,constants_1$1.dynamicRangeSlider),updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setReact(!1)},mounted:function(){this.setReact(!0)},beforeUpdate:function(){this.currentValue||this.setDefaultValue(this.range)},beforeUnmount:function(){this.destroyOnUnmount&&(this.removeComponent(this.$props.componentId),this.removeComponent(this.internalRangeComponent))},methods:{isControlled:function(){return!(!this.$props.value||!this.$attrs)},setDefaultValue:function(e){var t=e.start,n=e.end;if(this.$props.defaultValue){var r=this.$props.defaultValue(t,n),o=r.start,s=r.end;this.handleChange([o,s])}else this.isControlled()?this.handleChange(DynamicRangeSlider.parseValue(this.$props.value),"change"):this.currentValue=[t,n]},setReact:function(e){this.$props.react?(this.watchComponent(this.internalRangeComponent,this.$props.react,e),this.watchComponent(this.$props.componentId,this.$props.react,e)):(this.watchComponent(this.internalRangeComponent,{},e),this.watchComponent(this.$props.componentId,{},e))},rangeQuery:function(){return{min:{min:{field:this.$props.dataField}},max:{max:{field:this.$props.dataField}}}},updateRangeQueryOptions:function(){var e,t={};this.$props.nestedField?((e={})[this.$props.nestedField]={nested:{path:this.$props.nestedField},aggs:this.rangeQuery()},t=e):t=this.rangeQuery();this.setQueryOptions(this.internalRangeComponent,{aggs:t})},handleSlider:function(){var e=this.$refs.slider.getValue();void 0===this.$props.value?this.handleChange(e):this.$emit("change",{start:e[0],end:e[1]})},handleChange:function(e){var t=this,n=[this.range?Math.max(this.range.start,e[0]):e[0],this.range?Math.min(this.range.end,e[1]):e[1]];checkValueChange$6(this.$props.componentId,{start:n[0],end:n[1]},this.$props.beforeValueChange,(function(){t.currentValue=n,t.updateQueryHandler(n,t.$props),t.$emit("valueChange",{start:n[0],end:n[1]}),t.$emit("value-change",{start:n[0],end:n[1]})}))},updateQueryHandler:function(e){var t=DynamicRangeSlider.defaultQuery(e,this.$props);if(this.$props.customQuery){var n=this.$props.customQuery(e,this.$props),r=extractQueryFromCustomQuery$6(n);r&&(t=r);var o=getOptionsForCustomQuery$6(n);updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,e),this.setQueryOptions(this.$props.componentId,o,!1)}var s=this.range||{start:e[0],end:e[1]},a=s.start,i=s.end,l=e[0],u=e[1],c=l===a&&u===i;this.updateQuery({componentId:this.$props.componentId,query:t,value:e,label:this.$props.filterLabel,showFilter:this.$props.showFilter&&!c,URLParams:this.$props.URLParams,componentType:constants_1$1.dynamicRangeSlider})}},computed:{labels:function(){return this.rangeLabels?this.rangeLabels(this.range.start,this.range.end):null}},watch:{$props:{deep:!0,handler:function(e){var t=this,n=getValidPropsKeys(e);checkSomePropChange$1(e,this.componentProps,n,(function(){t.updateComponentProps(t.componentId,e,constants_1$1.dynamicRangeSlider),t.updateComponentProps(t.internalRangeComponent,e,constants_1$1.dynamicRangeSlider)}))}},react:function(){this.setReact()},selectedValue:function(e){if(!isEqual$b(e,this.currentValue)){var t=e||{start:this.range.start,end:this.range.end};this.$emit("change",t),this.handleChange(DynamicRangeSlider.parseValue(t,this.$props))}},range:function(e,t){if(!isEqual$b(e,t)&&this.currentValue){var n=this.currentValue||[],r=n[0],o=n[1],s=t||{},a=s.start,i=s.end,l=r===a?e.start:r,u=o===i?e.end:o;this.handleChange([l,u])}},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue)},value:function(e,t){isEqual$b(e,t)||this.handleChange(DynamicRangeSlider.parseValue(e,this.$props))}},render:function(){var e=this;if(!this.range||!this.currentValue||null===this.range.start||null===this.range.end||this.range.start===this.range.end)return null;var t=this.range,n=t.start,r=t.end;return vue.createVNode(Container,{class:this.$props.className},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$a(e.$props.innerClass,"title")},{default:function(){return[e.$props.title]}}),vue.createVNode(NoSSR,null,{default:function(){return[vue.createVNode(Slider,{class:getClassName$a(e.$props.innerClass,"slider")},{default:function(){return[vue.createVNode(vueSliderComponent_umd_min,vue.mergeProps({ref:"slider",modelValue:[Math.floor(Math.max(n,e.currentValue[0])),Math.ceil(Math.min(r,e.currentValue[1]))],min:Math.floor(Math.min(n,e.currentValue[0])),max:Math.ceil(Math.max(r,e.currentValue[1])),onChange:e.handleSlider,lazy:!0,dotSize:20,height:4,"enable-cross":!1,tooltip:"always",useKeyboard:!1},e.$props.sliderOptions),null),e.labels?vue.createVNode("div",{class:"label-container"},[vue.createVNode("label",{class:getClassName$a(e.$props.innerClass,"label")||"range-label-left"},[e.labels.start]),vue.createVNode("label",{class:getClassName$a(e.$props.innerClass,"label")||"range-label-right"},[e.labels.end])]):null]}})]}})]}})},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,showMissing:t.showMissing}}},parseValue:function(e){return e?Array.isArray(e)?e:[e.start,e.end]:[]},hasInternalComponent:function(){return!0}},mapStateToProps$c=function(e,t){var n=e.aggregations[t.componentId],r=e.aggregations[t.componentId+"__range__internal"],o=n&&n[t.dataField],s=e.aggregations[t.componentId+"__range__internal"];return t.nestedField?(o=o&&n[t.dataField][t.nestedField]&&n[t.dataField][t.nestedField].buckets?n[t.dataField][t.nestedField].buckets:[],s=s&&r[t.nestedField].min?{start:r[t.nestedField].min.value,end:r[t.nestedField].max.value}:null):(o=o&&n[t.dataField].buckets?n[t.dataField].buckets:[],s=s&&r.min?{start:r.min.value,end:r.max.value}:null),{options:o,range:s,selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId]}},mapDispatchtoProps$9={addComponent:addComponent$1,removeComponent:removeComponent$1,updateQuery:updateQuery$8,watchComponent:watchComponent$1,setQueryListener:setQueryListener$1,setQueryOptions:setQueryOptions$8,setComponentProps:setComponentProps$1,setCustomQuery:setCustomQuery$7,updateComponentProps:updateComponentProps$2},RangeConnected=PreferencesConsumer(connect(mapStateToProps$c,mapDispatchtoProps$9)(DynamicRangeSlider));function _isSlot$b(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}RangeConnected.defaultQuery=DynamicRangeSlider.defaultQuery,RangeConnected.parseValue=DynamicRangeSlider.parseValue,RangeConnected.hasInternalComponent=DynamicRangeSlider.hasInternalComponent,RangeConnected.name=DynamicRangeSlider.name,RangeConnected.componentType=constants_1$1.dynamicRangeSlider,RangeConnected.install=function(e){e.component(RangeConnected.name,RangeConnected)};var updateQuery$9=lib_5.updateQuery,setQueryOptions$9=lib_5.setQueryOptions,setCustomQuery$8=lib_5.setCustomQuery,isEqual$c=lib_8.isEqual,checkValueChange$7=lib_8.checkValueChange,getClassName$b=lib_8.getClassName,getOptionsFromQuery$1=lib_8.getOptionsFromQuery,SingleRange={name:"SingleRange",data:function(){return this.__state={currentValue:null},this.type="range",this.__state},props:{beforeValueChange:types.func,className:Q.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,data:types.data,dataField:types.stringRequired,defaultValue:types.string,value:types.value,filterLabel:types.string,innerClass:types.style,react:types.react,showFilter:Q.bool.def(!0),showRadio:Q.bool.def(!0),title:types.title,URLParams:Q.bool.def(!1),nestedField:types.string,index:Q.string,endpoint:types.endpointConfig},created:function(){updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{dataField:function(){this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){isEqual$c(e,t)||this.setValue(e)},selectedValue:function(e){isEqual$c(this.$data.currentValue,e)||this.setValue(e)},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},render:function(){var e,t=this;return vue.createVNode(Container,{class:this.$props.className},{default:function(){return[t.$props.title&&vue.createVNode(Title,{class:getClassName$b(t.$props.innerClass,"title")},{default:function(){return[t.$props.title]}}),vue.createVNode(UL,{class:getClassName$b(t.$props.innerClass,"list")},_isSlot$b(e=t.$props.data.map((function(e){var n=!!t.$data.currentValue&&t.$data.currentValue.label===e.label;return vue.createVNode("li",{key:e.label,class:n?"active":""},[vue.createVNode(Radio,vue.mergeProps(babelHelperVueTransformOn({change:t.handleChange}),{class:getClassName$b(t.$props.innerClass,"radio"),id:t.$props.componentId+"-"+e.label,name:t.$props.componentId,value:e.label,type:"radio",checked:n,show:t.$props.showRadio}),null),vue.createVNode("label",{class:getClassName$b(t.$props.innerClass,"label"),for:t.$props.componentId+"-"+e.label},[e.label])])})))?e:{default:function(){return[e]}})]}})},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);var r="string"==typeof e?SingleRange.parseValue(e,t):e;checkValueChange$7(t.componentId,r,t.beforeValueChange,(function(){n.currentValue=r,n.updateQueryHandler(r,t),n.$emit("valueChange",r),n.$emit("value-change",r)}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=SingleRange.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=getOptionsFromQuery$1(n(e,t));updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.singleRange})},handleChange:function(e){void 0===this.$props.value?this.setValue(e.target.value):this.$emit("change",e.target.value)}},parseValue:function(e,t){return t.data.find((function(t){return t.label===e}))||null},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,showMissing:t.showMissing}}}},mapStateToProps$d=function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId]}},mapDispatchtoProps$a={updateQuery:updateQuery$9,setQueryOptions:setQueryOptions$9,setCustomQuery:setCustomQuery$8},RangeConnected$1=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$d,mapDispatchtoProps$a)(SingleRange),{componentType:constants_1$1.singleRange}));function _isSlot$c(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}RangeConnected$1.name=SingleRange.name,RangeConnected$1.defaultQuery=SingleRange.defaultQuery,RangeConnected$1.parseValue=SingleRange.parseValue,RangeConnected$1.hasInternalComponent=SingleRange.hasInternalComponent,RangeConnected$1.install=function(e){e.component(RangeConnected$1.name,RangeConnected$1)},RangeConnected$1.componentType=constants_1$1.singleRange;var updateQuery$a=lib_5.updateQuery,setQueryOptions$a=lib_5.setQueryOptions,setCustomQuery$9=lib_5.setCustomQuery,isEqual$d=lib_8.isEqual,checkValueChange$8=lib_8.checkValueChange,getClassName$c=lib_8.getClassName,getOptionsFromQuery$2=lib_8.getOptionsFromQuery,MultiRange={name:"MultiRange",data:function(){return this.state={currentValue:[],showModal:!1,selectedValues:{}},this.type="range",this.state},props:{beforeValueChange:types.func,className:Q.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,data:types.data,dataField:types.stringRequired,defaultValue:types.stringArray,value:types.stringArray,filterLabel:types.string,innerClass:types.style,react:types.react,showFilter:Q.bool.def(!0),showCheckbox:Q.bool.def(!0),title:types.title,URLParams:Q.bool.def(!1),nestedField:types.string,index:Q.string,endpoint:types.endpointConfig},methods:{handleClick:function(e){if(void 0===this.$props.value)this.selectItem(e.target.value);else{var t=parseValueArray(this.selectedValues,e.target.value);this.$emit("change",t)}},selectItem:function(e,t,n,r){var o=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!1);var s=this.currentValue,a=this.selectedValues;if(e)if(t){s=MultiRange.parseValue(e,n);var i={};s.forEach((function(e){i[[e.label]]=!0})),a=r?i:_extends({},a,i)}else if(a[e]){s=s.filter((function(t){return t.label!==e}));var l=a,u=(l[e],_objectWithoutPropertiesLoose(l,[e].map(_toPropertyKey$1)));a=u}else{var c,p=n.data.filter((function(t){return-1!==e.indexOf(t.label)}));s=[].concat(s,p),a=_extends({},a,((c={})["object"==typeof e?e.label:e]=!0,c))}else s=[],a={};checkValueChange$8(n.componentId,s,n.beforeValueChange,(function(){o.currentValue=s,o.selectedValues=a,o.updateQueryHandler(s,n),o.$emit("valueChange",Object.keys(a)),o.$emit("value-change",Object.keys(a))}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=MultiRange.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=getOptionsFromQuery$2(n(e,t));updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.multiRange})}},watch:{dataField:function(){this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.selectItem(e,!0,void 0,!0)},value:function(e,t){isEqual$d(e,t)||this.selectItem(e,!0,void 0,!0)},selectedValue:function(e){if(!isEqual$d(this.$data.currentValue,e)){var t=e?e.map((function(e){return"object"==typeof e&&"label"in e?e.label:e})):null;this.selectItem(t,!0,void 0,!0)}},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},created:function(){updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.selectedValue?this.selectItem(this.selectedValue,!0):this.$props.value?this.selectItem(this.$props.value,!0):this.$props.defaultValue&&this.selectItem(this.$props.defaultValue,!0)},render:function(){var e,t=this;return vue.createVNode(Container,{class:this.$props.className},{default:function(){return[t.$props.title&&vue.createVNode(Title,{class:getClassName$c(t.$props.innerClass,"title")},{default:function(){return[t.$props.title]}}),vue.createVNode(UL,{class:getClassName$c(t.$props.innerClass,"list")},_isSlot$c(e=t.$props.data.map((function(e){var n=!!t.$data.currentValue&&t.$data.currentValue.label===e.label;return vue.createVNode("li",{key:e.label,class:n?"active":""},[vue.createVNode(Checkbox,vue.mergeProps(babelHelperVueTransformOn({click:t.handleClick}),{class:getClassName$c(t.$props.innerClass,"checkbox"),id:t.$props.componentId+"-"+e.label,name:t.$props.componentId,value:e.label,type:"Checkbox",show:t.$props.showCheckbox,checked:t.selectedValues[e.label]}),null),vue.createVNode("label",{class:getClassName$c(t.$props.innerClass,"label"),for:t.$props.componentId+"-"+e.label},[e.label])])})))?e:{default:function(){return[e]}})]}})},parseValue:function(e,t){return e?t.data.filter((function(t){return e.includes(t.label)})):null},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,showMissing:t.showMissing}}}},mapStateToProps$e=function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId]}},mapDispatchtoProps$b={updateQuery:updateQuery$a,setQueryOptions:setQueryOptions$a,setCustomQuery:setCustomQuery$9},RangeConnected$2=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$e,mapDispatchtoProps$b)(MultiRange),{componentType:constants_1$1.multiRange}));RangeConnected$2.name=MultiRange.name,RangeConnected$2.defaultQuery=MultiRange.defaultQuery,RangeConnected$2.parseValue=MultiRange.parseValue,RangeConnected$2.hasInternalComponent=MultiRange.hasInternalComponent,RangeConnected$2.install=function(e){e.component(RangeConnected$2.name,RangeConnected$2)},RangeConnected$2.componentType=constants_1$1.multiRange;var updateQuery$b=lib_5.updateQuery,setQueryOptions$b=lib_5.setQueryOptions,setCustomQuery$a=lib_5.setCustomQuery,checkValueChange$9=lib_8.checkValueChange,getClassName$d=lib_8.getClassName,getOptionsFromQuery$3=lib_8.getOptionsFromQuery,isEqual$e=lib_8.isEqual,RangeSlider={name:"RangeSlider",components:getComponents(),inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:this.$props.range?[this.$props.range.start,this.$props.range.end]:[],stats:[]}},props:{beforeValueChange:types.func,className:Q.string.def(""),range:Q.shape({start:Q.integer.def(0),end:Q.integer.def(10)}),rangeLabels:types.rangeLabels,componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,data:types.data,dataField:types.stringRequired,defaultValue:types.range,value:types.range,filterLabel:types.string,innerClass:types.style,react:types.react,showFilter:Q.bool.def(!0),showCheckbox:Q.bool.def(!0),title:types.title,URLParams:Q.bool.def(!1),sliderOptions:Q.object.def({}),nestedField:types.string,index:Q.string,endpoint:types.endpointConfig},methods:{handleSliderChange:function(e){void 0===this.$props.value?this.handleChange(e):this.$emit("change",{start:e[0],end:e[1]})},handleSlider:function(){var e=this.$refs.slider.getValue();this.handleSliderChange(e)},handleChange:function(e,t){var n=this;void 0===t&&(t=this.$props);checkValueChange$9(t.componentId,{start:e[0],end:e[1]},t.beforeValueChange,(function(){n.currentValue=e,n.updateQueryHandler([e[0],e[1]],t),n.$emit("valueChange",{start:e[0],end:e[1]}),n.$emit("value-change",{start:e[0],end:e[1]})}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=RangeSlider.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=getOptionsFromQuery$3(n(e,t));updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}var s=t.showFilter,a=t.range,i=a.start,l=a.end,u=e[0],c=e[1],p=u===i&&c===l;this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:s&&!p,URLParams:t.URLParams,componentType:constants_1$1.rangeSlider})}},watch:{defaultValue:function(e){this.handleChange(RangeSlider.parseValue(e,this.$props))},value:function(e,t){isEqual$e(e,t)||this.handleChange(RangeSlider.parseValue(e,this.$props))},selectedValue:function(e){isEqual$e(this.$data.currentValue,e)||(this.handleChange(RangeSlider.parseValue(e,this.$props)),this.$emit("change",e))},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},created:function(){this.$props.range||console.error("%crange is not defined. Read more about this at https://opensource.appbase.io/reactive-manual/vue/range-components/rangeslider.html#props","font-size: 12.5px;"),updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue);var e=this.$props,t=e.value,n=e.defaultValue,r=this.selectedValue;this.$props.range&&(Array.isArray(r)?this.handleChange(r):r?this.handleChange(RangeSlider.parseValue(r,this.$props)):t?this.handleChange(RangeSlider.parseValue(t,this.$props)):n&&this.handleChange(RangeSlider.parseValue(n,this.$props)))},render:function(){var e=this;return vue.createVNode(Container,{class:this.$props.className},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$d(e.$props.innerClass,"title")},{default:function(){return[e.$props.title]}}),e.$props.range?vue.createVNode(NoSSR,null,{default:function(){return[vue.createVNode(Slider,{class:getClassName$d(e.$props.innerClass,"slider")},{default:function(){return[vue.createVNode(vueSliderComponent_umd_min,vue.mergeProps({ref:"slider",modelValue:e.currentValue,min:e.$props.range.start,max:e.$props.range.end,dotSize:20,height:4,"enable-cross":!1,"onDrag-end":e.handleSlider,tooltip:"always"},e.$props.sliderOptions),null),e.$props.rangeLabels&&vue.createVNode("div",{class:"label-container"},[vue.createVNode("label",{class:getClassName$d(e.$props.innerClass,"label")||"range-label-left"},[e.$props.rangeLabels.start]),vue.createVNode("label",{class:getClassName$d(e.$props.innerClass,"label")||"range-label-right"},[e.$props.rangeLabels.end])])]}})]}}):null]}})},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,showMissing:t.showMissing}}},parseValue:function(e,t){return e?Array.isArray(e)?e:[e.start,e.end]:t.range?[t.range.start,t.range.end]:[]}},mapStateToProps$f=function(e,t){return{options:e.aggregations[t.componentId]?e.aggregations[t.componentId][t.dataField]&&e.aggregations[t.componentId][t.dataField].buckets:[],selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId]}},mapDispatchtoProps$c={updateQuery:updateQuery$b,setQueryOptions:setQueryOptions$b,setCustomQuery:setCustomQuery$a},RangeConnected$3=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$f,mapDispatchtoProps$c)(RangeSlider),{componentType:constants_1$1.rangeSlider})),_templateObject$r;RangeConnected$3.name=RangeSlider.name,RangeConnected$3.defaultQuery=RangeSlider.defaultQuery,RangeConnected$3.parseValue=RangeSlider.parseValue,RangeConnected$3.hasInternalComponent=RangeSlider.hasInternalComponent,RangeConnected$3.install=function(e){e.component(RangeConnected$3.name,RangeConnected$3)},RangeConnected$3.componentType=constants_1$1.rangeSlider;var alert=function(e){return"\n\tcolor: "+e.theme.colors.alertColor+";\n"},Content=styled("div")(_templateObject$r||(_templateObject$r=_taggedTemplateLiteralLoose(["\n\t",";\n\tfont-size: 13px;\n\tmargin: 8px;\n"])),(function(e){return e.alert&&alert})),getClassName$e=lib_8.getClassName,isEqual$f=lib_8.isEqual,RangeInput={name:"RangeInput",components:{RangeSlider:RangeConnected$3},inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:{start:this.$props.range?this.$props.range.start:0,end:this.$props.range?this.$props.range.end:10},isStartValid:!0,isEndValid:!0}},props:{className:{types:types.string,default:""},defaultValue:types.range,validateRange:types.func,value:types.range,dataField:types.stringRequired,innerClass:types.style,range:{types:types.range,default:function(){return{start:0,end:10}}},rangeLabels:types.rangeLabels,stepValue:types.number,componentStyle:types.style,componentId:types.stringRequired,compoundClause:types.compoundClause,includeNullValues:Q.bool,beforeValueChange:types.func,customQuery:types.func,data:types.data,filterLabel:types.string,react:types.react,showFilter:Q.bool.def(!0),showCheckbox:Q.bool.def(!0),title:types.title,URLParams:Q.bool.def(!1),sliderOptions:Q.object.def({}),nestedField:types.string,endpoint:types.endpointConfig},methods:{shouldUpdate:function(e){var t=this.$props.validateRange;return t&&e?t([e.start,e.end]):!!e&&e.start<=e.end},isControlled:function(){return!(!this.$props.value||!this.$attrs)},handleChange:function(e,t){var n=e;if(this.shouldUpdate(e)&&!isEqual$f(e,this.currentValue))switch(t){case"change":e||(n={start:this.$props.range?this.$props.range.start:0,end:this.$props.range?this.$props.range.end:10}),this.currentValue=n,this.$emit("change",this.currentValue);break;case"value-change":this.$emit("valueChange",this.currentValue),this.$emit("value-change",this.currentValue);break;default:this.currentValue=_extends({},n)}},handleOnChange:function(e){this.handleChange(e||this.$props.range,"change")},handleValueChange:function(e){this.handleChange(e,"value-change")},handleInputChange:function(e){var t=e.target,n=t.name,r=t.value;Number.isNaN(r)?"start"===n?this.isStartValid=!1:this.isEndValid=!1:"start"!==n||this.isStartValid?"end"!==n||this.isEndValid||(this.isEndValid=!0):this.isStartValid=!0,this.isStartValid&&this.isEndValid&&("start"===n?this.handleChange({start:Number(r),end:this.currentValue.end},"change"):this.handleChange({start:this.currentValue.start,end:Number(r)},"change"))}},watch:{defaultValue:function(e,t){t.start===e.start&&t.end===e.end||this.handleChange(e)},value:function(e,t){isEqual$f(e,t)||this.isControlled()&&this.handleChange(e,"change")}},created:function(){this.$props.defaultValue&&this.$props.defaultValue.start&&this.$props.defaultValue.end&&this.handleChange(this.$props.defaultValue),this.isControlled()&&this.handleChange(this.$props.value,"change")},render:function(){var e=this,t=this.$props,n=t.className,r=t.dataField,o=t.range,s=t.rangeLabels,a=t.componentId,i=t.innerClass,l=t.stepValue,u=t.componentStyle,c=t.themePreset,p=t.includeNullValues,d=t.beforeValueChange,h=t.customQuery,f=t.data,m=t.filterLabel,g=t.react,y=t.showFilter,v=t.showCheckbox,b=t.title,_=t.URLParams,$=t.sliderOptions,C=t.nestedField;return vue.createVNode(Container,{style:u,class:n},{default:function(){return[vue.createVNode(RangeConnected$3,vue.mergeProps(babelHelperVueTransformOn({change:e.handleOnChange,"value-change":e.handleValueChange}),{componentId:a,value:{start:e.currentValue.start,end:e.currentValue.end},range:o,dataField:r,rangeLabels:s,includeNullValues:p,beforeValueChange:d,customQuery:h,data:f,filterLabel:m,react:g,showFilter:y,showCheckbox:v,title:b,URLParams:_,sliderOptions:$,nestedField:C}),null),vue.createVNode(Flex,{class:getClassName$e(i,"input-container")||""},{default:function(){return[vue.createVNode(Flex,{direction:"column",flex:2},{default:function(){return[vue.createVNode(Input,vue.mergeProps(babelHelperVueTransformOn({change:e.handleInputChange}),{key:a+"-start-value",name:"start",type:"number",step:l,themePreset:c,"aria-label":a+"-start-input",min:e.$props.range?e.$props.range.start:0,class:getClassName$e(i,"input")||"",alert:!e.isStartValid,value:e.currentValue.start||0}),null),!e.isStartValid&&vue.createVNode(Content,{alert:!0},{default:function(){return[vue.createTextVNode("Input range is invalid")]}})]}}),vue.createVNode(Flex,{justifyContent:"center",alignItems:"center",flex:1},{default:function(){return[vue.createTextVNode("-")]}}),vue.createVNode(Flex,{direction:"column",flex:2},{default:function(){return[vue.createVNode(Input,vue.mergeProps(babelHelperVueTransformOn({change:e.handleInputChange}),{key:a+"-end-value",name:"end",type:"number",step:l,themePreset:c,"aria-label":a+"-end-input",max:e.$props.range?e.$props.range.end:10,class:getClassName$e(i,"input")||"",alert:!e.isEndValid,value:e.currentValue.end||0}),null),!e.isEndValid&&vue.createVNode(Content,{alert:!0},{default:function(){return[vue.createTextVNode("Input range is invalid")]}})]}})]}})]}})}},mapStateToProps$g=function(e){return{themePreset:e.config.themePreset}},RangeConnected$4=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$g,{})(RangeInput),{componentType:constants_1$1.rangeInput}));RangeConnected$4.name=RangeInput.name,RangeConnected$4.install=function(e){e.component(RangeConnected$4.name,RangeConnected$4)},RangeConnected$4.componentType=constants_1$1.rangeInput;var RcConnected$1=PreferencesConsumer({name:"RcConnected",render:function(){var e=RcConnected;switch(this.$attrs.componentType){case constants_1$1.reactiveList:e=RLConnected;break;case constants_1$1.searchBox:e=SBConnected;break;case constants_1$1.singleList:e=ListConnected;break;case constants_1$1.multiList:e=ListConnected$1;break;case constants_1$1.singleDropdownList:e=ListConnected$2;break;case constants_1$1.multiDropdownList:e=ListConnected$3;break;case constants_1$1.toggleButton:e=TBConnected;break;case constants_1$1.dynamicRangeSlider:e=RangeConnected;break;case constants_1$1.singleRange:e=RangeConnected$1;break;case constants_1$1.multiRange:e=RangeConnected$2;break;case constants_1$1.rangeSlider:e=RangeConnected$3;break;case constants_1$1.rangeInput:e=RangeConnected$4}return vue.h(e,null,this.$slots)}});RcConnected$1.name=RcConnected.name,RcConnected$1.hasInternalComponent=RcConnected.hasInternalComponent,RcConnected$1.componentType=constants_1$1.reactiveComponent,RcConnected$1.install=function(e){e.component(RcConnected$1.name,RcConnected$1)};var setValue$2=lib_5.setValue,clearValues=lib_5.clearValues,resetValuesToDefault=lib_5.resetValuesToDefault,getClassName$f=lib_8.getClassName,handleA11yAction$2=lib_8.handleA11yAction,SelectedFilters={name:"SelectedFilters",props:{className:Q.string.def(""),clearAllLabel:Q.string.def("Clear All"),innerClass:types.style,showClearAll:Q.bool.def(!0),title:types.title,resetToDefault:Q.bool.def(!1),clearAllBlacklistComponents:Q.array,resetToValues:Q.object},inject:{theme:{from:"theme_reactivesearch"}},render:function(){var e=this;if(this.$slots.default)return this.$slots.default({components:this.components,selectedValues:this.selectedValues,clearValues:this.clearValues,clearValue:this.clearValue,setValue:this.setValue,resetValuesToDefault:this.resetValuesToDefault});var t=this.renderFilters(),n=!!t.length;return vue.createVNode(Container,{class:filters(this.theme)+" "+(this.$props.className||"")},{default:function(){return[e.$props.title&&n&&vue.createVNode(Title,{class:getClassName$f(e.$props.innerClass,"title")||""},{default:function(){return[e.$props.title]}}),t,e.$props.showClearAll&&n&&t.length>1?vue.createVNode(Button,vue.mergeProps(babelHelperVueTransformOn({click:e.clearValues,keypress:function(t){return handleA11yAction$2(t,(function(){return e.clearValues()}))}}),{class:getClassName$f(e.$props.innerClass,"button")||"",tabIndex:"0"}),{default:function(){return[e.$props.clearAllLabel]}}):null]}})},methods:{remove:function(e,t){void 0===t&&(t=null),this.setValue(e,null),this.$emit("clear",e,t)},clearValues:function(){var e=this.resetToDefault,t=this.resetToValues,n=this.clearAllBlacklistComponents;e?this.resetValuesToDefault(n):this.clearValuesAction(t,n),this.$emit("clear",t)},clearValue:function(e){var t=this.resetToDefault,n=this.resetToValues;t?this.resetValuesToDefault(this.components.filter((function(t){return t!==e}))):this.setValue(e,(null==n?void 0:n[e])||null),this.$emit("clear",null==n?void 0:n[e])},renderValue:function(e,t){var n=this;if(t&&e.length)return e.map((function(e){return n.renderValue(e)})).join(", ");if(e&&"object"==typeof e){var r=("string"==typeof e.label?e.label:e.value)||e.key||e.distance||null;return e.location&&(r=e.location+" - "+r),r}return e},renderFilterButton:function(e,t,n,r){return vue.createVNode(Button,vue.mergeProps(babelHelperVueTransformOn({click:n,keypress:function(e){return handleA11yAction$2(e,n)}}),{class:getClassName$f(this.$props.innerClass,"button")||"",key:t,tabIndex:"0"}),{default:function(){return[vue.createVNode("span",null,[r]),vue.createVNode("span",null,[vue.createTextVNode("✕")])]}})},renderFilters:function(){var e=this,t=this.selectedValues;return Object.keys(t).filter((function(n){return e.components.includes(n)&&t[n].showFilter})).map((function(n,r){var o=t[n],s=o.label,a=o.value,i=Array.isArray(a);if(s&&(i&&a.length||!i&&a)){var l=e.renderValue(a,i);return e.renderFilterButton(n,n+"-"+(r+1),(function(){return e.remove(n,a)}),t[n].label+": "+decodeHtml(l))}return null})).filter(Boolean)}},watch:{selectedValues:function(e){this.$emit("change",e)}}},mapStateToProps$h=function(e){return{components:e.components,selectedValues:e.selectedValues}},mapDispatchtoProps$d={clearValuesAction:clearValues,setValue:setValue$2,resetValuesToDefault:resetValuesToDefault},RcConnected$2=connect(mapStateToProps$h,mapDispatchtoProps$d)(SelectedFilters);function _isSlot$d(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}RcConnected$2.name=SelectedFilters.name,RcConnected$2.install=function(e){e.component(RcConnected$2.name,RcConnected$2)};var ResultCardTitle={name:"ResultCardTitle",render:function(){var e,t=this.$slots.default;return vue.createVNode(Title,this.$props,_isSlot$d(e=t())?e:{default:function(){return[e]}})},install:function(e){e.component(ResultCardTitle.name,ResultCardTitle)}},_excluded$4=["src"],ResultCardImage={name:"ResultCardImage",props:{src:Q.string.isRequired},render:function(){var e=this.$props,t=e.src,n=_objectWithoutPropertiesLoose(e,_excluded$4);return vue.createVNode(Image$1,vue.mergeProps({style:{backgroundImage:"url("+t+")"}},n),null)},install:function(e){e.component(ResultCardImage.name,ResultCardImage)}},ResultCardDescription={name:"ResultCardDescription",functional:!0,render:function(e){return vue.createVNode("article",e.$props,[e.$slots.default()])},install:function(e){e.component(ResultCardDescription.name,ResultCardDescription)}},_excluded$5=["href","target"];function _isSlot$e(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var ResultCard={name:"ResultCard",components:{ResultCardTitle:ResultCardTitle,ResultCardImage:ResultCardImage,ResultCardDescription:ResultCardDescription},props:{target:Q.string.def("_blank"),href:types.string},render:function(){var e,t=this.$slots.default,n=this.$props,r=n.href,o=n.target,s=_objectWithoutPropertiesLoose(n,_excluded$5);return vue.createVNode(Card,vue.mergeProps({href:r,target:o,rel:"_blank"===o?"noopener noreferrer":null},s),_isSlot$e(e=t())?e:{default:function(){return[e]}})},install:function(e){e.component(ResultCard.name,ResultCard),e.component(ResultCardTitle.name,ResultCardTitle),e.component(ResultCardImage.name,ResultCardImage),e.component(ResultCardDescription.name,ResultCardDescription)}},ResultListContent={name:"ResultListContent",functional:!0,render:function(e){return vue.createVNode("article",e.$props,[e.$slots.default()])},install:function(e){e.component(ResultListContent.name,ResultListContent)}},ResultListDescription={name:"ResultListDescription",functional:!0,render:function(e){return vue.createVNode("div",e.$props,[e.$slots.default()])},install:function(e){e.component(ResultListDescription.name,ResultListDescription)}},_excluded$6=["src","small"],ResultListImage={name:"ResultListImage",props:{src:Q.string.isRequired,small:Q.bool.def(!1)},render:function(){var e=this.$props,t=e.src,n=e.small,r=_objectWithoutPropertiesLoose(e,_excluded$6);return vue.createVNode(Image,vue.mergeProps({src:t,small:n},r),null)}};function _isSlot$f(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}ResultListImage.install=function(e){e.component(ResultListImage.name,ResultListImage)};var ResultListTitle={name:"ResultListTitle",render:function(){var e,t=this.$slots.default;return vue.createVNode(Title,this.$props,_isSlot$f(e=t())?e:{default:function(){return[e]}})},install:function(e){e.component(ResultListTitle.name,ResultListTitle)}},_excluded$7=["href","target"];function _isSlot$g(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var ResultList={name:"ResultList",props:{href:types.string,target:Q.string.def("_blank")},components:{ResultListContent:ResultListContent,ResultListDescription:ResultListDescription,ResultListImage:ResultListImage,ResultListTitle:ResultListTitle},data:function(){return this.__state={hasImage:!1,isSmall:!1},this.__state},mounted:function(){var e=this.$slots.default().find((function(e){return e.type&&e.type.name===ResultListImage.name}));e&&e.props&&(this.hasImage=!0,e.props.small&&(this.isSmall=!0))},render:function(){var e,t=this.$props,n=t.href,r=t.target,o=_objectWithoutPropertiesLoose(t,_excluded$7),s=this.hasImage,a=this.isSmall,i=this.$slots.default;return vue.createVNode(ListItem,vue.mergeProps({href:n,image:s,small:a,target:r,rel:"_blank"===r?"noopener noreferrer":null},o),_isSlot$g(e=i())?e:{default:function(){return[e]}})},install:function(e){e.component(ResultList.name,ResultList),e.component(ResultListContent.name,ResultListContent),e.component(ResultListDescription.name,ResultListDescription),e.component(ResultListImage.name,ResultListImage),e.component(ResultListTitle.name,ResultListTitle)}},setSearchState=lib_5.setSearchState,getSearchState=lib_8.getSearchState,defaultKeys=["hits","value","aggregations","error"],filterProps=function(e){return void 0===e&&(e={}),_extends({},e,{props:e.componentProps})},convertArrayLike=function(e){for(var t=[],n=0;e[n];)t[n]=e[n],n+=1;return t},filterByComponentIds=function(e,t){void 0===t&&(t={});var n=t,r=n.componentIds,o=n.excludeComponentIds;if(r){var s;if("string"==typeof r)return(s={})[r]=e[r],s;if(Array.isArray(r)&&r.length){var a={};return r.forEach((function(t){a[t]=e[t]})),a}}var i={};return t.includeInternalComponents?i=e:Object.keys(e).forEach((function(t){t.endsWith("internal")||t.endsWith("active")||t.endsWith("timestamp")||(i[t]=e[t])})),o&&("string"==typeof o&&Object.keys(e).forEach((function(e){e===o&&delete i[e]})),Array.isArray(o)&&o.length&&Object.keys(e).forEach((function(e){o.includes(e)&&delete i[e]}))),i},filterByKeys=function(e,t){return Object.keys(e).reduce((function(n,r){var o;return _extends({},n,((o={})[r]=Object.keys(e[r]).filter((function(e){return t.includes(e)})).reduce((function(t,n){return t[n]=e[r][n],t}),{}),o))}),{})},StateProvider={name:"StateProvider",props:{onChange:Q.func,componentIds:Q.oneOfType([Q.string,Q.arrayOf(Q.string)]),includeKeys:Q.arrayOf(Q.string).def(defaultKeys),strict:Q.bool.def(!0),includeInternalComponents:Q.bool.def(!1),excludeComponentIds:Q.oneOfType([Q.string,Q.arrayOf(Q.string)])},data:function(){return this.__state={searchState:null},this.__state},created:function(){this.searchState=filterByKeys(getSearchState(filterProps(this.searchStateProps)),this.includeKeys)},computed:{searchStateProps:function(){return{selectedValues:this.selectedValues||{},queryLog:this.queryLog||{},dependencyTree:this.dependencyTree||{},componentProps:this.componentProps||{},hits:this.hits||{},aggregations:this.aggregations||{},isLoading:this.isLoading||{},error:this.error||{},promotedResults:this.promotedResults||{},rawData:this.rawData||{}}}},watch:{searchState:function(e,t){null!=t&&this.isStateChanged(e,t)&&this.$emit("change",t,e)},selectedValues:function(e,t){this.calculateSearchState(e,t)},queryLog:function(e,t){this.calculateSearchState(e,t)},dependencyTree:function(e,t){this.calculateSearchState(e,t)},componentProps:function(e,t){this.calculateSearchState(e,t)},hits:function(e,t){this.calculateSearchState(e,t)},aggregations:function(e,t){this.calculateSearchState(e,t)},isLoading:function(e,t){this.calculateSearchState(e,t)},error:function(e,t){this.calculateSearchState(e,t)},componentIds:function(e,t){this.calculateSearchState(e,t)},excludeComponentIds:function(e,t){this.calculateSearchState(e,t)},includeKeys:function(e,t){this.calculateSearchState(e,t)},promotedResults:function(e,t){this.calculateSearchState(e,t)},rawData:function(e,t){this.calculateSearchState(e,t)},customData:function(e,t){this.calculateSearchState(e,t)},settings:function(e,t){this.calculateSearchState(e,t)}},methods:{isStateChanged:function(e,t){return JSON.stringify(t)!==JSON.stringify(e)},calculateSearchState:function(e,t){this.isStateChanged(e,t)&&(this.searchState=filterByKeys(getSearchState(filterProps(this.searchStateProps)),this.includeKeys))},setSearchState:function(e){var t=this;void 0===e&&(e={});var n=this.components,r={};convertArrayLike(n).filter((function(e){return!transform_12(e)})).forEach((function(n){r[n]=n in e?{value:e[n],componentProps:t.componentProps[n]}:{value:null,componentProps:t.componentProps[n]}})),this.setSearchStateFn(r)}},render:function(){var e=this.searchState,t=this.$slots.default;return t?t({searchState:e,setSearchState:this.setSearchState}):null}},mapStateToProps$i=function(e,t){return{selectedValues:filterByComponentIds(e.selectedValues,t),queryLog:filterByComponentIds(e.queryLog,t),dependencyTree:filterByComponentIds(e.dependencyTree,t),componentProps:filterByComponentIds(e.props,t),hits:filterByComponentIds(e.hits,t),aggregations:filterByComponentIds(e.aggregations,t),isLoading:filterByComponentIds(e.isLoading,t),error:filterByComponentIds(e.error,t),promotedResults:filterByComponentIds(e.promotedResults,t),customData:filterByComponentIds(e.customData,t),settings:filterByComponentIds(e.settings,t),rawData:filterByComponentIds(e.rawData,t),components:e.components}},mapDispatchtoProps$e={setSearchStateFn:setSearchState},StateProviderConnected=connect(mapStateToProps$i,mapDispatchtoProps$e)(StateProvider);StateProviderConnected.name=StateProvider.name,StateProviderConnected.install=function(e){e.component(StateProviderConnected.name,StateProviderConnected)};var lazy=function(e){var t,n=!1;return function(){return n||(n=!0,t=e()),t}},Env=function(){function e(){}return e.isServer=function(){return"undefined"==typeof document},e}();function createMapScript(e){var t=document.createElement("SCRIPT");if("object"!=typeof e)throw new Error("options should be an object");Array.prototype.isPrototypeOf(e.libraries)&&(e.libraries=e.libraries.join(",")),e.callback="vueGoogleMapsInit";var n="https://maps.googleapis.com/maps/api/js?"+Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&");return t.setAttribute("src",n),t.setAttribute("async",""),t.setAttribute("defer",""),t}var isApiSetUp=!1;function loadGMapApi(e){if(!Env.isServer()){if(isApiSetUp)throw new Error("You already started the loading of google maps");isApiSetUp=!0;var t=createMapScript(e);document.head.appendChild(t)}}var bindEvents=function(e,t,n){for(var r,o=function(){var n=r.value,o=("on"+n.charAt(0).toUpperCase()+n.slice(1)).replace(/[-_]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}));(e.$props[o]||e.$attrs[o]||e.$gmapOptions.autobindAllEvents||e.$attrs[n])&&t.addListener(n,(function(t){e.$emit(n,t)}))},s=_createForOfIteratorHelperLoose(n);!(r=s()).done;)o()};function WatchPrimitiveProperties(e,t,n,r){void 0===r&&(r=!1);var o=!1;function s(){o||(o=!0,e.$nextTick((function(){o=!1,n()})))}for(var a,i=_createForOfIteratorHelperLoose(t);!(a=i()).done;){var l=a.value;e.$watch(l,s,{immediate:r})}}var Str=function(){function e(){}return e.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e}();function getPropsValues(e,t){return Object.keys(t).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function bindProps(e,t,n){var r=function(r){var o=n[r],s=o.twoWay,a=o.type,i=o.trackProperties;if(o.noBind)return 1;var l="set"+Str.capitalizeFirstLetter(r),u="get"+Str.capitalizeFirstLetter(r),c=r.toLowerCase()+"_changed",p=e[r];if(void 0===t[l])throw new Error(l+" is not a method of (the Maps object corresponding to) "+e.$options._componentTag);a===Object&&i?WatchPrimitiveProperties(e,i.map((function(e){return r+"."+e})),(function(){t[l](e[r])}),void 0!==e[r]):e.$watch(r,(function(){var n=e[r];t[l](n)}),{immediate:void 0!==p,deep:a===Object}),s&&(e.$gmapOptions.autobindAllEvents||e.$attrs[c])&&t.addListener(c,(function(){e.$emit(c,t[u]())}))};for(var o in n)r(o)}var MapElementMixin={inject:{$mapPromise:{default:"abcdef"}},provide:function(){var e=this;return this.$mapPromise.then((function(t){e.$map=t})),{}}},_excluded$8=["mappedProps","name","ctr","ctrArgs","events","beforeCreate","afterCreate","props"];function buildComponent(e){var t=e.mappedProps,n=e.name,r=e.ctr,o=e.ctrArgs,s=e.events,a=e.beforeCreate,i=e.afterCreate,l=e.props,u=_objectWithoutPropertiesLoose(e,_excluded$8),c="$"+n+"Promise",p="$"+n+"Object";return assert(!(u.props instanceof Array),"`props` should be an object, not Array"),_extends({},"undefined"!=typeof GENERATE_DOC?{$vgmOptions:e}:{},{mixins:[MapElementMixin],props:_extends({},l,mappedPropsToVueProps(t)),render:function(){return""},provide:function(){var e,n=this,u=this.$mapPromise.then((function(e){n.$map=e;var r=_extends({},n.options,{map:e},getPropsValues(n,t));if(delete r.options,a){var o=a.bind(n)(r);if(o instanceof Promise)return o.then((function(){return{options:r}}))}return{options:r}})).then((function(e){var a,u=e.options,c=r();return n[p]=o?new((a=Function.prototype.bind).call.apply(a,[c,null].concat(o(u,getPropsValues(n,l||{}))))):new c(u),bindProps(n,n[p],t),bindEvents(n,n[p],s),i&&i.bind(n)(n[p]),n[p]}));return this[c]=u,(e={})[c]=u,e},unmounted:function(){this[p]&&this[p].setMap&&this[p].setMap(null)}},u)}function assert(e,t){if(!e)throw new Error(t)}function mappedPropsToVueProps(e){return Object.entries(e).map((function(e){var t=e[0],n=e[1],r={};return"type"in n&&(r.type=n.type),"default"in n&&(r.default=n.default),"required"in n&&(r.required=n.required),[t,r]})).reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})}var props$1={draggable:{type:Boolean},editable:{type:Boolean},options:{twoWay:!1,type:Object},path:{type:Array,twoWay:!0}},events=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],Polyline=buildComponent({mappedProps:props$1,props:{deepWatch:{type:Boolean,default:!1}},events:events,name:"polyline",ctr:function(){return google.maps.Polyline},emits:events,afterCreate:function(e){var t=this,n=function(){};events.forEach((function(n){e.addListener(n,(function(e){t.$emit(n,e)}))})),this.$watch("path",(function(e){if(e){n(),t.$polylineObject.setPath(e);var r=t.$polylineObject.getPath(),o=[],s=function(){t.$emit("path_changed",t.$polylineObject.getPath())};o.push([r,r.addListener("insert_at",s)]),o.push([r,r.addListener("remove_at",s)]),o.push([r,r.addListener("set_at",s)]),n=function(){o.map((function(e){e[0];var t=e[1];return google.maps.event.removeListener(t)}))}}}),{deep:this.deepWatch,immediate:!0})}}),props$2={draggable:{type:Boolean},editable:{type:Boolean},options:{type:Object},path:{type:Array,twoWay:!0,noBind:!0},paths:{type:Array,twoWay:!0,noBind:!0}},events$1=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick","paths_changed"],Polygon=buildComponent({props:{deepWatch:{type:Boolean,default:!1}},events:events$1,mappedProps:props$2,name:"polygon",ctr:function(){return google.maps.Polygon},emits:events$1,beforeCreate:function(e){e.path||delete e.path,e.paths||delete e.paths},afterCreate:function(e){var t=this,n=function(){};events$1.forEach((function(n){e.addListener(n,(function(e){t.$emit(n,e)}))})),this.$watch("paths",(function(r){if(r){n(),e.setPaths(r);for(var o=function(){t.$emit("paths_changed",e.getPaths())},s=[],a=e.getPaths(),i=0;i<a.getLength();i++){var l=a.getAt(i);s.push([l,l.addListener("insert_at",o)]),s.push([l,l.addListener("remove_at",o)]),s.push([l,l.addListener("set_at",o)])}s.push([a,a.addListener("insert_at",o)]),s.push([a,a.addListener("remove_at",o)]),s.push([a,a.addListener("set_at",o)]),n=function(){s.map((function(e){e[0];var t=e[1];return google.maps.event.removeListener(t)}))}}}),{deep:this.deepWatch,immediate:!0}),this.$watch("path",(function(r){if(r){n(),e.setPaths(r);var o=e.getPath(),s=[],a=function(){t.$emit("path_changed",e.getPath())};s.push([o,o.addListener("insert_at",a)]),s.push([o,o.addListener("remove_at",a)]),s.push([o,o.addListener("set_at",a)]),n=function(){s.map((function(e){e[0];var t=e[1];return google.maps.event.removeListener(t)}))}}}),{deep:this.deepWatch,immediate:!0})}}),props$3={center:{type:Object,twoWay:!0,required:!0},radius:{type:Number,twoWay:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},options:{type:Object,twoWay:!1}},events$2=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],Circle=buildComponent({mappedProps:props$3,name:"circle",ctr:function(){return google.maps.Circle},events:events$2,emits:events$2,afterCreate:function(e){var t=this;events$2.forEach((function(n){e.addListener(n,(function(e){t.$emit(n,e)}))}))}}),props$4={bounds:{type:Object,twoWay:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},options:{type:Object,twoWay:!1}},events$3=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],Rectangle=buildComponent({mappedProps:props$4,name:"rectangle",ctr:function(){return google.maps.Rectangle},events:events$3,emits:events$3,afterCreate:function(e){var t=this;events$3.forEach((function(n){e.addListener(n,(function(e){t.$emit(n,e)}))}))}}),props$5={animation:{twoWay:!0,type:Number},attribution:{type:Object},clickable:{type:Boolean,twoWay:!0,default:!0},cursor:{type:String,twoWay:!0},draggable:{type:Boolean,twoWay:!0,default:!1},icon:{twoWay:!0},label:{},opacity:{type:Number,default:1},options:{type:Object},place:{type:Object},position:{type:Object,twoWay:!0},shape:{type:Object,twoWay:!0},title:{type:String,twoWay:!0},zIndex:{type:Number,twoWay:!0},visible:{twoWay:!0,default:!0}},events$4=["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],script=buildComponent({mappedProps:props$5,events:events$4,name:"marker",ctr:function(){return google.maps.Marker},inject:{$clusterPromise:{default:null}},emits:events$4,unmounted:function(){this.$markerObject&&(this.$clusterObject?this.$clusterObject.removeMarker(this.$markerObject,!0):this.$markerObject.setMap(null))},beforeCreate:function(e){return this.$clusterPromise&&(e.map=null),this.$clusterPromise},afterCreate:function(e){var t=this;events$4.forEach((function(n){e.addListener(n,(function(e){t.$emit(n,e)}))})),this.$clusterPromise&&this.$clusterPromise.then((function(n){t.$clusterObject=n,n.addMarker(e)}))}});function render(e,t,n,r,o,s){return vue.openBlock(),vue.createElementBlock("div",{onClick:t[0]||(t[0]=function(){console.log("sdfsd")})},[vue.renderSlot(e.$slots,"default")])}script.render=render,script.__file="node_modules/vue-google-maps-community-fork/src/components/marker.vue";var fastDeepEqual=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,s;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(s=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,s[o]))return!1;for(o=r;0!=o--;){var a=s[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n},ARRAY_TYPES=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],VERSION=1,HEADER_SIZE=8,KDBush=function(){function e(e,t,n,r){if(void 0===t&&(t=64),void 0===n&&(n=Float64Array),isNaN(e)||e<0)throw new Error("Unpexpected numItems value: "+e+".");this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=n,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;var o=ARRAY_TYPES.indexOf(this.ArrayType),s=2*e*this.ArrayType.BYTES_PER_ELEMENT,a=e*this.IndexArrayType.BYTES_PER_ELEMENT,i=(8-a%8)%8;if(o<0)throw new Error("Unexpected typed array class: "+n+".");r&&r instanceof ArrayBuffer?(this.data=r,this.ids=new this.IndexArrayType(this.data,HEADER_SIZE,e),this.coords=new this.ArrayType(this.data,HEADER_SIZE+a+i,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(HEADER_SIZE+s+a+i),this.ids=new this.IndexArrayType(this.data,HEADER_SIZE,e),this.coords=new this.ArrayType(this.data,HEADER_SIZE+a+i,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(VERSION<<4)+o]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e)}e.from=function(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");var n=new Uint8Array(t,0,2),r=n[0],o=n[1];if(219!==r)throw new Error("Data does not appear to be in a KDBush format.");var s=o>>4;if(s!==VERSION)throw new Error("Got v"+s+" data when expected v"+VERSION+".");var a=ARRAY_TYPES[15&o];if(!a)throw new Error("Unrecognized array type.");var i=new Uint16Array(t,2,1)[0];return new e(new Uint32Array(t,4,1)[0],i,a,t)};var t=e.prototype;return t.add=function(e,t){var n=this._pos>>1;return this.ids[n]=n,this.coords[this._pos++]=e,this.coords[this._pos++]=t,n},t.finish=function(){var e=this._pos>>1;if(e!==this.numItems)throw new Error("Added "+e+" items when expected "+this.numItems+".");return sort(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this},t.range=function(e,t,n,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");for(var o=this.ids,s=this.coords,a=this.nodeSize,i=[0,o.length-1,0],l=[];i.length;){var u=i.pop()||0,c=i.pop()||0,p=i.pop()||0;if(c-p<=a)for(var d=p;d<=c;d++){var h=s[2*d],f=s[2*d+1];h>=e&&h<=n&&f>=t&&f<=r&&l.push(o[d])}else{var m=p+c>>1,g=s[2*m],y=s[2*m+1];g>=e&&g<=n&&y>=t&&y<=r&&l.push(o[m]),(0===u?e<=g:t<=y)&&(i.push(p),i.push(m-1),i.push(1-u)),(0===u?n>=g:r>=y)&&(i.push(m+1),i.push(c),i.push(1-u))}}return l},t.within=function(e,t,n){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");for(var r=this.ids,o=this.coords,s=this.nodeSize,a=[0,r.length-1,0],i=[],l=n*n;a.length;){var u=a.pop()||0,c=a.pop()||0,p=a.pop()||0;if(c-p<=s)for(var d=p;d<=c;d++)sqDist(o[2*d],o[2*d+1],e,t)<=l&&i.push(r[d]);else{var h=p+c>>1,f=o[2*h],m=o[2*h+1];sqDist(f,m,e,t)<=l&&i.push(r[h]),(0===u?e-n<=f:t-n<=m)&&(a.push(p),a.push(h-1),a.push(1-u)),(0===u?e+n>=f:t+n>=m)&&(a.push(h+1),a.push(c),a.push(1-u))}}return i},e}();function sort(e,t,n,r,o,s){if(!(o-r<=n)){var a=r+o>>1;select(e,t,a,r,o,s),sort(e,t,n,r,a-1,1-s),sort(e,t,n,a+1,o,1-s)}}function select(e,t,n,r,o,s){for(;o>r;){if(o-r>600){var a=o-r+1,i=n-r+1,l=Math.log(a),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(a-u)/a)*(i-a/2<0?-1:1);select(e,t,n,Math.max(r,Math.floor(n-i*u/a+c)),Math.min(o,Math.floor(n+(a-i)*u/a+c)),s)}var p=t[2*n+s],d=r,h=o;for(swapItem(e,t,r,n),t[2*o+s]>p&&swapItem(e,t,r,o);d<h;){for(swapItem(e,t,d,h),d++,h--;t[2*d+s]<p;)d++;for(;t[2*h+s]>p;)h--}t[2*r+s]===p?swapItem(e,t,r,h):swapItem(e,t,++h,o),h<=n&&(r=h+1),n<=h&&(o=h-1)}}function swapItem(e,t,n,r){swap(e,n,r),swap(t,2*n,2*r),swap(t,2*n+1,2*r+1)}function swap(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function sqDist(e,t,n,r){var o=e-n,s=t-r;return o*o+s*s}var defaultOptions={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(e){return e}},fround=Math.fround||(tmp=new Float32Array(1),function(e){return tmp[0]=+e,tmp[0]}),tmp,OFFSET_ZOOM=2,OFFSET_ID=3,OFFSET_PARENT=4,OFFSET_NUM=5,OFFSET_PROP=6,Supercluster=function(){function e(e){this.options=Object.assign(Object.create(defaultOptions),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}var t=e.prototype;return t.load=function(e){var t=this.options,n=t.log,r=t.minZoom,o=t.maxZoom;n&&console.time("total time");var s="prepare "+e.length+" points";n&&console.time(s),this.points=e;for(var a=[],i=0;i<e.length;i++){var l=e[i];if(l.geometry){var u=l.geometry.coordinates,c=u[0],p=u[1],d=fround(lngX(c)),h=fround(latY(p));a.push(d,h,1/0,i,-1,1),this.options.reduce&&a.push(0)}}var f=this.trees[o+1]=this._createTree(a);n&&console.timeEnd(s);for(var m=o;m>=r;m--){var g=+Date.now();f=this.trees[m]=this._createTree(this._cluster(f,m)),n&&console.log("z%d: %d clusters in %dms",m,f.numItems,+Date.now()-g)}return n&&console.timeEnd("total time"),this},t.getClusters=function(e,t){var n=((e[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,e[1])),o=180===e[2]?180:((e[2]+180)%360+360)%360-180,s=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,o=180;else if(n>o){var a=this.getClusters([n,r,180,s],t),i=this.getClusters([-180,r,o,s],t);return a.concat(i)}for(var l,u=this.trees[this._limitZoom(t)],c=u.range(lngX(n),latY(s),lngX(o),latY(r)),p=u.data,d=[],h=_createForOfIteratorHelperLoose(c);!(l=h()).done;){var f=l.value,m=this.stride*f;d.push(p[m+OFFSET_NUM]>1?getClusterJSON(p,m,this.clusterProps):this.points[p[m+OFFSET_ID]])}return d},t.getChildren=function(e){var t=this._getOriginId(e),n=this._getOriginZoom(e),r="No cluster with the specified id.",o=this.trees[n];if(!o)throw new Error(r);var s=o.data;if(t*this.stride>=s.length)throw new Error(r);for(var a,i=this.options.radius/(this.options.extent*Math.pow(2,n-1)),l=s[t*this.stride],u=s[t*this.stride+1],c=[],p=_createForOfIteratorHelperLoose(o.within(l,u,i));!(a=p()).done;){var d=a.value*this.stride;s[d+OFFSET_PARENT]===e&&c.push(s[d+OFFSET_NUM]>1?getClusterJSON(s,d,this.clusterProps):this.points[s[d+OFFSET_ID]])}if(0===c.length)throw new Error(r);return c},t.getLeaves=function(e,t,n){t=t||10,n=n||0;var r=[];return this._appendLeaves(r,e,t,n,0),r},t.getTile=function(e,t,n){var r=this.trees[this._limitZoom(e)],o=Math.pow(2,e),s=this.options,a=s.extent,i=s.radius/a,l=(n-i)/o,u=(n+1+i)/o,c={features:[]};return this._addTileFeatures(r.range((t-i)/o,l,(t+1+i)/o,u),r.data,t,n,o,c),0===t&&this._addTileFeatures(r.range(1-i/o,l,1,u),r.data,o,n,o,c),t===o-1&&this._addTileFeatures(r.range(0,l,i/o,u),r.data,-1,n,o,c),c.features.length?c:null},t.getClusterExpansionZoom=function(e){for(var t=this._getOriginZoom(e)-1;t<=this.options.maxZoom;){var n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t},t._appendLeaves=function(e,t,n,r,o){for(var s,a=_createForOfIteratorHelperLoose(this.getChildren(t));!(s=a()).done;){var i=s.value,l=i.properties;if(l&&l.cluster?o+l.point_count<=r?o+=l.point_count:o=this._appendLeaves(e,l.cluster_id,n,r,o):o<r?o++:e.push(i),e.length===n)break}return o},t._createTree=function(e){for(var t=new KDBush(e.length/this.stride|0,this.options.nodeSize,Float32Array),n=0;n<e.length;n+=this.stride)t.add(e[n],e[n+1]);return t.finish(),t.data=e,t},t._addTileFeatures=function(e,t,n,r,o,s){for(var a,i=_createForOfIteratorHelperLoose(e);!(a=i()).done;){var l=a.value*this.stride,u=t[l+OFFSET_NUM]>1,c=void 0,p=void 0,d=void 0;if(u)c=getClusterProperties(t,l,this.clusterProps),p=t[l],d=t[l+1];else{var h=this.points[t[l+OFFSET_ID]];c=h.properties;var f=h.geometry.coordinates,m=f[0],g=f[1];p=lngX(m),d=latY(g)}var y={type:1,geometry:[[Math.round(this.options.extent*(p*o-n)),Math.round(this.options.extent*(d*o-r))]],tags:c},v=void 0;void 0!==(v=u||this.options.generateId?t[l+OFFSET_ID]:this.points[t[l+OFFSET_ID]].id)&&(y.id=v),s.features.push(y)}},t._limitZoom=function(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))},t._cluster=function(e,t){for(var n=this.options,r=n.radius,o=n.extent,s=n.reduce,a=n.minPoints,i=r/(o*Math.pow(2,t)),l=e.data,u=[],c=this.stride,p=0;p<l.length;p+=c)if(!(l[p+OFFSET_ZOOM]<=t)){l[p+OFFSET_ZOOM]=t;for(var d,h=l[p],f=l[p+1],m=e.within(l[p],l[p+1],i),g=l[p+OFFSET_NUM],y=g,v=_createForOfIteratorHelperLoose(m);!(d=v()).done;){var b=d.value*c;l[b+OFFSET_ZOOM]>t&&(y+=l[b+OFFSET_NUM])}if(y>g&&y>=a){for(var _,$=h*g,C=f*g,S=void 0,O=-1,w=((p/c|0)<<5)+(t+1)+this.points.length,T=_createForOfIteratorHelperLoose(m);!(_=T()).done;){var k=_.value*c;if(!(l[k+OFFSET_ZOOM]<=t)){l[k+OFFSET_ZOOM]=t;var A=l[k+OFFSET_NUM];$+=l[k]*A,C+=l[k+1]*A,l[k+OFFSET_PARENT]=w,s&&(S||(S=this._map(l,p,!0),O=this.clusterProps.length,this.clusterProps.push(S)),s(S,this._map(l,k)))}}l[p+OFFSET_PARENT]=w,u.push($/y,C/y,1/0,w,-1,y),s&&u.push(O)}else{for(var E=0;E<c;E++)u.push(l[p+E]);if(y>1)for(var I,R=_createForOfIteratorHelperLoose(m);!(I=R()).done;){var x=I.value*c;if(!(l[x+OFFSET_ZOOM]<=t)){l[x+OFFSET_ZOOM]=t;for(var P=0;P<c;P++)u.push(l[x+P])}}}}return u},t._getOriginId=function(e){return e-this.points.length>>5},t._getOriginZoom=function(e){return(e-this.points.length)%32},t._map=function(e,t,n){if(e[t+OFFSET_NUM]>1){var r=this.clusterProps[e[t+OFFSET_PROP]];return n?Object.assign({},r):r}var o=this.points[e[t+OFFSET_ID]].properties,s=this.options.map(o);return n&&s===o?Object.assign({},s):s},e}();function getClusterJSON(e,t,n){return{type:"Feature",id:e[t+OFFSET_ID],properties:getClusterProperties(e,t,n),geometry:{type:"Point",coordinates:[xLng(e[t]),yLat(e[t+1])]}}}function getClusterProperties(e,t,n){var r=e[t+OFFSET_NUM],o=r>=1e4?Math.round(r/1e3)+"k":r>=1e3?Math.round(r/100)/10+"k":r,s=e[t+OFFSET_PROP],a=-1===s?{}:Object.assign({},n[s]);return Object.assign(a,{cluster:!0,cluster_id:e[t+OFFSET_ID],point_count:r,point_count_abbreviated:o})}function lngX(e){return e/360+.5}function latY(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function xLng(e){return 360*(e-.5)}function yLat(e){var t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}
|
|
25
25
|
/*! *****************************************************************************
|
|
26
26
|
Copyright (c) Microsoft Corporation.
|
|
27
27
|
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
36
36
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
37
37
|
PERFORMANCE OF THIS SOFTWARE.
|
|
38
|
-
***************************************************************************** */function __rest(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}var MarkerUtils=function(){function e(){}return e.isAdvancedMarkerAvailable=function(e){return google.maps.marker&&!0===e.getMapCapabilities().isAdvancedMarkersAvailable},e.isAdvancedMarker=function(e){return google.maps.marker&&e instanceof google.maps.marker.AdvancedMarkerElement},e.setMap=function(e,t){this.isAdvancedMarker(e)?e.map=t:e.setMap(t)},e.getPosition=function(e){if(this.isAdvancedMarker(e)){if(e.position){if(e.position instanceof google.maps.LatLng)return e.position;if(e.position.lat&&e.position.lng)return new google.maps.LatLng(e.position.lat,e.position.lng)}return new google.maps.LatLng(null)}return e.getPosition()},e.getVisible=function(e){return!!this.isAdvancedMarker(e)||e.getVisible()},e}(),Cluster=function(){function e(e){var t=e.markers,n=e.position;this.markers=t,n&&(n instanceof google.maps.LatLng?this._position=n:this._position=new google.maps.LatLng(n))}var t=e.prototype;return t.push=function(e){this.markers.push(e)},t.delete=function(){this.marker&&(MarkerUtils.setMap(this.marker,null),this.marker=void 0),this.markers.length=0},_createClass(e,[{key:"bounds",get:function(){if(0!==this.markers.length||this._position){for(var e,t=new google.maps.LatLngBounds(this._position,this._position),n=_createForOfIteratorHelperLoose(this.markers);!(e=n()).done;){var r=e.value;t.extend(MarkerUtils.getPosition(r))}return t}}},{key:"position",get:function(){return this._position||this.bounds.getCenter()}},{key:"count",get:function(){return this.markers.filter((function(e){return MarkerUtils.getVisible(e)})).length}}]),e}(),AbstractAlgorithm=function(){function e(e){var t=e.maxZoom,n=void 0===t?16:t;this.maxZoom=n}return e.prototype.noop=function(e){var t=e.markers;return _noop(t)},e}(),_noop=function(e){return e.map((function(e){return new Cluster({position:MarkerUtils.getPosition(e),markers:[e]})}))},SuperClusterAlgorithm=function(e){function t(t){var n,r=t.maxZoom,o=t.radius,s=void 0===o?60:o,a=__rest(t,["maxZoom","radius"]);return(n=e.call(this,{maxZoom:r})||this).state={zoom:-1},n.superCluster=new Supercluster(Object.assign({maxZoom:n.maxZoom,radius:s},a)),n}_inheritsLoose(t,e);var n=t.prototype;return n.calculate=function(e){var t=!1,n={zoom:e.map.getZoom()};if(!fastDeepEqual(e.markers,this.markers)){t=!0,this.markers=[].concat(e.markers);var r=this.markers.map((function(e){var t=MarkerUtils.getPosition(e);return{type:"Feature",geometry:{type:"Point",coordinates:[t.lng(),t.lat()]},properties:{marker:e}}}));this.superCluster.load(r)}return t||(this.state.zoom<=this.maxZoom||n.zoom<=this.maxZoom)&&(t=!fastDeepEqual(this.state,n)),this.state=n,t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t}},n.cluster=function(e){var t=this,n=e.map;return this.superCluster.getClusters([-180,-90,180,90],Math.round(n.getZoom())).map((function(e){return t.transformCluster(e)}))},n.transformCluster=function(e){var t=e.geometry.coordinates,n=t[0],r=t[1],o=e.properties;if(o.cluster)return new Cluster({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(e){return e.properties.marker})),position:{lat:r,lng:n}});var s=o.marker;return new Cluster({markers:[s],position:MarkerUtils.getPosition(s)})},t}(AbstractAlgorithm),ClusterStats=function(e,t){this.markers={sum:e.length};var n=t.map((function(e){return e.count})),r=n.reduce((function(e,t){return e+t}),0);this.clusters={count:t.length,markers:{mean:r/t.length,sum:r,min:Math.min.apply(Math,n),max:Math.max.apply(Math,n)}}},DefaultRenderer=function(){function e(){}return e.prototype.render=function(e,t,n){var r=e.count,o=e.position,s='<svg fill="'+(r>Math.max(10,t.clusters.markers.mean)?"#ff0000":"#0000ff")+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">\n<circle cx="120" cy="120" opacity=".6" r="70" />\n<circle cx="120" cy="120" opacity=".3" r="90" />\n<circle cx="120" cy="120" opacity=".2" r="110" />\n<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">'+r+"</text>\n</svg>",a="Cluster of "+r+" markers",i=Number(google.maps.Marker.MAX_ZINDEX)+r;if(MarkerUtils.isAdvancedMarkerAvailable(n)){var l=document.createElement("div");l.innerHTML=s;var u=l.firstElementChild;u.setAttribute("transform","translate(0 25)");var c={map:n,position:o,zIndex:i,title:a,content:u};return new google.maps.marker.AdvancedMarkerElement(c)}var p={position:o,zIndex:i,title:a,icon:{url:"data:image/svg+xml;base64,"+btoa(s),anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(p)},e}();function extend(e,t){for(var n in t.prototype)e.prototype[n]=t.prototype[n]}var OverlayViewSafe=function e(){extend(e,google.maps.OverlayView)},MarkerClustererEvents;!function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click"}(MarkerClustererEvents||(MarkerClustererEvents={}));var defaultOnClusterClickHandler=function(e,t,n){n.fitBounds(t.bounds)},MarkerClusterer=function(e){function t(t){var n,r=t.map,o=t.markers,s=void 0===o?[]:o,a=t.algorithmOptions,i=void 0===a?{}:a,l=t.algorithm,u=void 0===l?new SuperClusterAlgorithm(i):l,c=t.renderer,p=void 0===c?new DefaultRenderer:c,d=t.onClusterClick,h=void 0===d?defaultOnClusterClickHandler:d;return(n=e.call(this)||this).markers=[].concat(s),n.clusters=[],n.algorithm=u,n.renderer=p,n.onClusterClick=h,r&&n.setMap(r),n}_inheritsLoose(t,e);var n=t.prototype;return n.addMarker=function(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())},n.addMarkers=function(e,t){var n=this;e.forEach((function(e){n.addMarker(e,!0)})),t||this.render()},n.removeMarker=function(e,t){var n=this.markers.indexOf(e);return-1!==n&&(MarkerUtils.setMap(e,null),this.markers.splice(n,1),t||this.render(),!0)},n.removeMarkers=function(e,t){var n=this,r=!1;return e.forEach((function(e){r=n.removeMarker(e,!0)||r})),r&&!t&&this.render(),r},n.clearMarkers=function(e){this.markers.length=0,e||this.render()},n.render=function(){var e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,MarkerClustererEvents.CLUSTERING_BEGIN,this);var t=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()}),n=t.clusters,r=t.changed;if(r||null==r){for(var o,s=new Set,a=_createForOfIteratorHelperLoose(n);!(o=a()).done;){var i=o.value;1==i.markers.length&&s.add(i.markers[0])}for(var l,u=[],c=_createForOfIteratorHelperLoose(this.clusters);!(l=c()).done;){var p=l.value;null!=p.marker&&(1==p.markers.length?s.has(p.marker)||MarkerUtils.setMap(p.marker,null):u.push(p.marker))}this.clusters=n,this.renderClusters(),requestAnimationFrame((function(){return u.forEach((function(e){return MarkerUtils.setMap(e,null)}))}))}google.maps.event.trigger(this,MarkerClustererEvents.CLUSTERING_END,this)}},n.onAdd=function(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()},n.onRemove=function(){google.maps.event.removeListener(this.idleListener),this.reset()},n.reset=function(){this.markers.forEach((function(e){return MarkerUtils.setMap(e,null)})),this.clusters.forEach((function(e){return e.delete()})),this.clusters=[]},n.renderClusters=function(){var e=this,t=new ClusterStats(this.markers,this.clusters),n=this.getMap();this.clusters.forEach((function(r){1===r.markers.length?r.marker=r.markers[0]:(r.marker=e.renderer.render(r,t,n),r.markers.forEach((function(e){return MarkerUtils.setMap(e,null)})),e.onClusterClick&&r.marker.addListener("click",(function(t){google.maps.event.trigger(e,MarkerClustererEvents.CLUSTER_CLICK,r),e.onClusterClick(t,r,n)}))),MarkerUtils.setMap(r.marker,n)}))},t}(OverlayViewSafe),_excluded$9=["map"],props$6={algorithm:{type:Object,default:new SuperClusterAlgorithm({}),noBind:!0},renderer:{type:Object,default:new DefaultRenderer,noBind:!0}},events$5=["clusteringbegin","clusteringend"],script$1=buildComponent({mappedProps:props$6,events:events$5,name:"cluster",ctr:function(){if(void 0===MarkerClusterer){throw console.error("MarkerClusterer is not installed!"),new Error("MarkerClusterer is not installed!")}return MarkerClusterer},ctrArgs:function(e){return[_extends({map:e.map},_objectWithoutPropertiesLoose(e,_excluded$9))]},afterCreate:function(e){var t=function(){var t=e.getMarkers();e.clearMarkers(),e.addMarkers(t)};for(var n in props$6)props$6[n].twoWay&&this.$on(n.toLowerCase()+"_changed",t)},updated:function(){this.$clusterObject&&this.$clusterObject.render()},beforeUnmount:function(){var e=this;this.$children&&this.$children.length&&this.$children.forEach((function(t){t.$clusterObject===e.$clusterObject&&(t.$clusterObject=null)})),this.$clusterObject&&this.$clusterObject.clearMarkers()}});function render$1(e,t,n,r,o,s){return vue.openBlock(),vue.createElementBlock("div",null,[vue.renderSlot(e.$slots,"default")])}script$1.render=render$1,script$1.__file="node_modules/vue-google-maps-community-fork/src/components/cluster.vue";var props$7={options:{type:Object,required:!1,default:function(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}},events$6=["domready","click","closeclick","content_changed"],script$2=buildComponent({mappedProps:props$7,events:events$6,name:"infoWindow",ctr:function(){return google.maps.InfoWindow},props:{opened:{type:Boolean,default:!0}},inject:{$markerPromise:{default:null}},mounted:function(){var e=this.$refs.infoWindow;e.parentNode.removeChild(e)},beforeCreate:function(e){var t=this;if(e.content=this.$refs.infoWindow,this.$markerPromise)return delete e.position,this.$markerPromise.then((function(e){return t.$markerObject=e,e}))},emits:["closeclick"],methods:{_openInfoWindow:function(){this.$infoWindowObject.close(),this.opened?this.$infoWindowObject.open(this.$map,this.$markerObject):this.$emit("closeclick")}},afterCreate:function(){var e=this;this._openInfoWindow(),this.$watch("opened",(function(){e._openInfoWindow()}))}}),_hoisted_1={ref:"infoWindow"};function render$2(e,t,n,r,o,s){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1,[vue.renderSlot(e.$slots,"default")],512)}script$2.render=render$2,script$2.__file="node_modules/vue-google-maps-community-fork/src/components/infoWindow.vue";var mountableMixin={props:["resizeBus"],data:function(){return{_actualResizeBus:null}},created:function(){void 0===this.resizeBus?this.$data._actualResizeBus=this.$gmapDefaultResizeBus:this.$data._actualResizeBus=this.resizeBus},methods:{_resizeCallback:function(){this.resize()},isFunction:function(e){return e&&"[object Function]"==={}.toString.call(e)},_delayedResizeCallback:function(){var e=this;this.$nextTick((function(){return e._resizeCallback()}))}},watch:{resizeBus:function(e){this.$data._actualResizeBus=e},"$data._actualResizeBus":function(e,t){t&&t.$off("resize",this._delayedResizeCallback)}},unmounted:function(){this.$data._actualResizeBus&&this.isFunction(this.$data._actualResizeBus.$off)&&this.$data._actualResizeBus.$off("resize",this._delayedResizeCallback)}};function TwoWayBindingWrapper(e){var t=0;e((function(){t+=1}),(function(){t=Math.max(0,t-1)}),(function(){return 0===t}))}var props$8={center:{default:{lat:0,lng:0},twoWay:!0,type:Object,noBind:!0},zoom:{required:!1,twoWay:!0,type:Number,noBind:!0},heading:{type:Number,twoWay:!0},mapTypeId:{twoWay:!0,type:String},tilt:{twoWay:!0,type:Number},options:{type:Object,default:function(){return{}}}},events$7=["bounds_changed","click","dblclick","drag","dragend","dragstart","idle","mousemove","mouseout","mouseover","resize","rightclick","tilesloaded"],linkedMethods=["panBy","panTo","panToBounds","fitBounds"].reduce((function(e,t){return e[t]=function(){this.$mapObject&&this.$mapObject[t].apply(this.$mapObject,arguments)},e}),{}),customMethods={resize:function(){this.$mapObject&&google.maps.event.trigger(this.$mapObject,"resize")},resizePreserveCenter:function(){if(this.$mapObject){var e=this.$mapObject.getCenter();google.maps.event.trigger(this.$mapObject,"resize"),this.$mapObject.setCenter(e)}},_resizeCallback:function(){this.resizePreserveCenter()}},script$3={mixins:[mountableMixin],props:mappedPropsToVueProps(_extends({},props$8,events$7.reduce((function(e,t){var n;return _extends({},e,((n={})[("on"+t.charAt(0).toUpperCase()+t.slice(1)).replace(/[-_]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))]=Function,n))}),{}))),inheritAttrs:!1,provide:function(){var e=this;return this.$mapPromise=new Promise((function(t,n){e.$mapPromiseDeferred={resolve:t,reject:n}})),{$mapPromise:this.$mapPromise}},emits:["center_changed","zoom_changed","bounds_changed"],computed:{finalLat:function(){return this.center&&"function"==typeof this.center.lat?this.center.lat():this.center.lat},finalLng:function(){return this.center&&"function"==typeof this.center.lng?this.center.lng():this.center.lng},finalLatLng:function(){return{lat:this.finalLat,lng:this.finalLng}}},watch:{zoom:function(e){this.$mapObject&&this.$mapObject.setZoom(e)}},mounted:function(){var e=this;return this.$gmapApiPromiseLazy().then((function(){var t=e.$refs["vue-map"],n=_extends({},e.options,getPropsValues(e,props$8));return delete n.options,e.$mapObject=new google.maps.Map(t,n),bindProps(e,e.$mapObject,props$8),bindEvents(e,e.$mapObject,events$7),TwoWayBindingWrapper((function(t,n,r){e.$mapObject.addListener("center_changed",(function(){r()&&e.$emit("center_changed",e.$mapObject.getCenter()),n()}));WatchPrimitiveProperties(e,["finalLat","finalLng"],(function(){t(),e.$mapObject.setCenter(e.finalLatLng)}))})),e.$mapObject.addListener("zoom_changed",(function(){e.$emit("zoom_changed",e.$mapObject.getZoom())})),e.$mapObject.addListener("bounds_changed",(function(){e.$emit("bounds_changed",e.$mapObject.getBounds())})),e.$mapPromiseDeferred.resolve(e.$mapObject),e.$mapObject})).catch((function(e){throw e}))},methods:_extends({},customMethods,linkedMethods)},_hoisted_1$1={class:"vue-map-hidden"};function render$3(e,t,n,r,o,s){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vue-map-container",e.$attrs.class])},[vue.createElementVNode("div",{ref:"vue-map",class:"vue-map",style:vue.normalizeStyle(e.$attrs.style?e.$attrs.style:"")},null,4),vue.createElementVNode("div",_hoisted_1$1,[vue.renderSlot(e.$slots,"default")]),vue.renderSlot(e.$slots,"visible")],2)}var css_248z$2="\n.vue-map {\n width: 100%;\n height: 100%;\n min-height: 2rem;\n}\n";styleInject(css_248z$2),script$3.render=render$3,script$3.__file="node_modules/vue-google-maps-community-fork/src/components/map.vue";var props$9={options:{type:Object,twoWay:!1,default:function(){}},data:{type:Array,twoWay:!0}},events$8=[],Heatmap=buildComponent({mappedProps:props$9,name:"heatmap",ctr:function(){return google.maps.visualization.HeatmapLayer},events:events$8}),downArrowSimulator=function(e){var t=e.addEventListener?e.addEventListener:e.attachEvent;function n(n,r){if("keydown"===n){var o=r;r=function(t){var n=document.getElementsByClassName("pac-item-selected").length>0;if(13===t.which&&!n){var r=document.createEvent("Event");r.keyCode=40,r.which=40,o.apply(e,[r])}o.apply(e,[t])}}t.apply(e,[n,r])}e.addEventListener=n,e.attachEvent=n},mappedProps={bounds:{type:Object},componentRestrictions:{type:Object,noBind:!0},types:{type:Array,default:function(){return[]}}},props$a={selectFirstOnEnter:{required:!1,type:Boolean,default:!1},options:{type:Object}},script$4={mounted:function(){var e=this,t=this;this.$gmapApiPromiseLazy().then((function(){var n=t.$refs.input;if(t.$slots.input){var r=t.$slots.input()[0].props.ref,o=t.$slots.input()[0].ref.i.ctx.$refs[r];o&&(n=o.$el.getElementsByTagName("input")[0])}if(e.selectFirstOnEnter&&downArrowSimulator(n),"function"!=typeof google.maps.places.Autocomplete)throw new Error("google.maps.places.Autocomplete is undefined. Did you add 'places' to libraries when loading Google Maps?");var s=_extends({},getPropsValues(e,mappedProps),e.options);e.$autocomplete=new google.maps.places.Autocomplete(n,s),bindProps(e,e.$autocomplete,mappedProps),e.$watch("componentRestrictions",(function(t){void 0!==t&&e.$autocomplete.setComponentRestrictions(t)})),e.$autocomplete.addListener("place_changed",(function(){e.$emit("place_changed",e.$autocomplete.getPlace())}))}))},props:_extends({},mappedPropsToVueProps(mappedProps),props$a)};function render$4(e,t,n,r,o,s){return e.$slots.input?vue.renderSlot(e.$slots,"input",vue.normalizeProps(vue.mergeProps({key:0},e.$attrs))):e.$slots.input?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createElementBlock("input",vue.mergeProps({key:1,ref:"input"},e.$attrs,vue.toHandlers(e.$attrs,!0)),null,16))}script$4.render=render$4,script$4.__file="node_modules/vue-google-maps-community-fork/src/components/autocomplete.vue";var GMapApi=null;function install(e,t){t=_extends({installComponents:!0,autobindAllEvents:!1},t),GMapApi=vue.createApp({data:function(){return{gmapApi:null}}});var n=vue.createApp(),r=makeGMapApiPromiseLazy(t);e.mixin({created:function(){this.$gmapDefaultResizeBus=n,this.$gmapOptions=t,this.$gmapApiPromiseLazy=r}}),e.$gmapDefaultResizeBus=n,e.$gmapApiPromiseLazy=r,t.installComponents&&(e.component("GMapMap",script$3),e.component("GMapMarker",script),e.component("GMapInfoWindow",script$2),e.component("GMapCluster",script$1),e.component("GMapPolyline",Polyline),e.component("GMapPolygon",Polygon),e.component("GMapCircle",Circle),e.component("GMapRectangle",Rectangle),e.component("GMapAutocomplete",script$4),e.component("GMapHeatmap",Heatmap))}function makeGMapApiPromiseLazy(e){function t(){return GMapApi.gmapApi={},window.google}if(e.load)return lazy((function(){return Env.isServer()?new Promise((function(){})).then(t):new Promise((function(t,n){try{window.vueGoogleMapsInit=t,loadGMapApi(e.load)}catch(e){n(e)}})).then(t)}));var n=new Promise((function(e){Env.isServer()||(window.vueGoogleMapsInit=e)})).then(t);return lazy((function(){return n}))}for(var BASE32_CODES="0123456789bcdefghjkmnpqrstuvwxyz",BASE32_CODES_DICT={},i$4=0;i$4<BASE32_CODES.length;i$4++)BASE32_CODES_DICT[BASE32_CODES.charAt(i$4)]=i$4;var ENCODE_AUTO="auto",MIN_LAT=-90,MAX_LAT=90,MIN_LON=-180,MAX_LON=180,SIGFIG_HASH_LENGTH=[0,5,7,8,11,12,13,15,16,17,18],encode$1=function(e,t,n){if(n===ENCODE_AUTO){if("number"==typeof e||"number"==typeof t)throw new Error("string notation required for auto precision.");var r=e.split(".")[1].length,o=t.split(".")[1].length,s=Math.max(r,o);n=SIGFIG_HASH_LENGTH[s]}else void 0===n&&(n=9);for(var a,i=[],l=0,u=0,c=0,p=MAX_LAT,d=MIN_LAT,h=MAX_LON,f=MIN_LON;i.length<n;)if(u%2==0?t>(a=(h+f)/2)?(c=1+(c<<1),f=a):(c=0+(c<<1),h=a):e>(a=(p+d)/2)?(c=1+(c<<1),d=a):(c=0+(c<<1),p=a),u++,5===++l){var m=BASE32_CODES[c];i.push(m),l=0,c=0}return i.join("")},encode_int=function(e,t,n){n=n||52;for(var r,o=0,s=MAX_LAT,a=MIN_LAT,i=MAX_LON,l=MIN_LON,u=0;o<n;)u*=2,o%2==0?t>(r=(i+l)/2)?(u+=1,l=r):i=r:e>(r=(s+a)/2)?(u+=1,a=r):s=r,o++;return u},decode_bbox=function(e){for(var t,n=!0,r=MAX_LAT,o=MIN_LAT,s=MAX_LON,a=MIN_LON,i=0,l=0,u=e.length;l<u;l++){var c=e[l].toLowerCase();i=BASE32_CODES_DICT[c];for(var p=4;p>=0;p--){var d=i>>p&1;n?(t=(s+a)/2,1===d?a=t:s=t):(t=(r+o)/2,1===d?o=t:r=t),n=!n}}return[o,a,r,s]},decode_bbox_int=function(e,t){for(var n=MAX_LAT,r=MIN_LAT,o=MAX_LON,s=MIN_LON,a=0,i=(t=t||52)/2,l=0;l<i;l++)a=get_bit(e,2*(i-l)-1),0===get_bit(e,2*(i-l)-2)?n=(n+r)/2:r=(n+r)/2,0===a?o=(o+s)/2:s=(o+s)/2;return[r,s,n,o]};function get_bit(e,t){return e/Math.pow(2,t)&1}var decode$1=function(e){var t=decode_bbox(e),n=(t[0]+t[2])/2,r=(t[1]+t[3])/2;return{latitude:n,longitude:r,error:{latitude:t[2]-n,longitude:t[3]-r}}},decode_int=function(e,t){var n=decode_bbox_int(e,t),r=(n[0]+n[2])/2,o=(n[1]+n[3])/2;return{latitude:r,longitude:o,error:{latitude:n[2]-r,longitude:n[3]-o}}},neighbor=function(e,t){var n=decode$1(e),r=n.latitude+t[0]*n.error.latitude*2,o=n.longitude+t[1]*n.error.longitude*2;return o=ensure_valid_lon(o),r=ensure_valid_lat(r),encode$1(r,o,e.length)},neighbor_int=function(e,t,n){var r=decode_int(e,n=n||52),o=r.latitude+t[0]*r.error.latitude*2,s=r.longitude+t[1]*r.error.longitude*2;return s=ensure_valid_lon(s),o=ensure_valid_lat(o),encode_int(o,s,n)},neighbors=function(e){var t,n,r=e.length,o=decode$1(e),s=o.latitude,a=o.longitude,i=2*o.error.latitude,l=2*o.error.longitude;function u(e,o){return t=s+e*i,n=ensure_valid_lon(n=a+o*l),t=ensure_valid_lat(t),encode$1(t,n,r)}return[u(1,0),u(1,1),u(0,1),u(-1,1),u(-1,0),u(-1,-1),u(0,-1),u(1,-1)]},neighbors_int=function(e,t){var n,r,o=decode_int(e,t=t||52),s=o.latitude,a=o.longitude,i=2*o.error.latitude,l=2*o.error.longitude;function u(e,o){return n=s+e*i,r=ensure_valid_lon(r=a+o*l),n=ensure_valid_lat(n),encode_int(n,r,t)}return[u(1,0),u(1,1),u(0,1),u(-1,1),u(-1,0),u(-1,-1),u(0,-1),u(1,-1)]},bboxes=function(e,t,n,r,o){for(var s=encode$1(e,t,o=o||9),a=encode$1(n,r,o),i=decode$1(s),l=2*i.error.latitude,u=2*i.error.longitude,c=decode_bbox(s),p=decode_bbox(a),d=Math.round((p[0]-c[0])/l),h=Math.round((p[1]-c[1])/u),f=[],m=0;m<=d;m++)for(var g=0;g<=h;g++)f.push(neighbor(s,[m,g]));return f},bboxes_int=function(e,t,n,r,o){for(var s=encode_int(e,t,o=o||52),a=encode_int(n,r,o),i=decode_int(s,o),l=2*i.error.latitude,u=2*i.error.longitude,c=decode_bbox_int(s,o),p=decode_bbox_int(a,o),d=Math.round((p[0]-c[0])/l),h=Math.round((p[1]-c[1])/u),f=[],m=0;m<=d;m++)for(var g=0;g<=h;g++)f.push(neighbor_int(s,[m,g],o));return f};function ensure_valid_lon(e){return e>MAX_LON?MIN_LON+e%MAX_LON:e<MIN_LON?MAX_LON+e%MAX_LON:e}function ensure_valid_lat(e){return e>MAX_LAT?MAX_LAT:e<MIN_LAT?MIN_LAT:e}var geohash={ENCODE_AUTO:ENCODE_AUTO,encode:encode$1,encode_uint64:encode_int,encode_int:encode_int,decode:decode$1,decode_int:decode_int,decode_uint64:decode_int,decode_bbox:decode_bbox,decode_bbox_uint64:decode_bbox_int,decode_bbox_int:decode_bbox_int,neighbor:neighbor,neighbor_int:neighbor_int,neighbors:neighbors,neighbors_int:neighbors_int,bboxes:bboxes,bboxes_int:bboxes_int},main=geohash,setStreaming=lib_5.setStreaming,setQueryOptions$c=lib_5.setQueryOptions,updateQuery$c=lib_5.updateQuery,loadMore$1=lib_5.loadMore,setValue$3=lib_5.setValue,updateComponentProps$3=lib_5.updateComponentProps,setDefaultQuery$7=lib_5.setDefaultQuery,recordResultClick$1=lib_5.recordResultClick,setMapData=lib_5.setMapData,isEqual$g=lib_8.isEqual,getQueryOptions$5=lib_8.getQueryOptions,getClassName$g=lib_8.getClassName,parseHits$2=lib_8.parseHits,getOptionsFromQuery$4=lib_8.getOptionsFromQuery,getResultStats$3=lib_8.getResultStats,MAP_CENTER={lat:37.7749,lng:122.4194},style={width:"100%",height:"100vh",position:"relative"};function getPrecision(e){if(isNaN(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function withDistinctLat(e,t){var n=getPrecision(e.lat),r=n>=6?4:n-2,o=1/Math.pow(10,r)*t;return _extends({},e,{lat:parseFloat((e.lat+o).toFixed(n))})}function getLocationObject(e){switch(Array.isArray(e)?"array":typeof e){case"string":if(e.indexOf(",")>-1){var t=e.split(",");return{lat:parseFloat(t[0]),lng:parseFloat(t[1])}}var n=main.decode(e);return{lat:n.latitude,lng:n.longitude};case"array":return{lat:e[1],lng:e[0]};default:return e}}var ReactiveMap={name:"ReactiveMap",props:{className:types.string,componentId:types.stringRequired,compoundClause:types.compoundClause,dataField:types.stringRequired,react:types.react,size:types.number,sortBy:types.sortBy,URLParams:Q.bool,autoCenter:Q.bool,getMapRef:Q.func.isRequired,center:types.location,defaultCenter:types.location,defaultPin:types.string,defaultZoom:Q.number.def(13),defaultQuery:types.func,innerClass:types.style,loader:types.title,render:types.func,renderItem:types.func,renderError:types.title,pages:Q.number.def(5),currentPage:Q.number.def(0),pagination:Q.bool,showMarkers:Q.bool,defaultSearchAsMove:Q.bool,showSearchAsMove:Q.bool,defaultRadius:types.number,unit:types.string,autoClosePopover:Q.bool,renderMap:Q.func.isRequired,renderPopover:Q.func,calculateMarkers:Q.func,searchAsMoveLabel:Q.string.def("Search as I move the map")},preserveCenter:!1,data:function(){var e=this.$props,t=0;return e.currentPage&&(t=Math.max(e.currentPage-1,0)),this.__state={from:t*e.size,zoom:e.defaultZoom,searchAsMove:e.defaultSearchAsMove,currentPageState:t,mapBoxBounds:null,markersData:null},this.__state},computed:{totalPages:function(){return Math.ceil(this.total/this.$props.size)||0},stats:function(){var e=this.getAllData().resultsToRender;return _extends({},getResultStats$3(this),{currentPage:this.currentPageState,displayedResults:e.length})},hasCustomRender:function(){return hasCustomRenderer(this)}},watch:{defaultZoom:function(e){this.zoom=e},currentPage:function(e,t){t!==e&&e>0&&e<=this.totalPages&&this.setPage(e-1)},defaultQuery:function(e,t){if(!isQueryIdentical(e,t,null,this.$props)){var n=getQueryOptions$5(this.$props);n.from=0,this.$defaultQuery=e(null,this.$props);var r=this.$defaultQuery||{},o=r.sort,s=r.query;o&&(n.sort=this.$defaultQuery.sort),getOptionsFromQuery$4(this.$defaultQuery)&&(n=_extends({},n,getOptionsFromQuery$4(this.$defaultQuery))),this.setQueryOptions(this.$props.componentId,n,!1);this.setDefaultQueryForRSAPI();var a={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,s,!0,!0,a),this.currentPageState=0,this.from=0}},promotedResults:function(e,t){isEqual$g(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){isEqual$g(e,t)||this.$emit("data",this.getData())},time:function(e,t){isEqual$g(e,t)||this.$emit("data",this.getData())},hits:function(e,t){this.$emit("data",this.getData()),this.pagination&&this.isLoading&&(t||e)&&this.$emit("page-change",this.currentPageState+1,this.totalPages)},rawData:function(e,t){var n=this;if(!isEqual$g(e,t)){var r=this.promotedResults,o=this.hits,s=parseHits$2(o)||[],a=parseHits$2(r)||[],i=s;if(a.length){var l=a.map((function(e){return e._id})).filter(Boolean);l&&(i=i.filter((function(e){return!l.includes(e._id)}))),i=[].concat(a,i)}i=i.filter((function(e){return!!e[n.dataField]})).map((function(e){var t;return _extends({},e,((t={})[n.dataField]=getLocationObject(e[n.dataField]),t))})),this.filteredResults=this.addNoise(i),this.calculateMarkers&&(this.markersData=this.calculateMarkers({data:this.filteredResults,rawData:this.rawData})||[]),this.$emit("data",this.getData())}},center:function(e,t){if(!isEqual$g(e,t)){var n=!!this.center,r=this.getGeoQuery(this.$props);this.setDefaultQueryForRSAPI();var o={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,r,n,!0,o)}}},methods:{parseLocation:function(e){return Array.isArray(e)?{lat:Number(e[0]),lng:Number(e[1])}:{lat:e?Number(e.lat):this.defaultCenter.lat,lng:e?Number(void 0===e.lon?e.lng:e.lon):this.defaultCenter.lng}},getDefaultCenter:function(){return this.defaultCenter?this.parseLocation(this.defaultCenter):this.parseLocation(MAP_CENTER)},addNoise:function(e){var t=this,n={},r=[];return e.forEach((function(e){var o=_extends({},e),s=t.parseLocation(e[t.dataField]),a=JSON.stringify(s),i=n[a]||0;o[t.dataField]=i?withDistinctLat(s,i):s,r=[].concat(r,[o]),n[a]=i+1})),r},getPosition:function(e){return e?this.parseLocation(e[this.dataField]):null},getHitsCenter:function(e){var t=this,n=e.map((function(e){return e[t.dataField]}));if(n.length){var r=n.length,o=0,s=0,a=0;n.forEach((function(e){if(e){var t,n,r=getLocationObject(e);t=r.lat*Math.PI/180,n=(void 0!==r.lng?r.lng:r.lon)*Math.PI/180;var i=Math.cos(t)*Math.cos(n),l=Math.cos(t)*Math.sin(n),u=Math.sin(t);o+=i,s+=l,a+=u}})),o/=r,s/=r,a/=r;var i=Math.atan2(s,o),l=Math.sqrt(o*o+s*s);return{lat:180*Math.atan2(a,l)/Math.PI,lng:180*i/Math.PI}}return!1},getCenter:function(e){var t=this;if(this.center)return this.parseLocation(this.center);var n=this.getMapRef();if(n&&"function"==typeof n.getCenter&&this.$options.preserveCenter){var r=n.getCenter();return setTimeout((function(){t.$options.preserveCenter=!1}),100),this.parseLocation({lat:r.lat(),lng:r.lng()})}return e&&e.length?this.autoCenter?this.getHitsCenter(e)||this.getDefaultCenter():e[0]&&e[0][this.dataField]?this.getPosition(e[0]):this.getDefaultCenter():this.getDefaultCenter()},handleZoomChange:function(e){if(e){var t=this.zoom;this.searchAsMove?(this.zoom=e,this.$options.preserveCenter=!0,this.setGeoQuery(!0)):this.zoom=e,t!==e&&this.$emit("zoom-changed",e)}},handleOnDragEnd:function(){this.searchAsMove&&(this.$options.preserveCenter=!0,this.setGeoQuery(!0)),this.$emit("drag-end")},handlePreserveCenter:function(e){this.$options.preserveCenter=e},handleOnIdle:function(){if(this.hits&&this.hits.length&&this.searchAsMove){var e=!!this.center;this.setGeoQuery(e)}this.$emit("idle")},setGeoQuery:function(e){if(void 0===e&&(e=!1),e||!this.skipBoundingBox&&!this.mapBoxBounds){this.$defaultQuery=this.getGeoQuery();var t=!!this.center,n=this.searchAsMove,r={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,this.$defaultQuery,t,n,r)}this.skipBoundingBox=!1},getMapParams:function(){var e=this.getData().data,t=this.showMarkers,n=this.defaultPin,r=this.renderPopover,o=this.autoClosePopover,s=this.renderItem;return{resultsToRender:e,center:this.getCenter(e),getPosition:this.getPosition,zoom:this.zoom,renderItem:s,showMarkers:t,defaultPin:n,renderPopover:r,autoClosePopover:o,renderSearchAsMove:this.renderSearchAsMove,handlePreserveCenter:this.handlePreserveCenter,preserveCenter:this.$options.preserveCenter,handleOnDragEnd:this.handleOnDragEnd,handleOnIdle:this.handleOnIdle,handleZoomChange:this.handleZoomChange}},getAllData:function(){var e=this.size,t=this.promotedResults,n=this.customData,r=this.currentPage,o=this.hits,s=parseHits$2(o)||[],a=parseHits$2(t)||[],i=r*e,l=this.filteredResults||[];return this.markersData&&(l=this.markersData),{results:s,resultsToRender:l,customData:n||{},promotedResults:a,loadMore:this.loadMore,base:i,triggerClickAnalytics:this.triggerClickAnalytics}},getData:function(){var e=this.getAllData(),t=e.promotedResults,n=e.aggregationData,r=e.customData,o=e.resultsToRender;return{data:this.withClickIds(o),aggregationData:this.withClickIds(n||[]),promotedData:this.withClickIds(t),rawData:this.rawData,resultStats:this.stats,customData:r}},getComponent:function(){var e=_extends({error:this.error,loading:this.isLoading,loadMore:this.loadMore,triggerClickAnalytics:this.triggerClickAnalytics,setPage:this.setPage},this.getData());return getComponent(e,this)},setPage:function(e){if(e!==this.currentPageState){this.$emit("pageClick",e+1),this.$emit("page-click",e+1);var t=this.size*e,n=getQueryOptions$5(this.$props);n.from=this.$data.from,this.from=t,this.currentPageState=e,this.loadMoreAction(this.componentId,_extends({},n,{from:t}),!1),this.URLParams&&this.setPageURL(this.componentId,e+1,this.componentId,!1,!0)}},setDefaultQueryForRSAPI:function(){if(this.defaultQuery&&"function"==typeof this.defaultQuery){var e=this.defaultQuery();this.setDefaultQuery(this.componentId,e)}},getArrPosition:function(e){return{lat:e.lat,lon:e.lon||e.lng}},getGeoQuery:function(e){void 0===e&&(e=this.$props),this.$defaultQuery=e.defaultQuery?e.defaultQuery():null;var t,n,r,o=this.getMapRef(),s=!(!o||"function"!=typeof o.getBounds)&&o.getBounds();if(s){var a;t=s.getNorthEast().lat(),n=s.getSouthWest().lat(),r=s.getNorthEast().lng();var i={top_left:[s.getSouthWest().lng(),t],bottom_right:[r,n]};this.mapBoxBounds=i;var l={geo_bounding_box:(a={},a[this.dataField]=i,a)};if(this.$defaultQuery){var u=(this.$defaultQuery||{}).query;if(u)return{must:[l,u]}}return l}return this.$defaultQuery?this.$defaultQuery.query:null},getGeoDistanceQuery:function(){var e,t=this.center||this.defaultCenter;return t&&this.defaultRadius?(this.skipBoundingBox=!0,{geo_distance:(e={distance:""+this.defaultRadius+this.unit},e[this.dataField]=this.getArrPosition(t),e)}):null},loadMore:function(){if(this.hits&&!this.pagination&&this.total!==this.hits.length){var e=this.from+this.size,t=getQueryOptions$5(this.$props);this.from=e,this.loadMoreAction(this.componentId,_extends({},t,{from:e}),!0)}},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.getData().data.find((function(t){return t._click_id===e}));r&&r._id&&(n=r._id)}this.recordResultClick(e,n)},withClickIds:function(e){var t=this.getAllData().base;return e.map((function(e,n){return _extends({},e,{_click_id:t+n})}))},toggleSearchAsMove:function(){this.searchAsMove=!this.searchAsMove,this.$emit("search-as-move",this.searchAsMove)},renderErrorComponent:function(){var e=this.$slots.renderError||this.$props.renderError;return e&&this.error&&!this.isLoading?isFunction(e)?e(this.error):e:null},renderSearchAsMove:function(){return this.showSearchAsMove?vue.createVNode("div",{style:{position:"absolute",bottom:"30px",left:"10px",width:"240px",backgroundColor:"#fff",padding:"8px 10px",boxShadow:"rgba(0,0,0,0.3) 0px 1px 4px -1px",borderRadius:2,zIndex:1e4},className:getClassName$g(this.innerClass,"checkboxContainer")||null},[vue.createVNode(Checkbox,{type:"checkbox",class:getClassName$g(this.$props.innerClass,"checkbox"),id:this.$props.componentId+"-searchasmove",onClick:this.toggleSearchAsMove,checked:this.searchAsMove,show:!0},null),vue.createVNode("label",{className:getClassName$g(this.innerClass,"label")||null,for:this.$props.componentId+"-searchasmove"},[this.searchAsMoveLabel])]):null},renderPagination:function(){return vue.createVNode(Pagination,{pages:this.pages,totalPages:this.totalPages,currentPage:this.currentPageState,setPage:this.setPage,innerClass:this.innerClass},null)}},created:function(){this.defaultPage>=0&&(this.currentPageState=this.defaultPage,this.from=this.currentPageState*this.$props.size),this.internalComponent=this.$props.componentId+"__internal",this.updateComponentProps(this.componentId,{from:this.from},constants_1$1.reactiveMap),this.updateComponentProps(this.internalComponent,{from:this.from},constants_1$1.reactiveMap)},mounted:function(){this.defaultPage<0&&this.currentPage>0&&this.$props.URLParams&&this.setPageURL(this.$props.componentId,this.currentPage,this.$props.componentId,!1,!0);var e,t=getQueryOptions$5(this.$props);(t.from=this.$data.from,this.$props.sortBy)&&(t.sort=[(e={},e[this.$props.dataField]={order:this.$props.sortBy},e)]);if(this.$defaultQuery=null,this.$props.defaultQuery){this.$defaultQuery=this.$props.defaultQuery()||{},t=_extends({},t,getOptionsFromQuery$4(this.$defaultQuery)),this.$defaultQuery.sort&&(t.sort=this.$defaultQuery.sort);this.setDefaultQueryForRSAPI();var n={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,this.$defaultQuery.query,!0,!1,n)}else{var r=this.getGeoDistanceQuery();if(r){var o=!!this.center,s=this.searchAsMove,a=this.center||this.defaultCenter,i=this.getArrPosition(a),l={distance:this.defaultRadius,coordinates:i.lat+", "+i.lon};this.setMapData(this.componentId,r,o,s,l)}}this.setQueryOptions(this.componentId,t,!(this.$defaultQuery&&this.$defaultQuery.query))},render:function(){var e=this.$slots.loader||this.$props.loader;return vue.createVNode("div",{style:_extends({},style,this.$props.style),class:this.$props.className},[this.renderErrorComponent(),this.isLoading&&e,this.hasCustomRender?this.getComponent():null,this.renderMap(this.getMapParams()),this.pagination?this.renderPagination():null])}},mapStateToProps$j=function(e,t){return{defaultPage:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value-1||-1,error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],hits:e.hits[t.componentId]&&e.hits[t.componentId].hits,promotedResults:e.promotedResults[t.componentId],customData:e.customData[t.componentId],total:e.hits[t.componentId]&&e.hits[t.componentId].total,time:e.hits[t.componentId]&&e.hits[t.componentId].time,rawData:e.rawData[t.componentId],hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden}},mapDispatchToProps$4={loadMoreAction:loadMore$1,setPageURL:setValue$3,setQueryOptions:setQueryOptions$c,setStreaming:setStreaming,updateQuery:updateQuery$c,updateComponentProps:updateComponentProps$3,setDefaultQuery:setDefaultQuery$7,recordResultClick:recordResultClick$1,setMapData:setMapData},RMConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$j,mapDispatchToProps$4)(ReactiveMap),{componentType:constants_1$1.reactiveMap,internalComponent:!0}));ReactiveMap.install=function(e){e.component(ReactiveMap.name,RMConnected)},ReactiveMap.componentType=constants_1$1.reactiveMap;var infoWindowMappedProps={content:{type:Object,twoWay:!0},options:{type:Object,required:!1,default:function(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}};function bindEvents$1(e,t,n){n.forEach((function(n){(e.$gmapOptions.autoBindAllEvents||e.$attrs[n])&&t.addListener(n,(function(t){e.$emit(n,t)}))}))}function capitalizeFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)}function getPropsValues$1(e,t){return Object.keys(t).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function watchPrimitiveProperties(e,t,n,r){void 0===r&&(r=!1);var o=!1;function s(){o||(o=!0,e.$nextTick((function(){o=!1,n()})))}t.forEach((function(t){e.$watch(t,s,{immediate:r})}))}function bindProps$1(e,t,n){Object.keys(n).forEach((function(r){var o=n[r],s=o.twoWay,a=o.type,i=o.trackProperties;if(!o.noBind){var l="set"+capitalizeFirstLetter(r),u="get"+capitalizeFirstLetter(r),c=r.toLowerCase()+"_changed",p=e[r];if(void 0===t[l])throw new Error(l+" is not a method of (the Maps object corresponding to) "+e.$options._componentTag);a===Object&&i?watchPrimitiveProperties(e,i.map((function(e){return r+"."+e})),(function(){t[l](e[r])}),void 0!==e[r]):e.$watch(r,(function(){var n=e[r];t[l](n)}),{immediate:void 0!==p,deep:a===Object}),s&&(e.$gmapOptions.autoBindAllEvents||e.$attrs[c])&&t.addListener(c,(function(){e.$emit(c,t[u]())}))}}))}var _excluded$a=["options","position"],InfoWindowClusterManager={name:"InfoWindowClusterManager",inject:{$markerPromise:{default:null},$mapPromise:{}},provide:function(){var e=this,t=["domready","closeclick","content_changed"],n=this.$mapPromise.then((function(n){e.$map=n;var r=_extends({},e.options,{map:n},getPropsValues$1(e,infoWindowMappedProps)),o=(r.options,r.position,_objectWithoutPropertiesLoose(r,_excluded$a));o.content=e.$refs.flyaway,e.$markerPromise&&e.$markerPromise.then((function(n){return e.$markerObject=n,e.$infoWindowObject=new google.maps.InfoWindow(o),bindProps$1(e,e.$infoWindowObject,infoWindowMappedProps),bindEvents$1(e,e.$infoWindowObject,t),e._openInfoWindow(),e.$watch("opened",(function(){e._openInfoWindow()})),e.$infoWindowObject}))})).catch((function(e){throw e}));return this.$infoWindowPromise=n,{$infoWindowPromise:n}},props:{content:{type:[String,Object],default:void 0},opened:{type:Boolean,default:!0},position:{type:Object,default:void 0},zIndex:{type:Number,default:0},options:{type:Object,required:!1,default:void 0}},mounted:function(){var e=this.$refs.flyaway;e.parentNode.removeChild(e)},destroyed:function(){this.$infoWindowObject&&this.$infoWindowObject.setMap&&this.$infoWindowObject.setMap(null)},methods:{_openInfoWindow:function(){this.opened?null!==this.$markerObject?this.$infoWindowObject.open(this.$map,this.$markerObject):this.$infoWindowObject.open(this.$map):this.$infoWindowObject.close()}},render:function(){return vue.createVNode("div",null,[vue.createVNode("div",{ref:"flyaway"},[this.$slots.default()])])}},InfoWindowWrapper={name:"InfoWindowWrapperClusterManager",props:{id:Q.string,renderPopover:Q.func,infoWindowProps:Q.object,events:Q.object,marker:Q.Object},data:function(){return{infoWindowRef:null}},provide:function(){return{$markerPromise:Promise.resolve(this.marker)}},mounted:function(){this.infoWindowRef=this.$refs[this.id+"-Info-Window"]},methods:{handleClose:function(){this.infoWindowRef.$infoWindowObject.close()}},render:function(){var e=this,t=this.renderPopover,n=this.events;return vue.createVNode(InfoWindowClusterManager,vue.mergeProps({ref:this.id+"-Info-Window"},{props:this.infoWindowProps,on:n}),{default:function(){return[vue.createVNode("div",null,[t(e.handleClose)])]}})}},_excluded$b=["options"],isEqual$h=lib_8.isEqual,recordResultClick$2=lib_5.recordResultClick,ClusterMarkers={name:"ClusterMarkers",props:{markers:Q.array,getPosition:Q.func,defaultPin:Q.string,renderItem:Q.func,markerProps:Q.object,handlePreserveCenter:Q.func.isRequired,autoClosePopover:Q.bool,renderPopover:Q.func,highlightMarkerOnHover:Q.bool},inject:{$clusterPromise:{default:null},$mapPromise:{}},data:function(){return{openMarkers:{}}},mounted:function(){this.buildMarkers(this.markers)},destroy:function(){this.buildMarkers([])},watch:{markers:function(e,t){isEqual$h(t,e)||this.buildMarkers(e)}},methods:{triggerAnalytics:function(e,t){this.recordResultClick(e,t)},setOpenMarkers:function(e){this.openMarkers=e},closeMarker:function(e){var t=this.$props,n=t.autoClosePopover,r=t.handlePreserveCenter,o=e.metaData&&e.metaData._id,s=this.openMarkers,a=(s[o],_objectWithoutPropertiesLoose(s,[o].map(_toPropertyKey$1))),i=n?{}:a;this.setOpenMarkers(i),r(!0),this.$emit("close-marker-popover",e)},openMarker:function(e,t){var n,r,o=this.autoClosePopover,s=this.handlePreserveCenter,a=e.metaData&&e.metaData._id,i=o?((n={})[a]=e,n):_extends({},this.openMarkers,((r={})[a]=e,r));this.setOpenMarkers(i),s(!0),this.triggerAnalytics(a,t),this.$emit("open-marker-popover",e)},removeMarkers:function(){this.$clusterObject&&(this.$clusterObject.clearMarkers(!0),this.$markers=[])},buildMarkers:function(e){var t=this;this.$mapPromise.then((function(n){t.$clusterPromise&&t.$clusterPromise.then((function(r){var o=[],s=[],a={};(t.$markers||[]).forEach((function(e){e.metaData&&e.metaData._id&&(a[e.metaData._id]=!1)})),e.forEach((function(e,r){if(e._id&&void 0!==a[e._id])a[e._id]=!0;else{var s=_extends({},t.markerProps,{metaData:e,map:n,position:t.getPosition(e)});if(t.renderItem){var i=t.renderItem(e);"label"in i&&(s.label=i.label),"icon"in i&&(s.icon=i.icon)}else t.defaultPin&&(s.icon={url:t.defaultPin});s.options;var l=_objectWithoutPropertiesLoose(s,_excluded$b);t.$clusterPromise&&(l.map=null);var u=new google.maps.Marker(l);u.addListener("click",(function(){t.openMarker(u,r)})),o.push(u)}}));var i=[];o.forEach((function(e){i.push(e)})),(t.$markers||[]).forEach((function(e){e.metaData&&e.metaData._id&&(a[e.metaData._id]?i.push(e):s.push(e))})),r.removeMarkers(s),r.addMarkers(o),t.$clusterObject=r,t.$map=n,t.$markers=i}))})).catch((function(e){throw e}))}},render:function(){var e=this;return this.renderPopover?vue.createVNode("div",null,[Object.keys(this.openMarkers).map((function(t){var n=e.openMarkers[t],r=n.metaData;return vue.createVNode(InfoWindowWrapper,{key:t+"-InfoWindow",id:t,renderPopover:function(t){return e.renderPopover({item:r,handleClose:function(){t(),e.closeMarker(r)}})},marker:n,infoWindowProps:{zIndex:500},events:{closeclick:function(){return e.closeMarker(n)}}},null)}))]):null}},mapDispatchToProps$5={recordResultClick:recordResultClick$2},ClusterManager=connect((function(){return null}),mapDispatchToProps$5)(ClusterMarkers),InfoWindowWrapper$1={name:"InfoWindowWrapper",props:{id:Q.string,renderPopover:Q.func,infoWindowProps:Q.object,events:Q.object},data:function(){return{infoWindowRef:null}},mounted:function(){this.infoWindowRef=this.$refs[this.id+"-Info-Window"]},methods:{handleClose:function(){this.infoWindowRef.$infoWindowObject.close()}},render:function(){var e=this,t=this.renderPopover,n=this.events;return vue.createVNode(script$2,vue.mergeProps({closeclick:"true",ref:this.id+"-Info-Window"},this.infoWindowProps,babelHelperVueTransformOn(n)),{default:function(){return[vue.createVNode("div",null,[t(e.handleClose)])]}})}},MarkerWithLabel={name:"MarkerWithLabel",props:{metaData:{type:Object,default:void 0},marker:{type:Object,default:void 0},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0},alignment:{type:String,default:"top"},zIndex:{type:Number,default:50},cssPosition:{type:Boolean,default:!1},renderMarker:Q.func.isRequired,handleMouseOver:Q.func,handleFocus:Q.func,handleMouseOut:Q.func,handleBlur:Q.func,handleClick:Q.func},data:function(){return{opacity:.01}},mixins:[MapElementMixin],inject:{$clusterPromise:{default:null}},computed:{lat:function(){return parseFloat(Number.isNaN(this.marker.lat)?this.marker.latitude:this.marker.lat)},lng:function(){return parseFloat(Number.isNaN(this.marker.lng)?this.marker.longitude:this.marker.lng)},latLng:function(){return this.marker instanceof window.google.maps.LatLng?this.marker:new window.google.maps.LatLng(this.lat,this.lng)}},watch:{marker:function(){var e=this;this.$mapPromise.then((function(){return e.$overlay.setPosition()}))},zIndex:function(){this.$overlay&&this.$overlay.repaint()}},beforeCreate:function(e){return this.$clusterPromise&&(e.map=null),this.$clusterPromise},destroyed:function(){this.$clusterObject?this.$clusterObject.removeMarker(this.$overlay,!0):this.$overlay&&(this.$overlay.setMap(null),this.$overlay=void 0)},provide:function(){var e=this,t=this;return this.$mapPromise.then((function(n){var r=function(e){function n(n){var r;return(r=e.call(this)||this).metaData=t.metaData,r.setMap(n),r.draw=function(){return r.repaint()},r.setPosition=function(){return r.repaint()},r.getVisible=function(){return!0},r}_inheritsLoose(n,e);var r=n.prototype;return r.repaint=function(){var e=t.$el,n=this.getProjection();if(n&&e){var r,o,s=n.fromLatLngToDivPixel(t.latLng);switch(t.alignment){case"top":r=s.x-e.offsetWidth/2,o=s.y-e.offsetHeight;break;case"bottom":r=s.x-e.offsetWidth/2,o=s.y;break;case"left":r=s.x-e.offsetWidth,o=s.y-e.offsetHeight/2;break;case"right":r=s.x,o=s.y-e.offsetHeight/2;break;case"center":r=s.x-e.offsetWidth/2,o=s.y-e.offsetHeight/2;break;case"topleft":case"lefttop":r=s.x-e.offsetWidth,o=s.y-e.offsetHeight;break;case"topright":case"righttop":r=s.x,o=s.y-e.offsetHeight;break;case"bottomleft":case"leftop":r=s.x-e.offsetWidth,o=s.y;break;case"bottomright":case"rightbottom":r=s.x,o=s.y;break;default:throw new Error("Invalid alignment type of custom marker!")}t.cssPosition?e.style.transform="translate("+(r+t.offsetX)+"px, "+(o+t.offsetY)+"px)":(e.style.left=r+t.offsetX+"px",e.style.top=o+t.offsetY+"px"),e.style["z-index"]=t.zIndex}},r.onAdd=function(){this.$clusterObject?this.$clusterObject.removeMarker(this.$overlay,!0):this.$overlay&&(this.$overlay.setMap(null),this.$overlay=void 0);var e=t.$el,n=this.getPanes();e.style.position="absolute",e.style.display="inline-block",e.style.zIndex=t.zIndex,n.overlayLayer.appendChild(e),n.overlayMouseTarget.appendChild(e),this.getDraggable=function(){return!1},this.getPosition=function(){return new window.google.maps.LatLng(t.lat,t.lng)},t.afterCreate(this)},r.onRemove=function(){if(t.$el){var e=window.navigator.userAgent;e.indexOf("MSIE ")>0||e.match(/Trident.*rv\:11\./)?t.$el.parentNode.removeChild(t.$el):t.$el.remove()}},n}(window.google.maps.OverlayView);e.$overlay=new r(n),setTimeout((function(){e.$overlay&&(e.$overlay.repaint(),e.opacity=1)}),100)}))},methods:{afterCreate:function(e){var t=this;this.$clusterPromise&&!this.isMarkerAdded&&this.$clusterPromise.then((function(n){n.addMarker(e),t.$clusterObject=n,t.isMarkerAdded=!0}))}},render:function(){return vue.createVNode("div",{style:{opacity:this.opacity},onmouseover:this.handleMouseOver,onmouseout:this.handleMouseOut,onclick:this.handleClick},[this.renderMarker()])}},_templateObject$s,_templateObject2$d,_templateObject3$8,MapPin=styled("div")(_templateObject$s||(_templateObject$s=_taggedTemplateLiteralLoose(["\n\theight: 24px;\n\twidth: auto;\n\tbackground-color: #fff;\n\tborder-radius: 2px;\n\tcolor: #222;\n\tbox-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15);\n\tpadding: 3px 6px;\n\tfont-size: 15px;\n"]))),MapPinArrow=styled("div")(_templateObject2$d||(_templateObject2$d=_taggedTemplateLiteralLoose(["\n\tborder-color: rgba(0, 0, 0, 0.2);\n\tborder-style: solid;\n\tborder-width: 0 1px 1px 0;\n\tmargin-left: -6px;\n\tbackground-color: #fff;\n\tmargin-top: -6px;\n\twidth: 12px;\n\theight: 12px;\n\t-webkit-transform: rotate(45deg);\n\t-ms-transform: rotate(45deg);\n\ttransform: rotate(45deg);\n"]))),mapPinWrapper=css(_templateObject3$8||(_templateObject3$8=_taggedTemplateLiteralLoose(["\n\t&:hover,\n\t&:focus {\n\t\tz-index: 200;\n\t}\n"]))),recordResultClick$3=lib_5.recordResultClick,GoogleMapMarker={name:"GoogleMapMarker",props:{index:Q.number,marker:Q.object.isRequired,getPosition:Q.func.isRequired,defaultPin:Q.string,renderItem:Q.func,setOpenMarkers:Q.func.isRequired,handlePreserveCenter:Q.func.isRequired,autoClosePopover:Q.bool,openMarkers:Q.object,renderPopover:Q.func,highlightMarkerOnHover:Q.bool},data:function(){return{zIndex:0,markerIcon:null}},methods:{setIcon:function(e){this.markerIcon=e},increaseMarkerZIndex:function(){var e=this.$props.handlePreserveCenter;this.highlightMarkerOnHover&&(this.zIndex+=1),e(!0)},removeMarkerZIndex:function(){var e=this.$props.handlePreserveCenter;this.highlightMarkerOnHover&&(this.zIndex-=1),e(!0)},openMarker:function(){var e,t,n=this.$props,r=n.setOpenMarkers,o=n.openMarkers,s=n.marker,a=n.autoClosePopover,i=n.handlePreserveCenter,l=s._id;r(a?((e={})[l]=!0,e):_extends({},o,((t={})[l]=!0,t))),i(!0),this.triggerAnalytics(),s.setIcon=this.setIcon,this.$emit("open-marker-popover",s)},closeMarker:function(){var e=this.$props,t=e.setOpenMarkers,n=e.marker,r=e.autoClosePopover,o=e.handlePreserveCenter,s=e.openMarkers,a=n._id,i=(s[a],_objectWithoutPropertiesLoose(s,[a].map(_toPropertyKey$1)));t(r?{}:i),o(!0),n.setIcon=this.setIcon,this.$emit("close-marker-popover",n)},triggerAnalytics:function(){this.recordResultClick(this.index,this.marker._id)},renderPopoverClick:function(e){var t,n=this,r=this.$props,o=r.getPosition,s=r.renderPopover,a=r.openMarkers;return t={position:o(e),defaultOptions:{pixelOffset:new window.google.maps.Size(0,-30)}},e._id in a?vue.createVNode(InfoWindowWrapper$1,{key:e._id+"-InfoWindow",id:e._id,renderPopover:function(t){return s({item:e,handleClose:function(){t(),n.closeMarker()}})},infoWindowProps:{zIndex:500,position:t.position,options:t.defaultOptions},events:{closeclick:function(){return n.closeMarker()}}},null):null}},render:function(){var e=this,t=this.$props,n=t.getPosition,r=t.renderItem,o=t.defaultPin,s=t.renderPopover,a=t.markerProps,i=t.marker,l={};if(this.zIndex&&(l.zIndex=window.google.maps.Marker.MAX_ZINDEX+this.zIndex),r){i.setIcon=this.setIcon;var u=r(i);if("label"in u)return vue.createVNode(MarkerWithLabel,vue.mergeProps({key:i._id,metaData:i,marker:n(i),labelAnchor:new window.google.maps.Point(0,30),handleMouseOver:this.increaseMarkerZIndex,handleMouseOut:this.removeMarkerZIndex,handleClick:this.openMarker,zIndex:l.zIndex},a,{renderMarker:function(){return vue.createVNode("div",{css:mapPinWrapper},[vue.createVNode(MapPin,null,{default:function(){return[u.label]}}),vue.createVNode(MapPinArrow,null,null),s?e.renderPopoverClick(i,!0):null])}}),null);if(!("icon"in u))return vue.createVNode(MarkerWithLabel,vue.mergeProps({key:i._id,metaData:i,marker:n(i),handleClick:this.openMarker,handleMouseOver:this.increaseMarkerZIndex,handleMouseOut:this.removeMarkerZIndex,zIndex:l.zIndex},a,{renderMarker:function(){return vue.createVNode("div",{css:mapPinWrapper},["function"==typeof u.custom?u.custom(i):u.custom,s?e.renderPopoverClick(i,!0):null])}}),null);l.icon=u.icon}else o&&(l.icon={url:o});return vue.createVNode(script,vue.mergeProps({key:i._id,zIndex:l.zIndex,onClick:function(){return e.openMarker()},onMouseover:this.increaseMarkerZIndex,onMouseout:this.removeMarkerZIndex},a,{position:n(i),options:{metaData:i},icon:this.markerIcon||l.icon}),{default:function(){return[s?e.renderPopoverClick(i):null]}})}},mapDispatchToProps$6={recordResultClick:recordResultClick$3},GoogleMapMarker$1=connect((function(){return null}),mapDispatchToProps$6)(GoogleMapMarker),GoogleMapMarkers={name:"GoogleMapMarkers",props:{resultsToRender:Q.array,getPosition:Q.func,renderItem:Q.func,renderClusterPopover:Q.func,defaultPin:Q.string,autoClosePopover:Q.bool,handlePreserveCenter:Q.func,renderPopover:Q.func,markerProps:Q.object,clusterProps:Q.object,showMarkerClusters:Q.bool,highlightMarkerOnHover:Q.bool},data:function(){return{openMarkers:{},clickedCluster:null,clusterMarkers:[]}},methods:{setOpenMarkers:function(e){this.openMarkers=e},getAdditionalProps:function(){return{position:{lat:this.clickedCluster.getCenter().lat(),lng:this.clickedCluster.getCenter().lng()},defaultOptions:{pixelOffset:new window.google.maps.Size(0,-30)}}},closeMarker:function(){this.clickedCluster=null,this.clusterMarkers=[],this.$emit("close-cluster-popover")}},render:function(){var e=this,t=this.$props.resultsToRender,n={openMarkers:this.openMarkers,setMarkerOnTop:this.setMarkerOnTop,setOpenMarkers:this.setOpenMarkers,getPosition:this.getPosition,renderItem:this.renderItem,defaultPin:this.defaultPin,autoClosePopover:this.autoClosePopover,handlePreserveCenter:this.handlePreserveCenter,renderPopover:this.renderPopover,markerProps:this.markerProps,showMarkerClusters:this.showMarkerClusters,highlightMarkerOnHover:this.highlightMarkerOnHover};return this.showMarkerClusters?vue.createVNode("div",null,[vue.createVNode(script$1,vue.mergeProps(this.clusterProps,{onclick:function(t){var n=t.markers.map((function(e){return e.metaData}));e.clickedCluster=t,e.clusterMarkers=n,e.$emit("open-cluster-popover",e.clusterMarkers)},ref:"clusterRef"}),{default:function(){return[vue.createVNode(ClusterManager,vue.mergeProps({getPosition:n.getPosition,markers:t,defaultPin:n.defaultPin,renderItem:n.renderItem,markerProps:n.markerProps,handlePreserveCenter:n.handlePreserveCenter,autoClosePopover:n.autoClosePopover,renderPopover:n.renderPopover,highlightMarkerOnHover:n.highlightMarkerOnHover},{on:e.$attrs}),null)]}}),this.clickedCluster&&this.renderClusterPopover?vue.createVNode(InfoWindowWrapper$1,{id:"cluster",infoWindowProps:{zIndex:500,position:this.getAdditionalProps().position,options:this.getAdditionalProps().defaultOptions},renderPopover:function(t){return e.renderClusterPopover({markers:e.clusterMarkers,cluster:e.clickedCluster,handleClose:function(){t(),e.closeMarker()}})},events:{closeclick:this.closeMarker}},null):null]):vue.createVNode("div",null,[t.map((function(t,r){return vue.createVNode(GoogleMapMarker$1,vue.mergeProps({index:r,marker:t},n,e.$attrs),null)}))])}},_templateObject$t,ReactiveGoogleMap={name:"ReactiveGoogleMap",props:{className:types.string,componentId:types.stringRequired,compoundClause:types.compoundClause,dataField:types.stringRequired,defaultQuery:Q.func,loader:types.title,defaultZoom:Q.number.def(13),react:types.react,size:types.number,sortBy:types.sortBy,URLParams:Q.bool,mapProps:Q.object,showMarkers:Q.bool.def(!0),showMarkerClusters:Q.bool.def(!1),searchAsMove:Q.bool.def(!1),searchAsMoveLabel:Q.string,markerProps:Q.object,clusterProps:Q.object,renderItem:Q.func,showSearchAsMove:Q.bool.def(!0),autoClosePopover:Q.bool,pagination:Q.bool,defaultPin:Q.string,autoCenter:Q.bool,defaultCenter:types.location,center:types.location,defaultRadius:types.number,unit:types.string,pages:Q.number.def(5),calculateMarkers:Q.func,highlightMarkerOnHover:Q.bool.def(!0)},computed:{listeners:function(){var e=/^on[^a-z]/,t={},n=this.$attrs;return Object.keys(n).forEach((function(r){e.test(r)&&(t[r]=n[r])})),t}},methods:{renderMap:function(e){var t=this,n=e.resultsToRender,r=e.center,o=e.zoom,s=e.handleZoomChange,a=e.handleOnDragEnd,i=e.handleOnIdle,l=e.renderSearchAsMove,u=e.handlePreserveCenter,c=e.getPosition,p=e.autoClosePopover,d=e.defaultPin;return vue.createVNode("div",{style:{width:"100%",height:"100%",position:"relative"}},[vue.createVNode(script$3,vue.mergeProps({ref:"mapRef","map-type-id":"terrain",style:{height:"100%"},class:css(_templateObject$t||(_templateObject$t=_taggedTemplateLiteralLoose(["\n\t\t\t\t\t\t\theight: 100%;\n\t\t\t\t\t\t"]))),options:{zoomControl:!0},center:r,zoom:o},this.mapProps,{onzoom_changed:s,ondragend:a,onidle:i}),{default:function(){return[t.showMarkers?vue.createVNode(GoogleMapMarkers,vue.mergeProps({resultsToRender:n,getPosition:c,markerProps:t.markerProps,clusterProps:t.clusterProps,handlePreserveCenter:u,highlightMarkerOnHover:t.highlightMarkerOnHover,renderItem:t.$slots.renderItem?function(){return{custom:t.$slots.renderItem}}:t.renderItem,defaultPin:d,autoClosePopover:p,renderPopover:t.$slots.renderPopover,renderClusterPopover:t.$slots.renderClusterPopover,showMarkerClusters:t.showMarkerClusters},t.listeners),null):null]}}),l()])},getMapRef:function(){return this.mapRef},removeMarkers:function(){for(var e,t=this;t;)if(t&&t.$options&&"connect-ClusterMarkers"===t.$options.name)e=t,t=null;else if(t.$children){t=t.$children[0]}else t=null;e&&e.removeMarkers&&e.removeMarkers()}},mounted:function(){var e=this;this.$refs.mapRef&&this.$refs.mapRef.$mapPromise.then((function(t){e.mapRef=t}))},render:function(){return vue.createVNode(RMConnected,vue.mergeProps({getMapRef:this.getMapRef,renderMap:this.renderMap,componentId:this.componentId,compoundClause:this.compoundClause,className:this.className,dataField:this.dataField,defaultZoom:this.defaultZoom,react:this.react,size:this.size,sortBy:this.sortBy,pagination:this.pagination,URLParams:this.URLParams,defaultSearchAsMove:this.searchAsMove,showSearchAsMove:this.showSearchAsMove,searchAsMoveLabel:this.searchAsMoveLabel,showMarkers:this.showMarkers,markerProps:this.markerProps,autoClosePopover:this.autoClosePopover,defaultPin:this.defaultPin,defaultQuery:this.defaultQuery,autoCenter:this.autoCenter,defaultCenter:this.defaultCenter,defaultRadius:this.defaultRadius,unit:this.unit,pages:this.pages,center:this.center,loader:this.loader,calculateMarkers:this.calculateMarkers},{on:this.$attrs}),null)}},_PatchFlagNames,_slotFlagsText;function makeMap(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return t?function(e){return!!n[e.toLowerCase()]}:function(e){return!!n[e]}}ReactiveGoogleMap.install=function(e,t){e.component(ReactiveGoogleMap.name,ReactiveGoogleMap),t&&t.key||console.error("ReactiveSearch: map key is required to use ReactiveGoogleMap component"),e.use(install,{load:{key:t.key,libraries:"places"},installComponents:!1})},ReactiveGoogleMap.componentType=constants_1$1.reactiveMap;var NOOP=function(){},onRE=/^on[^a-z]/,isOn=function(e){return onRE.test(e)},isArray=Array.isArray,isFunction$1=function(e){return"function"==typeof e},isString=function(e){return"string"==typeof e},isObject$1=function(e){return null!==e&&"object"==typeof e},isPromise=function(e){return isObject$1(e)&&isFunction$1(e.then)&&isFunction$1(e.catch)},cacheStringFunction=function(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}},hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction((function(e){return e.replace(hyphenateRE,"-$1").toLowerCase()})),_globalThis,getGlobalThis=function(){return _globalThis||(_globalThis="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==global$1?global$1:{})},PatchFlagNames=(_PatchFlagNames={},_PatchFlagNames[1]="TEXT",_PatchFlagNames[2]="CLASS",_PatchFlagNames[4]="STYLE",_PatchFlagNames[8]="PROPS",_PatchFlagNames[16]="FULL_PROPS",_PatchFlagNames[32]="HYDRATE_EVENTS",_PatchFlagNames[64]="STABLE_FRAGMENT",_PatchFlagNames[128]="KEYED_FRAGMENT",_PatchFlagNames[256]="UNKEYED_FRAGMENT",_PatchFlagNames[512]="NEED_PATCH",_PatchFlagNames[1024]="DYNAMIC_SLOTS",_PatchFlagNames[2048]="DEV_ROOT_FRAGMENT",_PatchFlagNames[-1]="HOISTED",_PatchFlagNames[-2]="BAIL",_PatchFlagNames),slotFlagsText=(_slotFlagsText={},_slotFlagsText[1]="STABLE",_slotFlagsText[2]="DYNAMIC",_slotFlagsText[3]="FORWARDED",_slotFlagsText);function normalizeStyle(e){if(isArray(e)){for(var t={},n=0;n<e.length;n++){var r=e[n],o=isString(r)?parseStringStyle(r):normalizeStyle(r);if(o)for(var s in o)t[s]=o[s]}return t}return isString(e)||isObject$1(e)?e:void 0}var listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(e){var t={};return e.replace(styleCommentRE,"").split(listDelimiterRE).forEach((function(e){if(e){var n=e.split(propertyDelimiterRE);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function stringifyStyle(e){var t="";if(!e||isString(e))return t;for(var n in e){var r=e[n],o=n.startsWith("--")?n:hyphenate(n);(isString(r)||"number"==typeof r)&&(t+=o+":"+r+";")}return t}function normalizeClass(e){var t="";if(isString(e))t=e;else if(isArray(e))for(var n=0;n<e.length;n++){var r=normalizeClass(e[n]);r&&(t+=r+" ")}else if(isObject$1(e))for(var o in e)e[o]&&(t+=o+" ");return t.trim()}var SVG_TAGS="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",VOID_TAGS="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",isSVGTag=makeMap(SVG_TAGS),isVoidTag=makeMap(VOID_TAGS),specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isBooleanAttr=makeMap(specialBooleanAttrs+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function includeBooleanAttr(e){return!!e||""===e}var unsafeAttrCharRE=/[>/="'\u0009\u000a\u000c\u0020]/,attrValidationCache={};function isSSRSafeAttrName(e){if(attrValidationCache.hasOwnProperty(e))return attrValidationCache[e];var t=unsafeAttrCharRE.test(e);return t&&console.error("unsafe attribute name: "+e),attrValidationCache[e]=!t}var propsToAttrMap={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},escapeRE=/["'&<>]/;function escapeHtml$2(e){var t=""+e,n=escapeRE.exec(t);if(!n)return t;var r,o,s="",a=0;for(o=n.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}a!==o&&(s+=t.slice(a,o)),a=o+1,s+=r}return a!==o?s+t.slice(a,o):s}var commentStripRE=/^-?>|<!--|-->|--!>|<!-$/g,_ErrorTypeStrings;function escapeHtmlComment(e){return e.replace(commentStripRE,"")}var shouldIgnoreProp=makeMap(",key,ref,innerHTML,textContent,ref_key,ref_for");function ssrRenderAttrs(e,t){var n="";for(var r in e)if(!(shouldIgnoreProp(r)||isOn(r)||"textarea"===t&&"value"===r)){var o=e[r];n+="class"===r?' class="'+ssrRenderClass(o)+'"':"style"===r?' style="'+ssrRenderStyle(o)+'"':ssrRenderDynamicAttr(r,o,t)}return n}function ssrRenderDynamicAttr(e,t,n){if(!isRenderableValue(t))return"";var r=n&&(n.indexOf("-")>0||isSVGTag(n))?e:propsToAttrMap[e]||e.toLowerCase();return isBooleanAttr(r)?includeBooleanAttr(t)?" "+r:"":isSSRSafeAttrName(r)?""===t?" "+r:" "+r+'="'+escapeHtml$2(t)+'"':(console.warn("[@vue/server-renderer] Skipped rendering unsafe attribute name: "+r),"")}function isRenderableValue(e){if(null==e)return!1;var t=typeof e;return"string"===t||"number"===t||"boolean"===t}function ssrRenderClass(e){return escapeHtml$2(normalizeClass(e))}function ssrRenderStyle(e){return e?isString(e)?escapeHtml$2(e):escapeHtml$2(stringifyStyle(normalizeStyle(e))):""}function ssrRenderTeleport(e,t,n,r,o){e("\x3c!--teleport start--\x3e");var s,a=o.appContext.provides[vue.ssrContextKey],i=a.__teleportBuffers||(a.__teleportBuffers={}),l=i[n]||(i[n]=[]),u=l.length;if(r)t(e),s="\x3c!--teleport anchor--\x3e";else{var c=createBuffer(),p=c.getBuffer,d=c.push;t(d),d("\x3c!--teleport anchor--\x3e"),s=p()}l.splice(u,0,s),e("\x3c!--teleport end--\x3e")}var ErrorTypeStrings=(_ErrorTypeStrings={},_ErrorTypeStrings.sp="serverPrefetch hook",_ErrorTypeStrings.bc="beforeCreate hook",_ErrorTypeStrings.c="created hook",_ErrorTypeStrings.bm="beforeMount hook",_ErrorTypeStrings.m="mounted hook",_ErrorTypeStrings.bu="beforeUpdate hook",_ErrorTypeStrings.u="updated",_ErrorTypeStrings.bum="beforeUnmount hook",_ErrorTypeStrings.um="unmounted hook",_ErrorTypeStrings.a="activated hook",_ErrorTypeStrings.da="deactivated hook",_ErrorTypeStrings.ec="errorCaptured hook",_ErrorTypeStrings.rtc="renderTracked hook",_ErrorTypeStrings.rtg="renderTriggered hook",_ErrorTypeStrings[0]="setup function",_ErrorTypeStrings[1]="render function",_ErrorTypeStrings[2]="watcher getter",_ErrorTypeStrings[3]="watcher callback",_ErrorTypeStrings[4]="watcher cleanup function",_ErrorTypeStrings[5]="native event handler",_ErrorTypeStrings[6]="component event handler",_ErrorTypeStrings[7]="vnode hook",_ErrorTypeStrings[8]="directive hook",_ErrorTypeStrings[9]="transition hook",_ErrorTypeStrings[10]="app errorHandler",_ErrorTypeStrings[11]="app warnHandler",_ErrorTypeStrings[12]="ref function",_ErrorTypeStrings[13]="async component loader",_ErrorTypeStrings[14]="scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core",_ErrorTypeStrings),globalCurrentInstanceSetters,settersKey="__VUE_INSTANCE_SETTERS__";function ssrCompile(e,t){throw new Error("On-the-fly template compilation is not supported in the ESM build of @vue/server-renderer. All templates must be pre-compiled into render functions.")}(globalCurrentInstanceSetters=getGlobalThis()[settersKey])||(globalCurrentInstanceSetters=getGlobalThis()[settersKey]=[]),globalCurrentInstanceSetters.push((function(e){return e}));var createComponentInstance=vue.ssrUtils.createComponentInstance,setCurrentRenderingInstance=vue.ssrUtils.setCurrentRenderingInstance,setupComponent=vue.ssrUtils.setupComponent,renderComponentRoot=vue.ssrUtils.renderComponentRoot,normalizeVNode=vue.ssrUtils.normalizeVNode;function createBuffer(){var e=!1,t=[];return{getBuffer:function(){return t},push:function(n){var r=isString(n);e&&r?t[t.length-1]+=n:t.push(n),e=r,(isPromise(n)||isArray(n)&&n.hasAsync)&&(t.hasAsync=!0)}}}function renderComponentVNode(e,t,n){void 0===t&&(t=null);var r=createComponentInstance(e,t,null),o=setupComponent(r,!0),s=isPromise(o),a=r.sp;if(s||a){var i=s?o:Promise.resolve();return a&&(i=i.then((function(){return Promise.all(a.map((function(e){return e.call(r.proxy)})))})).catch((function(){}))),i.then((function(){return renderComponentSubTree(r,n)}))}return renderComponentSubTree(r,n)}function renderComponentSubTree(e,t){var n=e.type,r=createBuffer(),o=r.getBuffer,s=r.push;if(isFunction$1(n)){var a=renderComponentRoot(e);if(!n.props)for(var i in e.attrs)i.startsWith("data-v-")&&((a.props||(a.props={}))[i]="");renderVNode(s,e.subTree=a,e,t)}else{e.render&&e.render!==NOOP||e.ssrRender||n.ssrRender||!isString(n.template)||(n.ssrRender=ssrCompile(n.template));for(var l,u=_createForOfIteratorHelperLoose(e.scope.effects);!(l=u()).done;){var c=l.value;c.computed&&(c.computed._cacheable=!0)}var p=e.ssrRender||n.ssrRender;if(p){for(var d=!1!==e.inheritAttrs?e.attrs:void 0,h=!1,f=e;;){var m=f.vnode.scopeId;m&&(h||(d=_extends({},d),h=!0),d[m]="");var g=f.parent;if(!g||!g.subTree||g.subTree!==f.vnode)break;f=g}t&&(h||(d=_extends({},d)),d[t.trim()]="");var y=setCurrentRenderingInstance(e);try{p(e.proxy,s,e,d,e.props,e.setupState,e.data,e.ctx)}finally{setCurrentRenderingInstance(y)}}else if(e.render&&e.render!==NOOP)renderVNode(s,e.subTree=renderComponentRoot(e),e,t);else{var v=n.name||n.__file||"<Anonymous>";vue.warn("Component "+v+" is missing template or render function."),s("\x3c!----\x3e")}}return o()}function renderVNode(e,t,n,r){var o=t.type,s=t.shapeFlag,a=t.children;switch(o){case vue.Text:e(escapeHtml$2(a));break;case vue.Comment:e(a?"\x3c!--"+escapeHtmlComment(a)+"--\x3e":"\x3c!----\x3e");break;case vue.Static:e(a);break;case vue.Fragment:t.slotScopeIds&&(r=(r?r+" ":"")+t.slotScopeIds.join(" ")),e("\x3c!--[--\x3e"),renderVNodeChildren(e,a,n,r),e("\x3c!--]--\x3e");break;default:1&s?renderElementVNode(e,t,n,r):6&s?e(renderComponentVNode(t,n,r)):64&s?renderTeleportVNode(e,t,n,r):128&s?renderVNode(e,t.ssContent,n,r):vue.warn("[@vue/server-renderer] Invalid VNode type:",o,"("+typeof o+")")}}function renderVNodeChildren(e,t,n,r){for(var o=0;o<t.length;o++)renderVNode(e,normalizeVNode(t[o]),n,r)}function renderElementVNode(e,t,n,r){var o=t.type,s=t.props,a=t.children,i=t.shapeFlag,l=t.scopeId,u=t.dirs,c="<"+o;u&&(s=applySSRDirectives(t,s,u)),s&&(c+=ssrRenderAttrs(s,o)),l&&(c+=" "+l);for(var p=n,d=t;p&&d===p.subTree;)(d=p.vnode).scopeId&&(c+=" "+d.scopeId),p=p.parent;if(r&&(c+=" "+r),e(c+">"),!isVoidTag(o)){var h=!1;s&&(s.innerHTML?(h=!0,e(s.innerHTML)):s.textContent?(h=!0,e(escapeHtml$2(s.textContent))):"textarea"===o&&s.value&&(h=!0,e(escapeHtml$2(s.value)))),h||(8&i?e(escapeHtml$2(a)):16&i&&renderVNodeChildren(e,a,n,r)),e("</"+o+">")}}function applySSRDirectives(e,t,n){for(var r=[],o=0;o<n.length;o++){var s=n[o],a=s.dir.getSSRProps;if(a){var i=a(s,e);i&&r.push(i)}}return vue.mergeProps.apply(void 0,[t||{}].concat(r))}function renderTeleportVNode(e,t,n,r){var o=t.props&&t.props.to,s=t.props&&t.props.disabled;return o?isString(o)?void ssrRenderTeleport(e,(function(e){renderVNodeChildren(e,t.children,n,r)}),o,s||""===s,n):(vue.warn("[@vue/server-renderer] Teleport target must be a query selector string."),[]):(s||vue.warn("[@vue/server-renderer] Teleport is missing target prop."),[])}var isVNode$1=vue.ssrUtils.isVNode;function unrollBuffer$1(e){return _unrollBuffer$.apply(this,arguments)}function _unrollBuffer$(){return(_unrollBuffer$=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var n,r,o;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.hasAsync){e.next=23;break}n="",r=0;case 3:if(!(r<t.length)){e.next=20;break}if(o=t[r],!isPromise(o)){e.next=9;break}return e.next=8,o;case 8:o=e.sent;case 9:if(!isString(o)){e.next=13;break}n+=o,e.next=17;break;case 13:return e.t0=n,e.next=16,unrollBuffer$1(o);case 16:n=e.t0+=e.sent;case 17:r++,e.next=3;break;case 20:return e.abrupt("return",n);case 23:return e.abrupt("return",unrollBufferSync$1(t));case 24:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function unrollBufferSync$1(e){for(var t="",n=0;n<e.length;n++){var r=e[n];isString(r)?t+=r:t+=unrollBufferSync$1(r)}return t}function renderToString(e,t){return _renderToString.apply(this,arguments)}function _renderToString(){return(_renderToString=_asyncToGenerator(_regeneratorRuntime().mark((function e(t,n){var r,o,s,a,i;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===n&&(n={}),!isVNode$1(t)){e.next=3;break}return e.abrupt("return",renderToString(vue.createApp({render:function(){return t}}),n));case 3:return(r=vue.createVNode(t._component,t._props)).appContext=t._context,t.provide(vue.ssrContextKey,n),e.next=8,renderComponentVNode(r);case 8:return o=e.sent,e.next=11,unrollBuffer$1(o);case 11:return s=e.sent,e.next=14,resolveTeleports(n);case 14:if(n.__watcherHandles)for(a=_createForOfIteratorHelperLoose(n.__watcherHandles);!(i=a()).done;)(0,i.value)();return e.abrupt("return",s);case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function resolveTeleports(e){return _resolveTeleports.apply(this,arguments)}function _resolveTeleports(){return(_resolveTeleports=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.__teleportBuffers){e.next=14;break}t.teleports=t.teleports||{},e.t0=_regeneratorRuntime().keys(t.__teleportBuffers);case 3:if((e.t1=e.t0()).done){e.next=14;break}return n=e.t1.value,e.t2=unrollBuffer$1,e.next=8,Promise.all([t.__teleportBuffers[n]]);case 8:return e.t3=e.sent,e.next=11,(0,e.t2)(e.t3);case 11:t.teleports[n]=e.sent,e.next=3;break;case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var isVNode=vue.ssrUtils.isVNode;vue.initDirectivesForSSR();var server=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getServerResults=void 0;var n,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=(n=valueReducer_1)&&n.__esModule?n:{default:n};function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t,n){if(e&&e[t])try{var o=JSON.parse(e[t]);return r({},"object"==typeof o&&o.value?r({value:o.value},o.category?{category:o.category}:{}):{value:o},{reference:"URL"})}catch(n){return{value:e[t],reference:"URL"}}return{value:n,reference:"DEFAULT"}}function u(e){if(e instanceof Object)return e;if("string"!=typeof e||0===e.length)return{};var t=void 0;if(e.split("/?")[1]&&(t=e.split("/?")[1].split("&")),e.split("?")[1]&&(t=e.split("?")[1].split("&")),!t)return{};for(var n=t.length,r=void 0,o={},s=void 0,a=void 0,i=0;i<n;i+=1)r=t[i].split("="),0!==(s=decodeURIComponent(r[0])).length&&(a=decodeURIComponent(r[1]),void 0===o[s]?o[s]=a:o[s]instanceof Array?o[s].push(a):o[s]=[o[s],a]);return o}t.getServerResults=function(){var e=null;return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments[2];try{var p=u(n);if(!e){var d={},h=function(t){return t.ctx&&(e=t.ctx,Object.keys(p).forEach((function(e){var t=l(p,e,null),n=t.value,r=t.reference;n&&(d=(0,o.default)(d,{type:"PATCH_VALUE",component:e,payload:{value:n,reference:r}}))}))),{selectedValues:d}},f=c(t({contextCollector:h})),m=void 0;return(m=f.then?f:Promise.resolve(m)).then((function(){if(e){var t=e.getState(),n=t.components,o=t.config,l=t.appbaseRef,u=t.queryOptions,c=t.internalValues,p=t.props,h=t.queryList,f=t.dependencyTree,m=t.queryLog,g=[],y={},v=[],b={},_={},$=r({},t);n.filter((function(e){return!e.endsWith("__internal")})).forEach((function(e){var t=(0,helper.buildQuery)(e,f,h,u),n=t.queryObj,o=t.options;if(n||o){var l=(0,transform.getRSQuery)(e,(0,transform.extractPropsFromState)($,e,u&&u[e]?{from:u[e].from}:null));if(l&&Object.keys(l).length){var c=l,d=(0,transform.getDependentQueries)($,e,v),g=r(i({},e,c),Object.keys(d).reduce((function(e,t){return r({},e,i({},t,r({},d[t],{execute:!1},d[t].type===constants$1.queryTypes.suggestion?{type:"search"}:{})))}),{}));if([constants$1.queryTypes.range,constants$1.queryTypes.term].includes(transform.componentToTypeMap[p[e].componentType])){c.value;var b=a(c,["value"]);g=r(i({},e,b),Object.keys(d).reduce((function(e,t){return r({},e,i({},t,r({},d[t],{execute:!1},d[t].type===constants$1.queryTypes.suggestion?{type:"search"}:{})))}),{}))}if(v=[].concat(s(v),[e]),m=r({},m,i({},e,g)),l){var _=(0,transform.getDependentQueries)($,e,v);y=r({},y,i({},e,l)),Object.keys(_).forEach((function(e){y[e]?y[e+Math.random()]=_[e]:y[e]=_[e]}))}}}}));if(Object.keys(y).length){g=Object.values(y);var C={};return o.analyticsConfig&&(C.recordAnalytics=(0,utils.isPropertyDefined)(o.analyticsConfig.recordAnalytics)?o.analyticsConfig.recordAnalytics:void 0,C.userId=(0,utils.isPropertyDefined)(o.analyticsConfig.userId)?o.analyticsConfig.userId:void 0,C.enableQueryRules=(0,utils.isPropertyDefined)(o.analyticsConfig.enableQueryRules)?o.analyticsConfig.enableQueryRules:void 0,C.customEvents=(0,utils.isPropertyDefined)(o.analyticsConfig.customEvents)?o.analyticsConfig.customEvents:void 0),l.reactiveSearchv3(g,C).then((function(e){return function(e){var t={},n={},s={},a=v.map((function(a){return new Promise((function(l,u){(0,utils.handleTransformResponse)(e[a],o,a).then((function(e){if(e){e.promoted&&(t[a]=e.promoted.map((function(e){return r({},e.doc,{_position:e.position})}))),n[a]=e,e.customData&&(s[a]=e.customData),e.aggregations&&(_=r({},_,i({},a,e.aggregations)));var o=e.hits||{};b=r({},b,i({},a,{hits:o.hits,total:"object"==typeof o.total?o.total.value:o.total,time:e.took})),l()}})).catch((function(e){u(e)}))}))}));return Promise.all(a).then((function(){return $={queryList:h,queryOptions:u,selectedValues:d,internalValues:c,queryLog:m,hits:b,aggregations:_,promotedResults:t,customData:s,rawData:n,dependencyTree:f},Promise.resolve(JSON.parse(JSON.stringify($)))}))}(e)})).catch((function(e){return Promise.reject(e)}))}throw new Error("Could not compute server-side initial state of the app!")}return null})).catch(Promise.reject)}return null}catch(e){return Promise.reject(e)}}}}));unwrapExports(server);var server_1=server.getServerResults;function getServerState(e,t){var n=renderToString;return server_1()((function(t){return vue.createSSRApp(e,t)}),t,n)}var version="3.2.0",components=[RLConnected,ResultCard,ResultList,ReactiveBase,SBConnected,ListConnected,ListConnected$1,RangeConnected$1,RangeConnected$2,RangeConnected$3,RangeConnected,RcConnected,RcConnected$1,RcConnected$2,TBConnected,ListConnected$2,ListConnected$3,StateProviderConnected,RangeConnected$4,TreeListConnected,AIConnected];function install$1(e){components.map((function(t){return e.use(t),null}))}"undefined"!=typeof window&&window.Vue&&install$1(window.Vue);var index$1={version:version,install:install$1};exports.AIAnswer=AIConnected,exports.DynamicRangeSlider=RangeConnected,exports.MultiDropdownList=ListConnected$3,exports.MultiList=ListConnected$1,exports.MultiRange=RangeConnected$2,exports.RangeInput=RangeConnected$4,exports.RangeSlider=RangeConnected$3,exports.ReactiveBase=ReactiveBase,exports.ReactiveComponent=RcConnected,exports.ReactiveComponentPrivate=RcConnected$1,exports.ReactiveGoogleMap=ReactiveGoogleMap,exports.ReactiveList=RLConnected,exports.ResultCard=ResultCard,exports.ResultList=ResultList,exports.SearchBox=SBConnected,exports.SelectedFilters=RcConnected$2,exports.SingleDropdownList=ListConnected$2,exports.SingleList=ListConnected,exports.SingleRange=RangeConnected$1,exports.StateProvider=StateProviderConnected,exports.ToggleButton=TBConnected,exports.TreeList=TreeListConnected,exports.componentTypes=constants_1$1,exports.default=index$1,exports.getServerState=getServerState,exports.install=install$1,exports.version=version,Object.defineProperty(exports,"__esModule",{value:!0})}));
|
|
38
|
+
***************************************************************************** */function __rest(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}var MarkerUtils=function(){function e(){}return e.isAdvancedMarkerAvailable=function(e){return google.maps.marker&&!0===e.getMapCapabilities().isAdvancedMarkersAvailable},e.isAdvancedMarker=function(e){return google.maps.marker&&e instanceof google.maps.marker.AdvancedMarkerElement},e.setMap=function(e,t){this.isAdvancedMarker(e)?e.map=t:e.setMap(t)},e.getPosition=function(e){if(this.isAdvancedMarker(e)){if(e.position){if(e.position instanceof google.maps.LatLng)return e.position;if(e.position.lat&&e.position.lng)return new google.maps.LatLng(e.position.lat,e.position.lng)}return new google.maps.LatLng(null)}return e.getPosition()},e.getVisible=function(e){return!!this.isAdvancedMarker(e)||e.getVisible()},e}(),Cluster=function(){function e(e){var t=e.markers,n=e.position;this.markers=t,n&&(n instanceof google.maps.LatLng?this._position=n:this._position=new google.maps.LatLng(n))}var t=e.prototype;return t.push=function(e){this.markers.push(e)},t.delete=function(){this.marker&&(MarkerUtils.setMap(this.marker,null),this.marker=void 0),this.markers.length=0},_createClass(e,[{key:"bounds",get:function(){if(0!==this.markers.length||this._position){for(var e,t=new google.maps.LatLngBounds(this._position,this._position),n=_createForOfIteratorHelperLoose(this.markers);!(e=n()).done;){var r=e.value;t.extend(MarkerUtils.getPosition(r))}return t}}},{key:"position",get:function(){return this._position||this.bounds.getCenter()}},{key:"count",get:function(){return this.markers.filter((function(e){return MarkerUtils.getVisible(e)})).length}}]),e}(),AbstractAlgorithm=function(){function e(e){var t=e.maxZoom,n=void 0===t?16:t;this.maxZoom=n}return e.prototype.noop=function(e){var t=e.markers;return _noop(t)},e}(),_noop=function(e){return e.map((function(e){return new Cluster({position:MarkerUtils.getPosition(e),markers:[e]})}))},SuperClusterAlgorithm=function(e){function t(t){var n,r=t.maxZoom,o=t.radius,s=void 0===o?60:o,a=__rest(t,["maxZoom","radius"]);return(n=e.call(this,{maxZoom:r})||this).state={zoom:-1},n.superCluster=new Supercluster(Object.assign({maxZoom:n.maxZoom,radius:s},a)),n}_inheritsLoose(t,e);var n=t.prototype;return n.calculate=function(e){var t=!1,n={zoom:e.map.getZoom()};if(!fastDeepEqual(e.markers,this.markers)){t=!0,this.markers=[].concat(e.markers);var r=this.markers.map((function(e){var t=MarkerUtils.getPosition(e);return{type:"Feature",geometry:{type:"Point",coordinates:[t.lng(),t.lat()]},properties:{marker:e}}}));this.superCluster.load(r)}return t||(this.state.zoom<=this.maxZoom||n.zoom<=this.maxZoom)&&(t=!fastDeepEqual(this.state,n)),this.state=n,t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t}},n.cluster=function(e){var t=this,n=e.map;return this.superCluster.getClusters([-180,-90,180,90],Math.round(n.getZoom())).map((function(e){return t.transformCluster(e)}))},n.transformCluster=function(e){var t=e.geometry.coordinates,n=t[0],r=t[1],o=e.properties;if(o.cluster)return new Cluster({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(e){return e.properties.marker})),position:{lat:r,lng:n}});var s=o.marker;return new Cluster({markers:[s],position:MarkerUtils.getPosition(s)})},t}(AbstractAlgorithm),ClusterStats=function(e,t){this.markers={sum:e.length};var n=t.map((function(e){return e.count})),r=n.reduce((function(e,t){return e+t}),0);this.clusters={count:t.length,markers:{mean:r/t.length,sum:r,min:Math.min.apply(Math,n),max:Math.max.apply(Math,n)}}},DefaultRenderer=function(){function e(){}return e.prototype.render=function(e,t,n){var r=e.count,o=e.position,s='<svg fill="'+(r>Math.max(10,t.clusters.markers.mean)?"#ff0000":"#0000ff")+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">\n<circle cx="120" cy="120" opacity=".6" r="70" />\n<circle cx="120" cy="120" opacity=".3" r="90" />\n<circle cx="120" cy="120" opacity=".2" r="110" />\n<text x="50%" y="50%" style="fill:#fff" text-anchor="middle" font-size="50" dominant-baseline="middle" font-family="roboto,arial,sans-serif">'+r+"</text>\n</svg>",a="Cluster of "+r+" markers",i=Number(google.maps.Marker.MAX_ZINDEX)+r;if(MarkerUtils.isAdvancedMarkerAvailable(n)){var l=(new DOMParser).parseFromString(s,"image/svg+xml").documentElement;l.setAttribute("transform","translate(0 25)");var u={map:n,position:o,zIndex:i,title:a,content:l};return new google.maps.marker.AdvancedMarkerElement(u)}var c={position:o,zIndex:i,title:a,icon:{url:"data:image/svg+xml;base64,"+btoa(s),anchor:new google.maps.Point(25,25)}};return new google.maps.Marker(c)},e}();function extend(e,t){for(var n in t.prototype)e.prototype[n]=t.prototype[n]}var OverlayViewSafe=function e(){extend(e,google.maps.OverlayView)},MarkerClustererEvents;!function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click"}(MarkerClustererEvents||(MarkerClustererEvents={}));var defaultOnClusterClickHandler=function(e,t,n){n.fitBounds(t.bounds)},MarkerClusterer=function(e){function t(t){var n,r=t.map,o=t.markers,s=void 0===o?[]:o,a=t.algorithmOptions,i=void 0===a?{}:a,l=t.algorithm,u=void 0===l?new SuperClusterAlgorithm(i):l,c=t.renderer,p=void 0===c?new DefaultRenderer:c,d=t.onClusterClick,h=void 0===d?defaultOnClusterClickHandler:d;return(n=e.call(this)||this).markers=[].concat(s),n.clusters=[],n.algorithm=u,n.renderer=p,n.onClusterClick=h,r&&n.setMap(r),n}_inheritsLoose(t,e);var n=t.prototype;return n.addMarker=function(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())},n.addMarkers=function(e,t){var n=this;e.forEach((function(e){n.addMarker(e,!0)})),t||this.render()},n.removeMarker=function(e,t){var n=this.markers.indexOf(e);return-1!==n&&(MarkerUtils.setMap(e,null),this.markers.splice(n,1),t||this.render(),!0)},n.removeMarkers=function(e,t){var n=this,r=!1;return e.forEach((function(e){r=n.removeMarker(e,!0)||r})),r&&!t&&this.render(),r},n.clearMarkers=function(e){this.markers.length=0,e||this.render()},n.render=function(){var e=this.getMap();if(e instanceof google.maps.Map&&e.getProjection()){google.maps.event.trigger(this,MarkerClustererEvents.CLUSTERING_BEGIN,this);var t=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()}),n=t.clusters,r=t.changed;if(r||null==r){for(var o,s=new Set,a=_createForOfIteratorHelperLoose(n);!(o=a()).done;){var i=o.value;1==i.markers.length&&s.add(i.markers[0])}for(var l,u=[],c=_createForOfIteratorHelperLoose(this.clusters);!(l=c()).done;){var p=l.value;null!=p.marker&&(1==p.markers.length?s.has(p.marker)||MarkerUtils.setMap(p.marker,null):u.push(p.marker))}this.clusters=n,this.renderClusters(),requestAnimationFrame((function(){return u.forEach((function(e){return MarkerUtils.setMap(e,null)}))}))}google.maps.event.trigger(this,MarkerClustererEvents.CLUSTERING_END,this)}},n.onAdd=function(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()},n.onRemove=function(){google.maps.event.removeListener(this.idleListener),this.reset()},n.reset=function(){this.markers.forEach((function(e){return MarkerUtils.setMap(e,null)})),this.clusters.forEach((function(e){return e.delete()})),this.clusters=[]},n.renderClusters=function(){var e=this,t=new ClusterStats(this.markers,this.clusters),n=this.getMap();this.clusters.forEach((function(r){1===r.markers.length?r.marker=r.markers[0]:(r.marker=e.renderer.render(r,t,n),r.markers.forEach((function(e){return MarkerUtils.setMap(e,null)})),e.onClusterClick&&r.marker.addListener("click",(function(t){google.maps.event.trigger(e,MarkerClustererEvents.CLUSTER_CLICK,r),e.onClusterClick(t,r,n)}))),MarkerUtils.setMap(r.marker,n)}))},t}(OverlayViewSafe),_excluded$9=["map"],props$6={algorithm:{type:Object,default:new SuperClusterAlgorithm({}),noBind:!0},renderer:{type:Object,default:new DefaultRenderer,noBind:!0}},events$5=["clusteringbegin","clusteringend"],script$1=buildComponent({mappedProps:props$6,events:events$5,name:"cluster",ctr:function(){if(void 0===MarkerClusterer){throw console.error("MarkerClusterer is not installed!"),new Error("MarkerClusterer is not installed!")}return MarkerClusterer},ctrArgs:function(e){return[_extends({map:e.map},_objectWithoutPropertiesLoose(e,_excluded$9))]},afterCreate:function(e){var t=function(){var t=e.getMarkers();e.clearMarkers(),e.addMarkers(t)};for(var n in props$6)props$6[n].twoWay&&this.$on(n.toLowerCase()+"_changed",t)},updated:function(){this.$clusterObject&&this.$clusterObject.render()},beforeUnmount:function(){var e=this;this.$children&&this.$children.length&&this.$children.forEach((function(t){t.$clusterObject===e.$clusterObject&&(t.$clusterObject=null)})),this.$clusterObject&&this.$clusterObject.clearMarkers()}});function render$1(e,t,n,r,o,s){return vue.openBlock(),vue.createElementBlock("div",null,[vue.renderSlot(e.$slots,"default")])}script$1.render=render$1,script$1.__file="node_modules/vue-google-maps-community-fork/src/components/cluster.vue";var props$7={options:{type:Object,required:!1,default:function(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}},events$6=["domready","click","closeclick","content_changed"],script$2=buildComponent({mappedProps:props$7,events:events$6,name:"infoWindow",ctr:function(){return google.maps.InfoWindow},props:{opened:{type:Boolean,default:!0}},inject:{$markerPromise:{default:null}},mounted:function(){var e=this.$refs.infoWindow;e.parentNode.removeChild(e)},beforeCreate:function(e){var t=this;if(e.content=this.$refs.infoWindow,this.$markerPromise)return delete e.position,this.$markerPromise.then((function(e){return t.$markerObject=e,e}))},emits:["closeclick"],methods:{_openInfoWindow:function(){this.$infoWindowObject.close(),this.opened&&this.$infoWindowObject.open(this.$map,this.$markerObject)}},afterCreate:function(){var e=this;this._openInfoWindow(),this.$infoWindowObject.addListener("closeclick",(function(){e.$emit("closeclick"),e.$infoWindowObject.open(e.$map,e.$markerObject)})),this.$watch("opened",(function(){e._openInfoWindow()}))}}),_hoisted_1={ref:"infoWindow"};function render$2(e,t,n,r,o,s){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1,[vue.renderSlot(e.$slots,"default")],512)}script$2.render=render$2,script$2.__file="node_modules/vue-google-maps-community-fork/src/components/infoWindow.vue";var mountableMixin={props:["resizeBus"],data:function(){return{_actualResizeBus:null}},created:function(){void 0===this.resizeBus?this.$data._actualResizeBus=this.$gmapDefaultResizeBus:this.$data._actualResizeBus=this.resizeBus},methods:{_resizeCallback:function(){this.resize()},isFunction:function(e){return e&&"[object Function]"==={}.toString.call(e)},_delayedResizeCallback:function(){var e=this;this.$nextTick((function(){return e._resizeCallback()}))}},watch:{resizeBus:function(e){this.$data._actualResizeBus=e},"$data._actualResizeBus":function(e,t){t&&t.$off("resize",this._delayedResizeCallback)}},unmounted:function(){this.$data._actualResizeBus&&this.isFunction(this.$data._actualResizeBus.$off)&&this.$data._actualResizeBus.$off("resize",this._delayedResizeCallback)}};function TwoWayBindingWrapper(e){var t=0;e((function(){t+=1}),(function(){t=Math.max(0,t-1)}),(function(){return 0===t}))}var props$8={center:{default:{lat:0,lng:0},twoWay:!0,type:Object,noBind:!0},zoom:{required:!1,twoWay:!0,type:Number,noBind:!0},maxZoom:{required:!1,twoWay:!0,type:Number,noBind:!0},minZoom:{required:!1,twoWay:!0,type:Number,noBind:!0},heading:{type:Number,twoWay:!0},mapTypeId:{twoWay:!0,type:String},tilt:{twoWay:!0,type:Number},options:{type:Object,default:function(){return{}}}},events$7=["bounds_changed","click","dblclick","drag","dragend","dragstart","idle","mousemove","mouseout","mouseover","resize","rightclick","tilesloaded"],linkedMethods=["panBy","panTo","panToBounds","fitBounds"].reduce((function(e,t){return e[t]=function(){this.$mapObject&&this.$mapObject[t].apply(this.$mapObject,arguments)},e}),{}),customMethods={resize:function(){this.$mapObject&&google.maps.event.trigger(this.$mapObject,"resize")},resizePreserveCenter:function(){if(this.$mapObject){var e=this.$mapObject.getCenter();google.maps.event.trigger(this.$mapObject,"resize"),this.$mapObject.setCenter(e)}},_resizeCallback:function(){this.resizePreserveCenter()}},script$3={mixins:[mountableMixin],props:mappedPropsToVueProps(_extends({},props$8,events$7.reduce((function(e,t){var n;return _extends({},e,((n={})[("on"+t.charAt(0).toUpperCase()+t.slice(1)).replace(/[-_]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))]=Function,n))}),{}))),inheritAttrs:!1,provide:function(){var e=this;return this.$mapPromise=new Promise((function(t,n){e.$mapPromiseDeferred={resolve:t,reject:n}})),{$mapPromise:this.$mapPromise}},emits:["center_changed","zoom_changed","bounds_changed"],computed:{finalLat:function(){return this.center&&"function"==typeof this.center.lat?this.center.lat():this.center.lat},finalLng:function(){return this.center&&"function"==typeof this.center.lng?this.center.lng():this.center.lng},finalLatLng:function(){return{lat:this.finalLat,lng:this.finalLng}}},watch:{zoom:function(e){this.$mapObject&&this.$mapObject.setZoom(e)}},mounted:function(){var e=this;return this.$gmapApiPromiseLazy().then((function(){var t=e.$refs["vue-map"],n=_extends({},e.options,getPropsValues(e,props$8));return delete n.options,e.$mapObject=new google.maps.Map(t,n),bindProps(e,e.$mapObject,props$8),bindEvents(e,e.$mapObject,events$7),TwoWayBindingWrapper((function(t,n,r){e.$mapObject.addListener("center_changed",(function(){r()&&e.$emit("center_changed",e.$mapObject.getCenter()),n()}));WatchPrimitiveProperties(e,["finalLat","finalLng"],(function(){t(),e.$mapObject.setCenter(e.finalLatLng)}))})),e.$mapObject.addListener("zoom_changed",(function(){e.$emit("zoom_changed",e.$mapObject.getZoom())})),e.$mapObject.addListener("bounds_changed",(function(){e.$emit("bounds_changed",e.$mapObject.getBounds())})),e.$mapPromiseDeferred.resolve(e.$mapObject),e.$mapObject})).catch((function(e){throw e}))},methods:_extends({},customMethods,linkedMethods)},_hoisted_1$1={class:"vue-map-hidden"};function render$3(e,t,n,r,o,s){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vue-map-container",e.$attrs.class])},[vue.createElementVNode("div",{ref:"vue-map",class:"vue-map",style:vue.normalizeStyle(e.$attrs.style?e.$attrs.style:"")},null,4),vue.createElementVNode("div",_hoisted_1$1,[vue.renderSlot(e.$slots,"default")]),vue.renderSlot(e.$slots,"visible")],2)}var css_248z$2="\n.vue-map {\n width: 100%;\n height: 100%;\n min-height: 2rem;\n}\n";styleInject(css_248z$2),script$3.render=render$3,script$3.__file="node_modules/vue-google-maps-community-fork/src/components/map.vue";var props$9={options:{type:Object,twoWay:!1,default:function(){}},data:{type:Array,twoWay:!0}},events$8=[],Heatmap=buildComponent({mappedProps:props$9,name:"heatmap",ctr:function(){return google.maps.visualization.HeatmapLayer},events:events$8}),downArrowSimulator=function(e){var t=e.addEventListener?e.addEventListener:e.attachEvent;function n(n,r){if("keydown"===n){var o=r;r=function(t){var n=document.getElementsByClassName("pac-item-selected").length>0;if(13===t.which&&!n){var r=document.createEvent("Event");r.keyCode=40,r.which=40,o.apply(e,[r])}o.apply(e,[t])}}t.apply(e,[n,r])}e.addEventListener=n,e.attachEvent=n},mappedProps={bounds:{type:Object},componentRestrictions:{type:Object,noBind:!0},types:{type:Array,default:function(){return[]}}},props$a={selectFirstOnEnter:{required:!1,type:Boolean,default:!1},options:{type:Object}},script$4={mounted:function(){var e=this,t=this;this.$gmapApiPromiseLazy().then((function(){var n=t.$refs.input;if(t.$slots.input){var r=t.$slots.input()[0].props.ref,o=t.$slots.input()[0].ref.i.ctx.$refs[r];o&&(n=o.$el.getElementsByTagName("input")[0])}if(e.selectFirstOnEnter&&downArrowSimulator(n),"function"!=typeof google.maps.places.Autocomplete)throw new Error("google.maps.places.Autocomplete is undefined. Did you add 'places' to libraries when loading Google Maps?");var s=_extends({},getPropsValues(e,mappedProps),e.options);e.$autocomplete=new google.maps.places.Autocomplete(n,s),bindProps(e,e.$autocomplete,mappedProps),e.$watch("componentRestrictions",(function(t){void 0!==t&&e.$autocomplete.setComponentRestrictions(t)})),e.$autocomplete.addListener("place_changed",(function(){e.$emit("place_changed",e.$autocomplete.getPlace())}))}))},props:_extends({},mappedPropsToVueProps(mappedProps),props$a)};function render$4(e,t,n,r,o,s){return e.$slots.input?vue.renderSlot(e.$slots,"input",vue.normalizeProps(vue.mergeProps({key:0},e.$attrs))):e.$slots.input?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createElementBlock("input",vue.mergeProps({key:1,ref:"input"},e.$attrs,vue.toHandlers(e.$attrs,!0)),null,16))}script$4.render=render$4,script$4.__file="node_modules/vue-google-maps-community-fork/src/components/autocomplete.vue";var GMapApi=null;function install(e,t){t=_extends({installComponents:!0,autobindAllEvents:!1},t),GMapApi=vue.createApp({data:function(){return{gmapApi:null}}});var n=vue.createApp(),r=makeGMapApiPromiseLazy(t);e.mixin({created:function(){this.$gmapDefaultResizeBus=n,this.$gmapOptions=t,this.$gmapApiPromiseLazy=r}}),e.$gmapDefaultResizeBus=n,e.$gmapApiPromiseLazy=r,t.installComponents&&(e.component("GMapMap",script$3),e.component("GMapMarker",script),e.component("GMapInfoWindow",script$2),e.component("GMapCluster",script$1),e.component("GMapPolyline",Polyline),e.component("GMapPolygon",Polygon),e.component("GMapCircle",Circle),e.component("GMapRectangle",Rectangle),e.component("GMapAutocomplete",script$4),e.component("GMapHeatmap",Heatmap))}function makeGMapApiPromiseLazy(e){function t(){return GMapApi.gmapApi={},window.google}if(e.load)return lazy((function(){return Env.isServer()?new Promise((function(){})).then(t):new Promise((function(t,n){try{window.vueGoogleMapsInit=t,loadGMapApi(e.load)}catch(e){n(e)}})).then(t)}));var n=new Promise((function(e){Env.isServer()||(window.vueGoogleMapsInit=e)})).then(t);return lazy((function(){return n}))}for(var BASE32_CODES="0123456789bcdefghjkmnpqrstuvwxyz",BASE32_CODES_DICT={},i$4=0;i$4<BASE32_CODES.length;i$4++)BASE32_CODES_DICT[BASE32_CODES.charAt(i$4)]=i$4;var ENCODE_AUTO="auto",MIN_LAT=-90,MAX_LAT=90,MIN_LON=-180,MAX_LON=180,SIGFIG_HASH_LENGTH=[0,5,7,8,11,12,13,15,16,17,18],encode$1=function(e,t,n){if(n===ENCODE_AUTO){if("number"==typeof e||"number"==typeof t)throw new Error("string notation required for auto precision.");var r=e.split(".")[1].length,o=t.split(".")[1].length,s=Math.max(r,o);n=SIGFIG_HASH_LENGTH[s]}else void 0===n&&(n=9);for(var a,i=[],l=0,u=0,c=0,p=MAX_LAT,d=MIN_LAT,h=MAX_LON,f=MIN_LON;i.length<n;)if(u%2==0?t>(a=(h+f)/2)?(c=1+(c<<1),f=a):(c=0+(c<<1),h=a):e>(a=(p+d)/2)?(c=1+(c<<1),d=a):(c=0+(c<<1),p=a),u++,5===++l){var m=BASE32_CODES[c];i.push(m),l=0,c=0}return i.join("")},encode_int=function(e,t,n){n=n||52;for(var r,o=0,s=MAX_LAT,a=MIN_LAT,i=MAX_LON,l=MIN_LON,u=0;o<n;)u*=2,o%2==0?t>(r=(i+l)/2)?(u+=1,l=r):i=r:e>(r=(s+a)/2)?(u+=1,a=r):s=r,o++;return u},decode_bbox=function(e){for(var t,n=!0,r=MAX_LAT,o=MIN_LAT,s=MAX_LON,a=MIN_LON,i=0,l=0,u=e.length;l<u;l++){var c=e[l].toLowerCase();i=BASE32_CODES_DICT[c];for(var p=4;p>=0;p--){var d=i>>p&1;n?(t=(s+a)/2,1===d?a=t:s=t):(t=(r+o)/2,1===d?o=t:r=t),n=!n}}return[o,a,r,s]},decode_bbox_int=function(e,t){for(var n=MAX_LAT,r=MIN_LAT,o=MAX_LON,s=MIN_LON,a=0,i=(t=t||52)/2,l=0;l<i;l++)a=get_bit(e,2*(i-l)-1),0===get_bit(e,2*(i-l)-2)?n=(n+r)/2:r=(n+r)/2,0===a?o=(o+s)/2:s=(o+s)/2;return[r,s,n,o]};function get_bit(e,t){return e/Math.pow(2,t)&1}var decode$1=function(e){var t=decode_bbox(e),n=(t[0]+t[2])/2,r=(t[1]+t[3])/2;return{latitude:n,longitude:r,error:{latitude:t[2]-n,longitude:t[3]-r}}},decode_int=function(e,t){var n=decode_bbox_int(e,t),r=(n[0]+n[2])/2,o=(n[1]+n[3])/2;return{latitude:r,longitude:o,error:{latitude:n[2]-r,longitude:n[3]-o}}},neighbor=function(e,t){var n=decode$1(e),r=n.latitude+t[0]*n.error.latitude*2,o=n.longitude+t[1]*n.error.longitude*2;return o=ensure_valid_lon(o),r=ensure_valid_lat(r),encode$1(r,o,e.length)},neighbor_int=function(e,t,n){var r=decode_int(e,n=n||52),o=r.latitude+t[0]*r.error.latitude*2,s=r.longitude+t[1]*r.error.longitude*2;return s=ensure_valid_lon(s),o=ensure_valid_lat(o),encode_int(o,s,n)},neighbors=function(e){var t,n,r=e.length,o=decode$1(e),s=o.latitude,a=o.longitude,i=2*o.error.latitude,l=2*o.error.longitude;function u(e,o){return t=s+e*i,n=ensure_valid_lon(n=a+o*l),t=ensure_valid_lat(t),encode$1(t,n,r)}return[u(1,0),u(1,1),u(0,1),u(-1,1),u(-1,0),u(-1,-1),u(0,-1),u(1,-1)]},neighbors_int=function(e,t){var n,r,o=decode_int(e,t=t||52),s=o.latitude,a=o.longitude,i=2*o.error.latitude,l=2*o.error.longitude;function u(e,o){return n=s+e*i,r=ensure_valid_lon(r=a+o*l),n=ensure_valid_lat(n),encode_int(n,r,t)}return[u(1,0),u(1,1),u(0,1),u(-1,1),u(-1,0),u(-1,-1),u(0,-1),u(1,-1)]},bboxes=function(e,t,n,r,o){for(var s=encode$1(e,t,o=o||9),a=encode$1(n,r,o),i=decode$1(s),l=2*i.error.latitude,u=2*i.error.longitude,c=decode_bbox(s),p=decode_bbox(a),d=Math.round((p[0]-c[0])/l),h=Math.round((p[1]-c[1])/u),f=[],m=0;m<=d;m++)for(var g=0;g<=h;g++)f.push(neighbor(s,[m,g]));return f},bboxes_int=function(e,t,n,r,o){for(var s=encode_int(e,t,o=o||52),a=encode_int(n,r,o),i=decode_int(s,o),l=2*i.error.latitude,u=2*i.error.longitude,c=decode_bbox_int(s,o),p=decode_bbox_int(a,o),d=Math.round((p[0]-c[0])/l),h=Math.round((p[1]-c[1])/u),f=[],m=0;m<=d;m++)for(var g=0;g<=h;g++)f.push(neighbor_int(s,[m,g],o));return f};function ensure_valid_lon(e){return e>MAX_LON?MIN_LON+e%MAX_LON:e<MIN_LON?MAX_LON+e%MAX_LON:e}function ensure_valid_lat(e){return e>MAX_LAT?MAX_LAT:e<MIN_LAT?MIN_LAT:e}var geohash={ENCODE_AUTO:ENCODE_AUTO,encode:encode$1,encode_uint64:encode_int,encode_int:encode_int,decode:decode$1,decode_int:decode_int,decode_uint64:decode_int,decode_bbox:decode_bbox,decode_bbox_uint64:decode_bbox_int,decode_bbox_int:decode_bbox_int,neighbor:neighbor,neighbor_int:neighbor_int,neighbors:neighbors,neighbors_int:neighbors_int,bboxes:bboxes,bboxes_int:bboxes_int},main=geohash,setStreaming=lib_5.setStreaming,setQueryOptions$c=lib_5.setQueryOptions,updateQuery$c=lib_5.updateQuery,loadMore$1=lib_5.loadMore,setValue$3=lib_5.setValue,updateComponentProps$3=lib_5.updateComponentProps,setDefaultQuery$7=lib_5.setDefaultQuery,recordResultClick$1=lib_5.recordResultClick,setMapData=lib_5.setMapData,isEqual$g=lib_8.isEqual,getQueryOptions$5=lib_8.getQueryOptions,getClassName$g=lib_8.getClassName,parseHits$2=lib_8.parseHits,getOptionsFromQuery$4=lib_8.getOptionsFromQuery,getResultStats$3=lib_8.getResultStats,MAP_CENTER={lat:37.7749,lng:122.4194},style={width:"100%",height:"100vh",position:"relative"};function getPrecision(e){if(isNaN(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function withDistinctLat(e,t){var n=getPrecision(e.lat),r=n>=6?4:n-2,o=1/Math.pow(10,r)*t;return _extends({},e,{lat:parseFloat((e.lat+o).toFixed(n))})}function getLocationObject(e){switch(Array.isArray(e)?"array":typeof e){case"string":if(e.indexOf(",")>-1){var t=e.split(",");return{lat:parseFloat(t[0]),lng:parseFloat(t[1])}}var n=main.decode(e);return{lat:n.latitude,lng:n.longitude};case"array":return{lat:e[1],lng:e[0]};default:return e}}var ReactiveMap={name:"ReactiveMap",props:{className:types.string,componentId:types.stringRequired,compoundClause:types.compoundClause,dataField:types.stringRequired,react:types.react,size:types.number,sortBy:types.sortBy,URLParams:Q.bool,autoCenter:Q.bool,getMapRef:Q.func.isRequired,center:types.location,defaultCenter:types.location,defaultPin:types.string,defaultZoom:Q.number.def(13),defaultQuery:types.func,innerClass:types.style,loader:types.title,render:types.func,renderItem:types.func,renderError:types.title,pages:Q.number.def(5),currentPage:Q.number.def(0),pagination:Q.bool,showMarkers:Q.bool,defaultSearchAsMove:Q.bool,showSearchAsMove:Q.bool,defaultRadius:types.number,unit:types.string,autoClosePopover:Q.bool,renderMap:Q.func.isRequired,renderPopover:Q.func,calculateMarkers:Q.func,searchAsMoveLabel:Q.string.def("Search as I move the map")},preserveCenter:!1,data:function(){var e=this.$props,t=0;return e.currentPage&&(t=Math.max(e.currentPage-1,0)),this.__state={from:t*e.size,zoom:e.defaultZoom,searchAsMove:e.defaultSearchAsMove,currentPageState:t,mapBoxBounds:null,markersData:null},this.__state},computed:{totalPages:function(){return Math.ceil(this.total/this.$props.size)||0},stats:function(){var e=this.getAllData().resultsToRender;return _extends({},getResultStats$3(this),{currentPage:this.currentPageState,displayedResults:e.length})},hasCustomRender:function(){return hasCustomRenderer(this)}},watch:{defaultZoom:function(e){this.zoom=e},currentPage:function(e,t){t!==e&&e>0&&e<=this.totalPages&&this.setPage(e-1)},defaultQuery:function(e,t){if(!isQueryIdentical(e,t,null,this.$props)){var n=getQueryOptions$5(this.$props);n.from=0,this.$defaultQuery=e(null,this.$props);var r=this.$defaultQuery||{},o=r.sort,s=r.query;o&&(n.sort=this.$defaultQuery.sort),getOptionsFromQuery$4(this.$defaultQuery)&&(n=_extends({},n,getOptionsFromQuery$4(this.$defaultQuery))),this.setQueryOptions(this.$props.componentId,n,!1);this.setDefaultQueryForRSAPI();var a={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,s,!0,!0,a),this.currentPageState=0,this.from=0}},promotedResults:function(e,t){isEqual$g(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){isEqual$g(e,t)||this.$emit("data",this.getData())},time:function(e,t){isEqual$g(e,t)||this.$emit("data",this.getData())},hits:function(e,t){this.$emit("data",this.getData()),this.pagination&&this.isLoading&&(t||e)&&this.$emit("page-change",this.currentPageState+1,this.totalPages)},rawData:function(e,t){var n=this;if(!isEqual$g(e,t)){var r=this.promotedResults,o=this.hits,s=parseHits$2(o)||[],a=parseHits$2(r)||[],i=s;if(a.length){var l=a.map((function(e){return e._id})).filter(Boolean);l&&(i=i.filter((function(e){return!l.includes(e._id)}))),i=[].concat(a,i)}i=i.filter((function(e){return!!e[n.dataField]})).map((function(e){var t;return _extends({},e,((t={})[n.dataField]=getLocationObject(e[n.dataField]),t))})),this.filteredResults=this.addNoise(i),this.calculateMarkers&&(this.markersData=this.calculateMarkers({data:this.filteredResults,rawData:this.rawData})||[]),this.$emit("data",this.getData())}},center:function(e,t){if(!isEqual$g(e,t)){var n=!!this.center,r=this.getGeoQuery(this.$props);this.setDefaultQueryForRSAPI();var o={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,r,n,!0,o)}}},methods:{parseLocation:function(e){return Array.isArray(e)?{lat:Number(e[0]),lng:Number(e[1])}:{lat:e?Number(e.lat):this.defaultCenter.lat,lng:e?Number(void 0===e.lon?e.lng:e.lon):this.defaultCenter.lng}},getDefaultCenter:function(){return this.defaultCenter?this.parseLocation(this.defaultCenter):this.parseLocation(MAP_CENTER)},addNoise:function(e){var t=this,n={},r=[];return e.forEach((function(e){var o=_extends({},e),s=t.parseLocation(e[t.dataField]),a=JSON.stringify(s),i=n[a]||0;o[t.dataField]=i?withDistinctLat(s,i):s,r=[].concat(r,[o]),n[a]=i+1})),r},getPosition:function(e){return e?this.parseLocation(e[this.dataField]):null},getHitsCenter:function(e){var t=this,n=e.map((function(e){return e[t.dataField]}));if(n.length){var r=n.length,o=0,s=0,a=0;n.forEach((function(e){if(e){var t,n,r=getLocationObject(e);t=r.lat*Math.PI/180,n=(void 0!==r.lng?r.lng:r.lon)*Math.PI/180;var i=Math.cos(t)*Math.cos(n),l=Math.cos(t)*Math.sin(n),u=Math.sin(t);o+=i,s+=l,a+=u}})),o/=r,s/=r,a/=r;var i=Math.atan2(s,o),l=Math.sqrt(o*o+s*s);return{lat:180*Math.atan2(a,l)/Math.PI,lng:180*i/Math.PI}}return!1},getCenter:function(e){var t=this;if(this.center)return this.parseLocation(this.center);var n=this.getMapRef();if(n&&"function"==typeof n.getCenter&&this.$options.preserveCenter){var r=n.getCenter();return setTimeout((function(){t.$options.preserveCenter=!1}),100),this.parseLocation({lat:r.lat(),lng:r.lng()})}return e&&e.length?this.autoCenter?this.getHitsCenter(e)||this.getDefaultCenter():e[0]&&e[0][this.dataField]?this.getPosition(e[0]):this.getDefaultCenter():this.getDefaultCenter()},handleZoomChange:function(e){if(e){var t=this.zoom;this.searchAsMove?(this.zoom=e,this.$options.preserveCenter=!0,this.setGeoQuery(!0)):this.zoom=e,t!==e&&this.$emit("zoom-changed",e)}},handleOnDragEnd:function(){this.searchAsMove&&(this.$options.preserveCenter=!0,this.setGeoQuery(!0)),this.$emit("drag-end")},handlePreserveCenter:function(e){this.$options.preserveCenter=e},handleOnIdle:function(){if(this.hits&&this.hits.length&&this.searchAsMove){var e=!!this.center;this.setGeoQuery(e)}this.$emit("idle")},setGeoQuery:function(e){if(void 0===e&&(e=!1),e||!this.skipBoundingBox&&!this.mapBoxBounds){this.$defaultQuery=this.getGeoQuery();var t=!!this.center,n=this.searchAsMove,r={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,this.$defaultQuery,t,n,r)}this.skipBoundingBox=!1},getMapParams:function(){var e=this.getData().data,t=this.showMarkers,n=this.defaultPin,r=this.renderPopover,o=this.autoClosePopover,s=this.renderItem;return{resultsToRender:e,center:this.getCenter(e),getPosition:this.getPosition,zoom:this.zoom,renderItem:s,showMarkers:t,defaultPin:n,renderPopover:r,autoClosePopover:o,renderSearchAsMove:this.renderSearchAsMove,handlePreserveCenter:this.handlePreserveCenter,preserveCenter:this.$options.preserveCenter,handleOnDragEnd:this.handleOnDragEnd,handleOnIdle:this.handleOnIdle,handleZoomChange:this.handleZoomChange}},getAllData:function(){var e=this.size,t=this.promotedResults,n=this.customData,r=this.currentPage,o=this.hits,s=parseHits$2(o)||[],a=parseHits$2(t)||[],i=r*e,l=this.filteredResults||[];return this.markersData&&(l=this.markersData),{results:s,resultsToRender:l,customData:n||{},promotedResults:a,loadMore:this.loadMore,base:i,triggerClickAnalytics:this.triggerClickAnalytics}},getData:function(){var e=this.getAllData(),t=e.promotedResults,n=e.aggregationData,r=e.customData,o=e.resultsToRender;return{data:this.withClickIds(o),aggregationData:this.withClickIds(n||[]),promotedData:this.withClickIds(t),rawData:this.rawData,resultStats:this.stats,customData:r}},getComponent:function(){var e=_extends({error:this.error,loading:this.isLoading,loadMore:this.loadMore,triggerClickAnalytics:this.triggerClickAnalytics,setPage:this.setPage},this.getData());return getComponent(e,this)},setPage:function(e){if(e!==this.currentPageState){this.$emit("pageClick",e+1),this.$emit("page-click",e+1);var t=this.size*e,n=getQueryOptions$5(this.$props);n.from=this.$data.from,this.from=t,this.currentPageState=e,this.loadMoreAction(this.componentId,_extends({},n,{from:t}),!1),this.URLParams&&this.setPageURL(this.componentId,e+1,this.componentId,!1,!0)}},setDefaultQueryForRSAPI:function(){if(this.defaultQuery&&"function"==typeof this.defaultQuery){var e=this.defaultQuery();this.setDefaultQuery(this.componentId,e)}},getArrPosition:function(e){return{lat:e.lat,lon:e.lon||e.lng}},getGeoQuery:function(e){void 0===e&&(e=this.$props),this.$defaultQuery=e.defaultQuery?e.defaultQuery():null;var t,n,r,o=this.getMapRef(),s=!(!o||"function"!=typeof o.getBounds)&&o.getBounds();if(s){var a;t=s.getNorthEast().lat(),n=s.getSouthWest().lat(),r=s.getNorthEast().lng();var i={top_left:[s.getSouthWest().lng(),t],bottom_right:[r,n]};this.mapBoxBounds=i;var l={geo_bounding_box:(a={},a[this.dataField]=i,a)};if(this.$defaultQuery){var u=(this.$defaultQuery||{}).query;if(u)return{must:[l,u]}}return l}return this.$defaultQuery?this.$defaultQuery.query:null},getGeoDistanceQuery:function(){var e,t=this.center||this.defaultCenter;return t&&this.defaultRadius?(this.skipBoundingBox=!0,{geo_distance:(e={distance:""+this.defaultRadius+this.unit},e[this.dataField]=this.getArrPosition(t),e)}):null},loadMore:function(){if(this.hits&&!this.pagination&&this.total!==this.hits.length){var e=this.from+this.size,t=getQueryOptions$5(this.$props);this.from=e,this.loadMoreAction(this.componentId,_extends({},t,{from:e}),!0)}},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.getData().data.find((function(t){return t._click_id===e}));r&&r._id&&(n=r._id)}this.recordResultClick(e,n)},withClickIds:function(e){var t=this.getAllData().base;return e.map((function(e,n){return _extends({},e,{_click_id:t+n})}))},toggleSearchAsMove:function(){this.searchAsMove=!this.searchAsMove,this.$emit("search-as-move",this.searchAsMove)},renderErrorComponent:function(){var e=this.$slots.renderError||this.$props.renderError;return e&&this.error&&!this.isLoading?isFunction(e)?e(this.error):e:null},renderSearchAsMove:function(){return this.showSearchAsMove?vue.createVNode("div",{style:{position:"absolute",bottom:"30px",left:"10px",width:"240px",backgroundColor:"#fff",padding:"8px 10px",boxShadow:"rgba(0,0,0,0.3) 0px 1px 4px -1px",borderRadius:2,zIndex:1e4},className:getClassName$g(this.innerClass,"checkboxContainer")||null},[vue.createVNode(Checkbox,{type:"checkbox",class:getClassName$g(this.$props.innerClass,"checkbox"),id:this.$props.componentId+"-searchasmove",onClick:this.toggleSearchAsMove,checked:this.searchAsMove,show:!0},null),vue.createVNode("label",{className:getClassName$g(this.innerClass,"label")||null,for:this.$props.componentId+"-searchasmove"},[this.searchAsMoveLabel])]):null},renderPagination:function(){return vue.createVNode(Pagination,{pages:this.pages,totalPages:this.totalPages,currentPage:this.currentPageState,setPage:this.setPage,innerClass:this.innerClass},null)}},created:function(){this.defaultPage>=0&&(this.currentPageState=this.defaultPage,this.from=this.currentPageState*this.$props.size),this.internalComponent=this.$props.componentId+"__internal",this.updateComponentProps(this.componentId,{from:this.from},constants_1$1.reactiveMap),this.updateComponentProps(this.internalComponent,{from:this.from},constants_1$1.reactiveMap)},mounted:function(){this.defaultPage<0&&this.currentPage>0&&this.$props.URLParams&&this.setPageURL(this.$props.componentId,this.currentPage,this.$props.componentId,!1,!0);var e,t=getQueryOptions$5(this.$props);(t.from=this.$data.from,this.$props.sortBy)&&(t.sort=[(e={},e[this.$props.dataField]={order:this.$props.sortBy},e)]);if(this.$defaultQuery=null,this.$props.defaultQuery){this.$defaultQuery=this.$props.defaultQuery()||{},t=_extends({},t,getOptionsFromQuery$4(this.$defaultQuery)),this.$defaultQuery.sort&&(t.sort=this.$defaultQuery.sort);this.setDefaultQueryForRSAPI();var n={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,this.$defaultQuery.query,!0,!1,n)}else{var r=this.getGeoDistanceQuery();if(r){var o=!!this.center,s=this.searchAsMove,a=this.center||this.defaultCenter,i=this.getArrPosition(a),l={distance:this.defaultRadius,coordinates:i.lat+", "+i.lon};this.setMapData(this.componentId,r,o,s,l)}}this.setQueryOptions(this.componentId,t,!(this.$defaultQuery&&this.$defaultQuery.query))},render:function(){var e=this.$slots.loader||this.$props.loader;return vue.createVNode("div",{style:_extends({},style,this.$props.style),class:this.$props.className},[this.renderErrorComponent(),this.isLoading&&e,this.hasCustomRender?this.getComponent():null,this.renderMap(this.getMapParams()),this.pagination?this.renderPagination():null])}},mapStateToProps$j=function(e,t){return{defaultPage:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value-1||-1,error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],hits:e.hits[t.componentId]&&e.hits[t.componentId].hits,promotedResults:e.promotedResults[t.componentId],customData:e.customData[t.componentId],total:e.hits[t.componentId]&&e.hits[t.componentId].total,time:e.hits[t.componentId]&&e.hits[t.componentId].time,rawData:e.rawData[t.componentId],hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden}},mapDispatchToProps$4={loadMoreAction:loadMore$1,setPageURL:setValue$3,setQueryOptions:setQueryOptions$c,setStreaming:setStreaming,updateQuery:updateQuery$c,updateComponentProps:updateComponentProps$3,setDefaultQuery:setDefaultQuery$7,recordResultClick:recordResultClick$1,setMapData:setMapData},RMConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$j,mapDispatchToProps$4)(ReactiveMap),{componentType:constants_1$1.reactiveMap,internalComponent:!0}));ReactiveMap.install=function(e){e.component(ReactiveMap.name,RMConnected)},ReactiveMap.componentType=constants_1$1.reactiveMap;var infoWindowMappedProps={content:{type:Object,twoWay:!0},options:{type:Object,required:!1,default:function(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}};function bindEvents$1(e,t,n){n.forEach((function(n){(e.$gmapOptions.autoBindAllEvents||e.$attrs[n])&&t.addListener(n,(function(t){e.$emit(n,t)}))}))}function capitalizeFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)}function getPropsValues$1(e,t){return Object.keys(t).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function watchPrimitiveProperties(e,t,n,r){void 0===r&&(r=!1);var o=!1;function s(){o||(o=!0,e.$nextTick((function(){o=!1,n()})))}t.forEach((function(t){e.$watch(t,s,{immediate:r})}))}function bindProps$1(e,t,n){Object.keys(n).forEach((function(r){var o=n[r],s=o.twoWay,a=o.type,i=o.trackProperties;if(!o.noBind){var l="set"+capitalizeFirstLetter(r),u="get"+capitalizeFirstLetter(r),c=r.toLowerCase()+"_changed",p=e[r];if(void 0===t[l])throw new Error(l+" is not a method of (the Maps object corresponding to) "+e.$options._componentTag);a===Object&&i?watchPrimitiveProperties(e,i.map((function(e){return r+"."+e})),(function(){t[l](e[r])}),void 0!==e[r]):e.$watch(r,(function(){var n=e[r];t[l](n)}),{immediate:void 0!==p,deep:a===Object}),s&&(e.$gmapOptions.autoBindAllEvents||e.$attrs[c])&&t.addListener(c,(function(){e.$emit(c,t[u]())}))}}))}var _excluded$a=["options","position"],InfoWindowClusterManager={name:"InfoWindowClusterManager",inject:{$markerPromise:{default:null},$mapPromise:{}},provide:function(){var e=this,t=["domready","closeclick","content_changed"],n=this.$mapPromise.then((function(n){e.$map=n;var r=_extends({},e.options,{map:n},getPropsValues$1(e,infoWindowMappedProps)),o=(r.options,r.position,_objectWithoutPropertiesLoose(r,_excluded$a));o.content=e.$refs.flyaway,e.$markerPromise&&e.$markerPromise.then((function(n){return e.$markerObject=n,e.$infoWindowObject=new google.maps.InfoWindow(o),bindProps$1(e,e.$infoWindowObject,infoWindowMappedProps),bindEvents$1(e,e.$infoWindowObject,t),e._openInfoWindow(),e.$watch("opened",(function(){e._openInfoWindow()})),e.$infoWindowObject}))})).catch((function(e){throw e}));return this.$infoWindowPromise=n,{$infoWindowPromise:n}},props:{content:{type:[String,Object],default:void 0},opened:{type:Boolean,default:!0},position:{type:Object,default:void 0},zIndex:{type:Number,default:0},options:{type:Object,required:!1,default:void 0}},mounted:function(){var e=this.$refs.flyaway;e.parentNode.removeChild(e)},destroyed:function(){this.$infoWindowObject&&this.$infoWindowObject.setMap&&this.$infoWindowObject.setMap(null)},methods:{_openInfoWindow:function(){this.opened?null!==this.$markerObject?this.$infoWindowObject.open(this.$map,this.$markerObject):this.$infoWindowObject.open(this.$map):this.$infoWindowObject.close()}},render:function(){return vue.createVNode("div",null,[vue.createVNode("div",{ref:"flyaway"},[this.$slots.default()])])}},InfoWindowWrapper={name:"InfoWindowWrapperClusterManager",props:{id:Q.string,renderPopover:Q.func,infoWindowProps:Q.object,events:Q.object,marker:Q.Object},data:function(){return{infoWindowRef:null}},provide:function(){return{$markerPromise:Promise.resolve(this.marker)}},mounted:function(){this.infoWindowRef=this.$refs[this.id+"-Info-Window"]},methods:{handleClose:function(){this.infoWindowRef.$infoWindowObject.close()}},render:function(){var e=this,t=this.renderPopover,n=this.events;return vue.createVNode(InfoWindowClusterManager,vue.mergeProps({ref:this.id+"-Info-Window"},{props:this.infoWindowProps,on:n}),{default:function(){return[vue.createVNode("div",null,[t(e.handleClose)])]}})}},_excluded$b=["options"],isEqual$h=lib_8.isEqual,recordResultClick$2=lib_5.recordResultClick,ClusterMarkers={name:"ClusterMarkers",props:{markers:Q.array,getPosition:Q.func,defaultPin:Q.string,renderItem:Q.func,markerProps:Q.object,handlePreserveCenter:Q.func.isRequired,autoClosePopover:Q.bool,renderPopover:Q.func,highlightMarkerOnHover:Q.bool},inject:{$clusterPromise:{default:null},$mapPromise:{}},data:function(){return{openMarkers:{}}},mounted:function(){this.buildMarkers(this.markers)},destroy:function(){this.buildMarkers([])},watch:{markers:function(e,t){isEqual$h(t,e)||this.buildMarkers(e)}},methods:{triggerAnalytics:function(e,t){this.recordResultClick(e,t)},setOpenMarkers:function(e){this.openMarkers=e},closeMarker:function(e){var t=this.$props,n=t.autoClosePopover,r=t.handlePreserveCenter,o=e.metaData&&e.metaData._id,s=this.openMarkers,a=(s[o],_objectWithoutPropertiesLoose(s,[o].map(_toPropertyKey$1))),i=n?{}:a;this.setOpenMarkers(i),r(!0),this.$emit("close-marker-popover",e)},openMarker:function(e,t){var n,r,o=this.autoClosePopover,s=this.handlePreserveCenter,a=e.metaData&&e.metaData._id,i=o?((n={})[a]=e,n):_extends({},this.openMarkers,((r={})[a]=e,r));this.setOpenMarkers(i),s(!0),this.triggerAnalytics(a,t),this.$emit("open-marker-popover",e)},removeMarkers:function(){this.$clusterObject&&(this.$clusterObject.clearMarkers(!0),this.$markers=[])},buildMarkers:function(e){var t=this;this.$mapPromise.then((function(n){t.$clusterPromise&&t.$clusterPromise.then((function(r){var o=[],s=[],a={};(t.$markers||[]).forEach((function(e){e.metaData&&e.metaData._id&&(a[e.metaData._id]=!1)})),e.forEach((function(e,r){if(e._id&&void 0!==a[e._id])a[e._id]=!0;else{var s=_extends({},t.markerProps,{metaData:e,map:n,position:t.getPosition(e)});if(t.renderItem){var i=t.renderItem(e);"label"in i&&(s.label=i.label),"icon"in i&&(s.icon=i.icon)}else t.defaultPin&&(s.icon={url:t.defaultPin});s.options;var l=_objectWithoutPropertiesLoose(s,_excluded$b);t.$clusterPromise&&(l.map=null);var u=new google.maps.Marker(l);u.addListener("click",(function(){t.openMarker(u,r)})),o.push(u)}}));var i=[];o.forEach((function(e){i.push(e)})),(t.$markers||[]).forEach((function(e){e.metaData&&e.metaData._id&&(a[e.metaData._id]?i.push(e):s.push(e))})),r.removeMarkers(s),r.addMarkers(o),t.$clusterObject=r,t.$map=n,t.$markers=i}))})).catch((function(e){throw e}))}},render:function(){var e=this;return this.renderPopover?vue.createVNode("div",null,[Object.keys(this.openMarkers).map((function(t){var n=e.openMarkers[t],r=n.metaData;return vue.createVNode(InfoWindowWrapper,{key:t+"-InfoWindow",id:t,renderPopover:function(t){return e.renderPopover({item:r,handleClose:function(){t(),e.closeMarker(r)}})},marker:n,infoWindowProps:{zIndex:500},events:{closeclick:function(){return e.closeMarker(n)}}},null)}))]):null}},mapDispatchToProps$5={recordResultClick:recordResultClick$2},ClusterManager=connect((function(){return null}),mapDispatchToProps$5)(ClusterMarkers),InfoWindowWrapper$1={name:"InfoWindowWrapper",props:{id:Q.string,renderPopover:Q.func,infoWindowProps:Q.object,events:Q.object},data:function(){return{infoWindowRef:null}},mounted:function(){this.infoWindowRef=this.$refs[this.id+"-Info-Window"]},methods:{handleClose:function(){this.infoWindowRef.$infoWindowObject.close()}},render:function(){var e=this,t=this.renderPopover,n=this.events;return vue.createVNode(script$2,vue.mergeProps({closeclick:"true",ref:this.id+"-Info-Window"},this.infoWindowProps,babelHelperVueTransformOn(n)),{default:function(){return[vue.createVNode("div",null,[t(e.handleClose)])]}})}},MarkerWithLabel={name:"MarkerWithLabel",props:{metaData:{type:Object,default:void 0},marker:{type:Object,default:void 0},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0},alignment:{type:String,default:"top"},zIndex:{type:Number,default:50},cssPosition:{type:Boolean,default:!1},renderMarker:Q.func.isRequired,handleMouseOver:Q.func,handleFocus:Q.func,handleMouseOut:Q.func,handleBlur:Q.func,handleClick:Q.func},data:function(){return{opacity:.01}},mixins:[MapElementMixin],inject:{$clusterPromise:{default:null}},computed:{lat:function(){return parseFloat(Number.isNaN(this.marker.lat)?this.marker.latitude:this.marker.lat)},lng:function(){return parseFloat(Number.isNaN(this.marker.lng)?this.marker.longitude:this.marker.lng)},latLng:function(){return this.marker instanceof window.google.maps.LatLng?this.marker:new window.google.maps.LatLng(this.lat,this.lng)}},watch:{marker:function(){var e=this;this.$mapPromise.then((function(){return e.$overlay.setPosition()}))},zIndex:function(){this.$overlay&&this.$overlay.repaint()}},beforeCreate:function(e){return this.$clusterPromise&&(e.map=null),this.$clusterPromise},destroyed:function(){this.$clusterObject?this.$clusterObject.removeMarker(this.$overlay,!0):this.$overlay&&(this.$overlay.setMap(null),this.$overlay=void 0)},provide:function(){var e=this,t=this;return this.$mapPromise.then((function(n){var r=function(e){function n(n){var r;return(r=e.call(this)||this).metaData=t.metaData,r.setMap(n),r.draw=function(){return r.repaint()},r.setPosition=function(){return r.repaint()},r.getVisible=function(){return!0},r}_inheritsLoose(n,e);var r=n.prototype;return r.repaint=function(){var e=t.$el,n=this.getProjection();if(n&&e){var r,o,s=n.fromLatLngToDivPixel(t.latLng);switch(t.alignment){case"top":r=s.x-e.offsetWidth/2,o=s.y-e.offsetHeight;break;case"bottom":r=s.x-e.offsetWidth/2,o=s.y;break;case"left":r=s.x-e.offsetWidth,o=s.y-e.offsetHeight/2;break;case"right":r=s.x,o=s.y-e.offsetHeight/2;break;case"center":r=s.x-e.offsetWidth/2,o=s.y-e.offsetHeight/2;break;case"topleft":case"lefttop":r=s.x-e.offsetWidth,o=s.y-e.offsetHeight;break;case"topright":case"righttop":r=s.x,o=s.y-e.offsetHeight;break;case"bottomleft":case"leftop":r=s.x-e.offsetWidth,o=s.y;break;case"bottomright":case"rightbottom":r=s.x,o=s.y;break;default:throw new Error("Invalid alignment type of custom marker!")}t.cssPosition?e.style.transform="translate("+(r+t.offsetX)+"px, "+(o+t.offsetY)+"px)":(e.style.left=r+t.offsetX+"px",e.style.top=o+t.offsetY+"px"),e.style["z-index"]=t.zIndex}},r.onAdd=function(){this.$clusterObject?this.$clusterObject.removeMarker(this.$overlay,!0):this.$overlay&&(this.$overlay.setMap(null),this.$overlay=void 0);var e=t.$el,n=this.getPanes();e.style.position="absolute",e.style.display="inline-block",e.style.zIndex=t.zIndex,n.overlayLayer.appendChild(e),n.overlayMouseTarget.appendChild(e),this.getDraggable=function(){return!1},this.getPosition=function(){return new window.google.maps.LatLng(t.lat,t.lng)},t.afterCreate(this)},r.onRemove=function(){if(t.$el){var e=window.navigator.userAgent;e.indexOf("MSIE ")>0||e.match(/Trident.*rv\:11\./)?t.$el.parentNode.removeChild(t.$el):t.$el.remove()}},n}(window.google.maps.OverlayView);e.$overlay=new r(n),setTimeout((function(){e.$overlay&&(e.$overlay.repaint(),e.opacity=1)}),100)}))},methods:{afterCreate:function(e){var t=this;this.$clusterPromise&&!this.isMarkerAdded&&this.$clusterPromise.then((function(n){n.addMarker(e),t.$clusterObject=n,t.isMarkerAdded=!0}))}},render:function(){return vue.createVNode("div",{style:{opacity:this.opacity},onmouseover:this.handleMouseOver,onmouseout:this.handleMouseOut,onclick:this.handleClick},[this.renderMarker()])}},_templateObject$s,_templateObject2$d,_templateObject3$8,MapPin=styled("div")(_templateObject$s||(_templateObject$s=_taggedTemplateLiteralLoose(["\n\theight: 24px;\n\twidth: auto;\n\tbackground-color: #fff;\n\tborder-radius: 2px;\n\tcolor: #222;\n\tbox-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15);\n\tpadding: 3px 6px;\n\tfont-size: 15px;\n"]))),MapPinArrow=styled("div")(_templateObject2$d||(_templateObject2$d=_taggedTemplateLiteralLoose(["\n\tborder-color: rgba(0, 0, 0, 0.2);\n\tborder-style: solid;\n\tborder-width: 0 1px 1px 0;\n\tmargin-left: -6px;\n\tbackground-color: #fff;\n\tmargin-top: -6px;\n\twidth: 12px;\n\theight: 12px;\n\t-webkit-transform: rotate(45deg);\n\t-ms-transform: rotate(45deg);\n\ttransform: rotate(45deg);\n"]))),mapPinWrapper=css(_templateObject3$8||(_templateObject3$8=_taggedTemplateLiteralLoose(["\n\t&:hover,\n\t&:focus {\n\t\tz-index: 200;\n\t}\n"]))),recordResultClick$3=lib_5.recordResultClick,GoogleMapMarker={name:"GoogleMapMarker",props:{index:Q.number,marker:Q.object.isRequired,getPosition:Q.func.isRequired,defaultPin:Q.string,renderItem:Q.func,setOpenMarkers:Q.func.isRequired,handlePreserveCenter:Q.func.isRequired,autoClosePopover:Q.bool,openMarkers:Q.object,renderPopover:Q.func,highlightMarkerOnHover:Q.bool},data:function(){return{zIndex:0,markerIcon:null}},methods:{setIcon:function(e){this.markerIcon=e},increaseMarkerZIndex:function(){var e=this.$props.handlePreserveCenter;this.highlightMarkerOnHover&&(this.zIndex+=1),e(!0)},removeMarkerZIndex:function(){var e=this.$props.handlePreserveCenter;this.highlightMarkerOnHover&&(this.zIndex-=1),e(!0)},openMarker:function(){var e,t,n=this.$props,r=n.setOpenMarkers,o=n.openMarkers,s=n.marker,a=n.autoClosePopover,i=n.handlePreserveCenter,l=s._id;r(a?((e={})[l]=!0,e):_extends({},o,((t={})[l]=!0,t))),i(!0),this.triggerAnalytics(),s.setIcon=this.setIcon,this.$emit("open-marker-popover",s)},closeMarker:function(){var e=this.$props,t=e.setOpenMarkers,n=e.marker,r=e.autoClosePopover,o=e.handlePreserveCenter,s=e.openMarkers,a=n._id,i=(s[a],_objectWithoutPropertiesLoose(s,[a].map(_toPropertyKey$1)));t(r?{}:i),o(!0),n.setIcon=this.setIcon,this.$emit("close-marker-popover",n)},triggerAnalytics:function(){this.recordResultClick(this.index,this.marker._id)},renderPopoverClick:function(e){var t,n=this,r=this.$props,o=r.getPosition,s=r.renderPopover,a=r.openMarkers;return t={position:o(e),defaultOptions:{pixelOffset:new window.google.maps.Size(0,-30)}},e._id in a?vue.createVNode(InfoWindowWrapper$1,{key:e._id+"-InfoWindow",id:e._id,renderPopover:function(t){return s({item:e,handleClose:function(){t(),n.closeMarker()}})},infoWindowProps:{zIndex:500,position:t.position,options:t.defaultOptions},events:{closeclick:function(){return n.closeMarker()}}},null):null}},render:function(){var e=this,t=this.$props,n=t.getPosition,r=t.renderItem,o=t.defaultPin,s=t.renderPopover,a=t.markerProps,i=t.marker,l={};if(this.zIndex&&(l.zIndex=window.google.maps.Marker.MAX_ZINDEX+this.zIndex),r){i.setIcon=this.setIcon;var u=r(i);if("label"in u)return vue.createVNode(MarkerWithLabel,vue.mergeProps({key:i._id,metaData:i,marker:n(i),labelAnchor:new window.google.maps.Point(0,30),handleMouseOver:this.increaseMarkerZIndex,handleMouseOut:this.removeMarkerZIndex,handleClick:this.openMarker,zIndex:l.zIndex},a,{renderMarker:function(){return vue.createVNode("div",{css:mapPinWrapper},[vue.createVNode(MapPin,null,{default:function(){return[u.label]}}),vue.createVNode(MapPinArrow,null,null),s?e.renderPopoverClick(i,!0):null])}}),null);if(!("icon"in u))return vue.createVNode(MarkerWithLabel,vue.mergeProps({key:i._id,metaData:i,marker:n(i),handleClick:this.openMarker,handleMouseOver:this.increaseMarkerZIndex,handleMouseOut:this.removeMarkerZIndex,zIndex:l.zIndex},a,{renderMarker:function(){return vue.createVNode("div",{css:mapPinWrapper},["function"==typeof u.custom?u.custom(i):u.custom,s?e.renderPopoverClick(i,!0):null])}}),null);l.icon=u.icon}else o&&(l.icon={url:o});return vue.createVNode(script,vue.mergeProps({key:i._id,zIndex:l.zIndex,onClick:function(){return e.openMarker()},onMouseover:this.increaseMarkerZIndex,onMouseout:this.removeMarkerZIndex},a,{position:n(i),options:{metaData:i},icon:this.markerIcon||l.icon}),{default:function(){return[s?e.renderPopoverClick(i):null]}})}},mapDispatchToProps$6={recordResultClick:recordResultClick$3},GoogleMapMarker$1=connect((function(){return null}),mapDispatchToProps$6)(GoogleMapMarker),GoogleMapMarkers={name:"GoogleMapMarkers",props:{resultsToRender:Q.array,getPosition:Q.func,renderItem:Q.func,renderClusterPopover:Q.func,defaultPin:Q.string,autoClosePopover:Q.bool,handlePreserveCenter:Q.func,renderPopover:Q.func,markerProps:Q.object,clusterProps:Q.object,showMarkerClusters:Q.bool,highlightMarkerOnHover:Q.bool},data:function(){return{openMarkers:{},clickedCluster:null,clusterMarkers:[]}},methods:{setOpenMarkers:function(e){this.openMarkers=e},getAdditionalProps:function(){return{position:{lat:this.clickedCluster.getCenter().lat(),lng:this.clickedCluster.getCenter().lng()},defaultOptions:{pixelOffset:new window.google.maps.Size(0,-30)}}},closeMarker:function(){this.clickedCluster=null,this.clusterMarkers=[],this.$emit("close-cluster-popover")}},render:function(){var e=this,t=this.$props.resultsToRender,n={openMarkers:this.openMarkers,setMarkerOnTop:this.setMarkerOnTop,setOpenMarkers:this.setOpenMarkers,getPosition:this.getPosition,renderItem:this.renderItem,defaultPin:this.defaultPin,autoClosePopover:this.autoClosePopover,handlePreserveCenter:this.handlePreserveCenter,renderPopover:this.renderPopover,markerProps:this.markerProps,showMarkerClusters:this.showMarkerClusters,highlightMarkerOnHover:this.highlightMarkerOnHover};return this.showMarkerClusters?vue.createVNode("div",null,[vue.createVNode(script$1,vue.mergeProps(this.clusterProps,{onclick:function(t){var n=t.markers.map((function(e){return e.metaData}));e.clickedCluster=t,e.clusterMarkers=n,e.$emit("open-cluster-popover",e.clusterMarkers)},ref:"clusterRef"}),{default:function(){return[vue.createVNode(ClusterManager,vue.mergeProps({getPosition:n.getPosition,markers:t,defaultPin:n.defaultPin,renderItem:n.renderItem,markerProps:n.markerProps,handlePreserveCenter:n.handlePreserveCenter,autoClosePopover:n.autoClosePopover,renderPopover:n.renderPopover,highlightMarkerOnHover:n.highlightMarkerOnHover},{on:e.$attrs}),null)]}}),this.clickedCluster&&this.renderClusterPopover?vue.createVNode(InfoWindowWrapper$1,{id:"cluster",infoWindowProps:{zIndex:500,position:this.getAdditionalProps().position,options:this.getAdditionalProps().defaultOptions},renderPopover:function(t){return e.renderClusterPopover({markers:e.clusterMarkers,cluster:e.clickedCluster,handleClose:function(){t(),e.closeMarker()}})},events:{closeclick:this.closeMarker}},null):null]):vue.createVNode("div",null,[t.map((function(t,r){return vue.createVNode(GoogleMapMarker$1,vue.mergeProps({index:r,marker:t},n,e.$attrs),null)}))])}},_templateObject$t,ReactiveGoogleMap={name:"ReactiveGoogleMap",props:{className:types.string,componentId:types.stringRequired,compoundClause:types.compoundClause,dataField:types.stringRequired,defaultQuery:Q.func,loader:types.title,defaultZoom:Q.number.def(13),react:types.react,size:types.number,sortBy:types.sortBy,URLParams:Q.bool,mapProps:Q.object,showMarkers:Q.bool.def(!0),showMarkerClusters:Q.bool.def(!1),searchAsMove:Q.bool.def(!1),searchAsMoveLabel:Q.string,markerProps:Q.object,clusterProps:Q.object,renderItem:Q.func,showSearchAsMove:Q.bool.def(!0),autoClosePopover:Q.bool,pagination:Q.bool,defaultPin:Q.string,autoCenter:Q.bool,defaultCenter:types.location,center:types.location,defaultRadius:types.number,unit:types.string,pages:Q.number.def(5),calculateMarkers:Q.func,highlightMarkerOnHover:Q.bool.def(!0)},computed:{listeners:function(){var e=/^on[^a-z]/,t={},n=this.$attrs;return Object.keys(n).forEach((function(r){e.test(r)&&(t[r]=n[r])})),t}},methods:{renderMap:function(e){var t=this,n=e.resultsToRender,r=e.center,o=e.zoom,s=e.handleZoomChange,a=e.handleOnDragEnd,i=e.handleOnIdle,l=e.renderSearchAsMove,u=e.handlePreserveCenter,c=e.getPosition,p=e.autoClosePopover,d=e.defaultPin;return vue.createVNode("div",{style:{width:"100%",height:"100%",position:"relative"}},[vue.createVNode(script$3,vue.mergeProps({ref:"mapRef","map-type-id":"terrain",style:{height:"100%"},class:css(_templateObject$t||(_templateObject$t=_taggedTemplateLiteralLoose(["\n\t\t\t\t\t\t\theight: 100%;\n\t\t\t\t\t\t"]))),options:{zoomControl:!0},center:r,zoom:o},this.mapProps,{onzoom_changed:s,ondragend:a,onidle:i}),{default:function(){return[t.showMarkers?vue.createVNode(GoogleMapMarkers,vue.mergeProps({resultsToRender:n,getPosition:c,markerProps:t.markerProps,clusterProps:t.clusterProps,handlePreserveCenter:u,highlightMarkerOnHover:t.highlightMarkerOnHover,renderItem:t.$slots.renderItem?function(){return{custom:t.$slots.renderItem}}:t.renderItem,defaultPin:d,autoClosePopover:p,renderPopover:t.$slots.renderPopover,renderClusterPopover:t.$slots.renderClusterPopover,showMarkerClusters:t.showMarkerClusters},t.listeners),null):null]}}),l()])},getMapRef:function(){return this.mapRef},removeMarkers:function(){for(var e,t=this;t;)if(t&&t.$options&&"connect-ClusterMarkers"===t.$options.name)e=t,t=null;else if(t.$children){t=t.$children[0]}else t=null;e&&e.removeMarkers&&e.removeMarkers()}},mounted:function(){var e=this;this.$refs.mapRef&&this.$refs.mapRef.$mapPromise.then((function(t){e.mapRef=t}))},render:function(){return vue.createVNode(RMConnected,vue.mergeProps({getMapRef:this.getMapRef,renderMap:this.renderMap,componentId:this.componentId,compoundClause:this.compoundClause,className:this.className,dataField:this.dataField,defaultZoom:this.defaultZoom,react:this.react,size:this.size,sortBy:this.sortBy,pagination:this.pagination,URLParams:this.URLParams,defaultSearchAsMove:this.searchAsMove,showSearchAsMove:this.showSearchAsMove,searchAsMoveLabel:this.searchAsMoveLabel,showMarkers:this.showMarkers,markerProps:this.markerProps,autoClosePopover:this.autoClosePopover,defaultPin:this.defaultPin,defaultQuery:this.defaultQuery,autoCenter:this.autoCenter,defaultCenter:this.defaultCenter,defaultRadius:this.defaultRadius,unit:this.unit,pages:this.pages,center:this.center,loader:this.loader,calculateMarkers:this.calculateMarkers},{on:this.$attrs}),null)}},_PatchFlagNames,_slotFlagsText;function makeMap(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return t?function(e){return!!n[e.toLowerCase()]}:function(e){return!!n[e]}}ReactiveGoogleMap.install=function(e,t){e.component(ReactiveGoogleMap.name,ReactiveGoogleMap),t&&t.key||console.error("ReactiveSearch: map key is required to use ReactiveGoogleMap component"),e.use(install,{load:{key:t.key,libraries:"places"},installComponents:!1})},ReactiveGoogleMap.componentType=constants_1$1.reactiveMap;var NOOP=function(){},onRE=/^on[^a-z]/,isOn=function(e){return onRE.test(e)},isArray=Array.isArray,isFunction$1=function(e){return"function"==typeof e},isString=function(e){return"string"==typeof e},isObject$1=function(e){return null!==e&&"object"==typeof e},isPromise=function(e){return(isObject$1(e)||isFunction$1(e))&&isFunction$1(e.then)&&isFunction$1(e.catch)},cacheStringFunction=function(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}},hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction((function(e){return e.replace(hyphenateRE,"-$1").toLowerCase()})),_globalThis,getGlobalThis=function(){return _globalThis||(_globalThis="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==global$1?global$1:{})},PatchFlagNames=(_PatchFlagNames={},_PatchFlagNames[1]="TEXT",_PatchFlagNames[2]="CLASS",_PatchFlagNames[4]="STYLE",_PatchFlagNames[8]="PROPS",_PatchFlagNames[16]="FULL_PROPS",_PatchFlagNames[32]="HYDRATE_EVENTS",_PatchFlagNames[64]="STABLE_FRAGMENT",_PatchFlagNames[128]="KEYED_FRAGMENT",_PatchFlagNames[256]="UNKEYED_FRAGMENT",_PatchFlagNames[512]="NEED_PATCH",_PatchFlagNames[1024]="DYNAMIC_SLOTS",_PatchFlagNames[2048]="DEV_ROOT_FRAGMENT",_PatchFlagNames[-1]="HOISTED",_PatchFlagNames[-2]="BAIL",_PatchFlagNames),slotFlagsText=(_slotFlagsText={},_slotFlagsText[1]="STABLE",_slotFlagsText[2]="DYNAMIC",_slotFlagsText[3]="FORWARDED",_slotFlagsText);function normalizeStyle(e){if(isArray(e)){for(var t={},n=0;n<e.length;n++){var r=e[n],o=isString(r)?parseStringStyle(r):normalizeStyle(r);if(o)for(var s in o)t[s]=o[s]}return t}if(isString(e)||isObject$1(e))return e}var listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(e){var t={};return e.replace(styleCommentRE,"").split(listDelimiterRE).forEach((function(e){if(e){var n=e.split(propertyDelimiterRE);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function stringifyStyle(e){var t="";if(!e||isString(e))return t;for(var n in e){var r=e[n],o=n.startsWith("--")?n:hyphenate(n);(isString(r)||"number"==typeof r)&&(t+=o+":"+r+";")}return t}function normalizeClass(e){var t="";if(isString(e))t=e;else if(isArray(e))for(var n=0;n<e.length;n++){var r=normalizeClass(e[n]);r&&(t+=r+" ")}else if(isObject$1(e))for(var o in e)e[o]&&(t+=o+" ");return t.trim()}var SVG_TAGS="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",VOID_TAGS="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",isSVGTag=makeMap(SVG_TAGS),isVoidTag=makeMap(VOID_TAGS),specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isBooleanAttr=makeMap(specialBooleanAttrs+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function includeBooleanAttr(e){return!!e||""===e}var unsafeAttrCharRE=/[>/="'\u0009\u000a\u000c\u0020]/,attrValidationCache={};function isSSRSafeAttrName(e){if(attrValidationCache.hasOwnProperty(e))return attrValidationCache[e];var t=unsafeAttrCharRE.test(e);return t&&console.error("unsafe attribute name: "+e),attrValidationCache[e]=!t}var propsToAttrMap={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},escapeRE=/["'&<>]/;function escapeHtml$2(e){var t=""+e,n=escapeRE.exec(t);if(!n)return t;var r,o,s="",a=0;for(o=n.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}a!==o&&(s+=t.slice(a,o)),a=o+1,s+=r}return a!==o?s+t.slice(a,o):s}var commentStripRE=/^-?>|<!--|-->|--!>|<!-$/g,_ErrorTypeStrings;function escapeHtmlComment(e){return e.replace(commentStripRE,"")}var shouldIgnoreProp=makeMap(",key,ref,innerHTML,textContent,ref_key,ref_for");function ssrRenderAttrs(e,t){var n="";for(var r in e)if(!(shouldIgnoreProp(r)||isOn(r)||"textarea"===t&&"value"===r)){var o=e[r];n+="class"===r?' class="'+ssrRenderClass(o)+'"':"style"===r?' style="'+ssrRenderStyle(o)+'"':ssrRenderDynamicAttr(r,o,t)}return n}function ssrRenderDynamicAttr(e,t,n){if(!isRenderableValue(t))return"";var r=n&&(n.indexOf("-")>0||isSVGTag(n))?e:propsToAttrMap[e]||e.toLowerCase();return isBooleanAttr(r)?includeBooleanAttr(t)?" "+r:"":isSSRSafeAttrName(r)?""===t?" "+r:" "+r+'="'+escapeHtml$2(t)+'"':(console.warn("[@vue/server-renderer] Skipped rendering unsafe attribute name: "+r),"")}function isRenderableValue(e){if(null==e)return!1;var t=typeof e;return"string"===t||"number"===t||"boolean"===t}function ssrRenderClass(e){return escapeHtml$2(normalizeClass(e))}function ssrRenderStyle(e){return e?isString(e)?escapeHtml$2(e):escapeHtml$2(stringifyStyle(normalizeStyle(e))):""}function ssrRenderTeleport(e,t,n,r,o){e("\x3c!--teleport start--\x3e");var s,a=o.appContext.provides[vue.ssrContextKey],i=a.__teleportBuffers||(a.__teleportBuffers={}),l=i[n]||(i[n]=[]),u=l.length;if(r)t(e),s="\x3c!--teleport anchor--\x3e";else{var c=createBuffer(),p=c.getBuffer,d=c.push;t(d),d("\x3c!--teleport anchor--\x3e"),s=p()}l.splice(u,0,s),e("\x3c!--teleport end--\x3e")}var ErrorTypeStrings=(_ErrorTypeStrings={},_ErrorTypeStrings.sp="serverPrefetch hook",_ErrorTypeStrings.bc="beforeCreate hook",_ErrorTypeStrings.c="created hook",_ErrorTypeStrings.bm="beforeMount hook",_ErrorTypeStrings.m="mounted hook",_ErrorTypeStrings.bu="beforeUpdate hook",_ErrorTypeStrings.u="updated",_ErrorTypeStrings.bum="beforeUnmount hook",_ErrorTypeStrings.um="unmounted hook",_ErrorTypeStrings.a="activated hook",_ErrorTypeStrings.da="deactivated hook",_ErrorTypeStrings.ec="errorCaptured hook",_ErrorTypeStrings.rtc="renderTracked hook",_ErrorTypeStrings.rtg="renderTriggered hook",_ErrorTypeStrings[0]="setup function",_ErrorTypeStrings[1]="render function",_ErrorTypeStrings[2]="watcher getter",_ErrorTypeStrings[3]="watcher callback",_ErrorTypeStrings[4]="watcher cleanup function",_ErrorTypeStrings[5]="native event handler",_ErrorTypeStrings[6]="component event handler",_ErrorTypeStrings[7]="vnode hook",_ErrorTypeStrings[8]="directive hook",_ErrorTypeStrings[9]="transition hook",_ErrorTypeStrings[10]="app errorHandler",_ErrorTypeStrings[11]="app warnHandler",_ErrorTypeStrings[12]="ref function",_ErrorTypeStrings[13]="async component loader",_ErrorTypeStrings[14]="scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core",_ErrorTypeStrings),globalCurrentInstanceSetters,settersKey="__VUE_INSTANCE_SETTERS__";function ssrCompile(e,t){throw new Error("On-the-fly template compilation is not supported in the ESM build of @vue/server-renderer. All templates must be pre-compiled into render functions.")}(globalCurrentInstanceSetters=getGlobalThis()[settersKey])||(globalCurrentInstanceSetters=getGlobalThis()[settersKey]=[]),globalCurrentInstanceSetters.push((function(e){return e}));var createComponentInstance=vue.ssrUtils.createComponentInstance,setCurrentRenderingInstance=vue.ssrUtils.setCurrentRenderingInstance,setupComponent=vue.ssrUtils.setupComponent,renderComponentRoot=vue.ssrUtils.renderComponentRoot,normalizeVNode=vue.ssrUtils.normalizeVNode;function createBuffer(){var e=!1,t=[];return{getBuffer:function(){return t},push:function(n){var r=isString(n);e&&r?t[t.length-1]+=n:t.push(n),e=r,(isPromise(n)||isArray(n)&&n.hasAsync)&&(t.hasAsync=!0)}}}function renderComponentVNode(e,t,n){void 0===t&&(t=null);var r=createComponentInstance(e,t,null),o=setupComponent(r,!0),s=isPromise(o),a=r.sp;if(s||a){var i=s?o:Promise.resolve();return a&&(i=i.then((function(){return Promise.all(a.map((function(e){return e.call(r.proxy)})))})).catch((function(){}))),i.then((function(){return renderComponentSubTree(r,n)}))}return renderComponentSubTree(r,n)}function renderComponentSubTree(e,t){var n=e.type,r=createBuffer(),o=r.getBuffer,s=r.push;if(isFunction$1(n)){var a=renderComponentRoot(e);if(!n.props)for(var i in e.attrs)i.startsWith("data-v-")&&((a.props||(a.props={}))[i]="");renderVNode(s,e.subTree=a,e,t)}else{e.render&&e.render!==NOOP||e.ssrRender||n.ssrRender||!isString(n.template)||(n.ssrRender=ssrCompile(n.template));for(var l,u=_createForOfIteratorHelperLoose(e.scope.effects);!(l=u()).done;){var c=l.value;c.computed&&(c.computed._cacheable=!0)}var p=e.ssrRender||n.ssrRender;if(p){for(var d=!1!==e.inheritAttrs?e.attrs:void 0,h=!1,f=e;;){var m=f.vnode.scopeId;m&&(h||(d=_extends({},d),h=!0),d[m]="");var g=f.parent;if(!g||!g.subTree||g.subTree!==f.vnode)break;f=g}t&&(h||(d=_extends({},d)),d[t.trim()]="");var y=setCurrentRenderingInstance(e);try{p(e.proxy,s,e,d,e.props,e.setupState,e.data,e.ctx)}finally{setCurrentRenderingInstance(y)}}else if(e.render&&e.render!==NOOP)renderVNode(s,e.subTree=renderComponentRoot(e),e,t);else{var v=n.name||n.__file||"<Anonymous>";vue.warn("Component "+v+" is missing template or render function."),s("\x3c!----\x3e")}}return o()}function renderVNode(e,t,n,r){var o=t.type,s=t.shapeFlag,a=t.children;switch(o){case vue.Text:e(escapeHtml$2(a));break;case vue.Comment:e(a?"\x3c!--"+escapeHtmlComment(a)+"--\x3e":"\x3c!----\x3e");break;case vue.Static:e(a);break;case vue.Fragment:t.slotScopeIds&&(r=(r?r+" ":"")+t.slotScopeIds.join(" ")),e("\x3c!--[--\x3e"),renderVNodeChildren(e,a,n,r),e("\x3c!--]--\x3e");break;default:1&s?renderElementVNode(e,t,n,r):6&s?e(renderComponentVNode(t,n,r)):64&s?renderTeleportVNode(e,t,n,r):128&s?renderVNode(e,t.ssContent,n,r):vue.warn("[@vue/server-renderer] Invalid VNode type:",o,"("+typeof o+")")}}function renderVNodeChildren(e,t,n,r){for(var o=0;o<t.length;o++)renderVNode(e,normalizeVNode(t[o]),n,r)}function renderElementVNode(e,t,n,r){var o=t.type,s=t.props,a=t.children,i=t.shapeFlag,l=t.scopeId,u=t.dirs,c="<"+o;u&&(s=applySSRDirectives(t,s,u)),s&&(c+=ssrRenderAttrs(s,o)),l&&(c+=" "+l);for(var p=n,d=t;p&&d===p.subTree;)(d=p.vnode).scopeId&&(c+=" "+d.scopeId),p=p.parent;if(r&&(c+=" "+r),e(c+">"),!isVoidTag(o)){var h=!1;s&&(s.innerHTML?(h=!0,e(s.innerHTML)):s.textContent?(h=!0,e(escapeHtml$2(s.textContent))):"textarea"===o&&s.value&&(h=!0,e(escapeHtml$2(s.value)))),h||(8&i?e(escapeHtml$2(a)):16&i&&renderVNodeChildren(e,a,n,r)),e("</"+o+">")}}function applySSRDirectives(e,t,n){for(var r=[],o=0;o<n.length;o++){var s=n[o],a=s.dir.getSSRProps;if(a){var i=a(s,e);i&&r.push(i)}}return vue.mergeProps.apply(void 0,[t||{}].concat(r))}function renderTeleportVNode(e,t,n,r){var o=t.props&&t.props.to,s=t.props&&t.props.disabled;return o?isString(o)?void ssrRenderTeleport(e,(function(e){renderVNodeChildren(e,t.children,n,r)}),o,s||""===s,n):(vue.warn("[@vue/server-renderer] Teleport target must be a query selector string."),[]):(s||vue.warn("[@vue/server-renderer] Teleport is missing target prop."),[])}var isVNode$1=vue.ssrUtils.isVNode;function unrollBuffer$1(e){return _unrollBuffer$.apply(this,arguments)}function _unrollBuffer$(){return(_unrollBuffer$=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var n,r,o;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.hasAsync){e.next=23;break}n="",r=0;case 3:if(!(r<t.length)){e.next=20;break}if(o=t[r],!isPromise(o)){e.next=9;break}return e.next=8,o;case 8:o=e.sent;case 9:if(!isString(o)){e.next=13;break}n+=o,e.next=17;break;case 13:return e.t0=n,e.next=16,unrollBuffer$1(o);case 16:n=e.t0+=e.sent;case 17:r++,e.next=3;break;case 20:return e.abrupt("return",n);case 23:return e.abrupt("return",unrollBufferSync$1(t));case 24:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function unrollBufferSync$1(e){for(var t="",n=0;n<e.length;n++){var r=e[n];isString(r)?t+=r:t+=unrollBufferSync$1(r)}return t}function renderToString(e,t){return _renderToString.apply(this,arguments)}function _renderToString(){return(_renderToString=_asyncToGenerator(_regeneratorRuntime().mark((function e(t,n){var r,o,s,a,i;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===n&&(n={}),!isVNode$1(t)){e.next=3;break}return e.abrupt("return",renderToString(vue.createApp({render:function(){return t}}),n));case 3:return(r=vue.createVNode(t._component,t._props)).appContext=t._context,t.provide(vue.ssrContextKey,n),e.next=8,renderComponentVNode(r);case 8:return o=e.sent,e.next=11,unrollBuffer$1(o);case 11:return s=e.sent,e.next=14,resolveTeleports(n);case 14:if(n.__watcherHandles)for(a=_createForOfIteratorHelperLoose(n.__watcherHandles);!(i=a()).done;)(0,i.value)();return e.abrupt("return",s);case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function resolveTeleports(e){return _resolveTeleports.apply(this,arguments)}function _resolveTeleports(){return(_resolveTeleports=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.__teleportBuffers){e.next=14;break}t.teleports=t.teleports||{},e.t0=_regeneratorRuntime().keys(t.__teleportBuffers);case 3:if((e.t1=e.t0()).done){e.next=14;break}return n=e.t1.value,e.t2=unrollBuffer$1,e.next=8,Promise.all([t.__teleportBuffers[n]]);case 8:return e.t3=e.sent,e.next=11,(0,e.t2)(e.t3);case 11:t.teleports[n]=e.sent,e.next=3;break;case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var isVNode=vue.ssrUtils.isVNode;vue.initDirectivesForSSR();var server=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getServerResults=void 0;var n,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=(n=valueReducer_1)&&n.__esModule?n:{default:n};function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t,n){if(e&&e[t])try{var o=JSON.parse(e[t]);return r({},"object"==typeof o&&o.value?r({value:o.value},o.category?{category:o.category}:{}):{value:o},{reference:"URL"})}catch(n){return{value:e[t],reference:"URL"}}return{value:n,reference:"DEFAULT"}}function u(e){if(e instanceof Object)return e;if("string"!=typeof e||0===e.length)return{};var t=void 0;if(e.split("/?")[1]&&(t=e.split("/?")[1].split("&")),e.split("?")[1]&&(t=e.split("?")[1].split("&")),!t)return{};for(var n=t.length,r=void 0,o={},s=void 0,a=void 0,i=0;i<n;i+=1)r=t[i].split("="),0!==(s=decodeURIComponent(r[0])).length&&(a=decodeURIComponent(r[1]),void 0===o[s]?o[s]=a:o[s]instanceof Array?o[s].push(a):o[s]=[o[s],a]);return o}t.getServerResults=function(){var e=null;return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments[2];try{var p=u(n);if(!e){var d={},h=function(t){return t.ctx&&(e=t.ctx,Object.keys(p).forEach((function(e){var t=l(p,e,null),n=t.value,r=t.reference;n&&(d=(0,o.default)(d,{type:"PATCH_VALUE",component:e,payload:{value:n,reference:r}}))}))),{selectedValues:d}},f=c(t({contextCollector:h})),m=void 0;return(m=f.then?f:Promise.resolve(m)).then((function(){if(e){var t=e.getState(),n=t.components,o=t.config,l=t.appbaseRef,u=t.queryOptions,c=t.internalValues,p=t.props,h=t.queryList,f=t.dependencyTree,m=t.queryLog,g=[],y={},v=[],b={},_={},$=r({},t);n.filter((function(e){return!e.endsWith("__internal")})).forEach((function(e){var t=(0,helper.buildQuery)(e,f,h,u),n=t.queryObj,o=t.options;if(n||o){var l=(0,transform.getRSQuery)(e,(0,transform.extractPropsFromState)($,e,u&&u[e]?{from:u[e].from}:null));if(l&&Object.keys(l).length){var c=l,d=(0,transform.getDependentQueries)($,e,v),g=r(i({},e,c),Object.keys(d).reduce((function(e,t){return r({},e,i({},t,r({},d[t],{execute:!1},d[t].type===constants$1.queryTypes.suggestion?{type:"search"}:{})))}),{}));if([constants$1.queryTypes.range,constants$1.queryTypes.term].includes(transform.componentToTypeMap[p[e].componentType])){c.value;var b=a(c,["value"]);g=r(i({},e,b),Object.keys(d).reduce((function(e,t){return r({},e,i({},t,r({},d[t],{execute:!1},d[t].type===constants$1.queryTypes.suggestion?{type:"search"}:{})))}),{}))}if(v=[].concat(s(v),[e]),m=r({},m,i({},e,g)),l){var _=(0,transform.getDependentQueries)($,e,v);y=r({},y,i({},e,l)),Object.keys(_).forEach((function(e){y[e]?y[e+Math.random()]=_[e]:y[e]=_[e]}))}}}}));if(Object.keys(y).length){g=Object.values(y);var C={};return o.analyticsConfig&&(C.recordAnalytics=(0,utils.isPropertyDefined)(o.analyticsConfig.recordAnalytics)?o.analyticsConfig.recordAnalytics:void 0,C.userId=(0,utils.isPropertyDefined)(o.analyticsConfig.userId)?o.analyticsConfig.userId:void 0,C.enableQueryRules=(0,utils.isPropertyDefined)(o.analyticsConfig.enableQueryRules)?o.analyticsConfig.enableQueryRules:void 0,C.customEvents=(0,utils.isPropertyDefined)(o.analyticsConfig.customEvents)?o.analyticsConfig.customEvents:void 0),l.reactiveSearchv3(g,C).then((function(e){return function(e){var t={},n={},s={},a=v.map((function(a){return new Promise((function(l,u){(0,utils.handleTransformResponse)(e[a],o,a).then((function(e){if(e){e.promoted&&(t[a]=e.promoted.map((function(e){return r({},e.doc,{_position:e.position})}))),n[a]=e,e.customData&&(s[a]=e.customData),e.aggregations&&(_=r({},_,i({},a,e.aggregations)));var o=e.hits||{};b=r({},b,i({},a,{hits:o.hits,total:"object"==typeof o.total?o.total.value:o.total,time:e.took})),l()}})).catch((function(e){u(e)}))}))}));return Promise.all(a).then((function(){return $={queryList:h,queryOptions:u,selectedValues:d,internalValues:c,queryLog:m,hits:b,aggregations:_,promotedResults:t,customData:s,rawData:n,dependencyTree:f},Promise.resolve(JSON.parse(JSON.stringify($)))}))}(e)})).catch((function(e){return Promise.reject(e)}))}throw new Error("Could not compute server-side initial state of the app!")}return null})).catch(Promise.reject)}return null}catch(e){return Promise.reject(e)}}}}));unwrapExports(server);var server_1=server.getServerResults;function getServerState(e,t){var n=renderToString;return server_1()((function(t){return vue.createSSRApp(e,t)}),t,n)}var version="3.3.0",components=[RLConnected,ResultCard,ResultList,ReactiveBase,SBConnected,ListConnected,ListConnected$1,RangeConnected$1,RangeConnected$2,RangeConnected$3,RangeConnected,RcConnected,RcConnected$1,RcConnected$2,TBConnected,ListConnected$2,ListConnected$3,StateProviderConnected,RangeConnected$4,TreeListConnected,AIConnected];function install$1(e){components.map((function(t){return e.use(t),null}))}"undefined"!=typeof window&&window.Vue&&install$1(window.Vue);var index$1={version:version,install:install$1};exports.AIAnswer=AIConnected,exports.DynamicRangeSlider=RangeConnected,exports.MultiDropdownList=ListConnected$3,exports.MultiList=ListConnected$1,exports.MultiRange=RangeConnected$2,exports.RangeInput=RangeConnected$4,exports.RangeSlider=RangeConnected$3,exports.ReactiveBase=ReactiveBase,exports.ReactiveComponent=RcConnected,exports.ReactiveComponentPrivate=RcConnected$1,exports.ReactiveGoogleMap=ReactiveGoogleMap,exports.ReactiveList=RLConnected,exports.ResultCard=ResultCard,exports.ResultList=ResultList,exports.SearchBox=SBConnected,exports.SelectedFilters=RcConnected$2,exports.SingleDropdownList=ListConnected$2,exports.SingleList=ListConnected,exports.SingleRange=RangeConnected$1,exports.StateProvider=StateProviderConnected,exports.ToggleButton=TBConnected,exports.TreeList=TreeListConnected,exports.componentTypes=constants_1$1,exports.default=index$1,exports.getServerState=getServerState,exports.install=install$1,exports.version=version,Object.defineProperty(exports,"__esModule",{value:!0})}));
|
|
39
39
|
//# sourceMappingURL=reactivesearch-vue.umd.min.js.map
|