@hebcal/core 5.9.0 → 5.9.1
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/dist/bundle.js +92 -87
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.min.js +4 -4
- package/dist/bundle.min.js.map +1 -1
- package/dist/esm/DailyLearning.js +1 -1
- package/dist/esm/HebrewDateEvent.js +5 -5
- package/dist/esm/HebrewDateEvent.js.map +1 -1
- package/dist/esm/HolidayEvent.js +1 -1
- package/dist/esm/MevarchimChodeshEvent.js +1 -1
- package/dist/esm/ParshaEvent.js +1 -1
- package/dist/esm/TimedEvent.js +1 -1
- package/dist/esm/YomKippurKatanEvent.js +1 -1
- package/dist/esm/ashkenazi.po.js +1 -1
- package/dist/esm/calendar.js +10 -5
- package/dist/esm/calendar.js.map +1 -1
- package/dist/esm/candles.js +1 -1
- package/dist/esm/event.js +1 -1
- package/dist/esm/getStartAndEnd.js +2 -2
- package/dist/esm/hallel.js +1 -1
- package/dist/esm/he.po.js +1 -1
- package/dist/esm/hebcal.js +1 -1
- package/dist/esm/holidays.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/locale.js +1 -1
- package/dist/esm/location.js +1 -1
- package/dist/esm/modern.js +1 -1
- package/dist/esm/molad.js +3 -3
- package/dist/esm/molad.js.map +1 -1
- package/dist/esm/omer.js +3 -3
- package/dist/esm/omer.js.map +1 -1
- package/dist/esm/parshaName.js +2 -2
- package/dist/esm/parshaName.js.map +1 -1
- package/dist/esm/parshaYear.js +1 -1
- package/dist/esm/pkgVersion.d.ts +1 -1
- package/dist/esm/pkgVersion.js +2 -2
- package/dist/esm/pkgVersion.js.map +1 -1
- package/dist/esm/reformatTimeStr.js +3 -3
- package/dist/esm/reformatTimeStr.js.map +1 -1
- package/dist/esm/sedra.js +1 -1
- package/dist/esm/staticHolidays.js +1 -1
- package/dist/esm/tachanun.js +1 -1
- package/dist/esm/zmanim.js +1 -1
- package/dist/index.cjs +21 -16
- package/dist/index.cjs.map +1 -1
- package/dist/pkgVersion.d.ts +1 -1
- package/package.json +12 -12
package/dist/bundle.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*! @hebcal/core v5.9.
|
|
1
|
+
/*! @hebcal/core v5.9.1, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
2
2
|
var hebcal = (function (exports) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
/** DO NOT EDIT THIS AUTO-GENERATED FILE! */
|
|
6
|
-
const version = '5.9.
|
|
6
|
+
const version = '5.9.1';
|
|
7
7
|
|
|
8
8
|
/*! @hebcal/hdate v0.13.5, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
9
9
|
/* eslint-disable @typescript-eslint/no-namespace, no-inner-declarations */
|
|
@@ -1117,7 +1117,7 @@ class Locale {
|
|
|
1117
1117
|
static lookupTranslation(id, locale) {
|
|
1118
1118
|
const loc = typeof locale === 'string' && locales.get(locale.toLowerCase()) || activeLocale;
|
|
1119
1119
|
const array = loc[id];
|
|
1120
|
-
if ((array === null || array ===
|
|
1120
|
+
if ((array === null || array === void 0 ? void 0 : array.length) && array[0].length) {
|
|
1121
1121
|
return array[0];
|
|
1122
1122
|
}
|
|
1123
1123
|
return undefined;
|
|
@@ -1214,7 +1214,7 @@ class Locale {
|
|
|
1214
1214
|
* @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
|
|
1215
1215
|
*/
|
|
1216
1216
|
static ordinal(n, locale) {
|
|
1217
|
-
const locale1 = locale === null || locale ===
|
|
1217
|
+
const locale1 = locale === null || locale === void 0 ? void 0 : locale.toLowerCase();
|
|
1218
1218
|
const locale0 = locale1 || activeName;
|
|
1219
1219
|
if (!locale0) {
|
|
1220
1220
|
return getEnOrdinal(n);
|
|
@@ -2276,8 +2276,8 @@ class HebrewDateEvent extends Event {
|
|
|
2276
2276
|
* console.log(ev.render('he')); // 'ט״ו חֶשְׁוָן תשס״ט'
|
|
2277
2277
|
*/
|
|
2278
2278
|
render(locale) {
|
|
2279
|
-
const locale1 = locale === null || locale ===
|
|
2280
|
-
const locale0 = locale1 !== null && locale1 !==
|
|
2279
|
+
const locale1 = locale === null || locale === void 0 ? void 0 : locale.toLowerCase();
|
|
2280
|
+
const locale0 = locale1 !== null && locale1 !== void 0 ? locale1 : Locale.getLocaleName();
|
|
2281
2281
|
const hd = this.getDate();
|
|
2282
2282
|
switch (locale0) {
|
|
2283
2283
|
case 'h':
|
|
@@ -2310,8 +2310,8 @@ class HebrewDateEvent extends Event {
|
|
|
2310
2310
|
* console.log(ev.renderBrief('he')); // 'ט״ו חֶשְׁוָן'
|
|
2311
2311
|
*/
|
|
2312
2312
|
renderBrief(locale) {
|
|
2313
|
-
const locale1 = locale === null || locale ===
|
|
2314
|
-
const locale0 = locale1 !== null && locale1 !==
|
|
2313
|
+
const locale1 = locale === null || locale === void 0 ? void 0 : locale.toLowerCase();
|
|
2314
|
+
const locale0 = locale1 !== null && locale1 !== void 0 ? locale1 : Locale.getLocaleName();
|
|
2315
2315
|
const hd = this.getDate();
|
|
2316
2316
|
if (hd.getMonth() === months.TISHREI && hd.getDate() === 1) {
|
|
2317
2317
|
return this.render(locale0);
|
|
@@ -2878,10 +2878,10 @@ function requireSharedStore () {
|
|
|
2878
2878
|
var store = sharedStore.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
|
|
2879
2879
|
|
|
2880
2880
|
(store.versions || (store.versions = [])).push({
|
|
2881
|
-
version: '3.
|
|
2881
|
+
version: '3.41.0',
|
|
2882
2882
|
mode: IS_PURE ? 'pure' : 'global',
|
|
2883
2883
|
copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',
|
|
2884
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
2884
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE',
|
|
2885
2885
|
source: 'https://github.com/zloirock/core-js'
|
|
2886
2886
|
});
|
|
2887
2887
|
return sharedStore.exports;
|
|
@@ -4070,7 +4070,7 @@ function clampEntity(e, n, t, o, r, i) {
|
|
|
4070
4070
|
}
|
|
4071
4071
|
function getDefinedProp(e, n) {
|
|
4072
4072
|
const t = e[n];
|
|
4073
|
-
if (
|
|
4073
|
+
if (void 0 === t) {
|
|
4074
4074
|
throw new TypeError(missingField(n));
|
|
4075
4075
|
}
|
|
4076
4076
|
return t;
|
|
@@ -4168,7 +4168,7 @@ function nn(e) {
|
|
|
4168
4168
|
};
|
|
4169
4169
|
const n = Object.keys(e);
|
|
4170
4170
|
for (const t of n) {
|
|
4171
|
-
|
|
4171
|
+
void 0 === e[t] && delete e[t];
|
|
4172
4172
|
}
|
|
4173
4173
|
return e;
|
|
4174
4174
|
}
|
|
@@ -4272,17 +4272,17 @@ function ln(e) {
|
|
|
4272
4272
|
return e === X ? ["year", "day"] : [];
|
|
4273
4273
|
}
|
|
4274
4274
|
function l(e) {
|
|
4275
|
-
if (
|
|
4275
|
+
if (void 0 !== e) {
|
|
4276
4276
|
return m(e);
|
|
4277
4277
|
}
|
|
4278
4278
|
}
|
|
4279
4279
|
function S(e) {
|
|
4280
|
-
if (
|
|
4280
|
+
if (void 0 !== e) {
|
|
4281
4281
|
return d(e);
|
|
4282
4282
|
}
|
|
4283
4283
|
}
|
|
4284
4284
|
function c(e) {
|
|
4285
|
-
if (
|
|
4285
|
+
if (void 0 !== e) {
|
|
4286
4286
|
return u(e);
|
|
4287
4287
|
}
|
|
4288
4288
|
}
|
|
@@ -4472,7 +4472,7 @@ function isoToEpochMilli(e) {
|
|
|
4472
4472
|
}
|
|
4473
4473
|
function isoToEpochNano(e) {
|
|
4474
4474
|
const n = isoToEpochMilli(e);
|
|
4475
|
-
if (
|
|
4475
|
+
if (void 0 !== n) {
|
|
4476
4476
|
const [t, o] = divModTrunc(n, Gr);
|
|
4477
4477
|
return [t, o * be + (e.isoMicrosecond || 0) * Vr + (e.isoNanosecond || 0)];
|
|
4478
4478
|
}
|
|
@@ -4590,7 +4590,7 @@ function constrainIsoTimeFields(e, n) {
|
|
|
4590
4590
|
return zipProps(j, [clampProp(e, "isoHour", 0, 23, n), clampProp(e, "isoMinute", 0, 59, n), clampProp(e, "isoSecond", 0, 59, n), clampProp(e, "isoMillisecond", 0, 999, n), clampProp(e, "isoMicrosecond", 0, 999, n), clampProp(e, "isoNanosecond", 0, 999, n)]);
|
|
4591
4591
|
}
|
|
4592
4592
|
function H(e) {
|
|
4593
|
-
return
|
|
4593
|
+
return void 0 === e ? 0 : ua(de(e));
|
|
4594
4594
|
}
|
|
4595
4595
|
function wn(e) {
|
|
4596
4596
|
let n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
@@ -4622,7 +4622,7 @@ function refineRoundingOptions(e) {
|
|
|
4622
4622
|
let o = parseRoundingIncInteger(e = normalizeOptionsOrString(e, Hi));
|
|
4623
4623
|
const r = ha(e, 7);
|
|
4624
4624
|
let i = aa(e, n);
|
|
4625
|
-
return i = requirePropDefined(Hi, i), o = refineRoundingInc(o, i,
|
|
4625
|
+
return i = requirePropDefined(Hi, i), o = refineRoundingInc(o, i, void 0, t), [i, o, r];
|
|
4626
4626
|
}
|
|
4627
4627
|
function refineDateDisplayOptions(e) {
|
|
4628
4628
|
return da(normalizeOptions(e));
|
|
@@ -4636,11 +4636,11 @@ function refineTimeDisplayTuple(e) {
|
|
|
4636
4636
|
return [ha(e, 4), ...refineSmallestUnitAndSubsecDigits(aa(e, n), t)];
|
|
4637
4637
|
}
|
|
4638
4638
|
function refineSmallestUnitAndSubsecDigits(e, n) {
|
|
4639
|
-
return null != e ? [Xr[e], e < 4 ? 9 - 3 * e : -1] : [
|
|
4639
|
+
return null != e ? [Xr[e], e < 4 ? 9 - 3 * e : -1] : [void 0 === n ? 1 : 10 ** (9 - n), n];
|
|
4640
4640
|
}
|
|
4641
4641
|
function parseRoundingIncInteger(e) {
|
|
4642
4642
|
const n = e[_i];
|
|
4643
|
-
return
|
|
4643
|
+
return void 0 === n ? 1 : toInteger(n, _i);
|
|
4644
4644
|
}
|
|
4645
4645
|
function refineRoundingInc(e, n, t, o) {
|
|
4646
4646
|
const r = o ? Qr : Xr[n + 1];
|
|
@@ -4656,7 +4656,7 @@ function refineRoundingInc(e, n, t, o) {
|
|
|
4656
4656
|
}
|
|
4657
4657
|
function refineSubsecDigits(e) {
|
|
4658
4658
|
let n = e[Ji];
|
|
4659
|
-
if (
|
|
4659
|
+
if (void 0 !== n) {
|
|
4660
4660
|
if ("number" != typeof n) {
|
|
4661
4661
|
if ("auto" === toString(n)) {
|
|
4662
4662
|
return;
|
|
@@ -4668,7 +4668,7 @@ function refineSubsecDigits(e) {
|
|
|
4668
4668
|
return n;
|
|
4669
4669
|
}
|
|
4670
4670
|
function normalizeOptions(e) {
|
|
4671
|
-
return
|
|
4671
|
+
return void 0 === e ? {} : de(e);
|
|
4672
4672
|
}
|
|
4673
4673
|
function normalizeOptionsOrString(e, n) {
|
|
4674
4674
|
return "string" == typeof e ? {
|
|
@@ -4676,7 +4676,7 @@ function normalizeOptionsOrString(e, n) {
|
|
|
4676
4676
|
} : de(e);
|
|
4677
4677
|
}
|
|
4678
4678
|
function U(e) {
|
|
4679
|
-
if (
|
|
4679
|
+
if (void 0 !== e) {
|
|
4680
4680
|
if (z(e)) {
|
|
4681
4681
|
return Object.assign(Object.create(null), e);
|
|
4682
4682
|
}
|
|
@@ -4693,14 +4693,14 @@ function refineUnitOption(e, n) {
|
|
|
4693
4693
|
let o = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
4694
4694
|
let r = arguments.length > 4 ? arguments[4] : undefined;
|
|
4695
4695
|
let i = n[e];
|
|
4696
|
-
if (
|
|
4697
|
-
return r ? o :
|
|
4696
|
+
if (void 0 === i) {
|
|
4697
|
+
return r ? o : void 0;
|
|
4698
4698
|
}
|
|
4699
4699
|
if (i = toString(i), "auto" === i) {
|
|
4700
4700
|
return r ? o : null;
|
|
4701
4701
|
}
|
|
4702
4702
|
let a = $r[i];
|
|
4703
|
-
if (
|
|
4703
|
+
if (void 0 === a && (a = Ei[i]), void 0 === a) {
|
|
4704
4704
|
throw new RangeError(invalidChoice(e, i, $r));
|
|
4705
4705
|
}
|
|
4706
4706
|
return clampEntity(e, a, o, t, 1, Et), a;
|
|
@@ -4708,12 +4708,12 @@ function refineUnitOption(e, n) {
|
|
|
4708
4708
|
function refineChoiceOption(e, n, t) {
|
|
4709
4709
|
let o = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
4710
4710
|
const r = t[e];
|
|
4711
|
-
if (
|
|
4711
|
+
if (void 0 === r) {
|
|
4712
4712
|
return o;
|
|
4713
4713
|
}
|
|
4714
4714
|
const i = toString(r),
|
|
4715
4715
|
a = n[i];
|
|
4716
|
-
if (
|
|
4716
|
+
if (void 0 === a) {
|
|
4717
4717
|
throw new RangeError(invalidChoice(e, i, n));
|
|
4718
4718
|
}
|
|
4719
4719
|
return a;
|
|
@@ -5032,7 +5032,7 @@ function me(e, n, t, o) {
|
|
|
5032
5032
|
const n = refineTimeDisplayTuple(e = normalizeOptions(e));
|
|
5033
5033
|
return [e.timeZone, ...n];
|
|
5034
5034
|
})(o),
|
|
5035
|
-
c =
|
|
5035
|
+
c = void 0 !== r;
|
|
5036
5036
|
return ((e, n, t, o, r, i) => {
|
|
5037
5037
|
t = roundBigNanoByInc(t, r, o, 1);
|
|
5038
5038
|
const a = n.getOffsetNanosecondsFor(t);
|
|
@@ -5161,7 +5161,7 @@ function formatCalendarId(e, n) {
|
|
|
5161
5161
|
}
|
|
5162
5162
|
function formatSubsecNano(e, n) {
|
|
5163
5163
|
let t = padNumber(9, e);
|
|
5164
|
-
return t =
|
|
5164
|
+
return t = void 0 === n ? t.replace(Na, "") : t.slice(0, n), t ? "." + t : "";
|
|
5165
5165
|
}
|
|
5166
5166
|
function getSignStr(e) {
|
|
5167
5167
|
return e < 0 ? "-" : "+";
|
|
@@ -5197,11 +5197,11 @@ function getMatchingInstantFor(e, n, t) {
|
|
|
5197
5197
|
let r = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
|
|
5198
5198
|
let i = arguments.length > 5 ? arguments[5] : undefined;
|
|
5199
5199
|
let a = arguments.length > 6 ? arguments[6] : undefined;
|
|
5200
|
-
if (
|
|
5200
|
+
if (void 0 !== t && 1 === o && (1 === o || a)) {
|
|
5201
5201
|
return isoToEpochNanoWithOffset(n, t);
|
|
5202
5202
|
}
|
|
5203
5203
|
const s = e.getPossibleInstantsFor(n);
|
|
5204
|
-
if (
|
|
5204
|
+
if (void 0 !== t && 3 !== o) {
|
|
5205
5205
|
const e = ((e, n, t, o) => {
|
|
5206
5206
|
const r = isoToEpochNano(n);
|
|
5207
5207
|
o && (t = roundToMinute(t));
|
|
@@ -5212,7 +5212,7 @@ function getMatchingInstantFor(e, n, t) {
|
|
|
5212
5212
|
}
|
|
5213
5213
|
}
|
|
5214
5214
|
})(s, n, t, i);
|
|
5215
|
-
if (
|
|
5215
|
+
if (void 0 !== e) {
|
|
5216
5216
|
return e;
|
|
5217
5217
|
}
|
|
5218
5218
|
if (0 === o) {
|
|
@@ -5407,7 +5407,7 @@ function Gt(e, n, t, o, r) {
|
|
|
5407
5407
|
let i = parseRoundingIncInteger(e);
|
|
5408
5408
|
const a = ha(e, 7);
|
|
5409
5409
|
let s = aa(e);
|
|
5410
|
-
if (
|
|
5410
|
+
if (void 0 === o && void 0 === s) {
|
|
5411
5411
|
throw new RangeError(Ur);
|
|
5412
5412
|
}
|
|
5413
5413
|
return null == s && (s = 0), null == o && (o = Math.max(s, n)), checkLargestSmallestUnit(o, s), i = refineRoundingInc(i, s, 1), [o, s, i, a, r];
|
|
@@ -5533,7 +5533,7 @@ function Xt(e) {
|
|
|
5533
5533
|
throw new RangeError(failedParse(e));
|
|
5534
5534
|
}
|
|
5535
5535
|
if (n.timeZone) {
|
|
5536
|
-
return finalizeZonedDateTime(n, n.offset ? parseOffsetNano(n.offset) :
|
|
5536
|
+
return finalizeZonedDateTime(n, n.offset ? parseOffsetNano(n.offset) : void 0);
|
|
5537
5537
|
}
|
|
5538
5538
|
if (n.m) {
|
|
5539
5539
|
throw new RangeError(failedParse(e));
|
|
@@ -5548,13 +5548,13 @@ function Mn(e, n) {
|
|
|
5548
5548
|
const {
|
|
5549
5549
|
offset: o
|
|
5550
5550
|
} = t,
|
|
5551
|
-
r = o ? parseOffsetNano(o) :
|
|
5551
|
+
r = o ? parseOffsetNano(o) : void 0,
|
|
5552
5552
|
[, i, a] = wn(n);
|
|
5553
5553
|
return finalizeZonedDateTime(t, r, i, a);
|
|
5554
5554
|
}
|
|
5555
5555
|
function parseOffsetNano(e) {
|
|
5556
5556
|
const n = parseOffsetNanoMaybe(e);
|
|
5557
|
-
if (
|
|
5557
|
+
if (void 0 === n) {
|
|
5558
5558
|
throw new RangeError(failedParse(e));
|
|
5559
5559
|
}
|
|
5560
5560
|
return n;
|
|
@@ -5605,7 +5605,7 @@ function ze(e) {
|
|
|
5605
5605
|
let n,
|
|
5606
5606
|
t = (e => {
|
|
5607
5607
|
const n = Ca.exec(e);
|
|
5608
|
-
return n ? (organizeAnnotationParts(n[10]), organizeTimeParts(n)) :
|
|
5608
|
+
return n ? (organizeAnnotationParts(n[10]), organizeTimeParts(n)) : void 0;
|
|
5609
5609
|
})(m(e));
|
|
5610
5610
|
if (!t) {
|
|
5611
5611
|
if (t = parseDateTimeLike(e), !t) {
|
|
@@ -5634,7 +5634,7 @@ function Kt(e) {
|
|
|
5634
5634
|
function parseUnit(e, r, i) {
|
|
5635
5635
|
let a = 0,
|
|
5636
5636
|
s = 0;
|
|
5637
|
-
if (i && ([a, o] = divModFloor(o, Xr[i])),
|
|
5637
|
+
if (i && ([a, o] = divModFloor(o, Xr[i])), void 0 !== e) {
|
|
5638
5638
|
if (t) {
|
|
5639
5639
|
throw new RangeError(invalidSubstring(e));
|
|
5640
5640
|
}
|
|
@@ -5659,7 +5659,7 @@ function Kt(e) {
|
|
|
5659
5659
|
throw new RangeError(noValidFields(F));
|
|
5660
5660
|
}
|
|
5661
5661
|
return parseSign(e[1]) < 0 && (r = negateDurationFields(r)), r;
|
|
5662
|
-
})(n) :
|
|
5662
|
+
})(n) : void 0;
|
|
5663
5663
|
})(m(e));
|
|
5664
5664
|
if (!n) {
|
|
5665
5665
|
throw new RangeError(failedParse(e));
|
|
@@ -5706,9 +5706,9 @@ function parseDateTimeLike(e) {
|
|
|
5706
5706
|
...organizeAnnotationParts(e[16]),
|
|
5707
5707
|
p: Boolean(e[6]),
|
|
5708
5708
|
m: t,
|
|
5709
|
-
offset: t ?
|
|
5709
|
+
offset: t ? void 0 : n
|
|
5710
5710
|
};
|
|
5711
|
-
})(n) :
|
|
5711
|
+
})(n) : void 0;
|
|
5712
5712
|
}
|
|
5713
5713
|
function parseYearMonthOnly(e) {
|
|
5714
5714
|
const n = Ba.exec(e);
|
|
@@ -5717,7 +5717,7 @@ function parseYearMonthOnly(e) {
|
|
|
5717
5717
|
isoMonth: parseInt(e[4]),
|
|
5718
5718
|
isoDay: 1,
|
|
5719
5719
|
...organizeAnnotationParts(e[5])
|
|
5720
|
-
}))(n) :
|
|
5720
|
+
}))(n) : void 0;
|
|
5721
5721
|
}
|
|
5722
5722
|
function parseMonthDayOnly(e) {
|
|
5723
5723
|
const n = ka.exec(e);
|
|
@@ -5726,7 +5726,7 @@ function parseMonthDayOnly(e) {
|
|
|
5726
5726
|
isoMonth: parseInt(e[1]),
|
|
5727
5727
|
isoDay: parseInt(e[2]),
|
|
5728
5728
|
...organizeAnnotationParts(e[3])
|
|
5729
|
-
}))(n) :
|
|
5729
|
+
}))(n) : void 0;
|
|
5730
5730
|
}
|
|
5731
5731
|
function parseOffsetNanoMaybe(e, n) {
|
|
5732
5732
|
const t = Za.exec(e);
|
|
@@ -5736,7 +5736,7 @@ function parseOffsetNanoMaybe(e, n) {
|
|
|
5736
5736
|
throw new RangeError(invalidSubstring(t));
|
|
5737
5737
|
}
|
|
5738
5738
|
return ae((parseInt0(e[2]) * Kr + parseInt0(e[3]) * Jr + parseInt0(e[4]) * _r + parseSubsecNano(e[5] || "")) * parseSign(e[1]));
|
|
5739
|
-
})(t, n) :
|
|
5739
|
+
})(t, n) : void 0;
|
|
5740
5740
|
}
|
|
5741
5741
|
function organizeIsoYearParts(e) {
|
|
5742
5742
|
const n = parseSign(e[1]),
|
|
@@ -5792,7 +5792,7 @@ function parseSign(e) {
|
|
|
5792
5792
|
return e && "+" !== e ? -1 : 1;
|
|
5793
5793
|
}
|
|
5794
5794
|
function parseInt0(e) {
|
|
5795
|
-
return
|
|
5795
|
+
return void 0 === e ? 0 : parseInt(e);
|
|
5796
5796
|
}
|
|
5797
5797
|
function Me(e) {
|
|
5798
5798
|
return ye(m(e));
|
|
@@ -5812,7 +5812,7 @@ function getTimeZoneAtomic(e) {
|
|
|
5812
5812
|
}
|
|
5813
5813
|
function getTimeZoneEssence(e) {
|
|
5814
5814
|
const n = parseOffsetNanoMaybe(e = e.toUpperCase(), 1);
|
|
5815
|
-
return
|
|
5815
|
+
return void 0 !== n ? n : e !== Ta ? qa(e) : void 0;
|
|
5816
5816
|
}
|
|
5817
5817
|
function Ze(e, n) {
|
|
5818
5818
|
return te(e.epochNanoseconds, n.epochNanoseconds);
|
|
@@ -6094,7 +6094,7 @@ function parseIntlYear(e, n) {
|
|
|
6094
6094
|
r = parseIntlPartsYear(e);
|
|
6095
6095
|
if (e.era) {
|
|
6096
6096
|
const i = Di[n];
|
|
6097
|
-
|
|
6097
|
+
void 0 !== i && (t = "islamic" === n ? "ah" : e.era.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g, ""), "bc" === t || "b" === t ? t = "bce" : "ad" !== t && "a" !== t || (t = "ce"), o = r, r = eraYearToYear(o, i[t] || 0));
|
|
6098
6098
|
}
|
|
6099
6099
|
return {
|
|
6100
6100
|
era: t,
|
|
@@ -6203,7 +6203,7 @@ function getCalendarIdBase(e) {
|
|
|
6203
6203
|
}
|
|
6204
6204
|
function Qt(e, n, t, o) {
|
|
6205
6205
|
const r = refineCalendarFields(t, o, en, [], ri);
|
|
6206
|
-
if (
|
|
6206
|
+
if (void 0 !== r.timeZone) {
|
|
6207
6207
|
const o = t.dateFromFields(r),
|
|
6208
6208
|
i = refineTimeBag(r),
|
|
6209
6209
|
a = e(r.timeZone);
|
|
@@ -6211,7 +6211,7 @@ function Qt(e, n, t, o) {
|
|
|
6211
6211
|
epochNanoseconds: getMatchingInstantFor(n(a), {
|
|
6212
6212
|
...o,
|
|
6213
6213
|
...i
|
|
6214
|
-
},
|
|
6214
|
+
}, void 0 !== r.offset ? parseOffsetNano(r.offset) : void 0),
|
|
6215
6215
|
timeZone: a
|
|
6216
6216
|
};
|
|
6217
6217
|
}
|
|
@@ -6229,7 +6229,7 @@ function jn(e, n, t, o, r, i) {
|
|
|
6229
6229
|
return Yn(getMatchingInstantFor(n(s), {
|
|
6230
6230
|
...f,
|
|
6231
6231
|
...d
|
|
6232
|
-
},
|
|
6232
|
+
}, void 0 !== a.offset ? parseOffsetNano(a.offset) : void 0, u, l), s, o);
|
|
6233
6233
|
}
|
|
6234
6234
|
function Pt(e, n, t) {
|
|
6235
6235
|
const o = refineCalendarFields(e, n, en, [], w),
|
|
@@ -6251,7 +6251,7 @@ function nt(e, n, t, o) {
|
|
|
6251
6251
|
function K(e, n, t, o) {
|
|
6252
6252
|
let r = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : [];
|
|
6253
6253
|
const i = refineCalendarFields(e, t, en, r);
|
|
6254
|
-
return n &&
|
|
6254
|
+
return n && void 0 !== i.month && void 0 === i.monthCode && void 0 === i.year && (i.year = ji), e.monthDayFromFields(i, o);
|
|
6255
6255
|
}
|
|
6256
6256
|
function Ue(e, n) {
|
|
6257
6257
|
const t = H(n);
|
|
@@ -6282,7 +6282,7 @@ function refineFields(e, n, t) {
|
|
|
6282
6282
|
throw new RangeError(tn(o));
|
|
6283
6283
|
}
|
|
6284
6284
|
let n = e[o];
|
|
6285
|
-
if (
|
|
6285
|
+
if (void 0 !== n) {
|
|
6286
6286
|
a = 1, Ga[o] && (n = Ga[o](n, o)), r[o] = n;
|
|
6287
6287
|
} else if (t) {
|
|
6288
6288
|
if (t.includes(o)) {
|
|
@@ -6394,23 +6394,23 @@ function refineYear(e, n) {
|
|
|
6394
6394
|
year: r
|
|
6395
6395
|
} = n;
|
|
6396
6396
|
const i = getCalendarEraOrigins(e);
|
|
6397
|
-
if (
|
|
6398
|
-
if (
|
|
6397
|
+
if (void 0 !== t || void 0 !== o) {
|
|
6398
|
+
if (void 0 === t || void 0 === o) {
|
|
6399
6399
|
throw new TypeError(Dr);
|
|
6400
6400
|
}
|
|
6401
6401
|
if (!i) {
|
|
6402
6402
|
throw new RangeError(gr);
|
|
6403
6403
|
}
|
|
6404
6404
|
const e = i[t];
|
|
6405
|
-
if (
|
|
6405
|
+
if (void 0 === e) {
|
|
6406
6406
|
throw new RangeError(invalidEra(t));
|
|
6407
6407
|
}
|
|
6408
6408
|
const n = eraYearToYear(o, e);
|
|
6409
|
-
if (
|
|
6409
|
+
if (void 0 !== r && r !== n) {
|
|
6410
6410
|
throw new RangeError(Ir);
|
|
6411
6411
|
}
|
|
6412
6412
|
r = n;
|
|
6413
|
-
} else if (
|
|
6413
|
+
} else if (void 0 === r) {
|
|
6414
6414
|
throw new TypeError(missingYear(i));
|
|
6415
6415
|
}
|
|
6416
6416
|
return r;
|
|
@@ -6420,21 +6420,21 @@ function refineMonth(e, n, t, o) {
|
|
|
6420
6420
|
month: r,
|
|
6421
6421
|
monthCode: i
|
|
6422
6422
|
} = n;
|
|
6423
|
-
if (
|
|
6423
|
+
if (void 0 !== i) {
|
|
6424
6424
|
const n = ((e, n, t, o) => {
|
|
6425
6425
|
const r = e.U(t),
|
|
6426
6426
|
[i, a] = parseMonthCode(n);
|
|
6427
6427
|
let s = monthCodeNumberToMonth(i, a, r);
|
|
6428
6428
|
if (a) {
|
|
6429
6429
|
const n = getCalendarLeapMonthMeta(e);
|
|
6430
|
-
if (
|
|
6430
|
+
if (void 0 === n) {
|
|
6431
6431
|
throw new RangeError(Pr);
|
|
6432
6432
|
}
|
|
6433
6433
|
if (n > 0) {
|
|
6434
6434
|
if (s > n) {
|
|
6435
6435
|
throw new RangeError(Pr);
|
|
6436
6436
|
}
|
|
6437
|
-
if (
|
|
6437
|
+
if (void 0 === r) {
|
|
6438
6438
|
if (1 === o) {
|
|
6439
6439
|
throw new RangeError(Pr);
|
|
6440
6440
|
}
|
|
@@ -6444,18 +6444,18 @@ function refineMonth(e, n, t, o) {
|
|
|
6444
6444
|
if (s !== -n) {
|
|
6445
6445
|
throw new RangeError(Pr);
|
|
6446
6446
|
}
|
|
6447
|
-
if (
|
|
6447
|
+
if (void 0 === r && 1 === o) {
|
|
6448
6448
|
throw new RangeError(Pr);
|
|
6449
6449
|
}
|
|
6450
6450
|
}
|
|
6451
6451
|
}
|
|
6452
6452
|
return s;
|
|
6453
6453
|
})(e, i, t, o);
|
|
6454
|
-
if (
|
|
6454
|
+
if (void 0 !== r && r !== n) {
|
|
6455
6455
|
throw new RangeError(Mr);
|
|
6456
6456
|
}
|
|
6457
6457
|
r = n, o = 1;
|
|
6458
|
-
} else if (
|
|
6458
|
+
} else if (void 0 === r) {
|
|
6459
6459
|
throw new TypeError(Nr);
|
|
6460
6460
|
}
|
|
6461
6461
|
return clampEntity("month", r, 1, e.L(t), o);
|
|
@@ -6467,7 +6467,7 @@ function spliceFields(e, n, t, o) {
|
|
|
6467
6467
|
let r = 0;
|
|
6468
6468
|
const i = [];
|
|
6469
6469
|
for (const e of t) {
|
|
6470
|
-
|
|
6470
|
+
void 0 !== n[e] ? r = 1 : i.push(e);
|
|
6471
6471
|
}
|
|
6472
6472
|
if (Object.assign(e, n), r) {
|
|
6473
6473
|
for (const n of o || i) {
|
|
@@ -6588,7 +6588,7 @@ function Ot(e, n, t) {
|
|
|
6588
6588
|
function vt(e, n, t, o, r) {
|
|
6589
6589
|
const i = e(r.timeZone),
|
|
6590
6590
|
a = r.plainTime,
|
|
6591
|
-
s =
|
|
6591
|
+
s = void 0 !== a ? n(a) : Dt;
|
|
6592
6592
|
return Yn(we(t(i), {
|
|
6593
6593
|
...o,
|
|
6594
6594
|
...s
|
|
@@ -6730,7 +6730,7 @@ function e(e) {
|
|
|
6730
6730
|
}
|
|
6731
6731
|
function qn(e, n, t, o) {
|
|
6732
6732
|
if (t = o(t), e) {
|
|
6733
|
-
if (
|
|
6733
|
+
if (void 0 !== t.timeZone) {
|
|
6734
6734
|
throw new TypeError(Lr);
|
|
6735
6735
|
}
|
|
6736
6736
|
t.timeZone = e;
|
|
@@ -7033,7 +7033,7 @@ class IntlTimeZone {
|
|
|
7033
7033
|
}
|
|
7034
7034
|
function pinch(n, t, o, r) {
|
|
7035
7035
|
let i, a;
|
|
7036
|
-
for (; (
|
|
7036
|
+
for (; (void 0 === r || void 0 === (i = r < n[0] ? t : r >= n[1] ? o : void 0)) && (a = n[1] - n[0]);) {
|
|
7037
7037
|
const t = n[0] + Math.floor(a / 2);
|
|
7038
7038
|
e(t) === o ? n[1] = t : n[0] = t + 1;
|
|
7039
7039
|
}
|
|
@@ -7092,7 +7092,7 @@ class IntlTimeZone {
|
|
|
7092
7092
|
l(e, n) {
|
|
7093
7093
|
const [t, o] = epochNanoToSecMod(e),
|
|
7094
7094
|
r = this.$.l(t + (n > 0 || o ? 1 : 0), n);
|
|
7095
|
-
if (
|
|
7095
|
+
if (void 0 !== r) {
|
|
7096
7096
|
return he(r, _r);
|
|
7097
7097
|
}
|
|
7098
7098
|
}
|
|
@@ -7244,18 +7244,18 @@ const Pa = "([+−-])",
|
|
|
7244
7244
|
month: a
|
|
7245
7245
|
} = e;
|
|
7246
7246
|
let s, c, u, l, f;
|
|
7247
|
-
if (
|
|
7247
|
+
if (void 0 !== r) {
|
|
7248
7248
|
[s, c] = parseMonthCode(r), f = getDefinedProp(e, "day");
|
|
7249
7249
|
const n = this.N(s, c, f);
|
|
7250
7250
|
if (!n) {
|
|
7251
7251
|
throw new RangeError(yr);
|
|
7252
7252
|
}
|
|
7253
|
-
if ([u, l] = n,
|
|
7253
|
+
if ([u, l] = n, void 0 !== a && a !== l) {
|
|
7254
7254
|
throw new RangeError(Mr);
|
|
7255
7255
|
}
|
|
7256
|
-
o && (l = clampEntity("month", l, 1, xi, 1), f = clampEntity("day", f, 1, computeIsoDaysInMonth(
|
|
7256
|
+
o && (l = clampEntity("month", l, 1, xi, 1), f = clampEntity("day", f, 1, computeIsoDaysInMonth(void 0 !== i ? i : u, l), t));
|
|
7257
7257
|
} else {
|
|
7258
|
-
u =
|
|
7258
|
+
u = void 0 === i && o ? ji : refineYear(this, e), l = refineMonth(this, e, u, t), f = refineDay(this, e, l, u, t);
|
|
7259
7259
|
const n = this.U(u);
|
|
7260
7260
|
c = l === n, s = monthToMonthCodeNumber(l, n);
|
|
7261
7261
|
const r = this.N(s, c, f);
|
|
@@ -7559,7 +7559,7 @@ function createProtocolValidator(e) {
|
|
|
7559
7559
|
};
|
|
7560
7560
|
}
|
|
7561
7561
|
function rejectInvalidBag(e) {
|
|
7562
|
-
if (no(e) ||
|
|
7562
|
+
if (no(e) || void 0 !== e.calendar || void 0 !== e.timeZone) {
|
|
7563
7563
|
throw new TypeError(Z);
|
|
7564
7564
|
}
|
|
7565
7565
|
return e;
|
|
@@ -7676,7 +7676,7 @@ function toPlainTimeSlots(e, t) {
|
|
|
7676
7676
|
return H(t), ze(e);
|
|
7677
7677
|
}
|
|
7678
7678
|
function optionalToPlainTimeFields(e) {
|
|
7679
|
-
return
|
|
7679
|
+
return void 0 === e ? void 0 : toPlainTimeSlots(e);
|
|
7680
7680
|
}
|
|
7681
7681
|
function toPlainYearMonthSlots(e, t) {
|
|
7682
7682
|
if (t = U(t), z(e)) {
|
|
@@ -7742,7 +7742,7 @@ function toDurationSlots(e) {
|
|
|
7742
7742
|
return Kt(e);
|
|
7743
7743
|
}
|
|
7744
7744
|
function refinePublicRelativeTo(e) {
|
|
7745
|
-
if (
|
|
7745
|
+
if (void 0 !== e) {
|
|
7746
7746
|
if (z(e)) {
|
|
7747
7747
|
const t = no(e) || {};
|
|
7748
7748
|
switch (t.branding) {
|
|
@@ -7768,7 +7768,7 @@ function extractCalendarSlotFromBag(e) {
|
|
|
7768
7768
|
const {
|
|
7769
7769
|
calendar: t
|
|
7770
7770
|
} = e;
|
|
7771
|
-
if (
|
|
7771
|
+
if (void 0 !== t) {
|
|
7772
7772
|
return refineCalendarSlot(t);
|
|
7773
7773
|
}
|
|
7774
7774
|
}
|
|
@@ -10410,8 +10410,8 @@ function reformatTimeStr(timeStr, suffix, options) {
|
|
|
10410
10410
|
var _a;
|
|
10411
10411
|
if (typeof timeStr !== 'string')
|
|
10412
10412
|
throw new TypeError(`Bad timeStr: ${timeStr}`);
|
|
10413
|
-
const cc = ((_a = options === null || options ===
|
|
10414
|
-
const hour12 = options === null || options ===
|
|
10413
|
+
const cc = ((_a = options === null || options === void 0 ? void 0 : options.location) === null || _a === void 0 ? void 0 : _a.getCountryCode()) || ((options === null || options === void 0 ? void 0 : options.il) ? 'IL' : 'US');
|
|
10414
|
+
const hour12 = options === null || options === void 0 ? void 0 : options.hour12;
|
|
10415
10415
|
if (typeof hour12 !== 'undefined' && !hour12) {
|
|
10416
10416
|
return timeStr;
|
|
10417
10417
|
}
|
|
@@ -11552,7 +11552,7 @@ class Molad {
|
|
|
11552
11552
|
*/
|
|
11553
11553
|
render(locale, options) {
|
|
11554
11554
|
var _a;
|
|
11555
|
-
locale = locale !== null && locale !==
|
|
11555
|
+
locale = locale !== null && locale !== void 0 ? locale : Locale.getLocaleName();
|
|
11556
11556
|
if (typeof locale === 'string') {
|
|
11557
11557
|
locale = locale.toLowerCase();
|
|
11558
11558
|
}
|
|
@@ -11564,7 +11564,7 @@ class Molad {
|
|
|
11564
11564
|
const hour = this.getHour();
|
|
11565
11565
|
const chalakim = this.getChalakim();
|
|
11566
11566
|
const moladStr = Locale.gettext('Molad', locale);
|
|
11567
|
-
const minutesStr = (_a = Locale.lookupTranslation('min', locale)) !== null && _a !==
|
|
11567
|
+
const minutesStr = (_a = Locale.lookupTranslation('min', locale)) !== null && _a !== void 0 ? _a : 'minutes';
|
|
11568
11568
|
const chalakimStr = Locale.gettext('chalakim', locale);
|
|
11569
11569
|
if (isHebrewLocale) {
|
|
11570
11570
|
const ampm = getHebrewTimeOfDay(hour);
|
|
@@ -11634,7 +11634,7 @@ class OmerEvent extends Event {
|
|
|
11634
11634
|
* @param [locale] Optional locale name (defaults to active locale).
|
|
11635
11635
|
*/
|
|
11636
11636
|
render(locale) {
|
|
11637
|
-
locale = locale !== null && locale !==
|
|
11637
|
+
locale = locale !== null && locale !== void 0 ? locale : Locale.getLocaleName();
|
|
11638
11638
|
if (typeof locale === 'string') {
|
|
11639
11639
|
locale = locale.toLowerCase();
|
|
11640
11640
|
}
|
|
@@ -11670,7 +11670,7 @@ class OmerEvent extends Event {
|
|
|
11670
11670
|
* @param locale
|
|
11671
11671
|
*/
|
|
11672
11672
|
getTodayIs(locale) {
|
|
11673
|
-
locale = locale !== null && locale !==
|
|
11673
|
+
locale = locale !== null && locale !== void 0 ? locale : Locale.getLocaleName();
|
|
11674
11674
|
if (typeof locale === 'string') {
|
|
11675
11675
|
locale = locale.toLowerCase();
|
|
11676
11676
|
}
|
|
@@ -11688,7 +11688,7 @@ class OmerEvent extends Event {
|
|
|
11688
11688
|
|
|
11689
11689
|
/** @private */
|
|
11690
11690
|
function renderParshaName(parsha, locale) {
|
|
11691
|
-
const locale0 = locale !== null && locale !==
|
|
11691
|
+
const locale0 = locale !== null && locale !== void 0 ? locale : Locale.getLocaleName();
|
|
11692
11692
|
let name = Locale.gettext(parsha[0], locale0);
|
|
11693
11693
|
if (parsha.length === 2) {
|
|
11694
11694
|
const hyphen = locale0 === 'he' ? '־' : '-';
|
|
@@ -13449,9 +13449,13 @@ function calendar(options = {}) {
|
|
|
13449
13449
|
}
|
|
13450
13450
|
}
|
|
13451
13451
|
const dailyLearning = options.dailyLearning;
|
|
13452
|
+
let numDailyLearning = 0;
|
|
13452
13453
|
if (typeof dailyLearning === 'object') {
|
|
13453
13454
|
const events = makeDailyLearning(hd, dailyLearning, il);
|
|
13454
|
-
|
|
13455
|
+
numDailyLearning = events.length;
|
|
13456
|
+
if (numDailyLearning) {
|
|
13457
|
+
evts.push(...events);
|
|
13458
|
+
}
|
|
13455
13459
|
}
|
|
13456
13460
|
if (options.omer && abs >= beginOmer && abs <= endOmer) {
|
|
13457
13461
|
const omer = abs - beginOmer + 1;
|
|
@@ -13479,7 +13483,8 @@ function calendar(options = {}) {
|
|
|
13479
13483
|
evts.push(candlesEv);
|
|
13480
13484
|
}
|
|
13481
13485
|
if (options.addHebrewDates ||
|
|
13482
|
-
(options.addHebrewDatesForEvents &&
|
|
13486
|
+
(options.addHebrewDatesForEvents &&
|
|
13487
|
+
prevEventsLength !== evts.length - numDailyLearning)) {
|
|
13483
13488
|
const e2 = new HebrewDateEvent(hd);
|
|
13484
13489
|
if (prevEventsLength === evts.length) {
|
|
13485
13490
|
evts.push(e2);
|
|
@@ -13668,7 +13673,7 @@ function getMaskFromOptions(options) {
|
|
|
13668
13673
|
if (typeof options.mask === 'number') {
|
|
13669
13674
|
return setOptionsFromMask(options);
|
|
13670
13675
|
}
|
|
13671
|
-
const il = options.il || ((_a = options.location) === null || _a ===
|
|
13676
|
+
const il = options.il || ((_a = options.location) === null || _a === void 0 ? void 0 : _a.getIsrael()) || false;
|
|
13672
13677
|
let mask = 0;
|
|
13673
13678
|
// default options
|
|
13674
13679
|
if (!options.noHolidays) {
|