1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1593a4bb-fb8b-59fe-bbdf-03936224ef8b")}catch(e){}}(); 3import{r as g}from"./vendor-react-D7BZ9ZKA.js";import{I as M,R as j,g as k,a as G}from"./context-iTCCX7Zb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"e34a2f9468e4617a77893c27d98e903c140fca28"}}catch{}})();const $=(e,t,a,s)=>{var n,u,m,y;const i=[a,{code:t,...s||{}}];if((u=(n=e==null?void 0:e.services)==null?void 0:n.logger)!=null&&u.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);N(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),(y=(m=e==null?void 0:e.services)==null?void 0:m.logger)!=null&&y.warn?e.services.logger.warn(...i):console!=null&&console.warn&&console.warn(...i)},A={},b=(e,t,a,s)=>{N(a)&&A[a]||(N(a)&&(A[a]=new Date),$(e,t,a,s))},P=(e,t)=>()=>{if(e.isInitialized)t();else{const a=()=>{setTimeout(()=>{e.off("initialized",a)},0),t()};e.on("initialized",a)}},S=(e,t,a)=>{e.loadNamespaces(t,P(e,a))},O=(e,t,a,s)=>{if(N(a)&&(a=[a]),e.options.preload&&e.options.preload.indexOf(t)>-1)return S(e,a,s);a.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,P(e,s))},U=(e,t,a={})=>!t.languages||!t.languages.length?(b(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:a.lng,precheck:(s,i)=>{if(a.bindI18n&&a.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!i(s.isLanguageChangingTo,e))return!1}}),N=e=>typeof e=="string",Y=e=>typeof e=="object"&&e!==null,J=(e,t)=>{const a=g.useRef();return g.useEffect(()=>{a.current=e},[e,t]),a.current},_=(e,t,a,s)=>e.getFixedT(t,a,s),W=(e,t,a,s)=>g.useCallback(_(e,t,a,s),[e,t,a,s]),B=(e,t={})=>{var I,v,L,z;const{i18n:a}=t,{i18n:s,defaultNS:i}=g.useContext(M)||{},n=a||s||G();if(n&&!n.reportNamespaces&&(n.reportNamespaces=new j),!n){b(n,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const r=(f,l)=>N(l)?l:Y(l)&&N(l.defaultValue)?l.defaultValue:Array.isArray(f)?f[f.length-1]:f,c=[r,{},!1];return c.t=r,c.i18n={},c.ready=!1,c}(I=n.options.react)!=null&&I.wait&&b(n,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const u={...k(),...n.options.react,...t},{useSuspense:m,keyPrefix:y}=u;let o=e||i||((v=n.options)==null?void 0:v.defaultNS);o=N(o)?[o]:o||["translation"],(z=(L=n.reportNamespaces).addUsedNamespaces)==null||z.call(L,o);const d=(n.isInitialized||n.initializedStoreOnce)&&o.every(r=>U(r,n,u)),F=W(n,t.lng||null,u.nsMode==="fallback"?o:o[0],y),x=()=>F,E=()=>_(n,t.lng||null,u.nsMode==="fallback"?o:o[0],y),[C,T]=g.useState(x);let p=o.join();t.lng&&(p=`${t.lng}${p}`);const R=J(p),w=g.useRef(!0);g.useEffect(()=>{const{bindI18n:r,bindI18nStore:c}=u;w.current=!0,!d&&!m&&(t.lng?O(n,t.lng,o,()=>{w.current&&T(E)}):S(n,o,()=>{w.current&&T(E)})),d&&R&&R!==p&&w.current&&T(E);const f=()=>{w.current&&T(E)};return r&&(n==null||n.on(r,f)),c&&(n==null||n.store.on(c,f)),()=>{w.current=!1,n&&r&&(r==null||r.split(" ").forEach(l=>n.off(l,f))),c&&n&&c.split(" ").forEach(l=>n.store.off(l,f))}},[n,p]),g.useEffect(()=>{w.current&&d&&T(x)},[n,y,d]);const h=[C,n,d];if(h.t=C,h.i18n=n,h.ready=d,d||!d&&!m)return h;throw new Promise(r=>{t.lng?O(n,t.lng,o,()=>r()):S(n,o,()=>r())})};export{$ as a,Y as b,N as i,B as u,b as w}; 4 5//# debugId=1593a4bb-fb8b-59fe-bbdf-03936224ef8b
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.