(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{13673:()=>{},25803:(t,e,n)=>{"use strict";n.d(e,{CL:()=>i,NW:()=>u,YZ:()=>r,hh:()=>o,vK:()=>a});let r=["ar","en"],i="nabdh_locale";function o(t){return"ar"===t?"rtl":"ltr"}let u={ar:"ar-SA-u-nu-latn-ca-gregory",en:"en-GB"},a={ar:{native:"العربية",english:"Arabic"},en:{native:"English",english:"English"}}},30201:(t,e,n)=>{Promise.resolve().then(n.t.bind(n,13673,23)),Promise.resolve().then(n.bind(n,56502))},52985:(t,e,n)=>{"use strict";n.d(e,{HM:()=>i,Yq:()=>c,ZV:()=>u,_P:()=>a,a3:()=>d,fU:()=>s,l9:()=>l,om:()=>f,r6:()=>m});var r=n(25803);function i(t){return(e,n)=>{let r=function(t,e){let n=e.split("."),r=t;for(let t of n){if("object"!=typeof r||null===r)return;r=r[t]}return"string"==typeof r?r:void 0}(t,e);return void 0===r?e:n?r.replace(/\{(\w+)\}/g,(t,e)=>e in n?String(n[e]):t):r}}let o=new Map;function u(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Number.isFinite(e)?(function(t,e){let n="".concat(t,":").concat(JSON.stringify(e)),i=o.get(n);return i||(i=new Intl.NumberFormat(r.NW[t],e),o.set(n,i)),i})(t,n).format(e):"—"}function a(t,e){let n=Math.abs(e),r=n>=1e3||n>=100?0:1;return u(t,e,{maximumFractionDigits:r,minimumFractionDigits:r})}function l(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return"".concat(u(t,e,{maximumFractionDigits:n,minimumFractionDigits:n}),"%")}function m(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{dateStyle:"medium",timeStyle:"short"};return new Intl.DateTimeFormat(r.NW[t],{timeZone:"Asia/Riyadh",...n}).format(e)}function s(t,e){return m(t,e,{hour:"2-digit",minute:"2-digit",hour12:!1})}function c(t,e){return m(t,e,{dateStyle:"medium"})}function d(t,e){let n=Math.max(0,Math.round(e));if(n<60)return t("common.duration.minutes",{value:n});let r=Math.floor(n/60),i=n%60;if(n<1440)return 0===i?t("common.duration.hours",{value:r}):t("common.duration.hoursMinutes",{hours:r,minutes:i});let o=Math.floor(n/1440),u=Math.floor(n%1440/60);return 0===u?t("common.duration.days",{value:o}):t("common.duration.daysHours",{days:o,hours:u})}function f(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now(),i=("number"==typeof e?e:e.getTime())-n,o=new Intl.RelativeTimeFormat(r.NW[t],{numeric:"auto"});for(let[t,e]of[["year",31536e6],["month",2592e6],["day",864e5],["hour",36e5],["minute",6e4],["second",1e3]])if(Math.abs(i)>=e||"second"===t)return o.format(Math.round(i/e),t);return o.format(0,"second")}},56502:(t,e,n)=>{"use strict";n.d(e,{I18nProvider:()=>l,s:()=>m});var r=n(95155),i=n(12115),o=n(25803),u=n(52985);let a=(0,i.createContext)(null);function l(t){let{locale:e,messages:n,renderedAt:l,children:m}=t,[s,c]=(0,i.useState)(null);(0,i.useEffect)(()=>{c(Date.now());let t=setInterval(()=>c(Date.now()),3e4);return()=>clearInterval(t)},[]);let d=(0,i.useMemo)(()=>{let t=(0,u.HM)(n);return{locale:e,dir:(0,o.hh)(e),t,n:(t,n)=>(0,u.ZV)(e,t,n),mw:t=>(0,u._P)(e,t),pct:(t,n)=>(0,u.l9)(e,t,n),dateTime:(t,n)=>(0,u.r6)(e,t,n),date:t=>(0,u.Yq)(e,t),time:t=>(0,u.fU)(e,t),relative:t=>(0,u.om)(e,t,null!=s?s:l),duration:e=>(0,u.a3)(t,e)}},[e,n,s,l]);return(0,r.jsx)(a.Provider,{value:d,children:m})}function m(){let t=(0,i.useContext)(a);if(!t)throw Error("useI18n must be used inside <I18nProvider>");return t}}},t=>{t.O(0,[2978,8441,1255,7358],()=>t(t.s=30201)),_N_E=t.O()}]);