(self.webpackChunkAnTran=self.webpackChunkAnTran||[]).push([[524],{3350:function(t,e){"use strict";var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r=function(t){var e=t.location,n=e.search,r=e.hash,o=e.href,a=e.origin,s=e.protocol,c=e.host,u=e.hostname,l=e.port,p=t.location.pathname;!p&&o&&i&&(p=new URL(o).pathname);return{pathname:encodeURI(decodeURI(p)),search:n,hash:r,href:o,origin:a,protocol:s,host:c,hostname:u,port:l,state:t.history.state,key:t.history.state&&t.history.state.key||"initial"}},o=function(t,e){var o=[],a=r(t),i=!1,s=function(){};return{get location(){return a},get transitioning(){return i},_onTransitionComplete:function(){i=!1,s()},listen:function(e){o.push(e);var n=function(){a=r(t),e({location:a,action:"POP"})};return t.addEventListener("popstate",n),function(){t.removeEventListener("popstate",n),o=o.filter((function(t){return t!==e}))}},navigate:function(e){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=c.state,l=c.replace,p=void 0!==l&&l;if("number"==typeof e)t.history.go(e);else{u=n({},u,{key:Date.now()+""});try{i||p?t.history.replaceState(u,null,e):t.history.pushState(u,null,e)}catch(h){t.location[p?"replace":"assign"](e)}}a=r(t),i=!0;var d=new Promise((function(t){return s=t}));return o.forEach((function(t){return t({location:a,action:"PUSH"})})),d}}},a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",e=t.indexOf("?"),n={pathname:e>-1?t.substr(0,e):t,search:e>-1?t.substr(e):""},r=0,o=[n],a=[null];return{get location(){return o[r]},addEventListener:function(t,e){},removeEventListener:function(t,e){},history:{get entries(){return o},get index(){return r},get state(){return a[r]},pushState:function(t,e,n){var i=n.split("?"),s=i[0],c=i[1],u=void 0===c?"":c;r++,o.push({pathname:s,search:u.length?"?"+u:u}),a.push(t)},replaceState:function(t,e,n){var i=n.split("?"),s=i[0],c=i[1],u=void 0===c?"":c;o[r]={pathname:s,search:u},a[r]=t},go:function(t){var e=r+t;e<0||e>a.length-1||(r=e)}}}},i=!("undefined"==typeof window||!window.document||!window.document.createElement),s=o(i?window:a()),c=s.navigate;e.W7=s},8371:function(t,e,n){"use strict";e.Up=void 0;var r,o=n(311),a=(r=o)&&r.__esModule?r:{default:r};var i=function(t,e){return t.substr(0,e.length)===e},s=function(t,e){for(var n=void 0,r=void 0,o=e.split("?")[0],i=h(o),s=""===i[0],u=d(t),p=0,f=u.length;p<f;p++){var g=!1,v=u[p].route;if(v.default)r={route:v,params:{},uri:e};else{for(var y=h(v.path),w={},b=Math.max(i.length,y.length),P=0;P<b;P++){var E=y[P],C=i[P];if(l(E)){w[E.slice(1)||"*"]=i.slice(P).map(decodeURIComponent).join("/");break}if(void 0===C){g=!0;break}var S=c.exec(E);if(S&&!s){-1===m.indexOf(S[1])||(0,a.default)(!1);var R=decodeURIComponent(C);w[S[1]]=R}else if(E!==C){g=!0;break}}if(!g){n={route:v,params:w,uri:"/"+i.slice(0,P).join("/")};break}}}return n||r||null},c=/^:(.+)/,u=function(t){return c.test(t)},l=function(t){return t&&"*"===t[0]},p=function(t,e){return{route:t,score:t.default?0:h(t.path).reduce((function(t,e){return t+=4,!function(t){return""===t}(e)?u(e)?t+=2:l(e)?t-=5:t+=3:t+=1,t}),0),index:e}},d=function(t){return t.map(p).sort((function(t,e){return t.score<e.score?1:t.score>e.score?-1:t.index-e.index}))},h=function(t){return t.replace(/(^\/+|\/+$)/g,"").split("/")},f=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return t+((n=n.filter((function(t){return t&&t.length>0})))&&n.length>0?"?"+n.join("&"):"")},m=["uri","path"];e.Up=s},6395:function(t,e){"use strict";e.T=void 0;e.T=(t,e="legacy")=>{const n=t.endsWith(".html"),r=t.endsWith(".xml"),o=t.endsWith(".pdf");return"/"===t?t:((n||r||o)&&(e="never"),"always"===e?t.endsWith("/")?t:`${t}/`:"never"===e&&t.endsWith("/")?t.slice(0,-1):t)}},7035:function(t,e,n){"use strict";e.RV=e.z_=void 0;var r=n(3215);e.z_=r.ScrollHandler;var o=n(3721);e.RV=o.useScrollRestoration},3215:function(t,e,n){"use strict";var r=n(4994);e.__esModule=!0,e.ScrollHandler=e.ScrollContext=void 0;var o=r(n(2475)),a=r(n(6221)),i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=u(e);if(n&&n.has(t))return n.get(t);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var i=o?Object.getOwnPropertyDescriptor(t,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=t[a]}r.default=t,n&&n.set(t,r);return r}(n(6540)),s=r(n(5556)),c=n(4351);function u(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(u=function(t){return t?n:e})(t)}var l=i.createContext(new c.SessionStorage);e.ScrollContext=l,l.displayName="GatsbyScrollContext";var p=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this)._stateStorage=new c.SessionStorage,e._isTicking=!1,e._latestKnownScrollY=0,e.scrollListener=function(){e._latestKnownScrollY=window.scrollY,e._isTicking||(e._isTicking=!0,requestAnimationFrame(e._saveScroll.bind((0,o.default)(e))))},e.windowScroll=function(t,n){e.shouldUpdateScroll(n,e.props)&&window.scrollTo(0,t)},e.scrollToHash=function(t,n){var r=document.getElementById(t.substring(1));r&&e.shouldUpdateScroll(n,e.props)&&r.scrollIntoView()},e.shouldUpdateScroll=function(t,n){var r=e.props.shouldUpdateScroll;return!r||r.call((0,o.default)(e),t,n)},e}(0,a.default)(e,t);var n=e.prototype;return n._saveScroll=function(){var t=this.props.location.key||null;t&&this._stateStorage.save(this.props.location,t,this._latestKnownScrollY),this._isTicking=!1},n.componentDidMount=function(){var t;window.addEventListener("scroll",this.scrollListener);var e=this.props.location,n=e.key,r=e.hash;n&&(t=this._stateStorage.read(this.props.location,n)),t?this.windowScroll(t,void 0):r&&this.scrollToHash(decodeURI(r),void 0)},n.componentWillUnmount=function(){window.removeEventListener("scroll",this.scrollListener)},n.componentDidUpdate=function(t){var e,n=this.props.location,r=n.hash,o=n.key;o&&(e=this._stateStorage.read(this.props.location,o)),r?this.scrollToHash(decodeURI(r),t):this.windowScroll(e,t)},n.render=function(){return i.createElement(l.Provider,{value:this._stateStorage},this.props.children)},e}(i.Component);e.ScrollHandler=p,p.propTypes={shouldUpdateScroll:s.default.func,children:s.default.element.isRequired,location:s.default.object.isRequired}},4351:function(t,e){"use strict";e.__esModule=!0,e.SessionStorage=void 0;var n="___GATSBY_REACT_ROUTER_SCROLL",r=function(){function t(){}var e=t.prototype;return e.read=function(t,e){var r=this.getStateKey(t,e);try{var o=window.sessionStorage.getItem(r);return o?JSON.parse(o):0}catch(a){return window&&window[n]&&window[n][r]?window[n][r]:0}},e.save=function(t,e,r){var o=this.getStateKey(t,e),a=JSON.stringify(r);try{window.sessionStorage.setItem(o,a)}catch(i){window&&window[n]||(window[n]={}),window[n][o]=JSON.parse(a)}},e.getStateKey=function(t,e){var n="@@scroll|"+t.pathname;return null==e?n:n+"|"+e},t}();e.SessionStorage=r},3721:function(t,e,n){"use strict";e.__esModule=!0,e.useScrollRestoration=function(t){var e=(0,a.useLocation)(),n=(0,o.useContext)(r.ScrollContext),i=(0,o.useRef)(null);return(0,o.useLayoutEffect)((function(){if(i.current){var r=n.read(e,t);i.current.scrollTo(0,r||0)}}),[e.key]),{ref:i,onScroll:function(){i.current&&n.save(e,t,i.current.scrollTop)}}};var r=n(3215),o=n(6540),a=n(1693)},2311:function(t,e,n){"use strict";e.__esModule=!0,e.onInitialClientRender=void 0;n(5535),n(9300);e.onInitialClientRender=()=>{}},3309:function(t,e){"use strict";e.__esModule=!0,e.getForwards=function(t){return null==t?void 0:t.flatMap((t=>(null==t?void 0:t.forward)||[]))}},9300:function(t,e,n){"use strict";e.__esModule=!0,e.injectPartytownSnippet=function(t){if(!t.length)return;const e=document.querySelector("script[data-partytown]"),n=document.querySelector('iframe[src*="~partytown/partytown-sandbox-sw"]');e&&e.remove();n&&n.remove();const a=(0,o.getForwards)(t),i=document.createElement("script");i.dataset.partytown="",i.innerHTML=(0,r.partytownSnippet)({forward:a}),document.head.appendChild(i)};var r=n(4656),o=n(3309)},6877:function(t,e,n){e.components={"component---src-pages-404-js":()=>Promise.all([n.e(869),n.e(223),n.e(125)]).then(n.bind(n,3331)),"component---src-pages-focuswindowrecorder-js":()=>Promise.all([n.e(869),n.e(223),n.e(839)]).then(n.bind(n,753)),"component---src-pages-portfolios-js":()=>Promise.all([n.e(869),n.e(223),n.e(478)]).then(n.bind(n,5942)),"component---src-templates-blog-index-js":()=>Promise.all([n.e(869),n.e(223),n.e(64),n.e(27)]).then(n.bind(n,2771)),"component---src-templates-blog-post-js":()=>Promise.all([n.e(869),n.e(223),n.e(64),n.e(751)]).then(n.bind(n,9180)),"component---src-templates-category-posts-js":()=>Promise.all([n.e(869),n.e(223),n.e(64),n.e(928)]).then(n.bind(n,1112)),"component---src-templates-tag-posts-js":()=>Promise.all([n.e(869),n.e(223),n.e(64),n.e(24)]).then(n.bind(n,434)),"component---src-templates-tags-index-js":()=>Promise.all([n.e(869),n.e(223),n.e(64),n.e(434)]).then(n.bind(n,9842))}},9377:function(t,e,n){t.exports=[{plugin:n(5616),options:{plugins:[],maxWidth:630,markdownCaptions:!0,linkImagesToOriginal:!1,backgroundColor:"transparent",showCaptions:["title"],quality:50,withWebp:!1,withAvif:!1,loading:"lazy",decoding:"async",disableBgImageOnAlpha:!1,disableBgImage:!1}},{plugin:n(6774),options:{plugins:[],className:"autolink-heading",offsetY:0}},{plugin:n(7914),options:{plugins:[],name:"Blog of An Tran",short_name:"An",start_url:"/",background_color:"#ffffff",theme_color:"#663399",display:"standalone",icon:"src/images/icon.png",legacy:!0,theme_color_in_head:!0,cache_busting_mode:"query",crossOrigin:"anonymous",include_favicon:!0,cacheDigest:"432cf78a22b6b621d4c86234ad6d3cf4"}},{plugin:n(1744),options:{plugins:[],domain:"antran.app"}},{plugin:n(4860),options:{plugins:[]}},{plugin:n(8108),options:{plugins:[]}},{plugin:n(2311),options:{plugins:[]}}]},20:function(t,e,n){const r=n(9377),{getResourceURLsForPathname:o,loadPage:a,loadPageSync:i}=n(8234).Zf;e.N=function(t,e,n,s){void 0===e&&(e={});let c=r.map((n=>{if(!n.plugin[t])return;e.getResourceURLsForPathname=o,e.loadPage=a,e.loadPageSync=i;const r=n.plugin[t](e,n.options);return r&&s&&(e=s({args:e,result:r,plugin:n})),r}));return c=c.filter((t=>void 0!==t)),c.length>0?c:n?[n]:[]},e.v=(t,e,n)=>r.reduce(((n,r)=>r.plugin[t]?n.then((()=>r.plugin[t](e,r.options))):n),Promise.resolve())},9369:function(t,e,n){"use strict";n.d(e,{A:function(){return r}});var r=function(t){return t=t||Object.create(null),{on:function(e,n){(t[e]||(t[e]=[])).push(n)},off:function(e,n){t[e]&&t[e].splice(t[e].indexOf(n)>>>0,1)},emit:function(e,n){(t[e]||[]).slice().map((function(t){t(n)})),(t["*"]||[]).slice().map((function(t){t(e,n)}))}}}()},8990:function(t,e,n){"use strict";n.d(e,{Yl:function(){return d},Hh:function(){return f},UA:function(){return h},QX:function(){return p}});var r=n(8371),o=n(8797),a=t=>{if(void 0===t)return t;let[e,n=""]=t.split("?");return n&&(n="?"+n),"/"===e?"/"+n:"/"===e.charAt(e.length-1)?e.slice(0,-1)+n:e+n},i=n(6491);const s=new Map;let c=[];const u=t=>{let e=t;if(-1!==t.indexOf("?")){const[n,r]=t.split("?");e=`${n}?${encodeURIComponent(r)}`}const n=decodeURIComponent(e);return(0,o.A)(n,decodeURIComponent("")).split("#")[0]};function l(t){return t.startsWith("/")||t.startsWith("https://")||t.startsWith("http://")?t:new URL(t,window.location.href+(window.location.href.endsWith("/")?"":"/")).pathname}const p=t=>{c=t},d=t=>{const e=m(t),n=c.map((t=>{let{path:e,matchPath:n}=t;return{path:n,originalPath:e}})),o=(0,r.Up)(n,e);return o?a(o.route.originalPath):null},h=t=>{const e=m(t),n=c.map((t=>{let{path:e,matchPath:n}=t;return{path:n,originalPath:e}})),o=(0,r.Up)(n,e);return o?o.params:{}},f=t=>{const e=u(l(t));if(s.has(e))return s.get(e);const n=(0,i.X)(t);if(n)return f(n.toPath);let r=d(e);return r||(r=m(t)),s.set(e,r),r},m=t=>{let e=u(l(t));return"/index.html"===e&&(e="/"),e=a(e),e}},8007:function(t,e,n){"use strict";n.r(e),n.d(e,{Link:function(){return s.Ay},PageRenderer:function(){return a()},Script:function(){return f.Script},ScriptStrategy:function(){return f.ScriptStrategy},StaticQuery:function(){return d},StaticQueryContext:function(){return u},StaticQueryServerContext:function(){return l},collectedScriptsByPage:function(){return f.collectedScriptsByPage},graphql:function(){return g},navigate:function(){return s.oo},parsePath:function(){return s.Rr},prefetchPathname:function(){return m},scriptCache:function(){return f.scriptCache},scriptCallbackCache:function(){return f.scriptCallbackCache},useScrollRestoration:function(){return i.RV},useStaticQuery:function(){return h},withAssetPrefix:function(){return s.Zf},withPrefix:function(){return s.Fe}});var r=n(8234),o=n(2549),a=n.n(o),i=n(7035),s=n(7078),c=n(6540);const u=c.createContext({});let l=null;function p(t){let{staticQueryData:e,data:n,query:r,render:o}=t;const a=n?n.data:e[r]&&e[r].data;return c.createElement(c.Fragment,null,a&&o(a),!a&&c.createElement("div",null,"Loading (StaticQuery)"))}c.createServerContext&&(l=c.createServerContext("StaticQuery",{}));const d=t=>{const{data:e,query:n,render:r,children:o}=t;return c.createElement(u.Consumer,null,(t=>c.createElement(p,{data:e,query:n,render:r||o,staticQueryData:t})))},h=t=>{var e;let n;if(c.useContext,n=l&&Object.keys(l._currentValue).length?c.useContext(l):c.useContext(u),isNaN(Number(t)))throw new Error(`useStaticQuery was called with a string but expects to be called using \`graphql\`. Try this:\n\nimport { useStaticQuery, graphql } from 'gatsby';\n\nuseStaticQuery(graphql\`${t}\`);\n`);if(null!==(e=n[t])&&void 0!==e&&e.data)return n[t].data;throw new Error("The result of this StaticQuery could not be fetched.\n\nThis is likely a bug in Gatsby and if refreshing the page does not fix it, please open an issue in https://github.com/gatsbyjs/gatsby/issues")};var f=n(5535);const m=r.Ay.enqueue;function g(){throw new Error("It appears like Gatsby is misconfigured. Gatsby related `graphql` calls are supposed to only be evaluated at compile time, and then compiled away. Unfortunately, something went wrong and the query was left in the compiled code.\n\nUnless your site has a complex or custom babel/Gatsby configuration this is likely a bug in Gatsby.")}},8234:function(t,e,n){"use strict";n.d(e,{Wi:function(){return p},N5:function(){return w},Ay:function(){return E},LE:function(){return C},Zf:function(){return P},iC:function(){return b}});var r=n(5540);function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const i=function(t){if("undefined"==typeof document)return!1;const e=document.createElement("link");try{if(e.relList&&"function"==typeof e.relList.supports)return e.relList.supports(t)}catch(n){return!1}return!1}("prefetch")?function(t,e){return new Promise(((n,r)=>{if("undefined"==typeof document)return void r();const o=document.createElement("link");o.setAttribute("rel","prefetch"),o.setAttribute("href",t),Object.keys(e).forEach((t=>{o.setAttribute(t,e[t])})),o.onload=n,o.onerror=r;(document.getElementsByTagName("head")[0]||document.getElementsByName("script")[0].parentNode).appendChild(o)}))}:function(t){return new Promise(((e,n)=>{const r=new XMLHttpRequest;r.open("GET",t,!0),r.onload=()=>{200===r.status?e():n()},r.send(null)}))},s={};var c=function(t,e){return new Promise((n=>{s[t]?n():i(t,e).then((()=>{n(),s[t]=!0})).catch((()=>{}))}))},u=n(9369),l=n(8990);const p={Error:"error",Success:"success"},d=t=>{const[e,n]=t.split("?");var r;return`/page-data/${"/"===e?"index":(r="/"===(r=e)[0]?r.slice(1):r).endsWith("/")?r.slice(0,-1):r}/page-data.json${n?`?${n}`:""}`};function h(t,e){return void 0===e&&(e="GET"),new Promise((n=>{const r=new XMLHttpRequest;r.open(e,t,!0),r.onreadystatechange=()=>{4==r.readyState&&n(r)},r.send(null)}))}const f=/bot|crawler|spider|crawling/i,m=function(t,e,n){void 0===e&&(e=null);const r={componentChunkName:t.componentChunkName,path:t.path,webpackCompilationHash:t.webpackCompilationHash,matchPath:t.matchPath,staticQueryHashes:t.staticQueryHashes,getServerDataError:t.getServerDataError};return{component:e,head:n,json:t.result,page:r}};let g=function(){function t(t,e){this.inFlightNetworkRequests=new Map,this.pageDb=new Map,this.inFlightDb=new Map,this.staticQueryDb={},this.pageDataDb=new Map,this.partialHydrationDb=new Map,this.isPrefetchQueueRunning=!1,this.prefetchQueued=[],this.prefetchTriggered=new Set,this.prefetchCompleted=new Set,this.loadComponent=t,(0,l.QX)(e)}var e=t.prototype;return e.memoizedGet=function(t){let e=this.inFlightNetworkRequests.get(t);return e||(e=h(t,"GET"),this.inFlightNetworkRequests.set(t,e)),e.then((e=>(this.inFlightNetworkRequests.delete(t),e))).catch((e=>{throw this.inFlightNetworkRequests.delete(t),e}))},e.setApiRunner=function(t){this.apiRunner=t,this.prefetchDisabled=t("disableCorePrefetching").some((t=>t))},e.fetchPageDataJson=function(t){const{pagePath:e,retries:n=0}=t,r=d(e);return this.memoizedGet(r).then((r=>{const{status:o,responseText:a}=r;if(200===o)try{const n=JSON.parse(a);if(void 0===n.path)throw new Error("not a valid pageData response");const r=e.split("?")[1];return r&&!n.path.includes(r)&&(n.path+=`?${r}`),Object.assign(t,{status:p.Success,payload:n})}catch(i){}return 404===o||200===o?"/404.html"===e||"/500.html"===e?Object.assign(t,{status:p.Error}):this.fetchPageDataJson(Object.assign(t,{pagePath:"/404.html",notFound:!0})):500===o?this.fetchPageDataJson(Object.assign(t,{pagePath:"/500.html",internalServerError:!0})):n<3?this.fetchPageDataJson(Object.assign(t,{retries:n+1})):Object.assign(t,{status:p.Error})}))},e.fetchPartialHydrationJson=function(t){const{pagePath:e,retries:n=0}=t,r=d(e).replace(".json","-rsc.json");return this.memoizedGet(r).then((r=>{const{status:o,responseText:a}=r;if(200===o)try{return Object.assign(t,{status:p.Success,payload:a})}catch(i){}return 404===o||200===o?"/404.html"===e||"/500.html"===e?Object.assign(t,{status:p.Error}):this.fetchPartialHydrationJson(Object.assign(t,{pagePath:"/404.html",notFound:!0})):500===o?this.fetchPartialHydrationJson(Object.assign(t,{pagePath:"/500.html",internalServerError:!0})):n<3?this.fetchPartialHydrationJson(Object.assign(t,{retries:n+1})):Object.assign(t,{status:p.Error})}))},e.loadPageDataJson=function(t){const e=(0,l.Hh)(t);if(this.pageDataDb.has(e)){const t=this.pageDataDb.get(e);return Promise.resolve(t)}return this.fetchPageDataJson({pagePath:e}).then((t=>(this.pageDataDb.set(e,t),t)))},e.loadPartialHydrationJson=function(t){const e=(0,l.Hh)(t);if(this.partialHydrationDb.has(e)){const t=this.partialHydrationDb.get(e);return Promise.resolve(t)}return this.fetchPartialHydrationJson({pagePath:e}).then((t=>(this.partialHydrationDb.set(e,t),t)))},e.findMatchPath=function(t){return(0,l.Yl)(t)},e.loadPage=function(t){const e=(0,l.Hh)(t);if(this.pageDb.has(e)){const t=this.pageDb.get(e);return t.error?{error:t.error,status:t.status}:Promise.resolve(t.payload)}if(this.inFlightDb.has(e))return this.inFlightDb.get(e);let n;return n=Promise.all([this.loadAppData(),this.loadPageDataJson(e)]).then((t=>{const n=t[1];if(n.status===p.Error)return{status:p.Error};let r=n.payload;const{componentChunkName:o,staticQueryHashes:a=[]}=r,i={},s=Promise.all([this.loadComponent(o),this.loadComponent(o,"head")]).then((e=>{let o,[a,s]=e;return i.createdAt=new Date,!a||a instanceof Error?(i.status=p.Error,i.error=a):(i.status=p.Success,!0===n.notFound&&(i.notFound=!0),r=Object.assign(r,{webpackCompilationHash:t[0]?t[0].webpackCompilationHash:""}),o=m(r,a,s)),o})),c=Promise.all(a.map((t=>{if(this.staticQueryDb[t]){const e=this.staticQueryDb[t];return{staticQueryHash:t,jsonPayload:e}}return this.memoizedGet(`/page-data/sq/d/${t}.json`).then((e=>{const n=JSON.parse(e.responseText);return{staticQueryHash:t,jsonPayload:n}})).catch((()=>{throw new Error(`We couldn't load "/page-data/sq/d/${t}.json"`)}))}))).then((t=>{const e={};return t.forEach((t=>{let{staticQueryHash:n,jsonPayload:r}=t;e[n]=r,this.staticQueryDb[n]=r})),e}));return Promise.all([s,c]).then((t=>{let n,[r,o]=t;return r&&(n={...r,staticQueryResults:o},i.payload=n,u.A.emit("onPostLoadPageResources",{page:n,pageResources:n})),this.pageDb.set(e,i),i.error?{error:i.error,status:i.status}:n})).catch((t=>({error:t,status:p.Error})))})),n.then((()=>{this.inFlightDb.delete(e)})).catch((t=>{throw this.inFlightDb.delete(e),t})),this.inFlightDb.set(e,n),n},e.loadPageSync=function(t,e){void 0===e&&(e={});const n=(0,l.Hh)(t);if(this.pageDb.has(n)){var r;const t=this.pageDb.get(n);if(t.payload)return t.payload;if(null!==(r=e)&&void 0!==r&&r.withErrorDetails)return{error:t.error,status:t.status}}},e.shouldPrefetch=function(t){return!!(()=>{if("connection"in navigator&&void 0!==navigator.connection){if((navigator.connection.effectiveType||"").includes("2g"))return!1;if(navigator.connection.saveData)return!1}return!0})()&&((!navigator.userAgent||!f.test(navigator.userAgent))&&!this.pageDb.has(t))},e.prefetch=function(t){if(!this.shouldPrefetch(t))return{then:t=>t(!1),abort:()=>{}};if(this.prefetchTriggered.has(t))return{then:t=>t(!0),abort:()=>{}};const e={resolve:null,reject:null,promise:null};e.promise=new Promise(((t,n)=>{e.resolve=t,e.reject=n})),this.prefetchQueued.push([t,e]);const n=new AbortController;return n.signal.addEventListener("abort",(()=>{const e=this.prefetchQueued.findIndex((e=>{let[n]=e;return n===t}));-1!==e&&this.prefetchQueued.splice(e,1)})),this.isPrefetchQueueRunning||(this.isPrefetchQueueRunning=!0,setTimeout((()=>{this._processNextPrefetchBatch()}),3e3)),{then:(t,n)=>e.promise.then(t,n),abort:n.abort.bind(n)}},e._processNextPrefetchBatch=function(){(window.requestIdleCallback||(t=>setTimeout(t,0)))((()=>{const t=this.prefetchQueued.splice(0,4),e=Promise.all(t.map((t=>{let[e,n]=t;return this.prefetchTriggered.has(e)||(this.apiRunner("onPrefetchPathname",{pathname:e}),this.prefetchTriggered.add(e)),this.prefetchDisabled?n.resolve(!1):this.doPrefetch((0,l.Hh)(e)).then((()=>{this.prefetchCompleted.has(e)||(this.apiRunner("onPostPrefetchPathname",{pathname:e}),this.prefetchCompleted.add(e)),n.resolve(!0)}))})));this.prefetchQueued.length?e.then((()=>{setTimeout((()=>{this._processNextPrefetchBatch()}),3e3)})):this.isPrefetchQueueRunning=!1}))},e.doPrefetch=function(t){const e=d(t);return c(e,{crossOrigin:"anonymous",as:"fetch"}).then((()=>this.loadPageDataJson(t)))},e.hovering=function(t){this.loadPage(t)},e.getResourceURLsForPathname=function(t){const e=(0,l.Hh)(t),n=this.pageDataDb.get(e);if(n){const t=m(n.payload);return[].concat(a(v(t.page.componentChunkName)),[d(e)])}return null},e.isPageNotFound=function(t){const e=(0,l.Hh)(t),n=this.pageDb.get(e);return!n||n.notFound},e.loadAppData=function(t){return void 0===t&&(t=0),this.memoizedGet("/page-data/app-data.json").then((e=>{const{status:n,responseText:r}=e;let o;if(200!==n&&t<3)return this.loadAppData(t+1);if(200===n)try{const t=JSON.parse(r);if(void 0===t.webpackCompilationHash)throw new Error("not a valid app-data response");o=t}catch(a){}return o}))},t}();const v=t=>(window.___chunkMapping[t]||[]).map((t=>""+t));let y,w=function(t){function e(e,n,r){var o;return o=t.call(this,(function(t,n){if(void 0===n&&(n="components"),!e[n="components"][t])throw new Error(`We couldn't find the correct component chunk with the name "${t}"`);return e[n][t]().catch((t=>t))}),n)||this,r&&o.pageDataDb.set((0,l.Hh)(r.path),{pagePath:r.path,payload:r,status:"success"}),o}(0,r.A)(e,t);var n=e.prototype;return n.doPrefetch=function(e){return t.prototype.doPrefetch.call(this,e).then((t=>{if(t.status!==p.Success)return Promise.resolve();const e=t.payload,n=e.componentChunkName,r=v(n);return Promise.all(r.map(c)).then((()=>e))}))},n.loadPageDataJson=function(e){return t.prototype.loadPageDataJson.call(this,e).then((t=>t.notFound?h(e,"HEAD").then((e=>200===e.status?{status:p.Error}:t)):t))},n.loadPartialHydrationJson=function(e){return t.prototype.loadPartialHydrationJson.call(this,e).then((t=>t.notFound?h(e,"HEAD").then((e=>200===e.status?{status:p.Error}:t)):t))},e}(g);const b=t=>{y=t},P={enqueue:t=>y.prefetch(t),getResourceURLsForPathname:t=>y.getResourceURLsForPathname(t),loadPage:t=>y.loadPage(t),loadPageSync:function(t,e){return void 0===e&&(e={}),y.loadPageSync(t,e)},prefetch:t=>y.prefetch(t),isPageNotFound:t=>y.isPageNotFound(t),hovering:t=>y.hovering(t),loadAppData:()=>y.loadAppData()};var E=P;function C(){return y?y.staticQueryDb:{}}},6017:function(t,e,n){"use strict";n.d(e,{A:function(){return w}});var r=n(6540),o=n(5556),a=n.n(o),i=n(20),s=n(8990),c=n(8007),u=n(1693),l=n(9732);function p(t){let{children:e,callback:n}=t;return(0,r.useEffect)((()=>{n()})),e}const d=["link","meta","style","title","base","noscript","script"];function h(t,e){if(t instanceof HTMLElement&&e instanceof HTMLElement){const n=e.getAttribute("nonce");if(n&&!t.getAttribute("nonce")){const r=e.cloneNode(!0);return r.setAttribute("nonce",""),r.nonce=n,n===t.nonce&&t.isEqualNode(r)}}return t.isEqualNode(e)}const f=document.createElement("div"),m=()=>{const t=document.querySelectorAll("[data-gatsby-head]");for(const e of t)e.parentNode.removeChild(e)},g=()=>{var t;const e=[],n=new Map;for(const u of f.childNodes){var r,o;const t=u.nodeName.toLowerCase(),i=null===(r=u.attributes)||void 0===r||null===(o=r.id)||void 0===o?void 0:o.value;if(d.includes(t)){let t=u.cloneNode(!0);if(t.setAttribute("data-gatsby-head",!0),"script"===t.nodeName.toLowerCase()){const e=document.createElement("script");for(const n of t.attributes)e.setAttribute(n.name,n.value);e.innerHTML=t.innerHTML,t=e}if(i)if(n.has(i)){var a;const r=n.get(i);null===(a=e[r].parentNode)||void 0===a||a.removeChild(e[r]),e[r]=t}else e.push(t),n.set(i,e.length-1);else e.push(t)}else;}const i=document.querySelectorAll("[data-gatsby-head]");var s;if(0===i.length)return void(s=document.head).append.apply(s,e);const c=[];!function(t){let{oldNodes:e,newNodes:n,onStale:r,onNew:o}=t;for(const a of e){const t=n.findIndex((t=>h(t,a)));-1===t?r(a):n.splice(t,1)}for(const a of n)o(a)}({oldNodes:i,newNodes:e,onStale:t=>t.parentNode.removeChild(t),onNew:t=>c.push(t)}),(t=document.head).append.apply(t,c)};function v(t){let{pageComponent:e,staticQueryResults:n,pageComponentProps:o}=t;(0,r.useEffect)((()=>{if(null!=e&&e.Head){!function(t){if("function"!=typeof t)throw new Error(`Expected "Head" export to be a function got "${typeof t}".`)}(e.Head);const{render:a}=(0,l.n)(),i=e.Head;a(r.createElement(p,{callback:g},r.createElement(c.StaticQueryContext.Provider,{value:n},r.createElement(u.LocationProvider,null,r.createElement(i,{location:{pathname:(t=o).location.pathname},params:t.params,data:t.data||{},pageContext:t.pageContext})))),f)}var t;return()=>{m()}}))}function y(t){const e={...t,params:{...(0,s.UA)(t.location.pathname),...t.pageResources.json.pageContext.__params}};let n;var o;n=t.pageResources.partialHydration?t.pageResources.partialHydration:(0,r.createElement)((o=t.pageResources.component)&&o.default||o,{...e,key:t.path||t.pageResources.page.path});v({pageComponent:t.pageResources.head,staticQueryResults:t.pageResources.staticQueryResults,pageComponentProps:e});return(0,i.N)("wrapPageElement",{element:n,props:e},n,(t=>{let{result:n}=t;return{element:n,props:e}})).pop()}y.propTypes={location:a().object.isRequired,pageResources:a().object.isRequired,data:a().object,pageContext:a().object.isRequired};var w=y},6498:function(t,e,n){"use strict";var r=n(5540),o=n(20),a=n(6540),i=n(1693),s=n(7035),c=n(8007),u=n(8234),l=n(6491),p=n(9369);const d={id:"gatsby-announcer",style:{position:"absolute",top:0,width:1,height:1,padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},"aria-live":"assertive","aria-atomic":"true"};var h=n(3350),f=n(7078);function m(t){const e=(0,l.X)(t),{hash:n,search:r}=window.location;return null!=e&&(window.___replace(e.toPath+r+n),!0)}let g="";window.addEventListener("unhandledrejection",(t=>{/loading chunk \d* failed./i.test(t.reason)&&g&&(window.location.pathname=g)}));const v=(t,e)=>{m(t.pathname)||(g=t.pathname,(0,o.N)("onPreRouteUpdate",{location:t,prevLocation:e}))},y=(t,e)=>{m(t.pathname)||(0,o.N)("onRouteUpdate",{location:t,prevLocation:e})},w=function(t,e){if(void 0===e&&(e={}),"number"==typeof t)return void h.W7.navigate(t);const{pathname:n,search:r,hash:a}=(0,f.Rr)(t),s=(0,l.X)(n);if(s&&(t=s.toPath+r+a),window.___swUpdated)return void(window.location=n+r+a);const c=setTimeout((()=>{p.A.emit("onDelayedLoadPageResources",{pathname:n}),(0,o.N)("onRouteUpdateDelayed",{location:window.location})}),1e3);u.Ay.loadPage(n+r).then((o=>{if(!o||o.status===u.Wi.Error)return window.history.replaceState({},"",location.href),window.location=n,void clearTimeout(c);o&&o.page.webpackCompilationHash!==window.___webpackCompilationHash&&("serviceWorker"in navigator&&null!==navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"clearPathResources"}),window.location=n+r+a),(0,i.navigate)(t,e),clearTimeout(c)}))};function b(t,e){let{location:n}=e;const{pathname:r,hash:a}=n,i=(0,o.N)("shouldUpdateScroll",{prevRouterProps:t,pathname:r,routerProps:{location:n},getSavedScrollPosition:t=>[0,this._stateStorage.read(t,t.key)]});if(i.length>0)return i[i.length-1];if(t){const{location:{pathname:e}}=t;if(e===r)return a?decodeURI(a.slice(1)):[0,0]}return!0}let P=function(t){function e(e){var n;return(n=t.call(this,e)||this).announcementRef=a.createRef(),n}(0,r.A)(e,t);var n=e.prototype;return n.componentDidUpdate=function(t,e){requestAnimationFrame((()=>{let t=`new page at ${this.props.location.pathname}`;document.title&&(t=document.title);const e=document.querySelectorAll("#gatsby-focus-wrapper h1");e&&e.length&&(t=e[0].textContent);const n=`Navigated to ${t}`;if(this.announcementRef.current){this.announcementRef.current.innerText!==n&&(this.announcementRef.current.innerText=n)}}))},n.render=function(){return a.createElement("div",Object.assign({},d,{ref:this.announcementRef}))},e}(a.Component);const E=(t,e)=>{var n,r;return t.href!==e.href||(null==t||null===(n=t.state)||void 0===n?void 0:n.key)!==(null==e||null===(r=e.state)||void 0===r?void 0:r.key)};let C=function(t){function e(e){var n;return n=t.call(this,e)||this,v(e.location,null),n}(0,r.A)(e,t);var n=e.prototype;return n.componentDidMount=function(){y(this.props.location,null)},n.shouldComponentUpdate=function(t){return!!E(t.location,this.props.location)&&(v(this.props.location,t.location),!0)},n.componentDidUpdate=function(t){E(t.location,this.props.location)&&y(this.props.location,t.location)},n.render=function(){return a.createElement(a.Fragment,null,this.props.children,a.createElement(P,{location:location}))},e}(a.Component);var S=n(6017),R=n(6877);function _(t,e){for(var n in t)if(!(n in e))return!0;for(var r in e)if(t[r]!==e[r])return!0;return!1}var k=function(t){function e(e){var n;n=t.call(this)||this;const{location:r,pageResources:o}=e;return n.state={location:{...r},pageResources:o||u.Ay.loadPageSync(r.pathname+r.search,{withErrorDetails:!0})},n}(0,r.A)(e,t),e.getDerivedStateFromProps=function(t,e){let{location:n}=t;if(e.location.href!==n.href){return{pageResources:u.Ay.loadPageSync(n.pathname+n.search,{withErrorDetails:!0}),location:{...n}}}return{location:{...n}}};var n=e.prototype;return n.loadResources=function(t){u.Ay.loadPage(t).then((e=>{e&&e.status!==u.Wi.Error?this.setState({location:{...window.location},pageResources:e}):(window.history.replaceState({},"",location.href),window.location=t)}))},n.shouldComponentUpdate=function(t,e){return e.pageResources?this.state.pageResources!==e.pageResources||(this.state.pageResources.component!==e.pageResources.component||(this.state.pageResources.json!==e.pageResources.json||(!(this.state.location.key===e.location.key||!e.pageResources.page||!e.pageResources.page.matchPath&&!e.pageResources.page.path)||function(t,e,n){return _(t.props,e)||_(t.state,n)}(this,t,e)))):(this.loadResources(t.location.pathname+t.location.search),!1)},n.render=function(){return this.props.children(this.state)},e}(a.Component),x=n(8797),j=n(9732);const O=new u.N5(R,[],window.pageData);(0,u.iC)(O),O.setApiRunner(o.N);const{render:T,hydrate:A}=(0,j.n)();window.asyncRequires=R,window.___emitter=p.A,window.___loader=u.Zf,h.W7.listen((t=>{t.location.action=t.action})),window.___push=t=>w(t,{replace:!1}),window.___replace=t=>w(t,{replace:!0}),window.___navigate=(t,e)=>w(t,e);const L="gatsby-reload-compilation-hash-match";(0,o.v)("onClientEntry").then((()=>{(0,o.N)("registerServiceWorker").filter(Boolean).length>0&&n(626);const t=t=>a.createElement(i.BaseContext.Provider,{value:{baseuri:"/",basepath:"/"}},a.createElement(S.A,t)),e=a.createContext({});let l=function(t){function n(){return t.apply(this,arguments)||this}return(0,r.A)(n,t),n.prototype.render=function(){const{children:t}=this.props;return a.createElement(i.Location,null,(n=>{let{location:r}=n;return a.createElement(k,{location:r},(n=>{let{pageResources:r,location:o}=n;if(r.partialHydration)return a.createElement(e.Provider,{value:{pageResources:r,location:o}},t);{const n=(0,u.LE)();return a.createElement(c.StaticQueryContext.Provider,{value:n},a.createElement(e.Provider,{value:{pageResources:r,location:o}},t))}}))}))},n}(a.Component),p=function(n){function o(){return n.apply(this,arguments)||this}return(0,r.A)(o,n),o.prototype.render=function(){return a.createElement(e.Consumer,null,(e=>{let{pageResources:n,location:r}=e;return a.createElement(C,{location:r},a.createElement(s.z_,{location:r,shouldUpdateScroll:b},a.createElement(i.Router,{basepath:"",location:r,id:"gatsby-focus-wrapper"},a.createElement(t,Object.assign({path:"/404.html"===n.page.path||"/500.html"===n.page.path?(0,x.A)(r.pathname,""):encodeURI((n.page.matchPath||n.page.path).split("?")[0])},this.props,{location:r,pageResources:n},n.json)))))}))},o}(a.Component);const{pagePath:d,location:h}=window;d&&""+d!==h.pathname+(d.includes("?")?h.search:"")&&!(O.findMatchPath((0,x.A)(h.pathname,""))||d.match(/^\/(404|500)(\/?|.html)$/)||d.match(/^\/offline-plugin-app-shell-fallback\/?$/))&&(0,i.navigate)(""+d+(d.includes("?")?"":h.search)+h.hash,{replace:!0});const f=()=>{try{return sessionStorage}catch{return null}};u.Zf.loadPage(h.pathname+h.search).then((t=>{var e;const n=f();if(null!=t&&null!==(e=t.page)&&void 0!==e&&e.webpackCompilationHash&&t.page.webpackCompilationHash!==window.___webpackCompilationHash&&("serviceWorker"in navigator&&null!==navigator.serviceWorker.controller&&"activated"===navigator.serviceWorker.controller.state&&navigator.serviceWorker.controller.postMessage({gatsbyApi:"clearPathResources"}),n)){if(!("1"===n.getItem(L)))return n.setItem(L,"1"),void window.location.reload(!0)}if(n&&n.removeItem(L),!t||t.status===u.Wi.Error){const e=`page resources for ${h.pathname} not found. Not rendering React`;if(t&&t.error)throw console.error(e),t.error;throw new Error(e)}const r=(0,o.N)("wrapRootElement",{element:a.createElement(p,null)},a.createElement(p,null),(t=>{let{result:e}=t;return{element:e}})).pop(),i=function(){const t=a.useRef(!1);return a.useEffect((()=>{t.current||(t.current=!0,performance.mark&&performance.mark("onInitialClientRender"),(0,o.N)("onInitialClientRender"))}),[]),a.createElement(l,null,r)},s=document.getElementById("gatsby-focus-wrapper");let c=T;s&&s.children.length&&(c=A);const d=(0,o.N)("replaceHydrateFunction",void 0,c)[0];function m(){const t="undefined"!=typeof window?document.getElementById("___gatsby"):null;d(a.createElement(i,null),t)}const g=document;if("complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll)setTimeout((function(){m()}),0);else{const t=function(){g.removeEventListener("DOMContentLoaded",t,!1),window.removeEventListener("load",t,!1),m()};g.addEventListener("DOMContentLoaded",t,!1),window.addEventListener("load",t,!1)}}))}))},963:function(t,e,n){"use strict";n.r(e);var r=n(6540),o=n(8234),a=n(6017);e.default=t=>{let{location:e}=t;const n=o.Ay.loadPageSync(e.pathname);return n?r.createElement(a.A,{location:e,pageResources:n,...n.json}):null}},2549:function(t,e,n){var r;t.exports=(r=n(963))&&r.default||r},9732:function(t,e,n){"use strict";n.d(e,{n:function(){return o}});const r=new WeakMap;function o(){let t,e;{const o=n(5338);t=(t,e)=>{let n=r.get(e);n||r.set(e,n=o.createRoot(e)),n.render(t)},e=(t,e)=>o.hydrateRoot(e,t)}return{render:t,hydrate:e}}},6566:function(t,e){e.M=t=>t},6491:function(t,e,n){"use strict";n.d(e,{X:function(){return a}});const r=new Map,o=new Map;function a(t){let e=r.get(t);return e||(e=o.get(t.toLowerCase())),e}[].forEach((t=>{t.ignoreCase?o.set(t.fromPath,t):r.set(t.fromPath,t)}))},626:function(t,e,n){"use strict";n.r(e);var r=n(20);"https:"!==window.location.protocol&&"localhost"!==window.location.hostname?console.error("Service workers can only be used over HTTPS, or on localhost for development"):"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").then((function(t){t.addEventListener("updatefound",(()=>{(0,r.N)("onServiceWorkerUpdateFound",{serviceWorker:t});const e=t.installing;console.log("installingWorker",e),e.addEventListener("statechange",(()=>{switch(e.state){case"installed":navigator.serviceWorker.controller?(window.___swUpdated=!0,(0,r.N)("onServiceWorkerUpdateReady",{serviceWorker:t}),window.___failedResources&&(console.log("resources failed, SW updated - reloading"),window.location.reload())):(console.log("Content is now available offline!"),(0,r.N)("onServiceWorkerInstalled",{serviceWorker:t}));break;case"redundant":console.error("The installing service worker became redundant."),(0,r.N)("onServiceWorkerRedundant",{serviceWorker:t});break;case"activated":(0,r.N)("onServiceWorkerActive",{serviceWorker:t})}}))}))})).catch((function(t){console.error("Error during service worker registration:",t)}))},8797:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=""),e?t===e?"/":t.startsWith(`${e}/`)?t.slice(e.length):t:t}n.d(e,{A:function(){return r}})},8108:function(t,e,n){"use strict";n.r(e)},7914:function(t,e,n){"use strict";n.r(e),n.d(e,{onRouteUpdate:function(){return r}});n(8007),n(4598);const r=function(t,e){let{location:n}=t}},4598:function(t,e,n){"use strict";var r=n(8007)},1744:function(t,e){"use strict";e.onRouteUpdate=function(t){var e=t.location;if("object"==typeof window.plausible){if(e&&void 0!==window.plausibleExcludePaths&&window.plausibleExcludePaths.some((function(t){return t.test(e.pathname)})))return null;window.plausible("pageview")}}},4860:function(t,e){"use strict";var n=!1,r=[".twitter-tweet",".twitter-timeline",".twitter-follow-button",".twitter-share-button"].join(",");e.onRouteUpdate=function(){var t,e;null!==document.querySelector(r)&&(n||(t='\n    window.twttr = (function(d, s, id) {\n      var js,\n        fjs = d.getElementsByTagName(s)[0],\n        t = window.twttr || {};\n      if (d.getElementById(id)) return t;\n      js = d.createElement(s);\n      js.id = id;\n      js.src = "https://platform.twitter.com/widgets.js";\n      fjs.parentNode.insertBefore(js, fjs);\n      t._e = [];\n      t.ready = function(f) {\n        t._e.push(f);\n      };\n      return t;\n    })(document, "script", "twitter-wjs");\n  ',(e=document.createElement("script")).type="text/javascript",e.innerText=t,document.getElementsByTagName("head")[0].appendChild(e),n=!0),"undefined"!=typeof twttr&&window.twttr.widgets&&"function"==typeof window.twttr.widgets.load&&window.twttr.widgets.load())}},6774:function(t,e){"use strict";var n=0,r=function(t){var e=window.decodeURI(t.replace("#",""));if(""!==e){var r=document.getElementById(e);if(r){var o=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,a=document.documentElement.clientTop||document.body.clientTop||0,i=window.getComputedStyle(r),s=i.getPropertyValue("scroll-margin-top")||i.getPropertyValue("scroll-snap-margin-top")||"0px";return r.getBoundingClientRect().top+o-parseInt(s,10)-a-n}}return null};e.onInitialClientRender=function(t,e){e.offsetY&&(n=e.offsetY),requestAnimationFrame((function(){var t=r(window.location.hash);null!==t&&window.scrollTo(0,t)}))},e.shouldUpdateScroll=function(t){var e=t.routerProps.location,n=r(e.hash);return null===n||[0,n]}},7688:function(t,e){"use strict";e.DEFAULT_OPTIONS={maxWidth:650,wrapperStyle:"",backgroundColor:"white",linkImagesToOriginal:!0,showCaptions:!1,markdownCaptions:!1,withWebp:!1,withAvif:!1,tracedSVG:!1,loading:"lazy",decoding:"async",disableBgImageOnAlpha:!1,disableBgImage:!1},e.EMPTY_ALT="GATSBY_EMPTY_ALT",e.imageClass="gatsby-resp-image-image",e.imageWrapperClass="gatsby-resp-image-wrapper",e.imageBackgroundClass="gatsby-resp-image-background-image"},5616:function(t,e,n){"use strict";var r=n(7688),o=r.DEFAULT_OPTIONS,a=r.imageClass,i=r.imageBackgroundClass,s=r.imageWrapperClass;e.onRouteUpdate=function(t,e){for(var n=Object.assign({},o,e),r=document.querySelectorAll("."+s),c=function(t){var e=r[t],o=e.querySelector("."+i),s=e.querySelector("."+a),c=function(){o.style.transition="opacity 0.5s 0.5s",s.style.transition="opacity 0.5s",u()},u=function t(){o.style.opacity=0,s.style.opacity=1,s.style.color="inherit",s.style.boxShadow="inset 0px 0px 0px 400px "+n.backgroundColor,s.removeEventListener("load",c),s.removeEventListener("error",t)};s.style.opacity=0,s.addEventListener("load",c),s.addEventListener("error",u),s.complete&&u()},u=0;u<r.length;u++)c(u)}},1693:function(t,e,n){"use strict";n.r(e),n.d(e,{BaseContext:function(){return H},Link:function(){return G},Location:function(){return D},LocationProvider:function(){return N},Match:function(){return Z},Redirect:function(){return X},Router:function(){return U},ServerLocation:function(){return M},createHistory:function(){return E},createMemorySource:function(){return C},globalHistory:function(){return R},isRedirect:function(){return K},matchPath:function(){return u},navigate:function(){return _},redirectTo:function(){return z},resolve:function(){return l},useLocation:function(){return tt},useMatch:function(){return rt},useNavigate:function(){return et},useParams:function(){return nt}});var r=n(6540),o=n(311),a=n.n(o),i=n(6566),s=function(t,e){return t.substr(0,e.length)===e},c=function(t,e){for(var n=void 0,r=void 0,o=e.split("?")[0],i=v(o),s=""===i[0],c=g(t),u=0,l=c.length;u<l;u++){var p=!1,h=c[u].route;if(h.default)r={route:h,params:{},uri:e};else{for(var m=v(h.path),y={},b=Math.max(i.length,m.length),P=0;P<b;P++){var E=m[P],C=i[P];if(f(E)){y[E.slice(1)||"*"]=i.slice(P).map(decodeURIComponent).join("/");break}if(void 0===C){p=!0;break}var S=d.exec(E);if(S&&!s){-1===w.indexOf(S[1])||a()(!1);var R=decodeURIComponent(C);y[S[1]]=R}else if(E!==C){p=!0;break}}if(!p){n={route:h,params:y,uri:"/"+i.slice(0,P).join("/")};break}}}return n||r||null},u=function(t,e){return c([{path:t}],e)},l=function(t,e){if(s(t,"/"))return t;var n=t.split("?"),r=n[0],o=n[1],a=e.split("?")[0],i=v(r),c=v(a);if(""===i[0])return y(a,o);if(!s(i[0],".")){var u=c.concat(i).join("/");return y(("/"===a?"":"/")+u,o)}for(var l=c.concat(i),p=[],d=0,h=l.length;d<h;d++){var f=l[d];".."===f?p.pop():"."!==f&&p.push(f)}return y("/"+p.join("/"),o)},p=function(t,e){var n=t.split("?"),r=n[0],o=n[1],a=void 0===o?"":o,i="/"+v(r).map((function(t){var n=d.exec(t);return n?e[n[1]]:t})).join("/"),s=e.location,c=(s=void 0===s?{}:s).search,u=(void 0===c?"":c).split("?")[1]||"";return i=y(i,a,u)},d=/^:(.+)/,h=function(t){return d.test(t)},f=function(t){return t&&"*"===t[0]},m=function(t,e){return{route:t,score:t.default?0:v(t.path).reduce((function(t,e){return t+=4,!function(t){return""===t}(e)?h(e)?t+=2:f(e)?t-=5:t+=3:t+=1,t}),0),index:e}},g=function(t){return t.map(m).sort((function(t,e){return t.score<e.score?1:t.score>e.score?-1:t.index-e.index}))},v=function(t){return t.replace(/(^\/+|\/+$)/g,"").split("/")},y=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return t+((n=n.filter((function(t){return t&&t.length>0})))&&n.length>0?"?"+n.join("&"):"")},w=["uri","path"],b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},P=function(t){var e=t.location,n=e.search,r=e.hash,o=e.href,a=e.origin,i=e.protocol,s=e.host,c=e.hostname,u=e.port,l=t.location.pathname;!l&&o&&S&&(l=new URL(o).pathname);return{pathname:encodeURI(decodeURI(l)),search:n,hash:r,href:o,origin:a,protocol:i,host:s,hostname:c,port:u,state:t.history.state,key:t.history.state&&t.history.state.key||"initial"}},E=function(t,e){var n=[],r=P(t),o=!1,a=function(){};return{get location(){return r},get transitioning(){return o},_onTransitionComplete:function(){o=!1,a()},listen:function(e){n.push(e);var o=function(){r=P(t),e({location:r,action:"POP"})};return t.addEventListener("popstate",o),function(){t.removeEventListener("popstate",o),n=n.filter((function(t){return t!==e}))}},navigate:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=i.state,c=i.replace,u=void 0!==c&&c;if("number"==typeof e)t.history.go(e);else{s=b({},s,{key:Date.now()+""});try{o||u?t.history.replaceState(s,null,e):t.history.pushState(s,null,e)}catch(p){t.location[u?"replace":"assign"](e)}}r=P(t),o=!0;var l=new Promise((function(t){return a=t}));return n.forEach((function(t){return t({location:r,action:"PUSH"})})),l}}},C=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",e=t.indexOf("?"),n={pathname:e>-1?t.substr(0,e):t,search:e>-1?t.substr(e):""},r=0,o=[n],a=[null];return{get location(){return o[r]},addEventListener:function(t,e){},removeEventListener:function(t,e){},history:{get entries(){return o},get index(){return r},get state(){return a[r]},pushState:function(t,e,n){var i=n.split("?"),s=i[0],c=i[1],u=void 0===c?"":c;r++,o.push({pathname:s,search:u.length?"?"+u:u}),a.push(t)},replaceState:function(t,e,n){var i=n.split("?"),s=i[0],c=i[1],u=void 0===c?"":c;o[r]={pathname:s,search:u},a[r]=t},go:function(t){var e=r+t;e<0||e>a.length-1||(r=e)}}}},S=!("undefined"==typeof window||!window.document||!window.document.createElement),R=E(S?window:C()),_=R.navigate,k=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function x(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function j(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function T(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var A=function(t,e){var n=(0,r.createContext)(e);return n.displayName=t,n},L=A("Location"),D=function(t){var e=t.children;return r.createElement(L.Consumer,null,(function(t){return t?e(t):r.createElement(N,null,e)}))},N=function(t){function e(){var n,r;j(this,e);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=O(this,t.call.apply(t,[this].concat(a))),r.state={context:r.getContext(),refs:{unlisten:null}},O(r,n)}return T(e,t),e.prototype.getContext=function(){var t=this.props.history;return{navigate:t.navigate,location:t.location}},e.prototype.componentDidCatch=function(t,e){if(!K(t))throw t;(0,this.props.history.navigate)(t.uri,{replace:!0})},e.prototype.componentDidUpdate=function(t,e){e.context.location!==this.state.context.location&&this.props.history._onTransitionComplete()},e.prototype.componentDidMount=function(){var t=this,e=this.state.refs,n=this.props.history;n._onTransitionComplete(),e.unlisten=n.listen((function(){Promise.resolve().then((function(){requestAnimationFrame((function(){t.unmounted||t.setState((function(){return{context:t.getContext()}}))}))}))}))},e.prototype.componentWillUnmount=function(){var t=this.state.refs;this.unmounted=!0,t.unlisten()},e.prototype.render=function(){var t=this.state.context,e=this.props.children;return r.createElement(L.Provider,{value:t},"function"==typeof e?e(t):e||null)},e}(r.Component);N.defaultProps={history:R};var M=function(t){var e=t.url,n=t.children,o=e.indexOf("?"),a=void 0,i="";return o>-1?(a=e.substring(0,o),i=e.substring(o)):a=e,r.createElement(L.Provider,{value:{location:{pathname:a,search:i,hash:""},navigate:function(){throw new Error("You can't call navigate on the server.")}}},n)},H=A("Base",{baseuri:"/",basepath:"/",navigate:R.navigate}),U=function(t){return r.createElement(H.Consumer,null,(function(e){return r.createElement(D,null,(function(n){return r.createElement(I,k({},e,n,t))}))}))},I=function(t){function e(){return j(this,e),O(this,t.apply(this,arguments))}return T(e,t),e.prototype.render=function(){var t=this.props,e=t.location,n=t.navigate,o=t.basepath,a=t.primary,i=t.children,s=(t.baseuri,t.component),u=void 0===s?"div":s,p=x(t,["location","navigate","basepath","primary","children","baseuri","component"]),d=r.Children.toArray(i).reduce((function(t,e){var n=at(o)(e);return t.concat(n)}),[]),h=e.pathname,f=c(d,h);if(f){var m=f.params,g=f.uri,v=f.route,y=f.route.value;o=v.default?o:v.path.replace(/\*$/,"");var w=k({},m,{uri:g,location:e,navigate:function(t,e){return n(l(t,g),e)}}),b=r.cloneElement(y,w,y.props.children?r.createElement(U,{location:e,primary:a},y.props.children):void 0),P=a?q:u,E=a?k({uri:g,location:e,component:u},p):p;return r.createElement(H.Provider,{value:{baseuri:g,basepath:o,navigate:w.navigate}},r.createElement(P,E,b))}return null},e}(r.PureComponent);I.defaultProps={primary:!0};var W=A("Focus"),q=function(t){var e=t.uri,n=t.location,o=t.component,a=x(t,["uri","location","component"]);return r.createElement(W.Consumer,null,(function(t){return r.createElement(B,k({},a,{component:o,requestFocus:t,uri:e,location:n}))}))},F=!0,Q=0,B=function(t){function e(){var n,r;j(this,e);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=O(this,t.call.apply(t,[this].concat(a))),r.state={},r.requestFocus=function(t){!r.state.shouldFocus&&t&&t.focus()},O(r,n)}return T(e,t),e.getDerivedStateFromProps=function(t,e){if(null==e.uri)return k({shouldFocus:!0},t);var n=t.uri!==e.uri,r=e.location.pathname!==t.location.pathname&&t.location.pathname===t.uri;return k({shouldFocus:n||r},t)},e.prototype.componentDidMount=function(){Q++,this.focus()},e.prototype.componentWillUnmount=function(){0===--Q&&(F=!0)},e.prototype.componentDidUpdate=function(t,e){t.location!==this.props.location&&this.state.shouldFocus&&this.focus()},e.prototype.focus=function(){var t=this.props.requestFocus;t?t(this.node):F?F=!1:this.node&&(this.node.contains(document.activeElement)||this.node.focus())},e.prototype.render=function(){var t=this,e=this.props,n=(e.children,e.style),o=(e.requestFocus,e.component),a=void 0===o?"div":o,i=(e.uri,e.location,x(e,["children","style","requestFocus","component","uri","location"]));return r.createElement(a,k({style:k({outline:"none"},n),tabIndex:"-1",ref:function(e){return t.node=e}},i),r.createElement(W.Provider,{value:this.requestFocus},this.props.children))},e}(r.Component);(0,i.M)(B);var $=function(){},J=r.forwardRef;void 0===J&&(J=function(t){return t});var G=J((function(t,e){var n=t.innerRef,o=x(t,["innerRef"]);return r.createElement(H.Consumer,null,(function(t){t.basepath;var a=t.baseuri;return r.createElement(D,null,(function(t){var i=t.location,c=t.navigate,u=o.to,p=o.state,d=o.replace,h=o.getProps,f=void 0===h?$:h,m=x(o,["to","state","replace","getProps"]),g=l(u,a),v=encodeURI(g),y=i.pathname===v,w=s(i.pathname,v);return r.createElement("a",k({ref:e||n,"aria-current":y?"page":void 0},m,f({isCurrent:y,isPartiallyCurrent:w,href:g,location:i}),{href:g,onClick:function(t){if(m.onClick&&m.onClick(t),it(t)){t.preventDefault();var e=d;if("boolean"!=typeof d&&y){var n=k({},i.state),r=(n.key,x(n,["key"]));o=k({},p),a=r,e=(s=Object.keys(o)).length===Object.keys(a).length&&s.every((function(t){return a.hasOwnProperty(t)&&o[t]===a[t]}))}c(g,{state:p,replace:e})}var o,a,s}}))}))}))}));function Y(t){this.uri=t}G.displayName="Link";var K=function(t){return t instanceof Y},z=function(t){throw new Y(t)},V=function(t){function e(){return j(this,e),O(this,t.apply(this,arguments))}return T(e,t),e.prototype.componentDidMount=function(){var t=this.props,e=t.navigate,n=t.to,r=(t.from,t.replace),o=void 0===r||r,a=t.state,i=(t.noThrow,t.baseuri),s=x(t,["navigate","to","from","replace","state","noThrow","baseuri"]);Promise.resolve().then((function(){var t=l(n,i);e(p(t,s),{replace:o,state:a})}))},e.prototype.render=function(){var t=this.props,e=(t.navigate,t.to),n=(t.from,t.replace,t.state,t.noThrow),r=t.baseuri,o=x(t,["navigate","to","from","replace","state","noThrow","baseuri"]),a=l(e,r);return n||z(p(a,o)),null},e}(r.Component),X=function(t){return r.createElement(H.Consumer,null,(function(e){var n=e.baseuri;return r.createElement(D,null,(function(e){return r.createElement(V,k({},e,{baseuri:n},t))}))}))},Z=function(t){var e=t.path,n=t.children;return r.createElement(H.Consumer,null,(function(t){var o=t.baseuri;return r.createElement(D,null,(function(t){var r=t.navigate,a=t.location,i=l(e,o),s=u(i,a.pathname);return n({navigate:r,location:a,match:s?k({},s.params,{uri:s.uri,path:e}):null})}))}))},tt=function(){var t=(0,r.useContext)(L);if(!t)throw new Error("useLocation hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");return t.location},et=function(){var t=(0,r.useContext)(H);if(!t)throw new Error("useNavigate hook was used but a BaseContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");return t.navigate},nt=function(){var t=(0,r.useContext)(H);if(!t)throw new Error("useParams hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");var e=tt(),n=u(t.basepath,e.pathname);return n?n.params:null},rt=function(t){if(!t)throw new Error("useMatch(path: string) requires an argument of a string to match against");var e=(0,r.useContext)(H);if(!e)throw new Error("useMatch hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");var n=tt(),o=l(t,e.baseuri),a=u(o,n.pathname);return a?k({},a.params,{uri:a.uri,path:t}):null},ot=function(t){return t.replace(/(^\/+|\/+$)/g,"")},at=function t(e){return function(n){if(!n)return null;if(n.type===r.Fragment&&n.props.children)return r.Children.map(n.props.children,t(e));var o,i,s;if(n.props.path||n.props.default||n.type===X||a()(!1),n.type!==X||n.props.from&&n.props.to||a()(!1),n.type===X&&(o=n.props.from,i=n.props.to,s=function(t){return h(t)},v(o).filter(s).sort().join("/")!==v(i).filter(s).sort().join("/"))&&a()(!1),n.props.default)return{value:n,default:!0};var c=n.type===X?n.props.from:n.props.path,u="/"===c?e:ot(e)+"/"+ot(c);return{value:n,default:n.props.default,path:n.props.children?ot(u)+"/*":u}}},it=function(t){return!t.defaultPrevented&&0===t.button&&!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}},311:function(t){"use strict";t.exports=function(t,e,n,r,o,a,i,s){if(!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,a,i,s],l=0;(c=new Error(e.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},2475:function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},6221:function(t,e,n){var r=n(5636);t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},4994:function(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},5636:function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4656:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.SCRIPT_TYPE="text/partytown",e.partytownSnippet=t=>((t,e)=>{const{forward:n=[],...r}=t||{},o=JSON.stringify(r,((t,e)=>("function"==typeof e&&(e=String(e)).startsWith(t+"(")&&(e="function "+e),e)));return["!(function(w,p,f,c){",Object.keys(r).length>0?`c=w[p]=Object.assign(w[p]||{},${o});`:"c=w[p]=w[p]||{};","c[f]=(c[f]||[])",n.length>0?`.concat(${JSON.stringify(n)})`:"","})(window,'partytown','forward');",e].join("")})(t,'/* Partytown 0.5.4 - MIT builder.io */\n!function(t,e,n,i,r,o,a,d,s,c,p,l){function u(){l||(l=1,"/"==(a=(o.lib||"/~partytown/")+(o.debug?"debug/":""))[0]&&(s=e.querySelectorAll(\'script[type="text/partytown"]\'),i!=t?i.dispatchEvent(new CustomEvent("pt1",{detail:t})):(d=setTimeout(w,1e4),e.addEventListener("pt0",f),r?h(1):n.serviceWorker?n.serviceWorker.register(a+(o.swPath||"partytown-sw.js"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener("statechange",(function(t){"activated"==t.target.state&&h()}))}),console.error):w())))}function h(t){c=e.createElement(t?"script":"iframe"),t||(c.setAttribute("style","display:block;width:0;height:0;border:0;visibility:hidden"),c.setAttribute("aria-hidden",!0)),c.src=a+"partytown-"+(t?"atomics.js?v=0.5.4":"sandbox-sw.html?"+Date.now()),e.body.appendChild(c)}function w(t,n){for(f(),t=0;t<s.length;t++)(n=e.createElement("script")).innerHTML=s[t].innerHTML,e.head.appendChild(n);c&&c.parentNode.removeChild(c)}function f(){clearTimeout(d)}o=t.partytown||{},i==t&&(o.forward||[]).map((function(e){p=t,e.split(".").map((function(e,n,i){p=p[i[n]]=n+1<i.length?"push"==i[n+1]?[]:p[i[n]]||{}:function(){(t._ptf=t._ptf||[]).push(i,arguments)}}))})),"complete"==e.readyState?u():(t.addEventListener("DOMContentLoaded",u),t.addEventListener("load",u))}(window,document,navigator,top,window.crossOriginIsolated);')},5540:function(t,e,n){"use strict";function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e)}n.d(e,{A:function(){return o}})},7078:function(t,e,n){"use strict";n.d(e,{Ay:function(){return w},Fe:function(){return p},Rr:function(){return s},Zf:function(){return m},oo:function(){return b}});var r=n(5556),o=n(6540),a=n(1693);n(6395);function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function s(t){let e=t||"/",n="",r="";const o=e.indexOf("#");-1!==o&&(r=e.slice(o),e=e.slice(0,o));const a=e.indexOf("?");return-1!==a&&(n=e.slice(a),e=e.slice(0,a)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}const c=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=t=>{if("string"==typeof t)return!(t=>c.test(t))(t)},l=()=>"";function p(t,e=""){var n;if(!u(t))return t;if(t.startsWith("./")||t.startsWith("../"))return t;const r=null!=(n=null!=e?e:l())?n:"/";return`${null!=r&&r.endsWith("/")?r.slice(0,-1):r}${t.startsWith("/")?t:`/${t}`}`}const d=t=>null==t?void 0:t.startsWith("/"),h=(t,e)=>"number"==typeof t?t:u(t)?d(t)?function(t){const e=p(t);return e}(t):function(t,e){if(d(t))return t;const n=(0,a.resolve)(t,e);return n}(t,e):t,f=["to","getProps","onClick","onMouseEnter","activeClassName","activeStyle","innerRef","partiallyActive","state","replace","_location"];function m(t){return p(t,l())}const g={activeClassName:r.string,activeStyle:r.object,partiallyActive:r.bool};function v(t){return o.createElement(a.Location,null,(({location:e})=>o.createElement(y,i({},t,{_location:e}))))}class y extends o.Component{constructor(t){super(t),this.defaultGetProps=({isPartiallyCurrent:t,isCurrent:e})=>(this.props.partiallyActive?t:e)?{className:[this.props.className,this.props.activeClassName].filter(Boolean).join(" "),style:i({},this.props.style,this.props.activeStyle)}:null;let e=!1;"undefined"!=typeof window&&window.IntersectionObserver&&(e=!0),this.state={IOSupported:e},this.abortPrefetch=null,this.handleRef=this.handleRef.bind(this)}_prefetch(){let t=window.location.pathname+window.location.search;this.props._location&&this.props._location.pathname&&(t=this.props._location.pathname+this.props._location.search);const e=s(h(this.props.to,t)),n=e.pathname+e.search;if(t!==n)return ___loader.enqueue(n)}componentWillUnmount(){if(!this.io)return;const{instance:t,el:e}=this.io;this.abortPrefetch&&this.abortPrefetch.abort(),t.unobserve(e),t.disconnect()}handleRef(t){this.props.innerRef&&Object.prototype.hasOwnProperty.call(this.props.innerRef,"current")?this.props.innerRef.current=t:this.props.innerRef&&this.props.innerRef(t),this.state.IOSupported&&t&&(this.io=((t,e)=>{const n=new window.IntersectionObserver((n=>{n.forEach((n=>{t===n.target&&e(n.isIntersecting||n.intersectionRatio>0)}))}));return n.observe(t),{instance:n,el:t}})(t,(t=>{t?this.abortPrefetch=this._prefetch():this.abortPrefetch&&this.abortPrefetch.abort()})))}render(){const t=this.props,{to:e,getProps:n=this.defaultGetProps,onClick:r,onMouseEnter:c,state:l,replace:p,_location:d}=t,m=function(t,e){if(null==t)return{};var n,r,o={},a=Object.keys(t);for(r=0;r<a.length;r++)e.indexOf(n=a[r])>=0||(o[n]=t[n]);return o}(t,f),g=h(e,d.pathname);return u(g)?o.createElement(a.Link,i({to:g,state:l,getProps:n,innerRef:this.handleRef,onMouseEnter:t=>{c&&c(t);const e=s(g);___loader.hovering(e.pathname+e.search)},onClick:t=>{if(r&&r(t),!(0!==t.button||this.props.target||t.defaultPrevented||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)){t.preventDefault();let e=p;const n=encodeURI(g)===d.pathname;"boolean"!=typeof p&&n&&(e=!0),window.___navigate(g,{state:l,replace:e})}return!0}},m)):o.createElement("a",i({href:g},m))}}y.propTypes=i({},g,{onClick:r.func,to:r.string.isRequired,replace:r.bool,state:r.object});var w=o.forwardRef(((t,e)=>o.createElement(v,i({innerRef:e},t))));const b=(t,e)=>{window.___navigate(h(t,window.location.pathname),e)}},5535:function(t,e,n){"use strict";n.r(e),n.d(e,{Script:function(){return f},ScriptStrategy:function(){return u},collectedScriptsByPage:function(){return s},scriptCache:function(){return d},scriptCallbackCache:function(){return h}});var r=n(6540),o=n(1693);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},a.apply(this,arguments)}const i=new Map,s={get:t=>i.get(t)||[],set(t,e){const n=i.get(t)||[];n.push(e),i.set(t,n)},delete(t){i.delete(t)}},c="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(t){const e=Date.now();return setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})}),1)};var u,l;(l=u||(u={})).postHydrate="post-hydrate",l.idle="idle",l.offMainThread="off-main-thread";const p=new Set(["src","strategy","dangerouslySetInnerHTML","children","onLoad","onError"]),d=new Set,h=new Map;function f(t){return r.createElement(o.Location,null,(()=>r.createElement(m,t)))}function m(t){const{src:e,strategy:n=u.postHydrate}=t||{},{pathname:i}=(0,o.useLocation)();if((0,r.useEffect)((()=>{let e;switch(n){case u.postHydrate:e=g(t);break;case u.idle:c((()=>{e=g(t)}));break;case u.offMainThread:{const e=y(t);s.set(i,e)}}return()=>{const{script:t,loadCallback:n,errorCallback:r}=e||{};n&&(null==t||t.removeEventListener("load",n)),r&&(null==t||t.removeEventListener("error",r)),null==t||t.remove()}}),[]),n===u.offMainThread){const o=v(t),c=y(t);return"undefined"==typeof window&&s.set(i,c),r.createElement("script",o?a({type:"text/partytown","data-strategy":n,crossOrigin:"anonymous"},c,{dangerouslySetInnerHTML:{__html:v(t)}}):a({type:"text/partytown",src:w(e),"data-strategy":n,crossOrigin:"anonymous"},c))}return null}function g(t){const{id:e,src:n,strategy:r=u.postHydrate,onLoad:o,onError:i}=t||{},s=e||n,c=["load","error"],l={load:o,error:i};if(s){for(const t of c)if(null!=l&&l[t]){var p;const e=h.get(s)||{},{callbacks:n=[]}=(null==e?void 0:e[t])||{};var f,m;n.push(null==l?void 0:l[t]),null!=e&&null!=(p=e[t])&&p.event?null==l||null==(f=l[t])||f.call(l,null==e||null==(m=e[t])?void 0:m.event):h.set(s,a({},e,{[t]:{callbacks:n}}))}if(d.has(s))return null}const g=v(t),w=y(t),P=document.createElement("script");e&&(P.id=e),P.dataset.strategy=r;for(const[a,u]of Object.entries(w))P.setAttribute(a,u);g&&(P.textContent=g),n&&(P.src=n);const E={};if(s){for(const t of c){const e=e=>b(e,s,t);P.addEventListener(t,e),E[`${t}Callback`]=e}d.add(s)}return document.body.appendChild(P),{script:P,loadCallback:E.loadCallback,errorCallback:E.errorCallback}}function v(t){const{dangerouslySetInnerHTML:e,children:n=""}=t||{},{__html:r=""}=e||{};return r||n}function y(t){const e={};for(const[n,r]of Object.entries(t))p.has(n)||(e[n]=r);return e}function w(t){if(t)return`/__third-party-proxy?url=${encodeURIComponent(t)}`}function b(t,e,n){const r=h.get(e)||{};for(const a of(null==r||null==(o=r[n])?void 0:o.callbacks)||[]){var o;a(t)}h.set(e,{[n]:{event:t}})}}},function(t){t.O(0,[869,593],(function(){return e=6498,t(t.s=e);var e}));t.O()}]);
//# sourceMappingURL=app-83bfa0e4c8ccd4981794.js.map