@hebcal/core 3.38.1 → 3.39.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/README.md +23 -2
- package/dist/bundle.js +45 -23
- package/dist/bundle.min.js +2 -2
- package/dist/hdate-bundle.js +2 -2
- package/dist/hdate-bundle.min.js +2 -2
- package/dist/hdate.js +2 -2
- package/dist/hdate.mjs +2 -2
- package/dist/hdate0-bundle.js +1 -1
- package/dist/hdate0-bundle.min.js +1 -1
- package/dist/index.js +44 -23
- package/dist/index.mjs +44 -23
- package/hebcal.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -890,6 +890,7 @@ Represents an Event with a title, date, and flags
|
|
|
890
890
|
* [.url()](#Event+url) ⇒ <code>string</code>
|
|
891
891
|
* [.observedInIsrael()](#Event+observedInIsrael) ⇒ <code>boolean</code>
|
|
892
892
|
* [.observedInDiaspora()](#Event+observedInDiaspora) ⇒ <code>boolean</code>
|
|
893
|
+
* [.observedIn(il)](#Event+observedIn) ⇒ <code>boolean</code>
|
|
893
894
|
* ~~[.getAttrs()](#Event+getAttrs) ⇒ <code>Object</code>~~
|
|
894
895
|
* [.clone()](#Event+clone) ⇒ [<code>Event</code>](#Event)
|
|
895
896
|
|
|
@@ -1003,6 +1004,26 @@ ev1.observedInDiaspora(); // true
|
|
|
1003
1004
|
const ev2 = new Event(new HDate(26, 'Kislev', 5749), 'Chanukah: 3 Candles', 0);
|
|
1004
1005
|
ev2.observedInDiaspora(); // true
|
|
1005
1006
|
```
|
|
1007
|
+
<a name="Event+observedIn"></a>
|
|
1008
|
+
|
|
1009
|
+
### event.observedIn(il) ⇒ <code>boolean</code>
|
|
1010
|
+
Is this event observed in Israel/Diaspora?
|
|
1011
|
+
|
|
1012
|
+
**Kind**: instance method of [<code>Event</code>](#Event)
|
|
1013
|
+
|
|
1014
|
+
| Param | Type |
|
|
1015
|
+
| --- | --- |
|
|
1016
|
+
| il | <code>boolean</code> |
|
|
1017
|
+
|
|
1018
|
+
**Example**
|
|
1019
|
+
```js
|
|
1020
|
+
const ev1 = new Event(new HDate(7, 'Sivan', 5749), 'Shavuot II', flags.CHAG | flags.CHUL_ONLY);
|
|
1021
|
+
ev1.observedIn(false); // true
|
|
1022
|
+
ev1.observedIn(true); // false
|
|
1023
|
+
const ev2 = new Event(new HDate(26, 'Kislev', 5749), 'Chanukah: 3 Candles', 0);
|
|
1024
|
+
ev2.observedIn(false); // true
|
|
1025
|
+
ev2.observedIn(true); // true
|
|
1026
|
+
```
|
|
1006
1027
|
<a name="Event+getAttrs"></a>
|
|
1007
1028
|
|
|
1008
1029
|
### ~~event.getAttrs() ⇒ <code>Object</code>~~
|
|
@@ -2659,7 +2680,7 @@ Holiday flags for Event
|
|
|
2659
2680
|
| SPECIAL_SHABBAT | <code>number</code> | <code>512</code> | Shabbat Shekalim, Zachor, ... |
|
|
2660
2681
|
| PARSHA_HASHAVUA | <code>number</code> | <code>1024</code> | Weekly sedrot on Saturdays |
|
|
2661
2682
|
| DAF_YOMI | <code>number</code> | <code>2048</code> | Daily page of Talmud |
|
|
2662
|
-
| OMER_COUNT | <code>number</code> | <code>
|
|
2683
|
+
| OMER_COUNT | <code>number</code> | <code>4096</code> | Days of the Omer |
|
|
2663
2684
|
| MODERN_HOLIDAY | <code>number</code> | <code>8192</code> | Yom HaShoah, Yom HaAtzma'ut, ... |
|
|
2664
2685
|
| MAJOR_FAST | <code>number</code> | <code>16384</code> | Yom Kippur and Tish'a B'Av |
|
|
2665
2686
|
| SHABBAT_MEVARCHIM | <code>number</code> | <code>32768</code> | On the Saturday before Rosh Chodesh |
|
|
@@ -2667,7 +2688,7 @@ Holiday flags for Event
|
|
|
2667
2688
|
| USER_EVENT | <code>number</code> | <code>131072</code> | Yahrzeit or Hebrew Anniversary |
|
|
2668
2689
|
| HEBREW_DATE | <code>number</code> | <code>262144</code> | Daily Hebrew date ("11th of Sivan, 5780") |
|
|
2669
2690
|
| MINOR_HOLIDAY | <code>number</code> | <code>524288</code> | A holiday that's not major, modern, rosh chodesh, or a fast day |
|
|
2670
|
-
| EREV | <code>number</code> | <code>
|
|
2691
|
+
| EREV | <code>number</code> | <code>1048576</code> | Evening before a major or minor holiday |
|
|
2671
2692
|
| CHOL_HAMOED | <code>number</code> | <code>2097152</code> | Chol haMoed, intermediate days of Pesach or Sukkot |
|
|
2672
2693
|
| MISHNA_YOMI | <code>number</code> | <code>4194304</code> | Mishna Yomi |
|
|
2673
2694
|
|
package/dist/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v3.
|
|
1
|
+
/*! @hebcal/core v3.39.1 */
|
|
2
2
|
var hebcal = (function (exports) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -3523,7 +3523,7 @@ var flags = {
|
|
|
3523
3523
|
DAF_YOMI: 0x000800,
|
|
3524
3524
|
|
|
3525
3525
|
/** Days of the Omer */
|
|
3526
|
-
OMER_COUNT:
|
|
3526
|
+
OMER_COUNT: 0x001000,
|
|
3527
3527
|
|
|
3528
3528
|
/** Yom HaShoah, Yom HaAtzma'ut, ... */
|
|
3529
3529
|
MODERN_HOLIDAY: 0x002000,
|
|
@@ -3547,7 +3547,7 @@ var flags = {
|
|
|
3547
3547
|
MINOR_HOLIDAY: 0x080000,
|
|
3548
3548
|
|
|
3549
3549
|
/** Evening before a major or minor holiday */
|
|
3550
|
-
EREV:
|
|
3550
|
+
EREV: 0x100000,
|
|
3551
3551
|
|
|
3552
3552
|
/** Chol haMoed, intermediate days of Pesach or Sukkot */
|
|
3553
3553
|
CHOL_HAMOED: 0x200000,
|
|
@@ -3704,6 +3704,24 @@ var Event = /*#__PURE__*/function () {
|
|
|
3704
3704
|
value: function observedInDiaspora() {
|
|
3705
3705
|
return !(this.mask & flags.IL_ONLY);
|
|
3706
3706
|
}
|
|
3707
|
+
/**
|
|
3708
|
+
* Is this event observed in Israel/Diaspora?
|
|
3709
|
+
* @example
|
|
3710
|
+
* const ev1 = new Event(new HDate(7, 'Sivan', 5749), 'Shavuot II', flags.CHAG | flags.CHUL_ONLY);
|
|
3711
|
+
* ev1.observedIn(false); // true
|
|
3712
|
+
* ev1.observedIn(true); // false
|
|
3713
|
+
* const ev2 = new Event(new HDate(26, 'Kislev', 5749), 'Chanukah: 3 Candles', 0);
|
|
3714
|
+
* ev2.observedIn(false); // true
|
|
3715
|
+
* ev2.observedIn(true); // true
|
|
3716
|
+
* @param {boolean} il
|
|
3717
|
+
* @return {boolean}
|
|
3718
|
+
*/
|
|
3719
|
+
|
|
3720
|
+
}, {
|
|
3721
|
+
key: "observedIn",
|
|
3722
|
+
value: function observedIn(il) {
|
|
3723
|
+
return il ? this.observedInIsrael() : this.observedInDiaspora();
|
|
3724
|
+
}
|
|
3707
3725
|
/**
|
|
3708
3726
|
* @deprecated
|
|
3709
3727
|
* Optional additional event attributes (e.g. `eventTimeStr`, `cholHaMoedDay`)
|
|
@@ -7744,7 +7762,7 @@ function getBirthdayOrAnniversary_(hyear, gdate) {
|
|
|
7744
7762
|
return new HDate(day, month, hyear);
|
|
7745
7763
|
}
|
|
7746
7764
|
|
|
7747
|
-
var version="3.
|
|
7765
|
+
var version="3.39.1";
|
|
7748
7766
|
|
|
7749
7767
|
var headers$1={"plural-forms":"nplurals=2; plural=(n > 1);",language:"en_CA@ashkenazi"};var contexts$1={"":{Berachot:["Berachos"],Shabbat:["Shabbos"],Taanit:["Taanis"],Yevamot:["Yevamos"],Ketubot:["Kesubos"],"Baba Batra":["Baba Basra"],Makkot:["Makkos"],Shevuot:["Shevuos"],Horayot:["Horayos"],Menachot:["Menachos"],Bechorot:["Bechoros"],Keritot:["Kerisos"],Midot:["Midos"],"Achrei Mot":["Achrei Mos"],Bechukotai:["Bechukosai"],"Beha'alotcha":["Beha'aloscha"],Bereshit:["Bereshis"],Chukat:["Chukas"],"Erev Shavuot":["Erev Shavuos"],"Erev Sukkot":["Erev Sukkos"],"Ki Tavo":["Ki Savo"],"Ki Teitzei":["Ki Seitzei"],"Ki Tisa":["Ki Sisa"],Matot:["Matos"],"Purim Katan":["Purim Koton"],Tazria:["Sazria"],"Shabbat Chazon":["Shabbos Chazon"],"Shabbat HaChodesh":["Shabbos HaChodesh"],"Shabbat HaGadol":["Shabbos HaGadol"],"Shabbat Nachamu":["Shabbos Nachamu"],"Shabbat Parah":["Shabbos Parah"],"Shabbat Shekalim":["Shabbos Shekalim"],"Shabbat Shuva":["Shabbos Shuvah"],"Shabbat Zachor":["Shabbos Zachor"],Shavuot:["Shavuos"],"Shavuot I":["Shavuos I"],"Shavuot II":["Shavuos II"],Shemot:["Shemos"],"Shmini Atzeret":["Shmini Atzeres"],"Simchat Torah":["Simchas Torah"],Sukkot:["Sukkos"],"Sukkot I":["Sukkos I"],"Sukkot II":["Sukkos II"],"Sukkot II (CH''M)":["Sukkos II (CH''M)"],"Sukkot III (CH''M)":["Sukkos III (CH''M)"],"Sukkot IV (CH''M)":["Sukkos IV (CH''M)"],"Sukkot V (CH''M)":["Sukkos V (CH''M)"],"Sukkot VI (CH''M)":["Sukkos VI (CH''M)"],"Sukkot VII (Hoshana Raba)":["Sukkos VII (Hoshana Raba)"],"Ta'anit Bechorot":["Ta'anis Bechoros"],"Ta'anit Esther":["Ta'anis Esther"],Toldot:["Toldos"],Vaetchanan:["Vaeschanan"],Yitro:["Yisro"],"Vezot Haberakhah":["Vezos Haberakhah"],Parashat:["Parshas"],"Leil Selichot":["Leil Selichos"],"Shabbat Mevarchim Chodesh":["Shabbos Mevorchim Chodesh"],"Shabbat Shirah":["Shabbos Shirah"],Tevet:["Teves"],"Asara B'Tevet":["Asara B'Teves"],Berakhot:["Berakhos"],Sheviit:["Sheviis"],Terumot:["Terumos"],Maasrot:["Maasros"],Eduyot:["Eduyos"],Avot:["Avos"],Bekhorot:["Bekhoros"],Middot:["Middos"],Oholot:["Oholos"],Tahorot:["Tahoros"],Mikvaot:["Mikvaos"]}};var poAshkenazi = {headers:headers$1,contexts:contexts$1};
|
|
7750
7768
|
|
|
@@ -8060,7 +8078,7 @@ function getMaskFromOptions(options) {
|
|
|
8060
8078
|
}
|
|
8061
8079
|
|
|
8062
8080
|
if (options.candlelighting) {
|
|
8063
|
-
mask |= LIGHT_CANDLES | LIGHT_CANDLES_TZEIS;
|
|
8081
|
+
mask |= LIGHT_CANDLES | LIGHT_CANDLES_TZEIS | YOM_TOV_ENDS;
|
|
8064
8082
|
} // suppression of defaults
|
|
8065
8083
|
|
|
8066
8084
|
|
|
@@ -8314,7 +8332,7 @@ var HebrewCalendar = /*#__PURE__*/function () {
|
|
|
8314
8332
|
|
|
8315
8333
|
if (hyear != currentYear) {
|
|
8316
8334
|
currentYear = hyear;
|
|
8317
|
-
holidaysYear =
|
|
8335
|
+
holidaysYear = getHolidaysForYear_(currentYear);
|
|
8318
8336
|
|
|
8319
8337
|
if (options.sedrot && currentYear >= 3762) {
|
|
8320
8338
|
sedra = getSedra_(currentYear, il);
|
|
@@ -8612,14 +8630,26 @@ var HebrewCalendar = /*#__PURE__*/function () {
|
|
|
8612
8630
|
*/
|
|
8613
8631
|
|
|
8614
8632
|
function appendHolidayAndRelated(events, ev, options, candlesEv, dow) {
|
|
8615
|
-
var eFlags = ev.getFlags();
|
|
8616
8633
|
var il = options.il;
|
|
8617
|
-
var observed = il && ev.observedInIsrael() || !il && ev.observedInDiaspora();
|
|
8618
|
-
var mask = options.mask;
|
|
8619
8634
|
|
|
8620
|
-
if (
|
|
8621
|
-
|
|
8635
|
+
if (!ev.observedIn(il)) {
|
|
8636
|
+
return candlesEv; // holiday isn't observed here; bail out early
|
|
8637
|
+
}
|
|
8638
|
+
|
|
8639
|
+
var eFlags = ev.getFlags();
|
|
8640
|
+
var location = options.location;
|
|
8641
|
+
var isMajorFast = Boolean(eFlags & MAJOR_FAST);
|
|
8642
|
+
var isMinorFast = Boolean(eFlags & MINOR_FAST);
|
|
8643
|
+
|
|
8644
|
+
if (options.candlelighting && (isMajorFast || isMinorFast)) {
|
|
8645
|
+
ev = makeFastStartEnd(ev, location);
|
|
8622
8646
|
|
|
8647
|
+
if (ev.startEvent && (isMajorFast || isMinorFast && !options.noMinorFast)) {
|
|
8648
|
+
events.push(ev.startEvent);
|
|
8649
|
+
}
|
|
8650
|
+
}
|
|
8651
|
+
|
|
8652
|
+
if (eFlags & options.mask || !eFlags && !options.userMask) {
|
|
8623
8653
|
if (options.candlelighting && eFlags & MASK_LIGHT_CANDLES) {
|
|
8624
8654
|
var hd = ev.getDate();
|
|
8625
8655
|
candlesEv = makeCandleEvent(ev, hd, dow, location, options);
|
|
@@ -8641,22 +8671,14 @@ function appendHolidayAndRelated(events, ev, options, candlesEv, dow) {
|
|
|
8641
8671
|
}
|
|
8642
8672
|
|
|
8643
8673
|
if (!options.noHolidays) {
|
|
8644
|
-
if (options.candlelighting && eFlags & (MINOR_FAST | MAJOR_FAST)) {
|
|
8645
|
-
ev = makeFastStartEnd(ev, location);
|
|
8646
|
-
}
|
|
8647
|
-
|
|
8648
|
-
if (ev.startEvent) {
|
|
8649
|
-
events.push(ev.startEvent);
|
|
8650
|
-
}
|
|
8651
|
-
|
|
8652
8674
|
events.push(ev); // the original event itself
|
|
8653
|
-
|
|
8654
|
-
if (ev.endEvent) {
|
|
8655
|
-
events.push(ev.endEvent);
|
|
8656
|
-
}
|
|
8657
8675
|
}
|
|
8658
8676
|
}
|
|
8659
8677
|
|
|
8678
|
+
if (ev.endEvent && (isMajorFast || isMinorFast && !options.noMinorFast)) {
|
|
8679
|
+
events.push(ev.endEvent);
|
|
8680
|
+
}
|
|
8681
|
+
|
|
8660
8682
|
return candlesEv;
|
|
8661
8683
|
}
|
|
8662
8684
|
|
package/dist/bundle.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @hebcal/core v3.
|
|
2
|
-
var hebcal=function(e){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t,a){return t&&n(e.prototype,t),a&&n(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function h(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=u(e);if(t){var r=u(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return h(this,a)}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function f(e,t){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=function(e,t){if(e){if("string"==typeof e)return l(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){a&&(e=a);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==a.return||a.return()}finally{if(u)throw o}}}}var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},d=function(e){return e&&e.Math==Math&&e},m=d("object"==typeof globalThis&&globalThis)||d("object"==typeof window&&window)||d("object"==typeof self&&self)||d("object"==typeof v&&v)||function(){return this}()||Function("return this")(),y={},g=function(e){try{return!!e()}catch(e){return!0}},k=!g((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),b=!g((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),S=b,w=Function.prototype.call,p=S?w.bind(w):function(){return w.apply(w,arguments)},A={},M={}.propertyIsEnumerable,I=Object.getOwnPropertyDescriptor,T=I&&!M.call({1:2},1);A.f=T?function(e){var t=I(this,e);return!!t&&t.enumerable}:M;var E,D,C=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},H=b,N=Function.prototype,O=N.bind,L=N.call,B=H&&O.bind(L,L),P=H?function(e){return e&&B(e)}:function(e){return e&&function(){return L.apply(e,arguments)}},Y=P,_=Y({}.toString),R=Y("".slice),j=function(e){return R(_(e),8,-1)},z=g,V=j,F=Object,x=P("".split),U=z((function(){return!F("z").propertyIsEnumerable(0)}))?function(e){return"String"==V(e)?x(e,""):F(e)}:F,K=TypeError,G=function(e){if(null==e)throw K("Can't call method on "+e);return e},Z=U,W=G,J=function(e){return Z(W(e))},$=function(e){return"function"==typeof e},q=$,X=function(e){return"object"==typeof e?null!==e:q(e)},Q=m,ee=$,te=function(e){return ee(e)?e:void 0},ae=function(e,t){return arguments.length<2?te(Q[e]):Q[e]&&Q[e][t]},ne=P({}.isPrototypeOf),re=ae("navigator","userAgent")||"",oe=m,ie=re,ue=oe.process,se=oe.Deno,he=ue&&ue.versions||se&&se.version,ce=he&&he.v8;ce&&(D=(E=ce.split("."))[0]>0&&E[0]<4?1:+(E[0]+E[1])),!D&&ie&&(!(E=ie.match(/Edge\/(\d+)/))||E[1]>=74)&&(E=ie.match(/Chrome\/(\d+)/))&&(D=+E[1]);var le=D,fe=le,ve=g,de=!!Object.getOwnPropertySymbols&&!ve((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&fe&&fe<41})),me=de&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ye=ae,ge=$,ke=ne,be=Object,Se=me?function(e){return"symbol"==typeof e}:function(e){var t=ye("Symbol");return ge(t)&&ke(t.prototype,be(e))},we=String,pe=function(e){try{return we(e)}catch(e){return"Object"}},Ae=$,Me=pe,Ie=TypeError,Te=function(e){if(Ae(e))return e;throw Ie(Me(e)+" is not a function")},Ee=Te,De=function(e,t){var a=e[t];return null==a?void 0:Ee(a)},Ce=p,He=$,Ne=X,Oe=TypeError,Le={exports:{}},Be=m,Pe=Object.defineProperty,Ye=function(e,t){try{Pe(Be,e,{value:t,configurable:!0,writable:!0})}catch(a){Be[e]=t}return t},_e=Ye,Re="__core-js_shared__",je=m[Re]||_e(Re,{}),ze=je;(Le.exports=function(e,t){return ze[e]||(ze[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.23.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Ve=G,Fe=Object,xe=function(e){return Fe(Ve(e))},Ue=xe,Ke=P({}.hasOwnProperty),Ge=Object.hasOwn||function(e,t){return Ke(Ue(e),t)},Ze=P,We=0,Je=Math.random(),$e=Ze(1..toString),qe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+$e(++We+Je,36)},Xe=m,Qe=Le.exports,et=Ge,tt=qe,at=de,nt=me,rt=Qe("wks"),ot=Xe.Symbol,it=ot&&ot.for,ut=nt?ot:ot&&ot.withoutSetter||tt,st=function(e){if(!et(rt,e)||!at&&"string"!=typeof rt[e]){var t="Symbol."+e;at&&et(ot,e)?rt[e]=ot[e]:rt[e]=nt&&it?it(t):ut(t)}return rt[e]},ht=p,ct=X,lt=Se,ft=De,vt=function(e,t){var a,n;if("string"===t&&He(a=e.toString)&&!Ne(n=Ce(a,e)))return n;if(He(a=e.valueOf)&&!Ne(n=Ce(a,e)))return n;if("string"!==t&&He(a=e.toString)&&!Ne(n=Ce(a,e)))return n;throw Oe("Can't convert object to primitive value")},dt=TypeError,mt=st("toPrimitive"),yt=function(e,t){if(!ct(e)||lt(e))return e;var a,n=ft(e,mt);if(n){if(void 0===t&&(t="default"),a=ht(n,e,t),!ct(a)||lt(a))return a;throw dt("Can't convert object to primitive value")}return void 0===t&&(t="number"),vt(e,t)},gt=Se,kt=function(e){var t=yt(e,"string");return gt(t)?t:t+""},bt=X,St=m.document,wt=bt(St)&&bt(St.createElement),pt=function(e){return wt?St.createElement(e):{}},At=!k&&!g((function(){return 7!=Object.defineProperty(pt("div"),"a",{get:function(){return 7}}).a})),Mt=k,It=p,Tt=A,Et=C,Dt=J,Ct=kt,Ht=Ge,Nt=At,Ot=Object.getOwnPropertyDescriptor;y.f=Mt?Ot:function(e,t){if(e=Dt(e),t=Ct(t),Nt)try{return Ot(e,t)}catch(e){}if(Ht(e,t))return Et(!It(Tt.f,e,t),e[t])};var Lt={},Bt=k&&g((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Pt=X,Yt=String,_t=TypeError,Rt=function(e){if(Pt(e))return e;throw _t(Yt(e)+" is not an object")},jt=k,zt=At,Vt=Bt,Ft=Rt,xt=kt,Ut=TypeError,Kt=Object.defineProperty,Gt=Object.getOwnPropertyDescriptor,Zt="enumerable",Wt="configurable",Jt="writable";Lt.f=jt?Vt?function(e,t,a){if(Ft(e),t=xt(t),Ft(a),"function"==typeof e&&"prototype"===t&&"value"in a&&Jt in a&&!a.writable){var n=Gt(e,t);n&&n.writable&&(e[t]=a.value,a={configurable:Wt in a?a.configurable:n.configurable,enumerable:Zt in a?a.enumerable:n.enumerable,writable:!1})}return Kt(e,t,a)}:Kt:function(e,t,a){if(Ft(e),t=xt(t),Ft(a),zt)try{return Kt(e,t,a)}catch(e){}if("get"in a||"set"in a)throw Ut("Accessors not supported");return"value"in a&&(e[t]=a.value),e};var $t=Lt,qt=C,Xt=k?function(e,t,a){return $t.f(e,t,qt(1,a))}:function(e,t,a){return e[t]=a,e},Qt={exports:{}},ea=k,ta=Ge,aa=Function.prototype,na=ea&&Object.getOwnPropertyDescriptor,ra=ta(aa,"name"),oa={EXISTS:ra,PROPER:ra&&"something"===function(){}.name,CONFIGURABLE:ra&&(!ea||ea&&na(aa,"name").configurable)},ia=$,ua=je,sa=P(Function.toString);ia(ua.inspectSource)||(ua.inspectSource=function(e){return sa(e)});var ha,ca,la,fa=ua.inspectSource,va=$,da=fa,ma=m.WeakMap,ya=va(ma)&&/native code/.test(da(ma)),ga=Le.exports,ka=qe,ba=ga("keys"),Sa={},wa=ya,pa=m,Aa=P,Ma=X,Ia=Xt,Ta=Ge,Ea=je,Da=function(e){return ba[e]||(ba[e]=ka(e))},Ca=Sa,Ha="Object already initialized",Na=pa.TypeError,Oa=pa.WeakMap;if(wa||Ea.state){var La=Ea.state||(Ea.state=new Oa),Ba=Aa(La.get),Pa=Aa(La.has),Ya=Aa(La.set);ha=function(e,t){if(Pa(La,e))throw new Na(Ha);return t.facade=e,Ya(La,e,t),t},ca=function(e){return Ba(La,e)||{}},la=function(e){return Pa(La,e)}}else{var _a=Da("state");Ca[_a]=!0,ha=function(e,t){if(Ta(e,_a))throw new Na(Ha);return t.facade=e,Ia(e,_a,t),t},ca=function(e){return Ta(e,_a)?e[_a]:{}},la=function(e){return Ta(e,_a)}}var Ra={set:ha,get:ca,has:la,enforce:function(e){return la(e)?ca(e):ha(e,{})},getterFor:function(e){return function(t){var a;if(!Ma(t)||(a=ca(t)).type!==e)throw Na("Incompatible receiver, "+e+" required");return a}}},ja=g,za=$,Va=Ge,Fa=k,xa=oa.CONFIGURABLE,Ua=fa,Ka=Ra.enforce,Ga=Ra.get,Za=Object.defineProperty,Wa=Fa&&!ja((function(){return 8!==Za((function(){}),"length",{value:8}).length})),Ja=String(String).split("String"),$a=Qt.exports=function(e,t,a){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(t="get "+t),a&&a.setter&&(t="set "+t),(!Va(e,"name")||xa&&e.name!==t)&&Za(e,"name",{value:t,configurable:!0}),Wa&&a&&Va(a,"arity")&&e.length!==a.arity&&Za(e,"length",{value:a.arity});try{a&&Va(a,"constructor")&&a.constructor?Fa&&Za(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=Ka(e);return Va(n,"source")||(n.source=Ja.join("string"==typeof t?t:"")),e};Function.prototype.toString=$a((function(){return za(this)&&Ga(this).source||Ua(this)}),"toString");var qa=$,Xa=Lt,Qa=Qt.exports,en=Ye,tn={},an=Math.ceil,nn=Math.floor,rn=Math.trunc||function(e){var t=+e;return(t>0?nn:an)(t)},on=function(e){var t=+e;return t!=t||0===t?0:rn(t)},un=on,sn=Math.max,hn=Math.min,cn=function(e,t){var a=un(e);return a<0?sn(a+t,0):hn(a,t)},ln=on,fn=Math.min,vn=function(e){return e>0?fn(ln(e),9007199254740991):0},dn=function(e){return vn(e.length)},mn=J,yn=cn,gn=dn,kn=function(e){return function(t,a,n){var r,o=mn(t),i=gn(o),u=yn(n,i);if(e&&a!=a){for(;i>u;)if((r=o[u++])!=r)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===a)return e||u||0;return!e&&-1}},bn={includes:kn(!0),indexOf:kn(!1)},Sn=Ge,wn=J,pn=bn.indexOf,An=Sa,Mn=P([].push),In=function(e,t){var a,n=wn(e),r=0,o=[];for(a in n)!Sn(An,a)&&Sn(n,a)&&Mn(o,a);for(;t.length>r;)Sn(n,a=t[r++])&&(~pn(o,a)||Mn(o,a));return o},Tn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");tn.f=Object.getOwnPropertyNames||function(e){return In(e,Tn)};var En={};En.f=Object.getOwnPropertySymbols;var Dn=ae,Cn=tn,Hn=En,Nn=Rt,On=P([].concat),Ln=Dn("Reflect","ownKeys")||function(e){var t=Cn.f(Nn(e)),a=Hn.f;return a?On(t,a(e)):t},Bn=Ge,Pn=Ln,Yn=y,_n=Lt,Rn=g,jn=$,zn=/#|\.prototype\./,Vn=function(e,t){var a=xn[Fn(e)];return a==Kn||a!=Un&&(jn(t)?Rn(t):!!t)},Fn=Vn.normalize=function(e){return String(e).replace(zn,".").toLowerCase()},xn=Vn.data={},Un=Vn.NATIVE="N",Kn=Vn.POLYFILL="P",Gn=Vn,Zn=m,Wn=y.f,Jn=Xt,$n=function(e,t,a,n){n||(n={});var r=n.enumerable,o=void 0!==n.name?n.name:t;return qa(a)&&Qa(a,o,n),n.global?r?e[t]=a:en(t,a):(n.unsafe?e[t]&&(r=!0):delete e[t],r?e[t]=a:Xa.f(e,t,{value:a,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})),e},qn=Ye,Xn=function(e,t,a){for(var n=Pn(t),r=_n.f,o=Yn.f,i=0;i<n.length;i++){var u=n[i];Bn(e,u)||a&&Bn(a,u)||r(e,u,o(t,u))}},Qn=Gn,er=function(e,t){var a,n,r,o,i,u=e.target,s=e.global,h=e.stat;if(a=s?Zn:h?Zn[u]||qn(u,{}):(Zn[u]||{}).prototype)for(n in t){if(o=t[n],r=e.dontCallGetSet?(i=Wn(a,n))&&i.value:a[n],!Qn(s?n:u+(h?".":"#")+n,e.forced)&&void 0!==r){if(typeof o==typeof r)continue;Xn(o,r)}(e.sham||r&&r.sham)&&Jn(o,"sham",!0),$n(a,n,o,e)}},tr=j,ar=Array.isArray||function(e){return"Array"==tr(e)},nr={};nr[st("toStringTag")]="z";var rr="[object z]"===String(nr),or=$,ir=j,ur=st("toStringTag"),sr=Object,hr="Arguments"==ir(function(){return arguments}()),cr=rr?ir:function(e){var t,a,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=function(e,t){try{return e[t]}catch(e){}}(t=sr(e),ur))?a:hr?ir(t):"Object"==(n=ir(t))&&or(t.callee)?"Arguments":n},lr=P,fr=g,vr=$,dr=cr,mr=fa,yr=function(){},gr=[],kr=ae("Reflect","construct"),br=/^\s*(?:class|function)\b/,Sr=lr(br.exec),wr=!br.exec(yr),pr=function(e){if(!vr(e))return!1;try{return kr(yr,gr,e),!0}catch(e){return!1}},Ar=function(e){if(!vr(e))return!1;switch(dr(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return wr||!!Sr(br,mr(e))}catch(e){return!0}};Ar.sham=!0;var Mr=!kr||fr((function(){var e;return pr(pr.call)||!pr(Object)||!pr((function(){e=!0}))||e}))?Ar:pr,Ir=kt,Tr=Lt,Er=C,Dr=function(e,t,a){var n=Ir(t);n in e?Tr.f(e,n,Er(0,a)):e[n]=a},Cr=g,Hr=le,Nr=st("species"),Or=P([].slice),Lr=er,Br=ar,Pr=Mr,Yr=X,_r=cn,Rr=dn,jr=J,zr=Dr,Vr=st,Fr=Or,xr=function(e){return Hr>=51||!Cr((function(){var t=[];return(t.constructor={})[Nr]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}("slice"),Ur=Vr("species"),Kr=Array,Gr=Math.max;Lr({target:"Array",proto:!0,forced:!xr},{slice:function(e,t){var a,n,r,o=jr(this),i=Rr(o),u=_r(e,i),s=_r(void 0===t?i:t,i);if(Br(o)&&(a=o.constructor,(Pr(a)&&(a===Kr||Br(a.prototype))||Yr(a)&&null===(a=a[Ur]))&&(a=void 0),a===Kr||void 0===a))return Fr(o,u,s);for(n=new(void 0===a?Kr:a)(Gr(s-u,0)),r=0;u<s;u++,r++)u in o&&zr(n,r,o[u]);return n.length=r,n}});var Zr=[0,31,28,31,30,31,30,31,31,30,31,30,31],Wr=[Zr,Zr.slice()];function Jr(e,t){return e-t*Math.floor(e/t)}function $r(e,t){return Math.floor(e/t)}function qr(e){return!(e%4||!(e%100)&&e%400)}function Xr(e,t){return Wr[+qr(t)][e]}function Qr(e){return"object"===t(e)&&Date.prototype===e.__proto__}function eo(e){if(!Qr(e))throw new TypeError("Argument not a Date: ".concat(e));var t=e.getDate()+31*e.getMonth();return e.getMonth()>1&&(t-=Math.floor((4*(e.getMonth()+1)+23)/10),qr(e.getFullYear())&&t++),t}function to(e){if(!Qr(e))throw new TypeError("Argument not a Date: ".concat(e));var t=e.getFullYear()-1;return eo(e)+365*t+(Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))}function ao(e,t,a){var n=e-1;return 0+365*n+$r(n,4)-$r(n,100)+$r(n,400)+$r(367*t-362,12)+Math.floor(t<=2?0:qr(e)?-1:-2)+a}function no(e){if("number"!=typeof e)throw new TypeError("Argument not a Number: ".concat(e));var t=function(e){var t=e-1,a=$r(t,146097),n=Jr(t,146097),r=$r(n,36524),o=Jr(n,36524),i=$r(o,1461),u=$r(Jr(o,1461),365),s=400*a+100*r+4*i+u;return 4!=r&&4!=u?s+1:s}(e=Math.trunc(e)),a=$r(12*(e-ao(t,1,1)+(e<ao(t,3,1)?0:qr(t)?1:2))+373,367),n=e-ao(t,a,1)+1,r=new Date(t,a-1,n);return t<100&&t>=0&&r.setFullYear(t),r}Wr[1][2]=29;var ro=function(){function e(){a(this,e)}return r(e,null,[{key:"isLeapYear",value:function(e){return qr(e)}},{key:"daysInMonth",value:function(e,t){return Xr(e,t)}},{key:"isDate",value:function(e){return Qr(e)}},{key:"dayOfYear",value:function(e){return eo(e)}},{key:"greg2abs",value:function(e){return to(e)}},{key:"abs2greg",value:function(e){return no(e)}}]),e}();o(ro,"monthNames",["","January","February","March","April","May","June","July","August","September","October","November","December"]);function oo(e){switch(e){case 1:return"א";case 2:return"ב";case 3:return"ג";case 4:return"ד";case 5:return"ה";case 6:return"ו";case 7:return"ז";case 8:return"ח";case 9:return"ט";case 10:return"י";case 20:return"כ";case 30:return"ל";case 40:return"מ";case 50:return"נ";case 60:return"ס";case 70:return"ע";case 80:return"פ";case 90:return"צ";case 100:return"ק";case 200:return"ר";case 300:return"ש";case 400:return"ת";default:return"*INVALID*"}}function io(e){for(var t=[];e>0;){if(15===e||16===e){t.push(9),t.push(e-9);break}var a=100,n=void 0;for(n=400;n>e;n-=a)n===a&&(a/=10);t.push(n),e-=n}return t}function uo(e){var t=parseInt(e,10);if(!t)throw new TypeError("invalid parameter to gematriya ".concat(e));var a="",n=Math.floor(t/1e3);if(n>0&&5!==n){for(var r=io(n),o=0;o<r.length;o++)a+=oo(r[o]);a+="׳"}var i=io(t%1e3);if(1==i.length)return a+oo(i[0])+"׳";for(var u=0;u<i.length;u++)u+1===i.length&&(a+="״"),a+=oo(i[u]);return a}var so=pe,ho=TypeError,co=cr,lo=String,fo=function(e){if("Symbol"===co(e))throw TypeError("Cannot convert a Symbol value to a string");return lo(e)},vo=cn,mo=dn,yo=Dr,go=Array,ko=Math.max,bo=function(e,t,a){for(var n=mo(e),r=vo(t,n),o=vo(void 0===a?n:a,n),i=go(ko(o-r,0)),u=0;r<o;r++,u++)yo(i,u,e[r]);return i.length=u,i},So=Math.floor,wo=function(e,t){var a=e.length,n=So(a/2);return a<8?po(e,t):Ao(e,wo(bo(e,0,n),t),wo(bo(e,n),t),t)},po=function(e,t){for(var a,n,r=e.length,o=1;o<r;){for(n=o,a=e[o];n&&t(e[n-1],a)>0;)e[n]=e[--n];n!==o++&&(e[n]=a)}return e},Ao=function(e,t,a,n){for(var r=t.length,o=a.length,i=0,u=0;i<r||u<o;)e[i+u]=i<r&&u<o?n(t[i],a[u])<=0?t[i++]:a[u++]:i<r?t[i++]:a[u++];return e},Mo=wo,Io=g,To=re.match(/firefox\/(\d+)/i),Eo=!!To&&+To[1],Do=/MSIE|Trident/.test(re),Co=re.match(/AppleWebKit\/(\d+)\./),Ho=!!Co&&+Co[1],No=er,Oo=P,Lo=Te,Bo=xe,Po=dn,Yo=function(e,t){if(!delete e[t])throw ho("Cannot delete property "+so(t)+" of "+so(e))},_o=fo,Ro=g,jo=Mo,zo=function(e,t){var a=[][e];return!!a&&Io((function(){a.call(null,t||function(){return 1},1)}))},Vo=Eo,Fo=Do,xo=le,Uo=Ho,Ko=[],Go=Oo(Ko.sort),Zo=Oo(Ko.push),Wo=Ro((function(){Ko.sort(void 0)})),Jo=Ro((function(){Ko.sort(null)})),$o=zo("sort"),qo=!Ro((function(){if(xo)return xo<70;if(!(Vo&&Vo>3)){if(Fo)return!0;if(Uo)return Uo<603;var e,t,a,n,r="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:a=3;break;case 68:case 71:a=4;break;default:a=2}for(n=0;n<47;n++)Ko.push({k:t+n,v:a})}for(Ko.sort((function(e,t){return t.v-e.v})),n=0;n<Ko.length;n++)t=Ko[n].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return"DGBEFHACIJK"!==r}}));No({target:"Array",proto:!0,forced:Wo||!Jo||!$o||!qo},{sort:function(e){void 0!==e&&Lo(e);var t=Bo(this);if(qo)return void 0===e?Go(t):Go(t,e);var a,n,r=[],o=Po(t);for(n=0;n<o;n++)n in t&&Zo(r,t[n]);for(jo(r,function(e){return function(t,a){return void 0===a?-1:void 0===t?1:void 0!==e?+e(t,a)||0:_o(t)>_o(a)?1:-1}}(e)),a=r.length,n=0;n<a;)t[n]=r[n++];for(;n<o;)Yo(t,n++);return t}});var Xo={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},Qo={h:"he",a:"ashkenazi",s:"en","":"en"},ei=function(){function e(){a(this,e)}return r(e,null,[{key:"lookupTranslation",value:function(e,t){var a=t&&t.toLowerCase(),n=("string"==typeof t&&this.locales[a]||this.activeLocale)[e];if(n&&n.length&&n[0].length)return n[0]}},{key:"gettext",value:function(e,t){var a=this.lookupTranslation(e,t);return void 0===a?e:a}},{key:"addLocale",value:function(e,a){if("object"!==t(a.contexts)||"object"!==t(a.contexts[""]))throw new TypeError("Locale '".concat(e,"' invalid compact format"));this.locales[e.toLowerCase()]=a.contexts[""]}},{key:"useLocale",value:function(e){var t=e.toLowerCase(),a=this.locales[t];if(!a)throw new RangeError("Locale '".concat(e,"' not found"));return this.activeName=Qo[t]||t,this.activeLocale=a,this.activeLocale}},{key:"getLocaleName",value:function(){return this.activeName}},{key:"getLocaleNames",value:function(){return Object.keys(this.locales).sort()}},{key:"ordinal",value:function(e,t){var a=t&&t.toLowerCase()||this.activeName;if(!a)return this.getEnOrdinal(e);switch(a){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+"."}}},{key:"getEnOrdinal",value:function(e){var t=["th","st","nd","rd"],a=e%100;return e+(t[(a-20)%10]||t[a]||t[0])}},{key:"hebrewStripNikkud",value:function(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}]),e}();o(ei,"locales",Object.create(null)),o(ei,"activeLocale",null),o(ei,"activeName",null),ei.addLocale("en",Xo),ei.addLocale("s",Xo),ei.addLocale("",Xo),ei.useLocale("en");var ti={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},ai=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],ni=[ai.concat(["Adar","Nisan"]),ai.concat(["Adar I","Adar II","Nisan"])],ri=Object.create(null),oi=-1373428;function ii(e,t,a){var n=a;if(t<7){for(var r=7;r<=ci(e);r++)n+=li(r,e);for(var o=1;o<t;o++)n+=li(o,e)}else for(var i=7;i<t;i++)n+=li(i,e);return oi+vi(e)+n-1}function ui(e){return oi+vi(e)}function si(e){if("number"!=typeof e||isNaN(e))throw new TypeError("invalid parameter to abs2hebrew ".concat(e));e=Math.trunc(e);for(var t=Math.floor((e-oi)/365.24682220597794);ui(t)<=e;)++t;for(var a=e<ii(--t,1,1)?7:1;e>ii(t,a,li(a,t));)++a;return{yy:t,mm:a,dd:1+e-ii(t,a,1)}}function hi(e){return(1+7*e)%19<7}function ci(e){return 12+hi(e)}function li(e,t){switch(e){case 2:case 4:case 6:case 10:case 13:return 29}return 12===e&&!hi(t)||8===e&&!mi(t)||9===e&&yi(t)?29:30}function fi(e,t){if("number"!=typeof e||isNaN(e)||e<1||e>14)throw new TypeError("bad month argument ".concat(e));return ni[+hi(t)][e]}function vi(e){var t=ri[e]=ri[e]||function(e){var t=e-1,a=235*Math.floor(t/19)+t%19*12+Math.floor((t%19*7+1)/19),n=204+a%1080*793,r=5+12*a+793*Math.floor(a/1080)+Math.floor(n/1080),o=n%1080+r%24*1080,i=1+29*a+Math.floor(r/24),u=i+(o>=19440||2==i%7&&o>=9924&&!hi(e)||1==i%7&&o>=16789&&hi(t));return u+(u%7==0||u%7==3||u%7==5)}(e);return t}function di(e){return vi(e+1)-vi(e)}function mi(e){return di(e)%10==5}function yi(e){return di(e)%10==3}function gi(e){throw new TypeError(e)}var ki="day",bi="week",Si="month",wi="year",pi={d:ki,w:bi,M:Si,y:wi},Ai={day:ki,week:bi,month:Si,year:wi},Mi=function(){function e(t,n,r){if(a(this,e),2==arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3==arguments.length){if(this.day=this.month=1,r=parseInt(r,10),isNaN(r))throw new TypeError("HDate called with bad year argument: ".concat(r));if(this.year=r,this.setMonth(n),t=parseInt(t,10),isNaN(t))throw new TypeError("HDate called with bad day argument: ".concat(t));this.setDate(t)}else{void 0===t&&(t=new Date);var o="number"!=typeof t||isNaN(t)?Qr(t)?to(t):e.isHDate(t)?{dd:t.day,mm:t.month,yy:t.year}:gi("HDate called with bad argument: ".concat(t)):t,i="number"==typeof o,u=i?si(o):o;this.day=u.dd,this.month=u.mm,this.year=u.yy,i&&(this.abs0=o)}}return r(e,[{key:"getFullYear",value:function(){return this.year}},{key:"isLeapYear",value:function(){return hi(this.year)}},{key:"getMonth",value:function(){return this.month}},{key:"getTishreiMonth",value:function(){var e=ci(this.getFullYear());return(this.getMonth()+e-6)%e||e}},{key:"daysInMonth",value:function(){return li(this.getMonth(),this.getFullYear())}},{key:"getDate",value:function(){return this.day}},{key:"getDay",value:function(){return Jr(this.abs(),7)}},{key:"setFullYear",value:function(e){return this.year=e,Ii(this),this}},{key:"setMonth",value:function(t){return this.month=e.monthNum(t),Ii(this),this}},{key:"setDate",value:function(e){return this.day=e,Ii(this),this}},{key:"greg",value:function(){return no(this.abs())}},{key:"abs",value:function(){return"number"!=typeof this.abs0&&(this.abs0=ii(this.year,this.month,this.day)),this.abs0}},{key:"getMonthName",value:function(){return fi(this.getMonth(),this.getFullYear())}},{key:"render",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t||ei.getLocaleName(),r=this.getDate(),o=ei.gettext(this.getMonthName(),n),i=ei.ordinal(r,n),u=e.getDayOfTranslation(n),s="".concat(i).concat(u," ").concat(o);if(a){var h=this.getFullYear();return"".concat(s,", ").concat(h)}return s}},{key:"renderGematriya",value:function(){var e=this.getDate(),t=ei.gettext(this.getMonthName(),"he"),a=this.getFullYear();return uo(e)+" "+t+" "+uo(a)}},{key:"before",value:function(e){return Ei(e,this,-1)}},{key:"onOrBefore",value:function(e){return Ei(e,this,0)}},{key:"nearest",value:function(e){return Ei(e,this,3)}},{key:"onOrAfter",value:function(e){return Ei(e,this,6)}},{key:"after",value:function(e){return Ei(e,this,7)}},{key:"next",value:function(){return new e(this.abs()+1)}},{key:"prev",value:function(){return new e(this.abs()-1)}},{key:"add",value:function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(t=parseInt(t,10)))return new e(this);if((a=e.standardizeUnits(a))===ki)return new e(this.abs()+t);if(a===bi)return new e(this.abs()+7*t);if(a===wi)return new e(this.getDate(),this.getMonth(),this.getFullYear()+t);if(a===Si){var n=new e(this),r=t>0?1:-1;t=Math.abs(t);for(var o=0;o<t;o++)n=new e(n.abs()+r*n.daysInMonth());return n}}},{key:"subtract",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}},{key:"deltaDays",value:function(t){if(!e.isHDate(t))throw new TypeError("Bad argument: ".concat(t));return this.abs()-t.abs()}},{key:"isSameDate",value:function(t){return!!e.isHDate(t)&&(this.year==t.year&&this.month==t.month&&this.day==t.day)}},{key:"toString",value:function(){var e=this.getDate(),t=this.getFullYear(),a=this.getMonthName();return"".concat(e," ").concat(a," ").concat(t)}}],[{key:"hebrew2abs",value:function(e,t,a){return ii(e,t,a)}},{key:"abs2hebrew",value:function(e){return si(e)}},{key:"getDayOfTranslation",value:function(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}var t=ei.lookupTranslation("of",e);return t?" "+t:"ashkenazi"===e.substring(0,9)?" of":""}},{key:"standardizeUnits",value:function(e){var t=pi[e]||String(e||"").toLowerCase().replace(/s$/,"");return Ai[t]||gi("Invalid units '".concat(e,"'"))}},{key:"isLeapYear",value:function(e){return hi(e)}},{key:"monthsInYear",value:function(e){return ci(e)}},{key:"daysInMonth",value:function(e,t){return li(e,t)}},{key:"getMonthName",value:function(e,t){return fi(e,t)}},{key:"monthNum",value:function(t){if("number"==typeof t){if(isNaN(t)||t>14)throw new RangeError("Invalid month number: ".concat(t));return t}return t.charCodeAt(0)>=48&&t.charCodeAt(0)<=57?parseInt(t,10):e.monthFromName(t)}},{key:"daysInYear",value:function(e){return di(e)}},{key:"longCheshvan",value:function(e){return mi(e)}},{key:"shortKislev",value:function(e){return yi(e)}},{key:"monthFromName",value:function(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError("Invalid month name: ".concat(e));return e}var t=e.toLowerCase();switch(t[0]){case"n":case"נ":if("o"==t[1])break;return ti.NISAN;case"i":return ti.IYYAR;case"e":return ti.ELUL;case"c":case"ח":return ti.CHESHVAN;case"k":case"כ":return ti.KISLEV;case"s":switch(t[1]){case"i":return ti.SIVAN;case"h":return ti.SHVAT}case"t":switch(t[1]){case"a":return ti.TAMUZ;case"i":return ti.TISHREI;case"e":return ti.TEVET}break;case"a":switch(t[1]){case"v":return ti.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?ti.ADAR_I:ti.ADAR_II}break;case"ס":return ti.SIVAN;case"ט":return ti.TEVET;case"ש":return ti.SHVAT;case"א":switch(t[1]){case"ב":return ti.AV;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?ti.ADAR_I:ti.ADAR_II;case"י":return ti.IYYAR;case"ל":return ti.ELUL}break;case"ת":switch(t[1]){case"מ":return ti.TAMUZ;case"ש":return ti.TISHREI}}throw new RangeError("Unable to parse month name: ".concat(e))}},{key:"dayOnOrBefore",value:function(e,t){return t-(t-e)%7}},{key:"isHDate",value:function(e){return null!==e&&"object"===t(e)&&"number"==typeof e.year&&"number"==typeof e.month&&"number"==typeof e.day&&"function"==typeof e.greg&&"function"==typeof e.abs}}]),e}();function Ii(e){Ti(e),function(e){e.day<1&&(e.month==ti.TISHREI&&(e.year-=1),e.day+=li(e.month,e.year),e.month-=1,Ii(e));e.day>li(e.month,e.year)&&(e.month===ti.ELUL&&(e.year+=1),e.day-=li(e.month,e.year),e.month+=1,Ii(e));Ti(e)}(e)}function Ti(e){e.month!==ti.ADAR_II||e.isLeapYear()?e.month<1?(e.month+=ci(e.year),e.year-=1,Ii(e)):e.month>ci(e.year)&&(e.month-=ci(e.year),e.year+=1,Ii(e)):(e.month-=1,Ii(e)),delete e.abs0}function Ei(e,t,a){return new Mi(Mi.dayOnOrBefore(e,t.abs()+a))}var Di={CHAG:1,LIGHT_CANDLES:2,YOM_TOV_ENDS:4,CHUL_ONLY:8,IL_ONLY:16,LIGHT_CANDLES_TZEIS:32,CHANUKAH_CANDLES:64,ROSH_CHODESH:128,MINOR_FAST:256,SPECIAL_SHABBAT:512,PARSHA_HASHAVUA:1024,DAF_YOMI:2048,OMER_COUNT:2048,MODERN_HOLIDAY:8192,MAJOR_FAST:16384,SHABBAT_MEVARCHIM:32768,MOLAD:65536,USER_EVENT:131072,HEBREW_DATE:262144,MINOR_HOLIDAY:524288,EREV:524288,CHOL_HAMOED:2097152,MISHNA_YOMI:4194304},Ci=function(){function e(n,r,o,i){var u=this;a(this,e),this.date=n,this.desc=r,this.mask=+o,"object"===t(i)&&null!==i&&Object.keys(i).forEach((function(e){return u[e]=i[e]}))}return r(e,[{key:"getDate",value:function(){return this.date}},{key:"getDesc",value:function(){return this.desc}},{key:"getFlags",value:function(){return this.mask}},{key:"render",value:function(e){return ei.gettext(this.desc,e)}},{key:"renderBrief",value:function(e){return this.render(e)}},{key:"getEmoji",value:function(){return this.emoji||null}},{key:"basename",value:function(){return this.getDesc()}},{key:"url",value:function(){}},{key:"observedInIsrael",value:function(){return!(this.mask&Di.CHUL_ONLY)}},{key:"observedInDiaspora",value:function(){return!(this.mask&Di.IL_ONLY)}},{key:"getAttrs",value:function(){return this}},{key:"clone",value:function(){var e=new this.constructor;for(var t in this)this.hasOwnProperty(t)&&(e[t]=this[t]);return e}}]),e}(),Hi=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"],Ni=function(e){i(n,e);var t=c(n);function n(e){return a(this,n),t.call(this,e,e.toString(),Di.HEBREW_DATE)}return r(n,[{key:"render",value:function(e){var t=e&&e.toLowerCase()||ei.getLocaleName(),a=this.getDate();switch(t){case"h":case"he":case"he-x-nonikud":var n=a.getDate(),r=ei.gettext(a.getMonthName(),t),o=a.getFullYear();return uo(n)+" "+r+" "+uo(o);default:return a.render(t,!0)}}},{key:"renderBrief",value:function(e){var t=e&&e.toLowerCase()||ei.getLocaleName(),a=this.getDate();if(a.getMonth()===ti.TISHREI&&1===a.getDate())return this.render(t);switch(t){case"h":case"he":case"he-x-nonikud":var n=a.getDate(),r=ei.gettext(a.getMonthName(),t);return uo(n)+" "+r;default:return a.render(t,!1)}}}],[{key:"renderHebrew",value:function(e,t,a){return uo(e)+" "+t+" "+uo(a)}}]),n}(Ci),Oi=function(){function e(t,n,r){a(this,e),this.date=t,this.latitude=n,this.longitude=r,this.julianDate=function(e){var t=e.getFullYear(),a=e.getMonth()+1,n=e.getDate();a<3&&(t--,a+=12);var r=Math.floor(t/100),o=2-r+Math.floor(r/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(a+1))+n+o-1524.5}(t)}return r(e,[{key:"solarNoon",get:function(){return function(e,t,a){var n=Fi(Bi(e-t/360)),r=Bi(e+(720-4*t-n)/1440);n=Fi(r);var o=720-4*t-n;for(;o<0;)o+=1440;for(;o>=1440;)o-=1440;return Li(a,o)}(this.julianDate,this.longitude,this.date)}},{key:"timeAtAngle",value:function(e,t){return function(e,t,a,n,r,o){var i=xi(e,t,a,r,o),u=xi(e,t,a+i/1440,r,o);return function(e){for(var t=!1,a="".concat(e),n=0;n<a.length;n++){var r=a.charAt(n);if(0!==n||"-"!==r&&"+"!==r)if("."!==r||t){if(r<"0"||r>"9")return!1}else t=!0}return!0}(u)?Li(n,u):new Date(NaN)}(t,e,this.julianDate,this.date,this.latitude,this.longitude)}}]),e}();function Li(e,t){var a=60*(t-Math.floor(t));return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),0,t,a))}function Bi(e){return(e-2451545)/36525}function Pi(e){return 180*e/Math.PI}function Yi(e){return Math.PI*e/180}function _i(e){for(var t=280.46646+e*(36000.76983+3032e-7*e);t>360;)t-=360;for(;t<0;)t+=360;return t}function Ri(e){return 357.52911+e*(35999.05029-1537e-7*e)}function ji(e){var t=_i(e),a=function(e){var t=Yi(Ri(e));return Math.sin(t)*(1.914602-e*(.004817+14e-6*e))+Math.sin(t+t)*(.019993-101e-6*e)+289e-6*Math.sin(t+t+t)}(e);return t+a}function zi(e){var t=function(e){return 23+(26+(21.448-e*(46.815+e*(59e-5-.001813*e)))/60)/60}(e),a=125.04-1934.136*e;return t+.00256*Math.cos(Yi(a))}function Vi(e){var t=zi(e),a=function(e){var t=125.04-1934.136*e;return ji(e)-.00569-.00478*Math.sin(Yi(t))}(e),n=Math.sin(Yi(t))*Math.sin(Yi(a));return Pi(Math.asin(n))}function Fi(e){var t=zi(e),a=_i(e),n=function(e){return.016708634-e*(42037e-9+1.267e-7*e)}(e),r=Ri(e),o=Math.tan(Yi(t)/2);o*=o;var i=Math.sin(2*Yi(a)),u=Math.sin(Yi(r));return 4*Pi(o*i-2*n*u+4*n*o*u*Math.cos(2*Yi(a))-.5*o*o*Math.sin(4*Yi(a))-1.25*n*n*Math.sin(2*Yi(r)))}function xi(e,t,a,n,r){var o=Bi(a),i=Fi(o),u=function(e,t,a){var n=Yi(t),r=Yi(a),o=Math.cos(Yi(90+e))/(Math.cos(n)*Math.cos(r))-Math.tan(n)*Math.tan(r);return Math.acos(o)}(t,n,Vi(o));return e||(u=-u),720-4*(r+Pi(u))-i}var Ui=.833,Ki=.3,Gi=6,Zi=12,Wi=18,Ji=-6,$i=function(){function e(t,n,r){a(this,e),this.date=t,this.lat=n,this.longitude=r,this.sun=new Oi(t,n,r)}return r(e,[{key:"solarNoon",get:function(){return this.sun.solarNoon}},{key:"sunrise",get:function(){return this.sun.timeAtAngle(Ui,!0)}},{key:"sunset",get:function(){return this.sun.timeAtAngle(Ui)}},{key:"sunriseEnd",get:function(){return this.sun.timeAtAngle(Ki,!0)}},{key:"sunsetStart",get:function(){return this.sun.timeAtAngle(Ki,!1)}},{key:"civilDawn",get:function(){return this.sun.timeAtAngle(Gi,!0)}},{key:"dawn",get:function(){return this.civilDawn}},{key:"civilDusk",get:function(){return this.sun.timeAtAngle(Gi,!1)}},{key:"dusk",get:function(){return this.civilDusk}},{key:"nauticalDawn",get:function(){return this.sun.timeAtAngle(Zi,!0)}},{key:"nauticalDusk",get:function(){return this.sun.timeAtAngle(Zi,!1)}},{key:"nightStart",get:function(){return this.astronomicalDusk}},{key:"astronomicalDusk",get:function(){return this.sun.timeAtAngle(Wi,!1)}},{key:"astronomicalDawn",get:function(){return this.sun.timeAtAngle(Wi,!0)}},{key:"nightEnd",get:function(){return this.astronomicalDawn}},{key:"goldenHourStart",get:function(){return this.sun.timeAtAngle(Ji,!1)}},{key:"goldenHourEnd",get:function(){return this.sun.timeAtAngle(Ji,!0)}}]),e}(),qi={};var Xi=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function Qi(e,t){var a=function(e){var t=qi[e];if(t)return t;var a=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:e});return qi[e]=a,a}(e).format(t),n=Xi.exec(a),r=n[4];return"24"==r&&(r="00"),n[3]=eu(n[3]),"".concat(n[3],"-").concat(n[1],"-").concat(n[2],"T").concat(r,":").concat(n[5],":").concat(n[6],"Z")}function eu(e){return e<0?"-00"+eu(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function tu(e){return e<10?"0"+e:String(e)}var au=function(){function e(t,n,r){if(a(this,e),"number"!=typeof n)throw new TypeError("Invalid latitude");if("number"!=typeof r)throw new TypeError("Invalid longitude");if(n<-90||n>90)throw new RangeError("Latitude ".concat(n," out of range [-90,90]"));if(r<-180||r>180)throw new RangeError("Longitude ".concat(r," out of range [-180,180]"));var o=Qr(t)?t:Mi.isHDate(t)?t.greg():function(e){throw new TypeError(e)}("invalid date: ".concat(t));this.date=o,this.solarCalc=new $i(this.date,n,r),this.sun=this.solarCalc.sun,this.latitude=n,this.longitude=r}return r(e,[{key:"suntime",value:function(){return{solarNoon:this.solarCalc.solarNoon,sunrise:this.sunrise(),sunset:this.sunset(),sunriseEnd:this.solarCalc.sunriseEnd,sunsetStart:this.solarCalc.sunsetStart,dawn:this.dawn(),dusk:this.dusk(),nauticalDawn:this.solarCalc.nauticalDawn,nauticalDusk:this.solarCalc.nauticalDusk,nightEnd:this.solarCalc.nightEnd,night:this.solarCalc.nightStart,goldenHourEnd:this.solarCalc.goldenHourEnd,goldenHour:this.solarCalc.goldenHourStart,alotHaShachar:this.alotHaShachar(),misheyakir:this.misheyakir(),misheyakirMachmir:this.misheyakirMachmir(),tzeit:this.tzeit()}}},{key:"sunrise",value:function(){return this.sun.timeAtAngle(.833333,!0)}},{key:"sunset",value:function(){return this.sun.timeAtAngle(.833333,!1)}},{key:"dawn",value:function(){return this.solarCalc.dawn}},{key:"dusk",value:function(){return this.solarCalc.dusk}},{key:"hour",value:function(){return(this.sunset()-this.sunrise())/12}},{key:"hourMins",value:function(){return this.hour()/6e4}},{key:"gregEve",value:function(){var t=new Date(this.date);return t.setDate(t.getDate()-1),new e(t,this.latitude,this.longitude).sunset()}},{key:"nightHour",value:function(){return(this.sunrise()-this.gregEve())/12}},{key:"nightHourMins",value:function(){return this.nightHour()/6e4}},{key:"hourOffset",value:function(e){return new Date(this.sunrise().getTime()+this.hour()*e)}},{key:"chatzot",value:function(){return this.hourOffset(6)}},{key:"chatzotNight",value:function(){return new Date(this.sunrise().getTime()-6*this.nightHour())}},{key:"alotHaShachar",value:function(){return this.sun.timeAtAngle(16.1,!0)}},{key:"misheyakir",value:function(){return this.sun.timeAtAngle(11.5,!0)}},{key:"misheyakirMachmir",value:function(){return this.sun.timeAtAngle(10.2,!0)}},{key:"sofZmanShma",value:function(){return this.hourOffset(3)}},{key:"sofZmanTfilla",value:function(){return this.hourOffset(4)}},{key:"sofZmanShmaMGA",value:function(){var e=this.sunriseOffset(-72),t=(this.sunsetOffset(72)-e)/12;return new Date(e.getTime()+3*t)}},{key:"sofZmanTfillaMGA",value:function(){var e=this.sunriseOffset(-72),t=(this.sunsetOffset(72)-e)/12;return new Date(e.getTime()+4*t)}},{key:"minchaGedola",value:function(){return this.hourOffset(6.5)}},{key:"minchaKetana",value:function(){return this.hourOffset(9.5)}},{key:"plagHaMincha",value:function(){return this.hourOffset(10.75)}},{key:"tzeit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8.5;return this.sun.timeAtAngle(e,!1)}},{key:"neitzHaChama",value:function(){return this.sunrise()}},{key:"shkiah",value:function(){return this.sunset()}},{key:"sunriseOffset",value:function(e){var t=this.sunrise();return isNaN(t.getTime())?t:(e>0&&t.getSeconds()>=30&&e++,t.setSeconds(0,0),new Date(t.getTime()+60*e*1e3))}},{key:"sunsetOffset",value:function(e){var t=this.sunset();return isNaN(t.getTime())?t:(e>0&&t.getSeconds()>=30&&e++,t.setSeconds(0,0),new Date(t.getTime()+60*e*1e3))}},{key:"sunsetOffsetTime",value:function(t,a){var n=this.sunsetOffset(t);return isNaN(n.getTime())?[void 0,void 0]:[n,e.formatTime(n,a)]}},{key:"tzeitTime",value:function(t,a){var n=this.tzeit(t);if(isNaN(n.getTime()))return[void 0,void 0];var r=e.roundTime(n);return[r,e.formatTime(r,a)]}}],[{key:"formatTime",value:function(e,t){var a=t.format(e),n=a.split(":");return"24"===n[0]?"00:"+n[1]:a}},{key:"roundTime",value:function(e){var t=e.getTime();if(isNaN(t))return e;var a=e.getMilliseconds(),n=e.getSeconds();if(0===n&&0===a)return e;var r=1e3*n+a;return new Date(t+(r>=3e4?6e4-r:-1*r))}},{key:"timeZoneOffset",value:function(e,t){var a=function(e,t){var a=Qi("UTC",t),n=Qi(e,t),r=new Date(a).getTime()-new Date(n).getTime();return Math.ceil(r/1e3/60)}(e,t),n=Math.abs(a),r=n%60;return(a<0?"+":"-")+tu(Math.floor(n/60))+":"+tu(r)}},{key:"formatISOWithTimeZone",value:function(t,a){return isNaN(a.getTime())?null:Qi(t,a).substring(0,19)+e.timeZoneOffset(t,a)}}]),e}(),nu=Object.create(null),ru={0:"UTC",4:"America/Puerto_Rico",5:"America/New_York",6:"America/Chicago",7:"America/Denver",8:"America/Los_Angeles",9:"America/Anchorage",10:"Pacific/Honolulu",11:"Pacific/Pago_Pago",13:"Pacific/Funafuti",14:"Pacific/Guam",15:"Pacific/Palau",16:"Pacific/Chuuk"},ou=Object.create(null);var iu=function(){function e(t,n,r,o,i,u,s){a(this,e);var h="number"==typeof t?t:parseFloat(t);if(isNaN(h)||h<-90||h>90)throw new RangeError("Latitude ".concat(t," out of range [-90,90]"));var c="number"==typeof n?n:parseFloat(n);if(isNaN(c)||c<-180||c>180)throw new RangeError("Longitude ".concat(n," out of range [-180,180]"));this.latitude=h,this.longitude=c,this.il=Boolean(r),this.tzid=o,this.name=i,this.cc=u,this.geoid=s}return r(e,[{key:"getLatitude",value:function(){return this.latitude}},{key:"getLongitude",value:function(){return this.longitude}},{key:"getIsrael",value:function(){return this.il}},{key:"getName",value:function(){return this.name}},{key:"getShortName",value:function(){var e=this.name;if(!e)return e;var t=e.indexOf(", ");if(-1===t)return e;if("US"===this.cc&&"D"===e[t+2]){if("C"===e[t+3])return e.substring(0,t+4);if("."===e[t+3]&&"C"===e[t+4])return e.substring(0,t+6)}return e.substring(0,t)}},{key:"getCountryCode",value:function(){return this.cc}},{key:"getTzid",value:function(){return this.tzid}},{key:"getTimeFormatter",value:function(){return function(e){var t=ou[e];if(t)return t;var a=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return ou[e]=a,a}(this.tzid)}},{key:"getGeoId",value:function(){return this.geoid}},{key:"sunset",value:function(e){return new au(e,this.getLatitude(),this.getLongitude()).sunset()}},{key:"tzeit",value:function(e,t){return new au(e,this.getLatitude(),this.getLongitude()).tzeit(t)}},{key:"toString",value:function(){return JSON.stringify(this)}}],[{key:"lookup",value:function(e){return nu[e.toLowerCase()]}},{key:"legacyTzToTzid",value:function(e,t){if(e=+e,"none"==t)return 0==e?"UTC":"Etc/GMT".concat(e>0?"+":"").concat(e);if(2==e&&"israel"==t)return"Asia/Jerusalem";if("eu"==t)switch(e){case-2:return"Atlantic/Cape_Verde";case-1:return"Atlantic/Azores";case 0:return"Europe/London";case 1:return"Europe/Paris";case 2:return"Europe/Athens"}else if("usa"==t)return ru[String(-1*e)]}},{key:"getUsaTzid",value:function(e,t,a){return 10==t&&"AK"==e?"America/Adak":7==t&&"AZ"==e?"Y"==a?"America/Denver":"America/Phoenix":ru[t]}},{key:"geonameCityDescr",value:function(e,t,a){"United States"==a&&(a="USA"),"United Kingdom"==a&&(a="UK");var n=e;return"Israel"!=a&&t&&0!=t.indexOf(e)&&(n+=", "+t),a&&(n+=", "+a),n}},{key:"addLocation",value:function(e,t){var a=e.toLowerCase();return!nu[a]&&(nu[a]=t,!0)}}]),e}();[["Ashdod","IL",31.79213,34.64966,"Asia/Jerusalem"],["Atlanta","US",33.749,-84.38798,"America/New_York"],["Austin","US",30.26715,-97.74306,"America/Chicago"],["Baghdad","IQ",33.34058,44.40088,"Asia/Baghdad"],["Beer Sheva","IL",31.25181,34.7913,"Asia/Jerusalem"],["Berlin","DE",52.52437,13.41053,"Europe/Berlin"],["Baltimore","US",39.29038,-76.61219,"America/New_York"],["Bogota","CO",4.60971,-74.08175,"America/Bogota"],["Boston","US",42.35843,-71.05977,"America/New_York"],["Budapest","HU",47.49801,19.03991,"Europe/Budapest"],["Buenos Aires","AR",-34.61315,-58.37723,"America/Argentina/Buenos_Aires"],["Buffalo","US",42.88645,-78.87837,"America/New_York"],["Chicago","US",41.85003,-87.65005,"America/Chicago"],["Cincinnati","US",39.162,-84.45689,"America/New_York"],["Cleveland","US",41.4995,-81.69541,"America/New_York"],["Dallas","US",32.78306,-96.80667,"America/Chicago"],["Denver","US",39.73915,-104.9847,"America/Denver"],["Detroit","US",42.33143,-83.04575,"America/Detroit"],["Eilat","IL",29.55805,34.94821,"Asia/Jerusalem"],["Gibraltar","GI",36.14474,-5.35257,"Europe/Gibraltar"],["Haifa","IL",32.81841,34.9885,"Asia/Jerusalem"],["Hawaii","US",21.30694,-157.85833,"Pacific/Honolulu"],["Helsinki","FI",60.16952,24.93545,"Europe/Helsinki"],["Houston","US",29.76328,-95.36327,"America/Chicago"],["Jerusalem","IL",31.76904,35.21633,"Asia/Jerusalem"],["Johannesburg","ZA",-26.20227,28.04363,"Africa/Johannesburg"],["Kiev","UA",50.45466,30.5238,"Europe/Kiev"],["La Paz","BO",-16.5,-68.15,"America/La_Paz"],["Livingston","US",40.79593,-74.31487,"America/New_York"],["Las Vegas","US",36.17497,-115.13722,"America/Los_Angeles"],["London","GB",51.50853,-.12574,"Europe/London"],["Los Angeles","US",34.05223,-118.24368,"America/Los_Angeles"],["Marseilles","FR",43.29695,5.38107,"Europe/Paris"],["Miami","US",25.77427,-80.19366,"America/New_York"],["Minneapolis","US",44.97997,-93.26384,"America/Chicago"],["Melbourne","AU",-37.814,144.96332,"Australia/Melbourne"],["Mexico City","MX",19.42847,-99.12766,"America/Mexico_City"],["Montreal","CA",45.50884,-73.58781,"America/Toronto"],["Moscow","RU",55.75222,37.61556,"Europe/Moscow"],["New York","US",40.71427,-74.00597,"America/New_York"],["Omaha","US",41.25861,-95.93779,"America/Chicago"],["Ottawa","CA",45.41117,-75.69812,"America/Toronto"],["Panama City","PA",8.9936,-79.51973,"America/Panama"],["Paris","FR",48.85341,2.3488,"Europe/Paris"],["Pawtucket","US",41.87871,-71.38256,"America/New_York"],["Petach Tikvah","IL",32.08707,34.88747,"Asia/Jerusalem"],["Philadelphia","US",39.95233,-75.16379,"America/New_York"],["Phoenix","US",33.44838,-112.07404,"America/Phoenix"],["Pittsburgh","US",40.44062,-79.99589,"America/New_York"],["Providence","US",41.82399,-71.41283,"America/New_York"],["Portland","US",45.52345,-122.67621,"America/Los_Angeles"],["Saint Louis","US",38.62727,-90.19789,"America/Chicago"],["Saint Petersburg","RU",59.93863,30.31413,"Europe/Moscow"],["San Diego","US",32.71533,-117.15726,"America/Los_Angeles"],["San Francisco","US",37.77493,-122.41942,"America/Los_Angeles"],["Sao Paulo","BR",-23.5475,-46.63611,"America/Sao_Paulo"],["Seattle","US",47.60621,-122.33207,"America/Los_Angeles"],["Sydney","AU",-33.86785,151.20732,"Australia/Sydney"],["Tel Aviv","IL",32.08088,34.78057,"Asia/Jerusalem"],["Tiberias","IL",32.79221,35.53124,"Asia/Jerusalem"],["Toronto","CA",43.70011,-79.4163,"America/Toronto"],["Vancouver","CA",49.24966,-123.11934,"America/Vancouver"],["White Plains","US",41.03399,-73.76291,"America/New_York"],["Washington DC","US",38.89511,-77.03637,"America/New_York"],["Worcester","US",42.26259,-71.80229,"America/New_York"]].forEach((function(e){var t=new iu(e[2],e[3],"IL"==e[1],e[4],e[0],e[1]);iu.addLocation(t.getName(),t)}));var uu=5,su=6;function hu(e,t,a,n,r){var o=!1,i=a==su,u=e?e.getFlags():Di.LIGHT_CANDLES;void 0!==e?a!=uu&&(u&(Di.LIGHT_CANDLES_TZEIS|Di.CHANUKAH_CANDLES)?i=!0:u&Di.YOM_TOV_ENDS&&(o=!0,i=!0)):a==su&&(o=!0,u=Di.LIGHT_CANDLES_TZEIS);var s=i?r.havdalahMins:r.candleLightingMins,h=new au(t,n.getLatitude(),n.getLongitude()),c=s?h.sunsetOffset(s):h.tzeit(r.havdalahDeg);return isNaN(c.getTime())?null:o?new lu(t,u,c,n,r.havdalahMins,e):new fu(t,u,c,n,e)}var cu=function(e){i(n,e);var t=c(n);function n(e,r,o,i,u,s){var h;a(this,n),(h=t.call(this,e,r,o)).eventTime=au.roundTime(i),h.location=u;var c=u.getTimeFormatter();return h.eventTimeStr=au.formatTime(h.eventTime,c),void 0!==s&&(h.linkedEvent=s),h}return r(n,[{key:"render",value:function(e){return ei.gettext(this.getDesc(),e)+": "+this.eventTimeStr}},{key:"renderBrief",value:function(e){return ei.gettext(this.getDesc(),e)}}]),n}(Ci),lu=function(e){i(n,e);var t=c(n);function n(e,r,o,i,u,s){var h;return a(this,n),h=t.call(this,e,"Havdalah",r,o,i,s),u&&(h.havdalahMins=u),h}return r(n,[{key:"render",value:function(e){return this.renderBrief(e)+": "+this.eventTimeStr}},{key:"renderBrief",value:function(e){var t=ei.gettext(this.getDesc(),e);if(this.havdalahMins){var a=ei.gettext("min",e);t+=" (".concat(this.havdalahMins," ").concat(a,")")}return t}},{key:"getEmoji",value:function(){return"✨"}}]),n}(cu),fu=function(e){i(n,e);var t=c(n);function n(e,r,o,i,u){return a(this,n),t.call(this,e,"Candle lighting",r,o,i,u)}return r(n,[{key:"getEmoji",value:function(){return"🕯️"}}]),n}(cu);function vu(e,t,a,n,r){return isNaN(t.getTime())?null:new cu(e,a,n.getFlags(),t,r,n)}var du=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],mu=function(){function e(t,n){a(this,e);var r=n-7;r<0&&(r+=Mi.monthsInYear(t));var o=235*Math.floor((t-1)/19)+(t-1)%19*12+Math.floor(((t-1)%19*7+1)/19)+r,i=204+Math.floor(o%1080*793),u=5+12*o+793*Math.floor(o/1080)+Math.floor(i/1080)-6,s=(i%1080+u%24*1080)%1080,h=(1+29*o+Math.floor(u/24))%7;this.year=t,this.month=n,this.dow=h,this.hour=u%24,this.minutes=Math.floor(s/18),this.chalakim=s%18}return r(e,[{key:"getYear",value:function(){return this.year}},{key:"getMonth",value:function(){return this.month}},{key:"getMonthName",value:function(){return Mi.getMonthName(this.month,this.year)}},{key:"getDow",value:function(){return this.dow}},{key:"getHour",value:function(){return this.hour}},{key:"getMinutes",value:function(){return this.minutes}},{key:"getChalakim",value:function(){return this.chalakim}}]),e}(),yu=function(e){i(n,e);var t=c(n);function n(e,r,o){var i;a(this,n);var u=new mu(r,o),s=u.getMonthName();return(i=t.call(this,e,"Molad ".concat(s," ").concat(r),Di.MOLAD)).molad=u,i}return r(n,[{key:"render",value:function(e){var t=this.molad,a=t.getMonthName(),n=du[t.getDow()],r=t.getMinutes(),o=t.getHour(),i=t.getChalakim();return"Molad ".concat(a,": ").concat(n,", ").concat(r," minutes and ").concat(i," chalakim after ").concat(o,":00")}}]),n}(Ci),gu=er,ku=P,bu=cn,Su=RangeError,wu=String.fromCharCode,pu=String.fromCodePoint,Au=ku([].join);gu({target:"String",stat:!0,arity:1,forced:!!pu&&1!=pu.length},{fromCodePoint:function(e){for(var t,a=[],n=arguments.length,r=0;n>r;){if(t=+arguments[r++],bu(t,1114111)!==t)throw Su(t+" is not a valid code point");a[r]=t<65536?wu(t):wu(55296+((t-=65536)>>10),t%1024+56320)}return Au(a,"")}});var Mu="\t\n\v\f\r \u2028\u2029\ufeff",Iu=G,Tu=fo,Eu=P("".replace),Du="[\t\n\v\f\r \u2028\u2029\ufeff]",Cu=RegExp("^"+Du+Du+"*"),Hu=RegExp(Du+Du+"*$"),Nu=function(e){return function(t){var a=Tu(Iu(t));return 1&e&&(a=Eu(a,Cu,"")),2&e&&(a=Eu(a,Hu,"")),a}},Ou={start:Nu(1),end:Nu(2),trim:Nu(3)},Lu=oa.PROPER,Bu=g,Pu=Mu,Yu=Ou.trim;er({target:"String",proto:!0,forced:function(e){return Bu((function(){return!!Pu[e]()||"
"!=="
"[e]()||Lu&&Pu[e].name!==e}))}("trim")},{trim:function(){return Yu(this)}});var _u=[null,"Lovingkindness","Might","Beauty","Eternity","Splendor","Foundation","Majesty"],Ru=[null,"Chesed","Gevurah","Tiferet","Netzach","Hod","Yesod","Malkhut"],ju=function(e){i(n,e);var t=c(n);function n(e,r){var o;if(a(this,n),o=t.call(this,e,"Omer ".concat(r),Di.OMER_COUNT,{omer:r}),r<1||r>49)throw new RangeError("Invalid Omer day ".concat(r));return o.weekNumber=Math.floor((r-1)/7)+1,o.daysWithinWeeks=r%7||7,o}return r(n,[{key:"sefira",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",t=_u[this.weekNumber],a=_u[this.daysWithinWeeks];switch(e){case"he":var n=ei.gettext(t,"he"),r=ei.gettext(a,"he"),o=2===this.weekNumber||6===this.weekNumber?"שֶׁבִּ":"שֶׁבְּ";return"".concat(r," ").concat(o).concat(n).normalize();case"translit":var i=Ru[this.weekNumber],u=Ru[this.daysWithinWeeks],s=2===this.weekNumber||6===this.weekNumber?"shebi":"sheb'";return"".concat(u," ").concat(s).concat(i);default:return"".concat(a," within ").concat(t)}}},{key:"render",value:function(e){var t=this.omer;return("he"==e?uo(t):ei.ordinal(t,e))+" "+ei.gettext("day of the Omer",e)}},{key:"renderBrief",value:function(e){return ei.gettext("Omer",e)+" "+ei.gettext("day",e)+" "+this.omer}},{key:"getEmoji",value:function(){if("string"==typeof this.emoji)return this.emoji;var e=this.omer;return e<=20?String.fromCodePoint(9312+e-1):e<=35?String.fromCodePoint(12881+e-21):String.fromCodePoint(12977+e-36)}},{key:"getWeeks",value:function(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}},{key:"getDaysWithinWeeks",value:function(){return this.daysWithinWeeks}},{key:"getTodayIs",value:function(e){if("he"===e||"he"===e)return function(e){var t=Math.floor(e/10),a=e%10,n="הַיוֹם ";10<e&&e<20?n+=Vu[a]+" עָשָׂר":e>9&&(n+=Vu[a],a&&(n+=" וְ"));e>2?((e>20||10===e||20===e)&&(n+=zu[t]),n+=e<11?Vu[a]+" "+"יָמִים ":" יוֹם "):n+=1===e?Uu+" ":Fu+" ";if(e>6){n=n.trim(),n+=", שְׁהֵם ";var r=Math.floor(e/7),o=e%7;n+=r>2?Vu[r]+" "+xu+" ":1==r?"שָׁבוּעַ "+Vu[1]+" ":"שְׁנֵי שָׁבוּעוֹת ",o&&(n+="וְ",n+=o>2?Vu[o]+" "+"יָמִים ":1==o?Uu+" ":Fu+" ")}return(n+="לָעוֹמֶר").normalize()}(this.omer);var t=1===this.omer?"day":"days",a="Today is ".concat(this.omer," ").concat(t);if(this.weekNumber>1||7===this.omer){var n=7===this.daysWithinWeeks,r=n?this.weekNumber:this.weekNumber-1,o=1===r?"week":"weeks";if(a+=", which is ".concat(r," ").concat(o),!n){var i=1===this.daysWithinWeeks?"day":"days";a+=" and ".concat(this.daysWithinWeeks," ").concat(i)}}return a+" of the Omer"}},{key:"url",value:function(){return"https://www.hebcal.com/omer/".concat(this.getDate().getFullYear(),"/").concat(this.omer)}}]),n}(Ci),zu=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],Vu=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָׁה","שִׁשָׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],Fu="שְׁנֵי יָמִים",xu="שָׁבוּעוֹת",Uu="יוֹם "+Vu[1];var Ku=new Date(1923,8,11),Gu=to(Ku),Zu=to(new Date(1975,5,24)),Wu=[["Berachot",64],["Shabbat",157],["Eruvin",105],["Pesachim",121],["Shekalim",22],["Yoma",88],["Sukkah",56],["Beitzah",40],["Rosh Hashana",35],["Taanit",31],["Megillah",32],["Moed Katan",29],["Chagigah",27],["Yevamot",122],["Ketubot",112],["Nedarim",91],["Nazir",66],["Sotah",49],["Gitin",90],["Kiddushin",82],["Baba Kamma",119],["Baba Metzia",119],["Baba Batra",176],["Sanhedrin",113],["Makkot",24],["Shevuot",49],["Avodah Zarah",76],["Horayot",14],["Zevachim",120],["Menachot",110],["Chullin",142],["Bechorot",61],["Arachin",34],["Temurah",34],["Keritot",28],["Meilah",22],["Kinnim",4],["Tamid",9],["Midot",5],["Niddah",73]].map((function(e){return{name:e[0],blatt:e[1]}}));var Ju=function(){function e(t){a(this,e);var n,r,o="number"!=typeof t||isNaN(t)?Qr(t)?to(t):Mi.isHDate(t)?t.abs():function(e){throw new TypeError(e)}("non-date given to dafyomi: ".concat(t)):t;if(o<Gu)throw new RangeError("Date ".concat(t," too early; Daf Yomi cycle began on ").concat(Ku));o>=Zu?(n=8+(o-Zu)/2711,r=(o-Zu)%2711):(n=1+(o-Gu)/2702,r=(o-Gu)%2702);var i=0,u=0,s=-1;Wu[4].blatt=n<=7?13:22;for(var h=0;h<40;){if(s++,r<(i=i+Wu[h].blatt-1)){switch(u=Wu[h].blatt+1-(i-r),s){case 36:u+=21;break;case 37:u+=24;break;case 38:u+=32}h=41}h++}this.name=Wu[s].name,this.blatt=u}return r(e,[{key:"getBlatt",value:function(){return this.blatt}},{key:"getName",value:function(){return this.name}},{key:"render",value:function(e){return ei.gettext(this.name,e)+" "+this.blatt}}]),e}(),$u={Berachot:"Berakhot","Rosh Hashana":"Rosh Hashanah",Gitin:"Gittin","Baba Kamma":"Bava Kamma","Baba Metzia":"Bava Metzia","Baba Batra":"Bava Batra",Bechorot:"Bekhorot",Arachin:"Arakhin",Midot:"Middot",Shekalim:"Jerusalem_Talmud_Shekalim"},qu=function(e){i(n,e);var t=c(n);function n(e){a(this,n);var r=new Ju(e.greg());return t.call(this,e,r.render(),Di.DAF_YOMI,{daf:r})}return r(n,[{key:"render",value:function(e){return ei.gettext("Daf Yomi",e)+": "+this.daf.render(e)}},{key:"renderBrief",value:function(e){return this.daf.render(e)}},{key:"url",value:function(){var e=this.daf,t=e.getName(),a=e.getBlatt();if("Kinnim"==t||"Midot"==t)return"https://www.dafyomi.org/index.php?masechta=meilah&daf=".concat(a,"a");var n=($u[t]||t).replace(/ /g,"_");return"https://www.sefaria.org/".concat(n,".").concat(a,"a?lang=bi")}}]),n}(Ci),Xu=Te,Qu=b,es=P(P.bind),ts=p,as=Rt,ns=De,rs=Rt,os=function(e,t,a){var n,r;as(e);try{if(!(n=ns(e,"return"))){if("throw"===t)throw a;return a}n=ts(n,e)}catch(e){r=!0,n=e}if("throw"===t)throw a;if(r)throw n;return as(n),a},is={},us=is,ss=st("iterator"),hs=Array.prototype,cs=cr,ls=De,fs=is,vs=st("iterator"),ds=function(e){if(null!=e)return ls(e,vs)||ls(e,"@@iterator")||fs[cs(e)]},ms=p,ys=Te,gs=Rt,ks=pe,bs=ds,Ss=TypeError,ws=function(e,t){return Xu(e),void 0===t?e:Qu?es(e,t):function(){return e.apply(t,arguments)}},ps=p,As=xe,Ms=function(e,t,a,n){try{return n?t(rs(a)[0],a[1]):t(a)}catch(t){os(e,"throw",t)}},Is=function(e){return void 0!==e&&(us.Array===e||hs[ss]===e)},Ts=Mr,Es=dn,Ds=Dr,Cs=function(e,t){var a=arguments.length<2?bs(e):t;if(ys(a))return gs(ms(a,e));throw Ss(ks(e)+" is not iterable")},Hs=ds,Ns=Array,Os=st("iterator"),Ls=!1;try{var Bs=0,Ps={next:function(){return{done:!!Bs++}},return:function(){Ls=!0}};Ps[Os]=function(){return this},Array.from(Ps,(function(){throw 2}))}catch(e){}var Ys=function(e){var t=As(e),a=Ts(this),n=arguments.length,r=n>1?arguments[1]:void 0,o=void 0!==r;o&&(r=ws(r,n>2?arguments[2]:void 0));var i,u,s,h,c,l,f=Hs(t),v=0;if(!f||this===Ns&&Is(f))for(i=Es(t),u=a?new this(i):Ns(i);i>v;v++)l=o?r(t[v],v):t[v],Ds(u,v,l);else for(c=(h=Cs(t,f)).next,u=a?new this:[];!(s=ps(c,h)).done;v++)l=o?Ms(h,r,[s.value,v],!0):s.value,Ds(u,v,l);return u.length=v,u},_s=function(e,t){if(!t&&!Ls)return!1;var a=!1;try{var n={};n[Os]=function(){return{next:function(){return{done:a=!0}}}},e(n)}catch(e){}return a};er({target:"Array",stat:!0,forced:!_s((function(e){Array.from(e)}))},{from:Ys});for(var Rs=function(){function e(t,n){a(this,e),t=+t;var r=Mi.longCheshvan(t),o=Mi.shortKislev(t),i=this.type=r&&!o?2:!r&&o?0:1;this.year=t;var u=new Mi(1,ti.TISHREI,t),s=u.abs(),h=this.roshHashanaDay=u.getDay()+1;this.firstSaturday=Mi.dayOnOrBefore(6,s+6);var c=this.leap=+Mi.isLeapYear(t);this.il=Boolean(n);var l="".concat(c).concat(h).concat(i);if(nh[l])this.key=l,this.theSedraArray=nh[l];else{var f=this.key=l+ +this.il;this.theSedraArray=nh[f]}if(!this.theSedraArray)throw new Error("improper sedra year type ".concat(this.key," calculated for ").concat(t))}return r(e,[{key:"get",value:function(e){return this.lookup(e).parsha}},{key:"getString",value:function(e,t){var a=this.get(e),n=t||ei.getLocaleName(),r=ei.gettext(a[0],n);2==a.length&&(r+=("he"==n?"־":"-")+ei.gettext(a[1],n));return ei.gettext("Parashat",n)+" "+r}},{key:"isParsha",value:function(e){return!this.lookup(e).chag}},{key:"find",value:function(e){if("number"==typeof e){if(e>53||e<0&&!function(e){switch(e){case-21:case-26:case-28:case-31:case-38:case-41:case-50:return!0}return!1}(e))throw new RangeError("Invalid parsha number: ".concat(e));var t=this.theSedraArray.indexOf(e);return-1===t?null:new Mi(this.firstSaturday+7*t)}if("string"==typeof e){var a=zs[e];if("number"==typeof a)return this.find(a);if(-1!==e.indexOf("-"))return this.find(e.split("-"));var n=this.theSedraArray.indexOf(e);return-1===n?null:new Mi(this.firstSaturday+7*n)}if(Array.isArray(e)&&1===e.length&&"string"==typeof e[0])return this.find(e[0]);if(Array.isArray(e)&&2===e.length&&"string"==typeof e[0]&&"string"==typeof e[1]){var r=e[0],o=e[1],i=zs[r];if(zs[o]===i+1)return this.find(-i);throw new RangeError("Unrecognized parsha name: ".concat(r,"-").concat(o))}throw new TypeError("Invalid parsha argument: ".concat(e))}},{key:"getSedraArray",value:function(){return this.theSedraArray}},{key:"getFirstSaturday",value:function(){return this.firstSaturday}},{key:"getYear",value:function(){return this.year}},{key:"lookup",value:function(t){var a="number"==typeof t?t:Mi.isHDate(t)?t.abs():function(e){throw new TypeError(e)}("Bad date argument: ".concat(t)),n=Mi.dayOnOrBefore(6,a+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o)return new e(this.year+1,this.il).lookup(n);if("string"==typeof o)return{parsha:[o],chag:!0};if(o>=0)return{parsha:[js[o]],chag:!1};var i=xs(o);return{parsha:[js[i],js[i+1]],chag:!1}}}]),e}(),js=["Bereshit","Noach","Lech-Lecha","Vayera","Chayei Sara","Toldot","Vayetzei","Vayishlach","Vayeshev","Miketz","Vayigash","Vayechi","Shemot","Vaera","Bo","Beshalach","Yitro","Mishpatim","Terumah","Tetzaveh","Ki Tisa","Vayakhel","Pekudei","Vayikra","Tzav","Shmini","Tazria","Metzora","Achrei Mot","Kedoshim","Emor","Behar","Bechukotai","Bamidbar","Nasso","Beha'alotcha","Sh'lach","Korach","Chukat","Balak","Pinchas","Matot","Masei","Devarim","Vaetchanan","Eikev","Re'eh","Shoftim","Ki Teitzei","Ki Tavo","Nitzavim","Vayeilech","Ha'Azinu"],zs={},Vs=0;Vs<js.length;Vs++){var Fs=js[Vs];zs[Fs]=Vs}function xs(e){return-e}var Us="Rosh Hashana",Ks="Yom Kippur",Gs="Sukkot",Zs="Sukkot Shabbat Chol ha-Moed",Ws="Shmini Atzeret",Js=Zs,$s="Pesach",qs="Pesach I",Xs="Pesach Shabbat Chol ha-Moed",Qs="Pesach VII",eh="Pesach VIII",th="Shavuot";function ah(e,t){return Array.from({length:t-e+1},(function(t,a){return a+e}))}var nh={"020":[51,52].concat(Js,ah(0,20),xs(21),23,24,$s,25,xs(26),xs(28),30,xs(31),ah(33,40),xs(41),ah(43,49),xs(50)),"0220":[51,52].concat(Js,ah(0,20),xs(21),23,24,$s,25,xs(26),xs(28),30,xs(31),33,th,ah(34,37),xs(38),40,xs(41),ah(43,49),xs(50)),"0510":[52].concat(Ks,Js,ah(0,20),xs(21),23,24,qs,eh,25,xs(26),xs(28),30,xs(31),ah(33,40),xs(41),ah(43,50)),"0511":[52].concat(Ks,Js,ah(0,20),xs(21),23,24,$s,25,xs(26),xs(28),ah(30,40),xs(41),ah(43,50)),"052":[52].concat(Ks,Zs,ah(0,24),Qs,25,xs(26),xs(28),30,xs(31),ah(33,40),xs(41),ah(43,50)),"070":[].concat(Us,52,Gs,Ws,ah(0,20),xs(21),23,24,Qs,25,xs(26),xs(28),30,xs(31),ah(33,40),xs(41),ah(43,50)),"072":[].concat(Us,52,Gs,Ws,ah(0,20),xs(21),23,24,Xs,25,xs(26),xs(28),30,xs(31),ah(33,40),xs(41),ah(43,49),xs(50)),1200:[51,52].concat(Zs,ah(0,27),Xs,ah(28,33),th,ah(34,37),xs(38),40,xs(41),ah(43,49),xs(50)),1201:[51,52].concat(Zs,ah(0,27),Xs,ah(28,40),xs(41),ah(43,49),xs(50)),1220:[51,52].concat(Zs,ah(0,27),qs,eh,ah(28,40),xs(41),ah(43,50)),1221:[51,52].concat(Zs,ah(0,27),$s,ah(28,50)),150:[52].concat(Ks,Zs,ah(0,28),Qs,ah(29,50)),152:[52].concat(Ks,Zs,ah(0,28),Xs,ah(29,49),xs(50)),170:[].concat(Us,52,Gs,Ws,ah(0,27),Xs,ah(28,40),xs(41),ah(43,49),xs(50)),1720:[].concat(Us,52,Gs,Ws,ah(0,27),Xs,ah(28,33),th,ah(34,37),xs(38),40,xs(41),ah(43,49),xs(50))};nh["0221"]=nh["020"],nh["0310"]=nh["0220"],nh["0311"]=nh["020"],nh[1310]=nh[1220],nh[1311]=nh[1221],nh[1721]=nh[170];var rh=function(e){i(n,e);var t=c(n);function n(e,r,o){var i;if(a(this,n),!Array.isArray(r)||0===r.length||r.length>2)throw new TypeError("Bad parsha argument");var u="Parashat "+r.join("-");return(i=t.call(this,e,u,Di.PARSHA_HASHAVUA)).parsha=r,i.il=Boolean(o),i}return r(n,[{key:"render",value:function(e){var t=e||ei.getLocaleName(),a=this.parsha,n=ei.gettext(a[0],e);2==a.length&&(n+=("he"==t?"־":"-")+ei.gettext(a[1],e));return(ei.gettext("Parashat",e)+" "+n).normalize()}},{key:"basename",value:function(){return this.parsha.join("-")}},{key:"url",value:function(){if(!(this.getDate().greg().getFullYear()<100)){var e=this.urlDateSuffix(),t="https://www.hebcal.com/sedrot/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+e;return this.il?t+"?i=on":t}}},{key:"urlDateSuffix",value:function(){var e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}]),n}(Ci),oh=function(e){i(n,e);var t=c(n);function n(e,r,o,i){return a(this,n),t.call(this,e,r,o,i)}return r(n,[{key:"basename",value:function(){return this.getDesc().replace(/ \d{4}$/,"").replace(/ \(CH''M\)$/,"").replace(/ \(observed\)$/,"").replace(/ \(Hoshana Raba\)$/,"").replace(/ [IV]+$/,"").replace(/: \d Candles?$/,"").replace(/: 8th Day$/,"").replace(/^Erev /,"")}},{key:"url",value:function(){if(!(this.getDate().greg().getFullYear()<100)){var e="https://www.hebcal.com/holidays/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+this.urlDateSuffix();return this.getFlags()&Di.IL_ONLY?e+"?i=on":e}}},{key:"urlDateSuffix",value:function(){return this.getDate().greg().getFullYear()}},{key:"getEmoji",value:function(){return this.emoji?this.emoji:this.getFlags()&Di.SPECIAL_SHABBAT?"🕍":"✡️"}}]),n}(Ci),ih="Rosh Chodesh",uh=function(e){i(n,e);var t=c(n);function n(e,r){return a(this,n),t.call(this,e,"".concat(ih," ").concat(r),Di.ROSH_CHODESH)}return r(n,[{key:"render",value:function(e){var t=this.getDesc().substring(ih.length+1);return ei.gettext(ih,e)+" "+ei.gettext(t,e)}},{key:"basename",value:function(){return this.getDesc()}},{key:"getEmoji",value:function(){return this.emoji||"🌒"}}]),n}(oh),sh=function(e){i(n,e);var t=c(n);function n(e,r,o,i){return a(this,n),t.call(this,e,r,o,i)}return r(n,[{key:"urlDateSuffix",value:function(){var e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}]),n}(oh),hh="Shabbat Mevarchim Chodesh",ch=function(e){i(n,e);var t=c(n);function n(e,r){var o;a(this,n),(o=t.call(this,e,"".concat(hh," ").concat(r),Di.SHABBAT_MEVARCHIM)).monthName=r;var i=e.getFullYear(),u=e.getMonth(),s=u==Mi.monthsInYear(i)?ti.NISAN:u+1,h=new yu(e,i,s);return o.memo=h.render(),o}return r(n,[{key:"render",value:function(e){return ei.gettext(hh,e)+" "+ei.gettext(this.monthName,e)}}]),n}(Ci),lh=function(e){i(n,e);var t=c(n);function n(e,r,o){var i;return a(this,n),(i=t.call(this,e,"Rosh Hashana ".concat(r),o,{emoji:"🍏🍯"})).hyear=r,i}return r(n,[{key:"render",value:function(e){return ei.gettext("Rosh Hashana",e)+" "+this.hyear}}]),n}(oh),fh=ti.NISAN,vh=ti.IYYAR,dh=ti.SIVAN,mh=ti.TAMUZ,yh=ti.AV,gh=ti.ELUL,kh=ti.TISHREI,bh=ti.CHESHVAN,Sh=ti.KISLEV,wh=ti.TEVET,ph=ti.SHVAT,Ah=ti.ADAR_I,Mh=ti.ADAR_II,Ih=Di.CHAG,Th=Di.LIGHT_CANDLES,Eh=Di.YOM_TOV_ENDS,Dh=Di.CHUL_ONLY,Ch=Di.IL_ONLY,Hh=Di.LIGHT_CANDLES_TZEIS,Nh=Di.CHANUKAH_CANDLES,Oh=Di.MINOR_FAST,Lh=Di.SPECIAL_SHABBAT,Bh=Di.MODERN_HOLIDAY,Ph=Di.MAJOR_FAST,Yh=Di.MINOR_HOLIDAY,_h=Di.EREV,Rh=Di.CHOL_HAMOED,jh=function(){function e(){a(this,e)}return r(e,[{key:"has",value:function(e){return void 0!==this[e]}},{key:"get",value:function(e){return this[e]}},{key:"set",value:function(e,t){this[e]=t}},{key:"keys",value:function(){return Object.keys(this)}}]),e}(),zh=new jh;function Vh(e,t){var a="".concat(e,"-").concat(t?1:0),n=zh.get(a);return n||(n=new Rs(e,t),zh.set(a,n)),n}var Fh={emoji:"🇮🇱"},xh="🕎",Uh="🫓",Kh={emoji:"⛰️🌸"},Gh="🌿🍋",Zh=Object.create(null);function Wh(e){if("number"!=typeof e)throw new TypeError("bad Hebrew year: ".concat(e));if(e<1||e>32658)throw new RangeError("Hebrew year ".concat(e," out of range 1-32658"));var t=Zh[e];if(t)return t;var a=new Mi(1,kh,e),n=new Mi(15,fh,e),r=new jh;function o(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];t.forEach((function(e){var t=e.date.toString();r.has(t)?r.get(t).push(e):r.set(t,[e])}))}function i(e,t){t.forEach((function(t){o(new oh(new Mi(t[0],t[1],e),t[2],t[3],t[4]))}))}o(new lh(a,e,Ih|Hh)),i(e,[[2,kh,"Rosh Hashana II",Ih|Eh,{emoji:"🍏🍯"}],[3+(4==a.getDay()),kh,"Tzom Gedaliah",Oh],[9,kh,"Erev Yom Kippur",_h|Th]]),o(new oh(new Mi(Mi.dayOnOrBefore(6,7+a.abs())),"Shabbat Shuva",Lh)),i(e,[[10,kh,"Yom Kippur",Ih|Eh|Ph],[14,kh,"Erev Sukkot",_h|Th|Dh,{emoji:Gh}],[15,kh,"Sukkot I",Ih|Hh|Dh,{emoji:Gh}],[16,kh,"Sukkot II",Ih|Eh|Dh,{emoji:Gh}],[17,kh,"Sukkot III (CH''M)",Dh|Rh,{cholHaMoedDay:1,emoji:Gh}],[18,kh,"Sukkot IV (CH''M)",Dh|Rh,{cholHaMoedDay:2,emoji:Gh}],[19,kh,"Sukkot V (CH''M)",Dh|Rh,{cholHaMoedDay:3,emoji:Gh}],[20,kh,"Sukkot VI (CH''M)",Dh|Rh,{cholHaMoedDay:4,emoji:Gh}],[14,kh,"Erev Sukkot",_h|Th|Ch,{emoji:Gh}],[15,kh,"Sukkot I",Ih|Eh|Ch,{emoji:Gh}],[16,kh,"Sukkot II (CH''M)",Ch|Rh,{cholHaMoedDay:1,emoji:Gh}],[17,kh,"Sukkot III (CH''M)",Ch|Rh,{cholHaMoedDay:2,emoji:Gh}],[18,kh,"Sukkot IV (CH''M)",Ch|Rh,{cholHaMoedDay:3,emoji:Gh}],[19,kh,"Sukkot V (CH''M)",Ch|Rh,{cholHaMoedDay:4,emoji:Gh}],[20,kh,"Sukkot VI (CH''M)",Ch|Rh,{cholHaMoedDay:5,emoji:Gh}],[21,kh,"Sukkot VII (Hoshana Raba)",Th|Rh,{cholHaMoedDay:-1,emoji:Gh}],[22,kh,"Shmini Atzeret",Ih|Hh|Dh],[22,kh,"Shmini Atzeret",Ih|Eh|Ch],[23,kh,"Simchat Torah",Ih|Eh|Dh]]),o(new oh(new Mi(24,Sh,e),"Chanukah: 1 Candle",_h|Yh|Nh,{emoji:xh+Hi[1]}));for(var u=2;u<=8;u++){var s=new Mi(23+u,Sh,e);o(new oh(s,"Chanukah: ".concat(u," Candles"),Yh|Nh,{chanukahDay:u-1,emoji:xh+Hi[u]}))}o(new oh(new Mi(32,Sh,e),"Chanukah: 8th Day",Yh,{chanukahDay:8,emoji:xh})),o(new sh(new Mi(10,wh,e),"Asara B'Tevet",Oh),new oh(new Mi(15,ph,e),"Tu BiShvat",Yh,{emoji:"🌳"}));var h,c=n.abs();if(o(new oh(new Mi(Mi.dayOnOrBefore(6,c-43)),"Shabbat Shekalim",Lh),new oh(new Mi(Mi.dayOnOrBefore(6,c-30)),"Shabbat Zachor",Lh),new oh(new Mi(c-(2==n.getDay()?33:31)),"Ta'anit Esther",Oh)),i(e,[[13,Mh,"Erev Purim",_h|Yh,{emoji:"🎭️📜"}],[14,Mh,"Purim",Yh,{emoji:"🎭️📜"}]]),o(new oh(new Mi(c-(0==n.getDay()?28:29)),"Shushan Purim",Yh,{emoji:"🎭️📜"}),new oh(new Mi(Mi.dayOnOrBefore(6,c-14)-7),"Shabbat Parah",Lh),new oh(new Mi(Mi.dayOnOrBefore(6,c-14)),"Shabbat HaChodesh",Lh),new oh(new Mi(Mi.dayOnOrBefore(6,c-1)),"Shabbat HaGadol",Lh),new oh(6==n.prev().getDay()?n.onOrBefore(4):new Mi(14,fh,e),"Ta'anit Bechorot",Oh)),i(e,[[14,fh,"Erev Pesach",_h|Th|Ch,{emoji:"🫓🍷"}],[15,fh,"Pesach I",Ih|Eh|Ch,{emoji:Uh}],[16,fh,"Pesach II (CH''M)",Ch|Rh,{cholHaMoedDay:1,emoji:Uh}],[17,fh,"Pesach III (CH''M)",Ch|Rh,{cholHaMoedDay:2,emoji:Uh}],[18,fh,"Pesach IV (CH''M)",Ch|Rh,{cholHaMoedDay:3,emoji:Uh}],[19,fh,"Pesach V (CH''M)",Ch|Rh,{cholHaMoedDay:4,emoji:Uh}],[20,fh,"Pesach VI (CH''M)",Th|Ch|Rh,{cholHaMoedDay:5,emoji:Uh}],[21,fh,"Pesach VII",Ih|Eh|Ch,{emoji:Uh}],[14,fh,"Erev Pesach",_h|Th|Dh,{emoji:"🫓🍷"}],[15,fh,"Pesach I",Ih|Hh|Dh,{emoji:"🫓🍷"}],[16,fh,"Pesach II",Ih|Eh|Dh,{emoji:Uh}],[17,fh,"Pesach III (CH''M)",Dh|Rh,{cholHaMoedDay:1,emoji:Uh}],[18,fh,"Pesach IV (CH''M)",Dh|Rh,{cholHaMoedDay:2,emoji:Uh}],[19,fh,"Pesach V (CH''M)",Dh|Rh,{cholHaMoedDay:3,emoji:Uh}],[20,fh,"Pesach VI (CH''M)",Th|Dh|Rh,{cholHaMoedDay:4,emoji:Uh}],[21,fh,"Pesach VII",Ih|Hh|Dh,{emoji:Uh}],[22,fh,"Pesach VIII",Ih|Eh|Dh,{emoji:Uh}],[14,vh,"Pesach Sheni",Yh],[18,vh,"Lag BaOmer",Yh,{emoji:"🔥"}],[5,dh,"Erev Shavuot",_h|Th|Ch,Kh],[6,dh,"Shavuot",Ih|Eh|Ch,Kh],[5,dh,"Erev Shavuot",_h|Th|Dh,Kh],[6,dh,"Shavuot I",Ih|Hh|Dh,Kh],[7,dh,"Shavuot II",Ih|Eh|Dh,Kh],[15,yh,"Tu B'Av",Yh,{emoji:"❤️"}],[1,gh,"Rosh Hashana LaBehemot",Yh,{emoji:"🐑"}]]),o(new oh(new Mi(Mi.dayOnOrBefore(6,new Mi(1,kh,e+1).abs()-4)),"Leil Selichot",Yh,{emoji:"🕍"})),o(new oh(new Mi(29,gh,e),"Erev Rosh Hashana",_h|Th,{emoji:"🍏🍯"})),Mi.isLeapYear(e)&&o(new oh(new Mi(14,Ah,e),"Purim Katan",Yh,{emoji:"🎭️"})),e>=5711){var l=new Mi(27,fh,e);5==l.getDay()?l=new Mi(26,fh,e):0==l.getDay()&&(l=new Mi(28,fh,e)),o(new oh(l,"Yom HaShoah",Bh))}e>=5708&&(h=0==n.getDay()?2:6==n.getDay()?3:e<5764?4:2==n.getDay()?5:4,o(new oh(new Mi(h,vh,e),"Yom HaZikaron",Bh,Fh),new oh(new Mi(h+1,vh,e),"Yom HaAtzma'ut",Bh,Fh)));e>=5727&&o(new oh(new Mi(28,vh,e),"Yom Yerushalayim",Bh,Fh)),e>=5769&&o(new oh(new Mi(29,bh,e),"Sigd",Bh)),e>=5777&&o(new oh(new Mi(7,bh,e),"Yom HaAliyah School Observance",Bh,Fh),new oh(new Mi(10,fh,e),"Yom HaAliyah",Bh,Fh));var f,v=new Mi(17,mh,e);6==v.getDay()&&(v=new Mi(18,mh,e),f={observed:!0}),o(new oh(v,"Tzom Tammuz",Oh,f));var d,m=new Mi(9,yh,e),y="Tish'a B'Av";6==m.getDay()&&(m=m.next(),d={observed:!0},y+=" (observed)");var g=m.abs();o(new oh(new Mi(Mi.dayOnOrBefore(6,g)),"Shabbat Chazon",Lh),new oh(m.prev(),"Erev Tish'a B'Av",_h|Ph,d),new oh(m,y,Ph,d),new oh(new Mi(Mi.dayOnOrBefore(6,g+7)),"Shabbat Nachamu",Lh));for(var k=Mi.monthsInYear(e),b=1;b<=k;b++){var S=Mi.getMonthName(b,e);if(30==(b==fh?Mi.daysInMonth(Mi.monthsInYear(e-1),e-1):Mi.daysInMonth(b-1,e))?(o(new uh(new Mi(1,b,e),S)),o(new uh(new Mi(30,b-1,e),S))):b!==kh&&o(new uh(new Mi(1,b,e),S)),b!=gh){var w=Mi.getMonthName(b+1,e);o(new ch(new Mi(29,b,e).onOrBefore(6),w))}}var p=Vh(e,!1).find(15);return o(new oh(p,"Shabbat Shirah",Lh)),Zh[e]=r,r}var Jh=[{k:"Berakhot",v:[5,8,6,7,5,8,5,8,5]},{k:"Peah",v:[6,8,8,11,8,11,8,9]},{k:"Demai",v:[4,5,6,7,11,12,8]},{k:"Kilayim",v:[9,11,7,9,8,9,8,6,10]},{k:"Sheviit",v:[8,10,10,10,9,6,7,11,9,9]},{k:"Terumot",v:[10,6,9,13,9,6,7,12,7,12,10]},{k:"Maasrot",v:[8,8,10,6,8]},{k:"Maaser Sheni",v:[7,10,13,12,15]},{k:"Challah",v:[9,8,10,11]},{k:"Orlah",v:[9,17,9]},{k:"Bikkurim",v:[11,11,12,5]},{k:"Shabbat",v:[11,7,6,2,4,10,4,7,7,6,6,6,7,4,3,8,8,3,6,5,3,6,5,5]},{k:"Eruvin",v:[10,6,9,11,9,10,11,11,4,15]},{k:"Pesachim",v:[7,8,8,9,10,6,13,8,11,9]},{k:"Shekalim",v:[7,5,4,9,6,6,7,8]},{k:"Yoma",v:[8,7,11,6,7,8,5,9]},{k:"Sukkah",v:[11,9,15,10,8]},{k:"Beitzah",v:[10,10,8,7,7]},{k:"Rosh Hashanah",v:[9,9,8,9]},{k:"Taanit",v:[7,10,9,8]},{k:"Megillah",v:[11,6,6,10]},{k:"Moed Katan",v:[10,5,9]},{k:"Chagigah",v:[8,7,8]},{k:"Yevamot",v:[4,10,10,13,6,6,6,6,6,9,7,6,13,9,10,7]},{k:"Ketubot",v:[10,10,9,12,9,7,10,8,9,6,6,4,11]},{k:"Nedarim",v:[4,5,11,8,6,10,9,7,10,8,12]},{k:"Nazir",v:[7,10,7,7,7,11,4,2,5]},{k:"Sotah",v:[9,6,8,5,5,4,8,7,15]},{k:"Gittin",v:[6,7,8,9,9,7,9,10,10]},{k:"Kiddushin",v:[10,10,13,14]},{k:"Bava Kamma",v:[4,6,11,9,7,6,7,7,12,10]},{k:"Bava Metzia",v:[8,11,12,12,11,8,11,9,13,6]},{k:"Bava Batra",v:[6,14,8,9,11,8,4,8,10,8]},{k:"Sanhedrin",v:[6,5,8,5,5,6,11,7,6,6,6]},{k:"Makkot",v:[10,8,16]},{k:"Shevuot",v:[7,5,11,13,5,7,8,6]},{k:"Eduyot",v:[14,10,12,12,7,3,9,7]},{k:"Avodah Zarah",v:[9,7,10,12,12]},{k:"Avot",v:[18,16,18,22,23,11]},{k:"Horayot",v:[5,7,8]},{k:"Zevachim",v:[4,5,6,6,8,7,6,12,7,8,8,6,8,10]},{k:"Menachot",v:[4,5,7,5,9,7,6,7,9,9,9,5,11]},{k:"Chullin",v:[7,10,7,7,5,7,6,6,8,4,2,5]},{k:"Bekhorot",v:[7,9,4,10,6,12,7,10,8]},{k:"Arakhin",v:[4,6,5,4,6,5,5,7,8]},{k:"Temurah",v:[6,3,5,4,6,5,6]},{k:"Keritot",v:[7,6,10,3,8,9]},{k:"Meilah",v:[4,9,8,6,5,6]},{k:"Tamid",v:[4,5,9,3,6,3,4]},{k:"Middot",v:[9,6,8,7,4]},{k:"Kinnim",v:[4,5,6]},{k:"Kelim",v:[9,8,8,4,11,4,6,11,8,8,9,8,8,8,6,8,17,9,10,7,3,10,5,17,9,9,12,10,8,4]},{k:"Oholot",v:[8,7,7,3,7,7,6,6,16,7,9,8,6,7,10,5,5,10]},{k:"Negaim",v:[6,5,8,11,5,8,5,10,3,10,12,7,12,13]},{k:"Parah",v:[4,5,11,4,9,5,12,11,9,6,9,11]},{k:"Tahorot",v:[9,8,8,13,9,10,9,9,9,8]},{k:"Mikvaot",v:[8,10,4,5,6,11,7,5,7,8]},{k:"Niddah",v:[7,7,7,7,9,14,5,4,11,8]},{k:"Makhshirin",v:[6,11,8,10,11,8]},{k:"Zavim",v:[6,4,3,7,12]},{k:"Tevul Yom",v:[5,8,6,7]},{k:"Yadayim",v:[5,4,5,8]},{k:"Oktzin",v:[6,10,12]}],$h=to(new Date(1947,4,20)),qh=2096;var Xh=function(){function e(){a(this,e);var t,n=Array(4192),r=0,o=f(Jh);try{for(o.s();!(t=o.n()).done;)for(var i=t.value,u=i.v,s=1;s<=u.length;s++)for(var h=u[s-1],c=1;c<=h;c++)n[r++]={k:i.k,v:"".concat(s,":").concat(c)}}catch(e){o.e(e)}finally{o.f()}for(var l=Array(qh),v=0;v<qh;v++){var d=2*v;l[v]=[n[d],n[d+1]]}this.days=l}return r(e,[{key:"lookup",value:function(e){var t="number"!=typeof e||isNaN(e)?Qr(e)?to(e):Mi.isHDate(e)?e.abs():function(e){throw new TypeError(e)}("Invalid date: ".concat(e)):e;if(t<$h){var a=e.toISOString().substring(0,10);throw new RangeError("Date ".concat(a," too early; Mishna Yomi cycle began on 1947-05-20"))}var n=(t-$h)%qh;return this.days[n]}}]),e}();function Qh(e,t){var a=e[0].k,n=e[0].v,r=ei.gettext(a,t)+" "+n,o=e[1].k,i=e[1].v;if(a!==o)return r+"-"+ei.gettext(o,t)+" "+i;var u=n.split(":"),s=i.split(":");return u[0]===s[0]?r+"-"+s[1]:r+"-"+i}var ec=function(e){i(n,e);var t=c(n);function n(e,r){return a(this,n),t.call(this,e,Qh(r,null),Di.MISHNA_YOMI,{mishnaYomi:r})}return r(n,[{key:"render",value:function(e){return Qh(this.mishnaYomi,e)}},{key:"url",value:function(){var e=this.mishnaYomi,t=e[0].k,a="Avot"===t?"Pirkei":"Mishnah",n=t.replace(/ /g,"_"),r="https://www.sefaria.org/".concat(a,"_").concat(n),o=e[0].v;if(t!==e[1].k){var i=o.replace(":",".");return"".concat(r,".").concat(i,"?lang=bi")}var u=e[1].v,s=o.split(":"),h=u.split(":"),c=s.join("."),l=s[0]===h[0]?h[1]:h.join(".");return"".concat(r,".").concat(c,"-").concat(l,"?lang=bi")}}]),n}(Ci),tc=ti.NISAN,ac=ti.CHESHVAN,nc=ti.KISLEV,rc=ti.TEVET,oc=ti.SHVAT,ic=ti.ADAR_I,uc=ti.ADAR_II;var sc="3.38.0",hc={headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"en_CA@ashkenazi"},contexts:{"":{Berachot:["Berachos"],Shabbat:["Shabbos"],Taanit:["Taanis"],Yevamot:["Yevamos"],Ketubot:["Kesubos"],"Baba Batra":["Baba Basra"],Makkot:["Makkos"],Shevuot:["Shevuos"],Horayot:["Horayos"],Menachot:["Menachos"],Bechorot:["Bechoros"],Keritot:["Kerisos"],Midot:["Midos"],"Achrei Mot":["Achrei Mos"],Bechukotai:["Bechukosai"],"Beha'alotcha":["Beha'aloscha"],Bereshit:["Bereshis"],Chukat:["Chukas"],"Erev Shavuot":["Erev Shavuos"],"Erev Sukkot":["Erev Sukkos"],"Ki Tavo":["Ki Savo"],"Ki Teitzei":["Ki Seitzei"],"Ki Tisa":["Ki Sisa"],Matot:["Matos"],"Purim Katan":["Purim Koton"],Tazria:["Sazria"],"Shabbat Chazon":["Shabbos Chazon"],"Shabbat HaChodesh":["Shabbos HaChodesh"],"Shabbat HaGadol":["Shabbos HaGadol"],"Shabbat Nachamu":["Shabbos Nachamu"],"Shabbat Parah":["Shabbos Parah"],"Shabbat Shekalim":["Shabbos Shekalim"],"Shabbat Shuva":["Shabbos Shuvah"],"Shabbat Zachor":["Shabbos Zachor"],Shavuot:["Shavuos"],"Shavuot I":["Shavuos I"],"Shavuot II":["Shavuos II"],Shemot:["Shemos"],"Shmini Atzeret":["Shmini Atzeres"],"Simchat Torah":["Simchas Torah"],Sukkot:["Sukkos"],"Sukkot I":["Sukkos I"],"Sukkot II":["Sukkos II"],"Sukkot II (CH''M)":["Sukkos II (CH''M)"],"Sukkot III (CH''M)":["Sukkos III (CH''M)"],"Sukkot IV (CH''M)":["Sukkos IV (CH''M)"],"Sukkot V (CH''M)":["Sukkos V (CH''M)"],"Sukkot VI (CH''M)":["Sukkos VI (CH''M)"],"Sukkot VII (Hoshana Raba)":["Sukkos VII (Hoshana Raba)"],"Ta'anit Bechorot":["Ta'anis Bechoros"],"Ta'anit Esther":["Ta'anis Esther"],Toldot:["Toldos"],Vaetchanan:["Vaeschanan"],Yitro:["Yisro"],"Vezot Haberakhah":["Vezos Haberakhah"],Parashat:["Parshas"],"Leil Selichot":["Leil Selichos"],"Shabbat Mevarchim Chodesh":["Shabbos Mevorchim Chodesh"],"Shabbat Shirah":["Shabbos Shirah"],Tevet:["Teves"],"Asara B'Tevet":["Asara B'Teves"],Berakhot:["Berakhos"],Sheviit:["Sheviis"],Terumot:["Terumos"],Maasrot:["Maasros"],Eduyot:["Eduyos"],Avot:["Avos"],Bekhorot:["Bekhoros"],Middot:["Middos"],Oholot:["Oholos"],Tahorot:["Tahoros"],Mikvaot:["Mikvaos"]}}};ei.addLocale("ashkenazi",hc),ei.addLocale("a",hc);var cc={headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"he_IL"},contexts:{"":{Berachot:["ברכות"],Shabbat:["שַׁבָּת"],Eruvin:["עירובין"],Pesachim:["פסחים"],Shekalim:["שקלים"],Yoma:["יומא"],Sukkah:["סוכה"],Beitzah:["ביצה"],Taanit:["תענית"],Megillah:["מגילה"],"Moed Katan":["מועד קטן"],Chagigah:["חגיגה"],Yevamot:["יבמות"],Ketubot:["כתובות"],Nedarim:["נדרים"],Nazir:["נזיר"],Sotah:["סוטה"],Gitin:["גיטין"],Kiddushin:["קידושין"],"Baba Kamma":["בבא קמא"],"Baba Metzia":["בבא מציעא"],"Baba Batra":["בבא בתרא"],Sanhedrin:["סנהדרין"],Makkot:["מכות"],Shevuot:["שבועות"],"Avodah Zarah":["עבודה זרה"],Horayot:["הוריות"],Zevachim:["זבחים"],Menachot:["מנחות"],Chullin:["חולין"],Bechorot:["בכורות"],Arachin:["ערכין"],Temurah:["תמורה"],Keritot:["כריתות"],Meilah:["מעילה"],Kinnim:["קינים"],Tamid:["תמיד"],Midot:["מדות"],Niddah:["נדה"],"Daf Yomi: %s %d":["דף יומי: %s %d"],"Daf Yomi":["דף יומי"],Parashat:["פָּרָשַׁת"],"Achrei Mot":["אַחֲרֵי מוֹת"],Balak:["בָּלָק"],Bamidbar:["בְּמִדְבַּר"],Bechukotai:["בְּחֻקֹּתַי"],"Beha'alotcha":["בְּהַעֲלֹתְךָ"],Behar:["בְּהַר"],Bereshit:["בְּרֵאשִׁית"],Beshalach:["בְּשַׁלַּח"],Bo:["בֹּא"],"Chayei Sara":["חַיֵּי שָֹרָה"],Chukat:["חֻקַּת"],Devarim:["דְּבָרִים"],Eikev:["עֵקֶב"],Emor:["אֱמוֹר"],"Ha'Azinu":["הַאֲזִינוּ"],Kedoshim:["קְדשִׁים"],"Ki Tavo":["כִּי־תָבוֹא"],"Ki Teitzei":["כִּי־תֵצֵא"],"Ki Tisa":["כִּי תִשָּׂא"],Korach:["קוֹרַח"],"Lech-Lecha":["לֶךְ־לְךָ"],Masei:["מַסְעֵי"],Matot:["מַּטּוֹת"],Metzora:["מְּצֹרָע"],Miketz:["מִקֵּץ"],Mishpatim:["מִּשְׁפָּטִים"],Nasso:["נָשׂא"],Nitzavim:["נִצָּבִים"],Noach:["נֹחַ"],Pekudei:["פְקוּדֵי"],Pinchas:["פִּינְחָס"],"Re'eh":["רְאֵה"],"Sh'lach":["שְׁלַח־לְךָ"],Shemot:["שְׁמוֹת"],Shmini:["שְּׁמִינִי"],Shoftim:["שׁוֹפְטִים"],Tazria:["תַזְרִיעַ"],Terumah:["תְּרוּמָה"],Tetzaveh:["תְּצַוֶּה"],Toldot:["תּוֹלְדוֹת"],Tzav:["צַו"],Vaera:["וָאֵרָא"],Vaetchanan:["וָאֶתְחַנַּן"],Vayakhel:["וַיַּקְהֵל"],Vayechi:["וַיְחִי"],Vayeilech:["וַיֵּלֶךְ"],Vayera:["וַיֵּרָא"],Vayeshev:["וַיֵּשֶׁב"],Vayetzei:["וַיֵּצֵא"],Vayigash:["וַיִּגַּשׁ"],Vayikra:["וַיִּקְרָא"],Vayishlach:["וַיִּשְׁלַח"],"Vezot Haberakhah":["וְזֹאת הַבְּרָכָה"],Yitro:["יִתְרוֹ"],"Asara B'Tevet":["עֲשָׂרָה בְּטֵבֵת"],"Candle lighting":["הַדלָקָת נֵרוֹת"],Chanukah:["חֲנוּכָּה"],"Chanukah: 1 Candle":["חֲנוּכָּה: א׳ נֵר"],"Chanukah: 2 Candles":["חֲנוּכָּה: ב׳ נֵרוֹת"],"Chanukah: 3 Candles":["חֲנוּכָּה: ג׳ נֵרוֹת"],"Chanukah: 4 Candles":["חֲנוּכָּה: ד׳ נֵרוֹת"],"Chanukah: 5 Candles":["חֲנוּכָּה: ה׳ נֵרוֹת"],"Chanukah: 6 Candles":["חֲנוּכָּה: ו׳ נֵרוֹת"],"Chanukah: 7 Candles":["חֲנוּכָּה: ז׳ נֵרוֹת"],"Chanukah: 8 Candles":["חֲנוּכָּה: ח׳ נֵרוֹת"],"Chanukah: 8th Day":["חֲנוּכָּה: יוֹם ח׳"],"Days of the Omer":["סְפִירַת הָעוֹמֶר"],Omer:["עוֹמֶר"],"day of the Omer":["בָּעוֹמֶר"],"Erev Pesach":["עֶרֶב פֶּסַח"],"Erev Purim":["עֶרֶב פּוּרִים"],"Erev Rosh Hashana":["עֶרֶב רֹאשׁ הַשָּׁנָה"],"Erev Shavuot":["עֶרֶב שָׁבוּעוֹת"],"Erev Simchat Torah":["עֶרֶב שִׂמְחַת תּוֹרָה"],"Erev Sukkot":["עֶרֶב סוּכּוֹת"],"Erev Tish'a B'Av":["עֶרֶב תִּשְׁעָה בְּאָב"],"Erev Yom Kippur":["עֶרֶב יוֹם כִּפּוּר"],Havdalah:["הַבדָלָה"],"Lag BaOmer":["ל״ג בָּעוֹמֶר"],"Leil Selichot":["סליחות"],Pesach:["פֶּסַח"],"Pesach I":["פֶּסַח א׳"],"Pesach II":["פֶּסַח ב׳"],"Pesach II (CH''M)":["פֶּסַח ב׳ (חוה״מ)"],"Pesach III (CH''M)":["פֶּסַח ג׳ (חוה״מ)"],"Pesach IV (CH''M)":["פֶּסַח ד׳ (חוה״מ)"],"Pesach Sheni":["פֶּסַח שני"],"Pesach V (CH''M)":["פֶּסַח ה׳ (חוה״מ)"],"Pesach VI (CH''M)":["פֶּסַח ו׳ (חוה״מ)"],"Pesach VII":["פֶּסַח ז׳"],"Pesach VIII":["פֶּסַח ח׳"],Purim:["פּוּרִים"],"Purim Katan":["פּוּרִים קָטָן"],"Rosh Chodesh %s":["רֹאשׁ חוֹדֶשׁ %s"],"Rosh Chodesh":["רֹאשׁ חוֹדֶשׁ"],Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִשְׁרֵי"],"Rosh Hashana":["רֹאשׁ הַשָּׁנָה"],"Rosh Hashana I":["רֹאשׁ הַשָּׁנָה א׳"],"Rosh Hashana II":["רֹאשׁ הַשָּׁנָה ב׳"],"Shabbat Chazon":["שַׁבָּת חֲזוֹן"],"Shabbat HaChodesh":["שַׁבָּת הַחֹדֶשׁ"],"Shabbat HaGadol":["שַׁבָּת הַגָּדוֹל"],"Shabbat Machar Chodesh":["שַׁבָּת מָחָר חוֹדֶשׁ"],"Shabbat Nachamu":["שַׁבָּת נַחֲמוּ"],"Shabbat Parah":["שַׁבָּת פּרה"],"Shabbat Rosh Chodesh":["שַׁבָּת רֹאשׁ חוֹדֶשׁ"],"Shabbat Shekalim":["שַׁבָּת שְׁקָלִים"],"Shabbat Shuva":["שַׁבָּת שׁוּבָה"],"Shabbat Zachor":["שַׁבָּת זָכוֹר"],Shavuot:["שָׁבוּעוֹת"],"Shavuot I":["שָׁבוּעוֹת א׳"],"Shavuot II":["שָׁבוּעוֹת ב׳"],"Shmini Atzeret":["שְׁמִינִי עֲצֶרֶת"],"Shushan Purim":["שׁוּשָׁן פּוּרִים"],Sigd:["סיגד"],"Simchat Torah":["שִׂמְחַת תּוֹרָה"],Sukkot:["סוּכּוֹת"],"Sukkot I":["סוּכּוֹת א׳"],"Sukkot II":["סוּכּוֹת ב׳"],"Sukkot II (CH''M)":["סוּכּוֹת ב׳ (חוה״מ)"],"Sukkot III (CH''M)":["סוּכּוֹת ג׳ (חוה״מ)"],"Sukkot IV (CH''M)":["סוּכּוֹת ד׳ (חוה״מ)"],"Sukkot V (CH''M)":["סוּכּוֹת ה׳ (חוה״מ)"],"Sukkot VI (CH''M)":["סוּכּוֹת ו׳ (חוה״מ)"],"Sukkot VII (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Ta'anit Bechorot":["תַּעֲנִית בְּכוֹרוֹת"],"Ta'anit Esther":["תַּעֲנִית אֶסְתֵּר"],"Tish'a B'Av":["תִּשְׁעָה בְּאָב"],"Tu B'Av":["טוּ בְּאָב"],"Tu BiShvat":["טוּ בִּשְׁבָט"],"Tu B'Shvat":["טוּ בִּשְׁבָט"],"Tzom Gedaliah":["צוֹם גְּדַלְיָה"],"Tzom Tammuz":["צוֹם תָּמוּז"],"Yom HaAtzma'ut":["יוֹם הָעַצְמָאוּת"],"Yom HaShoah":["יוֹם הַשּׁוֹאָה"],"Yom HaZikaron":["יוֹם הַזִּכָּרוֹן"],"Yom Kippur":["יוֹם כִּפּוּר"],"Yom Yerushalayim":["יוֹם יְרוּשָׁלַיִם"],"Yom HaAliyah":["יוֹם הַעֲלִיָּה"],"Yom HaAliyah School Observance":["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"],"Pesach I (on Shabbat)":["פֶּסַח יוֹם א׳ (בְּשַׁבָּת)"],"Pesach Chol ha-Moed Day 1":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם א׳"],"Pesach Chol ha-Moed Day 2":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ב׳"],"Pesach Chol ha-Moed Day 3":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ג׳"],"Pesach Chol ha-Moed Day 4":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ד׳"],"Pesach Chol ha-Moed Day 5":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ה׳"],"Pesach Shabbat Chol ha-Moed":["פֶּסַח שַׁבָּת חוֹל הַמּוֹעֵד"],"Shavuot II (on Shabbat)":["שָׁבוּעוֹת יוֹם ב׳ (בְּשַׁבָּת)"],"Rosh Hashana I (on Shabbat)":["רֹאשׁ הַשָּׁנָה יוֹם א׳ (בְּשַׁבָּת)"],"Yom Kippur (on Shabbat)":["יוֹם כִּפּוּר (בְּשַׁבָּת)"],"Yom Kippur (Mincha, Traditional)":["יוֹם כִּפּוּר מנחה"],"Yom Kippur (Mincha, Alternate)":["יוֹם כִּפּוּר מנחה"],"Sukkot I (on Shabbat)":["סוּכּוֹת יוֹם א׳ (בְּשַׁבָּת)"],"Sukkot Chol ha-Moed Day 1":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם א׳"],"Sukkot Chol ha-Moed Day 2":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ב׳"],"Sukkot Chol ha-Moed Day 3":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ג׳"],"Sukkot Chol ha-Moed Day 4":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ד׳"],"Sukkot Shabbat Chol ha-Moed":["סוּכּוֹת שַׁבָּת חוֹל הַמּוֹעֵד"],"Sukkot Final Day (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Rosh Chodesh Adar":["רֹאשׁ חוֹדֶשׁ אַדָר"],"Rosh Chodesh Adar I":["רֹאשׁ חוֹדֶשׁ אַדָר א׳"],"Rosh Chodesh Adar II":["רֹאשׁ חוֹדֶשׁ אַדָר ב׳"],"Rosh Chodesh Av":["רֹאשׁ חוֹדֶשׁ אָב"],"Rosh Chodesh Cheshvan":["רֹאשׁ חוֹדֶשׁ חֶשְׁוָן"],"Rosh Chodesh Elul":["רֹאשׁ חוֹדֶשׁ אֱלוּל"],"Rosh Chodesh Iyyar":["רֹאשׁ חוֹדֶשׁ אִיָיר"],"Rosh Chodesh Kislev":["רֹאשׁ חוֹדֶשׁ כִּסְלֵו"],"Rosh Chodesh Nisan":["רֹאשׁ חוֹדֶשׁ נִיסָן"],"Rosh Chodesh Sh'vat":["רֹאשׁ חוֹדֶשׁ שְׁבָט"],"Rosh Chodesh Sivan":["רֹאשׁ חוֹדֶשׁ סִיוָן"],"Rosh Chodesh Tamuz":["רֹאשׁ חוֹדֶשׁ תָּמוּז"],"Rosh Chodesh Tevet":["רֹאשׁ חוֹדֶשׁ טֵבֵת"],min:["דקות"],"Fast begins":["תחילת הַצוֹם"],"Fast ends":["סִיּוּם הַצוֹם"],"Rosh Hashana LaBehemot":["רֹאשׁ הַשָּׁנָה לְמַעְשַׂר בְּהֵמָה"],"Tish'a B'Av (observed)":["תִּשְׁעָה בְּאָב נִדחֶה"],"Shabbat Mevarchim Chodesh":["שַׁבָּת מברכים חוֹדֶשׁ"],"Shabbat Shirah":["שַׁבָּת שִׁירָה"],chatzotNight:["חֲצוֹת הַלַיְלָה"],alotHaShachar:["עֲלוֹת הַשַּׁחַר"],misheyakir:["משיכיר - זמן ציצית ותפילין"],misheyakirMachmir:["משיכיר - זמן ציצית ותפילין"],neitzHaChama:["הַנֵץ הַחַמָּה"],sofZmanShma:["סוֹף זְמַן קְרִיאַת שְׁמַע גר״א"],sofZmanTfilla:["סוֹף זְמַן תְּפִלָּה גר״א"],chatzot:["חֲצוֹת הַיּוֹם"],minchaGedola:["מִנְחָה גְּדוֹלָה"],minchaKetana:["מִנְחָה קְטַנָּה"],plagHaMincha:["פְּלַג הַמִּנְחָה"],shkiah:["שְׁקִיעָה"],"Nightfall - End of ordained fasts":["לַיְלָה - גמר תעניות דרבנן"],tzeit:["צֵאת כוכבים"],Lovingkindness:["חֶֽסֶד"],Might:["גְבוּרָה"],Beauty:["תִּפאֶרֶת"],Eternity:["נֶּֽצַח"],Splendor:["הוֹד"],Foundation:["יְּסוֹד"],Majesty:["מַּלְכוּת"],day:["יוֹם"],"Chanukah Day 1":["חֲנוּכָּה יוֹם א׳"],"Chanukah Day 2":["חֲנוּכָּה יוֹם ב׳"],"Chanukah Day 3":["חֲנוּכָּה יוֹם ג׳"],"Chanukah Day 4":["חֲנוּכָּה יוֹם ד׳"],"Chanukah Day 5":["חֲנוּכָּה יוֹם ה׳"],"Chanukah Day 6":["חֲנוּכָּה יוֹם ו׳"],"Chanukah Day 7":["חֲנוּכָּה יוֹם ז׳"],"Chanukah Day 7 (on Rosh Chodesh)":["חֲנוּכָּה יוֹם ז׳ (רֹאשׁ חוֹדֶשׁ)"],"Chanukah Day 8":["חֲנוּכָּה יוֹם ח׳"],Berakhot:["ברכות"],Peah:["פאה"],Demai:["דמאי"],Kilayim:["כלאים"],Sheviit:["שביעית"],Terumot:["תרומות"],Maasrot:["מעשרות"],"Maaser Sheni":["מעשר שני"],Challah:["חלה"],Orlah:["ערלה"],Bikkurim:["ביכורים"],"Rosh Hashanah":["ראש השנה"],Gittin:["גיטין"],"Bava Kamma":["בבא קמא"],"Bava Metzia":["בבא מציעא"],"Bava Batra":["בבא בתרא"],Eduyot:["עדיות"],Avot:["אבות"],Bekhorot:["בכורות"],Arakhin:["ערכין"],Middot:["מדות"],Kelim:["כלים"],Oholot:["אהלות"],Negaim:["נגעים"],Parah:["פרה"],Tahorot:["טהרות"],Mikvaot:["מקואות"],Makhshirin:["מכשירין"],Zavim:["זבים"],"Tevul Yom":["טבול יום"],Yadayim:["ידים"],Oktzin:["עוקצים"]}}};ei.addLocale("he",cc),ei.addLocale("h",cc);var lc=cc.contexts[""],fc={};Object.keys(lc).forEach((function(e){fc[e]=[ei.hebrewStripNikkud(lc[e][0])]}));var vc="he-x-NoNikud",dc={headers:{"plural-forms":"nplurals=2; plural=(n!=1);",language:vc},contexts:{"":fc}};ei.addLocale(vc,dc);var mc=ti.NISAN,yc=ti.SIVAN,gc=ti.ELUL,kc=ti.TISHREI,bc=Di.LIGHT_CANDLES,Sc=Di.YOM_TOV_ENDS,wc=Di.CHUL_ONLY,pc=Di.IL_ONLY,Ac=Di.LIGHT_CANDLES_TZEIS,Mc=Di.CHANUKAH_CANDLES,Ic=Di.MINOR_FAST,Tc=Di.SPECIAL_SHABBAT,Ec=Di.MODERN_HOLIDAY,Dc=Di.MAJOR_FAST,Cc=Di.ROSH_CHODESH,Hc=Di.PARSHA_HASHAVUA,Nc=Di.DAF_YOMI,Oc=Di.OMER_COUNT,Lc=Di.SHABBAT_MEVARCHIM,Bc=Di.MINOR_HOLIDAY,Pc=Di.EREV,Yc=Di.CHOL_HAMOED,_c=Object.create(null),Rc={location:1,year:1,isHebrewYear:1,month:1,numYears:1,start:1,end:1,candlelighting:1,candleLightingMins:1,havdalahMins:1,havdalahDeg:1,sedrot:1,il:1,noMinorFast:1,noModern:1,shabbatMevarchim:1,noRoshChodesh:1,noSpecialShabbat:1,noHolidays:1,dafyomi:1,mishnaYomi:1,omer:1,molad:1,ashkenazi:1,locale:1,addHebrewDates:1,addHebrewDatesForEvents:1,appendHebrewToSubject:1,mask:1,userMask:1};function jc(e){Object.keys(e).forEach((function(e){void 0!==Rc[e]||_c[e]||(console.warn("Ignoring unrecognized HebrewCalendar option: ".concat(e)),_c[e]=!0)}))}function zc(e,t){return Object.keys(t).forEach((function(a){return e[a]=t[a]})),e}function Vc(e){if(e.candlelighting){if(void 0===e.location||!e.location instanceof iu)throw new TypeError("options.candlelighting requires valid options.location");if("number"==typeof e.havdalahMins&&"number"==typeof e.havdalahDeg)throw new TypeError("options.havdalahMins and options.havdalahDeg are mutually exclusive");var t=parseInt(e.candleLightingMins,10)||18;e.location&&e.location.getIsrael()&&"Jerusalem"===e.location.getShortName()&&18===Math.abs(t)&&(t=40),e.candleLightingMins=-1*Math.abs(t),"number"==typeof e.havdalahMins?e.havdalahMins=Math.abs(e.havdalahMins):"number"==typeof e.havdalahDeg?e.havdalahDeg=Math.abs(e.havdalahDeg):e.havdalahDeg=8.5}}function Fc(e){if("number"==typeof e)return e;if(Qr(e))return to(e);if(Mi.isHDate(e))return e.abs();throw new TypeError("Invalid date type: ".concat(e))}function xc(e){if(e.start&&!e.end||e.end&&!e.start)throw new TypeError("Both options.start and options.end are required");if(e.start&&e.end)return[Fc(e.start),Fc(e.end)];var t=Boolean(e.isHebrewYear),a=void 0!==e.year?parseInt(e.year,10):t?(new Mi).getFullYear():(new Date).getFullYear();if(isNaN(a))throw new RangeError("Invalid year ".concat(e.year));if(t&&a<1)throw new RangeError("Invalid Hebrew year ".concat(a));if(0==a)throw new RangeError("Invalid Gregorian year ".concat(a));var n=NaN;e.month&&(n=t?Mi.monthNum(e.month):e.month);var r=parseInt(e.numYears,10)||1;if(t){var o=new Mi(1,n||kc,a),i=o.abs(),u=e.month?i+o.daysInMonth():new Mi(1,kc,a+r).abs()-1;return n||i--,[i,u]}var s=e.month?n-1:0,h=new Date(a,s,1);a<100&&h.setFullYear(a);var c,l=to(h);if(e.month)c=l+Xr(n,a)-1;else{var f=a+r,v=new Date(f,0,1);f<100&&v.setFullYear(f),c=to(v)-1}return[l,c]}function Uc(e){if("number"==typeof e.mask){var t=e.mask;return t&Cc&&delete e.noRoshChodesh,t&Ec&&delete e.noModern,t&Ic&&delete e.noMinorFast,t&Tc&&delete e.noSpecialShabbat,t&Hc&&(e.sedrot=!0),t&Nc&&(e.dafyomi=!0),t&Oc&&(e.omer=!0),t&Lc&&(e.shabbatMevarchim=!0),t&Di.MISHNA_YOMI&&(e.mishnaYomi=!0),e.userMask=!0,t}var a=e.il||e.location&&e.location.il||!1,n=0;return e.noHolidays||(n|=Cc|Sc|Ic|Tc|Ec|Dc|Bc|Pc|Yc|bc|Ac|Mc),e.candlelighting&&(n|=bc|Ac),e.noRoshChodesh&&(n&=~Cc),e.noModern&&(n&=~Ec),e.noMinorFast&&(n&=~Ic),e.noSpecialShabbat&&(n&=~Tc,n&=~Lc),n|=a?pc:wc,e.sedrot&&(n|=Hc),e.dafyomi&&(n|=Nc),e.mishnaYomi&&(n|=Di.MISHNA_YOMI),e.omer&&(n|=Oc),e.shabbatMevarchim&&(n|=Lc),n}var Kc=bc|Ac|Mc|Sc,Gc=new iu(0,0,!1,"UTC"),Zc={US:1,CA:1,BR:1,AU:1,NZ:1,DO:1,PR:1,GR:1,IN:1,KR:1,NP:1,ZA:1};function Wc(e){return e.observedInIsrael()}function Jc(e){return e.observedInDiaspora()}var $c=function(){function e(){a(this,e)}return r(e,null,[{key:"calendar",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Vc(t=zc({},t));var a=t.location=t.location||Gc,n=t.il=t.il||a.il||!1;if(t.mask=Uc(t),t.ashkenazi||t.locale){if(t.locale&&"string"!=typeof t.locale)throw new TypeError("Invalid options.locale: ".concat(t.locale));var r=t.ashkenazi?"ashkenazi":t.locale,o=ei.useLocale(r);if(!o)throw new TypeError("Locale '".concat(r,"' not found; did you forget to import @hebcal/locales?"))}else ei.useLocale("en");var i,u,s,h,c=[],l=-1,f=xc(t);jc(t);var v,d=f[0],m=f[1],y=no(d);y.getFullYear()<100&&(t.candlelighting=!1),t.mishnaYomi&&(v=new Xh);for(var g=function(r){var o=new Mi(r),f=o.getFullYear();f!=l&&(l=f,u=e.getHolidaysForYear(l),t.sedrot&&l>=3762&&(i=Vh(l,n)),t.omer&&(s=Mi.hebrew2abs(l,mc,16),h=Mi.hebrew2abs(l,yc,5)));var d=c.length,m=o.getDay(),y=void 0;if((u.get(o.toString())||[]).forEach((function(e){y=qc(c,e,t,y,m)})),t.sedrot&&6==m&&f>=3762){var g=i.lookup(r);g.chag||c.push(new rh(o,g.parsha,n))}if(t.dafyomi&&f>=5684&&c.push(new qu(o)),t.mishnaYomi&&r>=$h){var k=v.lookup(r);c.push(new ec(o,k))}if(t.omer&&r>=s&&r<=h){var b=new ju(o,r-s+1);if(t.candlelighting){var S=new au(o.prev(),a.getLatitude(),a.getLongitude()).tzeit(7.0833);isNaN(S.getTime())||(b.alarm=S)}c.push(b)}var w=o.getMonth();if(t.molad&&6==m&&w!=gc&&o.getDate()>=23&&o.getDate()<=29){var p=w==Mi.monthsInYear(f)?mc:w+1;c.push(new yu(o,f,p))}if(y||!t.candlelighting||5!=m&&6!=m||(y=hu(void 0,o,m,a,t),5===m&&y&&i&&(y.memo=i.getString(r))),y instanceof lu&&(0===t.havdalahMins||0===t.havdalahDeg)&&(y=null),y&&c.push(y),t.addHebrewDates||t.addHebrewDatesForEvents&&d!=c.length){var A=new Ni(o);d==c.length?c.push(A):c.splice(d,0,A)}},k=d;k<=m;k++)g(k);return c}},{key:"getBirthdayOrAnniversary",value:function(e,t){return function(e,t){var a=Mi.isHDate(t)?t:new Mi(t),n=a.getFullYear();if(!(e<=n)){var r=hi(n),o=a.getMonth(),i=a.getDate();return o==ic&&!r||o==uc&&r?o=ci(e):o!=ac||30!=i||mi(e)?o==nc&&30==i&&yi(e)?(o=rc,i=1):o==ic&&30==i&&r&&!hi(e)&&(o=tc,i=1):(o=nc,i=1),new Mi(i,o,e)}}(e,t)}},{key:"getYahrzeit",value:function(e,t){return function(e,t){var a=Mi.isHDate(t)?t:new Mi(t),n={yy:a.getFullYear(),mm:a.getMonth(),dd:a.getDate()};if(!(e<=n.yy))return n.mm!=ac||30!=n.dd||mi(n.yy+1)?n.mm==nc&&30==n.dd&&yi(n.yy+1)?n=si(ii(e,rc,1)-1):n.mm==uc?n.mm=ci(e):n.mm!=ic||30!=n.dd||hi(e)||(n.dd=30,n.mm=oc):n=si(ii(e,nc,1)-1),n.mm!=ac||30!=n.dd||mi(e)?n.mm==nc&&30==n.dd&&yi(e)&&(n.mm=rc,n.dd=1):(n.mm=nc,n.dd=1),new Mi(n.dd,n.mm,e)}(e,t)}},{key:"getHolidaysForYear",value:function(e){return Wh(e)}},{key:"getHolidaysForYearArray",value:function(e,t){for(var a=Wh(e),n=Mi.hebrew2abs(e,kc,1),r=Mi.hebrew2abs(e+1,kc,1)-1,o=[],i=t?Wc:Jc,u=n;u<=r;u++){var s=new Mi(u),h=a.get(s.toString());if(h){var c=h.filter(i);o=o.concat(c)}}return o}},{key:"getHolidaysOnDate",value:function(e,t){var a=Mi.isHDate(e)?e:new Mi(e),n=Wh(a.getFullYear()).get(a.toString());if(void 0===t||void 0===n)return n;var r=t?Wc:Jc;return n.filter(r)}},{key:"reformatTimeStr",value:function(e,t,a){if("string"!=typeof e)throw new TypeError("Bad timeStr: ".concat(e));var n=a.location&&a.location.cc||(a.il?"IL":"US");if(void 0===Zc[n])return e;var r=e.split(":"),o=parseInt(r[0],10);return o<12&&t?t=t.replace("p","a").replace("P","A"):o>12&&(o%=12),"".concat(o,":").concat(r[1]).concat(t)}},{key:"version",value:function(){return sc}},{key:"getSedra",value:function(e,t){return Vh(e,t)}}]),e}();function qc(e,t,a,n,r){var o=t.getFlags(),i=a.il,u=i&&t.observedInIsrael()||!i&&t.observedInDiaspora(),s=a.mask;if(u&&(o&s||!o&&!a.userMask)){var h=a.location;if(a.candlelighting&&o&Kc){var c=t.getDate();if(n=hu(t,c,r,h,a),o&Mc&&n&&!a.noHolidays){var l=5===r||6===r?n:function(e,t,a){var n=new au(t.greg(),a.getLatitude(),a.getLongitude());return vu(t,n.dusk(),e.getDesc(),e,a)}(t,c,h),f={eventTime:l.eventTime,eventTimeStr:l.eventTimeStr,location:h};t.chanukahDay&&(f.chanukahDay=t.chanukahDay),t.emoji&&(f.emoji=t.emoji),t=new oh(t.getDate(),t.getDesc(),o,f),n=void 0}}a.noHolidays||(a.candlelighting&&o&(Ic|Dc)&&(t=function(e,t){var a=e.getDesc();if("Yom Kippur"===a)return e;var n=(e=e.clone()).getDate(),r=n.greg(),o=new au(r,t.getLatitude(),t.getLongitude());if("Erev Tish'a B'Av"===a){var i=o.sunset();e.startEvent=vu(n,i,"Fast begins",e,t)}else if("Tish'a B'Av"===a.substring(0,11))e.endEvent=vu(n,o.tzeit(7.083),"Fast ends",e,t);else{var u=o.alotHaShachar();e.startEvent=vu(n,u,"Fast begins",e,t),5===r.getDay()||14===n.getDate()&&n.getMonth()===ti.NISAN||(e.endEvent=vu(n,o.tzeit(7.083),"Fast ends",e,t))}return e}(t,h)),t.startEvent&&e.push(t.startEvent),e.push(t),t.endEvent&&e.push(t.endEvent))}return n}return e.AsaraBTevetEvent=sh,e.CandleLightingEvent=fu,e.DafYomi=Ju,e.DafYomiEvent=qu,e.Event=Ci,e.HDate=Mi,e.HavdalahEvent=lu,e.HebrewCalendar=$c,e.HebrewDateEvent=Ni,e.HolidayEvent=oh,e.Locale=ei,e.Location=iu,e.MevarchimChodeshEvent=ch,e.MishnaYomiEvent=ec,e.MishnaYomiIndex=Xh,e.Molad=mu,e.MoladEvent=yu,e.OmerEvent=ju,e.ParshaEvent=rh,e.RoshChodeshEvent=uh,e.RoshHashanaEvent=lh,e.Sedra=Rs,e.TimedEvent=cu,e.Zmanim=au,e.flags=Di,e.gematriya=uo,e.greg=ro,e.months=ti,e.parshiot=js,e.version=sc,Object.defineProperty(e,"__esModule",{value:!0}),e}({});
|
|
1
|
+
/*! @hebcal/core v3.39.1 */
|
|
2
|
+
var hebcal=function(e){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t,a){return t&&n(e.prototype,t),a&&n(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function h(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,n=u(e);if(t){var r=u(this).constructor;a=Reflect.construct(n,arguments,r)}else a=n.apply(this,arguments);return h(this,a)}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function f(e,t){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=function(e,t){if(e){if("string"==typeof e)return l(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){a&&(e=a);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==a.return||a.return()}finally{if(u)throw o}}}}var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},d=function(e){return e&&e.Math==Math&&e},m=d("object"==typeof globalThis&&globalThis)||d("object"==typeof window&&window)||d("object"==typeof self&&self)||d("object"==typeof v&&v)||function(){return this}()||Function("return this")(),y={},g=function(e){try{return!!e()}catch(e){return!0}},k=!g((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),b=!g((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),S=b,w=Function.prototype.call,p=S?w.bind(w):function(){return w.apply(w,arguments)},A={},M={}.propertyIsEnumerable,I=Object.getOwnPropertyDescriptor,T=I&&!M.call({1:2},1);A.f=T?function(e){var t=I(this,e);return!!t&&t.enumerable}:M;var E,D,C=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},H=b,N=Function.prototype,O=N.bind,L=N.call,B=H&&O.bind(L,L),P=H?function(e){return e&&B(e)}:function(e){return e&&function(){return L.apply(e,arguments)}},Y=P,_=Y({}.toString),R=Y("".slice),j=function(e){return R(_(e),8,-1)},z=g,V=j,F=Object,x=P("".split),U=z((function(){return!F("z").propertyIsEnumerable(0)}))?function(e){return"String"==V(e)?x(e,""):F(e)}:F,K=TypeError,G=function(e){if(null==e)throw K("Can't call method on "+e);return e},Z=U,W=G,J=function(e){return Z(W(e))},$=function(e){return"function"==typeof e},q=$,X=function(e){return"object"==typeof e?null!==e:q(e)},Q=m,ee=$,te=function(e){return ee(e)?e:void 0},ae=function(e,t){return arguments.length<2?te(Q[e]):Q[e]&&Q[e][t]},ne=P({}.isPrototypeOf),re=ae("navigator","userAgent")||"",oe=m,ie=re,ue=oe.process,se=oe.Deno,he=ue&&ue.versions||se&&se.version,ce=he&&he.v8;ce&&(D=(E=ce.split("."))[0]>0&&E[0]<4?1:+(E[0]+E[1])),!D&&ie&&(!(E=ie.match(/Edge\/(\d+)/))||E[1]>=74)&&(E=ie.match(/Chrome\/(\d+)/))&&(D=+E[1]);var le=D,fe=le,ve=g,de=!!Object.getOwnPropertySymbols&&!ve((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&fe&&fe<41})),me=de&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ye=ae,ge=$,ke=ne,be=Object,Se=me?function(e){return"symbol"==typeof e}:function(e){var t=ye("Symbol");return ge(t)&&ke(t.prototype,be(e))},we=String,pe=function(e){try{return we(e)}catch(e){return"Object"}},Ae=$,Me=pe,Ie=TypeError,Te=function(e){if(Ae(e))return e;throw Ie(Me(e)+" is not a function")},Ee=Te,De=function(e,t){var a=e[t];return null==a?void 0:Ee(a)},Ce=p,He=$,Ne=X,Oe=TypeError,Le={exports:{}},Be=m,Pe=Object.defineProperty,Ye=function(e,t){try{Pe(Be,e,{value:t,configurable:!0,writable:!0})}catch(a){Be[e]=t}return t},_e=Ye,Re="__core-js_shared__",je=m[Re]||_e(Re,{}),ze=je;(Le.exports=function(e,t){return ze[e]||(ze[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.23.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Ve=G,Fe=Object,xe=function(e){return Fe(Ve(e))},Ue=xe,Ke=P({}.hasOwnProperty),Ge=Object.hasOwn||function(e,t){return Ke(Ue(e),t)},Ze=P,We=0,Je=Math.random(),$e=Ze(1..toString),qe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+$e(++We+Je,36)},Xe=m,Qe=Le.exports,et=Ge,tt=qe,at=de,nt=me,rt=Qe("wks"),ot=Xe.Symbol,it=ot&&ot.for,ut=nt?ot:ot&&ot.withoutSetter||tt,st=function(e){if(!et(rt,e)||!at&&"string"!=typeof rt[e]){var t="Symbol."+e;at&&et(ot,e)?rt[e]=ot[e]:rt[e]=nt&&it?it(t):ut(t)}return rt[e]},ht=p,ct=X,lt=Se,ft=De,vt=function(e,t){var a,n;if("string"===t&&He(a=e.toString)&&!Ne(n=Ce(a,e)))return n;if(He(a=e.valueOf)&&!Ne(n=Ce(a,e)))return n;if("string"!==t&&He(a=e.toString)&&!Ne(n=Ce(a,e)))return n;throw Oe("Can't convert object to primitive value")},dt=TypeError,mt=st("toPrimitive"),yt=function(e,t){if(!ct(e)||lt(e))return e;var a,n=ft(e,mt);if(n){if(void 0===t&&(t="default"),a=ht(n,e,t),!ct(a)||lt(a))return a;throw dt("Can't convert object to primitive value")}return void 0===t&&(t="number"),vt(e,t)},gt=Se,kt=function(e){var t=yt(e,"string");return gt(t)?t:t+""},bt=X,St=m.document,wt=bt(St)&&bt(St.createElement),pt=function(e){return wt?St.createElement(e):{}},At=!k&&!g((function(){return 7!=Object.defineProperty(pt("div"),"a",{get:function(){return 7}}).a})),Mt=k,It=p,Tt=A,Et=C,Dt=J,Ct=kt,Ht=Ge,Nt=At,Ot=Object.getOwnPropertyDescriptor;y.f=Mt?Ot:function(e,t){if(e=Dt(e),t=Ct(t),Nt)try{return Ot(e,t)}catch(e){}if(Ht(e,t))return Et(!It(Tt.f,e,t),e[t])};var Lt={},Bt=k&&g((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Pt=X,Yt=String,_t=TypeError,Rt=function(e){if(Pt(e))return e;throw _t(Yt(e)+" is not an object")},jt=k,zt=At,Vt=Bt,Ft=Rt,xt=kt,Ut=TypeError,Kt=Object.defineProperty,Gt=Object.getOwnPropertyDescriptor,Zt="enumerable",Wt="configurable",Jt="writable";Lt.f=jt?Vt?function(e,t,a){if(Ft(e),t=xt(t),Ft(a),"function"==typeof e&&"prototype"===t&&"value"in a&&Jt in a&&!a.writable){var n=Gt(e,t);n&&n.writable&&(e[t]=a.value,a={configurable:Wt in a?a.configurable:n.configurable,enumerable:Zt in a?a.enumerable:n.enumerable,writable:!1})}return Kt(e,t,a)}:Kt:function(e,t,a){if(Ft(e),t=xt(t),Ft(a),zt)try{return Kt(e,t,a)}catch(e){}if("get"in a||"set"in a)throw Ut("Accessors not supported");return"value"in a&&(e[t]=a.value),e};var $t=Lt,qt=C,Xt=k?function(e,t,a){return $t.f(e,t,qt(1,a))}:function(e,t,a){return e[t]=a,e},Qt={exports:{}},ea=k,ta=Ge,aa=Function.prototype,na=ea&&Object.getOwnPropertyDescriptor,ra=ta(aa,"name"),oa={EXISTS:ra,PROPER:ra&&"something"===function(){}.name,CONFIGURABLE:ra&&(!ea||ea&&na(aa,"name").configurable)},ia=$,ua=je,sa=P(Function.toString);ia(ua.inspectSource)||(ua.inspectSource=function(e){return sa(e)});var ha,ca,la,fa=ua.inspectSource,va=$,da=fa,ma=m.WeakMap,ya=va(ma)&&/native code/.test(da(ma)),ga=Le.exports,ka=qe,ba=ga("keys"),Sa={},wa=ya,pa=m,Aa=P,Ma=X,Ia=Xt,Ta=Ge,Ea=je,Da=function(e){return ba[e]||(ba[e]=ka(e))},Ca=Sa,Ha="Object already initialized",Na=pa.TypeError,Oa=pa.WeakMap;if(wa||Ea.state){var La=Ea.state||(Ea.state=new Oa),Ba=Aa(La.get),Pa=Aa(La.has),Ya=Aa(La.set);ha=function(e,t){if(Pa(La,e))throw new Na(Ha);return t.facade=e,Ya(La,e,t),t},ca=function(e){return Ba(La,e)||{}},la=function(e){return Pa(La,e)}}else{var _a=Da("state");Ca[_a]=!0,ha=function(e,t){if(Ta(e,_a))throw new Na(Ha);return t.facade=e,Ia(e,_a,t),t},ca=function(e){return Ta(e,_a)?e[_a]:{}},la=function(e){return Ta(e,_a)}}var Ra={set:ha,get:ca,has:la,enforce:function(e){return la(e)?ca(e):ha(e,{})},getterFor:function(e){return function(t){var a;if(!Ma(t)||(a=ca(t)).type!==e)throw Na("Incompatible receiver, "+e+" required");return a}}},ja=g,za=$,Va=Ge,Fa=k,xa=oa.CONFIGURABLE,Ua=fa,Ka=Ra.enforce,Ga=Ra.get,Za=Object.defineProperty,Wa=Fa&&!ja((function(){return 8!==Za((function(){}),"length",{value:8}).length})),Ja=String(String).split("String"),$a=Qt.exports=function(e,t,a){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),a&&a.getter&&(t="get "+t),a&&a.setter&&(t="set "+t),(!Va(e,"name")||xa&&e.name!==t)&&Za(e,"name",{value:t,configurable:!0}),Wa&&a&&Va(a,"arity")&&e.length!==a.arity&&Za(e,"length",{value:a.arity});try{a&&Va(a,"constructor")&&a.constructor?Fa&&Za(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=Ka(e);return Va(n,"source")||(n.source=Ja.join("string"==typeof t?t:"")),e};Function.prototype.toString=$a((function(){return za(this)&&Ga(this).source||Ua(this)}),"toString");var qa=$,Xa=Lt,Qa=Qt.exports,en=Ye,tn={},an=Math.ceil,nn=Math.floor,rn=Math.trunc||function(e){var t=+e;return(t>0?nn:an)(t)},on=function(e){var t=+e;return t!=t||0===t?0:rn(t)},un=on,sn=Math.max,hn=Math.min,cn=function(e,t){var a=un(e);return a<0?sn(a+t,0):hn(a,t)},ln=on,fn=Math.min,vn=function(e){return e>0?fn(ln(e),9007199254740991):0},dn=function(e){return vn(e.length)},mn=J,yn=cn,gn=dn,kn=function(e){return function(t,a,n){var r,o=mn(t),i=gn(o),u=yn(n,i);if(e&&a!=a){for(;i>u;)if((r=o[u++])!=r)return!0}else for(;i>u;u++)if((e||u in o)&&o[u]===a)return e||u||0;return!e&&-1}},bn={includes:kn(!0),indexOf:kn(!1)},Sn=Ge,wn=J,pn=bn.indexOf,An=Sa,Mn=P([].push),In=function(e,t){var a,n=wn(e),r=0,o=[];for(a in n)!Sn(An,a)&&Sn(n,a)&&Mn(o,a);for(;t.length>r;)Sn(n,a=t[r++])&&(~pn(o,a)||Mn(o,a));return o},Tn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");tn.f=Object.getOwnPropertyNames||function(e){return In(e,Tn)};var En={};En.f=Object.getOwnPropertySymbols;var Dn=ae,Cn=tn,Hn=En,Nn=Rt,On=P([].concat),Ln=Dn("Reflect","ownKeys")||function(e){var t=Cn.f(Nn(e)),a=Hn.f;return a?On(t,a(e)):t},Bn=Ge,Pn=Ln,Yn=y,_n=Lt,Rn=g,jn=$,zn=/#|\.prototype\./,Vn=function(e,t){var a=xn[Fn(e)];return a==Kn||a!=Un&&(jn(t)?Rn(t):!!t)},Fn=Vn.normalize=function(e){return String(e).replace(zn,".").toLowerCase()},xn=Vn.data={},Un=Vn.NATIVE="N",Kn=Vn.POLYFILL="P",Gn=Vn,Zn=m,Wn=y.f,Jn=Xt,$n=function(e,t,a,n){n||(n={});var r=n.enumerable,o=void 0!==n.name?n.name:t;return qa(a)&&Qa(a,o,n),n.global?r?e[t]=a:en(t,a):(n.unsafe?e[t]&&(r=!0):delete e[t],r?e[t]=a:Xa.f(e,t,{value:a,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})),e},qn=Ye,Xn=function(e,t,a){for(var n=Pn(t),r=_n.f,o=Yn.f,i=0;i<n.length;i++){var u=n[i];Bn(e,u)||a&&Bn(a,u)||r(e,u,o(t,u))}},Qn=Gn,er=function(e,t){var a,n,r,o,i,u=e.target,s=e.global,h=e.stat;if(a=s?Zn:h?Zn[u]||qn(u,{}):(Zn[u]||{}).prototype)for(n in t){if(o=t[n],r=e.dontCallGetSet?(i=Wn(a,n))&&i.value:a[n],!Qn(s?n:u+(h?".":"#")+n,e.forced)&&void 0!==r){if(typeof o==typeof r)continue;Xn(o,r)}(e.sham||r&&r.sham)&&Jn(o,"sham",!0),$n(a,n,o,e)}},tr=j,ar=Array.isArray||function(e){return"Array"==tr(e)},nr={};nr[st("toStringTag")]="z";var rr="[object z]"===String(nr),or=$,ir=j,ur=st("toStringTag"),sr=Object,hr="Arguments"==ir(function(){return arguments}()),cr=rr?ir:function(e){var t,a,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=function(e,t){try{return e[t]}catch(e){}}(t=sr(e),ur))?a:hr?ir(t):"Object"==(n=ir(t))&&or(t.callee)?"Arguments":n},lr=P,fr=g,vr=$,dr=cr,mr=fa,yr=function(){},gr=[],kr=ae("Reflect","construct"),br=/^\s*(?:class|function)\b/,Sr=lr(br.exec),wr=!br.exec(yr),pr=function(e){if(!vr(e))return!1;try{return kr(yr,gr,e),!0}catch(e){return!1}},Ar=function(e){if(!vr(e))return!1;switch(dr(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return wr||!!Sr(br,mr(e))}catch(e){return!0}};Ar.sham=!0;var Mr=!kr||fr((function(){var e;return pr(pr.call)||!pr(Object)||!pr((function(){e=!0}))||e}))?Ar:pr,Ir=kt,Tr=Lt,Er=C,Dr=function(e,t,a){var n=Ir(t);n in e?Tr.f(e,n,Er(0,a)):e[n]=a},Cr=g,Hr=le,Nr=st("species"),Or=P([].slice),Lr=er,Br=ar,Pr=Mr,Yr=X,_r=cn,Rr=dn,jr=J,zr=Dr,Vr=st,Fr=Or,xr=function(e){return Hr>=51||!Cr((function(){var t=[];return(t.constructor={})[Nr]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}("slice"),Ur=Vr("species"),Kr=Array,Gr=Math.max;Lr({target:"Array",proto:!0,forced:!xr},{slice:function(e,t){var a,n,r,o=jr(this),i=Rr(o),u=_r(e,i),s=_r(void 0===t?i:t,i);if(Br(o)&&(a=o.constructor,(Pr(a)&&(a===Kr||Br(a.prototype))||Yr(a)&&null===(a=a[Ur]))&&(a=void 0),a===Kr||void 0===a))return Fr(o,u,s);for(n=new(void 0===a?Kr:a)(Gr(s-u,0)),r=0;u<s;u++,r++)u in o&&zr(n,r,o[u]);return n.length=r,n}});var Zr=[0,31,28,31,30,31,30,31,31,30,31,30,31],Wr=[Zr,Zr.slice()];function Jr(e,t){return e-t*Math.floor(e/t)}function $r(e,t){return Math.floor(e/t)}function qr(e){return!(e%4||!(e%100)&&e%400)}function Xr(e,t){return Wr[+qr(t)][e]}function Qr(e){return"object"===t(e)&&Date.prototype===e.__proto__}function eo(e){if(!Qr(e))throw new TypeError("Argument not a Date: ".concat(e));var t=e.getDate()+31*e.getMonth();return e.getMonth()>1&&(t-=Math.floor((4*(e.getMonth()+1)+23)/10),qr(e.getFullYear())&&t++),t}function to(e){if(!Qr(e))throw new TypeError("Argument not a Date: ".concat(e));var t=e.getFullYear()-1;return eo(e)+365*t+(Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))}function ao(e,t,a){var n=e-1;return 0+365*n+$r(n,4)-$r(n,100)+$r(n,400)+$r(367*t-362,12)+Math.floor(t<=2?0:qr(e)?-1:-2)+a}function no(e){if("number"!=typeof e)throw new TypeError("Argument not a Number: ".concat(e));var t=function(e){var t=e-1,a=$r(t,146097),n=Jr(t,146097),r=$r(n,36524),o=Jr(n,36524),i=$r(o,1461),u=$r(Jr(o,1461),365),s=400*a+100*r+4*i+u;return 4!=r&&4!=u?s+1:s}(e=Math.trunc(e)),a=$r(12*(e-ao(t,1,1)+(e<ao(t,3,1)?0:qr(t)?1:2))+373,367),n=e-ao(t,a,1)+1,r=new Date(t,a-1,n);return t<100&&t>=0&&r.setFullYear(t),r}Wr[1][2]=29;var ro=function(){function e(){a(this,e)}return r(e,null,[{key:"isLeapYear",value:function(e){return qr(e)}},{key:"daysInMonth",value:function(e,t){return Xr(e,t)}},{key:"isDate",value:function(e){return Qr(e)}},{key:"dayOfYear",value:function(e){return eo(e)}},{key:"greg2abs",value:function(e){return to(e)}},{key:"abs2greg",value:function(e){return no(e)}}]),e}();o(ro,"monthNames",["","January","February","March","April","May","June","July","August","September","October","November","December"]);function oo(e){switch(e){case 1:return"א";case 2:return"ב";case 3:return"ג";case 4:return"ד";case 5:return"ה";case 6:return"ו";case 7:return"ז";case 8:return"ח";case 9:return"ט";case 10:return"י";case 20:return"כ";case 30:return"ל";case 40:return"מ";case 50:return"נ";case 60:return"ס";case 70:return"ע";case 80:return"פ";case 90:return"צ";case 100:return"ק";case 200:return"ר";case 300:return"ש";case 400:return"ת";default:return"*INVALID*"}}function io(e){for(var t=[];e>0;){if(15===e||16===e){t.push(9),t.push(e-9);break}var a=100,n=void 0;for(n=400;n>e;n-=a)n===a&&(a/=10);t.push(n),e-=n}return t}function uo(e){var t=parseInt(e,10);if(!t)throw new TypeError("invalid parameter to gematriya ".concat(e));var a="",n=Math.floor(t/1e3);if(n>0&&5!==n){for(var r=io(n),o=0;o<r.length;o++)a+=oo(r[o]);a+="׳"}var i=io(t%1e3);if(1==i.length)return a+oo(i[0])+"׳";for(var u=0;u<i.length;u++)u+1===i.length&&(a+="״"),a+=oo(i[u]);return a}var so=pe,ho=TypeError,co=cr,lo=String,fo=function(e){if("Symbol"===co(e))throw TypeError("Cannot convert a Symbol value to a string");return lo(e)},vo=cn,mo=dn,yo=Dr,go=Array,ko=Math.max,bo=function(e,t,a){for(var n=mo(e),r=vo(t,n),o=vo(void 0===a?n:a,n),i=go(ko(o-r,0)),u=0;r<o;r++,u++)yo(i,u,e[r]);return i.length=u,i},So=Math.floor,wo=function(e,t){var a=e.length,n=So(a/2);return a<8?po(e,t):Ao(e,wo(bo(e,0,n),t),wo(bo(e,n),t),t)},po=function(e,t){for(var a,n,r=e.length,o=1;o<r;){for(n=o,a=e[o];n&&t(e[n-1],a)>0;)e[n]=e[--n];n!==o++&&(e[n]=a)}return e},Ao=function(e,t,a,n){for(var r=t.length,o=a.length,i=0,u=0;i<r||u<o;)e[i+u]=i<r&&u<o?n(t[i],a[u])<=0?t[i++]:a[u++]:i<r?t[i++]:a[u++];return e},Mo=wo,Io=g,To=re.match(/firefox\/(\d+)/i),Eo=!!To&&+To[1],Do=/MSIE|Trident/.test(re),Co=re.match(/AppleWebKit\/(\d+)\./),Ho=!!Co&&+Co[1],No=er,Oo=P,Lo=Te,Bo=xe,Po=dn,Yo=function(e,t){if(!delete e[t])throw ho("Cannot delete property "+so(t)+" of "+so(e))},_o=fo,Ro=g,jo=Mo,zo=function(e,t){var a=[][e];return!!a&&Io((function(){a.call(null,t||function(){return 1},1)}))},Vo=Eo,Fo=Do,xo=le,Uo=Ho,Ko=[],Go=Oo(Ko.sort),Zo=Oo(Ko.push),Wo=Ro((function(){Ko.sort(void 0)})),Jo=Ro((function(){Ko.sort(null)})),$o=zo("sort"),qo=!Ro((function(){if(xo)return xo<70;if(!(Vo&&Vo>3)){if(Fo)return!0;if(Uo)return Uo<603;var e,t,a,n,r="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:a=3;break;case 68:case 71:a=4;break;default:a=2}for(n=0;n<47;n++)Ko.push({k:t+n,v:a})}for(Ko.sort((function(e,t){return t.v-e.v})),n=0;n<Ko.length;n++)t=Ko[n].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return"DGBEFHACIJK"!==r}}));No({target:"Array",proto:!0,forced:Wo||!Jo||!$o||!qo},{sort:function(e){void 0!==e&&Lo(e);var t=Bo(this);if(qo)return void 0===e?Go(t):Go(t,e);var a,n,r=[],o=Po(t);for(n=0;n<o;n++)n in t&&Zo(r,t[n]);for(jo(r,function(e){return function(t,a){return void 0===a?-1:void 0===t?1:void 0!==e?+e(t,a)||0:_o(t)>_o(a)?1:-1}}(e)),a=r.length,n=0;n<a;)t[n]=r[n++];for(;n<o;)Yo(t,n++);return t}});var Xo={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},Qo={h:"he",a:"ashkenazi",s:"en","":"en"},ei=function(){function e(){a(this,e)}return r(e,null,[{key:"lookupTranslation",value:function(e,t){var a=t&&t.toLowerCase(),n=("string"==typeof t&&this.locales[a]||this.activeLocale)[e];if(n&&n.length&&n[0].length)return n[0]}},{key:"gettext",value:function(e,t){var a=this.lookupTranslation(e,t);return void 0===a?e:a}},{key:"addLocale",value:function(e,a){if("object"!==t(a.contexts)||"object"!==t(a.contexts[""]))throw new TypeError("Locale '".concat(e,"' invalid compact format"));this.locales[e.toLowerCase()]=a.contexts[""]}},{key:"useLocale",value:function(e){var t=e.toLowerCase(),a=this.locales[t];if(!a)throw new RangeError("Locale '".concat(e,"' not found"));return this.activeName=Qo[t]||t,this.activeLocale=a,this.activeLocale}},{key:"getLocaleName",value:function(){return this.activeName}},{key:"getLocaleNames",value:function(){return Object.keys(this.locales).sort()}},{key:"ordinal",value:function(e,t){var a=t&&t.toLowerCase()||this.activeName;if(!a)return this.getEnOrdinal(e);switch(a){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+"."}}},{key:"getEnOrdinal",value:function(e){var t=["th","st","nd","rd"],a=e%100;return e+(t[(a-20)%10]||t[a]||t[0])}},{key:"hebrewStripNikkud",value:function(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}]),e}();o(ei,"locales",Object.create(null)),o(ei,"activeLocale",null),o(ei,"activeName",null),ei.addLocale("en",Xo),ei.addLocale("s",Xo),ei.addLocale("",Xo),ei.useLocale("en");var ti={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},ai=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],ni=[ai.concat(["Adar","Nisan"]),ai.concat(["Adar I","Adar II","Nisan"])],ri=Object.create(null),oi=-1373428;function ii(e,t,a){var n=a;if(t<7){for(var r=7;r<=ci(e);r++)n+=li(r,e);for(var o=1;o<t;o++)n+=li(o,e)}else for(var i=7;i<t;i++)n+=li(i,e);return oi+vi(e)+n-1}function ui(e){return oi+vi(e)}function si(e){if("number"!=typeof e||isNaN(e))throw new TypeError("invalid parameter to abs2hebrew ".concat(e));e=Math.trunc(e);for(var t=Math.floor((e-oi)/365.24682220597794);ui(t)<=e;)++t;for(var a=e<ii(--t,1,1)?7:1;e>ii(t,a,li(a,t));)++a;return{yy:t,mm:a,dd:1+e-ii(t,a,1)}}function hi(e){return(1+7*e)%19<7}function ci(e){return 12+hi(e)}function li(e,t){switch(e){case 2:case 4:case 6:case 10:case 13:return 29}return 12===e&&!hi(t)||8===e&&!mi(t)||9===e&&yi(t)?29:30}function fi(e,t){if("number"!=typeof e||isNaN(e)||e<1||e>14)throw new TypeError("bad month argument ".concat(e));return ni[+hi(t)][e]}function vi(e){var t=ri[e]=ri[e]||function(e){var t=e-1,a=235*Math.floor(t/19)+t%19*12+Math.floor((t%19*7+1)/19),n=204+a%1080*793,r=5+12*a+793*Math.floor(a/1080)+Math.floor(n/1080),o=n%1080+r%24*1080,i=1+29*a+Math.floor(r/24),u=i+(o>=19440||2==i%7&&o>=9924&&!hi(e)||1==i%7&&o>=16789&&hi(t));return u+(u%7==0||u%7==3||u%7==5)}(e);return t}function di(e){return vi(e+1)-vi(e)}function mi(e){return di(e)%10==5}function yi(e){return di(e)%10==3}function gi(e){throw new TypeError(e)}var ki="day",bi="week",Si="month",wi="year",pi={d:ki,w:bi,M:Si,y:wi},Ai={day:ki,week:bi,month:Si,year:wi},Mi=function(){function e(t,n,r){if(a(this,e),2==arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3==arguments.length){if(this.day=this.month=1,r=parseInt(r,10),isNaN(r))throw new TypeError("HDate called with bad year argument: ".concat(r));if(this.year=r,this.setMonth(n),t=parseInt(t,10),isNaN(t))throw new TypeError("HDate called with bad day argument: ".concat(t));this.setDate(t)}else{void 0===t&&(t=new Date);var o="number"!=typeof t||isNaN(t)?Qr(t)?to(t):e.isHDate(t)?{dd:t.day,mm:t.month,yy:t.year}:gi("HDate called with bad argument: ".concat(t)):t,i="number"==typeof o,u=i?si(o):o;this.day=u.dd,this.month=u.mm,this.year=u.yy,i&&(this.abs0=o)}}return r(e,[{key:"getFullYear",value:function(){return this.year}},{key:"isLeapYear",value:function(){return hi(this.year)}},{key:"getMonth",value:function(){return this.month}},{key:"getTishreiMonth",value:function(){var e=ci(this.getFullYear());return(this.getMonth()+e-6)%e||e}},{key:"daysInMonth",value:function(){return li(this.getMonth(),this.getFullYear())}},{key:"getDate",value:function(){return this.day}},{key:"getDay",value:function(){return Jr(this.abs(),7)}},{key:"setFullYear",value:function(e){return this.year=e,Ii(this),this}},{key:"setMonth",value:function(t){return this.month=e.monthNum(t),Ii(this),this}},{key:"setDate",value:function(e){return this.day=e,Ii(this),this}},{key:"greg",value:function(){return no(this.abs())}},{key:"abs",value:function(){return"number"!=typeof this.abs0&&(this.abs0=ii(this.year,this.month,this.day)),this.abs0}},{key:"getMonthName",value:function(){return fi(this.getMonth(),this.getFullYear())}},{key:"render",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t||ei.getLocaleName(),r=this.getDate(),o=ei.gettext(this.getMonthName(),n),i=ei.ordinal(r,n),u=e.getDayOfTranslation(n),s="".concat(i).concat(u," ").concat(o);if(a){var h=this.getFullYear();return"".concat(s,", ").concat(h)}return s}},{key:"renderGematriya",value:function(){var e=this.getDate(),t=ei.gettext(this.getMonthName(),"he"),a=this.getFullYear();return uo(e)+" "+t+" "+uo(a)}},{key:"before",value:function(e){return Ei(e,this,-1)}},{key:"onOrBefore",value:function(e){return Ei(e,this,0)}},{key:"nearest",value:function(e){return Ei(e,this,3)}},{key:"onOrAfter",value:function(e){return Ei(e,this,6)}},{key:"after",value:function(e){return Ei(e,this,7)}},{key:"next",value:function(){return new e(this.abs()+1)}},{key:"prev",value:function(){return new e(this.abs()-1)}},{key:"add",value:function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(t=parseInt(t,10)))return new e(this);if((a=e.standardizeUnits(a))===ki)return new e(this.abs()+t);if(a===bi)return new e(this.abs()+7*t);if(a===wi)return new e(this.getDate(),this.getMonth(),this.getFullYear()+t);if(a===Si){var n=new e(this),r=t>0?1:-1;t=Math.abs(t);for(var o=0;o<t;o++)n=new e(n.abs()+r*n.daysInMonth());return n}}},{key:"subtract",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}},{key:"deltaDays",value:function(t){if(!e.isHDate(t))throw new TypeError("Bad argument: ".concat(t));return this.abs()-t.abs()}},{key:"isSameDate",value:function(t){return!!e.isHDate(t)&&(this.year==t.year&&this.month==t.month&&this.day==t.day)}},{key:"toString",value:function(){var e=this.getDate(),t=this.getFullYear(),a=this.getMonthName();return"".concat(e," ").concat(a," ").concat(t)}}],[{key:"hebrew2abs",value:function(e,t,a){return ii(e,t,a)}},{key:"abs2hebrew",value:function(e){return si(e)}},{key:"getDayOfTranslation",value:function(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}var t=ei.lookupTranslation("of",e);return t?" "+t:"ashkenazi"===e.substring(0,9)?" of":""}},{key:"standardizeUnits",value:function(e){var t=pi[e]||String(e||"").toLowerCase().replace(/s$/,"");return Ai[t]||gi("Invalid units '".concat(e,"'"))}},{key:"isLeapYear",value:function(e){return hi(e)}},{key:"monthsInYear",value:function(e){return ci(e)}},{key:"daysInMonth",value:function(e,t){return li(e,t)}},{key:"getMonthName",value:function(e,t){return fi(e,t)}},{key:"monthNum",value:function(t){if("number"==typeof t){if(isNaN(t)||t>14)throw new RangeError("Invalid month number: ".concat(t));return t}return t.charCodeAt(0)>=48&&t.charCodeAt(0)<=57?parseInt(t,10):e.monthFromName(t)}},{key:"daysInYear",value:function(e){return di(e)}},{key:"longCheshvan",value:function(e){return mi(e)}},{key:"shortKislev",value:function(e){return yi(e)}},{key:"monthFromName",value:function(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError("Invalid month name: ".concat(e));return e}var t=e.toLowerCase();switch(t[0]){case"n":case"נ":if("o"==t[1])break;return ti.NISAN;case"i":return ti.IYYAR;case"e":return ti.ELUL;case"c":case"ח":return ti.CHESHVAN;case"k":case"כ":return ti.KISLEV;case"s":switch(t[1]){case"i":return ti.SIVAN;case"h":return ti.SHVAT}case"t":switch(t[1]){case"a":return ti.TAMUZ;case"i":return ti.TISHREI;case"e":return ti.TEVET}break;case"a":switch(t[1]){case"v":return ti.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?ti.ADAR_I:ti.ADAR_II}break;case"ס":return ti.SIVAN;case"ט":return ti.TEVET;case"ש":return ti.SHVAT;case"א":switch(t[1]){case"ב":return ti.AV;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?ti.ADAR_I:ti.ADAR_II;case"י":return ti.IYYAR;case"ל":return ti.ELUL}break;case"ת":switch(t[1]){case"מ":return ti.TAMUZ;case"ש":return ti.TISHREI}}throw new RangeError("Unable to parse month name: ".concat(e))}},{key:"dayOnOrBefore",value:function(e,t){return t-(t-e)%7}},{key:"isHDate",value:function(e){return null!==e&&"object"===t(e)&&"number"==typeof e.year&&"number"==typeof e.month&&"number"==typeof e.day&&"function"==typeof e.greg&&"function"==typeof e.abs}}]),e}();function Ii(e){Ti(e),function(e){e.day<1&&(e.month==ti.TISHREI&&(e.year-=1),e.day+=li(e.month,e.year),e.month-=1,Ii(e));e.day>li(e.month,e.year)&&(e.month===ti.ELUL&&(e.year+=1),e.day-=li(e.month,e.year),e.month+=1,Ii(e));Ti(e)}(e)}function Ti(e){e.month!==ti.ADAR_II||e.isLeapYear()?e.month<1?(e.month+=ci(e.year),e.year-=1,Ii(e)):e.month>ci(e.year)&&(e.month-=ci(e.year),e.year+=1,Ii(e)):(e.month-=1,Ii(e)),delete e.abs0}function Ei(e,t,a){return new Mi(Mi.dayOnOrBefore(e,t.abs()+a))}var Di={CHAG:1,LIGHT_CANDLES:2,YOM_TOV_ENDS:4,CHUL_ONLY:8,IL_ONLY:16,LIGHT_CANDLES_TZEIS:32,CHANUKAH_CANDLES:64,ROSH_CHODESH:128,MINOR_FAST:256,SPECIAL_SHABBAT:512,PARSHA_HASHAVUA:1024,DAF_YOMI:2048,OMER_COUNT:4096,MODERN_HOLIDAY:8192,MAJOR_FAST:16384,SHABBAT_MEVARCHIM:32768,MOLAD:65536,USER_EVENT:131072,HEBREW_DATE:262144,MINOR_HOLIDAY:524288,EREV:1048576,CHOL_HAMOED:2097152,MISHNA_YOMI:4194304},Ci=function(){function e(n,r,o,i){var u=this;a(this,e),this.date=n,this.desc=r,this.mask=+o,"object"===t(i)&&null!==i&&Object.keys(i).forEach((function(e){return u[e]=i[e]}))}return r(e,[{key:"getDate",value:function(){return this.date}},{key:"getDesc",value:function(){return this.desc}},{key:"getFlags",value:function(){return this.mask}},{key:"render",value:function(e){return ei.gettext(this.desc,e)}},{key:"renderBrief",value:function(e){return this.render(e)}},{key:"getEmoji",value:function(){return this.emoji||null}},{key:"basename",value:function(){return this.getDesc()}},{key:"url",value:function(){}},{key:"observedInIsrael",value:function(){return!(this.mask&Di.CHUL_ONLY)}},{key:"observedInDiaspora",value:function(){return!(this.mask&Di.IL_ONLY)}},{key:"observedIn",value:function(e){return e?this.observedInIsrael():this.observedInDiaspora()}},{key:"getAttrs",value:function(){return this}},{key:"clone",value:function(){var e=new this.constructor;for(var t in this)this.hasOwnProperty(t)&&(e[t]=this[t]);return e}}]),e}(),Hi=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"],Ni=function(e){i(n,e);var t=c(n);function n(e){return a(this,n),t.call(this,e,e.toString(),Di.HEBREW_DATE)}return r(n,[{key:"render",value:function(e){var t=e&&e.toLowerCase()||ei.getLocaleName(),a=this.getDate();switch(t){case"h":case"he":case"he-x-nonikud":var n=a.getDate(),r=ei.gettext(a.getMonthName(),t),o=a.getFullYear();return uo(n)+" "+r+" "+uo(o);default:return a.render(t,!0)}}},{key:"renderBrief",value:function(e){var t=e&&e.toLowerCase()||ei.getLocaleName(),a=this.getDate();if(a.getMonth()===ti.TISHREI&&1===a.getDate())return this.render(t);switch(t){case"h":case"he":case"he-x-nonikud":var n=a.getDate(),r=ei.gettext(a.getMonthName(),t);return uo(n)+" "+r;default:return a.render(t,!1)}}}],[{key:"renderHebrew",value:function(e,t,a){return uo(e)+" "+t+" "+uo(a)}}]),n}(Ci),Oi=function(){function e(t,n,r){a(this,e),this.date=t,this.latitude=n,this.longitude=r,this.julianDate=function(e){var t=e.getFullYear(),a=e.getMonth()+1,n=e.getDate();a<3&&(t--,a+=12);var r=Math.floor(t/100),o=2-r+Math.floor(r/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(a+1))+n+o-1524.5}(t)}return r(e,[{key:"solarNoon",get:function(){return function(e,t,a){var n=Fi(Bi(e-t/360)),r=Bi(e+(720-4*t-n)/1440);n=Fi(r);var o=720-4*t-n;for(;o<0;)o+=1440;for(;o>=1440;)o-=1440;return Li(a,o)}(this.julianDate,this.longitude,this.date)}},{key:"timeAtAngle",value:function(e,t){return function(e,t,a,n,r,o){var i=xi(e,t,a,r,o),u=xi(e,t,a+i/1440,r,o);return function(e){for(var t=!1,a="".concat(e),n=0;n<a.length;n++){var r=a.charAt(n);if(0!==n||"-"!==r&&"+"!==r)if("."!==r||t){if(r<"0"||r>"9")return!1}else t=!0}return!0}(u)?Li(n,u):new Date(NaN)}(t,e,this.julianDate,this.date,this.latitude,this.longitude)}}]),e}();function Li(e,t){var a=60*(t-Math.floor(t));return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),0,t,a))}function Bi(e){return(e-2451545)/36525}function Pi(e){return 180*e/Math.PI}function Yi(e){return Math.PI*e/180}function _i(e){for(var t=280.46646+e*(36000.76983+3032e-7*e);t>360;)t-=360;for(;t<0;)t+=360;return t}function Ri(e){return 357.52911+e*(35999.05029-1537e-7*e)}function ji(e){var t=_i(e),a=function(e){var t=Yi(Ri(e));return Math.sin(t)*(1.914602-e*(.004817+14e-6*e))+Math.sin(t+t)*(.019993-101e-6*e)+289e-6*Math.sin(t+t+t)}(e);return t+a}function zi(e){var t=function(e){return 23+(26+(21.448-e*(46.815+e*(59e-5-.001813*e)))/60)/60}(e),a=125.04-1934.136*e;return t+.00256*Math.cos(Yi(a))}function Vi(e){var t=zi(e),a=function(e){var t=125.04-1934.136*e;return ji(e)-.00569-.00478*Math.sin(Yi(t))}(e),n=Math.sin(Yi(t))*Math.sin(Yi(a));return Pi(Math.asin(n))}function Fi(e){var t=zi(e),a=_i(e),n=function(e){return.016708634-e*(42037e-9+1.267e-7*e)}(e),r=Ri(e),o=Math.tan(Yi(t)/2);o*=o;var i=Math.sin(2*Yi(a)),u=Math.sin(Yi(r));return 4*Pi(o*i-2*n*u+4*n*o*u*Math.cos(2*Yi(a))-.5*o*o*Math.sin(4*Yi(a))-1.25*n*n*Math.sin(2*Yi(r)))}function xi(e,t,a,n,r){var o=Bi(a),i=Fi(o),u=function(e,t,a){var n=Yi(t),r=Yi(a),o=Math.cos(Yi(90+e))/(Math.cos(n)*Math.cos(r))-Math.tan(n)*Math.tan(r);return Math.acos(o)}(t,n,Vi(o));return e||(u=-u),720-4*(r+Pi(u))-i}var Ui=.833,Ki=.3,Gi=6,Zi=12,Wi=18,Ji=-6,$i=function(){function e(t,n,r){a(this,e),this.date=t,this.lat=n,this.longitude=r,this.sun=new Oi(t,n,r)}return r(e,[{key:"solarNoon",get:function(){return this.sun.solarNoon}},{key:"sunrise",get:function(){return this.sun.timeAtAngle(Ui,!0)}},{key:"sunset",get:function(){return this.sun.timeAtAngle(Ui)}},{key:"sunriseEnd",get:function(){return this.sun.timeAtAngle(Ki,!0)}},{key:"sunsetStart",get:function(){return this.sun.timeAtAngle(Ki,!1)}},{key:"civilDawn",get:function(){return this.sun.timeAtAngle(Gi,!0)}},{key:"dawn",get:function(){return this.civilDawn}},{key:"civilDusk",get:function(){return this.sun.timeAtAngle(Gi,!1)}},{key:"dusk",get:function(){return this.civilDusk}},{key:"nauticalDawn",get:function(){return this.sun.timeAtAngle(Zi,!0)}},{key:"nauticalDusk",get:function(){return this.sun.timeAtAngle(Zi,!1)}},{key:"nightStart",get:function(){return this.astronomicalDusk}},{key:"astronomicalDusk",get:function(){return this.sun.timeAtAngle(Wi,!1)}},{key:"astronomicalDawn",get:function(){return this.sun.timeAtAngle(Wi,!0)}},{key:"nightEnd",get:function(){return this.astronomicalDawn}},{key:"goldenHourStart",get:function(){return this.sun.timeAtAngle(Ji,!1)}},{key:"goldenHourEnd",get:function(){return this.sun.timeAtAngle(Ji,!0)}}]),e}(),qi={};var Xi=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function Qi(e,t){var a=function(e){var t=qi[e];if(t)return t;var a=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:e});return qi[e]=a,a}(e).format(t),n=Xi.exec(a),r=n[4];return"24"==r&&(r="00"),n[3]=eu(n[3]),"".concat(n[3],"-").concat(n[1],"-").concat(n[2],"T").concat(r,":").concat(n[5],":").concat(n[6],"Z")}function eu(e){return e<0?"-00"+eu(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function tu(e){return e<10?"0"+e:String(e)}var au=function(){function e(t,n,r){if(a(this,e),"number"!=typeof n)throw new TypeError("Invalid latitude");if("number"!=typeof r)throw new TypeError("Invalid longitude");if(n<-90||n>90)throw new RangeError("Latitude ".concat(n," out of range [-90,90]"));if(r<-180||r>180)throw new RangeError("Longitude ".concat(r," out of range [-180,180]"));var o=Qr(t)?t:Mi.isHDate(t)?t.greg():function(e){throw new TypeError(e)}("invalid date: ".concat(t));this.date=o,this.solarCalc=new $i(this.date,n,r),this.sun=this.solarCalc.sun,this.latitude=n,this.longitude=r}return r(e,[{key:"suntime",value:function(){return{solarNoon:this.solarCalc.solarNoon,sunrise:this.sunrise(),sunset:this.sunset(),sunriseEnd:this.solarCalc.sunriseEnd,sunsetStart:this.solarCalc.sunsetStart,dawn:this.dawn(),dusk:this.dusk(),nauticalDawn:this.solarCalc.nauticalDawn,nauticalDusk:this.solarCalc.nauticalDusk,nightEnd:this.solarCalc.nightEnd,night:this.solarCalc.nightStart,goldenHourEnd:this.solarCalc.goldenHourEnd,goldenHour:this.solarCalc.goldenHourStart,alotHaShachar:this.alotHaShachar(),misheyakir:this.misheyakir(),misheyakirMachmir:this.misheyakirMachmir(),tzeit:this.tzeit()}}},{key:"sunrise",value:function(){return this.sun.timeAtAngle(.833333,!0)}},{key:"sunset",value:function(){return this.sun.timeAtAngle(.833333,!1)}},{key:"dawn",value:function(){return this.solarCalc.dawn}},{key:"dusk",value:function(){return this.solarCalc.dusk}},{key:"hour",value:function(){return(this.sunset()-this.sunrise())/12}},{key:"hourMins",value:function(){return this.hour()/6e4}},{key:"gregEve",value:function(){var t=new Date(this.date);return t.setDate(t.getDate()-1),new e(t,this.latitude,this.longitude).sunset()}},{key:"nightHour",value:function(){return(this.sunrise()-this.gregEve())/12}},{key:"nightHourMins",value:function(){return this.nightHour()/6e4}},{key:"hourOffset",value:function(e){return new Date(this.sunrise().getTime()+this.hour()*e)}},{key:"chatzot",value:function(){return this.hourOffset(6)}},{key:"chatzotNight",value:function(){return new Date(this.sunrise().getTime()-6*this.nightHour())}},{key:"alotHaShachar",value:function(){return this.sun.timeAtAngle(16.1,!0)}},{key:"misheyakir",value:function(){return this.sun.timeAtAngle(11.5,!0)}},{key:"misheyakirMachmir",value:function(){return this.sun.timeAtAngle(10.2,!0)}},{key:"sofZmanShma",value:function(){return this.hourOffset(3)}},{key:"sofZmanTfilla",value:function(){return this.hourOffset(4)}},{key:"sofZmanShmaMGA",value:function(){var e=this.sunriseOffset(-72),t=(this.sunsetOffset(72)-e)/12;return new Date(e.getTime()+3*t)}},{key:"sofZmanTfillaMGA",value:function(){var e=this.sunriseOffset(-72),t=(this.sunsetOffset(72)-e)/12;return new Date(e.getTime()+4*t)}},{key:"minchaGedola",value:function(){return this.hourOffset(6.5)}},{key:"minchaKetana",value:function(){return this.hourOffset(9.5)}},{key:"plagHaMincha",value:function(){return this.hourOffset(10.75)}},{key:"tzeit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8.5;return this.sun.timeAtAngle(e,!1)}},{key:"neitzHaChama",value:function(){return this.sunrise()}},{key:"shkiah",value:function(){return this.sunset()}},{key:"sunriseOffset",value:function(e){var t=this.sunrise();return isNaN(t.getTime())?t:(e>0&&t.getSeconds()>=30&&e++,t.setSeconds(0,0),new Date(t.getTime()+60*e*1e3))}},{key:"sunsetOffset",value:function(e){var t=this.sunset();return isNaN(t.getTime())?t:(e>0&&t.getSeconds()>=30&&e++,t.setSeconds(0,0),new Date(t.getTime()+60*e*1e3))}},{key:"sunsetOffsetTime",value:function(t,a){var n=this.sunsetOffset(t);return isNaN(n.getTime())?[void 0,void 0]:[n,e.formatTime(n,a)]}},{key:"tzeitTime",value:function(t,a){var n=this.tzeit(t);if(isNaN(n.getTime()))return[void 0,void 0];var r=e.roundTime(n);return[r,e.formatTime(r,a)]}}],[{key:"formatTime",value:function(e,t){var a=t.format(e),n=a.split(":");return"24"===n[0]?"00:"+n[1]:a}},{key:"roundTime",value:function(e){var t=e.getTime();if(isNaN(t))return e;var a=e.getMilliseconds(),n=e.getSeconds();if(0===n&&0===a)return e;var r=1e3*n+a;return new Date(t+(r>=3e4?6e4-r:-1*r))}},{key:"timeZoneOffset",value:function(e,t){var a=function(e,t){var a=Qi("UTC",t),n=Qi(e,t),r=new Date(a).getTime()-new Date(n).getTime();return Math.ceil(r/1e3/60)}(e,t),n=Math.abs(a),r=n%60;return(a<0?"+":"-")+tu(Math.floor(n/60))+":"+tu(r)}},{key:"formatISOWithTimeZone",value:function(t,a){return isNaN(a.getTime())?null:Qi(t,a).substring(0,19)+e.timeZoneOffset(t,a)}}]),e}(),nu=Object.create(null),ru={0:"UTC",4:"America/Puerto_Rico",5:"America/New_York",6:"America/Chicago",7:"America/Denver",8:"America/Los_Angeles",9:"America/Anchorage",10:"Pacific/Honolulu",11:"Pacific/Pago_Pago",13:"Pacific/Funafuti",14:"Pacific/Guam",15:"Pacific/Palau",16:"Pacific/Chuuk"},ou=Object.create(null);var iu=function(){function e(t,n,r,o,i,u,s){a(this,e);var h="number"==typeof t?t:parseFloat(t);if(isNaN(h)||h<-90||h>90)throw new RangeError("Latitude ".concat(t," out of range [-90,90]"));var c="number"==typeof n?n:parseFloat(n);if(isNaN(c)||c<-180||c>180)throw new RangeError("Longitude ".concat(n," out of range [-180,180]"));this.latitude=h,this.longitude=c,this.il=Boolean(r),this.tzid=o,this.name=i,this.cc=u,this.geoid=s}return r(e,[{key:"getLatitude",value:function(){return this.latitude}},{key:"getLongitude",value:function(){return this.longitude}},{key:"getIsrael",value:function(){return this.il}},{key:"getName",value:function(){return this.name}},{key:"getShortName",value:function(){var e=this.name;if(!e)return e;var t=e.indexOf(", ");if(-1===t)return e;if("US"===this.cc&&"D"===e[t+2]){if("C"===e[t+3])return e.substring(0,t+4);if("."===e[t+3]&&"C"===e[t+4])return e.substring(0,t+6)}return e.substring(0,t)}},{key:"getCountryCode",value:function(){return this.cc}},{key:"getTzid",value:function(){return this.tzid}},{key:"getTimeFormatter",value:function(){return function(e){var t=ou[e];if(t)return t;var a=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return ou[e]=a,a}(this.tzid)}},{key:"getGeoId",value:function(){return this.geoid}},{key:"sunset",value:function(e){return new au(e,this.getLatitude(),this.getLongitude()).sunset()}},{key:"tzeit",value:function(e,t){return new au(e,this.getLatitude(),this.getLongitude()).tzeit(t)}},{key:"toString",value:function(){return JSON.stringify(this)}}],[{key:"lookup",value:function(e){return nu[e.toLowerCase()]}},{key:"legacyTzToTzid",value:function(e,t){if(e=+e,"none"==t)return 0==e?"UTC":"Etc/GMT".concat(e>0?"+":"").concat(e);if(2==e&&"israel"==t)return"Asia/Jerusalem";if("eu"==t)switch(e){case-2:return"Atlantic/Cape_Verde";case-1:return"Atlantic/Azores";case 0:return"Europe/London";case 1:return"Europe/Paris";case 2:return"Europe/Athens"}else if("usa"==t)return ru[String(-1*e)]}},{key:"getUsaTzid",value:function(e,t,a){return 10==t&&"AK"==e?"America/Adak":7==t&&"AZ"==e?"Y"==a?"America/Denver":"America/Phoenix":ru[t]}},{key:"geonameCityDescr",value:function(e,t,a){"United States"==a&&(a="USA"),"United Kingdom"==a&&(a="UK");var n=e;return"Israel"!=a&&t&&0!=t.indexOf(e)&&(n+=", "+t),a&&(n+=", "+a),n}},{key:"addLocation",value:function(e,t){var a=e.toLowerCase();return!nu[a]&&(nu[a]=t,!0)}}]),e}();[["Ashdod","IL",31.79213,34.64966,"Asia/Jerusalem"],["Atlanta","US",33.749,-84.38798,"America/New_York"],["Austin","US",30.26715,-97.74306,"America/Chicago"],["Baghdad","IQ",33.34058,44.40088,"Asia/Baghdad"],["Beer Sheva","IL",31.25181,34.7913,"Asia/Jerusalem"],["Berlin","DE",52.52437,13.41053,"Europe/Berlin"],["Baltimore","US",39.29038,-76.61219,"America/New_York"],["Bogota","CO",4.60971,-74.08175,"America/Bogota"],["Boston","US",42.35843,-71.05977,"America/New_York"],["Budapest","HU",47.49801,19.03991,"Europe/Budapest"],["Buenos Aires","AR",-34.61315,-58.37723,"America/Argentina/Buenos_Aires"],["Buffalo","US",42.88645,-78.87837,"America/New_York"],["Chicago","US",41.85003,-87.65005,"America/Chicago"],["Cincinnati","US",39.162,-84.45689,"America/New_York"],["Cleveland","US",41.4995,-81.69541,"America/New_York"],["Dallas","US",32.78306,-96.80667,"America/Chicago"],["Denver","US",39.73915,-104.9847,"America/Denver"],["Detroit","US",42.33143,-83.04575,"America/Detroit"],["Eilat","IL",29.55805,34.94821,"Asia/Jerusalem"],["Gibraltar","GI",36.14474,-5.35257,"Europe/Gibraltar"],["Haifa","IL",32.81841,34.9885,"Asia/Jerusalem"],["Hawaii","US",21.30694,-157.85833,"Pacific/Honolulu"],["Helsinki","FI",60.16952,24.93545,"Europe/Helsinki"],["Houston","US",29.76328,-95.36327,"America/Chicago"],["Jerusalem","IL",31.76904,35.21633,"Asia/Jerusalem"],["Johannesburg","ZA",-26.20227,28.04363,"Africa/Johannesburg"],["Kiev","UA",50.45466,30.5238,"Europe/Kiev"],["La Paz","BO",-16.5,-68.15,"America/La_Paz"],["Livingston","US",40.79593,-74.31487,"America/New_York"],["Las Vegas","US",36.17497,-115.13722,"America/Los_Angeles"],["London","GB",51.50853,-.12574,"Europe/London"],["Los Angeles","US",34.05223,-118.24368,"America/Los_Angeles"],["Marseilles","FR",43.29695,5.38107,"Europe/Paris"],["Miami","US",25.77427,-80.19366,"America/New_York"],["Minneapolis","US",44.97997,-93.26384,"America/Chicago"],["Melbourne","AU",-37.814,144.96332,"Australia/Melbourne"],["Mexico City","MX",19.42847,-99.12766,"America/Mexico_City"],["Montreal","CA",45.50884,-73.58781,"America/Toronto"],["Moscow","RU",55.75222,37.61556,"Europe/Moscow"],["New York","US",40.71427,-74.00597,"America/New_York"],["Omaha","US",41.25861,-95.93779,"America/Chicago"],["Ottawa","CA",45.41117,-75.69812,"America/Toronto"],["Panama City","PA",8.9936,-79.51973,"America/Panama"],["Paris","FR",48.85341,2.3488,"Europe/Paris"],["Pawtucket","US",41.87871,-71.38256,"America/New_York"],["Petach Tikvah","IL",32.08707,34.88747,"Asia/Jerusalem"],["Philadelphia","US",39.95233,-75.16379,"America/New_York"],["Phoenix","US",33.44838,-112.07404,"America/Phoenix"],["Pittsburgh","US",40.44062,-79.99589,"America/New_York"],["Providence","US",41.82399,-71.41283,"America/New_York"],["Portland","US",45.52345,-122.67621,"America/Los_Angeles"],["Saint Louis","US",38.62727,-90.19789,"America/Chicago"],["Saint Petersburg","RU",59.93863,30.31413,"Europe/Moscow"],["San Diego","US",32.71533,-117.15726,"America/Los_Angeles"],["San Francisco","US",37.77493,-122.41942,"America/Los_Angeles"],["Sao Paulo","BR",-23.5475,-46.63611,"America/Sao_Paulo"],["Seattle","US",47.60621,-122.33207,"America/Los_Angeles"],["Sydney","AU",-33.86785,151.20732,"Australia/Sydney"],["Tel Aviv","IL",32.08088,34.78057,"Asia/Jerusalem"],["Tiberias","IL",32.79221,35.53124,"Asia/Jerusalem"],["Toronto","CA",43.70011,-79.4163,"America/Toronto"],["Vancouver","CA",49.24966,-123.11934,"America/Vancouver"],["White Plains","US",41.03399,-73.76291,"America/New_York"],["Washington DC","US",38.89511,-77.03637,"America/New_York"],["Worcester","US",42.26259,-71.80229,"America/New_York"]].forEach((function(e){var t=new iu(e[2],e[3],"IL"==e[1],e[4],e[0],e[1]);iu.addLocation(t.getName(),t)}));var uu=5,su=6;function hu(e,t,a,n,r){var o=!1,i=a==su,u=e?e.getFlags():Di.LIGHT_CANDLES;void 0!==e?a!=uu&&(u&(Di.LIGHT_CANDLES_TZEIS|Di.CHANUKAH_CANDLES)?i=!0:u&Di.YOM_TOV_ENDS&&(o=!0,i=!0)):a==su&&(o=!0,u=Di.LIGHT_CANDLES_TZEIS);var s=i?r.havdalahMins:r.candleLightingMins,h=new au(t,n.getLatitude(),n.getLongitude()),c=s?h.sunsetOffset(s):h.tzeit(r.havdalahDeg);return isNaN(c.getTime())?null:o?new lu(t,u,c,n,r.havdalahMins,e):new fu(t,u,c,n,e)}var cu=function(e){i(n,e);var t=c(n);function n(e,r,o,i,u,s){var h;a(this,n),(h=t.call(this,e,r,o)).eventTime=au.roundTime(i),h.location=u;var c=u.getTimeFormatter();return h.eventTimeStr=au.formatTime(h.eventTime,c),void 0!==s&&(h.linkedEvent=s),h}return r(n,[{key:"render",value:function(e){return ei.gettext(this.getDesc(),e)+": "+this.eventTimeStr}},{key:"renderBrief",value:function(e){return ei.gettext(this.getDesc(),e)}}]),n}(Ci),lu=function(e){i(n,e);var t=c(n);function n(e,r,o,i,u,s){var h;return a(this,n),h=t.call(this,e,"Havdalah",r,o,i,s),u&&(h.havdalahMins=u),h}return r(n,[{key:"render",value:function(e){return this.renderBrief(e)+": "+this.eventTimeStr}},{key:"renderBrief",value:function(e){var t=ei.gettext(this.getDesc(),e);if(this.havdalahMins){var a=ei.gettext("min",e);t+=" (".concat(this.havdalahMins," ").concat(a,")")}return t}},{key:"getEmoji",value:function(){return"✨"}}]),n}(cu),fu=function(e){i(n,e);var t=c(n);function n(e,r,o,i,u){return a(this,n),t.call(this,e,"Candle lighting",r,o,i,u)}return r(n,[{key:"getEmoji",value:function(){return"🕯️"}}]),n}(cu);function vu(e,t,a,n,r){return isNaN(t.getTime())?null:new cu(e,a,n.getFlags(),t,r,n)}var du=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],mu=function(){function e(t,n){a(this,e);var r=n-7;r<0&&(r+=Mi.monthsInYear(t));var o=235*Math.floor((t-1)/19)+(t-1)%19*12+Math.floor(((t-1)%19*7+1)/19)+r,i=204+Math.floor(o%1080*793),u=5+12*o+793*Math.floor(o/1080)+Math.floor(i/1080)-6,s=(i%1080+u%24*1080)%1080,h=(1+29*o+Math.floor(u/24))%7;this.year=t,this.month=n,this.dow=h,this.hour=u%24,this.minutes=Math.floor(s/18),this.chalakim=s%18}return r(e,[{key:"getYear",value:function(){return this.year}},{key:"getMonth",value:function(){return this.month}},{key:"getMonthName",value:function(){return Mi.getMonthName(this.month,this.year)}},{key:"getDow",value:function(){return this.dow}},{key:"getHour",value:function(){return this.hour}},{key:"getMinutes",value:function(){return this.minutes}},{key:"getChalakim",value:function(){return this.chalakim}}]),e}(),yu=function(e){i(n,e);var t=c(n);function n(e,r,o){var i;a(this,n);var u=new mu(r,o),s=u.getMonthName();return(i=t.call(this,e,"Molad ".concat(s," ").concat(r),Di.MOLAD)).molad=u,i}return r(n,[{key:"render",value:function(e){var t=this.molad,a=t.getMonthName(),n=du[t.getDow()],r=t.getMinutes(),o=t.getHour(),i=t.getChalakim();return"Molad ".concat(a,": ").concat(n,", ").concat(r," minutes and ").concat(i," chalakim after ").concat(o,":00")}}]),n}(Ci),gu=er,ku=P,bu=cn,Su=RangeError,wu=String.fromCharCode,pu=String.fromCodePoint,Au=ku([].join);gu({target:"String",stat:!0,arity:1,forced:!!pu&&1!=pu.length},{fromCodePoint:function(e){for(var t,a=[],n=arguments.length,r=0;n>r;){if(t=+arguments[r++],bu(t,1114111)!==t)throw Su(t+" is not a valid code point");a[r]=t<65536?wu(t):wu(55296+((t-=65536)>>10),t%1024+56320)}return Au(a,"")}});var Mu="\t\n\v\f\r \u2028\u2029\ufeff",Iu=G,Tu=fo,Eu=P("".replace),Du="[\t\n\v\f\r \u2028\u2029\ufeff]",Cu=RegExp("^"+Du+Du+"*"),Hu=RegExp(Du+Du+"*$"),Nu=function(e){return function(t){var a=Tu(Iu(t));return 1&e&&(a=Eu(a,Cu,"")),2&e&&(a=Eu(a,Hu,"")),a}},Ou={start:Nu(1),end:Nu(2),trim:Nu(3)},Lu=oa.PROPER,Bu=g,Pu=Mu,Yu=Ou.trim;er({target:"String",proto:!0,forced:function(e){return Bu((function(){return!!Pu[e]()||"
"!=="
"[e]()||Lu&&Pu[e].name!==e}))}("trim")},{trim:function(){return Yu(this)}});var _u=[null,"Lovingkindness","Might","Beauty","Eternity","Splendor","Foundation","Majesty"],Ru=[null,"Chesed","Gevurah","Tiferet","Netzach","Hod","Yesod","Malkhut"],ju=function(e){i(n,e);var t=c(n);function n(e,r){var o;if(a(this,n),o=t.call(this,e,"Omer ".concat(r),Di.OMER_COUNT,{omer:r}),r<1||r>49)throw new RangeError("Invalid Omer day ".concat(r));return o.weekNumber=Math.floor((r-1)/7)+1,o.daysWithinWeeks=r%7||7,o}return r(n,[{key:"sefira",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",t=_u[this.weekNumber],a=_u[this.daysWithinWeeks];switch(e){case"he":var n=ei.gettext(t,"he"),r=ei.gettext(a,"he"),o=2===this.weekNumber||6===this.weekNumber?"שֶׁבִּ":"שֶׁבְּ";return"".concat(r," ").concat(o).concat(n).normalize();case"translit":var i=Ru[this.weekNumber],u=Ru[this.daysWithinWeeks],s=2===this.weekNumber||6===this.weekNumber?"shebi":"sheb'";return"".concat(u," ").concat(s).concat(i);default:return"".concat(a," within ").concat(t)}}},{key:"render",value:function(e){var t=this.omer;return("he"==e?uo(t):ei.ordinal(t,e))+" "+ei.gettext("day of the Omer",e)}},{key:"renderBrief",value:function(e){return ei.gettext("Omer",e)+" "+ei.gettext("day",e)+" "+this.omer}},{key:"getEmoji",value:function(){if("string"==typeof this.emoji)return this.emoji;var e=this.omer;return e<=20?String.fromCodePoint(9312+e-1):e<=35?String.fromCodePoint(12881+e-21):String.fromCodePoint(12977+e-36)}},{key:"getWeeks",value:function(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}},{key:"getDaysWithinWeeks",value:function(){return this.daysWithinWeeks}},{key:"getTodayIs",value:function(e){if("he"===e||"he"===e)return function(e){var t=Math.floor(e/10),a=e%10,n="הַיוֹם ";10<e&&e<20?n+=Vu[a]+" עָשָׂר":e>9&&(n+=Vu[a],a&&(n+=" וְ"));e>2?((e>20||10===e||20===e)&&(n+=zu[t]),n+=e<11?Vu[a]+" "+"יָמִים ":" יוֹם "):n+=1===e?Uu+" ":Fu+" ";if(e>6){n=n.trim(),n+=", שְׁהֵם ";var r=Math.floor(e/7),o=e%7;n+=r>2?Vu[r]+" "+xu+" ":1==r?"שָׁבוּעַ "+Vu[1]+" ":"שְׁנֵי שָׁבוּעוֹת ",o&&(n+="וְ",n+=o>2?Vu[o]+" "+"יָמִים ":1==o?Uu+" ":Fu+" ")}return(n+="לָעוֹמֶר").normalize()}(this.omer);var t=1===this.omer?"day":"days",a="Today is ".concat(this.omer," ").concat(t);if(this.weekNumber>1||7===this.omer){var n=7===this.daysWithinWeeks,r=n?this.weekNumber:this.weekNumber-1,o=1===r?"week":"weeks";if(a+=", which is ".concat(r," ").concat(o),!n){var i=1===this.daysWithinWeeks?"day":"days";a+=" and ".concat(this.daysWithinWeeks," ").concat(i)}}return a+" of the Omer"}},{key:"url",value:function(){return"https://www.hebcal.com/omer/".concat(this.getDate().getFullYear(),"/").concat(this.omer)}}]),n}(Ci),zu=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],Vu=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָׁה","שִׁשָׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],Fu="שְׁנֵי יָמִים",xu="שָׁבוּעוֹת",Uu="יוֹם "+Vu[1];var Ku=new Date(1923,8,11),Gu=to(Ku),Zu=to(new Date(1975,5,24)),Wu=[["Berachot",64],["Shabbat",157],["Eruvin",105],["Pesachim",121],["Shekalim",22],["Yoma",88],["Sukkah",56],["Beitzah",40],["Rosh Hashana",35],["Taanit",31],["Megillah",32],["Moed Katan",29],["Chagigah",27],["Yevamot",122],["Ketubot",112],["Nedarim",91],["Nazir",66],["Sotah",49],["Gitin",90],["Kiddushin",82],["Baba Kamma",119],["Baba Metzia",119],["Baba Batra",176],["Sanhedrin",113],["Makkot",24],["Shevuot",49],["Avodah Zarah",76],["Horayot",14],["Zevachim",120],["Menachot",110],["Chullin",142],["Bechorot",61],["Arachin",34],["Temurah",34],["Keritot",28],["Meilah",22],["Kinnim",4],["Tamid",9],["Midot",5],["Niddah",73]].map((function(e){return{name:e[0],blatt:e[1]}}));var Ju=function(){function e(t){a(this,e);var n,r,o="number"!=typeof t||isNaN(t)?Qr(t)?to(t):Mi.isHDate(t)?t.abs():function(e){throw new TypeError(e)}("non-date given to dafyomi: ".concat(t)):t;if(o<Gu)throw new RangeError("Date ".concat(t," too early; Daf Yomi cycle began on ").concat(Ku));o>=Zu?(n=8+(o-Zu)/2711,r=(o-Zu)%2711):(n=1+(o-Gu)/2702,r=(o-Gu)%2702);var i=0,u=0,s=-1;Wu[4].blatt=n<=7?13:22;for(var h=0;h<40;){if(s++,r<(i=i+Wu[h].blatt-1)){switch(u=Wu[h].blatt+1-(i-r),s){case 36:u+=21;break;case 37:u+=24;break;case 38:u+=32}h=41}h++}this.name=Wu[s].name,this.blatt=u}return r(e,[{key:"getBlatt",value:function(){return this.blatt}},{key:"getName",value:function(){return this.name}},{key:"render",value:function(e){return ei.gettext(this.name,e)+" "+this.blatt}}]),e}(),$u={Berachot:"Berakhot","Rosh Hashana":"Rosh Hashanah",Gitin:"Gittin","Baba Kamma":"Bava Kamma","Baba Metzia":"Bava Metzia","Baba Batra":"Bava Batra",Bechorot:"Bekhorot",Arachin:"Arakhin",Midot:"Middot",Shekalim:"Jerusalem_Talmud_Shekalim"},qu=function(e){i(n,e);var t=c(n);function n(e){a(this,n);var r=new Ju(e.greg());return t.call(this,e,r.render(),Di.DAF_YOMI,{daf:r})}return r(n,[{key:"render",value:function(e){return ei.gettext("Daf Yomi",e)+": "+this.daf.render(e)}},{key:"renderBrief",value:function(e){return this.daf.render(e)}},{key:"url",value:function(){var e=this.daf,t=e.getName(),a=e.getBlatt();if("Kinnim"==t||"Midot"==t)return"https://www.dafyomi.org/index.php?masechta=meilah&daf=".concat(a,"a");var n=($u[t]||t).replace(/ /g,"_");return"https://www.sefaria.org/".concat(n,".").concat(a,"a?lang=bi")}}]),n}(Ci),Xu=Te,Qu=b,es=P(P.bind),ts=p,as=Rt,ns=De,rs=Rt,os=function(e,t,a){var n,r;as(e);try{if(!(n=ns(e,"return"))){if("throw"===t)throw a;return a}n=ts(n,e)}catch(e){r=!0,n=e}if("throw"===t)throw a;if(r)throw n;return as(n),a},is={},us=is,ss=st("iterator"),hs=Array.prototype,cs=cr,ls=De,fs=is,vs=st("iterator"),ds=function(e){if(null!=e)return ls(e,vs)||ls(e,"@@iterator")||fs[cs(e)]},ms=p,ys=Te,gs=Rt,ks=pe,bs=ds,Ss=TypeError,ws=function(e,t){return Xu(e),void 0===t?e:Qu?es(e,t):function(){return e.apply(t,arguments)}},ps=p,As=xe,Ms=function(e,t,a,n){try{return n?t(rs(a)[0],a[1]):t(a)}catch(t){os(e,"throw",t)}},Is=function(e){return void 0!==e&&(us.Array===e||hs[ss]===e)},Ts=Mr,Es=dn,Ds=Dr,Cs=function(e,t){var a=arguments.length<2?bs(e):t;if(ys(a))return gs(ms(a,e));throw Ss(ks(e)+" is not iterable")},Hs=ds,Ns=Array,Os=st("iterator"),Ls=!1;try{var Bs=0,Ps={next:function(){return{done:!!Bs++}},return:function(){Ls=!0}};Ps[Os]=function(){return this},Array.from(Ps,(function(){throw 2}))}catch(e){}var Ys=function(e){var t=As(e),a=Ts(this),n=arguments.length,r=n>1?arguments[1]:void 0,o=void 0!==r;o&&(r=ws(r,n>2?arguments[2]:void 0));var i,u,s,h,c,l,f=Hs(t),v=0;if(!f||this===Ns&&Is(f))for(i=Es(t),u=a?new this(i):Ns(i);i>v;v++)l=o?r(t[v],v):t[v],Ds(u,v,l);else for(c=(h=Cs(t,f)).next,u=a?new this:[];!(s=ps(c,h)).done;v++)l=o?Ms(h,r,[s.value,v],!0):s.value,Ds(u,v,l);return u.length=v,u},_s=function(e,t){if(!t&&!Ls)return!1;var a=!1;try{var n={};n[Os]=function(){return{next:function(){return{done:a=!0}}}},e(n)}catch(e){}return a};er({target:"Array",stat:!0,forced:!_s((function(e){Array.from(e)}))},{from:Ys});for(var Rs=function(){function e(t,n){a(this,e),t=+t;var r=Mi.longCheshvan(t),o=Mi.shortKislev(t),i=this.type=r&&!o?2:!r&&o?0:1;this.year=t;var u=new Mi(1,ti.TISHREI,t),s=u.abs(),h=this.roshHashanaDay=u.getDay()+1;this.firstSaturday=Mi.dayOnOrBefore(6,s+6);var c=this.leap=+Mi.isLeapYear(t);this.il=Boolean(n);var l="".concat(c).concat(h).concat(i);if(nh[l])this.key=l,this.theSedraArray=nh[l];else{var f=this.key=l+ +this.il;this.theSedraArray=nh[f]}if(!this.theSedraArray)throw new Error("improper sedra year type ".concat(this.key," calculated for ").concat(t))}return r(e,[{key:"get",value:function(e){return this.lookup(e).parsha}},{key:"getString",value:function(e,t){var a=this.get(e),n=t||ei.getLocaleName(),r=ei.gettext(a[0],n);2==a.length&&(r+=("he"==n?"־":"-")+ei.gettext(a[1],n));return ei.gettext("Parashat",n)+" "+r}},{key:"isParsha",value:function(e){return!this.lookup(e).chag}},{key:"find",value:function(e){if("number"==typeof e){if(e>53||e<0&&!function(e){switch(e){case-21:case-26:case-28:case-31:case-38:case-41:case-50:return!0}return!1}(e))throw new RangeError("Invalid parsha number: ".concat(e));var t=this.theSedraArray.indexOf(e);return-1===t?null:new Mi(this.firstSaturday+7*t)}if("string"==typeof e){var a=zs[e];if("number"==typeof a)return this.find(a);if(-1!==e.indexOf("-"))return this.find(e.split("-"));var n=this.theSedraArray.indexOf(e);return-1===n?null:new Mi(this.firstSaturday+7*n)}if(Array.isArray(e)&&1===e.length&&"string"==typeof e[0])return this.find(e[0]);if(Array.isArray(e)&&2===e.length&&"string"==typeof e[0]&&"string"==typeof e[1]){var r=e[0],o=e[1],i=zs[r];if(zs[o]===i+1)return this.find(-i);throw new RangeError("Unrecognized parsha name: ".concat(r,"-").concat(o))}throw new TypeError("Invalid parsha argument: ".concat(e))}},{key:"getSedraArray",value:function(){return this.theSedraArray}},{key:"getFirstSaturday",value:function(){return this.firstSaturday}},{key:"getYear",value:function(){return this.year}},{key:"lookup",value:function(t){var a="number"==typeof t?t:Mi.isHDate(t)?t.abs():function(e){throw new TypeError(e)}("Bad date argument: ".concat(t)),n=Mi.dayOnOrBefore(6,a+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o)return new e(this.year+1,this.il).lookup(n);if("string"==typeof o)return{parsha:[o],chag:!0};if(o>=0)return{parsha:[js[o]],chag:!1};var i=xs(o);return{parsha:[js[i],js[i+1]],chag:!1}}}]),e}(),js=["Bereshit","Noach","Lech-Lecha","Vayera","Chayei Sara","Toldot","Vayetzei","Vayishlach","Vayeshev","Miketz","Vayigash","Vayechi","Shemot","Vaera","Bo","Beshalach","Yitro","Mishpatim","Terumah","Tetzaveh","Ki Tisa","Vayakhel","Pekudei","Vayikra","Tzav","Shmini","Tazria","Metzora","Achrei Mot","Kedoshim","Emor","Behar","Bechukotai","Bamidbar","Nasso","Beha'alotcha","Sh'lach","Korach","Chukat","Balak","Pinchas","Matot","Masei","Devarim","Vaetchanan","Eikev","Re'eh","Shoftim","Ki Teitzei","Ki Tavo","Nitzavim","Vayeilech","Ha'Azinu"],zs={},Vs=0;Vs<js.length;Vs++){var Fs=js[Vs];zs[Fs]=Vs}function xs(e){return-e}var Us="Rosh Hashana",Ks="Yom Kippur",Gs="Sukkot",Zs="Sukkot Shabbat Chol ha-Moed",Ws="Shmini Atzeret",Js=Zs,$s="Pesach",qs="Pesach I",Xs="Pesach Shabbat Chol ha-Moed",Qs="Pesach VII",eh="Pesach VIII",th="Shavuot";function ah(e,t){return Array.from({length:t-e+1},(function(t,a){return a+e}))}var nh={"020":[51,52].concat(Js,ah(0,20),xs(21),23,24,$s,25,xs(26),xs(28),30,xs(31),ah(33,40),xs(41),ah(43,49),xs(50)),"0220":[51,52].concat(Js,ah(0,20),xs(21),23,24,$s,25,xs(26),xs(28),30,xs(31),33,th,ah(34,37),xs(38),40,xs(41),ah(43,49),xs(50)),"0510":[52].concat(Ks,Js,ah(0,20),xs(21),23,24,qs,eh,25,xs(26),xs(28),30,xs(31),ah(33,40),xs(41),ah(43,50)),"0511":[52].concat(Ks,Js,ah(0,20),xs(21),23,24,$s,25,xs(26),xs(28),ah(30,40),xs(41),ah(43,50)),"052":[52].concat(Ks,Zs,ah(0,24),Qs,25,xs(26),xs(28),30,xs(31),ah(33,40),xs(41),ah(43,50)),"070":[].concat(Us,52,Gs,Ws,ah(0,20),xs(21),23,24,Qs,25,xs(26),xs(28),30,xs(31),ah(33,40),xs(41),ah(43,50)),"072":[].concat(Us,52,Gs,Ws,ah(0,20),xs(21),23,24,Xs,25,xs(26),xs(28),30,xs(31),ah(33,40),xs(41),ah(43,49),xs(50)),1200:[51,52].concat(Zs,ah(0,27),Xs,ah(28,33),th,ah(34,37),xs(38),40,xs(41),ah(43,49),xs(50)),1201:[51,52].concat(Zs,ah(0,27),Xs,ah(28,40),xs(41),ah(43,49),xs(50)),1220:[51,52].concat(Zs,ah(0,27),qs,eh,ah(28,40),xs(41),ah(43,50)),1221:[51,52].concat(Zs,ah(0,27),$s,ah(28,50)),150:[52].concat(Ks,Zs,ah(0,28),Qs,ah(29,50)),152:[52].concat(Ks,Zs,ah(0,28),Xs,ah(29,49),xs(50)),170:[].concat(Us,52,Gs,Ws,ah(0,27),Xs,ah(28,40),xs(41),ah(43,49),xs(50)),1720:[].concat(Us,52,Gs,Ws,ah(0,27),Xs,ah(28,33),th,ah(34,37),xs(38),40,xs(41),ah(43,49),xs(50))};nh["0221"]=nh["020"],nh["0310"]=nh["0220"],nh["0311"]=nh["020"],nh[1310]=nh[1220],nh[1311]=nh[1221],nh[1721]=nh[170];var rh=function(e){i(n,e);var t=c(n);function n(e,r,o){var i;if(a(this,n),!Array.isArray(r)||0===r.length||r.length>2)throw new TypeError("Bad parsha argument");var u="Parashat "+r.join("-");return(i=t.call(this,e,u,Di.PARSHA_HASHAVUA)).parsha=r,i.il=Boolean(o),i}return r(n,[{key:"render",value:function(e){var t=e||ei.getLocaleName(),a=this.parsha,n=ei.gettext(a[0],e);2==a.length&&(n+=("he"==t?"־":"-")+ei.gettext(a[1],e));return(ei.gettext("Parashat",e)+" "+n).normalize()}},{key:"basename",value:function(){return this.parsha.join("-")}},{key:"url",value:function(){if(!(this.getDate().greg().getFullYear()<100)){var e=this.urlDateSuffix(),t="https://www.hebcal.com/sedrot/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+e;return this.il?t+"?i=on":t}}},{key:"urlDateSuffix",value:function(){var e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}]),n}(Ci),oh=function(e){i(n,e);var t=c(n);function n(e,r,o,i){return a(this,n),t.call(this,e,r,o,i)}return r(n,[{key:"basename",value:function(){return this.getDesc().replace(/ \d{4}$/,"").replace(/ \(CH''M\)$/,"").replace(/ \(observed\)$/,"").replace(/ \(Hoshana Raba\)$/,"").replace(/ [IV]+$/,"").replace(/: \d Candles?$/,"").replace(/: 8th Day$/,"").replace(/^Erev /,"")}},{key:"url",value:function(){if(!(this.getDate().greg().getFullYear()<100)){var e="https://www.hebcal.com/holidays/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+this.urlDateSuffix();return this.getFlags()&Di.IL_ONLY?e+"?i=on":e}}},{key:"urlDateSuffix",value:function(){return this.getDate().greg().getFullYear()}},{key:"getEmoji",value:function(){return this.emoji?this.emoji:this.getFlags()&Di.SPECIAL_SHABBAT?"🕍":"✡️"}}]),n}(Ci),ih="Rosh Chodesh",uh=function(e){i(n,e);var t=c(n);function n(e,r){return a(this,n),t.call(this,e,"".concat(ih," ").concat(r),Di.ROSH_CHODESH)}return r(n,[{key:"render",value:function(e){var t=this.getDesc().substring(ih.length+1);return ei.gettext(ih,e)+" "+ei.gettext(t,e)}},{key:"basename",value:function(){return this.getDesc()}},{key:"getEmoji",value:function(){return this.emoji||"🌒"}}]),n}(oh),sh=function(e){i(n,e);var t=c(n);function n(e,r,o,i){return a(this,n),t.call(this,e,r,o,i)}return r(n,[{key:"urlDateSuffix",value:function(){var e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}]),n}(oh),hh="Shabbat Mevarchim Chodesh",ch=function(e){i(n,e);var t=c(n);function n(e,r){var o;a(this,n),(o=t.call(this,e,"".concat(hh," ").concat(r),Di.SHABBAT_MEVARCHIM)).monthName=r;var i=e.getFullYear(),u=e.getMonth(),s=u==Mi.monthsInYear(i)?ti.NISAN:u+1,h=new yu(e,i,s);return o.memo=h.render(),o}return r(n,[{key:"render",value:function(e){return ei.gettext(hh,e)+" "+ei.gettext(this.monthName,e)}}]),n}(Ci),lh=function(e){i(n,e);var t=c(n);function n(e,r,o){var i;return a(this,n),(i=t.call(this,e,"Rosh Hashana ".concat(r),o,{emoji:"🍏🍯"})).hyear=r,i}return r(n,[{key:"render",value:function(e){return ei.gettext("Rosh Hashana",e)+" "+this.hyear}}]),n}(oh),fh=ti.NISAN,vh=ti.IYYAR,dh=ti.SIVAN,mh=ti.TAMUZ,yh=ti.AV,gh=ti.ELUL,kh=ti.TISHREI,bh=ti.CHESHVAN,Sh=ti.KISLEV,wh=ti.TEVET,ph=ti.SHVAT,Ah=ti.ADAR_I,Mh=ti.ADAR_II,Ih=Di.CHAG,Th=Di.LIGHT_CANDLES,Eh=Di.YOM_TOV_ENDS,Dh=Di.CHUL_ONLY,Ch=Di.IL_ONLY,Hh=Di.LIGHT_CANDLES_TZEIS,Nh=Di.CHANUKAH_CANDLES,Oh=Di.MINOR_FAST,Lh=Di.SPECIAL_SHABBAT,Bh=Di.MODERN_HOLIDAY,Ph=Di.MAJOR_FAST,Yh=Di.MINOR_HOLIDAY,_h=Di.EREV,Rh=Di.CHOL_HAMOED,jh=function(){function e(){a(this,e)}return r(e,[{key:"has",value:function(e){return void 0!==this[e]}},{key:"get",value:function(e){return this[e]}},{key:"set",value:function(e,t){this[e]=t}},{key:"keys",value:function(){return Object.keys(this)}}]),e}(),zh=new jh;function Vh(e,t){var a="".concat(e,"-").concat(t?1:0),n=zh.get(a);return n||(n=new Rs(e,t),zh.set(a,n)),n}var Fh={emoji:"🇮🇱"},xh="🕎",Uh="🫓",Kh={emoji:"⛰️🌸"},Gh="🌿🍋",Zh=Object.create(null);function Wh(e){if("number"!=typeof e)throw new TypeError("bad Hebrew year: ".concat(e));if(e<1||e>32658)throw new RangeError("Hebrew year ".concat(e," out of range 1-32658"));var t=Zh[e];if(t)return t;var a=new Mi(1,kh,e),n=new Mi(15,fh,e),r=new jh;function o(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];t.forEach((function(e){var t=e.date.toString();r.has(t)?r.get(t).push(e):r.set(t,[e])}))}function i(e,t){t.forEach((function(t){o(new oh(new Mi(t[0],t[1],e),t[2],t[3],t[4]))}))}o(new lh(a,e,Ih|Hh)),i(e,[[2,kh,"Rosh Hashana II",Ih|Eh,{emoji:"🍏🍯"}],[3+(4==a.getDay()),kh,"Tzom Gedaliah",Oh],[9,kh,"Erev Yom Kippur",_h|Th]]),o(new oh(new Mi(Mi.dayOnOrBefore(6,7+a.abs())),"Shabbat Shuva",Lh)),i(e,[[10,kh,"Yom Kippur",Ih|Eh|Ph],[14,kh,"Erev Sukkot",_h|Th|Dh,{emoji:Gh}],[15,kh,"Sukkot I",Ih|Hh|Dh,{emoji:Gh}],[16,kh,"Sukkot II",Ih|Eh|Dh,{emoji:Gh}],[17,kh,"Sukkot III (CH''M)",Dh|Rh,{cholHaMoedDay:1,emoji:Gh}],[18,kh,"Sukkot IV (CH''M)",Dh|Rh,{cholHaMoedDay:2,emoji:Gh}],[19,kh,"Sukkot V (CH''M)",Dh|Rh,{cholHaMoedDay:3,emoji:Gh}],[20,kh,"Sukkot VI (CH''M)",Dh|Rh,{cholHaMoedDay:4,emoji:Gh}],[14,kh,"Erev Sukkot",_h|Th|Ch,{emoji:Gh}],[15,kh,"Sukkot I",Ih|Eh|Ch,{emoji:Gh}],[16,kh,"Sukkot II (CH''M)",Ch|Rh,{cholHaMoedDay:1,emoji:Gh}],[17,kh,"Sukkot III (CH''M)",Ch|Rh,{cholHaMoedDay:2,emoji:Gh}],[18,kh,"Sukkot IV (CH''M)",Ch|Rh,{cholHaMoedDay:3,emoji:Gh}],[19,kh,"Sukkot V (CH''M)",Ch|Rh,{cholHaMoedDay:4,emoji:Gh}],[20,kh,"Sukkot VI (CH''M)",Ch|Rh,{cholHaMoedDay:5,emoji:Gh}],[21,kh,"Sukkot VII (Hoshana Raba)",Th|Rh,{cholHaMoedDay:-1,emoji:Gh}],[22,kh,"Shmini Atzeret",Ih|Hh|Dh],[22,kh,"Shmini Atzeret",Ih|Eh|Ch],[23,kh,"Simchat Torah",Ih|Eh|Dh]]),o(new oh(new Mi(24,Sh,e),"Chanukah: 1 Candle",_h|Yh|Nh,{emoji:xh+Hi[1]}));for(var u=2;u<=8;u++){var s=new Mi(23+u,Sh,e);o(new oh(s,"Chanukah: ".concat(u," Candles"),Yh|Nh,{chanukahDay:u-1,emoji:xh+Hi[u]}))}o(new oh(new Mi(32,Sh,e),"Chanukah: 8th Day",Yh,{chanukahDay:8,emoji:xh})),o(new sh(new Mi(10,wh,e),"Asara B'Tevet",Oh),new oh(new Mi(15,ph,e),"Tu BiShvat",Yh,{emoji:"🌳"}));var h,c=n.abs();if(o(new oh(new Mi(Mi.dayOnOrBefore(6,c-43)),"Shabbat Shekalim",Lh),new oh(new Mi(Mi.dayOnOrBefore(6,c-30)),"Shabbat Zachor",Lh),new oh(new Mi(c-(2==n.getDay()?33:31)),"Ta'anit Esther",Oh)),i(e,[[13,Mh,"Erev Purim",_h|Yh,{emoji:"🎭️📜"}],[14,Mh,"Purim",Yh,{emoji:"🎭️📜"}]]),o(new oh(new Mi(c-(0==n.getDay()?28:29)),"Shushan Purim",Yh,{emoji:"🎭️📜"}),new oh(new Mi(Mi.dayOnOrBefore(6,c-14)-7),"Shabbat Parah",Lh),new oh(new Mi(Mi.dayOnOrBefore(6,c-14)),"Shabbat HaChodesh",Lh),new oh(new Mi(Mi.dayOnOrBefore(6,c-1)),"Shabbat HaGadol",Lh),new oh(6==n.prev().getDay()?n.onOrBefore(4):new Mi(14,fh,e),"Ta'anit Bechorot",Oh)),i(e,[[14,fh,"Erev Pesach",_h|Th|Ch,{emoji:"🫓🍷"}],[15,fh,"Pesach I",Ih|Eh|Ch,{emoji:Uh}],[16,fh,"Pesach II (CH''M)",Ch|Rh,{cholHaMoedDay:1,emoji:Uh}],[17,fh,"Pesach III (CH''M)",Ch|Rh,{cholHaMoedDay:2,emoji:Uh}],[18,fh,"Pesach IV (CH''M)",Ch|Rh,{cholHaMoedDay:3,emoji:Uh}],[19,fh,"Pesach V (CH''M)",Ch|Rh,{cholHaMoedDay:4,emoji:Uh}],[20,fh,"Pesach VI (CH''M)",Th|Ch|Rh,{cholHaMoedDay:5,emoji:Uh}],[21,fh,"Pesach VII",Ih|Eh|Ch,{emoji:Uh}],[14,fh,"Erev Pesach",_h|Th|Dh,{emoji:"🫓🍷"}],[15,fh,"Pesach I",Ih|Hh|Dh,{emoji:"🫓🍷"}],[16,fh,"Pesach II",Ih|Eh|Dh,{emoji:Uh}],[17,fh,"Pesach III (CH''M)",Dh|Rh,{cholHaMoedDay:1,emoji:Uh}],[18,fh,"Pesach IV (CH''M)",Dh|Rh,{cholHaMoedDay:2,emoji:Uh}],[19,fh,"Pesach V (CH''M)",Dh|Rh,{cholHaMoedDay:3,emoji:Uh}],[20,fh,"Pesach VI (CH''M)",Th|Dh|Rh,{cholHaMoedDay:4,emoji:Uh}],[21,fh,"Pesach VII",Ih|Hh|Dh,{emoji:Uh}],[22,fh,"Pesach VIII",Ih|Eh|Dh,{emoji:Uh}],[14,vh,"Pesach Sheni",Yh],[18,vh,"Lag BaOmer",Yh,{emoji:"🔥"}],[5,dh,"Erev Shavuot",_h|Th|Ch,Kh],[6,dh,"Shavuot",Ih|Eh|Ch,Kh],[5,dh,"Erev Shavuot",_h|Th|Dh,Kh],[6,dh,"Shavuot I",Ih|Hh|Dh,Kh],[7,dh,"Shavuot II",Ih|Eh|Dh,Kh],[15,yh,"Tu B'Av",Yh,{emoji:"❤️"}],[1,gh,"Rosh Hashana LaBehemot",Yh,{emoji:"🐑"}]]),o(new oh(new Mi(Mi.dayOnOrBefore(6,new Mi(1,kh,e+1).abs()-4)),"Leil Selichot",Yh,{emoji:"🕍"})),o(new oh(new Mi(29,gh,e),"Erev Rosh Hashana",_h|Th,{emoji:"🍏🍯"})),Mi.isLeapYear(e)&&o(new oh(new Mi(14,Ah,e),"Purim Katan",Yh,{emoji:"🎭️"})),e>=5711){var l=new Mi(27,fh,e);5==l.getDay()?l=new Mi(26,fh,e):0==l.getDay()&&(l=new Mi(28,fh,e)),o(new oh(l,"Yom HaShoah",Bh))}e>=5708&&(h=0==n.getDay()?2:6==n.getDay()?3:e<5764?4:2==n.getDay()?5:4,o(new oh(new Mi(h,vh,e),"Yom HaZikaron",Bh,Fh),new oh(new Mi(h+1,vh,e),"Yom HaAtzma'ut",Bh,Fh)));e>=5727&&o(new oh(new Mi(28,vh,e),"Yom Yerushalayim",Bh,Fh)),e>=5769&&o(new oh(new Mi(29,bh,e),"Sigd",Bh)),e>=5777&&o(new oh(new Mi(7,bh,e),"Yom HaAliyah School Observance",Bh,Fh),new oh(new Mi(10,fh,e),"Yom HaAliyah",Bh,Fh));var f,v=new Mi(17,mh,e);6==v.getDay()&&(v=new Mi(18,mh,e),f={observed:!0}),o(new oh(v,"Tzom Tammuz",Oh,f));var d,m=new Mi(9,yh,e),y="Tish'a B'Av";6==m.getDay()&&(m=m.next(),d={observed:!0},y+=" (observed)");var g=m.abs();o(new oh(new Mi(Mi.dayOnOrBefore(6,g)),"Shabbat Chazon",Lh),new oh(m.prev(),"Erev Tish'a B'Av",_h|Ph,d),new oh(m,y,Ph,d),new oh(new Mi(Mi.dayOnOrBefore(6,g+7)),"Shabbat Nachamu",Lh));for(var k=Mi.monthsInYear(e),b=1;b<=k;b++){var S=Mi.getMonthName(b,e);if(30==(b==fh?Mi.daysInMonth(Mi.monthsInYear(e-1),e-1):Mi.daysInMonth(b-1,e))?(o(new uh(new Mi(1,b,e),S)),o(new uh(new Mi(30,b-1,e),S))):b!==kh&&o(new uh(new Mi(1,b,e),S)),b!=gh){var w=Mi.getMonthName(b+1,e);o(new ch(new Mi(29,b,e).onOrBefore(6),w))}}var p=Vh(e,!1).find(15);return o(new oh(p,"Shabbat Shirah",Lh)),Zh[e]=r,r}var Jh=[{k:"Berakhot",v:[5,8,6,7,5,8,5,8,5]},{k:"Peah",v:[6,8,8,11,8,11,8,9]},{k:"Demai",v:[4,5,6,7,11,12,8]},{k:"Kilayim",v:[9,11,7,9,8,9,8,6,10]},{k:"Sheviit",v:[8,10,10,10,9,6,7,11,9,9]},{k:"Terumot",v:[10,6,9,13,9,6,7,12,7,12,10]},{k:"Maasrot",v:[8,8,10,6,8]},{k:"Maaser Sheni",v:[7,10,13,12,15]},{k:"Challah",v:[9,8,10,11]},{k:"Orlah",v:[9,17,9]},{k:"Bikkurim",v:[11,11,12,5]},{k:"Shabbat",v:[11,7,6,2,4,10,4,7,7,6,6,6,7,4,3,8,8,3,6,5,3,6,5,5]},{k:"Eruvin",v:[10,6,9,11,9,10,11,11,4,15]},{k:"Pesachim",v:[7,8,8,9,10,6,13,8,11,9]},{k:"Shekalim",v:[7,5,4,9,6,6,7,8]},{k:"Yoma",v:[8,7,11,6,7,8,5,9]},{k:"Sukkah",v:[11,9,15,10,8]},{k:"Beitzah",v:[10,10,8,7,7]},{k:"Rosh Hashanah",v:[9,9,8,9]},{k:"Taanit",v:[7,10,9,8]},{k:"Megillah",v:[11,6,6,10]},{k:"Moed Katan",v:[10,5,9]},{k:"Chagigah",v:[8,7,8]},{k:"Yevamot",v:[4,10,10,13,6,6,6,6,6,9,7,6,13,9,10,7]},{k:"Ketubot",v:[10,10,9,12,9,7,10,8,9,6,6,4,11]},{k:"Nedarim",v:[4,5,11,8,6,10,9,7,10,8,12]},{k:"Nazir",v:[7,10,7,7,7,11,4,2,5]},{k:"Sotah",v:[9,6,8,5,5,4,8,7,15]},{k:"Gittin",v:[6,7,8,9,9,7,9,10,10]},{k:"Kiddushin",v:[10,10,13,14]},{k:"Bava Kamma",v:[4,6,11,9,7,6,7,7,12,10]},{k:"Bava Metzia",v:[8,11,12,12,11,8,11,9,13,6]},{k:"Bava Batra",v:[6,14,8,9,11,8,4,8,10,8]},{k:"Sanhedrin",v:[6,5,8,5,5,6,11,7,6,6,6]},{k:"Makkot",v:[10,8,16]},{k:"Shevuot",v:[7,5,11,13,5,7,8,6]},{k:"Eduyot",v:[14,10,12,12,7,3,9,7]},{k:"Avodah Zarah",v:[9,7,10,12,12]},{k:"Avot",v:[18,16,18,22,23,11]},{k:"Horayot",v:[5,7,8]},{k:"Zevachim",v:[4,5,6,6,8,7,6,12,7,8,8,6,8,10]},{k:"Menachot",v:[4,5,7,5,9,7,6,7,9,9,9,5,11]},{k:"Chullin",v:[7,10,7,7,5,7,6,6,8,4,2,5]},{k:"Bekhorot",v:[7,9,4,10,6,12,7,10,8]},{k:"Arakhin",v:[4,6,5,4,6,5,5,7,8]},{k:"Temurah",v:[6,3,5,4,6,5,6]},{k:"Keritot",v:[7,6,10,3,8,9]},{k:"Meilah",v:[4,9,8,6,5,6]},{k:"Tamid",v:[4,5,9,3,6,3,4]},{k:"Middot",v:[9,6,8,7,4]},{k:"Kinnim",v:[4,5,6]},{k:"Kelim",v:[9,8,8,4,11,4,6,11,8,8,9,8,8,8,6,8,17,9,10,7,3,10,5,17,9,9,12,10,8,4]},{k:"Oholot",v:[8,7,7,3,7,7,6,6,16,7,9,8,6,7,10,5,5,10]},{k:"Negaim",v:[6,5,8,11,5,8,5,10,3,10,12,7,12,13]},{k:"Parah",v:[4,5,11,4,9,5,12,11,9,6,9,11]},{k:"Tahorot",v:[9,8,8,13,9,10,9,9,9,8]},{k:"Mikvaot",v:[8,10,4,5,6,11,7,5,7,8]},{k:"Niddah",v:[7,7,7,7,9,14,5,4,11,8]},{k:"Makhshirin",v:[6,11,8,10,11,8]},{k:"Zavim",v:[6,4,3,7,12]},{k:"Tevul Yom",v:[5,8,6,7]},{k:"Yadayim",v:[5,4,5,8]},{k:"Oktzin",v:[6,10,12]}],$h=to(new Date(1947,4,20)),qh=2096;var Xh=function(){function e(){a(this,e);var t,n=Array(4192),r=0,o=f(Jh);try{for(o.s();!(t=o.n()).done;)for(var i=t.value,u=i.v,s=1;s<=u.length;s++)for(var h=u[s-1],c=1;c<=h;c++)n[r++]={k:i.k,v:"".concat(s,":").concat(c)}}catch(e){o.e(e)}finally{o.f()}for(var l=Array(qh),v=0;v<qh;v++){var d=2*v;l[v]=[n[d],n[d+1]]}this.days=l}return r(e,[{key:"lookup",value:function(e){var t="number"!=typeof e||isNaN(e)?Qr(e)?to(e):Mi.isHDate(e)?e.abs():function(e){throw new TypeError(e)}("Invalid date: ".concat(e)):e;if(t<$h){var a=e.toISOString().substring(0,10);throw new RangeError("Date ".concat(a," too early; Mishna Yomi cycle began on 1947-05-20"))}var n=(t-$h)%qh;return this.days[n]}}]),e}();function Qh(e,t){var a=e[0].k,n=e[0].v,r=ei.gettext(a,t)+" "+n,o=e[1].k,i=e[1].v;if(a!==o)return r+"-"+ei.gettext(o,t)+" "+i;var u=n.split(":"),s=i.split(":");return u[0]===s[0]?r+"-"+s[1]:r+"-"+i}var ec=function(e){i(n,e);var t=c(n);function n(e,r){return a(this,n),t.call(this,e,Qh(r,null),Di.MISHNA_YOMI,{mishnaYomi:r})}return r(n,[{key:"render",value:function(e){return Qh(this.mishnaYomi,e)}},{key:"url",value:function(){var e=this.mishnaYomi,t=e[0].k,a="Avot"===t?"Pirkei":"Mishnah",n=t.replace(/ /g,"_"),r="https://www.sefaria.org/".concat(a,"_").concat(n),o=e[0].v;if(t!==e[1].k){var i=o.replace(":",".");return"".concat(r,".").concat(i,"?lang=bi")}var u=e[1].v,s=o.split(":"),h=u.split(":"),c=s.join("."),l=s[0]===h[0]?h[1]:h.join(".");return"".concat(r,".").concat(c,"-").concat(l,"?lang=bi")}}]),n}(Ci),tc=ti.NISAN,ac=ti.CHESHVAN,nc=ti.KISLEV,rc=ti.TEVET,oc=ti.SHVAT,ic=ti.ADAR_I,uc=ti.ADAR_II;var sc="3.39.1",hc={headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"en_CA@ashkenazi"},contexts:{"":{Berachot:["Berachos"],Shabbat:["Shabbos"],Taanit:["Taanis"],Yevamot:["Yevamos"],Ketubot:["Kesubos"],"Baba Batra":["Baba Basra"],Makkot:["Makkos"],Shevuot:["Shevuos"],Horayot:["Horayos"],Menachot:["Menachos"],Bechorot:["Bechoros"],Keritot:["Kerisos"],Midot:["Midos"],"Achrei Mot":["Achrei Mos"],Bechukotai:["Bechukosai"],"Beha'alotcha":["Beha'aloscha"],Bereshit:["Bereshis"],Chukat:["Chukas"],"Erev Shavuot":["Erev Shavuos"],"Erev Sukkot":["Erev Sukkos"],"Ki Tavo":["Ki Savo"],"Ki Teitzei":["Ki Seitzei"],"Ki Tisa":["Ki Sisa"],Matot:["Matos"],"Purim Katan":["Purim Koton"],Tazria:["Sazria"],"Shabbat Chazon":["Shabbos Chazon"],"Shabbat HaChodesh":["Shabbos HaChodesh"],"Shabbat HaGadol":["Shabbos HaGadol"],"Shabbat Nachamu":["Shabbos Nachamu"],"Shabbat Parah":["Shabbos Parah"],"Shabbat Shekalim":["Shabbos Shekalim"],"Shabbat Shuva":["Shabbos Shuvah"],"Shabbat Zachor":["Shabbos Zachor"],Shavuot:["Shavuos"],"Shavuot I":["Shavuos I"],"Shavuot II":["Shavuos II"],Shemot:["Shemos"],"Shmini Atzeret":["Shmini Atzeres"],"Simchat Torah":["Simchas Torah"],Sukkot:["Sukkos"],"Sukkot I":["Sukkos I"],"Sukkot II":["Sukkos II"],"Sukkot II (CH''M)":["Sukkos II (CH''M)"],"Sukkot III (CH''M)":["Sukkos III (CH''M)"],"Sukkot IV (CH''M)":["Sukkos IV (CH''M)"],"Sukkot V (CH''M)":["Sukkos V (CH''M)"],"Sukkot VI (CH''M)":["Sukkos VI (CH''M)"],"Sukkot VII (Hoshana Raba)":["Sukkos VII (Hoshana Raba)"],"Ta'anit Bechorot":["Ta'anis Bechoros"],"Ta'anit Esther":["Ta'anis Esther"],Toldot:["Toldos"],Vaetchanan:["Vaeschanan"],Yitro:["Yisro"],"Vezot Haberakhah":["Vezos Haberakhah"],Parashat:["Parshas"],"Leil Selichot":["Leil Selichos"],"Shabbat Mevarchim Chodesh":["Shabbos Mevorchim Chodesh"],"Shabbat Shirah":["Shabbos Shirah"],Tevet:["Teves"],"Asara B'Tevet":["Asara B'Teves"],Berakhot:["Berakhos"],Sheviit:["Sheviis"],Terumot:["Terumos"],Maasrot:["Maasros"],Eduyot:["Eduyos"],Avot:["Avos"],Bekhorot:["Bekhoros"],Middot:["Middos"],Oholot:["Oholos"],Tahorot:["Tahoros"],Mikvaot:["Mikvaos"]}}};ei.addLocale("ashkenazi",hc),ei.addLocale("a",hc);var cc={headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"he_IL"},contexts:{"":{Berachot:["ברכות"],Shabbat:["שַׁבָּת"],Eruvin:["עירובין"],Pesachim:["פסחים"],Shekalim:["שקלים"],Yoma:["יומא"],Sukkah:["סוכה"],Beitzah:["ביצה"],Taanit:["תענית"],Megillah:["מגילה"],"Moed Katan":["מועד קטן"],Chagigah:["חגיגה"],Yevamot:["יבמות"],Ketubot:["כתובות"],Nedarim:["נדרים"],Nazir:["נזיר"],Sotah:["סוטה"],Gitin:["גיטין"],Kiddushin:["קידושין"],"Baba Kamma":["בבא קמא"],"Baba Metzia":["בבא מציעא"],"Baba Batra":["בבא בתרא"],Sanhedrin:["סנהדרין"],Makkot:["מכות"],Shevuot:["שבועות"],"Avodah Zarah":["עבודה זרה"],Horayot:["הוריות"],Zevachim:["זבחים"],Menachot:["מנחות"],Chullin:["חולין"],Bechorot:["בכורות"],Arachin:["ערכין"],Temurah:["תמורה"],Keritot:["כריתות"],Meilah:["מעילה"],Kinnim:["קינים"],Tamid:["תמיד"],Midot:["מדות"],Niddah:["נדה"],"Daf Yomi: %s %d":["דף יומי: %s %d"],"Daf Yomi":["דף יומי"],Parashat:["פָּרָשַׁת"],"Achrei Mot":["אַחֲרֵי מוֹת"],Balak:["בָּלָק"],Bamidbar:["בְּמִדְבַּר"],Bechukotai:["בְּחֻקֹּתַי"],"Beha'alotcha":["בְּהַעֲלֹתְךָ"],Behar:["בְּהַר"],Bereshit:["בְּרֵאשִׁית"],Beshalach:["בְּשַׁלַּח"],Bo:["בֹּא"],"Chayei Sara":["חַיֵּי שָֹרָה"],Chukat:["חֻקַּת"],Devarim:["דְּבָרִים"],Eikev:["עֵקֶב"],Emor:["אֱמוֹר"],"Ha'Azinu":["הַאֲזִינוּ"],Kedoshim:["קְדשִׁים"],"Ki Tavo":["כִּי־תָבוֹא"],"Ki Teitzei":["כִּי־תֵצֵא"],"Ki Tisa":["כִּי תִשָּׂא"],Korach:["קוֹרַח"],"Lech-Lecha":["לֶךְ־לְךָ"],Masei:["מַסְעֵי"],Matot:["מַּטּוֹת"],Metzora:["מְּצֹרָע"],Miketz:["מִקֵּץ"],Mishpatim:["מִּשְׁפָּטִים"],Nasso:["נָשׂא"],Nitzavim:["נִצָּבִים"],Noach:["נֹחַ"],Pekudei:["פְקוּדֵי"],Pinchas:["פִּינְחָס"],"Re'eh":["רְאֵה"],"Sh'lach":["שְׁלַח־לְךָ"],Shemot:["שְׁמוֹת"],Shmini:["שְּׁמִינִי"],Shoftim:["שׁוֹפְטִים"],Tazria:["תַזְרִיעַ"],Terumah:["תְּרוּמָה"],Tetzaveh:["תְּצַוֶּה"],Toldot:["תּוֹלְדוֹת"],Tzav:["צַו"],Vaera:["וָאֵרָא"],Vaetchanan:["וָאֶתְחַנַּן"],Vayakhel:["וַיַּקְהֵל"],Vayechi:["וַיְחִי"],Vayeilech:["וַיֵּלֶךְ"],Vayera:["וַיֵּרָא"],Vayeshev:["וַיֵּשֶׁב"],Vayetzei:["וַיֵּצֵא"],Vayigash:["וַיִּגַּשׁ"],Vayikra:["וַיִּקְרָא"],Vayishlach:["וַיִּשְׁלַח"],"Vezot Haberakhah":["וְזֹאת הַבְּרָכָה"],Yitro:["יִתְרוֹ"],"Asara B'Tevet":["עֲשָׂרָה בְּטֵבֵת"],"Candle lighting":["הַדלָקָת נֵרוֹת"],Chanukah:["חֲנוּכָּה"],"Chanukah: 1 Candle":["חֲנוּכָּה: א׳ נֵר"],"Chanukah: 2 Candles":["חֲנוּכָּה: ב׳ נֵרוֹת"],"Chanukah: 3 Candles":["חֲנוּכָּה: ג׳ נֵרוֹת"],"Chanukah: 4 Candles":["חֲנוּכָּה: ד׳ נֵרוֹת"],"Chanukah: 5 Candles":["חֲנוּכָּה: ה׳ נֵרוֹת"],"Chanukah: 6 Candles":["חֲנוּכָּה: ו׳ נֵרוֹת"],"Chanukah: 7 Candles":["חֲנוּכָּה: ז׳ נֵרוֹת"],"Chanukah: 8 Candles":["חֲנוּכָּה: ח׳ נֵרוֹת"],"Chanukah: 8th Day":["חֲנוּכָּה: יוֹם ח׳"],"Days of the Omer":["סְפִירַת הָעוֹמֶר"],Omer:["עוֹמֶר"],"day of the Omer":["בָּעוֹמֶר"],"Erev Pesach":["עֶרֶב פֶּסַח"],"Erev Purim":["עֶרֶב פּוּרִים"],"Erev Rosh Hashana":["עֶרֶב רֹאשׁ הַשָּׁנָה"],"Erev Shavuot":["עֶרֶב שָׁבוּעוֹת"],"Erev Simchat Torah":["עֶרֶב שִׂמְחַת תּוֹרָה"],"Erev Sukkot":["עֶרֶב סוּכּוֹת"],"Erev Tish'a B'Av":["עֶרֶב תִּשְׁעָה בְּאָב"],"Erev Yom Kippur":["עֶרֶב יוֹם כִּפּוּר"],Havdalah:["הַבדָלָה"],"Lag BaOmer":["ל״ג בָּעוֹמֶר"],"Leil Selichot":["סליחות"],Pesach:["פֶּסַח"],"Pesach I":["פֶּסַח א׳"],"Pesach II":["פֶּסַח ב׳"],"Pesach II (CH''M)":["פֶּסַח ב׳ (חוה״מ)"],"Pesach III (CH''M)":["פֶּסַח ג׳ (חוה״מ)"],"Pesach IV (CH''M)":["פֶּסַח ד׳ (חוה״מ)"],"Pesach Sheni":["פֶּסַח שני"],"Pesach V (CH''M)":["פֶּסַח ה׳ (חוה״מ)"],"Pesach VI (CH''M)":["פֶּסַח ו׳ (חוה״מ)"],"Pesach VII":["פֶּסַח ז׳"],"Pesach VIII":["פֶּסַח ח׳"],Purim:["פּוּרִים"],"Purim Katan":["פּוּרִים קָטָן"],"Rosh Chodesh %s":["רֹאשׁ חוֹדֶשׁ %s"],"Rosh Chodesh":["רֹאשׁ חוֹדֶשׁ"],Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִשְׁרֵי"],"Rosh Hashana":["רֹאשׁ הַשָּׁנָה"],"Rosh Hashana I":["רֹאשׁ הַשָּׁנָה א׳"],"Rosh Hashana II":["רֹאשׁ הַשָּׁנָה ב׳"],"Shabbat Chazon":["שַׁבָּת חֲזוֹן"],"Shabbat HaChodesh":["שַׁבָּת הַחֹדֶשׁ"],"Shabbat HaGadol":["שַׁבָּת הַגָּדוֹל"],"Shabbat Machar Chodesh":["שַׁבָּת מָחָר חוֹדֶשׁ"],"Shabbat Nachamu":["שַׁבָּת נַחֲמוּ"],"Shabbat Parah":["שַׁבָּת פּרה"],"Shabbat Rosh Chodesh":["שַׁבָּת רֹאשׁ חוֹדֶשׁ"],"Shabbat Shekalim":["שַׁבָּת שְׁקָלִים"],"Shabbat Shuva":["שַׁבָּת שׁוּבָה"],"Shabbat Zachor":["שַׁבָּת זָכוֹר"],Shavuot:["שָׁבוּעוֹת"],"Shavuot I":["שָׁבוּעוֹת א׳"],"Shavuot II":["שָׁבוּעוֹת ב׳"],"Shmini Atzeret":["שְׁמִינִי עֲצֶרֶת"],"Shushan Purim":["שׁוּשָׁן פּוּרִים"],Sigd:["סיגד"],"Simchat Torah":["שִׂמְחַת תּוֹרָה"],Sukkot:["סוּכּוֹת"],"Sukkot I":["סוּכּוֹת א׳"],"Sukkot II":["סוּכּוֹת ב׳"],"Sukkot II (CH''M)":["סוּכּוֹת ב׳ (חוה״מ)"],"Sukkot III (CH''M)":["סוּכּוֹת ג׳ (חוה״מ)"],"Sukkot IV (CH''M)":["סוּכּוֹת ד׳ (חוה״מ)"],"Sukkot V (CH''M)":["סוּכּוֹת ה׳ (חוה״מ)"],"Sukkot VI (CH''M)":["סוּכּוֹת ו׳ (חוה״מ)"],"Sukkot VII (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Ta'anit Bechorot":["תַּעֲנִית בְּכוֹרוֹת"],"Ta'anit Esther":["תַּעֲנִית אֶסְתֵּר"],"Tish'a B'Av":["תִּשְׁעָה בְּאָב"],"Tu B'Av":["טוּ בְּאָב"],"Tu BiShvat":["טוּ בִּשְׁבָט"],"Tu B'Shvat":["טוּ בִּשְׁבָט"],"Tzom Gedaliah":["צוֹם גְּדַלְיָה"],"Tzom Tammuz":["צוֹם תָּמוּז"],"Yom HaAtzma'ut":["יוֹם הָעַצְמָאוּת"],"Yom HaShoah":["יוֹם הַשּׁוֹאָה"],"Yom HaZikaron":["יוֹם הַזִּכָּרוֹן"],"Yom Kippur":["יוֹם כִּפּוּר"],"Yom Yerushalayim":["יוֹם יְרוּשָׁלַיִם"],"Yom HaAliyah":["יוֹם הַעֲלִיָּה"],"Yom HaAliyah School Observance":["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"],"Pesach I (on Shabbat)":["פֶּסַח יוֹם א׳ (בְּשַׁבָּת)"],"Pesach Chol ha-Moed Day 1":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם א׳"],"Pesach Chol ha-Moed Day 2":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ב׳"],"Pesach Chol ha-Moed Day 3":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ג׳"],"Pesach Chol ha-Moed Day 4":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ד׳"],"Pesach Chol ha-Moed Day 5":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ה׳"],"Pesach Shabbat Chol ha-Moed":["פֶּסַח שַׁבָּת חוֹל הַמּוֹעֵד"],"Shavuot II (on Shabbat)":["שָׁבוּעוֹת יוֹם ב׳ (בְּשַׁבָּת)"],"Rosh Hashana I (on Shabbat)":["רֹאשׁ הַשָּׁנָה יוֹם א׳ (בְּשַׁבָּת)"],"Yom Kippur (on Shabbat)":["יוֹם כִּפּוּר (בְּשַׁבָּת)"],"Yom Kippur (Mincha, Traditional)":["יוֹם כִּפּוּר מנחה"],"Yom Kippur (Mincha, Alternate)":["יוֹם כִּפּוּר מנחה"],"Sukkot I (on Shabbat)":["סוּכּוֹת יוֹם א׳ (בְּשַׁבָּת)"],"Sukkot Chol ha-Moed Day 1":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם א׳"],"Sukkot Chol ha-Moed Day 2":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ב׳"],"Sukkot Chol ha-Moed Day 3":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ג׳"],"Sukkot Chol ha-Moed Day 4":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ד׳"],"Sukkot Shabbat Chol ha-Moed":["סוּכּוֹת שַׁבָּת חוֹל הַמּוֹעֵד"],"Sukkot Final Day (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Rosh Chodesh Adar":["רֹאשׁ חוֹדֶשׁ אַדָר"],"Rosh Chodesh Adar I":["רֹאשׁ חוֹדֶשׁ אַדָר א׳"],"Rosh Chodesh Adar II":["רֹאשׁ חוֹדֶשׁ אַדָר ב׳"],"Rosh Chodesh Av":["רֹאשׁ חוֹדֶשׁ אָב"],"Rosh Chodesh Cheshvan":["רֹאשׁ חוֹדֶשׁ חֶשְׁוָן"],"Rosh Chodesh Elul":["רֹאשׁ חוֹדֶשׁ אֱלוּל"],"Rosh Chodesh Iyyar":["רֹאשׁ חוֹדֶשׁ אִיָיר"],"Rosh Chodesh Kislev":["רֹאשׁ חוֹדֶשׁ כִּסְלֵו"],"Rosh Chodesh Nisan":["רֹאשׁ חוֹדֶשׁ נִיסָן"],"Rosh Chodesh Sh'vat":["רֹאשׁ חוֹדֶשׁ שְׁבָט"],"Rosh Chodesh Sivan":["רֹאשׁ חוֹדֶשׁ סִיוָן"],"Rosh Chodesh Tamuz":["רֹאשׁ חוֹדֶשׁ תָּמוּז"],"Rosh Chodesh Tevet":["רֹאשׁ חוֹדֶשׁ טֵבֵת"],min:["דקות"],"Fast begins":["תחילת הַצוֹם"],"Fast ends":["סִיּוּם הַצוֹם"],"Rosh Hashana LaBehemot":["רֹאשׁ הַשָּׁנָה לְמַעְשַׂר בְּהֵמָה"],"Tish'a B'Av (observed)":["תִּשְׁעָה בְּאָב נִדחֶה"],"Shabbat Mevarchim Chodesh":["שַׁבָּת מברכים חוֹדֶשׁ"],"Shabbat Shirah":["שַׁבָּת שִׁירָה"],chatzotNight:["חֲצוֹת הַלַיְלָה"],alotHaShachar:["עֲלוֹת הַשַּׁחַר"],misheyakir:["משיכיר - זמן ציצית ותפילין"],misheyakirMachmir:["משיכיר - זמן ציצית ותפילין"],neitzHaChama:["הַנֵץ הַחַמָּה"],sofZmanShma:["סוֹף זְמַן קְרִיאַת שְׁמַע גר״א"],sofZmanTfilla:["סוֹף זְמַן תְּפִלָּה גר״א"],chatzot:["חֲצוֹת הַיּוֹם"],minchaGedola:["מִנְחָה גְּדוֹלָה"],minchaKetana:["מִנְחָה קְטַנָּה"],plagHaMincha:["פְּלַג הַמִּנְחָה"],shkiah:["שְׁקִיעָה"],"Nightfall - End of ordained fasts":["לַיְלָה - גמר תעניות דרבנן"],tzeit:["צֵאת כוכבים"],Lovingkindness:["חֶֽסֶד"],Might:["גְבוּרָה"],Beauty:["תִּפאֶרֶת"],Eternity:["נֶּֽצַח"],Splendor:["הוֹד"],Foundation:["יְּסוֹד"],Majesty:["מַּלְכוּת"],day:["יוֹם"],"Chanukah Day 1":["חֲנוּכָּה יוֹם א׳"],"Chanukah Day 2":["חֲנוּכָּה יוֹם ב׳"],"Chanukah Day 3":["חֲנוּכָּה יוֹם ג׳"],"Chanukah Day 4":["חֲנוּכָּה יוֹם ד׳"],"Chanukah Day 5":["חֲנוּכָּה יוֹם ה׳"],"Chanukah Day 6":["חֲנוּכָּה יוֹם ו׳"],"Chanukah Day 7":["חֲנוּכָּה יוֹם ז׳"],"Chanukah Day 7 (on Rosh Chodesh)":["חֲנוּכָּה יוֹם ז׳ (רֹאשׁ חוֹדֶשׁ)"],"Chanukah Day 8":["חֲנוּכָּה יוֹם ח׳"],Berakhot:["ברכות"],Peah:["פאה"],Demai:["דמאי"],Kilayim:["כלאים"],Sheviit:["שביעית"],Terumot:["תרומות"],Maasrot:["מעשרות"],"Maaser Sheni":["מעשר שני"],Challah:["חלה"],Orlah:["ערלה"],Bikkurim:["ביכורים"],"Rosh Hashanah":["ראש השנה"],Gittin:["גיטין"],"Bava Kamma":["בבא קמא"],"Bava Metzia":["בבא מציעא"],"Bava Batra":["בבא בתרא"],Eduyot:["עדיות"],Avot:["אבות"],Bekhorot:["בכורות"],Arakhin:["ערכין"],Middot:["מדות"],Kelim:["כלים"],Oholot:["אהלות"],Negaim:["נגעים"],Parah:["פרה"],Tahorot:["טהרות"],Mikvaot:["מקואות"],Makhshirin:["מכשירין"],Zavim:["זבים"],"Tevul Yom":["טבול יום"],Yadayim:["ידים"],Oktzin:["עוקצים"]}}};ei.addLocale("he",cc),ei.addLocale("h",cc);var lc=cc.contexts[""],fc={};Object.keys(lc).forEach((function(e){fc[e]=[ei.hebrewStripNikkud(lc[e][0])]}));var vc="he-x-NoNikud",dc={headers:{"plural-forms":"nplurals=2; plural=(n!=1);",language:vc},contexts:{"":fc}};ei.addLocale(vc,dc);var mc=ti.NISAN,yc=ti.SIVAN,gc=ti.ELUL,kc=ti.TISHREI,bc=Di.LIGHT_CANDLES,Sc=Di.YOM_TOV_ENDS,wc=Di.CHUL_ONLY,pc=Di.IL_ONLY,Ac=Di.LIGHT_CANDLES_TZEIS,Mc=Di.CHANUKAH_CANDLES,Ic=Di.MINOR_FAST,Tc=Di.SPECIAL_SHABBAT,Ec=Di.MODERN_HOLIDAY,Dc=Di.MAJOR_FAST,Cc=Di.ROSH_CHODESH,Hc=Di.PARSHA_HASHAVUA,Nc=Di.DAF_YOMI,Oc=Di.OMER_COUNT,Lc=Di.SHABBAT_MEVARCHIM,Bc=Di.MINOR_HOLIDAY,Pc=Di.EREV,Yc=Di.CHOL_HAMOED,_c=Object.create(null),Rc={location:1,year:1,isHebrewYear:1,month:1,numYears:1,start:1,end:1,candlelighting:1,candleLightingMins:1,havdalahMins:1,havdalahDeg:1,sedrot:1,il:1,noMinorFast:1,noModern:1,shabbatMevarchim:1,noRoshChodesh:1,noSpecialShabbat:1,noHolidays:1,dafyomi:1,mishnaYomi:1,omer:1,molad:1,ashkenazi:1,locale:1,addHebrewDates:1,addHebrewDatesForEvents:1,appendHebrewToSubject:1,mask:1,userMask:1};function jc(e){Object.keys(e).forEach((function(e){void 0!==Rc[e]||_c[e]||(console.warn("Ignoring unrecognized HebrewCalendar option: ".concat(e)),_c[e]=!0)}))}function zc(e,t){return Object.keys(t).forEach((function(a){return e[a]=t[a]})),e}function Vc(e){if(e.candlelighting){if(void 0===e.location||!e.location instanceof iu)throw new TypeError("options.candlelighting requires valid options.location");if("number"==typeof e.havdalahMins&&"number"==typeof e.havdalahDeg)throw new TypeError("options.havdalahMins and options.havdalahDeg are mutually exclusive");var t=parseInt(e.candleLightingMins,10)||18;e.location&&e.location.getIsrael()&&"Jerusalem"===e.location.getShortName()&&18===Math.abs(t)&&(t=40),e.candleLightingMins=-1*Math.abs(t),"number"==typeof e.havdalahMins?e.havdalahMins=Math.abs(e.havdalahMins):"number"==typeof e.havdalahDeg?e.havdalahDeg=Math.abs(e.havdalahDeg):e.havdalahDeg=8.5}}function Fc(e){if("number"==typeof e)return e;if(Qr(e))return to(e);if(Mi.isHDate(e))return e.abs();throw new TypeError("Invalid date type: ".concat(e))}function xc(e){if(e.start&&!e.end||e.end&&!e.start)throw new TypeError("Both options.start and options.end are required");if(e.start&&e.end)return[Fc(e.start),Fc(e.end)];var t=Boolean(e.isHebrewYear),a=void 0!==e.year?parseInt(e.year,10):t?(new Mi).getFullYear():(new Date).getFullYear();if(isNaN(a))throw new RangeError("Invalid year ".concat(e.year));if(t&&a<1)throw new RangeError("Invalid Hebrew year ".concat(a));if(0==a)throw new RangeError("Invalid Gregorian year ".concat(a));var n=NaN;e.month&&(n=t?Mi.monthNum(e.month):e.month);var r=parseInt(e.numYears,10)||1;if(t){var o=new Mi(1,n||kc,a),i=o.abs(),u=e.month?i+o.daysInMonth():new Mi(1,kc,a+r).abs()-1;return n||i--,[i,u]}var s=e.month?n-1:0,h=new Date(a,s,1);a<100&&h.setFullYear(a);var c,l=to(h);if(e.month)c=l+Xr(n,a)-1;else{var f=a+r,v=new Date(f,0,1);f<100&&v.setFullYear(f),c=to(v)-1}return[l,c]}function Uc(e){if("number"==typeof e.mask){var t=e.mask;return t&Cc&&delete e.noRoshChodesh,t&Ec&&delete e.noModern,t&Ic&&delete e.noMinorFast,t&Tc&&delete e.noSpecialShabbat,t&Hc&&(e.sedrot=!0),t&Nc&&(e.dafyomi=!0),t&Oc&&(e.omer=!0),t&Lc&&(e.shabbatMevarchim=!0),t&Di.MISHNA_YOMI&&(e.mishnaYomi=!0),e.userMask=!0,t}var a=e.il||e.location&&e.location.il||!1,n=0;return e.noHolidays||(n|=Cc|Sc|Ic|Tc|Ec|Dc|Bc|Pc|Yc|bc|Ac|Mc),e.candlelighting&&(n|=bc|Ac|Sc),e.noRoshChodesh&&(n&=~Cc),e.noModern&&(n&=~Ec),e.noMinorFast&&(n&=~Ic),e.noSpecialShabbat&&(n&=~Tc,n&=~Lc),n|=a?pc:wc,e.sedrot&&(n|=Hc),e.dafyomi&&(n|=Nc),e.mishnaYomi&&(n|=Di.MISHNA_YOMI),e.omer&&(n|=Oc),e.shabbatMevarchim&&(n|=Lc),n}var Kc=bc|Ac|Mc|Sc,Gc=new iu(0,0,!1,"UTC"),Zc={US:1,CA:1,BR:1,AU:1,NZ:1,DO:1,PR:1,GR:1,IN:1,KR:1,NP:1,ZA:1};function Wc(e){return e.observedInIsrael()}function Jc(e){return e.observedInDiaspora()}var $c=function(){function e(){a(this,e)}return r(e,null,[{key:"calendar",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Vc(e=zc({},e));var t=e.location=e.location||Gc,a=e.il=e.il||t.il||!1;if(e.mask=Uc(e),e.ashkenazi||e.locale){if(e.locale&&"string"!=typeof e.locale)throw new TypeError("Invalid options.locale: ".concat(e.locale));var n=e.ashkenazi?"ashkenazi":e.locale,r=ei.useLocale(n);if(!r)throw new TypeError("Locale '".concat(n,"' not found; did you forget to import @hebcal/locales?"))}else ei.useLocale("en");var o,i,u,s,h=[],c=-1,l=xc(e);jc(e);var f,v=l[0],d=l[1],m=no(v);m.getFullYear()<100&&(e.candlelighting=!1),e.mishnaYomi&&(f=new Xh);for(var y=function(n){var r=new Mi(n),l=r.getFullYear();l!=c&&(i=Wh(c=l),e.sedrot&&c>=3762&&(o=Vh(c,a)),e.omer&&(u=Mi.hebrew2abs(c,mc,16),s=Mi.hebrew2abs(c,yc,5)));var v=h.length,d=r.getDay(),m=void 0;if((i.get(r.toString())||[]).forEach((function(t){m=qc(h,t,e,m,d)})),e.sedrot&&6==d&&l>=3762){var y=o.lookup(n);y.chag||h.push(new rh(r,y.parsha,a))}if(e.dafyomi&&l>=5684&&h.push(new qu(r)),e.mishnaYomi&&n>=$h){var g=f.lookup(n);h.push(new ec(r,g))}if(e.omer&&n>=u&&n<=s){var k=new ju(r,n-u+1);if(e.candlelighting){var b=new au(r.prev(),t.getLatitude(),t.getLongitude()).tzeit(7.0833);isNaN(b.getTime())||(k.alarm=b)}h.push(k)}var S=r.getMonth();if(e.molad&&6==d&&S!=gc&&r.getDate()>=23&&r.getDate()<=29){var w=S==Mi.monthsInYear(l)?mc:S+1;h.push(new yu(r,l,w))}if(m||!e.candlelighting||5!=d&&6!=d||(m=hu(void 0,r,d,t,e),5===d&&m&&o&&(m.memo=o.getString(n))),m instanceof lu&&(0===e.havdalahMins||0===e.havdalahDeg)&&(m=null),m&&h.push(m),e.addHebrewDates||e.addHebrewDatesForEvents&&v!=h.length){var p=new Ni(r);v==h.length?h.push(p):h.splice(v,0,p)}},g=v;g<=d;g++)y(g);return h}},{key:"getBirthdayOrAnniversary",value:function(e,t){return function(e,t){var a=Mi.isHDate(t)?t:new Mi(t),n=a.getFullYear();if(!(e<=n)){var r=hi(n),o=a.getMonth(),i=a.getDate();return o==ic&&!r||o==uc&&r?o=ci(e):o!=ac||30!=i||mi(e)?o==nc&&30==i&&yi(e)?(o=rc,i=1):o==ic&&30==i&&r&&!hi(e)&&(o=tc,i=1):(o=nc,i=1),new Mi(i,o,e)}}(e,t)}},{key:"getYahrzeit",value:function(e,t){return function(e,t){var a=Mi.isHDate(t)?t:new Mi(t),n={yy:a.getFullYear(),mm:a.getMonth(),dd:a.getDate()};if(!(e<=n.yy))return n.mm!=ac||30!=n.dd||mi(n.yy+1)?n.mm==nc&&30==n.dd&&yi(n.yy+1)?n=si(ii(e,rc,1)-1):n.mm==uc?n.mm=ci(e):n.mm!=ic||30!=n.dd||hi(e)||(n.dd=30,n.mm=oc):n=si(ii(e,nc,1)-1),n.mm!=ac||30!=n.dd||mi(e)?n.mm==nc&&30==n.dd&&yi(e)&&(n.mm=rc,n.dd=1):(n.mm=nc,n.dd=1),new Mi(n.dd,n.mm,e)}(e,t)}},{key:"getHolidaysForYear",value:function(e){return Wh(e)}},{key:"getHolidaysForYearArray",value:function(e,t){for(var a=Wh(e),n=Mi.hebrew2abs(e,kc,1),r=Mi.hebrew2abs(e+1,kc,1)-1,o=[],i=t?Wc:Jc,u=n;u<=r;u++){var s=new Mi(u),h=a.get(s.toString());if(h){var c=h.filter(i);o=o.concat(c)}}return o}},{key:"getHolidaysOnDate",value:function(e,t){var a=Mi.isHDate(e)?e:new Mi(e),n=Wh(a.getFullYear()).get(a.toString());if(void 0===t||void 0===n)return n;var r=t?Wc:Jc;return n.filter(r)}},{key:"reformatTimeStr",value:function(e,t,a){if("string"!=typeof e)throw new TypeError("Bad timeStr: ".concat(e));var n=a.location&&a.location.cc||(a.il?"IL":"US");if(void 0===Zc[n])return e;var r=e.split(":"),o=parseInt(r[0],10);return o<12&&t?t=t.replace("p","a").replace("P","A"):o>12&&(o%=12),"".concat(o,":").concat(r[1]).concat(t)}},{key:"version",value:function(){return sc}},{key:"getSedra",value:function(e,t){return Vh(e,t)}}]),e}();function qc(e,t,a,n,r){var o=a.il;if(!t.observedIn(o))return n;var i=t.getFlags(),u=a.location,s=Boolean(i&Dc),h=Boolean(i&Ic);if(a.candlelighting&&(s||h)&&(t=function(e,t){var a=e.getDesc();if("Yom Kippur"===a)return e;var n=(e=e.clone()).getDate(),r=n.greg(),o=new au(r,t.getLatitude(),t.getLongitude());if("Erev Tish'a B'Av"===a){var i=o.sunset();e.startEvent=vu(n,i,"Fast begins",e,t)}else if("Tish'a B'Av"===a.substring(0,11))e.endEvent=vu(n,o.tzeit(7.083),"Fast ends",e,t);else{var u=o.alotHaShachar();e.startEvent=vu(n,u,"Fast begins",e,t),5===r.getDay()||14===n.getDate()&&n.getMonth()===ti.NISAN||(e.endEvent=vu(n,o.tzeit(7.083),"Fast ends",e,t))}return e}(t,u),t.startEvent&&(s||h&&!a.noMinorFast)&&e.push(t.startEvent)),i&a.mask||!i&&!a.userMask){if(a.candlelighting&&i&Kc){var c=t.getDate();if(n=hu(t,c,r,u,a),i&Mc&&n&&!a.noHolidays){var l=5===r||6===r?n:function(e,t,a){var n=new au(t.greg(),a.getLatitude(),a.getLongitude());return vu(t,n.dusk(),e.getDesc(),e,a)}(t,c,u),f={eventTime:l.eventTime,eventTimeStr:l.eventTimeStr,location:u};t.chanukahDay&&(f.chanukahDay=t.chanukahDay),t.emoji&&(f.emoji=t.emoji),t=new oh(t.getDate(),t.getDesc(),i,f),n=void 0}}a.noHolidays||e.push(t)}return t.endEvent&&(s||h&&!a.noMinorFast)&&e.push(t.endEvent),n}return e.AsaraBTevetEvent=sh,e.CandleLightingEvent=fu,e.DafYomi=Ju,e.DafYomiEvent=qu,e.Event=Ci,e.HDate=Mi,e.HavdalahEvent=lu,e.HebrewCalendar=$c,e.HebrewDateEvent=Ni,e.HolidayEvent=oh,e.Locale=ei,e.Location=iu,e.MevarchimChodeshEvent=ch,e.MishnaYomiEvent=ec,e.MishnaYomiIndex=Xh,e.Molad=mu,e.MoladEvent=yu,e.OmerEvent=ju,e.ParshaEvent=rh,e.RoshChodeshEvent=uh,e.RoshHashanaEvent=lh,e.Sedra=Rs,e.TimedEvent=cu,e.Zmanim=au,e.flags=Di,e.gematriya=uo,e.greg=ro,e.months=ti,e.parshiot=js,e.version=sc,Object.defineProperty(e,"__esModule",{value:!0}),e}({});
|
package/dist/hdate-bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v3.
|
|
1
|
+
/*! @hebcal/core v3.39.1 */
|
|
2
2
|
var hebcal = (function (exports) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -2044,7 +2044,7 @@ function getBirthdayOrAnniversary_(hyear, gdate) {
|
|
|
2044
2044
|
return new HDate(day, month, hyear);
|
|
2045
2045
|
}
|
|
2046
2046
|
|
|
2047
|
-
var version="3.
|
|
2047
|
+
var version="3.39.1";
|
|
2048
2048
|
|
|
2049
2049
|
var headers={"plural-forms":"nplurals=2; plural=(n > 1);",language:"he"};var contexts={"":{Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִשְׁרֵי"]}};var poHeMin = {headers:headers,contexts:contexts};
|
|
2050
2050
|
|
package/dist/hdate-bundle.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @hebcal/core v3.
|
|
2
|
-
var hebcal=function(e){"use strict";function t(e){switch(e){case 1:return"א";case 2:return"ב";case 3:return"ג";case 4:return"ד";case 5:return"ה";case 6:return"ו";case 7:return"ז";case 8:return"ח";case 9:return"ט";case 10:return"י";case 20:return"כ";case 30:return"ל";case 40:return"מ";case 50:return"נ";case 60:return"ס";case 70:return"ע";case 80:return"פ";case 90:return"צ";case 100:return"ק";case 200:return"ר";case 300:return"ש";case 400:return"ת";default:return"*INVALID*"}}function r(e){for(var t=[];e>0;){if(15===e||16===e){t.push(9),t.push(e-9);break}var r=100,n=void 0;for(n=400;n>e;n-=r)n===r&&(r/=10);t.push(n),e-=n}return t}function n(e){var n=parseInt(e,10);if(!n)throw new TypeError("invalid parameter to gematriya ".concat(e));var a="",o=Math.floor(n/1e3);if(o>0&&5!==o){for(var u=r(o),i=0;i<u.length;i++)a+=t(u[i]);a+="׳"}var s=r(n%1e3);if(1==s.length)return a+t(s[0])+"׳";for(var c=0;c<s.length;c++)c+1===s.length&&(a+="״"),a+=t(s[c]);return a}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c=[0,31,28,31,30,31,30,31,31,30,31,30,31],h=[c,c.slice()];function l(e,t){return e-t*Math.floor(e/t)}function f(e,t){return Math.floor(e/t)}function y(e){return!(e%4||!(e%100)&&e%400)}function v(e){return"object"===a(e)&&Date.prototype===e.__proto__}function m(e){if(!v(e))throw new TypeError("Argument not a Date: ".concat(e));var t=e.getDate()+31*e.getMonth();return e.getMonth()>1&&(t-=Math.floor((4*(e.getMonth()+1)+23)/10),y(e.getFullYear())&&t++),t}function d(e){if(!v(e))throw new TypeError("Argument not a Date: ".concat(e));var t=e.getFullYear()-1;return m(e)+365*t+(Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))}function g(e,t,r){var n=e-1;return 0+365*n+f(n,4)-f(n,100)+f(n,400)+f(367*t-362,12)+Math.floor(t<=2?0:y(e)?-1:-2)+r}function b(e){if("number"!=typeof e)throw new TypeError("Argument not a Number: ".concat(e));var t=function(e){var t=e-1,r=f(t,146097),n=l(t,146097),a=f(n,36524),o=l(n,36524),u=f(o,1461),i=f(l(o,1461),365),s=400*r+100*a+4*u+i;return 4!=a&&4!=i?s+1:s}(e=Math.trunc(e)),r=f(12*(e-g(t,1,1)+(e<g(t,3,1)?0:y(t)?1:2))+373,367),n=e-g(t,r,1)+1,a=new Date(t,r-1,n);return t<100&&t>=0&&a.setFullYear(t),a}h[1][2]=29;var k=function(){function e(){o(this,e)}return i(e,null,[{key:"isLeapYear",value:function(e){return y(e)}},{key:"daysInMonth",value:function(e,t){return function(e,t){return h[+y(t)][e]}(e,t)}},{key:"isDate",value:function(e){return v(e)}},{key:"dayOfYear",value:function(e){return m(e)}},{key:"greg2abs",value:function(e){return d(e)}},{key:"abs2greg",value:function(e){return b(e)}}]),e}();s(k,"monthNames",["","January","February","March","April","May","June","July","August","September","October","November","December"]);var p={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},w={h:"he",a:"ashkenazi",s:"en","":"en"},A=function(){function e(){o(this,e)}return i(e,null,[{key:"lookupTranslation",value:function(e,t){var r=t&&t.toLowerCase(),n=("string"==typeof t&&this.locales[r]||this.activeLocale)[e];if(n&&n.length&&n[0].length)return n[0]}},{key:"gettext",value:function(e,t){var r=this.lookupTranslation(e,t);return void 0===r?e:r}},{key:"addLocale",value:function(e,t){if("object"!==a(t.contexts)||"object"!==a(t.contexts[""]))throw new TypeError("Locale '".concat(e,"' invalid compact format"));this.locales[e.toLowerCase()]=t.contexts[""]}},{key:"useLocale",value:function(e){var t=e.toLowerCase(),r=this.locales[t];if(!r)throw new RangeError("Locale '".concat(e,"' not found"));return this.activeName=w[t]||t,this.activeLocale=r,this.activeLocale}},{key:"getLocaleName",value:function(){return this.activeName}},{key:"getLocaleNames",value:function(){return Object.keys(this.locales).sort()}},{key:"ordinal",value:function(e,t){var r=t&&t.toLowerCase()||this.activeName;if(!r)return this.getEnOrdinal(e);switch(r){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+"."}}},{key:"getEnOrdinal",value:function(e){var t=["th","st","nd","rd"],r=e%100;return e+(t[(r-20)%10]||t[r]||t[0])}},{key:"hebrewStripNikkud",value:function(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}]),e}();s(A,"locales",Object.create(null)),s(A,"activeLocale",null),s(A,"activeName",null),A.addLocale("en",p),A.addLocale("s",p),A.addLocale("",p),A.useLocale("en");var I={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},N=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],M=[N.concat(["Adar","Nisan"]),N.concat(["Adar I","Adar II","Nisan"])],E=Object.create(null),T=-1373428;function D(e,t,r){var n=r;if(t<7){for(var a=7;a<=H(e);a++)n+=O(a,e);for(var o=1;o<t;o++)n+=O(o,e)}else for(var u=7;u<t;u++)n+=O(u,e);return T+R(e)+n-1}function L(e){return T+R(e)}function S(e){if("number"!=typeof e||isNaN(e))throw new TypeError("invalid parameter to abs2hebrew ".concat(e));e=Math.trunc(e);for(var t=Math.floor((e-T)/365.24682220597794);L(t)<=e;)++t;for(var r=e<D(--t,1,1)?7:1;e>D(t,r,O(r,t));)++r;return{yy:t,mm:r,dd:1+e-D(t,r,1)}}function Y(e){return(1+7*e)%19<7}function H(e){return 12+Y(e)}function O(e,t){switch(e){case 2:case 4:case 6:case 10:case 13:return 29}return 12===e&&!Y(t)||8===e&&!F(t)||9===e&&C(t)?29:30}function V(e,t){if("number"!=typeof e||isNaN(e)||e<1||e>14)throw new TypeError("bad month argument ".concat(e));return M[+Y(t)][e]}function R(e){var t=E[e]=E[e]||function(e){var t=e-1,r=235*Math.floor(t/19)+t%19*12+Math.floor((t%19*7+1)/19),n=204+r%1080*793,a=5+12*r+793*Math.floor(r/1080)+Math.floor(n/1080),o=n%1080+a%24*1080,u=1+29*r+Math.floor(a/24),i=u+(o>=19440||2==u%7&&o>=9924&&!Y(e)||1==u%7&&o>=16789&&Y(t));return i+(i%7==0||i%7==3||i%7==5)}(e);return t}function _(e){return R(e+1)-R(e)}function F(e){return _(e)%10==5}function C(e){return _(e)%10==3}function z(e){throw new TypeError(e)}var j="day",x="week",U="month",K="year",B={d:j,w:x,M:U,y:K},P={day:j,week:x,month:U,year:K},J=function(){function e(t,r,n){if(o(this,e),2==arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3==arguments.length){if(this.day=this.month=1,n=parseInt(n,10),isNaN(n))throw new TypeError("HDate called with bad year argument: ".concat(n));if(this.year=n,this.setMonth(r),t=parseInt(t,10),isNaN(t))throw new TypeError("HDate called with bad day argument: ".concat(t));this.setDate(t)}else{void 0===t&&(t=new Date);var a="number"!=typeof t||isNaN(t)?v(t)?d(t):e.isHDate(t)?{dd:t.day,mm:t.month,yy:t.year}:z("HDate called with bad argument: ".concat(t)):t,u="number"==typeof a,i=u?S(a):a;this.day=i.dd,this.month=i.mm,this.year=i.yy,u&&(this.abs0=a)}}return i(e,[{key:"getFullYear",value:function(){return this.year}},{key:"isLeapYear",value:function(){return Y(this.year)}},{key:"getMonth",value:function(){return this.month}},{key:"getTishreiMonth",value:function(){var e=H(this.getFullYear());return(this.getMonth()+e-6)%e||e}},{key:"daysInMonth",value:function(){return O(this.getMonth(),this.getFullYear())}},{key:"getDate",value:function(){return this.day}},{key:"getDay",value:function(){return l(this.abs(),7)}},{key:"setFullYear",value:function(e){return this.year=e,Z(this),this}},{key:"setMonth",value:function(t){return this.month=e.monthNum(t),Z(this),this}},{key:"setDate",value:function(e){return this.day=e,Z(this),this}},{key:"greg",value:function(){return b(this.abs())}},{key:"abs",value:function(){return"number"!=typeof this.abs0&&(this.abs0=D(this.year,this.month,this.day)),this.abs0}},{key:"getMonthName",value:function(){return V(this.getMonth(),this.getFullYear())}},{key:"render",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t||A.getLocaleName(),a=this.getDate(),o=A.gettext(this.getMonthName(),n),u=A.ordinal(a,n),i=e.getDayOfTranslation(n),s="".concat(u).concat(i," ").concat(o);if(r){var c=this.getFullYear();return"".concat(s,", ").concat(c)}return s}},{key:"renderGematriya",value:function(){var e=this.getDate(),t=A.gettext(this.getMonthName(),"he"),r=this.getFullYear();return n(e)+" "+t+" "+n(r)}},{key:"before",value:function(e){return q(e,this,-1)}},{key:"onOrBefore",value:function(e){return q(e,this,0)}},{key:"nearest",value:function(e){return q(e,this,3)}},{key:"onOrAfter",value:function(e){return q(e,this,6)}},{key:"after",value:function(e){return q(e,this,7)}},{key:"next",value:function(){return new e(this.abs()+1)}},{key:"prev",value:function(){return new e(this.abs()-1)}},{key:"add",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(t=parseInt(t,10)))return new e(this);if((r=e.standardizeUnits(r))===j)return new e(this.abs()+t);if(r===x)return new e(this.abs()+7*t);if(r===K)return new e(this.getDate(),this.getMonth(),this.getFullYear()+t);if(r===U){var n=new e(this),a=t>0?1:-1;t=Math.abs(t);for(var o=0;o<t;o++)n=new e(n.abs()+a*n.daysInMonth());return n}}},{key:"subtract",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}},{key:"deltaDays",value:function(t){if(!e.isHDate(t))throw new TypeError("Bad argument: ".concat(t));return this.abs()-t.abs()}},{key:"isSameDate",value:function(t){return!!e.isHDate(t)&&(this.year==t.year&&this.month==t.month&&this.day==t.day)}},{key:"toString",value:function(){var e=this.getDate(),t=this.getFullYear(),r=this.getMonthName();return"".concat(e," ").concat(r," ").concat(t)}}],[{key:"hebrew2abs",value:function(e,t,r){return D(e,t,r)}},{key:"abs2hebrew",value:function(e){return S(e)}},{key:"getDayOfTranslation",value:function(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}var t=A.lookupTranslation("of",e);return t?" "+t:"ashkenazi"===e.substring(0,9)?" of":""}},{key:"standardizeUnits",value:function(e){var t=B[e]||String(e||"").toLowerCase().replace(/s$/,"");return P[t]||z("Invalid units '".concat(e,"'"))}},{key:"isLeapYear",value:function(e){return Y(e)}},{key:"monthsInYear",value:function(e){return H(e)}},{key:"daysInMonth",value:function(e,t){return O(e,t)}},{key:"getMonthName",value:function(e,t){return V(e,t)}},{key:"monthNum",value:function(t){if("number"==typeof t){if(isNaN(t)||t>14)throw new RangeError("Invalid month number: ".concat(t));return t}return t.charCodeAt(0)>=48&&t.charCodeAt(0)<=57?parseInt(t,10):e.monthFromName(t)}},{key:"daysInYear",value:function(e){return _(e)}},{key:"longCheshvan",value:function(e){return F(e)}},{key:"shortKislev",value:function(e){return C(e)}},{key:"monthFromName",value:function(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError("Invalid month name: ".concat(e));return e}var t=e.toLowerCase();switch(t[0]){case"n":case"נ":if("o"==t[1])break;return I.NISAN;case"i":return I.IYYAR;case"e":return I.ELUL;case"c":case"ח":return I.CHESHVAN;case"k":case"כ":return I.KISLEV;case"s":switch(t[1]){case"i":return I.SIVAN;case"h":return I.SHVAT}case"t":switch(t[1]){case"a":return I.TAMUZ;case"i":return I.TISHREI;case"e":return I.TEVET}break;case"a":switch(t[1]){case"v":return I.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?I.ADAR_I:I.ADAR_II}break;case"ס":return I.SIVAN;case"ט":return I.TEVET;case"ש":return I.SHVAT;case"א":switch(t[1]){case"ב":return I.AV;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?I.ADAR_I:I.ADAR_II;case"י":return I.IYYAR;case"ל":return I.ELUL}break;case"ת":switch(t[1]){case"מ":return I.TAMUZ;case"ש":return I.TISHREI}}throw new RangeError("Unable to parse month name: ".concat(e))}},{key:"dayOnOrBefore",value:function(e,t){return t-(t-e)%7}},{key:"isHDate",value:function(e){return null!==e&&"object"===a(e)&&"number"==typeof e.year&&"number"==typeof e.month&&"number"==typeof e.day&&"function"==typeof e.greg&&"function"==typeof e.abs}}]),e}();function Z(e){$(e),function(e){e.day<1&&(e.month==I.TISHREI&&(e.year-=1),e.day+=O(e.month,e.year),e.month-=1,Z(e));e.day>O(e.month,e.year)&&(e.month===I.ELUL&&(e.year+=1),e.day-=O(e.month,e.year),e.month+=1,Z(e));$(e)}(e)}function $(e){e.month!==I.ADAR_II||e.isLeapYear()?e.month<1?(e.month+=H(e.year),e.year-=1,Z(e)):e.month>H(e.year)&&(e.month-=H(e.year),e.year+=1,Z(e)):(e.month-=1,Z(e)),delete e.abs0}function q(e,t,r){return new J(J.dayOnOrBefore(e,t.abs()+r))}var G=I.NISAN,Q=I.CHESHVAN,W=I.KISLEV,X=I.TEVET,ee=I.SHVAT,te=I.ADAR_I,re=I.ADAR_II;var ne={headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"he"},contexts:{"":{Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִשְׁרֵי"]}}};return A.addLocale("he",ne),A.addLocale("h",ne),e.HDate=J,e.Locale=A,e.gematriya=n,e.getBirthdayOrAnniversary=function(e,t){var r=J.isHDate(t)?t:new J(t),n=r.getFullYear();if(!(e<=n)){var a=Y(n),o=r.getMonth(),u=r.getDate();return o==te&&!a||o==re&&a?o=H(e):o!=Q||30!=u||F(e)?o==W&&30==u&&C(e)?(o=X,u=1):o==te&&30==u&&a&&!Y(e)&&(o=G,u=1):(o=W,u=1),new J(u,o,e)}},e.getYahrzeit=function(e,t){var r=J.isHDate(t)?t:new J(t),n={yy:r.getFullYear(),mm:r.getMonth(),dd:r.getDate()};if(!(e<=n.yy))return n.mm!=Q||30!=n.dd||F(n.yy+1)?n.mm==W&&30==n.dd&&C(n.yy+1)?n=S(D(e,X,1)-1):n.mm==re?n.mm=H(e):n.mm!=te||30!=n.dd||Y(e)||(n.dd=30,n.mm=ee):n=S(D(e,W,1)-1),n.mm!=Q||30!=n.dd||F(e)?n.mm==W&&30==n.dd&&C(e)&&(n.mm=X,n.dd=1):(n.mm=W,n.dd=1),new J(n.dd,n.mm,e)},e.greg=k,e.months=I,e.version="3.38.0",Object.defineProperty(e,"__esModule",{value:!0}),e}({});
|
|
1
|
+
/*! @hebcal/core v3.39.1 */
|
|
2
|
+
var hebcal=function(e){"use strict";function t(e){switch(e){case 1:return"א";case 2:return"ב";case 3:return"ג";case 4:return"ד";case 5:return"ה";case 6:return"ו";case 7:return"ז";case 8:return"ח";case 9:return"ט";case 10:return"י";case 20:return"כ";case 30:return"ל";case 40:return"מ";case 50:return"נ";case 60:return"ס";case 70:return"ע";case 80:return"פ";case 90:return"צ";case 100:return"ק";case 200:return"ר";case 300:return"ש";case 400:return"ת";default:return"*INVALID*"}}function r(e){for(var t=[];e>0;){if(15===e||16===e){t.push(9),t.push(e-9);break}var r=100,n=void 0;for(n=400;n>e;n-=r)n===r&&(r/=10);t.push(n),e-=n}return t}function n(e){var n=parseInt(e,10);if(!n)throw new TypeError("invalid parameter to gematriya ".concat(e));var a="",o=Math.floor(n/1e3);if(o>0&&5!==o){for(var u=r(o),i=0;i<u.length;i++)a+=t(u[i]);a+="׳"}var s=r(n%1e3);if(1==s.length)return a+t(s[0])+"׳";for(var c=0;c<s.length;c++)c+1===s.length&&(a+="״"),a+=t(s[c]);return a}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c=[0,31,28,31,30,31,30,31,31,30,31,30,31],h=[c,c.slice()];function l(e,t){return e-t*Math.floor(e/t)}function f(e,t){return Math.floor(e/t)}function y(e){return!(e%4||!(e%100)&&e%400)}function v(e){return"object"===a(e)&&Date.prototype===e.__proto__}function m(e){if(!v(e))throw new TypeError("Argument not a Date: ".concat(e));var t=e.getDate()+31*e.getMonth();return e.getMonth()>1&&(t-=Math.floor((4*(e.getMonth()+1)+23)/10),y(e.getFullYear())&&t++),t}function d(e){if(!v(e))throw new TypeError("Argument not a Date: ".concat(e));var t=e.getFullYear()-1;return m(e)+365*t+(Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))}function g(e,t,r){var n=e-1;return 0+365*n+f(n,4)-f(n,100)+f(n,400)+f(367*t-362,12)+Math.floor(t<=2?0:y(e)?-1:-2)+r}function b(e){if("number"!=typeof e)throw new TypeError("Argument not a Number: ".concat(e));var t=function(e){var t=e-1,r=f(t,146097),n=l(t,146097),a=f(n,36524),o=l(n,36524),u=f(o,1461),i=f(l(o,1461),365),s=400*r+100*a+4*u+i;return 4!=a&&4!=i?s+1:s}(e=Math.trunc(e)),r=f(12*(e-g(t,1,1)+(e<g(t,3,1)?0:y(t)?1:2))+373,367),n=e-g(t,r,1)+1,a=new Date(t,r-1,n);return t<100&&t>=0&&a.setFullYear(t),a}h[1][2]=29;var k=function(){function e(){o(this,e)}return i(e,null,[{key:"isLeapYear",value:function(e){return y(e)}},{key:"daysInMonth",value:function(e,t){return function(e,t){return h[+y(t)][e]}(e,t)}},{key:"isDate",value:function(e){return v(e)}},{key:"dayOfYear",value:function(e){return m(e)}},{key:"greg2abs",value:function(e){return d(e)}},{key:"abs2greg",value:function(e){return b(e)}}]),e}();s(k,"monthNames",["","January","February","March","April","May","June","July","August","September","October","November","December"]);var p={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},w={h:"he",a:"ashkenazi",s:"en","":"en"},A=function(){function e(){o(this,e)}return i(e,null,[{key:"lookupTranslation",value:function(e,t){var r=t&&t.toLowerCase(),n=("string"==typeof t&&this.locales[r]||this.activeLocale)[e];if(n&&n.length&&n[0].length)return n[0]}},{key:"gettext",value:function(e,t){var r=this.lookupTranslation(e,t);return void 0===r?e:r}},{key:"addLocale",value:function(e,t){if("object"!==a(t.contexts)||"object"!==a(t.contexts[""]))throw new TypeError("Locale '".concat(e,"' invalid compact format"));this.locales[e.toLowerCase()]=t.contexts[""]}},{key:"useLocale",value:function(e){var t=e.toLowerCase(),r=this.locales[t];if(!r)throw new RangeError("Locale '".concat(e,"' not found"));return this.activeName=w[t]||t,this.activeLocale=r,this.activeLocale}},{key:"getLocaleName",value:function(){return this.activeName}},{key:"getLocaleNames",value:function(){return Object.keys(this.locales).sort()}},{key:"ordinal",value:function(e,t){var r=t&&t.toLowerCase()||this.activeName;if(!r)return this.getEnOrdinal(e);switch(r){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+"."}}},{key:"getEnOrdinal",value:function(e){var t=["th","st","nd","rd"],r=e%100;return e+(t[(r-20)%10]||t[r]||t[0])}},{key:"hebrewStripNikkud",value:function(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}]),e}();s(A,"locales",Object.create(null)),s(A,"activeLocale",null),s(A,"activeName",null),A.addLocale("en",p),A.addLocale("s",p),A.addLocale("",p),A.useLocale("en");var I={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},N=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],M=[N.concat(["Adar","Nisan"]),N.concat(["Adar I","Adar II","Nisan"])],E=Object.create(null),T=-1373428;function D(e,t,r){var n=r;if(t<7){for(var a=7;a<=H(e);a++)n+=O(a,e);for(var o=1;o<t;o++)n+=O(o,e)}else for(var u=7;u<t;u++)n+=O(u,e);return T+R(e)+n-1}function L(e){return T+R(e)}function S(e){if("number"!=typeof e||isNaN(e))throw new TypeError("invalid parameter to abs2hebrew ".concat(e));e=Math.trunc(e);for(var t=Math.floor((e-T)/365.24682220597794);L(t)<=e;)++t;for(var r=e<D(--t,1,1)?7:1;e>D(t,r,O(r,t));)++r;return{yy:t,mm:r,dd:1+e-D(t,r,1)}}function Y(e){return(1+7*e)%19<7}function H(e){return 12+Y(e)}function O(e,t){switch(e){case 2:case 4:case 6:case 10:case 13:return 29}return 12===e&&!Y(t)||8===e&&!F(t)||9===e&&C(t)?29:30}function V(e,t){if("number"!=typeof e||isNaN(e)||e<1||e>14)throw new TypeError("bad month argument ".concat(e));return M[+Y(t)][e]}function R(e){var t=E[e]=E[e]||function(e){var t=e-1,r=235*Math.floor(t/19)+t%19*12+Math.floor((t%19*7+1)/19),n=204+r%1080*793,a=5+12*r+793*Math.floor(r/1080)+Math.floor(n/1080),o=n%1080+a%24*1080,u=1+29*r+Math.floor(a/24),i=u+(o>=19440||2==u%7&&o>=9924&&!Y(e)||1==u%7&&o>=16789&&Y(t));return i+(i%7==0||i%7==3||i%7==5)}(e);return t}function _(e){return R(e+1)-R(e)}function F(e){return _(e)%10==5}function C(e){return _(e)%10==3}function z(e){throw new TypeError(e)}var j="day",x="week",U="month",K="year",B={d:j,w:x,M:U,y:K},P={day:j,week:x,month:U,year:K},J=function(){function e(t,r,n){if(o(this,e),2==arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3==arguments.length){if(this.day=this.month=1,n=parseInt(n,10),isNaN(n))throw new TypeError("HDate called with bad year argument: ".concat(n));if(this.year=n,this.setMonth(r),t=parseInt(t,10),isNaN(t))throw new TypeError("HDate called with bad day argument: ".concat(t));this.setDate(t)}else{void 0===t&&(t=new Date);var a="number"!=typeof t||isNaN(t)?v(t)?d(t):e.isHDate(t)?{dd:t.day,mm:t.month,yy:t.year}:z("HDate called with bad argument: ".concat(t)):t,u="number"==typeof a,i=u?S(a):a;this.day=i.dd,this.month=i.mm,this.year=i.yy,u&&(this.abs0=a)}}return i(e,[{key:"getFullYear",value:function(){return this.year}},{key:"isLeapYear",value:function(){return Y(this.year)}},{key:"getMonth",value:function(){return this.month}},{key:"getTishreiMonth",value:function(){var e=H(this.getFullYear());return(this.getMonth()+e-6)%e||e}},{key:"daysInMonth",value:function(){return O(this.getMonth(),this.getFullYear())}},{key:"getDate",value:function(){return this.day}},{key:"getDay",value:function(){return l(this.abs(),7)}},{key:"setFullYear",value:function(e){return this.year=e,Z(this),this}},{key:"setMonth",value:function(t){return this.month=e.monthNum(t),Z(this),this}},{key:"setDate",value:function(e){return this.day=e,Z(this),this}},{key:"greg",value:function(){return b(this.abs())}},{key:"abs",value:function(){return"number"!=typeof this.abs0&&(this.abs0=D(this.year,this.month,this.day)),this.abs0}},{key:"getMonthName",value:function(){return V(this.getMonth(),this.getFullYear())}},{key:"render",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t||A.getLocaleName(),a=this.getDate(),o=A.gettext(this.getMonthName(),n),u=A.ordinal(a,n),i=e.getDayOfTranslation(n),s="".concat(u).concat(i," ").concat(o);if(r){var c=this.getFullYear();return"".concat(s,", ").concat(c)}return s}},{key:"renderGematriya",value:function(){var e=this.getDate(),t=A.gettext(this.getMonthName(),"he"),r=this.getFullYear();return n(e)+" "+t+" "+n(r)}},{key:"before",value:function(e){return q(e,this,-1)}},{key:"onOrBefore",value:function(e){return q(e,this,0)}},{key:"nearest",value:function(e){return q(e,this,3)}},{key:"onOrAfter",value:function(e){return q(e,this,6)}},{key:"after",value:function(e){return q(e,this,7)}},{key:"next",value:function(){return new e(this.abs()+1)}},{key:"prev",value:function(){return new e(this.abs()-1)}},{key:"add",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(t=parseInt(t,10)))return new e(this);if((r=e.standardizeUnits(r))===j)return new e(this.abs()+t);if(r===x)return new e(this.abs()+7*t);if(r===K)return new e(this.getDate(),this.getMonth(),this.getFullYear()+t);if(r===U){var n=new e(this),a=t>0?1:-1;t=Math.abs(t);for(var o=0;o<t;o++)n=new e(n.abs()+a*n.daysInMonth());return n}}},{key:"subtract",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}},{key:"deltaDays",value:function(t){if(!e.isHDate(t))throw new TypeError("Bad argument: ".concat(t));return this.abs()-t.abs()}},{key:"isSameDate",value:function(t){return!!e.isHDate(t)&&(this.year==t.year&&this.month==t.month&&this.day==t.day)}},{key:"toString",value:function(){var e=this.getDate(),t=this.getFullYear(),r=this.getMonthName();return"".concat(e," ").concat(r," ").concat(t)}}],[{key:"hebrew2abs",value:function(e,t,r){return D(e,t,r)}},{key:"abs2hebrew",value:function(e){return S(e)}},{key:"getDayOfTranslation",value:function(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}var t=A.lookupTranslation("of",e);return t?" "+t:"ashkenazi"===e.substring(0,9)?" of":""}},{key:"standardizeUnits",value:function(e){var t=B[e]||String(e||"").toLowerCase().replace(/s$/,"");return P[t]||z("Invalid units '".concat(e,"'"))}},{key:"isLeapYear",value:function(e){return Y(e)}},{key:"monthsInYear",value:function(e){return H(e)}},{key:"daysInMonth",value:function(e,t){return O(e,t)}},{key:"getMonthName",value:function(e,t){return V(e,t)}},{key:"monthNum",value:function(t){if("number"==typeof t){if(isNaN(t)||t>14)throw new RangeError("Invalid month number: ".concat(t));return t}return t.charCodeAt(0)>=48&&t.charCodeAt(0)<=57?parseInt(t,10):e.monthFromName(t)}},{key:"daysInYear",value:function(e){return _(e)}},{key:"longCheshvan",value:function(e){return F(e)}},{key:"shortKislev",value:function(e){return C(e)}},{key:"monthFromName",value:function(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError("Invalid month name: ".concat(e));return e}var t=e.toLowerCase();switch(t[0]){case"n":case"נ":if("o"==t[1])break;return I.NISAN;case"i":return I.IYYAR;case"e":return I.ELUL;case"c":case"ח":return I.CHESHVAN;case"k":case"כ":return I.KISLEV;case"s":switch(t[1]){case"i":return I.SIVAN;case"h":return I.SHVAT}case"t":switch(t[1]){case"a":return I.TAMUZ;case"i":return I.TISHREI;case"e":return I.TEVET}break;case"a":switch(t[1]){case"v":return I.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?I.ADAR_I:I.ADAR_II}break;case"ס":return I.SIVAN;case"ט":return I.TEVET;case"ש":return I.SHVAT;case"א":switch(t[1]){case"ב":return I.AV;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?I.ADAR_I:I.ADAR_II;case"י":return I.IYYAR;case"ל":return I.ELUL}break;case"ת":switch(t[1]){case"מ":return I.TAMUZ;case"ש":return I.TISHREI}}throw new RangeError("Unable to parse month name: ".concat(e))}},{key:"dayOnOrBefore",value:function(e,t){return t-(t-e)%7}},{key:"isHDate",value:function(e){return null!==e&&"object"===a(e)&&"number"==typeof e.year&&"number"==typeof e.month&&"number"==typeof e.day&&"function"==typeof e.greg&&"function"==typeof e.abs}}]),e}();function Z(e){$(e),function(e){e.day<1&&(e.month==I.TISHREI&&(e.year-=1),e.day+=O(e.month,e.year),e.month-=1,Z(e));e.day>O(e.month,e.year)&&(e.month===I.ELUL&&(e.year+=1),e.day-=O(e.month,e.year),e.month+=1,Z(e));$(e)}(e)}function $(e){e.month!==I.ADAR_II||e.isLeapYear()?e.month<1?(e.month+=H(e.year),e.year-=1,Z(e)):e.month>H(e.year)&&(e.month-=H(e.year),e.year+=1,Z(e)):(e.month-=1,Z(e)),delete e.abs0}function q(e,t,r){return new J(J.dayOnOrBefore(e,t.abs()+r))}var G=I.NISAN,Q=I.CHESHVAN,W=I.KISLEV,X=I.TEVET,ee=I.SHVAT,te=I.ADAR_I,re=I.ADAR_II;var ne={headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"he"},contexts:{"":{Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִשְׁרֵי"]}}};return A.addLocale("he",ne),A.addLocale("h",ne),e.HDate=J,e.Locale=A,e.gematriya=n,e.getBirthdayOrAnniversary=function(e,t){var r=J.isHDate(t)?t:new J(t),n=r.getFullYear();if(!(e<=n)){var a=Y(n),o=r.getMonth(),u=r.getDate();return o==te&&!a||o==re&&a?o=H(e):o!=Q||30!=u||F(e)?o==W&&30==u&&C(e)?(o=X,u=1):o==te&&30==u&&a&&!Y(e)&&(o=G,u=1):(o=W,u=1),new J(u,o,e)}},e.getYahrzeit=function(e,t){var r=J.isHDate(t)?t:new J(t),n={yy:r.getFullYear(),mm:r.getMonth(),dd:r.getDate()};if(!(e<=n.yy))return n.mm!=Q||30!=n.dd||F(n.yy+1)?n.mm==W&&30==n.dd&&C(n.yy+1)?n=S(D(e,X,1)-1):n.mm==re?n.mm=H(e):n.mm!=te||30!=n.dd||Y(e)||(n.dd=30,n.mm=ee):n=S(D(e,W,1)-1),n.mm!=Q||30!=n.dd||F(e)?n.mm==W&&30==n.dd&&C(e)&&(n.mm=X,n.dd=1):(n.mm=W,n.dd=1),new J(n.dd,n.mm,e)},e.greg=k,e.months=I,e.version="3.39.1",Object.defineProperty(e,"__esModule",{value:!0}),e}({});
|
package/dist/hdate.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v3.
|
|
1
|
+
/*! @hebcal/core v3.39.1 */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -1948,7 +1948,7 @@ function getBirthdayOrAnniversary_(hyear, gdate) {
|
|
|
1948
1948
|
return new HDate(day, month, hyear);
|
|
1949
1949
|
}
|
|
1950
1950
|
|
|
1951
|
-
const version="3.
|
|
1951
|
+
const version="3.39.1";
|
|
1952
1952
|
|
|
1953
1953
|
const headers={"plural-forms":"nplurals=2; plural=(n > 1);",language:"he"};const contexts={"":{Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִשְׁרֵי"]}};var poHeMin = {headers:headers,contexts:contexts};
|
|
1954
1954
|
|
package/dist/hdate.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v3.
|
|
1
|
+
/*! @hebcal/core v3.39.1 */
|
|
2
2
|
const GERESH = '׳';
|
|
3
3
|
const GERSHAYIM = '״';
|
|
4
4
|
/**
|
|
@@ -1944,7 +1944,7 @@ function getBirthdayOrAnniversary_(hyear, gdate) {
|
|
|
1944
1944
|
return new HDate(day, month, hyear);
|
|
1945
1945
|
}
|
|
1946
1946
|
|
|
1947
|
-
const version="3.
|
|
1947
|
+
const version="3.39.1";
|
|
1948
1948
|
|
|
1949
1949
|
const headers={"plural-forms":"nplurals=2; plural=(n > 1);",language:"he"};const contexts={"":{Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִשְׁרֵי"]}};var poHeMin = {headers:headers,contexts:contexts};
|
|
1950
1950
|
|
package/dist/hdate0-bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @hebcal/core v3.
|
|
1
|
+
/*! @hebcal/core v3.39.1 */
|
|
2
2
|
var hebcal=function(r){"use strict";function t(r){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},t(r)}var n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function e(r,t){return r-t*Math.floor(r/t)}function o(r,t){return Math.floor(r/t)}function a(r){return!(r%4||!(r%100)&&r%400)}function u(r){return"object"===t(r)&&Date.prototype===r.__proto__}function f(r,t,n){var e=r-1;return 0+365*e+o(e,4)-o(e,100)+o(e,400)+o(367*t-362,12)+Math.floor(t<=2?0:a(r)?-1:-2)+n}[n,n.slice()][1][2]=29;var c=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],i=[c.concat(["Adar","Nisan"]),c.concat(["Adar I","Adar II","Nisan"])],h=Object.create(null),l=-1373428;function s(r,t,n){var e=n;if(t<7){for(var o=7;o<=b(r);o++)e+=m(o,r);for(var a=1;a<t;a++)e+=m(a,r)}else for(var u=7;u<t;u++)e+=m(u,r);return l+M(r)+e-1}function y(r){return l+M(r)}function v(r){return(1+7*r)%19<7}function b(r){return 12+v(r)}function m(r,t){switch(r){case 2:case 4:case 6:case 10:case 13:return 29}return 12===r&&!v(t)||8===r&&!A(t)||9===r&&g(t)?29:30}function M(r){var t=h[r]=h[r]||function(r){var t=r-1,n=235*Math.floor(t/19)+t%19*12+Math.floor((t%19*7+1)/19),e=204+n%1080*793,o=5+12*n+793*Math.floor(n/1080)+Math.floor(e/1080),a=e%1080+o%24*1080,u=1+29*n+Math.floor(o/24),f=u+(a>=19440||2==u%7&&a>=9924&&!v(r)||1==u%7&&a>=16789&&v(t));return f+(f%7==0||f%7==3||f%7==5)}(r);return t}function p(r){return M(r+1)-M(r)}function A(r){return p(r)%10==5}function g(r){return p(r)%10==3}var I={abs2hebrew:function(r){if("number"!=typeof r||isNaN(r))throw new TypeError("invalid parameter to abs2hebrew ".concat(r));r=Math.trunc(r);for(var t=Math.floor((r-l)/365.24682220597794);y(t)<=r;)++t;for(var n=r<s(--t,1,1)?7:1;r>s(t,n,m(n,t));)++n;return{yy:t,mm:n,dd:1+r-s(t,n,1)}},daysInMonth:m,daysInYear:p,getMonthName:function(r,t){if("number"!=typeof r||isNaN(r)||r<1||r>14)throw new TypeError("bad month argument ".concat(r));return i[+v(t)][r]},hebrew2abs:s,isLeapYear:v,longCheshvan:A,months:{NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},monthsInYear:b,shortKislev:g};return r.abs2greg=function(r){if("number"!=typeof r)throw new TypeError("Argument not a Number: ".concat(r));var t=function(r){var t=r-1,n=o(t,146097),a=e(t,146097),u=o(a,36524),f=e(a,36524),c=o(f,1461),i=o(e(f,1461),365),h=400*n+100*u+4*c+i;return 4!=u&&4!=i?h+1:h}(r=Math.trunc(r)),n=o(12*(r-f(t,1,1)+(r<f(t,3,1)?0:a(t)?1:2))+373,367),u=r-f(t,n,1)+1,c=new Date(t,n-1,u);return t<100&&t>=0&&c.setFullYear(t),c},r.greg2abs=function(r){if(!u(r))throw new TypeError("Argument not a Date: ".concat(r));var t=r.getFullYear()-1;return function(r){if(!u(r))throw new TypeError("Argument not a Date: ".concat(r));var t=r.getDate()+31*r.getMonth();return r.getMonth()>1&&(t-=Math.floor((4*(r.getMonth()+1)+23)/10),a(r.getFullYear())&&t++),t}(r)+365*t+(Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))},r.hdate=I,Object.defineProperty(r,"__esModule",{value:!0}),r}({});
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v3.
|
|
1
|
+
/*! @hebcal/core v3.39.1 */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -1899,7 +1899,7 @@ const flags = {
|
|
|
1899
1899
|
DAF_YOMI: 0x000800,
|
|
1900
1900
|
|
|
1901
1901
|
/** Days of the Omer */
|
|
1902
|
-
OMER_COUNT:
|
|
1902
|
+
OMER_COUNT: 0x001000,
|
|
1903
1903
|
|
|
1904
1904
|
/** Yom HaShoah, Yom HaAtzma'ut, ... */
|
|
1905
1905
|
MODERN_HOLIDAY: 0x002000,
|
|
@@ -1923,7 +1923,7 @@ const flags = {
|
|
|
1923
1923
|
MINOR_HOLIDAY: 0x080000,
|
|
1924
1924
|
|
|
1925
1925
|
/** Evening before a major or minor holiday */
|
|
1926
|
-
EREV:
|
|
1926
|
+
EREV: 0x100000,
|
|
1927
1927
|
|
|
1928
1928
|
/** Chol haMoed, intermediate days of Pesach or Sukkot */
|
|
1929
1929
|
CHOL_HAMOED: 0x200000,
|
|
@@ -2063,6 +2063,23 @@ class Event {
|
|
|
2063
2063
|
observedInDiaspora() {
|
|
2064
2064
|
return !(this.mask & flags.IL_ONLY);
|
|
2065
2065
|
}
|
|
2066
|
+
/**
|
|
2067
|
+
* Is this event observed in Israel/Diaspora?
|
|
2068
|
+
* @example
|
|
2069
|
+
* const ev1 = new Event(new HDate(7, 'Sivan', 5749), 'Shavuot II', flags.CHAG | flags.CHUL_ONLY);
|
|
2070
|
+
* ev1.observedIn(false); // true
|
|
2071
|
+
* ev1.observedIn(true); // false
|
|
2072
|
+
* const ev2 = new Event(new HDate(26, 'Kislev', 5749), 'Chanukah: 3 Candles', 0);
|
|
2073
|
+
* ev2.observedIn(false); // true
|
|
2074
|
+
* ev2.observedIn(true); // true
|
|
2075
|
+
* @param {boolean} il
|
|
2076
|
+
* @return {boolean}
|
|
2077
|
+
*/
|
|
2078
|
+
|
|
2079
|
+
|
|
2080
|
+
observedIn(il) {
|
|
2081
|
+
return il ? this.observedInIsrael() : this.observedInDiaspora();
|
|
2082
|
+
}
|
|
2066
2083
|
/**
|
|
2067
2084
|
* @deprecated
|
|
2068
2085
|
* Optional additional event attributes (e.g. `eventTimeStr`, `cholHaMoedDay`)
|
|
@@ -5504,7 +5521,7 @@ function getBirthdayOrAnniversary_(hyear, gdate) {
|
|
|
5504
5521
|
return new HDate(day, month, hyear);
|
|
5505
5522
|
}
|
|
5506
5523
|
|
|
5507
|
-
var version="3.
|
|
5524
|
+
var version="3.39.1";
|
|
5508
5525
|
|
|
5509
5526
|
var headers$1={"plural-forms":"nplurals=2; plural=(n > 1);",language:"en_CA@ashkenazi"};var contexts$1={"":{Berachot:["Berachos"],Shabbat:["Shabbos"],Taanit:["Taanis"],Yevamot:["Yevamos"],Ketubot:["Kesubos"],"Baba Batra":["Baba Basra"],Makkot:["Makkos"],Shevuot:["Shevuos"],Horayot:["Horayos"],Menachot:["Menachos"],Bechorot:["Bechoros"],Keritot:["Kerisos"],Midot:["Midos"],"Achrei Mot":["Achrei Mos"],Bechukotai:["Bechukosai"],"Beha'alotcha":["Beha'aloscha"],Bereshit:["Bereshis"],Chukat:["Chukas"],"Erev Shavuot":["Erev Shavuos"],"Erev Sukkot":["Erev Sukkos"],"Ki Tavo":["Ki Savo"],"Ki Teitzei":["Ki Seitzei"],"Ki Tisa":["Ki Sisa"],Matot:["Matos"],"Purim Katan":["Purim Koton"],Tazria:["Sazria"],"Shabbat Chazon":["Shabbos Chazon"],"Shabbat HaChodesh":["Shabbos HaChodesh"],"Shabbat HaGadol":["Shabbos HaGadol"],"Shabbat Nachamu":["Shabbos Nachamu"],"Shabbat Parah":["Shabbos Parah"],"Shabbat Shekalim":["Shabbos Shekalim"],"Shabbat Shuva":["Shabbos Shuvah"],"Shabbat Zachor":["Shabbos Zachor"],Shavuot:["Shavuos"],"Shavuot I":["Shavuos I"],"Shavuot II":["Shavuos II"],Shemot:["Shemos"],"Shmini Atzeret":["Shmini Atzeres"],"Simchat Torah":["Simchas Torah"],Sukkot:["Sukkos"],"Sukkot I":["Sukkos I"],"Sukkot II":["Sukkos II"],"Sukkot II (CH''M)":["Sukkos II (CH''M)"],"Sukkot III (CH''M)":["Sukkos III (CH''M)"],"Sukkot IV (CH''M)":["Sukkos IV (CH''M)"],"Sukkot V (CH''M)":["Sukkos V (CH''M)"],"Sukkot VI (CH''M)":["Sukkos VI (CH''M)"],"Sukkot VII (Hoshana Raba)":["Sukkos VII (Hoshana Raba)"],"Ta'anit Bechorot":["Ta'anis Bechoros"],"Ta'anit Esther":["Ta'anis Esther"],Toldot:["Toldos"],Vaetchanan:["Vaeschanan"],Yitro:["Yisro"],"Vezot Haberakhah":["Vezos Haberakhah"],Parashat:["Parshas"],"Leil Selichot":["Leil Selichos"],"Shabbat Mevarchim Chodesh":["Shabbos Mevorchim Chodesh"],"Shabbat Shirah":["Shabbos Shirah"],Tevet:["Teves"],"Asara B'Tevet":["Asara B'Teves"],Berakhot:["Berakhos"],Sheviit:["Sheviis"],Terumot:["Terumos"],Maasrot:["Maasros"],Eduyot:["Eduyos"],Avot:["Avos"],Bekhorot:["Bekhoros"],Middot:["Middos"],Oholot:["Oholos"],Tahorot:["Tahoros"],Mikvaot:["Mikvaos"]}};var poAshkenazi = {headers:headers$1,contexts:contexts$1};
|
|
5510
5527
|
|
|
@@ -5837,7 +5854,7 @@ function getMaskFromOptions(options) {
|
|
|
5837
5854
|
}
|
|
5838
5855
|
|
|
5839
5856
|
if (options.candlelighting) {
|
|
5840
|
-
mask |= LIGHT_CANDLES | LIGHT_CANDLES_TZEIS;
|
|
5857
|
+
mask |= LIGHT_CANDLES | LIGHT_CANDLES_TZEIS | YOM_TOV_ENDS;
|
|
5841
5858
|
} // suppression of defaults
|
|
5842
5859
|
|
|
5843
5860
|
|
|
@@ -6083,7 +6100,7 @@ class HebrewCalendar {
|
|
|
6083
6100
|
|
|
6084
6101
|
if (hyear != currentYear) {
|
|
6085
6102
|
currentYear = hyear;
|
|
6086
|
-
holidaysYear =
|
|
6103
|
+
holidaysYear = getHolidaysForYear_(currentYear);
|
|
6087
6104
|
|
|
6088
6105
|
if (options.sedrot && currentYear >= 3762) {
|
|
6089
6106
|
sedra = getSedra_(currentYear, il);
|
|
@@ -6367,14 +6384,26 @@ class HebrewCalendar {
|
|
|
6367
6384
|
*/
|
|
6368
6385
|
|
|
6369
6386
|
function appendHolidayAndRelated(events, ev, options, candlesEv, dow) {
|
|
6370
|
-
const eFlags = ev.getFlags();
|
|
6371
6387
|
const il = options.il;
|
|
6372
|
-
const observed = il && ev.observedInIsrael() || !il && ev.observedInDiaspora();
|
|
6373
|
-
const mask = options.mask;
|
|
6374
6388
|
|
|
6375
|
-
if (
|
|
6376
|
-
|
|
6389
|
+
if (!ev.observedIn(il)) {
|
|
6390
|
+
return candlesEv; // holiday isn't observed here; bail out early
|
|
6391
|
+
}
|
|
6392
|
+
|
|
6393
|
+
const eFlags = ev.getFlags();
|
|
6394
|
+
const location = options.location;
|
|
6395
|
+
const isMajorFast = Boolean(eFlags & MAJOR_FAST);
|
|
6396
|
+
const isMinorFast = Boolean(eFlags & MINOR_FAST);
|
|
6397
|
+
|
|
6398
|
+
if (options.candlelighting && (isMajorFast || isMinorFast)) {
|
|
6399
|
+
ev = makeFastStartEnd(ev, location);
|
|
6377
6400
|
|
|
6401
|
+
if (ev.startEvent && (isMajorFast || isMinorFast && !options.noMinorFast)) {
|
|
6402
|
+
events.push(ev.startEvent);
|
|
6403
|
+
}
|
|
6404
|
+
}
|
|
6405
|
+
|
|
6406
|
+
if (eFlags & options.mask || !eFlags && !options.userMask) {
|
|
6378
6407
|
if (options.candlelighting && eFlags & MASK_LIGHT_CANDLES) {
|
|
6379
6408
|
const hd = ev.getDate();
|
|
6380
6409
|
candlesEv = makeCandleEvent(ev, hd, dow, location, options);
|
|
@@ -6396,22 +6425,14 @@ function appendHolidayAndRelated(events, ev, options, candlesEv, dow) {
|
|
|
6396
6425
|
}
|
|
6397
6426
|
|
|
6398
6427
|
if (!options.noHolidays) {
|
|
6399
|
-
if (options.candlelighting && eFlags & (MINOR_FAST | MAJOR_FAST)) {
|
|
6400
|
-
ev = makeFastStartEnd(ev, location);
|
|
6401
|
-
}
|
|
6402
|
-
|
|
6403
|
-
if (ev.startEvent) {
|
|
6404
|
-
events.push(ev.startEvent);
|
|
6405
|
-
}
|
|
6406
|
-
|
|
6407
6428
|
events.push(ev); // the original event itself
|
|
6408
|
-
|
|
6409
|
-
if (ev.endEvent) {
|
|
6410
|
-
events.push(ev.endEvent);
|
|
6411
|
-
}
|
|
6412
6429
|
}
|
|
6413
6430
|
}
|
|
6414
6431
|
|
|
6432
|
+
if (ev.endEvent && (isMajorFast || isMinorFast && !options.noMinorFast)) {
|
|
6433
|
+
events.push(ev.endEvent);
|
|
6434
|
+
}
|
|
6435
|
+
|
|
6415
6436
|
return candlesEv;
|
|
6416
6437
|
}
|
|
6417
6438
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v3.
|
|
1
|
+
/*! @hebcal/core v3.39.1 */
|
|
2
2
|
/*
|
|
3
3
|
* More minimal greg routines
|
|
4
4
|
*/
|
|
@@ -1895,7 +1895,7 @@ const flags = {
|
|
|
1895
1895
|
DAF_YOMI: 0x000800,
|
|
1896
1896
|
|
|
1897
1897
|
/** Days of the Omer */
|
|
1898
|
-
OMER_COUNT:
|
|
1898
|
+
OMER_COUNT: 0x001000,
|
|
1899
1899
|
|
|
1900
1900
|
/** Yom HaShoah, Yom HaAtzma'ut, ... */
|
|
1901
1901
|
MODERN_HOLIDAY: 0x002000,
|
|
@@ -1919,7 +1919,7 @@ const flags = {
|
|
|
1919
1919
|
MINOR_HOLIDAY: 0x080000,
|
|
1920
1920
|
|
|
1921
1921
|
/** Evening before a major or minor holiday */
|
|
1922
|
-
EREV:
|
|
1922
|
+
EREV: 0x100000,
|
|
1923
1923
|
|
|
1924
1924
|
/** Chol haMoed, intermediate days of Pesach or Sukkot */
|
|
1925
1925
|
CHOL_HAMOED: 0x200000,
|
|
@@ -2059,6 +2059,23 @@ class Event {
|
|
|
2059
2059
|
observedInDiaspora() {
|
|
2060
2060
|
return !(this.mask & flags.IL_ONLY);
|
|
2061
2061
|
}
|
|
2062
|
+
/**
|
|
2063
|
+
* Is this event observed in Israel/Diaspora?
|
|
2064
|
+
* @example
|
|
2065
|
+
* const ev1 = new Event(new HDate(7, 'Sivan', 5749), 'Shavuot II', flags.CHAG | flags.CHUL_ONLY);
|
|
2066
|
+
* ev1.observedIn(false); // true
|
|
2067
|
+
* ev1.observedIn(true); // false
|
|
2068
|
+
* const ev2 = new Event(new HDate(26, 'Kislev', 5749), 'Chanukah: 3 Candles', 0);
|
|
2069
|
+
* ev2.observedIn(false); // true
|
|
2070
|
+
* ev2.observedIn(true); // true
|
|
2071
|
+
* @param {boolean} il
|
|
2072
|
+
* @return {boolean}
|
|
2073
|
+
*/
|
|
2074
|
+
|
|
2075
|
+
|
|
2076
|
+
observedIn(il) {
|
|
2077
|
+
return il ? this.observedInIsrael() : this.observedInDiaspora();
|
|
2078
|
+
}
|
|
2062
2079
|
/**
|
|
2063
2080
|
* @deprecated
|
|
2064
2081
|
* Optional additional event attributes (e.g. `eventTimeStr`, `cholHaMoedDay`)
|
|
@@ -5500,7 +5517,7 @@ function getBirthdayOrAnniversary_(hyear, gdate) {
|
|
|
5500
5517
|
return new HDate(day, month, hyear);
|
|
5501
5518
|
}
|
|
5502
5519
|
|
|
5503
|
-
const version="3.
|
|
5520
|
+
const version="3.39.1";
|
|
5504
5521
|
|
|
5505
5522
|
const headers$1={"plural-forms":"nplurals=2; plural=(n > 1);",language:"en_CA@ashkenazi"};const contexts$1={"":{Berachot:["Berachos"],Shabbat:["Shabbos"],Taanit:["Taanis"],Yevamot:["Yevamos"],Ketubot:["Kesubos"],"Baba Batra":["Baba Basra"],Makkot:["Makkos"],Shevuot:["Shevuos"],Horayot:["Horayos"],Menachot:["Menachos"],Bechorot:["Bechoros"],Keritot:["Kerisos"],Midot:["Midos"],"Achrei Mot":["Achrei Mos"],Bechukotai:["Bechukosai"],"Beha'alotcha":["Beha'aloscha"],Bereshit:["Bereshis"],Chukat:["Chukas"],"Erev Shavuot":["Erev Shavuos"],"Erev Sukkot":["Erev Sukkos"],"Ki Tavo":["Ki Savo"],"Ki Teitzei":["Ki Seitzei"],"Ki Tisa":["Ki Sisa"],Matot:["Matos"],"Purim Katan":["Purim Koton"],Tazria:["Sazria"],"Shabbat Chazon":["Shabbos Chazon"],"Shabbat HaChodesh":["Shabbos HaChodesh"],"Shabbat HaGadol":["Shabbos HaGadol"],"Shabbat Nachamu":["Shabbos Nachamu"],"Shabbat Parah":["Shabbos Parah"],"Shabbat Shekalim":["Shabbos Shekalim"],"Shabbat Shuva":["Shabbos Shuvah"],"Shabbat Zachor":["Shabbos Zachor"],Shavuot:["Shavuos"],"Shavuot I":["Shavuos I"],"Shavuot II":["Shavuos II"],Shemot:["Shemos"],"Shmini Atzeret":["Shmini Atzeres"],"Simchat Torah":["Simchas Torah"],Sukkot:["Sukkos"],"Sukkot I":["Sukkos I"],"Sukkot II":["Sukkos II"],"Sukkot II (CH''M)":["Sukkos II (CH''M)"],"Sukkot III (CH''M)":["Sukkos III (CH''M)"],"Sukkot IV (CH''M)":["Sukkos IV (CH''M)"],"Sukkot V (CH''M)":["Sukkos V (CH''M)"],"Sukkot VI (CH''M)":["Sukkos VI (CH''M)"],"Sukkot VII (Hoshana Raba)":["Sukkos VII (Hoshana Raba)"],"Ta'anit Bechorot":["Ta'anis Bechoros"],"Ta'anit Esther":["Ta'anis Esther"],Toldot:["Toldos"],Vaetchanan:["Vaeschanan"],Yitro:["Yisro"],"Vezot Haberakhah":["Vezos Haberakhah"],Parashat:["Parshas"],"Leil Selichot":["Leil Selichos"],"Shabbat Mevarchim Chodesh":["Shabbos Mevorchim Chodesh"],"Shabbat Shirah":["Shabbos Shirah"],Tevet:["Teves"],"Asara B'Tevet":["Asara B'Teves"],Berakhot:["Berakhos"],Sheviit:["Sheviis"],Terumot:["Terumos"],Maasrot:["Maasros"],Eduyot:["Eduyos"],Avot:["Avos"],Bekhorot:["Bekhoros"],Middot:["Middos"],Oholot:["Oholos"],Tahorot:["Tahoros"],Mikvaot:["Mikvaos"]}};var poAshkenazi = {headers:headers$1,contexts:contexts$1};
|
|
5506
5523
|
|
|
@@ -5833,7 +5850,7 @@ function getMaskFromOptions(options) {
|
|
|
5833
5850
|
}
|
|
5834
5851
|
|
|
5835
5852
|
if (options.candlelighting) {
|
|
5836
|
-
mask |= LIGHT_CANDLES | LIGHT_CANDLES_TZEIS;
|
|
5853
|
+
mask |= LIGHT_CANDLES | LIGHT_CANDLES_TZEIS | YOM_TOV_ENDS;
|
|
5837
5854
|
} // suppression of defaults
|
|
5838
5855
|
|
|
5839
5856
|
|
|
@@ -6079,7 +6096,7 @@ class HebrewCalendar {
|
|
|
6079
6096
|
|
|
6080
6097
|
if (hyear != currentYear) {
|
|
6081
6098
|
currentYear = hyear;
|
|
6082
|
-
holidaysYear =
|
|
6099
|
+
holidaysYear = getHolidaysForYear_(currentYear);
|
|
6083
6100
|
|
|
6084
6101
|
if (options.sedrot && currentYear >= 3762) {
|
|
6085
6102
|
sedra = getSedra_(currentYear, il);
|
|
@@ -6363,14 +6380,26 @@ class HebrewCalendar {
|
|
|
6363
6380
|
*/
|
|
6364
6381
|
|
|
6365
6382
|
function appendHolidayAndRelated(events, ev, options, candlesEv, dow) {
|
|
6366
|
-
const eFlags = ev.getFlags();
|
|
6367
6383
|
const il = options.il;
|
|
6368
|
-
const observed = il && ev.observedInIsrael() || !il && ev.observedInDiaspora();
|
|
6369
|
-
const mask = options.mask;
|
|
6370
6384
|
|
|
6371
|
-
if (
|
|
6372
|
-
|
|
6385
|
+
if (!ev.observedIn(il)) {
|
|
6386
|
+
return candlesEv; // holiday isn't observed here; bail out early
|
|
6387
|
+
}
|
|
6388
|
+
|
|
6389
|
+
const eFlags = ev.getFlags();
|
|
6390
|
+
const location = options.location;
|
|
6391
|
+
const isMajorFast = Boolean(eFlags & MAJOR_FAST);
|
|
6392
|
+
const isMinorFast = Boolean(eFlags & MINOR_FAST);
|
|
6393
|
+
|
|
6394
|
+
if (options.candlelighting && (isMajorFast || isMinorFast)) {
|
|
6395
|
+
ev = makeFastStartEnd(ev, location);
|
|
6373
6396
|
|
|
6397
|
+
if (ev.startEvent && (isMajorFast || isMinorFast && !options.noMinorFast)) {
|
|
6398
|
+
events.push(ev.startEvent);
|
|
6399
|
+
}
|
|
6400
|
+
}
|
|
6401
|
+
|
|
6402
|
+
if (eFlags & options.mask || !eFlags && !options.userMask) {
|
|
6374
6403
|
if (options.candlelighting && eFlags & MASK_LIGHT_CANDLES) {
|
|
6375
6404
|
const hd = ev.getDate();
|
|
6376
6405
|
candlesEv = makeCandleEvent(ev, hd, dow, location, options);
|
|
@@ -6392,22 +6421,14 @@ function appendHolidayAndRelated(events, ev, options, candlesEv, dow) {
|
|
|
6392
6421
|
}
|
|
6393
6422
|
|
|
6394
6423
|
if (!options.noHolidays) {
|
|
6395
|
-
if (options.candlelighting && eFlags & (MINOR_FAST | MAJOR_FAST)) {
|
|
6396
|
-
ev = makeFastStartEnd(ev, location);
|
|
6397
|
-
}
|
|
6398
|
-
|
|
6399
|
-
if (ev.startEvent) {
|
|
6400
|
-
events.push(ev.startEvent);
|
|
6401
|
-
}
|
|
6402
|
-
|
|
6403
6424
|
events.push(ev); // the original event itself
|
|
6404
|
-
|
|
6405
|
-
if (ev.endEvent) {
|
|
6406
|
-
events.push(ev.endEvent);
|
|
6407
|
-
}
|
|
6408
6425
|
}
|
|
6409
6426
|
}
|
|
6410
6427
|
|
|
6428
|
+
if (ev.endEvent && (isMajorFast || isMinorFast && !options.noMinorFast)) {
|
|
6429
|
+
events.push(ev.endEvent);
|
|
6430
|
+
}
|
|
6431
|
+
|
|
6411
6432
|
return candlesEv;
|
|
6412
6433
|
}
|
|
6413
6434
|
|
package/hebcal.d.ts
CHANGED