@nanoporetech-digital/components 1.15.4 → 1.15.5

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.
Files changed (174) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/cjs/{algoliasearch.umd-da1e6f0c.js → algoliasearch.umd-0ccd70ce.js} +3 -3
  3. package/dist/cjs/{algoliasearch.umd-da1e6f0c.js.map → algoliasearch.umd-0ccd70ce.js.map} +1 -1
  4. package/dist/cjs/{component-store-1aa64afb.js → component-store-bda9b645.js} +107 -36
  5. package/dist/cjs/component-store-bda9b645.js.map +1 -0
  6. package/dist/cjs/nano-algolia-filter.cjs.entry.js +1 -1
  7. package/dist/cjs/nano-algolia-input.cjs.entry.js +2 -2
  8. package/dist/cjs/nano-algolia.cjs.entry.js +2 -2
  9. package/dist/cjs/nano-date-picker_2.cjs.entry.js +1 -1
  10. package/dist/cjs/nano-dialog.cjs.entry.js +1 -1
  11. package/dist/cjs/nano-global-nav.cjs.entry.js +4 -2
  12. package/dist/cjs/nano-global-nav.cjs.entry.js.map +1 -1
  13. package/dist/cjs/nano-global-search-results.cjs.entry.js +3 -2
  14. package/dist/cjs/nano-global-search-results.cjs.entry.js.map +1 -1
  15. package/dist/cjs/nano-nav-item_2.cjs.entry.js +1 -1
  16. package/dist/cjs/nano-slides.cjs.entry.js +7 -6
  17. package/dist/cjs/nano-slides.cjs.entry.js.map +1 -1
  18. package/dist/cjs/nano-tab-group.cjs.entry.js +1 -1
  19. package/dist/cjs/nano-tooltip.cjs.entry.js +1 -1
  20. package/dist/cjs/{popover-04a39914.js → popover-d033efa2.js} +29 -10
  21. package/dist/cjs/popover-d033efa2.js.map +1 -0
  22. package/dist/collection/components/accordion/accordion.js +1 -1
  23. package/dist/collection/components/alert/alert.js +1 -1
  24. package/dist/collection/components/algolia/algolia-filter.js +2 -2
  25. package/dist/collection/components/algolia/algolia-input.js +5 -5
  26. package/dist/collection/components/algolia/algolia-results.js +1 -1
  27. package/dist/collection/components/algolia/algolia.js +6 -6
  28. package/dist/collection/components/checkbox/checkbox-group.js +2 -2
  29. package/dist/collection/components/checkbox/checkbox.js +3 -3
  30. package/dist/collection/components/date-input/date-input.js +7 -7
  31. package/dist/collection/components/date-picker/date-picker.js +5 -5
  32. package/dist/collection/components/details/details.js +1 -1
  33. package/dist/collection/components/dialog/dialog.js +1 -1
  34. package/dist/collection/components/file-upload/file-upload.js +4 -4
  35. package/dist/collection/components/global-nav/global-nav.js +6 -4
  36. package/dist/collection/components/global-nav/global-nav.js.map +1 -1
  37. package/dist/collection/components/global-search-results/global-search-results.js +3 -2
  38. package/dist/collection/components/global-search-results/global-search-results.js.map +1 -1
  39. package/dist/collection/components/grid/grid-item.js +1 -1
  40. package/dist/collection/components/icon/icon.js +1 -1
  41. package/dist/collection/components/input/input.js +5 -5
  42. package/dist/collection/components/nav-item/nav-item.js +4 -4
  43. package/dist/collection/components/range/range.js +4 -4
  44. package/dist/collection/components/resize-observe/resize-observe.js +1 -1
  45. package/dist/collection/components/select/select.js +5 -5
  46. package/dist/collection/components/slides/slides.js +7 -7
  47. package/dist/collection/components/tabs/tab-group.js +2 -2
  48. package/dist/collection/utils/testing/index.js +3 -2
  49. package/dist/collection/utils/testing/index.js.map +1 -1
  50. package/dist/custom-elements/index.js +147 -54
  51. package/dist/custom-elements/index.js.map +1 -1
  52. package/dist/esm/{algoliasearch.umd-1bf96913.js → algoliasearch.umd-8e5aff52.js} +3 -3
  53. package/dist/esm/{algoliasearch.umd-1bf96913.js.map → algoliasearch.umd-8e5aff52.js.map} +1 -1
  54. package/dist/esm/{component-store-f0e6cb24.js → component-store-08f430dd.js} +107 -36
  55. package/dist/esm/component-store-08f430dd.js.map +1 -0
  56. package/dist/esm/nano-algolia-filter.entry.js +1 -1
  57. package/dist/esm/nano-algolia-input.entry.js +2 -2
  58. package/dist/esm/nano-algolia.entry.js +2 -2
  59. package/dist/esm/nano-date-picker_2.entry.js +1 -1
  60. package/dist/esm/nano-dialog.entry.js +1 -1
  61. package/dist/esm/nano-global-nav.entry.js +4 -2
  62. package/dist/esm/nano-global-nav.entry.js.map +1 -1
  63. package/dist/esm/nano-global-search-results.entry.js +3 -2
  64. package/dist/esm/nano-global-search-results.entry.js.map +1 -1
  65. package/dist/esm/nano-nav-item_2.entry.js +1 -1
  66. package/dist/esm/nano-slides.entry.js +7 -6
  67. package/dist/esm/nano-slides.entry.js.map +1 -1
  68. package/dist/esm/nano-tab-group.entry.js +1 -1
  69. package/dist/esm/nano-tooltip.entry.js +1 -1
  70. package/dist/esm/{popover-9169205e.js → popover-2c7b2326.js} +29 -10
  71. package/dist/esm/popover-2c7b2326.js.map +1 -0
  72. package/dist/esm-es5/{algoliasearch.umd-1bf96913.js → algoliasearch.umd-8e5aff52.js} +3 -3
  73. package/dist/esm-es5/{algoliasearch.umd-1bf96913.js.map → algoliasearch.umd-8e5aff52.js.map} +1 -1
  74. package/dist/esm-es5/component-store-08f430dd.js +5 -0
  75. package/dist/esm-es5/component-store-08f430dd.js.map +1 -0
  76. package/dist/esm-es5/nano-algolia-filter.entry.js +1 -1
  77. package/dist/esm-es5/nano-algolia-input.entry.js +1 -1
  78. package/dist/esm-es5/nano-algolia.entry.js +1 -1
  79. package/dist/esm-es5/nano-date-picker_2.entry.js +1 -1
  80. package/dist/esm-es5/nano-dialog.entry.js +1 -1
  81. package/dist/esm-es5/nano-global-nav.entry.js +1 -1
  82. package/dist/esm-es5/nano-global-nav.entry.js.map +1 -1
  83. package/dist/esm-es5/nano-global-search-results.entry.js +1 -1
  84. package/dist/esm-es5/nano-global-search-results.entry.js.map +1 -1
  85. package/dist/esm-es5/nano-nav-item_2.entry.js +1 -1
  86. package/dist/esm-es5/nano-slides.entry.js +3 -3
  87. package/dist/esm-es5/nano-slides.entry.js.map +1 -1
  88. package/dist/esm-es5/nano-tab-group.entry.js +1 -1
  89. package/dist/esm-es5/nano-tooltip.entry.js +1 -1
  90. package/dist/esm-es5/popover-2c7b2326.js +5 -0
  91. package/dist/esm-es5/popover-2c7b2326.js.map +1 -0
  92. package/dist/nano-components/nano-components.esm.js +1 -1
  93. package/dist/nano-components/{p-89dc184e.system.entry.js → p-014f62dc.system.entry.js} +2 -2
  94. package/dist/nano-components/{p-89dc184e.system.entry.js.map → p-014f62dc.system.entry.js.map} +0 -0
  95. package/dist/nano-components/{p-beee3c85.system.entry.js → p-03104b3a.system.entry.js} +2 -2
  96. package/dist/nano-components/{p-beee3c85.system.entry.js.map → p-03104b3a.system.entry.js.map} +0 -0
  97. package/dist/nano-components/{p-26dcb670.system.entry.js → p-12ad4144.system.entry.js} +2 -2
  98. package/dist/nano-components/{p-26dcb670.system.entry.js.map → p-12ad4144.system.entry.js.map} +0 -0
  99. package/dist/nano-components/{p-7b0c0c51.entry.js → p-2bf707e3.entry.js} +4 -4
  100. package/dist/nano-components/{p-7b0c0c51.entry.js.map → p-2bf707e3.entry.js.map} +1 -1
  101. package/dist/nano-components/{p-22a51b34.system.entry.js → p-2c34907c.system.entry.js} +2 -2
  102. package/dist/nano-components/{p-22a51b34.system.entry.js.map → p-2c34907c.system.entry.js.map} +0 -0
  103. package/dist/nano-components/p-2df9e977.system.entry.js +5 -0
  104. package/dist/nano-components/p-2df9e977.system.entry.js.map +1 -0
  105. package/dist/nano-components/{p-dbbf7b9d.system.entry.js → p-31ade697.system.entry.js} +2 -2
  106. package/dist/nano-components/{p-dbbf7b9d.system.entry.js.map → p-31ade697.system.entry.js.map} +0 -0
  107. package/dist/nano-components/{p-81248be1.entry.js → p-3d1328a2.entry.js} +2 -2
  108. package/dist/nano-components/{p-81248be1.entry.js.map → p-3d1328a2.entry.js.map} +0 -0
  109. package/dist/nano-components/p-3f00179c.js +5 -0
  110. package/dist/nano-components/p-3f00179c.js.map +1 -0
  111. package/dist/nano-components/{p-78c2b685.entry.js → p-457864f2.entry.js} +2 -2
  112. package/dist/nano-components/{p-78c2b685.entry.js.map → p-457864f2.entry.js.map} +0 -0
  113. package/dist/nano-components/{p-b499e206.system.entry.js → p-568b607c.system.entry.js} +2 -2
  114. package/dist/nano-components/{p-b499e206.system.entry.js.map → p-568b607c.system.entry.js.map} +0 -0
  115. package/dist/nano-components/{p-7dc55b56.system.entry.js → p-5dbb9fb7.system.entry.js} +4 -4
  116. package/dist/nano-components/{p-7dc55b56.system.entry.js.map → p-5dbb9fb7.system.entry.js.map} +1 -1
  117. package/dist/nano-components/p-7154bfd9.system.js +1 -1
  118. package/dist/nano-components/p-71b5ba7f.system.js +5 -0
  119. package/dist/nano-components/p-71b5ba7f.system.js.map +1 -0
  120. package/dist/nano-components/{p-6e2cc669.entry.js → p-75f1499e.entry.js} +2 -2
  121. package/dist/nano-components/{p-6e2cc669.entry.js.map → p-75f1499e.entry.js.map} +0 -0
  122. package/dist/nano-components/p-7dd28543.js +5 -0
  123. package/dist/nano-components/p-7dd28543.js.map +1 -0
  124. package/dist/nano-components/{p-d79e5a9b.entry.js → p-8387377a.entry.js} +2 -2
  125. package/dist/nano-components/{p-d79e5a9b.entry.js.map → p-8387377a.entry.js.map} +0 -0
  126. package/dist/nano-components/{p-3bbdfb96.js → p-8757b4eb.js} +3 -3
  127. package/dist/nano-components/{p-3bbdfb96.js.map → p-8757b4eb.js.map} +1 -1
  128. package/dist/nano-components/{p-a32b6a4a.entry.js → p-95c8e898.entry.js} +2 -2
  129. package/dist/nano-components/{p-a32b6a4a.entry.js.map → p-95c8e898.entry.js.map} +0 -0
  130. package/dist/nano-components/{p-5e8e5fc0.system.entry.js → p-9d38cc3e.system.entry.js} +2 -2
  131. package/dist/nano-components/{p-5e8e5fc0.system.entry.js.map → p-9d38cc3e.system.entry.js.map} +0 -0
  132. package/dist/nano-components/{p-25c9fb70.system.js → p-a16651a6.system.js} +3 -3
  133. package/dist/nano-components/{p-25c9fb70.system.js.map → p-a16651a6.system.js.map} +1 -1
  134. package/dist/nano-components/{p-d82e941d.system.entry.js → p-b15362c6.system.entry.js} +2 -2
  135. package/dist/nano-components/p-b15362c6.system.entry.js.map +1 -0
  136. package/dist/nano-components/{p-80573547.entry.js → p-b198296f.entry.js} +2 -2
  137. package/dist/nano-components/{p-80573547.entry.js.map → p-b198296f.entry.js.map} +0 -0
  138. package/dist/nano-components/p-d31761c8.system.js +5 -0
  139. package/dist/nano-components/p-d31761c8.system.js.map +1 -0
  140. package/dist/nano-components/{p-4948b950.entry.js → p-d6d1a8c2.entry.js} +2 -2
  141. package/dist/nano-components/{p-4948b950.entry.js.map → p-d6d1a8c2.entry.js.map} +0 -0
  142. package/dist/nano-components/{p-fb75dd54.entry.js → p-d99e661e.entry.js} +2 -2
  143. package/dist/nano-components/p-d99e661e.entry.js.map +1 -0
  144. package/dist/nano-components/{p-43d1b037.entry.js → p-e53a485b.entry.js} +2 -2
  145. package/dist/nano-components/{p-43d1b037.entry.js.map → p-e53a485b.entry.js.map} +0 -0
  146. package/dist/nano-components/p-e669e7d5.entry.js +5 -0
  147. package/dist/nano-components/p-e669e7d5.entry.js.map +1 -0
  148. package/dist/nano-components/{p-980231d8.system.entry.js → p-f4b06615.system.entry.js} +2 -2
  149. package/dist/nano-components/{p-980231d8.system.entry.js.map → p-f4b06615.system.entry.js.map} +0 -0
  150. package/dist/types/utils/testing/index.d.ts +3 -1
  151. package/docs-json.json +1 -1
  152. package/package.json +4 -4
  153. package/dist/cjs/component-store-1aa64afb.js.map +0 -1
  154. package/dist/cjs/popover-04a39914.js.map +0 -1
  155. package/dist/esm/component-store-f0e6cb24.js.map +0 -1
  156. package/dist/esm/popover-9169205e.js.map +0 -1
  157. package/dist/esm-es5/component-store-f0e6cb24.js +0 -5
  158. package/dist/esm-es5/component-store-f0e6cb24.js.map +0 -1
  159. package/dist/esm-es5/popover-9169205e.js +0 -5
  160. package/dist/esm-es5/popover-9169205e.js.map +0 -1
  161. package/dist/nano-components/p-0c6ab963.system.js +0 -5
  162. package/dist/nano-components/p-0c6ab963.system.js.map +0 -1
  163. package/dist/nano-components/p-42498146.js +0 -5
  164. package/dist/nano-components/p-42498146.js.map +0 -1
  165. package/dist/nano-components/p-4ee6f8e7.entry.js +0 -5
  166. package/dist/nano-components/p-4ee6f8e7.entry.js.map +0 -1
  167. package/dist/nano-components/p-8766e262.js +0 -5
  168. package/dist/nano-components/p-8766e262.js.map +0 -1
  169. package/dist/nano-components/p-d82e941d.system.entry.js.map +0 -1
  170. package/dist/nano-components/p-f1f2a010.system.entry.js +0 -5
  171. package/dist/nano-components/p-f1f2a010.system.entry.js.map +0 -1
  172. package/dist/nano-components/p-f65a1ff4.system.js +0 -5
  173. package/dist/nano-components/p-f65a1ff4.system.js.map +0 -1
  174. package/dist/nano-components/p-fb75dd54.entry.js.map +0 -1
@@ -3409,8 +3409,8 @@ function commonjsRequire () {
3409
3409
  }
3410
3410
 
3411
3411
  var algoliasearch_umd = createCommonjsModule(function (module, exports) {
3412
- /*! algoliasearch.umd.js | 4.11.0 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */
3413
- !function(t,e){module.exports=e();}(commonjsGlobal,(function(){function t(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function e(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n);}return r}function r(r){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?e(Object(a),!0).forEach((function(e){t(r,e,a[e]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(a,t));}));}return r}function n(t,e){if(null==t)return {};var r,n,a=function(t,e){if(null==t)return {};var r,n,a={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(a[r]=t[r]);return a}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(a[r]=t[r]);}return a}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var r=[],n=!0,a=!1,o=void 0;try{for(var i,u=t[Symbol.iterator]();!(n=(i=u.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){a=!0,o=t;}finally{try{n||null==u.return||u.return();}finally{if(a)throw o}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(t){var e,r="algoliasearch-client-js-".concat(t.key),n=function(){return void 0===e&&(e=t.localStorage||window.localStorage),e},o=function(){return JSON.parse(n().getItem(r)||"{}")};return {get:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var r=JSON.stringify(t),n=o()[r];return Promise.all([n||e(),void 0!==n])})).then((function(t){var e=a(t,2),n=e[0],o=e[1];return Promise.all([n,o||r.miss(n)])})).then((function(t){return a(t,1)[0]}))},set:function(t,e){return Promise.resolve().then((function(){var a=o();return a[JSON.stringify(t)]=e,n().setItem(r,JSON.stringify(a)),e}))},delete:function(t){return Promise.resolve().then((function(){var e=o();delete e[JSON.stringify(t)],n().setItem(r,JSON.stringify(e));}))},clear:function(){return Promise.resolve().then((function(){n().removeItem(r);}))}}}function u(t){var e=o(t.caches),r=e.shift();return void 0===r?{get:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},n=e();return n.then((function(t){return Promise.all([t,r.miss(t)])})).then((function(t){return a(t,1)[0]}))},set:function(t,e){return Promise.resolve(e)},delete:function(t){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(t,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return r.get(t,n,a).catch((function(){return u({caches:e}).get(t,n,a)}))},set:function(t,n){return r.set(t,n).catch((function(){return u({caches:e}).set(t,n)}))},delete:function(t){return r.delete(t).catch((function(){return u({caches:e}).delete(t)}))},clear:function(){return r.clear().catch((function(){return u({caches:e}).clear()}))}}}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},e={};return {get:function(r,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},o=JSON.stringify(r);if(o in e)return Promise.resolve(t.serializable?JSON.parse(e[o]):e[o]);var i=n(),u=a&&a.miss||function(){return Promise.resolve()};return i.then((function(t){return u(t)})).then((function(){return i}))},set:function(r,n){return e[JSON.stringify(r)]=t.serializable?JSON.stringify(n):n,Promise.resolve(n)},delete:function(t){return delete e[JSON.stringify(t)],Promise.resolve()},clear:function(){return e={},Promise.resolve()}}}function c(t,e,r){var n={"x-algolia-api-key":r,"x-algolia-application-id":e};return {headers:function(){return t===m.WithinHeaders?n:{}},queryParameters:function(){return t===m.WithinQueryParameters?n:{}}}}function f(t){var e=0;return t((function r(){return e++,new Promise((function(n){setTimeout((function(){n(t(r));}),Math.min(100*e,1e3));}))}))}function d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t,e){return Promise.resolve()};return Object.assign(t,{wait:function(r){return d(t.then((function(t){return Promise.all([e(t,r),t])})).then((function(t){return t[1]})))}})}function l(t){for(var e=t.length-1;e>0;e--){var r=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[r],t[r]=n;}return t}function p(t,e){return e?(Object.keys(e).forEach((function(r){t[r]=e[r](t);})),t):t}function h(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var a=0;return t.replace(/%s/g,(function(){return encodeURIComponent(r[a++])}))}var m={WithinQueryParameters:0,WithinHeaders:1};function y(t,e){var r=t||{},n=r.data||{};return Object.keys(r).forEach((function(t){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(t)&&(n[t]=r[t]);})),{data:Object.entries(n).length>0?n:void 0,timeout:r.timeout||e,headers:r.headers||{},queryParameters:r.queryParameters||{},cacheable:r.cacheable}}var g={Read:1,Write:2,Any:3},v=1,b=2,P=3;function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v;return r(r({},t),{},{status:e,lastUpdate:Date.now()})}function O(t){return "string"==typeof t?{protocol:"https",url:t,accept:g.Any}:{protocol:t.protocol||"https",url:t.url,accept:t.accept||g.Any}}var I="DELETE",x="GET",j="POST",D="PUT";function q(t,e){return Promise.all(e.map((function(e){return t.get(e,(function(){return Promise.resolve(w(e))}))}))).then((function(t){var r=t.filter((function(t){return function(t){return t.status===v||Date.now()-t.lastUpdate>12e4}(t)})),n=t.filter((function(t){return function(t){return t.status===P&&Date.now()-t.lastUpdate<=12e4}(t)})),a=[].concat(o(r),o(n));return {getTimeout:function(t,e){return (0===n.length&&0===t?1:n.length+3+t)*e},statelessHosts:a.length>0?a.map((function(t){return O(t)})):e}}))}function S(t,e,n,a){var i=[],u=function(t,e){if(t.method===x||void 0===t.data&&void 0===e.data)return;var n=Array.isArray(t.data)?t.data:r(r({},t.data),e.data);return JSON.stringify(n)}(n,a),s=function(t,e){var n=r(r({},t.headers),e.headers),a={};return Object.keys(n).forEach((function(t){var e=n[t];a[t.toLowerCase()]=e;})),a}(t,a),c=n.method,f=n.method!==x?{}:r(r({},n.data),a.data),d=r(r(r({"x-algolia-agent":t.userAgent.value},t.queryParameters),f),a.queryParameters),l=0,p=function e(r,o){var f=r.pop();if(void 0===f)throw {name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:R(i)};var p={data:u,headers:s,method:c,url:N(f,n.path,d),connectTimeout:o(l,t.timeouts.connect),responseTimeout:o(l,a.timeout)},h=function(t){var e={request:p,response:t,host:f,triesLeft:r.length};return i.push(e),e},m={onSuccess:function(t){return function(t){try{return JSON.parse(t.content)}catch(e){throw function(t,e){return {name:"DeserializationError",message:t,response:e}}(e.message,t)}}(t)},onRetry:function(n){var a=h(n);return n.isTimedOut&&l++,Promise.all([t.logger.info("Retryable failure",A(a)),t.hostsCache.set(f,w(f,n.isTimedOut?P:b))]).then((function(){return e(r,o)}))},onFail:function(t){throw h(t),function(t,e){var r=t.content,n=t.status,a=r;try{a=JSON.parse(r).message;}catch(t){}return function(t,e,r){return {name:"ApiError",message:t,status:e,transporterStackTrace:r}}(a,n,e)}(t,R(i))}};return t.requester.send(p).then((function(t){return function(t,e){return function(t){var e=t.status;return t.isTimedOut||function(t){var e=t.isTimedOut,r=t.status;return !e&&0==~~r}(t)||2!=~~(e/100)&&4!=~~(e/100)}(t)?e.onRetry(t):2==~~(t.status/100)?e.onSuccess(t):e.onFail(t)}(t,m)}))};return q(t.hostsCache,e).then((function(t){return p(o(t.statelessHosts).reverse(),t.getTimeout)}))}function k(t){var e=t.hostsCache,r=t.logger,n=t.requester,o=t.requestsCache,i=t.responsesCache,u=t.timeouts,s=t.userAgent,c=t.hosts,f=t.queryParameters,d={hostsCache:e,logger:r,requester:n,requestsCache:o,responsesCache:i,timeouts:u,userAgent:s,headers:t.headers,queryParameters:f,hosts:c.map((function(t){return O(t)})),read:function(t,e){var r=y(e,d.timeouts.read),n=function(){return S(d,d.hosts.filter((function(t){return 0!=(t.accept&g.Read)})),t,r)};if(!0!==(void 0!==r.cacheable?r.cacheable:t.cacheable))return n();var o={request:t,mappedRequestOptions:r,transporter:{queryParameters:d.queryParameters,headers:d.headers}};return d.responsesCache.get(o,(function(){return d.requestsCache.get(o,(function(){return d.requestsCache.set(o,n()).then((function(t){return Promise.all([d.requestsCache.delete(o),t])}),(function(t){return Promise.all([d.requestsCache.delete(o),Promise.reject(t)])})).then((function(t){var e=a(t,2);return e[1]}))}))}),{miss:function(t){return d.responsesCache.set(o,t)}})},write:function(t,e){return S(d,d.hosts.filter((function(t){return 0!=(t.accept&g.Write)})),t,y(e,d.timeouts.write))}};return d}function T(t){var e={value:"Algolia for JavaScript (".concat(t,")"),add:function(t){var r="; ".concat(t.segment).concat(void 0!==t.version?" (".concat(t.version,")"):"");return -1===e.value.indexOf(r)&&(e.value="".concat(e.value).concat(r)),e}};return e}function N(t,e,r){var n=E(r),a="".concat(t.protocol,"://").concat(t.url,"/").concat("/"===e.charAt(0)?e.substr(1):e);return n.length&&(a+="?".concat(n)),a}function E(t){return Object.keys(t).map((function(e){return h("%s=%s",e,(r=t[e],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r)?JSON.stringify(t[e]):t[e]));var r;})).join("&")}function R(t){return t.map((function(t){return A(t)}))}function A(t){var e=t.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return r(r({},t),{},{request:r(r({},t.request),{},{headers:r(r({},t.request.headers),e)})})}var C=function(t){return function(e,r){return t.transporter.write({method:j,path:"2/abtests",data:e},r)}},U=function(t){return function(e,r){return t.transporter.write({method:I,path:h("2/abtests/%s",e)},r)}},z=function(t){return function(e,r){return t.transporter.read({method:x,path:h("2/abtests/%s",e)},r)}},J=function(t){return function(e){return t.transporter.read({method:x,path:"2/abtests"},e)}},F=function(t){return function(e,r){return t.transporter.write({method:j,path:h("2/abtests/%s/stop",e)},r)}},H=function(t){return function(e){return t.transporter.read({method:x,path:"1/strategies/personalization"},e)}},M=function(t){return function(e,r){return t.transporter.write({method:j,path:"1/strategies/personalization",data:e},r)}};function K(t){return function e(r){return t.request(r).then((function(n){if(void 0!==t.batch&&t.batch(n.hits),!t.shouldStop(n))return n.cursor?e({cursor:n.cursor}):e({page:(r.page||0)+1})}))}({})}var W=function(t){return function(e,a){var o=a||{},i=o.queryParameters,u=n(o,["queryParameters"]),s=r({acl:e},void 0!==i?{queryParameters:i}:{});return d(t.transporter.write({method:j,path:"1/keys",data:s},u),(function(e,r){return f((function(n){return tt(t)(e.key,r).catch((function(t){if(404!==t.status)throw t;return n()}))}))}))}},B=function(t){return function(e,r,n){var a=y(n);return a.queryParameters["X-Algolia-User-ID"]=e,t.transporter.write({method:j,path:"1/clusters/mapping",data:{cluster:r}},a)}},Q=function(t){return function(e,r,n){return t.transporter.write({method:j,path:"1/clusters/mapping/batch",data:{users:e,cluster:r}},n)}},G=function(t){return function(e,r){return d(t.transporter.write({method:j,path:h("/1/dictionaries/%s/batch",e),data:{clearExistingDictionaryEntries:!0,requests:{action:"addEntry",body:[]}}},r),(function(e,r){return jt(t)(e.taskID,r)}))}},L=function(t){return function(e,r,n){return d(t.transporter.write({method:j,path:h("1/indexes/%s/operation",e),data:{operation:"copy",destination:r}},n),(function(r,n){return ut(t)(e,{methods:{waitTask:de}}).waitTask(r.taskID,n)}))}},V=function(t){return function(e,n,a){return L(t)(e,n,r(r({},a),{},{scope:[pe.Rules]}))}},_=function(t){return function(e,n,a){return L(t)(e,n,r(r({},a),{},{scope:[pe.Settings]}))}},X=function(t){return function(e,n,a){return L(t)(e,n,r(r({},a),{},{scope:[pe.Synonyms]}))}},Y=function(t){return function(e,r){return e.method===x?t.transporter.read(e,r):t.transporter.write(e,r)}},Z=function(t){return function(e,r){return d(t.transporter.write({method:I,path:h("1/keys/%s",e)},r),(function(r,n){return f((function(r){return tt(t)(e,n).then(r).catch((function(t){if(404!==t.status)throw t}))}))}))}},$=function(t){return function(e,r,n){var a=r.map((function(t){return {action:"deleteEntry",body:{objectID:t}}}));return d(t.transporter.write({method:j,path:h("/1/dictionaries/%s/batch",e),data:{clearExistingDictionaryEntries:!1,requests:a}},n),(function(e,r){return jt(t)(e.taskID,r)}))}},tt=function(t){return function(e,r){return t.transporter.read({method:x,path:h("1/keys/%s",e)},r)}},et=function(t){return function(e){return t.transporter.read({method:x,path:"/1/dictionaries/*/settings"},e)}},rt=function(t){return function(e){return t.transporter.read({method:x,path:"1/logs"},e)}},nt=function(t){return function(e){return t.transporter.read({method:x,path:"1/clusters/mapping/top"},e)}},at=function(t){return function(e,r){return t.transporter.read({method:x,path:h("1/task/%s",e.toString())},r)}},ot=function(t){return function(e,r){return t.transporter.read({method:x,path:h("1/clusters/mapping/%s",e)},r)}},it=function(t){return function(e){var r=e||{},a=r.retrieveMappings,o=n(r,["retrieveMappings"]);return !0===a&&(o.getClusters=!0),t.transporter.read({method:x,path:"1/clusters/mapping/pending"},o)}},ut=function(t){return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={transporter:t.transporter,appId:t.appId,indexName:e};return p(n,r.methods)}},st=function(t){return function(e){return t.transporter.read({method:x,path:"1/keys"},e)}},ct=function(t){return function(e){return t.transporter.read({method:x,path:"1/clusters"},e)}},ft=function(t){return function(e){return t.transporter.read({method:x,path:"1/indexes"},e)}},dt=function(t){return function(e){return t.transporter.read({method:x,path:"1/clusters/mapping"},e)}},lt=function(t){return function(e,r,n){return d(t.transporter.write({method:j,path:h("1/indexes/%s/operation",e),data:{operation:"move",destination:r}},n),(function(r,n){return ut(t)(e,{methods:{waitTask:de}}).waitTask(r.taskID,n)}))}},pt=function(t){return function(e,r){return d(t.transporter.write({method:j,path:"1/indexes/*/batch",data:{requests:e}},r),(function(e,r){return Promise.all(Object.keys(e.taskID).map((function(n){return ut(t)(n,{methods:{waitTask:de}}).waitTask(e.taskID[n],r)})))}))}},ht=function(t){return function(e,r){return t.transporter.read({method:j,path:"1/indexes/*/objects",data:{requests:e}},r)}},mt=function(t){return function(e,n){var a=e.map((function(t){return r(r({},t),{},{params:E(t.params||{})})}));return t.transporter.read({method:j,path:"1/indexes/*/queries",data:{requests:a},cacheable:!0},n)}},yt=function(t){return function(e,a){return Promise.all(e.map((function(e){var o=e.params,i=o.facetName,u=o.facetQuery,s=n(o,["facetName","facetQuery"]);return ut(t)(e.indexName,{methods:{searchForFacetValues:ue}}).searchForFacetValues(i,u,r(r({},a),s))})))}},gt=function(t){return function(e,r){var n=y(r);return n.queryParameters["X-Algolia-User-ID"]=e,t.transporter.write({method:I,path:"1/clusters/mapping"},n)}},vt=function(t){return function(e,r,n){var a=r.map((function(t){return {action:"addEntry",body:t}}));return d(t.transporter.write({method:j,path:h("/1/dictionaries/%s/batch",e),data:{clearExistingDictionaryEntries:!0,requests:a}},n),(function(e,r){return jt(t)(e.taskID,r)}))}},bt=function(t){return function(e,r){return d(t.transporter.write({method:j,path:h("1/keys/%s/restore",e)},r),(function(r,n){return f((function(r){return tt(t)(e,n).catch((function(t){if(404!==t.status)throw t;return r()}))}))}))}},Pt=function(t){return function(e,r,n){var a=r.map((function(t){return {action:"addEntry",body:t}}));return d(t.transporter.write({method:j,path:h("/1/dictionaries/%s/batch",e),data:{clearExistingDictionaryEntries:!1,requests:a}},n),(function(e,r){return jt(t)(e.taskID,r)}))}},wt=function(t){return function(e,r,n){return t.transporter.read({method:j,path:h("/1/dictionaries/%s/search",e),data:{query:r},cacheable:!0},n)}},Ot=function(t){return function(e,r){return t.transporter.read({method:j,path:"1/clusters/mapping/search",data:{query:e}},r)}},It=function(t){return function(e,r){return d(t.transporter.write({method:D,path:"/1/dictionaries/*/settings",data:e},r),(function(e,r){return jt(t)(e.taskID,r)}))}},xt=function(t){return function(e,r){var a=Object.assign({},r),o=r||{},i=o.queryParameters,u=n(o,["queryParameters"]),s=i?{queryParameters:i}:{},c=["acl","indexes","referers","restrictSources","queryParameters","description","maxQueriesPerIPPerHour","maxHitsPerQuery"];return d(t.transporter.write({method:D,path:h("1/keys/%s",e),data:s},u),(function(r,n){return f((function(r){return tt(t)(e,n).then((function(t){return function(t){return Object.keys(a).filter((function(t){return -1!==c.indexOf(t)})).every((function(e){return t[e]===a[e]}))}(t)?Promise.resolve():r()}))}))}))}},jt=function(t){return function(e,r){return f((function(n){return at(t)(e,r).then((function(t){return "published"!==t.status?n():void 0}))}))}},Dt=function(t){return function(e,r){return d(t.transporter.write({method:j,path:h("1/indexes/%s/batch",t.indexName),data:{requests:e}},r),(function(e,r){return de(t)(e.taskID,r)}))}},qt=function(t){return function(e){return K(r(r({shouldStop:function(t){return void 0===t.cursor}},e),{},{request:function(r){return t.transporter.read({method:j,path:h("1/indexes/%s/browse",t.indexName),data:r},e)}}))}},St=function(t){return function(e){var n=r({hitsPerPage:1e3},e);return K(r(r({shouldStop:function(t){return t.hits.length<n.hitsPerPage}},n),{},{request:function(e){return se(t)("",r(r({},n),e)).then((function(t){return r(r({},t),{},{hits:t.hits.map((function(t){return delete t._highlightResult,t}))})}))}}))}},kt=function(t){return function(e){var n=r({hitsPerPage:1e3},e);return K(r(r({shouldStop:function(t){return t.hits.length<n.hitsPerPage}},n),{},{request:function(e){return ce(t)("",r(r({},n),e)).then((function(t){return r(r({},t),{},{hits:t.hits.map((function(t){return delete t._highlightResult,t}))})}))}}))}},Tt=function(t){return function(e,r,a){var o=a||{},i=o.batchSize,u=n(o,["batchSize"]),s={taskIDs:[],objectIDs:[]};return d(function n(){var a,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,c=[];for(a=o;a<e.length&&(c.push(e[a]),c.length!==(i||1e3));a++);return 0===c.length?Promise.resolve(s):Dt(t)(c.map((function(t){return {action:r,body:t}})),u).then((function(t){return s.objectIDs=s.objectIDs.concat(t.objectIDs),s.taskIDs.push(t.taskID),a++,n(a)}))}(),(function(e,r){return Promise.all(e.taskIDs.map((function(e){return de(t)(e,r)})))}))}},Nt=function(t){return function(e){return d(t.transporter.write({method:j,path:h("1/indexes/%s/clear",t.indexName)},e),(function(e,r){return de(t)(e.taskID,r)}))}},Et=function(t){return function(e){var r=e||{},a=r.forwardToReplicas,o=y(n(r,["forwardToReplicas"]));return a&&(o.queryParameters.forwardToReplicas=1),d(t.transporter.write({method:j,path:h("1/indexes/%s/rules/clear",t.indexName)},o),(function(e,r){return de(t)(e.taskID,r)}))}},Rt=function(t){return function(e){var r=e||{},a=r.forwardToReplicas,o=y(n(r,["forwardToReplicas"]));return a&&(o.queryParameters.forwardToReplicas=1),d(t.transporter.write({method:j,path:h("1/indexes/%s/synonyms/clear",t.indexName)},o),(function(e,r){return de(t)(e.taskID,r)}))}},At=function(t){return function(e,r){return d(t.transporter.write({method:j,path:h("1/indexes/%s/deleteByQuery",t.indexName),data:e},r),(function(e,r){return de(t)(e.taskID,r)}))}},Ct=function(t){return function(e){return d(t.transporter.write({method:I,path:h("1/indexes/%s",t.indexName)},e),(function(e,r){return de(t)(e.taskID,r)}))}},Ut=function(t){return function(e,r){return d(zt(t)([e],r).then((function(t){return {taskID:t.taskIDs[0]}})),(function(e,r){return de(t)(e.taskID,r)}))}},zt=function(t){return function(e,r){var n=e.map((function(t){return {objectID:t}}));return Tt(t)(n,le.DeleteObject,r)}},Jt=function(t){return function(e,r){var a=r||{},o=a.forwardToReplicas,i=y(n(a,["forwardToReplicas"]));return o&&(i.queryParameters.forwardToReplicas=1),d(t.transporter.write({method:I,path:h("1/indexes/%s/rules/%s",t.indexName,e)},i),(function(e,r){return de(t)(e.taskID,r)}))}},Ft=function(t){return function(e,r){var a=r||{},o=a.forwardToReplicas,i=y(n(a,["forwardToReplicas"]));return o&&(i.queryParameters.forwardToReplicas=1),d(t.transporter.write({method:I,path:h("1/indexes/%s/synonyms/%s",t.indexName,e)},i),(function(e,r){return de(t)(e.taskID,r)}))}},Ht=function(t){return function(e){return Lt(t)(e).then((function(){return !0})).catch((function(t){if(404!==t.status)throw t;return !1}))}},Mt=function(t){return function(e,r,n){return t.transporter.read({method:j,path:h("1/answers/%s/prediction",t.indexName),data:{query:e,queryLanguages:r},cacheable:!0},n)}},Kt=function(t){return function(e,o){var i=o||{},u=i.query,s=i.paginate,c=n(i,["query","paginate"]),f=0;return function n(){return ie(t)(u||"",r(r({},c),{},{page:f})).then((function(t){for(var r=0,o=Object.entries(t.hits);r<o.length;r++){var i=a(o[r],2),u=i[0],c=i[1];if(e(c))return {object:c,position:parseInt(u,10),page:f}}if(f++,!1===s||f>=t.nbPages)throw {name:"ObjectNotFoundError",message:"Object not found."};return n()}))}()}},Wt=function(t){return function(e,r){return t.transporter.read({method:x,path:h("1/indexes/%s/%s",t.indexName,e)},r)}},Bt=function(){return function(t,e){for(var r=0,n=Object.entries(t.hits);r<n.length;r++){var o=a(n[r],2),i=o[0];if(o[1].objectID===e)return parseInt(i,10)}return -1}},Qt=function(t){return function(e,a){var o=a||{},i=o.attributesToRetrieve,u=n(o,["attributesToRetrieve"]),s=e.map((function(e){return r({indexName:t.indexName,objectID:e},i?{attributesToRetrieve:i}:{})}));return t.transporter.read({method:j,path:"1/indexes/*/objects",data:{requests:s}},u)}},Gt=function(t){return function(e,r){return t.transporter.read({method:x,path:h("1/indexes/%s/rules/%s",t.indexName,e)},r)}},Lt=function(t){return function(e){return t.transporter.read({method:x,path:h("1/indexes/%s/settings",t.indexName),data:{getVersion:2}},e)}},Vt=function(t){return function(e,r){return t.transporter.read({method:x,path:h("1/indexes/%s/synonyms/%s",t.indexName,e)},r)}},_t=function(t){return function(e,r){return d(Xt(t)([e],r).then((function(t){return {objectID:t.objectIDs[0],taskID:t.taskIDs[0]}})),(function(e,r){return de(t)(e.taskID,r)}))}},Xt=function(t){return function(e,r){var a=r||{},o=a.createIfNotExists,i=n(a,["createIfNotExists"]),u=o?le.PartialUpdateObject:le.PartialUpdateObjectNoCreate;return Tt(t)(e,u,i)}},Yt=function(t){return function(e,i){var u=i||{},s=u.safe,c=u.autoGenerateObjectIDIfNotExist,f=u.batchSize,l=n(u,["safe","autoGenerateObjectIDIfNotExist","batchSize"]),p=function(e,r,n,a){return d(t.transporter.write({method:j,path:h("1/indexes/%s/operation",e),data:{operation:n,destination:r}},a),(function(e,r){return de(t)(e.taskID,r)}))},m=Math.random().toString(36).substring(7),y="".concat(t.indexName,"_tmp_").concat(m),g=ee({appId:t.appId,transporter:t.transporter,indexName:y}),v=[],b=p(t.indexName,y,"copy",r(r({},l),{},{scope:["settings","synonyms","rules"]}));return v.push(b),d((s?b.wait(l):b).then((function(){var t=g(e,r(r({},l),{},{autoGenerateObjectIDIfNotExist:c,batchSize:f}));return v.push(t),s?t.wait(l):t})).then((function(){var e=p(y,t.indexName,"move",l);return v.push(e),s?e.wait(l):e})).then((function(){return Promise.all(v)})).then((function(t){var e=a(t,3),r=e[0],n=e[1],i=e[2];return {objectIDs:n.objectIDs,taskIDs:[r.taskID].concat(o(n.taskIDs),[i.taskID])}})),(function(t,e){return Promise.all(v.map((function(t){return t.wait(e)})))}))}},Zt=function(t){return function(e,n){return ne(t)(e,r(r({},n),{},{clearExistingRules:!0}))}},$t=function(t){return function(e,n){return oe(t)(e,r(r({},n),{},{clearExistingSynonyms:!0}))}},te=function(t){return function(e,r){return d(ee(t)([e],r).then((function(t){return {objectID:t.objectIDs[0],taskID:t.taskIDs[0]}})),(function(e,r){return de(t)(e.taskID,r)}))}},ee=function(t){return function(e,r){var a=r||{},o=a.autoGenerateObjectIDIfNotExist,i=n(a,["autoGenerateObjectIDIfNotExist"]),u=o?le.AddObject:le.UpdateObject;if(u===le.UpdateObject){var s=!0,c=!1,f=void 0;try{for(var l,p=e[Symbol.iterator]();!(s=(l=p.next()).done);s=!0){if(void 0===l.value.objectID)return d(Promise.reject({name:"MissingObjectIDError",message:"All objects must have an unique objectID (like a primary key) to be valid. Algolia is also able to generate objectIDs automatically but *it's not recommended*. To do it, use the `{'autoGenerateObjectIDIfNotExist': true}` option."}))}}catch(t){c=!0,f=t;}finally{try{s||null==p.return||p.return();}finally{if(c)throw f}}}return Tt(t)(e,u,i)}},re=function(t){return function(e,r){return ne(t)([e],r)}},ne=function(t){return function(e,r){var a=r||{},o=a.forwardToReplicas,i=a.clearExistingRules,u=y(n(a,["forwardToReplicas","clearExistingRules"]));return o&&(u.queryParameters.forwardToReplicas=1),i&&(u.queryParameters.clearExistingRules=1),d(t.transporter.write({method:j,path:h("1/indexes/%s/rules/batch",t.indexName),data:e},u),(function(e,r){return de(t)(e.taskID,r)}))}},ae=function(t){return function(e,r){return oe(t)([e],r)}},oe=function(t){return function(e,r){var a=r||{},o=a.forwardToReplicas,i=a.clearExistingSynonyms,u=a.replaceExistingSynonyms,s=y(n(a,["forwardToReplicas","clearExistingSynonyms","replaceExistingSynonyms"]));return o&&(s.queryParameters.forwardToReplicas=1),(u||i)&&(s.queryParameters.replaceExistingSynonyms=1),d(t.transporter.write({method:j,path:h("1/indexes/%s/synonyms/batch",t.indexName),data:e},s),(function(e,r){return de(t)(e.taskID,r)}))}},ie=function(t){return function(e,r){return t.transporter.read({method:j,path:h("1/indexes/%s/query",t.indexName),data:{query:e},cacheable:!0},r)}},ue=function(t){return function(e,r,n){return t.transporter.read({method:j,path:h("1/indexes/%s/facets/%s/query",t.indexName,e),data:{facetQuery:r},cacheable:!0},n)}},se=function(t){return function(e,r){return t.transporter.read({method:j,path:h("1/indexes/%s/rules/search",t.indexName),data:{query:e}},r)}},ce=function(t){return function(e,r){return t.transporter.read({method:j,path:h("1/indexes/%s/synonyms/search",t.indexName),data:{query:e}},r)}},fe=function(t){return function(e,r){var a=r||{},o=a.forwardToReplicas,i=y(n(a,["forwardToReplicas"]));return o&&(i.queryParameters.forwardToReplicas=1),d(t.transporter.write({method:D,path:h("1/indexes/%s/settings",t.indexName),data:e},i),(function(e,r){return de(t)(e.taskID,r)}))}},de=function(t){return function(e,r){return f((function(n){return function(t){return function(e,r){return t.transporter.read({method:x,path:h("1/indexes/%s/task/%s",t.indexName,e.toString())},r)}}(t)(e,r).then((function(t){return "published"!==t.status?n():void 0}))}))}},le={AddObject:"addObject",UpdateObject:"updateObject",PartialUpdateObject:"partialUpdateObject",PartialUpdateObjectNoCreate:"partialUpdateObjectNoCreate",DeleteObject:"deleteObject",DeleteIndex:"delete",ClearIndex:"clear"},pe={Settings:"settings",Synonyms:"synonyms",Rules:"rules"},he=1,me=2,ye=3;function ge(t,e,n){var a,o={appId:t,apiKey:e,timeouts:{connect:1,read:2,write:30},requester:{send:function(t){return new Promise((function(e){var r=new XMLHttpRequest;r.open(t.method,t.url,!0),Object.keys(t.headers).forEach((function(e){return r.setRequestHeader(e,t.headers[e])}));var n,a=function(t,n){return setTimeout((function(){r.abort(),e({status:0,content:n,isTimedOut:!0});}),1e3*t)},o=a(t.connectTimeout,"Connection timeout");r.onreadystatechange=function(){r.readyState>r.OPENED&&void 0===n&&(clearTimeout(o),n=a(t.responseTimeout,"Socket timeout"));},r.onerror=function(){0===r.status&&(clearTimeout(o),clearTimeout(n),e({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}));},r.onload=function(){clearTimeout(o),clearTimeout(n),e({content:r.responseText,status:r.status,isTimedOut:!1});},r.send(t.data);}))}},logger:(a=ye,{debug:function(t,e){return he>=a&&console.debug(t,e),Promise.resolve()},info:function(t,e){return me>=a&&console.info(t,e),Promise.resolve()},error:function(t,e){return console.error(t,e),Promise.resolve()}}),responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:u({caches:[i({key:"".concat("4.11.0","-").concat(t)}),s()]}),userAgent:T("4.11.0").add({segment:"Browser"})},f=r(r({},o),n),d=function(){return function(t){return function(t){var e=t.region||"us",n=c(m.WithinHeaders,t.appId,t.apiKey),a=k(r(r({hosts:[{url:"personalization.".concat(e,".algolia.com")}]},t),{},{headers:r(r(r({},n.headers()),{"content-type":"application/json"}),t.headers),queryParameters:r(r({},n.queryParameters()),t.queryParameters)}));return p({appId:t.appId,transporter:a},t.methods)}(r(r(r({},o),t),{},{methods:{getPersonalizationStrategy:H,setPersonalizationStrategy:M}}))}};return function(t){var e=t.appId,n=c(void 0!==t.authMode?t.authMode:m.WithinHeaders,e,t.apiKey),a=k(r(r({hosts:[{url:"".concat(e,"-dsn.algolia.net"),accept:g.Read},{url:"".concat(e,".algolia.net"),accept:g.Write}].concat(l([{url:"".concat(e,"-1.algolianet.com")},{url:"".concat(e,"-2.algolianet.com")},{url:"".concat(e,"-3.algolianet.com")}]))},t),{},{headers:r(r(r({},n.headers()),{"content-type":"application/x-www-form-urlencoded"}),t.headers),queryParameters:r(r({},n.queryParameters()),t.queryParameters)}));return p({transporter:a,appId:e,addAlgoliaAgent:function(t,e){a.userAgent.add({segment:t,version:e});},clearCache:function(){return Promise.all([a.requestsCache.clear(),a.responsesCache.clear()]).then((function(){}))}},t.methods)}(r(r({},f),{},{methods:{search:mt,searchForFacetValues:yt,multipleBatch:pt,multipleGetObjects:ht,multipleQueries:mt,copyIndex:L,copySettings:_,copySynonyms:X,copyRules:V,moveIndex:lt,listIndices:ft,getLogs:rt,listClusters:ct,multipleSearchForFacetValues:yt,getApiKey:tt,addApiKey:W,listApiKeys:st,updateApiKey:xt,deleteApiKey:Z,restoreApiKey:bt,assignUserID:B,assignUserIDs:Q,getUserID:ot,searchUserIDs:Ot,listUserIDs:dt,getTopUserIDs:nt,removeUserID:gt,hasPendingMappings:it,clearDictionaryEntries:G,deleteDictionaryEntries:$,getDictionarySettings:et,getAppTask:at,replaceDictionaryEntries:vt,saveDictionaryEntries:Pt,searchDictionaryEntries:wt,setDictionarySettings:It,waitAppTask:jt,customRequest:Y,initIndex:function(t){return function(e){return ut(t)(e,{methods:{batch:Dt,delete:Ct,findAnswers:Mt,getObject:Wt,getObjects:Qt,saveObject:te,saveObjects:ee,search:ie,searchForFacetValues:ue,waitTask:de,setSettings:fe,getSettings:Lt,partialUpdateObject:_t,partialUpdateObjects:Xt,deleteObject:Ut,deleteObjects:zt,deleteBy:At,clearObjects:Nt,browseObjects:qt,getObjectPosition:Bt,findObject:Kt,exists:Ht,saveSynonym:ae,saveSynonyms:oe,getSynonym:Vt,searchSynonyms:ce,browseSynonyms:kt,deleteSynonym:Ft,clearSynonyms:Rt,replaceAllObjects:Yt,replaceAllSynonyms:$t,searchRules:se,getRule:Gt,deleteRule:Jt,saveRule:re,saveRules:ne,replaceAllRules:Zt,browseRules:St,clearRules:Et}})}},initAnalytics:function(){return function(t){return function(t){var e=t.region||"us",n=c(m.WithinHeaders,t.appId,t.apiKey),a=k(r(r({hosts:[{url:"analytics.".concat(e,".algolia.com")}]},t),{},{headers:r(r(r({},n.headers()),{"content-type":"application/json"}),t.headers),queryParameters:r(r({},n.queryParameters()),t.queryParameters)}));return p({appId:t.appId,transporter:a},t.methods)}(r(r(r({},o),t),{},{methods:{addABTest:C,getABTest:z,getABTests:J,stopABTest:F,deleteABTest:U}}))}},initPersonalization:d,initRecommendation:function(){return function(t){return f.logger.info("The `initRecommendation` method is deprecated. Use `initPersonalization` instead."),d()(t)}}}}))}return ge.version="4.11.0",ge}));
3412
+ /*! algoliasearch.umd.js | 4.12.0 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */
3413
+ !function(t,e){module.exports=e();}(commonjsGlobal,(function(){function t(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function e(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n);}return r}function r(r){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?e(Object(a),!0).forEach((function(e){t(r,e,a[e]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(a,t));}));}return r}function n(t,e){if(null==t)return {};var r,n,a=function(t,e){if(null==t)return {};var r,n,a={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(a[r]=t[r]);return a}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(a[r]=t[r]);}return a}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var r=[],n=!0,a=!1,o=void 0;try{for(var i,u=t[Symbol.iterator]();!(n=(i=u.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){a=!0,o=t;}finally{try{n||null==u.return||u.return();}finally{if(a)throw o}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(t){var e,r="algoliasearch-client-js-".concat(t.key),n=function(){return void 0===e&&(e=t.localStorage||window.localStorage),e},o=function(){return JSON.parse(n().getItem(r)||"{}")};return {get:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var r=JSON.stringify(t),n=o()[r];return Promise.all([n||e(),void 0!==n])})).then((function(t){var e=a(t,2),n=e[0],o=e[1];return Promise.all([n,o||r.miss(n)])})).then((function(t){return a(t,1)[0]}))},set:function(t,e){return Promise.resolve().then((function(){var a=o();return a[JSON.stringify(t)]=e,n().setItem(r,JSON.stringify(a)),e}))},delete:function(t){return Promise.resolve().then((function(){var e=o();delete e[JSON.stringify(t)],n().setItem(r,JSON.stringify(e));}))},clear:function(){return Promise.resolve().then((function(){n().removeItem(r);}))}}}function u(t){var e=o(t.caches),r=e.shift();return void 0===r?{get:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},n=e();return n.then((function(t){return Promise.all([t,r.miss(t)])})).then((function(t){return a(t,1)[0]}))},set:function(t,e){return Promise.resolve(e)},delete:function(t){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(t,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return r.get(t,n,a).catch((function(){return u({caches:e}).get(t,n,a)}))},set:function(t,n){return r.set(t,n).catch((function(){return u({caches:e}).set(t,n)}))},delete:function(t){return r.delete(t).catch((function(){return u({caches:e}).delete(t)}))},clear:function(){return r.clear().catch((function(){return u({caches:e}).clear()}))}}}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},e={};return {get:function(r,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},o=JSON.stringify(r);if(o in e)return Promise.resolve(t.serializable?JSON.parse(e[o]):e[o]);var i=n(),u=a&&a.miss||function(){return Promise.resolve()};return i.then((function(t){return u(t)})).then((function(){return i}))},set:function(r,n){return e[JSON.stringify(r)]=t.serializable?JSON.stringify(n):n,Promise.resolve(n)},delete:function(t){return delete e[JSON.stringify(t)],Promise.resolve()},clear:function(){return e={},Promise.resolve()}}}function c(t,e,r){var n={"x-algolia-api-key":r,"x-algolia-application-id":e};return {headers:function(){return t===m.WithinHeaders?n:{}},queryParameters:function(){return t===m.WithinQueryParameters?n:{}}}}function f(t){var e=0;return t((function r(){return e++,new Promise((function(n){setTimeout((function(){n(t(r));}),Math.min(100*e,1e3));}))}))}function d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t,e){return Promise.resolve()};return Object.assign(t,{wait:function(r){return d(t.then((function(t){return Promise.all([e(t,r),t])})).then((function(t){return t[1]})))}})}function l(t){for(var e=t.length-1;e>0;e--){var r=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[r],t[r]=n;}return t}function p(t,e){return e?(Object.keys(e).forEach((function(r){t[r]=e[r](t);})),t):t}function h(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var a=0;return t.replace(/%s/g,(function(){return encodeURIComponent(r[a++])}))}var m={WithinQueryParameters:0,WithinHeaders:1};function y(t,e){var r=t||{},n=r.data||{};return Object.keys(r).forEach((function(t){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(t)&&(n[t]=r[t]);})),{data:Object.entries(n).length>0?n:void 0,timeout:r.timeout||e,headers:r.headers||{},queryParameters:r.queryParameters||{},cacheable:r.cacheable}}var g={Read:1,Write:2,Any:3},v=1,b=2,P=3;function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v;return r(r({},t),{},{status:e,lastUpdate:Date.now()})}function O(t){return "string"==typeof t?{protocol:"https",url:t,accept:g.Any}:{protocol:t.protocol||"https",url:t.url,accept:t.accept||g.Any}}var I="DELETE",x="GET",j="POST",D="PUT";function q(t,e){return Promise.all(e.map((function(e){return t.get(e,(function(){return Promise.resolve(w(e))}))}))).then((function(t){var r=t.filter((function(t){return function(t){return t.status===v||Date.now()-t.lastUpdate>12e4}(t)})),n=t.filter((function(t){return function(t){return t.status===P&&Date.now()-t.lastUpdate<=12e4}(t)})),a=[].concat(o(r),o(n));return {getTimeout:function(t,e){return (0===n.length&&0===t?1:n.length+3+t)*e},statelessHosts:a.length>0?a.map((function(t){return O(t)})):e}}))}function S(t,e,n,a){var i=[],u=function(t,e){if(t.method===x||void 0===t.data&&void 0===e.data)return;var n=Array.isArray(t.data)?t.data:r(r({},t.data),e.data);return JSON.stringify(n)}(n,a),s=function(t,e){var n=r(r({},t.headers),e.headers),a={};return Object.keys(n).forEach((function(t){var e=n[t];a[t.toLowerCase()]=e;})),a}(t,a),c=n.method,f=n.method!==x?{}:r(r({},n.data),a.data),d=r(r(r({"x-algolia-agent":t.userAgent.value},t.queryParameters),f),a.queryParameters),l=0,p=function e(r,o){var f=r.pop();if(void 0===f)throw {name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:R(i)};var p={data:u,headers:s,method:c,url:N(f,n.path,d),connectTimeout:o(l,t.timeouts.connect),responseTimeout:o(l,a.timeout)},h=function(t){var e={request:p,response:t,host:f,triesLeft:r.length};return i.push(e),e},m={onSuccess:function(t){return function(t){try{return JSON.parse(t.content)}catch(e){throw function(t,e){return {name:"DeserializationError",message:t,response:e}}(e.message,t)}}(t)},onRetry:function(n){var a=h(n);return n.isTimedOut&&l++,Promise.all([t.logger.info("Retryable failure",A(a)),t.hostsCache.set(f,w(f,n.isTimedOut?P:b))]).then((function(){return e(r,o)}))},onFail:function(t){throw h(t),function(t,e){var r=t.content,n=t.status,a=r;try{a=JSON.parse(r).message;}catch(t){}return function(t,e,r){return {name:"ApiError",message:t,status:e,transporterStackTrace:r}}(a,n,e)}(t,R(i))}};return t.requester.send(p).then((function(t){return function(t,e){return function(t){var e=t.status;return t.isTimedOut||function(t){var e=t.isTimedOut,r=t.status;return !e&&0==~~r}(t)||2!=~~(e/100)&&4!=~~(e/100)}(t)?e.onRetry(t):2==~~(t.status/100)?e.onSuccess(t):e.onFail(t)}(t,m)}))};return q(t.hostsCache,e).then((function(t){return p(o(t.statelessHosts).reverse(),t.getTimeout)}))}function k(t){var e=t.hostsCache,r=t.logger,n=t.requester,o=t.requestsCache,i=t.responsesCache,u=t.timeouts,s=t.userAgent,c=t.hosts,f=t.queryParameters,d={hostsCache:e,logger:r,requester:n,requestsCache:o,responsesCache:i,timeouts:u,userAgent:s,headers:t.headers,queryParameters:f,hosts:c.map((function(t){return O(t)})),read:function(t,e){var r=y(e,d.timeouts.read),n=function(){return S(d,d.hosts.filter((function(t){return 0!=(t.accept&g.Read)})),t,r)};if(!0!==(void 0!==r.cacheable?r.cacheable:t.cacheable))return n();var o={request:t,mappedRequestOptions:r,transporter:{queryParameters:d.queryParameters,headers:d.headers}};return d.responsesCache.get(o,(function(){return d.requestsCache.get(o,(function(){return d.requestsCache.set(o,n()).then((function(t){return Promise.all([d.requestsCache.delete(o),t])}),(function(t){return Promise.all([d.requestsCache.delete(o),Promise.reject(t)])})).then((function(t){var e=a(t,2);return e[1]}))}))}),{miss:function(t){return d.responsesCache.set(o,t)}})},write:function(t,e){return S(d,d.hosts.filter((function(t){return 0!=(t.accept&g.Write)})),t,y(e,d.timeouts.write))}};return d}function T(t){var e={value:"Algolia for JavaScript (".concat(t,")"),add:function(t){var r="; ".concat(t.segment).concat(void 0!==t.version?" (".concat(t.version,")"):"");return -1===e.value.indexOf(r)&&(e.value="".concat(e.value).concat(r)),e}};return e}function N(t,e,r){var n=E(r),a="".concat(t.protocol,"://").concat(t.url,"/").concat("/"===e.charAt(0)?e.substr(1):e);return n.length&&(a+="?".concat(n)),a}function E(t){return Object.keys(t).map((function(e){return h("%s=%s",e,(r=t[e],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r)?JSON.stringify(t[e]):t[e]));var r;})).join("&")}function R(t){return t.map((function(t){return A(t)}))}function A(t){var e=t.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return r(r({},t),{},{request:r(r({},t.request),{},{headers:r(r({},t.request.headers),e)})})}var C=function(t){return function(e,r){return t.transporter.write({method:j,path:"2/abtests",data:e},r)}},U=function(t){return function(e,r){return t.transporter.write({method:I,path:h("2/abtests/%s",e)},r)}},z=function(t){return function(e,r){return t.transporter.read({method:x,path:h("2/abtests/%s",e)},r)}},J=function(t){return function(e){return t.transporter.read({method:x,path:"2/abtests"},e)}},F=function(t){return function(e,r){return t.transporter.write({method:j,path:h("2/abtests/%s/stop",e)},r)}},H=function(t){return function(e){return t.transporter.read({method:x,path:"1/strategies/personalization"},e)}},M=function(t){return function(e,r){return t.transporter.write({method:j,path:"1/strategies/personalization",data:e},r)}};function K(t){return function e(r){return t.request(r).then((function(n){if(void 0!==t.batch&&t.batch(n.hits),!t.shouldStop(n))return n.cursor?e({cursor:n.cursor}):e({page:(r.page||0)+1})}))}({})}var W=function(t){return function(e,a){var o=a||{},i=o.queryParameters,u=n(o,["queryParameters"]),s=r({acl:e},void 0!==i?{queryParameters:i}:{});return d(t.transporter.write({method:j,path:"1/keys",data:s},u),(function(e,r){return f((function(n){return tt(t)(e.key,r).catch((function(t){if(404!==t.status)throw t;return n()}))}))}))}},B=function(t){return function(e,r,n){var a=y(n);return a.queryParameters["X-Algolia-User-ID"]=e,t.transporter.write({method:j,path:"1/clusters/mapping",data:{cluster:r}},a)}},Q=function(t){return function(e,r,n){return t.transporter.write({method:j,path:"1/clusters/mapping/batch",data:{users:e,cluster:r}},n)}},G=function(t){return function(e,r){return d(t.transporter.write({method:j,path:h("/1/dictionaries/%s/batch",e),data:{clearExistingDictionaryEntries:!0,requests:{action:"addEntry",body:[]}}},r),(function(e,r){return jt(t)(e.taskID,r)}))}},L=function(t){return function(e,r,n){return d(t.transporter.write({method:j,path:h("1/indexes/%s/operation",e),data:{operation:"copy",destination:r}},n),(function(r,n){return ut(t)(e,{methods:{waitTask:de}}).waitTask(r.taskID,n)}))}},V=function(t){return function(e,n,a){return L(t)(e,n,r(r({},a),{},{scope:[pe.Rules]}))}},_=function(t){return function(e,n,a){return L(t)(e,n,r(r({},a),{},{scope:[pe.Settings]}))}},X=function(t){return function(e,n,a){return L(t)(e,n,r(r({},a),{},{scope:[pe.Synonyms]}))}},Y=function(t){return function(e,r){return e.method===x?t.transporter.read(e,r):t.transporter.write(e,r)}},Z=function(t){return function(e,r){return d(t.transporter.write({method:I,path:h("1/keys/%s",e)},r),(function(r,n){return f((function(r){return tt(t)(e,n).then(r).catch((function(t){if(404!==t.status)throw t}))}))}))}},$=function(t){return function(e,r,n){var a=r.map((function(t){return {action:"deleteEntry",body:{objectID:t}}}));return d(t.transporter.write({method:j,path:h("/1/dictionaries/%s/batch",e),data:{clearExistingDictionaryEntries:!1,requests:a}},n),(function(e,r){return jt(t)(e.taskID,r)}))}},tt=function(t){return function(e,r){return t.transporter.read({method:x,path:h("1/keys/%s",e)},r)}},et=function(t){return function(e,r){return t.transporter.read({method:x,path:h("1/task/%s",e.toString())},r)}},rt=function(t){return function(e){return t.transporter.read({method:x,path:"/1/dictionaries/*/settings"},e)}},nt=function(t){return function(e){return t.transporter.read({method:x,path:"1/logs"},e)}},at=function(t){return function(e){return t.transporter.read({method:x,path:"1/clusters/mapping/top"},e)}},ot=function(t){return function(e,r){return t.transporter.read({method:x,path:h("1/clusters/mapping/%s",e)},r)}},it=function(t){return function(e){var r=e||{},a=r.retrieveMappings,o=n(r,["retrieveMappings"]);return !0===a&&(o.getClusters=!0),t.transporter.read({method:x,path:"1/clusters/mapping/pending"},o)}},ut=function(t){return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={transporter:t.transporter,appId:t.appId,indexName:e};return p(n,r.methods)}},st=function(t){return function(e){return t.transporter.read({method:x,path:"1/keys"},e)}},ct=function(t){return function(e){return t.transporter.read({method:x,path:"1/clusters"},e)}},ft=function(t){return function(e){return t.transporter.read({method:x,path:"1/indexes"},e)}},dt=function(t){return function(e){return t.transporter.read({method:x,path:"1/clusters/mapping"},e)}},lt=function(t){return function(e,r,n){return d(t.transporter.write({method:j,path:h("1/indexes/%s/operation",e),data:{operation:"move",destination:r}},n),(function(r,n){return ut(t)(e,{methods:{waitTask:de}}).waitTask(r.taskID,n)}))}},pt=function(t){return function(e,r){return d(t.transporter.write({method:j,path:"1/indexes/*/batch",data:{requests:e}},r),(function(e,r){return Promise.all(Object.keys(e.taskID).map((function(n){return ut(t)(n,{methods:{waitTask:de}}).waitTask(e.taskID[n],r)})))}))}},ht=function(t){return function(e,r){return t.transporter.read({method:j,path:"1/indexes/*/objects",data:{requests:e}},r)}},mt=function(t){return function(e,n){var a=e.map((function(t){return r(r({},t),{},{params:E(t.params||{})})}));return t.transporter.read({method:j,path:"1/indexes/*/queries",data:{requests:a},cacheable:!0},n)}},yt=function(t){return function(e,a){return Promise.all(e.map((function(e){var o=e.params,i=o.facetName,u=o.facetQuery,s=n(o,["facetName","facetQuery"]);return ut(t)(e.indexName,{methods:{searchForFacetValues:ue}}).searchForFacetValues(i,u,r(r({},a),s))})))}},gt=function(t){return function(e,r){var n=y(r);return n.queryParameters["X-Algolia-User-ID"]=e,t.transporter.write({method:I,path:"1/clusters/mapping"},n)}},vt=function(t){return function(e,r,n){var a=r.map((function(t){return {action:"addEntry",body:t}}));return d(t.transporter.write({method:j,path:h("/1/dictionaries/%s/batch",e),data:{clearExistingDictionaryEntries:!0,requests:a}},n),(function(e,r){return jt(t)(e.taskID,r)}))}},bt=function(t){return function(e,r){return d(t.transporter.write({method:j,path:h("1/keys/%s/restore",e)},r),(function(r,n){return f((function(r){return tt(t)(e,n).catch((function(t){if(404!==t.status)throw t;return r()}))}))}))}},Pt=function(t){return function(e,r,n){var a=r.map((function(t){return {action:"addEntry",body:t}}));return d(t.transporter.write({method:j,path:h("/1/dictionaries/%s/batch",e),data:{clearExistingDictionaryEntries:!1,requests:a}},n),(function(e,r){return jt(t)(e.taskID,r)}))}},wt=function(t){return function(e,r,n){return t.transporter.read({method:j,path:h("/1/dictionaries/%s/search",e),data:{query:r},cacheable:!0},n)}},Ot=function(t){return function(e,r){return t.transporter.read({method:j,path:"1/clusters/mapping/search",data:{query:e}},r)}},It=function(t){return function(e,r){return d(t.transporter.write({method:D,path:"/1/dictionaries/*/settings",data:e},r),(function(e,r){return jt(t)(e.taskID,r)}))}},xt=function(t){return function(e,r){var a=Object.assign({},r),o=r||{},i=o.queryParameters,u=n(o,["queryParameters"]),s=i?{queryParameters:i}:{},c=["acl","indexes","referers","restrictSources","queryParameters","description","maxQueriesPerIPPerHour","maxHitsPerQuery"];return d(t.transporter.write({method:D,path:h("1/keys/%s",e),data:s},u),(function(r,n){return f((function(r){return tt(t)(e,n).then((function(t){return function(t){return Object.keys(a).filter((function(t){return -1!==c.indexOf(t)})).every((function(e){return t[e]===a[e]}))}(t)?Promise.resolve():r()}))}))}))}},jt=function(t){return function(e,r){return f((function(n){return et(t)(e,r).then((function(t){return "published"!==t.status?n():void 0}))}))}},Dt=function(t){return function(e,r){return d(t.transporter.write({method:j,path:h("1/indexes/%s/batch",t.indexName),data:{requests:e}},r),(function(e,r){return de(t)(e.taskID,r)}))}},qt=function(t){return function(e){return K(r(r({shouldStop:function(t){return void 0===t.cursor}},e),{},{request:function(r){return t.transporter.read({method:j,path:h("1/indexes/%s/browse",t.indexName),data:r},e)}}))}},St=function(t){return function(e){var n=r({hitsPerPage:1e3},e);return K(r(r({shouldStop:function(t){return t.hits.length<n.hitsPerPage}},n),{},{request:function(e){return se(t)("",r(r({},n),e)).then((function(t){return r(r({},t),{},{hits:t.hits.map((function(t){return delete t._highlightResult,t}))})}))}}))}},kt=function(t){return function(e){var n=r({hitsPerPage:1e3},e);return K(r(r({shouldStop:function(t){return t.hits.length<n.hitsPerPage}},n),{},{request:function(e){return ce(t)("",r(r({},n),e)).then((function(t){return r(r({},t),{},{hits:t.hits.map((function(t){return delete t._highlightResult,t}))})}))}}))}},Tt=function(t){return function(e,r,a){var o=a||{},i=o.batchSize,u=n(o,["batchSize"]),s={taskIDs:[],objectIDs:[]};return d(function n(){var a,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,c=[];for(a=o;a<e.length&&(c.push(e[a]),c.length!==(i||1e3));a++);return 0===c.length?Promise.resolve(s):Dt(t)(c.map((function(t){return {action:r,body:t}})),u).then((function(t){return s.objectIDs=s.objectIDs.concat(t.objectIDs),s.taskIDs.push(t.taskID),a++,n(a)}))}(),(function(e,r){return Promise.all(e.taskIDs.map((function(e){return de(t)(e,r)})))}))}},Nt=function(t){return function(e){return d(t.transporter.write({method:j,path:h("1/indexes/%s/clear",t.indexName)},e),(function(e,r){return de(t)(e.taskID,r)}))}},Et=function(t){return function(e){var r=e||{},a=r.forwardToReplicas,o=y(n(r,["forwardToReplicas"]));return a&&(o.queryParameters.forwardToReplicas=1),d(t.transporter.write({method:j,path:h("1/indexes/%s/rules/clear",t.indexName)},o),(function(e,r){return de(t)(e.taskID,r)}))}},Rt=function(t){return function(e){var r=e||{},a=r.forwardToReplicas,o=y(n(r,["forwardToReplicas"]));return a&&(o.queryParameters.forwardToReplicas=1),d(t.transporter.write({method:j,path:h("1/indexes/%s/synonyms/clear",t.indexName)},o),(function(e,r){return de(t)(e.taskID,r)}))}},At=function(t){return function(e,r){return d(t.transporter.write({method:j,path:h("1/indexes/%s/deleteByQuery",t.indexName),data:e},r),(function(e,r){return de(t)(e.taskID,r)}))}},Ct=function(t){return function(e){return d(t.transporter.write({method:I,path:h("1/indexes/%s",t.indexName)},e),(function(e,r){return de(t)(e.taskID,r)}))}},Ut=function(t){return function(e,r){return d(zt(t)([e],r).then((function(t){return {taskID:t.taskIDs[0]}})),(function(e,r){return de(t)(e.taskID,r)}))}},zt=function(t){return function(e,r){var n=e.map((function(t){return {objectID:t}}));return Tt(t)(n,le.DeleteObject,r)}},Jt=function(t){return function(e,r){var a=r||{},o=a.forwardToReplicas,i=y(n(a,["forwardToReplicas"]));return o&&(i.queryParameters.forwardToReplicas=1),d(t.transporter.write({method:I,path:h("1/indexes/%s/rules/%s",t.indexName,e)},i),(function(e,r){return de(t)(e.taskID,r)}))}},Ft=function(t){return function(e,r){var a=r||{},o=a.forwardToReplicas,i=y(n(a,["forwardToReplicas"]));return o&&(i.queryParameters.forwardToReplicas=1),d(t.transporter.write({method:I,path:h("1/indexes/%s/synonyms/%s",t.indexName,e)},i),(function(e,r){return de(t)(e.taskID,r)}))}},Ht=function(t){return function(e){return Lt(t)(e).then((function(){return !0})).catch((function(t){if(404!==t.status)throw t;return !1}))}},Mt=function(t){return function(e,r,n){return t.transporter.read({method:j,path:h("1/answers/%s/prediction",t.indexName),data:{query:e,queryLanguages:r},cacheable:!0},n)}},Kt=function(t){return function(e,o){var i=o||{},u=i.query,s=i.paginate,c=n(i,["query","paginate"]),f=0;return function n(){return ie(t)(u||"",r(r({},c),{},{page:f})).then((function(t){for(var r=0,o=Object.entries(t.hits);r<o.length;r++){var i=a(o[r],2),u=i[0],c=i[1];if(e(c))return {object:c,position:parseInt(u,10),page:f}}if(f++,!1===s||f>=t.nbPages)throw {name:"ObjectNotFoundError",message:"Object not found."};return n()}))}()}},Wt=function(t){return function(e,r){return t.transporter.read({method:x,path:h("1/indexes/%s/%s",t.indexName,e)},r)}},Bt=function(){return function(t,e){for(var r=0,n=Object.entries(t.hits);r<n.length;r++){var o=a(n[r],2),i=o[0];if(o[1].objectID===e)return parseInt(i,10)}return -1}},Qt=function(t){return function(e,a){var o=a||{},i=o.attributesToRetrieve,u=n(o,["attributesToRetrieve"]),s=e.map((function(e){return r({indexName:t.indexName,objectID:e},i?{attributesToRetrieve:i}:{})}));return t.transporter.read({method:j,path:"1/indexes/*/objects",data:{requests:s}},u)}},Gt=function(t){return function(e,r){return t.transporter.read({method:x,path:h("1/indexes/%s/rules/%s",t.indexName,e)},r)}},Lt=function(t){return function(e){return t.transporter.read({method:x,path:h("1/indexes/%s/settings",t.indexName),data:{getVersion:2}},e)}},Vt=function(t){return function(e,r){return t.transporter.read({method:x,path:h("1/indexes/%s/synonyms/%s",t.indexName,e)},r)}},_t=function(t){return function(e,r){return d(Xt(t)([e],r).then((function(t){return {objectID:t.objectIDs[0],taskID:t.taskIDs[0]}})),(function(e,r){return de(t)(e.taskID,r)}))}},Xt=function(t){return function(e,r){var a=r||{},o=a.createIfNotExists,i=n(a,["createIfNotExists"]),u=o?le.PartialUpdateObject:le.PartialUpdateObjectNoCreate;return Tt(t)(e,u,i)}},Yt=function(t){return function(e,i){var u=i||{},s=u.safe,c=u.autoGenerateObjectIDIfNotExist,f=u.batchSize,l=n(u,["safe","autoGenerateObjectIDIfNotExist","batchSize"]),p=function(e,r,n,a){return d(t.transporter.write({method:j,path:h("1/indexes/%s/operation",e),data:{operation:n,destination:r}},a),(function(e,r){return de(t)(e.taskID,r)}))},m=Math.random().toString(36).substring(7),y="".concat(t.indexName,"_tmp_").concat(m),g=ee({appId:t.appId,transporter:t.transporter,indexName:y}),v=[],b=p(t.indexName,y,"copy",r(r({},l),{},{scope:["settings","synonyms","rules"]}));return v.push(b),d((s?b.wait(l):b).then((function(){var t=g(e,r(r({},l),{},{autoGenerateObjectIDIfNotExist:c,batchSize:f}));return v.push(t),s?t.wait(l):t})).then((function(){var e=p(y,t.indexName,"move",l);return v.push(e),s?e.wait(l):e})).then((function(){return Promise.all(v)})).then((function(t){var e=a(t,3),r=e[0],n=e[1],i=e[2];return {objectIDs:n.objectIDs,taskIDs:[r.taskID].concat(o(n.taskIDs),[i.taskID])}})),(function(t,e){return Promise.all(v.map((function(t){return t.wait(e)})))}))}},Zt=function(t){return function(e,n){return ne(t)(e,r(r({},n),{},{clearExistingRules:!0}))}},$t=function(t){return function(e,n){return oe(t)(e,r(r({},n),{},{clearExistingSynonyms:!0}))}},te=function(t){return function(e,r){return d(ee(t)([e],r).then((function(t){return {objectID:t.objectIDs[0],taskID:t.taskIDs[0]}})),(function(e,r){return de(t)(e.taskID,r)}))}},ee=function(t){return function(e,r){var a=r||{},o=a.autoGenerateObjectIDIfNotExist,i=n(a,["autoGenerateObjectIDIfNotExist"]),u=o?le.AddObject:le.UpdateObject;if(u===le.UpdateObject){var s=!0,c=!1,f=void 0;try{for(var l,p=e[Symbol.iterator]();!(s=(l=p.next()).done);s=!0){if(void 0===l.value.objectID)return d(Promise.reject({name:"MissingObjectIDError",message:"All objects must have an unique objectID (like a primary key) to be valid. Algolia is also able to generate objectIDs automatically but *it's not recommended*. To do it, use the `{'autoGenerateObjectIDIfNotExist': true}` option."}))}}catch(t){c=!0,f=t;}finally{try{s||null==p.return||p.return();}finally{if(c)throw f}}}return Tt(t)(e,u,i)}},re=function(t){return function(e,r){return ne(t)([e],r)}},ne=function(t){return function(e,r){var a=r||{},o=a.forwardToReplicas,i=a.clearExistingRules,u=y(n(a,["forwardToReplicas","clearExistingRules"]));return o&&(u.queryParameters.forwardToReplicas=1),i&&(u.queryParameters.clearExistingRules=1),d(t.transporter.write({method:j,path:h("1/indexes/%s/rules/batch",t.indexName),data:e},u),(function(e,r){return de(t)(e.taskID,r)}))}},ae=function(t){return function(e,r){return oe(t)([e],r)}},oe=function(t){return function(e,r){var a=r||{},o=a.forwardToReplicas,i=a.clearExistingSynonyms,u=a.replaceExistingSynonyms,s=y(n(a,["forwardToReplicas","clearExistingSynonyms","replaceExistingSynonyms"]));return o&&(s.queryParameters.forwardToReplicas=1),(u||i)&&(s.queryParameters.replaceExistingSynonyms=1),d(t.transporter.write({method:j,path:h("1/indexes/%s/synonyms/batch",t.indexName),data:e},s),(function(e,r){return de(t)(e.taskID,r)}))}},ie=function(t){return function(e,r){return t.transporter.read({method:j,path:h("1/indexes/%s/query",t.indexName),data:{query:e},cacheable:!0},r)}},ue=function(t){return function(e,r,n){return t.transporter.read({method:j,path:h("1/indexes/%s/facets/%s/query",t.indexName,e),data:{facetQuery:r},cacheable:!0},n)}},se=function(t){return function(e,r){return t.transporter.read({method:j,path:h("1/indexes/%s/rules/search",t.indexName),data:{query:e}},r)}},ce=function(t){return function(e,r){return t.transporter.read({method:j,path:h("1/indexes/%s/synonyms/search",t.indexName),data:{query:e}},r)}},fe=function(t){return function(e,r){var a=r||{},o=a.forwardToReplicas,i=y(n(a,["forwardToReplicas"]));return o&&(i.queryParameters.forwardToReplicas=1),d(t.transporter.write({method:D,path:h("1/indexes/%s/settings",t.indexName),data:e},i),(function(e,r){return de(t)(e.taskID,r)}))}},de=function(t){return function(e,r){return f((function(n){return function(t){return function(e,r){return t.transporter.read({method:x,path:h("1/indexes/%s/task/%s",t.indexName,e.toString())},r)}}(t)(e,r).then((function(t){return "published"!==t.status?n():void 0}))}))}},le={AddObject:"addObject",UpdateObject:"updateObject",PartialUpdateObject:"partialUpdateObject",PartialUpdateObjectNoCreate:"partialUpdateObjectNoCreate",DeleteObject:"deleteObject",DeleteIndex:"delete",ClearIndex:"clear"},pe={Settings:"settings",Synonyms:"synonyms",Rules:"rules"},he=1,me=2,ye=3;function ge(t,e,n){var a,o={appId:t,apiKey:e,timeouts:{connect:1,read:2,write:30},requester:{send:function(t){return new Promise((function(e){var r=new XMLHttpRequest;r.open(t.method,t.url,!0),Object.keys(t.headers).forEach((function(e){return r.setRequestHeader(e,t.headers[e])}));var n,a=function(t,n){return setTimeout((function(){r.abort(),e({status:0,content:n,isTimedOut:!0});}),1e3*t)},o=a(t.connectTimeout,"Connection timeout");r.onreadystatechange=function(){r.readyState>r.OPENED&&void 0===n&&(clearTimeout(o),n=a(t.responseTimeout,"Socket timeout"));},r.onerror=function(){0===r.status&&(clearTimeout(o),clearTimeout(n),e({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}));},r.onload=function(){clearTimeout(o),clearTimeout(n),e({content:r.responseText,status:r.status,isTimedOut:!1});},r.send(t.data);}))}},logger:(a=ye,{debug:function(t,e){return he>=a&&console.debug(t,e),Promise.resolve()},info:function(t,e){return me>=a&&console.info(t,e),Promise.resolve()},error:function(t,e){return console.error(t,e),Promise.resolve()}}),responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:u({caches:[i({key:"".concat("4.12.0","-").concat(t)}),s()]}),userAgent:T("4.12.0").add({segment:"Browser"})},f=r(r({},o),n),d=function(){return function(t){return function(t){var e=t.region||"us",n=c(m.WithinHeaders,t.appId,t.apiKey),a=k(r(r({hosts:[{url:"personalization.".concat(e,".algolia.com")}]},t),{},{headers:r(r(r({},n.headers()),{"content-type":"application/json"}),t.headers),queryParameters:r(r({},n.queryParameters()),t.queryParameters)}));return p({appId:t.appId,transporter:a},t.methods)}(r(r(r({},o),t),{},{methods:{getPersonalizationStrategy:H,setPersonalizationStrategy:M}}))}};return function(t){var e=t.appId,n=c(void 0!==t.authMode?t.authMode:m.WithinHeaders,e,t.apiKey),a=k(r(r({hosts:[{url:"".concat(e,"-dsn.algolia.net"),accept:g.Read},{url:"".concat(e,".algolia.net"),accept:g.Write}].concat(l([{url:"".concat(e,"-1.algolianet.com")},{url:"".concat(e,"-2.algolianet.com")},{url:"".concat(e,"-3.algolianet.com")}]))},t),{},{headers:r(r(r({},n.headers()),{"content-type":"application/x-www-form-urlencoded"}),t.headers),queryParameters:r(r({},n.queryParameters()),t.queryParameters)}));return p({transporter:a,appId:e,addAlgoliaAgent:function(t,e){a.userAgent.add({segment:t,version:e});},clearCache:function(){return Promise.all([a.requestsCache.clear(),a.responsesCache.clear()]).then((function(){}))}},t.methods)}(r(r({},f),{},{methods:{search:mt,searchForFacetValues:yt,multipleBatch:pt,multipleGetObjects:ht,multipleQueries:mt,copyIndex:L,copySettings:_,copySynonyms:X,copyRules:V,moveIndex:lt,listIndices:ft,getLogs:nt,listClusters:ct,multipleSearchForFacetValues:yt,getApiKey:tt,addApiKey:W,listApiKeys:st,updateApiKey:xt,deleteApiKey:Z,restoreApiKey:bt,assignUserID:B,assignUserIDs:Q,getUserID:ot,searchUserIDs:Ot,listUserIDs:dt,getTopUserIDs:at,removeUserID:gt,hasPendingMappings:it,clearDictionaryEntries:G,deleteDictionaryEntries:$,getDictionarySettings:rt,getAppTask:et,replaceDictionaryEntries:vt,saveDictionaryEntries:Pt,searchDictionaryEntries:wt,setDictionarySettings:It,waitAppTask:jt,customRequest:Y,initIndex:function(t){return function(e){return ut(t)(e,{methods:{batch:Dt,delete:Ct,findAnswers:Mt,getObject:Wt,getObjects:Qt,saveObject:te,saveObjects:ee,search:ie,searchForFacetValues:ue,waitTask:de,setSettings:fe,getSettings:Lt,partialUpdateObject:_t,partialUpdateObjects:Xt,deleteObject:Ut,deleteObjects:zt,deleteBy:At,clearObjects:Nt,browseObjects:qt,getObjectPosition:Bt,findObject:Kt,exists:Ht,saveSynonym:ae,saveSynonyms:oe,getSynonym:Vt,searchSynonyms:ce,browseSynonyms:kt,deleteSynonym:Ft,clearSynonyms:Rt,replaceAllObjects:Yt,replaceAllSynonyms:$t,searchRules:se,getRule:Gt,deleteRule:Jt,saveRule:re,saveRules:ne,replaceAllRules:Zt,browseRules:St,clearRules:Et}})}},initAnalytics:function(){return function(t){return function(t){var e=t.region||"us",n=c(m.WithinHeaders,t.appId,t.apiKey),a=k(r(r({hosts:[{url:"analytics.".concat(e,".algolia.com")}]},t),{},{headers:r(r(r({},n.headers()),{"content-type":"application/json"}),t.headers),queryParameters:r(r({},n.queryParameters()),t.queryParameters)}));return p({appId:t.appId,transporter:a},t.methods)}(r(r(r({},o),t),{},{methods:{addABTest:C,getABTest:z,getABTests:J,stopABTest:F,deleteABTest:U}}))}},initPersonalization:d,initRecommendation:function(){return function(t){return f.logger.info("The `initRecommendation` method is deprecated. Use `initPersonalization` instead."),d()(t)}}}}))}return ge.version="4.12.0",ge}));
3414
3414
  });
3415
3415
 
3416
3416
  var squirrelly_min = createCommonjsModule(function (module, exports) {
@@ -3784,9 +3784,9 @@ var LEGACY_ALIASES = {
3784
3784
 
3785
3785
 
3786
3786
 
3787
- var $concat = functionBind.call(Function.call, Array.prototype.concat);
3787
+ var $concat$1 = functionBind.call(Function.call, Array.prototype.concat);
3788
3788
  var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
3789
- var $replace = functionBind.call(Function.call, String.prototype.replace);
3789
+ var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
3790
3790
  var $strSlice = functionBind.call(Function.call, String.prototype.slice);
3791
3791
 
3792
3792
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
@@ -3801,8 +3801,8 @@ var stringToPath = function stringToPath(string) {
3801
3801
  throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
3802
3802
  }
3803
3803
  var result = [];
3804
- $replace(string, rePropName, function (match, number, quote, subString) {
3805
- result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
3804
+ $replace$1(string, rePropName, function (match, number, quote, subString) {
3805
+ result[result.length] = quote ? $replace$1(subString, reEscapeChar, '$1') : number || match;
3806
3806
  });
3807
3807
  return result;
3808
3808
  };
@@ -3854,7 +3854,7 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
3854
3854
  var alias = intrinsic.alias;
3855
3855
  if (alias) {
3856
3856
  intrinsicBaseName = alias[0];
3857
- $spliceApply(parts, $concat([0, 1], alias));
3857
+ $spliceApply(parts, $concat$1([0, 1], alias));
3858
3858
  }
3859
3859
 
3860
3860
  for (var i = 1, isOwn = true; i < parts.length; i += 1) {
@@ -4000,11 +4000,24 @@ var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
4000
4000
  var booleanValueOf = Boolean.prototype.valueOf;
4001
4001
  var objectToString = Object.prototype.toString;
4002
4002
  var functionToString = Function.prototype.toString;
4003
- var match = String.prototype.match;
4003
+ var $match = String.prototype.match;
4004
+ var $slice = String.prototype.slice;
4005
+ var $replace = String.prototype.replace;
4006
+ var $toUpperCase = String.prototype.toUpperCase;
4007
+ var $toLowerCase = String.prototype.toLowerCase;
4008
+ var $test = RegExp.prototype.test;
4009
+ var $concat = Array.prototype.concat;
4010
+ var $join = Array.prototype.join;
4011
+ var $arrSlice = Array.prototype.slice;
4012
+ var $floor = Math.floor;
4004
4013
  var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
4005
4014
  var gOPS = Object.getOwnPropertySymbols;
4006
4015
  var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
4007
4016
  var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
4017
+ // ie, `has-tostringtag/shams
4018
+ var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
4019
+ ? Symbol.toStringTag
4020
+ : null;
4008
4021
  var isEnumerable = Object.prototype.propertyIsEnumerable;
4009
4022
 
4010
4023
  var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
@@ -4015,9 +4028,30 @@ var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPr
4015
4028
  : null
4016
4029
  );
4017
4030
 
4031
+ function addNumericSeparator(num, str) {
4032
+ if (
4033
+ num === Infinity
4034
+ || num === -Infinity
4035
+ || num !== num
4036
+ || (num && num > -1000 && num < 1000)
4037
+ || $test.call(/e/, str)
4038
+ ) {
4039
+ return str;
4040
+ }
4041
+ var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
4042
+ if (typeof num === 'number') {
4043
+ var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
4044
+ if (int !== num) {
4045
+ var intStr = String(int);
4046
+ var dec = $slice.call(str, intStr.length + 1);
4047
+ return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
4048
+ }
4049
+ }
4050
+ return $replace.call(str, sepRegex, '$&_');
4051
+ }
4052
+
4018
4053
  var inspectCustom = require$$0.custom;
4019
4054
  var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
4020
- var toStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag !== 'undefined' ? Symbol.toStringTag : null;
4021
4055
 
4022
4056
  var objectInspect = function inspect_(obj, options, depth, seen) {
4023
4057
  var opts = options || {};
@@ -4044,8 +4078,12 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
4044
4078
  && opts.indent !== '\t'
4045
4079
  && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
4046
4080
  ) {
4047
- throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');
4081
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
4082
+ }
4083
+ if (has$3(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
4084
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
4048
4085
  }
4086
+ var numericSeparator = opts.numericSeparator;
4049
4087
 
4050
4088
  if (typeof obj === 'undefined') {
4051
4089
  return 'undefined';
@@ -4064,10 +4102,12 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
4064
4102
  if (obj === 0) {
4065
4103
  return Infinity / obj > 0 ? '0' : '-0';
4066
4104
  }
4067
- return String(obj);
4105
+ var str = String(obj);
4106
+ return numericSeparator ? addNumericSeparator(obj, str) : str;
4068
4107
  }
4069
4108
  if (typeof obj === 'bigint') {
4070
- return String(obj) + 'n';
4109
+ var bigIntStr = String(obj) + 'n';
4110
+ return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
4071
4111
  }
4072
4112
 
4073
4113
  var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
@@ -4086,7 +4126,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
4086
4126
 
4087
4127
  function inspect(value, from, noIndent) {
4088
4128
  if (from) {
4089
- seen = seen.slice();
4129
+ seen = $arrSlice.call(seen);
4090
4130
  seen.push(from);
4091
4131
  }
4092
4132
  if (noIndent) {
@@ -4104,21 +4144,21 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
4104
4144
  if (typeof obj === 'function') {
4105
4145
  var name = nameOf(obj);
4106
4146
  var keys = arrObjKeys(obj, inspect);
4107
- return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + keys.join(', ') + ' }' : '');
4147
+ return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
4108
4148
  }
4109
4149
  if (isSymbol(obj)) {
4110
- var symString = hasShammedSymbols ? String(obj).replace(/^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
4150
+ var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
4111
4151
  return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
4112
4152
  }
4113
4153
  if (isElement$1(obj)) {
4114
- var s = '<' + String(obj.nodeName).toLowerCase();
4154
+ var s = '<' + $toLowerCase.call(String(obj.nodeName));
4115
4155
  var attrs = obj.attributes || [];
4116
4156
  for (var i = 0; i < attrs.length; i++) {
4117
4157
  s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
4118
4158
  }
4119
4159
  s += '>';
4120
4160
  if (obj.childNodes && obj.childNodes.length) { s += '...'; }
4121
- s += '</' + String(obj.nodeName).toLowerCase() + '>';
4161
+ s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
4122
4162
  return s;
4123
4163
  }
4124
4164
  if (isArray$3(obj)) {
@@ -4127,12 +4167,15 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
4127
4167
  if (indent && !singleLineValues(xs)) {
4128
4168
  return '[' + indentedJoin(xs, indent) + ']';
4129
4169
  }
4130
- return '[ ' + xs.join(', ') + ' ]';
4170
+ return '[ ' + $join.call(xs, ', ') + ' ]';
4131
4171
  }
4132
4172
  if (isError(obj)) {
4133
4173
  var parts = arrObjKeys(obj, inspect);
4174
+ if ('cause' in obj && !isEnumerable.call(obj, 'cause')) {
4175
+ return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
4176
+ }
4134
4177
  if (parts.length === 0) { return '[' + String(obj) + ']'; }
4135
- return '{ [' + String(obj) + '] ' + parts.join(', ') + ' }';
4178
+ return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
4136
4179
  }
4137
4180
  if (typeof obj === 'object' && customInspect) {
4138
4181
  if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
@@ -4180,14 +4223,14 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
4180
4223
  var ys = arrObjKeys(obj, inspect);
4181
4224
  var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
4182
4225
  var protoTag = obj instanceof Object ? '' : 'null prototype';
4183
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? toStr(obj).slice(8, -1) : protoTag ? 'Object' : '';
4226
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
4184
4227
  var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
4185
- var tag = constructorTag + (stringTag || protoTag ? '[' + [].concat(stringTag || [], protoTag || []).join(': ') + '] ' : '');
4228
+ var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
4186
4229
  if (ys.length === 0) { return tag + '{}'; }
4187
4230
  if (indent) {
4188
4231
  return tag + '{' + indentedJoin(ys, indent) + '}';
4189
4232
  }
4190
- return tag + '{ ' + ys.join(', ') + ' }';
4233
+ return tag + '{ ' + $join.call(ys, ', ') + ' }';
4191
4234
  }
4192
4235
  return String(obj);
4193
4236
  };
@@ -4198,7 +4241,7 @@ function wrapQuotes(s, defaultStyle, opts) {
4198
4241
  }
4199
4242
 
4200
4243
  function quote(s) {
4201
- return String(s).replace(/"/g, '&quot;');
4244
+ return $replace.call(String(s), /"/g, '&quot;');
4202
4245
  }
4203
4246
 
4204
4247
  function isArray$3(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
@@ -4249,7 +4292,7 @@ function toStr(obj) {
4249
4292
 
4250
4293
  function nameOf(f) {
4251
4294
  if (f.name) { return f.name; }
4252
- var m = match.call(functionToString.call(f), /^function\s*([\w$]+)/);
4295
+ var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
4253
4296
  if (m) { return m[1]; }
4254
4297
  return null;
4255
4298
  }
@@ -4349,10 +4392,10 @@ function inspectString(str, opts) {
4349
4392
  if (str.length > opts.maxStringLength) {
4350
4393
  var remaining = str.length - opts.maxStringLength;
4351
4394
  var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
4352
- return inspectString(str.slice(0, opts.maxStringLength), opts) + trailer;
4395
+ return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
4353
4396
  }
4354
4397
  // eslint-disable-next-line no-control-regex
4355
- var s = str.replace(/(['\\])/g, '\\$1').replace(/[\x00-\x1f]/g, lowbyte);
4398
+ var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
4356
4399
  return wrapQuotes(s, 'single', opts);
4357
4400
  }
4358
4401
 
@@ -4366,7 +4409,7 @@ function lowbyte(c) {
4366
4409
  13: 'r'
4367
4410
  }[n];
4368
4411
  if (x) { return '\\' + x; }
4369
- return '\\x' + (n < 0x10 ? '0' : '') + n.toString(16).toUpperCase();
4412
+ return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
4370
4413
  }
4371
4414
 
4372
4415
  function markBoxed(str) {
@@ -4378,7 +4421,7 @@ function weakCollectionOf(type) {
4378
4421
  }
4379
4422
 
4380
4423
  function collectionOf(type, size, entries, indent) {
4381
- var joinedEntries = indent ? indentedJoin(entries, indent) : entries.join(', ');
4424
+ var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
4382
4425
  return type + ' (' + size + ') {' + joinedEntries + '}';
4383
4426
  }
4384
4427
 
@@ -4396,20 +4439,20 @@ function getIndent(opts, depth) {
4396
4439
  if (opts.indent === '\t') {
4397
4440
  baseIndent = '\t';
4398
4441
  } else if (typeof opts.indent === 'number' && opts.indent > 0) {
4399
- baseIndent = Array(opts.indent + 1).join(' ');
4442
+ baseIndent = $join.call(Array(opts.indent + 1), ' ');
4400
4443
  } else {
4401
4444
  return null;
4402
4445
  }
4403
4446
  return {
4404
4447
  base: baseIndent,
4405
- prev: Array(depth + 1).join(baseIndent)
4448
+ prev: $join.call(Array(depth + 1), baseIndent)
4406
4449
  };
4407
4450
  }
4408
4451
 
4409
4452
  function indentedJoin(xs, indent) {
4410
4453
  if (xs.length === 0) { return ''; }
4411
4454
  var lineJoiner = '\n' + indent.prev + indent.base;
4412
- return lineJoiner + xs.join(',' + lineJoiner) + '\n' + indent.prev;
4455
+ return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
4413
4456
  }
4414
4457
 
4415
4458
  function arrObjKeys(obj, inspect) {
@@ -4436,7 +4479,7 @@ function arrObjKeys(obj, inspect) {
4436
4479
  if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
4437
4480
  // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
4438
4481
  continue; // eslint-disable-line no-restricted-syntax, no-continue
4439
- } else if ((/[^\w$]/).test(key)) {
4482
+ } else if ($test.call(/[^\w$]/, key)) {
4440
4483
  xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
4441
4484
  } else {
4442
4485
  xs.push(key + ': ' + inspect(obj[key], obj));
@@ -4768,6 +4811,7 @@ var encode = function encode(str, defaultEncoder, charset, kind, format) {
4768
4811
 
4769
4812
  i += 1;
4770
4813
  c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
4814
+ /* eslint operator-linebreak: [2, "before"] */
4771
4815
  out += hexTable[0xF0 | (c >> 18)]
4772
4816
  + hexTable[0x80 | ((c >> 12) & 0x3F)]
4773
4817
  + hexTable[0x80 | ((c >> 6) & 0x3F)]
@@ -4857,6 +4901,7 @@ var arrayPrefixGenerators = {
4857
4901
  };
4858
4902
 
4859
4903
  var isArray$1 = Array.isArray;
4904
+ var split = String.prototype.split;
4860
4905
  var push = Array.prototype.push;
4861
4906
  var pushToArray = function (arr, valueOrArray) {
4862
4907
  push.apply(arr, isArray$1(valueOrArray) ? valueOrArray : [valueOrArray]);
@@ -4893,6 +4938,8 @@ var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
4893
4938
  || typeof v === 'bigint';
4894
4939
  };
4895
4940
 
4941
+ var sentinel = {};
4942
+
4896
4943
  var stringify = function stringify(
4897
4944
  object,
4898
4945
  prefix,
@@ -4912,8 +4959,23 @@ var stringify = function stringify(
4912
4959
  ) {
4913
4960
  var obj = object;
4914
4961
 
4915
- if (sideChannel$1.has(object)) {
4916
- throw new RangeError('Cyclic object value');
4962
+ var tmpSc = sideChannel$1;
4963
+ var step = 0;
4964
+ var findFlag = false;
4965
+ while ((tmpSc = tmpSc.get(sentinel)) !== undefined && !findFlag) {
4966
+ // Where object last appeared in the ref tree
4967
+ var pos = tmpSc.get(object);
4968
+ step += 1;
4969
+ if (typeof pos !== 'undefined') {
4970
+ if (pos === step) {
4971
+ throw new RangeError('Cyclic object value');
4972
+ } else {
4973
+ findFlag = true; // Break while
4974
+ }
4975
+ }
4976
+ if (typeof tmpSc.get(sentinel) === 'undefined') {
4977
+ step = 0;
4978
+ }
4917
4979
  }
4918
4980
 
4919
4981
  if (typeof filter === 'function') {
@@ -4940,6 +5002,14 @@ var stringify = function stringify(
4940
5002
  if (isNonNullishPrimitive(obj) || utils$1.isBuffer(obj)) {
4941
5003
  if (encoder) {
4942
5004
  var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$1.encoder, charset, 'key', format);
5005
+ if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
5006
+ var valuesArray = split.call(String(obj), ',');
5007
+ var valuesJoined = '';
5008
+ for (var i = 0; i < valuesArray.length; ++i) {
5009
+ valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults$1.encoder, charset, 'value', format));
5010
+ }
5011
+ return [formatter(keyValue) + '=' + valuesJoined];
5012
+ }
4943
5013
  return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults$1.encoder, charset, 'value', format))];
4944
5014
  }
4945
5015
  return [formatter(prefix) + '=' + formatter(String(obj))];
@@ -4962,8 +5032,8 @@ var stringify = function stringify(
4962
5032
  objKeys = sort ? keys.sort(sort) : keys;
4963
5033
  }
4964
5034
 
4965
- for (var i = 0; i < objKeys.length; ++i) {
4966
- var key = objKeys[i];
5035
+ for (var j = 0; j < objKeys.length; ++j) {
5036
+ var key = objKeys[j];
4967
5037
  var value = typeof key === 'object' && key.value !== undefined ? key.value : obj[key];
4968
5038
 
4969
5039
  if (skipNulls && value === null) {
@@ -4974,8 +5044,9 @@ var stringify = function stringify(
4974
5044
  ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
4975
5045
  : prefix + (allowDots ? '.' + key : '[' + key + ']');
4976
5046
 
4977
- sideChannel$1.set(object, true);
5047
+ sideChannel$1.set(object, step);
4978
5048
  var valueSideChannel = sideChannel();
5049
+ valueSideChannel.set(sentinel, sideChannel$1);
4979
5050
  pushToArray(values, stringify(
4980
5051
  value,
4981
5052
  keyPrefix,
@@ -10312,13 +10383,21 @@ function mapToStyles(_ref2) {
10312
10383
  adaptive = _ref2.adaptive,
10313
10384
  roundOffsets = _ref2.roundOffsets,
10314
10385
  isFixed = _ref2.isFixed;
10386
+ var _offsets$x = offsets.x,
10387
+ x = _offsets$x === void 0 ? 0 : _offsets$x,
10388
+ _offsets$y = offsets.y,
10389
+ y = _offsets$y === void 0 ? 0 : _offsets$y;
10315
10390
 
10316
- var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
10317
- _ref3$x = _ref3.x,
10318
- x = _ref3$x === void 0 ? 0 : _ref3$x,
10319
- _ref3$y = _ref3.y,
10320
- y = _ref3$y === void 0 ? 0 : _ref3$y;
10391
+ var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
10392
+ x: x,
10393
+ y: y
10394
+ }) : {
10395
+ x: x,
10396
+ y: y
10397
+ };
10321
10398
 
10399
+ x = _ref3.x;
10400
+ y = _ref3.y;
10322
10401
  var hasX = offsets.hasOwnProperty('x');
10323
10402
  var hasY = offsets.hasOwnProperty('y');
10324
10403
  var sideX = left;
@@ -10363,6 +10442,17 @@ function mapToStyles(_ref2) {
10363
10442
  position: position
10364
10443
  }, adaptive && unsetSides);
10365
10444
 
10445
+ var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
10446
+ x: x,
10447
+ y: y
10448
+ }) : {
10449
+ x: x,
10450
+ y: y
10451
+ };
10452
+
10453
+ x = _ref4.x;
10454
+ y = _ref4.y;
10455
+
10366
10456
  if (gpuAcceleration) {
10367
10457
  var _Object$assign;
10368
10458
 
@@ -10372,9 +10462,9 @@ function mapToStyles(_ref2) {
10372
10462
  return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
10373
10463
  }
10374
10464
 
10375
- function computeStyles(_ref4) {
10376
- var state = _ref4.state,
10377
- options = _ref4.options;
10465
+ function computeStyles(_ref5) {
10466
+ var state = _ref5.state,
10467
+ options = _ref5.options;
10378
10468
  var _options$gpuAccelerat = options.gpuAcceleration,
10379
10469
  gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
10380
10470
  _options$adaptive = options.adaptive,
@@ -10663,7 +10753,7 @@ function getClippingParents(element) {
10663
10753
 
10664
10754
 
10665
10755
  return clippingParents.filter(function (clippingParent) {
10666
- return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body' && (canEscapeClipping ? getComputedStyle$2(clippingParent).position !== 'static' : true);
10756
+ return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
10667
10757
  });
10668
10758
  } // Gets the maximum area that the element is visible in due to any number of
10669
10759
  // clipping parents
@@ -12651,6 +12741,8 @@ let GlobalNav = class extends H {
12651
12741
  return;
12652
12742
  this.searchLoading = true;
12653
12743
  this.algoliaSearchResults = null;
12744
+ if (!this.currentIndex)
12745
+ this.currentSelectedIndex();
12654
12746
  let queries = this.internalSearchIndeces.map((index) => {
12655
12747
  return {
12656
12748
  indexName: index.index,
@@ -13541,8 +13633,8 @@ let GlobalSearchResults = class extends H {
13541
13633
  ]; // only get last 2 years
13542
13634
  }
13543
13635
  render() {
13544
- return (h$1(Host, { class: { small: this.currentWidth < 577 }, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : false }, h$1("nano-algolia", { "store-id": "searchq", "store-method": "url-hash-push", class: "main-search__wrap sc-nano-global-search-results", ref: (ele) => (this.algoliaEle = ele), "infinite-scroll": true, id: "main-search" }, h$1("script", { type: "text/template", slot: "template" }, `<div class="main-search sc-nano-global-search-results">
13545
- <nano-algolia-results id="main-search-results" class="main-search__results sc-nano-global-search-results">
13636
+ return (h$1(Host, { class: { small: this.currentWidth < 577 }, dir: this.el.ownerDocument.dir === 'rtl' ? 'rtl' : false }, h$1("nano-algolia", { "store-id": "searchq", "store-method": "url-hash-push", class: "main-search__wrap sc-nano-global-search-results", ref: (ele) => raf(() => (this.algoliaEle = ele)), id: "main-search" }, h$1("script", { type: "text/template", slot: "template" }, `<div class="main-search sc-nano-global-search-results">
13637
+ <nano-algolia-results id="main-search-results" class="main-search__results sc-nano-global-search-results" infinite-scroll>
13546
13638
  <script type="text/template" slot="start-template">
13547
13639
  <div class="sc-nano-global-search-results main-search__topbar topbar">
13548
13640
  <button class="sc-nano-global-search-results topbar__bkbtn back-btn icon-button">
@@ -19095,7 +19187,7 @@ Flickity.Slide = Slide$1;
19095
19187
 
19096
19188
  var unipointer = createCommonjsModule(function (module) {
19097
19189
  /*!
19098
- * Unipointer v2.3.0
19190
+ * Unipointer v2.4.0
19099
19191
  * base class for doing one thing with pointer event
19100
19192
  * MIT license
19101
19193
  */
@@ -19147,12 +19239,13 @@ proto._bindStartEvent = function( elem, isAdd ) {
19147
19239
 
19148
19240
  // default to mouse events
19149
19241
  var startEvent = 'mousedown';
19150
- if ( window.PointerEvent ) {
19242
+ if ( 'ontouchstart' in window ) {
19243
+ // HACK prefer Touch Events as you can preventDefault on touchstart to
19244
+ // disable scroll in iOS & mobile Chrome metafizzy/flickity#1177
19245
+ startEvent = 'touchstart';
19246
+ } else if ( window.PointerEvent ) {
19151
19247
  // Pointer Events
19152
19248
  startEvent = 'pointerdown';
19153
- } else if ( 'ontouchstart' in window ) {
19154
- // Touch Events. iOS Safari
19155
- startEvent = 'touchstart';
19156
19249
  }
19157
19250
  elem[ bindMethod ]( startEvent, this );
19158
19251
  };
@@ -19390,7 +19483,7 @@ return Unipointer;
19390
19483
 
19391
19484
  var unidragger = createCommonjsModule(function (module) {
19392
19485
  /*!
19393
- * Unidragger v2.3.1
19486
+ * Unidragger v2.4.0
19394
19487
  * Draggable base class
19395
19488
  * MIT license
19396
19489
  */