@hebcal/rest-api 3.19.5 → 4.2.0

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,27 +1,7 @@
1
- /*! @hebcal/rest-api v3.19.5 */
2
- var hebcal__rest_api = (function (exports, core, leyn) {
1
+ /*! @hebcal/rest-api v4.2.0 */
2
+ var hebcal__rest_api = (function (exports, core, leyning, triennial) {
3
3
  'use strict';
4
4
 
5
- function _interopNamespace(e) {
6
- if (e && e.__esModule) return e;
7
- var n = Object.create(null);
8
- if (e) {
9
- Object.keys(e).forEach(function (k) {
10
- if (k !== 'default') {
11
- var d = Object.getOwnPropertyDescriptor(e, k);
12
- Object.defineProperty(n, k, d.get ? d : {
13
- enumerable: true,
14
- get: function () { return e[k]; }
15
- });
16
- }
17
- });
18
- }
19
- n["default"] = e;
20
- return Object.freeze(n);
21
- }
22
-
23
- var leyn__namespace = /*#__PURE__*/_interopNamespace(leyn);
24
-
25
5
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
26
6
 
27
7
  var check = function (it) {
@@ -139,12 +119,20 @@ var indexedObject = fails$e(function () {
139
119
  return classof$6(it) == 'String' ? split$3(it, '') : $Object$4(it);
140
120
  } : $Object$4;
141
121
 
122
+ // we can't use just `it == null` since of `document.all` special case
123
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
124
+ var isNullOrUndefined$3 = function (it) {
125
+ return it === null || it === undefined;
126
+ };
127
+
128
+ var isNullOrUndefined$2 = isNullOrUndefined$3;
129
+
142
130
  var $TypeError$a = TypeError;
143
131
 
144
132
  // `RequireObjectCoercible` abstract operation
145
133
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
146
134
  var requireObjectCoercible$4 = function (it) {
147
- if (it == undefined) throw $TypeError$a("Can't call method on " + it);
135
+ if (isNullOrUndefined$2(it)) throw $TypeError$a("Can't call method on " + it);
148
136
  return it;
149
137
  };
150
138
 
@@ -164,7 +152,14 @@ var isCallable$h = function (argument) {
164
152
 
165
153
  var isCallable$g = isCallable$h;
166
154
 
167
- var isObject$7 = function (it) {
155
+ var documentAll = typeof document == 'object' && document.all;
156
+
157
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
158
+ var SPECIAL_DOCUMENT_ALL = typeof documentAll == 'undefined' && documentAll !== undefined;
159
+
160
+ var isObject$8 = SPECIAL_DOCUMENT_ALL ? function (it) {
161
+ return typeof it == 'object' ? it !== null : isCallable$g(it) || it === documentAll;
162
+ } : function (it) {
168
163
  return typeof it == 'object' ? it !== null : isCallable$g(it);
169
164
  };
170
165
 
@@ -221,7 +216,7 @@ var V8_VERSION = engineV8Version;
221
216
  var fails$d = fails$h;
222
217
 
223
218
  // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
224
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$d(function () {
219
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$d(function () {
225
220
  var symbol = Symbol();
226
221
  // Chrome 38 Symbol has incorrect toString conversion
227
222
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -232,7 +227,7 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$d(function () {
232
227
 
233
228
  /* eslint-disable es-x/no-symbol -- required for testing */
234
229
 
235
- var NATIVE_SYMBOL$1 = nativeSymbol;
230
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
236
231
 
237
232
  var useSymbolAsUid = NATIVE_SYMBOL$1
238
233
  && !Symbol.sham
@@ -274,17 +269,18 @@ var aCallable$3 = function (argument) {
274
269
  };
275
270
 
276
271
  var aCallable$2 = aCallable$3;
272
+ var isNullOrUndefined$1 = isNullOrUndefined$3;
277
273
 
278
274
  // `GetMethod` abstract operation
279
275
  // https://tc39.es/ecma262/#sec-getmethod
280
276
  var getMethod$3 = function (V, P) {
281
277
  var func = V[P];
282
- return func == null ? undefined : aCallable$2(func);
278
+ return isNullOrUndefined$1(func) ? undefined : aCallable$2(func);
283
279
  };
284
280
 
285
281
  var call$a = functionCall;
286
282
  var isCallable$c = isCallable$h;
287
- var isObject$6 = isObject$7;
283
+ var isObject$7 = isObject$8;
288
284
 
289
285
  var $TypeError$8 = TypeError;
290
286
 
@@ -292,9 +288,9 @@ var $TypeError$8 = TypeError;
292
288
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
293
289
  var ordinaryToPrimitive$1 = function (input, pref) {
294
290
  var fn, val;
295
- if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$6(val = call$a(fn, input))) return val;
296
- if (isCallable$c(fn = input.valueOf) && !isObject$6(val = call$a(fn, input))) return val;
297
- if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$6(val = call$a(fn, input))) return val;
291
+ if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$7(val = call$a(fn, input))) return val;
292
+ if (isCallable$c(fn = input.valueOf) && !isObject$7(val = call$a(fn, input))) return val;
293
+ if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$7(val = call$a(fn, input))) return val;
298
294
  throw $TypeError$8("Can't convert object to primitive value");
299
295
  };
300
296
 
@@ -328,10 +324,10 @@ var store$2 = sharedStore;
328
324
  (shared$4.exports = function (key, value) {
329
325
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
330
326
  })('versions', []).push({
331
- version: '3.24.1',
327
+ version: '3.25.0',
332
328
  mode: 'global',
333
329
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
334
- license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
330
+ license: 'https://github.com/zloirock/core-js/blob/v3.25.0/LICENSE',
335
331
  source: 'https://github.com/zloirock/core-js'
336
332
  });
337
333
 
@@ -371,7 +367,7 @@ var global$b = global$g;
371
367
  var shared$3 = shared$4.exports;
372
368
  var hasOwn$b = hasOwnProperty_1;
373
369
  var uid$1 = uid$2;
374
- var NATIVE_SYMBOL = nativeSymbol;
370
+ var NATIVE_SYMBOL = symbolConstructorDetection;
375
371
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
376
372
 
377
373
  var WellKnownSymbolsStore = shared$3('wks');
@@ -393,7 +389,7 @@ var wellKnownSymbol$e = function (name) {
393
389
  };
394
390
 
395
391
  var call$9 = functionCall;
396
- var isObject$5 = isObject$7;
392
+ var isObject$6 = isObject$8;
397
393
  var isSymbol$1 = isSymbol$2;
398
394
  var getMethod$2 = getMethod$3;
399
395
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
@@ -405,13 +401,13 @@ var TO_PRIMITIVE = wellKnownSymbol$d('toPrimitive');
405
401
  // `ToPrimitive` abstract operation
406
402
  // https://tc39.es/ecma262/#sec-toprimitive
407
403
  var toPrimitive$1 = function (input, pref) {
408
- if (!isObject$5(input) || isSymbol$1(input)) return input;
404
+ if (!isObject$6(input) || isSymbol$1(input)) return input;
409
405
  var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
410
406
  var result;
411
407
  if (exoticToPrim) {
412
408
  if (pref === undefined) pref = 'default';
413
409
  result = call$9(exoticToPrim, input, pref);
414
- if (!isObject$5(result) || isSymbol$1(result)) return result;
410
+ if (!isObject$6(result) || isSymbol$1(result)) return result;
415
411
  throw $TypeError$7("Can't convert object to primitive value");
416
412
  }
417
413
  if (pref === undefined) pref = 'number';
@@ -429,11 +425,11 @@ var toPropertyKey$3 = function (argument) {
429
425
  };
430
426
 
431
427
  var global$a = global$g;
432
- var isObject$4 = isObject$7;
428
+ var isObject$5 = isObject$8;
433
429
 
434
430
  var document$1 = global$a.document;
435
431
  // typeof document.createElement is 'object' in old IE
436
- var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
432
+ var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
437
433
 
438
434
  var documentCreateElement$2 = function (it) {
439
435
  return EXISTS$1 ? document$1.createElement(it) : {};
@@ -489,14 +485,14 @@ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$b(function () {
489
485
  }).prototype != 42;
490
486
  });
491
487
 
492
- var isObject$3 = isObject$7;
488
+ var isObject$4 = isObject$8;
493
489
 
494
490
  var $String$2 = String;
495
491
  var $TypeError$6 = TypeError;
496
492
 
497
493
  // `Assert: Type(argument) is Object`
498
494
  var anObject$b = function (argument) {
499
- if (isObject$3(argument)) return argument;
495
+ if (isObject$4(argument)) return argument;
500
496
  throw $TypeError$6($String$2(argument) + ' is not an object');
501
497
  };
502
498
 
@@ -588,15 +584,14 @@ if (!isCallable$b(store$1.inspectSource)) {
588
584
  };
589
585
  }
590
586
 
591
- var inspectSource$3 = store$1.inspectSource;
587
+ var inspectSource$2 = store$1.inspectSource;
592
588
 
593
589
  var global$9 = global$g;
594
590
  var isCallable$a = isCallable$h;
595
- var inspectSource$2 = inspectSource$3;
596
591
 
597
592
  var WeakMap$1 = global$9.WeakMap;
598
593
 
599
- var nativeWeakMap = isCallable$a(WeakMap$1) && /native code/.test(inspectSource$2(WeakMap$1));
594
+ var weakMapBasicDetection = isCallable$a(WeakMap$1) && /native code/.test(String(WeakMap$1));
600
595
 
601
596
  var shared$2 = shared$4.exports;
602
597
  var uid = uid$2;
@@ -609,10 +604,10 @@ var sharedKey$3 = function (key) {
609
604
 
610
605
  var hiddenKeys$4 = {};
611
606
 
612
- var NATIVE_WEAK_MAP = nativeWeakMap;
607
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
613
608
  var global$8 = global$g;
614
609
  var uncurryThis$c = functionUncurryThis;
615
- var isObject$2 = isObject$7;
610
+ var isObject$3 = isObject$8;
616
611
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
617
612
  var hasOwn$8 = hasOwnProperty_1;
618
613
  var shared$1 = sharedStore;
@@ -631,7 +626,7 @@ var enforce = function (it) {
631
626
  var getterFor = function (TYPE) {
632
627
  return function (it) {
633
628
  var state;
634
- if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
629
+ if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
635
630
  throw TypeError$3('Incompatible receiver, ' + TYPE + ' required');
636
631
  } return state;
637
632
  };
@@ -643,7 +638,7 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
643
638
  var wmhas = uncurryThis$c(store.has);
644
639
  var wmset = uncurryThis$c(store.set);
645
640
  set = function (it, metadata) {
646
- if (wmhas(store, it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
641
+ if (wmhas(store, it)) throw TypeError$3(OBJECT_ALREADY_INITIALIZED);
647
642
  metadata.facade = it;
648
643
  wmset(store, it, metadata);
649
644
  return metadata;
@@ -658,7 +653,7 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
658
653
  var STATE = sharedKey$2('state');
659
654
  hiddenKeys$3[STATE] = true;
660
655
  set = function (it, metadata) {
661
- if (hasOwn$8(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
656
+ if (hasOwn$8(it, STATE)) throw TypeError$3(OBJECT_ALREADY_INITIALIZED);
662
657
  metadata.facade = it;
663
658
  createNonEnumerableProperty$3(it, STATE, metadata);
664
659
  return metadata;
@@ -684,7 +679,7 @@ var isCallable$9 = isCallable$h;
684
679
  var hasOwn$7 = hasOwnProperty_1;
685
680
  var DESCRIPTORS$5 = descriptors;
686
681
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
687
- var inspectSource$1 = inspectSource$3;
682
+ var inspectSource$1 = inspectSource$2;
688
683
  var InternalStateModule$4 = internalState;
689
684
 
690
685
  var enforceInternalState = InternalStateModule$4.enforce;
@@ -1471,6 +1466,7 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : f
1471
1466
 
1472
1467
  var fails$4 = fails$h;
1473
1468
  var isCallable$4 = isCallable$h;
1469
+ var isObject$2 = isObject$8;
1474
1470
  var getPrototypeOf$1 = objectGetPrototypeOf;
1475
1471
  var defineBuiltIn$5 = defineBuiltIn$7;
1476
1472
  var wellKnownSymbol$9 = wellKnownSymbol$e;
@@ -1493,7 +1489,7 @@ if ([].keys) {
1493
1489
  }
1494
1490
  }
1495
1491
 
1496
- var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$4(function () {
1492
+ var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$4(function () {
1497
1493
  var test = {};
1498
1494
  // FF44- legacy iterators case
1499
1495
  return IteratorPrototype$2[ITERATOR$6].call(test) !== test;
@@ -1535,7 +1531,7 @@ var Iterators$4 = iterators;
1535
1531
 
1536
1532
  var returnThis$1 = function () { return this; };
1537
1533
 
1538
- var createIteratorConstructor$2 = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1534
+ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1539
1535
  var TO_STRING_TAG = NAME + ' Iterator';
1540
1536
  IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor$2(+!ENUMERABLE_NEXT, next) });
1541
1537
  setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
@@ -1586,7 +1582,7 @@ var $$3 = _export;
1586
1582
  var call$6 = functionCall;
1587
1583
  var FunctionName = functionName;
1588
1584
  var isCallable$2 = isCallable$h;
1589
- var createIteratorConstructor$1 = createIteratorConstructor$2;
1585
+ var createIteratorConstructor$1 = iteratorCreateConstructor;
1590
1586
  var getPrototypeOf = objectGetPrototypeOf;
1591
1587
  var setPrototypeOf = objectSetPrototypeOf;
1592
1588
  var setToStringTag$2 = setToStringTag$4;
@@ -1607,7 +1603,7 @@ var ENTRIES = 'entries';
1607
1603
 
1608
1604
  var returnThis = function () { return this; };
1609
1605
 
1610
- var defineIterator$2 = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1606
+ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1611
1607
  createIteratorConstructor$1(IteratorConstructor, NAME, next);
1612
1608
 
1613
1609
  var getIterationMethod = function (KIND) {
@@ -1684,7 +1680,7 @@ var addToUnscopables = addToUnscopables$1;
1684
1680
  var Iterators$2 = iterators;
1685
1681
  var InternalStateModule$3 = internalState;
1686
1682
  var defineProperty$2 = objectDefineProperty.f;
1687
- var defineIterator$1 = defineIterator$2;
1683
+ var defineIterator$1 = iteratorDefine;
1688
1684
  var DESCRIPTORS$3 = descriptors;
1689
1685
 
1690
1686
  var ARRAY_ITERATOR = 'Array Iterator';
@@ -1818,7 +1814,7 @@ var stringMultibyte = {
1818
1814
  var charAt$2 = stringMultibyte.charAt;
1819
1815
  var toString$1 = toString$4;
1820
1816
  var InternalStateModule$2 = internalState;
1821
- var defineIterator = defineIterator$2;
1817
+ var defineIterator = iteratorDefine;
1822
1818
 
1823
1819
  var STRING_ITERATOR = 'String Iterator';
1824
1820
  var setInternalState$2 = InternalStateModule$2.set;
@@ -1851,7 +1847,7 @@ var IS_PURE = isPure;
1851
1847
 
1852
1848
  var ITERATOR$3 = wellKnownSymbol$5('iterator');
1853
1849
 
1854
- var nativeUrl = !fails$3(function () {
1850
+ var urlConstructorDetection = !fails$3(function () {
1855
1851
  // eslint-disable-next-line unicorn/relative-url-style -- required for testing
1856
1852
  var url = new URL('b?a=1&b=2&c=3', 'http://a');
1857
1853
  var searchParams = url.searchParams;
@@ -2021,7 +2017,7 @@ var fails$1 = fails$h;
2021
2017
  var isCallable$1 = isCallable$h;
2022
2018
  var classof$3 = classof$5;
2023
2019
  var getBuiltIn = getBuiltIn$5;
2024
- var inspectSource = inspectSource$3;
2020
+ var inspectSource = inspectSource$2;
2025
2021
 
2026
2022
  var noop = function () { /* empty */ };
2027
2023
  var empty = [];
@@ -2081,13 +2077,14 @@ var createProperty$2 = function (object, key, value) {
2081
2077
 
2082
2078
  var classof$2 = classof$5;
2083
2079
  var getMethod = getMethod$3;
2080
+ var isNullOrUndefined = isNullOrUndefined$3;
2084
2081
  var Iterators = iterators;
2085
2082
  var wellKnownSymbol$3 = wellKnownSymbol$e;
2086
2083
 
2087
2084
  var ITERATOR$1 = wellKnownSymbol$3('iterator');
2088
2085
 
2089
2086
  var getIteratorMethod$3 = function (it) {
2090
- if (it != undefined) return getMethod(it, ITERATOR$1)
2087
+ if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR$1)
2091
2088
  || getMethod(it, '@@iterator')
2092
2089
  || Iterators[classof$2(it)];
2093
2090
  };
@@ -2416,11 +2413,11 @@ var global$2 = global$g;
2416
2413
  var call$1 = functionCall;
2417
2414
  var uncurryThis$2 = functionUncurryThis;
2418
2415
  var DESCRIPTORS$1 = descriptors;
2419
- var USE_NATIVE_URL$1 = nativeUrl;
2416
+ var USE_NATIVE_URL$1 = urlConstructorDetection;
2420
2417
  var defineBuiltIn$2 = defineBuiltIn$7;
2421
2418
  var defineBuiltIns = defineBuiltIns$1;
2422
2419
  var setToStringTag$1 = setToStringTag$4;
2423
- var createIteratorConstructor = createIteratorConstructor$2;
2420
+ var createIteratorConstructor = iteratorCreateConstructor;
2424
2421
  var InternalStateModule$1 = internalState;
2425
2422
  var anInstance$1 = anInstance$2;
2426
2423
  var isCallable = isCallable$h;
@@ -2428,7 +2425,7 @@ var hasOwn$2 = hasOwnProperty_1;
2428
2425
  var bind$1 = functionBindContext;
2429
2426
  var classof$1 = classof$5;
2430
2427
  var anObject$1 = anObject$b;
2431
- var isObject$1 = isObject$7;
2428
+ var isObject$1 = isObject$8;
2432
2429
  var $toString$2 = toString$4;
2433
2430
  var create = objectCreate;
2434
2431
  var createPropertyDescriptor = createPropertyDescriptor$5;
@@ -2805,7 +2802,7 @@ var web_urlSearchParams_constructor = {
2805
2802
 
2806
2803
  var $$1 = _export;
2807
2804
  var DESCRIPTORS = descriptors;
2808
- var USE_NATIVE_URL = nativeUrl;
2805
+ var USE_NATIVE_URL = urlConstructorDetection;
2809
2806
  var global$1 = global$g;
2810
2807
  var bind = functionBindContext;
2811
2808
  var uncurryThis$1 = functionUncurryThis;
@@ -3843,7 +3840,7 @@ $$1({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTO
3843
3840
  URL: URLConstructor
3844
3841
  });
3845
3842
 
3846
- var isObject = isObject$7;
3843
+ var isObject = isObject$8;
3847
3844
  var classof = classofRaw$1;
3848
3845
  var wellKnownSymbol$1 = wellKnownSymbol$e;
3849
3846
 
@@ -3892,7 +3889,7 @@ var requireObjectCoercible = requireObjectCoercible$4;
3892
3889
  var correctIsRegExpLogic = correctIsRegexpLogic;
3893
3890
 
3894
3891
  // eslint-disable-next-line es-x/no-string-prototype-startswith -- safe
3895
- var un$StartsWith = uncurryThis(''.startsWith);
3892
+ var nativeStartsWith = uncurryThis(''.startsWith);
3896
3893
  var stringSlice = uncurryThis(''.slice);
3897
3894
  var min = Math.min;
3898
3895
 
@@ -3911,8 +3908,8 @@ $({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGE
3911
3908
  notARegExp(searchString);
3912
3909
  var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));
3913
3910
  var search = toString(searchString);
3914
- return un$StartsWith
3915
- ? un$StartsWith(that, search, index)
3911
+ return nativeStartsWith
3912
+ ? nativeStartsWith(that, search, index)
3916
3913
  : stringSlice(that, index, index + search.length) === search;
3917
3914
  }
3918
3915
  });
@@ -3939,11 +3936,11 @@ var getRegExpFlags = regexpGetFlags;
3939
3936
 
3940
3937
  var TO_STRING = 'toString';
3941
3938
  var RegExpPrototype = RegExp.prototype;
3942
- var n$ToString = RegExpPrototype[TO_STRING];
3939
+ var nativeToString = RegExpPrototype[TO_STRING];
3943
3940
 
3944
- var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
3941
+ var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
3945
3942
  // FF44- RegExp#toString has a wrong name
3946
- var INCORRECT_NAME = PROPER_FUNCTION_NAME && n$ToString.name != TO_STRING;
3943
+ var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;
3947
3944
 
3948
3945
  // `RegExp.prototype.toString` method
3949
3946
  // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
@@ -4072,17 +4069,6 @@ function pad4(number) {
4072
4069
 
4073
4070
  return '' + number;
4074
4071
  }
4075
- /**
4076
- * Get offset string (like "+05:00" or "-08:00") from tzid (like "Europe/Moscow")
4077
- * @deprecated
4078
- * @param {string} tzid
4079
- * @param {Date} date
4080
- * @return {string}
4081
- */
4082
-
4083
- function timeZoneOffsetStr(tzid, date) {
4084
- return core.Zmanim.timeZoneOffset(tzid, date);
4085
- }
4086
4072
  /**
4087
4073
  * Returns just the date portion as YYYY-MM-DD
4088
4074
  * @param {Date} d
@@ -4092,20 +4078,6 @@ function timeZoneOffsetStr(tzid, date) {
4092
4078
  function toISOString(d) {
4093
4079
  return pad4(d.getFullYear()) + '-' + pad2(d.getMonth() + 1) + '-' + pad2(d.getDate());
4094
4080
  }
4095
- /**
4096
- * Returns a string like "2018-09-01T12:30:00-05:00"
4097
- * @deprecated
4098
- * @param {Date} date
4099
- * @param {string} timeStr must be formatted with only hours and minutes, like "17:12"
4100
- * @param {string} tzid like "America/New_York"
4101
- * @return {string}
4102
- */
4103
-
4104
- function toISOStringWithTimezone(date, timeStr, tzid) {
4105
- const str = toISOString(date);
4106
- if (!timeStr) return str;
4107
- return str + 'T' + timeStr + ':00' + core.Zmanim.timeZoneOffset(tzid, date);
4108
- }
4109
4081
  /**
4110
4082
  * Returns a category and subcategory name
4111
4083
  * @param {Event} ev
@@ -4287,7 +4259,7 @@ function makeTorahMemoText(ev, il) {
4287
4259
  return '';
4288
4260
  }
4289
4261
 
4290
- const reading = mask & core.flags.PARSHA_HASHAVUA ? leyn__namespace.getLeyningForParshaHaShavua(ev, il) : leyn__namespace.getLeyningForHoliday(ev, il);
4262
+ const reading = mask & core.flags.PARSHA_HASHAVUA ? leyning.getLeyningForParshaHaShavua(ev, il) : leyning.getLeyningForHoliday(ev, il);
4291
4263
  let memo = '';
4292
4264
 
4293
4265
  if (reading && (reading.summary || reading.haftara)) {
@@ -4544,7 +4516,7 @@ function eventsToClassicApi(events, options) {
4544
4516
  */
4545
4517
 
4546
4518
  function eventToClassicApiObject(ev, options) {
4547
- let leyning = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
4519
+ let leyning$1 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
4548
4520
  const timed = Boolean(ev.eventTime);
4549
4521
  const hd = ev.getDate();
4550
4522
  const dt = hd.greg();
@@ -4591,20 +4563,20 @@ function eventToClassicApiObject(ev, options) {
4591
4563
  }
4592
4564
 
4593
4565
  if (!candles) {
4594
- if (leyning) {
4566
+ if (leyning$1) {
4595
4567
  const il = options.il;
4596
4568
  const isParsha = mask === core.flags.PARSHA_HASHAVUA;
4597
- const reading = isParsha ? leyn__namespace.getLeyningForParshaHaShavua(ev, il) : leyn__namespace.getLeyningForHoliday(ev, il);
4569
+ const reading = isParsha ? leyning.getLeyningForParshaHaShavua(ev, il) : leyning.getLeyningForHoliday(ev, il);
4598
4570
 
4599
4571
  if (reading) {
4600
4572
  result.leyning = formatLeyningResult(reading);
4601
4573
  const hyear = hd.getFullYear();
4602
4574
 
4603
4575
  if (isParsha && !il && hyear >= 5745) {
4604
- const triReading = leyn__namespace.getTriennialForParshaHaShavua(ev);
4576
+ const triReading = triennial.getTriennialForParshaHaShavua(ev);
4605
4577
 
4606
4578
  if (triReading) {
4607
- result.leyning.triennial = formatAliyot({}, triReading);
4579
+ result.leyning.triennial = formatAliyot({}, triReading.aliyot);
4608
4580
  }
4609
4581
  }
4610
4582
  }
@@ -4671,13 +4643,13 @@ function formatAliyot(result, aliyot) {
4671
4643
 
4672
4644
  if (typeof aliyah !== 'undefined') {
4673
4645
  const k = num == 'M' ? 'maftir' : num;
4674
- result[k] = leyn__namespace.formatAliyahWithBook(aliyah);
4646
+ result[k] = leyning.formatAliyahWithBook(aliyah);
4675
4647
  }
4676
4648
  });
4677
4649
  return result;
4678
4650
  }
4679
4651
  /**
4680
- * @param {leyn.Leyning} reading
4652
+ * @param {Leyning} reading
4681
4653
  * @return {Object}
4682
4654
  */
4683
4655
 
@@ -4751,34 +4723,7 @@ function getLinkAndGuid(ev, il, tzid, mainUrl, utmSource, utmMedium) {
4751
4723
 
4752
4724
  return [link, guid];
4753
4725
  }
4754
- /**
4755
- * @param {Event[]} events
4756
- * @param {Location} location
4757
- * @param {string} mainUrl
4758
- * @param {string} selfUrl
4759
- * @param {string} [lang] language such as 'he' (default 'en-US')
4760
- * @param {boolean} [evPubDate] if true, use event time as pubDate (false uses lastBuildDate)
4761
- * @return {string}
4762
- */
4763
-
4764
4726
 
4765
- function eventsToRss(events, location, mainUrl, selfUrl) {
4766
- let lang = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'en-US';
4767
- let evPubDate = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;
4768
- const cityDescr = location.getName();
4769
- const options = {
4770
- location,
4771
- mainUrl,
4772
- selfUrl,
4773
- lang,
4774
- evPubDate,
4775
- title: core.Locale.gettext('Shabbat') + " Times for ".concat(cityDescr),
4776
- description: "Weekly Shabbat candle lighting times for ".concat(cityDescr),
4777
- utmSource: 'shabbat1c',
4778
- utmMedium: 'rss'
4779
- };
4780
- return eventsToRss2(events, options);
4781
- }
4782
4727
  const localeToLg = {
4783
4728
  's': 'en',
4784
4729
  'a': 'en',
@@ -4849,28 +4794,15 @@ function getPubDate(ev, evPubDate, evDate, lastBuildDate) {
4849
4794
 
4850
4795
 
4851
4796
  function eventToRssItem2(ev, options) {
4852
- return eventToRssItem(ev, options.evPubDate, options.lastBuildDate, options.dayFormat, options.location, options.mainUrl, options);
4853
- }
4854
- /**
4855
- * @param {Event} ev
4856
- * @param {boolean} evPubDate
4857
- * @param {string} lastBuildDate
4858
- * @param {Intl.DateTimeFormat} dayFormat
4859
- * @param {Location} location
4860
- * @param {string} mainUrl
4861
- * @param {CalOptions} [options]
4862
- * @return {string}
4863
- */
4864
-
4865
- function eventToRssItem(ev, evPubDate, lastBuildDate, dayFormat, location, mainUrl, options) {
4866
4797
  let subj = ev.render();
4867
4798
  const evDate = ev.getDate().greg();
4868
- const pubDate = getPubDate(ev, evPubDate, evDate, lastBuildDate);
4799
+ const pubDate = getPubDate(ev, options.evPubDate, evDate, options.lastBuildDate);
4800
+ const location = options.location;
4869
4801
  const il = location ? location.getIsrael() : false;
4870
4802
  const tzid = location ? location.getTzid() : 'UTC';
4871
4803
  const utmSource = options && options.utmSource || 'shabbat1c';
4872
4804
  const utmMedium = options && options.utmMedium || 'rss';
4873
- const linkGuid = getLinkAndGuid(ev, il, tzid, mainUrl, utmSource, utmMedium);
4805
+ const linkGuid = getLinkAndGuid(ev, il, tzid, options.mainUrl, utmSource, utmMedium);
4874
4806
  const link = linkGuid[0];
4875
4807
  const guid = linkGuid[1];
4876
4808
  const categories = getEventCategories(ev);
@@ -4895,6 +4827,7 @@ function eventToRssItem(ev, evPubDate, lastBuildDate, dayFormat, location, mainU
4895
4827
  memo = ev.getFlags() & core.flags.PARSHA_HASHAVUA ? makeTorahMemoText(ev, il) : ev.memo || holidayDescription[ev.basename()];
4896
4828
  }
4897
4829
 
4830
+ const dayFormat = options.dayFormat;
4898
4831
  const description = memo || dayFormat.format(evDate);
4899
4832
  const geoTags = cat0 == 'candles' ? "<geo:lat>".concat(location.getLatitude(), "</geo:lat>\n<geo:long>").concat(location.getLongitude(), "</geo:long>\n") : '';
4900
4833
  return "<item>\n<title>".concat(subj, "</title>\n<link>").concat(link, "</link>\n<guid isPermaLink=\"false\">").concat(guid, "</guid>\n<description>").concat(description, "</description>\n<category>").concat(cat0, "</category>\n<pubDate>").concat(pubDate, "</pubDate>\n").concat(geoTags, "</item>\n");
@@ -4958,11 +4891,9 @@ exports.countryNames = countryNames;
4958
4891
  exports.eventToClassicApiObject = eventToClassicApiObject;
4959
4892
  exports.eventToCsv = eventToCsv;
4960
4893
  exports.eventToFullCalendar = eventToFullCalendar;
4961
- exports.eventToRssItem = eventToRssItem;
4962
4894
  exports.eventToRssItem2 = eventToRssItem2;
4963
4895
  exports.eventsToClassicApi = eventsToClassicApi;
4964
4896
  exports.eventsToCsv = eventsToCsv;
4965
- exports.eventsToRss = eventsToRss;
4966
4897
  exports.eventsToRss2 = eventsToRss2;
4967
4898
  exports.getCalendarTitle = getCalendarTitle;
4968
4899
  exports.getDownloadFilename = getDownloadFilename;
@@ -4976,12 +4907,10 @@ exports.pad2 = pad2;
4976
4907
  exports.pad4 = pad4;
4977
4908
  exports.renderTitleWithoutTime = renderTitleWithoutTime;
4978
4909
  exports.shouldRenderBrief = shouldRenderBrief;
4979
- exports.timeZoneOffsetStr = timeZoneOffsetStr;
4980
4910
  exports.toISOString = toISOString;
4981
- exports.toISOStringWithTimezone = toISOStringWithTimezone;
4982
4911
 
4983
4912
  Object.defineProperty(exports, '__esModule', { value: true });
4984
4913
 
4985
4914
  return exports;
4986
4915
 
4987
- })({}, hebcal, hebcal__leyning);
4916
+ })({}, hebcal, hebcal__leyning, hebcal__triennial);