@hebcal/rest-api 6.3.0 → 6.4.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 +232 -229
- package/dist/bundle.min.js +2 -2
- package/dist/common.d.ts +2 -40
- package/dist/esm/classic-rest-api.js +7 -4
- package/dist/esm/common.d.ts +2 -40
- package/dist/esm/common.js +7 -183
- package/dist/esm/countryNames.json.js +1 -1
- package/dist/esm/csv.js +5 -4
- package/dist/esm/fullcalendar.js +5 -3
- package/dist/esm/holiday.d.ts +5 -0
- package/dist/esm/holiday.js +27 -0
- package/dist/esm/holidays-he.json.js +4 -0
- package/dist/esm/holidays.json.js +1 -1
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +6 -2
- package/dist/esm/location.d.ts +26 -0
- package/dist/esm/location.js +45 -0
- package/dist/esm/makeAnchor.js +1 -1
- package/dist/esm/memo.d.ts +6 -0
- package/dist/esm/memo.js +65 -0
- package/dist/esm/rss.js +6 -4
- package/dist/esm/url.d.ts +5 -0
- package/dist/esm/url.js +122 -0
- package/dist/fullcalendar.js +97 -97
- package/dist/fullcalendar.min.js +2 -2
- package/dist/holiday.d.ts +5 -0
- package/dist/index.d.ts +4 -0
- package/dist/location.d.ts +26 -0
- package/dist/memo.d.ts +6 -0
- package/dist/url.d.ts +5 -0
- package/package.json +6 -6
- package/dist/esm/shorten.d.ts +0 -1
- package/dist/esm/shorten.js +0 -67
- package/dist/shorten.d.ts +0 -1
package/dist/fullcalendar.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v6.
|
|
2
|
-
var hebcalFullCalendar = (function (exports, event, zmanim, hdate, leyning, getLeyningForHoliday
|
|
1
|
+
/*! @hebcal/rest-api v6.4.0 */
|
|
2
|
+
var hebcalFullCalendar = (function (exports, event, zmanim, hdate, sedra, leyning, getLeyningForHoliday) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
const Chanukah="Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights, the eight-day festival is observed by lighting the candles of a hanukkiah (menorah)";const Pesach="Passover, the Feast of Unleavened Bread. Also called Chag HaMatzot (the Festival of Matzah), it commemorates the Exodus and freedom of the Israelites from ancient Egypt";const Purim="Celebration of Jewish deliverance as told by Megilat Esther. It commemorates a time when the Jewish people living in Persia were saved from extermination";const Shavuot="Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai";const Sigd="Ethiopian Jewish holiday occurring 50 days after Yom Kippur";const Sukkot="Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)";var holidayDescription0 = {"Asara B'Tevet":"Fast commemorating the siege of Jerusalem","Ben-Gurion Day":"Commemorates the life and vision of Israel’s first Prime Minister David Ben-Gurion","Birkat Hachamah":"A rare Jewish blessing recited once every 28 years thanking G-d for creating the sun","Chag HaBanot":"North African Chanukah festival of daughters. Called Eid al-Banat in Arabic, the holiday was most preserved in Tunisia",Chanukah:Chanukah,"Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot. Also called Sefirat HaOmer, it is a practice that consists of a verbal counting of each of the forty-nine days between the two holidays","Erev Yom Kippur":"Evening of Yom Kippur (Day of Atonement), which includes the Kol Nidre service. The Yom Kippur fast begins at sundown and continues for 25 hours","Family Day":"Yom HaMishpacha, a day to honor the family unit","Hebrew Language Day":"Promotes the Hebrew language in Israel and around the world. Occurs on the birthday of Eliezer Ben Yehuda, the father of modern spoken Hebrew","Herzl Day":"Commemorates the life and vision of Zionist leader Theodor Herzl","Jabotinsky Day":"Commemorates the life and vision of Zionist leader Ze’ev Jabotinsky","Lag BaOmer":"33rd day of counting the Omer. The holiday is a temporary break from the semi-mourning period the counting of the Omer. Practices include lighting bonfires, getting haircuts, and Jewish weddings","Leil Selichot":"Prayers for forgiveness in preparation for the High Holidays","Pesach Sheni":"Second Passover, one month after Passover",Pesach:Pesach,"Purim Katan":"Minor Purim celebration during Adar I on leap years",Purim:Purim,"Purim Meshulash":"Triple Purim, spanning 3 days in Jerusalem and walled cities. It occurs when the 15th of Adar coincides with Shabbat","Rosh Chodesh Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 7th month of the civil Hebrew year (8th on leap years) and the 1st month of the biblical Hebrew year. It has 30 days and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Iyyar":"Start of month of Iyyar on the Hebrew calendar. אִיָּיר (transliterated Iyyar or Iyar) is the 8th month of the civil Hebrew year (9th on leap years) and the 2nd month of the biblical Hebrew year. It has 29 days and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sivan":"Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 9th month of the civil Hebrew year (10th on leap years) and the 3rd month of the biblical Hebrew year. It has 30 days and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tamuz":"Start of month of Tammuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 10th month of the civil Hebrew year (11th on leap years) and the 4th month of the biblical Hebrew year. It has 29 days and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Av":"Start of month of Av on the Hebrew calendar. Av (אָב) is the 11th month of the civil Hebrew year (12th on leap years) and the 5th month of the biblical Hebrew year. It has 30 days and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Elul":"Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 12th month of the civil Hebrew year (13th on leap years) and the 6th month of the biblical Hebrew year. It has 29 days and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Cheshvan":"Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 2nd month of the civil Hebrew year and the 8th month of the biblical Hebrew year. It has 29 or 30 days and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Kislev":"Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 3rd month of the civil Hebrew year and the 9th month of the biblical Hebrew year. It has 30 or 29 days and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tevet":"Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 4th month of the civil Hebrew year and the 10th month of the biblical Hebrew year. It has 29 days and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sh'vat":"Start of month of Sh’vat on the Hebrew calendar. שְׁבָט (transliterated Sh’vat or Shevat) is the 5th month of the civil Hebrew year and the 11th month of the biblical Hebrew year. It has 30 days and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar":"Start of month of Adar on the Hebrew calendar. Adar (אֲדָר) is the 6th month of the civil Hebrew year and the 12th month of the biblical Hebrew year. It has 29 days and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar I":"Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אֲדָר א׳) is the 6th month of the civil Hebrew year and the 12th month of the biblical Hebrew year. It has 30 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar II":"Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אֲדָר ב׳), sometimes “Adar Bet” or “Adar Sheni”, is the 7th month of the civil Hebrew year and the 13th month of the Hebrew year. It has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Rosh Hashana LaBehemot":"New Year for Tithing Animals","Shabbat Chazon":"Shabbat of Prophecy/Shabbat of Vision. Shabbat before Tish’a B’Av","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan. Read in preparation for Passover","Shabbat HaGadol":"Shabbat before Pesach (The Great Shabbat)","Shabbat Machar Chodesh":"When Shabbat falls the day before Rosh Chodesh","Shabbat Mevarchim Chodesh":"Shabbat that precedes Rosh Chodesh. The congregation blesses the forthcoming new month","Shabbat Nachamu":"Shabbat after Tish’a B’Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (“Comfort, oh comfort my people”)","Shabbat Parah":"Shabbat of the Red Heifer. Shabbat before Shabbat HaChodesh, in preparation for Passover","Shabbat Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar. Read in preparation for Purim","Shabbat Shirah":"Shabbat of Song. Shabbat that includes Parashat Beshalach","Shabbat Shuva":"Shabbat of Returning. Shabbat that occurs during the Ten Days of Repentance between Rosh Hashanah and Yom Kippur","Shabbat Zachor":"Shabbat of Remembrance. Shabbat before Purim",Shavuot:Shavuot,"Shmini Atzeret":"Eighth Day of Assembly. Immediately following Sukkot, it is observed as a separate holiday in the Diaspora and is combined with Simchat Torah in Israel","Shushan Purim":"Purim celebrated in Jerusalem and walled cities","Shushan Purim Katan":"Minor Purim celebration during Adar I on leap years in Jerusalem and walled cities",Sigd:Sigd,"Simchat Torah":"Day of Celebrating the Torah. Celebration marking the conclusion of the annual cycle of public Torah readings, and the beginning of a new cycle",Sukkot:Sukkot,"Ta'anit Bechorot":"Fast of the First Born","Ta'anit Esther":"Fast of Esther","Tish'a B'Av":"The Ninth of Av. Fast commemorating the destruction of the two Temples","Tu B'Av":"Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av","Tu BiShvat":"New Year for Trees. Tu BiShvat is one of four “New Years” mentioned in the Mishnah","Tzom Gedaliah":"Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah","Tzom Tammuz":"Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple","Yitzhak Rabin Memorial Day":"Commemorates the life of Israeli Prime Minister Yitzhak Rabin","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAliyah School Observance":"Aliyah Day observed in Israeli schools","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Although Yom HaAtzma’ut is normally observed on the 5th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaZikaron, which always precedes it) would conflict with Shabbat","Yom HaShoah":"Holocaust Memorial Day","Yom HaZikaron":"Israeli Memorial Day. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma’arakhot Yisrael ul’Nifge’ei Pe’ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. Although Yom Hazikaron is normally observed on the 4th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaAtzma’ut, which always follows it) would conflict with Shabbat","Yom Kippur":"Day of Atonement. The holiest day of the year in Judaism, traditionally observed with a 25-hour period of fasting and intensive prayer","Yom Kippur Katan":"Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"};
|
|
6
|
-
|
|
7
5
|
/**
|
|
8
6
|
* Helper function to transform a string to make it more usable in a URL or filename.
|
|
9
7
|
* Converts to lowercase and replaces non-word characters with hyphen ('-').
|
|
@@ -20,6 +18,45 @@ function makeAnchor(s) {
|
|
|
20
18
|
.replace(/-$/g, '');
|
|
21
19
|
}
|
|
22
20
|
|
|
21
|
+
/**
|
|
22
|
+
* Returns a category and subcategory name
|
|
23
|
+
*/
|
|
24
|
+
function getEventCategories(ev) {
|
|
25
|
+
const desc = ev.getDesc();
|
|
26
|
+
if (desc === 'Purim' || desc === 'Erev Purim') {
|
|
27
|
+
return ['holiday', 'major'];
|
|
28
|
+
}
|
|
29
|
+
return ev.getCategories();
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Bitmask for learning events (Daf Yomi, Nach Yomi, Mishna Yomi, Daily Learning, Yerushalmi Yomi)
|
|
33
|
+
*/
|
|
34
|
+
const LEARNING_MASK = event.flags.DAF_YOMI |
|
|
35
|
+
event.flags.NACH_YOMI |
|
|
36
|
+
event.flags.MISHNA_YOMI |
|
|
37
|
+
event.flags.DAILY_LEARNING |
|
|
38
|
+
event.flags.YERUSHALMI_YOMI;
|
|
39
|
+
function shouldRenderBrief(ev) {
|
|
40
|
+
if (typeof ev.eventTime !== 'undefined') {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
const mask = ev.getFlags();
|
|
44
|
+
if (mask & event.flags.HEBREW_DATE) {
|
|
45
|
+
const hd = ev.getDate();
|
|
46
|
+
return hd.getDate() !== 1;
|
|
47
|
+
}
|
|
48
|
+
else if (mask & (LEARNING_MASK | event.flags.SHABBAT_MEVARCHIM)) {
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
else if (mask & event.flags.MINOR_FAST &&
|
|
52
|
+
ev.getDesc().substring(0, 16) === 'Yom Kippur Katan') {
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
23
60
|
const parsha2id = new Map();
|
|
24
61
|
for (let id = 0; id < sedra.parshiot.length; id++) {
|
|
25
62
|
const name = sedra.parshiot[id];
|
|
@@ -80,27 +117,66 @@ function shortenSedrotUrl(u) {
|
|
|
80
117
|
u.pathname = '/s/' + path.substring(8);
|
|
81
118
|
}
|
|
82
119
|
}
|
|
83
|
-
|
|
84
|
-
const holidayDescription = holidayDescription0;
|
|
85
120
|
/**
|
|
86
|
-
*
|
|
121
|
+
* Appends utm_source and utm_medium parameters to a URL
|
|
87
122
|
*/
|
|
88
|
-
function
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
-
|
|
123
|
+
function appendIsraelAndTracking(url, il, utmSource, utmMedium, utmCampaign) {
|
|
124
|
+
const u = new URL(url);
|
|
125
|
+
const isHebcal = u.host === 'www.hebcal.com';
|
|
126
|
+
if (isHebcal) {
|
|
127
|
+
if (il) {
|
|
128
|
+
u.searchParams.set('i', 'on');
|
|
129
|
+
}
|
|
130
|
+
const path = u.pathname;
|
|
131
|
+
const isHolidays = path.startsWith('/holidays/');
|
|
132
|
+
const isSedrot = path.startsWith('/sedrot/');
|
|
133
|
+
const isOmer = path.startsWith('/omer/');
|
|
134
|
+
if (isHolidays || isSedrot || isOmer) {
|
|
135
|
+
u.host = 'hebcal.com';
|
|
136
|
+
if (isHolidays) {
|
|
137
|
+
u.pathname = '/h/' + path.substring(10);
|
|
138
|
+
}
|
|
139
|
+
else if (isSedrot) {
|
|
140
|
+
shortenSedrotUrl(u);
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
// isOmer
|
|
144
|
+
u.pathname = '/o/' + path.substring(6);
|
|
145
|
+
}
|
|
146
|
+
{
|
|
147
|
+
if (utmSource) {
|
|
148
|
+
u.searchParams.set('us', utmSource);
|
|
149
|
+
}
|
|
150
|
+
{
|
|
151
|
+
u.searchParams.set('um', utmMedium);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
return u.toString();
|
|
155
|
+
}
|
|
92
156
|
}
|
|
93
|
-
|
|
157
|
+
if (!utmSource && !isHebcal) {
|
|
158
|
+
utmSource = 'hebcal.com'; // e.g. sefaria.org/foo?utm_source=hebcal.com
|
|
159
|
+
}
|
|
160
|
+
if (utmSource) {
|
|
161
|
+
u.searchParams.set('utm_source', utmSource);
|
|
162
|
+
}
|
|
163
|
+
{
|
|
164
|
+
u.searchParams.set('utm_medium', utmMedium);
|
|
165
|
+
}
|
|
166
|
+
return u.toString();
|
|
94
167
|
}
|
|
168
|
+
|
|
169
|
+
const Chanukah="Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights, the eight-day festival is observed by lighting the candles of a hanukkiah (menorah)";const Pesach="Passover, the Feast of Unleavened Bread. Also called Chag HaMatzot (the Festival of Matzah), it commemorates the Exodus and freedom of the Israelites from ancient Egypt";const Purim="Celebration of Jewish deliverance as told by Megilat Esther. It commemorates a time when the Jewish people living in Persia were saved from extermination";const Shavuot="Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai";const Sigd="Ethiopian Jewish holiday occurring 50 days after Yom Kippur";const Sukkot="Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)";var holidayDescription0 = {"Asara B'Tevet":"Fast commemorating the siege of Jerusalem","Ben-Gurion Day":"Commemorates the life and vision of Israel’s first Prime Minister David Ben-Gurion","Birkat Hachamah":"A rare Jewish blessing recited once every 28 years thanking G-d for creating the sun","Chag HaBanot":"North African Chanukah festival of daughters. Called Eid al-Banat in Arabic, the holiday was most preserved in Tunisia",Chanukah:Chanukah,"Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot. Also called Sefirat HaOmer, it is a practice that consists of a verbal counting of each of the forty-nine days between the two holidays","Erev Yom Kippur":"Evening of Yom Kippur (Day of Atonement), which includes the Kol Nidre service. The Yom Kippur fast begins at sundown and continues for 25 hours","Family Day":"Yom HaMishpacha, a day to honor the family unit","Hebrew Language Day":"Promotes the Hebrew language in Israel and around the world. Occurs on the birthday of Eliezer Ben Yehuda, the father of modern spoken Hebrew","Herzl Day":"Commemorates the life and vision of Zionist leader Theodor Herzl","Jabotinsky Day":"Commemorates the life and vision of Zionist leader Ze’ev Jabotinsky","Lag BaOmer":"33rd day of counting the Omer. The holiday is a temporary break from the semi-mourning period the counting of the Omer. Practices include lighting bonfires, getting haircuts, and Jewish weddings","Leil Selichot":"Prayers for forgiveness in preparation for the High Holidays","Pesach Sheni":"Second Passover, one month after Passover",Pesach:Pesach,"Purim Katan":"Minor Purim celebration during Adar I on leap years",Purim:Purim,"Purim Meshulash":"Triple Purim, spanning 3 days in Jerusalem and walled cities. It occurs when the 15th of Adar coincides with Shabbat","Rosh Chodesh Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 7th month of the civil Hebrew year (8th on leap years) and the 1st month of the biblical Hebrew year. It has 30 days and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Iyyar":"Start of month of Iyyar on the Hebrew calendar. אִיָּיר (transliterated Iyyar or Iyar) is the 8th month of the civil Hebrew year (9th on leap years) and the 2nd month of the biblical Hebrew year. It has 29 days and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sivan":"Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 9th month of the civil Hebrew year (10th on leap years) and the 3rd month of the biblical Hebrew year. It has 30 days and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tamuz":"Start of month of Tammuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 10th month of the civil Hebrew year (11th on leap years) and the 4th month of the biblical Hebrew year. It has 29 days and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Av":"Start of month of Av on the Hebrew calendar. Av (אָב) is the 11th month of the civil Hebrew year (12th on leap years) and the 5th month of the biblical Hebrew year. It has 30 days and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Elul":"Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 12th month of the civil Hebrew year (13th on leap years) and the 6th month of the biblical Hebrew year. It has 29 days and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Cheshvan":"Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 2nd month of the civil Hebrew year and the 8th month of the biblical Hebrew year. It has 29 or 30 days and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Kislev":"Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 3rd month of the civil Hebrew year and the 9th month of the biblical Hebrew year. It has 30 or 29 days and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tevet":"Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 4th month of the civil Hebrew year and the 10th month of the biblical Hebrew year. It has 29 days and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sh'vat":"Start of month of Sh’vat on the Hebrew calendar. שְׁבָט (transliterated Sh’vat or Shevat) is the 5th month of the civil Hebrew year and the 11th month of the biblical Hebrew year. It has 30 days and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar":"Start of month of Adar on the Hebrew calendar. Adar (אֲדָר) is the 6th month of the civil Hebrew year and the 12th month of the biblical Hebrew year. It has 29 days and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar I":"Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אֲדָר א׳) is the 6th month of the civil Hebrew year and the 12th month of the biblical Hebrew year. It has 30 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar II":"Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אֲדָר ב׳), sometimes “Adar Bet” or “Adar Sheni”, is the 7th month of the civil Hebrew year and the 13th month of the Hebrew year. It has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Rosh Hashana LaBehemot":"New Year for Tithing Animals","Shabbat Chazon":"Shabbat of Prophecy/Shabbat of Vision. Shabbat before Tish’a B’Av","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan. Read in preparation for Passover","Shabbat HaGadol":"Shabbat before Pesach (The Great Shabbat)","Shabbat Machar Chodesh":"When Shabbat falls the day before Rosh Chodesh","Shabbat Mevarchim Chodesh":"Shabbat that precedes Rosh Chodesh. The congregation blesses the forthcoming new month","Shabbat Nachamu":"Shabbat after Tish’a B’Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (“Comfort, oh comfort my people”)","Shabbat Parah":"Shabbat of the Red Heifer. Shabbat before Shabbat HaChodesh, in preparation for Passover","Shabbat Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar. Read in preparation for Purim","Shabbat Shirah":"Shabbat of Song. Shabbat that includes Parashat Beshalach","Shabbat Shuva":"Shabbat of Returning. Shabbat that occurs during the Ten Days of Repentance between Rosh Hashanah and Yom Kippur","Shabbat Zachor":"Shabbat of Remembrance. Shabbat before Purim",Shavuot:Shavuot,"Shmini Atzeret":"Eighth Day of Assembly. Immediately following Sukkot, it is observed as a separate holiday in the Diaspora and is combined with Simchat Torah in Israel","Shushan Purim":"Purim celebrated in Jerusalem and walled cities","Shushan Purim Katan":"Minor Purim celebration during Adar I on leap years in Jerusalem and walled cities",Sigd:Sigd,"Simchat Torah":"Day of Celebrating the Torah. Celebration marking the conclusion of the annual cycle of public Torah readings, and the beginning of a new cycle",Sukkot:Sukkot,"Ta'anit Bechorot":"Fast of the First Born","Ta'anit Esther":"Fast of Esther","Tish'a B'Av":"The Ninth of Av. Fast commemorating the destruction of the two Temples","Tu B'Av":"Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av","Tu BiShvat":"New Year for Trees. Tu BiShvat is one of four “New Years” mentioned in the Mishnah","Tzom Gedaliah":"Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah","Tzom Tammuz":"Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple","Yitzhak Rabin Memorial Day":"Commemorates the life of Israeli Prime Minister Yitzhak Rabin","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAliyah School Observance":"Aliyah Day observed in Israeli schools","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Although Yom HaAtzma’ut is normally observed on the 5th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaZikaron, which always precedes it) would conflict with Shabbat","Yom HaShoah":"Holocaust Memorial Day","Yom HaZikaron":"Israeli Memorial Day. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma’arakhot Yisrael ul’Nifge’ei Pe’ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. Although Yom Hazikaron is normally observed on the 4th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaAtzma’ut, which always follows it) would conflict with Shabbat","Yom Kippur":"Day of Atonement. The holiest day of the year in Judaism, traditionally observed with a 25-hour period of fasting and intensive prayer","Yom Kippur Katan":"Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"};
|
|
170
|
+
|
|
171
|
+
const holidayDescription = holidayDescription0;
|
|
95
172
|
/**
|
|
96
173
|
* Returns an English language description of the holiday
|
|
97
174
|
*/
|
|
98
|
-
function getHolidayDescription(ev, firstSentence = false) {
|
|
175
|
+
function getHolidayDescription(ev, firstSentence = false, locale) {
|
|
176
|
+
const strs = holidayDescription;
|
|
99
177
|
const str0 = ev.getFlags() & event.flags.SHABBAT_MEVARCHIM
|
|
100
|
-
?
|
|
101
|
-
:
|
|
102
|
-
holidayDescription[ev.basename()] ||
|
|
103
|
-
'';
|
|
178
|
+
? strs['Shabbat Mevarchim Chodesh']
|
|
179
|
+
: strs[ev.getDesc()] || strs[ev.basename()] || '';
|
|
104
180
|
const str = str0.normalize();
|
|
105
181
|
if (firstSentence && str) {
|
|
106
182
|
const dot = str.indexOf('.');
|
|
@@ -110,11 +186,7 @@ function getHolidayDescription(ev, firstSentence = false) {
|
|
|
110
186
|
}
|
|
111
187
|
return str;
|
|
112
188
|
}
|
|
113
|
-
|
|
114
|
-
event.flags.NACH_YOMI |
|
|
115
|
-
event.flags.MISHNA_YOMI |
|
|
116
|
-
event.flags.DAILY_LEARNING |
|
|
117
|
-
event.flags.YERUSHALMI_YOMI;
|
|
189
|
+
|
|
118
190
|
const HOLIDAY_IGNORE_MASK = event.flags.OMER_COUNT |
|
|
119
191
|
event.flags.SHABBAT_MEVARCHIM |
|
|
120
192
|
event.flags.MOLAD |
|
|
@@ -169,79 +241,7 @@ function makeMemo(ev, il) {
|
|
|
169
241
|
if (ev.memo) {
|
|
170
242
|
return ev.memo;
|
|
171
243
|
}
|
|
172
|
-
return getHolidayDescription(ev);
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* Appends utm_source and utm_medium parameters to a URL
|
|
176
|
-
*/
|
|
177
|
-
function appendIsraelAndTracking(url, il, utmSource, utmMedium, utmCampaign) {
|
|
178
|
-
const u = new URL(url);
|
|
179
|
-
const isHebcal = u.host === 'www.hebcal.com';
|
|
180
|
-
if (isHebcal) {
|
|
181
|
-
if (il) {
|
|
182
|
-
u.searchParams.set('i', 'on');
|
|
183
|
-
}
|
|
184
|
-
const path = u.pathname;
|
|
185
|
-
const isHolidays = path.startsWith('/holidays/');
|
|
186
|
-
const isSedrot = path.startsWith('/sedrot/');
|
|
187
|
-
const isOmer = path.startsWith('/omer/');
|
|
188
|
-
if (isHolidays || isSedrot || isOmer) {
|
|
189
|
-
u.host = 'hebcal.com';
|
|
190
|
-
if (isHolidays) {
|
|
191
|
-
u.pathname = '/h/' + path.substring(10);
|
|
192
|
-
}
|
|
193
|
-
else if (isSedrot) {
|
|
194
|
-
shortenSedrotUrl(u);
|
|
195
|
-
}
|
|
196
|
-
else {
|
|
197
|
-
// isOmer
|
|
198
|
-
u.pathname = '/o/' + path.substring(6);
|
|
199
|
-
}
|
|
200
|
-
{
|
|
201
|
-
if (utmSource) {
|
|
202
|
-
u.searchParams.set('us', utmSource);
|
|
203
|
-
}
|
|
204
|
-
{
|
|
205
|
-
u.searchParams.set('um', utmMedium);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
return u.toString();
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
if (!utmSource && !isHebcal) {
|
|
212
|
-
utmSource = 'hebcal.com'; // e.g. sefaria.org/foo?utm_source=hebcal.com
|
|
213
|
-
}
|
|
214
|
-
if (utmSource) {
|
|
215
|
-
u.searchParams.set('utm_source', utmSource);
|
|
216
|
-
}
|
|
217
|
-
{
|
|
218
|
-
u.searchParams.set('utm_medium', utmMedium);
|
|
219
|
-
}
|
|
220
|
-
return u.toString();
|
|
221
|
-
}
|
|
222
|
-
function shouldRenderBrief(ev) {
|
|
223
|
-
if (typeof ev.eventTime !== 'undefined') {
|
|
224
|
-
return true;
|
|
225
|
-
}
|
|
226
|
-
const mask = ev.getFlags();
|
|
227
|
-
if (mask & event.flags.HEBREW_DATE) {
|
|
228
|
-
const hd = ev.getDate();
|
|
229
|
-
return hd.getDate() !== 1;
|
|
230
|
-
}
|
|
231
|
-
else if (mask &
|
|
232
|
-
(event.flags.DAILY_LEARNING | event.flags.DAF_YOMI | event.flags.YERUSHALMI_YOMI)) {
|
|
233
|
-
return true;
|
|
234
|
-
}
|
|
235
|
-
else if (mask & event.flags.MINOR_FAST &&
|
|
236
|
-
ev.getDesc().substring(0, 16) === 'Yom Kippur Katan') {
|
|
237
|
-
return true;
|
|
238
|
-
}
|
|
239
|
-
else if (mask & event.flags.SHABBAT_MEVARCHIM) {
|
|
240
|
-
return true;
|
|
241
|
-
}
|
|
242
|
-
else {
|
|
243
|
-
return false;
|
|
244
|
-
}
|
|
244
|
+
return getHolidayDescription(ev, false);
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
/**
|
|
@@ -265,7 +265,7 @@ function eventToFullCalendar(ev, tzid, options) {
|
|
|
265
265
|
: ev.render(options.locale);
|
|
266
266
|
const start = timed
|
|
267
267
|
? zmanim.Zmanim.formatISOWithTimeZone(tzid, eventTime)
|
|
268
|
-
: hdate.isoDateString(ev.
|
|
268
|
+
: hdate.isoDateString(ev.greg());
|
|
269
269
|
const result = {
|
|
270
270
|
title,
|
|
271
271
|
start,
|
|
@@ -301,4 +301,4 @@ exports.eventToFullCalendar = eventToFullCalendar;
|
|
|
301
301
|
|
|
302
302
|
return exports;
|
|
303
303
|
|
|
304
|
-
})({}, hebcal, hebcal, hebcal,
|
|
304
|
+
})({}, hebcal, hebcal, hebcal, hebcal, hebcal__leyning, hebcal__leyning);
|
package/dist/fullcalendar.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v6.
|
|
2
|
-
var hebcalFullCalendar=function(e,a,o,t,r,h,n){"use strict";var s={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem","Ben-Gurion Day":"Commemorates the life and vision of Israel’s first Prime Minister David Ben-Gurion","Birkat Hachamah":"A rare Jewish blessing recited once every 28 years thanking G-d for creating the sun","Chag HaBanot":"North African Chanukah festival of daughters. Called Eid al-Banat in Arabic, the holiday was most preserved in Tunisia",Chanukah:"Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights, the eight-day festival is observed by lighting the candles of a hanukkiah (menorah)","Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot. Also called Sefirat HaOmer, it is a practice that consists of a verbal counting of each of the forty-nine days between the two holidays","Erev Yom Kippur":"Evening of Yom Kippur (Day of Atonement), which includes the Kol Nidre service. The Yom Kippur fast begins at sundown and continues for 25 hours","Family Day":"Yom HaMishpacha, a day to honor the family unit","Hebrew Language Day":"Promotes the Hebrew language in Israel and around the world. Occurs on the birthday of Eliezer Ben Yehuda, the father of modern spoken Hebrew","Herzl Day":"Commemorates the life and vision of Zionist leader Theodor Herzl","Jabotinsky Day":"Commemorates the life and vision of Zionist leader Ze’ev Jabotinsky","Lag BaOmer":"33rd day of counting the Omer. The holiday is a temporary break from the semi-mourning period the counting of the Omer. Practices include lighting bonfires, getting haircuts, and Jewish weddings","Leil Selichot":"Prayers for forgiveness in preparation for the High Holidays","Pesach Sheni":"Second Passover, one month after Passover",Pesach:"Passover, the Feast of Unleavened Bread. Also called Chag HaMatzot (the Festival of Matzah), it commemorates the Exodus and freedom of the Israelites from ancient Egypt","Purim Katan":"Minor Purim celebration during Adar I on leap years",Purim:"Celebration of Jewish deliverance as told by Megilat Esther. It commemorates a time when the Jewish people living in Persia were saved from extermination","Purim Meshulash":"Triple Purim, spanning 3 days in Jerusalem and walled cities. It occurs when the 15th of Adar coincides with Shabbat","Rosh Chodesh Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 7th month of the civil Hebrew year (8th on leap years) and the 1st month of the biblical Hebrew year. It has 30 days and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Iyyar":"Start of month of Iyyar on the Hebrew calendar. אִיָּיר (transliterated Iyyar or Iyar) is the 8th month of the civil Hebrew year (9th on leap years) and the 2nd month of the biblical Hebrew year. It has 29 days and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sivan":"Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 9th month of the civil Hebrew year (10th on leap years) and the 3rd month of the biblical Hebrew year. It has 30 days and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tamuz":"Start of month of Tammuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 10th month of the civil Hebrew year (11th on leap years) and the 4th month of the biblical Hebrew year. It has 29 days and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Av":"Start of month of Av on the Hebrew calendar. Av (אָב) is the 11th month of the civil Hebrew year (12th on leap years) and the 5th month of the biblical Hebrew year. It has 30 days and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Elul":"Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 12th month of the civil Hebrew year (13th on leap years) and the 6th month of the biblical Hebrew year. It has 29 days and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Cheshvan":"Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 2nd month of the civil Hebrew year and the 8th month of the biblical Hebrew year. It has 29 or 30 days and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Kislev":"Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 3rd month of the civil Hebrew year and the 9th month of the biblical Hebrew year. It has 30 or 29 days and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tevet":"Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 4th month of the civil Hebrew year and the 10th month of the biblical Hebrew year. It has 29 days and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sh'vat":"Start of month of Sh’vat on the Hebrew calendar. שְׁבָט (transliterated Sh’vat or Shevat) is the 5th month of the civil Hebrew year and the 11th month of the biblical Hebrew year. It has 30 days and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar":"Start of month of Adar on the Hebrew calendar. Adar (אֲדָר) is the 6th month of the civil Hebrew year and the 12th month of the biblical Hebrew year. It has 29 days and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar I":"Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אֲדָר א׳) is the 6th month of the civil Hebrew year and the 12th month of the biblical Hebrew year. It has 30 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar II":"Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אֲדָר ב׳), sometimes “Adar Bet” or “Adar Sheni”, is the 7th month of the civil Hebrew year and the 13th month of the Hebrew year. It has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Rosh Hashana LaBehemot":"New Year for Tithing Animals","Shabbat Chazon":"Shabbat of Prophecy/Shabbat of Vision. Shabbat before Tish’a B’Av","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan. Read in preparation for Passover","Shabbat HaGadol":"Shabbat before Pesach (The Great Shabbat)","Shabbat Machar Chodesh":"When Shabbat falls the day before Rosh Chodesh","Shabbat Mevarchim Chodesh":"Shabbat that precedes Rosh Chodesh. The congregation blesses the forthcoming new month","Shabbat Nachamu":"Shabbat after Tish’a B’Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (“Comfort, oh comfort my people”)","Shabbat Parah":"Shabbat of the Red Heifer. Shabbat before Shabbat HaChodesh, in preparation for Passover","Shabbat Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar. Read in preparation for Purim","Shabbat Shirah":"Shabbat of Song. Shabbat that includes Parashat Beshalach","Shabbat Shuva":"Shabbat of Returning. Shabbat that occurs during the Ten Days of Repentance between Rosh Hashanah and Yom Kippur","Shabbat Zachor":"Shabbat of Remembrance. Shabbat before Purim",Shavuot:"Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai","Shmini Atzeret":"Eighth Day of Assembly. Immediately following Sukkot, it is observed as a separate holiday in the Diaspora and is combined with Simchat Torah in Israel","Shushan Purim":"Purim celebrated in Jerusalem and walled cities","Shushan Purim Katan":"Minor Purim celebration during Adar I on leap years in Jerusalem and walled cities",Sigd:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","Simchat Torah":"Day of Celebrating the Torah. Celebration marking the conclusion of the annual cycle of public Torah readings, and the beginning of a new cycle",Sukkot:"Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)","Ta'anit Bechorot":"Fast of the First Born","Ta'anit Esther":"Fast of Esther","Tish'a B'Av":"The Ninth of Av. Fast commemorating the destruction of the two Temples","Tu B'Av":"Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av","Tu BiShvat":"New Year for Trees. Tu BiShvat is one of four “New Years” mentioned in the Mishnah","Tzom Gedaliah":"Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah","Tzom Tammuz":"Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple","Yitzhak Rabin Memorial Day":"Commemorates the life of Israeli Prime Minister Yitzhak Rabin","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAliyah School Observance":"Aliyah Day observed in Israeli schools","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Although Yom HaAtzma’ut is normally observed on the 5th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaZikaron, which always precedes it) would conflict with Shabbat","Yom HaShoah":"Holocaust Memorial Day","Yom HaZikaron":"Israeli Memorial Day. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma’arakhot Yisrael ul’Nifge’ei Pe’ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. Although Yom Hazikaron is normally observed on the 4th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaAtzma’ut, which always follows it) would conflict with Shabbat","Yom Kippur":"Day of Atonement. The holiest day of the year in Judaism, traditionally observed with a 25-hour period of fasting and intensive prayer","Yom Kippur Katan":"Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"};function i(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}const l=new Map;for(let e=0;e<n.parshiot.length;e++){const a=n.parshiot[e];l.set(i(a),e+1)}const d=["Vayakhel-Pekudei","Tazria-Metzora","Achrei Mot-Kedoshim","Behar-Bechukotai","Chukat-Balak","Matot-Masei","Nitzavim-Vayeilech"],m=new Set;for(const e of d){const a=i(e);m.add(a);const[o]=a.split("-"),t=l.get(o);l.set(a,t)}function c(e){const a=e.pathname,o=a.lastIndexOf("-"),r=a.substring(o+1),h=a.substring(8,o);if(l.get(h)&&8===r.length){const a=function(e){const a=e.substring(0,4),o=e.substring(4,6),t=e.substring(6,8),r=parseInt(a,10),h=parseInt(o,10),n=parseInt(t,10),s=new Date(r,h-1,n);return r<100&&s.setFullYear(r),s}(r);let o="/s/"+new t.HDate(a).getFullYear();"on"===e.searchParams.get("i")&&(o+="i",e.searchParams.delete("i"));o+="/"+l.get(h),m.has(h)&&(o+="d"),e.pathname=o}else e.pathname="/s/"+a.substring(8)}const b=s;const f=a.flags.DAF_YOMI|a.flags.NACH_YOMI|a.flags.MISHNA_YOMI|a.flags.DAILY_LEARNING|a.flags.YERUSHALMI_YOMI,y=a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.HEBREW_DATE|f;function u(e,o){if(e.getFlags()&a.flags.PARSHA_HASHAVUA)try{const t=function(e,o){var t;const n=e.getFlags();if(n&y||void 0!==e.eventTime)return"";const s=n&a.flags.PARSHA_HASHAVUA?r.getLeyningForParshaHaShavua(e,o):h.getLeyningForHoliday(e,o);let i="";return s&&(s.summary||s.haftara)&&(s.summary&&(i+=`Torah: ${s.summary}`),s.summary&&s.haftara&&(i+="\n"),s.haftara&&(i+="Haftarah: "+s.haftara,(null===(t=s.reason)||void 0===t?void 0:t.haftara)&&(i+=" | "+s.reason.haftara))),(null==s?void 0:s.sephardic)&&(i+="\nHaftarah for Sephardim: "+s.sephardic),i}(e,o);if(t)return t}catch(e){}return e.memo?e.memo:function(e,o=!1){const t=(e.getFlags()&a.flags.SHABBAT_MEVARCHIM?b["Shabbat Mevarchim Chodesh"]:b[e.getDesc()]||b[e.basename()]||"").normalize();if(o&&t){const e=t.indexOf(".");if(-1!==e)return t.substring(0,e)}return t}(e)}return e.eventToFullCalendar=function(e,r,h){const n=function(e){const a=e.getDesc();return"Purim"===a||"Erev Purim"===a?["holiday","major"]:e.getCategories()}(e),s=e.getFlags();Boolean(s&a.flags.CHAG)&&"holiday"===n[0]&&n.push("yomtov"),s&f&&n.push("learning");const i=e,l=i.eventTime,d=Boolean(l),m={title:function(e){if(void 0!==e.eventTime)return!0;const o=e.getFlags();if(o&a.flags.HEBREW_DATE)return 1!==e.getDate().getDate();return!!(o&(a.flags.DAILY_LEARNING|a.flags.DAF_YOMI|a.flags.YERUSHALMI_YOMI))||!!(o&a.flags.MINOR_FAST&&"Yom Kippur Katan"===e.getDesc().substring(0,16))||!!(o&a.flags.SHABBAT_MEVARCHIM)}(e)?e.renderBrief(h.locale):e.render(h.locale),start:d?o.Zmanim.formatISOWithTimeZone(r,l):t.isoDateString(e.getDate().greg()),allDay:!d,className:n.join(" ")},b=e.renderBrief("he-x-NoNikud");b&&(m.hebrew=b);const y=e.url(),g=Boolean(h.il);if(y){const e="www.hebcal.com"===new URL(y).host?"js":void 0;m.url=function(e,a,o,t){const r=new URL(e),h="www.hebcal.com"===r.host;if(h){a&&r.searchParams.set("i","on");const e=r.pathname,h=e.startsWith("/holidays/"),n=e.startsWith("/sedrot/"),s=e.startsWith("/omer/");if(h||n||s)return r.host="hebcal.com",h?r.pathname="/h/"+e.substring(10):n?c(r):r.pathname="/o/"+e.substring(6),o&&r.searchParams.set("us",o),r.searchParams.set("um",t),r.toString()}return o||h||(o="hebcal.com"),o&&r.searchParams.set("utm_source",o),r.searchParams.set("utm_medium",t),r.toString()}(y,g,e,"fc")}const w=e.getDesc();if(!("Havdalah"===w||"Candle lighting"===w)){const a=u(e,g);a?m.description=a:void 0!==i.linkedEvent&&(m.description=i.linkedEvent.render(h.locale))}return m},e}({},hebcal,hebcal,hebcal,hebcal__leyning,hebcal__leyning,hebcal);
|
|
1
|
+
/*! @hebcal/rest-api v6.4.0 */
|
|
2
|
+
var hebcalFullCalendar=function(e,a,o,t,r,h,n){"use strict";function i(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}const s=a.flags.DAF_YOMI|a.flags.NACH_YOMI|a.flags.MISHNA_YOMI|a.flags.DAILY_LEARNING|a.flags.YERUSHALMI_YOMI;const l=new Map;for(let e=0;e<r.parshiot.length;e++){const a=r.parshiot[e];l.set(i(a),e+1)}const d=["Vayakhel-Pekudei","Tazria-Metzora","Achrei Mot-Kedoshim","Behar-Bechukotai","Chukat-Balak","Matot-Masei","Nitzavim-Vayeilech"],m=new Set;for(const e of d){const a=i(e);m.add(a);const[o]=a.split("-"),t=l.get(o);l.set(a,t)}function c(e){const a=e.pathname,o=a.lastIndexOf("-"),r=a.substring(o+1),h=a.substring(8,o);if(l.get(h)&&8===r.length){const a=function(e){const a=e.substring(0,4),o=e.substring(4,6),t=e.substring(6,8),r=parseInt(a,10),h=parseInt(o,10),n=parseInt(t,10),i=new Date(r,h-1,n);return r<100&&i.setFullYear(r),i}(r);let o="/s/"+new t.HDate(a).getFullYear();"on"===e.searchParams.get("i")&&(o+="i",e.searchParams.delete("i"));o+="/"+l.get(h),m.has(h)&&(o+="d"),e.pathname=o}else e.pathname="/s/"+a.substring(8)}const b={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem","Ben-Gurion Day":"Commemorates the life and vision of Israel’s first Prime Minister David Ben-Gurion","Birkat Hachamah":"A rare Jewish blessing recited once every 28 years thanking G-d for creating the sun","Chag HaBanot":"North African Chanukah festival of daughters. Called Eid al-Banat in Arabic, the holiday was most preserved in Tunisia",Chanukah:"Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights, the eight-day festival is observed by lighting the candles of a hanukkiah (menorah)","Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot. Also called Sefirat HaOmer, it is a practice that consists of a verbal counting of each of the forty-nine days between the two holidays","Erev Yom Kippur":"Evening of Yom Kippur (Day of Atonement), which includes the Kol Nidre service. The Yom Kippur fast begins at sundown and continues for 25 hours","Family Day":"Yom HaMishpacha, a day to honor the family unit","Hebrew Language Day":"Promotes the Hebrew language in Israel and around the world. Occurs on the birthday of Eliezer Ben Yehuda, the father of modern spoken Hebrew","Herzl Day":"Commemorates the life and vision of Zionist leader Theodor Herzl","Jabotinsky Day":"Commemorates the life and vision of Zionist leader Ze’ev Jabotinsky","Lag BaOmer":"33rd day of counting the Omer. The holiday is a temporary break from the semi-mourning period the counting of the Omer. Practices include lighting bonfires, getting haircuts, and Jewish weddings","Leil Selichot":"Prayers for forgiveness in preparation for the High Holidays","Pesach Sheni":"Second Passover, one month after Passover",Pesach:"Passover, the Feast of Unleavened Bread. Also called Chag HaMatzot (the Festival of Matzah), it commemorates the Exodus and freedom of the Israelites from ancient Egypt","Purim Katan":"Minor Purim celebration during Adar I on leap years",Purim:"Celebration of Jewish deliverance as told by Megilat Esther. It commemorates a time when the Jewish people living in Persia were saved from extermination","Purim Meshulash":"Triple Purim, spanning 3 days in Jerusalem and walled cities. It occurs when the 15th of Adar coincides with Shabbat","Rosh Chodesh Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 7th month of the civil Hebrew year (8th on leap years) and the 1st month of the biblical Hebrew year. It has 30 days and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Iyyar":"Start of month of Iyyar on the Hebrew calendar. אִיָּיר (transliterated Iyyar or Iyar) is the 8th month of the civil Hebrew year (9th on leap years) and the 2nd month of the biblical Hebrew year. It has 29 days and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sivan":"Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 9th month of the civil Hebrew year (10th on leap years) and the 3rd month of the biblical Hebrew year. It has 30 days and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tamuz":"Start of month of Tammuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 10th month of the civil Hebrew year (11th on leap years) and the 4th month of the biblical Hebrew year. It has 29 days and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Av":"Start of month of Av on the Hebrew calendar. Av (אָב) is the 11th month of the civil Hebrew year (12th on leap years) and the 5th month of the biblical Hebrew year. It has 30 days and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Elul":"Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 12th month of the civil Hebrew year (13th on leap years) and the 6th month of the biblical Hebrew year. It has 29 days and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Cheshvan":"Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 2nd month of the civil Hebrew year and the 8th month of the biblical Hebrew year. It has 29 or 30 days and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Kislev":"Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 3rd month of the civil Hebrew year and the 9th month of the biblical Hebrew year. It has 30 or 29 days and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tevet":"Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 4th month of the civil Hebrew year and the 10th month of the biblical Hebrew year. It has 29 days and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sh'vat":"Start of month of Sh’vat on the Hebrew calendar. שְׁבָט (transliterated Sh’vat or Shevat) is the 5th month of the civil Hebrew year and the 11th month of the biblical Hebrew year. It has 30 days and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar":"Start of month of Adar on the Hebrew calendar. Adar (אֲדָר) is the 6th month of the civil Hebrew year and the 12th month of the biblical Hebrew year. It has 29 days and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar I":"Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אֲדָר א׳) is the 6th month of the civil Hebrew year and the 12th month of the biblical Hebrew year. It has 30 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar II":"Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אֲדָר ב׳), sometimes “Adar Bet” or “Adar Sheni”, is the 7th month of the civil Hebrew year and the 13th month of the Hebrew year. It has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Rosh Hashana LaBehemot":"New Year for Tithing Animals","Shabbat Chazon":"Shabbat of Prophecy/Shabbat of Vision. Shabbat before Tish’a B’Av","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan. Read in preparation for Passover","Shabbat HaGadol":"Shabbat before Pesach (The Great Shabbat)","Shabbat Machar Chodesh":"When Shabbat falls the day before Rosh Chodesh","Shabbat Mevarchim Chodesh":"Shabbat that precedes Rosh Chodesh. The congregation blesses the forthcoming new month","Shabbat Nachamu":"Shabbat after Tish’a B’Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (“Comfort, oh comfort my people”)","Shabbat Parah":"Shabbat of the Red Heifer. Shabbat before Shabbat HaChodesh, in preparation for Passover","Shabbat Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar. Read in preparation for Purim","Shabbat Shirah":"Shabbat of Song. Shabbat that includes Parashat Beshalach","Shabbat Shuva":"Shabbat of Returning. Shabbat that occurs during the Ten Days of Repentance between Rosh Hashanah and Yom Kippur","Shabbat Zachor":"Shabbat of Remembrance. Shabbat before Purim",Shavuot:"Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai","Shmini Atzeret":"Eighth Day of Assembly. Immediately following Sukkot, it is observed as a separate holiday in the Diaspora and is combined with Simchat Torah in Israel","Shushan Purim":"Purim celebrated in Jerusalem and walled cities","Shushan Purim Katan":"Minor Purim celebration during Adar I on leap years in Jerusalem and walled cities",Sigd:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","Simchat Torah":"Day of Celebrating the Torah. Celebration marking the conclusion of the annual cycle of public Torah readings, and the beginning of a new cycle",Sukkot:"Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)","Ta'anit Bechorot":"Fast of the First Born","Ta'anit Esther":"Fast of Esther","Tish'a B'Av":"The Ninth of Av. Fast commemorating the destruction of the two Temples","Tu B'Av":"Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av","Tu BiShvat":"New Year for Trees. Tu BiShvat is one of four “New Years” mentioned in the Mishnah","Tzom Gedaliah":"Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah","Tzom Tammuz":"Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple","Yitzhak Rabin Memorial Day":"Commemorates the life of Israeli Prime Minister Yitzhak Rabin","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAliyah School Observance":"Aliyah Day observed in Israeli schools","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Although Yom HaAtzma’ut is normally observed on the 5th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaZikaron, which always precedes it) would conflict with Shabbat","Yom HaShoah":"Holocaust Memorial Day","Yom HaZikaron":"Israeli Memorial Day. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma’arakhot Yisrael ul’Nifge’ei Pe’ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. Although Yom Hazikaron is normally observed on the 4th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaAtzma’ut, which always follows it) would conflict with Shabbat","Yom Kippur":"Day of Atonement. The holiest day of the year in Judaism, traditionally observed with a 25-hour period of fasting and intensive prayer","Yom Kippur Katan":"Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"};const f=a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.HEBREW_DATE|s;function y(e,o){if(e.getFlags()&a.flags.PARSHA_HASHAVUA)try{const t=function(e,o){var t;const r=e.getFlags();if(r&f||void 0!==e.eventTime)return"";const i=r&a.flags.PARSHA_HASHAVUA?h.getLeyningForParshaHaShavua(e,o):n.getLeyningForHoliday(e,o);let s="";return i&&(i.summary||i.haftara)&&(i.summary&&(s+=`Torah: ${i.summary}`),i.summary&&i.haftara&&(s+="\n"),i.haftara&&(s+="Haftarah: "+i.haftara,(null===(t=i.reason)||void 0===t?void 0:t.haftara)&&(s+=" | "+i.reason.haftara))),(null==i?void 0:i.sephardic)&&(s+="\nHaftarah for Sephardim: "+i.sephardic),s}(e,o);if(t)return t}catch(e){}return e.memo?e.memo:function(e,o=!1){const t=b,r=(e.getFlags()&a.flags.SHABBAT_MEVARCHIM?t["Shabbat Mevarchim Chodesh"]:t[e.getDesc()]||t[e.basename()]||"").normalize();if(o&&r){const e=r.indexOf(".");if(-1!==e)return r.substring(0,e)}return r}(e,!1)}return e.eventToFullCalendar=function(e,r,h){const n=function(e){const a=e.getDesc();return"Purim"===a||"Erev Purim"===a?["holiday","major"]:e.getCategories()}(e),i=e.getFlags();Boolean(i&a.flags.CHAG)&&"holiday"===n[0]&&n.push("yomtov"),i&s&&n.push("learning");const l=e,d=l.eventTime,m=Boolean(d),b={title:function(e){if(void 0!==e.eventTime)return!0;const o=e.getFlags();if(o&a.flags.HEBREW_DATE)return 1!==e.getDate().getDate();return!!(o&(s|a.flags.SHABBAT_MEVARCHIM))||!!(o&a.flags.MINOR_FAST&&"Yom Kippur Katan"===e.getDesc().substring(0,16))}(e)?e.renderBrief(h.locale):e.render(h.locale),start:m?o.Zmanim.formatISOWithTimeZone(r,d):t.isoDateString(e.greg()),allDay:!m,className:n.join(" ")},f=e.renderBrief("he-x-NoNikud");f&&(b.hebrew=f);const u=e.url(),g=Boolean(h.il);if(u){const e="www.hebcal.com"===new URL(u).host?"js":void 0;b.url=function(e,a,o,t){const r=new URL(e),h="www.hebcal.com"===r.host;if(h){a&&r.searchParams.set("i","on");const e=r.pathname,h=e.startsWith("/holidays/"),n=e.startsWith("/sedrot/"),i=e.startsWith("/omer/");if(h||n||i)return r.host="hebcal.com",h?r.pathname="/h/"+e.substring(10):n?c(r):r.pathname="/o/"+e.substring(6),o&&r.searchParams.set("us",o),r.searchParams.set("um",t),r.toString()}return o||h||(o="hebcal.com"),o&&r.searchParams.set("utm_source",o),r.searchParams.set("utm_medium",t),r.toString()}(u,g,e,"fc")}const w=e.getDesc();if(!("Havdalah"===w||"Candle lighting"===w)){const a=y(e,g);a?b.description=a:void 0!==l.linkedEvent&&(b.description=l.linkedEvent.render(h.locale))}return b},e}({},hebcal,hebcal,hebcal,hebcal,hebcal__leyning,hebcal__leyning);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export * from './csv';
|
|
2
2
|
export * from './makeAnchor';
|
|
3
3
|
export * from './common';
|
|
4
|
+
export { makeTorahMemoText } from './memo';
|
|
5
|
+
export { getHolidayDescription } from './holiday';
|
|
6
|
+
export { appendIsraelAndTracking } from './url';
|
|
7
|
+
export * from './location';
|
|
4
8
|
export * from './classic-rest-api';
|
|
5
9
|
export * from './rss';
|
|
6
10
|
export * from './fullcalendar';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Location } from '@hebcal/core/dist/esm/location';
|
|
2
|
+
import type { StringMap } from './common';
|
|
3
|
+
export declare const countryNames: StringMap;
|
|
4
|
+
/**
|
|
5
|
+
* Location information
|
|
6
|
+
*/
|
|
7
|
+
export type LocationPlainObj = {
|
|
8
|
+
title?: string | null;
|
|
9
|
+
city?: string | null;
|
|
10
|
+
tzid?: string;
|
|
11
|
+
latitude?: number;
|
|
12
|
+
longitude?: number;
|
|
13
|
+
cc?: string;
|
|
14
|
+
country?: string;
|
|
15
|
+
admin1?: string;
|
|
16
|
+
asciiname?: string;
|
|
17
|
+
geo?: string;
|
|
18
|
+
zip?: string;
|
|
19
|
+
state?: string;
|
|
20
|
+
stateName?: string;
|
|
21
|
+
geonameid?: number;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Converts a @hebcal/core `Location` to a plain JS object.
|
|
25
|
+
*/
|
|
26
|
+
export declare function locationToPlainObj(location: Location | undefined): LocationPlainObj;
|
package/dist/memo.d.ts
ADDED
package/dist/url.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/rest-api",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hebcal"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://hebcal.github.io/api/rest-api/",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@hebcal/core": "^6.0.
|
|
31
|
+
"@hebcal/core": "^6.0.6",
|
|
32
32
|
"@hebcal/hdate": "^0.21.1",
|
|
33
33
|
"@hebcal/leyning": "^9.3.0"
|
|
34
34
|
},
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
51
51
|
"@rollup/plugin-terser": "^0.4.4",
|
|
52
52
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
53
|
-
"@types/node": "^24.
|
|
53
|
+
"@types/node": "^24.10.2",
|
|
54
54
|
"gts": "^5.3.1",
|
|
55
|
-
"rollup": "^4.
|
|
56
|
-
"typedoc": "^0.28.
|
|
55
|
+
"rollup": "^4.53.3",
|
|
56
|
+
"typedoc": "^0.28.15",
|
|
57
57
|
"typescript": "^5.9.3",
|
|
58
|
-
"vitest": "^4.0.
|
|
58
|
+
"vitest": "^4.0.15"
|
|
59
59
|
}
|
|
60
60
|
}
|
package/dist/esm/shorten.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function shortenSedrotUrl(u: URL): void;
|
package/dist/esm/shorten.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v6.3.0 */
|
|
2
|
-
import { HDate } from '@hebcal/hdate';
|
|
3
|
-
import { parshiot } from '@hebcal/core/dist/esm/sedra';
|
|
4
|
-
import { makeAnchor } from './makeAnchor.js';
|
|
5
|
-
|
|
6
|
-
const parsha2id = new Map();
|
|
7
|
-
for (let id = 0; id < parshiot.length; id++) {
|
|
8
|
-
const name = parshiot[id];
|
|
9
|
-
parsha2id.set(makeAnchor(name), id + 1);
|
|
10
|
-
}
|
|
11
|
-
const doubledParshiyot = [
|
|
12
|
-
'Vayakhel-Pekudei',
|
|
13
|
-
'Tazria-Metzora',
|
|
14
|
-
'Achrei Mot-Kedoshim',
|
|
15
|
-
'Behar-Bechukotai',
|
|
16
|
-
'Chukat-Balak',
|
|
17
|
-
'Matot-Masei',
|
|
18
|
-
'Nitzavim-Vayeilech',
|
|
19
|
-
];
|
|
20
|
-
const doubled = new Set();
|
|
21
|
-
for (const name of doubledParshiyot) {
|
|
22
|
-
const anchor = makeAnchor(name);
|
|
23
|
-
doubled.add(anchor);
|
|
24
|
-
const [p1] = anchor.split('-');
|
|
25
|
-
const id = parsha2id.get(p1);
|
|
26
|
-
parsha2id.set(anchor, id);
|
|
27
|
-
}
|
|
28
|
-
function parse8digitDateStr(date) {
|
|
29
|
-
const gy = date.substring(0, 4);
|
|
30
|
-
const gm = date.substring(4, 6);
|
|
31
|
-
const gd = date.substring(6, 8);
|
|
32
|
-
const yy = parseInt(gy, 10);
|
|
33
|
-
const mm = parseInt(gm, 10);
|
|
34
|
-
const dd = parseInt(gd, 10);
|
|
35
|
-
const dt = new Date(yy, mm - 1, dd);
|
|
36
|
-
if (yy < 100) {
|
|
37
|
-
dt.setFullYear(yy);
|
|
38
|
-
}
|
|
39
|
-
return dt;
|
|
40
|
-
}
|
|
41
|
-
function shortenSedrotUrl(u) {
|
|
42
|
-
const path = u.pathname;
|
|
43
|
-
const dash = path.lastIndexOf('-');
|
|
44
|
-
const dateStr = path.substring(dash + 1);
|
|
45
|
-
const name = path.substring(8, dash);
|
|
46
|
-
const id = parsha2id.get(name);
|
|
47
|
-
if (id && dateStr.length === 8) {
|
|
48
|
-
const dt = parse8digitDateStr(dateStr);
|
|
49
|
-
const hd = new HDate(dt);
|
|
50
|
-
let p = '/s/' + hd.getFullYear();
|
|
51
|
-
if (u.searchParams.get('i') === 'on') {
|
|
52
|
-
p += 'i';
|
|
53
|
-
u.searchParams.delete('i');
|
|
54
|
-
}
|
|
55
|
-
const id = parsha2id.get(name);
|
|
56
|
-
p += '/' + id;
|
|
57
|
-
if (doubled.has(name)) {
|
|
58
|
-
p += 'd';
|
|
59
|
-
}
|
|
60
|
-
u.pathname = p;
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
u.pathname = '/s/' + path.substring(8);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export { shortenSedrotUrl };
|
package/dist/shorten.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function shortenSedrotUrl(u: URL): void;
|