"use strict";const s=Symbol.for("react-aria.i18n.locale"),d=Symbol.for("react-aria.i18n.strings");let o;class a{getStringForLocale(t,r){let n=this.getStringsForLocale(r)[t];if(!n)throw new Error(`Could not find intl message ${t} in ${r} locale`);return n}getStringsForLocale(t){let r=this.strings[t];return r||(r=c(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[s];if(o===void 0){let n=window[d];if(!n)return null;o={};for(let l in n)o[l]=new a({[r]:n[l]},r)}let e=o?.[t];if(!e)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return e}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,e])=>e)),this.defaultLocale=r}}function c(i,t,r="en-US"){if(t[i])return t[i];let e=g(i);if(t[e])return t[e];for(let n in t)if(n.startsWith(e+"-"))return t[n];return t[r]}function g(i){return Intl.Locale?new Intl.Locale(i).language:i.split("-")[0]}exports.$5b160d28a433310d$export$c17fa47878dc55b6=a;
//# sourceMappingURL=LocalizedStringDictionary-DZNwHzto.cjs.js.map
