1/*! For license information please see component---src-pages-search-js-143a3dbf11cd589c524c.js.LICENSE.txt */ 2(self.webpackChunkgatsby_starter_default=self.webpackChunkgatsby_starter_default||[]).push([[55],{4938:function(e){e.exports=function(){"use strict";function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?t(Object(a),!0).forEach((function(t){e(r,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(a,e))}))}return r}function n(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,a=!1,o=void 0;try{for(var i,u=e[Symbol.iterator]();!(n=(i=u.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==u.return||u.return()}finally{if(a)throw o}}return r}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(e){var t,r="algoliasearch-client-js-".concat(e.key),n=function(){return void 0===t&&(t=e.localStorage||window.localStorage),t},o=function(){return JSON.parse(n().getItem(r)||"{}")},i=function(e){n().setItem(r,JSON.stringify(e))},u=function(){var t=e.timeToLive?1e3*e.timeToLive:null,r=o(),n=Object.fromEntries(Object.entries(r).filter((function(e){return void 0!==a(e,2)[1].timestamp})));if(i(n),t){var u=Object.fromEntries(Object.entries(n).filter((function(e){var r=a(e,2)[1],n=(new Date).getTime();return!(r.timestamp+t<n)})));i(u)}};return{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){u();var t=JSON.stringify(e);return o()[t]})).then((function(e){return Promise.all([e?e.value:t(),void 0!==e])})).then((function(e){var t=a(e,2),n=t[0],o=t[1];return Promise.all([n,o||r.miss(n)])})).then((function(e){return a(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var a=o();return a[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},n().setItem(r,JSON.stringify(a)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=o();delete t[JSON.stringify(e)],n().setItem(r,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){n().removeItem(r)}))}}}function u(e){var t=o(e.caches),r=t.shift();return void 0===r?{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then((function(e){return Promise.all([e,r.miss(e)])})).then((function(e){return a(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return r.get(e,n,a).catch((function(){return u({caches:t}).get(e,n,a)}))},set:function(e,n){return r.set(e,n).catch((function(){return u({caches:t}).set(e,n)}))},delete:function(e){return r.delete(e).catch((function(){return u({caches:t}).delete(e)}))}
vendor: 7,788 bytes, line 2
2,clear:function(){return r.clear().catch((function(){return u({caches:t}).clear()}))}}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};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 t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);var i=n(),u=a&&a.miss||function(){return Promise.resolve()};return i.then((function(e){return u(e)})).then((function(){return i}))},set:function(r,n){return t[JSON.stringify(r)]=e.serializable?JSON.stringify(n):n,Promise.resolve(n)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function c(e,t,r){var n={"x-algolia-api-key":r,"x-algolia-application-id":t};return{headers:function(){return e===p.WithinHeaders?n:{}},queryParameters:function(){return e===p.WithinQueryParameters?n:{}}}}function l(e){var t=0;return e((function r(){return t++,new Promise((function(n){setTimeout((function(){n(e(r))}),Math.min(100*t,1e3))}))}))}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e,t){return Promise.resolve()};return Object.assign(e,{wait:function(r){return f(e.then((function(e){return Promise.all([t(e,r),e])})).then((function(e){return e[1]})))}})}function d(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}function m(e,t){return t?(Object.keys(t).forEach((function(r){e[r]=t[r](e)})),e):e}function h(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0;return e.replace(/%s/g,(function(){return encodeURIComponent(r[a++])}))}var p={WithinQueryParameters:0,WithinHeaders:1};function g(e,t){var r=e||{},n=r.data||{};return Object.keys(r).forEach((function(e){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(e)&&(n[e]=r[e])})),{data:Object.entries(n).length>0?n:void 0,timeout:r.timeout||t,headers:r.headers||{},queryParameters:r.queryParameters||{},cacheable:r.cacheable}}var y={Read:1,Write:2,Any:3},v=1,b=2,w=3;function P(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v;return r(r({},e),{},{status:t,lastUpdate:Date.now()})}function x(e){return"string"==typeof e?{protocol:"https",url:e,accept:y.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||y.Any}}var O="DELETE",I="GET",j="POST",E="PUT";function D(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(P(t))}))}))).then((function(e){var r=e.filter((function(e){return function(e){return e.status===v||Date.now()-e.lastUpdate>12e4}(e)})),n=e.filter((function(e){return function(e){return e.status===w&&Date.now()-e.lastUpdate<=12e4}(e)})),a=[].concat(o(r),o(n));return{getTimeout:function(e,t){return(0===n.length&&0===e?1:n.length+3+e)*t},statelessHosts:a.length>0?a.map((function(e){return x(e)})):t}}))}function k(e,t,n,a){var i=[],u=function(e,t){if(e.method!==I&&(void 0!==e.data||void 0!==t.data)){var n=Array.isArray(e.data)?e.data:r(r({},e.data),t.data);return JSON.stringify(n)}}(n,a),s=function(e,t){var n=r(r({},e.headers),t.headers),a={};return Object.keys(n).forEach((function(e){var t=n[e];a[e.toLowerCase()]=t})),a}(e,a),c=n.method,l=n.method!==I?{}:r(r({},n.data),a.data),f=r(r(r({"x-algolia-agent":e.userAgent.value},e.queryParameters),l),a.queryParameters),d=0,m=function t(r,o){var l=r.pop();if(void 0===l)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact [email protected].",transporterStackTrace:A(i)};var m={data:u,headers:s,method:c,url:T(l,n.path,f),connectTimeout:o(d,e.timeouts.connect),responseTimeout:o(d,a.timeout)},h=function(e){var t={request:m,response:e,host:l,triesLeft:r.length};return i.push(t),t},p={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(n){var a=h(n);return n.isTimedOut&&d++,Promise.all([e.logger.info("Retryable failure",_(a)),e.hostsCache.set(l,P(l,n.isTimedOut?w:b))]).then((function(){return t(r,o)}))},onFail:function(e){throw h(e),function(e,t){var r=e.content,n=e.status,a=r;try{a=JSON.parse(r).message}catch(e){}return function(e,t,r){return{name:"ApiError",message:e,status:t,transporterStackTrace:r}}(a,n,t)}(e,A(i))}};return e.requester.send(m).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,r=e.status;return!t&&!~~r}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,p)}))};return D(e.hostsCache,t).then((function(e){return m(o(e.statelessHosts).reverse(),e.getTimeout)}))}function q(e){var t=e.hostsCache,r=e.logger,n=e.requester,o=e.requestsCache,i=e.responsesCache,u=e.timeouts,s=e.userAgent,c=e.hosts,l=e.queryParameters,f={hostsCache:t,logger:r,requester:n,requestsCache:o,responsesCache:i,timeouts:u,userAgent:s,headers:e.headers,queryParameters:l,hosts:c.map((function(e){return x(e)})),read:function(e,t){var r=g(t,f.timeouts.read),n=function(){return k(f,f.hosts.filter((function(e){return!!(e.accept&y.Read)})),e,r)};if(!0!==(void 0!==r.cacheable?r.cacheable:e.cacheable))return n();var o={request:e,mappedRequestOptions:r,transporter:{queryParameters:f.queryParameters,headers:f.headers}};return f.responsesCache.get(o,(function(){return f.requestsCache.get(o,(function(){return f.requestsCache.set(o,n()).then((function(e){return Promise.all([f.requestsCache.delete(o),e])}),(function(e){return Promise.all([f.requestsCache.delete(o),Promise.reject(e)])})).then((function(e){var t=a(e,2);return t[0],t[1]}))}))}),{miss:function(e){return f.responsesCache.set(o,e)}})},write:function(e,t){return k(f,f.hosts.filter((function(e){return!!(e.accept&y.Write)})),e,g(t,f.timeouts.write))}};return f}function S(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var r="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(r)&&(t.value="".concat(t.value).concat(r)),t}};return t}function T(e,t,r){var n=N(r),a="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return n.length&&(a+="?".concat(n)),a}function N(e){return Object.keys(e).map((function(t){return h("%s=%s",t,(r=e[t],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r)?JSON.stringify(e[t]):e[t]));var r})).join("&")}function A(e){return e.map((function(e){return _(e)}))}function _(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return r(r({},e),{},{request:r(r({},e.request),{},{headers:r(r({},e.request.headers),t)})})}var R=function(e){return function(t,r){return e.transporter.write({method:j,path:"2/abtests",data:t},r)}},C=function(e){return function(t,r){return e.transporter.write({method:O,path:h("2/abtests/%s",t)},r)}},U=function(e){return function(t,r){return e.transporter.read({method:I,path:h("2/abtests/%s",t)},r)}},F=function(e){return function(t){return e.transporter.read({method:I,path:"2/abtests"},t)}},z=function(e){return function(t,r){return e.transporter.write({method:j,path:h("2/abtests/%s/stop",t)},r)}},J=function(e){return function(t){return e.transporter.read({method:I,path:"1/strategies/personalization"},t)}},L=function(e){return function(t,r){return e.transporter.write({method:j,path:"1/strategies/personalization",data:t},r)}};function B(e){return function t(r){return e.request(r).then((function(n){if(void 0!==e.batch&&e.batch(n.hits),!e.shouldStop(n))return n.cursor?t({cursor:n.cursor}):t({page:(r.page||0)+1})}
2))}({})}var H=function(e){return function(t,a){var o=a||{},i=o.queryParameters,u=n(o,["queryParameters"]),s=r({acl:t},void 0!==i?{queryParameters:i}:{});return f(e.transporter.write({method:j,path:"1/keys",data:s},u),(function(t,r){return l((function(n){return ee(e)(t.key,r).catch((function(e){if(404!==e.status)throw e;return n()}))}))}))}},M=function(e){return function(t,r,n){var a=g(n);return a.queryParameters["X-Algolia-User-ID"]=t,e.transporter.write({method:j,path:"1/clusters/mapping",data:{cluster:r}},a)}},W=function(e){return function(t,r,n){return e.transporter.write({method:j,path:"1/clusters/mapping/batch",data:{users:t,cluster:r}},n)}},K=function(e){return function(t,r){return f(e.transporter.write({method:j,path:h("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!0,requests:{action:"addEntry",body:[]}}},r),(function(t,r){return je(e)(t.taskID,r)}))}},Q=function(e){return function(t,r,n){return f(e.transporter.write({method:j,path:h("1/indexes/%s/operation",t),data:{operation:"copy",destination:r}},n),(function(r,n){return ue(e)(t,{methods:{waitTask:ft}}).waitTask(r.taskID,n)}))}},G=function(e){return function(t,n,a){return Q(e)(t,n,r(r({},a),{},{scope:[mt.Rules]}))}},V=function(e){return function(t,n,a){return Q(e)(t,n,r(r({},a),{},{scope:[mt.Settings]}))}},$=function(e){return function(t,n,a){return Q(e)(t,n,r(r({},a),{},{scope:[mt.Synonyms]}))}},X=function(e){return function(t,r){return t.method===I?e.transporter.read(t,r):e.transporter.write(t,r)}},Z=function(e){return function(t,r){return f(e.transporter.write({method:O,path:h("1/keys/%s",t)},r),(function(r,n){return l((function(r){return ee(e)(t,n).then(r).catch((function(e){if(404!==e.status)throw e}))}))}))}},Y=function(e){return function(t,r,n){var a=r.map((function(e){return{action:"deleteEntry",body:{objectID:e}}}));return f(e.transporter.write({method:j,path:h("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!1,requests:a}},n),(function(t,r){return je(e)(t.taskID,r)}))}},ee=function(e){return function(t,r){return e.transporter.read({method:I,path:h("1/keys/%s",t)},r)}},te=function(e){return function(t,r){return e.transporter.read({method:I,path:h("1/task/%s",t.toString())},r)}},re=function(e){return function(t){return e.transporter.read({method:I,path:"/1/dictionaries/*/settings"},t)}},ne=function(e){return function(t){return e.transporter.read({method:I,path:"1/logs"},t)}},ae=function(e){return function(t){return e.transporter.read({method:I,path:"1/clusters/mapping/top"},t)}},oe=function(e){return function(t,r){return e.transporter.read({method:I,path:h("1/clusters/mapping/%s",t)},r)}},ie=function(e){return function(t){var r=t||{},a=r.retrieveMappings,o=n(r,["retrieveMappings"]);return!0===a&&(o.getClusters=!0),e.transporter.read({method:I,path:"1/clusters/mapping/pending"},o)}},ue=function(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return m({transporter:e.transporter,appId:e.appId,indexName:t},r.methods)}},se=function(e){return function(t){return e.transporter.read({method:I,path:"1/keys"},t)}},ce=function(e){return function(t){return e.transporter.read({method:I,path:"1/clusters"},t)}},le=function(e){return function(t){return e.transporter.read({method:I,path:"1/indexes"},t)}},fe=function(e){return function(t){return e.transporter.read({method:I,path:"1/clusters/mapping"},t)}},de=function(e){return function(t,r,n){return f(e.transporter.write({method:j,path:h("1/indexes/%s/operation",t),data:{operation:"move",destination:r}},n),(function(r,n){return ue(e)(t,{methods:{waitTask:ft}}).waitTask(r.taskID,n)}))}},me=function(e){return function(t,r){return f(e.transporter.write({method:j,path:"1/indexes/*/batch",data:{requests:t}},r),(function(t,r){return Promise.all(Object.keys(t.taskID).map((function(n){return ue(e)(n,{methods:{waitTask:ft}}).waitTask(t.taskID[n],r)})))}))}},he=function(e){return function(t,r){return e.transporter.read({method:j,path:"1/indexes/*/objects",data:{requests:t}},r)}},pe=function(e){return function(t,n){var a=t.map((function(e){return r(r({},e),{},{params:N(e.params||{})})}));return e.transporter.read({method:j,path:"1/indexes/*/queries",data:{requests:a},cacheable:!0},n)}},ge=function(e){return function(t,a){return Promise.all(t.map((function(t){var o=t.params,i=o.facetName,u=o.facetQuery,s=n(o,["facetName","facetQuery"]);return ue(e)(t.indexName,{methods:{searchForFacetValues:ut}}).searchForFacetValues(i,u,r(r({},a),s))})))}},ye=function(e){return function(t,r){var n=g(r);return n.queryParameters["X-Algolia-User-ID"]=t,e.transporter.write({method:O,path:"1/clusters/mapping"},n)}},ve=function(e){return function(t,r,n){var a=r.map((function(e){return{action:"addEntry",body:e}}));return f(e.transporter.write({method:j,path:h("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!0,requests:a}},n),(function(t,r){return je(e)(t.taskID,r)}))}},be=function(e){return function(t,r){return f(e.transporter.write({method:j,path:h("1/keys/%s/restore",t)},r),(function(r,n){return l((function(r){return ee(e)(t,n).catch((function(e){if(404!==e.status)throw e;return r()}))}))}))}},we=function(e){return function(t,r,n){var a=r.map((function(e){return{action:"addEntry",body:e}}));return f(e.transporter.write({method:j,path:h("/1/dictionaries/%s/batch",t),data:{clearExistingDictionaryEntries:!1,requests:a}},n),(function(t,r){return je(e)(t.taskID,r)}))}},Pe=function(e){return function(t,r,n){return e.transporter.read({method:j,path:h("/1/dictionaries/%s/search",t),data:{query:r},cacheable:!0},n)}},xe=function(e){return function(t,r){return e.transporter.read({method:j,path:"1/clusters/mapping/search",data:{query:t}},r)}},Oe=function(e){return function(t,r){return f(e.transporter.write({method:E,path:"/1/dictionaries/*/settings",data:t},r),(function(t,r){return je(e)(t.taskID,r)}))}},Ie=function(e){return function(t,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 f(e.transporter.write({method:E,path:h("1/keys/%s",t),data:s},u),(function(r,n){return l((function(r){return ee(e)(t,n).then((function(e){return function(e){return Object.keys(a).filter((function(e){return-1!==c.indexOf(e)})).every((function(t){if(Array.isArray(e[t])&&Array.isArray(a[t])){var r=e[t];return r.length===a[t].length&&r.every((function(e,r){return e===a[t][r]}))}return e[t]===a[t]}))}(e)?Promise.resolve():r()}
2))}))}))}},je=function(e){return function(t,r){return l((function(n){return te(e)(t,r).then((function(e){return"published"!==e.status?n():void 0}))}))}},Ee=function(e){return function(t,r){return f(e.transporter.write({method:j,path:h("1/indexes/%s/batch",e.indexName),data:{requests:t}},r),(function(t,r){return ft(e)(t.taskID,r)}))}},De=function(e){return function(t){return B(r(r({shouldStop:function(e){return void 0===e.cursor}},t),{},{request:function(r){return e.transporter.read({method:j,path:h("1/indexes/%s/browse",e.indexName),data:r},t)}}))}},ke=function(e){return function(t){var n=r({hitsPerPage:1e3},t);return B(r(r({shouldStop:function(e){return e.hits.length<n.hitsPerPage}},n),{},{request:function(t){return st(e)("",r(r({},n),t)).then((function(e){return r(r({},e),{},{hits:e.hits.map((function(e){return delete e._highlightResult,e}))})}))}}))}},qe=function(e){return function(t){var n=r({hitsPerPage:1e3},t);return B(r(r({shouldStop:function(e){return e.hits.length<n.hitsPerPage}},n),{},{request:function(t){return ct(e)("",r(r({},n),t)).then((function(e){return r(r({},e),{},{hits:e.hits.map((function(e){return delete e._highlightResult,e}))})}))}}))}},Se=function(e){return function(t,r,a){var o=a||{},i=o.batchSize,u=n(o,["batchSize"]),s={taskIDs:[],objectIDs:[]};return f(function n(){var a,o=[];for(a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;a<t.length&&(o.push(t[a]),o.length!==(i||1e3));a++);return 0===o.length?Promise.resolve(s):Ee(e)(o.map((function(e){return{action:r,body:e}})),u).then((function(e){return s.objectIDs=s.objectIDs.concat(e.objectIDs),s.taskIDs.push(e.taskID),a++,n(a)}))}(),(function(t,r){return Promise.all(t.taskIDs.map((function(t){return ft(e)(t,r)})))}))}},Te=function(e){return function(t){return f(e.transporter.write({method:j,path:h("1/indexes/%s/clear",e.indexName)},t),(function(t,r){return ft(e)(t.taskID,r)}))}},Ne=function(e){return function(t){var r=t||{},a=r.forwardToReplicas,o=g(n(r,["forwardToReplicas"]));return a&&(o.queryParameters.forwardToReplicas=1),f(e.transporter.write({method:j,path:h("1/indexes/%s/rules/clear",e.indexName)},o),(function(t,r){return ft(e)(t.taskID,r)}))}},Ae=function(e){return function(t){var r=t||{},a=r.forwardToReplicas,o=g(n(r,["forwardToReplicas"]));return a&&(o.queryParameters.forwardToReplicas=1),f(e.transporter.write({method:j,path:h("1/indexes/%s/synonyms/clear",e.indexName)},o),(function(t,r){return ft(e)(t.taskID,r)}))}},_e=function(e){return function(t,r){return f(e.transporter.write({method:j,path:h("1/indexes/%s/deleteByQuery",e.indexName),data:t},r),(function(t,r){return ft(e)(t.taskID,r)}))}},Re=function(e){return function(t){return f(e.transporter.write({method:O,path:h("1/indexes/%s",e.indexName)},t),(function(t,r){return ft(e)(t.taskID,r)}))}},Ce=function(e){return function(t,r){return f(Ue(e)([t],r).then((function(e){return{taskID:e.taskIDs[0]}})),(function(t,r){return ft(e)(t.taskID,r)}))}},Ue=function(e){return function(t,r){var n=t.map((function(e){return{objectID:e}}));return Se(e)(n,dt.DeleteObject,r)}},Fe=function(e){return function(t,r){var a=r||{},o=a.forwardToReplicas,i=g(n(a,["forwardToReplicas"]));return o&&(i.queryParameters.forwardToReplicas=1),f(e.transporter.write({method:O,path:h("1/indexes/%s/rules/%s",e.indexName,t)},i),(function(t,r){return ft(e)(t.taskID,r)}))}},ze=function(e){return function(t,r){var a=r||{},o=a.forwardToReplicas,i=g(n(a,["forwardToReplicas"]));return o&&(i.queryParameters.forwardToReplicas=1),f(e.transporter.write({method:O,path:h("1/indexes/%s/synonyms/%s",e.indexName,t)},i),(function(t,r){return ft(e)(t.taskID,r)}))}},Je=function(e){return function(t){return Qe(e)(t).then((function(){return!0})).catch((function(e){if(404!==e.status)throw e;return!1}))}},Le=function(e){return function(t,r,n){return e.transporter.read({method:j,path:h("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:r},cacheable:!0},n)}},Be=function(e){return function(t,o){var i=o||{},u=i.query,s=i.paginate,c=n(i,["query","paginate"]),l=0;return function n(){return it(e)(u||"",r(r({},c),{},{page:l})).then((function(e){for(var r=0,o=Object.entries(e.hits);r<o.length;r++){var i=a(o[r],2),u=i[0],c=i[1];if(t(c))return{object:c,position:parseInt(u,10),page:l}}if(l++,!1===s||l>=e.nbPages)throw{name:"ObjectNotFoundError",message:"Object not found."};return n()}))}()}},He=function(e){return function(t,r){return e.transporter.read({method:I,path:h("1/indexes/%s/%s",e.indexName,t)},r)}},Me=function(){return function(e,t){for(var r=0,n=Object.entries(e.hits);r<n.length;r++){var o=a(n[r],2),i=o[0];if(o[1].objectID===t)return parseInt(i,10)}return-1}},We=function(e){return function(t,a){var o=a||{},i=o.attributesToRetrieve,u=n(o,["attributesToRetrieve"]),s=t.map((function(t){return r({indexName:e.indexName,objectID:t},i?{attributesToRetrieve:i}:{})}));return e.transporter.read({method:j,path:"1/indexes/*/objects",data:{requests:s}},u)}},Ke=function(e){return function(t,r){return e.transporter.read({method:I,path:h("1/indexes/%s/rules/%s",e.indexName,t)},r)}},Qe=function(e){return function(t){return e.transporter.read({method:I,path:h("1/indexes/%s/settings",e.indexName),data:{getVersion:2}},t)}},Ge=function(e){return function(t,r){return e.transporter.read({method:I,path:h("1/indexes/%s/synonyms/%s",e.indexName,t)},r)}},Ve=function(e){return function(t,r){return f($e(e)([t],r).then((function(e){return{objectID:e.objectIDs[0],taskID:e.taskIDs[0]}})),(function(t,r){return ft(e)(t.taskID,r)}))}},$e=function(e){return function(t,r){var a=r||{},o=a.createIfNotExists,i=n(a,["createIfNotExists"]),u=o?dt.PartialUpdateObject:dt.PartialUpdateObjectNoCreate;return Se(e)(t,u,i)}},Xe=function(e){return function(t,i){var u=i||{},s=u.safe,c=u.autoGenerateObjectIDIfNotExist,l=u.batchSize,d=n(u,["safe","autoGenerateObjectIDIfNotExist","batchSize"]),m=function(t,r,n,a){return f(e.transporter.write({method:j,path:h("1/indexes/%s/operation",t),data:{operation:n,destination:r}},a),(function(t,r){return ft(e)(t.taskID,r)}))},p=Math.random().toString(36).substring(7),g="".concat(e.indexName,"_tmp_").concat(p),y=tt({appId:e.appId,transporter:e.transporter,indexName:g}),v=[],b=m(e.indexName,g,"copy",r(r({},d),{},{scope:["settings","synonyms","rules"]}));return v.push(b),f((s?b.wait(d):b).then((function(){var e=y(t,r(r({},d),{},{autoGenerateObjectIDIfNotExist:c,batchSize:l}));return v.push(e),s?e.wait(d):e})).then((function(){var t=m(g,e.indexName,"move",d);return v.push(t),s?t.wait(d):t})).then((function(){return Promise.all(v)})).then((function(e){var t=a(e,3),r=t[0],n=t[1],i=t[2];return{objectIDs:n.objectIDs,taskIDs:[r.taskID].concat(o(n.taskIDs),[i.taskID])}})),(function(e,t){return Promise.all(v.map((function(e){return e.wait(t)})))}))}},Ze=function(e){return function(t,n){return nt(e)(t,r(r({},n),{},{clearExistingRules:!0}))}},Ye=function(e){return function(t,n){return ot(e)(t,r(r({},n),{},{clearExistingSynonyms:!0}))}},et=function(e){return function(t,r){return f(tt(e)([t],r).then((function(e){return{objectID:e.objectIDs[0],taskID:e.taskIDs[0]}})),(function(t,r){return ft(e)(t.taskID,r)}))}},tt=function(e){return function(t,r){var a=r||{},o=a.autoGenerateObjectIDIfNotExist,i=n(a,["autoGenerateObjectIDIfNotExist"]),u=o?dt.AddObject:dt.UpdateObject;if(u===dt.UpdateObject){var s=!0,c=!1,l=void 0;try{for(var d,m=t[Symbol.iterator]();!(s=(d=m.next()).done);s=!0)if(void 0===d.value.objectID)return f(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(e){c=!0,l=e}finally{try{s||null==m.return||m.return()}finally{if(c)throw l}}}return Se(e)(t,u,i)}},rt=function(e){return function(t,r){return nt(e)([t],r)}},nt=function(e){return function(t,r){var a=r||{},o=a.forwardToReplicas,i=a.clearExistingRules,u=g(n(a,["forwardToReplicas","clearExistingRules"]));return o&&(u.queryParameters.forwardToReplicas=1),i&&(u.queryParameters.clearExistingRules=1),f(e.transporter.write({method:j,path:h("1/indexes/%s/rules/batch",e.indexName),data:t},u),(function(t,r){return ft(e)(t.taskID,r)}))}},at=function(e){return function(t,r){return ot(e)([t],r)}},ot=function(e){return function(t,r){var a=r||{},o=a.forwardToReplicas,i=a.clearExistingSynonyms,u=a.replaceExistingSynonyms,s=g(n(a,["forwardToReplicas","clearExistingSynonyms","replaceExistingSynonyms"]));return o&&(s.queryParameters.forwardToReplicas=1),(u||i)&&(s.queryParameters.replaceExistingSynonyms=1),f(e.transporter.write({method:j,path:h("1/indexes/%s/synonyms/batch",e.indexName),data:t},s),(function(t,r){return ft(e)(t.taskID,r)}))}},it=function(e){return function(t,r){return e.transporter.read({method:j,path:h("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},r)}},ut=function(e){return function(t,r,n){return e.transporter.read({method:j,path:h("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:r},cacheable:!0},n)}},st=function(e){return function(t,r){return e.transporter.read({method:j,path:h("1/indexes/%s/rules/search",e.indexName),data:{query:t}},r)}},ct=function(e){return function(t,r){return e.transporter.read({method:j,path:h("1/indexes/%s/synonyms/search",e.indexName),data:{query:t}},r)}},lt=function(e){return function(t,r){var a=r||{},o=a.forwardToReplicas,i=g(n(a,["forwardToReplicas"]));return o&&(i.queryParameters.forwardToReplicas=1),f(e.transporter.write({method:E,path:h("1/indexes/%s/settings",e.indexName),data:t},i),(function(t,r){return ft(e)(t.taskID,r)}))}},ft=function(e){return function(t,r){return l((function(n){return function(e){return function(t,r){return e.transporter.read({method:I,path:h("1/indexes/%s/task/%s",e.indexName,t.toString())},r)}}(e)(t,r).then((function(e){return"published"!==e.status?n():void 0}))}))}}
2,dt={AddObject:"addObject",UpdateObject:"updateObject",PartialUpdateObject:"partialUpdateObject",PartialUpdateObjectNoCreate:"partialUpdateObjectNoCreate",DeleteObject:"deleteObject",DeleteIndex:"delete",ClearIndex:"clear"},mt={Settings:"settings",Synonyms:"synonyms",Rules:"rules"},ht=1,pt=2,gt=3,yt=function(e){return function(t,n){var a=t.map((function(e){return r(r({},e),{},{threshold:e.threshold||0})}));return e.transporter.read({method:j,path:"1/indexes/*/recommendations",data:{requests:a},cacheable:!0},n)}},vt=function(e){return function(t,n){return yt(e)(t.map((function(e){return r(r({},e),{},{fallbackParameters:{},model:"bought-together"})})),n)}},bt=function(e){return function(t,n){return yt(e)(t.map((function(e){return r(r({},e),{},{model:"related-products"})})),n)}},wt=function(e){return function(t,n){var a=t.map((function(e){return r(r({},e),{},{model:"trending-facets",threshold:e.threshold||0})}));return e.transporter.read({method:j,path:"1/indexes/*/recommendations",data:{requests:a},cacheable:!0},n)}},Pt=function(e){return function(t,n){var a=t.map((function(e){return r(r({},e),{},{model:"trending-items",threshold:e.threshold||0})}));return e.transporter.read({method:j,path:"1/indexes/*/recommendations",data:{requests:a},cacheable:!0},n)}},xt=function(e){return function(t,n){return yt(e)(t.map((function(e){return r(r({},e),{},{model:"looking-similar"})})),n)}},Ot=function(e){return function(t,n){var a=t.map((function(e){return r(r({},e),{},{model:"recommended-for-you",threshold:e.threshold||0})}));return e.transporter.read({method:j,path:"1/indexes/*/recommendations",data:{requests:a},cacheable:!0},n)}};function It(e,t,n){var a,o={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return r.setRequestHeader(t,e.headers[t])}));var n,a=function(e,n){return setTimeout((function(){r.abort(),t({status:0,content:n,isTimedOut:!0})}),1e3*e)},o=a(e.connectTimeout,"Connection timeout");r.onreadystatechange=function(){r.readyState>r.OPENED&&void 0===n&&(clearTimeout(o),n=a(e.responseTimeout,"Socket timeout"))},r.onerror=function(){0===r.status&&(clearTimeout(o),clearTimeout(n),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=function(){clearTimeout(o),clearTimeout(n),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},logger:(a=gt,{debug:function(e,t){return ht>=a&&console.debug(e,t),Promise.resolve()},info:function(e,t){return pt>=a&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:u({caches:[i({key:"".concat("4.23.3","-").concat(e)}),s()]}),userAgent:S("4.23.3").add({segment:"Browser"})},l=r(r({},o),n),f=function(){return function(e){return function(e){var t=e.region||"us",n=c(p.WithinHeaders,e.appId,e.apiKey),a=q(r(r({hosts:[{url:"personalization.".concat(t,".algolia.com")}]},e),{},{headers:r(r(r({},n.headers()),{"content-type":"application/json"}),e.headers),queryParameters:r(r({},n.queryParameters()),e.queryParameters)}));return m({appId:e.appId,transporter:a},e.methods)}
2(r(r(r({},o),e),{},{methods:{getPersonalizationStrategy:J,setPersonalizationStrategy:L}}))}};return function(e){var t=e.appId,n=c(void 0!==e.authMode?e.authMode:p.WithinHeaders,t,e.apiKey),a=q(r(r({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:y.Read},{url:"".concat(t,".algolia.net"),accept:y.Write}].concat(d([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:r(r(r({},n.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:r(r({},n.queryParameters()),e.queryParameters)}));return m({transporter:a,appId:t,addAlgoliaAgent:function(e,t){a.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([a.requestsCache.clear(),a.responsesCache.clear()]).then((function(){}))}},e.methods)}(r(r({},l),{},{methods:{search:pe,searchForFacetValues:ge,multipleBatch:me,multipleGetObjects:he,multipleQueries:pe,copyIndex:Q,copySettings:V,copySynonyms:$,copyRules:G,moveIndex:de,listIndices:le,getLogs:ne,listClusters:ce,multipleSearchForFacetValues:ge,getApiKey:ee,addApiKey:H,listApiKeys:se,updateApiKey:Ie,deleteApiKey:Z,restoreApiKey:be,assignUserID:M,assignUserIDs:W,getUserID:oe,searchUserIDs:xe,listUserIDs:fe,getTopUserIDs:ae,removeUserID:ye,hasPendingMappings:ie,clearDictionaryEntries:K,deleteDictionaryEntries:Y,getDictionarySettings:re,getAppTask:te,replaceDictionaryEntries:ve,saveDictionaryEntries:we,searchDictionaryEntries:Pe,setDictionarySettings:Oe,waitAppTask:je,customRequest:X,initIndex:function(e){return function(t){return ue(e)(t,{methods:{batch:Ee,delete:Re,findAnswers:Le,getObject:He,getObjects:We,saveObject:et,saveObjects:tt,search:it,searchForFacetValues:ut,waitTask:ft,setSettings:lt,getSettings:Qe,partialUpdateObject:Ve,partialUpdateObjects:$e,deleteObject:Ce,deleteObjects:Ue,deleteBy:_e,clearObjects:Te,browseObjects:De,getObjectPosition:Me,findObject:Be,exists:Je,saveSynonym:at,saveSynonyms:ot,getSynonym:Ge,searchSynonyms:ct,browseSynonyms:qe,deleteSynonym:ze,clearSynonyms:Ae,replaceAllObjects:Xe,replaceAllSynonyms:Ye,searchRules:st,getRule:Ke,deleteRule:Fe,saveRule:rt,saveRules:nt,replaceAllRules:Ze,browseRules:ke,clearRules:Ne}})}},initAnalytics:function(){return function(e){return function(e){var t=e.region||"us",n=c(p.WithinHeaders,e.appId,e.apiKey),a=q(r(r({hosts:[{url:"analytics.".concat(t,".algolia.com")}]},e),{},{headers:r(r(r({},n.headers()),{"content-type":"application/json"}),e.headers),queryParameters:r(r({},n.queryParameters()),e.queryParameters)}));return m({appId:e.appId,transporter:a},e.methods)}
2(r(r(r({},o),e),{},{methods:{addABTest:R,getABTest:U,getABTests:F,stopABTest:z,deleteABTest:C}}))}},initPersonalization:f,initRecommendation:function(){return function(e){return l.logger.info("The `initRecommendation` method is deprecated. Use `initPersonalization` instead."),f()(e)}},getRecommendations:yt,getFrequentlyBoughtTogether:vt,getLookingSimilar:xt,getRecommendedForYou:Ot,getRelatedProducts:bt,getTrendingFacets:wt,getTrendingItems:Pt}}))}return It.version="4.23.3",It}()},2773:function(e,t,r){"use strict";r.d(t,{A:function(){return l}});var n=r(6540),a=r(6771),o=r(4794);var i=e=>{const t=(0,o.useStaticQuery)("584609254");return n.createElement(n.Fragment,null,n.createElement("select",{value:`/resursy/${e.slug}`,onChange:e=>{const t=e.target.value;void 0!==window&&(window.location.href=t)}},t.allSanityResourceType.nodes.map((e=>{var t;return n.createElement("option",{value:`/resursy/${null===(t=e.slug)||void 0===t?void 0:t.current}`},e.name)}))))},u=r(2705),s=r(1681),c=r(8552);var l=e=>{var t,r,l,f;let d,m;e.slug&&-1!==e.slug.indexOf("/")?d=e.slug.split("/")[1]:d=e.slug;e.isResourceType&&(m="has-resource-dropdown");const h=e.start_date&&"ÑобÑÑие"===e.term_name&&e.is_term&&(()=>{const t=new Date(e.start_date);t.setHours(0,0,0,0);const r=new Date;return r.setHours(0,0,0,0),t>r})();let p=(null===(t=e.image)||void 0===t||null===(r=t.asset)||void 0===r?void 0:r.url)||(null===(l=e.image)||void 0===l||null===(f=l.asset)||void 0===f?void 0:f.publicUrl)||"";return n.createElement("section",{className:`ma-section ma-banner ma-banner--${d} ma-banner--${e.style} ${m&&m}`},n.createElement("div",{className:"ma-section-wrapper"},e.image&&n.createElement(n.Fragment,null,n.createElement("div",{className:"ma-banner__image"},p&&n.createElement("img",{src:`${p}?w=400`,alt:e.title})),n.createElement("svg",{className:"hidden","aria-hidden":"true",width:"0",height:"0",viewBox:"0 0 118 136"},n.createElement("defs",null,n.createElement("clipPath",{id:"svgPath"},n.createElement("path",{fill:"#91A2BA",d:"M56 1.73205C57.8564 0.660256 60.1436 0.660254 62 1.73205L114.89 32.2679C116.746 33.3397 117.89 35.3205 117.89 37.4641V98.5359C117.89 100.679 116.746 102.66 114.89 103.732L62 134.268C60.1436 135.34 57.8564 135.34 56 134.268L3.11027 103.732C1.25387 102.66 0.110271 100.679 0.110271 98.5359V37.4641C0.110271 35.3205 1.25387 33.3397 3.11027 32.2679L56 1.73205Z"}))))),n.createElement("h1",{className:"h1 ma-banner__title"},e.title),e.bio&&n.createElement("div",{className:"ma-banner__bio"},n.createElement(a.A,{value:e.bio})),e.description&&n.createElement("div",{className:"ma-banner__description"},n.createElement(a.A,{value:e.description})),e.registration_link&&n.createElement(s.A,{link_url:e.registration_link,label:e.register_label,button_class:"registration-link",button_style:"primary",button_small:!1}),e.start_date&&!h&&n.createElement("div",{className:"ma-banner__dates"},n.createElement("span",{className:"ma-banner__dates--start"}," ",n.createElement(u.A,{date:e.start_date,format:"month-year"}))," ",e.end_date&&n.createElement("span",{className:"ma-banner__dates--end"},n.createElement(u.A,{date:e.end_date,format:"month-year"})),e.count&&n.createElement("span",{className:"ma-banner__dates--count"},"(",e.count,")")),e.term_slug&&!h&&n.createElement("div",{className:"back-button-container"},n.createElement(o.Link,{to:`/resursy${e.term_slug}`,className:"ma-text-link"},n.createElement("div",{className:"ma-text-link__wrap"},n.createElement("span",{className:"ma-text-link__text"},"/daty"===e.term_slug&&"ÐÑе даÑÑ","ÐвÑоÑÑ"===e.term_name&&"ÐÑе авÑоÑÑ","ТемÑ"===e.term_name&&"ÐÑе ÑемÑ","ÐиÑание"===e.term_name&&"ÐÑе книги Ðиблии","СеÑии"===e.term_name&&"ÐÑе ÑеÑии","ÑобÑÑие"===e.term_name&&"ÐÑе конÑеÑенÑии","ÐвÑоÑÑ"!==e.term_name&&"/daty"!==e.term_slug&&"ÑобÑÑие"!==e.term_name&&"СеÑии"!==e.term_name&&"ТемÑ"!==e.term_name&&"ÐиÑание"!==e.term_name&&"ÐеÑнÑÑÑÑÑ Ðº ÑпиÑкÑ"),n.createElement(c.A,{style:"right"})))),e.isResourceType&&n.createElement(i,{title:e.title,slug:e.slug})))}},1351:function(e,t,r){"use strict";r.r(t);var n=r(4938),a=r.n(n),o=r(6540),i=r(5775),u=r(4466),s=r(2773),c=r(8152),l=r(7528),f=r(4771);const d=a()("ZOSU2SLWZU","59f6a5e048b043b6b605dfe65ec5c1f7").initIndex("word_of_grace_gatsby");t.default=e=>{const{0:t,1:r}=(0,o.useState)(null),{0:n,1:a}=(0,o.useState)(""),{0:m,1:h}=(0,o.useState)(void 0),p=(0,o.useMemo)((()=>m?o.createElement(o.Fragment,null,o.createElement("span",{className:"ma-banner__title--prefix"},"РезÑлÑÑаÑÑ Ð¿Ð¾Ð¸Ñка:")," ",m):"ÐоиÑк"),[m]);function g(e,t){e&&e.preventDefault(),d.search(t||n).then((e=>{let{hits:a}=e;r(a),h(t||n)}))}return(0,o.useEffect)((()=>
2{if(document.getElementById("search-input").focus(),"undefined"==typeof window)return;const e=window.location.search,t=new URLSearchParams(e).get("s");t&&(a(t),g(void 0,t))}),[]),o.createElement(o.Fragment,null,o.createElement(l.A,{title:`РезÑлÑÑаÑÑ Ð¿Ð¾Ð¸Ñка Ð´Ð»Ñ ${n}`}),o.createElement(s.A,{title:p}),o.createElement("form",{id:"search-form-desktop",onSubmit:g},o.createElement("div",{className:"search__components"},o.createElement("input",{id:"search-input",name:"s",type:"text",value:n,onChange:e=>a(e.target.value),placeholder:"ÐведиÑе Ð´Ð»Ñ Ð¿Ð¾Ð¸Ñка"}),o.createElement("button",{id:"search-submit",type:"submit","aria-label":"Submit Search"},o.createElement(f.A,null)))),(null==t?void 0:t.length)>0?o.createElement(c.A,{data:t,hideSearch:!0}):m&&o.createElement("p",{className:"search__no-results"},"Ðо ваÑÐµÐ¼Ñ Ð·Ð°Ð¿ÑоÑÑ Ð½Ð¸Ñего не найдено."),o.createElement(i.A,{style:"light"}),o.createElement(u.A,null))}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.