@formatjs/intl-numberformat 8.1.0 → 8.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -0
- package/index.js +4 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +1 -0
- package/lib/polyfill-force.d.ts +2 -0
- package/lib/polyfill-force.d.ts.map +1 -0
- package/lib/polyfill-force.js +9 -0
- package/lib/polyfill.d.ts +2 -0
- package/lib/polyfill.d.ts.map +1 -0
- package/lib/polyfill.js +12 -0
- package/lib/should-polyfill.d.ts +2 -0
- package/lib/should-polyfill.d.ts.map +1 -0
- package/lib/should-polyfill.js +53 -0
- package/lib/src/core.d.ts +7 -0
- package/lib/src/core.d.ts.map +1 -0
- package/lib/src/core.js +227 -0
- package/lib/src/currency-digits.generated.d.ts +2 -0
- package/lib/src/currency-digits.generated.d.ts.map +1 -0
- package/lib/src/currency-digits.generated.js +1 -0
- package/lib/src/get_internal_slots.d.ts +3 -0
- package/lib/src/get_internal_slots.d.ts.map +1 -0
- package/lib/src/get_internal_slots.js +10 -0
- package/lib/src/numbering-systems.generated.d.ts +2 -0
- package/lib/src/numbering-systems.generated.d.ts.map +1 -0
- package/lib/src/numbering-systems.generated.js +1 -0
- package/lib/src/to_locale_string.d.ts +7 -0
- package/lib/src/to_locale_string.d.ts.map +1 -0
- package/lib/src/to_locale_string.js +10 -0
- package/lib/src/types.d.ts +19 -0
- package/lib/src/types.d.ts.map +1 -0
- package/lib/src/types.js +1 -0
- package/lib/supported-locales.generated.d.ts +2 -0
- package/lib/supported-locales.generated.d.ts.map +1 -0
- package/lib/supported-locales.generated.js +1 -0
- package/locale-data/af-NA.d.ts +1 -0
- package/locale-data/af-NA.js +6 -0
- package/locale-data/af.d.ts +1 -0
- package/locale-data/af.js +6 -0
- package/locale-data/agq.d.ts +1 -0
- package/locale-data/agq.js +6 -0
- package/locale-data/ak.d.ts +1 -0
- package/locale-data/ak.js +6 -0
- package/locale-data/am.d.ts +1 -0
- package/locale-data/am.js +6 -0
- package/locale-data/ar-AE.d.ts +1 -0
- package/locale-data/ar-AE.js +6 -0
- package/locale-data/ar-BH.d.ts +1 -0
- package/locale-data/ar-BH.js +6 -0
- package/locale-data/ar-DJ.d.ts +1 -0
- package/locale-data/ar-DJ.js +6 -0
- package/locale-data/ar-DZ.d.ts +1 -0
- package/locale-data/ar-DZ.js +6 -0
- package/locale-data/ar-EG.d.ts +1 -0
- package/locale-data/ar-EG.js +6 -0
- package/locale-data/ar-EH.d.ts +1 -0
- package/locale-data/ar-EH.js +6 -0
- package/locale-data/ar-ER.d.ts +1 -0
- package/locale-data/ar-ER.js +6 -0
- package/locale-data/ar-IL.d.ts +1 -0
- package/locale-data/ar-IL.js +6 -0
- package/locale-data/ar-IQ.d.ts +1 -0
- package/locale-data/ar-IQ.js +6 -0
- package/locale-data/ar-JO.d.ts +1 -0
- package/locale-data/ar-JO.js +6 -0
- package/locale-data/ar-KM.d.ts +1 -0
- package/locale-data/ar-KM.js +6 -0
- package/locale-data/ar-KW.d.ts +1 -0
- package/locale-data/ar-KW.js +6 -0
- package/locale-data/ar-LB.d.ts +1 -0
- package/locale-data/ar-LB.js +6 -0
- package/locale-data/ar-LY.d.ts +1 -0
- package/locale-data/ar-LY.js +6 -0
- package/locale-data/ar-MA.d.ts +1 -0
- package/locale-data/ar-MA.js +6 -0
- package/locale-data/ar-MR.d.ts +1 -0
- package/locale-data/ar-MR.js +6 -0
- package/locale-data/ar-OM.d.ts +1 -0
- package/locale-data/ar-OM.js +6 -0
- package/locale-data/ar-PS.d.ts +1 -0
- package/locale-data/ar-PS.js +6 -0
- package/locale-data/ar-QA.d.ts +1 -0
- package/locale-data/ar-QA.js +6 -0
- package/locale-data/ar-SA.d.ts +1 -0
- package/locale-data/ar-SA.js +6 -0
- package/locale-data/ar-SD.d.ts +1 -0
- package/locale-data/ar-SD.js +6 -0
- package/locale-data/ar-SO.d.ts +1 -0
- package/locale-data/ar-SO.js +6 -0
- package/locale-data/ar-SS.d.ts +1 -0
- package/locale-data/ar-SS.js +6 -0
- package/locale-data/ar-SY.d.ts +1 -0
- package/locale-data/ar-SY.js +6 -0
- package/locale-data/ar-TD.d.ts +1 -0
- package/locale-data/ar-TD.js +6 -0
- package/locale-data/ar-TN.d.ts +1 -0
- package/locale-data/ar-TN.js +6 -0
- package/locale-data/ar-YE.d.ts +1 -0
- package/locale-data/ar-YE.js +6 -0
- package/locale-data/ar.d.ts +1 -0
- package/locale-data/ar.js +6 -0
- package/locale-data/as.d.ts +1 -0
- package/locale-data/as.js +6 -0
- package/locale-data/asa.d.ts +1 -0
- package/locale-data/asa.js +6 -0
- package/locale-data/ast.d.ts +1 -0
- package/locale-data/ast.js +6 -0
- package/locale-data/az-Cyrl.d.ts +1 -0
- package/locale-data/az-Cyrl.js +6 -0
- package/locale-data/az-Latn.d.ts +1 -0
- package/locale-data/az-Latn.js +6 -0
- package/locale-data/az.d.ts +1 -0
- package/locale-data/az.js +6 -0
- package/locale-data/bas.d.ts +1 -0
- package/locale-data/bas.js +6 -0
- package/locale-data/be-tarask.d.ts +1 -0
- package/locale-data/be-tarask.js +6 -0
- package/locale-data/be.d.ts +1 -0
- package/locale-data/be.js +6 -0
- package/locale-data/bem.d.ts +1 -0
- package/locale-data/bem.js +6 -0
- package/locale-data/bez.d.ts +1 -0
- package/locale-data/bez.js +6 -0
- package/locale-data/bg.d.ts +1 -0
- package/locale-data/bg.js +6 -0
- package/locale-data/bm.d.ts +1 -0
- package/locale-data/bm.js +6 -0
- package/locale-data/bn-IN.d.ts +1 -0
- package/locale-data/bn-IN.js +6 -0
- package/locale-data/bn.d.ts +1 -0
- package/locale-data/bn.js +6 -0
- package/locale-data/bo-IN.d.ts +1 -0
- package/locale-data/bo-IN.js +6 -0
- package/locale-data/bo.d.ts +1 -0
- package/locale-data/bo.js +6 -0
- package/locale-data/br.d.ts +1 -0
- package/locale-data/br.js +6 -0
- package/locale-data/brx.d.ts +1 -0
- package/locale-data/brx.js +6 -0
- package/locale-data/bs-Cyrl.d.ts +1 -0
- package/locale-data/bs-Cyrl.js +6 -0
- package/locale-data/bs-Latn.d.ts +1 -0
- package/locale-data/bs-Latn.js +6 -0
- package/locale-data/bs.d.ts +1 -0
- package/locale-data/bs.js +6 -0
- package/locale-data/ca-AD.d.ts +1 -0
- package/locale-data/ca-AD.js +6 -0
- package/locale-data/ca-ES-valencia.d.ts +1 -0
- package/locale-data/ca-ES-valencia.js +6 -0
- package/locale-data/ca-FR.d.ts +1 -0
- package/locale-data/ca-FR.js +6 -0
- package/locale-data/ca-IT.d.ts +1 -0
- package/locale-data/ca-IT.js +6 -0
- package/locale-data/ca.d.ts +1 -0
- package/locale-data/ca.js +6 -0
- package/locale-data/ccp-IN.d.ts +1 -0
- package/locale-data/ccp-IN.js +6 -0
- package/locale-data/ccp.d.ts +1 -0
- package/locale-data/ccp.js +6 -0
- package/locale-data/ce.d.ts +1 -0
- package/locale-data/ce.js +6 -0
- package/locale-data/ceb.d.ts +1 -0
- package/locale-data/ceb.js +6 -0
- package/locale-data/cgg.d.ts +1 -0
- package/locale-data/cgg.js +6 -0
- package/locale-data/chr.d.ts +1 -0
- package/locale-data/chr.js +6 -0
- package/locale-data/ckb-IR.d.ts +1 -0
- package/locale-data/ckb-IR.js +6 -0
- package/locale-data/ckb.d.ts +1 -0
- package/locale-data/ckb.js +6 -0
- package/locale-data/cs.d.ts +1 -0
- package/locale-data/cs.js +6 -0
- package/locale-data/cy.d.ts +1 -0
- package/locale-data/cy.js +6 -0
- package/locale-data/da-GL.d.ts +1 -0
- package/locale-data/da-GL.js +6 -0
- package/locale-data/da.d.ts +1 -0
- package/locale-data/da.js +6 -0
- package/locale-data/dav.d.ts +1 -0
- package/locale-data/dav.js +6 -0
- package/locale-data/de-AT.d.ts +1 -0
- package/locale-data/de-AT.js +6 -0
- package/locale-data/de-BE.d.ts +1 -0
- package/locale-data/de-BE.js +6 -0
- package/locale-data/de-CH.d.ts +1 -0
- package/locale-data/de-CH.js +6 -0
- package/locale-data/de-IT.d.ts +1 -0
- package/locale-data/de-IT.js +6 -0
- package/locale-data/de-LI.d.ts +1 -0
- package/locale-data/de-LI.js +6 -0
- package/locale-data/de-LU.d.ts +1 -0
- package/locale-data/de-LU.js +6 -0
- package/locale-data/de.d.ts +1 -0
- package/locale-data/de.js +6 -0
- package/locale-data/dje.d.ts +1 -0
- package/locale-data/dje.js +6 -0
- package/locale-data/doi.d.ts +1 -0
- package/locale-data/doi.js +6 -0
- package/locale-data/dsb.d.ts +1 -0
- package/locale-data/dsb.js +6 -0
- package/locale-data/dua.d.ts +1 -0
- package/locale-data/dua.js +6 -0
- package/locale-data/dyo.d.ts +1 -0
- package/locale-data/dyo.js +6 -0
- package/locale-data/dz.d.ts +1 -0
- package/locale-data/dz.js +6 -0
- package/locale-data/ebu.d.ts +1 -0
- package/locale-data/ebu.js +6 -0
- package/locale-data/ee-TG.d.ts +1 -0
- package/locale-data/ee-TG.js +6 -0
- package/locale-data/ee.d.ts +1 -0
- package/locale-data/ee.js +6 -0
- package/locale-data/el-CY.d.ts +1 -0
- package/locale-data/el-CY.js +6 -0
- package/locale-data/el.d.ts +1 -0
- package/locale-data/el.js +6 -0
- package/locale-data/en-001.d.ts +1 -0
- package/locale-data/en-001.js +6 -0
- package/locale-data/en-150.d.ts +1 -0
- package/locale-data/en-150.js +6 -0
- package/locale-data/en-AE.d.ts +1 -0
- package/locale-data/en-AE.js +6 -0
- package/locale-data/en-AG.d.ts +1 -0
- package/locale-data/en-AG.js +6 -0
- package/locale-data/en-AI.d.ts +1 -0
- package/locale-data/en-AI.js +6 -0
- package/locale-data/en-AS.d.ts +1 -0
- package/locale-data/en-AS.js +6 -0
- package/locale-data/en-AT.d.ts +1 -0
- package/locale-data/en-AT.js +6 -0
- package/locale-data/en-AU.d.ts +1 -0
- package/locale-data/en-AU.js +6 -0
- package/locale-data/en-BB.d.ts +1 -0
- package/locale-data/en-BB.js +6 -0
- package/locale-data/en-BE.d.ts +1 -0
- package/locale-data/en-BE.js +6 -0
- package/locale-data/en-BI.d.ts +1 -0
- package/locale-data/en-BI.js +6 -0
- package/locale-data/en-BM.d.ts +1 -0
- package/locale-data/en-BM.js +6 -0
- package/locale-data/en-BS.d.ts +1 -0
- package/locale-data/en-BS.js +6 -0
- package/locale-data/en-BW.d.ts +1 -0
- package/locale-data/en-BW.js +6 -0
- package/locale-data/en-BZ.d.ts +1 -0
- package/locale-data/en-BZ.js +6 -0
- package/locale-data/en-CA.d.ts +1 -0
- package/locale-data/en-CA.js +6 -0
- package/locale-data/en-CC.d.ts +1 -0
- package/locale-data/en-CC.js +6 -0
- package/locale-data/en-CH.d.ts +1 -0
- package/locale-data/en-CH.js +6 -0
- package/locale-data/en-CK.d.ts +1 -0
- package/locale-data/en-CK.js +6 -0
- package/locale-data/en-CM.d.ts +1 -0
- package/locale-data/en-CM.js +6 -0
- package/locale-data/en-CX.d.ts +1 -0
- package/locale-data/en-CX.js +6 -0
- package/locale-data/en-CY.d.ts +1 -0
- package/locale-data/en-CY.js +6 -0
- package/locale-data/en-DE.d.ts +1 -0
- package/locale-data/en-DE.js +6 -0
- package/locale-data/en-DG.d.ts +1 -0
- package/locale-data/en-DG.js +6 -0
- package/locale-data/en-DK.d.ts +1 -0
- package/locale-data/en-DK.js +6 -0
- package/locale-data/en-DM.d.ts +1 -0
- package/locale-data/en-DM.js +6 -0
- package/locale-data/en-ER.d.ts +1 -0
- package/locale-data/en-ER.js +6 -0
- package/locale-data/en-FI.d.ts +1 -0
- package/locale-data/en-FI.js +6 -0
- package/locale-data/en-FJ.d.ts +1 -0
- package/locale-data/en-FJ.js +6 -0
- package/locale-data/en-FK.d.ts +1 -0
- package/locale-data/en-FK.js +6 -0
- package/locale-data/en-FM.d.ts +1 -0
- package/locale-data/en-FM.js +6 -0
- package/locale-data/en-GB.d.ts +1 -0
- package/locale-data/en-GB.js +6 -0
- package/locale-data/en-GD.d.ts +1 -0
- package/locale-data/en-GD.js +6 -0
- package/locale-data/en-GG.d.ts +1 -0
- package/locale-data/en-GG.js +6 -0
- package/locale-data/en-GH.d.ts +1 -0
- package/locale-data/en-GH.js +6 -0
- package/locale-data/en-GI.d.ts +1 -0
- package/locale-data/en-GI.js +6 -0
- package/locale-data/en-GM.d.ts +1 -0
- package/locale-data/en-GM.js +6 -0
- package/locale-data/en-GU.d.ts +1 -0
- package/locale-data/en-GU.js +6 -0
- package/locale-data/en-GY.d.ts +1 -0
- package/locale-data/en-GY.js +6 -0
- package/locale-data/en-HK.d.ts +1 -0
- package/locale-data/en-HK.js +6 -0
- package/locale-data/en-IE.d.ts +1 -0
- package/locale-data/en-IE.js +6 -0
- package/locale-data/en-IL.d.ts +1 -0
- package/locale-data/en-IL.js +6 -0
- package/locale-data/en-IM.d.ts +1 -0
- package/locale-data/en-IM.js +6 -0
- package/locale-data/en-IN.d.ts +1 -0
- package/locale-data/en-IN.js +6 -0
- package/locale-data/en-IO.d.ts +1 -0
- package/locale-data/en-IO.js +6 -0
- package/locale-data/en-JE.d.ts +1 -0
- package/locale-data/en-JE.js +6 -0
- package/locale-data/en-JM.d.ts +1 -0
- package/locale-data/en-JM.js +6 -0
- package/locale-data/en-KE.d.ts +1 -0
- package/locale-data/en-KE.js +6 -0
- package/locale-data/en-KI.d.ts +1 -0
- package/locale-data/en-KI.js +6 -0
- package/locale-data/en-KN.d.ts +1 -0
- package/locale-data/en-KN.js +6 -0
- package/locale-data/en-KY.d.ts +1 -0
- package/locale-data/en-KY.js +6 -0
- package/locale-data/en-LC.d.ts +1 -0
- package/locale-data/en-LC.js +6 -0
- package/locale-data/en-LR.d.ts +1 -0
- package/locale-data/en-LR.js +6 -0
- package/locale-data/en-LS.d.ts +1 -0
- package/locale-data/en-LS.js +6 -0
- package/locale-data/en-MG.d.ts +1 -0
- package/locale-data/en-MG.js +6 -0
- package/locale-data/en-MH.d.ts +1 -0
- package/locale-data/en-MH.js +6 -0
- package/locale-data/en-MO.d.ts +1 -0
- package/locale-data/en-MO.js +6 -0
- package/locale-data/en-MP.d.ts +1 -0
- package/locale-data/en-MP.js +6 -0
- package/locale-data/en-MS.d.ts +1 -0
- package/locale-data/en-MS.js +6 -0
- package/locale-data/en-MT.d.ts +1 -0
- package/locale-data/en-MT.js +6 -0
- package/locale-data/en-MU.d.ts +1 -0
- package/locale-data/en-MU.js +6 -0
- package/locale-data/en-MW.d.ts +1 -0
- package/locale-data/en-MW.js +6 -0
- package/locale-data/en-MY.d.ts +1 -0
- package/locale-data/en-MY.js +6 -0
- package/locale-data/en-NA.d.ts +1 -0
- package/locale-data/en-NA.js +6 -0
- package/locale-data/en-NF.d.ts +1 -0
- package/locale-data/en-NF.js +6 -0
- package/locale-data/en-NG.d.ts +1 -0
- package/locale-data/en-NG.js +6 -0
- package/locale-data/en-NL.d.ts +1 -0
- package/locale-data/en-NL.js +6 -0
- package/locale-data/en-NR.d.ts +1 -0
- package/locale-data/en-NR.js +6 -0
- package/locale-data/en-NU.d.ts +1 -0
- package/locale-data/en-NU.js +6 -0
- package/locale-data/en-NZ.d.ts +1 -0
- package/locale-data/en-NZ.js +6 -0
- package/locale-data/en-PG.d.ts +1 -0
- package/locale-data/en-PG.js +6 -0
- package/locale-data/en-PH.d.ts +1 -0
- package/locale-data/en-PH.js +6 -0
- package/locale-data/en-PK.d.ts +1 -0
- package/locale-data/en-PK.js +6 -0
- package/locale-data/en-PN.d.ts +1 -0
- package/locale-data/en-PN.js +6 -0
- package/locale-data/en-PR.d.ts +1 -0
- package/locale-data/en-PR.js +6 -0
- package/locale-data/en-PW.d.ts +1 -0
- package/locale-data/en-PW.js +6 -0
- package/locale-data/en-RW.d.ts +1 -0
- package/locale-data/en-RW.js +6 -0
- package/locale-data/en-SB.d.ts +1 -0
- package/locale-data/en-SB.js +6 -0
- package/locale-data/en-SC.d.ts +1 -0
- package/locale-data/en-SC.js +6 -0
- package/locale-data/en-SD.d.ts +1 -0
- package/locale-data/en-SD.js +6 -0
- package/locale-data/en-SE.d.ts +1 -0
- package/locale-data/en-SE.js +6 -0
- package/locale-data/en-SG.d.ts +1 -0
- package/locale-data/en-SG.js +6 -0
- package/locale-data/en-SH.d.ts +1 -0
- package/locale-data/en-SH.js +6 -0
- package/locale-data/en-SI.d.ts +1 -0
- package/locale-data/en-SI.js +6 -0
- package/locale-data/en-SL.d.ts +1 -0
- package/locale-data/en-SL.js +6 -0
- package/locale-data/en-SS.d.ts +1 -0
- package/locale-data/en-SS.js +6 -0
- package/locale-data/en-SX.d.ts +1 -0
- package/locale-data/en-SX.js +6 -0
- package/locale-data/en-SZ.d.ts +1 -0
- package/locale-data/en-SZ.js +6 -0
- package/locale-data/en-TC.d.ts +1 -0
- package/locale-data/en-TC.js +6 -0
- package/locale-data/en-TK.d.ts +1 -0
- package/locale-data/en-TK.js +6 -0
- package/locale-data/en-TO.d.ts +1 -0
- package/locale-data/en-TO.js +6 -0
- package/locale-data/en-TT.d.ts +1 -0
- package/locale-data/en-TT.js +6 -0
- package/locale-data/en-TV.d.ts +1 -0
- package/locale-data/en-TV.js +6 -0
- package/locale-data/en-TZ.d.ts +1 -0
- package/locale-data/en-TZ.js +6 -0
- package/locale-data/en-UG.d.ts +1 -0
- package/locale-data/en-UG.js +6 -0
- package/locale-data/en-UM.d.ts +1 -0
- package/locale-data/en-UM.js +6 -0
- package/locale-data/en-VC.d.ts +1 -0
- package/locale-data/en-VC.js +6 -0
- package/locale-data/en-VG.d.ts +1 -0
- package/locale-data/en-VG.js +6 -0
- package/locale-data/en-VI.d.ts +1 -0
- package/locale-data/en-VI.js +6 -0
- package/locale-data/en-VU.d.ts +1 -0
- package/locale-data/en-VU.js +6 -0
- package/locale-data/en-WS.d.ts +1 -0
- package/locale-data/en-WS.js +6 -0
- package/locale-data/en-ZA.d.ts +1 -0
- package/locale-data/en-ZA.js +6 -0
- package/locale-data/en-ZM.d.ts +1 -0
- package/locale-data/en-ZM.js +6 -0
- package/locale-data/en-ZW.d.ts +1 -0
- package/locale-data/en-ZW.js +6 -0
- package/locale-data/en.d.ts +1 -0
- package/locale-data/en.js +6 -0
- package/locale-data/eo.d.ts +1 -0
- package/locale-data/eo.js +6 -0
- package/locale-data/es-419.d.ts +1 -0
- package/locale-data/es-419.js +6 -0
- package/locale-data/es-AR.d.ts +1 -0
- package/locale-data/es-AR.js +6 -0
- package/locale-data/es-BO.d.ts +1 -0
- package/locale-data/es-BO.js +6 -0
- package/locale-data/es-BR.d.ts +1 -0
- package/locale-data/es-BR.js +6 -0
- package/locale-data/es-BZ.d.ts +1 -0
- package/locale-data/es-BZ.js +6 -0
- package/locale-data/es-CL.d.ts +1 -0
- package/locale-data/es-CL.js +6 -0
- package/locale-data/es-CO.d.ts +1 -0
- package/locale-data/es-CO.js +6 -0
- package/locale-data/es-CR.d.ts +1 -0
- package/locale-data/es-CR.js +6 -0
- package/locale-data/es-CU.d.ts +1 -0
- package/locale-data/es-CU.js +6 -0
- package/locale-data/es-DO.d.ts +1 -0
- package/locale-data/es-DO.js +6 -0
- package/locale-data/es-EA.d.ts +1 -0
- package/locale-data/es-EA.js +6 -0
- package/locale-data/es-EC.d.ts +1 -0
- package/locale-data/es-EC.js +6 -0
- package/locale-data/es-GQ.d.ts +1 -0
- package/locale-data/es-GQ.js +6 -0
- package/locale-data/es-GT.d.ts +1 -0
- package/locale-data/es-GT.js +6 -0
- package/locale-data/es-HN.d.ts +1 -0
- package/locale-data/es-HN.js +6 -0
- package/locale-data/es-IC.d.ts +1 -0
- package/locale-data/es-IC.js +6 -0
- package/locale-data/es-MX.d.ts +1 -0
- package/locale-data/es-MX.js +6 -0
- package/locale-data/es-NI.d.ts +1 -0
- package/locale-data/es-NI.js +6 -0
- package/locale-data/es-PA.d.ts +1 -0
- package/locale-data/es-PA.js +6 -0
- package/locale-data/es-PE.d.ts +1 -0
- package/locale-data/es-PE.js +6 -0
- package/locale-data/es-PH.d.ts +1 -0
- package/locale-data/es-PH.js +6 -0
- package/locale-data/es-PR.d.ts +1 -0
- package/locale-data/es-PR.js +6 -0
- package/locale-data/es-PY.d.ts +1 -0
- package/locale-data/es-PY.js +6 -0
- package/locale-data/es-SV.d.ts +1 -0
- package/locale-data/es-SV.js +6 -0
- package/locale-data/es-US.d.ts +1 -0
- package/locale-data/es-US.js +6 -0
- package/locale-data/es-UY.d.ts +1 -0
- package/locale-data/es-UY.js +6 -0
- package/locale-data/es-VE.d.ts +1 -0
- package/locale-data/es-VE.js +6 -0
- package/locale-data/es.d.ts +1 -0
- package/locale-data/es.js +6 -0
- package/locale-data/et.d.ts +1 -0
- package/locale-data/et.js +6 -0
- package/locale-data/eu.d.ts +1 -0
- package/locale-data/eu.js +6 -0
- package/locale-data/ewo.d.ts +1 -0
- package/locale-data/ewo.js +6 -0
- package/locale-data/fa-AF.d.ts +1 -0
- package/locale-data/fa-AF.js +6 -0
- package/locale-data/fa.d.ts +1 -0
- package/locale-data/fa.js +6 -0
- package/locale-data/ff-Adlm-BF.d.ts +1 -0
- package/locale-data/ff-Adlm-BF.js +6 -0
- package/locale-data/ff-Adlm-CM.d.ts +1 -0
- package/locale-data/ff-Adlm-CM.js +6 -0
- package/locale-data/ff-Adlm-GH.d.ts +1 -0
- package/locale-data/ff-Adlm-GH.js +6 -0
- package/locale-data/ff-Adlm-GM.d.ts +1 -0
- package/locale-data/ff-Adlm-GM.js +6 -0
- package/locale-data/ff-Adlm-GW.d.ts +1 -0
- package/locale-data/ff-Adlm-GW.js +6 -0
- package/locale-data/ff-Adlm-LR.d.ts +1 -0
- package/locale-data/ff-Adlm-LR.js +6 -0
- package/locale-data/ff-Adlm-MR.d.ts +1 -0
- package/locale-data/ff-Adlm-MR.js +6 -0
- package/locale-data/ff-Adlm-NE.d.ts +1 -0
- package/locale-data/ff-Adlm-NE.js +6 -0
- package/locale-data/ff-Adlm-NG.d.ts +1 -0
- package/locale-data/ff-Adlm-NG.js +6 -0
- package/locale-data/ff-Adlm-SL.d.ts +1 -0
- package/locale-data/ff-Adlm-SL.js +6 -0
- package/locale-data/ff-Adlm-SN.d.ts +1 -0
- package/locale-data/ff-Adlm-SN.js +6 -0
- package/locale-data/ff-Adlm.d.ts +1 -0
- package/locale-data/ff-Adlm.js +6 -0
- package/locale-data/ff-Latn-BF.d.ts +1 -0
- package/locale-data/ff-Latn-BF.js +6 -0
- package/locale-data/ff-Latn-CM.d.ts +1 -0
- package/locale-data/ff-Latn-CM.js +6 -0
- package/locale-data/ff-Latn-GH.d.ts +1 -0
- package/locale-data/ff-Latn-GH.js +6 -0
- package/locale-data/ff-Latn-GM.d.ts +1 -0
- package/locale-data/ff-Latn-GM.js +6 -0
- package/locale-data/ff-Latn-GN.d.ts +1 -0
- package/locale-data/ff-Latn-GN.js +6 -0
- package/locale-data/ff-Latn-GW.d.ts +1 -0
- package/locale-data/ff-Latn-GW.js +6 -0
- package/locale-data/ff-Latn-LR.d.ts +1 -0
- package/locale-data/ff-Latn-LR.js +6 -0
- package/locale-data/ff-Latn-MR.d.ts +1 -0
- package/locale-data/ff-Latn-MR.js +6 -0
- package/locale-data/ff-Latn-NE.d.ts +1 -0
- package/locale-data/ff-Latn-NE.js +6 -0
- package/locale-data/ff-Latn-NG.d.ts +1 -0
- package/locale-data/ff-Latn-NG.js +6 -0
- package/locale-data/ff-Latn-SL.d.ts +1 -0
- package/locale-data/ff-Latn-SL.js +6 -0
- package/locale-data/ff-Latn.d.ts +1 -0
- package/locale-data/ff-Latn.js +6 -0
- package/locale-data/ff.d.ts +1 -0
- package/locale-data/ff.js +6 -0
- package/locale-data/fi.d.ts +1 -0
- package/locale-data/fi.js +6 -0
- package/locale-data/fil.d.ts +1 -0
- package/locale-data/fil.js +6 -0
- package/locale-data/fo-DK.d.ts +1 -0
- package/locale-data/fo-DK.js +6 -0
- package/locale-data/fo.d.ts +1 -0
- package/locale-data/fo.js +6 -0
- package/locale-data/fr-BE.d.ts +1 -0
- package/locale-data/fr-BE.js +6 -0
- package/locale-data/fr-BF.d.ts +1 -0
- package/locale-data/fr-BF.js +6 -0
- package/locale-data/fr-BI.d.ts +1 -0
- package/locale-data/fr-BI.js +6 -0
- package/locale-data/fr-BJ.d.ts +1 -0
- package/locale-data/fr-BJ.js +6 -0
- package/locale-data/fr-BL.d.ts +1 -0
- package/locale-data/fr-BL.js +6 -0
- package/locale-data/fr-CA.d.ts +1 -0
- package/locale-data/fr-CA.js +6 -0
- package/locale-data/fr-CD.d.ts +1 -0
- package/locale-data/fr-CD.js +6 -0
- package/locale-data/fr-CF.d.ts +1 -0
- package/locale-data/fr-CF.js +6 -0
- package/locale-data/fr-CG.d.ts +1 -0
- package/locale-data/fr-CG.js +6 -0
- package/locale-data/fr-CH.d.ts +1 -0
- package/locale-data/fr-CH.js +6 -0
- package/locale-data/fr-CI.d.ts +1 -0
- package/locale-data/fr-CI.js +6 -0
- package/locale-data/fr-CM.d.ts +1 -0
- package/locale-data/fr-CM.js +6 -0
- package/locale-data/fr-DJ.d.ts +1 -0
- package/locale-data/fr-DJ.js +6 -0
- package/locale-data/fr-DZ.d.ts +1 -0
- package/locale-data/fr-DZ.js +6 -0
- package/locale-data/fr-GA.d.ts +1 -0
- package/locale-data/fr-GA.js +6 -0
- package/locale-data/fr-GF.d.ts +1 -0
- package/locale-data/fr-GF.js +6 -0
- package/locale-data/fr-GN.d.ts +1 -0
- package/locale-data/fr-GN.js +6 -0
- package/locale-data/fr-GP.d.ts +1 -0
- package/locale-data/fr-GP.js +6 -0
- package/locale-data/fr-GQ.d.ts +1 -0
- package/locale-data/fr-GQ.js +6 -0
- package/locale-data/fr-HT.d.ts +1 -0
- package/locale-data/fr-HT.js +6 -0
- package/locale-data/fr-KM.d.ts +1 -0
- package/locale-data/fr-KM.js +6 -0
- package/locale-data/fr-LU.d.ts +1 -0
- package/locale-data/fr-LU.js +6 -0
- package/locale-data/fr-MA.d.ts +1 -0
- package/locale-data/fr-MA.js +6 -0
- package/locale-data/fr-MC.d.ts +1 -0
- package/locale-data/fr-MC.js +6 -0
- package/locale-data/fr-MF.d.ts +1 -0
- package/locale-data/fr-MF.js +6 -0
- package/locale-data/fr-MG.d.ts +1 -0
- package/locale-data/fr-MG.js +6 -0
- package/locale-data/fr-ML.d.ts +1 -0
- package/locale-data/fr-ML.js +6 -0
- package/locale-data/fr-MQ.d.ts +1 -0
- package/locale-data/fr-MQ.js +6 -0
- package/locale-data/fr-MR.d.ts +1 -0
- package/locale-data/fr-MR.js +6 -0
- package/locale-data/fr-MU.d.ts +1 -0
- package/locale-data/fr-MU.js +6 -0
- package/locale-data/fr-NC.d.ts +1 -0
- package/locale-data/fr-NC.js +6 -0
- package/locale-data/fr-NE.d.ts +1 -0
- package/locale-data/fr-NE.js +6 -0
- package/locale-data/fr-PF.d.ts +1 -0
- package/locale-data/fr-PF.js +6 -0
- package/locale-data/fr-PM.d.ts +1 -0
- package/locale-data/fr-PM.js +6 -0
- package/locale-data/fr-RE.d.ts +1 -0
- package/locale-data/fr-RE.js +6 -0
- package/locale-data/fr-RW.d.ts +1 -0
- package/locale-data/fr-RW.js +6 -0
- package/locale-data/fr-SC.d.ts +1 -0
- package/locale-data/fr-SC.js +6 -0
- package/locale-data/fr-SN.d.ts +1 -0
- package/locale-data/fr-SN.js +6 -0
- package/locale-data/fr-SY.d.ts +1 -0
- package/locale-data/fr-SY.js +6 -0
- package/locale-data/fr-TD.d.ts +1 -0
- package/locale-data/fr-TD.js +6 -0
- package/locale-data/fr-TG.d.ts +1 -0
- package/locale-data/fr-TG.js +6 -0
- package/locale-data/fr-TN.d.ts +1 -0
- package/locale-data/fr-TN.js +6 -0
- package/locale-data/fr-VU.d.ts +1 -0
- package/locale-data/fr-VU.js +6 -0
- package/locale-data/fr-WF.d.ts +1 -0
- package/locale-data/fr-WF.js +6 -0
- package/locale-data/fr-YT.d.ts +1 -0
- package/locale-data/fr-YT.js +6 -0
- package/locale-data/fr.d.ts +1 -0
- package/locale-data/fr.js +6 -0
- package/locale-data/fur.d.ts +1 -0
- package/locale-data/fur.js +6 -0
- package/locale-data/fy.d.ts +1 -0
- package/locale-data/fy.js +6 -0
- package/locale-data/ga-GB.d.ts +1 -0
- package/locale-data/ga-GB.js +6 -0
- package/locale-data/ga.d.ts +1 -0
- package/locale-data/ga.js +6 -0
- package/locale-data/gd.d.ts +1 -0
- package/locale-data/gd.js +6 -0
- package/locale-data/gl.d.ts +1 -0
- package/locale-data/gl.js +6 -0
- package/locale-data/gsw-FR.d.ts +1 -0
- package/locale-data/gsw-FR.js +6 -0
- package/locale-data/gsw-LI.d.ts +1 -0
- package/locale-data/gsw-LI.js +6 -0
- package/locale-data/gsw.d.ts +1 -0
- package/locale-data/gsw.js +6 -0
- package/locale-data/gu.d.ts +1 -0
- package/locale-data/gu.js +6 -0
- package/locale-data/guz.d.ts +1 -0
- package/locale-data/guz.js +6 -0
- package/locale-data/gv.d.ts +1 -0
- package/locale-data/gv.js +6 -0
- package/locale-data/ha-GH.d.ts +1 -0
- package/locale-data/ha-GH.js +6 -0
- package/locale-data/ha-NE.d.ts +1 -0
- package/locale-data/ha-NE.js +6 -0
- package/locale-data/ha.d.ts +1 -0
- package/locale-data/ha.js +6 -0
- package/locale-data/haw.d.ts +1 -0
- package/locale-data/haw.js +6 -0
- package/locale-data/he.d.ts +1 -0
- package/locale-data/he.js +6 -0
- package/locale-data/hi.d.ts +1 -0
- package/locale-data/hi.js +6 -0
- package/locale-data/hr-BA.d.ts +1 -0
- package/locale-data/hr-BA.js +6 -0
- package/locale-data/hr.d.ts +1 -0
- package/locale-data/hr.js +6 -0
- package/locale-data/hsb.d.ts +1 -0
- package/locale-data/hsb.js +6 -0
- package/locale-data/hu.d.ts +1 -0
- package/locale-data/hu.js +6 -0
- package/locale-data/hy.d.ts +1 -0
- package/locale-data/hy.js +6 -0
- package/locale-data/ia.d.ts +1 -0
- package/locale-data/ia.js +6 -0
- package/locale-data/id.d.ts +1 -0
- package/locale-data/id.js +6 -0
- package/locale-data/ig.d.ts +1 -0
- package/locale-data/ig.js +6 -0
- package/locale-data/ii.d.ts +1 -0
- package/locale-data/ii.js +6 -0
- package/locale-data/is.d.ts +1 -0
- package/locale-data/is.js +6 -0
- package/locale-data/it-CH.d.ts +1 -0
- package/locale-data/it-CH.js +6 -0
- package/locale-data/it-SM.d.ts +1 -0
- package/locale-data/it-SM.js +6 -0
- package/locale-data/it-VA.d.ts +1 -0
- package/locale-data/it-VA.js +6 -0
- package/locale-data/it.d.ts +1 -0
- package/locale-data/it.js +6 -0
- package/locale-data/ja.d.ts +1 -0
- package/locale-data/ja.js +6 -0
- package/locale-data/jgo.d.ts +1 -0
- package/locale-data/jgo.js +6 -0
- package/locale-data/jmc.d.ts +1 -0
- package/locale-data/jmc.js +6 -0
- package/locale-data/jv.d.ts +1 -0
- package/locale-data/jv.js +6 -0
- package/locale-data/ka.d.ts +1 -0
- package/locale-data/ka.js +6 -0
- package/locale-data/kab.d.ts +1 -0
- package/locale-data/kab.js +6 -0
- package/locale-data/kam.d.ts +1 -0
- package/locale-data/kam.js +6 -0
- package/locale-data/kde.d.ts +1 -0
- package/locale-data/kde.js +6 -0
- package/locale-data/kea.d.ts +1 -0
- package/locale-data/kea.js +6 -0
- package/locale-data/kgp.d.ts +1 -0
- package/locale-data/kgp.js +6 -0
- package/locale-data/khq.d.ts +1 -0
- package/locale-data/khq.js +6 -0
- package/locale-data/ki.d.ts +1 -0
- package/locale-data/ki.js +6 -0
- package/locale-data/kk.d.ts +1 -0
- package/locale-data/kk.js +6 -0
- package/locale-data/kkj.d.ts +1 -0
- package/locale-data/kkj.js +6 -0
- package/locale-data/kl.d.ts +1 -0
- package/locale-data/kl.js +6 -0
- package/locale-data/kln.d.ts +1 -0
- package/locale-data/kln.js +6 -0
- package/locale-data/km.d.ts +1 -0
- package/locale-data/km.js +6 -0
- package/locale-data/kn.d.ts +1 -0
- package/locale-data/kn.js +6 -0
- package/locale-data/ko-KP.d.ts +1 -0
- package/locale-data/ko-KP.js +6 -0
- package/locale-data/ko.d.ts +1 -0
- package/locale-data/ko.js +6 -0
- package/locale-data/kok.d.ts +1 -0
- package/locale-data/kok.js +6 -0
- package/locale-data/ks-Arab.d.ts +1 -0
- package/locale-data/ks-Arab.js +6 -0
- package/locale-data/ks.d.ts +1 -0
- package/locale-data/ks.js +6 -0
- package/locale-data/ksb.d.ts +1 -0
- package/locale-data/ksb.js +6 -0
- package/locale-data/ksf.d.ts +1 -0
- package/locale-data/ksf.js +6 -0
- package/locale-data/ksh.d.ts +1 -0
- package/locale-data/ksh.js +6 -0
- package/locale-data/ku.d.ts +1 -0
- package/locale-data/ku.js +6 -0
- package/locale-data/kw.d.ts +1 -0
- package/locale-data/kw.js +6 -0
- package/locale-data/ky.d.ts +1 -0
- package/locale-data/ky.js +6 -0
- package/locale-data/lag.d.ts +1 -0
- package/locale-data/lag.js +6 -0
- package/locale-data/lb.d.ts +1 -0
- package/locale-data/lb.js +6 -0
- package/locale-data/lg.d.ts +1 -0
- package/locale-data/lg.js +6 -0
- package/locale-data/lkt.d.ts +1 -0
- package/locale-data/lkt.js +6 -0
- package/locale-data/ln-AO.d.ts +1 -0
- package/locale-data/ln-AO.js +6 -0
- package/locale-data/ln-CF.d.ts +1 -0
- package/locale-data/ln-CF.js +6 -0
- package/locale-data/ln-CG.d.ts +1 -0
- package/locale-data/ln-CG.js +6 -0
- package/locale-data/ln.d.ts +1 -0
- package/locale-data/ln.js +6 -0
- package/locale-data/lo.d.ts +1 -0
- package/locale-data/lo.js +6 -0
- package/locale-data/lrc-IQ.d.ts +1 -0
- package/locale-data/lrc-IQ.js +6 -0
- package/locale-data/lrc.d.ts +1 -0
- package/locale-data/lrc.js +6 -0
- package/locale-data/lt.d.ts +1 -0
- package/locale-data/lt.js +6 -0
- package/locale-data/lu.d.ts +1 -0
- package/locale-data/lu.js +6 -0
- package/locale-data/luo.d.ts +1 -0
- package/locale-data/luo.js +6 -0
- package/locale-data/luy.d.ts +1 -0
- package/locale-data/luy.js +6 -0
- package/locale-data/lv.d.ts +1 -0
- package/locale-data/lv.js +6 -0
- package/locale-data/mai.d.ts +1 -0
- package/locale-data/mai.js +6 -0
- package/locale-data/mas-TZ.d.ts +1 -0
- package/locale-data/mas-TZ.js +6 -0
- package/locale-data/mas.d.ts +1 -0
- package/locale-data/mas.js +6 -0
- package/locale-data/mer.d.ts +1 -0
- package/locale-data/mer.js +6 -0
- package/locale-data/mfe.d.ts +1 -0
- package/locale-data/mfe.js +6 -0
- package/locale-data/mg.d.ts +1 -0
- package/locale-data/mg.js +6 -0
- package/locale-data/mgh.d.ts +1 -0
- package/locale-data/mgh.js +6 -0
- package/locale-data/mgo.d.ts +1 -0
- package/locale-data/mgo.js +6 -0
- package/locale-data/mi.d.ts +1 -0
- package/locale-data/mi.js +6 -0
- package/locale-data/mk.d.ts +1 -0
- package/locale-data/mk.js +6 -0
- package/locale-data/ml.d.ts +1 -0
- package/locale-data/ml.js +6 -0
- package/locale-data/mn.d.ts +1 -0
- package/locale-data/mn.js +6 -0
- package/locale-data/mni-Beng.d.ts +1 -0
- package/locale-data/mni-Beng.js +6 -0
- package/locale-data/mni.d.ts +1 -0
- package/locale-data/mni.js +6 -0
- package/locale-data/mr.d.ts +1 -0
- package/locale-data/mr.js +6 -0
- package/locale-data/ms-BN.d.ts +1 -0
- package/locale-data/ms-BN.js +6 -0
- package/locale-data/ms-ID.d.ts +1 -0
- package/locale-data/ms-ID.js +6 -0
- package/locale-data/ms-SG.d.ts +1 -0
- package/locale-data/ms-SG.js +6 -0
- package/locale-data/ms.d.ts +1 -0
- package/locale-data/ms.js +6 -0
- package/locale-data/mt.d.ts +1 -0
- package/locale-data/mt.js +6 -0
- package/locale-data/mua.d.ts +1 -0
- package/locale-data/mua.js +6 -0
- package/locale-data/my.d.ts +1 -0
- package/locale-data/my.js +6 -0
- package/locale-data/mzn.d.ts +1 -0
- package/locale-data/mzn.js +6 -0
- package/locale-data/naq.d.ts +1 -0
- package/locale-data/naq.js +6 -0
- package/locale-data/nb-SJ.d.ts +1 -0
- package/locale-data/nb-SJ.js +6 -0
- package/locale-data/nb.d.ts +1 -0
- package/locale-data/nb.js +6 -0
- package/locale-data/nd.d.ts +1 -0
- package/locale-data/nd.js +6 -0
- package/locale-data/nds-NL.d.ts +1 -0
- package/locale-data/nds-NL.js +6 -0
- package/locale-data/nds.d.ts +1 -0
- package/locale-data/nds.js +6 -0
- package/locale-data/ne-IN.d.ts +1 -0
- package/locale-data/ne-IN.js +6 -0
- package/locale-data/ne.d.ts +1 -0
- package/locale-data/ne.js +6 -0
- package/locale-data/nl-AW.d.ts +1 -0
- package/locale-data/nl-AW.js +6 -0
- package/locale-data/nl-BE.d.ts +1 -0
- package/locale-data/nl-BE.js +6 -0
- package/locale-data/nl-BQ.d.ts +1 -0
- package/locale-data/nl-BQ.js +6 -0
- package/locale-data/nl-CW.d.ts +1 -0
- package/locale-data/nl-CW.js +6 -0
- package/locale-data/nl-SR.d.ts +1 -0
- package/locale-data/nl-SR.js +6 -0
- package/locale-data/nl-SX.d.ts +1 -0
- package/locale-data/nl-SX.js +6 -0
- package/locale-data/nl.d.ts +1 -0
- package/locale-data/nl.js +6 -0
- package/locale-data/nmg.d.ts +1 -0
- package/locale-data/nmg.js +6 -0
- package/locale-data/nn.d.ts +1 -0
- package/locale-data/nn.js +6 -0
- package/locale-data/nnh.d.ts +1 -0
- package/locale-data/nnh.js +6 -0
- package/locale-data/no.d.ts +1 -0
- package/locale-data/no.js +6 -0
- package/locale-data/nus.d.ts +1 -0
- package/locale-data/nus.js +6 -0
- package/locale-data/nyn.d.ts +1 -0
- package/locale-data/nyn.js +6 -0
- package/locale-data/om-KE.d.ts +1 -0
- package/locale-data/om-KE.js +6 -0
- package/locale-data/om.d.ts +1 -0
- package/locale-data/om.js +6 -0
- package/locale-data/or.d.ts +1 -0
- package/locale-data/or.js +6 -0
- package/locale-data/os-RU.d.ts +1 -0
- package/locale-data/os-RU.js +6 -0
- package/locale-data/os.d.ts +1 -0
- package/locale-data/os.js +6 -0
- package/locale-data/pa-Arab.d.ts +1 -0
- package/locale-data/pa-Arab.js +6 -0
- package/locale-data/pa-Guru.d.ts +1 -0
- package/locale-data/pa-Guru.js +6 -0
- package/locale-data/pa.d.ts +1 -0
- package/locale-data/pa.js +6 -0
- package/locale-data/pcm.d.ts +1 -0
- package/locale-data/pcm.js +6 -0
- package/locale-data/pl.d.ts +1 -0
- package/locale-data/pl.js +6 -0
- package/locale-data/ps-PK.d.ts +1 -0
- package/locale-data/ps-PK.js +6 -0
- package/locale-data/ps.d.ts +1 -0
- package/locale-data/ps.js +6 -0
- package/locale-data/pt-AO.d.ts +1 -0
- package/locale-data/pt-AO.js +6 -0
- package/locale-data/pt-CH.d.ts +1 -0
- package/locale-data/pt-CH.js +6 -0
- package/locale-data/pt-CV.d.ts +1 -0
- package/locale-data/pt-CV.js +6 -0
- package/locale-data/pt-GQ.d.ts +1 -0
- package/locale-data/pt-GQ.js +6 -0
- package/locale-data/pt-GW.d.ts +1 -0
- package/locale-data/pt-GW.js +6 -0
- package/locale-data/pt-LU.d.ts +1 -0
- package/locale-data/pt-LU.js +6 -0
- package/locale-data/pt-MO.d.ts +1 -0
- package/locale-data/pt-MO.js +6 -0
- package/locale-data/pt-MZ.d.ts +1 -0
- package/locale-data/pt-MZ.js +6 -0
- package/locale-data/pt-PT.d.ts +1 -0
- package/locale-data/pt-PT.js +6 -0
- package/locale-data/pt-ST.d.ts +1 -0
- package/locale-data/pt-ST.js +6 -0
- package/locale-data/pt-TL.d.ts +1 -0
- package/locale-data/pt-TL.js +6 -0
- package/locale-data/pt.d.ts +1 -0
- package/locale-data/pt.js +6 -0
- package/locale-data/qu-BO.d.ts +1 -0
- package/locale-data/qu-BO.js +6 -0
- package/locale-data/qu-EC.d.ts +1 -0
- package/locale-data/qu-EC.js +6 -0
- package/locale-data/qu.d.ts +1 -0
- package/locale-data/qu.js +6 -0
- package/locale-data/rm.d.ts +1 -0
- package/locale-data/rm.js +6 -0
- package/locale-data/rn.d.ts +1 -0
- package/locale-data/rn.js +6 -0
- package/locale-data/ro-MD.d.ts +1 -0
- package/locale-data/ro-MD.js +6 -0
- package/locale-data/ro.d.ts +1 -0
- package/locale-data/ro.js +6 -0
- package/locale-data/rof.d.ts +1 -0
- package/locale-data/rof.js +6 -0
- package/locale-data/ru-BY.d.ts +1 -0
- package/locale-data/ru-BY.js +6 -0
- package/locale-data/ru-KG.d.ts +1 -0
- package/locale-data/ru-KG.js +6 -0
- package/locale-data/ru-KZ.d.ts +1 -0
- package/locale-data/ru-KZ.js +6 -0
- package/locale-data/ru-MD.d.ts +1 -0
- package/locale-data/ru-MD.js +6 -0
- package/locale-data/ru-UA.d.ts +1 -0
- package/locale-data/ru-UA.js +6 -0
- package/locale-data/ru.d.ts +1 -0
- package/locale-data/ru.js +6 -0
- package/locale-data/rw.d.ts +1 -0
- package/locale-data/rw.js +6 -0
- package/locale-data/rwk.d.ts +1 -0
- package/locale-data/rwk.js +6 -0
- package/locale-data/sa.d.ts +1 -0
- package/locale-data/sa.js +6 -0
- package/locale-data/sah.d.ts +1 -0
- package/locale-data/sah.js +6 -0
- package/locale-data/saq.d.ts +1 -0
- package/locale-data/saq.js +6 -0
- package/locale-data/sat-Olck.d.ts +1 -0
- package/locale-data/sat-Olck.js +6 -0
- package/locale-data/sat.d.ts +1 -0
- package/locale-data/sat.js +6 -0
- package/locale-data/sbp.d.ts +1 -0
- package/locale-data/sbp.js +6 -0
- package/locale-data/sc.d.ts +1 -0
- package/locale-data/sc.js +6 -0
- package/locale-data/sd-Arab.d.ts +1 -0
- package/locale-data/sd-Arab.js +6 -0
- package/locale-data/sd-Deva.d.ts +1 -0
- package/locale-data/sd-Deva.js +6 -0
- package/locale-data/sd.d.ts +1 -0
- package/locale-data/sd.js +6 -0
- package/locale-data/se-FI.d.ts +1 -0
- package/locale-data/se-FI.js +6 -0
- package/locale-data/se-SE.d.ts +1 -0
- package/locale-data/se-SE.js +6 -0
- package/locale-data/se.d.ts +1 -0
- package/locale-data/se.js +6 -0
- package/locale-data/seh.d.ts +1 -0
- package/locale-data/seh.js +6 -0
- package/locale-data/ses.d.ts +1 -0
- package/locale-data/ses.js +6 -0
- package/locale-data/sg.d.ts +1 -0
- package/locale-data/sg.js +6 -0
- package/locale-data/shi-Latn.d.ts +1 -0
- package/locale-data/shi-Latn.js +6 -0
- package/locale-data/shi-Tfng.d.ts +1 -0
- package/locale-data/shi-Tfng.js +6 -0
- package/locale-data/shi.d.ts +1 -0
- package/locale-data/shi.js +6 -0
- package/locale-data/si.d.ts +1 -0
- package/locale-data/si.js +6 -0
- package/locale-data/sk.d.ts +1 -0
- package/locale-data/sk.js +6 -0
- package/locale-data/sl.d.ts +1 -0
- package/locale-data/sl.js +6 -0
- package/locale-data/smn.d.ts +1 -0
- package/locale-data/smn.js +6 -0
- package/locale-data/sn.d.ts +1 -0
- package/locale-data/sn.js +6 -0
- package/locale-data/so-DJ.d.ts +1 -0
- package/locale-data/so-DJ.js +6 -0
- package/locale-data/so-ET.d.ts +1 -0
- package/locale-data/so-ET.js +6 -0
- package/locale-data/so-KE.d.ts +1 -0
- package/locale-data/so-KE.js +6 -0
- package/locale-data/so.d.ts +1 -0
- package/locale-data/so.js +6 -0
- package/locale-data/sq-MK.d.ts +1 -0
- package/locale-data/sq-MK.js +6 -0
- package/locale-data/sq-XK.d.ts +1 -0
- package/locale-data/sq-XK.js +6 -0
- package/locale-data/sq.d.ts +1 -0
- package/locale-data/sq.js +6 -0
- package/locale-data/sr-Cyrl-BA.d.ts +1 -0
- package/locale-data/sr-Cyrl-BA.js +6 -0
- package/locale-data/sr-Cyrl-ME.d.ts +1 -0
- package/locale-data/sr-Cyrl-ME.js +6 -0
- package/locale-data/sr-Cyrl-XK.d.ts +1 -0
- package/locale-data/sr-Cyrl-XK.js +6 -0
- package/locale-data/sr-Cyrl.d.ts +1 -0
- package/locale-data/sr-Cyrl.js +6 -0
- package/locale-data/sr-Latn-BA.d.ts +1 -0
- package/locale-data/sr-Latn-BA.js +6 -0
- package/locale-data/sr-Latn-ME.d.ts +1 -0
- package/locale-data/sr-Latn-ME.js +6 -0
- package/locale-data/sr-Latn-XK.d.ts +1 -0
- package/locale-data/sr-Latn-XK.js +6 -0
- package/locale-data/sr-Latn.d.ts +1 -0
- package/locale-data/sr-Latn.js +6 -0
- package/locale-data/sr.d.ts +1 -0
- package/locale-data/sr.js +6 -0
- package/locale-data/su-Latn.d.ts +1 -0
- package/locale-data/su-Latn.js +6 -0
- package/locale-data/su.d.ts +1 -0
- package/locale-data/su.js +6 -0
- package/locale-data/sv-AX.d.ts +1 -0
- package/locale-data/sv-AX.js +6 -0
- package/locale-data/sv-FI.d.ts +1 -0
- package/locale-data/sv-FI.js +6 -0
- package/locale-data/sv.d.ts +1 -0
- package/locale-data/sv.js +6 -0
- package/locale-data/sw-CD.d.ts +1 -0
- package/locale-data/sw-CD.js +6 -0
- package/locale-data/sw-KE.d.ts +1 -0
- package/locale-data/sw-KE.js +6 -0
- package/locale-data/sw-UG.d.ts +1 -0
- package/locale-data/sw-UG.js +6 -0
- package/locale-data/sw.d.ts +1 -0
- package/locale-data/sw.js +6 -0
- package/locale-data/ta-LK.d.ts +1 -0
- package/locale-data/ta-LK.js +6 -0
- package/locale-data/ta-MY.d.ts +1 -0
- package/locale-data/ta-MY.js +6 -0
- package/locale-data/ta-SG.d.ts +1 -0
- package/locale-data/ta-SG.js +6 -0
- package/locale-data/ta.d.ts +1 -0
- package/locale-data/ta.js +6 -0
- package/locale-data/te.d.ts +1 -0
- package/locale-data/te.js +6 -0
- package/locale-data/teo-KE.d.ts +1 -0
- package/locale-data/teo-KE.js +6 -0
- package/locale-data/teo.d.ts +1 -0
- package/locale-data/teo.js +6 -0
- package/locale-data/tg.d.ts +1 -0
- package/locale-data/tg.js +6 -0
- package/locale-data/th.d.ts +1 -0
- package/locale-data/th.js +6 -0
- package/locale-data/ti-ER.d.ts +1 -0
- package/locale-data/ti-ER.js +6 -0
- package/locale-data/ti.d.ts +1 -0
- package/locale-data/ti.js +6 -0
- package/locale-data/tk.d.ts +1 -0
- package/locale-data/tk.js +6 -0
- package/locale-data/to.d.ts +1 -0
- package/locale-data/to.js +6 -0
- package/locale-data/tr-CY.d.ts +1 -0
- package/locale-data/tr-CY.js +6 -0
- package/locale-data/tr.d.ts +1 -0
- package/locale-data/tr.js +6 -0
- package/locale-data/tt.d.ts +1 -0
- package/locale-data/tt.js +6 -0
- package/locale-data/twq.d.ts +1 -0
- package/locale-data/twq.js +6 -0
- package/locale-data/tzm.d.ts +1 -0
- package/locale-data/tzm.js +6 -0
- package/locale-data/ug.d.ts +1 -0
- package/locale-data/ug.js +6 -0
- package/locale-data/uk.d.ts +1 -0
- package/locale-data/uk.js +6 -0
- package/locale-data/und.d.ts +1 -0
- package/locale-data/und.js +6 -0
- package/locale-data/ur-IN.d.ts +1 -0
- package/locale-data/ur-IN.js +6 -0
- package/locale-data/ur.d.ts +1 -0
- package/locale-data/ur.js +6 -0
- package/locale-data/uz-Arab.d.ts +1 -0
- package/locale-data/uz-Arab.js +6 -0
- package/locale-data/uz-Cyrl.d.ts +1 -0
- package/locale-data/uz-Cyrl.js +6 -0
- package/locale-data/uz-Latn.d.ts +1 -0
- package/locale-data/uz-Latn.js +6 -0
- package/locale-data/uz.d.ts +1 -0
- package/locale-data/uz.js +6 -0
- package/locale-data/vai-Latn.d.ts +1 -0
- package/locale-data/vai-Latn.js +6 -0
- package/locale-data/vai-Vaii.d.ts +1 -0
- package/locale-data/vai-Vaii.js +6 -0
- package/locale-data/vai.d.ts +1 -0
- package/locale-data/vai.js +6 -0
- package/locale-data/vi.d.ts +1 -0
- package/locale-data/vi.js +6 -0
- package/locale-data/vun.d.ts +1 -0
- package/locale-data/vun.js +6 -0
- package/locale-data/wae.d.ts +1 -0
- package/locale-data/wae.js +6 -0
- package/locale-data/wo.d.ts +1 -0
- package/locale-data/wo.js +6 -0
- package/locale-data/xh.d.ts +1 -0
- package/locale-data/xh.js +6 -0
- package/locale-data/xog.d.ts +1 -0
- package/locale-data/xog.js +6 -0
- package/locale-data/yav.d.ts +1 -0
- package/locale-data/yav.js +6 -0
- package/locale-data/yi.d.ts +1 -0
- package/locale-data/yi.js +6 -0
- package/locale-data/yo-BJ.d.ts +1 -0
- package/locale-data/yo-BJ.js +6 -0
- package/locale-data/yo.d.ts +1 -0
- package/locale-data/yo.js +6 -0
- package/locale-data/yrl-CO.d.ts +1 -0
- package/locale-data/yrl-CO.js +6 -0
- package/locale-data/yrl-VE.d.ts +1 -0
- package/locale-data/yrl-VE.js +6 -0
- package/locale-data/yrl.d.ts +1 -0
- package/locale-data/yrl.js +6 -0
- package/locale-data/yue-Hans.d.ts +1 -0
- package/locale-data/yue-Hans.js +6 -0
- package/locale-data/yue-Hant.d.ts +1 -0
- package/locale-data/yue-Hant.js +6 -0
- package/locale-data/yue.d.ts +1 -0
- package/locale-data/yue.js +6 -0
- package/locale-data/zgh.d.ts +1 -0
- package/locale-data/zgh.js +6 -0
- package/locale-data/zh-Hans-HK.d.ts +1 -0
- package/locale-data/zh-Hans-HK.js +6 -0
- package/locale-data/zh-Hans-MO.d.ts +1 -0
- package/locale-data/zh-Hans-MO.js +6 -0
- package/locale-data/zh-Hans-SG.d.ts +1 -0
- package/locale-data/zh-Hans-SG.js +6 -0
- package/locale-data/zh-Hans.d.ts +1 -0
- package/locale-data/zh-Hans.js +6 -0
- package/locale-data/zh-Hant-HK.d.ts +1 -0
- package/locale-data/zh-Hant-HK.js +6 -0
- package/locale-data/zh-Hant-MO.d.ts +1 -0
- package/locale-data/zh-Hant-MO.js +6 -0
- package/locale-data/zh-Hant.d.ts +1 -0
- package/locale-data/zh-Hant.js +6 -0
- package/locale-data/zh.d.ts +1 -0
- package/locale-data/zh.js +6 -0
- package/locale-data/zu.d.ts +1 -0
- package/locale-data/zu.js +6 -0
- package/package.json +6 -6
- package/polyfill-force.d.ts +2 -0
- package/polyfill-force.d.ts.map +1 -0
- package/polyfill-force.js +11 -0
- package/polyfill.d.ts +2 -0
- package/polyfill.d.ts.map +1 -0
- package/polyfill.iife.js +1526 -0
- package/polyfill.js +14 -0
- package/should-polyfill.d.ts +2 -0
- package/should-polyfill.d.ts.map +1 -0
- package/should-polyfill.js +57 -0
- package/src/core.d.ts +7 -0
- package/src/core.d.ts.map +1 -0
- package/src/core.js +231 -0
- package/src/currency-digits.generated.d.ts +2 -0
- package/src/currency-digits.generated.d.ts.map +1 -0
- package/src/currency-digits.generated.js +4 -0
- package/src/get_internal_slots.d.ts +3 -0
- package/src/get_internal_slots.d.ts.map +1 -0
- package/src/get_internal_slots.js +13 -0
- package/src/numbering-systems.generated.d.ts +2 -0
- package/src/numbering-systems.generated.d.ts.map +1 -0
- package/src/numbering-systems.generated.js +4 -0
- package/src/to_locale_string.d.ts +7 -0
- package/src/to_locale_string.d.ts.map +1 -0
- package/src/to_locale_string.js +14 -0
- package/src/types.d.ts +19 -0
- package/src/types.d.ts.map +1 -0
- package/src/types.js +2 -0
- package/supported-locales.generated.d.ts +2 -0
- package/supported-locales.generated.d.ts.map +1 -0
- package/supported-locales.generated.js +4 -0
- package/BUILD +0 -933
- package/CHANGELOG.md +0 -844
- package/index.ts +0 -1
- package/polyfill-force.ts +0 -13
- package/polyfill.ts +0 -16
- package/scripts/cldr-raw.ts +0 -42
- package/scripts/cldr.ts +0 -31
- package/scripts/currency-digits.ts +0 -18
- package/scripts/extract-currencies.ts +0 -89
- package/scripts/extract-numbers.ts +0 -151
- package/scripts/extract-units.ts +0 -91
- package/scripts/numbering-systems.ts +0 -18
- package/scripts/test-locale-data-gen.ts +0 -20
- package/scripts/test262-main-gen.ts +0 -28
- package/scripts/units-constants.ts +0 -20
- package/scripts/utils.ts +0 -25
- package/should-polyfill.ts +0 -59
- package/src/core.ts +0 -279
- package/src/currency-digits.generated.ts +0 -1
- package/src/get_internal_slots.ts +0 -16
- package/src/numbering-systems.generated.ts +0 -1
- package/src/to_locale_string.ts +0 -16
- package/src/types.ts +0 -36
- package/supported-locales.generated.ts +0 -1
- package/test262-main.ts +0 -23
- package/tests/__snapshots__/currency-compact.test.ts.snap +0 -8449
- package/tests/__snapshots__/currency.test.ts.snap +0 -25345
- package/tests/__snapshots__/decimal.test.ts.snap +0 -13169
- package/tests/__snapshots__/percent.test.ts.snap +0 -17393
- package/tests/__snapshots__/unit.test.ts.snap +0 -162545
- package/tests/currency-code.test.ts +0 -23
- package/tests/currency-compact.test.ts +0 -104
- package/tests/currency.test.ts +0 -110
- package/tests/decimal.test.ts +0 -83
- package/tests/format_to_parts.test.ts +0 -513
- package/tests/legacy.test.ts +0 -13
- package/tests/locale-data/ar-SS.json +0 -1
- package/tests/locale-data/bn.json +0 -1
- package/tests/locale-data/da.json +0 -1
- package/tests/locale-data/de.json +0 -1
- package/tests/locale-data/en-BS.json +0 -1
- package/tests/locale-data/en-GB.json +0 -1
- package/tests/locale-data/en.json +0 -1
- package/tests/locale-data/es.json +0 -1
- package/tests/locale-data/fr.json +0 -1
- package/tests/locale-data/hi.json +0 -1
- package/tests/locale-data/id.json +0 -1
- package/tests/locale-data/it.json +0 -1
- package/tests/locale-data/ja.json +0 -1
- package/tests/locale-data/ko.json +0 -1
- package/tests/locale-data/ms.json +0 -1
- package/tests/locale-data/nb.json +0 -1
- package/tests/locale-data/nl.json +0 -1
- package/tests/locale-data/pl.json +0 -1
- package/tests/locale-data/pt.json +0 -1
- package/tests/locale-data/ru.json +0 -1
- package/tests/locale-data/sv.json +0 -1
- package/tests/locale-data/sw.json +0 -1
- package/tests/locale-data/th.json +0 -1
- package/tests/locale-data/tr.json +0 -1
- package/tests/locale-data/uk.json +0 -1
- package/tests/locale-data/zh-Hans.json +0 -1
- package/tests/locale-data/zh-Hant.json +0 -1
- package/tests/locale-data/zh.json +0 -1
- package/tests/misc.test.ts +0 -278
- package/tests/notation-compact-ko-KR.test.ts +0 -96
- package/tests/notation-compact-zh-TW.test.ts +0 -48
- package/tests/percent.test.ts +0 -83
- package/tests/signDisplay-currency-zh-TW.test.ts +0 -85
- package/tests/signDisplay-zh-TW.test.ts +0 -53
- package/tests/unit-zh-TW.test.ts +0 -162
- package/tests/unit.test.ts +0 -113
- package/tests/value-tonumber.test.ts +0 -24
- package/tsconfig.json +0 -5
package/polyfill.iife.js
ADDED
|
@@ -0,0 +1,1526 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/CanonicalizeLocaleList.js
|
|
3
|
+
function CanonicalizeLocaleList(locales) {
|
|
4
|
+
return Intl.getCanonicalLocales(locales);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/262.js
|
|
8
|
+
function ToString(o) {
|
|
9
|
+
if (typeof o === "symbol") {
|
|
10
|
+
throw TypeError("Cannot convert a Symbol value to a string");
|
|
11
|
+
}
|
|
12
|
+
return String(o);
|
|
13
|
+
}
|
|
14
|
+
function ToNumber(val) {
|
|
15
|
+
if (val === void 0) {
|
|
16
|
+
return NaN;
|
|
17
|
+
}
|
|
18
|
+
if (val === null) {
|
|
19
|
+
return 0;
|
|
20
|
+
}
|
|
21
|
+
if (typeof val === "boolean") {
|
|
22
|
+
return val ? 1 : 0;
|
|
23
|
+
}
|
|
24
|
+
if (typeof val === "number") {
|
|
25
|
+
return val;
|
|
26
|
+
}
|
|
27
|
+
if (typeof val === "symbol" || typeof val === "bigint") {
|
|
28
|
+
throw new TypeError("Cannot convert symbol/bigint to number");
|
|
29
|
+
}
|
|
30
|
+
return Number(val);
|
|
31
|
+
}
|
|
32
|
+
function ToObject(arg) {
|
|
33
|
+
if (arg == null) {
|
|
34
|
+
throw new TypeError("undefined/null cannot be converted to object");
|
|
35
|
+
}
|
|
36
|
+
return Object(arg);
|
|
37
|
+
}
|
|
38
|
+
function SameValue(x, y) {
|
|
39
|
+
if (Object.is) {
|
|
40
|
+
return Object.is(x, y);
|
|
41
|
+
}
|
|
42
|
+
if (x === y) {
|
|
43
|
+
return x !== 0 || 1 / x === 1 / y;
|
|
44
|
+
}
|
|
45
|
+
return x !== x && y !== y;
|
|
46
|
+
}
|
|
47
|
+
function ArrayCreate(len) {
|
|
48
|
+
return new Array(len);
|
|
49
|
+
}
|
|
50
|
+
function HasOwnProperty(o, prop) {
|
|
51
|
+
return Object.prototype.hasOwnProperty.call(o, prop);
|
|
52
|
+
}
|
|
53
|
+
var MINUTES_PER_HOUR = 60;
|
|
54
|
+
var SECONDS_PER_MINUTE = 60;
|
|
55
|
+
var MS_PER_SECOND = 1e3;
|
|
56
|
+
var MS_PER_MINUTE = MS_PER_SECOND * SECONDS_PER_MINUTE;
|
|
57
|
+
var MS_PER_HOUR = MS_PER_MINUTE * MINUTES_PER_HOUR;
|
|
58
|
+
function IsCallable(fn) {
|
|
59
|
+
return typeof fn === "function";
|
|
60
|
+
}
|
|
61
|
+
function OrdinaryHasInstance(C, O, internalSlots) {
|
|
62
|
+
if (!IsCallable(C)) {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
if (internalSlots === null || internalSlots === void 0 ? void 0 : internalSlots.boundTargetFunction) {
|
|
66
|
+
var BC = internalSlots === null || internalSlots === void 0 ? void 0 : internalSlots.boundTargetFunction;
|
|
67
|
+
return O instanceof BC;
|
|
68
|
+
}
|
|
69
|
+
if (typeof O !== "object") {
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
var P = C.prototype;
|
|
73
|
+
if (typeof P !== "object") {
|
|
74
|
+
throw new TypeError("OrdinaryHasInstance called on an object with an invalid prototype property.");
|
|
75
|
+
}
|
|
76
|
+
return Object.prototype.isPrototypeOf.call(P, O);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/CoerceOptionsToObject.js
|
|
80
|
+
function CoerceOptionsToObject(options) {
|
|
81
|
+
if (typeof options === "undefined") {
|
|
82
|
+
return /* @__PURE__ */ Object.create(null);
|
|
83
|
+
}
|
|
84
|
+
return ToObject(options);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/DefaultNumberOption.js
|
|
88
|
+
function DefaultNumberOption(val, min, max, fallback) {
|
|
89
|
+
if (val !== void 0) {
|
|
90
|
+
val = Number(val);
|
|
91
|
+
if (isNaN(val) || val < min || val > max) {
|
|
92
|
+
throw new RangeError("".concat(val, " is outside of range [").concat(min, ", ").concat(max, "]"));
|
|
93
|
+
}
|
|
94
|
+
return Math.floor(val);
|
|
95
|
+
}
|
|
96
|
+
return fallback;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/GetNumberOption.js
|
|
100
|
+
function GetNumberOption(options, property, minimum, maximum, fallback) {
|
|
101
|
+
var val = options[property];
|
|
102
|
+
return DefaultNumberOption(val, minimum, maximum, fallback);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/GetOption.js
|
|
106
|
+
function GetOption(opts, prop, type, values, fallback) {
|
|
107
|
+
if (typeof opts !== "object") {
|
|
108
|
+
throw new TypeError("Options must be an object");
|
|
109
|
+
}
|
|
110
|
+
var value = opts[prop];
|
|
111
|
+
if (value !== void 0) {
|
|
112
|
+
if (type !== "boolean" && type !== "string") {
|
|
113
|
+
throw new TypeError("invalid type");
|
|
114
|
+
}
|
|
115
|
+
if (type === "boolean") {
|
|
116
|
+
value = Boolean(value);
|
|
117
|
+
}
|
|
118
|
+
if (type === "string") {
|
|
119
|
+
value = ToString(value);
|
|
120
|
+
}
|
|
121
|
+
if (values !== void 0 && !values.filter(function(val) {
|
|
122
|
+
return val == value;
|
|
123
|
+
}).length) {
|
|
124
|
+
throw new RangeError("".concat(value, " is not within ").concat(values.join(", ")));
|
|
125
|
+
}
|
|
126
|
+
return value;
|
|
127
|
+
}
|
|
128
|
+
return fallback;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
|
|
132
|
+
var SANCTIONED_UNITS = [
|
|
133
|
+
"angle-degree",
|
|
134
|
+
"area-acre",
|
|
135
|
+
"area-hectare",
|
|
136
|
+
"concentr-percent",
|
|
137
|
+
"digital-bit",
|
|
138
|
+
"digital-byte",
|
|
139
|
+
"digital-gigabit",
|
|
140
|
+
"digital-gigabyte",
|
|
141
|
+
"digital-kilobit",
|
|
142
|
+
"digital-kilobyte",
|
|
143
|
+
"digital-megabit",
|
|
144
|
+
"digital-megabyte",
|
|
145
|
+
"digital-petabyte",
|
|
146
|
+
"digital-terabit",
|
|
147
|
+
"digital-terabyte",
|
|
148
|
+
"duration-day",
|
|
149
|
+
"duration-hour",
|
|
150
|
+
"duration-millisecond",
|
|
151
|
+
"duration-minute",
|
|
152
|
+
"duration-month",
|
|
153
|
+
"duration-second",
|
|
154
|
+
"duration-week",
|
|
155
|
+
"duration-year",
|
|
156
|
+
"length-centimeter",
|
|
157
|
+
"length-foot",
|
|
158
|
+
"length-inch",
|
|
159
|
+
"length-kilometer",
|
|
160
|
+
"length-meter",
|
|
161
|
+
"length-mile-scandinavian",
|
|
162
|
+
"length-mile",
|
|
163
|
+
"length-millimeter",
|
|
164
|
+
"length-yard",
|
|
165
|
+
"mass-gram",
|
|
166
|
+
"mass-kilogram",
|
|
167
|
+
"mass-ounce",
|
|
168
|
+
"mass-pound",
|
|
169
|
+
"mass-stone",
|
|
170
|
+
"temperature-celsius",
|
|
171
|
+
"temperature-fahrenheit",
|
|
172
|
+
"volume-fluid-ounce",
|
|
173
|
+
"volume-gallon",
|
|
174
|
+
"volume-liter",
|
|
175
|
+
"volume-milliliter"
|
|
176
|
+
];
|
|
177
|
+
function removeUnitNamespace(unit) {
|
|
178
|
+
return unit.slice(unit.indexOf("-") + 1);
|
|
179
|
+
}
|
|
180
|
+
var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
|
|
181
|
+
function IsSanctionedSimpleUnitIdentifier(unitIdentifier) {
|
|
182
|
+
return SIMPLE_UNITS.indexOf(unitIdentifier) > -1;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/IsWellFormedCurrencyCode.js
|
|
186
|
+
function toUpperCase(str) {
|
|
187
|
+
return str.replace(/([a-z])/g, function(_, c) {
|
|
188
|
+
return c.toUpperCase();
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
var NOT_A_Z_REGEX = /[^A-Z]/;
|
|
192
|
+
function IsWellFormedCurrencyCode(currency) {
|
|
193
|
+
currency = toUpperCase(currency);
|
|
194
|
+
if (currency.length !== 3) {
|
|
195
|
+
return false;
|
|
196
|
+
}
|
|
197
|
+
if (NOT_A_Z_REGEX.test(currency)) {
|
|
198
|
+
return false;
|
|
199
|
+
}
|
|
200
|
+
return true;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/IsWellFormedUnitIdentifier.js
|
|
204
|
+
function toLowerCase(str) {
|
|
205
|
+
return str.replace(/([A-Z])/g, function(_, c) {
|
|
206
|
+
return c.toLowerCase();
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
function IsWellFormedUnitIdentifier(unit) {
|
|
210
|
+
unit = toLowerCase(unit);
|
|
211
|
+
if (IsSanctionedSimpleUnitIdentifier(unit)) {
|
|
212
|
+
return true;
|
|
213
|
+
}
|
|
214
|
+
var units = unit.split("-per-");
|
|
215
|
+
if (units.length !== 2) {
|
|
216
|
+
return false;
|
|
217
|
+
}
|
|
218
|
+
var numerator = units[0], denominator = units[1];
|
|
219
|
+
if (!IsSanctionedSimpleUnitIdentifier(numerator) || !IsSanctionedSimpleUnitIdentifier(denominator)) {
|
|
220
|
+
return false;
|
|
221
|
+
}
|
|
222
|
+
return true;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/utils.js
|
|
226
|
+
function getMagnitude(x) {
|
|
227
|
+
return Math.floor(Math.log(x) * Math.LOG10E);
|
|
228
|
+
}
|
|
229
|
+
function repeat(s, times) {
|
|
230
|
+
if (typeof s.repeat === "function") {
|
|
231
|
+
return s.repeat(times);
|
|
232
|
+
}
|
|
233
|
+
var arr = new Array(times);
|
|
234
|
+
for (var i = 0; i < arr.length; i++) {
|
|
235
|
+
arr[i] = s;
|
|
236
|
+
}
|
|
237
|
+
return arr.join("");
|
|
238
|
+
}
|
|
239
|
+
function defineProperty(target, name, _a) {
|
|
240
|
+
var value = _a.value;
|
|
241
|
+
Object.defineProperty(target, name, {
|
|
242
|
+
configurable: true,
|
|
243
|
+
enumerable: false,
|
|
244
|
+
writable: true,
|
|
245
|
+
value
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
function invariant(condition, message, Err) {
|
|
249
|
+
if (Err === void 0) {
|
|
250
|
+
Err = Error;
|
|
251
|
+
}
|
|
252
|
+
if (!condition) {
|
|
253
|
+
throw new Err(message);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/ComputeExponentForMagnitude.js
|
|
258
|
+
function ComputeExponentForMagnitude(numberFormat, magnitude, _a) {
|
|
259
|
+
var getInternalSlots2 = _a.getInternalSlots;
|
|
260
|
+
var internalSlots = getInternalSlots2(numberFormat);
|
|
261
|
+
var notation = internalSlots.notation, dataLocaleData = internalSlots.dataLocaleData, numberingSystem = internalSlots.numberingSystem;
|
|
262
|
+
switch (notation) {
|
|
263
|
+
case "standard":
|
|
264
|
+
return 0;
|
|
265
|
+
case "scientific":
|
|
266
|
+
return magnitude;
|
|
267
|
+
case "engineering":
|
|
268
|
+
return Math.floor(magnitude / 3) * 3;
|
|
269
|
+
default: {
|
|
270
|
+
var compactDisplay = internalSlots.compactDisplay, style = internalSlots.style, currencyDisplay = internalSlots.currencyDisplay;
|
|
271
|
+
var thresholdMap = void 0;
|
|
272
|
+
if (style === "currency" && currencyDisplay !== "name") {
|
|
273
|
+
var currency = dataLocaleData.numbers.currency[numberingSystem] || dataLocaleData.numbers.currency[dataLocaleData.numbers.nu[0]];
|
|
274
|
+
thresholdMap = currency.short;
|
|
275
|
+
} else {
|
|
276
|
+
var decimal = dataLocaleData.numbers.decimal[numberingSystem] || dataLocaleData.numbers.decimal[dataLocaleData.numbers.nu[0]];
|
|
277
|
+
thresholdMap = compactDisplay === "long" ? decimal.long : decimal.short;
|
|
278
|
+
}
|
|
279
|
+
if (!thresholdMap) {
|
|
280
|
+
return 0;
|
|
281
|
+
}
|
|
282
|
+
var num = String(Math.pow(10, magnitude));
|
|
283
|
+
var thresholds = Object.keys(thresholdMap);
|
|
284
|
+
if (num < thresholds[0]) {
|
|
285
|
+
return 0;
|
|
286
|
+
}
|
|
287
|
+
if (num > thresholds[thresholds.length - 1]) {
|
|
288
|
+
return thresholds[thresholds.length - 1].length - 1;
|
|
289
|
+
}
|
|
290
|
+
var i = thresholds.indexOf(num);
|
|
291
|
+
if (i === -1) {
|
|
292
|
+
return 0;
|
|
293
|
+
}
|
|
294
|
+
var magnitudeKey = thresholds[i];
|
|
295
|
+
var compactPattern = thresholdMap[magnitudeKey].other;
|
|
296
|
+
if (compactPattern === "0") {
|
|
297
|
+
return 0;
|
|
298
|
+
}
|
|
299
|
+
return magnitudeKey.length - thresholdMap[magnitudeKey].other.match(/0+/)[0].length;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/ToRawPrecision.js
|
|
305
|
+
function ToRawPrecision(x, minPrecision, maxPrecision) {
|
|
306
|
+
var p = maxPrecision;
|
|
307
|
+
var m;
|
|
308
|
+
var e;
|
|
309
|
+
var xFinal;
|
|
310
|
+
if (x === 0) {
|
|
311
|
+
m = repeat("0", p);
|
|
312
|
+
e = 0;
|
|
313
|
+
xFinal = 0;
|
|
314
|
+
} else {
|
|
315
|
+
var xToString = x.toString();
|
|
316
|
+
var xToStringExponentIndex = xToString.indexOf("e");
|
|
317
|
+
var _a = xToString.split("e"), xToStringMantissa = _a[0], xToStringExponent = _a[1];
|
|
318
|
+
var xToStringMantissaWithoutDecimalPoint = xToStringMantissa.replace(".", "");
|
|
319
|
+
if (xToStringExponentIndex >= 0 && xToStringMantissaWithoutDecimalPoint.length <= p) {
|
|
320
|
+
e = +xToStringExponent;
|
|
321
|
+
m = xToStringMantissaWithoutDecimalPoint + repeat("0", p - xToStringMantissaWithoutDecimalPoint.length);
|
|
322
|
+
xFinal = x;
|
|
323
|
+
} else {
|
|
324
|
+
e = getMagnitude(x);
|
|
325
|
+
var decimalPlaceOffset = e - p + 1;
|
|
326
|
+
var n = Math.round(adjustDecimalPlace(x, decimalPlaceOffset));
|
|
327
|
+
if (adjustDecimalPlace(n, p - 1) >= 10) {
|
|
328
|
+
e = e + 1;
|
|
329
|
+
n = Math.floor(n / 10);
|
|
330
|
+
}
|
|
331
|
+
m = n.toString();
|
|
332
|
+
xFinal = adjustDecimalPlace(n, p - 1 - e);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
var int;
|
|
336
|
+
if (e >= p - 1) {
|
|
337
|
+
m = m + repeat("0", e - p + 1);
|
|
338
|
+
int = e + 1;
|
|
339
|
+
} else if (e >= 0) {
|
|
340
|
+
m = "".concat(m.slice(0, e + 1), ".").concat(m.slice(e + 1));
|
|
341
|
+
int = e + 1;
|
|
342
|
+
} else {
|
|
343
|
+
m = "0.".concat(repeat("0", -e - 1)).concat(m);
|
|
344
|
+
int = 1;
|
|
345
|
+
}
|
|
346
|
+
if (m.indexOf(".") >= 0 && maxPrecision > minPrecision) {
|
|
347
|
+
var cut = maxPrecision - minPrecision;
|
|
348
|
+
while (cut > 0 && m[m.length - 1] === "0") {
|
|
349
|
+
m = m.slice(0, -1);
|
|
350
|
+
cut--;
|
|
351
|
+
}
|
|
352
|
+
if (m[m.length - 1] === ".") {
|
|
353
|
+
m = m.slice(0, -1);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
return { formattedString: m, roundedNumber: xFinal, integerDigitsCount: int };
|
|
357
|
+
function adjustDecimalPlace(x2, magnitude) {
|
|
358
|
+
return magnitude < 0 ? x2 * Math.pow(10, -magnitude) : x2 / Math.pow(10, magnitude);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/ToRawFixed.js
|
|
363
|
+
function ToRawFixed(x, minFraction, maxFraction) {
|
|
364
|
+
var f = maxFraction;
|
|
365
|
+
var n = Math.round(x * Math.pow(10, f));
|
|
366
|
+
var xFinal = n / Math.pow(10, f);
|
|
367
|
+
var m;
|
|
368
|
+
if (n < 1e21) {
|
|
369
|
+
m = n.toString();
|
|
370
|
+
} else {
|
|
371
|
+
m = n.toString();
|
|
372
|
+
var _a = m.split("e"), mantissa = _a[0], exponent = _a[1];
|
|
373
|
+
m = mantissa.replace(".", "");
|
|
374
|
+
m = m + repeat("0", Math.max(+exponent - m.length + 1, 0));
|
|
375
|
+
}
|
|
376
|
+
var int;
|
|
377
|
+
if (f !== 0) {
|
|
378
|
+
var k = m.length;
|
|
379
|
+
if (k <= f) {
|
|
380
|
+
var z = repeat("0", f + 1 - k);
|
|
381
|
+
m = z + m;
|
|
382
|
+
k = f + 1;
|
|
383
|
+
}
|
|
384
|
+
var a = m.slice(0, k - f);
|
|
385
|
+
var b = m.slice(k - f);
|
|
386
|
+
m = "".concat(a, ".").concat(b);
|
|
387
|
+
int = a.length;
|
|
388
|
+
} else {
|
|
389
|
+
int = m.length;
|
|
390
|
+
}
|
|
391
|
+
var cut = maxFraction - minFraction;
|
|
392
|
+
while (cut > 0 && m[m.length - 1] === "0") {
|
|
393
|
+
m = m.slice(0, -1);
|
|
394
|
+
cut--;
|
|
395
|
+
}
|
|
396
|
+
if (m[m.length - 1] === ".") {
|
|
397
|
+
m = m.slice(0, -1);
|
|
398
|
+
}
|
|
399
|
+
return { formattedString: m, roundedNumber: xFinal, integerDigitsCount: int };
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/FormatNumericToString.js
|
|
403
|
+
function FormatNumericToString(intlObject, x) {
|
|
404
|
+
var isNegative = x < 0 || SameValue(x, -0);
|
|
405
|
+
if (isNegative) {
|
|
406
|
+
x = -x;
|
|
407
|
+
}
|
|
408
|
+
var result;
|
|
409
|
+
var rourndingType = intlObject.roundingType;
|
|
410
|
+
switch (rourndingType) {
|
|
411
|
+
case "significantDigits":
|
|
412
|
+
result = ToRawPrecision(x, intlObject.minimumSignificantDigits, intlObject.maximumSignificantDigits);
|
|
413
|
+
break;
|
|
414
|
+
case "fractionDigits":
|
|
415
|
+
result = ToRawFixed(x, intlObject.minimumFractionDigits, intlObject.maximumFractionDigits);
|
|
416
|
+
break;
|
|
417
|
+
default:
|
|
418
|
+
result = ToRawPrecision(x, 1, 2);
|
|
419
|
+
if (result.integerDigitsCount > 1) {
|
|
420
|
+
result = ToRawFixed(x, 0, 0);
|
|
421
|
+
}
|
|
422
|
+
break;
|
|
423
|
+
}
|
|
424
|
+
x = result.roundedNumber;
|
|
425
|
+
var string = result.formattedString;
|
|
426
|
+
var int = result.integerDigitsCount;
|
|
427
|
+
var minInteger = intlObject.minimumIntegerDigits;
|
|
428
|
+
if (int < minInteger) {
|
|
429
|
+
var forwardZeros = repeat("0", minInteger - int);
|
|
430
|
+
string = forwardZeros + string;
|
|
431
|
+
}
|
|
432
|
+
if (isNegative) {
|
|
433
|
+
x = -x;
|
|
434
|
+
}
|
|
435
|
+
return { roundedNumber: x, formattedString: string };
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/ComputeExponent.js
|
|
439
|
+
function ComputeExponent(numberFormat, x, _a) {
|
|
440
|
+
var getInternalSlots2 = _a.getInternalSlots;
|
|
441
|
+
if (x === 0) {
|
|
442
|
+
return [0, 0];
|
|
443
|
+
}
|
|
444
|
+
if (x < 0) {
|
|
445
|
+
x = -x;
|
|
446
|
+
}
|
|
447
|
+
var magnitude = getMagnitude(x);
|
|
448
|
+
var exponent = ComputeExponentForMagnitude(numberFormat, magnitude, {
|
|
449
|
+
getInternalSlots: getInternalSlots2
|
|
450
|
+
});
|
|
451
|
+
x = exponent < 0 ? x * Math.pow(10, -exponent) : x / Math.pow(10, exponent);
|
|
452
|
+
var formatNumberResult = FormatNumericToString(getInternalSlots2(numberFormat), x);
|
|
453
|
+
if (formatNumberResult.roundedNumber === 0) {
|
|
454
|
+
return [exponent, magnitude];
|
|
455
|
+
}
|
|
456
|
+
var newMagnitude = getMagnitude(formatNumberResult.roundedNumber);
|
|
457
|
+
if (newMagnitude === magnitude - exponent) {
|
|
458
|
+
return [exponent, magnitude];
|
|
459
|
+
}
|
|
460
|
+
return [
|
|
461
|
+
ComputeExponentForMagnitude(numberFormat, magnitude + 1, {
|
|
462
|
+
getInternalSlots: getInternalSlots2
|
|
463
|
+
}),
|
|
464
|
+
magnitude + 1
|
|
465
|
+
];
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/CurrencyDigits.js
|
|
469
|
+
function CurrencyDigits(c, _a) {
|
|
470
|
+
var currencyDigitsData2 = _a.currencyDigitsData;
|
|
471
|
+
return HasOwnProperty(currencyDigitsData2, c) ? currencyDigitsData2[c] : 2;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/digit-mapping.generated.js
|
|
475
|
+
var digitMapping = { "adlm": ["\u{1E950}", "\u{1E951}", "\u{1E952}", "\u{1E953}", "\u{1E954}", "\u{1E955}", "\u{1E956}", "\u{1E957}", "\u{1E958}", "\u{1E959}"], "ahom": ["\u{11730}", "\u{11731}", "\u{11732}", "\u{11733}", "\u{11734}", "\u{11735}", "\u{11736}", "\u{11737}", "\u{11738}", "\u{11739}"], "arab": ["\u0660", "\u0661", "\u0662", "\u0663", "\u0664", "\u0665", "\u0666", "\u0667", "\u0668", "\u0669"], "arabext": ["\u06F0", "\u06F1", "\u06F2", "\u06F3", "\u06F4", "\u06F5", "\u06F6", "\u06F7", "\u06F8", "\u06F9"], "bali": ["\u1B50", "\u1B51", "\u1B52", "\u1B53", "\u1B54", "\u1B55", "\u1B56", "\u1B57", "\u1B58", "\u1B59"], "beng": ["\u09E6", "\u09E7", "\u09E8", "\u09E9", "\u09EA", "\u09EB", "\u09EC", "\u09ED", "\u09EE", "\u09EF"], "bhks": ["\u{11C50}", "\u{11C51}", "\u{11C52}", "\u{11C53}", "\u{11C54}", "\u{11C55}", "\u{11C56}", "\u{11C57}", "\u{11C58}", "\u{11C59}"], "brah": ["\u{11066}", "\u{11067}", "\u{11068}", "\u{11069}", "\u{1106A}", "\u{1106B}", "\u{1106C}", "\u{1106D}", "\u{1106E}", "\u{1106F}"], "cakm": ["\u{11136}", "\u{11137}", "\u{11138}", "\u{11139}", "\u{1113A}", "\u{1113B}", "\u{1113C}", "\u{1113D}", "\u{1113E}", "\u{1113F}"], "cham": ["\uAA50", "\uAA51", "\uAA52", "\uAA53", "\uAA54", "\uAA55", "\uAA56", "\uAA57", "\uAA58", "\uAA59"], "deva": ["\u0966", "\u0967", "\u0968", "\u0969", "\u096A", "\u096B", "\u096C", "\u096D", "\u096E", "\u096F"], "diak": ["\u{11950}", "\u{11951}", "\u{11952}", "\u{11953}", "\u{11954}", "\u{11955}", "\u{11956}", "\u{11957}", "\u{11958}", "\u{11959}"], "fullwide": ["\uFF10", "\uFF11", "\uFF12", "\uFF13", "\uFF14", "\uFF15", "\uFF16", "\uFF17", "\uFF18", "\uFF19"], "gong": ["\u{11DA0}", "\u{11DA1}", "\u{11DA2}", "\u{11DA3}", "\u{11DA4}", "\u{11DA5}", "\u{11DA6}", "\u{11DA7}", "\u{11DA8}", "\u{11DA9}"], "gonm": ["\u{11D50}", "\u{11D51}", "\u{11D52}", "\u{11D53}", "\u{11D54}", "\u{11D55}", "\u{11D56}", "\u{11D57}", "\u{11D58}", "\u{11D59}"], "gujr": ["\u0AE6", "\u0AE7", "\u0AE8", "\u0AE9", "\u0AEA", "\u0AEB", "\u0AEC", "\u0AED", "\u0AEE", "\u0AEF"], "guru": ["\u0A66", "\u0A67", "\u0A68", "\u0A69", "\u0A6A", "\u0A6B", "\u0A6C", "\u0A6D", "\u0A6E", "\u0A6F"], "hanidec": ["\u3007", "\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94", "\u516D", "\u4E03", "\u516B", "\u4E5D"], "hmng": ["\u{16B50}", "\u{16B51}", "\u{16B52}", "\u{16B53}", "\u{16B54}", "\u{16B55}", "\u{16B56}", "\u{16B57}", "\u{16B58}", "\u{16B59}"], "hmnp": ["\u{1E140}", "\u{1E141}", "\u{1E142}", "\u{1E143}", "\u{1E144}", "\u{1E145}", "\u{1E146}", "\u{1E147}", "\u{1E148}", "\u{1E149}"], "java": ["\uA9D0", "\uA9D1", "\uA9D2", "\uA9D3", "\uA9D4", "\uA9D5", "\uA9D6", "\uA9D7", "\uA9D8", "\uA9D9"], "kali": ["\uA900", "\uA901", "\uA902", "\uA903", "\uA904", "\uA905", "\uA906", "\uA907", "\uA908", "\uA909"], "khmr": ["\u17E0", "\u17E1", "\u17E2", "\u17E3", "\u17E4", "\u17E5", "\u17E6", "\u17E7", "\u17E8", "\u17E9"], "knda": ["\u0CE6", "\u0CE7", "\u0CE8", "\u0CE9", "\u0CEA", "\u0CEB", "\u0CEC", "\u0CED", "\u0CEE", "\u0CEF"], "lana": ["\u1A80", "\u1A81", "\u1A82", "\u1A83", "\u1A84", "\u1A85", "\u1A86", "\u1A87", "\u1A88", "\u1A89"], "lanatham": ["\u1A90", "\u1A91", "\u1A92", "\u1A93", "\u1A94", "\u1A95", "\u1A96", "\u1A97", "\u1A98", "\u1A99"], "laoo": ["\u0ED0", "\u0ED1", "\u0ED2", "\u0ED3", "\u0ED4", "\u0ED5", "\u0ED6", "\u0ED7", "\u0ED8", "\u0ED9"], "lepc": ["\u1A90", "\u1A91", "\u1A92", "\u1A93", "\u1A94", "\u1A95", "\u1A96", "\u1A97", "\u1A98", "\u1A99"], "limb": ["\u1946", "\u1947", "\u1948", "\u1949", "\u194A", "\u194B", "\u194C", "\u194D", "\u194E", "\u194F"], "mathbold": ["\u{1D7CE}", "\u{1D7CF}", "\u{1D7D0}", "\u{1D7D1}", "\u{1D7D2}", "\u{1D7D3}", "\u{1D7D4}", "\u{1D7D5}", "\u{1D7D6}", "\u{1D7D7}"], "mathdbl": ["\u{1D7D8}", "\u{1D7D9}", "\u{1D7DA}", "\u{1D7DB}", "\u{1D7DC}", "\u{1D7DD}", "\u{1D7DE}", "\u{1D7DF}", "\u{1D7E0}", "\u{1D7E1}"], "mathmono": ["\u{1D7F6}", "\u{1D7F7}", "\u{1D7F8}", "\u{1D7F9}", "\u{1D7FA}", "\u{1D7FB}", "\u{1D7FC}", "\u{1D7FD}", "\u{1D7FE}", "\u{1D7FF}"], "mathsanb": ["\u{1D7EC}", "\u{1D7ED}", "\u{1D7EE}", "\u{1D7EF}", "\u{1D7F0}", "\u{1D7F1}", "\u{1D7F2}", "\u{1D7F3}", "\u{1D7F4}", "\u{1D7F5}"], "mathsans": ["\u{1D7E2}", "\u{1D7E3}", "\u{1D7E4}", "\u{1D7E5}", "\u{1D7E6}", "\u{1D7E7}", "\u{1D7E8}", "\u{1D7E9}", "\u{1D7EA}", "\u{1D7EB}"], "mlym": ["\u0D66", "\u0D67", "\u0D68", "\u0D69", "\u0D6A", "\u0D6B", "\u0D6C", "\u0D6D", "\u0D6E", "\u0D6F"], "modi": ["\u{11650}", "\u{11651}", "\u{11652}", "\u{11653}", "\u{11654}", "\u{11655}", "\u{11656}", "\u{11657}", "\u{11658}", "\u{11659}"], "mong": ["\u1810", "\u1811", "\u1812", "\u1813", "\u1814", "\u1815", "\u1816", "\u1817", "\u1818", "\u1819"], "mroo": ["\u{16A60}", "\u{16A61}", "\u{16A62}", "\u{16A63}", "\u{16A64}", "\u{16A65}", "\u{16A66}", "\u{16A67}", "\u{16A68}", "\u{16A69}"], "mtei": ["\uABF0", "\uABF1", "\uABF2", "\uABF3", "\uABF4", "\uABF5", "\uABF6", "\uABF7", "\uABF8", "\uABF9"], "mymr": ["\u1040", "\u1041", "\u1042", "\u1043", "\u1044", "\u1045", "\u1046", "\u1047", "\u1048", "\u1049"], "mymrshan": ["\u1090", "\u1091", "\u1092", "\u1093", "\u1094", "\u1095", "\u1096", "\u1097", "\u1098", "\u1099"], "mymrtlng": ["\uA9F0", "\uA9F1", "\uA9F2", "\uA9F3", "\uA9F4", "\uA9F5", "\uA9F6", "\uA9F7", "\uA9F8", "\uA9F9"], "newa": ["\u{11450}", "\u{11451}", "\u{11452}", "\u{11453}", "\u{11454}", "\u{11455}", "\u{11456}", "\u{11457}", "\u{11458}", "\u{11459}"], "nkoo": ["\u07C0", "\u07C1", "\u07C2", "\u07C3", "\u07C4", "\u07C5", "\u07C6", "\u07C7", "\u07C8", "\u07C9"], "olck": ["\u1C50", "\u1C51", "\u1C52", "\u1C53", "\u1C54", "\u1C55", "\u1C56", "\u1C57", "\u1C58", "\u1C59"], "orya": ["\u0B66", "\u0B67", "\u0B68", "\u0B69", "\u0B6A", "\u0B6B", "\u0B6C", "\u0B6D", "\u0B6E", "\u0B6F"], "osma": ["\u{104A0}", "\u{104A1}", "\u{104A2}", "\u{104A3}", "\u{104A4}", "\u{104A5}", "\u{104A6}", "\u{104A7}", "\u{104A8}", "\u{104A9}"], "rohg": ["\u{10D30}", "\u{10D31}", "\u{10D32}", "\u{10D33}", "\u{10D34}", "\u{10D35}", "\u{10D36}", "\u{10D37}", "\u{10D38}", "\u{10D39}"], "saur": ["\uA8D0", "\uA8D1", "\uA8D2", "\uA8D3", "\uA8D4", "\uA8D5", "\uA8D6", "\uA8D7", "\uA8D8", "\uA8D9"], "segment": ["\u{1FBF0}", "\u{1FBF1}", "\u{1FBF2}", "\u{1FBF3}", "\u{1FBF4}", "\u{1FBF5}", "\u{1FBF6}", "\u{1FBF7}", "\u{1FBF8}", "\u{1FBF9}"], "shrd": ["\u{111D0}", "\u{111D1}", "\u{111D2}", "\u{111D3}", "\u{111D4}", "\u{111D5}", "\u{111D6}", "\u{111D7}", "\u{111D8}", "\u{111D9}"], "sind": ["\u{112F0}", "\u{112F1}", "\u{112F2}", "\u{112F3}", "\u{112F4}", "\u{112F5}", "\u{112F6}", "\u{112F7}", "\u{112F8}", "\u{112F9}"], "sinh": ["\u0DE6", "\u0DE7", "\u0DE8", "\u0DE9", "\u0DEA", "\u0DEB", "\u0DEC", "\u0DED", "\u0DEE", "\u0DEF"], "sora": ["\u{110F0}", "\u{110F1}", "\u{110F2}", "\u{110F3}", "\u{110F4}", "\u{110F5}", "\u{110F6}", "\u{110F7}", "\u{110F8}", "\u{110F9}"], "sund": ["\u1BB0", "\u1BB1", "\u1BB2", "\u1BB3", "\u1BB4", "\u1BB5", "\u1BB6", "\u1BB7", "\u1BB8", "\u1BB9"], "takr": ["\u{116C0}", "\u{116C1}", "\u{116C2}", "\u{116C3}", "\u{116C4}", "\u{116C5}", "\u{116C6}", "\u{116C7}", "\u{116C8}", "\u{116C9}"], "talu": ["\u19D0", "\u19D1", "\u19D2", "\u19D3", "\u19D4", "\u19D5", "\u19D6", "\u19D7", "\u19D8", "\u19D9"], "tamldec": ["\u0BE6", "\u0BE7", "\u0BE8", "\u0BE9", "\u0BEA", "\u0BEB", "\u0BEC", "\u0BED", "\u0BEE", "\u0BEF"], "telu": ["\u0C66", "\u0C67", "\u0C68", "\u0C69", "\u0C6A", "\u0C6B", "\u0C6C", "\u0C6D", "\u0C6E", "\u0C6F"], "thai": ["\u0E50", "\u0E51", "\u0E52", "\u0E53", "\u0E54", "\u0E55", "\u0E56", "\u0E57", "\u0E58", "\u0E59"], "tibt": ["\u0F20", "\u0F21", "\u0F22", "\u0F23", "\u0F24", "\u0F25", "\u0F26", "\u0F27", "\u0F28", "\u0F29"], "tirh": ["\u{114D0}", "\u{114D1}", "\u{114D2}", "\u{114D3}", "\u{114D4}", "\u{114D5}", "\u{114D6}", "\u{114D7}", "\u{114D8}", "\u{114D9}"], "vaii": ["\u1620", "\u1621", "\u1622", "\u1623", "\u1624", "\u1625", "\u1626", "\u1627", "\u1628", "\u1629"], "wara": ["\u{118E0}", "\u{118E1}", "\u{118E2}", "\u{118E3}", "\u{118E4}", "\u{118E5}", "\u{118E6}", "\u{118E7}", "\u{118E8}", "\u{118E9}"], "wcho": ["\u{1E2F0}", "\u{1E2F1}", "\u{1E2F2}", "\u{1E2F3}", "\u{1E2F4}", "\u{1E2F5}", "\u{1E2F6}", "\u{1E2F7}", "\u{1E2F8}", "\u{1E2F9}"] };
|
|
476
|
+
|
|
477
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/regex.generated.js
|
|
478
|
+
var S_UNICODE_REGEX = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/;
|
|
479
|
+
|
|
480
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/format_to_parts.js
|
|
481
|
+
var CARET_S_UNICODE_REGEX = new RegExp("^".concat(S_UNICODE_REGEX.source));
|
|
482
|
+
var S_DOLLAR_UNICODE_REGEX = new RegExp("".concat(S_UNICODE_REGEX.source, "$"));
|
|
483
|
+
var CLDR_NUMBER_PATTERN = /[#0](?:[\.,][#0]+)*/g;
|
|
484
|
+
function formatToParts(numberResult, data, pl, options) {
|
|
485
|
+
var sign = numberResult.sign, exponent = numberResult.exponent, magnitude = numberResult.magnitude;
|
|
486
|
+
var notation = options.notation, style = options.style, numberingSystem = options.numberingSystem;
|
|
487
|
+
var defaultNumberingSystem = data.numbers.nu[0];
|
|
488
|
+
var compactNumberPattern = null;
|
|
489
|
+
if (notation === "compact" && magnitude) {
|
|
490
|
+
compactNumberPattern = getCompactDisplayPattern(numberResult, pl, data, style, options.compactDisplay, options.currencyDisplay, numberingSystem);
|
|
491
|
+
}
|
|
492
|
+
var nonNameCurrencyPart;
|
|
493
|
+
if (style === "currency" && options.currencyDisplay !== "name") {
|
|
494
|
+
var byCurrencyDisplay = data.currencies[options.currency];
|
|
495
|
+
if (byCurrencyDisplay) {
|
|
496
|
+
switch (options.currencyDisplay) {
|
|
497
|
+
case "code":
|
|
498
|
+
nonNameCurrencyPart = options.currency;
|
|
499
|
+
break;
|
|
500
|
+
case "symbol":
|
|
501
|
+
nonNameCurrencyPart = byCurrencyDisplay.symbol;
|
|
502
|
+
break;
|
|
503
|
+
default:
|
|
504
|
+
nonNameCurrencyPart = byCurrencyDisplay.narrow;
|
|
505
|
+
break;
|
|
506
|
+
}
|
|
507
|
+
} else {
|
|
508
|
+
nonNameCurrencyPart = options.currency;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
var numberPattern;
|
|
512
|
+
if (!compactNumberPattern) {
|
|
513
|
+
if (style === "decimal" || style === "unit" || style === "currency" && options.currencyDisplay === "name") {
|
|
514
|
+
var decimalData = data.numbers.decimal[numberingSystem] || data.numbers.decimal[defaultNumberingSystem];
|
|
515
|
+
numberPattern = getPatternForSign(decimalData.standard, sign);
|
|
516
|
+
} else if (style === "currency") {
|
|
517
|
+
var currencyData = data.numbers.currency[numberingSystem] || data.numbers.currency[defaultNumberingSystem];
|
|
518
|
+
numberPattern = getPatternForSign(currencyData[options.currencySign], sign);
|
|
519
|
+
} else {
|
|
520
|
+
var percentPattern = data.numbers.percent[numberingSystem] || data.numbers.percent[defaultNumberingSystem];
|
|
521
|
+
numberPattern = getPatternForSign(percentPattern, sign);
|
|
522
|
+
}
|
|
523
|
+
} else {
|
|
524
|
+
numberPattern = compactNumberPattern;
|
|
525
|
+
}
|
|
526
|
+
var decimalNumberPattern = CLDR_NUMBER_PATTERN.exec(numberPattern)[0];
|
|
527
|
+
numberPattern = numberPattern.replace(CLDR_NUMBER_PATTERN, "{0}").replace(/'(.)'/g, "$1");
|
|
528
|
+
if (style === "currency" && options.currencyDisplay !== "name") {
|
|
529
|
+
var currencyData = data.numbers.currency[numberingSystem] || data.numbers.currency[defaultNumberingSystem];
|
|
530
|
+
var afterCurrency = currencyData.currencySpacing.afterInsertBetween;
|
|
531
|
+
if (afterCurrency && !S_DOLLAR_UNICODE_REGEX.test(nonNameCurrencyPart)) {
|
|
532
|
+
numberPattern = numberPattern.replace("\xA4{0}", "\xA4".concat(afterCurrency, "{0}"));
|
|
533
|
+
}
|
|
534
|
+
var beforeCurrency = currencyData.currencySpacing.beforeInsertBetween;
|
|
535
|
+
if (beforeCurrency && !CARET_S_UNICODE_REGEX.test(nonNameCurrencyPart)) {
|
|
536
|
+
numberPattern = numberPattern.replace("{0}\xA4", "{0}".concat(beforeCurrency, "\xA4"));
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
var numberPatternParts = numberPattern.split(/({c:[^}]+}|\{0\}|[¤%\-\+])/g);
|
|
540
|
+
var numberParts = [];
|
|
541
|
+
var symbols = data.numbers.symbols[numberingSystem] || data.numbers.symbols[defaultNumberingSystem];
|
|
542
|
+
for (var _i = 0, numberPatternParts_1 = numberPatternParts; _i < numberPatternParts_1.length; _i++) {
|
|
543
|
+
var part = numberPatternParts_1[_i];
|
|
544
|
+
if (!part) {
|
|
545
|
+
continue;
|
|
546
|
+
}
|
|
547
|
+
switch (part) {
|
|
548
|
+
case "{0}": {
|
|
549
|
+
numberParts.push.apply(numberParts, paritionNumberIntoParts(
|
|
550
|
+
symbols,
|
|
551
|
+
numberResult,
|
|
552
|
+
notation,
|
|
553
|
+
exponent,
|
|
554
|
+
numberingSystem,
|
|
555
|
+
!compactNumberPattern && options.useGrouping,
|
|
556
|
+
decimalNumberPattern
|
|
557
|
+
));
|
|
558
|
+
break;
|
|
559
|
+
}
|
|
560
|
+
case "-":
|
|
561
|
+
numberParts.push({ type: "minusSign", value: symbols.minusSign });
|
|
562
|
+
break;
|
|
563
|
+
case "+":
|
|
564
|
+
numberParts.push({ type: "plusSign", value: symbols.plusSign });
|
|
565
|
+
break;
|
|
566
|
+
case "%":
|
|
567
|
+
numberParts.push({ type: "percentSign", value: symbols.percentSign });
|
|
568
|
+
break;
|
|
569
|
+
case "\xA4":
|
|
570
|
+
numberParts.push({ type: "currency", value: nonNameCurrencyPart });
|
|
571
|
+
break;
|
|
572
|
+
default:
|
|
573
|
+
if (/^\{c:/.test(part)) {
|
|
574
|
+
numberParts.push({
|
|
575
|
+
type: "compact",
|
|
576
|
+
value: part.substring(3, part.length - 1)
|
|
577
|
+
});
|
|
578
|
+
} else {
|
|
579
|
+
numberParts.push({ type: "literal", value: part });
|
|
580
|
+
}
|
|
581
|
+
break;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
switch (style) {
|
|
585
|
+
case "currency": {
|
|
586
|
+
if (options.currencyDisplay === "name") {
|
|
587
|
+
var unitPattern = (data.numbers.currency[numberingSystem] || data.numbers.currency[defaultNumberingSystem]).unitPattern;
|
|
588
|
+
var unitName = void 0;
|
|
589
|
+
var currencyNameData = data.currencies[options.currency];
|
|
590
|
+
if (currencyNameData) {
|
|
591
|
+
unitName = selectPlural(pl, numberResult.roundedNumber * Math.pow(10, exponent), currencyNameData.displayName);
|
|
592
|
+
} else {
|
|
593
|
+
unitName = options.currency;
|
|
594
|
+
}
|
|
595
|
+
var unitPatternParts = unitPattern.split(/(\{[01]\})/g);
|
|
596
|
+
var result = [];
|
|
597
|
+
for (var _a = 0, unitPatternParts_1 = unitPatternParts; _a < unitPatternParts_1.length; _a++) {
|
|
598
|
+
var part = unitPatternParts_1[_a];
|
|
599
|
+
switch (part) {
|
|
600
|
+
case "{0}":
|
|
601
|
+
result.push.apply(result, numberParts);
|
|
602
|
+
break;
|
|
603
|
+
case "{1}":
|
|
604
|
+
result.push({ type: "currency", value: unitName });
|
|
605
|
+
break;
|
|
606
|
+
default:
|
|
607
|
+
if (part) {
|
|
608
|
+
result.push({ type: "literal", value: part });
|
|
609
|
+
}
|
|
610
|
+
break;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
return result;
|
|
614
|
+
} else {
|
|
615
|
+
return numberParts;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
case "unit": {
|
|
619
|
+
var unit = options.unit, unitDisplay = options.unitDisplay;
|
|
620
|
+
var unitData = data.units.simple[unit];
|
|
621
|
+
var unitPattern = void 0;
|
|
622
|
+
if (unitData) {
|
|
623
|
+
unitPattern = selectPlural(pl, numberResult.roundedNumber * Math.pow(10, exponent), data.units.simple[unit][unitDisplay]);
|
|
624
|
+
} else {
|
|
625
|
+
var _b = unit.split("-per-"), numeratorUnit = _b[0], denominatorUnit = _b[1];
|
|
626
|
+
unitData = data.units.simple[numeratorUnit];
|
|
627
|
+
var numeratorUnitPattern = selectPlural(pl, numberResult.roundedNumber * Math.pow(10, exponent), data.units.simple[numeratorUnit][unitDisplay]);
|
|
628
|
+
var perUnitPattern = data.units.simple[denominatorUnit].perUnit[unitDisplay];
|
|
629
|
+
if (perUnitPattern) {
|
|
630
|
+
unitPattern = perUnitPattern.replace("{0}", numeratorUnitPattern);
|
|
631
|
+
} else {
|
|
632
|
+
var perPattern = data.units.compound.per[unitDisplay];
|
|
633
|
+
var denominatorPattern = selectPlural(pl, 1, data.units.simple[denominatorUnit][unitDisplay]);
|
|
634
|
+
unitPattern = unitPattern = perPattern.replace("{0}", numeratorUnitPattern).replace("{1}", denominatorPattern.replace("{0}", ""));
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
var result = [];
|
|
638
|
+
for (var _c = 0, _d = unitPattern.split(/(\s*\{0\}\s*)/); _c < _d.length; _c++) {
|
|
639
|
+
var part = _d[_c];
|
|
640
|
+
var interpolateMatch = /^(\s*)\{0\}(\s*)$/.exec(part);
|
|
641
|
+
if (interpolateMatch) {
|
|
642
|
+
if (interpolateMatch[1]) {
|
|
643
|
+
result.push({ type: "literal", value: interpolateMatch[1] });
|
|
644
|
+
}
|
|
645
|
+
result.push.apply(result, numberParts);
|
|
646
|
+
if (interpolateMatch[2]) {
|
|
647
|
+
result.push({ type: "literal", value: interpolateMatch[2] });
|
|
648
|
+
}
|
|
649
|
+
} else if (part) {
|
|
650
|
+
result.push({ type: "unit", value: part });
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
return result;
|
|
654
|
+
}
|
|
655
|
+
default:
|
|
656
|
+
return numberParts;
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
function paritionNumberIntoParts(symbols, numberResult, notation, exponent, numberingSystem, useGrouping, decimalNumberPattern) {
|
|
660
|
+
var result = [];
|
|
661
|
+
var n = numberResult.formattedString, x = numberResult.roundedNumber;
|
|
662
|
+
if (isNaN(x)) {
|
|
663
|
+
return [{ type: "nan", value: n }];
|
|
664
|
+
} else if (!isFinite(x)) {
|
|
665
|
+
return [{ type: "infinity", value: n }];
|
|
666
|
+
}
|
|
667
|
+
var digitReplacementTable = digitMapping[numberingSystem];
|
|
668
|
+
if (digitReplacementTable) {
|
|
669
|
+
n = n.replace(/\d/g, function(digit) {
|
|
670
|
+
return digitReplacementTable[+digit] || digit;
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
var decimalSepIndex = n.indexOf(".");
|
|
674
|
+
var integer;
|
|
675
|
+
var fraction;
|
|
676
|
+
if (decimalSepIndex > 0) {
|
|
677
|
+
integer = n.slice(0, decimalSepIndex);
|
|
678
|
+
fraction = n.slice(decimalSepIndex + 1);
|
|
679
|
+
} else {
|
|
680
|
+
integer = n;
|
|
681
|
+
}
|
|
682
|
+
if (useGrouping && (notation !== "compact" || x >= 1e4)) {
|
|
683
|
+
var groupSepSymbol = symbols.group;
|
|
684
|
+
var groups = [];
|
|
685
|
+
var integerNumberPattern = decimalNumberPattern.split(".")[0];
|
|
686
|
+
var patternGroups = integerNumberPattern.split(",");
|
|
687
|
+
var primaryGroupingSize = 3;
|
|
688
|
+
var secondaryGroupingSize = 3;
|
|
689
|
+
if (patternGroups.length > 1) {
|
|
690
|
+
primaryGroupingSize = patternGroups[patternGroups.length - 1].length;
|
|
691
|
+
}
|
|
692
|
+
if (patternGroups.length > 2) {
|
|
693
|
+
secondaryGroupingSize = patternGroups[patternGroups.length - 2].length;
|
|
694
|
+
}
|
|
695
|
+
var i = integer.length - primaryGroupingSize;
|
|
696
|
+
if (i > 0) {
|
|
697
|
+
groups.push(integer.slice(i, i + primaryGroupingSize));
|
|
698
|
+
for (i -= secondaryGroupingSize; i > 0; i -= secondaryGroupingSize) {
|
|
699
|
+
groups.push(integer.slice(i, i + secondaryGroupingSize));
|
|
700
|
+
}
|
|
701
|
+
groups.push(integer.slice(0, i + secondaryGroupingSize));
|
|
702
|
+
} else {
|
|
703
|
+
groups.push(integer);
|
|
704
|
+
}
|
|
705
|
+
while (groups.length > 0) {
|
|
706
|
+
var integerGroup = groups.pop();
|
|
707
|
+
result.push({ type: "integer", value: integerGroup });
|
|
708
|
+
if (groups.length > 0) {
|
|
709
|
+
result.push({ type: "group", value: groupSepSymbol });
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
} else {
|
|
713
|
+
result.push({ type: "integer", value: integer });
|
|
714
|
+
}
|
|
715
|
+
if (fraction !== void 0) {
|
|
716
|
+
result.push({ type: "decimal", value: symbols.decimal }, { type: "fraction", value: fraction });
|
|
717
|
+
}
|
|
718
|
+
if ((notation === "scientific" || notation === "engineering") && isFinite(x)) {
|
|
719
|
+
result.push({ type: "exponentSeparator", value: symbols.exponential });
|
|
720
|
+
if (exponent < 0) {
|
|
721
|
+
result.push({ type: "exponentMinusSign", value: symbols.minusSign });
|
|
722
|
+
exponent = -exponent;
|
|
723
|
+
}
|
|
724
|
+
var exponentResult = ToRawFixed(exponent, 0, 0);
|
|
725
|
+
result.push({
|
|
726
|
+
type: "exponentInteger",
|
|
727
|
+
value: exponentResult.formattedString
|
|
728
|
+
});
|
|
729
|
+
}
|
|
730
|
+
return result;
|
|
731
|
+
}
|
|
732
|
+
function getPatternForSign(pattern, sign) {
|
|
733
|
+
if (pattern.indexOf(";") < 0) {
|
|
734
|
+
pattern = "".concat(pattern, ";-").concat(pattern);
|
|
735
|
+
}
|
|
736
|
+
var _a = pattern.split(";"), zeroPattern = _a[0], negativePattern = _a[1];
|
|
737
|
+
switch (sign) {
|
|
738
|
+
case 0:
|
|
739
|
+
return zeroPattern;
|
|
740
|
+
case -1:
|
|
741
|
+
return negativePattern;
|
|
742
|
+
default:
|
|
743
|
+
return negativePattern.indexOf("-") >= 0 ? negativePattern.replace(/-/g, "+") : "+".concat(zeroPattern);
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
function getCompactDisplayPattern(numberResult, pl, data, style, compactDisplay, currencyDisplay, numberingSystem) {
|
|
747
|
+
var _a;
|
|
748
|
+
var roundedNumber = numberResult.roundedNumber, sign = numberResult.sign, magnitude = numberResult.magnitude;
|
|
749
|
+
var magnitudeKey = String(Math.pow(10, magnitude));
|
|
750
|
+
var defaultNumberingSystem = data.numbers.nu[0];
|
|
751
|
+
var pattern;
|
|
752
|
+
if (style === "currency" && currencyDisplay !== "name") {
|
|
753
|
+
var byNumberingSystem = data.numbers.currency;
|
|
754
|
+
var currencyData = byNumberingSystem[numberingSystem] || byNumberingSystem[defaultNumberingSystem];
|
|
755
|
+
var compactPluralRules = (_a = currencyData.short) === null || _a === void 0 ? void 0 : _a[magnitudeKey];
|
|
756
|
+
if (!compactPluralRules) {
|
|
757
|
+
return null;
|
|
758
|
+
}
|
|
759
|
+
pattern = selectPlural(pl, roundedNumber, compactPluralRules);
|
|
760
|
+
} else {
|
|
761
|
+
var byNumberingSystem = data.numbers.decimal;
|
|
762
|
+
var byCompactDisplay = byNumberingSystem[numberingSystem] || byNumberingSystem[defaultNumberingSystem];
|
|
763
|
+
var compactPlaralRule = byCompactDisplay[compactDisplay][magnitudeKey];
|
|
764
|
+
if (!compactPlaralRule) {
|
|
765
|
+
return null;
|
|
766
|
+
}
|
|
767
|
+
pattern = selectPlural(pl, roundedNumber, compactPlaralRule);
|
|
768
|
+
}
|
|
769
|
+
if (pattern === "0") {
|
|
770
|
+
return null;
|
|
771
|
+
}
|
|
772
|
+
pattern = getPatternForSign(pattern, sign).replace(/([^\s;\-\+\d¤]+)/g, "{c:$1}").replace(/0+/, "0");
|
|
773
|
+
return pattern;
|
|
774
|
+
}
|
|
775
|
+
function selectPlural(pl, x, rules) {
|
|
776
|
+
return rules[pl.select(x)] || rules.other;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/PartitionNumberPattern.js
|
|
780
|
+
function PartitionNumberPattern(numberFormat, x, _a) {
|
|
781
|
+
var _b;
|
|
782
|
+
var getInternalSlots2 = _a.getInternalSlots;
|
|
783
|
+
var internalSlots = getInternalSlots2(numberFormat);
|
|
784
|
+
var pl = internalSlots.pl, dataLocaleData = internalSlots.dataLocaleData, numberingSystem = internalSlots.numberingSystem;
|
|
785
|
+
var symbols = dataLocaleData.numbers.symbols[numberingSystem] || dataLocaleData.numbers.symbols[dataLocaleData.numbers.nu[0]];
|
|
786
|
+
var magnitude = 0;
|
|
787
|
+
var exponent = 0;
|
|
788
|
+
var n;
|
|
789
|
+
if (isNaN(x)) {
|
|
790
|
+
n = symbols.nan;
|
|
791
|
+
} else if (!isFinite(x)) {
|
|
792
|
+
n = symbols.infinity;
|
|
793
|
+
} else {
|
|
794
|
+
if (internalSlots.style === "percent") {
|
|
795
|
+
x *= 100;
|
|
796
|
+
}
|
|
797
|
+
;
|
|
798
|
+
_b = ComputeExponent(numberFormat, x, {
|
|
799
|
+
getInternalSlots: getInternalSlots2
|
|
800
|
+
}), exponent = _b[0], magnitude = _b[1];
|
|
801
|
+
x = exponent < 0 ? x * Math.pow(10, -exponent) : x / Math.pow(10, exponent);
|
|
802
|
+
var formatNumberResult = FormatNumericToString(internalSlots, x);
|
|
803
|
+
n = formatNumberResult.formattedString;
|
|
804
|
+
x = formatNumberResult.roundedNumber;
|
|
805
|
+
}
|
|
806
|
+
var sign;
|
|
807
|
+
var signDisplay = internalSlots.signDisplay;
|
|
808
|
+
switch (signDisplay) {
|
|
809
|
+
case "never":
|
|
810
|
+
sign = 0;
|
|
811
|
+
break;
|
|
812
|
+
case "auto":
|
|
813
|
+
if (SameValue(x, 0) || x > 0 || isNaN(x)) {
|
|
814
|
+
sign = 0;
|
|
815
|
+
} else {
|
|
816
|
+
sign = -1;
|
|
817
|
+
}
|
|
818
|
+
break;
|
|
819
|
+
case "always":
|
|
820
|
+
if (SameValue(x, 0) || x > 0 || isNaN(x)) {
|
|
821
|
+
sign = 1;
|
|
822
|
+
} else {
|
|
823
|
+
sign = -1;
|
|
824
|
+
}
|
|
825
|
+
break;
|
|
826
|
+
default:
|
|
827
|
+
if (x === 0 || isNaN(x)) {
|
|
828
|
+
sign = 0;
|
|
829
|
+
} else if (x > 0) {
|
|
830
|
+
sign = 1;
|
|
831
|
+
} else {
|
|
832
|
+
sign = -1;
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
return formatToParts({ roundedNumber: x, formattedString: n, exponent, magnitude, sign }, internalSlots.dataLocaleData, pl, internalSlots);
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/FormatNumericToParts.js
|
|
839
|
+
function FormatNumericToParts(nf, x, implDetails) {
|
|
840
|
+
var parts = PartitionNumberPattern(nf, x, implDetails);
|
|
841
|
+
var result = ArrayCreate(0);
|
|
842
|
+
for (var _i = 0, parts_1 = parts; _i < parts_1.length; _i++) {
|
|
843
|
+
var part = parts_1[_i];
|
|
844
|
+
result.push({
|
|
845
|
+
type: part.type,
|
|
846
|
+
value: part.value
|
|
847
|
+
});
|
|
848
|
+
}
|
|
849
|
+
return result;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/CanonicalizeLocaleList.js
|
|
853
|
+
function CanonicalizeLocaleList2(locales) {
|
|
854
|
+
return Intl.getCanonicalLocales(locales);
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/utils.js
|
|
858
|
+
var UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;
|
|
859
|
+
function invariant2(condition, message, Err) {
|
|
860
|
+
if (Err === void 0) {
|
|
861
|
+
Err = Error;
|
|
862
|
+
}
|
|
863
|
+
if (!condition) {
|
|
864
|
+
throw new Err(message);
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/BestAvailableLocale.js
|
|
869
|
+
function BestAvailableLocale(availableLocales, locale) {
|
|
870
|
+
var candidate = locale;
|
|
871
|
+
while (true) {
|
|
872
|
+
if (availableLocales.has(candidate)) {
|
|
873
|
+
return candidate;
|
|
874
|
+
}
|
|
875
|
+
var pos = candidate.lastIndexOf("-");
|
|
876
|
+
if (!~pos) {
|
|
877
|
+
return void 0;
|
|
878
|
+
}
|
|
879
|
+
if (pos >= 2 && candidate[pos - 2] === "-") {
|
|
880
|
+
pos -= 2;
|
|
881
|
+
}
|
|
882
|
+
candidate = candidate.slice(0, pos);
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/LookupMatcher.js
|
|
887
|
+
function LookupMatcher(availableLocales, requestedLocales, getDefaultLocale) {
|
|
888
|
+
var result = { locale: "" };
|
|
889
|
+
for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
|
|
890
|
+
var locale = requestedLocales_1[_i];
|
|
891
|
+
var noExtensionLocale = locale.replace(UNICODE_EXTENSION_SEQUENCE_REGEX, "");
|
|
892
|
+
var availableLocale = BestAvailableLocale(availableLocales, noExtensionLocale);
|
|
893
|
+
if (availableLocale) {
|
|
894
|
+
result.locale = availableLocale;
|
|
895
|
+
if (locale !== noExtensionLocale) {
|
|
896
|
+
result.extension = locale.slice(noExtensionLocale.length + 1, locale.length);
|
|
897
|
+
}
|
|
898
|
+
return result;
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
result.locale = getDefaultLocale();
|
|
902
|
+
return result;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/BestFitMatcher.js
|
|
906
|
+
function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
|
|
907
|
+
var minimizedAvailableLocaleMap = {};
|
|
908
|
+
var availableLocaleMap = {};
|
|
909
|
+
var canonicalizedLocaleMap = {};
|
|
910
|
+
var minimizedAvailableLocales = /* @__PURE__ */ new Set();
|
|
911
|
+
availableLocales.forEach(function(locale2) {
|
|
912
|
+
var minimizedLocale = new Intl.Locale(locale2).minimize().toString();
|
|
913
|
+
var canonicalizedLocale = Intl.getCanonicalLocales(locale2)[0] || locale2;
|
|
914
|
+
minimizedAvailableLocaleMap[minimizedLocale] = locale2;
|
|
915
|
+
availableLocaleMap[locale2] = locale2;
|
|
916
|
+
canonicalizedLocaleMap[canonicalizedLocale] = locale2;
|
|
917
|
+
minimizedAvailableLocales.add(minimizedLocale);
|
|
918
|
+
minimizedAvailableLocales.add(locale2);
|
|
919
|
+
minimizedAvailableLocales.add(canonicalizedLocale);
|
|
920
|
+
});
|
|
921
|
+
var foundLocale;
|
|
922
|
+
for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
|
|
923
|
+
var l = requestedLocales_1[_i];
|
|
924
|
+
if (foundLocale) {
|
|
925
|
+
break;
|
|
926
|
+
}
|
|
927
|
+
var noExtensionLocale = l.replace(UNICODE_EXTENSION_SEQUENCE_REGEX, "");
|
|
928
|
+
if (availableLocales.has(noExtensionLocale)) {
|
|
929
|
+
foundLocale = noExtensionLocale;
|
|
930
|
+
break;
|
|
931
|
+
}
|
|
932
|
+
if (minimizedAvailableLocales.has(noExtensionLocale)) {
|
|
933
|
+
foundLocale = noExtensionLocale;
|
|
934
|
+
break;
|
|
935
|
+
}
|
|
936
|
+
var locale = new Intl.Locale(noExtensionLocale);
|
|
937
|
+
var maximizedRequestedLocale = locale.maximize().toString();
|
|
938
|
+
var minimizedRequestedLocale = locale.minimize().toString();
|
|
939
|
+
if (minimizedAvailableLocales.has(minimizedRequestedLocale)) {
|
|
940
|
+
foundLocale = minimizedRequestedLocale;
|
|
941
|
+
break;
|
|
942
|
+
}
|
|
943
|
+
foundLocale = BestAvailableLocale(minimizedAvailableLocales, maximizedRequestedLocale);
|
|
944
|
+
}
|
|
945
|
+
if (!foundLocale) {
|
|
946
|
+
return { locale: getDefaultLocale() };
|
|
947
|
+
}
|
|
948
|
+
return {
|
|
949
|
+
locale: availableLocaleMap[foundLocale] || canonicalizedLocaleMap[foundLocale] || minimizedAvailableLocaleMap[foundLocale] || foundLocale
|
|
950
|
+
};
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/UnicodeExtensionValue.js
|
|
954
|
+
function UnicodeExtensionValue(extension, key) {
|
|
955
|
+
invariant2(key.length === 2, "key must have 2 elements");
|
|
956
|
+
var size = extension.length;
|
|
957
|
+
var searchValue = "-".concat(key, "-");
|
|
958
|
+
var pos = extension.indexOf(searchValue);
|
|
959
|
+
if (pos !== -1) {
|
|
960
|
+
var start = pos + 4;
|
|
961
|
+
var end = start;
|
|
962
|
+
var k = start;
|
|
963
|
+
var done = false;
|
|
964
|
+
while (!done) {
|
|
965
|
+
var e = extension.indexOf("-", k);
|
|
966
|
+
var len = void 0;
|
|
967
|
+
if (e === -1) {
|
|
968
|
+
len = size - k;
|
|
969
|
+
} else {
|
|
970
|
+
len = e - k;
|
|
971
|
+
}
|
|
972
|
+
if (len === 2) {
|
|
973
|
+
done = true;
|
|
974
|
+
} else if (e === -1) {
|
|
975
|
+
end = size;
|
|
976
|
+
done = true;
|
|
977
|
+
} else {
|
|
978
|
+
end = e;
|
|
979
|
+
k = e + 1;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
return extension.slice(start, end);
|
|
983
|
+
}
|
|
984
|
+
searchValue = "-".concat(key);
|
|
985
|
+
pos = extension.indexOf(searchValue);
|
|
986
|
+
if (pos !== -1 && pos + 3 === size) {
|
|
987
|
+
return "";
|
|
988
|
+
}
|
|
989
|
+
return void 0;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/ResolveLocale.js
|
|
993
|
+
function ResolveLocale(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
|
|
994
|
+
var matcher = options.localeMatcher;
|
|
995
|
+
var r;
|
|
996
|
+
if (matcher === "lookup") {
|
|
997
|
+
r = LookupMatcher(availableLocales, requestedLocales, getDefaultLocale);
|
|
998
|
+
} else {
|
|
999
|
+
r = BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale);
|
|
1000
|
+
}
|
|
1001
|
+
var foundLocale = r.locale;
|
|
1002
|
+
var result = { locale: "", dataLocale: foundLocale };
|
|
1003
|
+
var supportedExtension = "-u";
|
|
1004
|
+
for (var _i = 0, relevantExtensionKeys_1 = relevantExtensionKeys; _i < relevantExtensionKeys_1.length; _i++) {
|
|
1005
|
+
var key = relevantExtensionKeys_1[_i];
|
|
1006
|
+
invariant2(foundLocale in localeData, "Missing locale data for ".concat(foundLocale));
|
|
1007
|
+
var foundLocaleData = localeData[foundLocale];
|
|
1008
|
+
invariant2(typeof foundLocaleData === "object" && foundLocaleData !== null, "locale data ".concat(key, " must be an object"));
|
|
1009
|
+
var keyLocaleData = foundLocaleData[key];
|
|
1010
|
+
invariant2(Array.isArray(keyLocaleData), "keyLocaleData for ".concat(key, " must be an array"));
|
|
1011
|
+
var value = keyLocaleData[0];
|
|
1012
|
+
invariant2(typeof value === "string" || value === null, "value must be string or null but got ".concat(typeof value, " in key ").concat(key));
|
|
1013
|
+
var supportedExtensionAddition = "";
|
|
1014
|
+
if (r.extension) {
|
|
1015
|
+
var requestedValue = UnicodeExtensionValue(r.extension, key);
|
|
1016
|
+
if (requestedValue !== void 0) {
|
|
1017
|
+
if (requestedValue !== "") {
|
|
1018
|
+
if (~keyLocaleData.indexOf(requestedValue)) {
|
|
1019
|
+
value = requestedValue;
|
|
1020
|
+
supportedExtensionAddition = "-".concat(key, "-").concat(value);
|
|
1021
|
+
}
|
|
1022
|
+
} else if (~requestedValue.indexOf("true")) {
|
|
1023
|
+
value = "true";
|
|
1024
|
+
supportedExtensionAddition = "-".concat(key);
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
if (key in options) {
|
|
1029
|
+
var optionsValue = options[key];
|
|
1030
|
+
invariant2(typeof optionsValue === "string" || typeof optionsValue === "undefined" || optionsValue === null, "optionsValue must be String, Undefined or Null");
|
|
1031
|
+
if (~keyLocaleData.indexOf(optionsValue)) {
|
|
1032
|
+
if (optionsValue !== value) {
|
|
1033
|
+
value = optionsValue;
|
|
1034
|
+
supportedExtensionAddition = "";
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
result[key] = value;
|
|
1039
|
+
supportedExtension += supportedExtensionAddition;
|
|
1040
|
+
}
|
|
1041
|
+
if (supportedExtension.length > 2) {
|
|
1042
|
+
var privateIndex = foundLocale.indexOf("-x-");
|
|
1043
|
+
if (privateIndex === -1) {
|
|
1044
|
+
foundLocale = foundLocale + supportedExtension;
|
|
1045
|
+
} else {
|
|
1046
|
+
var preExtension = foundLocale.slice(0, privateIndex);
|
|
1047
|
+
var postExtension = foundLocale.slice(privateIndex, foundLocale.length);
|
|
1048
|
+
foundLocale = preExtension + supportedExtension + postExtension;
|
|
1049
|
+
}
|
|
1050
|
+
foundLocale = Intl.getCanonicalLocales(foundLocale)[0];
|
|
1051
|
+
}
|
|
1052
|
+
result.locale = foundLocale;
|
|
1053
|
+
return result;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/abstract/LookupSupportedLocales.js
|
|
1057
|
+
function LookupSupportedLocales(availableLocales, requestedLocales) {
|
|
1058
|
+
var subset = [];
|
|
1059
|
+
for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
|
|
1060
|
+
var locale = requestedLocales_1[_i];
|
|
1061
|
+
var noExtensionLocale = locale.replace(UNICODE_EXTENSION_SEQUENCE_REGEX, "");
|
|
1062
|
+
var availableLocale = BestAvailableLocale(availableLocales, noExtensionLocale);
|
|
1063
|
+
if (availableLocale) {
|
|
1064
|
+
subset.push(availableLocale);
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
return subset;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+intl-localematcher@0.0.0/node_modules/@formatjs/intl-localematcher/lib/index.js
|
|
1071
|
+
function match(requestedLocales, availableLocales, defaultLocale, opts) {
|
|
1072
|
+
var locales = availableLocales.reduce(function(all, l) {
|
|
1073
|
+
all.add(l);
|
|
1074
|
+
return all;
|
|
1075
|
+
}, /* @__PURE__ */ new Set());
|
|
1076
|
+
return ResolveLocale(locales, CanonicalizeLocaleList2(requestedLocales), {
|
|
1077
|
+
localeMatcher: (opts === null || opts === void 0 ? void 0 : opts.algorithm) || "best fit"
|
|
1078
|
+
}, [], {}, function() {
|
|
1079
|
+
return defaultLocale;
|
|
1080
|
+
}).locale;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/SetNumberFormatUnitOptions.js
|
|
1084
|
+
function SetNumberFormatUnitOptions(nf, options, _a) {
|
|
1085
|
+
if (options === void 0) {
|
|
1086
|
+
options = /* @__PURE__ */ Object.create(null);
|
|
1087
|
+
}
|
|
1088
|
+
var getInternalSlots2 = _a.getInternalSlots;
|
|
1089
|
+
var internalSlots = getInternalSlots2(nf);
|
|
1090
|
+
var style = GetOption(options, "style", "string", ["decimal", "percent", "currency", "unit"], "decimal");
|
|
1091
|
+
internalSlots.style = style;
|
|
1092
|
+
var currency = GetOption(options, "currency", "string", void 0, void 0);
|
|
1093
|
+
if (currency !== void 0 && !IsWellFormedCurrencyCode(currency)) {
|
|
1094
|
+
throw RangeError("Malformed currency code");
|
|
1095
|
+
}
|
|
1096
|
+
if (style === "currency" && currency === void 0) {
|
|
1097
|
+
throw TypeError("currency cannot be undefined");
|
|
1098
|
+
}
|
|
1099
|
+
var currencyDisplay = GetOption(options, "currencyDisplay", "string", ["code", "symbol", "narrowSymbol", "name"], "symbol");
|
|
1100
|
+
var currencySign = GetOption(options, "currencySign", "string", ["standard", "accounting"], "standard");
|
|
1101
|
+
var unit = GetOption(options, "unit", "string", void 0, void 0);
|
|
1102
|
+
if (unit !== void 0 && !IsWellFormedUnitIdentifier(unit)) {
|
|
1103
|
+
throw RangeError("Invalid unit argument for Intl.NumberFormat()");
|
|
1104
|
+
}
|
|
1105
|
+
if (style === "unit" && unit === void 0) {
|
|
1106
|
+
throw TypeError("unit cannot be undefined");
|
|
1107
|
+
}
|
|
1108
|
+
var unitDisplay = GetOption(options, "unitDisplay", "string", ["short", "narrow", "long"], "short");
|
|
1109
|
+
if (style === "currency") {
|
|
1110
|
+
internalSlots.currency = currency.toUpperCase();
|
|
1111
|
+
internalSlots.currencyDisplay = currencyDisplay;
|
|
1112
|
+
internalSlots.currencySign = currencySign;
|
|
1113
|
+
}
|
|
1114
|
+
if (style === "unit") {
|
|
1115
|
+
internalSlots.unit = unit;
|
|
1116
|
+
internalSlots.unitDisplay = unitDisplay;
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/SetNumberFormatDigitOptions.js
|
|
1121
|
+
function SetNumberFormatDigitOptions(internalSlots, opts, mnfdDefault, mxfdDefault, notation) {
|
|
1122
|
+
var mnid = GetNumberOption(opts, "minimumIntegerDigits", 1, 21, 1);
|
|
1123
|
+
var mnfd = opts.minimumFractionDigits;
|
|
1124
|
+
var mxfd = opts.maximumFractionDigits;
|
|
1125
|
+
var mnsd = opts.minimumSignificantDigits;
|
|
1126
|
+
var mxsd = opts.maximumSignificantDigits;
|
|
1127
|
+
internalSlots.minimumIntegerDigits = mnid;
|
|
1128
|
+
if (mnsd !== void 0 || mxsd !== void 0) {
|
|
1129
|
+
internalSlots.roundingType = "significantDigits";
|
|
1130
|
+
mnsd = DefaultNumberOption(mnsd, 1, 21, 1);
|
|
1131
|
+
mxsd = DefaultNumberOption(mxsd, mnsd, 21, 21);
|
|
1132
|
+
internalSlots.minimumSignificantDigits = mnsd;
|
|
1133
|
+
internalSlots.maximumSignificantDigits = mxsd;
|
|
1134
|
+
} else if (mnfd !== void 0 || mxfd !== void 0) {
|
|
1135
|
+
internalSlots.roundingType = "fractionDigits";
|
|
1136
|
+
mnfd = DefaultNumberOption(mnfd, 0, 20, mnfdDefault);
|
|
1137
|
+
var mxfdActualDefault = Math.max(mnfd, mxfdDefault);
|
|
1138
|
+
mxfd = DefaultNumberOption(mxfd, mnfd, 20, mxfdActualDefault);
|
|
1139
|
+
internalSlots.minimumFractionDigits = mnfd;
|
|
1140
|
+
internalSlots.maximumFractionDigits = mxfd;
|
|
1141
|
+
} else if (notation === "compact") {
|
|
1142
|
+
internalSlots.roundingType = "compactRounding";
|
|
1143
|
+
} else {
|
|
1144
|
+
internalSlots.roundingType = "fractionDigits";
|
|
1145
|
+
internalSlots.minimumFractionDigits = mnfdDefault;
|
|
1146
|
+
internalSlots.maximumFractionDigits = mxfdDefault;
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/NumberFormat/InitializeNumberFormat.js
|
|
1151
|
+
function InitializeNumberFormat(nf, locales, opts, _a) {
|
|
1152
|
+
var getInternalSlots2 = _a.getInternalSlots, localeData = _a.localeData, availableLocales = _a.availableLocales, numberingSystemNames2 = _a.numberingSystemNames, getDefaultLocale = _a.getDefaultLocale, currencyDigitsData2 = _a.currencyDigitsData;
|
|
1153
|
+
var requestedLocales = CanonicalizeLocaleList(locales);
|
|
1154
|
+
var options = CoerceOptionsToObject(opts);
|
|
1155
|
+
var opt = /* @__PURE__ */ Object.create(null);
|
|
1156
|
+
var matcher = GetOption(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
|
|
1157
|
+
opt.localeMatcher = matcher;
|
|
1158
|
+
var numberingSystem = GetOption(options, "numberingSystem", "string", void 0, void 0);
|
|
1159
|
+
if (numberingSystem !== void 0 && numberingSystemNames2.indexOf(numberingSystem) < 0) {
|
|
1160
|
+
throw RangeError("Invalid numberingSystems: ".concat(numberingSystem));
|
|
1161
|
+
}
|
|
1162
|
+
opt.nu = numberingSystem;
|
|
1163
|
+
var r = ResolveLocale(
|
|
1164
|
+
availableLocales,
|
|
1165
|
+
requestedLocales,
|
|
1166
|
+
opt,
|
|
1167
|
+
["nu"],
|
|
1168
|
+
localeData,
|
|
1169
|
+
getDefaultLocale
|
|
1170
|
+
);
|
|
1171
|
+
var dataLocaleData = localeData[r.dataLocale];
|
|
1172
|
+
invariant(!!dataLocaleData, "Missing locale data for ".concat(r.dataLocale));
|
|
1173
|
+
var internalSlots = getInternalSlots2(nf);
|
|
1174
|
+
internalSlots.locale = r.locale;
|
|
1175
|
+
internalSlots.dataLocale = r.dataLocale;
|
|
1176
|
+
internalSlots.numberingSystem = r.nu;
|
|
1177
|
+
internalSlots.dataLocaleData = dataLocaleData;
|
|
1178
|
+
SetNumberFormatUnitOptions(nf, options, { getInternalSlots: getInternalSlots2 });
|
|
1179
|
+
var style = internalSlots.style;
|
|
1180
|
+
var mnfdDefault;
|
|
1181
|
+
var mxfdDefault;
|
|
1182
|
+
if (style === "currency") {
|
|
1183
|
+
var currency = internalSlots.currency;
|
|
1184
|
+
var cDigits = CurrencyDigits(currency, { currencyDigitsData: currencyDigitsData2 });
|
|
1185
|
+
mnfdDefault = cDigits;
|
|
1186
|
+
mxfdDefault = cDigits;
|
|
1187
|
+
} else {
|
|
1188
|
+
mnfdDefault = 0;
|
|
1189
|
+
mxfdDefault = style === "percent" ? 0 : 3;
|
|
1190
|
+
}
|
|
1191
|
+
var notation = GetOption(options, "notation", "string", ["standard", "scientific", "engineering", "compact"], "standard");
|
|
1192
|
+
internalSlots.notation = notation;
|
|
1193
|
+
SetNumberFormatDigitOptions(internalSlots, options, mnfdDefault, mxfdDefault, notation);
|
|
1194
|
+
var compactDisplay = GetOption(options, "compactDisplay", "string", ["short", "long"], "short");
|
|
1195
|
+
if (notation === "compact") {
|
|
1196
|
+
internalSlots.compactDisplay = compactDisplay;
|
|
1197
|
+
}
|
|
1198
|
+
var useGrouping = GetOption(options, "useGrouping", "boolean", void 0, true);
|
|
1199
|
+
internalSlots.useGrouping = useGrouping;
|
|
1200
|
+
var signDisplay = GetOption(options, "signDisplay", "string", ["auto", "never", "always", "exceptZero"], "auto");
|
|
1201
|
+
internalSlots.signDisplay = signDisplay;
|
|
1202
|
+
return nf;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/SupportedLocales.js
|
|
1206
|
+
function SupportedLocales(availableLocales, requestedLocales, options) {
|
|
1207
|
+
var matcher = "best fit";
|
|
1208
|
+
if (options !== void 0) {
|
|
1209
|
+
options = ToObject(options);
|
|
1210
|
+
matcher = GetOption(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
|
|
1211
|
+
}
|
|
1212
|
+
if (matcher === "best fit") {
|
|
1213
|
+
return LookupSupportedLocales(availableLocales, requestedLocales);
|
|
1214
|
+
}
|
|
1215
|
+
return LookupSupportedLocales(availableLocales, requestedLocales);
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/tslib@2.4.0/node_modules/tslib/tslib.es6.js
|
|
1219
|
+
var extendStatics = function(d, b) {
|
|
1220
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
1221
|
+
d2.__proto__ = b2;
|
|
1222
|
+
} || function(d2, b2) {
|
|
1223
|
+
for (var p in b2)
|
|
1224
|
+
if (Object.prototype.hasOwnProperty.call(b2, p))
|
|
1225
|
+
d2[p] = b2[p];
|
|
1226
|
+
};
|
|
1227
|
+
return extendStatics(d, b);
|
|
1228
|
+
};
|
|
1229
|
+
function __extends(d, b) {
|
|
1230
|
+
if (typeof b !== "function" && b !== null)
|
|
1231
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
1232
|
+
extendStatics(d, b);
|
|
1233
|
+
function __() {
|
|
1234
|
+
this.constructor = d;
|
|
1235
|
+
}
|
|
1236
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/data.js
|
|
1240
|
+
var MissingLocaleDataError = function(_super) {
|
|
1241
|
+
__extends(MissingLocaleDataError2, _super);
|
|
1242
|
+
function MissingLocaleDataError2() {
|
|
1243
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
1244
|
+
_this.type = "MISSING_LOCALE_DATA";
|
|
1245
|
+
return _this;
|
|
1246
|
+
}
|
|
1247
|
+
return MissingLocaleDataError2;
|
|
1248
|
+
}(Error);
|
|
1249
|
+
|
|
1250
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/types/date-time.js
|
|
1251
|
+
var RangePatternType;
|
|
1252
|
+
(function(RangePatternType2) {
|
|
1253
|
+
RangePatternType2["startRange"] = "startRange";
|
|
1254
|
+
RangePatternType2["shared"] = "shared";
|
|
1255
|
+
RangePatternType2["endRange"] = "endRange";
|
|
1256
|
+
})(RangePatternType || (RangePatternType = {}));
|
|
1257
|
+
|
|
1258
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/intl-numberformat/lib/src/currency-digits.generated.js
|
|
1259
|
+
var currencyDigitsData = { "ADP": 0, "AFN": 0, "ALL": 0, "AMD": 2, "BHD": 3, "BIF": 0, "BYN": 2, "BYR": 0, "CAD": 2, "CHF": 2, "CLF": 4, "CLP": 0, "COP": 2, "CRC": 2, "CZK": 2, "DEFAULT": 2, "DJF": 0, "DKK": 2, "ESP": 0, "GNF": 0, "GYD": 2, "HUF": 2, "IDR": 2, "IQD": 0, "IRR": 0, "ISK": 0, "ITL": 0, "JOD": 3, "JPY": 0, "KMF": 0, "KPW": 0, "KRW": 0, "KWD": 3, "LAK": 0, "LBP": 0, "LUF": 0, "LYD": 3, "MGA": 0, "MGF": 0, "MMK": 0, "MNT": 2, "MRO": 0, "MUR": 2, "NOK": 2, "OMR": 3, "PKR": 2, "PYG": 0, "RSD": 0, "RWF": 0, "SEK": 2, "SLL": 0, "SOS": 0, "STD": 0, "SYP": 0, "TMM": 0, "TND": 3, "TRL": 0, "TWD": 2, "TZS": 2, "UGX": 0, "UYI": 0, "UYW": 4, "UZS": 2, "VEF": 2, "VND": 0, "VUV": 0, "XAF": 0, "XOF": 0, "XPF": 0, "YER": 0, "ZMK": 0, "ZWD": 0 };
|
|
1260
|
+
|
|
1261
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/intl-numberformat/lib/src/numbering-systems.generated.js
|
|
1262
|
+
var numberingSystemNames = ["adlm", "ahom", "arab", "arabext", "armn", "armnlow", "bali", "beng", "bhks", "brah", "cakm", "cham", "cyrl", "deva", "diak", "ethi", "fullwide", "geor", "gong", "gonm", "grek", "greklow", "gujr", "guru", "hanidays", "hanidec", "hans", "hansfin", "hant", "hantfin", "hebr", "hmng", "hmnp", "java", "jpan", "jpanfin", "jpanyear", "kali", "khmr", "knda", "lana", "lanatham", "laoo", "latn", "lepc", "limb", "mathbold", "mathdbl", "mathmono", "mathsanb", "mathsans", "mlym", "modi", "mong", "mroo", "mtei", "mymr", "mymrshan", "mymrtlng", "newa", "nkoo", "olck", "orya", "osma", "rohg", "roman", "romanlow", "saur", "segment", "shrd", "sind", "sinh", "sora", "sund", "takr", "talu", "taml", "tamldec", "telu", "thai", "tibt", "tirh", "tnsa", "vaii", "wara", "wcho"];
|
|
1263
|
+
|
|
1264
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/intl-numberformat/lib/src/get_internal_slots.js
|
|
1265
|
+
var internalSlotMap = /* @__PURE__ */ new WeakMap();
|
|
1266
|
+
function getInternalSlots(x) {
|
|
1267
|
+
var internalSlots = internalSlotMap.get(x);
|
|
1268
|
+
if (!internalSlots) {
|
|
1269
|
+
internalSlots = /* @__PURE__ */ Object.create(null);
|
|
1270
|
+
internalSlotMap.set(x, internalSlots);
|
|
1271
|
+
}
|
|
1272
|
+
return internalSlots;
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/intl-numberformat/lib/src/core.js
|
|
1276
|
+
var RESOLVED_OPTIONS_KEYS = [
|
|
1277
|
+
"locale",
|
|
1278
|
+
"numberingSystem",
|
|
1279
|
+
"style",
|
|
1280
|
+
"currency",
|
|
1281
|
+
"currencyDisplay",
|
|
1282
|
+
"currencySign",
|
|
1283
|
+
"unit",
|
|
1284
|
+
"unitDisplay",
|
|
1285
|
+
"minimumIntegerDigits",
|
|
1286
|
+
"minimumFractionDigits",
|
|
1287
|
+
"maximumFractionDigits",
|
|
1288
|
+
"minimumSignificantDigits",
|
|
1289
|
+
"maximumSignificantDigits",
|
|
1290
|
+
"useGrouping",
|
|
1291
|
+
"notation",
|
|
1292
|
+
"compactDisplay",
|
|
1293
|
+
"signDisplay"
|
|
1294
|
+
];
|
|
1295
|
+
var NumberFormat = function(locales, options) {
|
|
1296
|
+
if (!this || !OrdinaryHasInstance(NumberFormat, this)) {
|
|
1297
|
+
return new NumberFormat(locales, options);
|
|
1298
|
+
}
|
|
1299
|
+
InitializeNumberFormat(this, locales, options, {
|
|
1300
|
+
getInternalSlots,
|
|
1301
|
+
localeData: NumberFormat.localeData,
|
|
1302
|
+
availableLocales: NumberFormat.availableLocales,
|
|
1303
|
+
getDefaultLocale: NumberFormat.getDefaultLocale,
|
|
1304
|
+
currencyDigitsData,
|
|
1305
|
+
numberingSystemNames
|
|
1306
|
+
});
|
|
1307
|
+
var internalSlots = getInternalSlots(this);
|
|
1308
|
+
var dataLocale = internalSlots.dataLocale;
|
|
1309
|
+
var dataLocaleData = NumberFormat.localeData[dataLocale];
|
|
1310
|
+
invariant(dataLocaleData !== void 0, "Cannot load locale-dependent data for ".concat(dataLocale, "."));
|
|
1311
|
+
internalSlots.pl = new Intl.PluralRules(dataLocale, {
|
|
1312
|
+
minimumFractionDigits: internalSlots.minimumFractionDigits,
|
|
1313
|
+
maximumFractionDigits: internalSlots.maximumFractionDigits,
|
|
1314
|
+
minimumIntegerDigits: internalSlots.minimumIntegerDigits,
|
|
1315
|
+
minimumSignificantDigits: internalSlots.minimumSignificantDigits,
|
|
1316
|
+
maximumSignificantDigits: internalSlots.maximumSignificantDigits
|
|
1317
|
+
});
|
|
1318
|
+
return this;
|
|
1319
|
+
};
|
|
1320
|
+
function formatToParts2(x) {
|
|
1321
|
+
return FormatNumericToParts(this, toNumeric(x), {
|
|
1322
|
+
getInternalSlots
|
|
1323
|
+
});
|
|
1324
|
+
}
|
|
1325
|
+
try {
|
|
1326
|
+
Object.defineProperty(formatToParts2, "name", {
|
|
1327
|
+
value: "formatToParts",
|
|
1328
|
+
enumerable: false,
|
|
1329
|
+
writable: false,
|
|
1330
|
+
configurable: true
|
|
1331
|
+
});
|
|
1332
|
+
} catch (e) {
|
|
1333
|
+
}
|
|
1334
|
+
defineProperty(NumberFormat.prototype, "formatToParts", {
|
|
1335
|
+
value: formatToParts2
|
|
1336
|
+
});
|
|
1337
|
+
defineProperty(NumberFormat.prototype, "resolvedOptions", {
|
|
1338
|
+
value: function resolvedOptions() {
|
|
1339
|
+
if (typeof this !== "object" || !OrdinaryHasInstance(NumberFormat, this)) {
|
|
1340
|
+
throw TypeError("Method Intl.NumberFormat.prototype.resolvedOptions called on incompatible receiver");
|
|
1341
|
+
}
|
|
1342
|
+
var internalSlots = getInternalSlots(this);
|
|
1343
|
+
var ro = {};
|
|
1344
|
+
for (var _i = 0, RESOLVED_OPTIONS_KEYS_1 = RESOLVED_OPTIONS_KEYS; _i < RESOLVED_OPTIONS_KEYS_1.length; _i++) {
|
|
1345
|
+
var key = RESOLVED_OPTIONS_KEYS_1[_i];
|
|
1346
|
+
var value = internalSlots[key];
|
|
1347
|
+
if (value !== void 0) {
|
|
1348
|
+
ro[key] = value;
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
return ro;
|
|
1352
|
+
}
|
|
1353
|
+
});
|
|
1354
|
+
var formatDescriptor = {
|
|
1355
|
+
enumerable: false,
|
|
1356
|
+
configurable: true,
|
|
1357
|
+
get: function() {
|
|
1358
|
+
if (typeof this !== "object" || !OrdinaryHasInstance(NumberFormat, this)) {
|
|
1359
|
+
throw TypeError("Intl.NumberFormat format property accessor called on incompatible receiver");
|
|
1360
|
+
}
|
|
1361
|
+
var internalSlots = getInternalSlots(this);
|
|
1362
|
+
var numberFormat = this;
|
|
1363
|
+
var boundFormat = internalSlots.boundFormat;
|
|
1364
|
+
if (boundFormat === void 0) {
|
|
1365
|
+
boundFormat = function(value) {
|
|
1366
|
+
var x = toNumeric(value);
|
|
1367
|
+
return numberFormat.formatToParts(x).map(function(x2) {
|
|
1368
|
+
return x2.value;
|
|
1369
|
+
}).join("");
|
|
1370
|
+
};
|
|
1371
|
+
try {
|
|
1372
|
+
Object.defineProperty(boundFormat, "name", {
|
|
1373
|
+
configurable: true,
|
|
1374
|
+
enumerable: false,
|
|
1375
|
+
writable: false,
|
|
1376
|
+
value: ""
|
|
1377
|
+
});
|
|
1378
|
+
} catch (e) {
|
|
1379
|
+
}
|
|
1380
|
+
internalSlots.boundFormat = boundFormat;
|
|
1381
|
+
}
|
|
1382
|
+
return boundFormat;
|
|
1383
|
+
}
|
|
1384
|
+
};
|
|
1385
|
+
try {
|
|
1386
|
+
Object.defineProperty(formatDescriptor.get, "name", {
|
|
1387
|
+
configurable: true,
|
|
1388
|
+
enumerable: false,
|
|
1389
|
+
writable: false,
|
|
1390
|
+
value: "get format"
|
|
1391
|
+
});
|
|
1392
|
+
} catch (e) {
|
|
1393
|
+
}
|
|
1394
|
+
Object.defineProperty(NumberFormat.prototype, "format", formatDescriptor);
|
|
1395
|
+
defineProperty(NumberFormat, "supportedLocalesOf", {
|
|
1396
|
+
value: function supportedLocalesOf(locales, options) {
|
|
1397
|
+
return SupportedLocales(NumberFormat.availableLocales, CanonicalizeLocaleList(locales), options);
|
|
1398
|
+
}
|
|
1399
|
+
});
|
|
1400
|
+
NumberFormat.__addLocaleData = function __addLocaleData() {
|
|
1401
|
+
var data = [];
|
|
1402
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1403
|
+
data[_i] = arguments[_i];
|
|
1404
|
+
}
|
|
1405
|
+
for (var _a = 0, data_1 = data; _a < data_1.length; _a++) {
|
|
1406
|
+
var _b = data_1[_a], d = _b.data, locale = _b.locale;
|
|
1407
|
+
var minimizedLocale = new Intl.Locale(locale).minimize().toString();
|
|
1408
|
+
NumberFormat.localeData[locale] = NumberFormat.localeData[minimizedLocale] = d;
|
|
1409
|
+
NumberFormat.availableLocales.add(minimizedLocale);
|
|
1410
|
+
NumberFormat.availableLocales.add(locale);
|
|
1411
|
+
if (!NumberFormat.__defaultLocale) {
|
|
1412
|
+
NumberFormat.__defaultLocale = minimizedLocale;
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
};
|
|
1416
|
+
NumberFormat.__addUnitData = function __addUnitData(locale, unitsData) {
|
|
1417
|
+
var _a = NumberFormat.localeData, _b = locale, existingData = _a[_b];
|
|
1418
|
+
if (!existingData) {
|
|
1419
|
+
throw new Error('Locale data for "'.concat(locale, '" has not been loaded in NumberFormat. \nPlease __addLocaleData before adding additional unit data'));
|
|
1420
|
+
}
|
|
1421
|
+
for (var unit in unitsData.simple) {
|
|
1422
|
+
existingData.units.simple[unit] = unitsData.simple[unit];
|
|
1423
|
+
}
|
|
1424
|
+
for (var unit in unitsData.compound) {
|
|
1425
|
+
existingData.units.compound[unit] = unitsData.compound[unit];
|
|
1426
|
+
}
|
|
1427
|
+
};
|
|
1428
|
+
NumberFormat.__defaultLocale = "";
|
|
1429
|
+
NumberFormat.localeData = {};
|
|
1430
|
+
NumberFormat.availableLocales = /* @__PURE__ */ new Set();
|
|
1431
|
+
NumberFormat.getDefaultLocale = function() {
|
|
1432
|
+
return NumberFormat.__defaultLocale;
|
|
1433
|
+
};
|
|
1434
|
+
NumberFormat.polyfilled = true;
|
|
1435
|
+
function toNumeric(val) {
|
|
1436
|
+
if (typeof val === "bigint") {
|
|
1437
|
+
return val;
|
|
1438
|
+
}
|
|
1439
|
+
return ToNumber(val);
|
|
1440
|
+
}
|
|
1441
|
+
try {
|
|
1442
|
+
if (typeof Symbol !== "undefined") {
|
|
1443
|
+
Object.defineProperty(NumberFormat.prototype, Symbol.toStringTag, {
|
|
1444
|
+
configurable: true,
|
|
1445
|
+
enumerable: false,
|
|
1446
|
+
writable: false,
|
|
1447
|
+
value: "Intl.NumberFormat"
|
|
1448
|
+
});
|
|
1449
|
+
}
|
|
1450
|
+
Object.defineProperty(NumberFormat.prototype.constructor, "length", {
|
|
1451
|
+
configurable: true,
|
|
1452
|
+
enumerable: false,
|
|
1453
|
+
writable: false,
|
|
1454
|
+
value: 0
|
|
1455
|
+
});
|
|
1456
|
+
Object.defineProperty(NumberFormat.supportedLocalesOf, "length", {
|
|
1457
|
+
configurable: true,
|
|
1458
|
+
enumerable: false,
|
|
1459
|
+
writable: false,
|
|
1460
|
+
value: 1
|
|
1461
|
+
});
|
|
1462
|
+
Object.defineProperty(NumberFormat, "prototype", {
|
|
1463
|
+
configurable: false,
|
|
1464
|
+
enumerable: false,
|
|
1465
|
+
writable: false,
|
|
1466
|
+
value: NumberFormat.prototype
|
|
1467
|
+
});
|
|
1468
|
+
} catch (e) {
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/intl-numberformat/lib/src/to_locale_string.js
|
|
1472
|
+
function toLocaleString(x, locales, options) {
|
|
1473
|
+
var numberFormat = new NumberFormat(locales, options);
|
|
1474
|
+
return numberFormat.format(x);
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/intl-numberformat/lib/supported-locales.generated.js
|
|
1478
|
+
var supportedLocales = ["af", "af-NA", "agq", "ak", "am", "ar", "ar-AE", "ar-BH", "ar-DJ", "ar-DZ", "ar-EG", "ar-EH", "ar-ER", "ar-IL", "ar-IQ", "ar-JO", "ar-KM", "ar-KW", "ar-LB", "ar-LY", "ar-MA", "ar-MR", "ar-OM", "ar-PS", "ar-QA", "ar-SA", "ar-SD", "ar-SO", "ar-SS", "ar-SY", "ar-TD", "ar-TN", "ar-YE", "as", "asa", "ast", "az", "az-Cyrl", "az-Latn", "bas", "be", "be-tarask", "bem", "bez", "bg", "bm", "bn", "bn-IN", "bo", "bo-IN", "br", "brx", "bs", "bs-Cyrl", "bs-Latn", "ca", "ca-AD", "ca-ES-valencia", "ca-FR", "ca-IT", "ccp", "ccp-IN", "ce", "ceb", "cgg", "chr", "ckb", "ckb-IR", "cs", "cy", "da", "da-GL", "dav", "de", "de-AT", "de-BE", "de-CH", "de-IT", "de-LI", "de-LU", "dje", "doi", "dsb", "dua", "dyo", "dz", "ebu", "ee", "ee-TG", "el", "el-CY", "en", "en-001", "en-150", "en-AE", "en-AG", "en-AI", "en-AS", "en-AT", "en-AU", "en-BB", "en-BE", "en-BI", "en-BM", "en-BS", "en-BW", "en-BZ", "en-CA", "en-CC", "en-CH", "en-CK", "en-CM", "en-CX", "en-CY", "en-DE", "en-DG", "en-DK", "en-DM", "en-ER", "en-FI", "en-FJ", "en-FK", "en-FM", "en-GB", "en-GD", "en-GG", "en-GH", "en-GI", "en-GM", "en-GU", "en-GY", "en-HK", "en-IE", "en-IL", "en-IM", "en-IN", "en-IO", "en-JE", "en-JM", "en-KE", "en-KI", "en-KN", "en-KY", "en-LC", "en-LR", "en-LS", "en-MG", "en-MH", "en-MO", "en-MP", "en-MS", "en-MT", "en-MU", "en-MW", "en-MY", "en-NA", "en-NF", "en-NG", "en-NL", "en-NR", "en-NU", "en-NZ", "en-PG", "en-PH", "en-PK", "en-PN", "en-PR", "en-PW", "en-RW", "en-SB", "en-SC", "en-SD", "en-SE", "en-SG", "en-SH", "en-SI", "en-SL", "en-SS", "en-SX", "en-SZ", "en-TC", "en-TK", "en-TO", "en-TT", "en-TV", "en-TZ", "en-UG", "en-UM", "en-VC", "en-VG", "en-VI", "en-VU", "en-WS", "en-ZA", "en-ZM", "en-ZW", "eo", "es", "es-419", "es-AR", "es-BO", "es-BR", "es-BZ", "es-CL", "es-CO", "es-CR", "es-CU", "es-DO", "es-EA", "es-EC", "es-GQ", "es-GT", "es-HN", "es-IC", "es-MX", "es-NI", "es-PA", "es-PE", "es-PH", "es-PR", "es-PY", "es-SV", "es-US", "es-UY", "es-VE", "et", "eu", "ewo", "fa", "fa-AF", "ff", "ff-Adlm", "ff-Adlm-BF", "ff-Adlm-CM", "ff-Adlm-GH", "ff-Adlm-GM", "ff-Adlm-GW", "ff-Adlm-LR", "ff-Adlm-MR", "ff-Adlm-NE", "ff-Adlm-NG", "ff-Adlm-SL", "ff-Adlm-SN", "ff-Latn", "ff-Latn-BF", "ff-Latn-CM", "ff-Latn-GH", "ff-Latn-GM", "ff-Latn-GN", "ff-Latn-GW", "ff-Latn-LR", "ff-Latn-MR", "ff-Latn-NE", "ff-Latn-NG", "ff-Latn-SL", "fi", "fil", "fo", "fo-DK", "fr", "fr-BE", "fr-BF", "fr-BI", "fr-BJ", "fr-BL", "fr-CA", "fr-CD", "fr-CF", "fr-CG", "fr-CH", "fr-CI", "fr-CM", "fr-DJ", "fr-DZ", "fr-GA", "fr-GF", "fr-GN", "fr-GP", "fr-GQ", "fr-HT", "fr-KM", "fr-LU", "fr-MA", "fr-MC", "fr-MF", "fr-MG", "fr-ML", "fr-MQ", "fr-MR", "fr-MU", "fr-NC", "fr-NE", "fr-PF", "fr-PM", "fr-RE", "fr-RW", "fr-SC", "fr-SN", "fr-SY", "fr-TD", "fr-TG", "fr-TN", "fr-VU", "fr-WF", "fr-YT", "fur", "fy", "ga", "ga-GB", "gd", "gl", "gsw", "gsw-FR", "gsw-LI", "gu", "guz", "gv", "ha", "ha-GH", "ha-NE", "haw", "he", "hi", "hr", "hr-BA", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "is", "it", "it-CH", "it-SM", "it-VA", "ja", "jgo", "jmc", "jv", "ka", "kab", "kam", "kde", "kea", "kgp", "khq", "ki", "kk", "kkj", "kl", "kln", "km", "kn", "ko", "ko-KP", "kok", "ks", "ks-Arab", "ksb", "ksf", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lkt", "ln", "ln-AO", "ln-CF", "ln-CG", "lo", "lrc", "lrc-IQ", "lt", "lu", "luo", "luy", "lv", "mai", "mas", "mas-TZ", "mer", "mfe", "mg", "mgh", "mgo", "mi", "mk", "ml", "mn", "mni", "mni-Beng", "mr", "ms", "ms-BN", "ms-ID", "ms-SG", "mt", "mua", "my", "mzn", "naq", "nb", "nb-SJ", "nd", "nds", "nds-NL", "ne", "ne-IN", "nl", "nl-AW", "nl-BE", "nl-BQ", "nl-CW", "nl-SR", "nl-SX", "nmg", "nn", "nnh", "no", "nus", "nyn", "om", "om-KE", "or", "os", "os-RU", "pa", "pa-Arab", "pa-Guru", "pcm", "pl", "ps", "ps-PK", "pt", "pt-AO", "pt-CH", "pt-CV", "pt-GQ", "pt-GW", "pt-LU", "pt-MO", "pt-MZ", "pt-PT", "pt-ST", "pt-TL", "qu", "qu-BO", "qu-EC", "rm", "rn", "ro", "ro-MD", "rof", "ru", "ru-BY", "ru-KG", "ru-KZ", "ru-MD", "ru-UA", "rw", "rwk", "sa", "sah", "saq", "sat", "sat-Olck", "sbp", "sc", "sd", "sd-Arab", "sd-Deva", "se", "se-FI", "se-SE", "seh", "ses", "sg", "shi", "shi-Latn", "shi-Tfng", "si", "sk", "sl", "smn", "sn", "so", "so-DJ", "so-ET", "so-KE", "sq", "sq-MK", "sq-XK", "sr", "sr-Cyrl", "sr-Cyrl-BA", "sr-Cyrl-ME", "sr-Cyrl-XK", "sr-Latn", "sr-Latn-BA", "sr-Latn-ME", "sr-Latn-XK", "su", "su-Latn", "sv", "sv-AX", "sv-FI", "sw", "sw-CD", "sw-KE", "sw-UG", "ta", "ta-LK", "ta-MY", "ta-SG", "te", "teo", "teo-KE", "tg", "th", "ti", "ti-ER", "tk", "to", "tr", "tr-CY", "tt", "twq", "tzm", "ug", "uk", "und", "ur", "ur-IN", "uz", "uz-Arab", "uz-Cyrl", "uz-Latn", "vai", "vai-Latn", "vai-Vaii", "vi", "vun", "wae", "wo", "xh", "xog", "yav", "yi", "yo", "yo-BJ", "yrl", "yrl-CO", "yrl-VE", "yue", "yue-Hans", "yue-Hant", "zgh", "zh", "zh-Hans", "zh-Hans-HK", "zh-Hans-MO", "zh-Hans-SG", "zh-Hant", "zh-Hant-HK", "zh-Hant-MO", "zu"];
|
|
1479
|
+
|
|
1480
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/intl-numberformat/lib/should-polyfill.js
|
|
1481
|
+
function onlySupportsEn() {
|
|
1482
|
+
return !Intl.NumberFormat.polyfilled && !Intl.NumberFormat.supportedLocalesOf(["es"]).length;
|
|
1483
|
+
}
|
|
1484
|
+
function supportsES2020() {
|
|
1485
|
+
try {
|
|
1486
|
+
var s = new Intl.NumberFormat("en", {
|
|
1487
|
+
style: "unit",
|
|
1488
|
+
unit: "bit",
|
|
1489
|
+
unitDisplay: "long",
|
|
1490
|
+
notation: "scientific"
|
|
1491
|
+
}).format(1e4);
|
|
1492
|
+
if (s !== "1E4 bits") {
|
|
1493
|
+
return false;
|
|
1494
|
+
}
|
|
1495
|
+
} catch (e) {
|
|
1496
|
+
return false;
|
|
1497
|
+
}
|
|
1498
|
+
return true;
|
|
1499
|
+
}
|
|
1500
|
+
function supportedLocalesOf2(locale) {
|
|
1501
|
+
if (!locale) {
|
|
1502
|
+
return true;
|
|
1503
|
+
}
|
|
1504
|
+
var locales = Array.isArray(locale) ? locale : [locale];
|
|
1505
|
+
return Intl.NumberFormat.supportedLocalesOf(locales).length === locales.length;
|
|
1506
|
+
}
|
|
1507
|
+
function shouldPolyfill(locale) {
|
|
1508
|
+
if (locale === void 0) {
|
|
1509
|
+
locale = "en";
|
|
1510
|
+
}
|
|
1511
|
+
if (typeof Intl === "undefined" || !("NumberFormat" in Intl) || !supportsES2020() || onlySupportsEn() || !supportedLocalesOf2(locale)) {
|
|
1512
|
+
return locale ? match([locale], supportedLocales, "en") : void 0;
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
// ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/packages/intl-numberformat/lib/polyfill.js
|
|
1517
|
+
if (shouldPolyfill()) {
|
|
1518
|
+
defineProperty(Intl, "NumberFormat", { value: NumberFormat });
|
|
1519
|
+
defineProperty(Number.prototype, "toLocaleString", {
|
|
1520
|
+
value: function toLocaleString2(locales, options) {
|
|
1521
|
+
return toLocaleString(this, locales, options);
|
|
1522
|
+
}
|
|
1523
|
+
});
|
|
1524
|
+
}
|
|
1525
|
+
})();
|
|
1526
|
+
//# sourceMappingURL=polyfill.iife.js.map
|