(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8927,9897,1807,1035],{24326:function(e,t,n){Promise.resolve().then(n.bind(n,97867)),Promise.resolve().then(n.bind(n,31085))},49988:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,{g:function(){return r}})},97867:function(e,t,n){"use strict";n.d(t,{default:function(){return l}});var r=n(49988),o=n(27648),i=n(99376),u=n(2265),c=n(48706),l=(0,u.forwardRef)(function(e,t){let{defaultLocale:n,href:l,locale:a,localeCookie:s,onClick:f,prefetch:h,unprefixed:p,...d}=e,v=(0,c.Z)(),m=null!=a&&a!==v,g=a||v,y=function(){let[e,t]=(0,u.useState)();return(0,u.useEffect)(()=>{t(window.location.host)},[]),e}(),b=y&&p&&(p.domains[y]===g||!Object.keys(p.domains).includes(y)&&v===n&&!a)?p.pathname:l,w=(0,i.usePathname)();return m&&(h&&console.error("The `prefetch` prop is currently not supported when using the `locale` prop on `Link` to switch the locale.`"),h=!1),u.createElement(o.default,(0,r.g)({ref:t,href:b,hrefLang:m?a:void 0,onClick:function(e){(function(e,t,n,r){if(!e||!(r!==n&&null!=r)||!t)return;let o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.pathname;return"/"===e?t:t.replace(e,"")}(t),{name:i,...u}=e;u.path||(u.path=""!==o?o:"/");let c="".concat(i,"=").concat(r,";");for(let[e,t]of Object.entries(u))c+="".concat("maxAge"===e?"max-age":e),"boolean"!=typeof t&&(c+="="+t),c+=";";document.cookie=c})(s,w,v,a),f&&f(e)},prefetch:h},d))})},31085:function(e,t,n){"use strict";n.d(t,{default:function(){return f}});var r=n(49988),o=n(99376),i=n(2265),u=n(48706);function c(e){return("object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e))&&!function(e){let t="object"==typeof e?e.pathname:e;return null!=t&&!t.startsWith("/")}(e)}function l(e,t){let n;return"string"==typeof e?n=a(t,e):(n={...e},e.pathname&&(n.pathname=a(t,e.pathname))),n}function a(e,t){let n=e;return/^\/(\?.*)?$/.test(t)&&(t=t.slice(1)),n+=t}n(40257);var s=n(97867);let f=(0,i.forwardRef)(function(e,t){let{href:n,locale:a,localeCookie:f,localePrefixMode:h,prefix:p,...d}=e,v=(0,o.usePathname)(),m=(0,u.Z)(),g=a!==m,[y,b]=(0,i.useState)(()=>c(n)&&("never"!==h||g)?l(n,p):n);return(0,i.useEffect)(()=>{v&&b(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;if(!c(e))return e;let i=r===o||r.startsWith("".concat(o,"/"));return(t!==n||i)&&null!=o?l(e,o):e}(n,a,m,v,p))},[m,n,a,v,p]),i.createElement(s.default,(0,r.g)({ref:t,href:y,locale:a,localeCookie:f},d))});f.displayName="ClientLink"},48706:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(99376),o=n(526);let i="locale";function u(){let e;let t=(0,r.useParams)();try{e=(0,o.useLocale)()}catch(n){if("string"!=typeof(null==t?void 0:t[i]))throw n;e=t[i]}return e}},99376:function(e,t,n){"use strict";n.r(t);var r=n(35475),o={};for(var i in r)"default"!==i&&(o[i]=(function(e){return r[e]}).bind(0,i));n.d(t,o)},40257:function(e,t,n){"use strict";var r,o;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(44227)},44227:function(e){!function(){var t={229:function(e){var t,n,r,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function u(){throw Error("clearTimeout has not been defined")}function c(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:u}catch(e){n=u}}();var l=[],a=!1,s=-1;function f(){a&&r&&(a=!1,r.length?l=r.concat(l):s=-1,l.length&&h())}function h(){if(!a){var e=c(f);a=!0;for(var t=l.length;t;){for(r=l,l=[];++s<t;)r&&r[s].run();s=-1,t=l.length}r=null,a=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===u||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function d(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||a||c(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=d,o.addListener=d,o.once=d,o.off=d,o.removeListener=d,o.removeAllListeners=d,o.emit=d,o.prependListener=d,o.prependOnceListener=d,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}},u=!0;try{t[e](i,i.exports,r),u=!1}finally{u&&delete n[e]}return i.exports}r.ab="//";var o=r(229);e.exports=o}()},23442:function(e,t,n){"use strict";let r=n(2265).createContext(void 0);t.IntlContext=r},76357:function(e,t,n){"use strict";var r=n(2265),o=n(23442);function i(){let e=r.useContext(o.IntlContext);if(!e)throw Error(void 0);return e}t.useIntlContext=i,t.useLocale=function(){return i().locale}},526:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(76357);n(2265),n(23442),t.useLocale=r.useLocale}},function(e){e.O(0,[7648,2971,2117,1744],function(){return e(e.s=24326)}),_N_E=e.O()}]);