"use strict";const d=require("./context-XwB7Jud0.cjs.js"),b=require("./LocalizedStringDictionary-DZNwHzto.cjs.js"),p=require("react"),n=new Map,f=new Map;class i{format(e,t){let a=this.strings.getStringForLocale(e,this.locale);return typeof a=="function"?a(t,this):a}plural(e,t,a="cardinal"){let r=t["="+e];if(r)return typeof r=="function"?r():r;let l=this.locale+":"+a,o=n.get(l);o||(o=new Intl.PluralRules(this.locale,{type:a}),n.set(l,o));let s=o.select(e);return r=t[s]||t.other,typeof r=="function"?r():r}number(e){let t=f.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),f.set(this.locale,t)),t.format(e)}select(e,t){let a=e[t]||e.other;return typeof a=="function"?a():a}constructor(e,t){this.locale=e,this.strings=t}}const $=new WeakMap;function h(c){let e=$.get(c);return e||(e=new b.$5b160d28a433310d$export$c17fa47878dc55b6(c),$.set(c,e)),e}function u(c,e){return e&&b.$5b160d28a433310d$export$c17fa47878dc55b6.getGlobalDictionaryForPackage(e)||h(c)}function m(c,e){let{locale:t}=d.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=u(c,e);return p.useMemo(()=>new i(t,a),[t,a])}exports.$6db58dc88e78b024$export$2f817fcdc4b89ae0=i;exports.$fca6afa0e843324b$export$87b761675e8eaa10=u;exports.$fca6afa0e843324b$export$f12b703ca79dfbb1=m;
//# sourceMappingURL=useLocalizedStringFormatter-Dg-fFas4.cjs.js.map
