Socket
Socket
Sign inDemoInstall

@hebcal/rest-api

Package Overview
Dependencies
Maintainers
0
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hebcal/rest-api - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1

281

dist/bundle.js

@@ -1,2 +0,2 @@

/*! @hebcal/rest-api v5.1.0 */
/*! @hebcal/rest-api v5.1.1 */
var hebcal__rest_api = (function (exports, core, leyning, triennial) {

@@ -43,103 +43,102 @@ 'use strict';

*/
/*
* Formerly in namespace, now top-level
*/
/**
* Gregorian date helper functions.
* Returns true if the Gregorian year is a leap year
* @param year Gregorian year
*/
var greg;
(function (greg) {
/**
* Returns true if the Gregorian year is a leap year
* @param {number} year Gregorian year
* @return {boolean}
*/
function isLeapYear(year) {
return !(year % 4) && (!!(year % 100) || !(year % 400));
function isGregLeapYear(year) {
return !(year % 4) && (!!(year % 100) || !(year % 400));
}
/**
* Number of days in the Gregorian month for given year
* @param month Gregorian month (1=January, 12=December)
* @param year Gregorian year
*/
function daysInGregMonth(month, year) {
// 1 based months
return monthLengths[+isGregLeapYear(year)][month];
}
/**
* Returns true if the object is a Javascript Date
*/
function isDate(obj) {
// eslint-disable-next-line no-prototype-builtins
return typeof obj === 'object' && Date.prototype.isPrototypeOf(obj);
}
/**
* @private
* @param year
* @param month (1-12)
* @param day (1-31)
*/
function toFixed(year, month, day) {
const py = year - 1;
return (365 * py +
quotient(py, 4) -
quotient(py, 100) +
quotient(py, 400) +
quotient(367 * month - 362, 12) +
(month <= 2 ? 0 : isGregLeapYear(year) ? -1 : -2) +
day);
}
/**
* Converts Gregorian date to absolute R.D. (Rata Die) days
* @param date Gregorian date
*/
function greg2abs(date) {
if (!isDate(date)) {
throw new TypeError(`Argument not a Date: ${date}`);
}
greg.isLeapYear = isLeapYear;
/**
* Number of days in the Gregorian month for given year
* @param {number} month Gregorian month (1=January, 12=December)
* @param {number} year Gregorian year
* @return {number}
*/
function daysInMonth(month, year) {
// 1 based months
return monthLengths[+isLeapYear(year)][month];
const abs = toFixed(date.getFullYear(), date.getMonth() + 1, date.getDate());
/*
if (abs < ABS_14SEP1752 && abs > ABS_2SEP1752) {
throw new RangeError(`Invalid Date: ${date}`);
}
*/
return abs;
}
/**
* Converts from Rata Die (R.D. number) to Gregorian date.
* See the footnote on page 384 of ``Calendrical Calculations, Part II:
* Three Historical Calendars'' by E. M. Reingold, N. Dershowitz, and S. M.
* Clamen, Software--Practice and Experience, Volume 23, Number 4
* (April, 1993), pages 383-404 for an explanation.
* @param abs - R.D. number of days
*/
function abs2greg(abs) {
if (typeof abs !== 'number') {
throw new TypeError(`Argument not a Number: ${abs}`);
}
greg.daysInMonth = daysInMonth;
/**
* Returns true if the object is a Javascript Date
* @param {Object} obj
* @return {boolean}
*/
function isDate(obj) {
// eslint-disable-next-line no-prototype-builtins
return typeof obj === 'object' && Date.prototype.isPrototypeOf(obj);
abs = Math.trunc(abs);
/*
if (abs < ABS_14SEP1752 && abs > ABS_2SEP1752) {
throw new RangeError(`Invalid Date: ${abs}`);
}
*/
const year = yearFromFixed(abs);
const priorDays = abs - toFixed(year, 1, 1);
const correction = abs < toFixed(year, 3, 1) ? 0 : isGregLeapYear(year) ? 1 : 2;
const month = quotient(12 * (priorDays + correction) + 373, 367);
const day = abs - toFixed(year, month, 1) + 1;
const dt = new Date(year, month - 1, day);
if (year < 100 && year >= 0) {
dt.setFullYear(year);
}
greg.isDate = isDate;
/**
* @private
* @param year
* @param month (1-12)
* @param day (1-31)
*/
function toFixed(year, month, day) {
const py = year - 1;
return (365 * py +
quotient(py, 4) -
quotient(py, 100) +
quotient(py, 400) +
quotient(367 * month - 362, 12) +
(month <= 2 ? 0 : isLeapYear(year) ? -1 : -2) +
day);
}
/**
* Converts Gregorian date to absolute R.D. (Rata Die) days
* @param {Date} date Gregorian date
* @return {number}
*/
function greg2abs(date) {
if (!isDate(date)) {
throw new TypeError(`Argument not a Date: ${date}`);
}
const abs = toFixed(date.getFullYear(), date.getMonth() + 1, date.getDate());
/*
if (abs < ABS_14SEP1752 && abs > ABS_2SEP1752) {
throw new RangeError(`Invalid Date: ${date}`);
}
*/
return abs;
}
greg.greg2abs = greg2abs;
/**
* Converts from Rata Die (R.D. number) to Gregorian date.
* See the footnote on page 384 of ``Calendrical Calculations, Part II:
* Three Historical Calendars'' by E. M. Reingold, N. Dershowitz, and S. M.
* Clamen, Software--Practice and Experience, Volume 23, Number 4
* (April, 1993), pages 383-404 for an explanation.
* @param {number} abs - R.D. number of days
* @return {Date}
*/
function abs2greg(abs) {
if (typeof abs !== 'number') {
throw new TypeError(`Argument not a Number: ${abs}`);
}
abs = Math.trunc(abs);
/*
if (abs < ABS_14SEP1752 && abs > ABS_2SEP1752) {
throw new RangeError(`Invalid Date: ${abs}`);
}
*/
const year = yearFromFixed(abs);
const priorDays = abs - toFixed(year, 1, 1);
const correction = abs < toFixed(year, 3, 1) ? 0 : isLeapYear(year) ? 1 : 2;
const month = quotient(12 * (priorDays + correction) + 373, 367);
const day = abs - toFixed(year, month, 1) + 1;
const dt = new Date(year, month - 1, day);
if (year < 100 && year >= 0) {
dt.setFullYear(year);
}
return dt;
}
greg.abs2greg = abs2greg;
return dt;
}
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-namespace */
/**
* Gregorian date helper functions
*/
var greg;
(function (greg) {
})(greg || (greg = {}));
greg.abs2greg = abs2greg;
greg.daysInMonth = daysInGregMonth;
greg.greg2abs = greg2abs;
greg.isDate = isDate;
greg.isLeapYear = isGregLeapYear;

@@ -182,4 +181,2 @@ const alefbet = {

* negative year numbers (e.g. `-37` is formatted as `-000037`).
* @param {number} number
* @return {string}
*/

@@ -204,4 +201,2 @@ function pad4(number) {

* Similar to `string.padStart(2, '0')`.
* @param {number} number
* @return {string}
*/

@@ -216,5 +211,2 @@ function pad2(number) {

* Returns YYYY-MM-DD in the local timezone
* @private
* @param {Date} dt
* @return {string}
*/

@@ -238,5 +230,5 @@ function isoDateString(dt) {

const alias = {
'h': 'he',
'a': 'ashkenazi',
's': 'en',
h: 'he',
a: 'ashkenazi',
s: 'en',
'': 'en',

@@ -262,8 +254,8 @@ };

* Otherwise, returns `undefined`.
* @param {string} id Message ID to translate
* @param {string} [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
* @return {string}
* @param id Message ID to translate
* @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
*/
static lookupTranslation(id, locale) {
const loc = (typeof locale === 'string' && locales.get(locale.toLowerCase())) || activeLocale;
const loc = (typeof locale === 'string' && locales.get(locale.toLowerCase())) ||
activeLocale;
const array = loc[id];

@@ -277,5 +269,4 @@ if ((array === null || array === void 0 ? void 0 : array.length) && array[0].length) {

* By default, if no translation was found, returns `id`.
* @param {string} id Message ID to translate
* @param {string} [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
* @return {string}
* @param id Message ID to translate
* @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
*/

@@ -291,4 +282,4 @@ static gettext(id, locale) {

* Register locale translations.
* @param {string} locale Locale name (i.e.: `'he'`, `'fr'`)
* @param {LocaleData} data parsed data from a `.po` file.
* @param locale Locale name (i.e.: `'he'`, `'fr'`)
* @param data parsed data from a `.po` file.
*/

@@ -299,3 +290,4 @@ static addLocale(locale, data) {

}
if (typeof data.contexts !== 'object' || typeof data.contexts[''] !== 'object') {
if (typeof data.contexts !== 'object' ||
typeof data.contexts[''] !== 'object') {
throw new TypeError(`Locale '${locale}' invalid compact format`);

@@ -307,5 +299,5 @@ }

* Adds a translation to `locale`, replacing any previous translation.
* @param {string} locale Locale name (i.e: `'he'`, `'fr'`).
* @param {string} id Message ID to translate
* @param {string | string[]} translation Translation text
* @param locale Locale name (i.e: `'he'`, `'fr'`).
* @param id Message ID to translate
* @param translation Translation text
*/

@@ -337,4 +329,4 @@ static addTranslation(locale, id, translation) {

* Adds multiple translations to `locale`, replacing any previous translations.
* @param {string} locale Locale name (i.e: `'he'`, `'fr'`).
* @param {LocaleData} data parsed data from a `.po` file.
* @param locale Locale name (i.e: `'he'`, `'fr'`).
* @param data parsed data from a `.po` file.
*/

@@ -349,3 +341,4 @@ static addTranslations(locale, data) {

}
if (typeof data.contexts !== 'object' || typeof data.contexts[''] !== 'object') {
if (typeof data.contexts !== 'object' ||
typeof data.contexts[''] !== 'object') {
throw new TypeError(`Locale '${locale}' invalid compact format`);

@@ -360,3 +353,3 @@ }

* will be represented by the corresponding translation in the specified locale.
* @param {string} locale Locale name (i.e: `'he'`, `'fr'`)
* @param locale Locale name (i.e: `'he'`, `'fr'`)
*/

@@ -375,3 +368,2 @@ static useLocale(locale) {

* Returns the name of the active locale (i.e. 'he', 'ashkenazi', 'fr')
* @return {string}
*/

@@ -383,3 +375,2 @@ static getLocaleName() {

* Returns the names of registered locales
* @return {string[]}
*/

@@ -391,5 +382,4 @@ static getLocaleNames() {

/**
* @param {number} n
* @param {string} [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
* @return {string}
* Renders a number in ordinal, such as 1st, 2nd or 3rd
* @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
*/

@@ -421,7 +411,2 @@ static ordinal(n, locale) {

}
/**
* @private
* @param {number} n
* @return {string}
*/
static getEnOrdinal(n) {

@@ -434,4 +419,2 @@ const s = ['th', 'st', 'nd', 'rd'];

* Removes nekudot from Hebrew string
* @param {string} str
* @return {string}
*/

@@ -1162,5 +1145,5 @@ static hebrewStripNikkud(str) {

const hyear = hd.getFullYear();
if (isParsha && !il && hyear >= 5745) {
const triReading = triennial.getTriennialForParshaHaShavua(ev);
if (triReading) {
if (isParsha && hyear >= 5745) {
const triReading = triennial.getTriennialForParshaHaShavua(ev, il);
if (triReading === null || triReading === void 0 ? void 0 : triReading.aliyot) {
result.leyning.triennial = formatAliyot({}, triReading.aliyot);

@@ -1238,2 +1221,14 @@ }

}
function formatReasons(result, reason) {
for (const num of ['7', '8', 'M']) {
if (reason[num]) {
const k = num == 'M' ? 'maftir' : num;
result[k] += ' | ' + reason[num];
}
}
if (reason.haftara) {
result.haftarah += ' | ' + reason.haftara;
}
return result;
}
function formatLeyningResult(reading) {

@@ -1254,11 +1249,3 @@ const result = {};

if (reading.reason) {
for (const num of ['7', '8', 'M']) {
if (reading.reason[num]) {
const k = num == 'M' ? 'maftir' : num;
result[k] += ' | ' + reading.reason[num];
}
}
if (reading.reason.haftara) {
result.haftarah += ' | ' + reading.reason.haftara;
}
formatReasons(result, reading.reason);
}

@@ -1265,0 +1252,0 @@ return result;

@@ -1,2 +0,2 @@

/*! @hebcal/rest-api v5.1.0 */
var hebcal__rest_api=function(e,a,t,o){"use strict";const r=[0,31,28,31,30,31,30,31,31,30,31,30,31],n=[r,r.slice()];function i(e,a){return e-a*Math.floor(e/a)}function s(e,a){return Math.floor(e/a)}var h;n[1][2]=29,function(e){function a(e){return!(e%4||!(e%100)&&e%400)}function t(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function o(e,t,o){const r=e-1;return 365*r+s(r,4)-s(r,100)+s(r,400)+s(367*t-362,12)+(t<=2?0:a(e)?-1:-2)+o}e.isLeapYear=a,e.daysInMonth=function(e,t){return n[+a(t)][e]},e.isDate=t,e.greg2abs=function(e){if(!t(e))throw new TypeError(`Argument not a Date: ${e}`);return o(e.getFullYear(),e.getMonth()+1,e.getDate())},e.abs2greg=function(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const t=function(e){const a=e-1,t=s(a,146097),o=i(a,146097),r=s(o,36524),n=i(o,36524),h=s(n,1461),l=s(i(n,1461),365),d=400*t+100*r+4*h+l;return 4!==r&&4!==l?d+1:d}(e=Math.trunc(e)),r=s(12*(e-o(t,1,1)+(e<o(t,3,1)?0:a(t)?1:2))+373,367),n=e-o(t,r,1)+1,h=new Date(t,r-1,n);return t<100&&t>=0&&h.setFullYear(t),h}}(h||(h={}));const l={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},d=new Map,c=new Map;for(const[e,a]of Object.entries(l))d.set(e,a),c.set(a,e);function m(e){return e<0?"-00"+m(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function u(e){return e<10?"0"+e:String(e)}function f(e){return m(e.getFullYear())+"-"+u(e.getMonth()+1)+"-"+u(e.getDate())}var g={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Tevet:["Teves"]}}},b={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"]}}};const y={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},p={h:"he",a:"ashkenazi",s:"en","":"en"},w=new Map;let S,v;class T{static lookupTranslation(e,a){const t=("string"==typeof a&&w.get(a.toLowerCase())||S)[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("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);if("object"!=typeof a.contexts||"object"!=typeof a.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);w.set(e.toLowerCase(),a.contexts[""])}static addTranslation(e,a,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const o=w.get(e.toLowerCase());if(!o)throw new TypeError(`Unknown locale: ${e}`);if("string"!=typeof a||0===a.length)throw new TypeError(`Invalid id: ${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: ${t}`);o[a]=r?t:[t]}static addTranslations(e,a){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const t=w.get(e.toLowerCase());if(!t)throw new TypeError(`Unknown locale: ${e}`);if("object"!=typeof a.contexts||"object"!=typeof a.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const o=a.contexts[""];Object.assign(t,o)}static useLocale(e){const a=e.toLowerCase(),t=w.get(a);if(!t)throw new RangeError(`Locale '${e}' not found`);return v=p[a]||a,S=t,S}static getLocaleName(){return v}static getLocaleNames(){return Array.from(w.keys()).sort(((e,a)=>e.localeCompare(a)))}static ordinal(e,a){const t=(null==a?void 0:a.toLowerCase())||v;if(!t)return this.getEnOrdinal(e);switch(t){case"en":case"s":case"a":case"ashkenazi":case"ashkenazi_litvish":case"ashkenazi_poylish":case"ashkenazi_standard":return this.getEnOrdinal(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e);default:return e+"."}}static getEnOrdinal(e){const a=["th","st","nd","rd"],t=e%100;return e+(a[(t-20)%10]||a[t]||a[0])}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}T.addLocale("en",y),T.addLocale("s",y),T.addLocale("",y),T.useLocale("en"),T.addLocale("ashkenazi",g),T.addLocale("a",g),T.addLocale("he",b),T.addLocale("h",b);const H=b.contexts[""],A={};for(const[e,a]of Object.entries(H))A[e]=[T.hebrewStripNikkud(a[0])];const C={headers:b.headers,contexts:{"":A}};T.addLocale("he-x-NoNikud",C);const I=["elevation","admin1","asciiname","geo","zip","state","stateName","geonameid"],M={"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","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 1st month of the Hebrew year, 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 2nd month of the Hebrew year, 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 3rd month of the Hebrew year, 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 Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, 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 5th month of the Hebrew year, 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 6th month of the Hebrew year, 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 8th month of the Hebrew year, 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 9th month of the Hebrew year, 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 10th month of the Hebrew year, 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 11th month of the Hebrew year, 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 12th month of the Hebrew year, 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 12th month of the Hebrew year, occurs only on leap years, has 30 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 II":'Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes "Adar Bet" or "Adar Sheni", is the 13th month of the Hebrew year, 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"},R={AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CD:"Democratic Republic of the Congo",CF:"Central African Republic",CG:"Republic of the Congo",CH:"Switzerland",CI:"Ivory Coast",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GE:"Georgia",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GQ:"Equatorial Guinea",GR:"Greece",GT:"Guatemala",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MD:"Moldova",ME:"Montenegro",MG:"Madagascar",MK:"Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MP:"Northern Mariana Islands",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PR:"Puerto Rico",PT:"Portugal",PY:"Paraguay",QA:"Qatar",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SK:"Slovakia",SL:"Sierra Leone",SN:"Senegal",SO:"Somalia",SR:"Suriname",ST:"Sao Tome and Principe",SV:"El Salvador",SY:"Syria",SZ:"Swaziland",TC:"Turks and Caicos Islands",TD:"Chad",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TM:"Turkmenistan",TN:"Tunisia",TR:"Turkey",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"British Virgin Islands",VN:"Vietnam",WS:"Samoa",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe"};function k(e){if("object"==typeof e&&null!==e&&"function"==typeof e.getLatitude){const a=e.getCountryCode(),t={title:e.getName(),city:e.getShortName(),tzid:e.getTzid(),latitude:e.getLatitude(),longitude:e.getLongitude(),cc:a,country:R[a]};for(const a of I){const o=e[a];o&&(t[a]=o)}return t}return{geo:"none"}}function D(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}function B(e){const a=e.getDesc();return"Purim"===a||"Erev Purim"===a?["holiday","major"]:e.getCategories()}function E(e,a){let t="Hebcal";const o=a.location,r=null==o?void 0:o.getName();if(a.yahrzeit)t+=" Yahrzeits and Anniversaries";else if(r){const e=r.indexOf(",");t+=" "+(-1==e?r:r.substring(0,e))}else a.il?t+=" Israel":t+=" Diaspora";if("1"==a.subscribe)return t;if(a.year&&(a.isHebrewYear||0==e.length))t+=" "+a.year;else if(e.length){const a=e[0].getDate().greg(),o=e[e.length-1].getDate().greg();if(a.getFullYear()!=o.getFullYear())t+=" "+a.getFullYear()+"-"+o.getFullYear();else if(a.getMonth()==o.getMonth()){t+=" "+new Intl.DateTimeFormat("en-US",{month:"long"}).format(a)+" "+a.getFullYear()}else t+=" "+a.getFullYear()}return t}function N(e,t=!1){const o=(e.getFlags()&a.flags.SHABBAT_MEVARCHIM?M["Shabbat Mevarchim Chodesh"]:M[e.getDesc()]||M[e.basename()]||"").normalize();if(t&&o){const e=o.indexOf(".");if(-1!=e)return o.substring(0,e)}return o}const L=a.flags.DAF_YOMI|a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.NACH_YOMI|a.flags.DAILY_LEARNING|a.flags.HEBREW_DATE|a.flags.YERUSHALMI_YOMI;function P(e,o){var r;const n=e.getFlags();if(n&L||void 0!==e.eventTime)return"";const i=n&a.flags.PARSHA_HASHAVUA?t.getLeyningForParshaHaShavua(e,o):t.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===(r=i.reason)||void 0===r?void 0:r.haftara)&&(s+=" | "+i.reason.haftara))),(null==i?void 0:i.sephardic)&&(s+="\nHaftarah for Sephardim: "+i.sephardic),s}function F(e,t){if(e.getFlags()&a.flags.PARSHA_HASHAVUA)try{const a=P(e,t);if(a)return a}catch(e){}return e.memo||M[e.basename()]}function Y(e,a,t,o,r){const n=new URL(e),i="www.hebcal.com"===n.host;if(i){a&&n.searchParams.set("i","on");const e=n.pathname,i=e.startsWith("/holidays/"),s=e.startsWith("/sedrot/"),h=e.startsWith("/omer/");if(i||s||h)return n.host="hebcal.com",n.pathname=i?"/h/"+e.substring(10):s?"/s/"+e.substring(8):"/o/"+e.substring(6),r&&(r.startsWith("ical-")||r.startsWith("pdf-"))||(t&&n.searchParams.set("us",t),o&&n.searchParams.set("um",o)),r&&n.searchParams.set("uc",r),n.toString()}return(t=i?t:"hebcal.com")&&n.searchParams.set("utm_source",t),o&&n.searchParams.set("utm_medium",o),r&&n.searchParams.set("utm_campaign",r),n.toString()}function G(e){if(void 0!==e.eventTime)return!0;const t=e.getFlags();if(t&a.flags.HEBREW_DATE){return 1!==e.getDate().getDate()}return!!(t&(a.flags.DAILY_LEARNING|a.flags.DAF_YOMI|a.flags.YERUSHALMI_YOMI))||(!!(t&a.flags.MINOR_FAST&&"Yom Kippur Katan"===e.getDesc().substring(0,16))||!!(t&a.flags.SHABBAT_MEVARCHIM))}const $='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"',O={dafyomi:"Daf Yomi",mishnayomi:"Mishna Yomi",nachyomi:"Nach Yomi",yerushalmi:"Yerushalmi Yomi",hebdate:"Hebrew Date",holiday:"Jewish Holidays",mevarchim:"",molad:"",omer:"",parashat:"Torah Reading",roshchodesh:"Jewish Holidays",user:"Personal",zmanim:""};function z(e,t){const o=e.getDate().greg(),r=o.getDate(),n=o.getMonth()+1,i=String(o.getFullYear()).padStart(4,"0"),s=t.euro?`"${r}/${n}/${i}"`:`"${n}/${r}/${i}"`;let h="",l="",d="",c='"true"';const m=Boolean(e.eventTime);let u=G(e)?e.renderBrief(t.locale):e.render(t.locale);if(m){l=h=`"${a.HebrewCalendar.reformatTimeStr(e.eventTimeStr," PM",t)}"`,d=s,c='"false"'}let f="Jewish Holidays";const g=e.getFlags();if(m&&"object"==typeof t.location){const e=t.location.getShortName(),a=e.indexOf(",");f=-1===a?e:e.substring(0,a)}else{const a=O[B(e)[0]];"string"==typeof a&&(f=a)}if(u=u.replace(/,/g,"").replace(/"/g,"''"),t.appendHebrewToSubject){const a=e.renderBrief("he");a&&(u+=` / ${a}`)}let b=e.memo||N(e,!0);b||void 0===e.linkedEvent||(b=e.linkedEvent.render(t.locale));return`"${u}",${s},${h},${d},${l},${c},"${b.replace(/,/g,";").replace(/"/g,"''").replace(/\n/g," / ")}","${m||g&a.flags.CHAG?4:3}","${f}"`}function U(e){return f(e.getDate().greg())}function _(e,r,n=!0){const i=e.eventTime,s=Boolean(i),h=e.getDate(),l=h.greg(),d="object"==typeof r.location?r.location.getTzid():"UTC",c=s?a.Zmanim.formatISOWithTimeZone(d,i):f(l),m=B(e),u=e.getFlags();let g=G(e)?e.renderBrief(r.locale):e.render(r.locale);const b=e.getDesc(),y="Havdalah"===b||"Candle lighting"===b;if(y){g+=": "+a.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",r)}const p={title:g,date:c};s||(p.hdate=h.toString()),p.category=m[0],m.length>1&&(p.subcat=m[1]),"holiday"===m[0]&&u&a.flags.CHAG&&(p.yomtov=!0),g!=b&&(p.title_orig=b);const w=e.renderBrief("he");if(w&&(p.hebrew=a.Locale.hebrewStripNikkud(w)),!y){if(n){const n=r.il,i=u===a.flags.PARSHA_HASHAVUA,s=i?t.getLeyningForParshaHaShavua(e,n):t.getLeyningForHoliday(e,n);if(s){p.leyning=function(e){const a={};e.summary&&(a.torah=e.summary);e.haftara&&(a.haftarah=e.haftara);e.sephardic&&(a.haftarah_sephardic=e.sephardic);e.fullkriyah&&J(a,e.fullkriyah);if(e.reason){for(const t of["7","8","M"])if(e.reason[t]){a["M"==t?"maftir":t]+=" | "+e.reason[t]}e.reason.haftara&&(a.haftarah+=" | "+e.reason.haftara)}return a}(s);const a=h.getFullYear();if(i&&!n&&a>=5745){const a=o.getTriennialForParshaHaShavua(e);a&&(p.leyning.triennial=J({},a.aliyot))}}}const i=e.url();if(i){const e=r.utmSource||"js",a=r.utmMedium||"api",t=r.utmCampaign;p.link=Y(i,Boolean(r.il),e,a,t)}}if(u&a.flags.OMER_COUNT){const a=e;p.omer={count:{he:a.getTodayIs("he"),en:a.getTodayIs("en")},sefira:{he:a.sefira("he"),translit:a.sefira("translit"),en:a.sefira("en")}}}if(u&a.flags.MOLAD){const t=e.molad,o=t.getYear();p.molad={hy:o,hm:a.HDate.getMonthName(t.getMonth(),o),dow:t.getDow(),hour:t.getHour(),minutes:t.getMinutes(),chalakim:t.getChalakim()},delete p.hebrew}if(r.heDateParts&&!s||u&a.flags.HEBREW_DATE){const e=h.getFullYear(),t=h.getMonthName(),o=h.getDate();p.heDateParts={y:a.gematriya(e),m:a.Locale.gettext(t,"he-x-NoNikud"),d:a.gematriya(o)}}const S=e.memo||M[e.basename()];return"string"==typeof S&&0!==S.length?p.memo=S.normalize():void 0!==e.linkedEvent&&(p.memo=e.linkedEvent.render(r.locale)),r.includeEvent&&(p.ev=e),p}function J(e,a){for(const[o,r]of Object.entries(a))if(void 0!==r){e["M"==o?"maftir":o]=t.formatAliyahWithBook(r)}return e}const K={s:"en",a:"en","he-x-NoNikud":"he",h:"he",ah:"en",sh:"en"};function x(e,t){let o=e.render();const r=e.getDate().greg(),n=function(e,a,t,o){if(a){const a=e.eventTime;return a?a.toUTCString():t.toUTCString().replace(/ \S+ GMT$/," 00:00:00 GMT")}return o}(e,t.evPubDate,r,t.lastBuildDate),i=t.location,s=!!i&&i.getIsrael(),h=i?i.getTzid():"UTC",l=t.utmSource||"shabbat1c",d=t.utmMedium||"rss",c=function(e,t,o,r,n,i){let s,h;const l=e.eventTime||e.getDate().greg(),d=a.Zmanim.formatISOWithTimeZone(o,l),c=d.substring(0,d.indexOf("T")),m=`${c.replace(/-/g,"")}-${D(e.getDesc())}`,u=e.url();if(u)s=Y(u,t,n,i).replace(/&/g,"&amp;"),h=`${u}#${m}`;else{const e=`${r}&dt=${c}`,a=Y(e,t,n,i).replace(/&/g,"&amp;");h=e.replace(/&/g,"&amp;")+`#${m}`,s=`${a}#${m}`}return[s,h]}(e,s,h,t.mainUrl||"",l,d),m=c[0],u=c[1],f=B(e)[0],g=e.getDesc();let b;if("Havdalah"===g||"Candle lighting"===g){const t=o.indexOf(": ");if(-1!=t){const r={location:i,il:s,locale:a.Locale.getLocaleName()},n=a.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",r);o=o.substring(0,t)+": "+n}}else b=F(e,s);const y=t.dayFormat,p=b||y.format(r);return`<item>\n<title>${o}</title>\n<link>${m}</link>\n<guid isPermaLink="false">${u}</guid>\n<description>${-1===p.indexOf("<")?p:`<![CDATA[${p}]]>`}</description>\n<category>${f}</category>\n<pubDate>${n}</pubDate>\n${"candles"==f?`<geo:lat>${i.getLatitude()}</geo:lat>\n<geo:long>${i.getLongitude()}</geo:long>\n`:""}</item>\n`}return e.appendIsraelAndTracking=Y,e.countryNames=R,e.eventToClassicApiObject=_,e.eventToCsv=z,e.eventToFullCalendar=function(e,t,o){const r=B(e),n=e.getFlags();"holiday"==r[0]&&n&a.flags.CHAG&&r.push("yomtov");const i=e.eventTime,s=Boolean(i),h={title:G(e)?e.renderBrief():e.render(),start:s?a.Zmanim.formatISOWithTimeZone(t,i):f(e.getDate().greg()),allDay:!s,className:r.join(" ")},l=e.renderBrief("he");l&&(h.hebrew=a.Locale.hebrewStripNikkud(l));const d=e.url();d&&(h.url=Y(d,o,"js","fc"));const c=e.getDesc();if(!("Havdalah"===c||"Candle lighting"===c)){const a=F(e,o);a?h.description=a:void 0!==e.linkedEvent&&(h.description=e.linkedEvent.render())}return h},e.eventToRssItem2=x,e.eventsToClassicApi=function(e,a,t=!0){const o={title:E(e,a),date:(new Date).toISOString()};return o.location=k(a.location),e.length&&(o.range={start:U(e[0]),end:U(e[e.length-1])}),o.items=e.map((e=>_(e,a,t))),o},e.eventsToCsv=function(e,a){return[$].concat(e.map((e=>z(e,a)))).join("\r\n")+"\r\n"},e.eventsToRss2=function(e,a){a.dayFormat=new Intl.DateTimeFormat("en-US",{weekday:"long",day:"2-digit",month:"long",year:"numeric"});const t=a.location;if(!a.mainUrl||!a.selfUrl)throw new TypeError("mainUrl cannot be empty or blank");const o=a.buildDate=a.buildDate||new Date,r=o.getFullYear(),n=a.lastBuildDate=o.toUTCString(),i=a.title||E(e,a),s=a.description||i,h=a.utmSource||"shabbat1c",l=a.utmMedium||"rss";let d=`<?xml version="1.0" encoding="UTF-8"?>\n<rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:atom="http://www.w3.org/2005/Atom">\n<channel>\n<title>${i}</title>\n<link>${Y(a.mainUrl,Boolean(null==t?void 0:t.getIsrael()),h,l,a.utmCampaign).replace(/&/g,"&amp;")}</link>\n<atom:link href="${a.selfUrl.replace(/&/g,"&amp;")}" rel="self" type="application/rss+xml" />\n<description>${s}</description>\n<language>${a.lang||K[a.locale]||a.locale||"en-US"}</language>\n<copyright>Copyright (c) ${r} Michael J. Radwin. All rights reserved.</copyright>\n<lastBuildDate>${n}</lastBuildDate>\n`;for(const t of e)d+=x(t,a);return d+="</channel>\n</rss>\n",d},e.getCalendarTitle=E,e.getDownloadFilename=function(e){let t="hebcal";if(e.year)t+="_"+e.year,e.isHebrewYear&&(t+="h"),e.month&&(t+="_"+e.month);else if("object"==typeof e.start&&"object"==typeof e.end){const o=new a.HDate(e.start),r=new a.HDate(e.end),n=o.greg().getFullYear(),i=r.greg().getFullYear();t+=n===i?"_"+n:"_"+n+"_"+i}if("object"==typeof e.location){const a=e.location,o=a.zip||a.asciiname||a.getShortName();o&&(t+="_"+D(o).replace(/[-]/g,"_"))}return t},e.getEventCategories=B,e.getHolidayDescription=N,e.holidayDescription=M,e.locationToPlainObj=k,e.makeAnchor=D,e.makeMemo=F,e.makeTorahMemoText=P,e.pad2=u,e.pad4=m,e.renderTitleWithoutTime=function(e){return void 0===e.eventTime?e.render():e.renderBrief()},e.shouldRenderBrief=G,e.toISOString=function(e){return f(e)},e}({},hebcal,hebcal__leyning,hebcal__triennial);
/*! @hebcal/rest-api v5.1.1 */
var hebcal__rest_api=function(e,a,t,o){"use strict";const n=[0,31,28,31,30,31,30,31,31,30,31,30,31],r=[n,n.slice()];function i(e,a){return e-a*Math.floor(e/a)}function s(e,a){return Math.floor(e/a)}function h(e){return!(e%4||!(e%100)&&e%400)}function l(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function d(e,a,t){const o=e-1;return 365*o+s(o,4)-s(o,100)+s(o,400)+s(367*a-362,12)+(a<=2?0:h(e)?-1:-2)+t}var c;r[1][2]=29,c||(c={}),c.abs2greg=function(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const a=function(e){const a=e-1,t=s(a,146097),o=i(a,146097),n=s(o,36524),r=i(o,36524),h=s(r,1461),l=s(i(r,1461),365),d=400*t+100*n+4*h+l;return 4!==n&&4!==l?d+1:d}(e=Math.trunc(e)),t=s(12*(e-d(a,1,1)+(e<d(a,3,1)?0:h(a)?1:2))+373,367),o=e-d(a,t,1)+1,n=new Date(a,t-1,o);return a<100&&a>=0&&n.setFullYear(a),n},c.daysInMonth=function(e,a){return r[+h(a)][e]},c.greg2abs=function(e){if(!l(e))throw new TypeError(`Argument not a Date: ${e}`);return d(e.getFullYear(),e.getMonth()+1,e.getDate())},c.isDate=l,c.isLeapYear=h;const m={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},u=new Map,f=new Map;for(const[e,a]of Object.entries(m))u.set(e,a),f.set(a,e);function g(e){return e<0?"-00"+g(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function b(e){return e<10?"0"+e:String(e)}function y(e){return g(e.getFullYear())+"-"+b(e.getMonth()+1)+"-"+b(e.getDate())}var p={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Tevet:["Teves"]}}},w={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"]}}};const S={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},v={h:"he",a:"ashkenazi",s:"en","":"en"},T=new Map;let H,A;class C{static lookupTranslation(e,a){const t=("string"==typeof a&&T.get(a.toLowerCase())||H)[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("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);if("object"!=typeof a.contexts||"object"!=typeof a.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);T.set(e.toLowerCase(),a.contexts[""])}static addTranslation(e,a,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const o=T.get(e.toLowerCase());if(!o)throw new TypeError(`Unknown locale: ${e}`);if("string"!=typeof a||0===a.length)throw new TypeError(`Invalid id: ${a}`);const n=Array.isArray(t);if(n){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: ${t}`);o[a]=n?t:[t]}static addTranslations(e,a){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const t=T.get(e.toLowerCase());if(!t)throw new TypeError(`Unknown locale: ${e}`);if("object"!=typeof a.contexts||"object"!=typeof a.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const o=a.contexts[""];Object.assign(t,o)}static useLocale(e){const a=e.toLowerCase(),t=T.get(a);if(!t)throw new RangeError(`Locale '${e}' not found`);return A=v[a]||a,H=t,H}static getLocaleName(){return A}static getLocaleNames(){return Array.from(T.keys()).sort(((e,a)=>e.localeCompare(a)))}static ordinal(e,a){const t=(null==a?void 0:a.toLowerCase())||A;if(!t)return this.getEnOrdinal(e);switch(t){case"en":case"s":case"a":case"ashkenazi":case"ashkenazi_litvish":case"ashkenazi_poylish":case"ashkenazi_standard":return this.getEnOrdinal(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e);default:return e+"."}}static getEnOrdinal(e){const a=["th","st","nd","rd"],t=e%100;return e+(a[(t-20)%10]||a[t]||a[0])}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}C.addLocale("en",S),C.addLocale("s",S),C.addLocale("",S),C.useLocale("en"),C.addLocale("ashkenazi",p),C.addLocale("a",p),C.addLocale("he",w),C.addLocale("h",w);const I=w.contexts[""],M={};for(const[e,a]of Object.entries(I))M[e]=[C.hebrewStripNikkud(a[0])];const R={headers:w.headers,contexts:{"":M}};C.addLocale("he-x-NoNikud",R);const k=["elevation","admin1","asciiname","geo","zip","state","stateName","geonameid"],D={"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","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 1st month of the Hebrew year, 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 2nd month of the Hebrew year, 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 3rd month of the Hebrew year, 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 Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, 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 5th month of the Hebrew year, 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 6th month of the Hebrew year, 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 8th month of the Hebrew year, 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 9th month of the Hebrew year, 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 10th month of the Hebrew year, 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 11th month of the Hebrew year, 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 12th month of the Hebrew year, 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 12th month of the Hebrew year, occurs only on leap years, has 30 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 II":'Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes "Adar Bet" or "Adar Sheni", is the 13th month of the Hebrew year, 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"},B={AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CD:"Democratic Republic of the Congo",CF:"Central African Republic",CG:"Republic of the Congo",CH:"Switzerland",CI:"Ivory Coast",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GE:"Georgia",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GQ:"Equatorial Guinea",GR:"Greece",GT:"Guatemala",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MD:"Moldova",ME:"Montenegro",MG:"Madagascar",MK:"Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MP:"Northern Mariana Islands",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PR:"Puerto Rico",PT:"Portugal",PY:"Paraguay",QA:"Qatar",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SK:"Slovakia",SL:"Sierra Leone",SN:"Senegal",SO:"Somalia",SR:"Suriname",ST:"Sao Tome and Principe",SV:"El Salvador",SY:"Syria",SZ:"Swaziland",TC:"Turks and Caicos Islands",TD:"Chad",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TM:"Turkmenistan",TN:"Tunisia",TR:"Turkey",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"British Virgin Islands",VN:"Vietnam",WS:"Samoa",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe"};function E(e){if("object"==typeof e&&null!==e&&"function"==typeof e.getLatitude){const a=e.getCountryCode(),t={title:e.getName(),city:e.getShortName(),tzid:e.getTzid(),latitude:e.getLatitude(),longitude:e.getLongitude(),cc:a,country:B[a]};for(const a of k){const o=e[a];o&&(t[a]=o)}return t}return{geo:"none"}}function N(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}function L(e){const a=e.getDesc();return"Purim"===a||"Erev Purim"===a?["holiday","major"]:e.getCategories()}function P(e,a){let t="Hebcal";const o=a.location,n=null==o?void 0:o.getName();if(a.yahrzeit)t+=" Yahrzeits and Anniversaries";else if(n){const e=n.indexOf(",");t+=" "+(-1==e?n:n.substring(0,e))}else a.il?t+=" Israel":t+=" Diaspora";if("1"==a.subscribe)return t;if(a.year&&(a.isHebrewYear||0==e.length))t+=" "+a.year;else if(e.length){const a=e[0].getDate().greg(),o=e[e.length-1].getDate().greg();if(a.getFullYear()!=o.getFullYear())t+=" "+a.getFullYear()+"-"+o.getFullYear();else if(a.getMonth()==o.getMonth()){t+=" "+new Intl.DateTimeFormat("en-US",{month:"long"}).format(a)+" "+a.getFullYear()}else t+=" "+a.getFullYear()}return t}function F(e,t=!1){const o=(e.getFlags()&a.flags.SHABBAT_MEVARCHIM?D["Shabbat Mevarchim Chodesh"]:D[e.getDesc()]||D[e.basename()]||"").normalize();if(t&&o){const e=o.indexOf(".");if(-1!=e)return o.substring(0,e)}return o}const Y=a.flags.DAF_YOMI|a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.NACH_YOMI|a.flags.DAILY_LEARNING|a.flags.HEBREW_DATE|a.flags.YERUSHALMI_YOMI;function G(e,o){var n;const r=e.getFlags();if(r&Y||void 0!==e.eventTime)return"";const i=r&a.flags.PARSHA_HASHAVUA?t.getLeyningForParshaHaShavua(e,o):t.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===(n=i.reason)||void 0===n?void 0:n.haftara)&&(s+=" | "+i.reason.haftara))),(null==i?void 0:i.sephardic)&&(s+="\nHaftarah for Sephardim: "+i.sephardic),s}function $(e,t){if(e.getFlags()&a.flags.PARSHA_HASHAVUA)try{const a=G(e,t);if(a)return a}catch(e){}return e.memo||D[e.basename()]}function O(e,a,t,o,n){const r=new URL(e),i="www.hebcal.com"===r.host;if(i){a&&r.searchParams.set("i","on");const e=r.pathname,i=e.startsWith("/holidays/"),s=e.startsWith("/sedrot/"),h=e.startsWith("/omer/");if(i||s||h)return r.host="hebcal.com",r.pathname=i?"/h/"+e.substring(10):s?"/s/"+e.substring(8):"/o/"+e.substring(6),n&&(n.startsWith("ical-")||n.startsWith("pdf-"))||(t&&r.searchParams.set("us",t),o&&r.searchParams.set("um",o)),n&&r.searchParams.set("uc",n),r.toString()}return(t=i?t:"hebcal.com")&&r.searchParams.set("utm_source",t),o&&r.searchParams.set("utm_medium",o),n&&r.searchParams.set("utm_campaign",n),r.toString()}function z(e){if(void 0!==e.eventTime)return!0;const t=e.getFlags();if(t&a.flags.HEBREW_DATE){return 1!==e.getDate().getDate()}return!!(t&(a.flags.DAILY_LEARNING|a.flags.DAF_YOMI|a.flags.YERUSHALMI_YOMI))||(!!(t&a.flags.MINOR_FAST&&"Yom Kippur Katan"===e.getDesc().substring(0,16))||!!(t&a.flags.SHABBAT_MEVARCHIM))}const U='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"',_={dafyomi:"Daf Yomi",mishnayomi:"Mishna Yomi",nachyomi:"Nach Yomi",yerushalmi:"Yerushalmi Yomi",hebdate:"Hebrew Date",holiday:"Jewish Holidays",mevarchim:"",molad:"",omer:"",parashat:"Torah Reading",roshchodesh:"Jewish Holidays",user:"Personal",zmanim:""};function J(e,t){const o=e.getDate().greg(),n=o.getDate(),r=o.getMonth()+1,i=String(o.getFullYear()).padStart(4,"0"),s=t.euro?`"${n}/${r}/${i}"`:`"${r}/${n}/${i}"`;let h="",l="",d="",c='"true"';const m=Boolean(e.eventTime);let u=z(e)?e.renderBrief(t.locale):e.render(t.locale);if(m){l=h=`"${a.HebrewCalendar.reformatTimeStr(e.eventTimeStr," PM",t)}"`,d=s,c='"false"'}let f="Jewish Holidays";const g=e.getFlags();if(m&&"object"==typeof t.location){const e=t.location.getShortName(),a=e.indexOf(",");f=-1===a?e:e.substring(0,a)}else{const a=_[L(e)[0]];"string"==typeof a&&(f=a)}if(u=u.replace(/,/g,"").replace(/"/g,"''"),t.appendHebrewToSubject){const a=e.renderBrief("he");a&&(u+=` / ${a}`)}let b=e.memo||F(e,!0);b||void 0===e.linkedEvent||(b=e.linkedEvent.render(t.locale));return`"${u}",${s},${h},${d},${l},${c},"${b.replace(/,/g,";").replace(/"/g,"''").replace(/\n/g," / ")}","${m||g&a.flags.CHAG?4:3}","${f}"`}function K(e){return y(e.getDate().greg())}function x(e,n,r=!0){const i=e.eventTime,s=Boolean(i),h=e.getDate(),l=h.greg(),d="object"==typeof n.location?n.location.getTzid():"UTC",c=s?a.Zmanim.formatISOWithTimeZone(d,i):y(l),m=L(e),u=e.getFlags();let f=z(e)?e.renderBrief(n.locale):e.render(n.locale);const g=e.getDesc(),b="Havdalah"===g||"Candle lighting"===g;if(b){f+=": "+a.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",n)}const p={title:f,date:c};s||(p.hdate=h.toString()),p.category=m[0],m.length>1&&(p.subcat=m[1]),"holiday"===m[0]&&u&a.flags.CHAG&&(p.yomtov=!0),f!=g&&(p.title_orig=g);const w=e.renderBrief("he");if(w&&(p.hebrew=a.Locale.hebrewStripNikkud(w)),!b){if(r){const r=n.il,i=u===a.flags.PARSHA_HASHAVUA,s=i?t.getLeyningForParshaHaShavua(e,r):t.getLeyningForHoliday(e,r);if(s){p.leyning=function(e){const a={};e.summary&&(a.torah=e.summary);e.haftara&&(a.haftarah=e.haftara);e.sephardic&&(a.haftarah_sephardic=e.sephardic);e.fullkriyah&&Z(a,e.fullkriyah);e.reason&&function(e,a){for(const t of["7","8","M"])if(a[t]){e["M"==t?"maftir":t]+=" | "+a[t]}a.haftara&&(e.haftarah+=" | "+a.haftara)}(a,e.reason);return a}(s);const a=h.getFullYear();if(i&&a>=5745){const a=o.getTriennialForParshaHaShavua(e,r);(null==a?void 0:a.aliyot)&&(p.leyning.triennial=Z({},a.aliyot))}}}const i=e.url();if(i){const e=n.utmSource||"js",a=n.utmMedium||"api",t=n.utmCampaign;p.link=O(i,Boolean(n.il),e,a,t)}}if(u&a.flags.OMER_COUNT){const a=e;p.omer={count:{he:a.getTodayIs("he"),en:a.getTodayIs("en")},sefira:{he:a.sefira("he"),translit:a.sefira("translit"),en:a.sefira("en")}}}if(u&a.flags.MOLAD){const t=e.molad,o=t.getYear();p.molad={hy:o,hm:a.HDate.getMonthName(t.getMonth(),o),dow:t.getDow(),hour:t.getHour(),minutes:t.getMinutes(),chalakim:t.getChalakim()},delete p.hebrew}if(n.heDateParts&&!s||u&a.flags.HEBREW_DATE){const e=h.getFullYear(),t=h.getMonthName(),o=h.getDate();p.heDateParts={y:a.gematriya(e),m:a.Locale.gettext(t,"he-x-NoNikud"),d:a.gematriya(o)}}const S=e.memo||D[e.basename()];return"string"==typeof S&&0!==S.length?p.memo=S.normalize():void 0!==e.linkedEvent&&(p.memo=e.linkedEvent.render(n.locale)),n.includeEvent&&(p.ev=e),p}function Z(e,a){for(const[o,n]of Object.entries(a))if(void 0!==n){e["M"==o?"maftir":o]=t.formatAliyahWithBook(n)}return e}const W={s:"en",a:"en","he-x-NoNikud":"he",h:"he",ah:"en",sh:"en"};function j(e,t){let o=e.render();const n=e.getDate().greg(),r=function(e,a,t,o){if(a){const a=e.eventTime;return a?a.toUTCString():t.toUTCString().replace(/ \S+ GMT$/," 00:00:00 GMT")}return o}(e,t.evPubDate,n,t.lastBuildDate),i=t.location,s=!!i&&i.getIsrael(),h=i?i.getTzid():"UTC",l=t.utmSource||"shabbat1c",d=t.utmMedium||"rss",c=function(e,t,o,n,r,i){let s,h;const l=e.eventTime||e.getDate().greg(),d=a.Zmanim.formatISOWithTimeZone(o,l),c=d.substring(0,d.indexOf("T")),m=`${c.replace(/-/g,"")}-${N(e.getDesc())}`,u=e.url();if(u)s=O(u,t,r,i).replace(/&/g,"&amp;"),h=`${u}#${m}`;else{const e=`${n}&dt=${c}`,a=O(e,t,r,i).replace(/&/g,"&amp;");h=e.replace(/&/g,"&amp;")+`#${m}`,s=`${a}#${m}`}return[s,h]}(e,s,h,t.mainUrl||"",l,d),m=c[0],u=c[1],f=L(e)[0],g=e.getDesc();let b;if("Havdalah"===g||"Candle lighting"===g){const t=o.indexOf(": ");if(-1!=t){const n={location:i,il:s,locale:a.Locale.getLocaleName()},r=a.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",n);o=o.substring(0,t)+": "+r}}else b=$(e,s);const y=t.dayFormat,p=b||y.format(n);return`<item>\n<title>${o}</title>\n<link>${m}</link>\n<guid isPermaLink="false">${u}</guid>\n<description>${-1===p.indexOf("<")?p:`<![CDATA[${p}]]>`}</description>\n<category>${f}</category>\n<pubDate>${r}</pubDate>\n${"candles"==f?`<geo:lat>${i.getLatitude()}</geo:lat>\n<geo:long>${i.getLongitude()}</geo:long>\n`:""}</item>\n`}return e.appendIsraelAndTracking=O,e.countryNames=B,e.eventToClassicApiObject=x,e.eventToCsv=J,e.eventToFullCalendar=function(e,t,o){const n=L(e),r=e.getFlags();"holiday"==n[0]&&r&a.flags.CHAG&&n.push("yomtov");const i=e.eventTime,s=Boolean(i),h={title:z(e)?e.renderBrief():e.render(),start:s?a.Zmanim.formatISOWithTimeZone(t,i):y(e.getDate().greg()),allDay:!s,className:n.join(" ")},l=e.renderBrief("he");l&&(h.hebrew=a.Locale.hebrewStripNikkud(l));const d=e.url();d&&(h.url=O(d,o,"js","fc"));const c=e.getDesc();if(!("Havdalah"===c||"Candle lighting"===c)){const a=$(e,o);a?h.description=a:void 0!==e.linkedEvent&&(h.description=e.linkedEvent.render())}return h},e.eventToRssItem2=j,e.eventsToClassicApi=function(e,a,t=!0){const o={title:P(e,a),date:(new Date).toISOString()};return o.location=E(a.location),e.length&&(o.range={start:K(e[0]),end:K(e[e.length-1])}),o.items=e.map((e=>x(e,a,t))),o},e.eventsToCsv=function(e,a){return[U].concat(e.map((e=>J(e,a)))).join("\r\n")+"\r\n"},e.eventsToRss2=function(e,a){a.dayFormat=new Intl.DateTimeFormat("en-US",{weekday:"long",day:"2-digit",month:"long",year:"numeric"});const t=a.location;if(!a.mainUrl||!a.selfUrl)throw new TypeError("mainUrl cannot be empty or blank");const o=a.buildDate=a.buildDate||new Date,n=o.getFullYear(),r=a.lastBuildDate=o.toUTCString(),i=a.title||P(e,a),s=a.description||i,h=a.utmSource||"shabbat1c",l=a.utmMedium||"rss";let d=`<?xml version="1.0" encoding="UTF-8"?>\n<rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:atom="http://www.w3.org/2005/Atom">\n<channel>\n<title>${i}</title>\n<link>${O(a.mainUrl,Boolean(null==t?void 0:t.getIsrael()),h,l,a.utmCampaign).replace(/&/g,"&amp;")}</link>\n<atom:link href="${a.selfUrl.replace(/&/g,"&amp;")}" rel="self" type="application/rss+xml" />\n<description>${s}</description>\n<language>${a.lang||W[a.locale]||a.locale||"en-US"}</language>\n<copyright>Copyright (c) ${n} Michael J. Radwin. All rights reserved.</copyright>\n<lastBuildDate>${r}</lastBuildDate>\n`;for(const t of e)d+=j(t,a);return d+="</channel>\n</rss>\n",d},e.getCalendarTitle=P,e.getDownloadFilename=function(e){let t="hebcal";if(e.year)t+="_"+e.year,e.isHebrewYear&&(t+="h"),e.month&&(t+="_"+e.month);else if("object"==typeof e.start&&"object"==typeof e.end){const o=new a.HDate(e.start),n=new a.HDate(e.end),r=o.greg().getFullYear(),i=n.greg().getFullYear();t+=r===i?"_"+r:"_"+r+"_"+i}if("object"==typeof e.location){const a=e.location,o=a.zip||a.asciiname||a.getShortName();o&&(t+="_"+N(o).replace(/[-]/g,"_"))}return t},e.getEventCategories=L,e.getHolidayDescription=F,e.holidayDescription=D,e.locationToPlainObj=E,e.makeAnchor=N,e.makeMemo=$,e.makeTorahMemoText=G,e.pad2=b,e.pad4=g,e.renderTitleWithoutTime=function(e){return void 0===e.eventTime?e.render():e.renderBrief()},e.shouldRenderBrief=z,e.toISOString=function(e){return y(e)},e}({},hebcal,hebcal__leyning,hebcal__triennial);

@@ -1,2 +0,2 @@

/*! @hebcal/rest-api v5.1.0 */
/*! @hebcal/rest-api v5.1.1 */
var hebcalFullCalendar = (function (exports, core, leyning) {

@@ -43,103 +43,102 @@ 'use strict';

*/
/*
* Formerly in namespace, now top-level
*/
/**
* Gregorian date helper functions.
* Returns true if the Gregorian year is a leap year
* @param year Gregorian year
*/
var greg;
(function (greg) {
/**
* Returns true if the Gregorian year is a leap year
* @param {number} year Gregorian year
* @return {boolean}
*/
function isLeapYear(year) {
return !(year % 4) && (!!(year % 100) || !(year % 400));
function isGregLeapYear(year) {
return !(year % 4) && (!!(year % 100) || !(year % 400));
}
/**
* Number of days in the Gregorian month for given year
* @param month Gregorian month (1=January, 12=December)
* @param year Gregorian year
*/
function daysInGregMonth(month, year) {
// 1 based months
return monthLengths[+isGregLeapYear(year)][month];
}
/**
* Returns true if the object is a Javascript Date
*/
function isDate(obj) {
// eslint-disable-next-line no-prototype-builtins
return typeof obj === 'object' && Date.prototype.isPrototypeOf(obj);
}
/**
* @private
* @param year
* @param month (1-12)
* @param day (1-31)
*/
function toFixed(year, month, day) {
const py = year - 1;
return (365 * py +
quotient(py, 4) -
quotient(py, 100) +
quotient(py, 400) +
quotient(367 * month - 362, 12) +
(month <= 2 ? 0 : isGregLeapYear(year) ? -1 : -2) +
day);
}
/**
* Converts Gregorian date to absolute R.D. (Rata Die) days
* @param date Gregorian date
*/
function greg2abs(date) {
if (!isDate(date)) {
throw new TypeError(`Argument not a Date: ${date}`);
}
greg.isLeapYear = isLeapYear;
/**
* Number of days in the Gregorian month for given year
* @param {number} month Gregorian month (1=January, 12=December)
* @param {number} year Gregorian year
* @return {number}
*/
function daysInMonth(month, year) {
// 1 based months
return monthLengths[+isLeapYear(year)][month];
const abs = toFixed(date.getFullYear(), date.getMonth() + 1, date.getDate());
/*
if (abs < ABS_14SEP1752 && abs > ABS_2SEP1752) {
throw new RangeError(`Invalid Date: ${date}`);
}
*/
return abs;
}
/**
* Converts from Rata Die (R.D. number) to Gregorian date.
* See the footnote on page 384 of ``Calendrical Calculations, Part II:
* Three Historical Calendars'' by E. M. Reingold, N. Dershowitz, and S. M.
* Clamen, Software--Practice and Experience, Volume 23, Number 4
* (April, 1993), pages 383-404 for an explanation.
* @param abs - R.D. number of days
*/
function abs2greg(abs) {
if (typeof abs !== 'number') {
throw new TypeError(`Argument not a Number: ${abs}`);
}
greg.daysInMonth = daysInMonth;
/**
* Returns true if the object is a Javascript Date
* @param {Object} obj
* @return {boolean}
*/
function isDate(obj) {
// eslint-disable-next-line no-prototype-builtins
return typeof obj === 'object' && Date.prototype.isPrototypeOf(obj);
abs = Math.trunc(abs);
/*
if (abs < ABS_14SEP1752 && abs > ABS_2SEP1752) {
throw new RangeError(`Invalid Date: ${abs}`);
}
*/
const year = yearFromFixed(abs);
const priorDays = abs - toFixed(year, 1, 1);
const correction = abs < toFixed(year, 3, 1) ? 0 : isGregLeapYear(year) ? 1 : 2;
const month = quotient(12 * (priorDays + correction) + 373, 367);
const day = abs - toFixed(year, month, 1) + 1;
const dt = new Date(year, month - 1, day);
if (year < 100 && year >= 0) {
dt.setFullYear(year);
}
greg.isDate = isDate;
/**
* @private
* @param year
* @param month (1-12)
* @param day (1-31)
*/
function toFixed(year, month, day) {
const py = year - 1;
return (365 * py +
quotient(py, 4) -
quotient(py, 100) +
quotient(py, 400) +
quotient(367 * month - 362, 12) +
(month <= 2 ? 0 : isLeapYear(year) ? -1 : -2) +
day);
}
/**
* Converts Gregorian date to absolute R.D. (Rata Die) days
* @param {Date} date Gregorian date
* @return {number}
*/
function greg2abs(date) {
if (!isDate(date)) {
throw new TypeError(`Argument not a Date: ${date}`);
}
const abs = toFixed(date.getFullYear(), date.getMonth() + 1, date.getDate());
/*
if (abs < ABS_14SEP1752 && abs > ABS_2SEP1752) {
throw new RangeError(`Invalid Date: ${date}`);
}
*/
return abs;
}
greg.greg2abs = greg2abs;
/**
* Converts from Rata Die (R.D. number) to Gregorian date.
* See the footnote on page 384 of ``Calendrical Calculations, Part II:
* Three Historical Calendars'' by E. M. Reingold, N. Dershowitz, and S. M.
* Clamen, Software--Practice and Experience, Volume 23, Number 4
* (April, 1993), pages 383-404 for an explanation.
* @param {number} abs - R.D. number of days
* @return {Date}
*/
function abs2greg(abs) {
if (typeof abs !== 'number') {
throw new TypeError(`Argument not a Number: ${abs}`);
}
abs = Math.trunc(abs);
/*
if (abs < ABS_14SEP1752 && abs > ABS_2SEP1752) {
throw new RangeError(`Invalid Date: ${abs}`);
}
*/
const year = yearFromFixed(abs);
const priorDays = abs - toFixed(year, 1, 1);
const correction = abs < toFixed(year, 3, 1) ? 0 : isLeapYear(year) ? 1 : 2;
const month = quotient(12 * (priorDays + correction) + 373, 367);
const day = abs - toFixed(year, month, 1) + 1;
const dt = new Date(year, month - 1, day);
if (year < 100 && year >= 0) {
dt.setFullYear(year);
}
return dt;
}
greg.abs2greg = abs2greg;
return dt;
}
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-namespace */
/**
* Gregorian date helper functions
*/
var greg;
(function (greg) {
})(greg || (greg = {}));
greg.abs2greg = abs2greg;
greg.daysInMonth = daysInGregMonth;
greg.greg2abs = greg2abs;
greg.isDate = isDate;
greg.isLeapYear = isGregLeapYear;

@@ -182,4 +181,2 @@ const alefbet = {

* negative year numbers (e.g. `-37` is formatted as `-000037`).
* @param {number} number
* @return {string}
*/

@@ -204,4 +201,2 @@ function pad4(number) {

* Similar to `string.padStart(2, '0')`.
* @param {number} number
* @return {string}
*/

@@ -216,5 +211,2 @@ function pad2(number) {

* Returns YYYY-MM-DD in the local timezone
* @private
* @param {Date} dt
* @return {string}
*/

@@ -238,5 +230,5 @@ function isoDateString(dt) {

const alias = {
'h': 'he',
'a': 'ashkenazi',
's': 'en',
h: 'he',
a: 'ashkenazi',
s: 'en',
'': 'en',

@@ -262,8 +254,8 @@ };

* Otherwise, returns `undefined`.
* @param {string} id Message ID to translate
* @param {string} [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
* @return {string}
* @param id Message ID to translate
* @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
*/
static lookupTranslation(id, locale) {
const loc = (typeof locale === 'string' && locales.get(locale.toLowerCase())) || activeLocale;
const loc = (typeof locale === 'string' && locales.get(locale.toLowerCase())) ||
activeLocale;
const array = loc[id];

@@ -277,5 +269,4 @@ if ((array === null || array === void 0 ? void 0 : array.length) && array[0].length) {

* By default, if no translation was found, returns `id`.
* @param {string} id Message ID to translate
* @param {string} [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
* @return {string}
* @param id Message ID to translate
* @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
*/

@@ -291,4 +282,4 @@ static gettext(id, locale) {

* Register locale translations.
* @param {string} locale Locale name (i.e.: `'he'`, `'fr'`)
* @param {LocaleData} data parsed data from a `.po` file.
* @param locale Locale name (i.e.: `'he'`, `'fr'`)
* @param data parsed data from a `.po` file.
*/

@@ -299,3 +290,4 @@ static addLocale(locale, data) {

}
if (typeof data.contexts !== 'object' || typeof data.contexts[''] !== 'object') {
if (typeof data.contexts !== 'object' ||
typeof data.contexts[''] !== 'object') {
throw new TypeError(`Locale '${locale}' invalid compact format`);

@@ -307,5 +299,5 @@ }

* Adds a translation to `locale`, replacing any previous translation.
* @param {string} locale Locale name (i.e: `'he'`, `'fr'`).
* @param {string} id Message ID to translate
* @param {string | string[]} translation Translation text
* @param locale Locale name (i.e: `'he'`, `'fr'`).
* @param id Message ID to translate
* @param translation Translation text
*/

@@ -337,4 +329,4 @@ static addTranslation(locale, id, translation) {

* Adds multiple translations to `locale`, replacing any previous translations.
* @param {string} locale Locale name (i.e: `'he'`, `'fr'`).
* @param {LocaleData} data parsed data from a `.po` file.
* @param locale Locale name (i.e: `'he'`, `'fr'`).
* @param data parsed data from a `.po` file.
*/

@@ -349,3 +341,4 @@ static addTranslations(locale, data) {

}
if (typeof data.contexts !== 'object' || typeof data.contexts[''] !== 'object') {
if (typeof data.contexts !== 'object' ||
typeof data.contexts[''] !== 'object') {
throw new TypeError(`Locale '${locale}' invalid compact format`);

@@ -360,3 +353,3 @@ }

* will be represented by the corresponding translation in the specified locale.
* @param {string} locale Locale name (i.e: `'he'`, `'fr'`)
* @param locale Locale name (i.e: `'he'`, `'fr'`)
*/

@@ -375,3 +368,2 @@ static useLocale(locale) {

* Returns the name of the active locale (i.e. 'he', 'ashkenazi', 'fr')
* @return {string}
*/

@@ -383,3 +375,2 @@ static getLocaleName() {

* Returns the names of registered locales
* @return {string[]}
*/

@@ -391,5 +382,4 @@ static getLocaleNames() {

/**
* @param {number} n
* @param {string} [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
* @return {string}
* Renders a number in ordinal, such as 1st, 2nd or 3rd
* @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
*/

@@ -421,7 +411,2 @@ static ordinal(n, locale) {

}
/**
* @private
* @param {number} n
* @return {string}
*/
static getEnOrdinal(n) {

@@ -434,4 +419,2 @@ const s = ['th', 'st', 'nd', 'rd'];

* Removes nekudot from Hebrew string
* @param {string} str
* @return {string}
*/

@@ -438,0 +421,0 @@ static hebrewStripNikkud(str) {

@@ -1,2 +0,2 @@

/*! @hebcal/rest-api v5.1.0 */
var hebcalFullCalendar=function(e,a,o){"use strict";const t=[0,31,28,31,30,31,30,31,31,30,31,30,31],r=[t,t.slice()];function n(e,a){return e-a*Math.floor(e/a)}function h(e,a){return Math.floor(e/a)}var s;r[1][2]=29,function(e){function a(e){return!(e%4||!(e%100)&&e%400)}function o(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function t(e,o,t){const r=e-1;return 365*r+h(r,4)-h(r,100)+h(r,400)+h(367*o-362,12)+(o<=2?0:a(e)?-1:-2)+t}e.isLeapYear=a,e.daysInMonth=function(e,o){return r[+a(o)][e]},e.isDate=o,e.greg2abs=function(e){if(!o(e))throw new TypeError(`Argument not a Date: ${e}`);return t(e.getFullYear(),e.getMonth()+1,e.getDate())},e.abs2greg=function(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const o=function(e){const a=e-1,o=h(a,146097),t=n(a,146097),r=h(t,36524),s=n(t,36524),i=h(s,1461),l=h(n(s,1461),365),d=400*o+100*r+4*i+l;return 4!==r&&4!==l?d+1:d}(e=Math.trunc(e)),r=h(12*(e-t(o,1,1)+(e<t(o,3,1)?0:a(o)?1:2))+373,367),s=e-t(o,r,1)+1,i=new Date(o,r-1,s);return o<100&&o>=0&&i.setFullYear(o),i}}(s||(s={}));const i={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},l=new Map,d=new Map;for(const[e,a]of Object.entries(i))l.set(e,a),d.set(a,e);function c(e){return e<0?"-00"+c(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function f(e){return e<10?"0"+e:String(e)}function m(e){return c(e.getFullYear())+"-"+f(e.getMonth()+1)+"-"+f(e.getDate())}var b={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Tevet:["Teves"]}}},u={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"]}}};const y={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},g={h:"he",a:"ashkenazi",s:"en","":"en"},w=new Map;let p,v;class H{static lookupTranslation(e,a){const o=("string"==typeof a&&w.get(a.toLowerCase())||p)[e];if((null==o?void 0:o.length)&&o[0].length)return o[0]}static gettext(e,a){const o=this.lookupTranslation(e,a);return void 0===o?e:o}static addLocale(e,a){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);if("object"!=typeof a.contexts||"object"!=typeof a.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);w.set(e.toLowerCase(),a.contexts[""])}static addTranslation(e,a,o){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const t=w.get(e.toLowerCase());if(!t)throw new TypeError(`Unknown locale: ${e}`);if("string"!=typeof a||0===a.length)throw new TypeError(`Invalid id: ${a}`);const r=Array.isArray(o);if(r){const e=o[0];if("string"!=typeof e||0===e.length)throw new TypeError(`Invalid translation array: ${o}`)}else if("string"!=typeof o)throw new TypeError(`Invalid translation: ${o}`);t[a]=r?o:[o]}static addTranslations(e,a){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const o=w.get(e.toLowerCase());if(!o)throw new TypeError(`Unknown locale: ${e}`);if("object"!=typeof a.contexts||"object"!=typeof a.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const t=a.contexts[""];Object.assign(o,t)}static useLocale(e){const a=e.toLowerCase(),o=w.get(a);if(!o)throw new RangeError(`Locale '${e}' not found`);return v=g[a]||a,p=o,p}static getLocaleName(){return v}static getLocaleNames(){return Array.from(w.keys()).sort(((e,a)=>e.localeCompare(a)))}static ordinal(e,a){const o=(null==a?void 0:a.toLowerCase())||v;if(!o)return this.getEnOrdinal(e);switch(o){case"en":case"s":case"a":case"ashkenazi":case"ashkenazi_litvish":case"ashkenazi_poylish":case"ashkenazi_standard":return this.getEnOrdinal(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e);default:return e+"."}}static getEnOrdinal(e){const a=["th","st","nd","rd"],o=e%100;return e+(a[(o-20)%10]||a[o]||a[0])}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}H.addLocale("en",y),H.addLocale("s",y),H.addLocale("",y),H.useLocale("en"),H.addLocale("ashkenazi",b),H.addLocale("a",b),H.addLocale("he",u),H.addLocale("h",u);const S=u.contexts[""],A={};for(const[e,a]of Object.entries(S))A[e]=[H.hebrewStripNikkud(a[0])];const T={headers:u.headers,contexts:{"":A}};H.addLocale("he-x-NoNikud",T);const C={"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","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 1st month of the Hebrew year, 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 2nd month of the Hebrew year, 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 3rd month of the Hebrew year, 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 Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, 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 5th month of the Hebrew year, 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 6th month of the Hebrew year, 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 8th month of the Hebrew year, 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 9th month of the Hebrew year, 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 10th month of the Hebrew year, 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 11th month of the Hebrew year, 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 12th month of the Hebrew year, 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 12th month of the Hebrew year, occurs only on leap years, has 30 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 II":'Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes "Adar Bet" or "Adar Sheni", is the 13th month of the Hebrew year, 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 R=a.flags.DAF_YOMI|a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.NACH_YOMI|a.flags.DAILY_LEARNING|a.flags.HEBREW_DATE|a.flags.YERUSHALMI_YOMI;function I(e,t){if(e.getFlags()&a.flags.PARSHA_HASHAVUA)try{const r=function(e,t){var r;const n=e.getFlags();if(n&R||void 0!==e.eventTime)return"";const h=n&a.flags.PARSHA_HASHAVUA?o.getLeyningForParshaHaShavua(e,t):o.getLeyningForHoliday(e,t);let s="";return h&&(h.summary||h.haftara)&&(h.summary&&(s+=`Torah: ${h.summary}`),h.summary&&h.haftara&&(s+="\n"),h.haftara&&(s+="Haftarah: "+h.haftara,(null===(r=h.reason)||void 0===r?void 0:r.haftara)&&(s+=" | "+h.reason.haftara))),(null==h?void 0:h.sephardic)&&(s+="\nHaftarah for Sephardim: "+h.sephardic),s}(e,t);if(r)return r}catch(e){}return e.memo||C[e.basename()]}return e.eventToFullCalendar=function(e,o,t){const r=function(e){const a=e.getDesc();return"Purim"===a||"Erev Purim"===a?["holiday","major"]:e.getCategories()}(e),n=e.getFlags();"holiday"==r[0]&&n&a.flags.CHAG&&r.push("yomtov");const h=e.eventTime,s=Boolean(h),i={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():e.render(),start:s?a.Zmanim.formatISOWithTimeZone(o,h):m(e.getDate().greg()),allDay:!s,className:r.join(" ")},l=e.renderBrief("he");l&&(i.hebrew=a.Locale.hebrewStripNikkud(l));const d=e.url();d&&(i.url=function(e,a,o,t,r){const n=new URL(e),h="www.hebcal.com"===n.host;if(h){a&&n.searchParams.set("i","on");const e=n.pathname,r=e.startsWith("/holidays/"),h=e.startsWith("/sedrot/"),s=e.startsWith("/omer/");if(r||h||s)return n.host="hebcal.com",n.pathname=r?"/h/"+e.substring(10):h?"/s/"+e.substring(8):"/o/"+e.substring(6),o&&n.searchParams.set("us",o),n.searchParams.set("um",t),n.toString()}return(o=h?o:"hebcal.com")&&n.searchParams.set("utm_source",o),n.searchParams.set("utm_medium",t),n.toString()}(d,t,"js","fc"));const c=e.getDesc();if(!("Havdalah"===c||"Candle lighting"===c)){const a=I(e,t);a?i.description=a:void 0!==e.linkedEvent&&(i.description=e.linkedEvent.render())}return i},e}({},hebcal,hebcal__leyning);
/*! @hebcal/rest-api v5.1.1 */
var hebcalFullCalendar=function(e,a,o){"use strict";const t=[0,31,28,31,30,31,30,31,31,30,31,30,31],r=[t,t.slice()];function n(e,a){return e-a*Math.floor(e/a)}function h(e,a){return Math.floor(e/a)}function s(e){return!(e%4||!(e%100)&&e%400)}function i(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function l(e,a,o){const t=e-1;return 365*t+h(t,4)-h(t,100)+h(t,400)+h(367*a-362,12)+(a<=2?0:s(e)?-1:-2)+o}var d;r[1][2]=29,d||(d={}),d.abs2greg=function(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const a=function(e){const a=e-1,o=h(a,146097),t=n(a,146097),r=h(t,36524),s=n(t,36524),i=h(s,1461),l=h(n(s,1461),365),d=400*o+100*r+4*i+l;return 4!==r&&4!==l?d+1:d}(e=Math.trunc(e)),o=h(12*(e-l(a,1,1)+(e<l(a,3,1)?0:s(a)?1:2))+373,367),t=e-l(a,o,1)+1,r=new Date(a,o-1,t);return a<100&&a>=0&&r.setFullYear(a),r},d.daysInMonth=function(e,a){return r[+s(a)][e]},d.greg2abs=function(e){if(!i(e))throw new TypeError(`Argument not a Date: ${e}`);return l(e.getFullYear(),e.getMonth()+1,e.getDate())},d.isDate=i,d.isLeapYear=s;const c={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},m=new Map,f=new Map;for(const[e,a]of Object.entries(c))m.set(e,a),f.set(a,e);function b(e){return e<0?"-00"+b(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function u(e){return e<10?"0"+e:String(e)}function y(e){return b(e.getFullYear())+"-"+u(e.getMonth()+1)+"-"+u(e.getDate())}var g={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Tevet:["Teves"]}}},w={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"]}}};const p={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},v={h:"he",a:"ashkenazi",s:"en","":"en"},H=new Map;let S,A;class T{static lookupTranslation(e,a){const o=("string"==typeof a&&H.get(a.toLowerCase())||S)[e];if((null==o?void 0:o.length)&&o[0].length)return o[0]}static gettext(e,a){const o=this.lookupTranslation(e,a);return void 0===o?e:o}static addLocale(e,a){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);if("object"!=typeof a.contexts||"object"!=typeof a.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);H.set(e.toLowerCase(),a.contexts[""])}static addTranslation(e,a,o){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const t=H.get(e.toLowerCase());if(!t)throw new TypeError(`Unknown locale: ${e}`);if("string"!=typeof a||0===a.length)throw new TypeError(`Invalid id: ${a}`);const r=Array.isArray(o);if(r){const e=o[0];if("string"!=typeof e||0===e.length)throw new TypeError(`Invalid translation array: ${o}`)}else if("string"!=typeof o)throw new TypeError(`Invalid translation: ${o}`);t[a]=r?o:[o]}static addTranslations(e,a){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const o=H.get(e.toLowerCase());if(!o)throw new TypeError(`Unknown locale: ${e}`);if("object"!=typeof a.contexts||"object"!=typeof a.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const t=a.contexts[""];Object.assign(o,t)}static useLocale(e){const a=e.toLowerCase(),o=H.get(a);if(!o)throw new RangeError(`Locale '${e}' not found`);return A=v[a]||a,S=o,S}static getLocaleName(){return A}static getLocaleNames(){return Array.from(H.keys()).sort(((e,a)=>e.localeCompare(a)))}static ordinal(e,a){const o=(null==a?void 0:a.toLowerCase())||A;if(!o)return this.getEnOrdinal(e);switch(o){case"en":case"s":case"a":case"ashkenazi":case"ashkenazi_litvish":case"ashkenazi_poylish":case"ashkenazi_standard":return this.getEnOrdinal(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e);default:return e+"."}}static getEnOrdinal(e){const a=["th","st","nd","rd"],o=e%100;return e+(a[(o-20)%10]||a[o]||a[0])}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}T.addLocale("en",p),T.addLocale("s",p),T.addLocale("",p),T.useLocale("en"),T.addLocale("ashkenazi",g),T.addLocale("a",g),T.addLocale("he",w),T.addLocale("h",w);const C=w.contexts[""],R={};for(const[e,a]of Object.entries(C))R[e]=[T.hebrewStripNikkud(a[0])];const I={headers:w.headers,contexts:{"":R}};T.addLocale("he-x-NoNikud",I);const k={"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","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 1st month of the Hebrew year, 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 2nd month of the Hebrew year, 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 3rd month of the Hebrew year, 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 Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, 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 5th month of the Hebrew year, 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 6th month of the Hebrew year, 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 8th month of the Hebrew year, 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 9th month of the Hebrew year, 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 10th month of the Hebrew year, 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 11th month of the Hebrew year, 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 12th month of the Hebrew year, 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 12th month of the Hebrew year, occurs only on leap years, has 30 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 II":'Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes "Adar Bet" or "Adar Sheni", is the 13th month of the Hebrew year, 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 M=a.flags.DAF_YOMI|a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.NACH_YOMI|a.flags.DAILY_LEARNING|a.flags.HEBREW_DATE|a.flags.YERUSHALMI_YOMI;function E(e,t){if(e.getFlags()&a.flags.PARSHA_HASHAVUA)try{const r=function(e,t){var r;const n=e.getFlags();if(n&M||void 0!==e.eventTime)return"";const h=n&a.flags.PARSHA_HASHAVUA?o.getLeyningForParshaHaShavua(e,t):o.getLeyningForHoliday(e,t);let s="";return h&&(h.summary||h.haftara)&&(h.summary&&(s+=`Torah: ${h.summary}`),h.summary&&h.haftara&&(s+="\n"),h.haftara&&(s+="Haftarah: "+h.haftara,(null===(r=h.reason)||void 0===r?void 0:r.haftara)&&(s+=" | "+h.reason.haftara))),(null==h?void 0:h.sephardic)&&(s+="\nHaftarah for Sephardim: "+h.sephardic),s}(e,t);if(r)return r}catch(e){}return e.memo||k[e.basename()]}return e.eventToFullCalendar=function(e,o,t){const r=function(e){const a=e.getDesc();return"Purim"===a||"Erev Purim"===a?["holiday","major"]:e.getCategories()}(e),n=e.getFlags();"holiday"==r[0]&&n&a.flags.CHAG&&r.push("yomtov");const h=e.eventTime,s=Boolean(h),i={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():e.render(),start:s?a.Zmanim.formatISOWithTimeZone(o,h):y(e.getDate().greg()),allDay:!s,className:r.join(" ")},l=e.renderBrief("he");l&&(i.hebrew=a.Locale.hebrewStripNikkud(l));const d=e.url();d&&(i.url=function(e,a,o,t,r){const n=new URL(e),h="www.hebcal.com"===n.host;if(h){a&&n.searchParams.set("i","on");const e=n.pathname,r=e.startsWith("/holidays/"),h=e.startsWith("/sedrot/"),s=e.startsWith("/omer/");if(r||h||s)return n.host="hebcal.com",n.pathname=r?"/h/"+e.substring(10):h?"/s/"+e.substring(8):"/o/"+e.substring(6),o&&n.searchParams.set("us",o),n.searchParams.set("um",t),n.toString()}return(o=h?o:"hebcal.com")&&n.searchParams.set("utm_source",o),n.searchParams.set("utm_medium",t),n.toString()}(d,t,"js","fc"));const c=e.getDesc();if(!("Havdalah"===c||"Candle lighting"===c)){const a=E(e,t);a?i.description=a:void 0!==e.linkedEvent&&(i.description=e.linkedEvent.render())}return i},e}({},hebcal,hebcal__leyning);
{
"name": "@hebcal/rest-api",
"version": "5.1.0",
"version": "5.1.1",
"author": "Michael J. Radwin (https://github.com/mjradwin)",

@@ -32,5 +32,5 @@ "keywords": [

"dependencies": {
"@hebcal/core": "^5.4.5",
"@hebcal/leyning": "^8.1.9",
"@hebcal/triennial": "^5.0.5"
"@hebcal/core": "^5.4.9",
"@hebcal/leyning": "^8.2.2",
"@hebcal/triennial": "^5.1.1"
},

@@ -43,3 +43,3 @@ "scripts": {

"pretest": "npm run build",
"readme": "npx jsdoc2md dist/index.js",
"docs": "typedoc",
"test": "jest"

@@ -51,3 +51,3 @@ },

"@babel/preset-typescript": "^7.24.7",
"@hebcal/learning": "^5.0.8",
"@hebcal/learning": "^5.1.1",
"@rollup/plugin-commonjs": "^26.0.1",

@@ -61,8 +61,7 @@ "@rollup/plugin-json": "^6.1.0",

"jest": "^29.7.0",
"jsdoc": "^4.0.3",
"jsdoc-to-markdown": "^8.0.1",
"rollup": "^4.18.0",
"ts-jest": "^29.1.5",
"rollup": "^4.18.1",
"ts-jest": "^29.2.0",
"typedoc": "^0.26.3",
"typescript": "^5.5.3"
}
}

@@ -32,333 +32,2 @@ # @hebcal/rest-api

## Functions
<dl>
<dt><a href="#locationToPlainObj">locationToPlainObj(location)</a> ⇒ <code><a href="#LocationPlainObj">LocationPlainObj</a></code></dt>
<dd><p>Converts a @hebcal/core <code>Location</code> to a plain JS object.</p>
</dd>
<dt><a href="#makeAnchor">makeAnchor(s)</a> ⇒ <code>string</code></dt>
<dd><p>Helper function to transform a string to make it more usable in a URL or filename.
Converts to lowercase and replaces non-word characters with hyphen (&#39;-&#39;).</p>
</dd>
<dt><a href="#getDownloadFilename">getDownloadFilename(options)</a> ⇒ <code>string</code></dt>
<dd></dd>
<dt><a href="#pad2">pad2(number)</a> ⇒ <code>string</code></dt>
<dd></dd>
<dt><a href="#pad4">pad4(number)</a> ⇒ <code>string</code></dt>
<dd></dd>
<dt><a href="#toISOString">toISOString(d)</a> ⇒ <code>string</code></dt>
<dd><p>Returns just the date portion as YYYY-MM-DD</p>
</dd>
<dt><a href="#getEventCategories">getEventCategories(ev)</a> ⇒ <code>Array.&lt;string&gt;</code></dt>
<dd><p>Returns a category and subcategory name</p>
</dd>
<dt><a href="#renderTitleWithoutTime">renderTitleWithoutTime(ev)</a> ⇒ <code>string</code></dt>
<dd><p>Renders the event title in default locale, but strips off time</p>
</dd>
<dt><a href="#getCalendarTitle">getCalendarTitle(events, options)</a> ⇒ <code>string</code></dt>
<dd><p>Generates a title like &quot;Hebcal 2020 Israel&quot; or &quot;Hebcal May 1993 Providence&quot;</p>
</dd>
<dt><a href="#getHolidayDescription">getHolidayDescription(ev, [firstSentence])</a> ⇒ <code>string</code></dt>
<dd><p>Returns an English language description of the holiday</p>
</dd>
<dt><a href="#makeTorahMemoText">makeTorahMemoText(ev, il)</a> ⇒ <code>string</code></dt>
<dd><p>Makes mulit-line text that summarizes Torah &amp; Haftarah</p>
</dd>
<dt><a href="#appendIsraelAndTracking">appendIsraelAndTracking(url, il, utmSource, utmMedium, utmCampaign)</a> ⇒ <code>string</code></dt>
<dd><p>Appends utm_source and utm_medium parameters to a URL</p>
</dd>
<dt><a href="#eventToCsv">eventToCsv(e, options)</a> ⇒ <code>string</code></dt>
<dd><p>Renders an Event as a string</p>
</dd>
<dt><a href="#eventsToCsv">eventsToCsv(events, options)</a> ⇒ <code>string</code></dt>
<dd></dd>
<dt><a href="#eventsToClassicApi">eventsToClassicApi(events, options, [leyning])</a> ⇒ <code>Object</code></dt>
<dd><p>Formats a list events for the classic Hebcal.com JSON API response</p>
</dd>
<dt><a href="#eventToClassicApiObject">eventToClassicApiObject(ev, options, [leyning])</a> ⇒ <code>Object</code></dt>
<dd><p>Converts a Hebcal event to a classic Hebcal.com JSON API object</p>
</dd>
<dt><a href="#formatAliyot">formatAliyot(result, aliyot)</a> ⇒ <code>Object</code></dt>
<dd></dd>
<dt><a href="#formatLeyningResult">formatLeyningResult(reading)</a> ⇒ <code>Object</code></dt>
<dd></dd>
<dt><a href="#eventsToRss2">eventsToRss2(events, options)</a> ⇒ <code>string</code></dt>
<dd></dd>
<dt><a href="#eventToRssItem2">eventToRssItem2(ev, options)</a> ⇒ <code>string</code></dt>
<dd></dd>
<dt><a href="#eventToFullCalendar">eventToFullCalendar(ev, tzid, il)</a> ⇒ <code>Object</code></dt>
<dd><p>Converts a Hebcal event to a FullCalendar.io object</p>
</dd>
</dl>
## Typedefs
<dl>
<dt><a href="#LocationPlainObj">LocationPlainObj</a> : <code>Object</code></dt>
<dd><p>Location information</p>
</dd>
</dl>
<a name="locationToPlainObj"></a>
## locationToPlainObj(location) ⇒ [<code>LocationPlainObj</code>](#LocationPlainObj)
Converts a @hebcal/core `Location` to a plain JS object.
**Kind**: global function
| Param | Type |
| --- | --- |
| location | <code>Location</code> |
<a name="makeAnchor"></a>
## makeAnchor(s) ⇒ <code>string</code>
Helper function to transform a string to make it more usable in a URL or filename.
Converts to lowercase and replaces non-word characters with hyphen ('-').
**Kind**: global function
| Param | Type |
| --- | --- |
| s | <code>string</code> |
**Example**
```js
makeAnchor('Rosh Chodesh Adar II') // 'rosh-chodesh-adar-ii'
```
<a name="getDownloadFilename"></a>
## getDownloadFilename(options) ⇒ <code>string</code>
**Kind**: global function
| Param | Type |
| --- | --- |
| options | <code>CalOptions</code> |
<a name="pad2"></a>
## pad2(number) ⇒ <code>string</code>
**Kind**: global function
| Param | Type |
| --- | --- |
| number | <code>number</code> |
<a name="pad4"></a>
## pad4(number) ⇒ <code>string</code>
**Kind**: global function
| Param | Type |
| --- | --- |
| number | <code>number</code> |
<a name="toISOString"></a>
## toISOString(d) ⇒ <code>string</code>
Returns just the date portion as YYYY-MM-DD
**Kind**: global function
| Param | Type |
| --- | --- |
| d | <code>Date</code> |
<a name="getEventCategories"></a>
## getEventCategories(ev) ⇒ <code>Array.&lt;string&gt;</code>
Returns a category and subcategory name
**Kind**: global function
| Param | Type |
| --- | --- |
| ev | <code>Event</code> |
<a name="renderTitleWithoutTime"></a>
## renderTitleWithoutTime(ev) ⇒ <code>string</code>
Renders the event title in default locale, but strips off time
**Kind**: global function
| Param | Type |
| --- | --- |
| ev | <code>Event</code> |
<a name="getCalendarTitle"></a>
## getCalendarTitle(events, options) ⇒ <code>string</code>
Generates a title like "Hebcal 2020 Israel" or "Hebcal May 1993 Providence"
**Kind**: global function
| Param | Type |
| --- | --- |
| events | <code>Array.&lt;Event&gt;</code> |
| options | <code>CalOptions</code> |
<a name="getHolidayDescription"></a>
## getHolidayDescription(ev, [firstSentence]) ⇒ <code>string</code>
Returns an English language description of the holiday
**Kind**: global function
| Param | Type | Default |
| --- | --- | --- |
| ev | <code>Event</code> | |
| [firstSentence] | <code>boolean</code> | <code>false</code> |
<a name="makeTorahMemoText"></a>
## makeTorahMemoText(ev, il) ⇒ <code>string</code>
Makes mulit-line text that summarizes Torah & Haftarah
**Kind**: global function
| Param | Type |
| --- | --- |
| ev | <code>Event</code> |
| il | <code>boolean</code> |
<a name="appendIsraelAndTracking"></a>
## appendIsraelAndTracking(url, il, utmSource, utmMedium, utmCampaign) ⇒ <code>string</code>
Appends utm_source and utm_medium parameters to a URL
**Kind**: global function
| Param | Type |
| --- | --- |
| url | <code>string</code> |
| il | <code>boolean</code> |
| utmSource | <code>string</code> |
| utmMedium | <code>string</code> |
| utmCampaign | <code>string</code> |
<a name="eventToCsv"></a>
## eventToCsv(e, options) ⇒ <code>string</code>
Renders an Event as a string
**Kind**: global function
| Param | Type |
| --- | --- |
| e | <code>Event</code> |
| options | <code>CalOptions</code> |
<a name="eventsToCsv"></a>
## eventsToCsv(events, options) ⇒ <code>string</code>
**Kind**: global function
| Param | Type |
| --- | --- |
| events | <code>Array.&lt;Event&gt;</code> |
| options | <code>HebcalOptions</code> |
<a name="eventsToClassicApi"></a>
## eventsToClassicApi(events, options, [leyning]) ⇒ <code>Object</code>
Formats a list events for the classic Hebcal.com JSON API response
**Kind**: global function
| Param | Type | Default |
| --- | --- | --- |
| events | <code>Array.&lt;Event&gt;</code> | |
| options | <code>CalOptions</code> | |
| [leyning] | <code>boolean</code> | <code>true</code> |
<a name="eventToClassicApiObject"></a>
## eventToClassicApiObject(ev, options, [leyning]) ⇒ <code>Object</code>
Converts a Hebcal event to a classic Hebcal.com JSON API object
**Kind**: global function
| Param | Type | Default |
| --- | --- | --- |
| ev | <code>Event</code> | |
| options | <code>CalOptions</code> | |
| [leyning] | <code>boolean</code> | <code>true</code> |
<a name="formatAliyot"></a>
## formatAliyot(result, aliyot) ⇒ <code>Object</code>
**Kind**: global function
| Param | Type |
| --- | --- |
| result | <code>Object</code> |
| aliyot | <code>Object</code> |
<a name="formatLeyningResult"></a>
## formatLeyningResult(reading) ⇒ <code>Object</code>
**Kind**: global function
| Param | Type |
| --- | --- |
| reading | <code>Leyning</code> |
<a name="eventsToRss2"></a>
## eventsToRss2(events, options) ⇒ <code>string</code>
**Kind**: global function
| Param | Type |
| --- | --- |
| events | <code>Array.&lt;Event&gt;</code> |
| options | <code>CalOptions</code> |
<a name="eventToRssItem2"></a>
## eventToRssItem2(ev, options) ⇒ <code>string</code>
**Kind**: global function
| Param | Type |
| --- | --- |
| ev | <code>Event</code> |
| options | <code>CalOptions</code> |
<a name="eventToFullCalendar"></a>
## eventToFullCalendar(ev, tzid, il) ⇒ <code>Object</code>
Converts a Hebcal event to a FullCalendar.io object
**Kind**: global function
| Param | Type | Description |
| --- | --- | --- |
| ev | <code>Event</code> | |
| tzid | <code>string</code> | timeZone identifier |
| il | <code>boolean</code> | true if Israel |
<a name="LocationPlainObj"></a>
## LocationPlainObj : <code>Object</code>
Location information
**Kind**: global typedef
**Properties**
| Name | Type |
| --- | --- |
| title | <code>string</code> |
| city | <code>string</code> |
| tzid | <code>string</code> |
| latitude | <code>number</code> |
| longitude | <code>number</code> |
| cc | <code>string</code> |
| country | <code>string</code> |
| admin1 | <code>string</code> |
| asciiname | <code>string</code> |
| geo | <code>string</code> |
| zip | <code>string</code> |
| state | <code>string</code> |
| stateName | <code>string</code> |
| geonameid | <code>number</code> |
## [API Documentation](https://hebcal.github.io/api/rest-api/index.html)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc