PageSourceSearch

https://thebiblechat.com/_next/static/chunks/900-7a9864b5cc625a04.js

js thebiblechat.com collected 2026-10-02 06:35:00 UTC 128,049 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[900],{60149:function(e,t,r){"use strict";var i=r(71318),n=r(2265),s=r(99376),a=r(76600),o=function(){return(o=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function l(e,t){return e.protocol+"//"+e.host+e.pathname+e.search==t.protocol+"//"+t.host+t.pathname+t.search}function u(e,t){if("string"==typeof t&&"data-disable-nprogress"===t){var r=t.substring(5);return e.dataset[r]}var i=e[t];if(i instanceof SVGAnimatedString){var n=i.baseVal;return"href"===t?function(e,t){if(!e.startsWith("/")||!t)return e;var r,i,n,s=(r=e.indexOf("#"),(n=(i=e.indexOf("?"))>-1&&(r<0||i<r))||r>-1?{pathname:e.substring(0,n?i:r),query:n?e.substring(i,r>-1?r:void 0):"",hash:r>-1?e.slice(r):""}:{pathname:e,query:"",hash:""}),a=s.pathname,o=s.query,l=s.hash;return"".concat(t).concat(a).concat(o).concat(l)}(n,location.origin):n}return i}"function"==typeof SuppressedError&&SuppressedError;var h=n.memo(function(e){var t,r=e.color,a=void 0===r?"#0A2FFF":r,o=e.height,h=e.options,c=e.shallowRouting,d=void 0!==c&&c,p=e.disableSameURL,f=void 0===p||p,g=e.startPosition,m=void 0===g?0:g,y=e.delay,v=void 0===y?0:y,b=e.stopDelay,w=void 0===b?0:b,P=e.style,S=e.nonce,x=e.targetPreprocessor,O=e.disableAnchorClick,_=void 0!==O&&O,C=n.createElement("style",{nonce:S},P||"\n          #nprogress {\n            pointer-events: none;\n          }\n\n          #nprogress .bar {\n            background: ".concat(a,";\n\n            position: fixed;\n            z-index: 99999;\n            top: 0;\n            left: 0;\n\n            width: 100%;\n            height: ").concat(void 0===o?"2px":o,";\n          }\n\n          /* Fancy blur effect */\n          #nprogress .peg {\n            display: block;\n            position: absolute;\n            right: 0px;\n            width: 100px;\n            height: 100%;\n            box-shadow: 0 0 10px ").concat(a,", 0 0 5px ").concat(a,";\n            opacity: 1.0;\n\n            -webkit-transform: rotate(3deg) translate(0px, -4px);\n                -ms-transform: rotate(3deg) translate(0px, -4px);\n                    transform: rotate(3deg) translate(0px, -4px);\n          }\n\n          /* Remove these to get rid of the spinner */\n          #nprogress .spinner {\n            display: block;\n            position: fixed;\n            z-index: 1031;\n            top: 15px;\n            right: 15px;\n          }\n\n          #nprogress .spinner-icon {\n            width: 18px;\n            height: 18px;\n            box-sizing: border-box;\n\n            border: solid 2px transparent;\n            border-top-color: ").concat(a,";\n            border-left-color: ").concat(a,";\n            border-radius: 50%;\n\n            -webkit-animation: nprogress-spinner 400ms linear infinite;\n                    animation: nprogress-spinner 400ms linear infinite;\n          }\n\n          .nprogress-custom-parent {\n            overflow: hidden;\n            position: relative;\n          }\n\n          .nprogress-custom-parent #nprogress .spinner,\n          .nprogress-custom-parent #nprogress .bar {\n            position: absolute;\n          }\n\n          @-webkit-keyframes nprogress-spinner {\n            0%   { -webkit-transform: rotate(0deg); }\n            100% { -webkit-transform: rotate(360deg); }\n          }\n          @keyframes nprogress-spinner {\n            0%   { transform: rotate(0deg); }\n            100% { transform: rotate(360deg); }\n          }\n        "));i.configure(h||{});var k=s.usePathname(),R=s.useSearchParams();n.useEffect(function(){t&&clearTimeout(t),t=setTimeout(function(){i.done()},w)},[k,R]);var L=n.useRef([]);return n.useEffect(function(){if(!_){var e,t=function(){e=setTimeout(function(){m>0&&i.set(m),i.start()},v)},r=function(){e&&clearTimeout(e),e=setTimeout(function(){i.done()},w)},n=function(e){if(!e.defaultPrevented){var r,i=e.currentTarget,n=e.target,s=(null==n?void 0:n.getAttribute("data-prevent-nprogress"))==="true"||(null==i?void 0:i.getAttribute("data-prevent-nprogress"))==="true";if(!s)for(var a=n;a&&"a"!==a.tagName.toLowerCase();){if((null===(r=a.parentElement)||void 0===r?void 0:r.getAttribute("data-prevent-nprogress"))==="true"){s=!0;break}a=a.parentElement}if(!s&&"_blank"!==u(i,"target")&&!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&!e.altKey){var o=u(i,"href"),h=x?x(new URL(o)):new URL(o),c=new URL(location.href);(!d||h.protocol+"//"+h.host+h.pathname!=c.protocol+"//"+c.host+c.pathname||!f)&&(l(h,c)&&f||t())}}},s=new MutationObserver(function(){var e=Array.from(document.querySelectorAll("a")).filter(function(e){var t=u(e,"href"),r="true"===e.getAttribute("data-disable-nprogress"),i=t&&!t.startsWith("tel:")&&!t.startsWith("mailto:")&&!t.startsWith("blob:")&&!t.startsWith("javascript:");return!r&&i&&"_blank"!==u(e,"target")});e.forEach(function(e){e.addEventListener("click",n,!0)}),L.current=e});s.observe(document,{childList:!0,subtree:!0});var a=window.history.pushState;return window.history.pushState=new Proxy(window.history.pushState,{apply:function(e,t,i){return r(),e.apply(t,i)}}),function(){s.disconnect(),L.current.forEach(function(e){e.removeEventListener("click",n,!0)}),L.current=[],window.history.pushState=a}}},[_,x,d,f]),C},function(e,t){return(null==t?void 0:t.memo)!==!1&&(null==t||!t.shouldCompareComplexProps||(null==e?void 0:e.color)===(null==t?void 0:t.color)&&(null==e?void 0:e.he
1ight)===(null==t?void 0:t.height)&&(null==e?void 0:e.shallowRouting)===(null==t?void 0:t.shallowRouting)&&(null==e?void 0:e.startPosition)===(null==t?void 0:t.startPosition)&&(null==e?void 0:e.delay)===(null==t?void 0:t.delay)&&(null==e?void 0:e.disableSameURL)===(null==t?void 0:t.disableSameURL)&&(null==e?void 0:e.stopDelay)===(null==t?void 0:t.stopDelay)&&(null==e?void 0:e.nonce)===(null==t?void 0:t.nonce)&&JSON.stringify(null==e?void 0:e.options)===JSON.stringify(null==t?void 0:t.options)&&(null==e?void 0:e.style)===(null==t?void 0:t.style)&&e.disableAnchorClick===t.disableAnchorClick)});h.displayName="AppProgressBar",n.memo(function(e){var t=e.color,r=void 0===t?"#0A2FFF":t,s=e.height,o=e.options,u=e.shallowRouting,h=void 0!==u&&u,c=e.disableSameURL,d=void 0===c||c,p=e.startPosition,f=void 0===p?0:p,g=e.delay,m=void 0===g?0:g,y=e.stopDelay,v=void 0===y?0:y,b=e.style,w=e.nonce,P=n.createElement("style",{nonce:w},b||"\n          #nprogress {\n            pointer-events: none;\n          }\n          \n          #nprogress .bar {\n            background: ".concat(r,";\n          \n            position: fixed;\n            z-index: 99999;\n            top: 0;\n            left: 0;\n          \n            width: 100%;\n            height: ").concat(void 0===s?"2px":s,";\n          }\n          \n          /* Fancy blur effect */\n          #nprogress .peg {\n            display: block;\n            position: absolute;\n            right: 0px;\n            width: 100px;\n            height: 100%;\n            box-shadow: 0 0 10px ").concat(r,", 0 0 5px ").concat(r,";\n            opacity: 1.0;\n          \n            -webkit-transform: rotate(3deg) translate(0px, -4px);\n                -ms-transform: rotate(3deg) translate(0px, -4px);\n                    transform: rotate(3deg) translate(0px, -4px);\n          }\n          \n          /* Remove these to get rid of the spinner */\n          #nprogress .spinner {\n            display: block;\n            position: fixed;\n            z-index: 1031;\n            top: 15px;\n            right: 15px;\n          }\n          \n          #nprogress .spinner-icon {\n            width: 18px;\n            height: 18px;\n            box-sizing: border-box;\n          \n            border: solid 2px transparent;\n            border-top-color: ").concat(r,";\n            border-left-color: ").concat(r,";\n            border-radius: 50%;\n          \n            -webkit-animation: nprogress-spinner 400ms linear infinite;\n                    animation: nprogress-spinner 400ms linear infinite;\n          }\n          \n          .nprogress-custom-parent {\n            overflow: hidden;\n            position: relative;\n          }\n          \n          .nprogress-custom-parent #nprogress .spinner,\n          .nprogress-custom-parent #nprogress .bar {\n            position: absolute;\n          }\n          \n          @-webkit-keyframes nprogress-spinner {\n            0%   { -webkit-transform: rotate(0deg); }\n            100% { -webkit-transform: rotate(360deg); }\n          }\n          @keyframes nprogress-spinner {\n            0%   { transform: rotate(0deg); }\n            100% { transform: rotate(360deg); }\n          }\n        "));return i.configure(o||{}),n.useEffect(function(){var e,t=function(){e=setTimeout(function(){f>0&&i.set(f),i.start()},m)},r=function(){e&&clearTimeout(e),e=setTimeout(function(){i.done(!0)},v)},n=function(e){var r=new URL(e,location.href),i=new URL(a.route,location.href);h&&(l(r,i)||!d)||t()},s=function(){return r()};return a.events.on("routeChangeStart",n),a.events.on("routeChangeComplete",s),a.events.on("routeChangeError",s),function(){a.events.off("routeChangeStart",n),a.events.off("routeChangeComplete",s),a.events.off("routeChangeError",s)}},[]),P},function(e,t){return(null==t?void 0:t.memo)!==!1&&(null==t||!t.shouldCompareComplexProps||(null==e?void 0:e.color)===(null==t?void 0:t.color)&&(null==e?void 0:e.height)===(null==t?void 0:t.height)&&(null==e?void 0:e.shallowRouting)===(null==t?void 0:t.shallowRouting)&&(null==e?void 0:e.startPosition)===(null==t?void 0:t.startPosition)&&(null==e?void 0:e.delay)===(null==t?void 0:t.delay)&&(null==e?void 0:e.disableSameURL)===(null==t?void 0:t.disableSameURL)&&(null==e?void 0:e.stopDelay)===(null==t?void 0:t.stopDelay)&&(null==e?void 0:e.nonce)===(null==t?void 0:t.nonce)&&JSON.stringify(null==e?void 0:e.options)===JSON.stringify(null==t?void 0:t.options)&&(null==e?void 0:e.style)===(null==t?void 0:t.style))}).displayName="PagesProgressBar",t.Cd=function(e){return n.createElement(n.Suspense,null,n.createElement(h,o({},e)))}},76600:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.a}});var i=r(27325),n=r.n(i),s={};for(var a in i)"default"!==a&&(s[a]=(function(e){return i[e]}).bind(0,a));r.d(t,s)},11235:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});let r=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71154:function(e,t,r){"use strict";function i(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return i}}),r(63381),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6680:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createRouteLoader:function(){return g},getClientBuildManifest:function(){return p},isAssetError:function(){return u},markAssetError:function(){return l}}),r(47043),r(96899);let i=r(36390),n=r(63515),s=r(65157);function a(e,t,r){let i,n=t.get(e);if(n)return"future"in n?n.future:Promise.resolve(n);let s=new Promise(e=>{i=e});return t.set(e,n={resolve:i,future:s}),r?r().then(e=>(i(e),e)).catch(r=>{throw t.delete(e),r}):s}let o=Symbol("ASSET_LOAD_ERROR");function l(e){return Object.defineProperty(e,o,{})}function u(e){return e&&o in e}let h=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),c=()=>(0,s.getDeploymentIdQueryOrEmptyString)();function d(e,t,r){return new Promise((i,s)=>{let a=!1;e.then(e=>{a=!0,i(e)}).catch(s),(0,n.requestIdleCallback)(()=>setTimeout(()=>{a||s(r)},t))})}function p(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):d(new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}}),3800,l(Error("Failed to load client build manifest")))}function f(e,t){return p().then(r=>{if(!(t in r))throw l(Error("Failed to lookup route: "+t));let n=r[t].map(t=>e+"/_next/"+encodeURI(t));return{scripts:n.filter(e=>e.endsWith(".js")).map(e=>(0,i.__unsafeCreateTrustedScriptURL)(e)+c()),css:n.filter(e=>e.endsWith(".css")).map(e=>e+c())}})}function g(e){let t=new Map,r=new Map,i=new Map,s=new Map;function o(e){{var t;let i=r.get(e.toString());return i||(document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(r.set(e.toString(),i=new Promise((r,i)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>i(l(Error("Failed to load script: "+e))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),i))}}function u(e){let t=i.get(e);return t||i.set(e,t=fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw Error("Failed to load stylesheet: "+e);return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw l(e)})),t}return{whenEntrypoint:e=>a(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let i=t.get(e);i&&"resolve"in i?r&&(t.set(e,r),i.resolve(r)):(r?t.set(e,r):t.delete(e),s.delete(e))})},loadRoute(r,i){return a(r,s,()=>{let n;return d(f(e,r).then(e=>{let{scripts:i,css:n}=e;return Promise.all([t.has(r)?[]:Promise.all(i.map(o)),Promise.all(n.map(u))])}).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,l(Error("Route did not complete loading: "+r))).then(e=>{let{entrypoint:t,styles:r}=e,i=Object.assign({styles:r},t);return"error"in t?t:i}).catch(e=>{if(i)throw e;return{error:e}}).finally(()=>null==n?void 0:n())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():f(e,t).then(e=>Promise.all(h?e.scripts.map(e=>{var t,r,i;return t=e.toString(),r="script",new Promise((e,n)=>{if(document.querySelector('\n      link[rel="prefetch"][href^="'+t+'"],\n      link[rel="preload"][href^="'+t+'"],\n      script[src^="'+t+'"]'))return e();i=document.createElement("link"),r&&(i.as=r),i.rel="prefetch",i.crossOrigin=void 0,i.onload=e,i.onerror=()=>n(l(Error("Failed to prefetch: "+t))),i.href=t,document.head.appendChild(i)})}):[])).then(()=>{(0,n.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},27325:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Router:function(){return s.default},createRouter:function(){return g},default:function(){return p},makePublicRouterInstance:function(){return m},useRouter:function(){return f},withRouter:function(){return l.default}});let i=r(47043),n=i._(r(2265)),s=i._(r(28384)),a=r(25523),o=i._(r(2467)),l=i._(r(36146)),u={router:null,readyCallbacks:[],ready(e){if(this.router)return e();"undefined"!=typeof window&&this.readyCallbacks.push(e)}},h=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],c=["push","replace","reload","back","prefetch","beforePopState"];function d(){if(!u.router)throw Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n');return u.router}Object.defineProperty(u,"events",{get:()=>s.default.events}),h.forEach(e=>{Object.defineProperty(u,e,{get:()=>d()[e]})}),c.forEach(e=>{u[e]=function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return d()[e](...r)}}),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach(e=>{u.ready(()=>{s.default.events.on(e,function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];let n="on"+e.charAt(0).toUpperCase()+e.substring(1);if(u[n])try{u[n](...r)}catch(e){console.error("Error when running the Router event: "+n),console.error((0,o.default)(e)?e.message+"\n"+e.stack:e+"")}})})});let p=u;function f(){let e=n.default.useContext(a.RouterContext);if(!e)throw Error("NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted");return e}function g(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return u.router=new s.default(...t),u.readyCallbacks.forEach(e=>e()),u.readyCallbacks=[],u.router}function m(e){let t={};for(let r of h){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=s.default.events,c.forEach(r=>{t[r]=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return e[r](...i)}}),t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36390:function(e,t){"use strict";let r;function i(e){var t;return(null==(t=function(){if(void 0===r&&"undefined"!=typeof window){var e;r=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return r}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return i}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36146:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}}),r(47043);let i=r(57437);r(2265);let n=r(27325);function s(e){function t(t){return(0,i.jsx)(e,{router:(0,n.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},61875:function(e,t){"use strict";function r(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return r}})},2467:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return n},getProperError:function(){return s}});let i=r(99832);function n(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function s(e){return n(e)?e:Error((0,i.isPlainObject)(e)?JSON.stringify(e):e+"")}},74574:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return r}});class r{static from(e,t){void 0===t&&(t=1e-4);let i=new r(e.length,t);for(let t of e)i.add(t);return i}export(){return{numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray}}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){this.getHashValues(e).forEach(e=>{this.bitArray[e]=1})}contains(e){return this.getHashValues(e).every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let i=function(e){let t=0;for(let r=0;r<e.length;r++)t=Math.imul(t^e.charCodeAt(r),1540483477),t^=t>>>13,t=Math.imul(t,1540483477);return t>>>0}(""+e+r)%this.numBits;t.push(i)}return t}constructor(e,t=1e-4){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},43579:function(e,t){"use strict";function r(e,t){let r;let i=e.split("/");return(t||[]).some(t=>!!i[1]&&i[1].toLowerCase()===t.toLowerCase()&&(r=t,i.splice(1,1),e=i.join("/")||"/",!0)),{pathname:e,detectedLocale:r}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}})},99832:function(e,t){"use strict";function r(e){return Object.prototype.toString.call(e)}function i(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return i}})},29081:function(e,t){"use strict";function r(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];(e[t]||[]).slice().map(e=>{e(...i)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},8645:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return s}});let i=r(86279),n=r(27524);function s(e){let t=(0,n.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,i.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},27524:function(e,t){"use strict";function r(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return r}})},28384:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{createKey:function(){return B},default:function(){return W},matchesMiddleware:function(){return T}});let i=r(47043),n=r(53099),s=r(26674),a=r(6680),o=r(88003),l=n._(r(2467)),u=r(8645),h=r(43579),c=i._(r(29081)),d=r(3987),p=r(38104),f=r(85907);r(72431);let g=r(4199),m=r(9964),y=r(57497);r(11235);
1let v=r(63381),b=r(55449),w=r(71154),P=r(35076),S=r(1634),x=r(11283),O=r(25246),_=r(61875),C=r(93331),k=r(13966),R=r(75902),L=r(53552),E=r(86146),j=r(17053),A=r(37205),N=r(7092);function I(){return Object.assign(Error("Route Cancelled"),{cancelled:!0})}async function T(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,v.parsePath)(e.asPath),i=(0,x.hasBasePath)(r)?(0,P.removeBasePath)(r):r,n=(0,S.addBasePath)((0,b.addLocale)(i,e.locale));return t.some(e=>new RegExp(e.regexp).test(n))}function F(e){let t=(0,d.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function M(e,t,r){let[i,n]=(0,O.resolveHref)(e,t,!0),s=(0,d.getLocationOrigin)(),a=i.startsWith(s),o=n&&n.startsWith(s);i=F(i),n=n?F(n):n;let l=a?i:(0,S.addBasePath)(i),u=r?F((0,O.resolveHref)(e,r)):n||i;return{url:l,as:o?u:(0,S.addBasePath)(u)}}function D(e,t){let r=(0,s.removeTrailingSlash)((0,u.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,p.isDynamicRoute)(t)&&(0,m.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,s.removeTrailingSlash)(e))}async function U(e){if(!await T(e)||!e.fetchData)return null;let t=await e.fetchData(),r=await function(e,t,r){let i={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!0},n=t.headers.get("x-nextjs-rewrite"),o=n||t.headers.get("x-nextjs-matched-path"),l=t.headers.get("x-matched-path");if(!l||o||l.includes("__next_data_catchall")||l.includes("/_error")||l.includes("/404")||(o=l),o){if(o.startsWith("/")){let t=(0,f.parseRelativeUrl)(o),l=(0,C.getNextPathnameInfo)(t.pathname,{nextConfig:i,parseData:!0}),u=(0,s.removeTrailingSlash)(l.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,a.getClientBuildManifest)()]).then(s=>{let[a,{__rewrites:o}]=s,c=(0,b.addLocale)(l.pathname,l.locale);if((0,p.isDynamicRoute)(c)||!n&&a.includes((0,h.normalizeLocalePath)((0,P.removeBasePath)(c),r.router.locales).pathname)){let r=(0,C.getNextPathnameInfo)((0,f.parseRelativeUrl)(e).pathname,{nextConfig:i,parseData:!0});c=(0,S.addBasePath)(r.pathname),t.pathname=c}if(!a.includes(u)){let e=D(u,a);e!==u&&(u=e)}let d=a.includes(u)?u:D((0,h.normalizeLocalePath)((0,P.removeBasePath)(t.pathname),r.router.locales).pathname,a);if((0,p.isDynamicRoute)(d)){let e=(0,g.getRouteMatcher)((0,m.getRouteRegex)(d))(c);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:d}})}let t=(0,v.parsePath)(e);return Promise.resolve({type:"redirect-external",destination:""+(0,k.formatNextPathnameInfo)({...(0,C.getNextPathnameInfo)(t.pathname,{nextConfig:i,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""})+t.query+t.hash})}let u=t.headers.get("x-nextjs-redirect");if(u){if(u.startsWith("/")){let e=(0,v.parsePath)(u),t=(0,k.formatNextPathnameInfo)({...(0,C.getNextPathnameInfo)(e.pathname,{nextConfig:i,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:u})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}let q=Symbol("SSG_DATA_NOT_FOUND");function $(e){try{return JSON.parse(e)}catch(e){return null}}function H(e){let{dataHref:t,inflightCache:r,isPrefetch:i,hasMiddleware:n,isServerRender:s,parseJSON:o,persistCache:l,isBackground:u,unstable_skipClientCache:h}=e,{href:c}=new URL(t,window.location.href),d=e=>{var u;return(function e(t,r,i){return fetch(t,{credentials:"same-origin",method:i.method||"GET",headers:Object.assign({},i.headers,{"x-nextjs-data":"1"})}).then(n=>!n.ok&&r>1&&n.status>=500?e(t,r-1,i):n)})(t,s?3:1,{headers:Object.assign({},i?{purpose:"prefetch"}:{},i&&n?{"x-middleware-prefetch":"1"}:{}),method:null!=(u=null==e?void 0:e.method)?u:"GET"}).then(r=>r.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:t,response:r,text:"",json:{},cacheKey:c}:r.text().then(e=>{if(!r.ok){if(n&&[301,302,307,308].includes(r.status))return{dataHref:t,response:r,text:e,json:{},cacheKey:c};if(404===r.status){var i;if(null==(i=$(e))?void 0:i.notFound)return{dataHref:t,json:{notFound:q},response:r,text:e,cacheKey:c}}let o=Error("Failed to load static props");throw s||(0,a.markAssetError)(o),o}return{dataHref:t,json:o?$(e):null,response:r,text:e,cacheKey:c}})).then(e=>
1(l&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete r[c],e)).catch(e=>{throw h||delete r[c],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,a.markAssetError)(e),e})};return h&&l?d({}).then(e=>("no-cache"!==e.response.headers.get("x-middleware-cache")&&(r[c]=Promise.resolve(e)),e)):void 0!==r[c]?r[c]:r[c]=d(u?{method:"HEAD"}:{})}function B(){return Math.random().toString(36).slice(2,10)}function V(e){let{url:t,router:r}=e;if(t===(0,S.addBasePath)((0,b.addLocale)(r.asPath,r.locale)))throw Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href);window.location.href=t}let K=e=>{let{route:t,router:r}=e,i=!1,n=r.clc=()=>{i=!0};return()=>{if(i){let e=Error('Abort fetching component for route: "'+t+'"');throw e.cancelled=!0,e}n===r.clc&&(r.clc=null)}};class W{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=M(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=M(this,e,t),this.change("replaceState",e,t,r)}async _bfl(e,t,r,i){{let l=!1,u=!1;for(let h of[e,t])if(h){let t=(0,s.removeTrailingSlash)(new URL(h,"http://n").pathname),c=(0,S.addBasePath)((0,b.addLocale)(t,r||this.locale));if(t!==(0,s.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var n,a,o;for(let e of(l=l||!!(null==(n=this._bfl_s)?void 0:n.contains(t))||!!(null==(a=this._bfl_s)?void 0:a.contains(c)),[t,c])){let t=e.split("/");for(let e=0;!u&&e<t.length+1;e++){let r=t.slice(0,e).join("/");if(r&&(null==(o=this._bfl_d)?void 0:o.contains(r))){u=!0;break}}}if(l||u){if(i)return!0;return V({url:(0,S.addBasePath)((0,b.addLocale)(e,r||this.locale,this.defaultLocale)),router:this}),new Promise(()=>{})}}}}return!1}async change(e,t,r,i,n){var u,h,c,O,_,C,k,E,N;let F,U;if(!(0,L.isLocalURL)(t))return V({url:t,router:this}),!1;let $=1===i._h;$||i.shallow||await this._bfl(r,void 0,i.locale);let H=$||i._shouldResolveHref||(0,v.parsePath)(t).pathname===(0,v.parsePath)(r).pathname,B={...this.state},K=!0!==this.isReady;this.isReady=!0;let z=this.isSsr;if($||(this.isSsr=!1),$&&this.clc)return!1;let Q=B.locale;d.ST&&performance.mark("routeChange");let{shallow:J=!1,scroll:G=!0}=i,X={shallow:J};this._inFlightRoute&&this.clc&&(z||W.events.emit("routeChangeError",I(),this._inFlightRoute,X),this.clc(),this.clc=null),r=(0,S.addBasePath)((0,b.addLocale)((0,x.hasBasePath)(r)?(0,P.removeBasePath)(r):r,i.locale,this.defaultLocale));let Y=(0,w.removeLocale)((0,x.hasBasePath)(r)?(0,P.removeBasePath)(r):r,B.locale);this._inFlightRoute=r;let Z=Q!==B.locale;if(!$&&this.onlyAHashChange(Y)&&!Z){B.asPath=Y,W.events.emit("hashChangeStart",r,X),this.changeState(e,t,r,{...i,scroll:!1}),G&&this.scrollToHash(Y);try{await this.set(B,this.components[B.route],null)}catch(e){throw(0,l.default)(e)&&e.cancelled&&W.events.emit("routeChangeError",e,Y,X),e}return W.events.emit("hashChangeComplete",r,X),!0}let ee=(0,f.parseRelativeUrl)(t),{pathname:et,query:er}=ee;try{[F,{__rewrites:U}]=await Promise.all([this.pageLoader.getPageList(),(0,a.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return V({url:r,router:this}),!1}this.urlIsNew(Y)||Z||(e="replaceState");let ei=r;et=et?(0,s.removeTrailingSlash)((0,P.removeBasePath)(et)):et;let en=(0,s.removeTrailingSlash)(et),es=r.startsWith("/")&&(0,f.parseRelativeUrl)(r).pathname;if(null==(u=this.components[et])?void 0:u.__appRouter)return V({url:r,router:this}),new Promise(()=>{});let ea=!!(es&&en!==es&&(!(0,p.isDynamicRoute)(en)||!(0,g.getRouteMatcher)((0,m.getRouteRegex)(en))(es))),eo=!i.shallow&&await T({asPath:r,locale:B.locale,router:this});if($&&eo&&(H=!1),H&&"/_error"!==et&&(i._shouldResolveHref=!0,ee.pathname=D(et,F),ee.pathname===et||(et=ee.pathname,ee.pathname=(0,S.addBasePath)(et),eo||(t=(0,y.formatWithValidation)(ee)))),!(0,L.isLocalURL)(r))return V({url:r,router:this}),!1;ei=(0,w.removeLocale)((0,P.removeBasePath)(ei),B.locale),en=(0,s.removeTrailingSlash)(et);let el=!1;if((0,p.isDynamicRoute)(en)){let e=(0,f.parseRelativeUrl)(ei),i=e.pathname,n=(0,m.getRouteRegex)(en);el=(0,g.getRouteMatcher)(n)(i);let s=en===i,a=s?(0,A.interpolateAs)(en,i,er):{};if(el&&(!s||a.result))s?r=(0,y.formatWithValidation)(Object.assign({},e,{pathname:a.result,query:(0,j.omit)(er,a.params)})):Object.assign(er,el);else{let e=Object.keys(n.groups).filter(e=>!er[e]&&!n.groups[e].optional);if(e.length>0&&!eo)throw Error((s?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+i+") is incompatible with the `href` value ("+en+"). ")+"Read more: https://nextjs.org/docs/messages/"+(s?"href-interpolation-failed":"incompatible-href-as"))}}$||W.events.emit("routeChangeStart",r,X);let eu="/404"===this.pathname||"/_error"===this.pathname;try{let s=await this.getRouteInfo({route:en,pathname:et,query:er,as:r,resolvedAs:ei,routeProps:X,locale:B.locale,isPreview:B.isPreview,hasMiddleware:eo,unstable_skipClientCache:i.unstable_skipClientCache,isQueryUpdating:$&&!this.isFallback,isMiddlewareRewrite:ea});if($||i.shallow||await this._bfl(r,"resolvedAs"in s?s.resolvedAs:void 0,B.locale),"route"in s&&eo){en=et=s.route||en,X.shallow||(er=Object.assign({},s.query||{},er));let e=(0,x.hasBasePath)(ee.pathname)?(0,P.removeBasePath)(ee.pathname):ee.pathname;
1if(el&&et!==e&&Object.keys(el).forEach(e=>{el&&er[e]===el[e]&&delete er[e]}),(0,p.isDynamicRoute)(et)){let e=!X.shallow&&s.resolvedAs?s.resolvedAs:(0,S.addBasePath)((0,b.addLocale)(new URL(r,location.href).pathname,B.locale),!0);(0,x.hasBasePath)(e)&&(e=(0,P.removeBasePath)(e));let t=(0,m.getRouteRegex)(et),i=(0,g.getRouteMatcher)(t)(new URL(e,location.href).pathname);i&&Object.assign(er,i)}}if("type"in s){if("redirect-internal"===s.type)return this.change(e,s.newUrl,s.newAs,i);return V({url:s.destination,router:this}),new Promise(()=>{})}let a=s.Component;if(a&&a.unstable_scriptLoader&&[].concat(a.unstable_scriptLoader()).forEach(e=>{(0,o.handleClientScriptLoad)(e.props)}),(s.__N_SSG||s.__N_SSP)&&s.props){if(s.props.pageProps&&s.props.pageProps.__N_REDIRECT){i.locale=!1;let t=s.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==s.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,f.parseRelativeUrl)(t);r.pathname=D(r.pathname,F);let{url:n,as:s}=M(this,t,t);return this.change(e,n,s,i)}return V({url:t,router:this}),new Promise(()=>{})}if(B.isPreview=!!s.props.__N_PREVIEW,s.props.notFound===q){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(s=await this.getRouteInfo({route:e,pathname:e,query:er,as:r,resolvedAs:ei,routeProps:{shallow:!1},locale:B.locale,isPreview:B.isPreview,isNotFound:!0}),"type"in s)throw Error("Unexpected middleware effect on /404")}}$&&"/_error"===this.pathname&&(null==(c=self.__NEXT_DATA__.props)?void 0:null==(h=c.pageProps)?void 0:h.statusCode)===500&&(null==(O=s.props)?void 0:O.pageProps)&&(s.props.pageProps.statusCode=500);let u=i.shallow&&B.route===(null!=(_=s.route)?_:en),d=null!=(C=i.scroll)?C:!$&&!u,y=null!=n?n:d?{x:0,y:0}:null,v={...B,route:en,pathname:et,query:er,asPath:Y,isFallback:!1};if($&&eu){if(s=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:er,as:r,resolvedAs:ei,routeProps:{shallow:!1},locale:B.locale,isPreview:B.isPreview,isQueryUpdating:$&&!this.isFallback}),"type"in s)throw Error("Unexpected middleware effect on "+this.pathname);"/_error"===this.pathname&&(null==(E=self.__NEXT_DATA__.props)?void 0:null==(k=E.pageProps)?void 0:k.statusCode)===500&&(null==(N=s.props)?void 0:N.pageProps)&&(s.props.pageProps.statusCode=500);try{await this.set(v,s,y)}catch(e){throw(0,l.default)(e)&&e.cancelled&&W.events.emit("routeChangeError",e,Y,X),e}return!0}if(W.events.emit("beforeHistoryChange",r,X),this.changeState(e,t,r,i),!($&&!y&&!K&&!Z&&(0,R.compareRouterStates)(v,this.state))){try{await this.set(v,s,y)}catch(e){if(e.cancelled)s.error=s.error||e;else throw e}if(s.error)throw $||W.events.emit("routeChangeError",s.error,Y,X),s.error;$||W.events.emit("routeChangeComplete",r,X),d&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,l.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,i){void 0===i&&(i={}),("pushState"!==e||(0,d.getURL)()!==r)&&(this._shallow=i.shallow,window.history[e]({url:t,as:r,options:i,__N:!0,key:this._key="pushState"!==e?this._key:B()},"",r))}async handleRouteInfoError(e,t,r,i,n,s){if(console.error(e),e.cancelled)throw e;if((0,a.isAssetError)(e)||s)throw W.events.emit("routeChangeError",e,i,n),V({url:i,router:this}),I();try{let i;let{page:n,styleSheets:s}=await this.fetchComponent("/_error"),a={props:i,Component:n,styleSheets:s,err:e,error:e};if(!a.props)try{a.props=await this.getInitialProps(n,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),a.props={}}return a}catch(e){return this.handleRouteInfoError((0,l.default)(e)?e:Error(e+""),t,r,i,n,!0)}}async getRouteInfo(e){let{route:t,pathname:r,query:i,as:n,resolvedAs:a,routeProps:o,locale:u,hasMiddleware:c,isPreview:d,unstable_skipClientCache:p,isQueryUpdating:f,isMiddlewareRewrite:g,isNotFound:m}=e,v=t;try{var b,w,S,x;let e=this.components[v];if(o.shallow&&e&&this.route===v)return e;let t=K({route:v,router:this});c&&(e=void 0);let l=!e||"initial"in e?void 0:e,O={dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:r,query:i}),skipInterpolation:!0,asPath:m?"/404":a,locale:u}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:f?this.sbc:this.sdc,persist
1Cache:!d,isPrefetch:!1,unstable_skipClientCache:p,isBackground:f},C=f&&!g?null:await U({fetchData:()=>H(O),asPath:m?"/404":a,locale:u,router:this}).catch(e=>{if(f)return null;throw e});if(C&&("/_error"===r||"/404"===r)&&(C.effect=void 0),f&&(C?C.json=self.__NEXT_DATA__.props:C={json:self.__NEXT_DATA__.props}),t(),(null==C?void 0:null==(b=C.effect)?void 0:b.type)==="redirect-internal"||(null==C?void 0:null==(w=C.effect)?void 0:w.type)==="redirect-external")return C.effect;if((null==C?void 0:null==(S=C.effect)?void 0:S.type)==="rewrite"){let t=(0,s.removeTrailingSlash)(C.effect.resolvedHref),n=await this.pageLoader.getPageList();if((!f||n.includes(t))&&(v=t,r=C.effect.resolvedHref,i={...i,...C.effect.parsedAs.query},a=(0,P.removeBasePath)((0,h.normalizeLocalePath)(C.effect.parsedAs.pathname,this.locales).pathname),e=this.components[v],o.shallow&&e&&this.route===v&&!c))return{...e,route:v}}if((0,_.isAPIRoute)(v))return V({url:n,router:this}),new Promise(()=>{});let k=l||await this.fetchComponent(v).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),R=null==C?void 0:null==(x=C.response)?void 0:x.headers.get("x-middleware-skip"),L=k.__N_SSG||k.__N_SSP;R&&(null==C?void 0:C.dataHref)&&delete this.sdc[C.dataHref];let{props:E,cacheKey:j}=await this._getData(async()=>{if(L){if((null==C?void 0:C.json)&&!R)return{cacheKey:C.cacheKey,props:C.json};let e=(null==C?void 0:C.dataHref)?C.dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:r,query:i}),asPath:a,locale:u}),t=await H({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:R?{}:this.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:p});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(k.Component,{pathname:r,query:i,asPath:n,locale:u,locales:this.locales,defaultLocale:this.defaultLocale})}});return k.__N_SSP&&O.dataHref&&j&&delete this.sdc[j],this.isPreview||!k.__N_SSG||f||H(Object.assign({},O,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),E.pageProps=Object.assign({},E.pageProps),k.props=E,k.route=v,k.query=i,k.resolvedAs=a,this.components[v]=k,k}catch(e){return this.handleRouteInfoError((0,l.getProperError)(e),r,i,n,o)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#",2),[i,n]=e.split("#",2);return!!n&&t===i&&r===n||t===i&&r!==n}scrollToHash(e){let[,t=""]=e.split("#",2);(0,N.handleSmoothScroll)(()=>{if(""===t||"top"===t){window.scrollTo(0,0);return}let e=decodeURIComponent(t),r=document.getElementById(e);if(r){r.scrollIntoView();return}let i=document.getElementsByName(e)[0];i&&i.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(e)})}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,r){if(void 0===t&&(t=e),void 0===r&&(r={}),"undefined"!=typeof window&&(0,E.isBot)(window.navigator.userAgent))return;let i=(0,f.parseRelativeUrl)(e),n=i.pathname,{pathname:a,query:o}=i,l=a,u=await this.pageLoader.getPageList(),h=t,c=void 0!==r.locale?r.locale||void 0:this.locale,d=await T({asPath:t,locale:c,router:this});i.pathname=D(i.pathname,u),(0,p.isDynamicRoute)(i.pathname)&&(a=i.pathname,i.pathname=a,Object.assign(o,(0,g.getRouteMatcher)((0,m.getRouteRegex)(i.pathname))((0,v.parsePath)(t).pathname)||{}),d||(e=(0,y.formatWithValidation)(i)));let b=await U({fetchData:()=>H({dataHref:this.pageLoader.getDataHref({href:(0,y.formatWithValidation)({pathname:l,query:o}),skipInterpolation:!0,asPath:h,locale:c}),hasMiddleware:!0,isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:c,router:this});if((null==b?void 0:b.effect.type)==="rewrite"&&(i.pathname=b.effect.resolvedHref,a=b.effect.resolvedHref,o={...o,...b.effect.parsedAs.query},h=b.effect.parsedAs.pathname,e=(0,y.formatWithValidation)(i)),(null==b?void 0:b.effect.type)==="redirect-external")return;let w=(0,s.removeTrailingSlash)(a);await this._bfl(t,h,r.locale,!0)&&(this.components[n]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(w).then(t=>!!t&&H({dataHref:(null==b?void 0:b.json)?null==b?void 0:b.dataHref:this.pageLoader.getDataHref({href:e,asPath:h,locale:c}
1),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](w)])}async fetchComponent(e){let t=K({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e})}_getFlightData(e){return H({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then(e=>{let{text:t}=e;return{data:t}})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],i=this._wrapApp(r);return t.AppTree=i,(0,d.loadGetInitialProps)(r,{AppTree:i,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,i,{initialProps:n,pageLoader:a,App:o,wrapApp:l,Component:u,err:h,subscription:c,isFallback:g,locale:m,locales:v,defaultLocale:b,domainLocales:w,isPreview:P}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=B(),this.onPopState=e=>{let t;let{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let i=e.state;if(!i){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,y.formatWithValidation)({pathname:(0,S.addBasePath)(e),query:t}),(0,d.getURL)());return}if(i.__NA){window.location.reload();return}if(!i.__N||r&&this.locale===i.options.locale&&i.as===this.asPath)return;let{url:n,as:s,options:a,key:o}=i;this._key=o;let{pathname:l}=(0,f.parseRelativeUrl)(n);(!this.isSsr||s!==(0,S.addBasePath)(this.asPath)||l!==(0,S.addBasePath)(this.pathname))&&(!this._bps||this._bps(i))&&this.change("replaceState",n,s,Object.assign({},a,{shallow:a.shallow&&this._shallow,locale:a.locale||this.defaultLocale,_h:0}),t)};let x=(0,s.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[x]={Component:u,initial:!0,props:n,err:h,__N_SSG:n&&n.__N_SSG,__N_SSP:n&&n.__N_SSP}),this.components["/_app"]={Component:o,styleSheets:[]};{let{BloomFilter:e}=r(74574),t={numItems:13,errorRate:1e-4,numBits:250,numHashes:14,bitArray:[0,1,0,1,0,0,0,1,1,0,0,1,1,0,0,1,0,1,1,1,1,0,0,1,0,1,1,1,0,1,1,0,1,0,0,1,1,1,0,1,1,1,1,1,0,0,0,0,1,1,1,0,1,1,1,0,0,1,1,1,1,1,0,1,1,0,1,1,0,1,1,0,1,0,1,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,0,0,1,0,0,0,0,0,1,0,0,1,0,0,1,0,1,1,0,1,1,0,0,1,0,0,1,0,1,1,0,0,1,0,1,0,1,0,1,0,0,0,0,0,1,0,1,1,1,0,1,1,0,0,1,0,0,0,1,0,1,0,0,1,0,1,1,1,1,1,1,0,0,1,0,0,0,0,0,0,1,0,1,0,1,1,0,1,0,1,0,0,1,1,0,1,1,1,0,1,1,0,0,0,1,1,0,0,0,0,0,1,1,1,0,1,0,1,0,1,1,0,1,0,1,1,0,1,1,1,1,0,1,0,1,0,0,1,1,1,1,1,1,1,0,1,1,0,0,1,1,1,1,1,1,0,0]},i={numItems:2,errorRate:1e-4,numBits:39,numHashes:14,bitArray:[0,0,1,0,1,1,1,1,0,0,1,0,1,0,0,1,1,0,0,1,0,0,0,1,0,1,0,0,1,1,1,1,0,1,1,0,1,1,1]};(null==t?void 0:t.numHashes)&&(this._bfl_s=new e(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==i?void 0:i.numHashes)&&(this._bfl_d=new e(i.numItems,i.errorRate),this._bfl_d.import(i))}this.events=W.events,this.pageLoader=a;let O=(0,p.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=c,this.clc=null,this._wrapApp=l,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!O&&!self.location.search),this.state={route:x,pathname:e,query:t,asPath:O?e:i,isPreview:!!P,locale:void 0,isFallback:g},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),"undefined"!=typeof window){if(!i.startsWith("//")){let r={locale:m},n=(0,d.getURL)();this._initialMatchesMiddlewarePromise=T({router:this,locale:m,asPath:n}).then(s=>(r._shouldResolveHref=i!==e,this.changeState("replaceState",s?n:(0,y.formatWithValidation)({pathname:(0,S.addBasePath)(e),query:t}),n,r),s))}window.addEventListener("popstate",this.onPopState)}}}W.events=(0,c.default)()},87571:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return s}});let i=r(68498),n=r(10580);function s(e,t,r,s){if(!t||t===r)return e;let a=e.toLowerCase();return!s&&((0,n.pathHasPrefix)(a,"/api")||(0,n.pathHasPrefix)(a,"/"+t.toLowerCase()))?e:(0,i.addPathPrefix)(e,"/"+t)}},99235:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return n}});let i=r(63381);function n(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:s}=(0,i.parsePath)(e);return""+r+t+n+s}},75902:function(e,t){"use strict";function r(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let i=r.length;i--;){let n=r[i];if("query"===n){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let i=r.length;i--;){let n=r[i];if(!t.query.hasOwnProperty(n)||e.query[n]!==t.query[n])return!1}}else if(!t.hasOwnProperty(n)||e[n]!==t[n])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return r}})},13966:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return o}});let i=r(26674),n=r(68498),s=r(99235),a=r(87571);function o(e){let t=(0,a.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,i.removeTrailingSlash)(t)),e.buildId&&(t=(0,s.addPathSuffix)((0,n.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,n.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,s.addPathSuffix)(t,"/"):(0,i.removeTrailingSlash)(t)}},96899:function(e,t){"use strict";function r(e,t){return void 0===t&&(t=""),("/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:e)+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},93331:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return a}});let i=r(43579),n=r(2133),s=r(10580);function a(e,t){var r,a;let{basePath:o,i18n:l,trailingSlash:u}=null!=(r=t.nextConfig)?r:{},h={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):u};o&&(0,s.pathHasPrefix)(h.pathname,o)&&(h.pathname=(0,n.removePathPrefix)(h.pathname,o),h.basePath=o);let c=h.pathname;if(h.pathname.startsWith("/_next/data/")&&h.pathname.endsWith(".json")){let e=h.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),r=e[0];h.buildId=r,c="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(h.pathname=c)}if(l){let e=t.i18nProvider?t.i18nProvider.analyze(h.pathname):(0,i.normalizeLocalePath)(h.pathname,l.locales);h.locale=e.detectedLocale,h.pathname=null!=(a=e.pathname)?a:h.pathname,!e.detectedLocale&&h.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(c):(0,i.normalizeLocalePath)(c,l.locales)).detectedLocale&&(h.locale=e.detectedLocale)}return h}},85907:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return s}});let i=r(3987),n=r(48637);function s(e,t){let r=new URL("undefined"==typeof window?"http://n":(0,i.getLocationOrigin)()),s=t?new URL(t,r):e.startsWith(".")?new URL("undefined"==typeof window?"http://n":window.location.href):r,{pathname:a,searchParams:o,search:l,hash:u,href:h,origin:c}=new URL(e,s);if(c!==r.origin)throw Error("invariant: invalid relative URL, router received "+e);return{pathname:a,query:(0,n.searchParamsToUrlQuery)(o),search:l,hash:u,href:h.slice(r.origin.length)}}},2133:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return n}});let i=r(10580);function n(e,t){if(!(0,i.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},71318:function(e,t,r){var i,n;void 0!==(n="function"==typeof(i=function(){var e,t,r,i={};i.version="0.2.0";var n=i.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function s(e,t,r){return e<t?t:e>r?r:e}i.configure=function(e){var t,r;for(t in e)void 0!==(r=e[t])&&e.hasOwnProperty(t)&&(n[t]=r);return this},i.status=null,i.set=function(e){var t=i.isStarted();e=s(e,n.minimum,1),i.status=1===e?null:e;var r=i.render(!t),l=r.querySelector(n.barSelector),u=n.speed,h=n.easing;return r.offsetWidth,a(function(t){var s,a;""===n.positionUsing&&(n.positionUsing=i.getPositioningCSS()),o(l,(s=e,(a="translate3d"===n.positionUsing?{transform:"translate3d("+(-1+s)*100+"%,0,0)"}:"translate"===n.positionUsing?{transform:"translate("+(-1+s)*100+"%,0)"}:{"margin-left":(-1+s)*100+"%"}).transition="all "+u+"ms "+h,a)),1===e?(o(r,{transition:"none",opacity:1}),r.offsetWidth,setTimeout(function(){o(r,{transition:"all "+u+"ms linear",opacity:0}
1),setTimeout(function(){i.remove(),t()},u)},u)):setTimeout(t,u)}),this},i.isStarted=function(){return"number"==typeof i.status},i.start=function(){i.status||i.set(0);var e=function(){setTimeout(function(){i.status&&(i.trickle(),e())},n.trickleSpeed)};return n.trickle&&e(),this},i.done=function(e){return e||i.status?i.inc(.3+.5*Math.random()).set(1):this},i.inc=function(e){var t=i.status;return t?("number"!=typeof e&&(e=(1-t)*s(Math.random()*t,.1,.95)),t=s(t+e,0,.994),i.set(t)):i.start()},i.trickle=function(){return i.inc(Math.random()*n.trickleRate)},e=0,t=0,i.promise=function(r){return r&&"resolved"!==r.state()&&(0===t&&i.start(),e++,t++,r.always(function(){0==--t?(e=0,i.done()):i.set((e-t)/e)})),this},i.render=function(e){if(i.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=n.template;var r,s=t.querySelector(n.barSelector),a=e?"-100":(-1+(i.status||0))*100,l=document.querySelector(n.parent);return o(s,{transition:"all 0 linear",transform:"translate3d("+a+"%,0,0)"}),!n.showSpinner&&(r=t.querySelector(n.spinnerSelector))&&d(r),l!=document.body&&u(l,"nprogress-custom-parent"),l.appendChild(t),t},i.remove=function(){h(document.documentElement,"nprogress-busy"),h(document.querySelector(n.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&d(e)},i.isRendered=function(){return!!document.getElementById("nprogress")},i.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective" in e?"translate3d":t+"Transform" in e?"translate":"margin"};var a=(r=[],function(e){r.push(e),1==r.length&&function e(){var t=r.shift();t&&t(e)}()}),o=function(){var e=["Webkit","O","Moz","ms"],t={};function r(r,i,n){var s;i=t[s=(s=i).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[s]=function(t){var r=document.body.style;if(t in r)return t;for(var i,n=e.length,s=t.charAt(0).toUpperCase()+t.slice(1);n--;)if((i=e[n]+s)in r)return i;return t}(s)),r.style[i]=n}return function(e,t){var i,n,s=arguments;if(2==s.length)for(i in t)void 0!==(n=t[i])&&t.hasOwnProperty(i)&&r(e,i,n);else r(e,s[1],s[2])}}();function l(e,t){return("string"==typeof e?e:c(e)).indexOf(" "+t+" ")>=0}function u(e,t){var r=c(e),i=r+t;l(r,t)||(e.className=i.substring(1))}function h(e,t){var r,i=c(e);l(e,t)&&(r=i.replace(" "+t+" "," "),e.className=r.substring(1,r.length-1))}function c(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return i})?i.call(t,r,t,e):i)&&(e.exports=n)},7799:function(e){e.exports={style:{fontFamily:"'__Inter_b9c7ce', '__Inter_Fallback_b9c7ce'",fontStyle:"normal"},className:"__className_b9c7ce"}},25770:function(e,t,r){"use strict";r.d(t,{S:function(){return A}});var i="undefined"==typeof window||"Deno"in globalThis;function n(){}function s(e,t){let{type:r="all",exact:i,fetchStatus:n,predicate:s,queryKey:a,stale:l}=e;if(a){if(i){if(t.queryHash!==o(a,t.options))return!1}else if(!u(t.queryKey,a))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof l||t.isStale()===l)&&(!n||n===t.state.fetchStatus)&&(!s||!!s(t))}function a(e,t){let{exact:r,status:i,predicate:n,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(l(t.options.mutationKey)!==l(s))return!1}else if(!u(t.options.mutationKey,s))return!1}return(!i||t.state.status===i)&&(!n||!!n(t))}function o(e,t){return(t?.queryKeyHashFn||l)(e)}function l(e){return JSON.stringify(e,(e,t)=>c(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function u(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(r=>!u(e[r],t[r]))}function h(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function c(e){if(!d(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!(d(r)&&r.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function d(e){return"[object Object]"===Object.prototype.toString.call(e)}function p(e,t,r=0){let i=[...e,t];return r&&i.length>r?i.slice(1):i}function f(e,t,r=0){let i=[t,...e];return r&&i.length>r?i.slice(0,-1):i}var g=Symbol(),m=function(){let e=[],t=0,r=e=>{e()},i=e=>{e()},n=e=>setTimeout(e,0),s=i=>{t?e.push(i):n(()=>{r(i)})},a=()=>{let t=e;e=[],t.length&&n(()=>{i(()=>
1{t.forEach(e=>{r(e)})})})};return{batch:e=>{let r;t++;try{r=e()}finally{--t||a()}return r},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{n=e}}}(),y=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},v=new class extends y{#e;#t;#r;constructor(){super(),this.#r=e=>{if(!i&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}},b=new class extends y{#i=!0;#t;#r;constructor(){super(),this.#r=e=>{if(!i&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#i!==e&&(this.#i=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#i}};function w(e){return Math.min(1e3*2**e,3e4)}function P(e){return(e??"online")!=="online"||b.isOnline()}var S=class{constructor(e){this.revert=e?.revert,this.silent=e?.silent}};function x(e){return e instanceof S}function O(e){let t,r,n,s=!1,a=0,o=!1,l=new Promise((e,t)=>{r=e,n=t}),u=()=>v.isFocused()&&("always"===e.networkMode||b.isOnline())&&e.canRun(),h=()=>P(e.networkMode)&&e.canRun(),c=i=>{o||(o=!0,e.onSuccess?.(i),t?.(),r(i))},d=r=>{o||(o=!0,e.onError?.(r),t?.(),n(r))},p=()=>new Promise(r=>{t=e=>{(o||u())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,o||e.onContinue?.()}),f=()=>{let t;if(!o){try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(c).catch(t=>{if(o)return;let r=e.retry??(i?0:3),n=e.retryDelay??w,l="function"==typeof n?n(a,t):n,h=!0===r||"number"==typeof r&&a<r||"function"==typeof r&&r(a,t);if(s||!h){d(t);return}a++,e.onFail?.(a,t),new Promise(e=>{setTimeout(e,l)}).then(()=>u()?void 0:p()).then(()=>{s?d(t):f()})})}};return{promise:l,cancel:t=>{o||(d(new S(t)),e.abort?.())},continue:()=>(t?.(),l),cancelRetry:()=>{s=!0},continueRetry:()=>{s=!1},canStart:h,start:()=>(h()?f():p().then(f),l)}}var _=class{#n;destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"==typeof(e=this.gcTime)&&e>=0&&e!==1/0&&(this.#n=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(i?1/0:3e5))}clearGcTimeout(){this.#n&&(clearTimeout(this.#n),this.#n=void 0)}},C=class extends _{#s;#a;#o;#l;#u;#h;constructor(e){super(),this.#h=!1,this.#u=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#s=e.state||function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,i=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=this.#s,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.#u,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#o.remove(this)}setData(e,t){var r,i;let n=(r=this.state.data,"function"==typeof(i=this.options).structuralSharing?i.structuralSharing(r,e):!1!==i.structuralSharing?function e(t,r){if(t===r)return t;let i=h(t)&&h(r);if(i||c(t)&&c(r)){let n=i?t:Object.keys(t),s=n.length,a=i?r:Object.keys(r),o=a.length,l=i?[]:{},u=0;for(let s=0;s<o;s++){let o=i?s:a[s];(!i&&n.includes(o)||i)&&void 0===t[o]&&void 0===r[o]?(l[o]=void 0,u++):(l[o]=e(t[o],r[o]),l[o]===t[o]&&void 0!==t[o]&&u++)}return s===o&&u===s?t:l}return r}(r,e):e);return this.#c({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#c({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#l?.promise;return this.#l?.cancel(e),t?t.then(n).catch(n):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#s)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!Math.max(this.state.dataUpdatedAt+(e||0)-Date.now(),0)}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#l&&(this.#h?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#o.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#c({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let r=new AbortController,i={queryKey:this.queryKey,meta:this.meta},n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#h=!0,r.signal)}
1)};n(i);let s={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn&&this.options.queryFn!==g?(this.#h=!1,this.options.persister)?this.options.persister(this.options.queryFn,i,this):this.options.queryFn(i):Promise.reject(Error(`Missing queryFn: '${this.options.queryHash}'`))};n(s),this.options.behavior?.onFetch(s,this),this.#a=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#c({type:"fetch",meta:s.fetchOptions?.meta});let a=e=>{x(e)&&e.silent||this.#c({type:"error",error:e}),x(e)||(this.#o.config.onError?.(e,this),this.#o.config.onSettled?.(this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#l=O({fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:e=>{if(void 0===e){a(Error(`${this.queryHash} data is undefined`));return}this.setData(e),this.#o.config.onSuccess?.(e,this),this.#o.config.onSettled?.(e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:a,onFail:(e,t)=>{this.#c({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#c({type:"pause"})},onContinue:()=>{this.#c({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}),this.#l.start()}#c(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":var r;return{...t,...(r=t.data,{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:P(this.options.networkMode)?"fetching":"paused",...void 0===r&&{error:null,status:"pending"}}),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let i=e.error;if(x(i)&&i.revert&&this.#a)return{...this.#a,fetchStatus:"idle"};return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),m.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#o.notify({query:this,type:"updated",action:e})})}},k=class extends y{constructor(e={}){super(),this.config=e,this.#d=new Map}#d;build(e,t,r){let i=t.queryKey,n=t.queryHash??o(i,t),s=this.get(n);return s||(s=new C({cache:this,queryKey:i,queryHash:n,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(s)),s}add(e){this.#d.has(e.queryHash)||(this.#d.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#d.get(e.queryHash);t&&(e.destroy(),t===e&&this.#d.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){m.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#d.get(e)}getAll(){return[...this.#d.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>s(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>s(e,t)):t}notify(e){m.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){m.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){m.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},R=class extends _{#p;#f;#l;constructor(e){super(),this.mutationId=e.mutationId,this.#f=e.mutationCache,this.#p=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#p.includes(e)||(this.#p.push(e),this.clearGcTimeout(),this.#f.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#p=this.#p.filter(t=>
1t!==e),this.scheduleGc(),this.#f.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#p.length||("pending"===this.state.status?this.scheduleGc():this.#f.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(e){this.#l=O({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#c({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#c({type:"pause"})},onContinue:()=>{this.#c({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#f.canRun(this)});let t="pending"===this.state.status,r=!this.#l.canStart();try{if(!t){this.#c({type:"pending",variables:e,isPaused:r}),await this.#f.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#c({type:"pending",context:t,variables:e,isPaused:r})}let i=await this.#l.start();return await this.#f.config.onSuccess?.(i,e,this.state.context,this),await this.options.onSuccess?.(i,e,this.state.context),await this.#f.config.onSettled?.(i,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(i,null,e,this.state.context),this.#c({type:"success",data:i}),i}catch(t){try{throw await this.#f.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#f.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#c({type:"error",error:t})}}finally{this.#f.runNext(this)}}#c(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),m.batch(()=>{this.#p.forEach(t=>{t.onMutationUpdate(e)}),this.#f.notify({mutation:this,type:"updated",action:e})})}},L=class extends y{constructor(e={}){super(),this.config=e,this.#g=new Map,this.#m=Date.now()}#g;#m;build(e,t,r){let i=new R({mutationCache:this,mutationId:++this.#m,options:e.defaultMutationOptions(t),state:r});return this.add(i),i}add(e){let t=E(e),r=this.#g.get(t)??[];r.push(e),this.#g.set(t,r),this.notify({type:"added",mutation:e})}remove(e){let t=E(e);if(this.#g.has(t)){let r=this.#g.get(t)?.filter(t=>t!==e);r&&(0===r.length?this.#g.delete(t):this.#g.set(t,r))}this.notify({type:"removed",mutation:e})}canRun(e){let t=this.#g.get(E(e))?.find(e=>"pending"===e.state.status);return!t||t===e}runNext(e){let t=this.#g.get(E(e))?.find(t=>
1t!==e&&t.state.isPaused);return t?.continue()??Promise.resolve()}clear(){m.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#g.values()].flat()}find(e){let t={exact:!0,...e};return this.getAll().find(e=>a(t,e))}findAll(e={}){return this.getAll().filter(t=>a(e,t))}notify(e){m.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return m.batch(()=>Promise.all(e.map(e=>e.continue().catch(n))))}};function E(e){return e.options.scope?.id??String(e.mutationId)}function j(e,{pages:t,pageParams:r}){let i=t.length-1;return e.getNextPageParam(t[i],t,r[i],r)}var A=class{#y;#f;#u;#v;#b;#w;#P;#S;constructor(e={}){this.#y=e.queryCache||new k,this.#f=e.mutationCache||new L,this.#u=e.defaultOptions||{},this.#v=new Map,this.#b=new Map,this.#w=0}mount(){this.#w++,1===this.#w&&(this.#P=v.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#y.onFocus())}),this.#S=b.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#y.onOnline())}))}unmount(){this.#w--,0===this.#w&&(this.#P?.(),this.#P=void 0,this.#S?.(),this.#S=void 0)}isFetching(e){return this.#y.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#f.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#y.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{let r=this.defaultQueryOptions(e),i=this.#y.build(this,r);return e.revalidateIfStale&&i.isStaleByTime(r.staleTime)&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return this.#y.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let i=this.defaultQueryOptions({queryKey:e}),n=this.#y.get(i.queryHash),s=n?.state.data,a="function"==typeof t?t(s):t;if(void 0!==a)return this.#y.build(this,i).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return m.batch(()=>this.#y.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#y.get(t.queryHash)?.state}removeQueries(e){let t=this.#y;m.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#y,i={type:"active",...e};return m.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(i,t)))}cancelQueries(e={},t={}){let r={revert:!0,...t};return Promise.all(m.batch(()=>this.#y.findAll(e).map(e=>e.cancel(r)))).then(n).catch(n)}invalidateQueries(e={},t={}){return m.batch(()=>{if(this.#y.findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();let r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){let r={...t,cancelRefetch:t?.cancelRefetch??!0};return Promise.all(m.batch(()=>this.#y.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(n)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(n)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=this.#y.build(this,t);return r.isStaleByTime(t.staleTime)?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(n).catch(n)}fetchInfiniteQuery(e){var t;return e.behavior=(t=e.pages,{onFetch:(e,r)=>{let i=async()=>{let r;let i=e.options,n=e.fetchOptions?.meta?.fetchMore?.direction,s=e.state.data?.pages||[],a=e.state.data?.pageParams||[],o=!1,l=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(e.signal.aborted?o=!0:e.signal.addEventListener("abort",()=>{o=!0}),e.signal)})},u=e.options.queryFn&&e.options.queryFn!==g?e.options.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.options.queryHash}'`)),h=async(t,r,i)=>{if(o)return Promise.reject();if(null==r&&t.pages.length)return Promise.resolve(t);let n={queryKey:e.queryKey,pageParam:r,direction:i?"backward":"forward",meta:e.options.meta};l(n);let s=await u(n),{maxPages:a}=e.options,h=i?f:p;return{pages:h(t.pages,s,a),pageParams:h(t.pageParams,r,a)}};if(n&&s.length){let e="backward"===n,t={pages:s,pageParams:a},o=(e?function(e,{pages:t,pageParams:r}){return e.getPreviousPageParam?.(t[0],t,r[0],r)}:j)(i,t);
1r=await h(t,o,e)}else{r=await h({pages:[],pageParams:[]},a[0]??i.initialPageParam);let e=t??s.length;for(let t=1;t<e;t++){let e=j(i,r);r=await h(r,e)}}return r};e.options.persister?e.fetchFn=()=>e.options.persister?.(i,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r):e.fetchFn=i}}),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(n).catch(n)}resumePausedMutations(){return b.isOnline()?this.#f.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#y}getMutationCache(){return this.#f}getDefaultOptions(){return this.#u}setDefaultOptions(e){this.#u=e}setQueryDefaults(e,t){this.#v.set(l(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#v.values()],r={};return t.forEach(t=>{u(e,t.queryKey)&&(r={...r,...t.defaultOptions})}),r}setMutationDefaults(e,t){this.#b.set(l(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#b.values()],r={};return t.forEach(t=>{u(e,t.mutationKey)&&(r={...r,...t.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#u.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=o(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===g&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#u.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#y.clear(),this.#f.clear()}}},29827:function(e,t,r){"use strict";r.d(t,{aH:function(){return a}});var i=r(2265),n=r(57437),s=i.createContext(void 0),a=e=>{let{client:t,children:r}=e;return i.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,n.jsx)(s.Provider,{value:t,children:r})}},49197:function(e,t,r){"use strict";r.d(t,{Analytics:function(){return g}});var i=r(2265),n=r(99376),s=r(40257),a=()=>{window.va||(window.va=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];window.vaq||(window.vaq=[]),window.vaq.push(t)})};function o(){return"undefined"!=typeof window}function l(){return"production"}function u(){return"development"===((o()?window.vam:l())||"production")}function h(e){return new RegExp("/".concat(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"(?=[/?#]|$)"))}function c(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:"/".concat(e)}function d(e){return(0,i.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),(0,i.useEffect)(()=>{var t,r;!function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{debug:!0},r=arguments.length>1?arguments[1]:void 0;if(!o())return;let{beforeSend:i,src:n,dataset:s}=function(e,t){var r,i;let n=e;if(t)try{n={...null==(r=JSON.parse(t))?void 0:r.analytics,...e}}catch(e){}!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto";if("auto"===e){window.vam=l();return}window.vam=e}(n.mode);let s={sdkn:"@vercel/analytics"+(n.framework?"/".concat(n.framework):""),sdkv:"2.0.1"};return n.disableAutoTrack&&(s.disableAutoTrack="1"),n.viewEndpoint&&(s.viewEndpoint=c(n.viewEndpoint)),n.eventEndpoint&&(s.eventEndpoint=c(n.eventEndpoint)),n.sessionEndpoint&&(s.sessionEndpoint=c(n.sessionEndpoint)),u()&&!1===n.debug&&(s.debug="false"),n.dsn&&(s.dsn=n.dsn),n.endpoint?s.endpoint=n.endpoint:n.basePath&&(s.endpoint=c("".concat(n.basePath,"/insights"))),{beforeSend:n.beforeSend,src:(i=n).scriptSrc?c(i.scriptSrc):u()?"https://va.vercel-scripts.com/v1/script.debug.js":i.basePath?c("".concat(i.basePath,"/insights/script.js")):"/_vercel/insights/script.js",dataset:s}}(t,r);if(a(),i&&(null==(e=window.va)||e.call(window,"beforeSend",i)),document.head.querySelector('script[src*="'.concat(n,'"]')))return;let h=document.createElement("script");for(let[e,t]of(h.src=n,Object.entries(s)))h.dataset[e]=t;h.defer=!0,h.onerror=()=>{let e=u()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log("[Vercel Web Analytics] Failed to load script from ".concat(n,". ").concat(e))},document.head.appendChild(h)}({framework:e.framework||"react",basePath:null!==(t=e.basePath)&&void 0!==t?t:function(){if(void 0!==s&&void 0!==s.env)return s.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...void 0!==e.route&&{disableAutoTrack:!0},...e}
1,null!==(r=e.configString)&&void 0!==r?r:function(){if(void 0!==s&&void 0!==s.env)return s.env.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}())},[]),(0,i.useEffect)(()=>{e.route&&e.path&&function(e){var t;let{route:r,path:i}=e;null==(t=window.va)||t.call(window,"pageview",{route:r,path:i})}({route:e.route,path:e.path})},[e.route,e.path]),null}var p=()=>{let e=(0,n.useParams)(),t=(0,n.useSearchParams)(),r=(0,n.usePathname)();return e?{route:function(e,t){if(!e||!t)return e;let r=e;try{let e=Object.entries(t);for(let[t,i]of e)if(!Array.isArray(i)){let e=h(i);e.test(r)&&(r=r.replace(e,"/[".concat(t,"]")))}for(let[t,i]of e)if(Array.isArray(i)){let e=h(i.join("/"));e.test(r)&&(r=r.replace(e,"/[...".concat(t,"]")))}return r}catch(t){return e}}(r,Object.keys(e).length?e:Object.fromEntries(t.entries())),path:r}:{route:null,path:r}};function f(e){let{route:t,path:r}=p();return i.createElement(d,{path:r,route:t,...e,basePath:function(){if(void 0!==s&&void 0!==s.env)return s.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}
1(),configString:function(){if(void 0!==s&&void 0!==s.env)return'{"analytics":{"scriptSrc":"99226862d23ce103/script.js","viewEndpoint":"99226862d23ce103/view","eventEndpoint":"99226862d23ce103/event","sessionEndpoint":"99226862d23ce103/session"},"speedInsights":{"scriptSrc":"18a66b5001ec356f/script.js","endpoint":"18a66b5001ec356f/vitals"}}'}(),framework:"next"})}function g(e){return i.createElement(i.Suspense,{fallback:null},i.createElement(f,{...e}))}},740:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var i=function(e){return{type:"backend",init:function(e,t,r){},read:function(t,r,i){if("function"==typeof e){if(e.length<3){try{var n=e(t,r);n&&"function"==typeof n.then?n.then(function(e){return i(null,e&&e.default||e)}).catch(i):i(null,n)}catch(e){i(e)}return}e(t,r,i);return}i(null,e&&e[t]&&e[t][r])}}}},46550:function(e,t,r){"use strict";r.d(t,{Fs:function(){return er}});let i=e=>"string"==typeof e,n=()=>{let e,t;let r=new Promise((r,i)=>{e=r,t=i});return r.resolve=e,r.reject=t,r},s=e=>null==e?"":""+e,a=(e,t,r)=>{e.forEach(e=>{t[e]&&(r[e]=t[e])})},o=/###/g,l=e=>e&&e.indexOf("###")>-1?e.replace(o,"."):e,u=e=>!e||i(e),h=(e,t,r)=>{let n=i(t)?t.split("."):t,s=0;for(;s<n.length-1;){if(u(e))return{};let t=l(n[s]);!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++s}return u(e)?{}:{obj:e,k:l(n[s])}},c=(e,t,r)=>{let{obj:i,k:n}=h(e,t,Object);if(void 0!==i||1===t.length){i[n]=r;return}let s=t[t.length-1],a=t.slice(0,t.length-1),o=h(e,a,Object);for(;void 0===o.obj&&a.length;)s=`${a[a.length-1]}.${s}`,(o=h(e,a=a.slice(0,a.length-1),Object))&&o.obj&&void 0!==o.obj[`${o.k}.${s}`]&&(o.obj=void 0);o.obj[`${o.k}.${s}`]=r},d=(e,t,r,i)=>{let{obj:n,k:s}=h(e,t,Object);n[s]=n[s]||[],n[s].push(r)},p=(e,t)=>{let{obj:r,k:i}=h(e,t);if(r)return r[i]},f=(e,t,r)=>{let i=p(e,r);return void 0!==i?i:p(t,r)},g=(e,t,r)=>{for(let n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?i(e[n])||e[n]instanceof String||i(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):g(e[n],t[n],r):e[n]=t[n]);return e},m=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};let v=e=>i(e)?e.replace(/[&<>"'\/]/g,e=>y[e]):e;class b{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}let w=[" ",",","?","!",";"],P=new b(20),S=(e,t,r)=>{t=t||"",r=r||"";let i=w.filter(e=>0>t.indexOf(e)&&0>r.indexOf(e));if(0===i.length)return!0;let n=P.getRegExp(`(${i.map(e=>"?"===e?"\\?":e).join("|")})`),s=!n.test(e);if(!s){let t=e.indexOf(r);t>0&&!n.test(e.substring(0,t))&&(s=!0)}return s},x=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(r),n=e;for(let e=0;e<i.length;){let t;if(!n||"object"!=typeof n)return;let s="";for(let a=e;a<i.length;++a)if(a!==e&&(s+=r),s+=i[a],void 0!==(t=n[s])){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<i.length-1)continue;e+=a-e+1;break}n=t}return n},O=e=>e&&e.replace("_","-"),_={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class C{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||_,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,n){return n&&!this.debug?null:(i(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new C(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new C(this.logger,e)}}var k=new C;class R{constructor(){this.observers={}}
1on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[t,i]=e;for(let e=0;e<i;e++)t(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{let[i,n]=t;for(let t=0;t<n;t++)i.apply(i,[e,...r])})}}class L extends R{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r){let n,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=void 0!==s.keySeparator?s.keySeparator:this.options.keySeparator,o=void 0!==s.ignoreJSONStructure?s.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?n=e.split("."):(n=[e,t],r&&(Array.isArray(r)?n.push(...r):i(r)&&a?n.push(...r.split(a)):n.push(r)));let l=p(this.data,n);return(!l&&!t&&!r&&e.indexOf(".")>-1&&(e=n[0],t=n[1],r=n.slice(2).join(".")),!l&&o&&i(r))?x(this.data&&this.data[e]&&this.data[e][t],r,a):l}addResource(e,t,r,i){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[e,t];r&&(a=a.concat(s?r.split(s):r)),e.indexOf(".")>-1&&(a=e.split("."),i=t,t=a[1]),this.addNamespaces(t),c(this.data,a,i),n.silent||this.emit("added",e,t,r,i)}addResources(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let n in r)(i(r[n])||Array.isArray(r[n]))&&this.addResource(e,t,n,r[n],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,i,n){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),i=r,r=t,t=a[1]),this.addNamespaces(t);let o=p(this.data,a)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?g(o,r,n):o={...o,...r},c(this.data,a,o),s.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var E={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,i,n){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,r,i,n))}),t}};let j={};class A extends R{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),a(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=k.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let r=this.resolve(e,t);return r&&void 0!==r.res}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");let n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=t.ns||this.options.defaultNS||[],a=r&&e.indexOf(r)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!S(e,r,n);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i(s)?[s]:s};let a=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(a[0])>-1)&&(s=a.shift()),e=a.join(n)}return{key:e,namespaces:i(s)?[s]:s}}translate(e,t,r){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let n=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,s=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:a,namespaces:o}=this.extractFromKey(e[e.length-1],t),l=o[o.length-1],u=t.lng||this.language,h=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(h){let e=t.nsSeparator||this.options.nsSeparator;return n?{res:`${l}${e}${a}`,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${e}${a}`}return n?{res:a,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:a}let c=this.resolve(e,t),d=c&&c.res,p=c&&c.usedKey||a,f=c&&c.exactUsedKey||a,g=Object.prototype.toString.apply(d),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,v=!i(d)&&"boolean"!=typeof d&&"number"!=typeof d;if(y&&d&&v&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(g)&&!(i(m)&&Array.isArray(d))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,d,{...t,ns:o}):`key '${a} (${this.language})' returned an object instead of string.`;return n?(c.res=e,c.usedParams=this.getUsedParamsDetails(t),c):e}if(s){let e=Array.isArray(d),r=e?[]:{},i=e?f:p;for(let e in d)if(Object.prototype.hasOwnProperty.call(d,e)){let n=`${i}${s}${e}`;r[e]=this.translate(n,{...t,joinArrays:!1,ns:o}),r[e]===n&&(r[e]=d[e])}d=r}}else if(y&&i(m)&&Array.isArray(d))(d=d.join(m))&&(d=this.extendTranslation(d,e,t,r));else{let n=!1,o=!1,h=void 0!==t.count&&!i(t.count),p=A.hasDefaultValue(t),f=h?this.pluralResolver.getSuffix(u,t.count,t):"",g=t.ordinal&&h?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",m=h&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),y=m&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${f}`]||t[`defaultValue${g}`]||t.defaultValue;!this.isValidLookup(d)&&p&&(n=!0,d=y),this.isValidLookup(d)||(o=!0,d=a);let v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:d,b=p&&y!==d&&this.options.updateMissing;if(o||n||b){if(this.logger.log(b?"updateKey":"missingKey",u,l,a,b?y:d),s){let e=this.resolve(a,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],r=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&r&&r[0])for(let t=0;t<r.length;t++)e.push(r[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);let i=(e,r,i)=>{let n=p&&i!==d?i:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,r,n,b,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,r,n,b,t),this.emit
1("missingKey",e,l,r,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&h?e.forEach(e=>{let r=this.pluralResolver.getSuffixes(e,t);m&&t[`defaultValue${this.options.pluralSeparator}zero`]&&0>r.indexOf(`${this.options.pluralSeparator}zero`)&&r.push(`${this.options.pluralSeparator}zero`),r.forEach(r=>{i([e],a+r,t[`defaultValue${r}`]||y)})}):i(e,a,y))}d=this.extendTranslation(d,e,t,c,r),o&&d===a&&this.options.appendNamespaceToMissingKey&&(d=`${l}:${a}`),(o||n)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,n?d:void 0):this.options.parseMissingKeyHandler(d))}return n?(c.res=d,c.usedParams=this.getUsedParamsDetails(t),c):d}extendTranslation(e,t,r,n,s){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){let o;r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});let l=i(e)&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let u=r.replace&&!i(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),e=this.interpolator.interpolate(e,u,r.lng||this.language||n.usedLng,r),l){let t=e.match(this.interpolator.nestingRegexp);o<(t&&t.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(r.lng=this.language||n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];return s&&s[0]===i[0]&&!r.context?(a.logger.warn(`It seems you are nesting recursively key: ${i[0]} in key: ${t[0]}`),null):a.translate(...i,t)},r)),r.interpolation&&this.interpolator.reset()}let o=r.postProcess||this.options.postProcess,l=i(o)?[o]:o;return null!=e&&l&&l.length&&!1!==r.applyPostProcessor&&(e=E.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let t,r,n,s,a,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let l=this.extractFromKey(e,o),u=l.key;r=u;let h=l.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));let c=void 0!==o.count&&!i(o.count),d=c&&!o.ordinal&&0===o.count&&this.pluralResolver.shouldUseIntlApi(),p=void 0!==o.context&&(i(o.context)||"number"==typeof o.context)&&""!==o.context,f=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);h.forEach(e=>{this.isValidLookup(t)||(a=e,!j[`${f[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(j[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(r=>{let i;if(this.isValidLookup(t))return;s=r;let a=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(a,u,r,e,o);else{let e;c&&(e=this.pluralResolver.getSuffix(r,o.count,o));let t=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(a.push(u+e),o.ordinal&&0===e.indexOf(i)&&a.push(u+e.replace(i,this.options.pluralSeparator)),d&&a.push(u+t)),p){let r=`${u}${this.options.contextSeparator}${o.context}`;a.push(r),c&&(a.push(r+e),o.ordinal&&0===e.indexOf(i)&&a.push(r+e.replace(i,this.options.pluralSeparator)),d&&a.push(r+t))}}for(;i=a.pop();)this.isValidLookup(t)||(n=i,t=this.getResource(r,e,i,o))}))})}),{res:t,usedKey:r,exactUsedKey:n,usedLng:s,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,i
1):this.resourceStore.getResource(e,t,r,i)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.replace&&!i(e.replace),r=t?e.replace:e;if(t&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!t)for(let e of(r={...r},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete r[e];return r}static hasDefaultValue(e){let t="defaultValue";for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}let N=e=>e.charAt(0).toUpperCase()+e.slice(1);class I{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=k.create("languageUtils")}getScriptPartFromCode(e){if(!(e=O(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=O(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(i(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}let t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(e=>e.toLowerCase()):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=N(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=N(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=N(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let r=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(0>e.indexOf("-")&&0>r.indexOf("-"))&&(e.indexOf("-")>0&&0>r.indexOf("-")&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),i(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){let r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],s=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return i(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&s(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&s(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&s(this.getLanguagePartFromCode(e))):i(e)&&s(this.formatLanguageCode(e)),r.forEach(e=>{0>n.indexOf(e)&&s(this.formatLanguageCode(e))}),n}}let T=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","
1sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],F={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)},M=["v1","v2","v3"],D=["v4"],U={zero:0,one:1,two:2,few:3,many:4,other:5},q=()=>{let e={};return T.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:F[t.fc]}})}),e};class ${constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=k.create("pluralResolver"),(!this.options.compatibilityJSON||D.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=q(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){let r;let i=O("dev"===e?"en":e),n=t.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:i,type:n});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];try{r=new Intl.PluralRules(i,{type:n})}catch(n){if(!e.match(/-|_/))return;let i=this.languageUtils.getLanguagePartFromCode(e);r=this.getRule(i,t)}return this.pluralRulesCache[s]=r,r}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,t);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((e,t)=>U[e]-U[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):r.numbers.map(r=>this.getSuffix(e,r,t)):[]}getSuffix(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.getRule(e,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:this.getSuffixRetroCompatible(i,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),i=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[
10]&&(2===i?i="plural":1===i&&(i=""));let n=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?`_plural_${i.toString()}`:n():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?n():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!M.includes(this.options.compatibilityJSON)}}let H=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",s=!(arguments.length>4)||void 0===arguments[4]||arguments[4],a=f(e,t,r);return!a&&s&&i(r)&&void 0===(a=x(e,r,n))&&(a=x(t,r,n)),a},B=e=>e.replace(/\$/g,"$$$$");class V{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=k.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:r,useRawValueToEscape:i,prefix:n,prefixEscaped:s,suffix:a,suffixEscaped:o,formatSeparator:l,unescapeSuffix:u,unescapePrefix:h,nestingPrefix:c,nestingPrefixEscaped:d,nestingSuffix:p,nestingSuffixEscaped:f,nestingOptionsSeparator:g,maxReplaces:y,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:v,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==i&&i,this.prefix=n?m(n):s||"{{",this.suffix=a?m(a):o||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=c?m(c):d||m("$t("),this.nestingSuffix=p?m(p):f||m(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,r,n){let a,o,l;let u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=e=>{if(0>e.indexOf(this.formatSeparator)){let i=H(t,u,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,r,{...n,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),s=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(H(t,u,s,this.options.keySeparator,this.options.ignoreJSONStructure),a,r,{...n,...t,interpolationkey:s})};this.resetRegExp();let c=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,d=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>B(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?B(this.escape(e)):B(e)}].forEach(t=>{for(l=0;a=t.regex.exec(e);){let r=a[1].trim();if(void 0===(o=h(r))){if("function"==typeof c){let t=c(e,a,n);o=i(t)?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))o="";else if(d){o=a[0];continue}else this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),o=""}else i(o)||this.useRawValueToEscape||(o=s(o));let u=t.safeValue(o);if(e=e.replace(a[0],u),d?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,++l>=this.maxReplaces)break}}),e}nest(e,t){let r,n,a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=(e,t)=>{let r=this.nestingOptionsSeparator;if(0>e.indexOf(r))return e;let i=e.split(RegExp(`${r}[ ]*{`)),n=`{${i[1]}`;e=i[0];let s=(n=this.interpolate(n,a)).match(/'/g),o=n.match(/"/g);(s&&s.length%2==0&&!o||o.length%2!=0)&&(n=n.replace(/'/g,'"'));try{a=JSON.parse(n),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${n}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let u=[];(a=(a={...o}).replace&&!i(a.replace)?a.replace:a).applyPostProcessor=!1,delete a.defaultValue;let h=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),u=e,h=!0}if((n=t(l.call(this,r[1].trim(),a),a))&&r[0]===e&&!i(n))return n;i(n)||(n=s(n)),n||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),n=""),h&&(n=u.reduce((e,t)=>
1this.format(e,t,o.lng,{...o,interpolationkey:r[1].trim()}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}let K=e=>{let t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let n=i[1].substring(0,i[1].length-1);"currency"===t&&0>n.indexOf(":")?r.currency||(r.currency=n.trim()):"relativetime"===t&&0>n.indexOf(":")?r.range||(r.range=n.trim()):n.split(";").forEach(e=>{if(e){let[t,...i]=e.split(":"),n=i.join(":").trim().replace(/^'+|'+$/g,""),s=t.trim();r[s]||(r[s]=n),"false"===n&&(r[s]=!1),"true"===n&&(r[s]=!0),isNaN(n)||(r[s]=parseInt(n,10))}})}return{formatName:t,formatOptions:r}},W=e=>{let t={};return(r,i,n)=>{let s=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(s={...s,[n.interpolationkey]:void 0});let a=i+JSON.stringify(s),o=t[a];return o||(o=e(O(i),n),t[a]=o),o(r)}};class z{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=k.create("formatter"),this.options=e,this.formats={number:W((e,t)=>{let r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:W((e,t)=>{let r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:W((e,t)=>{let r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:W((e,t)=>{let r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:W((e,t)=>{let r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=W(t)}format(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=t.split(this.formatSeparator);if(n.length>1&&n[0].indexOf("(")>1&&0>n[0].indexOf(")")&&n.find(e=>e.indexOf(")")>-1)){let e=n.findIndex(e=>e.indexOf(")")>-1);n[0]=[n[0],...n.splice(1,e)].join(this.formatSeparator)}return n.reduce((e,t)=>{let{formatName:n,formatOptions:s}=K(t);if(this.formats[n]){let t=e;try{let a=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},o=a.locale||a.lng||i.locale||i.lng||r;t=this.formats[n](e,o,{...s,...i,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${n}`),e},e)}}let Q=(e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)};class J extends R{constructor(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=k.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(e,t,r,i){let n={},s={},a={},o={};return e.forEach(e=>{let i=!0;t.forEach(t=>{let a=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===s[a]&&(s[a]=!0):(this.state[a]=1,i=!1,void 0===s[a]&&(s[a]=!0),void 0===n[a]&&(n[a]=!0),void 0===o[t]&&(o[t]=!0)))}),i||(a[e]=!0)}),(Object.keys(n).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(n),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(o)}}loaded(e,t,r){let i=e.split("|"),n=i[0],s=i[1];t&&this.emit("failedLoading",n,s,t),!t&&r&&this.store.addResourceBundle(n,s,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);let a={};this.queue.forEach(r=>{d(r.loaded,[n],s),Q(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{a[e]||(a[e]={});let t=r.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}
1),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:r,tried:i,wait:n,callback:s});return}this.readingCalls++;let a=(a,o)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(a&&o&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,r,i+1,2*n,s)},n);return}s(a,o)},o=this.backend[r].bind(this.backend);if(2===o.length){try{let r=o(e,t);r&&"function"==typeof r.then?r.then(e=>a(null,e)).catch(a):a(null,r)}catch(e){a(e)}return}return o(e,t,a)}prepareLoading(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();i(e)&&(e=this.languageUtils.toResolveHierarchy(e)),i(t)&&(t=[t]);let s=this.queueLoad(e,t,r,n);if(!s.toLoad.length)return s.pending.length||n(),null;s.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=r[0],n=r[1];this.read(i,n,"read",void 0,void 0,(r,s)=>{r&&this.logger.warn(`${t}loading namespace ${n} for language ${i} failed`,r),!r&&s&&this.logger.log(`${t}loaded namespace ${n} for language ${i}`,s),this.loaded(e,r,s)})}saveMissing(e,t,r,i,n){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=r&&""!==r){if(this.backend&&this.backend.create){let o={...s,isUpdate:n},l=this.backend.create.bind(this.backend);if(l.length<6)try{let n;(n=5===l.length?l(e,t,r,i,o):l(e,t,r,i))&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}else l(e,t,r,i,a,o)}e&&e[0]&&this.store.addResource(e[0],t,r,i)}}}let G=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),i(e[1])&&(t.defaultValue=e[1]),i(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let r=e[3]||e[2];Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),X=e=>(i(e.ns)&&(e.ns=[e.ns]),i(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),i(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Y=()=>{},Z=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})};class ee extends R{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=X(e),this.services={},this.logger=k,this.modules={external:[]},Z(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(i(t.ns)?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let s=G();this.options={...s,...this.options,...X(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);let a=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?k.init(a(this.modules.logger),this.options):k.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=z);let r=new I(this.options);this.store=new L(this.options.resources,this.options);let i=this.services;i.logger=k,i.resourceStore=this.store,i.languageUtils=r,i.pluralResolver=new $(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(i.formatter=a(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new V(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new J(a(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",function(t){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];e.emit(t,...i)}),this.modules.languageDetector&&(i.languageDetector=a(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=a(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new A(this.services,this.options),this.translator.on("*",function(t){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];e.emit(t,...i)}
1),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Y),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let o=n(),l=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(t),r(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),o}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y,r=t,n=i(e)?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return r();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};n?t(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(e)})}else r(null)}reloadResources(e,t,r){let i=n();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=Y),this.services.backendConnector.reload(e,t,e=>{i.resolve(),r(e)}),i}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&E.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var r=this;this.isLanguageChangingTo=e;let s=n();this.emit("languageChanging",e);let a=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,i)=>{i?(a(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,s.resolve(function(){return r.t(...arguments)}),t&&t(e,function(){return r.t(...arguments)})},l=t=>{e||t||!this.services.languageDetector||(t=[]);let r=i(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);r&&(this.language||a(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(r)),this.loadResources(r,e=>{o(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e):l(this.services.languageDetector.detect()),s}getFixedT(e,t,r){var n=this;let s=function(e,t){let i,a;if("object"!=typeof t){for(var o=arguments.length,l=Array(o>2?o-2:0),u=2;u<o;u++)l[u-2]=arguments[u];i=n.options.overloadTranslationOptionHandler([e,t].concat(l))}else i={...t};i.lng=i.lng||s.lng,i.lngs=i.lngs||s.lngs,i.ns=i.ns||s.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||r||s.keyPrefix);let h=n.options.keySeparator||".";return a=i.keyPrefix&&Array.isArray(e)?e.map(e=>`${i.keyPrefix}${h}${e}`):i.keyPrefix?`${i.keyPrefix}${h}${e}`:e,n.t(a,i)};return i(e)?s.lng=e:s.lngs=e,s.ns=t,s.keyPrefix=r,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
1if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let r=t.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;let s=(e,t)=>{let r=this.services.backendConnector.state[`${e}|${t}`];return -1===r||0===r||2===r};if(t.precheck){let e=t.precheck(this,s);if(void 0!==e)return e}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,e)&&(!i||s(n,e)))}loadNamespaces(e,t){let r=n();return this.options.ns?(i(e)&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){let r=n();i(e)&&(e=[e]);let s=this.options.preload||[],a=e.filter(e=>0>s.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return a.length?(this.options.preload=s.concat(a),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services&&this.services.languageUtils||new I(G())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ee(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y,r=e.forkResourceStore;r&&delete e.forkResourceStore;let i={...this.options,...e,isClone:!0},n=new ee(i);return(void 0!==e.debug||void 0!==e.prefix)&&(n.logger=n.logger.clone(e)),["store","services","language"].forEach(e=>{n[e]=this[e]}),n.services={...this.services},n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},r&&(n.store=new L(this.store.data,i),n.services.resourceStore=n.store),n.translator=new A(n.services,i),n.translator.on("*",function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n.emit(e,...r)}),n.init(i,t),n.translator.options=i,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let et=ee.createInstance();et.createInstance=ee.createInstance;let er=et.createInstance;et.dir,et.init,et.loadResources,et.reloadResources,et.use,et.changeLanguage,et.getFixedT,et.t,et.exists,et.setDefaultNamespace,et.hasLoadedNamespace,et.loadNamespaces,et.loadLanguages}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.