-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp-1866a6919c20a9051f19.js
3 lines (3 loc) · 94.4 KB
/
app-1866a6919c20a9051f19.js
1
2
3
/*! For license information please see app-1866a6919c20a9051f19.js.LICENSE.txt */
(self.webpackChunkwww=self.webpackChunkwww||[]).push([[143],{3150:function(e){"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(t,"\\$&")}},4506:function(e,t){"use strict";t.H=void 0;t.H=(e,t="always")=>{const n=e.endsWith(".html"),o=e.endsWith(".xml"),r=e.endsWith(".pdf");return"/"===e?e:((n||o||r)&&(t="never"),"always"===t?e.endsWith("/")?e:`${e}/`:"never"===t&&e.endsWith("/")?e.slice(0,-1):e)}},9679:function(e,t,n){"use strict";t.$C=void 0;var o=n(1432);t.$C=o.ScrollHandler,n(4855).useScrollRestoration},1432:function(e,t,n){"use strict";var o=n(4836);t.__esModule=!0,t.ScrollHandler=t.ScrollContext=void 0;var r=o(n(6115)),a=o(n(7867)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=r?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(o,a,i):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(7294)),s=o(n(5697)),c=n(1142);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}var u=i.createContext(new c.SessionStorage);t.ScrollContext=u,u.displayName="GatsbyScrollContext";var d=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return(t=e.call.apply(e,[this].concat(o))||this)._stateStorage=new c.SessionStorage,t._isTicking=!1,t._latestKnownScrollY=0,t.scrollListener=function(){t._latestKnownScrollY=window.scrollY,t._isTicking||(t._isTicking=!0,requestAnimationFrame(t._saveScroll.bind((0,r.default)(t))))},t.windowScroll=function(e,n){t.shouldUpdateScroll(n,t.props)&&window.scrollTo(0,e)},t.scrollToHash=function(e,n){var o=document.getElementById(e.substring(1));o&&t.shouldUpdateScroll(n,t.props)&&o.scrollIntoView()},t.shouldUpdateScroll=function(e,n){var o=t.props.shouldUpdateScroll;return!o||o.call((0,r.default)(t),e,n)},t}(0,a.default)(t,e);var n=t.prototype;return n._saveScroll=function(){var e=this.props.location.key||null;e&&this._stateStorage.save(this.props.location,e,this._latestKnownScrollY),this._isTicking=!1},n.componentDidMount=function(){var e;window.addEventListener("scroll",this.scrollListener);var t=this.props.location,n=t.key,o=t.hash;n&&(e=this._stateStorage.read(this.props.location,n)),o?this.scrollToHash(decodeURI(o),void 0):e&&this.windowScroll(e,void 0)},n.componentWillUnmount=function(){window.removeEventListener("scroll",this.scrollListener)},n.componentDidUpdate=function(e){var t,n=this.props.location,o=n.hash,r=n.key;r&&(t=this._stateStorage.read(this.props.location,r)),o?this.scrollToHash(decodeURI(o),e):this.windowScroll(t,e)},n.render=function(){return i.createElement(u.Provider,{value:this._stateStorage},this.props.children)},t}(i.Component);t.ScrollHandler=d,d.propTypes={shouldUpdateScroll:s.default.func,children:s.default.element.isRequired,location:s.default.object.isRequired}},1142:function(e,t){"use strict";t.__esModule=!0,t.SessionStorage=void 0;var n="___GATSBY_REACT_ROUTER_SCROLL",o=function(){function e(){}var t=e.prototype;return t.read=function(e,t){var o=this.getStateKey(e,t);try{var r=window.sessionStorage.getItem(o);return r?JSON.parse(r):0}catch(a){return window&&window[n]&&window[n][o]?window[n][o]:0}},t.save=function(e,t,o){var r=this.getStateKey(e,t),a=JSON.stringify(o);try{window.sessionStorage.setItem(r,a)}catch(i){window&&window[n]||(window[n]={}),window[n][r]=JSON.parse(a)}},t.getStateKey=function(e,t){var n="@@scroll|"+e.pathname;return null==t?n:n+"|"+t},e}();t.SessionStorage=o},4855:function(e,t,n){"use strict";t.__esModule=!0,t.useScrollRestoration=function(e){var t=(0,a.useLocation)(),n=(0,r.useContext)(o.ScrollContext),i=(0,r.useRef)(null);return(0,r.useLayoutEffect)((function(){if(i.current){var o=n.read(t,e);i.current.scrollTo(0,o||0)}}),[t.key]),{ref:i,onScroll:function(){i.current&&n.save(t,e,i.current.scrollTop)}}};var o=n(1432),r=n(7294),a=n(7896)},4094:function(e,t,n){"use strict";t.__esModule=!0,t.onInitialClientRender=void 0;n(3521),n(2731);t.onInitialClientRender=()=>{}},7730:function(e,t){"use strict";t.__esModule=!0,t.getForwards=function(e){return null==e?void 0:e.flatMap((e=>(null==e?void 0:e.forward)||[]))}},2731:function(e,t,n){"use strict";t.__esModule=!0,t.injectPartytownSnippet=function(e){if(!e.length)return;const t=document.querySelector("script[data-partytown]"),n=document.querySelector('iframe[src*="~partytown/partytown-sandbox-sw"]');t&&t.remove();n&&n.remove();const a=(0,r.getForwards)(e),i=document.createElement("script");i.dataset.partytown="",i.innerHTML=(0,o.partytownSnippet)({forward:a}),document.head.appendChild(i)};var o=n(2911),r=n(7730)},5418:function(e,t,n){t.components={"component---node-modules-pitayan-gatsby-theme-pitayan-src-pages-404-index-tsx":()=>Promise.all([n.e(351),n.e(896)]).then(n.bind(n,5505)),"component---node-modules-pitayan-gatsby-theme-pitayan-src-pages-authors-index-tsx":()=>Promise.all([n.e(351),n.e(293)]).then(n.bind(n,193)),"component---node-modules-pitayan-gatsby-theme-pitayan-src-pages-categories-index-tsx":()=>Promise.all([n.e(351),n.e(751)]).then(n.bind(n,8155)),"component---node-modules-pitayan-gatsby-theme-pitayan-src-pages-index-tsx":()=>Promise.all([n.e(351),n.e(301)]).then(n.bind(n,992)),"component---node-modules-pitayan-gatsby-theme-pitayan-src-templates-all-posts-index-tsx":()=>Promise.all([n.e(351),n.e(761)]).then(n.bind(n,5300)),"component---node-modules-pitayan-gatsby-theme-pitayan-src-templates-author-posts-index-tsx":()=>Promise.all([n.e(351),n.e(675)]).then(n.bind(n,6979)),"component---node-modules-pitayan-gatsby-theme-pitayan-src-templates-category-posts-index-tsx":()=>Promise.all([n.e(351),n.e(286)]).then(n.bind(n,3387)),"component---node-modules-pitayan-gatsby-theme-pitayan-src-templates-post-index-tsx-content-file-path-content-posts-2022-03-30-quick-start-index-mdx":()=>Promise.all([n.e(556),n.e(351),n.e(343),n.e(922),n.e(947)]).then(n.bind(n,8459)),"component---node-modules-pitayan-gatsby-theme-pitayan-src-templates-post-index-tsx-content-file-path-content-posts-2022-03-31-gatsby-plugin-pitayan-plugin-options-index-mdx":()=>Promise.all([n.e(556),n.e(351),n.e(343),n.e(922),n.e(174)]).then(n.bind(n,3808)),"component---node-modules-pitayan-gatsby-theme-pitayan-src-templates-post-index-tsx-content-file-path-content-posts-2022-04-01-import-custom-components-index-mdx":()=>Promise.all([n.e(556),n.e(351),n.e(343),n.e(922),n.e(944)]).then(n.bind(n,1569)),"component---node-modules-pitayan-gatsby-theme-pitayan-src-templates-post-index-tsx-content-file-path-content-posts-2022-04-02-multiple-pictures-index-mdx":()=>Promise.all([n.e(556),n.e(351),n.e(343),n.e(922),n.e(248)]).then(n.bind(n,9687)),"component---node-modules-pitayan-gatsby-theme-pitayan-src-templates-post-index-tsx-content-file-path-content-posts-2022-04-03-embed-social-media-index-mdx":()=>Promise.all([n.e(556),n.e(351),n.e(343),n.e(922),n.e(265)]).then(n.bind(n,6611)),"component---node-modules-pitayan-gatsby-theme-pitayan-src-templates-post-index-tsx-content-file-path-content-posts-2022-04-04-a-post-with-source-code-index-mdx":()=>Promise.all([n.e(556),n.e(351),n.e(343),n.e(922),n.e(915)]).then(n.bind(n,6355)),"component---node-modules-pitayan-gatsby-theme-pitayan-src-templates-post-index-tsx-content-file-path-content-posts-2022-04-05-a-simple-post-lorem-ipsum-index-mdx":()=>Promise.all([n.e(556),n.e(351),n.e(343),n.e(922),n.e(674)]).then(n.bind(n,7964)),"component---node-modules-pitayan-gatsby-theme-pitayan-src-templates-post-index-tsx-content-file-path-content-posts-2022-04-06-another-simple-post-lorem-ipsum-index-mdx":()=>Promise.all([n.e(556),n.e(351),n.e(343),n.e(922),n.e(4)]).then(n.bind(n,9095)),"component---node-modules-pitayan-gatsby-theme-pitayan-src-templates-post-index-tsx-content-file-path-content-posts-2023-02-12-no-heading-post-index-mdx":()=>Promise.all([n.e(556),n.e(351),n.e(343),n.e(922),n.e(668)]).then(n.bind(n,6754)),"component---node-modules-pitayan-gatsby-theme-pitayan-src-templates-post-index-tsx-content-file-path-content-posts-styleguide-index-md":()=>Promise.all([n.e(556),n.e(351),n.e(343),n.e(922),n.e(454)]).then(n.bind(n,4231)),"component---node-modules-pitayan-gatsby-theme-pitayan-src-templates-site-index-tsx-content-file-path-content-site-about-index-md":()=>Promise.all([n.e(351),n.e(343),n.e(180)]).then(n.bind(n,8776)),"component---node-modules-pitayan-gatsby-theme-pitayan-src-templates-site-index-tsx-content-file-path-content-site-privacy-policy-index-md":()=>Promise.all([n.e(351),n.e(343),n.e(609)]).then(n.bind(n,4208)),"component---node-modules-pitayan-gatsby-theme-pitayan-src-templates-site-index-tsx-content-file-path-content-site-terms-and-conditions-index-md":()=>Promise.all([n.e(351),n.e(343),n.e(241)]).then(n.bind(n,8334)),"component---node-modules-pitayan-gatsby-theme-pitayan-src-templates-site-index-tsx-content-file-path-content-site-write-for-us-index-md":()=>Promise.all([n.e(351),n.e(343),n.e(367)]).then(n.bind(n,6672))}},4741:function(e,t,n){e.exports=[{plugin:n(2154),options:{plugins:[],maxWidth:650,linkImagesToOriginal:!0,showCaptions:!1,markdownCaptions:!1,backgroundColor:"white",quality:50,withWebp:!1,withAvif:!1,loading:"lazy",decoding:"async",disableBgImageOnAlpha:!1,disableBgImage:!1}},{plugin:n(436),options:{plugins:[]}},{plugin:n(6442),options:{plugins:[],usePrefix:["oembed"],providers:{exclude:["Redit"]}}},{plugin:n(2154),options:{plugins:[],maxWidth:1e4,linkImagesToOriginal:!1,quality:100,withWebp:!1,showCaptions:!0,markdownCaptions:!1,backgroundColor:"white",withAvif:!1,loading:"lazy",decoding:"async",disableBgImageOnAlpha:!1,disableBgImage:!1}},{plugin:n(9650),options:{plugins:[],offsetY:0,icon:"<span>#</span>",className:"heading-anchor"}},{plugin:n(9651),options:{plugins:[],siteAssets:"src/assets",postsPerPage:6,tableOfContentsLevels:3,mailChimpEndpoint:"https://pitayanblog.us14.list-manage.com/subscribe/post?u=234bf6777b76872feb7d92a68&id=27fad95f3b",mailChimpTimeout:3500}},{plugin:n(7420),options:{plugins:[]}},{plugin:n(4094),options:{plugins:[]}}]},3092:function(e,t,n){const o=n(4741),{getResourceURLsForPathname:r,loadPage:a,loadPageSync:i}=n(1975).jN;t.h=function(e,t,n,s){void 0===t&&(t={});let c=o.map((n=>{if(!n.plugin[e])return;t.getResourceURLsForPathname=r,t.loadPage=a,t.loadPageSync=i;const o=n.plugin[e](t,n.options);return o&&s&&(t=s({args:t,result:o,plugin:n})),o}));return c=c.filter((e=>void 0!==e)),c.length>0?c:n?[n]:[]},t.I=(e,t,n)=>o.reduce(((n,o)=>o.plugin[e]?n.then((()=>o.plugin[e](t,o.options))):n),Promise.resolve())},4004:function(e,t){},8299:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var o=function(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).slice().map((function(e){e(n)})),(e["*"]||[]).slice().map((function(e){e(t,n)}))}}}()},7802:function(e,t,n){"use strict";n.d(t,{UD:function(){return p},Cj:function(){return f},GA:function(){return h},DS:function(){return d}});var o=n(7896),r=n(1505),a=e=>{if(void 0===e)return e;let[t,n=""]=e.split("?");return n&&(n="?"+n),"/"===t?"/"+n:"/"===t.charAt(t.length-1)?t.slice(0,-1)+n:t+n},i=n(6073);const s=new Map;let c=[];const l=e=>{let t=e;if(-1!==e.indexOf("?")){const[n,o]=e.split("?");t=n+"?"+encodeURIComponent(o)}const n=decodeURIComponent(t);return(0,r.Z)(n,decodeURIComponent("/gatsby-theme-pitayan")).split("#")[0]};function u(e){return e.startsWith("/")||e.startsWith("https://")||e.startsWith("http://")?e:new URL(e,window.location.href+(window.location.href.endsWith("/")?"":"/")).pathname}const d=e=>{c=e},p=e=>{const t=m(e),n=c.map((e=>{let{path:t,matchPath:n}=e;return{path:n,originalPath:t}})),r=(0,o.pick)(n,t);return r?a(r.route.originalPath):null},h=e=>{const t=m(e),n=c.map((e=>{let{path:t,matchPath:n}=e;return{path:n,originalPath:t}})),r=(0,o.pick)(n,t);return r?r.params:{}},f=e=>{const t=l(u(e));if(s.has(t))return s.get(t);const n=(0,i.J)(e);if(n)return f(n.toPath);let o=p(t);return o||(o=m(e)),s.set(t,o),o},m=e=>{let t=l(u(e));return"/index.html"===t&&(t="/"),t=a(t),t}},4160:function(e,t,n){"use strict";n.d(t,{rU:function(){return r.rU},B9:function(){return a.B9},c4:function(){return r.c4},K2:function(){return a.K2},dq:function(){return r.dq}});var o=n(1975),r=(n(2743),n(9679),n(1562)),a=n(1757);n(7294),n(4004),n(8995);o.ZP.enqueue},1975:function(e,t,n){"use strict";n.d(t,{uQ:function(){return d},kL:function(){return E},ZP:function(){return P},Nt:function(){return S},hs:function(){return x},jN:function(){return _},N1:function(){return C}});var o=n(1721),r=n(5785),a=n(904);const i=function(e){if("undefined"==typeof document)return!1;const t=document.createElement("link");try{if(t.relList&&"function"==typeof t.relList.supports)return t.relList.supports(e)}catch(n){return!1}return!1}("prefetch")?function(e,t){return new Promise(((n,o)=>{if("undefined"==typeof document)return void o();const r=document.createElement("link");r.setAttribute("rel","prefetch"),r.setAttribute("href",e),Object.keys(t).forEach((e=>{r.setAttribute(e,t[e])})),r.onload=n,r.onerror=o;(document.getElementsByTagName("head")[0]||document.getElementsByName("script")[0].parentNode).appendChild(r)}))}:function(e){return new Promise(((t,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.onload=()=>{200===o.status?t():n()},o.send(null)}))},s={};var c=function(e,t){return new Promise((n=>{s[e]?n():i(e,t).then((()=>{n(),s[e]=!0})).catch((()=>{}))}))},l=n(8299),u=n(7802);const d={Error:"error",Success:"success"},p=e=>{const[t,n]=e.split("?");var o;return"/gatsby-theme-pitayan/page-data/"+("/"===t?"index":(o="/"===(o=t)[0]?o.slice(1):o).endsWith("/")?o.slice(0,-1):o)+"/page-data.json"+(n?"?"+n:"")},h=e=>e.startsWith("//");function f(e,t){return void 0===t&&(t="GET"),new Promise((n=>{const o=new XMLHttpRequest;o.open(t,e,!0),o.onreadystatechange=()=>{4==o.readyState&&n(o)},o.send(null)}))}const m=/bot|crawler|spider|crawling/i,g=function(e,t,n){var o;void 0===t&&(t=null);const r={componentChunkName:e.componentChunkName,path:e.path,webpackCompilationHash:e.webpackCompilationHash,matchPath:e.matchPath,staticQueryHashes:e.staticQueryHashes,getServerDataError:e.getServerDataError,slicesMap:null!==(o=e.slicesMap)&&void 0!==o?o:{}};return{component:t,head:n,json:e.result,page:r}};function y(e){return new Promise((t=>{try{const n=e.readRoot();t(n)}catch(n){if(!Object.hasOwnProperty.call(n,"_response")||!Object.hasOwnProperty.call(n,"_status"))throw n;setTimeout((()=>{y(e).then(t)}),200)}}))}let v=function(){function e(e,t){this.inFlightNetworkRequests=new Map,this.pageDb=new Map,this.inFlightDb=new Map,this.staticQueryDb={},this.pageDataDb=new Map,this.partialHydrationDb=new Map,this.slicesDataDb=new Map,this.sliceInflightDb=new Map,this.slicesDb=new Map,this.isPrefetchQueueRunning=!1,this.prefetchQueued=[],this.prefetchTriggered=new Set,this.prefetchCompleted=new Set,this.loadComponent=e,(0,u.DS)(t)}var t=e.prototype;return t.memoizedGet=function(e){let t=this.inFlightNetworkRequests.get(e);return t||(t=f(e,"GET"),this.inFlightNetworkRequests.set(e,t)),t.then((t=>(this.inFlightNetworkRequests.delete(e),t))).catch((t=>{throw this.inFlightNetworkRequests.delete(e),t}))},t.setApiRunner=function(e){this.apiRunner=e,this.prefetchDisabled=e("disableCorePrefetching").some((e=>e))},t.fetchPageDataJson=function(e){const{pagePath:t,retries:n=0}=e,o=p(t);return this.memoizedGet(o).then((o=>{const{status:r,responseText:a}=o;if(200===r)try{const n=JSON.parse(a);if(void 0===n.path)throw new Error("not a valid pageData response");const o=t.split("?")[1];return o&&!n.path.includes(o)&&(n.path+="?"+o),Object.assign(e,{status:d.Success,payload:n})}catch(i){}return 404===r||200===r?"/404.html"===t||"/500.html"===t?Object.assign(e,{status:d.Error}):this.fetchPageDataJson(Object.assign(e,{pagePath:"/404.html",notFound:!0})):500===r?this.fetchPageDataJson(Object.assign(e,{pagePath:"/500.html",internalServerError:!0})):n<3?this.fetchPageDataJson(Object.assign(e,{retries:n+1})):Object.assign(e,{status:d.Error})}))},t.fetchPartialHydrationJson=function(e){const{pagePath:t,retries:n=0}=e,o=p(t).replace(".json","-rsc.json");return this.memoizedGet(o).then((o=>{const{status:r,responseText:a}=o;if(200===r)try{return Object.assign(e,{status:d.Success,payload:a})}catch(i){}return 404===r||200===r?"/404.html"===t||"/500.html"===t?Object.assign(e,{status:d.Error}):this.fetchPartialHydrationJson(Object.assign(e,{pagePath:"/404.html",notFound:!0})):500===r?this.fetchPartialHydrationJson(Object.assign(e,{pagePath:"/500.html",internalServerError:!0})):n<3?this.fetchPartialHydrationJson(Object.assign(e,{retries:n+1})):Object.assign(e,{status:d.Error})}))},t.loadPageDataJson=function(e){const t=(0,u.Cj)(e);if(this.pageDataDb.has(t)){const e=this.pageDataDb.get(t);return Promise.resolve(e)}return this.fetchPageDataJson({pagePath:t}).then((e=>(this.pageDataDb.set(t,e),e)))},t.loadPartialHydrationJson=function(e){const t=(0,u.Cj)(e);if(this.partialHydrationDb.has(t)){const e=this.partialHydrationDb.get(t);return Promise.resolve(e)}return this.fetchPartialHydrationJson({pagePath:t}).then((e=>(this.partialHydrationDb.set(t,e),e)))},t.loadSliceDataJson=function(e){if(this.slicesDataDb.has(e)){const t=this.slicesDataDb.get(e);return Promise.resolve({sliceName:e,jsonPayload:t})}return f("/gatsby-theme-pitayan/slice-data/"+e+".json","GET").then((t=>{const n=JSON.parse(t.responseText);return this.slicesDataDb.set(e,n),{sliceName:e,jsonPayload:n}}))},t.findMatchPath=function(e){return(0,u.UD)(e)},t.loadPage=function(e){const t=(0,u.Cj)(e);if(this.pageDb.has(t)){const e=this.pageDb.get(t);return e.error?Promise.resolve({error:e.error,status:e.status}):Promise.resolve(e.payload)}if(this.inFlightDb.has(t))return this.inFlightDb.get(t);const n=[this.loadAppData(),this.loadPageDataJson(t)];const o=Promise.all(n).then((e=>{const[n,o,i]=e;if(o.status===d.Error||(null==i?void 0:i.status)===d.Error)return{status:d.Error};let s=o.payload;const{componentChunkName:c,staticQueryHashes:u=[],slicesMap:p={}}=s,h={},f=Array.from(new Set(Object.values(p))),m=e=>{if(this.slicesDb.has(e.name))return this.slicesDb.get(e.name);if(this.sliceInflightDb.has(e.name))return this.sliceInflightDb.get(e.name);const t=this.loadComponent(e.componentChunkName).then((t=>{return{component:(n=t,n&&n.default||n),sliceContext:e.result.sliceContext,data:e.result.data};var n}));return this.sliceInflightDb.set(e.name,t),t.then((t=>{this.slicesDb.set(e.name,t),this.sliceInflightDb.delete(e.name)})),t};return Promise.all(f.map((e=>this.loadSliceDataJson(e)))).then((e=>{const p=[],f=(0,r.Z)(u);for(const{jsonPayload:t,sliceName:n}of Object.values(e)){p.push({name:n,...t});for(const e of t.staticQueryHashes)f.includes(e)||f.push(e)}const v=[Promise.all(p.map(m)),this.loadComponent(c,"head")];v.push(this.loadComponent(c));const b=Promise.all(v).then((e=>{const[t,r,c]=e;h.createdAt=new Date;for(const n of t)(!n||n instanceof Error)&&(h.status=d.Error,h.error=n);let l;if((!c||c instanceof Error)&&(h.status=d.Error,h.error=c),h.status!==d.Error){if(h.status=d.Success,!0!==o.notFound&&!0!==(null==i?void 0:i.notFound)||(h.notFound=!0),s=Object.assign(s,{webpackCompilationHash:n?n.webpackCompilationHash:""}),"string"==typeof(null==i?void 0:i.payload)){l=g(s,null,r),l.partialHydration=i.payload;const e=new ReadableStream({start(e){const t=new TextEncoder;e.enqueue(t.encode(i.payload))},pull(e){e.close()},cancel(){}});return y((0,a.createFromReadableStream)(e)).then((e=>(l.partialHydration=e,l)))}l=g(s,c,r)}return l})),w=Promise.all(f.map((e=>{if(this.staticQueryDb[e]){const t=this.staticQueryDb[e];return{staticQueryHash:e,jsonPayload:t}}return this.memoizedGet("/gatsby-theme-pitayan/page-data/sq/d/"+e+".json").then((t=>{const n=JSON.parse(t.responseText);return{staticQueryHash:e,jsonPayload:n}})).catch((()=>{throw new Error("We couldn't load \"/gatsby-theme-pitayan/page-data/sq/d/"+e+'.json"')}))}))).then((e=>{const t={};return e.forEach((e=>{let{staticQueryHash:n,jsonPayload:o}=e;t[n]=o,this.staticQueryDb[n]=o})),t}));return Promise.all([b,w]).then((e=>{let n,[o,r]=e;return o&&(n={...o,staticQueryResults:r},h.payload=n,l.Z.emit("onPostLoadPageResources",{page:n,pageResources:n})),this.pageDb.set(t,h),h.error?{error:h.error,status:h.status}:n})).catch((e=>({error:e,status:d.Error})))}))}));return o.then((()=>{this.inFlightDb.delete(t)})).catch((e=>{throw this.inFlightDb.delete(t),e})),this.inFlightDb.set(t,o),o},t.loadPageSync=function(e,t){void 0===t&&(t={});const n=(0,u.Cj)(e);if(this.pageDb.has(n)){var o;const e=this.pageDb.get(n);if(e.payload)return e.payload;if(null!==(o=t)&&void 0!==o&&o.withErrorDetails)return{error:e.error,status:e.status}}},t.shouldPrefetch=function(e){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||!m.test(navigator.userAgent))&&!this.pageDb.has(e))},t.prefetch=function(e){if(!this.shouldPrefetch(e))return{then:e=>e(!1),abort:()=>{}};if(this.prefetchTriggered.has(e))return{then:e=>e(!0),abort:()=>{}};const t={resolve:null,reject:null,promise:null};t.promise=new Promise(((e,n)=>{t.resolve=e,t.reject=n})),this.prefetchQueued.push([e,t]);const n=new AbortController;return n.signal.addEventListener("abort",(()=>{const t=this.prefetchQueued.findIndex((t=>{let[n]=t;return n===e}));-1!==t&&this.prefetchQueued.splice(t,1)})),this.isPrefetchQueueRunning||(this.isPrefetchQueueRunning=!0,setTimeout((()=>{this._processNextPrefetchBatch()}),3e3)),{then:(e,n)=>t.promise.then(e,n),abort:n.abort.bind(n)}},t._processNextPrefetchBatch=function(){(window.requestIdleCallback||(e=>setTimeout(e,0)))((()=>{const e=this.prefetchQueued.splice(0,4),t=Promise.all(e.map((e=>{let[t,n]=e;return this.prefetchTriggered.has(t)||(this.apiRunner("onPrefetchPathname",{pathname:t}),this.prefetchTriggered.add(t)),this.prefetchDisabled?n.resolve(!1):this.doPrefetch((0,u.Cj)(t)).then((()=>{this.prefetchCompleted.has(t)||(this.apiRunner("onPostPrefetchPathname",{pathname:t}),this.prefetchCompleted.add(t)),n.resolve(!0)}))})));this.prefetchQueued.length?t.then((()=>{setTimeout((()=>{this._processNextPrefetchBatch()}),3e3)})):this.isPrefetchQueueRunning=!1}))},t.doPrefetch=function(e){const t=p(e);return c(t,{crossOrigin:"anonymous",as:"fetch"}).then((()=>this.loadPageDataJson(e)))},t.hovering=function(e){this.loadPage(e)},t.getResourceURLsForPathname=function(e){const t=(0,u.Cj)(e),n=this.pageDataDb.get(t);if(n){const e=g(n.payload);return[].concat((0,r.Z)(b(e.page.componentChunkName)),[p(t)])}return null},t.isPageNotFound=function(e){const t=(0,u.Cj)(e),n=this.pageDb.get(t);return!n||n.notFound},t.loadAppData=function(e){return void 0===e&&(e=0),this.memoizedGet("/gatsby-theme-pitayan/page-data/app-data.json").then((t=>{const{status:n,responseText:o}=t;let r;if(200!==n&&e<3)return this.loadAppData(e+1);if(200===n)try{const e=JSON.parse(o);if(void 0===e.webpackCompilationHash)throw new Error("not a valid app-data response");r=e}catch(a){}return r}))},e}();const b=e=>(window.___chunkMapping[e]||[]).map((e=>"/gatsby-theme-pitayan"+e));let w,E=function(e){function t(t,n,o){var r;return r=e.call(this,(function(e,n){if(void 0===n&&(n="components"),!t[n="components"][e])throw new Error("We couldn't find the correct component chunk with the name \""+e+'"');return t[n][e]().catch((e=>e))}),n)||this,o&&r.pageDataDb.set((0,u.Cj)(o.path),{pagePath:o.path,payload:o,status:"success"}),r}(0,o.Z)(t,e);var n=t.prototype;return n.doPrefetch=function(t){return e.prototype.doPrefetch.call(this,t).then((e=>{if(e.status!==d.Success)return Promise.resolve();const t=e.payload,n=t.componentChunkName,o=b(n);return Promise.all(o.map(c)).then((()=>t))}))},n.loadPageDataJson=function(t){return e.prototype.loadPageDataJson.call(this,t).then((e=>e.notFound?h(t)?e:f(t,"HEAD").then((t=>200===t.status?{status:d.Error}:e)):e))},n.loadPartialHydrationJson=function(t){return e.prototype.loadPartialHydrationJson.call(this,t).then((e=>e.notFound?h(t)?e:f(t,"HEAD").then((t=>200===t.status?{status:d.Error}:e)):e))},t}(v);const C=e=>{w=e},_={enqueue:e=>w.prefetch(e),getResourceURLsForPathname:e=>w.getResourceURLsForPathname(e),loadPage:e=>w.loadPage(e),loadPageSync:function(e,t){return void 0===t&&(t={}),w.loadPageSync(e,t)},prefetch:e=>w.prefetch(e),isPageNotFound:e=>w.isPageNotFound(e),hovering:e=>w.hovering(e),loadAppData:()=>w.loadAppData()};var P=_;function x(){return w?w.staticQueryDb:{}}function S(){return w?w.slicesDb:{}}},4779:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var o=n(7294),r=n(5697),a=n.n(r),i=n(3092),s=n(7802),c=n(5785),l=n(4160),u=n(7896),d=n(4941);function p(e){let{children:t,callback:n}=e;return(0,o.useEffect)((()=>{n()})),t}const h=["link","meta","style","title","base","noscript","script","html","body"];function f(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){const n=t.getAttribute("nonce");if(n&&!e.getAttribute("nonce")){const o=t.cloneNode(!0);return o.setAttribute("nonce",""),o.nonce=n,n===e.nonce&&e.isEqualNode(o)}}return e.isEqualNode(t)}function m(e,t){void 0===t&&(t={html:{},body:{}});const n=new Map,o=[];for(const s of e.childNodes){var r,a;const e=s.nodeName.toLowerCase(),l=null===(r=s.attributes)||void 0===r||null===(a=r.id)||void 0===a?void 0:a.value;if(v(s)){if(y(e))if("html"===e||"body"===e)for(const n of s.attributes)t[e]={...t[e],[n.name]:n.value};else{let e=s.cloneNode(!0);if(e.setAttribute("data-gatsby-head",!0),"script"===e.nodeName.toLowerCase()&&(e=g(e)),l)if(n.has(l)){var i;const t=n.get(l);null===(i=o[t].parentNode)||void 0===i||i.removeChild(o[t]),o[t]=e}else o.push(e),n.set(l,o.length-1);else o.push(e)}s.childNodes.length&&o.push.apply(o,(0,c.Z)(m(s,t).validHeadNodes))}}return{validHeadNodes:o,htmlAndBodyAttributes:t}}function g(e){const t=document.createElement("script");for(const n of e.attributes)t.setAttribute(n.name,n.value);return t.innerHTML=e.innerHTML,t}function y(e){return h.includes(e)}function v(e){return 1===e.nodeType}const b=document.createElement("div"),w={html:[],body:[]},E=()=>{var e;const{validHeadNodes:t,htmlAndBodyAttributes:n}=m(b);w.html=Object.keys(n.html),w.body=Object.keys(n.body),function(e){if(!e)return;const{html:t,body:n}=e,o=document.querySelector("html");o&&Object.entries(t).forEach((e=>{let[t,n]=e;o.setAttribute(t,n)}));const r=document.querySelector("body");r&&Object.entries(n).forEach((e=>{let[t,n]=e;r.setAttribute(t,n)}))}(n);const o=document.querySelectorAll("[data-gatsby-head]");var r;if(0===o.length)return void(r=document.head).append.apply(r,(0,c.Z)(t));const a=[];!function(e){let{oldNodes:t,newNodes:n,onStale:o,onNew:r}=e;for(const a of t){const e=n.findIndex((e=>f(e,a)));-1===e?o(a):n.splice(e,1)}for(const a of n)r(a)}({oldNodes:o,newNodes:t,onStale:e=>e.parentNode.removeChild(e),onNew:e=>a.push(e)}),(e=document.head).append.apply(e,a)};function C(e){let{pageComponent:t,staticQueryResults:n,pageComponentProps:r}=e;(0,o.useEffect)((()=>{if(null!=t&&t.Head){!function(e){if("function"!=typeof e)throw new Error('Expected "Head" export to be a function got "'+typeof e+'".')}(t.Head);const{render:a}=(0,d.U)(),s=o.createElement(t.Head,{location:{pathname:(e=r).location.pathname},params:e.params,data:e.data||{},serverData:e.serverData,pageContext:e.pageContext}),c=(0,i.h)("wrapRootElement",{element:s},s,(e=>{let{result:t}=e;return{element:t}})).pop();a(o.createElement(p,{callback:E},o.createElement(l.B9.Provider,{value:n},o.createElement(u.LocationProvider,null,c))),b)}var e;return()=>{!function(){const e=document.querySelectorAll("[data-gatsby-head]");for(const t of e)t.parentNode.removeChild(t)}(),function(e){if(!e)return;const{html:t,body:n}=e;if(t){const e=document.querySelector("html");t.forEach((t=>{e&&e.removeAttribute(t)}))}if(n){const e=document.querySelector("body");n.forEach((t=>{e&&e.removeAttribute(t)}))}}(w)}}))}function _(e){const t={...e,params:{...(0,s.GA)(e.location.pathname),...e.pageResources.json.pageContext.__params}};let n;var r;n=e.pageResources.partialHydration?e.pageResources.partialHydration:(0,o.createElement)((r=e.pageResources.component)&&r.default||r,{...t,key:e.path||e.pageResources.page.path});C({pageComponent:e.pageResources.head,staticQueryResults:e.pageResources.staticQueryResults,pageComponentProps:t});return(0,i.h)("wrapPageElement",{element:n,props:t},n,(e=>{let{result:n}=e;return{element:n,props:t}})).pop()}_.propTypes={location:a().object.isRequired,pageResources:a().object.isRequired,data:a().object,pageContext:a().object.isRequired};var P=_},5824:function(e,t,n){"use strict";var o=n(1721),r=n(3092),a=n(7294),i=n(7896),s=n(9679),c=n(1757),l=n(8995),u=n(1975),d=n(6073),p=n(8299);const h={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 f=n(1562);function m(e){const t=(0,d.J)(e),{hash:n,search:o}=window.location;return null!=t&&(window.___replace(t.toPath+o+n),!0)}let g="";window.addEventListener("unhandledrejection",(e=>{/loading chunk \d* failed./i.test(e.reason)&&g&&(window.location.pathname=g)}));const y=(e,t)=>{m(e.pathname)||(g=e.pathname,(0,r.h)("onPreRouteUpdate",{location:e,prevLocation:t}))},v=(e,t)=>{m(e.pathname)||(0,r.h)("onRouteUpdate",{location:e,prevLocation:t})},b=function(e,t){if(void 0===t&&(t={}),"number"==typeof e)return void i.globalHistory.navigate(e);const{pathname:n,search:o,hash:a}=(0,f.cP)(e),s=(0,d.J)(n);if(s&&(e=s.toPath+o+a),window.___swUpdated)return void(window.location=n+o+a);const c=setTimeout((()=>{p.Z.emit("onDelayedLoadPageResources",{pathname:n}),(0,r.h)("onRouteUpdateDelayed",{location:window.location})}),1e3);u.ZP.loadPage(n+o).then((r=>{if(!r||r.status===u.uQ.Error)return window.history.replaceState({},"",location.href),window.location=n,void clearTimeout(c);r&&r.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+o+a),(0,i.navigate)(e,t),clearTimeout(c)}))};function w(e,t){let{location:n}=t;const{pathname:o,hash:a}=n,i=(0,r.h)("shouldUpdateScroll",{prevRouterProps:e,pathname:o,routerProps:{location:n},getSavedScrollPosition:e=>[0,this._stateStorage.read(e,e.key)]});if(i.length>0)return i[i.length-1];if(e){const{location:{pathname:t}}=e;if(t===o)return a?decodeURI(a.slice(1)):[0,0]}return!0}let E=function(e){function t(t){var n;return(n=e.call(this,t)||this).announcementRef=a.createRef(),n}(0,o.Z)(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){requestAnimationFrame((()=>{let e="new page at "+this.props.location.pathname;document.title&&(e=document.title);const t=document.querySelectorAll("#gatsby-focus-wrapper h1");t&&t.length&&(e=t[0].textContent);const n="Navigated to "+e;if(this.announcementRef.current){this.announcementRef.current.innerText!==n&&(this.announcementRef.current.innerText=n)}}))},n.render=function(){return a.createElement("div",Object.assign({},h,{ref:this.announcementRef}))},t}(a.Component);const C=(e,t)=>{var n,o;return e.href!==t.href||(null==e||null===(n=e.state)||void 0===n?void 0:n.key)!==(null==t||null===(o=t.state)||void 0===o?void 0:o.key)};let _=function(e){function t(t){var n;return n=e.call(this,t)||this,y(t.location,null),n}(0,o.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){v(this.props.location,null)},n.shouldComponentUpdate=function(e){return!!C(this.props.location,e.location)&&(y(e.location,this.props.location),!0)},n.componentDidUpdate=function(e){C(e.location,this.props.location)&&v(this.props.location,e.location)},n.render=function(){return a.createElement(a.Fragment,null,this.props.children,a.createElement(E,{location:location}))},t}(a.Component);var P=n(4779),x=n(5418);function S(e,t){for(var n in e)if(!(n in t))return!0;for(var o in t)if(e[o]!==t[o])return!0;return!1}var R=function(e){function t(t){var n;n=e.call(this)||this;const{location:o,pageResources:r}=t;return n.state={location:{...o},pageResources:r||u.ZP.loadPageSync(o.pathname+o.search,{withErrorDetails:!0})},n}(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){let{location:n}=e;if(t.location.href!==n.href){return{pageResources:u.ZP.loadPageSync(n.pathname+n.search,{withErrorDetails:!0}),location:{...n}}}return{location:{...n}}};var n=t.prototype;return n.loadResources=function(e){u.ZP.loadPage(e).then((t=>{t&&t.status!==u.uQ.Error?this.setState({location:{...window.location},pageResources:t}):(window.history.replaceState({},"",location.href),window.location=e)}))},n.shouldComponentUpdate=function(e,t){return t.pageResources?this.state.pageResources!==t.pageResources||(this.state.pageResources.component!==t.pageResources.component||(this.state.pageResources.json!==t.pageResources.json||(!(this.state.location.key===t.location.key||!t.pageResources.page||!t.pageResources.page.matchPath&&!t.pageResources.page.path)||function(e,t,n){return S(e.props,t)||S(e.state,n)}(this,e,t)))):(this.loadResources(e.location.pathname+e.location.search),!1)},n.render=function(){return this.props.children(this.state)},t}(a.Component),k=n(1505),O=n(4941);const T=new u.kL(x,[],window.pageData);(0,u.N1)(T),T.setApiRunner(r.h);const{render:L,hydrate:j}=(0,O.U)();window.asyncRequires=x,window.___emitter=p.Z,window.___loader=u.jN,i.globalHistory.listen((e=>{e.location.action=e.action})),window.___push=e=>b(e,{replace:!1}),window.___replace=e=>b(e,{replace:!0}),window.___navigate=(e,t)=>b(e,t);const N="gatsby-reload-compilation-hash-match";(0,r.I)("onClientEntry").then((()=>{(0,r.h)("registerServiceWorker").filter(Boolean).length>0&&n(9939);const e=e=>a.createElement(i.BaseContext.Provider,{value:{baseuri:"/",basepath:"/"}},a.createElement(P.Z,e)),t=a.createContext({}),d={renderEnvironment:"browser"};let p=function(e){function n(){return e.apply(this,arguments)||this}return(0,o.Z)(n,e),n.prototype.render=function(){const{children:e}=this.props;return a.createElement(i.Location,null,(n=>{let{location:o}=n;return a.createElement(R,{location:o},(n=>{let{pageResources:o,location:r}=n;const i=(0,u.hs)(),s=(0,u.Nt)();return a.createElement(c.B9.Provider,{value:i},a.createElement(l.Bs.Provider,{value:d},a.createElement(l.m3.Provider,{value:s},a.createElement(l.u0.Provider,{value:o.page.slicesMap},a.createElement(t.Provider,{value:{pageResources:o,location:r}},e)))))}))}))},n}(a.Component),h=function(n){function r(){return n.apply(this,arguments)||this}return(0,o.Z)(r,n),r.prototype.render=function(){return a.createElement(t.Consumer,null,(t=>{let{pageResources:n,location:o}=t;return a.createElement(_,{location:o},a.createElement(s.$C,{location:o,shouldUpdateScroll:w},a.createElement(i.Router,{basepath:"/gatsby-theme-pitayan",location:o,id:"gatsby-focus-wrapper"},a.createElement(e,Object.assign({path:"/404.html"===n.page.path||"/500.html"===n.page.path?(0,k.Z)(o.pathname,"/gatsby-theme-pitayan"):encodeURI((n.page.matchPath||n.page.path).split("?")[0])},this.props,{location:o,pageResources:n},n.json)))))}))},r}(a.Component);const{pagePath:f,location:m}=window;f&&"/gatsby-theme-pitayan"+f!==m.pathname+(f.includes("?")?m.search:"")&&!(T.findMatchPath((0,k.Z)(m.pathname,"/gatsby-theme-pitayan"))||f.match(/^\/(404|500)(\/?|.html)$/)||f.match(/^\/offline-plugin-app-shell-fallback\/?$/))&&(0,i.navigate)("/gatsby-theme-pitayan"+f+(f.includes("?")?"":m.search)+m.hash,{replace:!0});const g=()=>{try{return sessionStorage}catch{return null}};u.jN.loadPage(m.pathname+m.search).then((e=>{var t;const n=g();if(null!=e&&null!==(t=e.page)&&void 0!==t&&t.webpackCompilationHash&&e.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(N)))return n.setItem(N,"1"),void window.location.reload(!0)}if(n&&n.removeItem(N),!e||e.status===u.uQ.Error){const t="page resources for "+m.pathname+" not found. Not rendering React";if(e&&e.error)throw console.error(t),e.error;throw new Error(t)}const o=(0,r.h)("wrapRootElement",{element:a.createElement(h,null)},a.createElement(h,null),(e=>{let{result:t}=e;return{element:t}})).pop(),i=function(){const e=a.useRef(!1);return a.useEffect((()=>{e.current||(e.current=!0,performance.mark&&performance.mark("onInitialClientRender"),(0,r.h)("onInitialClientRender"))}),[]),a.createElement(p,null,o)},s=document.getElementById("gatsby-focus-wrapper");let c=L;s&&s.children.length&&(c=j);const l=(0,r.h)("replaceHydrateFunction",void 0,c)[0];function d(){const e="undefined"!=typeof window?document.getElementById("___gatsby"):null;l(a.createElement(i,null),e)}const f=document;if("complete"===f.readyState||"loading"!==f.readyState&&!f.documentElement.doScroll)setTimeout((function(){d()}),0);else{const e=function(){f.removeEventListener("DOMContentLoaded",e,!1),window.removeEventListener("load",e,!1),d()};f.addEventListener("DOMContentLoaded",e,!1),window.addEventListener("load",e,!1)}}))}))},224:function(e,t,n){"use strict";n.r(t);var o=n(7294),r=n(1975),a=n(4779);t.default=e=>{let{location:t}=e;const n=r.ZP.loadPageSync(t.pathname);return n?o.createElement(a.Z,{location:t,pageResources:n,...n.json}):null}},2743:function(e,t,n){var o;e.exports=(o=n(224))&&o.default||o},4941:function(e,t,n){"use strict";n.d(t,{U:function(){return r}});const o=new WeakMap;function r(){const e=n(745);return{render:(t,n)=>{let r=o.get(n);r||o.set(n,r=e.createRoot(n)),r.render(t)},hydrate:(t,n)=>e.hydrateRoot(n,t)}}},6073:function(e,t,n){"use strict";n.d(t,{J:function(){return a}});const o=new Map,r=new Map;function a(e){let t=o.get(e);return t||(t=r.get(e.toLowerCase())),t}[].forEach((e=>{e.ignoreCase?r.set(e.fromPath,e):o.set(e.fromPath,e)}))},9939:function(e,t,n){"use strict";n.r(t);var o=n(3092);"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("/gatsby-theme-pitayan/sw.js").then((function(e){e.addEventListener("updatefound",(()=>{(0,o.h)("onServiceWorkerUpdateFound",{serviceWorker:e});const t=e.installing;console.log("installingWorker",t),t.addEventListener("statechange",(()=>{switch(t.state){case"installed":navigator.serviceWorker.controller?(window.___swUpdated=!0,(0,o.h)("onServiceWorkerUpdateReady",{serviceWorker:e}),window.___failedResources&&(console.log("resources failed, SW updated - reloading"),window.location.reload())):(console.log("Content is now available offline!"),(0,o.h)("onServiceWorkerInstalled",{serviceWorker:e}));break;case"redundant":console.error("The installing service worker became redundant."),(0,o.h)("onServiceWorkerRedundant",{serviceWorker:e});break;case"activated":(0,o.h)("onServiceWorkerActive",{serviceWorker:e})}}))}))})).catch((function(e){console.error("Error during service worker registration:",e)}))},8995:function(e,t,n){"use strict";n.d(t,{Bs:function(){return a},m3:function(){return r},u0:function(){return i}});var o=n(7294);const r=o.createContext({}),a=o.createContext({}),i=o.createContext({})},1757:function(e,t,n){"use strict";n.d(t,{B9:function(){return r},K2:function(){return s}});var o=n(7294);const r=(a="StaticQuery",i={},o.createServerContext?function(e,t){return void 0===t&&(t=null),globalThis.__SERVER_CONTEXT||(globalThis.__SERVER_CONTEXT={}),globalThis.__SERVER_CONTEXT[e]||(globalThis.__SERVER_CONTEXT[e]=o.createServerContext(e,t)),globalThis.__SERVER_CONTEXT[e]}(a,i):o.createContext(i));var a,i;const s=e=>{var t;o.useContext;const n=o.useContext(r);if(isNaN(Number(e)))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`"+e+"`);\n");if(null!==(t=n[e])&&void 0!==t&&t.data)return n[e].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")}},1505:function(e,t,n){"use strict";function o(e,t){return void 0===t&&(t=""),t?e===t?"/":e.startsWith(t+"/")?e.slice(t.length):e:e}n.d(t,{Z:function(){return o}})},7420:function(e,t,n){"use strict";n.r(t)},9651:function(e,t,n){"use strict";n.r(t),n.d(t,{onInitialClientRender:function(){return s},onRouteUpdate:function(){return c}});var o=n(523),r=n.n(o),a=n(3035),i=n(7660);function s(){r().polyfill(),(0,a.kV)(),document.addEventListener(i.Wp,(()=>{(0,a.fG)()}))}function c(){(0,a.fG)(),(0,a.kV)()}},6442:function(e,t){const n=()=>{"undefined"!=typeof twttr&&twttr.widgets&&"function"==typeof twttr.widgets.load&&twttr.widgets.load(document.getElementById("___gatsby")),"undefined"!=typeof instgrm&&instgrm.Embeds&&"function"==typeof instgrm.Embeds.process&&instgrm.Embeds.process()};t.onInitialClientRender=n,t.onRouteUpdate=n},436:function(e,t,n){"use strict";n.r(t),n.d(t,{onClientEntry:function(){return c}});var o=n(4160),r=n(3150),a=n.n(r);const i=e=>"/"===e[0]?e:"/"+e,s=(e,t)=>n=>{if(window.___failedResources)return!0;if((e=>0!==e.button||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)(n))return!0;if((e=>e.defaultPrevented)(n))return!0;const r=(e=>{for(;e.parentNode;e=e.parentNode)if("a"===e.nodeName.toLowerCase())return e;return null})(n.target);if(null==r)return!0;if(!0===(s=r).hasAttribute("download")||!1===(e=>!1===e.hasAttribute("target")||null==e.target||["_self",""].includes(e.target)||"_parent"===e.target&&(!e.ownerDocument.defaultView.parent||e.ownerDocument.defaultView.parent===e.ownerDocument.defaultView)||"_top"===e.target&&(!e.ownerDocument.defaultView.top||e.ownerDocument.defaultView.top===e.ownerDocument.defaultView))(s))return!0;var s;const c=document.createElement("a");""!==r.href&&(c.href=r.href),"SVGAnimatedString"in window&&r.href instanceof SVGAnimatedString&&(c.href=r.href.animVal);const l=document.createElement("a");if(l.href=window.location.href,!1===((e,t)=>e.protocol===t.protocol&&e.host===t.host)(l,c))return!0;const u=new RegExp("^"+a()((0,o.dq)("/")));if(((e,t)=>!1===t.test(i(e.pathname))||-1!==e.pathname.search(/^.*\.((?!htm)[a-z0-9]{1,5})$/i))(c,u))return!0;if(((e,t)=>""!==t.hash&&(""===t.pathname||t.pathname===e.pathname))(l,c))return!0;if(t.excludePattern){if(new RegExp(t.excludePattern).test(c.pathname))return!0}n.preventDefault();const d=i(c.pathname).replace(u,"/");return e(""+d+c.search+c.hash),!1};const c=function(e,t){void 0===t&&(t={}),function(e,t,n){const o=s(n,t);e.addEventListener("click",o)}(window,t,(e=>{(0,o.c4)(e)}))}},9650:function(e,t){"use strict";var n=0,o=function(e){var t=window.decodeURI(e.replace("#",""));if(""!==t){var o=document.getElementById(t);if(o){var r=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,a=document.documentElement.clientTop||document.body.clientTop||0,i=window.getComputedStyle(o),s=i.getPropertyValue("scroll-margin-top")||i.getPropertyValue("scroll-snap-margin-top")||"0px";return o.getBoundingClientRect().top+r-parseInt(s,10)-a-n}}return null};t.onInitialClientRender=function(e,t){t.offsetY&&(n=t.offsetY),requestAnimationFrame((function(){var e=o(window.location.hash);null!==e&&window.scrollTo(0,e)}))},t.shouldUpdateScroll=function(e){var t=e.routerProps.location,n=o(t.hash);return null===n||[0,n]}},855:function(e,t){"use strict";t.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},t.EMPTY_ALT="GATSBY_EMPTY_ALT",t.imageClass="gatsby-resp-image-image",t.imageWrapperClass="gatsby-resp-image-wrapper",t.imageBackgroundClass="gatsby-resp-image-background-image"},2154:function(e,t,n){"use strict";var o=n(855),r=o.DEFAULT_OPTIONS,a=o.imageClass,i=o.imageBackgroundClass,s=o.imageWrapperClass;t.onRouteUpdate=function(e,t){for(var n=Object.assign({},r,t),o=document.querySelectorAll("."+s),c=function(){var e=o[l],t=e.querySelector("."+i),r=e.querySelector("."+a),s=function(){t.style.transition="opacity 0.5s 0.5s",r.style.transition="opacity 0.5s",c()},c=function e(){t.style.opacity=0,r.style.opacity=1,r.style.color="inherit",r.style.boxShadow="inset 0px 0px 0px 400px "+n.backgroundColor,r.removeEventListener("load",s),r.removeEventListener("error",e)};r.style.opacity=0,r.addEventListener("load",s),r.addEventListener("error",c),r.complete&&c()},l=0;l<o.length;l++)c()}},7660:function(e,t,n){"use strict";n.d(t,{$s:function(){return i},BM:function(){return p},HA:function(){return c},Hn:function(){return d},Ot:function(){return s},Qq:function(){return f},Wp:function(){return g},bW:function(){return h},iP:function(){return l},xh:function(){return m},xl:function(){return u}});var o=n(7735),r=n(9352),a=n(9583);const i={behance:{icon:r.fRc,url:"https://www.behance.net"},dribbble:{icon:r.w6U,url:"https://dribbble.com"},linkedin:{icon:r.ExP,url:"https://www.linkedin.com/in"},twitter:{icon:r.x2F,url:"https://twitter.com"},facebook:{icon:r.NqZ,url:"https://www.facebook.com"},instagram:{icon:r.Nrw,url:"https://www.instagram.com"},devto:{icon:o.kR7,url:"https://dev.to"},github:{icon:r.q7V,url:"https://github.com"},stackoverflow:{icon:r.L_n,url:"https://stackoverflow.com/users"},youtube:{icon:r.oK$,url:"https://www.youtube.com/channel"},medium:{icon:r.sG0,url:"https://medium.com"},notion:{icon:o.WTS,url:""},unsplash:{icon:r.AQH,url:"https://unsplash.com"},patreon:{icon:r.cu7,url:"https://www.patreon.com"},paypal:{icon:r.TsC,url:""},pocket:{icon:a.I6D,url:""},digitalocean:{icon:a.g9Y,url:"https://www.digitalocean.com/blog/author"},tripadvisor:{icon:a.LmS,url:"https://www.tripadvisor.com"},buymeacoffee:{icon:o.qHW,url:"https://www.buymeacoffee.com"},mailto:{icon:r.YTS,url:""},url:{icon:r.zRJ,url:""}},s="cookie-prompt-container",c="site-cookie-consent-agreement",l="This site uses cookies",u='\nWe use 3rd party tools to understand visitors and create a\npersonalized experience. By clicking "Agree" button below,\nyou agree to allowing us to storage cookies on your browser.\n',d="Read more on",p="Subscribe to our email newsletters",h="\nStay tuned to our latest content with the ability to opt-out at\nanytime. We will not spam your inbox or share your email with any\nthird parties.\n",f="CUSTOM_EVENT_SUBSCRIPTION",m="CUSTOM_EVENT_SOCIAL_SHARING",g="CUSTOM_EVENT_TOGGLE_THEME"},3035:function(e,t,n){"use strict";n.d(t,{h_:function(){return S},U4:function(){return c},vQ:function(){return x},hb:function(){return i},ZT:function(){return a},jv:function(){return R},fG:function(){return v},kV:function(){return P},Vh:function(){return C},VF:function(){return l}});var o=n(7294),r=n(3935);const a=()=>{const e=window.getSelection();if(!e||e.rangeCount<1)return{x:0,y:0,width:0,height:0,textContent:""};const t=e.toString().trim(),{x:n,y:o}=(e=>{const t=e.getRangeAt(0).cloneRange();let n=0,o=0;if(t.getClientRects){t.collapse(!0);const e=t.getClientRects();e.length>0&&(n=e[0].left,o=e[0].top)}return{x:n,y:o}})(e),{width:r,height:a}=(e=>{const t=e.getRangeAt(0).cloneRange();let n=0,o=0;if(t.getBoundingClientRect){const e=t.getBoundingClientRect();n=e.right-e.left,o=e.bottom-e.top}return{width:n,height:o}})(e);return{x:n,y:o,width:r,height:a,textContent:t}},i=(e,t)=>{const n=new CustomEvent(e,{detail:t});document.dispatchEvent(n)};var s=n(7660);const c=()=>"undefined"!=typeof window&&("dark"===localStorage.theme||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches),l=e=>{e?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.theme=e?"dark":"light",i(s.Wp,{theme:localStorage.theme})};var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},d=function(e){return"IMG"===e.tagName},p=function(e){return e&&1===e.nodeType},h=function(e){return".svg"===(e.currentSrc||e.src).substr(-4).toLowerCase()},f=function(e){try{return Array.isArray(e)?e.filter(d):function(e){return NodeList.prototype.isPrototypeOf(e)}(e)?[].slice.call(e).filter(d):p(e)?[e].filter(d):"string"==typeof e?[].slice.call(document.querySelectorAll(e)).filter(d):[]}catch(t){throw new TypeError("The provided selector is invalid.\nExpects a CSS selector, a Node element, a NodeList or an array.\nSee: https://github.com/francoischalifour/medium-zoom")}},m=function(e,t){var n=u({bubbles:!1,cancelable:!1,detail:void 0},t);if("function"==typeof window.CustomEvent)return new CustomEvent(e,n);var o=document.createEvent("CustomEvent");return o.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),o};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}");var g=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=window.Promise||function(e){function t(){}e(t,t)},r=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.reduce((function(e,t){return[].concat(e,f(t))}),[]);return o.filter((function(e){return-1===c.indexOf(e)})).forEach((function(e){c.push(e),e.classList.add("medium-zoom-image")})),l.forEach((function(e){var t=e.type,n=e.listener,r=e.options;o.forEach((function(e){e.addEventListener(t,n,r)}))})),w},a=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).target,t=function(){var e={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},t=void 0,n=void 0;if(y.container)if(y.container instanceof Object)t=(e=u({},e,y.container)).width-e.left-e.right-2*y.margin,n=e.height-e.top-e.bottom-2*y.margin;else{var o=(p(y.container)?y.container:document.querySelector(y.container)).getBoundingClientRect(),r=o.width,a=o.height,i=o.left,s=o.top;e=u({},e,{width:r,height:a,left:i,top:s})}t=t||e.width-2*y.margin,n=n||e.height-2*y.margin;var c=v.zoomedHd||v.original,l=h(c)?t:c.naturalWidth||t,d=h(c)?n:c.naturalHeight||n,f=c.getBoundingClientRect(),m=f.top,g=f.left,b=f.width,w=f.height,E=Math.min(Math.max(b,l),t)/b,C=Math.min(Math.max(w,d),n)/w,_=Math.min(E,C),P="scale("+_+") translate3d("+((t-b)/2-g+y.margin+e.left)/_+"px, "+((n-w)/2-m+y.margin+e.top)/_+"px, 0)";v.zoomed.style.transform=P,v.zoomedHd&&(v.zoomedHd.style.transform=P)};return new o((function(n){if(e&&-1===c.indexOf(e))n(w);else{if(v.zoomed)n(w);else{if(e)v.original=e;else{if(!(c.length>0))return void n(w);var o=c;v.original=o[0]}if(v.original.dispatchEvent(m("medium-zoom:open",{detail:{zoom:w}})),g=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,d=!0,v.zoomed=function(e){var t=e.getBoundingClientRect(),n=t.top,o=t.left,r=t.width,a=t.height,i=e.cloneNode(),s=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,c=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return i.removeAttribute("id"),i.style.position="absolute",i.style.top=n+s+"px",i.style.left=o+c+"px",i.style.width=r+"px",i.style.height=a+"px",i.style.transform="",i}(v.original),document.body.appendChild(b),y.template){var r=p(y.template)?y.template:document.querySelector(y.template);v.template=document.createElement("div"),v.template.appendChild(r.content.cloneNode(!0)),document.body.appendChild(v.template)}if(v.original.parentElement&&"PICTURE"===v.original.parentElement.tagName&&v.original.currentSrc&&(v.zoomed.src=v.original.currentSrc),document.body.appendChild(v.zoomed),window.requestAnimationFrame((function(){document.body.classList.add("medium-zoom--opened")})),v.original.classList.add("medium-zoom-image--hidden"),v.zoomed.classList.add("medium-zoom-image--opened"),v.zoomed.addEventListener("click",i),v.zoomed.addEventListener("transitionend",(function e(){d=!1,v.zoomed.removeEventListener("transitionend",e),v.original.dispatchEvent(m("medium-zoom:opened",{detail:{zoom:w}})),n(w)})),v.original.getAttribute("data-zoom-src")){v.zoomedHd=v.zoomed.cloneNode(),v.zoomedHd.removeAttribute("srcset"),v.zoomedHd.removeAttribute("sizes"),v.zoomedHd.removeAttribute("loading"),v.zoomedHd.src=v.zoomed.getAttribute("data-zoom-src"),v.zoomedHd.onerror=function(){clearInterval(a),console.warn("Unable to reach the zoom image target "+v.zoomedHd.src),v.zoomedHd=null,t()};var a=setInterval((function(){v.zoomedHd.complete&&(clearInterval(a),v.zoomedHd.classList.add("medium-zoom-image--opened"),v.zoomedHd.addEventListener("click",i),document.body.appendChild(v.zoomedHd),t())}),10)}else if(v.original.hasAttribute("srcset")){v.zoomedHd=v.zoomed.cloneNode(),v.zoomedHd.removeAttribute("sizes"),v.zoomedHd.removeAttribute("loading");var s=v.zoomedHd.addEventListener("load",(function(){v.zoomedHd.removeEventListener("load",s),v.zoomedHd.classList.add("medium-zoom-image--opened"),v.zoomedHd.addEventListener("click",i),document.body.appendChild(v.zoomedHd),t()}))}else t()}}}))},i=function(){return new o((function(e){if(!d&&v.original){d=!0,document.body.classList.remove("medium-zoom--opened"),v.zoomed.style.transform="",v.zoomedHd&&(v.zoomedHd.style.transform=""),v.template&&(v.template.style.transition="opacity 150ms",v.template.style.opacity=0),v.original.dispatchEvent(m("medium-zoom:close",{detail:{zoom:w}})),v.zoomed.addEventListener("transitionend",(function t(){v.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(v.zoomed),v.zoomedHd&&document.body.removeChild(v.zoomedHd),document.body.removeChild(b),v.zoomed.classList.remove("medium-zoom-image--opened"),v.template&&document.body.removeChild(v.template),d=!1,v.zoomed.removeEventListener("transitionend",t),v.original.dispatchEvent(m("medium-zoom:closed",{detail:{zoom:w}})),v.original=null,v.zoomed=null,v.zoomedHd=null,v.template=null,e(w)}))}else e(w)}))},s=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).target;return v.original?i():a({target:e})},c=[],l=[],d=!1,g=0,y=n,v={original:null,zoomed:null,zoomedHd:null,template:null};"[object Object]"===Object.prototype.toString.call(t)?y=t:(t||"string"==typeof t)&&r(t);var b=function(e){var t=document.createElement("div");return t.classList.add("medium-zoom-overlay"),t.style.background=e,t}((y=u({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},y)).background);document.addEventListener("click",(function(e){var t=e.target;t!==b?-1!==c.indexOf(t)&&s({target:t}):i()})),document.addEventListener("keyup",(function(e){var t=e.key||e.keyCode;"Escape"!==t&&"Esc"!==t&&27!==t||i()})),document.addEventListener("scroll",(function(){if(!d&&v.original){var e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(g-e)>y.scrollOffset&&setTimeout(i,150)}})),window.addEventListener("resize",i);var w={open:a,close:i,toggle:s,update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e;if(e.background&&(b.style.background=e.background),e.container&&e.container instanceof Object&&(t.container=u({},y.container,e.container)),e.template){var n=p(e.template)?e.template:document.querySelector(e.template);t.template=n}return y=u({},y,t),c.forEach((function(e){e.dispatchEvent(m("medium-zoom:update",{detail:{zoom:w}}))})),w},clone:function(){return e(u({},y,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}))},attach:r,detach:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];v.zoomed&&i();var o=t.length>0?t.reduce((function(e,t){return[].concat(e,f(t))}),[]):c;return o.forEach((function(e){e.classList.remove("medium-zoom-image"),e.dispatchEvent(m("medium-zoom:detach",{detail:{zoom:w}}))})),c=c.filter((function(e){return-1===o.indexOf(e)})),w},on:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c.forEach((function(o){o.addEventListener("medium-zoom:"+e,t,n)})),l.push({type:"medium-zoom:"+e,listener:t,options:n}),w},off:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c.forEach((function(o){o.removeEventListener("medium-zoom:"+e,t,n)})),l=l.filter((function(n){return!(n.type==="medium-zoom:"+e&&n.listener.toString()===t.toString())})),w},getOptions:function(){return y},getImages:function(){return c},getZoomedImage:function(){return v.original}};return w};let y;const v=()=>{const e=setTimeout((()=>{y&&y.detach(),y=g("img.gatsby-resp-image-image, .gatsby-resp-image-image img",{margin:20,get background(){return c()?"#0f172a":"#fff"}}),clearTimeout(e)}),500)};var b=n(365),w=n.n(b);const E=/^[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/,C=e=>{const t=(e=>{if(!e)return!1;const t=e.split("@");if(2!==t.length)return!1;const n=t[0],o=t[1];return!(n.length>64)&&(!(o.length>255)&&(!o.split(".").some((function(e){return e.length>63}))&&!!E.test(e)))})(e),n=encodeURIComponent(e);if(!t)return Promise.resolve({result:"error",msg:"The email you entered is not valid."});let o="https://pitayanblog.us14.list-manage.com/subscribe/post?u=234bf6777b76872feb7d92a68&id=27fad95f3b";o=o.replace(/\/post/g,"/post-json");return function(e,t){return void 0===t&&(t=300),new Promise(((n,o)=>w()(e,{param:"c",timeout:t},((e,t)=>{e&&o(e),t&&n(t)}))))}(""+o+("&EMAIL="+n),3500)},_=e=>{const t=e.getBoundingClientRect().top+window.pageYOffset-24;window.scrollTo({top:t,behavior:"smooth"})},P=()=>{const e=document.querySelectorAll('a[href^="#"]');for(let t=0;t<e.length;t++)e[t].addEventListener("click",(function(e){e.preventDefault();const t=this.getAttribute("href");let n=this;this.classList.contains("heading-anchor")||(n=document.querySelector('[id="'+t.substring(1)+'"] a.heading-anchor')||this),history.pushState&&t&&(history.pushState({},"",t),window.dispatchEvent(new Event("hashchange"))),_(n)}))},x=e=>{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),navigator.clipboard.writeText(e),document.body.removeChild(t)},S=e=>{let{mount:t,children:n}=e;const a=(0,o.useRef)(),{0:i,1:s}=(0,o.useState)(!1);return(0,o.useEffect)((()=>{a.current=t||document.body,s(!0)}),[t]),i?(0,r.createPortal)(n,a.current):null},R=e=>{const t=Object.entries(e).filter((e=>{let[,t]=e;return null!=t})).map((e=>{let[t,n]=e;return encodeURIComponent(t)+"="+encodeURIComponent(String(n))}));return t.length>0?"?"+t.join("&"):""}},1143:function(e){"use strict";e.exports=function(e,t,n,o,r,a,i,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,r,a,i,s],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},365:function(e,t,n){var o=n(1445)("jsonp");e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={});t||(t={});var i,s,c=t.prefix||"__jp",l=t.name||c+r++,u=t.param||"callback",d=null!=t.timeout?t.timeout:6e4,p=encodeURIComponent,h=document.getElementsByTagName("script")[0]||document.head;d&&(s=setTimeout((function(){f(),n&&n(new Error("Timeout"))}),d));function f(){i.parentNode&&i.parentNode.removeChild(i),window[l]=a,s&&clearTimeout(s)}return window[l]=function(e){o("jsonp got",e),f(),n&&n(null,e)},e=(e+=(~e.indexOf("?")?"&":"?")+u+"="+p(l)).replace("?&","?"),o('jsonp req "%s"',e),(i=document.createElement("script")).src=e,h.parentNode.insertBefore(i,h),function(){window[l]&&f()}};var r=0;function a(){}},1445:function(e,t,n){function o(){var e;try{e=t.storage.debug}catch(n){}return!e&&"undefined"!=typeof process&&"env"in process&&(e={}.DEBUG),e}(t=e.exports=n(4805)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var o="color: "+this.color;e.splice(1,0,o,"color: inherit");var r=0,a=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(a=r))})),e.splice(a,0,o)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(n){}},t.load=o,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},t.enable(o())},4805:function(e,t,n){var o;function r(e){function n(){if(n.enabled){var e=n,r=+new Date,a=r-(o||r);e.diff=a,e.prev=o,e.curr=r,o=r;for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var c=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(n,o){if("%%"===n)return n;c++;var r=t.formatters[o];if("function"==typeof r){var a=i[c];n=r.call(e,a),i.splice(c,1),c--}return n})),t.formatArgs.call(e,i),(n.log||t.log||console.log.bind(console)).apply(e,i)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var n,o=0;for(n in e)o=(o<<5)-o+e.charCodeAt(n),o|=0;return t.colors[Math.abs(o)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length,r=0;r<o;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var n,o;for(n=0,o=t.skips.length;n<o;n++)if(t.skips[n].test(e))return!1;for(n=0,o=t.names.length;n<o;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(971),t.names=[],t.skips=[],t.formatters={}},971:function(e){var t=1e3,n=60*t,o=60*n,r=24*o,a=365.25*r;function i(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,s){s=s||{};var c,l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!i)return;var s=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"days":case"day":case"d":return s*r;case"hours":case"hour":case"hrs":case"hr":case"h":return s*o;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===l&&!1===isNaN(e))return s.long?i(c=e,r,"day")||i(c,o,"hour")||i(c,n,"minute")||i(c,t,"second")||c+" ms":function(e){if(e>=r)return Math.round(e/r)+"d";if(e>=o)return Math.round(e/o)+"h";if(e>=n)return Math.round(e/n)+"m";if(e>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},4405:function(e,t,n){"use strict";n.d(t,{w_:function(){return l}});var o=n(7294),r={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=o.createContext&&o.createContext(r),i=function(){return i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},s=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function c(e){return e&&e.map((function(e,t){return o.createElement(e.tag,i({key:t},e.attr),c(e.child))}))}function l(e){return function(t){return o.createElement(u,i({attr:i({},e.attr)},t),c(e.child))}}function u(e){var t=function(t){var n,r=e.attr,a=e.size,c=e.title,l=s(e,["attr","size","title"]),u=a||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),o.createElement("svg",i({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,l,{className:n,style:i(i({color:e.color||t.color},t.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),c&&o.createElement("title",null,c),e.children)};return void 0!==a?o.createElement(a.Consumer,null,(function(e){return t(e)})):t(r)}},9730:function(e,t,n){"use strict";var o=n(7294),r={stream:!0},a=new Map,i=Symbol.for("react.element"),s=Symbol.for("react.lazy"),c=Symbol.for("react.default_value"),l=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function u(e,t,n){this._status=e,this._value=t,this._response=n}function d(e){switch(e._status){case 3:return e._value;case 1:var t=JSON.parse(e._value,e._response._fromJSON);return e._status=3,e._value=t;case 2:for(var o=(t=e._value).chunks,r=0;r<o.length;r++){var i=a.get(o[r]);if(null!==i)throw i}return o=n(t.id),t="*"===t.name?o:""===t.name?o.__esModule?o.default:o:o[t.name],e._status=3,e._value=t;case 0:throw e;default:throw e._value}}function p(){return d(y(this,0))}function h(e,t){return new u(3,t,e)}function f(e){if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}function m(e,t){if(0===e._status){var n=e._value;e._status=4,e._value=t,f(n)}}function g(e,t){e._chunks.forEach((function(e){m(e,t)}))}function y(e,t){var n=e._chunks,o=n.get(t);return o||(o=new u(0,null,e),n.set(t,o)),o}function v(e){g(e,Error("Connection closed."))}function b(e,t){if(""!==t){var r=t[0],i=t.indexOf(":",1),s=parseInt(t.substring(1,i),16);switch(i=t.substring(i+1),r){case"J":(r=(t=e._chunks).get(s))?0===r._status&&(e=r._value,r._status=1,r._value=i,f(e)):t.set(s,new u(1,i,e));break;case"M":r=(t=e._chunks).get(s),i=JSON.parse(i,e._fromJSON);var d=e._bundlerConfig;d=(i=d?d[i.id][i.name]:i).chunks;for(var p=0;p<d.length;p++){var g=d[p];if(void 0===a.get(g)){var y=n.e(g),v=a.set.bind(a,g,null),b=a.set.bind(a,g);y.then(v,b),a.set(g,y)}}r?0===r._status&&(e=r._value,r._status=2,r._value=i,f(e)):t.set(s,new u(2,i,e));break;case"P":e._chunks.set(s,h(e,function(e){return l[e]||(l[e]=o.createServerContext(e,c)),l[e]}(i).Provider));break;case"S":r=JSON.parse(i),e._chunks.set(s,h(e,Symbol.for(r)));break;case"E":t=JSON.parse(i),(r=Error(t.message)).stack=t.stack,(i=(t=e._chunks).get(s))?m(i,r):t.set(s,new u(4,r,e));break;default:throw Error("Error parsing the data. It's probably an error code or network corruption.")}}}function w(e){return function(t,n){return"string"==typeof n?function(e,t,n){switch(n[0]){case"$":return"$"===n?i:"$"===n[1]||"@"===n[1]?n.substring(1):d(e=y(e,parseInt(n.substring(1),16)));case"@":return e=y(e,parseInt(n.substring(1),16)),{$$typeof:s,_payload:e,_init:d}}return n}(e,0,n):"object"==typeof n&&null!==n?n[0]===i?{$$typeof:i,type:n[1],key:n[2],ref:null,props:n[3],_owner:null}:n:n}}function E(e){var t=new TextDecoder;return(e={_bundlerConfig:e,_chunks:new Map,readRoot:p,_partialRow:"",_stringDecoder:t})._fromJSON=w(e),e}function C(e,t){function n(t){g(e,t)}var o=t.getReader();o.read().then((function t(a){var i=a.value;if(!a.done){a=i,i=e._stringDecoder;for(var s=a.indexOf(10);-1<s;){var c=e._partialRow,l=a.subarray(0,s);l=i.decode(l),b(e,c+l),e._partialRow="",s=(a=a.subarray(s+1)).indexOf(10)}return e._partialRow+=i.decode(a,r),o.read().then(t,n)}v(e)}),n)}u.prototype.then=function(e){0===this._status?(null===this._value&&(this._value=[]),this._value.push(e)):e()},t.createFromReadableStream=function(e,t){return C(t=E(t&&t.moduleMap?t.moduleMap:null),e),t}},904:function(e,t,n){"use strict";e.exports=n(9730)},523:function(e){!function(){"use strict";e.exports={polyfill:function(){var e=window,t=document;if(!("scrollBehavior"in t.documentElement.style)||!0===e.__forceSmoothScrollPolyfill__){var n,o=e.HTMLElement||e.Element,r=468,a={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:o.prototype.scroll||c,scrollIntoView:o.prototype.scrollIntoView},i=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,s=(n=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?f.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):a.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?a.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):f.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},o.prototype.scroll=o.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var e=arguments[0].left,t=arguments[0].top;f.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");a.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},o.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):a.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},o.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=function(e){for(;e!==t.body&&!1===p(e);)e=e.parentNode||e.host;return e}(this),o=n.getBoundingClientRect(),r=this.getBoundingClientRect();n!==t.body?(f.call(this,n,n.scrollLeft+r.left-o.left,n.scrollTop+r.top-o.top),"fixed"!==e.getComputedStyle(n).position&&e.scrollBy({left:o.left,top:o.top,behavior:"smooth"})):e.scrollBy({left:r.left,top:r.top,behavior:"smooth"})}else a.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function c(e,t){this.scrollLeft=e,this.scrollTop=t}function l(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function u(e,t){return"Y"===t?e.clientHeight+s<e.scrollHeight:"X"===t?e.clientWidth+s<e.scrollWidth:void 0}function d(t,n){var o=e.getComputedStyle(t,null)["overflow"+n];return"auto"===o||"scroll"===o}function p(e){var t=u(e,"Y")&&d(e,"Y"),n=u(e,"X")&&d(e,"X");return t||n}function h(t){var n,o,a,s,c=(i()-t.startTime)/r;s=c=c>1?1:c,n=.5*(1-Math.cos(Math.PI*s)),o=t.startX+(t.x-t.startX)*n,a=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,o,a),o===t.x&&a===t.y||e.requestAnimationFrame(h.bind(e,t))}function f(n,o,r){var s,l,u,d,p=i();n===t.body?(s=e,l=e.scrollX||e.pageXOffset,u=e.scrollY||e.pageYOffset,d=a.scroll):(s=n,l=n.scrollLeft,u=n.scrollTop,d=c),h({scrollable:s,method:d,startTime:p,startX:l,startY:u,x:o,y:r})}}}}()},6115:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},7867:function(e,t,n){var o=n(6015);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},4836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(n,o){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2911:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SCRIPT_TYPE="text/partytown",t.partytownSnippet=e=>((e,t)=>{const{forward:n=[],...o}=e||{},r=JSON.stringify(o,((e,t)=>("function"==typeof t&&(t=String(t)).startsWith(e+"(")&&(t="function "+t),t)));return["!(function(w,p,f,c){",Object.keys(o).length>0?`c=w[p]=Object.assign(w[p]||{},${r});`:"c=w[p]=w[p]||{};","c[f]=(c[f]||[])",n.length>0?`.concat(${JSON.stringify(n)})`:"","})(window,'partytown','forward');",t].join("")})(e,'/* Partytown 0.7.6 - 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(f,1e4),e.addEventListener("pt0",w),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):f())))}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.7.6":"sandbox-sw.html?"+Date.now()),e.body.appendChild(c)}function f(n,r){for(w(),i==t&&(o.forward||[]).map((function(e){delete t[e.split(".")[0]]})),n=0;n<s.length;n++)(r=e.createElement("script")).innerHTML=s[n].innerHTML,e.head.appendChild(r);c&&c.parentNode.removeChild(c)}function w(){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);')},1721:function(e,t,n){"use strict";function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}n.d(t,{Z:function(){return r}})},5785:function(e,t,n){"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(t,{Z:function(){return r}})},7896:function(e,t,n){"use strict";var o;n.r(t),n.d(t,{BaseContext:function(){return g},Link:function(){return Z},Location:function(){return X},LocationContext:function(){return y},LocationProvider:function(){return G},Match:function(){return ee},Redirect:function(){return P},Router:function(){return se},ServerLocation:function(){return K},createHistory:function(){return u},createMemorySource:function(){return d},globalHistory:function(){return h},insertParams:function(){return O},isRedirect:function(){return E},match:function(){return R},navigate:function(){return f},pick:function(){return S},redirectTo:function(){return C},resolve:function(){return k},shallowCompare:function(){return I},startsWith:function(){return x},useBaseContext:function(){return v},useLocation:function(){return le},useLocationContext:function(){return b},useMatch:function(){return pe},useNavigate:function(){return ue},useParams:function(){return de},validateRedirect:function(){return T}});var r=n(7294),a=n(5697),i=n(1143);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s.apply(this,arguments)}function c(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)t.indexOf(n=a[o])>=0||(r[n]=e[n]);return r}const l=e=>{const{search:t,hash:n,href:o,origin:r,protocol:a,host:i,hostname:s,port:c}=e.location;let{pathname:l}=e.location;return!l&&o&&p&&(l=new URL(o).pathname),{pathname:encodeURI(decodeURI(l)),search:t,hash:n,href:o,origin:r,protocol:a,host:i,hostname:s,port:c,state:e.history.state,key:e.history.state&&e.history.state.key||"initial"}},u=(e,t)=>{let n=[],o=l(e),r=!1,a=()=>{};return{get location(){return o},get transitioning(){return r},_onTransitionComplete(){r=!1,a()},listen(t){n.push(t);const r=()=>{o=l(e),t({location:o,action:"POP"})};return e.addEventListener("popstate",r),()=>{e.removeEventListener("popstate",r),n=n.filter((e=>e!==t))}},navigate(t,{state:i,replace:c=!1}={}){if("number"==typeof t)e.history.go(t);else{i=s({},i,{key:Date.now()+""});try{r||c?e.history.replaceState(i,null,t):e.history.pushState(i,null,t)}catch(n){e.location[c?"replace":"assign"](t)}}o=l(e),r=!0;const u=new Promise((e=>a=e));return n.forEach((e=>e({location:o,action:"PUSH"}))),u}}},d=(e="/")=>{const t=e.indexOf("?"),n={pathname:t>-1?e.substr(0,t):e,search:t>-1?e.substr(t):""};let o=0;const r=[n],a=[null];return{get location(){return r[o]},addEventListener(e,t){},removeEventListener(e,t){},history:{get entries(){return r},get index(){return o},get state(){return a[o]},pushState(e,t,n){const[i,s=""]=n.split("?");o++,r.push({pathname:i,search:s.length?`?${s}`:s}),a.push(e)},replaceState(e,t,n){const[i,s=""]=n.split("?");r[o]={pathname:i,search:s},a[o]=e},go(e){const t=o+e;t<0||t>a.length-1||(o=t)}}}},p=!("undefined"==typeof window||!window.document||!window.document.createElement),h=u(p?window:d()),{navigate:f}=h;function m(e,t){return r.createServerContext?((e,t=null)=>(globalThis.__SERVER_CONTEXT||(globalThis.__SERVER_CONTEXT={}),globalThis.__SERVER_CONTEXT[e]||(globalThis.__SERVER_CONTEXT[e]=r.createServerContext(e,t)),globalThis.__SERVER_CONTEXT[e]))(e,t):r.createContext(t)}const g=m("Base",{baseuri:"/",basepath:"/"}),y=m("Location"),v=()=>r.useContext(g),b=()=>r.useContext(y);function w(e){this.uri=e}const E=e=>e instanceof w,C=e=>{throw new w(e)};function _(e){const{to:t,replace:n=!0,state:o,noThrow:a,baseuri:i}=e;r.useEffect((()=>{Promise.resolve().then((()=>{const r=k(t,i);f(O(r,e),{replace:n,state:o})}))}),[]);const s=k(t,i);return a||C(O(s,e)),null}const P=e=>{const t=b(),{baseuri:n}=v();return r.createElement(_,s({},t,{baseuri:n},e))};P.propTypes={from:a.string,to:a.string.isRequired};const x=(e,t)=>e.substr(0,t.length)===t,S=(e,t)=>{let n,o;const[r]=t.split("?"),a=z(r),s=""===a[0],c=A(e);for(let l=0,u=c.length;l<u;l++){let e=!1;const r=c[l].route;if(r.default){o={route:r,params:{},uri:t};continue}const u=z(r.path),d={},p=Math.max(a.length,u.length);let h=0;for(;h<p;h++){const t=u[h],n=a[h];if(N(t)){d[t.slice(1)||"*"]=a.slice(h).map(decodeURIComponent).join("/");break}if(void 0===n){e=!0;break}const o=L.exec(t);if(o&&!s){const e=-1===M.indexOf(o[1]);i(e,`<Router> dynamic segment "${o[1]}" is a reserved name. Please use a different name in path "${r.path}".`);const t=decodeURIComponent(n);d[o[1]]=t}else if(t!==n){e=!0;break}}if(!e){n={route:r,params:d,uri:"/"+a.slice(0,h).join("/")};break}}return n||o||null},R=(e,t)=>S([{path:e}],t),k=(e,t)=>{if(x(e,"/"))return e;const[n,o]=e.split("?"),[r]=t.split("?"),a=z(n),i=z(r);if(""===a[0])return H(r,o);if(!x(a[0],".")){const e=i.concat(a).join("/");return H(("/"===r?"":"/")+e,o)}const s=i.concat(a),c=[];for(let l=0,u=s.length;l<u;l++){const e=s[l];".."===e?c.pop():"."!==e&&c.push(e)}return H("/"+c.join("/"),o)},O=(e,t)=>{const[n,o=""]=e.split("?");let r="/"+z(n).map((e=>{const n=L.exec(e);return n?t[n[1]]:e})).join("/");const{location:{search:a=""}={}}=t,i=a.split("?")[1]||"";return r=H(r,o,i),r},T=(e,t)=>{const n=e=>j(e);return z(e).filter(n).sort().join("/")===z(t).filter(n).sort().join("/")},L=/^:(.+)/,j=e=>L.test(e),N=e=>e&&"*"===e[0],D=(e,t)=>({route:e,score:e.default?0:z(e.path).reduce(((e,t)=>(e+=4,(e=>""===e)(t)?e+=1:j(t)?e+=2:N(t)?e-=5:e+=3,e)),0),index:t}),A=e=>e.map(D).sort(((e,t)=>e.score<t.score?1:e.score>t.score?-1:e.index-t.index)),z=e=>e.replace(/(^\/+|\/+$)/g,"").split("/"),H=(e,...t)=>e+((t=t.filter((e=>e&&e.length>0)))&&t.length>0?`?${t.join("&")}`:""),M=["uri","path"],I=(e,t)=>{const n=Object.keys(e);return n.length===Object.keys(t).length&&n.every((n=>t.hasOwnProperty(n)&&e[n]===t[n]))},U=e=>e.replace(/(^\/+|\/+$)/g,""),W=e=>t=>{if(!t)return null;if(t.type===r.Fragment&&t.props.children)return r.Children.map(t.props.children,W(e));if(i(t.props.path||t.props.default||t.type===P,`<Router>: Children of <Router> must have a \`path\` or \`default\` prop, or be a \`<Redirect>\`. None found on element type \`${t.type}\``),i(!!(t.type!==P||t.props.from&&t.props.to),`<Redirect from="${t.props.from}" to="${t.props.to}"/> requires both "from" and "to" props when inside a <Router>.`),i(!(t.type===P&&!T(t.props.from,t.props.to)),`<Redirect from="${t.props.from} to="${t.props.to}"/> has mismatched dynamic segments, ensure both paths have the exact same dynamic segments.`),t.props.default)return{value:t,default:!0};const n=t.type===P?t.props.from:t.props.path,o="/"===n?e:`${U(e)}/${U(n)}`;return{value:t,default:t.props.default,path:t.props.children?`${U(o)}/*`:o}},q=["innerRef"],B=["to","state","replace","getProps"],$=["key"];let{forwardRef:F}=o||(o=n.t(r,2));void 0===F&&(F=e=>e);const J=()=>{},Z=F(((e,t)=>{let{innerRef:n}=e,o=c(e,q);const{baseuri:a}=v(),{location:i}=b(),{to:l,state:u,replace:d,getProps:p=J}=o,h=c(o,B),m=k(l,a),g=encodeURI(m),y=i.pathname===g,w=x(i.pathname,g);return r.createElement("a",s({ref:t||n,"aria-current":y?"page":void 0},h,p({isCurrent:y,isPartiallyCurrent:w,href:m,location:i}),{href:m,onClick:e=>{if(h.onClick&&h.onClick(e),(e=>!e.defaultPrevented&&0===e.button&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey))(e)){e.preventDefault();let t=d;if("boolean"!=typeof d&&y){const e=c(s({},i.state),$);t=I(s({},u),e)}f(m,{state:u,replace:t})}}}))}));Z.displayName="Link",Z.propTypes={to:a.string.isRequired};class Q extends r.Component{constructor(...e){super(...e),this.displayName="ReactUseErrorBoundary"}componentDidCatch(...e){this.setState({}),this.props.onError(...e)}render(){return this.props.children}}const V=r.createContext({componentDidCatch:{current:void 0},error:void 0,setError:()=>!1});function Y({children:e}){const[t,n]=r.useState(),o=r.useRef(),a=r.useMemo((()=>({componentDidCatch:o,error:t,setError:n})),[t]);return r.createElement(V.Provider,{value:a},r.createElement(Q,{error:t,onError:(e,t)=>{n(e),null==o.current||o.current(e,t)}},e))}Y.displayName="ReactUseErrorBoundaryContext";const G=function(e){var t,n;function o(t){return r.createElement(Y,null,r.createElement(e,s({key:"WrappedComponent"},t)))}return o.displayName=`WithErrorBoundary(${null!=(t=null!=(n=e.displayName)?n:e.name)?t:"Component"})`,o}((({history:e=h,children:t})=>{const{location:n}=e,[o,a]=r.useState({location:n}),[i]=function(e){const t=r.useContext(V);t.componentDidCatch.current=void 0;const n=r.useCallback((()=>{t.setError(void 0)}),[]);return[t.error,n]}();if(r.useEffect((()=>{e._onTransitionComplete()}),[o.location]),r.useEffect((()=>{let t=!1;const n=e.listen((({location:e})=>{Promise.resolve().then((()=>{requestAnimationFrame((()=>{t||a({location:e})}))}))}));return()=>{t=!0,n()}}),[]),i){if(!E(i))throw i;f(i.uri,{replace:!0})}return r.createElement(y.Provider,{value:o},"function"==typeof t?t(o):t||null)})),X=({children:e})=>{const t=b();return t?e(t):r.createElement(G,null,e)},K=({url:e,children:t})=>{const n=e.indexOf("?");let o,a="";return n>-1?(o=e.substring(0,n),a=e.substring(n)):o=e,r.createElement(y.Provider,{value:{location:{pathname:o,search:a,hash:""}}},t)},ee=({path:e,children:t})=>{const{baseuri:n}=v(),{location:o}=b(),r=k(e,n),a=R(r,o.pathname);return t({location:o,match:a?s({},a.params,{uri:a.uri,path:e}):null})},te=["uri","location","component"],ne=["children","style","component","uri","location"],oe=e=>{let{uri:t,location:n,component:o}=e,a=c(e,te);return r.createElement(ae,s({},a,{component:o,uri:t,location:n}))};let re=0;const ae=e=>{let{children:t,style:n,component:o="div",uri:a,location:i}=e,l=c(e,ne);const u=r.useRef(),d=r.useRef(!0),p=r.useRef(a),h=r.useRef(i.pathname),f=r.useRef(!1);r.useEffect((()=>(re++,m(),()=>{re--,0===re&&(d.current=!0)})),[]),r.useEffect((()=>{let e=!1,t=!1;a!==p.current&&(p.current=a,e=!0),i.pathname!==h.current&&(h.current=i.pathname,t=!0),f.current=e||t&&i.pathname===a,f.current&&m()}),[a,i]);const m=r.useCallback((()=>{var e;d.current?d.current=!1:(e=u.current,f.current&&e&&e.focus())}),[]);return r.createElement(o,s({style:s({outline:"none"},n),tabIndex:"-1",ref:u},l),t)},ie=["location","primary","children","basepath","baseuri","component"],se=e=>{const t=v(),n=b();return r.createElement(ce,s({},t,n,e))};function ce(e){const{location:t,primary:n=!0,children:o,basepath:a,component:i="div"}=e,l=c(e,ie),u=r.Children.toArray(o).reduce(((e,t)=>{const n=W(a)(t);return e.concat(n)}),[]),{pathname:d}=t,p=S(u,d);if(p){const{params:e,uri:o,route:c,route:{value:u}}=p,d=c.default?a:c.path.replace(/\*$/,""),h=s({},e,{uri:o,location:t}),f=r.cloneElement(u,h,u.props.children?r.createElement(se,{location:t,primary:n},u.props.children):void 0),m=n?oe:i,y=n?s({uri:o,location:t,component:i},l):l;return r.createElement(g.Provider,{value:{baseuri:o,basepath:d}},r.createElement(m,y,f))}return null}const le=()=>{const e=b();if(!e)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 e.location},ue=()=>{throw new Error("useNavigate is removed. Use import { navigate } from 'gatsby' instead")},de=()=>{const e=v();if(!e)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");const t=le(),n=R(e.basepath,t.pathname);return n?n.params:null},pe=e=>{if(!e)throw new Error("useMatch(path: string) requires an argument of a string to match against");const t=v();if(!t)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");const n=le(),o=k(e,t.baseuri),r=R(o,n.pathname);return r?s({},r.params,{uri:r.uri,path:e}):null}},1562:function(e,t,n){"use strict";n.d(t,{c4:function(){return C},cP:function(){return c},dq:function(){return h},rU:function(){return E}});var o=n(5697),r=n(7294),a=n(7896),i=n(4506);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s.apply(this,arguments)}function c(e){let t=e||"/",n="",o="";const r=t.indexOf("#");-1!==r&&(o=t.slice(r),t=t.slice(0,r));const a=t.indexOf("?");return-1!==a&&(n=t.slice(a),t=t.slice(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===o?"":o}}const l=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>{if("string"==typeof e)return!(e=>l.test(e))(e)},d=()=>"/gatsby-theme-pitayan",p=()=>"/gatsby-theme-pitayan";function h(e,t=d()){var n;if(!u(e))return e;if(e.startsWith("./")||e.startsWith("../"))return e;const o=null!=(n=null!=t?t:p())?n:"/";return`${null!=o&&o.endsWith("/")?o.slice(0,-1):o}${e.startsWith("/")?e:`/${e}`}`}const f=e=>null==e?void 0:e.startsWith("/");function m(e,t){const{pathname:n,search:o,hash:r}=c(e);return`${(0,i.H)(n,t)}${o}${r}`}const g=(e,t)=>"number"==typeof e?e:u(e)?f(e)?function(e){const t=h(e),n="always";return m(t,n)}(e):function(e,t){if(f(e))return e;const n="always",o=(0,a.resolve)(e,t);return m(o,n)}(e,t):e,y=["to","getProps","onClick","onMouseEnter","activeClassName","activeStyle","innerRef","partiallyActive","state","replace","_location"];const v={activeClassName:o.string,activeStyle:o.object,partiallyActive:o.bool};function b(e){return r.createElement(a.Location,null,(({location:t})=>r.createElement(w,s({},e,{_location:t}))))}class w extends r.Component{constructor(e){super(e),this.defaultGetProps=({isPartiallyCurrent:e,isCurrent:t})=>(this.props.partiallyActive?e:t)?{className:[this.props.className,this.props.activeClassName].filter(Boolean).join(" "),style:s({},this.props.style,this.props.activeStyle)}:null;let t=!1;"undefined"!=typeof window&&window.IntersectionObserver&&(t=!0),this.state={IOSupported:t},this.abortPrefetch=null,this.handleRef=this.handleRef.bind(this)}_prefetch(){let e=window.location.pathname+window.location.search;this.props._location&&this.props._location.pathname&&(e=this.props._location.pathname+this.props._location.search);const t=c(g(this.props.to,e)),n=t.pathname+t.search;if(e!==n)return ___loader.enqueue(n)}componentWillUnmount(){if(!this.io)return;const{instance:e,el:t}=this.io;this.abortPrefetch&&this.abortPrefetch.abort(),e.unobserve(t),e.disconnect()}handleRef(e){this.props.innerRef&&Object.prototype.hasOwnProperty.call(this.props.innerRef,"current")?this.props.innerRef.current=e:this.props.innerRef&&this.props.innerRef(e),this.state.IOSupported&&e&&(this.io=((e,t)=>{const n=new window.IntersectionObserver((n=>{n.forEach((n=>{e===n.target&&t(n.isIntersecting||n.intersectionRatio>0)}))}));return n.observe(e),{instance:n,el:e}})(e,(e=>{e?this.abortPrefetch=this._prefetch():this.abortPrefetch&&this.abortPrefetch.abort()})))}render(){const e=this.props,{to:t,getProps:n=this.defaultGetProps,onClick:o,onMouseEnter:i,state:l,replace:d,_location:p}=e,h=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)t.indexOf(n=a[o])>=0||(r[n]=e[n]);return r}(e,y),f=g(t,p.pathname);return u(f)?r.createElement(a.Link,s({to:f,state:l,getProps:n,innerRef:this.handleRef,onMouseEnter:e=>{i&&i(e);const t=c(f);___loader.hovering(t.pathname+t.search)},onClick:e=>{if(o&&o(e),!(0!==e.button||this.props.target||e.defaultPrevented||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)){e.preventDefault();let t=d;const n=encodeURI(f)===p.pathname;"boolean"!=typeof d&&n&&(t=!0),window.___navigate(f,{state:l,replace:t})}return!0}},h)):r.createElement("a",s({href:f},h))}}w.propTypes=s({},v,{onClick:o.func,to:o.string.isRequired,replace:o.bool,state:o.object});const E=r.forwardRef(((e,t)=>r.createElement(b,s({innerRef:t},e)))),C=(e,t)=>{window.___navigate(g(e,window.location.pathname),t)}},3521:function(e,t,n){"use strict";n.r(t),n.d(t,{Script:function(){return f},ScriptStrategy:function(){return l},collectedScriptsByPage:function(){return s},scriptCache:function(){return p},scriptCallbackCache:function(){return h}});var o=n(7294),r=n(7896);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a.apply(this,arguments)}const i=new Map,s={get:e=>i.get(e)||[],set(e,t){const n=i.get(e)||[];n.push(t),i.set(e,n)},delete(e){i.delete(e)}},c="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){const t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)};var l,u;(u=l||(l={})).postHydrate="post-hydrate",u.idle="idle",u.offMainThread="off-main-thread";const d=new Set(["src","strategy","dangerouslySetInnerHTML","children","onLoad","onError"]),p=new Set,h=new Map;function f(e){return o.createElement(r.Location,null,(()=>o.createElement(m,e)))}function m(e){const{src:t,strategy:n=l.postHydrate}=e||{},{pathname:i}=(0,r.useLocation)();if((0,o.useEffect)((()=>{let t;switch(n){case l.postHydrate:t=g(e);break;case l.idle:c((()=>{t=g(e)}));break;case l.offMainThread:{const t=v(e);s.set(i,t)}}return()=>{const{script:e,loadCallback:n,errorCallback:o}=t||{};n&&(null==e||e.removeEventListener("load",n)),o&&(null==e||e.removeEventListener("error",o)),null==e||e.remove()}}),[]),n===l.offMainThread){const r=y(e),c=v(e);return"undefined"==typeof window&&s.set(i,c),o.createElement("script",r?a({type:"text/partytown","data-strategy":n,crossOrigin:"anonymous"},c,{dangerouslySetInnerHTML:{__html:y(e)}}):a({type:"text/partytown",src:b(t),"data-strategy":n,crossOrigin:"anonymous"},c))}return null}function g(e){const{id:t,src:n,strategy:o=l.postHydrate,onLoad:r,onError:i}=e||{},s=t||n,c=["load","error"],u={load:r,error:i};if(s){for(const e of c)if(null!=u&&u[e]){var d;const t=h.get(s)||{},{callbacks:n=[]}=(null==t?void 0:t[e])||{};var f,m;n.push(null==u?void 0:u[e]),null!=t&&null!=(d=t[e])&&d.event?null==u||null==(f=u[e])||f.call(u,null==t||null==(m=t[e])?void 0:m.event):h.set(s,a({},t,{[e]:{callbacks:n}}))}if(p.has(s))return null}const g=y(e),b=v(e),E=document.createElement("script");t&&(E.id=t),E.dataset.strategy=o;for(const[a,l]of Object.entries(b))E.setAttribute(a,l);g&&(E.textContent=g),n&&(E.src=n);const C={};if(s){for(const e of c){const t=t=>w(t,s,e);E.addEventListener(e,t),C[`${e}Callback`]=t}p.add(s)}return document.body.appendChild(E),{script:E,loadCallback:C.loadCallback,errorCallback:C.errorCallback}}function y(e){const{dangerouslySetInnerHTML:t,children:n=""}=e||{},{__html:o=""}=t||{};return o||n}function v(e){const t={};for(const[n,o]of Object.entries(e))d.has(n)||(t[n]=o);return t}function b(e){if(e)return`/__third-party-proxy?url=${encodeURIComponent(e)}`}function w(e,t,n){const o=h.get(t)||{};for(const a of(null==o||null==(r=o[n])?void 0:r.callbacks)||[]){var r;a(e)}h.set(t,{[n]:{event:e}})}}},function(e){e.O(0,[774,532,415,937,445],(function(){return t=5824,e(e.s=t);var t}));e.O()}]);
//# sourceMappingURL=app-1866a6919c20a9051f19.js.map