@hebcal/rest-api 5.2.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +68 -756
- package/dist/bundle.min.js +2 -2
- package/dist/fullcalendar.js +28 -519
- package/dist/fullcalendar.min.js +2 -2
- package/dist/index.mjs +27 -714
- package/dist/{classic-rest-api.d.ts → src/classic-rest-api.d.ts} +2 -1
- package/dist/{common.d.ts → src/common.d.ts} +3 -1
- package/dist/{csv.d.ts → src/csv.d.ts} +1 -1
- package/dist/{fullcalendar.d.ts → src/fullcalendar.d.ts} +1 -1
- package/dist/{rss.d.ts → src/rss.d.ts} +1 -1
- package/package.json +19 -21
- package/dist/countryNames.json.d.ts +0 -203
- package/dist/holidays.json.d.ts +0 -70
- package/dist/index.cjs +0 -1544
- package/dist/module.d.ts +0 -117
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{makeAnchor.d.ts → src/makeAnchor.d.ts} +0 -0
- /package/dist/{shorten.d.ts → src/shorten.d.ts} +0 -0
package/dist/fullcalendar.js
CHANGED
|
@@ -1,499 +1,8 @@
|
|
|
1
|
-
/*! @hebcal/rest-api
|
|
2
|
-
var hebcalFullCalendar = (function (exports,
|
|
1
|
+
/*! @hebcal/rest-api v6.0.1 */
|
|
2
|
+
var hebcalFullCalendar = (function (exports, event, zmanim, hdate, locale, leyning, getLeyningForHoliday, sedra) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
/* eslint-disable @typescript-eslint/no-namespace, no-inner-declarations */
|
|
6
|
-
/** @private */
|
|
7
|
-
const lengths = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
8
|
-
/** @private */
|
|
9
|
-
const monthLengths = [lengths, lengths.slice()];
|
|
10
|
-
monthLengths[1][2] = 29;
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
function mod(x, y) {
|
|
15
|
-
return x - y * Math.floor(x / y);
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @private
|
|
19
|
-
*/
|
|
20
|
-
function quotient(x, y) {
|
|
21
|
-
return Math.floor(x / y);
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
* @param abs - R.D. number of days
|
|
26
|
-
*/
|
|
27
|
-
function yearFromFixed(abs) {
|
|
28
|
-
const l0 = abs - 1;
|
|
29
|
-
const n400 = quotient(l0, 146097);
|
|
30
|
-
const d1 = mod(l0, 146097);
|
|
31
|
-
const n100 = quotient(d1, 36524);
|
|
32
|
-
const d2 = mod(d1, 36524);
|
|
33
|
-
const n4 = quotient(d2, 1461);
|
|
34
|
-
const d3 = mod(d2, 1461);
|
|
35
|
-
const n1 = quotient(d3, 365);
|
|
36
|
-
const year = 400 * n400 + 100 * n100 + 4 * n4 + n1;
|
|
37
|
-
return n100 !== 4 && n1 !== 4 ? year + 1 : year;
|
|
38
|
-
}
|
|
39
|
-
/*
|
|
40
|
-
const ABS_14SEP1752 = 639797;
|
|
41
|
-
const ABS_2SEP1752 = 639785;
|
|
42
|
-
*/
|
|
43
|
-
/*
|
|
44
|
-
* Formerly in namespace, now top-level
|
|
45
|
-
*/
|
|
46
|
-
/**
|
|
47
|
-
* Returns true if the Gregorian year is a leap year
|
|
48
|
-
* @param year Gregorian year
|
|
49
|
-
*/
|
|
50
|
-
function isGregLeapYear(year) {
|
|
51
|
-
return !(year % 4) && (!!(year % 100) || !(year % 400));
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Number of days in the Gregorian month for given year
|
|
55
|
-
* @param month Gregorian month (1=January, 12=December)
|
|
56
|
-
* @param year Gregorian year
|
|
57
|
-
*/
|
|
58
|
-
function daysInGregMonth(month, year) {
|
|
59
|
-
// 1 based months
|
|
60
|
-
return monthLengths[+isGregLeapYear(year)][month];
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Returns true if the object is a Javascript Date
|
|
64
|
-
*/
|
|
65
|
-
function isDate(obj) {
|
|
66
|
-
// eslint-disable-next-line no-prototype-builtins
|
|
67
|
-
return typeof obj === 'object' && Date.prototype.isPrototypeOf(obj);
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* @private
|
|
71
|
-
* @param year
|
|
72
|
-
* @param month (1-12)
|
|
73
|
-
* @param day (1-31)
|
|
74
|
-
*/
|
|
75
|
-
function toFixed(year, month, day) {
|
|
76
|
-
const py = year - 1;
|
|
77
|
-
return (365 * py +
|
|
78
|
-
quotient(py, 4) -
|
|
79
|
-
quotient(py, 100) +
|
|
80
|
-
quotient(py, 400) +
|
|
81
|
-
quotient(367 * month - 362, 12) +
|
|
82
|
-
(month <= 2 ? 0 : isGregLeapYear(year) ? -1 : -2) +
|
|
83
|
-
day);
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Converts Gregorian date to absolute R.D. (Rata Die) days
|
|
87
|
-
* @param date Gregorian date
|
|
88
|
-
*/
|
|
89
|
-
function greg2abs(date) {
|
|
90
|
-
if (!isDate(date)) {
|
|
91
|
-
throw new TypeError(`Argument not a Date: ${date}`);
|
|
92
|
-
}
|
|
93
|
-
const abs = toFixed(date.getFullYear(), date.getMonth() + 1, date.getDate());
|
|
94
|
-
/*
|
|
95
|
-
if (abs < ABS_14SEP1752 && abs > ABS_2SEP1752) {
|
|
96
|
-
throw new RangeError(`Invalid Date: ${date}`);
|
|
97
|
-
}
|
|
98
|
-
*/
|
|
99
|
-
return abs;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Converts from Rata Die (R.D. number) to Gregorian date.
|
|
103
|
-
* See the footnote on page 384 of ``Calendrical Calculations, Part II:
|
|
104
|
-
* Three Historical Calendars'' by E. M. Reingold, N. Dershowitz, and S. M.
|
|
105
|
-
* Clamen, Software--Practice and Experience, Volume 23, Number 4
|
|
106
|
-
* (April, 1993), pages 383-404 for an explanation.
|
|
107
|
-
* @param abs - R.D. number of days
|
|
108
|
-
*/
|
|
109
|
-
function abs2greg(abs) {
|
|
110
|
-
if (typeof abs !== 'number') {
|
|
111
|
-
throw new TypeError(`Argument not a Number: ${abs}`);
|
|
112
|
-
}
|
|
113
|
-
abs = Math.trunc(abs);
|
|
114
|
-
/*
|
|
115
|
-
if (abs < ABS_14SEP1752 && abs > ABS_2SEP1752) {
|
|
116
|
-
throw new RangeError(`Invalid Date: ${abs}`);
|
|
117
|
-
}
|
|
118
|
-
*/
|
|
119
|
-
const year = yearFromFixed(abs);
|
|
120
|
-
const priorDays = abs - toFixed(year, 1, 1);
|
|
121
|
-
const correction = abs < toFixed(year, 3, 1) ? 0 : isGregLeapYear(year) ? 1 : 2;
|
|
122
|
-
const month = quotient(12 * (priorDays + correction) + 373, 367);
|
|
123
|
-
const day = abs - toFixed(year, month, 1) + 1;
|
|
124
|
-
const dt = new Date(year, month - 1, day);
|
|
125
|
-
if (year < 100 && year >= 0) {
|
|
126
|
-
dt.setFullYear(year);
|
|
127
|
-
}
|
|
128
|
-
return dt;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-namespace */
|
|
132
|
-
/**
|
|
133
|
-
* Gregorian date helper functions
|
|
134
|
-
*/
|
|
135
|
-
var greg;
|
|
136
|
-
(function (greg) {
|
|
137
|
-
})(greg || (greg = {}));
|
|
138
|
-
greg.abs2greg = abs2greg;
|
|
139
|
-
greg.daysInMonth = daysInGregMonth;
|
|
140
|
-
greg.greg2abs = greg2abs;
|
|
141
|
-
greg.isDate = isDate;
|
|
142
|
-
greg.isLeapYear = isGregLeapYear;
|
|
143
|
-
|
|
144
|
-
const alefbet = {
|
|
145
|
-
א: 1,
|
|
146
|
-
ב: 2,
|
|
147
|
-
ג: 3,
|
|
148
|
-
ד: 4,
|
|
149
|
-
ה: 5,
|
|
150
|
-
ו: 6,
|
|
151
|
-
ז: 7,
|
|
152
|
-
ח: 8,
|
|
153
|
-
ט: 9,
|
|
154
|
-
י: 10,
|
|
155
|
-
כ: 20,
|
|
156
|
-
ל: 30,
|
|
157
|
-
מ: 40,
|
|
158
|
-
נ: 50,
|
|
159
|
-
ס: 60,
|
|
160
|
-
ע: 70,
|
|
161
|
-
פ: 80,
|
|
162
|
-
צ: 90,
|
|
163
|
-
ק: 100,
|
|
164
|
-
ר: 200,
|
|
165
|
-
ש: 300,
|
|
166
|
-
ת: 400,
|
|
167
|
-
};
|
|
168
|
-
const heb2num = new Map();
|
|
169
|
-
const num2heb = new Map();
|
|
170
|
-
for (const [key, val] of Object.entries(alefbet)) {
|
|
171
|
-
heb2num.set(key, val);
|
|
172
|
-
num2heb.set(val, key);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Formats a number with leading zeros so the resulting string is 4 digits long.
|
|
177
|
-
* Similar to `string.padStart(4, '0')` but will also format
|
|
178
|
-
* negative numbers similar to how the JavaScript date formats
|
|
179
|
-
* negative year numbers (e.g. `-37` is formatted as `-000037`).
|
|
180
|
-
*/
|
|
181
|
-
function pad4(num) {
|
|
182
|
-
if (num < 0) {
|
|
183
|
-
return '-00' + pad4(-num);
|
|
184
|
-
}
|
|
185
|
-
else if (num < 10) {
|
|
186
|
-
return '000' + num;
|
|
187
|
-
}
|
|
188
|
-
else if (num < 100) {
|
|
189
|
-
return '00' + num;
|
|
190
|
-
}
|
|
191
|
-
else if (num < 1000) {
|
|
192
|
-
return '0' + num;
|
|
193
|
-
}
|
|
194
|
-
return String(num);
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* Formats a number with leading zeros so the resulting string is 2 digits long.
|
|
198
|
-
* Similar to `string.padStart(2, '0')`.
|
|
199
|
-
*/
|
|
200
|
-
function pad2(num) {
|
|
201
|
-
if (num >= 0 && num < 10) {
|
|
202
|
-
return '0' + num;
|
|
203
|
-
}
|
|
204
|
-
return String(num);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Returns YYYY-MM-DD in the local timezone
|
|
209
|
-
*/
|
|
210
|
-
function isoDateString(dt) {
|
|
211
|
-
return (pad4(dt.getFullYear()) +
|
|
212
|
-
'-' +
|
|
213
|
-
pad2(dt.getMonth() + 1) +
|
|
214
|
-
'-' +
|
|
215
|
-
pad2(dt.getDate()));
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
var poAshkenazi = { "headers": { "plural-forms": "nplurals=2; plural=(n > 1);" }, "contexts": { "": { "Tevet": ["Teves"] } } };
|
|
219
|
-
|
|
220
|
-
var poHe = { "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": ["תִּשְׁרֵי"] } } };
|
|
221
|
-
|
|
222
|
-
const noopLocale = {
|
|
223
|
-
headers: { 'plural-forms': 'nplurals=2; plural=(n!=1);' },
|
|
224
|
-
contexts: { '': {} },
|
|
225
|
-
};
|
|
226
|
-
const alias = {
|
|
227
|
-
h: 'he',
|
|
228
|
-
a: 'ashkenazi',
|
|
229
|
-
s: 'en',
|
|
230
|
-
'': 'en',
|
|
231
|
-
};
|
|
232
|
-
/** @private */
|
|
233
|
-
const locales = new Map();
|
|
234
|
-
/** @private */
|
|
235
|
-
let activeLocale;
|
|
236
|
-
/** @private */
|
|
237
|
-
let activeName;
|
|
238
|
-
/** @private */
|
|
239
|
-
function getEnOrdinal(n) {
|
|
240
|
-
const s = ['th', 'st', 'nd', 'rd'];
|
|
241
|
-
const v = n % 100;
|
|
242
|
-
return n + (s[(v - 20) % 10] || s[v] || s[0]);
|
|
243
|
-
}
|
|
244
|
-
/** @private */
|
|
245
|
-
function checkLocale(locale) {
|
|
246
|
-
if (typeof locale !== 'string') {
|
|
247
|
-
throw new TypeError(`Invalid locale name: ${locale}`);
|
|
248
|
-
}
|
|
249
|
-
return locale.toLowerCase();
|
|
250
|
-
}
|
|
251
|
-
/** @private */
|
|
252
|
-
function getExistingLocale(locale) {
|
|
253
|
-
const locale1 = checkLocale(locale);
|
|
254
|
-
const loc = locales.get(locale1);
|
|
255
|
-
if (!loc) {
|
|
256
|
-
throw new RangeError(`Locale '${locale}' not found`);
|
|
257
|
-
}
|
|
258
|
-
return loc;
|
|
259
|
-
}
|
|
260
|
-
/**
|
|
261
|
-
* A locale in Hebcal is used for translations/transliterations of
|
|
262
|
-
* holidays. `@hebcal/hdate` supports four locales by default
|
|
263
|
-
* * `en` - default, Sephardic transliterations (e.g. "Shabbat")
|
|
264
|
-
* * `ashkenazi` - Ashkenazi transliterations (e.g. "Shabbos")
|
|
265
|
-
* * `he` - Hebrew (e.g. "שַׁבָּת")
|
|
266
|
-
* * `he-x-NoNikud` - Hebrew without nikud (e.g. "שבת")
|
|
267
|
-
*/
|
|
268
|
-
class Locale {
|
|
269
|
-
/**
|
|
270
|
-
* Returns translation only if `locale` offers a non-empty translation for `id`.
|
|
271
|
-
* Otherwise, returns `undefined`.
|
|
272
|
-
* @param id Message ID to translate
|
|
273
|
-
* @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
|
|
274
|
-
*/
|
|
275
|
-
static lookupTranslation(id, locale) {
|
|
276
|
-
const loc = (typeof locale === 'string' && locales.get(locale.toLowerCase())) ||
|
|
277
|
-
activeLocale;
|
|
278
|
-
const array = loc[id];
|
|
279
|
-
if ((array === null || array === void 0 ? void 0 : array.length) && array[0].length) {
|
|
280
|
-
return array[0];
|
|
281
|
-
}
|
|
282
|
-
return undefined;
|
|
283
|
-
}
|
|
284
|
-
/**
|
|
285
|
-
* By default, if no translation was found, returns `id`.
|
|
286
|
-
* @param id Message ID to translate
|
|
287
|
-
* @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
|
|
288
|
-
*/
|
|
289
|
-
static gettext(id, locale) {
|
|
290
|
-
const text = this.lookupTranslation(id, locale);
|
|
291
|
-
if (typeof text === 'undefined') {
|
|
292
|
-
return id;
|
|
293
|
-
}
|
|
294
|
-
return text;
|
|
295
|
-
}
|
|
296
|
-
/**
|
|
297
|
-
* Register locale translations.
|
|
298
|
-
* @param locale Locale name (i.e.: `'he'`, `'fr'`)
|
|
299
|
-
* @param data parsed data from a `.po` file.
|
|
300
|
-
*/
|
|
301
|
-
static addLocale(locale, data) {
|
|
302
|
-
locale = checkLocale(locale);
|
|
303
|
-
if (typeof data.contexts !== 'object' ||
|
|
304
|
-
typeof data.contexts[''] !== 'object') {
|
|
305
|
-
throw new TypeError(`Locale '${locale}' invalid compact format`);
|
|
306
|
-
}
|
|
307
|
-
locales.set(locale, data.contexts['']);
|
|
308
|
-
}
|
|
309
|
-
/**
|
|
310
|
-
* Adds a translation to `locale`, replacing any previous translation.
|
|
311
|
-
* @param locale Locale name (i.e: `'he'`, `'fr'`).
|
|
312
|
-
* @param id Message ID to translate
|
|
313
|
-
* @param translation Translation text
|
|
314
|
-
*/
|
|
315
|
-
static addTranslation(locale, id, translation) {
|
|
316
|
-
const loc = getExistingLocale(locale);
|
|
317
|
-
if (typeof id !== 'string' || id.length === 0) {
|
|
318
|
-
throw new TypeError(`Invalid id string: ${id}`);
|
|
319
|
-
}
|
|
320
|
-
const isArray = Array.isArray(translation);
|
|
321
|
-
if (isArray) {
|
|
322
|
-
const t0 = translation[0];
|
|
323
|
-
if (typeof t0 !== 'string' || t0.length === 0) {
|
|
324
|
-
throw new TypeError(`Invalid translation array: ${translation}`);
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
else if (typeof translation !== 'string') {
|
|
328
|
-
throw new TypeError(`Invalid translation string: ${translation}`);
|
|
329
|
-
}
|
|
330
|
-
loc[id] = isArray ? translation : [translation];
|
|
331
|
-
}
|
|
332
|
-
/**
|
|
333
|
-
* Adds multiple translations to `locale`, replacing any previous translations.
|
|
334
|
-
* @param locale Locale name (i.e: `'he'`, `'fr'`).
|
|
335
|
-
* @param data parsed data from a `.po` file.
|
|
336
|
-
*/
|
|
337
|
-
static addTranslations(locale, data) {
|
|
338
|
-
const loc = getExistingLocale(locale);
|
|
339
|
-
if (typeof data.contexts !== 'object' ||
|
|
340
|
-
typeof data.contexts[''] !== 'object') {
|
|
341
|
-
throw new TypeError(`Locale '${locale}' invalid compact format`);
|
|
342
|
-
}
|
|
343
|
-
const ctx = data.contexts[''];
|
|
344
|
-
Object.assign(loc, ctx);
|
|
345
|
-
}
|
|
346
|
-
/**
|
|
347
|
-
* Activates a locale. Throws an error if the locale has not been previously added.
|
|
348
|
-
* After setting the locale to be used, all strings marked for translations
|
|
349
|
-
* will be represented by the corresponding translation in the specified locale.
|
|
350
|
-
* @param locale Locale name (i.e: `'he'`, `'fr'`)
|
|
351
|
-
*/
|
|
352
|
-
static useLocale(locale) {
|
|
353
|
-
const locale0 = checkLocale(locale);
|
|
354
|
-
const obj = getExistingLocale(locale0);
|
|
355
|
-
activeName = alias[locale0] || locale0;
|
|
356
|
-
activeLocale = obj;
|
|
357
|
-
return activeLocale;
|
|
358
|
-
}
|
|
359
|
-
/**
|
|
360
|
-
* Returns the name of the active locale (i.e. 'he', 'ashkenazi', 'fr')
|
|
361
|
-
*/
|
|
362
|
-
static getLocaleName() {
|
|
363
|
-
return activeName;
|
|
364
|
-
}
|
|
365
|
-
/**
|
|
366
|
-
* Returns the names of registered locales
|
|
367
|
-
*/
|
|
368
|
-
static getLocaleNames() {
|
|
369
|
-
const keys = Array.from(locales.keys());
|
|
370
|
-
return keys.sort((a, b) => a.localeCompare(b));
|
|
371
|
-
}
|
|
372
|
-
/**
|
|
373
|
-
* Renders a number in ordinal, such as 1st, 2nd or 3rd
|
|
374
|
-
* @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
|
|
375
|
-
*/
|
|
376
|
-
static ordinal(n, locale) {
|
|
377
|
-
const locale1 = locale === null || locale === void 0 ? void 0 : locale.toLowerCase();
|
|
378
|
-
const locale0 = locale1 || activeName;
|
|
379
|
-
if (!locale0) {
|
|
380
|
-
return getEnOrdinal(n);
|
|
381
|
-
}
|
|
382
|
-
switch (locale0) {
|
|
383
|
-
case 'en':
|
|
384
|
-
case 's':
|
|
385
|
-
case 'a':
|
|
386
|
-
return getEnOrdinal(n);
|
|
387
|
-
case 'es':
|
|
388
|
-
return n + 'º';
|
|
389
|
-
case 'h':
|
|
390
|
-
case 'he':
|
|
391
|
-
case 'he-x-nonikud':
|
|
392
|
-
return String(n);
|
|
393
|
-
}
|
|
394
|
-
if (locale0.startsWith('ashkenazi')) {
|
|
395
|
-
return getEnOrdinal(n);
|
|
396
|
-
}
|
|
397
|
-
return n + '.';
|
|
398
|
-
}
|
|
399
|
-
/**
|
|
400
|
-
* Removes nekudot from Hebrew string
|
|
401
|
-
*/
|
|
402
|
-
static hebrewStripNikkud(str) {
|
|
403
|
-
return str.replace(/[\u0590-\u05bd]/g, '').replace(/[\u05bf-\u05c7]/g, '');
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
Locale.addLocale('en', noopLocale);
|
|
407
|
-
Locale.addLocale('s', noopLocale);
|
|
408
|
-
Locale.addLocale('', noopLocale);
|
|
409
|
-
Locale.useLocale('en');
|
|
410
|
-
/* Ashkenazic transliterations */
|
|
411
|
-
Locale.addLocale('ashkenazi', poAshkenazi);
|
|
412
|
-
Locale.addLocale('a', poAshkenazi);
|
|
413
|
-
/* Hebrew with nikkud */
|
|
414
|
-
Locale.addLocale('he', poHe);
|
|
415
|
-
Locale.addLocale('h', poHe);
|
|
416
|
-
/* Hebrew without nikkud */
|
|
417
|
-
const heStrs = poHe.contexts[''];
|
|
418
|
-
const heNoNikud = {};
|
|
419
|
-
for (const [key, val] of Object.entries(heStrs)) {
|
|
420
|
-
heNoNikud[key] = [Locale.hebrewStripNikkud(val[0])];
|
|
421
|
-
}
|
|
422
|
-
const poHeNoNikud = {
|
|
423
|
-
headers: poHe.headers,
|
|
424
|
-
contexts: { '': heNoNikud },
|
|
425
|
-
};
|
|
426
|
-
Locale.addLocale('he-x-NoNikud', poHeNoNikud);
|
|
427
|
-
|
|
428
|
-
var holidayDescription0 = {
|
|
429
|
-
"Asara B'Tevet": "Fast commemorating the siege of Jerusalem",
|
|
430
|
-
"Ben-Gurion Day": "Commemorates the life and vision of Israel's first Prime Minister David Ben-Gurion",
|
|
431
|
-
"Birkat Hachamah": "A rare Jewish blessing recited once every 28 years thanking G-d for creating the sun",
|
|
432
|
-
"Chag HaBanot": "North African Chanukah festival of daughters. Called Eid al-Banat in Arabic, the holiday was most preserved in Tunisia",
|
|
433
|
-
"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)",
|
|
434
|
-
"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",
|
|
435
|
-
"Family Day": "Yom HaMishpacha, a day to honor the family unit",
|
|
436
|
-
"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",
|
|
437
|
-
"Herzl Day": "Commemorates the life and vision of Zionist leader Theodor Herzl",
|
|
438
|
-
"Jabotinsky Day": "Commemorates the life and vision of Zionist leader Ze'ev Jabotinsky",
|
|
439
|
-
"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",
|
|
440
|
-
"Leil Selichot": "Prayers for forgiveness in preparation for the High Holidays",
|
|
441
|
-
"Pesach Sheni": "Second Passover, one month after Passover",
|
|
442
|
-
"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",
|
|
443
|
-
"Purim Katan": "Minor Purim celebration during Adar I on leap years",
|
|
444
|
-
"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",
|
|
445
|
-
"Purim Meshulash": "Triple Purim, spanning 3 days in Jerusalem and walled cities. It occurs when the 15th of Adar coincides with Shabbat",
|
|
446
|
-
"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",
|
|
447
|
-
"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",
|
|
448
|
-
"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",
|
|
449
|
-
"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",
|
|
450
|
-
"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",
|
|
451
|
-
"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",
|
|
452
|
-
"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",
|
|
453
|
-
"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",
|
|
454
|
-
"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",
|
|
455
|
-
"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",
|
|
456
|
-
"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",
|
|
457
|
-
"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",
|
|
458
|
-
"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",
|
|
459
|
-
"Rosh Hashana": "The Jewish New Year. Also spelled Rosh Hashanah",
|
|
460
|
-
"Rosh Hashana LaBehemot": "New Year for Tithing Animals",
|
|
461
|
-
"Shabbat Chazon": "Shabbat of Prophecy/Shabbat of Vision. Shabbat before Tish'a B'Av",
|
|
462
|
-
"Shabbat HaChodesh": "Shabbat before Rosh Chodesh Nissan. Read in preparation for Passover",
|
|
463
|
-
"Shabbat HaGadol": "Shabbat before Pesach (The Great Shabbat)",
|
|
464
|
-
"Shabbat Machar Chodesh": "When Shabbat falls the day before Rosh Chodesh",
|
|
465
|
-
"Shabbat Mevarchim Chodesh": "Shabbat that precedes Rosh Chodesh. The congregation blesses the forthcoming new month",
|
|
466
|
-
"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\")",
|
|
467
|
-
"Shabbat Parah": "Shabbat of the Red Heifer. Shabbat before Shabbat HaChodesh, in preparation for Passover",
|
|
468
|
-
"Shabbat Rosh Chodesh": "When Shabbat falls on Rosh Chodesh",
|
|
469
|
-
"Shabbat Shekalim": "Shabbat before Rosh Chodesh Adar. Read in preparation for Purim",
|
|
470
|
-
"Shabbat Shirah": "Shabbat of Song. Shabbat that includes Parashat Beshalach",
|
|
471
|
-
"Shabbat Shuva": "Shabbat of Returning. Shabbat that occurs during the Ten Days of Repentance between Rosh Hashanah and Yom Kippur",
|
|
472
|
-
"Shabbat Zachor": "Shabbat of Remembrance. Shabbat before Purim",
|
|
473
|
-
"Shavuot": "Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai",
|
|
474
|
-
"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",
|
|
475
|
-
"Shushan Purim": "Purim celebrated in Jerusalem and walled cities",
|
|
476
|
-
"Shushan Purim Katan": "Minor Purim celebration during Adar I on leap years in Jerusalem and walled cities",
|
|
477
|
-
"Sigd": "Ethiopian Jewish holiday occurring 50 days after Yom Kippur",
|
|
478
|
-
"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",
|
|
479
|
-
"Sukkot": "Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)",
|
|
480
|
-
"Ta'anit Bechorot": "Fast of the First Born",
|
|
481
|
-
"Ta'anit Esther": "Fast of Esther",
|
|
482
|
-
"Tish'a B'Av": "The Ninth of Av. Fast commemorating the destruction of the two Temples",
|
|
483
|
-
"Tu B'Av": "Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av",
|
|
484
|
-
"Tu BiShvat": "New Year for Trees. Tu BiShvat is one of four “New Years” mentioned in the Mishnah",
|
|
485
|
-
"Tzom Gedaliah": "Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah",
|
|
486
|
-
"Tzom Tammuz": "Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple",
|
|
487
|
-
"Yitzhak Rabin Memorial Day": "Commemorates the life of Israeli Prime Minister Yitzhak Rabin",
|
|
488
|
-
"Yom HaAliyah": "Recognizes Aliyah, immigration to the Jewish State of Israel",
|
|
489
|
-
"Yom HaAliyah School Observance": "Aliyah Day observed in Israeli schools",
|
|
490
|
-
"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",
|
|
491
|
-
"Yom HaShoah": "Holocaust Memorial Day",
|
|
492
|
-
"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",
|
|
493
|
-
"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",
|
|
494
|
-
"Yom Kippur Katan": "Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh",
|
|
495
|
-
"Yom Yerushalayim": "Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"
|
|
496
|
-
};
|
|
5
|
+
const Chanukah="Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights, the eight-day festival is observed by lighting the candles of a hanukkiah (menorah)";const Pesach="Passover, the Feast of Unleavened Bread. Also called Chag HaMatzot (the Festival of Matzah), it commemorates the Exodus and freedom of the Israelites from ancient Egypt";const Purim="Celebration of Jewish deliverance as told by Megilat Esther. It commemorates a time when the Jewish people living in Persia were saved from extermination";const Shavuot="Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai";const Sigd="Ethiopian Jewish holiday occurring 50 days after Yom Kippur";const Sukkot="Feast of Booths. Also called the Feast of Tabernacles, the seven-day holiday is one of the Three Pilgrimage Festivals (Hebrew: שלוש רגלים, shalosh regalim)";var holidayDescription0 = {"Asara B'Tevet":"Fast commemorating the siege of Jerusalem","Ben-Gurion Day":"Commemorates the life and vision of Israel's first Prime Minister David Ben-Gurion","Birkat Hachamah":"A rare Jewish blessing recited once every 28 years thanking G-d for creating the sun","Chag HaBanot":"North African Chanukah festival of daughters. Called Eid al-Banat in Arabic, the holiday was most preserved in Tunisia",Chanukah:Chanukah,"Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot. Also called Sefirat HaOmer, it is a practice that consists of a verbal counting of each of the forty-nine days between the two holidays","Family Day":"Yom HaMishpacha, a day to honor the family unit","Hebrew Language Day":"Promotes the Hebrew language in Israel and around the world. Occurs on the birthday of Eliezer Ben Yehuda, the father of modern spoken Hebrew","Herzl Day":"Commemorates the life and vision of Zionist leader Theodor Herzl","Jabotinsky Day":"Commemorates the life and vision of Zionist leader Ze'ev Jabotinsky","Lag BaOmer":"33rd day of counting the Omer. The holiday is a temporary break from the semi-mourning period the counting of the Omer. Practices include lighting bonfires, getting haircuts, and Jewish weddings","Leil Selichot":"Prayers for forgiveness in preparation for the High Holidays","Pesach Sheni":"Second Passover, one month after Passover",Pesach:Pesach,"Purim Katan":"Minor Purim celebration during Adar I on leap years",Purim:Purim,"Purim Meshulash":"Triple Purim, spanning 3 days in Jerusalem and walled cities. It occurs when the 15th of Adar coincides with Shabbat","Rosh Chodesh Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 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:Shavuot,"Shmini Atzeret":"Eighth Day of Assembly. Immediately following Sukkot, it is observed as a separate holiday in the Diaspora and is combined with Simchat Torah in Israel","Shushan Purim":"Purim celebrated in Jerusalem and walled cities","Shushan Purim Katan":"Minor Purim celebration during Adar I on leap years in Jerusalem and walled cities",Sigd:Sigd,"Simchat Torah":"Day of Celebrating the Torah. Celebration marking the conclusion of the annual cycle of public Torah readings, and the beginning of a new cycle",Sukkot:Sukkot,"Ta'anit Bechorot":"Fast of the First Born","Ta'anit Esther":"Fast of Esther","Tish'a B'Av":"The Ninth of Av. Fast commemorating the destruction of the two Temples","Tu B'Av":"Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av","Tu BiShvat":"New Year for Trees. Tu BiShvat is one of four “New Years” mentioned in the Mishnah","Tzom Gedaliah":"Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah","Tzom Tammuz":"Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple","Yitzhak Rabin Memorial Day":"Commemorates the life of Israeli Prime Minister Yitzhak Rabin","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAliyah School Observance":"Aliyah Day observed in Israeli schools","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Although Yom HaAtzma'ut is normally observed on the 5th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaZikaron, which always precedes it) would conflict with Shabbat","Yom HaShoah":"Holocaust Memorial Day","Yom HaZikaron":"Israeli Memorial Day. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma'arakhot Yisrael ul'Nifge'ei Pe'ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. Although Yom Hazikaron is normally observed on the 4th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaAtzma'ut, which always follows it) would conflict with Shabbat","Yom Kippur":"Day of Atonement. The holiest day of the year in Judaism, traditionally observed with a 25-hour period of fasting and intensive prayer","Yom Kippur Katan":"Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"};
|
|
497
6
|
|
|
498
7
|
/**
|
|
499
8
|
* Helper function to transform a string to make it more usable in a URL or filename.
|
|
@@ -512,8 +21,8 @@ function makeAnchor(s) {
|
|
|
512
21
|
}
|
|
513
22
|
|
|
514
23
|
const parsha2id = new Map();
|
|
515
|
-
for (let id = 0; id <
|
|
516
|
-
const name =
|
|
24
|
+
for (let id = 0; id < sedra.parshiot.length; id++) {
|
|
25
|
+
const name = sedra.parshiot[id];
|
|
517
26
|
parsha2id.set(makeAnchor(name), id + 1);
|
|
518
27
|
}
|
|
519
28
|
const doubledParshiyot = [
|
|
@@ -554,7 +63,7 @@ function shortenSedrotUrl(u) {
|
|
|
554
63
|
const id = parsha2id.get(name);
|
|
555
64
|
if (id && dateStr.length === 8) {
|
|
556
65
|
const dt = parse8digitDateStr(dateStr);
|
|
557
|
-
const hd = new
|
|
66
|
+
const hd = new hdate.HDate(dt);
|
|
558
67
|
let p = '/s/' + hd.getFullYear();
|
|
559
68
|
if (u.searchParams.get('i') === 'on') {
|
|
560
69
|
p += 'i';
|
|
@@ -587,7 +96,7 @@ function getEventCategories(ev) {
|
|
|
587
96
|
* Returns an English language description of the holiday
|
|
588
97
|
*/
|
|
589
98
|
function getHolidayDescription(ev, firstSentence = false) {
|
|
590
|
-
const str0 = ev.getFlags() &
|
|
99
|
+
const str0 = ev.getFlags() & event.flags.SHABBAT_MEVARCHIM
|
|
591
100
|
? holidayDescription['Shabbat Mevarchim Chodesh']
|
|
592
101
|
: holidayDescription[ev.getDesc()] ||
|
|
593
102
|
holidayDescription[ev.basename()] ||
|
|
@@ -601,15 +110,15 @@ function getHolidayDescription(ev, firstSentence = false) {
|
|
|
601
110
|
}
|
|
602
111
|
return str;
|
|
603
112
|
}
|
|
604
|
-
const HOLIDAY_IGNORE_MASK =
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
113
|
+
const HOLIDAY_IGNORE_MASK = event.flags.DAF_YOMI |
|
|
114
|
+
event.flags.OMER_COUNT |
|
|
115
|
+
event.flags.SHABBAT_MEVARCHIM |
|
|
116
|
+
event.flags.MOLAD |
|
|
117
|
+
event.flags.USER_EVENT |
|
|
118
|
+
event.flags.NACH_YOMI |
|
|
119
|
+
event.flags.DAILY_LEARNING |
|
|
120
|
+
event.flags.HEBREW_DATE |
|
|
121
|
+
event.flags.YERUSHALMI_YOMI;
|
|
613
122
|
/**
|
|
614
123
|
* Makes mulit-line text that summarizes Torah & Haftarah
|
|
615
124
|
*/
|
|
@@ -620,9 +129,9 @@ function makeTorahMemoText(ev, il) {
|
|
|
620
129
|
typeof ev.eventTime !== 'undefined') {
|
|
621
130
|
return '';
|
|
622
131
|
}
|
|
623
|
-
const reading = mask &
|
|
132
|
+
const reading = mask & event.flags.PARSHA_HASHAVUA
|
|
624
133
|
? leyning.getLeyningForParshaHaShavua(ev, il)
|
|
625
|
-
:
|
|
134
|
+
: getLeyningForHoliday.getLeyningForHoliday(ev, il);
|
|
626
135
|
let memo = '';
|
|
627
136
|
if (reading && (reading.summary || reading.haftara)) {
|
|
628
137
|
if (reading.summary) {
|
|
@@ -644,7 +153,7 @@ function makeTorahMemoText(ev, il) {
|
|
|
644
153
|
return memo;
|
|
645
154
|
}
|
|
646
155
|
function makeMemo(ev, il) {
|
|
647
|
-
if (ev.getFlags() &
|
|
156
|
+
if (ev.getFlags() & event.flags.PARSHA_HASHAVUA) {
|
|
648
157
|
try {
|
|
649
158
|
const memo = makeTorahMemoText(ev, il);
|
|
650
159
|
if (memo) {
|
|
@@ -711,19 +220,19 @@ function shouldRenderBrief(ev) {
|
|
|
711
220
|
return true;
|
|
712
221
|
}
|
|
713
222
|
const mask = ev.getFlags();
|
|
714
|
-
if (mask &
|
|
223
|
+
if (mask & event.flags.HEBREW_DATE) {
|
|
715
224
|
const hd = ev.getDate();
|
|
716
225
|
return hd.getDate() === 1 ? false : true;
|
|
717
226
|
}
|
|
718
227
|
else if (mask &
|
|
719
|
-
(
|
|
228
|
+
(event.flags.DAILY_LEARNING | event.flags.DAF_YOMI | event.flags.YERUSHALMI_YOMI)) {
|
|
720
229
|
return true;
|
|
721
230
|
}
|
|
722
|
-
else if (mask &
|
|
231
|
+
else if (mask & event.flags.MINOR_FAST &&
|
|
723
232
|
ev.getDesc().substring(0, 16) === 'Yom Kippur Katan') {
|
|
724
233
|
return true;
|
|
725
234
|
}
|
|
726
|
-
else if (mask &
|
|
235
|
+
else if (mask & event.flags.SHABBAT_MEVARCHIM) {
|
|
727
236
|
return true;
|
|
728
237
|
}
|
|
729
238
|
else {
|
|
@@ -737,7 +246,7 @@ function shouldRenderBrief(ev) {
|
|
|
737
246
|
function eventToFullCalendar(ev, tzid, il) {
|
|
738
247
|
const classes = getEventCategories(ev);
|
|
739
248
|
const mask = ev.getFlags();
|
|
740
|
-
if (classes[0] === 'holiday' && mask &
|
|
249
|
+
if (classes[0] === 'holiday' && mask & event.flags.CHAG) {
|
|
741
250
|
classes.push('yomtov');
|
|
742
251
|
}
|
|
743
252
|
const timedEv = ev;
|
|
@@ -745,8 +254,8 @@ function eventToFullCalendar(ev, tzid, il) {
|
|
|
745
254
|
const timed = Boolean(eventTime);
|
|
746
255
|
const title = shouldRenderBrief(ev) ? ev.renderBrief() : ev.render();
|
|
747
256
|
const start = timed
|
|
748
|
-
?
|
|
749
|
-
: isoDateString(ev.getDate().greg());
|
|
257
|
+
? zmanim.Zmanim.formatISOWithTimeZone(tzid, eventTime)
|
|
258
|
+
: hdate.isoDateString(ev.getDate().greg());
|
|
750
259
|
const result = {
|
|
751
260
|
title,
|
|
752
261
|
start,
|
|
@@ -755,7 +264,7 @@ function eventToFullCalendar(ev, tzid, il) {
|
|
|
755
264
|
};
|
|
756
265
|
const hebrew = ev.renderBrief('he');
|
|
757
266
|
if (hebrew) {
|
|
758
|
-
result.hebrew =
|
|
267
|
+
result.hebrew = locale.Locale.hebrewStripNikkud(hebrew);
|
|
759
268
|
}
|
|
760
269
|
const url = ev.url();
|
|
761
270
|
if (url) {
|
|
@@ -779,4 +288,4 @@ exports.eventToFullCalendar = eventToFullCalendar;
|
|
|
779
288
|
|
|
780
289
|
return exports;
|
|
781
290
|
|
|
782
|
-
})({}, hebcal, hebcal__leyning);
|
|
291
|
+
})({}, hebcal, hebcal, hebcal, hebcal, hebcal__leyning, hebcal__leyning, hebcal);
|