(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{66407:function(e,t,r){Promise.resolve().then(r.t.bind(r,39974,23)),Promise.resolve().then(r.t.bind(r,2778,23)),Promise.resolve().then(r.bind(r,31857))},31857:function(e,t,r){"use strict";r.d(t,{FeatureFlagsProvider:function(){return f}});var n=r(57437),l=r(2265),a=r(99376),o=r(19250);let u=()=>{let e="ui/".replace(/^\/+|\/+$/g,""),t=e?"/".concat(e,"/"):"/";if(o.serverRootPath&&"/"!==o.serverRootPath){let e=o.serverRootPath.replace(/\/+$/,""),r=t.replace(/^\/+/,"");return"".concat(e,"/").concat(r)}return t},s="feature.refactoredUIFlag",c=(0,l.createContext)(null);function i(e){try{localStorage.setItem(s,String(e))}catch(e){}}let f=e=>{let{children:t}=e,r=(0,a.useRouter)(),[o,f]=(0,l.useState)(()=>(function(){try{let e=localStorage.getItem(s);if(null===e)return localStorage.setItem(s,"false"),!1;let t=e.trim().toLowerCase();if("true"===t||"1"===t)return!0;if("false"===t||"0"===t)return!1;let r=JSON.parse(e);if("boolean"==typeof r)return r;return localStorage.setItem(s,"false"),!1}catch(e){try{localStorage.setItem(s,"false")}catch(e){}return!1}})());return(0,l.useEffect)(()=>{let e=e=>{if(e.key===s&&null!=e.newValue){let t=e.newValue.trim().toLowerCase();f("true"===t||"1"===t)}e.key===s&&null===e.newValue&&(i(!1),f(!1))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[]),(0,l.useEffect)(()=>{if(o)return;let e=setTimeout(()=>{let e;let t=u(),n=(e=window.location.pathname).endsWith("/")?e:e+"/";n.includes("/ui")||n===t||r.replace(t)},100);return()=>clearTimeout(e)},[o,r]),(0,n.jsx)(c.Provider,{value:{refactoredUIFlag:o,setRefactoredUIFlag:e=>{f(e),i(e)}},children:t})};t.Z=()=>{let e=(0,l.useContext)(c);if(!e)throw Error("useFeatureFlags must be used within FeatureFlagsProvider");return e}},2778:function(){},39974:function(e){e.exports={style:{fontFamily:"'__Inter_1c856b', '__Inter_Fallback_1c856b'",fontStyle:"normal"},className:"__className_1c856b"}}},function(e){e.O(0,[1919,2461,9028,9409,8049,2971,2117,1744],function(){return e(e.s=66407)}),_N_E=e.O()}]);