(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3949],{69917:function(e){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},43949:function(e,n,t){"use strict";let a;t.d(n,{a3:function(){return v},Db:function(){return x},$G:function(){return S}});var r=t(2265);t(69917),Object.create(null);let s=(e,n,t,a)=>{let r=[t,{code:n,...a||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(r,"warn","react-i18next::",!0);g(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...r):console?.warn&&console.warn(...r)},i={},o=(e,n,t,a)=>{g(t)&&i[t]||(g(t)&&(i[t]=new Date),s(e,n,t,a))},l=(e,n)=>()=>{if(e.isInitialized)n();else{let t=()=>{setTimeout(()=>{e.off("initialized",t)},0),n()};e.on("initialized",t)}},u=(e,n,t)=>{e.loadNamespaces(n,l(e,t))},c=(e,n,t,a)=>{if(g(t)&&(t=[t]),e.options.preload&&e.options.preload.indexOf(n)>-1)return u(e,t,a);t.forEach(n=>{0>e.options.ns.indexOf(n)&&e.options.ns.push(n)}),e.loadLanguages(n,l(e,a))},p=(e,n,t={})=>n.languages&&n.languages.length?n.hasLoadedNamespace(e,{lng:t.lng,precheck:(n,a)=>{if(t.bindI18n?.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!a(n.isLanguageChangingTo,e))return!1}}):(o(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0),g=e=>"string"==typeof e,d=e=>"object"==typeof e&&null!==e,f=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,m={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},h=e=>m[e],N={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(f,h)},b=(e={})=>{N={...N,...e}},w=()=>N,y=e=>{a=e},E=()=>a,x={type:"3rdParty",init(e){b(e.options.react),y(e)}},k=(0,r.createContext)();class C{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}let T=(e,n)=>{let t=(0,r.useRef)();return(0,r.useEffect)(()=>{t.current=n?t.current:e},[e,n]),t.current},I=(e,n,t,a)=>e.getFixedT(n,t,a),O=(e,n,t,a)=>(0,r.useCallback)(I(e,n,t,a),[e,n,t,a]),S=(e,n={})=>{let{i18n:t}=n,{i18n:a,defaultNS:s}=(0,r.useContext)(k)||{},i=t||a||E();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new C),!i){o(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let e=(e,n)=>g(n)?n:d(n)&&g(n.defaultValue)?n.defaultValue:Array.isArray(e)?e[e.length-1]:e,n=[e,{},!1];return n.t=e,n.i18n={},n.ready=!1,n}i.options.react?.wait&&o(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let l={...w(),...i.options.react,...n},{useSuspense:f,keyPrefix:m}=l,h=e||s||i.options?.defaultNS;h=g(h)?[h]:h||["translation"],i.reportNamespaces.addUsedNamespaces?.(h);let N=(i.isInitialized||i.initializedStoreOnce)&&h.every(e=>p(e,i,l)),b=O(i,n.lng||null,"fallback"===l.nsMode?h:h[0],m),y=()=>b,x=()=>I(i,n.lng||null,"fallback"===l.nsMode?h:h[0],m),[S,v]=(0,r.useState)(y),_=h.join();n.lng&&(_=`${n.lng}${_}`);let A=T(_),z=(0,r.useRef)(!0);(0,r.useEffect)(()=>{let{bindI18n:e,bindI18nStore:t}=l;z.current=!0,N||f||(n.lng?c(i,n.lng,h,()=>{z.current&&v(x)}):u(i,h,()=>{z.current&&v(x)})),N&&A&&A!==_&&z.current&&v(x);let a=()=>{z.current&&v(x)};return e&&i?.on(e,a),t&&i?.store.on(t,a),()=>{z.current=!1,i&&e?.split(" ").forEach(e=>i.off(e,a)),t&&i&&t.split(" ").forEach(e=>i.store.off(e,a))}},[i,_]),(0,r.useEffect)(()=>{z.current&&N&&v(y)},[i,m,N]);let L=[S,i,N];if(L.t=S,L.i18n=i,L.ready=N,N||!N&&!f)return L;throw new Promise(e=>{n.lng?c(i,n.lng,h,()=>e()):u(i,h,()=>e())})};function v({i18n:e,defaultNS:n,children:t}){let a=(0,r.useMemo)(()=>({i18n:e,defaultNS:n}),[e,n]);return(0,r.createElement)(k.Provider,{value:a},t)}}}]);