@angular/common 21.0.0-next.0 → 21.0.0-next.10

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 (3539) hide show
  1. package/fesm2022/_common_module-chunk.mjs +3317 -0
  2. package/fesm2022/_common_module-chunk.mjs.map +1 -0
  3. package/fesm2022/_location-chunk.mjs +441 -0
  4. package/fesm2022/_location-chunk.mjs.map +1 -0
  5. package/fesm2022/_module-chunk.mjs +2237 -0
  6. package/fesm2022/_module-chunk.mjs.map +1 -0
  7. package/fesm2022/_platform_navigation-chunk.mjs +43 -0
  8. package/fesm2022/_platform_navigation-chunk.mjs.map +1 -0
  9. package/fesm2022/_xhr-chunk.mjs +22 -0
  10. package/fesm2022/_xhr-chunk.mjs.map +1 -0
  11. package/fesm2022/common.mjs +1140 -1841
  12. package/fesm2022/common.mjs.map +1 -1
  13. package/fesm2022/http-testing.mjs +310 -0
  14. package/fesm2022/http-testing.mjs.map +1 -0
  15. package/fesm2022/http.mjs +308 -373
  16. package/fesm2022/http.mjs.map +1 -1
  17. package/fesm2022/testing.mjs +599 -555
  18. package/fesm2022/testing.mjs.map +1 -1
  19. package/fesm2022/upgrade.mjs +611 -845
  20. package/fesm2022/upgrade.mjs.map +1 -1
  21. package/locales/aa-DJ.d.ts +15 -0
  22. package/locales/aa-DJ.js +15 -0
  23. package/locales/aa-DJ.js.map +1 -0
  24. package/locales/aa-ER.d.ts +15 -0
  25. package/locales/aa-ER.js +15 -0
  26. package/locales/aa-ER.js.map +1 -0
  27. package/locales/aa.d.ts +14 -0
  28. package/locales/aa.js +15 -0
  29. package/locales/aa.js.map +1 -0
  30. package/locales/ab.d.ts +13 -0
  31. package/locales/ab.js +15 -0
  32. package/locales/ab.js.map +1 -0
  33. package/locales/af-NA.js +1 -1
  34. package/locales/af-NA.js.map +1 -1
  35. package/locales/af.js +1 -1
  36. package/locales/af.js.map +1 -1
  37. package/locales/agq.js +1 -1
  38. package/locales/agq.js.map +1 -1
  39. package/locales/ak.d.ts +2 -0
  40. package/locales/ak.js +1 -1
  41. package/locales/ak.js.map +1 -1
  42. package/locales/am.d.ts +0 -1
  43. package/locales/am.js +1 -1
  44. package/locales/am.js.map +1 -1
  45. package/locales/an.d.ts +13 -0
  46. package/locales/an.js +17 -0
  47. package/locales/an.js.map +1 -0
  48. package/locales/ann.d.ts +14 -0
  49. package/locales/ann.js +15 -0
  50. package/locales/ann.js.map +1 -0
  51. package/locales/apc.d.ts +14 -0
  52. package/locales/apc.js +15 -0
  53. package/locales/apc.js.map +1 -0
  54. package/locales/ar-AE.js +1 -1
  55. package/locales/ar-AE.js.map +1 -1
  56. package/locales/ar-BH.js +1 -1
  57. package/locales/ar-BH.js.map +1 -1
  58. package/locales/ar-DJ.js +1 -1
  59. package/locales/ar-DJ.js.map +1 -1
  60. package/locales/ar-DZ.js +1 -1
  61. package/locales/ar-DZ.js.map +1 -1
  62. package/locales/ar-EG.js +1 -1
  63. package/locales/ar-EG.js.map +1 -1
  64. package/locales/ar-EH.js +1 -1
  65. package/locales/ar-EH.js.map +1 -1
  66. package/locales/ar-ER.js +1 -1
  67. package/locales/ar-ER.js.map +1 -1
  68. package/locales/ar-IL.js +1 -1
  69. package/locales/ar-IL.js.map +1 -1
  70. package/locales/ar-IQ.js +1 -1
  71. package/locales/ar-IQ.js.map +1 -1
  72. package/locales/ar-JO.js +1 -1
  73. package/locales/ar-JO.js.map +1 -1
  74. package/locales/ar-KM.js +1 -1
  75. package/locales/ar-KM.js.map +1 -1
  76. package/locales/ar-KW.js +1 -1
  77. package/locales/ar-KW.js.map +1 -1
  78. package/locales/ar-LB.js +1 -1
  79. package/locales/ar-LB.js.map +1 -1
  80. package/locales/ar-LY.js +1 -1
  81. package/locales/ar-LY.js.map +1 -1
  82. package/locales/ar-MA.js +1 -1
  83. package/locales/ar-MA.js.map +1 -1
  84. package/locales/ar-MR.js +1 -1
  85. package/locales/ar-MR.js.map +1 -1
  86. package/locales/ar-OM.js +1 -1
  87. package/locales/ar-OM.js.map +1 -1
  88. package/locales/ar-PS.js +1 -1
  89. package/locales/ar-PS.js.map +1 -1
  90. package/locales/ar-QA.js +1 -1
  91. package/locales/ar-QA.js.map +1 -1
  92. package/locales/ar-SA.js +1 -1
  93. package/locales/ar-SA.js.map +1 -1
  94. package/locales/ar-SD.js +1 -1
  95. package/locales/ar-SD.js.map +1 -1
  96. package/locales/ar-SO.js +1 -1
  97. package/locales/ar-SO.js.map +1 -1
  98. package/locales/ar-SS.js +1 -1
  99. package/locales/ar-SS.js.map +1 -1
  100. package/locales/ar-SY.js +1 -1
  101. package/locales/ar-SY.js.map +1 -1
  102. package/locales/ar-TD.js +1 -1
  103. package/locales/ar-TD.js.map +1 -1
  104. package/locales/ar-TN.js +1 -1
  105. package/locales/ar-TN.js.map +1 -1
  106. package/locales/ar-YE.js +1 -1
  107. package/locales/ar-YE.js.map +1 -1
  108. package/locales/ar.js +1 -1
  109. package/locales/ar.js.map +1 -1
  110. package/locales/arn.d.ts +13 -0
  111. package/locales/arn.js +15 -0
  112. package/locales/arn.js.map +1 -0
  113. package/locales/as.js +1 -1
  114. package/locales/as.js.map +1 -1
  115. package/locales/asa.js +1 -1
  116. package/locales/asa.js.map +1 -1
  117. package/locales/ast.d.ts +6 -6
  118. package/locales/ast.js +1 -1
  119. package/locales/ast.js.map +1 -1
  120. package/locales/az-Arab-IQ.d.ts +13 -0
  121. package/locales/az-Arab-IQ.js +15 -0
  122. package/locales/az-Arab-IQ.js.map +1 -0
  123. package/locales/az-Arab-TR.d.ts +13 -0
  124. package/locales/az-Arab-TR.js +15 -0
  125. package/locales/az-Arab-TR.js.map +1 -0
  126. package/locales/az-Arab.d.ts +13 -0
  127. package/locales/az-Arab.js +15 -0
  128. package/locales/az-Arab.js.map +1 -0
  129. package/locales/az-Cyrl.js +1 -1
  130. package/locales/az-Cyrl.js.map +1 -1
  131. package/locales/az-Latn.js +1 -1
  132. package/locales/az-Latn.js.map +1 -1
  133. package/locales/az.js +1 -1
  134. package/locales/az.js.map +1 -1
  135. package/locales/ba.d.ts +13 -0
  136. package/locales/ba.js +15 -0
  137. package/locales/ba.js.map +1 -0
  138. package/locales/bal-Arab.d.ts +13 -0
  139. package/locales/bal-Arab.js +17 -0
  140. package/locales/bal-Arab.js.map +1 -0
  141. package/locales/bal-Latn.d.ts +140 -0
  142. package/locales/bal-Latn.js +15 -0
  143. package/locales/bal-Latn.js.map +1 -0
  144. package/locales/bal.d.ts +13 -0
  145. package/locales/bal.js +17 -0
  146. package/locales/bal.js.map +1 -0
  147. package/locales/bas.js +1 -1
  148. package/locales/bas.js.map +1 -1
  149. package/locales/be-tarask.js +1 -1
  150. package/locales/be-tarask.js.map +1 -1
  151. package/locales/be.js +1 -1
  152. package/locales/be.js.map +1 -1
  153. package/locales/bem.js +1 -1
  154. package/locales/bem.js.map +1 -1
  155. package/locales/bew.d.ts +13 -0
  156. package/locales/bew.js +15 -0
  157. package/locales/bew.js.map +1 -0
  158. package/locales/bez.js +1 -1
  159. package/locales/bez.js.map +1 -1
  160. package/locales/bg.d.ts +38 -38
  161. package/locales/bg.js +1 -1
  162. package/locales/bg.js.map +1 -1
  163. package/locales/bgc.d.ts +13 -0
  164. package/locales/bgc.js +15 -0
  165. package/locales/bgc.js.map +1 -0
  166. package/locales/bgn-AE.d.ts +15 -0
  167. package/locales/bgn-AE.js +15 -0
  168. package/locales/bgn-AE.js.map +1 -0
  169. package/locales/bgn-AF.d.ts +15 -0
  170. package/locales/bgn-AF.js +15 -0
  171. package/locales/bgn-AF.js.map +1 -0
  172. package/locales/bgn-IR.d.ts +15 -0
  173. package/locales/bgn-IR.js +15 -0
  174. package/locales/bgn-IR.js.map +1 -0
  175. package/locales/bgn-OM.d.ts +15 -0
  176. package/locales/bgn-OM.js +15 -0
  177. package/locales/bgn-OM.js.map +1 -0
  178. package/locales/bgn.d.ts +15 -0
  179. package/locales/bgn.js +15 -0
  180. package/locales/bgn.js.map +1 -0
  181. package/locales/bho.d.ts +13 -0
  182. package/locales/bho.js +17 -0
  183. package/locales/bho.js.map +1 -0
  184. package/locales/blo.d.ts +13 -0
  185. package/locales/blo.js +19 -0
  186. package/locales/blo.js.map +1 -0
  187. package/locales/blt.d.ts +13 -0
  188. package/locales/blt.js +15 -0
  189. package/locales/blt.js.map +1 -0
  190. package/locales/bm-Nkoo.d.ts +13 -0
  191. package/locales/bm-Nkoo.js +15 -0
  192. package/locales/bm-Nkoo.js.map +1 -0
  193. package/locales/bm.js +1 -1
  194. package/locales/bm.js.map +1 -1
  195. package/locales/bn-IN.d.ts +0 -1
  196. package/locales/bn-IN.js +1 -1
  197. package/locales/bn-IN.js.map +1 -1
  198. package/locales/bn.js +1 -1
  199. package/locales/bn.js.map +1 -1
  200. package/locales/bo-IN.d.ts +1 -1
  201. package/locales/bo-IN.js +1 -1
  202. package/locales/bo-IN.js.map +1 -1
  203. package/locales/bo.d.ts +1 -1
  204. package/locales/bo.js +1 -1
  205. package/locales/bo.js.map +1 -1
  206. package/locales/br.js +1 -1
  207. package/locales/br.js.map +1 -1
  208. package/locales/brx.d.ts +118 -0
  209. package/locales/brx.js +1 -1
  210. package/locales/brx.js.map +1 -1
  211. package/locales/bs-Cyrl.js +1 -1
  212. package/locales/bs-Cyrl.js.map +1 -1
  213. package/locales/bs-Latn.d.ts +1 -1
  214. package/locales/bs-Latn.js +1 -1
  215. package/locales/bs-Latn.js.map +1 -1
  216. package/locales/bs.d.ts +1 -1
  217. package/locales/bs.js +1 -1
  218. package/locales/bs.js.map +1 -1
  219. package/locales/bss.d.ts +13 -0
  220. package/locales/bss.js +15 -0
  221. package/locales/bss.js.map +1 -0
  222. package/locales/byn.d.ts +14 -0
  223. package/locales/byn.js +15 -0
  224. package/locales/byn.js.map +1 -0
  225. package/locales/ca-AD.js +4 -2
  226. package/locales/ca-AD.js.map +1 -1
  227. package/locales/ca-ES-valencia.js +4 -2
  228. package/locales/ca-ES-valencia.js.map +1 -1
  229. package/locales/ca-FR.js +4 -2
  230. package/locales/ca-FR.js.map +1 -1
  231. package/locales/ca-IT.js +4 -2
  232. package/locales/ca-IT.js.map +1 -1
  233. package/locales/ca.js +4 -2
  234. package/locales/ca.js.map +1 -1
  235. package/locales/cad.d.ts +12 -0
  236. package/locales/cad.js +15 -0
  237. package/locales/cad.js.map +1 -0
  238. package/locales/cch.d.ts +14 -0
  239. package/locales/cch.js +15 -0
  240. package/locales/cch.js.map +1 -0
  241. package/locales/ccp-IN.d.ts +1 -1
  242. package/locales/ccp-IN.js +1 -1
  243. package/locales/ccp-IN.js.map +1 -1
  244. package/locales/ccp.d.ts +1 -1
  245. package/locales/ccp.js +1 -1
  246. package/locales/ccp.js.map +1 -1
  247. package/locales/ce.js +1 -1
  248. package/locales/ce.js.map +1 -1
  249. package/locales/ceb.js +1 -1
  250. package/locales/ceb.js.map +1 -1
  251. package/locales/cgg.js +1 -1
  252. package/locales/cgg.js.map +1 -1
  253. package/locales/cho.d.ts +13 -0
  254. package/locales/cho.js +15 -0
  255. package/locales/cho.js.map +1 -0
  256. package/locales/chr.js +1 -1
  257. package/locales/chr.js.map +1 -1
  258. package/locales/cic.d.ts +12 -0
  259. package/locales/cic.js +15 -0
  260. package/locales/cic.js.map +1 -0
  261. package/locales/ckb-IR.js +1 -1
  262. package/locales/ckb-IR.js.map +1 -1
  263. package/locales/ckb.js +1 -1
  264. package/locales/ckb.js.map +1 -1
  265. package/locales/co.d.ts +13 -0
  266. package/locales/co.js +15 -0
  267. package/locales/co.js.map +1 -0
  268. package/locales/cop.d.ts +13 -0
  269. package/locales/cop.js +15 -0
  270. package/locales/cop.js.map +1 -0
  271. package/locales/cs.d.ts +1 -1
  272. package/locales/cs.js +1 -1
  273. package/locales/cs.js.map +1 -1
  274. package/locales/csw.d.ts +13 -0
  275. package/locales/csw.js +17 -0
  276. package/locales/csw.js.map +1 -0
  277. package/locales/cu.d.ts +14 -0
  278. package/locales/cu.js +15 -0
  279. package/locales/cu.js.map +1 -0
  280. package/locales/cv.d.ts +13 -0
  281. package/locales/cv.js +15 -0
  282. package/locales/cv.js.map +1 -0
  283. package/locales/cy.d.ts +4 -4
  284. package/locales/cy.js +1 -1
  285. package/locales/cy.js.map +1 -1
  286. package/locales/da-GL.d.ts +1 -1
  287. package/locales/da-GL.js +1 -1
  288. package/locales/da-GL.js.map +1 -1
  289. package/locales/da.d.ts +1 -1
  290. package/locales/da.js +1 -1
  291. package/locales/da.js.map +1 -1
  292. package/locales/dav.js +1 -1
  293. package/locales/dav.js.map +1 -1
  294. package/locales/de-AT.d.ts +2 -2
  295. package/locales/de-AT.js +1 -1
  296. package/locales/de-AT.js.map +1 -1
  297. package/locales/de-BE.d.ts +2 -2
  298. package/locales/de-BE.js +1 -1
  299. package/locales/de-BE.js.map +1 -1
  300. package/locales/de-CH.d.ts +2 -2
  301. package/locales/de-CH.js +1 -1
  302. package/locales/de-CH.js.map +1 -1
  303. package/locales/de-IT.d.ts +2 -2
  304. package/locales/de-IT.js +1 -1
  305. package/locales/de-IT.js.map +1 -1
  306. package/locales/de-LI.d.ts +3 -3
  307. package/locales/de-LI.js +1 -1
  308. package/locales/de-LI.js.map +1 -1
  309. package/locales/de-LU.d.ts +2 -2
  310. package/locales/de-LU.js +1 -1
  311. package/locales/de-LU.js.map +1 -1
  312. package/locales/de.d.ts +2 -2
  313. package/locales/de.js +1 -1
  314. package/locales/de.js.map +1 -1
  315. package/locales/dje.js +1 -1
  316. package/locales/dje.js.map +1 -1
  317. package/locales/doi.d.ts +1 -1
  318. package/locales/doi.js +1 -1
  319. package/locales/doi.js.map +1 -1
  320. package/locales/dsb.js +1 -1
  321. package/locales/dsb.js.map +1 -1
  322. package/locales/dua.js +1 -1
  323. package/locales/dua.js.map +1 -1
  324. package/locales/dv.d.ts +14 -0
  325. package/locales/dv.js +17 -0
  326. package/locales/dv.js.map +1 -0
  327. package/locales/dyo.js +1 -1
  328. package/locales/dyo.js.map +1 -1
  329. package/locales/dz.d.ts +1 -1
  330. package/locales/dz.js +1 -1
  331. package/locales/dz.js.map +1 -1
  332. package/locales/ebu.js +1 -1
  333. package/locales/ebu.js.map +1 -1
  334. package/locales/ee-TG.js +1 -1
  335. package/locales/ee-TG.js.map +1 -1
  336. package/locales/ee.js +1 -1
  337. package/locales/ee.js.map +1 -1
  338. package/locales/el-CY.js +1 -1
  339. package/locales/el-CY.js.map +1 -1
  340. package/locales/el-polyton.d.ts +16 -0
  341. package/locales/el-polyton.js +17 -0
  342. package/locales/el-polyton.js.map +1 -0
  343. package/locales/el.js +1 -1
  344. package/locales/el.js.map +1 -1
  345. package/locales/en-001.d.ts +1 -1
  346. package/locales/en-001.js +1 -1
  347. package/locales/en-001.js.map +1 -1
  348. package/locales/en-150.d.ts +1 -1
  349. package/locales/en-150.js +1 -1
  350. package/locales/en-150.js.map +1 -1
  351. package/locales/en-AE.js +1 -1
  352. package/locales/en-AE.js.map +1 -1
  353. package/locales/en-AG.d.ts +1 -1
  354. package/locales/en-AG.js +1 -1
  355. package/locales/en-AG.js.map +1 -1
  356. package/locales/en-AI.d.ts +1 -1
  357. package/locales/en-AI.js +1 -1
  358. package/locales/en-AI.js.map +1 -1
  359. package/locales/en-AS.js +1 -1
  360. package/locales/en-AS.js.map +1 -1
  361. package/locales/en-AT.d.ts +1 -1
  362. package/locales/en-AT.js +1 -1
  363. package/locales/en-AT.js.map +1 -1
  364. package/locales/en-AU.d.ts +1 -1
  365. package/locales/en-AU.js +1 -1
  366. package/locales/en-AU.js.map +1 -1
  367. package/locales/en-BB.d.ts +1 -1
  368. package/locales/en-BB.js +1 -1
  369. package/locales/en-BB.js.map +1 -1
  370. package/locales/en-BE.d.ts +1 -1
  371. package/locales/en-BE.js +1 -1
  372. package/locales/en-BE.js.map +1 -1
  373. package/locales/en-BI.d.ts +1 -1
  374. package/locales/en-BI.js +1 -1
  375. package/locales/en-BI.js.map +1 -1
  376. package/locales/en-BM.d.ts +1 -1
  377. package/locales/en-BM.js +1 -1
  378. package/locales/en-BM.js.map +1 -1
  379. package/locales/en-BS.d.ts +1 -1
  380. package/locales/en-BS.js +1 -1
  381. package/locales/en-BS.js.map +1 -1
  382. package/locales/en-BW.d.ts +1 -1
  383. package/locales/en-BW.js +1 -1
  384. package/locales/en-BW.js.map +1 -1
  385. package/locales/en-BZ.d.ts +1 -1
  386. package/locales/en-BZ.js +1 -1
  387. package/locales/en-BZ.js.map +1 -1
  388. package/locales/en-CA.d.ts +1 -1
  389. package/locales/en-CA.js +1 -1
  390. package/locales/en-CA.js.map +1 -1
  391. package/locales/en-CC.d.ts +1 -1
  392. package/locales/en-CC.js +1 -1
  393. package/locales/en-CC.js.map +1 -1
  394. package/locales/en-CH.d.ts +1 -1
  395. package/locales/en-CH.js +1 -1
  396. package/locales/en-CH.js.map +1 -1
  397. package/locales/en-CK.d.ts +1 -1
  398. package/locales/en-CK.js +1 -1
  399. package/locales/en-CK.js.map +1 -1
  400. package/locales/en-CM.d.ts +1 -1
  401. package/locales/en-CM.js +1 -1
  402. package/locales/en-CM.js.map +1 -1
  403. package/locales/en-CX.d.ts +1 -1
  404. package/locales/en-CX.js +1 -1
  405. package/locales/en-CX.js.map +1 -1
  406. package/locales/en-CY.d.ts +1 -1
  407. package/locales/en-CY.js +1 -1
  408. package/locales/en-CY.js.map +1 -1
  409. package/locales/en-CZ.d.ts +13 -0
  410. package/locales/en-CZ.js +17 -0
  411. package/locales/en-CZ.js.map +1 -0
  412. package/locales/en-DE.d.ts +1 -1
  413. package/locales/en-DE.js +1 -1
  414. package/locales/en-DE.js.map +1 -1
  415. package/locales/en-DG.d.ts +1 -1
  416. package/locales/en-DG.js +1 -1
  417. package/locales/en-DG.js.map +1 -1
  418. package/locales/en-DK.d.ts +1 -1
  419. package/locales/en-DK.js +1 -1
  420. package/locales/en-DK.js.map +1 -1
  421. package/locales/en-DM.d.ts +1 -1
  422. package/locales/en-DM.js +1 -1
  423. package/locales/en-DM.js.map +1 -1
  424. package/locales/en-Dsrt.d.ts +12 -0
  425. package/locales/en-Dsrt.js +15 -0
  426. package/locales/en-Dsrt.js.map +1 -0
  427. package/locales/en-ER.d.ts +1 -1
  428. package/locales/en-ER.js +1 -1
  429. package/locales/en-ER.js.map +1 -1
  430. package/locales/en-ES.d.ts +13 -0
  431. package/locales/en-ES.js +17 -0
  432. package/locales/en-ES.js.map +1 -0
  433. package/locales/en-FI.d.ts +1 -1
  434. package/locales/en-FI.js +1 -1
  435. package/locales/en-FI.js.map +1 -1
  436. package/locales/en-FJ.d.ts +1 -1
  437. package/locales/en-FJ.js +1 -1
  438. package/locales/en-FJ.js.map +1 -1
  439. package/locales/en-FK.d.ts +1 -1
  440. package/locales/en-FK.js +1 -1
  441. package/locales/en-FK.js.map +1 -1
  442. package/locales/en-FM.d.ts +1 -1
  443. package/locales/en-FM.js +1 -1
  444. package/locales/en-FM.js.map +1 -1
  445. package/locales/en-FR.d.ts +13 -0
  446. package/locales/en-FR.js +17 -0
  447. package/locales/en-FR.js.map +1 -0
  448. package/locales/en-GB.d.ts +1 -1
  449. package/locales/en-GB.js +1 -1
  450. package/locales/en-GB.js.map +1 -1
  451. package/locales/en-GD.d.ts +1 -1
  452. package/locales/en-GD.js +1 -1
  453. package/locales/en-GD.js.map +1 -1
  454. package/locales/en-GG.d.ts +1 -1
  455. package/locales/en-GG.js +1 -1
  456. package/locales/en-GG.js.map +1 -1
  457. package/locales/en-GH.d.ts +1 -1
  458. package/locales/en-GH.js +1 -1
  459. package/locales/en-GH.js.map +1 -1
  460. package/locales/en-GI.d.ts +1 -1
  461. package/locales/en-GI.js +1 -1
  462. package/locales/en-GI.js.map +1 -1
  463. package/locales/en-GM.d.ts +1 -1
  464. package/locales/en-GM.js +1 -1
  465. package/locales/en-GM.js.map +1 -1
  466. package/locales/en-GS.d.ts +13 -0
  467. package/locales/en-GS.js +17 -0
  468. package/locales/en-GS.js.map +1 -0
  469. package/locales/en-GU.js +1 -1
  470. package/locales/en-GU.js.map +1 -1
  471. package/locales/en-GY.d.ts +1 -1
  472. package/locales/en-GY.js +1 -1
  473. package/locales/en-GY.js.map +1 -1
  474. package/locales/en-HK.d.ts +1 -1
  475. package/locales/en-HK.js +1 -1
  476. package/locales/en-HK.js.map +1 -1
  477. package/locales/en-HU.d.ts +13 -0
  478. package/locales/en-HU.js +17 -0
  479. package/locales/en-HU.js.map +1 -0
  480. package/locales/en-ID.d.ts +14 -0
  481. package/locales/en-ID.js +17 -0
  482. package/locales/en-ID.js.map +1 -0
  483. package/locales/en-IE.d.ts +1 -1
  484. package/locales/en-IE.js +1 -1
  485. package/locales/en-IE.js.map +1 -1
  486. package/locales/en-IL.d.ts +1 -1
  487. package/locales/en-IL.js +1 -1
  488. package/locales/en-IL.js.map +1 -1
  489. package/locales/en-IM.d.ts +1 -1
  490. package/locales/en-IM.js +1 -1
  491. package/locales/en-IM.js.map +1 -1
  492. package/locales/en-IN.d.ts +1 -1
  493. package/locales/en-IN.js +1 -1
  494. package/locales/en-IN.js.map +1 -1
  495. package/locales/en-IO.d.ts +1 -1
  496. package/locales/en-IO.js +1 -1
  497. package/locales/en-IO.js.map +1 -1
  498. package/locales/en-IT.d.ts +13 -0
  499. package/locales/en-IT.js +17 -0
  500. package/locales/en-IT.js.map +1 -0
  501. package/locales/en-JE.d.ts +1 -1
  502. package/locales/en-JE.js +1 -1
  503. package/locales/en-JE.js.map +1 -1
  504. package/locales/en-JM.d.ts +1 -1
  505. package/locales/en-JM.js +1 -1
  506. package/locales/en-JM.js.map +1 -1
  507. package/locales/en-KE.d.ts +1 -1
  508. package/locales/en-KE.js +1 -1
  509. package/locales/en-KE.js.map +1 -1
  510. package/locales/en-KI.d.ts +1 -1
  511. package/locales/en-KI.js +1 -1
  512. package/locales/en-KI.js.map +1 -1
  513. package/locales/en-KN.d.ts +1 -1
  514. package/locales/en-KN.js +1 -1
  515. package/locales/en-KN.js.map +1 -1
  516. package/locales/en-KY.d.ts +1 -1
  517. package/locales/en-KY.js +1 -1
  518. package/locales/en-KY.js.map +1 -1
  519. package/locales/en-LC.d.ts +1 -1
  520. package/locales/en-LC.js +1 -1
  521. package/locales/en-LC.js.map +1 -1
  522. package/locales/en-LR.d.ts +1 -1
  523. package/locales/en-LR.js +1 -1
  524. package/locales/en-LR.js.map +1 -1
  525. package/locales/en-LS.d.ts +1 -1
  526. package/locales/en-LS.js +1 -1
  527. package/locales/en-LS.js.map +1 -1
  528. package/locales/en-MG.d.ts +1 -1
  529. package/locales/en-MG.js +1 -1
  530. package/locales/en-MG.js.map +1 -1
  531. package/locales/en-MH.js +1 -1
  532. package/locales/en-MH.js.map +1 -1
  533. package/locales/en-MO.d.ts +1 -1
  534. package/locales/en-MO.js +1 -1
  535. package/locales/en-MO.js.map +1 -1
  536. package/locales/en-MP.js +1 -1
  537. package/locales/en-MP.js.map +1 -1
  538. package/locales/en-MS.d.ts +1 -1
  539. package/locales/en-MS.js +1 -1
  540. package/locales/en-MS.js.map +1 -1
  541. package/locales/en-MT.d.ts +1 -1
  542. package/locales/en-MT.js +1 -1
  543. package/locales/en-MT.js.map +1 -1
  544. package/locales/en-MU.d.ts +1 -1
  545. package/locales/en-MU.js +1 -1
  546. package/locales/en-MU.js.map +1 -1
  547. package/locales/en-MV.d.ts +1 -1
  548. package/locales/en-MV.js +1 -1
  549. package/locales/en-MV.js.map +1 -1
  550. package/locales/en-MW.d.ts +1 -1
  551. package/locales/en-MW.js +1 -1
  552. package/locales/en-MW.js.map +1 -1
  553. package/locales/en-MY.d.ts +1 -1
  554. package/locales/en-MY.js +1 -1
  555. package/locales/en-MY.js.map +1 -1
  556. package/locales/en-NA.d.ts +1 -1
  557. package/locales/en-NA.js +1 -1
  558. package/locales/en-NA.js.map +1 -1
  559. package/locales/en-NF.d.ts +1 -1
  560. package/locales/en-NF.js +1 -1
  561. package/locales/en-NF.js.map +1 -1
  562. package/locales/en-NG.d.ts +1 -1
  563. package/locales/en-NG.js +1 -1
  564. package/locales/en-NG.js.map +1 -1
  565. package/locales/en-NL.d.ts +1 -1
  566. package/locales/en-NL.js +1 -1
  567. package/locales/en-NL.js.map +1 -1
  568. package/locales/en-NO.d.ts +14 -0
  569. package/locales/en-NO.js +17 -0
  570. package/locales/en-NO.js.map +1 -0
  571. package/locales/en-NR.d.ts +1 -1
  572. package/locales/en-NR.js +1 -1
  573. package/locales/en-NR.js.map +1 -1
  574. package/locales/en-NU.d.ts +1 -1
  575. package/locales/en-NU.js +1 -1
  576. package/locales/en-NU.js.map +1 -1
  577. package/locales/en-NZ.d.ts +1 -1
  578. package/locales/en-NZ.js +1 -1
  579. package/locales/en-NZ.js.map +1 -1
  580. package/locales/en-PG.d.ts +1 -1
  581. package/locales/en-PG.js +1 -1
  582. package/locales/en-PG.js.map +1 -1
  583. package/locales/en-PH.js +1 -1
  584. package/locales/en-PH.js.map +1 -1
  585. package/locales/en-PK.d.ts +1 -1
  586. package/locales/en-PK.js +1 -1
  587. package/locales/en-PK.js.map +1 -1
  588. package/locales/en-PL.d.ts +13 -0
  589. package/locales/en-PL.js +17 -0
  590. package/locales/en-PL.js.map +1 -0
  591. package/locales/en-PN.d.ts +1 -1
  592. package/locales/en-PN.js +1 -1
  593. package/locales/en-PN.js.map +1 -1
  594. package/locales/en-PR.js +1 -1
  595. package/locales/en-PR.js.map +1 -1
  596. package/locales/en-PT.d.ts +13 -0
  597. package/locales/en-PT.js +17 -0
  598. package/locales/en-PT.js.map +1 -0
  599. package/locales/en-PW.d.ts +1 -1
  600. package/locales/en-PW.js +1 -1
  601. package/locales/en-PW.js.map +1 -1
  602. package/locales/en-RO.d.ts +13 -0
  603. package/locales/en-RO.js +17 -0
  604. package/locales/en-RO.js.map +1 -0
  605. package/locales/en-RW.d.ts +1 -1
  606. package/locales/en-RW.js +1 -1
  607. package/locales/en-RW.js.map +1 -1
  608. package/locales/en-SB.d.ts +1 -1
  609. package/locales/en-SB.js +1 -1
  610. package/locales/en-SB.js.map +1 -1
  611. package/locales/en-SC.d.ts +1 -1
  612. package/locales/en-SC.js +1 -1
  613. package/locales/en-SC.js.map +1 -1
  614. package/locales/en-SD.d.ts +1 -1
  615. package/locales/en-SD.js +1 -1
  616. package/locales/en-SD.js.map +1 -1
  617. package/locales/en-SE.d.ts +1 -1
  618. package/locales/en-SE.js +1 -1
  619. package/locales/en-SE.js.map +1 -1
  620. package/locales/en-SG.d.ts +1 -1
  621. package/locales/en-SG.js +1 -1
  622. package/locales/en-SG.js.map +1 -1
  623. package/locales/en-SH.d.ts +1 -1
  624. package/locales/en-SH.js +1 -1
  625. package/locales/en-SH.js.map +1 -1
  626. package/locales/en-SI.d.ts +1 -1
  627. package/locales/en-SI.js +1 -1
  628. package/locales/en-SI.js.map +1 -1
  629. package/locales/en-SK.d.ts +13 -0
  630. package/locales/en-SK.js +17 -0
  631. package/locales/en-SK.js.map +1 -0
  632. package/locales/en-SL.d.ts +2 -2
  633. package/locales/en-SL.js +1 -1
  634. package/locales/en-SL.js.map +1 -1
  635. package/locales/en-SS.d.ts +1 -1
  636. package/locales/en-SS.js +1 -1
  637. package/locales/en-SS.js.map +1 -1
  638. package/locales/en-SX.d.ts +1 -1
  639. package/locales/en-SX.js +1 -1
  640. package/locales/en-SX.js.map +1 -1
  641. package/locales/en-SZ.d.ts +1 -1
  642. package/locales/en-SZ.js +1 -1
  643. package/locales/en-SZ.js.map +1 -1
  644. package/locales/en-Shaw.d.ts +13 -0
  645. package/locales/en-Shaw.js +15 -0
  646. package/locales/en-Shaw.js.map +1 -0
  647. package/locales/en-TC.d.ts +1 -1
  648. package/locales/en-TC.js +1 -1
  649. package/locales/en-TC.js.map +1 -1
  650. package/locales/en-TK.d.ts +1 -1
  651. package/locales/en-TK.js +1 -1
  652. package/locales/en-TK.js.map +1 -1
  653. package/locales/en-TO.d.ts +1 -1
  654. package/locales/en-TO.js +1 -1
  655. package/locales/en-TO.js.map +1 -1
  656. package/locales/en-TT.d.ts +1 -1
  657. package/locales/en-TT.js +1 -1
  658. package/locales/en-TT.js.map +1 -1
  659. package/locales/en-TV.d.ts +1 -1
  660. package/locales/en-TV.js +1 -1
  661. package/locales/en-TV.js.map +1 -1
  662. package/locales/en-TZ.d.ts +1 -1
  663. package/locales/en-TZ.js +1 -1
  664. package/locales/en-TZ.js.map +1 -1
  665. package/locales/en-UG.d.ts +1 -1
  666. package/locales/en-UG.js +1 -1
  667. package/locales/en-UG.js.map +1 -1
  668. package/locales/en-UM.js +1 -1
  669. package/locales/en-UM.js.map +1 -1
  670. package/locales/en-VC.d.ts +1 -1
  671. package/locales/en-VC.js +1 -1
  672. package/locales/en-VC.js.map +1 -1
  673. package/locales/en-VG.d.ts +1 -1
  674. package/locales/en-VG.js +1 -1
  675. package/locales/en-VG.js.map +1 -1
  676. package/locales/en-VI.js +1 -1
  677. package/locales/en-VI.js.map +1 -1
  678. package/locales/en-VU.d.ts +1 -1
  679. package/locales/en-VU.js +1 -1
  680. package/locales/en-VU.js.map +1 -1
  681. package/locales/en-WS.d.ts +1 -1
  682. package/locales/en-WS.js +1 -1
  683. package/locales/en-WS.js.map +1 -1
  684. package/locales/en-ZA.d.ts +1 -1
  685. package/locales/en-ZA.js +1 -1
  686. package/locales/en-ZA.js.map +1 -1
  687. package/locales/en-ZM.d.ts +1 -1
  688. package/locales/en-ZM.js +1 -1
  689. package/locales/en-ZM.js.map +1 -1
  690. package/locales/en-ZW.d.ts +1 -1
  691. package/locales/en-ZW.js +1 -1
  692. package/locales/en-ZW.js.map +1 -1
  693. package/locales/en.js +1 -1
  694. package/locales/en.js.map +1 -1
  695. package/locales/eo.js +1 -1
  696. package/locales/eo.js.map +1 -1
  697. package/locales/es-419.js +1 -1
  698. package/locales/es-419.js.map +1 -1
  699. package/locales/es-AR.js +1 -1
  700. package/locales/es-AR.js.map +1 -1
  701. package/locales/es-BO.js +1 -1
  702. package/locales/es-BO.js.map +1 -1
  703. package/locales/es-BR.js +1 -1
  704. package/locales/es-BR.js.map +1 -1
  705. package/locales/es-BZ.js +1 -1
  706. package/locales/es-BZ.js.map +1 -1
  707. package/locales/es-CL.js +1 -1
  708. package/locales/es-CL.js.map +1 -1
  709. package/locales/es-CO.js +1 -1
  710. package/locales/es-CO.js.map +1 -1
  711. package/locales/es-CR.js +1 -1
  712. package/locales/es-CR.js.map +1 -1
  713. package/locales/es-CU.js +1 -1
  714. package/locales/es-CU.js.map +1 -1
  715. package/locales/es-DO.js +1 -1
  716. package/locales/es-DO.js.map +1 -1
  717. package/locales/es-EA.d.ts +1 -1
  718. package/locales/es-EA.js +1 -1
  719. package/locales/es-EA.js.map +1 -1
  720. package/locales/es-EC.js +1 -1
  721. package/locales/es-EC.js.map +1 -1
  722. package/locales/es-GQ.d.ts +1 -1
  723. package/locales/es-GQ.js +1 -1
  724. package/locales/es-GQ.js.map +1 -1
  725. package/locales/es-GT.js +1 -1
  726. package/locales/es-GT.js.map +1 -1
  727. package/locales/es-HN.js +1 -1
  728. package/locales/es-HN.js.map +1 -1
  729. package/locales/es-IC.d.ts +1 -1
  730. package/locales/es-IC.js +1 -1
  731. package/locales/es-IC.js.map +1 -1
  732. package/locales/es-MX.js +1 -1
  733. package/locales/es-MX.js.map +1 -1
  734. package/locales/es-NI.js +1 -1
  735. package/locales/es-NI.js.map +1 -1
  736. package/locales/es-PA.js +1 -1
  737. package/locales/es-PA.js.map +1 -1
  738. package/locales/es-PE.js +1 -1
  739. package/locales/es-PE.js.map +1 -1
  740. package/locales/es-PH.d.ts +1 -1
  741. package/locales/es-PH.js +1 -1
  742. package/locales/es-PH.js.map +1 -1
  743. package/locales/es-PR.js +1 -1
  744. package/locales/es-PR.js.map +1 -1
  745. package/locales/es-PY.js +1 -1
  746. package/locales/es-PY.js.map +1 -1
  747. package/locales/es-SV.js +1 -1
  748. package/locales/es-SV.js.map +1 -1
  749. package/locales/es-US.js +1 -1
  750. package/locales/es-US.js.map +1 -1
  751. package/locales/es-UY.js +1 -1
  752. package/locales/es-UY.js.map +1 -1
  753. package/locales/es-VE.js +1 -1
  754. package/locales/es-VE.js.map +1 -1
  755. package/locales/es.d.ts +1 -1
  756. package/locales/es.js +1 -1
  757. package/locales/es.js.map +1 -1
  758. package/locales/et.js +1 -1
  759. package/locales/et.js.map +1 -1
  760. package/locales/eu.d.ts +1 -1
  761. package/locales/eu.js +1 -1
  762. package/locales/eu.js.map +1 -1
  763. package/locales/ewo.js +1 -1
  764. package/locales/ewo.js.map +1 -1
  765. package/locales/extra/aa-DJ.d.ts +9 -0
  766. package/locales/extra/aa-DJ.js +11 -0
  767. package/locales/extra/aa-DJ.js.map +1 -0
  768. package/locales/extra/aa-ER.d.ts +9 -0
  769. package/locales/extra/aa-ER.js +11 -0
  770. package/locales/extra/aa-ER.js.map +1 -0
  771. package/locales/extra/aa.d.ts +9 -0
  772. package/locales/extra/aa.js +11 -0
  773. package/locales/extra/aa.js.map +1 -0
  774. package/locales/extra/ab.d.ts +9 -0
  775. package/locales/extra/ab.js +11 -0
  776. package/locales/extra/ab.js.map +1 -0
  777. package/locales/extra/am.js +1 -1
  778. package/locales/extra/am.js.map +1 -1
  779. package/locales/extra/an.d.ts +9 -0
  780. package/locales/extra/an.js +11 -0
  781. package/locales/extra/an.js.map +1 -0
  782. package/locales/extra/ann.d.ts +9 -0
  783. package/locales/extra/ann.js +11 -0
  784. package/locales/extra/ann.js.map +1 -0
  785. package/locales/extra/apc.d.ts +9 -0
  786. package/locales/extra/apc.js +11 -0
  787. package/locales/extra/apc.js.map +1 -0
  788. package/locales/extra/arn.d.ts +9 -0
  789. package/locales/extra/arn.js +11 -0
  790. package/locales/extra/arn.js.map +1 -0
  791. package/locales/extra/az-Arab-IQ.d.ts +9 -0
  792. package/locales/extra/az-Arab-IQ.js +11 -0
  793. package/locales/extra/az-Arab-IQ.js.map +1 -0
  794. package/locales/extra/az-Arab-TR.d.ts +9 -0
  795. package/locales/extra/az-Arab-TR.js +11 -0
  796. package/locales/extra/az-Arab-TR.js.map +1 -0
  797. package/locales/extra/az-Arab.d.ts +9 -0
  798. package/locales/extra/az-Arab.js +11 -0
  799. package/locales/extra/az-Arab.js.map +1 -0
  800. package/locales/extra/ba.d.ts +9 -0
  801. package/locales/extra/ba.js +11 -0
  802. package/locales/extra/ba.js.map +1 -0
  803. package/locales/extra/bal-Arab.d.ts +9 -0
  804. package/locales/extra/bal-Arab.js +11 -0
  805. package/locales/extra/bal-Arab.js.map +1 -0
  806. package/locales/extra/bal-Latn.d.ts +9 -0
  807. package/locales/extra/bal-Latn.js +11 -0
  808. package/locales/extra/bal-Latn.js.map +1 -0
  809. package/locales/extra/bal.d.ts +9 -0
  810. package/locales/extra/bal.js +11 -0
  811. package/locales/extra/bal.js.map +1 -0
  812. package/locales/extra/bew.d.ts +9 -0
  813. package/locales/extra/bew.js +11 -0
  814. package/locales/extra/bew.js.map +1 -0
  815. package/locales/extra/bgc.d.ts +9 -0
  816. package/locales/extra/bgc.js +11 -0
  817. package/locales/extra/bgc.js.map +1 -0
  818. package/locales/extra/bgn-AE.d.ts +9 -0
  819. package/locales/extra/bgn-AE.js +11 -0
  820. package/locales/extra/bgn-AE.js.map +1 -0
  821. package/locales/extra/bgn-AF.d.ts +9 -0
  822. package/locales/extra/bgn-AF.js +11 -0
  823. package/locales/extra/bgn-AF.js.map +1 -0
  824. package/locales/extra/bgn-IR.d.ts +9 -0
  825. package/locales/extra/bgn-IR.js +11 -0
  826. package/locales/extra/bgn-IR.js.map +1 -0
  827. package/locales/extra/bgn-OM.d.ts +9 -0
  828. package/locales/extra/bgn-OM.js +11 -0
  829. package/locales/extra/bgn-OM.js.map +1 -0
  830. package/locales/extra/bgn.d.ts +9 -0
  831. package/locales/extra/bgn.js +11 -0
  832. package/locales/extra/bgn.js.map +1 -0
  833. package/locales/extra/bho.d.ts +9 -0
  834. package/locales/extra/bho.js +11 -0
  835. package/locales/extra/bho.js.map +1 -0
  836. package/locales/extra/blo.d.ts +9 -0
  837. package/locales/extra/blo.js +11 -0
  838. package/locales/extra/blo.js.map +1 -0
  839. package/locales/extra/blt.d.ts +9 -0
  840. package/locales/extra/blt.js +11 -0
  841. package/locales/extra/blt.js.map +1 -0
  842. package/locales/extra/bm-Nkoo.d.ts +9 -0
  843. package/locales/extra/bm-Nkoo.js +11 -0
  844. package/locales/extra/bm-Nkoo.js.map +1 -0
  845. package/locales/extra/bn-IN.js +1 -1
  846. package/locales/extra/bn-IN.js.map +1 -1
  847. package/locales/extra/bn.js +1 -1
  848. package/locales/extra/bn.js.map +1 -1
  849. package/locales/extra/bss.d.ts +9 -0
  850. package/locales/extra/bss.js +11 -0
  851. package/locales/extra/bss.js.map +1 -0
  852. package/locales/extra/byn.d.ts +9 -0
  853. package/locales/extra/byn.js +11 -0
  854. package/locales/extra/byn.js.map +1 -0
  855. package/locales/extra/ca-AD.d.ts +1 -1
  856. package/locales/extra/ca-AD.js +1 -1
  857. package/locales/extra/ca-AD.js.map +1 -1
  858. package/locales/extra/ca-ES-valencia.d.ts +1 -1
  859. package/locales/extra/ca-ES-valencia.js +1 -1
  860. package/locales/extra/ca-ES-valencia.js.map +1 -1
  861. package/locales/extra/ca-FR.d.ts +1 -1
  862. package/locales/extra/ca-FR.js +1 -1
  863. package/locales/extra/ca-FR.js.map +1 -1
  864. package/locales/extra/ca-IT.d.ts +1 -1
  865. package/locales/extra/ca-IT.js +1 -1
  866. package/locales/extra/ca-IT.js.map +1 -1
  867. package/locales/extra/ca.d.ts +1 -1
  868. package/locales/extra/ca.js +1 -1
  869. package/locales/extra/ca.js.map +1 -1
  870. package/locales/extra/cad.d.ts +9 -0
  871. package/locales/extra/cad.js +11 -0
  872. package/locales/extra/cad.js.map +1 -0
  873. package/locales/extra/cch.d.ts +9 -0
  874. package/locales/extra/cch.js +11 -0
  875. package/locales/extra/cch.js.map +1 -0
  876. package/locales/extra/cho.d.ts +9 -0
  877. package/locales/extra/cho.js +11 -0
  878. package/locales/extra/cho.js.map +1 -0
  879. package/locales/extra/cic.d.ts +9 -0
  880. package/locales/extra/cic.js +11 -0
  881. package/locales/extra/cic.js.map +1 -0
  882. package/locales/extra/co.d.ts +9 -0
  883. package/locales/extra/co.js +11 -0
  884. package/locales/extra/co.js.map +1 -0
  885. package/locales/extra/cop.d.ts +9 -0
  886. package/locales/extra/cop.js +11 -0
  887. package/locales/extra/cop.js.map +1 -0
  888. package/locales/extra/csw.d.ts +9 -0
  889. package/locales/extra/csw.js +11 -0
  890. package/locales/extra/csw.js.map +1 -0
  891. package/locales/extra/cu.d.ts +9 -0
  892. package/locales/extra/cu.js +11 -0
  893. package/locales/extra/cu.js.map +1 -0
  894. package/locales/extra/cv.d.ts +9 -0
  895. package/locales/extra/cv.js +11 -0
  896. package/locales/extra/cv.js.map +1 -0
  897. package/locales/extra/dv.d.ts +9 -0
  898. package/locales/extra/dv.js +11 -0
  899. package/locales/extra/dv.js.map +1 -0
  900. package/locales/extra/el-polyton.d.ts +9 -0
  901. package/locales/extra/el-polyton.js +11 -0
  902. package/locales/extra/el-polyton.js.map +1 -0
  903. package/locales/extra/en-001.js +1 -1
  904. package/locales/extra/en-001.js.map +1 -1
  905. package/locales/extra/en-150.js +1 -1
  906. package/locales/extra/en-150.js.map +1 -1
  907. package/locales/extra/en-AE.js +1 -1
  908. package/locales/extra/en-AE.js.map +1 -1
  909. package/locales/extra/en-AG.js +1 -1
  910. package/locales/extra/en-AG.js.map +1 -1
  911. package/locales/extra/en-AI.js +1 -1
  912. package/locales/extra/en-AI.js.map +1 -1
  913. package/locales/extra/en-AS.js +1 -1
  914. package/locales/extra/en-AS.js.map +1 -1
  915. package/locales/extra/en-AT.js +1 -1
  916. package/locales/extra/en-AT.js.map +1 -1
  917. package/locales/extra/en-AU.js +1 -1
  918. package/locales/extra/en-AU.js.map +1 -1
  919. package/locales/extra/en-BB.js +1 -1
  920. package/locales/extra/en-BB.js.map +1 -1
  921. package/locales/extra/en-BE.js +1 -1
  922. package/locales/extra/en-BE.js.map +1 -1
  923. package/locales/extra/en-BI.js +1 -1
  924. package/locales/extra/en-BI.js.map +1 -1
  925. package/locales/extra/en-BM.js +1 -1
  926. package/locales/extra/en-BM.js.map +1 -1
  927. package/locales/extra/en-BS.js +1 -1
  928. package/locales/extra/en-BS.js.map +1 -1
  929. package/locales/extra/en-BW.js +1 -1
  930. package/locales/extra/en-BW.js.map +1 -1
  931. package/locales/extra/en-BZ.js +1 -1
  932. package/locales/extra/en-BZ.js.map +1 -1
  933. package/locales/extra/en-CA.js +1 -1
  934. package/locales/extra/en-CA.js.map +1 -1
  935. package/locales/extra/en-CC.js +1 -1
  936. package/locales/extra/en-CC.js.map +1 -1
  937. package/locales/extra/en-CH.js +1 -1
  938. package/locales/extra/en-CH.js.map +1 -1
  939. package/locales/extra/en-CK.js +1 -1
  940. package/locales/extra/en-CK.js.map +1 -1
  941. package/locales/extra/en-CM.js +1 -1
  942. package/locales/extra/en-CM.js.map +1 -1
  943. package/locales/extra/en-CX.js +1 -1
  944. package/locales/extra/en-CX.js.map +1 -1
  945. package/locales/extra/en-CY.js +1 -1
  946. package/locales/extra/en-CY.js.map +1 -1
  947. package/locales/extra/en-CZ.d.ts +9 -0
  948. package/locales/extra/en-CZ.js +11 -0
  949. package/locales/extra/en-CZ.js.map +1 -0
  950. package/locales/extra/en-DE.js +1 -1
  951. package/locales/extra/en-DE.js.map +1 -1
  952. package/locales/extra/en-DG.js +1 -1
  953. package/locales/extra/en-DG.js.map +1 -1
  954. package/locales/extra/en-DK.js +1 -1
  955. package/locales/extra/en-DK.js.map +1 -1
  956. package/locales/extra/en-DM.js +1 -1
  957. package/locales/extra/en-DM.js.map +1 -1
  958. package/locales/extra/en-Dsrt.d.ts +9 -0
  959. package/locales/extra/en-Dsrt.js +11 -0
  960. package/locales/extra/en-Dsrt.js.map +1 -0
  961. package/locales/extra/en-ER.js +1 -1
  962. package/locales/extra/en-ER.js.map +1 -1
  963. package/locales/extra/en-ES.d.ts +9 -0
  964. package/locales/extra/en-ES.js +11 -0
  965. package/locales/extra/en-ES.js.map +1 -0
  966. package/locales/extra/en-FI.js +1 -1
  967. package/locales/extra/en-FI.js.map +1 -1
  968. package/locales/extra/en-FJ.js +1 -1
  969. package/locales/extra/en-FJ.js.map +1 -1
  970. package/locales/extra/en-FK.js +1 -1
  971. package/locales/extra/en-FK.js.map +1 -1
  972. package/locales/extra/en-FM.js +1 -1
  973. package/locales/extra/en-FM.js.map +1 -1
  974. package/locales/extra/en-FR.d.ts +9 -0
  975. package/locales/extra/en-FR.js +11 -0
  976. package/locales/extra/en-FR.js.map +1 -0
  977. package/locales/extra/en-GB.js +1 -1
  978. package/locales/extra/en-GB.js.map +1 -1
  979. package/locales/extra/en-GD.js +1 -1
  980. package/locales/extra/en-GD.js.map +1 -1
  981. package/locales/extra/en-GG.js +1 -1
  982. package/locales/extra/en-GG.js.map +1 -1
  983. package/locales/extra/en-GH.js +1 -1
  984. package/locales/extra/en-GH.js.map +1 -1
  985. package/locales/extra/en-GI.js +1 -1
  986. package/locales/extra/en-GI.js.map +1 -1
  987. package/locales/extra/en-GM.js +1 -1
  988. package/locales/extra/en-GM.js.map +1 -1
  989. package/locales/extra/en-GS.d.ts +9 -0
  990. package/locales/extra/en-GS.js +11 -0
  991. package/locales/extra/en-GS.js.map +1 -0
  992. package/locales/extra/en-GU.js +1 -1
  993. package/locales/extra/en-GU.js.map +1 -1
  994. package/locales/extra/en-GY.js +1 -1
  995. package/locales/extra/en-GY.js.map +1 -1
  996. package/locales/extra/en-HK.js +1 -1
  997. package/locales/extra/en-HK.js.map +1 -1
  998. package/locales/extra/en-HU.d.ts +9 -0
  999. package/locales/extra/en-HU.js +11 -0
  1000. package/locales/extra/en-HU.js.map +1 -0
  1001. package/locales/extra/en-ID.d.ts +9 -0
  1002. package/locales/extra/en-ID.js +11 -0
  1003. package/locales/extra/en-ID.js.map +1 -0
  1004. package/locales/extra/en-IE.js +1 -1
  1005. package/locales/extra/en-IE.js.map +1 -1
  1006. package/locales/extra/en-IL.js +1 -1
  1007. package/locales/extra/en-IL.js.map +1 -1
  1008. package/locales/extra/en-IM.js +1 -1
  1009. package/locales/extra/en-IM.js.map +1 -1
  1010. package/locales/extra/en-IN.js +1 -1
  1011. package/locales/extra/en-IN.js.map +1 -1
  1012. package/locales/extra/en-IO.js +1 -1
  1013. package/locales/extra/en-IO.js.map +1 -1
  1014. package/locales/extra/en-IT.d.ts +9 -0
  1015. package/locales/extra/en-IT.js +11 -0
  1016. package/locales/extra/en-IT.js.map +1 -0
  1017. package/locales/extra/en-JE.js +1 -1
  1018. package/locales/extra/en-JE.js.map +1 -1
  1019. package/locales/extra/en-JM.js +1 -1
  1020. package/locales/extra/en-JM.js.map +1 -1
  1021. package/locales/extra/en-KE.js +1 -1
  1022. package/locales/extra/en-KE.js.map +1 -1
  1023. package/locales/extra/en-KI.js +1 -1
  1024. package/locales/extra/en-KI.js.map +1 -1
  1025. package/locales/extra/en-KN.js +1 -1
  1026. package/locales/extra/en-KN.js.map +1 -1
  1027. package/locales/extra/en-KY.js +1 -1
  1028. package/locales/extra/en-KY.js.map +1 -1
  1029. package/locales/extra/en-LC.js +1 -1
  1030. package/locales/extra/en-LC.js.map +1 -1
  1031. package/locales/extra/en-LR.js +1 -1
  1032. package/locales/extra/en-LR.js.map +1 -1
  1033. package/locales/extra/en-LS.js +1 -1
  1034. package/locales/extra/en-LS.js.map +1 -1
  1035. package/locales/extra/en-MG.js +1 -1
  1036. package/locales/extra/en-MG.js.map +1 -1
  1037. package/locales/extra/en-MH.js +1 -1
  1038. package/locales/extra/en-MH.js.map +1 -1
  1039. package/locales/extra/en-MO.js +1 -1
  1040. package/locales/extra/en-MO.js.map +1 -1
  1041. package/locales/extra/en-MP.js +1 -1
  1042. package/locales/extra/en-MP.js.map +1 -1
  1043. package/locales/extra/en-MS.js +1 -1
  1044. package/locales/extra/en-MS.js.map +1 -1
  1045. package/locales/extra/en-MT.js +1 -1
  1046. package/locales/extra/en-MT.js.map +1 -1
  1047. package/locales/extra/en-MU.js +1 -1
  1048. package/locales/extra/en-MU.js.map +1 -1
  1049. package/locales/extra/en-MV.js +1 -1
  1050. package/locales/extra/en-MV.js.map +1 -1
  1051. package/locales/extra/en-MW.js +1 -1
  1052. package/locales/extra/en-MW.js.map +1 -1
  1053. package/locales/extra/en-MY.js +1 -1
  1054. package/locales/extra/en-MY.js.map +1 -1
  1055. package/locales/extra/en-NA.js +1 -1
  1056. package/locales/extra/en-NA.js.map +1 -1
  1057. package/locales/extra/en-NF.js +1 -1
  1058. package/locales/extra/en-NF.js.map +1 -1
  1059. package/locales/extra/en-NG.js +1 -1
  1060. package/locales/extra/en-NG.js.map +1 -1
  1061. package/locales/extra/en-NL.js +1 -1
  1062. package/locales/extra/en-NL.js.map +1 -1
  1063. package/locales/extra/en-NO.d.ts +9 -0
  1064. package/locales/extra/en-NO.js +11 -0
  1065. package/locales/extra/en-NO.js.map +1 -0
  1066. package/locales/extra/en-NR.js +1 -1
  1067. package/locales/extra/en-NR.js.map +1 -1
  1068. package/locales/extra/en-NU.js +1 -1
  1069. package/locales/extra/en-NU.js.map +1 -1
  1070. package/locales/extra/en-NZ.js +1 -1
  1071. package/locales/extra/en-NZ.js.map +1 -1
  1072. package/locales/extra/en-PG.js +1 -1
  1073. package/locales/extra/en-PG.js.map +1 -1
  1074. package/locales/extra/en-PH.js +1 -1
  1075. package/locales/extra/en-PH.js.map +1 -1
  1076. package/locales/extra/en-PK.js +1 -1
  1077. package/locales/extra/en-PK.js.map +1 -1
  1078. package/locales/extra/en-PL.d.ts +9 -0
  1079. package/locales/extra/en-PL.js +11 -0
  1080. package/locales/extra/en-PL.js.map +1 -0
  1081. package/locales/extra/en-PN.js +1 -1
  1082. package/locales/extra/en-PN.js.map +1 -1
  1083. package/locales/extra/en-PR.js +1 -1
  1084. package/locales/extra/en-PR.js.map +1 -1
  1085. package/locales/extra/en-PT.d.ts +9 -0
  1086. package/locales/extra/en-PT.js +11 -0
  1087. package/locales/extra/en-PT.js.map +1 -0
  1088. package/locales/extra/en-PW.js +1 -1
  1089. package/locales/extra/en-PW.js.map +1 -1
  1090. package/locales/extra/en-RO.d.ts +9 -0
  1091. package/locales/extra/en-RO.js +11 -0
  1092. package/locales/extra/en-RO.js.map +1 -0
  1093. package/locales/extra/en-RW.js +1 -1
  1094. package/locales/extra/en-RW.js.map +1 -1
  1095. package/locales/extra/en-SB.js +1 -1
  1096. package/locales/extra/en-SB.js.map +1 -1
  1097. package/locales/extra/en-SC.js +1 -1
  1098. package/locales/extra/en-SC.js.map +1 -1
  1099. package/locales/extra/en-SD.js +1 -1
  1100. package/locales/extra/en-SD.js.map +1 -1
  1101. package/locales/extra/en-SE.js +1 -1
  1102. package/locales/extra/en-SE.js.map +1 -1
  1103. package/locales/extra/en-SG.js +1 -1
  1104. package/locales/extra/en-SG.js.map +1 -1
  1105. package/locales/extra/en-SH.js +1 -1
  1106. package/locales/extra/en-SH.js.map +1 -1
  1107. package/locales/extra/en-SI.js +1 -1
  1108. package/locales/extra/en-SI.js.map +1 -1
  1109. package/locales/extra/en-SK.d.ts +9 -0
  1110. package/locales/extra/en-SK.js +11 -0
  1111. package/locales/extra/en-SK.js.map +1 -0
  1112. package/locales/extra/en-SL.js +1 -1
  1113. package/locales/extra/en-SL.js.map +1 -1
  1114. package/locales/extra/en-SS.js +1 -1
  1115. package/locales/extra/en-SS.js.map +1 -1
  1116. package/locales/extra/en-SX.js +1 -1
  1117. package/locales/extra/en-SX.js.map +1 -1
  1118. package/locales/extra/en-SZ.js +1 -1
  1119. package/locales/extra/en-SZ.js.map +1 -1
  1120. package/locales/extra/en-Shaw.d.ts +9 -0
  1121. package/locales/extra/en-Shaw.js +11 -0
  1122. package/locales/extra/en-Shaw.js.map +1 -0
  1123. package/locales/extra/en-TC.js +1 -1
  1124. package/locales/extra/en-TC.js.map +1 -1
  1125. package/locales/extra/en-TK.js +1 -1
  1126. package/locales/extra/en-TK.js.map +1 -1
  1127. package/locales/extra/en-TO.js +1 -1
  1128. package/locales/extra/en-TO.js.map +1 -1
  1129. package/locales/extra/en-TT.js +1 -1
  1130. package/locales/extra/en-TT.js.map +1 -1
  1131. package/locales/extra/en-TV.js +1 -1
  1132. package/locales/extra/en-TV.js.map +1 -1
  1133. package/locales/extra/en-TZ.js +1 -1
  1134. package/locales/extra/en-TZ.js.map +1 -1
  1135. package/locales/extra/en-UG.js +1 -1
  1136. package/locales/extra/en-UG.js.map +1 -1
  1137. package/locales/extra/en-UM.js +1 -1
  1138. package/locales/extra/en-UM.js.map +1 -1
  1139. package/locales/extra/en-VC.js +1 -1
  1140. package/locales/extra/en-VC.js.map +1 -1
  1141. package/locales/extra/en-VG.js +1 -1
  1142. package/locales/extra/en-VG.js.map +1 -1
  1143. package/locales/extra/en-VI.js +1 -1
  1144. package/locales/extra/en-VI.js.map +1 -1
  1145. package/locales/extra/en-VU.js +1 -1
  1146. package/locales/extra/en-VU.js.map +1 -1
  1147. package/locales/extra/en-WS.js +1 -1
  1148. package/locales/extra/en-WS.js.map +1 -1
  1149. package/locales/extra/en-ZA.js +1 -1
  1150. package/locales/extra/en-ZA.js.map +1 -1
  1151. package/locales/extra/en-ZM.js +1 -1
  1152. package/locales/extra/en-ZM.js.map +1 -1
  1153. package/locales/extra/en-ZW.js +1 -1
  1154. package/locales/extra/en-ZW.js.map +1 -1
  1155. package/locales/extra/en.js +1 -1
  1156. package/locales/extra/en.js.map +1 -1
  1157. package/locales/extra/es-AR.js +1 -1
  1158. package/locales/extra/es-AR.js.map +1 -1
  1159. package/locales/extra/es-CO.js +1 -1
  1160. package/locales/extra/es-CO.js.map +1 -1
  1161. package/locales/extra/es-MX.js +1 -1
  1162. package/locales/extra/es-MX.js.map +1 -1
  1163. package/locales/extra/es-PA.js +1 -1
  1164. package/locales/extra/es-PA.js.map +1 -1
  1165. package/locales/extra/eu.d.ts +1 -1
  1166. package/locales/extra/eu.js +1 -1
  1167. package/locales/extra/eu.js.map +1 -1
  1168. package/locales/extra/fa-AF.js +1 -1
  1169. package/locales/extra/fa-AF.js.map +1 -1
  1170. package/locales/extra/fa.js +1 -1
  1171. package/locales/extra/fa.js.map +1 -1
  1172. package/locales/extra/fil.js +1 -1
  1173. package/locales/extra/fil.js.map +1 -1
  1174. package/locales/extra/fr-BE.js +1 -1
  1175. package/locales/extra/fr-BE.js.map +1 -1
  1176. package/locales/extra/fr-BF.js +1 -1
  1177. package/locales/extra/fr-BF.js.map +1 -1
  1178. package/locales/extra/fr-BI.js +1 -1
  1179. package/locales/extra/fr-BI.js.map +1 -1
  1180. package/locales/extra/fr-BJ.js +1 -1
  1181. package/locales/extra/fr-BJ.js.map +1 -1
  1182. package/locales/extra/fr-BL.js +1 -1
  1183. package/locales/extra/fr-BL.js.map +1 -1
  1184. package/locales/extra/fr-CA.js +1 -1
  1185. package/locales/extra/fr-CA.js.map +1 -1
  1186. package/locales/extra/fr-CD.js +1 -1
  1187. package/locales/extra/fr-CD.js.map +1 -1
  1188. package/locales/extra/fr-CF.js +1 -1
  1189. package/locales/extra/fr-CF.js.map +1 -1
  1190. package/locales/extra/fr-CG.js +1 -1
  1191. package/locales/extra/fr-CG.js.map +1 -1
  1192. package/locales/extra/fr-CH.js +1 -1
  1193. package/locales/extra/fr-CH.js.map +1 -1
  1194. package/locales/extra/fr-CI.js +1 -1
  1195. package/locales/extra/fr-CI.js.map +1 -1
  1196. package/locales/extra/fr-CM.js +1 -1
  1197. package/locales/extra/fr-CM.js.map +1 -1
  1198. package/locales/extra/fr-DJ.js +1 -1
  1199. package/locales/extra/fr-DJ.js.map +1 -1
  1200. package/locales/extra/fr-DZ.js +1 -1
  1201. package/locales/extra/fr-DZ.js.map +1 -1
  1202. package/locales/extra/fr-GA.js +1 -1
  1203. package/locales/extra/fr-GA.js.map +1 -1
  1204. package/locales/extra/fr-GF.js +1 -1
  1205. package/locales/extra/fr-GF.js.map +1 -1
  1206. package/locales/extra/fr-GN.js +1 -1
  1207. package/locales/extra/fr-GN.js.map +1 -1
  1208. package/locales/extra/fr-GP.js +1 -1
  1209. package/locales/extra/fr-GP.js.map +1 -1
  1210. package/locales/extra/fr-GQ.js +1 -1
  1211. package/locales/extra/fr-GQ.js.map +1 -1
  1212. package/locales/extra/fr-HT.js +1 -1
  1213. package/locales/extra/fr-HT.js.map +1 -1
  1214. package/locales/extra/fr-KM.js +1 -1
  1215. package/locales/extra/fr-KM.js.map +1 -1
  1216. package/locales/extra/fr-LU.js +1 -1
  1217. package/locales/extra/fr-LU.js.map +1 -1
  1218. package/locales/extra/fr-MA.js +1 -1
  1219. package/locales/extra/fr-MA.js.map +1 -1
  1220. package/locales/extra/fr-MC.js +1 -1
  1221. package/locales/extra/fr-MC.js.map +1 -1
  1222. package/locales/extra/fr-MF.js +1 -1
  1223. package/locales/extra/fr-MF.js.map +1 -1
  1224. package/locales/extra/fr-MG.js +1 -1
  1225. package/locales/extra/fr-MG.js.map +1 -1
  1226. package/locales/extra/fr-ML.js +1 -1
  1227. package/locales/extra/fr-ML.js.map +1 -1
  1228. package/locales/extra/fr-MQ.js +1 -1
  1229. package/locales/extra/fr-MQ.js.map +1 -1
  1230. package/locales/extra/fr-MR.js +1 -1
  1231. package/locales/extra/fr-MR.js.map +1 -1
  1232. package/locales/extra/fr-MU.js +1 -1
  1233. package/locales/extra/fr-MU.js.map +1 -1
  1234. package/locales/extra/fr-NC.js +1 -1
  1235. package/locales/extra/fr-NC.js.map +1 -1
  1236. package/locales/extra/fr-NE.js +1 -1
  1237. package/locales/extra/fr-NE.js.map +1 -1
  1238. package/locales/extra/fr-PF.js +1 -1
  1239. package/locales/extra/fr-PF.js.map +1 -1
  1240. package/locales/extra/fr-PM.js +1 -1
  1241. package/locales/extra/fr-PM.js.map +1 -1
  1242. package/locales/extra/fr-RE.js +1 -1
  1243. package/locales/extra/fr-RE.js.map +1 -1
  1244. package/locales/extra/fr-RW.js +1 -1
  1245. package/locales/extra/fr-RW.js.map +1 -1
  1246. package/locales/extra/fr-SC.js +1 -1
  1247. package/locales/extra/fr-SC.js.map +1 -1
  1248. package/locales/extra/fr-SN.js +1 -1
  1249. package/locales/extra/fr-SN.js.map +1 -1
  1250. package/locales/extra/fr-SY.js +1 -1
  1251. package/locales/extra/fr-SY.js.map +1 -1
  1252. package/locales/extra/fr-TD.js +1 -1
  1253. package/locales/extra/fr-TD.js.map +1 -1
  1254. package/locales/extra/fr-TG.js +1 -1
  1255. package/locales/extra/fr-TG.js.map +1 -1
  1256. package/locales/extra/fr-TN.js +1 -1
  1257. package/locales/extra/fr-TN.js.map +1 -1
  1258. package/locales/extra/fr-VU.js +1 -1
  1259. package/locales/extra/fr-VU.js.map +1 -1
  1260. package/locales/extra/fr-WF.js +1 -1
  1261. package/locales/extra/fr-WF.js.map +1 -1
  1262. package/locales/extra/fr-YT.js +1 -1
  1263. package/locales/extra/fr-YT.js.map +1 -1
  1264. package/locales/extra/fr.js +1 -1
  1265. package/locales/extra/fr.js.map +1 -1
  1266. package/locales/extra/frr.d.ts +9 -0
  1267. package/locales/extra/frr.js +11 -0
  1268. package/locales/extra/frr.js.map +1 -0
  1269. package/locales/extra/gaa.d.ts +9 -0
  1270. package/locales/extra/gaa.js +11 -0
  1271. package/locales/extra/gaa.js.map +1 -0
  1272. package/locales/extra/gez-ER.d.ts +9 -0
  1273. package/locales/extra/gez-ER.js +11 -0
  1274. package/locales/extra/gez-ER.js.map +1 -0
  1275. package/locales/extra/gez.d.ts +9 -0
  1276. package/locales/extra/gez.js +11 -0
  1277. package/locales/extra/gez.js.map +1 -0
  1278. package/locales/extra/gn.d.ts +9 -0
  1279. package/locales/extra/gn.js +11 -0
  1280. package/locales/extra/gn.js.map +1 -0
  1281. package/locales/extra/ha-Arab-SD.d.ts +9 -0
  1282. package/locales/extra/ha-Arab-SD.js +11 -0
  1283. package/locales/extra/ha-Arab-SD.js.map +1 -0
  1284. package/locales/extra/ha-Arab.d.ts +9 -0
  1285. package/locales/extra/ha-Arab.js +11 -0
  1286. package/locales/extra/ha-Arab.js.map +1 -0
  1287. package/locales/extra/hi-Latn.js +1 -1
  1288. package/locales/extra/hi-Latn.js.map +1 -1
  1289. package/locales/extra/hnj-Hmnp.d.ts +9 -0
  1290. package/locales/extra/hnj-Hmnp.js +11 -0
  1291. package/locales/extra/hnj-Hmnp.js.map +1 -0
  1292. package/locales/extra/hnj.d.ts +9 -0
  1293. package/locales/extra/hnj.js +11 -0
  1294. package/locales/extra/hnj.js.map +1 -0
  1295. package/locales/extra/ht.d.ts +9 -0
  1296. package/locales/extra/ht.js +11 -0
  1297. package/locales/extra/ht.js.map +1 -0
  1298. package/locales/extra/ie.d.ts +9 -0
  1299. package/locales/extra/ie.js +11 -0
  1300. package/locales/extra/ie.js.map +1 -0
  1301. package/locales/extra/io.d.ts +9 -0
  1302. package/locales/extra/io.js +11 -0
  1303. package/locales/extra/io.js.map +1 -0
  1304. package/locales/extra/iu-Latn.d.ts +9 -0
  1305. package/locales/extra/iu-Latn.js +11 -0
  1306. package/locales/extra/iu-Latn.js.map +1 -0
  1307. package/locales/extra/iu.d.ts +9 -0
  1308. package/locales/extra/iu.js +11 -0
  1309. package/locales/extra/iu.js.map +1 -0
  1310. package/locales/extra/jbo.d.ts +9 -0
  1311. package/locales/extra/jbo.js +11 -0
  1312. package/locales/extra/jbo.js.map +1 -0
  1313. package/locales/extra/kaa-Cyrl.d.ts +9 -0
  1314. package/locales/extra/kaa-Cyrl.js +11 -0
  1315. package/locales/extra/kaa-Cyrl.js.map +1 -0
  1316. package/locales/extra/kaa-Latn.d.ts +9 -0
  1317. package/locales/extra/kaa-Latn.js +11 -0
  1318. package/locales/extra/kaa-Latn.js.map +1 -0
  1319. package/locales/extra/kaa.d.ts +9 -0
  1320. package/locales/extra/kaa.js +11 -0
  1321. package/locales/extra/kaa.js.map +1 -0
  1322. package/locales/extra/kaj.d.ts +9 -0
  1323. package/locales/extra/kaj.js +11 -0
  1324. package/locales/extra/kaj.js.map +1 -0
  1325. package/locales/extra/kcg.d.ts +9 -0
  1326. package/locales/extra/kcg.js +11 -0
  1327. package/locales/extra/kcg.js.map +1 -0
  1328. package/locales/extra/ken.d.ts +9 -0
  1329. package/locales/extra/ken.js +11 -0
  1330. package/locales/extra/ken.js.map +1 -0
  1331. package/locales/extra/kk-Arab.d.ts +9 -0
  1332. package/locales/extra/kk-Arab.js +11 -0
  1333. package/locales/extra/kk-Arab.js.map +1 -0
  1334. package/locales/extra/kk-Cyrl.d.ts +9 -0
  1335. package/locales/extra/kk-Cyrl.js +11 -0
  1336. package/locales/extra/kk-Cyrl.js.map +1 -0
  1337. package/locales/extra/kk-KZ.d.ts +9 -0
  1338. package/locales/extra/kk-KZ.js +11 -0
  1339. package/locales/extra/kk-KZ.js.map +1 -0
  1340. package/locales/extra/ko-CN.d.ts +9 -0
  1341. package/locales/extra/ko-CN.js +11 -0
  1342. package/locales/extra/ko-CN.js.map +1 -0
  1343. package/locales/extra/ko-KP.js +1 -1
  1344. package/locales/extra/ko-KP.js.map +1 -1
  1345. package/locales/extra/ko.js +1 -1
  1346. package/locales/extra/ko.js.map +1 -1
  1347. package/locales/extra/kok-Deva.d.ts +9 -0
  1348. package/locales/extra/kok-Deva.js +11 -0
  1349. package/locales/extra/kok-Deva.js.map +1 -0
  1350. package/locales/extra/kok-Latn.d.ts +9 -0
  1351. package/locales/extra/kok-Latn.js +11 -0
  1352. package/locales/extra/kok-Latn.js.map +1 -0
  1353. package/locales/extra/kpe-GN.d.ts +9 -0
  1354. package/locales/extra/kpe-GN.js +11 -0
  1355. package/locales/extra/kpe-GN.js.map +1 -0
  1356. package/locales/extra/kpe.d.ts +9 -0
  1357. package/locales/extra/kpe.js +11 -0
  1358. package/locales/extra/kpe.js.map +1 -0
  1359. package/locales/extra/kxv-Deva.d.ts +9 -0
  1360. package/locales/extra/kxv-Deva.js +11 -0
  1361. package/locales/extra/kxv-Deva.js.map +1 -0
  1362. package/locales/extra/kxv-Latn.d.ts +9 -0
  1363. package/locales/extra/kxv-Latn.js +11 -0
  1364. package/locales/extra/kxv-Latn.js.map +1 -0
  1365. package/locales/extra/kxv-Orya.d.ts +9 -0
  1366. package/locales/extra/kxv-Orya.js +11 -0
  1367. package/locales/extra/kxv-Orya.js.map +1 -0
  1368. package/locales/extra/kxv-Telu.d.ts +9 -0
  1369. package/locales/extra/kxv-Telu.js +11 -0
  1370. package/locales/extra/kxv-Telu.js.map +1 -0
  1371. package/locales/extra/kxv.d.ts +9 -0
  1372. package/locales/extra/kxv.js +11 -0
  1373. package/locales/extra/kxv.js.map +1 -0
  1374. package/locales/extra/la.d.ts +9 -0
  1375. package/locales/extra/la.js +11 -0
  1376. package/locales/extra/la.js.map +1 -0
  1377. package/locales/extra/lij.d.ts +9 -0
  1378. package/locales/extra/lij.js +11 -0
  1379. package/locales/extra/lij.js.map +1 -0
  1380. package/locales/extra/lld.d.ts +9 -0
  1381. package/locales/extra/lld.js +11 -0
  1382. package/locales/extra/lld.js.map +1 -0
  1383. package/locales/extra/lmo.d.ts +9 -0
  1384. package/locales/extra/lmo.js +11 -0
  1385. package/locales/extra/lmo.js.map +1 -0
  1386. package/locales/extra/lo.js +1 -1
  1387. package/locales/extra/lo.js.map +1 -1
  1388. package/locales/extra/ltg.d.ts +9 -0
  1389. package/locales/extra/ltg.js +11 -0
  1390. package/locales/extra/ltg.js.map +1 -0
  1391. package/locales/extra/mdf.d.ts +9 -0
  1392. package/locales/extra/mdf.js +11 -0
  1393. package/locales/extra/mdf.js.map +1 -0
  1394. package/locales/extra/mhn.d.ts +9 -0
  1395. package/locales/extra/mhn.js +11 -0
  1396. package/locales/extra/mhn.js.map +1 -0
  1397. package/locales/extra/mic.d.ts +9 -0
  1398. package/locales/extra/mic.js +11 -0
  1399. package/locales/extra/mic.js.map +1 -0
  1400. package/locales/extra/mk.d.ts +1 -1
  1401. package/locales/extra/mk.js +1 -1
  1402. package/locales/extra/mk.js.map +1 -1
  1403. package/locales/extra/mn-Mong-MN.d.ts +9 -0
  1404. package/locales/extra/mn-Mong-MN.js +11 -0
  1405. package/locales/extra/mn-Mong-MN.js.map +1 -0
  1406. package/locales/extra/mn-Mong.d.ts +9 -0
  1407. package/locales/extra/mn-Mong.js +11 -0
  1408. package/locales/extra/mn-Mong.js.map +1 -0
  1409. package/locales/extra/mni-Mtei.d.ts +9 -0
  1410. package/locales/extra/mni-Mtei.js +11 -0
  1411. package/locales/extra/mni-Mtei.js.map +1 -0
  1412. package/locales/extra/moh.d.ts +9 -0
  1413. package/locales/extra/moh.js +11 -0
  1414. package/locales/extra/moh.js.map +1 -0
  1415. package/locales/extra/mr.js +1 -1
  1416. package/locales/extra/mr.js.map +1 -1
  1417. package/locales/extra/ms-Arab-BN.d.ts +9 -0
  1418. package/locales/extra/ms-Arab-BN.js +11 -0
  1419. package/locales/extra/ms-Arab-BN.js.map +1 -0
  1420. package/locales/extra/ms-Arab.d.ts +9 -0
  1421. package/locales/extra/ms-Arab.js +11 -0
  1422. package/locales/extra/ms-Arab.js.map +1 -0
  1423. package/locales/extra/mus.d.ts +9 -0
  1424. package/locales/extra/mus.js +11 -0
  1425. package/locales/extra/mus.js.map +1 -0
  1426. package/locales/extra/myv.d.ts +9 -0
  1427. package/locales/extra/myv.js +11 -0
  1428. package/locales/extra/myv.js.map +1 -0
  1429. package/locales/extra/nqo.d.ts +9 -0
  1430. package/locales/extra/nqo.js +11 -0
  1431. package/locales/extra/nqo.js.map +1 -0
  1432. package/locales/extra/nr.d.ts +9 -0
  1433. package/locales/extra/nr.js +11 -0
  1434. package/locales/extra/nr.js.map +1 -0
  1435. package/locales/extra/nso.d.ts +9 -0
  1436. package/locales/extra/nso.js +11 -0
  1437. package/locales/extra/nso.js.map +1 -0
  1438. package/locales/extra/nv.d.ts +9 -0
  1439. package/locales/extra/nv.js +11 -0
  1440. package/locales/extra/nv.js.map +1 -0
  1441. package/locales/extra/ny.d.ts +9 -0
  1442. package/locales/extra/ny.js +11 -0
  1443. package/locales/extra/ny.js.map +1 -0
  1444. package/locales/extra/oc-ES.d.ts +9 -0
  1445. package/locales/extra/oc-ES.js +11 -0
  1446. package/locales/extra/oc-ES.js.map +1 -0
  1447. package/locales/extra/oc.d.ts +9 -0
  1448. package/locales/extra/oc.js +11 -0
  1449. package/locales/extra/oc.js.map +1 -0
  1450. package/locales/extra/osa.d.ts +9 -0
  1451. package/locales/extra/osa.js +11 -0
  1452. package/locales/extra/osa.js.map +1 -0
  1453. package/locales/extra/pap-AW.d.ts +9 -0
  1454. package/locales/extra/pap-AW.js +11 -0
  1455. package/locales/extra/pap-AW.js.map +1 -0
  1456. package/locales/extra/pap.d.ts +9 -0
  1457. package/locales/extra/pap.js +11 -0
  1458. package/locales/extra/pap.js.map +1 -0
  1459. package/locales/extra/pis.d.ts +9 -0
  1460. package/locales/extra/pis.js +11 -0
  1461. package/locales/extra/pis.js.map +1 -0
  1462. package/locales/extra/prg.d.ts +9 -0
  1463. package/locales/extra/prg.js +11 -0
  1464. package/locales/extra/prg.js.map +1 -0
  1465. package/locales/extra/quc.d.ts +9 -0
  1466. package/locales/extra/quc.js +11 -0
  1467. package/locales/extra/quc.js.map +1 -0
  1468. package/locales/extra/raj.d.ts +9 -0
  1469. package/locales/extra/raj.js +11 -0
  1470. package/locales/extra/raj.js.map +1 -0
  1471. package/locales/extra/rhg-Rohg-BD.d.ts +9 -0
  1472. package/locales/extra/rhg-Rohg-BD.js +11 -0
  1473. package/locales/extra/rhg-Rohg-BD.js.map +1 -0
  1474. package/locales/extra/rhg-Rohg.d.ts +9 -0
  1475. package/locales/extra/rhg-Rohg.js +11 -0
  1476. package/locales/extra/rhg-Rohg.js.map +1 -0
  1477. package/locales/extra/rhg.d.ts +9 -0
  1478. package/locales/extra/rhg.js +11 -0
  1479. package/locales/extra/rhg.js.map +1 -0
  1480. package/locales/extra/rif.d.ts +9 -0
  1481. package/locales/extra/rif.js +11 -0
  1482. package/locales/extra/rif.js.map +1 -0
  1483. package/locales/extra/ro.d.ts +1 -1
  1484. package/locales/extra/ro.js +1 -1
  1485. package/locales/extra/ro.js.map +1 -1
  1486. package/locales/extra/sat-Deva.d.ts +9 -0
  1487. package/locales/extra/sat-Deva.js +11 -0
  1488. package/locales/extra/sat-Deva.js.map +1 -0
  1489. package/locales/extra/scn.d.ts +9 -0
  1490. package/locales/extra/scn.js +11 -0
  1491. package/locales/extra/scn.js.map +1 -0
  1492. package/locales/extra/sdh-IQ.d.ts +9 -0
  1493. package/locales/extra/sdh-IQ.js +11 -0
  1494. package/locales/extra/sdh-IQ.js.map +1 -0
  1495. package/locales/extra/sdh.d.ts +9 -0
  1496. package/locales/extra/sdh.js +11 -0
  1497. package/locales/extra/sdh.js.map +1 -0
  1498. package/locales/extra/shn-TH.d.ts +9 -0
  1499. package/locales/extra/shn-TH.js +11 -0
  1500. package/locales/extra/shn-TH.js.map +1 -0
  1501. package/locales/extra/shn.d.ts +9 -0
  1502. package/locales/extra/shn.js +11 -0
  1503. package/locales/extra/shn.js.map +1 -0
  1504. package/locales/extra/sid.d.ts +9 -0
  1505. package/locales/extra/sid.js +11 -0
  1506. package/locales/extra/sid.js.map +1 -0
  1507. package/locales/extra/skr.d.ts +9 -0
  1508. package/locales/extra/skr.js +11 -0
  1509. package/locales/extra/skr.js.map +1 -0
  1510. package/locales/extra/sma-NO.d.ts +9 -0
  1511. package/locales/extra/sma-NO.js +11 -0
  1512. package/locales/extra/sma-NO.js.map +1 -0
  1513. package/locales/extra/sma.d.ts +9 -0
  1514. package/locales/extra/sma.js +11 -0
  1515. package/locales/extra/sma.js.map +1 -0
  1516. package/locales/extra/smj-NO.d.ts +9 -0
  1517. package/locales/extra/smj-NO.js +11 -0
  1518. package/locales/extra/smj-NO.js.map +1 -0
  1519. package/locales/extra/smj.d.ts +9 -0
  1520. package/locales/extra/smj.js +11 -0
  1521. package/locales/extra/smj.js.map +1 -0
  1522. package/locales/extra/sms.d.ts +9 -0
  1523. package/locales/extra/sms.js +11 -0
  1524. package/locales/extra/sms.js.map +1 -0
  1525. package/locales/extra/sr-Cyrl-BA.js +1 -1
  1526. package/locales/extra/sr-Cyrl-BA.js.map +1 -1
  1527. package/locales/extra/sr-Cyrl-ME.js +1 -1
  1528. package/locales/extra/sr-Cyrl-ME.js.map +1 -1
  1529. package/locales/extra/sr-Cyrl-XK.js +1 -1
  1530. package/locales/extra/sr-Cyrl-XK.js.map +1 -1
  1531. package/locales/extra/sr-Cyrl.js +1 -1
  1532. package/locales/extra/sr-Cyrl.js.map +1 -1
  1533. package/locales/extra/sr-Latn-BA.js +1 -1
  1534. package/locales/extra/sr-Latn-BA.js.map +1 -1
  1535. package/locales/extra/sr-Latn-ME.js +1 -1
  1536. package/locales/extra/sr-Latn-ME.js.map +1 -1
  1537. package/locales/extra/sr-Latn-XK.js +1 -1
  1538. package/locales/extra/sr-Latn-XK.js.map +1 -1
  1539. package/locales/extra/sr-Latn.js +1 -1
  1540. package/locales/extra/sr-Latn.js.map +1 -1
  1541. package/locales/extra/sr.js +1 -1
  1542. package/locales/extra/sr.js.map +1 -1
  1543. package/locales/extra/ss-SZ.d.ts +9 -0
  1544. package/locales/extra/ss-SZ.js +11 -0
  1545. package/locales/extra/ss-SZ.js.map +1 -0
  1546. package/locales/extra/ss.d.ts +9 -0
  1547. package/locales/extra/ss.js +11 -0
  1548. package/locales/extra/ss.js.map +1 -0
  1549. package/locales/extra/ssy.d.ts +9 -0
  1550. package/locales/extra/ssy.js +11 -0
  1551. package/locales/extra/ssy.js.map +1 -0
  1552. package/locales/extra/st-LS.d.ts +9 -0
  1553. package/locales/extra/st-LS.js +11 -0
  1554. package/locales/extra/st-LS.js.map +1 -0
  1555. package/locales/extra/st.d.ts +9 -0
  1556. package/locales/extra/st.js +11 -0
  1557. package/locales/extra/st.js.map +1 -0
  1558. package/locales/extra/syr-SY.d.ts +9 -0
  1559. package/locales/extra/syr-SY.js +11 -0
  1560. package/locales/extra/syr-SY.js.map +1 -0
  1561. package/locales/extra/syr.d.ts +9 -0
  1562. package/locales/extra/syr.js +11 -0
  1563. package/locales/extra/syr.js.map +1 -0
  1564. package/locales/extra/szl.d.ts +9 -0
  1565. package/locales/extra/szl.js +11 -0
  1566. package/locales/extra/szl.js.map +1 -0
  1567. package/locales/extra/th.js +1 -1
  1568. package/locales/extra/th.js.map +1 -1
  1569. package/locales/extra/tig.d.ts +9 -0
  1570. package/locales/extra/tig.js +11 -0
  1571. package/locales/extra/tig.js.map +1 -0
  1572. package/locales/extra/tn-BW.d.ts +9 -0
  1573. package/locales/extra/tn-BW.js +11 -0
  1574. package/locales/extra/tn-BW.js.map +1 -0
  1575. package/locales/extra/tn.d.ts +9 -0
  1576. package/locales/extra/tn.js +11 -0
  1577. package/locales/extra/tn.js.map +1 -0
  1578. package/locales/extra/tok.d.ts +9 -0
  1579. package/locales/extra/tok.js +11 -0
  1580. package/locales/extra/tok.js.map +1 -0
  1581. package/locales/extra/tpi.d.ts +9 -0
  1582. package/locales/extra/tpi.js +11 -0
  1583. package/locales/extra/tpi.js.map +1 -0
  1584. package/locales/extra/trv.d.ts +9 -0
  1585. package/locales/extra/trv.js +11 -0
  1586. package/locales/extra/trv.js.map +1 -0
  1587. package/locales/extra/trw.d.ts +9 -0
  1588. package/locales/extra/trw.js +11 -0
  1589. package/locales/extra/trw.js.map +1 -0
  1590. package/locales/extra/ts.d.ts +9 -0
  1591. package/locales/extra/ts.js +11 -0
  1592. package/locales/extra/ts.js.map +1 -0
  1593. package/locales/extra/tyv.d.ts +9 -0
  1594. package/locales/extra/tyv.js +11 -0
  1595. package/locales/extra/tyv.js.map +1 -0
  1596. package/locales/extra/uk.js +1 -1
  1597. package/locales/extra/uk.js.map +1 -1
  1598. package/locales/extra/und.js +1 -1
  1599. package/locales/extra/und.js.map +1 -1
  1600. package/locales/extra/ve.d.ts +9 -0
  1601. package/locales/extra/ve.js +11 -0
  1602. package/locales/extra/ve.js.map +1 -0
  1603. package/locales/extra/vec.d.ts +9 -0
  1604. package/locales/extra/vec.js +11 -0
  1605. package/locales/extra/vec.js.map +1 -0
  1606. package/locales/extra/vi.d.ts +1 -1
  1607. package/locales/extra/vi.js +1 -1
  1608. package/locales/extra/vi.js.map +1 -1
  1609. package/locales/extra/vmw.d.ts +9 -0
  1610. package/locales/extra/vmw.js +11 -0
  1611. package/locales/extra/vmw.js.map +1 -0
  1612. package/locales/extra/vo.d.ts +9 -0
  1613. package/locales/extra/vo.js +11 -0
  1614. package/locales/extra/vo.js.map +1 -0
  1615. package/locales/extra/wa.d.ts +9 -0
  1616. package/locales/extra/wa.js +11 -0
  1617. package/locales/extra/wa.js.map +1 -0
  1618. package/locales/extra/wal.d.ts +9 -0
  1619. package/locales/extra/wal.js +11 -0
  1620. package/locales/extra/wal.js.map +1 -0
  1621. package/locales/extra/wbp.d.ts +9 -0
  1622. package/locales/extra/wbp.js +11 -0
  1623. package/locales/extra/wbp.js.map +1 -0
  1624. package/locales/extra/xnr.d.ts +9 -0
  1625. package/locales/extra/xnr.js +11 -0
  1626. package/locales/extra/xnr.js.map +1 -0
  1627. package/locales/extra/yue-Hant-CN.d.ts +9 -0
  1628. package/locales/extra/yue-Hant-CN.js +11 -0
  1629. package/locales/extra/yue-Hant-CN.js.map +1 -0
  1630. package/locales/extra/yue-Hant-MO.d.ts +9 -0
  1631. package/locales/extra/yue-Hant-MO.js +11 -0
  1632. package/locales/extra/yue-Hant-MO.js.map +1 -0
  1633. package/locales/extra/za.d.ts +9 -0
  1634. package/locales/extra/za.js +11 -0
  1635. package/locales/extra/za.js.map +1 -0
  1636. package/locales/extra/zh-Hans-MY.d.ts +9 -0
  1637. package/locales/extra/zh-Hans-MY.js +11 -0
  1638. package/locales/extra/zh-Hans-MY.js.map +1 -0
  1639. package/locales/extra/zh-Hant-MY.d.ts +9 -0
  1640. package/locales/extra/zh-Hant-MY.js +11 -0
  1641. package/locales/extra/zh-Hant-MY.js.map +1 -0
  1642. package/locales/extra/zh-Latn.d.ts +9 -0
  1643. package/locales/extra/zh-Latn.js +11 -0
  1644. package/locales/extra/zh-Latn.js.map +1 -0
  1645. package/locales/fa-AF.js +1 -1
  1646. package/locales/fa-AF.js.map +1 -1
  1647. package/locales/fa.js +1 -1
  1648. package/locales/fa.js.map +1 -1
  1649. package/locales/ff-Adlm-BF.d.ts +1 -0
  1650. package/locales/ff-Adlm-BF.js +1 -1
  1651. package/locales/ff-Adlm-BF.js.map +1 -1
  1652. package/locales/ff-Adlm-CM.d.ts +1 -0
  1653. package/locales/ff-Adlm-CM.js +1 -1
  1654. package/locales/ff-Adlm-CM.js.map +1 -1
  1655. package/locales/ff-Adlm-GH.d.ts +1 -0
  1656. package/locales/ff-Adlm-GH.js +1 -1
  1657. package/locales/ff-Adlm-GH.js.map +1 -1
  1658. package/locales/ff-Adlm-GM.d.ts +1 -0
  1659. package/locales/ff-Adlm-GM.js +1 -1
  1660. package/locales/ff-Adlm-GM.js.map +1 -1
  1661. package/locales/ff-Adlm-GW.d.ts +1 -0
  1662. package/locales/ff-Adlm-GW.js +1 -1
  1663. package/locales/ff-Adlm-GW.js.map +1 -1
  1664. package/locales/ff-Adlm-LR.d.ts +1 -0
  1665. package/locales/ff-Adlm-LR.js +1 -1
  1666. package/locales/ff-Adlm-LR.js.map +1 -1
  1667. package/locales/ff-Adlm-MR.d.ts +1 -0
  1668. package/locales/ff-Adlm-MR.js +1 -1
  1669. package/locales/ff-Adlm-MR.js.map +1 -1
  1670. package/locales/ff-Adlm-NE.d.ts +1 -0
  1671. package/locales/ff-Adlm-NE.js +1 -1
  1672. package/locales/ff-Adlm-NE.js.map +1 -1
  1673. package/locales/ff-Adlm-NG.d.ts +1 -0
  1674. package/locales/ff-Adlm-NG.js +1 -1
  1675. package/locales/ff-Adlm-NG.js.map +1 -1
  1676. package/locales/ff-Adlm-SL.d.ts +2 -1
  1677. package/locales/ff-Adlm-SL.js +1 -1
  1678. package/locales/ff-Adlm-SL.js.map +1 -1
  1679. package/locales/ff-Adlm-SN.d.ts +1 -0
  1680. package/locales/ff-Adlm-SN.js +1 -1
  1681. package/locales/ff-Adlm-SN.js.map +1 -1
  1682. package/locales/ff-Adlm.d.ts +1 -0
  1683. package/locales/ff-Adlm.js +1 -1
  1684. package/locales/ff-Adlm.js.map +1 -1
  1685. package/locales/ff-Latn-BF.js +1 -1
  1686. package/locales/ff-Latn-BF.js.map +1 -1
  1687. package/locales/ff-Latn-CM.js +1 -1
  1688. package/locales/ff-Latn-CM.js.map +1 -1
  1689. package/locales/ff-Latn-GH.js +1 -1
  1690. package/locales/ff-Latn-GH.js.map +1 -1
  1691. package/locales/ff-Latn-GM.js +1 -1
  1692. package/locales/ff-Latn-GM.js.map +1 -1
  1693. package/locales/ff-Latn-GN.js +1 -1
  1694. package/locales/ff-Latn-GN.js.map +1 -1
  1695. package/locales/ff-Latn-GW.js +1 -1
  1696. package/locales/ff-Latn-GW.js.map +1 -1
  1697. package/locales/ff-Latn-LR.js +1 -1
  1698. package/locales/ff-Latn-LR.js.map +1 -1
  1699. package/locales/ff-Latn-MR.js +1 -1
  1700. package/locales/ff-Latn-MR.js.map +1 -1
  1701. package/locales/ff-Latn-NE.js +1 -1
  1702. package/locales/ff-Latn-NE.js.map +1 -1
  1703. package/locales/ff-Latn-NG.js +1 -1
  1704. package/locales/ff-Latn-NG.js.map +1 -1
  1705. package/locales/ff-Latn-SL.d.ts +1 -1
  1706. package/locales/ff-Latn-SL.js +1 -1
  1707. package/locales/ff-Latn-SL.js.map +1 -1
  1708. package/locales/ff-Latn.js +1 -1
  1709. package/locales/ff-Latn.js.map +1 -1
  1710. package/locales/ff.js +1 -1
  1711. package/locales/ff.js.map +1 -1
  1712. package/locales/fi.d.ts +77 -77
  1713. package/locales/fi.js +1 -1
  1714. package/locales/fi.js.map +1 -1
  1715. package/locales/fil.js +1 -1
  1716. package/locales/fil.js.map +1 -1
  1717. package/locales/fo-DK.d.ts +1 -1
  1718. package/locales/fo-DK.js +1 -1
  1719. package/locales/fo-DK.js.map +1 -1
  1720. package/locales/fo.d.ts +1 -1
  1721. package/locales/fo.js +1 -1
  1722. package/locales/fo.js.map +1 -1
  1723. package/locales/fr-BE.js +1 -1
  1724. package/locales/fr-BE.js.map +1 -1
  1725. package/locales/fr-BF.js +1 -1
  1726. package/locales/fr-BF.js.map +1 -1
  1727. package/locales/fr-BI.js +1 -1
  1728. package/locales/fr-BI.js.map +1 -1
  1729. package/locales/fr-BJ.js +1 -1
  1730. package/locales/fr-BJ.js.map +1 -1
  1731. package/locales/fr-BL.js +1 -1
  1732. package/locales/fr-BL.js.map +1 -1
  1733. package/locales/fr-CA.d.ts +1 -1
  1734. package/locales/fr-CA.js +1 -1
  1735. package/locales/fr-CA.js.map +1 -1
  1736. package/locales/fr-CD.js +1 -1
  1737. package/locales/fr-CD.js.map +1 -1
  1738. package/locales/fr-CF.js +1 -1
  1739. package/locales/fr-CF.js.map +1 -1
  1740. package/locales/fr-CG.js +1 -1
  1741. package/locales/fr-CG.js.map +1 -1
  1742. package/locales/fr-CH.js +1 -1
  1743. package/locales/fr-CH.js.map +1 -1
  1744. package/locales/fr-CI.js +1 -1
  1745. package/locales/fr-CI.js.map +1 -1
  1746. package/locales/fr-CM.js +1 -1
  1747. package/locales/fr-CM.js.map +1 -1
  1748. package/locales/fr-DJ.js +1 -1
  1749. package/locales/fr-DJ.js.map +1 -1
  1750. package/locales/fr-DZ.js +1 -1
  1751. package/locales/fr-DZ.js.map +1 -1
  1752. package/locales/fr-GA.js +1 -1
  1753. package/locales/fr-GA.js.map +1 -1
  1754. package/locales/fr-GF.js +1 -1
  1755. package/locales/fr-GF.js.map +1 -1
  1756. package/locales/fr-GN.js +1 -1
  1757. package/locales/fr-GN.js.map +1 -1
  1758. package/locales/fr-GP.js +1 -1
  1759. package/locales/fr-GP.js.map +1 -1
  1760. package/locales/fr-GQ.js +1 -1
  1761. package/locales/fr-GQ.js.map +1 -1
  1762. package/locales/fr-HT.js +1 -1
  1763. package/locales/fr-HT.js.map +1 -1
  1764. package/locales/fr-KM.js +1 -1
  1765. package/locales/fr-KM.js.map +1 -1
  1766. package/locales/fr-LU.js +1 -1
  1767. package/locales/fr-LU.js.map +1 -1
  1768. package/locales/fr-MA.js +1 -1
  1769. package/locales/fr-MA.js.map +1 -1
  1770. package/locales/fr-MC.js +1 -1
  1771. package/locales/fr-MC.js.map +1 -1
  1772. package/locales/fr-MF.js +1 -1
  1773. package/locales/fr-MF.js.map +1 -1
  1774. package/locales/fr-MG.js +1 -1
  1775. package/locales/fr-MG.js.map +1 -1
  1776. package/locales/fr-ML.js +1 -1
  1777. package/locales/fr-ML.js.map +1 -1
  1778. package/locales/fr-MQ.js +1 -1
  1779. package/locales/fr-MQ.js.map +1 -1
  1780. package/locales/fr-MR.js +1 -1
  1781. package/locales/fr-MR.js.map +1 -1
  1782. package/locales/fr-MU.js +1 -1
  1783. package/locales/fr-MU.js.map +1 -1
  1784. package/locales/fr-NC.js +1 -1
  1785. package/locales/fr-NC.js.map +1 -1
  1786. package/locales/fr-NE.js +1 -1
  1787. package/locales/fr-NE.js.map +1 -1
  1788. package/locales/fr-PF.js +1 -1
  1789. package/locales/fr-PF.js.map +1 -1
  1790. package/locales/fr-PM.js +1 -1
  1791. package/locales/fr-PM.js.map +1 -1
  1792. package/locales/fr-RE.js +1 -1
  1793. package/locales/fr-RE.js.map +1 -1
  1794. package/locales/fr-RW.js +1 -1
  1795. package/locales/fr-RW.js.map +1 -1
  1796. package/locales/fr-SC.js +1 -1
  1797. package/locales/fr-SC.js.map +1 -1
  1798. package/locales/fr-SN.js +1 -1
  1799. package/locales/fr-SN.js.map +1 -1
  1800. package/locales/fr-SY.js +1 -1
  1801. package/locales/fr-SY.js.map +1 -1
  1802. package/locales/fr-TD.js +1 -1
  1803. package/locales/fr-TD.js.map +1 -1
  1804. package/locales/fr-TG.js +1 -1
  1805. package/locales/fr-TG.js.map +1 -1
  1806. package/locales/fr-TN.js +1 -1
  1807. package/locales/fr-TN.js.map +1 -1
  1808. package/locales/fr-VU.js +1 -1
  1809. package/locales/fr-VU.js.map +1 -1
  1810. package/locales/fr-WF.js +1 -1
  1811. package/locales/fr-WF.js.map +1 -1
  1812. package/locales/fr-YT.js +1 -1
  1813. package/locales/fr-YT.js.map +1 -1
  1814. package/locales/fr.js +1 -1
  1815. package/locales/fr.js.map +1 -1
  1816. package/locales/frr.d.ts +13 -0
  1817. package/locales/frr.js +15 -0
  1818. package/locales/frr.js.map +1 -0
  1819. package/locales/fur.d.ts +1 -1
  1820. package/locales/fur.js +1 -1
  1821. package/locales/fur.js.map +1 -1
  1822. package/locales/fy.d.ts +1 -1
  1823. package/locales/fy.js +1 -1
  1824. package/locales/fy.js.map +1 -1
  1825. package/locales/ga-GB.js +1 -1
  1826. package/locales/ga-GB.js.map +1 -1
  1827. package/locales/ga.js +1 -1
  1828. package/locales/ga.js.map +1 -1
  1829. package/locales/gaa.d.ts +13 -0
  1830. package/locales/gaa.js +15 -0
  1831. package/locales/gaa.js.map +1 -0
  1832. package/locales/gd.d.ts +1 -1
  1833. package/locales/gd.js +1 -1
  1834. package/locales/gd.js.map +1 -1
  1835. package/locales/gez-ER.d.ts +14 -0
  1836. package/locales/gez-ER.js +15 -0
  1837. package/locales/gez-ER.js.map +1 -0
  1838. package/locales/gez.d.ts +13 -0
  1839. package/locales/gez.js +15 -0
  1840. package/locales/gez.js.map +1 -0
  1841. package/locales/gl.js +1 -1
  1842. package/locales/gl.js.map +1 -1
  1843. package/locales/global/aa-DJ.js +22 -0
  1844. package/locales/global/aa-ER.js +22 -0
  1845. package/locales/global/aa.js +22 -0
  1846. package/locales/global/ab.js +22 -0
  1847. package/locales/global/af-NA.js +1 -1
  1848. package/locales/global/af.js +1 -1
  1849. package/locales/global/agq.js +1 -1
  1850. package/locales/global/ak.js +1 -1
  1851. package/locales/global/am.js +1 -1
  1852. package/locales/global/an.js +24 -0
  1853. package/locales/global/ann.js +22 -0
  1854. package/locales/global/apc.js +22 -0
  1855. package/locales/global/ar-AE.js +1 -1
  1856. package/locales/global/ar-BH.js +1 -1
  1857. package/locales/global/ar-DJ.js +1 -1
  1858. package/locales/global/ar-DZ.js +1 -1
  1859. package/locales/global/ar-EG.js +1 -1
  1860. package/locales/global/ar-EH.js +1 -1
  1861. package/locales/global/ar-ER.js +1 -1
  1862. package/locales/global/ar-IL.js +1 -1
  1863. package/locales/global/ar-IQ.js +1 -1
  1864. package/locales/global/ar-JO.js +1 -1
  1865. package/locales/global/ar-KM.js +1 -1
  1866. package/locales/global/ar-KW.js +1 -1
  1867. package/locales/global/ar-LB.js +1 -1
  1868. package/locales/global/ar-LY.js +1 -1
  1869. package/locales/global/ar-MA.js +1 -1
  1870. package/locales/global/ar-MR.js +1 -1
  1871. package/locales/global/ar-OM.js +1 -1
  1872. package/locales/global/ar-PS.js +1 -1
  1873. package/locales/global/ar-QA.js +1 -1
  1874. package/locales/global/ar-SA.js +1 -1
  1875. package/locales/global/ar-SD.js +1 -1
  1876. package/locales/global/ar-SO.js +1 -1
  1877. package/locales/global/ar-SS.js +1 -1
  1878. package/locales/global/ar-SY.js +1 -1
  1879. package/locales/global/ar-TD.js +1 -1
  1880. package/locales/global/ar-TN.js +1 -1
  1881. package/locales/global/ar-YE.js +1 -1
  1882. package/locales/global/ar.js +1 -1
  1883. package/locales/global/arn.js +22 -0
  1884. package/locales/global/as.js +1 -1
  1885. package/locales/global/asa.js +1 -1
  1886. package/locales/global/ast.js +1 -1
  1887. package/locales/global/az-Arab-IQ.js +22 -0
  1888. package/locales/global/az-Arab-TR.js +22 -0
  1889. package/locales/global/az-Arab.js +22 -0
  1890. package/locales/global/az-Cyrl.js +1 -1
  1891. package/locales/global/az-Latn.js +1 -1
  1892. package/locales/global/az.js +1 -1
  1893. package/locales/global/ba.js +22 -0
  1894. package/locales/global/bal-Arab.js +24 -0
  1895. package/locales/global/bal-Latn.js +22 -0
  1896. package/locales/global/bal.js +24 -0
  1897. package/locales/global/bas.js +1 -1
  1898. package/locales/global/be-tarask.js +1 -1
  1899. package/locales/global/be.js +1 -1
  1900. package/locales/global/bem.js +1 -1
  1901. package/locales/global/bew.js +22 -0
  1902. package/locales/global/bez.js +1 -1
  1903. package/locales/global/bg.js +1 -1
  1904. package/locales/global/bgc.js +22 -0
  1905. package/locales/global/bgn-AE.js +22 -0
  1906. package/locales/global/bgn-AF.js +22 -0
  1907. package/locales/global/bgn-IR.js +22 -0
  1908. package/locales/global/bgn-OM.js +22 -0
  1909. package/locales/global/bgn.js +22 -0
  1910. package/locales/global/bho.js +24 -0
  1911. package/locales/global/blo.js +26 -0
  1912. package/locales/global/blt.js +22 -0
  1913. package/locales/global/bm-Nkoo.js +22 -0
  1914. package/locales/global/bm.js +1 -1
  1915. package/locales/global/bn-IN.js +1 -1
  1916. package/locales/global/bn.js +1 -1
  1917. package/locales/global/bo-IN.js +1 -1
  1918. package/locales/global/bo.js +1 -1
  1919. package/locales/global/br.js +1 -1
  1920. package/locales/global/brx.js +1 -1
  1921. package/locales/global/bs-Cyrl.js +1 -1
  1922. package/locales/global/bs-Latn.js +1 -1
  1923. package/locales/global/bs.js +1 -1
  1924. package/locales/global/bss.js +22 -0
  1925. package/locales/global/byn.js +22 -0
  1926. package/locales/global/ca-AD.js +4 -2
  1927. package/locales/global/ca-ES-valencia.js +4 -2
  1928. package/locales/global/ca-FR.js +4 -2
  1929. package/locales/global/ca-IT.js +4 -2
  1930. package/locales/global/ca.js +4 -2
  1931. package/locales/global/cad.js +22 -0
  1932. package/locales/global/cch.js +22 -0
  1933. package/locales/global/ccp-IN.js +1 -1
  1934. package/locales/global/ccp.js +1 -1
  1935. package/locales/global/ce.js +1 -1
  1936. package/locales/global/ceb.js +1 -1
  1937. package/locales/global/cgg.js +1 -1
  1938. package/locales/global/cho.js +22 -0
  1939. package/locales/global/chr.js +1 -1
  1940. package/locales/global/cic.js +22 -0
  1941. package/locales/global/ckb-IR.js +1 -1
  1942. package/locales/global/ckb.js +1 -1
  1943. package/locales/global/co.js +22 -0
  1944. package/locales/global/cop.js +22 -0
  1945. package/locales/global/cs.js +1 -1
  1946. package/locales/global/csw.js +24 -0
  1947. package/locales/global/cu.js +22 -0
  1948. package/locales/global/cv.js +22 -0
  1949. package/locales/global/cy.js +1 -1
  1950. package/locales/global/da-GL.js +1 -1
  1951. package/locales/global/da.js +1 -1
  1952. package/locales/global/dav.js +1 -1
  1953. package/locales/global/de-AT.js +1 -1
  1954. package/locales/global/de-BE.js +1 -1
  1955. package/locales/global/de-CH.js +1 -1
  1956. package/locales/global/de-IT.js +1 -1
  1957. package/locales/global/de-LI.js +1 -1
  1958. package/locales/global/de-LU.js +1 -1
  1959. package/locales/global/de.js +1 -1
  1960. package/locales/global/dje.js +1 -1
  1961. package/locales/global/doi.js +1 -1
  1962. package/locales/global/dsb.js +1 -1
  1963. package/locales/global/dua.js +1 -1
  1964. package/locales/global/dv.js +24 -0
  1965. package/locales/global/dyo.js +1 -1
  1966. package/locales/global/dz.js +1 -1
  1967. package/locales/global/ebu.js +1 -1
  1968. package/locales/global/ee-TG.js +1 -1
  1969. package/locales/global/ee.js +1 -1
  1970. package/locales/global/el-CY.js +1 -1
  1971. package/locales/global/el-polyton.js +24 -0
  1972. package/locales/global/el.js +1 -1
  1973. package/locales/global/en-001.js +1 -1
  1974. package/locales/global/en-150.js +1 -1
  1975. package/locales/global/en-AE.js +1 -1
  1976. package/locales/global/en-AG.js +1 -1
  1977. package/locales/global/en-AI.js +1 -1
  1978. package/locales/global/en-AS.js +1 -1
  1979. package/locales/global/en-AT.js +1 -1
  1980. package/locales/global/en-AU.js +1 -1
  1981. package/locales/global/en-BB.js +1 -1
  1982. package/locales/global/en-BE.js +1 -1
  1983. package/locales/global/en-BI.js +1 -1
  1984. package/locales/global/en-BM.js +1 -1
  1985. package/locales/global/en-BS.js +1 -1
  1986. package/locales/global/en-BW.js +1 -1
  1987. package/locales/global/en-BZ.js +1 -1
  1988. package/locales/global/en-CA.js +1 -1
  1989. package/locales/global/en-CC.js +1 -1
  1990. package/locales/global/en-CH.js +1 -1
  1991. package/locales/global/en-CK.js +1 -1
  1992. package/locales/global/en-CM.js +1 -1
  1993. package/locales/global/en-CX.js +1 -1
  1994. package/locales/global/en-CY.js +1 -1
  1995. package/locales/global/en-CZ.js +24 -0
  1996. package/locales/global/en-DE.js +1 -1
  1997. package/locales/global/en-DG.js +1 -1
  1998. package/locales/global/en-DK.js +1 -1
  1999. package/locales/global/en-DM.js +1 -1
  2000. package/locales/global/en-Dsrt.js +22 -0
  2001. package/locales/global/en-ER.js +1 -1
  2002. package/locales/global/en-ES.js +24 -0
  2003. package/locales/global/en-FI.js +1 -1
  2004. package/locales/global/en-FJ.js +1 -1
  2005. package/locales/global/en-FK.js +1 -1
  2006. package/locales/global/en-FM.js +1 -1
  2007. package/locales/global/en-FR.js +24 -0
  2008. package/locales/global/en-GB.js +1 -1
  2009. package/locales/global/en-GD.js +1 -1
  2010. package/locales/global/en-GG.js +1 -1
  2011. package/locales/global/en-GH.js +1 -1
  2012. package/locales/global/en-GI.js +1 -1
  2013. package/locales/global/en-GM.js +1 -1
  2014. package/locales/global/en-GS.js +24 -0
  2015. package/locales/global/en-GU.js +1 -1
  2016. package/locales/global/en-GY.js +1 -1
  2017. package/locales/global/en-HK.js +1 -1
  2018. package/locales/global/en-HU.js +24 -0
  2019. package/locales/global/en-ID.js +24 -0
  2020. package/locales/global/en-IE.js +1 -1
  2021. package/locales/global/en-IL.js +1 -1
  2022. package/locales/global/en-IM.js +1 -1
  2023. package/locales/global/en-IN.js +1 -1
  2024. package/locales/global/en-IO.js +1 -1
  2025. package/locales/global/en-IT.js +24 -0
  2026. package/locales/global/en-JE.js +1 -1
  2027. package/locales/global/en-JM.js +1 -1
  2028. package/locales/global/en-KE.js +1 -1
  2029. package/locales/global/en-KI.js +1 -1
  2030. package/locales/global/en-KN.js +1 -1
  2031. package/locales/global/en-KY.js +1 -1
  2032. package/locales/global/en-LC.js +1 -1
  2033. package/locales/global/en-LR.js +1 -1
  2034. package/locales/global/en-LS.js +1 -1
  2035. package/locales/global/en-MG.js +1 -1
  2036. package/locales/global/en-MH.js +1 -1
  2037. package/locales/global/en-MO.js +1 -1
  2038. package/locales/global/en-MP.js +1 -1
  2039. package/locales/global/en-MS.js +1 -1
  2040. package/locales/global/en-MT.js +1 -1
  2041. package/locales/global/en-MU.js +1 -1
  2042. package/locales/global/en-MV.js +1 -1
  2043. package/locales/global/en-MW.js +1 -1
  2044. package/locales/global/en-MY.js +1 -1
  2045. package/locales/global/en-NA.js +1 -1
  2046. package/locales/global/en-NF.js +1 -1
  2047. package/locales/global/en-NG.js +1 -1
  2048. package/locales/global/en-NL.js +1 -1
  2049. package/locales/global/en-NO.js +24 -0
  2050. package/locales/global/en-NR.js +1 -1
  2051. package/locales/global/en-NU.js +1 -1
  2052. package/locales/global/en-NZ.js +1 -1
  2053. package/locales/global/en-PG.js +1 -1
  2054. package/locales/global/en-PH.js +1 -1
  2055. package/locales/global/en-PK.js +1 -1
  2056. package/locales/global/en-PL.js +24 -0
  2057. package/locales/global/en-PN.js +1 -1
  2058. package/locales/global/en-PR.js +1 -1
  2059. package/locales/global/en-PT.js +24 -0
  2060. package/locales/global/en-PW.js +1 -1
  2061. package/locales/global/en-RO.js +24 -0
  2062. package/locales/global/en-RW.js +1 -1
  2063. package/locales/global/en-SB.js +1 -1
  2064. package/locales/global/en-SC.js +1 -1
  2065. package/locales/global/en-SD.js +1 -1
  2066. package/locales/global/en-SE.js +1 -1
  2067. package/locales/global/en-SG.js +1 -1
  2068. package/locales/global/en-SH.js +1 -1
  2069. package/locales/global/en-SI.js +1 -1
  2070. package/locales/global/en-SK.js +24 -0
  2071. package/locales/global/en-SL.js +1 -1
  2072. package/locales/global/en-SS.js +1 -1
  2073. package/locales/global/en-SX.js +1 -1
  2074. package/locales/global/en-SZ.js +1 -1
  2075. package/locales/global/en-Shaw.js +22 -0
  2076. package/locales/global/en-TC.js +1 -1
  2077. package/locales/global/en-TK.js +1 -1
  2078. package/locales/global/en-TO.js +1 -1
  2079. package/locales/global/en-TT.js +1 -1
  2080. package/locales/global/en-TV.js +1 -1
  2081. package/locales/global/en-TZ.js +1 -1
  2082. package/locales/global/en-UG.js +1 -1
  2083. package/locales/global/en-UM.js +1 -1
  2084. package/locales/global/en-VC.js +1 -1
  2085. package/locales/global/en-VG.js +1 -1
  2086. package/locales/global/en-VI.js +1 -1
  2087. package/locales/global/en-VU.js +1 -1
  2088. package/locales/global/en-WS.js +1 -1
  2089. package/locales/global/en-ZA.js +1 -1
  2090. package/locales/global/en-ZM.js +1 -1
  2091. package/locales/global/en-ZW.js +1 -1
  2092. package/locales/global/en.js +1 -1
  2093. package/locales/global/eo.js +1 -1
  2094. package/locales/global/es-419.js +1 -1
  2095. package/locales/global/es-AR.js +1 -1
  2096. package/locales/global/es-BO.js +1 -1
  2097. package/locales/global/es-BR.js +1 -1
  2098. package/locales/global/es-BZ.js +1 -1
  2099. package/locales/global/es-CL.js +1 -1
  2100. package/locales/global/es-CO.js +1 -1
  2101. package/locales/global/es-CR.js +1 -1
  2102. package/locales/global/es-CU.js +1 -1
  2103. package/locales/global/es-DO.js +1 -1
  2104. package/locales/global/es-EA.js +1 -1
  2105. package/locales/global/es-EC.js +1 -1
  2106. package/locales/global/es-GQ.js +1 -1
  2107. package/locales/global/es-GT.js +1 -1
  2108. package/locales/global/es-HN.js +1 -1
  2109. package/locales/global/es-IC.js +1 -1
  2110. package/locales/global/es-MX.js +1 -1
  2111. package/locales/global/es-NI.js +1 -1
  2112. package/locales/global/es-PA.js +1 -1
  2113. package/locales/global/es-PE.js +1 -1
  2114. package/locales/global/es-PH.js +1 -1
  2115. package/locales/global/es-PR.js +1 -1
  2116. package/locales/global/es-PY.js +1 -1
  2117. package/locales/global/es-SV.js +1 -1
  2118. package/locales/global/es-US.js +1 -1
  2119. package/locales/global/es-UY.js +1 -1
  2120. package/locales/global/es-VE.js +1 -1
  2121. package/locales/global/es.js +1 -1
  2122. package/locales/global/et.js +1 -1
  2123. package/locales/global/eu.js +1 -1
  2124. package/locales/global/ewo.js +1 -1
  2125. package/locales/global/fa-AF.js +1 -1
  2126. package/locales/global/fa.js +1 -1
  2127. package/locales/global/ff-Adlm-BF.js +1 -1
  2128. package/locales/global/ff-Adlm-CM.js +1 -1
  2129. package/locales/global/ff-Adlm-GH.js +1 -1
  2130. package/locales/global/ff-Adlm-GM.js +1 -1
  2131. package/locales/global/ff-Adlm-GW.js +1 -1
  2132. package/locales/global/ff-Adlm-LR.js +1 -1
  2133. package/locales/global/ff-Adlm-MR.js +1 -1
  2134. package/locales/global/ff-Adlm-NE.js +1 -1
  2135. package/locales/global/ff-Adlm-NG.js +1 -1
  2136. package/locales/global/ff-Adlm-SL.js +1 -1
  2137. package/locales/global/ff-Adlm-SN.js +1 -1
  2138. package/locales/global/ff-Adlm.js +1 -1
  2139. package/locales/global/ff-Latn-BF.js +1 -1
  2140. package/locales/global/ff-Latn-CM.js +1 -1
  2141. package/locales/global/ff-Latn-GH.js +1 -1
  2142. package/locales/global/ff-Latn-GM.js +1 -1
  2143. package/locales/global/ff-Latn-GN.js +1 -1
  2144. package/locales/global/ff-Latn-GW.js +1 -1
  2145. package/locales/global/ff-Latn-LR.js +1 -1
  2146. package/locales/global/ff-Latn-MR.js +1 -1
  2147. package/locales/global/ff-Latn-NE.js +1 -1
  2148. package/locales/global/ff-Latn-NG.js +1 -1
  2149. package/locales/global/ff-Latn-SL.js +1 -1
  2150. package/locales/global/ff-Latn.js +1 -1
  2151. package/locales/global/ff.js +1 -1
  2152. package/locales/global/fi.js +1 -1
  2153. package/locales/global/fil.js +1 -1
  2154. package/locales/global/fo-DK.js +1 -1
  2155. package/locales/global/fo.js +1 -1
  2156. package/locales/global/fr-BE.js +1 -1
  2157. package/locales/global/fr-BF.js +1 -1
  2158. package/locales/global/fr-BI.js +1 -1
  2159. package/locales/global/fr-BJ.js +1 -1
  2160. package/locales/global/fr-BL.js +1 -1
  2161. package/locales/global/fr-CA.js +1 -1
  2162. package/locales/global/fr-CD.js +1 -1
  2163. package/locales/global/fr-CF.js +1 -1
  2164. package/locales/global/fr-CG.js +1 -1
  2165. package/locales/global/fr-CH.js +1 -1
  2166. package/locales/global/fr-CI.js +1 -1
  2167. package/locales/global/fr-CM.js +1 -1
  2168. package/locales/global/fr-DJ.js +1 -1
  2169. package/locales/global/fr-DZ.js +1 -1
  2170. package/locales/global/fr-GA.js +1 -1
  2171. package/locales/global/fr-GF.js +1 -1
  2172. package/locales/global/fr-GN.js +1 -1
  2173. package/locales/global/fr-GP.js +1 -1
  2174. package/locales/global/fr-GQ.js +1 -1
  2175. package/locales/global/fr-HT.js +1 -1
  2176. package/locales/global/fr-KM.js +1 -1
  2177. package/locales/global/fr-LU.js +1 -1
  2178. package/locales/global/fr-MA.js +1 -1
  2179. package/locales/global/fr-MC.js +1 -1
  2180. package/locales/global/fr-MF.js +1 -1
  2181. package/locales/global/fr-MG.js +1 -1
  2182. package/locales/global/fr-ML.js +1 -1
  2183. package/locales/global/fr-MQ.js +1 -1
  2184. package/locales/global/fr-MR.js +1 -1
  2185. package/locales/global/fr-MU.js +1 -1
  2186. package/locales/global/fr-NC.js +1 -1
  2187. package/locales/global/fr-NE.js +1 -1
  2188. package/locales/global/fr-PF.js +1 -1
  2189. package/locales/global/fr-PM.js +1 -1
  2190. package/locales/global/fr-RE.js +1 -1
  2191. package/locales/global/fr-RW.js +1 -1
  2192. package/locales/global/fr-SC.js +1 -1
  2193. package/locales/global/fr-SN.js +1 -1
  2194. package/locales/global/fr-SY.js +1 -1
  2195. package/locales/global/fr-TD.js +1 -1
  2196. package/locales/global/fr-TG.js +1 -1
  2197. package/locales/global/fr-TN.js +1 -1
  2198. package/locales/global/fr-VU.js +1 -1
  2199. package/locales/global/fr-WF.js +1 -1
  2200. package/locales/global/fr-YT.js +1 -1
  2201. package/locales/global/fr.js +1 -1
  2202. package/locales/global/frr.js +22 -0
  2203. package/locales/global/fur.js +1 -1
  2204. package/locales/global/fy.js +1 -1
  2205. package/locales/global/ga-GB.js +1 -1
  2206. package/locales/global/ga.js +1 -1
  2207. package/locales/global/gaa.js +22 -0
  2208. package/locales/global/gd.js +1 -1
  2209. package/locales/global/gez-ER.js +22 -0
  2210. package/locales/global/gez.js +22 -0
  2211. package/locales/global/gl.js +1 -1
  2212. package/locales/global/gn.js +22 -0
  2213. package/locales/global/gsw-FR.js +1 -1
  2214. package/locales/global/gsw-LI.js +1 -1
  2215. package/locales/global/gsw.js +1 -1
  2216. package/locales/global/gu.js +1 -1
  2217. package/locales/global/guz.js +1 -1
  2218. package/locales/global/gv.js +1 -1
  2219. package/locales/global/ha-Arab-SD.js +22 -0
  2220. package/locales/global/ha-Arab.js +22 -0
  2221. package/locales/global/ha-GH.js +1 -1
  2222. package/locales/global/ha-NE.js +1 -1
  2223. package/locales/global/ha.js +1 -1
  2224. package/locales/global/haw.js +1 -1
  2225. package/locales/global/he.js +2 -4
  2226. package/locales/global/hi-Latn.js +1 -1
  2227. package/locales/global/hi.js +1 -1
  2228. package/locales/global/hnj-Hmnp.js +22 -0
  2229. package/locales/global/hnj.js +22 -0
  2230. package/locales/global/hr-BA.js +1 -1
  2231. package/locales/global/hr.js +1 -1
  2232. package/locales/global/hsb.js +1 -1
  2233. package/locales/global/ht.js +26 -0
  2234. package/locales/global/hu.js +1 -1
  2235. package/locales/global/hy.js +1 -1
  2236. package/locales/global/ia.js +1 -1
  2237. package/locales/global/id.js +1 -1
  2238. package/locales/global/ie.js +22 -0
  2239. package/locales/global/ig.js +1 -1
  2240. package/locales/global/ii.js +1 -1
  2241. package/locales/global/io.js +24 -0
  2242. package/locales/global/is.js +2 -2
  2243. package/locales/global/it-CH.js +1 -1
  2244. package/locales/global/it-SM.js +1 -1
  2245. package/locales/global/it-VA.js +1 -1
  2246. package/locales/global/it.js +1 -1
  2247. package/locales/global/iu-Latn.js +22 -0
  2248. package/locales/global/iu.js +26 -0
  2249. package/locales/global/ja.js +1 -1
  2250. package/locales/global/jbo.js +22 -0
  2251. package/locales/global/jgo.js +1 -1
  2252. package/locales/global/jmc.js +1 -1
  2253. package/locales/global/jv.js +1 -1
  2254. package/locales/global/ka.js +1 -1
  2255. package/locales/global/kaa-Cyrl.js +22 -0
  2256. package/locales/global/kaa-Latn.js +22 -0
  2257. package/locales/global/kaa.js +22 -0
  2258. package/locales/global/kab.js +1 -1
  2259. package/locales/global/kaj.js +24 -0
  2260. package/locales/global/kam.js +1 -1
  2261. package/locales/global/kcg.js +24 -0
  2262. package/locales/global/kde.js +1 -1
  2263. package/locales/global/kea.js +1 -1
  2264. package/locales/global/ken.js +22 -0
  2265. package/locales/global/kgp.js +1 -1
  2266. package/locales/global/khq.js +1 -1
  2267. package/locales/global/ki.js +1 -1
  2268. package/locales/global/kk-Arab.js +22 -0
  2269. package/locales/global/kk-Cyrl.js +24 -0
  2270. package/locales/global/kk-KZ.js +24 -0
  2271. package/locales/global/kk.js +1 -1
  2272. package/locales/global/kkj.js +1 -1
  2273. package/locales/global/kl.js +1 -1
  2274. package/locales/global/kln.js +1 -1
  2275. package/locales/global/km.js +1 -1
  2276. package/locales/global/kn.js +1 -1
  2277. package/locales/global/ko-CN.js +22 -0
  2278. package/locales/global/ko-KP.js +1 -1
  2279. package/locales/global/ko.js +1 -1
  2280. package/locales/global/kok-Deva.js +22 -0
  2281. package/locales/global/kok-Latn.js +22 -0
  2282. package/locales/global/kok.js +1 -1
  2283. package/locales/global/kpe-GN.js +22 -0
  2284. package/locales/global/kpe.js +22 -0
  2285. package/locales/global/ks-Arab.js +1 -1
  2286. package/locales/global/ks-Deva.js +1 -1
  2287. package/locales/global/ks.js +1 -1
  2288. package/locales/global/ksb.js +1 -1
  2289. package/locales/global/ksf.js +1 -1
  2290. package/locales/global/ku.js +1 -1
  2291. package/locales/global/kw.js +1 -1
  2292. package/locales/global/kxv-Deva.js +22 -0
  2293. package/locales/global/kxv-Latn.js +22 -0
  2294. package/locales/global/kxv-Orya.js +22 -0
  2295. package/locales/global/kxv-Telu.js +22 -0
  2296. package/locales/global/kxv.js +22 -0
  2297. package/locales/global/ky.js +1 -1
  2298. package/locales/global/la.js +26 -0
  2299. package/locales/global/lag.js +1 -1
  2300. package/locales/global/lb.js +1 -1
  2301. package/locales/global/lg.js +1 -1
  2302. package/locales/global/lij.js +24 -0
  2303. package/locales/global/lkt.js +1 -1
  2304. package/locales/global/lld.js +26 -0
  2305. package/locales/global/lmo.js +22 -0
  2306. package/locales/global/ln-AO.js +1 -1
  2307. package/locales/global/ln-CF.js +1 -1
  2308. package/locales/global/ln-CG.js +1 -1
  2309. package/locales/global/ln.js +1 -1
  2310. package/locales/global/lo.js +1 -1
  2311. package/locales/global/lrc-IQ.js +1 -1
  2312. package/locales/global/lrc.js +1 -1
  2313. package/locales/global/lt.js +1 -1
  2314. package/locales/global/ltg.js +22 -0
  2315. package/locales/global/lu.js +1 -1
  2316. package/locales/global/luo.js +1 -1
  2317. package/locales/global/luy.js +1 -1
  2318. package/locales/global/lv.js +1 -1
  2319. package/locales/global/mai.js +1 -1
  2320. package/locales/global/mas-TZ.js +1 -1
  2321. package/locales/global/mas.js +1 -1
  2322. package/locales/global/mdf.js +22 -0
  2323. package/locales/global/mer.js +1 -1
  2324. package/locales/global/mfe.js +1 -1
  2325. package/locales/global/mg.js +1 -1
  2326. package/locales/global/mgh.js +1 -1
  2327. package/locales/global/mgo.js +1 -1
  2328. package/locales/global/mhn.js +22 -0
  2329. package/locales/global/mi.js +1 -1
  2330. package/locales/global/mic.js +22 -0
  2331. package/locales/global/mk.js +1 -1
  2332. package/locales/global/ml.js +1 -1
  2333. package/locales/global/mn-Mong-MN.js +22 -0
  2334. package/locales/global/mn-Mong.js +22 -0
  2335. package/locales/global/mn.js +1 -1
  2336. package/locales/global/mni-Beng.js +1 -1
  2337. package/locales/global/mni-Mtei.js +22 -0
  2338. package/locales/global/mni.js +1 -1
  2339. package/locales/global/moh.js +22 -0
  2340. package/locales/global/mr.js +1 -1
  2341. package/locales/global/ms-Arab-BN.js +22 -0
  2342. package/locales/global/ms-Arab.js +22 -0
  2343. package/locales/global/ms-BN.js +1 -1
  2344. package/locales/global/ms-ID.js +1 -1
  2345. package/locales/global/ms-SG.js +1 -1
  2346. package/locales/global/ms.js +1 -1
  2347. package/locales/global/mt.js +4 -2
  2348. package/locales/global/mua.js +1 -1
  2349. package/locales/global/mus.js +22 -0
  2350. package/locales/global/my.js +1 -1
  2351. package/locales/global/myv.js +22 -0
  2352. package/locales/global/mzn.js +1 -1
  2353. package/locales/global/naq.js +1 -1
  2354. package/locales/global/nb-SJ.js +1 -1
  2355. package/locales/global/nb.js +1 -1
  2356. package/locales/global/nd.js +1 -1
  2357. package/locales/global/nds-NL.js +1 -1
  2358. package/locales/global/nds.js +1 -1
  2359. package/locales/global/ne-IN.js +1 -1
  2360. package/locales/global/ne.js +1 -1
  2361. package/locales/global/nl-AW.js +1 -1
  2362. package/locales/global/nl-BE.js +1 -1
  2363. package/locales/global/nl-BQ.js +1 -1
  2364. package/locales/global/nl-CW.js +1 -1
  2365. package/locales/global/nl-SR.js +1 -1
  2366. package/locales/global/nl-SX.js +1 -1
  2367. package/locales/global/nl.js +1 -1
  2368. package/locales/global/nmg.js +1 -1
  2369. package/locales/global/nn.js +1 -1
  2370. package/locales/global/nnh.js +1 -1
  2371. package/locales/global/no.js +1 -1
  2372. package/locales/global/nqo.js +22 -0
  2373. package/locales/global/nr.js +24 -0
  2374. package/locales/global/nso.js +24 -0
  2375. package/locales/global/nus.js +1 -1
  2376. package/locales/global/nv.js +22 -0
  2377. package/locales/global/ny.js +24 -0
  2378. package/locales/global/nyn.js +1 -1
  2379. package/locales/global/oc-ES.js +22 -0
  2380. package/locales/global/oc.js +22 -0
  2381. package/locales/global/om-KE.js +1 -1
  2382. package/locales/global/om.js +1 -1
  2383. package/locales/global/or.js +1 -1
  2384. package/locales/global/os-RU.js +1 -1
  2385. package/locales/global/os.js +1 -1
  2386. package/locales/global/osa.js +22 -0
  2387. package/locales/global/pa-Arab.js +1 -1
  2388. package/locales/global/pa-Guru.js +1 -1
  2389. package/locales/global/pa.js +1 -1
  2390. package/locales/global/pap-AW.js +24 -0
  2391. package/locales/global/pap.js +24 -0
  2392. package/locales/global/pcm.js +1 -1
  2393. package/locales/global/pis.js +22 -0
  2394. package/locales/global/pl.js +1 -1
  2395. package/locales/global/prg.js +26 -0
  2396. package/locales/global/ps-PK.js +1 -1
  2397. package/locales/global/ps.js +1 -1
  2398. package/locales/global/pt-AO.js +1 -1
  2399. package/locales/global/pt-CH.js +1 -1
  2400. package/locales/global/pt-CV.js +1 -1
  2401. package/locales/global/pt-GQ.js +1 -1
  2402. package/locales/global/pt-GW.js +1 -1
  2403. package/locales/global/pt-LU.js +1 -1
  2404. package/locales/global/pt-MO.js +1 -1
  2405. package/locales/global/pt-MZ.js +1 -1
  2406. package/locales/global/pt-PT.js +1 -1
  2407. package/locales/global/pt-ST.js +1 -1
  2408. package/locales/global/pt-TL.js +1 -1
  2409. package/locales/global/pt.js +1 -1
  2410. package/locales/global/qu-BO.js +1 -1
  2411. package/locales/global/qu-EC.js +1 -1
  2412. package/locales/global/qu.js +1 -1
  2413. package/locales/global/quc.js +22 -0
  2414. package/locales/global/raj.js +22 -0
  2415. package/locales/global/rhg-Rohg-BD.js +22 -0
  2416. package/locales/global/rhg-Rohg.js +22 -0
  2417. package/locales/global/rhg.js +22 -0
  2418. package/locales/global/rif.js +22 -0
  2419. package/locales/global/rm.js +1 -1
  2420. package/locales/global/rn.js +1 -1
  2421. package/locales/global/ro-MD.js +2 -2
  2422. package/locales/global/ro.js +2 -2
  2423. package/locales/global/rof.js +1 -1
  2424. package/locales/global/ru-BY.js +1 -1
  2425. package/locales/global/ru-KG.js +1 -1
  2426. package/locales/global/ru-KZ.js +1 -1
  2427. package/locales/global/ru-MD.js +1 -1
  2428. package/locales/global/ru-UA.js +1 -1
  2429. package/locales/global/ru.js +1 -1
  2430. package/locales/global/rw.js +1 -1
  2431. package/locales/global/rwk.js +1 -1
  2432. package/locales/global/sa.js +1 -1
  2433. package/locales/global/sah.js +1 -1
  2434. package/locales/global/saq.js +1 -1
  2435. package/locales/global/sat-Deva.js +22 -0
  2436. package/locales/global/sat-Olck.js +1 -1
  2437. package/locales/global/sat.js +1 -1
  2438. package/locales/global/sbp.js +1 -1
  2439. package/locales/global/sc.js +1 -1
  2440. package/locales/global/scn.js +26 -0
  2441. package/locales/global/sd-Arab.js +1 -1
  2442. package/locales/global/sd-Deva.js +1 -1
  2443. package/locales/global/sd.js +1 -1
  2444. package/locales/global/sdh-IQ.js +24 -0
  2445. package/locales/global/sdh.js +24 -0
  2446. package/locales/global/se-FI.js +1 -1
  2447. package/locales/global/seh.js +1 -1
  2448. package/locales/global/ses.js +1 -1
  2449. package/locales/global/sg.js +1 -1
  2450. package/locales/global/shi-Latn.js +1 -1
  2451. package/locales/global/shi-Tfng.js +1 -1
  2452. package/locales/global/shi.js +1 -1
  2453. package/locales/global/shn-TH.js +22 -0
  2454. package/locales/global/shn.js +22 -0
  2455. package/locales/global/si.js +1 -1
  2456. package/locales/global/sid.js +22 -0
  2457. package/locales/global/sk.js +1 -1
  2458. package/locales/global/skr.js +22 -0
  2459. package/locales/global/sl.js +1 -1
  2460. package/locales/global/sma-NO.js +26 -0
  2461. package/locales/global/sma.js +26 -0
  2462. package/locales/global/smj-NO.js +26 -0
  2463. package/locales/global/smj.js +26 -0
  2464. package/locales/global/smn.js +1 -1
  2465. package/locales/global/sms.js +26 -0
  2466. package/locales/global/sn.js +1 -1
  2467. package/locales/global/so-DJ.js +1 -1
  2468. package/locales/global/so-ET.js +1 -1
  2469. package/locales/global/so-KE.js +1 -1
  2470. package/locales/global/so.js +1 -1
  2471. package/locales/global/sq-MK.js +1 -1
  2472. package/locales/global/sq-XK.js +1 -1
  2473. package/locales/global/sq.js +1 -1
  2474. package/locales/global/sr-Cyrl-BA.js +1 -1
  2475. package/locales/global/sr-Cyrl-ME.js +1 -1
  2476. package/locales/global/sr-Cyrl-XK.js +1 -1
  2477. package/locales/global/sr-Cyrl.js +1 -1
  2478. package/locales/global/sr-Latn-BA.js +1 -1
  2479. package/locales/global/sr-Latn-ME.js +1 -1
  2480. package/locales/global/sr-Latn-XK.js +1 -1
  2481. package/locales/global/sr-Latn.js +1 -1
  2482. package/locales/global/sr.js +1 -1
  2483. package/locales/global/ss-SZ.js +24 -0
  2484. package/locales/global/ss.js +24 -0
  2485. package/locales/global/ssy.js +24 -0
  2486. package/locales/global/st-LS.js +24 -0
  2487. package/locales/global/st.js +24 -0
  2488. package/locales/global/su-Latn.js +1 -1
  2489. package/locales/global/su.js +1 -1
  2490. package/locales/global/sv-AX.js +1 -1
  2491. package/locales/global/sv-FI.js +1 -1
  2492. package/locales/global/sv.js +1 -1
  2493. package/locales/global/sw-CD.js +1 -1
  2494. package/locales/global/sw-KE.js +1 -1
  2495. package/locales/global/sw-UG.js +1 -1
  2496. package/locales/global/sw.js +1 -1
  2497. package/locales/global/syr-SY.js +24 -0
  2498. package/locales/global/syr.js +24 -0
  2499. package/locales/global/szl.js +22 -0
  2500. package/locales/global/ta-LK.js +1 -1
  2501. package/locales/global/ta-MY.js +1 -1
  2502. package/locales/global/ta-SG.js +1 -1
  2503. package/locales/global/ta.js +1 -1
  2504. package/locales/global/te.js +1 -1
  2505. package/locales/global/teo-KE.js +1 -1
  2506. package/locales/global/teo.js +1 -1
  2507. package/locales/global/tg.js +1 -1
  2508. package/locales/global/th.js +1 -1
  2509. package/locales/global/ti-ER.js +1 -1
  2510. package/locales/global/ti.js +1 -1
  2511. package/locales/global/tig.js +24 -0
  2512. package/locales/global/tk.js +1 -1
  2513. package/locales/global/tn-BW.js +24 -0
  2514. package/locales/global/tn.js +24 -0
  2515. package/locales/global/to.js +1 -1
  2516. package/locales/global/tok.js +22 -0
  2517. package/locales/global/tpi.js +22 -0
  2518. package/locales/global/tr-CY.js +1 -1
  2519. package/locales/global/tr.js +1 -1
  2520. package/locales/global/trv.js +22 -0
  2521. package/locales/global/trw.js +22 -0
  2522. package/locales/global/ts.js +24 -0
  2523. package/locales/global/tt.js +1 -1
  2524. package/locales/global/twq.js +1 -1
  2525. package/locales/global/tyv.js +22 -0
  2526. package/locales/global/tzm.js +1 -1
  2527. package/locales/global/ug.js +1 -1
  2528. package/locales/global/uk.js +1 -1
  2529. package/locales/global/und.js +1 -1
  2530. package/locales/global/ur-IN.js +1 -1
  2531. package/locales/global/ur.js +1 -1
  2532. package/locales/global/uz-Arab.js +1 -1
  2533. package/locales/global/uz-Cyrl.js +1 -1
  2534. package/locales/global/uz-Latn.js +1 -1
  2535. package/locales/global/uz.js +1 -1
  2536. package/locales/global/vai-Latn.js +1 -1
  2537. package/locales/global/vai-Vaii.js +1 -1
  2538. package/locales/global/vai.js +1 -1
  2539. package/locales/global/ve.js +24 -0
  2540. package/locales/global/vec.js +26 -0
  2541. package/locales/global/vi.js +1 -1
  2542. package/locales/global/vmw.js +22 -0
  2543. package/locales/global/vo.js +24 -0
  2544. package/locales/global/vun.js +1 -1
  2545. package/locales/global/wa.js +24 -0
  2546. package/locales/global/wae.js +1 -1
  2547. package/locales/global/wal.js +22 -0
  2548. package/locales/global/wbp.js +22 -0
  2549. package/locales/global/wo.js +1 -1
  2550. package/locales/global/xh.js +1 -1
  2551. package/locales/global/xnr.js +22 -0
  2552. package/locales/global/xog.js +1 -1
  2553. package/locales/global/yav.js +1 -1
  2554. package/locales/global/yi.js +1 -1
  2555. package/locales/global/yo-BJ.js +1 -1
  2556. package/locales/global/yo.js +1 -1
  2557. package/locales/global/yrl-CO.js +1 -1
  2558. package/locales/global/yrl-VE.js +1 -1
  2559. package/locales/global/yrl.js +1 -1
  2560. package/locales/global/yue-Hans.js +1 -1
  2561. package/locales/global/yue-Hant-CN.js +22 -0
  2562. package/locales/global/yue-Hant-MO.js +22 -0
  2563. package/locales/global/yue-Hant.js +1 -1
  2564. package/locales/global/yue.js +1 -1
  2565. package/locales/global/za.js +22 -0
  2566. package/locales/global/zgh.js +1 -1
  2567. package/locales/global/zh-Hans-HK.js +1 -1
  2568. package/locales/global/zh-Hans-MO.js +1 -1
  2569. package/locales/global/zh-Hans-MY.js +22 -0
  2570. package/locales/global/zh-Hans-SG.js +1 -1
  2571. package/locales/global/zh-Hans.js +1 -1
  2572. package/locales/global/zh-Hant-HK.js +1 -1
  2573. package/locales/global/zh-Hant-MO.js +1 -1
  2574. package/locales/global/zh-Hant-MY.js +22 -0
  2575. package/locales/global/zh-Hant.js +1 -1
  2576. package/locales/global/zh-Latn.js +22 -0
  2577. package/locales/global/zh.js +1 -1
  2578. package/locales/global/zu.js +1 -1
  2579. package/locales/gn.d.ts +14 -0
  2580. package/locales/gn.js +15 -0
  2581. package/locales/gn.js.map +1 -0
  2582. package/locales/gsw-FR.js +1 -1
  2583. package/locales/gsw-FR.js.map +1 -1
  2584. package/locales/gsw-LI.js +1 -1
  2585. package/locales/gsw-LI.js.map +1 -1
  2586. package/locales/gsw.js +1 -1
  2587. package/locales/gsw.js.map +1 -1
  2588. package/locales/gu.d.ts +1 -1
  2589. package/locales/gu.js +1 -1
  2590. package/locales/gu.js.map +1 -1
  2591. package/locales/guz.js +1 -1
  2592. package/locales/guz.js.map +1 -1
  2593. package/locales/gv.d.ts +1 -1
  2594. package/locales/gv.js +1 -1
  2595. package/locales/gv.js.map +1 -1
  2596. package/locales/ha-Arab-SD.d.ts +14 -0
  2597. package/locales/ha-Arab-SD.js +15 -0
  2598. package/locales/ha-Arab-SD.js.map +1 -0
  2599. package/locales/ha-Arab.d.ts +14 -0
  2600. package/locales/ha-Arab.js +15 -0
  2601. package/locales/ha-Arab.js.map +1 -0
  2602. package/locales/ha-GH.js +1 -1
  2603. package/locales/ha-GH.js.map +1 -1
  2604. package/locales/ha-NE.js +1 -1
  2605. package/locales/ha-NE.js.map +1 -1
  2606. package/locales/ha.js +1 -1
  2607. package/locales/ha.js.map +1 -1
  2608. package/locales/haw.d.ts +1 -1
  2609. package/locales/haw.js +1 -1
  2610. package/locales/haw.js.map +1 -1
  2611. package/locales/he.d.ts +1 -1
  2612. package/locales/he.js +2 -4
  2613. package/locales/he.js.map +1 -1
  2614. package/locales/hi-Latn.d.ts +1 -1
  2615. package/locales/hi-Latn.js +1 -1
  2616. package/locales/hi-Latn.js.map +1 -1
  2617. package/locales/hi.js +1 -1
  2618. package/locales/hi.js.map +1 -1
  2619. package/locales/hnj-Hmnp.d.ts +13 -0
  2620. package/locales/hnj-Hmnp.js +15 -0
  2621. package/locales/hnj-Hmnp.js.map +1 -0
  2622. package/locales/hnj.d.ts +13 -0
  2623. package/locales/hnj.js +15 -0
  2624. package/locales/hnj.js.map +1 -0
  2625. package/locales/hr-BA.d.ts +1 -2
  2626. package/locales/hr-BA.js +1 -1
  2627. package/locales/hr-BA.js.map +1 -1
  2628. package/locales/hr.d.ts +1 -2
  2629. package/locales/hr.js +1 -1
  2630. package/locales/hr.js.map +1 -1
  2631. package/locales/hsb.js +1 -1
  2632. package/locales/hsb.js.map +1 -1
  2633. package/locales/ht.d.ts +58 -0
  2634. package/locales/ht.js +19 -0
  2635. package/locales/ht.js.map +1 -0
  2636. package/locales/hu.d.ts +1 -1
  2637. package/locales/hu.js +1 -1
  2638. package/locales/hu.js.map +1 -1
  2639. package/locales/hy.js +1 -1
  2640. package/locales/hy.js.map +1 -1
  2641. package/locales/ia.js +1 -1
  2642. package/locales/ia.js.map +1 -1
  2643. package/locales/id.js +1 -1
  2644. package/locales/id.js.map +1 -1
  2645. package/locales/ie.d.ts +13 -0
  2646. package/locales/ie.js +15 -0
  2647. package/locales/ie.js.map +1 -0
  2648. package/locales/ig.js +1 -1
  2649. package/locales/ig.js.map +1 -1
  2650. package/locales/ii.d.ts +1 -1
  2651. package/locales/ii.js +1 -1
  2652. package/locales/ii.js.map +1 -1
  2653. package/locales/io.d.ts +13 -0
  2654. package/locales/io.js +17 -0
  2655. package/locales/io.js.map +1 -0
  2656. package/locales/is.d.ts +5 -1
  2657. package/locales/is.js +2 -2
  2658. package/locales/is.js.map +1 -1
  2659. package/locales/it-CH.d.ts +1 -1
  2660. package/locales/it-CH.js +1 -1
  2661. package/locales/it-CH.js.map +1 -1
  2662. package/locales/it-SM.d.ts +1 -1
  2663. package/locales/it-SM.js +1 -1
  2664. package/locales/it-SM.js.map +1 -1
  2665. package/locales/it-VA.d.ts +1 -1
  2666. package/locales/it-VA.js +1 -1
  2667. package/locales/it-VA.js.map +1 -1
  2668. package/locales/it.d.ts +1 -1
  2669. package/locales/it.js +1 -1
  2670. package/locales/it.js.map +1 -1
  2671. package/locales/iu-Latn.d.ts +13 -0
  2672. package/locales/iu-Latn.js +15 -0
  2673. package/locales/iu-Latn.js.map +1 -0
  2674. package/locales/iu.d.ts +13 -0
  2675. package/locales/iu.js +19 -0
  2676. package/locales/iu.js.map +1 -0
  2677. package/locales/ja.js +1 -1
  2678. package/locales/ja.js.map +1 -1
  2679. package/locales/jbo.d.ts +13 -0
  2680. package/locales/jbo.js +15 -0
  2681. package/locales/jbo.js.map +1 -0
  2682. package/locales/jgo.js +1 -1
  2683. package/locales/jgo.js.map +1 -1
  2684. package/locales/jmc.js +1 -1
  2685. package/locales/jmc.js.map +1 -1
  2686. package/locales/jv.js +1 -1
  2687. package/locales/jv.js.map +1 -1
  2688. package/locales/ka.js +1 -1
  2689. package/locales/ka.js.map +1 -1
  2690. package/locales/kaa-Cyrl.d.ts +13 -0
  2691. package/locales/kaa-Cyrl.js +15 -0
  2692. package/locales/kaa-Cyrl.js.map +1 -0
  2693. package/locales/kaa-Latn.d.ts +13 -0
  2694. package/locales/kaa-Latn.js +15 -0
  2695. package/locales/kaa-Latn.js.map +1 -0
  2696. package/locales/kaa.d.ts +13 -0
  2697. package/locales/kaa.js +15 -0
  2698. package/locales/kaa.js.map +1 -0
  2699. package/locales/kab.js +1 -1
  2700. package/locales/kab.js.map +1 -1
  2701. package/locales/kaj.d.ts +14 -0
  2702. package/locales/kaj.js +17 -0
  2703. package/locales/kaj.js.map +1 -0
  2704. package/locales/kam.js +1 -1
  2705. package/locales/kam.js.map +1 -1
  2706. package/locales/kcg.d.ts +14 -0
  2707. package/locales/kcg.js +17 -0
  2708. package/locales/kcg.js.map +1 -0
  2709. package/locales/kde.js +1 -1
  2710. package/locales/kde.js.map +1 -1
  2711. package/locales/kea.js +1 -1
  2712. package/locales/kea.js.map +1 -1
  2713. package/locales/ken.d.ts +13 -0
  2714. package/locales/ken.js +15 -0
  2715. package/locales/ken.js.map +1 -0
  2716. package/locales/kgp.js +1 -1
  2717. package/locales/kgp.js.map +1 -1
  2718. package/locales/khq.js +1 -1
  2719. package/locales/khq.js.map +1 -1
  2720. package/locales/ki.js +1 -1
  2721. package/locales/ki.js.map +1 -1
  2722. package/locales/kk-Arab.d.ts +13 -0
  2723. package/locales/kk-Arab.js +15 -0
  2724. package/locales/kk-Arab.js.map +1 -0
  2725. package/locales/kk-Cyrl.d.ts +19 -0
  2726. package/locales/kk-Cyrl.js +17 -0
  2727. package/locales/kk-Cyrl.js.map +1 -0
  2728. package/locales/kk-KZ.d.ts +19 -0
  2729. package/locales/kk-KZ.js +17 -0
  2730. package/locales/kk-KZ.js.map +1 -0
  2731. package/locales/kk.js +1 -1
  2732. package/locales/kk.js.map +1 -1
  2733. package/locales/kkj.js +1 -1
  2734. package/locales/kkj.js.map +1 -1
  2735. package/locales/kl.d.ts +1 -1
  2736. package/locales/kl.js +1 -1
  2737. package/locales/kl.js.map +1 -1
  2738. package/locales/kln.js +1 -1
  2739. package/locales/kln.js.map +1 -1
  2740. package/locales/km.js +1 -1
  2741. package/locales/km.js.map +1 -1
  2742. package/locales/kn.js +1 -1
  2743. package/locales/kn.js.map +1 -1
  2744. package/locales/ko-CN.d.ts +18 -0
  2745. package/locales/ko-CN.js +15 -0
  2746. package/locales/ko-CN.js.map +1 -0
  2747. package/locales/ko-KP.js +1 -1
  2748. package/locales/ko-KP.js.map +1 -1
  2749. package/locales/ko.js +1 -1
  2750. package/locales/ko.js.map +1 -1
  2751. package/locales/kok-Deva.d.ts +16 -0
  2752. package/locales/kok-Deva.js +15 -0
  2753. package/locales/kok-Deva.js.map +1 -0
  2754. package/locales/kok-Latn.d.ts +13 -0
  2755. package/locales/kok-Latn.js +15 -0
  2756. package/locales/kok-Latn.js.map +1 -0
  2757. package/locales/kok.js +1 -1
  2758. package/locales/kok.js.map +1 -1
  2759. package/locales/kpe-GN.d.ts +14 -0
  2760. package/locales/kpe-GN.js +15 -0
  2761. package/locales/kpe-GN.js.map +1 -0
  2762. package/locales/kpe.d.ts +14 -0
  2763. package/locales/kpe.js +15 -0
  2764. package/locales/kpe.js.map +1 -0
  2765. package/locales/ks-Arab.js +1 -1
  2766. package/locales/ks-Arab.js.map +1 -1
  2767. package/locales/ks-Deva.d.ts +1 -1
  2768. package/locales/ks-Deva.js +1 -1
  2769. package/locales/ks-Deva.js.map +1 -1
  2770. package/locales/ks.js +1 -1
  2771. package/locales/ks.js.map +1 -1
  2772. package/locales/ksb.js +1 -1
  2773. package/locales/ksb.js.map +1 -1
  2774. package/locales/ksf.js +1 -1
  2775. package/locales/ksf.js.map +1 -1
  2776. package/locales/ku.d.ts +0 -1
  2777. package/locales/ku.js +1 -1
  2778. package/locales/ku.js.map +1 -1
  2779. package/locales/kw.d.ts +1 -1
  2780. package/locales/kw.js +1 -1
  2781. package/locales/kw.js.map +1 -1
  2782. package/locales/kxv-Deva.d.ts +13 -0
  2783. package/locales/kxv-Deva.js +15 -0
  2784. package/locales/kxv-Deva.js.map +1 -0
  2785. package/locales/kxv-Latn.d.ts +13 -0
  2786. package/locales/kxv-Latn.js +15 -0
  2787. package/locales/kxv-Latn.js.map +1 -0
  2788. package/locales/kxv-Orya.d.ts +13 -0
  2789. package/locales/kxv-Orya.js +15 -0
  2790. package/locales/kxv-Orya.js.map +1 -0
  2791. package/locales/kxv-Telu.d.ts +13 -0
  2792. package/locales/kxv-Telu.js +15 -0
  2793. package/locales/kxv-Telu.js.map +1 -0
  2794. package/locales/kxv.d.ts +13 -0
  2795. package/locales/kxv.js +15 -0
  2796. package/locales/kxv.js.map +1 -0
  2797. package/locales/ky.js +1 -1
  2798. package/locales/ky.js.map +1 -1
  2799. package/locales/la.d.ts +13 -0
  2800. package/locales/la.js +19 -0
  2801. package/locales/la.js.map +1 -0
  2802. package/locales/lag.js +1 -1
  2803. package/locales/lag.js.map +1 -1
  2804. package/locales/lb.d.ts +1 -1
  2805. package/locales/lb.js +1 -1
  2806. package/locales/lb.js.map +1 -1
  2807. package/locales/lg.js +1 -1
  2808. package/locales/lg.js.map +1 -1
  2809. package/locales/lij.d.ts +13 -0
  2810. package/locales/lij.js +17 -0
  2811. package/locales/lij.js.map +1 -0
  2812. package/locales/lkt.d.ts +1 -1
  2813. package/locales/lkt.js +1 -1
  2814. package/locales/lkt.js.map +1 -1
  2815. package/locales/lld.d.ts +13 -0
  2816. package/locales/lld.js +19 -0
  2817. package/locales/lld.js.map +1 -0
  2818. package/locales/lmo.d.ts +13 -0
  2819. package/locales/lmo.js +15 -0
  2820. package/locales/lmo.js.map +1 -0
  2821. package/locales/ln-AO.js +1 -1
  2822. package/locales/ln-AO.js.map +1 -1
  2823. package/locales/ln-CF.js +1 -1
  2824. package/locales/ln-CF.js.map +1 -1
  2825. package/locales/ln-CG.js +1 -1
  2826. package/locales/ln-CG.js.map +1 -1
  2827. package/locales/ln.js +1 -1
  2828. package/locales/ln.js.map +1 -1
  2829. package/locales/lo.js +1 -1
  2830. package/locales/lo.js.map +1 -1
  2831. package/locales/lrc-IQ.d.ts +1 -1
  2832. package/locales/lrc-IQ.js +1 -1
  2833. package/locales/lrc-IQ.js.map +1 -1
  2834. package/locales/lrc.d.ts +1 -1
  2835. package/locales/lrc.js +1 -1
  2836. package/locales/lrc.js.map +1 -1
  2837. package/locales/lt.d.ts +4 -4
  2838. package/locales/lt.js +1 -1
  2839. package/locales/lt.js.map +1 -1
  2840. package/locales/ltg.d.ts +13 -0
  2841. package/locales/ltg.js +15 -0
  2842. package/locales/ltg.js.map +1 -0
  2843. package/locales/lu.js +1 -1
  2844. package/locales/lu.js.map +1 -1
  2845. package/locales/luo.js +1 -1
  2846. package/locales/luo.js.map +1 -1
  2847. package/locales/luy.js +1 -1
  2848. package/locales/luy.js.map +1 -1
  2849. package/locales/lv.d.ts +1 -1
  2850. package/locales/lv.js +1 -1
  2851. package/locales/lv.js.map +1 -1
  2852. package/locales/mai.d.ts +1 -1
  2853. package/locales/mai.js +1 -1
  2854. package/locales/mai.js.map +1 -1
  2855. package/locales/mas-TZ.js +1 -1
  2856. package/locales/mas-TZ.js.map +1 -1
  2857. package/locales/mas.js +1 -1
  2858. package/locales/mas.js.map +1 -1
  2859. package/locales/mdf.d.ts +14 -0
  2860. package/locales/mdf.js +15 -0
  2861. package/locales/mdf.js.map +1 -0
  2862. package/locales/mer.js +1 -1
  2863. package/locales/mer.js.map +1 -1
  2864. package/locales/mfe.js +1 -1
  2865. package/locales/mfe.js.map +1 -1
  2866. package/locales/mg.js +1 -1
  2867. package/locales/mg.js.map +1 -1
  2868. package/locales/mgh.js +1 -1
  2869. package/locales/mgh.js.map +1 -1
  2870. package/locales/mgo.js +1 -1
  2871. package/locales/mgo.js.map +1 -1
  2872. package/locales/mhn.d.ts +13 -0
  2873. package/locales/mhn.js +15 -0
  2874. package/locales/mhn.js.map +1 -0
  2875. package/locales/mi.d.ts +1 -1
  2876. package/locales/mi.js +1 -1
  2877. package/locales/mi.js.map +1 -1
  2878. package/locales/mic.d.ts +13 -0
  2879. package/locales/mic.js +15 -0
  2880. package/locales/mic.js.map +1 -0
  2881. package/locales/mk.js +1 -1
  2882. package/locales/mk.js.map +1 -1
  2883. package/locales/ml.js +1 -1
  2884. package/locales/ml.js.map +1 -1
  2885. package/locales/mn-Mong-MN.d.ts +13 -0
  2886. package/locales/mn-Mong-MN.js +15 -0
  2887. package/locales/mn-Mong-MN.js.map +1 -0
  2888. package/locales/mn-Mong.d.ts +12 -0
  2889. package/locales/mn-Mong.js +15 -0
  2890. package/locales/mn-Mong.js.map +1 -0
  2891. package/locales/mn.js +1 -1
  2892. package/locales/mn.js.map +1 -1
  2893. package/locales/mni-Beng.js +1 -1
  2894. package/locales/mni-Beng.js.map +1 -1
  2895. package/locales/mni-Mtei.d.ts +13 -0
  2896. package/locales/mni-Mtei.js +15 -0
  2897. package/locales/mni-Mtei.js.map +1 -0
  2898. package/locales/mni.js +1 -1
  2899. package/locales/mni.js.map +1 -1
  2900. package/locales/moh.d.ts +13 -0
  2901. package/locales/moh.js +15 -0
  2902. package/locales/moh.js.map +1 -0
  2903. package/locales/mr.js +1 -1
  2904. package/locales/mr.js.map +1 -1
  2905. package/locales/ms-Arab-BN.d.ts +15 -0
  2906. package/locales/ms-Arab-BN.js +15 -0
  2907. package/locales/ms-Arab-BN.js.map +1 -0
  2908. package/locales/ms-Arab.d.ts +14 -0
  2909. package/locales/ms-Arab.js +15 -0
  2910. package/locales/ms-Arab.js.map +1 -0
  2911. package/locales/ms-BN.d.ts +1 -1
  2912. package/locales/ms-BN.js +1 -1
  2913. package/locales/ms-BN.js.map +1 -1
  2914. package/locales/ms-ID.d.ts +1 -1
  2915. package/locales/ms-ID.js +1 -1
  2916. package/locales/ms-ID.js.map +1 -1
  2917. package/locales/ms-SG.d.ts +1 -1
  2918. package/locales/ms-SG.js +1 -1
  2919. package/locales/ms-SG.js.map +1 -1
  2920. package/locales/ms.d.ts +1 -1
  2921. package/locales/ms.js +1 -1
  2922. package/locales/ms.js.map +1 -1
  2923. package/locales/mt.js +4 -2
  2924. package/locales/mt.js.map +1 -1
  2925. package/locales/mua.js +1 -1
  2926. package/locales/mua.js.map +1 -1
  2927. package/locales/mus.d.ts +12 -0
  2928. package/locales/mus.js +15 -0
  2929. package/locales/mus.js.map +1 -0
  2930. package/locales/my.d.ts +0 -1
  2931. package/locales/my.js +1 -1
  2932. package/locales/my.js.map +1 -1
  2933. package/locales/myv.d.ts +13 -0
  2934. package/locales/myv.js +15 -0
  2935. package/locales/myv.js.map +1 -0
  2936. package/locales/mzn.js +1 -1
  2937. package/locales/mzn.js.map +1 -1
  2938. package/locales/naq.js +1 -1
  2939. package/locales/naq.js.map +1 -1
  2940. package/locales/nb-SJ.js +1 -1
  2941. package/locales/nb-SJ.js.map +1 -1
  2942. package/locales/nb.js +1 -1
  2943. package/locales/nb.js.map +1 -1
  2944. package/locales/nd.js +1 -1
  2945. package/locales/nd.js.map +1 -1
  2946. package/locales/nds-NL.d.ts +1 -1
  2947. package/locales/nds-NL.js +1 -1
  2948. package/locales/nds-NL.js.map +1 -1
  2949. package/locales/nds.d.ts +1 -1
  2950. package/locales/nds.js +1 -1
  2951. package/locales/nds.js.map +1 -1
  2952. package/locales/ne-IN.d.ts +1 -1
  2953. package/locales/ne-IN.js +1 -1
  2954. package/locales/ne-IN.js.map +1 -1
  2955. package/locales/ne.d.ts +1 -1
  2956. package/locales/ne.js +1 -1
  2957. package/locales/ne.js.map +1 -1
  2958. package/locales/nl-AW.d.ts +2 -1
  2959. package/locales/nl-AW.js +1 -1
  2960. package/locales/nl-AW.js.map +1 -1
  2961. package/locales/nl-BE.d.ts +2 -1
  2962. package/locales/nl-BE.js +1 -1
  2963. package/locales/nl-BE.js.map +1 -1
  2964. package/locales/nl-BQ.d.ts +2 -1
  2965. package/locales/nl-BQ.js +1 -1
  2966. package/locales/nl-BQ.js.map +1 -1
  2967. package/locales/nl-CW.d.ts +2 -1
  2968. package/locales/nl-CW.js +1 -1
  2969. package/locales/nl-CW.js.map +1 -1
  2970. package/locales/nl-SR.d.ts +2 -1
  2971. package/locales/nl-SR.js +1 -1
  2972. package/locales/nl-SR.js.map +1 -1
  2973. package/locales/nl-SX.d.ts +2 -1
  2974. package/locales/nl-SX.js +1 -1
  2975. package/locales/nl-SX.js.map +1 -1
  2976. package/locales/nl.d.ts +2 -1
  2977. package/locales/nl.js +1 -1
  2978. package/locales/nl.js.map +1 -1
  2979. package/locales/nmg.js +1 -1
  2980. package/locales/nmg.js.map +1 -1
  2981. package/locales/nn.js +1 -1
  2982. package/locales/nn.js.map +1 -1
  2983. package/locales/nnh.js +1 -1
  2984. package/locales/nnh.js.map +1 -1
  2985. package/locales/no.js +1 -1
  2986. package/locales/no.js.map +1 -1
  2987. package/locales/nqo.d.ts +181 -0
  2988. package/locales/nqo.js +15 -0
  2989. package/locales/nqo.js.map +1 -0
  2990. package/locales/nr.d.ts +14 -0
  2991. package/locales/nr.js +17 -0
  2992. package/locales/nr.js.map +1 -0
  2993. package/locales/nso.d.ts +14 -0
  2994. package/locales/nso.js +17 -0
  2995. package/locales/nso.js.map +1 -0
  2996. package/locales/nus.js +1 -1
  2997. package/locales/nus.js.map +1 -1
  2998. package/locales/nv.d.ts +13 -0
  2999. package/locales/nv.js +15 -0
  3000. package/locales/nv.js.map +1 -0
  3001. package/locales/ny.d.ts +13 -0
  3002. package/locales/ny.js +17 -0
  3003. package/locales/ny.js.map +1 -0
  3004. package/locales/nyn.js +1 -1
  3005. package/locales/nyn.js.map +1 -1
  3006. package/locales/oc-ES.d.ts +13 -0
  3007. package/locales/oc-ES.js +15 -0
  3008. package/locales/oc-ES.js.map +1 -0
  3009. package/locales/oc.d.ts +13 -0
  3010. package/locales/oc.js +15 -0
  3011. package/locales/oc.js.map +1 -0
  3012. package/locales/om-KE.d.ts +1 -1
  3013. package/locales/om-KE.js +1 -1
  3014. package/locales/om-KE.js.map +1 -1
  3015. package/locales/om.d.ts +1 -1
  3016. package/locales/om.js +1 -1
  3017. package/locales/om.js.map +1 -1
  3018. package/locales/or.js +1 -1
  3019. package/locales/or.js.map +1 -1
  3020. package/locales/os-RU.js +1 -1
  3021. package/locales/os-RU.js.map +1 -1
  3022. package/locales/os.js +1 -1
  3023. package/locales/os.js.map +1 -1
  3024. package/locales/osa.d.ts +12 -0
  3025. package/locales/osa.js +15 -0
  3026. package/locales/osa.js.map +1 -0
  3027. package/locales/pa-Arab.d.ts +1 -1
  3028. package/locales/pa-Arab.js +1 -1
  3029. package/locales/pa-Arab.js.map +1 -1
  3030. package/locales/pa-Guru.d.ts +1 -1
  3031. package/locales/pa-Guru.js +1 -1
  3032. package/locales/pa-Guru.js.map +1 -1
  3033. package/locales/pa.d.ts +1 -1
  3034. package/locales/pa.js +1 -1
  3035. package/locales/pa.js.map +1 -1
  3036. package/locales/pap-AW.d.ts +13 -0
  3037. package/locales/pap-AW.js +17 -0
  3038. package/locales/pap-AW.js.map +1 -0
  3039. package/locales/pap.d.ts +13 -0
  3040. package/locales/pap.js +17 -0
  3041. package/locales/pap.js.map +1 -0
  3042. package/locales/pcm.js +1 -1
  3043. package/locales/pcm.js.map +1 -1
  3044. package/locales/pis.d.ts +14 -0
  3045. package/locales/pis.js +15 -0
  3046. package/locales/pis.js.map +1 -0
  3047. package/locales/pl.js +1 -1
  3048. package/locales/pl.js.map +1 -1
  3049. package/locales/prg.d.ts +13 -0
  3050. package/locales/prg.js +19 -0
  3051. package/locales/prg.js.map +1 -0
  3052. package/locales/ps-PK.js +1 -1
  3053. package/locales/ps-PK.js.map +1 -1
  3054. package/locales/ps.js +1 -1
  3055. package/locales/ps.js.map +1 -1
  3056. package/locales/pt-AO.js +1 -1
  3057. package/locales/pt-AO.js.map +1 -1
  3058. package/locales/pt-CH.js +1 -1
  3059. package/locales/pt-CH.js.map +1 -1
  3060. package/locales/pt-CV.js +1 -1
  3061. package/locales/pt-CV.js.map +1 -1
  3062. package/locales/pt-GQ.js +1 -1
  3063. package/locales/pt-GQ.js.map +1 -1
  3064. package/locales/pt-GW.js +1 -1
  3065. package/locales/pt-GW.js.map +1 -1
  3066. package/locales/pt-LU.js +1 -1
  3067. package/locales/pt-LU.js.map +1 -1
  3068. package/locales/pt-MO.js +1 -1
  3069. package/locales/pt-MO.js.map +1 -1
  3070. package/locales/pt-MZ.js +1 -1
  3071. package/locales/pt-MZ.js.map +1 -1
  3072. package/locales/pt-PT.js +1 -1
  3073. package/locales/pt-PT.js.map +1 -1
  3074. package/locales/pt-ST.js +1 -1
  3075. package/locales/pt-ST.js.map +1 -1
  3076. package/locales/pt-TL.js +1 -1
  3077. package/locales/pt-TL.js.map +1 -1
  3078. package/locales/pt.js +1 -1
  3079. package/locales/pt.js.map +1 -1
  3080. package/locales/qu-BO.d.ts +1 -1
  3081. package/locales/qu-BO.js +1 -1
  3082. package/locales/qu-BO.js.map +1 -1
  3083. package/locales/qu-EC.d.ts +1 -1
  3084. package/locales/qu-EC.js +1 -1
  3085. package/locales/qu-EC.js.map +1 -1
  3086. package/locales/qu.d.ts +1 -1
  3087. package/locales/qu.js +1 -1
  3088. package/locales/qu.js.map +1 -1
  3089. package/locales/quc.d.ts +14 -0
  3090. package/locales/quc.js +15 -0
  3091. package/locales/quc.js.map +1 -0
  3092. package/locales/raj.d.ts +13 -0
  3093. package/locales/raj.js +15 -0
  3094. package/locales/raj.js.map +1 -0
  3095. package/locales/rhg-Rohg-BD.d.ts +13 -0
  3096. package/locales/rhg-Rohg-BD.js +15 -0
  3097. package/locales/rhg-Rohg-BD.js.map +1 -0
  3098. package/locales/rhg-Rohg.d.ts +13 -0
  3099. package/locales/rhg-Rohg.js +15 -0
  3100. package/locales/rhg-Rohg.js.map +1 -0
  3101. package/locales/rhg.d.ts +13 -0
  3102. package/locales/rhg.js +15 -0
  3103. package/locales/rhg.js.map +1 -0
  3104. package/locales/rif.d.ts +13 -0
  3105. package/locales/rif.js +15 -0
  3106. package/locales/rif.js.map +1 -0
  3107. package/locales/rm.js +1 -1
  3108. package/locales/rm.js.map +1 -1
  3109. package/locales/rn.js +1 -1
  3110. package/locales/rn.js.map +1 -1
  3111. package/locales/ro-MD.js +2 -2
  3112. package/locales/ro-MD.js.map +1 -1
  3113. package/locales/ro.js +2 -2
  3114. package/locales/ro.js.map +1 -1
  3115. package/locales/rof.js +1 -1
  3116. package/locales/rof.js.map +1 -1
  3117. package/locales/ru-BY.d.ts +1 -1
  3118. package/locales/ru-BY.js +1 -1
  3119. package/locales/ru-BY.js.map +1 -1
  3120. package/locales/ru-KG.d.ts +1 -1
  3121. package/locales/ru-KG.js +1 -1
  3122. package/locales/ru-KG.js.map +1 -1
  3123. package/locales/ru-KZ.d.ts +1 -1
  3124. package/locales/ru-KZ.js +1 -1
  3125. package/locales/ru-KZ.js.map +1 -1
  3126. package/locales/ru-MD.d.ts +1 -1
  3127. package/locales/ru-MD.js +1 -1
  3128. package/locales/ru-MD.js.map +1 -1
  3129. package/locales/ru-UA.d.ts +1 -1
  3130. package/locales/ru-UA.js +1 -1
  3131. package/locales/ru-UA.js.map +1 -1
  3132. package/locales/ru.d.ts +1 -1
  3133. package/locales/ru.js +1 -1
  3134. package/locales/ru.js.map +1 -1
  3135. package/locales/rw.d.ts +1 -1
  3136. package/locales/rw.js +1 -1
  3137. package/locales/rw.js.map +1 -1
  3138. package/locales/rwk.js +1 -1
  3139. package/locales/rwk.js.map +1 -1
  3140. package/locales/sa.js +1 -1
  3141. package/locales/sa.js.map +1 -1
  3142. package/locales/sah.d.ts +1 -1
  3143. package/locales/sah.js +1 -1
  3144. package/locales/sah.js.map +1 -1
  3145. package/locales/saq.js +1 -1
  3146. package/locales/saq.js.map +1 -1
  3147. package/locales/sat-Deva.d.ts +13 -0
  3148. package/locales/sat-Deva.js +15 -0
  3149. package/locales/sat-Deva.js.map +1 -0
  3150. package/locales/sat-Olck.js +1 -1
  3151. package/locales/sat-Olck.js.map +1 -1
  3152. package/locales/sat.js +1 -1
  3153. package/locales/sat.js.map +1 -1
  3154. package/locales/sbp.js +1 -1
  3155. package/locales/sbp.js.map +1 -1
  3156. package/locales/sc.js +1 -1
  3157. package/locales/sc.js.map +1 -1
  3158. package/locales/scn.d.ts +13 -0
  3159. package/locales/scn.js +19 -0
  3160. package/locales/scn.js.map +1 -0
  3161. package/locales/sd-Arab.js +1 -1
  3162. package/locales/sd-Arab.js.map +1 -1
  3163. package/locales/sd-Deva.js +1 -1
  3164. package/locales/sd-Deva.js.map +1 -1
  3165. package/locales/sd.js +1 -1
  3166. package/locales/sd.js.map +1 -1
  3167. package/locales/sdh-IQ.d.ts +13 -0
  3168. package/locales/sdh-IQ.js +17 -0
  3169. package/locales/sdh-IQ.js.map +1 -0
  3170. package/locales/sdh.d.ts +13 -0
  3171. package/locales/sdh.js +17 -0
  3172. package/locales/sdh.js.map +1 -0
  3173. package/locales/se-FI.js +1 -1
  3174. package/locales/se-FI.js.map +1 -1
  3175. package/locales/seh.js +1 -1
  3176. package/locales/seh.js.map +1 -1
  3177. package/locales/ses.js +1 -1
  3178. package/locales/ses.js.map +1 -1
  3179. package/locales/sg.js +1 -1
  3180. package/locales/sg.js.map +1 -1
  3181. package/locales/shi-Latn.js +1 -1
  3182. package/locales/shi-Latn.js.map +1 -1
  3183. package/locales/shi-Tfng.js +1 -1
  3184. package/locales/shi-Tfng.js.map +1 -1
  3185. package/locales/shi.js +1 -1
  3186. package/locales/shi.js.map +1 -1
  3187. package/locales/shn-TH.d.ts +13 -0
  3188. package/locales/shn-TH.js +15 -0
  3189. package/locales/shn-TH.js.map +1 -0
  3190. package/locales/shn.d.ts +13 -0
  3191. package/locales/shn.js +15 -0
  3192. package/locales/shn.js.map +1 -0
  3193. package/locales/si.js +1 -1
  3194. package/locales/si.js.map +1 -1
  3195. package/locales/sid.d.ts +14 -0
  3196. package/locales/sid.js +15 -0
  3197. package/locales/sid.js.map +1 -0
  3198. package/locales/sk.js +1 -1
  3199. package/locales/sk.js.map +1 -1
  3200. package/locales/skr.d.ts +13 -0
  3201. package/locales/skr.js +15 -0
  3202. package/locales/skr.js.map +1 -0
  3203. package/locales/sl.js +1 -1
  3204. package/locales/sl.js.map +1 -1
  3205. package/locales/sma-NO.d.ts +13 -0
  3206. package/locales/sma-NO.js +19 -0
  3207. package/locales/sma-NO.js.map +1 -0
  3208. package/locales/sma.d.ts +13 -0
  3209. package/locales/sma.js +19 -0
  3210. package/locales/sma.js.map +1 -0
  3211. package/locales/smj-NO.d.ts +13 -0
  3212. package/locales/smj-NO.js +19 -0
  3213. package/locales/smj-NO.js.map +1 -0
  3214. package/locales/smj.d.ts +13 -0
  3215. package/locales/smj.js +19 -0
  3216. package/locales/smj.js.map +1 -0
  3217. package/locales/smn.js +1 -1
  3218. package/locales/smn.js.map +1 -1
  3219. package/locales/sms.d.ts +13 -0
  3220. package/locales/sms.js +19 -0
  3221. package/locales/sms.js.map +1 -0
  3222. package/locales/sn.js +1 -1
  3223. package/locales/sn.js.map +1 -1
  3224. package/locales/so-DJ.d.ts +2 -2
  3225. package/locales/so-DJ.js +1 -1
  3226. package/locales/so-DJ.js.map +1 -1
  3227. package/locales/so-ET.d.ts +2 -2
  3228. package/locales/so-ET.js +1 -1
  3229. package/locales/so-ET.js.map +1 -1
  3230. package/locales/so-KE.d.ts +2 -2
  3231. package/locales/so-KE.js +1 -1
  3232. package/locales/so-KE.js.map +1 -1
  3233. package/locales/so.d.ts +2 -2
  3234. package/locales/so.js +1 -1
  3235. package/locales/so.js.map +1 -1
  3236. package/locales/sq-MK.d.ts +76 -76
  3237. package/locales/sq-MK.js +1 -1
  3238. package/locales/sq-MK.js.map +1 -1
  3239. package/locales/sq-XK.d.ts +76 -76
  3240. package/locales/sq-XK.js +1 -1
  3241. package/locales/sq-XK.js.map +1 -1
  3242. package/locales/sq.d.ts +76 -76
  3243. package/locales/sq.js +1 -1
  3244. package/locales/sq.js.map +1 -1
  3245. package/locales/sr-Cyrl-BA.js +1 -1
  3246. package/locales/sr-Cyrl-BA.js.map +1 -1
  3247. package/locales/sr-Cyrl-ME.js +1 -1
  3248. package/locales/sr-Cyrl-ME.js.map +1 -1
  3249. package/locales/sr-Cyrl-XK.d.ts +1 -1
  3250. package/locales/sr-Cyrl-XK.js +1 -1
  3251. package/locales/sr-Cyrl-XK.js.map +1 -1
  3252. package/locales/sr-Cyrl.d.ts +1 -1
  3253. package/locales/sr-Cyrl.js +1 -1
  3254. package/locales/sr-Cyrl.js.map +1 -1
  3255. package/locales/sr-Latn-BA.js +1 -1
  3256. package/locales/sr-Latn-BA.js.map +1 -1
  3257. package/locales/sr-Latn-ME.js +1 -1
  3258. package/locales/sr-Latn-ME.js.map +1 -1
  3259. package/locales/sr-Latn-XK.d.ts +1 -1
  3260. package/locales/sr-Latn-XK.js +1 -1
  3261. package/locales/sr-Latn-XK.js.map +1 -1
  3262. package/locales/sr-Latn.d.ts +1 -1
  3263. package/locales/sr-Latn.js +1 -1
  3264. package/locales/sr-Latn.js.map +1 -1
  3265. package/locales/sr.d.ts +1 -1
  3266. package/locales/sr.js +1 -1
  3267. package/locales/sr.js.map +1 -1
  3268. package/locales/ss-SZ.d.ts +15 -0
  3269. package/locales/ss-SZ.js +17 -0
  3270. package/locales/ss-SZ.js.map +1 -0
  3271. package/locales/ss.d.ts +15 -0
  3272. package/locales/ss.js +17 -0
  3273. package/locales/ss.js.map +1 -0
  3274. package/locales/ssy.d.ts +14 -0
  3275. package/locales/ssy.js +17 -0
  3276. package/locales/ssy.js.map +1 -0
  3277. package/locales/st-LS.d.ts +15 -0
  3278. package/locales/st-LS.js +17 -0
  3279. package/locales/st-LS.js.map +1 -0
  3280. package/locales/st.d.ts +14 -0
  3281. package/locales/st.js +17 -0
  3282. package/locales/st.js.map +1 -0
  3283. package/locales/su-Latn.d.ts +1 -1
  3284. package/locales/su-Latn.js +1 -1
  3285. package/locales/su-Latn.js.map +1 -1
  3286. package/locales/su.d.ts +1 -1
  3287. package/locales/su.js +1 -1
  3288. package/locales/su.js.map +1 -1
  3289. package/locales/sv-AX.d.ts +1 -1
  3290. package/locales/sv-AX.js +1 -1
  3291. package/locales/sv-AX.js.map +1 -1
  3292. package/locales/sv-FI.d.ts +1 -1
  3293. package/locales/sv-FI.js +1 -1
  3294. package/locales/sv-FI.js.map +1 -1
  3295. package/locales/sv.d.ts +1 -1
  3296. package/locales/sv.js +1 -1
  3297. package/locales/sv.js.map +1 -1
  3298. package/locales/sw-CD.js +1 -1
  3299. package/locales/sw-CD.js.map +1 -1
  3300. package/locales/sw-KE.js +1 -1
  3301. package/locales/sw-KE.js.map +1 -1
  3302. package/locales/sw-UG.js +1 -1
  3303. package/locales/sw-UG.js.map +1 -1
  3304. package/locales/sw.js +1 -1
  3305. package/locales/sw.js.map +1 -1
  3306. package/locales/syr-SY.d.ts +13 -0
  3307. package/locales/syr-SY.js +17 -0
  3308. package/locales/syr-SY.js.map +1 -0
  3309. package/locales/syr.d.ts +13 -0
  3310. package/locales/syr.js +17 -0
  3311. package/locales/syr.js.map +1 -0
  3312. package/locales/szl.d.ts +14 -0
  3313. package/locales/szl.js +15 -0
  3314. package/locales/szl.js.map +1 -0
  3315. package/locales/ta-LK.js +1 -1
  3316. package/locales/ta-LK.js.map +1 -1
  3317. package/locales/ta-MY.js +1 -1
  3318. package/locales/ta-MY.js.map +1 -1
  3319. package/locales/ta-SG.js +1 -1
  3320. package/locales/ta-SG.js.map +1 -1
  3321. package/locales/ta.js +1 -1
  3322. package/locales/ta.js.map +1 -1
  3323. package/locales/te.js +1 -1
  3324. package/locales/te.js.map +1 -1
  3325. package/locales/teo-KE.js +1 -1
  3326. package/locales/teo-KE.js.map +1 -1
  3327. package/locales/teo.js +1 -1
  3328. package/locales/teo.js.map +1 -1
  3329. package/locales/tg.js +1 -1
  3330. package/locales/tg.js.map +1 -1
  3331. package/locales/th.js +1 -1
  3332. package/locales/th.js.map +1 -1
  3333. package/locales/ti-ER.js +1 -1
  3334. package/locales/ti-ER.js.map +1 -1
  3335. package/locales/ti.js +1 -1
  3336. package/locales/ti.js.map +1 -1
  3337. package/locales/tig.d.ts +14 -0
  3338. package/locales/tig.js +17 -0
  3339. package/locales/tig.js.map +1 -0
  3340. package/locales/tk.d.ts +1 -1
  3341. package/locales/tk.js +1 -1
  3342. package/locales/tk.js.map +1 -1
  3343. package/locales/tn-BW.d.ts +15 -0
  3344. package/locales/tn-BW.js +17 -0
  3345. package/locales/tn-BW.js.map +1 -0
  3346. package/locales/tn.d.ts +14 -0
  3347. package/locales/tn.js +17 -0
  3348. package/locales/tn.js.map +1 -0
  3349. package/locales/to.js +1 -1
  3350. package/locales/to.js.map +1 -1
  3351. package/locales/tok.d.ts +13 -0
  3352. package/locales/tok.js +15 -0
  3353. package/locales/tok.js.map +1 -0
  3354. package/locales/tpi.d.ts +13 -0
  3355. package/locales/tpi.js +15 -0
  3356. package/locales/tpi.js.map +1 -0
  3357. package/locales/tr-CY.js +1 -1
  3358. package/locales/tr-CY.js.map +1 -1
  3359. package/locales/tr.js +1 -1
  3360. package/locales/tr.js.map +1 -1
  3361. package/locales/trv.d.ts +13 -0
  3362. package/locales/trv.js +15 -0
  3363. package/locales/trv.js.map +1 -0
  3364. package/locales/trw.d.ts +13 -0
  3365. package/locales/trw.js +15 -0
  3366. package/locales/trw.js.map +1 -0
  3367. package/locales/ts.d.ts +14 -0
  3368. package/locales/ts.js +17 -0
  3369. package/locales/ts.js.map +1 -0
  3370. package/locales/tt.js +1 -1
  3371. package/locales/tt.js.map +1 -1
  3372. package/locales/twq.js +1 -1
  3373. package/locales/twq.js.map +1 -1
  3374. package/locales/tyv.d.ts +13 -0
  3375. package/locales/tyv.js +15 -0
  3376. package/locales/tyv.js.map +1 -0
  3377. package/locales/tzm.js +1 -1
  3378. package/locales/tzm.js.map +1 -1
  3379. package/locales/ug.js +1 -1
  3380. package/locales/ug.js.map +1 -1
  3381. package/locales/uk.d.ts +1 -1
  3382. package/locales/uk.js +1 -1
  3383. package/locales/uk.js.map +1 -1
  3384. package/locales/und.js +1 -1
  3385. package/locales/und.js.map +1 -1
  3386. package/locales/ur-IN.d.ts +1 -1
  3387. package/locales/ur-IN.js +1 -1
  3388. package/locales/ur-IN.js.map +1 -1
  3389. package/locales/ur.d.ts +1 -1
  3390. package/locales/ur.js +1 -1
  3391. package/locales/ur.js.map +1 -1
  3392. package/locales/uz-Arab.d.ts +1 -1
  3393. package/locales/uz-Arab.js +1 -1
  3394. package/locales/uz-Arab.js.map +1 -1
  3395. package/locales/uz-Cyrl.js +1 -1
  3396. package/locales/uz-Cyrl.js.map +1 -1
  3397. package/locales/uz-Latn.js +1 -1
  3398. package/locales/uz-Latn.js.map +1 -1
  3399. package/locales/uz.js +1 -1
  3400. package/locales/uz.js.map +1 -1
  3401. package/locales/vai-Latn.d.ts +1 -1
  3402. package/locales/vai-Latn.js +1 -1
  3403. package/locales/vai-Latn.js.map +1 -1
  3404. package/locales/vai-Vaii.d.ts +1 -1
  3405. package/locales/vai-Vaii.js +1 -1
  3406. package/locales/vai-Vaii.js.map +1 -1
  3407. package/locales/vai.d.ts +1 -1
  3408. package/locales/vai.js +1 -1
  3409. package/locales/vai.js.map +1 -1
  3410. package/locales/ve.d.ts +14 -0
  3411. package/locales/ve.js +17 -0
  3412. package/locales/ve.js.map +1 -0
  3413. package/locales/vec.d.ts +33 -0
  3414. package/locales/vec.js +19 -0
  3415. package/locales/vec.js.map +1 -0
  3416. package/locales/vi.d.ts +1 -1
  3417. package/locales/vi.js +1 -1
  3418. package/locales/vi.js.map +1 -1
  3419. package/locales/vmw.d.ts +13 -0
  3420. package/locales/vmw.js +15 -0
  3421. package/locales/vmw.js.map +1 -0
  3422. package/locales/vo.d.ts +13 -0
  3423. package/locales/vo.js +17 -0
  3424. package/locales/vo.js.map +1 -0
  3425. package/locales/vun.js +1 -1
  3426. package/locales/vun.js.map +1 -1
  3427. package/locales/wa.d.ts +13 -0
  3428. package/locales/wa.js +17 -0
  3429. package/locales/wa.js.map +1 -0
  3430. package/locales/wae.js +1 -1
  3431. package/locales/wae.js.map +1 -1
  3432. package/locales/wal.d.ts +14 -0
  3433. package/locales/wal.js +15 -0
  3434. package/locales/wal.js.map +1 -0
  3435. package/locales/wbp.d.ts +13 -0
  3436. package/locales/wbp.js +15 -0
  3437. package/locales/wbp.js.map +1 -0
  3438. package/locales/wo.d.ts +10 -0
  3439. package/locales/wo.js +1 -1
  3440. package/locales/wo.js.map +1 -1
  3441. package/locales/xh.d.ts +2 -3
  3442. package/locales/xh.js +1 -1
  3443. package/locales/xh.js.map +1 -1
  3444. package/locales/xnr.d.ts +13 -0
  3445. package/locales/xnr.js +15 -0
  3446. package/locales/xnr.js.map +1 -0
  3447. package/locales/xog.js +1 -1
  3448. package/locales/xog.js.map +1 -1
  3449. package/locales/yav.js +1 -1
  3450. package/locales/yav.js.map +1 -1
  3451. package/locales/yi.d.ts +1 -1
  3452. package/locales/yi.js +1 -1
  3453. package/locales/yi.js.map +1 -1
  3454. package/locales/yo-BJ.js +1 -1
  3455. package/locales/yo-BJ.js.map +1 -1
  3456. package/locales/yo.js +1 -1
  3457. package/locales/yo.js.map +1 -1
  3458. package/locales/yrl-CO.js +1 -1
  3459. package/locales/yrl-CO.js.map +1 -1
  3460. package/locales/yrl-VE.js +1 -1
  3461. package/locales/yrl-VE.js.map +1 -1
  3462. package/locales/yrl.js +1 -1
  3463. package/locales/yrl.js.map +1 -1
  3464. package/locales/yue-Hans.d.ts +1 -1
  3465. package/locales/yue-Hans.js +1 -1
  3466. package/locales/yue-Hans.js.map +1 -1
  3467. package/locales/yue-Hant-CN.d.ts +18 -0
  3468. package/locales/yue-Hant-CN.js +15 -0
  3469. package/locales/yue-Hant-CN.js.map +1 -0
  3470. package/locales/yue-Hant-MO.d.ts +18 -0
  3471. package/locales/yue-Hant-MO.js +15 -0
  3472. package/locales/yue-Hant-MO.js.map +1 -0
  3473. package/locales/yue-Hant.js +1 -1
  3474. package/locales/yue-Hant.js.map +1 -1
  3475. package/locales/yue.js +1 -1
  3476. package/locales/yue.js.map +1 -1
  3477. package/locales/za.d.ts +13 -0
  3478. package/locales/za.js +15 -0
  3479. package/locales/za.js.map +1 -0
  3480. package/locales/zgh.js +1 -1
  3481. package/locales/zgh.js.map +1 -1
  3482. package/locales/zh-Hans-HK.d.ts +1 -2
  3483. package/locales/zh-Hans-HK.js +1 -1
  3484. package/locales/zh-Hans-HK.js.map +1 -1
  3485. package/locales/zh-Hans-MO.d.ts +1 -2
  3486. package/locales/zh-Hans-MO.js +1 -1
  3487. package/locales/zh-Hans-MO.js.map +1 -1
  3488. package/locales/zh-Hans-MY.d.ts +21 -0
  3489. package/locales/zh-Hans-MY.js +15 -0
  3490. package/locales/zh-Hans-MY.js.map +1 -0
  3491. package/locales/zh-Hans-SG.d.ts +1 -2
  3492. package/locales/zh-Hans-SG.js +1 -1
  3493. package/locales/zh-Hans-SG.js.map +1 -1
  3494. package/locales/zh-Hans.d.ts +1 -2
  3495. package/locales/zh-Hans.js +1 -1
  3496. package/locales/zh-Hans.js.map +1 -1
  3497. package/locales/zh-Hant-HK.d.ts +1 -1
  3498. package/locales/zh-Hant-HK.js +1 -1
  3499. package/locales/zh-Hant-HK.js.map +1 -1
  3500. package/locales/zh-Hant-MO.d.ts +1 -1
  3501. package/locales/zh-Hant-MO.js +1 -1
  3502. package/locales/zh-Hant-MO.js.map +1 -1
  3503. package/locales/zh-Hant-MY.d.ts +20 -0
  3504. package/locales/zh-Hant-MY.js +15 -0
  3505. package/locales/zh-Hant-MY.js.map +1 -0
  3506. package/locales/zh-Hant.d.ts +1 -1
  3507. package/locales/zh-Hant.js +1 -1
  3508. package/locales/zh-Hant.js.map +1 -1
  3509. package/locales/zh-Latn.d.ts +13 -0
  3510. package/locales/zh-Latn.js +15 -0
  3511. package/locales/zh-Latn.js.map +1 -0
  3512. package/locales/zh.d.ts +1 -2
  3513. package/locales/zh.js +1 -1
  3514. package/locales/zh.js.map +1 -1
  3515. package/locales/zu.d.ts +1 -1
  3516. package/locales/zu.js +1 -1
  3517. package/locales/zu.js.map +1 -1
  3518. package/package.json +9 -9
  3519. package/{common_module.d.d.ts → types/_common_module-chunk.d.ts} +8 -11
  3520. package/{module.d.d.ts → types/_module-chunk.d.ts} +68 -3
  3521. package/{platform_location.d.d.ts → types/_platform_location-chunk.d.ts} +2 -2
  3522. package/{xhr.d.d.ts → types/_xhr-chunk.d.ts} +2 -2
  3523. package/{index.d.ts → types/common.d.ts} +68 -32
  3524. package/{http/testing/index.d.ts → types/http-testing.d.ts} +3 -3
  3525. package/{http/index.d.ts → types/http.d.ts} +145 -7
  3526. package/{testing/index.d.ts → types/testing.d.ts} +89 -63
  3527. package/{upgrade/index.d.ts → types/upgrade.d.ts} +4 -4
  3528. package/fesm2022/common_module.mjs +0 -4659
  3529. package/fesm2022/common_module.mjs.map +0 -1
  3530. package/fesm2022/http/testing.mjs +0 -361
  3531. package/fesm2022/http/testing.mjs.map +0 -1
  3532. package/fesm2022/location.mjs +0 -637
  3533. package/fesm2022/location.mjs.map +0 -1
  3534. package/fesm2022/module.mjs +0 -3189
  3535. package/fesm2022/module.mjs.map +0 -1
  3536. package/fesm2022/platform_navigation.mjs +0 -24
  3537. package/fesm2022/platform_navigation.mjs.map +0 -1
  3538. package/fesm2022/xhr.mjs +0 -28
  3539. package/fesm2022/xhr.mjs.map +0 -1
@@ -1,4659 +0,0 @@
1
- /**
2
- * @license Angular v21.0.0-next.0
3
- * (c) 2010-2025 Google LLC. https://angular.io/
4
- * License: MIT
5
- */
6
-
7
- import * as i0 from '@angular/core';
8
- import { Injectable, Optional, Inject, ɵfindLocaleData as _findLocaleData, ɵLocaleDataIndex as _LocaleDataIndex, ɵgetLocaleCurrencyCode as _getLocaleCurrencyCode, ɵgetLocalePluralCase as _getLocalePluralCase, ɵRuntimeError as _RuntimeError, ɵformatRuntimeError as _formatRuntimeError, LOCALE_ID, ɵstringify as _stringify, Directive, Input, createNgModule, NgModuleRef, Host, Attribute, RendererStyleFlags2, inject, ɵINTERNAL_APPLICATION_ERROR_HANDLER as _INTERNAL_APPLICATION_ERROR_HANDLER, ɵisPromise as _isPromise, ɵisSubscribable as _isSubscribable, Pipe, untracked, InjectionToken, DEFAULT_CURRENCY_CODE, NgModule } from '@angular/core';
9
- import { LocationStrategy, joinWithSlash, normalizeQueryParams, PlatformLocation, APP_BASE_HREF } from './location.mjs';
10
-
11
- /**
12
- * @description
13
- * A {@link LocationStrategy} used to configure the {@link Location} service to
14
- * represent its state in the
15
- * [hash fragment](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax)
16
- * of the browser's URL.
17
- *
18
- * For instance, if you call `location.go('/foo')`, the browser's URL will become
19
- * `example.com#/foo`.
20
- *
21
- * @usageNotes
22
- *
23
- * ### Example
24
- *
25
- * {@example common/location/ts/hash_location_component.ts region='LocationComponent'}
26
- *
27
- * @publicApi
28
- */
29
- class HashLocationStrategy extends LocationStrategy {
30
- _platformLocation;
31
- _baseHref = '';
32
- _removeListenerFns = [];
33
- constructor(_platformLocation, _baseHref) {
34
- super();
35
- this._platformLocation = _platformLocation;
36
- if (_baseHref != null) {
37
- this._baseHref = _baseHref;
38
- }
39
- }
40
- /** @docs-private */
41
- ngOnDestroy() {
42
- while (this._removeListenerFns.length) {
43
- this._removeListenerFns.pop()();
44
- }
45
- }
46
- onPopState(fn) {
47
- this._removeListenerFns.push(this._platformLocation.onPopState(fn), this._platformLocation.onHashChange(fn));
48
- }
49
- getBaseHref() {
50
- return this._baseHref;
51
- }
52
- path(includeHash = false) {
53
- // the hash value is always prefixed with a `#`
54
- // and if it is empty then it will stay empty
55
- const path = this._platformLocation.hash ?? '#';
56
- return path.length > 0 ? path.substring(1) : path;
57
- }
58
- prepareExternalUrl(internal) {
59
- const url = joinWithSlash(this._baseHref, internal);
60
- return url.length > 0 ? '#' + url : url;
61
- }
62
- pushState(state, title, path, queryParams) {
63
- const url = this.prepareExternalUrl(path + normalizeQueryParams(queryParams)) ||
64
- this._platformLocation.pathname;
65
- this._platformLocation.pushState(state, title, url);
66
- }
67
- replaceState(state, title, path, queryParams) {
68
- const url = this.prepareExternalUrl(path + normalizeQueryParams(queryParams)) ||
69
- this._platformLocation.pathname;
70
- this._platformLocation.replaceState(state, title, url);
71
- }
72
- forward() {
73
- this._platformLocation.forward();
74
- }
75
- back() {
76
- this._platformLocation.back();
77
- }
78
- getState() {
79
- return this._platformLocation.getState();
80
- }
81
- historyGo(relativePosition = 0) {
82
- this._platformLocation.historyGo?.(relativePosition);
83
- }
84
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: HashLocationStrategy, deps: [{ token: PlatformLocation }, { token: APP_BASE_HREF, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
85
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: HashLocationStrategy });
86
- }
87
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: HashLocationStrategy, decorators: [{
88
- type: Injectable
89
- }], ctorParameters: () => [{ type: PlatformLocation }, { type: undefined, decorators: [{
90
- type: Optional
91
- }, {
92
- type: Inject,
93
- args: [APP_BASE_HREF]
94
- }] }] });
95
-
96
- /** @internal */
97
- const CURRENCIES_EN = { "ADP": [undefined, undefined, 0], "AFN": [undefined, "؋", 0], "ALL": [undefined, undefined, 0], "AMD": [undefined, "֏", 2], "AOA": [undefined, "Kz"], "ARS": [undefined, "$"], "AUD": ["A$", "$"], "AZN": [undefined, "₼"], "BAM": [undefined, "KM"], "BBD": [undefined, "$"], "BDT": [undefined, "৳"], "BHD": [undefined, undefined, 3], "BIF": [undefined, undefined, 0], "BMD": [undefined, "$"], "BND": [undefined, "$"], "BOB": [undefined, "Bs"], "BRL": ["R$"], "BSD": [undefined, "$"], "BWP": [undefined, "P"], "BYN": [undefined, undefined, 2], "BYR": [undefined, undefined, 0], "BZD": [undefined, "$"], "CAD": ["CA$", "$", 2], "CHF": [undefined, undefined, 2], "CLF": [undefined, undefined, 4], "CLP": [undefined, "$", 0], "CNY": ["CN¥", "¥"], "COP": [undefined, "$", 2], "CRC": [undefined, "₡", 2], "CUC": [undefined, "$"], "CUP": [undefined, "$"], "CZK": [undefined, "Kč", 2], "DJF": [undefined, undefined, 0], "DKK": [undefined, "kr", 2], "DOP": [undefined, "$"], "EGP": [undefined, "E£"], "ESP": [undefined, "₧", 0], "EUR": ["€"], "FJD": [undefined, "$"], "FKP": [undefined, "£"], "GBP": ["£"], "GEL": [undefined, "₾"], "GHS": [undefined, "GH₵"], "GIP": [undefined, "£"], "GNF": [undefined, "FG", 0], "GTQ": [undefined, "Q"], "GYD": [undefined, "$", 2], "HKD": ["HK$", "$"], "HNL": [undefined, "L"], "HRK": [undefined, "kn"], "HUF": [undefined, "Ft", 2], "IDR": [undefined, "Rp", 2], "ILS": ["₪"], "INR": ["₹"], "IQD": [undefined, undefined, 0], "IRR": [undefined, undefined, 0], "ISK": [undefined, "kr", 0], "ITL": [undefined, undefined, 0], "JMD": [undefined, "$"], "JOD": [undefined, undefined, 3], "JPY": ["¥", undefined, 0], "KHR": [undefined, "៛"], "KMF": [undefined, "CF", 0], "KPW": [undefined, "₩", 0], "KRW": ["₩", undefined, 0], "KWD": [undefined, undefined, 3], "KYD": [undefined, "$"], "KZT": [undefined, "₸"], "LAK": [undefined, "₭", 0], "LBP": [undefined, "L£", 0], "LKR": [undefined, "Rs"], "LRD": [undefined, "$"], "LTL": [undefined, "Lt"], "LUF": [undefined, undefined, 0], "LVL": [undefined, "Ls"], "LYD": [undefined, undefined, 3], "MGA": [undefined, "Ar", 0], "MGF": [undefined, undefined, 0], "MMK": [undefined, "K", 0], "MNT": [undefined, "₮", 2], "MRO": [undefined, undefined, 0], "MUR": [undefined, "Rs", 2], "MXN": ["MX$", "$"], "MYR": [undefined, "RM"], "NAD": [undefined, "$"], "NGN": [undefined, "₦"], "NIO": [undefined, "C$"], "NOK": [undefined, "kr", 2], "NPR": [undefined, "Rs"], "NZD": ["NZ$", "$"], "OMR": [undefined, undefined, 3], "PHP": ["₱"], "PKR": [undefined, "Rs", 2], "PLN": [undefined, "zł"], "PYG": [undefined, "₲", 0], "RON": [undefined, "lei"], "RSD": [undefined, undefined, 0], "RUB": [undefined, "₽"], "RWF": [undefined, "RF", 0], "SBD": [undefined, "$"], "SEK": [undefined, "kr", 2], "SGD": [undefined, "$"], "SHP": [undefined, "£"], "SLE": [undefined, undefined, 2], "SLL": [undefined, undefined, 0], "SOS": [undefined, undefined, 0], "SRD": [undefined, "$"], "SSP": [undefined, "£"], "STD": [undefined, undefined, 0], "STN": [undefined, "Db"], "SYP": [undefined, "£", 0], "THB": [undefined, "฿"], "TMM": [undefined, undefined, 0], "TND": [undefined, undefined, 3], "TOP": [undefined, "T$"], "TRL": [undefined, undefined, 0], "TRY": [undefined, "₺"], "TTD": [undefined, "$"], "TWD": ["NT$", "$", 2], "TZS": [undefined, undefined, 2], "UAH": [undefined, "₴"], "UGX": [undefined, undefined, 0], "USD": ["$"], "UYI": [undefined, undefined, 0], "UYU": [undefined, "$"], "UYW": [undefined, undefined, 4], "UZS": [undefined, undefined, 2], "VEF": [undefined, "Bs", 2], "VND": ["₫", undefined, 0], "VUV": [undefined, undefined, 0], "XAF": ["FCFA", undefined, 0], "XCD": ["EC$", "$"], "XOF": ["F CFA", undefined, 0], "XPF": ["CFPF", undefined, 0], "XXX": ["¤"], "YER": [undefined, undefined, 0], "ZAR": [undefined, "R"], "ZMK": [undefined, undefined, 0], "ZMW": [undefined, "ZK"], "ZWD": [undefined, undefined, 0] };
98
-
99
- /**
100
- * Format styles that can be used to represent numbers.
101
- * @see {@link getLocaleNumberFormat}
102
- * @see [Internationalization (i18n) Guide](guide/i18n)
103
- *
104
- * @publicApi
105
- *
106
- * @deprecated `getLocaleNumberFormat` is deprecated
107
- */
108
- var NumberFormatStyle;
109
- (function (NumberFormatStyle) {
110
- NumberFormatStyle[NumberFormatStyle["Decimal"] = 0] = "Decimal";
111
- NumberFormatStyle[NumberFormatStyle["Percent"] = 1] = "Percent";
112
- NumberFormatStyle[NumberFormatStyle["Currency"] = 2] = "Currency";
113
- NumberFormatStyle[NumberFormatStyle["Scientific"] = 3] = "Scientific";
114
- })(NumberFormatStyle || (NumberFormatStyle = {}));
115
- /**
116
- * Plurality cases used for translating plurals to different languages.
117
- *
118
- * @see {@link NgPlural}
119
- * @see {@link NgPluralCase}
120
- * @see [Internationalization (i18n) Guide](guide/i18n)
121
- *
122
- * @publicApi
123
- *
124
- * @deprecated `getLocalePluralCase` is deprecated
125
- */
126
- var Plural;
127
- (function (Plural) {
128
- Plural[Plural["Zero"] = 0] = "Zero";
129
- Plural[Plural["One"] = 1] = "One";
130
- Plural[Plural["Two"] = 2] = "Two";
131
- Plural[Plural["Few"] = 3] = "Few";
132
- Plural[Plural["Many"] = 4] = "Many";
133
- Plural[Plural["Other"] = 5] = "Other";
134
- })(Plural || (Plural = {}));
135
- /**
136
- * Context-dependant translation forms for strings.
137
- * Typically the standalone version is for the nominative form of the word,
138
- * and the format version is used for the genitive case.
139
- * @see [CLDR website](http://cldr.unicode.org/translation/date-time-1/date-time#TOC-Standalone-vs.-Format-Styles)
140
- * @see [Internationalization (i18n) Guide](guide/i18n)
141
- *
142
- * @publicApi
143
- *
144
- * @deprecated locale data getters are deprecated
145
- */
146
- var FormStyle;
147
- (function (FormStyle) {
148
- FormStyle[FormStyle["Format"] = 0] = "Format";
149
- FormStyle[FormStyle["Standalone"] = 1] = "Standalone";
150
- })(FormStyle || (FormStyle = {}));
151
- /**
152
- * String widths available for translations.
153
- * The specific character widths are locale-specific.
154
- * Examples are given for the word "Sunday" in English.
155
- *
156
- * @publicApi
157
- *
158
- * @deprecated locale data getters are deprecated
159
- */
160
- var TranslationWidth;
161
- (function (TranslationWidth) {
162
- /** 1 character for `en-US`. For example: 'S' */
163
- TranslationWidth[TranslationWidth["Narrow"] = 0] = "Narrow";
164
- /** 3 characters for `en-US`. For example: 'Sun' */
165
- TranslationWidth[TranslationWidth["Abbreviated"] = 1] = "Abbreviated";
166
- /** Full length for `en-US`. For example: "Sunday" */
167
- TranslationWidth[TranslationWidth["Wide"] = 2] = "Wide";
168
- /** 2 characters for `en-US`, For example: "Su" */
169
- TranslationWidth[TranslationWidth["Short"] = 3] = "Short";
170
- })(TranslationWidth || (TranslationWidth = {}));
171
- /**
172
- * String widths available for date-time formats.
173
- * The specific character widths are locale-specific.
174
- * Examples are given for `en-US`.
175
- *
176
- * @see {@link getLocaleDateFormat}
177
- * @see {@link getLocaleTimeFormat}
178
- * @see {@link getLocaleDateTimeFormat}
179
- * @see [Internationalization (i18n) Guide](guide/i18n)
180
- * @publicApi
181
- *
182
- * @deprecated 18.0
183
- * Date locale data getters are deprecated
184
- */
185
- var FormatWidth;
186
- (function (FormatWidth) {
187
- /**
188
- * For `en-US`, `'M/d/yy, h:mm a'`
189
- * (Example: `6/15/15, 9:03 AM`)
190
- */
191
- FormatWidth[FormatWidth["Short"] = 0] = "Short";
192
- /**
193
- * For `en-US`, `'MMM d, y, h:mm:ss a'`
194
- * (Example: `Jun 15, 2015, 9:03:01 AM`)
195
- */
196
- FormatWidth[FormatWidth["Medium"] = 1] = "Medium";
197
- /**
198
- * For `en-US`, `'MMMM d, y, h:mm:ss a z'`
199
- * (Example: `June 15, 2015 at 9:03:01 AM GMT+1`)
200
- */
201
- FormatWidth[FormatWidth["Long"] = 2] = "Long";
202
- /**
203
- * For `en-US`, `'EEEE, MMMM d, y, h:mm:ss a zzzz'`
204
- * (Example: `Monday, June 15, 2015 at 9:03:01 AM GMT+01:00`)
205
- */
206
- FormatWidth[FormatWidth["Full"] = 3] = "Full";
207
- })(FormatWidth || (FormatWidth = {}));
208
- // This needs to be an object literal, rather than an enum, because TypeScript 5.4+
209
- // doesn't allow numeric keys and we have `Infinity` and `NaN`.
210
- /**
211
- * Symbols that can be used to replace placeholders in number patterns.
212
- * Examples are based on `en-US` values.
213
- *
214
- * @see {@link getLocaleNumberSymbol}
215
- * @see [Internationalization (i18n) Guide](guide/i18n)
216
- *
217
- * @publicApi
218
- *
219
- * @deprecated `getLocaleNumberSymbol` is deprecated
220
- *
221
- * @object-literal-as-enum
222
- */
223
- const NumberSymbol = {
224
- /**
225
- * Decimal separator.
226
- * For `en-US`, the dot character.
227
- * Example: 2,345`.`67
228
- */
229
- Decimal: 0,
230
- /**
231
- * Grouping separator, typically for thousands.
232
- * For `en-US`, the comma character.
233
- * Example: 2`,`345.67
234
- */
235
- Group: 1,
236
- /**
237
- * List-item separator.
238
- * Example: "one, two, and three"
239
- */
240
- List: 2,
241
- /**
242
- * Sign for percentage (out of 100).
243
- * Example: 23.4%
244
- */
245
- PercentSign: 3,
246
- /**
247
- * Sign for positive numbers.
248
- * Example: +23
249
- */
250
- PlusSign: 4,
251
- /**
252
- * Sign for negative numbers.
253
- * Example: -23
254
- */
255
- MinusSign: 5,
256
- /**
257
- * Computer notation for exponential value (n times a power of 10).
258
- * Example: 1.2E3
259
- */
260
- Exponential: 6,
261
- /**
262
- * Human-readable format of exponential.
263
- * Example: 1.2x103
264
- */
265
- SuperscriptingExponent: 7,
266
- /**
267
- * Sign for permille (out of 1000).
268
- * Example: 23.4‰
269
- */
270
- PerMille: 8,
271
- /**
272
- * Infinity, can be used with plus and minus.
273
- * Example: ∞, +∞, -∞
274
- */
275
- Infinity: 9,
276
- /**
277
- * Not a number.
278
- * Example: NaN
279
- */
280
- NaN: 10,
281
- /**
282
- * Symbol used between time units.
283
- * Example: 10:52
284
- */
285
- TimeSeparator: 11,
286
- /**
287
- * Decimal separator for currency values (fallback to `Decimal`).
288
- * Example: $2,345.67
289
- */
290
- CurrencyDecimal: 12,
291
- /**
292
- * Group separator for currency values (fallback to `Group`).
293
- * Example: $2,345.67
294
- */
295
- CurrencyGroup: 13,
296
- };
297
- /**
298
- * The value for each day of the week, based on the `en-US` locale
299
- *
300
- * @publicApi
301
- *
302
- * @deprecated Week locale getters are deprecated
303
- */
304
- var WeekDay;
305
- (function (WeekDay) {
306
- WeekDay[WeekDay["Sunday"] = 0] = "Sunday";
307
- WeekDay[WeekDay["Monday"] = 1] = "Monday";
308
- WeekDay[WeekDay["Tuesday"] = 2] = "Tuesday";
309
- WeekDay[WeekDay["Wednesday"] = 3] = "Wednesday";
310
- WeekDay[WeekDay["Thursday"] = 4] = "Thursday";
311
- WeekDay[WeekDay["Friday"] = 5] = "Friday";
312
- WeekDay[WeekDay["Saturday"] = 6] = "Saturday";
313
- })(WeekDay || (WeekDay = {}));
314
- /**
315
- * Retrieves the locale ID from the currently loaded locale.
316
- * The loaded locale could be, for example, a global one rather than a regional one.
317
- * @param locale A locale code, such as `fr-FR`.
318
- * @returns The locale code. For example, `fr`.
319
- * @see [Internationalization (i18n) Guide](guide/i18n)
320
- *
321
- * @publicApi
322
- *
323
- * @deprecated Angular recommends relying on the `Intl` API for i18n.
324
- * This function serves no purpose when relying on the `Intl` API.
325
- */
326
- function getLocaleId(locale) {
327
- return _findLocaleData(locale)[_LocaleDataIndex.LocaleId];
328
- }
329
- /**
330
- * Retrieves day period strings for the given locale.
331
- *
332
- * @param locale A locale code for the locale format rules to use.
333
- * @param formStyle The required grammatical form.
334
- * @param width The required character width.
335
- * @returns An array of localized period strings. For example, `[AM, PM]` for `en-US`.
336
- * @see [Internationalization (i18n) Guide](guide/i18n)
337
- *
338
- * @publicApi
339
- *
340
- * @deprecated Angular recommends relying on the `Intl` API for i18n.
341
- * Use `Intl.DateTimeFormat` for date formating instead.
342
- */
343
- function getLocaleDayPeriods(locale, formStyle, width) {
344
- const data = _findLocaleData(locale);
345
- const amPmData = [
346
- data[_LocaleDataIndex.DayPeriodsFormat],
347
- data[_LocaleDataIndex.DayPeriodsStandalone],
348
- ];
349
- const amPm = getLastDefinedValue(amPmData, formStyle);
350
- return getLastDefinedValue(amPm, width);
351
- }
352
- /**
353
- * Retrieves days of the week for the given locale, using the Gregorian calendar.
354
- *
355
- * @param locale A locale code for the locale format rules to use.
356
- * @param formStyle The required grammatical form.
357
- * @param width The required character width.
358
- * @returns An array of localized name strings.
359
- * For example,`[Sunday, Monday, ... Saturday]` for `en-US`.
360
- * @see [Internationalization (i18n) Guide](guide/i18n)
361
- *
362
- * @publicApi
363
- *
364
- * @deprecated Angular recommends relying on the `Intl` API for i18n.
365
- * Use `Intl.DateTimeFormat` for date formating instead.
366
- */
367
- function getLocaleDayNames(locale, formStyle, width) {
368
- const data = _findLocaleData(locale);
369
- const daysData = [
370
- data[_LocaleDataIndex.DaysFormat],
371
- data[_LocaleDataIndex.DaysStandalone],
372
- ];
373
- const days = getLastDefinedValue(daysData, formStyle);
374
- return getLastDefinedValue(days, width);
375
- }
376
- /**
377
- * Retrieves months of the year for the given locale, using the Gregorian calendar.
378
- *
379
- * @param locale A locale code for the locale format rules to use.
380
- * @param formStyle The required grammatical form.
381
- * @param width The required character width.
382
- * @returns An array of localized name strings.
383
- * For example, `[January, February, ...]` for `en-US`.
384
- * @see [Internationalization (i18n) Guide](guide/i18n)
385
- *
386
- * @publicApi
387
- *
388
- * @deprecated Angular recommends relying on the `Intl` API for i18n.
389
- * Use `Intl.DateTimeFormat` for date formating instead.
390
- */
391
- function getLocaleMonthNames(locale, formStyle, width) {
392
- const data = _findLocaleData(locale);
393
- const monthsData = [
394
- data[_LocaleDataIndex.MonthsFormat],
395
- data[_LocaleDataIndex.MonthsStandalone],
396
- ];
397
- const months = getLastDefinedValue(monthsData, formStyle);
398
- return getLastDefinedValue(months, width);
399
- }
400
- /**
401
- * Retrieves Gregorian-calendar eras for the given locale.
402
- * @param locale A locale code for the locale format rules to use.
403
- * @param width The required character width.
404
-
405
- * @returns An array of localized era strings.
406
- * For example, `[AD, BC]` for `en-US`.
407
- * @see [Internationalization (i18n) Guide](guide/i18n)
408
- *
409
- * @publicApi
410
- *
411
- * @deprecated Angular recommends relying on the `Intl` API for i18n.
412
- * Use `Intl.DateTimeFormat` for date formating instead.
413
- */
414
- function getLocaleEraNames(locale, width) {
415
- const data = _findLocaleData(locale);
416
- const erasData = data[_LocaleDataIndex.Eras];
417
- return getLastDefinedValue(erasData, width);
418
- }
419
- /**
420
- * Retrieves the first day of the week for the given locale.
421
- *
422
- * @param locale A locale code for the locale format rules to use.
423
- * @returns A day index number, using the 0-based week-day index for `en-US`
424
- * (Sunday = 0, Monday = 1, ...).
425
- * For example, for `fr-FR`, returns 1 to indicate that the first day is Monday.
426
- * @see [Internationalization (i18n) Guide](guide/i18n)
427
- *
428
- * @publicApi
429
- *
430
- * @deprecated Angular recommends relying on the `Intl` API for i18n.
431
- * Intl's [`getWeekInfo`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo) has partial support (Chromium M99 & Safari 17).
432
- * You may want to rely on the following alternatives:
433
- * - Libraries like [`Luxon`](https://moment.github.io/luxon/#/) rely on `Intl` but fallback on the ISO 8601 definition (monday) if `getWeekInfo` is not supported.
434
- * - Other librairies like [`date-fns`](https://date-fns.org/), [`day.js`](https://day.js.org/en/) or [`weekstart`](https://www.npmjs.com/package/weekstart) library provide their own locale based data for the first day of the week.
435
- */
436
- function getLocaleFirstDayOfWeek(locale) {
437
- const data = _findLocaleData(locale);
438
- return data[_LocaleDataIndex.FirstDayOfWeek];
439
- }
440
- /**
441
- * Range of week days that are considered the week-end for the given locale.
442
- *
443
- * @param locale A locale code for the locale format rules to use.
444
- * @returns The range of day values, `[startDay, endDay]`.
445
- * @see [Internationalization (i18n) Guide](guide/i18n)
446
- *
447
- * @publicApi
448
- *
449
- * @deprecated Angular recommends relying on the `Intl` API for i18n.
450
- * Intl's [`getWeekInfo`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo) has partial support (Chromium M99 & Safari 17).
451
- * Libraries like [`Luxon`](https://moment.github.io/luxon/#/) rely on `Intl` but fallback on the ISO 8601 definition (Saturday+Sunday) if `getWeekInfo` is not supported .
452
- */
453
- function getLocaleWeekEndRange(locale) {
454
- const data = _findLocaleData(locale);
455
- return data[_LocaleDataIndex.WeekendRange];
456
- }
457
- /**
458
- * Retrieves a localized date-value formatting string.
459
- *
460
- * @param locale A locale code for the locale format rules to use.
461
- * @param width The format type.
462
- * @returns The localized formatting string.
463
- * @see {@link FormatWidth}
464
- * @see [Internationalization (i18n) Guide](guide/i18n)
465
- *
466
- * @publicApi
467
- *
468
- * @deprecated Angular recommends relying on the `Intl` API for i18n.
469
- * Use `Intl.DateTimeFormat` for date formating instead.
470
- */
471
- function getLocaleDateFormat(locale, width) {
472
- const data = _findLocaleData(locale);
473
- return getLastDefinedValue(data[_LocaleDataIndex.DateFormat], width);
474
- }
475
- /**
476
- * Retrieves a localized time-value formatting string.
477
- *
478
- * @param locale A locale code for the locale format rules to use.
479
- * @param width The format type.
480
- * @returns The localized formatting string.
481
- * @see {@link FormatWidth}
482
- * @see [Internationalization (i18n) Guide](guide/i18n)
483
-
484
- * @publicApi
485
- * @deprecated Angular recommends relying on the `Intl` API for i18n.
486
- * Use `Intl.DateTimeFormat` for date formating instead.
487
- */
488
- function getLocaleTimeFormat(locale, width) {
489
- const data = _findLocaleData(locale);
490
- return getLastDefinedValue(data[_LocaleDataIndex.TimeFormat], width);
491
- }
492
- /**
493
- * Retrieves a localized date-time formatting string.
494
- *
495
- * @param locale A locale code for the locale format rules to use.
496
- * @param width The format type.
497
- * @returns The localized formatting string.
498
- * @see {@link FormatWidth}
499
- * @see [Internationalization (i18n) Guide](guide/i18n)
500
- *
501
- * @publicApi
502
- *
503
- * @deprecated Angular recommends relying on the `Intl` API for i18n.
504
- * Use `Intl.DateTimeFormat` for date formating instead.
505
- */
506
- function getLocaleDateTimeFormat(locale, width) {
507
- const data = _findLocaleData(locale);
508
- const dateTimeFormatData = data[_LocaleDataIndex.DateTimeFormat];
509
- return getLastDefinedValue(dateTimeFormatData, width);
510
- }
511
- /**
512
- * Retrieves a localized number symbol that can be used to replace placeholders in number formats.
513
- * @param locale The locale code.
514
- * @param symbol The symbol to localize. Must be one of `NumberSymbol`.
515
- * @returns The character for the localized symbol.
516
- * @see {@link NumberSymbol}
517
- * @see [Internationalization (i18n) Guide](guide/i18n)
518
- *
519
- * @publicApi
520
- *
521
- * @deprecated Angular recommends relying on the `Intl` API for i18n.
522
- * Use `Intl.NumberFormat` to format numbers instead.
523
- */
524
- function getLocaleNumberSymbol(locale, symbol) {
525
- const data = _findLocaleData(locale);
526
- const res = data[_LocaleDataIndex.NumberSymbols][symbol];
527
- if (typeof res === 'undefined') {
528
- if (symbol === NumberSymbol.CurrencyDecimal) {
529
- return data[_LocaleDataIndex.NumberSymbols][NumberSymbol.Decimal];
530
- }
531
- else if (symbol === NumberSymbol.CurrencyGroup) {
532
- return data[_LocaleDataIndex.NumberSymbols][NumberSymbol.Group];
533
- }
534
- }
535
- return res;
536
- }
537
- /**
538
- * Retrieves a number format for a given locale.
539
- *
540
- * Numbers are formatted using patterns, like `#,###.00`. For example, the pattern `#,###.00`
541
- * when used to format the number 12345.678 could result in "12'345,678". That would happen if the
542
- * grouping separator for your language is an apostrophe, and the decimal separator is a comma.
543
- *
544
- * <b>Important:</b> The characters `.` `,` `0` `#` (and others below) are special placeholders
545
- * that stand for the decimal separator, and so on, and are NOT real characters.
546
- * You must NOT "translate" the placeholders. For example, don't change `.` to `,` even though in
547
- * your language the decimal point is written with a comma. The symbols should be replaced by the
548
- * local equivalents, using the appropriate `NumberSymbol` for your language.
549
- *
550
- * Here are the special characters used in number patterns:
551
- *
552
- * | Symbol | Meaning |
553
- * |--------|---------|
554
- * | . | Replaced automatically by the character used for the decimal point. |
555
- * | , | Replaced by the "grouping" (thousands) separator. |
556
- * | 0 | Replaced by a digit (or zero if there aren't enough digits). |
557
- * | # | Replaced by a digit (or nothing if there aren't enough). |
558
- * | ¤ | Replaced by a currency symbol, such as $ or USD. |
559
- * | % | Marks a percent format. The % symbol may change position, but must be retained. |
560
- * | E | Marks a scientific format. The E symbol may change position, but must be retained. |
561
- * | ' | Special characters used as literal characters are quoted with ASCII single quotes. |
562
- *
563
- * @param locale A locale code for the locale format rules to use.
564
- * @param type The type of numeric value to be formatted (such as `Decimal` or `Currency`.)
565
- * @returns The localized format string.
566
- * @see {@link NumberFormatStyle}
567
- * @see [CLDR website](http://cldr.unicode.org/translation/number-patterns)
568
- * @see [Internationalization (i18n) Guide](guide/i18n)
569
- *
570
- * @publicApi
571
- *
572
- * @deprecated Angular recommends relying on the `Intl` API for i18n.
573
- * Let `Intl.NumberFormat` determine the number format instead
574
- */
575
- function getLocaleNumberFormat(locale, type) {
576
- const data = _findLocaleData(locale);
577
- return data[_LocaleDataIndex.NumberFormats][type];
578
- }
579
- /**
580
- * Retrieves the symbol used to represent the currency for the main country
581
- * corresponding to a given locale. For example, '$' for `en-US`.
582
- *
583
- * @param locale A locale code for the locale format rules to use.
584
- * @returns The localized symbol character,
585
- * or `null` if the main country cannot be determined.
586
- * @see [Internationalization (i18n) Guide](guide/i18n)
587
- *
588
- * @publicApi
589
- *
590
- * @deprecated Use the `Intl` API to format a currency with from currency code
591
- */
592
- function getLocaleCurrencySymbol(locale) {
593
- const data = _findLocaleData(locale);
594
- return data[_LocaleDataIndex.CurrencySymbol] || null;
595
- }
596
- /**
597
- * Retrieves the name of the currency for the main country corresponding
598
- * to a given locale. For example, 'US Dollar' for `en-US`.
599
- * @param locale A locale code for the locale format rules to use.
600
- * @returns The currency name,
601
- * or `null` if the main country cannot be determined.
602
- * @see [Internationalization (i18n) Guide](guide/i18n)
603
- *
604
- * @publicApi
605
- *
606
- * @deprecated Use the `Intl` API to format a currency with from currency code
607
- */
608
- function getLocaleCurrencyName(locale) {
609
- const data = _findLocaleData(locale);
610
- return data[_LocaleDataIndex.CurrencyName] || null;
611
- }
612
- /**
613
- * Retrieves the default currency code for the given locale.
614
- *
615
- * The default is defined as the first currency which is still in use.
616
- *
617
- * @param locale The code of the locale whose currency code we want.
618
- * @returns The code of the default currency for the given locale.
619
- *
620
- * @publicApi
621
- *
622
- * @deprecated We recommend you create a map of locale to ISO 4217 currency codes.
623
- * Time relative currency data is provided by the CLDR project. See https://www.unicode.org/cldr/charts/44/supplemental/detailed_territory_currency_information.html
624
- */
625
- function getLocaleCurrencyCode(locale) {
626
- return _getLocaleCurrencyCode(locale);
627
- }
628
- /**
629
- * Retrieves the currency values for a given locale.
630
- * @param locale A locale code for the locale format rules to use.
631
- * @returns The currency values.
632
- * @see [Internationalization (i18n) Guide](guide/i18n)
633
- */
634
- function getLocaleCurrencies(locale) {
635
- const data = _findLocaleData(locale);
636
- return data[_LocaleDataIndex.Currencies];
637
- }
638
- /**
639
- * @publicApi
640
- *
641
- * @deprecated Angular recommends relying on the `Intl` API for i18n.
642
- * Use `Intl.PluralRules` instead
643
- */
644
- const getLocalePluralCase = _getLocalePluralCase;
645
- function checkFullData(data) {
646
- if (!data[_LocaleDataIndex.ExtraData]) {
647
- throw new _RuntimeError(2303 /* RuntimeErrorCode.MISSING_EXTRA_LOCALE_DATA_FOR_LOCALE */, ngDevMode &&
648
- `Missing extra locale data for the locale "${data[_LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`);
649
- }
650
- }
651
- /**
652
- * Retrieves locale-specific rules used to determine which day period to use
653
- * when more than one period is defined for a locale.
654
- *
655
- * There is a rule for each defined day period. The
656
- * first rule is applied to the first day period and so on.
657
- * Fall back to AM/PM when no rules are available.
658
- *
659
- * A rule can specify a period as time range, or as a single time value.
660
- *
661
- * This functionality is only available when you have loaded the full locale data.
662
- * See the ["I18n guide"](guide/i18n/format-data-locale).
663
- *
664
- * @param locale A locale code for the locale format rules to use.
665
- * @returns The rules for the locale, a single time value or array of *from-time, to-time*,
666
- * or null if no periods are available.
667
- *
668
- * @see {@link getLocaleExtraDayPeriods}
669
- * @see [Internationalization (i18n) Guide](guide/i18n)
670
- *
671
- * @publicApi
672
- *
673
- * @deprecated Angular recommends relying on the `Intl` API for i18n.
674
- * Let `Intl.DateTimeFormat` determine the day period instead.
675
- */
676
- function getLocaleExtraDayPeriodRules(locale) {
677
- const data = _findLocaleData(locale);
678
- checkFullData(data);
679
- const rules = data[_LocaleDataIndex.ExtraData][2 /* ɵExtraLocaleDataIndex.ExtraDayPeriodsRules */] || [];
680
- return rules.map((rule) => {
681
- if (typeof rule === 'string') {
682
- return extractTime(rule);
683
- }
684
- return [extractTime(rule[0]), extractTime(rule[1])];
685
- });
686
- }
687
- /**
688
- * Retrieves locale-specific day periods, which indicate roughly how a day is broken up
689
- * in different languages.
690
- * For example, for `en-US`, periods are morning, noon, afternoon, evening, and midnight.
691
- *
692
- * This functionality is only available when you have loaded the full locale data.
693
- * See the ["I18n guide"](guide/i18n/format-data-locale).
694
- *
695
- * @param locale A locale code for the locale format rules to use.
696
- * @param formStyle The required grammatical form.
697
- * @param width The required character width.
698
- * @returns The translated day-period strings.
699
- * @see {@link getLocaleExtraDayPeriodRules}
700
- * @see [Internationalization (i18n) Guide](guide/i18n)
701
- *
702
- * @publicApi
703
- *
704
- * @deprecated Angular recommends relying on the `Intl` API for i18n.
705
- * To extract a day period use `Intl.DateTimeFormat` with the `dayPeriod` option instead.
706
- */
707
- function getLocaleExtraDayPeriods(locale, formStyle, width) {
708
- const data = _findLocaleData(locale);
709
- checkFullData(data);
710
- const dayPeriodsData = [
711
- data[_LocaleDataIndex.ExtraData][0 /* ɵExtraLocaleDataIndex.ExtraDayPeriodFormats */],
712
- data[_LocaleDataIndex.ExtraData][1 /* ɵExtraLocaleDataIndex.ExtraDayPeriodStandalone */],
713
- ];
714
- const dayPeriods = getLastDefinedValue(dayPeriodsData, formStyle) || [];
715
- return getLastDefinedValue(dayPeriods, width) || [];
716
- }
717
- /**
718
- * Retrieves the writing direction of a specified locale
719
- * @param locale A locale code for the locale format rules to use.
720
- * @publicApi
721
- * @returns 'rtl' or 'ltr'
722
- * @see [Internationalization (i18n) Guide](guide/i18n)
723
- *
724
- * @deprecated Angular recommends relying on the `Intl` API for i18n.
725
- * For dates and numbers, let `Intl.DateTimeFormat()` and `Intl.NumberFormat()` determine the writing direction.
726
- * The `Intl` alternative [`getTextInfo`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo).
727
- * has only partial support (Chromium M99 & Safari 17).
728
- * 3rd party alternatives like [`rtl-detect`](https://www.npmjs.com/package/rtl-detect) can work around this issue.
729
- */
730
- function getLocaleDirection(locale) {
731
- const data = _findLocaleData(locale);
732
- return data[_LocaleDataIndex.Directionality];
733
- }
734
- /**
735
- * Retrieves the first value that is defined in an array, going backwards from an index position.
736
- *
737
- * To avoid repeating the same data (as when the "format" and "standalone" forms are the same)
738
- * add the first value to the locale data arrays, and add other values only if they are different.
739
- *
740
- * @param data The data array to retrieve from.
741
- * @param index A 0-based index into the array to start from.
742
- * @returns The value immediately before the given index position.
743
- * @see [Internationalization (i18n) Guide](guide/i18n)
744
- *
745
- */
746
- function getLastDefinedValue(data, index) {
747
- for (let i = index; i > -1; i--) {
748
- if (typeof data[i] !== 'undefined') {
749
- return data[i];
750
- }
751
- }
752
- throw new _RuntimeError(2304 /* RuntimeErrorCode.LOCALE_DATA_UNDEFINED */, ngDevMode && 'Locale data API: locale data undefined');
753
- }
754
- /**
755
- * Extracts the hours and minutes from a string like "15:45"
756
- */
757
- function extractTime(time) {
758
- const [h, m] = time.split(':');
759
- return { hours: +h, minutes: +m };
760
- }
761
- /**
762
- * Retrieves the currency symbol for a given currency code.
763
- *
764
- * For example, for the default `en-US` locale, the code `USD` can
765
- * be represented by the narrow symbol `$` or the wide symbol `US$`.
766
- *
767
- * @param code The currency code.
768
- * @param format The format, `wide` or `narrow`.
769
- * @param locale A locale code for the locale format rules to use.
770
- *
771
- * @returns The symbol, or the currency code if no symbol is available.
772
- * @see [Internationalization (i18n) Guide](guide/i18n)
773
- *
774
- * @publicApi
775
- *
776
- * @deprecated Angular recommends relying on the `Intl` API for i18n.
777
- * You can use `Intl.NumberFormat().formatToParts()` to extract the currency symbol.
778
- * For example: `Intl.NumberFormat('en', {style:'currency', currency: 'USD'}).formatToParts().find(part => part.type === 'currency').value`
779
- * returns `$` for USD currency code in the `en` locale.
780
- * Note: `US$` is a currency symbol for the `en-ca` locale but not the `en-us` locale.
781
- */
782
- function getCurrencySymbol(code, format, locale = 'en') {
783
- const currency = getLocaleCurrencies(locale)[code] || CURRENCIES_EN[code] || [];
784
- const symbolNarrow = currency[1 /* ɵCurrencyIndex.SymbolNarrow */];
785
- if (format === 'narrow' && typeof symbolNarrow === 'string') {
786
- return symbolNarrow;
787
- }
788
- return currency[0 /* ɵCurrencyIndex.Symbol */] || code;
789
- }
790
- // Most currencies have cents, that's why the default is 2
791
- const DEFAULT_NB_OF_CURRENCY_DIGITS = 2;
792
- /**
793
- * Reports the number of decimal digits for a given currency.
794
- * The value depends upon the presence of cents in that particular currency.
795
- *
796
- * @param code The currency code.
797
- * @returns The number of decimal digits, typically 0 or 2.
798
- * @see [Internationalization (i18n) Guide](guide/i18n)
799
- *
800
- * @publicApi
801
- *
802
- * @deprecated Angular recommends relying on the `Intl` API for i18n.
803
- * This function should not be used anymore. Let `Intl.NumberFormat` determine the number of digits to display for the currency
804
- */
805
- function getNumberOfCurrencyDigits(code) {
806
- let digits;
807
- const currency = CURRENCIES_EN[code];
808
- if (currency) {
809
- digits = currency[2 /* ɵCurrencyIndex.NbOfDigits */];
810
- }
811
- return typeof digits === 'number' ? digits : DEFAULT_NB_OF_CURRENCY_DIGITS;
812
- }
813
-
814
- const ISO8601_DATE_REGEX = /^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;
815
- // 1 2 3 4 5 6 7 8 9 10 11
816
- const NAMED_FORMATS = {};
817
- const DATE_FORMATS_SPLIT = /((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;
818
- /**
819
- * @ngModule CommonModule
820
- * @description
821
- *
822
- * Formats a date according to locale rules.
823
- *
824
- * @param value The date to format, as a Date, or a number (milliseconds since UTC epoch)
825
- * or an [ISO date-time string](https://www.w3.org/TR/NOTE-datetime).
826
- * @param format The date-time components to include. See `DatePipe` for details.
827
- * @param locale A locale code for the locale format rules to use.
828
- * @param timezone The time zone. A time zone offset from GMT (such as `'+0430'`).
829
- * If not specified, uses host system settings.
830
- *
831
- * @returns The formatted date string.
832
- *
833
- * @see {@link DatePipe}
834
- * @see [Internationalization (i18n) Guide](guide/i18n)
835
- *
836
- * @publicApi
837
- */
838
- function formatDate(value, format, locale, timezone) {
839
- let date = toDate(value);
840
- const namedFormat = getNamedFormat(locale, format);
841
- format = namedFormat || format;
842
- let parts = [];
843
- let match;
844
- while (format) {
845
- match = DATE_FORMATS_SPLIT.exec(format);
846
- if (match) {
847
- parts = parts.concat(match.slice(1));
848
- const part = parts.pop();
849
- if (!part) {
850
- break;
851
- }
852
- format = part;
853
- }
854
- else {
855
- parts.push(format);
856
- break;
857
- }
858
- }
859
- if (typeof ngDevMode === 'undefined' || ngDevMode) {
860
- assertValidDateFormat(parts);
861
- }
862
- let dateTimezoneOffset = date.getTimezoneOffset();
863
- if (timezone) {
864
- dateTimezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);
865
- date = convertTimezoneToLocal(date, timezone);
866
- }
867
- let text = '';
868
- parts.forEach((value) => {
869
- const dateFormatter = getDateFormatter(value);
870
- text += dateFormatter
871
- ? dateFormatter(date, locale, dateTimezoneOffset)
872
- : value === "''"
873
- ? "'"
874
- : value.replace(/(^'|'$)/g, '').replace(/''/g, "'");
875
- });
876
- return text;
877
- }
878
- /**
879
- * Asserts that the given date format is free from common mistakes. Throws an
880
- * error if one is found (except for the case of all "Y", in which case we just
881
- * log a warning). This should only be called in development mode.
882
- */
883
- function assertValidDateFormat(parts) {
884
- if (parts.some((part) => /^Y+$/.test(part)) && !parts.some((part) => /^w+$/.test(part))) {
885
- // "Y" indicates "week-based year", which differs from the actual calendar
886
- // year for a few days around Jan 1 most years. Unless "w" is also
887
- // present (e.g. a date like "2024-W52") this is likely a mistake. Users
888
- // probably meant "y" instead.
889
- const message = `Suspicious use of week-based year "Y" in date pattern "${parts.join('')}". Did you mean to use calendar year "y" instead?`;
890
- if (parts.length === 1) {
891
- // NOTE: allow "YYYY" with just a warning, since it's used in tests.
892
- console.error(_formatRuntimeError(2300 /* RuntimeErrorCode.SUSPICIOUS_DATE_FORMAT */, message));
893
- }
894
- else {
895
- throw new _RuntimeError(2300 /* RuntimeErrorCode.SUSPICIOUS_DATE_FORMAT */, message);
896
- }
897
- }
898
- }
899
- /**
900
- * Create a new Date object with the given date value, and the time set to midnight.
901
- *
902
- * We cannot use `new Date(year, month, date)` because it maps years between 0 and 99 to 1900-1999.
903
- * See: https://github.com/angular/angular/issues/40377
904
- *
905
- * Note that this function returns a Date object whose time is midnight in the current locale's
906
- * timezone. In the future we might want to change this to be midnight in UTC, but this would be a
907
- * considerable breaking change.
908
- */
909
- function createDate(year, month, date) {
910
- // The `newDate` is set to midnight (UTC) on January 1st 1970.
911
- // - In PST this will be December 31st 1969 at 4pm.
912
- // - In GMT this will be January 1st 1970 at 1am.
913
- // Note that they even have different years, dates and months!
914
- const newDate = new Date(0);
915
- // `setFullYear()` allows years like 0001 to be set correctly. This function does not
916
- // change the internal time of the date.
917
- // Consider calling `setFullYear(2019, 8, 20)` (September 20, 2019).
918
- // - In PST this will now be September 20, 2019 at 4pm
919
- // - In GMT this will now be September 20, 2019 at 1am
920
- newDate.setFullYear(year, month, date);
921
- // We want the final date to be at local midnight, so we reset the time.
922
- // - In PST this will now be September 20, 2019 at 12am
923
- // - In GMT this will now be September 20, 2019 at 12am
924
- newDate.setHours(0, 0, 0);
925
- return newDate;
926
- }
927
- function getNamedFormat(locale, format) {
928
- const localeId = getLocaleId(locale);
929
- NAMED_FORMATS[localeId] ??= {};
930
- if (NAMED_FORMATS[localeId][format]) {
931
- return NAMED_FORMATS[localeId][format];
932
- }
933
- let formatValue = '';
934
- switch (format) {
935
- case 'shortDate':
936
- formatValue = getLocaleDateFormat(locale, FormatWidth.Short);
937
- break;
938
- case 'mediumDate':
939
- formatValue = getLocaleDateFormat(locale, FormatWidth.Medium);
940
- break;
941
- case 'longDate':
942
- formatValue = getLocaleDateFormat(locale, FormatWidth.Long);
943
- break;
944
- case 'fullDate':
945
- formatValue = getLocaleDateFormat(locale, FormatWidth.Full);
946
- break;
947
- case 'shortTime':
948
- formatValue = getLocaleTimeFormat(locale, FormatWidth.Short);
949
- break;
950
- case 'mediumTime':
951
- formatValue = getLocaleTimeFormat(locale, FormatWidth.Medium);
952
- break;
953
- case 'longTime':
954
- formatValue = getLocaleTimeFormat(locale, FormatWidth.Long);
955
- break;
956
- case 'fullTime':
957
- formatValue = getLocaleTimeFormat(locale, FormatWidth.Full);
958
- break;
959
- case 'short':
960
- const shortTime = getNamedFormat(locale, 'shortTime');
961
- const shortDate = getNamedFormat(locale, 'shortDate');
962
- formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Short), [
963
- shortTime,
964
- shortDate,
965
- ]);
966
- break;
967
- case 'medium':
968
- const mediumTime = getNamedFormat(locale, 'mediumTime');
969
- const mediumDate = getNamedFormat(locale, 'mediumDate');
970
- formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Medium), [
971
- mediumTime,
972
- mediumDate,
973
- ]);
974
- break;
975
- case 'long':
976
- const longTime = getNamedFormat(locale, 'longTime');
977
- const longDate = getNamedFormat(locale, 'longDate');
978
- formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Long), [
979
- longTime,
980
- longDate,
981
- ]);
982
- break;
983
- case 'full':
984
- const fullTime = getNamedFormat(locale, 'fullTime');
985
- const fullDate = getNamedFormat(locale, 'fullDate');
986
- formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Full), [
987
- fullTime,
988
- fullDate,
989
- ]);
990
- break;
991
- }
992
- if (formatValue) {
993
- NAMED_FORMATS[localeId][format] = formatValue;
994
- }
995
- return formatValue;
996
- }
997
- function formatDateTime(str, opt_values) {
998
- if (opt_values) {
999
- str = str.replace(/\{([^}]+)}/g, function (match, key) {
1000
- return opt_values != null && key in opt_values ? opt_values[key] : match;
1001
- });
1002
- }
1003
- return str;
1004
- }
1005
- function padNumber(num, digits, minusSign = '-', trim, negWrap) {
1006
- let neg = '';
1007
- if (num < 0 || (negWrap && num <= 0)) {
1008
- if (negWrap) {
1009
- num = -num + 1;
1010
- }
1011
- else {
1012
- num = -num;
1013
- neg = minusSign;
1014
- }
1015
- }
1016
- let strNum = String(num);
1017
- while (strNum.length < digits) {
1018
- strNum = '0' + strNum;
1019
- }
1020
- if (trim) {
1021
- strNum = strNum.slice(strNum.length - digits);
1022
- }
1023
- return neg + strNum;
1024
- }
1025
- function formatFractionalSeconds(milliseconds, digits) {
1026
- const strMs = padNumber(milliseconds, 3);
1027
- return strMs.substring(0, digits);
1028
- }
1029
- /**
1030
- * Returns a date formatter that transforms a date into its locale digit representation
1031
- */
1032
- function dateGetter(name, size, offset = 0, trim = false, negWrap = false) {
1033
- return function (date, locale) {
1034
- let part = getDatePart(name, date);
1035
- if (offset > 0 || part > -offset) {
1036
- part += offset;
1037
- }
1038
- if (name === 3 /* DateType.Hours */) {
1039
- if (part === 0 && offset === -12) {
1040
- part = 12;
1041
- }
1042
- }
1043
- else if (name === 6 /* DateType.FractionalSeconds */) {
1044
- return formatFractionalSeconds(part, size);
1045
- }
1046
- const localeMinus = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);
1047
- return padNumber(part, size, localeMinus, trim, negWrap);
1048
- };
1049
- }
1050
- function getDatePart(part, date) {
1051
- switch (part) {
1052
- case 0 /* DateType.FullYear */:
1053
- return date.getFullYear();
1054
- case 1 /* DateType.Month */:
1055
- return date.getMonth();
1056
- case 2 /* DateType.Date */:
1057
- return date.getDate();
1058
- case 3 /* DateType.Hours */:
1059
- return date.getHours();
1060
- case 4 /* DateType.Minutes */:
1061
- return date.getMinutes();
1062
- case 5 /* DateType.Seconds */:
1063
- return date.getSeconds();
1064
- case 6 /* DateType.FractionalSeconds */:
1065
- return date.getMilliseconds();
1066
- case 7 /* DateType.Day */:
1067
- return date.getDay();
1068
- default:
1069
- throw new _RuntimeError(2301 /* RuntimeErrorCode.UNKNOWN_DATE_TYPE_VALUE */, ngDevMode && `Unknown DateType value "${part}".`);
1070
- }
1071
- }
1072
- /**
1073
- * Returns a date formatter that transforms a date into its locale string representation
1074
- */
1075
- function dateStrGetter(name, width, form = FormStyle.Format, extended = false) {
1076
- return function (date, locale) {
1077
- return getDateTranslation(date, locale, name, width, form, extended);
1078
- };
1079
- }
1080
- /**
1081
- * Returns the locale translation of a date for a given form, type and width
1082
- */
1083
- function getDateTranslation(date, locale, name, width, form, extended) {
1084
- switch (name) {
1085
- case 2 /* TranslationType.Months */:
1086
- return getLocaleMonthNames(locale, form, width)[date.getMonth()];
1087
- case 1 /* TranslationType.Days */:
1088
- return getLocaleDayNames(locale, form, width)[date.getDay()];
1089
- case 0 /* TranslationType.DayPeriods */:
1090
- const currentHours = date.getHours();
1091
- const currentMinutes = date.getMinutes();
1092
- if (extended) {
1093
- const rules = getLocaleExtraDayPeriodRules(locale);
1094
- const dayPeriods = getLocaleExtraDayPeriods(locale, form, width);
1095
- const index = rules.findIndex((rule) => {
1096
- if (Array.isArray(rule)) {
1097
- // morning, afternoon, evening, night
1098
- const [from, to] = rule;
1099
- const afterFrom = currentHours >= from.hours && currentMinutes >= from.minutes;
1100
- const beforeTo = currentHours < to.hours || (currentHours === to.hours && currentMinutes < to.minutes);
1101
- // We must account for normal rules that span a period during the day (e.g. 6am-9am)
1102
- // where `from` is less (earlier) than `to`. But also rules that span midnight (e.g.
1103
- // 10pm - 5am) where `from` is greater (later!) than `to`.
1104
- //
1105
- // In the first case the current time must be BOTH after `from` AND before `to`
1106
- // (e.g. 8am is after 6am AND before 10am).
1107
- //
1108
- // In the second case the current time must be EITHER after `from` OR before `to`
1109
- // (e.g. 4am is before 5am but not after 10pm; and 11pm is not before 5am but it is
1110
- // after 10pm).
1111
- if (from.hours < to.hours) {
1112
- if (afterFrom && beforeTo) {
1113
- return true;
1114
- }
1115
- }
1116
- else if (afterFrom || beforeTo) {
1117
- return true;
1118
- }
1119
- }
1120
- else {
1121
- // noon or midnight
1122
- if (rule.hours === currentHours && rule.minutes === currentMinutes) {
1123
- return true;
1124
- }
1125
- }
1126
- return false;
1127
- });
1128
- if (index !== -1) {
1129
- return dayPeriods[index];
1130
- }
1131
- }
1132
- // if no rules for the day periods, we use am/pm by default
1133
- return getLocaleDayPeriods(locale, form, width)[currentHours < 12 ? 0 : 1];
1134
- case 3 /* TranslationType.Eras */:
1135
- return getLocaleEraNames(locale, width)[date.getFullYear() <= 0 ? 0 : 1];
1136
- default:
1137
- // This default case is not needed by TypeScript compiler, as the switch is exhaustive.
1138
- // However Closure Compiler does not understand that and reports an error in typed mode.
1139
- // The `throw new Error` below works around the problem, and the unexpected: never variable
1140
- // makes sure tsc still checks this code is unreachable.
1141
- const unexpected = name;
1142
- throw new _RuntimeError(2302 /* RuntimeErrorCode.UNEXPECTED_TRANSLATION_TYPE */, ngDevMode && `unexpected translation type ${unexpected}`);
1143
- }
1144
- }
1145
- /**
1146
- * Returns a date formatter that transforms a date and an offset into a timezone with ISO8601 or
1147
- * GMT format depending on the width (eg: short = +0430, short:GMT = GMT+4, long = GMT+04:30,
1148
- * extended = +04:30)
1149
- */
1150
- function timeZoneGetter(width) {
1151
- return function (date, locale, offset) {
1152
- const zone = -1 * offset;
1153
- const minusSign = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);
1154
- const hours = zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60);
1155
- switch (width) {
1156
- case 0 /* ZoneWidth.Short */:
1157
- return ((zone >= 0 ? '+' : '') +
1158
- padNumber(hours, 2, minusSign) +
1159
- padNumber(Math.abs(zone % 60), 2, minusSign));
1160
- case 1 /* ZoneWidth.ShortGMT */:
1161
- return 'GMT' + (zone >= 0 ? '+' : '') + padNumber(hours, 1, minusSign);
1162
- case 2 /* ZoneWidth.Long */:
1163
- return ('GMT' +
1164
- (zone >= 0 ? '+' : '') +
1165
- padNumber(hours, 2, minusSign) +
1166
- ':' +
1167
- padNumber(Math.abs(zone % 60), 2, minusSign));
1168
- case 3 /* ZoneWidth.Extended */:
1169
- if (offset === 0) {
1170
- return 'Z';
1171
- }
1172
- else {
1173
- return ((zone >= 0 ? '+' : '') +
1174
- padNumber(hours, 2, minusSign) +
1175
- ':' +
1176
- padNumber(Math.abs(zone % 60), 2, minusSign));
1177
- }
1178
- default:
1179
- throw new _RuntimeError(2302 /* RuntimeErrorCode.UNKNOWN_ZONE_WIDTH */, ngDevMode && `Unknown zone width "${width}"`);
1180
- }
1181
- };
1182
- }
1183
- const JANUARY = 0;
1184
- const THURSDAY = 4;
1185
- function getFirstThursdayOfYear(year) {
1186
- const firstDayOfYear = createDate(year, JANUARY, 1).getDay();
1187
- return createDate(year, 0, 1 + (firstDayOfYear <= THURSDAY ? THURSDAY : THURSDAY + 7) - firstDayOfYear);
1188
- }
1189
- /**
1190
- * ISO Week starts on day 1 (Monday) and ends with day 0 (Sunday)
1191
- */
1192
- function getThursdayThisIsoWeek(datetime) {
1193
- // getDay returns 0-6 range with sunday as 0.
1194
- const currentDay = datetime.getDay();
1195
- // On a Sunday, read the previous Thursday since ISO weeks start on Monday.
1196
- const deltaToThursday = currentDay === 0 ? -3 : THURSDAY - currentDay;
1197
- return createDate(datetime.getFullYear(), datetime.getMonth(), datetime.getDate() + deltaToThursday);
1198
- }
1199
- function weekGetter(size, monthBased = false) {
1200
- return function (date, locale) {
1201
- let result;
1202
- if (monthBased) {
1203
- const nbDaysBefore1stDayOfMonth = new Date(date.getFullYear(), date.getMonth(), 1).getDay() - 1;
1204
- const today = date.getDate();
1205
- result = 1 + Math.floor((today + nbDaysBefore1stDayOfMonth) / 7);
1206
- }
1207
- else {
1208
- const thisThurs = getThursdayThisIsoWeek(date);
1209
- // Some days of a year are part of next year according to ISO 8601.
1210
- // Compute the firstThurs from the year of this week's Thursday
1211
- const firstThurs = getFirstThursdayOfYear(thisThurs.getFullYear());
1212
- const diff = thisThurs.getTime() - firstThurs.getTime();
1213
- result = 1 + Math.round(diff / 6.048e8); // 6.048e8 ms per week
1214
- }
1215
- return padNumber(result, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));
1216
- };
1217
- }
1218
- /**
1219
- * Returns a date formatter that provides the week-numbering year for the input date.
1220
- */
1221
- function weekNumberingYearGetter(size, trim = false) {
1222
- return function (date, locale) {
1223
- const thisThurs = getThursdayThisIsoWeek(date);
1224
- const weekNumberingYear = thisThurs.getFullYear();
1225
- return padNumber(weekNumberingYear, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign), trim);
1226
- };
1227
- }
1228
- const DATE_FORMATS = {};
1229
- // Based on CLDR formats:
1230
- // See complete list: http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
1231
- // See also explanations: http://cldr.unicode.org/translation/date-time
1232
- // TODO(ocombe): support all missing cldr formats: U, Q, D, F, e, j, J, C, A, v, V, X, x
1233
- function getDateFormatter(format) {
1234
- if (DATE_FORMATS[format]) {
1235
- return DATE_FORMATS[format];
1236
- }
1237
- let formatter;
1238
- switch (format) {
1239
- // Era name (AD/BC)
1240
- case 'G':
1241
- case 'GG':
1242
- case 'GGG':
1243
- formatter = dateStrGetter(3 /* TranslationType.Eras */, TranslationWidth.Abbreviated);
1244
- break;
1245
- case 'GGGG':
1246
- formatter = dateStrGetter(3 /* TranslationType.Eras */, TranslationWidth.Wide);
1247
- break;
1248
- case 'GGGGG':
1249
- formatter = dateStrGetter(3 /* TranslationType.Eras */, TranslationWidth.Narrow);
1250
- break;
1251
- // 1 digit representation of the year, e.g. (AD 1 => 1, AD 199 => 199)
1252
- case 'y':
1253
- formatter = dateGetter(0 /* DateType.FullYear */, 1, 0, false, true);
1254
- break;
1255
- // 2 digit representation of the year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10)
1256
- case 'yy':
1257
- formatter = dateGetter(0 /* DateType.FullYear */, 2, 0, true, true);
1258
- break;
1259
- // 3 digit representation of the year, padded (000-999). (e.g. AD 2001 => 01, AD 2010 => 10)
1260
- case 'yyy':
1261
- formatter = dateGetter(0 /* DateType.FullYear */, 3, 0, false, true);
1262
- break;
1263
- // 4 digit representation of the year (e.g. AD 1 => 0001, AD 2010 => 2010)
1264
- case 'yyyy':
1265
- formatter = dateGetter(0 /* DateType.FullYear */, 4, 0, false, true);
1266
- break;
1267
- // 1 digit representation of the week-numbering year, e.g. (AD 1 => 1, AD 199 => 199)
1268
- case 'Y':
1269
- formatter = weekNumberingYearGetter(1);
1270
- break;
1271
- // 2 digit representation of the week-numbering year, padded (00-99). (e.g. AD 2001 => 01, AD
1272
- // 2010 => 10)
1273
- case 'YY':
1274
- formatter = weekNumberingYearGetter(2, true);
1275
- break;
1276
- // 3 digit representation of the week-numbering year, padded (000-999). (e.g. AD 1 => 001, AD
1277
- // 2010 => 2010)
1278
- case 'YYY':
1279
- formatter = weekNumberingYearGetter(3);
1280
- break;
1281
- // 4 digit representation of the week-numbering year (e.g. AD 1 => 0001, AD 2010 => 2010)
1282
- case 'YYYY':
1283
- formatter = weekNumberingYearGetter(4);
1284
- break;
1285
- // Month of the year (1-12), numeric
1286
- case 'M':
1287
- case 'L':
1288
- formatter = dateGetter(1 /* DateType.Month */, 1, 1);
1289
- break;
1290
- case 'MM':
1291
- case 'LL':
1292
- formatter = dateGetter(1 /* DateType.Month */, 2, 1);
1293
- break;
1294
- // Month of the year (January, ...), string, format
1295
- case 'MMM':
1296
- formatter = dateStrGetter(2 /* TranslationType.Months */, TranslationWidth.Abbreviated);
1297
- break;
1298
- case 'MMMM':
1299
- formatter = dateStrGetter(2 /* TranslationType.Months */, TranslationWidth.Wide);
1300
- break;
1301
- case 'MMMMM':
1302
- formatter = dateStrGetter(2 /* TranslationType.Months */, TranslationWidth.Narrow);
1303
- break;
1304
- // Month of the year (January, ...), string, standalone
1305
- case 'LLL':
1306
- formatter = dateStrGetter(2 /* TranslationType.Months */, TranslationWidth.Abbreviated, FormStyle.Standalone);
1307
- break;
1308
- case 'LLLL':
1309
- formatter = dateStrGetter(2 /* TranslationType.Months */, TranslationWidth.Wide, FormStyle.Standalone);
1310
- break;
1311
- case 'LLLLL':
1312
- formatter = dateStrGetter(2 /* TranslationType.Months */, TranslationWidth.Narrow, FormStyle.Standalone);
1313
- break;
1314
- // Week of the year (1, ... 52)
1315
- case 'w':
1316
- formatter = weekGetter(1);
1317
- break;
1318
- case 'ww':
1319
- formatter = weekGetter(2);
1320
- break;
1321
- // Week of the month (1, ...)
1322
- case 'W':
1323
- formatter = weekGetter(1, true);
1324
- break;
1325
- // Day of the month (1-31)
1326
- case 'd':
1327
- formatter = dateGetter(2 /* DateType.Date */, 1);
1328
- break;
1329
- case 'dd':
1330
- formatter = dateGetter(2 /* DateType.Date */, 2);
1331
- break;
1332
- // Day of the Week StandAlone (1, 1, Mon, Monday, M, Mo)
1333
- case 'c':
1334
- case 'cc':
1335
- formatter = dateGetter(7 /* DateType.Day */, 1);
1336
- break;
1337
- case 'ccc':
1338
- formatter = dateStrGetter(1 /* TranslationType.Days */, TranslationWidth.Abbreviated, FormStyle.Standalone);
1339
- break;
1340
- case 'cccc':
1341
- formatter = dateStrGetter(1 /* TranslationType.Days */, TranslationWidth.Wide, FormStyle.Standalone);
1342
- break;
1343
- case 'ccccc':
1344
- formatter = dateStrGetter(1 /* TranslationType.Days */, TranslationWidth.Narrow, FormStyle.Standalone);
1345
- break;
1346
- case 'cccccc':
1347
- formatter = dateStrGetter(1 /* TranslationType.Days */, TranslationWidth.Short, FormStyle.Standalone);
1348
- break;
1349
- // Day of the Week
1350
- case 'E':
1351
- case 'EE':
1352
- case 'EEE':
1353
- formatter = dateStrGetter(1 /* TranslationType.Days */, TranslationWidth.Abbreviated);
1354
- break;
1355
- case 'EEEE':
1356
- formatter = dateStrGetter(1 /* TranslationType.Days */, TranslationWidth.Wide);
1357
- break;
1358
- case 'EEEEE':
1359
- formatter = dateStrGetter(1 /* TranslationType.Days */, TranslationWidth.Narrow);
1360
- break;
1361
- case 'EEEEEE':
1362
- formatter = dateStrGetter(1 /* TranslationType.Days */, TranslationWidth.Short);
1363
- break;
1364
- // Generic period of the day (am-pm)
1365
- case 'a':
1366
- case 'aa':
1367
- case 'aaa':
1368
- formatter = dateStrGetter(0 /* TranslationType.DayPeriods */, TranslationWidth.Abbreviated);
1369
- break;
1370
- case 'aaaa':
1371
- formatter = dateStrGetter(0 /* TranslationType.DayPeriods */, TranslationWidth.Wide);
1372
- break;
1373
- case 'aaaaa':
1374
- formatter = dateStrGetter(0 /* TranslationType.DayPeriods */, TranslationWidth.Narrow);
1375
- break;
1376
- // Extended period of the day (midnight, at night, ...), standalone
1377
- case 'b':
1378
- case 'bb':
1379
- case 'bbb':
1380
- formatter = dateStrGetter(0 /* TranslationType.DayPeriods */, TranslationWidth.Abbreviated, FormStyle.Standalone, true);
1381
- break;
1382
- case 'bbbb':
1383
- formatter = dateStrGetter(0 /* TranslationType.DayPeriods */, TranslationWidth.Wide, FormStyle.Standalone, true);
1384
- break;
1385
- case 'bbbbb':
1386
- formatter = dateStrGetter(0 /* TranslationType.DayPeriods */, TranslationWidth.Narrow, FormStyle.Standalone, true);
1387
- break;
1388
- // Extended period of the day (midnight, night, ...), standalone
1389
- case 'B':
1390
- case 'BB':
1391
- case 'BBB':
1392
- formatter = dateStrGetter(0 /* TranslationType.DayPeriods */, TranslationWidth.Abbreviated, FormStyle.Format, true);
1393
- break;
1394
- case 'BBBB':
1395
- formatter = dateStrGetter(0 /* TranslationType.DayPeriods */, TranslationWidth.Wide, FormStyle.Format, true);
1396
- break;
1397
- case 'BBBBB':
1398
- formatter = dateStrGetter(0 /* TranslationType.DayPeriods */, TranslationWidth.Narrow, FormStyle.Format, true);
1399
- break;
1400
- // Hour in AM/PM, (1-12)
1401
- case 'h':
1402
- formatter = dateGetter(3 /* DateType.Hours */, 1, -12);
1403
- break;
1404
- case 'hh':
1405
- formatter = dateGetter(3 /* DateType.Hours */, 2, -12);
1406
- break;
1407
- // Hour of the day (0-23)
1408
- case 'H':
1409
- formatter = dateGetter(3 /* DateType.Hours */, 1);
1410
- break;
1411
- // Hour in day, padded (00-23)
1412
- case 'HH':
1413
- formatter = dateGetter(3 /* DateType.Hours */, 2);
1414
- break;
1415
- // Minute of the hour (0-59)
1416
- case 'm':
1417
- formatter = dateGetter(4 /* DateType.Minutes */, 1);
1418
- break;
1419
- case 'mm':
1420
- formatter = dateGetter(4 /* DateType.Minutes */, 2);
1421
- break;
1422
- // Second of the minute (0-59)
1423
- case 's':
1424
- formatter = dateGetter(5 /* DateType.Seconds */, 1);
1425
- break;
1426
- case 'ss':
1427
- formatter = dateGetter(5 /* DateType.Seconds */, 2);
1428
- break;
1429
- // Fractional second
1430
- case 'S':
1431
- formatter = dateGetter(6 /* DateType.FractionalSeconds */, 1);
1432
- break;
1433
- case 'SS':
1434
- formatter = dateGetter(6 /* DateType.FractionalSeconds */, 2);
1435
- break;
1436
- case 'SSS':
1437
- formatter = dateGetter(6 /* DateType.FractionalSeconds */, 3);
1438
- break;
1439
- // Timezone ISO8601 short format (-0430)
1440
- case 'Z':
1441
- case 'ZZ':
1442
- case 'ZZZ':
1443
- formatter = timeZoneGetter(0 /* ZoneWidth.Short */);
1444
- break;
1445
- // Timezone ISO8601 extended format (-04:30)
1446
- case 'ZZZZZ':
1447
- formatter = timeZoneGetter(3 /* ZoneWidth.Extended */);
1448
- break;
1449
- // Timezone GMT short format (GMT+4)
1450
- case 'O':
1451
- case 'OO':
1452
- case 'OOO':
1453
- // Should be location, but fallback to format O instead because we don't have the data yet
1454
- case 'z':
1455
- case 'zz':
1456
- case 'zzz':
1457
- formatter = timeZoneGetter(1 /* ZoneWidth.ShortGMT */);
1458
- break;
1459
- // Timezone GMT long format (GMT+0430)
1460
- case 'OOOO':
1461
- case 'ZZZZ':
1462
- // Should be location, but fallback to format O instead because we don't have the data yet
1463
- case 'zzzz':
1464
- formatter = timeZoneGetter(2 /* ZoneWidth.Long */);
1465
- break;
1466
- default:
1467
- return null;
1468
- }
1469
- DATE_FORMATS[format] = formatter;
1470
- return formatter;
1471
- }
1472
- function timezoneToOffset(timezone, fallback) {
1473
- // Support: IE 11 only, Edge 13-15+
1474
- // IE/Edge do not "understand" colon (`:`) in timezone
1475
- timezone = timezone.replace(/:/g, '');
1476
- const requestedTimezoneOffset = Date.parse('Jan 01, 1970 00:00:00 ' + timezone) / 60000;
1477
- return isNaN(requestedTimezoneOffset) ? fallback : requestedTimezoneOffset;
1478
- }
1479
- function addDateMinutes(date, minutes) {
1480
- date = new Date(date.getTime());
1481
- date.setMinutes(date.getMinutes() + minutes);
1482
- return date;
1483
- }
1484
- function convertTimezoneToLocal(date, timezone, reverse) {
1485
- const reverseValue = -1 ;
1486
- const dateTimezoneOffset = date.getTimezoneOffset();
1487
- const timezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);
1488
- return addDateMinutes(date, reverseValue * (timezoneOffset - dateTimezoneOffset));
1489
- }
1490
- /**
1491
- * Converts a value to date.
1492
- *
1493
- * Supported input formats:
1494
- * - `Date`
1495
- * - number: timestamp
1496
- * - string: numeric (e.g. "1234"), ISO and date strings in a format supported by
1497
- * [Date.parse()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse).
1498
- * Note: ISO strings without time return a date without timeoffset.
1499
- *
1500
- * Throws if unable to convert to a date.
1501
- */
1502
- function toDate(value) {
1503
- if (isDate(value)) {
1504
- return value;
1505
- }
1506
- if (typeof value === 'number' && !isNaN(value)) {
1507
- return new Date(value);
1508
- }
1509
- if (typeof value === 'string') {
1510
- value = value.trim();
1511
- if (/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(value)) {
1512
- /* For ISO Strings without time the day, month and year must be extracted from the ISO String
1513
- before Date creation to avoid time offset and errors in the new Date.
1514
- If we only replace '-' with ',' in the ISO String ("2015,01,01"), and try to create a new
1515
- date, some browsers (e.g. IE 9) will throw an invalid Date error.
1516
- If we leave the '-' ("2015-01-01") and try to create a new Date("2015-01-01") the timeoffset
1517
- is applied.
1518
- Note: ISO months are 0 for January, 1 for February, ... */
1519
- const [y, m = 1, d = 1] = value.split('-').map((val) => +val);
1520
- return createDate(y, m - 1, d);
1521
- }
1522
- const parsedNb = parseFloat(value);
1523
- // any string that only contains numbers, like "1234" but not like "1234hello"
1524
- if (!isNaN(value - parsedNb)) {
1525
- return new Date(parsedNb);
1526
- }
1527
- let match;
1528
- if ((match = value.match(ISO8601_DATE_REGEX))) {
1529
- return isoStringToDate(match);
1530
- }
1531
- }
1532
- const date = new Date(value);
1533
- if (!isDate(date)) {
1534
- throw new _RuntimeError(2302 /* RuntimeErrorCode.INVALID_TO_DATE_CONVERSION */, ngDevMode && `Unable to convert "${value}" into a date`);
1535
- }
1536
- return date;
1537
- }
1538
- /**
1539
- * Converts a date in ISO8601 to a Date.
1540
- * Used instead of `Date.parse` because of browser discrepancies.
1541
- */
1542
- function isoStringToDate(match) {
1543
- const date = new Date(0);
1544
- let tzHour = 0;
1545
- let tzMin = 0;
1546
- // match[8] means that the string contains "Z" (UTC) or a timezone like "+01:00" or "+0100"
1547
- const dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;
1548
- const timeSetter = match[8] ? date.setUTCHours : date.setHours;
1549
- // if there is a timezone defined like "+01:00" or "+0100"
1550
- if (match[9]) {
1551
- tzHour = Number(match[9] + match[10]);
1552
- tzMin = Number(match[9] + match[11]);
1553
- }
1554
- dateSetter.call(date, Number(match[1]), Number(match[2]) - 1, Number(match[3]));
1555
- const h = Number(match[4] || 0) - tzHour;
1556
- const m = Number(match[5] || 0) - tzMin;
1557
- const s = Number(match[6] || 0);
1558
- // The ECMAScript specification (https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.11)
1559
- // defines that `DateTime` milliseconds should always be rounded down, so that `999.9ms`
1560
- // becomes `999ms`.
1561
- const ms = Math.floor(parseFloat('0.' + (match[7] || 0)) * 1000);
1562
- timeSetter.call(date, h, m, s, ms);
1563
- return date;
1564
- }
1565
- function isDate(value) {
1566
- return value instanceof Date && !isNaN(value.valueOf());
1567
- }
1568
-
1569
- const NUMBER_FORMAT_REGEXP = /^(\d+)?\.((\d+)(-(\d+))?)?$/;
1570
- const MAX_DIGITS = 22;
1571
- const DECIMAL_SEP = '.';
1572
- const ZERO_CHAR = '0';
1573
- const PATTERN_SEP = ';';
1574
- const GROUP_SEP = ',';
1575
- const DIGIT_CHAR = '#';
1576
- const CURRENCY_CHAR = '¤';
1577
- const PERCENT_CHAR = '%';
1578
- /**
1579
- * Transforms a number to a locale string based on a style and a format.
1580
- */
1581
- function formatNumberToLocaleString(value, pattern, locale, groupSymbol, decimalSymbol, digitsInfo, isPercent = false) {
1582
- let formattedText = '';
1583
- let isZero = false;
1584
- if (!isFinite(value)) {
1585
- formattedText = getLocaleNumberSymbol(locale, NumberSymbol.Infinity);
1586
- }
1587
- else {
1588
- let parsedNumber = parseNumber(value);
1589
- if (isPercent) {
1590
- parsedNumber = toPercent(parsedNumber);
1591
- }
1592
- let minInt = pattern.minInt;
1593
- let minFraction = pattern.minFrac;
1594
- let maxFraction = pattern.maxFrac;
1595
- if (digitsInfo) {
1596
- const parts = digitsInfo.match(NUMBER_FORMAT_REGEXP);
1597
- if (parts === null) {
1598
- throw new _RuntimeError(2306 /* RuntimeErrorCode.INVALID_DIGIT_INFO */, ngDevMode && `${digitsInfo} is not a valid digit info`);
1599
- }
1600
- const minIntPart = parts[1];
1601
- const minFractionPart = parts[3];
1602
- const maxFractionPart = parts[5];
1603
- if (minIntPart != null) {
1604
- minInt = parseIntAutoRadix(minIntPart);
1605
- }
1606
- if (minFractionPart != null) {
1607
- minFraction = parseIntAutoRadix(minFractionPart);
1608
- }
1609
- if (maxFractionPart != null) {
1610
- maxFraction = parseIntAutoRadix(maxFractionPart);
1611
- }
1612
- else if (minFractionPart != null && minFraction > maxFraction) {
1613
- maxFraction = minFraction;
1614
- }
1615
- }
1616
- roundNumber(parsedNumber, minFraction, maxFraction);
1617
- let digits = parsedNumber.digits;
1618
- let integerLen = parsedNumber.integerLen;
1619
- const exponent = parsedNumber.exponent;
1620
- let decimals = [];
1621
- isZero = digits.every((d) => !d);
1622
- // pad zeros for small numbers
1623
- for (; integerLen < minInt; integerLen++) {
1624
- digits.unshift(0);
1625
- }
1626
- // pad zeros for small numbers
1627
- for (; integerLen < 0; integerLen++) {
1628
- digits.unshift(0);
1629
- }
1630
- // extract decimals digits
1631
- if (integerLen > 0) {
1632
- decimals = digits.splice(integerLen, digits.length);
1633
- }
1634
- else {
1635
- decimals = digits;
1636
- digits = [0];
1637
- }
1638
- // format the integer digits with grouping separators
1639
- const groups = [];
1640
- if (digits.length >= pattern.lgSize) {
1641
- groups.unshift(digits.splice(-pattern.lgSize, digits.length).join(''));
1642
- }
1643
- while (digits.length > pattern.gSize) {
1644
- groups.unshift(digits.splice(-pattern.gSize, digits.length).join(''));
1645
- }
1646
- if (digits.length) {
1647
- groups.unshift(digits.join(''));
1648
- }
1649
- formattedText = groups.join(getLocaleNumberSymbol(locale, groupSymbol));
1650
- // append the decimal digits
1651
- if (decimals.length) {
1652
- formattedText += getLocaleNumberSymbol(locale, decimalSymbol) + decimals.join('');
1653
- }
1654
- if (exponent) {
1655
- formattedText += getLocaleNumberSymbol(locale, NumberSymbol.Exponential) + '+' + exponent;
1656
- }
1657
- }
1658
- if (value < 0 && !isZero) {
1659
- formattedText = pattern.negPre + formattedText + pattern.negSuf;
1660
- }
1661
- else {
1662
- formattedText = pattern.posPre + formattedText + pattern.posSuf;
1663
- }
1664
- return formattedText;
1665
- }
1666
- /**
1667
- * @ngModule CommonModule
1668
- * @description
1669
- *
1670
- * Formats a number as currency using locale rules.
1671
- *
1672
- * @param value The number to format.
1673
- * @param locale A locale code for the locale format rules to use.
1674
- * @param currency A string containing the currency symbol or its name,
1675
- * such as "$" or "Canadian Dollar". Used in output string, but does not affect the operation
1676
- * of the function.
1677
- * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)
1678
- * currency code, such as `USD` for the US dollar and `EUR` for the euro.
1679
- * Used to determine the number of digits in the decimal part.
1680
- * @param digitsInfo Decimal representation options, specified by a string in the following format:
1681
- * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.
1682
- *
1683
- * @returns The formatted currency value.
1684
- *
1685
- * @see {@link formatNumber}
1686
- * @see {@link DecimalPipe}
1687
- * @see [Internationalization (i18n) Guide](guide/i18n)
1688
- *
1689
- * @publicApi
1690
- */
1691
- function formatCurrency(value, locale, currency, currencyCode, digitsInfo) {
1692
- const format = getLocaleNumberFormat(locale, NumberFormatStyle.Currency);
1693
- const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));
1694
- pattern.minFrac = getNumberOfCurrencyDigits(currencyCode);
1695
- pattern.maxFrac = pattern.minFrac;
1696
- const res = formatNumberToLocaleString(value, pattern, locale, NumberSymbol.CurrencyGroup, NumberSymbol.CurrencyDecimal, digitsInfo);
1697
- return (res
1698
- .replace(CURRENCY_CHAR, currency)
1699
- // if we have 2 time the currency character, the second one is ignored
1700
- .replace(CURRENCY_CHAR, '')
1701
- // If there is a spacing between currency character and the value and
1702
- // the currency character is suppressed by passing an empty string, the
1703
- // spacing character would remain as part of the string. Then we
1704
- // should remove it.
1705
- .trim());
1706
- }
1707
- /**
1708
- * @ngModule CommonModule
1709
- * @description
1710
- *
1711
- * Formats a number as a percentage according to locale rules.
1712
- *
1713
- * @param value The number to format.
1714
- * @param locale A locale code for the locale format rules to use.
1715
- * @param digitsInfo Decimal representation options, specified by a string in the following format:
1716
- * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.
1717
- *
1718
- * @returns The formatted percentage value.
1719
- *
1720
- * @see {@link formatNumber}
1721
- * @see {@link DecimalPipe}
1722
- * @see [Internationalization (i18n) Guide](guide/i18n)
1723
- * @publicApi
1724
- *
1725
- */
1726
- function formatPercent(value, locale, digitsInfo) {
1727
- const format = getLocaleNumberFormat(locale, NumberFormatStyle.Percent);
1728
- const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));
1729
- const res = formatNumberToLocaleString(value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo, true);
1730
- return res.replace(new RegExp(PERCENT_CHAR, 'g'), getLocaleNumberSymbol(locale, NumberSymbol.PercentSign));
1731
- }
1732
- /**
1733
- * @ngModule CommonModule
1734
- * @description
1735
- *
1736
- * Formats a number as text, with group sizing, separator, and other
1737
- * parameters based on the locale.
1738
- *
1739
- * @param value The number to format.
1740
- * @param locale A locale code for the locale format rules to use.
1741
- * @param digitsInfo Decimal representation options, specified by a string in the following format:
1742
- * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.
1743
- *
1744
- * @returns The formatted text string.
1745
- * @see [Internationalization (i18n) Guide](guide/i18n)
1746
- *
1747
- * @publicApi
1748
- */
1749
- function formatNumber(value, locale, digitsInfo) {
1750
- const format = getLocaleNumberFormat(locale, NumberFormatStyle.Decimal);
1751
- const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));
1752
- return formatNumberToLocaleString(value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo);
1753
- }
1754
- function parseNumberFormat(format, minusSign = '-') {
1755
- const p = {
1756
- minInt: 1,
1757
- minFrac: 0,
1758
- maxFrac: 0,
1759
- posPre: '',
1760
- posSuf: '',
1761
- negPre: '',
1762
- negSuf: '',
1763
- gSize: 0,
1764
- lgSize: 0,
1765
- };
1766
- const patternParts = format.split(PATTERN_SEP);
1767
- const positive = patternParts[0];
1768
- const negative = patternParts[1];
1769
- const positiveParts = positive.indexOf(DECIMAL_SEP) !== -1
1770
- ? positive.split(DECIMAL_SEP)
1771
- : [
1772
- positive.substring(0, positive.lastIndexOf(ZERO_CHAR) + 1),
1773
- positive.substring(positive.lastIndexOf(ZERO_CHAR) + 1),
1774
- ], integer = positiveParts[0], fraction = positiveParts[1] || '';
1775
- p.posPre = integer.substring(0, integer.indexOf(DIGIT_CHAR));
1776
- for (let i = 0; i < fraction.length; i++) {
1777
- const ch = fraction.charAt(i);
1778
- if (ch === ZERO_CHAR) {
1779
- p.minFrac = p.maxFrac = i + 1;
1780
- }
1781
- else if (ch === DIGIT_CHAR) {
1782
- p.maxFrac = i + 1;
1783
- }
1784
- else {
1785
- p.posSuf += ch;
1786
- }
1787
- }
1788
- const groups = integer.split(GROUP_SEP);
1789
- p.gSize = groups[1] ? groups[1].length : 0;
1790
- p.lgSize = groups[2] || groups[1] ? (groups[2] || groups[1]).length : 0;
1791
- if (negative) {
1792
- const trunkLen = positive.length - p.posPre.length - p.posSuf.length, pos = negative.indexOf(DIGIT_CHAR);
1793
- p.negPre = negative.substring(0, pos).replace(/'/g, '');
1794
- p.negSuf = negative.slice(pos + trunkLen).replace(/'/g, '');
1795
- }
1796
- else {
1797
- p.negPre = minusSign + p.posPre;
1798
- p.negSuf = p.posSuf;
1799
- }
1800
- return p;
1801
- }
1802
- // Transforms a parsed number into a percentage by multiplying it by 100
1803
- function toPercent(parsedNumber) {
1804
- // if the number is 0, don't do anything
1805
- if (parsedNumber.digits[0] === 0) {
1806
- return parsedNumber;
1807
- }
1808
- // Getting the current number of decimals
1809
- const fractionLen = parsedNumber.digits.length - parsedNumber.integerLen;
1810
- if (parsedNumber.exponent) {
1811
- parsedNumber.exponent += 2;
1812
- }
1813
- else {
1814
- if (fractionLen === 0) {
1815
- parsedNumber.digits.push(0, 0);
1816
- }
1817
- else if (fractionLen === 1) {
1818
- parsedNumber.digits.push(0);
1819
- }
1820
- parsedNumber.integerLen += 2;
1821
- }
1822
- return parsedNumber;
1823
- }
1824
- /**
1825
- * Parses a number.
1826
- * Significant bits of this parse algorithm came from https://github.com/MikeMcl/big.js/
1827
- */
1828
- function parseNumber(num) {
1829
- let numStr = Math.abs(num) + '';
1830
- let exponent = 0, digits, integerLen;
1831
- let i, j, zeros;
1832
- // Decimal point?
1833
- if ((integerLen = numStr.indexOf(DECIMAL_SEP)) > -1) {
1834
- numStr = numStr.replace(DECIMAL_SEP, '');
1835
- }
1836
- // Exponential form?
1837
- if ((i = numStr.search(/e/i)) > 0) {
1838
- // Work out the exponent.
1839
- if (integerLen < 0)
1840
- integerLen = i;
1841
- integerLen += +numStr.slice(i + 1);
1842
- numStr = numStr.substring(0, i);
1843
- }
1844
- else if (integerLen < 0) {
1845
- // There was no decimal point or exponent so it is an integer.
1846
- integerLen = numStr.length;
1847
- }
1848
- // Count the number of leading zeros.
1849
- for (i = 0; numStr.charAt(i) === ZERO_CHAR; i++) {
1850
- /* empty */
1851
- }
1852
- if (i === (zeros = numStr.length)) {
1853
- // The digits are all zero.
1854
- digits = [0];
1855
- integerLen = 1;
1856
- }
1857
- else {
1858
- // Count the number of trailing zeros
1859
- zeros--;
1860
- while (numStr.charAt(zeros) === ZERO_CHAR)
1861
- zeros--;
1862
- // Trailing zeros are insignificant so ignore them
1863
- integerLen -= i;
1864
- digits = [];
1865
- // Convert string to array of digits without leading/trailing zeros.
1866
- for (j = 0; i <= zeros; i++, j++) {
1867
- digits[j] = Number(numStr.charAt(i));
1868
- }
1869
- }
1870
- // If the number overflows the maximum allowed digits then use an exponent.
1871
- if (integerLen > MAX_DIGITS) {
1872
- digits = digits.splice(0, MAX_DIGITS - 1);
1873
- exponent = integerLen - 1;
1874
- integerLen = 1;
1875
- }
1876
- return { digits, exponent, integerLen };
1877
- }
1878
- /**
1879
- * Round the parsed number to the specified number of decimal places
1880
- * This function changes the parsedNumber in-place
1881
- */
1882
- function roundNumber(parsedNumber, minFrac, maxFrac) {
1883
- if (minFrac > maxFrac) {
1884
- throw new _RuntimeError(2307 /* RuntimeErrorCode.INVALID_NUMBER_OF_DIGITS_AFTER_FRACTION */, ngDevMode &&
1885
- `The minimum number of digits after fraction (${minFrac}) is higher than the maximum (${maxFrac}).`);
1886
- }
1887
- let digits = parsedNumber.digits;
1888
- let fractionLen = digits.length - parsedNumber.integerLen;
1889
- const fractionSize = Math.min(Math.max(minFrac, fractionLen), maxFrac);
1890
- // The index of the digit to where rounding is to occur
1891
- let roundAt = fractionSize + parsedNumber.integerLen;
1892
- let digit = digits[roundAt];
1893
- if (roundAt > 0) {
1894
- // Drop fractional digits beyond `roundAt`
1895
- digits.splice(Math.max(parsedNumber.integerLen, roundAt));
1896
- // Set non-fractional digits beyond `roundAt` to 0
1897
- for (let j = roundAt; j < digits.length; j++) {
1898
- digits[j] = 0;
1899
- }
1900
- }
1901
- else {
1902
- // We rounded to zero so reset the parsedNumber
1903
- fractionLen = Math.max(0, fractionLen);
1904
- parsedNumber.integerLen = 1;
1905
- digits.length = Math.max(1, (roundAt = fractionSize + 1));
1906
- digits[0] = 0;
1907
- for (let i = 1; i < roundAt; i++)
1908
- digits[i] = 0;
1909
- }
1910
- if (digit >= 5) {
1911
- if (roundAt - 1 < 0) {
1912
- for (let k = 0; k > roundAt; k--) {
1913
- digits.unshift(0);
1914
- parsedNumber.integerLen++;
1915
- }
1916
- digits.unshift(1);
1917
- parsedNumber.integerLen++;
1918
- }
1919
- else {
1920
- digits[roundAt - 1]++;
1921
- }
1922
- }
1923
- // Pad out with zeros to get the required fraction length
1924
- for (; fractionLen < Math.max(0, fractionSize); fractionLen++)
1925
- digits.push(0);
1926
- let dropTrailingZeros = fractionSize !== 0;
1927
- // Minimal length = nb of decimals required + current nb of integers
1928
- // Any number besides that is optional and can be removed if it's a trailing 0
1929
- const minLen = minFrac + parsedNumber.integerLen;
1930
- // Do any carrying, e.g. a digit was rounded up to 10
1931
- const carry = digits.reduceRight(function (carry, d, i, digits) {
1932
- d = d + carry;
1933
- digits[i] = d < 10 ? d : d - 10; // d % 10
1934
- if (dropTrailingZeros) {
1935
- // Do not keep meaningless fractional trailing zeros (e.g. 15.52000 --> 15.52)
1936
- if (digits[i] === 0 && i >= minLen) {
1937
- digits.pop();
1938
- }
1939
- else {
1940
- dropTrailingZeros = false;
1941
- }
1942
- }
1943
- return d >= 10 ? 1 : 0; // Math.floor(d / 10);
1944
- }, 0);
1945
- if (carry) {
1946
- digits.unshift(carry);
1947
- parsedNumber.integerLen++;
1948
- }
1949
- }
1950
- function parseIntAutoRadix(text) {
1951
- const result = parseInt(text);
1952
- if (isNaN(result)) {
1953
- throw new _RuntimeError(2305 /* RuntimeErrorCode.INVALID_INTEGER_LITERAL */, ngDevMode && 'Invalid integer literal when parsing ' + text);
1954
- }
1955
- return result;
1956
- }
1957
-
1958
- /**
1959
- * @publicApi
1960
- */
1961
- class NgLocalization {
1962
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgLocalization, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1963
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgLocalization, providedIn: 'root', useFactory: (locale) => new NgLocaleLocalization(locale), deps: [{ token: LOCALE_ID }] });
1964
- }
1965
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgLocalization, decorators: [{
1966
- type: Injectable,
1967
- args: [{
1968
- providedIn: 'root',
1969
- useFactory: (locale) => new NgLocaleLocalization(locale),
1970
- deps: [LOCALE_ID],
1971
- }]
1972
- }] });
1973
- /**
1974
- * Returns the plural category for a given value.
1975
- * - "=value" when the case exists,
1976
- * - the plural category otherwise
1977
- */
1978
- function getPluralCategory(value, cases, ngLocalization, locale) {
1979
- let key = `=${value}`;
1980
- if (cases.indexOf(key) > -1) {
1981
- return key;
1982
- }
1983
- key = ngLocalization.getPluralCategory(value, locale);
1984
- if (cases.indexOf(key) > -1) {
1985
- return key;
1986
- }
1987
- if (cases.indexOf('other') > -1) {
1988
- return 'other';
1989
- }
1990
- throw new _RuntimeError(2308 /* RuntimeErrorCode.NO_PLURAL_MESSAGE_FOUND */, ngDevMode && `No plural message found for value "${value}"`);
1991
- }
1992
- /**
1993
- * Returns the plural case based on the locale
1994
- *
1995
- * @publicApi
1996
- */
1997
- class NgLocaleLocalization extends NgLocalization {
1998
- locale;
1999
- constructor(locale) {
2000
- super();
2001
- this.locale = locale;
2002
- }
2003
- getPluralCategory(value, locale) {
2004
- const plural = getLocalePluralCase(locale || this.locale)(value);
2005
- switch (plural) {
2006
- case Plural.Zero:
2007
- return 'zero';
2008
- case Plural.One:
2009
- return 'one';
2010
- case Plural.Two:
2011
- return 'two';
2012
- case Plural.Few:
2013
- return 'few';
2014
- case Plural.Many:
2015
- return 'many';
2016
- default:
2017
- return 'other';
2018
- }
2019
- }
2020
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgLocaleLocalization, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
2021
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgLocaleLocalization });
2022
- }
2023
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgLocaleLocalization, decorators: [{
2024
- type: Injectable
2025
- }], ctorParameters: () => [{ type: undefined, decorators: [{
2026
- type: Inject,
2027
- args: [LOCALE_ID]
2028
- }] }] });
2029
-
2030
- const WS_REGEXP = /\s+/;
2031
- const EMPTY_ARRAY = [];
2032
- /**
2033
- * @ngModule CommonModule
2034
- *
2035
- * @usageNotes
2036
- * ```html
2037
- * <some-element [ngClass]="stringExp|arrayExp|objExp|Set">...</some-element>
2038
- *
2039
- * <some-element [ngClass]="{'class1 class2 class3' : true}">...</some-element>
2040
- * ```
2041
- *
2042
- * For more simple use cases you can use the [class bindings](/guide/templates/binding#css-class-and-style-property-bindings) directly.
2043
- * It doesn't require importing a directive.
2044
- *
2045
- * ```html
2046
- * <some-element [class]="'first second'">...</some-element>
2047
- *
2048
- * <some-element [class.expanded]="isExpanded">...</some-element>
2049
- *
2050
- * <some-element [class]="['first', 'second']">...</some-element>
2051
- *
2052
- * <some-element [class]="{'first': true, 'second': true, 'third': false}">...</some-element>
2053
- * ```
2054
- * @description
2055
- *
2056
- * Adds and removes CSS classes on an HTML element.
2057
- *
2058
- * The CSS classes are updated as follows, depending on the type of the expression evaluation:
2059
- * - `string` - the CSS classes listed in the string (space delimited) are added,
2060
- * - `Array` - the CSS classes declared as Array elements are added,
2061
- * - `Object` - keys are CSS classes that get added when the expression given in the value
2062
- * evaluates to a truthy value, otherwise they are removed.
2063
- *
2064
- *
2065
- * @see [Class bindings](/guide/templates/binding#css-class-and-style-property-bindings)
2066
- *
2067
- * @publicApi
2068
- */
2069
- class NgClass {
2070
- _ngEl;
2071
- _renderer;
2072
- initialClasses = EMPTY_ARRAY;
2073
- rawClass;
2074
- stateMap = new Map();
2075
- constructor(_ngEl, _renderer) {
2076
- this._ngEl = _ngEl;
2077
- this._renderer = _renderer;
2078
- }
2079
- set klass(value) {
2080
- this.initialClasses = value != null ? value.trim().split(WS_REGEXP) : EMPTY_ARRAY;
2081
- }
2082
- set ngClass(value) {
2083
- this.rawClass = typeof value === 'string' ? value.trim().split(WS_REGEXP) : value;
2084
- }
2085
- /*
2086
- The NgClass directive uses the custom change detection algorithm for its inputs. The custom
2087
- algorithm is necessary since inputs are represented as complex object or arrays that need to be
2088
- deeply-compared.
2089
-
2090
- This algorithm is perf-sensitive since NgClass is used very frequently and its poor performance
2091
- might negatively impact runtime performance of the entire change detection cycle. The design of
2092
- this algorithm is making sure that:
2093
- - there is no unnecessary DOM manipulation (CSS classes are added / removed from the DOM only when
2094
- needed), even if references to bound objects change;
2095
- - there is no memory allocation if nothing changes (even relatively modest memory allocation
2096
- during the change detection cycle can result in GC pauses for some of the CD cycles).
2097
-
2098
- The algorithm works by iterating over the set of bound classes, staring with [class] binding and
2099
- then going over [ngClass] binding. For each CSS class name:
2100
- - check if it was seen before (this information is tracked in the state map) and if its value
2101
- changed;
2102
- - mark it as "touched" - names that are not marked are not present in the latest set of binding
2103
- and we can remove such class name from the internal data structures;
2104
-
2105
- After iteration over all the CSS class names we've got data structure with all the information
2106
- necessary to synchronize changes to the DOM - it is enough to iterate over the state map, flush
2107
- changes to the DOM and reset internal data structures so those are ready for the next change
2108
- detection cycle.
2109
- */
2110
- ngDoCheck() {
2111
- // classes from the [class] binding
2112
- for (const klass of this.initialClasses) {
2113
- this._updateState(klass, true);
2114
- }
2115
- // classes from the [ngClass] binding
2116
- const rawClass = this.rawClass;
2117
- if (Array.isArray(rawClass) || rawClass instanceof Set) {
2118
- for (const klass of rawClass) {
2119
- this._updateState(klass, true);
2120
- }
2121
- }
2122
- else if (rawClass != null) {
2123
- for (const klass of Object.keys(rawClass)) {
2124
- this._updateState(klass, Boolean(rawClass[klass]));
2125
- }
2126
- }
2127
- this._applyStateDiff();
2128
- }
2129
- _updateState(klass, nextEnabled) {
2130
- const state = this.stateMap.get(klass);
2131
- if (state !== undefined) {
2132
- if (state.enabled !== nextEnabled) {
2133
- state.changed = true;
2134
- state.enabled = nextEnabled;
2135
- }
2136
- state.touched = true;
2137
- }
2138
- else {
2139
- this.stateMap.set(klass, { enabled: nextEnabled, changed: true, touched: true });
2140
- }
2141
- }
2142
- _applyStateDiff() {
2143
- for (const stateEntry of this.stateMap) {
2144
- const klass = stateEntry[0];
2145
- const state = stateEntry[1];
2146
- if (state.changed) {
2147
- this._toggleClass(klass, state.enabled);
2148
- state.changed = false;
2149
- }
2150
- else if (!state.touched) {
2151
- // A class that was previously active got removed from the new collection of classes -
2152
- // remove from the DOM as well.
2153
- if (state.enabled) {
2154
- this._toggleClass(klass, false);
2155
- }
2156
- this.stateMap.delete(klass);
2157
- }
2158
- state.touched = false;
2159
- }
2160
- }
2161
- _toggleClass(klass, enabled) {
2162
- if (ngDevMode) {
2163
- if (typeof klass !== 'string') {
2164
- throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${_stringify(klass)}`);
2165
- }
2166
- }
2167
- klass = klass.trim();
2168
- if (klass.length > 0) {
2169
- klass.split(WS_REGEXP).forEach((klass) => {
2170
- if (enabled) {
2171
- this._renderer.addClass(this._ngEl.nativeElement, klass);
2172
- }
2173
- else {
2174
- this._renderer.removeClass(this._ngEl.nativeElement, klass);
2175
- }
2176
- });
2177
- }
2178
- }
2179
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgClass, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
2180
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: NgClass, isStandalone: true, selector: "[ngClass]", inputs: { klass: ["class", "klass"], ngClass: "ngClass" }, ngImport: i0 });
2181
- }
2182
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgClass, decorators: [{
2183
- type: Directive,
2184
- args: [{
2185
- selector: '[ngClass]',
2186
- }]
2187
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { klass: [{
2188
- type: Input,
2189
- args: ['class']
2190
- }], ngClass: [{
2191
- type: Input,
2192
- args: ['ngClass']
2193
- }] } });
2194
-
2195
- /**
2196
- * Instantiates a {@link /api/core/Component Component} type and inserts its Host View into the current View.
2197
- * `NgComponentOutlet` provides a declarative approach for dynamic component creation.
2198
- *
2199
- * `NgComponentOutlet` requires a component type, if a falsy value is set the view will clear and
2200
- * any existing component will be destroyed.
2201
- *
2202
- * @usageNotes
2203
- *
2204
- * ### Fine tune control
2205
- *
2206
- * You can control the component creation process by using the following optional attributes:
2207
- *
2208
- * * `ngComponentOutletInputs`: Optional component inputs object, which will be bind to the
2209
- * component.
2210
- *
2211
- * * `ngComponentOutletInjector`: Optional custom {@link Injector} that will be used as parent for
2212
- * the Component. Defaults to the injector of the current view container.
2213
- *
2214
- * * `ngComponentOutletEnvironmentInjector`: Optional custom {@link EnvironmentInjector} which will
2215
- * provide the component's environment.
2216
- *
2217
- * * `ngComponentOutletContent`: Optional list of projectable nodes to insert into the content
2218
- * section of the component, if it exists.
2219
- *
2220
- * * `ngComponentOutletNgModule`: Optional NgModule class reference to allow loading another
2221
- * module dynamically, then loading a component from that module.
2222
- *
2223
- * * `ngComponentOutletNgModuleFactory`: Deprecated config option that allows providing optional
2224
- * NgModule factory to allow loading another module dynamically, then loading a component from that
2225
- * module. Use `ngComponentOutletNgModule` instead.
2226
- *
2227
- * ### Syntax
2228
- *
2229
- * Simple
2230
- * ```html
2231
- * <ng-container *ngComponentOutlet="componentTypeExpression"></ng-container>
2232
- * ```
2233
- *
2234
- * With inputs
2235
- * ```html
2236
- * <ng-container *ngComponentOutlet="componentTypeExpression;
2237
- * inputs: inputsExpression;">
2238
- * </ng-container>
2239
- * ```
2240
- *
2241
- * Customized injector/content
2242
- * ```html
2243
- * <ng-container *ngComponentOutlet="componentTypeExpression;
2244
- * injector: injectorExpression;
2245
- * content: contentNodesExpression;">
2246
- * </ng-container>
2247
- * ```
2248
- *
2249
- * Customized NgModule reference
2250
- * ```html
2251
- * <ng-container *ngComponentOutlet="componentTypeExpression;
2252
- * ngModule: ngModuleClass;">
2253
- * </ng-container>
2254
- * ```
2255
- *
2256
- * ### A simple example
2257
- *
2258
- * {@example common/ngComponentOutlet/ts/module.ts region='SimpleExample'}
2259
- *
2260
- * A more complete example with additional options:
2261
- *
2262
- * {@example common/ngComponentOutlet/ts/module.ts region='CompleteExample'}
2263
- *
2264
- * @publicApi
2265
- * @ngModule CommonModule
2266
- */
2267
- class NgComponentOutlet {
2268
- _viewContainerRef;
2269
- // TODO(crisbeto): this should be `Type<T>`, but doing so broke a few
2270
- // targets in a TGP so we need to do it in a major version.
2271
- /** Component that should be rendered in the outlet. */
2272
- ngComponentOutlet = null;
2273
- ngComponentOutletInputs;
2274
- ngComponentOutletInjector;
2275
- ngComponentOutletEnvironmentInjector;
2276
- ngComponentOutletContent;
2277
- ngComponentOutletNgModule;
2278
- /**
2279
- * @deprecated This input is deprecated, use `ngComponentOutletNgModule` instead.
2280
- */
2281
- ngComponentOutletNgModuleFactory;
2282
- _componentRef;
2283
- _moduleRef;
2284
- /**
2285
- * A helper data structure that allows us to track inputs that were part of the
2286
- * ngComponentOutletInputs expression. Tracking inputs is necessary for proper removal of ones
2287
- * that are no longer referenced.
2288
- */
2289
- _inputsUsed = new Map();
2290
- /**
2291
- * Gets the instance of the currently-rendered component.
2292
- * Will be null if no component has been rendered.
2293
- */
2294
- get componentInstance() {
2295
- return this._componentRef?.instance ?? null;
2296
- }
2297
- constructor(_viewContainerRef) {
2298
- this._viewContainerRef = _viewContainerRef;
2299
- }
2300
- _needToReCreateNgModuleInstance(changes) {
2301
- // Note: square brackets property accessor is safe for Closure compiler optimizations (the
2302
- // `changes` argument of the `ngOnChanges` lifecycle hook retains the names of the fields that
2303
- // were changed).
2304
- return (changes['ngComponentOutletNgModule'] !== undefined ||
2305
- changes['ngComponentOutletNgModuleFactory'] !== undefined);
2306
- }
2307
- _needToReCreateComponentInstance(changes) {
2308
- // Note: square brackets property accessor is safe for Closure compiler optimizations (the
2309
- // `changes` argument of the `ngOnChanges` lifecycle hook retains the names of the fields that
2310
- // were changed).
2311
- return (changes['ngComponentOutlet'] !== undefined ||
2312
- changes['ngComponentOutletContent'] !== undefined ||
2313
- changes['ngComponentOutletInjector'] !== undefined ||
2314
- changes['ngComponentOutletEnvironmentInjector'] !== undefined ||
2315
- this._needToReCreateNgModuleInstance(changes));
2316
- }
2317
- /** @docs-private */
2318
- ngOnChanges(changes) {
2319
- if (this._needToReCreateComponentInstance(changes)) {
2320
- this._viewContainerRef.clear();
2321
- this._inputsUsed.clear();
2322
- this._componentRef = undefined;
2323
- if (this.ngComponentOutlet) {
2324
- const injector = this.ngComponentOutletInjector || this._viewContainerRef.parentInjector;
2325
- if (this._needToReCreateNgModuleInstance(changes)) {
2326
- this._moduleRef?.destroy();
2327
- if (this.ngComponentOutletNgModule) {
2328
- this._moduleRef = createNgModule(this.ngComponentOutletNgModule, getParentInjector(injector));
2329
- }
2330
- else if (this.ngComponentOutletNgModuleFactory) {
2331
- this._moduleRef = this.ngComponentOutletNgModuleFactory.create(getParentInjector(injector));
2332
- }
2333
- else {
2334
- this._moduleRef = undefined;
2335
- }
2336
- }
2337
- this._componentRef = this._viewContainerRef.createComponent(this.ngComponentOutlet, {
2338
- injector,
2339
- ngModuleRef: this._moduleRef,
2340
- projectableNodes: this.ngComponentOutletContent,
2341
- environmentInjector: this.ngComponentOutletEnvironmentInjector,
2342
- });
2343
- }
2344
- }
2345
- }
2346
- /** @docs-private */
2347
- ngDoCheck() {
2348
- if (this._componentRef) {
2349
- if (this.ngComponentOutletInputs) {
2350
- for (const inputName of Object.keys(this.ngComponentOutletInputs)) {
2351
- this._inputsUsed.set(inputName, true);
2352
- }
2353
- }
2354
- this._applyInputStateDiff(this._componentRef);
2355
- }
2356
- }
2357
- /** @docs-private */
2358
- ngOnDestroy() {
2359
- this._moduleRef?.destroy();
2360
- }
2361
- _applyInputStateDiff(componentRef) {
2362
- for (const [inputName, touched] of this._inputsUsed) {
2363
- if (!touched) {
2364
- // The input that was previously active no longer exists and needs to be set to undefined.
2365
- componentRef.setInput(inputName, undefined);
2366
- this._inputsUsed.delete(inputName);
2367
- }
2368
- else {
2369
- // Since touched is true, it can be asserted that the inputs object is not empty.
2370
- componentRef.setInput(inputName, this.ngComponentOutletInputs[inputName]);
2371
- this._inputsUsed.set(inputName, false);
2372
- }
2373
- }
2374
- }
2375
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgComponentOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
2376
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: NgComponentOutlet, isStandalone: true, selector: "[ngComponentOutlet]", inputs: { ngComponentOutlet: "ngComponentOutlet", ngComponentOutletInputs: "ngComponentOutletInputs", ngComponentOutletInjector: "ngComponentOutletInjector", ngComponentOutletEnvironmentInjector: "ngComponentOutletEnvironmentInjector", ngComponentOutletContent: "ngComponentOutletContent", ngComponentOutletNgModule: "ngComponentOutletNgModule", ngComponentOutletNgModuleFactory: "ngComponentOutletNgModuleFactory" }, exportAs: ["ngComponentOutlet"], usesOnChanges: true, ngImport: i0 });
2377
- }
2378
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgComponentOutlet, decorators: [{
2379
- type: Directive,
2380
- args: [{
2381
- selector: '[ngComponentOutlet]',
2382
- exportAs: 'ngComponentOutlet',
2383
- }]
2384
- }], ctorParameters: () => [{ type: i0.ViewContainerRef }], propDecorators: { ngComponentOutlet: [{
2385
- type: Input
2386
- }], ngComponentOutletInputs: [{
2387
- type: Input
2388
- }], ngComponentOutletInjector: [{
2389
- type: Input
2390
- }], ngComponentOutletEnvironmentInjector: [{
2391
- type: Input
2392
- }], ngComponentOutletContent: [{
2393
- type: Input
2394
- }], ngComponentOutletNgModule: [{
2395
- type: Input
2396
- }], ngComponentOutletNgModuleFactory: [{
2397
- type: Input
2398
- }] } });
2399
- // Helper function that returns an Injector instance of a parent NgModule.
2400
- function getParentInjector(injector) {
2401
- const parentNgModule = injector.get(NgModuleRef);
2402
- return parentNgModule.injector;
2403
- }
2404
-
2405
- /**
2406
- * @publicApi
2407
- *
2408
- * @deprecated 20.0
2409
- * The `ngFor` directive is deprecated. Use the `@for` block instead.
2410
- */
2411
- class NgForOfContext {
2412
- $implicit;
2413
- ngForOf;
2414
- index;
2415
- count;
2416
- constructor(
2417
- /** Reference to the current item from the collection. */
2418
- $implicit,
2419
- /**
2420
- * The value of the iterable expression. Useful when the expression is
2421
- * more complex then a property access, for example when using the async pipe
2422
- * (`userStreams | async`).
2423
- */
2424
- ngForOf,
2425
- /** Returns an index of the current item in the collection. */
2426
- index,
2427
- /** Returns total amount of items in the collection. */
2428
- count) {
2429
- this.$implicit = $implicit;
2430
- this.ngForOf = ngForOf;
2431
- this.index = index;
2432
- this.count = count;
2433
- }
2434
- // Indicates whether this is the first item in the collection.
2435
- get first() {
2436
- return this.index === 0;
2437
- }
2438
- // Indicates whether this is the last item in the collection.
2439
- get last() {
2440
- return this.index === this.count - 1;
2441
- }
2442
- // Indicates whether an index of this item in the collection is even.
2443
- get even() {
2444
- return this.index % 2 === 0;
2445
- }
2446
- // Indicates whether an index of this item in the collection is odd.
2447
- get odd() {
2448
- return !this.even;
2449
- }
2450
- }
2451
- /**
2452
- * A [structural directive](guide/directives/structural-directives) that renders
2453
- * a template for each item in a collection.
2454
- * The directive is placed on an element, which becomes the parent
2455
- * of the cloned templates.
2456
- *
2457
- * The `ngForOf` directive is generally used in the
2458
- * [shorthand form](guide/directives/structural-directives#asterisk) `*ngFor`.
2459
- * In this form, the template to be rendered for each iteration is the content
2460
- * of an anchor element containing the directive.
2461
- *
2462
- * The following example shows the shorthand syntax with some options,
2463
- * contained in an `<li>` element.
2464
- *
2465
- * ```html
2466
- * <li *ngFor="let item of items; index as i; trackBy: trackByFn">...</li>
2467
- * ```
2468
- *
2469
- * The shorthand form expands into a long form that uses the `ngForOf` selector
2470
- * on an `<ng-template>` element.
2471
- * The content of the `<ng-template>` element is the `<li>` element that held the
2472
- * short-form directive.
2473
- *
2474
- * Here is the expanded version of the short-form example.
2475
- *
2476
- * ```html
2477
- * <ng-template ngFor let-item [ngForOf]="items" let-i="index" [ngForTrackBy]="trackByFn">
2478
- * <li>...</li>
2479
- * </ng-template>
2480
- * ```
2481
- *
2482
- * Angular automatically expands the shorthand syntax as it compiles the template.
2483
- * The context for each embedded view is logically merged to the current component
2484
- * context according to its lexical position.
2485
- *
2486
- * When using the shorthand syntax, Angular allows only [one structural directive
2487
- * on an element](guide/directives/structural-directives#one-per-element).
2488
- * If you want to iterate conditionally, for example,
2489
- * put the `*ngIf` on a container element that wraps the `*ngFor` element.
2490
- * For further discussion, see
2491
- * [Structural Directives](guide/directives/structural-directives#one-per-element).
2492
- *
2493
- * @usageNotes
2494
- *
2495
- * ### Local variables
2496
- *
2497
- * `NgForOf` provides exported values that can be aliased to local variables.
2498
- * For example:
2499
- *
2500
- * ```html
2501
- * <li *ngFor="let user of users; index as i; first as isFirst">
2502
- * {{i}}/{{users.length}}. {{user}} <span *ngIf="isFirst">default</span>
2503
- * </li>
2504
- * ```
2505
- *
2506
- * The following exported values can be aliased to local variables:
2507
- *
2508
- * - `$implicit: T`: The value of the individual items in the iterable (`ngForOf`).
2509
- * - `ngForOf: NgIterable<T>`: The value of the iterable expression. Useful when the expression is
2510
- * more complex then a property access, for example when using the async pipe (`userStreams |
2511
- * async`).
2512
- * - `index: number`: The index of the current item in the iterable.
2513
- * - `count: number`: The length of the iterable.
2514
- * - `first: boolean`: True when the item is the first item in the iterable.
2515
- * - `last: boolean`: True when the item is the last item in the iterable.
2516
- * - `even: boolean`: True when the item has an even index in the iterable.
2517
- * - `odd: boolean`: True when the item has an odd index in the iterable.
2518
- *
2519
- * ### Change propagation
2520
- *
2521
- * When the contents of the iterator changes, `NgForOf` makes the corresponding changes to the DOM:
2522
- *
2523
- * * When an item is added, a new instance of the template is added to the DOM.
2524
- * * When an item is removed, its template instance is removed from the DOM.
2525
- * * When items are reordered, their respective templates are reordered in the DOM.
2526
- *
2527
- * Angular uses object identity to track insertions and deletions within the iterator and reproduce
2528
- * those changes in the DOM. This has important implications for animations and any stateful
2529
- * controls that are present, such as `<input>` elements that accept user input. Inserted rows can
2530
- * be animated in, deleted rows can be animated out, and unchanged rows retain any unsaved state
2531
- * such as user input.
2532
- * For more on animations, see [Transitions and Triggers](guide/animations/transition-and-triggers).
2533
- *
2534
- * The identities of elements in the iterator can change while the data does not.
2535
- * This can happen, for example, if the iterator is produced from an RPC to the server, and that
2536
- * RPC is re-run. Even if the data hasn't changed, the second response produces objects with
2537
- * different identities, and Angular must tear down the entire DOM and rebuild it (as if all old
2538
- * elements were deleted and all new elements inserted).
2539
- *
2540
- * To avoid this expensive operation, you can customize the default tracking algorithm.
2541
- * by supplying the `trackBy` option to `NgForOf`.
2542
- * `trackBy` takes a function that has two arguments: `index` and `item`.
2543
- * If `trackBy` is given, Angular tracks changes by the return value of the function.
2544
- *
2545
- * @see [Structural Directives](guide/directives/structural-directives)
2546
- * @ngModule CommonModule
2547
- * @publicApi
2548
- *
2549
- * @deprecated 20.0
2550
- * Use the `@for` block instead. Intent to remove in v22
2551
- */
2552
- class NgForOf {
2553
- _viewContainer;
2554
- _template;
2555
- _differs;
2556
- /**
2557
- * The value of the iterable expression, which can be used as a
2558
- * [template input variable](guide/directives/structural-directives#shorthand).
2559
- * @deprecated The `ngFor` directive is deprecated. Use the `@for` block instead.
2560
- */
2561
- set ngForOf(ngForOf) {
2562
- this._ngForOf = ngForOf;
2563
- this._ngForOfDirty = true;
2564
- }
2565
- /**
2566
- * Specifies a custom `TrackByFunction` to compute the identity of items in an iterable.
2567
- *
2568
- * If a custom `TrackByFunction` is not provided, `NgForOf` will use the item's [object
2569
- * identity](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is)
2570
- * as the key.
2571
- *
2572
- * `NgForOf` uses the computed key to associate items in an iterable with DOM elements
2573
- * it produces for these items.
2574
- *
2575
- * A custom `TrackByFunction` is useful to provide good user experience in cases when items in an
2576
- * iterable rendered using `NgForOf` have a natural identifier (for example, custom ID or a
2577
- * primary key), and this iterable could be updated with new object instances that still
2578
- * represent the same underlying entity (for example, when data is re-fetched from the server,
2579
- * and the iterable is recreated and re-rendered, but most of the data is still the same).
2580
- *
2581
- * @see {@link TrackByFunction}
2582
- * @deprecated The `ngFor` directive is deprecated. Use the `@for` block instead.
2583
- */
2584
- set ngForTrackBy(fn) {
2585
- if ((typeof ngDevMode === 'undefined' || ngDevMode) && fn != null && typeof fn !== 'function') {
2586
- console.warn(`trackBy must be a function, but received ${JSON.stringify(fn)}. ` +
2587
- `See https://angular.dev/api/common/NgForOf#change-propagation for more information.`);
2588
- }
2589
- this._trackByFn = fn;
2590
- }
2591
- get ngForTrackBy() {
2592
- return this._trackByFn;
2593
- }
2594
- _ngForOf = null;
2595
- _ngForOfDirty = true;
2596
- _differ = null;
2597
- // waiting for microsoft/typescript#43662 to allow the return type `TrackByFunction|undefined` for
2598
- // the getter
2599
- _trackByFn;
2600
- constructor(_viewContainer, _template, _differs) {
2601
- this._viewContainer = _viewContainer;
2602
- this._template = _template;
2603
- this._differs = _differs;
2604
- }
2605
- /**
2606
- * A reference to the template that is stamped out for each item in the iterable.
2607
- * @see [template reference variable](guide/templates/variables#template-reference-variables)
2608
- * @deprecated The `ngFor` directive is deprecated. Use the `@for` block instead.
2609
- */
2610
- set ngForTemplate(value) {
2611
- // TODO(TS2.1): make TemplateRef<Partial<NgForRowOf<T>>> once we move to TS v2.1
2612
- // The current type is too restrictive; a template that just uses index, for example,
2613
- // should be acceptable.
2614
- if (value) {
2615
- this._template = value;
2616
- }
2617
- }
2618
- /**
2619
- * Applies the changes when needed.
2620
- * @docs-private
2621
- */
2622
- ngDoCheck() {
2623
- if (this._ngForOfDirty) {
2624
- this._ngForOfDirty = false;
2625
- // React on ngForOf changes only once all inputs have been initialized
2626
- const value = this._ngForOf;
2627
- if (!this._differ && value) {
2628
- if (typeof ngDevMode === 'undefined' || ngDevMode) {
2629
- try {
2630
- // CAUTION: this logic is duplicated for production mode below, as the try-catch
2631
- // is only present in development builds.
2632
- this._differ = this._differs.find(value).create(this.ngForTrackBy);
2633
- }
2634
- catch {
2635
- let errorMessage = `Cannot find a differ supporting object '${value}' of type '` +
2636
- `${getTypeName(value)}'. NgFor only supports binding to Iterables, such as Arrays.`;
2637
- if (typeof value === 'object') {
2638
- errorMessage += ' Did you mean to use the keyvalue pipe?';
2639
- }
2640
- throw new _RuntimeError(-2200 /* RuntimeErrorCode.NG_FOR_MISSING_DIFFER */, errorMessage);
2641
- }
2642
- }
2643
- else {
2644
- // CAUTION: this logic is duplicated for development mode above, as the try-catch
2645
- // is only present in development builds.
2646
- this._differ = this._differs.find(value).create(this.ngForTrackBy);
2647
- }
2648
- }
2649
- }
2650
- if (this._differ) {
2651
- const changes = this._differ.diff(this._ngForOf);
2652
- if (changes)
2653
- this._applyChanges(changes);
2654
- }
2655
- }
2656
- _applyChanges(changes) {
2657
- const viewContainer = this._viewContainer;
2658
- changes.forEachOperation((item, adjustedPreviousIndex, currentIndex) => {
2659
- if (item.previousIndex == null) {
2660
- // NgForOf is never "null" or "undefined" here because the differ detected
2661
- // that a new item needs to be inserted from the iterable. This implies that
2662
- // there is an iterable value for "_ngForOf".
2663
- viewContainer.createEmbeddedView(this._template, new NgForOfContext(item.item, this._ngForOf, -1, -1), currentIndex === null ? undefined : currentIndex);
2664
- }
2665
- else if (currentIndex == null) {
2666
- viewContainer.remove(adjustedPreviousIndex === null ? undefined : adjustedPreviousIndex);
2667
- }
2668
- else if (adjustedPreviousIndex !== null) {
2669
- const view = viewContainer.get(adjustedPreviousIndex);
2670
- viewContainer.move(view, currentIndex);
2671
- applyViewChange(view, item);
2672
- }
2673
- });
2674
- for (let i = 0, ilen = viewContainer.length; i < ilen; i++) {
2675
- const viewRef = viewContainer.get(i);
2676
- const context = viewRef.context;
2677
- context.index = i;
2678
- context.count = ilen;
2679
- context.ngForOf = this._ngForOf;
2680
- }
2681
- changes.forEachIdentityChange((record) => {
2682
- const viewRef = viewContainer.get(record.currentIndex);
2683
- applyViewChange(viewRef, record);
2684
- });
2685
- }
2686
- /**
2687
- * Asserts the correct type of the context for the template that `NgForOf` will render.
2688
- *
2689
- * The presence of this method is a signal to the Ivy template type-check compiler that the
2690
- * `NgForOf` structural directive renders its template with a specific context type.
2691
- */
2692
- static ngTemplateContextGuard(dir, ctx) {
2693
- return true;
2694
- }
2695
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgForOf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive });
2696
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: NgForOf, isStandalone: true, selector: "[ngFor][ngForOf]", inputs: { ngForOf: "ngForOf", ngForTrackBy: "ngForTrackBy", ngForTemplate: "ngForTemplate" }, ngImport: i0 });
2697
- }
2698
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgForOf, decorators: [{
2699
- type: Directive,
2700
- args: [{
2701
- selector: '[ngFor][ngForOf]',
2702
- }]
2703
- }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: i0.IterableDiffers }], propDecorators: { ngForOf: [{
2704
- type: Input
2705
- }], ngForTrackBy: [{
2706
- type: Input
2707
- }], ngForTemplate: [{
2708
- type: Input
2709
- }] } });
2710
- function applyViewChange(view, record) {
2711
- view.context.$implicit = record.item;
2712
- }
2713
- function getTypeName(type) {
2714
- return type['name'] || typeof type;
2715
- }
2716
-
2717
- /**
2718
- * A structural directive that conditionally includes a template based on the value of
2719
- * an expression coerced to Boolean.
2720
- * When the expression evaluates to true, Angular renders the template
2721
- * provided in a `then` clause, and when false or null,
2722
- * Angular renders the template provided in an optional `else` clause. The default
2723
- * template for the `else` clause is blank.
2724
- *
2725
- * A [shorthand form](guide/directives/structural-directives#asterisk) of the directive,
2726
- * `*ngIf="condition"`, is generally used, provided
2727
- * as an attribute of the anchor element for the inserted template.
2728
- * Angular expands this into a more explicit version, in which the anchor element
2729
- * is contained in an `<ng-template>` element.
2730
- *
2731
- * Simple form with shorthand syntax:
2732
- *
2733
- * ```html
2734
- * <div *ngIf="condition">Content to render when condition is true.</div>
2735
- * ```
2736
- *
2737
- * Simple form with expanded syntax:
2738
- *
2739
- * ```html
2740
- * <ng-template [ngIf]="condition"><div>Content to render when condition is
2741
- * true.</div></ng-template>
2742
- * ```
2743
- *
2744
- * Form with an "else" block:
2745
- *
2746
- * ```html
2747
- * <div *ngIf="condition; else elseBlock">Content to render when condition is true.</div>
2748
- * <ng-template #elseBlock>Content to render when condition is false.</ng-template>
2749
- * ```
2750
- *
2751
- * Shorthand form with "then" and "else" blocks:
2752
- *
2753
- * ```html
2754
- * <div *ngIf="condition; then thenBlock else elseBlock"></div>
2755
- * <ng-template #thenBlock>Content to render when condition is true.</ng-template>
2756
- * <ng-template #elseBlock>Content to render when condition is false.</ng-template>
2757
- * ```
2758
- *
2759
- * Form with storing the value locally:
2760
- *
2761
- * ```html
2762
- * <div *ngIf="condition as value; else elseBlock">{{value}}</div>
2763
- * <ng-template #elseBlock>Content to render when value is null.</ng-template>
2764
- * ```
2765
- *
2766
- * @usageNotes
2767
- *
2768
- * The `*ngIf` directive is most commonly used to conditionally show an inline template,
2769
- * as seen in the following example.
2770
- * The default `else` template is blank.
2771
- *
2772
- * {@example common/ngIf/ts/module.ts region='NgIfSimple'}
2773
- *
2774
- * ### Showing an alternative template using `else`
2775
- *
2776
- * To display a template when `expression` evaluates to false, use an `else` template
2777
- * binding as shown in the following example.
2778
- * The `else` binding points to an `<ng-template>` element labeled `#elseBlock`.
2779
- * The template can be defined anywhere in the component view, but is typically placed right after
2780
- * `ngIf` for readability.
2781
- *
2782
- * {@example common/ngIf/ts/module.ts region='NgIfElse'}
2783
- *
2784
- * ### Using an external `then` template
2785
- *
2786
- * In the previous example, the then-clause template is specified inline, as the content of the
2787
- * tag that contains the `ngIf` directive. You can also specify a template that is defined
2788
- * externally, by referencing a labeled `<ng-template>` element. When you do this, you can
2789
- * change which template to use at runtime, as shown in the following example.
2790
- *
2791
- * {@example common/ngIf/ts/module.ts region='NgIfThenElse'}
2792
- *
2793
- * ### Storing a conditional result in a variable
2794
- *
2795
- * You might want to show a set of properties from the same object. If you are waiting
2796
- * for asynchronous data, the object can be undefined.
2797
- * In this case, you can use `ngIf` and store the result of the condition in a local
2798
- * variable as shown in the following example.
2799
- *
2800
- * {@example common/ngIf/ts/module.ts region='NgIfAs'}
2801
- *
2802
- * This code uses only one `AsyncPipe`, so only one subscription is created.
2803
- * The conditional statement stores the result of `userStream|async` in the local variable `user`.
2804
- * You can then bind the local `user` repeatedly.
2805
- *
2806
- * The conditional displays the data only if `userStream` returns a value,
2807
- * so you don't need to use the
2808
- * safe-navigation-operator (`?.`)
2809
- * to guard against null values when accessing properties.
2810
- * You can display an alternative template while waiting for the data.
2811
- *
2812
- * ### Shorthand syntax
2813
- *
2814
- * The shorthand syntax `*ngIf` expands into two separate template specifications
2815
- * for the "then" and "else" clauses. For example, consider the following shorthand statement,
2816
- * that is meant to show a loading page while waiting for data to be loaded.
2817
- *
2818
- * ```html
2819
- * <div class="hero-list" *ngIf="heroes else loading">
2820
- * ...
2821
- * </div>
2822
- *
2823
- * <ng-template #loading>
2824
- * <div>Loading...</div>
2825
- * </ng-template>
2826
- * ```
2827
- *
2828
- * You can see that the "else" clause references the `<ng-template>`
2829
- * with the `#loading` label, and the template for the "then" clause
2830
- * is provided as the content of the anchor element.
2831
- *
2832
- * However, when Angular expands the shorthand syntax, it creates
2833
- * another `<ng-template>` tag, with `ngIf` and `ngIfElse` directives.
2834
- * The anchor element containing the template for the "then" clause becomes
2835
- * the content of this unlabeled `<ng-template>` tag.
2836
- *
2837
- * ```html
2838
- * <ng-template [ngIf]="heroes" [ngIfElse]="loading">
2839
- * <div class="hero-list">
2840
- * ...
2841
- * </div>
2842
- * </ng-template>
2843
- *
2844
- * <ng-template #loading>
2845
- * <div>Loading...</div>
2846
- * </ng-template>
2847
- * ```
2848
- *
2849
- * The presence of the implicit template object has implications for the nesting of
2850
- * structural directives. For more on this subject, see
2851
- * [Structural Directives](guide/directives/structural-directives#one-per-element).
2852
- *
2853
- * @ngModule CommonModule
2854
- * @publicApi
2855
- *
2856
- * @deprecated 20.0
2857
- * Use the `@if` block instead. Intent to remove in v22
2858
- */
2859
- class NgIf {
2860
- _viewContainer;
2861
- _context = new NgIfContext();
2862
- _thenTemplateRef = null;
2863
- _elseTemplateRef = null;
2864
- _thenViewRef = null;
2865
- _elseViewRef = null;
2866
- constructor(_viewContainer, templateRef) {
2867
- this._viewContainer = _viewContainer;
2868
- this._thenTemplateRef = templateRef;
2869
- }
2870
- /**
2871
- * The Boolean expression to evaluate as the condition for showing a template.
2872
- * @deprecated Use the `@if` block instead. Intent to remove in v22
2873
- */
2874
- set ngIf(condition) {
2875
- this._context.$implicit = this._context.ngIf = condition;
2876
- this._updateView();
2877
- }
2878
- /**
2879
- * A template to show if the condition expression evaluates to true.
2880
- * @deprecated Use the `@if` block instead. Intent to remove in v22
2881
- */
2882
- set ngIfThen(templateRef) {
2883
- assertTemplate(templateRef, (typeof ngDevMode === 'undefined' || ngDevMode) && 'ngIfThen');
2884
- this._thenTemplateRef = templateRef;
2885
- this._thenViewRef = null; // clear previous view if any.
2886
- this._updateView();
2887
- }
2888
- /**
2889
- * A template to show if the condition expression evaluates to false.
2890
- * @deprecated Use the `@if` block instead. Intent to remove in v22
2891
- */
2892
- set ngIfElse(templateRef) {
2893
- assertTemplate(templateRef, (typeof ngDevMode === 'undefined' || ngDevMode) && 'ngIfElse');
2894
- this._elseTemplateRef = templateRef;
2895
- this._elseViewRef = null; // clear previous view if any.
2896
- this._updateView();
2897
- }
2898
- _updateView() {
2899
- if (this._context.$implicit) {
2900
- if (!this._thenViewRef) {
2901
- this._viewContainer.clear();
2902
- this._elseViewRef = null;
2903
- if (this._thenTemplateRef) {
2904
- this._thenViewRef = this._viewContainer.createEmbeddedView(this._thenTemplateRef, this._context);
2905
- }
2906
- }
2907
- }
2908
- else {
2909
- if (!this._elseViewRef) {
2910
- this._viewContainer.clear();
2911
- this._thenViewRef = null;
2912
- if (this._elseTemplateRef) {
2913
- this._elseViewRef = this._viewContainer.createEmbeddedView(this._elseTemplateRef, this._context);
2914
- }
2915
- }
2916
- }
2917
- }
2918
- /** @internal */
2919
- static ngIfUseIfTypeGuard;
2920
- /**
2921
- * Assert the correct type of the expression bound to the `ngIf` input within the template.
2922
- *
2923
- * The presence of this static field is a signal to the Ivy template type check compiler that
2924
- * when the `NgIf` structural directive renders its template, the type of the expression bound
2925
- * to `ngIf` should be narrowed in some way. For `NgIf`, the binding expression itself is used to
2926
- * narrow its type, which allows the strictNullChecks feature of TypeScript to work with `NgIf`.
2927
- */
2928
- static ngTemplateGuard_ngIf;
2929
- /**
2930
- * Asserts the correct type of the context for the template that `NgIf` will render.
2931
- *
2932
- * The presence of this method is a signal to the Ivy template type-check compiler that the
2933
- * `NgIf` structural directive renders its template with a specific context type.
2934
- */
2935
- static ngTemplateContextGuard(dir, ctx) {
2936
- return true;
2937
- }
2938
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgIf, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
2939
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: NgIf, isStandalone: true, selector: "[ngIf]", inputs: { ngIf: "ngIf", ngIfThen: "ngIfThen", ngIfElse: "ngIfElse" }, ngImport: i0 });
2940
- }
2941
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgIf, decorators: [{
2942
- type: Directive,
2943
- args: [{
2944
- selector: '[ngIf]',
2945
- }]
2946
- }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }], propDecorators: { ngIf: [{
2947
- type: Input
2948
- }], ngIfThen: [{
2949
- type: Input
2950
- }], ngIfElse: [{
2951
- type: Input
2952
- }] } });
2953
- /**
2954
- * @publicApi
2955
- *
2956
- * @deprecated 20.0
2957
- * The ngIf directive is deprecated in favor of the @if block instead.
2958
- */
2959
- class NgIfContext {
2960
- $implicit = null;
2961
- ngIf = null;
2962
- }
2963
- function assertTemplate(templateRef, property) {
2964
- if (templateRef && !templateRef.createEmbeddedView) {
2965
- throw new _RuntimeError(2020 /* RuntimeErrorCode.NG_IF_NOT_A_TEMPLATE_REF */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
2966
- `${property} must be a TemplateRef, but received '${_stringify(templateRef)}'.`);
2967
- }
2968
- }
2969
-
2970
- class SwitchView {
2971
- _viewContainerRef;
2972
- _templateRef;
2973
- _created = false;
2974
- constructor(_viewContainerRef, _templateRef) {
2975
- this._viewContainerRef = _viewContainerRef;
2976
- this._templateRef = _templateRef;
2977
- }
2978
- create() {
2979
- this._created = true;
2980
- this._viewContainerRef.createEmbeddedView(this._templateRef);
2981
- }
2982
- destroy() {
2983
- this._created = false;
2984
- this._viewContainerRef.clear();
2985
- }
2986
- enforceState(created) {
2987
- if (created && !this._created) {
2988
- this.create();
2989
- }
2990
- else if (!created && this._created) {
2991
- this.destroy();
2992
- }
2993
- }
2994
- }
2995
- /**
2996
- * @ngModule CommonModule
2997
- *
2998
- * @description
2999
- * The `[ngSwitch]` directive on a container specifies an expression to match against.
3000
- * The expressions to match are provided by `ngSwitchCase` directives on views within the container.
3001
- * - Every view that matches is rendered.
3002
- * - If there are no matches, a view with the `ngSwitchDefault` directive is rendered.
3003
- * - Elements within the `[NgSwitch]` statement but outside of any `NgSwitchCase`
3004
- * or `ngSwitchDefault` directive are preserved at the location.
3005
- *
3006
- * @usageNotes
3007
- * Define a container element for the directive, and specify the switch expression
3008
- * to match against as an attribute:
3009
- *
3010
- * ```html
3011
- * <container-element [ngSwitch]="switch_expression">
3012
- * ```
3013
- *
3014
- * Within the container, `*ngSwitchCase` statements specify the match expressions
3015
- * as attributes. Include `*ngSwitchDefault` as the final case.
3016
- *
3017
- * ```html
3018
- * <container-element [ngSwitch]="switch_expression">
3019
- * <some-element *ngSwitchCase="match_expression_1">...</some-element>
3020
- * ...
3021
- * <some-element *ngSwitchDefault>...</some-element>
3022
- * </container-element>
3023
- * ```
3024
- *
3025
- * ### Usage Examples
3026
- *
3027
- * The following example shows how to use more than one case to display the same view:
3028
- *
3029
- * ```html
3030
- * <container-element [ngSwitch]="switch_expression">
3031
- * <!-- the same view can be shown in more than one case -->
3032
- * <some-element *ngSwitchCase="match_expression_1">...</some-element>
3033
- * <some-element *ngSwitchCase="match_expression_2">...</some-element>
3034
- * <some-other-element *ngSwitchCase="match_expression_3">...</some-other-element>
3035
- * <!--default case when there are no matches -->
3036
- * <some-element *ngSwitchDefault>...</some-element>
3037
- * </container-element>
3038
- * ```
3039
- *
3040
- * The following example shows how cases can be nested:
3041
- * ```html
3042
- * <container-element [ngSwitch]="switch_expression">
3043
- * <some-element *ngSwitchCase="match_expression_1">...</some-element>
3044
- * <some-element *ngSwitchCase="match_expression_2">...</some-element>
3045
- * <some-other-element *ngSwitchCase="match_expression_3">...</some-other-element>
3046
- * <ng-container *ngSwitchCase="match_expression_3">
3047
- * <!-- use a ng-container to group multiple root nodes -->
3048
- * <inner-element></inner-element>
3049
- * <inner-other-element></inner-other-element>
3050
- * </ng-container>
3051
- * <some-element *ngSwitchDefault>...</some-element>
3052
- * </container-element>
3053
- * ```
3054
- *
3055
- * @publicApi
3056
- * @see {@link NgSwitchCase}
3057
- * @see {@link NgSwitchDefault}
3058
- * @see [Structural Directives](guide/directives/structural-directives)
3059
- *
3060
- * @deprecated 20.0
3061
- * Use the `@switch` block instead. Intent to remove in v22
3062
- */
3063
- class NgSwitch {
3064
- _defaultViews = [];
3065
- _defaultUsed = false;
3066
- _caseCount = 0;
3067
- _lastCaseCheckIndex = 0;
3068
- _lastCasesMatched = false;
3069
- _ngSwitch;
3070
- /** @deprecated Use the `@switch` block instead. Intent to remove in v22 */
3071
- set ngSwitch(newValue) {
3072
- this._ngSwitch = newValue;
3073
- if (this._caseCount === 0) {
3074
- this._updateDefaultCases(true);
3075
- }
3076
- }
3077
- /** @internal */
3078
- _addCase() {
3079
- return this._caseCount++;
3080
- }
3081
- /** @internal */
3082
- _addDefault(view) {
3083
- this._defaultViews.push(view);
3084
- }
3085
- /** @internal */
3086
- _matchCase(value) {
3087
- const matched = value === this._ngSwitch;
3088
- this._lastCasesMatched ||= matched;
3089
- this._lastCaseCheckIndex++;
3090
- if (this._lastCaseCheckIndex === this._caseCount) {
3091
- this._updateDefaultCases(!this._lastCasesMatched);
3092
- this._lastCaseCheckIndex = 0;
3093
- this._lastCasesMatched = false;
3094
- }
3095
- return matched;
3096
- }
3097
- _updateDefaultCases(useDefault) {
3098
- if (this._defaultViews.length > 0 && useDefault !== this._defaultUsed) {
3099
- this._defaultUsed = useDefault;
3100
- for (const defaultView of this._defaultViews) {
3101
- defaultView.enforceState(useDefault);
3102
- }
3103
- }
3104
- }
3105
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgSwitch, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3106
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: NgSwitch, isStandalone: true, selector: "[ngSwitch]", inputs: { ngSwitch: "ngSwitch" }, ngImport: i0 });
3107
- }
3108
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgSwitch, decorators: [{
3109
- type: Directive,
3110
- args: [{
3111
- selector: '[ngSwitch]',
3112
- }]
3113
- }], propDecorators: { ngSwitch: [{
3114
- type: Input
3115
- }] } });
3116
- /**
3117
- * @ngModule CommonModule
3118
- *
3119
- * @description
3120
- * Provides a switch case expression to match against an enclosing `ngSwitch` expression.
3121
- * When the expressions match, the given `NgSwitchCase` template is rendered.
3122
- * If multiple match expressions match the switch expression value, all of them are displayed.
3123
- *
3124
- * @usageNotes
3125
- *
3126
- * Within a switch container, `*ngSwitchCase` statements specify the match expressions
3127
- * as attributes. Include `*ngSwitchDefault` as the final case.
3128
- *
3129
- * ```html
3130
- * <container-element [ngSwitch]="switch_expression">
3131
- * <some-element *ngSwitchCase="match_expression_1">...</some-element>
3132
- * ...
3133
- * <some-element *ngSwitchDefault>...</some-element>
3134
- * </container-element>
3135
- * ```
3136
- *
3137
- * Each switch-case statement contains an in-line HTML template or template reference
3138
- * that defines the subtree to be selected if the value of the match expression
3139
- * matches the value of the switch expression.
3140
- *
3141
- * As of Angular v17 the NgSwitch directive uses strict equality comparison (`===`) instead of
3142
- * loose equality (`==`) to match different cases.
3143
- *
3144
- * @publicApi
3145
- * @see {@link NgSwitch}
3146
- * @see {@link NgSwitchDefault}
3147
- *
3148
- * @deprecated 20.0
3149
- * Use the `@case` block within a `@switch` block instead. Intent to remove in v22
3150
- */
3151
- class NgSwitchCase {
3152
- ngSwitch;
3153
- _view;
3154
- /**
3155
- * Stores the HTML template to be selected on match.
3156
- * @deprecated Use the `@case` block within a `@switch` block instead. Intent to remove in v22
3157
- */
3158
- ngSwitchCase;
3159
- constructor(viewContainer, templateRef, ngSwitch) {
3160
- this.ngSwitch = ngSwitch;
3161
- if ((typeof ngDevMode === 'undefined' || ngDevMode) && !ngSwitch) {
3162
- throwNgSwitchProviderNotFoundError('ngSwitchCase', 'NgSwitchCase');
3163
- }
3164
- ngSwitch._addCase();
3165
- this._view = new SwitchView(viewContainer, templateRef);
3166
- }
3167
- /**
3168
- * Performs case matching. For internal use only.
3169
- * @docs-private
3170
- */
3171
- ngDoCheck() {
3172
- this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase));
3173
- }
3174
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgSwitchCase, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: NgSwitch, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
3175
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: NgSwitchCase, isStandalone: true, selector: "[ngSwitchCase]", inputs: { ngSwitchCase: "ngSwitchCase" }, ngImport: i0 });
3176
- }
3177
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgSwitchCase, decorators: [{
3178
- type: Directive,
3179
- args: [{
3180
- selector: '[ngSwitchCase]',
3181
- }]
3182
- }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: NgSwitch, decorators: [{
3183
- type: Optional
3184
- }, {
3185
- type: Host
3186
- }] }], propDecorators: { ngSwitchCase: [{
3187
- type: Input
3188
- }] } });
3189
- /**
3190
- * @ngModule CommonModule
3191
- *
3192
- * @description
3193
- *
3194
- * Creates a view that is rendered when no `NgSwitchCase` expressions
3195
- * match the `NgSwitch` expression.
3196
- * This statement should be the final case in an `NgSwitch`.
3197
- *
3198
- * @publicApi
3199
- * @see {@link NgSwitch}
3200
- * @see {@link NgSwitchCase}
3201
- *
3202
- * @deprecated 20.0
3203
- * Use the `@default` block within a `@switch` block instead. Intent to remove in v22
3204
- */
3205
- class NgSwitchDefault {
3206
- constructor(viewContainer, templateRef, ngSwitch) {
3207
- if ((typeof ngDevMode === 'undefined' || ngDevMode) && !ngSwitch) {
3208
- throwNgSwitchProviderNotFoundError('ngSwitchDefault', 'NgSwitchDefault');
3209
- }
3210
- ngSwitch._addDefault(new SwitchView(viewContainer, templateRef));
3211
- }
3212
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgSwitchDefault, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: NgSwitch, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
3213
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: NgSwitchDefault, isStandalone: true, selector: "[ngSwitchDefault]", ngImport: i0 });
3214
- }
3215
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgSwitchDefault, decorators: [{
3216
- type: Directive,
3217
- args: [{
3218
- selector: '[ngSwitchDefault]',
3219
- }]
3220
- }], ctorParameters: () => [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: NgSwitch, decorators: [{
3221
- type: Optional
3222
- }, {
3223
- type: Host
3224
- }] }] });
3225
- function throwNgSwitchProviderNotFoundError(attrName, directiveName) {
3226
- throw new _RuntimeError(2000 /* RuntimeErrorCode.PARENT_NG_SWITCH_NOT_FOUND */, `An element with the "${attrName}" attribute ` +
3227
- `(matching the "${directiveName}" directive) must be located inside an element with the "ngSwitch" attribute ` +
3228
- `(matching "NgSwitch" directive)`);
3229
- }
3230
-
3231
- /**
3232
- * @ngModule CommonModule
3233
- *
3234
- * @usageNotes
3235
- * ```html
3236
- * <some-element [ngPlural]="value">
3237
- * <ng-template ngPluralCase="=0">there is nothing</ng-template>
3238
- * <ng-template ngPluralCase="=1">there is one</ng-template>
3239
- * <ng-template ngPluralCase="few">there are a few</ng-template>
3240
- * </some-element>
3241
- * ```
3242
- *
3243
- * @description
3244
- *
3245
- * Adds / removes DOM sub-trees based on a numeric value. Tailored for pluralization.
3246
- *
3247
- * Displays DOM sub-trees that match the switch expression value, or failing that, DOM sub-trees
3248
- * that match the switch expression's pluralization category.
3249
- *
3250
- * To use this directive you must provide a container element that sets the `[ngPlural]` attribute
3251
- * to a switch expression. Inner elements with a `[ngPluralCase]` will display based on their
3252
- * expression:
3253
- * - if `[ngPluralCase]` is set to a value starting with `=`, it will only display if the value
3254
- * matches the switch expression exactly,
3255
- * - otherwise, the view will be treated as a "category match", and will only display if exact
3256
- * value matches aren't found and the value maps to its category for the defined locale.
3257
- *
3258
- * See http://cldr.unicode.org/index/cldr-spec/plural-rules
3259
- *
3260
- * @publicApi
3261
- */
3262
- class NgPlural {
3263
- _localization;
3264
- _activeView;
3265
- _caseViews = {};
3266
- constructor(_localization) {
3267
- this._localization = _localization;
3268
- }
3269
- set ngPlural(value) {
3270
- this._updateView(value);
3271
- }
3272
- addCase(value, switchView) {
3273
- this._caseViews[value] = switchView;
3274
- }
3275
- _updateView(switchValue) {
3276
- this._clearViews();
3277
- const cases = Object.keys(this._caseViews);
3278
- const key = getPluralCategory(switchValue, cases, this._localization);
3279
- this._activateView(this._caseViews[key]);
3280
- }
3281
- _clearViews() {
3282
- if (this._activeView)
3283
- this._activeView.destroy();
3284
- }
3285
- _activateView(view) {
3286
- if (view) {
3287
- this._activeView = view;
3288
- this._activeView.create();
3289
- }
3290
- }
3291
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgPlural, deps: [{ token: NgLocalization }], target: i0.ɵɵFactoryTarget.Directive });
3292
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: NgPlural, isStandalone: true, selector: "[ngPlural]", inputs: { ngPlural: "ngPlural" }, ngImport: i0 });
3293
- }
3294
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgPlural, decorators: [{
3295
- type: Directive,
3296
- args: [{
3297
- selector: '[ngPlural]',
3298
- }]
3299
- }], ctorParameters: () => [{ type: NgLocalization }], propDecorators: { ngPlural: [{
3300
- type: Input
3301
- }] } });
3302
- /**
3303
- * @ngModule CommonModule
3304
- *
3305
- * @description
3306
- *
3307
- * Creates a view that will be added/removed from the parent {@link NgPlural} when the
3308
- * given expression matches the plural expression according to CLDR rules.
3309
- *
3310
- * @usageNotes
3311
- * ```html
3312
- * <some-element [ngPlural]="value">
3313
- * <ng-template ngPluralCase="=0">...</ng-template>
3314
- * <ng-template ngPluralCase="other">...</ng-template>
3315
- * </some-element>
3316
- *```
3317
- *
3318
- * See {@link NgPlural} for more details and example.
3319
- *
3320
- * @publicApi
3321
- */
3322
- class NgPluralCase {
3323
- value;
3324
- constructor(value, template, viewContainer, ngPlural) {
3325
- this.value = value;
3326
- const isANumber = !isNaN(Number(value));
3327
- ngPlural.addCase(isANumber ? `=${value}` : value, new SwitchView(viewContainer, template));
3328
- }
3329
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgPluralCase, deps: [{ token: 'ngPluralCase', attribute: true }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: NgPlural, host: true }], target: i0.ɵɵFactoryTarget.Directive });
3330
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: NgPluralCase, isStandalone: true, selector: "[ngPluralCase]", ngImport: i0 });
3331
- }
3332
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgPluralCase, decorators: [{
3333
- type: Directive,
3334
- args: [{
3335
- selector: '[ngPluralCase]',
3336
- }]
3337
- }], ctorParameters: () => [{ type: undefined, decorators: [{
3338
- type: Attribute,
3339
- args: ['ngPluralCase']
3340
- }] }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: NgPlural, decorators: [{
3341
- type: Host
3342
- }] }] });
3343
-
3344
- /**
3345
- * @ngModule CommonModule
3346
- *
3347
- * @usageNotes
3348
- *
3349
- * Set the width of the containing element to a pixel value returned by an expression.
3350
- *
3351
- * ```html
3352
- * <some-element [ngStyle]="{'max-width.px': widthExp}">...</some-element>
3353
- * ```
3354
- *
3355
- * Set a collection of style values using an expression that returns key-value pairs.
3356
- *
3357
- * ```html
3358
- * <some-element [ngStyle]="objExp">...</some-element>
3359
- * ```
3360
- *
3361
- * For more simple use cases you can use the [style bindings](/guide/templates/binding#css-class-and-style-property-bindings) directly.
3362
- * It doesn't require importing a directive.
3363
- *
3364
- * Set the font of the containing element to the result of an expression.
3365
- *
3366
- * ```html
3367
- * <some-element [style]="{'font-style': styleExp}">...</some-element>
3368
- * ```
3369
- *
3370
- * @description
3371
- *
3372
- * An attribute directive that updates styles for the containing HTML element.
3373
- * Sets one or more style properties, specified as colon-separated key-value pairs.
3374
- * The key is a style name, with an optional `.<unit>` suffix
3375
- * (such as 'top.px', 'font-style.em').
3376
- * The value is an expression to be evaluated.
3377
- * The resulting non-null value, expressed in the given unit,
3378
- * is assigned to the given style property.
3379
- * If the result of evaluation is null, the corresponding style is removed.
3380
- *
3381
- * @see [Style bindings](/guide/templates/binding#css-class-and-style-property-bindings)
3382
- *
3383
- * @publicApi
3384
- */
3385
- class NgStyle {
3386
- _ngEl;
3387
- _differs;
3388
- _renderer;
3389
- _ngStyle = null;
3390
- _differ = null;
3391
- constructor(_ngEl, _differs, _renderer) {
3392
- this._ngEl = _ngEl;
3393
- this._differs = _differs;
3394
- this._renderer = _renderer;
3395
- }
3396
- set ngStyle(values) {
3397
- this._ngStyle = values;
3398
- if (!this._differ && values) {
3399
- this._differ = this._differs.find(values).create();
3400
- }
3401
- }
3402
- ngDoCheck() {
3403
- if (this._differ) {
3404
- const changes = this._differ.diff(this._ngStyle);
3405
- if (changes) {
3406
- this._applyChanges(changes);
3407
- }
3408
- }
3409
- }
3410
- _setStyle(nameAndUnit, value) {
3411
- const [name, unit] = nameAndUnit.split('.');
3412
- const flags = name.indexOf('-') === -1 ? undefined : RendererStyleFlags2.DashCase;
3413
- if (value != null) {
3414
- this._renderer.setStyle(this._ngEl.nativeElement, name, unit ? `${value}${unit}` : value, flags);
3415
- }
3416
- else {
3417
- this._renderer.removeStyle(this._ngEl.nativeElement, name, flags);
3418
- }
3419
- }
3420
- _applyChanges(changes) {
3421
- changes.forEachRemovedItem((record) => this._setStyle(record.key, null));
3422
- changes.forEachAddedItem((record) => this._setStyle(record.key, record.currentValue));
3423
- changes.forEachChangedItem((record) => this._setStyle(record.key, record.currentValue));
3424
- }
3425
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgStyle, deps: [{ token: i0.ElementRef }, { token: i0.KeyValueDiffers }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
3426
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: NgStyle, isStandalone: true, selector: "[ngStyle]", inputs: { ngStyle: "ngStyle" }, ngImport: i0 });
3427
- }
3428
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgStyle, decorators: [{
3429
- type: Directive,
3430
- args: [{
3431
- selector: '[ngStyle]',
3432
- }]
3433
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.KeyValueDiffers }, { type: i0.Renderer2 }], propDecorators: { ngStyle: [{
3434
- type: Input,
3435
- args: ['ngStyle']
3436
- }] } });
3437
-
3438
- /**
3439
- * @ngModule CommonModule
3440
- *
3441
- * @description
3442
- *
3443
- * Inserts an embedded view from a prepared `TemplateRef`.
3444
- *
3445
- * You can attach a context object to the `EmbeddedViewRef` by setting `[ngTemplateOutletContext]`.
3446
- * `[ngTemplateOutletContext]` should be an object, the object's keys will be available for binding
3447
- * by the local template `let` declarations.
3448
- *
3449
- * @usageNotes
3450
- * ```html
3451
- * <ng-container *ngTemplateOutlet="templateRefExp; context: contextExp"></ng-container>
3452
- * ```
3453
- *
3454
- * Using the key `$implicit` in the context object will set its value as default.
3455
- *
3456
- * ### Example
3457
- *
3458
- * {@example common/ngTemplateOutlet/ts/module.ts region='NgTemplateOutlet'}
3459
- *
3460
- * @publicApi
3461
- */
3462
- class NgTemplateOutlet {
3463
- _viewContainerRef;
3464
- _viewRef = null;
3465
- /**
3466
- * A context object to attach to the {@link EmbeddedViewRef}. This should be an
3467
- * object, the object's keys will be available for binding by the local template `let`
3468
- * declarations.
3469
- * Using the key `$implicit` in the context object will set its value as default.
3470
- */
3471
- ngTemplateOutletContext = null;
3472
- /**
3473
- * A string defining the template reference and optionally the context object for the template.
3474
- */
3475
- ngTemplateOutlet = null;
3476
- /** Injector to be used within the embedded view. */
3477
- ngTemplateOutletInjector = null;
3478
- constructor(_viewContainerRef) {
3479
- this._viewContainerRef = _viewContainerRef;
3480
- }
3481
- ngOnChanges(changes) {
3482
- if (this._shouldRecreateView(changes)) {
3483
- const viewContainerRef = this._viewContainerRef;
3484
- if (this._viewRef) {
3485
- viewContainerRef.remove(viewContainerRef.indexOf(this._viewRef));
3486
- }
3487
- // If there is no outlet, clear the destroyed view ref.
3488
- if (!this.ngTemplateOutlet) {
3489
- this._viewRef = null;
3490
- return;
3491
- }
3492
- // Create a context forward `Proxy` that will always bind to the user-specified context,
3493
- // without having to destroy and re-create views whenever the context changes.
3494
- const viewContext = this._createContextForwardProxy();
3495
- this._viewRef = viewContainerRef.createEmbeddedView(this.ngTemplateOutlet, viewContext, {
3496
- injector: this.ngTemplateOutletInjector ?? undefined,
3497
- });
3498
- }
3499
- }
3500
- /**
3501
- * We need to re-create existing embedded view if either is true:
3502
- * - the outlet changed.
3503
- * - the injector changed.
3504
- */
3505
- _shouldRecreateView(changes) {
3506
- return !!changes['ngTemplateOutlet'] || !!changes['ngTemplateOutletInjector'];
3507
- }
3508
- /**
3509
- * For a given outlet instance, we create a proxy object that delegates
3510
- * to the user-specified context. This allows changing, or swapping out
3511
- * the context object completely without having to destroy/re-create the view.
3512
- */
3513
- _createContextForwardProxy() {
3514
- return new Proxy({}, {
3515
- set: (_target, prop, newValue) => {
3516
- if (!this.ngTemplateOutletContext) {
3517
- return false;
3518
- }
3519
- return Reflect.set(this.ngTemplateOutletContext, prop, newValue);
3520
- },
3521
- get: (_target, prop, receiver) => {
3522
- if (!this.ngTemplateOutletContext) {
3523
- return undefined;
3524
- }
3525
- return Reflect.get(this.ngTemplateOutletContext, prop, receiver);
3526
- },
3527
- });
3528
- }
3529
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgTemplateOutlet, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
3530
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.2.0-next.2", type: NgTemplateOutlet, isStandalone: true, selector: "[ngTemplateOutlet]", inputs: { ngTemplateOutletContext: "ngTemplateOutletContext", ngTemplateOutlet: "ngTemplateOutlet", ngTemplateOutletInjector: "ngTemplateOutletInjector" }, usesOnChanges: true, ngImport: i0 });
3531
- }
3532
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: NgTemplateOutlet, decorators: [{
3533
- type: Directive,
3534
- args: [{
3535
- selector: '[ngTemplateOutlet]',
3536
- }]
3537
- }], ctorParameters: () => [{ type: i0.ViewContainerRef }], propDecorators: { ngTemplateOutletContext: [{
3538
- type: Input
3539
- }], ngTemplateOutlet: [{
3540
- type: Input
3541
- }], ngTemplateOutletInjector: [{
3542
- type: Input
3543
- }] } });
3544
-
3545
- /**
3546
- * A collection of Angular directives that are likely to be used in each and every Angular
3547
- * application.
3548
- */
3549
- const COMMON_DIRECTIVES = [
3550
- NgClass,
3551
- NgComponentOutlet,
3552
- NgForOf,
3553
- NgIf,
3554
- NgTemplateOutlet,
3555
- NgStyle,
3556
- NgSwitch,
3557
- NgSwitchCase,
3558
- NgSwitchDefault,
3559
- NgPlural,
3560
- NgPluralCase,
3561
- ];
3562
-
3563
- function invalidPipeArgumentError(type, value) {
3564
- return new _RuntimeError(2100 /* RuntimeErrorCode.INVALID_PIPE_ARGUMENT */, ngDevMode && `InvalidPipeArgument: '${value}' for pipe '${_stringify(type)}'`);
3565
- }
3566
-
3567
- class SubscribableStrategy {
3568
- createSubscription(async, updateLatestValue, onError) {
3569
- // Subscription can be side-effectful, and we don't want any signal reads which happen in the
3570
- // side effect of the subscription to be tracked by a component's template when that
3571
- // subscription is triggered via the async pipe. So we wrap the subscription in `untracked` to
3572
- // decouple from the current reactive context.
3573
- //
3574
- // `untracked` also prevents signal _writes_ which happen in the subscription side effect from
3575
- // being treated as signal writes during the template evaluation (which throws errors).
3576
- return untracked(() => async.subscribe({
3577
- next: updateLatestValue,
3578
- error: onError,
3579
- }));
3580
- }
3581
- dispose(subscription) {
3582
- // See the comment in `createSubscription` above on the use of `untracked`.
3583
- untracked(() => subscription.unsubscribe());
3584
- }
3585
- }
3586
- class PromiseStrategy {
3587
- createSubscription(async, updateLatestValue, onError) {
3588
- // According to the promise specification, promises are not cancellable by default.
3589
- // Once a promise is created, it will either resolve or reject, and it doesn't
3590
- // provide a built-in mechanism to cancel it.
3591
- // There may be situations where a promise is provided, and it either resolves after
3592
- // the pipe has been destroyed or never resolves at all. If the promise never
3593
- // resolves — potentially due to factors beyond our control, such as third-party
3594
- // libraries — this can lead to a memory leak.
3595
- // When we use `async.then(updateLatestValue)`, the engine captures a reference to the
3596
- // `updateLatestValue` function. This allows the promise to invoke that function when it
3597
- // resolves. In this case, the promise directly captures a reference to the
3598
- // `updateLatestValue` function. If the promise resolves later, it retains a reference
3599
- // to the original `updateLatestValue`, meaning that even if the context where
3600
- // `updateLatestValue` was defined has been destroyed, the function reference remains in memory.
3601
- // This can lead to memory leaks if `updateLatestValue` is no longer needed or if it holds
3602
- // onto resources that should be released.
3603
- // When we do `async.then(v => ...)` the promise captures a reference to the lambda
3604
- // function (the arrow function).
3605
- // When we assign `updateLatestValue = null` within the context of an `unsubscribe` function,
3606
- // we're changing the reference of `updateLatestValue` in the current scope to `null`.
3607
- // The lambda will no longer have access to it after the assignment, effectively
3608
- // preventing any further calls to the original function and allowing it to be garbage collected.
3609
- async.then(
3610
- // Using optional chaining because we may have set it to `null`; since the promise
3611
- // is async, the view might be destroyed by the time the promise resolves.
3612
- (v) => updateLatestValue?.(v), (e) => onError?.(e));
3613
- return {
3614
- unsubscribe: () => {
3615
- updateLatestValue = null;
3616
- onError = null;
3617
- },
3618
- };
3619
- }
3620
- dispose(subscription) {
3621
- subscription.unsubscribe();
3622
- }
3623
- }
3624
- const _promiseStrategy = new PromiseStrategy();
3625
- const _subscribableStrategy = new SubscribableStrategy();
3626
- /**
3627
- * @ngModule CommonModule
3628
- * @description
3629
- *
3630
- * Unwraps a value from an asynchronous primitive.
3631
- *
3632
- * The `async` pipe subscribes to an `Observable` or `Promise` and returns the latest value it has
3633
- * emitted. When a new value is emitted, the `async` pipe marks the component to be checked for
3634
- * changes. When the component gets destroyed, the `async` pipe unsubscribes automatically to avoid
3635
- * potential memory leaks. When the reference of the expression changes, the `async` pipe
3636
- * automatically unsubscribes from the old `Observable` or `Promise` and subscribes to the new one.
3637
- *
3638
- * @usageNotes
3639
- *
3640
- * ### Examples
3641
- *
3642
- * This example binds a `Promise` to the view. Clicking the `Resolve` button resolves the
3643
- * promise.
3644
- *
3645
- * {@example common/pipes/ts/async_pipe.ts region='AsyncPipePromise'}
3646
- *
3647
- * It's also possible to use `async` with Observables. The example below binds the `time` Observable
3648
- * to the view. The Observable continuously updates the view with the current time.
3649
- *
3650
- * {@example common/pipes/ts/async_pipe.ts region='AsyncPipeObservable'}
3651
- *
3652
- * @publicApi
3653
- */
3654
- class AsyncPipe {
3655
- _ref;
3656
- _latestValue = null;
3657
- markForCheckOnValueUpdate = true;
3658
- _subscription = null;
3659
- _obj = null;
3660
- _strategy = null;
3661
- applicationErrorHandler = inject(_INTERNAL_APPLICATION_ERROR_HANDLER);
3662
- constructor(ref) {
3663
- // Assign `ref` into `this._ref` manually instead of declaring `_ref` in the constructor
3664
- // parameter list, as the type of `this._ref` includes `null` unlike the type of `ref`.
3665
- this._ref = ref;
3666
- }
3667
- ngOnDestroy() {
3668
- if (this._subscription) {
3669
- this._dispose();
3670
- }
3671
- // Clear the `ChangeDetectorRef` and its association with the view data, to mitigate
3672
- // potential memory leaks in Observables that could otherwise cause the view data to
3673
- // be retained.
3674
- // https://github.com/angular/angular/issues/17624
3675
- this._ref = null;
3676
- }
3677
- transform(obj) {
3678
- if (!this._obj) {
3679
- if (obj) {
3680
- try {
3681
- // Only call `markForCheck` if the value is updated asynchronously.
3682
- // Synchronous updates _during_ subscription should not wastefully mark for check -
3683
- // this value is already going to be returned from the transform function.
3684
- this.markForCheckOnValueUpdate = false;
3685
- this._subscribe(obj);
3686
- }
3687
- finally {
3688
- this.markForCheckOnValueUpdate = true;
3689
- }
3690
- }
3691
- return this._latestValue;
3692
- }
3693
- if (obj !== this._obj) {
3694
- this._dispose();
3695
- return this.transform(obj);
3696
- }
3697
- return this._latestValue;
3698
- }
3699
- _subscribe(obj) {
3700
- this._obj = obj;
3701
- this._strategy = this._selectStrategy(obj);
3702
- this._subscription = this._strategy.createSubscription(obj, (value) => this._updateLatestValue(obj, value), (e) => this.applicationErrorHandler(e));
3703
- }
3704
- _selectStrategy(obj) {
3705
- if (_isPromise(obj)) {
3706
- return _promiseStrategy;
3707
- }
3708
- if (_isSubscribable(obj)) {
3709
- return _subscribableStrategy;
3710
- }
3711
- throw invalidPipeArgumentError(AsyncPipe, obj);
3712
- }
3713
- _dispose() {
3714
- // Note: `dispose` is only called if a subscription has been initialized before, indicating
3715
- // that `this._strategy` is also available.
3716
- this._strategy.dispose(this._subscription);
3717
- this._latestValue = null;
3718
- this._subscription = null;
3719
- this._obj = null;
3720
- }
3721
- _updateLatestValue(async, value) {
3722
- if (async === this._obj) {
3723
- this._latestValue = value;
3724
- if (this.markForCheckOnValueUpdate) {
3725
- this._ref?.markForCheck();
3726
- }
3727
- }
3728
- }
3729
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: AsyncPipe, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe });
3730
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0-next.2", ngImport: i0, type: AsyncPipe, isStandalone: true, name: "async", pure: false });
3731
- }
3732
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: AsyncPipe, decorators: [{
3733
- type: Pipe,
3734
- args: [{
3735
- name: 'async',
3736
- pure: false,
3737
- }]
3738
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }] });
3739
-
3740
- /**
3741
- * Transforms text to all lower case.
3742
- *
3743
- * @see {@link UpperCasePipe}
3744
- * @see {@link TitleCasePipe}
3745
- * @usageNotes
3746
- *
3747
- * The following example defines a view that allows the user to enter
3748
- * text, and then uses the pipe to convert the input text to all lower case.
3749
- *
3750
- * {@example common/pipes/ts/lowerupper_pipe.ts region='LowerUpperPipe'}
3751
- *
3752
- * @ngModule CommonModule
3753
- * @publicApi
3754
- */
3755
- class LowerCasePipe {
3756
- transform(value) {
3757
- if (value == null)
3758
- return null;
3759
- if (typeof value !== 'string') {
3760
- throw invalidPipeArgumentError(LowerCasePipe, value);
3761
- }
3762
- return value.toLowerCase();
3763
- }
3764
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: LowerCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
3765
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0-next.2", ngImport: i0, type: LowerCasePipe, isStandalone: true, name: "lowercase" });
3766
- }
3767
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: LowerCasePipe, decorators: [{
3768
- type: Pipe,
3769
- args: [{
3770
- name: 'lowercase',
3771
- }]
3772
- }] });
3773
- //
3774
- // Regex below matches any Unicode word and number compatible with ES5. In ES2018 the same result
3775
- // can be achieved by using /[0-9\p{L}]\S*/gu and also known as Unicode Property Escapes
3776
- // (https://2ality.com/2017/07/regexp-unicode-property-escapes.html). Since there is no
3777
- // transpilation of this functionality down to ES5 without external tool, the only solution is
3778
- // to use already transpiled form. Example can be found here -
3779
- // https://mothereff.in/regexpu#input=var+regex+%3D+%2F%5B0-9%5Cp%7BL%7D%5D%5CS*%2Fgu%3B%0A%0A&unicodePropertyEscape=1
3780
- //
3781
- const unicodeWordMatch = /(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;
3782
- /**
3783
- * Transforms text to title case.
3784
- * Capitalizes the first letter of each word and transforms the
3785
- * rest of the word to lower case.
3786
- * Words are delimited by any whitespace character, such as a space, tab, or line-feed character.
3787
- *
3788
- * @see {@link LowerCasePipe}
3789
- * @see {@link UpperCasePipe}
3790
- *
3791
- * @usageNotes
3792
- * The following example shows the result of transforming various strings into title case.
3793
- *
3794
- * {@example common/pipes/ts/titlecase_pipe.ts region='TitleCasePipe'}
3795
- *
3796
- * @ngModule CommonModule
3797
- * @publicApi
3798
- */
3799
- class TitleCasePipe {
3800
- transform(value) {
3801
- if (value == null)
3802
- return null;
3803
- if (typeof value !== 'string') {
3804
- throw invalidPipeArgumentError(TitleCasePipe, value);
3805
- }
3806
- return value.replace(unicodeWordMatch, (txt) => txt[0].toUpperCase() + txt.slice(1).toLowerCase());
3807
- }
3808
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: TitleCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
3809
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0-next.2", ngImport: i0, type: TitleCasePipe, isStandalone: true, name: "titlecase" });
3810
- }
3811
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: TitleCasePipe, decorators: [{
3812
- type: Pipe,
3813
- args: [{
3814
- name: 'titlecase',
3815
- }]
3816
- }] });
3817
- /**
3818
- * Transforms text to all upper case.
3819
- * @see {@link LowerCasePipe}
3820
- * @see {@link TitleCasePipe}
3821
- *
3822
- * @ngModule CommonModule
3823
- * @publicApi
3824
- */
3825
- class UpperCasePipe {
3826
- transform(value) {
3827
- if (value == null)
3828
- return null;
3829
- if (typeof value !== 'string') {
3830
- throw invalidPipeArgumentError(UpperCasePipe, value);
3831
- }
3832
- return value.toUpperCase();
3833
- }
3834
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: UpperCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
3835
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0-next.2", ngImport: i0, type: UpperCasePipe, isStandalone: true, name: "uppercase" });
3836
- }
3837
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: UpperCasePipe, decorators: [{
3838
- type: Pipe,
3839
- args: [{
3840
- name: 'uppercase',
3841
- }]
3842
- }] });
3843
-
3844
- /**
3845
- * The default date format of Angular date pipe, which corresponds to the following format:
3846
- * `'MMM d,y'` (e.g. `Jun 15, 2015`)
3847
- */
3848
- const DEFAULT_DATE_FORMAT = 'mediumDate';
3849
-
3850
- /**
3851
- * Optionally-provided default timezone to use for all instances of `DatePipe` (such as `'+0430'`).
3852
- * If the value isn't provided, the `DatePipe` will use the end-user's local system timezone.
3853
- *
3854
- * @deprecated use DATE_PIPE_DEFAULT_OPTIONS token to configure DatePipe
3855
- */
3856
- const DATE_PIPE_DEFAULT_TIMEZONE = new InjectionToken(ngDevMode ? 'DATE_PIPE_DEFAULT_TIMEZONE' : '');
3857
- /**
3858
- * DI token that allows to provide default configuration for the `DatePipe` instances in an
3859
- * application. The value is an object which can include the following fields:
3860
- * - `dateFormat`: configures the default date format. If not provided, the `DatePipe`
3861
- * will use the 'mediumDate' as a value.
3862
- * - `timezone`: configures the default timezone. If not provided, the `DatePipe` will
3863
- * use the end-user's local system timezone.
3864
- *
3865
- * @see {@link DatePipeConfig}
3866
- *
3867
- * @usageNotes
3868
- *
3869
- * Various date pipe default values can be overwritten by providing this token with
3870
- * the value that has this interface.
3871
- *
3872
- * For example:
3873
- *
3874
- * Override the default date format by providing a value using the token:
3875
- * ```ts
3876
- * providers: [
3877
- * {provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: {dateFormat: 'shortDate'}}
3878
- * ]
3879
- * ```
3880
- *
3881
- * Override the default timezone by providing a value using the token:
3882
- * ```ts
3883
- * providers: [
3884
- * {provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: {timezone: '-1200'}}
3885
- * ]
3886
- * ```
3887
- */
3888
- const DATE_PIPE_DEFAULT_OPTIONS = new InjectionToken(ngDevMode ? 'DATE_PIPE_DEFAULT_OPTIONS' : '');
3889
- /**
3890
- * @ngModule CommonModule
3891
- * @description
3892
- *
3893
- * Formats a date value according to locale rules.
3894
- *
3895
- * `DatePipe` is executed only when it detects a pure change to the input value.
3896
- * A pure change is either a change to a primitive input value
3897
- * (such as `String`, `Number`, `Boolean`, or `Symbol`),
3898
- * or a changed object reference (such as `Date`, `Array`, `Function`, or `Object`).
3899
- *
3900
- * Note that mutating a `Date` object does not cause the pipe to be rendered again.
3901
- * To ensure that the pipe is executed, you must create a new `Date` object.
3902
- *
3903
- * Only the `en-US` locale data comes with Angular. To localize dates
3904
- * in another language, you must import the corresponding locale data.
3905
- * See the [I18n guide](guide/i18n/format-data-locale) for more information.
3906
- *
3907
- * The time zone of the formatted value can be specified either by passing it in as the second
3908
- * parameter of the pipe, or by setting the default through the `DATE_PIPE_DEFAULT_OPTIONS`
3909
- * injection token. The value that is passed in as the second parameter takes precedence over
3910
- * the one defined using the injection token.
3911
- *
3912
- * @see {@link formatDate}
3913
- *
3914
- *
3915
- * @usageNotes
3916
- *
3917
- * The result of this pipe is not reevaluated when the input is mutated. To avoid the need to
3918
- * reformat the date on every change-detection cycle, treat the date as an immutable object
3919
- * and change the reference when the pipe needs to run again.
3920
- *
3921
- * ### Pre-defined format options
3922
- *
3923
- * | Option | Equivalent to | Examples (given in `en-US` locale) |
3924
- * |---------------|-------------------------------------|-------------------------------------------------|
3925
- * | `'short'` | `'M/d/yy, h:mm a'` | `6/15/15, 9:03 AM` |
3926
- * | `'medium'` | `'MMM d, y, h:mm:ss a'` | `Jun 15, 2015, 9:03:01 AM` |
3927
- * | `'long'` | `'MMMM d, y, h:mm:ss a z'` | `June 15, 2015 at 9:03:01 AM GMT+1` |
3928
- * | `'full'` | `'EEEE, MMMM d, y, h:mm:ss a zzzz'` | `Monday, June 15, 2015 at 9:03:01 AM GMT+01:00` |
3929
- * | `'shortDate'` | `'M/d/yy'` | `6/15/15` |
3930
- * | `'mediumDate'`| `'MMM d, y'` | `Jun 15, 2015` |
3931
- * | `'longDate'` | `'MMMM d, y'` | `June 15, 2015` |
3932
- * | `'fullDate'` | `'EEEE, MMMM d, y'` | `Monday, June 15, 2015` |
3933
- * | `'shortTime'` | `'h:mm a'` | `9:03 AM` |
3934
- * | `'mediumTime'`| `'h:mm:ss a'` | `9:03:01 AM` |
3935
- * | `'longTime'` | `'h:mm:ss a z'` | `9:03:01 AM GMT+1` |
3936
- * | `'fullTime'` | `'h:mm:ss a zzzz'` | `9:03:01 AM GMT+01:00` |
3937
- *
3938
- * ### Custom format options
3939
- *
3940
- * You can construct a format string using symbols to specify the components
3941
- * of a date-time value, as described in the following table.
3942
- * Format details depend on the locale.
3943
- * Fields marked with (*) are only available in the extra data set for the given locale.
3944
- *
3945
- * | Field type | Format | Description | Example Value |
3946
- * |-------------------------|-------------|---------------------------------------------------------------|------------------------------------------------------------|
3947
- * | Era | G, GG & GGG | Abbreviated | AD |
3948
- * | | GGGG | Wide | Anno Domini |
3949
- * | | GGGGG | Narrow | A |
3950
- * | Year | y | Numeric: minimum digits | 2, 20, 201, 2017, 20173 |
3951
- * | | yy | Numeric: 2 digits + zero padded | 02, 20, 01, 17, 73 |
3952
- * | | yyy | Numeric: 3 digits + zero padded | 002, 020, 201, 2017, 20173 |
3953
- * | | yyyy | Numeric: 4 digits or more + zero padded | 0002, 0020, 0201, 2017, 20173 |
3954
- * | ISO Week-numbering year | Y | Numeric: minimum digits | 2, 20, 201, 2017, 20173 |
3955
- * | | YY | Numeric: 2 digits + zero padded | 02, 20, 01, 17, 73 |
3956
- * | | YYY | Numeric: 3 digits + zero padded | 002, 020, 201, 2017, 20173 |
3957
- * | | YYYY | Numeric: 4 digits or more + zero padded | 0002, 0020, 0201, 2017, 20173 |
3958
- * | Month | M | Numeric: 1 digit | 9, 12 |
3959
- * | | MM | Numeric: 2 digits + zero padded | 09, 12 |
3960
- * | | MMM | Abbreviated | Sep |
3961
- * | | MMMM | Wide | September |
3962
- * | | MMMMM | Narrow | S |
3963
- * | Month standalone | L | Numeric: 1 digit | 9, 12 |
3964
- * | | LL | Numeric: 2 digits + zero padded | 09, 12 |
3965
- * | | LLL | Abbreviated | Sep |
3966
- * | | LLLL | Wide | September |
3967
- * | | LLLLL | Narrow | S |
3968
- * | ISO Week of year | w | Numeric: minimum digits | 1... 53 |
3969
- * | | ww | Numeric: 2 digits + zero padded | 01... 53 |
3970
- * | Week of month | W | Numeric: 1 digit | 1... 5 |
3971
- * | Day of month | d | Numeric: minimum digits | 1 |
3972
- * | | dd | Numeric: 2 digits + zero padded | 01 |
3973
- * | Week day | E, EE & EEE | Abbreviated | Tue |
3974
- * | | EEEE | Wide | Tuesday |
3975
- * | | EEEEE | Narrow | T |
3976
- * | | EEEEEE | Short | Tu |
3977
- * | Week day standalone | c, cc | Numeric: 1 digit | 2 |
3978
- * | | ccc | Abbreviated | Tue |
3979
- * | | cccc | Wide | Tuesday |
3980
- * | | ccccc | Narrow | T |
3981
- * | | cccccc | Short | Tu |
3982
- * | Period | a, aa & aaa | Abbreviated | am/pm or AM/PM |
3983
- * | | aaaa | Wide (fallback to `a` when missing) | ante meridiem/post meridiem |
3984
- * | | aaaaa | Narrow | a/p |
3985
- * | Period* | B, BB & BBB | Abbreviated | mid. |
3986
- * | | BBBB | Wide | am, pm, midnight, noon, morning, afternoon, evening, night |
3987
- * | | BBBBB | Narrow | md |
3988
- * | Period standalone* | b, bb & bbb | Abbreviated | mid. |
3989
- * | | bbbb | Wide | am, pm, midnight, noon, morning, afternoon, evening, night |
3990
- * | | bbbbb | Narrow | md |
3991
- * | Hour 1-12 | h | Numeric: minimum digits | 1, 12 |
3992
- * | | hh | Numeric: 2 digits + zero padded | 01, 12 |
3993
- * | Hour 0-23 | H | Numeric: minimum digits | 0, 23 |
3994
- * | | HH | Numeric: 2 digits + zero padded | 00, 23 |
3995
- * | Minute | m | Numeric: minimum digits | 8, 59 |
3996
- * | | mm | Numeric: 2 digits + zero padded | 08, 59 |
3997
- * | Second | s | Numeric: minimum digits | 0... 59 |
3998
- * | | ss | Numeric: 2 digits + zero padded | 00... 59 |
3999
- * | Fractional seconds | S | Numeric: 1 digit | 0... 9 |
4000
- * | | SS | Numeric: 2 digits + zero padded | 00... 99 |
4001
- * | | SSS | Numeric: 3 digits + zero padded (= milliseconds) | 000... 999 |
4002
- * | Zone | z, zz & zzz | Short specific non location format (fallback to O) | GMT-8 |
4003
- * | | zzzz | Long specific non location format (fallback to OOOO) | GMT-08:00 |
4004
- * | | Z, ZZ & ZZZ | ISO8601 basic format | -0800 |
4005
- * | | ZZZZ | Long localized GMT format | GMT-8:00 |
4006
- * | | ZZZZZ | ISO8601 extended format + Z indicator for offset 0 (= XXXXX) | -08:00 |
4007
- * | | O, OO & OOO | Short localized GMT format | GMT-8 |
4008
- * | | OOOO | Long localized GMT format | GMT-08:00 |
4009
- *
4010
- *
4011
- * ### Format examples
4012
- *
4013
- * These examples transform a date into various formats,
4014
- * assuming that `dateObj` is a JavaScript `Date` object for
4015
- * year: 2015, month: 6, day: 15, hour: 21, minute: 43, second: 11,
4016
- * given in the local time for the `en-US` locale.
4017
- *
4018
- * ```
4019
- * {{ dateObj | date }} // output is 'Jun 15, 2015'
4020
- * {{ dateObj | date:'medium' }} // output is 'Jun 15, 2015, 9:43:11 PM'
4021
- * {{ dateObj | date:'shortTime' }} // output is '9:43 PM'
4022
- * {{ dateObj | date:'mm:ss' }} // output is '43:11'
4023
- * {{ dateObj | date:"MMM dd, yyyy 'at' hh:mm a" }} // output is 'Jun 15, 2015 at 09:43 PM'
4024
- * ```
4025
- *
4026
- * ### Usage example
4027
- *
4028
- * The following component uses a date pipe to display the current date in different formats.
4029
- *
4030
- * ```angular-ts
4031
- * @Component({
4032
- * selector: 'date-pipe',
4033
- * template: `<div>
4034
- * <p>Today is {{today | date}}</p>
4035
- * <p>Or if you prefer, {{today | date:'fullDate'}}</p>
4036
- * <p>The time is {{today | date:'h:mm a z'}}</p>
4037
- * </div>`
4038
- * })
4039
- * // Get the current date and time as a date-time value.
4040
- * export class DatePipeComponent {
4041
- * today: number = Date.now();
4042
- * }
4043
- * ```
4044
- *
4045
- * @publicApi
4046
- */
4047
- class DatePipe {
4048
- locale;
4049
- defaultTimezone;
4050
- defaultOptions;
4051
- constructor(locale, defaultTimezone, defaultOptions) {
4052
- this.locale = locale;
4053
- this.defaultTimezone = defaultTimezone;
4054
- this.defaultOptions = defaultOptions;
4055
- }
4056
- transform(value, format, timezone, locale) {
4057
- if (value == null || value === '' || value !== value)
4058
- return null;
4059
- try {
4060
- const _format = format ?? this.defaultOptions?.dateFormat ?? DEFAULT_DATE_FORMAT;
4061
- const _timezone = timezone ?? this.defaultOptions?.timezone ?? this.defaultTimezone ?? undefined;
4062
- return formatDate(value, _format, locale || this.locale, _timezone);
4063
- }
4064
- catch (error) {
4065
- throw invalidPipeArgumentError(DatePipe, error.message);
4066
- }
4067
- }
4068
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: DatePipe, deps: [{ token: LOCALE_ID }, { token: DATE_PIPE_DEFAULT_TIMEZONE, optional: true }, { token: DATE_PIPE_DEFAULT_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });
4069
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0-next.2", ngImport: i0, type: DatePipe, isStandalone: true, name: "date" });
4070
- }
4071
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: DatePipe, decorators: [{
4072
- type: Pipe,
4073
- args: [{
4074
- name: 'date',
4075
- }]
4076
- }], ctorParameters: () => [{ type: undefined, decorators: [{
4077
- type: Inject,
4078
- args: [LOCALE_ID]
4079
- }] }, { type: undefined, decorators: [{
4080
- type: Inject,
4081
- args: [DATE_PIPE_DEFAULT_TIMEZONE]
4082
- }, {
4083
- type: Optional
4084
- }] }, { type: undefined, decorators: [{
4085
- type: Inject,
4086
- args: [DATE_PIPE_DEFAULT_OPTIONS]
4087
- }, {
4088
- type: Optional
4089
- }] }] });
4090
-
4091
- const _INTERPOLATION_REGEXP = /#/g;
4092
- /**
4093
- * @ngModule CommonModule
4094
- * @description
4095
- *
4096
- * Maps a value to a string that pluralizes the value according to locale rules.
4097
- *
4098
- * @usageNotes
4099
- *
4100
- * ### Example
4101
- *
4102
- * {@example common/pipes/ts/i18n_pipe.ts region='I18nPluralPipeComponent'}
4103
- *
4104
- * @publicApi
4105
- */
4106
- class I18nPluralPipe {
4107
- _localization;
4108
- constructor(_localization) {
4109
- this._localization = _localization;
4110
- }
4111
- /**
4112
- * @param value the number to be formatted
4113
- * @param pluralMap an object that mimics the ICU format, see
4114
- * https://unicode-org.github.io/icu/userguide/format_parse/messages/.
4115
- * @param locale a `string` defining the locale to use (uses the current {@link LOCALE_ID} by
4116
- * default).
4117
- */
4118
- transform(value, pluralMap, locale) {
4119
- if (value == null)
4120
- return '';
4121
- if (typeof pluralMap !== 'object' || pluralMap === null) {
4122
- throw invalidPipeArgumentError(I18nPluralPipe, pluralMap);
4123
- }
4124
- const key = getPluralCategory(value, Object.keys(pluralMap), this._localization, locale);
4125
- return pluralMap[key].replace(_INTERPOLATION_REGEXP, value.toString());
4126
- }
4127
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: I18nPluralPipe, deps: [{ token: NgLocalization }], target: i0.ɵɵFactoryTarget.Pipe });
4128
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0-next.2", ngImport: i0, type: I18nPluralPipe, isStandalone: true, name: "i18nPlural" });
4129
- }
4130
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: I18nPluralPipe, decorators: [{
4131
- type: Pipe,
4132
- args: [{
4133
- name: 'i18nPlural',
4134
- }]
4135
- }], ctorParameters: () => [{ type: NgLocalization }] });
4136
-
4137
- /**
4138
- * @ngModule CommonModule
4139
- * @description
4140
- *
4141
- * Generic selector that displays the string that matches the current value.
4142
- *
4143
- * If none of the keys of the `mapping` match the `value`, then the content
4144
- * of the `other` key is returned when present, otherwise an empty string is returned.
4145
- *
4146
- * @usageNotes
4147
- *
4148
- * ### Example
4149
- *
4150
- * {@example common/pipes/ts/i18n_pipe.ts region='I18nSelectPipeComponent'}
4151
- *
4152
- * @publicApi
4153
- */
4154
- class I18nSelectPipe {
4155
- /**
4156
- * @param value a string to be internationalized.
4157
- * @param mapping an object that indicates the text that should be displayed
4158
- * for different values of the provided `value`.
4159
- */
4160
- transform(value, mapping) {
4161
- if (value == null)
4162
- return '';
4163
- if (typeof mapping !== 'object' || typeof value !== 'string') {
4164
- throw invalidPipeArgumentError(I18nSelectPipe, mapping);
4165
- }
4166
- if (mapping.hasOwnProperty(value)) {
4167
- return mapping[value];
4168
- }
4169
- if (mapping.hasOwnProperty('other')) {
4170
- return mapping['other'];
4171
- }
4172
- return '';
4173
- }
4174
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: I18nSelectPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
4175
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0-next.2", ngImport: i0, type: I18nSelectPipe, isStandalone: true, name: "i18nSelect" });
4176
- }
4177
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: I18nSelectPipe, decorators: [{
4178
- type: Pipe,
4179
- args: [{
4180
- name: 'i18nSelect',
4181
- }]
4182
- }] });
4183
-
4184
- /**
4185
- * @ngModule CommonModule
4186
- * @description
4187
- *
4188
- * Converts a value into its JSON-format representation. Useful for debugging.
4189
- *
4190
- * @usageNotes
4191
- *
4192
- * The following component uses a JSON pipe to convert an object
4193
- * to JSON format, and displays the string in both formats for comparison.
4194
- *
4195
- * {@example common/pipes/ts/json_pipe.ts region='JsonPipe'}
4196
- *
4197
- * @publicApi
4198
- */
4199
- class JsonPipe {
4200
- /**
4201
- * @param value A value of any type to convert into a JSON-format string.
4202
- */
4203
- transform(value) {
4204
- return JSON.stringify(value, null, 2);
4205
- }
4206
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: JsonPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
4207
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0-next.2", ngImport: i0, type: JsonPipe, isStandalone: true, name: "json", pure: false });
4208
- }
4209
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: JsonPipe, decorators: [{
4210
- type: Pipe,
4211
- args: [{
4212
- name: 'json',
4213
- pure: false,
4214
- }]
4215
- }] });
4216
-
4217
- function makeKeyValuePair(key, value) {
4218
- return { key: key, value: value };
4219
- }
4220
- /**
4221
- * @ngModule CommonModule
4222
- * @description
4223
- *
4224
- * Transforms Object or Map into an array of key value pairs.
4225
- *
4226
- * The output array will be ordered by keys.
4227
- * By default the comparator will be by Unicode point value.
4228
- * You can optionally pass a compareFn if your keys are complex types.
4229
- * Passing `null` as the compareFn will use natural ordering of the input.
4230
- *
4231
- * @usageNotes
4232
- * ### Examples
4233
- *
4234
- * This examples show how an Object or a Map can be iterated by ngFor with the use of this
4235
- * keyvalue pipe.
4236
- *
4237
- * {@example common/pipes/ts/keyvalue_pipe.ts region='KeyValuePipe'}
4238
- *
4239
- * @publicApi
4240
- */
4241
- class KeyValuePipe {
4242
- differs;
4243
- constructor(differs) {
4244
- this.differs = differs;
4245
- }
4246
- differ;
4247
- keyValues = [];
4248
- compareFn = defaultComparator;
4249
- transform(input, compareFn = defaultComparator) {
4250
- if (!input || (!(input instanceof Map) && typeof input !== 'object')) {
4251
- return null;
4252
- }
4253
- // make a differ for whatever type we've been passed in
4254
- this.differ ??= this.differs.find(input).create();
4255
- const differChanges = this.differ.diff(input);
4256
- const compareFnChanged = compareFn !== this.compareFn;
4257
- if (differChanges) {
4258
- this.keyValues = [];
4259
- differChanges.forEachItem((r) => {
4260
- this.keyValues.push(makeKeyValuePair(r.key, r.currentValue));
4261
- });
4262
- }
4263
- if (differChanges || compareFnChanged) {
4264
- if (compareFn) {
4265
- this.keyValues.sort(compareFn);
4266
- }
4267
- this.compareFn = compareFn;
4268
- }
4269
- return this.keyValues;
4270
- }
4271
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: KeyValuePipe, deps: [{ token: i0.KeyValueDiffers }], target: i0.ɵɵFactoryTarget.Pipe });
4272
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0-next.2", ngImport: i0, type: KeyValuePipe, isStandalone: true, name: "keyvalue", pure: false });
4273
- }
4274
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: KeyValuePipe, decorators: [{
4275
- type: Pipe,
4276
- args: [{
4277
- name: 'keyvalue',
4278
- pure: false,
4279
- }]
4280
- }], ctorParameters: () => [{ type: i0.KeyValueDiffers }] });
4281
- function defaultComparator(keyValueA, keyValueB) {
4282
- const a = keyValueA.key;
4283
- const b = keyValueB.key;
4284
- // If both keys are the same, return 0 (no sorting needed).
4285
- if (a === b)
4286
- return 0;
4287
- // If one of the keys is `null` or `undefined`, place it at the end of the sort.
4288
- if (a == null)
4289
- return 1; // `a` comes after `b`.
4290
- if (b == null)
4291
- return -1; // `b` comes after `a`.
4292
- // If both keys are strings, compare them lexicographically.
4293
- if (typeof a == 'string' && typeof b == 'string') {
4294
- return a < b ? -1 : 1;
4295
- }
4296
- // If both keys are numbers, sort them numerically.
4297
- if (typeof a == 'number' && typeof b == 'number') {
4298
- return a - b;
4299
- }
4300
- // If both keys are booleans, sort `false` before `true`.
4301
- if (typeof a == 'boolean' && typeof b == 'boolean') {
4302
- return a < b ? -1 : 1;
4303
- }
4304
- // Fallback case: if keys are of different types, compare their string representations.
4305
- const aString = String(a);
4306
- const bString = String(b);
4307
- // Compare the string representations lexicographically.
4308
- return aString == bString ? 0 : aString < bString ? -1 : 1;
4309
- }
4310
-
4311
- /**
4312
- * @ngModule CommonModule
4313
- * @description
4314
- *
4315
- * Formats a value according to digit options and locale rules.
4316
- * Locale determines group sizing and separator,
4317
- * decimal point character, and other locale-specific configurations.
4318
- *
4319
- * @see {@link formatNumber}
4320
- *
4321
- * @usageNotes
4322
- *
4323
- * ### digitsInfo
4324
- *
4325
- * The value's decimal representation is specified by the `digitsInfo`
4326
- * parameter, written in the following format:<br>
4327
- *
4328
- * ```
4329
- * {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}
4330
- * ```
4331
- *
4332
- * - `minIntegerDigits`:
4333
- * The minimum number of integer digits before the decimal point.
4334
- * Default is 1.
4335
- *
4336
- * - `minFractionDigits`:
4337
- * The minimum number of digits after the decimal point.
4338
- * Default is 0.
4339
- *
4340
- * - `maxFractionDigits`:
4341
- * The maximum number of digits after the decimal point.
4342
- * Default is 3.
4343
- *
4344
- * If the formatted value is truncated it will be rounded using the "to-nearest" method:
4345
- *
4346
- * ```
4347
- * {{3.6 | number: '1.0-0'}}
4348
- * <!--will output '4'-->
4349
- *
4350
- * {{-3.6 | number:'1.0-0'}}
4351
- * <!--will output '-4'-->
4352
- * ```
4353
- *
4354
- * ### locale
4355
- *
4356
- * `locale` will format a value according to locale rules.
4357
- * Locale determines group sizing and separator,
4358
- * decimal point character, and other locale-specific configurations.
4359
- *
4360
- * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.
4361
- *
4362
- * See [Setting your app locale](guide/i18n/locale-id).
4363
- *
4364
- * ### Example
4365
- *
4366
- * The following code shows how the pipe transforms values
4367
- * according to various format specifications,
4368
- * where the caller's default locale is `en-US`.
4369
- *
4370
- * {@example common/pipes/ts/number_pipe.ts region='NumberPipe'}
4371
- *
4372
- * @publicApi
4373
- */
4374
- class DecimalPipe {
4375
- _locale;
4376
- constructor(_locale) {
4377
- this._locale = _locale;
4378
- }
4379
- transform(value, digitsInfo, locale) {
4380
- if (!isValue(value))
4381
- return null;
4382
- locale ||= this._locale;
4383
- try {
4384
- const num = strToNumber(value);
4385
- return formatNumber(num, locale, digitsInfo);
4386
- }
4387
- catch (error) {
4388
- throw invalidPipeArgumentError(DecimalPipe, error.message);
4389
- }
4390
- }
4391
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: DecimalPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });
4392
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0-next.2", ngImport: i0, type: DecimalPipe, isStandalone: true, name: "number" });
4393
- }
4394
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: DecimalPipe, decorators: [{
4395
- type: Pipe,
4396
- args: [{
4397
- name: 'number',
4398
- }]
4399
- }], ctorParameters: () => [{ type: undefined, decorators: [{
4400
- type: Inject,
4401
- args: [LOCALE_ID]
4402
- }] }] });
4403
- /**
4404
- * @ngModule CommonModule
4405
- * @description
4406
- *
4407
- * Transforms a number to a percentage
4408
- * string, formatted according to locale rules that determine group sizing and
4409
- * separator, decimal-point character, and other locale-specific
4410
- * configurations.
4411
- *
4412
- * @see {@link formatPercent}
4413
- *
4414
- * @usageNotes
4415
- * The following code shows how the pipe transforms numbers
4416
- * into text strings, according to various format specifications,
4417
- * where the caller's default locale is `en-US`.
4418
- *
4419
- * {@example common/pipes/ts/percent_pipe.ts region='PercentPipe'}
4420
- *
4421
- * @publicApi
4422
- */
4423
- class PercentPipe {
4424
- _locale;
4425
- constructor(_locale) {
4426
- this._locale = _locale;
4427
- }
4428
- /**
4429
- *
4430
- * @param value The number to be formatted as a percentage.
4431
- * @param digitsInfo Decimal representation options, specified by a string
4432
- * in the following format:<br>
4433
- * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.
4434
- * - `minIntegerDigits`: The minimum number of integer digits before the decimal point.
4435
- * Default is `1`.
4436
- * - `minFractionDigits`: The minimum number of digits after the decimal point.
4437
- * Default is `0`.
4438
- * - `maxFractionDigits`: The maximum number of digits after the decimal point.
4439
- * Default is `0`.
4440
- * @param locale A locale code for the locale format rules to use.
4441
- * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.
4442
- * See [Setting your app locale](guide/i18n/locale-id).
4443
- */
4444
- transform(value, digitsInfo, locale) {
4445
- if (!isValue(value))
4446
- return null;
4447
- locale ||= this._locale;
4448
- try {
4449
- const num = strToNumber(value);
4450
- return formatPercent(num, locale, digitsInfo);
4451
- }
4452
- catch (error) {
4453
- throw invalidPipeArgumentError(PercentPipe, error.message);
4454
- }
4455
- }
4456
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: PercentPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });
4457
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0-next.2", ngImport: i0, type: PercentPipe, isStandalone: true, name: "percent" });
4458
- }
4459
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: PercentPipe, decorators: [{
4460
- type: Pipe,
4461
- args: [{
4462
- name: 'percent',
4463
- }]
4464
- }], ctorParameters: () => [{ type: undefined, decorators: [{
4465
- type: Inject,
4466
- args: [LOCALE_ID]
4467
- }] }] });
4468
- /**
4469
- * @ngModule CommonModule
4470
- * @description
4471
- *
4472
- * Transforms a number to a currency string, formatted according to locale rules
4473
- * that determine group sizing and separator, decimal-point character,
4474
- * and other locale-specific configurations.
4475
- *
4476
- *
4477
- * @see {@link getCurrencySymbol}
4478
- * @see {@link formatCurrency}
4479
- *
4480
- * @usageNotes
4481
- * The following code shows how the pipe transforms numbers
4482
- * into text strings, according to various format specifications,
4483
- * where the caller's default locale is `en-US`.
4484
- *
4485
- * {@example common/pipes/ts/currency_pipe.ts region='CurrencyPipe'}
4486
- *
4487
- * @publicApi
4488
- */
4489
- class CurrencyPipe {
4490
- _locale;
4491
- _defaultCurrencyCode;
4492
- constructor(_locale, _defaultCurrencyCode = 'USD') {
4493
- this._locale = _locale;
4494
- this._defaultCurrencyCode = _defaultCurrencyCode;
4495
- }
4496
- transform(value, currencyCode = this._defaultCurrencyCode, display = 'symbol', digitsInfo, locale) {
4497
- if (!isValue(value))
4498
- return null;
4499
- locale ||= this._locale;
4500
- if (typeof display === 'boolean') {
4501
- if (typeof ngDevMode === 'undefined' || ngDevMode) {
4502
- console.warn(`Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".`);
4503
- }
4504
- display = display ? 'symbol' : 'code';
4505
- }
4506
- let currency = currencyCode || this._defaultCurrencyCode;
4507
- if (display !== 'code') {
4508
- if (display === 'symbol' || display === 'symbol-narrow') {
4509
- currency = getCurrencySymbol(currency, display === 'symbol' ? 'wide' : 'narrow', locale);
4510
- }
4511
- else {
4512
- currency = display;
4513
- }
4514
- }
4515
- try {
4516
- const num = strToNumber(value);
4517
- return formatCurrency(num, locale, currency, currencyCode, digitsInfo);
4518
- }
4519
- catch (error) {
4520
- throw invalidPipeArgumentError(CurrencyPipe, error.message);
4521
- }
4522
- }
4523
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: CurrencyPipe, deps: [{ token: LOCALE_ID }, { token: DEFAULT_CURRENCY_CODE }], target: i0.ɵɵFactoryTarget.Pipe });
4524
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0-next.2", ngImport: i0, type: CurrencyPipe, isStandalone: true, name: "currency" });
4525
- }
4526
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: CurrencyPipe, decorators: [{
4527
- type: Pipe,
4528
- args: [{
4529
- name: 'currency',
4530
- }]
4531
- }], ctorParameters: () => [{ type: undefined, decorators: [{
4532
- type: Inject,
4533
- args: [LOCALE_ID]
4534
- }] }, { type: undefined, decorators: [{
4535
- type: Inject,
4536
- args: [DEFAULT_CURRENCY_CODE]
4537
- }] }] });
4538
- function isValue(value) {
4539
- return !(value == null || value === '' || value !== value);
4540
- }
4541
- /**
4542
- * Transforms a string into a number (if needed).
4543
- */
4544
- function strToNumber(value) {
4545
- // Convert strings to numbers
4546
- if (typeof value === 'string' && !isNaN(Number(value) - parseFloat(value))) {
4547
- return Number(value);
4548
- }
4549
- if (typeof value !== 'number') {
4550
- throw new _RuntimeError(2309 /* RuntimeErrorCode.VALUE_NOT_A_NUMBER */, ngDevMode && `${value} is not a number`);
4551
- }
4552
- return value;
4553
- }
4554
-
4555
- /**
4556
- * @ngModule CommonModule
4557
- * @description
4558
- *
4559
- * Creates a new `Array` or `String` containing a subset (slice) of the elements.
4560
- *
4561
- * @usageNotes
4562
- *
4563
- * All behavior is based on the expected behavior of the JavaScript API `Array.prototype.slice()`
4564
- * and `String.prototype.slice()`.
4565
- *
4566
- * When operating on an `Array`, the returned `Array` is always a copy even when all
4567
- * the elements are being returned.
4568
- *
4569
- * When operating on a blank value, the pipe returns the blank value.
4570
- *
4571
- * ### List Example
4572
- *
4573
- * This `ngFor` example:
4574
- *
4575
- * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_list'}
4576
- *
4577
- * produces the following:
4578
- *
4579
- * ```html
4580
- * <li>b</li>
4581
- * <li>c</li>
4582
- * ```
4583
- *
4584
- * ### String Examples
4585
- *
4586
- * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_string'}
4587
- *
4588
- * @publicApi
4589
- */
4590
- class SlicePipe {
4591
- transform(value, start, end) {
4592
- if (value == null)
4593
- return null;
4594
- const supports = typeof value === 'string' || Array.isArray(value);
4595
- if (!supports) {
4596
- throw invalidPipeArgumentError(SlicePipe, value);
4597
- }
4598
- return value.slice(start, end);
4599
- }
4600
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: SlicePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
4601
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.2.0-next.2", ngImport: i0, type: SlicePipe, isStandalone: true, name: "slice", pure: false });
4602
- }
4603
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: SlicePipe, decorators: [{
4604
- type: Pipe,
4605
- args: [{
4606
- name: 'slice',
4607
- pure: false,
4608
- }]
4609
- }] });
4610
-
4611
- /**
4612
- * @module
4613
- * @description
4614
- * This module provides a set of common Pipes.
4615
- */
4616
- /**
4617
- * A collection of Angular pipes that are likely to be used in each and every application.
4618
- */
4619
- const COMMON_PIPES = [
4620
- AsyncPipe,
4621
- UpperCasePipe,
4622
- LowerCasePipe,
4623
- JsonPipe,
4624
- SlicePipe,
4625
- DecimalPipe,
4626
- PercentPipe,
4627
- TitleCasePipe,
4628
- CurrencyPipe,
4629
- DatePipe,
4630
- I18nPluralPipe,
4631
- I18nSelectPipe,
4632
- KeyValuePipe,
4633
- ];
4634
-
4635
- // Note: This does not contain the location providers,
4636
- // as they need some platform specific implementations to work.
4637
- /**
4638
- * Exports all the basic Angular directives and pipes,
4639
- * such as `NgIf`, `NgForOf`, `DecimalPipe`, and so on.
4640
- * Re-exported by `BrowserModule`, which is included automatically in the root
4641
- * `AppModule` when you create a new app with the CLI `new` command.
4642
- *
4643
- * @publicApi
4644
- */
4645
- class CommonModule {
4646
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: CommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4647
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.0-next.2", ngImport: i0, type: CommonModule, imports: [NgClass, NgComponentOutlet, NgForOf, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase, AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe], exports: [NgClass, NgComponentOutlet, NgForOf, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase, AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe] });
4648
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: CommonModule });
4649
- }
4650
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.2", ngImport: i0, type: CommonModule, decorators: [{
4651
- type: NgModule,
4652
- args: [{
4653
- imports: [COMMON_DIRECTIVES, COMMON_PIPES],
4654
- exports: [COMMON_DIRECTIVES, COMMON_PIPES],
4655
- }]
4656
- }] });
4657
-
4658
- export { AsyncPipe, CommonModule, CurrencyPipe, DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DatePipe, DecimalPipe, FormStyle, FormatWidth, HashLocationStrategy, I18nPluralPipe, I18nSelectPipe, JsonPipe, KeyValuePipe, LowerCasePipe, NgClass, NgComponentOutlet, NgForOf, NgForOfContext, NgIf, NgIfContext, NgLocaleLocalization, NgLocalization, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, NumberFormatStyle, NumberSymbol, PercentPipe, Plural, SlicePipe, TitleCasePipe, TranslationWidth, UpperCasePipe, WeekDay, formatCurrency, formatDate, formatNumber, formatPercent, getCurrencySymbol, getLocaleCurrencyCode, getLocaleCurrencyName, getLocaleCurrencySymbol, getLocaleDateFormat, getLocaleDateTimeFormat, getLocaleDayNames, getLocaleDayPeriods, getLocaleDirection, getLocaleEraNames, getLocaleExtraDayPeriodRules, getLocaleExtraDayPeriods, getLocaleFirstDayOfWeek, getLocaleId, getLocaleMonthNames, getLocaleNumberFormat, getLocaleNumberSymbol, getLocalePluralCase, getLocaleTimeFormat, getLocaleWeekEndRange, getNumberOfCurrencyDigits };
4659
- //# sourceMappingURL=common_module.mjs.map