@hebcal/leyning 9.0.6 → 9.1.0
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 +68 -26
- package/dist/bundle.min.js +14 -14
- package/dist/esm/aliyot.json.js +1 -1
- package/dist/esm/clone.js +1 -1
- package/dist/esm/common.d.ts +18 -0
- package/dist/esm/common.js +54 -17
- package/dist/esm/csv.js +1 -1
- package/dist/esm/festival.js +1 -1
- package/dist/esm/getLeyningForHoliday.js +1 -1
- package/dist/esm/getLeyningKeyForEvent.js +1 -1
- package/dist/esm/getLeyningOnDate.js +1 -1
- package/dist/esm/he.po.js +1 -1
- package/dist/esm/holiday-readings.json.js +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/leyning.js +1 -1
- package/dist/esm/locale.js +1 -1
- package/dist/esm/numverses.json.js +2 -2
- package/dist/esm/specialReadings.js +1 -1
- package/dist/esm/summary.js +1 -1
- package/package.json +9 -9
package/dist/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/leyning v9.0
|
|
1
|
+
/*! @hebcal/leyning v9.1.0 */
|
|
2
2
|
var hebcal__leyning = (function (exports, locale, event, holidays, sedra, ParshaEvent) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -17,7 +17,7 @@ const poHeNoNikud$1 = {
|
|
|
17
17
|
};
|
|
18
18
|
locale.Locale.addTranslations('he-x-NoNikud', poHeNoNikud$1);
|
|
19
19
|
|
|
20
|
-
const Genesis=[0,31,25,24,26,32,22,24,22,29,32,32,20,18,24,21,16,27,33,38,18,34,24,20,67,34,35,46,22,35,43,54,33,20,31,29,43,36,30,23,23,57,38,34,34,28,34,31,22,33,26];const Exodus=[0,22,25,22,31,23,30,29,28,35,29,10,51,22,31,27,36,16,27,25,
|
|
20
|
+
const Genesis=[0,31,25,24,26,32,22,24,22,29,32,32,20,18,24,21,16,27,33,38,18,34,24,20,67,34,35,46,22,35,43,54,33,20,31,29,43,36,30,23,23,57,38,34,34,28,34,31,22,33,26];const Exodus=[0,22,25,22,31,23,30,29,28,35,29,10,51,22,31,27,36,16,27,25,23,37,30,33,18,40,37,21,43,46,38,18,35,23,35,35,38,29,31,43,38];const Leviticus=[0,17,16,17,35,26,23,38,36,24,20,47,8,59,57,33,34,16,30,37,27,24,33,44,23,55,46,34];const Numbers=[0,54,34,51,49,31,27,89,26,23,36,35,16,33,45,41,35,28,32,22,29,35,41,30,25,19,65,23,31,39,17,54,42,56,29,34,13];const Deuteronomy=[0,46,37,29,49,30,25,26,20,29,22,32,31,19,29,23,22,20,22,21,20,23,29,26,22,19,19,26,69,28,20,30,52,29,12];const Joshua=[0,18,24,17,24,15,27,26,35,27,43,23,24,33,15,63,10,18,28,51,9,45,34,16,33];const Judges=[0,36,23,31,24,31,40,25,35,57,18,40,15,25,20,20,31,13,31,30,48,25];const Ruth=[0,22,23,18,22];const Isaiah=[0,31,22,26,6,30,13,25,23,20,34,16,6,22,32,9,14,14,7,25,6,17,25,18,23,12,21,13,29,24,33,9,20,24,17,10,22,38,22,8,31,29,25,28,28,25,13,15,22,26,11,23,15,12,17,13,12,21,14,21,22,11,12,19,11,25,24];const Jeremiah=[0,19,37,25,31,31,30,34,23,25,25,23,17,27,22,21,21,27,23,15,18,14,30,40,10,38,24,22,17,32,24,40,44,26,22,19,32,21,28,18,16,18,22,13,30,5,28,7,47,39,46,64,34];const Lamentations=[0,22,22,66,22,22];const Baruch=[0,22,35,38,37,9,72];const Esther=[0,22,23,15,17,14,14,10,17,32,3];const Ecclesiastes=[0,18,26,22,17,19,12,29,17,18,20,10,14];const Ezekiel=[0,28,10,27,17,17,14,27,18,11,22,25,28,23,23,8,63,24,32,14,44,37,31,49,27,17,21,36,26,21,26,18,32,33,31,15,38,28,23,29,49,26,20,27,31,25,24,23,35];const Daniel=[0,21,49,100,34,30,29,28,27,27,21,45,13,64,42];const Hosea=[0,9,25,5,19,15,11,16,14,17,15,11,15,15,10];const Joel=[0,20,27,5,21];const Amos=[0,15,16,15,13,27,14,17,14,15];const Obadiah=[0,21];const Jonah=[0,16,11,10,11];const Micah=[0,16,13,12,14,14,16,20];const Nachum=[0,14,14,19];const Habakkuk=[0,17,20,19];const Zephaniah=[0,18,15,20];const Haggai=[0,15,23];const Zechariah=[0,17,17,10,14,11,15,14,23,17,12,17,14,9,21];const Malachi=[0,14,17,24];var numverses = {Genesis:Genesis,Exodus:Exodus,Leviticus:Leviticus,Numbers:Numbers,Deuteronomy:Deuteronomy,Joshua:Joshua,Judges:Judges,Ruth:Ruth,"I Samuel":[0,28,36,21,22,12,21,17,22,27,27,15,25,23,52,35,23,58,30,24,42,16,23,28,23,43,25,12,25,11,31,13],"II Samuel":[0,27,32,39,12,25,23,29,18,13,19,27,31,39,33,37,23,29,32,44,26,22,51,39,25],"I Kings":[0,53,46,28,20,32,38,51,66,28,29,43,33,34,31,34,34,24,46,21,43,29,54],"II Kings":[0,18,25,27,44,27,33,20,29,37,36,20,22,25,29,38,20,41,37,37,21,26,20,37,20,30],Isaiah:Isaiah,Jeremiah:Jeremiah,Lamentations:Lamentations,Baruch:Baruch,Esther:Esther,Ecclesiastes:Ecclesiastes,"Song of Songs":[0,17,17,11,16,16,12,14,14],Ezekiel:Ezekiel,Daniel:Daniel,Hosea:Hosea,Joel:Joel,Amos:Amos,Obadiah:Obadiah,Jonah:Jonah,Micah:Micah,Nachum:Nachum,Habakkuk:Habakkuk,Zephaniah:Zephaniah,Haggai:Haggai,Zechariah:Zechariah,Malachi:Malachi};
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Names of the books of the Torah. BOOK[1] === 'Genesis'
|
|
@@ -64,28 +64,65 @@ function calculateNumVerses(aliyah) {
|
|
|
64
64
|
if (aliyah.v) {
|
|
65
65
|
return aliyah.v;
|
|
66
66
|
}
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
aliyah.v = subtractVerses(aliyah.k, aliyah.b, aliyah.e) + 1;
|
|
68
|
+
return aliyah.v;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Finds the number of verses between two locations in the same book.
|
|
72
|
+
* @param book The English name of the book (e.g. "Numbers")
|
|
73
|
+
* @param from The starting verse (e.g. "28:9")
|
|
74
|
+
* @param to The ending verse (e.g. "28:15")
|
|
75
|
+
* @returns The number of verses between the two locations, excluding the `to` verse.
|
|
76
|
+
*/
|
|
77
|
+
function subtractVerses(book, from, to) {
|
|
78
|
+
const chapVerseBegin = from.split(':');
|
|
79
|
+
const chapVerseEnd = to.split(':');
|
|
69
80
|
const c1 = parseInt(chapVerseBegin[0], 10);
|
|
70
81
|
const c2 = parseInt(chapVerseEnd[0], 10);
|
|
71
82
|
const v1 = parseInt(chapVerseBegin[1], 10);
|
|
72
83
|
const v2 = parseInt(chapVerseEnd[1], 10);
|
|
84
|
+
let result = 0;
|
|
73
85
|
if (c1 === c2) {
|
|
74
|
-
|
|
86
|
+
return v2 - v1;
|
|
75
87
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
throw new ReferenceError(`Can't find numverses for ${aliyah.k}`);
|
|
80
|
-
}
|
|
81
|
-
let total = numv[c1] - v1 + 1;
|
|
82
|
-
for (let chap = c1 + 1; chap < c2; chap++) {
|
|
83
|
-
total += numv[chap];
|
|
84
|
-
}
|
|
85
|
-
total += v2;
|
|
86
|
-
aliyah.v = total;
|
|
88
|
+
const numv = NUM_VERSES[book];
|
|
89
|
+
if (typeof numv !== 'object' || !numv.length) {
|
|
90
|
+
throw new ReferenceError(`Can't find numverses for ${book}`);
|
|
87
91
|
}
|
|
88
|
-
|
|
92
|
+
let total = numv[c1] - v1;
|
|
93
|
+
for (let chap = c1 + 1; chap < c2; chap++) {
|
|
94
|
+
total += numv[chap];
|
|
95
|
+
}
|
|
96
|
+
total += v2;
|
|
97
|
+
result = total;
|
|
98
|
+
return result;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Calculates the next verse after adding a number of verses to a given location.
|
|
102
|
+
* @param book The English name of the book (e.g. "Numbers")
|
|
103
|
+
* @param from The starting verse (e.g. "28:9")
|
|
104
|
+
* @param numVerses The number of verses to add; must be nonnegative.
|
|
105
|
+
* @returns The next verse after adding the specified number of verses,
|
|
106
|
+
* or null if the resulting verse exceeds the number of verses
|
|
107
|
+
* in the book.
|
|
108
|
+
*/
|
|
109
|
+
function addVerses(book, from, numVerses) {
|
|
110
|
+
const chapVerseBegin = from.split(':');
|
|
111
|
+
const c1 = parseInt(chapVerseBegin[0], 10);
|
|
112
|
+
const v1 = parseInt(chapVerseBegin[1], 10);
|
|
113
|
+
const numv = NUM_VERSES[book];
|
|
114
|
+
if (typeof numv !== 'object' || !numv.length) {
|
|
115
|
+
throw new ReferenceError(`Can't find numverses for ${book}`);
|
|
116
|
+
}
|
|
117
|
+
let total = v1 + numVerses;
|
|
118
|
+
let c2 = c1;
|
|
119
|
+
while (total > numv[c2]) {
|
|
120
|
+
total -= numv[c2];
|
|
121
|
+
c2++;
|
|
122
|
+
if (!numv[c2])
|
|
123
|
+
return null;
|
|
124
|
+
}
|
|
125
|
+
return `${c2}:${total}`;
|
|
89
126
|
}
|
|
90
127
|
/**
|
|
91
128
|
* Formats an aliyah object like "Numbers 28:9-28:15"
|
|
@@ -254,7 +291,7 @@ function lookupFestival(holiday) {
|
|
|
254
291
|
return result;
|
|
255
292
|
}
|
|
256
293
|
|
|
257
|
-
/*! @hebcal/hdate v0.
|
|
294
|
+
/*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
258
295
|
/* eslint-disable @typescript-eslint/no-namespace, no-inner-declarations */
|
|
259
296
|
/** @private */
|
|
260
297
|
const lengths = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
@@ -343,6 +380,9 @@ function greg2abs(date) {
|
|
|
343
380
|
if (!isDate(date)) {
|
|
344
381
|
throw new TypeError(`not a Date: ${date}`);
|
|
345
382
|
}
|
|
383
|
+
else if (isNaN(date.getTime())) {
|
|
384
|
+
throw new RangeError('Invalid Date');
|
|
385
|
+
}
|
|
346
386
|
const abs = toFixed(date.getFullYear(), date.getMonth() + 1, date.getDate());
|
|
347
387
|
/*
|
|
348
388
|
if (abs < ABS_14SEP1752 && abs > ABS_2SEP1752) {
|
|
@@ -371,7 +411,7 @@ function greg2abs(date) {
|
|
|
371
411
|
* const day = date.getDate(); // 13
|
|
372
412
|
*/
|
|
373
413
|
function abs2greg(abs) {
|
|
374
|
-
if (typeof abs !== 'number') {
|
|
414
|
+
if (typeof abs !== 'number' || isNaN(abs)) {
|
|
375
415
|
throw new TypeError(`not a Number: ${abs}`);
|
|
376
416
|
}
|
|
377
417
|
abs = Math.trunc(abs);
|
|
@@ -392,7 +432,7 @@ function abs2greg(abs) {
|
|
|
392
432
|
return dt;
|
|
393
433
|
}
|
|
394
434
|
|
|
395
|
-
/*! @hebcal/hdate v0.
|
|
435
|
+
/*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
396
436
|
|
|
397
437
|
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-namespace */
|
|
398
438
|
/**
|
|
@@ -407,7 +447,7 @@ greg.greg2abs = greg2abs;
|
|
|
407
447
|
greg.isDate = isDate;
|
|
408
448
|
greg.isLeapYear = isGregLeapYear;
|
|
409
449
|
|
|
410
|
-
/*! @hebcal/hdate v0.
|
|
450
|
+
/*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
411
451
|
/*
|
|
412
452
|
* More minimal HDate
|
|
413
453
|
*/
|
|
@@ -773,7 +813,7 @@ function monthFromName(monthName) {
|
|
|
773
813
|
throw new RangeError(`bad monthName: ${monthName}`);
|
|
774
814
|
}
|
|
775
815
|
|
|
776
|
-
/*! @hebcal/hdate v0.
|
|
816
|
+
/*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
777
817
|
const GERESH = '׳';
|
|
778
818
|
const GERSHAYIM = '״';
|
|
779
819
|
const heb2num = {
|
|
@@ -886,13 +926,13 @@ function gematriyaStrToNum(str) {
|
|
|
886
926
|
return num;
|
|
887
927
|
}
|
|
888
928
|
|
|
889
|
-
/*! @hebcal/hdate v0.
|
|
929
|
+
/*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
890
930
|
var poAshkenazi = { "headers": { "plural-forms": "nplurals=2; plural=(n > 1);", "language": "en_CA@ashkenazi" }, "contexts": { "": { "Tevet": ["Teves"] } } };
|
|
891
931
|
|
|
892
|
-
/*! @hebcal/hdate v0.
|
|
932
|
+
/*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
893
933
|
var poHe = { "headers": { "plural-forms": "nplurals=2; plural=(n > 1);", "language": "he" }, "contexts": { "": { "Adar": ["אַדָר"], "Adar I": ["אַדָר א׳"], "Adar II": ["אַדָר ב׳"], "Av": ["אָב"], "Cheshvan": ["חֶשְׁוָן"], "Elul": ["אֱלוּל"], "Iyyar": ["אִיָיר"], "Kislev": ["כִּסְלֵו"], "Nisan": ["נִיסָן"], "Sh'vat": ["שְׁבָט"], "Sivan": ["סִיוָן"], "Tamuz": ["תַּמּוּז"], "Tevet": ["טֵבֵת"], "Tishrei": ["תִּשְׁרֵי"] } } };
|
|
894
934
|
|
|
895
|
-
/*! @hebcal/hdate v0.
|
|
935
|
+
/*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
896
936
|
|
|
897
937
|
const noopLocale = {
|
|
898
938
|
headers: { 'plural-forms': 'nplurals=2; plural=(n!=1);' },
|
|
@@ -1102,7 +1142,7 @@ const poHeNoNikud = {
|
|
|
1102
1142
|
};
|
|
1103
1143
|
Locale.addLocale('he-x-NoNikud', poHeNoNikud);
|
|
1104
1144
|
|
|
1105
|
-
/*! @hebcal/hdate v0.
|
|
1145
|
+
/*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
1106
1146
|
|
|
1107
1147
|
/*
|
|
1108
1148
|
Hebcal - A Jewish Calendar Generator
|
|
@@ -2549,6 +2589,7 @@ get: function () { return locale.Locale; }
|
|
|
2549
2589
|
});
|
|
2550
2590
|
exports.BOOK = BOOK;
|
|
2551
2591
|
exports.NUM_VERSES = NUM_VERSES;
|
|
2592
|
+
exports.addVerses = addVerses;
|
|
2552
2593
|
exports.calculateNumVerses = calculateNumVerses;
|
|
2553
2594
|
exports.clone = clone;
|
|
2554
2595
|
exports.cloneHaftara = cloneHaftara;
|
|
@@ -2570,6 +2611,7 @@ exports.makeLeyningSummary = makeLeyningSummary;
|
|
|
2570
2611
|
exports.makeSummaryFromParts = makeSummaryFromParts;
|
|
2571
2612
|
exports.parshaToString = parshaToString;
|
|
2572
2613
|
exports.specialReadings2 = specialReadings2;
|
|
2614
|
+
exports.subtractVerses = subtractVerses;
|
|
2573
2615
|
exports.sumVerses = sumVerses;
|
|
2574
2616
|
|
|
2575
2617
|
return exports;
|
package/dist/bundle.min.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/*! @hebcal/leyning v9.0
|
|
2
|
-
var hebcal__leyning=function(e,a,t,h,r,o){"use strict";var n={headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"he_IL"},contexts:{"":{"Shabbat Machar Chodesh":["שַׁבָּת מָחָר חוֹדֶשׁ"],"Shabbat Rosh Chodesh":["שַׁבָּת רֹאשׁ חוֹדֶשׁ"],"Pesach I (on Shabbat)":["פֶּסַח יוֹם א׳ (בְּשַׁבָּת)"],"Pesach Chol ha-Moed Day 1":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם א׳"],"Pesach Chol ha-Moed Day 2":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ב׳"],"Pesach Chol ha-Moed Day 2 on Sunday":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ב׳ (בְּיוֹם רִאשׁוֹן)"],"Pesach Chol ha-Moed Day 3":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ג׳"],"Pesach Chol ha-Moed Day 3 on Monday":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ג׳ (בְּיוֹם שָׁנִי)"],"Pesach Chol ha-Moed Day 4":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ד׳"],"Pesach Chol ha-Moed Day 5":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ה׳"],"Pesach Shabbat Chol ha-Moed":["פֶּסַח שַׁבָּת חוֹל הַמּוֹעֵד"],"Pesach VII (on Shabbat)":["פֶּסַח ז׳ (בְּשַׁבָּת)"],"Pesach VIII (on Shabbat)":["פֶּסַח ח׳ (בְּשַׁבָּת)"],"Shavuot II (on Shabbat)":["שָׁבוּעוֹת יוֹם ב׳ (בְּשַׁבָּת)"],"Rosh Hashana I (on Shabbat)":["רֹאשׁ הַשָּׁנָה יוֹם א׳ (בְּשַׁבָּת)"],"Yom Kippur (on Shabbat)":["יוֹם כִּפּוּר (בְּשַׁבָּת)"],"Yom Kippur (Mincha, Traditional)":["יוֹם כִּפּוּר מִנחָה"],"Yom Kippur (Mincha, Alternate)":["יוֹם כִּפּוּר מִנחָה"],"Sukkot I (on Shabbat)":["סוּכּוֹת יוֹם א׳ (בְּשַׁבָּת)"],"Sukkot Chol ha-Moed Day 1":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם א׳"],"Sukkot Chol ha-Moed Day 2":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ב׳"],"Sukkot Chol ha-Moed Day 3":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ג׳"],"Sukkot Chol ha-Moed Day 4":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ד׳"],"Sukkot Chol ha-Moed Day 5":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ה׳"],"Sukkot Shabbat Chol ha-Moed":["סוּכּוֹת שַׁבָּת חוֹל הַמּוֹעֵד"],"Sukkot Final Day (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Shmini Atzeret (on Shabbat)":["שְׁמִינִי עֲצֶרֶת (בְּשַׁבָּת)"],"Chanukah Day 1":["חֲנוּכָּה יוֹם א׳"],"Chanukah Day 2":["חֲנוּכָּה יוֹם ב׳"],"Chanukah Day 3":["חֲנוּכָּה יוֹם ג׳"],"Chanukah Day 4":["חֲנוּכָּה יוֹם ד׳"],"Chanukah Day 5":["חֲנוּכָּה יוֹם ה׳"],"Chanukah Day 6":["חֲנוּכָּה יוֹם ו׳"],"Chanukah Day 7":["חֲנוּכָּה יוֹם ז׳"],"Chanukah Day 7 (on Rosh Chodesh)":["חֲנוּכָּה יוֹם ז׳ (רֹאשׁ חוֹדֶשׁ)"],"Chanukah Day 8":["חֲנוּכָּה יוֹם ח׳"],"Chanukah Day 1 (on Shabbat)":["חֲנוּכָּה יוֹם א׳ (בְּשַׁבָּת)"],"Chanukah Day 2 (on Shabbat)":["חֲנוּכָּה יוֹם ב׳ (בְּשַׁבָּת)"],"Chanukah Day 3 (on Shabbat)":["חֲנוּכָּה יוֹם ג׳ (בְּשַׁבָּת)"],"Chanukah Day 4 (on Shabbat)":["חֲנוּכָּה יוֹם ד׳ (בְּשַׁבָּת)"],"Chanukah Day 5 (on Shabbat)":["חֲנוּכָּה יוֹם ה׳ (בְּשַׁבָּת)"],"Chanukah Day 7 (on Shabbat)":["חֲנוּכָּה יוֹם ז׳ (בְּשַׁבָּת)"],"Chanukah Day 8 (on Shabbat)":["חֲנוּכָּה יוֹם ח׳ (בְּשַׁבָּת)"],"Shabbat Rosh Chodesh Chanukah":["שַׁבָּת רֹאשׁ חוֹדֶשׁ חֲנוּכָּה"],"Yom Kippur (Mincha)":["יוֹם כִּפּוּר מִנחָה"],"Tish'a B'Av (Mincha)":["תִּשְׁעָה בְּאָב מִנחָה"],"Asara B'Tevet (Mincha)":["עֲשָׂרָה בְּטֵבֵת מִנחָה"],"Ta'anit Bechorot (Mincha)":["תַּעֲנִית בְּכוֹרוֹת מִנחָה"],"Ta'anit Esther (Mincha)":["תַּעֲנִית אֶסְתֵּר מִנחָה"],"Tzom Gedaliah (Mincha)":["צוֹם גְּדַלְיָה מִנחָה"],"Tzom Tammuz (Mincha)":["צוֹם תָּמוּז מִנחָה"]}}};a.Locale.addTranslations("he",n),a.Locale.addTranslations("h",n);const s=n.contexts[""],i={};for(const[e,t]of Object.entries(s))i[e]=[a.Locale.hebrewStripNikkud(t[0])];const k={headers:n.headers,contexts:{"":i}};a.Locale.addTranslations("he-x-NoNikud",k);const b=["","Genesis","Exodus","Leviticus","Numbers","Deuteronomy"],l={Genesis:[0,31,25,24,26,32,22,24,22,29,32,32,20,18,24,21,16,27,33,38,18,34,24,20,67,34,35,46,22,35,43,54,33,20,31,29,43,36,30,23,23,57,38,34,34,28,34,31,22,33,26],Exodus:[0,22,25,22,31,23,30,29,28,35,29,10,51,22,31,27,36,16,27,25,26,37,30,33,18,40,37,21,43,46,38,18,35,23,35,35,38,29,31,43,38],Leviticus:[0,17,16,17,35,26,23,38,36,24,20,47,8,59,57,33,34,16,30,37,27,24,33,44,23,55,46,34],Numbers:[0,54,34,51,49,31,27,89,26,23,36,35,16,33,45,41,35,28,32,22,29,35,41,30,25,19,65,23,31,39,17,54,42,56,29,34,13],Deuteronomy:[0,46,37,29,49,30,25,26,20,29,22,32,31,19,29,23,22,20,22,21,20,23,29,26,22,19,19,26,69,28,20,30,52,29,12],Joshua:[0,18,24,17,24,15,27,26,35,27,43,23,24,33,15,63,10,18,28,51,9,45,34,16,33],Judges:[0,36,23,31,24,31,40,25,35,57,18,40,15,25,20,20,31,13,31,30,48,25],Ruth:[0,22,23,18,22],"I Samuel":[0,28,36,21,22,12,21,17,22,27,27,15,25,23,52,35,23,58,30,24,42,16,23,28,23,43,25,12,25,11,31,13],"II Samuel":[0,27,32,39,12,25,23,29,18,13,19,27,31,39,33,37,23,29,32,44,26,22,51,39,25],"I Kings":[0,53,46,28,20,32,38,51,66,28,29,43,33,34,31,34,34,24,46,21,43,29,54],"II Kings":[0,18,25,27,44,27,33,20,29,37,36,20,22,25,29,38,20,41,37,37,21,26,20,37,20,30],Isaiah:[0,31,22,26,6,30,13,25,23,20,34,16,6,22,32,9,14,14,7,25,6,17,25,18,23,12,21,13,29,24,33,9,20,24,17,10,22,38,22,8,31,29,25,28,28,25,13,15,22,26,11,23,15,12,17,13,12,21,14,21,22,11,12,19,11,25,24],Jeremiah:[0,19,37,25,31,31,30,34,23,25,25,23,17,27,22,21,21,27,23,15,18,14,30,40,10,38,24,22,17,32,24,40,44,26,22,19,32,21,28,18,16,18,22,13,30,5,28,7,47,39,46,64,34],Lamentations:[0,22,22,66,22,22],Baruch:[0,22,35,38,37,9,72],Esther:[0,22,23,15,17,14,14,10,17,32,3],Ecclesiastes:[0,18,26,22,17,19,12,29,17,18,20,10,14],"Song of Songs":[0,17,17,11,16,16,12,14,14],Ezekiel:[0,28,10,27,17,17,14,27,18,11,22,25,28,23,23,8,63,24,32,14,44,37,31,49,27,17,21,36,26,21,26,18,32,33,31,15,38,28,23,29,49,26,20,27,31,25,24,23,35],Daniel:[0,21,49,100,34,30,29,28,27,27,21,45,13,64,42],Hosea:[0,9,25,5,19,15,11,16,14,17,15,11,15,15,10],Joel:[0,20,27,5,21],Amos:[0,15,16,15,13,27,14,17,14,15],Obadiah:[0,21],Jonah:[0,16,11,10,11],Micah:[0,16,13,12,14,14,16,20],Nachum:[0,14,14,19],Habakkuk:[0,17,20,19],Zephaniah:[0,18,15,20],Haggai:[0,15,23],Zechariah:[0,17,17,10,14,11,15,14,23,17,12,17,14,9,21],Malachi:[0,14,17,24]};function u(e){if("string"==typeof e)return e;if(!Array.isArray(e)||0===e.length||e.length>2)throw new TypeError(`Bad parsha argument: ${e}`);let a=e[0];return 2===e.length&&(a+="-"+e[1]),a}function f(e){if(e.v)return e.v;const a=e.b.split(":"),t=e.e.split(":"),h=parseInt(a[0],10),r=parseInt(t[0],10),o=parseInt(a[1],10),n=parseInt(t[1],10);if(h===r)e.v=n-o+1;else if("string"==typeof e.k){const a=l[e.k];if("object"!=typeof a||!a.length)throw new ReferenceError(`Can't find numverses for ${e.k}`);let t=a[h]-o+1;for(let e=h+1;e<r;e++)t+=a[e];t+=n,e.v=t}return e.v}function c(e,a){const t=e.b,h=e.e,r=a?e.k+" ":"";if(t===h)return`${r}${t}`;const o=t.split(":"),n=h.split(":");return`${r}${t}-${o[0]===n[0]?n[1]:h}`}function p(e,a){const t=e.split(":").map((e=>+e)),h=a.split(":").map((e=>+e));return 100*t[0]+t[1]<100*h[0]+h[1]}function y(e){const a=Object.keys(e).filter((e=>{if(1===e.length)return!0;const a=e.charCodeAt(0);return a>=48&&a<=57}));let t=e[a[0]],h=t;const r=[];for(let o=0;o<a.length;o++){const n=e[a[o]];if(o===a.length-1&&n.k===h.k&&n.e===h.e)continue;const s=+h.e.split(":")[0],i=+n.b.split(":")[0],k=i===s||i===s+1;0===o||n.k===t.k&&!p(n.b,t.e)&&k||(r.push({k:t.k,b:t.b,e:h.e}),t=n),h=n}return r.push({k:t.k,b:t.b,e:h.e}),r}function m(e){Array.isArray(e)||(e=[e]);let a=e[0],t=c(a,!0);for(let h=1;h<e.length;h++){const r=e[h];r.k===a.k?t+=", ":t+=`; ${r.k} `,t+=c(r,!1),a=r}return t}function d(e){return JSON.parse(JSON.stringify(e))}function g(e){if(!e)return e;const a=d(e);return Array.isArray(a)?a.map(f):f(a),a}function M(e){return Array.isArray(e)?e.reduce(((e,a)=>e+a.v),0):e.v}const w={"Pesach I":{haft:[{k:"Joshua",b:"3:5",e:"3:7"},{k:"Joshua",b:"5:2",e:"6:1"},{k:"Joshua",b:"6:27",e:"6:27"}],seph:[{k:"Joshua",b:"5:2",e:"6:1"},{k:"Joshua",b:"6:27",e:"6:27"}],fullkriyah:{1:{p:15,k:2,b:"12:21",e:"12:24"},2:{p:15,k:2,b:"12:25",e:"12:28"},3:{p:15,k:2,b:"12:29",e:"12:36"},4:{p:15,k:2,b:"12:37",e:"12:42"},5:{p:15,k:2,b:"12:43",e:"12:51"},M:{p:41,k:4,b:"28:16",e:"28:25"}}},"Pesach I (on Shabbat)":{haft:[{k:"Joshua",b:"3:5",e:"3:7"},{k:"Joshua",b:"5:2",e:"6:1"},{k:"Joshua",b:"6:27",e:"6:27"}],seph:[{k:"Joshua",b:"5:2",e:"6:1"},{k:"Joshua",b:"6:27",e:"6:27"}],fullkriyah:{1:{p:15,k:2,b:"12:21",e:"12:24"},2:{p:15,k:2,b:"12:25",e:"12:28"},3:{p:15,k:2,b:"12:29",e:"12:32"},4:{p:15,k:2,b:"12:33",e:"12:36"},5:{p:15,k:2,b:"12:37",e:"12:42"},6:{p:15,k:2,b:"12:43",e:"12:47"},7:{p:15,k:2,b:"12:48",e:"12:51"},M:{p:41,k:4,b:"28:16",e:"28:25"}}},"Pesach II":{haft:[{k:"II Kings",b:"23:1",e:"23:9"},{k:"II Kings",b:"23:21",e:"23:25"}],fullkriyah:{1:{p:31,k:3,b:"22:26",e:"23:3"},2:{p:31,k:3,b:"23:4",e:"23:14"},3:{p:31,k:3,b:"23:15",e:"23:22"},4:{p:31,k:3,b:"23:23",e:"23:32"},5:{p:31,k:3,b:"23:33",e:"23:44"},M:{p:41,k:4,b:"28:16",e:"28:25"}}},"Pesach II (CH''M)":{note:"Israel only - according to Vaani T'fillati Siddur Yisraeli",il:!0,fullkriyah:{1:{p:31,k:3,b:"22:26",e:"23:8"},2:{p:31,k:3,b:"23:9",e:"23:14"},3:{p:31,k:3,b:"23:15",e:"23:44"},4:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Chol ha-Moed Day 1":{fullkriyah:{1:{p:15,k:2,b:"13:1",e:"13:4"},2:{p:15,k:2,b:"13:5",e:"13:10"},3:{p:15,k:2,b:"13:11",e:"13:16"},4:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Chol ha-Moed Day 2":{fullkriyah:{1:{p:18,k:2,b:"22:24",e:"22:26"},2:{p:18,k:2,b:"22:27",e:"23:5"},3:{p:18,k:2,b:"23:6",e:"23:19"},4:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Chol ha-Moed Day 3":{fullkriyah:{1:{p:21,k:2,b:"34:1",e:"34:10"},2:{p:21,k:2,b:"34:11",e:"34:17"},3:{p:21,k:2,b:"34:18",e:"34:26"},4:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Chol ha-Moed Day 4":{fullkriyah:{1:{p:36,k:4,b:"9:1",e:"9:5"},2:{p:36,k:4,b:"9:6",e:"9:8"},3:{p:36,k:4,b:"9:9",e:"9:14"},4:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Shabbat Chol ha-Moed":{megillah:"Song of Songs",haft:{k:"Ezekiel",b:"37:1",e:"37:14"},fullkriyah:{1:{p:21,k:2,b:"33:12",e:"33:16"},2:{p:21,k:2,b:"33:17",e:"33:19"},3:{p:21,k:2,b:"33:20",e:"33:23"},4:{p:21,k:2,b:"34:1",e:"34:3"},5:{p:21,k:2,b:"34:4",e:"34:10"},6:{p:21,k:2,b:"34:11",e:"34:17"},7:{p:21,k:2,b:"34:18",e:"34:26"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach VII":{haft:{k:"II Samuel",b:"22:1",e:"22:51"},fullkriyah:{1:{p:16,k:2,b:"13:17",e:"13:22"},2:{p:16,k:2,b:"14:1",e:"14:8"},3:{p:16,k:2,b:"14:9",e:"14:14"},4:{p:16,k:2,b:"14:15",e:"14:25"},5:{p:16,k:2,b:"14:26",e:"15:26"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach VII (on Shabbat)":{megillah:"Song of Songs",haft:{k:"II Samuel",b:"22:1",e:"22:51"},fullkriyah:{1:{p:16,k:2,b:"13:17",e:"13:19"},2:{p:16,k:2,b:"13:20",e:"13:22"},3:{p:16,k:2,b:"14:1",e:"14:4"},4:{p:16,k:2,b:"14:5",e:"14:8"},5:{p:16,k:2,b:"14:9",e:"14:14"},6:{p:16,k:2,b:"14:15",e:"14:25"},7:{p:16,k:2,b:"14:26",e:"15:26"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach VIII":{haft:{k:"Isaiah",b:"10:32",e:"12:6"},fullkriyah:{1:{p:47,k:5,b:"15:19",e:"15:23"},2:{p:47,k:5,b:"16:1",e:"16:3"},3:{p:47,k:5,b:"16:4",e:"16:8"},4:{p:47,k:5,b:"16:9",e:"16:12"},5:{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach VIII (on Shabbat)":{megillah:"Song of Songs",haft:{k:"Isaiah",b:"10:32",e:"12:6"},fullkriyah:{1:{p:47,k:5,b:"14:22",e:"14:29"},2:{p:47,k:5,b:"15:1",e:"15:18"},3:{p:47,k:5,b:"15:19",e:"15:23"},4:{p:47,k:5,b:"16:1",e:"16:3"},5:{p:47,k:5,b:"16:4",e:"16:8"},6:{p:47,k:5,b:"16:9",e:"16:12"},7:{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach III (CH''M)":{alias:!0,il:!0,key:"Pesach Chol ha-Moed Day 1"},"Pesach IV (CH''M)":{alias:!0,il:!0,key:"Pesach Chol ha-Moed Day 2"},"Pesach V (CH''M)":{alias:!0,il:!0,key:"Pesach Chol ha-Moed Day 3"},"Pesach VI (CH''M)":{alias:!0,il:!0,key:"Pesach Chol ha-Moed Day 4"},"Pesach Chol ha-Moed Day 2 on Sunday":{alias:!0,il:!1,key:"Pesach Chol ha-Moed Day 1"},"Pesach Chol ha-Moed Day 3 on Monday":{alias:!0,il:!1,key:"Pesach Chol ha-Moed Day 2"},Shavuot:{note:"Israel only",il:!0,megillah:"Ruth",haft:[{k:"Ezekiel",b:"1:1",e:"1:28"},{k:"Ezekiel",b:"3:12",e:"3:12"}],fullkriyah:{1:{p:17,k:2,b:"19:1",e:"19:6"},2:{p:17,k:2,b:"19:7",e:"19:13"},3:{p:17,k:2,b:"19:14",e:"19:19"},4:{p:17,k:2,b:"19:20",e:"20:14"},5:{p:17,k:2,b:"20:15",e:"20:23"},M:{p:41,k:4,b:"28:26",e:"28:31"}}},"Shavuot I":{haft:[{k:"Ezekiel",b:"1:1",e:"1:28"},{k:"Ezekiel",b:"3:12",e:"3:12"}],fullkriyah:{1:{p:17,k:2,b:"19:1",e:"19:6"},2:{p:17,k:2,b:"19:7",e:"19:13"},3:{p:17,k:2,b:"19:14",e:"19:19"},4:{p:17,k:2,b:"19:20",e:"20:14"},5:{p:17,k:2,b:"20:15",e:"20:23"},M:{p:41,k:4,b:"28:26",e:"28:31"}}},"Shavuot II":{megillah:"Ruth",haft:{k:"Habakkuk",b:"3:1",e:"3:19"},seph:{k:"Habakkuk",b:"2:20",e:"3:19"},fullkriyah:{1:{p:47,k:5,b:"15:19",e:"15:23"},2:{p:47,k:5,b:"16:1",e:"16:3"},3:{p:47,k:5,b:"16:4",e:"16:8"},4:{p:47,k:5,b:"16:9",e:"16:12"},5:{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"28:26",e:"28:31"}}},"Shavuot II (on Shabbat)":{megillah:"Ruth",haft:{k:"Habakkuk",b:"3:1",e:"3:19"},seph:{k:"Habakkuk",b:"2:20",e:"3:19"},fullkriyah:{1:{p:47,k:5,b:"14:22",e:"14:29"},2:{p:47,k:5,b:"15:1",e:"15:18"},3:{p:47,k:5,b:"15:19",e:"15:23"},4:{p:47,k:5,b:"16:1",e:"16:3"},5:{p:47,k:5,b:"16:4",e:"16:8"},6:{p:47,k:5,b:"16:9",e:"16:12"},7:{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"28:26",e:"28:31"}}},"Fast Day (Morning)":{fullkriyah:{1:{p:21,k:2,b:"32:11",e:"32:14"},2:{p:21,k:2,b:"34:1",e:"34:3"},3:{p:21,k:2,b:"34:4",e:"34:10"}}},"Fast Day (Afternoon)":{haft:{k:"Isaiah",b:"55:6",e:"56:8"},fullkriyah:{1:{p:21,k:2,b:"32:11",e:"32:14"},2:{p:21,k:2,b:"34:1",e:"34:3"},M:{p:21,k:2,b:"34:4",e:"34:10"}}},"Asara B'Tevet":{alias:!0,key:"Fast Day (Morning)"},"Ta'anit Esther":{alias:!0,key:"Fast Day (Morning)"},"Tzom Gedaliah":{alias:!0,key:"Fast Day (Morning)"},"Tzom Tammuz":{alias:!0,key:"Fast Day (Morning)"},"Asara B'Tevet (Mincha)":{alias:!0,key:"Fast Day (Afternoon)"},"Ta'anit Esther (Mincha)":{alias:!0,key:"Fast Day (Afternoon)"},"Tzom Gedaliah (Mincha)":{alias:!0,key:"Fast Day (Afternoon)"},"Tzom Tammuz (Mincha)":{alias:!0,key:"Fast Day (Afternoon)"},"Erev Tish'a B'Av":{megillah:"Lamentations"},"Tish'a B'Av":{haft:{k:"Jeremiah",b:"8:13",e:"9:23"},fullkriyah:{1:{p:45,k:5,b:"4:25",e:"4:29"},2:{p:45,k:5,b:"4:30",e:"4:35"},3:{p:45,k:5,b:"4:36",e:"4:40"}}},"Tish'a B'Av (Mincha)":{alias:!0,key:"Fast Day (Afternoon)"},"Rosh Hashana I":{haft:{k:"I Samuel",b:"1:1",e:"2:10"},fullkriyah:{1:{p:4,k:1,b:"21:1",e:"21:4"},2:{p:4,k:1,b:"21:5",e:"21:12"},3:{p:4,k:1,b:"21:13",e:"21:21"},4:{p:4,k:1,b:"21:22",e:"21:27"},5:{p:4,k:1,b:"21:28",e:"21:34"},M:{p:41,k:4,b:"29:1",e:"29:6"}}},"Rosh Hashana I (on Shabbat)":{haft:{k:"I Samuel",b:"1:1",e:"2:10"},fullkriyah:{1:{p:4,k:1,b:"21:1",e:"21:4"},2:{p:4,k:1,b:"21:5",e:"21:8"},3:{p:4,k:1,b:"21:9",e:"21:12"},4:{p:4,k:1,b:"21:13",e:"21:17"},5:{p:4,k:1,b:"21:18",e:"21:21"},6:{p:4,k:1,b:"21:22",e:"21:27"},7:{p:4,k:1,b:"21:28",e:"21:34"},M:{p:41,k:4,b:"29:1",e:"29:6"}}},"Rosh Hashana II":{haft:{k:"Jeremiah",b:"31:2",e:"31:20",note:"labeled 31:1–19 in some books"},fullkriyah:{1:{p:4,k:1,b:"22:1",e:"22:3"},2:{p:4,k:1,b:"22:4",e:"22:8"},3:{p:4,k:1,b:"22:9",e:"22:14"},4:{p:4,k:1,b:"22:15",e:"22:19"},5:{p:4,k:1,b:"22:20",e:"22:24"},M:{p:41,k:4,b:"29:1",e:"29:6"}}},"Yom Kippur":{haft:{k:"Isaiah",b:"57:14",e:"58:14"},fullkriyah:{1:{p:29,k:3,b:"16:1",e:"16:6"},2:{p:29,k:3,b:"16:7",e:"16:11"},3:{p:29,k:3,b:"16:12",e:"16:17"},4:{p:29,k:3,b:"16:18",e:"16:24"},5:{p:29,k:3,b:"16:25",e:"16:30"},6:{p:29,k:3,b:"16:31",e:"16:34"},M:{p:41,k:4,b:"29:7",e:"29:11"}}},"Yom Kippur (on Shabbat)":{haft:{k:"Isaiah",b:"57:14",e:"58:14"},fullkriyah:{1:{p:29,k:3,b:"16:1",e:"16:3"},2:{p:29,k:3,b:"16:4",e:"16:6"},3:{p:29,k:3,b:"16:7",e:"16:11"},4:{p:29,k:3,b:"16:12",e:"16:17"},5:{p:29,k:3,b:"16:18",e:"16:24"},6:{p:29,k:3,b:"16:25",e:"16:30"},7:{p:29,k:3,b:"16:31",e:"16:34"},M:{p:41,k:4,b:"29:7",e:"29:11"}}},"Yom Kippur (Mincha)":{alias:!0,key:"Yom Kippur (Mincha, Traditional)"},"Yom Kippur (Mincha, Traditional)":{haft:[{k:"Jonah",b:"1:1",e:"4:11"},{k:"Micah",b:"7:18",e:"7:20"}],fullkriyah:{1:{p:29,k:3,b:"18:1",e:"18:5"},2:{p:29,k:3,b:"18:6",e:"18:21"},M:{p:29,k:3,b:"18:22",e:"18:30"}}},"Yom Kippur (Mincha, Alternate)":{haft:[{k:"Jonah",b:"1:1",e:"4:11"},{k:"Micah",b:"7:18",e:"7:20"}],fullkriyah:{1:{p:30,k:3,b:"19:1",e:"19:4"},2:{p:30,k:3,b:"19:5",e:"19:10"},M:{p:30,k:3,b:"19:11",e:"19:18"}}},"Sukkot I":{haft:{k:"Zechariah",b:"14:1",e:"14:21"},fullkriyah:{1:{p:31,k:3,b:"22:26",e:"23:3"},2:{p:31,k:3,b:"23:4",e:"23:14"},3:{p:31,k:3,b:"23:15",e:"23:22"},4:{p:31,k:3,b:"23:23",e:"23:32"},5:{p:31,k:3,b:"23:33",e:"23:44"},M:{p:41,k:4,b:"29:12",e:"29:16"}}},"Sukkot I (on Shabbat)":{haft:{k:"Zechariah",b:"14:1",e:"14:21"},fullkriyah:{1:{p:31,k:3,b:"22:26",e:"22:33"},2:{p:31,k:3,b:"23:1",e:"23:3"},3:{p:31,k:3,b:"23:4",e:"23:8"},4:{p:31,k:3,b:"23:9",e:"23:14"},5:{p:31,k:3,b:"23:15",e:"23:22"},6:{p:31,k:3,b:"23:23",e:"23:32"},7:{p:31,k:3,b:"23:33",e:"23:44"},M:{p:41,k:4,b:"29:12",e:"29:16"}}},"Sukkot II":{haft:{k:"I Kings",b:"8:2",e:"8:21"},fullkriyah:{1:{p:31,k:3,b:"22:26",e:"23:3"},2:{p:31,k:3,b:"23:4",e:"23:14"},3:{p:31,k:3,b:"23:15",e:"23:22"},4:{p:31,k:3,b:"23:23",e:"23:32"},5:{p:31,k:3,b:"23:33",e:"23:44"},M:{p:41,k:4,b:"29:12",e:"29:16"}}},"Sukkot Chol ha-Moed Day 1":{fullkriyah:{1:{p:41,k:4,b:"29:17",e:"29:19"},2:{p:41,k:4,b:"29:20",e:"29:22"},3:{p:41,k:4,b:"29:23",e:"29:25"},4:{p:41,k:4,b:"29:17",e:"29:22"}}},"Sukkot Chol ha-Moed Day 2":{fullkriyah:{1:{p:41,k:4,b:"29:20",e:"29:22"},2:{p:41,k:4,b:"29:23",e:"29:25"},3:{p:41,k:4,b:"29:26",e:"29:28"},4:{p:41,k:4,b:"29:20",e:"29:25"}}},"Sukkot Chol ha-Moed Day 3":{fullkriyah:{1:{p:41,k:4,b:"29:23",e:"29:25"},2:{p:41,k:4,b:"29:26",e:"29:28"},3:{p:41,k:4,b:"29:29",e:"29:31"},4:{p:41,k:4,b:"29:23",e:"29:28"}}},"Sukkot Chol ha-Moed Day 4":{fullkriyah:{1:{p:41,k:4,b:"29:26",e:"29:28"},2:{p:41,k:4,b:"29:29",e:"29:31"},3:{p:41,k:4,b:"29:32",e:"29:34"},4:{p:41,k:4,b:"29:26",e:"29:31"}}},"Sukkot Chol ha-Moed Day 5":{fullkriyah:{1:{p:41,k:4,b:"29:29",e:"29:31"},2:{p:41,k:4,b:"29:32",e:"29:34"},3:{p:41,k:4,b:"29:35",e:"29:37"},4:{p:41,k:4,b:"29:29",e:"29:34"}}},"Sukkot Shabbat Chol ha-Moed":{megillah:"Ecclesiastes",haft:{k:"Ezekiel",b:"38:18",e:"39:16"},fullkriyah:{1:{p:21,k:2,b:"33:12",e:"33:16"},2:{p:21,k:2,b:"33:17",e:"33:19"},3:{p:21,k:2,b:"33:20",e:"33:23"},4:{p:21,k:2,b:"34:1",e:"34:3"},5:{p:21,k:2,b:"34:4",e:"34:10"},6:{p:21,k:2,b:"34:11",e:"34:17"},7:{p:21,k:2,b:"34:18",e:"34:26"},"M-day1":{p:41,k:4,b:"29:17",e:"29:22"},"M-day2":{p:41,k:4,b:"29:20",e:"29:25"},"M-day3":{p:41,k:4,b:"29:23",e:"29:28"},"M-day4":{p:41,k:4,b:"29:26",e:"29:31"},"M-day5":{p:41,k:4,b:"29:29",e:"29:34"}}},"Sukkot Final Day (Hoshana Raba)":{fullkriyah:{1:{p:41,k:4,b:"29:26",e:"29:28"},2:{p:41,k:4,b:"29:29",e:"29:31"},3:{p:41,k:4,b:"29:32",e:"29:34"},4:{p:41,k:4,b:"29:29",e:"29:34"}}},"Shmini Atzeret":{haft:{k:"I Kings",b:"8:54",e:"8:66"},fullkriyah:{1:{p:47,k:5,b:"14:22",e:"14:29"},2:{p:47,k:5,b:"15:1",e:"15:18"},3:{p:47,k:5,b:"15:19",e:"16:3"},4:{p:47,k:5,b:"16:4",e:"16:8"},5:{p:47,k:5,b:"16:9",e:"16:17"},M:{p:41,k:4,b:"29:35",e:"30:1"}}},"Shmini Atzeret (on Shabbat)":{megillah:"Ecclesiastes",haft:{k:"I Kings",b:"8:54",e:"8:66"},fullkriyah:{1:{p:47,k:5,b:"14:22",e:"14:29"},2:{p:47,k:5,b:"15:1",e:"15:18"},3:{p:47,k:5,b:"15:19",e:"15:23"},4:{p:47,k:5,b:"16:1",e:"16:3"},5:{p:47,k:5,b:"16:4",e:"16:8"},6:{p:47,k:5,b:"16:9",e:"16:12"},7:{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"29:35",e:"30:1"}}},"Erev Simchat Torah":{fullkriyah:{1:{p:54,k:5,b:"33:1",e:"33:7"},2:{p:54,k:5,b:"33:8",e:"33:12"},3:{p:54,k:5,b:"33:13",e:"33:17"}}},"Simchat Torah":{haft:{k:"Joshua",b:"1:1",e:"1:18"},fullkriyah:{1:{p:54,k:5,b:"33:1",e:"33:7"},2:{p:54,k:5,b:"33:8",e:"33:12"},3:{p:54,k:5,b:"33:13",e:"33:17"},4:{p:54,k:5,b:"33:18",e:"33:21"},5:{p:54,k:5,b:"33:22",e:"33:26"},6:{p:54,k:5,b:"33:27",e:"34:12"},7:{p:1,k:1,b:"1:1",e:"2:3"},M:{p:41,k:4,b:"29:35",e:"30:1"}}},"Simchat Torah (on Shabbat)":{megillah:"Ecclesiastes",haft:{k:"Joshua",b:"1:1",e:"1:18"},fullkriyah:{1:{p:54,k:5,b:"33:1",e:"33:7"},2:{p:54,k:5,b:"33:8",e:"33:12"},3:{p:54,k:5,b:"33:13",e:"33:17"},4:{p:54,k:5,b:"33:18",e:"33:21"},5:{p:54,k:5,b:"33:22",e:"33:26"},6:{p:54,k:5,b:"33:27",e:"33:29"},7:{p:54,k:5,b:"34:1",e:"34:12"},8:{p:1,k:1,b:"1:1",e:"2:3"},M:{p:41,k:4,b:"29:35",e:"30:1"}}},"Shabbat Rosh Chodesh Chanukah":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{7:{p:41,k:4,b:"28:9",e:"28:15"},M:{p:35,k:4,b:"7:42",e:"7:47"}}},"Chanukah Day 1":{fullkriyah:{1:{p:35,k:4,b:"7:1",e:"7:11"},2:{p:35,k:4,b:"7:12",e:"7:14"},3:{p:35,k:4,b:"7:15",e:"7:17"}},alt:{1:{p:35,k:4,b:"7:1",e:"7:3"},2:{p:35,k:4,b:"7:4",e:"7:11"},3:{p:35,k:4,b:"7:12",e:"7:17"}}},"Chanukah Day 1 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:1",e:"7:17"}}},"Chanukah Day 2":{fullkriyah:{1:{p:35,k:4,b:"7:18",e:"7:20"},2:{p:35,k:4,b:"7:21",e:"7:23"},3:{p:35,k:4,b:"7:24",e:"7:29"}},alt:{1:{p:35,k:4,b:"7:18",e:"7:20"},2:{p:35,k:4,b:"7:21",e:"7:23"},3:{p:35,k:4,b:"7:18",e:"7:23"}}},"Chanukah Day 2 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:18",e:"7:23"}}},"Chanukah Day 3":{fullkriyah:{1:{p:35,k:4,b:"7:24",e:"7:26"},2:{p:35,k:4,b:"7:27",e:"7:29"},3:{p:35,k:4,b:"7:30",e:"7:35"}},alt:{1:{p:35,k:4,b:"7:24",e:"7:26"},2:{p:35,k:4,b:"7:27",e:"7:29"},3:{p:35,k:4,b:"7:24",e:"7:29"}}},"Chanukah Day 3 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:24",e:"7:29"}}},"Chanukah Day 4":{fullkriyah:{1:{p:35,k:4,b:"7:30",e:"7:32"},2:{p:35,k:4,b:"7:33",e:"7:35"},3:{p:35,k:4,b:"7:36",e:"7:41"}},alt:{1:{p:35,k:4,b:"7:30",e:"7:32"},2:{p:35,k:4,b:"7:33",e:"7:35"},3:{p:35,k:4,b:"7:30",e:"7:35"}}},"Chanukah Day 4 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:30",e:"7:35"}}},"Chanukah Day 5":{fullkriyah:{1:{p:35,k:4,b:"7:36",e:"7:38"},2:{p:35,k:4,b:"7:39",e:"7:41"},3:{p:35,k:4,b:"7:42",e:"7:47"}},alt:{1:{p:35,k:4,b:"7:36",e:"7:38"},2:{p:35,k:4,b:"7:39",e:"7:41"},3:{p:35,k:4,b:"7:36",e:"7:41"}}},"Chanukah Day 5 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:36",e:"7:41"}}},"Chanukah Day 6":{fullkriyah:{1:{p:41,k:4,b:"28:1",e:"28:5"},2:{p:41,k:4,b:"28:6",e:"28:10"},3:{p:41,k:4,b:"28:11",e:"28:15"},4:{p:35,k:4,b:"7:42",e:"7:47"}}},"Chanukah Day 7":{fullkriyah:{1:{p:35,k:4,b:"7:48",e:"7:50"},2:{p:35,k:4,b:"7:51",e:"7:53"},3:{p:35,k:4,b:"7:54",e:"7:59"}},alt:{1:{p:35,k:4,b:"7:48",e:"7:50"},2:{p:35,k:4,b:"7:51",e:"7:53"},3:{p:35,k:4,b:"7:48",e:"7:53"}}},"Chanukah Day 7 (on Rosh Chodesh)":{fullkriyah:{1:{p:41,k:4,b:"28:1",e:"28:5"},2:{p:41,k:4,b:"28:6",e:"28:10"},3:{p:41,k:4,b:"28:11",e:"28:15"},4:{p:35,k:4,b:"7:48",e:"7:53"}}},"Chanukah Day 7 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:48",e:"7:53"}}},"Chanukah Day 8":{fullkriyah:{1:{p:35,k:4,b:"7:54",e:"7:56"},2:{p:35,k:4,b:"7:57",e:"7:59"},3:{p:35,k:4,b:"7:60",e:"8:4"}}},"Chanukah Day 8 (on Shabbat)":{haft:{k:"I Kings",b:"7:40",e:"7:50"},fullkriyah:{M:{p:35,k:4,b:"7:54",e:"8:4"}}},"Erev Purim":{megillah:"Esther"},Purim:{megillah:"Esther",fullkriyah:{1:{p:16,k:2,b:"17:8",e:"17:10"},2:{p:16,k:2,b:"17:11",e:"17:13"},3:{p:16,k:2,b:"17:14",e:"17:16"}}},"Shushan Purim":{note:"Jerusalem & walled cities only",il:!0,megillah:"Esther",fullkriyah:{1:{p:16,k:2,b:"17:8",e:"17:10"},2:{p:16,k:2,b:"17:11",e:"17:13"},3:{p:16,k:2,b:"17:14",e:"17:16"}}},"Shushan Purim (on Shabbat)":{il:!0,note:"Jerusalem & walled cities only: special maftir Exodus 17:8-16, same Haftara as Shabbat Zachor"},"Shabbat HaChodesh":{haft:{k:"Ezekiel",b:"45:16",e:"46:18"},seph:{k:"Ezekiel",b:"45:18",e:"46:15"},fullkriyah:{M:{p:15,k:2,b:"12:1",e:"12:20"}}},"Shabbat HaChodesh (on Rosh Chodesh)":{haft:{k:"Ezekiel",b:"45:16",e:"46:18"},seph:{k:"Ezekiel",b:"45:18",e:"46:15"},fullkriyah:{7:{p:41,k:4,b:"28:9",e:"28:15"},M:{p:15,k:2,b:"12:1",e:"12:20"}}},"Shabbat HaGadol":{haft:{k:"Malachi",b:"3:4",e:"3:24"}},"Shabbat Parah":{haft:{k:"Ezekiel",b:"36:16",e:"36:38"},seph:{k:"Ezekiel",b:"36:16",e:"36:36"},fullkriyah:{M:{p:39,k:4,b:"19:1",e:"19:22"}}},"Shabbat Shekalim":{haft:{k:"II Kings",b:"12:1",e:"12:17"},seph:{k:"II Kings",b:"11:17",e:"12:17"},fullkriyah:{M:{p:21,k:2,b:"30:11",e:"30:16"}}},"Shabbat Shekalim (on Rosh Chodesh)":{haft:{k:"II Kings",b:"12:1",e:"12:17"},seph:{k:"II Kings",b:"11:17",e:"12:17"},fullkriyah:{7:{p:41,k:4,b:"28:9",e:"28:15"},M:{p:21,k:2,b:"30:11",e:"30:16"}}},"Shabbat Shuva (with Vayeilech)":{haft:[{k:"Hosea",b:"14:2",e:"14:10"},{k:"Micah",b:"7:18",e:"7:20"}]},"Shabbat Shuva (with Ha'azinu)":{haft:[{k:"Hosea",b:"14:2",e:"14:10"},{k:"Joel",b:"2:15",e:"2:27"}],seph:[{k:"Hosea",b:"14:2",e:"14:10"},{k:"Micah",b:"7:18",e:"7:20"}]},"Shabbat Shuva":{haft:[{k:"Hosea",b:"14:2",e:"14:10"},{k:"Micah",b:"7:18",e:"7:20"},{k:"Joel",b:"2:15",e:"2:27"}]},"Shabbat Zachor":{haft:{k:"I Samuel",b:"15:2",e:"15:34"},seph:{k:"I Samuel",b:"15:1",e:"15:34"},fullkriyah:{M:{p:49,k:5,b:"25:17",e:"25:19"}}},"Pinchas occurring after 17 Tammuz":{haft:{k:"Jeremiah",b:"1:1",e:"2:3"}},"Kedoshim following Special Shabbat":{haft:{k:"Amos",b:"9:7",e:"9:15"},seph:{k:"Ezekiel",b:"20:2",e:"20:20"}},"Masei on Shabbat Rosh Chodesh":{haft:[{k:"Jeremiah",b:"2:4",e:"2:28"},{k:"Jeremiah",b:"3:4",e:"3:4"}],seph:[{k:"Jeremiah",b:"2:4",e:"2:28"},{k:"Jeremiah",b:"4:1",e:"4:2"},{k:"Isaiah",b:"66:1",e:"66:1"},{k:"Isaiah",b:"66:23",e:"66:23"}],fullkriyah:{M:{p:41,k:4,b:"28:9",e:"28:15"}}},"Matot-Masei on Shabbat Rosh Chodesh":{alias:!0,key:"Masei on Shabbat Rosh Chodesh"},"Ki Teitzei with 3rd Haftarah of Consolation":{haft:[{k:"Isaiah",b:"54:1",e:"54:10"},{k:"Isaiah",b:"54:11",e:"55:5"}]},"Rosh Chodesh":{fullkriyah:{1:{p:41,k:4,b:"28:1",e:"28:3"},2:{p:41,k:4,b:"28:3",e:"28:5"},3:{p:41,k:4,b:"28:6",e:"28:10"},4:{p:41,k:4,b:"28:11",e:"28:15"}}},"Rosh Chodesh Nisan":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Iyyar":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Sivan":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Tamuz":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Av":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Elul":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Tishrei":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Cheshvan":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Kislev":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Sh'vat":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Adar":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Adar I":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Adar II":{alias:!0,key:"Rosh Chodesh"},"Shabbat Rosh Chodesh":{haft:{k:"Isaiah",b:"66:1",e:"66:24"},fullkriyah:{M:{p:41,k:4,b:"28:9",e:"28:15"}}},"Shabbat Machar Chodesh":{haft:{k:"I Samuel",b:"20:18",e:"20:42"}}};function S(e){return"object"==typeof w[e]}function I(e){let a=w[e];if(void 0===a)return;if(a.alias){const t=w[a.key];if(void 0===t)throw new Error(`Leyning alias ${e} => ${a.key} not found`);a=t}const t=a.fullkriyah?d(a):a;if(t.fullkriyah)for(const e of Object.values(t.fullkriyah))"number"==typeof e.k&&(e.k=b[e.k]);return a.note&&(t.note=a.note),t}
|
|
3
|
-
/*! @hebcal/hdate v0.
|
|
4
|
-
/*! @hebcal/hdate v0.
|
|
5
|
-
/*! @hebcal/hdate v0.
|
|
6
|
-
const z=5
|
|
7
|
-
/*! @hebcal/hdate v0.
|
|
8
|
-
const
|
|
9
|
-
/*! @hebcal/hdate v0.
|
|
10
|
-
/*! @hebcal/hdate v0.
|
|
11
|
-
/*! @hebcal/hdate v0.
|
|
12
|
-
const
|
|
13
|
-
/*! @hebcal/hdate v0.
|
|
14
|
-
var e,a}greg(){return N(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=x(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,a,t){return x(e,a,t)}getMonthName(){return U(this.getMonth(),this.getFullYear())}render(e,a=!0){const t=e||pe.getLocaleName(),h=this.getDate(),r=pe.gettext(this.getMonthName(),t).replace(/'/g,"’"),o=pe.ordinal(h,t),n=function(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}const a=pe.lookupTranslation("of",e);if(a)return" "+a;if(e.startsWith("ashkenazi"))return" of";return""}(t),s=`${o}${n} ${r}`;if(a){return`${s}, ${this.getFullYear()}`}return s}renderGematriya(e=!1){const a=this.getDate(),t=e?"he-x-NoNikud":"he",h=pe.gettext(this.getMonthName(),t),r=this.getFullYear();return he(a)+" "+h+" "+he(r)}before(e){return ve(e,this,-1)}onOrBefore(e){return ve(e,this,0)}nearest(e){return ve(e,this,3)}onOrAfter(e){return ve(e,this,6)}after(e){return ve(e,this,7)}next(){return new Ie(this.abs()+1)}prev(){return new Ie(this.abs()-1)}add(e,a="d"){if(!(e="string"==typeof e?parseInt(e,10):e))return new Ie(this);if((a=function(e){switch(e){case"d":return ge;case"w":return Me;case"M":return we;case"y":return Se}const a=String(e||"").toLowerCase().replace(/s$/,"");switch(a){case ge:case Me:case we:case Se:return a}throw new TypeError(`Invalid units '${e}'`)}(a))===ge)return new Ie(this.abs()+e);if(a===Me)return new Ie(this.abs()+7*e);if(a===Se)return new Ie(this.getDate(),this.getMonth(),this.getFullYear()+e);{let a=new Ie(this);const t=e>0?1:-1;e=Math.abs(e);for(let h=0;h<e;h++)a=new Ie(a.abs()+t*a.daysInMonth());return a}}subtract(e,a="d"){return this.add(-1*e,a)}deltaDays(e){return this.abs()-e.abs()}isSameDate(e){return this.yy===e.yy&&this.mm===e.mm&&this.dd===e.dd}toString(){const e=this.getDate(),a=this.getFullYear();return`${e} ${this.getMonthName()} ${a}`}static isLeapYear(e){return _(e)}static monthsInYear(e){return Z(e)}static daysInMonth(e,a){return G(e,a)}static getMonthName(e,a){return U(e,a)}static monthNum(e){if("number"==typeof e){if(isNaN(e)||e>14)throw new RangeError(`bad monthNum: ${e}`);return e}return e.charCodeAt(0)>=48&&e.charCodeAt(0)<=57?parseInt(e,10):Ie.monthFromName(e)}static daysInYear(e){return q(e)}static longCheshvan(e){return Q(e)}static shortKislev(e){return X(e)}static monthFromName(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`bad monthName: ${e}`);return e}return function(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`bad monthName: ${e}`);return e}let a=e.trim().toLowerCase();switch("ב"===a[0]&&(a=a.substring(1)),a[0]){case"n":case"נ":if("o"===a[1])break;return 1;case"i":return 2;case"e":return 6;case"c":case"ח":return 8;case"k":case"כ":return 9;case"s":switch(a[1]){case"i":return 3;case"h":return 11}break;case"t":switch(a[1]){case"a":return 4;case"i":return 7;case"e":return 10}break;case"a":switch(a[1]){case"v":return 5;case"d":return/(1|[^i]i|a|א)$/i.test(e)?12:13}break;case"ס":return 3;case"ט":return 10;case"ש":return 11;case"א":switch(a[1]){case"ב":return 5;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?12:13;case"י":return 2;case"ל":return 6}break;case"ת":switch(a[1]){case"מ":return 4;case"ש":return 7}}throw new RangeError(`bad monthName: ${e}`)}(pe.hebrewStripNikkud(e))}static dayOnOrBefore(e,a){return a-(a-e)%7}static isHDate(e){return null!==e&&"object"==typeof e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd&&"function"==typeof e.greg&&"function"==typeof e.abs}static fromGematriyaString(e,a=5e3){const t=e.split(" ").filter((e=>0!==e.length)),h=t.length;if(3!==h&&4!==h)throw new RangeError(`cannot parse gematriya str: "${e}"`);const r=re(t[0]),o=3===h?t[1]:t[1]+" "+t[2],n=Ie.monthFromName(o);let s=re(3===h?t[2]:t[3]);return s<1e3&&(s+=a),new Ie(r,n,s)}}function Ce(e){De(e),function(e){e.dd<1&&(e.mm===K&&(e.yy-=1),e.dd+=G(e.mm,e.yy),e.mm-=1,Ce(e));e.dd>G(e.mm,e.yy)&&(e.mm===$&&(e.yy+=1),e.dd-=G(e.mm,e.yy),e.mm===Z(e.yy)?e.mm=1:e.mm+=1,Ce(e));De(e)}(e)}function De(e){e.mm!==L||e.isLeapYear()?e.mm<1?(e.mm+=Z(e.yy),e.yy-=1,Ce(e)):e.mm>Z(e.yy)&&(e.mm-=Z(e.yy),e.yy+=1,Ce(e)):(e.mm-=1,Ce(e)),delete e.rd}function ve(e,a,t){return new Ie(Ie.dayOnOrBefore(e,a.abs()+t))}const Ee=t.flags.DAF_YOMI|t.flags.OMER_COUNT|t.flags.SHABBAT_MEVARCHIM|t.flags.MOLAD|t.flags.USER_EVENT|t.flags.HEBREW_DATE|t.flags.MISHNA_YOMI|t.flags.MODERN_HOLIDAY|t.flags.YERUSHALMI_YOMI;function Te(e,a=!1){if(void 0!==e.eventTime)return;const h=e.getFlags();if(h&Ee)return;const r=e.getDesc();if(h&t.flags.EREV&&!S(r))return;const o=e.getDate(),n=o.getDate(),s=o.abs()%7,i=o.getMonth(),k=6===s,b=1===n||30===n,l=e.basename(),u="Pesach"===l;if(a&&u)return k?15===n||21===n?r+" (on Shabbat)":"Pesach Shabbat Chol ha-Moed":r;if(1===n&&i===K)return k?"Rosh Hashana I (on Shabbat)":"Rosh Hashana I";const f=e.cholHaMoedDay;if("number"==typeof f){if(k)return l+" Shabbat Chol ha-Moed";if("Sukkot VII (Hoshana Raba)"===r)return"Sukkot Final Day (Hoshana Raba)";if(u&&f){if(0===s&&"Pesach IV (CH''M)"===r)return"Pesach Chol ha-Moed Day 2 on Sunday";if(1===s&&"Pesach V (CH''M)"===r)return"Pesach Chol ha-Moed Day 3 on Monday"}return`${l} Chol ha-Moed Day ${f}`}const c=e.chanukahDay;if("number"==typeof c)return k&&b?"Shabbat Rosh Chodesh Chanukah":b&&7===c?"Chanukah Day 7 (on Rosh Chodesh)":k?`Chanukah Day ${c} (on Shabbat)`:`Chanukah Day ${c}`;if(b&&("Shabbat HaChodesh"===r||"Shabbat Shekalim"===r))return r+" (on Rosh Chodesh)";if(a&&"Shmini Atzeret"===r)return"Simchat Torah"+(k?" (on Shabbat)":"");if("Chag HaBanot"!==r){if(k&&"Shabbat"!==r.substring(0,7)){if(b)return"Rosh Chodesh Tevet"===r?"Shabbat Rosh Chodesh Chanukah":"Shabbat Rosh Chodesh";const e=r+" (on Shabbat)";if(S(e))return e}if(S(r))return r;if(k){const e=o.next().getDate();if(30===e||1===e)return"Shabbat Machar Chodesh"}if("Rosh Hashana LaBehemot"!==r)return"Rosh Chodesh Tevet"===r?k?"Shabbat Rosh Chodesh Chanukah":30===n||Ie.shortKislev(o.getFullYear())?"Chanukah Day 6":"Chanukah Day 7 (on Rosh Chodesh)":b?r:"Tish'a B'Av (observed)"===r?"Tish'a B'Av":void 0}}function Re(e,a){a[7]&&(!function(e){const a=d(e[6]),t=e[7];if(a.k!==t.k)throw new Error("Impossible to combine aliyot 6 & 7: "+JSON.stringify(e));delete e[7],e[6]={k:a.k,b:a.b,e:t.e},a.v&&t.v&&(e[6].v=a.v+t.v)}(e),e[7]=d(a[7]),f(e[7])),a.M&&(e.M=d(a.M),f(e.M))}function Ae(e,a,r,o){let n,s,i=!1;const k={};function b(e){const a=I(e);if(a&&("boolean"!=typeof a.il||r===a.il)&&(a.haft&&!i&&(n=g(a.haft),k.haftara=e,i=!0,a.seph&&(s=g(a.seph),k.sephardic=e)),a.fullkriyah)){const t=d(o);Re(t,a.fullkriyah);for(const t of Object.keys(a.fullkriyah))k[t]=e;o=t}}const l=u(e),f=(h.getHolidaysOnDate(a,r)||[]).filter((e=>!(e.getFlags()&t.flags.ROSH_CHODESH)));for(const e of f)if("Shabbat Shuva"===e.getDesc())b(`Shabbat Shuva (with ${l})`);else{const a=Te(e,r);a&&b(a)}if(!n){const e=a.getDate();if("Pinchas"===l&&e>17)b("Pinchas occurring after 17 Tammuz");else if(30===e||1===e){b("Masei"===l||"Matot-Masei"===l?`${l} on Shabbat Rosh Chodesh`:"Shabbat Rosh Chodesh")}else if("Ki Teitzei"===l&&14===e)b("Ki Teitzei with 3rd Haftarah of Consolation");else if("Kedoshim"!==l||26!==e&&28!==e&&6!==e){if(a.getMonth()!==z){const e=a.next().getDate();30!==e&&1!==e||b("Shabbat Machar Chodesh")}}else b("Kedoshim following Special Shabbat")}return{aliyot:o,reason:k,haft:n,seph:s}}function He(e,t,h){if("string"!=typeof e)return;const r=I(e);if(void 0===r)return;const o=r.il;if("boolean"==typeof o&&"boolean"==typeof h&&h!==o)return;const n={name:{en:e,he:a.Locale.lookupTranslation(e,"he")}};if(r.fullkriyah){if(n.fullkriyah=d(r.fullkriyah),"Sukkot Shabbat Chol ha-Moed"===e&&t){n.fullkriyah.M=n.fullkriyah[`M-day${t}`];for(let e=1;e<=5;e++)delete n.fullkriyah[`M-day${e}`]}if("object"==typeof n.fullkriyah[1]){const e=y(n.fullkriyah);n.summary=m(e),n.summaryParts=e}Object.values(n.fullkriyah).map((e=>f(e)))}if(r.haft){const e=n.haft=g(r.haft);n.haftara=m(e),n.haftaraNumV=M(e)}if(r.seph){const e=n.seph=g(r.seph);n.sephardic=m(e),n.sephardicNumV=M(e)}let s=r.megillah;if(h&&"Pesach I (on Shabbat)"===e&&(s="Song of Songs"),s){const e=l[s],a={};for(let t=1;t<e.length;t++){const h=e[t];a[`${t}`]={k:s,b:`${t}:1`,e:`${t}:${h}`,v:h}}n.megillah=a;const t=y(a);n.summaryParts&&n.summaryParts.push(...t);const h=m(t);n.summary=n.summary?n.summary+"; "+h:h}return r.note&&(n.note=r.note),n}function Ne(e,a=!1){if("object"!=typeof e||"function"!=typeof e.getFlags)throw new TypeError(`Bad event argument: ${JSON.stringify(e)}`);if(void 0!==e.eventTime)return;if(e.getFlags()&t.flags.PARSHA_HASHAVUA)throw new TypeError(`Event should be a holiday: ${e.getDesc()}`);if(e.getFlags()&Ee)return;return He(Te(e,a),e.cholHaMoedDay,a)}const Pe={Bereshit:{num:1,hebrew:"בְּרֵאשִׁית",book:1,haft:{k:"Isaiah",b:"42:5",e:"43:10"},seph:{k:"Isaiah",b:"42:5",e:"42:21"},fullkriyah:{1:["1:1","2:3"],2:["2:4","2:19"],3:["2:20","3:21"],4:["3:22","4:18"],5:["4:19","4:22","some sources use 4:19-26"],6:["4:23","5:24","some sources use 5:1-24"],7:["5:25","6:8"],M:["6:5","6:8"]},weekday:{1:["1:1","1:5"],2:["1:6","1:8"],3:["1:9","1:13"]}},Noach:{num:2,hebrew:"נֹחַ",book:1,haft:{k:"Isaiah",b:"54:1",e:"55:5"},seph:{k:"Isaiah",b:"54:1",e:"54:10"},fullkriyah:{1:["6:9","6:22"],2:["7:1","7:16"],3:["7:17","8:14"],4:["8:15","9:7"],5:["9:8","9:17"],6:["9:18","10:32"],7:["11:1","11:32"],M:["11:29","11:32"]},weekday:{1:["6:9","6:16"],2:["6:17","6:19"],3:["6:20","6:22"]}},"Lech-Lecha":{num:3,hebrew:"לֶךְ־לְךָ",book:1,haft:{k:"Isaiah",b:"40:27",e:"41:16"},fullkriyah:{1:["12:1","12:13"],2:["12:14","13:4"],3:["13:5","13:18"],4:["14:1","14:20"],5:["14:21","15:6"],6:["15:7","17:6"],7:["17:7","17:27"],M:["17:24","17:27"]},weekday:{1:["12:1","12:3"],2:["12:4","12:9"],3:["12:10","12:13"]}},Vayera:{num:4,hebrew:"וַיֵּרָא",book:1,haft:{k:"II Kings",b:"4:1",e:"4:37"},seph:{k:"II Kings",b:"4:1",e:"4:23"},fullkriyah:{1:["18:1","18:14"],2:["18:15","18:33"],3:["19:1","19:20"],4:["19:21","21:4"],5:["21:5","21:21"],6:["21:22","21:34"],7:["22:1","22:24"],M:["22:20","22:24"]},weekday:{1:["18:1","18:5"],2:["18:6","18:8"],3:["18:9","18:14"]}},"Chayei Sara":{num:5,hebrew:"חַיֵּי שָֹרָה",book:1,haft:{k:"I Kings",b:"1:1",e:"1:31"},fullkriyah:{1:["23:1","23:16"],2:["23:17","24:9"],3:["24:10","24:26"],4:["24:27","24:52"],5:["24:53","24:67"],6:["25:1","25:11"],7:["25:12","25:18"],M:["25:16","25:18"]},weekday:{1:["23:1","23:7"],2:["23:8","23:12"],3:["23:13","23:16"]}},Toldot:{num:6,hebrew:"תּוֹלְדוֹת",book:1,haft:{k:"Malachi",b:"1:1",e:"2:7"},fullkriyah:{1:["25:19","26:5"],2:["26:6","26:12"],3:["26:13","26:22"],4:["26:23","26:29"],5:["26:30","27:27"],6:["27:28","28:4"],7:["28:5","28:9"],M:["28:7","28:9"]},weekday:{1:["25:19","25:22"],2:["25:23","25:26"],3:["25:27","26:5"]}},Vayetzei:{num:7,hebrew:"וַיֵּצֵא",book:1,haft:{k:"Hosea",b:"12:13",e:"14:10"},seph:{k:"Hosea",b:"11:7",e:"12:12"},fullkriyah:{1:["28:10","28:22"],2:["29:1","29:17"],3:["29:18","30:13"],4:["30:14","30:27"],5:["30:28","31:16"],6:["31:17","31:42"],7:["31:43","32:3"],M:["32:1","32:3"]},weekday:{1:["28:10","28:12"],2:["28:13","28:17"],3:["28:18","28:22"]}},Vayishlach:{num:8,hebrew:"וַיִּשְׁלַח",book:1,haft:{k:"Obadiah",b:"1:1",e:"1:21"},fullkriyah:{1:["32:4","32:13"],2:["32:14","32:30"],3:["32:31","33:5"],4:["33:6","33:20"],5:["34:1","35:11"],6:["35:12","36:19"],7:["36:20","36:43"],M:["36:40","36:43"]},weekday:{1:["32:4","32:6"],2:["32:7","32:9"],3:["32:10","32:13"]}},Vayeshev:{num:9,hebrew:"וַיֵּשֶׁב",book:1,haft:{k:"Amos",b:"2:6",e:"3:8"},fullkriyah:{1:["37:1","37:11"],2:["37:12","37:22"],3:["37:23","37:36"],4:["38:1","38:30"],5:["39:1","39:6"],6:["39:7","39:23"],7:["40:1","40:23"],M:["40:20","40:23"]},weekday:{1:["37:1","37:3"],2:["37:4","37:7"],3:["37:8","37:11"]}},Miketz:{num:10,hebrew:"מִקֵּץ",book:1,haft:{k:"I Kings",b:"3:15",e:"4:1"},fullkriyah:{1:["41:1","41:14"],2:["41:15","41:38"],3:["41:39","41:52"],4:["41:53","42:18"],5:["42:19","43:15"],6:["43:16","43:29"],7:["43:30","44:17"],M:["44:14","44:17"]},weekday:{1:["41:1","41:4"],2:["41:5","41:7"],3:["41:8","41:14"]}},Vayigash:{num:11,hebrew:"וַיִּגַּשׁ",book:1,haft:{k:"Ezekiel",b:"37:15",e:"37:28"},fullkriyah:{1:["44:18","44:30"],2:["44:31","45:7"],3:["45:8","45:18"],4:["45:19","45:27"],5:["45:28","46:27"],6:["46:28","47:10"],7:["47:11","47:27"],M:["47:25","47:27"]},weekday:{1:["44:18","44:20"],2:["44:21","44:24"],3:["44:25","44:30"]}},Vayechi:{num:12,hebrew:"וַיְחִי",book:1,haft:{k:"I Kings",b:"2:1",e:"2:12"},fullkriyah:{1:["47:28","48:9"],2:["48:10","48:16"],3:["48:17","48:22"],4:["49:1","49:18"],5:["49:19","49:26"],6:["49:27","50:20"],7:["50:21","50:26"],M:["50:23","50:26"]},weekday:{1:["47:28","47:31"],2:["48:1","48:3"],3:["48:4","48:9"]}},Shemot:{num:13,hebrew:"שְׁמוֹת",book:2,haft:[{k:"Isaiah",b:"27:6",e:"28:13"},{k:"Isaiah",b:"29:22",e:"29:23"}],seph:{k:"Jeremiah",b:"1:1",e:"2:3"},fullkriyah:{1:["1:1","1:17"],2:["1:18","2:10"],3:["2:11","2:25"],4:["3:1","3:15"],5:["3:16","4:17"],6:["4:18","4:31"],7:["5:1","6:1"],M:["5:22","6:1"]},weekday:{1:["1:1","1:7"],2:["1:8","1:12"],3:["1:13","1:17"]}},Vaera:{num:14,hebrew:"וָאֵרָא",book:2,haft:{k:"Ezekiel",b:"28:25",e:"29:21"},fullkriyah:{1:["6:2","6:13"],2:["6:14","6:28"],3:["6:29","7:7"],4:["7:8","8:6"],5:["8:7","8:18"],6:["8:19","9:16"],7:["9:17","9:35"],M:["9:33","9:35"]},weekday:{1:["6:2","6:5"],2:["6:6","6:9"],3:["6:10","6:13"]}},Bo:{num:15,hebrew:"בֹּא",book:2,haft:{k:"Jeremiah",b:"46:13",e:"46:28"},fullkriyah:{1:["10:1","10:11"],2:["10:12","10:23"],3:["10:24","11:3"],4:["11:4","12:20"],5:["12:21","12:28"],6:["12:29","12:51"],7:["13:1","13:16"],M:["13:14","13:16"]},weekday:{1:["10:1","10:3"],2:["10:4","10:6"],3:["10:7","10:11"]}},Beshalach:{num:16,hebrew:"בְּשַׁלַּח",book:2,haft:{k:"Judges",b:"4:4",e:"5:31"},seph:{k:"Judges",b:"5:1",e:"5:31"},fullkriyah:{1:["13:17","14:8"],2:["14:9","14:14"],3:["14:15","14:25"],4:["14:26","15:26"],5:["15:27","16:10"],6:["16:11","16:36"],7:["17:1","17:16"],M:["17:14","17:16"]},weekday:{1:["13:17","13:22"],2:["14:1","14:4"],3:["14:5","14:8"]}},Yitro:{num:17,hebrew:"יִתְרוֹ",book:2,haft:[{k:"Isaiah",b:"6:1",e:"7:6"},{k:"Isaiah",b:"9:5",e:"9:6"}],seph:{k:"Isaiah",b:"6:1",e:"6:13"},fullkriyah:{1:["18:1","18:12"],2:["18:13","18:23"],3:["18:24","18:27"],4:["19:1","19:6"],5:["19:7","19:19"],6:["19:20","20:14"],7:["20:15","20:23"],M:["20:19","20:23"]},weekday:{1:["18:1","18:4"],2:["18:5","18:8"],3:["18:9","18:12"]}},Mishpatim:{num:18,hebrew:"מִּשְׁפָּטִים",book:2,haft:[{k:"Jeremiah",b:"34:8",e:"34:22"},{k:"Jeremiah",b:"33:25",e:"33:26"}],fullkriyah:{1:["21:1","21:19"],2:["21:20","22:3"],3:["22:4","22:26"],4:["22:27","23:5"],5:["23:6","23:19"],6:["23:20","23:25"],7:["23:26","24:18"],M:["24:15","24:18"]},weekday:{1:["21:1","21:6"],2:["21:7","21:11"],3:["21:12","21:19"]}},Terumah:{num:19,hebrew:"תְּרוּמָה",book:2,haft:{k:"I Kings",b:"5:26",e:"6:13"},fullkriyah:{1:["25:1","25:16"],2:["25:17","25:40","some sources use 25:17-30"],3:["26:1","26:14","some sources use 25:31-26:14"],4:["26:15","26:30"],5:["26:31","26:37"],6:["27:1","27:8"],7:["27:9","27:19"],M:["27:17","27:19"]},weekday:{1:["25:1","25:5"],2:["25:6","25:9"],3:["25:10","25:16"]}},Tetzaveh:{num:20,hebrew:"תְּצַוֶּה",book:2,haft:{k:"Ezekiel",b:"43:10",e:"43:27"},fullkriyah:{1:["27:20","28:12"],2:["28:13","28:30"],3:["28:31","28:43"],4:["29:1","29:18"],5:["29:19","29:37"],6:["29:38","29:46"],7:["30:1","30:10"],M:["30:8","30:10"]},weekday:{1:["27:20","28:5"],2:["28:6","28:9"],3:["28:10","28:12"]}},"Ki Tisa":{num:21,hebrew:"כִּי תִשָּׂא",book:2,haft:{k:"I Kings",b:"18:1",e:"18:39"},seph:{k:"I Kings",b:"18:20",e:"18:39"},fullkriyah:{1:["30:11","31:17"],2:["31:18","33:11"],3:["33:12","33:16"],4:["33:17","33:23"],5:["34:1","34:9"],6:["34:10","34:26"],7:["34:27","34:35"],M:["34:33","34:35"]},weekday:{1:["30:11","30:13"],2:["30:14","30:16"],3:["30:17","30:21"]}},Vayakhel:{num:22,hebrew:"וַיַּקְהֵל",book:2,haft:{k:"I Kings",b:"7:40",e:"7:50"},seph:{k:"I Kings",b:"7:13",e:"7:26"},fullkriyah:{1:["35:1","35:20"],2:["35:21","35:29"],3:["35:30","36:7"],4:["36:8","36:19"],5:["36:20","37:16"],6:["37:17","37:29"],7:["38:1","38:20"],M:["38:18","38:20"]},weekday:{1:["35:1","35:3"],2:["35:4","35:10"],3:["35:11","35:20"]}},Pekudei:{num:23,hebrew:"פְקוּדֵי",book:2,haft:{k:"I Kings",b:"7:51",e:"8:21"},seph:{k:"I Kings",b:"7:40",e:"7:50"},fullkriyah:{1:["38:21","39:1"],2:["39:2","39:21"],3:["39:22","39:32"],4:["39:33","39:43"],5:["40:1","40:16"],6:["40:17","40:27"],7:["40:28","40:38"],M:["40:34","40:38"]},weekday:{1:["38:21","38:23"],2:["38:24","38:27"],3:["38:28","39:1"]}},Vayikra:{num:24,hebrew:"וַיִּקְרָא",book:3,haft:{k:"Isaiah",b:"43:21",e:"44:23"},fullkriyah:{1:["1:1","1:13"],2:["1:14","2:6"],3:["2:7","2:16"],4:["3:1","3:17"],5:["4:1","4:26"],6:["4:27","5:10"],7:["5:11","5:26"],M:["5:24","5:26"]},weekday:{1:["1:1","1:4"],2:["1:5","1:9"],3:["1:10","1:13"]}},Tzav:{num:25,hebrew:"צַו",book:3,haft:[{k:"Jeremiah",b:"7:21",e:"8:3"},{k:"Jeremiah",b:"9:22",e:"9:23"}],fullkriyah:{1:["6:1","6:11"],2:["6:12","7:10"],3:["7:11","7:38"],4:["8:1","8:13"],5:["8:14","8:21"],6:["8:22","8:29"],7:["8:30","8:36"],M:["8:33","8:36"]},weekday:{1:["6:1","6:3"],2:["6:4","6:6"],3:["6:7","6:11"]}},Shmini:{num:26,hebrew:"שְּׁמִינִי",book:3,haft:{k:"II Samuel",b:"6:1",e:"7:17"},seph:{k:"II Samuel",b:"6:1",e:"6:19"},fullkriyah:{1:["9:1","9:16"],2:["9:17","9:23"],3:["9:24","10:11"],4:["10:12","10:15"],5:["10:16","10:20"],6:["11:1","11:32"],7:["11:33","11:47"],M:["11:45","11:47"]},weekday:{1:["9:1","9:6"],2:["9:7","9:10"],3:["9:11","9:16"]}},Tazria:{num:27,hebrew:"תַזְרִיעַ",book:3,haft:{k:"II Kings",b:"4:42",e:"5:19"},fullkriyah:{1:["12:1","13:5"],2:["13:6","13:17"],3:["13:18","13:23"],4:["13:24","13:28"],5:["13:29","13:39"],6:["13:40","13:54"],7:["13:55","13:59"],M:["13:57","13:59"]},weekday:{1:["12:1","12:4"],2:["12:5","12:8"],3:["13:1","13:5"]}},Metzora:{num:28,hebrew:"מְּצֹרָע",book:3,haft:{k:"II Kings",b:"7:3",e:"7:20"},fullkriyah:{1:["14:1","14:12"],2:["14:13","14:20"],3:["14:21","14:32"],4:["14:33","14:53"],5:["14:54","15:15"],6:["15:16","15:28"],7:["15:29","15:33"],M:["15:31","15:33"]},weekday:{1:["14:1","14:5"],2:["14:6","14:9"],3:["14:10","14:12"]}},"Achrei Mot":{num:29,hebrew:"אַחֲרֵי מוֹת",book:3,haft:{k:"Amos",b:"9:7",e:"9:15"},seph:{k:"Ezekiel",b:"22:1",e:"22:16"},fullkriyah:{1:["16:1","16:17"],2:["16:18","16:24"],3:["16:25","16:34"],4:["17:1","17:7"],5:["17:8","18:5"],6:["18:6","18:21"],7:["18:22","18:30"],M:["18:28","18:30"]},weekday:{1:["16:1","16:6"],2:["16:7","16:11"],3:["16:12","16:17"]}},Kedoshim:{num:30,hebrew:"קְדשִׁים",book:3,haft:{k:"Ezekiel",b:"22:1",e:"22:19"},seph:{k:"Ezekiel",b:"20:2",e:"20:20"},fullkriyah:{1:["19:1","19:14"],2:["19:15","19:22"],3:["19:23","19:32"],4:["19:33","19:37"],5:["20:1","20:7"],6:["20:8","20:22"],7:["20:23","20:27"],M:["20:25","20:27"]},weekday:{1:["19:1","19:4"],2:["19:5","19:10"],3:["19:11","19:14"]}},Emor:{num:31,hebrew:"אֱמוֹר",book:3,haft:{k:"Ezekiel",b:"44:15",e:"44:31"},fullkriyah:{1:["21:1","21:15"],2:["21:16","22:16"],3:["22:17","22:33"],4:["23:1","23:22"],5:["23:23","23:32"],6:["23:33","23:44"],7:["24:1","24:23"],M:["24:21","24:23"]},weekday:{1:["21:1","21:6"],2:["21:7","21:12"],3:["21:13","21:15"]}},Behar:{num:32,hebrew:"בְּהַר",book:3,haft:{k:"Jeremiah",b:"32:6",e:"32:27"},fullkriyah:{1:["25:1","25:13"],2:["25:14","25:18"],3:["25:19","25:24"],4:["25:25","25:28"],5:["25:29","25:38"],6:["25:39","25:46"],7:["25:47","26:2"],M:["25:55","26:2"]},weekday:{1:["25:1","25:3"],2:["25:4","25:7"],3:["25:8","25:13"]}},Bechukotai:{num:33,hebrew:"בְּחֻקֹּתַי",book:3,haft:{k:"Jeremiah",b:"16:19",e:"17:14"},fullkriyah:{1:["26:3","26:5"],2:["26:6","26:9"],3:["26:10","26:46"],4:["27:1","27:15"],5:["27:16","27:21"],6:["27:22","27:28"],7:["27:29","27:34"],M:["27:32","27:34"]},weekday:{1:["26:3","26:5"],2:["26:6","26:9"],3:["26:10","26:13"]}},Bamidbar:{num:34,hebrew:"בְּמִדְבַּר",book:4,haft:{k:"Hosea",b:"2:1",e:"2:22"},fullkriyah:{1:["1:1","1:19"],2:["1:20","1:54"],3:["2:1","2:34"],4:["3:1","3:13"],5:["3:14","3:39"],6:["3:40","3:51"],7:["4:1","4:20"],M:["4:17","4:20"]},weekday:{1:["1:1","1:4"],2:["1:5","1:16"],3:["1:17","1:19"]}},Nasso:{num:35,hebrew:"נָשׂא",book:4,haft:{k:"Judges",b:"13:2",e:"13:25"},fullkriyah:{1:["4:21","4:37"],2:["4:38","4:49"],3:["5:1","5:10"],4:["5:11","6:27"],5:["7:1","7:41"],6:["7:42","7:71"],7:["7:72","7:89"],M:["7:87","7:89"]},weekday:{1:["4:21","4:24"],2:["4:25","4:28"],3:["4:29","4:33"]}},"Beha'alotcha":{num:36,hebrew:"בְּהַעֲלֹתְךָ",book:4,haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{1:["8:1","8:14"],2:["8:15","8:26"],3:["9:1","9:14"],4:["9:15","10:10"],5:["10:11","10:34"],6:["10:35","11:29"],7:["11:30","12:16"],M:["12:14","12:16"]},weekday:{1:["8:1","8:4"],2:["8:5","8:9"],3:["8:10","8:14"]}},"Sh'lach":{num:37,hebrew:"שְׁלַח־לְךָ",book:4,haft:{k:"Joshua",b:"2:1",e:"2:24"},fullkriyah:{1:["13:1","13:20"],2:["13:21","14:7"],3:["14:8","14:25"],4:["14:26","15:7"],5:["15:8","15:16"],6:["15:17","15:26"],7:["15:27","15:41"],M:["15:37","15:41"]},weekday:{1:["13:1","13:3"],2:["13:4","13:16"],3:["13:17","13:20"]}},Korach:{num:38,hebrew:"קוֹרַח",book:4,haft:{k:"I Samuel",b:"11:14",e:"12:22"},fullkriyah:{1:["16:1","16:13"],2:["16:14","16:19"],3:["16:20","17:8"],4:["17:9","17:15"],5:["17:16","17:24"],6:["17:25","18:20"],7:["18:21","18:32"],M:["18:30","18:32"]},weekday:{1:["16:1","16:3"],2:["16:4","16:7"],3:["16:8","16:13"]}},Chukat:{num:39,hebrew:"חֻקַּת",book:4,haft:{k:"Judges",b:"11:1",e:"11:33"},fullkriyah:{1:["19:1","19:17"],2:["19:18","20:6"],3:["20:7","20:13"],4:["20:14","20:21"],5:["20:22","21:9"],6:["21:10","21:20"],7:["21:21","22:1"],M:["21:34","22:1"]},weekday:{1:["19:1","19:6"],2:["19:7","19:9"],3:["19:10","19:17"]}},Balak:{num:40,hebrew:"בָּלָק",book:4,haft:{k:"Micah",b:"5:6",e:"6:8"},fullkriyah:{1:["22:2","22:12"],2:["22:13","22:20"],3:["22:21","22:38"],4:["22:39","23:12"],5:["23:13","23:26"],6:["23:27","24:13"],7:["24:14","25:9"],M:["25:7","25:9"]},weekday:{1:["22:2","22:4"],2:["22:5","22:7"],3:["22:8","22:12"]}},Pinchas:{num:41,hebrew:"פִּינְחָס",book:4,haft:{k:"I Kings",b:"18:46",e:"19:21"},fullkriyah:{1:["25:10","26:4"],2:["26:5","26:51"],3:["26:52","27:5"],4:["27:6","27:23"],5:["28:1","28:15"],6:["28:16","29:11"],7:["29:12","30:1"],M:["29:35","30:1"]},weekday:{1:["25:10","25:12"],2:["25:13","25:15"],3:["25:16","26:4"]}},Matot:{num:42,hebrew:"מַּטּוֹת",book:4,haft:{k:"Jeremiah",b:"1:1",e:"2:3"},fullkriyah:{1:["30:2","30:17"],2:["31:1","31:12"],3:["31:13","31:24"],4:["31:25","31:41"],5:["31:42","31:54"],6:["32:1","32:19"],7:["32:20","32:42"],M:["32:39","32:42"]},weekday:{1:["30:2","30:9"],2:["30:10","30:13"],3:["30:14","30:17"]}},Masei:{num:43,hebrew:"מַסְעֵי",book:4,haft:[{k:"Jeremiah",b:"2:4",e:"2:28"},{k:"Jeremiah",b:"3:4",e:"3:4"}],seph:[{k:"Jeremiah",b:"2:4",e:"2:28"},{k:"Jeremiah",b:"4:1",e:"4:2"}],fullkriyah:{1:["33:1","33:10"],2:["33:11","33:49"],3:["33:50","34:15"],4:["34:16","34:29"],5:["35:1","35:8"],6:["35:9","35:34"],7:["36:1","36:13"],M:["36:11","36:13"]},weekday:{1:["33:1","33:3"],2:["33:4","33:6"],3:["33:7","33:10"]}},Devarim:{num:44,hebrew:"דְּבָרִים",book:5,haft:{k:"Isaiah",b:"1:1",e:"1:27"},fullkriyah:{1:["1:1","1:10"],2:["1:11","1:21"],3:["1:22","1:38"],4:["1:39","2:1"],5:["2:2","2:30"],6:["2:31","3:14"],7:["3:15","3:22"],M:["3:20","3:22"]},weekday:{1:["1:1","1:3"],2:["1:4","1:7"],3:["1:8","1:11"]}},Vaetchanan:{num:45,hebrew:"וָאֶתְחַנַּן",book:5,haft:{k:"Isaiah",b:"40:1",e:"40:26"},fullkriyah:{1:["3:23","4:4"],2:["4:5","4:40"],3:["4:41","4:49"],4:["5:1","5:18"],5:["5:19","6:3"],6:["6:4","6:25"],7:["7:1","7:11"],M:["7:9","7:11"]},weekday:{1:["3:23","3:25"],2:["3:26","4:4"],3:["4:5","4:8"]}},Eikev:{num:46,hebrew:"עֵקֶב",book:5,haft:{k:"Isaiah",b:"49:14",e:"51:3"},fullkriyah:{1:["7:12","8:10"],2:["8:11","9:3"],3:["9:4","9:29"],4:["10:1","10:11"],5:["10:12","11:9"],6:["11:10","11:21"],7:["11:22","11:25"],M:["11:22","11:25"]},weekday:{1:["7:12","7:21"],2:["7:22","8:3"],3:["8:4","8:10"]}},"Re'eh":{num:47,hebrew:"רְאֵה",book:5,haft:{k:"Isaiah",b:"54:11",e:"55:5"},fullkriyah:{1:["11:26","12:10"],2:["12:11","12:28"],3:["12:29","13:19"],4:["14:1","14:21"],5:["14:22","14:29"],6:["15:1","15:18"],7:["15:19","16:17"],M:["16:13","16:17"]},weekday:{1:["11:26","11:31"],2:["11:32","12:5"],3:["12:6","12:10"]}},Shoftim:{num:48,hebrew:"שׁוֹפְטִים",book:5,haft:{k:"Isaiah",b:"51:12",e:"52:12"},fullkriyah:{1:["16:18","17:13"],2:["17:14","17:20"],3:["18:1","18:5"],4:["18:6","18:13"],5:["18:14","19:13"],6:["19:14","20:9"],7:["20:10","21:9"],M:["21:7","21:9"]},weekday:{1:["16:18","16:20"],2:["16:21","17:10"],3:["17:11","17:13"]}},"Ki Teitzei":{num:49,hebrew:"כִּי־תֵצֵא",book:5,haft:{k:"Isaiah",b:"54:1",e:"54:10"},fullkriyah:{1:["21:10","21:21"],2:["21:22","22:7"],3:["22:8","23:7"],4:["23:8","23:24"],5:["23:25","24:4"],6:["24:5","24:13"],7:["24:14","25:19"],M:["25:17","25:19"]},weekday:{1:["21:10","21:14"],2:["21:15","21:17"],3:["21:18","21:21"]}},"Ki Tavo":{num:50,hebrew:"כִּי־תָבוֹא",book:5,haft:{k:"Isaiah",b:"60:1",e:"60:22"},fullkriyah:{1:["26:1","26:11"],2:["26:12","26:15"],3:["26:16","26:19"],4:["27:1","27:10"],5:["27:11","28:6"],6:["28:7","28:69"],7:["29:1","29:8"],M:["29:6","29:8"]},weekday:{1:["26:1","26:3"],2:["26:4","26:11"],3:["26:12","26:15"]}},Nitzavim:{num:51,hebrew:"נִצָּבִים",book:5,haft:{k:"Isaiah",b:"61:10",e:"63:9"},fullkriyah:{1:["29:9","29:11"],2:["29:12","29:14"],3:["29:15","29:28"],4:["30:1","30:6"],5:["30:7","30:10"],6:["30:11","30:14"],7:["30:15","30:20"],M:["30:15","30:20"]},weekday:{1:["29:9","29:11"],2:["29:12","29:14"],3:["29:15","29:28"]}},Vayeilech:{num:52,hebrew:"וַיֵּלֶךְ",book:5,haft:{k:"Isaiah",b:"55:6",e:"56:8"},fullkriyah:{1:["31:1","31:3"],2:["31:4","31:6"],3:["31:7","31:9"],4:["31:10","31:13"],5:["31:14","31:19"],6:["31:20","31:24"],7:["31:25","31:30"],M:["31:28","31:30"]},weekday:{1:["31:1","31:3"],2:["31:4","31:6"],3:["31:7","31:13"]}},"Ha'azinu":{num:53,hebrew:"הַאֲזִינוּ",book:5,haft:{k:"II Samuel",b:"22:1",e:"22:51"},fullkriyah:{1:["32:1","32:6"],2:["32:7","32:12"],3:["32:13","32:18"],4:["32:19","32:28"],5:["32:29","32:39"],6:["32:40","32:43"],7:["32:44","32:52"],M:["32:48","32:52"]},weekday:{1:["32:1","32:3"],2:["32:4","32:6"],3:["32:7","32:12"]}},"Vezot Haberakhah":{num:54,hebrew:"וְזֹאת הַבְּרָכָה",book:5,haft:{k:"Joshua",b:"1:1",e:"1:18"},seph:{k:"Joshua",b:"1:1",e:"1:9"},fullkriyah:{1:["33:1","33:7"],2:["33:8","33:12"],3:["33:13","33:17"],4:["33:18","33:21"],5:["33:22","33:26"],6:["33:27","33:29"],7:["34:1","34:12"]},weekday:{1:["33:1","33:7"],2:["33:8","33:12"],3:["33:13","33:17"]}},"Vayakhel-Pekudei":{num:[22,23],combined:!0,p1:"Vayakhel",p2:"Pekudei",num1:22,num2:23,book:2,fullkriyah:{1:["35:1","35:29"],2:["35:30","37:16"],3:["37:17","37:29"],4:["38:1","39:1"],5:["39:2","39:21"],6:["39:22","39:43"],7:["40:1","40:38"],M:["40:34","40:38"]}},"Tazria-Metzora":{num:[27,28],combined:!0,p1:"Tazria",p2:"Metzora",num1:27,num2:28,book:3,fullkriyah:{1:["12:1","13:23"],2:["13:24","13:39"],3:["13:40","13:54"],4:["13:55","14:20"],5:["14:21","14:32"],6:["14:33","15:15"],7:["15:16","15:33"],M:["15:31","15:33"]}},"Achrei Mot-Kedoshim":{num:[29,30],combined:!0,p1:"Achrei Mot",p2:"Kedoshim",num1:29,num2:30,book:3,haft:{k:"Amos",b:"9:7",e:"9:15"},seph:{k:"Ezekiel",b:"20:2",e:"20:20"},fullkriyah:{1:["16:1","16:24"],2:["16:25","17:7"],3:["17:8","18:21"],4:["18:22","19:14"],5:["19:15","19:32"],6:["19:33","20:7"],7:["20:8","20:27"],M:["20:25","20:27"]}},"Behar-Bechukotai":{num:[32,33],combined:!0,p1:"Behar",p2:"Bechukotai",num1:32,num2:33,book:3,fullkriyah:{1:["25:1","25:18"],2:["25:19","25:28"],3:["25:29","25:38"],4:["25:39","26:9"],5:["26:10","26:46"],6:["27:1","27:15"],7:["27:16","27:34"],M:["27:32","27:34"]}},"Chukat-Balak":{num:[39,40],combined:!0,p1:"Chukat",p2:"Balak",num1:39,num2:40,book:4,fullkriyah:{1:["19:1","20:6"],2:["20:7","20:21"],3:["20:22","21:20"],4:["21:21","22:12"],5:["22:13","22:38"],6:["22:39","23:26"],7:["23:27","25:9"],M:["25:7","25:9"]}},"Matot-Masei":{num:[42,43],combined:!0,p1:"Matot",p2:"Masei",num1:42,num2:43,book:4,fullkriyah:{1:["30:2","31:12"],2:["31:13","31:54"],3:["32:1","32:19"],4:["32:20","33:49"],5:["33:50","34:15"],6:["34:16","35:8"],7:["35:9","36:13"],M:["36:11","36:13"]}},"Nitzavim-Vayeilech":{num:[51,52],combined:!0,p1:"Nitzavim",p2:"Vayeilech",num1:51,num2:52,book:5,fullkriyah:{1:["29:9","29:28"],2:["30:1","30:6"],3:["30:7","30:14"],4:["30:15","31:6"],5:["31:7","31:13"],6:["31:14","31:19"],7:["31:20","31:30"],M:["31:28","31:30"]}}};function ze(e){return{en:u(e),he:e.map((e=>a.Locale.lookupTranslation(e,"he"))).join("־")}}function $e(e){const a=Je(e),t={},h=b[a.book];for(const[e,r]of Object.entries(a.fullkriyah)){const a={k:h,b:r[0],e:r[1]};3===r.length&&(a.reason=r[2]),f(a),t[e]=a}const r=u(e),o=a.combined?[a.p1,a.p2]:[r],n=y(t),s=m(n),i={name:ze(o),parsha:o,parshaNum:a.num,summary:s,fullkriyah:t,haftara:"",haft:[]};n.length>1&&(i.summaryParts=n);const k=function(e){const a=e[0];return 2===e.length&&"Achrei Mot"===a?u(e):1===e.length||"Nitzavim"===a?a:e[1]}(o),l=Pe[k].haft;if(l){const e=i.haft=g(l);i.haftara=m(e),i.haftaraNumV=M(e)}const c=Pe[k].seph;if(c){const e=i.seph=g(c);i.sephardic=m(e),i.sephardicNumV=M(e)}return i}function Ke(e){const a=Je(e),t=(a.combined?Je(a.p1):a).weekday;if(!t)throw new Error(`Parsha missing weekday: ${e}`);const h=b[a.book],r={};for(let e=1;e<=3;e++){const a=""+e,o=t[a],n={k:h,b:o[0],e:o[1]};f(n),r[a]=n}return r}function Le(e,a=!1){if("object"!=typeof e||"function"!=typeof e.getFlags)throw new TypeError(`Bad event argument: ${e}`);if(e.getFlags()!==t.flags.PARSHA_HASHAVUA)throw new TypeError(`Event must be parsha hashavua: ${e.getDesc()}`);const h=e.parsha,r=$e(h),o=Ae(h,e.getDate(),a,r.fullkriyah),n=o.reason;if(o.haft){const e=r.haft=g(o.haft);if(r.haftara=m(e),r.haftaraNumV=M(e),o.seph){const e=r.seph=g(o.seph);r.sephardic=m(e),r.sephardicNumV=M(e)}else r.seph&&(delete r.seph,delete r.sephardic,delete r.sephardicNumV)}if(n[7]||n.M){r.fullkriyah=o.aliyot;const e=y(r.fullkriyah);r.summary=m(e),r.summaryParts=e}const s=Object.keys(n);if(0!==s.length){r.reason=n;for(const e of s)if("haftara"===e||"sephardic"===e){const a=r["haftara"===e?"haft":"seph"],t=Array.isArray(a)?a:[a];for(const a of t)a.reason=n[e]}else{const a=r.fullkriyah[e];"object"==typeof a&&(a.reason=n[e])}}return r}function Je(e){const t=u(e),h=Pe[t];if("object"!=typeof h)throw new TypeError(`Bad parsha argument: ${e}`);if(h.combined){const[e,r]=t.split("-");if(h.hebrew||(h.hebrew=a.Locale.gettext(e,"he")+"־"+a.Locale.gettext(r,"he")),!h.haft){const a="Nitzavim"===e?e:r;h.haft=Je(a).haft}}return h}const Fe=" (Mincha)";function Ve(e,a){const t=He(e.getDesc()+Fe,e.cholHaMoedDay,a);if(t)return t;const h=Te(e,a);if(h){const t=He(h+Fe,e.cholHaMoedDay,a);if(t)return t}}return Object.defineProperty(e,"Locale",{enumerable:!0,get:function(){return a.Locale}}),e.BOOK=b,e.NUM_VERSES=l,e.calculateNumVerses=f,e.clone=d,e.cloneHaftara=g,e.formatAliyahShort=c,e.formatAliyahWithBook=function(e){return`${e.k} ${e.b}-${e.e}`},e.getLeyningForHoliday=Ne,e.getLeyningForHolidayKey=He,e.getLeyningForParsha=function(e){const a=$e(e);return a.weekday=Ke(e),a},e.getLeyningForParshaHaShavua=Le,e.getLeyningKeyForEvent=Te,e.getLeyningOnDate=function(e,a,n=!1){const s=e.getDay(),i=[];let k=!1;if(6===s){const t=e.getFullYear(),h=r.getSedra(t,a).lookup(e);if(!h.chag){const t=Le(new o.ParshaEvent(e,h.parsha,a),a);if(!n)return t;k=!0,i.push(t)}}const b=h.getHolidaysOnDate(e,a)||[];let l=!1;for(const e of b){const h=Boolean(e.getFlags()&(t.flags.SPECIAL_SHABBAT|t.flags.ROSH_CHODESH));if(k&&h)continue;const r=Ne(e,a);if(r){if(i.some((e=>e.name.en===r.name.en)))continue;const t=r.fullkriyah;t&&(l=!0);k&&l&&t.M&&!t[1]||i.push(r);const h=Ve(e,a);h&&i.push(h);const o=e.getDesc();if(a&&"Sukkot VII (Hoshana Raba)"===o||!a&&"Shmini Atzeret"===o){const e=He("Erev Simchat Torah");i.push(e)}}}if(!l&&(1===s||4===s)){const t=function(e,a){const t=e.getFullYear(),h=r.getSedra(t,a),o=h.lookup(e);if(!o.chag)return o;if(e.getMonth()===K){const t=e.getDate();if(t>2&&t<=(a?22:23))return{parsha:["Vezot Haberakhah"],chag:!1,num:54,hdate:e}}const n=new Ie(1,K,t+1).abs()-1,s=n+30;for(let o=e.abs()+7;o<=s;o+=7){const e=(o>n?r.getSedra(t+1,a):h).lookup(o);if(!e.chag)return e}throw new Error(`can't findParshaHaShavua for ${e}/${a}`)}(e.onOrAfter(6),a),h=Ke(t.parsha),o=y(h),n={name:ze(t.parsha),parsha:t.parsha,parshaNum:t.num,weekday:h,summary:m(o)};i.unshift(n)}return n?i:i[0]},e.getWeekdayReading=Ke,e.hasFestival=S,e.lookupFestival=I,e.lookupParsha=Je,e.makeLeyningNames=ze,e.makeLeyningParts=y,e.makeLeyningSummary=function(e){return m(y(e))},e.makeSummaryFromParts=m,e.parshaToString=u,e.specialReadings2=Ae,e.sumVerses=M,e}({},hebcal,hebcal,hebcal,hebcal,hebcal);
|
|
1
|
+
/*! @hebcal/leyning v9.1.0 */
|
|
2
|
+
var hebcal__leyning=function(e,a,t,h,r,o){"use strict";var n={headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"he_IL"},contexts:{"":{"Shabbat Machar Chodesh":["שַׁבָּת מָחָר חוֹדֶשׁ"],"Shabbat Rosh Chodesh":["שַׁבָּת רֹאשׁ חוֹדֶשׁ"],"Pesach I (on Shabbat)":["פֶּסַח יוֹם א׳ (בְּשַׁבָּת)"],"Pesach Chol ha-Moed Day 1":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם א׳"],"Pesach Chol ha-Moed Day 2":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ב׳"],"Pesach Chol ha-Moed Day 2 on Sunday":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ב׳ (בְּיוֹם רִאשׁוֹן)"],"Pesach Chol ha-Moed Day 3":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ג׳"],"Pesach Chol ha-Moed Day 3 on Monday":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ג׳ (בְּיוֹם שָׁנִי)"],"Pesach Chol ha-Moed Day 4":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ד׳"],"Pesach Chol ha-Moed Day 5":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ה׳"],"Pesach Shabbat Chol ha-Moed":["פֶּסַח שַׁבָּת חוֹל הַמּוֹעֵד"],"Pesach VII (on Shabbat)":["פֶּסַח ז׳ (בְּשַׁבָּת)"],"Pesach VIII (on Shabbat)":["פֶּסַח ח׳ (בְּשַׁבָּת)"],"Shavuot II (on Shabbat)":["שָׁבוּעוֹת יוֹם ב׳ (בְּשַׁבָּת)"],"Rosh Hashana I (on Shabbat)":["רֹאשׁ הַשָּׁנָה יוֹם א׳ (בְּשַׁבָּת)"],"Yom Kippur (on Shabbat)":["יוֹם כִּפּוּר (בְּשַׁבָּת)"],"Yom Kippur (Mincha, Traditional)":["יוֹם כִּפּוּר מִנחָה"],"Yom Kippur (Mincha, Alternate)":["יוֹם כִּפּוּר מִנחָה"],"Sukkot I (on Shabbat)":["סוּכּוֹת יוֹם א׳ (בְּשַׁבָּת)"],"Sukkot Chol ha-Moed Day 1":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם א׳"],"Sukkot Chol ha-Moed Day 2":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ב׳"],"Sukkot Chol ha-Moed Day 3":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ג׳"],"Sukkot Chol ha-Moed Day 4":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ד׳"],"Sukkot Chol ha-Moed Day 5":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ה׳"],"Sukkot Shabbat Chol ha-Moed":["סוּכּוֹת שַׁבָּת חוֹל הַמּוֹעֵד"],"Sukkot Final Day (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Shmini Atzeret (on Shabbat)":["שְׁמִינִי עֲצֶרֶת (בְּשַׁבָּת)"],"Chanukah Day 1":["חֲנוּכָּה יוֹם א׳"],"Chanukah Day 2":["חֲנוּכָּה יוֹם ב׳"],"Chanukah Day 3":["חֲנוּכָּה יוֹם ג׳"],"Chanukah Day 4":["חֲנוּכָּה יוֹם ד׳"],"Chanukah Day 5":["חֲנוּכָּה יוֹם ה׳"],"Chanukah Day 6":["חֲנוּכָּה יוֹם ו׳"],"Chanukah Day 7":["חֲנוּכָּה יוֹם ז׳"],"Chanukah Day 7 (on Rosh Chodesh)":["חֲנוּכָּה יוֹם ז׳ (רֹאשׁ חוֹדֶשׁ)"],"Chanukah Day 8":["חֲנוּכָּה יוֹם ח׳"],"Chanukah Day 1 (on Shabbat)":["חֲנוּכָּה יוֹם א׳ (בְּשַׁבָּת)"],"Chanukah Day 2 (on Shabbat)":["חֲנוּכָּה יוֹם ב׳ (בְּשַׁבָּת)"],"Chanukah Day 3 (on Shabbat)":["חֲנוּכָּה יוֹם ג׳ (בְּשַׁבָּת)"],"Chanukah Day 4 (on Shabbat)":["חֲנוּכָּה יוֹם ד׳ (בְּשַׁבָּת)"],"Chanukah Day 5 (on Shabbat)":["חֲנוּכָּה יוֹם ה׳ (בְּשַׁבָּת)"],"Chanukah Day 7 (on Shabbat)":["חֲנוּכָּה יוֹם ז׳ (בְּשַׁבָּת)"],"Chanukah Day 8 (on Shabbat)":["חֲנוּכָּה יוֹם ח׳ (בְּשַׁבָּת)"],"Shabbat Rosh Chodesh Chanukah":["שַׁבָּת רֹאשׁ חוֹדֶשׁ חֲנוּכָּה"],"Yom Kippur (Mincha)":["יוֹם כִּפּוּר מִנחָה"],"Tish'a B'Av (Mincha)":["תִּשְׁעָה בְּאָב מִנחָה"],"Asara B'Tevet (Mincha)":["עֲשָׂרָה בְּטֵבֵת מִנחָה"],"Ta'anit Bechorot (Mincha)":["תַּעֲנִית בְּכוֹרוֹת מִנחָה"],"Ta'anit Esther (Mincha)":["תַּעֲנִית אֶסְתֵּר מִנחָה"],"Tzom Gedaliah (Mincha)":["צוֹם גְּדַלְיָה מִנחָה"],"Tzom Tammuz (Mincha)":["צוֹם תָּמוּז מִנחָה"]}}};a.Locale.addTranslations("he",n),a.Locale.addTranslations("h",n);const s=n.contexts[""],i={};for(const[e,t]of Object.entries(s))i[e]=[a.Locale.hebrewStripNikkud(t[0])];const k={headers:n.headers,contexts:{"":i}};a.Locale.addTranslations("he-x-NoNikud",k);const b=["","Genesis","Exodus","Leviticus","Numbers","Deuteronomy"],l={Genesis:[0,31,25,24,26,32,22,24,22,29,32,32,20,18,24,21,16,27,33,38,18,34,24,20,67,34,35,46,22,35,43,54,33,20,31,29,43,36,30,23,23,57,38,34,34,28,34,31,22,33,26],Exodus:[0,22,25,22,31,23,30,29,28,35,29,10,51,22,31,27,36,16,27,25,23,37,30,33,18,40,37,21,43,46,38,18,35,23,35,35,38,29,31,43,38],Leviticus:[0,17,16,17,35,26,23,38,36,24,20,47,8,59,57,33,34,16,30,37,27,24,33,44,23,55,46,34],Numbers:[0,54,34,51,49,31,27,89,26,23,36,35,16,33,45,41,35,28,32,22,29,35,41,30,25,19,65,23,31,39,17,54,42,56,29,34,13],Deuteronomy:[0,46,37,29,49,30,25,26,20,29,22,32,31,19,29,23,22,20,22,21,20,23,29,26,22,19,19,26,69,28,20,30,52,29,12],Joshua:[0,18,24,17,24,15,27,26,35,27,43,23,24,33,15,63,10,18,28,51,9,45,34,16,33],Judges:[0,36,23,31,24,31,40,25,35,57,18,40,15,25,20,20,31,13,31,30,48,25],Ruth:[0,22,23,18,22],"I Samuel":[0,28,36,21,22,12,21,17,22,27,27,15,25,23,52,35,23,58,30,24,42,16,23,28,23,43,25,12,25,11,31,13],"II Samuel":[0,27,32,39,12,25,23,29,18,13,19,27,31,39,33,37,23,29,32,44,26,22,51,39,25],"I Kings":[0,53,46,28,20,32,38,51,66,28,29,43,33,34,31,34,34,24,46,21,43,29,54],"II Kings":[0,18,25,27,44,27,33,20,29,37,36,20,22,25,29,38,20,41,37,37,21,26,20,37,20,30],Isaiah:[0,31,22,26,6,30,13,25,23,20,34,16,6,22,32,9,14,14,7,25,6,17,25,18,23,12,21,13,29,24,33,9,20,24,17,10,22,38,22,8,31,29,25,28,28,25,13,15,22,26,11,23,15,12,17,13,12,21,14,21,22,11,12,19,11,25,24],Jeremiah:[0,19,37,25,31,31,30,34,23,25,25,23,17,27,22,21,21,27,23,15,18,14,30,40,10,38,24,22,17,32,24,40,44,26,22,19,32,21,28,18,16,18,22,13,30,5,28,7,47,39,46,64,34],Lamentations:[0,22,22,66,22,22],Baruch:[0,22,35,38,37,9,72],Esther:[0,22,23,15,17,14,14,10,17,32,3],Ecclesiastes:[0,18,26,22,17,19,12,29,17,18,20,10,14],"Song of Songs":[0,17,17,11,16,16,12,14,14],Ezekiel:[0,28,10,27,17,17,14,27,18,11,22,25,28,23,23,8,63,24,32,14,44,37,31,49,27,17,21,36,26,21,26,18,32,33,31,15,38,28,23,29,49,26,20,27,31,25,24,23,35],Daniel:[0,21,49,100,34,30,29,28,27,27,21,45,13,64,42],Hosea:[0,9,25,5,19,15,11,16,14,17,15,11,15,15,10],Joel:[0,20,27,5,21],Amos:[0,15,16,15,13,27,14,17,14,15],Obadiah:[0,21],Jonah:[0,16,11,10,11],Micah:[0,16,13,12,14,14,16,20],Nachum:[0,14,14,19],Habakkuk:[0,17,20,19],Zephaniah:[0,18,15,20],Haggai:[0,15,23],Zechariah:[0,17,17,10,14,11,15,14,23,17,12,17,14,9,21],Malachi:[0,14,17,24]};function u(e){if("string"==typeof e)return e;if(!Array.isArray(e)||0===e.length||e.length>2)throw new TypeError(`Bad parsha argument: ${e}`);let a=e[0];return 2===e.length&&(a+="-"+e[1]),a}function f(e){return e.v||(e.v=c(e.k,e.b,e.e)+1),e.v}function c(e,a,t){const h=a.split(":"),r=t.split(":"),o=parseInt(h[0],10),n=parseInt(r[0],10),s=parseInt(h[1],10),i=parseInt(r[1],10);let k=0;if(o===n)return i-s;const b=l[e];if("object"!=typeof b||!b.length)throw new ReferenceError(`Can't find numverses for ${e}`);let u=b[o]-s;for(let e=o+1;e<n;e++)u+=b[e];return u+=i,k=u,k}function p(e,a){const t=e.b,h=e.e,r=a?e.k+" ":"";if(t===h)return`${r}${t}`;const o=t.split(":"),n=h.split(":");return`${r}${t}-${o[0]===n[0]?n[1]:h}`}function y(e,a){const t=e.split(":").map((e=>+e)),h=a.split(":").map((e=>+e));return 100*t[0]+t[1]<100*h[0]+h[1]}function m(e){const a=Object.keys(e).filter((e=>{if(1===e.length)return!0;const a=e.charCodeAt(0);return a>=48&&a<=57}));let t=e[a[0]],h=t;const r=[];for(let o=0;o<a.length;o++){const n=e[a[o]];if(o===a.length-1&&n.k===h.k&&n.e===h.e)continue;const s=+h.e.split(":")[0],i=+n.b.split(":")[0],k=i===s||i===s+1;0===o||n.k===t.k&&!y(n.b,t.e)&&k||(r.push({k:t.k,b:t.b,e:h.e}),t=n),h=n}return r.push({k:t.k,b:t.b,e:h.e}),r}function d(e){Array.isArray(e)||(e=[e]);let a=e[0],t=p(a,!0);for(let h=1;h<e.length;h++){const r=e[h];r.k===a.k?t+=", ":t+=`; ${r.k} `,t+=p(r,!1),a=r}return t}function g(e){return JSON.parse(JSON.stringify(e))}function M(e){if(!e)return e;const a=g(e);return Array.isArray(a)?a.map(f):f(a),a}function w(e){return Array.isArray(e)?e.reduce(((e,a)=>e+a.v),0):e.v}const S={"Pesach I":{haft:[{k:"Joshua",b:"3:5",e:"3:7"},{k:"Joshua",b:"5:2",e:"6:1"},{k:"Joshua",b:"6:27",e:"6:27"}],seph:[{k:"Joshua",b:"5:2",e:"6:1"},{k:"Joshua",b:"6:27",e:"6:27"}],fullkriyah:{1:{p:15,k:2,b:"12:21",e:"12:24"},2:{p:15,k:2,b:"12:25",e:"12:28"},3:{p:15,k:2,b:"12:29",e:"12:36"},4:{p:15,k:2,b:"12:37",e:"12:42"},5:{p:15,k:2,b:"12:43",e:"12:51"},M:{p:41,k:4,b:"28:16",e:"28:25"}}},"Pesach I (on Shabbat)":{haft:[{k:"Joshua",b:"3:5",e:"3:7"},{k:"Joshua",b:"5:2",e:"6:1"},{k:"Joshua",b:"6:27",e:"6:27"}],seph:[{k:"Joshua",b:"5:2",e:"6:1"},{k:"Joshua",b:"6:27",e:"6:27"}],fullkriyah:{1:{p:15,k:2,b:"12:21",e:"12:24"},2:{p:15,k:2,b:"12:25",e:"12:28"},3:{p:15,k:2,b:"12:29",e:"12:32"},4:{p:15,k:2,b:"12:33",e:"12:36"},5:{p:15,k:2,b:"12:37",e:"12:42"},6:{p:15,k:2,b:"12:43",e:"12:47"},7:{p:15,k:2,b:"12:48",e:"12:51"},M:{p:41,k:4,b:"28:16",e:"28:25"}}},"Pesach II":{haft:[{k:"II Kings",b:"23:1",e:"23:9"},{k:"II Kings",b:"23:21",e:"23:25"}],fullkriyah:{1:{p:31,k:3,b:"22:26",e:"23:3"},2:{p:31,k:3,b:"23:4",e:"23:14"},3:{p:31,k:3,b:"23:15",e:"23:22"},4:{p:31,k:3,b:"23:23",e:"23:32"},5:{p:31,k:3,b:"23:33",e:"23:44"},M:{p:41,k:4,b:"28:16",e:"28:25"}}},"Pesach II (CH''M)":{note:"Israel only - according to Vaani T'fillati Siddur Yisraeli",il:!0,fullkriyah:{1:{p:31,k:3,b:"22:26",e:"23:8"},2:{p:31,k:3,b:"23:9",e:"23:14"},3:{p:31,k:3,b:"23:15",e:"23:44"},4:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Chol ha-Moed Day 1":{fullkriyah:{1:{p:15,k:2,b:"13:1",e:"13:4"},2:{p:15,k:2,b:"13:5",e:"13:10"},3:{p:15,k:2,b:"13:11",e:"13:16"},4:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Chol ha-Moed Day 2":{fullkriyah:{1:{p:18,k:2,b:"22:24",e:"22:26"},2:{p:18,k:2,b:"22:27",e:"23:5"},3:{p:18,k:2,b:"23:6",e:"23:19"},4:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Chol ha-Moed Day 3":{fullkriyah:{1:{p:21,k:2,b:"34:1",e:"34:10"},2:{p:21,k:2,b:"34:11",e:"34:17"},3:{p:21,k:2,b:"34:18",e:"34:26"},4:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Chol ha-Moed Day 4":{fullkriyah:{1:{p:36,k:4,b:"9:1",e:"9:5"},2:{p:36,k:4,b:"9:6",e:"9:8"},3:{p:36,k:4,b:"9:9",e:"9:14"},4:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Shabbat Chol ha-Moed":{megillah:"Song of Songs",haft:{k:"Ezekiel",b:"37:1",e:"37:14"},fullkriyah:{1:{p:21,k:2,b:"33:12",e:"33:16"},2:{p:21,k:2,b:"33:17",e:"33:19"},3:{p:21,k:2,b:"33:20",e:"33:23"},4:{p:21,k:2,b:"34:1",e:"34:3"},5:{p:21,k:2,b:"34:4",e:"34:10"},6:{p:21,k:2,b:"34:11",e:"34:17"},7:{p:21,k:2,b:"34:18",e:"34:26"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach VII":{haft:{k:"II Samuel",b:"22:1",e:"22:51"},fullkriyah:{1:{p:16,k:2,b:"13:17",e:"13:22"},2:{p:16,k:2,b:"14:1",e:"14:8"},3:{p:16,k:2,b:"14:9",e:"14:14"},4:{p:16,k:2,b:"14:15",e:"14:25"},5:{p:16,k:2,b:"14:26",e:"15:26"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach VII (on Shabbat)":{megillah:"Song of Songs",haft:{k:"II Samuel",b:"22:1",e:"22:51"},fullkriyah:{1:{p:16,k:2,b:"13:17",e:"13:19"},2:{p:16,k:2,b:"13:20",e:"13:22"},3:{p:16,k:2,b:"14:1",e:"14:4"},4:{p:16,k:2,b:"14:5",e:"14:8"},5:{p:16,k:2,b:"14:9",e:"14:14"},6:{p:16,k:2,b:"14:15",e:"14:25"},7:{p:16,k:2,b:"14:26",e:"15:26"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach VIII":{haft:{k:"Isaiah",b:"10:32",e:"12:6"},fullkriyah:{1:{p:47,k:5,b:"15:19",e:"15:23"},2:{p:47,k:5,b:"16:1",e:"16:3"},3:{p:47,k:5,b:"16:4",e:"16:8"},4:{p:47,k:5,b:"16:9",e:"16:12"},5:{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach VIII (on Shabbat)":{megillah:"Song of Songs",haft:{k:"Isaiah",b:"10:32",e:"12:6"},fullkriyah:{1:{p:47,k:5,b:"14:22",e:"14:29"},2:{p:47,k:5,b:"15:1",e:"15:18"},3:{p:47,k:5,b:"15:19",e:"15:23"},4:{p:47,k:5,b:"16:1",e:"16:3"},5:{p:47,k:5,b:"16:4",e:"16:8"},6:{p:47,k:5,b:"16:9",e:"16:12"},7:{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach III (CH''M)":{alias:!0,il:!0,key:"Pesach Chol ha-Moed Day 1"},"Pesach IV (CH''M)":{alias:!0,il:!0,key:"Pesach Chol ha-Moed Day 2"},"Pesach V (CH''M)":{alias:!0,il:!0,key:"Pesach Chol ha-Moed Day 3"},"Pesach VI (CH''M)":{alias:!0,il:!0,key:"Pesach Chol ha-Moed Day 4"},"Pesach Chol ha-Moed Day 2 on Sunday":{alias:!0,il:!1,key:"Pesach Chol ha-Moed Day 1"},"Pesach Chol ha-Moed Day 3 on Monday":{alias:!0,il:!1,key:"Pesach Chol ha-Moed Day 2"},Shavuot:{note:"Israel only",il:!0,megillah:"Ruth",haft:[{k:"Ezekiel",b:"1:1",e:"1:28"},{k:"Ezekiel",b:"3:12",e:"3:12"}],fullkriyah:{1:{p:17,k:2,b:"19:1",e:"19:6"},2:{p:17,k:2,b:"19:7",e:"19:13"},3:{p:17,k:2,b:"19:14",e:"19:19"},4:{p:17,k:2,b:"19:20",e:"20:14"},5:{p:17,k:2,b:"20:15",e:"20:23"},M:{p:41,k:4,b:"28:26",e:"28:31"}}},"Shavuot I":{haft:[{k:"Ezekiel",b:"1:1",e:"1:28"},{k:"Ezekiel",b:"3:12",e:"3:12"}],fullkriyah:{1:{p:17,k:2,b:"19:1",e:"19:6"},2:{p:17,k:2,b:"19:7",e:"19:13"},3:{p:17,k:2,b:"19:14",e:"19:19"},4:{p:17,k:2,b:"19:20",e:"20:14"},5:{p:17,k:2,b:"20:15",e:"20:23"},M:{p:41,k:4,b:"28:26",e:"28:31"}}},"Shavuot II":{megillah:"Ruth",haft:{k:"Habakkuk",b:"3:1",e:"3:19"},seph:{k:"Habakkuk",b:"2:20",e:"3:19"},fullkriyah:{1:{p:47,k:5,b:"15:19",e:"15:23"},2:{p:47,k:5,b:"16:1",e:"16:3"},3:{p:47,k:5,b:"16:4",e:"16:8"},4:{p:47,k:5,b:"16:9",e:"16:12"},5:{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"28:26",e:"28:31"}}},"Shavuot II (on Shabbat)":{megillah:"Ruth",haft:{k:"Habakkuk",b:"3:1",e:"3:19"},seph:{k:"Habakkuk",b:"2:20",e:"3:19"},fullkriyah:{1:{p:47,k:5,b:"14:22",e:"14:29"},2:{p:47,k:5,b:"15:1",e:"15:18"},3:{p:47,k:5,b:"15:19",e:"15:23"},4:{p:47,k:5,b:"16:1",e:"16:3"},5:{p:47,k:5,b:"16:4",e:"16:8"},6:{p:47,k:5,b:"16:9",e:"16:12"},7:{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"28:26",e:"28:31"}}},"Fast Day (Morning)":{fullkriyah:{1:{p:21,k:2,b:"32:11",e:"32:14"},2:{p:21,k:2,b:"34:1",e:"34:3"},3:{p:21,k:2,b:"34:4",e:"34:10"}}},"Fast Day (Afternoon)":{haft:{k:"Isaiah",b:"55:6",e:"56:8"},fullkriyah:{1:{p:21,k:2,b:"32:11",e:"32:14"},2:{p:21,k:2,b:"34:1",e:"34:3"},M:{p:21,k:2,b:"34:4",e:"34:10"}}},"Asara B'Tevet":{alias:!0,key:"Fast Day (Morning)"},"Ta'anit Esther":{alias:!0,key:"Fast Day (Morning)"},"Tzom Gedaliah":{alias:!0,key:"Fast Day (Morning)"},"Tzom Tammuz":{alias:!0,key:"Fast Day (Morning)"},"Asara B'Tevet (Mincha)":{alias:!0,key:"Fast Day (Afternoon)"},"Ta'anit Esther (Mincha)":{alias:!0,key:"Fast Day (Afternoon)"},"Tzom Gedaliah (Mincha)":{alias:!0,key:"Fast Day (Afternoon)"},"Tzom Tammuz (Mincha)":{alias:!0,key:"Fast Day (Afternoon)"},"Erev Tish'a B'Av":{megillah:"Lamentations"},"Tish'a B'Av":{haft:{k:"Jeremiah",b:"8:13",e:"9:23"},fullkriyah:{1:{p:45,k:5,b:"4:25",e:"4:29"},2:{p:45,k:5,b:"4:30",e:"4:35"},3:{p:45,k:5,b:"4:36",e:"4:40"}}},"Tish'a B'Av (Mincha)":{alias:!0,key:"Fast Day (Afternoon)"},"Rosh Hashana I":{haft:{k:"I Samuel",b:"1:1",e:"2:10"},fullkriyah:{1:{p:4,k:1,b:"21:1",e:"21:4"},2:{p:4,k:1,b:"21:5",e:"21:12"},3:{p:4,k:1,b:"21:13",e:"21:21"},4:{p:4,k:1,b:"21:22",e:"21:27"},5:{p:4,k:1,b:"21:28",e:"21:34"},M:{p:41,k:4,b:"29:1",e:"29:6"}}},"Rosh Hashana I (on Shabbat)":{haft:{k:"I Samuel",b:"1:1",e:"2:10"},fullkriyah:{1:{p:4,k:1,b:"21:1",e:"21:4"},2:{p:4,k:1,b:"21:5",e:"21:8"},3:{p:4,k:1,b:"21:9",e:"21:12"},4:{p:4,k:1,b:"21:13",e:"21:17"},5:{p:4,k:1,b:"21:18",e:"21:21"},6:{p:4,k:1,b:"21:22",e:"21:27"},7:{p:4,k:1,b:"21:28",e:"21:34"},M:{p:41,k:4,b:"29:1",e:"29:6"}}},"Rosh Hashana II":{haft:{k:"Jeremiah",b:"31:2",e:"31:20",note:"labeled 31:1–19 in some books"},fullkriyah:{1:{p:4,k:1,b:"22:1",e:"22:3"},2:{p:4,k:1,b:"22:4",e:"22:8"},3:{p:4,k:1,b:"22:9",e:"22:14"},4:{p:4,k:1,b:"22:15",e:"22:19"},5:{p:4,k:1,b:"22:20",e:"22:24"},M:{p:41,k:4,b:"29:1",e:"29:6"}}},"Yom Kippur":{haft:{k:"Isaiah",b:"57:14",e:"58:14"},fullkriyah:{1:{p:29,k:3,b:"16:1",e:"16:6"},2:{p:29,k:3,b:"16:7",e:"16:11"},3:{p:29,k:3,b:"16:12",e:"16:17"},4:{p:29,k:3,b:"16:18",e:"16:24"},5:{p:29,k:3,b:"16:25",e:"16:30"},6:{p:29,k:3,b:"16:31",e:"16:34"},M:{p:41,k:4,b:"29:7",e:"29:11"}}},"Yom Kippur (on Shabbat)":{haft:{k:"Isaiah",b:"57:14",e:"58:14"},fullkriyah:{1:{p:29,k:3,b:"16:1",e:"16:3"},2:{p:29,k:3,b:"16:4",e:"16:6"},3:{p:29,k:3,b:"16:7",e:"16:11"},4:{p:29,k:3,b:"16:12",e:"16:17"},5:{p:29,k:3,b:"16:18",e:"16:24"},6:{p:29,k:3,b:"16:25",e:"16:30"},7:{p:29,k:3,b:"16:31",e:"16:34"},M:{p:41,k:4,b:"29:7",e:"29:11"}}},"Yom Kippur (Mincha)":{alias:!0,key:"Yom Kippur (Mincha, Traditional)"},"Yom Kippur (Mincha, Traditional)":{haft:[{k:"Jonah",b:"1:1",e:"4:11"},{k:"Micah",b:"7:18",e:"7:20"}],fullkriyah:{1:{p:29,k:3,b:"18:1",e:"18:5"},2:{p:29,k:3,b:"18:6",e:"18:21"},M:{p:29,k:3,b:"18:22",e:"18:30"}}},"Yom Kippur (Mincha, Alternate)":{haft:[{k:"Jonah",b:"1:1",e:"4:11"},{k:"Micah",b:"7:18",e:"7:20"}],fullkriyah:{1:{p:30,k:3,b:"19:1",e:"19:4"},2:{p:30,k:3,b:"19:5",e:"19:10"},M:{p:30,k:3,b:"19:11",e:"19:18"}}},"Sukkot I":{haft:{k:"Zechariah",b:"14:1",e:"14:21"},fullkriyah:{1:{p:31,k:3,b:"22:26",e:"23:3"},2:{p:31,k:3,b:"23:4",e:"23:14"},3:{p:31,k:3,b:"23:15",e:"23:22"},4:{p:31,k:3,b:"23:23",e:"23:32"},5:{p:31,k:3,b:"23:33",e:"23:44"},M:{p:41,k:4,b:"29:12",e:"29:16"}}},"Sukkot I (on Shabbat)":{haft:{k:"Zechariah",b:"14:1",e:"14:21"},fullkriyah:{1:{p:31,k:3,b:"22:26",e:"22:33"},2:{p:31,k:3,b:"23:1",e:"23:3"},3:{p:31,k:3,b:"23:4",e:"23:8"},4:{p:31,k:3,b:"23:9",e:"23:14"},5:{p:31,k:3,b:"23:15",e:"23:22"},6:{p:31,k:3,b:"23:23",e:"23:32"},7:{p:31,k:3,b:"23:33",e:"23:44"},M:{p:41,k:4,b:"29:12",e:"29:16"}}},"Sukkot II":{haft:{k:"I Kings",b:"8:2",e:"8:21"},fullkriyah:{1:{p:31,k:3,b:"22:26",e:"23:3"},2:{p:31,k:3,b:"23:4",e:"23:14"},3:{p:31,k:3,b:"23:15",e:"23:22"},4:{p:31,k:3,b:"23:23",e:"23:32"},5:{p:31,k:3,b:"23:33",e:"23:44"},M:{p:41,k:4,b:"29:12",e:"29:16"}}},"Sukkot Chol ha-Moed Day 1":{fullkriyah:{1:{p:41,k:4,b:"29:17",e:"29:19"},2:{p:41,k:4,b:"29:20",e:"29:22"},3:{p:41,k:4,b:"29:23",e:"29:25"},4:{p:41,k:4,b:"29:17",e:"29:22"}}},"Sukkot Chol ha-Moed Day 2":{fullkriyah:{1:{p:41,k:4,b:"29:20",e:"29:22"},2:{p:41,k:4,b:"29:23",e:"29:25"},3:{p:41,k:4,b:"29:26",e:"29:28"},4:{p:41,k:4,b:"29:20",e:"29:25"}}},"Sukkot Chol ha-Moed Day 3":{fullkriyah:{1:{p:41,k:4,b:"29:23",e:"29:25"},2:{p:41,k:4,b:"29:26",e:"29:28"},3:{p:41,k:4,b:"29:29",e:"29:31"},4:{p:41,k:4,b:"29:23",e:"29:28"}}},"Sukkot Chol ha-Moed Day 4":{fullkriyah:{1:{p:41,k:4,b:"29:26",e:"29:28"},2:{p:41,k:4,b:"29:29",e:"29:31"},3:{p:41,k:4,b:"29:32",e:"29:34"},4:{p:41,k:4,b:"29:26",e:"29:31"}}},"Sukkot Chol ha-Moed Day 5":{fullkriyah:{1:{p:41,k:4,b:"29:29",e:"29:31"},2:{p:41,k:4,b:"29:32",e:"29:34"},3:{p:41,k:4,b:"29:35",e:"29:37"},4:{p:41,k:4,b:"29:29",e:"29:34"}}},"Sukkot Shabbat Chol ha-Moed":{megillah:"Ecclesiastes",haft:{k:"Ezekiel",b:"38:18",e:"39:16"},fullkriyah:{1:{p:21,k:2,b:"33:12",e:"33:16"},2:{p:21,k:2,b:"33:17",e:"33:19"},3:{p:21,k:2,b:"33:20",e:"33:23"},4:{p:21,k:2,b:"34:1",e:"34:3"},5:{p:21,k:2,b:"34:4",e:"34:10"},6:{p:21,k:2,b:"34:11",e:"34:17"},7:{p:21,k:2,b:"34:18",e:"34:26"},"M-day1":{p:41,k:4,b:"29:17",e:"29:22"},"M-day2":{p:41,k:4,b:"29:20",e:"29:25"},"M-day3":{p:41,k:4,b:"29:23",e:"29:28"},"M-day4":{p:41,k:4,b:"29:26",e:"29:31"},"M-day5":{p:41,k:4,b:"29:29",e:"29:34"}}},"Sukkot Final Day (Hoshana Raba)":{fullkriyah:{1:{p:41,k:4,b:"29:26",e:"29:28"},2:{p:41,k:4,b:"29:29",e:"29:31"},3:{p:41,k:4,b:"29:32",e:"29:34"},4:{p:41,k:4,b:"29:29",e:"29:34"}}},"Shmini Atzeret":{haft:{k:"I Kings",b:"8:54",e:"8:66"},fullkriyah:{1:{p:47,k:5,b:"14:22",e:"14:29"},2:{p:47,k:5,b:"15:1",e:"15:18"},3:{p:47,k:5,b:"15:19",e:"16:3"},4:{p:47,k:5,b:"16:4",e:"16:8"},5:{p:47,k:5,b:"16:9",e:"16:17"},M:{p:41,k:4,b:"29:35",e:"30:1"}}},"Shmini Atzeret (on Shabbat)":{megillah:"Ecclesiastes",haft:{k:"I Kings",b:"8:54",e:"8:66"},fullkriyah:{1:{p:47,k:5,b:"14:22",e:"14:29"},2:{p:47,k:5,b:"15:1",e:"15:18"},3:{p:47,k:5,b:"15:19",e:"15:23"},4:{p:47,k:5,b:"16:1",e:"16:3"},5:{p:47,k:5,b:"16:4",e:"16:8"},6:{p:47,k:5,b:"16:9",e:"16:12"},7:{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"29:35",e:"30:1"}}},"Erev Simchat Torah":{fullkriyah:{1:{p:54,k:5,b:"33:1",e:"33:7"},2:{p:54,k:5,b:"33:8",e:"33:12"},3:{p:54,k:5,b:"33:13",e:"33:17"}}},"Simchat Torah":{haft:{k:"Joshua",b:"1:1",e:"1:18"},fullkriyah:{1:{p:54,k:5,b:"33:1",e:"33:7"},2:{p:54,k:5,b:"33:8",e:"33:12"},3:{p:54,k:5,b:"33:13",e:"33:17"},4:{p:54,k:5,b:"33:18",e:"33:21"},5:{p:54,k:5,b:"33:22",e:"33:26"},6:{p:54,k:5,b:"33:27",e:"34:12"},7:{p:1,k:1,b:"1:1",e:"2:3"},M:{p:41,k:4,b:"29:35",e:"30:1"}}},"Simchat Torah (on Shabbat)":{megillah:"Ecclesiastes",haft:{k:"Joshua",b:"1:1",e:"1:18"},fullkriyah:{1:{p:54,k:5,b:"33:1",e:"33:7"},2:{p:54,k:5,b:"33:8",e:"33:12"},3:{p:54,k:5,b:"33:13",e:"33:17"},4:{p:54,k:5,b:"33:18",e:"33:21"},5:{p:54,k:5,b:"33:22",e:"33:26"},6:{p:54,k:5,b:"33:27",e:"33:29"},7:{p:54,k:5,b:"34:1",e:"34:12"},8:{p:1,k:1,b:"1:1",e:"2:3"},M:{p:41,k:4,b:"29:35",e:"30:1"}}},"Shabbat Rosh Chodesh Chanukah":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{7:{p:41,k:4,b:"28:9",e:"28:15"},M:{p:35,k:4,b:"7:42",e:"7:47"}}},"Chanukah Day 1":{fullkriyah:{1:{p:35,k:4,b:"7:1",e:"7:11"},2:{p:35,k:4,b:"7:12",e:"7:14"},3:{p:35,k:4,b:"7:15",e:"7:17"}},alt:{1:{p:35,k:4,b:"7:1",e:"7:3"},2:{p:35,k:4,b:"7:4",e:"7:11"},3:{p:35,k:4,b:"7:12",e:"7:17"}}},"Chanukah Day 1 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:1",e:"7:17"}}},"Chanukah Day 2":{fullkriyah:{1:{p:35,k:4,b:"7:18",e:"7:20"},2:{p:35,k:4,b:"7:21",e:"7:23"},3:{p:35,k:4,b:"7:24",e:"7:29"}},alt:{1:{p:35,k:4,b:"7:18",e:"7:20"},2:{p:35,k:4,b:"7:21",e:"7:23"},3:{p:35,k:4,b:"7:18",e:"7:23"}}},"Chanukah Day 2 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:18",e:"7:23"}}},"Chanukah Day 3":{fullkriyah:{1:{p:35,k:4,b:"7:24",e:"7:26"},2:{p:35,k:4,b:"7:27",e:"7:29"},3:{p:35,k:4,b:"7:30",e:"7:35"}},alt:{1:{p:35,k:4,b:"7:24",e:"7:26"},2:{p:35,k:4,b:"7:27",e:"7:29"},3:{p:35,k:4,b:"7:24",e:"7:29"}}},"Chanukah Day 3 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:24",e:"7:29"}}},"Chanukah Day 4":{fullkriyah:{1:{p:35,k:4,b:"7:30",e:"7:32"},2:{p:35,k:4,b:"7:33",e:"7:35"},3:{p:35,k:4,b:"7:36",e:"7:41"}},alt:{1:{p:35,k:4,b:"7:30",e:"7:32"},2:{p:35,k:4,b:"7:33",e:"7:35"},3:{p:35,k:4,b:"7:30",e:"7:35"}}},"Chanukah Day 4 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:30",e:"7:35"}}},"Chanukah Day 5":{fullkriyah:{1:{p:35,k:4,b:"7:36",e:"7:38"},2:{p:35,k:4,b:"7:39",e:"7:41"},3:{p:35,k:4,b:"7:42",e:"7:47"}},alt:{1:{p:35,k:4,b:"7:36",e:"7:38"},2:{p:35,k:4,b:"7:39",e:"7:41"},3:{p:35,k:4,b:"7:36",e:"7:41"}}},"Chanukah Day 5 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:36",e:"7:41"}}},"Chanukah Day 6":{fullkriyah:{1:{p:41,k:4,b:"28:1",e:"28:5"},2:{p:41,k:4,b:"28:6",e:"28:10"},3:{p:41,k:4,b:"28:11",e:"28:15"},4:{p:35,k:4,b:"7:42",e:"7:47"}}},"Chanukah Day 7":{fullkriyah:{1:{p:35,k:4,b:"7:48",e:"7:50"},2:{p:35,k:4,b:"7:51",e:"7:53"},3:{p:35,k:4,b:"7:54",e:"7:59"}},alt:{1:{p:35,k:4,b:"7:48",e:"7:50"},2:{p:35,k:4,b:"7:51",e:"7:53"},3:{p:35,k:4,b:"7:48",e:"7:53"}}},"Chanukah Day 7 (on Rosh Chodesh)":{fullkriyah:{1:{p:41,k:4,b:"28:1",e:"28:5"},2:{p:41,k:4,b:"28:6",e:"28:10"},3:{p:41,k:4,b:"28:11",e:"28:15"},4:{p:35,k:4,b:"7:48",e:"7:53"}}},"Chanukah Day 7 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:48",e:"7:53"}}},"Chanukah Day 8":{fullkriyah:{1:{p:35,k:4,b:"7:54",e:"7:56"},2:{p:35,k:4,b:"7:57",e:"7:59"},3:{p:35,k:4,b:"7:60",e:"8:4"}}},"Chanukah Day 8 (on Shabbat)":{haft:{k:"I Kings",b:"7:40",e:"7:50"},fullkriyah:{M:{p:35,k:4,b:"7:54",e:"8:4"}}},"Erev Purim":{megillah:"Esther"},Purim:{megillah:"Esther",fullkriyah:{1:{p:16,k:2,b:"17:8",e:"17:10"},2:{p:16,k:2,b:"17:11",e:"17:13"},3:{p:16,k:2,b:"17:14",e:"17:16"}}},"Shushan Purim":{note:"Jerusalem & walled cities only",il:!0,megillah:"Esther",fullkriyah:{1:{p:16,k:2,b:"17:8",e:"17:10"},2:{p:16,k:2,b:"17:11",e:"17:13"},3:{p:16,k:2,b:"17:14",e:"17:16"}}},"Shushan Purim (on Shabbat)":{il:!0,note:"Jerusalem & walled cities only: special maftir Exodus 17:8-16, same Haftara as Shabbat Zachor"},"Shabbat HaChodesh":{haft:{k:"Ezekiel",b:"45:16",e:"46:18"},seph:{k:"Ezekiel",b:"45:18",e:"46:15"},fullkriyah:{M:{p:15,k:2,b:"12:1",e:"12:20"}}},"Shabbat HaChodesh (on Rosh Chodesh)":{haft:{k:"Ezekiel",b:"45:16",e:"46:18"},seph:{k:"Ezekiel",b:"45:18",e:"46:15"},fullkriyah:{7:{p:41,k:4,b:"28:9",e:"28:15"},M:{p:15,k:2,b:"12:1",e:"12:20"}}},"Shabbat HaGadol":{haft:{k:"Malachi",b:"3:4",e:"3:24"}},"Shabbat Parah":{haft:{k:"Ezekiel",b:"36:16",e:"36:38"},seph:{k:"Ezekiel",b:"36:16",e:"36:36"},fullkriyah:{M:{p:39,k:4,b:"19:1",e:"19:22"}}},"Shabbat Shekalim":{haft:{k:"II Kings",b:"12:1",e:"12:17"},seph:{k:"II Kings",b:"11:17",e:"12:17"},fullkriyah:{M:{p:21,k:2,b:"30:11",e:"30:16"}}},"Shabbat Shekalim (on Rosh Chodesh)":{haft:{k:"II Kings",b:"12:1",e:"12:17"},seph:{k:"II Kings",b:"11:17",e:"12:17"},fullkriyah:{7:{p:41,k:4,b:"28:9",e:"28:15"},M:{p:21,k:2,b:"30:11",e:"30:16"}}},"Shabbat Shuva (with Vayeilech)":{haft:[{k:"Hosea",b:"14:2",e:"14:10"},{k:"Micah",b:"7:18",e:"7:20"}]},"Shabbat Shuva (with Ha'azinu)":{haft:[{k:"Hosea",b:"14:2",e:"14:10"},{k:"Joel",b:"2:15",e:"2:27"}],seph:[{k:"Hosea",b:"14:2",e:"14:10"},{k:"Micah",b:"7:18",e:"7:20"}]},"Shabbat Shuva":{haft:[{k:"Hosea",b:"14:2",e:"14:10"},{k:"Micah",b:"7:18",e:"7:20"},{k:"Joel",b:"2:15",e:"2:27"}]},"Shabbat Zachor":{haft:{k:"I Samuel",b:"15:2",e:"15:34"},seph:{k:"I Samuel",b:"15:1",e:"15:34"},fullkriyah:{M:{p:49,k:5,b:"25:17",e:"25:19"}}},"Pinchas occurring after 17 Tammuz":{haft:{k:"Jeremiah",b:"1:1",e:"2:3"}},"Kedoshim following Special Shabbat":{haft:{k:"Amos",b:"9:7",e:"9:15"},seph:{k:"Ezekiel",b:"20:2",e:"20:20"}},"Masei on Shabbat Rosh Chodesh":{haft:[{k:"Jeremiah",b:"2:4",e:"2:28"},{k:"Jeremiah",b:"3:4",e:"3:4"}],seph:[{k:"Jeremiah",b:"2:4",e:"2:28"},{k:"Jeremiah",b:"4:1",e:"4:2"},{k:"Isaiah",b:"66:1",e:"66:1"},{k:"Isaiah",b:"66:23",e:"66:23"}],fullkriyah:{M:{p:41,k:4,b:"28:9",e:"28:15"}}},"Matot-Masei on Shabbat Rosh Chodesh":{alias:!0,key:"Masei on Shabbat Rosh Chodesh"},"Ki Teitzei with 3rd Haftarah of Consolation":{haft:[{k:"Isaiah",b:"54:1",e:"54:10"},{k:"Isaiah",b:"54:11",e:"55:5"}]},"Rosh Chodesh":{fullkriyah:{1:{p:41,k:4,b:"28:1",e:"28:3"},2:{p:41,k:4,b:"28:3",e:"28:5"},3:{p:41,k:4,b:"28:6",e:"28:10"},4:{p:41,k:4,b:"28:11",e:"28:15"}}},"Rosh Chodesh Nisan":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Iyyar":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Sivan":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Tamuz":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Av":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Elul":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Tishrei":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Cheshvan":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Kislev":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Sh'vat":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Adar":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Adar I":{alias:!0,key:"Rosh Chodesh"},"Rosh Chodesh Adar II":{alias:!0,key:"Rosh Chodesh"},"Shabbat Rosh Chodesh":{haft:{k:"Isaiah",b:"66:1",e:"66:24"},fullkriyah:{M:{p:41,k:4,b:"28:9",e:"28:15"}}},"Shabbat Machar Chodesh":{haft:{k:"I Samuel",b:"20:18",e:"20:42"}}};function I(e){return"object"==typeof S[e]}function C(e){let a=S[e];if(void 0===a)return;if(a.alias){const t=S[a.key];if(void 0===t)throw new Error(`Leyning alias ${e} => ${a.key} not found`);a=t}const t=a.fullkriyah?g(a):a;if(t.fullkriyah)for(const e of Object.values(t.fullkriyah))"number"==typeof e.k&&(e.k=b[e.k]);return a.note&&(t.note=a.note),t}
|
|
3
|
+
/*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */const D=[0,31,28,31,30,31,30,31,31,30,31,30,31],v=[D,D.slice()];function E(e,a){return e-a*Math.floor(e/a)}function T(e,a){return Math.floor(e/a)}function R(e){return!(e%4||!(e%100)&&e%400)}function A(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function H(e,a,t){const h=e-1;return 365*h+T(h,4)-T(h,100)+T(h,400)+T(367*a-362,12)+(a<=2?0:R(e)?-1:-2)+t}function N(e){if(!A(e))throw new TypeError(`not a Date: ${e}`);if(isNaN(e.getTime()))throw new RangeError("Invalid Date");return H(e.getFullYear(),e.getMonth()+1,e.getDate())}function P(e){if("number"!=typeof e||isNaN(e))throw new TypeError(`not a Number: ${e}`);const a=function(e){const a=e-1,t=T(a,146097),h=E(a,146097),r=T(h,36524),o=E(h,36524),n=T(o,1461),s=T(E(o,1461),365),i=400*t+100*r+4*n+s;return 4!==r&&4!==s?i+1:i}(e=Math.trunc(e)),t=T(12*(e-H(a,1,1)+(e<H(a,3,1)?0:R(a)?1:2))+373,367),h=e-H(a,t,1)+1,r=new Date(a,t-1,h);return a<100&&a>=0&&r.setFullYear(a),r}
|
|
4
|
+
/*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */var $;v[1][2]=29,$||($={}),$.abs2greg=P,$.daysInMonth=function(e,a){return v[+R(a)][e]},$.greg2abs=N,$.isDate=A,$.isLeapYear=R;
|
|
5
|
+
/*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
6
|
+
const z=5,K=6,L=7,J=13,V="Nisan",F=["",V,"Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],O=[[...F,"Adar",V],[...F,"Adar I","Adar II",V]],B=new Map,Y=-1373428;function x(e,a){if("number"!=typeof e||isNaN(e))throw new TypeError(`param '${a}' not a number: ${e}`)}function j(e,a,t){if(x(e,"year"),x(a,"month"),x(t,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let h=t;if(a<7){for(let a=7;a<=G(e);a++)h+=U(a,e);for(let t=1;t<a;t++)h+=U(t,e)}else for(let t=7;t<a;t++)h+=U(t,e);return Y+q(e)+h-1}function _(e){return Y+q(e)}function Z(e){return(1+7*e)%19<7}function G(e){return+Z(e)+12}function U(e,a){switch(e){case 2:case 4:case 6:case 10:case 13:return 29}return 12===e&&!Z(a)||8===e&&!X(a)||9===e&&ee(a)?29:30}function W(e,a){if(x(e,"month"),x(a,"year"),e<1||e>14)throw new TypeError(`bad monthNum: ${e}`);return O[+Z(a)][e]}function q(e){const a=B.get(e);if("number"==typeof a)return a;const t=function(e){const a=e-1,t=235*Math.floor(a/19)+a%19*12+Math.floor((a%19*7+1)/19),h=204+t%1080*793,r=5+12*t+793*Math.floor(t/1080)+Math.floor(h/1080),o=h%1080+r%24*1080,n=1+29*t+Math.floor(r/24);let s=n;(o>=19440||2==n%7&&o>=9924&&!Z(e)||1==n%7&&o>=16789&&Z(a))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return B.set(e,t),t}function Q(e){return q(e+1)-q(e)}function X(e){return Q(e)%10==5}function ee(e){return Q(e)%10==3}
|
|
7
|
+
/*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
8
|
+
const ae={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},te={};for(const[e,a]of Object.entries(ae))te[a]=e;function he(e){const a=[];for(;e>0;){if(15===e||16===e){a.push(9),a.push(e-9);break}let t,h=100;for(t=400;t>e;t-=h)t===h&&(h/=10);a.push(t),e-=t}return a}function re(e){const a=parseInt(e,10);if(!a||a<0)throw new TypeError(`invalid number: ${e}`);let t="";const h=Math.floor(a/1e3);if(h>0&&5!==h){const e=he(h);for(const a of e)t+=te[a];t+="׳"}const r=he(a%1e3);if(1===r.length)return t+te[r[0]]+"׳";for(let e=0;e<r.length;e++)e+1===r.length&&(t+="״"),t+=te[r[e]];return t}function oe(e){let a=0;const t=e.indexOf("׳");if(-1!==t&&t!==e.length-1){a+=1e3*oe(e.substring(0,t)),e=e.substring(t)}for(const t of e){const e=ae[t];"number"==typeof e&&(a+=e)}return a}
|
|
9
|
+
/*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */var ne={headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"en_CA@ashkenazi"},contexts:{"":{Tevet:["Teves"]}}},se={headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"he"},contexts:{"":{Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"]}}};
|
|
10
|
+
/*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
11
|
+
/*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
12
|
+
const ie={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},ke={h:"he",a:"ashkenazi",s:"en","":"en"},be=new Map;let le,ue;function fe(e){const a=["th","st","nd","rd"],t=e%100;return e+(a[(t-20)%10]||a[t]||a[0])}function ce(e){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);return e.toLowerCase()}function pe(e){const a=ce(e),t=be.get(a);if(!t)throw new RangeError(`Locale '${e}' not found`);return t}class ye{static lookupTranslation(e,a){const t=("string"==typeof a&&be.get(a.toLowerCase())||le)[e];if((null==t?void 0:t.length)&&t[0].length)return t[0]}static gettext(e,a){const t=this.lookupTranslation(e,a);return void 0===t?e:t}static addLocale(e,a){if(e=ce(e),"object"!=typeof a.contexts||"object"!=typeof a.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);be.set(e,a.contexts[""])}static addTranslation(e,a,t){const h=pe(e);if("string"!=typeof a||0===a.length)throw new TypeError(`Invalid id string: ${a}`);const r=Array.isArray(t);if(r){const e=t[0];if("string"!=typeof e||0===e.length)throw new TypeError(`Invalid translation array: ${t}`)}else if("string"!=typeof t)throw new TypeError(`Invalid translation string: ${t}`);h[a]=r?t:[t]}static addTranslations(e,a){const t=pe(e);if("object"!=typeof a.contexts||"object"!=typeof a.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const h=a.contexts[""];Object.assign(t,h)}static useLocale(e){const a=ce(e),t=pe(a);return ue=ke[a]||a,le=t,le}static getLocaleName(){return ue}static getLocaleNames(){return Array.from(be.keys()).sort(((e,a)=>e.localeCompare(a)))}static ordinal(e,a){const t=(null==a?void 0:a.toLowerCase())||ue;if(!t)return fe(e);switch(t){case"en":case"s":case"a":return fe(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e)}return t.startsWith("ashkenazi")?fe(e):e+"."}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}ye.addLocale("en",ie),ye.addLocale("s",ie),ye.addLocale("",ie),ye.useLocale("en"),ye.addLocale("ashkenazi",ne),ye.addLocale("a",ne),ye.addLocale("he",se),ye.addLocale("h",se);const me=se.contexts[""],de={};for(const[e,a]of Object.entries(me))de[e]=[ye.hebrewStripNikkud(a[0])];const ge={headers:se.headers,contexts:{"":de}};ye.addLocale("he-x-NoNikud",ge);const Me="day",we="week",Se="month",Ie="year";class Ce{constructor(e,a,t){if(2===arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3===arguments.length){this.dd=this.mm=1;const o="string"==typeof t?parseInt(t,10):t;if(isNaN(o))throw new TypeError(`HDate called with bad year: ${t}`);this.yy=o,function(e,a){e.mm=Ce.monthNum(a),De(e)}(this,a);const n="string"==typeof e?parseInt(e,10):e;if(isNaN(n))throw new TypeError(`HDate called with bad day: ${e}`);r=n,(h=this).dd=r,De(h)}else{null==e&&(e=new Date);const a="number"!=typeof e||isNaN(e)?A(e)?N(e):void 0!==e.yy?e:null:e;if(null===a)throw new TypeError(`HDate called with bad arg: ${e}`);const t="number"==typeof a,h=t?function(e){if(x(e,"abs"),(e=Math.trunc(e))<=Y)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let a=Math.floor((e-Y)/365.24682220597794);for(;_(a)<=e;)++a;--a;let t=e<j(a,1,1)?7:1;for(;e>j(a,t,U(t,a));)++t;return{yy:a,mm:t,dd:1+e-j(a,t,1)}}(a):a;this.yy=h.yy,this.mm=h.mm,this.dd=h.dd,t&&(this.rd=a)}var h,r}getFullYear(){return this.yy}isLeapYear(){return Z(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=G(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return U(this.getMonth(),this.getFullYear())}getDate(){return this.dd}getDay(){return(e=this.abs())-(a=7)*Math.floor(e/a);
|
|
13
|
+
/*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
14
|
+
var e,a}greg(){return P(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=j(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,a,t){return j(e,a,t)}getMonthName(){return W(this.getMonth(),this.getFullYear())}render(e,a=!0){const t=e||ye.getLocaleName(),h=this.getDate(),r=ye.gettext(this.getMonthName(),t).replace(/'/g,"’"),o=ye.ordinal(h,t),n=function(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}const a=ye.lookupTranslation("of",e);if(a)return" "+a;if(e.startsWith("ashkenazi"))return" of";return""}(t),s=`${o}${n} ${r}`;if(a){return`${s}, ${this.getFullYear()}`}return s}renderGematriya(e=!1){const a=this.getDate(),t=e?"he-x-NoNikud":"he",h=ye.gettext(this.getMonthName(),t),r=this.getFullYear();return re(a)+" "+h+" "+re(r)}before(e){return Ee(e,this,-1)}onOrBefore(e){return Ee(e,this,0)}nearest(e){return Ee(e,this,3)}onOrAfter(e){return Ee(e,this,6)}after(e){return Ee(e,this,7)}next(){return new Ce(this.abs()+1)}prev(){return new Ce(this.abs()-1)}add(e,a="d"){if(!(e="string"==typeof e?parseInt(e,10):e))return new Ce(this);if((a=function(e){switch(e){case"d":return Me;case"w":return we;case"M":return Se;case"y":return Ie}const a=String(e||"").toLowerCase().replace(/s$/,"");switch(a){case Me:case we:case Se:case Ie:return a}throw new TypeError(`Invalid units '${e}'`)}(a))===Me)return new Ce(this.abs()+e);if(a===we)return new Ce(this.abs()+7*e);if(a===Ie)return new Ce(this.getDate(),this.getMonth(),this.getFullYear()+e);{let a=new Ce(this);const t=e>0?1:-1;e=Math.abs(e);for(let h=0;h<e;h++)a=new Ce(a.abs()+t*a.daysInMonth());return a}}subtract(e,a="d"){return this.add(-1*e,a)}deltaDays(e){return this.abs()-e.abs()}isSameDate(e){return this.yy===e.yy&&this.mm===e.mm&&this.dd===e.dd}toString(){const e=this.getDate(),a=this.getFullYear();return`${e} ${this.getMonthName()} ${a}`}static isLeapYear(e){return Z(e)}static monthsInYear(e){return G(e)}static daysInMonth(e,a){return U(e,a)}static getMonthName(e,a){return W(e,a)}static monthNum(e){if("number"==typeof e){if(isNaN(e)||e>14)throw new RangeError(`bad monthNum: ${e}`);return e}return e.charCodeAt(0)>=48&&e.charCodeAt(0)<=57?parseInt(e,10):Ce.monthFromName(e)}static daysInYear(e){return Q(e)}static longCheshvan(e){return X(e)}static shortKislev(e){return ee(e)}static monthFromName(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`bad monthName: ${e}`);return e}return function(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`bad monthName: ${e}`);return e}let a=e.trim().toLowerCase();switch("ב"===a[0]&&(a=a.substring(1)),a[0]){case"n":case"נ":if("o"===a[1])break;return 1;case"i":return 2;case"e":return 6;case"c":case"ח":return 8;case"k":case"כ":return 9;case"s":switch(a[1]){case"i":return 3;case"h":return 11}break;case"t":switch(a[1]){case"a":return 4;case"i":return 7;case"e":return 10}break;case"a":switch(a[1]){case"v":return 5;case"d":return/(1|[^i]i|a|א)$/i.test(e)?12:13}break;case"ס":return 3;case"ט":return 10;case"ש":return 11;case"א":switch(a[1]){case"ב":return 5;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?12:13;case"י":return 2;case"ל":return 6}break;case"ת":switch(a[1]){case"מ":return 4;case"ש":return 7}}throw new RangeError(`bad monthName: ${e}`)}(ye.hebrewStripNikkud(e))}static dayOnOrBefore(e,a){return a-(a-e)%7}static isHDate(e){return null!==e&&"object"==typeof e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd&&"function"==typeof e.greg&&"function"==typeof e.abs}static fromGematriyaString(e,a=5e3){const t=e.split(" ").filter((e=>0!==e.length)),h=t.length;if(3!==h&&4!==h)throw new RangeError(`cannot parse gematriya str: "${e}"`);const r=oe(t[0]),o=3===h?t[1]:t[1]+" "+t[2],n=Ce.monthFromName(o);let s=oe(3===h?t[2]:t[3]);return s<1e3&&(s+=a),new Ce(r,n,s)}}function De(e){ve(e),function(e){e.dd<1&&(e.mm===L&&(e.yy-=1),e.dd+=U(e.mm,e.yy),e.mm-=1,De(e));e.dd>U(e.mm,e.yy)&&(e.mm===K&&(e.yy+=1),e.dd-=U(e.mm,e.yy),e.mm===G(e.yy)?e.mm=1:e.mm+=1,De(e));ve(e)}(e)}function ve(e){e.mm!==J||e.isLeapYear()?e.mm<1?(e.mm+=G(e.yy),e.yy-=1,De(e)):e.mm>G(e.yy)&&(e.mm-=G(e.yy),e.yy+=1,De(e)):(e.mm-=1,De(e)),delete e.rd}function Ee(e,a,t){return new Ce(Ce.dayOnOrBefore(e,a.abs()+t))}const Te=t.flags.DAF_YOMI|t.flags.OMER_COUNT|t.flags.SHABBAT_MEVARCHIM|t.flags.MOLAD|t.flags.USER_EVENT|t.flags.HEBREW_DATE|t.flags.MISHNA_YOMI|t.flags.MODERN_HOLIDAY|t.flags.YERUSHALMI_YOMI;function Re(e,a=!1){if(void 0!==e.eventTime)return;const h=e.getFlags();if(h&Te)return;const r=e.getDesc();if(h&t.flags.EREV&&!I(r))return;const o=e.getDate(),n=o.getDate(),s=o.abs()%7,i=o.getMonth(),k=6===s,b=1===n||30===n,l=e.basename(),u="Pesach"===l;if(a&&u)return k?15===n||21===n?r+" (on Shabbat)":"Pesach Shabbat Chol ha-Moed":r;if(1===n&&i===L)return k?"Rosh Hashana I (on Shabbat)":"Rosh Hashana I";const f=e.cholHaMoedDay;if("number"==typeof f){if(k)return l+" Shabbat Chol ha-Moed";if("Sukkot VII (Hoshana Raba)"===r)return"Sukkot Final Day (Hoshana Raba)";if(u&&f){if(0===s&&"Pesach IV (CH''M)"===r)return"Pesach Chol ha-Moed Day 2 on Sunday";if(1===s&&"Pesach V (CH''M)"===r)return"Pesach Chol ha-Moed Day 3 on Monday"}return`${l} Chol ha-Moed Day ${f}`}const c=e.chanukahDay;if("number"==typeof c)return k&&b?"Shabbat Rosh Chodesh Chanukah":b&&7===c?"Chanukah Day 7 (on Rosh Chodesh)":k?`Chanukah Day ${c} (on Shabbat)`:`Chanukah Day ${c}`;if(b&&("Shabbat HaChodesh"===r||"Shabbat Shekalim"===r))return r+" (on Rosh Chodesh)";if(a&&"Shmini Atzeret"===r)return"Simchat Torah"+(k?" (on Shabbat)":"");if("Chag HaBanot"!==r){if(k&&"Shabbat"!==r.substring(0,7)){if(b)return"Rosh Chodesh Tevet"===r?"Shabbat Rosh Chodesh Chanukah":"Shabbat Rosh Chodesh";const e=r+" (on Shabbat)";if(I(e))return e}if(I(r))return r;if(k){const e=o.next().getDate();if(30===e||1===e)return"Shabbat Machar Chodesh"}if("Rosh Hashana LaBehemot"!==r)return"Rosh Chodesh Tevet"===r?k?"Shabbat Rosh Chodesh Chanukah":30===n||Ce.shortKislev(o.getFullYear())?"Chanukah Day 6":"Chanukah Day 7 (on Rosh Chodesh)":b?r:"Tish'a B'Av (observed)"===r?"Tish'a B'Av":void 0}}function Ae(e,a){a[7]&&(!function(e){const a=g(e[6]),t=e[7];if(a.k!==t.k)throw new Error("Impossible to combine aliyot 6 & 7: "+JSON.stringify(e));delete e[7],e[6]={k:a.k,b:a.b,e:t.e},a.v&&t.v&&(e[6].v=a.v+t.v)}(e),e[7]=g(a[7]),f(e[7])),a.M&&(e.M=g(a.M),f(e.M))}function He(e,a,r,o){let n,s,i=!1;const k={};function b(e){const a=C(e);if(a&&("boolean"!=typeof a.il||r===a.il)&&(a.haft&&!i&&(n=M(a.haft),k.haftara=e,i=!0,a.seph&&(s=M(a.seph),k.sephardic=e)),a.fullkriyah)){const t=g(o);Ae(t,a.fullkriyah);for(const t of Object.keys(a.fullkriyah))k[t]=e;o=t}}const l=u(e),f=(h.getHolidaysOnDate(a,r)||[]).filter((e=>!(e.getFlags()&t.flags.ROSH_CHODESH)));for(const e of f)if("Shabbat Shuva"===e.getDesc())b(`Shabbat Shuva (with ${l})`);else{const a=Re(e,r);a&&b(a)}if(!n){const e=a.getDate();if("Pinchas"===l&&e>17)b("Pinchas occurring after 17 Tammuz");else if(30===e||1===e){b("Masei"===l||"Matot-Masei"===l?`${l} on Shabbat Rosh Chodesh`:"Shabbat Rosh Chodesh")}else if("Ki Teitzei"===l&&14===e)b("Ki Teitzei with 3rd Haftarah of Consolation");else if("Kedoshim"!==l||26!==e&&28!==e&&6!==e){if(a.getMonth()!==z){const e=a.next().getDate();30!==e&&1!==e||b("Shabbat Machar Chodesh")}}else b("Kedoshim following Special Shabbat")}return{aliyot:o,reason:k,haft:n,seph:s}}function Ne(e,t,h){if("string"!=typeof e)return;const r=C(e);if(void 0===r)return;const o=r.il;if("boolean"==typeof o&&"boolean"==typeof h&&h!==o)return;const n={name:{en:e,he:a.Locale.lookupTranslation(e,"he")}};if(r.fullkriyah){if(n.fullkriyah=g(r.fullkriyah),"Sukkot Shabbat Chol ha-Moed"===e&&t){n.fullkriyah.M=n.fullkriyah[`M-day${t}`];for(let e=1;e<=5;e++)delete n.fullkriyah[`M-day${e}`]}if("object"==typeof n.fullkriyah[1]){const e=m(n.fullkriyah);n.summary=d(e),n.summaryParts=e}Object.values(n.fullkriyah).map((e=>f(e)))}if(r.haft){const e=n.haft=M(r.haft);n.haftara=d(e),n.haftaraNumV=w(e)}if(r.seph){const e=n.seph=M(r.seph);n.sephardic=d(e),n.sephardicNumV=w(e)}let s=r.megillah;if(h&&"Pesach I (on Shabbat)"===e&&(s="Song of Songs"),s){const e=l[s],a={};for(let t=1;t<e.length;t++){const h=e[t];a[`${t}`]={k:s,b:`${t}:1`,e:`${t}:${h}`,v:h}}n.megillah=a;const t=m(a);n.summaryParts&&n.summaryParts.push(...t);const h=d(t);n.summary=n.summary?n.summary+"; "+h:h}return r.note&&(n.note=r.note),n}function Pe(e,a=!1){if("object"!=typeof e||"function"!=typeof e.getFlags)throw new TypeError(`Bad event argument: ${JSON.stringify(e)}`);if(void 0!==e.eventTime)return;if(e.getFlags()&t.flags.PARSHA_HASHAVUA)throw new TypeError(`Event should be a holiday: ${e.getDesc()}`);if(e.getFlags()&Te)return;return Ne(Re(e,a),e.cholHaMoedDay,a)}const $e={Bereshit:{num:1,hebrew:"בְּרֵאשִׁית",book:1,haft:{k:"Isaiah",b:"42:5",e:"43:10"},seph:{k:"Isaiah",b:"42:5",e:"42:21"},fullkriyah:{1:["1:1","2:3"],2:["2:4","2:19"],3:["2:20","3:21"],4:["3:22","4:18"],5:["4:19","4:22","some sources use 4:19-26"],6:["4:23","5:24","some sources use 5:1-24"],7:["5:25","6:8"],M:["6:5","6:8"]},weekday:{1:["1:1","1:5"],2:["1:6","1:8"],3:["1:9","1:13"]}},Noach:{num:2,hebrew:"נֹחַ",book:1,haft:{k:"Isaiah",b:"54:1",e:"55:5"},seph:{k:"Isaiah",b:"54:1",e:"54:10"},fullkriyah:{1:["6:9","6:22"],2:["7:1","7:16"],3:["7:17","8:14"],4:["8:15","9:7"],5:["9:8","9:17"],6:["9:18","10:32"],7:["11:1","11:32"],M:["11:29","11:32"]},weekday:{1:["6:9","6:16"],2:["6:17","6:19"],3:["6:20","6:22"]}},"Lech-Lecha":{num:3,hebrew:"לֶךְ־לְךָ",book:1,haft:{k:"Isaiah",b:"40:27",e:"41:16"},fullkriyah:{1:["12:1","12:13"],2:["12:14","13:4"],3:["13:5","13:18"],4:["14:1","14:20"],5:["14:21","15:6"],6:["15:7","17:6"],7:["17:7","17:27"],M:["17:24","17:27"]},weekday:{1:["12:1","12:3"],2:["12:4","12:9"],3:["12:10","12:13"]}},Vayera:{num:4,hebrew:"וַיֵּרָא",book:1,haft:{k:"II Kings",b:"4:1",e:"4:37"},seph:{k:"II Kings",b:"4:1",e:"4:23"},fullkriyah:{1:["18:1","18:14"],2:["18:15","18:33"],3:["19:1","19:20"],4:["19:21","21:4"],5:["21:5","21:21"],6:["21:22","21:34"],7:["22:1","22:24"],M:["22:20","22:24"]},weekday:{1:["18:1","18:5"],2:["18:6","18:8"],3:["18:9","18:14"]}},"Chayei Sara":{num:5,hebrew:"חַיֵּי שָֹרָה",book:1,haft:{k:"I Kings",b:"1:1",e:"1:31"},fullkriyah:{1:["23:1","23:16"],2:["23:17","24:9"],3:["24:10","24:26"],4:["24:27","24:52"],5:["24:53","24:67"],6:["25:1","25:11"],7:["25:12","25:18"],M:["25:16","25:18"]},weekday:{1:["23:1","23:7"],2:["23:8","23:12"],3:["23:13","23:16"]}},Toldot:{num:6,hebrew:"תּוֹלְדוֹת",book:1,haft:{k:"Malachi",b:"1:1",e:"2:7"},fullkriyah:{1:["25:19","26:5"],2:["26:6","26:12"],3:["26:13","26:22"],4:["26:23","26:29"],5:["26:30","27:27"],6:["27:28","28:4"],7:["28:5","28:9"],M:["28:7","28:9"]},weekday:{1:["25:19","25:22"],2:["25:23","25:26"],3:["25:27","26:5"]}},Vayetzei:{num:7,hebrew:"וַיֵּצֵא",book:1,haft:{k:"Hosea",b:"12:13",e:"14:10"},seph:{k:"Hosea",b:"11:7",e:"12:12"},fullkriyah:{1:["28:10","28:22"],2:["29:1","29:17"],3:["29:18","30:13"],4:["30:14","30:27"],5:["30:28","31:16"],6:["31:17","31:42"],7:["31:43","32:3"],M:["32:1","32:3"]},weekday:{1:["28:10","28:12"],2:["28:13","28:17"],3:["28:18","28:22"]}},Vayishlach:{num:8,hebrew:"וַיִּשְׁלַח",book:1,haft:{k:"Obadiah",b:"1:1",e:"1:21"},fullkriyah:{1:["32:4","32:13"],2:["32:14","32:30"],3:["32:31","33:5"],4:["33:6","33:20"],5:["34:1","35:11"],6:["35:12","36:19"],7:["36:20","36:43"],M:["36:40","36:43"]},weekday:{1:["32:4","32:6"],2:["32:7","32:9"],3:["32:10","32:13"]}},Vayeshev:{num:9,hebrew:"וַיֵּשֶׁב",book:1,haft:{k:"Amos",b:"2:6",e:"3:8"},fullkriyah:{1:["37:1","37:11"],2:["37:12","37:22"],3:["37:23","37:36"],4:["38:1","38:30"],5:["39:1","39:6"],6:["39:7","39:23"],7:["40:1","40:23"],M:["40:20","40:23"]},weekday:{1:["37:1","37:3"],2:["37:4","37:7"],3:["37:8","37:11"]}},Miketz:{num:10,hebrew:"מִקֵּץ",book:1,haft:{k:"I Kings",b:"3:15",e:"4:1"},fullkriyah:{1:["41:1","41:14"],2:["41:15","41:38"],3:["41:39","41:52"],4:["41:53","42:18"],5:["42:19","43:15"],6:["43:16","43:29"],7:["43:30","44:17"],M:["44:14","44:17"]},weekday:{1:["41:1","41:4"],2:["41:5","41:7"],3:["41:8","41:14"]}},Vayigash:{num:11,hebrew:"וַיִּגַּשׁ",book:1,haft:{k:"Ezekiel",b:"37:15",e:"37:28"},fullkriyah:{1:["44:18","44:30"],2:["44:31","45:7"],3:["45:8","45:18"],4:["45:19","45:27"],5:["45:28","46:27"],6:["46:28","47:10"],7:["47:11","47:27"],M:["47:25","47:27"]},weekday:{1:["44:18","44:20"],2:["44:21","44:24"],3:["44:25","44:30"]}},Vayechi:{num:12,hebrew:"וַיְחִי",book:1,haft:{k:"I Kings",b:"2:1",e:"2:12"},fullkriyah:{1:["47:28","48:9"],2:["48:10","48:16"],3:["48:17","48:22"],4:["49:1","49:18"],5:["49:19","49:26"],6:["49:27","50:20"],7:["50:21","50:26"],M:["50:23","50:26"]},weekday:{1:["47:28","47:31"],2:["48:1","48:3"],3:["48:4","48:9"]}},Shemot:{num:13,hebrew:"שְׁמוֹת",book:2,haft:[{k:"Isaiah",b:"27:6",e:"28:13"},{k:"Isaiah",b:"29:22",e:"29:23"}],seph:{k:"Jeremiah",b:"1:1",e:"2:3"},fullkriyah:{1:["1:1","1:17"],2:["1:18","2:10"],3:["2:11","2:25"],4:["3:1","3:15"],5:["3:16","4:17"],6:["4:18","4:31"],7:["5:1","6:1"],M:["5:22","6:1"]},weekday:{1:["1:1","1:7"],2:["1:8","1:12"],3:["1:13","1:17"]}},Vaera:{num:14,hebrew:"וָאֵרָא",book:2,haft:{k:"Ezekiel",b:"28:25",e:"29:21"},fullkriyah:{1:["6:2","6:13"],2:["6:14","6:28"],3:["6:29","7:7"],4:["7:8","8:6"],5:["8:7","8:18"],6:["8:19","9:16"],7:["9:17","9:35"],M:["9:33","9:35"]},weekday:{1:["6:2","6:5"],2:["6:6","6:9"],3:["6:10","6:13"]}},Bo:{num:15,hebrew:"בֹּא",book:2,haft:{k:"Jeremiah",b:"46:13",e:"46:28"},fullkriyah:{1:["10:1","10:11"],2:["10:12","10:23"],3:["10:24","11:3"],4:["11:4","12:20"],5:["12:21","12:28"],6:["12:29","12:51"],7:["13:1","13:16"],M:["13:14","13:16"]},weekday:{1:["10:1","10:3"],2:["10:4","10:6"],3:["10:7","10:11"]}},Beshalach:{num:16,hebrew:"בְּשַׁלַּח",book:2,haft:{k:"Judges",b:"4:4",e:"5:31"},seph:{k:"Judges",b:"5:1",e:"5:31"},fullkriyah:{1:["13:17","14:8"],2:["14:9","14:14"],3:["14:15","14:25"],4:["14:26","15:26"],5:["15:27","16:10"],6:["16:11","16:36"],7:["17:1","17:16"],M:["17:14","17:16"]},weekday:{1:["13:17","13:22"],2:["14:1","14:4"],3:["14:5","14:8"]}},Yitro:{num:17,hebrew:"יִתְרוֹ",book:2,haft:[{k:"Isaiah",b:"6:1",e:"7:6"},{k:"Isaiah",b:"9:5",e:"9:6"}],seph:{k:"Isaiah",b:"6:1",e:"6:13"},fullkriyah:{1:["18:1","18:12"],2:["18:13","18:23"],3:["18:24","18:27"],4:["19:1","19:6"],5:["19:7","19:19"],6:["19:20","20:14"],7:["20:15","20:23"],M:["20:19","20:23"]},weekday:{1:["18:1","18:4"],2:["18:5","18:8"],3:["18:9","18:12"]}},Mishpatim:{num:18,hebrew:"מִּשְׁפָּטִים",book:2,haft:[{k:"Jeremiah",b:"34:8",e:"34:22"},{k:"Jeremiah",b:"33:25",e:"33:26"}],fullkriyah:{1:["21:1","21:19"],2:["21:20","22:3"],3:["22:4","22:26"],4:["22:27","23:5"],5:["23:6","23:19"],6:["23:20","23:25"],7:["23:26","24:18"],M:["24:15","24:18"]},weekday:{1:["21:1","21:6"],2:["21:7","21:11"],3:["21:12","21:19"]}},Terumah:{num:19,hebrew:"תְּרוּמָה",book:2,haft:{k:"I Kings",b:"5:26",e:"6:13"},fullkriyah:{1:["25:1","25:16"],2:["25:17","25:40","some sources use 25:17-30"],3:["26:1","26:14","some sources use 25:31-26:14"],4:["26:15","26:30"],5:["26:31","26:37"],6:["27:1","27:8"],7:["27:9","27:19"],M:["27:17","27:19"]},weekday:{1:["25:1","25:5"],2:["25:6","25:9"],3:["25:10","25:16"]}},Tetzaveh:{num:20,hebrew:"תְּצַוֶּה",book:2,haft:{k:"Ezekiel",b:"43:10",e:"43:27"},fullkriyah:{1:["27:20","28:12"],2:["28:13","28:30"],3:["28:31","28:43"],4:["29:1","29:18"],5:["29:19","29:37"],6:["29:38","29:46"],7:["30:1","30:10"],M:["30:8","30:10"]},weekday:{1:["27:20","28:5"],2:["28:6","28:9"],3:["28:10","28:12"]}},"Ki Tisa":{num:21,hebrew:"כִּי תִשָּׂא",book:2,haft:{k:"I Kings",b:"18:1",e:"18:39"},seph:{k:"I Kings",b:"18:20",e:"18:39"},fullkriyah:{1:["30:11","31:17"],2:["31:18","33:11"],3:["33:12","33:16"],4:["33:17","33:23"],5:["34:1","34:9"],6:["34:10","34:26"],7:["34:27","34:35"],M:["34:33","34:35"]},weekday:{1:["30:11","30:13"],2:["30:14","30:16"],3:["30:17","30:21"]}},Vayakhel:{num:22,hebrew:"וַיַּקְהֵל",book:2,haft:{k:"I Kings",b:"7:40",e:"7:50"},seph:{k:"I Kings",b:"7:13",e:"7:26"},fullkriyah:{1:["35:1","35:20"],2:["35:21","35:29"],3:["35:30","36:7"],4:["36:8","36:19"],5:["36:20","37:16"],6:["37:17","37:29"],7:["38:1","38:20"],M:["38:18","38:20"]},weekday:{1:["35:1","35:3"],2:["35:4","35:10"],3:["35:11","35:20"]}},Pekudei:{num:23,hebrew:"פְקוּדֵי",book:2,haft:{k:"I Kings",b:"7:51",e:"8:21"},seph:{k:"I Kings",b:"7:40",e:"7:50"},fullkriyah:{1:["38:21","39:1"],2:["39:2","39:21"],3:["39:22","39:32"],4:["39:33","39:43"],5:["40:1","40:16"],6:["40:17","40:27"],7:["40:28","40:38"],M:["40:34","40:38"]},weekday:{1:["38:21","38:23"],2:["38:24","38:27"],3:["38:28","39:1"]}},Vayikra:{num:24,hebrew:"וַיִּקְרָא",book:3,haft:{k:"Isaiah",b:"43:21",e:"44:23"},fullkriyah:{1:["1:1","1:13"],2:["1:14","2:6"],3:["2:7","2:16"],4:["3:1","3:17"],5:["4:1","4:26"],6:["4:27","5:10"],7:["5:11","5:26"],M:["5:24","5:26"]},weekday:{1:["1:1","1:4"],2:["1:5","1:9"],3:["1:10","1:13"]}},Tzav:{num:25,hebrew:"צַו",book:3,haft:[{k:"Jeremiah",b:"7:21",e:"8:3"},{k:"Jeremiah",b:"9:22",e:"9:23"}],fullkriyah:{1:["6:1","6:11"],2:["6:12","7:10"],3:["7:11","7:38"],4:["8:1","8:13"],5:["8:14","8:21"],6:["8:22","8:29"],7:["8:30","8:36"],M:["8:33","8:36"]},weekday:{1:["6:1","6:3"],2:["6:4","6:6"],3:["6:7","6:11"]}},Shmini:{num:26,hebrew:"שְּׁמִינִי",book:3,haft:{k:"II Samuel",b:"6:1",e:"7:17"},seph:{k:"II Samuel",b:"6:1",e:"6:19"},fullkriyah:{1:["9:1","9:16"],2:["9:17","9:23"],3:["9:24","10:11"],4:["10:12","10:15"],5:["10:16","10:20"],6:["11:1","11:32"],7:["11:33","11:47"],M:["11:45","11:47"]},weekday:{1:["9:1","9:6"],2:["9:7","9:10"],3:["9:11","9:16"]}},Tazria:{num:27,hebrew:"תַזְרִיעַ",book:3,haft:{k:"II Kings",b:"4:42",e:"5:19"},fullkriyah:{1:["12:1","13:5"],2:["13:6","13:17"],3:["13:18","13:23"],4:["13:24","13:28"],5:["13:29","13:39"],6:["13:40","13:54"],7:["13:55","13:59"],M:["13:57","13:59"]},weekday:{1:["12:1","12:4"],2:["12:5","12:8"],3:["13:1","13:5"]}},Metzora:{num:28,hebrew:"מְּצֹרָע",book:3,haft:{k:"II Kings",b:"7:3",e:"7:20"},fullkriyah:{1:["14:1","14:12"],2:["14:13","14:20"],3:["14:21","14:32"],4:["14:33","14:53"],5:["14:54","15:15"],6:["15:16","15:28"],7:["15:29","15:33"],M:["15:31","15:33"]},weekday:{1:["14:1","14:5"],2:["14:6","14:9"],3:["14:10","14:12"]}},"Achrei Mot":{num:29,hebrew:"אַחֲרֵי מוֹת",book:3,haft:{k:"Amos",b:"9:7",e:"9:15"},seph:{k:"Ezekiel",b:"22:1",e:"22:16"},fullkriyah:{1:["16:1","16:17"],2:["16:18","16:24"],3:["16:25","16:34"],4:["17:1","17:7"],5:["17:8","18:5"],6:["18:6","18:21"],7:["18:22","18:30"],M:["18:28","18:30"]},weekday:{1:["16:1","16:6"],2:["16:7","16:11"],3:["16:12","16:17"]}},Kedoshim:{num:30,hebrew:"קְדשִׁים",book:3,haft:{k:"Ezekiel",b:"22:1",e:"22:19"},seph:{k:"Ezekiel",b:"20:2",e:"20:20"},fullkriyah:{1:["19:1","19:14"],2:["19:15","19:22"],3:["19:23","19:32"],4:["19:33","19:37"],5:["20:1","20:7"],6:["20:8","20:22"],7:["20:23","20:27"],M:["20:25","20:27"]},weekday:{1:["19:1","19:4"],2:["19:5","19:10"],3:["19:11","19:14"]}},Emor:{num:31,hebrew:"אֱמוֹר",book:3,haft:{k:"Ezekiel",b:"44:15",e:"44:31"},fullkriyah:{1:["21:1","21:15"],2:["21:16","22:16"],3:["22:17","22:33"],4:["23:1","23:22"],5:["23:23","23:32"],6:["23:33","23:44"],7:["24:1","24:23"],M:["24:21","24:23"]},weekday:{1:["21:1","21:6"],2:["21:7","21:12"],3:["21:13","21:15"]}},Behar:{num:32,hebrew:"בְּהַר",book:3,haft:{k:"Jeremiah",b:"32:6",e:"32:27"},fullkriyah:{1:["25:1","25:13"],2:["25:14","25:18"],3:["25:19","25:24"],4:["25:25","25:28"],5:["25:29","25:38"],6:["25:39","25:46"],7:["25:47","26:2"],M:["25:55","26:2"]},weekday:{1:["25:1","25:3"],2:["25:4","25:7"],3:["25:8","25:13"]}},Bechukotai:{num:33,hebrew:"בְּחֻקֹּתַי",book:3,haft:{k:"Jeremiah",b:"16:19",e:"17:14"},fullkriyah:{1:["26:3","26:5"],2:["26:6","26:9"],3:["26:10","26:46"],4:["27:1","27:15"],5:["27:16","27:21"],6:["27:22","27:28"],7:["27:29","27:34"],M:["27:32","27:34"]},weekday:{1:["26:3","26:5"],2:["26:6","26:9"],3:["26:10","26:13"]}},Bamidbar:{num:34,hebrew:"בְּמִדְבַּר",book:4,haft:{k:"Hosea",b:"2:1",e:"2:22"},fullkriyah:{1:["1:1","1:19"],2:["1:20","1:54"],3:["2:1","2:34"],4:["3:1","3:13"],5:["3:14","3:39"],6:["3:40","3:51"],7:["4:1","4:20"],M:["4:17","4:20"]},weekday:{1:["1:1","1:4"],2:["1:5","1:16"],3:["1:17","1:19"]}},Nasso:{num:35,hebrew:"נָשׂא",book:4,haft:{k:"Judges",b:"13:2",e:"13:25"},fullkriyah:{1:["4:21","4:37"],2:["4:38","4:49"],3:["5:1","5:10"],4:["5:11","6:27"],5:["7:1","7:41"],6:["7:42","7:71"],7:["7:72","7:89"],M:["7:87","7:89"]},weekday:{1:["4:21","4:24"],2:["4:25","4:28"],3:["4:29","4:33"]}},"Beha'alotcha":{num:36,hebrew:"בְּהַעֲלֹתְךָ",book:4,haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{1:["8:1","8:14"],2:["8:15","8:26"],3:["9:1","9:14"],4:["9:15","10:10"],5:["10:11","10:34"],6:["10:35","11:29"],7:["11:30","12:16"],M:["12:14","12:16"]},weekday:{1:["8:1","8:4"],2:["8:5","8:9"],3:["8:10","8:14"]}},"Sh'lach":{num:37,hebrew:"שְׁלַח־לְךָ",book:4,haft:{k:"Joshua",b:"2:1",e:"2:24"},fullkriyah:{1:["13:1","13:20"],2:["13:21","14:7"],3:["14:8","14:25"],4:["14:26","15:7"],5:["15:8","15:16"],6:["15:17","15:26"],7:["15:27","15:41"],M:["15:37","15:41"]},weekday:{1:["13:1","13:3"],2:["13:4","13:16"],3:["13:17","13:20"]}},Korach:{num:38,hebrew:"קוֹרַח",book:4,haft:{k:"I Samuel",b:"11:14",e:"12:22"},fullkriyah:{1:["16:1","16:13"],2:["16:14","16:19"],3:["16:20","17:8"],4:["17:9","17:15"],5:["17:16","17:24"],6:["17:25","18:20"],7:["18:21","18:32"],M:["18:30","18:32"]},weekday:{1:["16:1","16:3"],2:["16:4","16:7"],3:["16:8","16:13"]}},Chukat:{num:39,hebrew:"חֻקַּת",book:4,haft:{k:"Judges",b:"11:1",e:"11:33"},fullkriyah:{1:["19:1","19:17"],2:["19:18","20:6"],3:["20:7","20:13"],4:["20:14","20:21"],5:["20:22","21:9"],6:["21:10","21:20"],7:["21:21","22:1"],M:["21:34","22:1"]},weekday:{1:["19:1","19:6"],2:["19:7","19:9"],3:["19:10","19:17"]}},Balak:{num:40,hebrew:"בָּלָק",book:4,haft:{k:"Micah",b:"5:6",e:"6:8"},fullkriyah:{1:["22:2","22:12"],2:["22:13","22:20"],3:["22:21","22:38"],4:["22:39","23:12"],5:["23:13","23:26"],6:["23:27","24:13"],7:["24:14","25:9"],M:["25:7","25:9"]},weekday:{1:["22:2","22:4"],2:["22:5","22:7"],3:["22:8","22:12"]}},Pinchas:{num:41,hebrew:"פִּינְחָס",book:4,haft:{k:"I Kings",b:"18:46",e:"19:21"},fullkriyah:{1:["25:10","26:4"],2:["26:5","26:51"],3:["26:52","27:5"],4:["27:6","27:23"],5:["28:1","28:15"],6:["28:16","29:11"],7:["29:12","30:1"],M:["29:35","30:1"]},weekday:{1:["25:10","25:12"],2:["25:13","25:15"],3:["25:16","26:4"]}},Matot:{num:42,hebrew:"מַּטּוֹת",book:4,haft:{k:"Jeremiah",b:"1:1",e:"2:3"},fullkriyah:{1:["30:2","30:17"],2:["31:1","31:12"],3:["31:13","31:24"],4:["31:25","31:41"],5:["31:42","31:54"],6:["32:1","32:19"],7:["32:20","32:42"],M:["32:39","32:42"]},weekday:{1:["30:2","30:9"],2:["30:10","30:13"],3:["30:14","30:17"]}},Masei:{num:43,hebrew:"מַסְעֵי",book:4,haft:[{k:"Jeremiah",b:"2:4",e:"2:28"},{k:"Jeremiah",b:"3:4",e:"3:4"}],seph:[{k:"Jeremiah",b:"2:4",e:"2:28"},{k:"Jeremiah",b:"4:1",e:"4:2"}],fullkriyah:{1:["33:1","33:10"],2:["33:11","33:49"],3:["33:50","34:15"],4:["34:16","34:29"],5:["35:1","35:8"],6:["35:9","35:34"],7:["36:1","36:13"],M:["36:11","36:13"]},weekday:{1:["33:1","33:3"],2:["33:4","33:6"],3:["33:7","33:10"]}},Devarim:{num:44,hebrew:"דְּבָרִים",book:5,haft:{k:"Isaiah",b:"1:1",e:"1:27"},fullkriyah:{1:["1:1","1:10"],2:["1:11","1:21"],3:["1:22","1:38"],4:["1:39","2:1"],5:["2:2","2:30"],6:["2:31","3:14"],7:["3:15","3:22"],M:["3:20","3:22"]},weekday:{1:["1:1","1:3"],2:["1:4","1:7"],3:["1:8","1:11"]}},Vaetchanan:{num:45,hebrew:"וָאֶתְחַנַּן",book:5,haft:{k:"Isaiah",b:"40:1",e:"40:26"},fullkriyah:{1:["3:23","4:4"],2:["4:5","4:40"],3:["4:41","4:49"],4:["5:1","5:18"],5:["5:19","6:3"],6:["6:4","6:25"],7:["7:1","7:11"],M:["7:9","7:11"]},weekday:{1:["3:23","3:25"],2:["3:26","4:4"],3:["4:5","4:8"]}},Eikev:{num:46,hebrew:"עֵקֶב",book:5,haft:{k:"Isaiah",b:"49:14",e:"51:3"},fullkriyah:{1:["7:12","8:10"],2:["8:11","9:3"],3:["9:4","9:29"],4:["10:1","10:11"],5:["10:12","11:9"],6:["11:10","11:21"],7:["11:22","11:25"],M:["11:22","11:25"]},weekday:{1:["7:12","7:21"],2:["7:22","8:3"],3:["8:4","8:10"]}},"Re'eh":{num:47,hebrew:"רְאֵה",book:5,haft:{k:"Isaiah",b:"54:11",e:"55:5"},fullkriyah:{1:["11:26","12:10"],2:["12:11","12:28"],3:["12:29","13:19"],4:["14:1","14:21"],5:["14:22","14:29"],6:["15:1","15:18"],7:["15:19","16:17"],M:["16:13","16:17"]},weekday:{1:["11:26","11:31"],2:["11:32","12:5"],3:["12:6","12:10"]}},Shoftim:{num:48,hebrew:"שׁוֹפְטִים",book:5,haft:{k:"Isaiah",b:"51:12",e:"52:12"},fullkriyah:{1:["16:18","17:13"],2:["17:14","17:20"],3:["18:1","18:5"],4:["18:6","18:13"],5:["18:14","19:13"],6:["19:14","20:9"],7:["20:10","21:9"],M:["21:7","21:9"]},weekday:{1:["16:18","16:20"],2:["16:21","17:10"],3:["17:11","17:13"]}},"Ki Teitzei":{num:49,hebrew:"כִּי־תֵצֵא",book:5,haft:{k:"Isaiah",b:"54:1",e:"54:10"},fullkriyah:{1:["21:10","21:21"],2:["21:22","22:7"],3:["22:8","23:7"],4:["23:8","23:24"],5:["23:25","24:4"],6:["24:5","24:13"],7:["24:14","25:19"],M:["25:17","25:19"]},weekday:{1:["21:10","21:14"],2:["21:15","21:17"],3:["21:18","21:21"]}},"Ki Tavo":{num:50,hebrew:"כִּי־תָבוֹא",book:5,haft:{k:"Isaiah",b:"60:1",e:"60:22"},fullkriyah:{1:["26:1","26:11"],2:["26:12","26:15"],3:["26:16","26:19"],4:["27:1","27:10"],5:["27:11","28:6"],6:["28:7","28:69"],7:["29:1","29:8"],M:["29:6","29:8"]},weekday:{1:["26:1","26:3"],2:["26:4","26:11"],3:["26:12","26:15"]}},Nitzavim:{num:51,hebrew:"נִצָּבִים",book:5,haft:{k:"Isaiah",b:"61:10",e:"63:9"},fullkriyah:{1:["29:9","29:11"],2:["29:12","29:14"],3:["29:15","29:28"],4:["30:1","30:6"],5:["30:7","30:10"],6:["30:11","30:14"],7:["30:15","30:20"],M:["30:15","30:20"]},weekday:{1:["29:9","29:11"],2:["29:12","29:14"],3:["29:15","29:28"]}},Vayeilech:{num:52,hebrew:"וַיֵּלֶךְ",book:5,haft:{k:"Isaiah",b:"55:6",e:"56:8"},fullkriyah:{1:["31:1","31:3"],2:["31:4","31:6"],3:["31:7","31:9"],4:["31:10","31:13"],5:["31:14","31:19"],6:["31:20","31:24"],7:["31:25","31:30"],M:["31:28","31:30"]},weekday:{1:["31:1","31:3"],2:["31:4","31:6"],3:["31:7","31:13"]}},"Ha'azinu":{num:53,hebrew:"הַאֲזִינוּ",book:5,haft:{k:"II Samuel",b:"22:1",e:"22:51"},fullkriyah:{1:["32:1","32:6"],2:["32:7","32:12"],3:["32:13","32:18"],4:["32:19","32:28"],5:["32:29","32:39"],6:["32:40","32:43"],7:["32:44","32:52"],M:["32:48","32:52"]},weekday:{1:["32:1","32:3"],2:["32:4","32:6"],3:["32:7","32:12"]}},"Vezot Haberakhah":{num:54,hebrew:"וְזֹאת הַבְּרָכָה",book:5,haft:{k:"Joshua",b:"1:1",e:"1:18"},seph:{k:"Joshua",b:"1:1",e:"1:9"},fullkriyah:{1:["33:1","33:7"],2:["33:8","33:12"],3:["33:13","33:17"],4:["33:18","33:21"],5:["33:22","33:26"],6:["33:27","33:29"],7:["34:1","34:12"]},weekday:{1:["33:1","33:7"],2:["33:8","33:12"],3:["33:13","33:17"]}},"Vayakhel-Pekudei":{num:[22,23],combined:!0,p1:"Vayakhel",p2:"Pekudei",num1:22,num2:23,book:2,fullkriyah:{1:["35:1","35:29"],2:["35:30","37:16"],3:["37:17","37:29"],4:["38:1","39:1"],5:["39:2","39:21"],6:["39:22","39:43"],7:["40:1","40:38"],M:["40:34","40:38"]}},"Tazria-Metzora":{num:[27,28],combined:!0,p1:"Tazria",p2:"Metzora",num1:27,num2:28,book:3,fullkriyah:{1:["12:1","13:23"],2:["13:24","13:39"],3:["13:40","13:54"],4:["13:55","14:20"],5:["14:21","14:32"],6:["14:33","15:15"],7:["15:16","15:33"],M:["15:31","15:33"]}},"Achrei Mot-Kedoshim":{num:[29,30],combined:!0,p1:"Achrei Mot",p2:"Kedoshim",num1:29,num2:30,book:3,haft:{k:"Amos",b:"9:7",e:"9:15"},seph:{k:"Ezekiel",b:"20:2",e:"20:20"},fullkriyah:{1:["16:1","16:24"],2:["16:25","17:7"],3:["17:8","18:21"],4:["18:22","19:14"],5:["19:15","19:32"],6:["19:33","20:7"],7:["20:8","20:27"],M:["20:25","20:27"]}},"Behar-Bechukotai":{num:[32,33],combined:!0,p1:"Behar",p2:"Bechukotai",num1:32,num2:33,book:3,fullkriyah:{1:["25:1","25:18"],2:["25:19","25:28"],3:["25:29","25:38"],4:["25:39","26:9"],5:["26:10","26:46"],6:["27:1","27:15"],7:["27:16","27:34"],M:["27:32","27:34"]}},"Chukat-Balak":{num:[39,40],combined:!0,p1:"Chukat",p2:"Balak",num1:39,num2:40,book:4,fullkriyah:{1:["19:1","20:6"],2:["20:7","20:21"],3:["20:22","21:20"],4:["21:21","22:12"],5:["22:13","22:38"],6:["22:39","23:26"],7:["23:27","25:9"],M:["25:7","25:9"]}},"Matot-Masei":{num:[42,43],combined:!0,p1:"Matot",p2:"Masei",num1:42,num2:43,book:4,fullkriyah:{1:["30:2","31:12"],2:["31:13","31:54"],3:["32:1","32:19"],4:["32:20","33:49"],5:["33:50","34:15"],6:["34:16","35:8"],7:["35:9","36:13"],M:["36:11","36:13"]}},"Nitzavim-Vayeilech":{num:[51,52],combined:!0,p1:"Nitzavim",p2:"Vayeilech",num1:51,num2:52,book:5,fullkriyah:{1:["29:9","29:28"],2:["30:1","30:6"],3:["30:7","30:14"],4:["30:15","31:6"],5:["31:7","31:13"],6:["31:14","31:19"],7:["31:20","31:30"],M:["31:28","31:30"]}}};function ze(e){return{en:u(e),he:e.map((e=>a.Locale.lookupTranslation(e,"he"))).join("־")}}function Ke(e){const a=Ve(e),t={},h=b[a.book];for(const[e,r]of Object.entries(a.fullkriyah)){const a={k:h,b:r[0],e:r[1]};3===r.length&&(a.reason=r[2]),f(a),t[e]=a}const r=u(e),o=a.combined?[a.p1,a.p2]:[r],n=m(t),s=d(n),i={name:ze(o),parsha:o,parshaNum:a.num,summary:s,fullkriyah:t,haftara:"",haft:[]};n.length>1&&(i.summaryParts=n);const k=function(e){const a=e[0];return 2===e.length&&"Achrei Mot"===a?u(e):1===e.length||"Nitzavim"===a?a:e[1]}(o),l=$e[k].haft;if(l){const e=i.haft=M(l);i.haftara=d(e),i.haftaraNumV=w(e)}const c=$e[k].seph;if(c){const e=i.seph=M(c);i.sephardic=d(e),i.sephardicNumV=w(e)}return i}function Le(e){const a=Ve(e),t=(a.combined?Ve(a.p1):a).weekday;if(!t)throw new Error(`Parsha missing weekday: ${e}`);const h=b[a.book],r={};for(let e=1;e<=3;e++){const a=""+e,o=t[a],n={k:h,b:o[0],e:o[1]};f(n),r[a]=n}return r}function Je(e,a=!1){if("object"!=typeof e||"function"!=typeof e.getFlags)throw new TypeError(`Bad event argument: ${e}`);if(e.getFlags()!==t.flags.PARSHA_HASHAVUA)throw new TypeError(`Event must be parsha hashavua: ${e.getDesc()}`);const h=e.parsha,r=Ke(h),o=He(h,e.getDate(),a,r.fullkriyah),n=o.reason;if(o.haft){const e=r.haft=M(o.haft);if(r.haftara=d(e),r.haftaraNumV=w(e),o.seph){const e=r.seph=M(o.seph);r.sephardic=d(e),r.sephardicNumV=w(e)}else r.seph&&(delete r.seph,delete r.sephardic,delete r.sephardicNumV)}if(n[7]||n.M){r.fullkriyah=o.aliyot;const e=m(r.fullkriyah);r.summary=d(e),r.summaryParts=e}const s=Object.keys(n);if(0!==s.length){r.reason=n;for(const e of s)if("haftara"===e||"sephardic"===e){const a=r["haftara"===e?"haft":"seph"],t=Array.isArray(a)?a:[a];for(const a of t)a.reason=n[e]}else{const a=r.fullkriyah[e];"object"==typeof a&&(a.reason=n[e])}}return r}function Ve(e){const t=u(e),h=$e[t];if("object"!=typeof h)throw new TypeError(`Bad parsha argument: ${e}`);if(h.combined){const[e,r]=t.split("-");if(h.hebrew||(h.hebrew=a.Locale.gettext(e,"he")+"־"+a.Locale.gettext(r,"he")),!h.haft){const a="Nitzavim"===e?e:r;h.haft=Ve(a).haft}}return h}const Fe=" (Mincha)";function Oe(e,a){const t=Ne(e.getDesc()+Fe,e.cholHaMoedDay,a);if(t)return t;const h=Re(e,a);if(h){const t=Ne(h+Fe,e.cholHaMoedDay,a);if(t)return t}}return Object.defineProperty(e,"Locale",{enumerable:!0,get:function(){return a.Locale}}),e.BOOK=b,e.NUM_VERSES=l,e.addVerses=function(e,a,t){const h=a.split(":"),r=parseInt(h[0],10),o=parseInt(h[1],10),n=l[e];if("object"!=typeof n||!n.length)throw new ReferenceError(`Can't find numverses for ${e}`);let s=o+t,i=r;for(;s>n[i];)if(s-=n[i],i++,!n[i])return null;return`${i}:${s}`},e.calculateNumVerses=f,e.clone=g,e.cloneHaftara=M,e.formatAliyahShort=p,e.formatAliyahWithBook=function(e){return`${e.k} ${e.b}-${e.e}`},e.getLeyningForHoliday=Pe,e.getLeyningForHolidayKey=Ne,e.getLeyningForParsha=function(e){const a=Ke(e);return a.weekday=Le(e),a},e.getLeyningForParshaHaShavua=Je,e.getLeyningKeyForEvent=Re,e.getLeyningOnDate=function(e,a,n=!1){const s=e.getDay(),i=[];let k=!1;if(6===s){const t=e.getFullYear(),h=r.getSedra(t,a).lookup(e);if(!h.chag){const t=Je(new o.ParshaEvent(e,h.parsha,a),a);if(!n)return t;k=!0,i.push(t)}}const b=h.getHolidaysOnDate(e,a)||[];let l=!1;for(const e of b){const h=Boolean(e.getFlags()&(t.flags.SPECIAL_SHABBAT|t.flags.ROSH_CHODESH));if(k&&h)continue;const r=Pe(e,a);if(r){if(i.some((e=>e.name.en===r.name.en)))continue;const t=r.fullkriyah;t&&(l=!0);k&&l&&t.M&&!t[1]||i.push(r);const h=Oe(e,a);h&&i.push(h);const o=e.getDesc();if(a&&"Sukkot VII (Hoshana Raba)"===o||!a&&"Shmini Atzeret"===o){const e=Ne("Erev Simchat Torah");i.push(e)}}}if(!l&&(1===s||4===s)){const t=function(e,a){const t=e.getFullYear(),h=r.getSedra(t,a),o=h.lookup(e);if(!o.chag)return o;if(e.getMonth()===L){const t=e.getDate();if(t>2&&t<=(a?22:23))return{parsha:["Vezot Haberakhah"],chag:!1,num:54,hdate:e}}const n=new Ce(1,L,t+1).abs()-1,s=n+30;for(let o=e.abs()+7;o<=s;o+=7){const e=(o>n?r.getSedra(t+1,a):h).lookup(o);if(!e.chag)return e}throw new Error(`can't findParshaHaShavua for ${e}/${a}`)}(e.onOrAfter(6),a),h=Le(t.parsha),o=m(h),n={name:ze(t.parsha),parsha:t.parsha,parshaNum:t.num,weekday:h,summary:d(o)};i.unshift(n)}return n?i:i[0]},e.getWeekdayReading=Le,e.hasFestival=I,e.lookupFestival=C,e.lookupParsha=Ve,e.makeLeyningNames=ze,e.makeLeyningParts=m,e.makeLeyningSummary=function(e){return d(m(e))},e.makeSummaryFromParts=d,e.parshaToString=u,e.specialReadings2=He,e.subtractVerses=c,e.sumVerses=w,e}({},hebcal,hebcal,hebcal,hebcal,hebcal);
|
package/dist/esm/aliyot.json.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/leyning v9.0
|
|
1
|
+
/*! @hebcal/leyning v9.1.0 */
|
|
2
2
|
const Bereshit={num:1,hebrew:"בְּרֵאשִׁית",book:1,haft:{k:"Isaiah",b:"42:5",e:"43:10"},seph:{k:"Isaiah",b:"42:5",e:"42:21"},fullkriyah:{"1":["1:1","2:3"],"2":["2:4","2:19"],"3":["2:20","3:21"],"4":["3:22","4:18"],"5":["4:19","4:22","some sources use 4:19-26"],"6":["4:23","5:24","some sources use 5:1-24"],"7":["5:25","6:8"],M:["6:5","6:8"]},weekday:{"1":["1:1","1:5"],"2":["1:6","1:8"],"3":["1:9","1:13"]}};const Noach={num:2,hebrew:"נֹחַ",book:1,haft:{k:"Isaiah",b:"54:1",e:"55:5"},seph:{k:"Isaiah",b:"54:1",e:"54:10"},fullkriyah:{"1":["6:9","6:22"],"2":["7:1","7:16"],"3":["7:17","8:14"],"4":["8:15","9:7"],"5":["9:8","9:17"],"6":["9:18","10:32"],"7":["11:1","11:32"],M:["11:29","11:32"]},weekday:{"1":["6:9","6:16"],"2":["6:17","6:19"],"3":["6:20","6:22"]}};const Vayera={num:4,hebrew:"וַיֵּרָא",book:1,haft:{k:"II Kings",b:"4:1",e:"4:37"},seph:{k:"II Kings",b:"4:1",e:"4:23"},fullkriyah:{"1":["18:1","18:14"],"2":["18:15","18:33"],"3":["19:1","19:20"],"4":["19:21","21:4"],"5":["21:5","21:21"],"6":["21:22","21:34"],"7":["22:1","22:24"],M:["22:20","22:24"]},weekday:{"1":["18:1","18:5"],"2":["18:6","18:8"],"3":["18:9","18:14"]}};const Toldot={num:6,hebrew:"תּוֹלְדוֹת",book:1,haft:{k:"Malachi",b:"1:1",e:"2:7"},fullkriyah:{"1":["25:19","26:5"],"2":["26:6","26:12"],"3":["26:13","26:22"],"4":["26:23","26:29"],"5":["26:30","27:27"],"6":["27:28","28:4"],"7":["28:5","28:9"],M:["28:7","28:9"]},weekday:{"1":["25:19","25:22"],"2":["25:23","25:26"],"3":["25:27","26:5"]}};const Vayetzei={num:7,hebrew:"וַיֵּצֵא",book:1,haft:{k:"Hosea",b:"12:13",e:"14:10"},seph:{k:"Hosea",b:"11:7",e:"12:12"},fullkriyah:{"1":["28:10","28:22"],"2":["29:1","29:17"],"3":["29:18","30:13"],"4":["30:14","30:27"],"5":["30:28","31:16"],"6":["31:17","31:42"],"7":["31:43","32:3"],M:["32:1","32:3"]},weekday:{"1":["28:10","28:12"],"2":["28:13","28:17"],"3":["28:18","28:22"]}};const Vayishlach={num:8,hebrew:"וַיִּשְׁלַח",book:1,haft:{k:"Obadiah",b:"1:1",e:"1:21"},fullkriyah:{"1":["32:4","32:13"],"2":["32:14","32:30"],"3":["32:31","33:5"],"4":["33:6","33:20"],"5":["34:1","35:11"],"6":["35:12","36:19"],"7":["36:20","36:43"],M:["36:40","36:43"]},weekday:{"1":["32:4","32:6"],"2":["32:7","32:9"],"3":["32:10","32:13"]}};const Vayeshev={num:9,hebrew:"וַיֵּשֶׁב",book:1,haft:{k:"Amos",b:"2:6",e:"3:8"},fullkriyah:{"1":["37:1","37:11"],"2":["37:12","37:22"],"3":["37:23","37:36"],"4":["38:1","38:30"],"5":["39:1","39:6"],"6":["39:7","39:23"],"7":["40:1","40:23"],M:["40:20","40:23"]},weekday:{"1":["37:1","37:3"],"2":["37:4","37:7"],"3":["37:8","37:11"]}};const Miketz={num:10,hebrew:"מִקֵּץ",book:1,haft:{k:"I Kings",b:"3:15",e:"4:1"},fullkriyah:{"1":["41:1","41:14"],"2":["41:15","41:38"],"3":["41:39","41:52"],"4":["41:53","42:18"],"5":["42:19","43:15"],"6":["43:16","43:29"],"7":["43:30","44:17"],M:["44:14","44:17"]},weekday:{"1":["41:1","41:4"],"2":["41:5","41:7"],"3":["41:8","41:14"]}};const Vayigash={num:11,hebrew:"וַיִּגַּשׁ",book:1,haft:{k:"Ezekiel",b:"37:15",e:"37:28"},fullkriyah:{"1":["44:18","44:30"],"2":["44:31","45:7"],"3":["45:8","45:18"],"4":["45:19","45:27"],"5":["45:28","46:27"],"6":["46:28","47:10"],"7":["47:11","47:27"],M:["47:25","47:27"]},weekday:{"1":["44:18","44:20"],"2":["44:21","44:24"],"3":["44:25","44:30"]}};const Vayechi={num:12,hebrew:"וַיְחִי",book:1,haft:{k:"I Kings",b:"2:1",e:"2:12"},fullkriyah:{"1":["47:28","48:9"],"2":["48:10","48:16"],"3":["48:17","48:22"],"4":["49:1","49:18"],"5":["49:19","49:26"],"6":["49:27","50:20"],"7":["50:21","50:26"],M:["50:23","50:26"]},weekday:{"1":["47:28","47:31"],"2":["48:1","48:3"],"3":["48:4","48:9"]}};const Shemot={num:13,hebrew:"שְׁמוֹת",book:2,haft:[{k:"Isaiah",b:"27:6",e:"28:13"},{k:"Isaiah",b:"29:22",e:"29:23"}],seph:{k:"Jeremiah",b:"1:1",e:"2:3"},fullkriyah:{"1":["1:1","1:17"],"2":["1:18","2:10"],"3":["2:11","2:25"],"4":["3:1","3:15"],"5":["3:16","4:17"],"6":["4:18","4:31"],"7":["5:1","6:1"],M:["5:22","6:1"]},weekday:{"1":["1:1","1:7"],"2":["1:8","1:12"],"3":["1:13","1:17"]}};const Vaera={num:14,hebrew:"וָאֵרָא",book:2,haft:{k:"Ezekiel",b:"28:25",e:"29:21"},fullkriyah:{"1":["6:2","6:13"],"2":["6:14","6:28"],"3":["6:29","7:7"],"4":["7:8","8:6"],"5":["8:7","8:18"],"6":["8:19","9:16"],"7":["9:17","9:35"],M:["9:33","9:35"]},weekday:{"1":["6:2","6:5"],"2":["6:6","6:9"],"3":["6:10","6:13"]}};const Bo={num:15,hebrew:"בֹּא",book:2,haft:{k:"Jeremiah",b:"46:13",e:"46:28"},fullkriyah:{"1":["10:1","10:11"],"2":["10:12","10:23"],"3":["10:24","11:3"],"4":["11:4","12:20"],"5":["12:21","12:28"],"6":["12:29","12:51"],"7":["13:1","13:16"],M:["13:14","13:16"]},weekday:{"1":["10:1","10:3"],"2":["10:4","10:6"],"3":["10:7","10:11"]}};const Beshalach={num:16,hebrew:"בְּשַׁלַּח",book:2,haft:{k:"Judges",b:"4:4",e:"5:31"},seph:{k:"Judges",b:"5:1",e:"5:31"},fullkriyah:{"1":["13:17","14:8"],"2":["14:9","14:14"],"3":["14:15","14:25"],"4":["14:26","15:26"],"5":["15:27","16:10"],"6":["16:11","16:36"],"7":["17:1","17:16"],M:["17:14","17:16"]},weekday:{"1":["13:17","13:22"],"2":["14:1","14:4"],"3":["14:5","14:8"]}};const Yitro={num:17,hebrew:"יִתְרוֹ",book:2,haft:[{k:"Isaiah",b:"6:1",e:"7:6"},{k:"Isaiah",b:"9:5",e:"9:6"}],seph:{k:"Isaiah",b:"6:1",e:"6:13"},fullkriyah:{"1":["18:1","18:12"],"2":["18:13","18:23"],"3":["18:24","18:27"],"4":["19:1","19:6"],"5":["19:7","19:19"],"6":["19:20","20:14"],"7":["20:15","20:23"],M:["20:19","20:23"]},weekday:{"1":["18:1","18:4"],"2":["18:5","18:8"],"3":["18:9","18:12"]}};const Mishpatim={num:18,hebrew:"מִּשְׁפָּטִים",book:2,haft:[{k:"Jeremiah",b:"34:8",e:"34:22"},{k:"Jeremiah",b:"33:25",e:"33:26"}],fullkriyah:{"1":["21:1","21:19"],"2":["21:20","22:3"],"3":["22:4","22:26"],"4":["22:27","23:5"],"5":["23:6","23:19"],"6":["23:20","23:25"],"7":["23:26","24:18"],M:["24:15","24:18"]},weekday:{"1":["21:1","21:6"],"2":["21:7","21:11"],"3":["21:12","21:19"]}};const Terumah={num:19,hebrew:"תְּרוּמָה",book:2,haft:{k:"I Kings",b:"5:26",e:"6:13"},fullkriyah:{"1":["25:1","25:16"],"2":["25:17","25:40","some sources use 25:17-30"],"3":["26:1","26:14","some sources use 25:31-26:14"],"4":["26:15","26:30"],"5":["26:31","26:37"],"6":["27:1","27:8"],"7":["27:9","27:19"],M:["27:17","27:19"]},weekday:{"1":["25:1","25:5"],"2":["25:6","25:9"],"3":["25:10","25:16"]}};const Tetzaveh={num:20,hebrew:"תְּצַוֶּה",book:2,haft:{k:"Ezekiel",b:"43:10",e:"43:27"},fullkriyah:{"1":["27:20","28:12"],"2":["28:13","28:30"],"3":["28:31","28:43"],"4":["29:1","29:18"],"5":["29:19","29:37"],"6":["29:38","29:46"],"7":["30:1","30:10"],M:["30:8","30:10"]},weekday:{"1":["27:20","28:5"],"2":["28:6","28:9"],"3":["28:10","28:12"]}};const Vayakhel={num:22,hebrew:"וַיַּקְהֵל",book:2,haft:{k:"I Kings",b:"7:40",e:"7:50"},seph:{k:"I Kings",b:"7:13",e:"7:26"},fullkriyah:{"1":["35:1","35:20"],"2":["35:21","35:29"],"3":["35:30","36:7"],"4":["36:8","36:19"],"5":["36:20","37:16"],"6":["37:17","37:29"],"7":["38:1","38:20"],M:["38:18","38:20"]},weekday:{"1":["35:1","35:3"],"2":["35:4","35:10"],"3":["35:11","35:20"]}};const Pekudei={num:23,hebrew:"פְקוּדֵי",book:2,haft:{k:"I Kings",b:"7:51",e:"8:21"},seph:{k:"I Kings",b:"7:40",e:"7:50"},fullkriyah:{"1":["38:21","39:1"],"2":["39:2","39:21"],"3":["39:22","39:32"],"4":["39:33","39:43"],"5":["40:1","40:16"],"6":["40:17","40:27"],"7":["40:28","40:38"],M:["40:34","40:38"]},weekday:{"1":["38:21","38:23"],"2":["38:24","38:27"],"3":["38:28","39:1"]}};const Vayikra={num:24,hebrew:"וַיִּקְרָא",book:3,haft:{k:"Isaiah",b:"43:21",e:"44:23"},fullkriyah:{"1":["1:1","1:13"],"2":["1:14","2:6"],"3":["2:7","2:16"],"4":["3:1","3:17"],"5":["4:1","4:26"],"6":["4:27","5:10"],"7":["5:11","5:26"],M:["5:24","5:26"]},weekday:{"1":["1:1","1:4"],"2":["1:5","1:9"],"3":["1:10","1:13"]}};const Tzav={num:25,hebrew:"צַו",book:3,haft:[{k:"Jeremiah",b:"7:21",e:"8:3"},{k:"Jeremiah",b:"9:22",e:"9:23"}],fullkriyah:{"1":["6:1","6:11"],"2":["6:12","7:10"],"3":["7:11","7:38"],"4":["8:1","8:13"],"5":["8:14","8:21"],"6":["8:22","8:29"],"7":["8:30","8:36"],M:["8:33","8:36"]},weekday:{"1":["6:1","6:3"],"2":["6:4","6:6"],"3":["6:7","6:11"]}};const Shmini={num:26,hebrew:"שְּׁמִינִי",book:3,haft:{k:"II Samuel",b:"6:1",e:"7:17"},seph:{k:"II Samuel",b:"6:1",e:"6:19"},fullkriyah:{"1":["9:1","9:16"],"2":["9:17","9:23"],"3":["9:24","10:11"],"4":["10:12","10:15"],"5":["10:16","10:20"],"6":["11:1","11:32"],"7":["11:33","11:47"],M:["11:45","11:47"]},weekday:{"1":["9:1","9:6"],"2":["9:7","9:10"],"3":["9:11","9:16"]}};const Tazria={num:27,hebrew:"תַזְרִיעַ",book:3,haft:{k:"II Kings",b:"4:42",e:"5:19"},fullkriyah:{"1":["12:1","13:5"],"2":["13:6","13:17"],"3":["13:18","13:23"],"4":["13:24","13:28"],"5":["13:29","13:39"],"6":["13:40","13:54"],"7":["13:55","13:59"],M:["13:57","13:59"]},weekday:{"1":["12:1","12:4"],"2":["12:5","12:8"],"3":["13:1","13:5"]}};const Metzora={num:28,hebrew:"מְּצֹרָע",book:3,haft:{k:"II Kings",b:"7:3",e:"7:20"},fullkriyah:{"1":["14:1","14:12"],"2":["14:13","14:20"],"3":["14:21","14:32"],"4":["14:33","14:53"],"5":["14:54","15:15"],"6":["15:16","15:28"],"7":["15:29","15:33"],M:["15:31","15:33"]},weekday:{"1":["14:1","14:5"],"2":["14:6","14:9"],"3":["14:10","14:12"]}};const Kedoshim={num:30,hebrew:"קְדשִׁים",book:3,haft:{k:"Ezekiel",b:"22:1",e:"22:19"},seph:{k:"Ezekiel",b:"20:2",e:"20:20"},fullkriyah:{"1":["19:1","19:14"],"2":["19:15","19:22"],"3":["19:23","19:32"],"4":["19:33","19:37"],"5":["20:1","20:7"],"6":["20:8","20:22"],"7":["20:23","20:27"],M:["20:25","20:27"]},weekday:{"1":["19:1","19:4"],"2":["19:5","19:10"],"3":["19:11","19:14"]}};const Emor={num:31,hebrew:"אֱמוֹר",book:3,haft:{k:"Ezekiel",b:"44:15",e:"44:31"},fullkriyah:{"1":["21:1","21:15"],"2":["21:16","22:16"],"3":["22:17","22:33"],"4":["23:1","23:22"],"5":["23:23","23:32"],"6":["23:33","23:44"],"7":["24:1","24:23"],M:["24:21","24:23"]},weekday:{"1":["21:1","21:6"],"2":["21:7","21:12"],"3":["21:13","21:15"]}};const Behar={num:32,hebrew:"בְּהַר",book:3,haft:{k:"Jeremiah",b:"32:6",e:"32:27"},fullkriyah:{"1":["25:1","25:13"],"2":["25:14","25:18"],"3":["25:19","25:24"],"4":["25:25","25:28"],"5":["25:29","25:38"],"6":["25:39","25:46"],"7":["25:47","26:2"],M:["25:55","26:2"]},weekday:{"1":["25:1","25:3"],"2":["25:4","25:7"],"3":["25:8","25:13"]}};const Bechukotai={num:33,hebrew:"בְּחֻקֹּתַי",book:3,haft:{k:"Jeremiah",b:"16:19",e:"17:14"},fullkriyah:{"1":["26:3","26:5"],"2":["26:6","26:9"],"3":["26:10","26:46"],"4":["27:1","27:15"],"5":["27:16","27:21"],"6":["27:22","27:28"],"7":["27:29","27:34"],M:["27:32","27:34"]},weekday:{"1":["26:3","26:5"],"2":["26:6","26:9"],"3":["26:10","26:13"]}};const Bamidbar={num:34,hebrew:"בְּמִדְבַּר",book:4,haft:{k:"Hosea",b:"2:1",e:"2:22"},fullkriyah:{"1":["1:1","1:19"],"2":["1:20","1:54"],"3":["2:1","2:34"],"4":["3:1","3:13"],"5":["3:14","3:39"],"6":["3:40","3:51"],"7":["4:1","4:20"],M:["4:17","4:20"]},weekday:{"1":["1:1","1:4"],"2":["1:5","1:16"],"3":["1:17","1:19"]}};const Nasso={num:35,hebrew:"נָשׂא",book:4,haft:{k:"Judges",b:"13:2",e:"13:25"},fullkriyah:{"1":["4:21","4:37"],"2":["4:38","4:49"],"3":["5:1","5:10"],"4":["5:11","6:27"],"5":["7:1","7:41"],"6":["7:42","7:71"],"7":["7:72","7:89"],M:["7:87","7:89"]},weekday:{"1":["4:21","4:24"],"2":["4:25","4:28"],"3":["4:29","4:33"]}};const Korach={num:38,hebrew:"קוֹרַח",book:4,haft:{k:"I Samuel",b:"11:14",e:"12:22"},fullkriyah:{"1":["16:1","16:13"],"2":["16:14","16:19"],"3":["16:20","17:8"],"4":["17:9","17:15"],"5":["17:16","17:24"],"6":["17:25","18:20"],"7":["18:21","18:32"],M:["18:30","18:32"]},weekday:{"1":["16:1","16:3"],"2":["16:4","16:7"],"3":["16:8","16:13"]}};const Chukat={num:39,hebrew:"חֻקַּת",book:4,haft:{k:"Judges",b:"11:1",e:"11:33"},fullkriyah:{"1":["19:1","19:17"],"2":["19:18","20:6"],"3":["20:7","20:13"],"4":["20:14","20:21"],"5":["20:22","21:9"],"6":["21:10","21:20"],"7":["21:21","22:1"],M:["21:34","22:1"]},weekday:{"1":["19:1","19:6"],"2":["19:7","19:9"],"3":["19:10","19:17"]}};const Balak={num:40,hebrew:"בָּלָק",book:4,haft:{k:"Micah",b:"5:6",e:"6:8"},fullkriyah:{"1":["22:2","22:12"],"2":["22:13","22:20"],"3":["22:21","22:38"],"4":["22:39","23:12"],"5":["23:13","23:26"],"6":["23:27","24:13"],"7":["24:14","25:9"],M:["25:7","25:9"]},weekday:{"1":["22:2","22:4"],"2":["22:5","22:7"],"3":["22:8","22:12"]}};const Pinchas={num:41,hebrew:"פִּינְחָס",book:4,haft:{k:"I Kings",b:"18:46",e:"19:21"},fullkriyah:{"1":["25:10","26:4"],"2":["26:5","26:51"],"3":["26:52","27:5"],"4":["27:6","27:23"],"5":["28:1","28:15"],"6":["28:16","29:11"],"7":["29:12","30:1"],M:["29:35","30:1"]},weekday:{"1":["25:10","25:12"],"2":["25:13","25:15"],"3":["25:16","26:4"]}};const Matot={num:42,hebrew:"מַּטּוֹת",book:4,haft:{k:"Jeremiah",b:"1:1",e:"2:3"},fullkriyah:{"1":["30:2","30:17"],"2":["31:1","31:12"],"3":["31:13","31:24"],"4":["31:25","31:41"],"5":["31:42","31:54"],"6":["32:1","32:19"],"7":["32:20","32:42"],M:["32:39","32:42"]},weekday:{"1":["30:2","30:9"],"2":["30:10","30:13"],"3":["30:14","30:17"]}};const Masei={num:43,hebrew:"מַסְעֵי",book:4,haft:[{k:"Jeremiah",b:"2:4",e:"2:28"},{k:"Jeremiah",b:"3:4",e:"3:4"}],seph:[{k:"Jeremiah",b:"2:4",e:"2:28"},{k:"Jeremiah",b:"4:1",e:"4:2"}],fullkriyah:{"1":["33:1","33:10"],"2":["33:11","33:49"],"3":["33:50","34:15"],"4":["34:16","34:29"],"5":["35:1","35:8"],"6":["35:9","35:34"],"7":["36:1","36:13"],M:["36:11","36:13"]},weekday:{"1":["33:1","33:3"],"2":["33:4","33:6"],"3":["33:7","33:10"]}};const Devarim={num:44,hebrew:"דְּבָרִים",book:5,haft:{k:"Isaiah",b:"1:1",e:"1:27"},fullkriyah:{"1":["1:1","1:10"],"2":["1:11","1:21"],"3":["1:22","1:38"],"4":["1:39","2:1"],"5":["2:2","2:30"],"6":["2:31","3:14"],"7":["3:15","3:22"],M:["3:20","3:22"]},weekday:{"1":["1:1","1:3"],"2":["1:4","1:7"],"3":["1:8","1:11"]}};const Vaetchanan={num:45,hebrew:"וָאֶתְחַנַּן",book:5,haft:{k:"Isaiah",b:"40:1",e:"40:26"},fullkriyah:{"1":["3:23","4:4"],"2":["4:5","4:40"],"3":["4:41","4:49"],"4":["5:1","5:18"],"5":["5:19","6:3"],"6":["6:4","6:25"],"7":["7:1","7:11"],M:["7:9","7:11"]},weekday:{"1":["3:23","3:25"],"2":["3:26","4:4"],"3":["4:5","4:8"]}};const Eikev={num:46,hebrew:"עֵקֶב",book:5,haft:{k:"Isaiah",b:"49:14",e:"51:3"},fullkriyah:{"1":["7:12","8:10"],"2":["8:11","9:3"],"3":["9:4","9:29"],"4":["10:1","10:11"],"5":["10:12","11:9"],"6":["11:10","11:21"],"7":["11:22","11:25"],M:["11:22","11:25"]},weekday:{"1":["7:12","7:21"],"2":["7:22","8:3"],"3":["8:4","8:10"]}};const Shoftim={num:48,hebrew:"שׁוֹפְטִים",book:5,haft:{k:"Isaiah",b:"51:12",e:"52:12"},fullkriyah:{"1":["16:18","17:13"],"2":["17:14","17:20"],"3":["18:1","18:5"],"4":["18:6","18:13"],"5":["18:14","19:13"],"6":["19:14","20:9"],"7":["20:10","21:9"],M:["21:7","21:9"]},weekday:{"1":["16:18","16:20"],"2":["16:21","17:10"],"3":["17:11","17:13"]}};const Nitzavim={num:51,hebrew:"נִצָּבִים",book:5,haft:{k:"Isaiah",b:"61:10",e:"63:9"},fullkriyah:{"1":["29:9","29:11"],"2":["29:12","29:14"],"3":["29:15","29:28"],"4":["30:1","30:6"],"5":["30:7","30:10"],"6":["30:11","30:14"],"7":["30:15","30:20"],M:["30:15","30:20"]},weekday:{"1":["29:9","29:11"],"2":["29:12","29:14"],"3":["29:15","29:28"]}};const Vayeilech={num:52,hebrew:"וַיֵּלֶךְ",book:5,haft:{k:"Isaiah",b:"55:6",e:"56:8"},fullkriyah:{"1":["31:1","31:3"],"2":["31:4","31:6"],"3":["31:7","31:9"],"4":["31:10","31:13"],"5":["31:14","31:19"],"6":["31:20","31:24"],"7":["31:25","31:30"],M:["31:28","31:30"]},weekday:{"1":["31:1","31:3"],"2":["31:4","31:6"],"3":["31:7","31:13"]}};var parshiyotObj0 = {Bereshit:Bereshit,Noach:Noach,"Lech-Lecha":{num:3,hebrew:"לֶךְ־לְךָ",book:1,haft:{k:"Isaiah",b:"40:27",e:"41:16"},fullkriyah:{"1":["12:1","12:13"],"2":["12:14","13:4"],"3":["13:5","13:18"],"4":["14:1","14:20"],"5":["14:21","15:6"],"6":["15:7","17:6"],"7":["17:7","17:27"],M:["17:24","17:27"]},weekday:{"1":["12:1","12:3"],"2":["12:4","12:9"],"3":["12:10","12:13"]}},Vayera:Vayera,"Chayei Sara":{num:5,hebrew:"חַיֵּי שָֹרָה",book:1,haft:{k:"I Kings",b:"1:1",e:"1:31"},fullkriyah:{"1":["23:1","23:16"],"2":["23:17","24:9"],"3":["24:10","24:26"],"4":["24:27","24:52"],"5":["24:53","24:67"],"6":["25:1","25:11"],"7":["25:12","25:18"],M:["25:16","25:18"]},weekday:{"1":["23:1","23:7"],"2":["23:8","23:12"],"3":["23:13","23:16"]}},Toldot:Toldot,Vayetzei:Vayetzei,Vayishlach:Vayishlach,Vayeshev:Vayeshev,Miketz:Miketz,Vayigash:Vayigash,Vayechi:Vayechi,Shemot:Shemot,Vaera:Vaera,Bo:Bo,Beshalach:Beshalach,Yitro:Yitro,Mishpatim:Mishpatim,Terumah:Terumah,Tetzaveh:Tetzaveh,"Ki Tisa":{num:21,hebrew:"כִּי תִשָּׂא",book:2,haft:{k:"I Kings",b:"18:1",e:"18:39"},seph:{k:"I Kings",b:"18:20",e:"18:39"},fullkriyah:{"1":["30:11","31:17"],"2":["31:18","33:11"],"3":["33:12","33:16"],"4":["33:17","33:23"],"5":["34:1","34:9"],"6":["34:10","34:26"],"7":["34:27","34:35"],M:["34:33","34:35"]},weekday:{"1":["30:11","30:13"],"2":["30:14","30:16"],"3":["30:17","30:21"]}},Vayakhel:Vayakhel,Pekudei:Pekudei,Vayikra:Vayikra,Tzav:Tzav,Shmini:Shmini,Tazria:Tazria,Metzora:Metzora,"Achrei Mot":{num:29,hebrew:"אַחֲרֵי מוֹת",book:3,haft:{k:"Amos",b:"9:7",e:"9:15"},seph:{k:"Ezekiel",b:"22:1",e:"22:16"},fullkriyah:{"1":["16:1","16:17"],"2":["16:18","16:24"],"3":["16:25","16:34"],"4":["17:1","17:7"],"5":["17:8","18:5"],"6":["18:6","18:21"],"7":["18:22","18:30"],M:["18:28","18:30"]},weekday:{"1":["16:1","16:6"],"2":["16:7","16:11"],"3":["16:12","16:17"]}},Kedoshim:Kedoshim,Emor:Emor,Behar:Behar,Bechukotai:Bechukotai,Bamidbar:Bamidbar,Nasso:Nasso,"Beha'alotcha":{num:36,hebrew:"בְּהַעֲלֹתְךָ",book:4,haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{"1":["8:1","8:14"],"2":["8:15","8:26"],"3":["9:1","9:14"],"4":["9:15","10:10"],"5":["10:11","10:34"],"6":["10:35","11:29"],"7":["11:30","12:16"],M:["12:14","12:16"]},weekday:{"1":["8:1","8:4"],"2":["8:5","8:9"],"3":["8:10","8:14"]}},"Sh'lach":{num:37,hebrew:"שְׁלַח־לְךָ",book:4,haft:{k:"Joshua",b:"2:1",e:"2:24"},fullkriyah:{"1":["13:1","13:20"],"2":["13:21","14:7"],"3":["14:8","14:25"],"4":["14:26","15:7"],"5":["15:8","15:16"],"6":["15:17","15:26"],"7":["15:27","15:41"],M:["15:37","15:41"]},weekday:{"1":["13:1","13:3"],"2":["13:4","13:16"],"3":["13:17","13:20"]}},Korach:Korach,Chukat:Chukat,Balak:Balak,Pinchas:Pinchas,Matot:Matot,Masei:Masei,Devarim:Devarim,Vaetchanan:Vaetchanan,Eikev:Eikev,"Re'eh":{num:47,hebrew:"רְאֵה",book:5,haft:{k:"Isaiah",b:"54:11",e:"55:5"},fullkriyah:{"1":["11:26","12:10"],"2":["12:11","12:28"],"3":["12:29","13:19"],"4":["14:1","14:21"],"5":["14:22","14:29"],"6":["15:1","15:18"],"7":["15:19","16:17"],M:["16:13","16:17"]},weekday:{"1":["11:26","11:31"],"2":["11:32","12:5"],"3":["12:6","12:10"]}},Shoftim:Shoftim,"Ki Teitzei":{num:49,hebrew:"כִּי־תֵצֵא",book:5,haft:{k:"Isaiah",b:"54:1",e:"54:10"},fullkriyah:{"1":["21:10","21:21"],"2":["21:22","22:7"],"3":["22:8","23:7"],"4":["23:8","23:24"],"5":["23:25","24:4"],"6":["24:5","24:13"],"7":["24:14","25:19"],M:["25:17","25:19"]},weekday:{"1":["21:10","21:14"],"2":["21:15","21:17"],"3":["21:18","21:21"]}},"Ki Tavo":{num:50,hebrew:"כִּי־תָבוֹא",book:5,haft:{k:"Isaiah",b:"60:1",e:"60:22"},fullkriyah:{"1":["26:1","26:11"],"2":["26:12","26:15"],"3":["26:16","26:19"],"4":["27:1","27:10"],"5":["27:11","28:6"],"6":["28:7","28:69"],"7":["29:1","29:8"],M:["29:6","29:8"]},weekday:{"1":["26:1","26:3"],"2":["26:4","26:11"],"3":["26:12","26:15"]}},Nitzavim:Nitzavim,Vayeilech:Vayeilech,"Ha'azinu":{num:53,hebrew:"הַאֲזִינוּ",book:5,haft:{k:"II Samuel",b:"22:1",e:"22:51"},fullkriyah:{"1":["32:1","32:6"],"2":["32:7","32:12"],"3":["32:13","32:18"],"4":["32:19","32:28"],"5":["32:29","32:39"],"6":["32:40","32:43"],"7":["32:44","32:52"],M:["32:48","32:52"]},weekday:{"1":["32:1","32:3"],"2":["32:4","32:6"],"3":["32:7","32:12"]}},"Vezot Haberakhah":{num:54,hebrew:"וְזֹאת הַבְּרָכָה",book:5,haft:{k:"Joshua",b:"1:1",e:"1:18"},seph:{k:"Joshua",b:"1:1",e:"1:9"},fullkriyah:{"1":["33:1","33:7"],"2":["33:8","33:12"],"3":["33:13","33:17"],"4":["33:18","33:21"],"5":["33:22","33:26"],"6":["33:27","33:29"],"7":["34:1","34:12"]},weekday:{"1":["33:1","33:7"],"2":["33:8","33:12"],"3":["33:13","33:17"]}},"Vayakhel-Pekudei":{num:[22,23],combined:true,p1:"Vayakhel",p2:"Pekudei",num1:22,num2:23,book:2,fullkriyah:{"1":["35:1","35:29"],"2":["35:30","37:16"],"3":["37:17","37:29"],"4":["38:1","39:1"],"5":["39:2","39:21"],"6":["39:22","39:43"],"7":["40:1","40:38"],M:["40:34","40:38"]}},"Tazria-Metzora":{num:[27,28],combined:true,p1:"Tazria",p2:"Metzora",num1:27,num2:28,book:3,fullkriyah:{"1":["12:1","13:23"],"2":["13:24","13:39"],"3":["13:40","13:54"],"4":["13:55","14:20"],"5":["14:21","14:32"],"6":["14:33","15:15"],"7":["15:16","15:33"],M:["15:31","15:33"]}},"Achrei Mot-Kedoshim":{num:[29,30],combined:true,p1:"Achrei Mot",p2:"Kedoshim",num1:29,num2:30,book:3,haft:{k:"Amos",b:"9:7",e:"9:15"},seph:{k:"Ezekiel",b:"20:2",e:"20:20"},fullkriyah:{"1":["16:1","16:24"],"2":["16:25","17:7"],"3":["17:8","18:21"],"4":["18:22","19:14"],"5":["19:15","19:32"],"6":["19:33","20:7"],"7":["20:8","20:27"],M:["20:25","20:27"]}},"Behar-Bechukotai":{num:[32,33],combined:true,p1:"Behar",p2:"Bechukotai",num1:32,num2:33,book:3,fullkriyah:{"1":["25:1","25:18"],"2":["25:19","25:28"],"3":["25:29","25:38"],"4":["25:39","26:9"],"5":["26:10","26:46"],"6":["27:1","27:15"],"7":["27:16","27:34"],M:["27:32","27:34"]}},"Chukat-Balak":{num:[39,40],combined:true,p1:"Chukat",p2:"Balak",num1:39,num2:40,book:4,fullkriyah:{"1":["19:1","20:6"],"2":["20:7","20:21"],"3":["20:22","21:20"],"4":["21:21","22:12"],"5":["22:13","22:38"],"6":["22:39","23:26"],"7":["23:27","25:9"],M:["25:7","25:9"]}},"Matot-Masei":{num:[42,43],combined:true,p1:"Matot",p2:"Masei",num1:42,num2:43,book:4,fullkriyah:{"1":["30:2","31:12"],"2":["31:13","31:54"],"3":["32:1","32:19"],"4":["32:20","33:49"],"5":["33:50","34:15"],"6":["34:16","35:8"],"7":["35:9","36:13"],M:["36:11","36:13"]}},"Nitzavim-Vayeilech":{num:[51,52],combined:true,p1:"Nitzavim",p2:"Vayeilech",num1:51,num2:52,book:5,fullkriyah:{"1":["29:9","29:28"],"2":["30:1","30:6"],"3":["30:7","30:14"],"4":["30:15","31:6"],"5":["31:7","31:13"],"6":["31:14","31:19"],"7":["31:20","31:30"],M:["31:28","31:30"]}}};
|
|
3
3
|
|
|
4
4
|
export { Balak, Bamidbar, Bechukotai, Behar, Bereshit, Beshalach, Bo, Chukat, Devarim, Eikev, Emor, Kedoshim, Korach, Masei, Matot, Metzora, Miketz, Mishpatim, Nasso, Nitzavim, Noach, Pekudei, Pinchas, Shemot, Shmini, Shoftim, Tazria, Terumah, Tetzaveh, Toldot, Tzav, Vaera, Vaetchanan, Vayakhel, Vayechi, Vayeilech, Vayera, Vayeshev, Vayetzei, Vayigash, Vayikra, Vayishlach, Yitro, parshiyotObj0 as default };
|
package/dist/esm/clone.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
|
@@ -23,6 +23,24 @@ export declare function parshaToString(parsha: string | string[]): string;
|
|
|
23
23
|
* Modifies `aliyah` by setting the `v` field.
|
|
24
24
|
*/
|
|
25
25
|
export declare function calculateNumVerses(aliyah: Aliyah): number;
|
|
26
|
+
/**
|
|
27
|
+
* Finds the number of verses between two locations in the same book.
|
|
28
|
+
* @param book The English name of the book (e.g. "Numbers")
|
|
29
|
+
* @param from The starting verse (e.g. "28:9")
|
|
30
|
+
* @param to The ending verse (e.g. "28:15")
|
|
31
|
+
* @returns The number of verses between the two locations, excluding the `to` verse.
|
|
32
|
+
*/
|
|
33
|
+
export declare function subtractVerses(book: string, from: string, to: string): number;
|
|
34
|
+
/**
|
|
35
|
+
* Calculates the next verse after adding a number of verses to a given location.
|
|
36
|
+
* @param book The English name of the book (e.g. "Numbers")
|
|
37
|
+
* @param from The starting verse (e.g. "28:9")
|
|
38
|
+
* @param numVerses The number of verses to add; must be nonnegative.
|
|
39
|
+
* @returns The next verse after adding the specified number of verses,
|
|
40
|
+
* or null if the resulting verse exceeds the number of verses
|
|
41
|
+
* in the book.
|
|
42
|
+
*/
|
|
43
|
+
export declare function addVerses(book: string, from: string, numVerses: number): string | null;
|
|
26
44
|
/**
|
|
27
45
|
* Formats an aliyah object like "Numbers 28:9-28:15"
|
|
28
46
|
*/
|
package/dist/esm/common.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/leyning v9.0
|
|
1
|
+
/*! @hebcal/leyning v9.1.0 */
|
|
2
2
|
import numverses from './numverses.json.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -46,28 +46,65 @@ function calculateNumVerses(aliyah) {
|
|
|
46
46
|
if (aliyah.v) {
|
|
47
47
|
return aliyah.v;
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
aliyah.v = subtractVerses(aliyah.k, aliyah.b, aliyah.e) + 1;
|
|
50
|
+
return aliyah.v;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Finds the number of verses between two locations in the same book.
|
|
54
|
+
* @param book The English name of the book (e.g. "Numbers")
|
|
55
|
+
* @param from The starting verse (e.g. "28:9")
|
|
56
|
+
* @param to The ending verse (e.g. "28:15")
|
|
57
|
+
* @returns The number of verses between the two locations, excluding the `to` verse.
|
|
58
|
+
*/
|
|
59
|
+
function subtractVerses(book, from, to) {
|
|
60
|
+
const chapVerseBegin = from.split(':');
|
|
61
|
+
const chapVerseEnd = to.split(':');
|
|
51
62
|
const c1 = parseInt(chapVerseBegin[0], 10);
|
|
52
63
|
const c2 = parseInt(chapVerseEnd[0], 10);
|
|
53
64
|
const v1 = parseInt(chapVerseBegin[1], 10);
|
|
54
65
|
const v2 = parseInt(chapVerseEnd[1], 10);
|
|
66
|
+
let result = 0;
|
|
55
67
|
if (c1 === c2) {
|
|
56
|
-
|
|
68
|
+
return v2 - v1;
|
|
57
69
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
throw new ReferenceError(`Can't find numverses for ${aliyah.k}`);
|
|
62
|
-
}
|
|
63
|
-
let total = numv[c1] - v1 + 1;
|
|
64
|
-
for (let chap = c1 + 1; chap < c2; chap++) {
|
|
65
|
-
total += numv[chap];
|
|
66
|
-
}
|
|
67
|
-
total += v2;
|
|
68
|
-
aliyah.v = total;
|
|
70
|
+
const numv = NUM_VERSES[book];
|
|
71
|
+
if (typeof numv !== 'object' || !numv.length) {
|
|
72
|
+
throw new ReferenceError(`Can't find numverses for ${book}`);
|
|
69
73
|
}
|
|
70
|
-
|
|
74
|
+
let total = numv[c1] - v1;
|
|
75
|
+
for (let chap = c1 + 1; chap < c2; chap++) {
|
|
76
|
+
total += numv[chap];
|
|
77
|
+
}
|
|
78
|
+
total += v2;
|
|
79
|
+
result = total;
|
|
80
|
+
return result;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Calculates the next verse after adding a number of verses to a given location.
|
|
84
|
+
* @param book The English name of the book (e.g. "Numbers")
|
|
85
|
+
* @param from The starting verse (e.g. "28:9")
|
|
86
|
+
* @param numVerses The number of verses to add; must be nonnegative.
|
|
87
|
+
* @returns The next verse after adding the specified number of verses,
|
|
88
|
+
* or null if the resulting verse exceeds the number of verses
|
|
89
|
+
* in the book.
|
|
90
|
+
*/
|
|
91
|
+
function addVerses(book, from, numVerses) {
|
|
92
|
+
const chapVerseBegin = from.split(':');
|
|
93
|
+
const c1 = parseInt(chapVerseBegin[0], 10);
|
|
94
|
+
const v1 = parseInt(chapVerseBegin[1], 10);
|
|
95
|
+
const numv = NUM_VERSES[book];
|
|
96
|
+
if (typeof numv !== 'object' || !numv.length) {
|
|
97
|
+
throw new ReferenceError(`Can't find numverses for ${book}`);
|
|
98
|
+
}
|
|
99
|
+
let total = v1 + numVerses;
|
|
100
|
+
let c2 = c1;
|
|
101
|
+
while (total > numv[c2]) {
|
|
102
|
+
total -= numv[c2];
|
|
103
|
+
c2++;
|
|
104
|
+
if (!numv[c2])
|
|
105
|
+
return null;
|
|
106
|
+
}
|
|
107
|
+
return `${c2}:${total}`;
|
|
71
108
|
}
|
|
72
109
|
/**
|
|
73
110
|
* Formats an aliyah object like "Numbers 28:9-28:15"
|
|
@@ -91,4 +128,4 @@ function formatAliyahShort(aliyah, showBook) {
|
|
|
91
128
|
return `${prefix}${begin}-${end}`;
|
|
92
129
|
}
|
|
93
130
|
|
|
94
|
-
export { BOOK, NUM_VERSES, calculateNumVerses, formatAliyahShort, formatAliyahWithBook, parshaToString };
|
|
131
|
+
export { BOOK, NUM_VERSES, addVerses, calculateNumVerses, formatAliyahShort, formatAliyahWithBook, parshaToString, subtractVerses };
|
package/dist/esm/csv.js
CHANGED
package/dist/esm/festival.js
CHANGED
package/dist/esm/he.po.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/leyning v9.0
|
|
1
|
+
/*! @hebcal/leyning v9.1.0 */
|
|
2
2
|
var poHe = { "headers": { "plural-forms": "nplurals=2; plural=(n > 1);", "language": "he_IL" }, "contexts": { "": { "Shabbat Machar Chodesh": ["שַׁבָּת מָחָר חוֹדֶשׁ"], "Shabbat Rosh Chodesh": ["שַׁבָּת רֹאשׁ חוֹדֶשׁ"], "Pesach I (on Shabbat)": ["פֶּסַח יוֹם א׳ (בְּשַׁבָּת)"], "Pesach Chol ha-Moed Day 1": ["פֶּסַח חוֹל הַמּוֹעֵד יוֹם א׳"], "Pesach Chol ha-Moed Day 2": ["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ב׳"], "Pesach Chol ha-Moed Day 2 on Sunday": ["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ב׳ (בְּיוֹם רִאשׁוֹן)"], "Pesach Chol ha-Moed Day 3": ["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ג׳"], "Pesach Chol ha-Moed Day 3 on Monday": ["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ג׳ (בְּיוֹם שָׁנִי)"], "Pesach Chol ha-Moed Day 4": ["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ד׳"], "Pesach Chol ha-Moed Day 5": ["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ה׳"], "Pesach Shabbat Chol ha-Moed": ["פֶּסַח שַׁבָּת חוֹל הַמּוֹעֵד"], "Pesach VII (on Shabbat)": ["פֶּסַח ז׳ (בְּשַׁבָּת)"], "Pesach VIII (on Shabbat)": ["פֶּסַח ח׳ (בְּשַׁבָּת)"], "Shavuot II (on Shabbat)": ["שָׁבוּעוֹת יוֹם ב׳ (בְּשַׁבָּת)"], "Rosh Hashana I (on Shabbat)": ["רֹאשׁ הַשָּׁנָה יוֹם א׳ (בְּשַׁבָּת)"], "Yom Kippur (on Shabbat)": ["יוֹם כִּפּוּר (בְּשַׁבָּת)"], "Yom Kippur (Mincha, Traditional)": ["יוֹם כִּפּוּר מִנחָה"], "Yom Kippur (Mincha, Alternate)": ["יוֹם כִּפּוּר מִנחָה"], "Sukkot I (on Shabbat)": ["סוּכּוֹת יוֹם א׳ (בְּשַׁבָּת)"], "Sukkot Chol ha-Moed Day 1": ["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם א׳"], "Sukkot Chol ha-Moed Day 2": ["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ב׳"], "Sukkot Chol ha-Moed Day 3": ["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ג׳"], "Sukkot Chol ha-Moed Day 4": ["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ד׳"], "Sukkot Chol ha-Moed Day 5": ["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ה׳"], "Sukkot Shabbat Chol ha-Moed": ["סוּכּוֹת שַׁבָּת חוֹל הַמּוֹעֵד"], "Sukkot Final Day (Hoshana Raba)": ["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"], "Shmini Atzeret (on Shabbat)": ["שְׁמִינִי עֲצֶרֶת (בְּשַׁבָּת)"], "Chanukah Day 1": ["חֲנוּכָּה יוֹם א׳"], "Chanukah Day 2": ["חֲנוּכָּה יוֹם ב׳"], "Chanukah Day 3": ["חֲנוּכָּה יוֹם ג׳"], "Chanukah Day 4": ["חֲנוּכָּה יוֹם ד׳"], "Chanukah Day 5": ["חֲנוּכָּה יוֹם ה׳"], "Chanukah Day 6": ["חֲנוּכָּה יוֹם ו׳"], "Chanukah Day 7": ["חֲנוּכָּה יוֹם ז׳"], "Chanukah Day 7 (on Rosh Chodesh)": ["חֲנוּכָּה יוֹם ז׳ (רֹאשׁ חוֹדֶשׁ)"], "Chanukah Day 8": ["חֲנוּכָּה יוֹם ח׳"], "Chanukah Day 1 (on Shabbat)": ["חֲנוּכָּה יוֹם א׳ (בְּשַׁבָּת)"], "Chanukah Day 2 (on Shabbat)": ["חֲנוּכָּה יוֹם ב׳ (בְּשַׁבָּת)"], "Chanukah Day 3 (on Shabbat)": ["חֲנוּכָּה יוֹם ג׳ (בְּשַׁבָּת)"], "Chanukah Day 4 (on Shabbat)": ["חֲנוּכָּה יוֹם ד׳ (בְּשַׁבָּת)"], "Chanukah Day 5 (on Shabbat)": ["חֲנוּכָּה יוֹם ה׳ (בְּשַׁבָּת)"], "Chanukah Day 7 (on Shabbat)": ["חֲנוּכָּה יוֹם ז׳ (בְּשַׁבָּת)"], "Chanukah Day 8 (on Shabbat)": ["חֲנוּכָּה יוֹם ח׳ (בְּשַׁבָּת)"], "Shabbat Rosh Chodesh Chanukah": ["שַׁבָּת רֹאשׁ חוֹדֶשׁ חֲנוּכָּה"], "Yom Kippur (Mincha)": ["יוֹם כִּפּוּר מִנחָה"], "Tish'a B'Av (Mincha)": ["תִּשְׁעָה בְּאָב מִנחָה"], "Asara B'Tevet (Mincha)": ["עֲשָׂרָה בְּטֵבֵת מִנחָה"], "Ta'anit Bechorot (Mincha)": ["תַּעֲנִית בְּכוֹרוֹת מִנחָה"], "Ta'anit Esther (Mincha)": ["תַּעֲנִית אֶסְתֵּר מִנחָה"], "Tzom Gedaliah (Mincha)": ["צוֹם גְּדַלְיָה מִנחָה"], "Tzom Tammuz (Mincha)": ["צוֹם תָּמוּז מִנחָה"] } } };
|
|
3
3
|
|
|
4
4
|
export { poHe as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/leyning v9.0
|
|
1
|
+
/*! @hebcal/leyning v9.1.0 */
|
|
2
2
|
const Shavuot={note:"Israel only",il:true,megillah:"Ruth",haft:[{k:"Ezekiel",b:"1:1",e:"1:28"},{k:"Ezekiel",b:"3:12",e:"3:12"}],fullkriyah:{"1":{p:17,k:2,b:"19:1",e:"19:6"},"2":{p:17,k:2,b:"19:7",e:"19:13"},"3":{p:17,k:2,b:"19:14",e:"19:19"},"4":{p:17,k:2,b:"19:20",e:"20:14"},"5":{p:17,k:2,b:"20:15",e:"20:23"},M:{p:41,k:4,b:"28:26",e:"28:31"}}};const Purim={megillah:"Esther",fullkriyah:{"1":{p:16,k:2,b:"17:8",e:"17:10"},"2":{p:16,k:2,b:"17:11",e:"17:13"},"3":{p:16,k:2,b:"17:14",e:"17:16"}}};var festivals0 = {"Pesach I":{haft:[{k:"Joshua",b:"3:5",e:"3:7"},{k:"Joshua",b:"5:2",e:"6:1"},{k:"Joshua",b:"6:27",e:"6:27"}],seph:[{k:"Joshua",b:"5:2",e:"6:1"},{k:"Joshua",b:"6:27",e:"6:27"}],fullkriyah:{"1":{p:15,k:2,b:"12:21",e:"12:24"},"2":{p:15,k:2,b:"12:25",e:"12:28"},"3":{p:15,k:2,b:"12:29",e:"12:36"},"4":{p:15,k:2,b:"12:37",e:"12:42"},"5":{p:15,k:2,b:"12:43",e:"12:51"},M:{p:41,k:4,b:"28:16",e:"28:25"}}},"Pesach I (on Shabbat)":{haft:[{k:"Joshua",b:"3:5",e:"3:7"},{k:"Joshua",b:"5:2",e:"6:1"},{k:"Joshua",b:"6:27",e:"6:27"}],seph:[{k:"Joshua",b:"5:2",e:"6:1"},{k:"Joshua",b:"6:27",e:"6:27"}],fullkriyah:{"1":{p:15,k:2,b:"12:21",e:"12:24"},"2":{p:15,k:2,b:"12:25",e:"12:28"},"3":{p:15,k:2,b:"12:29",e:"12:32"},"4":{p:15,k:2,b:"12:33",e:"12:36"},"5":{p:15,k:2,b:"12:37",e:"12:42"},"6":{p:15,k:2,b:"12:43",e:"12:47"},"7":{p:15,k:2,b:"12:48",e:"12:51"},M:{p:41,k:4,b:"28:16",e:"28:25"}}},"Pesach II":{haft:[{k:"II Kings",b:"23:1",e:"23:9"},{k:"II Kings",b:"23:21",e:"23:25"}],fullkriyah:{"1":{p:31,k:3,b:"22:26",e:"23:3"},"2":{p:31,k:3,b:"23:4",e:"23:14"},"3":{p:31,k:3,b:"23:15",e:"23:22"},"4":{p:31,k:3,b:"23:23",e:"23:32"},"5":{p:31,k:3,b:"23:33",e:"23:44"},M:{p:41,k:4,b:"28:16",e:"28:25"}}},"Pesach II (CH''M)":{note:"Israel only - according to Vaani T'fillati Siddur Yisraeli",il:true,fullkriyah:{"1":{p:31,k:3,b:"22:26",e:"23:8"},"2":{p:31,k:3,b:"23:9",e:"23:14"},"3":{p:31,k:3,b:"23:15",e:"23:44"},"4":{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Chol ha-Moed Day 1":{fullkriyah:{"1":{p:15,k:2,b:"13:1",e:"13:4"},"2":{p:15,k:2,b:"13:5",e:"13:10"},"3":{p:15,k:2,b:"13:11",e:"13:16"},"4":{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Chol ha-Moed Day 2":{fullkriyah:{"1":{p:18,k:2,b:"22:24",e:"22:26"},"2":{p:18,k:2,b:"22:27",e:"23:5"},"3":{p:18,k:2,b:"23:6",e:"23:19"},"4":{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Chol ha-Moed Day 3":{fullkriyah:{"1":{p:21,k:2,b:"34:1",e:"34:10"},"2":{p:21,k:2,b:"34:11",e:"34:17"},"3":{p:21,k:2,b:"34:18",e:"34:26"},"4":{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Chol ha-Moed Day 4":{fullkriyah:{"1":{p:36,k:4,b:"9:1",e:"9:5"},"2":{p:36,k:4,b:"9:6",e:"9:8"},"3":{p:36,k:4,b:"9:9",e:"9:14"},"4":{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach Shabbat Chol ha-Moed":{megillah:"Song of Songs",haft:{k:"Ezekiel",b:"37:1",e:"37:14"},fullkriyah:{"1":{p:21,k:2,b:"33:12",e:"33:16"},"2":{p:21,k:2,b:"33:17",e:"33:19"},"3":{p:21,k:2,b:"33:20",e:"33:23"},"4":{p:21,k:2,b:"34:1",e:"34:3"},"5":{p:21,k:2,b:"34:4",e:"34:10"},"6":{p:21,k:2,b:"34:11",e:"34:17"},"7":{p:21,k:2,b:"34:18",e:"34:26"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach VII":{haft:{k:"II Samuel",b:"22:1",e:"22:51"},fullkriyah:{"1":{p:16,k:2,b:"13:17",e:"13:22"},"2":{p:16,k:2,b:"14:1",e:"14:8"},"3":{p:16,k:2,b:"14:9",e:"14:14"},"4":{p:16,k:2,b:"14:15",e:"14:25"},"5":{p:16,k:2,b:"14:26",e:"15:26"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach VII (on Shabbat)":{megillah:"Song of Songs",haft:{k:"II Samuel",b:"22:1",e:"22:51"},fullkriyah:{"1":{p:16,k:2,b:"13:17",e:"13:19"},"2":{p:16,k:2,b:"13:20",e:"13:22"},"3":{p:16,k:2,b:"14:1",e:"14:4"},"4":{p:16,k:2,b:"14:5",e:"14:8"},"5":{p:16,k:2,b:"14:9",e:"14:14"},"6":{p:16,k:2,b:"14:15",e:"14:25"},"7":{p:16,k:2,b:"14:26",e:"15:26"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach VIII":{haft:{k:"Isaiah",b:"10:32",e:"12:6"},fullkriyah:{"1":{p:47,k:5,b:"15:19",e:"15:23"},"2":{p:47,k:5,b:"16:1",e:"16:3"},"3":{p:47,k:5,b:"16:4",e:"16:8"},"4":{p:47,k:5,b:"16:9",e:"16:12"},"5":{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach VIII (on Shabbat)":{megillah:"Song of Songs",haft:{k:"Isaiah",b:"10:32",e:"12:6"},fullkriyah:{"1":{p:47,k:5,b:"14:22",e:"14:29"},"2":{p:47,k:5,b:"15:1",e:"15:18"},"3":{p:47,k:5,b:"15:19",e:"15:23"},"4":{p:47,k:5,b:"16:1",e:"16:3"},"5":{p:47,k:5,b:"16:4",e:"16:8"},"6":{p:47,k:5,b:"16:9",e:"16:12"},"7":{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"28:19",e:"28:25"}}},"Pesach III (CH''M)":{alias:true,il:true,key:"Pesach Chol ha-Moed Day 1"},"Pesach IV (CH''M)":{alias:true,il:true,key:"Pesach Chol ha-Moed Day 2"},"Pesach V (CH''M)":{alias:true,il:true,key:"Pesach Chol ha-Moed Day 3"},"Pesach VI (CH''M)":{alias:true,il:true,key:"Pesach Chol ha-Moed Day 4"},"Pesach Chol ha-Moed Day 2 on Sunday":{alias:true,il:false,key:"Pesach Chol ha-Moed Day 1"},"Pesach Chol ha-Moed Day 3 on Monday":{alias:true,il:false,key:"Pesach Chol ha-Moed Day 2"},Shavuot:Shavuot,"Shavuot I":{haft:[{k:"Ezekiel",b:"1:1",e:"1:28"},{k:"Ezekiel",b:"3:12",e:"3:12"}],fullkriyah:{"1":{p:17,k:2,b:"19:1",e:"19:6"},"2":{p:17,k:2,b:"19:7",e:"19:13"},"3":{p:17,k:2,b:"19:14",e:"19:19"},"4":{p:17,k:2,b:"19:20",e:"20:14"},"5":{p:17,k:2,b:"20:15",e:"20:23"},M:{p:41,k:4,b:"28:26",e:"28:31"}}},"Shavuot II":{megillah:"Ruth",haft:{k:"Habakkuk",b:"3:1",e:"3:19"},seph:{k:"Habakkuk",b:"2:20",e:"3:19"},fullkriyah:{"1":{p:47,k:5,b:"15:19",e:"15:23"},"2":{p:47,k:5,b:"16:1",e:"16:3"},"3":{p:47,k:5,b:"16:4",e:"16:8"},"4":{p:47,k:5,b:"16:9",e:"16:12"},"5":{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"28:26",e:"28:31"}}},"Shavuot II (on Shabbat)":{megillah:"Ruth",haft:{k:"Habakkuk",b:"3:1",e:"3:19"},seph:{k:"Habakkuk",b:"2:20",e:"3:19"},fullkriyah:{"1":{p:47,k:5,b:"14:22",e:"14:29"},"2":{p:47,k:5,b:"15:1",e:"15:18"},"3":{p:47,k:5,b:"15:19",e:"15:23"},"4":{p:47,k:5,b:"16:1",e:"16:3"},"5":{p:47,k:5,b:"16:4",e:"16:8"},"6":{p:47,k:5,b:"16:9",e:"16:12"},"7":{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"28:26",e:"28:31"}}},"Fast Day (Morning)":{fullkriyah:{"1":{p:21,k:2,b:"32:11",e:"32:14"},"2":{p:21,k:2,b:"34:1",e:"34:3"},"3":{p:21,k:2,b:"34:4",e:"34:10"}}},"Fast Day (Afternoon)":{haft:{k:"Isaiah",b:"55:6",e:"56:8"},fullkriyah:{"1":{p:21,k:2,b:"32:11",e:"32:14"},"2":{p:21,k:2,b:"34:1",e:"34:3"},M:{p:21,k:2,b:"34:4",e:"34:10"}}},"Asara B'Tevet":{alias:true,key:"Fast Day (Morning)"},"Ta'anit Esther":{alias:true,key:"Fast Day (Morning)"},"Tzom Gedaliah":{alias:true,key:"Fast Day (Morning)"},"Tzom Tammuz":{alias:true,key:"Fast Day (Morning)"},"Asara B'Tevet (Mincha)":{alias:true,key:"Fast Day (Afternoon)"},"Ta'anit Esther (Mincha)":{alias:true,key:"Fast Day (Afternoon)"},"Tzom Gedaliah (Mincha)":{alias:true,key:"Fast Day (Afternoon)"},"Tzom Tammuz (Mincha)":{alias:true,key:"Fast Day (Afternoon)"},"Erev Tish'a B'Av":{megillah:"Lamentations"},"Tish'a B'Av":{haft:{k:"Jeremiah",b:"8:13",e:"9:23"},fullkriyah:{"1":{p:45,k:5,b:"4:25",e:"4:29"},"2":{p:45,k:5,b:"4:30",e:"4:35"},"3":{p:45,k:5,b:"4:36",e:"4:40"}}},"Tish'a B'Av (Mincha)":{alias:true,key:"Fast Day (Afternoon)"},"Rosh Hashana I":{haft:{k:"I Samuel",b:"1:1",e:"2:10"},fullkriyah:{"1":{p:4,k:1,b:"21:1",e:"21:4"},"2":{p:4,k:1,b:"21:5",e:"21:12"},"3":{p:4,k:1,b:"21:13",e:"21:21"},"4":{p:4,k:1,b:"21:22",e:"21:27"},"5":{p:4,k:1,b:"21:28",e:"21:34"},M:{p:41,k:4,b:"29:1",e:"29:6"}}},"Rosh Hashana I (on Shabbat)":{haft:{k:"I Samuel",b:"1:1",e:"2:10"},fullkriyah:{"1":{p:4,k:1,b:"21:1",e:"21:4"},"2":{p:4,k:1,b:"21:5",e:"21:8"},"3":{p:4,k:1,b:"21:9",e:"21:12"},"4":{p:4,k:1,b:"21:13",e:"21:17"},"5":{p:4,k:1,b:"21:18",e:"21:21"},"6":{p:4,k:1,b:"21:22",e:"21:27"},"7":{p:4,k:1,b:"21:28",e:"21:34"},M:{p:41,k:4,b:"29:1",e:"29:6"}}},"Rosh Hashana II":{haft:{k:"Jeremiah",b:"31:2",e:"31:20",note:"labeled 31:1–19 in some books"},fullkriyah:{"1":{p:4,k:1,b:"22:1",e:"22:3"},"2":{p:4,k:1,b:"22:4",e:"22:8"},"3":{p:4,k:1,b:"22:9",e:"22:14"},"4":{p:4,k:1,b:"22:15",e:"22:19"},"5":{p:4,k:1,b:"22:20",e:"22:24"},M:{p:41,k:4,b:"29:1",e:"29:6"}}},"Yom Kippur":{haft:{k:"Isaiah",b:"57:14",e:"58:14"},fullkriyah:{"1":{p:29,k:3,b:"16:1",e:"16:6"},"2":{p:29,k:3,b:"16:7",e:"16:11"},"3":{p:29,k:3,b:"16:12",e:"16:17"},"4":{p:29,k:3,b:"16:18",e:"16:24"},"5":{p:29,k:3,b:"16:25",e:"16:30"},"6":{p:29,k:3,b:"16:31",e:"16:34"},M:{p:41,k:4,b:"29:7",e:"29:11"}}},"Yom Kippur (on Shabbat)":{haft:{k:"Isaiah",b:"57:14",e:"58:14"},fullkriyah:{"1":{p:29,k:3,b:"16:1",e:"16:3"},"2":{p:29,k:3,b:"16:4",e:"16:6"},"3":{p:29,k:3,b:"16:7",e:"16:11"},"4":{p:29,k:3,b:"16:12",e:"16:17"},"5":{p:29,k:3,b:"16:18",e:"16:24"},"6":{p:29,k:3,b:"16:25",e:"16:30"},"7":{p:29,k:3,b:"16:31",e:"16:34"},M:{p:41,k:4,b:"29:7",e:"29:11"}}},"Yom Kippur (Mincha)":{alias:true,key:"Yom Kippur (Mincha, Traditional)"},"Yom Kippur (Mincha, Traditional)":{haft:[{k:"Jonah",b:"1:1",e:"4:11"},{k:"Micah",b:"7:18",e:"7:20"}],fullkriyah:{"1":{p:29,k:3,b:"18:1",e:"18:5"},"2":{p:29,k:3,b:"18:6",e:"18:21"},M:{p:29,k:3,b:"18:22",e:"18:30"}}},"Yom Kippur (Mincha, Alternate)":{haft:[{k:"Jonah",b:"1:1",e:"4:11"},{k:"Micah",b:"7:18",e:"7:20"}],fullkriyah:{"1":{p:30,k:3,b:"19:1",e:"19:4"},"2":{p:30,k:3,b:"19:5",e:"19:10"},M:{p:30,k:3,b:"19:11",e:"19:18"}}},"Sukkot I":{haft:{k:"Zechariah",b:"14:1",e:"14:21"},fullkriyah:{"1":{p:31,k:3,b:"22:26",e:"23:3"},"2":{p:31,k:3,b:"23:4",e:"23:14"},"3":{p:31,k:3,b:"23:15",e:"23:22"},"4":{p:31,k:3,b:"23:23",e:"23:32"},"5":{p:31,k:3,b:"23:33",e:"23:44"},M:{p:41,k:4,b:"29:12",e:"29:16"}}},"Sukkot I (on Shabbat)":{haft:{k:"Zechariah",b:"14:1",e:"14:21"},fullkriyah:{"1":{p:31,k:3,b:"22:26",e:"22:33"},"2":{p:31,k:3,b:"23:1",e:"23:3"},"3":{p:31,k:3,b:"23:4",e:"23:8"},"4":{p:31,k:3,b:"23:9",e:"23:14"},"5":{p:31,k:3,b:"23:15",e:"23:22"},"6":{p:31,k:3,b:"23:23",e:"23:32"},"7":{p:31,k:3,b:"23:33",e:"23:44"},M:{p:41,k:4,b:"29:12",e:"29:16"}}},"Sukkot II":{haft:{k:"I Kings",b:"8:2",e:"8:21"},fullkriyah:{"1":{p:31,k:3,b:"22:26",e:"23:3"},"2":{p:31,k:3,b:"23:4",e:"23:14"},"3":{p:31,k:3,b:"23:15",e:"23:22"},"4":{p:31,k:3,b:"23:23",e:"23:32"},"5":{p:31,k:3,b:"23:33",e:"23:44"},M:{p:41,k:4,b:"29:12",e:"29:16"}}},"Sukkot Chol ha-Moed Day 1":{fullkriyah:{"1":{p:41,k:4,b:"29:17",e:"29:19"},"2":{p:41,k:4,b:"29:20",e:"29:22"},"3":{p:41,k:4,b:"29:23",e:"29:25"},"4":{p:41,k:4,b:"29:17",e:"29:22"}}},"Sukkot Chol ha-Moed Day 2":{fullkriyah:{"1":{p:41,k:4,b:"29:20",e:"29:22"},"2":{p:41,k:4,b:"29:23",e:"29:25"},"3":{p:41,k:4,b:"29:26",e:"29:28"},"4":{p:41,k:4,b:"29:20",e:"29:25"}}},"Sukkot Chol ha-Moed Day 3":{fullkriyah:{"1":{p:41,k:4,b:"29:23",e:"29:25"},"2":{p:41,k:4,b:"29:26",e:"29:28"},"3":{p:41,k:4,b:"29:29",e:"29:31"},"4":{p:41,k:4,b:"29:23",e:"29:28"}}},"Sukkot Chol ha-Moed Day 4":{fullkriyah:{"1":{p:41,k:4,b:"29:26",e:"29:28"},"2":{p:41,k:4,b:"29:29",e:"29:31"},"3":{p:41,k:4,b:"29:32",e:"29:34"},"4":{p:41,k:4,b:"29:26",e:"29:31"}}},"Sukkot Chol ha-Moed Day 5":{fullkriyah:{"1":{p:41,k:4,b:"29:29",e:"29:31"},"2":{p:41,k:4,b:"29:32",e:"29:34"},"3":{p:41,k:4,b:"29:35",e:"29:37"},"4":{p:41,k:4,b:"29:29",e:"29:34"}}},"Sukkot Shabbat Chol ha-Moed":{megillah:"Ecclesiastes",haft:{k:"Ezekiel",b:"38:18",e:"39:16"},fullkriyah:{"1":{p:21,k:2,b:"33:12",e:"33:16"},"2":{p:21,k:2,b:"33:17",e:"33:19"},"3":{p:21,k:2,b:"33:20",e:"33:23"},"4":{p:21,k:2,b:"34:1",e:"34:3"},"5":{p:21,k:2,b:"34:4",e:"34:10"},"6":{p:21,k:2,b:"34:11",e:"34:17"},"7":{p:21,k:2,b:"34:18",e:"34:26"},"M-day1":{p:41,k:4,b:"29:17",e:"29:22"},"M-day2":{p:41,k:4,b:"29:20",e:"29:25"},"M-day3":{p:41,k:4,b:"29:23",e:"29:28"},"M-day4":{p:41,k:4,b:"29:26",e:"29:31"},"M-day5":{p:41,k:4,b:"29:29",e:"29:34"}}},"Sukkot Final Day (Hoshana Raba)":{fullkriyah:{"1":{p:41,k:4,b:"29:26",e:"29:28"},"2":{p:41,k:4,b:"29:29",e:"29:31"},"3":{p:41,k:4,b:"29:32",e:"29:34"},"4":{p:41,k:4,b:"29:29",e:"29:34"}}},"Shmini Atzeret":{haft:{k:"I Kings",b:"8:54",e:"8:66"},fullkriyah:{"1":{p:47,k:5,b:"14:22",e:"14:29"},"2":{p:47,k:5,b:"15:1",e:"15:18"},"3":{p:47,k:5,b:"15:19",e:"16:3"},"4":{p:47,k:5,b:"16:4",e:"16:8"},"5":{p:47,k:5,b:"16:9",e:"16:17"},M:{p:41,k:4,b:"29:35",e:"30:1"}}},"Shmini Atzeret (on Shabbat)":{megillah:"Ecclesiastes",haft:{k:"I Kings",b:"8:54",e:"8:66"},fullkriyah:{"1":{p:47,k:5,b:"14:22",e:"14:29"},"2":{p:47,k:5,b:"15:1",e:"15:18"},"3":{p:47,k:5,b:"15:19",e:"15:23"},"4":{p:47,k:5,b:"16:1",e:"16:3"},"5":{p:47,k:5,b:"16:4",e:"16:8"},"6":{p:47,k:5,b:"16:9",e:"16:12"},"7":{p:47,k:5,b:"16:13",e:"16:17"},M:{p:41,k:4,b:"29:35",e:"30:1"}}},"Erev Simchat Torah":{fullkriyah:{"1":{p:54,k:5,b:"33:1",e:"33:7"},"2":{p:54,k:5,b:"33:8",e:"33:12"},"3":{p:54,k:5,b:"33:13",e:"33:17"}}},"Simchat Torah":{haft:{k:"Joshua",b:"1:1",e:"1:18"},fullkriyah:{"1":{p:54,k:5,b:"33:1",e:"33:7"},"2":{p:54,k:5,b:"33:8",e:"33:12"},"3":{p:54,k:5,b:"33:13",e:"33:17"},"4":{p:54,k:5,b:"33:18",e:"33:21"},"5":{p:54,k:5,b:"33:22",e:"33:26"},"6":{p:54,k:5,b:"33:27",e:"34:12"},"7":{p:1,k:1,b:"1:1",e:"2:3"},M:{p:41,k:4,b:"29:35",e:"30:1"}}},"Simchat Torah (on Shabbat)":{megillah:"Ecclesiastes",haft:{k:"Joshua",b:"1:1",e:"1:18"},fullkriyah:{"1":{p:54,k:5,b:"33:1",e:"33:7"},"2":{p:54,k:5,b:"33:8",e:"33:12"},"3":{p:54,k:5,b:"33:13",e:"33:17"},"4":{p:54,k:5,b:"33:18",e:"33:21"},"5":{p:54,k:5,b:"33:22",e:"33:26"},"6":{p:54,k:5,b:"33:27",e:"33:29"},"7":{p:54,k:5,b:"34:1",e:"34:12"},"8":{p:1,k:1,b:"1:1",e:"2:3"},M:{p:41,k:4,b:"29:35",e:"30:1"}}},"Shabbat Rosh Chodesh Chanukah":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{"7":{p:41,k:4,b:"28:9",e:"28:15"},M:{p:35,k:4,b:"7:42",e:"7:47"}}},"Chanukah Day 1":{fullkriyah:{"1":{p:35,k:4,b:"7:1",e:"7:11"},"2":{p:35,k:4,b:"7:12",e:"7:14"},"3":{p:35,k:4,b:"7:15",e:"7:17"}},alt:{"1":{p:35,k:4,b:"7:1",e:"7:3"},"2":{p:35,k:4,b:"7:4",e:"7:11"},"3":{p:35,k:4,b:"7:12",e:"7:17"}}},"Chanukah Day 1 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:1",e:"7:17"}}},"Chanukah Day 2":{fullkriyah:{"1":{p:35,k:4,b:"7:18",e:"7:20"},"2":{p:35,k:4,b:"7:21",e:"7:23"},"3":{p:35,k:4,b:"7:24",e:"7:29"}},alt:{"1":{p:35,k:4,b:"7:18",e:"7:20"},"2":{p:35,k:4,b:"7:21",e:"7:23"},"3":{p:35,k:4,b:"7:18",e:"7:23"}}},"Chanukah Day 2 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:18",e:"7:23"}}},"Chanukah Day 3":{fullkriyah:{"1":{p:35,k:4,b:"7:24",e:"7:26"},"2":{p:35,k:4,b:"7:27",e:"7:29"},"3":{p:35,k:4,b:"7:30",e:"7:35"}},alt:{"1":{p:35,k:4,b:"7:24",e:"7:26"},"2":{p:35,k:4,b:"7:27",e:"7:29"},"3":{p:35,k:4,b:"7:24",e:"7:29"}}},"Chanukah Day 3 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:24",e:"7:29"}}},"Chanukah Day 4":{fullkriyah:{"1":{p:35,k:4,b:"7:30",e:"7:32"},"2":{p:35,k:4,b:"7:33",e:"7:35"},"3":{p:35,k:4,b:"7:36",e:"7:41"}},alt:{"1":{p:35,k:4,b:"7:30",e:"7:32"},"2":{p:35,k:4,b:"7:33",e:"7:35"},"3":{p:35,k:4,b:"7:30",e:"7:35"}}},"Chanukah Day 4 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:30",e:"7:35"}}},"Chanukah Day 5":{fullkriyah:{"1":{p:35,k:4,b:"7:36",e:"7:38"},"2":{p:35,k:4,b:"7:39",e:"7:41"},"3":{p:35,k:4,b:"7:42",e:"7:47"}},alt:{"1":{p:35,k:4,b:"7:36",e:"7:38"},"2":{p:35,k:4,b:"7:39",e:"7:41"},"3":{p:35,k:4,b:"7:36",e:"7:41"}}},"Chanukah Day 5 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:36",e:"7:41"}}},"Chanukah Day 6":{fullkriyah:{"1":{p:41,k:4,b:"28:1",e:"28:5"},"2":{p:41,k:4,b:"28:6",e:"28:10"},"3":{p:41,k:4,b:"28:11",e:"28:15"},"4":{p:35,k:4,b:"7:42",e:"7:47"}}},"Chanukah Day 7":{fullkriyah:{"1":{p:35,k:4,b:"7:48",e:"7:50"},"2":{p:35,k:4,b:"7:51",e:"7:53"},"3":{p:35,k:4,b:"7:54",e:"7:59"}},alt:{"1":{p:35,k:4,b:"7:48",e:"7:50"},"2":{p:35,k:4,b:"7:51",e:"7:53"},"3":{p:35,k:4,b:"7:48",e:"7:53"}}},"Chanukah Day 7 (on Rosh Chodesh)":{fullkriyah:{"1":{p:41,k:4,b:"28:1",e:"28:5"},"2":{p:41,k:4,b:"28:6",e:"28:10"},"3":{p:41,k:4,b:"28:11",e:"28:15"},"4":{p:35,k:4,b:"7:48",e:"7:53"}}},"Chanukah Day 7 (on Shabbat)":{haft:{k:"Zechariah",b:"2:14",e:"4:7"},fullkriyah:{M:{p:35,k:4,b:"7:48",e:"7:53"}}},"Chanukah Day 8":{fullkriyah:{"1":{p:35,k:4,b:"7:54",e:"7:56"},"2":{p:35,k:4,b:"7:57",e:"7:59"},"3":{p:35,k:4,b:"7:60",e:"8:4"}}},"Chanukah Day 8 (on Shabbat)":{haft:{k:"I Kings",b:"7:40",e:"7:50"},fullkriyah:{M:{p:35,k:4,b:"7:54",e:"8:4"}}},"Erev Purim":{megillah:"Esther"},Purim:Purim,"Shushan Purim":{note:"Jerusalem & walled cities only",il:true,megillah:"Esther",fullkriyah:{"1":{p:16,k:2,b:"17:8",e:"17:10"},"2":{p:16,k:2,b:"17:11",e:"17:13"},"3":{p:16,k:2,b:"17:14",e:"17:16"}}},"Shushan Purim (on Shabbat)":{il:true,note:"Jerusalem & walled cities only: special maftir Exodus 17:8-16, same Haftara as Shabbat Zachor"},"Shabbat HaChodesh":{haft:{k:"Ezekiel",b:"45:16",e:"46:18"},seph:{k:"Ezekiel",b:"45:18",e:"46:15"},fullkriyah:{M:{p:15,k:2,b:"12:1",e:"12:20"}}},"Shabbat HaChodesh (on Rosh Chodesh)":{haft:{k:"Ezekiel",b:"45:16",e:"46:18"},seph:{k:"Ezekiel",b:"45:18",e:"46:15"},fullkriyah:{"7":{p:41,k:4,b:"28:9",e:"28:15"},M:{p:15,k:2,b:"12:1",e:"12:20"}}},"Shabbat HaGadol":{haft:{k:"Malachi",b:"3:4",e:"3:24"}},"Shabbat Parah":{haft:{k:"Ezekiel",b:"36:16",e:"36:38"},seph:{k:"Ezekiel",b:"36:16",e:"36:36"},fullkriyah:{M:{p:39,k:4,b:"19:1",e:"19:22"}}},"Shabbat Shekalim":{haft:{k:"II Kings",b:"12:1",e:"12:17"},seph:{k:"II Kings",b:"11:17",e:"12:17"},fullkriyah:{M:{p:21,k:2,b:"30:11",e:"30:16"}}},"Shabbat Shekalim (on Rosh Chodesh)":{haft:{k:"II Kings",b:"12:1",e:"12:17"},seph:{k:"II Kings",b:"11:17",e:"12:17"},fullkriyah:{"7":{p:41,k:4,b:"28:9",e:"28:15"},M:{p:21,k:2,b:"30:11",e:"30:16"}}},"Shabbat Shuva (with Vayeilech)":{haft:[{k:"Hosea",b:"14:2",e:"14:10"},{k:"Micah",b:"7:18",e:"7:20"}]},"Shabbat Shuva (with Ha'azinu)":{haft:[{k:"Hosea",b:"14:2",e:"14:10"},{k:"Joel",b:"2:15",e:"2:27"}],seph:[{k:"Hosea",b:"14:2",e:"14:10"},{k:"Micah",b:"7:18",e:"7:20"}]},"Shabbat Shuva":{haft:[{k:"Hosea",b:"14:2",e:"14:10"},{k:"Micah",b:"7:18",e:"7:20"},{k:"Joel",b:"2:15",e:"2:27"}]},"Shabbat Zachor":{haft:{k:"I Samuel",b:"15:2",e:"15:34"},seph:{k:"I Samuel",b:"15:1",e:"15:34"},fullkriyah:{M:{p:49,k:5,b:"25:17",e:"25:19"}}},"Pinchas occurring after 17 Tammuz":{haft:{k:"Jeremiah",b:"1:1",e:"2:3"}},"Kedoshim following Special Shabbat":{haft:{k:"Amos",b:"9:7",e:"9:15"},seph:{k:"Ezekiel",b:"20:2",e:"20:20"}},"Masei on Shabbat Rosh Chodesh":{haft:[{k:"Jeremiah",b:"2:4",e:"2:28"},{k:"Jeremiah",b:"3:4",e:"3:4"}],seph:[{k:"Jeremiah",b:"2:4",e:"2:28"},{k:"Jeremiah",b:"4:1",e:"4:2"},{k:"Isaiah",b:"66:1",e:"66:1"},{k:"Isaiah",b:"66:23",e:"66:23"}],fullkriyah:{M:{p:41,k:4,b:"28:9",e:"28:15"}}},"Matot-Masei on Shabbat Rosh Chodesh":{alias:true,key:"Masei on Shabbat Rosh Chodesh"},"Ki Teitzei with 3rd Haftarah of Consolation":{haft:[{k:"Isaiah",b:"54:1",e:"54:10"},{k:"Isaiah",b:"54:11",e:"55:5"}]},"Rosh Chodesh":{fullkriyah:{"1":{p:41,k:4,b:"28:1",e:"28:3"},"2":{p:41,k:4,b:"28:3",e:"28:5"},"3":{p:41,k:4,b:"28:6",e:"28:10"},"4":{p:41,k:4,b:"28:11",e:"28:15"}}},"Rosh Chodesh Nisan":{alias:true,key:"Rosh Chodesh"},"Rosh Chodesh Iyyar":{alias:true,key:"Rosh Chodesh"},"Rosh Chodesh Sivan":{alias:true,key:"Rosh Chodesh"},"Rosh Chodesh Tamuz":{alias:true,key:"Rosh Chodesh"},"Rosh Chodesh Av":{alias:true,key:"Rosh Chodesh"},"Rosh Chodesh Elul":{alias:true,key:"Rosh Chodesh"},"Rosh Chodesh Tishrei":{alias:true,key:"Rosh Chodesh"},"Rosh Chodesh Cheshvan":{alias:true,key:"Rosh Chodesh"},"Rosh Chodesh Kislev":{alias:true,key:"Rosh Chodesh"},"Rosh Chodesh Sh'vat":{alias:true,key:"Rosh Chodesh"},"Rosh Chodesh Adar":{alias:true,key:"Rosh Chodesh"},"Rosh Chodesh Adar I":{alias:true,key:"Rosh Chodesh"},"Rosh Chodesh Adar II":{alias:true,key:"Rosh Chodesh"},"Shabbat Rosh Chodesh":{haft:{k:"Isaiah",b:"66:1",e:"66:24"},fullkriyah:{M:{p:41,k:4,b:"28:9",e:"28:15"}}},"Shabbat Machar Chodesh":{haft:{k:"I Samuel",b:"20:18",e:"20:42"}}};
|
|
3
3
|
|
|
4
4
|
export { Purim, Shavuot, festivals0 as default };
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! @hebcal/leyning v9.0
|
|
1
|
+
/*! @hebcal/leyning v9.1.0 */
|
|
2
2
|
import './locale.js';
|
|
3
|
-
export { BOOK, NUM_VERSES, calculateNumVerses, formatAliyahShort, formatAliyahWithBook, parshaToString } from './common.js';
|
|
3
|
+
export { BOOK, NUM_VERSES, addVerses, calculateNumVerses, formatAliyahShort, formatAliyahWithBook, parshaToString, subtractVerses } from './common.js';
|
|
4
4
|
export { makeLeyningParts, makeLeyningSummary, makeSummaryFromParts } from './summary.js';
|
|
5
5
|
export { hasFestival, lookupFestival } from './festival.js';
|
|
6
6
|
export { getLeyningKeyForEvent } from './getLeyningKeyForEvent.js';
|
package/dist/esm/leyning.js
CHANGED
package/dist/esm/locale.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/leyning v9.0
|
|
2
|
-
const Genesis=[0,31,25,24,26,32,22,24,22,29,32,32,20,18,24,21,16,27,33,38,18,34,24,20,67,34,35,46,22,35,43,54,33,20,31,29,43,36,30,23,23,57,38,34,34,28,34,31,22,33,26];const Exodus=[0,22,25,22,31,23,30,29,28,35,29,10,51,22,31,27,36,16,27,25,
|
|
1
|
+
/*! @hebcal/leyning v9.1.0 */
|
|
2
|
+
const Genesis=[0,31,25,24,26,32,22,24,22,29,32,32,20,18,24,21,16,27,33,38,18,34,24,20,67,34,35,46,22,35,43,54,33,20,31,29,43,36,30,23,23,57,38,34,34,28,34,31,22,33,26];const Exodus=[0,22,25,22,31,23,30,29,28,35,29,10,51,22,31,27,36,16,27,25,23,37,30,33,18,40,37,21,43,46,38,18,35,23,35,35,38,29,31,43,38];const Leviticus=[0,17,16,17,35,26,23,38,36,24,20,47,8,59,57,33,34,16,30,37,27,24,33,44,23,55,46,34];const Numbers=[0,54,34,51,49,31,27,89,26,23,36,35,16,33,45,41,35,28,32,22,29,35,41,30,25,19,65,23,31,39,17,54,42,56,29,34,13];const Deuteronomy=[0,46,37,29,49,30,25,26,20,29,22,32,31,19,29,23,22,20,22,21,20,23,29,26,22,19,19,26,69,28,20,30,52,29,12];const Joshua=[0,18,24,17,24,15,27,26,35,27,43,23,24,33,15,63,10,18,28,51,9,45,34,16,33];const Judges=[0,36,23,31,24,31,40,25,35,57,18,40,15,25,20,20,31,13,31,30,48,25];const Ruth=[0,22,23,18,22];const Isaiah=[0,31,22,26,6,30,13,25,23,20,34,16,6,22,32,9,14,14,7,25,6,17,25,18,23,12,21,13,29,24,33,9,20,24,17,10,22,38,22,8,31,29,25,28,28,25,13,15,22,26,11,23,15,12,17,13,12,21,14,21,22,11,12,19,11,25,24];const Jeremiah=[0,19,37,25,31,31,30,34,23,25,25,23,17,27,22,21,21,27,23,15,18,14,30,40,10,38,24,22,17,32,24,40,44,26,22,19,32,21,28,18,16,18,22,13,30,5,28,7,47,39,46,64,34];const Lamentations=[0,22,22,66,22,22];const Baruch=[0,22,35,38,37,9,72];const Esther=[0,22,23,15,17,14,14,10,17,32,3];const Ecclesiastes=[0,18,26,22,17,19,12,29,17,18,20,10,14];const Ezekiel=[0,28,10,27,17,17,14,27,18,11,22,25,28,23,23,8,63,24,32,14,44,37,31,49,27,17,21,36,26,21,26,18,32,33,31,15,38,28,23,29,49,26,20,27,31,25,24,23,35];const Daniel=[0,21,49,100,34,30,29,28,27,27,21,45,13,64,42];const Hosea=[0,9,25,5,19,15,11,16,14,17,15,11,15,15,10];const Joel=[0,20,27,5,21];const Amos=[0,15,16,15,13,27,14,17,14,15];const Obadiah=[0,21];const Jonah=[0,16,11,10,11];const Micah=[0,16,13,12,14,14,16,20];const Nachum=[0,14,14,19];const Habakkuk=[0,17,20,19];const Zephaniah=[0,18,15,20];const Haggai=[0,15,23];const Zechariah=[0,17,17,10,14,11,15,14,23,17,12,17,14,9,21];const Malachi=[0,14,17,24];var numverses = {Genesis:Genesis,Exodus:Exodus,Leviticus:Leviticus,Numbers:Numbers,Deuteronomy:Deuteronomy,Joshua:Joshua,Judges:Judges,Ruth:Ruth,"I Samuel":[0,28,36,21,22,12,21,17,22,27,27,15,25,23,52,35,23,58,30,24,42,16,23,28,23,43,25,12,25,11,31,13],"II Samuel":[0,27,32,39,12,25,23,29,18,13,19,27,31,39,33,37,23,29,32,44,26,22,51,39,25],"I Kings":[0,53,46,28,20,32,38,51,66,28,29,43,33,34,31,34,34,24,46,21,43,29,54],"II Kings":[0,18,25,27,44,27,33,20,29,37,36,20,22,25,29,38,20,41,37,37,21,26,20,37,20,30],Isaiah:Isaiah,Jeremiah:Jeremiah,Lamentations:Lamentations,Baruch:Baruch,Esther:Esther,Ecclesiastes:Ecclesiastes,"Song of Songs":[0,17,17,11,16,16,12,14,14],Ezekiel:Ezekiel,Daniel:Daniel,Hosea:Hosea,Joel:Joel,Amos:Amos,Obadiah:Obadiah,Jonah:Jonah,Micah:Micah,Nachum:Nachum,Habakkuk:Habakkuk,Zephaniah:Zephaniah,Haggai:Haggai,Zechariah:Zechariah,Malachi:Malachi};
|
|
3
3
|
|
|
4
4
|
export { Amos, Baruch, Daniel, Deuteronomy, Ecclesiastes, Esther, Exodus, Ezekiel, Genesis, Habakkuk, Haggai, Hosea, Isaiah, Jeremiah, Joel, Jonah, Joshua, Judges, Lamentations, Leviticus, Malachi, Micah, Nachum, Numbers, Obadiah, Ruth, Zechariah, Zephaniah, numverses as default };
|
package/dist/esm/summary.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/leyning",
|
|
3
|
-
"version": "9.0
|
|
3
|
+
"version": "9.1.0",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hebcal",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"node": ">=18"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@hebcal/core": "^5.9.
|
|
44
|
-
"@hebcal/hdate": "^0.
|
|
43
|
+
"@hebcal/core": "^5.9.3",
|
|
44
|
+
"@hebcal/hdate": "^0.14.0",
|
|
45
45
|
"tslib": "^2.8.1"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
@@ -62,18 +62,18 @@
|
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
64
64
|
"@rollup/plugin-json": "^6.1.0",
|
|
65
|
-
"@rollup/plugin-node-resolve": "^16.0.
|
|
65
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
66
66
|
"@rollup/plugin-terser": "^0.4.4",
|
|
67
67
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
68
|
-
"@types/node": "^22.
|
|
68
|
+
"@types/node": "^22.14.1",
|
|
69
69
|
"gettext-parser": "^8.0.0",
|
|
70
70
|
"gts": "^5.3.1",
|
|
71
71
|
"pretty-bytes": "^6.1.1",
|
|
72
|
-
"rollup": "^4.
|
|
72
|
+
"rollup": "^4.40.0",
|
|
73
73
|
"rollup-plugin-bundle-size": "^1.0.3",
|
|
74
74
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
75
|
-
"typedoc": "^0.
|
|
76
|
-
"typescript": "^5.8.
|
|
77
|
-
"vitest": "^3.
|
|
75
|
+
"typedoc": "^0.28.3",
|
|
76
|
+
"typescript": "^5.8.3",
|
|
77
|
+
"vitest": "^3.1.2"
|
|
78
78
|
}
|
|
79
79
|
}
|