@formatjs/intl-relativetimeformat 12.2.4 → 12.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (601) hide show
  1. package/index.d.ts +46 -14
  2. package/index.js +358 -52
  3. package/index.js.map +1 -0
  4. package/locale-data/af-NA.js +309 -0
  5. package/locale-data/af.js +309 -0
  6. package/locale-data/agq.js +255 -0
  7. package/locale-data/ak.js +303 -0
  8. package/locale-data/am.js +309 -0
  9. package/locale-data/ar-AE.js +501 -0
  10. package/locale-data/ar-BH.js +501 -0
  11. package/locale-data/ar-DJ.js +501 -0
  12. package/locale-data/ar-DZ.js +501 -0
  13. package/locale-data/ar-EG.js +501 -0
  14. package/locale-data/ar-EH.js +501 -0
  15. package/locale-data/ar-ER.js +501 -0
  16. package/locale-data/ar-IL.js +501 -0
  17. package/locale-data/ar-IQ.js +501 -0
  18. package/locale-data/ar-JO.js +501 -0
  19. package/locale-data/ar-KM.js +501 -0
  20. package/locale-data/ar-KW.js +501 -0
  21. package/locale-data/ar-LB.js +501 -0
  22. package/locale-data/ar-LY.js +501 -0
  23. package/locale-data/ar-MA.js +501 -0
  24. package/locale-data/ar-MR.js +501 -0
  25. package/locale-data/ar-OM.js +501 -0
  26. package/locale-data/ar-PS.js +501 -0
  27. package/locale-data/ar-QA.js +501 -0
  28. package/locale-data/ar-SA.js +501 -0
  29. package/locale-data/ar-SD.js +501 -0
  30. package/locale-data/ar-SO.js +501 -0
  31. package/locale-data/ar-SS.js +501 -0
  32. package/locale-data/ar-SY.js +501 -0
  33. package/locale-data/ar-TD.js +501 -0
  34. package/locale-data/ar-TN.js +501 -0
  35. package/locale-data/ar-YE.js +501 -0
  36. package/locale-data/ar.js +501 -0
  37. package/locale-data/as.js +309 -0
  38. package/locale-data/asa.js +255 -0
  39. package/locale-data/ast.js +309 -0
  40. package/locale-data/az-Cyrl.js +255 -0
  41. package/locale-data/az-Latn.js +303 -0
  42. package/locale-data/az.js +303 -0
  43. package/locale-data/bas.js +255 -0
  44. package/locale-data/be-tarask.js +405 -0
  45. package/locale-data/be.js +405 -0
  46. package/locale-data/bem.js +255 -0
  47. package/locale-data/bez.js +255 -0
  48. package/locale-data/bg.js +309 -0
  49. package/locale-data/bm.js +255 -0
  50. package/locale-data/bn-IN.js +309 -0
  51. package/locale-data/bn.js +309 -0
  52. package/locale-data/bo-IN.js +261 -0
  53. package/locale-data/bo.js +261 -0
  54. package/locale-data/br.js +450 -0
  55. package/locale-data/brx.js +303 -0
  56. package/locale-data/bs-Cyrl.js +345 -0
  57. package/locale-data/bs-Latn.js +357 -0
  58. package/locale-data/bs.js +357 -0
  59. package/locale-data/ca-AD.js +309 -0
  60. package/locale-data/ca-ES-valencia.js +309 -0
  61. package/locale-data/ca-FR.js +309 -0
  62. package/locale-data/ca-IT.js +309 -0
  63. package/locale-data/ca.js +309 -0
  64. package/locale-data/ccp-IN.js +268 -0
  65. package/locale-data/ccp.js +268 -0
  66. package/locale-data/ce.js +303 -0
  67. package/locale-data/ceb.js +255 -0
  68. package/locale-data/cgg.js +255 -0
  69. package/locale-data/chr.js +303 -0
  70. package/locale-data/ckb-IR.js +255 -0
  71. package/locale-data/ckb.js +255 -0
  72. package/locale-data/cs.js +405 -0
  73. package/locale-data/cy.js +501 -0
  74. package/locale-data/da-GL.js +309 -0
  75. package/locale-data/da.js +309 -0
  76. package/locale-data/dav.js +255 -0
  77. package/locale-data/de-AT.js +309 -0
  78. package/locale-data/de-BE.js +309 -0
  79. package/locale-data/de-CH.js +309 -0
  80. package/locale-data/de-IT.js +309 -0
  81. package/locale-data/de-LI.js +309 -0
  82. package/locale-data/de-LU.js +309 -0
  83. package/locale-data/de.js +309 -0
  84. package/locale-data/dje.js +255 -0
  85. package/locale-data/doi.js +255 -0
  86. package/locale-data/dsb.js +399 -0
  87. package/locale-data/dua.js +255 -0
  88. package/locale-data/dyo.js +255 -0
  89. package/locale-data/dz.js +261 -0
  90. package/locale-data/ebu.js +255 -0
  91. package/locale-data/ee-TG.js +309 -0
  92. package/locale-data/ee.js +309 -0
  93. package/locale-data/el-CY.js +309 -0
  94. package/locale-data/el.js +309 -0
  95. package/locale-data/en-001.js +303 -0
  96. package/locale-data/en-150.js +303 -0
  97. package/locale-data/en-AE.js +303 -0
  98. package/locale-data/en-AG.js +303 -0
  99. package/locale-data/en-AI.js +303 -0
  100. package/locale-data/en-AS.js +303 -0
  101. package/locale-data/en-AT.js +303 -0
  102. package/locale-data/en-AU.js +303 -0
  103. package/locale-data/en-BB.js +303 -0
  104. package/locale-data/en-BE.js +303 -0
  105. package/locale-data/en-BI.js +303 -0
  106. package/locale-data/en-BM.js +303 -0
  107. package/locale-data/en-BS.js +303 -0
  108. package/locale-data/en-BW.js +303 -0
  109. package/locale-data/en-BZ.js +303 -0
  110. package/locale-data/en-CA.js +303 -0
  111. package/locale-data/en-CC.js +303 -0
  112. package/locale-data/en-CH.js +303 -0
  113. package/locale-data/en-CK.js +303 -0
  114. package/locale-data/en-CM.js +303 -0
  115. package/locale-data/en-CX.js +303 -0
  116. package/locale-data/en-CY.js +303 -0
  117. package/locale-data/en-DE.js +303 -0
  118. package/locale-data/en-DG.js +303 -0
  119. package/locale-data/en-DK.js +303 -0
  120. package/locale-data/en-DM.js +303 -0
  121. package/locale-data/en-ER.js +303 -0
  122. package/locale-data/en-FI.js +303 -0
  123. package/locale-data/en-FJ.js +303 -0
  124. package/locale-data/en-FK.js +303 -0
  125. package/locale-data/en-FM.js +303 -0
  126. package/locale-data/en-GB.js +303 -0
  127. package/locale-data/en-GD.js +303 -0
  128. package/locale-data/en-GG.js +303 -0
  129. package/locale-data/en-GH.js +303 -0
  130. package/locale-data/en-GI.js +303 -0
  131. package/locale-data/en-GM.js +303 -0
  132. package/locale-data/en-GU.js +303 -0
  133. package/locale-data/en-GY.js +303 -0
  134. package/locale-data/en-HK.js +303 -0
  135. package/locale-data/en-IE.js +303 -0
  136. package/locale-data/en-IL.js +303 -0
  137. package/locale-data/en-IM.js +303 -0
  138. package/locale-data/en-IN.js +303 -0
  139. package/locale-data/en-IO.js +303 -0
  140. package/locale-data/en-JE.js +303 -0
  141. package/locale-data/en-JM.js +303 -0
  142. package/locale-data/en-KE.js +303 -0
  143. package/locale-data/en-KI.js +303 -0
  144. package/locale-data/en-KN.js +303 -0
  145. package/locale-data/en-KY.js +303 -0
  146. package/locale-data/en-LC.js +303 -0
  147. package/locale-data/en-LR.js +303 -0
  148. package/locale-data/en-LS.js +303 -0
  149. package/locale-data/en-MG.js +303 -0
  150. package/locale-data/en-MH.js +303 -0
  151. package/locale-data/en-MO.js +303 -0
  152. package/locale-data/en-MP.js +303 -0
  153. package/locale-data/en-MS.js +303 -0
  154. package/locale-data/en-MT.js +303 -0
  155. package/locale-data/en-MU.js +303 -0
  156. package/locale-data/en-MW.js +303 -0
  157. package/locale-data/en-MY.js +303 -0
  158. package/locale-data/en-NA.js +303 -0
  159. package/locale-data/en-NF.js +303 -0
  160. package/locale-data/en-NG.js +303 -0
  161. package/locale-data/en-NL.js +303 -0
  162. package/locale-data/en-NR.js +303 -0
  163. package/locale-data/en-NU.js +303 -0
  164. package/locale-data/en-NZ.js +303 -0
  165. package/locale-data/en-PG.js +303 -0
  166. package/locale-data/en-PH.js +303 -0
  167. package/locale-data/en-PK.js +303 -0
  168. package/locale-data/en-PN.js +303 -0
  169. package/locale-data/en-PR.js +303 -0
  170. package/locale-data/en-PW.js +303 -0
  171. package/locale-data/en-RW.js +303 -0
  172. package/locale-data/en-SB.js +303 -0
  173. package/locale-data/en-SC.js +303 -0
  174. package/locale-data/en-SD.js +303 -0
  175. package/locale-data/en-SE.js +303 -0
  176. package/locale-data/en-SG.js +303 -0
  177. package/locale-data/en-SH.js +303 -0
  178. package/locale-data/en-SI.js +303 -0
  179. package/locale-data/en-SL.js +303 -0
  180. package/locale-data/en-SS.js +303 -0
  181. package/locale-data/en-SX.js +303 -0
  182. package/locale-data/en-SZ.js +303 -0
  183. package/locale-data/en-TC.js +303 -0
  184. package/locale-data/en-TK.js +303 -0
  185. package/locale-data/en-TO.js +303 -0
  186. package/locale-data/en-TT.js +303 -0
  187. package/locale-data/en-TV.js +303 -0
  188. package/locale-data/en-TZ.js +303 -0
  189. package/locale-data/en-UG.js +303 -0
  190. package/locale-data/en-UM.js +303 -0
  191. package/locale-data/en-VC.js +303 -0
  192. package/locale-data/en-VG.js +303 -0
  193. package/locale-data/en-VI.js +303 -0
  194. package/locale-data/en-VU.js +303 -0
  195. package/locale-data/en-WS.js +303 -0
  196. package/locale-data/en-ZA.js +303 -0
  197. package/locale-data/en-ZM.js +303 -0
  198. package/locale-data/en-ZW.js +303 -0
  199. package/locale-data/en.js +303 -0
  200. package/locale-data/eo.js +303 -0
  201. package/locale-data/es-419.js +309 -0
  202. package/locale-data/es-AR.js +309 -0
  203. package/locale-data/es-BO.js +309 -0
  204. package/locale-data/es-BR.js +309 -0
  205. package/locale-data/es-BZ.js +309 -0
  206. package/locale-data/es-CL.js +309 -0
  207. package/locale-data/es-CO.js +309 -0
  208. package/locale-data/es-CR.js +309 -0
  209. package/locale-data/es-CU.js +309 -0
  210. package/locale-data/es-DO.js +309 -0
  211. package/locale-data/es-EA.js +309 -0
  212. package/locale-data/es-EC.js +309 -0
  213. package/locale-data/es-GQ.js +309 -0
  214. package/locale-data/es-GT.js +309 -0
  215. package/locale-data/es-HN.js +309 -0
  216. package/locale-data/es-IC.js +309 -0
  217. package/locale-data/es-MX.js +309 -0
  218. package/locale-data/es-NI.js +309 -0
  219. package/locale-data/es-PA.js +309 -0
  220. package/locale-data/es-PE.js +309 -0
  221. package/locale-data/es-PH.js +309 -0
  222. package/locale-data/es-PR.js +309 -0
  223. package/locale-data/es-PY.js +309 -0
  224. package/locale-data/es-SV.js +309 -0
  225. package/locale-data/es-US.js +309 -0
  226. package/locale-data/es-UY.js +309 -0
  227. package/locale-data/es-VE.js +309 -0
  228. package/locale-data/es.js +309 -0
  229. package/locale-data/et.js +309 -0
  230. package/locale-data/eu.js +309 -0
  231. package/locale-data/ewo.js +255 -0
  232. package/locale-data/fa-AF.js +309 -0
  233. package/locale-data/fa.js +309 -0
  234. package/locale-data/ff-Adlm-BF.js +303 -0
  235. package/locale-data/ff-Adlm-CM.js +303 -0
  236. package/locale-data/ff-Adlm-GH.js +303 -0
  237. package/locale-data/ff-Adlm-GM.js +303 -0
  238. package/locale-data/ff-Adlm-GW.js +303 -0
  239. package/locale-data/ff-Adlm-LR.js +303 -0
  240. package/locale-data/ff-Adlm-MR.js +303 -0
  241. package/locale-data/ff-Adlm-NE.js +303 -0
  242. package/locale-data/ff-Adlm-NG.js +303 -0
  243. package/locale-data/ff-Adlm-SL.js +303 -0
  244. package/locale-data/ff-Adlm-SN.js +303 -0
  245. package/locale-data/ff-Adlm.js +303 -0
  246. package/locale-data/ff-Latn-BF.js +255 -0
  247. package/locale-data/ff-Latn-CM.js +255 -0
  248. package/locale-data/ff-Latn-GH.js +255 -0
  249. package/locale-data/ff-Latn-GM.js +255 -0
  250. package/locale-data/ff-Latn-GN.js +255 -0
  251. package/locale-data/ff-Latn-GW.js +255 -0
  252. package/locale-data/ff-Latn-LR.js +255 -0
  253. package/locale-data/ff-Latn-MR.js +255 -0
  254. package/locale-data/ff-Latn-NE.js +255 -0
  255. package/locale-data/ff-Latn-NG.js +255 -0
  256. package/locale-data/ff-Latn-SL.js +255 -0
  257. package/locale-data/ff-Latn.js +255 -0
  258. package/locale-data/ff.js +255 -0
  259. package/locale-data/fi.js +309 -0
  260. package/locale-data/fil.js +309 -0
  261. package/locale-data/fo-DK.js +309 -0
  262. package/locale-data/fo.js +309 -0
  263. package/locale-data/fr-BE.js +309 -0
  264. package/locale-data/fr-BF.js +309 -0
  265. package/locale-data/fr-BI.js +309 -0
  266. package/locale-data/fr-BJ.js +309 -0
  267. package/locale-data/fr-BL.js +309 -0
  268. package/locale-data/fr-CA.js +309 -0
  269. package/locale-data/fr-CD.js +309 -0
  270. package/locale-data/fr-CF.js +309 -0
  271. package/locale-data/fr-CG.js +309 -0
  272. package/locale-data/fr-CH.js +309 -0
  273. package/locale-data/fr-CI.js +309 -0
  274. package/locale-data/fr-CM.js +309 -0
  275. package/locale-data/fr-DJ.js +309 -0
  276. package/locale-data/fr-DZ.js +309 -0
  277. package/locale-data/fr-GA.js +309 -0
  278. package/locale-data/fr-GF.js +309 -0
  279. package/locale-data/fr-GN.js +309 -0
  280. package/locale-data/fr-GP.js +309 -0
  281. package/locale-data/fr-GQ.js +309 -0
  282. package/locale-data/fr-HT.js +309 -0
  283. package/locale-data/fr-KM.js +309 -0
  284. package/locale-data/fr-LU.js +309 -0
  285. package/locale-data/fr-MA.js +309 -0
  286. package/locale-data/fr-MC.js +309 -0
  287. package/locale-data/fr-MF.js +309 -0
  288. package/locale-data/fr-MG.js +309 -0
  289. package/locale-data/fr-ML.js +309 -0
  290. package/locale-data/fr-MQ.js +309 -0
  291. package/locale-data/fr-MR.js +309 -0
  292. package/locale-data/fr-MU.js +309 -0
  293. package/locale-data/fr-NC.js +309 -0
  294. package/locale-data/fr-NE.js +309 -0
  295. package/locale-data/fr-PF.js +309 -0
  296. package/locale-data/fr-PM.js +309 -0
  297. package/locale-data/fr-RE.js +309 -0
  298. package/locale-data/fr-RW.js +309 -0
  299. package/locale-data/fr-SC.js +309 -0
  300. package/locale-data/fr-SN.js +309 -0
  301. package/locale-data/fr-SY.js +309 -0
  302. package/locale-data/fr-TD.js +309 -0
  303. package/locale-data/fr-TG.js +309 -0
  304. package/locale-data/fr-TN.js +309 -0
  305. package/locale-data/fr-VU.js +309 -0
  306. package/locale-data/fr-WF.js +309 -0
  307. package/locale-data/fr-YT.js +309 -0
  308. package/locale-data/fr.js +309 -0
  309. package/locale-data/fur.js +303 -0
  310. package/locale-data/fy.js +303 -0
  311. package/locale-data/ga-GB.js +453 -0
  312. package/locale-data/ga.js +453 -0
  313. package/locale-data/gd.js +411 -0
  314. package/locale-data/gl.js +309 -0
  315. package/locale-data/gsw-FR.js +261 -0
  316. package/locale-data/gsw-LI.js +261 -0
  317. package/locale-data/gsw.js +261 -0
  318. package/locale-data/gu.js +309 -0
  319. package/locale-data/guz.js +255 -0
  320. package/locale-data/gv.js +255 -0
  321. package/locale-data/ha-GH.js +303 -0
  322. package/locale-data/ha-NE.js +303 -0
  323. package/locale-data/ha.js +303 -0
  324. package/locale-data/haw.js +255 -0
  325. package/locale-data/he.js +379 -0
  326. package/locale-data/hi.js +309 -0
  327. package/locale-data/hr-BA.js +357 -0
  328. package/locale-data/hr.js +357 -0
  329. package/locale-data/hsb.js +399 -0
  330. package/locale-data/hu.js +309 -0
  331. package/locale-data/hy.js +309 -0
  332. package/locale-data/ia.js +303 -0
  333. package/locale-data/id.js +261 -0
  334. package/locale-data/ig.js +255 -0
  335. package/locale-data/ii.js +261 -0
  336. package/locale-data/is.js +309 -0
  337. package/locale-data/it-CH.js +309 -0
  338. package/locale-data/it-SM.js +309 -0
  339. package/locale-data/it-VA.js +309 -0
  340. package/locale-data/it.js +309 -0
  341. package/locale-data/ja.js +261 -0
  342. package/locale-data/jgo.js +291 -0
  343. package/locale-data/jmc.js +255 -0
  344. package/locale-data/jv.js +255 -0
  345. package/locale-data/ka.js +309 -0
  346. package/locale-data/kab.js +255 -0
  347. package/locale-data/kam.js +255 -0
  348. package/locale-data/kde.js +255 -0
  349. package/locale-data/kea.js +255 -0
  350. package/locale-data/kgp.js +277 -0
  351. package/locale-data/khq.js +255 -0
  352. package/locale-data/ki.js +255 -0
  353. package/locale-data/kk.js +309 -0
  354. package/locale-data/kkj.js +255 -0
  355. package/locale-data/kl.js +297 -0
  356. package/locale-data/kln.js +255 -0
  357. package/locale-data/km.js +261 -0
  358. package/locale-data/kn.js +309 -0
  359. package/locale-data/ko-KP.js +261 -0
  360. package/locale-data/ko.js +261 -0
  361. package/locale-data/kok.js +303 -0
  362. package/locale-data/ks-Arab.js +255 -0
  363. package/locale-data/ks.js +255 -0
  364. package/locale-data/ksb.js +255 -0
  365. package/locale-data/ksf.js +255 -0
  366. package/locale-data/ksh.js +273 -0
  367. package/locale-data/ku.js +303 -0
  368. package/locale-data/kw.js +255 -0
  369. package/locale-data/ky.js +309 -0
  370. package/locale-data/lag.js +255 -0
  371. package/locale-data/lb.js +303 -0
  372. package/locale-data/lg.js +255 -0
  373. package/locale-data/lkt.js +255 -0
  374. package/locale-data/ln-AO.js +255 -0
  375. package/locale-data/ln-CF.js +255 -0
  376. package/locale-data/ln-CG.js +255 -0
  377. package/locale-data/ln.js +255 -0
  378. package/locale-data/lo.js +261 -0
  379. package/locale-data/lrc-IQ.js +255 -0
  380. package/locale-data/lrc.js +255 -0
  381. package/locale-data/lt.js +405 -0
  382. package/locale-data/lu.js +255 -0
  383. package/locale-data/luo.js +255 -0
  384. package/locale-data/luy.js +255 -0
  385. package/locale-data/lv.js +357 -0
  386. package/locale-data/mai.js +255 -0
  387. package/locale-data/mas-TZ.js +255 -0
  388. package/locale-data/mas.js +255 -0
  389. package/locale-data/mer.js +255 -0
  390. package/locale-data/mfe.js +255 -0
  391. package/locale-data/mg.js +255 -0
  392. package/locale-data/mgh.js +255 -0
  393. package/locale-data/mgo.js +258 -0
  394. package/locale-data/mi.js +255 -0
  395. package/locale-data/mk.js +309 -0
  396. package/locale-data/ml.js +309 -0
  397. package/locale-data/mn.js +309 -0
  398. package/locale-data/mni-Beng.js +255 -0
  399. package/locale-data/mni.js +255 -0
  400. package/locale-data/mr.js +303 -0
  401. package/locale-data/ms-BN.js +261 -0
  402. package/locale-data/ms-ID.js +261 -0
  403. package/locale-data/ms-SG.js +261 -0
  404. package/locale-data/ms.js +261 -0
  405. package/locale-data/mt.js +447 -0
  406. package/locale-data/mua.js +255 -0
  407. package/locale-data/my.js +261 -0
  408. package/locale-data/mzn.js +255 -0
  409. package/locale-data/naq.js +255 -0
  410. package/locale-data/nb-SJ.js +309 -0
  411. package/locale-data/nb.js +309 -0
  412. package/locale-data/nd.js +255 -0
  413. package/locale-data/nds-NL.js +255 -0
  414. package/locale-data/nds.js +255 -0
  415. package/locale-data/ne-IN.js +309 -0
  416. package/locale-data/ne.js +309 -0
  417. package/locale-data/nl-AW.js +309 -0
  418. package/locale-data/nl-BE.js +309 -0
  419. package/locale-data/nl-BQ.js +309 -0
  420. package/locale-data/nl-CW.js +309 -0
  421. package/locale-data/nl-SR.js +309 -0
  422. package/locale-data/nl-SX.js +309 -0
  423. package/locale-data/nl.js +309 -0
  424. package/locale-data/nmg.js +255 -0
  425. package/locale-data/nn.js +309 -0
  426. package/locale-data/nnh.js +255 -0
  427. package/locale-data/no.js +309 -0
  428. package/locale-data/nus.js +255 -0
  429. package/locale-data/nyn.js +255 -0
  430. package/locale-data/om-KE.js +303 -0
  431. package/locale-data/om.js +303 -0
  432. package/locale-data/or.js +303 -0
  433. package/locale-data/os-RU.js +273 -0
  434. package/locale-data/os.js +273 -0
  435. package/locale-data/pa-Arab.js +255 -0
  436. package/locale-data/pa-Guru.js +303 -0
  437. package/locale-data/pa.js +303 -0
  438. package/locale-data/pcm.js +303 -0
  439. package/locale-data/pl.js +405 -0
  440. package/locale-data/ps-PK.js +303 -0
  441. package/locale-data/ps.js +303 -0
  442. package/locale-data/pt-AO.js +309 -0
  443. package/locale-data/pt-CH.js +309 -0
  444. package/locale-data/pt-CV.js +309 -0
  445. package/locale-data/pt-GQ.js +309 -0
  446. package/locale-data/pt-GW.js +309 -0
  447. package/locale-data/pt-LU.js +309 -0
  448. package/locale-data/pt-MO.js +309 -0
  449. package/locale-data/pt-MZ.js +309 -0
  450. package/locale-data/pt-PT.js +309 -0
  451. package/locale-data/pt-ST.js +309 -0
  452. package/locale-data/pt-TL.js +309 -0
  453. package/locale-data/pt.js +309 -0
  454. package/locale-data/qu-BO.js +255 -0
  455. package/locale-data/qu-EC.js +255 -0
  456. package/locale-data/qu.js +255 -0
  457. package/locale-data/rm.js +309 -0
  458. package/locale-data/rn.js +255 -0
  459. package/locale-data/ro-MD.js +357 -0
  460. package/locale-data/ro.js +357 -0
  461. package/locale-data/rof.js +255 -0
  462. package/locale-data/ru-BY.js +405 -0
  463. package/locale-data/ru-KG.js +405 -0
  464. package/locale-data/ru-KZ.js +405 -0
  465. package/locale-data/ru-MD.js +405 -0
  466. package/locale-data/ru-UA.js +405 -0
  467. package/locale-data/ru.js +405 -0
  468. package/locale-data/rw.js +255 -0
  469. package/locale-data/rwk.js +255 -0
  470. package/locale-data/sa.js +255 -0
  471. package/locale-data/sah.js +261 -0
  472. package/locale-data/saq.js +255 -0
  473. package/locale-data/sat-Olck.js +255 -0
  474. package/locale-data/sat.js +255 -0
  475. package/locale-data/sbp.js +255 -0
  476. package/locale-data/sc.js +303 -0
  477. package/locale-data/sd-Arab.js +303 -0
  478. package/locale-data/sd-Deva.js +255 -0
  479. package/locale-data/sd.js +303 -0
  480. package/locale-data/se-FI.js +357 -0
  481. package/locale-data/se-SE.js +345 -0
  482. package/locale-data/se.js +345 -0
  483. package/locale-data/seh.js +255 -0
  484. package/locale-data/ses.js +255 -0
  485. package/locale-data/sg.js +255 -0
  486. package/locale-data/shi-Latn.js +255 -0
  487. package/locale-data/shi-Tfng.js +255 -0
  488. package/locale-data/shi.js +255 -0
  489. package/locale-data/si.js +309 -0
  490. package/locale-data/sk.js +405 -0
  491. package/locale-data/sl.js +405 -0
  492. package/locale-data/smn.js +255 -0
  493. package/locale-data/sn.js +255 -0
  494. package/locale-data/so-DJ.js +303 -0
  495. package/locale-data/so-ET.js +303 -0
  496. package/locale-data/so-KE.js +303 -0
  497. package/locale-data/so.js +303 -0
  498. package/locale-data/sq-MK.js +303 -0
  499. package/locale-data/sq-XK.js +303 -0
  500. package/locale-data/sq.js +303 -0
  501. package/locale-data/sr-Cyrl-BA.js +357 -0
  502. package/locale-data/sr-Cyrl-ME.js +357 -0
  503. package/locale-data/sr-Cyrl-XK.js +357 -0
  504. package/locale-data/sr-Cyrl.js +357 -0
  505. package/locale-data/sr-Latn-BA.js +357 -0
  506. package/locale-data/sr-Latn-ME.js +357 -0
  507. package/locale-data/sr-Latn-XK.js +357 -0
  508. package/locale-data/sr-Latn.js +357 -0
  509. package/locale-data/sr.js +357 -0
  510. package/locale-data/su-Latn.js +255 -0
  511. package/locale-data/su.js +255 -0
  512. package/locale-data/sv-AX.js +309 -0
  513. package/locale-data/sv-FI.js +309 -0
  514. package/locale-data/sv.js +309 -0
  515. package/locale-data/sw-CD.js +309 -0
  516. package/locale-data/sw-KE.js +309 -0
  517. package/locale-data/sw-UG.js +309 -0
  518. package/locale-data/sw.js +309 -0
  519. package/locale-data/ta-LK.js +309 -0
  520. package/locale-data/ta-MY.js +309 -0
  521. package/locale-data/ta-SG.js +309 -0
  522. package/locale-data/ta.js +309 -0
  523. package/locale-data/te.js +309 -0
  524. package/locale-data/teo-KE.js +255 -0
  525. package/locale-data/teo.js +255 -0
  526. package/locale-data/tg.js +255 -0
  527. package/locale-data/th.js +261 -0
  528. package/locale-data/ti-ER.js +303 -0
  529. package/locale-data/ti.js +303 -0
  530. package/locale-data/tk.js +303 -0
  531. package/locale-data/to.js +261 -0
  532. package/locale-data/tr-CY.js +309 -0
  533. package/locale-data/tr.js +309 -0
  534. package/locale-data/tt.js +255 -0
  535. package/locale-data/twq.js +255 -0
  536. package/locale-data/tzm.js +255 -0
  537. package/locale-data/ug.js +297 -0
  538. package/locale-data/uk.js +405 -0
  539. package/locale-data/und.js +255 -0
  540. package/locale-data/ur-IN.js +309 -0
  541. package/locale-data/ur.js +309 -0
  542. package/locale-data/uz-Arab.js +255 -0
  543. package/locale-data/uz-Cyrl.js +297 -0
  544. package/locale-data/uz-Latn.js +303 -0
  545. package/locale-data/uz.js +303 -0
  546. package/locale-data/vai-Latn.js +255 -0
  547. package/locale-data/vai-Vaii.js +255 -0
  548. package/locale-data/vai.js +255 -0
  549. package/locale-data/vi.js +261 -0
  550. package/locale-data/vun.js +255 -0
  551. package/locale-data/wae.js +303 -0
  552. package/locale-data/wo.js +255 -0
  553. package/locale-data/xh.js +255 -0
  554. package/locale-data/xog.js +255 -0
  555. package/locale-data/yav.js +255 -0
  556. package/locale-data/yi.js +270 -0
  557. package/locale-data/yo-BJ.js +261 -0
  558. package/locale-data/yo.js +261 -0
  559. package/locale-data/yrl-CO.js +309 -0
  560. package/locale-data/yrl-VE.js +309 -0
  561. package/locale-data/yrl.js +309 -0
  562. package/locale-data/yue-Hans.js +261 -0
  563. package/locale-data/yue-Hant.js +261 -0
  564. package/locale-data/yue.js +261 -0
  565. package/locale-data/zgh.js +255 -0
  566. package/locale-data/zh-Hans-HK.js +261 -0
  567. package/locale-data/zh-Hans-MO.js +261 -0
  568. package/locale-data/zh-Hans-SG.js +261 -0
  569. package/locale-data/zh-Hans.js +261 -0
  570. package/locale-data/zh-Hant-HK.js +261 -0
  571. package/locale-data/zh-Hant-MO.js +261 -0
  572. package/locale-data/zh-Hant.js +261 -0
  573. package/locale-data/zh.js +261 -0
  574. package/locale-data/zu.js +309 -0
  575. package/package.json +5 -6
  576. package/polyfill-force.d.ts +1 -1
  577. package/polyfill-force.js +416 -1
  578. package/polyfill-force.js.map +1 -0
  579. package/polyfill.d.ts +1 -1
  580. package/polyfill.iife.js +4708 -7257
  581. package/polyfill.js +1008 -2
  582. package/polyfill.js.map +1 -0
  583. package/should-polyfill.d.ts +5 -1
  584. package/should-polyfill.js +583 -8
  585. package/should-polyfill.js.map +1 -0
  586. package/abstract/FormatRelativeTime.d.ts +0 -4
  587. package/abstract/FormatRelativeTime.js +0 -10
  588. package/abstract/FormatRelativeTimeToParts.d.ts +0 -4
  589. package/abstract/FormatRelativeTimeToParts.js +0 -5
  590. package/abstract/InitializeRelativeTimeFormat.d.ts +0 -8
  591. package/abstract/InitializeRelativeTimeFormat.js +0 -42
  592. package/abstract/MakePartsList.d.ts +0 -1
  593. package/abstract/MakePartsList.js +0 -23
  594. package/abstract/PartitionRelativeTimePattern.d.ts +0 -4
  595. package/abstract/PartitionRelativeTimePattern.js +0 -43
  596. package/abstract/SingularRelativeTimeUnit.d.ts +0 -6
  597. package/abstract/SingularRelativeTimeUnit.js +0 -20
  598. package/get_internal_slots.d.ts +0 -2
  599. package/get_internal_slots.js +0 -12
  600. package/supported-locales.generated.d.ts +0 -1
  601. package/supported-locales.generated.js +0 -573
package/polyfill.js CHANGED
@@ -1,5 +1,1003 @@
1
- import RelativeTimeFormat from "./index.js";
2
- import { shouldPolyfill } from "./should-polyfill.js";
1
+ import { LookupSupportedLocales, ResolveLocale, match } from "@formatjs/intl-localematcher";
2
+ //#region packages/ecma262-abstract/ToString.js
3
+ /**
4
+ * https://tc39.es/ecma262/#sec-tostring
5
+ */
6
+ function ToString(o) {
7
+ if (typeof o === "symbol") throw TypeError("Cannot convert a Symbol value to a string");
8
+ return String(o);
9
+ }
10
+ //#endregion
11
+ //#region packages/ecma402-abstract/CanonicalizeLocaleList.js
12
+ /**
13
+ * http://ecma-international.org/ecma-402/7.0/index.html#sec-canonicalizelocalelist
14
+ * @param locales
15
+ */
16
+ function CanonicalizeLocaleList(locales) {
17
+ return Intl.getCanonicalLocales(locales);
18
+ }
19
+ //#endregion
20
+ //#region packages/ecma262-abstract/ToObject.js
21
+ /**
22
+ * https://tc39.es/ecma262/#sec-toobject
23
+ */
24
+ function ToObject(arg) {
25
+ if (arg == null) throw new TypeError("undefined/null cannot be converted to object");
26
+ return Object(arg);
27
+ }
28
+ //#endregion
29
+ //#region packages/ecma402-abstract/GetOption.js
30
+ /**
31
+ * https://tc39.es/ecma402/#sec-getoption
32
+ * @param opts
33
+ * @param prop
34
+ * @param type
35
+ * @param values
36
+ * @param fallback
37
+ */
38
+ function GetOption(opts, prop, type, values, fallback) {
39
+ if (typeof opts !== "object") throw new TypeError("Options must be an object");
40
+ let value = opts[prop];
41
+ if (value !== void 0) {
42
+ if (type !== "boolean" && type !== "string") throw new TypeError("invalid type");
43
+ if (type === "boolean") value = Boolean(value);
44
+ if (type === "string") value = ToString(value);
45
+ if (values !== void 0 && !values.filter((val) => val == value).length) throw new RangeError(`${value} is not within ${values.join(", ")}`);
46
+ return value;
47
+ }
48
+ return fallback;
49
+ }
50
+ //#endregion
51
+ //#region packages/ecma402-abstract/SupportedLocales.js
52
+ /**
53
+ * https://tc39.es/ecma402/#sec-supportedlocales
54
+ * @param availableLocales
55
+ * @param requestedLocales
56
+ * @param options
57
+ */
58
+ function SupportedLocales(availableLocales, requestedLocales, options) {
59
+ let matcher = "best fit";
60
+ if (options !== void 0) {
61
+ options = ToObject(options);
62
+ matcher = GetOption(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
63
+ }
64
+ if (matcher === "best fit") return LookupSupportedLocales(Array.from(availableLocales), requestedLocales);
65
+ return LookupSupportedLocales(Array.from(availableLocales), requestedLocales);
66
+ }
67
+ //#endregion
68
+ //#region packages/ecma402-abstract/CoerceOptionsToObject.js
69
+ /**
70
+ * https://tc39.es/ecma402/#sec-coerceoptionstoobject
71
+ * @param options
72
+ * @returns
73
+ */
74
+ function CoerceOptionsToObject(options) {
75
+ if (typeof options === "undefined") return Object.create(null);
76
+ return ToObject(options);
77
+ }
78
+ //#endregion
79
+ //#region node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/index.js
80
+ function memoize(fn, options) {
81
+ const cache = options && options.cache ? options.cache : cacheDefault;
82
+ const serializer = options && options.serializer ? options.serializer : serializerDefault;
83
+ return (options && options.strategy ? options.strategy : strategyDefault)(fn, {
84
+ cache,
85
+ serializer
86
+ });
87
+ }
88
+ function isPrimitive(value) {
89
+ return value == null || typeof value === "number" || typeof value === "boolean";
90
+ }
91
+ function monadic(fn, cache, serializer, arg) {
92
+ const cacheKey = isPrimitive(arg) ? arg : serializer(arg);
93
+ let computedValue = cache.get(cacheKey);
94
+ if (typeof computedValue === "undefined") {
95
+ computedValue = fn.call(this, arg);
96
+ cache.set(cacheKey, computedValue);
97
+ }
98
+ return computedValue;
99
+ }
100
+ function variadic(fn, cache, serializer) {
101
+ const args = Array.prototype.slice.call(arguments, 3);
102
+ const cacheKey = serializer(args);
103
+ let computedValue = cache.get(cacheKey);
104
+ if (typeof computedValue === "undefined") {
105
+ computedValue = fn.apply(this, args);
106
+ cache.set(cacheKey, computedValue);
107
+ }
108
+ return computedValue;
109
+ }
110
+ function assemble(fn, context, strategy, cache, serialize) {
111
+ return strategy.bind(context, fn, cache, serialize);
112
+ }
113
+ function strategyDefault(fn, options) {
114
+ const strategy = fn.length === 1 ? monadic : variadic;
115
+ return assemble(fn, this, strategy, options.cache.create(), options.serializer);
116
+ }
117
+ function strategyVariadic(fn, options) {
118
+ return assemble(fn, this, variadic, options.cache.create(), options.serializer);
119
+ }
120
+ function strategyMonadic(fn, options) {
121
+ return assemble(fn, this, monadic, options.cache.create(), options.serializer);
122
+ }
123
+ const serializerDefault = function() {
124
+ return JSON.stringify(arguments);
125
+ };
126
+ var ObjectWithoutPrototypeCache = class {
127
+ constructor() {
128
+ this.cache = Object.create(null);
129
+ }
130
+ get(key) {
131
+ return this.cache[key];
132
+ }
133
+ set(key, value) {
134
+ this.cache[key] = value;
135
+ }
136
+ };
137
+ const cacheDefault = { create: function create() {
138
+ return new ObjectWithoutPrototypeCache();
139
+ } };
140
+ const strategies = {
141
+ variadic: strategyVariadic,
142
+ monadic: strategyMonadic
143
+ };
144
+ //#endregion
145
+ //#region packages/ecma402-abstract/utils.js
146
+ function invariant(condition, message, Err = Error) {
147
+ if (!condition) throw new Err(message);
148
+ }
149
+ const createMemoizedNumberFormat = memoize((...args) => new Intl.NumberFormat(...args), { strategy: strategies.variadic });
150
+ const createMemoizedPluralRules = memoize((...args) => new Intl.PluralRules(...args), { strategy: strategies.variadic });
151
+ memoize((...args) => new Intl.Locale(...args), { strategy: strategies.variadic });
152
+ memoize((...args) => new Intl.ListFormat(...args), { strategy: strategies.variadic });
153
+ //#endregion
154
+ //#region packages/ecma402-abstract/RelativeTimeFormat/InitializeRelativeTimeFormat.js
155
+ const NUMBERING_SYSTEM_REGEX = /^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i;
156
+ function InitializeRelativeTimeFormat(rtf, locales, options, { getInternalSlots, availableLocales, relevantExtensionKeys, localeData, getDefaultLocale }) {
157
+ const internalSlots = getInternalSlots(rtf);
158
+ internalSlots.initializedRelativeTimeFormat = true;
159
+ const requestedLocales = CanonicalizeLocaleList(locales);
160
+ const opt = Object.create(null);
161
+ const opts = CoerceOptionsToObject(options);
162
+ opt.localeMatcher = GetOption(opts, "localeMatcher", "string", ["best fit", "lookup"], "best fit");
163
+ const numberingSystem = GetOption(opts, "numberingSystem", "string", void 0, void 0);
164
+ if (numberingSystem !== void 0) {
165
+ if (!NUMBERING_SYSTEM_REGEX.test(numberingSystem)) throw new RangeError(`Invalid numbering system ${numberingSystem}`);
166
+ }
167
+ opt.nu = numberingSystem;
168
+ const r = ResolveLocale(availableLocales, requestedLocales, opt, relevantExtensionKeys, localeData, getDefaultLocale);
169
+ const { locale, nu } = r;
170
+ internalSlots.locale = locale;
171
+ internalSlots.style = GetOption(opts, "style", "string", [
172
+ "long",
173
+ "narrow",
174
+ "short"
175
+ ], "long");
176
+ internalSlots.numeric = GetOption(opts, "numeric", "string", ["always", "auto"], "always");
177
+ const fields = localeData[r.dataLocale];
178
+ invariant(!!fields, `Missing locale data for ${r.dataLocale}`);
179
+ internalSlots.fields = fields;
180
+ internalSlots.numberFormat = createMemoizedNumberFormat(locales);
181
+ internalSlots.pluralRules = createMemoizedPluralRules(locales);
182
+ internalSlots.numberingSystem = nu;
183
+ return rtf;
184
+ }
185
+ //#endregion
186
+ //#region packages/ecma262-abstract/SameValue.js
187
+ /**
188
+ * https://www.ecma-international.org/ecma-262/11.0/index.html#sec-samevalue
189
+ */
190
+ function SameValue(x, y) {
191
+ if (Object.is) return Object.is(x, y);
192
+ if (x === y) return x !== 0 || 1 / x === 1 / y;
193
+ return x !== x && y !== y;
194
+ }
195
+ //#endregion
196
+ //#region packages/ecma262-abstract/Type.js
197
+ /**
198
+ * https://www.ecma-international.org/ecma-262/11.0/index.html#sec-type
199
+ */
200
+ function Type(x) {
201
+ if (x === null) return "Null";
202
+ if (typeof x === "undefined") return "Undefined";
203
+ if (typeof x === "function" || typeof x === "object") return "Object";
204
+ if (typeof x === "number") return "Number";
205
+ if (typeof x === "boolean") return "Boolean";
206
+ if (typeof x === "string") return "String";
207
+ if (typeof x === "symbol") return "Symbol";
208
+ if (typeof x === "bigint") return "BigInt";
209
+ }
210
+ //#endregion
211
+ //#region packages/ecma402-abstract/RelativeTimeFormat/SingularRelativeTimeUnit.js
212
+ /**
213
+ * https://tc39.es/proposal-intl-relative-time/#sec-singularrelativetimeunit
214
+ * @param unit
215
+ */
216
+ function SingularRelativeTimeUnit(unit) {
217
+ invariant(Type(unit) === "String", "unit must be a string");
218
+ if (unit === "seconds") return "second";
219
+ if (unit === "minutes") return "minute";
220
+ if (unit === "hours") return "hour";
221
+ if (unit === "days") return "day";
222
+ if (unit === "weeks") return "week";
223
+ if (unit === "months") return "month";
224
+ if (unit === "quarters") return "quarter";
225
+ if (unit === "years") return "year";
226
+ if (unit !== "second" && unit !== "minute" && unit !== "hour" && unit !== "day" && unit !== "week" && unit !== "month" && unit !== "quarter" && unit !== "year") throw new RangeError("invalid unit");
227
+ return unit;
228
+ }
229
+ //#endregion
230
+ //#region packages/ecma402-abstract/PartitionPattern.js
231
+ /**
232
+ * Partition a pattern into a list of literals and placeholders
233
+ * https://tc39.es/ecma402/#sec-partitionpattern
234
+ * @param pattern
235
+ */
236
+ function PartitionPattern(pattern) {
237
+ const result = [];
238
+ let beginIndex = pattern.indexOf("{");
239
+ let endIndex = 0;
240
+ let nextIndex = 0;
241
+ const length = pattern.length;
242
+ while (beginIndex < pattern.length && beginIndex > -1) {
243
+ endIndex = pattern.indexOf("}", beginIndex);
244
+ invariant(endIndex > beginIndex, `Invalid pattern ${pattern}`);
245
+ if (beginIndex > nextIndex) result.push({
246
+ type: "literal",
247
+ value: pattern.substring(nextIndex, beginIndex)
248
+ });
249
+ result.push({
250
+ type: pattern.substring(beginIndex + 1, endIndex),
251
+ value: void 0
252
+ });
253
+ nextIndex = endIndex + 1;
254
+ beginIndex = pattern.indexOf("{", nextIndex);
255
+ }
256
+ if (nextIndex < length) result.push({
257
+ type: "literal",
258
+ value: pattern.substring(nextIndex, length)
259
+ });
260
+ return result;
261
+ }
262
+ //#endregion
263
+ //#region packages/ecma402-abstract/RelativeTimeFormat/MakePartsList.js
264
+ function MakePartsList(pattern, unit, parts) {
265
+ const patternParts = PartitionPattern(pattern);
266
+ const result = [];
267
+ for (const patternPart of patternParts) if (patternPart.type === "literal") result.push({
268
+ type: "literal",
269
+ value: patternPart.value
270
+ });
271
+ else {
272
+ invariant(patternPart.type === "0", `Malformed pattern ${pattern}`);
273
+ for (const part of parts) result.push({
274
+ type: part.type,
275
+ value: part.value,
276
+ unit
277
+ });
278
+ }
279
+ return result;
280
+ }
281
+ //#endregion
282
+ //#region packages/ecma402-abstract/RelativeTimeFormat/PartitionRelativeTimePattern.js
283
+ function PartitionRelativeTimePattern(rtf, value, unit, { getInternalSlots }) {
284
+ invariant(Type(value) === "Number", `value must be number, instead got ${typeof value}`, TypeError);
285
+ invariant(Type(unit) === "String", `unit must be number, instead got ${typeof value}`, TypeError);
286
+ if (isNaN(value) || !isFinite(value)) throw new RangeError(`Invalid value ${value}`);
287
+ const resolvedUnit = SingularRelativeTimeUnit(unit);
288
+ const { fields, style, numeric, pluralRules, numberFormat } = getInternalSlots(rtf);
289
+ let entry = resolvedUnit;
290
+ if (style === "short") entry = `${resolvedUnit}-short`;
291
+ else if (style === "narrow") entry = `${resolvedUnit}-narrow`;
292
+ if (!(entry in fields)) entry = resolvedUnit;
293
+ const patterns = fields[entry];
294
+ if (numeric === "auto") {
295
+ if (ToString(value) in patterns) return [{
296
+ type: "literal",
297
+ value: patterns[ToString(value)]
298
+ }];
299
+ }
300
+ let tl = "future";
301
+ if (SameValue(value, -0) || value < 0) tl = "past";
302
+ const po = patterns[tl];
303
+ const fv = typeof numberFormat.formatToParts === "function" ? numberFormat.formatToParts(Math.abs(value)) : [{
304
+ type: "literal",
305
+ value: numberFormat.format(Math.abs(value)),
306
+ unit
307
+ }];
308
+ const pattern = po[pluralRules.select(value)];
309
+ return MakePartsList(pattern, resolvedUnit, fv);
310
+ }
311
+ //#endregion
312
+ //#region packages/intl-relativetimeformat/get_internal_slots.ts
313
+ const internalSlotMap = /* @__PURE__ */ new WeakMap();
314
+ function getInternalSlots(x) {
315
+ let internalSlots = internalSlotMap.get(x);
316
+ if (!internalSlots) {
317
+ internalSlots = Object.create(null);
318
+ internalSlotMap.set(x, internalSlots);
319
+ }
320
+ return internalSlots;
321
+ }
322
+ //#endregion
323
+ //#region packages/intl-relativetimeformat/index.ts
324
+ var RelativeTimeFormat = class RelativeTimeFormat {
325
+ constructor(locales, options) {
326
+ if (!(this && this instanceof RelativeTimeFormat ? this.constructor : void 0)) throw new TypeError("Intl.RelativeTimeFormat must be called with 'new'");
327
+ return InitializeRelativeTimeFormat(this, locales, options, {
328
+ getInternalSlots,
329
+ availableLocales: RelativeTimeFormat.availableLocales,
330
+ relevantExtensionKeys: RelativeTimeFormat.relevantExtensionKeys,
331
+ localeData: RelativeTimeFormat.localeData,
332
+ getDefaultLocale: RelativeTimeFormat.getDefaultLocale
333
+ });
334
+ }
335
+ format(value, unit) {
336
+ if (typeof this !== "object") throw new TypeError("format was called on a non-object");
337
+ if (!getInternalSlots(this).initializedRelativeTimeFormat) throw new TypeError("format was called on a invalid context");
338
+ return PartitionRelativeTimePattern(this, Number(value), ToString(unit), { getInternalSlots }).map((el) => el.value).join("");
339
+ }
340
+ formatToParts(value, unit) {
341
+ if (typeof this !== "object") throw new TypeError("formatToParts was called on a non-object");
342
+ if (!getInternalSlots(this).initializedRelativeTimeFormat) throw new TypeError("formatToParts was called on a invalid context");
343
+ return PartitionRelativeTimePattern(this, Number(value), ToString(unit), { getInternalSlots });
344
+ }
345
+ resolvedOptions() {
346
+ if (typeof this !== "object") throw new TypeError("resolvedOptions was called on a non-object");
347
+ const internalSlots = getInternalSlots(this);
348
+ if (!internalSlots.initializedRelativeTimeFormat) throw new TypeError("resolvedOptions was called on a invalid context");
349
+ return {
350
+ locale: internalSlots.locale,
351
+ style: internalSlots.style,
352
+ numeric: internalSlots.numeric,
353
+ numberingSystem: internalSlots.numberingSystem
354
+ };
355
+ }
356
+ static supportedLocalesOf(locales, options) {
357
+ return SupportedLocales(RelativeTimeFormat.availableLocales, CanonicalizeLocaleList(locales), options);
358
+ }
359
+ static __addLocaleData(...data) {
360
+ for (const { data: d, locale } of data) {
361
+ const minimizedLocale = new Intl.Locale(locale).minimize().toString();
362
+ RelativeTimeFormat.localeData[locale] = RelativeTimeFormat.localeData[minimizedLocale] = d;
363
+ RelativeTimeFormat.availableLocales.add(minimizedLocale);
364
+ RelativeTimeFormat.availableLocales.add(locale);
365
+ if (!RelativeTimeFormat.__defaultLocale) RelativeTimeFormat.__defaultLocale = minimizedLocale;
366
+ }
367
+ }
368
+ static {
369
+ this.localeData = {};
370
+ }
371
+ static {
372
+ this.availableLocales = /* @__PURE__ */ new Set();
373
+ }
374
+ static {
375
+ this.__defaultLocale = "";
376
+ }
377
+ static getDefaultLocale() {
378
+ return RelativeTimeFormat.__defaultLocale;
379
+ }
380
+ static {
381
+ this.relevantExtensionKeys = ["nu"];
382
+ }
383
+ static {
384
+ this.polyfilled = true;
385
+ }
386
+ };
387
+ try {
388
+ if (typeof Symbol !== "undefined") Object.defineProperty(RelativeTimeFormat.prototype, Symbol.toStringTag, {
389
+ value: "Intl.RelativeTimeFormat",
390
+ writable: false,
391
+ enumerable: false,
392
+ configurable: true
393
+ });
394
+ Object.defineProperty(RelativeTimeFormat.prototype.constructor, "length", {
395
+ value: 0,
396
+ writable: false,
397
+ enumerable: false,
398
+ configurable: true
399
+ });
400
+ Object.defineProperty(RelativeTimeFormat.supportedLocalesOf, "length", {
401
+ value: 1,
402
+ writable: false,
403
+ enumerable: false,
404
+ configurable: true
405
+ });
406
+ } catch {}
407
+ //#endregion
408
+ //#region packages/intl-relativetimeformat/supported-locales.generated.ts
409
+ const supportedLocales = [
410
+ "af",
411
+ "af-NA",
412
+ "agq",
413
+ "ak",
414
+ "am",
415
+ "ar",
416
+ "ar-AE",
417
+ "ar-BH",
418
+ "ar-DJ",
419
+ "ar-DZ",
420
+ "ar-EG",
421
+ "ar-EH",
422
+ "ar-ER",
423
+ "ar-IL",
424
+ "ar-IQ",
425
+ "ar-JO",
426
+ "ar-KM",
427
+ "ar-KW",
428
+ "ar-LB",
429
+ "ar-LY",
430
+ "ar-MA",
431
+ "ar-MR",
432
+ "ar-OM",
433
+ "ar-PS",
434
+ "ar-QA",
435
+ "ar-SA",
436
+ "ar-SD",
437
+ "ar-SO",
438
+ "ar-SS",
439
+ "ar-SY",
440
+ "ar-TD",
441
+ "ar-TN",
442
+ "ar-YE",
443
+ "as",
444
+ "asa",
445
+ "ast",
446
+ "az",
447
+ "az-Cyrl",
448
+ "az-Latn",
449
+ "bas",
450
+ "be",
451
+ "be-tarask",
452
+ "bem",
453
+ "bez",
454
+ "bg",
455
+ "bm",
456
+ "bn",
457
+ "bn-IN",
458
+ "bo",
459
+ "bo-IN",
460
+ "br",
461
+ "brx",
462
+ "bs",
463
+ "bs-Cyrl",
464
+ "bs-Latn",
465
+ "ca",
466
+ "ca-AD",
467
+ "ca-ES-valencia",
468
+ "ca-FR",
469
+ "ca-IT",
470
+ "ccp",
471
+ "ccp-IN",
472
+ "ce",
473
+ "ceb",
474
+ "cgg",
475
+ "chr",
476
+ "ckb",
477
+ "ckb-IR",
478
+ "cs",
479
+ "cy",
480
+ "da",
481
+ "da-GL",
482
+ "dav",
483
+ "de",
484
+ "de-AT",
485
+ "de-BE",
486
+ "de-CH",
487
+ "de-IT",
488
+ "de-LI",
489
+ "de-LU",
490
+ "dje",
491
+ "doi",
492
+ "dsb",
493
+ "dua",
494
+ "dyo",
495
+ "dz",
496
+ "ebu",
497
+ "ee",
498
+ "ee-TG",
499
+ "el",
500
+ "el-CY",
501
+ "en",
502
+ "en-001",
503
+ "en-150",
504
+ "en-AE",
505
+ "en-AG",
506
+ "en-AI",
507
+ "en-AS",
508
+ "en-AT",
509
+ "en-AU",
510
+ "en-BB",
511
+ "en-BE",
512
+ "en-BI",
513
+ "en-BM",
514
+ "en-BS",
515
+ "en-BW",
516
+ "en-BZ",
517
+ "en-CA",
518
+ "en-CC",
519
+ "en-CH",
520
+ "en-CK",
521
+ "en-CM",
522
+ "en-CX",
523
+ "en-CY",
524
+ "en-DE",
525
+ "en-DG",
526
+ "en-DK",
527
+ "en-DM",
528
+ "en-ER",
529
+ "en-FI",
530
+ "en-FJ",
531
+ "en-FK",
532
+ "en-FM",
533
+ "en-GB",
534
+ "en-GD",
535
+ "en-GG",
536
+ "en-GH",
537
+ "en-GI",
538
+ "en-GM",
539
+ "en-GU",
540
+ "en-GY",
541
+ "en-HK",
542
+ "en-IE",
543
+ "en-IL",
544
+ "en-IM",
545
+ "en-IN",
546
+ "en-IO",
547
+ "en-JE",
548
+ "en-JM",
549
+ "en-KE",
550
+ "en-KI",
551
+ "en-KN",
552
+ "en-KY",
553
+ "en-LC",
554
+ "en-LR",
555
+ "en-LS",
556
+ "en-MG",
557
+ "en-MH",
558
+ "en-MO",
559
+ "en-MP",
560
+ "en-MS",
561
+ "en-MT",
562
+ "en-MU",
563
+ "en-MW",
564
+ "en-MY",
565
+ "en-NA",
566
+ "en-NF",
567
+ "en-NG",
568
+ "en-NL",
569
+ "en-NR",
570
+ "en-NU",
571
+ "en-NZ",
572
+ "en-PG",
573
+ "en-PH",
574
+ "en-PK",
575
+ "en-PN",
576
+ "en-PR",
577
+ "en-PW",
578
+ "en-RW",
579
+ "en-SB",
580
+ "en-SC",
581
+ "en-SD",
582
+ "en-SE",
583
+ "en-SG",
584
+ "en-SH",
585
+ "en-SI",
586
+ "en-SL",
587
+ "en-SS",
588
+ "en-SX",
589
+ "en-SZ",
590
+ "en-TC",
591
+ "en-TK",
592
+ "en-TO",
593
+ "en-TT",
594
+ "en-TV",
595
+ "en-TZ",
596
+ "en-UG",
597
+ "en-UM",
598
+ "en-VC",
599
+ "en-VG",
600
+ "en-VI",
601
+ "en-VU",
602
+ "en-WS",
603
+ "en-ZA",
604
+ "en-ZM",
605
+ "en-ZW",
606
+ "eo",
607
+ "es",
608
+ "es-419",
609
+ "es-AR",
610
+ "es-BO",
611
+ "es-BR",
612
+ "es-BZ",
613
+ "es-CL",
614
+ "es-CO",
615
+ "es-CR",
616
+ "es-CU",
617
+ "es-DO",
618
+ "es-EA",
619
+ "es-EC",
620
+ "es-GQ",
621
+ "es-GT",
622
+ "es-HN",
623
+ "es-IC",
624
+ "es-MX",
625
+ "es-NI",
626
+ "es-PA",
627
+ "es-PE",
628
+ "es-PH",
629
+ "es-PR",
630
+ "es-PY",
631
+ "es-SV",
632
+ "es-US",
633
+ "es-UY",
634
+ "es-VE",
635
+ "et",
636
+ "eu",
637
+ "ewo",
638
+ "fa",
639
+ "fa-AF",
640
+ "ff",
641
+ "ff-Adlm",
642
+ "ff-Adlm-BF",
643
+ "ff-Adlm-CM",
644
+ "ff-Adlm-GH",
645
+ "ff-Adlm-GM",
646
+ "ff-Adlm-GW",
647
+ "ff-Adlm-LR",
648
+ "ff-Adlm-MR",
649
+ "ff-Adlm-NE",
650
+ "ff-Adlm-NG",
651
+ "ff-Adlm-SL",
652
+ "ff-Adlm-SN",
653
+ "ff-Latn",
654
+ "ff-Latn-BF",
655
+ "ff-Latn-CM",
656
+ "ff-Latn-GH",
657
+ "ff-Latn-GM",
658
+ "ff-Latn-GN",
659
+ "ff-Latn-GW",
660
+ "ff-Latn-LR",
661
+ "ff-Latn-MR",
662
+ "ff-Latn-NE",
663
+ "ff-Latn-NG",
664
+ "ff-Latn-SL",
665
+ "fi",
666
+ "fil",
667
+ "fo",
668
+ "fo-DK",
669
+ "fr",
670
+ "fr-BE",
671
+ "fr-BF",
672
+ "fr-BI",
673
+ "fr-BJ",
674
+ "fr-BL",
675
+ "fr-CA",
676
+ "fr-CD",
677
+ "fr-CF",
678
+ "fr-CG",
679
+ "fr-CH",
680
+ "fr-CI",
681
+ "fr-CM",
682
+ "fr-DJ",
683
+ "fr-DZ",
684
+ "fr-GA",
685
+ "fr-GF",
686
+ "fr-GN",
687
+ "fr-GP",
688
+ "fr-GQ",
689
+ "fr-HT",
690
+ "fr-KM",
691
+ "fr-LU",
692
+ "fr-MA",
693
+ "fr-MC",
694
+ "fr-MF",
695
+ "fr-MG",
696
+ "fr-ML",
697
+ "fr-MQ",
698
+ "fr-MR",
699
+ "fr-MU",
700
+ "fr-NC",
701
+ "fr-NE",
702
+ "fr-PF",
703
+ "fr-PM",
704
+ "fr-RE",
705
+ "fr-RW",
706
+ "fr-SC",
707
+ "fr-SN",
708
+ "fr-SY",
709
+ "fr-TD",
710
+ "fr-TG",
711
+ "fr-TN",
712
+ "fr-VU",
713
+ "fr-WF",
714
+ "fr-YT",
715
+ "fur",
716
+ "fy",
717
+ "ga",
718
+ "ga-GB",
719
+ "gd",
720
+ "gl",
721
+ "gsw",
722
+ "gsw-FR",
723
+ "gsw-LI",
724
+ "gu",
725
+ "guz",
726
+ "gv",
727
+ "ha",
728
+ "ha-GH",
729
+ "ha-NE",
730
+ "haw",
731
+ "he",
732
+ "hi",
733
+ "hr",
734
+ "hr-BA",
735
+ "hsb",
736
+ "hu",
737
+ "hy",
738
+ "ia",
739
+ "id",
740
+ "ig",
741
+ "ii",
742
+ "is",
743
+ "it",
744
+ "it-CH",
745
+ "it-SM",
746
+ "it-VA",
747
+ "ja",
748
+ "jgo",
749
+ "jmc",
750
+ "jv",
751
+ "ka",
752
+ "kab",
753
+ "kam",
754
+ "kde",
755
+ "kea",
756
+ "kgp",
757
+ "khq",
758
+ "ki",
759
+ "kk",
760
+ "kkj",
761
+ "kl",
762
+ "kln",
763
+ "km",
764
+ "kn",
765
+ "ko",
766
+ "ko-KP",
767
+ "kok",
768
+ "ks",
769
+ "ks-Arab",
770
+ "ksb",
771
+ "ksf",
772
+ "ksh",
773
+ "ku",
774
+ "kw",
775
+ "ky",
776
+ "lag",
777
+ "lb",
778
+ "lg",
779
+ "lkt",
780
+ "ln",
781
+ "ln-AO",
782
+ "ln-CF",
783
+ "ln-CG",
784
+ "lo",
785
+ "lrc",
786
+ "lrc-IQ",
787
+ "lt",
788
+ "lu",
789
+ "luo",
790
+ "luy",
791
+ "lv",
792
+ "mai",
793
+ "mas",
794
+ "mas-TZ",
795
+ "mer",
796
+ "mfe",
797
+ "mg",
798
+ "mgh",
799
+ "mgo",
800
+ "mi",
801
+ "mk",
802
+ "ml",
803
+ "mn",
804
+ "mni",
805
+ "mni-Beng",
806
+ "mr",
807
+ "ms",
808
+ "ms-BN",
809
+ "ms-ID",
810
+ "ms-SG",
811
+ "mt",
812
+ "mua",
813
+ "my",
814
+ "mzn",
815
+ "naq",
816
+ "nb",
817
+ "nb-SJ",
818
+ "nd",
819
+ "nds",
820
+ "nds-NL",
821
+ "ne",
822
+ "ne-IN",
823
+ "nl",
824
+ "nl-AW",
825
+ "nl-BE",
826
+ "nl-BQ",
827
+ "nl-CW",
828
+ "nl-SR",
829
+ "nl-SX",
830
+ "nmg",
831
+ "nn",
832
+ "nnh",
833
+ "no",
834
+ "nus",
835
+ "nyn",
836
+ "om",
837
+ "om-KE",
838
+ "or",
839
+ "os",
840
+ "os-RU",
841
+ "pa",
842
+ "pa-Arab",
843
+ "pa-Guru",
844
+ "pcm",
845
+ "pl",
846
+ "ps",
847
+ "ps-PK",
848
+ "pt",
849
+ "pt-AO",
850
+ "pt-CH",
851
+ "pt-CV",
852
+ "pt-GQ",
853
+ "pt-GW",
854
+ "pt-LU",
855
+ "pt-MO",
856
+ "pt-MZ",
857
+ "pt-PT",
858
+ "pt-ST",
859
+ "pt-TL",
860
+ "qu",
861
+ "qu-BO",
862
+ "qu-EC",
863
+ "rm",
864
+ "rn",
865
+ "ro",
866
+ "ro-MD",
867
+ "rof",
868
+ "ru",
869
+ "ru-BY",
870
+ "ru-KG",
871
+ "ru-KZ",
872
+ "ru-MD",
873
+ "ru-UA",
874
+ "rw",
875
+ "rwk",
876
+ "sa",
877
+ "sah",
878
+ "saq",
879
+ "sat",
880
+ "sat-Olck",
881
+ "sbp",
882
+ "sc",
883
+ "sd",
884
+ "sd-Arab",
885
+ "sd-Deva",
886
+ "se",
887
+ "se-FI",
888
+ "se-SE",
889
+ "seh",
890
+ "ses",
891
+ "sg",
892
+ "shi",
893
+ "shi-Latn",
894
+ "shi-Tfng",
895
+ "si",
896
+ "sk",
897
+ "sl",
898
+ "smn",
899
+ "sn",
900
+ "so",
901
+ "so-DJ",
902
+ "so-ET",
903
+ "so-KE",
904
+ "sq",
905
+ "sq-MK",
906
+ "sq-XK",
907
+ "sr",
908
+ "sr-Cyrl",
909
+ "sr-Cyrl-BA",
910
+ "sr-Cyrl-ME",
911
+ "sr-Cyrl-XK",
912
+ "sr-Latn",
913
+ "sr-Latn-BA",
914
+ "sr-Latn-ME",
915
+ "sr-Latn-XK",
916
+ "su",
917
+ "su-Latn",
918
+ "sv",
919
+ "sv-AX",
920
+ "sv-FI",
921
+ "sw",
922
+ "sw-CD",
923
+ "sw-KE",
924
+ "sw-UG",
925
+ "ta",
926
+ "ta-LK",
927
+ "ta-MY",
928
+ "ta-SG",
929
+ "te",
930
+ "teo",
931
+ "teo-KE",
932
+ "tg",
933
+ "th",
934
+ "ti",
935
+ "ti-ER",
936
+ "tk",
937
+ "to",
938
+ "tr",
939
+ "tr-CY",
940
+ "tt",
941
+ "twq",
942
+ "tzm",
943
+ "ug",
944
+ "uk",
945
+ "und",
946
+ "ur",
947
+ "ur-IN",
948
+ "uz",
949
+ "uz-Arab",
950
+ "uz-Cyrl",
951
+ "uz-Latn",
952
+ "vai",
953
+ "vai-Latn",
954
+ "vai-Vaii",
955
+ "vi",
956
+ "vun",
957
+ "wae",
958
+ "wo",
959
+ "xh",
960
+ "xog",
961
+ "yav",
962
+ "yi",
963
+ "yo",
964
+ "yo-BJ",
965
+ "yrl",
966
+ "yrl-CO",
967
+ "yrl-VE",
968
+ "yue",
969
+ "yue-Hans",
970
+ "yue-Hant",
971
+ "zgh",
972
+ "zh",
973
+ "zh-Hans",
974
+ "zh-Hans-HK",
975
+ "zh-Hans-MO",
976
+ "zh-Hans-SG",
977
+ "zh-Hant",
978
+ "zh-Hant-HK",
979
+ "zh-Hant-MO",
980
+ "zu"
981
+ ];
982
+ //#endregion
983
+ //#region packages/intl-relativetimeformat/should-polyfill.ts
984
+ function supportedLocalesOf(locale) {
985
+ if (!locale) return true;
986
+ const locales = Array.isArray(locale) ? locale : [locale];
987
+ return Intl.RelativeTimeFormat.supportedLocalesOf(locales).length === locales.length;
988
+ }
989
+ function hasResolvedOptionsNumberingSystem(locale) {
990
+ try {
991
+ return "numberingSystem" in new Intl.RelativeTimeFormat(locale || "en", { numeric: "auto" }).resolvedOptions();
992
+ } catch {
993
+ return false;
994
+ }
995
+ }
996
+ function shouldPolyfill(locale = "en") {
997
+ if (!("RelativeTimeFormat" in Intl) || !supportedLocalesOf(locale) || !hasResolvedOptionsNumberingSystem(locale)) return match([locale], supportedLocales, "en");
998
+ }
999
+ //#endregion
1000
+ //#region packages/intl-relativetimeformat/polyfill.ts
3
1001
  if (shouldPolyfill()) {
4
1002
  Object.defineProperty(Intl, "RelativeTimeFormat", {
5
1003
  value: RelativeTimeFormat,
@@ -7,4 +1005,12 @@ if (shouldPolyfill()) {
7
1005
  enumerable: false,
8
1006
  configurable: true
9
1007
  });
1008
+ const buf = globalThis.__FORMATJS_RELATIVETIMEFORMAT_DATA__;
1009
+ if (buf) {
1010
+ for (const d of buf) RelativeTimeFormat.__addLocaleData(d);
1011
+ delete globalThis.__FORMATJS_RELATIVETIMEFORMAT_DATA__;
1012
+ }
10
1013
  }
1014
+ //#endregion
1015
+
1016
+ //# sourceMappingURL=polyfill.js.map