{"version":3,"sources":["node_modules/@arcgis/core/intl/locale.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { makeHandle as n } from \"../core/handleUtils.js\";\nlet o, t;\nconst e = globalThis.esriConfig?.locale ?? globalThis.dojoConfig?.locale,\n i = globalThis.document?.documentElement;\nfunction r() {\n const n = i?.getAttribute(\"lang\"),\n o = globalThis.navigator?.language;\n return e ?? n ?? o ?? \"en\";\n}\nfunction c() {\n return void 0 === t && (t = r()), t;\n}\nfunction a(n) {\n o = n || void 0, b();\n}\nfunction l(n = c()) {\n const o = /^([a-zA-Z]{2,3})(?:[_-][a-zA-Z0-9]+)*$/.exec(n);\n return o?.[1].toLowerCase();\n}\nconst s = {\n he: !0,\n ar: !0\n};\nfunction u(n = c()) {\n const o = l(n);\n return void 0 !== o && (s[o] || !1);\n}\nconst f = [];\nfunction g(o) {\n return f.push(o), n(() => f.splice(f.indexOf(o), 1));\n}\nconst h = [];\nfunction d(o) {\n return h.push(o), n(() => h.splice(h.indexOf(o), 1));\n}\nfunction b() {\n const n = o ?? r();\n t !== n && ([...h].forEach(o => o(n)), t = n, [...f].forEach(o => o(n)));\n}\nif (globalThis.addEventListener?.(\"languagechange\", b), i) {\n new MutationObserver(() => {\n b();\n }).observe(i, {\n attributeFilter: [\"lang\"]\n });\n}\nexport { d as beforeLocaleChange, r as getDefaultLocale, l as getLanguage, c as getLocale, g as onLocaleChange, u as prefersRTL, a as setLocale };"],"mappings":"wCAKA,IAAIA,EAAGC,EACDC,EAAI,WAAW,YAAY,QAAU,WAAW,YAAY,OAChEC,EAAI,WAAW,UAAU,gBAC3B,SAAS,GAAI,CACX,IAAMC,EAAID,GAAG,aAAa,MAAM,EAC9BH,EAAI,WAAW,WAAW,SAC5B,OAAOE,GAAKE,GAAKJ,GAAK,IACxB,CACA,SAASK,GAAI,CACX,OAAkBJ,IAAX,SAAiBA,EAAI,EAAE,GAAIA,CACpC,CAIA,SAASK,EAAEC,EAAIC,EAAE,EAAG,CAElB,MADU,yCAAyC,KAAKD,CAAC,IAC9C,CAAC,EAAE,YAAY,CAC5B,CASA,IAAME,EAAI,CAAC,EACX,SAASC,EAAEC,EAAG,CACZ,OAAOF,EAAE,KAAKE,CAAC,EAAGC,EAAE,IAAMH,EAAE,OAAOA,EAAE,QAAQE,CAAC,EAAG,CAAC,CAAC,CACrD,CACA,IAAME,EAAI,CAAC,EACX,SAASC,EAAEH,EAAG,CACZ,OAAOE,EAAE,KAAKF,CAAC,EAAGC,EAAE,IAAMC,EAAE,OAAOA,EAAE,QAAQF,CAAC,EAAG,CAAC,CAAC,CACrD,CACA,SAASI,GAAI,CACX,IAAMC,EAAIL,GAAK,EAAE,EACjBM,IAAMD,IAAM,CAAC,GAAGH,CAAC,EAAE,QAAQF,GAAKA,EAAEK,CAAC,CAAC,EAAGC,EAAID,EAAG,CAAC,GAAGP,CAAC,EAAE,QAAQE,GAAKA,EAAEK,CAAC,CAAC,EACxE,CACI,WAAW,mBAAmB,iBAAkBD,CAAC,EAAGG,GACtD,IAAI,iBAAiB,IAAM,CACzBH,EAAE,CACJ,CAAC,EAAE,QAAQG,EAAG,CACZ,gBAAiB,CAAC,MAAM,CAC1B,CAAC","names":["o","t","e","i","n","c","l","n","c","f","g","o","e","h","d","b","n","t","i"],"x_google_ignoreList":[0]}