@hebcal/core 3.33.4 → 3.33.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v3.33.4 */
1
+ /*! @hebcal/core v3.33.7 */
2
2
  var hebcal = (function (exports) {
3
3
  'use strict';
4
4
 
@@ -37,6 +37,21 @@ function _createClass(Constructor, protoProps, staticProps) {
37
37
  return Constructor;
38
38
  }
39
39
 
40
+ function _defineProperty(obj, key, value) {
41
+ if (key in obj) {
42
+ Object.defineProperty(obj, key, {
43
+ value: value,
44
+ enumerable: true,
45
+ configurable: true,
46
+ writable: true
47
+ });
48
+ } else {
49
+ obj[key] = value;
50
+ }
51
+
52
+ return obj;
53
+ }
54
+
40
55
  function _inherits(subClass, superClass) {
41
56
  if (typeof superClass !== "function" && superClass !== null) {
42
57
  throw new TypeError("Super expression must either be null or a function");
@@ -238,148 +253,172 @@ function quotient(x, y) {
238
253
  }
239
254
  /**
240
255
  * Gregorian date helper functions.
241
- * @namespace
242
256
  */
243
257
 
244
258
 
245
- var greg = {
246
- /**
247
- * Long names of the Gregorian months (1='January', 12='December')
248
- * @readonly
249
- * @type {string[]}
250
- */
251
- monthNames: ['', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
259
+ var greg = /*#__PURE__*/function () {
260
+ function greg() {
261
+ _classCallCheck(this, greg);
262
+ }
252
263
 
253
- /**
254
- * Returns true if the Gregorian year is a leap year
255
- * @param {number} year Gregorian year
256
- * @return {boolean}
257
- */
258
- isLeapYear: function isLeapYear(year) {
259
- return !(year % 4) && (!!(year % 100) || !(year % 400));
260
- },
264
+ _createClass(greg, null, [{
265
+ key: "isLeapYear",
266
+ value:
267
+ /**
268
+ * Long names of the Gregorian months (1='January', 12='December')
269
+ * @readonly
270
+ * @type {string[]}
271
+ */
261
272
 
262
- /**
263
- * Number of days in the Gregorian month for given year
264
- * @param {number} month Gregorian month (1=January, 12=December)
265
- * @param {number} year Gregorian year
266
- * @return {number}
267
- */
268
- daysInMonth: function daysInMonth(month, year) {
269
- // 1 based months
270
- return monthLengths[+this.isLeapYear(year)][month];
271
- },
273
+ /**
274
+ * Returns true if the Gregorian year is a leap year
275
+ * @param {number} year Gregorian year
276
+ * @return {boolean}
277
+ */
278
+ function isLeapYear(year) {
279
+ return !(year % 4) && (!!(year % 100) || !(year % 400));
280
+ }
281
+ /**
282
+ * Number of days in the Gregorian month for given year
283
+ * @param {number} month Gregorian month (1=January, 12=December)
284
+ * @param {number} year Gregorian year
285
+ * @return {number}
286
+ */
272
287
 
273
- /**
274
- * Returns true if the object is a Javascript Date
275
- * @param {Object} obj
276
- * @return {boolean}
277
- */
278
- isDate: function isDate(obj) {
279
- return _typeof(obj) === 'object' && Date.prototype === obj.__proto__;
280
- },
288
+ }, {
289
+ key: "daysInMonth",
290
+ value: function daysInMonth(month, year) {
291
+ // 1 based months
292
+ return monthLengths[+this.isLeapYear(year)][month];
293
+ }
294
+ /**
295
+ * Returns true if the object is a Javascript Date
296
+ * @param {Object} obj
297
+ * @return {boolean}
298
+ */
281
299
 
282
- /**
283
- * Returns number of days since January 1 of that year
284
- * @param {Date} date Gregorian date
285
- * @return {number}
286
- */
287
- dayOfYear: function dayOfYear(date) {
288
- if (!this.isDate(date)) {
289
- throw new TypeError('Argument to greg.dayOfYear not a Date');
300
+ }, {
301
+ key: "isDate",
302
+ value: function isDate(obj) {
303
+ return _typeof(obj) === 'object' && Date.prototype === obj.__proto__;
290
304
  }
305
+ /**
306
+ * Returns number of days since January 1 of that year
307
+ * @param {Date} date Gregorian date
308
+ * @return {number}
309
+ */
310
+
311
+ }, {
312
+ key: "dayOfYear",
313
+ value: function dayOfYear(date) {
314
+ if (!this.isDate(date)) {
315
+ throw new TypeError('Argument to greg.dayOfYear not a Date');
316
+ }
291
317
 
292
- var doy = date.getDate() + 31 * date.getMonth();
318
+ var doy = date.getDate() + 31 * date.getMonth();
293
319
 
294
- if (date.getMonth() > 1) {
295
- // FEB
296
- doy -= Math.floor((4 * (date.getMonth() + 1) + 23) / 10);
320
+ if (date.getMonth() > 1) {
321
+ // FEB
322
+ doy -= Math.floor((4 * (date.getMonth() + 1) + 23) / 10);
297
323
 
298
- if (this.isLeapYear(date.getFullYear())) {
299
- doy++;
324
+ if (this.isLeapYear(date.getFullYear())) {
325
+ doy++;
326
+ }
300
327
  }
328
+
329
+ return doy;
301
330
  }
331
+ /**
332
+ * Converts Gregorian date to absolute R.D. (Rata Die) days
333
+ * @param {Date} date Gregorian date
334
+ * @return {number}
335
+ */
302
336
 
303
- return doy;
304
- },
337
+ }, {
338
+ key: "greg2abs",
339
+ value: function greg2abs(date) {
340
+ if (!this.isDate(date)) {
341
+ throw new TypeError('Argument to greg.greg2abs not a Date');
342
+ }
305
343
 
306
- /**
307
- * Converts Gregorian date to absolute R.D. (Rata Die) days
308
- * @param {Date} date Gregorian date
309
- * @return {number}
310
- */
311
- greg2abs: function greg2abs(date) {
312
- if (!this.isDate(date)) {
313
- throw new TypeError('Argument to greg.greg2abs not a Date');
344
+ var year = date.getFullYear() - 1;
345
+ return this.dayOfYear(date) + // days this year
346
+ 365 * year + ( // + days in prior years
347
+ Math.floor(year / 4) - // + Julian Leap years
348
+ Math.floor(year / 100) + // - century years
349
+ Math.floor(year / 400)); // + Gregorian leap years
314
350
  }
351
+ /**
352
+ * @private
353
+ * @param {number} theDate - R.D. number of days
354
+ * @return {number}
355
+ */
315
356
 
316
- var year = date.getFullYear() - 1;
317
- return this.dayOfYear(date) + // days this year
318
- 365 * year + ( // + days in prior years
319
- Math.floor(year / 4) - // + Julian Leap years
320
- Math.floor(year / 100) + // - century years
321
- Math.floor(year / 400)); // + Gregorian leap years
322
- },
357
+ }, {
358
+ key: "yearFromFixed",
359
+ value: function yearFromFixed(theDate) {
360
+ var l0 = theDate - 1;
361
+ var n400 = quotient(l0, 146097);
362
+ var d1 = mod(l0, 146097);
363
+ var n100 = quotient(d1, 36524);
364
+ var d2 = mod(d1, 36524);
365
+ var n4 = quotient(d2, 1461);
366
+ var d3 = mod(d2, 1461);
367
+ var n1 = quotient(d3, 365);
368
+ var year = 400 * n400 + 100 * n100 + 4 * n4 + n1;
369
+ return n100 != 4 && n1 != 4 ? year + 1 : year;
370
+ }
371
+ /**
372
+ * @private
373
+ * @param {number} year
374
+ * @param {number} month
375
+ * @param {number} day
376
+ * @return {number}
377
+ */
323
378
 
324
- /**
325
- * @private
326
- * @param {number} theDate - R.D. number of days
327
- * @return {number}
328
- */
329
- yearFromFixed: function yearFromFixed(theDate) {
330
- var l0 = theDate - 1;
331
- var n400 = quotient(l0, 146097);
332
- var d1 = mod(l0, 146097);
333
- var n100 = quotient(d1, 36524);
334
- var d2 = mod(d1, 36524);
335
- var n4 = quotient(d2, 1461);
336
- var d3 = mod(d2, 1461);
337
- var n1 = quotient(d3, 365);
338
- var year = 400 * n400 + 100 * n100 + 4 * n4 + n1;
339
- return n100 != 4 && n1 != 4 ? year + 1 : year;
340
- },
379
+ }, {
380
+ key: "toFixed",
381
+ value: function toFixed(year, month, day) {
382
+ var py = year - 1;
383
+ return 0 + 365 * py + quotient(py, 4) - quotient(py, 100) + quotient(py, 400) + quotient(367 * month - 362, 12) + Math.floor(month <= 2 ? 0 : this.isLeapYear(year) ? -1 : -2) + day;
384
+ }
385
+ /**
386
+ * Converts from Rata Die (R.D. number) to Gregorian date.
387
+ * See the footnote on page 384 of ``Calendrical Calculations, Part II:
388
+ * Three Historical Calendars'' by E. M. Reingold, N. Dershowitz, and S. M.
389
+ * Clamen, Software--Practice and Experience, Volume 23, Number 4
390
+ * (April, 1993), pages 383-404 for an explanation.
391
+ * @param {number} theDate - R.D. number of days
392
+ * @return {Date}
393
+ */
341
394
 
342
- /**
343
- * @private
344
- * @param {number} year
345
- * @param {number} month
346
- * @param {number} day
347
- * @return {number}
348
- */
349
- toFixed: function toFixed(year, month, day) {
350
- var py = year - 1;
351
- return 0 + 365 * py + quotient(py, 4) - quotient(py, 100) + quotient(py, 400) + quotient(367 * month - 362, 12) + Math.floor(month <= 2 ? 0 : this.isLeapYear(year) ? -1 : -2) + day;
352
- },
395
+ }, {
396
+ key: "abs2greg",
397
+ value: function abs2greg(theDate) {
398
+ if (typeof theDate !== 'number') {
399
+ throw new TypeError('Argument to greg.abs2greg not a Number');
400
+ }
353
401
 
354
- /**
355
- * Converts from Rata Die (R.D. number) to Gregorian date.
356
- * See the footnote on page 384 of ``Calendrical Calculations, Part II:
357
- * Three Historical Calendars'' by E. M. Reingold, N. Dershowitz, and S. M.
358
- * Clamen, Software--Practice and Experience, Volume 23, Number 4
359
- * (April, 1993), pages 383-404 for an explanation.
360
- * @param {number} theDate - R.D. number of days
361
- * @return {Date}
362
- */
363
- abs2greg: function abs2greg(theDate) {
364
- if (typeof theDate !== 'number') {
365
- throw new TypeError('Argument to greg.abs2greg not a Number');
366
- }
402
+ theDate = Math.trunc(theDate);
403
+ var year = this.yearFromFixed(theDate);
404
+ var priorDays = theDate - this.toFixed(year, 1, 1);
405
+ var correction = theDate < this.toFixed(year, 3, 1) ? 0 : this.isLeapYear(year) ? 1 : 2;
406
+ var month = quotient(12 * (priorDays + correction) + 373, 367);
407
+ var day = theDate - this.toFixed(year, month, 1) + 1;
408
+ var dt = new Date(year, month - 1, day);
367
409
 
368
- theDate = Math.trunc(theDate);
369
- var year = this.yearFromFixed(theDate);
370
- var priorDays = theDate - this.toFixed(year, 1, 1);
371
- var correction = theDate < this.toFixed(year, 3, 1) ? 0 : this.isLeapYear(year) ? 1 : 2;
372
- var month = quotient(12 * (priorDays + correction) + 373, 367);
373
- var day = theDate - this.toFixed(year, month, 1) + 1;
374
- var dt = new Date(year, month - 1, day);
410
+ if (year < 100 && year >= 0) {
411
+ dt.setFullYear(year);
412
+ }
375
413
 
376
- if (year < 100 && year >= 0) {
377
- dt.setFullYear(year);
414
+ return dt;
378
415
  }
416
+ }]);
379
417
 
380
- return dt;
381
- }
382
- };
418
+ return greg;
419
+ }();
420
+
421
+ _defineProperty(greg, "monthNames", ['', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']);
383
422
 
384
423
  var GERESH = '׳';
385
424
  var GERSHAYIM = '״';
@@ -1770,159 +1809,188 @@ var alias = {
1770
1809
  * * `ashkenazi` - Ashkenazi transliterations (e.g. "Shabbos")
1771
1810
  * * `he` - Hebrew (e.g. "שַׁבָּת")
1772
1811
  * * `he-x-NoNikud` - Hebrew without nikud (e.g. "שבת")
1773
- * @namespace
1774
1812
  */
1775
1813
 
1776
- var Locale = {
1777
- /** @private */
1778
- locales: Object.create(null),
1814
+ var Locale = /*#__PURE__*/function () {
1815
+ function Locale() {
1816
+ _classCallCheck(this, Locale);
1817
+ }
1779
1818
 
1780
- /** @private */
1781
- activeLocale: null,
1819
+ _createClass(Locale, null, [{
1820
+ key: "lookupTranslation",
1821
+ value:
1822
+ /** @private */
1782
1823
 
1783
- /** @private */
1784
- activeName: null,
1824
+ /** @private */
1785
1825
 
1786
- /**
1787
- * Returns translation only if `locale` offers a non-empty translation for `id`.
1788
- * Otherwise, returns `undefined`.
1789
- * @param {string} id Message ID to translate
1790
- * @param {string} [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
1791
- * @return {string}
1792
- */
1793
- lookupTranslation: function lookupTranslation(id, locale) {
1794
- var locale0 = locale && locale.toLowerCase();
1795
- var loc = typeof locale == 'string' && this.locales[locale0] || this.activeLocale;
1796
- var array = loc[id];
1826
+ /** @private */
1827
+
1828
+ /**
1829
+ * Returns translation only if `locale` offers a non-empty translation for `id`.
1830
+ * Otherwise, returns `undefined`.
1831
+ * @param {string} id Message ID to translate
1832
+ * @param {string} [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
1833
+ * @return {string}
1834
+ */
1835
+ function lookupTranslation(id, locale) {
1836
+ var locale0 = locale && locale.toLowerCase();
1837
+ var loc = typeof locale == 'string' && this.locales[locale0] || this.activeLocale;
1838
+ var array = loc[id];
1839
+
1840
+ if (array && array.length && array[0].length) {
1841
+ return array[0];
1842
+ }
1797
1843
 
1798
- if (array && array.length && array[0].length) {
1799
- return array[0];
1844
+ return undefined;
1800
1845
  }
1846
+ /**
1847
+ * By default, if no translation was found, returns `id`.
1848
+ * @param {string} id Message ID to translate
1849
+ * @param {string} [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
1850
+ * @return {string}
1851
+ */
1801
1852
 
1802
- return undefined;
1803
- },
1853
+ }, {
1854
+ key: "gettext",
1855
+ value: function gettext(id, locale) {
1856
+ var text = this.lookupTranslation(id, locale);
1804
1857
 
1805
- /**
1806
- * By default, if no translation was found, returns `id`.
1807
- * @param {string} id Message ID to translate
1808
- * @param {string} [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
1809
- * @return {string}
1810
- */
1811
- gettext: function gettext(id, locale) {
1812
- var text = this.lookupTranslation(id, locale);
1858
+ if (typeof text == 'undefined') {
1859
+ return id;
1860
+ }
1813
1861
 
1814
- if (typeof text == 'undefined') {
1815
- return id;
1862
+ return text;
1816
1863
  }
1864
+ /**
1865
+ * Register locale translations.
1866
+ * @param {string} locale Locale name (i.e.: `'he'`, `'fr'`)
1867
+ * @param {LocaleDate} data parsed data from a `.po` file.
1868
+ */
1817
1869
 
1818
- return text;
1819
- },
1870
+ }, {
1871
+ key: "addLocale",
1872
+ value: function addLocale(locale, data) {
1873
+ if (_typeof(data.contexts) !== 'object' || _typeof(data.contexts['']) !== 'object') {
1874
+ throw new TypeError("Locale '".concat(locale, "' invalid compact format"));
1875
+ }
1820
1876
 
1821
- /**
1822
- * Register locale translations.
1823
- * @param {string} locale Locale name (i.e.: `'he'`, `'fr'`)
1824
- * @param {LocaleDate} data parsed data from a `.po` file.
1825
- */
1826
- addLocale: function addLocale(locale, data) {
1827
- if (_typeof(data.contexts) !== 'object' || _typeof(data.contexts['']) !== 'object') {
1828
- throw new TypeError("Locale '".concat(locale, "' invalid compact format"));
1877
+ this.locales[locale.toLowerCase()] = data.contexts[''];
1829
1878
  }
1879
+ /**
1880
+ * Activates a locale. Throws an error if the locale has not been previously added.
1881
+ * After setting the locale to be used, all strings marked for translations
1882
+ * will be represented by the corresponding translation in the specified locale.
1883
+ * @param {string} locale Locale name (i.e: `'he'`, `'fr'`)
1884
+ * @return {LocaleData}
1885
+ */
1830
1886
 
1831
- this.locales[locale.toLowerCase()] = data.contexts[''];
1832
- },
1887
+ }, {
1888
+ key: "useLocale",
1889
+ value: function useLocale(locale) {
1890
+ var locale0 = locale.toLowerCase();
1891
+ var obj = this.locales[locale0];
1833
1892
 
1834
- /**
1835
- * Activates a locale. Throws an error if the locale has not been previously added.
1836
- * After setting the locale to be used, all strings marked for translations
1837
- * will be represented by the corresponding translation in the specified locale.
1838
- * @param {string} locale Locale name (i.e: `'he'`, `'fr'`)
1839
- * @return {LocaleData}
1840
- */
1841
- useLocale: function useLocale(locale) {
1842
- var locale0 = locale.toLowerCase();
1843
- var obj = this.locales[locale0];
1893
+ if (!obj) {
1894
+ throw new RangeError("Locale '".concat(locale, "' not found"));
1895
+ }
1844
1896
 
1845
- if (!obj) {
1846
- throw new RangeError("Locale '".concat(locale, "' not found"));
1897
+ this.activeName = alias[locale0] || locale0;
1898
+ this.activeLocale = obj;
1899
+ return this.activeLocale;
1847
1900
  }
1901
+ /**
1902
+ * Returns the name of the active locale (i.e. 'he', 'ashkenazi', 'fr')
1903
+ * @return {string}
1904
+ */
1848
1905
 
1849
- this.activeName = alias[locale0] || locale0;
1850
- this.activeLocale = obj;
1851
- return this.activeLocale;
1852
- },
1906
+ }, {
1907
+ key: "getLocaleName",
1908
+ value: function getLocaleName() {
1909
+ return this.activeName;
1910
+ }
1911
+ /**
1912
+ * Returns the names of registered locales
1913
+ * @return {string[]}
1914
+ */
1853
1915
 
1854
- /**
1855
- * Returns the name of the active locale (i.e. 'he', 'ashkenazi', 'fr')
1856
- * @return {string}
1857
- */
1858
- getLocaleName: function getLocaleName() {
1859
- return this.activeName;
1860
- },
1916
+ }, {
1917
+ key: "getLocaleNames",
1918
+ value: function getLocaleNames() {
1919
+ return Object.keys(this.locales).sort();
1920
+ }
1921
+ /**
1922
+ * @param {number} n
1923
+ * @param {string} [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
1924
+ * @return {string}
1925
+ */
1861
1926
 
1862
- /**
1863
- * Returns the names of registered locales
1864
- * @return {string[]}
1865
- */
1866
- getLocaleNames: function getLocaleNames() {
1867
- return Object.keys(this.locales).sort();
1868
- },
1927
+ }, {
1928
+ key: "ordinal",
1929
+ value: function ordinal(n, locale) {
1930
+ var locale1 = locale && locale.toLowerCase();
1931
+ var locale0 = locale1 || this.activeName;
1869
1932
 
1870
- /**
1871
- * @param {number} n
1872
- * @param {string} [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
1873
- * @return {string}
1874
- */
1875
- ordinal: function ordinal(n, locale) {
1876
- var locale1 = locale && locale.toLowerCase();
1877
- var locale0 = locale1 || this.activeName;
1878
-
1879
- if (!locale0) {
1880
- return this.getEnOrdinal(n);
1881
- }
1882
-
1883
- switch (locale0) {
1884
- case 'en':
1885
- case 's':
1886
- case 'a':
1887
- case 'ashkenazi':
1888
- case 'ashkenazi_litvish':
1889
- case 'ashkenazi_poylish':
1890
- case 'ashkenazi_standard':
1933
+ if (!locale0) {
1891
1934
  return this.getEnOrdinal(n);
1935
+ }
1936
+
1937
+ switch (locale0) {
1938
+ case 'en':
1939
+ case 's':
1940
+ case 'a':
1941
+ case 'ashkenazi':
1942
+ case 'ashkenazi_litvish':
1943
+ case 'ashkenazi_poylish':
1944
+ case 'ashkenazi_standard':
1945
+ return this.getEnOrdinal(n);
1892
1946
 
1893
- case 'es':
1894
- return n + 'º';
1947
+ case 'es':
1948
+ return n + 'º';
1895
1949
 
1896
- case 'h':
1897
- case 'he':
1898
- case 'he-x-nonikud':
1899
- return String(n);
1950
+ case 'h':
1951
+ case 'he':
1952
+ case 'he-x-nonikud':
1953
+ return String(n);
1900
1954
 
1901
- default:
1902
- return n + '.';
1955
+ default:
1956
+ return n + '.';
1957
+ }
1903
1958
  }
1904
- },
1959
+ /**
1960
+ * @private
1961
+ * @param {number} n
1962
+ * @return {string}
1963
+ */
1905
1964
 
1906
- /**
1907
- * @private
1908
- * @param {number} n
1909
- * @return {string}
1910
- */
1911
- getEnOrdinal: function getEnOrdinal(n) {
1912
- var s = ['th', 'st', 'nd', 'rd'];
1913
- var v = n % 100;
1914
- return n + (s[(v - 20) % 10] || s[v] || s[0]);
1915
- },
1965
+ }, {
1966
+ key: "getEnOrdinal",
1967
+ value: function getEnOrdinal(n) {
1968
+ var s = ['th', 'st', 'nd', 'rd'];
1969
+ var v = n % 100;
1970
+ return n + (s[(v - 20) % 10] || s[v] || s[0]);
1971
+ }
1972
+ /**
1973
+ * Removes nekudot from Hebrew string
1974
+ * @param {string} str
1975
+ * @return {string}
1976
+ */
1977
+
1978
+ }, {
1979
+ key: "hebrewStripNikkud",
1980
+ value: function hebrewStripNikkud(str) {
1981
+ return str.replace(/[\u0590-\u05bd]/g, '').replace(/[\u05bf-\u05c7]/g, '');
1982
+ }
1983
+ }]);
1984
+
1985
+ return Locale;
1986
+ }();
1987
+
1988
+ _defineProperty(Locale, "locales", Object.create(null));
1989
+
1990
+ _defineProperty(Locale, "activeLocale", null);
1991
+
1992
+ _defineProperty(Locale, "activeName", null);
1916
1993
 
1917
- /**
1918
- * Removes nekudot from Hebrew string
1919
- * @param {string} str
1920
- * @return {string}
1921
- */
1922
- hebrewStripNikkud: function hebrewStripNikkud(str) {
1923
- return str.replace(/[\u0590-\u05bd]/g, '').replace(/[\u05bf-\u05c7]/g, '');
1924
- }
1925
- };
1926
1994
  Locale.addLocale('en', noopLocale);
1927
1995
  Locale.addLocale('s', noopLocale);
1928
1996
  Locale.addLocale('', noopLocale);
@@ -4267,18 +4335,20 @@ var Location = /*#__PURE__*/function () {
4267
4335
  function Location(latitude, longitude, il, tzid, cityName, countryCode, geoid) {
4268
4336
  _classCallCheck(this, Location);
4269
4337
 
4270
- this.latitude = +latitude;
4338
+ var lat = typeof latitude === 'number' ? latitude : parseFloat(latitude);
4271
4339
 
4272
- if (this.latitude < -90 || this.latitude > 90) {
4273
- throw new RangeError("Latitude ".concat(this.latitude, " out of range [-90,90]"));
4340
+ if (isNaN(lat) || lat < -90 || lat > 90) {
4341
+ throw new RangeError("Latitude ".concat(latitude, " out of range [-90,90]"));
4274
4342
  }
4275
4343
 
4276
- this.longitude = +longitude;
4344
+ var long = typeof longitude === 'number' ? longitude : parseFloat(longitude);
4277
4345
 
4278
- if (this.longitude < -180 || this.longitude > 180) {
4279
- throw new RangeError("Longitude ".concat(this.longitude, " out of range [-180,180]"));
4346
+ if (isNaN(long) || long < -180 || long > 180) {
4347
+ throw new RangeError("Longitude ".concat(longitude, " out of range [-180,180]"));
4280
4348
  }
4281
4349
 
4350
+ this.latitude = lat;
4351
+ this.longitude = long;
4282
4352
  this.il = Boolean(il);
4283
4353
  this.tzid = tzid;
4284
4354
  this.name = cityName;
@@ -4564,7 +4634,7 @@ var TZEIT_3MEDIUM_STARS = 7.083;
4564
4634
  * @param {HDate} hd
4565
4635
  * @param {number} dow
4566
4636
  * @param {Location} location
4567
- * @param {HebrewCalendar.Options} options
4637
+ * @param {CalOptions} options
4568
4638
  * @return {Event}
4569
4639
  */
4570
4640
 
@@ -5053,7 +5123,7 @@ var OmerEvent = /*#__PURE__*/function (_Event) {
5053
5123
  }, {
5054
5124
  key: "getEmoji",
5055
5125
  value: function getEmoji() {
5056
- if (this.emoji) return this.emoji;
5126
+ if (typeof this.emoji === 'string') return this.emoji;
5057
5127
  var number = this.omer;
5058
5128
  var ones = number % 10;
5059
5129
  var tens = Math.floor(number / 10);
@@ -5064,7 +5134,8 @@ var OmerEvent = /*#__PURE__*/function (_Event) {
5064
5134
  }, {
5065
5135
  key: "getWeeks",
5066
5136
  value: function getWeeks() {
5067
- return this.weekNumber;
5137
+ var day7 = this.daysWithinWeeks === 7;
5138
+ return day7 ? this.weekNumber : this.weekNumber - 1;
5068
5139
  }
5069
5140
  /** @return {number} */
5070
5141
 
@@ -6420,6 +6491,11 @@ var emojiIsraelFlag = {
6420
6491
  emoji: '🇮🇱'
6421
6492
  };
6422
6493
  var chanukahEmoji = '🕎';
6494
+ var emojiPesach = '🫓';
6495
+ var emojiShavuot = {
6496
+ emoji: '⛰️🌸'
6497
+ };
6498
+ var emojiSukkot = '🌿🍋';
6423
6499
  var yearCache = Object.create(null);
6424
6500
  /**
6425
6501
  * Lower-level holidays interface, which returns a `Map` of `Event`s indexed by
@@ -6480,34 +6556,48 @@ function getHolidaysForYear_(year) {
6480
6556
  add(new RoshHashanaEvent(RH, year, CHAG | LIGHT_CANDLES_TZEIS$1));
6481
6557
  addEvents(year, [[2, TISHREI$1, 'Rosh Hashana II', CHAG | YOM_TOV_ENDS$1, {
6482
6558
  emoji: '🍏🍯'
6483
- }], [3 + (RH.getDay() == THU), TISHREI$1, 'Tzom Gedaliah', MINOR_FAST$1], [9, TISHREI$1, 'Erev Yom Kippur', EREV$1 | LIGHT_CANDLES$1, {
6484
- emoji: '📖✍️'
6485
- }]]); // first SAT after RH
6559
+ }], [3 + (RH.getDay() == THU), TISHREI$1, 'Tzom Gedaliah', MINOR_FAST$1], [9, TISHREI$1, 'Erev Yom Kippur', EREV$1 | LIGHT_CANDLES$1]]); // first SAT after RH
6486
6560
 
6487
6561
  add(new HolidayEvent(new HDate(HDate.dayOnOrBefore(SAT$1, 7 + RH.abs())), 'Shabbat Shuva', SPECIAL_SHABBAT$1));
6488
- addEvents(year, [[10, TISHREI$1, 'Yom Kippur', CHAG | YOM_TOV_ENDS$1 | MAJOR_FAST$1, {
6489
- emoji: '📖✍️'
6490
- }], [14, TISHREI$1, 'Erev Sukkot', EREV$1 | LIGHT_CANDLES$1], // Attributes for Israel and Diaspora are different
6491
- [15, TISHREI$1, 'Sukkot I', CHAG | LIGHT_CANDLES_TZEIS$1 | CHUL_ONLY$1], [16, TISHREI$1, 'Sukkot II', CHAG | YOM_TOV_ENDS$1 | CHUL_ONLY$1], [17, TISHREI$1, 'Sukkot III (CH\'\'M)', CHUL_ONLY$1 | CHOL_HAMOED$1, {
6492
- cholHaMoedDay: 1
6562
+ addEvents(year, [[10, TISHREI$1, 'Yom Kippur', CHAG | YOM_TOV_ENDS$1 | MAJOR_FAST$1], [14, TISHREI$1, 'Erev Sukkot', EREV$1 | LIGHT_CANDLES$1, {
6563
+ emoji: emojiSukkot
6564
+ }], // Attributes for Israel and Diaspora are different
6565
+ [15, TISHREI$1, 'Sukkot I', CHAG | LIGHT_CANDLES_TZEIS$1 | CHUL_ONLY$1, {
6566
+ emoji: emojiSukkot
6567
+ }], [16, TISHREI$1, 'Sukkot II', CHAG | YOM_TOV_ENDS$1 | CHUL_ONLY$1, {
6568
+ emoji: emojiSukkot
6569
+ }], [17, TISHREI$1, 'Sukkot III (CH\'\'M)', CHUL_ONLY$1 | CHOL_HAMOED$1, {
6570
+ cholHaMoedDay: 1,
6571
+ emoji: emojiSukkot
6493
6572
  }], [18, TISHREI$1, 'Sukkot IV (CH\'\'M)', CHUL_ONLY$1 | CHOL_HAMOED$1, {
6494
- cholHaMoedDay: 2
6573
+ cholHaMoedDay: 2,
6574
+ emoji: emojiSukkot
6495
6575
  }], [19, TISHREI$1, 'Sukkot V (CH\'\'M)', CHUL_ONLY$1 | CHOL_HAMOED$1, {
6496
- cholHaMoedDay: 3
6576
+ cholHaMoedDay: 3,
6577
+ emoji: emojiSukkot
6497
6578
  }], [20, TISHREI$1, 'Sukkot VI (CH\'\'M)', CHUL_ONLY$1 | CHOL_HAMOED$1, {
6498
- cholHaMoedDay: 4
6499
- }], [15, TISHREI$1, 'Sukkot I', CHAG | YOM_TOV_ENDS$1 | IL_ONLY$1], [16, TISHREI$1, 'Sukkot II (CH\'\'M)', IL_ONLY$1 | CHOL_HAMOED$1, {
6500
- cholHaMoedDay: 1
6579
+ cholHaMoedDay: 4,
6580
+ emoji: emojiSukkot
6581
+ }], [15, TISHREI$1, 'Sukkot I', CHAG | YOM_TOV_ENDS$1 | IL_ONLY$1, {
6582
+ emoji: emojiSukkot
6583
+ }], [16, TISHREI$1, 'Sukkot II (CH\'\'M)', IL_ONLY$1 | CHOL_HAMOED$1, {
6584
+ cholHaMoedDay: 1,
6585
+ emoji: emojiSukkot
6501
6586
  }], [17, TISHREI$1, 'Sukkot III (CH\'\'M)', IL_ONLY$1 | CHOL_HAMOED$1, {
6502
- cholHaMoedDay: 2
6587
+ cholHaMoedDay: 2,
6588
+ emoji: emojiSukkot
6503
6589
  }], [18, TISHREI$1, 'Sukkot IV (CH\'\'M)', IL_ONLY$1 | CHOL_HAMOED$1, {
6504
- cholHaMoedDay: 3
6590
+ cholHaMoedDay: 3,
6591
+ emoji: emojiSukkot
6505
6592
  }], [19, TISHREI$1, 'Sukkot V (CH\'\'M)', IL_ONLY$1 | CHOL_HAMOED$1, {
6506
- cholHaMoedDay: 4
6593
+ cholHaMoedDay: 4,
6594
+ emoji: emojiSukkot
6507
6595
  }], [20, TISHREI$1, 'Sukkot VI (CH\'\'M)', IL_ONLY$1 | CHOL_HAMOED$1, {
6508
- cholHaMoedDay: 5
6596
+ cholHaMoedDay: 5,
6597
+ emoji: emojiSukkot
6509
6598
  }], [21, TISHREI$1, 'Sukkot VII (Hoshana Raba)', LIGHT_CANDLES$1 | CHOL_HAMOED$1, {
6510
- cholHaMoedDay: -1
6599
+ cholHaMoedDay: -1,
6600
+ emoji: emojiSukkot
6511
6601
  }], [22, TISHREI$1, 'Shmini Atzeret', CHAG | LIGHT_CANDLES_TZEIS$1 | CHUL_ONLY$1], // [22, TISHREI, "Shmini Atzeret / Simchat Torah", YOM_TOV_ENDS | IL_ONLY],
6512
6602
  [22, TISHREI$1, 'Shmini Atzeret', CHAG | YOM_TOV_ENDS$1 | IL_ONLY$1], [23, TISHREI$1, 'Simchat Torah', CHAG | YOM_TOV_ENDS$1 | CHUL_ONLY$1]]);
6513
6603
  add(new HolidayEvent(new HDate(24, KISLEV$1, year), 'Chanukah: 1 Candle', EREV$1 | MINOR_HOLIDAY$1 | CHANUKAH_CANDLES$1, {
@@ -6541,36 +6631,51 @@ function getHolidaysForYear_(year) {
6541
6631
  emoji: '🎭️📜'
6542
6632
  }), new HolidayEvent(new HDate(HDate.dayOnOrBefore(SAT$1, pesachAbs - 14) - 7), 'Shabbat Parah', SPECIAL_SHABBAT$1), new HolidayEvent(new HDate(HDate.dayOnOrBefore(SAT$1, pesachAbs - 14)), 'Shabbat HaChodesh', SPECIAL_SHABBAT$1), new HolidayEvent(new HDate(HDate.dayOnOrBefore(SAT$1, pesachAbs - 1)), 'Shabbat HaGadol', SPECIAL_SHABBAT$1), new HolidayEvent( // if the fast falls on Shabbat, move to Thursday
6543
6633
  pesach.prev().getDay() == SAT$1 ? pesach.onOrBefore(THU) : new HDate(14, NISAN$2, year), 'Ta\'anit Bechorot', MINOR_FAST$1));
6544
- addEvents(year, [[14, NISAN$2, 'Erev Pesach', EREV$1 | LIGHT_CANDLES$1], // Attributes for Israel and Diaspora are different
6545
- [15, NISAN$2, 'Pesach I', CHAG | YOM_TOV_ENDS$1 | IL_ONLY$1], [16, NISAN$2, 'Pesach II (CH\'\'M)', IL_ONLY$1 | CHOL_HAMOED$1, {
6546
- cholHaMoedDay: 1
6634
+ addEvents(year, [[14, NISAN$2, 'Erev Pesach', EREV$1 | LIGHT_CANDLES$1, {
6635
+ emoji: '🫓🍷'
6636
+ }], // Attributes for Israel and Diaspora are different
6637
+ [15, NISAN$2, 'Pesach I', CHAG | YOM_TOV_ENDS$1 | IL_ONLY$1, {
6638
+ emoji: emojiPesach
6639
+ }], [16, NISAN$2, 'Pesach II (CH\'\'M)', IL_ONLY$1 | CHOL_HAMOED$1, {
6640
+ cholHaMoedDay: 1,
6641
+ emoji: emojiPesach
6547
6642
  }], [17, NISAN$2, 'Pesach III (CH\'\'M)', IL_ONLY$1 | CHOL_HAMOED$1, {
6548
- cholHaMoedDay: 2
6643
+ cholHaMoedDay: 2,
6644
+ emoji: emojiPesach
6549
6645
  }], [18, NISAN$2, 'Pesach IV (CH\'\'M)', IL_ONLY$1 | CHOL_HAMOED$1, {
6550
- cholHaMoedDay: 3
6646
+ cholHaMoedDay: 3,
6647
+ emoji: emojiPesach
6551
6648
  }], [19, NISAN$2, 'Pesach V (CH\'\'M)', IL_ONLY$1 | CHOL_HAMOED$1, {
6552
- cholHaMoedDay: 4
6649
+ cholHaMoedDay: 4,
6650
+ emoji: emojiPesach
6553
6651
  }], [20, NISAN$2, 'Pesach VI (CH\'\'M)', LIGHT_CANDLES$1 | IL_ONLY$1 | CHOL_HAMOED$1, {
6554
- cholHaMoedDay: 5
6555
- }], [21, NISAN$2, 'Pesach VII', CHAG | YOM_TOV_ENDS$1 | IL_ONLY$1], [15, NISAN$2, 'Pesach I', CHAG | LIGHT_CANDLES_TZEIS$1 | CHUL_ONLY$1], [16, NISAN$2, 'Pesach II', CHAG | YOM_TOV_ENDS$1 | CHUL_ONLY$1], [17, NISAN$2, 'Pesach III (CH\'\'M)', CHUL_ONLY$1 | CHOL_HAMOED$1, {
6556
- cholHaMoedDay: 1
6652
+ cholHaMoedDay: 5,
6653
+ emoji: emojiPesach
6654
+ }], [21, NISAN$2, 'Pesach VII', CHAG | YOM_TOV_ENDS$1 | IL_ONLY$1, {
6655
+ emoji: emojiPesach
6656
+ }], [15, NISAN$2, 'Pesach I', CHAG | LIGHT_CANDLES_TZEIS$1 | CHUL_ONLY$1, {
6657
+ emoji: '🫓🍷'
6658
+ }], [16, NISAN$2, 'Pesach II', CHAG | YOM_TOV_ENDS$1 | CHUL_ONLY$1, {
6659
+ emoji: emojiPesach
6660
+ }], [17, NISAN$2, 'Pesach III (CH\'\'M)', CHUL_ONLY$1 | CHOL_HAMOED$1, {
6661
+ cholHaMoedDay: 1,
6662
+ emoji: emojiPesach
6557
6663
  }], [18, NISAN$2, 'Pesach IV (CH\'\'M)', CHUL_ONLY$1 | CHOL_HAMOED$1, {
6558
- cholHaMoedDay: 2
6664
+ cholHaMoedDay: 2,
6665
+ emoji: emojiPesach
6559
6666
  }], [19, NISAN$2, 'Pesach V (CH\'\'M)', CHUL_ONLY$1 | CHOL_HAMOED$1, {
6560
- cholHaMoedDay: 3
6667
+ cholHaMoedDay: 3,
6668
+ emoji: emojiPesach
6561
6669
  }], [20, NISAN$2, 'Pesach VI (CH\'\'M)', LIGHT_CANDLES$1 | CHUL_ONLY$1 | CHOL_HAMOED$1, {
6562
- cholHaMoedDay: 4
6563
- }], [21, NISAN$2, 'Pesach VII', CHAG | LIGHT_CANDLES_TZEIS$1 | CHUL_ONLY$1], [22, NISAN$2, 'Pesach VIII', CHAG | YOM_TOV_ENDS$1 | CHUL_ONLY$1], [14, IYYAR, 'Pesach Sheni', MINOR_HOLIDAY$1], [18, IYYAR, 'Lag BaOmer', MINOR_HOLIDAY$1, {
6670
+ cholHaMoedDay: 4,
6671
+ emoji: emojiPesach
6672
+ }], [21, NISAN$2, 'Pesach VII', CHAG | LIGHT_CANDLES_TZEIS$1 | CHUL_ONLY$1, {
6673
+ emoji: emojiPesach
6674
+ }], [22, NISAN$2, 'Pesach VIII', CHAG | YOM_TOV_ENDS$1 | CHUL_ONLY$1, {
6675
+ emoji: emojiPesach
6676
+ }], [14, IYYAR, 'Pesach Sheni', MINOR_HOLIDAY$1], [18, IYYAR, 'Lag BaOmer', MINOR_HOLIDAY$1, {
6564
6677
  emoji: '🔥'
6565
- }], [5, SIVAN$1, 'Erev Shavuot', EREV$1 | LIGHT_CANDLES$1, {
6566
- emoji: '⛰️🌸'
6567
- }], [6, SIVAN$1, 'Shavuot', CHAG | YOM_TOV_ENDS$1 | IL_ONLY$1, {
6568
- emoji: '⛰️🌸'
6569
- }], [6, SIVAN$1, 'Shavuot I', CHAG | LIGHT_CANDLES_TZEIS$1 | CHUL_ONLY$1, {
6570
- emoji: '⛰️🌸'
6571
- }], [7, SIVAN$1, 'Shavuot II', CHAG | YOM_TOV_ENDS$1 | CHUL_ONLY$1, {
6572
- emoji: '⛰️🌸'
6573
- }], [15, AV, 'Tu B\'Av', MINOR_HOLIDAY$1, {
6678
+ }], [5, SIVAN$1, 'Erev Shavuot', EREV$1 | LIGHT_CANDLES$1, emojiShavuot], [6, SIVAN$1, 'Shavuot', CHAG | YOM_TOV_ENDS$1 | IL_ONLY$1, emojiShavuot], [6, SIVAN$1, 'Shavuot I', CHAG | LIGHT_CANDLES_TZEIS$1 | CHUL_ONLY$1, emojiShavuot], [7, SIVAN$1, 'Shavuot II', CHAG | YOM_TOV_ENDS$1 | CHUL_ONLY$1, emojiShavuot], [15, AV, 'Tu B\'Av', MINOR_HOLIDAY$1, {
6574
6679
  emoji: '❤️'
6575
6680
  }], [1, ELUL$1, 'Rosh Hashana LaBehemot', MINOR_HOLIDAY$1, {
6576
6681
  emoji: '🐑'
@@ -6972,7 +7077,7 @@ function getBirthdayOrAnniversary_(hyear, gdate) {
6972
7077
  return new HDate(day, month, hyear);
6973
7078
  }
6974
7079
 
6975
- var version="3.33.4";
7080
+ var version="3.33.7";
6976
7081
 
6977
7082
  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};
6978
7083
 
@@ -7062,7 +7167,7 @@ var RECOGNIZED_OPTIONS = {
7062
7167
  };
7063
7168
  /**
7064
7169
  * @private
7065
- * @param {HebrewCalendar.Options} options
7170
+ * @param {CalOptions} options
7066
7171
  */
7067
7172
 
7068
7173
  function warnUnrecognizedOptions(options) {
@@ -7091,7 +7196,7 @@ function shallowCopy(target, source) {
7091
7196
  /**
7092
7197
  * Modifies options in-place
7093
7198
  * @private
7094
- * @param {HebrewCalendar.Options} options
7199
+ * @param {CalOptions} options
7095
7200
  */
7096
7201
 
7097
7202
 
@@ -7126,7 +7231,7 @@ function checkCandleOptions(options) {
7126
7231
  }
7127
7232
  /**
7128
7233
  * Options to configure which events are returned
7129
- * @typedef {Object} HebrewCalendar.Options
7234
+ * @typedef {Object} CalOptions
7130
7235
  * @property {Location} location - latitude/longitude/tzid used for candle-lighting
7131
7236
  * @property {number} year - Gregorian or Hebrew year
7132
7237
  * @property {boolean} isHebrewYear - to interpret year as Hebrew year
@@ -7182,7 +7287,7 @@ function getAbs(d) {
7182
7287
  /**
7183
7288
  * Parse options object to determine start & end days
7184
7289
  * @private
7185
- * @param {HebrewCalendar.Options} options
7290
+ * @param {CalOptions} options
7186
7291
  * @return {number[]}
7187
7292
  */
7188
7293
 
@@ -7260,7 +7365,7 @@ function getStartAndEnd(options) {
7260
7365
  /**
7261
7366
  * Mask to filter Holiday array
7262
7367
  * @private
7263
- * @param {HebrewCalendar.Options} options
7368
+ * @param {CalOptions} options
7264
7369
  * @return {number}
7265
7370
  */
7266
7371
 
@@ -7391,7 +7496,7 @@ var HebrewCalendar = /*#__PURE__*/function () {
7391
7496
  key: "calendar",
7392
7497
  value:
7393
7498
  /**
7394
- * Calculates holidays and other Hebrew calendar events based on {@link HebrewCalendar.Options}.
7499
+ * Calculates holidays and other Hebrew calendar events based on {@link CalOptions}.
7395
7500
  *
7396
7501
  * Each holiday is represented by an {@link Event} object which includes a date,
7397
7502
  * a description, flags and optional attributes.
@@ -7487,7 +7592,7 @@ var HebrewCalendar = /*#__PURE__*/function () {
7487
7592
  * const date = hd.greg();
7488
7593
  * console.log(date.toLocaleDateString(), ev.render(), hd.toString());
7489
7594
  * }
7490
- * @param {HebrewCalendar.Options} [options={}]
7595
+ * @param {CalOptions} [options={}]
7491
7596
  * @return {Event[]}
7492
7597
  */
7493
7598
  function calendar() {
@@ -7762,11 +7867,11 @@ var HebrewCalendar = /*#__PURE__*/function () {
7762
7867
  }
7763
7868
  /**
7764
7869
  * Helper function to format a 23-hour (00:00-23:59) time in US format ("8:13pm") or
7765
- * keep as "20:13" for any other locale/country. Uses `HebrewCalendar.Options` to determine
7870
+ * keep as "20:13" for any other locale/country. Uses `CalOptions` to determine
7766
7871
  * locale.
7767
7872
  * @param {string} timeStr - original time like "20:30"
7768
7873
  * @param {string} suffix - "p" or "pm" or " P.M.". Add leading space if you want it
7769
- * @param {HebrewCalendar.Options} options
7874
+ * @param {CalOptions} options
7770
7875
  * @return {string}
7771
7876
  */
7772
7877
 
@@ -7822,7 +7927,7 @@ var HebrewCalendar = /*#__PURE__*/function () {
7822
7927
  * @private
7823
7928
  * @param {Event[]} events
7824
7929
  * @param {Event} ev
7825
- * @param {HebrewCalendar.Options} options
7930
+ * @param {CalOptions} options
7826
7931
  * @param {Event} candlesEv
7827
7932
  * @param {number} dow
7828
7933
  * @return {Event}