@hebcal/rest-api 5.1.2 → 5.1.4
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 +137 -72
- package/dist/bundle.min.js +2 -2
- package/dist/common.d.ts +0 -7
- package/dist/fullcalendar.js +149 -55
- package/dist/fullcalendar.min.js +2 -2
- package/dist/index.cjs +137 -72
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +138 -73
- package/dist/makeAnchor.d.ts +7 -0
- package/dist/module.d.ts +117 -0
- package/dist/shorten.d.ts +1 -0
- package/package.json +17 -16
package/dist/fullcalendar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v5.1.
|
|
1
|
+
/*! @hebcal/rest-api v5.1.4 */
|
|
2
2
|
var hebcalFullCalendar = (function (exports, core, leyning) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -178,31 +178,32 @@ for (const [key, val] of Object.entries(alefbet)) {
|
|
|
178
178
|
* negative numbers similar to how the JavaScript date formats
|
|
179
179
|
* negative year numbers (e.g. `-37` is formatted as `-000037`).
|
|
180
180
|
*/
|
|
181
|
-
function pad4(
|
|
182
|
-
if (
|
|
183
|
-
return '-00' + pad4(-
|
|
181
|
+
function pad4(num) {
|
|
182
|
+
if (num < 0) {
|
|
183
|
+
return '-00' + pad4(-num);
|
|
184
184
|
}
|
|
185
|
-
else if (
|
|
186
|
-
return '000' +
|
|
185
|
+
else if (num < 10) {
|
|
186
|
+
return '000' + num;
|
|
187
187
|
}
|
|
188
|
-
else if (
|
|
189
|
-
return '00' +
|
|
188
|
+
else if (num < 100) {
|
|
189
|
+
return '00' + num;
|
|
190
190
|
}
|
|
191
|
-
else if (
|
|
192
|
-
return '0' +
|
|
191
|
+
else if (num < 1000) {
|
|
192
|
+
return '0' + num;
|
|
193
193
|
}
|
|
194
|
-
return String(
|
|
194
|
+
return String(num);
|
|
195
195
|
}
|
|
196
196
|
/**
|
|
197
197
|
* Formats a number with leading zeros so the resulting string is 2 digits long.
|
|
198
198
|
* Similar to `string.padStart(2, '0')`.
|
|
199
199
|
*/
|
|
200
|
-
function pad2(
|
|
201
|
-
if (
|
|
202
|
-
return '0' +
|
|
200
|
+
function pad2(num) {
|
|
201
|
+
if (num >= 0 && num < 10) {
|
|
202
|
+
return '0' + num;
|
|
203
203
|
}
|
|
204
|
-
return String(
|
|
204
|
+
return String(num);
|
|
205
205
|
}
|
|
206
|
+
|
|
206
207
|
/**
|
|
207
208
|
* Returns YYYY-MM-DD in the local timezone
|
|
208
209
|
*/
|
|
@@ -234,6 +235,28 @@ const locales = new Map();
|
|
|
234
235
|
let activeLocale;
|
|
235
236
|
/** @private */
|
|
236
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
|
+
}
|
|
237
260
|
/**
|
|
238
261
|
* A locale in Hebcal is used for translations/transliterations of
|
|
239
262
|
* holidays. `@hebcal/hdate` supports four locales by default
|
|
@@ -276,14 +299,12 @@ class Locale {
|
|
|
276
299
|
* @param data parsed data from a `.po` file.
|
|
277
300
|
*/
|
|
278
301
|
static addLocale(locale, data) {
|
|
279
|
-
|
|
280
|
-
throw new TypeError(`Invalid locale name: ${locale}`);
|
|
281
|
-
}
|
|
302
|
+
locale = checkLocale(locale);
|
|
282
303
|
if (typeof data.contexts !== 'object' ||
|
|
283
304
|
typeof data.contexts[''] !== 'object') {
|
|
284
305
|
throw new TypeError(`Locale '${locale}' invalid compact format`);
|
|
285
306
|
}
|
|
286
|
-
locales.set(locale
|
|
307
|
+
locales.set(locale, data.contexts['']);
|
|
287
308
|
}
|
|
288
309
|
/**
|
|
289
310
|
* Adds a translation to `locale`, replacing any previous translation.
|
|
@@ -292,15 +313,9 @@ class Locale {
|
|
|
292
313
|
* @param translation Translation text
|
|
293
314
|
*/
|
|
294
315
|
static addTranslation(locale, id, translation) {
|
|
295
|
-
|
|
296
|
-
throw new TypeError(`Invalid locale name: ${locale}`);
|
|
297
|
-
}
|
|
298
|
-
const loc = locales.get(locale.toLowerCase());
|
|
299
|
-
if (!loc) {
|
|
300
|
-
throw new TypeError(`Unknown locale: ${locale}`);
|
|
301
|
-
}
|
|
316
|
+
const loc = getExistingLocale(locale);
|
|
302
317
|
if (typeof id !== 'string' || id.length === 0) {
|
|
303
|
-
throw new TypeError(`Invalid id: ${id}`);
|
|
318
|
+
throw new TypeError(`Invalid id string: ${id}`);
|
|
304
319
|
}
|
|
305
320
|
const isArray = Array.isArray(translation);
|
|
306
321
|
if (isArray) {
|
|
@@ -310,7 +325,7 @@ class Locale {
|
|
|
310
325
|
}
|
|
311
326
|
}
|
|
312
327
|
else if (typeof translation !== 'string') {
|
|
313
|
-
throw new TypeError(`Invalid translation: ${translation}`);
|
|
328
|
+
throw new TypeError(`Invalid translation string: ${translation}`);
|
|
314
329
|
}
|
|
315
330
|
loc[id] = isArray ? translation : [translation];
|
|
316
331
|
}
|
|
@@ -320,13 +335,7 @@ class Locale {
|
|
|
320
335
|
* @param data parsed data from a `.po` file.
|
|
321
336
|
*/
|
|
322
337
|
static addTranslations(locale, data) {
|
|
323
|
-
|
|
324
|
-
throw new TypeError(`Invalid locale name: ${locale}`);
|
|
325
|
-
}
|
|
326
|
-
const loc = locales.get(locale.toLowerCase());
|
|
327
|
-
if (!loc) {
|
|
328
|
-
throw new TypeError(`Unknown locale: ${locale}`);
|
|
329
|
-
}
|
|
338
|
+
const loc = getExistingLocale(locale);
|
|
330
339
|
if (typeof data.contexts !== 'object' ||
|
|
331
340
|
typeof data.contexts[''] !== 'object') {
|
|
332
341
|
throw new TypeError(`Locale '${locale}' invalid compact format`);
|
|
@@ -341,11 +350,8 @@ class Locale {
|
|
|
341
350
|
* @param locale Locale name (i.e: `'he'`, `'fr'`)
|
|
342
351
|
*/
|
|
343
352
|
static useLocale(locale) {
|
|
344
|
-
const locale0 = locale
|
|
345
|
-
const obj =
|
|
346
|
-
if (!obj) {
|
|
347
|
-
throw new RangeError(`Locale '${locale}' not found`);
|
|
348
|
-
}
|
|
353
|
+
const locale0 = checkLocale(locale);
|
|
354
|
+
const obj = getExistingLocale(locale0);
|
|
349
355
|
activeName = alias[locale0] || locale0;
|
|
350
356
|
activeLocale = obj;
|
|
351
357
|
return activeLocale;
|
|
@@ -371,31 +377,24 @@ class Locale {
|
|
|
371
377
|
const locale1 = locale === null || locale === void 0 ? void 0 : locale.toLowerCase();
|
|
372
378
|
const locale0 = locale1 || activeName;
|
|
373
379
|
if (!locale0) {
|
|
374
|
-
return
|
|
380
|
+
return getEnOrdinal(n);
|
|
375
381
|
}
|
|
376
382
|
switch (locale0) {
|
|
377
383
|
case 'en':
|
|
378
384
|
case 's':
|
|
379
385
|
case 'a':
|
|
380
|
-
|
|
381
|
-
case 'ashkenazi_litvish':
|
|
382
|
-
case 'ashkenazi_poylish':
|
|
383
|
-
case 'ashkenazi_standard':
|
|
384
|
-
return this.getEnOrdinal(n);
|
|
386
|
+
return getEnOrdinal(n);
|
|
385
387
|
case 'es':
|
|
386
388
|
return n + 'º';
|
|
387
389
|
case 'h':
|
|
388
390
|
case 'he':
|
|
389
391
|
case 'he-x-nonikud':
|
|
390
392
|
return String(n);
|
|
391
|
-
default:
|
|
392
|
-
return n + '.';
|
|
393
393
|
}
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
return n + (s[(v - 20) % 10] || s[v] || s[0]);
|
|
394
|
+
if (locale0.startsWith('ashkenazi')) {
|
|
395
|
+
return getEnOrdinal(n);
|
|
396
|
+
}
|
|
397
|
+
return n + '.';
|
|
399
398
|
}
|
|
400
399
|
/**
|
|
401
400
|
* Removes nekudot from Hebrew string
|
|
@@ -496,6 +495,82 @@ var holidayDescription0 = {
|
|
|
496
495
|
"Yom Yerushalayim": "Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"
|
|
497
496
|
};
|
|
498
497
|
|
|
498
|
+
/**
|
|
499
|
+
* Helper function to transform a string to make it more usable in a URL or filename.
|
|
500
|
+
* Converts to lowercase and replaces non-word characters with hyphen ('-').
|
|
501
|
+
* @example
|
|
502
|
+
* makeAnchor('Rosh Chodesh Adar II') // 'rosh-chodesh-adar-ii'
|
|
503
|
+
*/
|
|
504
|
+
function makeAnchor(s) {
|
|
505
|
+
return s.toLowerCase()
|
|
506
|
+
.replace(/'/g, '')
|
|
507
|
+
.replace(/[^\w]/g, '-')
|
|
508
|
+
.replace(/-+/g, '-')
|
|
509
|
+
.replace(/^-/g, '')
|
|
510
|
+
.replace(/-$/g, '');
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
const parsha2id = new Map();
|
|
514
|
+
for (let id = 0; id < core.parshiot.length; id++) {
|
|
515
|
+
const name = core.parshiot[id];
|
|
516
|
+
parsha2id.set(makeAnchor(name), id + 1);
|
|
517
|
+
}
|
|
518
|
+
const doubledParshiyot = [
|
|
519
|
+
'Vayakhel-Pekudei',
|
|
520
|
+
'Tazria-Metzora',
|
|
521
|
+
'Achrei Mot-Kedoshim',
|
|
522
|
+
'Behar-Bechukotai',
|
|
523
|
+
'Chukat-Balak',
|
|
524
|
+
'Matot-Masei',
|
|
525
|
+
'Nitzavim-Vayeilech',
|
|
526
|
+
];
|
|
527
|
+
const doubled = new Set();
|
|
528
|
+
for (const name of doubledParshiyot) {
|
|
529
|
+
const anchor = makeAnchor(name);
|
|
530
|
+
doubled.add(anchor);
|
|
531
|
+
const [p1, p2] = anchor.split('-');
|
|
532
|
+
const id = parsha2id.get(p1);
|
|
533
|
+
parsha2id.set(anchor, id);
|
|
534
|
+
}
|
|
535
|
+
function parse8digitDateStr(date) {
|
|
536
|
+
const gy = date.substring(0, 4);
|
|
537
|
+
const gm = date.substring(4, 6);
|
|
538
|
+
const gd = date.substring(6, 8);
|
|
539
|
+
const yy = parseInt(gy, 10);
|
|
540
|
+
const mm = parseInt(gm, 10);
|
|
541
|
+
const dd = parseInt(gd, 10);
|
|
542
|
+
const dt = new Date(yy, mm - 1, dd);
|
|
543
|
+
if (yy < 100) {
|
|
544
|
+
dt.setFullYear(yy);
|
|
545
|
+
}
|
|
546
|
+
return dt;
|
|
547
|
+
}
|
|
548
|
+
function shortenSedrotUrl(u) {
|
|
549
|
+
const path = u.pathname;
|
|
550
|
+
const dash = path.lastIndexOf('-');
|
|
551
|
+
const dateStr = path.substring(dash + 1);
|
|
552
|
+
const name = path.substring(8, dash);
|
|
553
|
+
const id = parsha2id.get(name);
|
|
554
|
+
if (id && dateStr.length === 8) {
|
|
555
|
+
const dt = parse8digitDateStr(dateStr);
|
|
556
|
+
const hd = new core.HDate(dt);
|
|
557
|
+
let p = '/s/' + hd.getFullYear();
|
|
558
|
+
if (u.searchParams.get('i') === 'on') {
|
|
559
|
+
p += 'i';
|
|
560
|
+
u.searchParams.delete('i');
|
|
561
|
+
}
|
|
562
|
+
const id = parsha2id.get(name);
|
|
563
|
+
p += '/' + id;
|
|
564
|
+
if (doubled.has(name)) {
|
|
565
|
+
p += 'd';
|
|
566
|
+
}
|
|
567
|
+
u.pathname = p;
|
|
568
|
+
}
|
|
569
|
+
else {
|
|
570
|
+
u.pathname = '/s/' + path.substring(8);
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
|
|
499
574
|
const holidayDescription = holidayDescription0;
|
|
500
575
|
/**
|
|
501
576
|
* Returns a category and subcategory name
|
|
@@ -507,6 +582,22 @@ function getEventCategories(ev) {
|
|
|
507
582
|
}
|
|
508
583
|
return ev.getCategories();
|
|
509
584
|
}
|
|
585
|
+
/**
|
|
586
|
+
* Returns an English language description of the holiday
|
|
587
|
+
*/
|
|
588
|
+
function getHolidayDescription(ev, firstSentence = false) {
|
|
589
|
+
const str0 = ev.getFlags() & core.flags.SHABBAT_MEVARCHIM ?
|
|
590
|
+
holidayDescription['Shabbat Mevarchim Chodesh'] :
|
|
591
|
+
holidayDescription[ev.getDesc()] || holidayDescription[ev.basename()] || '';
|
|
592
|
+
const str = str0.normalize();
|
|
593
|
+
if (firstSentence && str) {
|
|
594
|
+
const dot = str.indexOf('.');
|
|
595
|
+
if (dot != -1) {
|
|
596
|
+
return str.substring(0, dot);
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
return str;
|
|
600
|
+
}
|
|
510
601
|
const HOLIDAY_IGNORE_MASK = core.flags.DAF_YOMI | core.flags.OMER_COUNT |
|
|
511
602
|
core.flags.SHABBAT_MEVARCHIM | core.flags.MOLAD | core.flags.USER_EVENT |
|
|
512
603
|
core.flags.NACH_YOMI | core.flags.DAILY_LEARNING |
|
|
@@ -555,7 +646,10 @@ function makeMemo(ev, il) {
|
|
|
555
646
|
// fallthru
|
|
556
647
|
}
|
|
557
648
|
}
|
|
558
|
-
|
|
649
|
+
if (ev.memo) {
|
|
650
|
+
return ev.memo;
|
|
651
|
+
}
|
|
652
|
+
return getHolidayDescription(ev);
|
|
559
653
|
}
|
|
560
654
|
/**
|
|
561
655
|
* Appends utm_source and utm_medium parameters to a URL
|
|
@@ -577,7 +671,7 @@ function appendIsraelAndTracking(url, il, utmSource, utmMedium, utmCampaign) {
|
|
|
577
671
|
u.pathname = '/h/' + path.substring(10);
|
|
578
672
|
}
|
|
579
673
|
else if (isSedrot) {
|
|
580
|
-
u
|
|
674
|
+
shortenSedrotUrl(u);
|
|
581
675
|
}
|
|
582
676
|
else { // isOmer
|
|
583
677
|
u.pathname = '/o/' + path.substring(6);
|
package/dist/fullcalendar.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v5.1.
|
|
2
|
-
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);
|
|
1
|
+
/*! @hebcal/rest-api v5.1.4 */
|
|
2
|
+
var hebcalFullCalendar=function(e,a,t){"use strict";const o=[0,31,28,31,30,31,30,31,31,30,31,30,31],r=[o,o.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,t){const o=e-1;return 365*o+h(o,4)-h(o,100)+h(o,400)+h(367*a-362,12)+(a<=2?0:s(e)?-1:-2)+t}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,t=h(a,146097),o=n(a,146097),r=h(o,36524),s=n(o,36524),i=h(s,1461),l=h(n(s,1461),365),d=400*t+100*r+4*i+l;return 4!==r&&4!==l?d+1:d}(e=Math.trunc(e)),t=h(12*(e-l(a,1,1)+(e<l(a,3,1)?0:s(a)?1:2))+373,367),o=e-l(a,t,1)+1,r=new Date(a,t-1,o);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 u(e){return e<0?"-00"+u(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function b(e){return e>=0&&e<10?"0"+e:String(e)}function g(e){return u(e.getFullYear())+"-"+b(e.getMonth()+1)+"-"+b(e.getDate())}var y={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;function C(e){const a=["th","st","nd","rd"],t=e%100;return e+(a[(t-20)%10]||a[t]||a[0])}function I(e){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);return e.toLowerCase()}function R(e){const a=I(e),t=H.get(a);if(!t)throw new RangeError(`Locale '${e}' not found`);return t}class T{static lookupTranslation(e,a){const t=("string"==typeof a&&H.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(e=I(e),"object"!=typeof a.contexts||"object"!=typeof a.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);H.set(e,a.contexts[""])}static addTranslation(e,a,t){const o=R(e);if("string"!=typeof a||0===a.length)throw new TypeError(`Invalid id string: ${a}`);const r=Array.isArray(t);if(r){const e=t[0];if("string"!=typeof e||0===e.length)throw new TypeError(`Invalid translation array: ${t}`)}else if("string"!=typeof t)throw new TypeError(`Invalid translation string: ${t}`);o[a]=r?t:[t]}static addTranslations(e,a){const t=R(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=I(e),t=R(a);return A=v[a]||a,S=t,S}static getLocaleName(){return A}static getLocaleNames(){return Array.from(H.keys()).sort(((e,a)=>e.localeCompare(a)))}static ordinal(e,a){const t=(null==a?void 0:a.toLowerCase())||A;if(!t)return C(e);switch(t){case"en":case"s":case"a":return C(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e)}return t.startsWith("ashkenazi")?C(e):e+"."}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",y),T.addLocale("a",y),T.addLocale("he",w),T.addLocale("h",w);const k=w.contexts[""],M={};for(const[e,a]of Object.entries(k))M[e]=[T.hebrewStripNikkud(a[0])];const P={headers:w.headers,contexts:{"":M}};T.addLocale("he-x-NoNikud",P);function D(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}const E=new Map;for(let e=0;e<a.parshiot.length;e++){const t=a.parshiot[e];E.set(D(t),e+1)}const Y=["Vayakhel-Pekudei","Tazria-Metzora","Achrei Mot-Kedoshim","Behar-Bechukotai","Chukat-Balak","Matot-Masei","Nitzavim-Vayeilech"],L=new Set;for(const e of Y){const a=D(e);L.add(a);const[t,o]=a.split("-"),r=E.get(t);E.set(a,r)}function F(e){const t=e.pathname,o=t.lastIndexOf("-"),r=t.substring(o+1),n=t.substring(8,o);if(E.get(n)&&8===r.length){const t=function(e){const a=e.substring(0,4),t=e.substring(4,6),o=e.substring(6,8),r=parseInt(a,10),n=parseInt(t,10),h=parseInt(o,10),s=new Date(r,n-1,h);return r<100&&s.setFullYear(r),s}(r);let o="/s/"+new a.HDate(t).getFullYear();"on"===e.searchParams.get("i")&&(o+="i",e.searchParams.delete("i"));o+="/"+E.get(n),L.has(n)&&(o+="d"),e.pathname=o}else e.pathname="/s/"+t.substring(8)}const B={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem","Ben-Gurion Day":"Commemorates the life and vision of Israel's first Prime Minister David Ben-Gurion","Birkat Hachamah":"A rare Jewish blessing recited once every 28 years thanking G-d for creating the sun","Chag HaBanot":"North African Chanukah festival of daughters. Called Eid al-Banat in Arabic, the holiday was most preserved in Tunisia",Chanukah:"Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights, the eight-day festival is observed by lighting the candles of a hanukkiah (menorah)","Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot. Also called Sefirat HaOmer, it is a practice that consists of a verbal counting of each of the forty-nine days between the two holidays","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 N=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 z(e,o){if(e.getFlags()&a.flags.PARSHA_HASHAVUA)try{const r=function(e,o){var r;const n=e.getFlags();if(n&N||void 0!==e.eventTime)return"";const h=n&a.flags.PARSHA_HASHAVUA?t.getLeyningForParshaHaShavua(e,o):t.getLeyningForHoliday(e,o);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,o);if(r)return r}catch(e){}return e.memo?e.memo:function(e,t=!1){const o=(e.getFlags()&a.flags.SHABBAT_MEVARCHIM?B["Shabbat Mevarchim Chodesh"]:B[e.getDesc()]||B[e.basename()]||"").normalize();if(t&&o){const e=o.indexOf(".");if(-1!=e)return o.substring(0,e)}return o}(e)}return e.eventToFullCalendar=function(e,t,o){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 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)}(e)?e.renderBrief():e.render(),start:s?a.Zmanim.formatISOWithTimeZone(t,h):g(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,t,o){const r=new URL(e),n="www.hebcal.com"===r.host;if(n){a&&r.searchParams.set("i","on");const e=r.pathname,n=e.startsWith("/holidays/"),h=e.startsWith("/sedrot/"),s=e.startsWith("/omer/");if(n||h||s)return r.host="hebcal.com",n?r.pathname="/h/"+e.substring(10):h?F(r):r.pathname="/o/"+e.substring(6),t&&r.searchParams.set("us",t),r.searchParams.set("um",o),r.toString()}return(t=n?t:"hebcal.com")&&r.searchParams.set("utm_source",t),r.searchParams.set("utm_medium",o),r.toString()}(d,o,"js","fc"));const c=e.getDesc();if(!("Havdalah"===c||"Candle lighting"===c)){const a=z(e,o);a?i.description=a:void 0!==e.linkedEvent&&(i.description=e.linkedEvent.render())}return i},e}({},hebcal,hebcal__leyning);
|